You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1585 lines
5.1 MiB
1585 lines
5.1 MiB
(()=>{var e,t,i,n={21571(e,t,i){"use strict";i.d(t,{vE:()=>n,X8:()=>r,YD:()=>s,hQ:()=>d,Qd:()=>C,e5:()=>k,dw:()=>j,Lf:()=>Ae,tc:()=>fe,i0:()=>L,I:()=>W,uB:()=>Y,Kc:()=>K,IZ:()=>ce,JS:()=>Z,Wt:()=>q,W7:()=>H,Fw:()=>$,Ki:()=>X,$3:()=>_});class n{}class r{}class s{}class o{}class a{constructor(e){this.groups=[],this.users=[],this.externalId=e.externalId,e.groups&&(this.groups=e.groups),e.users&&(this.users=e.users)}}a.isUpdate=e=>e instanceof c;class l extends a{constructor(e){if(super(e),!e.name||!e.name.encryptedString)throw new Error("Name not provided for CollectionRequest.");this.name=e.name.encryptedString}}class c extends a{constructor(e){var t,i;super(e),this.name=null!==(i=null===(t=e.name)||void 0===t?void 0:t.encryptedString)&&void 0!==i?i:null}}class d extends a{constructor(e){if(null==e||null==e.name||null==e.name.encryptedString)throw new Error("CollectionWithIdRequest must contain name.");super({externalId:e.externalId}),this.name=e.name.encryptedString,this.id=e.id}}var u=i(72135),h=i(98569),A=i(191),p=i(83604),g=i(68108),v=i(69783),m=i(67553),f=i(14848),y=i(50545),b=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class C{constructor(e,t,i,n,r){this.apiService=e,this.keyService=t,this.encryptService=i,this.collectionService=n,this.organizationService=r}collectionAdminViews$(e,t){return(0,u.z)([this.keyService.orgKeys$(t),(0,h.H)(this.apiService.getManyCollectionsWithAccessDetails(e))]).pipe((0,A.n)(([t,i])=>{if(null==(null==i?void 0:i.data)||0===i.data.length)return(0,p.of)([]);if(null==t)throw new Error("No org keys found.");return this.decryptMany(e,i.data,t)}))}update(e,t){return b(this,void 0,void 0,function*(){const i=yield this.encrypt(e,t,!0);if(!a.isUpdate(i))throw new Error("Cannot update collection with CreateCollectionRequest.");const n=yield this.apiService.putCollection(e.organizationId,e.id,i);return yield this.updateLocalCollections(n,t),n})}create(e,t){return b(this,void 0,void 0,function*(){const i=yield this.encrypt(e,t,!1);if(a.isUpdate(i))throw new Error("Cannot create collection with UpdateCollectionRequest.");const n=yield this.apiService.postCollection(e.organizationId,i);return e.id=n.id,yield this.updateLocalCollections(n,t),n})}delete(e,t){return b(this,void 0,void 0,function*(){yield this.apiService.deleteCollection(e,t)})}updateLocalCollections(e,t){return b(this,void 0,void 0,function*(){e.assigned?yield this.collectionService.upsert(new f.Fw(e),t):yield this.collectionService.delete([e.id],t)})}bulkAssignAccess(e,t,i,n){return b(this,void 0,void 0,function*(){const r=new o;r.collectionIds=t,r.users=i.map(e=>new y.I(e.id,e.readOnly,e.hidePasswords,e.manage)),r.groups=n.map(e=>new y.I(e.id,e.readOnly,e.hidePasswords,e.manage)),yield this.apiService.send("POST",`/organizations/${e}/collections/bulk-access`,r,!0,!1)})}decryptMany(e,t,i){return b(this,void 0,void 0,function*(){const n=t.map(t=>b(this,void 0,void 0,function*(){return function(e){const t=e;return(null==t?void 0:t.groups)instanceof Array&&(null==t?void 0:t.users)instanceof Array}(t)?f.nb.fromCollectionAccessDetails(t,this.encryptService,i[e]):yield f.nb.fromCollectionResponse(t,this.encryptService,i[e])}));return yield Promise.all(n)})}encrypt(e,t,i){return b(this,void 0,void 0,function*(){if(!e.organizationId)throw new Error("Collection has no organization id.");const n=yield(0,g._)(this.keyService.orgKeys$(t).pipe((0,v.T)(t=>{if(!t)throw new Error("No keys for the provided userId.");const i=t[e.organizationId];if(null==i)throw new Error("No key for this collection's organization.");return i}))),r=e.groups.map(e=>new y.I(e.id,e.readOnly,e.hidePasswords,e.manage)),s=e.users.map(e=>new y.I(e.id,e.readOnly,e.hidePasswords,e.manage));if(i){const i=yield(0,g._)(this.organizationService.organizations$(t).pipe((0,m.Sw)(e.organizationId)));if(null==i)throw new Error("No Organization found.");return new c({name:e.canEditName(i)?yield this.encryptService.encryptString(e.name,n):null,externalId:e.externalId,users:s,groups:r})}return new l({name:yield this.encryptService.encryptString(e.name,n),externalId:e.externalId,users:s,groups:r})})}}var I=i(62423),w=i(4958),B=i(7023),E=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})},S=function(e,t,i){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,r;if(i){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],i&&(r=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");r&&(n=function(){try{r.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:i})}else i&&e.stack.push({async:!0});return t},Q=function(e){return function(t){function i(i){t.error=t.hasError?new e(i,t.error,"An error was suppressed during disposal."):i,t.hasError=!0}var n,r=0;return function e(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(e);if(n.dispose){var s=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(s).then(e,function(t){return i(t),e()})}else r|=1}catch(o){i(o)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}}("function"==typeof SuppressedError?SuppressedError:function(e,t,i){var n=new Error(i);return n.name="SuppressedError",n.error=e,n.suppressed=t,n});class k{constructor(e,t){this.sdkService=e,this.logService=t}decrypt(e,t){return E(this,void 0,void 0,function*(){const i=yield this.decryptMany([e],t);if(0===i.length){const t=new Error(`Failed to decrypt collection ${e.id}`);throw this.logService.error(`Failed to decrypt collection: ${t}`),t}return i[0]})}decryptMany(e,t){return E(this,void 0,void 0,function*(){return e&&0!==e.length?(0,g._)(this.sdkService.userClient$(t).pipe((0,I.H)(t=>E(this,void 0,void 0,function*(){const i={stack:[],error:void 0,hasError:!1};try{if(!t)throw new Error("SDK not available");const r=S(i,t.take(),!1),s=[];for(const t of e)try{const e=r.value.vault().collections().decrypt(t.toSdkCollection());s.push(B.i.fromSdkCollectionView(e,t))}catch(n){this.logService.error(`Failed to decrypt collection ${t.id}: ${n}`)}return s}catch(r){i.error=r,i.hasError=!0}finally{Q(i)}})),(0,w.W)(e=>{throw this.logService.error(`Failed to decrypt collections in batch: ${e}`),e}))):[]})}}var R=i(6933),F=i(68711),T=i(80118),D=i(30690),P=i(12055),M=i(82468),x=i(78781),V=i(23567),G=i(31857);const U=G.Ok.record(G.PM,"collections",{deserializer:e=>f.Fw.fromJSON(e),clearOn:["logout"]}),O=new G.Ok(G.xS,"decryptedCollections",{deserializer:e=>{var t;return null!==(t=null==e?void 0:e.map(e=>f.iY.fromJSON(e)))&&void 0!==t?t:null},clearOn:["logout","lock"]});var N=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class j{constructor(e,t,i,n,r,s){this.keyService=e,this.encryptService=t,this.i18nService=i,this.stateProvider=n,this.configService=r,this.collectionEncryptionService=s,this.collectionViewCache=new Map}encryptedState(e){return this.stateProvider.getUser(e,U)}decryptedState(e){return this.stateProvider.getUser(e,O)}encryptedCollections$(e){return this.encryptedState(e).state$.pipe((0,v.T)(e=>null==e?null:Object.values(e).map(e=>f.pM.fromCollectionData(e))))}decryptedCollections$(e){const t=this.collectionViewCache.get(e);if(t)return t;const i=this.decryptedState(e).state$.pipe((0,A.n)(t=>null!==t?(0,p.of)(null!=t?t:[]):this.initializeDecryptedState(e)),(0,R.t)({bufferSize:1,refCount:!0}));return this.collectionViewCache.set(e,i),i}defaultUserCollection$(e,t){return this.decryptedCollections$(e).pipe((0,v.T)(e=>e.find(e=>e.isDefaultCollection&&e.organizationId===t)))}initializeDecryptedState(e){return this.configService.getFeatureFlag$(M.TO.PM35153CollectionSdkDecryption).pipe((0,A.n)(t=>t?(0,u.z)([this.encryptedCollections$(e),this.keyService.orgKeys$(e).pipe((0,F.p)(e=>!!e))]).pipe((0,A.n)(([t])=>(0,h.H)(this.collectionEncryptionService.decryptMany(null!=t?t:[],e)).pipe((0,v.T)(e=>e.sort(x.A.getSortFunction(this.i18nService,"name"))),(0,T.o)(t=>this.setDecryptedCollections(t,e)),(0,D.w)(),(0,w.W)(()=>(0,p.of)([]))))):(0,u.z)([this.encryptedCollections$(e),this.keyService.orgKeys$(e).pipe((0,F.p)(e=>!!e))]).pipe((0,A.n)(([t,i])=>this.decryptMany$(t,i).pipe((0,T.o)(t=>this.setDecryptedCollections(t,e)))),(0,A.n)(()=>P.t))))}upsert(e,t){return N(this,void 0,void 0,function*(){if(null==e)return;yield this.encryptedState(t).update(t=>(null==t&&(t={}),t[e.id]=e,t));const i=yield this.configService.getFeatureFlag(M.TO.PM35153CollectionSdkDecryption);let n;n=i?yield this.collectionEncryptionService.decryptMany([f.pM.fromCollectionData(e)],t):yield(0,g._)(this.keyService.orgKeys$(t).pipe((0,A.n)(t=>{if(!t)throw new Error("No key for this collection's organization.");return this.decryptMany$([f.pM.fromCollectionData(e)],t)}))),yield this.decryptedState(t).update(t=>{if(null==t&&(t=[]),!(null==n?void 0:n.length))return t;const i=n[0],r=t.findIndex(t=>t.id==e.id);return r>=0?t[r]=i:t.push(i),t})})}replace(e,t){return N(this,void 0,void 0,function*(){yield this.encryptedState(t).update(()=>e),yield this.decryptedState(t).update(()=>null)})}delete(e,t){return N(this,void 0,void 0,function*(){yield this.encryptedState(t).update(t=>(null==t&&(t={}),e.forEach(e=>{delete t[e]}),t)),yield this.decryptedState(t).update(t=>(null==t&&(t=[]),e.forEach(e=>{var i;(null==t?void 0:t.length)&&(t=null!==(i=t.filter(t=>t.id!=e))&&void 0!==i?i:[])}),t))})}encrypt(e,t){return N(this,void 0,void 0,function*(){const i=yield(0,g._)(this.keyService.orgKeys$(t).pipe((0,F.p)(e=>!!e),(0,v.T)(t=>t[e.organizationId])));return yield e.encrypt(i,this.encryptService)})}decryptMany$(e,t){if(null===e||0==e.length||null===t)return(0,p.of)([]);const i=[];return e.forEach(e=>{i.push((0,h.H)(e.decrypt(t[e.organizationId],this.encryptService)))}),(0,u.z)(i).pipe((0,v.T)(e=>e.sort(x.A.getSortFunction(this.i18nService,"name"))))}getAllNested(e){const t=this.groupByOrganization(e),i=[];for(const n of t.values()){const e=[];for(const t of n){const i=Object.assign(new f.iY(Object.assign(Object.assign({},t),{name:t.name})),t),n=t.name?t.name.replace(/^\/+|\/+$/g,"").split("/"):[];V.F.nestedTraverse(e,0,n,i,void 0,"/")}i.push(...e)}return i}groupByOrganization(e){const t=new Map;return e.map(e=>{var i;const n=e.organizationId;(null!==(i=t.get(n))&&void 0!==i?i:t.set(n,[]).get(n)).push(e)}),t}getNested(e,t){const i=this.getAllNested(e);return V.F.getTreeNodeObjectFromList(i,t)}setDecryptedCollections(e,t){return N(this,void 0,void 0,function*(){yield this.stateProvider.setUserState(O,e,t)})}}class Y{}class X{}var z=i(12277);class L{constructor(e,t,i,n){if(!e)throw new Error("Token is required");if(!t)throw new Error("Organization key is required");if(!i)throw new Error("Organization keys are required");if(!n)throw new Error("Collection name is required");this.token=e,this.key=t,this.keys=i,this.collectionName=n}}class W{}class K{constructor(e,t){this.keys=e,this.defaultUserCollectionName=t}}class Z{constructor(e){this.accessSecretsManager=!1,this.collections=[],this.emails=e.emails,this.type=e.type,this.groups=e.groups,this.permissions=e.permissions,this.collections=e.collections,this.accessSecretsManager=e.accessSecretsManager}}class H{constructor(e=!0,t=!1,i,n){this.resetMasterPassword=e,this.resetTwoFactor=t,this.newMasterPasswordHash=i,this.key=n}static newConstructor(e,t,i=!1){return new H(!0,i,e.masterPasswordAuthenticationHash,t.masterKeyWrappedUserKey)}}var J=i(7248);class q extends J.V{}class $ extends q{constructor(e){super(),this.organizationId=e}}class _{constructor(e){var t,i;this.type=e.type,this.accessSecretsManager=null!==(t=e.accessSecretsManager)&&void 0!==t&&t,this.collections=null!==(i=e.collections)&&void 0!==i?i:[],this.groups=e.groups,this.permissions=e.permissions,this.defaultUserCollectionName=e.defaultUserCollectionName}}class ee{constructor(e){this.ids=null==e?[]:e}}var te=i(95919),ie=i(73409),ne=i(20702);class re extends ne.r{constructor(e){var t,i,n;if(super(e),this.collections=[],this.groups=[],this.id=this.getResponseProperty("Id"),this.userId=this.getResponseProperty("UserId"),this.type=this.getResponseProperty("Type"),this.revocationReason=this.getResponseProperty("RevocationReason"),this.status=this.getResponseProperty("Status"),this.permissions=new te.n(this.getResponseProperty("Permissions")),this.externalId=this.getResponseProperty("ExternalId"),this.accessSecretsManager=null!==(t=this.getResponseProperty("AccessSecretsManager"))&&void 0!==t&&t,this.resetPasswordEnrolled=null!==(i=this.getResponseProperty("ResetPasswordEnrolled"))&&void 0!==i&&i,this.hasMasterPassword=null!==(n=this.getResponseProperty("HasMasterPassword"))&&void 0!==n&&n,null==this.id)throw new Error("Missing required property: Id");const r=this.getResponseProperty("Collections");null!=r&&(this.collections=r.map(e=>new ie.U(e)));const s=this.getResponseProperty("Groups");null!=s&&(this.groups=s)}}class se extends re{constructor(e){var t,i,n;if(super(e),this.name=this.getResponseProperty("Name"),this.email=this.getResponseProperty("Email"),this.avatarColor=this.getResponseProperty("AvatarColor"),this.twoFactorEnabled=null!==(t=this.getResponseProperty("TwoFactorEnabled"))&&void 0!==t&&t,this.usesKeyConnector=null!==(i=this.getResponseProperty("UsesKeyConnector"))&&void 0!==i&&i,this.claimedByOrganization=null!==(n=this.getResponseProperty("ClaimedByOrganization"))&&void 0!==n&&n,null==this.email)throw new Error("Missing required property: email")}}class oe extends re{constructor(e){var t;super(e),this.claimedByOrganization=null!==(t=this.getResponseProperty("ClaimedByOrganization"))&&void 0!==t&&t,this.ssoExternalId=this.getResponseProperty("SsoExternalId")}}class ae extends ne.r{constructor(e){super(e),this.organizationUserId=this.getResponseProperty("OrganizationUserId"),this.kdf=this.getResponseProperty("Kdf"),this.kdfIterations=this.getResponseProperty("KdfIterations"),this.kdfMemory=this.getResponseProperty("KdfMemory"),this.kdfParallelism=this.getResponseProperty("KdfParallelism"),this.masterPasswordSalt=this.getResponseProperty("MasterPasswordSalt"),this.resetPasswordKey=this.getResponseProperty("ResetPasswordKey"),this.encryptedPrivateKey=this.getResponseProperty("EncryptedPrivateKey")}}class le extends ne.r{constructor(e){super(e),this.id=this.getResponseProperty("Id"),this.error=this.getResponseProperty("Error")}}class ce extends ne.r{constructor(e){super(e),this.id=this.getResponseProperty("Id"),this.userId=this.getResponseProperty("UserId"),this.key=this.getResponseProperty("Key")}}class de extends ne.r{constructor(e){super(e),this.id=this.getResponseProperty("Id"),this.userId=this.getResponseProperty("UserId"),this.email=this.getResponseProperty("Email"),this.name=this.getResponseProperty("Name"),this.type=this.getResponseProperty("Type"),this.status=this.getResponseProperty("Status")}}class ue extends ne.r{constructor(e){super(e),this.id=this.getResponseProperty("Id"),this.userId=this.getResponseProperty("UserId")}}var he=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Ae{constructor(e){this.apiService=e}getOrganizationUser(e,t,i){return he(this,void 0,void 0,function*(){const n=new URLSearchParams;(null==i?void 0:i.includeGroups)&&n.set("includeGroups","true");const r=yield this.apiService.send("GET",`/organizations/${e}/users/${t}?${n.toString()}`,null,!0,!0);return new oe(r)})}getAllUsers(e,t){return he(this,void 0,void 0,function*(){const i=new URLSearchParams;(null==t?void 0:t.includeCollections)&&i.set("includeCollections","true"),(null==t?void 0:t.includeGroups)&&i.set("includeGroups","true");const n=yield this.apiService.send("GET",`/organizations/${e}/users?${i.toString()}`,null,!0,!0);return new z.s(n,se)})}getAllMiniUserDetails(e){return he(this,void 0,void 0,function*(){const t=yield this.apiService.send("GET",`/organizations/${e}/users/mini-details`,null,!0,!0);return new z.s(t,de)})}getOrganizationUserResetPasswordDetails(e,t){return he(this,void 0,void 0,function*(){const i=yield this.apiService.send("GET","/organizations/"+e+"/users/"+t+"/reset-password-details",null,!0,!0);return new ae(i)})}getManyOrganizationUserAccountRecoveryDetails(e,t){return he(this,void 0,void 0,function*(){const i=yield this.apiService.send("POST","/organizations/"+e+"/users/account-recovery-details",new ee(t),!0,!0);return new z.s(i,ae)})}postOrganizationUserInvite(e,t){return this.apiService.send("POST","/organizations/"+e+"/users/invite",t,!0,!1)}postOrganizationUserReinvite(e,t){return this.apiService.send("POST","/organizations/"+e+"/users/"+t+"/reinvite",null,!0,!1)}postManyOrganizationUserReinvite(e,t){return he(this,void 0,void 0,function*(){const i=yield this.apiService.send("POST","/organizations/"+e+"/users/reinvite",new ee(t),!0,!0);return new z.s(i,le)})}postOrganizationUserAcceptInit(e,t,i){return this.apiService.send("POST","/organizations/"+e+"/users/"+t+"/accept-init",i,!0,!1)}postOrganizationUserAccept(e,t,i){return this.apiService.send("POST","/organizations/"+e+"/users/"+t+"/accept",i,!0,!1)}postOrganizationUserConfirm(e,t,i){return this.apiService.send("POST","/organizations/"+e+"/users/"+t+"/confirm",i,!0,!1)}postOrganizationUserAutoConfirm(e,t,i){return this.apiService.send("POST","/organizations/"+e+"/users/"+t+"/auto-confirm",i,!0,!1)}postOrganizationUsersPublicKey(e,t){return he(this,void 0,void 0,function*(){const i=yield this.apiService.send("POST","/organizations/"+e+"/users/public-keys",new ee(t),!0,!0);return new z.s(i,ce)})}postOrganizationUserBulkConfirm(e,t){return he(this,void 0,void 0,function*(){const i=yield this.apiService.send("POST","/organizations/"+e+"/users/confirm",t,!0,!0);return new z.s(i,le)})}putOrganizationUserBulkEnableSecretsManager(e,t){return he(this,void 0,void 0,function*(){yield this.apiService.send("PUT","/organizations/"+e+"/users/enable-secrets-manager",new ee(t),!0,!1)})}putOrganizationUser(e,t,i){return this.apiService.send("PUT","/organizations/"+e+"/users/"+t,i,!0,!1)}putOrganizationUserResetPasswordEnrollment(e,t,i){return this.apiService.send("PUT","/organizations/"+e+"/users/"+t+"/reset-password-enrollment",i,!0,!1)}putOrganizationUserRecoverAccount(e,t,i){return this.apiService.send("PUT","/organizations/"+e+"/users/"+t+"/recover-account",i,!0,!1)}removeOrganizationUser(e,t){return this.apiService.send("DELETE","/organizations/"+e+"/users/"+t,null,!0,!1)}removeManyOrganizationUsers(e,t){return he(this,void 0,void 0,function*(){const i=yield this.apiService.send("DELETE","/organizations/"+e+"/users",new ee(t),!0,!0);return new z.s(i,le)})}revokeOrganizationUser(e,t){return this.apiService.send("PUT","/organizations/"+e+"/users/"+t+"/revoke",null,!0,!1)}revokeManyOrganizationUsers(e,t){return he(this,void 0,void 0,function*(){const i=yield this.apiService.send("PUT","/organizations/"+e+"/users/revoke",new ee(t),!0,!0);return new z.s(i,le)})}revokeSelf(e){return this.apiService.send("PUT","/organizations/"+e+"/users/revoke-self",null,!0,!1)}restoreOrganizationUser(e,t,i){return this.apiService.send("PUT","/organizations/"+e+"/users/"+t+"/restore/vnext",i,!0,!1)}restoreManyOrganizationUsers(e,t){return he(this,void 0,void 0,function*(){const i=yield this.apiService.send("PUT","/organizations/"+e+"/users/restore",t,!0,!0);return new z.s(i,le)})}deleteOrganizationUser(e,t){return this.apiService.send("DELETE","/organizations/"+e+"/users/"+t+"/delete-account",null,!0,!1)}deleteManyOrganizationUsers(e,t){return he(this,void 0,void 0,function*(){const i=yield this.apiService.send("DELETE","/organizations/"+e+"/users/delete-account",new ee(t),!0,!0);return new z.s(i,le)})}getPendingAutoConfirmUsers(e){return he(this,void 0,void 0,function*(){const t=yield this.apiService.send("GET","/organizations/"+e+"/users/pending-auto-confirm",null,!0,!0);return new z.s(t,ue)})}postBulkOrganizationUserAutoConfirm(e,t){return he(this,void 0,void 0,function*(){const i=yield this.apiService.send("POST","/organizations/"+e+"/users/bulk-auto-confirm",t,!0,!0);return new z.s(i,le)})}}var pe=i(7356),ge=i(3633);class ve{constructor(e,t){this.ids=e,this.defaultUserCollectionName=t}}class me{constructor(e){this.defaultUserCollectionName=e}}class fe{constructor(e,t,i,n,r){this.keyService=e,this.encryptService=t,this.organizationUserApiService=i,this.accountService=n,this.i18nService=r}orgKey$(e){return this.accountService.activeAccount$.pipe(ge.F6,(0,A.n)(e=>this.keyService.orgKeys$(e)),(0,F.p)(e=>!!e),(0,v.T)(t=>t[e.id]))}buildConfirmRequest(e,t){const i=this.getEncryptedDefaultCollectionName$(e),n=this.orgKey$(e).pipe((0,A.n)(e=>this.encryptService.encapsulateKeyUnsigned(e,t)));return(0,u.z)([n,i]).pipe((0,v.T)(([e,t])=>({key:e.encryptedString,defaultUserCollectionName:t.encryptedString})))}confirmUser(e,t,i){return this.buildConfirmRequest(e,i).pipe((0,A.n)(i=>this.organizationUserApiService.postOrganizationUserConfirm(e.id,t,i)))}bulkConfirmUsers(e,t){return this.getEncryptedDefaultCollectionName$(e).pipe((0,A.n)(i=>{const n=new K(t,i.encryptedString);return this.organizationUserApiService.postOrganizationUserBulkConfirm(e.id,n)}))}buildRestoreUserRequest(e){return this.getEncryptedDefaultCollectionName$(e).pipe((0,v.T)(e=>new me(e.encryptedString)))}restoreUser(e,t){return this.buildRestoreUserRequest(e).pipe((0,A.n)(i=>this.organizationUserApiService.restoreOrganizationUser(e.id,t,i)))}bulkRestoreUsers(e,t){return this.getEncryptedDefaultCollectionName$(e).pipe((0,A.n)(i=>{const n=new ve(t,i.encryptedString);return this.organizationUserApiService.restoreManyOrganizationUsers(e.id,n)}))}updateUser(e,t,i){return!(i.type===pe.D7.Owner||i.type===pe.D7.Admin)&&e.useMyItems&&e.usePolicies?this.getEncryptedDefaultCollectionName$(e).pipe((0,A.n)(n=>(i.defaultUserCollectionName=n.encryptedString,(0,h.H)(this.organizationUserApiService.putOrganizationUser(e.id,t,i))))):(0,h.H)(this.organizationUserApiService.putOrganizationUser(e.id,t,i))}getEncryptedDefaultCollectionName$(e){return this.orgKey$(e).pipe((0,A.n)(e=>this.encryptService.encryptString(this.i18nService.t("myItems"),e)))}}},23327(e,t,i){"use strict";i.d(t,{U:()=>p});var n=i(24590),r=i(20266),s=i(51111),o=i(36951),a=i(87895),l=i(46730),c=i(71804),d=i(45383),u=i(14041),h=i(8168);function A(e,t){if(1&e&&(u.j41(0,"div",0),u.nrm(1,"bit-svg",1),u.k0s()),2&e){const e=u.XpG();u.R7$(),u.Y8G("content",e.IconProviderMap[e.provider()])("ariaLabel",e.name())}}class p{constructor(){this.provider=n.hFB.required(),this.name=(0,n.hFB)(),this.IconProviderMap={[c.R.Authenticator]:r.m,[c.R.Duo]:s.x,[c.R.Email]:o.f,[c.R.OrganizationDuo]:s.x,[c.R.WebAuthn]:a.R,[c.R.Yubikey]:l.C}}}p.ɵfac=function(e){return new(e||p)},p.ɵcmp=u.VBU({type:p,selectors:[["auth-two-factor-icon"]],inputs:{provider:[1,"provider"],name:[1,"name"]},decls:1,vars:1,consts:[[1,"tw-size-[70px]","tw-content-center"],[3,"content","ariaLabel"]],template:function(e,t){1&e&&u.nVh(0,A,2,2,"div",0),2&e&&u.vxM(t.IconProviderMap[t.provider()]?0:-1)},dependencies:[d.Z,h.k],encapsulation:2,changeDetection:0})},31539(e,t,i){"use strict";i.d(t,{CV:()=>f,W_:()=>p,HG:()=>E,EO:()=>k,Xt:()=>T,Z6:()=>M});var n=i(11217),r=i(26983),s=i(68108),o=i(35500),a=i(68455),l=i(84110),c=i(81441),d=i(52057),u=i(83541),h=i(83516),A=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const p=(e,t)=>A(void 0,void 0,void 0,function*(){const e=(0,n.WQX)(a.u),i=(0,n.WQX)(r.Ix),A=(0,n.WQX)(h.U),p=(0,n.WQX)(d.K),g=(0,n.WQX)(o.D),v=(0,n.WQX)(u.L),m=yield e.getAuthStatus();if(m===l.J.LoggedOut)return A.send("authBlocked",{url:t.url}),!1;const f=(yield(0,s._)(g.activeAccount$)).id,y=yield(0,s._)(v.forceSetPasswordReason$(f));if(m===l.J.Locked&&y===c.n.SsoNewJitProvisionedUser&&!t.url.includes("set-initial-password"))return i.createUrlTree(["/set-initial-password"]);if(m===l.J.Locked&&y===c.n.TdeOffboardingUntrustedDevice&&!t.url.includes("set-initial-password"))return i.createUrlTree(["/set-initial-password"]);if(m===l.J.Locked&&y!==c.n.SsoNewJitProvisionedUser&&y!==c.n.TdeOffboardingUntrustedDevice)return null!=t&&A.send("lockedUrl",{url:t.url}),i.createUrlTree(["lock"],{queryParams:{promptBiometric:!0}});if((y===c.n.TdeUserWithoutPasswordHasPasswordResetPermission||y===c.n.TdeOffboarding)&&!t.url.includes("set-initial-password")){const e="/set-initial-password";return i.createUrlTree([e])}if((y===c.n.AdminForcePasswordReset||y===c.n.WeakMasterPassword)&&!t.url.includes("change-password")){const e="/change-password";return i.createUrlTree([e])}return!(y==c.n.None&&!t.url.includes("remove-password")&&(yield(0,s._)(p.convertAccountRequired$)))||i.createUrlTree(["/remove-password"])});var g=i(28990),v=i(56962),m=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function f(){return()=>m(this,void 0,void 0,function*(){const e=(0,n.WQX)(g.sg),t=(0,n.WQX)(v.K),i=(0,n.WQX)(r.Ix);return null!==(yield(0,s._)(e.currentAuthType$))||(t.error("No active login session found."),i.createUrlTree(["/login"]))})}var y=i(3633);var b=i(62166),C=i(39935),I=i(16184),w=i(8916),B=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function E(){return(e,t)=>B(this,void 0,void 0,function*(){const t=(0,n.WQX)(a.u),i=(0,n.WQX)(w.Lu),c=(0,n.WQX)(C.M),u=(0,n.WQX)(r.Ix),h=(0,n.WQX)(b.i),A=(0,n.WQX)(I.ep),p=(0,n.WQX)(o.D),g=(0,n.WQX)(d.K),v=yield(0,s._)(p.activeAccount$);if(!v)return u.createUrlTree(["/"]);if((yield(0,s._)(t.authStatusFor$(v.id)))!==l.J.Locked)return u.createUrlTree(["/"]);if(null!=(yield(0,s._)(g.requiresDomainConfirmation$(v.id))))return u.createUrlTree(["confirm-key-connector-domain"]);if(!(yield A.canLock(v.id)))return!1;const m=yield(0,s._)(c.supportsDeviceTrust$);if("login-initiated"===e.queryParams.from&&m&&(yield h.hasMasterPassword()))return!0;const f=yield(0,s._)(i.everHadUserKey$(v.id));return!(m&&!f)})}var S=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Q={loggedIn:"/vault",loggedOut:"/login",locked:"/lock",notDecrypted:"/login-initiated"};function k(e={}){const t=Object.assign(Object.assign({},Q),e);return e=>S(this,void 0,void 0,function*(){const i=(0,n.WQX)(a.u),c=(0,n.WQX)(w.Lu),d=(0,n.WQX)(C.M),u=(0,n.WQX)(o.D),h=(0,n.WQX)(v.K),A=(0,n.WQX)(r.Ix),p=yield i.getAuthStatus();if(p===l.J.LoggedOut)return A.createUrlTree([t.loggedOut],{queryParams:e.queryParams});if(p===l.J.Unlocked)return A.createUrlTree([t.loggedIn],{queryParams:e.queryParams});const g=yield(0,s._)(d.supportsDeviceTrust$),m=yield(0,s._)(u.activeAccount$.pipe(y.F6)),f=yield(0,s._)(c.everHadUserKey$(m));return p===l.J.Locked&&g&&!f?(h.info("Sending user to TDE decryption options. AuthStatus is %s. TDE support is %s. Ever had user key is %s.",l.J[p],g,f),A.createUrlTree([t.notDecrypted],{queryParams:e.queryParams})):p===l.J.Locked?A.createUrlTree([t.locked],{queryParams:e.queryParams}):A.createUrlTree(["/"])})}var R=i(69783),F=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function T(){return(e,t)=>F(this,void 0,void 0,function*(){const e=(0,n.WQX)(a.u),t=(0,n.WQX)(w.Lu),i=(0,n.WQX)(C.M),c=(0,n.WQX)(o.D),d=(0,n.WQX)(v.K),u=(0,n.WQX)(r.Ix),h=yield(0,s._)(c.activeAccount$.pipe((0,R.T)(e=>null==e?void 0:e.id)));if(null==h)return u.createUrlTree(["/"]);const A=yield e.getAuthStatus(),p=yield(0,s._)(i.supportsDeviceTrust$),g=yield(0,s._)(t.everHadUserKey$(h));return A!==l.J.Locked||!p||g?u.createUrlTree(["/"]):(d.info("Sending user to TDE decryption options. AuthStatus is %s. TDE support is %s. Ever had user key is %s.",l.J[A],p,g),!0)})}var D=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const P={homepage:()=>"/vault",locked:"/lock"};function M(e={}){return t=>D(this,void 0,void 0,function*(){return function(e,t){return D(this,void 0,void 0,function*(){const e=(0,n.WQX)(o.D),i=(0,n.WQX)(a.u),c=(0,n.WQX)(r.Ix),d=(0,n.WQX)(w.Lu),u=(0,n.WQX)(C.M),h=(0,n.WQX)(v.K),A=yield(0,s._)(e.activeAccount$);if(!A)return!0;const p=yield(0,s._)(i.authStatusFor$(A.id));if(null==p||p===l.J.LoggedOut)return!0;if(p===l.J.Unlocked)return c.createUrlTree([t.homepage()]);const g=yield(0,s._)(u.supportsDeviceTrustByUserId$(A.id)),m=yield(0,s._)(d.everHadUserKey$(A.id));return p===l.J.Locked&&g&&!m?(h.info("Sending user to TDE decryption options. AuthStatus is %s. TDE support is %s. Ever had user key is %s.",l.J[p],g,m),c.createUrlTree(["/login-initiated"])):c.createUrlTree([t.locked])})}(0,Object.assign(Object.assign({},P),e))})}},30675(e,t,i){"use strict";i.d(t,{a:()=>n.a});var n=i(37856)},37856(e,t,i){"use strict";i.d(t,{a:()=>C});var n=i(24590),r=i(11217),s=i(43090),o=i(36288),a=i(58604),l=i(36801),c=i(92128),d=i(68108),u=i(14041),h=i(58329),A=i(35500),p=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class g{constructor(e,t,i,n,r){this.templateRef=e,this.viewContainer=t,this.billingAccountProfileStateService=i,this.destroyRef=n,this.accountService=r}ngOnInit(){return p(this,void 0,void 0,function*(){const e=yield(0,d._)(this.accountService.activeAccount$);e?this.billingAccountProfileStateService.hasPremiumFromAnySource$(e.id).pipe((0,c.pQ)(this.destroyRef)).subscribe(e=>{e?this.viewContainer.clear():this.viewContainer.createEmbeddedView(this.templateRef)}):this.viewContainer.createEmbeddedView(this.templateRef)})}}g.ɵfac=function(e){return new(e||g)(u.rXU(u.C4Q),u.rXU(u.c1b),u.rXU(h.Q),u.rXU(r.abz),u.rXU(A.D))},g.ɵdir=u.FsC({type:g,selectors:[["","appNotPremium",""]]});var v=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function m(e,t){if(1&e){const e=u.RV6();u.j41(0,"button",3),u.nI1(1,"i18n"),u.bIt("click",function(t){r.eBV(e);const i=u.XpG(2);return r.Njj(i.promptForPremium(t))}),u.k0s()}2&e&&u.Y8G("label",u.bMT(1,1,"upgradeToPremium"))}function f(e,t){1&e&&u.DNE(0,m,2,3,"button",2)}function y(e,t){if(1&e){const e=u.RV6();u.j41(0,"button",5),u.nI1(1,"i18n"),u.bIt("click",function(t){r.eBV(e);const i=u.XpG(2);return r.Njj(i.promptForPremium(t))}),u.k0s()}2&e&&u.Y8G("variant","accent-primary")("label",u.bMT(1,2,"upgrade"))}function b(e,t){1&e&&u.DNE(0,y,2,4,"button",4)}class C{constructor(){this.organizationId=(0,n.hFB)(),this.iconOnly=(0,n.hFB)(!1),this.premiumUpgradePromptService=(0,r.WQX)(s.l)}promptForPremium(e){return v(this,void 0,void 0,function*(){e.stopPropagation(),e.preventDefault(),yield this.premiumUpgradePromptService.promptForPremium(this.organizationId())})}}C.ɵfac=function(e){return new(e||C)},C.ɵcmp=u.VBU({type:C,selectors:[["app-premium-badge"]],inputs:{organizationId:[1,"organizationId"],iconOnly:[1,"iconOnly"]},decls:2,vars:1,consts:[["type","button","buttonType","side-nav","size","xsmall","bitIconButton","bwi-premium",3,"label"],["type","button","bit-chip-action","","startIcon","bwi-premium",3,"variant","label"],["type","button","buttonType","side-nav","size","xsmall","bitIconButton","bwi-premium",3,"label","click",4,"appNotPremium"],["type","button","buttonType","side-nav","size","xsmall","bitIconButton","bwi-premium",3,"click","label"],["type","button","bit-chip-action","","startIcon","bwi-premium",3,"variant","label","click",4,"appNotPremium"],["type","button","bit-chip-action","","startIcon","bwi-premium",3,"click","variant","label"]],template:function(e,t){1&e&&u.nVh(0,f,1,0,"button",0)(1,b,1,0,"button",1),2&e&&u.vxM(t.iconOnly()?0:1)},dependencies:[o.s,a.g,g,l.$Z],encapsulation:2,changeDetection:0})},71613(e,t,i){"use strict";i.d(t,{a:()=>n});class n{}},5771(e,t,i){"use strict";i.d(t,{k:()=>o});var n=i(56962),r=i(14041),s=i(2471);class o{constructor(e,t,i){this.el=e,this.validationService=t,this.logService=i}ngOnChanges(e){null!=this.appApiAction&&null!=this.appApiAction.then&&(this.el.nativeElement.loading=!0,this.appApiAction.then(e=>{this.el.nativeElement.loading=!1},e=>{var t;this.el.nativeElement.loading=!1,null===(t=this.logService)||void 0===t||t.error("Received API exception:",e),this.validationService.showError(e)}))}}o.ɵfac=function(e){return new(e||o)(r.rXU(r.aKT),r.rXU(s.B),r.rXU(n.K))},o.ɵdir=r.FsC({type:o,selectors:[["","appApiAction",""]],inputs:{appApiAction:"appApiAction"},standalone:!1,features:[r.OA$]})},65963(e,t,i){"use strict";i.d(t,{J:()=>s});var n=i(14041),r=i(84210);class s{constructor(e,t){this.el=e,this.ngControl=t}onInput(){const e=this.el.nativeElement.value.replace(/\s+/g,"");this.ngControl.control.setValue(e)}}s.ɵfac=function(e){return new(e||s)(n.rXU(n.aKT),n.rXU(r.vO,2))},s.ɵdir=n.FsC({type:s,selectors:[["input","appInputStripSpaces",""]],hostBindings:function(e,t){1&e&&n.bIt("input",function(){return t.onInput()})}})},57083(e,t,i){"use strict";i.d(t,{q:()=>r});var n=i(14041);class r{set appInputVerbatim(e){this.disableComplete=""===e||!0===e}constructor(e,t){this.el=e,this.renderer=t}ngOnInit(){this.disableComplete&&!this.el.nativeElement.hasAttribute("autocomplete")&&this.renderer.setAttribute(this.el.nativeElement,"autocomplete","off"),this.el.nativeElement.hasAttribute("autocapitalize")||this.renderer.setAttribute(this.el.nativeElement,"autocapitalize","none"),this.el.nativeElement.hasAttribute("autocorrect")||this.renderer.setAttribute(this.el.nativeElement,"autocorrect","none"),this.el.nativeElement.hasAttribute("spellcheck")||this.renderer.setAttribute(this.el.nativeElement,"spellcheck","false"),this.el.nativeElement.hasAttribute("inputmode")||this.renderer.setAttribute(this.el.nativeElement,"inputmode","verbatim")}}r.ɵfac=function(e){return new(e||r)(n.rXU(n.aKT),n.rXU(n.sFG))},r.ɵdir=n.FsC({type:r,selectors:[["","appInputVerbatim",""]],inputs:{appInputVerbatim:"appInputVerbatim"}})},93103(e,t,i){"use strict";i.d(t,{Y:()=>r});var n=i(14041);class r{onClick(e){e.preventDefault()}}r.ɵfac=function(e){return new(e||r)},r.ɵdir=n.FsC({type:r,selectors:[["","appStopClick",""]],hostBindings:function(e,t){1&e&&n.bIt("click",function(e){return t.onClick(e)})}})},47428(e,t,i){"use strict";i.d(t,{x:()=>r});var n=i(14041);class r{onClick(e){e.stopPropagation()}}r.ɵfac=function(e){return new(e||r)},r.ɵdir=n.FsC({type:r,selectors:[["","appStopProp",""]],hostBindings:function(e,t){1&e&&n.bIt("click",function(e){return t.onClick(e)})}})},94735(e,t,i){"use strict";i.d(t,{p:()=>N});var n=i(46758),r=i(84210),s=i(21371),o=i(63636),a=i(24590),l=i(11217),c=i(36801),d=i(22191),u=i(75583),h=i(14041),A=i(36288),p=i(58806);function g(e,t){1&e&&(h.j41(0,"p",3),h.EFF(1),h.k0s()),2&e&&(h.R7$(),h.JRh(t))}function v(e,t){if(1&e&&(h.j41(0,"p",4),h.EFF(1),h.k0s()),2&e){const e=t.$implicit;h.R7$(),h.SpI(" ",e," ")}}const m={success:{icon:"bwi-check-circle",bgColor:"tw-bg-success-100"},error:{icon:"bwi-error",bgColor:"tw-bg-danger-100"},info:{icon:"bwi-info-circle",bgColor:"tw-bg-info-100"},warning:{icon:"bwi-exclamation-triangle",bgColor:"tw-bg-warning-100"}};class f{constructor(){this.variant=(0,a.hFB)("info"),this.message=a.hFB.required(),this.title=(0,a.hFB)(),this.progressWidth=(0,a.hFB)(0),this.onClose=new l.bkB}get iconClass(){return m[this.variant()].icon}get bgColor(){return m[this.variant()].bgColor}get messageArray(){const e=this.message();return Array.isArray(e)?e:[e]}}f.ɵfac=function(e){return new(e||f)},f.ɵcmp=h.VBU({type:f,selectors:[["bit-toast"]],inputs:{variant:[1,"variant"],message:[1,"message"],title:[1,"title"],progressWidth:[1,"progressWidth"]},outputs:{onClose:"onClose"},decls:13,vars:16,consts:[[1,"tw-flex","tw-items-center","tw-gap-4","tw-px-2","tw-pb-1","tw-pt-2"],["aria-hidden","true"],[1,"tw-sr-only"],["data-testid","toast-title",1,"tw-font-medium","tw-mb-0"],["bitTypography","body2","data-testid","toast-message",1,"tw-mb-2","last:tw-mb-0"],["bitIconButton","bwi-close","buttonType","primaryGhost","type","button","size","small",1,"tw-ms-auto","hover:tw-border-text-main","focus-visible:before:tw-ring-text-main",3,"click","label"],[1,"tw-h-1","tw-w-full","tw-bg-text-main/30"]],template:function(e,t){if(1&e&&(h.j41(0,"div")(1,"div",0),h.nrm(2,"i",1),h.j41(3,"div")(4,"span",2),h.EFF(5),h.nI1(6,"i18n"),h.k0s(),h.nVh(7,g,2,1,"p",3),h.Z7z(8,v,2,1,"p",4,h.fX1),h.k0s(),h.j41(10,"button",5),h.nI1(11,"i18n"),h.bIt("click",function(){return t.onClose.emit()}),h.k0s()(),h.nrm(12,"div",6),h.k0s()),2&e){let e;h.HbH(h.VkB("tw-mb-1 tw-min-w-[--bit-toast-width] tw-text-main tw-flex tw-flex-col tw-justify-between tw-rounded-md tw-pointer-events-auto tw-cursor-default tw-overflow-hidden tw-shadow-lg ",t.bgColor)),h.BMQ("role","error"===t.variant()?"alert":null),h.R7$(2),h.HbH(h.VkB("bwi tw-text-xl tw-py-1.5 tw-px-2.5 ",t.iconClass)),h.R7$(3),h.JRh(h.bMT(6,12,t.variant())),h.R7$(2),h.vxM((e=t.title())?7:-1,e),h.R7$(),h.Dyx(t.messageArray),h.R7$(2),h.Y8G("label",h.bMT(11,14,"close")),h.R7$(2),h.xc7("width",t.progressWidth()+"%")}},dependencies:[d.Q,A.s,u.E,p.r,c.$Z],encapsulation:2});class y extends s.y8{constructor(e,t){super(e,t)}}y.ɵfac=function(e){return new(e||y)(h.rXU(s.tw),h.rXU(s.sn))},y.ɵcmp=h.VBU({type:y,selectors:[["ng-component"]],features:[h.Vt3],decls:1,vars:4,consts:[[3,"onClose","title","variant","message","progressWidth"]],template:function(e,t){1&e&&(h.j41(0,"bit-toast",0),h.bIt("onClose",function(){return t.remove()}),h.k0s()),2&e&&h.Y8G("title",null==t.options||null==t.options.payload?null:t.options.payload.title)("variant",null==t.options||null==t.options.payload?null:t.options.payload.variant)("message",null==t.options||null==t.options.payload?null:t.options.payload.message)("progressWidth",t.width())},dependencies:[f],encapsulation:2,data:{animation:[(0,o.hZ)("flyInOut",[(0,o.wk)("inactive",(0,o.iF)({opacity:0})),(0,o.wk)("active",(0,o.iF)({opacity:1})),(0,o.wk)("removed",(0,o.iF)({opacity:0})),(0,o.kY)("inactive => active",(0,o.i0)("{{ easeTime }}ms {{ easing }}")),(0,o.kY)("active => removed",(0,o.i0)("{{ easeTime }}ms {{ easing }}"))])]}});class b{static forRoot(e={}){return{ngModule:b,providers:[{provide:s.lt,useValue:{default:C,config:e}}]}}}b.ɵfac=function(e){return new(e||b)},b.ɵmod=h.$C({type:b}),b.ɵinj=l.G2t({});const C=Object.assign(Object.assign({},s.H5),{toastComponent:y,tapToDismiss:!1,timeOut:5e3,extendedTimeOut:2e3,maxOpened:5,autoDismiss:!0,progressBar:!0});var I=i(37579),w=i(8297),B=i(26411),E=i(8433),S=i(29029),Q=i(80351),k=i(47135),R=i(81573),F=i(47659),T=i(90647),D=i(59525),P=i(45383),M=i(26477),x=i(2096),V=i(34530),G=i(90171),U=i(58270),O=i(26333);class N{}N.ɵfac=function(e){return new(e||N)},N.ɵmod=h.$C({type:N}),N.ɵinj=l.G2t({providers:[n.vh,c.$Z,V.R,G.b,U.c,x.n],imports:[b.forRoot({maxOpened:5,autoDismiss:!0,closeButton:!0}),n.MD,r.YN,r.X1,I.C,w.K,B.L,E.p,S.t,Q.j,k.q,R.P,u.E,F.b,T.M,D.s,d.Q,P.Z,M.V,O.R,b]})},2096(e,t,i){"use strict";i.d(t,{n:()=>r});var n=i(14041);class r{transform(e,t,i){return`${e} ${1===e?t:i}`}}r.ɵfac=function(e){return new(e||r)},r.ɵpipe=n.EJ8({name:"pluralize",type:r,pure:!0})},34530(e,t,i){"use strict";i.d(t,{R:()=>r});var n=i(14041);class r{transform(e,t,i,n,r){return null==e||0===e.length?[]:null==t||t.length<2?e:(t=t.trim().toLowerCase(),e.filter(e=>{if(null!=i){const n="function"==typeof i?i(e):e[i];if((null==n?void 0:n.toString().toLowerCase().indexOf(t))>-1)return!0}if(null!=n){const i="function"==typeof n?n(e):e[n];if((null==i?void 0:i.toString().toLowerCase().indexOf(t))>-1)return!0}if(null!=r){const i="function"==typeof r?r(e):e[r];if((null==i?void 0:i.toString().toLowerCase().indexOf(t))>-1)return!0}return!1}))}}r.ɵfac=function(e){return new(e||r)},r.ɵpipe=n.EJ8({name:"search",type:r,pure:!0,standalone:!1})},90171(e,t,i){"use strict";i.d(t,{b:()=>r});var n=i(14041);class r{transform(e){return null==e||null==e.name&&null==e.email?null:null==e.name||""===e.name.trim()?e.email:e.name}}r.ɵfac=function(e){return new(e||r)},r.ɵpipe=n.EJ8({name:"userName",type:r,pure:!0})},58270(e,t,i){"use strict";i.d(t,{c:()=>o});var n=i(7356),r=i(14041),s=i(50700);class o{constructor(e){this.i18nService=e}transform(e){if(null==e)return this.i18nService.t("unknown");switch(e){case n.D7.Owner:return this.i18nService.t("owner");case n.D7.Admin:return this.i18nService.t("admin");case n.D7.User:return this.i18nService.t("user");case n.D7.Custom:return this.i18nService.t("custom")}}}o.ɵfac=function(e){return new(e||o)(r.rXU(s.W,16))},o.ɵpipe=r.EJ8({name:"userType",type:o,pure:!0})},21495(e,t,i){"use strict";i.d(t,{F:()=>n.F});var n=i(36801)},47836(e,t,i){"use strict";i.d(t,{Z:()=>n});class n{}},2073(e,t,i){"use strict";i.d(t,{A5:()=>c,G$:()=>d,Hq:()=>y,Kk:()=>I,Pn:()=>g,U1:()=>A,Ug:()=>b,Vc:()=>h,Xk:()=>p,aZ:()=>n.aZ,dZ:()=>u,de:()=>m,e$:()=>l,eL:()=>v,jf:()=>r,ml:()=>a,mq:()=>f,oq:()=>C,qQ:()=>s,ye:()=>o});var n=i(36801);const r=new n.aZ("WINDOW"),s=new n.aZ("DOCUMENT"),o=new n.aZ("OBSERVABLE_MEMORY_STORAGE"),a=new n.aZ("OBSERVABLE_DISK_STORAGE"),l=new n.aZ("OBSERVABLE_DISK_LOCAL_STORAGE"),c=new n.aZ("MEMORY_STORAGE"),d=new n.aZ("SECURE_STORAGE"),u=new n.aZ("LOGOUT_CALLBACK"),h=new n.aZ("SUPPORTS_SECURE_STORAGE"),A=new n.aZ("LOCALES_DIRECTORY"),p=new n.aZ("SYSTEM_LANGUAGE"),g=new n.aZ("LOG_MAC_FAILURES"),v=new n.aZ("SYSTEM_THEME_OBSERVABLE"),m=new n.aZ("DEFAULT_VAULT_TIMEOUT"),f=new n.aZ("INTRAPROCESS_MESSAGING_SUBJECT"),y=new n.aZ("CLIENT_TYPE"),b=new n.aZ("REFRESH_ACCESS_TOKEN_ERROR_CALLBACK"),C=new n.aZ("ENV_ADDITIONAL_REGIONS"),I=new n.aZ("HTTP_OPERATIONS")},50790(e,t,i){"use strict";i.d(t,{I:()=>a});var n=i(84330),r=i(11217),s=i(66316),o=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class a{constructor(e){this.dialogService=e}viewPasswordHistory(e){return o(this,void 0,void 0,function*(){(0,n.IN)(this.dialogService,{data:{cipher:e}})})}}a.ɵfac=function(e){return new(e||a)(r.KVO(s.o))},a.ɵprov=r.jDH({token:a,factory:a.ɵfac})},49355(e,t,i){"use strict";i.d(t,{k:()=>p});var n=i(46758),r=i(11217),s=i(63457),o=i(50060),a=i(26411),l=i(94735),c=i(24590),d=i(14041),u=i(50700),h=i(93199),A=i(25740);class p{set password(e){this.updatePasswordStrength(e)}constructor(e,t,i){this.i18nService=e,this.passwordStrengthService=t,this.cdr=i,this.size="default",this.showText=!1,this.passwordStrengthScore=new r.bkB,this.passwordScoreTextWithColor=new r.bkB,this.scoreWidth=0,this.color="danger"}ngOnChanges(e){e.password||(this.passwordStrengthTimeout=setTimeout(()=>{this.applyVisuals(),this.cdr.markForCheck()},300))}updatePasswordStrength(e){var t;if(null!=this.passwordStrengthTimeout&&clearTimeout(this.passwordStrengthTimeout),e){const i=this.passwordStrengthService.getPasswordStrength(e,this.email,null===(t=this.name)||void 0===t?void 0:t.trim().toLowerCase().split(" "));this.passwordScore=null==i?null:i.score}else this.passwordScore=null;this.passwordStrengthScore.emit(this.passwordScore),this.applyVisuals(),this.cdr.markForCheck()}applyVisuals(){switch(this.scoreWidth=null==this.passwordScore?0:20*(this.passwordScore+1),this.passwordScore){case 4:this.color="success",this.text=this.i18nService.t("strong");break;case 3:this.color="primary",this.text=this.i18nService.t("good");break;case 2:this.color="warning",this.text=this.i18nService.t("weak");break;default:this.color="danger",this.text=null!=this.passwordScore?this.i18nService.t("weak"):null}this.passwordScoreTextWithColor.emit({color:this.color,text:this.text})}}p.ɵfac=function(e){return new(e||p)(d.rXU(u.W),d.rXU(s.Q),d.rXU(c.gRc))},p.ɵcmp=d.VBU({type:p,selectors:[["tools-password-strength"]],inputs:{size:"size",showText:"showText",email:"email",name:"name",password:"password"},outputs:{passwordStrengthScore:"passwordStrengthScore",passwordScoreTextWithColor:"passwordScoreTextWithColor"},features:[d.OA$],decls:6,vars:8,consts:[[3,"variant","hideStartHint","value"],["slot","start"],["aria-live","polite",1,"tw-sr-only"]],template:function(e,t){1&e&&(d.j41(0,"bit-progress-bar",0)(1,"bit-hint",1),d.EFF(2),d.k0s()(),d.j41(3,"div",2),d.EFF(4),d.nI1(5,"i18n"),d.k0s()),2&e&&(d.Y8G("variant",t.color)("hideStartHint",!t.showText||!t.text)("value",t.scoreWidth),d.R7$(2),d.JRh(t.text),d.R7$(2),d.SpI(" ",d.i5U(5,5,"passwordStrengthScore",t.text),"\n"))},dependencies:[n.MD,l.p,o.a,a.L,h.I,A.$],encapsulation:2})},26333(e,t,i){"use strict";i.d(t,{R:()=>k});var n=i(46758),r=i(24590),s=i(11217),o=i(63477),a=i(92128),l=i(72135),c=i(69783),d=i(16385),u=i(34949),h=i(98905),A=i(35284),p=i(54473),g=i(82468),v=i(29377),m=i(78781),f=i(7919),y=i(61325);var b=i(14041),C=i(1601);const I=(e,t)=>({"tw-invisible tw-absolute":e,"tw-size-6":t}),w=(e,t)=>({"tw-flex tw-items-center tw-justify-center":e,"tw-bg-illustration-bg-primary tw-rounded-full":t}),B=(e,t,i,n)=>({color:e,width:t,height:i,fontSize:n});function E(e,t){if(1&e){const e=b.RV6();b.j41(0,"img",3),b.bIt("load",function(){s.eBV(e);const t=b.XpG(2);return s.Njj(t.imageLoaded.set(!0))})("error",function(){s.eBV(e);const t=b.XpG(2);return s.Njj(t.imageLoaded.set(!1))}),b.k0s()}if(2&e){const e=b.XpG(),t=b.XpG();b.Y8G("src",e.image,b.B4B)("ngClass",b.l_i(3,I,!t.imageLoaded(),!t.coloredIcon()))("ngStyle",t.iconStyle())}}function S(e,t){if(1&e&&(b.j41(0,"div",2),b.nrm(1,"i",4),b.k0s()),2&e){const e=b.XpG(),t=b.XpG();b.Y8G("ngClass",b.l_i(6,w,t.coloredIcon(),(null==e.icon?null:e.icon.startsWith("bwi-"))&&t.coloredIcon()))("ngStyle",t.iconStyle()),b.R7$(),b.HbH(b.VkB("tw-text-muted bwi bwi-lg ",e.icon)),b.Y8G("ngStyle",b.ziG(9,B,t.coloredIcon()?"rgb(var(--color-illustration-outline))":null,null!=e.icon&&e.icon.startsWith("credit-card")&&t.coloredIcon()?"36px":null,null!=e.icon&&e.icon.startsWith("credit-card")&&t.coloredIcon()?"30px":null,t.size()?t.size()+"px":null))}}function Q(e,t){if(1&e&&(b.nVh(0,E,1,6,"img",1),b.nVh(1,S,2,14,"div",2)),2&e){const e=t,i=b.XpG();b.vxM(e.imageEnabled&&e.image?0:-1),b.R7$(),b.vxM(e.imageEnabled&&e.image&&i.imageLoaded()?-1:1)}}class k{constructor(e,t,i){this.environmentService=e,this.domainSettingsService=t,this.configService=i,this.cipher=r.hFB.required(),this.coloredIcon=(0,r.hFB)(!1),this.size=(0,r.hFB)(),this.imageLoaded=(0,s.vPA)(!1),this.iconStyle=(0,o.EW)(()=>{if(this.coloredIcon())return{width:"36px",height:"36px"};const e=this.size();return e?{width:e+"px",height:e+"px"}:{}});const n=(0,l.z)([this.environmentService.environment$.pipe((0,c.T)(e=>e.getIconsUrl())),this.domainSettingsService.showFavicons$.pipe((0,d.F)())]).pipe((0,c.T)(([e,t])=>({iconsUrl:e,showFavicon:t})),(0,u.Z)({iconsUrl:null,showFavicon:!1}),(0,d.F)()),p=this.configService.getFeatureFlag$(g.TO.PM32009NewItemTypes);this.data$=(0,l.z)([n,(0,a.br)(this.cipher),p]).pipe((0,c.T)(([{iconsUrl:e,showFavicon:t},i,n])=>function(e,t,i,n){let r="bwi-globe",s=null,o="";const a={Visa:"card-visa",Mastercard:"card-mastercard",Amex:"card-amex",Discover:"card-discover","Diners Club":"card-diners-club",JCB:"card-jcb",Maestro:"card-maestro",UnionPay:"card-union-pay",RuPay:"card-ru-pay"};null==e&&(i=!1);const l=y.n.getType(t),c=y.n.uri(t),d=y.n.getCard(t);switch(l){case f.gC.Login:if(r=n?"bwi-lock":"bwi-globe",c){let t=c,n=!1;if(0===t.indexOf("androidapp://")||0===t.indexOf("iosapp://")?s=null:i&&-1===t.indexOf("://")&&t.indexOf(".")>-1?(t=`http://${t}`,n=!0):i&&(n=0===t.indexOf("http")&&t.indexOf(".")>-1),n&&(t.endsWith(".onion")||t.endsWith(".i2p"))){s=null,o="images/bwi-globe.png";break}if(i&&n)try{s=`${e}/${m.A.getHostname(t)}/icon.png`,o="images/bwi-globe.png"}catch(u){}}else s=null;break;case f.gC.SecureNote:r="bwi-sticky-note";break;case f.gC.Card:r="bwi-credit-card",i&&(null==d?void 0:d.brand)&&d.brand in a&&(r=`credit-card-icon ${a[d.brand]}`);break;case f.gC.Identity:r=n?"bwi-user":"bwi-id-card";break;case f.gC.SshKey:r="bwi-key";break;case f.gC.BankAccount:r="bwi-bank";break;case f.gC.Passport:r="bwi-passport";break;case f.gC.DriversLicense:r="bwi-id-card"}return{imageEnabled:i,image:s,fallbackImage:o,icon:r}}(e,i,t,n)),(0,u.Z)(null),(0,h.J)(),(0,A.M)(([e,t])=>{(null==e?void 0:e.image)!==(null==t?void 0:t.image)&&this.imageLoaded.set(!1)}),(0,c.T)(([e,t])=>t))}}k.ɵfac=function(e){return new(e||k)(b.rXU(v.v),b.rXU(p.V),b.rXU(C.w))},k.ɵcmp=b.VBU({type:k,selectors:[["app-vault-icon"]],inputs:{cipher:[1,"cipher"],coloredIcon:[1,"coloredIcon"],size:[1,"size"]},decls:3,vars:4,consts:[["aria-hidden","true",1,"tw-flex","tw-justify-center","tw-items-center",3,"ngStyle"],["alt","","decoding","async","loading","lazy",1,"tw-rounded-md",3,"src","ngClass","ngStyle"],[3,"ngClass","ngStyle"],["alt","","decoding","async","loading","lazy",1,"tw-rounded-md",3,"load","error","src","ngClass","ngStyle"],[3,"ngStyle"]],template:function(e,t){if(1&e&&(b.j41(0,"div",0),b.nVh(1,Q,2,2),b.nI1(2,"async"),b.k0s()),2&e){let e;b.Y8G("ngStyle",t.iconStyle()),b.R7$(),b.vxM((e=b.bMT(2,2,t.data$))?1:-1,e)}},dependencies:[n.MD,n.YU,n.B3,n.Jj],encapsulation:2,changeDetection:0})},406(e,t,i){"use strict";i.d(t,{mo:()=>X,u6:()=>L,aX:()=>q});var n=i(11217),r=i(69783),s=i(72135),o=i(31857),a=i(98569),l=i(83604),c=i(4958),d=i(191),u=i(67553),h=i(18499),A=i(7356),p=i(84101),g=i(56962),v=i(8916),m=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class f{constructor(e){this.stateProvider=e}getNudgeStatus$(e,t){return this.stateProvider.getUser(t,z).state$.pipe((0,r.T)(t=>{var i;return null!==(i=null==t?void 0:t[e])&&void 0!==i?i:{hasBadgeDismissed:!1,hasSpotlightDismissed:!1}}))}nudgeStatus$(e,t){return this.getNudgeStatus$(e,t)}setNudgeStatus(e,t,i){return m(this,void 0,void 0,function*(){yield this.stateProvider.getUser(i,z).update(i=>(null!=i||(i={}),i[e]=t,i))})}}f.ɵfac=function(e){return new(e||f)(n.KVO(o.v2))},f.ɵprov=n.jDH({token:f,factory:f.ɵfac,providedIn:"root"});var y=i(11451),b=i(14041),C=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class I extends f{constructor(){super(...arguments),this.vaultProfileService=(0,n.WQX)(y.r),this.logService=(0,n.WQX)(g.K),this.pinService=(0,n.WQX)(p.t),this.biometricStateService=(0,n.WQX)(v.vB),this.policyService=(0,n.WQX)(h.m),this.organizationService=(0,n.WQX)(u.PV)}nudgeStatus$(e,t){const i=(0,a.H)(this.vaultProfileService.getProfileCreationDate(t)).pipe((0,c.W)(()=>(this.logService.error("Failed to load profile date:"),(0,l.of)(new Date))));return(0,s.z)([i,this.getNudgeStatus$(e,t),(0,l.of)(Date.now()-2592e6),(0,a.H)(this.pinService.isPinSet(t)),this.biometricStateService.biometricUnlockEnabled$(t),this.organizationService.organizations$(t),this.policyService.policiesByType$(A.tt.RemoveUnlockWithPin,t)]).pipe((0,d.n)(i=>C(this,[i],void 0,function*([i,n,r,s,o,a,l]){const c=i.getTime()<r,d=a.some(e=>l.some(t=>t.type===A.tt.RemoveUnlockWithPin&&t.organizationId===e.id)),u=c||s||o||d,h={hasBadgeDismissed:n.hasBadgeDismissed||u,hasSpotlightDismissed:n.hasSpotlightDismissed||u};return(s||o||d)&&!n.hasSpotlightDismissed&&(yield this.setNudgeStatus(e,h,t)),h})))}}I.ɵfac=(()=>{let e;return function(t){return(e||(e=b.xGo(I)))(t||I)}})(),I.ɵprov=n.jDH({token:I,factory:I.ɵfac,providedIn:"root"});var w=i(52892);class B extends f{constructor(e,t){super(e),this.autoConfirmService=t}nudgeStatus$(e,t){return(0,s.z)([this.getNudgeStatus$(e,t),this.autoConfirmService.configuration$(t),this.autoConfirmService.canManageAutoConfirm$(t)]).pipe((0,r.T)(([e,t,i])=>{if(!i)return{hasBadgeDismissed:!0,hasSpotlightDismissed:!0};if(e.hasBadgeDismissed||e.hasSpotlightDismissed)return e;const n=!1===t.showBrowserNotification;return{hasBadgeDismissed:n,hasSpotlightDismissed:n}}))}}B.ɵfac=function(e){return new(e||B)(n.KVO(o.v2),n.KVO(w.zh))},B.ɵprov=n.jDH({token:B,factory:B.ɵfac});var E=i(35500),S=i(5556),Q=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class k extends f{constructor(){super(...arguments),this.cipherService=(0,n.WQX)(S.p),this.accountService=(0,n.WQX)(E.D),this.logService=(0,n.WQX)(g.K)}nudgeStatus$(e,t){const i=this.accountService.activeAccount$.pipe((0,r.T)(e=>{var t;return null!==(t=null==e?void 0:e.creationDate)&&void 0!==t?t:new Date}),(0,c.W)(()=>(this.logService.error("Error getting profile creation date"),(0,l.of)(new Date))));return(0,s.z)([this.cipherService.cipherViews$(t),this.getNudgeStatus$(e,t),i,(0,l.of)(Date.now()-2592e6)]).pipe((0,d.n)(i=>Q(this,[i],void 0,function*([i,n,r,s]){const o=r.getTime()<s,a=null==i?void 0:i.filter(e=>null==e.deletedDate);if(o&&a.length>0&&!n.hasSpotlightDismissed){const i={hasSpotlightDismissed:!0,hasBadgeDismissed:!0};return yield this.setNudgeStatus(e,i,t),yield this.setNudgeStatus(X.EmptyVaultNudge,i,t),i}return n.hasSpotlightDismissed?n:{hasBadgeDismissed:null==a||0===a.length,hasSpotlightDismissed:null==a||0===a.length}})))}}k.ɵfac=(()=>{let e;return function(t){return(e||(e=b.xGo(k)))(t||k)}})(),k.ɵprov=n.jDH({token:k,factory:k.ɵfac,providedIn:"root"});var R=i(21571);class F extends f{constructor(){super(...arguments),this.cipherService=(0,n.WQX)(S.p),this.organizationService=(0,n.WQX)(u.PV),this.collectionService=(0,n.WQX)(R.YD)}nudgeStatus$(e,t){return(0,s.z)([this.getNudgeStatus$(e,t),this.cipherService.cipherListViews$(t),this.organizationService.organizations$(t),this.collectionService.decryptedCollections$(t)]).pipe((0,d.n)(([e,t,i,n])=>{const r=!(null==t||0===t.length);if(null==i||0===i.length)return e.hasBadgeDismissed||e.hasSpotlightDismissed?(0,l.of)(e):(0,l.of)({hasSpotlightDismissed:r,hasBadgeDismissed:r});const s=new Set(i.map(e=>e.id)),o=i.some(e=>e.canCreateNewCollections),a=n.some(e=>e.manage&&s.has(e.organizationId));return e.hasBadgeDismissed||e.hasSpotlightDismissed?(0,l.of)(e):a||o?(0,l.of)({hasSpotlightDismissed:r,hasBadgeDismissed:r}):(0,l.of)({hasSpotlightDismissed:!0,hasBadgeDismissed:!0})}))}}F.ɵfac=(()=>{let e;return function(t){return(e||(e=b.xGo(F)))(t||F)}})(),F.ɵprov=n.jDH({token:F,factory:F.ɵfac,providedIn:"root"});class T extends f{constructor(){super(...arguments),this.cipherService=(0,n.WQX)(S.p),this.organizationService=(0,n.WQX)(u.PV),this.collectionService=(0,n.WQX)(R.YD)}nudgeStatus$(e,t){return(0,s.z)([this.getNudgeStatus$(e,t),this.cipherService.cipherViews$(t),this.organizationService.organizations$(t),this.collectionService.decryptedCollections$(t)]).pipe((0,d.n)(([e,t,i,n])=>{var r,s;const o=(null!==(r=null==t?void 0:t.length)&&void 0!==r?r:0)>1,{hasBadgeDismissed:a,hasSpotlightDismissed:c}=e;if(0===(null!==(s=null==i?void 0:i.length)&&void 0!==s?s:0))return a||c?(0,l.of)(e):(0,l.of)({hasSpotlightDismissed:o,hasBadgeDismissed:o});const d=new Set(i.map(e=>e.id)),u=i.some(e=>e.canCreateNewCollections),h=n.some(e=>e.manage&&d.has(e.organizationId));return a||c?(0,l.of)(e):h||u?(0,l.of)({hasSpotlightDismissed:o,hasBadgeDismissed:o}):(0,l.of)({hasSpotlightDismissed:!0,hasBadgeDismissed:!0})}))}}T.ɵfac=(()=>{let e;return function(t){return(e||(e=b.xGo(T)))(t||T)}})(),T.ɵprov=n.jDH({token:T,factory:T.ɵfac,providedIn:"root"});var D=i(68711),P=i(81356),M=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class x extends f{constructor(){super(...arguments),this.cipherService=(0,n.WQX)(S.p)}nudgeStatus$(e,t){return(0,s.z)([this.getNudgeStatus$(e,t),this.cipherService.cipherViews$(t).pipe((0,D.p)(e=>null!=e))]).pipe((0,d.n)(i=>M(this,[i],void 0,function*([i,n]){if(i.hasSpotlightDismissed)return i;let r;switch(e){case X.NewLoginItemStatus:r=P.gC.Login;break;case X.NewCardItemStatus:r=P.gC.Card;break;case X.NewIdentityItemStatus:r=P.gC.Identity;break;case X.NewNoteItemStatus:r=P.gC.SecureNote;break;case X.NewSshItemStatus:r=P.gC.SshKey}if(n.some(e=>e.type===r)&&!i.hasSpotlightDismissed){const i={hasSpotlightDismissed:!0,hasBadgeDismissed:!0};return yield this.setNudgeStatus(e,i,t),i}return i})))}}x.ɵfac=(()=>{let e;return function(t){return(e||(e=b.xGo(x)))(t||x)}})(),x.ɵprov=n.jDH({token:x,factory:x.ɵfac,providedIn:"root"});var V=i(31066);class G extends f{constructor(e,t,i){super(e),this.vaultProfileService=t,this.logService=i}nudgeStatus$(e,t){const i=(0,a.H)(this.vaultProfileService.getProfileCreationDate(t)).pipe((0,c.W)(()=>(this.logService.error("Error getting profile creation date"),(0,l.of)(new Date))));return(0,s.z)([i,this.getNudgeStatus$(e,t),(0,l.of)(Date.now()-2592e6)]).pipe((0,r.T)(([e,t,i])=>{const n=e.getTime()<i;return{hasBadgeDismissed:t.hasBadgeDismissed||n,hasSpotlightDismissed:t.hasSpotlightDismissed||n}}))}}G.ɵfac=function(e){return new(e||G)(n.KVO(V.v2),n.KVO(y.r),n.KVO(g.K))},G.ɵprov=n.jDH({token:G,factory:G.ɵfac,providedIn:"root"});var U=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class O{nudgeStatus$(e,t){return(0,l.of)({hasBadgeDismissed:!0,hasSpotlightDismissed:!0})}setNudgeStatus(e,t,i){return U(this,void 0,void 0,function*(){})}}O.ɵfac=function(e){return new(e||O)},O.ɵprov=n.jDH({token:O,factory:O.ɵfac,providedIn:"root"});const N=new n.nKC("AutofillNudgeService"),j=new n.nKC("AutoConfirmNudgeService");var Y=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const X={EmptyVaultNudge:"empty-vault-nudge",VaultSettingsImportNudge:"vault-settings-import-nudge",HasVaultItems:"has-vault-items",AutofillNudge:"autofill-nudge",AccountSecurity:"account-security",DownloadBitwarden:"download-bitwarden",NewLoginItemStatus:"new-login-item-status",NewCardItemStatus:"new-card-item-status",NewIdentityItemStatus:"new-identity-item-status",NewNoteItemStatus:"new-note-item-status",NewSshItemStatus:"new-ssh-item-status",GeneratorNudgeStatus:"generator-nudge-status",AutoConfirmNudge:"auto-confirm-nudge",PremiumUpgrade:"premium-upgrade"},z=new o.Ok(o.bI,"vaultNudgeDismissed",{deserializer:e=>e,clearOn:[]});class L{constructor(){var e,t;this.newItemNudgeService=(0,n.WQX)(x),this.newAcctNudgeService=(0,n.WQX)(G),this.noOpNudgeService=(0,n.WQX)(O),this.autofillNudgeService=(0,n.WQX)(N,{optional:!0}),this.autoConfirmNudgeService=(0,n.WQX)(j,{optional:!0}),this.customNudgeServices={[X.HasVaultItems]:(0,n.WQX)(k),[X.EmptyVaultNudge]:(0,n.WQX)(F),[X.VaultSettingsImportNudge]:(0,n.WQX)(T),[X.AccountSecurity]:(0,n.WQX)(I),[X.AutofillNudge]:null!==(e=this.autofillNudgeService)&&void 0!==e?e:this.noOpNudgeService,[X.DownloadBitwarden]:this.newAcctNudgeService,[X.GeneratorNudgeStatus]:this.newAcctNudgeService,[X.NewLoginItemStatus]:this.newItemNudgeService,[X.NewCardItemStatus]:this.newItemNudgeService,[X.NewIdentityItemStatus]:this.newItemNudgeService,[X.NewNoteItemStatus]:this.newItemNudgeService,[X.NewSshItemStatus]:this.newItemNudgeService,[X.AutoConfirmNudge]:null!==(t=this.autoConfirmNudgeService)&&void 0!==t?t:this.noOpNudgeService},this.defaultNudgeService=(0,n.WQX)(f)}getNudgeService(e){var t;return null!==(t=this.customNudgeServices[e])&&void 0!==t?t:this.defaultNudgeService}showNudgeSpotlight$(e,t){return this.getNudgeService(e).nudgeStatus$(e,t).pipe((0,r.T)(e=>!e.hasSpotlightDismissed))}showNudgeBadge$(e,t){return this.getNudgeService(e).nudgeStatus$(e,t).pipe((0,r.T)(e=>!e.hasBadgeDismissed))}showNudgeStatus$(e,t){return this.getNudgeService(e).nudgeStatus$(e,t)}dismissNudge(e,t){return Y(this,arguments,void 0,function*(e,t,i=!1){const n=i?{hasBadgeDismissed:!0,hasSpotlightDismissed:!1}:{hasBadgeDismissed:!0,hasSpotlightDismissed:!0};yield this.getNudgeService(e).setNudgeStatus(e,n,t)})}hasActiveBadges$(e){const t=[X.EmptyVaultNudge,X.DownloadBitwarden,X.AutofillNudge,X.AutoConfirmNudge].map(t=>this.getNudgeService(t).nudgeStatus$(t,e).pipe((0,r.T)(e=>!(null==e?void 0:e.hasBadgeDismissed))));return(0,s.z)(t).pipe((0,r.T)(e=>e.some(e=>!0===e)))}}L.ɵfac=function(e){return new(e||L)},L.ɵprov=n.jDH({token:L,factory:L.ɵfac,providedIn:"root"});var W=i(92128),K=i(3633),Z=i(58329),H=i(82468),J=i(1601);class q{constructor(){this.accountService=(0,n.WQX)(E.D),this.configService=(0,n.WQX)(J.w),this.billingAccountService=(0,n.WQX)(Z.Q),this.cipherService=(0,n.WQX)(S.p),this.activeUserId$=this.accountService.activeAccount$.pipe(K.F6),this.activeUserId=(0,W.ot)(this.activeUserId$,{requireSync:!0}),this.hasPremium$=this.activeUserId$.pipe((0,d.n)(e=>this.billingAccountService.hasPremiumFromAnySource$(e))),this.ciphers$=this.cipherService.ciphers$(this.activeUserId()),this.ciphers=(0,W.ot)(this.ciphers$,{initialValue:{}}),this.hasPremium=(0,W.ot)(this.hasPremium$,{initialValue:!0}),this.accountAgeFeatureFlag=(0,W.ot)(this.configService.getFeatureFlag$(H.TO.PM32180PremiumUpsellAccountAge),{initialValue:7}),this.accountAgeInDays$=this.accountService.activeAccount$.pipe((0,r.T)(e=>{if(!e||!e.creationDate)return 0;const t=e.creationDate,i=Date.now()-t.getTime();return Math.floor(i/864e5)})),this.accountAgeInDays=(0,W.ot)(this.accountAgeInDays$,{initialValue:-1})}showUpsell(){const e=Object.keys(this.ciphers()).length;return this.accountAgeInDays()>=this.accountAgeFeatureFlag()&&e>=5&&!this.hasPremium()}}q.ɵfac=function(e){return new(e||q)},q.ɵprov=n.jDH({token:q,factory:q.ɵfac,providedIn:"root"})},11451(e,t,i){"use strict";i.d(t,{r:()=>o});var n=i(11217),r=i(12012),s=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class o{constructor(){this.apiService=(0,n.WQX)(r.G),this.userId=null,this.profileCreatedDate=null}getProfileCreationDate(e){return s(this,void 0,void 0,function*(){if(this.profileCreatedDate&&e===this.userId)return Promise.resolve(new Date(this.profileCreatedDate));const t=yield this.fetchAndCacheProfile();return new Date(t.creationDate)})}fetchAndCacheProfile(){return s(this,void 0,void 0,function*(){const e=yield this.apiService.getProfile();return this.userId=e.id,this.profileCreatedDate=e.creationDate,e})}}o.ɵfac=function(e){return new(e||o)},o.ɵprov=n.jDH({token:o,factory:o.ɵfac,providedIn:"root"})},82392(e,t,i){"use strict";i.d(t,{JW:()=>o,Ye:()=>r});class n{constructor(e){this.svg=e}}function r(e){return e instanceof n}class s extends Error{constructor(){super("Dynamic content in icons is not allowed due to risk of user-injected XSS.")}}function o(e,...t){if(t.length>0)throw new s;return new n(e[0])}},9171(e,t,i){"use strict";i.d(t,{R:()=>n});const n=i(82392).JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 1.49 96 94.02">
|
|
<path class="tw-fill-illustration-bg-primary" d="M79 48.5c0 17.12-13.88 31-31 31-17.12 0-31-13.88-31-31 0-17.12 13.88-31 31-31 17.12 0 31 13.88 31 31Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M48 18.5c-16.569 0-30 13.431-30 30 0 16.569 13.431 30 30 30 16.569 0 30-13.431 30-30 0-16.569-13.431-30-30-30Zm-32 30c0-17.673 14.327-32 32-32 17.673 0 32 14.327 32 32 0 17.673-14.327 32-32 32-17.673 0-32-14.327-32-32Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-tertiary" d="M0 48.5c0-6.627 5.373-12 12-12h72c6.627 0 12 5.373 12 12s-5.373 12-12 12H12c-6.627 0-12-5.373-12-12Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M84 38.5H12c-5.523 0-10 4.477-10 10s4.477 10 10 10h72c5.523 0 10-4.477 10-10s-4.477-10-10-10Zm-72-2c-6.627 0-12 5.373-12 12s5.373 12 12 12h72c6.627 0 12-5.373 12-12s-5.373-12-12-12H12Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M20 42.5c.552 0 1 .467 1 1.042v4.175l3.74-1.989c.508-.27 1.13-.094 1.39.394.259.488.057 1.102-.45 1.372l-4.038 2.147 3.228 3.462c.392.42.383 1.067-.02 1.444-.405.376-1.05.34-1.443-.08L20 50.813l-3.408 3.654c-.392.42-1.038.456-1.441.08-.404-.377-.414-1.023-.021-1.444l3.228-3.462-4.038-2.147c-.508-.27-.71-.884-.45-1.372.26-.488.881-.664 1.39-.394l3.74 1.99v-4.176c0-.575.448-1.042 1-1.042Zm16 0c.552 0 1 .467 1 1.042v4.175l3.74-1.989c.508-.27 1.13-.094 1.39.394.259.488.057 1.102-.45 1.372l-4.038 2.147 3.228 3.462c.392.42.383 1.067-.02 1.444-.405.376-1.05.34-1.443-.08L36 50.813l-3.408 3.654c-.392.42-1.038.456-1.441.08-.404-.377-.414-1.023-.021-1.444l3.228-3.462-4.038-2.147c-.508-.27-.71-.884-.45-1.372.26-.488.881-.664 1.39-.394l3.74 1.99v-4.176c0-.575.447-1.042 1-1.042Zm17 1.042c0-.575-.448-1.042-1-1.042-.553 0-1 .467-1 1.042v4.175l-3.74-1.989c-.509-.27-1.13-.094-1.39.394s-.058 1.102.45 1.372l4.038 2.147-3.228 3.462c-.393.42-.383 1.067.02 1.444.404.376 1.05.34 1.442-.08L52 50.813l3.407 3.654c.393.42 1.038.456 1.442.08.404-.377.413-1.023.02-1.444l-3.227-3.462 4.037-2.147c.508-.27.71-.884.45-1.372-.259-.488-.88-.664-1.389-.394L53 47.717v-4.175Zm8 9.958a1 1 0 0 1 1-1h8a1 1 0 1 1 0 2h-8a1 1 0 0 1-1-1Zm13-1a1 1 0 1 0 0 2h8a1 1 0 0 0 0-2h-8Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-secondary" fill-rule="evenodd" d="M58.327 92.299c11.605-2.736 21.09-9.736 27.192-18.952a1 1 0 1 1 1.667 1.104c-6.37 9.624-16.28 16.937-28.4 19.795-19.671 4.637-39.367-3.824-49.937-19.72a1 1 0 1 1 1.666-1.107c10.121 15.221 28.98 23.32 47.812 18.88Zm28.545-68.44a1 1 0 0 1-1.386-.278C75.364 8.359 56.505.26 37.674 4.7 25.348 7.607 15.413 15.322 9.385 25.394a1 1 0 1 1-1.716-1.027C13.963 13.85 24.342 5.79 37.215 2.754c19.67-4.638 39.367 3.824 49.936 19.72a1 1 0 0 1-.279 1.386Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-secondary" fill-rule="evenodd" d="M24 73.5a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v14a1 1 0 1 0 2 0v-13h13a1 1 0 0 0 1-1ZM72 23.5a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-14a1 1 0 1 0-2 0v13H73a1 1 0 0 0-1 1ZM22.618 64.5a29.913 29.913 0 0 1-2.122-4h55.008a29.913 29.913 0 0 1-2.122 4H22.618Z" clip-rule="evenodd"/>
|
|
</svg>
|
|
`},78510(e,t,i){"use strict";i.d(t,{a:()=>n});const n=i(82392).JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="4 4.5 91.63 88">
|
|
<path class="tw-fill-illustration-bg-secondary" d="M62 12.5a2 2 0 0 1 2 2v76a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-76a2 2 0 0 1 2-2h56Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M62 90.5v-76H6v76h56Zm2-76a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v76a2 2 0 0 0 2 2h56a2 2 0 0 0 2-2v-76Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M72 82.5v-76a2 2 0 0 0-2-2H27.328c-.53 0-1.034.206-1.41.581L12.585 18.416A1.993 1.993 0 0 0 12 19.828V82.5a2 2 0 0 0 2 2h56a2 2 0 0 0 2-2Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M70 82.5v-76H27.328L14 19.828V82.5h56ZM27.333 6.495ZM72 6.5v76a2 2 0 0 1-2 2H14a2 2 0 0 1-2-2V19.828c0-.53.209-1.037.584-1.412L25.919 5.081c.375-.375.879-.581 1.41-.581H70a2 2 0 0 1 2 2Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M84 48.5c0 11.046-8.954 20-20 20s-20-8.954-20-20 8.954-20 20-20 20 8.954 20 20Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M64 66.5c9.941 0 18-8.059 18-18s-8.059-18-18-18-18 8.059-18 18 8.059 18 18 18Zm0 2c11.046 0 20-8.954 20-20s-8.954-20-20-20-20 8.954-20 20 8.954 20 20 20Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-secondary" d="M79 48.5c0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15 0-8.284 6.716-15 15-15 8.284 0 15 6.716 15 15Z"/>
|
|
<path class="tw-fill-illustration-outline" d="M95.004 77.587 78.5 62l-2 2 15.587 16.504a2 2 0 0 0 2.868.04l.09-.089a2 2 0 0 0-.041-2.868Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M28 5.5a1 1 0 0 1 1 1v15H14a1 1 0 1 1 0-2h13v-13a1 1 0 0 1 1-1Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-tertiary" fill-rule="evenodd" d="M20 28.5a1 1 0 1 0 0 2h10a1 1 0 1 0 0-2H20Zm14 0a1 1 0 1 0 0 2h10a1 1 0 1 0 0-2H34Zm16.983 4.815A1 1 0 0 0 50 32.5H40a1 1 0 1 0 0 2h9.717c.405-.413.827-.808 1.266-1.185ZM44.025 49.5c.033.676.1 1.343.199 2H40a1 1 0 1 1 0-2h4.025Zm.199-4a20.086 20.086 0 0 0-.2 2H37a1 1 0 1 1 0-2h7.224Zm3.775-9c-.48.638-.922 1.306-1.323 2H38a1 1 0 1 1 0-2h9.998ZM64 28.5c-3.13 0-6.09.719-8.728 2H54a1 1 0 1 1 0-2h10Zm-16 0a1 1 0 1 0 0 2h2a1 1 0 1 0 0-2h-2Zm-11 5a1 1 0 0 0-1-1h-2a1 1 0 1 0 0 2h2a1 1 0 0 0 1-1Zm-3 5a1 1 0 1 0 0-2h-4a1 1 0 1 0 0 2h4Zm0 8a1 1 0 0 1-1 1h-6a1 1 0 1 1 0-2h6a1 1 0 0 1 1 1Zm2 5a1 1 0 1 0 0-2H20a1 1 0 1 0 0 2h16Zm-5-18a1 1 0 0 0-1-1H20a1 1 0 1 0 0 2h10a1 1 0 0 0 1-1Zm-5 5a1 1 0 1 0 0-2h-6a1 1 0 1 0 0 2h6Zm-2 8a1 1 0 0 1-1 1h-3a1 1 0 1 1 0-2h3a1 1 0 0 1 1 1Z" clip-rule="evenodd"/>
|
|
</svg>
|
|
`},20266(e,t,i){"use strict";i.d(t,{m:()=>n});const n=i(82392).JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 10 80 66.67">
|
|
<path class="tw-fill-illustration-bg-secondary" d="M13.333 15a5 5 0 0 1 5-5H75a5 5 0 0 1 5 5v40a5 5 0 0 1-5 5H18.333a5 5 0 0 1-5-5V15Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M75 11.667H18.333A3.333 3.333 0 0 0 15 15v40a3.333 3.333 0 0 0 3.333 3.333H75A3.333 3.333 0 0 0 78.333 55V15A3.333 3.333 0 0 0 75 11.667ZM18.333 10a5 5 0 0 0-5 5v40a5 5 0 0 0 5 5H75a5 5 0 0 0 5-5V15a5 5 0 0 0-5-5H18.333Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M79.167 20h-65v-1.667h65V20Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" d="M76.667 15a1.667 1.667 0 1 1-3.334 0 1.667 1.667 0 0 1 3.334 0ZM71.667 15a1.667 1.667 0 1 1-3.334 0 1.667 1.667 0 0 1 3.334 0ZM66.667 15a1.667 1.667 0 1 1-3.334 0 1.667 1.667 0 0 1 3.334 0Z"/>
|
|
<path class="tw-fill-illustration-tertiary" d="M15 37.5a6.667 6.667 0 0 1 6.667-6.667H65a6.667 6.667 0 0 1 6.667 6.667v3.333A6.667 6.667 0 0 1 65 47.5H21.667A6.667 6.667 0 0 1 15 40.833V37.5Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M65 32.5H21.667a5 5 0 0 0-5 5v3.333a5 5 0 0 0 5 5H65a5 5 0 0 0 5-5V37.5a5 5 0 0 0-5-5Zm-43.333-1.667A6.667 6.667 0 0 0 15 37.5v3.333a6.667 6.667 0 0 0 6.667 6.667H65a6.667 6.667 0 0 0 6.667-6.667V37.5A6.667 6.667 0 0 0 65 30.833H21.667Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M24.167 40.834v-3.137l-2.333 4.665a1.667 1.667 0 0 0 2.332-1.528Zm-3.334-.197 2.333-4.665a1.667 1.667 0 0 0-2.332 1.528v3.137Zm5-3.137a3.333 3.333 0 0 0-6.666 0v3.334a3.333 3.333 0 0 0 6.666 0V37.5Zm6.667.197v3.137a1.667 1.667 0 0 1-2.332 1.528l2.332-4.665Zm-1-1.725-2.333 4.665V37.5a1.667 1.667 0 0 1 2.332-1.528Zm-.667-1.805a3.333 3.333 0 0 1 3.334 3.333v3.334a3.333 3.333 0 1 1-6.667 0V37.5a3.333 3.333 0 0 1 3.333-3.333Zm10 6.667v-3.137l-2.332 4.665a1.667 1.667 0 0 0 2.332-1.528Zm-3.333-.197 2.333-4.665A1.667 1.667 0 0 0 37.5 37.5v3.137Zm5-3.137a3.333 3.333 0 0 0-6.667 0v3.334a3.333 3.333 0 0 0 6.667 0V37.5Zm6.667.197v3.137a1.667 1.667 0 0 1-2.333 1.528l2.333-4.665Zm-1.001-1.725-2.333 4.665V37.5a1.667 1.667 0 0 1 2.333-1.528Zm-.666-1.805a3.333 3.333 0 0 1 3.333 3.333v3.334a3.333 3.333 0 0 1-6.666 0V37.5a3.333 3.333 0 0 1 3.333-3.333Zm10 6.667v-3.137l-2.332 4.665a1.667 1.667 0 0 0 2.333-1.528Zm-3.333-.197 2.332-4.665a1.667 1.667 0 0 0-2.333 1.528v3.137Zm5-3.137a3.333 3.333 0 1 0-6.667 0v3.334a3.333 3.333 0 0 0 6.667 0V37.5Zm6.666 3.334v-3.137l-2.332 4.665a1.667 1.667 0 0 0 2.332-1.528Zm-3.333-.197 2.333-4.665A1.667 1.667 0 0 0 62.5 37.5v3.137Zm5-3.137a3.333 3.333 0 0 0-6.667 0v3.334a3.333 3.333 0 0 0 6.667 0V37.5Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-primary" d="M0 23.333a5 5 0 0 1 5-5h24.167a5 5 0 0 1 5 5v48.333a5 5 0 0 1-5 5H5a5 5 0 0 1-5-5V23.333Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M29.167 20H5a3.333 3.333 0 0 0-3.333 3.333v48.333A3.333 3.333 0 0 0 5 75h24.167a3.333 3.333 0 0 0 3.333-3.334V23.333A3.333 3.333 0 0 0 29.167 20ZM5 18.333a5 5 0 0 0-5 5v48.333a5 5 0 0 0 5 5h24.167a5 5 0 0 0 5-5V23.333a5 5 0 0 0-5-5H5Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M6.667 33.75a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm3.333 0a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM12.083 35a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Zm11.667 0a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Zm-3.333 0a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Zm-3.334 0a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-secondary" fill-rule="evenodd" d="M6.667 33.75a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm3.333 0a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM12.083 35a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Zm11.667 0a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Zm-3.333 0a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Zm-3.334 0a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M6.667 42.917a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm3.333 0a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm2.083 1.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Zm11.667 0a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Zm-3.333 0a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Zm-3.334 0a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-secondary" fill-rule="evenodd" d="M6.667 42.917a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm3.333 0a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm2.083 1.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Zm11.667 0a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Zm-3.333 0a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Zm-3.334 0a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M13.333 23.333c0-.46.373-.833.834-.833H20a.833.833 0 1 1 0 1.667h-5.833a.833.833 0 0 1-.834-.834Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-secondary" fill-rule="evenodd" d="M16.25 54.166a7.083 7.083 0 1 0 7.083 7.084 1.667 1.667 0 1 1 3.334 0c0 5.753-4.664 10.416-10.417 10.416S5.833 67.003 5.833 61.25s4.664-10.417 10.417-10.417a1.667 1.667 0 1 1 0 3.333Z" clip-rule="evenodd"/>
|
|
</svg>
|
|
`},51111(e,t,i){"use strict";i.d(t,{x:()=>n});const n=i(82392).JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 120 40">
|
|
<g clip-path="url(#two-factor-auth-duo-clip)">
|
|
<path fill="#7BCD54" d="M19.359 39.412H0V20.97h38.694c-.505 10.27-8.968 18.44-19.335 18.44Z" />
|
|
<path fill="#63C43F"
|
|
d="M19.359.588H0V19.03h38.694C38.188 8.76 29.726.59 19.358.59ZM100.666.588c-10.367 0-18.83 8.172-19.335 18.441H120C119.496 8.76 111.033.59 100.666.59Z" />
|
|
<path fill="#7BCD54"
|
|
d="M100.666 39.412c-10.367 0-18.83-8.171-19.335-18.441H120c-.504 10.27-8.967 18.44-19.334 18.44Z" />
|
|
<path fill="#63C43F" d="M40.653.588V20c0 10.395 8.15 18.882 18.391 19.388V.588h-18.39Z" />
|
|
<path fill="#7BCD54" d="M79.37 39.412H60.98V.588h18.39v38.824Z" />
|
|
</g>
|
|
<defs>
|
|
<clipPath id="two-factor-auth-duo-clip">
|
|
<path class="tw-fill-text-alt2" d="M0 .588h120v38.824H0z" />
|
|
</clipPath>
|
|
</defs>
|
|
</svg>
|
|
`},36951(e,t,i){"use strict";i.d(t,{f:()=>n});const n=i(82392).JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="3.33 0.46 73.33 76.8">
|
|
<path class="tw-fill-illustration-bg-primary" d="M3.333 32.89a5 5 0 0 1 1.745-3.796L37.287 1.46a4.167 4.167 0 0 1 5.426 0l32.21 27.635a5 5 0 0 1 1.744 3.794v41.035a3.333 3.333 0 0 1-3.334 3.334H6.667a3.333 3.333 0 0 1-3.334-3.334V32.89Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M75 73.924V32.89c0-.972-.425-1.896-1.163-2.53L41.627 2.725a2.5 2.5 0 0 0-3.255 0L6.162 30.36A3.333 3.333 0 0 0 5 32.89v41.035c0 .92.746 1.667 1.667 1.667h66.666c.92 0 1.667-.746 1.667-1.667ZM5.078 29.094a5 5 0 0 0-1.745 3.795v41.035a3.333 3.333 0 0 0 3.334 3.334h66.666a3.333 3.333 0 0 0 3.334-3.334V32.89a5 5 0 0 0-1.745-3.795L42.713 1.46a4.167 4.167 0 0 0-5.426 0L5.077 29.095Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-secondary" d="M5.793 32.464a2.5 2.5 0 0 1-.113-3.886L37.287 1.46a4.167 4.167 0 0 1 5.426 0L74.32 28.578a2.5 2.5 0 0 1-.114 3.886L42.02 56.97a3.333 3.333 0 0 1-4.038 0L5.793 32.464Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="m41.01 55.644 32.187-24.506a.833.833 0 0 0 .038-1.295L41.628 2.725a2.5 2.5 0 0 0-3.256 0L6.765 29.843a.833.833 0 0 0 .038 1.295L38.99 55.644a1.667 1.667 0 0 0 2.02 0ZM5.68 28.578a2.5 2.5 0 0 0 .113 3.886L37.981 56.97a3.333 3.333 0 0 0 4.038 0l32.187-24.506a2.5 2.5 0 0 0 .114-3.886L42.713 1.46a4.167 4.167 0 0 0-5.426 0L5.68 28.578Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M41.98 54.761a3.333 3.333 0 0 1-3.96 0L5.496 30.754a.833.833 0 1 0-.99 1.341l32.526 24.007a5 5 0 0 0 5.938 0l32.526-24.007a.833.833 0 0 0-.99-1.341L41.98 54.761Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M12.5 9.758h55V38.09L40.999 57.766a1.667 1.667 0 0 1-1.994-.004L12.5 37.882V9.759Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M65.833 11.425H14.167v25.624l25.838 19.38 25.828-19.176V11.425ZM67.5 38.09 40.999 57.766a1.667 1.667 0 0 1-1.994-.004L12.5 37.882V9.759h55V38.09Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-primary" d="m40 49.758 18.333 10.416L40 70.591 21.667 60.175 40 49.758Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M42.02 51.51a3.333 3.333 0 0 0-4.04 0L5.505 76.254a.833.833 0 1 1-1.01-1.325L36.97 50.185a5 5 0 0 1 6.06 0l-.494.648.494-.648 32.475 24.743a.833.833 0 0 1-1.01 1.325L42.02 51.511Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-tertiary" d="M21.667 29.757a5.833 5.833 0 0 1 5.833-5.833h25a5.833 5.833 0 0 1 0 11.666h-25a5.833 5.833 0 0 1-5.833-5.833Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M52.5 25.59h-25a4.167 4.167 0 0 0 0 8.334h25a4.167 4.167 0 1 0 0-8.334Zm-25-1.666a5.833 5.833 0 1 0 0 11.666h25a5.833 5.833 0 0 0 0-11.666h-25Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M27.5 31.424a1.667 1.667 0 1 0 0-3.333 1.667 1.667 0 0 0 0 3.333Zm5 0a1.667 1.667 0 1 0 0-3.333 1.667 1.667 0 0 0 0 3.333Zm6.667-1.666a1.667 1.667 0 1 1-3.334 0 1.667 1.667 0 0 1 3.334 0Zm3.333 1.666a1.667 1.667 0 1 0 0-3.333 1.667 1.667 0 0 0 0 3.333Zm6.667-1.666a1.667 1.667 0 1 1-3.334 0 1.667 1.667 0 0 1 3.334 0Zm3.333 1.666a1.667 1.667 0 1 0 0-3.333 1.667 1.667 0 0 0 0 3.333Z" clip-rule="evenodd"/>
|
|
</svg>
|
|
`},90005(e,t,i){"use strict";i.d(t,{f:()=>n});const n=i(82392).JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="4.72 12.85 92 80">
|
|
<path class="tw-fill-illustration-bg-primary" d="M16.722 18.846a6 6 0 0 1 6-6h68a6 6 0 0 1 6 6v48a6 6 0 0 1-6 6h-68a6 6 0 0 1-6-6v-48Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M90.722 14.846h-68a4 4 0 0 0-4 4v48a4 4 0 0 0 4 4h68a4 4 0 0 0 4-4v-48a4 4 0 0 0-4-4Zm-68-2a6 6 0 0 0-6 6v48a6 6 0 0 0 6 6h68a6 6 0 0 0 6-6v-48a6 6 0 0 0-6-6h-68Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-tertiary" d="M54.732 34.216c1.353-2.327 4.713-2.327 6.066 0L72.24 53.898c1.36 2.34-.327 5.272-3.033 5.272H46.321c-2.705 0-4.392-2.933-3.032-5.272l11.443-19.682Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M70.512 54.904 59.07 35.22c-.582-1-2.026-1-2.608 0L45.018 54.904a1.508 1.508 0 0 0 1.303 2.266h22.887a1.508 1.508 0 0 0 1.304-2.266Zm-9.714-20.688c-1.353-2.327-4.713-2.327-6.066 0L43.288 53.898c-1.36 2.34.328 5.272 3.033 5.272h22.887c2.706 0 4.393-2.933 3.033-5.272L60.798 34.216Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" d="M59.168 53.557a1.403 1.403 0 1 1-2.806 0 1.403 1.403 0 0 1 2.806 0ZM55.702 41.315a.35.35 0 0 1 .348-.388h3.43a.35.35 0 0 1 .348.388l-.977 9.121a.35.35 0 0 1-.349.314h-1.474a.35.35 0 0 1-.35-.314l-.976-9.121Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M95.722 24.846h-78v-2h78v2Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" d="M92.722 18.846a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM86.722 18.846a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM80.722 18.846a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM9.722 31.846a2 2 0 0 1 2-2h15a2 2 0 0 1 2 2v15h-19v-15Z"/>
|
|
<path class="tw-fill-illustration-tertiary" d="M12.722 32.846h3v11h-3v-11ZM17.722 34.846h3v9h-3v-9ZM22.722 32.846h3v11h-3v-11Z"/>
|
|
<path class="tw-fill-illustration-bg-secondary" fill-rule="evenodd" d="M8.722 44.846a4 4 0 0 0-4 4v40a4 4 0 0 0 4 4h21a4 4 0 0 0 4-4v-40a4 4 0 0 0-4-4h-21Zm10.5 36a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M8.722 46.846a2 2 0 0 0-2 2v40a2 2 0 0 0 2 2h21a2 2 0 0 0 2-2v-40a2 2 0 0 0-2-2h-21Zm10.5 32a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9Zm-14.5-30a4 4 0 0 1 4-4h21a4 4 0 0 1 4 4v40a4 4 0 0 1-4 4h-21a4 4 0 0 1-4-4v-40Zm17 34.5a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" fill-rule="evenodd" d="M19.222 72.846a7.5 7.5 0 1 0 0-15 7.5 7.5 0 0 0 0 15Zm0 2a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19Z" clip-rule="evenodd"/>
|
|
</svg>
|
|
`},26061(e,t,i){"use strict";i.d(t,{s:()=>n});const n=i(82392).JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="3.33 10 71.27 66.67">
|
|
<path class="tw-fill-illustration-bg-primary" d="M19.6 14.8a4.8 4.8 0 0 1 4.8-4.8h45.4a4.8 4.8 0 0 1 4.8 4.8v32.067a4.8 4.8 0 0 1-4.8 4.8H24.4a4.8 4.8 0 0 1-4.8-4.8V14.8Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M69.8 11.6H24.4a3.2 3.2 0 0 0-3.2 3.2v32.067a3.2 3.2 0 0 0 3.2 3.2h45.4a3.2 3.2 0 0 0 3.2-3.2V14.8a3.2 3.2 0 0 0-3.2-3.2ZM24.4 10a4.8 4.8 0 0 0-4.8 4.8v32.067a4.8 4.8 0 0 0 4.8 4.8h45.4a4.8 4.8 0 0 0 4.8-4.8V14.8a4.8 4.8 0 0 0-4.8-4.8H24.4Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M73.767 19.966H20.434v-1.6h53.333v1.6Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" d="M71.267 15a1.667 1.667 0 1 1-3.333 0 1.667 1.667 0 0 1 3.333 0ZM66.267 15a1.667 1.667 0 1 1-3.333 0 1.667 1.667 0 0 1 3.333 0ZM61.267 15a1.667 1.667 0 1 1-3.333 0 1.667 1.667 0 0 1 3.333 0Z"/>
|
|
<path class="tw-fill-illustration-bg-secondary" d="M67.2 50.4c0 7.29-5.91 13.2-13.2 13.2-7.29 0-13.2-5.91-13.2-13.2 0-7.29 5.91-13.2 13.2-13.2 7.29 0 13.2 5.91 13.2 13.2Z"/>
|
|
<path class="tw-fill-illustration-tertiary" d="M46.235 47.977a2.236 2.236 0 0 1 2.236-2.236h11.057a2.236 2.236 0 0 1 2.236 2.236v7.952a2.236 2.236 0 0 1-2.236 2.236H48.471a2.236 2.236 0 0 1-2.236-2.236v-7.952Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M59.528 47.232H48.471a.745.745 0 0 0-.745.745v7.952c0 .411.334.745.745.745h11.057a.745.745 0 0 0 .746-.745v-7.952a.745.745 0 0 0-.746-.745Zm-11.057-1.49a2.236 2.236 0 0 0-2.236 2.235v7.952a2.236 2.236 0 0 0 2.236 2.236h11.057a2.236 2.236 0 0 0 2.236-2.236v-7.952a2.236 2.236 0 0 0-2.236-2.236H48.471Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" d="M53.223 50.4a.776.776 0 1 1 1.553 0v3.105a.776.776 0 1 1-1.553 0V50.4Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M50.148 44.965a3.851 3.851 0 0 1 7.703 0v.776h-1.49v-.776a2.36 2.36 0 1 0-4.722 0v.776h-1.49v-.776Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" d="M7.5 25.767a1.6 1.6 0 0 1 1.6-1.6h12.633a1.6 1.6 0 0 1 1.6 1.6v12.567H7.5V25.767Z"/>
|
|
<path class="tw-fill-illustration-tertiary" d="M10 26.667h2.5v9.167H10v-9.167ZM14.167 28.333h2.5v7.5h-2.5v-7.5ZM18.333 26.667h2.5v9.167h-2.5v-9.167Z"/>
|
|
<path class="tw-fill-illustration-bg-secondary" fill-rule="evenodd" d="M6.533 36.667a3.2 3.2 0 0 0-3.2 3.2v33.6a3.2 3.2 0 0 0 3.2 3.2H24.3a3.2 3.2 0 0 0 3.2-3.2v-33.6a3.2 3.2 0 0 0-3.2-3.2H6.533Zm8.884 30a2.083 2.083 0 1 1 0 4.167 2.083 2.083 0 0 1 0-4.167Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M6.533 38.267a1.6 1.6 0 0 0-1.6 1.6v33.6a1.6 1.6 0 0 0 1.6 1.6H24.3a1.6 1.6 0 0 0 1.6-1.6v-33.6a1.6 1.6 0 0 0-1.6-1.6H6.533Zm8.884 26.8a3.683 3.683 0 1 1 0 7.367 3.683 3.683 0 0 1 0-7.367Zm-12.084-25.2a3.2 3.2 0 0 1 3.2-3.2H24.3a3.2 3.2 0 0 1 3.2 3.2v33.6a3.2 3.2 0 0 1-3.2 3.2H6.533a3.2 3.2 0 0 1-3.2-3.2v-33.6ZM17.5 68.75a2.083 2.083 0 1 0-4.167 0 2.083 2.083 0 0 0 4.167 0Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" fill-rule="evenodd" d="M15.417 60.066a6.317 6.317 0 1 0 0-12.633 6.317 6.317 0 0 0 0 12.633Zm0 1.6a7.917 7.917 0 1 0 0-15.833 7.917 7.917 0 0 0 0 15.833Z" clip-rule="evenodd"/>
|
|
</svg>
|
|
`},87895(e,t,i){"use strict";i.d(t,{R:()=>n});const n=i(82392).JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="3.33 3.33 76.49 75.83">
|
|
<path class="tw-fill-illustration-bg-primary" d="M3.333 8.334a5 5 0 0 1 5-5H35a5 5 0 0 1 5 5v56.667a5 5 0 0 1-5 5H8.333a5 5 0 0 1-5-5V8.334Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M35 5H8.333A3.333 3.333 0 0 0 5 8.335v56.667a3.333 3.333 0 0 0 3.333 3.333H35a3.333 3.333 0 0 0 3.333-3.333V8.334A3.333 3.333 0 0 0 35 5.001ZM8.333 3.335a5 5 0 0 0-5 5v56.667a5 5 0 0 0 5 5H35a5 5 0 0 0 5-5V8.334a5 5 0 0 0-5-5H8.333Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M18.333 9.167c0-.46.373-.833.834-.833h5a.833.833 0 0 1 0 1.667h-5a.833.833 0 0 1-.834-.834Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-tertiary" d="M36.667 38.333c0 10.126-6.716 18.334-15 18.334-8.285 0-15-8.208-15-18.334 0-10.125 6.715-18.333 15-18.333 8.284 0 15 8.208 15 18.333Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M21.667 55C28.733 55 35 47.866 35 38.333c0-9.533-6.267-16.666-13.333-16.666-7.067 0-13.334 7.133-13.334 16.666C8.333 47.866 14.6 55 21.667 55Zm0 1.667c8.284 0 15-8.208 15-18.334 0-10.125-6.716-18.333-15-18.333-8.285 0-15 8.208-15 18.333 0 10.126 6.715 18.334 15 18.334Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M68.333 35c0 6.444-5.223 11.667-11.666 11.667C50.223 46.667 45 41.444 45 35.001c0-6.444 5.223-11.667 11.667-11.667 6.443 0 11.666 5.223 11.666 11.667Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M56.667 45c5.523 0 10-4.477 10-10 0-5.522-4.477-10-10-10s-10 4.478-10 10c0 5.523 4.477 10 10 10Zm0 1.667c6.443 0 11.666-5.223 11.666-11.666 0-6.444-5.223-11.667-11.666-11.667C50.223 23.334 45 28.557 45 35.001c0 6.443 5.223 11.666 11.667 11.666Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" fill-rule="evenodd" d="M78.255 59.98a22.918 22.918 0 0 1 1.559 5.854H41.667v-8.333h-4.549a22.916 22.916 0 0 1 41.137 2.48Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M43.333 55.834v8.333h34.5a21.238 21.238 0 0 0-5.724-10.442 21.25 21.25 0 0 0-31.9 2.109h3.124Zm-5.18 0c-.368.54-.714 1.096-1.035 1.667h4.549v8.333h38.147a22.875 22.875 0 0 0-1.558-5.853 22.915 22.915 0 0 0-40.102-4.147Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-secondary" fill-rule="evenodd" d="M39.167 79.167c5.272 0 9.829-3.06 11.993-7.5h5.65c.442 0 .866-.176 1.178-.489L60 69.168l1.91 1.91a.833.833 0 0 0 1.18 0l.66-.66.66.66a.833.833 0 0 0 1.18 0l1.91-1.91 2.012 2.011c.312.313.736.489 1.178.489h2.786c.442 0 .866-.176 1.179-.489l5.05-5.05a.417.417 0 0 0 0-.59l-5.05-5.05A1.667 1.667 0 0 0 73.476 60H51.16c-2.164-4.44-6.721-7.5-11.993-7.5-7.364 0-13.334 5.97-13.334 13.333 0 7.364 5.97 13.334 13.334 13.334Zm-5-10.834a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M50.118 70h6.692L60 66.81l2.5 2.5 1.25-1.25L65 69.31l2.5-2.5L70.69 70h2.786l4.167-4.167-4.167-4.166H50.118l-.457-.937a11.667 11.667 0 0 0-10.494-6.563c-6.444 0-11.667 5.223-11.667 11.666 0 6.444 5.223 11.667 11.667 11.667 4.61 0 8.6-2.674 10.494-6.563l.457-.937Zm29.587-3.872a.417.417 0 0 0 0-.59l-5.05-5.05A1.667 1.667 0 0 0 73.476 60H51.16c-2.164-4.44-6.721-7.5-11.993-7.5-7.364 0-13.334 5.97-13.334 13.333 0 7.364 5.97 13.334 13.334 13.334 5.272 0 9.829-3.06 11.993-7.5h5.65c.442 0 .866-.176 1.178-.489L60 69.168l1.91 1.91a.833.833 0 0 0 1.179.001l.661-.661.66.66.002.001a.833.833 0 0 0 1.177 0l1.911-1.911 2.012 2.011c.312.313.736.489 1.178.489h2.786c.442 0 .866-.176 1.179-.489l5.05-5.05Zm-41.372-.295a4.167 4.167 0 1 1-8.333 0 4.167 4.167 0 0 1 8.333 0Zm-1.666 0a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0ZM16.126 28.497a15.793 15.793 0 0 1 5.542-.996c1.95 0 3.818.352 5.541.996a.833.833 0 0 0 .584-1.56 17.462 17.462 0 0 0-6.125-1.103c-2.154 0-4.218.39-6.125 1.102a.833.833 0 1 0 .583 1.561Zm5.542 2.337a11.648 11.648 0 0 0-9.335 4.667.833.833 0 1 1-1.332-1 13.314 13.314 0 0 1 10.667-5.334c4.331 0 7.947 1.77 10.59 4.41a.833.833 0 1 1-1.179 1.18c-2.36-2.36-5.564-3.923-9.411-3.923Zm-.117 1.667c-5.377 0-9.63 4.555-9.26 9.92l.075 1.081c.097 1.4.428 2.772.98 4.061l.47 1.099a.833.833 0 1 0 1.532-.656l-.47-1.1a10.835 10.835 0 0 1-.85-3.519l-.074-1.08a7.615 7.615 0 1 1 15.212-.524v.718a.833.833 0 0 1-1.666 0v-.834a5.848 5.848 0 0 0-1.522-3.927c-1.054-1.146-2.637-1.906-4.728-1.906-2.173 0-3.575.99-4.397 2.254-.79 1.216-1.02 2.639-1.02 3.58 0 2.326.209 4.02.794 5.424.593 1.425 1.54 2.465 2.84 3.549a.833.833 0 1 0 1.067-1.28c-1.2-1-1.921-1.835-2.369-2.91-.457-1.097-.665-2.527-.665-4.784 0-.726.187-1.803.75-2.67.533-.82 1.423-1.496 3-1.496 1.659 0 2.785.589 3.501 1.368a4.181 4.181 0 0 1 1.082 2.798v.834a2.5 2.5 0 0 0 5 0v-.718a9.282 9.282 0 0 0-9.282-9.282Zm-.754 9.116c0-.42.347-.783.823-.783a.88.88 0 0 1 .88.88v1.364a4.68 4.68 0 0 0 1.872 3.743l.684.513a5 5 0 0 0 3 1h.277a.833.833 0 0 0 0-1.667h-.277a3.334 3.334 0 0 1-2-.666l-.684-.513a3.013 3.013 0 0 1-1.205-2.41v-1.364a2.547 2.547 0 0 0-2.547-2.547c-1.342 0-2.492 1.056-2.49 2.453.001.82.033 1.85.148 2.804.125 1.035.627 1.848 1.163 2.526.244.31.509.608.757.887l.066.074c.274.308.526.597.752.895.553.729.7 1.326.544 1.719a.833.833 0 0 0 1.547.619c.504-1.26-.137-2.52-.763-3.345-.27-.356-.562-.688-.834-.994l-.06-.069a18.78 18.78 0 0 1-.701-.819c-.456-.577-.745-1.1-.817-1.693a23.012 23.012 0 0 1-.135-2.607Z" clip-rule="evenodd"/>
|
|
</svg>
|
|
`},46730(e,t,i){"use strict";i.d(t,{C:()=>n});const n=i(82392).JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 121 33">
|
|
<g fill="#84BD00" clip-path="url(#two-factor-auth-yubico-clip)">
|
|
<path
|
|
d="M11.011 19.366 15.18 7.47h6.02L11.054 32.622H4.698l2.903-6.891L.5 7.47h6.147l4.364 11.895ZM42.446 25.872h-5.87V23.84c-.925.73-1.92 1.364-2.971 1.892-.9.432-1.971.648-3.216.646-2.014 0-3.562-.584-4.645-1.751-1.082-1.168-1.627-2.895-1.633-5.18V7.471h5.865v9.127c0 .929.03 1.702.09 2.319.036.533.177 1.054.414 1.532.199.396.53.71.935.884.418.186 1 .279 1.749.279a5.726 5.726 0 0 0 1.657-.28 7.101 7.101 0 0 0 1.757-.818V7.47h5.868v18.4ZM66.065 16.42c0 2.894-.793 5.254-2.38 7.078-1.586 1.824-3.565 2.736-5.935 2.736a9.864 9.864 0 0 1-2.68-.327 9.183 9.183 0 0 1-2.191-.95l-.245.916H47.01V.377h5.87v9.012a14.137 14.137 0 0 1 2.753-1.754 7.413 7.413 0 0 1 3.24-.671c2.305 0 4.08.84 5.327 2.52 1.245 1.68 1.867 3.992 1.865 6.935Zm-6.032.122c0-1.637-.276-2.897-.828-3.78-.553-.884-1.537-1.326-2.952-1.326-.577.004-1.15.09-1.704.254a6.987 6.987 0 0 0-1.67.72v9.227c.388.144.79.249 1.2.311a9.8 9.8 0 0 0 1.363.083c1.548 0 2.7-.459 3.455-1.375.755-.918 1.135-2.289 1.138-4.114h-.002ZM75.961 4.85h-6.195V.377h6.195V4.85ZM75.8 25.872h-5.87v-18.4h5.87v18.4ZM90.789 26.363a15.651 15.651 0 0 1-4.36-.572 9.575 9.575 0 0 1-3.438-1.77 8.005 8.005 0 0 1-2.244-3.015c-.53-1.211-.796-2.631-.797-4.26 0-1.716.285-3.196.854-4.44a8.377 8.377 0 0 1 2.382-3.097A9.675 9.675 0 0 1 86.6 7.504a14.864 14.864 0 0 1 4.017-.54c1.16-.01 2.319.127 3.446.408 1.013.26 1.999.616 2.944 1.066v5.03h-.83c-.225-.197-.499-.426-.82-.688a7.315 7.315 0 0 0-1.176-.77 7.73 7.73 0 0 0-1.46-.598 6.497 6.497 0 0 0-1.858-.234c-1.56 0-2.76.5-3.598 1.5-.839 1-1.255 2.357-1.25 4.072 0 1.77.43 3.114 1.29 4.03.86.918 2.08 1.376 3.662 1.376a7.202 7.202 0 0 0 1.988-.254 6.426 6.426 0 0 0 1.47-.597c.344-.201.67-.431.974-.688.282-.241.536-.475.779-.706h.829v5.041c-.931.434-1.9.778-2.896 1.028a13.455 13.455 0 0 1-3.323.383ZM120.4 16.68c0 3.027-.875 5.411-2.626 7.153-1.751 1.741-4.209 2.613-7.375 2.614-3.165 0-5.624-.871-7.374-2.614-1.751-1.743-2.627-4.127-2.627-7.153 0-3.048.882-5.44 2.644-7.176 1.763-1.735 4.215-2.603 7.357-2.605 3.187 0 5.651.874 7.391 2.622 1.74 1.747 2.61 4.134 2.61 7.16Zm-7.203 4.474a4.741 4.741 0 0 0 .852-1.696c.192-.661.287-1.576.286-2.745.018-.915-.08-1.829-.293-2.719a4.768 4.768 0 0 0-.818-1.753 2.853 2.853 0 0 0-1.251-.95 4.4 4.4 0 0 0-1.577-.28 4.607 4.607 0 0 0-1.504.229c-.489.192-.92.508-1.251.918a4.687 4.687 0 0 0-.854 1.754 10.45 10.45 0 0 0-.318 2.8c-.014.88.079 1.758.277 2.615.141.645.418 1.251.813 1.778a3.11 3.11 0 0 0 1.25.935 4.6 4.6 0 0 0 3.17.023 2.794 2.794 0 0 0 1.218-.909Z" />
|
|
</g>
|
|
<defs>
|
|
<clipPath id="two-factor-auth-yubico-clip">
|
|
<path class="tw-fill-text-alt2" d="M.5.377h120v32.247H.5z" />
|
|
</clipPath>
|
|
</defs>
|
|
</svg>
|
|
`},32415(e,t,i){"use strict";i.d(t,{c:()=>n});const n=i(82392).JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="5 4 87 87">
|
|
<circle cx="48" cy="48" r="42" class="tw-fill-illustration-bg-primary tw-stroke-illustration-outline" stroke-width="2"/>
|
|
<rect width="18" height="14" x="12" y="70" class="tw-fill-illustration-bg-secondary tw-stroke-illustration-outline" stroke-width="2" rx="2"/>
|
|
<rect width="2" height="6" x="20" y="74" class="tw-fill-illustration-outline" rx="1"/>
|
|
<path class="tw-stroke-illustration-outline" stroke-width="2" d="M25 69v-1a4 4 0 0 0-8 0v1"/>
|
|
<circle cx="80" cy="16" r="11" class="tw-fill-illustration-tertiary tw-stroke-illustration-outline" stroke-width="2"/>
|
|
<path class="tw-stroke-illustration-outline" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m76.673 19.495 3.5-3.5m3.5-3.5-3.5 3.5m0 0-3.5-3.5 7 7"/>
|
|
<circle cx="48" cy="48" r="15.5" class="tw-fill-illustration-bg-tertiary tw-stroke-illustration-outline" stroke-width="2"/>
|
|
<path class="tw-stroke-illustration-outline" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M52.95 52.243 48 48.707v-9.9"/>
|
|
</svg>
|
|
`},54006(e,t,i){"use strict";i.d(t,{u:()=>n});const n=i(82392).JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 10 80 60">
|
|
<path class="tw-fill-illustration-bg-primary" d="M0 15a5 5 0 0 1 5-5h45a5 5 0 0 1 5 5v31.667a5 5 0 0 1-5 5H5a5 5 0 0 1-5-5V15Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M50 11.667H5A3.333 3.333 0 0 0 1.667 15v31.667A3.333 3.333 0 0 0 5 50h45a3.333 3.333 0 0 0 3.333-3.333V15A3.333 3.333 0 0 0 50 11.667ZM5 10a5 5 0 0 0-5 5v31.667a5 5 0 0 0 5 5h45a5 5 0 0 0 5-5V15a5 5 0 0 0-5-5H5Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-secondary" d="M19.167 30a2.5 2.5 0 0 1 2.5-2.5h11.666a2.5 2.5 0 0 1 2.5 2.5v8.333a2.5 2.5 0 0 1-2.5 2.5H21.667a2.5 2.5 0 0 1-2.5-2.5V30Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M33.333 29.167H21.667a.833.833 0 0 0-.834.833v8.333c0 .46.373.834.834.834h11.666c.46 0 .834-.373.834-.834V30a.833.833 0 0 0-.834-.833ZM21.667 27.5a2.5 2.5 0 0 0-2.5 2.5v8.333a2.5 2.5 0 0 0 2.5 2.5h11.666a2.5 2.5 0 0 0 2.5-2.5V30a2.5 2.5 0 0 0-2.5-2.5H21.667Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" d="M26.667 32.5a.833.833 0 0 1 1.666 0v3.334a.833.833 0 0 1-1.666 0V32.5Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M23.334 26.667a4.167 4.167 0 0 1 8.333 0v.833H30v-.833a2.5 2.5 0 0 0-5 0v.833h-1.666v-.833ZM54.167 20H.833v-1.666h53.334v1.667Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" d="M51.667 15a1.667 1.667 0 1 1-3.333 0 1.667 1.667 0 0 1 3.333 0ZM46.667 15a1.667 1.667 0 1 1-3.333 0 1.667 1.667 0 0 1 3.333 0ZM41.667 15a1.667 1.667 0 1 1-3.333 0 1.667 1.667 0 0 1 3.333 0Z"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M68.333 35c0 6.444-5.223 11.667-11.666 11.667C50.223 46.667 45 41.444 45 35.001c0-6.444 5.223-11.667 11.667-11.667 6.443 0 11.666 5.223 11.666 11.667Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M56.667 45c5.523 0 10-4.477 10-10 0-5.522-4.477-10-10-10s-10 4.478-10 10c0 5.523 4.477 10 10 10Zm0 1.667c6.443 0 11.666-5.223 11.666-11.666 0-6.444-5.223-11.667-11.666-11.667C50.223 23.334 45 28.557 45 35.001c0 6.443 5.223 11.666 11.667 11.666Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M78.256 59.98A22.918 22.918 0 0 1 80 68.75c0 .691-.56 1.25-1.25 1.25H35.417c-.69 0-1.25-.559-1.25-1.25a22.916 22.916 0 0 1 44.089-8.77Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M78.33 68.334a21.25 21.25 0 0 0-42.492 0h42.491Zm1.67.417a22.918 22.918 0 0 0-31.686-21.173 22.917 22.917 0 0 0-14.147 21.173c0 .69.56 1.25 1.25 1.25H78.75c.69 0 1.25-.56 1.25-1.25Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-tertiary" d="M9.167 50.834a6.667 6.667 0 0 1 6.666-6.667h22.5a6.667 6.667 0 0 1 0 13.333h-22.5a6.667 6.667 0 0 1-6.666-6.666Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M38.333 45.834h-22.5a5 5 0 1 0 0 10h22.5a5 5 0 0 0 0-10Zm-22.5-1.667a6.667 6.667 0 0 0 0 13.333h22.5a6.667 6.667 0 1 0 0-13.333h-22.5Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M16.67 47.977c.46 0 .834.374.834.834v1.166l1.093-.358a.833.833 0 1 1 .519 1.584l-1.108.363.694.972a.833.833 0 1 1-1.357.969l-.675-.945-.675.945a.833.833 0 0 1-1.356-.969l.694-.972-1.108-.363a.833.833 0 0 1 .518-1.584l1.094.359V48.81c0-.46.373-.834.833-.834Zm7.5 0c.46 0 .834.374.834.834v1.166l1.093-.358a.833.833 0 1 1 .519 1.584l-1.108.363.694.972a.833.833 0 1 1-1.357.969l-.675-.945-.675.945a.833.833 0 0 1-1.356-.969l.694-.972-1.108-.363a.833.833 0 0 1 .518-1.584l1.094.359V48.81c0-.46.373-.834.833-.834ZM29.167 52.5c0-.46.373-.833.833-.833h3.333a.833.833 0 1 1 0 1.667H30a.833.833 0 0 1-.833-.834ZM35.834 52.5c0-.46.373-.833.833-.833H40a.833.833 0 0 1 0 1.667h-3.333a.833.833 0 0 1-.834-.834Z" clip-rule="evenodd"/>
|
|
</svg>
|
|
`},9045(e,t,i){"use strict";i.d(t,{E:()=>n});const n=i(82392).JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 8.33 80 66.67">
|
|
<path class="tw-fill-illustration-bg-primary" d="M8.333 66.667H20L18.333 75H10l-1.667-8.333Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M8.333 66.667 10 75h8.333L20 66.667H8.333Zm2.033 1.667 1 5h5.601l1-5h-7.6Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-primary" d="M60 66.667h11.667L70 75h-8.333L60 66.667Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M60 66.667 61.667 75H70l1.667-8.333H60Zm2.033 1.667 1 5h5.6l1-5h-7.6Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-secondary" fill-rule="evenodd" d="m10.417 68.334.416 2.5H17.5l.417-2.5h-7.5ZM62.084 68.334l.416 2.5h6.667l.416-2.5h-7.5Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-primary" d="M0 15a6.667 6.667 0 0 1 6.667-6.666h66.666A6.667 6.667 0 0 1 80 15.001v46.666a6.667 6.667 0 0 1-6.666 6.667H6.666A6.667 6.667 0 0 1 0 61.667V15.001Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M73.334 10H6.666a5 5 0 0 0-5 5v46.667a5 5 0 0 0 5 5h66.666a5 5 0 0 0 5-5V15.001a5 5 0 0 0-5-5ZM6.666 8.335A6.667 6.667 0 0 0 0 15.001v46.666a6.667 6.667 0 0 0 6.667 6.667h66.666A6.667 6.667 0 0 0 80 61.667V15.001a6.667 6.667 0 0 0-6.666-6.667H6.666Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M6.667 18.333A3.333 3.333 0 0 1 10 15h60a3.333 3.333 0 0 1 3.333 3.333v40A3.333 3.333 0 0 1 70 61.667H10a3.333 3.333 0 0 1-3.333-3.334v-40Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M70 16.667H10c-.92 0-1.667.746-1.667 1.666v40C8.333 59.253 9.08 60 10 60h60c.92 0 1.667-.746 1.667-1.667v-40c0-.92-.746-1.666-1.667-1.666ZM10 15a3.333 3.333 0 0 0-3.333 3.333v40A3.333 3.333 0 0 0 10 61.667h60a3.333 3.333 0 0 0 3.333-3.334v-40A3.333 3.333 0 0 0 70 15H10Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-primary" d="M45 38.333c0 8.745-7.089 15.834-15.833 15.834-8.745 0-15.834-7.09-15.834-15.834S20.423 22.5 29.167 22.5 45 29.589 45 38.333Z"/>
|
|
<path class="tw-fill-illustration-tertiary" d="M36.667 38.334a7.5 7.5 0 1 1-15 0 7.5 7.5 0 0 1 15 0Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M30 25a.833.833 0 0 0-1.666 0v4.204A9.125 9.125 0 0 0 23.3 31.29l-2.973-2.973a.834.834 0 0 0-1.179 1.179l2.973 2.973a9.125 9.125 0 0 0-2.084 5.032h-4.204a.833.833 0 1 0 0 1.667h4.204a9.125 9.125 0 0 0 2.084 5.032l-2.973 2.974a.833.833 0 1 0 1.179 1.178l2.973-2.973a9.127 9.127 0 0 0 5.033 2.085v4.204a.833.833 0 0 0 1.666 0v-4.204a9.127 9.127 0 0 0 5.033-2.085l2.973 2.973a.833.833 0 0 0 1.178-1.178l-2.973-2.974a9.125 9.125 0 0 0 2.085-5.032H42.5a.833.833 0 1 0 0-1.667h-4.204a9.125 9.125 0 0 0-2.085-5.032l2.973-2.973a.833.833 0 1 0-1.178-1.179l-2.973 2.973A9.125 9.125 0 0 0 30 29.204V25Zm4.468 18.64a7.5 7.5 0 1 1 0-10.61h.002l.003.003a7.476 7.476 0 0 1 2.194 5.297v.004c0 2.07-.839 3.944-2.195 5.301l-.002.002-.002.002ZM32.5 38.333a3.333 3.333 0 1 1-6.667 0 3.333 3.333 0 0 1 6.667 0Zm1.667 0a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-primary" d="M69.167 21.667c0-.92.746-1.667 1.666-1.667h3.334c.92 0 1.666.746 1.666 1.667V30c0 .92-.746 1.667-1.666 1.667h-3.334c-.92 0-1.666-.747-1.666-1.667v-8.333Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M74.167 21.667h-3.334V30h3.334v-8.333ZM70.833 20c-.92 0-1.666.746-1.666 1.667V30c0 .92.746 1.667 1.666 1.667h3.334c.92 0 1.666-.747 1.666-1.667v-8.333c0-.92-.746-1.667-1.666-1.667h-3.334Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-primary" d="M69.167 46.667c0-.92.746-1.667 1.666-1.667h3.334c.92 0 1.666.746 1.666 1.667V55c0 .92-.746 1.667-1.666 1.667h-3.334c-.92 0-1.666-.747-1.666-1.667v-8.333Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M74.167 46.667h-3.334V55h3.334v-8.333ZM70.833 45c-.92 0-1.666.746-1.666 1.667V55c0 .92.746 1.667 1.666 1.667h3.334c.92 0 1.666-.747 1.666-1.667v-8.333c0-.92-.746-1.667-1.666-1.667h-3.334Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-secondary" fill-rule="evenodd" d="M70.834 51.667V55h3.333v-3.333h-3.334ZM70.834 26.667V30h3.333v-3.333h-3.334Z" clip-rule="evenodd"/>
|
|
</svg>
|
|
`},64456(e,t,i){"use strict";i.d(t,{nF:()=>Te,dl:()=>yt,$w:()=>ys,v2:()=>qi,FX:()=>Jn,NH:()=>$n,jr:()=>us,tu:()=>v.t,m5:()=>v.m,XJ:()=>Se,qG:()=>ee,K3:()=>vt,Ak:()=>Je,O_:()=>Re,Mf:()=>Yt,l$:()=>fs,o:()=>ps,Rz:()=>Xt.R,s7:()=>$t,el:()=>ji,mZ:()=>Mi,MP:()=>zi,dz:()=>Di,Xj:()=>Wi,r0:()=>Hn,C5:()=>Xn,Yi:()=>ls,yX:()=>qn,Ms:()=>ur,lA:()=>ds,ag:()=>Cr,GA:()=>On,wV:()=>kn});var n=i(94735),r=i(66316),s=i(88744),o=i(29029),a=i(81573),l=i(55807),c=i(14041),d=i(56898),u=i(7730),h=i(67311),A=i(58384),p=i(25740);class g{constructor(e){this.data=e}static open(e,t){return e.open(g,{data:t,positionStrategy:new r.u})}}g.ɵfac=function(e){return new(e||g)(c.rXU(s.Qs))},g.ɵcmp=c.VBU({type:g,selectors:[["ng-component"]],decls:16,vars:10,consts:[["bitDialogIcon","","name","bwi-info-circle",1,"tw-text-info","tw-text-3xl"],["bitDialogTitle",""],["bitDialogContent",""],["bitDialogFooter",""],["bitButton","","href","https://bitwarden.com/help/fingerprint-phrase/","target","_blank","rel","noreferrer","buttonType","primary","bitDialogClose",""],["name","bwi-external-link",1,"bwi-fw"],["bitButton","","type","button","buttonType","secondary","bitDialogClose",""]],template:function(e,t){1&e&&(c.j41(0,"bit-simple-dialog"),c.nrm(1,"bit-icon",0),c.j41(2,"span",1)(3,"strong"),c.EFF(4),c.nI1(5,"i18n"),c.k0s()(),c.j41(6,"span",2),c.EFF(7),c.k0s(),c.qex(8,3),c.j41(9,"a",4),c.EFF(10),c.nI1(11,"i18n"),c.nrm(12,"bit-icon",5),c.k0s(),c.j41(13,"button",6),c.EFF(14),c.nI1(15,"i18n"),c.k0s(),c.bVm(),c.k0s()),2&e&&(c.R7$(4),c.SpI("",c.bMT(5,4,"yourAccountsFingerprint"),":"),c.R7$(3),c.SpI(" ",t.data.fingerprint.join("-")," "),c.R7$(3),c.SpI(" ",c.bMT(11,6,"learnMore")," "),c.R7$(4),c.SpI(" ",c.bMT(15,8,"close")," "))},dependencies:[n.p,o.t,d.Q,a.P,u.I,h.LJ,h.hJ,h.o_,l.o,A.R,p.$],encapsulation:2});var v=i(54873),m=i(46758),f=i(92128),y=i(84210),b=i(84522),C=i(87806),I=i(68108),w=i(78950),B=i(29236),E=i(72135),S=i(34949),Q=i(5206),k=i(82392);const R=k.JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="3.33 3.33 73.33 73.33">
|
|
<path class="tw-fill-illustration-bg-primary" d="m16.921 66.662-1.673-1.674a17.425 17.425 0 0 1-3.735-19.09l3.215-7.627c.717-1.7 1.283-3.46 1.692-5.26l3.285-14.46a2.222 2.222 0 0 1 2.666-1.673 5.079 5.079 0 0 1 3.855 5.857l-2.025 11.138a4.14 4.14 0 0 0 .58 2.963c.433.68 1.443.626 1.8-.097l9.292-18.772L41.46 8.09a2.163 2.163 0 0 1 2.85-.87 4.944 4.944 0 0 1 2.158 6.735l-3.95 7.46-4.144 10.261a3.619 3.619 0 0 0 .252 3.218.905.905 0 0 0 1.478.105l9.44-11.595 10.003-10.718a2.359 2.359 0 0 1 3.474.026 5.392 5.392 0 0 1-.048 7.287l-7.595 8.178-8.34 10.405a3.512 3.512 0 0 0-.649 3.12.878.878 0 0 0 1.344.493l11.092-7.608 11.191-5.598a2.29 2.29 0 0 1 3.215 1.375 5.236 5.236 0 0 1-2.74 6.26l-8.625 4.14c-.26.124-.51.267-.749.428l-9.414 6.322a3.73 3.73 0 0 0-1.64 3.383.933.933 0 0 0 1.284.792l8.651-3.544 8.318-2.138a1.731 1.731 0 0 1 2.057 1.084 3.957 3.957 0 0 1-2.402 5.088l-6.886 2.428-9.987 4.926c-.446.22-.863.495-1.241.818l-8.522 7.274c-7.143 6.098-17.774 5.68-24.415-.962Z"/>
|
|
<path class="tw-fill-illustration-bg-secondary" fill-rule="evenodd" d="M24.185 36.4a.833.833 0 0 1 1.175-.082c6.917 6.003 7.658 16.477 1.655 23.394a.833.833 0 1 1-1.259-1.093c5.4-6.221 4.734-15.643-1.488-21.043a.833.833 0 0 1-.083-1.175Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-tertiary" fill-rule="evenodd" d="M75.833 61.667c.46 0 .834.373.834.833 0 7.824-6.343 14.167-14.167 14.167a.833.833 0 1 1 0-1.667C69.403 75 75 69.404 75 62.5c0-.46.373-.833.833-.833ZM4.167 18.334a.833.833 0 0 1-.834-.833c0-7.824 6.343-14.167 14.167-14.167a.833.833 0 0 1 0 1.667C10.596 5 5 10.597 5 17.5c0 .46-.373.833-.833.833Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-tertiary" fill-rule="evenodd" d="M71.667 61.667c.46 0 .833.373.833.833 0 5.523-4.477 10-10 10a.833.833 0 0 1 0-1.666 8.333 8.333 0 0 0 8.333-8.334c0-.46.373-.833.834-.833ZM8.333 18.334a.833.833 0 0 1-.833-.833c0-5.523 4.477-10 10-10a.833.833 0 0 1 0 1.666 8.333 8.333 0 0 0-8.333 8.334c0 .46-.373.833-.834.833Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M58.968 12.05a3.16 3.16 0 0 1 4.632.058 6.15 6.15 0 0 1-.164 8.427l-7.431 7.597-8.351 10.945a2.74 2.74 0 0 0-.466 2.384c.004.014.01.02.014.025a.063.063 0 0 0 .024.015c.01.004.02.005.028.004a.056.056 0 0 0 .027-.01l11.12-7.63 11.244-5.622a3.124 3.124 0 0 1 4.383 1.875 6.07 6.07 0 0 1-3.175 7.257l-7.942 3.811c-.678.325-1.332.7-1.957 1.119l-8.785 5.9a2.898 2.898 0 0 0-1.274 2.628.1.1 0 0 0 .137.084l8.705-3.565 8.372-2.153a2.565 2.565 0 0 1 3.048 1.605 4.79 4.79 0 0 1-2.907 6.16l-6.84 2.41-9.942 4.905c-.384.19-.743.426-1.069.704l-8.522 7.275c-7.474 6.38-18.597 5.942-25.545-1.007l-1.674-1.673a18.259 18.259 0 0 1-3.913-20.004l3.215-7.627a30.676 30.676 0 0 0 1.647-5.12l3.285-14.461a3.055 3.055 0 0 1 3.667-2.3 5.912 5.912 0 0 1 4.487 6.818l-2.025 11.138a3.306 3.306 0 0 0 .463 2.366c.085.133.281.122.351-.018l9.301-18.793 5.6-9.899a2.996 2.996 0 0 1 3.947-1.204 5.777 5.777 0 0 1 2.522 7.87l-3.93 7.422-4.128 10.223a2.782 2.782 0 0 0 .194 2.473.07.07 0 0 0 .115.008l10.415-12.856 9.096-9.564Zm3.396 1.176a1.493 1.493 0 0 0-2.189-.027l-9.05 9.516L40.75 35.52a1.737 1.737 0 0 1-2.84-.2 4.45 4.45 0 0 1-.31-3.955l4.16-10.302 3.971-7.499a4.11 4.11 0 0 0-1.794-5.6 1.33 1.33 0 0 0-1.752.535l-5.576 9.859-9.281 18.75c-.646 1.305-2.47 1.403-3.25.175a4.972 4.972 0 0 1-.698-3.559l2.025-11.138a4.246 4.246 0 0 0-3.222-4.896 1.389 1.389 0 0 0-1.667 1.045l-3.284 14.461c-.42 1.847-1.001 3.654-1.737 5.399l-3.215 7.627a16.592 16.592 0 0 0 3.556 18.177l1.674 1.674c6.333 6.333 16.472 6.733 23.284.918l8.522-7.275c.43-.368.906-.68 1.414-.931l10.031-4.949 6.933-2.444a3.124 3.124 0 0 0 1.897-4.017.898.898 0 0 0-1.068-.562l-8.261 2.124-8.6 3.522a1.766 1.766 0 0 1-2.43-1.499 4.564 4.564 0 0 1 2.007-4.139l8.785-5.9c.691-.464 1.414-.877 2.165-1.237l7.942-3.812a4.403 4.403 0 0 0 2.303-5.264 1.457 1.457 0 0 0-2.045-.875l-11.14 5.572-11.027 7.564c-.98.672-2.33.177-2.642-.97a4.407 4.407 0 0 1 .748-3.833l8.413-11.026 7.502-7.67a4.483 4.483 0 0 0 .12-6.144Z" clip-rule="evenodd"/>
|
|
</svg>
|
|
`;var F=i(9045),T=i(28990),D=i(38190),P=i(51151),M=i(7861),x=i(29377),V=i(56962),G=i(83516),U=i(78781),O=i(63457),N=i(37579),j=i(47135),Y=i(26411),X=i(22191),z=i(26477),L=i(5513),W=i(11217),K=i(26983),Z=i(1221),H=i(69855),J=i(91059),q=i(52396),$=i(40271),_=i(50700);class ee{}var te=i(37115),ie=i(18499),ne=i(2471),re=i(1601),se=i(86214),oe=i(26657),ae=i(38620),le=i(50352),ce=i(90246),de=i(86226),ue=i(19934),he=i(43759),Ae=i(76356),pe=i(69896),ge=i(36288),ve=i(57178),me=i(49519),fe=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const ye=["masterPasswordInputRef"],be=e=>({"tw-hidden":e});function Ce(e,t){if(1&e){const e=c.RV6();c.qex(0),c.j41(1,"button",18),c.nI1(2,"i18n"),c.bIt("click",function(){W.eBV(e);const t=c.XpG();return W.Njj(t.handleLoginWithPasskeyClick())}),c.nrm(3,"bit-icon",19),c.EFF(4),c.nI1(5,"i18n"),c.k0s(),c.bVm()}if(2&e){const e=c.XpG();c.R7$(),c.Y8G("bitTooltip",e.ssoRequired?c.bMT(2,4,"yourOrganizationRequiresSingleSignOn"):"")("addTooltipToDescribedby",e.ssoRequired)("disabled",e.ssoRequired),c.R7$(3),c.SpI(" ",c.bMT(5,6,"logInWithPasskey")," ")}}function Ie(e,t){if(1&e){const e=c.RV6();c.qex(0),c.j41(1,"div",20),c.EFF(2),c.nI1(3,"i18n"),c.k0s(),c.j41(4,"button",21),c.bIt("click",function(){W.eBV(e);const t=c.XpG();return W.Njj(t.startAuthRequestLogin())}),c.nrm(5,"bit-icon",22),c.EFF(6),c.nI1(7,"i18n"),c.k0s(),c.bVm()}2&e&&(c.R7$(2),c.JRh(c.bMT(3,2,"or")),c.R7$(4),c.SpI(" ",c.bMT(7,4,"loginWithDevice")," "))}function we(e,t){if(1&e){const e=c.RV6();c.qex(0),c.j41(1,"button",23),c.bIt("click",function(){W.eBV(e);const t=c.XpG();return W.Njj(t.backButtonClicked())}),c.EFF(2),c.nI1(3,"i18n"),c.k0s(),c.bVm()}2&e&&(c.R7$(2),c.SpI(" ",c.bMT(3,1,"back")," "))}const Be="LoginComponent";var Ee;!function(e){e.EMAIL_ENTRY="EmailEntry",e.MASTER_PASSWORD_ENTRY="MasterPasswordEntry"}(Ee||(Ee={}));class Se{get emailFormControl(){return this.formGroup.controls.email}constructor(e,t,i,n,r,s,o,a,l,c,d,u,h,A,p,g,v,m,f,b,w,B,E,S,Q){this.activatedRoute=e,this.anonLayoutWrapperDataService=t,this.appIdService=i,this.broadcasterService=n,this.destroyRef=r,this.devicesApiService=s,this.formBuilder=o,this.i18nService=a,this.loginEmailService=l,this.loginComponentService=c,this.loginStrategyService=d,this.messagingService=u,this.ngZone=h,this.passwordStrengthService=A,this.platformUtilsService=p,this.policyService=g,this.router=v,this.toastService=m,this.logService=f,this.validationService=b,this.loginSuccessHandlerService=w,this.configService=B,this.ssoLoginService=E,this.environmentService=S,this.passwordPreloginService=Q,this.destroy$=new C.B,this.Icons={WaveIcon:R,VaultIcon:F.E},this.ClientType=P.sK,this.orgPoliciesFromInvite=null,this.LoginUiState=Ee,this.isKnownDevice=!1,this.loginUiState=Ee.EMAIL_ENTRY,this.ssoRequired=!1,this.formGroup=this.formBuilder.group({email:["",[y.k0.required,y.k0.email]],masterPassword:["",[y.k0.required,y.k0.minLength(U.A.originalMinimumPasswordLength)]],rememberEmail:[!1]},{updateOn:"submit"}),this.deferFocus=null,this.submit=()=>fe(this,void 0,void 0,function*(){var e;if(this.clientType===P.sK.Desktop&&this.loginUiState!==Ee.MASTER_PASSWORD_ENTRY)return;const{email:t,masterPassword:i}=this.formGroup.value;if(this.formGroup.markAllAsTouched(),this.formGroup.invalid)return;if(!t||!i)return void this.logService.error("Email and master password are required");this.orgPoliciesFromInvite=this.loginComponentService.getOrgPoliciesFromOrgInvite?yield this.loginComponentService.getOrgPoliciesFromOrgInvite(t):null;const n=null===(e=this.orgPoliciesFromInvite)||void 0===e?void 0:e.enforcedPasswordPolicyOptions,r=yield(0,I._)(this.passwordPreloginService.getPreloginData$(t)),s=new T.F2(t,i,void 0,n,r);try{const e=yield this.loginStrategyService.logIn(s);yield this.handleAuthResult(e)}catch(o){this.logService.error(o),yield this.handleSubmitError(o)}}),this.handlePopState=e=>fe(this,void 0,void 0,function*(){this.loginUiState===Ee.MASTER_PASSWORD_ENTRY?(e.preventDefault(),this.toggleLoginUiState(Ee.EMAIL_ENTRY)):this.loginUiState===Ee.EMAIL_ENTRY&&(e.preventDefault(),yield this.continue())}),this.clientType=this.platformUtilsService.getClientType()}ngOnInit(){return fe(this,void 0,void 0,function*(){window.addEventListener("popstate",this.handlePopState),yield this.defaultOnInit(),this.clientType===P.sK.Desktop&&(yield this.desktopOnInit())})}ngOnDestroy(){window.removeEventListener("popstate",this.handlePopState),this.clientType===P.sK.Desktop&&this.broadcasterService.unsubscribe(Be),this.destroy$.next(),this.destroy$.complete()}defaultOnInit(){return fe(this,void 0,void 0,function*(){var e,t;const i=yield(0,I._)(this.activatedRoute.queryParams),n=this.applyEmailFromQueryParams(i);n||(yield this.loadRememberedEmail()),this.emailFormControl.value&&(yield this.getKnownDevice(this.emailFormControl.value));const r=i?yield null===(t=(e=this.loginComponentService).handleQueryParamErrors)||void 0===t?void 0:t.call(e,i):void 0;(null==r?void 0:r.autoSubmit)&&n&&(yield this.continuePressed(r.mpEntryLayoutOverride)),yield this.initSsoRequiredTracking(),this.environmentService.environment$.pipe((0,w.i)(1),(0,B.Q)(this.destroy$)).subscribe(e=>{this.loginUiState===Ee.MASTER_PASSWORD_ENTRY&&(this.formGroup.controls.masterPassword.setErrors(null),this.formGroup.controls.masterPassword.updateValueAndValidity(),this.prefetchPasswordPreloginData())})})}applyEmailFromQueryParams(e){const t=null==e?void 0:e.email;return null!=t&&t.indexOf("@")>-1&&(this.formGroup.controls.email.setValue(t),!0)}desktopOnInit(){return fe(this,void 0,void 0,function*(){this.broadcasterService.subscribe(Be,e=>fe(this,void 0,void 0,function*(){this.ngZone.run(()=>{switch(e.command){case"windowHidden":this.onWindowHidden();break;case"windowIsFocused":null===this.deferFocus?(this.deferFocus=!e.windowIsFocused,this.deferFocus||this.focusInput()):this.deferFocus&&e.windowIsFocused&&(this.focusInput(),this.deferFocus=!1)}})})),this.messagingService.send("getWindowIsFocused")})}initSsoRequiredTracking(){return fe(this,void 0,void 0,function*(){const e=yield(0,I._)(this.ssoLoginService.ssoRequiredCache$);null==e||e.length<1||(0,E.z)([this.formGroup.controls.email.valueChanges.pipe((0,S.Z)(this.emailFormControl.value)),this.environmentService.globalEnvironment$]).pipe((0,f.pQ)(this.destroyRef)).subscribe(([t,i])=>{const n=null==t?void 0:t.toLowerCase(),r=i.getWebVaultUrl();this.ssoRequired=!!n&&e.some(e=>e.email===n&&e.webVaultUrl===r)})})}handleSubmitError(e){return fe(this,void 0,void 0,function*(){var t;if(e instanceof M._)if(e.statusCode===P.kG.BadRequest)if(null===(t=e.message)||void 0===t?void 0:t.toLowerCase().includes("username or password is incorrect")){const e=yield(0,I._)(this.environmentService.environment$),t=U.A.getHost(e.getWebVaultUrl());this.formGroup.controls.masterPassword.setErrors({error:{message:this.i18nService.t("invalidMasterPasswordConfirmEmailAndHost",t)}})}else this.validationService.showError(e);else this.validationService.showError(e);else this.validationService.showError(e)})}handleAuthResult(e){return fe(this,void 0,void 0,function*(){var t,i;if(e.requiresEncryptionKeyMigration)this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:this.i18nService.t("legacyEncryptionUnsupported")});else if(e.requiresTwoFactor)yield this.router.navigate(["2fa"]);else if(e.requiresDeviceVerification)yield this.router.navigate(["device-verification"]);else{if(e.requiresSso){const n=null===(i=null===(t=this.formGroup)||void 0===t?void 0:t.value)||void 0===i?void 0:i.email;return n?void(yield this.loginComponentService.redirectToSsoLoginWithOrganizationSsoIdentifier(n,e.ssoOrganizationIdentifier)):void this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:this.i18nService.t("emailRequiredForSsoLogin")})}if(yield this.loginSuccessHandlerService.run(e.userId,e.masterPassword),this.orgPoliciesFromInvite){if(yield this.isPasswordChangeRequiredByOrgPolicy(this.orgPoliciesFromInvite.enforcedPasswordPolicyOptions))return void(yield this.router.navigate(["change-password"]))}this.clientType===P.sK.Browser?yield this.router.navigate(["/tabs/vault"]):yield this.router.navigate(["vault"])}})}isPasswordChangeRequiredByOrgPolicy(e){return fe(this,void 0,void 0,function*(){var t,i;try{if(null==e)return!1;const n=this.formGroup.controls.masterPassword.value;if(!n)return!1;const r=null===(i=this.passwordStrengthService.getPasswordStrength(n,null!==(t=this.formGroup.value.email)&&void 0!==t?t:void 0))||void 0===i?void 0:i.score;return!this.policyService.evaluateMasterPassword(r,n,e)}catch(n){return this.logService.error(n),!1}})}startAuthRequestLogin(){return fe(this,void 0,void 0,function*(){var e,t;null===(e=this.formGroup.get("masterPassword"))||void 0===e||e.clearValidators(),null===(t=this.formGroup.get("masterPassword"))||void 0===t||t.updateValueAndValidity(),this.formGroup.valid&&(yield this.router.navigate(["/login-with-device"]))})}toggleLoginUiState(e,t){return fe(this,void 0,void 0,function*(){var i,n;if(this.loginUiState=e,this.loginUiState===Ee.EMAIL_ENTRY)this.loginComponentService.showBackButton(!1),this.anonLayoutWrapperDataService.setAnonLayoutWrapperData({pageTitle:{key:"logIn"},pageIcon:this.Icons.VaultIcon,pageSubtitle:null}),this.formGroup.controls.masterPassword.reset(),this.isKnownDevice=!1;else if(this.loginUiState===Ee.MASTER_PASSWORD_ENTRY){this.loginComponentService.showBackButton(!0),this.anonLayoutWrapperDataService.setAnonLayoutWrapperData(null!=t?t:{pageTitle:{key:"loginPageMasterPasswordEntryScreenTitle"},pageSubtitle:this.emailFormControl.value,pageIcon:this.Icons.WaveIcon}),this.formGroup.controls.masterPassword.markAsUntouched(),this.ngZone.isStable?null===(n=null===(i=this.masterPasswordInputRef)||void 0===i?void 0:i.nativeElement)||void 0===n||n.focus():this.ngZone.onStable.pipe((0,Q.s)(1),(0,B.Q)(this.destroy$)).subscribe(()=>{var e,t;null===(t=null===(e=this.masterPasswordInputRef)||void 0===e?void 0:e.nativeElement)||void 0===t||t.focus()});const e=this.emailFormControl.value;e&&(yield this.getKnownDevice(e))}})}isLoginWithPasskeySupported(){return this.loginComponentService.isLoginWithPasskeySupported()}goToHint(){return fe(this,void 0,void 0,function*(){yield this.router.navigateByUrl("/hint")})}continuePressed(e){return fe(this,void 0,void 0,function*(){history.pushState({},"",window.location.href),yield this.continue(e)})}continue(e){return fe(this,void 0,void 0,function*(){this.validateEmail()&&(this.prefetchPasswordPreloginData(),yield this.toggleLoginUiState(Ee.MASTER_PASSWORD_ENTRY,e))})}handleLoginWithPasskeyClick(){return fe(this,void 0,void 0,function*(){yield this.router.navigate(["/login-with-passkey"])})}handleSsoClick(){return fe(this,void 0,void 0,function*(){if(!this.validateEmail())return;const e=this.formGroup.value.email;e?yield this.loginComponentService.redirectToSsoLogin(e):this.logService.error("Email is required for SSO")})}getKnownDevice(e){return fe(this,void 0,void 0,function*(){if(e)try{const t=yield this.appIdService.getAppId();this.isKnownDevice=yield this.devicesApiService.getKnownDevice(e,t)}catch(t){this.isKnownDevice=!1}else this.isKnownDevice=!1})}loadRememberedEmail(){return fe(this,void 0,void 0,function*(){const e=yield(0,I._)(this.loginEmailService.rememberedEmail$);e?(this.formGroup.controls.email.setValue(e),this.formGroup.controls.rememberEmail.setValue(!0),yield this.loginEmailService.setLoginEmail(e)):this.formGroup.controls.rememberEmail.setValue(!1)})}focusInput(){var e;null===(e=document.getElementById(null==this.emailFormControl.value||""===this.emailFormControl.value?"email":"masterPassword"))||void 0===e||e.focus()}onWindowHidden(){this.deferFocus=!0}shouldShowBackButton(){return this.loginUiState===Ee.MASTER_PASSWORD_ENTRY&&this.clientType!==P.sK.Browser}backButtonClicked(){return fe(this,void 0,void 0,function*(){history.back()})}prefetchPasswordPreloginData(){const e=this.formGroup.value.email;e&&this.passwordPreloginService.getPreloginData$(e)}validateEmail(){return this.formGroup.controls.email.markAsTouched(),this.formGroup.controls.email.updateValueAndValidity({onlySelf:!0,emitEvent:!0}),this.formGroup.controls.email.valid}persistEmailIfValid(){return fe(this,void 0,void 0,function*(){var e;if(this.formGroup.controls.email.valid){const t=this.formGroup.value.email,i=null!==(e=this.formGroup.value.rememberEmail)&&void 0!==e&&e;if(!t)return;yield this.loginEmailService.setLoginEmail(t),yield this.loginEmailService.setRememberedEmailChoice(t,i)}else yield this.loginEmailService.clearLoginEmail(),yield this.loginEmailService.clearRememberedEmail()})}onEmailInput(e){return fe(this,void 0,void 0,function*(){const t=e.target;this.formGroup.controls.email.setValue(t.value),yield this.persistEmailIfValid()})}onRememberEmailInput(e){return fe(this,void 0,void 0,function*(){const t=e.target;this.formGroup.controls.rememberEmail.setValue(t.checked),yield this.persistEmailIfValid()})}}Se.ɵfac=function(e){return new(e||Se)(c.rXU(K.nX),c.rXU(Z.f),c.rXU(J.Y),c.rXU(q.y),c.rXU(W.abz),c.rXU($.T),c.rXU(y.ok),c.rXU(_.W),c.rXU(T.DS),c.rXU(ee),c.rXU(T.sg),c.rXU(G.U),c.rXU(W.SKi),c.rXU(O.Q),c.rXU(te.y),c.rXU(ie.N),c.rXU(K.Ix),c.rXU(H.f),c.rXU(V.K),c.rXU(ne.B),c.rXU(T.aJ),c.rXU(re.w),c.rXU(se._),c.rXU(x.v),c.rXU(D.Ld))},Se.ɵcmp=c.VBU({type:Se,selectors:[["ng-component"]],viewQuery:function(e,t){if(1&e&&c.GBs(ye,5),2&e){let e;c.mGM(e=c.lsd())&&(t.masterPasswordInputRef=e.first)}},decls:46,vars:45,consts:[["masterPasswordInputRef",""],[3,"bitSubmit","formGroup"],[3,"ngClass"],["id","email","type","email","formControlName","email","bitInput","","appAutofocus","","data-testid","login-email-input",1,"vw-email-continue",3,"input","keyup.enter","disabled"],["type","email","formControlName","email","bitInput","","appAutofocus","",1,"vw-email-sso",3,"input","keyup.enter"],["type","checkbox","formControlName","rememberEmail","data-testid","login-remember-email","bitCheckbox","",3,"input"],[1,"tw-grid","tw-gap-3"],["type","button","bitButton","","block","","buttonType","primary","data-testid","login-continue-button",1,"vw-continue-login",3,"click","bitTooltip","addTooltipToDescribedby"],["type","button","bitButton","","block","",1,"vw-sso-login",3,"click","buttonType"],["name","bwi-provider",1,"tw-mr-1"],[1,"tw-text-center","vw-or-text"],[4,"ngIf"],["type","button","bitButton","","block","","buttonType","secondary","data-testid","login-sso-button",1,"vw-other-login",3,"click","disabled"],[1,"!tw-mb-1"],["id","masterPassword","type","password","autocomplete","current-password","formControlName","masterPassword","bitInput","","data-testid","login-master-password-input"],["type","button","bitIconButton","","bitSuffix","","bitPasswordInputToggle",""],["bitLink","","routerLink","/hint",1,"tw-inline-block","tw-mb-4",3,"click"],["type","submit","bitButton","","bitFormButton","","block","","buttonType","primary","data-testid","login-submit-button"],["type","button","bitButton","","block","","buttonType","secondary","data-testid","login-with-passkey-button",1,"vw-passkey-login",3,"click","bitTooltip","addTooltipToDescribedby","disabled"],["name","bwi-passkey",1,"tw-mr-1"],[1,"tw-text-center"],["type","button","bitButton","","block","","buttonType","secondary","data-testid","login-with-device-button",3,"click"],["name","bwi-mobile"],["type","button","bitButton","","block","","buttonType","secondary","data-testid","login-back-button",3,"click"]],template:function(e,t){1&e&&(c.j41(0,"form",1)(1,"div",2)(2,"bit-form-field")(3,"bit-label"),c.EFF(4),c.nI1(5,"i18n"),c.k0s(),c.j41(6,"input",3),c.bIt("input",function(e){return t.onEmailInput(e)})("keyup.enter",function(){return t.continuePressed()}),c.k0s(),c.j41(7,"input",4),c.bIt("input",function(e){return t.onEmailInput(e)})("keyup.enter",function(){return t.handleSsoClick()}),c.k0s()(),c.j41(8,"bit-form-control")(9,"input",5),c.bIt("input",function(e){return t.onRememberEmailInput(e)}),c.k0s(),c.j41(10,"bit-label"),c.EFF(11),c.nI1(12,"i18n"),c.k0s()(),c.j41(13,"div",6)(14,"button",7),c.nI1(15,"i18n"),c.bIt("click",function(){return t.continuePressed()}),c.EFF(16),c.nI1(17,"i18n"),c.k0s(),c.j41(18,"button",8),c.bIt("click",function(){return t.handleSsoClick()}),c.nrm(19,"bit-icon",9),c.EFF(20),c.nI1(21,"i18n"),c.k0s(),c.j41(22,"div",10),c.EFF(23),c.nI1(24,"i18n"),c.k0s(),c.DNE(25,Ce,6,8,"ng-container",11),c.j41(26,"button",12),c.bIt("click",function(){return t.continuePressed()}),c.EFF(27),c.nI1(28,"i18n"),c.k0s()()(),c.j41(29,"div",2)(30,"bit-form-field",13)(31,"bit-label"),c.EFF(32),c.nI1(33,"i18n"),c.k0s(),c.nrm(34,"input",14,0)(36,"button",15),c.k0s(),c.j41(37,"a",16),c.bIt("click",function(){return t.goToHint()}),c.EFF(38),c.nI1(39,"i18n"),c.k0s(),c.j41(40,"div",6)(41,"button",17),c.EFF(42),c.nI1(43,"i18n"),c.k0s(),c.DNE(44,Ie,8,6,"ng-container",11)(45,we,4,3,"ng-container",11),c.k0s()()()),2&e&&(c.Y8G("bitSubmit",t.submit)("formGroup",t.formGroup),c.R7$(),c.Y8G("ngClass",c.eq3(41,be,t.loginUiState!==t.LoginUiState.EMAIL_ENTRY)),c.R7$(3),c.JRh(c.bMT(5,21,"emailAddress")),c.R7$(2),c.Y8G("disabled",t.ssoRequired),c.R7$(5),c.JRh(c.bMT(12,23,"rememberEmail")),c.R7$(3),c.Y8G("bitTooltip",t.ssoRequired?c.bMT(15,25,"yourOrganizationRequiresSingleSignOn"):"")("addTooltipToDescribedby",t.ssoRequired),c.R7$(2),c.SpI(" ",c.bMT(17,27,"continue")," "),c.R7$(2),c.Y8G("buttonType",t.ssoRequired?"primary":"secondary"),c.R7$(2),c.SpI(" ",c.bMT(21,29,"useSingleSignOn")," "),c.R7$(3),c.JRh(c.bMT(24,31,"or")),c.R7$(2),c.Y8G("ngIf",t.isLoginWithPasskeySupported()),c.R7$(),c.Y8G("disabled",t.ssoRequired),c.R7$(),c.SpI(" ",c.bMT(28,33,"other")," "),c.R7$(2),c.Y8G("ngClass",c.eq3(43,be,t.loginUiState!==t.LoginUiState.MASTER_PASSWORD_ENTRY)),c.R7$(3),c.JRh(c.bMT(33,35,"masterPass")),c.R7$(6),c.SpI(" ",c.bMT(39,37,"hint")," "),c.R7$(4),c.SpI(" ",c.bMT(43,39,"logIn")," "),c.R7$(2),c.Y8G("ngIf",t.isKnownDevice),c.R7$(),c.Y8G("ngIf",t.shouldShowBackButton()))},dependencies:[N.C,oe.$,ae.L,o.t,d.Q,j.q,le.P,m.MD,m.YU,m.bT,Y.L,ce.f,de.j,ue.J,he.h,Ae.e,pe.a,X.Q,ge.s,l.o,A.R,z.V,ve.g,n.p,me.B,y.X1,y.qT,y.me,y.Zm,y.BC,y.cb,y.j4,y.JD,b.iI,b.Wk,L.d,p.$],encapsulation:2});var Qe=i(62602);function ke(e,t){1&e&&(c.j41(0,"div",1)(1,"a",2),c.EFF(2),c.nI1(3,"i18n"),c.k0s()()),2&e&&(c.R7$(2),c.JRh(c.bMT(3,1,"createAccount")))}class Re{constructor(){this.serverSettingsService=(0,W.WQX)(Qe.t),this.isUserRegistrationDisabled$=this.serverSettingsService.isUserRegistrationDisabled$}}Re.ɵfac=function(e){return new(e||Re)},Re.ɵcmp=c.VBU({type:Re,selectors:[["ng-component"]],decls:2,vars:3,consts:[["class","tw-text-center vw-signup-link",4,"ngIf"],[1,"tw-text-center","vw-signup-link"],["bitLink","","routerLink","/signup","data-testid","login-create-account-link"]],template:function(e,t){1&e&&(c.DNE(0,ke,4,3,"div",0),c.nI1(1,"async")),2&e&&c.Y8G("ngIf",!c.bMT(1,1,t.isUserRegistrationDisabled$))},dependencies:[m.MD,m.bT,n.p,z.V,ve.g,b.iI,b.Wk,m.Jj,p.$],encapsulation:2});var Fe=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Te{constructor(e,t,i,n,r){this.cryptoFunctionService=e,this.environmentService=t,this.passwordGenerationService=i,this.platformUtilsService=n,this.ssoLoginService=r,this.clientType=this.platformUtilsService.getClientType()}isLoginWithPasskeySupported(){return this.clientType===P.sK.Web}redirectToSsoLogin(e){return Fe(this,void 0,void 0,function*(){const[t,i]=yield this.setSsoPreLoginState(e);yield this.redirectToSso(e,t,i)})}redirectToSsoLoginWithOrganizationSsoIdentifier(e,t){return Fe(this,void 0,void 0,function*(){const[i,n]=yield this.setSsoPreLoginState(e);yield this.redirectToSso(e,i,n,t)})}redirectToSso(e,t,i,n){return Fe(this,void 0,void 0,function*(){})}showBackButton(e){}setSsoPreLoginState(e){return Fe(this,void 0,void 0,function*(){const t={type:"password",length:64,uppercase:!0,lowercase:!0,numbers:!0,special:!1};let i=yield this.passwordGenerationService.generatePassword(t);this.clientType===P.sK.Browser&&(i+=":clientId=browser");const n=yield this.passwordGenerationService.generatePassword(t),r=yield this.cryptoFunctionService.hash(n,"sha256"),s=U.A.fromArrayToUrlB64(r);return yield this.ssoLoginService.setSsoState(i),yield this.ssoLoginService.setCodeVerifier(n),yield this.ssoLoginService.setSsoEmail(e),[i,s]})}}var De=i(62423),Pe=i(69783),Me=i(191),xe=i(95457),Ve=i(92567),Ge=i(98569),Ue=i(4958),Oe=i(83604),Ne=i(82468),je=i(48541),Ye=i(33413),Xe=i(66523),ze=i(43890),Le=i(75583),We=i(8916),Ke=i(35500),Ze=i(12012),He=i(39935);class Je{}var qe,$e=i(11224),_e=i(45891),et=i(75633),tt=i(35770),it=i(3892),nt=i(93199),rt=i(58806),st=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})},ot=function(e,t,i){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,r;if(i){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],i&&(r=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");r&&(n=function(){try{r.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:i})}else i&&e.stack.push({async:!0});return t},at=function(e){return function(t){function i(i){t.error=t.hasError?new e(i,t.error,"An error was suppressed during disposal."):i,t.hasError=!0}var n,r=0;return function e(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(e);if(n.dispose){var s=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(s).then(e,function(t){return i(t),e()})}else r|=1}catch(o){i(o)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}}("function"==typeof SuppressedError?SuppressedError:function(e,t,i){var n=new Error(i);return n.name="SuppressedError",n.error=e,n.suppressed=t,n});function lt(e,t){1&e&&(c.qex(0),c.j41(1,"div",2),c.nrm(2,"bit-icon",3),c.nI1(3,"i18n"),c.k0s(),c.bVm()),2&e&&(c.R7$(2),c.Y8G("ariaLabel",c.bMT(3,1,"loading")))}function ct(e,t){if(1&e&&(c.j41(0,"form",4)(1,"bit-form-control"),c.nrm(2,"input",5),c.j41(3,"bit-label"),c.EFF(4),c.nI1(5,"i18n"),c.k0s(),c.j41(6,"bit-hint",6),c.EFF(7),c.nI1(8,"i18n"),c.k0s()()()),2&e){const e=c.XpG();c.Y8G("formGroup",e.formGroup),c.R7$(4),c.JRh(c.bMT(5,3,"rememberThisDevice")),c.R7$(3),c.JRh(c.bMT(8,5,"uncheckIfPublicDevice"))}}function dt(e,t){if(1&e&&(c.qex(0),c.j41(1,"button",7),c.EFF(2),c.nI1(3,"i18n"),c.k0s(),c.bVm()),2&e){const e=c.XpG();c.R7$(),c.Y8G("bitAction",e.createUser),c.R7$(),c.SpI(" ",c.bMT(3,2,"continue")," ")}}function ut(e,t){1&e&&(c.j41(0,"div",2),c.EFF(1),c.nI1(2,"i18n"),c.k0s()),2&e&&(c.R7$(),c.SpI(" ",c.bMT(2,1,"or")," "))}function ht(e,t){if(1&e){const e=c.RV6();c.qex(0),c.j41(1,"button",11),c.bIt("click",function(){W.eBV(e);const t=c.XpG(2);return W.Njj(t.approveFromOtherDevice())}),c.EFF(2),c.nI1(3,"i18n"),c.k0s(),c.DNE(4,ut,3,3,"div",12),c.bVm()}if(2&e){const e=c.XpG(2);c.R7$(2),c.SpI(" ",c.bMT(3,2,"approveFromYourOtherDevice")," "),c.R7$(2),c.Y8G("ngIf",e.canApproveWithMasterPassword||e.canRequestAdminApproval)}}function At(e,t){if(1&e){const e=c.RV6();c.j41(0,"button",13),c.bIt("click",function(){W.eBV(e);const t=c.XpG(2);return W.Njj(t.approveWithMasterPassword())}),c.EFF(1),c.nI1(2,"i18n"),c.k0s()}2&e&&(c.R7$(),c.SpI(" ",c.bMT(2,1,"useMasterPassword")," "))}function pt(e,t){if(1&e){const e=c.RV6();c.j41(0,"button",13),c.bIt("click",function(){W.eBV(e);const t=c.XpG(2);return W.Njj(t.requestAdminApproval())}),c.EFF(1),c.nI1(2,"i18n"),c.k0s()}2&e&&(c.R7$(),c.SpI(" ",c.bMT(2,1,"requestAdminApproval")," "))}function gt(e,t){if(1&e){const e=c.RV6();c.qex(0),c.j41(1,"div",8),c.DNE(2,ht,5,4,"ng-container",0)(3,At,3,3,"button",9)(4,pt,3,3,"button",9),c.j41(5,"button",10),c.bIt("click",function(){W.eBV(e);const t=c.XpG();return W.Njj(t.logOut())}),c.EFF(6),c.nI1(7,"i18n"),c.k0s()(),c.bVm()}if(2&e){const e=c.XpG();c.R7$(2),c.Y8G("ngIf",e.canApproveFromOtherDevice),c.R7$(),c.Y8G("ngIf",e.canApproveWithMasterPassword),c.R7$(),c.Y8G("ngIf",e.canRequestAdminApproval),c.R7$(2),c.SpI(" ",c.bMT(7,4,"logOut")," ")}}!function(e){e[e.NewUser=0]="NewUser",e[e.ExistingUserUntrustedDevice=1]="ExistingUserUntrustedDevice"}(qe||(qe={}));class vt{get rememberDeviceControl(){return this.formGroup.controls.rememberDevice}constructor(e,t,i,n,r,s,o,a,l,c,d,u,h,A,p,g,v,m,f,y,b,C,w,B,E,S){this.accountService=e,this.anonLayoutWrapperDataService=t,this.apiService=i,this.destroyRef=n,this.deviceTrustService=r,this.dialogService=s,this.formBuilder=o,this.i18nService=a,this.keyService=l,this.loginDecryptionOptionsService=c,this.loginEmailService=d,this.messagingService=u,this.organizationApiService=h,this.passwordResetEnrollmentService=A,this.platformUtilsService=p,this.router=g,this.ssoLoginService=v,this.toastService=m,this.userDecryptionOptionsService=f,this.validationService=y,this.logoutService=b,this.registerSdkService=C,this.securityStateService=w,this.appIdService=B,this.configService=E,this.accountCryptographicStateService=S,this.loading=!1,this.State=qe,this.formGroup=this.formBuilder.group({rememberDevice:[!0]}),this.canApproveFromOtherDevice=!1,this.canRequestAdminApproval=!1,this.canApproveWithMasterPassword=!1,this.createUser=()=>st(this,void 0,void 0,function*(){if(this.state===qe.NewUser)try{if(yield this.configService.getFeatureFlag(Ne.TO.PM27279_V2RegistrationTdeJit)){const e=yield this.appIdService.getAppId(),t=this.activeAccountId,i=this.newUserOrgId,n=yield this.organizationApiService.getKeys(i),r=yield(0,I._)(this.registerSdkService.registerClient$(t).pipe((0,De.H)(r=>st(this,void 0,void 0,function*(){const s={stack:[],error:void 0,hasError:!1};try{if(!r)throw new Error("SDK not available");const o=ot(s,r.take(),!1);return yield o.value.auth().registration().post_keys_for_tde_registration({org_id:(0,Xe.WD)(i),org_public_key:n.publicKey,user_id:(0,Xe.WD)(t),device_identifier:e,trust_device:this.formGroup.value.rememberDevice})}catch(o){s.error=o,s.hasError=!0}finally{at(s)}}))));if("V1"in r.account_cryptographic_state)throw new Error("Unexpected V1 account cryptographic state");yield this.accountCryptographicStateService.setAccountCryptographicState(r.account_cryptographic_state,t),yield this.deviceTrustService.setDeviceKey(t,ze.e.fromString(r.device_key)),yield this.keyService.setUserKey(ze.e.fromString(r.user_key),t)}else{const{publicKey:e,privateKey:t}=yield this.keyService.initAccount(this.activeAccountId),i=new je.G(e,t.encryptedString);yield this.apiService.postAccountKeys(i),yield this.passwordResetEnrollmentService.enroll(this.newUserOrgId),this.formGroup.value.rememberDevice&&(yield this.deviceTrustService.trustDevice(this.activeAccountId))}this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("accountSuccessfullyCreated")}),yield this.loginDecryptionOptionsService.handleCreateUserSuccess(),this.clientType===P.sK.Desktop&&this.messagingService.send("redrawMenu"),yield this.handleCreateUserSuccessNavigation()}catch(e){this.validationService.showError(e)}}),this.clientType=this.platformUtilsService.getClientType()}ngOnInit(){return st(this,void 0,void 0,function*(){var e,t;if(this.loading=!0,this.activeAccountId=null===(e=yield(0,I._)(this.accountService.activeAccount$))||void 0===e?void 0:e.id,this.email=yield(0,I._)(this.accountService.activeAccount$.pipe((0,Pe.T)(e=>null==e?void 0:e.email))),this.email){this.observeAndPersistRememberDeviceValueChanges(),yield this.setRememberDeviceDefaultValueFromState();try{const e=yield(0,I._)(this.userDecryptionOptionsService.userDecryptionOptionsById$(this.activeAccountId));(null===(t=null==e?void 0:e.trustedDeviceOption)||void 0===t?void 0:t.hasAdminApproval)||(null==e?void 0:e.hasMasterPassword)?this.loadExistingUserUntrustedDeviceData(e):yield this.loadNewUserData()}catch(i){this.validationService.showError(i)}finally{this.loading=!1}}else yield this.handleMissingEmail()})}handleMissingEmail(){return st(this,void 0,void 0,function*(){this.toastService.showToast({variant:"error",title:null,message:this.i18nService.t("activeUserEmailNotFoundLoggingYouOut")}),yield this.logoutService.logout(this.activeAccountId),yield this.router.navigate(["/"])})}observeAndPersistRememberDeviceValueChanges(){this.rememberDeviceControl.valueChanges.pipe((0,f.pQ)(this.destroyRef),(0,Me.n)(e=>(0,xe.v)(()=>this.deviceTrustService.setShouldTrustDevice(this.activeAccountId,e)))).subscribe()}setRememberDeviceDefaultValueFromState(){return st(this,void 0,void 0,function*(){const e=yield this.deviceTrustService.getShouldTrustDevice(this.activeAccountId),t=null==e||e;this.rememberDeviceControl.setValue(t)})}loadNewUserData(){return st(this,void 0,void 0,function*(){this.state=qe.NewUser,this.anonLayoutWrapperDataService.setAnonLayoutWrapperData({pageTitle:{key:"loggedInExclamation"},pageSubtitle:{key:"rememberThisDeviceToMakeFutureLoginsSeamless"}});const e=(0,xe.v)(()=>this.ssoLoginService.getActiveUserOrganizationSsoIdentifier(this.activeAccountId)).pipe((0,Me.n)(e=>null==e?(0,Ve.$)(()=>new Error(this.i18nService.t("ssoIdentifierRequired"))):(0,Ge.H)(this.organizationApiService.getAutoEnrollStatus(e))),(0,Ue.W)(e=>(this.validationService.showError(e),(0,Oe.of)(void 0)))),t=yield(0,I._)(e);this.newUserOrgId=t.id})}loadExistingUserUntrustedDeviceData(e){var t,i;this.state=qe.ExistingUserUntrustedDevice,this.anonLayoutWrapperDataService.setAnonLayoutWrapperData({pageTitle:{key:"deviceApprovalRequiredV2"},pageSubtitle:{key:"selectAnApprovalOptionBelow"}}),this.canApproveFromOtherDevice=(null===(t=null==e?void 0:e.trustedDeviceOption)||void 0===t?void 0:t.hasLoginApprovingDevice)||!1,this.canRequestAdminApproval=(null===(i=null==e?void 0:e.trustedDeviceOption)||void 0===i?void 0:i.hasAdminApproval)||!1,this.canApproveWithMasterPassword=(null==e?void 0:e.hasMasterPassword)||!1}handleCreateUserSuccessNavigation(){return st(this,void 0,void 0,function*(){this.clientType===P.sK.Browser?yield this.router.navigate(["/tabs/vault"]):yield this.router.navigate(["/vault"])})}approveFromOtherDevice(){return st(this,void 0,void 0,function*(){yield this.router.navigate(["/login-with-device"])})}approveWithMasterPassword(){return st(this,void 0,void 0,function*(){yield this.router.navigate(["/lock"],{queryParams:{from:"login-initiated"}})})}requestAdminApproval(){return st(this,void 0,void 0,function*(){yield this.router.navigate(["/admin-approval-requested"])})}logOut(){return st(this,void 0,void 0,function*(){var e;const t=yield this.dialogService.openSimpleDialog({title:{key:"logOut"},content:{key:"logOutConfirmation"},acceptButtonText:{key:"logOut"},type:"warning"}),i=null===(e=yield(0,I._)(this.accountService.activeAccount$))||void 0===e?void 0:e.id;t&&(yield this.logoutService.logout(i),yield this.router.navigate(["/"]))})}}vt.ɵfac=function(e){return new(e||vt)(c.rXU(Ke.D),c.rXU(Z.f),c.rXU(Ze.G),c.rXU(W.abz),c.rXU(He.M),c.rXU(r.o),c.rXU(y.ok),c.rXU(_.W),c.rXU(We.Lu),c.rXU(Je),c.rXU(T.DS),c.rXU(G.U),c.rXU($e.X),c.rXU(_e._),c.rXU(te.y),c.rXU(K.Ix),c.rXU(se._),c.rXU(H.f),c.rXU(T.Ym),c.rXU(ne.B),c.rXU(T.k4),c.rXU(Ye.vW),c.rXU(et.p),c.rXU(J.Y),c.rXU(re.w),c.rXU(tt.h))},vt.ɵcmp=c.VBU({type:vt,selectors:[["ng-component"]],decls:4,vars:4,consts:[[4,"ngIf"],[3,"formGroup",4,"ngIf"],[1,"tw-text-center"],["name","bwi-spinner",1,"bwi-spin","bwi-2x","tw-text-muted",3,"ariaLabel"],[3,"formGroup"],["type","checkbox","bitCheckbox","","formControlName","rememberDevice"],["bitTypography","body2"],["type","button","bitButton","","block","","buttonType","primary",3,"bitAction"],[1,"tw-grid","tw-gap-3"],["type","button","bitButton","","block","","buttonType","secondary",3,"click",4,"ngIf"],["type","button","bitButton","","bitFormButton","","block","",3,"click"],["type","button","bitButton","","block","","buttonType","primary",3,"click"],["class","tw-text-center",4,"ngIf"],["type","button","bitButton","","block","","buttonType","secondary",3,"click"]],template:function(e,t){1&e&&c.DNE(0,lt,4,3,"ng-container",0)(1,ct,9,7,"form",1)(2,dt,4,4,"ng-container",0)(3,gt,8,6,"ng-container",0),2&e&&(c.Y8G("ngIf",t.loading),c.R7$(),c.Y8G("ngIf",!t.loading),c.R7$(),c.Y8G("ngIf",t.state===t.State.NewUser),c.R7$(),c.Y8G("ngIf",t.state===t.State.ExistingUserUntrustedDevice))},dependencies:[N.C,it.p,oe.$,o.t,d.Q,j.q,le.P,m.MD,m.bT,l.o,A.R,Y.L,ce.f,de.j,nt.I,n.p,y.X1,y.qT,y.Zm,y.BC,y.cb,y.j4,y.JD,Le.E,rt.r,p.$],encapsulation:2});var mt,ft=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class yt{constructor(e){this.messagingService=e}handleCreateUserSuccess(){return null}logOut(){return ft(this,void 0,void 0,function*(){this.messagingService.send("logout")})}}!function(e){e[e.AuthenticateAndUnlock=0]="AuthenticateAndUnlock",e[e.Unlock=1]="Unlock",e[e.AdminApproval=2]="AdminApproval"}(mt||(mt={}));var bt=i(84110),Ct=i(99352);class It{constructor(e,t,i,n,r){this.email=e,this.deviceIdentifier=t,this.publicKey=i,this.type=n,this.accessCode=r}}var wt=i(71373),Bt=i(47836);class Et{constructor(){this.id=void 0,this.accessCode=void 0,this.privateKey=void 0}static fromJSON(e){return null==e?null:Object.assign(new Et,e)}}class St{constructor(){this.viewCacheService=(0,W.WQX)(Bt.Z),this.defaultLoginViaAuthRequestCache=this.viewCacheService.signal({key:"login-via-auth-request-form-cache",initialValue:null,deserializer:Et.fromJSON})}cacheLoginView(e,t,i){this.defaultLoginViaAuthRequestCache.set({id:e,privateKey:U.A.fromArrayToB64(t),accessCode:i})}clearCacheLoginView(){this.defaultLoginViaAuthRequestCache.set(null)}getCachedLoginViaAuthRequestView(){return this.defaultLoginViaAuthRequestCache()}}St.ɵfac=function(e){return new(e||St)},St.ɵprov=W.jDH({token:St,factory:St.ɵfac});var Qt,kt=i(29744),Rt=i(77312),Ft=i(68455),Tt=i(45872),Dt=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function Pt(e,t){1&e&&(c.qex(0),c.j41(1,"div",1),c.nrm(2,"bit-icon",2),c.nI1(3,"i18n"),c.k0s(),c.bVm()),2&e&&(c.R7$(2),c.Y8G("ariaLabel",c.bMT(3,1,"loading")))}function Mt(e,t){if(1&e&&(c.j41(0,"p"),c.EFF(1),c.nI1(2,"i18n"),c.j41(3,"a",8),c.EFF(4),c.nI1(5,"i18n"),c.k0s(),c.EFF(6),c.nI1(7,"i18n"),c.k0s()),2&e){const e=c.XpG(3);c.R7$(),c.SpI(" ",c.bMT(2,4,"notificationSentDevicePart1")," "),c.R7$(2),c.Y8G("href",e.deviceManagementUrl,c.B4B),c.R7$(),c.JRh(c.bMT(5,6,"notificationSentDeviceAnchor")),c.R7$(2),c.SpI(". ",c.bMT(7,8,"notificationSentDevicePart2")," ")}}function xt(e,t){1&e&&(c.j41(0,"p"),c.EFF(1),c.nI1(2,"i18n"),c.k0s()),2&e&&(c.R7$(),c.SpI(" ",c.bMT(2,1,"notificationSentDeviceComplete")," "))}function Vt(e,t){if(1&e){const e=c.RV6();c.j41(0,"button",9),c.bIt("click",function(){W.eBV(e);const t=c.XpG(3);return W.Njj(t.handleNewStandardAuthRequestLogin())}),c.EFF(1),c.nI1(2,"i18n"),c.k0s()}2&e&&(c.R7$(),c.SpI(" ",c.bMT(2,1,"resendNotification")," "))}function Gt(e,t){if(1&e&&(c.j41(0,"div",10)(1,"span"),c.EFF(2),c.nI1(3,"i18n"),c.k0s(),c.EFF(4," "),c.j41(5,"a",11),c.EFF(6),c.nI1(7,"i18n"),c.k0s()()),2&e){const e=c.XpG(3);c.R7$(2),c.JRh(c.bMT(3,3,"needAnotherOptionV1")),c.R7$(3),c.Y8G("routerLink",e.backToRoute),c.R7$(),c.JRh(c.bMT(7,5,"viewAllLogInOptions"))}}function Ut(e,t){if(1&e&&(c.qex(0),c.DNE(1,Mt,8,10,"p",0)(2,xt,3,3,"p",0),c.j41(3,"div",4),c.EFF(4),c.nI1(5,"i18n"),c.k0s(),c.j41(6,"code",5),c.EFF(7),c.k0s(),c.DNE(8,Vt,3,3,"button",6)(9,Gt,8,7,"div",7),c.bVm()),2&e){const e=c.XpG(2);c.R7$(),c.Y8G("ngIf",e.clientType!==e.ClientType.Web),c.R7$(),c.Y8G("ngIf",e.clientType===e.ClientType.Web),c.R7$(2),c.JRh(c.bMT(5,6,"fingerprintPhraseHeader")),c.R7$(3),c.JRh(e.fingerprintPhrase),c.R7$(),c.Y8G("ngIf",e.showResendNotification),c.R7$(),c.Y8G("ngIf",e.clientType!==e.ClientType.Browser)}}function Ot(e,t){if(1&e&&(c.qex(0),c.j41(1,"p"),c.EFF(2),c.nI1(3,"i18n"),c.k0s(),c.j41(4,"div",4),c.EFF(5),c.nI1(6,"i18n"),c.k0s(),c.j41(7,"code",5),c.EFF(8),c.k0s(),c.j41(9,"div",10)(10,"span"),c.EFF(11),c.nI1(12,"i18n"),c.k0s(),c.EFF(13," "),c.j41(14,"a",11),c.EFF(15),c.nI1(16,"i18n"),c.k0s()(),c.bVm()),2&e){const e=c.XpG(2);c.R7$(2),c.JRh(c.bMT(3,6,"youWillBeNotifiedOnceTheRequestIsApproved")),c.R7$(3),c.JRh(c.bMT(6,8,"fingerprintPhraseHeader")),c.R7$(3),c.JRh(e.fingerprintPhrase),c.R7$(3),c.JRh(c.bMT(12,10,"troubleLoggingIn")),c.R7$(3),c.Y8G("routerLink",e.backToRoute),c.R7$(),c.JRh(c.bMT(16,12,"viewAllLogInOptions"))}}function Nt(e,t){if(1&e&&(c.qex(0),c.j41(1,"div",3),c.DNE(2,Ut,10,8,"ng-container",0)(3,Ot,17,14,"ng-container",0),c.k0s(),c.bVm()),2&e){const e=c.XpG();c.R7$(2),c.Y8G("ngIf",e.flow===e.Flow.StandardAuthRequest),c.R7$(),c.Y8G("ngIf",e.flow===e.Flow.AdminAuthRequest)}}!function(e){e[e.StandardAuthRequest=0]="StandardAuthRequest",e[e.AdminAuthRequest=1]="AdminAuthRequest"}(Qt||(Qt={}));const jt={paths:"exact",queryParams:"ignored",fragment:"ignored",matrixParams:"ignored"};class Yt{constructor(e,t,i,n,r,s,o,a,l,c,d,u,h,A,p,g,v,m,y,b){this.accountService=e,this.anonymousHubService=t,this.appIdService=i,this.authRequestApiService=n,this.authRequestService=r,this.authService=s,this.cryptoFunctionService=o,this.deviceTrustService=a,this.environmentService=l,this.i18nService=c,this.logService=d,this.loginEmailService=u,this.loginStrategyService=h,this.passwordGenerationService=A,this.platformUtilsService=p,this.router=g,this.toastService=v,this.validationService=m,this.loginSuccessHandlerService=y,this.loginViaAuthRequestCacheService=b,this.authRequestKeyPair=void 0,this.accessCode=void 0,this.authStatus=void 0,this.showResendNotificationTimeoutSeconds=12,this.loading=!0,this.backToRoute="/login",this.ClientType=P.sK,this.email=void 0,this.fingerprintPhrase=void 0,this.showResendNotification=!1,this.Flow=Qt,this.flow=Qt.StandardAuthRequest,this.webVaultUrl=void 0,this.clientType=this.platformUtilsService.getClientType(),this.authRequestService.authRequestPushNotification$.pipe((0,f.pQ)()).subscribe(e=>{this.loading=!0,this.handleExistingAuthRequestLogin(e).catch(e=>{this.toastService.showToast({variant:"error",title:this.i18nService.t("error"),message:e.message}),this.loading=!1,this.logService.error("Failed to use approved auth request: "+e.message)})}),this.environmentService.environment$.pipe((0,f.pQ)()).subscribe(e=>{this.webVaultUrl=e.getWebVaultUrl(),this.deviceManagementUrl=`${this.webVaultUrl}/#/settings/security/device-management`})}ngOnInit(){return Dt(this,void 0,void 0,function*(){this.authStatus=yield(0,I._)(this.authService.activeAccountStatus$);this.authStatus===bt.J.Locked&&(this.backToRoute="/login-initiated"),this.router.isActive("admin-approval-requested",jt)?yield this.initAdminAuthRequestFlow():yield this.initStandardAuthRequestFlow(),this.loading=!1})}initAdminAuthRequestFlow(){return Dt(this,void 0,void 0,function*(){var e;this.flow=Qt.AdminAuthRequest;const t=null===(e=yield(0,I._)(this.accountService.activeAccount$))||void 0===e?void 0:e.id;if(!t)return void this.logService.error("Not able to get a user id from the account service active account observable.");const i=yield this.reloadCachedAdminAuthRequest(t);i?yield this.handleExistingAdminAuthRequestLogin(i,t):yield this.handleNewAdminAuthRequestLogin()})}initStandardAuthRequestFlow(){return Dt(this,void 0,void 0,function*(){var e,t;this.flow=Qt.StandardAuthRequest;const i=this.accountService.activeAccount$.pipe((0,Pe.T)(e=>null==e?void 0:e.email)),n=this.loginEmailService.loginEmail$;let r=null!==(e=yield(0,I._)(n))&&void 0!==e?e:void 0;if(r||(r=null!==(t=yield(0,I._)(i))&&void 0!==t?t:void 0),this.email=r,!this.email)return void(yield this.handleMissingEmail());const s=this.loginViaAuthRequestCacheService.getCachedLoginViaAuthRequestView();if(s){if(this.logService.info("Found cached auth request."),!s.id)return void this.logService.error("No id on the cached auth request when in the standard auth request flow.");yield this.reloadCachedStandardAuthRequest(s),yield this.handleExistingAuthRequestLogin(s.id)}else yield this.handleNewStandardAuthRequestLogin()})}handleMissingEmail(){return Dt(this,void 0,void 0,function*(){this.toastService.showToast({variant:"error",message:this.i18nService.t("userEmailMissing")}),yield this.router.navigate([this.backToRoute])})}ngOnDestroy(){return Dt(this,void 0,void 0,function*(){yield this.anonymousHubService.stopHubConnection(),this.loginViaAuthRequestCacheService.clearCacheLoginView()})}handleNewAdminAuthRequestLogin(){return Dt(this,void 0,void 0,function*(){var e;try{if(!this.email)return void this.logService.error("No email when starting admin auth request login.");const t=yield this.buildAuthRequest(this.email,mt.AdminApproval);if(!t)return void this.logService.error("Auth request failed to build.");if(!this.authRequestKeyPair)return void this.logService.error("Key pairs failed to initialize from buildAuthRequest.");const i=yield this.authRequestApiService.postAdminAuthRequest(t),n=new Ct.x({id:i.id,privateKey:this.authRequestKeyPair.privateKey}),r=null===(e=yield(0,I._)(this.accountService.activeAccount$))||void 0===e?void 0:e.id;if(!r)return void this.logService.error("Not able to get a user id from the account service active account observable.");yield this.authRequestService.setAdminAuthRequest(n,r),i.id&&(yield this.anonymousHubService.createHubConnection(i.id))}catch(t){this.logService.error(t)}})}reloadCachedAdminAuthRequest(e){return Dt(this,void 0,void 0,function*(){return this.email=yield(0,I._)(this.accountService.activeAccount$.pipe((0,Pe.T)(e=>null==e?void 0:e.email))),this.email?yield this.authRequestService.getAdminAuthRequest(e):(yield this.handleMissingEmail(),null)})}reloadCachedStandardAuthRequest(e){return Dt(this,void 0,void 0,function*(){if(e){if(!this.email)return void this.logService.error("Email not defined when trying to reload cached standard auth request.");if(!e.privateKey)return void this.logService.error("No private key on the cached auth request when trying to reload cached standard auth request.");if(!e.accessCode)return void this.logService.error("No access code on the cached auth request when trying to reload cached standard auth request.");const t=U.A.fromB64ToArray(e.privateKey),i=yield this.cryptoFunctionService.rsaExtractPublicKey(t);this.fingerprintPhrase=yield this.authRequestService.getFingerprintPhrase(this.email,i),this.authRequestKeyPair={privateKey:t,publicKey:void 0},this.accessCode=e.accessCode}})}handleNewStandardAuthRequestLogin(){return Dt(this,void 0,void 0,function*(){this.showResendNotification=!1;try{if(!this.email)return void this.logService.error("Email not defined when starting standard auth request login.");const e=yield this.buildAuthRequest(this.email,mt.AuthenticateAndUnlock);if(!e)return void this.logService.error("AuthRequest failed to initialize from buildAuthRequest.");if(!this.fingerprintPhrase)return void this.logService.error("FingerprintPhrase failed to initialize from buildAuthRequest.");if(!this.authRequestKeyPair)return void this.logService.error("KeyPair failed to initialize from buildAuthRequest.");const t=yield this.authRequestApiService.postAuthRequest(e);if(!this.authRequestKeyPair.privateKey)return void this.logService.error("No private key when trying to cache the login view.");if(!this.accessCode)return void this.logService.error("No access code when trying to cache the login view.");this.loginViaAuthRequestCacheService.cacheLoginView(t.id,this.authRequestKeyPair.privateKey,this.accessCode),t.id&&(yield this.anonymousHubService.createHubConnection(t.id))}catch(e){this.logService.error(e)}setTimeout(()=>{this.showResendNotification=!0},1e3*this.showResendNotificationTimeoutSeconds)})}buildAuthRequest(e,t){return Dt(this,void 0,void 0,function*(){const i=yield this.cryptoFunctionService.rsaGenerateKeyPair(2048);this.authRequestKeyPair={publicKey:i[0],privateKey:i[1]};const n=yield this.appIdService.getAppId();if(!this.authRequestKeyPair.publicKey){const e="No public key when building an auth request.";throw this.logService.error(e),new Error(e)}this.fingerprintPhrase=yield this.authRequestService.getFingerprintPhrase(e,this.authRequestKeyPair.publicKey),this.accessCode=yield this.passwordGenerationService.generatePassword({type:"password",length:25});const r=U.A.fromBufferToB64(this.authRequestKeyPair.publicKey);return new It(e,n,r,t,this.accessCode)})}handleExistingAdminAuthRequestLogin(e,t){return Dt(this,void 0,void 0,function*(){let i;try{i=yield this.authRequestApiService.getAuthRequest(e.id)}catch(r){return r instanceof M._&&r.statusCode===P.kG.NotFound?yield this.clearExistingAdminAuthRequestAndStartNewRequest(t):void this.logService.error(r)}if(!i)return yield this.clearExistingAdminAuthRequestAndStartNewRequest(t);if(i.isAnswered&&!i.requestApproved)return yield this.clearExistingAdminAuthRequestAndStartNewRequest(t);if(i.requestApproved)return yield this.decryptViaApprovedAuthRequest(i,e.privateKey,t);if(!this.email)return void this.logService.error("Email not defined when handling an existing an admin auth request.");const n=yield this.cryptoFunctionService.rsaExtractPublicKey(e.privateKey);this.fingerprintPhrase=yield this.authRequestService.getFingerprintPhrase(this.email,n),this.authRequestKeyPair={privateKey:e.privateKey,publicKey:void 0},yield this.anonymousHubService.createHubConnection(e.id)})}retrieveAuthRequest(e){return Dt(this,void 0,void 0,function*(){let t;try{if(this.authStatus===bt.J.Locked)t=yield this.authRequestApiService.getAuthRequest(e);else{if(!this.accessCode){const e="No access code available when handling approved auth request.";throw this.logService.error(e),new Error(e)}t=yield this.authRequestApiService.getAuthResponse(e,this.accessCode)}}catch(i){i instanceof M._&&i.statusCode===P.kG.NotFound?t=void 0:this.logService.error(i)}if(void 0===t)throw new Error("Auth request response not generated");return t})}handleExistingAuthRequestLogin(e){return Dt(this,void 0,void 0,function*(){this.showResendNotification=!1;try{const t=yield this.retrieveAuthRequest(e);if(!t)return yield this.clearExistingStandardAuthRequestAndStartNewRequest();if(t.isAnswered&&!t.requestApproved)return yield this.clearExistingStandardAuthRequestAndStartNewRequest();if(t.requestApproved){return this.authStatus===bt.J.Locked?yield this.handleAuthenticatedFlows(t):yield this.handleUnauthenticatedFlows(t,e)}yield this.anonymousHubService.createHubConnection(e)}catch(t){t instanceof M._&&(yield this.router.navigate([this.backToRoute]),this.validationService.showError(t)),this.logService.error(t)}setTimeout(()=>{this.showResendNotification=!0},1e3*this.showResendNotificationTimeoutSeconds)})}handleAuthenticatedFlows(e){return Dt(this,void 0,void 0,function*(){var t;const i=null===(t=yield(0,I._)(this.accountService.activeAccount$))||void 0===t?void 0:t.id;i?this.authRequestKeyPair&&this.authRequestKeyPair.privateKey?yield this.decryptViaApprovedAuthRequest(e,this.authRequestKeyPair.privateKey,i):this.logService.error("No private key set when handling the authenticated flows."):this.logService.error("Not able to get a user id from the account service active account observable.")})}handleUnauthenticatedFlows(e,t){return Dt(this,void 0,void 0,function*(){const i=yield this.buildAuthRequestLoginCredentials(t,e);if(!i)return void this.logService.error("Didn't set up auth request login credentials properly.");this.loginViaAuthRequestCacheService.clearCacheLoginView();const n=yield this.loginStrategyService.logIn(i);yield this.handlePostLoginNavigation(n)})}decryptViaApprovedAuthRequest(e,t,i){return Dt(this,void 0,void 0,function*(){yield this.authRequestService.setUserKeyAfterDecryptingSharedUserKey(e,t,i),yield this.authRequestService.clearAdminAuthRequest(i),this.loginViaAuthRequestCacheService.clearCacheLoginView(),this.toastService.showToast({variant:"success",message:this.i18nService.t("loginApproved")});const n=yield(0,I._)(this.accountService.activeAccount$);n?(yield this.deviceTrustService.trustDeviceIfRequired(n.id),yield this.handleSuccessfulLoginNavigation(i)):this.logService.error("No active account defined from the account service.")})}buildAuthRequestLoginCredentials(e,t){return Dt(this,void 0,void 0,function*(){if(!this.authRequestKeyPair||!this.authRequestKeyPair.privateKey)return void this.logService.error("No private key set when building auth request login credentials.");if(!this.email)return void this.logService.error("Email not defined.");if(!this.accessCode)return void this.logService.error("Access code not defined when building auth request login credentials.");const i=yield this.authRequestService.decryptPubKeyEncryptedUserKey(t.key,this.authRequestKeyPair.privateKey);return new T.xM(this.email,this.accessCode,e,i)})}clearExistingAdminAuthRequestAndStartNewRequest(e){return Dt(this,void 0,void 0,function*(){yield this.authRequestService.clearAdminAuthRequest(e),yield this.handleNewAdminAuthRequestLogin()})}clearExistingStandardAuthRequestAndStartNewRequest(){return Dt(this,void 0,void 0,function*(){this.loginViaAuthRequestCacheService.clearCacheLoginView(),yield this.handleNewStandardAuthRequestLogin()})}handlePostLoginNavigation(e){return Dt(this,void 0,void 0,function*(){e.requiresTwoFactor?yield this.router.navigate(["2fa"]):yield this.handleSuccessfulLoginNavigation(e.userId)})}handleSuccessfulLoginNavigation(e){return Dt(this,void 0,void 0,function*(){yield this.loginSuccessHandlerService.run(e,null),yield this.router.navigate(["vault"])})}}Yt.ɵfac=function(e){return new(e||Yt)(c.rXU(Ke.D),c.rXU(kt.k),c.rXU(J.Y),c.rXU(Rt.d),c.rXU(T.XF),c.rXU(Ft.u),c.rXU(Tt.R),c.rXU(He.M),c.rXU(x.v),c.rXU(_.W),c.rXU(V.K),c.rXU(T.DS),c.rXU(T.sg),c.rXU(wt.JJ),c.rXU(te.y),c.rXU(K.Ix),c.rXU(H.f),c.rXU(ne.B),c.rXU(T.aJ),c.rXU(St))},Yt.ɵcmp=c.VBU({type:Yt,selectors:[["ng-component"]],features:[c.Jv_([{provide:St}])],decls:2,vars:2,consts:[[4,"ngIf"],[1,"tw-flex","tw-items-center","tw-justify-center"],["name","bwi-spinner",1,"bwi-spin","bwi-3x",3,"ariaLabel"],[1,"tw-text-center"],[1,"tw-font-medium"],[1,"tw-text-code"],["type","button","bitButton","","block","","buttonType","secondary","class","tw-mt-4",3,"click",4,"ngIf"],["class","tw-mt-4",4,"ngIf"],["bitLink","","linkType","primary","target","_blank","rel","noreferrer",1,"tw-cursor-pointer",3,"href"],["type","button","bitButton","","block","","buttonType","secondary",1,"tw-mt-4",3,"click"],[1,"tw-mt-4"],["bitLink","","linkType","primary",3,"routerLink"]],template:function(e,t){1&e&&c.DNE(0,Pt,4,3,"ng-container",0)(1,Nt,4,2,"ng-container",0),2&e&&(c.Y8G("ngIf",t.loading),c.R7$(),c.Y8G("ngIf",!t.loading))},dependencies:[o.t,d.Q,m.MD,m.bT,n.p,z.V,ve.g,b.iI,b.Wk,l.o,A.R,p.$],encapsulation:2});var Xt=i(65113);class zt{constructor(e){this.email=e}}var Lt=i(57083),Wt=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function Kt(e,t){if(1&e){const e=c.RV6();c.j41(0,"bit-form-field")(1,"bit-label"),c.EFF(2),c.nI1(3,"i18n"),c.k0s(),c.nrm(4,"input",4),c.k0s(),c.j41(5,"button",5),c.EFF(6),c.nI1(7,"i18n"),c.k0s(),c.j41(8,"button",6),c.bIt("click",function(){W.eBV(e);const t=c.XpG();return W.Njj(t.cancel())}),c.EFF(9),c.nI1(10,"i18n"),c.k0s()}2&e&&(c.R7$(2),c.JRh(c.bMT(3,5,"accountEmail")),c.R7$(3),c.Y8G("block",!0),c.R7$(),c.SpI(" ",c.bMT(7,7,"requestHint")," "),c.R7$(2),c.Y8G("block",!0),c.R7$(),c.SpI(" ",c.bMT(10,9,"cancel")," "))}function Zt(e,t){1&e&&c.eu8(0)}function Ht(e,t){if(1&e&&(c.j41(0,"main",7),c.DNE(1,Zt,1,0,"ng-container",8),c.k0s()),2&e){c.XpG();const e=c.sdS(2);c.R7$(),c.Y8G("ngTemplateOutlet",e)}}function Jt(e,t){1&e&&c.eu8(0)}function qt(e,t){if(1&e&&(c.qex(0),c.DNE(1,Jt,1,0,"ng-container",8),c.bVm()),2&e){c.XpG();const e=c.sdS(2);c.R7$(),c.Y8G("ngTemplateOutlet",e)}}class $t{get email(){return this.formGroup.controls.email.value}constructor(e,t,i,n,r,s,o){this.apiService=e,this.formBuilder=t,this.i18nService=i,this.loginEmailService=n,this.platformUtilsService=r,this.toastService=s,this.router=o,this.formGroup=this.formBuilder.group({email:["",[y.k0.required,y.k0.email]]}),this.submit=()=>Wt(this,void 0,void 0,function*(){this.validateEmailOrShowToast(this.email)&&(yield this.apiService.postPasswordHint(new zt(this.email)),this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("masterPassSent")}),yield this.router.navigate(["login"]))}),this.clientType=this.platformUtilsService.getClientType()}ngOnInit(){return Wt(this,void 0,void 0,function*(){var e;const t=null!==(e=yield(0,I._)(this.loginEmailService.loginEmail$))&&void 0!==e?e:"";this.formGroup.controls.email.setValue(t)})}cancel(){return Wt(this,void 0,void 0,function*(){yield this.loginEmailService.setLoginEmail(this.email),yield this.router.navigate(["login"])})}validateEmailOrShowToast(e){return null==e||""===e?(this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:this.i18nService.t("emailRequired")}),!1):-1!==e.indexOf("@")||(this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:this.i18nService.t("invalidEmail")}),!1)}}$t.ɵfac=function(e){return new(e||$t)(c.rXU(Ze.G),c.rXU(y.ok),c.rXU(_.W),c.rXU(T.DS),c.rXU(te.y),c.rXU(H.f),c.rXU(K.Ix))},$t.ɵcmp=c.VBU({type:$t,selectors:[["ng-component"]],decls:5,vars:4,consts:[["formContentTemplate",""],[3,"bitSubmit","formGroup"],["tabindex","-1",4,"ngIf"],[4,"ngIf"],["bitInput","","appAutofocus","","inputmode","email","appInputVerbatim","false","type","email","formControlName","email"],["type","submit","bitButton","","bitFormButton","","buttonType","primary",1,"tw-mb-2",3,"block"],["type","button","bitButton","","buttonType","secondary",3,"click","block"],["tabindex","-1"],[4,"ngTemplateOutlet"]],template:function(e,t){1&e&&(c.j41(0,"form",1),c.DNE(1,Kt,11,11,"ng-template",null,0,c.C5r)(3,Ht,2,1,"main",2)(4,qt,2,1,"ng-container",3),c.k0s()),2&e&&(c.Y8G("bitSubmit",t.submit)("formGroup",t.formGroup),c.R7$(3),c.Y8G("ngIf","browser"===t.clientType),c.R7$(),c.Y8G("ngIf","browser"!==t.clientType))},dependencies:[N.C,oe.$,ae.L,o.t,d.Q,m.MD,m.bT,m.T3,Y.L,de.j,ue.J,he.h,n.p,me.B,Lt.q,y.X1,y.qT,y.me,y.BC,y.cb,y.j4,y.JD,b.iI,p.$],encapsulation:2});const _t=k.JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="3.33 0.87 76.36 76.8">
|
|
<path class="tw-fill-illustration-bg-primary" d="M3.333 33.298a5 5 0 0 1 1.745-3.794L37.287 1.87a4.167 4.167 0 0 1 5.426 0l32.21 27.634a5 5 0 0 1 1.744 3.794v41.035a3.333 3.333 0 0 1-3.334 3.334H6.667a3.333 3.333 0 0 1-3.334-3.334V33.299Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M75 74.334V33.297c0-.972-.425-1.896-1.163-2.53L41.627 3.136a2.5 2.5 0 0 0-3.255 0L6.162 30.769A3.333 3.333 0 0 0 5 33.299v41.035C5 75.254 5.746 76 6.667 76h66.666c.92 0 1.667-.746 1.667-1.666ZM5.078 29.504a5 5 0 0 0-1.745 3.794v41.035a3.333 3.333 0 0 0 3.334 3.334h66.666a3.333 3.333 0 0 0 3.334-3.334V33.299a5 5 0 0 0-1.745-3.794L42.713 1.87a4.167 4.167 0 0 0-5.426 0L5.077 29.504Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M41.98 55.17a3.333 3.333 0 0 1-3.96 0L5.496 31.161a.833.833 0 1 0-.99 1.341L37.031 56.51a5 5 0 0 0 5.938 0l32.526-24.007a.833.833 0 0 0-.99-1.34L41.98 55.168Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M12.5 10.166h55v28.333L40.999 58.175a1.667 1.667 0 0 1-1.994-.005L12.5 38.29V10.166Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M65.833 11.833H14.167v25.625l25.838 19.379L65.833 37.66V11.833ZM67.5 38.499 40.999 58.175a1.667 1.667 0 0 1-1.994-.005L12.5 38.29V10.166h55v28.333Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-primary" d="m40 50.166 18.333 10.417L40 70.999 21.667 60.583 40 50.166Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M42.02 51.92a3.333 3.333 0 0 0-4.04 0L5.505 76.663a.833.833 0 0 1-1.01-1.326L36.97 50.594a5 5 0 0 1 6.06 0l-.494.648.494-.648 32.475 24.743a.833.833 0 0 1-1.01 1.326L42.02 51.92Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M70 41c0 9.204-7.462 16.666-16.667 16.666-9.204 0-16.666-7.462-16.666-16.666 0-9.205 7.462-16.667 16.666-16.667C62.538 24.333 70 31.795 70 41Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M53.333 56c8.285 0 15-6.716 15-15 0-8.285-6.715-15-15-15-8.284 0-15 6.715-15 15 0 8.284 6.716 15 15 15Zm0 1.666C62.538 57.666 70 50.204 70 41c0-9.205-7.462-16.667-16.667-16.667-9.204 0-16.666 7.462-16.666 16.667 0 9.204 7.462 16.666 16.666 16.666Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-secondary" d="M65.833 41c0 6.904-5.596 12.5-12.5 12.5-6.903 0-12.5-5.596-12.5-12.5s5.597-12.5 12.5-12.5c6.904 0 12.5 5.596 12.5 12.5Z"/>
|
|
<path class="tw-fill-illustration-outline" d="M79.17 65.24 65.417 52.25l-1.667 1.667L76.74 67.67a1.667 1.667 0 0 0 2.39.034l.074-.075a1.667 1.667 0 0 0-.034-2.39Z"/>
|
|
<path class="tw-fill-illustration-tertiary" fill-rule="evenodd" d="M18.333 17.666a.833.833 0 0 0 0 1.667h8.334a.833.833 0 0 0 0-1.667h-8.334ZM55 20.999a.833.833 0 0 1 0 1.667h-8.333a.833.833 0 1 1 0-1.667H55Zm.453 3.467a.83.83 0 0 0-.453-.133h-8.333a.833.833 0 0 0-.397 1.566 16.603 16.603 0 0 1 7.063-1.566c.718 0 1.425.045 2.12.133Zm-17.737 10.7a16.551 16.551 0 0 0-.524 1.667H35a.833.833 0 0 1 0-1.667h2.716Zm1.696-3.333a16.643 16.643 0 0 0-.966 1.666H32.5a.833.833 0 1 1 0-1.666h6.912ZM30 17.666a.833.833 0 0 0 0 1.667h8.333a.833.833 0 1 0 0-1.667H30Zm14.167 4.167a.833.833 0 0 0-.834-.834H35a.833.833 0 0 0 0 1.667h8.333c.46 0 .834-.373.834-.833Zm-.834 4.166a.833.833 0 1 0 0-1.666h-10a.833.833 0 0 0 0 1.666h10Zm-1.666-8.333a.833.833 0 1 0 0 1.667h1.666a.833.833 0 1 0 0-1.667h-1.666ZM32.5 21.833a.833.833 0 0 0-.833-.834H30a.833.833 0 0 0 0 1.667h1.667c.46 0 .833-.373.833-.833ZM30 25.999a.833.833 0 1 0 0-1.666h-3.333a.833.833 0 1 0 0 1.666H30Zm0 6.667c0 .46-.373.833-.833.833h-5a.833.833 0 1 1 0-1.666h5c.46 0 .833.373.833.833Zm1.667 4.167a.833.833 0 0 0 0-1.667H18.333a.833.833 0 0 0 0 1.667h13.334Zm15-19.167a.833.833 0 1 0 0 1.667H55a.833.833 0 0 0 0-1.667h-8.333ZM27.5 21.833a.833.833 0 0 0-.833-.834h-8.334a.833.833 0 0 0 0 1.667h8.334c.46 0 .833-.373.833-.833Zm-4.167 4.166a.833.833 0 1 0 0-1.666h-5a.833.833 0 0 0 0 1.666h5Zm-1.666 6.667c0 .46-.373.833-.834.833h-2.5a.833.833 0 1 1 0-1.666h2.5c.46 0 .834.373.834.833Z" clip-rule="evenodd"/>
|
|
</svg>
|
|
`;class ei{constructor(e,t,i){this.email=e,this.name=t,this.receiveMarketingEmails=i}}var ti=i(24512),ii=i(45383),ni=i(35284),ri=i(98905),si=i(68711),oi=i(44075),ai=i(45635),li=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function ci(e,t){1&e&&(c.qex(0),c.j41(1,"p",11),c.EFF(2),c.nI1(3,"i18n"),c.k0s(),c.j41(4,"bit-form-field")(5,"bit-label"),c.EFF(6),c.nI1(7,"i18n"),c.k0s(),c.nrm(8,"input",12),c.k0s(),c.j41(9,"bit-form-field")(10,"bit-label"),c.EFF(11),c.nI1(12,"i18n"),c.k0s(),c.nrm(13,"input",13),c.k0s(),c.j41(14,"bit-form-field")(15,"bit-label"),c.EFF(16),c.nI1(17,"i18n"),c.k0s(),c.nrm(18,"input",14),c.k0s(),c.j41(19,"bit-form-field")(20,"bit-label"),c.EFF(21),c.nI1(22,"i18n"),c.k0s(),c.nrm(23,"input",15),c.k0s(),c.j41(24,"bit-form-field")(25,"bit-label"),c.EFF(26),c.nI1(27,"i18n"),c.k0s(),c.nrm(28,"input",16),c.k0s(),c.j41(29,"bit-form-field")(30,"bit-label"),c.EFF(31),c.nI1(32,"i18n"),c.k0s(),c.nrm(33,"input",17),c.k0s(),c.bVm()),2&e&&(c.R7$(2),c.SpI(" ",c.bMT(3,7,"selfHostedCustomEnvHeader")," "),c.R7$(4),c.JRh(c.bMT(7,9,"webVaultUrl")),c.R7$(5),c.JRh(c.bMT(12,11,"apiUrl")),c.R7$(5),c.JRh(c.bMT(17,13,"identityUrl")),c.R7$(5),c.JRh(c.bMT(22,15,"notificationsUrl")),c.R7$(5),c.JRh(c.bMT(27,17,"iconsUrl")),c.R7$(5),c.JRh(c.bMT(32,19,"sendUrl")))}function di(e,t){1&e&&(c.j41(0,"span",18),c.nrm(1,"bit-icon",19),c.EFF(2),c.nI1(3,"i18n"),c.k0s()),2&e&&(c.R7$(2),c.SpI(" ",c.bMT(3,1,"selfHostedEnvFormInvalid")," "))}function ui(){const e=(0,W.WQX)(_.W),t=(0,W.WQX)(te.y);return i=>{const n=i.value;return!n||n.startsWith("https://")||t.isDev()?null:{onlyHttpsAllowed:{message:e.t("selfHostedEnvMustUseHttps")}}}}class hi{static open(e){return li(this,void 0,void 0,function*(){const t=e.open(hi,{disableClose:!1}),i=yield(0,I._)(t.closed);return null!=i&&i})}get baseUrl(){return this.formGroup.get("baseUrl")}get webVaultUrl(){return this.formGroup.get("webVaultUrl")}get apiUrl(){return this.formGroup.get("apiUrl")}get identityUrl(){return this.formGroup.get("identityUrl")}get iconsUrl(){return this.formGroup.get("iconsUrl")}get notificationsUrl(){return this.formGroup.get("notificationsUrl")}get sendUrl(){return this.formGroup.get("sendUrl")}constructor(e,t,i){this.dialogRef=e,this.formBuilder=t,this.environmentService=i,this.formGroup=this.formBuilder.group({baseUrl:["",[ui()]],webVaultUrl:["",[ui()]],apiUrl:["",[ui()]],identityUrl:["",[ui()]],iconsUrl:["",[ui()]],notificationsUrl:["",[ui()]],sendUrl:["",[ui()]]},{validators:e=>{var t,i,n,r,s,o,a;const l=e,c=null===(t=l.get("baseUrl"))||void 0===t?void 0:t.value,d=null===(i=l.get("webVaultUrl"))||void 0===i?void 0:i.value,u=null===(n=l.get("apiUrl"))||void 0===n?void 0:n.value,h=null===(r=l.get("identityUrl"))||void 0===r?void 0:r.value,A=null===(s=l.get("iconsUrl"))||void 0===s?void 0:s.value,p=null===(o=l.get("notificationsUrl"))||void 0===o?void 0:o.value,g=null===(a=l.get("sendUrl"))||void 0===a?void 0:a.value;return c||d||u||h||A||p||g?null:{atLeastOneUrlIsRequired:!0}}}),this.showCustomEnv=!1,this.showErrorSummary=!1,this.destroy$=new C.B,this.submit=()=>li(this,void 0,void 0,function*(){var e;this.formGroup.markAllAsTouched(),this.showErrorSummary=!1,this.formGroup.invalid?this.showErrorSummary=Boolean(null===(e=this.formGroup.errors)||void 0===e?void 0:e.atLeastOneUrlIsRequired):(yield this.environmentService.setEnvironment(x.T.SelfHosted,{base:this.baseUrl.value,api:this.apiUrl.value,identity:this.identityUrl.value,webVault:this.webVaultUrl.value,icons:this.iconsUrl.value,notifications:this.notificationsUrl.value,send:this.sendUrl.value}),yield this.dialogRef.close(!0))})}ngOnInit(){this.environmentService.globalEnvironment$.pipe((0,Q.s)(1),(0,si.p)(e=>e.getRegion()===x.T.SelfHosted),(0,B.Q)(this.destroy$)).subscribe({next:e=>{const t=e.getUrls();this.formGroup.patchValue({baseUrl:t.base||"",webVaultUrl:t.webVault||"",apiUrl:t.api||"",identityUrl:t.identity||"",iconsUrl:t.icons||"",notificationsUrl:t.notifications||"",sendUrl:t.send||""})}})}cancel(){return li(this,void 0,void 0,function*(){yield this.dialogRef.close(!1)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}hi.ɵfac=function(e){return new(e||hi)(c.rXU(oi.ce),c.rXU(y.ok),c.rXU(x.v))},hi.ɵcmp=c.VBU({type:hi,selectors:[["self-hosted-env-config-dialog"]],decls:25,vars:20,consts:[["bit-dialog","",3,"formGroup","bitSubmit"],["bitDialogTitle",""],["bitDialogContent",""],["id","self_hosted_env_settings_form_input_base_url","bitInput","","type","text","formControlName","baseUrl","appAutofocus","","appInputVerbatim",""],["bitLink","","linkType","primary","type","button",3,"click"],[1,"bwi-fw","bwi-sm",3,"name"],[4,"ngIf"],["class","tw-block tw-text-danger tw-mt-2","aria-live","assertive","role","alert",4,"ngIf"],["bitDialogFooter",""],["type","submit","bitButton","","bitFormButton","","buttonType","primary"],["type","button","bitButton","","bitFormButton","","buttonType","secondary",3,"click"],["bitTypography","body1",1,"tw-text-muted","tw-mt-3"],["id","self_hosted_env_settings_form_input_web_vault_url","bitInput","","type","text","formControlName","webVaultUrl","appInputVerbatim",""],["id","self_hosted_env_settings_form_input_api_url","bitInput","","type","text","formControlName","apiUrl","appInputVerbatim",""],["id","self_hosted_env_settings_form_input_identity_url","bitInput","","type","text","formControlName","identityUrl","appInputVerbatim",""],["id","self_hosted_env_settings_form_input_notifications_url","bitInput","","type","text","formControlName","notificationsUrl","appInputVerbatim",""],["id","self_hosted_env_settings_form_input_icons_url","bitInput","","type","text","formControlName","iconsUrl","appInputVerbatim",""],["id","self_hosted_env_settings_form_input_send_url","bitInput","","type","text","formControlName","sendUrl","appInputVerbatim",""],["aria-live","assertive","role","alert",1,"tw-block","tw-text-danger","tw-mt-2"],["name","bwi-error"]],template:function(e,t){1&e&&(c.j41(0,"form",0)(1,"span",1),c.EFF(2," Self-hosted environment"),c.k0s(),c.qex(3,2),c.j41(4,"bit-form-field")(5,"bit-label"),c.EFF(6),c.nI1(7,"i18n"),c.k0s(),c.nrm(8,"input",3),c.j41(9,"bit-hint"),c.EFF(10),c.nI1(11,"i18n"),c.k0s()(),c.j41(12,"button",4),c.bIt("click",function(){return t.showCustomEnv=!t.showCustomEnv}),c.nrm(13,"bit-icon",5),c.EFF(14),c.nI1(15,"i18n"),c.k0s(),c.DNE(16,ci,34,21,"ng-container",6)(17,di,4,3,"span",7),c.bVm(),c.qex(18,8),c.j41(19,"button",9),c.EFF(20),c.nI1(21,"i18n"),c.k0s(),c.j41(22,"button",10),c.bIt("click",function(){return t.cancel()}),c.EFF(23),c.nI1(24,"i18n"),c.k0s(),c.bVm(),c.k0s()),2&e&&(c.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit),c.R7$(6),c.JRh(c.bMT(7,10,"baseUrl")),c.R7$(4),c.JRh(c.bMT(11,12,"selfHostedBaseUrlHint")),c.R7$(3),c.Y8G("name",t.showCustomEnv?"bwi-angle-down":"bwi-angle-right"),c.R7$(),c.SpI(" ",c.bMT(15,14,"customEnvironment")," "),c.R7$(2),c.Y8G("ngIf",t.showCustomEnv),c.R7$(),c.Y8G("ngIf",t.showErrorSummary),c.R7$(3),c.SpI(" ",c.bMT(21,16,"save")," "),c.R7$(3),c.SpI(" ",c.bMT(24,18,"cancel")," "))},dependencies:[m.MD,m.bT,n.p,me.B,Lt.q,a.P,ai.m,h.hJ,o.t,d.Q,l.o,A.R,z.V,ve.g,Le.E,rt.r,y.X1,y.qT,y.me,y.BC,y.cb,y.j4,y.JD,Y.L,de.j,nt.I,ue.J,he.h,N.C,oe.$,ae.L,p.$],encapsulation:2});var Ai=i(8433),pi=i(61515),gi=i(33886),vi=i(68923),mi=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function fi(e,t){if(1&e&&c.nrm(0,"bit-option",5),2&e){const e=t.$implicit;c.Y8G("value",e)("label",e.domain)}}function yi(e,t){if(1&e&&(c.nrm(0,"bit-option",5),c.nI1(1,"i18n")),2&e){const e=c.XpG(2);c.Y8G("value",e.ServerEnvironmentType.SelfHosted)("label",c.bMT(1,2,"selfHostedServer"))}}function bi(e,t){if(1&e){const e=c.RV6();c.j41(0,"form",1)(1,"bit-form-field")(2,"bit-label"),c.EFF(3),c.nI1(4,"i18n"),c.k0s(),c.j41(5,"bit-select",2),c.bIt("closed",function(){W.eBV(e);const t=c.XpG();return W.Njj(t.onSelectClosed())}),c.DNE(6,fi,1,2,"bit-option",3),c.nI1(7,"async"),c.DNE(8,yi,2,4,"bit-option",4),c.k0s()()()}if(2&e){const e=c.XpG();c.Y8G("formGroup",e.formGroup),c.R7$(3),c.JRh(c.bMT(4,4,"creatingAccountOn")),c.R7$(3),c.Y8G("ngForOf",c.bMT(7,6,e.availableRegionConfigs$)),c.R7$(2),c.Y8G("ngIf",e.isDesktopOrBrowserExtension)}}class Ci{get selectedRegion(){return this.formGroup.get("selectedRegion")}constructor(e,t,i,n,r,s,o){this.formBuilder=e,this.environmentService=t,this.availableRegionsService=i,this.dialogService=n,this.i18nService=r,this.toastService=s,this.platformUtilsService=o,this.selectedRegionChange=new W.bkB,this.ServerEnvironmentType=x.T,this.formGroup=this.formBuilder.group({selectedRegion:[null,y.k0.required]}),this.availableRegionConfigs$=this.availableRegionsService.availableRegions$,this.hideEnvSelector=!1,this.isDesktopOrBrowserExtension=!1,this.destroy$=new C.B;const a=o.getClientType();this.isDesktopOrBrowserExtension=a===P.sK.Desktop||a===P.sK.Browser,this.hideEnvSelector=a===P.sK.Web&&this.platformUtilsService.isSelfHost()}ngOnInit(){return mi(this,void 0,void 0,function*(){this.hideEnvSelector||(yield this.initSelectedRegionAndListenForEnvChanges(),this.listenForSelectedRegionChanges())})}initSelectedRegionAndListenForEnvChanges(){return mi(this,void 0,void 0,function*(){this.environmentService.environment$.pipe((0,Pe.T)(e=>{const t=e.getRegion(),i=this.environmentService.availableRegions().find(e=>e.key===t);return void 0===i?x.T.SelfHosted:i}),(0,ni.M)(e=>{e!==this.selectedRegion.value&&this.selectedRegion.setValue(e,{emitEvent:!1}),this.selectedRegionFromEnv=e,this.selectedRegionChange.emit(e)}),(0,B.Q)(this.destroy$)).subscribe()})}listenForSelectedRegionChanges(){this.selectedRegion.valueChanges.pipe((0,S.Z)(null),(0,ri.J)(),(0,Me.n)(([e,t])=>null===t?(this.selectedRegionChange.emit(t),(0,Oe.of)(null)):t!==x.T.SelfHosted?(this.selectedRegionChange.emit(t),(0,Ge.H)(this.environmentService.setEnvironment(t.key))):(0,Oe.of)(null)),(0,B.Q)(this.destroy$)).subscribe()}handleSelfHostedEnvConfigDialogResult(e,t){if(!0===e)return this.selectedRegionChange.emit(x.T.SelfHosted),void this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("environmentSaved")});!1!==e&&void 0!==e||null===t||t===x.T.SelfHosted?(this.selectedRegionChange.emit(this.selectedRegionFromEnv),this.selectedRegion.setValue(this.selectedRegionFromEnv,{emitEvent:!1})):(this.selectedRegionChange.emit(t),this.selectedRegion.setValue(t,{emitEvent:!1}))}onSelectClosed(){return mi(this,void 0,void 0,function*(){if(this.selectedRegion.value===x.T.SelfHosted){const e=yield hi.open(this.dialogService);return this.handleSelfHostedEnvConfigDialogResult(e,this.selectedRegion.value)}})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}Ci.ɵfac=function(e){return new(e||Ci)(c.rXU(y.ok),c.rXU(x.v),c.rXU(pi.s),c.rXU(r.o),c.rXU(_.W),c.rXU(H.f),c.rXU(te.y))},Ci.ɵcmp=c.VBU({type:Ci,selectors:[["auth-registration-env-selector"]],outputs:{selectedRegionChange:"selectedRegionChange"},decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],["formControlName","selectedRegion",3,"closed"],[3,"value","label",4,"ngFor","ngForOf"],[3,"value","label",4,"ngIf"],[3,"value","label"]],template:function(e,t){1&e&&c.DNE(0,bi,9,8,"form",0),2&e&&c.Y8G("ngIf",!t.hideEnvSelector)},dependencies:[m.MD,m.Sq,m.bT,n.p,y.X1,y.qT,y.BC,y.cb,y.j4,y.JD,Y.L,de.j,he.h,Ai.p,gi.w,vi.P,m.Jj,p.$],encapsulation:2});var Ii,wi=i(46357),Bi=i(68466),Ei=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function Si(e,t){1&e&&(c.j41(0,"bit-form-control"),c.nrm(1,"input",8),c.j41(2,"bit-label",9),c.EFF(3),c.nI1(4,"i18n"),c.j41(5,"a",10),c.EFF(6),c.nI1(7,"i18n"),c.k0s(),c.EFF(8),c.nI1(9,"i18n"),c.k0s()()),2&e&&(c.R7$(3),c.SpI(" ",c.bMT(4,3,"receiveMarketingEmails")," "),c.R7$(3),c.SpI(" ",c.bMT(7,5,"unsubscribe")," "),c.R7$(2),c.SpI(" ",c.bMT(9,7,"atAnyTime")," "))}function Qi(e,t){1&e&&(c.j41(0,"p",11),c.EFF(1),c.nI1(2,"i18n"),c.j41(3,"a",12),c.EFF(4),c.nI1(5,"i18n"),c.k0s(),c.EFF(6),c.nI1(7,"i18n"),c.j41(8,"a",13),c.EFF(9),c.nI1(10,"i18n"),c.k0s(),c.EFF(11,". "),c.k0s()),2&e&&(c.R7$(),c.SpI(" ",c.bMT(2,4,"byContinuingYouAgreeToThe")," "),c.R7$(3),c.JRh(c.bMT(5,6,"termsOfService")),c.R7$(2),c.SpI(" ",c.bMT(7,8,"and")," "),c.R7$(3),c.JRh(c.bMT(10,10,"privacyPolicy")))}function ki(e,t){if(1&e&&c.nrm(0,"bit-error-summary",14),2&e){const e=c.XpG(2);c.Y8G("formGroup",e.formGroup)}}function Ri(e,t){if(1&e){const e=c.RV6();c.qex(0),c.j41(1,"form",1)(2,"auth-registration-env-selector",2),c.bIt("selectedRegionChange",function(t){W.eBV(e);const i=c.XpG();return W.Njj(i.handleSelectedRegionChange(t))}),c.k0s(),c.j41(3,"bit-form-field")(4,"bit-label"),c.EFF(5),c.nI1(6,"i18n"),c.k0s(),c.nrm(7,"input",3),c.k0s(),c.j41(8,"bit-form-field")(9,"bit-label"),c.EFF(10),c.nI1(11,"i18n"),c.k0s(),c.nrm(12,"input",4),c.k0s(),c.DNE(13,Si,10,9,"bit-form-control",0),c.j41(14,"button",5),c.EFF(15),c.nI1(16,"i18n"),c.k0s(),c.DNE(17,Qi,12,12,"p",6)(18,ki,1,1,"bit-error-summary",7),c.k0s(),c.bVm()}if(2&e){const e=c.XpG();c.R7$(),c.Y8G("formGroup",e.formGroup)("bitSubmit",e.submit),c.R7$(4),c.JRh(c.bMT(6,10,"emailAddress")),c.R7$(2),c.BMQ("readonly",!!e.emailReadonly||null),c.R7$(3),c.JRh(c.bMT(11,12,"name")),c.R7$(3),c.Y8G("ngIf",!e.isSelfHost),c.R7$(),c.Y8G("block",!0),c.R7$(),c.SpI(" ",c.bMT(16,14,"continue")," "),c.R7$(2),c.Y8G("ngIf",!e.isSelfHost),c.R7$(),c.Y8G("ngIf",e.showErrorSummary)}}function Fi(e,t){if(1&e){const e=c.RV6();c.qex(0),c.j41(1,"div",15)(2,"p",16),c.EFF(3),c.nI1(4,"i18n"),c.j41(5,"span",17),c.EFF(6),c.k0s(),c.EFF(7),c.nI1(8,"i18n"),c.k0s(),c.j41(9,"p",18),c.EFF(10),c.nI1(11,"i18n"),c.j41(12,"a",19),c.bIt("click",function(){W.eBV(e);const t=c.XpG();return W.Njj(t.goBack())}),c.EFF(13),c.nI1(14,"i18n"),c.k0s(),c.EFF(15),c.nI1(16,"i18n"),c.k0s()(),c.bVm()}if(2&e){const e=c.XpG();c.R7$(3),c.SpI(" ",c.bMT(4,6,"followTheLinkInTheEmailSentTo")," "),c.R7$(3),c.JRh(e.email.value),c.R7$(),c.SpI(" ",c.bMT(8,8,"andContinueCreatingYourAccount")," "),c.R7$(3),c.SpI(" ",c.bMT(11,10,"noEmail")," "),c.R7$(3),c.SpI(" ",c.bMT(14,12,"goBack")," "),c.R7$(2),c.SpI(" ",c.bMT(16,14,"toEditYourEmailAddress")," ")}}!function(e){e.USER_DATA_ENTRY="UserDataEntry",e.CHECK_EMAIL="CheckEmail"}(Ii||(Ii={}));const Ti={[x.T.US]:!0,[x.T.EU]:!1,[x.T.Gov]:!1,[x.T.SelfHosted]:!1};class Di{get email(){return this.formGroup.controls.email}get name(){return this.formGroup.controls.name}get receiveMarketingEmails(){return this.formGroup.controls.receiveMarketingEmails}constructor(e,t,i,n,r,s,o){this.formBuilder=e,this.route=t,this.platformUtilsService=i,this.accountApiService=n,this.router=r,this.loginEmailService=s,this.anonLayoutWrapperDataService=o,this.registrationStartStateChange=new W.bkB,this.state=Ii.USER_DATA_ENTRY,this.RegistrationStartState=Ii,this.isSelfHost=!1,this.formGroup=this.formBuilder.group({email:["",[y.k0.required,y.k0.email]],name:[""],receiveMarketingEmails:[!1]}),this.emailReadonly=!1,this.showErrorSummary=!1,this.destroy$=new C.B,this.submit=()=>Ei(this,void 0,void 0,function*(){if(!this.validateForm())return;const e=""===this.name.value?null:this.name.value,t=new ei(this.email.value,e,this.receiveMarketingEmails.value),i=yield this.accountApiService.registerSendVerificationEmail(t);"string"!=typeof i?(this.state=Ii.CHECK_EMAIL,this.anonLayoutWrapperDataService.setAnonLayoutWrapperData({pageTitle:{key:"checkYourEmail"},pageIcon:_t,hidePageIcon:ti.J.hidePageIcon,heroTextAlignment:ti.J.heroTextAlignment,contentVerticalPadding:ti.J.contentVerticalPadding,footerVerticalPadding:ti.J.footerVerticalPadding}),this.registrationStartStateChange.emit(this.state)):yield this.router.navigate(["/finish-signup"],{queryParams:{token:i,email:this.email.value}})}),this.isSelfHost=i.isSelfHost()}ngOnInit(){return Ei(this,void 0,void 0,function*(){this.registrationStartStateChange.emit(this.state),this.listenForQueryParamChanges(),this.loginEmailService.loginEmail$.pipe((0,B.Q)(this.destroy$)).subscribe(e=>{e&&this.formGroup.patchValue({email:e})})})}listenForQueryParamChanges(){this.route.queryParams.pipe((0,B.Q)(this.destroy$)).subscribe(e=>{var t;null!=e.email&&e.email.indexOf("@")>-1&&(null===(t=this.email)||void 0===t||t.setValue(e.email),this.emailReadonly="true"===e.emailReadonly)})}setReceiveMarketingEmailsByRegion(e){let t;if(e===x.T.SelfHosted)t=Ti[e];else{const i=e.key;t=Ti[i]}this.receiveMarketingEmails.setValue(t)}handleSelectedRegionChange(e){this.isSelfHost=e===x.T.SelfHosted,null!==e&&this.setReceiveMarketingEmailsByRegion(e)}validateForm(){return this.formGroup.markAllAsTouched(),this.formGroup.invalid&&(this.showErrorSummary=!0),this.formGroup.valid}goBack(){this.state=Ii.USER_DATA_ENTRY,this.anonLayoutWrapperDataService.resetToCachedRouteData(),this.registrationStartStateChange.emit(this.state)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}Di.ɵfac=function(e){return new(e||Di)(c.rXU(y.ok),c.rXU(K.nX),c.rXU(te.y),c.rXU(wi.T),c.rXU(K.Ix),c.rXU(T.pi),c.rXU(Z.f))},Di.ɵcmp=c.VBU({type:Di,selectors:[["auth-registration-start"]],outputs:{registrationStartStateChange:"registrationStartStateChange"},decls:2,vars:2,consts:[[4,"ngIf"],[3,"formGroup","bitSubmit"],[3,"selectedRegionChange"],["id","register-start_form_input_email","bitInput","","type","email","formControlName","email"],["id","register-start_form_input_name","bitInput","","type","text","formControlName","name"],["type","submit","buttonType","primary","bitButton","","bitFormButton","",1,"tw-mb-3",3,"block"],["bitTypography","helper","class","tw-text-main tw-text-xs tw-mb-0",4,"ngIf"],[3,"formGroup",4,"ngIf"],["id","register-start-form-input-receive-marketing-emails","type","checkbox","bitCheckbox","","formControlName","receiveMarketingEmails"],["for","register-start-form-input-receive-marketing-emails"],["bitLink","","linkType","primary","href","https://bitwarden.com/email-preferences","target","_blank","rel","noreferrer"],["bitTypography","helper",1,"tw-text-main","tw-text-xs","tw-mb-0"],["bitLink","","linkType","primary","href","https://bitwarden.com/terms/","target","_blank","rel","noreferrer"],["bitLink","","linkType","primary","href","https://bitwarden.com/privacy/","target","_blank","rel","noreferrer"],[3,"formGroup"],[1,"tw-flex","tw-flex-col","tw-items-center","tw-justify-center"],["bitTypography","body1","id","follow_the_link_body",1,"tw-text-center","tw-mb-3","tw-text-main"],[1,"tw-font-medium"],["bitTypography","helper",1,"tw-text-center","tw-text-main"],["bitLink","","linkType","primary","tabindex","0",1,"tw-cursor-pointer",3,"click"]],template:function(e,t){1&e&&c.DNE(0,Ri,19,16,"ng-container",0)(1,Fi,17,16,"ng-container",0),2&e&&(c.Y8G("ngIf",t.state===t.RegistrationStartState.USER_DATA_ENTRY),c.R7$(),c.Y8G("ngIf",t.state===t.RegistrationStartState.CHECK_EMAIL))},dependencies:[m.MD,m.bT,y.X1,y.qT,y.me,y.Zm,y.BC,y.cb,y.j4,y.JD,n.p,Y.L,ce.f,de.j,ue.J,Bi.L,he.h,N.C,oe.$,ae.L,j.q,le.P,o.t,d.Q,z.V,ve.g,ii.Z,Ci,p.$],encapsulation:2});class Pi{constructor(e,t){this.email=e,this.emailVerificationToken=t}}class Mi{}var xi=i(71613),Vi=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Gi=()=>({key:"createAccount"});function Ui(e,t){1&e&&(c.j41(0,"div",2),c.nrm(1,"bit-icon",3),c.nI1(2,"i18n"),c.k0s()),2&e&&(c.R7$(),c.Y8G("ariaLabel",c.bMT(2,1,"loading")))}function Oi(e,t){if(1&e){const e=c.RV6();c.j41(0,"auth-input-password",4),c.bIt("onPasswordFormSubmit",function(t){W.eBV(e);const i=c.XpG();return W.Njj(i.handlePasswordFormSubmit(t))}),c.k0s()}if(2&e){const e=c.XpG();c.Y8G("email",e.email)("flow",e.inputPasswordFlow)("masterPasswordPolicyOptions",e.masterPasswordPolicyOptions)("loading",e.submitting)("primaryButtonText",c.lJ4(5,Gi))}}const Ni=Object.freeze({Premium:"premium"});class ji{constructor(e,t,i,n,r,s,o,a,l,c,d,u){this.activatedRoute=e,this.router=t,this.toastService=i,this.i18nService=n,this.registrationFinishService=r,this.validationService=s,this.accountApiService=o,this.loginStrategyService=a,this.logService=l,this.anonLayoutWrapperDataService=c,this.loginSuccessHandlerService=d,this.premiumInterestStateService=u,this.destroy$=new C.B,this.inputPasswordFlow=v.m.SetInitialPasswordAccountRegistration,this.loading=!0,this.submitting=!1,this.premiumInterest=!1,this.masterPasswordPolicyOptions=null}ngOnInit(){return Vi(this,void 0,void 0,function*(){const e=yield(0,I._)(this.activatedRoute.queryParams);if(this.handleQueryParams(e),e.fromEmail&&"true"===e.fromEmail&&this.email&&this.emailVerificationToken)yield this.initEmailVerificationFlow();else{(yield this.initOrgInviteFlowIfPresent())||this.initRegistrationWithEmailVerificationDisabledFlow()}this.loading=!1})}handleQueryParams(e){null!=e.email&&e.email.indexOf("@")>-1&&(this.email=e.email),null!=e.token&&(this.emailVerificationToken=e.token),null!=e.orgSponsoredFreeFamilyPlanToken&&(this.orgSponsoredFreeFamilyPlanToken=e.orgSponsoredFreeFamilyPlanToken),null!=e.acceptEmergencyAccessInviteToken&&e.emergencyAccessId&&(this.acceptEmergencyAccessInviteToken=e.acceptEmergencyAccessInviteToken,this.emergencyAccessId=e.emergencyAccessId),null!=e.providerInviteToken&&null!=e.providerUserId&&(this.providerInviteToken=e.providerInviteToken,this.providerUserId=e.providerUserId),null!=e.fromMarketing&&e.fromMarketing===Ni.Premium&&(this.premiumInterest=!0)}initOrgInviteFlowIfPresent(){return Vi(this,void 0,void 0,function*(){this.masterPasswordPolicyOptions=yield this.registrationFinishService.getMasterPasswordPolicyOptsFromOrgInvite();const e=yield this.registrationFinishService.getOrgNameFromOrgInvite();return!!e&&(this.anonLayoutWrapperDataService.setAnonLayoutWrapperData({pageTitle:{key:"joinOrganizationName",placeholders:[e]},pageSubtitle:{key:"finishJoiningThisOrganizationBySettingAMasterPassword"}}),!0)})}handlePasswordFormSubmit(e){return Vi(this,void 0,void 0,function*(){var t;this.submitting=!0;try{yield this.registrationFinishService.finishRegistration(this.email,e,this.emailVerificationToken,this.orgSponsoredFreeFamilyPlanToken,this.acceptEmergencyAccessInviteToken,this.emergencyAccessId,this.providerInviteToken,this.providerUserId)}catch(i){const e="Expired token."===(null==i?void 0:i.message)?this.i18nService.t("inviteAcceptFailed"):i;return this.validationService.showError(e),void(this.submitting=!1)}this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("newAccountCreated2")});try{const i=new T.F2(this.email,e.newPassword),n=yield this.loginStrategyService.logIn(i);if(null==n?void 0:n.requiresTwoFactor)return void(yield this.router.navigate(["/2fa"]));yield this.loginSuccessHandlerService.run(n.userId,null!==(t=n.masterPassword)&&void 0!==t?t:null),this.premiumInterest&&(yield this.premiumInterestStateService.setPremiumInterest(n.userId,!0)),yield this.router.navigate(["/vault"])}catch(i){this.logService.error("Error logging in after registration: ",i.message),yield this.router.navigate(["/login"],{queryParams:{email:this.email}})}this.submitting=!1})}setDefaultPageTitleAndSubtitle(){this.anonLayoutWrapperDataService.setAnonLayoutWrapperData({pageTitle:{key:"setAStrongPassword"},pageSubtitle:{key:"finishCreatingYourAccountBySettingAPassword"}})}initEmailVerificationFlow(){return Vi(this,void 0,void 0,function*(){this.setDefaultPageTitleAndSubtitle(),yield this.registerVerificationEmailClicked(this.email,this.emailVerificationToken)})}registerVerificationEmailClicked(e,t){return Vi(this,void 0,void 0,function*(){const i=new Pi(e,t);try{null==(yield this.accountApiService.registerVerificationEmailClicked(i))&&this.toastService.showToast({title:null,message:this.i18nService.t("emailVerifiedV2"),variant:"success"})}catch(n){yield this.handleRegisterVerificationEmailClickedError(n)}})}handleRegisterVerificationEmailClickedError(e){return Vi(this,void 0,void 0,function*(){if(e instanceof M._){const t=e;if(t.statusCode===P.kG.BadRequest)t.message.includes("Expired link")?yield this.router.navigate(["/signup-link-expired"]):this.validationService.showError(t);else this.validationService.showError(t)}else this.validationService.showError(e)})}initRegistrationWithEmailVerificationDisabledFlow(){this.setDefaultPageTitleAndSubtitle()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}ji.ɵfac=function(e){return new(e||ji)(c.rXU(K.nX),c.rXU(K.Ix),c.rXU(H.f),c.rXU(_.W),c.rXU(Mi),c.rXU(ne.B),c.rXU(wi.T),c.rXU(T.sg),c.rXU(V.K),c.rXU(Z.f),c.rXU(T.aJ),c.rXU(xi.a))},ji.ɵcmp=c.VBU({type:ji,selectors:[["auth-registration-finish"]],decls:2,vars:2,consts:[["class","tw-flex tw-items-center tw-justify-center",4,"ngIf"],[3,"email","flow","masterPasswordPolicyOptions","loading","primaryButtonText","onPasswordFormSubmit",4,"ngIf"],[1,"tw-flex","tw-items-center","tw-justify-center"],["name","bwi-spinner",1,"bwi-spin","bwi-3x",3,"ariaLabel"],[3,"onPasswordFormSubmit","email","flow","masterPasswordPolicyOptions","loading","primaryButtonText"]],template:function(e,t){1&e&&c.DNE(0,Ui,3,3,"div",0)(1,Oi,1,6,"auth-input-password",1),2&e&&(c.Y8G("ngIf",t.loading),c.R7$(),c.Y8G("ngIf",!t.loading))},dependencies:[m.MD,m.bT,n.p,b.iI,v.t,l.o,A.R,p.$],encapsulation:2});var Yi=i(32415),Xi=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class zi{constructor(e){this.activatedRoute=e,this.destroy$=new C.B,this.Icons={TwoFactorTimeoutIcon:Yi.c}}ngOnInit(){return Xi(this,void 0,void 0,function*(){const e=yield(0,I._)(this.activatedRoute.data);this.loginRoute=e.loginRoute})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}zi.ɵfac=function(e){return new(e||zi)(c.rXU(K.nX))},zi.ɵcmp=c.VBU({type:zi,selectors:[["auth-registration-link-expired"]],decls:13,vars:15,consts:[[1,"tw-flex","tw-flex-col","tw-items-center","tw-justify-center"],["bitTypography","body1","id","restart_registration_body",1,"tw-text-center","tw-mb-3","tw-text-main"],["type","button","buttonType","primary","bitButton","","routerLink","/signup",1,"tw-mb-3",3,"block"],["type","button","buttonType","secondary","bitButton","",3,"block","routerLink"]],template:function(e,t){1&e&&(c.j41(0,"div",0)(1,"p",1),c.EFF(2),c.nI1(3,"i18n"),c.nrm(4,"br"),c.EFF(5),c.nI1(6,"i18n"),c.k0s(),c.j41(7,"a",2),c.EFF(8),c.nI1(9,"i18n"),c.k0s(),c.j41(10,"a",3),c.EFF(11),c.nI1(12,"i18n"),c.k0s()()),2&e&&(c.R7$(2),c.SpI(" ",c.bMT(3,7,"pleaseRestartRegistrationOrTryLoggingIn")),c.R7$(3),c.SpI(" ",c.bMT(6,9,"youMayAlreadyHaveAnAccount")," "),c.R7$(2),c.Y8G("block",!0),c.R7$(),c.SpI(" ",c.bMT(9,11,"restartRegistration")," "),c.R7$(2),c.Y8G("block",!0)("routerLink",t.loginRoute),c.R7$(),c.SpI(" ",c.bMT(12,13,"logIn")," "))},dependencies:[m.MD,n.p,b.iI,b.Wk,ii.Z,o.t,d.Q,p.$],encapsulation:2});var Li=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Wi{constructor(e){this.activatedRoute=e}ngOnInit(){return Li(this,void 0,void 0,function*(){const e=yield(0,I._)(this.activatedRoute.data);this.loginRoute=e.loginRoute})}}Wi.ɵfac=function(e){return new(e||Wi)(c.rXU(K.nX))},Wi.ɵcmp=c.VBU({type:Wi,selectors:[["auth-registration-start-secondary"]],decls:6,vars:7,consts:[["bitLink","",3,"routerLink"]],template:function(e,t){1&e&&(c.j41(0,"span"),c.EFF(1),c.nI1(2,"i18n"),c.j41(3,"a",0),c.EFF(4),c.nI1(5,"i18n"),c.k0s()()),2&e&&(c.R7$(),c.SpI("",c.bMT(2,3,"alreadyHaveAccount")," "),c.R7$(2),c.Y8G("routerLink",t.loginRoute),c.R7$(),c.JRh(c.bMT(5,5,"logIn")))},dependencies:[m.MD,n.p,b.iI,b.Wk,z.V,ve.g,p.$],encapsulation:2});class Ki{constructor(e,t,i,n,r,s,o,a,l,c,d,u,h){this.email=e,this.masterPasswordHint=t,this.userAsymmetricKeys=i,this.masterPasswordAuthentication=n,this.masterPasswordUnlock=r,this.emailVerificationToken=s,this.orgSponsoredFreeFamilyPlanToken=o,this.acceptEmergencyAccessInviteToken=a,this.acceptEmergencyAccessId=l,this.providerInviteToken=c,this.providerUserId=d,this.organizationUserId=u,this.orgInviteToken=h}}var Zi=i(33331),Hi=i(60512),Ji=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class qi{constructor(e,t,i,n,r){this.keyService=e,this.accountApiService=t,this.masterPasswordService=i,this.configService=n,this.sdkService=r}getOrgNameFromOrgInvite(){return null}getMasterPasswordPolicyOptsFromOrgInvite(){return null}finishRegistration(e,t,i,n,r,s,o,a){return Ji(this,void 0,void 0,function*(){const l="Could not finish registration.";(0,Zi.B)(t.newPassword,"newPassword",l),(0,Hi.x)(t.kdfConfig,"kdfConfig",l),(0,Zi.B)(t.salt,"salt",l);if(yield this.configService.getFeatureFlag(Ne.TO.EnableAccountEncryptionV2UserPasswordRegistration)){const l=yield(0,I._)(this.sdkService.client$);if(!l)throw new Error("SDK not available");const c=yield this.buildSdkRegisterRequest(e,t.salt,t.newPassword,t.newPasswordHint,i,n,r,s,o,a);return void(yield l.auth().registration().post_keys_for_user_password_registration(c))}const c=yield this.keyService.makeMasterKey(t.newPassword,t.salt,t.kdfConfig),[d,u]=yield this.keyService.makeUserKey(c);if(!d||!u)throw new Error("User key could not be created");const h=yield this.keyService.makeKeyPair(d),A=yield this.buildRegisterRequest(d,e,t,h,i,n,r,s,o,a);return yield this.accountApiService.registerFinish(A)})}buildSdkRegisterRequest(e,t,i,n,r,s,o,a,l,c){return Ji(this,void 0,void 0,function*(){return{email:e,salt:t,master_password:i,master_password_hint:n,email_verification_token:r,organization_user_id:void 0,org_invite_token:void 0,org_sponsored_free_family_plan_token:void 0,accept_emergency_access_invite_token:void 0,accept_emergency_access_id:void 0,provider_invite_token:void 0,provider_user_id:void 0}})}buildRegisterRequest(e,t,i,n,r,s,o,a,l,c){return Ji(this,void 0,void 0,function*(){const s=new je.G(n[0],n[1].encryptedString),o=yield this.masterPasswordService.makeMasterPasswordAuthenticationData(i.newPassword,i.kdfConfig,i.salt),a=yield this.masterPasswordService.makeMasterPasswordUnlockData(i.newPassword,i.kdfConfig,i.salt,e),l=new Ki(t,i.newPasswordHint,s,o,a);return r&&(l.emailVerificationToken=r),l})}toOptionalSdkUserId(e){return e?(0,Xe.WD)(e):void 0}toOptionalSdkOrganizationId(e){return e?(0,Xe.WD)(e):void 0}}var $i,_i=i(80351);!function(e){e.MasterPassword="masterPassword",e.Pin="pin",e.Biometrics="biometrics",e.None="none"}($i||($i={}));var en=i(63636),tn=i(67789);const nn=k.JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="4 4 88 88">
|
|
<path class="tw-fill-illustration-bg-primary" d="M4 10a6 6 0 0 1 6-6h50a6 6 0 0 1 6 6v50a6 6 0 0 1-6 6H10a6 6 0 0 1-6-6V10Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M60 6H10a4 4 0 0 0-4 4v50a4 4 0 0 0 4 4h50a4 4 0 0 0 4-4V10a4 4 0 0 0-4-4ZM10 4a6 6 0 0 0-6 6v50a6 6 0 0 0 6 6h50a6 6 0 0 0 6-6V10a6 6 0 0 0-6-6H10Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M14 19a5 5 0 0 1 5-5h7a1 1 0 1 1 0 2h-7a3 3 0 0 0-3 3v7a1 1 0 1 1-2 0v-7Zm29-4a1 1 0 0 1 1-1h7a5 5 0 0 1 5 5v7a1 1 0 1 1-2 0v-7a3 3 0 0 0-3-3h-7a1 1 0 0 1-1-1ZM15 43a1 1 0 0 1 1 1v7a3 3 0 0 0 3 3h7a1 1 0 1 1 0 2h-7a5 5 0 0 1-5-5v-7a1 1 0 0 1 1-1Zm40 0a1 1 0 0 1 1 1v7a5 5 0 0 1-5 5h-7a1 1 0 1 1 0-2h7a3 3 0 0 0 3-3v-7a1 1 0 0 1 1-1ZM26 27a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0v-5a1 1 0 0 1 1-1Zm11 0a1 1 0 1 0-2 0v10a1 1 0 0 1-1 1h-2a1 1 0 1 0 0 2h2a3 3 0 0 0 3-3V27Zm-2 19c-2.234 0-4.411-.64-6.494-1.862a1 1 0 1 0-1.012 1.724C29.845 47.242 32.368 48 35 48c2.632 0 5.155-.758 7.506-2.138a1 1 0 1 0-1.012-1.724C39.41 45.36 37.234 46 35 46ZM23.565 24.825C24.378 24.268 25.192 24 26 24s1.622.268 2.435.825a1 1 0 1 0 1.13-1.65C28.478 22.43 27.277 22 26 22c-1.277 0-2.478.43-3.565 1.175a1 1 0 1 0 1.13 1.65ZM44 24c-.808 0-1.622.268-2.435.825a1 1 0 1 1-1.13-1.65C41.522 22.43 42.722 22 44 22s2.478.43 3.565 1.175a1 1 0 1 1-1.13 1.65C45.622 24.268 44.808 24 44 24Zm1 4a1 1 0 1 0-2 0v5a1 1 0 1 0 2 0v-5Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-tertiary" d="M92 61.5C92 78.345 80.807 92 67 92S42 78.345 42 61.5 53.193 31 67 31s25 13.655 25 30.5Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M67 90c12.349 0 23-12.37 23-28.5C90 45.37 79.349 33 67 33S44 45.37 44 61.5C44 77.63 54.651 90 67 90Zm0 2c13.807 0 25-13.655 25-30.5S80.807 31 67 31 42 44.655 42 61.5 53.193 92 67 92Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M60.351 49.196A18.953 18.953 0 0 1 67.001 48c2.342 0 4.582.423 6.65 1.196a1 1 0 0 0 .7-1.873A20.954 20.954 0 0 0 67.001 46c-2.584 0-5.06.467-7.35 1.323a1 1 0 1 0 .7 1.873ZM67.001 52c-4.58 0-8.646 2.198-11.201 5.6a1 1 0 1 1-1.6-1.2A15.977 15.977 0 0 1 67.001 50c5.198 0 9.537 2.124 12.708 5.293a1 1 0 1 1-1.414 1.414C75.462 53.877 71.618 52 67.001 52Zm-.14 2c-6.453 0-11.555 5.467-11.111 11.905l.09 1.297a15.002 15.002 0 0 0 1.175 4.873l.565 1.319a1 1 0 1 0 1.838-.788l-.565-1.319a13 13 0 0 1-1.019-4.223l-.09-1.297C57.382 60.485 61.568 56 66.863 56A9.138 9.138 0 0 1 76 65.138V66a1 1 0 1 1-2 0v-1c0-1.61-.58-3.358-1.827-4.713C70.908 58.912 69.01 58 66.5 58c-2.607 0-4.29 1.188-5.276 2.705C60.276 62.164 60 63.871 60 65c0 2.792.25 4.826.952 6.51.712 1.71 1.848 2.958 3.408 4.258a1 1 0 1 0 1.28-1.536c-1.44-1.2-2.304-2.202-2.842-3.492C62.25 69.424 62 67.708 62 65c0-.871.224-2.164.9-3.205.64-.983 1.707-1.795 3.6-1.795 1.99 0 3.342.707 4.202 1.642A5.018 5.018 0 0 1 72 65v1a3 3 0 1 0 6 0v-.862C78 58.987 73.013 54 66.862 54Zm-.905 10.94c0-.505.417-.94.988-.94.583 0 1.056.473 1.056 1.056v1.636c0 1.768.832 3.432 2.246 4.493l.82.615a6 6 0 0 0 3.6 1.2H75a1 1 0 1 0 0-2h-.333a4 4 0 0 1-2.4-.8l-.82-.615A3.615 3.615 0 0 1 70 66.692v-1.636A3.056 3.056 0 0 0 66.944 62c-1.61 0-2.99 1.267-2.988 2.943.002.984.039 2.22.177 3.365.15 1.243.753 2.218 1.396 3.031.293.372.611.73.909 1.065l.079.09c.328.369.631.715.903 1.072.663.875.84 1.591.651 2.063a1 1 0 0 0 1.858.742c.604-1.51-.165-3.023-.916-4.013a20.143 20.143 0 0 0-1-1.193l-.073-.082c-.306-.344-.587-.66-.842-.983-.546-.692-.893-1.32-.98-2.031-.124-1.034-.16-2.181-.162-3.129Z" clip-rule="evenodd"/>
|
|
</svg>
|
|
`;var rn=i(68333),sn=i(62166),on=i(8168),an=i(44432),ln=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function cn(e,t){1&e&&c.eu8(0)}function dn(e,t){if(1&e&&(c.qex(0),c.DNE(1,cn,1,0,"ng-container",4),c.bVm()),2&e){c.XpG(2);const e=c.sdS(3);c.R7$(),c.Y8G("ngTemplateOutlet",e)}}function un(e,t){if(1&e&&(c.qex(0),c.j41(1,"bit-form-field",5)(2,"bit-label"),c.EFF(3),c.nI1(4,"i18n"),c.k0s(),c.nrm(5,"input",6)(6,"button",7),c.j41(7,"bit-hint"),c.EFF(8),c.nI1(9,"i18n"),c.k0s()(),c.bVm()),2&e){const e=c.XpG(2);c.R7$(3),c.JRh(c.bMT(4,3,"pin")),c.R7$(2),c.Y8G("formControl",e.secret),c.R7$(3),c.JRh(c.bMT(9,5,"confirmIdentity"))}}function hn(e,t){1&e&&(c.j41(0,"div"),c.nrm(1,"bit-icon",13),c.nI1(2,"i18n"),c.EFF(3),c.nI1(4,"i18n"),c.k0s()),2&e&&(c.R7$(),c.Y8G("ariaLabel",c.bMT(2,2,"loading")),c.R7$(2),c.SpI(" ",c.bMT(4,4,"awaitingConfirmation")," "))}function An(e,t){if(1&e){const e=c.RV6();c.j41(0,"bit-callout",14),c.EFF(1),c.nI1(2,"i18n"),c.j41(3,"button",15),c.bIt("click",function(){W.eBV(e);const t=c.XpG(3);return W.Njj(t.verifyUserViaBiometrics())}),c.EFF(4),c.nI1(5,"i18n"),c.k0s()()}2&e&&(c.R7$(),c.SpI(" ",c.bMT(2,2,"couldNotCompleteBiometrics")," "),c.R7$(3),c.SpI(" ",c.bMT(5,4,"tryAgain")," "))}function pn(e,t){if(1&e&&(c.qex(0),c.j41(1,"div",8)(2,"div",9),c.nrm(3,"bit-svg",10),c.k0s(),c.j41(4,"p",11),c.EFF(5),c.nI1(6,"i18n"),c.k0s(),c.DNE(7,hn,5,6,"div",1),c.k0s(),c.DNE(8,An,6,6,"bit-callout",12),c.bVm()),2&e){const e=c.XpG(2);c.R7$(3),c.Y8G("content",e.Icons.UserVerificationBiometricsIcon),c.R7$(2),c.JRh(c.bMT(6,4,"verifyWithBiometrics")),c.R7$(2),c.Y8G("ngIf",!e.biometricsVerificationFailed),c.R7$(),c.Y8G("ngIf",e.biometricsVerificationFailed)}}function gn(e,t){if(1&e){const e=c.RV6();c.j41(0,"button",20),c.bIt("click",function(){W.eBV(e);const t=c.XpG(3);return W.Njj(t.activeClientVerificationOption=t.ActiveClientVerificationOption.Biometrics)}),c.EFF(1),c.nI1(2,"i18n"),c.k0s()}2&e&&(c.R7$(),c.SpI(" ",c.bMT(2,1,"useBiometrics")," "))}function vn(e,t){if(1&e){const e=c.RV6();c.j41(0,"button",20),c.bIt("click",function(){W.eBV(e);const t=c.XpG(3);return W.Njj(t.activeClientVerificationOption=t.ActiveClientVerificationOption.Pin)}),c.EFF(1),c.nI1(2,"i18n"),c.k0s()}2&e&&(c.R7$(),c.SpI(" ",c.bMT(2,1,"usePin")," "))}function mn(e,t){if(1&e){const e=c.RV6();c.j41(0,"button",21),c.bIt("click",function(){W.eBV(e);const t=c.XpG(3);return W.Njj(t.activeClientVerificationOption=t.ActiveClientVerificationOption.MasterPassword)}),c.EFF(1),c.nI1(2,"i18n"),c.k0s()}2&e&&(c.R7$(),c.SpI(" ",c.bMT(2,1,"useMasterPassword")," "))}function fn(e,t){if(1&e&&(c.j41(0,"div",16)(1,"p",17),c.EFF(2),c.nI1(3,"i18n"),c.k0s(),c.DNE(4,gn,3,3,"button",18)(5,vn,3,3,"button",18)(6,mn,3,3,"button",19),c.k0s()),2&e){const e=c.XpG(2);c.R7$(2),c.JRh(c.bMT(3,4,"needADifferentMethod")),c.R7$(2),c.Y8G("ngIf",e.userVerificationOptions.client.biometrics&&e.activeClientVerificationOption!==e.ActiveClientVerificationOption.Biometrics),c.R7$(),c.Y8G("ngIf",e.userVerificationOptions.client.pin&&e.activeClientVerificationOption!==e.ActiveClientVerificationOption.Pin),c.R7$(),c.Y8G("ngIf",e.userVerificationOptions.client.masterPassword&&e.activeClientVerificationOption!==e.ActiveClientVerificationOption.MasterPassword)}}function yn(e,t){if(1&e&&(c.qex(0),c.j41(1,"div",2),c.DNE(2,dn,2,1,"ng-container",1)(3,un,10,7,"ng-container",1)(4,pn,9,6,"ng-container",1)(5,fn,7,6,"div",3),c.k0s(),c.bVm()),2&e){const e=c.XpG();c.R7$(2),c.Y8G("ngIf",e.userVerificationOptions.client.masterPassword&&e.activeClientVerificationOption==e.ActiveClientVerificationOption.MasterPassword),c.R7$(),c.Y8G("ngIf",e.userVerificationOptions.client.pin&&e.activeClientVerificationOption==e.ActiveClientVerificationOption.Pin),c.R7$(),c.Y8G("ngIf",e.userVerificationOptions.client.biometrics&&e.activeClientVerificationOption==e.ActiveClientVerificationOption.Biometrics),c.R7$(),c.Y8G("ngIf",e.hasMultipleClientVerificationOptions)}}function bn(e,t){1&e&&c.eu8(0)}function Cn(e,t){if(1&e&&(c.qex(0),c.DNE(1,bn,1,0,"ng-container",4),c.bVm()),2&e){c.XpG(2);const e=c.sdS(3);c.R7$(),c.Y8G("ngTemplateOutlet",e)}}function In(e,t){1&e&&(c.j41(0,"div",24),c.nrm(1,"bit-icon",13),c.nI1(2,"i18n"),c.k0s()),2&e&&(c.R7$(),c.Y8G("ariaLabel",c.bMT(2,1,"loading")))}function wn(e,t){1&e&&(c.j41(0,"span",27),c.nrm(1,"bit-icon",28),c.EFF(2),c.nI1(3,"i18n"),c.k0s()),2&e&&(c.Y8G("@sent",void 0),c.R7$(2),c.SpI(" ",c.bMT(3,2,"codeSent")," "))}function Bn(e,t){if(1&e){const e=c.RV6();c.j41(0,"div",24),c.EFF(1),c.nI1(2,"i18n"),c.j41(3,"p",25)(4,"button",15),c.bIt("click",function(){W.eBV(e);const t=c.XpG(3);return W.Njj(t.requestOTP())}),c.EFF(5),c.nI1(6,"i18n"),c.k0s(),c.DNE(7,wn,4,4,"span",26),c.k0s()()}if(2&e){const e=c.XpG(3);c.R7$(),c.SpI(" ",c.bMT(2,3,"enterVerificationCodeSentToEmail")," "),c.R7$(4),c.SpI(" ",c.bMT(6,5,"resendCode")," "),c.R7$(2),c.Y8G("ngIf",e.sentCode)}}function En(e,t){if(1&e){const e=c.RV6();c.qex(0),c.DNE(1,In,3,3,"div",22)(2,Bn,8,7,"div",22),c.j41(3,"bit-form-field",5)(4,"bit-label"),c.EFF(5),c.nI1(6,"i18n"),c.k0s(),c.j41(7,"input",23),c.bIt("paste",function(t){W.eBV(e);const i=c.XpG(2);return W.Njj(i.onPaste(t))}),c.k0s(),c.j41(8,"bit-hint"),c.EFF(9),c.nI1(10,"i18n"),c.k0s()(),c.bVm()}if(2&e){const e=c.XpG(2);c.R7$(),c.Y8G("ngIf",!e.sentInitialCode),c.R7$(),c.Y8G("ngIf",e.sentInitialCode),c.R7$(3),c.JRh(c.bMT(6,5,"verificationCode")),c.R7$(2),c.Y8G("formControl",e.secret),c.R7$(2),c.JRh(c.bMT(10,7,"confirmIdentity"))}}function Sn(e,t){if(1&e&&(c.qex(0),c.DNE(1,Cn,2,1,"ng-container",1)(2,En,11,9,"ng-container",1),c.bVm()),2&e){const e=c.XpG();c.R7$(),c.Y8G("ngIf",e.userVerificationOptions.server.masterPassword),c.R7$(),c.Y8G("ngIf",e.userVerificationOptions.server.otp)}}function Qn(e,t){if(1&e&&(c.j41(0,"bit-form-field",5)(1,"bit-label"),c.EFF(2),c.nI1(3,"i18n"),c.k0s(),c.nrm(4,"input",29)(5,"button",7),c.j41(6,"bit-hint"),c.EFF(7),c.nI1(8,"i18n"),c.k0s()()),2&e){const e=c.XpG();c.R7$(2),c.JRh(c.bMT(3,3,"masterPass")),c.R7$(2),c.Y8G("formControl",e.secret),c.R7$(3),c.JRh(c.bMT(8,5,"confirmIdentity"))}}class kn{get invalidSecret(){return this._invalidSecret}set invalidSecret(e){this._invalidSecret=e,this.invalidSecretChange.emit(e),e&&this.secret.markAsTouched(),this.secret.updateValueAndValidity({emitEvent:!1})}set activeClientVerificationOption(e){this._activeClientVerificationOptionSubject.next(e)}get activeClientVerificationOption(){return this._activeClientVerificationOptionSubject.getValue()}get hasMultipleClientVerificationOptions(){let e=0;return this.userVerificationOptions.client.masterPassword&&e++,this.userVerificationOptions.client.pin&&e++,this.userVerificationOptions.client.biometrics&&e++,e>=2}getInvalidSecretErrorMessage(){return"server"===this.verificationType?this.userVerificationOptions.server.masterPassword?this.i18nService.t("incorrectPassword"):this.i18nService.t("incorrectCode"):this.activeClientVerificationOption===$i.MasterPassword?this.i18nService.t("incorrectPassword"):this.activeClientVerificationOption===$i.Pin?this.i18nService.t("incorrectPin"):void 0}constructor(e,t){this.userVerificationService=e,this.i18nService=t,this.verificationType="server",this._invalidSecret=!1,this.invalidSecretChange=new W.bkB,this.activeClientVerificationOptionChange=new W.bkB,this.biometricsVerificationResultChange=new W.bkB,this.pasteSubmit=new W.bkB,this.Icons={UserVerificationBiometricsIcon:nn},this.userVerificationOptions={client:{masterPassword:!1,pin:!1,biometrics:!1},server:{masterPassword:!1,otp:!1}},this.ActiveClientVerificationOption=$i,this._activeClientVerificationOptionSubject=new tn.t(null),this.activeClientVerificationOption$=this._activeClientVerificationOptionSubject.asObservable(),this.biometricsVerificationFailed=!1,this.disableRequestOTP=!1,this.sentInitialCode=!1,this.sentCode=!1,this.secret=new y.MJ("",[y.k0.required,()=>{if(this.invalidSecret)return{invalidSecret:{message:this.getInvalidSecretErrorMessage()}}}]),this.destroy$=new C.B,this.requestOTP=()=>ln(this,void 0,void 0,function*(){if(!this.userVerificationOptions.server.masterPassword){this.disableRequestOTP=!0;try{yield this.userVerificationService.requestOTP(),this.sentCode=!0,this.sentInitialCode=!0,setTimeout(()=>{this.sentCode=!1},3e3)}finally{this.disableRequestOTP=!1}}})}ngOnInit(){return ln(this,void 0,void 0,function*(){this.userVerificationOptions=yield this.userVerificationService.getAvailableVerificationOptions(this.verificationType),"client"===this.verificationType?(this.setDefaultActiveClientVerificationOption(),this.setupClientVerificationOptionChangeHandler()):this.userVerificationOptions.server.otp&&this.requestOTP(),this.activeClientVerificationOption!==$i.Biometrics&&this.processSecretChanges(this.secret.value),this.secret.valueChanges.pipe((0,B.Q)(this.destroy$)).subscribe(e=>this.processSecretChanges(e))})}setDefaultActiveClientVerificationOption(){this.userVerificationOptions.client.biometrics?this.activeClientVerificationOption=$i.Biometrics:this.userVerificationOptions.client.pin?this.activeClientVerificationOption=$i.Pin:this.userVerificationOptions.client.masterPassword?this.activeClientVerificationOption=$i.MasterPassword:this.activeClientVerificationOption=$i.None}setupClientVerificationOptionChangeHandler(){this.activeClientVerificationOption$.pipe((0,B.Q)(this.destroy$)).subscribe(e=>{this.handleActiveClientVerificationOptionChange(e)})}handleActiveClientVerificationOptionChange(e){return ln(this,void 0,void 0,function*(){this.activeClientVerificationOptionChange.emit(e),this.secret.setValue(null),this.secret.markAsUntouched(),this.secret.updateValueAndValidity({emitEvent:!1}),"biometrics"===e&&(this.biometricsVerificationFailed=!1,yield this.verifyUserViaBiometrics())})}verifyUserViaBiometrics(){return ln(this,void 0,void 0,function*(){this.biometricsVerificationFailed=!1;const e=yield this.userVerificationService.verifyUser({type:rn.k.Biometrics});this.biometricsVerificationResultChange.emit(e),this.biometricsVerificationFailed=!e})}writeValue(e){this.secret.setValue(e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){}setDisabledState(e){this.disableRequestOTP=e,e?this.secret.disable():this.secret.enable()}processSecretChanges(e){this.invalidSecret=!1,this.activeClientVerificationOption!==$i.Biometrics&&null!=this.onChange&&this.onChange({type:this.determineVerificationWithSecretType(),secret:U.A.isNullOrWhitespace(e)?null:e})}determineVerificationWithSecretType(){return"server"===this.verificationType?this.userVerificationOptions.server.masterPassword?rn.k.MasterPassword:rn.k.OTP:this.userVerificationOptions.client.masterPassword&&this.activeClientVerificationOption===$i.MasterPassword?rn.k.MasterPassword:rn.k.PIN}onPaste(e){var t,i,n;if("server"!==this.verificationType||!this.userVerificationOptions.server.otp)return;const r=null!==(n=null===(i=null===(t=e.clipboardData)||void 0===t?void 0:t.getData("text"))||void 0===i?void 0:i.trim())&&void 0!==n?n:"";r&&(e.preventDefault(),this.secret.setValue(r),this.pasteSubmit.emit())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}kn.ɵfac=function(e){return new(e||kn)(c.rXU(sn.i),c.rXU(_.W))},kn.ɵcmp=c.VBU({type:kn,selectors:[["app-user-verification-form-input"]],inputs:{verificationType:"verificationType",invalidSecret:"invalidSecret"},outputs:{invalidSecretChange:"invalidSecretChange",activeClientVerificationOptionChange:"activeClientVerificationOptionChange",biometricsVerificationResultChange:"biometricsVerificationResultChange",pasteSubmit:"pasteSubmit"},features:[c.Jv_([{provide:y.kq,multi:!0,useExisting:kn}])],decls:4,vars:2,consts:[["masterPasswordFormField",""],[4,"ngIf"],[1,"tw-flex","tw-flex-col"],["class","tw-flex tw-flex-col tw-items-center tw-justify-center tw-mt-2",4,"ngIf"],[4,"ngTemplateOutlet"],["disableMargin",""],["bitInput","","id","pin","type","password","name","pin","appAutofocus","","appInputVerbatim","",3,"formControl"],["type","button","bitIconButton","","bitSuffix","","bitPasswordInputToggle",""],[1,"tw-flex","tw-flex-col","tw-items-center"],[1,"tw-size-16","tw-content-center","tw-mb-4"],[3,"content"],[1,"tw-font-medium","tw-mb-1"],["type","danger",4,"ngIf"],["name","bwi-spinner",1,"bwi-spin",3,"ariaLabel"],["type","danger"],["bitLink","","type","button","linkType","primary",3,"click"],[1,"tw-flex","tw-flex-col","tw-items-center","tw-justify-center","tw-mt-2"],[1,"tw-mb-1"],["type","button","class","tw-mb-1","bitLink","","linkType","primary",3,"click",4,"ngIf"],["type","button","bitLink","","linkType","primary",3,"click",4,"ngIf"],["type","button","bitLink","","linkType","primary",1,"tw-mb-1",3,"click"],["type","button","bitLink","","linkType","primary",3,"click"],["class","tw-mb-6",4,"ngIf"],["bitInput","","type","text","id","verificationCode","name","verificationCode","appInputVerbatim","",3,"paste","formControl"],[1,"tw-mb-6"],[1,"tw-mb-0"],["class","tw-ml-2 tw-text-success","role","alert",4,"ngIf"],["role","alert",1,"tw-ml-2","tw-text-success"],["name","bwi-check-circle"],["bitInput","","id","masterPassword","type","password","name","MasterPasswordHash","appAutofocus","","appInputVerbatim","",3,"formControl"]],template:function(e,t){1&e&&c.DNE(0,yn,6,4,"ng-container",1)(1,Sn,3,2,"ng-container",1)(2,Qn,9,7,"ng-template",null,0,c.C5r),2&e&&(c.Y8G("ngIf","client"===t.verificationType),c.R7$(),c.Y8G("ngIf","server"===t.verificationType))},dependencies:[m.MD,m.bT,m.T3,y.X1,y.me,y.BC,y.l_,n.p,me.B,Lt.q,Y.L,de.j,nt.I,ue.J,he.h,Ae.e,pe.a,N.C,X.Q,ge.s,l.o,A.R,ii.Z,on.k,z.V,ve.g,o.t,_i.j,an.G,p.$],encapsulation:2,data:{animation:[(0,en.hZ)("sent",[(0,en.kY)(":enter",[(0,en.iF)({opacity:0}),(0,en.i0)("100ms",(0,en.iF)({opacity:1}))])])]}});var Rn=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function Fn(e,t){if(1&e&&(c.j41(0,"p",9),c.EFF(1),c.nI1(2,"i18n"),c.k0s()),2&e){const e=c.XpG(2);c.R7$(),c.SpI(" ",c.bMT(2,1,e.dialogOptions.bodyText)," ")}}function Tn(e,t){if(1&e&&(c.j41(0,"bit-callout",10),c.EFF(1),c.nI1(2,"i18n"),c.k0s()),2&e){const e=c.XpG(2);c.Y8G("type",e.dialogOptions.calloutOptions.type),c.R7$(),c.SpI(" ",c.bMT(2,2,e.dialogOptions.calloutOptions.text)," ")}}function Dn(e,t){if(1&e&&(c.qex(0),c.DNE(1,Fn,3,3,"p",7)(2,Tn,3,4,"bit-callout",8),c.bVm()),2&e){const e=c.XpG();c.R7$(),c.Y8G("ngIf",e.dialogOptions.bodyText),c.R7$(),c.Y8G("ngIf",e.dialogOptions.calloutOptions)}}function Pn(e,t){1&e&&(c.qex(0),c.j41(1,"p",9),c.EFF(2),c.nI1(3,"i18n"),c.k0s(),c.bVm()),2&e&&(c.R7$(2),c.SpI(" ",c.bMT(3,1,"verificationRequiredForActionSetPinToContinue")," "))}function Mn(e,t){1&e&&(c.j41(0,"button",13),c.EFF(1),c.nI1(2,"i18n"),c.k0s()),2&e&&(c.R7$(),c.SpI(" ",c.bMT(2,1,"submit")," "))}function xn(e,t){if(1&e&&(c.j41(0,"button",14),c.EFF(1),c.nI1(2,"i18n"),c.k0s()),2&e){const e=c.XpG(3);c.Y8G("buttonType",e.dialogOptions.confirmButtonOptions.type),c.R7$(),c.SpI(" ",c.bMT(2,2,e.dialogOptions.confirmButtonOptions.text)," ")}}function Vn(e,t){if(1&e&&(c.qex(0),c.DNE(1,Mn,3,3,"button",11)(2,xn,3,4,"button",12),c.bVm()),2&e){const e=c.XpG(2);c.R7$(),c.Y8G("ngIf",!e.dialogOptions.confirmButtonOptions),c.R7$(),c.Y8G("ngIf",e.dialogOptions.confirmButtonOptions)}}function Gn(e,t){1&e&&(c.qex(0),c.j41(1,"button",13),c.EFF(2),c.nI1(3,"i18n"),c.k0s(),c.bVm()),2&e&&(c.R7$(2),c.SpI(" ",c.bMT(3,1,"setPin")," "))}function Un(e,t){if(1&e&&(c.qex(0),c.DNE(1,Vn,3,2,"ng-container",3)(2,Gn,4,3,"ng-container",3),c.bVm()),2&e){const e=c.XpG();c.R7$(),c.Y8G("ngIf",e.activeClientVerificationOption!==e.ActiveClientVerificationOption.None),c.R7$(),c.Y8G("ngIf",e.activeClientVerificationOption===e.ActiveClientVerificationOption.None)}}class On{get secret(){return this.verificationForm.controls.secret}constructor(e,t,i,n,r,s,o){this.dialogOptions=e,this.dialogRef=t,this.formBuilder=i,this.userVerificationService=n,this.platformUtilsService=r,this.i18nService=s,this.toastService=o,this.verificationForm=this.formBuilder.group({secret:this.formBuilder.control(null)}),this.invalidSecret=!1,this.ActiveClientVerificationOption=$i,this.submit=()=>Rn(this,void 0,void 0,function*(){if(this.activeClientVerificationOption!==$i.None){if(this.verificationForm.markAllAsTouched(),!this.verificationForm.invalid)try{if("object"==typeof this.dialogOptions.verificationType&&"custom"===this.dialogOptions.verificationType.type){const e=yield this.dialogOptions.verificationType.verificationFn(this.secret.value);return void this.close({userAction:"confirm",verificationSuccess:e})}(yield this.userVerificationService.verifyUser(this.secret.value))?(this.invalidSecret=!1,this.close({userAction:"confirm",verificationSuccess:!0,noAvailableClientVerificationMethods:!1})):(this.invalidSecret=!0,this.activeClientVerificationOption===$i.Pin?this.toastService.showToast({variant:"error",title:this.i18nService.t("error"),message:this.i18nService.t("invalidPin")}):this.toastService.showToast({variant:"error",title:null,message:this.i18nService.t("unexpectedError")}))}catch(e){return this.invalidSecret=!0,void this.toastService.showToast({variant:"error",title:this.i18nService.t("error"),message:this.i18nService.t("userVerificationFailed")})}}else this.close({userAction:"confirm",verificationSuccess:!1,noAvailableClientVerificationMethods:!0})})}static open(e,t){return Rn(this,void 0,void 0,function*(){const i=e.open(On,{data:t}),n=yield(0,I._)(i.closed);return"string"==typeof n||void 0===n?{userAction:"cancel",verificationSuccess:!1}:n})}handleActiveClientVerificationOptionChange(e){this.activeClientVerificationOption=e}handleBiometricsVerificationResultChange(e){e&&this.close({userAction:"confirm",verificationSuccess:!0,noAvailableClientVerificationMethods:!1})}submitFromPaste(){var e;null===(e=this.formGroupDirective)||void 0===e||e.onSubmit(new Event("submit"))}cancel(){this.close({userAction:"cancel",verificationSuccess:!1})}close(e){this.dialogRef.close(e)}}On.ɵfac=function(e){return new(e||On)(c.rXU(s.Qs),c.rXU(oi.ce),c.rXU(y.ok),c.rXU(sn.i),c.rXU(te.y),c.rXU(_.W),c.rXU(H.f))},On.ɵcmp=c.VBU({type:On,selectors:[["ng-component"]],viewQuery:function(e,t){if(1&e&&c.GBs(y.j4,5),2&e){let e;c.mGM(e=c.lsd())&&(t.formGroupDirective=e.first)}},decls:14,vars:15,consts:[["bit-dialog","",3,"formGroup","bitSubmit"],["bitDialogTitle",""],["bitDialogContent",""],[4,"ngIf"],["formControlName","secret",3,"invalidSecretChange","activeClientVerificationOptionChange","biometricsVerificationResultChange","pasteSubmit","invalidSecret","verificationType"],["bitDialogFooter",""],["type","button","bitButton","","bitFormButton","","buttonType","secondary",3,"click"],["bitTypography","body1",4,"ngIf"],[3,"type",4,"ngIf"],["bitTypography","body1"],[3,"type"],["type","submit","bitButton","","bitFormButton","","buttonType","primary",4,"ngIf"],["type","submit","bitButton","","bitFormButton","",3,"buttonType",4,"ngIf"],["type","submit","bitButton","","bitFormButton","","buttonType","primary"],["type","submit","bitButton","","bitFormButton","",3,"buttonType"]],template:function(e,t){1&e&&(c.j41(0,"form",0)(1,"span",1),c.EFF(2),c.nI1(3,"i18n"),c.nI1(4,"i18n"),c.k0s(),c.qex(5,2),c.DNE(6,Dn,3,2,"ng-container",3)(7,Pn,4,3,"ng-container",3),c.j41(8,"app-user-verification-form-input",4),c.mxI("invalidSecretChange",function(e){return c.DH7(t.invalidSecret,e)||(t.invalidSecret=e),e}),c.bIt("activeClientVerificationOptionChange",function(e){return t.handleActiveClientVerificationOptionChange(e)})("biometricsVerificationResultChange",function(e){return t.handleBiometricsVerificationResultChange(e)})("pasteSubmit",function(){return t.submitFromPaste()}),c.k0s(),c.bVm(),c.qex(9,5),c.DNE(10,Un,3,2,"ng-container",3),c.j41(11,"button",6),c.bIt("click",function(){return t.cancel()}),c.EFF(12),c.nI1(13,"i18n"),c.k0s(),c.bVm(),c.k0s()),2&e&&(c.Y8G("formGroup",t.verificationForm)("bitSubmit",t.submit),c.R7$(2),c.SpI(" ",t.dialogOptions.title?c.bMT(3,9,t.dialogOptions.title):c.bMT(4,11,"verificationRequired")),c.R7$(4),c.Y8G("ngIf","client"!==t.dialogOptions.verificationType||"client"===t.dialogOptions.verificationType&&t.activeClientVerificationOption!==t.ActiveClientVerificationOption.None),c.R7$(),c.Y8G("ngIf","client"===t.dialogOptions.verificationType&&t.activeClientVerificationOption===t.ActiveClientVerificationOption.None),c.R7$(),c.R50("invalidSecret",t.invalidSecret),c.Y8G("verificationType","client"===t.dialogOptions.verificationType?"client":"server"),c.R7$(2),c.Y8G("ngIf","client"!==t.dialogOptions.verificationType||"client"===t.dialogOptions.verificationType&&t.activeClientVerificationOption!==t.ActiveClientVerificationOption.Biometrics),c.R7$(2),c.SpI(" ",c.bMT(13,13,"cancel")," "))},dependencies:[m.MD,m.bT,y.X1,y.qT,y.BC,y.cb,y.j4,y.JD,n.p,o.t,d.Q,a.P,ai.m,h.hJ,N.C,oe.$,ae.L,kn,_i.j,an.G,p.$],encapsulation:2});var Nn=i(81441),jn=i(4717),Yn=i(83541);class Xn{}var zn,Ln=i(52057),Wn=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function Kn(e,t){1&e&&(c.j41(0,"div"),c.nrm(1,"bit-icon",2),c.nI1(2,"i18n"),c.EFF(3),c.nI1(4,"i18n"),c.k0s()),2&e&&(c.R7$(),c.Y8G("ariaLabel",c.bMT(2,2,"loading")),c.R7$(2),c.SpI(" ",c.bMT(4,4,"loading")," "))}function Zn(e,t){1&e&&(c.j41(0,"div")(1,"bit-form-field")(2,"bit-label"),c.EFF(3),c.nI1(4,"i18n"),c.k0s(),c.nrm(5,"input",3),c.k0s(),c.j41(6,"div",4)(7,"button",5),c.EFF(8),c.nI1(9,"i18n"),c.k0s()()()),2&e&&(c.R7$(3),c.JRh(c.bMT(4,3,"ssoIdentifier")),c.R7$(4),c.Y8G("block",!0),c.R7$(),c.SpI(" ",c.bMT(9,5,"continue")," "))}class Hn{get identifierFormControl(){return this.formGroup.controls.identifier}constructor(e,t,i,n,r,s,o,a,l,c,d,u,h,A,p,g,v,m,b,C){this.ssoLoginService=e,this.loginStrategyService=t,this.router=i,this.i18nService=n,this.route=r,this.orgDomainApiService=s,this.validationService=o,this.platformUtilsService=a,this.apiService=l,this.cryptoFunctionService=c,this.environmentService=d,this.passwordGenerationService=u,this.logService=h,this.userDecryptionOptionsService=A,this.masterPasswordService=p,this.accountService=g,this.toastService=v,this.ssoComponentService=m,this.loginSuccessHandlerService=b,this.keyConnectorService=C,this.formGroup=new y.gE({identifier:new y.MJ(null,[y.k0.required])}),this.loggingIn=!1,this.submit=()=>Wn(this,void 0,void 0,function*(){var e,t,i;if(this.formGroup.invalid)return;const n=null!=(yield(0,I._)(this.route.queryParams)).identifier;this.identifier=null!==(e=this.identifierFormControl.value)&&void 0!==e?e:"",yield this.ssoLoginService.setOrganizationSsoIdentifier(this.identifier),null===(i=(t=this.ssoComponentService).setDocumentCookies)||void 0===i||i.call(t);try{yield this.submitSso()}catch(r){n?yield this.router.navigate(["/login"]):this.validationService.showError(r)}}),d.globalEnvironment$.pipe((0,f.pQ)()).subscribe(e=>{this.redirectUri=e.getWebVaultUrl()+"/sso-connector.html"});const w=this.platformUtilsService.getClientType();this.isValidSsoClientType(w)&&(this.clientId=w)}ngOnInit(){return Wn(this,void 0,void 0,function*(){var e;const t=yield(0,I._)(this.route.queryParams);if(this.email=null!==(e=t.email)&&void 0!==e?e:yield this.ssoLoginService.getSsoEmail(),this.userCompletedSsoAuthentication(t))yield this.handleTokenRequestForAuthenticatedUser(t);else{if(this.hasParametersFromOtherClientRedirect(t)&&this.initializeFromRedirectFromOtherClient(t),null!=t.identifier)return this.identifierFormControl.setValue(t.identifier),this.loggingIn=!0,void(yield this.submit());yield this.initializeIdentifierFromEmailOrStorage()}})}initializeFromRedirectFromOtherClient(e){var t,i,n,r;this.redirectUri=null!==(t=e.redirectUri)&&void 0!==t?t:"",this.state=null!==(i=e.state)&&void 0!==i?i:"",this.codeChallenge=null!==(n=e.codeChallenge)&&void 0!==n?n:"";const s=null!==(r=e.clientId)&&void 0!==r?r:"";if(!this.isValidSsoClientType(s))throw new Error(`Invalid SSO client type: ${e.clientId}`);this.clientId=s}isValidSsoClientType(e){return[P.sK.Web,P.sK.Browser,P.sK.Desktop,P.sK.Cli].includes(e)}hasParametersFromOtherClientRedirect(e){return null!=e.clientId&&null!=e.redirectUri&&null!=e.state&&null!=e.codeChallenge}handleTokenRequestForAuthenticatedUser(e){return Wn(this,void 0,void 0,function*(){var t,i;const n=yield this.ssoLoginService.getCodeVerifier(),r=yield this.ssoLoginService.getSsoState();if(yield this.ssoLoginService.setCodeVerifier(""),yield this.ssoLoginService.setSsoState(""),null!=e.redirectUri&&(this.redirectUri=e.redirectUri),null!=e.code&&null!=n&&null!=r&&this.verifyStateMatches(r,null!==(t=e.state)&&void 0!==t?t:"")){const t=this.getOrgIdentifierFromState(null!==(i=e.state)&&void 0!==i?i:"");yield this.logIn(e.code,n,t)}})}userCompletedSsoAuthentication(e){return null!=e.code&&null!=e.state}handleGetClaimedDomainByEmailError(e){if(e instanceof M._){const t=e;if(t.statusCode===P.kG.NotFound)return;this.validationService.showError(t)}}submitSso(e,t){return Wn(this,void 0,void 0,function*(){if(null==this.identifier||""===this.identifier)return void this.toastService.showToast({variant:"error",title:this.i18nService.t("ssoValidationFailed"),message:this.i18nService.t("ssoIdentifierRequired")});if(null==this.clientId)throw new Error("Client ID is required");this.initiateSsoFormPromise=this.apiService.preValidateSso(this.identifier);const i=yield this.initiateSsoFormPromise,n=yield this.buildAuthorizeUrl(e,t,i.token);this.platformUtilsService.launchUri(n,{sameWindow:!0})})}buildAuthorizeUrl(e,t,i){return Wn(this,void 0,void 0,function*(){var n,r;let s=this.codeChallenge,o=this.state;const a={type:"password",length:64,uppercase:!0,lowercase:!0,numbers:!0,special:!1};if(null==s){const e=yield this.passwordGenerationService.generatePassword(a),t=yield this.cryptoFunctionService.hash(e,"sha256");s=U.A.fromArrayToUrlB64(t),yield this.ssoLoginService.setCodeVerifier(e)}null==o&&(o=yield this.passwordGenerationService.generatePassword(a)),e&&(o+=`_returnUri='${e}'`),o+=`_identifier=${this.identifier}`,yield this.ssoLoginService.setSsoState(o);let l=(yield(0,I._)(this.environmentService.globalEnvironment$)).getIdentityUrl()+"/connect/authorize?client_id="+this.clientId+"&redirect_uri="+encodeURIComponent(null!==(n=this.redirectUri)&&void 0!==n?n:"")+"&response_type=code&scope=api offline_access&state="+o+"&code_challenge="+s+"&code_challenge_method=S256&response_mode=query&domain_hint="+encodeURIComponent(null!==(r=this.identifier)&&void 0!==r?r:"")+"&ssoToken="+encodeURIComponent(null!=i?i:"");if(t){const e=yield this.apiService.getSsoUserIdentifier();l+=`&user_identifier=${encodeURIComponent(e)}`}return l})}logIn(e,t,i){return Wn(this,void 0,void 0,function*(){var n,r;this.loggingIn=!0;try{const s=null!==(n=this.redirectUri)&&void 0!==n?n:"",o=new T.pS(e,t,s,i,null!==(r=this.email)&&void 0!==r?r:void 0);this.formPromise=this.loginStrategyService.logIn(o);const a=yield this.formPromise;if(a.requiresTwoFactor)return yield this.handleTwoFactorRequired(i);if(yield this.loginSuccessHandlerService.run(a.userId,null),yield this.ssoLoginService.setActiveUserOrganizationSsoIdentifier(i,a.userId),null!=(yield(0,I._)(this.keyConnectorService.requiresDomainConfirmation$(a.userId))))return void(yield this.router.navigate(["confirm-key-connector-domain"]));const l=yield(0,I._)(this.userDecryptionOptionsService.userDecryptionOptionsById$(a.userId));if(!!l.trustedDeviceOption&&(yield this.isTrustedDeviceEncEnabled(l.trustedDeviceOption)))return yield this.handleTrustedDeviceEncryptionEnabled(l);return!l.hasMasterPassword&&void 0===l.keyConnectorOption?yield this.handleChangePasswordRequired(i):yield this.handleSuccessfulLogin()}catch(s){yield this.handleLoginError(s)}})}isTrustedDeviceEncEnabled(e){return Wn(this,void 0,void 0,function*(){return void 0!==e})}handleTwoFactorRequired(e){return Wn(this,void 0,void 0,function*(){yield this.router.navigate(["2fa"],{queryParams:{identifier:e,sso:"true"}})})}handleTrustedDeviceEncryptionEnabled(e){return Wn(this,void 0,void 0,function*(){var t,i,n,r;const s=null===(t=yield(0,I._)(this.accountService.activeAccount$))||void 0===t?void 0:t.id;s&&(!e.hasMasterPassword&&(null===(i=e.trustedDeviceOption)||void 0===i?void 0:i.isTdeOffboarding)?yield this.masterPasswordService.setForceSetPasswordReason(Nn.n.TdeOffboarding,s):!e.hasMasterPassword&&(null===(n=e.trustedDeviceOption)||void 0===n?void 0:n.hasManageResetPasswordPermission)&&(yield this.masterPasswordService.setForceSetPasswordReason(Nn.n.TdeUserWithoutPasswordHasPasswordResetPermission,s)),(null===(r=this.ssoComponentService)||void 0===r?void 0:r.closeWindow)?yield this.ssoComponentService.closeWindow():yield this.router.navigate(["login-initiated"]))})}handleChangePasswordRequired(e){return Wn(this,void 0,void 0,function*(){yield this.router.navigate(["set-initial-password"],{queryParams:{identifier:e}})})}handleSuccessfulLogin(){return Wn(this,void 0,void 0,function*(){yield this.router.navigate(["lock"])})}handleLoginError(e){return Wn(this,void 0,void 0,function*(){this.logService.error(e),e instanceof Error&&"Key Connector error"===e.message?this.toastService.showToast({variant:"error",title:"",message:this.i18nService.t("ssoKeyConnectorError")}):this.toastService.showToast({variant:"error",title:null,message:e.message}),this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,yield this.router.navigate(["/login"])})}getOrgIdentifierFromState(e){if(null==e)return"";const t=e.split("_identifier=");return t.length>1?t[1]:""}verifyStateMatches(e,t){if(null==e)return!1;if(null==t)return!1;const i=e.split("_identifier="),n=t.split("_identifier=");return i[0]===n[0]}initializeIdentifierFromEmailOrStorage(){return Wn(this,void 0,void 0,function*(){if(this.email){this.loggingIn=!0;try{const e=yield this.orgDomainApiService.getVerifiedOrgDomainsByEmail(this.email);if(e.data.length>0)return this.identifierFormControl.setValue(e.data[0].organizationIdentifier),void(yield this.submit())}catch(t){this.handleGetClaimedDomainByEmailError(t)}this.loggingIn=!1}const e=yield this.ssoLoginService.getOrganizationSsoIdentifier();null!=e&&this.identifierFormControl.setValue(e)})}}Hn.ɵfac=function(e){return new(e||Hn)(c.rXU(se._),c.rXU(T.sg),c.rXU(K.Ix),c.rXU(_.W),c.rXU(K.nX),c.rXU(jn.o),c.rXU(ne.B),c.rXU(te.y),c.rXU(Ze.G),c.rXU(Tt.R),c.rXU(x.v),c.rXU(wt.JJ),c.rXU(V.K),c.rXU(T.Ym),c.rXU(Yn.O),c.rXU(Ke.D),c.rXU(H.f),c.rXU(Xn),c.rXU(T.aJ),c.rXU(Ln.K))},Hn.ɵcmp=c.VBU({type:Hn,selectors:[["ng-component"]],decls:3,vars:4,consts:[[1,"tw-container",3,"formGroup","bitSubmit"],[4,"ngIf"],["name","bwi-spinner",1,"bwi-spin",3,"ariaLabel"],["bitInput","","type","text","formControlName","identifier","appAutofocus",""],[1,"tw-flex","tw-gap-2"],["type","submit","bitButton","","bitFormButton","","buttonType","primary",3,"block"]],template:function(e,t){1&e&&(c.j41(0,"form",0),c.DNE(1,Kn,5,6,"div",1)(2,Zn,10,7,"div",1),c.k0s()),2&e&&(c.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit),c.R7$(),c.Y8G("ngIf",t.loggingIn),c.R7$(),c.Y8G("ngIf",!t.loggingIn))},dependencies:[N.C,oe.$,ae.L,o.t,d.Q,j.q,m.MD,m.bT,Y.L,de.j,ue.J,he.h,X.Q,l.o,A.R,z.V,n.p,me.B,y.X1,y.qT,y.me,y.BC,y.cb,y.j4,y.JD,b.iI,p.$],encapsulation:2});class Jn{}!function(e){e[e.DIRECT_LAUNCH=0]="DIRECT_LAUNCH",e[e.SINGLE_ACTION_POPOUT=1]="SINGLE_ACTION_POPOUT"}(zn||(zn={}));class qn{}class $n{shouldCheckForWebAuthnQueryParamResponse(){return!1}determineDuoLaunchAction(){return zn.DIRECT_LAUNCH}}var _n=i(73366),er=i(2073),tr=i(20266),ir=i(36951),nr=i(51111),rr=i(26061),sr=i(87895),or=i(71804),ar=i(68881),lr=i(37380),cr=i(24590);class dr{constructor(){this.tokenFormControl=void 0,this.tokenChange=new W.bkB,this.submitOnPaste=(0,cr.CGW)()}onTokenChange(e){const t=e.target.value||"";this.tokenChange.emit({token:t})}onPaste(e){var t,i,n,r;const s=null!==(n=null===(i=null===(t=e.clipboardData)||void 0===t?void 0:t.getData("text"))||void 0===i?void 0:i.trim())&&void 0!==n?n:"";s&&(e.preventDefault(),null===(r=this.tokenFormControl)||void 0===r||r.setValue(s),this.submitOnPaste.emit())}}dr.ɵfac=function(e){return new(e||dr)},dr.ɵcmp=c.VBU({type:dr,selectors:[["app-two-factor-auth-authenticator"]],inputs:{tokenFormControl:"tokenFormControl"},outputs:{tokenChange:"tokenChange",submitOnPaste:"submitOnPaste"},features:[c.Jv_([])],decls:6,vars:4,consts:[["bitInput","","type","text","appAutofocus","","appInputVerbatim","",3,"keyup","paste","formControl"]],template:function(e,t){1&e&&(c.qex(0),c.j41(1,"bit-form-field")(2,"bit-label"),c.EFF(3),c.nI1(4,"i18n"),c.k0s(),c.j41(5,"input",0),c.bIt("keyup",function(e){return t.onTokenChange(e)})("paste",function(e){return t.onPaste(e)}),c.k0s()(),c.bVm()),2&e&&(c.R7$(3),c.JRh(c.bMT(4,2,"verificationCode")),c.R7$(2),c.Y8G("formControl",t.tokenFormControl))},dependencies:[m.MD,n.p,me.B,Lt.q,a.P,o.t,z.V,Le.E,y.X1,y.me,y.BC,y.l_,Y.L,de.j,ue.J,he.h,N.C,y.YN,p.$],encapsulation:2});class ur{}var hr=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Ar{constructor(e,t,i,n,r){this.i18nService=e,this.platformUtilsService=t,this.toastService=i,this.twoFactorAuthDuoComponentService=n,this.destroyRef=r,this.tokenEmitter=new W.bkB,this.duoFramelessUrl=void 0}ngOnInit(){return hr(this,void 0,void 0,function*(){this.twoFactorAuthDuoComponentService.listenForDuo2faResult$().pipe((0,f.pQ)(this.destroyRef)).subscribe(e=>{this.tokenEmitter.emit(e.token)}),this.duoFramelessUrl=this.providerData.AuthUrl})}launchDuoFrameless(e){return hr(this,void 0,void 0,function*(){var t,i;switch(e){case zn.DIRECT_LAUNCH:yield this.launchDuoFramelessDirectly();break;case zn.SINGLE_ACTION_POPOUT:yield null===(i=(t=this.twoFactorAuthDuoComponentService).openTwoFactorAuthDuoPopout)||void 0===i?void 0:i.call(t)}})}launchDuoFramelessDirectly(){return hr(this,void 0,void 0,function*(){null!==this.duoFramelessUrl&&void 0!==this.duoFramelessUrl?yield this.twoFactorAuthDuoComponentService.launchDuoFrameless(this.duoFramelessUrl):this.toastService.showToast({variant:"error",title:"",message:this.i18nService.t("duoHealthCheckResultsInNullAuthUrlError")})})}}Ar.ɵfac=function(e){return new(e||Ar)(c.rXU(_.W),c.rXU(te.y),c.rXU(H.f),c.rXU(ur),c.rXU(W.abz))},Ar.ɵcmp=c.VBU({type:Ar,selectors:[["app-two-factor-auth-duo"]],inputs:{providerData:"providerData"},outputs:{tokenEmitter:"tokenEmitter"},features:[c.Jv_([])],decls:0,vars:0,template:function(e,t){},dependencies:[m.MD,n.p,a.P,o.t,z.V,Le.E,y.X1,Y.L,N.C,y.YN],encapsulation:2});var pr=i(74199);class gr{constructor(){this.emailSent=!1}static fromJSON(e){return null==e?null:Object.assign(new gr,e)}}class vr{constructor(){this.viewCacheService=(0,W.WQX)(Bt.Z),this.emailCache=this.viewCacheService.signal({key:"two-factor-auth-email-component-cache",initialValue:null,deserializer:gr.fromJSON})}cacheData(e){this.emailCache.set({emailSent:e.emailSent})}clearCachedData(){this.emailCache.set(null)}getCachedData(){return this.emailCache()}}vr.ɵfac=function(e){return new(e||vr)},vr.ɵprov=W.jDH({token:vr,factory:vr.ɵfac});var mr=i(93103),fr=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class yr{constructor(e,t,i,n,r,s,o,a){this.i18nService=e,this.twoFactorService=t,this.loginStrategyService=i,this.platformUtilsService=n,this.logService=r,this.appIdService=s,this.toastService=o,this.cacheService=a,this.tokenFormControl=void 0,this.tokenChange=new W.bkB,this.submitOnPaste=(0,cr.CGW)(),this.twoFactorEmail=void 0,this.emailSent=!1}ngOnInit(){return fr(this,void 0,void 0,function*(){const e=this.cacheService.getCachedData();(null==e?void 0:e.emailSent)&&(this.emailSent=!0);const t=yield this.twoFactorService.getProviders();if(!t||0===t.size)throw new Error("User has no 2FA Providers");const i=t.get(or.R.Email);if(!i)throw new Error("Unable to retrieve email 2FA provider data");this.twoFactorEmail=i.Email,this.emailSent||(yield this.sendEmail(!1))})}onTokenChange(e){const t=e.target.value||"";this.tokenChange.emit({token:t})}onPaste(e){var t,i,n,r;const s=null!==(n=null===(i=null===(t=e.clipboardData)||void 0===t?void 0:t.getData("text"))||void 0===i?void 0:i.trim())&&void 0!==n?n:"";s&&(e.preventDefault(),null===(r=this.tokenFormControl)||void 0===r||r.setValue(s),this.submitOnPaste.emit())}sendEmail(e){return fr(this,void 0,void 0,function*(){var t,i,n,r;if(void 0!==this.emailPromise)return;const s=yield this.loginStrategyService.getEmail();if(null!=s){try{const o=new pr.v;o.email=s,o.masterPasswordHash=null!==(t=yield this.loginStrategyService.getMasterPasswordHash())&&void 0!==t?t:"",o.ssoEmail2FaSessionToken=null!==(i=yield this.loginStrategyService.getSsoEmail2FaSessionToken())&&void 0!==i?i:"",o.deviceIdentifier=yield this.appIdService.getAppId(),o.authRequestAccessCode=null!==(n=yield this.loginStrategyService.getAccessCode())&&void 0!==n?n:"",o.authRequestId=null!==(r=yield this.loginStrategyService.getAuthRequestId())&&void 0!==r?r:"",this.emailPromise=this.twoFactorService.postTwoFactorEmail(o),yield this.emailPromise,this.emailSent=!0,this.cacheService.cacheData({emailSent:this.emailSent}),e&&this.toastService.showToast({variant:"success",title:"",message:this.i18nService.t("verificationCodeEmailSent",this.twoFactorEmail)})}catch(o){this.logService.error(o)}this.emailPromise=void 0}else this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:this.i18nService.t("sessionTimeout")})})}}yr.ɵfac=function(e){return new(e||yr)(c.rXU(_.W),c.rXU(lr.fz),c.rXU(T.sg),c.rXU(te.y),c.rXU(V.K),c.rXU(J.Y),c.rXU(H.f),c.rXU(vr))},yr.ɵcmp=c.VBU({type:yr,selectors:[["app-two-factor-auth-email"]],inputs:{tokenFormControl:"tokenFormControl"},outputs:{tokenChange:"tokenChange",submitOnPaste:"submitOnPaste"},features:[c.Jv_([{provide:vr,useClass:vr}])],decls:9,vars:7,consts:[[1,"!tw-mb-0"],["bitInput","","type","text","appAutofocus","","appInputVerbatim","",3,"keyup","paste","formControl"],[1,"tw-mb-4"],["bitTypography","helper","bitLink","","href","#","appStopClick","",1,"tw-text-main",3,"click"]],template:function(e,t){1&e&&(c.j41(0,"bit-form-field",0)(1,"bit-label"),c.EFF(2),c.nI1(3,"i18n"),c.k0s(),c.j41(4,"input",1),c.bIt("keyup",function(e){return t.onTokenChange(e)})("paste",function(e){return t.onPaste(e)}),c.k0s()(),c.j41(5,"div",2)(6,"a",3),c.bIt("click",function(){return t.sendEmail(!0)}),c.EFF(7),c.nI1(8,"i18n"),c.k0s()()),2&e&&(c.R7$(2),c.JRh(c.bMT(3,3,"verificationCode")),c.R7$(2),c.Y8G("formControl",t.tokenFormControl),c.R7$(3),c.SpI(" ",c.bMT(8,5,"resendCode")," "))},dependencies:[m.MD,n.p,me.B,Lt.q,mr.Y,a.P,o.t,z.V,ve.g,Le.E,rt.r,y.X1,y.me,y.BC,y.l_,Y.L,de.j,ue.J,he.h,N.C,y.YN,p.$],encapsulation:2});class br{constructor(e,t,i,n,r,s,o,a){this.win=e,this.webVaultUrl=t,this.webAuthnNewTab=i,this.platformUtilsService=n,this.i18nService=r,this.successCallback=s,this.errorCallback=o,this.infoCallback=a,this.iframe=null,this.parseFunction=this.parseMessage.bind(this),this.connectorLink=e.document.createElement("a")}init(e){const t=new URLSearchParams({data:this.base64Encode(JSON.stringify(e)),parent:encodeURIComponent(this.win.document.location.href),btnText:encodeURIComponent(this.i18nService.t("readSecurityKey")),btnAwaitingInteractionText:encodeURIComponent(this.i18nService.t("awaitingSecurityKeyInteraction")),v:"1"});this.webAuthnNewTab?(t.append("locale",this.i18nService.translationLocale),this.platformUtilsService.launchUri(`${this.webVaultUrl}/webauthn-fallback-connector.html?${t}`)):(this.connectorLink.href=`${this.webVaultUrl}/webauthn-connector.html?${t}`,this.iframe=this.win.document.getElementById("webauthn_iframe"),this.iframe.allow="publickey-credentials-get "+new URL(this.webVaultUrl).origin,this.iframe.src=this.connectorLink.href,this.win.addEventListener("message",this.parseFunction,!1))}stop(){this.sendMessage("stop")}start(){this.sendMessage("start")}sendMessage(e){this.iframe&&this.iframe.src&&this.iframe.contentWindow&&this.iframe.contentWindow.postMessage(e,this.iframe.src)}base64Encode(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(e,t)=>String.fromCharCode("0x"+t)))}cleanup(){this.win.removeEventListener("message",this.parseFunction,!1)}parseMessage(e){if(!this.validMessage(e))return;const t=e.data.split("|");"success"===t[0]&&this.successCallback?this.successCallback(t[1]):"error"===t[0]&&this.errorCallback?this.errorCallback(t[1]):"info"===t[0]&&this.infoCallback&&this.infoCallback(t[1])}validMessage(e){return null!=e.origin&&""!==e.origin&&e.origin===this.connectorLink.origin&&null!=e.data&&"string"==typeof e.data&&(0===e.data.indexOf("success|")||0===e.data.indexOf("error|")||0===e.data.indexOf("info|"))}}class Cr{}var Ir=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const wr=e=>({"tw-hidden":e});function Br(e,t){1&e&&(c.j41(0,"div",5),c.nrm(1,"bit-icon",6),c.nI1(2,"i18n"),c.k0s()),2&e&&(c.R7$(),c.Y8G("ariaLabel",c.bMT(2,1,"loading")))}function Er(e,t){if(1&e&&(c.j41(0,"div",2),c.DNE(1,Br,3,3,"div",3),c.nrm(2,"iframe",4),c.k0s()),2&e){const e=c.XpG();c.R7$(),c.Y8G("ngIf",!e.webAuthnReady),c.R7$(),c.Y8G("ngClass",c.eq3(2,wr,!e.webAuthnReady))}}function Sr(e,t){if(1&e){const e=c.RV6();c.qex(0),c.j41(1,"button",7),c.bIt("click",function(){W.eBV(e);const t=c.XpG();return W.Njj(t.authWebAuthn())}),c.EFF(2),c.nI1(3,"i18n"),c.k0s(),c.bVm()}2&e&&(c.R7$(),c.Y8G("block",!0),c.R7$(),c.SpI(" ",c.bMT(3,2,"openInNewTab")," "))}class Qr{constructor(e,t,i,n,r,s,o,a,l){this.i18nService=e,this.platformUtilsService=t,this.win=i,this.environmentService=n,this.twoFactorService=r,this.route=s,this.toastService=o,this.twoFactorAuthWebAuthnComponentService=a,this.logService=l,this.webAuthnResultEmitter=new W.bkB,this.webAuthnInNewTabEmitter=new W.bkB,this.webAuthnReady=!1,this.webAuthnNewTab=!1,this.webAuthnSupported=!1,this.webAuthnIframe=void 0,this.webAuthnSupported=this.platformUtilsService.supportsWebAuthn(i),this.webAuthnNewTab=this.twoFactorAuthWebAuthnComponentService.shouldOpenWebAuthnInNewTab()}ngOnInit(){return Ir(this,void 0,void 0,function*(){this.webAuthnInNewTabEmitter.emit(this.webAuthnNewTab),this.webAuthnNewTab&&this.route.snapshot.paramMap.has("webAuthnResponse")?this.submitWebAuthnNewTabResponse():yield this.buildWebAuthnIFrame()})}submitWebAuthnNewTabResponse(){const e=this.route.snapshot.paramMap.get("webAuthnResponse"),t="true"===this.route.snapshot.paramMap.get("remember");null!=e&&this.webAuthnResultEmitter.emit({token:e,remember:t})}buildWebAuthnIFrame(){return Ir(this,void 0,void 0,function*(){if(null!=this.win&&this.webAuthnSupported){const e=(yield(0,I._)(this.environmentService.environment$)).getWebVaultUrl();this.webAuthnIframe=new br(this.win,e,this.webAuthnNewTab,this.platformUtilsService,this.i18nService,e=>{this.webAuthnResultEmitter.emit({token:e})},e=>{this.logService.error("WebAuthn error: ",e),this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:this.i18nService.t("webauthnCancelOrTimeout")})},e=>{"ready"===e&&(this.webAuthnReady=!0)}),this.webAuthnNewTab||setTimeout(()=>Ir(this,void 0,void 0,function*(){yield this.authWebAuthn()}),500)}})}ngOnDestroy(){this.cleanupWebAuthnIframe()}authWebAuthn(){return Ir(this,void 0,void 0,function*(){const e=yield this.twoFactorService.getProviders();if(null==e)return void this.logService.error("No 2FA providers found. Unable to authenticate with WebAuthn.");const t=null==e?void 0:e.get(or.R.WebAuthn);this.webAuthnSupported&&null!=this.webAuthnIframe&&this.webAuthnIframe.init(t)})}cleanupWebAuthnIframe(){null!=this.webAuthnIframe&&(this.webAuthnIframe.stop(),this.webAuthnIframe.cleanup())}}Qr.ɵfac=function(e){return new(e||Qr)(c.rXU(_.W),c.rXU(te.y),c.rXU(er.jf),c.rXU(x.v),c.rXU(lr.fz),c.rXU(K.nX),c.rXU(H.f),c.rXU(Cr),c.rXU(V.K))},Qr.ɵcmp=c.VBU({type:Qr,selectors:[["app-two-factor-auth-webauthn"]],outputs:{webAuthnResultEmitter:"webAuthnResultEmitter",webAuthnInNewTabEmitter:"webAuthnInNewTabEmitter"},features:[c.Jv_([])],decls:2,vars:2,consts:[["id","web-authn-frame","class","tw-mb-3",4,"ngIf"],[4,"ngIf"],["id","web-authn-frame",1,"tw-mb-3"],["class","tw-flex tw-items-center tw-justify-center",4,"ngIf"],["id","webauthn_iframe","sandbox","allow-scripts allow-same-origin",3,"ngClass"],[1,"tw-flex","tw-items-center","tw-justify-center"],["name","bwi-spinner",1,"bwi-spin","bwi-3x",3,"ariaLabel"],["buttonType","primary","bitButton","","type","button","appStopClick","",1,"tw-mb-3",3,"click","block"]],template:function(e,t){1&e&&c.DNE(0,Er,3,4,"div",0)(1,Sr,4,4,"ng-container",1),2&e&&(c.Y8G("ngIf",!t.webAuthnNewTab),c.R7$(),c.Y8G("ngIf",t.webAuthnNewTab))},dependencies:[m.MD,m.YU,m.bT,n.p,mr.Y,a.P,o.t,d.Q,z.V,Le.E,y.X1,Y.L,N.C,y.YN,l.o,A.R,p.$],encapsulation:2});class kr{constructor(){this.tokenFormControl=void 0}}kr.ɵfac=function(e){return new(e||kr)},kr.ɵcmp=c.VBU({type:kr,selectors:[["app-two-factor-auth-yubikey"]],inputs:{tokenFormControl:"tokenFormControl"},features:[c.Jv_([])],decls:5,vars:4,consts:[[1,""],["type","password","bitInput","","appAutofocus","","appInputVerbatim","",3,"formControl"]],template:function(e,t){1&e&&(c.j41(0,"bit-form-field")(1,"bit-label",0),c.EFF(2),c.nI1(3,"i18n"),c.k0s(),c.nrm(4,"input",1),c.k0s()),2&e&&(c.R7$(2),c.JRh(c.bMT(3,2,"verificationCode")),c.R7$(2),c.Y8G("formControl",t.tokenFormControl))},dependencies:[m.MD,n.p,me.B,Lt.q,a.P,o.t,z.V,Le.E,y.X1,y.me,y.BC,y.l_,Y.L,de.j,ue.J,he.h,N.C,y.YN,p.$],encapsulation:2});class Rr{constructor(){this.token=void 0,this.remember=void 0,this.selectedProviderType=void 0}static fromJSON(e){return null==e?null:Object.assign(new Rr,e)}}class Fr{constructor(){this.viewCacheService=(0,W.WQX)(Bt.Z),this.twoFactorAuthComponentCache=this.viewCacheService.signal({key:"two-factor-auth-component-cache",initialValue:null,deserializer:Rr.fromJSON})}cacheData(e){this.twoFactorAuthComponentCache.set({token:e.token,remember:e.remember,selectedProviderType:e.selectedProviderType})}clearCachedData(){this.twoFactorAuthComponentCache.set(null)}getCachedData(){return this.twoFactorAuthComponentCache()}}Fr.ɵfac=function(e){return new(e||Fr)},Fr.ɵprov=W.jDH({token:Fr,factory:Fr.ɵfac});var Tr=i(46730),Dr=i(98403),Pr=i(75556),Mr=i(90300),xr=i(91962),Vr=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function Gr(e,t){if(1&e&&c.nrm(0,"bit-svg",11),2&e){const e=c.XpG(2);c.Y8G("content",e.Icons.TwoFactorAuthAuthenticatorIcon)}}function Ur(e,t){if(1&e&&c.nrm(0,"bit-svg",11),2&e){const e=c.XpG(2);c.Y8G("content",e.Icons.TwoFactorAuthEmailIcon)}}function Or(e,t){if(1&e&&c.nrm(0,"bit-svg",11),2&e){const e=c.XpG(2);c.Y8G("content",e.Icons.TwoFactorAuthDuoIcon)}}function Nr(e,t){if(1&e&&c.nrm(0,"bit-svg",11),2&e){const e=c.XpG(2);c.Y8G("content",e.Icons.TwoFactorAuthYubicoIcon)}}function jr(e,t){if(1&e&&c.nrm(0,"bit-svg",11),2&e){const e=c.XpG(2);c.Y8G("content",e.Icons.TwoFactorAuthDuoIcon)}}function Yr(e,t){if(1&e&&c.nrm(0,"bit-svg",11),2&e){const e=c.XpG(2);c.Y8G("content",e.Icons.TwoFactorAuthWebAuthnIcon)}}function Xr(e,t){if(1&e){const e=c.RV6();c.j41(0,"bit-item",6),c.bIt("click",function(){const t=W.eBV(e).$implicit,i=c.XpG();return W.Njj(i.choose(t))}),c.j41(1,"button",7)(2,"div",8),c.DNE(3,Gr,1,1,"bit-svg",9)(4,Ur,1,1,"bit-svg",9)(5,Or,1,1,"bit-svg",9)(6,Nr,1,1,"bit-svg",9)(7,jr,1,1,"bit-svg",9)(8,Yr,1,1,"bit-svg",9),c.k0s(),c.EFF(9),c.qex(10,10),c.EFF(11),c.bVm(),c.k0s()()}if(2&e){const e=t.$implicit,i=c.XpG();c.R7$(),c.Y8G("truncate",!1),c.R7$(),c.Y8G("ngSwitch",e.type),c.R7$(),c.Y8G("ngSwitchCase",i.TwoFactorProviderType.Authenticator),c.R7$(),c.Y8G("ngSwitchCase",i.TwoFactorProviderType.Email),c.R7$(),c.Y8G("ngSwitchCase",i.TwoFactorProviderType.Duo),c.R7$(),c.Y8G("ngSwitchCase",i.TwoFactorProviderType.Yubikey),c.R7$(),c.Y8G("ngSwitchCase",i.TwoFactorProviderType.OrganizationDuo),c.R7$(),c.Y8G("ngSwitchCase",i.TwoFactorProviderType.WebAuthn),c.R7$(),c.SpI(" ",e.name," "),c.R7$(2),c.SpI(" ",e.description," ")}}class zr{constructor(e,t){this.twoFactorService=e,this.dialogRef=t,this.providers=[],this.TwoFactorProviderType=or.R,this.Icons={TwoFactorAuthAuthenticatorIcon:tr.m,TwoFactorAuthEmailIcon:ir.f,TwoFactorAuthDuoIcon:nr.x,TwoFactorAuthYubicoIcon:Tr.C,TwoFactorAuthWebAuthnIcon:sr.R}}ngOnInit(){return Vr(this,void 0,void 0,function*(){const e=yield this.twoFactorService.getSupportedProviders(window);e.sort((e,t)=>e.sort-t.sort),this.providers=e})}choose(e){return Vr(this,void 0,void 0,function*(){yield this.dialogRef.close({type:e.type})})}static open(e){return e.open(zr)}cancel(){this.dialogRef.close()}}zr.ɵfac=function(e){return new(e||zr)(c.rXU(lr.fz),c.rXU(oi.ce))},zr.ɵcmp=c.VBU({type:zr,selectors:[["app-two-factor-options"]],features:[c.Jv_([])],decls:11,vars:8,consts:[["dialogSize","large",3,"background"],["bitDialogTitle",""],["bitDialogContent",""],[3,"click",4,"ngFor","ngForOf"],["bitDialogFooter",""],["bitButton","","type","button","buttonType","secondary",3,"click"],[3,"click"],["bit-item-content","","type","button",1,"tw-h-auto","md:tw-h-20",3,"truncate"],["slot","start",1,"tw-w-16","md:tw-w-20","tw-mr-2","sm:tw-mr-4",3,"ngSwitch"],[3,"content",4,"ngSwitchCase"],["slot","secondary"],[3,"content"]],template:function(e,t){1&e&&(c.j41(0,"bit-dialog",0)(1,"span",1),c.EFF(2),c.nI1(3,"i18n"),c.k0s(),c.qex(4,2),c.j41(5,"bit-item-group"),c.DNE(6,Xr,12,10,"bit-item",3),c.k0s(),c.bVm(),c.qex(7,4),c.j41(8,"button",5),c.bIt("click",function(){return t.cancel()}),c.EFF(9),c.nI1(10,"i18n"),c.k0s(),c.bVm(),c.k0s()),2&e&&(c.Y8G("background","alt"),c.R7$(2),c.SpI(" ",c.bMT(3,4,"selectTwoStepLoginMethod")," "),c.R7$(4),c.Y8G("ngForOf",t.providers),c.R7$(3),c.SpI(" ",c.bMT(10,6,"cancel")," "))},dependencies:[m.MD,m.Sq,m.ux,m.e1,n.p,a.P,ai.m,h.hJ,o.t,d.Q,Le.E,Dr.k,Pr.J,Mr.g,xr._,ii.Z,on.k,p.$],encapsulation:2});var Lr=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Wr=["continueButton"],Kr=["duoComponent"];function Zr(e,t){1&e&&(c.qex(0),c.j41(1,"div",3),c.nrm(2,"bit-icon",4),c.nI1(3,"i18n"),c.k0s(),c.bVm()),2&e&&(c.R7$(2),c.Y8G("ariaLabel",c.bMT(3,1,"loading")))}function Hr(e,t){if(1&e){const e=c.RV6();c.j41(0,"app-two-factor-auth-email",17),c.bIt("tokenChange",function(t){W.eBV(e);const i=c.XpG(2);return W.Njj(i.saveFormDataWithPartialData(t))})("submitOnPaste",function(){W.eBV(e);const t=c.XpG(2);return W.Njj(null==t.continueButton||null==t.continueButton.nativeElement?null:t.continueButton.nativeElement.click())}),c.k0s()}if(2&e){const e=c.XpG(2);c.Y8G("tokenFormControl",e.tokenFormControl)}}function Jr(e,t){if(1&e){const e=c.RV6();c.j41(0,"app-two-factor-auth-authenticator",17),c.bIt("tokenChange",function(t){W.eBV(e);const i=c.XpG(2);return W.Njj(i.saveFormDataWithPartialData(t))})("submitOnPaste",function(){W.eBV(e);const t=c.XpG(2);return W.Njj(null==t.continueButton||null==t.continueButton.nativeElement?null:t.continueButton.nativeElement.click())}),c.k0s()}if(2&e){const e=c.XpG(2);c.Y8G("tokenFormControl",e.tokenFormControl)}}function qr(e,t){if(1&e&&c.nrm(0,"app-two-factor-auth-yubikey",18),2&e){const e=c.XpG(2);c.Y8G("tokenFormControl",e.tokenFormControl)}}function $r(e,t){if(1&e){const e=c.RV6();c.j41(0,"app-two-factor-auth-duo",19,0),c.bIt("tokenEmitter",function(t){W.eBV(e);const i=c.XpG(2);return W.Njj(i.submit(t))}),c.k0s()}if(2&e){const e=c.XpG(2);c.Y8G("providerData",e.selectedProviderData)}}function _r(e,t){if(1&e){const e=c.RV6();c.j41(0,"bit-form-control",20)(1,"bit-label"),c.EFF(2),c.nI1(3,"i18n"),c.k0s(),c.j41(4,"input",21),c.bIt("change",function(){W.eBV(e);const t=c.XpG(2);return W.Njj(t.onRememberChange())}),c.k0s()()}2&e&&(c.R7$(2),c.JRh(c.bMT(3,1,"dontAskAgainOnThisDeviceFor30Days")))}function es(e,t){if(1&e){const e=c.RV6();c.j41(0,"app-two-factor-auth-webauthn",22),c.bIt("webAuthnResultEmitter",function(t){W.eBV(e);const i=c.XpG(2);return W.Njj(i.submit(t.token,t.remember))})("webAuthnInNewTabEmitter",function(t){W.eBV(e);const i=c.XpG(2);return W.Njj(i.webAuthInNewTab=t)}),c.k0s()}}function ts(e,t){1&e&&(c.qex(0),c.j41(1,"p",23),c.EFF(2),c.nI1(3,"i18n"),c.k0s(),c.j41(4,"p",23),c.EFF(5),c.nI1(6,"i18n"),c.k0s(),c.bVm()),2&e&&(c.R7$(2),c.JRh(c.bMT(3,2,"noTwoStepProviders")),c.R7$(3),c.JRh(c.bMT(6,4,"noTwoStepProviders2")))}function is(e,t){1&e&&(c.j41(0,"button",24,1)(2,"span"),c.EFF(3),c.nI1(4,"i18n"),c.k0s()()),2&e&&(c.R7$(3),c.SpI(" ",c.bMT(4,1,"continueLoggingIn")," "))}function ns(e,t){1&e&&(c.j41(0,"span"),c.EFF(1),c.nI1(2,"i18n"),c.k0s()),2&e&&(c.R7$(),c.SpI(" ",c.bMT(2,1,"launchDuo")))}function rs(e,t){1&e&&(c.j41(0,"span"),c.EFF(1),c.nI1(2,"i18n"),c.k0s()),2&e&&(c.R7$(),c.SpI(" ",c.bMT(2,1,"popoutExtension")))}function ss(e,t){if(1&e){const e=c.RV6();c.j41(0,"button",25),c.bIt("click",function(){W.eBV(e);const t=c.XpG(2);return W.Njj(t.launchDuo())}),c.DNE(1,ns,3,3,"span",2)(2,rs,3,3,"span",2),c.k0s()}if(2&e){const e=c.XpG(2);c.R7$(),c.Y8G("ngIf",e.duoLaunchAction===e.DuoLaunchAction.DIRECT_LAUNCH),c.R7$(),c.Y8G("ngIf",e.duoLaunchAction===e.DuoLaunchAction.SINGLE_ACTION_POPOUT)}}function os(e,t){if(1&e){const e=c.RV6();c.j41(0,"button",16),c.bIt("click",function(){W.eBV(e);const t=c.XpG(2);return W.Njj(t.selectOtherTwoFactorMethod())}),c.j41(1,"span"),c.EFF(2),c.nI1(3,"i18n"),c.k0s()()}2&e&&(c.R7$(2),c.SpI(" ",c.bMT(3,1,"selectAnotherMethod")," "))}function as(e,t){if(1&e){const e=c.RV6();c.qex(0),c.j41(1,"form",5),c.bIt("keydown.enter",function(){W.eBV(e);const t=c.XpG();return W.Njj(t.handleEnterKeyPress())}),c.DNE(2,Hr,1,1,"app-two-factor-auth-email",6)(3,Jr,1,1,"app-two-factor-auth-authenticator",6)(4,qr,1,1,"app-two-factor-auth-yubikey",7)(5,$r,2,1,"app-two-factor-auth-duo",8)(6,_r,5,3,"bit-form-control",9)(7,es,1,0,"app-two-factor-auth-webauthn",10)(8,ts,7,6,"ng-container",2),c.j41(9,"div",11),c.DNE(10,is,5,3,"button",12)(11,ss,3,2,"button",13),c.j41(12,"p",14),c.EFF(13),c.nI1(14,"i18n"),c.k0s(),c.DNE(15,os,4,3,"button",15),c.j41(16,"button",16),c.bIt("click",function(){W.eBV(e);const t=c.XpG();return W.Njj(t.use2faRecoveryCode())}),c.j41(17,"span"),c.EFF(18),c.nI1(19,"i18n"),c.k0s()()()(),c.bVm()}if(2&e){const e=c.XpG();c.R7$(),c.Y8G("bitSubmit",e.submit)("formGroup",e.form),c.R7$(),c.Y8G("ngIf",e.selectedProviderType===e.providerType.Email),c.R7$(),c.Y8G("ngIf",e.selectedProviderType===e.providerType.Authenticator),c.R7$(),c.Y8G("ngIf",e.selectedProviderType===e.providerType.Yubikey),c.R7$(),c.Y8G("ngIf",e.selectedProviderType===e.providerType.OrganizationDuo||e.selectedProviderType===e.providerType.Duo),c.R7$(),c.Y8G("ngIf",!e.hideRememberMe()),c.R7$(),c.Y8G("ngIf",e.selectedProviderType===e.providerType.WebAuthn),c.R7$(),c.Y8G("ngIf",null==e.selectedProviderType),c.R7$(2),c.Y8G("ngIf",e.showContinueButton()),c.R7$(),c.Y8G("ngIf",e.selectedProviderType===e.providerType.Duo||e.selectedProviderType===e.providerType.OrganizationDuo),c.R7$(2),c.JRh(c.bMT(14,14,"or")),c.R7$(2),c.Y8G("ngIf",(null==e.twoFactorProviders?null:e.twoFactorProviders.size)>1),c.R7$(3),c.SpI(" ",c.bMT(19,16,"useYourRecoveryCode")," ")}}class ls{get tokenFormControl(){return this.form.controls.token}get rememberFormControl(){return this.form.controls.remember}constructor(e,t,i,n,r,s,o,a,l,c,d,u,h,A,p,g,v,m,f,b,C,I,w,B){this.loginStrategyService=e,this.router=t,this.i18nService=i,this.platformUtilsService=n,this.dialogService=r,this.activatedRoute=s,this.logService=o,this.twoFactorService=a,this.userDecryptionOptionsService=l,this.ssoLoginService=c,this.masterPasswordService=d,this.accountService=u,this.formBuilder=h,this.win=A,this.toastService=p,this.twoFactorAuthComponentService=g,this.destroyRef=v,this.anonLayoutWrapperDataService=m,this.environmentService=f,this.loginSuccessHandlerService=b,this.twoFactorAuthComponentCacheService=C,this.authService=I,this.keyConnectorService=w,this.loginStrategySessionTimeoutService=B,this.continueButton=void 0,this.loading=!0,this.orgSsoIdentifier=void 0,this.providerType=or.R,this.selectedProviderType=or.R.Authenticator,this.twoFactorProviders=null,this.form=this.formBuilder.group({token:["",{validators:[y.k0.required],updateOn:"submit"}],remember:[!1]}),this.duoLaunchAction=void 0,this.DuoLaunchAction=zn,this.webAuthInNewTab=!1,this.authenticationSessionTimeoutRoute="authentication-timeout",this.submit=(e,t)=>Lr(this,void 0,void 0,function*(){var i;let n;if(void 0!==e){if(""===e||null===e)return void this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:this.i18nService.t("verificationCodeRequired")});n=e}else{if(this.tokenFormControl.markAsTouched(),this.tokenFormControl.markAsDirty(),this.tokenFormControl.updateValueAndValidity(),this.form.invalid)return;const e=this.tokenFormControl.value;if(!e)return;n=e.trim()}const r=null!==(i=null!=t?t:this.rememberFormControl.value)&&void 0!==i&&i;this.twoFactorAuthComponentCacheService.cacheData({token:n,remember:r,selectedProviderType:this.selectedProviderType});try{this.formPromise=this.loginStrategyService.logInTwoFactor(new ar.i(this.selectedProviderType,n,r));const e=yield this.formPromise;this.logService.info("Successfully submitted two factor token"),yield this.handleAuthResult(e)}catch(s){this.logService.error("Error submitting two factor token"),this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:this.i18nService.t("invalidVerificationCode")})}})}ngOnInit(){return Lr(this,void 0,void 0,function*(){var e,t,i;this.orgSsoIdentifier=null!==(e=this.activatedRoute.snapshot.queryParamMap.get("identifier"))&&void 0!==e?e:void 0,this.listenForAuthnSessionTimeout();let n=!1;const r=this.twoFactorAuthComponentCacheService.getCachedData();r&&(r.token&&this.form.patchValue({token:r.token}),void 0!==r.remember&&this.form.patchValue({remember:r.remember}),void 0!==r.selectedProviderType&&(this.selectedProviderType=r.selectedProviderType,n=!0)),n||(this.selectedProviderType=yield this.initializeSelected2faProviderType(),this.twoFactorAuthComponentCacheService.cacheData({selectedProviderType:this.selectedProviderType})),yield this.set2faProvidersAndData(),yield this.setAnonLayoutDataByTwoFactorProviderType(),yield null===(i=(t=this.twoFactorAuthComponentService).extendPopupWidthIfRequired)||void 0===i?void 0:i.call(t,this.selectedProviderType),this.duoLaunchAction=this.twoFactorAuthComponentService.determineDuoLaunchAction(),this.loading=!1})}saveFormDataWithPartialData(e){return Lr(this,void 0,void 0,function*(){var t,i,n,r,s;const o=this.twoFactorAuthComponentCacheService.getCachedData();this.twoFactorAuthComponentCacheService.cacheData({token:null!==(i=null!==(t=null==e?void 0:e.token)&&void 0!==t?t:null==o?void 0:o.token)&&void 0!==i?i:"",remember:null!==(r=null!==(n=null==e?void 0:e.remember)&&void 0!==n?n:null==o?void 0:o.remember)&&void 0!==r&&r,selectedProviderType:null!==(s=null==e?void 0:e.selectedProviderType)&&void 0!==s?s:null==o?void 0:o.selectedProviderType})})}onRememberChange(){return Lr(this,void 0,void 0,function*(){const e=!!this.rememberFormControl.value;yield this.saveFormDataWithPartialData({remember:e})})}initializeSelected2faProviderType(){return Lr(this,void 0,void 0,function*(){const e=this.platformUtilsService.supportsWebAuthn(this.win);if(this.twoFactorAuthComponentService.shouldCheckForWebAuthnQueryParamResponse()&&e){if(this.activatedRoute.snapshot.paramMap.get("webAuthnResponse"))return or.R.WebAuthn}return yield this.twoFactorService.getDefaultProvider(e)})}set2faProvidersAndData(){return Lr(this,void 0,void 0,function*(){var e;if(this.twoFactorProviders=yield this.twoFactorService.getProviders(),void 0!==this.selectedProviderType){const t=null===(e=this.twoFactorProviders)||void 0===e?void 0:e.get(this.selectedProviderType);this.selectedProviderData=t}})}listenForAuthnSessionTimeout(){this.loginStrategySessionTimeoutService.loginSessionTimeout$.pipe((0,f.pQ)(this.destroyRef)).subscribe(()=>Lr(this,void 0,void 0,function*(){try{yield this.router.navigate([this.authenticationSessionTimeoutRoute])}catch(e){this.logService.error(`Failed to navigate to ${this.authenticationSessionTimeoutRoute} route`,e)}}))}selectOtherTwoFactorMethod(){return Lr(this,void 0,void 0,function*(){const e=zr.open(this.dialogService),t=yield(0,_n.s)(e.closed);if(null!=t&&"string"!=typeof t){const e=yield this.twoFactorService.getProviders().then(e=>null==e?void 0:e.get(t.type));this.selectedProviderData=e,this.selectedProviderType=t.type,yield this.setAnonLayoutDataByTwoFactorProviderType(),this.twoFactorAuthComponentCacheService.cacheData({token:"",remember:!1,selectedProviderType:t.type}),this.form.reset(),this.form.updateValueAndValidity()}})}launchDuo(){return Lr(this,void 0,void 0,function*(){null!=this.duoComponent&&void 0!==this.duoLaunchAction&&(yield this.duoComponent.launchDuoFrameless(this.duoLaunchAction))})}handleMigrateEncryptionKey(e){return Lr(this,void 0,void 0,function*(){return!!e.requiresEncryptionKeyMigration&&(this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:this.i18nService.t("legacyEncryptionUnsupported")}),!0)})}setAnonLayoutDataByTwoFactorProviderType(){return Lr(this,void 0,void 0,function*(){switch(this.selectedProviderType){case or.R.Authenticator:this.anonLayoutWrapperDataService.setAnonLayoutWrapperData({pageSubtitle:this.i18nService.t("enterTheCodeFromYourAuthenticatorApp"),pageIcon:tr.m});break;case or.R.Email:this.anonLayoutWrapperDataService.setAnonLayoutWrapperData({pageSubtitle:this.i18nService.t("enterTheCodeSentToYourEmail"),pageIcon:ir.f});break;case or.R.Duo:case or.R.OrganizationDuo:this.anonLayoutWrapperDataService.setAnonLayoutWrapperData({pageSubtitle:this.i18nService.t("duoTwoFactorRequiredPageSubtitle"),pageIcon:nr.x});break;case or.R.Yubikey:this.anonLayoutWrapperDataService.setAnonLayoutWrapperData({pageSubtitle:this.i18nService.t("pressYourYubiKeyToAuthenticate"),pageIcon:rr.s});break;case or.R.WebAuthn:this.anonLayoutWrapperDataService.setAnonLayoutWrapperData({pageSubtitle:this.i18nService.t("followTheStepsBelowToFinishLoggingInWithSecurityKey"),pageIcon:sr.R});break;default:this.logService.error("setAnonLayoutDataByTwoFactorProviderType: Unhandled 2FA provider type",this.selectedProviderType)}})}handleAuthResult(e){return Lr(this,void 0,void 0,function*(){var t,i,n,r,s;if(this.twoFactorAuthComponentCacheService.clearCachedData(),yield this.handleMigrateEncryptionKey(e))return;if(yield this.loginSuccessHandlerService.run(e.userId,e.masterPassword),void 0!==this.orgSsoIdentifier){const e=null===(t=yield(0,I._)(this.accountService.activeAccount$))||void 0===t?void 0:t.id;yield this.ssoLoginService.setActiveUserOrganizationSsoIdentifier(this.orgSsoIdentifier,e)}if(null!=(yield(0,I._)(this.keyConnectorService.requiresDomainConfirmation$(e.userId))))return void(yield this.router.navigate(["confirm-key-connector-domain"]));const o=yield(0,I._)(this.userDecryptionOptionsService.userDecryptionOptionsById$(e.userId));if(yield this.isTrustedDeviceEncEnabled(o.trustedDeviceOption))return yield this.handleTrustedDeviceEncryptionEnabled(e.userId,o);if(!o.hasMasterPassword&&void 0===o.keyConnectorOption)return yield this.handleChangePasswordRequired(this.orgSsoIdentifier);null===(n=(i=this.twoFactorAuthComponentService).reloadOpenWindows)||void 0===n||n.call(i);if(yield null===(s=(r=this.twoFactorAuthComponentService).closeSingleActionPopouts)||void 0===s?void 0:s.call(r))return;const a=yield this.determineDefaultSuccessRoute(e.userId);yield this.router.navigate([a],{queryParams:{identifier:this.orgSsoIdentifier}})})}determineDefaultSuccessRoute(e){return Lr(this,void 0,void 0,function*(){if((yield(0,I._)(this.authService.activeAccountStatus$))===bt.J.Locked)return"lock";const t=yield(0,I._)(this.masterPasswordService.forceSetPasswordReason$(e));return t===Nn.n.WeakMasterPassword||t===Nn.n.AdminForcePasswordReset?"change-password":"vault"})}isTrustedDeviceEncEnabled(e){return Lr(this,void 0,void 0,function*(){return"true"===this.activatedRoute.snapshot.queryParamMap.get("sso")&&void 0!==e})}handleTrustedDeviceEncryptionEnabled(e,t){return Lr(this,void 0,void 0,function*(){var i,n,r,s,o,a;!t.hasMasterPassword&&(null===(i=t.trustedDeviceOption)||void 0===i?void 0:i.isTdeOffboarding)?yield this.masterPasswordService.setForceSetPasswordReason(Nn.n.TdeOffboarding,e):!t.hasMasterPassword&&(null===(n=t.trustedDeviceOption)||void 0===n?void 0:n.hasManageResetPasswordPermission)&&(yield this.masterPasswordService.setForceSetPasswordReason(Nn.n.TdeUserWithoutPasswordHasPasswordResetPermission,e)),null===(s=(r=this.twoFactorAuthComponentService).reloadOpenWindows)||void 0===s||s.call(r);(yield null===(a=(o=this.twoFactorAuthComponentService).closeSingleActionPopouts)||void 0===a?void 0:a.call(o))||(yield this.router.navigate(["login-initiated"]))})}handleChangePasswordRequired(e){return Lr(this,void 0,void 0,function*(){yield this.router.navigate(["set-initial-password"],{queryParams:{identifier:e}})})}showContinueButton(){return null!=this.selectedProviderType&&this.selectedProviderType!==or.R.WebAuthn&&this.selectedProviderType!==or.R.Duo&&this.selectedProviderType!==or.R.OrganizationDuo}hideRememberMe(){return(this.selectedProviderType===or.R.Duo||this.selectedProviderType===or.R.OrganizationDuo)&&this.duoLaunchAction===zn.SINGLE_ACTION_POPOUT||this.selectedProviderType===or.R.WebAuthn&&this.webAuthInNewTab}use2faRecoveryCode(){return Lr(this,void 0,void 0,function*(){const e=(yield(0,I._)(this.environmentService.environment$)).getWebVaultUrl();this.platformUtilsService.launchUri(e+"/#/recover-2fa")})}handleEnterKeyPress(){return Lr(this,void 0,void 0,function*(){var e,t;switch(this.selectedProviderType){case or.R.Authenticator:case or.R.Email:null===(t=null===(e=this.continueButton)||void 0===e?void 0:e.nativeElement)||void 0===t||t.click();break;case or.R.Duo:case or.R.OrganizationDuo:case or.R.WebAuthn:case or.R.Yubikey:break;default:this.logService.error("handleEnterKeyPress: Unhandled 2FA provider type",this.selectedProviderType)}})}ngOnDestroy(){return Lr(this,void 0,void 0,function*(){var e,t;null===(t=(e=this.twoFactorAuthComponentService).removePopupWidthExtension)||void 0===t||t.call(e)})}}ls.ɵfac=function(e){return new(e||ls)(c.rXU(T.sg),c.rXU(K.Ix),c.rXU(_.W),c.rXU(te.y),c.rXU(r.o),c.rXU(K.nX),c.rXU(V.K),c.rXU(lr.fz),c.rXU(T.Ym),c.rXU(se._),c.rXU(Yn.O),c.rXU(Ke.D),c.rXU(y.ok),c.rXU(er.jf),c.rXU(H.f),c.rXU(qn),c.rXU(W.abz),c.rXU(Z.f),c.rXU(x.v),c.rXU(T.aJ),c.rXU(Fr),c.rXU(Ft.u),c.rXU(Ln.K),c.rXU(T.T2))},ls.ɵcmp=c.VBU({type:ls,selectors:[["app-two-factor-auth"]],viewQuery:function(e,t){if(1&e&&c.GBs(Wr,5,c.aKT)(Kr,5),2&e){let e;c.mGM(e=c.lsd())&&(t.continueButton=e.first),c.mGM(e=c.lsd())&&(t.duoComponent=e.first)}},features:[c.Jv_([{provide:Fr}])],decls:2,vars:2,consts:[["duoComponent",""],["continueButton",""],[4,"ngIf"],[1,"tw-flex","tw-items-center","tw-justify-center"],["name","bwi-spinner",1,"bwi-spin","bwi-3x",3,"ariaLabel"],["autocomplete","off",3,"keydown.enter","bitSubmit","formGroup"],[3,"tokenFormControl","tokenChange","submitOnPaste",4,"ngIf"],[3,"tokenFormControl",4,"ngIf"],[3,"providerData","tokenEmitter",4,"ngIf"],["class","vw-remember",4,"ngIf"],[3,"webAuthnResultEmitter","webAuthnInNewTabEmitter",4,"ngIf"],[1,"tw-flex","tw-flex-col","tw-space-y-3"],["type","submit","buttonType","primary","bitButton","","bitFormButton","",4,"ngIf"],["type","button","buttonType","primary","bitButton","",3,"click",4,"ngIf"],[1,"tw-text-center","tw-mb-0"],["type","button","buttonType","secondary","bitButton","","bitFormButton","",3,"click",4,"ngIf"],["type","button","buttonType","secondary","bitButton","","bitFormButton","",3,"click"],[3,"tokenChange","submitOnPaste","tokenFormControl"],[3,"tokenFormControl"],[3,"tokenEmitter","providerData"],[1,"vw-remember"],["type","checkbox","bitCheckbox","","formControlName","remember",3,"change"],[3,"webAuthnResultEmitter","webAuthnInNewTabEmitter"],["bitTypography","body1"],["type","submit","buttonType","primary","bitButton","","bitFormButton",""],["type","button","buttonType","primary","bitButton","",3,"click"]],template:function(e,t){1&e&&c.DNE(0,Zr,4,3,"ng-container",2)(1,as,20,18,"ng-container",2),2&e&&(c.Y8G("ngIf",t.loading),c.R7$(),c.Y8G("ngIf",!t.loading))},dependencies:[m.MD,m.bT,n.p,y.X1,y.qT,y.Zm,y.BC,y.cb,y.j4,y.JD,Y.L,ce.f,de.j,N.C,oe.$,ae.L,j.q,le.P,o.t,d.Q,l.o,A.R,dr,yr,Ar,kr,Qr,p.$],encapsulation:2});var cs=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const ds=(e,t)=>cs(void 0,void 0,void 0,function*(){const e=(0,W.WQX)(T.sg),t=(0,W.WQX)(lr.fz),i=(0,W.WQX)(K.Ix),n=null!==(yield(0,I._)(e.currentAuthType$)),r=yield t.getProviders();return!(!n||null==r)||i.createUrlTree(["/login"])});class us{shouldOpenWebAuthnInNewTab(){return!1}}var hs=i(3633),As=i(65802);class ps{}var gs=i(74621),vs=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function ms(e,t){if(1&e){const e=c.RV6();c.j41(0,"div",6),c.EFF(1),c.nI1(2,"i18n"),c.k0s(),c.j41(3,"button",7),c.bIt("click",function(){W.eBV(e);const t=c.XpG();return W.Njj(t.goBack())}),c.EFF(4),c.nI1(5,"i18n"),c.k0s()}2&e&&(c.R7$(),c.JRh(c.bMT(2,2,"or")),c.R7$(3),c.SpI(" ",c.bMT(5,4,"back")," "))}class fs{constructor(e,t,i,n,r,s,o,a,l,c,d,u){this.router=e,this.formBuilder=t,this.apiService=i,this.loginStrategyService=n,this.logService=r,this.i18nService=s,this.loginSuccessHandlerService=o,this.accountService=a,this.masterPasswordService=l,this.newDeviceVerificationComponentService=c,this.location=d,this.loginStrategySessionTimeoutService=u,this.formGroup=this.formBuilder.group({code:["",{validators:[y.k0.required],updateOn:"change"}]}),this.formGroupDirective=(0,cr.ebz)(y.j4),this.disableRequestOTP=!1,this.destroy$=new C.B,this.authenticationSessionTimeoutRoute="/authentication-timeout",this.showBackButton=!0,this.submit=()=>vs(this,void 0,void 0,function*(){var e,t;const i=this.formGroup.get("code");if(i&&i.value)try{const e=yield this.loginStrategyService.logInNewDeviceVerification(i.value);if(e.requiresTwoFactor)return void(yield this.router.navigate(["/2fa"]));yield this.loginSuccessHandlerService.run(e.userId,e.masterPassword);const t=yield(0,I._)(this.accountService.activeAccount$.pipe(hs.F6)),n=yield(0,I._)(this.masterPasswordService.forceSetPasswordReason$(t));n===Nn.n.WeakMasterPassword||n===Nn.n.AdminForcePasswordReset?yield this.router.navigate(["/change-password"]):yield this.router.navigate(["/vault"])}catch(n){this.logService.error(n);let r=null!==(t=null===(e=null==n?void 0:n.response)||void 0===e?void 0:e.error_description)&&void 0!==t?t:this.i18nService.t("errorOccurred");r.includes("Invalid New Device OTP")&&(r=this.i18nService.t("invalidVerificationCode")),i.setErrors({serverError:{message:r}}),i.markAsTouched()}})}ngOnInit(){return vs(this,void 0,void 0,function*(){this.showBackButton=this.newDeviceVerificationComponentService.showBackButton(),this.loginStrategySessionTimeoutService.loginSessionTimeout$.pipe((0,B.Q)(this.destroy$)).subscribe(()=>{try{this.router.navigate([this.authenticationSessionTimeoutRoute])}catch(e){this.logService.error(`Failed to navigate to ${this.authenticationSessionTimeoutRoute} route`,e)}})})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}resendOTP(){return vs(this,void 0,void 0,function*(){this.disableRequestOTP=!0;try{const e=yield this.loginStrategyService.getEmail(),t=yield this.loginStrategyService.getMasterPasswordHash();if(!e||!t)throw new Error("Missing email or master password hash");yield this.apiService.send("POST","/accounts/resend-new-device-otp",{email:e,masterPasswordHash:t},!1,!1)}catch(e){this.logService.error(e)}finally{this.disableRequestOTP=!1}})}onPaste(e){var t,i,n,r,s;const o=null!==(n=null===(i=null===(t=e.clipboardData)||void 0===t?void 0:t.getData("text"))||void 0===i?void 0:i.trim())&&void 0!==n?n:"";o&&(e.preventDefault(),null===(r=this.formGroup.get("code"))||void 0===r||r.setValue(o),null===(s=this.formGroupDirective())||void 0===s||s.onSubmit(new Event("submit")))}goBack(){this.location.back()}}fs.ɵfac=function(e){return new(e||fs)(c.rXU(K.Ix),c.rXU(y.ok),c.rXU(Ze.G),c.rXU(As.s),c.rXU(V.K),c.rXU(_.W),c.rXU(T.aJ),c.rXU(Ke.D),c.rXU(Yn.L),c.rXU(ps),c.rXU(gs.aZ),c.rXU(T.T2))},fs.ɵcmp=c.VBU({type:fs,selectors:[["app-new-device-verification"]],viewQuery:function(e,t){1&e&&c.wEZ(t.formGroupDirective,y.j4,5),2&e&&c.NyB()},decls:14,vars:15,consts:[[3,"formGroup","bitSubmit"],[1,"!tw-mb-1"],["bitInput","","type","text","id","verificationCode","name","verificationCode","formControlName","code","appInputVerbatim","",3,"paste"],["bitLink","","type","button","linkType","primary",1,"tw-text-sm",3,"click","disabled"],[1,"tw-grid","tw-gap-3","tw-mt-4"],["bitButton","","bitFormButton","","buttonType","primary","type","submit",3,"block","disabled"],[1,"tw-text-center"],["type","button","bitButton","","block","","buttonType","secondary",3,"click"]],template:function(e,t){1&e&&(c.j41(0,"form",0)(1,"bit-form-field",1)(2,"bit-label"),c.EFF(3),c.nI1(4,"i18n"),c.k0s(),c.j41(5,"input",2),c.bIt("paste",function(e){return t.onPaste(e)}),c.k0s()(),c.j41(6,"button",3),c.bIt("click",function(){return t.resendOTP()}),c.EFF(7),c.nI1(8,"i18n"),c.k0s(),c.j41(9,"div",4)(10,"button",5),c.EFF(11),c.nI1(12,"i18n"),c.k0s(),c.nVh(13,ms,6,6),c.k0s()()),2&e&&(c.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit),c.R7$(3),c.JRh(c.bMT(4,9,"verificationCode")),c.R7$(3),c.Y8G("disabled",t.disableRequestOTP),c.R7$(),c.SpI(" ",c.bMT(8,11,"resendCode")," "),c.R7$(3),c.Y8G("block",!0)("disabled",t.formGroup.invalid),c.R7$(),c.SpI(" ",c.bMT(12,13,"continueLoggingIn")," "),c.R7$(2),c.vxM(t.showBackButton?13:-1))},dependencies:[m.MD,y.X1,y.qT,y.me,y.BC,y.cb,y.j4,y.JD,N.C,oe.$,ae.L,n.p,Lt.q,o.t,d.Q,Y.L,de.j,ue.J,he.h,X.Q,z.V,ve.g,p.$],encapsulation:2});class ys{showBackButton(){return!0}}i(91834)},54873(e,t,i){"use strict";i.d(t,{m:()=>n,t:()=>ce});var n,r=i(46758),s=i(11217),o=i(92128),a=i(84210),l=i(68108),c=i(94735),d=i(49355),u=(i(46217),i(78781)),h=i(37579),A=i(47135),p=i(26411),g=i(22191),v=i(55807),m=i(89479),f=i(29029),y=i(26477),b=i(71373),C=i(8916),I=i(65113),w=i(91834),B=i(24590),E=i(14041),S=i(72331),Q=i(5556),k=i(69855),R=i(66316),F=i(50700),T=i(83541),D=i(37115),P=i(18499),M=i(2471),x=i(26657),V=i(38620),G=i(56898),U=i(50352),O=i(90246),N=i(86226),j=i(93199),Y=i(19934),X=i(68466),z=i(43759),L=i(76356),W=i(69896),K=i(36288),Z=i(58384),H=i(54471),J=i(57178),q=i(25740),$=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function _(e,t){if(1&e&&E.nrm(0,"auth-password-callout",13),2&e){const e=E.XpG();E.Y8G("message",e.flow===e.InputPasswordFlow.ChangePasswordDelegation?"changePasswordDelegationMasterPasswordPolicyInEffect":"masterPasswordPolicyInEffect")("policy",e.masterPasswordPolicyOptions)}}function ee(e,t){if(1&e){const e=E.RV6();E.j41(0,"bit-form-field")(1,"bit-label"),E.EFF(2),E.nI1(3,"i18n"),E.k0s(),E.nrm(4,"input",14),E.j41(5,"button",8),E.mxI("toggledChange",function(t){s.eBV(e);const i=E.XpG();return E.DH7(i.showPassword,t)||(i.showPassword=t),s.Njj(t)}),E.k0s()()}if(2&e){const e=E.XpG();E.R7$(2),E.JRh(E.bMT(3,2,"currentMasterPass")),E.R7$(3),E.R50("toggled",e.showPassword)}}function te(e,t){if(1&e){const e=E.RV6();E.j41(0,"button",15),E.nI1(1,"i18n"),E.bIt("click",function(){s.eBV(e);const t=E.XpG();return s.Njj(t.generatePassword())}),E.k0s()}2&e&&E.Y8G("label",E.bMT(1,1,"generatePassword"))}function ie(e,t){if(1&e){const e=E.RV6();E.j41(0,"button",16),E.nI1(1,"i18n"),E.bIt("click",function(){s.eBV(e);const t=E.XpG();return s.Njj(t.copy())}),E.k0s()}2&e&&E.Y8G("label",E.mNQ(E.bMT(1,2,"copyPassword")))}function ne(e,t){if(1&e&&(E.j41(0,"bit-hint")(1,"span",17),E.EFF(2),E.nI1(3,"i18n"),E.k0s(),E.EFF(4),E.nI1(5,"i18n"),E.k0s()),2&e){const e=E.XpG();E.R7$(2),E.SpI("",E.bMT(3,3,"important")," "),E.R7$(2),E.Lme(" ",E.bMT(5,5,"masterPassImportant")," ",e.minPasswordLengthMsg,". ")}}function re(e,t){if(1&e&&(E.qex(0),E.j41(1,"bit-form-field",18)(2,"bit-label"),E.EFF(3),E.nI1(4,"i18n"),E.k0s(),E.nrm(5,"input",19),E.j41(6,"bit-hint"),E.EFF(7),E.nI1(8,"i18n"),E.k0s()(),E.j41(9,"bit-form-control"),E.nrm(10,"input",20),E.j41(11,"bit-label"),E.EFF(12),E.nI1(13,"i18n"),E.k0s()(),E.bVm()),2&e){const e=E.XpG();E.R7$(3),E.JRh(E.bMT(4,3,"masterPassHintLabel")),E.R7$(4),E.SpI(" ",E.brH(8,5,"masterPassHintText",e.formGroup.value.newPasswordHint.length.toString(),e.maxHintLength.toString())," "),E.R7$(5),E.JRh(E.bMT(13,9,"checkForBreaches"))}}function se(e,t){if(1&e){const e=E.RV6();E.j41(0,"bit-form-control")(1,"input",21),E.bIt("change",function(){s.eBV(e);const t=E.XpG();return s.Njj(t.rotateUserKeyClicked())}),E.k0s(),E.j41(2,"bit-label"),E.EFF(3),E.nI1(4,"i18n"),E.j41(5,"a",22),E.nI1(6,"i18n"),E.nrm(7,"bit-icon",23),E.k0s()()()}2&e&&(E.R7$(3),E.SpI(" ",E.bMT(4,3,"rotateAccountEncKey")," "),E.R7$(2),E.Y8G("appA11yTitle",E.mNQ(E.bMT(6,5,"impactOfRotatingYourEncryptionKey"))))}function oe(e,t){if(1&e){const e=E.RV6();E.j41(0,"button",27),E.bIt("click",function(){s.eBV(e);const t=E.XpG(2);return s.Njj(t.onSecondaryButtonClick.emit())}),E.EFF(1),E.k0s()}if(2&e){const e=E.XpG(2);E.Y8G("loading",e.loading),E.R7$(),E.SpI(" ",e.secondaryButtonTextStr," ")}}function ae(e,t){if(1&e&&(E.j41(0,"div",24)(1,"button",25),E.EFF(2),E.nI1(3,"i18n"),E.k0s(),E.DNE(4,oe,2,2,"button",26),E.k0s()),2&e){const e=E.XpG();E.Y8G("ngClass",e.inlineButtons?"tw-flex-row":"tw-flex-col"),E.R7$(),E.Y8G("loading",e.loading),E.R7$(),E.SpI(" ",e.primaryButtonTextStr||E.bMT(3,4,"setMasterPassword")," "),E.R7$(2),E.Y8G("ngIf",e.secondaryButtonText)}}function le(e,t){if(1&e&&E.nrm(0,"bit-error-summary",28),2&e){const e=E.XpG();E.Y8G("formGroup",e.formGroup)}}!function(e){e[e.SetInitialPasswordAccountRegistration=0]="SetInitialPasswordAccountRegistration",e[e.SetInitialPasswordAuthedUser=1]="SetInitialPasswordAuthedUser",e[e.ChangePassword=2]="ChangePassword",e[e.ChangePasswordWithOptionalUserKeyRotation=3]="ChangePasswordWithOptionalUserKeyRotation",e[e.ChangePasswordDelegation=4]="ChangePasswordDelegation"}(n||(n={}));class ce{get minPasswordLengthMsg(){return null!=this.masterPasswordPolicyOptions&&this.masterPasswordPolicyOptions.minLength>0?this.i18nService.t("characterMinimum",this.masterPasswordPolicyOptions.minLength):this.i18nService.t("characterMinimum",this.minPasswordLength)}constructor(e,t,i,r,o,c,d,h,A,p,g,v,m,f){this.auditService=e,this.cipherService=t,this.cdr=i,this.dialogService=r,this.destroyRef=o,this.formBuilder=c,this.i18nService=d,this.kdfConfigService=h,this.masterPasswordService=A,this.passwordGenerationService=p,this.platformUtilsService=g,this.policyService=v,this.toastService=m,this.validationService=f,this.passwordStrengthComponent=void 0,this.onPasswordFormSubmit=new s.bkB,this.onSecondaryButtonClick=new s.bkB,this.isSubmitting=new s.bkB,this.loading=!1,this.inlineButtons=!1,this.primaryButtonTextStr="",this.secondaryButtonTextStr="",this.InputPasswordFlow=n,this.kdfConfig=null,this.minHintLength=0,this.maxHintLength=50,this.minPasswordLength=u.A.minimumPasswordLength,this.minPasswordMsg="",this.passwordStrengthScore=0,this.showErrorSummary=!1,this.showPassword=!1,this.formGroup=this.formBuilder.nonNullable.group({newPassword:this.formBuilder.nonNullable.control("",[a.k0.required,a.k0.minLength(this.minPasswordLength)]),newPasswordConfirm:this.formBuilder.nonNullable.control("",a.k0.required)},{validators:[(0,w.R)(w.l.InputsShouldMatch,"newPassword","newPasswordConfirm",this.i18nService.t("masterPassDoesntMatch"))]}),this.submit=()=>$(this,void 0,void 0,function*(){var e,t,i,r,s,o,a;try{if(this.isSubmitting.emit(!0),this.verifyFlow(),this.formGroup.markAllAsTouched(),this.formGroup.invalid)return void(this.showErrorSummary=!0);const c=null!==(t=null===(e=this.formGroup.controls.currentPassword)||void 0===e?void 0:e.value)&&void 0!==t?t:"",d=this.formGroup.controls.newPassword.value,u=null!==(r=null===(i=this.formGroup.controls.newPasswordHint)||void 0===i?void 0:i.value)&&void 0!==r?r:"",h=null===(o=null===(s=this.formGroup.controls.checkForBreaches)||void 0===s?void 0:s.value)||void 0===o||o;if(this.flow===n.ChangePasswordDelegation)return yield this.handleChangePasswordDelegationFlow(d);if(!this.email)throw new Error("Email not found.");if(this.flow===n.SetInitialPasswordAccountRegistration)this.kdfConfig=C.fX;else{if(!this.userId)throw new Error("userId not found.");this.kdfConfig=yield(0,l._)(this.kdfConfigService.getKdfConfig$(this.userId))}if(null==this.kdfConfig)throw new Error("KdfConfig not found.");const A=null!=this.userId?yield(0,l._)(this.masterPasswordService.saltForUser$(this.userId)):this.masterPasswordService.emailToSalt(this.email);if(null==A)throw new Error("Salt not found.");if(!(yield this.verifyNewPassword(d,this.passwordStrengthScore,h)))return;const p={newPassword:d,kdfConfig:this.kdfConfig,salt:A,newPasswordHint:u};return this.flow!==n.ChangePassword&&this.flow!==n.ChangePasswordWithOptionalUserKeyRotation||(p.currentPassword=c),this.flow===n.ChangePasswordWithOptionalUserKeyRotation&&(p.rotateUserKey=null===(a=this.formGroup.controls.rotateUserKey)||void 0===a?void 0:a.value),this.onPasswordFormSubmit.emit(p),p}catch(c){this.validationService.showError(c)}finally{this.isSubmitting.emit(!1)}})}ngOnInit(){this.addFormFieldsIfNecessary(),this.setButtonText(),this.formGroup.controls.newPassword.valueChanges.pipe((0,o.pQ)(this.destroyRef)).subscribe(()=>this.cdr.markForCheck())}addFormFieldsIfNecessary(){this.flow!==n.ChangePasswordDelegation&&(this.formGroup.addControl("newPasswordHint",this.formBuilder.nonNullable.control("",[a.k0.minLength(this.minHintLength),a.k0.maxLength(this.maxHintLength)])),this.formGroup.addValidators([(0,w.R)(w.l.InputsShouldNotMatch,"newPassword","newPasswordHint",this.i18nService.t("hintEqualsPassword"))]),this.formGroup.addControl("checkForBreaches",this.formBuilder.nonNullable.control(!0))),this.flow!==n.ChangePassword&&this.flow!==n.ChangePasswordWithOptionalUserKeyRotation||(this.formGroup.addControl("currentPassword",this.formBuilder.nonNullable.control("",a.k0.required)),this.formGroup.addValidators([(0,w.R)(w.l.InputsShouldNotMatch,"currentPassword","newPassword",this.i18nService.t("yourNewPasswordCannotBeTheSameAsYourCurrentPassword"))])),this.flow===n.ChangePasswordWithOptionalUserKeyRotation&&this.formGroup.addControl("rotateUserKey",this.formBuilder.nonNullable.control(!1))}setButtonText(){var e,t,i,n;this.primaryButtonText&&(this.primaryButtonTextStr=this.i18nService.t(this.primaryButtonText.key,...null!==(t=null===(e=this.primaryButtonText)||void 0===e?void 0:e.placeholders)&&void 0!==t?t:[])),this.secondaryButtonText&&(this.secondaryButtonTextStr=this.i18nService.t(this.secondaryButtonText.key,...null!==(n=null===(i=this.secondaryButtonText)||void 0===i?void 0:i.placeholders)&&void 0!==n?n:[]))}verifyFlow(){if((this.flow===n.SetInitialPasswordAccountRegistration||this.flow===n.ChangePasswordDelegation)&&this.userId)throw new Error("There should be no active account userId passed down in a this flow.");if(this.flow!==n.SetInitialPasswordAccountRegistration&&this.flow!==n.ChangePasswordDelegation&&!this.userId)throw new Error("This flow requires that an active account userId be passed down.");if(this.flow===n.ChangePasswordDelegation&&this.email)throw new Error("There should be no email passed down in this flow.");if(this.flow!==n.ChangePasswordDelegation&&!this.email)throw new Error("This flow requires that an email be passed down.")}handleChangePasswordDelegationFlow(e){return $(this,void 0,void 0,function*(){if(!(yield this.verifyNewPassword(e,this.passwordStrengthScore,!1)))return;const t={newPassword:e};return this.onPasswordFormSubmit.emit(t),t})}verifyNewPassword(e,t,i){return $(this,void 0,void 0,function*(){const n=i&&(yield this.auditService.passwordLeaked(e))>0,r=null!=t&&t<3;if(n&&r){if(!(yield this.dialogService.openSimpleDialog({title:{key:"weakAndExposedMasterPassword"},content:{key:"weakAndBreachedMasterPasswordDesc"},type:"warning"})))return!1}else if(r){if(!(yield this.dialogService.openSimpleDialog({title:{key:"weakMasterPassword"},content:{key:"weakMasterPasswordDesc"},type:"warning"})))return!1}else if(n){if(!(yield this.dialogService.openSimpleDialog({title:{key:"exposedMasterPassword"},content:{key:"exposedMasterPasswordDesc"},type:"warning"})))return!1}return!(null!=this.masterPasswordPolicyOptions&&!this.policyService.evaluateMasterPassword(this.passwordStrengthScore,e,this.masterPasswordPolicyOptions))||(this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:this.i18nService.t("masterPasswordPolicyRequirementsNotMet")}),!1)})}rotateUserKeyClicked(){return $(this,void 0,void 0,function*(){const e=this.formGroup.controls.rotateUserKey;if(null==e?void 0:e.value){if(!this.userId)throw new Error("userId not passed down");const t=yield this.cipherService.getAllDecrypted(this.userId);let i=!1;if(null!=t)for(let e=0;e<t.length;e++)if(null==t[e].organizationId&&t[e].hasOldAttachments){i=!0;break}if(i){return(yield this.dialogService.openSimpleDialog({title:{key:"warning"},content:{key:"oldAttachmentsNeedFixDesc"},acceptButtonText:{key:"learnMore"},cancelButtonText:{key:"close"},type:"warning"}))&&this.platformUtilsService.launchUri("https://bitwarden.com/help/attachments/#add-storage-space"),void e.setValue(!1)}(yield this.dialogService.openSimpleDialog({title:{key:"rotateEncKeyTitle"},content:this.i18nService.t("updateEncryptionKeyWarning")+" "+this.i18nService.t("updateEncryptionKeyAccountExportWarning")+" "+this.i18nService.t("rotateEncKeyConfirmation"),type:"warning"}))||e.setValue(!1)}})}getPasswordStrengthScore(e){this.passwordStrengthScore=e}generatePassword(){return $(this,void 0,void 0,function*(){var e,t;const i=null!==(t=null===(e=yield this.passwordGenerationService.getOptions())||void 0===e?void 0:e[0])&&void 0!==t?t:{};if(this.formGroup.patchValue({newPassword:yield this.passwordGenerationService.generatePassword(i)}),!this.passwordStrengthComponent)throw new Error("PasswordStrengthComponent is not initialized");this.passwordStrengthComponent.updatePasswordStrength(this.formGroup.controls.newPassword.value)})}copy(){const e=this.formGroup.value.newPassword;null!=e&&(this.platformUtilsService.copyToClipboard(e,{window}),this.toastService.showToast({variant:"info",title:"",message:this.i18nService.t("valueCopied",this.i18nService.t("password"))}))}}ce.ɵfac=function(e){return new(e||ce)(E.rXU(S.d),E.rXU(Q.p),E.rXU(B.gRc),E.rXU(R.o),E.rXU(s.abz),E.rXU(a.ok),E.rXU(F.W),E.rXU(C.zZ),E.rXU(T.L),E.rXU(b.JJ),E.rXU(D.y),E.rXU(P.m),E.rXU(k.f),E.rXU(M.B))},ce.ɵcmp=E.VBU({type:ce,selectors:[["auth-input-password"]],viewQuery:function(e,t){if(1&e&&E.GBs(d.k,5),2&e){let e;E.mGM(e=E.lsd())&&(t.passwordStrengthComponent=e.first)}},inputs:{flow:"flow",email:[2,"email","email",e=>null==e?void 0:e.trim().toLowerCase()],userId:"userId",loading:"loading",masterPasswordPolicyOptions:"masterPasswordPolicyOptions",inlineButtons:"inlineButtons",primaryButtonText:"primaryButtonText",secondaryButtonText:"secondaryButtonText"},outputs:{onPasswordFormSubmit:"onPasswordFormSubmit",onSecondaryButtonClick:"onSecondaryButtonClick",isSubmitting:"isSubmitting"},decls:26,vars:27,consts:[[3,"formGroup","bitSubmit"],[3,"message","policy",4,"ngIf"],[4,"ngIf"],[1,"tw-mb-6"],[3,"disableMargin"],["id","input-password-form_new-password","bitInput","","type","password","formControlName","newPassword"],["type","button","bitIconButton","bwi-generate","bitSuffix","",3,"label","click",4,"ngIf"],["type","button","bitSuffix","","bitIconButton","bwi-clone",3,"label","click",4,"ngIf"],["type","button","bitIconButton","","bitSuffix","","bitPasswordInputToggle","",3,"toggledChange","toggled"],[3,"passwordStrengthScore","showText","email","password"],["id","input-password-form_new-password-confirm","bitInput","","type","password","formControlName","newPasswordConfirm"],["class","tw-flex tw-gap-2",3,"ngClass",4,"ngIf"],[3,"formGroup",4,"ngIf"],[3,"message","policy"],["id","input-password-form_current-password","bitInput","","type","password","formControlName","currentPassword"],["type","button","bitIconButton","bwi-generate","bitSuffix","",3,"click","label"],["type","button","bitSuffix","","bitIconButton","bwi-clone",3,"click","label"],[1,"tw-font-medium"],[1,"vw-password-hint"],["id","input-password-form_new-password-hint","bitInput","","formControlName","newPasswordHint"],["id","input-password-form_check-for-breaches","type","checkbox","bitCheckbox","","formControlName","checkForBreaches"],["id","input-password-form_rotate-user-key","type","checkbox","bitCheckbox","","formControlName","rotateUserKey",3,"change"],["bitLink","","href","https://bitwarden.com/help/account-encryption-key/#rotate-your-encryption-key","target","_blank","rel","noreferrer",3,"appA11yTitle"],["name","bwi-question-circle"],[1,"tw-flex","tw-gap-2",3,"ngClass"],["type","submit","bitButton","","bitFormButton","","buttonType","primary",3,"loading"],["type","button","bitButton","","bitFormButton","","buttonType","secondary",3,"loading","click",4,"ngIf"],["type","button","bitButton","","bitFormButton","","buttonType","secondary",3,"click","loading"],[3,"formGroup"]],template:function(e,t){1&e&&(E.j41(0,"form",0),E.DNE(1,_,1,2,"auth-password-callout",1)(2,ee,6,4,"bit-form-field",2),E.j41(3,"div",3)(4,"bit-form-field",4)(5,"bit-label"),E.EFF(6),E.nI1(7,"i18n"),E.nI1(8,"i18n"),E.k0s(),E.nrm(9,"input",5),E.DNE(10,te,2,3,"button",6)(11,ie,2,4,"button",7),E.j41(12,"button",8),E.mxI("toggledChange",function(e){return E.DH7(t.showPassword,e)||(t.showPassword=e),e}),E.k0s(),E.DNE(13,ne,6,7,"bit-hint",2),E.k0s(),E.j41(14,"tools-password-strength",9),E.bIt("passwordStrengthScore",function(e){return t.getPasswordStrengthScore(e)}),E.k0s()(),E.j41(15,"bit-form-field")(16,"bit-label"),E.EFF(17),E.nI1(18,"i18n"),E.nI1(19,"i18n"),E.k0s(),E.nrm(20,"input",10),E.j41(21,"button",8),E.mxI("toggledChange",function(e){return E.DH7(t.showPassword,e)||(t.showPassword=e),e}),E.k0s()(),E.DNE(22,re,14,11,"ng-container",2)(23,se,8,7,"bit-form-control",2)(24,ae,5,6,"div",11)(25,le,1,1,"bit-error-summary",12),E.k0s()),2&e&&(E.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit),E.R7$(),E.Y8G("ngIf",t.masterPasswordPolicyOptions),E.R7$(),E.Y8G("ngIf",t.flow===t.InputPasswordFlow.ChangePassword||t.flow===t.InputPasswordFlow.ChangePasswordWithOptionalUserKeyRotation),E.R7$(2),E.Y8G("disableMargin",!0),E.R7$(2),E.JRh(t.flow===t.InputPasswordFlow.SetInitialPasswordAccountRegistration||t.flow===t.InputPasswordFlow.SetInitialPasswordAuthedUser?E.bMT(7,19,"masterPassword"):E.bMT(8,21,"newMasterPass")),E.R7$(4),E.Y8G("ngIf",t.flow===t.InputPasswordFlow.ChangePasswordDelegation),E.R7$(),E.Y8G("ngIf",t.flow===t.InputPasswordFlow.ChangePasswordDelegation),E.R7$(),E.R50("toggled",t.showPassword),E.R7$(),E.Y8G("ngIf",t.flow!==t.InputPasswordFlow.ChangePasswordDelegation),E.R7$(),E.Y8G("showText",!0)("email",t.email)("password",t.formGroup.controls.newPassword.value),E.R7$(3),E.JRh(t.flow===t.InputPasswordFlow.SetInitialPasswordAccountRegistration||t.flow===t.InputPasswordFlow.SetInitialPasswordAuthedUser?E.bMT(18,23,"confirmMasterPassword"):E.bMT(19,25,"confirmNewMasterPass")),E.R7$(4),E.R50("toggled",t.showPassword),E.R7$(),E.Y8G("ngIf",t.flow!==t.InputPasswordFlow.ChangePasswordDelegation),E.R7$(),E.Y8G("ngIf",t.flow===t.InputPasswordFlow.ChangePasswordWithOptionalUserKeyRotation),E.R7$(),E.Y8G("ngIf",t.flow!==t.InputPasswordFlow.ChangePasswordDelegation),E.R7$(),E.Y8G("ngIf",t.showErrorSummary))},dependencies:[r.MD,r.YU,r.bT,h.C,x.$,V.L,f.t,G.Q,A.q,U.P,p.L,O.f,N.j,j.I,Y.J,X.L,z.h,L.e,W.a,g.Q,K.s,v.o,Z.R,m.x,c.p,H.C,I.R,d.k,a.X1,a.qT,a.me,a.Zm,a.BC,a.cb,a.j4,a.JD,y.V,J.g,q.$],encapsulation:2})},65113(e,t,i){"use strict";i.d(t,{R:()=>m});var n=i(46758),r=i(94735),s=(i(46217),i(80351)),o=i(14041),a=i(50700),l=i(44432),c=i(25740);function d(e,t){if(1&e&&(o.j41(0,"li"),o.EFF(1),o.nI1(2,"i18n"),o.k0s()),2&e){const e=o.XpG(2);o.R7$(),o.SpI(" ",o.i5U(2,1,"policyInEffectMinComplexity",e.getPasswordScoreAlertDisplay())," ")}}function u(e,t){if(1&e&&(o.j41(0,"li"),o.EFF(1),o.nI1(2,"i18n"),o.k0s()),2&e){const e=o.XpG(2);o.R7$(),o.SpI(" ",o.i5U(2,1,"policyInEffectMinLength",null==e.policy?null:e.policy.minLength.toString())," ")}}function h(e,t){1&e&&(o.j41(0,"li"),o.EFF(1),o.nI1(2,"i18n"),o.k0s()),2&e&&(o.R7$(),o.SpI(" ",o.bMT(2,1,"policyInEffectUppercase")," "))}function A(e,t){1&e&&(o.j41(0,"li"),o.EFF(1),o.nI1(2,"i18n"),o.k0s()),2&e&&(o.R7$(),o.SpI(" ",o.bMT(2,1,"policyInEffectLowercase")," "))}function p(e,t){1&e&&(o.j41(0,"li"),o.EFF(1),o.nI1(2,"i18n"),o.k0s()),2&e&&(o.R7$(),o.SpI(" ",o.bMT(2,1,"policyInEffectNumbers")," "))}function g(e,t){1&e&&(o.j41(0,"li"),o.EFF(1),o.nI1(2,"i18n"),o.k0s()),2&e&&(o.R7$(),o.SpI(" ",o.i5U(2,1,"policyInEffectSpecial","!@#$%^&*")," "))}function v(e,t){if(1&e&&(o.j41(0,"ul",1),o.DNE(1,d,3,4,"li",2)(2,u,3,4,"li",2)(3,h,3,3,"li",2)(4,A,3,3,"li",2)(5,p,3,3,"li",2)(6,g,3,4,"li",2),o.k0s()),2&e){const e=o.XpG();o.R7$(),o.Y8G("ngIf",(null==e.policy?null:e.policy.minComplexity)>0),o.R7$(),o.Y8G("ngIf",(null==e.policy?null:e.policy.minLength)>0),o.R7$(),o.Y8G("ngIf",null==e.policy?null:e.policy.requireUpper),o.R7$(),o.Y8G("ngIf",null==e.policy?null:e.policy.requireLower),o.R7$(),o.Y8G("ngIf",null==e.policy?null:e.policy.requireNumbers),o.R7$(),o.Y8G("ngIf",null==e.policy?null:e.policy.requireSpecial)}}class m{constructor(e){this.i18nService=e,this.message="masterPasswordPolicyInEffect"}getPasswordScoreAlertDisplay(){let e;switch(this.policy.minComplexity){case 4:e=this.i18nService.t("strong");break;case 3:e=this.i18nService.t("good");break;default:e=this.i18nService.t("weak")}return e+" ("+this.policy.minComplexity+")"}}m.ɵfac=function(e){return new(e||m)(o.rXU(a.W))},m.ɵcmp=o.VBU({type:m,selectors:[["auth-password-callout"]],inputs:{message:"message",policy:"policy"},decls:4,vars:4,consts:[["class","tw-mb-0 tw-ml-8 tw-ps-0",4,"ngIf"],[1,"tw-mb-0","tw-ml-8","tw-ps-0"],[4,"ngIf"]],template:function(e,t){1&e&&(o.j41(0,"bit-callout"),o.EFF(1),o.nI1(2,"i18n"),o.DNE(3,v,7,6,"ul",0),o.k0s()),2&e&&(o.R7$(),o.SpI(" ",o.bMT(2,2,t.message)," "),o.R7$(2),o.Y8G("ngIf",t.policy))},dependencies:[n.MD,n.bT,r.p,s.j,l.G,c.$],encapsulation:2})},91834(e,t,i){"use strict";i.d(t,{R:()=>s,l:()=>n});var n,r=i(84210);function s(e,t,i,s,o="controlB"){return a=>{if(!(a instanceof r.gE))throw new Error("compareInputs only supports validation at the FormGroup level");const l=a.get(t),c=a.get(i);if(!l||!c)throw new Error("[compareInputs validator] one or both of the specified controls could not be found in the form group");const d="controlA"===o?l:c;if(""===l.value&&""===c.value)return A();const u=l.value===c.value;return e===n.InputsShouldMatch?u?A():h():e===n.InputsShouldNotMatch?u?h():A():null;function h(){return d.setErrors(Object.assign(Object.assign({},d.errors||{}),{compareInputsError:{message:s}})),{compareInputsError:{message:s}}}function A(){const e=null==d?void 0:d.errors;if(null!=e){(null==e?void 0:e.compareInputsError)&&delete e.compareInputsError;const t=0===Object.keys(e).length;d.setErrors(t?null:e)}return null}}}!function(e){e[e.InputsShouldMatch=0]="InputsShouldMatch",e[e.InputsShouldNotMatch=1]="InputsShouldNotMatch"}(n||(n={}))},77312(e,t,i){"use strict";i.d(t,{d:()=>n});class n{}},65802(e,t,i){"use strict";i.d(t,{s:()=>n});class n{}},28990(e,t,i){"use strict";i.d(t,{d8:()=>n.d,xM:()=>y,H8:()=>Ke,XF:()=>c,_l:()=>Je,uU:()=>tt,ve:()=>Re,WY:()=>xe,L7:()=>nt,$c:()=>st,bj:()=>l,FQ:()=>et,pi:()=>D,DS:()=>r,kA:()=>h,CL:()=>Qe,sg:()=>o.s,T2:()=>A,aJ:()=>d,k4:()=>u,F2:()=>m,pS:()=>f,Xc:()=>B,GX:()=>Ue,Ym:()=>a,Gz:()=>b,_p:()=>I,iD:()=>ot});var n=i(77312);class r{}var s,o=i(65802);class a{}class l extends a{}class c{}class d{}class u{}class h{}class A{}!function(e){e[e.Password=0]="Password",e[e.Sso=1]="Sso",e[e.UserApiKey=2]="UserApiKey",e[e.AuthRequest=3]="AuthRequest",e[e.WebAuthn=4]="WebAuthn"}(s||(s={}));var p=i(68881),g=i(97883),v=i(43890);class m{constructor(e,t,i,n,r){this.email=e,this.masterPassword=t,this.twoFactor=i,this.masterPasswordPoliciesFromOrgInvite=n,this.preFetchedPreloginData=r,this.type=s.Password}}class f{constructor(e,t,i,n,r,o){this.code=e,this.codeVerifier=t,this.redirectUrl=i,this.orgId=n,this.email=r,this.twoFactor=o,this.type=s.Sso}}class y{constructor(e,t,i,n,r){this.email=e,this.accessCode=t,this.authRequestId=i,this.decryptedUserKey=n,this.twoFactor=r,this.type=s.AuthRequest}static fromJSON(e){return Object.assign(new y(e.email,e.accessCode,e.authRequestId,null,e.twoFactor?new p.i(e.twoFactor.provider,e.twoFactor.token,e.twoFactor.remember):e.twoFactor),{decryptedUserKey:v.e.fromJSON(e.decryptedUserKey)})}}class b{constructor(e,t,i){this.token=e,this.deviceResponse=t,this.prfKey=i,this.type=s.WebAuthn}static fromJSON(e){return new b(e.token,Object.assign(Object.create(g.c.prototype),e.deviceResponse),v.e.fromJSON(e.prfKey))}}class C{static fromResponse(e){var t;if(null==e)return;const i=new C;return i.keyConnectorUrl=null!==(t=null==e?void 0:e.keyConnectorUrl)&&void 0!==t?t:null,i}static fromJSON(e){if(null!=e)return Object.assign(new C,e)}}class I{static fromResponse(e){if(null==e)return;if(!e.encryptedPrivateKey||!e.encryptedUserKey)return;const t=new I;return t.encryptedPrivateKey=e.encryptedPrivateKey.encryptedString,t.encryptedUserKey=e.encryptedUserKey.encryptedString,t.credentialId=e.credentialId,t.transports=e.transports||[],t}static fromJSON(e){if(null!=e)return Object.assign(new I,e)}}class w{static fromResponse(e){var t,i,n,r;if(null==e)return;const s=new w;return s.hasAdminApproval=null!==(t=null==e?void 0:e.hasAdminApproval)&&void 0!==t&&t,s.hasLoginApprovingDevice=null!==(i=null==e?void 0:e.hasLoginApprovingDevice)&&void 0!==i&&i,s.hasManageResetPasswordPermission=null!==(n=null==e?void 0:e.hasManageResetPasswordPermission)&&void 0!==n&&n,s.isTdeOffboarding=null!==(r=null==e?void 0:e.isTdeOffboarding)&&void 0!==r&&r,s}static fromJSON(e){if(null!=e)return Object.assign(new w,e)}}class B{static fromIdentityTokenResponse(e){if(null==e)throw new Error("User Decryption Options are required for client initialization. Response is nullish.");const t=new B;if(!e.userDecryptionOptions)throw new Error("User Decryption Options are required for client initialization. userDecryptionOptions is missing in response.");{const i=e.userDecryptionOptions;if(t.hasMasterPassword=i.hasMasterPassword,t.trustedDeviceOption=w.fromResponse(i.trustedDeviceOption),t.keyConnectorOption=C.fromResponse(i.keyConnectorOption),i.webAuthnPrfOption){const e=I.fromResponse(i.webAuthnPrfOption);e&&(t.webAuthnPrfOptions=[e])}}return t}static fromJSON(e){const t=Object.assign(new B,e);return t.trustedDeviceOption=w.fromJSON(null==e?void 0:e.trustedDeviceOption),t.keyConnectorOption=C.fromJSON(null==e?void 0:e.keyConnectorOption),(null==e?void 0:e.webAuthnPrfOptions)&&Array.isArray(e.webAuthnPrfOptions)&&(t.webAuthnPrfOptions=e.webAuthnPrfOptions.map(e=>I.fromJSON(e)).filter(e=>void 0!==e)),t}}var E=i(191),S=i(68108),Q=i(84110),k=i(31857),R=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const F=new k.Zs(k.jB,"loginEmail",{deserializer:e=>e}),T=new k.Zs(k.d1,"storedEmail",{deserializer:e=>e});class D{constructor(e,t,i){this.accountService=e,this.authService=t,this.stateProvider=i,this.loginEmailState=this.stateProvider.getGlobal(F),this.storedEmailState=this.stateProvider.getGlobal(T),this.addingAccount$=this.authService.authStatuses$.pipe((0,E.n)(e=>R(this,void 0,void 0,function*(){const t=yield(0,S._)(this.accountService.activeAccount$);return t&&delete e[t.id],Object.values(e).some(e=>e!==Q.J.LoggedOut)}))),this.loginEmail$=this.loginEmailState.state$,this.rememberedEmail$=this.storedEmailState.state$.pipe((0,E.n)(e=>R(this,void 0,void 0,function*(){return(yield(0,S._)(this.addingAccount$))?null:e})))}setLoginEmail(e){return R(this,void 0,void 0,function*(){yield this.loginEmailState.update(t=>e)})}clearLoginEmail(){return R(this,void 0,void 0,function*(){yield this.loginEmailState.update(e=>null)})}setRememberedEmailChoice(e,t){return R(this,void 0,void 0,function*(){t?yield this.storedEmailState.update(t=>e):yield this.storedEmailState.update(e=>null)})}clearRememberedEmail(){return R(this,void 0,void 0,function*(){yield this.storedEmailState.update(e=>null)})}}var P=i(16385),M=i(54291),x=i(6933),V=i(69783),G=i(7861),U=i(67789),O=i(9997),N=i(6912);class j extends N.D{constructor(e,t,i,n,r){super(i,n),this.email=e,this.masterPasswordHash=t,this.twoFactor=i,this.newDeviceOtp=r}toIdentityToken(e){const t=super.toIdentityToken(e);return t.grant_type="password",t.username=this.email,t.password=this.masterPasswordHash,this.newDeviceOtp&&(t.newDeviceOtp=this.newDeviceOtp),t}static fromJSON(e){return Object.assign(Object.create(j.prototype),e,{device:e.device?O.C.fromJSON(e.device):void 0,twoFactor:e.twoFactor?Object.assign(new p.i,e.twoFactor):void 0})}}var Y=i(68711),X=i(6586),z=i(71804),L=i(78781);class W{constructor(){this.twoFactorProviders=null}get requiresTwoFactor(){return null!=this.twoFactorProviders}get requiresSso(){return!L.A.isNullOrWhitespace(this.ssoOrganizationIdentifier)}}var K=i(81441),Z=i(78107),H=i(27790),J=i(62780),q=i(82489),$=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class _{constructor(e,t,i,n,r,s,o,a,l,c,d,u,h,A,p,g,v,m,f){this.accountService=e,this.masterPasswordService=t,this.keyService=i,this.encryptService=n,this.apiService=r,this.tokenService=s,this.appIdService=o,this.platformUtilsService=a,this.messagingService=l,this.logService=c,this.stateService=d,this.twoFactorService=u,this.userDecryptionOptionsService=h,this.billingAccountProfileStateService=A,this.vaultTimeoutSettingsService=p,this.KdfConfigService=g,this.environmentService=v,this.configService=m,this.accountCryptographicStateService=f,this.sessionTimeoutSubject=new U.t(!1),this.sessionTimeout$=this.sessionTimeoutSubject.asObservable()}logInTwoFactor(e){return $(this,void 0,void 0,function*(){var t;const i=this.cache.value;if(!i.tokenRequest)throw new Error("Token request is undefined");i.tokenRequest.setTwoFactor(e),this.cache.next(i);const[n]=yield this.startLogIn();return n.masterPassword=null!==(t=this.cache.value.masterPassword)&&void 0!==t?t:null,n})}startLogIn(){return $(this,void 0,void 0,function*(){yield this.twoFactorService.clearSelectedProvider();const e=this.cache.value.tokenRequest;if(!e)throw new Error("Token request is undefined");const t=yield this.apiService.postIdentityToken(e);if(t instanceof q.x)return[yield this.processTwoFactorResponse(t),t];if(t instanceof J.L)return[yield this.processTokenResponse(t),t];if(t instanceof Z.H)return[yield this.processDeviceVerificationResponse(t),t];if(t instanceof H.u)return[yield this.processSsoRequiredResponse(t),t];throw new Error("Invalid response object.")})}buildDeviceRequest(){return $(this,void 0,void 0,function*(){const e=yield this.appIdService.getAppId();return new O.C(e,this.platformUtilsService)})}buildTwoFactor(e,t){return $(this,void 0,void 0,function*(){if(null!=e)return e;if(t){const e=yield this.tokenService.getTwoFactorToken(t);if(null!=e)return new p.i(z.R.Remember,e,!1)}return new p.i})}saveAccountInformation(e){return $(this,void 0,void 0,function*(){var t,i,n,r;const s=yield this.tokenService.decodeAccessToken(e.accessToken),o=s.sub;if(yield this.accountService.addAccount(o,{name:s.name,email:null!==(t=s.email)&&void 0!==t?t:"",emailVerified:null!==(i=s.email_verified)&&void 0!==i&&i,creationDate:void 0}),yield this.environmentService.seedUserEnvironment(o),yield this.accountService.switchAccount(o),yield this.verifyAccountAdded(o),yield this.userDecryptionOptionsService.setUserDecryptionOptionsById(o,B.fromIdentityTokenResponse(e)),null!=(null===(n=e.userDecryptionOptions)||void 0===n?void 0:n.masterPasswordUnlock)){const t=e.userDecryptionOptions.masterPasswordUnlock.toMasterPasswordUnlockData();yield this.masterPasswordService.setMasterPasswordUnlockData(t,o)}const a=yield(0,S._)(this.vaultTimeoutSettingsService.getVaultTimeoutActionByUserId$(o)),l=yield(0,S._)(this.vaultTimeoutSettingsService.getVaultTimeoutByUserId$(o));return yield this.tokenService.setTokens(e.accessToken,a,l,e.refreshToken),yield this.KdfConfigService.setKdfConfig(o,e.kdfConfig),yield this.billingAccountProfileStateService.setHasPremium(null!==(r=s.premium)&&void 0!==r&&r,!1,o),o})}processTokenResponse(e){return $(this,void 0,void 0,function*(){var t;const i=new W;if(this.encryptionKeyMigrationRequired(e))return i.requiresEncryptionKeyMigration=!0,i;const n=yield this.saveAccountInformation(e);if(i.userId=n,null!=e.twoFactorToken){const t=yield this.tokenService.getEmail();yield this.tokenService.setTwoFactorToken(t,e.twoFactorToken)}return yield this.setMasterKey(e,n),yield this.setAccountCryptographicState(e,n),yield this.setUserKey(e,n),yield this.processForceSetPasswordReason(e.forcePasswordReset,n),this.messagingService.send("loggedIn"),i.masterPassword=null!==(t=this.cache.value.masterPassword)&&void 0!==t?t:null,i})}encryptionKeyMigrationRequired(e){return!1}processForceSetPasswordReason(e,t){return $(this,void 0,void 0,function*(){return!!e&&(yield this.masterPasswordService.setForceSetPasswordReason(K.n.AdminForcePasswordReset,t),!0)})}processTwoFactorResponse(e){return $(this,void 0,void 0,function*(){var t;yield this.clearTwoFactorToken();const i=new W;return i.twoFactorProviders=e.twoFactorProviders2,yield this.twoFactorService.setProviders(e),i.ssoEmail2FaSessionToken=e.ssoEmail2faSessionToken,i.email=null!==(t=e.email)&&void 0!==t?t:"",i})}clearTwoFactorToken(){return $(this,void 0,void 0,function*(){const e=this.cache.value.userEnteredEmail;e&&(yield this.tokenService.clearTwoFactorToken(e))})}verifyAccountAdded(e){return $(this,void 0,void 0,function*(){yield(0,S._)(this.accountService.activeAccount$.pipe((0,Y.p)(t=>(null==t?void 0:t.id)===e),(0,X.w)({first:1e3,with:()=>{throw new Error("Expected user never made active user after initialization.")}})))})}processDeviceVerificationResponse(e){return $(this,void 0,void 0,function*(){const e=new W;return e.requiresDeviceVerification=!0,e})}processSsoRequiredResponse(e){return $(this,void 0,void 0,function*(){const t=new W;return t.ssoOrganizationIdentifier=e.ssoOrganizationIdentifier,t})}}var ee=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class te{static fromJSON(e){return Object.assign(new te,e,{tokenRequest:j.fromJSON(e.tokenRequest),authRequestCredentials:y.fromJSON(e.authRequestCredentials)})}}class ie extends _{constructor(e,t,...i){super(...i),this.deviceTrustService=t,this.cache=new U.t(e),this.email$=this.cache.pipe((0,V.T)(e=>e.tokenRequest.email)),this.accessCode$=this.cache.pipe((0,V.T)(e=>e.authRequestCredentials.accessCode)),this.authRequestId$=this.cache.pipe((0,V.T)(e=>e.authRequestCredentials.authRequestId))}logIn(e){return ee(this,void 0,void 0,function*(){const t=new te;t.tokenRequest=new j(e.email,e.accessCode,yield this.buildTwoFactor(e.twoFactor,e.email),yield this.buildDeviceRequest()),t.tokenRequest.setAuthRequestAccessCode(e.authRequestId),t.authRequestCredentials=e,this.cache.next(t);const[i]=yield this.startLogIn();return i})}logInTwoFactor(e){const t=Object.create(null,{logInTwoFactor:{get:()=>super.logInTwoFactor}});return ee(this,void 0,void 0,function*(){const i=this.cache.value;return this.cache.next(i),t.logInTwoFactor.call(this,e)})}setMasterKey(e,t){return ee(this,void 0,void 0,function*(){})}setUserKey(e,t){return ee(this,void 0,void 0,function*(){const i=this.cache.value.authRequestCredentials;yield this.masterPasswordService.setMasterKeyEncryptedUserKey(e.key,t),yield this.keyService.setUserKey(i.decryptedUserKey,t),yield this.deviceTrustService.trustDeviceIfRequired(t)})}setAccountCryptographicState(e,t){return ee(this,void 0,void 0,function*(){yield this.accountCryptographicStateService.setAccountCryptographicState(e.accountKeysResponseModel.toWrappedAccountCryptographicState(),t)})}exportCache(){return{authRequest:this.cache.value}}}var ne=i(46217),re=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class se{constructor(){this.forcePasswordResetReason=K.n.None}static fromJSON(e){return Object.assign(new se,e,{tokenRequest:j.fromJSON(e.tokenRequest),masterKey:v.e.fromJSON(e.masterKey)})}}class oe extends _{constructor(e,t,i,n,r,...s){super(...s),this.passwordStrengthService=t,this.policyService=i,this.passwordPreloginService=n,this.unlockService=r,this.cache=new U.t(e),this.email$=this.cache.pipe((0,V.T)(e=>e.tokenRequest.email)),this.serverMasterKeyHash$=this.cache.pipe((0,V.T)(e=>e.tokenRequest.masterPasswordHash))}logIn(e){return re(this,void 0,void 0,function*(){const{email:t,masterPassword:i,twoFactor:n,preFetchedPreloginData:r}=e,s=new se;s.masterKey=yield this.makePasswordPreloginMasterKey(i,t,r),this.passwordPreloginService.clearCache(),s.masterPassword=i,s.userEnteredEmail=t;const o=yield this.keyService.hashMasterKey(i,s.masterKey);s.tokenRequest=new j(t,o,yield this.buildTwoFactor(n,t),yield this.buildDeviceRequest()),this.cache.next(s);const[a,l]=yield this.startLogIn();return yield this.evaluateMasterPasswordIfRequired(l,e,a),a})}logInTwoFactor(e){const t=Object.create(null,{logInTwoFactor:{get:()=>super.logInTwoFactor}});return re(this,void 0,void 0,function*(){return yield t.logInTwoFactor.call(this,e)})}setMasterKey(e,t){return re(this,void 0,void 0,function*(){})}setUserKey(e,t){return re(this,void 0,void 0,function*(){yield this.unlockService.unlockWithMasterPassword(t,this.cache.value.masterPassword)})}setAccountCryptographicState(e,t){return re(this,void 0,void 0,function*(){yield this.accountCryptographicStateService.setAccountCryptographicState(e.accountKeysResponseModel.toWrappedAccountCryptographicState(),t)})}encryptionKeyMigrationRequired(e){return!e.key}makePasswordPreloginMasterKey(e,t,i){return re(this,void 0,void 0,function*(){if(i)return this.keyService.makeMasterKey(e,t,i.kdfConfig);const n=yield(0,S._)(this.passwordPreloginService.getPreloginData$(t));if(!n)throw new Error("KDF config is required");return this.keyService.makeMasterKey(e,t,n.kdfConfig)})}evaluateMasterPasswordIfRequired(e,t,i){return re(this,void 0,void 0,function*(){if(e instanceof Z.H||e instanceof H.u)return;const n=this.policyService.combineMasterPasswordPolicyOptions(t.masterPasswordPoliciesFromOrgInvite,this.getMasterPasswordPolicyOptionsFromResponse(e));if(!t.masterPasswordPoliciesFromOrgInvite&&!(null==n?void 0:n.enforceOnLogin))return;this.evaluateMasterPassword(t,n)||(e instanceof q.x?this.cache.next(Object.assign(Object.assign({},this.cache.value),{forcePasswordResetReason:K.n.WeakMasterPassword})):yield this.masterPasswordService.setForceSetPasswordReason(K.n.WeakMasterPassword,i.userId))})}getMasterPasswordPolicyOptionsFromResponse(e){return null==e?null:ne.U.fromResponse(e.masterPasswordPolicy)}evaluateMasterPassword({masterPassword:e,email:t},i){var n;const r=null===(n=this.passwordStrengthService.getPasswordStrength(e,t))||void 0===n?void 0:n.score;return this.policyService.evaluateMasterPassword(r,e,i)}exportCache(){return{password:this.cache.value}}logInNewDeviceVerification(e){return re(this,void 0,void 0,function*(){var t;const i=this.cache.value;i.tokenRequest.newDeviceOtp=e,this.cache.next(i);const[n]=yield this.startLogIn();return n.masterPassword=null!==(t=this.cache.value.masterPassword)&&void 0!==t?t:null,n})}processForceSetPasswordReason(e,t){const i=Object.create(null,{processForceSetPasswordReason:{get:()=>super.processForceSetPasswordReason}});return re(this,void 0,void 0,function*(){if(yield i.processForceSetPasswordReason.call(this,e,t))return!1;const n=this.cache.value.forcePasswordResetReason;return n!==K.n.None&&(yield this.masterPasswordService.setForceSetPasswordReason(n,t),!0)})}}class ae extends N.D{constructor(e,t,i,n,r){super(n,r),this.code=e,this.codeVerifier=t,this.redirectUri=i,this.twoFactor=n}toIdentityToken(e){const t=super.toIdentityToken(e);return t.grant_type="authorization_code",t.code=this.code,t.code_verifier=this.codeVerifier,t.redirect_uri=this.redirectUri,t}static fromJSON(e){return Object.assign(Object.create(ae.prototype),e,{device:e.device?O.C.fromJSON(e.device):void 0,twoFactor:e.twoFactor?Object.assign(new p.i,e.twoFactor):void 0})}}var le=i(51151),ce=i(82468),de=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class ue{constructor(){this.unlockServiceForKeyConnectorLogin=!1}static fromJSON(e){return Object.assign(new ue,e,{tokenRequest:ae.fromJSON(e.tokenRequest)})}}class he extends _{constructor(e,t,i,n,r,...s){super(...s),this.keyConnectorService=t,this.unlockService=i,this.deviceTrustService=n,this.authRequestService=r,this.cache=new U.t(e),this.email$=this.cache.pipe((0,V.T)(e=>e.email)),this.orgId$=this.cache.pipe((0,V.T)(e=>e.orgId)),this.ssoEmail2FaSessionToken$=this.cache.pipe((0,V.T)(e=>e.ssoEmail2FaSessionToken))}logIn(e){return de(this,void 0,void 0,function*(){const t=new ue;t.unlockServiceForKeyConnectorLogin=yield this.configService.getFeatureFlag(ce.TO.UnlockKeyConnectorWithSdk),t.orgId=e.orgId,t.userEnteredEmail=e.email;const i=yield this.buildDeviceRequest();this.logService.info("Logging in with appId %s.",i.identifier),t.tokenRequest=new ae(e.code,e.codeVerifier,e.redirectUrl,yield this.buildTwoFactor(e.twoFactor,e.email),i),this.cache.next(t);const[n]=yield this.startLogIn(),r=n.email,s=n.ssoEmail2FaSessionToken;return this.cache.next(Object.assign(Object.assign({},this.cache.value),{email:r,ssoEmail2FaSessionToken:s})),n})}setMasterKey(e,t){return de(this,void 0,void 0,function*(){if(this.shouldSetMasterKeyFromKeyConnector(e)){if(null==e.key)yield this.keyConnectorService.setNewSsoUserKeyConnectorConversionData({kdfConfig:e.kdfConfig,keyConnectorUrl:this.getKeyConnectorUrl(e),organizationId:this.cache.value.orgId},t);else{const i=this.getKeyConnectorUrl(e);this.cache.value.unlockServiceForKeyConnectorLogin||(yield this.keyConnectorService.setMasterKeyFromUrl(i,t))}}})}shouldSetMasterKeyFromKeyConnector(e){var t;const i=null==e?void 0:e.userDecryptionOptions;if(null!=i){const e=i.hasMasterPassword;return null!=(null===(t=i.keyConnectorOption)||void 0===t?void 0:t.keyConnectorUrl)&&!e}}getKeyConnectorUrl(e){var t;const i=null==e?void 0:e.userDecryptionOptions;return null===(t=null==i?void 0:i.keyConnectorOption)||void 0===t?void 0:t.keyConnectorUrl}setUserKey(e,t){return de(this,void 0,void 0,function*(){const i=e.key;i&&(yield this.masterPasswordService.setMasterKeyEncryptedUserKey(i,t));const n=null==e?void 0:e.userDecryptionOptions;if(e.canUnlockWithKeyConnector()&&this.cache.value.unlockServiceForKeyConnectorLogin)yield this.unlockService.unlockWithKeyConnector(t,e.intoKeyConnectorUnlockData());else if(null==n?void 0:n.trustedDeviceOption){this.logService.info("Attempting to set user key with approved admin auth request."),yield this.trySetUserKeyWithApprovedAdminRequestIfExists(t);(yield this.keyService.hasUserKey(t))||(this.logService.info("Attempting to set user key with device key."),yield this.trySetUserKeyWithDeviceKey(e,t))}else null==i||null==this.getKeyConnectorUrl(e)||this.cache.value.unlockServiceForKeyConnectorLogin||(yield this.trySetUserKeyWithMasterKey(t))})}trySetUserKeyWithApprovedAdminRequestIfExists(e){return de(this,void 0,void 0,function*(){const t=yield this.authRequestService.getAdminAuthRequest(e);if(!t)return;let i;try{i=yield this.apiService.getAuthRequest(t.id)}catch(n){return void(n instanceof G._&&n.statusCode===le.kG.NotFound&&(yield this.authRequestService.clearAdminAuthRequest(e)))}(null==i?void 0:i.requestApproved)&&(yield this.authRequestService.setUserKeyAfterDecryptingSharedUserKey(i,t.privateKey,e),(yield this.keyService.hasUserKey(e))&&(yield this.deviceTrustService.trustDeviceIfRequired(e),yield this.authRequestService.clearAdminAuthRequest(e),this.authRequestService.emitAdminLoginApproved()))})}trySetUserKeyWithDeviceKey(e,t){return de(this,void 0,void 0,function*(){var i;const n=null===(i=e.userDecryptionOptions)||void 0===i?void 0:i.trustedDeviceOption;if(!n)return void this.logService.error("Unable to set user key due to missing trustedDeviceOption.");const r=yield this.deviceTrustService.getDeviceKey(t),s=null==n?void 0:n.encryptedPrivateKey,o=null==n?void 0:n.encryptedUserKey;if(!r||!s||!o)return r?s&&o||(yield this.deviceTrustService.recordDeviceTrustLoss()):this.logService.warning("Unable to set user key due to missing device key."),s||this.logService.warning("Unable to set user key due to missing encrypted device private key."),void(o||this.logService.warning("Unable to set user key due to missing encrypted user key."));const a=yield this.deviceTrustService.decryptUserKeyWithDeviceKey(t,s,o,r);a&&(yield this.keyService.setUserKey(a,t))})}trySetUserKeyWithMasterKey(e){return de(this,void 0,void 0,function*(){const t=yield(0,S._)(this.masterPasswordService.masterKey$(e));if(!t)return;const i=yield this.masterPasswordService.decryptUserKeyWithMasterKey(t,e);yield this.keyService.setUserKey(i,e)})}setAccountCryptographicState(e,t){return de(this,void 0,void 0,function*(){e.accountKeysResponseModel&&(yield this.accountCryptographicStateService.setAccountCryptographicState(e.accountKeysResponseModel.toWrappedAccountCryptographicState(),t))})}exportCache(){return{sso:this.cache.value}}processForceSetPasswordReason(e,t){const i=Object.create(null,{processForceSetPasswordReason:{get:()=>super.processForceSetPasswordReason}});return de(this,void 0,void 0,function*(){var n,r,s,o;if(yield i.processForceSetPasswordReason.call(this,e,t))return!1;const a=yield(0,S._)(this.userDecryptionOptionsService.userDecryptionOptionsById$(t));if(!a)return!1;if(null===(n=a.trustedDeviceOption)||void 0===n?void 0:n.isTdeOffboarding)return yield this.masterPasswordService.setForceSetPasswordReason(K.n.TdeOffboarding,t),!0;const l=yield(0,S._)(this.keyService.userEncryptedPrivateKey$(t)),c=yield this.keyService.hasUserKey(t);return a.trustedDeviceOption||a.hasMasterPassword||(null===(r=a.keyConnectorOption)||void 0===r?void 0:r.keyConnectorUrl)||!l||c?!a.hasMasterPassword&&(null===(s=a.trustedDeviceOption)||void 0===s?void 0:s.hasManageResetPasswordPermission)?(yield this.masterPasswordService.setForceSetPasswordReason(K.n.TdeUserWithoutPasswordHasPasswordResetPermission,t),!0):!(a.hasMasterPassword||(null===(o=a.keyConnectorOption)||void 0===o?void 0:o.keyConnectorUrl)||a.trustedDeviceOption)&&(yield this.masterPasswordService.setForceSetPasswordReason(K.n.SsoNewJitProvisionedUser,t),!0):(yield this.masterPasswordService.setForceSetPasswordReason(K.n.TdeOffboardingUntrustedDevice,t),!0)})}}var Ae=i(65485),pe=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class ge{static fromJSON(e){return Object.assign(new ge,e,{tokenRequest:Ae.i.fromJSON(e.tokenRequest)})}}class ve extends _{constructor(e,t,i,...n){super(...n),this.keyConnectorService=t,this.unlockService=i,this.cache=new U.t(e)}logIn(e){return pe(this,void 0,void 0,function*(){const t=new ge;t.tokenRequest=new Ae.i(e.clientId,e.clientSecret,yield this.buildTwoFactor(),yield this.buildDeviceRequest()),this.cache.next(t);const[i]=yield this.startLogIn();return i})}setMasterKey(e,t){return pe(this,void 0,void 0,function*(){if(!(e.canUnlockWithKeyConnector()&&(yield this.configService.getFeatureFlag(ce.TO.UnlockKeyConnectorWithSdk)))&&e.apiUseKeyConnector){const e=(yield(0,S._)(this.environmentService.environment$)).getKeyConnectorUrl();yield this.keyConnectorService.setMasterKeyFromUrl(e,t)}})}setUserKey(e,t){return pe(this,void 0,void 0,function*(){if(e.canUnlockWithKeyConnector()&&(yield this.configService.getFeatureFlag(ce.TO.UnlockKeyConnectorWithSdk)))yield this.unlockService.unlockWithKeyConnector(t,e.intoKeyConnectorUnlockData());else if(e.key&&(yield this.masterPasswordService.setMasterKeyEncryptedUserKey(e.key,t)),e.apiUseKeyConnector){const e=yield(0,S._)(this.masterPasswordService.masterKey$(t));if(e){const i=yield this.masterPasswordService.decryptUserKeyWithMasterKey(e,t);yield this.keyService.setUserKey(i,t)}}})}setAccountCryptographicState(e,t){return pe(this,void 0,void 0,function*(){yield this.accountCryptographicStateService.setAccountCryptographicState(e.accountKeysResponseModel.toWrappedAccountCryptographicState(),t)})}saveAccountInformation(e){const t=Object.create(null,{saveAccountInformation:{get:()=>super.saveAccountInformation}});return pe(this,void 0,void 0,function*(){const i=yield t.saveAccountInformation.call(this,e),n=yield(0,S._)(this.vaultTimeoutSettingsService.getVaultTimeoutActionByUserId$(i)),r=yield(0,S._)(this.vaultTimeoutSettingsService.getVaultTimeoutByUserId$(i)),s=this.cache.value.tokenRequest;return yield this.tokenService.setClientId(s.clientId,n,r),yield this.tokenService.setClientSecret(s.clientSecret,n,r),i})}exportCache(){return{userApiKey:this.cache.value}}}class me extends N.D{constructor(e,t,i){super(void 0,i),this.token=e,this.deviceResponse=t}toIdentityToken(e){const t=super.toIdentityToken(e);return t.grant_type="webauthn",t.token=this.token,t.deviceResponse=JSON.stringify(this.deviceResponse),t}static fromJSON(e){return Object.assign(Object.create(me.prototype),e,{deviceResponse:g.c.fromJSON(e.deviceResponse),device:e.device?O.C.fromJSON(e.device):void 0,twoFactor:e.twoFactor?Object.assign(new p.i,e.twoFactor):void 0})}}var fe=i(39306),ye=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class be{static fromJSON(e){return Object.assign(new be,e,{tokenRequest:me.fromJSON(e.tokenRequest),credentials:b.fromJSON(e.credentials)})}}class Ce extends _{constructor(e,...t){super(...t),this.cache=new U.t(e)}logIn(e){return ye(this,void 0,void 0,function*(){const t=new be;t.credentials=e,t.tokenRequest=new me(e.token,e.deviceResponse,yield this.buildDeviceRequest()),this.cache.next(t);const[i]=yield this.startLogIn();return i})}logInTwoFactor(){return ye(this,void 0,void 0,function*(){throw new Error("2FA not supported yet for WebAuthn Login.")})}setMasterKey(e,t){return ye(this,void 0,void 0,function*(){})}setUserKey(e,t){return ye(this,void 0,void 0,function*(){const i=e.key;i&&(yield this.masterPasswordService.setMasterKeyEncryptedUserKey(i,t));const n=null==e?void 0:e.userDecryptionOptions;if(null==n?void 0:n.webAuthnPrfOption){const e=this.cache.value.credentials;if(!e.prfKey)return;const i=n.webAuthnPrfOption,r=yield this.encryptService.unwrapDecapsulationKey(i.encryptedPrivateKey,e.prfKey),s=yield this.encryptService.decapsulateKeyUnsigned(new fe.k(i.encryptedUserKey.encryptedString),r);s&&(yield this.keyService.setUserKey(s,t))}})}setAccountCryptographicState(e,t){return ye(this,void 0,void 0,function*(){yield this.accountCryptographicStateService.setAccountCryptographicState(e.accountKeysResponseModel.toWrappedAccountCryptographicState(),t)})}exportCache(){return{webAuthn:this.cache.value}}}const Ie=new k.Zs(k.Gm,"currentLoginStrategy",{deserializer:e=>e}),we=new k.Zs(k.Gm,"loginStrategyCacheExpiration",{deserializer:e=>e?new Date(e):null}),Be=new k.Zs(k.Gm,"authRequestPushNotification",{deserializer:e=>e}),Ee=new k.Zs(k.Gm,"loginStrategyCache",{deserializer:e=>null==e?null:{password:e.password?se.fromJSON(e.password):void 0,sso:e.sso?ue.fromJSON(e.sso):void 0,userApiKey:e.userApiKey?ge.fromJSON(e.userApiKey):void 0,authRequest:e.authRequest?te.fromJSON(e.authRequest):void 0,webAuthn:e.webAuthn?be.fromJSON(e.webAuthn):void 0}});var Se=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Qe{constructor(e,t,i,n,r,s,o,a,l,c,d,u,h,A,p,g,v,m,f,y,b,C,I,w,B,E,S,Q,k,R){this.accountService=e,this.masterPasswordService=t,this.keyService=i,this.apiService=n,this.tokenService=r,this.appIdService=s,this.platformUtilsService=o,this.messagingService=a,this.logService=l,this.keyConnectorService=c,this.environmentService=d,this.stateService=u,this.twoFactorService=h,this.i18nService=A,this.encryptService=p,this.passwordStrengthService=g,this.policyService=v,this.deviceTrustService=m,this.authRequestService=f,this.userDecryptionOptionsService=y,this.stateProvider=b,this.billingAccountProfileStateService=C,this.vaultTimeoutSettingsService=I,this.kdfConfigService=w,this.configService=B,this.accountCryptographicStateService=E,this.passwordPreloginService=S,this.unlockService=Q,this.loginStrategyCacheService=k,this.loginStrategySessionTimeoutService=R,this.authRequestPushNotificationState=this.stateProvider.get(Be),this.currentAuthType$=this.loginStrategyCacheService.currentAuthType$,this.loginStrategy$=this.loginStrategyCacheService.currentAuthType$.pipe((0,P.F)(),(0,M.v)(this.loginStrategyCacheService.cacheData$),this.initializeLoginStrategy.bind(this),(0,x.t)({refCount:!0,bufferSize:1}))}getEmail(){return Se(this,void 0,void 0,function*(){const e=yield(0,S._)(this.loginStrategy$);return e&&"email$"in e?yield(0,S._)(e.email$):null})}getMasterPasswordHash(){return Se(this,void 0,void 0,function*(){const e=yield(0,S._)(this.loginStrategy$);return e&&"serverMasterKeyHash$"in e?yield(0,S._)(e.serverMasterKeyHash$):null})}getSsoEmail2FaSessionToken(){return Se(this,void 0,void 0,function*(){const e=yield(0,S._)(this.loginStrategy$);return e&&"ssoEmail2FaSessionToken$"in e?yield(0,S._)(e.ssoEmail2FaSessionToken$):null})}getAccessCode(){return Se(this,void 0,void 0,function*(){const e=yield(0,S._)(this.loginStrategy$);return e&&"accessCode$"in e?yield(0,S._)(e.accessCode$):null})}getAuthRequestId(){return Se(this,void 0,void 0,function*(){const e=yield(0,S._)(this.loginStrategy$);return e&&"authRequestId$"in e?yield(0,S._)(e.authRequestId$):null})}logIn(e){return Se(this,void 0,void 0,function*(){var t;yield this.clearCache(),yield this.loginStrategyCacheService.setCurrentAuthType(e.type);const i=yield(0,S._)(this.loginStrategy$),n=Object.assign({},e),r=yield null==i?void 0:i.logIn(n);if(null==r||r.requiresTwoFactor||r.requiresDeviceVerification?(yield this.loginStrategyCacheService.setCacheData(null!==(t=null==i?void 0:i.exportCache())&&void 0!==t?t:null),yield this.loginStrategySessionTimeoutService.startSessionTimeout()):yield this.clearCache(),!r)throw new Error("No auth result returned");return r})}logInTwoFactor(e){return Se(this,void 0,void 0,function*(){if(!(yield this.isSessionValid()))throw new Error(this.i18nService.t("sessionTimeout"));const t=yield(0,S._)(this.loginStrategy$);if(null==t)throw new Error("No login strategy found.");try{const i=yield t.logInTwoFactor(e);return null==i||i.requiresTwoFactor||(yield this.clearCache()),i}catch(i){throw i instanceof G._||(yield this.clearCache()),i}})}logInNewDeviceVerification(e){return Se(this,void 0,void 0,function*(){if(!(yield this.isSessionValid()))throw new Error(this.i18nService.t("sessionTimeout"));const t=yield(0,S._)(this.loginStrategy$);if(null==t)throw new Error("No login strategy found.");if(!("logInNewDeviceVerification"in t))throw new Error("Current login strategy does not support device verification.");try{const i=yield t.logInNewDeviceVerification(e);return null===i||i.requiresDeviceVerification||(yield this.clearCache()),i}catch(i){throw i instanceof G._||(yield this.clearCache()),i}})}clearCache(){return Se(this,void 0,void 0,function*(){yield this.loginStrategyCacheService.clearCache(),yield this.loginStrategySessionTimeoutService.cancelSessionTimeout()})}isSessionValid(){return Se(this,void 0,void 0,function*(){if(null==(yield(0,S._)(this.loginStrategyCacheService.cacheData$)))return!1;const e=yield(0,S._)(this.loginStrategyCacheService.cacheExpiration$);return!(null!=e&&e<new Date)||(yield this.clearCache(),!1)})}initializeLoginStrategy(e){const t=[this.accountService,this.masterPasswordService,this.keyService,this.encryptService,this.apiService,this.tokenService,this.appIdService,this.platformUtilsService,this.messagingService,this.logService,this.stateService,this.twoFactorService,this.userDecryptionOptionsService,this.billingAccountProfileStateService,this.vaultTimeoutSettingsService,this.kdfConfigService,this.environmentService,this.configService,this.accountCryptographicStateService];return e.pipe((0,V.T)(([e,i])=>{var n,r,o,a,l;if(null==e)return null;switch(e){case s.Password:return new oe(null!==(n=null==i?void 0:i.password)&&void 0!==n?n:new se,this.passwordStrengthService,this.policyService,this.passwordPreloginService,this.unlockService,...t);case s.Sso:return new he(null!==(r=null==i?void 0:i.sso)&&void 0!==r?r:new ue,this.keyConnectorService,this.unlockService,this.deviceTrustService,this.authRequestService,...t);case s.UserApiKey:return new ve(null!==(o=null==i?void 0:i.userApiKey)&&void 0!==o?o:new ge,this.keyConnectorService,this.unlockService,...t);case s.AuthRequest:return new ie(null!==(a=null==i?void 0:i.authRequest)&&void 0!==a?a:new te,this.deviceTrustService,...t);case s.WebAuthn:return new Ce(null!==(l=null==i?void 0:i.webAuthn)&&void 0!==l?l:new be,...t)}}))}}var ke=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Re{constructor(e){this.stateProvider=e,this.currentAuthnTypeState=this.stateProvider.get(Ie),this.loginStrategyCacheState=this.stateProvider.get(Ee),this.loginStrategyCacheExpirationState=this.stateProvider.get(we),this.currentAuthType$=this.currentAuthnTypeState.state$,this.cacheData$=this.loginStrategyCacheState.state$,this.cacheExpiration$=this.loginStrategyCacheExpirationState.state$}setCurrentAuthType(e){return ke(this,void 0,void 0,function*(){yield this.currentAuthnTypeState.update(t=>e)})}setCacheData(e){return ke(this,void 0,void 0,function*(){yield this.loginStrategyCacheState.update(t=>e)})}setCacheExpiration(e){return ke(this,void 0,void 0,function*(){yield this.loginStrategyCacheExpirationState.update(t=>e)})}clearCache(){return ke(this,void 0,void 0,function*(){yield this.currentAuthnTypeState.update(e=>null),yield this.loginStrategyCacheState.update(e=>null),yield this.loginStrategyCacheExpirationState.update(e=>null)})}}var Fe=i(10760),Te=i(37798),De=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Pe=3e5,Me=new Fe.Lg("loginSessionExpired");class xe{constructor(e,t,i,n,r){this.taskSchedulerService=e,this.loginStrategyCacheService=t,this.logService=i,this.messageSender=n,this.messageListener=r,this.loginSessionTimeout$=this.messageListener.messages$(Me).pipe((0,V.T)(()=>{})),this.taskSchedulerService.registerTaskHandler(Te.fq.loginStrategySessionTimeout,()=>De(this,void 0,void 0,function*(){try{this.messageSender.send(Me,{})}catch(e){this.logService.error("Failed to send login session expired message",e)}try{yield this.loginStrategyCacheService.clearCache()}catch(e){this.logService.error("Failed to clear cache during session timeout",e)}}))}startSessionTimeout(){return De(this,void 0,void 0,function*(){yield this.cancelSessionTimeout(),yield this.loginStrategyCacheService.setCacheExpiration(new Date(Date.now()+Pe)),this.sessionTimeoutSubscription=this.taskSchedulerService.setTimeout(Te.fq.loginStrategySessionTimeout,Pe)})}cancelSessionTimeout(){return De(this,void 0,void 0,function*(){var e;yield this.loginStrategyCacheService.setCacheExpiration(null),null===(e=this.sessionTimeoutSubscription)||void 0===e||e.unsubscribe()})}}var Ve=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Ge=new k.Ok(k.xu,"decryptionOptions",{deserializer:e=>B.fromJSON(e),clearOn:["logout"]});class Ue{constructor(e){this.singleUserStateProvider=e}userDecryptionOptionsById$(e){return this.singleUserStateProvider.get(e,Ge).state$.pipe((0,Y.p)(e=>null!=e))}hasMasterPasswordById$(e){return this.userDecryptionOptionsById$(e).pipe((0,V.T)(e=>{var t;return null!==(t=e.hasMasterPassword)&&void 0!==t&&t}))}setUserDecryptionOptionsById(e,t){return Ve(this,void 0,void 0,function*(){yield this.singleUserStateProvider.get(e,Ge).update(e=>t)})}}var Oe=i(87806),Ne=i(95457),je=i(99352);class Ye{constructor(e,t,i,n){this.key=e,this.masterPasswordHash=t,this.deviceIdentifier=i,this.requestApproved=n}}var Xe=i(1086),ze=i(3633),Le=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const We=new k.Ok(k.dn,"adminAuthRequest",{deserializer:e=>e,clearOn:[]});class Ke{constructor(e,t,i,n,r,s,o,a){this.appIdService=e,this.masterPasswordService=t,this.keyService=i,this.encryptService=n,this.apiService=r,this.stateProvider=s,this.authRequestApiService=o,this.accountService=a,this.authRequestPushNotificationSubject=new Oe.B,this.adminLoginApprovedSubject=new Oe.B,this.authRequestPushNotification$=this.authRequestPushNotificationSubject.asObservable(),this.adminLoginApproved$=this.adminLoginApprovedSubject.asObservable()}getAdminAuthRequest(e){return Le(this,void 0,void 0,function*(){if(null==e)throw new Error("User ID is required");const t=yield(0,S._)(this.stateProvider.getUser(e,We).state$);return je.x.fromJSON(t)})}setAdminAuthRequest(e,t){return Le(this,void 0,void 0,function*(){if(null==t)throw new Error("User ID is required");if(null==e)throw new Error("Auth request is required");yield this.stateProvider.setUserState(We,e.toJSON(),t)})}clearAdminAuthRequest(e){return Le(this,void 0,void 0,function*(){if(null==e)throw new Error("User ID is required");yield this.stateProvider.setUserState(We,null,e)})}getPendingAuthRequests$(){return(0,Ne.v)(()=>this.authRequestApiService.getPendingAuthRequests()).pipe((0,V.T)(e=>e.data.map(e=>new Xe.B(e))))}getLatestPendingAuthRequest$(){return this.getPendingAuthRequests$().pipe((0,V.T)(e=>0===e.length?null:e.sort((e,t)=>{const i=new Date(e.creationDate).getTime();return new Date(t.creationDate).getTime()-i})[0]))}approveOrDenyAuthRequest(e,t){return Le(this,void 0,void 0,function*(){const i=yield(0,S._)(this.accountService.activeAccount$.pipe(ze.F6));if(!t.id)throw new Error("Auth request has no id");if(!t.publicKey)throw new Error("Auth request has no public key");if(null==i)throw new Error("User ID is required");const n=L.A.fromB64ToArray(t.publicKey),r=yield(0,S._)(this.keyService.userKey$(i)),s=yield this.encryptService.encapsulateKeyUnsigned(r,n),o=new Ye(s.encryptedString,void 0,yield this.appIdService.getAppId(),e);return yield this.apiService.putAuthRequest(t.id,o)})}setUserKeyAfterDecryptingSharedUserKey(e,t,i){return Le(this,void 0,void 0,function*(){const n=yield this.decryptPubKeyEncryptedUserKey(e.key,t);yield this.keyService.setUserKey(n,i)})}decryptPubKeyEncryptedUserKey(e,t){return Le(this,void 0,void 0,function*(){return yield this.encryptService.decapsulateKeyUnsigned(new fe.k(e),t)})}sendAuthRequestPushNotification(e){null!=e.id&&this.authRequestPushNotificationSubject.next(e.id)}getFingerprintPhrase(e,t){return Le(this,void 0,void 0,function*(){return(yield this.keyService.getFingerprint(e.toLowerCase(),t)).join("-")})}emitAdminLoginApproved(){this.adminLoginApprovedSubject.next()}}var Ze=i(12277),He=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Je{constructor(e,t){this.apiService=e,this.logService=t}getPendingAuthRequests(){return He(this,void 0,void 0,function*(){const e=yield this.apiService.send("GET","/auth-requests/pending",null,!0,!0);return new Ze.s(e,Xe.B)})}getAuthRequest(e){return He(this,void 0,void 0,function*(){try{const t=`/auth-requests/${e}`,i=yield this.apiService.send("GET",t,null,!0,!0);return new Xe.B(i)}catch(t){throw this.logService.error(t),t}})}getAuthResponse(e,t){return He(this,void 0,void 0,function*(){try{const i=`/auth-requests/${e}/response?code=${t}`,n=yield this.apiService.send("GET",i,null,!1,!0);return new Xe.B(n)}catch(i){throw this.logService.error(i),i}})}postAdminAuthRequest(e){return He(this,void 0,void 0,function*(){try{const t=yield this.apiService.send("POST","/auth-requests/admin-request",e,!0,!0);return new Xe.B(t)}catch(t){throw this.logService.error(t),t}})}postAuthRequest(e){return He(this,void 0,void 0,function*(){try{const t=yield this.apiService.send("POST","/auth-requests/",e,!1,!0,null,t=>{t.set("Device-Identifier",e.deviceIdentifier)});return new Xe.B(t)}catch(t){throw this.logService.error(t),t}})}}var qe=i(72135),$e=i(60512),_e=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class et{}class tt{constructor(e,t,i,n,r,s,o,a,l,c,d,u,h,A,p){this.accountService=e,this.biometricService=t,this.vaultTimeoutSettingsService=i,this.logoutService=n,this.messagingService=r,this.searchService=s,this.folderService=o,this.masterPasswordService=a,this.stateEventRunnerService=l,this.cipherService=c,this.authService=d,this.systemService=u,this.processReloadService=h,this.logService=A,this.keyService=p,this.onLockActions=[]}registerOnLockAction(e){this.onLockActions.push(e)}lockAll(){return _e(this,void 0,void 0,function*(){const e=yield(0,S._)((0,qe.z)([this.accountService.activeAccount$,this.accountService.accounts$]).pipe((0,V.T)(([e,t])=>{const i=Object.keys(t);return null==e?{activeAccount:null,otherAccounts:i}:{activeAccount:e.id,otherAccounts:i.filter(t=>t!==e.id)}})));for(const t of e.otherAccounts)yield this.lock(t);null!=e.activeAccount&&(yield this.lock(e.activeAccount))})}lock(e){return _e(this,void 0,void 0,function*(){if((0,$e.x)(e,"userId","LockService"),this.logService.info(`[LockService] Locking user ${e}`),(yield(0,S._)(this.authService.authStatusFor$(e)))!==Q.J.LoggedOut){if(!(yield this.vaultTimeoutSettingsService.canLock(e)))return yield this.logoutService.logout(e,"vaultTimeout"),void this.logService.info(`[LockService] User ${e} cannot lock, logging out instead.`);yield this.wipeDecryptedState(e),yield this.waitForLockedStatus(e),yield this.systemService.clearPendingClipboard(),yield this.runPlatformOnLockActions(e),this.logService.info(`[LockService] Locked user ${e}`),yield this.biometricService.setShouldAutopromptNow(!1),this.messagingService.send("locked",{userId:e}),yield this.processReloadService.startProcessReload()}})}wipeDecryptedState(e){return _e(this,void 0,void 0,function*(){yield this.folderService.clearDecryptedFolderState(e),yield this.cipherService.clearCache(e),yield this.keyService.clearStoredUserKey(e),yield this.stateEventRunnerService.handleEvent("lock",e)})}waitForLockedStatus(e){return _e(this,void 0,void 0,function*(){yield(0,S._)(this.authService.authStatusFor$(e).pipe((0,Y.p)(e=>e===Q.J.Locked),(0,X.w)({first:5e3,with:()=>{throw new Error("The lock process did not complete in a reasonable amount of time.")}})))})}runPlatformOnLockActions(e){return _e(this,void 0,void 0,function*(){for(const t of this.onLockActions)yield t(e)})}}var it=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class nt{constructor(e,t,i,n,r){this.loginEmailService=e,this.ssoLoginService=t,this.syncService=i,this.userAsymmetricKeysRegenerationService=n,this.encryptedMigrator=r}run(e,t){return it(this,void 0,void 0,function*(){yield this.syncService.fullSync(!0,{skipTokenRefresh:!0}),yield this.userAsymmetricKeysRegenerationService.regenerateIfNeeded(e),yield this.loginEmailService.clearLoginEmail();try{yield this.encryptedMigrator.runMigrations(e,t)}catch(n){}const i=yield this.ssoLoginService.getSsoEmail();i&&(yield this.ssoLoginService.updateSsoRequiredCache(i,e),yield this.ssoLoginService.clearSsoEmail())})}}var rt=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class st{constructor(e){this.messagingService=e}logout(e,t){return rt(this,void 0,void 0,function*(){this.messagingService.send("logout",{userId:e,logoutReason:t})})}}function ot(e){if(null==e)throw new Error("JWT token not found");const t=e.split(".");if(3!==t.length)throw new Error("JWT must have 3 parts");const i=t[1];let n;try{n=L.A.fromUrlB64ToUtf8(i)}catch(r){throw new Error("Cannot decode the token")}try{return JSON.parse(n)}catch(s){throw new Error("Cannot parse the token's payload into JSON")}}},52892(e,t,i){"use strict";i.d(t,{zh:()=>n,wG:()=>I});class n{}var r=i(31066);class s{constructor(){this.enabled=!1,this.showSetupDialog=!0}}const o=r.Ok.record(r.vZ,"autoConfirm",{deserializer:e=>e,clearOn:[]});var a=i(73074),l=i(98569),c=i(16385),d=i(68711),u=i(69783),h=i(4958),A=i(71232),p=i(68108),g=i(72135),v=i(191),m=i(21571),f=i(7356),y=i(84110),b=i(78781),C=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class I{constructor(e,t,i,n,r,s,o,a){this.apiService=e,this.organizationUserService=t,this.stateProvider=i,this.organizationService=n,this.organizationUserApiService=r,this.policyService=s,this.authService=o,this.accountService=a,this.initBulkAutoConfirmOnLoginSweep()}initBulkAutoConfirmOnLoginSweep(){const e=new Set;this.accountService.accounts$.pipe((0,a.Z)(t=>{const i=Object.keys(t).filter(t=>!e.has(t));return i.forEach(t=>e.add(t)),(0,l.H)(i)}),(0,a.Z)(e=>this.authService.authStatusFor$(e).pipe((0,c.F)(),(0,d.p)(e=>e===y.J.Unlocked),(0,u.T)(()=>e),(0,h.W)(()=>A.w))),(0,a.Z)(e=>(0,l.H)(this.bulkAutoConfirmPendingUsers(e)).pipe((0,h.W)(()=>A.w)))).subscribe()}resolveAutoConfirmOrg(e){return C(this,void 0,void 0,function*(){if(!(yield(0,p._)(this.canManageAutoConfirm$(e))))return null;return(yield(0,p._)(this.configuration$(e).pipe((0,u.T)(e=>e.enabled))))?yield(0,p._)(this.organizationService.organizations$(e).pipe((0,u.T)(e=>{var t;return null!==(t=e.find(e=>e.useAutomaticUserConfirmation))&&void 0!==t?t:null}))):null})}autoConfirmState(e){return this.stateProvider.getUser(e,o)}configuration$(e){return this.autoConfirmState(e).state$.pipe((0,u.T)(t=>{var i;return null!==(i=null==t?void 0:t[e])&&void 0!==i?i:new s}))}upsert(e,t){return C(this,void 0,void 0,function*(){yield this.autoConfirmState(e).update(i=>Object.assign(Object.assign({},i),{[e]:t}))})}canManageAutoConfirm$(e){return(0,g.z)([this.organizationService.organizations$(e).pipe((0,u.T)(e=>e[0])),this.policyService.policyAppliesToUser$(f.tt.AutomaticUserConfirmation,e)]).pipe((0,u.T)(([e,t])=>{var i;return t&&null!==(i=null==e?void 0:e.canManageAutoConfirm)&&void 0!==i&&i}))}autoConfirmUser(e,t,i,n){return C(this,void 0,void 0,function*(){const r=yield this.resolveAutoConfirmOrg(e);if(!r)return;const s=yield this.apiService.getUserPublicKey(t),o=b.A.fromB64ToArray(s.publicKey);yield(0,p._)(this.organizationUserService.buildConfirmRequest(r,o).pipe((0,v.n)(e=>this.organizationUserApiService.postOrganizationUserAutoConfirm(n,i,e))))})}bulkAutoConfirmPendingUsers(e){return C(this,void 0,void 0,function*(){const t=yield this.resolveAutoConfirmOrg(e);if(!t)return;const i=yield this.organizationUserApiService.getPendingAutoConfirmUsers(t.id);if(!i.data.length)return;const n=i.data.map(e=>e.id),r=yield this.organizationUserApiService.postOrganizationUsersPublicKey(t.id,n),s=new Map(r.data.map(e=>[e.id,e.key])),o=(yield Promise.all(i.data.map(e=>C(this,void 0,void 0,function*(){const i=s.get(e.id);if(null==i)return null;const n=b.A.fromB64ToArray(i),r=yield(0,p._)(this.organizationUserService.buildConfirmRequest(t,n));return null==r.key?null:{id:e.id,key:r.key,defaultUserCollectionName:r.defaultUserCollectionName}})))).filter(e=>null!=e);if(!o.length)return;const a=o[0].defaultUserCollectionName,l=new m.Kc(o.map(e=>({id:e.id,key:e.key})),a);yield this.organizationUserApiService.postBulkOrganizationUserAutoConfirm(t.id,l)})}}},2738(e,t,i){"use strict";var n;i.d(t,{s:()=>n}),function(e){e.Web="web",e.Browser="browser",e.Desktop="desktop",e.Cli="cli"}(n||(n={}))},12012(e,t,i){"use strict";i.d(t,{G:()=>n});class n{}},72331(e,t,i){"use strict";i.d(t,{d:()=>n});class n{}},4717(e,t,i){"use strict";i.d(t,{o:()=>n});class n{}},35631(e,t,i){"use strict";i.d(t,{i:()=>n,y:()=>r});class n{constructor(e,t){this.state$=e,this.set=t}}class r{}},11224(e,t,i){"use strict";i.d(t,{X:()=>n});class n{}},67553(e,t,i){"use strict";i.d(t,{Dl:()=>a,KP:()=>p,OV:()=>A,PV:()=>m,Sw:()=>v,UX:()=>g,Ue:()=>d,Vc:()=>u,ex:()=>c,k4:()=>f,o2:()=>h,of:()=>o,pe:()=>l});var n=i(72135),r=i(69783),s=i(7356);function o(e){return e.canViewAllCollections}function a(e){return e.isOwner||e.canManagePolicies||e.canManageSso||e.canManageScim||e.canAccessImport||e.canAccessExport||e.canManageDeviceApprovals}function l(e){return e.canManageUsers||e.canManageUsersPassword}function c(e){return e.canManageGroups}function d(e){return e.canAccessReports||e.canAccessEventLogs}function u(e){return!1}function h(e){return e.canUseAccessIntelligence&&e.canAccessReports}function A(e){return!(!e.enabled&&!e.isOwner)&&(l(e)||c(e)||d(e)||a(e)||o(e))}function p(e,t){return t.policyAppliesToUser$(s.tt.AutomaticUserConfirmation,e).pipe((0,r.T)(e=>!e))}function g(e,t){return(0,n.z)([t.policyAppliesToUser$(s.tt.SingleOrg,e),t.policyAppliesToUser$(s.tt.AutomaticUserConfirmation,e)]).pipe((0,r.T)(([e,t])=>e||t))}function v(e){return(0,r.T)(t=>t.find(t=>t.id===e))}class m{}class f extends m{}},27866(e,t,i){"use strict";i.d(t,{m:()=>n});class n{}},18499(e,t,i){"use strict";i.d(t,{N:()=>r,m:()=>n});class n{}class r extends n{}},13417(e,t,i){"use strict";i.d(t,{$:()=>n});class n{}},62316(e,t,i){"use strict";i.d(t,{J:()=>n});class n{}},7356(e,t,i){"use strict";var n,r;i.d(t,{pC:()=>n,eH:()=>r,Zx:()=>u.OrganizationUserStatusType,D7:()=>s,tt:()=>u.PolicyType,kC:()=>d,cp:()=>o,PN:()=>a,pP:()=>l,w0:()=>A,Xb:()=>h}),function(e){e[e.Default=0]="Default",e[e.BillingSync=1]="BillingSync",e[e.Scim=2]="Scim"}(n||(n={})),function(e){e[e.CloudBillingSync=1]="CloudBillingSync",e[e.Scim=2]="Scim"}(r||(r={}));var s,o,a,l,c,d,u=i(6632);!function(e){e[e.Owner=0]="Owner",e[e.Admin=1]="Admin",e[e.User=2]="User",e[e.Custom=4]="Custom"}(s||(s={})),function(e){e[e.Msp=0]="Msp",e[e.Reseller=1]="Reseller",e[e.BusinessUnit=2]="BusinessUnit"}(o||(o={})),function(e){e[e.Invited=0]="Invited",e[e.Accepted=1]="Accepted",e[e.Confirmed=2]="Confirmed",e[e.Revoked=-1]="Revoked"}(a||(a={})),function(e){e[e.ProviderAdmin=0]="ProviderAdmin",e[e.ServiceUser=1]="ServiceUser"}(l||(l={})),function(e){e[e.Default=0]="Default",e[e.AzureAd=1]="AzureAd",e[e.Okta=2]="Okta",e[e.OneLogin=3]="OneLogin",e[e.JumpCloud=4]="JumpCloud",e[e.GoogleWorkspace=5]="GoogleWorkspace",e[e.Rippling=6]="Rippling"}(c||(c={})),function(e){e[e.Pending=0]="Pending",e[e.Created=1]="Created",e[e.Billable=2]="Billable"}(d||(d={}));const h=Object.freeze({Unknown:0,Manual:1,TwoFactorPolicyNonCompliance:2,OrganizationDataOwnershipPolicyNonCompliance:3,SingleOrgPolicyNonCompliance:4}),A={0:"revocationReasonNotLogged",1:"revocationReasonManual",2:"revocationReasonTwoFactorNonCompliance",3:"revocationReasonDeclinedItemTransfer",4:"revocationReasonSingleOrganizationNonCompliance"}},95919(e,t,i){"use strict";i.d(t,{n:()=>r});var n=i(20702);class r extends n.r{constructor(e=null){if(super(e),null==e)return this;this.accessEventLogs=this.getResponseProperty("AccessEventLogs"),this.accessImportExport=this.getResponseProperty("AccessImportExport"),this.accessReports=this.getResponseProperty("AccessReports"),this.createNewCollections=this.getResponseProperty("CreateNewCollections"),this.editAnyCollection=this.getResponseProperty("EditAnyCollection"),this.deleteAnyCollection=this.getResponseProperty("DeleteAnyCollection"),this.manageCiphers=this.getResponseProperty("ManageCiphers"),this.manageGroups=this.getResponseProperty("ManageGroups"),this.manageSso=this.getResponseProperty("ManageSso"),this.managePolicies=this.getResponseProperty("ManagePolicies"),this.manageUsers=this.getResponseProperty("ManageUsers"),this.manageResetPassword=this.getResponseProperty("ManageResetPassword"),this.manageScim=this.getResponseProperty("ManageScim")}}},66806(e,t,i){"use strict";i.d(t,{i:()=>l,p:()=>c});var n=i(39306),r=i(66523),s=i(17989),o=i(14848),a=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const l={SharedCollection:0,DefaultUserCollection:1};class c extends s.A{constructor(e){super(),this.readOnly=!1,this.hidePasswords=!1,this.manage=!1,this.type=l.SharedCollection,this.id=e.id,this.name=e.name,this.organizationId=e.organizationId}static fromCollectionData(e){if(null==e||null==e.name||null==e.organizationId)throw new Error("CollectionData must contain name and organizationId.");const t=new c(Object.assign(Object.assign({},e),{name:new n.k(e.name)}));return t.externalId=e.externalId,t.readOnly=e.readOnly,t.hidePasswords=e.hidePasswords,t.manage=e.manage,t.type=e.type,t.defaultUserCollectionEmail=e.defaultUserCollectionEmail,t}static fromCollectionView(e,t,i){return a(this,void 0,void 0,function*(){const n=new c({name:yield t.encryptString(e.name,i),id:e.id,organizationId:e.organizationId});return n.externalId=e.externalId,n.readOnly=e.readOnly,n.hidePasswords=e.hidePasswords,n.manage=e.manage,n.type=e.type,n})}decrypt(e,t){return o.iY.fromCollection(this,t,e)}static fromSdkCollection(e){const t=new c({id:e.id?(0,r.zw)(e.id):"",organizationId:(0,r.zw)(e.organizationId),name:new n.k(e.name)});return t.externalId=e.externalId,t.hidePasswords=e.hidePasswords,t.readOnly=e.readOnly,t.manage=e.manage,t.defaultUserCollectionEmail=e.defaultUserCollectionEmail,t.type=e.type,t}toSdkCollection(){return{id:this.id?(0,r.WD)(this.id):void 0,organizationId:(0,r.WD)(this.organizationId),name:this.name.toSdk(),externalId:this.externalId,hidePasswords:this.hidePasswords,readOnly:this.readOnly,manage:this.manage,defaultUserCollectionEmail:this.defaultUserCollectionEmail,type:this.type}}static isCollectionId(e){return"string"==typeof e&&null!=e}}},7023(e,t,i){"use strict";i.d(t,{K:()=>a,i:()=>l});var n=i(39306),r=i(66523),s=i(66806),o=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const a="/";class l{constructor(e){this.readOnly=!1,this.hidePasswords=!1,this.manage=!1,this.assigned=!1,this.type=s.i.SharedCollection,this.id=e.id,this.organizationId=e.organizationId,this._name=e.name}set name(e){this._name=e}get name(){var e;return null!==(e=this.defaultUserCollectionEmail)&&void 0!==e?e:this._name}canEditItems(e){if(null!=e&&e.id!==this.organizationId)throw new Error("Id of the organization provided does not match the org id of the collection.");return(null==e?void 0:e.canEditAllCiphers)||this.manage||this.assigned&&!this.readOnly}canEdit(e){if(this.isDefaultCollection)return!1;if(null!=e&&e.id!==this.organizationId)throw new Error("Id of the organization provided does not match the org id of the collection.");return this.manage}canDelete(e){if(null!=e&&e.id!==this.organizationId)throw new Error("Id of the organization provided does not match the org id of the collection.");return(!(null==e?void 0:e.limitCollectionDeletion)||e.isAdmin)&&this.manage&&!this.isDefaultCollection}canViewCollectionInfo(e){return!1}canEditName(e){return this.canEdit(e)&&!this.defaultUserCollectionEmail}get isDefaultCollection(){return this.type==s.i.DefaultUserCollection}static vaultFilterHead(){return new l({id:"",organizationId:"",name:""})}static fromCollection(e,t,i){return o(this,void 0,void 0,function*(){const n=new l(Object.assign(Object.assign({},e),{name:""}));try{n.name=yield t.decryptString(e.name,i)}catch(r){n.name="[error: cannot decrypt]",console.error("[CollectionView] Error decrypting collection name",r)}return n.assigned=!0,n.externalId=e.externalId,n.readOnly=e.readOnly,n.hidePasswords=e.hidePasswords,n.manage=e.manage,n.type=e.type,n.defaultUserCollectionEmail=e.defaultUserCollectionEmail,n})}static fromCollectionAccessDetails(e,t,i){return o(this,void 0,void 0,function*(){const r=new l(Object.assign({},e));try{r.name=yield t.decryptString(new n.k(e.name),i)}catch(s){throw console.error("[CollectionView] Error decrypting collection name",s),s}return r.externalId=e.externalId,r.type=e.type,r.assigned=e.assigned,r.defaultUserCollectionEmail=e.defaultUserCollectionEmail,r})}static fromJSON(e){return Object.assign(new l(Object.assign({},e)),e)}static fromSdkCollectionView(e,t){const i=new l({id:e.id?(0,r.zw)(e.id):"",organizationId:(0,r.zw)(e.organizationId),name:e.name});return i.externalId=e.externalId,i.hidePasswords=e.hidePasswords,i.readOnly=e.readOnly,i.manage=e.manage,i.assigned=!0,i.defaultUserCollectionEmail=t.defaultUserCollectionEmail,i.type=e.type,i}toSdkCollectionView(){return{id:this.id?(0,r.WD)(this.id):void 0,organizationId:(0,r.WD)(this.organizationId),name:this.name,externalId:this.externalId,hidePasswords:this.hidePasswords,readOnly:this.readOnly,manage:this.manage,type:this.type}}encrypt(e,t){return s.p.fromCollectionView(this,t,e)}}},14848(e,t,i){"use strict";i.d(t,{pM:()=>g.p,MH:()=>p,sK:()=>r,nb:()=>c,Fw:()=>v,yv:()=>A,uF:()=>h,it:()=>g.i,iY:()=>o.i,Kt:()=>o.K,I_:()=>l});class n{}class r extends n{constructor(e){super(),e&&(this.id=e.id,this.readOnly=e.readOnly,this.hidePasswords=e.hidePasswords,this.manage=e.manage)}}var s=i(39306),o=i(7023),a=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const l="unassigned";class c extends o.i{constructor(){super(...arguments),this.groups=[],this.users=[],this.unmanaged=!1,this.assigned=!1}canEdit(e){return!this.isDefaultCollection&&((null==e?void 0:e.canEditAnyCollection)||this.unmanaged&&(null==e?void 0:e.canEditUnmanagedCollections)||super.canEdit(e))}canDelete(e){return!this.isDefaultCollection&&((null==e?void 0:e.canDeleteAnyCollection)||super.canDelete(e))}canEditUserAccess(e){return!this.isDefaultCollection&&(e.permissions.manageUsers&&e.allowAdminAccessToAllCollectionItems||this.canEdit(e))}canEditGroupAccess(e){return!this.isDefaultCollection&&(e.permissions.manageGroups&&e.allowAdminAccessToAllCollectionItems||this.canEdit(e))}canViewCollectionInfo(e){var t,i;if(this.isUnassignedCollection||this.isDefaultCollection)return!1;const n=null!==(t=null==e?void 0:e.isAdmin)&&void 0!==t&&t,r=null!==(i=null==e?void 0:e.permissions.editAnyCollection)&&void 0!==i&&i;return this.manage||n||r}get isUnassignedCollection(){return this.id===l}canEditName(e){return this.canEdit(e)&&!this.defaultUserCollectionEmail||super.canEditName(e)}static fromCollectionAccessDetails(e,t,i){return a(this,void 0,void 0,function*(){const n=new c(Object.assign({},e));try{n.name=yield t.decryptString(new s.k(n.name),i)}catch(o){n.name="[error: cannot decrypt]",console.error("[CollectionAdminView/fromCollectionAccessDetails] Error decrypting collection name",o)}return n.assigned=e.assigned,n.readOnly=e.readOnly,n.hidePasswords=e.hidePasswords,n.manage=e.manage,n.unmanaged=e.unmanaged,n.type=e.type,n.externalId=e.externalId,n.defaultUserCollectionEmail=e.defaultUserCollectionEmail,n.groups=e.groups?e.groups.map(e=>new r(e)):[],n.users=e.users?e.users.map(e=>new r(e)):[],n})}static fromCollectionResponse(e,t,i){return a(this,void 0,void 0,function*(){let n;try{n=yield t.decryptString(new s.k(e.name),i)}catch(o){throw console.error("[CollectionAdminView/fromCollectionResponse] Failed to decrypt the collection name",o),o}const r=new c({id:e.id,name:n,organizationId:e.organizationId});return r.externalId=e.externalId,r})}}var d=i(20702),u=i(73409);class h extends d.r{constructor(e){var t;super(e),this.type=g.i.SharedCollection,this.id=this.getResponseProperty("Id"),this.organizationId=this.getResponseProperty("OrganizationId"),this.name=this.getResponseProperty("Name"),this.externalId=this.getResponseProperty("ExternalId"),this.defaultUserCollectionEmail=this.getResponseProperty("DefaultUserCollectionEmail"),this.type=null!==(t=this.getResponseProperty("Type"))&&void 0!==t?t:g.i.SharedCollection}}class A extends h{constructor(e){super(e),this.readOnly=this.getResponseProperty("ReadOnly")||!1,this.manage=this.getResponseProperty("Manage")||!1,this.hidePasswords=this.getResponseProperty("HidePasswords")||!1,this.assigned="collectionDetails"==this.getResponseProperty("object")}}class p extends A{constructor(e){super(e),this.groups=[],this.users=[],this.assigned=this.getResponseProperty("Assigned")||!1,this.unmanaged=this.getResponseProperty("Unmanaged")||!1;const t=this.getResponseProperty("Groups");null!=t&&(this.groups=t.map(e=>new u.U(e)));const i=this.getResponseProperty("Users");null!=i&&(this.users=i.map(e=>new u.U(e)))}}var g=i(66806);class v{constructor(e){this.readOnly=!1,this.manage=!1,this.hidePasswords=!1,this.type=g.i.SharedCollection,this.id=e.id,this.organizationId=e.organizationId,this.name=e.name,this.externalId=e.externalId,this.readOnly=e.readOnly,this.manage=e.manage,this.hidePasswords=e.hidePasswords,this.type=e.type,this.defaultUserCollectionEmail=e.defaultUserCollectionEmail}static fromJSON(e){return null==e?null:Object.assign(new v(new A({})),e)}}},52136(e,t,i){"use strict";i.d(t,{o:()=>n});class n{constructor(e,t){var i;null!=e&&(this.id=e.id,this.name=e.name,this.status=e.status,this.type=e.type,this.enabled=e.enabled,this.usePolicies=e.usePolicies,this.useGroups=e.useGroups,this.useDirectory=e.useDirectory,this.useEvents=e.useEvents,this.useTotp=e.useTotp,this.use2fa=e.use2fa,this.useApi=e.useApi,this.useSso=e.useSso,this.useOrganizationDomains=e.useOrganizationDomains,this.useKeyConnector=e.useKeyConnector,this.useScim=e.useScim,this.useCustomPermissions=e.useCustomPermissions,this.useResetPassword=e.useResetPassword,this.useSecretsManager=e.useSecretsManager,this.usePasswordManager=e.usePasswordManager,this.usePam=e.usePam,this.useActivateAutofillPolicy=e.useActivateAutofillPolicy,this.useAutomaticUserConfirmation=e.useAutomaticUserConfirmation,this.selfHost=e.selfHost,this.usersGetPremium=e.usersGetPremium,this.seats=e.seats,this.maxCollections=e.maxCollections,this.maxStorageGb=e.maxStorageGb,this.ssoBound=e.ssoBound,this.identifier=e.identifier,this.permissions=e.permissions,this.resetPasswordEnrolled=e.resetPasswordEnrolled,this.userId=e.userId,this.organizationUserId=e.organizationUserId,this.hasPublicAndPrivateKeys=e.hasPublicAndPrivateKeys,this.providerId=e.providerId,this.providerName=e.providerName,this.providerType=e.providerType,this.familySponsorshipFriendlyName=e.familySponsorshipFriendlyName,this.familySponsorshipAvailable=e.familySponsorshipAvailable,this.productTierType=e.productTierType,this.keyConnectorEnabled=e.keyConnectorEnabled,this.keyConnectorUrl=e.keyConnectorUrl,this.familySponsorshipLastSyncDate=e.familySponsorshipLastSyncDate,this.familySponsorshipValidUntil=e.familySponsorshipValidUntil,this.familySponsorshipToDelete=e.familySponsorshipToDelete,this.accessSecretsManager=e.accessSecretsManager,this.limitCollectionCreation=e.limitCollectionCreation,this.limitCollectionDeletion=e.limitCollectionDeletion,this.limitItemDeletion=e.limitItemDeletion,this.allowAdminAccessToAllCollectionItems=e.allowAdminAccessToAllCollectionItems,this.userIsClaimedByOrganization=e.userIsClaimedByOrganization,this.useAccessIntelligence=e.useAccessIntelligence,this.useAdminSponsoredFamilies=e.useAdminSponsoredFamilies,this.useDisableSMAdsForUsers=null!==(i=e.useDisableSMAdsForUsers)&&void 0!==i&&i,this.isAdminInitiated=e.isAdminInitiated,this.ssoEnabled=e.ssoEnabled,this.ssoMemberDecryptionType=e.ssoMemberDecryptionType,this.usePhishingBlocker=e.usePhishingBlocker,this.useMyItems=e.useMyItems,this.useInviteLinks=e.useInviteLinks,this.isMember=t.isMember,this.isProviderUser=t.isProviderUser)}static fromJSON(e){var t;return Object.assign(new n,e,{userIsClaimedByOrganization:null!==(t=e.userIsClaimedByOrganization)&&void 0!==t?t:e.userIsManagedByOrganization,familySponsorshipLastSyncDate:null!=e.familySponsorshipLastSyncDate?new Date(e.familySponsorshipLastSyncDate):e.familySponsorshipLastSyncDate,familySponsorshipValidUntil:null!=e.familySponsorshipValidUntil?new Date(e.familySponsorshipValidUntil):e.familySponsorshipValidUntil})}}},54967(e,t,i){"use strict";i.d(t,{L:()=>n});class n{constructor(e){null!=e&&(this.id=e.id,this.organizationId=e.organizationId,this.type=e.type,this.data=e.data,this.enabled=e.enabled,this.revisionDate=e.revisionDate)}static fromPolicy(e){return Object.assign(new n,e)}}},46217(e,t,i){"use strict";i.d(t,{U:()=>r});var n=i(17989);class r extends n.A{constructor(){super(...arguments),this.minComplexity=0,this.minLength=0,this.requireUpper=!1,this.requireLower=!1,this.requireNumbers=!1,this.requireSpecial=!1,this.enforceOnLogin=!1}static fromResponse(e){if(null==e)return;const t=new r;return t.minComplexity=e.minComplexity,t.minLength=e.minLength,t.requireUpper=e.requireUpper,t.requireLower=e.requireLower,t.requireNumbers=e.requireNumbers,t.requireSpecial=e.requireSpecial,t.enforceOnLogin=e.enforceOnLogin,t}}},84488(e,t,i){"use strict";i.d(t,{y:()=>s});var n=i(85776),r=(i(64447),i(7356));class s{constructor(e){var t;null!=e&&(this.id=e.id,this.name=e.name,this.status=e.status,this.type=e.type,this.enabled=e.enabled,this.usePolicies=e.usePolicies,this.useGroups=e.useGroups,this.useDirectory=e.useDirectory,this.useEvents=e.useEvents,this.useTotp=e.useTotp,this.use2fa=e.use2fa,this.useApi=e.useApi,this.useSso=e.useSso,this.useOrganizationDomains=e.useOrganizationDomains,this.useKeyConnector=e.useKeyConnector,this.useScim=e.useScim,this.useCustomPermissions=e.useCustomPermissions,this.useResetPassword=e.useResetPassword,this.useSecretsManager=e.useSecretsManager,this.usePasswordManager=e.usePasswordManager,this.usePam=e.usePam,this.useActivateAutofillPolicy=e.useActivateAutofillPolicy,this.useAutomaticUserConfirmation=e.useAutomaticUserConfirmation,this.selfHost=e.selfHost,this.usersGetPremium=e.usersGetPremium,this.seats=e.seats,this.maxCollections=e.maxCollections,this.maxStorageGb=e.maxStorageGb,this.ssoBound=e.ssoBound,this.identifier=e.identifier,this.permissions=e.permissions,this.resetPasswordEnrolled=e.resetPasswordEnrolled,this.userId=e.userId,this.organizationUserId=e.organizationUserId,this.hasPublicAndPrivateKeys=e.hasPublicAndPrivateKeys,this.providerId=e.providerId,this.providerName=e.providerName,this.providerType=e.providerType,this.isProviderUser=e.isProviderUser,this.isMember=e.isMember,this.familySponsorshipFriendlyName=e.familySponsorshipFriendlyName,this.familySponsorshipAvailable=e.familySponsorshipAvailable,this.productTierType=e.productTierType,this.keyConnectorEnabled=e.keyConnectorEnabled,this.keyConnectorUrl=e.keyConnectorUrl,this.familySponsorshipLastSyncDate=e.familySponsorshipLastSyncDate,this.familySponsorshipValidUntil=e.familySponsorshipValidUntil,this.familySponsorshipToDelete=e.familySponsorshipToDelete,this.accessSecretsManager=e.accessSecretsManager,this.limitCollectionCreation=e.limitCollectionCreation,this.limitCollectionDeletion=e.limitCollectionDeletion,this.limitItemDeletion=e.limitItemDeletion,this.allowAdminAccessToAllCollectionItems=e.allowAdminAccessToAllCollectionItems,this.userIsClaimedByOrganization=e.userIsClaimedByOrganization,this.useAccessIntelligence=e.useAccessIntelligence,this.useAdminSponsoredFamilies=e.useAdminSponsoredFamilies,this.useDisableSMAdsForUsers=null!==(t=e.useDisableSMAdsForUsers)&&void 0!==t&&t,this.isAdminInitiated=e.isAdminInitiated,this.ssoEnabled=e.ssoEnabled,this.ssoMemberDecryptionType=e.ssoMemberDecryptionType,this.usePhishingBlocker=e.usePhishingBlocker,this.useMyItems=e.useMyItems,this.useInviteLinks=e.useInviteLinks)}get canAccess(){return!!this.isOwner||this.enabled&&this.status===r.Zx.Confirmed}get isAdmin(){return this.type===r.D7.Admin||this.isOwner}get isOwner(){return this.type===r.D7.Owner||this.isProviderUser}get canAccessEventLogs(){return(this.isAdmin||this.permissions.accessEventLogs)&&this.useEvents}get canAccessImport(){return this.isProviderUser||this.type===r.D7.Owner||this.type===r.D7.Admin||this.permissions.accessImportExport}get canAccessExport(){return this.isMember&&(this.type===r.D7.Owner||this.type===r.D7.Admin||this.permissions.accessImportExport)}get canAccessReports(){return this.isAdmin||this.permissions.accessReports}get canCreateNewCollections(){return!this.limitCollectionCreation||this.isAdmin||this.permissions.createNewCollections}get canEditAnyCollection(){return this.isProviderUser||this.type===r.D7.Custom&&this.permissions.editAnyCollection||this.allowAdminAccessToAllCollectionItems&&this.isAdmin}get canEditUnmanagedCollections(){return this.isAdmin||this.permissions.editAnyCollection}get canEditUnassignedCiphers(){return this.type===r.D7.Admin||this.type===r.D7.Owner||this.permissions.editAnyCollection}get canEditAllCiphers(){return this.type===r.D7.Custom&&this.permissions.editAnyCollection||this.allowAdminAccessToAllCollectionItems&&(this.type===r.D7.Admin||this.type===r.D7.Owner)}get canDeleteAnyCollection(){return!(!this.isProviderUser&&!this.permissions.deleteAnyCollection)||!!this.allowAdminAccessToAllCollectionItems&&(this.type==r.D7.Owner||this.type==r.D7.Admin)}get canViewAllCollections(){return this.isAdmin||this.permissions.editAnyCollection||this.permissions.deleteAnyCollection}get canManageGroups(){return(this.isAdmin||this.permissions.manageGroups)&&this.useGroups}get canManageSso(){return(this.isAdmin||this.permissions.manageSso)&&this.useSso}get canManageDomainVerification(){return(this.isAdmin||this.permissions.manageSso)&&this.useOrganizationDomains}get canManageScim(){return(this.isAdmin||this.permissions.manageScim)&&this.useScim}get canManagePolicies(){return(this.isAdmin||this.permissions.managePolicies)&&this.usePolicies}get canManageUsers(){return this.isAdmin||this.permissions.manageUsers}get canManageUsersPassword(){return this.isAdmin||this.permissions.manageResetPassword}get canEnableAutoConfirmPolicy(){return(this.canManageUsers||this.canManagePolicies)&&this.useAutomaticUserConfirmation&&!this.isProviderUser}get canManageDeviceApprovals(){return(this.isAdmin||this.permissions.manageResetPassword)&&this.useSso&&this.ssoEnabled&&this.ssoMemberDecryptionType===n.QI.TrustedDeviceEncryption}get isExemptFromPolicies(){return this.canManagePolicies}get canViewSubscription(){return!!this.canEditSubscription||(this.hasBillableProvider?this.isProviderUser:this.isOwner)}get canEditSubscription(){return this.hasProvider?this.isProviderUser:this.isOwner}get canEditPaymentMethods(){return this.canEditSubscription}get canViewBillingHistory(){return this.canEditSubscription}get hasProvider(){return null!=this.providerId||null!=this.providerName}get hasBillableProvider(){return this.hasProvider&&(this.providerType===r.cp.Msp||this.providerType===r.cp.BusinessUnit)}get hasReseller(){return this.hasProvider&&this.providerType===r.cp.Reseller}get canAccessSecretsManager(){return this.useSecretsManager&&this.accessSecretsManager}get isFreeOrg(){return!this.useTotp}get canManageSponsorships(){return this.familySponsorshipAvailable||null!==this.familySponsorshipFriendlyName}get canManageAutoConfirm(){return this.isMember&&this.canManageUsers&&this.useAutomaticUserConfirmation}static fromJSON(e){return null==e?null:Object.assign(new s,e,{familySponsorshipLastSyncDate:new Date(e.familySponsorshipLastSyncDate),familySponsorshipValidUntil:new Date(e.familySponsorshipValidUntil)})}get canAccessIntegrations(){return!1}get canUseAccessIntelligence(){return!1}}},38449(e,t,i){"use strict";i.d(t,{P:()=>o});var n=i(66523),r=i(17989),s=i(54967);class o extends r.A{constructor(e){super(),null!=e&&(this.id=e.id,this.organizationId=e.organizationId,this.type=e.type,this.data=e.data,this.enabled=e.enabled,this.revisionDate=new Date(e.revisionDate))}static fromResponse(e){return new o(new s.L(e))}static fromListResponse(e){return e.data.map(e=>o.fromResponse(e))}static fromSdkPolicyView(e){const t=new o;return t.id=(0,n.zw)(e.id),t.organizationId=(0,n.zw)(e.organizationId),t.type=e.type,t.data=null==e.data?null:JSON.parse(e.data),t.enabled=e.enabled,t.revisionDate=null==e.revisionDate?void 0:new Date(e.revisionDate),t}toSdkPolicyView(){return{id:(0,n.WD)(this.id),organizationId:(0,n.WD)(this.organizationId),type:this.type,data:null==this.data?void 0:JSON.stringify(this.data),enabled:this.enabled,revisionDate:null==this.revisionDate?void 0:this.revisionDate.toISOString()}}}},77665(e,t,i){"use strict";i.d(t,{L:()=>r});var n=i(55459);class r extends n.J{constructor(){super(...arguments),this.paymentToken=""}}},79334(e,t,i){"use strict";i.d(t,{B:()=>r});var n=i(48541);class r extends n.G{constructor(e,t){super(e,t)}}},79667(e,t,i){"use strict";i.d(t,{v:()=>n});class n{}},50545(e,t,i){"use strict";i.d(t,{I:()=>n});class n{constructor(e,t,i,n){this.id=e,this.readOnly=t,this.hidePasswords=i,this.manage=n}}},77788(e,t,i){"use strict";i.d(t,{t:()=>s});var n=i(69580),r=i(20702);class s extends r.r{constructor(e){var t,i,r,s,o,a;super(e),this.id=this.getResponseProperty("Id"),this.name=this.getResponseProperty("Name"),this.businessName=this.getResponseProperty("BusinessName"),this.businessAddress1=this.getResponseProperty("BusinessAddress1"),this.businessAddress2=this.getResponseProperty("BusinessAddress2"),this.businessAddress3=this.getResponseProperty("BusinessAddress3"),this.businessCountry=this.getResponseProperty("BusinessCountry"),this.businessTaxNumber=this.getResponseProperty("BusinessTaxNumber"),this.billingEmail=this.getResponseProperty("BillingEmail");const l=this.getResponseProperty("Plan");this.plan=null==l?null:new n.tQ(l),this.planType=this.getResponseProperty("PlanType"),this.seats=this.getResponseProperty("Seats"),this.maxAutoscaleSeats=this.getResponseProperty("MaxAutoscaleSeats"),this.maxCollections=this.getResponseProperty("MaxCollections"),this.maxStorageGb=this.getResponseProperty("MaxStorageGb"),this.useGroups=this.getResponseProperty("UseGroups"),this.useDirectory=this.getResponseProperty("UseDirectory"),this.useEvents=this.getResponseProperty("UseEvents"),this.useTotp=this.getResponseProperty("UseTotp"),this.use2fa=this.getResponseProperty("Use2fa"),this.useApi=this.getResponseProperty("UseApi"),this.useResetPassword=this.getResponseProperty("UseResetPassword"),this.useSecretsManager=this.getResponseProperty("UseSecretsManager"),this.hasPublicAndPrivateKeys=this.getResponseProperty("HasPublicAndPrivateKeys"),this.usePasswordManager=this.getResponseProperty("UsePasswordManager"),this.usePam=null!==(t=this.getResponseProperty("UsePam"))&&void 0!==t&&t,this.smSeats=this.getResponseProperty("SmSeats"),this.smServiceAccounts=this.getResponseProperty("SmServiceAccounts"),this.smServiceAccountsGrace=null!==(i=this.getResponseProperty("SmServiceAccountsGrace"))&&void 0!==i?i:0,this.maxAutoscaleSmSeats=this.getResponseProperty("MaxAutoscaleSmSeats"),this.maxAutoscaleSmServiceAccounts=this.getResponseProperty("MaxAutoscaleSmServiceAccounts"),this.limitCollectionCreation=this.getResponseProperty("LimitCollectionCreation"),this.limitCollectionDeletion=this.getResponseProperty("LimitCollectionDeletion"),this.limitItemDeletion=this.getResponseProperty("LimitItemDeletion"),this.allowAdminAccessToAllCollectionItems=this.getResponseProperty("AllowAdminAccessToAllCollectionItems"),this.useDisableSMAdsForUsers=null!==(r=this.getResponseProperty("UseDisableSMAdsForUsers"))&&void 0!==r&&r,this.useAccessIntelligence=this.getResponseProperty("UseRiskInsights"),this.usePhishingBlocker=null!==(s=this.getResponseProperty("UsePhishingBlocker"))&&void 0!==s&&s,this.useMyItems=null!==(o=this.getResponseProperty("UseMyItems"))&&void 0!==o&&o,this.useInviteLinks=null!==(a=this.getResponseProperty("UseInviteLinks"))&&void 0!==a&&a}}},25607(e,t,i){"use strict";i.d(t,{i:()=>r});var n=i(20702);class r extends n.r{constructor(e){var t;super(e),this.id=this.getResponseProperty("Id"),this.organizationId=this.getResponseProperty("OrganizationId"),this.type=this.getResponseProperty("Type"),this.data=this.getResponseProperty("Data"),this.enabled=this.getResponseProperty("Enabled"),this.canToggleState=null===(t=this.getResponseProperty("CanToggleState"))||void 0===t||t,this.revisionDate=this.getResponseProperty("RevisionDate")}}},72868(e,t,i){"use strict";i.d(t,{C:()=>s});var n=i(20702),r=i(95919);class s extends n.r{constructor(e){var t,i,n,s,o,a,l,c,d,u;super(e),this.id=this.getResponseProperty("Id"),this.name=this.getResponseProperty("Name"),this.usePolicies=this.getResponseProperty("UsePolicies"),this.useGroups=this.getResponseProperty("UseGroups"),this.useDirectory=this.getResponseProperty("UseDirectory"),this.useEvents=this.getResponseProperty("UseEvents"),this.useTotp=this.getResponseProperty("UseTotp"),this.use2fa=this.getResponseProperty("Use2fa"),this.useApi=this.getResponseProperty("UseApi"),this.useSso=this.getResponseProperty("UseSso"),this.useOrganizationDomains=this.getResponseProperty("UseOrganizationDomains"),this.useKeyConnector=null!==(t=this.getResponseProperty("UseKeyConnector"))&&void 0!==t&&t,this.useScim=null!==(i=this.getResponseProperty("UseScim"))&&void 0!==i&&i,this.useCustomPermissions=null!==(n=this.getResponseProperty("UseCustomPermissions"))&&void 0!==n&&n,this.useResetPassword=this.getResponseProperty("UseResetPassword"),this.useSecretsManager=this.getResponseProperty("UseSecretsManager"),this.usePasswordManager=this.getResponseProperty("UsePasswordManager"),this.usePam=null!==(s=this.getResponseProperty("UsePam"))&&void 0!==s&&s,this.useActivateAutofillPolicy=this.getResponseProperty("UseActivateAutofillPolicy"),this.useAutomaticUserConfirmation=this.getResponseProperty("UseAutomaticUserConfirmation"),this.selfHost=this.getResponseProperty("SelfHost"),this.usersGetPremium=this.getResponseProperty("UsersGetPremium"),this.seats=this.getResponseProperty("Seats"),this.maxCollections=this.getResponseProperty("MaxCollections"),this.maxStorageGb=this.getResponseProperty("MaxStorageGb"),this.key=this.getResponseProperty("Key"),this.hasPublicAndPrivateKeys=this.getResponseProperty("HasPublicAndPrivateKeys"),this.status=this.getResponseProperty("Status"),this.type=this.getResponseProperty("Type"),this.enabled=this.getResponseProperty("Enabled"),this.ssoBound=this.getResponseProperty("SsoBound"),this.identifier=this.getResponseProperty("Identifier"),this.permissions=new r.n(this.getResponseProperty("permissions")),this.resetPasswordEnrolled=this.getResponseProperty("ResetPasswordEnrolled"),this.userId=this.getResponseProperty("UserId"),this.organizationUserId=this.getResponseProperty("OrganizationUserId"),this.providerId=this.getResponseProperty("ProviderId"),this.providerName=this.getResponseProperty("ProviderName"),this.providerType=this.getResponseProperty("ProviderType"),this.familySponsorshipFriendlyName=this.getResponseProperty("FamilySponsorshipFriendlyName"),this.familySponsorshipAvailable=this.getResponseProperty("FamilySponsorshipAvailable"),this.productTierType=this.getResponseProperty("ProductTierType"),this.keyConnectorEnabled=null!==(o=this.getResponseProperty("KeyConnectorEnabled"))&&void 0!==o&&o,this.keyConnectorUrl=this.getResponseProperty("KeyConnectorUrl");const h=this.getResponseProperty("FamilySponsorshipLastSyncDate");h&&(this.familySponsorshipLastSyncDate=new Date(h));const A=this.getResponseProperty("FamilySponsorshipValidUntil");A&&(this.familySponsorshipValidUntil=new Date(A)),this.familySponsorshipToDelete=this.getResponseProperty("FamilySponsorshipToDelete"),this.accessSecretsManager=this.getResponseProperty("AccessSecretsManager"),this.limitCollectionCreation=this.getResponseProperty("LimitCollectionCreation"),this.limitCollectionDeletion=this.getResponseProperty("LimitCollectionDeletion"),this.limitItemDeletion=this.getResponseProperty("LimitItemDeletion"),this.allowAdminAccessToAllCollectionItems=this.getResponseProperty("AllowAdminAccessToAllCollectionItems"),this.userIsClaimedByOrganization=this.getResponseProperty("UserIsClaimedByOrganization"),this.useAccessIntelligence=this.getResponseProperty("UseRiskInsights"),this.useAdminSponsoredFamilies=this.getResponseProperty("UseAdminSponsoredFamilies"),this.useDisableSMAdsForUsers=null!==(a=this.getResponseProperty("UseDisableSMAdsForUsers"))&&void 0!==a&&a,this.isAdminInitiated=this.getResponseProperty("IsAdminInitiated"),this.ssoEnabled=null!==(l=this.getResponseProperty("SsoEnabled"))&&void 0!==l&&l,this.ssoMemberDecryptionType=this.getResponseProperty("SsoMemberDecryptionType"),this.usePhishingBlocker=null!==(c=this.getResponseProperty("UsePhishingBlocker"))&&void 0!==c&&c,this.useMyItems=null!==(d=this.getResponseProperty("UseMyItems"))&&void 0!==d&&d,this.useInviteLinks=null!==(u=this.getResponseProperty("UseInviteLinks"))&&void 0!==u&&u}}},73409(e,t,i){"use strict";i.d(t,{U:()=>r});var n=i(20702);class r extends n.r{constructor(e){super(e),this.id=this.getResponseProperty("Id"),this.readOnly=this.getResponseProperty("ReadOnly"),this.hidePasswords=this.getResponseProperty("HidePasswords"),this.manage=this.getResponseProperty("Manage")}}},30285(e,t,i){"use strict";i.d(t,{XS:()=>f,Zc:()=>m});var n=i(69783),r=i(191),s=i(72135),o=i(83604),a=i(68108),l=i(3633),c=i(82468),d=i(7356),u=i(46217),h=i(38449),A=i(17989);class p extends A.A{constructor(){super(...arguments),this.autoEnrollEnabled=!1}}var g=i(1153),v=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const m=(0,n.T)(e=>{var t;return null!==(t=e.at(0))&&void 0!==t?t:void 0});class f{constructor(e,t,i,n,r){this.stateProvider=e,this.organizationService=t,this.accountService=i,this.newPolicyService=n,this.configService=r}policyState(e){return this.stateProvider.getUser(e,g.P)}policyData$(e){return this.policyState(e).state$.pipe((0,n.T)(e=>null!=e?e:{}))}policies$(e){return this.policyData$(e).pipe((0,n.T)(e=>{return t=e,Object.values(t||{}).map(e=>new h.P(e));var t}))}policiesByType$(e,t){if(!t)throw new Error("No userId provided");return this.configService().getFeatureFlag$(c.TO.PoliciesInAcceptedState).pipe((0,r.n)(i=>{if(i)return this.newPolicyService.policiesByType$(e,t);const r=this.policies$(t),o=this.organizationService.organizations$(t);return(0,s.z)([r,o]).pipe((0,n.T)(([e,t])=>this.enforcedPolicyFilter(e,t)),(0,n.T)(t=>t.filter(t=>t.type===e)))}))}policyAppliesToUser$(e,t){return this.policiesByType$(e,t).pipe(m,(0,n.T)(e=>!!e))}enforcedPolicyFilter(e,t){const i=Object.fromEntries(t.map(e=>[e.id,e]));return e.filter(t=>{const n=i[t.organizationId];return!n||t.enabled&&n.status>=d.Zx.Accepted&&n.usePolicies&&!this.isExemptFromPolicy(t.type,n,e)})}masterPasswordPolicyOptions$(e,t){return(t?(0,o.of)(t):this.policiesByType$(d.tt.MasterPassword,e)).pipe((0,n.T)(e=>{var t;let i;const n=null!==(t=e.filter(e=>e.type===d.tt.MasterPassword))&&void 0!==t?t:[];if(0!==n.length)return n.forEach(e=>{e.enabled&&e.data&&(i||(i=new u.U),null!=e.data.minComplexity&&e.data.minComplexity>i.minComplexity&&(i.minComplexity=e.data.minComplexity),null!=e.data.minLength&&e.data.minLength>i.minLength&&(i.minLength=e.data.minLength),e.data.requireUpper&&(i.requireUpper=!0),e.data.requireLower&&(i.requireLower=!0),e.data.requireNumbers&&(i.requireNumbers=!0),e.data.requireSpecial&&(i.requireSpecial=!0),e.data.enforceOnLogin&&(i.enforceOnLogin=!0))}),i}))}combinePoliciesIntoMasterPasswordPolicyOptions(e){var t;let i;const n=null!==(t=e.filter(e=>e.type===d.tt.MasterPassword))&&void 0!==t?t:[];if(0!==n.length)return n.forEach(e=>{e.enabled&&e.data&&(i||(i=new u.U),this.mergeMasterPasswordPolicyOptions(i,e.data))}),i}combineMasterPasswordPolicyOptions(...e){let t;return e.forEach(e=>{t||(t=new u.U),this.mergeMasterPasswordPolicyOptions(t,e)}),t}evaluateMasterPassword(e,t,i){return!i||!(i.minComplexity>0&&i.minComplexity>e)&&(!(i.minLength>0&&i.minLength>t.length)&&((!i.requireUpper||t.toLocaleLowerCase()!==t)&&((!i.requireLower||t.toLocaleUpperCase()!==t)&&(!(i.requireNumbers&&!/[0-9]/.test(t))&&!(i.requireSpecial&&!/[!@#$%\^&*]/g.test(t))))))}getResetPasswordPolicyOptions(e,t){var i,n,r;const s=new p;if(!e||!t)return[s,!1];const o=e.find(e=>e.organizationId===t&&e.type===d.tt.ResetPassword&&e.enabled);return s.autoEnrollEnabled=null!==(n=null===(i=null==o?void 0:o.data)||void 0===i?void 0:i.autoEnrollEnabled)&&void 0!==n&&n,[s,null!==(r=null==o?void 0:o.enabled)&&void 0!==r&&r]}upsert(e,t){return v(this,void 0,void 0,function*(){yield this.policyState(t).update(t=>(null!=t||(t={}),t[e.id]=e,t))})}replace(e,t){return v(this,void 0,void 0,function*(){yield this.stateProvider.setUserState(g.P,e,t)})}isExemptFromPolicy(e,t,i){switch(e){case d.tt.MaximumVaultTimeout:return t.isOwner;case d.tt.PasswordGenerator:case d.tt.FreeFamiliesSponsorship:case d.tt.RestrictedItemTypes:case d.tt.RemoveUnlockWithPin:case d.tt.AutomaticUserConfirmation:case d.tt.OrganizationUserNotification:case d.tt.MasterPassword:return!1;case d.tt.OrganizationDataOwnership:return t.isAdmin;case d.tt.SingleOrg:default:return t.canManagePolicies}}mergeMasterPasswordPolicyOptions(e,t){var i,n;e||(e=new u.U),t&&(e.minComplexity=Math.max(e.minComplexity,null!==(i=t.minComplexity)&&void 0!==i?i:e.minComplexity),e.minLength=Math.max(e.minLength,null!==(n=t.minLength)&&void 0!==n?n:e.minLength),e.requireUpper=Boolean(e.requireUpper||t.requireUpper),e.requireLower=Boolean(e.requireLower||t.requireLower),e.requireNumbers=Boolean(e.requireNumbers||t.requireNumbers),e.requireSpecial=Boolean(e.requireSpecial||t.requireSpecial),e.enforceOnLogin=Boolean(e.enforceOnLogin||t.enforceOnLogin))}syncPolicy(e){return v(this,void 0,void 0,function*(){yield(0,a._)(this.accountService.activeAccount$.pipe(l.F6,(0,r.n)(t=>this.upsert(e,t))))})}}},1153(e,t,i){"use strict";i.d(t,{P:()=>r,_:()=>s});var n=i(31857);const r=n.Ok.record(n.jb,"policies",{deserializer:e=>e,clearOn:["logout"]}),s=n.Ok.record(n.jb,"policiesNew",{deserializer:e=>e,clearOn:["logout"]})},43317(e,t,i){"use strict";i.d(t,{eO:()=>a,mw:()=>s,sE:()=>o});var n=i(23567),r=i(14848);function s(e){if(!e)return[];const t=e.sort((e,t)=>e.name.localeCompare(t.name)).map(o),i=[],s=new Map;t.map(e=>{var t;const i=e.organizationId;(null!==(t=s.get(i))&&void 0!==t?t:s.set(i,[]).get(i)).push(e)});for(const o of s.values()){const e=[];for(const t of o){const i=t.name?t.name.replace(/^\/+|\/+$/g,"").split(r.Kt):[];n.F.nestedTraverse(e,0,i,t,void 0,r.Kt)}i.push(...e)}return i}function o(e){let t;return t=e instanceof r.nb?Object.assign(new r.nb(Object.assign(Object.assign({},e),{name:e.name})),e):Object.assign(new r.iY(Object.assign(Object.assign({},e),{name:e.name})),e),t}function a(e){return e&&0!==e.length?e.flatMap(e=>{if(!e.children||0===e.children.length)return[e.node];const t=a(e.children);return[e.node,...t]}):[]}},91461(e,t,i){"use strict";i.d(t,{eO:()=>n.eO,mw:()=>n.mw});var n=i(43317)},46357(e,t,i){"use strict";i.d(t,{T:()=>n});class n{}},35500(e,t,i){"use strict";i.d(t,{A:()=>r,D:()=>n});class n{}class r extends n{}},29744(e,t,i){"use strict";i.d(t,{k:()=>n});class n{}},68455(e,t,i){"use strict";i.d(t,{u:()=>n});class n{}},86388(e,t,i){"use strict";i.d(t,{v:()=>n});class n{}},40271(e,t,i){"use strict";i.d(t,{T:()=>n});class n{}},45891(e,t,i){"use strict";i.d(t,{_:()=>n});class n{}},86214(e,t,i){"use strict";i.d(t,{_:()=>n});class n{}},83078(e,t,i){"use strict";i.d(t,{B:()=>n});class n{}},62166(e,t,i){"use strict";i.d(t,{i:()=>n});class n{}},84110(e,t,i){"use strict";var n;i.d(t,{J:()=>n}),function(e){e[e.LoggedOut=0]="LoggedOut",e[e.Locked=1]="Locked",e[e.Unlocked=2]="Unlocked"}(n||(n={}))},85776(e,t,i){"use strict";var n,r,s,o,a,l;i.d(t,{Ah:()=>n,QI:()=>r}),function(e){e[e.None=0]="None",e[e.OpenIdConnect=1]="OpenIdConnect",e[e.Saml2=2]="Saml2"}(n||(n={})),function(e){e[e.MasterPassword=0]="MasterPassword",e[e.KeyConnector=1]="KeyConnector",e[e.TrustedDeviceEncryption=2]="TrustedDeviceEncryption"}(r||(r={})),function(e){e[e.RedirectGet=0]="RedirectGet",e[e.FormPost=1]="FormPost"}(s||(s={})),function(e){e[e.HttpRedirect=1]="HttpRedirect",e[e.HttpPost=2]="HttpPost"}(o||(o={})),function(e){e[e.NotConfigured=0]="NotConfigured",e[e.Unspecified=1]="Unspecified",e[e.EmailAddress=2]="EmailAddress",e[e.X509SubjectName=3]="X509SubjectName",e[e.WindowsDomainQualifiedName=4]="WindowsDomainQualifiedName",e[e.KerberosPrincipalName=5]="KerberosPrincipalName",e[e.EntityIdentifier=6]="EntityIdentifier",e[e.Persistent=7]="Persistent",e[e.Transient=8]="Transient"}(a||(a={})),function(e){e[e.IfIdpWantAuthnRequestsSigned=0]="IfIdpWantAuthnRequestsSigned",e[e.Always=1]="Always",e[e.Never=3]="Never"}(l||(l={}))},71804(e,t,i){"use strict";i.d(t,{R:()=>n});const n=Object.freeze({Authenticator:0,Email:1,Duo:2,Yubikey:3,Remember:5,OrganizationDuo:6,WebAuthn:7,RecoveryCode:8})},68333(e,t,i){"use strict";var n;i.d(t,{k:()=>n}),function(e){e[e.MasterPassword=0]="MasterPassword",e[e.OTP=1]="OTP",e[e.PIN=2]="PIN",e[e.Biometrics=3]="Biometrics"}(n||(n={}))},99352(e,t,i){"use strict";i.d(t,{x:()=>r});var n=i(78781);class r{constructor(e){e&&Object.assign(this,e)}toJSON(){return{id:this.id,privateKey:n.A.fromArrayToByteString(this.privateKey)}}static fromJSON(e){if(null==e)return null;let t=null;return e.privateKey&&(t=n.A.fromByteStringToArray(e.privateKey)),new r({id:e.id,privateKey:t})}}},81441(e,t,i){"use strict";var n;i.d(t,{n:()=>n}),function(e){e[e.None=0]="None",e[e.SsoNewJitProvisionedUser=1]="SsoNewJitProvisionedUser",e[e.TdeUserWithoutPasswordHasPasswordResetPermission=2]="TdeUserWithoutPasswordHasPasswordResetPermission",e[e.TdeOffboarding=3]="TdeOffboarding",e[e.TdeOffboardingUntrustedDevice=4]="TdeOffboardingUntrustedDevice",e[e.AdminForcePasswordReset=5]="AdminForcePasswordReset",e[e.WeakMasterPassword=6]="WeakMasterPassword"}(n||(n={}))},9997(e,t,i){"use strict";i.d(t,{C:()=>n});class n{constructor(e,t){this.type=t.getDevice(),this.name=t.getDeviceString(),this.identifier=e,this.pushToken=null}static fromJSON(e){return Object.assign(Object.create(n.prototype),e)}}},68881(e,t,i){"use strict";i.d(t,{i:()=>n});class n{constructor(e=null,t=null,i=!1){this.provider=e,this.token=t,this.remember=i}}},6912(e,t,i){"use strict";i.d(t,{D:()=>n});class n{constructor(e,t){this.twoFactor=e,this.device=null!=t?t:null}setTwoFactor(e){this.twoFactor=e}setAuthRequestAccessCode(e){this.authRequest=e}toIdentityToken(e){const t={scope:"api offline_access",client_id:e};return this.device&&(t.deviceType=this.device.type,t.deviceIdentifier=this.device.identifier,t.deviceName=this.device.name),this.authRequest&&(t.authRequest=this.authRequest),this.twoFactor&&this.twoFactor.token&&null!=this.twoFactor.provider&&(t.twoFactorToken=this.twoFactor.token,t.twoFactorProvider=this.twoFactor.provider,t.twoFactorRemember=this.twoFactor.remember?"1":"0"),t}}},65485(e,t,i){"use strict";i.d(t,{i:()=>o});var n=i(9997),r=i(68881),s=i(6912);class o extends s.D{constructor(e,t,i,n){super(i,n),this.clientId=e,this.clientSecret=t,this.twoFactor=i}toIdentityToken(){const e=super.toIdentityToken(this.clientId);return e.scope=this.clientId.startsWith("organization")?"api.organization":"api",e.grant_type="client_credentials",e.client_secret=this.clientSecret,e}static fromJSON(e){return Object.assign(Object.create(o.prototype),e,{device:e.device?n.C.fromJSON(e.device):void 0,twoFactor:e.twoFactor?Object.assign(new r.i,e.twoFactor):void 0})}}},7248(e,t,i){"use strict";i.d(t,{V:()=>n});class n{authenticateWith(e){return this.masterPasswordHash=e.masterPasswordAuthenticationHash,this}}},74199(e,t,i){"use strict";i.d(t,{v:()=>r});var n=i(7248);class r extends n.V{}},16888(e,t,i){"use strict";i.d(t,{G:()=>r});var n=i(7248);class r extends n.V{}},1086(e,t,i){"use strict";i.d(t,{B:()=>r});var n=i(20702);class r extends n.r{constructor(e){super(e),this.id=this.getResponseProperty("Id"),this.publicKey=this.getResponseProperty("PublicKey"),this.requestDeviceType=this.getResponseProperty("RequestDeviceType"),this.requestDeviceTypeValue=this.getResponseProperty("RequestDeviceTypeValue"),this.requestDeviceIdentifier=this.getResponseProperty("RequestDeviceIdentifier"),this.requestIpAddress=this.getResponseProperty("RequestIpAddress"),this.requestCountryName=this.getResponseProperty("RequestCountryName"),this.key=this.getResponseProperty("Key"),this.creationDate=this.getResponseProperty("CreationDate"),this.requestApproved=this.getResponseProperty("RequestApproved"),this.responseDate=this.getResponseProperty("ResponseDate"),this.deviceId=this.getResponseProperty("RequestDeviceId");const t=new Date(this.creationDate),i=Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),n=new Date(Date.now()),r=Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds());this.isExpired=r-i>=9e5,this.isAnswered=null!=this.requestApproved&&null!=this.responseDate}}},78107(e,t,i){"use strict";i.d(t,{H:()=>r});var n=i(20702);class r extends n.r{constructor(e){var t;super(e),this.deviceVerified=null!==(t=this.getResponseProperty("DeviceVerified"))&&void 0!==t&&t}}},27790(e,t,i){"use strict";i.d(t,{u:()=>r});var n=i(20702);class r extends n.r{constructor(e){super(e),this.ssoOrganizationIdentifier=this.getResponseProperty("SsoOrganizationIdentifier")}}},62780(e,t,i){"use strict";i.d(t,{L:()=>A});var n=i(8916),r=i(39306),s=i(98267),o=i(20702),a=i(81387),l=i(67097);class c extends o.r{constructor(e){super(e),this.keyConnectorUrl=this.getResponseProperty("KeyConnectorUrl")}}class d extends o.r{constructor(e){super(e),this.hasAdminApproval=this.getResponseProperty("HasAdminApproval"),this.hasLoginApprovingDevice=this.getResponseProperty("HasLoginApprovingDevice"),this.hasManageResetPasswordPermission=this.getResponseProperty("HasManageResetPasswordPermission"),this.isTdeOffboarding=this.getResponseProperty("IsTdeOffboarding"),e.EncryptedPrivateKey&&(this.encryptedPrivateKey=new r.k(this.getResponseProperty("EncryptedPrivateKey"))),e.EncryptedUserKey&&(this.encryptedUserKey=new r.k(this.getResponseProperty("EncryptedUserKey")))}}var u=i(1002);class h extends o.r{constructor(e){super(e),this.hasMasterPassword=this.getResponseProperty("HasMasterPassword");const t=this.getResponseProperty("MasterPasswordUnlock");null!=t&&"object"==typeof t&&(this.masterPasswordUnlock=new l.v(t)),e.TrustedDeviceOption&&(this.trustedDeviceOption=new d(this.getResponseProperty("TrustedDeviceOption"))),e.KeyConnectorOption&&(this.keyConnectorOption=new c(this.getResponseProperty("KeyConnectorOption"))),e.WebAuthnPrfOption&&(this.webAuthnPrfOption=new u.C(this.getResponseProperty("WebAuthnPrfOption")))}}class A extends o.r{constructor(e){super(e),this.accountKeysResponseModel=null;const t=this.getResponseProperty("access_token");if(null==t||"string"!=typeof t)throw new Error("Identity response does not contain a valid access token");const i=this.getResponseProperty("token_type");if(null==i||"string"!=typeof i)throw new Error("Identity response does not contain a valid token type");this.accessToken=t,this.tokenType=i;const o=this.getResponseProperty("expires_in");null!=o&&"number"==typeof o&&(this.expiresIn=o);const l=this.getResponseProperty("refresh_token");null!=l&&"string"==typeof l&&(this.refreshToken=l),this.privateKey=this.getResponseProperty("PrivateKey"),null!=this.getResponseProperty("AccountKeys")&&(this.accountKeysResponseModel=new s.s(this.getResponseProperty("AccountKeys")));const c=this.getResponseProperty("Key");c&&(this.key=new r.k(c)),this.twoFactorToken=this.getResponseProperty("TwoFactorToken");const d=this.getResponseProperty("Kdf"),u=this.getResponseProperty("KdfIterations"),A=this.getResponseProperty("KdfMemory"),p=this.getResponseProperty("KdfParallelism");switch(d){case n.ao.PBKDF2_SHA256:this.kdfConfig=new n.n1(u);break;case n.ao.Argon2id:this.kdfConfig=new n.hU(u,A,p);break;default:throw new Error("kdf is required on IdentityTokenResponse")}this.forcePasswordReset=this.getResponseProperty("ForcePasswordReset"),this.apiUseKeyConnector=this.getResponseProperty("ApiUseKeyConnector"),this.masterPasswordPolicy=new a.$(this.getResponseProperty("MasterPasswordPolicy"));const g=this.getResponseProperty("UserDecryptionOptions");null!=g&&"object"==typeof g&&(this.userDecryptionOptions=new h(g))}hasMasterKeyEncryptedUserKey(){return Boolean(this.key)}canUnlockWithKeyConnector(){var e;return null!=(null===(e=this.userDecryptionOptions)||void 0===e?void 0:e.keyConnectorOption)}intoKeyConnectorUnlockData(){if(!this.canUnlockWithKeyConnector())throw new Error("Identity token response cannot be used for key connector unlock");return{url:this.userDecryptionOptions.keyConnectorOption.keyConnectorUrl,keyConnectorKeyWrappedUserKey:this.key.toSdk()}}}},82489(e,t,i){"use strict";i.d(t,{x:()=>s});var n=i(20702),r=i(81387);class s extends n.r{constructor(e){super(e),this.twoFactorProviders=this.getResponseProperty("TwoFactorProviders"),this.twoFactorProviders2=this.getResponseProperty("TwoFactorProviders2"),this.masterPasswordPolicy=new r.$(this.getResponseProperty("MasterPasswordPolicy")),this.ssoEmail2faSessionToken=this.getResponseProperty("SsoEmail2faSessionToken"),this.email=this.getResponseProperty("Email")}}},81387(e,t,i){"use strict";i.d(t,{$:()=>r});var n=i(20702);class r extends n.r{constructor(e){super(e),this.minComplexity=this.getResponseProperty("MinComplexity"),this.minLength=this.getResponseProperty("MinLength"),this.requireUpper=this.getResponseProperty("RequireUpper"),this.requireLower=this.getResponseProperty("RequireLower"),this.requireNumbers=this.getResponseProperty("RequireNumbers"),this.requireSpecial=this.getResponseProperty("RequireSpecial"),this.enforceOnLogin=this.getResponseProperty("EnforceOnLogin")}}},73556(e,t,i){"use strict";i.d(t,{Jq:()=>a,j:()=>s});var n=i(20702),r=i(78781);class s extends n.r{constructor(e){super(e),this.enabled=this.getResponseProperty("Enabled");const t=this.getResponseProperty("Keys");this.keys=null==t?null:t.map(e=>new o(e))}}class o extends n.r{constructor(e){super(e),this.name=this.getResponseProperty("Name"),this.id=this.getResponseProperty("Id"),this.migrated=this.getResponseProperty("Migrated")}}class a extends n.r{constructor(e){super(e),this.attestation=this.getResponseProperty("attestation"),this.authenticatorSelection=this.getResponseProperty("authenticatorSelection"),this.challenge=r.A.fromUrlB64ToArray(this.getResponseProperty("challenge")),this.excludeCredentials=this.getResponseProperty("excludeCredentials").map(e=>(e.id=r.A.fromUrlB64ToArray(e.id).buffer,e)),this.extensions=this.getResponseProperty("extensions"),this.pubKeyCredParams=this.getResponseProperty("pubKeyCredParams"),this.rp=this.getResponseProperty("rp"),this.timeout=this.getResponseProperty("timeout");const t=this.getResponseProperty("user");t.id=r.A.fromUrlB64ToArray(t.id),this.user=t}}},1002(e,t,i){"use strict";i.d(t,{C:()=>s});var n=i(39306),r=i(20702);class s extends r.r{constructor(e){super(e);const t=this.getResponseProperty("EncryptedPrivateKey");t&&(this.encryptedPrivateKey=new n.k(t));const i=this.getResponseProperty("EncryptedUserKey");i&&(this.encryptedUserKey=new n.k(i)),this.credentialId=this.getResponseProperty("CredentialId"),this.transports=this.getResponseProperty("Transports")||[]}}},38190(e,t,i){"use strict";i.d(t,{Sw:()=>d,vP:()=>g,Ld:()=>v});var n=i(98569),r=i(69783),s=i(4958),o=i(6933),a=i(8916);class l{constructor(e){this.kdfConfig=e}static fromResponse(e){const t=e.kdf===a.ao.PBKDF2_SHA256?new a.n1(e.kdfIterations):new a.hU(e.kdfIterations,e.kdfMemory,e.kdfParallelism);return t.validateKdfConfigForPrelogin(),new l(t)}}class c{constructor(e){this.email=e}}class d{constructor(e){this.passwordPreloginApiService=e,this.currentEmail=null,this.currentPreloginData$=null}getPreloginData$(e){const t=e.trim().toLowerCase();return t===this.currentEmail&&null!==this.currentPreloginData$||(this.currentEmail=t,this.currentPreloginData$=(0,n.H)(this.passwordPreloginApiService.getPreloginData(new c(t))).pipe((0,r.T)(l.fromResponse),(0,s.W)(e=>{throw this.currentEmail=null,this.currentPreloginData$=null,e}),(0,o.t)({bufferSize:1,refCount:!1}))),this.currentPreloginData$}clearCache(){this.currentEmail=null,this.currentPreloginData$=null}}var u=i(68108),h=i(20702);class A extends h.r{constructor(e){super(e),this.kdf=this.getResponseProperty("Kdf"),this.kdfIterations=this.getResponseProperty("KdfIterations"),this.kdfMemory=this.getResponseProperty("KdfMemory"),this.kdfParallelism=this.getResponseProperty("KdfParallelism")}}var p=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class g{constructor(e,t){this.apiService=e,this.environmentService=t}getPreloginData(e){return p(this,void 0,void 0,function*(){const t=yield(0,u._)(this.environmentService.environment$),i=yield this.apiService.send("POST","/accounts/prelogin/password",e,!1,!0,t.getIdentityUrl());return new A(i)})}}class v{}},3633(e,t,i){"use strict";i.d(t,{F6:()=>C,bB:()=>I,xU:()=>m,xy:()=>w});var n=i(67789),r=i(72135),s=i(83604),o=i(54291),a=i(16385),l=i(68711),c=i(69783),d=i(6933),u=i(191),h=i(6586),A=i(78781),p=i(31857),g=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const v=p.Zs.record(p.ie,"accounts",{deserializer:e=>Object.assign(Object.assign({},e),{creationDate:e.creationDate?new Date(e.creationDate):void 0})}),m=new p.Zs(p.ie,"activeAccountId",{deserializer:e=>e}),f=p.Zs.record(p.ie,"activity",{deserializer:e=>new Date(e)}),y=new p.Ok(p.ie,"verifyNewDeviceLogin",{deserializer:e=>e,clearOn:["logout"]}),b={email:"",emailVerified:!1,name:void 0,creationDate:void 0},C=(0,c.T)(e=>{if(null==e)throw new Error("Null or undefined account");return e.id}),I=(0,c.T)(e=>{var t;return null!==(t=null==e?void 0:e.id)&&void 0!==t?t:null});class w{constructor(e,t,i,s){this.messagingService=e,this.logService=t,this.globalStateProvider=i,this.singleUserStateProvider=s,this._showHeader$=new n.t(!0),this.showHeader$=this._showHeader$.asObservable(),this.accountsState=this.globalStateProvider.get(v),this.activeAccountIdState=this.globalStateProvider.get(m),this.accounts$=this.accountsState.state$.pipe((0,c.T)(e=>null==e?{}:e)),this.activeAccount$=this.activeAccountIdState.state$.pipe((0,o.v)(this.accounts$),(0,c.T)(([e,t])=>e?Object.assign({id:e},t[e]):null),(0,a.F)((e,t)=>(null==e?void 0:e.id)===(null==t?void 0:t.id)&&this.accountInfoEqual(e,t)),(0,d.t)({bufferSize:1,refCount:!1})),this.accountActivity$=this.globalStateProvider.get(f).state$.pipe((0,c.T)(e=>null!=e?e:{})),this.sortedUserIds$=this.accountActivity$.pipe((0,c.T)(e=>Object.entries(e).map(([e,t])=>({userId:e,lastActive:t})).sort((e,t)=>t.lastActive.getTime()-e.lastActive.getTime()).map(e=>e.userId))),this.nextUpAccount$=(0,r.z)([this.accounts$,this.activeAccount$,this.sortedUserIds$]).pipe((0,c.T)(([e,t,i])=>{const n=i.find(i=>i!==(null==t?void 0:t.id)&&null!=e[i]);return n?Object.assign({id:n},e[n]):null})),this.accountVerifyNewDeviceLogin$=this.activeAccountIdState.state$.pipe((0,u.n)(e=>this.singleUserStateProvider.get(e,y).state$))}addAccount(e,t){return g(this,void 0,void 0,function*(){if(!A.A.isGuid(e))throw new Error("userId is required");yield this.accountsState.update(i=>(i||(i={}),i[e]=t,i)),yield this.setAccountActivity(e,new Date)})}setAccountName(e,t){return g(this,void 0,void 0,function*(){yield this.setAccountInfo(e,{name:t})})}setAccountEmail(e,t){return g(this,void 0,void 0,function*(){yield this.setAccountInfo(e,{email:t})})}setAccountEmailVerified(e,t){return g(this,void 0,void 0,function*(){yield this.setAccountInfo(e,{emailVerified:t})})}setAccountCreationDate(e,t){return g(this,void 0,void 0,function*(){yield this.setAccountInfo(e,{creationDate:t})})}clean(e){return g(this,void 0,void 0,function*(){yield this.setAccountInfo(e,b),yield this.removeAccountActivity(e)})}switchAccount(e){return g(this,void 0,void 0,function*(){let t=!1;yield this.activeAccountIdState.update((i,n)=>(t=!0,e),{combineLatestWith:this.accountsState.state$.pipe((0,l.p)(t=>null==e||null!=(null==t?void 0:t[e])),(0,h.w)({first:1e3,with:()=>(0,s.of)({})})),shouldUpdate:(t,i)=>{if(null!=e&&null==(null==i?void 0:i[e]))throw new Error("Account does not exist");return t!==e}}),t&&(yield this.setAccountActivity(e,new Date))})}setAccountActivity(e,t){return g(this,void 0,void 0,function*(){A.A.isGuid(e)&&(yield this.globalStateProvider.get(f).update(i=>(i||(i={}),i[e]=t,i),{shouldUpdate:i=>{var n;return(null===(n=null==i?void 0:i[e])||void 0===n?void 0:n.getTime())!==(null==t?void 0:t.getTime())}}))})}setAccountVerifyNewDeviceLogin(e,t){return g(this,void 0,void 0,function*(){A.A.isGuid(e)&&(yield this.singleUserStateProvider.get(e,y).update(()=>t,{shouldUpdate:e=>e!==t}))})}removeAccountActivity(e){return g(this,void 0,void 0,function*(){yield this.globalStateProvider.get(f).update(t=>(null==t||delete t[e],t),{shouldUpdate:t=>null!=(null==t?void 0:t[e])})})}delete(){return g(this,void 0,void 0,function*(){var e;try{null===(e=this.messagingService)||void 0===e||e.send("logout")}catch(t){throw this.logService.error(t),t}})}setShowHeader(e){return g(this,void 0,void 0,function*(){this._showHeader$.next(e)})}accountInfoEqual(e,t){var i,n;return null==e&&null==t||null!=e&&null!=t&&(e.email===t.email&&e.emailVerified===t.emailVerified&&e.name===t.name&&(null===(i=e.creationDate)||void 0===i?void 0:i.getTime())===(null===(n=t.creationDate)||void 0===n?void 0:n.getTime()))}setAccountInfo(e,t){return g(this,void 0,void 0,function*(){function i(e){return Object.assign(Object.assign({},e),t)}yield this.accountsState.update(t=>(t[e]=i(t[e]),t),{shouldUpdate:t=>{if(null==(null==t?void 0:t[e]))throw new Error("Account does not exist");return!this.accountInfoEqual(t[e],i(t[e]))}})})}}},97883(e,t,i){"use strict";i.d(t,{c:()=>s});var n=i(78781);class r{constructor(e){this.id=e.id,this.rawId=n.A.fromBufferToUrlB64(e.rawId),this.type=e.type,this.extensions={}}}class s extends r{constructor(e){if(super(e),!(e.response instanceof AuthenticatorAssertionResponse))throw new Error("Invalid authenticator response");this.response={authenticatorData:n.A.fromBufferToUrlB64(e.response.authenticatorData),signature:n.A.fromBufferToUrlB64(e.response.signature),clientDataJSON:n.A.fromBufferToUrlB64(e.response.clientDataJSON),userHandle:n.A.fromBufferToUrlB64(e.response.userHandle)}}static fromJSON(e){return Object.assign(Object.create(s.prototype),e)}}},37380(e,t,i){"use strict";i.d(t,{Ap:()=>C,q9:()=>E,tE:()=>n,Ow:()=>o,fz:()=>c});class n{}var r=i(31857),s=i(71804);const o={[s.R.Authenticator]:{type:s.R.Authenticator,name:null,description:null,priority:1,sort:2,premium:!1},[s.R.Yubikey]:{type:s.R.Yubikey,name:null,description:null,priority:3,sort:4,premium:!0},[s.R.Duo]:{type:s.R.Duo,name:"Duo",description:null,priority:2,sort:5,premium:!0},[s.R.OrganizationDuo]:{type:s.R.OrganizationDuo,name:"Duo (Organization)",description:null,priority:10,sort:6,premium:!1},[s.R.Email]:{type:s.R.Email,name:null,description:null,priority:0,sort:1,premium:!1},[s.R.WebAuthn]:{type:s.R.WebAuthn,name:null,description:null,priority:4,sort:3,premium:!1}},a=r.Zs.record(r.bh,"providers",{deserializer:e=>e}),l=new r.Zs(r.bh,"selected",{deserializer:e=>e});class c{}var d=i(12277),u=i(78781),h=i(20702);class A extends h.r{constructor(e){super(e),this.enabled=this.getResponseProperty("Enabled"),this.key=this.getResponseProperty("Key"),this.userVerificationToken=this.getResponseProperty("UserVerificationToken")}}class p extends h.r{constructor(e){super(e),this.enabled=this.getResponseProperty("Enabled"),this.host=this.getResponseProperty("Host"),this.clientSecret=this.getResponseProperty("ClientSecret"),this.clientId=this.getResponseProperty("ClientId")}}class g extends h.r{constructor(e){super(e),this.enabled=this.getResponseProperty("Enabled"),this.email=this.getResponseProperty("Email")}}class v extends h.r{constructor(e){super(e),this.enabled=this.getResponseProperty("Enabled"),this.type=this.getResponseProperty("Type")}}class m extends h.r{constructor(e){super(e),this.code=this.getResponseProperty("Code")}}var f=i(73556);class y extends h.r{constructor(e){super(e),this.enabled=this.getResponseProperty("Enabled"),this.key1=this.getResponseProperty("Key1"),this.key2=this.getResponseProperty("Key2"),this.key3=this.getResponseProperty("Key3"),this.key4=this.getResponseProperty("Key4"),this.key5=this.getResponseProperty("Key5"),this.nfc=this.getResponseProperty("Nfc")}}var b=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class C{constructor(e){this.apiService=e}getTwoFactorProviders(){return b(this,void 0,void 0,function*(){const e=yield this.apiService.send("GET","/two-factor",null,!0,!0);return new d.s(e,v)})}getTwoFactorOrganizationProviders(e){return b(this,void 0,void 0,function*(){const t=yield this.apiService.send("GET",`/organizations/${e}/two-factor`,null,!0,!0);return new d.s(t,v)})}getTwoFactorAuthenticator(e){return b(this,void 0,void 0,function*(){const t=yield this.apiService.send("POST","/two-factor/get-authenticator",e,!0,!0);return new A(t)})}putTwoFactorAuthenticator(e){return b(this,void 0,void 0,function*(){const t=yield this.apiService.send("PUT","/two-factor/authenticator",e,!0,!0);return new A(t)})}deleteTwoFactorAuthenticator(e){return b(this,void 0,void 0,function*(){const t=yield this.apiService.send("DELETE","/two-factor/authenticator",e,!0,!0);return new v(t)})}getTwoFactorEmail(e){return b(this,void 0,void 0,function*(){const t=yield this.apiService.send("POST","/two-factor/get-email",e,!0,!0);return new g(t)})}postTwoFactorEmailSetup(e){return b(this,void 0,void 0,function*(){return this.apiService.send("POST","/two-factor/send-email",e,!0,!1)})}postTwoFactorEmail(e){return b(this,void 0,void 0,function*(){return this.apiService.send("POST","/two-factor/send-email-login",e,!1,!1)})}putTwoFactorEmail(e){return b(this,void 0,void 0,function*(){const t=yield this.apiService.send("PUT","/two-factor/email",e,!0,!0);return new g(t)})}getTwoFactorDuo(e){return b(this,void 0,void 0,function*(){const t=yield this.apiService.send("POST","/two-factor/get-duo",e,!0,!0);return new p(t)})}getTwoFactorOrganizationDuo(e,t){return b(this,void 0,void 0,function*(){const i=yield this.apiService.send("POST",`/organizations/${e}/two-factor/get-duo`,t,!0,!0);return new p(i)})}putTwoFactorDuo(e){return b(this,void 0,void 0,function*(){const t=yield this.apiService.send("PUT","/two-factor/duo",e,!0,!0);return new p(t)})}putTwoFactorOrganizationDuo(e,t){return b(this,void 0,void 0,function*(){const i=yield this.apiService.send("PUT",`/organizations/${e}/two-factor/duo`,t,!0,!0);return new p(i)})}getTwoFactorYubiKey(e){return b(this,void 0,void 0,function*(){const t=yield this.apiService.send("POST","/two-factor/get-yubikey",e,!0,!0);return new y(t)})}putTwoFactorYubiKey(e){return b(this,void 0,void 0,function*(){const t=yield this.apiService.send("PUT","/two-factor/yubikey",e,!0,!0);return new y(t)})}getTwoFactorWebAuthn(e){return b(this,void 0,void 0,function*(){const t=yield this.apiService.send("POST","/two-factor/get-webauthn",e,!0,!0);return new f.j(t)})}getTwoFactorWebAuthnChallenge(e){return b(this,void 0,void 0,function*(){const t=yield this.apiService.send("POST","/two-factor/get-webauthn-challenge",e,!0,!0);return new f.Jq(t)})}putTwoFactorWebAuthn(e){return b(this,void 0,void 0,function*(){const t=e.deviceResponse.response,i=Object.assign({},e);i.deviceResponse={id:e.deviceResponse.id,rawId:btoa(e.deviceResponse.id),type:e.deviceResponse.type,extensions:e.deviceResponse.getClientExtensionResults(),response:{AttestationObject:u.A.fromBufferToB64(t.attestationObject),clientDataJson:u.A.fromBufferToB64(t.clientDataJSON)}};const n=yield this.apiService.send("PUT","/two-factor/webauthn",i,!0,!0);return new f.j(n)})}deleteTwoFactorWebAuthn(e){return b(this,void 0,void 0,function*(){const t=yield this.apiService.send("DELETE","/two-factor/webauthn",e,!0,!0);return new f.j(t)})}getTwoFactorRecover(e){return b(this,void 0,void 0,function*(){const t=yield this.apiService.send("POST","/two-factor/get-recover",e,!0,!0);return new m(t)})}putTwoFactorDisable(e){return b(this,void 0,void 0,function*(){const t=yield this.apiService.send("PUT","/two-factor/disable",e,!0,!0);return new v(t)})}putTwoFactorOrganizationDisable(e,t){return b(this,void 0,void 0,function*(){const i=yield this.apiService.send("PUT",`/organizations/${e}/two-factor/disable`,t,!0,!0);return new v(i)})}}var I=i(69783),w=i(68108),B=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class E{constructor(e,t,i,n){this.i18nService=e,this.platformUtilsService=t,this.globalStateProvider=i,this.twoFactorApiService=n,this.providersState=this.globalStateProvider.get(a),this.selectedState=this.globalStateProvider.get(l),this.providers$=this.providersState.state$.pipe((0,I.T)(e=>u.A.recordToMap(e))),this.selected$=this.selectedState.state$}init(){o[s.R.Email].name=this.i18nService.t("emailTitle"),o[s.R.Email].description=this.i18nService.t("emailDescV2"),o[s.R.Authenticator].name=this.i18nService.t("authenticatorAppTitle"),o[s.R.Authenticator].description=this.i18nService.t("authenticatorAppDescV2"),o[s.R.Duo].description=this.i18nService.t("duoDescV2"),o[s.R.OrganizationDuo].name="Duo ("+this.i18nService.t("organization")+")",o[s.R.OrganizationDuo].description=this.i18nService.t("duoOrganizationDesc"),o[s.R.WebAuthn].name=this.i18nService.t("webAuthnTitle"),o[s.R.WebAuthn].description=this.i18nService.t("webAuthnDesc"),o[s.R.Yubikey].name=this.i18nService.t("yubiKeyTitleV2"),o[s.R.Yubikey].description=this.i18nService.t("yubiKeyDesc")}getSupportedProviders(e){return B(this,void 0,void 0,function*(){const t=yield(0,w._)(this.providers$),i=[];return null==t||(t.has(s.R.OrganizationDuo)&&this.platformUtilsService.supportsDuo()&&i.push(o[s.R.OrganizationDuo]),t.has(s.R.Authenticator)&&i.push(o[s.R.Authenticator]),t.has(s.R.Yubikey)&&i.push(o[s.R.Yubikey]),t.has(s.R.Duo)&&this.platformUtilsService.supportsDuo()&&i.push(o[s.R.Duo]),t.has(s.R.WebAuthn)&&this.platformUtilsService.supportsWebAuthn(e)&&i.push(o[s.R.WebAuthn]),t.has(s.R.Email)&&i.push(o[s.R.Email])),i})}getDefaultProvider(e){return B(this,void 0,void 0,function*(){const t=yield(0,w._)(this.providers$),i=yield(0,w._)(this.selected$);if(null==t)return null;if(null!=i&&t.has(i))return i;let n=null,r=-1;return t.forEach((t,i)=>{const a=o[i];if(null!=a&&a.priority>r){if(i===s.R.WebAuthn&&!e)return;n=i,r=a.priority}}),n})}setSelectedProvider(e){return B(this,void 0,void 0,function*(){yield this.selectedState.update(()=>e)})}clearSelectedProvider(){return B(this,void 0,void 0,function*(){yield this.selectedState.update(()=>null)})}setProviders(e){return B(this,void 0,void 0,function*(){yield this.providersState.update(()=>e.twoFactorProviders2)})}clearProviders(){return B(this,void 0,void 0,function*(){yield this.providersState.update(()=>null)})}getProviders(){return(0,w._)(this.providers$)}getEnabledTwoFactorProviders(){return this.twoFactorApiService.getTwoFactorProviders()}getTwoFactorOrganizationProviders(e){return this.twoFactorApiService.getTwoFactorOrganizationProviders(e)}getTwoFactorAuthenticator(e){return this.twoFactorApiService.getTwoFactorAuthenticator(e)}getTwoFactorEmail(e){return this.twoFactorApiService.getTwoFactorEmail(e)}getTwoFactorDuo(e){return this.twoFactorApiService.getTwoFactorDuo(e)}getTwoFactorOrganizationDuo(e,t){return this.twoFactorApiService.getTwoFactorOrganizationDuo(e,t)}getTwoFactorYubiKey(e){return this.twoFactorApiService.getTwoFactorYubiKey(e)}getTwoFactorWebAuthn(e){return this.twoFactorApiService.getTwoFactorWebAuthn(e)}getTwoFactorWebAuthnChallenge(e){return this.twoFactorApiService.getTwoFactorWebAuthnChallenge(e)}getTwoFactorRecover(e){return this.twoFactorApiService.getTwoFactorRecover(e)}putTwoFactorAuthenticator(e){return this.twoFactorApiService.putTwoFactorAuthenticator(e)}deleteTwoFactorAuthenticator(e){return this.twoFactorApiService.deleteTwoFactorAuthenticator(e)}putTwoFactorEmail(e){return this.twoFactorApiService.putTwoFactorEmail(e)}putTwoFactorDuo(e){return this.twoFactorApiService.putTwoFactorDuo(e)}putTwoFactorOrganizationDuo(e,t){return this.twoFactorApiService.putTwoFactorOrganizationDuo(e,t)}putTwoFactorYubiKey(e){return this.twoFactorApiService.putTwoFactorYubiKey(e)}putTwoFactorWebAuthn(e){return this.twoFactorApiService.putTwoFactorWebAuthn(e)}deleteTwoFactorWebAuthn(e){return this.twoFactorApiService.deleteTwoFactorWebAuthn(e)}putTwoFactorDisable(e){return this.twoFactorApiService.putTwoFactorDisable(e)}putTwoFactorOrganizationDisable(e,t){return this.twoFactorApiService.putTwoFactorOrganizationDisable(e,t)}postTwoFactorEmailSetup(e){return this.twoFactorApiService.postTwoFactorEmailSetup(e)}postTwoFactorEmail(e){return this.twoFactorApiService.postTwoFactorEmail(e)}}},60512(e,t,i){"use strict";function n(e,t,i){if(null==e)throw new Error(`${t} is null or undefined.${i?` ${i}`:""}`)}i.d(t,{x:()=>n})},33331(e,t,i){"use strict";function n(e,t,i){if(!e||"number"==typeof e&&Number.isNaN(e))throw new Error(`${t} is falsy.${i?` ${i}`:""}`)}i.d(t,{B:()=>n})},97440(e,t,i){"use strict";i.d(t,{bZ:()=>s,j8:()=>r});const n="\\"+["/","-","."," "].join("\\").replace(" ","s"),r=(new RegExp(`[${n}]`,"g"),new RegExp(`[^\\d${n}]`,"g"),new RegExp("^(([1]{1}[0-2]{1})|(0?[1-9]{1}))$"),new RegExp("^2[0-1]{1}\\d{2}$"),{Never:"never",TenSeconds:"tenSeconds",TwentySeconds:"twentySeconds",ThirtySeconds:"thirtySeconds",OneMinute:"oneMinute",TwoMinutes:"twoMinutes",FiveMinutes:"fiveMinutes"}),s={Off:0,OnButtonClick:1,OnFieldFocus:2};Object.freeze(new Set(["ARTICLE","ASIDE","BLOCKQUOTE","BODY","DIV","FOOTER","H1","H2","H3","H4","H5","H6","HEADER","MAIN","NAV","P","SECTION","SPAN"]))},70342(e,t,i){"use strict";i.d(t,{N:()=>E,h:()=>B});var n=i(72135),r=i(69783),s=i(191),o=i(7356),a=i(3633),l=i(31857),c=i(81356),d=i(97440),u=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const h=new l.Ok(l.dp,"autofillOnPageLoad",{deserializer:e=>null!=e&&e,clearOn:[]}),A=new l.Ok(l.dp,"autofillOnPageLoadDefault",{deserializer:e=>null!=e&&e,clearOn:[]}),p=new l.Ok(l.dp,"autofillOnPageLoadCalloutIsDismissed",{deserializer:e=>null!=e&&e,clearOn:[]}),g=new l.Ok(l.dp,"autofillOnPageLoadPolicyToastHasDisplayed",{deserializer:e=>null!=e&&e,clearOn:[]}),v=new l.Ok(l.dp,"autoCopyTotp",{deserializer:e=>null==e||e,clearOn:[]}),m=new l.Zs(l.Vl,"inlineMenuVisibility",{deserializer:e=>null!=e?e:d.bZ.Off}),f=new l.Ok(l.dp,"showInlineMenuIdentities",{deserializer:e=>null==e||e,clearOn:[]}),y=new l.Ok(l.dp,"showInlineMenuCards",{deserializer:e=>null==e||e,clearOn:[]}),b=new l.Zs(l.dp,"enableContextMenu",{deserializer:e=>null==e||e}),C=new l.Ok(l.Vl,"clearClipboardDelay",{deserializer:e=>null!=e?e:d.j8.FiveMinutes,clearOn:[]}),I=new l.Ok(l.Vl,"hadPreMigrationClipboardValue",{deserializer:e=>null!=e&&e,clearOn:[]}),w=new l.Ok(l.dp,"clipboardSettingUpdatedNotificationDismissed",{deserializer:e=>null!=e&&e,clearOn:[]});class B{}class E{constructor(e,t,i,l){this.stateProvider=e,this.policyService=t,this.accountService=i,this.restrictedItemTypesService=l,this.autofillOnPageLoadState=this.stateProvider.getActive(h),this.autofillOnPageLoad$=this.autofillOnPageLoadState.state$.pipe((0,r.T)(e=>null!=e&&e)),this.autofillOnPageLoadDefaultState=this.stateProvider.getActive(A),this.autofillOnPageLoadDefault$=this.autofillOnPageLoadDefaultState.state$.pipe((0,r.T)(e=>null==e||e)),this.autofillOnPageLoadCalloutIsDismissedState=this.stateProvider.getActive(p),this.autofillOnPageLoadCalloutIsDismissed$=this.autofillOnPageLoadCalloutIsDismissedState.state$.pipe((0,r.T)(e=>null!=e&&e)),this.activateAutofillOnPageLoadFromPolicy$=this.accountService.activeAccount$.pipe(a.F6,(0,s.n)(e=>this.policyService.policyAppliesToUser$(o.tt.ActivateAutofill,e))),this.autofillOnPageLoadPolicyToastHasDisplayedState=this.stateProvider.getActive(g),this.autofillOnPageLoadPolicyToastHasDisplayed$=this.autofillOnPageLoadPolicyToastHasDisplayedState.state$.pipe((0,r.T)(e=>null!=e&&e)),this.autoCopyTotpState=this.stateProvider.getActive(v),this.autoCopyTotp$=this.autoCopyTotpState.state$.pipe((0,r.T)(e=>null==e||e)),this.inlineMenuVisibilityState=this.stateProvider.getGlobal(m),this.inlineMenuVisibility$=this.inlineMenuVisibilityState.state$.pipe((0,r.T)(e=>null!=e?e:d.bZ.Off)),this.showInlineMenuIdentitiesState=this.stateProvider.getActive(f),this.showInlineMenuIdentities$=this.showInlineMenuIdentitiesState.state$.pipe((0,r.T)(e=>null==e||e)),this.showInlineMenuCardsState=this.stateProvider.getActive(y),this.showInlineMenuCards$=(0,n.z)([this.showInlineMenuCardsState.state$.pipe((0,r.T)(e=>null==e||e)),this.restrictedItemTypesService.restricted$]).pipe((0,r.T)(([e,t])=>e&&!t.some(e=>e.cipherType===c.gC.Card))),this.enableContextMenuState=this.stateProvider.getGlobal(b),this.enableContextMenu$=this.enableContextMenuState.state$.pipe((0,r.T)(e=>null==e||e)),this.clearClipboardDelayState=this.stateProvider.getActive(C),this.clearClipboardDelay$=this.clearClipboardDelayState.state$.pipe((0,r.T)(e=>null!=e?e:d.j8.FiveMinutes)),this.hadPreMigrationClipboardValueState=this.stateProvider.getActive(I),this.hadPreMigrationClipboardValue$=this.hadPreMigrationClipboardValueState.state$.pipe((0,r.T)(e=>null!=e&&e)),this.clipboardSettingUpdatedNotificationDismissedState=this.stateProvider.getActive(w),this.clipboardSettingUpdatedNotificationDismissed$=this.clipboardSettingUpdatedNotificationDismissedState.state$.pipe((0,r.T)(e=>null!=e&&e)),this.showClipboardSettingUpdateNotification$=(0,n.z)([this.hadPreMigrationClipboardValue$,this.clipboardSettingUpdatedNotificationDismissed$]).pipe((0,r.T)(([e,t])=>e&&!t))}setAutofillOnPageLoad(e){return u(this,void 0,void 0,function*(){yield this.autofillOnPageLoadState.update(()=>e)})}setAutofillOnPageLoadDefault(e){return u(this,void 0,void 0,function*(){yield this.autofillOnPageLoadDefaultState.update(()=>e)})}setAutofillOnPageLoadCalloutIsDismissed(e){return u(this,void 0,void 0,function*(){yield this.autofillOnPageLoadCalloutIsDismissedState.update(()=>e)})}setAutofillOnPageLoadPolicyToastHasDisplayed(e){return u(this,void 0,void 0,function*(){yield this.autofillOnPageLoadPolicyToastHasDisplayedState.update(()=>e)})}setAutoCopyTotp(e){return u(this,void 0,void 0,function*(){yield this.autoCopyTotpState.update(()=>e)})}setInlineMenuVisibility(e){return u(this,void 0,void 0,function*(){yield this.inlineMenuVisibilityState.update(()=>e)})}setShowInlineMenuIdentities(e){return u(this,void 0,void 0,function*(){yield this.showInlineMenuIdentitiesState.update(()=>e)})}setShowInlineMenuCards(e){return u(this,void 0,void 0,function*(){yield this.showInlineMenuCardsState.update(()=>e)})}setEnableContextMenu(e){return u(this,void 0,void 0,function*(){yield this.enableContextMenuState.update(()=>e)})}setClearClipboardDelay(e){return u(this,void 0,void 0,function*(){yield this.clearClipboardDelayState.update(()=>e)})}setClipboardSettingUpdatedNotificationDismissed(e){return u(this,void 0,void 0,function*(){yield this.clipboardSettingUpdatedNotificationDismissedState.update(()=>e)})}}},54473(e,t,i){"use strict";i.d(t,{G:()=>k,V:()=>Q});var n=i(69783),r=i(72135),s=i(16385),o=i(6933),a=i(191),l=i(68108),c=i(6632),d=i(30285),u=i(84110),h=i(3633),A=i(82468),p=i(59777),g=i(78781),v=i(31857);function m(e,t,i){let n=i?Math.floor(e/700):Math.floor(e/2);n+=Math.floor(n/t);let r=0;for(;n>455;)n=Math.floor(n/35),r+=36;return r+Math.floor(36*n/(n+38))}function f(e){if(e.startsWith("["))return e;const t=e.lastIndexOf(":");let i=e,n="";if(t>=0){const r=e.slice(t+1);/^\d+$/.test(r)&&(i=e.slice(0,t),n=":"+r)}return i.split(".").map(e=>{if(e.toLowerCase().startsWith("xn--"))try{return function(e){if(0===e.length||e.length>59)throw new Error("Invalid punycode: label length out of range");const t=e.toLowerCase(),i=[];let n=0,r=128,s=72;const o=t.lastIndexOf("-");if(o>=0)for(let l=0;l<o;l++)i.push(t.charCodeAt(l));let a=o>=0?o+1:0;for(;a<t.length;){const e=n;let o=1;for(let i=36;;i+=36){if(a>=t.length)throw new Error("Invalid punycode");const e=t.charCodeAt(a++);let r;if(e>=97&&e<=122)r=e-97;else{if(!(e>=48&&e<=57))throw new Error("Invalid punycode character");r=e-48+26}if(r>Math.floor((Number.MAX_SAFE_INTEGER-n)/o))throw new Error("Invalid punycode: overflow");n+=r*o;const l=i<=s?1:i>=s+26?26:i-s;if(r<l)break;const c=36-l;if(o>Math.floor(Number.MAX_SAFE_INTEGER/c))throw new Error("Invalid punycode: overflow");o*=c}const l=i.length+1;if(s=m(n-e,l,0===e),r+=Math.floor(n/l),r>1114111)throw new Error("Invalid punycode: code point out of range");n%=l,i.splice(n,0,r),n++}return String.fromCodePoint(...i)}(e.slice(4))}catch(t){return e}return e}).join(".")+n}var y=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const b=new v.Zs(v.XH,"showFavicons",{deserializer:e=>null==e||e}),C=new v.Zs(v.XH,"neverDomains",{deserializer:e=>null!=e?e:null}),I=new v.Zs(v.XH,"blockedInteractionsUris",{deserializer:e=>null!=e?e:{}}),w=new v.Ok(v.XH,"equivalentDomains",{deserializer:e=>null!=e?e:null,clearOn:["logout"]}),B=new v.Ok(v.XH,"defaultUriMatchStrategy",{deserializer:e=>null!=e?e:p.L.Domain,clearOn:[]}),E=v.Zs.record(v.XH,"fillAssistTargetingRulesByServer",{deserializer:e=>null!=e?e:null}),S=new v.Zs(v.XH,"enableFillAssist",{deserializer:e=>null!=e&&e});class Q{}class k{constructor(e,t,i,l,u,g){this.stateProvider=e,this.policyService=t,this.accountService=i,this.configService=l,this.environmentService=u,this.authService=g,this.showFaviconsState=this.stateProvider.getGlobal(b),this.showFavicons$=this.showFaviconsState.state$.pipe((0,n.T)(e=>null==e||e)),this.neverDomainsState=this.stateProvider.getGlobal(C),this.neverDomains$=this.neverDomainsState.state$.pipe((0,n.T)(e=>null!=e?e:null)),this.blockedInteractionsUrisState=this.stateProvider.getGlobal(I),this.blockedInteractionsUris$=this.blockedInteractionsUrisState.state$.pipe((0,n.T)(e=>null!=e?e:{})),this.equivalentDomainsState=this.stateProvider.getActive(w),this.equivalentDomains$=this.equivalentDomainsState.state$.pipe((0,n.T)(e=>null!=e?e:null)),this.defaultUriMatchStrategyState=this.stateProvider.getActive(B),this.defaultUriMatchStrategy$=this.defaultUriMatchStrategyState.state$.pipe((0,n.T)(e=>null!=e?e:p.L.Domain)),this.enableFillAssistState=this.stateProvider.getGlobal(S),this.enableFillAssist$=this.enableFillAssistState.state$.pipe((0,n.T)(e=>null!=e&&e)),this.resolvedEnableFillAssist$=(0,r.z)([this.enableFillAssist$,this.configService.getFeatureFlag$(A.TO.FillAssistTargetingRules)]).pipe((0,n.T)(([e,t])=>e&&t),(0,s.F)(),(0,o.t)({bufferSize:1,refCount:!0})),this.targetingRules$=this.environmentService.environment$.pipe((0,a.n)(e=>this.stateProvider.getGlobal(E).state$.pipe((0,n.T)(t=>{var i;return null!==(i=null==t?void 0:t[e.getApiUrl()])&&void 0!==i?i:null}))),(0,o.t)({bufferSize:1,refCount:!0})),this.defaultUriMatchStrategyPolicy$=this.accountService.activeAccount$.pipe(h.F6,(0,a.n)(e=>this.policyService.policiesByType$(c.PolicyType.UriMatchDefaults,e)),d.Zc,(0,n.T)(e=>{var t;if(!(null==e?void 0:e.enabled)||null==(null==e?void 0:e.data))return null;const i=null===(t=e.data)||void 0===t?void 0:t.uriMatchDetection;return Object.values(p.L).includes(i)?i:null}),(0,o.t)({bufferSize:1,refCount:!0})),this.resolvedDefaultUriMatchStrategy$=(0,r.z)([this.defaultUriMatchStrategy$,this.defaultUriMatchStrategyPolicy$]).pipe((0,n.T)(([e,t])=>t||e),(0,o.t)({bufferSize:1,refCount:!0}))}setShowFavicons(e){return y(this,void 0,void 0,function*(){yield this.showFaviconsState.update(()=>e)})}setNeverDomains(e){return y(this,void 0,void 0,function*(){yield this.neverDomainsState.update(()=>e)})}setBlockedInteractionsUris(e){return y(this,void 0,void 0,function*(){yield this.blockedInteractionsUrisState.update(()=>e)})}setEquivalentDomains(e,t){return y(this,void 0,void 0,function*(){yield this.stateProvider.getUser(t,w).update(()=>e)})}setDefaultUriMatchStrategy(e){return y(this,void 0,void 0,function*(){yield this.defaultUriMatchStrategyState.update(()=>e)})}getUrlEquivalentDomains(e){return this.equivalentDomains$.pipe((0,n.T)(t=>{const i=g.A.getDomain(e);if(null==i||null==t)return new Set;const n=t.filter(e=>e.includes(i)).flat();return new Set(n)}))}setEnableFillAssist(e){return y(this,void 0,void 0,function*(){yield this.enableFillAssistState.update(()=>e,{shouldUpdate:t=>t!==e})})}setTargetingRules(e){return y(this,void 0,void 0,function*(){const t=(yield(0,l._)(this.environmentService.environment$)).getApiUrl();yield this.stateProvider.getGlobal(E).update(i=>Object.assign(Object.assign({},i),{[t]:e}),{shouldUpdate:i=>(null==i?void 0:i[t])!==e})})}getTargetingRulesForUrl(e){return y(this,void 0,void 0,function*(){var t,i,n;if(!(yield(0,l._)(this.resolvedEnableFillAssist$)))return null;const r=yield(0,l._)(this.accountService.activeAccount$);if(!r)return null;if((yield(0,l._)(this.authService.authStatusFor$(r.id)))!==u.J.Unlocked)return null;const s=yield(0,l._)(this.targetingRules$);if(!s||0===Object.keys(s).length)return null;let o;try{o=new URL(e)}catch(d){return null}let a=s[o.host];if(void 0===a&&o.host.startsWith("www.")&&(a=s[o.host.slice(4)]),void 0===a&&o.host.includes("xn--")){const e=f(o.host);a=s[e],void 0===a&&e.startsWith("www.")&&(a=s[e.slice(4)])}if(void 0===a)return null;if(null===a||!(null===(t=a.forms)||void 0===t?void 0:t.length)&&!a.pathnames)return[];const c=o.pathname.replace(/\/+$/,"")||"/";if(null!=a.pathnames&&c in a.pathnames){const e=a.pathnames[c];return(null===(i=null==e?void 0:e.forms)||void 0===i?void 0:i.length)?e.forms:[]}return(null===(n=a.forms)||void 0===n?void 0:n.length)?a.forms:null})}}},86204(e,t,i){"use strict";i.d(t,{jd:()=>n,ov:()=>r});i(78781),i(97440);function n(e){const t=null==e||""===e;let i=t?null:`${e}`;if(t||i&&/^[1-9]{1}\d{3}$/.test(i))return i;if(i=(i||"").replace(/[^\d]/g,"").replace(/^[0]+(?=.)/,""),""===i&&(i=null),i&&4!==i.length){const e=("00"+i).slice(-2);i=`${(new Date).getFullYear()}`.slice(0,2)+e}return i}function r(e){if(e){const{expMonth:t=null,expYear:i=null}=e;if(!i)return!1;const r=new Date,s=n(i),o=s?parseInt(s,10):NaN,a=o<r.getFullYear(),l=o>r.getFullYear();if(s&&a)return!0;if(s&&l)return!1;if(s&&t){const e=parseInt(t,10);if(!(e&&!isNaN(e)))return!1;return new Date(o,e-1+1,1)<=r}}return!1}},2922(e,t,i){"use strict";i.d(t,{k:()=>n});class n{}},58329(e,t,i){"use strict";i.d(t,{Q:()=>n});class n{}},48180(e,t,i){"use strict";i.d(t,{P:()=>n});class n{}},58605(e,t,i){"use strict";i.d(t,{Y:()=>n});class n{}},41445(e,t,i){"use strict";i.d(t,{Q:()=>n});class n{}},71628(e,t,i){"use strict";i.d(t,{C:()=>n});class n{}},304(e,t,i){"use strict";i.d(t,{l:()=>n});class n{}},3160(e,t,i){"use strict";i.d(t,{z:()=>n});class n{}},32706(e,t,i){"use strict";i.d(t,{A:()=>n});const n=Object.freeze({Premium:"Premium",Families:"Families"})},64447(e,t,i){"use strict";i.d(t,{eq:()=>n,$y:()=>l,MM:()=>r,OL:()=>s,K_:()=>c.K,ch:()=>a,D_:()=>o,LF:()=>c.L});var n,r,s,o;i(32706);!function(e){e[e.Card=0]="Card",e[e.BankAccount=1]="BankAccount",e[e.PayPal=2]="PayPal",e[e.BitPay=3]="BitPay",e[e.Credit=4]="Credit",e[e.WireTransfer=5]="WireTransfer",e[e.Check=8]="Check"}(n||(n={})),function(e){e[e.FamiliesForEnterprise=0]="FamiliesForEnterprise"}(r||(r={})),function(e){e[e.Free=0]="Free",e[e.FamiliesAnnually2019=1]="FamiliesAnnually2019",e[e.TeamsMonthly2019=2]="TeamsMonthly2019",e[e.TeamsAnnually2019=3]="TeamsAnnually2019",e[e.EnterpriseMonthly2019=4]="EnterpriseMonthly2019",e[e.EnterpriseAnnually2019=5]="EnterpriseAnnually2019",e[e.Custom=6]="Custom",e[e.FamiliesAnnually2025=7]="FamiliesAnnually2025",e[e.TeamsMonthly2020=8]="TeamsMonthly2020",e[e.TeamsAnnually2020=9]="TeamsAnnually2020",e[e.EnterpriseMonthly2020=10]="EnterpriseMonthly2020",e[e.EnterpriseAnnually2020=11]="EnterpriseAnnually2020",e[e.TeamsMonthly2023=12]="TeamsMonthly2023",e[e.TeamsAnnually2023=13]="TeamsAnnually2023",e[e.EnterpriseMonthly2023=14]="EnterpriseMonthly2023",e[e.EnterpriseAnnually2023=15]="EnterpriseAnnually2023",e[e.TeamsStarter2023=16]="TeamsStarter2023",e[e.TeamsMonthly=17]="TeamsMonthly",e[e.TeamsAnnually=18]="TeamsAnnually",e[e.EnterpriseMonthly=19]="EnterpriseMonthly",e[e.EnterpriseAnnually=20]="EnterpriseAnnually",e[e.TeamsStarter=21]="TeamsStarter",e[e.FamiliesAnnually=22]="FamiliesAnnually"}(s||(s={})),function(e){e[e.Charge=0]="Charge",e[e.Credit=1]="Credit",e[e.PromotionalCredit=2]="PromotionalCredit",e[e.ReferralCredit=3]="ReferralCredit",e[e.Refund=4]="Refund"}(o||(o={}));var a,l,c=i(68104);!function(e){e[e.PasswordManager=0]="PasswordManager",e[e.SecretsManager=1]="SecretsManager"}(a||(a={})),function(e){e[e.Monthly=0]="Monthly",e[e.Annually=1]="Annually"}(l||(l={}))},68104(e,t,i){"use strict";var n;function r(e){return e!==n.Free&&e!==n.TeamsStarter&&e!==n.Families}i.d(t,{K:()=>n,L:()=>r}),function(e){e[e.Free=0]="Free",e[e.Families=1]="Families",e[e.Teams=2]="Teams",e[e.Enterprise=3]="Enterprise",e[e.TeamsStarter=4]="TeamsStarter"}(n||(n={}))},55459(e,t,i){"use strict";i.d(t,{J:()=>n});class n{constructor(e,t,i){if(this.name="",this.businessName="",this.billingEmail="",this.additionalSeats=0,this.maxAutoscaleSeats=0,this.additionalStorageGb=0,this.premiumAccessAddon=!1,this.taxIdNumber="",this.billingAddressLine1="",this.billingAddressLine2="",this.billingAddressCity="",this.billingAddressState="",this.billingAddressPostalCode="",this.billingAddressCountry="",this.useSecretsManager=!1,this.additionalSmSeats=0,this.additionalServiceAccounts=0,this.isFromSecretsManagerTrial=!1,!e)throw new Error("Organization key is required");if(!t)throw new Error("Organization keys are required");if(!i)throw new Error("Collection name is required");this.key=e,this.keys=t,this.collectionName=i}}},97865(e,t,i){"use strict";i.d(t,{B:()=>r});var n=i(20702);class r extends n.r{constructor(e){var t;super(e),this.toDelete=!1,this.sponsoringOrganizationUserId=this.getResponseProperty("SponsoringOrganizationUserId"),this.friendlyName=this.getResponseProperty("FriendlyName"),this.offeredToEmail=this.getResponseProperty("OfferedToEmail"),this.planSponsorshipType=this.getResponseProperty("PlanSponsorshipType"),this.lastSyncDate=this.getResponseProperty("LastSyncDate"),this.validUntil=this.getResponseProperty("ValidUntil"),this.toDelete=null!==(t=this.getResponseProperty("ToDelete"))&&void 0!==t&&t,this.isAdminInitiated=this.getResponseProperty("IsAdminInitiated"),this.notes=this.getResponseProperty("Notes"),this.statusMessage=this.getResponseProperty("StatusMessage"),this.statusClass=this.getResponseProperty("StatusClass")}}},69138(e,t,i){"use strict";i.d(t,{P:()=>a,_:()=>o});var n=i(77788),r=i(20702),s=i(53674);class o extends n.t{constructor(e){super(e),this.storageName=this.getResponseProperty("StorageName"),this.storageGb=this.getResponseProperty("StorageGb");const t=this.getResponseProperty("Subscription");this.subscription=null==t?null:new s.y7(t);const i=this.getResponseProperty("UpcomingInvoice");this.upcomingInvoice=null==i?null:new s.V8(i);const n=this.getResponseProperty("CustomerDiscount");this.customerDiscount=null==n?null:new a(n),this.expiration=this.getResponseProperty("Expiration"),this.expirationWithoutGracePeriod=this.getResponseProperty("ExpirationWithoutGracePeriod"),this.exemptFromBillingAutomation=this.getResponseProperty("ExemptFromBillingAutomation")}}class a extends r.r{constructor(e){super(e),this.id=this.getResponseProperty("Id"),this.active=this.getResponseProperty("Active"),this.percentOff=this.getResponseProperty("PercentOff"),this.amountOff=this.getResponseProperty("AmountOff"),this.end=this.getResponseProperty("End"),this.durationInMonths=this.getResponseProperty("DurationInMonths"),this.appliesTo=this.getResponseProperty("AppliesTo")||[]}}},69580(e,t,i){"use strict";i.d(t,{tQ:()=>r});var n=i(20702);class r extends n.r{constructor(e){var t;super(e),this.type=this.getResponseProperty("Type"),this.productTier=this.getResponseProperty("ProductTier"),this.name=this.getResponseProperty("Name"),this.isAnnual=this.getResponseProperty("IsAnnual"),this.nameLocalizationKey=this.getResponseProperty("NameLocalizationKey"),this.descriptionLocalizationKey=this.getResponseProperty("DescriptionLocalizationKey"),this.canBeUsedByBusiness=this.getResponseProperty("CanBeUsedByBusiness"),this.trialPeriodDays=this.getResponseProperty("TrialPeriodDays"),this.hasSelfHost=this.getResponseProperty("HasSelfHost"),this.hasPolicies=this.getResponseProperty("HasPolicies"),this.hasMyItems=this.getResponseProperty("HasMyItems"),this.hasInviteLinks=null!==(t=this.getResponseProperty("HasInviteLinks"))&&void 0!==t&&t,this.hasGroups=this.getResponseProperty("HasGroups"),this.hasDirectory=this.getResponseProperty("HasDirectory"),this.hasEvents=this.getResponseProperty("HasEvents"),this.hasTotp=this.getResponseProperty("HasTotp"),this.has2fa=this.getResponseProperty("Has2fa"),this.hasApi=this.getResponseProperty("HasApi"),this.hasSso=this.getResponseProperty("HasSso"),this.hasResetPassword=this.getResponseProperty("HasResetPassword"),this.usersGetPremium=this.getResponseProperty("UsersGetPremium"),this.upgradeSortOrder=this.getResponseProperty("UpgradeSortOrder"),this.displaySortOrder=this.getResponseProperty("DisplaySortOrder"),this.legacyYear=this.getResponseProperty("LegacyYear"),this.disabled=this.getResponseProperty("Disabled");const i=this.getResponseProperty("PasswordManager"),n=this.getResponseProperty("SecretsManager");this.PasswordManager=null==i?null:new o(i),this.SecretsManager=null==n?null:new s(n)}}class s extends n.r{constructor(e){super(e),this.stripeSeatPlanId=this.getResponseProperty("StripeSeatPlanId"),this.baseSeats=this.getResponseProperty("BaseSeats"),this.basePrice=this.getResponseProperty("BasePrice"),this.seatPrice=this.getResponseProperty("SeatPrice"),this.hasAdditionalSeatsOption=this.getResponseProperty("HasAdditionalSeatsOption"),this.maxAdditionalSeats=this.getResponseProperty("MaxAdditionalSeats"),this.maxSeats=this.getResponseProperty("MaxSeats"),this.stripeServiceAccountPlanId=this.getResponseProperty("StripeServiceAccountPlanId"),this.additionalPricePerServiceAccount=this.getResponseProperty("AdditionalPricePerServiceAccount"),this.baseServiceAccount=this.getResponseProperty("BaseServiceAccount"),this.maxServiceAccount=this.getResponseProperty("MaxServiceAccount"),this.hasAdditionalServiceAccountOption=this.getResponseProperty("HasAdditionalServiceAccountOption"),this.maxAdditionalServiceAccounts=this.getResponseProperty("MaxAdditionalServiceAccounts"),this.maxProjects=this.getResponseProperty("MaxProjects")}}class o extends n.r{constructor(e){super(e),this.stripePlanId=this.getResponseProperty("StripePlanId"),this.stripeSeatPlanId=this.getResponseProperty("StripeSeatPlanId"),this.stripeProviderPortalSeatPlanId=this.getResponseProperty("StripeProviderPortalSeatPlanId"),this.stripeStoragePlanId=this.getResponseProperty("StripeStoragePlanId"),this.stripePremiumAccessPlanId=this.getResponseProperty("StripePremiumAccessPlanId"),this.basePrice=this.getResponseProperty("BasePrice"),this.seatPrice=this.getResponseProperty("SeatPrice"),this.providerPortalSeatPrice=this.getResponseProperty("ProviderPortalSeatPrice"),this.baseSeats=this.getResponseProperty("BaseSeats"),this.maxAdditionalSeats=this.getResponseProperty("MaxAdditionalSeats"),this.premiumAccessOptionPrice=this.getResponseProperty("PremiumAccessOptionPrice"),this.maxSeats=this.getResponseProperty("MaxSeats"),this.additionalStoragePricePerGb=this.getResponseProperty("AdditionalStoragePricePerGb"),this.hasAdditionalSeatsOption=this.getResponseProperty("HasAdditionalSeatsOption"),this.baseStorageGb=this.getResponseProperty("BaseStorageGb"),this.maxCollections=this.getResponseProperty("MaxCollections"),this.hasAdditionalStorageOption=this.getResponseProperty("HasAdditionalStorageOption"),this.maxAdditionalStorage=this.getResponseProperty("MaxAdditionalStorage"),this.hasPremiumAccessOption=this.getResponseProperty("HasPremiumAccessOption")}}},53674(e,t,i){"use strict";i.d(t,{V8:()=>l,X8:()=>s,y7:()=>o});var n=i(20702),r=i(69138);class s extends n.r{constructor(e){super(e),this.storageName=this.getResponseProperty("StorageName"),this.storageGb=this.getResponseProperty("StorageGb"),this.maxStorageGb=this.getResponseProperty("MaxStorageGb"),this.license=this.getResponseProperty("License"),this.expiration=this.getResponseProperty("Expiration");const t=this.getResponseProperty("Subscription"),i=this.getResponseProperty("UpcomingInvoice"),n=this.getResponseProperty("CustomerDiscount");this.subscription=null==t?null:new o(t),this.upcomingInvoice=null==i?null:new l(i),this.customerDiscount=null==n?null:new r.P(n)}}class o extends n.r{constructor(e){super(e),this.items=[],this.trialStartDate=this.getResponseProperty("TrialStartDate"),this.trialEndDate=this.getResponseProperty("TrialEndDate"),this.periodStartDate=this.getResponseProperty("PeriodStartDate"),this.periodEndDate=this.getResponseProperty("PeriodEndDate"),this.cancelledDate=this.getResponseProperty("CancelledDate"),this.cancelAtEndDate=this.getResponseProperty("CancelAtEndDate"),this.status=this.getResponseProperty("Status"),this.cancelled=this.getResponseProperty("Cancelled");const t=this.getResponseProperty("Items");null!=t&&(this.items=t.map(e=>new a(e))),this.collectionMethod=this.getResponseProperty("CollectionMethod"),this.suspensionDate=this.getResponseProperty("SuspensionDate"),this.unpaidPeriodEndDate=this.getResponseProperty("unpaidPeriodEndDate"),this.gracePeriod=this.getResponseProperty("GracePeriod")}}class a extends n.r{constructor(e){super(e),this.productId=this.getResponseProperty("ProductId"),this.name=this.getResponseProperty("Name"),this.amount=this.getResponseProperty("Amount"),this.quantity=this.getResponseProperty("Quantity"),this.interval=this.getResponseProperty("Interval"),this.sponsoredSubscriptionItem=this.getResponseProperty("SponsoredSubscriptionItem"),this.addonSubscriptionItem=this.getResponseProperty("AddonSubscriptionItem")}}class l extends n.r{constructor(e){super(e),this.date=this.getResponseProperty("Date"),this.amount=this.getResponseProperty("Amount")}}},58412(e,t,i){"use strict";i.d(t,{OU:()=>n,fQ:()=>s,ql:()=>r});const n={Premium:"premium",Families:"families"},r={Free:"free",Teams:"teams",Enterprise:"enterprise",Custom:"custom"},s={Annually:"annually",Monthly:"monthly"}},45977(e,t,i){"use strict";var n;i.d(t,{B:()=>n}),function(e){e[e.User_LoggedIn=1e3]="User_LoggedIn",e[e.User_ChangedPassword=1001]="User_ChangedPassword",e[e.User_Updated2fa=1002]="User_Updated2fa",e[e.User_Disabled2fa=1003]="User_Disabled2fa",e[e.User_Recovered2fa=1004]="User_Recovered2fa",e[e.User_FailedLogIn=1005]="User_FailedLogIn",e[e.User_FailedLogIn2fa=1006]="User_FailedLogIn2fa",e[e.User_ClientExportedVault=1007]="User_ClientExportedVault",e[e.User_UpdatedTempPassword=1008]="User_UpdatedTempPassword",e[e.User_MigratedKeyToKeyConnector=1009]="User_MigratedKeyToKeyConnector",e[e.User_RequestedDeviceApproval=1010]="User_RequestedDeviceApproval",e[e.User_TdeOffboardingPasswordSet=1011]="User_TdeOffboardingPasswordSet",e[e.Cipher_Created=1100]="Cipher_Created",e[e.Cipher_Updated=1101]="Cipher_Updated",e[e.Cipher_Deleted=1102]="Cipher_Deleted",e[e.Cipher_AttachmentCreated=1103]="Cipher_AttachmentCreated",e[e.Cipher_AttachmentDeleted=1104]="Cipher_AttachmentDeleted",e[e.Cipher_Shared=1105]="Cipher_Shared",e[e.Cipher_UpdatedCollections=1106]="Cipher_UpdatedCollections",e[e.Cipher_ClientViewed=1107]="Cipher_ClientViewed",e[e.Cipher_ClientToggledPasswordVisible=1108]="Cipher_ClientToggledPasswordVisible",e[e.Cipher_ClientToggledHiddenFieldVisible=1109]="Cipher_ClientToggledHiddenFieldVisible",e[e.Cipher_ClientToggledCardCodeVisible=1110]="Cipher_ClientToggledCardCodeVisible",e[e.Cipher_ClientCopiedPassword=1111]="Cipher_ClientCopiedPassword",e[e.Cipher_ClientCopiedHiddenField=1112]="Cipher_ClientCopiedHiddenField",e[e.Cipher_ClientCopiedCardCode=1113]="Cipher_ClientCopiedCardCode",e[e.Cipher_ClientAutofilled=1114]="Cipher_ClientAutofilled",e[e.Cipher_SoftDeleted=1115]="Cipher_SoftDeleted",e[e.Cipher_Restored=1116]="Cipher_Restored",e[e.Cipher_ClientToggledCardNumberVisible=1117]="Cipher_ClientToggledCardNumberVisible",e[e.Cipher_ClientToggledTOTPSeedVisible=1118]="Cipher_ClientToggledTOTPSeedVisible",e[e.Cipher_ClientCopiedBankAccountNumber=1119]="Cipher_ClientCopiedBankAccountNumber",e[e.Cipher_ClientCopiedBankAccountPin=1120]="Cipher_ClientCopiedBankAccountPin",e[e.Cipher_ClientToggledBankAccountNumberVisible=1121]="Cipher_ClientToggledBankAccountNumberVisible",e[e.Cipher_ClientToggledBankAccountPinVisible=1122]="Cipher_ClientToggledBankAccountPinVisible",e[e.Cipher_ClientCopiedLicenseNumber=1123]="Cipher_ClientCopiedLicenseNumber",e[e.Cipher_ClientToggledLicenseNumberVisible=1124]="Cipher_ClientToggledLicenseNumberVisible",e[e.Cipher_ClientCopiedPassportNumber=1125]="Cipher_ClientCopiedPassportNumber",e[e.Cipher_ClientToggledPassportNumberVisible=1126]="Cipher_ClientToggledPassportNumberVisible",e[e.Cipher_ClientCopiedSwiftCode=1127]="Cipher_ClientCopiedSwiftCode",e[e.Cipher_ClientToggledSwiftCodeVisible=1128]="Cipher_ClientToggledSwiftCodeVisible",e[e.Cipher_ClientCopiedIban=1129]="Cipher_ClientCopiedIban",e[e.Cipher_ClientToggledIbanVisible=1130]="Cipher_ClientToggledIbanVisible",e[e.Cipher_ClientCopiedNationalIdentificationNumber=1131]="Cipher_ClientCopiedNationalIdentificationNumber",e[e.Cipher_ClientToggledNationalIdentificationNumberVisible=1132]="Cipher_ClientToggledNationalIdentificationNumberVisible",e[e.Collection_Created=1300]="Collection_Created",e[e.Collection_Updated=1301]="Collection_Updated",e[e.Collection_Deleted=1302]="Collection_Deleted",e[e.Group_Created=1400]="Group_Created",e[e.Group_Updated=1401]="Group_Updated",e[e.Group_Deleted=1402]="Group_Deleted",e[e.OrganizationUser_Invited=1500]="OrganizationUser_Invited",e[e.OrganizationUser_Confirmed=1501]="OrganizationUser_Confirmed",e[e.OrganizationUser_Updated=1502]="OrganizationUser_Updated",e[e.OrganizationUser_Removed=1503]="OrganizationUser_Removed",e[e.OrganizationUser_UpdatedGroups=1504]="OrganizationUser_UpdatedGroups",e[e.OrganizationUser_UnlinkedSso=1505]="OrganizationUser_UnlinkedSso",e[e.OrganizationUser_ResetPassword_Enroll=1506]="OrganizationUser_ResetPassword_Enroll",e[e.OrganizationUser_ResetPassword_Withdraw=1507]="OrganizationUser_ResetPassword_Withdraw",e[e.OrganizationUser_AdminResetPassword=1508]="OrganizationUser_AdminResetPassword",e[e.OrganizationUser_ResetSsoLink=1509]="OrganizationUser_ResetSsoLink",e[e.OrganizationUser_FirstSsoLogin=1510]="OrganizationUser_FirstSsoLogin",e[e.OrganizationUser_Revoked=1511]="OrganizationUser_Revoked",e[e.OrganizationUser_Restored=1512]="OrganizationUser_Restored",e[e.OrganizationUser_ApprovedAuthRequest=1513]="OrganizationUser_ApprovedAuthRequest",e[e.OrganizationUser_RejectedAuthRequest=1514]="OrganizationUser_RejectedAuthRequest",e[e.OrganizationUser_Deleted=1515]="OrganizationUser_Deleted",e[e.OrganizationUser_Left=1516]="OrganizationUser_Left",e[e.OrganizationUser_AutomaticallyConfirmed=1517]="OrganizationUser_AutomaticallyConfirmed",e[e.OrganizationUser_SelfRevoked=1518]="OrganizationUser_SelfRevoked",e[e.OrganizationUser_AdminResetTwoFactor=1519]="OrganizationUser_AdminResetTwoFactor",e[e.OrganizationUser_Revoked_TwoFactorNonCompliance=1520]="OrganizationUser_Revoked_TwoFactorNonCompliance",e[e.OrganizationUser_Revoked_SingleOrganizationNonCompliance=1521]="OrganizationUser_Revoked_SingleOrganizationNonCompliance",e[e.OrganizationUser_NotificationBannerActionClicked=1522]="OrganizationUser_NotificationBannerActionClicked",e[e.OrganizationUser_Staged=1523]="OrganizationUser_Staged",e[e.OrganizationUser_InviteLinkAccepted=1524]="OrganizationUser_InviteLinkAccepted",e[e.Organization_Updated=1600]="Organization_Updated",e[e.Organization_PurgedVault=1601]="Organization_PurgedVault",e[e.Organization_ClientExportedVault=1602]="Organization_ClientExportedVault",e[e.Organization_VaultAccessed=1603]="Organization_VaultAccessed",e[e.Organization_EnabledSso=1604]="Organization_EnabledSso",e[e.Organization_DisabledSso=1605]="Organization_DisabledSso",e[e.Organization_EnabledKeyConnector=1606]="Organization_EnabledKeyConnector",e[e.Organization_DisabledKeyConnector=1607]="Organization_DisabledKeyConnector",e[e.Organization_SponsorshipsSynced=1608]="Organization_SponsorshipsSynced",e[e.Organization_CollectionManagementUpdated=1609]="Organization_CollectionManagementUpdated",e[e.Organization_CollectionManagement_LimitCollectionCreationEnabled=1610]="Organization_CollectionManagement_LimitCollectionCreationEnabled",e[e.Organization_CollectionManagement_LimitCollectionCreationDisabled=1611]="Organization_CollectionManagement_LimitCollectionCreationDisabled",e[e.Organization_CollectionManagement_LimitCollectionDeletionEnabled=1612]="Organization_CollectionManagement_LimitCollectionDeletionEnabled",e[e.Organization_CollectionManagement_LimitCollectionDeletionDisabled=1613]="Organization_CollectionManagement_LimitCollectionDeletionDisabled",e[e.Organization_CollectionManagement_LimitItemDeletionEnabled=1614]="Organization_CollectionManagement_LimitItemDeletionEnabled",e[e.Organization_CollectionManagement_LimitItemDeletionDisabled=1615]="Organization_CollectionManagement_LimitItemDeletionDisabled",e[e.Organization_CollectionManagement_AllowAdminAccessToAllCollectionItemsEnabled=1616]="Organization_CollectionManagement_AllowAdminAccessToAllCollectionItemsEnabled",e[e.Organization_CollectionManagement_AllowAdminAccessToAllCollectionItemsDisabled=1617]="Organization_CollectionManagement_AllowAdminAccessToAllCollectionItemsDisabled",e[e.Organization_ItemOrganization_Accepted=1618]="Organization_ItemOrganization_Accepted",e[e.Organization_ItemOrganization_Declined=1619]="Organization_ItemOrganization_Declined",e[e.Organization_AutoConfirmEnabled_Admin=1620]="Organization_AutoConfirmEnabled_Admin",e[e.Organization_AutoConfirmDisabled_Admin=1621]="Organization_AutoConfirmDisabled_Admin",e[e.Organization_AutoConfirmEnabled_Portal=1622]="Organization_AutoConfirmEnabled_Portal",e[e.Organization_AutoConfirmDisabled_Portal=1623]="Organization_AutoConfirmDisabled_Portal",e[e.Organization_InviteLinkCreated=1624]="Organization_InviteLinkCreated",e[e.Organization_InviteLinkDomainsEdited=1625]="Organization_InviteLinkDomainsEdited",e[e.Organization_InviteLinkDeleted=1626]="Organization_InviteLinkDeleted",e[e.Organization_InviteLinkClientCopied=1627]="Organization_InviteLinkClientCopied",e[e.Organization_InviteLinkRefreshed=1628]="Organization_InviteLinkRefreshed",e[e.Policy_Updated=1700]="Policy_Updated",e[e.ProviderUser_Invited=1800]="ProviderUser_Invited",e[e.ProviderUser_Confirmed=1801]="ProviderUser_Confirmed",e[e.ProviderUser_Updated=1802]="ProviderUser_Updated",e[e.ProviderUser_Removed=1803]="ProviderUser_Removed",e[e.ProviderOrganization_Created=1900]="ProviderOrganization_Created",e[e.ProviderOrganization_Added=1901]="ProviderOrganization_Added",e[e.ProviderOrganization_Removed=1902]="ProviderOrganization_Removed",e[e.ProviderOrganization_VaultAccessed=1903]="ProviderOrganization_VaultAccessed",e[e.OrganizationDomain_Added=2e3]="OrganizationDomain_Added",e[e.OrganizationDomain_Removed=2001]="OrganizationDomain_Removed",e[e.OrganizationDomain_Verified=2002]="OrganizationDomain_Verified",e[e.OrganizationDomain_NotVerified=2003]="OrganizationDomain_NotVerified",e[e.Secret_Retrieved=2100]="Secret_Retrieved",e[e.Secret_Created=2101]="Secret_Created",e[e.Secret_Edited=2102]="Secret_Edited",e[e.Secret_Deleted=2103]="Secret_Deleted",e[e.Secret_Permanently_Deleted=2104]="Secret_Permanently_Deleted",e[e.Secret_Restored=2105]="Secret_Restored",e[e.Project_Retrieved=2200]="Project_Retrieved",e[e.Project_Created=2201]="Project_Created",e[e.Project_Edited=2202]="Project_Edited",e[e.Project_Deleted=2203]="Project_Deleted",e[e.ServiceAccount_UserAdded=2300]="ServiceAccount_UserAdded",e[e.ServiceAccount_UserRemoved=2301]="ServiceAccount_UserRemoved",e[e.ServiceAccount_GroupAdded=2302]="ServiceAccount_GroupAdded",e[e.ServiceAccount_GroupRemoved=2303]="ServiceAccount_GroupRemoved",e[e.ServiceAccount_Created=2304]="ServiceAccount_Created",e[e.ServiceAccount_Deleted=2305]="ServiceAccount_Deleted",e[e.PhishingBlocker_SiteAccessed=2400]="PhishingBlocker_SiteAccessed",e[e.PhishingBlocker_SiteExited=2401]="PhishingBlocker_SiteExited",e[e.PhishingBlocker_Bypassed=2402]="PhishingBlocker_Bypassed",e[e.Send_Created_Text=2500]="Send_Created_Text",e[e.Send_Created_Text_WithEmailVerification=2501]="Send_Created_Text_WithEmailVerification",e[e.Send_Created_Text_WithPasswordProtection=2502]="Send_Created_Text_WithPasswordProtection",e[e.Send_Created_File=2503]="Send_Created_File",e[e.Send_Created_File_WithEmailVerification=2504]="Send_Created_File_WithEmailVerification",e[e.Send_Created_File_WithPasswordProtection=2505]="Send_Created_File_WithPasswordProtection",e[e.Send_Updated_Text=2506]="Send_Updated_Text",e[e.Send_Updated_File=2507]="Send_Updated_File",e[e.Send_Deleted_Text=2508]="Send_Deleted_Text",e[e.Send_Deleted_File=2509]="Send_Deleted_File",e[e.Send_Accessed_Text=2510]="Send_Accessed_Text",e[e.Send_Accessed_File=2511]="Send_Accessed_File"}(n||(n={}))},7751(e,t,i){"use strict";i.d(t,{c_:()=>p,mm:()=>h.m,p2:()=>n,Bx:()=>r.B,fH:()=>g,g8:()=>A});var n,r=i(45977);!function(e){e[e.SCIM=1]="SCIM",e[e.DomainVerification=2]="DomainVerification",e[e.PublicApi=3]="PublicApi",e[e.BitwardenPortal=5]="BitwardenPortal"}(n||(n={}));const s="userEvents",o="itemEvents",a="collectionEvents",l="groupEvents",c="organizationMemberEvents",d="organizationEvents",u="providerEvents";r.B.User_LoggedIn,r.B.User_ChangedPassword,r.B.User_Updated2fa,r.B.User_Disabled2fa,r.B.User_Recovered2fa,r.B.User_FailedLogIn,r.B.User_FailedLogIn2fa,r.B.User_ClientExportedVault,r.B.User_UpdatedTempPassword,r.B.User_MigratedKeyToKeyConnector,r.B.User_RequestedDeviceApproval,r.B.User_TdeOffboardingPasswordSet,r.B.Cipher_Created,r.B.Cipher_Updated,r.B.Cipher_Deleted,r.B.Cipher_AttachmentCreated,r.B.Cipher_AttachmentDeleted,r.B.Cipher_Shared,r.B.Cipher_UpdatedCollections,r.B.Cipher_ClientViewed,r.B.Cipher_ClientToggledPasswordVisible,r.B.Cipher_ClientToggledHiddenFieldVisible,r.B.Cipher_ClientToggledCardCodeVisible,r.B.Cipher_ClientCopiedPassword,r.B.Cipher_ClientCopiedHiddenField,r.B.Cipher_ClientCopiedCardCode,r.B.Cipher_ClientAutofilled,r.B.Cipher_SoftDeleted,r.B.Cipher_Restored,r.B.Cipher_ClientToggledCardNumberVisible,r.B.Cipher_ClientToggledTOTPSeedVisible,r.B.Cipher_ClientCopiedBankAccountNumber,r.B.Cipher_ClientCopiedBankAccountPin,r.B.Cipher_ClientToggledBankAccountNumberVisible,r.B.Cipher_ClientToggledBankAccountPinVisible,r.B.Cipher_ClientCopiedLicenseNumber,r.B.Cipher_ClientToggledLicenseNumberVisible,r.B.Cipher_ClientCopiedPassportNumber,r.B.Cipher_ClientToggledPassportNumberVisible,r.B.Cipher_ClientCopiedNationalIdentificationNumber,r.B.Cipher_ClientToggledNationalIdentificationNumberVisible,r.B.Cipher_ClientCopiedIban,r.B.Cipher_ClientToggledIbanVisible,r.B.Cipher_ClientCopiedSwiftCode,r.B.Cipher_ClientToggledSwiftCodeVisible,r.B.Collection_Created,r.B.Collection_Updated,r.B.Collection_Deleted,r.B.Group_Created,r.B.Group_Updated,r.B.Group_Deleted,r.B.OrganizationUser_Invited,r.B.OrganizationUser_Confirmed,r.B.OrganizationUser_Updated,r.B.OrganizationUser_Removed,r.B.OrganizationUser_UpdatedGroups,r.B.OrganizationUser_UnlinkedSso,r.B.OrganizationUser_ResetPassword_Enroll,r.B.OrganizationUser_ResetPassword_Withdraw,r.B.OrganizationUser_AdminResetPassword,r.B.OrganizationUser_AdminResetTwoFactor,r.B.OrganizationUser_ResetSsoLink,r.B.OrganizationUser_FirstSsoLogin,r.B.OrganizationUser_Revoked,r.B.OrganizationUser_Restored,r.B.OrganizationUser_ApprovedAuthRequest,r.B.OrganizationUser_RejectedAuthRequest,r.B.OrganizationUser_Deleted,r.B.OrganizationUser_Left,r.B.OrganizationUser_SelfRevoked,r.B.OrganizationUser_Revoked_TwoFactorNonCompliance,r.B.OrganizationUser_Revoked_SingleOrganizationNonCompliance,r.B.OrganizationUser_NotificationBannerActionClicked,r.B.Organization_Updated,r.B.Organization_PurgedVault,r.B.Organization_ClientExportedVault,r.B.Organization_VaultAccessed,r.B.Organization_EnabledSso,r.B.Organization_DisabledSso,r.B.Organization_EnabledKeyConnector,r.B.Organization_DisabledKeyConnector,r.B.Organization_SponsorshipsSynced,r.B.Organization_CollectionManagementUpdated,r.B.Organization_CollectionManagement_LimitCollectionCreationEnabled,r.B.Organization_CollectionManagement_LimitCollectionCreationDisabled,r.B.Organization_CollectionManagement_LimitCollectionDeletionEnabled,r.B.Organization_CollectionManagement_LimitCollectionDeletionDisabled,r.B.Organization_CollectionManagement_LimitItemDeletionEnabled,r.B.Organization_CollectionManagement_LimitItemDeletionDisabled,r.B.Organization_CollectionManagement_AllowAdminAccessToAllCollectionItemsEnabled,r.B.Organization_CollectionManagement_AllowAdminAccessToAllCollectionItemsDisabled,r.B.ProviderUser_Invited,r.B.ProviderUser_Confirmed,r.B.ProviderUser_Updated,r.B.ProviderUser_Removed,r.B.ProviderOrganization_Created,r.B.ProviderOrganization_Added,r.B.ProviderOrganization_Removed,r.B.ProviderOrganization_VaultAccessed;var h=i(4776);class A{constructor(e){this.message=e.message,this.humanReadableMessage=e.humanReadableMessage,this.appIcon=e.appIcon,this.appName=e.appName,this.userId=e.userId,this.actingUserId=e.actingUserId,this.userName=e.userName,this.userEmail=e.userEmail,this.date=e.date,this.ip=e.ip,this.type=e.type,this.installationId=e.installationId,this.systemUser=e.systemUser,this.serviceAccountId=e.serviceAccountId}}class p{}class g{}i(64503)},51886(e,t,i){"use strict";i.d(t,{R:()=>n});class n{static fromJSON(e){return Object.assign(new n,e)}}},4776(e,t,i){"use strict";i.d(t,{m:()=>r});var n=i(20702);class r extends n.r{constructor(e){super(e),this.type=this.getResponseProperty("Type"),this.userId=this.getResponseProperty("UserId"),this.organizationId=this.getResponseProperty("OrganizationId"),this.providerId=this.getResponseProperty("ProviderId"),this.cipherId=this.getResponseProperty("CipherId"),this.collectionId=this.getResponseProperty("CollectionId"),this.groupId=this.getResponseProperty("GroupId"),this.policyId=this.getResponseProperty("PolicyId"),this.organizationUserId=this.getResponseProperty("OrganizationUserId"),this.providerUserId=this.getResponseProperty("ProviderUserId"),this.providerOrganizationId=this.getResponseProperty("ProviderOrganizationId"),this.actingUserId=this.getResponseProperty("ActingUserId"),this.date=this.getResponseProperty("Date"),this.deviceType=this.getResponseProperty("DeviceType"),this.ipAddress=this.getResponseProperty("IpAddress"),this.installationId=this.getResponseProperty("InstallationId"),this.systemUser=this.getResponseProperty("SystemUser"),this.domainName=this.getResponseProperty("DomainName"),this.secretId=this.getResponseProperty("SecretId"),this.projectId=this.getResponseProperty("ProjectId"),this.serviceAccountId=this.getResponseProperty("ServiceAccountId"),this.grantedServiceAccountId=this.getResponseProperty("GrantedServiceAccountId"),this.sendId=this.getResponseProperty("SendId")}}},94644(e,t,i){"use strict";i.d(t,{A:()=>a});var n=i(12277),r=i(4776),s=i(88271),o=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class a{constructor(e){this.apiService=e}getEventsSend(e,t,i,a,l){return o(this,void 0,void 0,function*(){const o=yield this.apiService.send("GET",(0,s.o)("/organizations/"+e+"/sends/"+t+"/events",i,a,l),null,!0,!0);return new n.s(o,r.m)})}}},88271(e,t,i){"use strict";function n(e,t,i,n){return null!=t&&(e+="?start="+t),null!=i&&(e+=e.indexOf("?")>-1?"&":"?",e+="end="+i),null!=n&&(e+=e.indexOf("?")>-1?"&":"?",e+="continuationToken="+n),e}i.d(t,{o:()=>n})},64503(e,t,i){"use strict";i.d(t,{k:()=>s});var n=i(31857),r=i(51886);const s=n.Ok.array(n.Qb,"events",{deserializer:e=>r.R.fromJSON(e),clearOn:["logout"]})},82468(e,t,i){"use strict";var n;i.d(t,{TO:()=>n,Y6:()=>o}),function(e){e.GenerateInviteLink="pm-32497-generate-invite-link",e.PM35153CollectionSdkDecryption="pm-35153-collection-sdk-decryption",e.PolicyDrawers="pm-34804-policy-drawers",e.PoliciesInAcceptedState="pm-34145-policies-in-accepted-state",e.StagedStatus="pm-34423-staged-status",e.SafariAccountSwitching="pm-5594-safari-account-switching",e.PM30811_ChangeEmailNewAuthenticationApis="pm-30811-change-email-new-authentication-apis",e.PM31088_MasterPasswordServiceEmitSalt="pm-31088-master-password-service-emit-salt",e.PM32413_MultiClientPasswordManagement="pm-32413-multi-client-password-management",e.PM34210_DesktopAddDevices="pm-34210-desktop-add-devices",e.PM4516_DevicesLastActivityDate="pm-4516-devices-add-last-activity-date",e.UseUndeterminedCipherScenarioTriggeringLogic="undetermined-cipher-scenario-logic",e.MacOsNativeCredentialSync="macos-native-credential-sync",e.EnableAutofillTriage="enable-autofill-triage",e.FillAssistTargetingRules="fill-assist-targeting-rules",e.DefaultPasswordManagerPrompt="pm-39071-default-password-manager-prompt",e.WindowsDesktopAutotype="windows-desktop-autotype",e.WindowsDesktopAutotypeGA="windows-desktop-autotype-ga",e.SSHAgentV2="ssh-agent-v2",e.SSHecdsa="ssh-ecdsa",e.PM29108_EnablePersonalDiscounts="pm-29108-enable-personal-discounts",e.PM24032_NewNavigationPremiumUpgradeButton="pm-24032-new-navigation-premium-upgrade-button",e.PM23713_PremiumBadgeOpensNewPremiumUpgradeDialog="pm-23713-premium-badge-opens-new-premium-upgrade-dialog",e.PM34515_BrowserDesktopCheckout="pm-34515-browser-desktop-checkout",e.DebugDisableSelfHostPremiumCheck="debug-disable-self-host-premium-check",e.PM29593_PremiumToOrganizationUpgrade="pm-29593-premium-to-organization-upgrade",e.PrivateKeyRegeneration="pm-12241-private-key-regeneration",e.EnrollAeadOnKeyRotation="enroll-aead-on-key-rotation",e.ForceUpdateKDFSettings="pm-18021-force-update-kdf-settings",e.SdkKeyRotation="pm-30144-sdk-key-rotation",e.SharedUnlockPart1="innovation-sprint-shared-unlock-part-1",e.SharedUnlockPart2="innovation-sprint-shared-unlock-part-2",e.NoLogoutOnKdfChange="pm-23995-no-logout-on-kdf-change",e.PM27279_V2RegistrationTdeJit="pm-27279-v2-registration-tde-jit",e.EnableAccountEncryptionV2KeyConnectorRegistration="enable-account-encryption-v2-key-connector-registration",e.EnableAccountEncryptionV2JitPasswordRegistration="enable-account-encryption-v2-jit-password-registration",e.UnlockKeyConnectorWithSdk="use-unlock-service-for-key-connector-login",e.SdkKeyConnectorMigration="use-sdk-for-key-connector-migration",e.BiometricsSDKIPC="biometrics-sdk-ipc",e.NoLogoutOnKeyUpgradeRotation="pm-31050-no-logout-key-upgrade-rotation",e.ForceUpgradeV2Encryption="force-upgrade-v2-encryption",e.EnableAccountEncryptionV2UserPasswordRegistration="pm-27278-v2-password-registration",e.SendControls="pm-31885-send-controls",e.Pm30110SdkSendsApi="pm-30110-sdk-sends-api",e.SendEventLogging="pm-36560-send-event-logging",e.EventManagementForBlumira="event-management-for-blumira",e.EventManagementForDataDogAndCrowdStrike="event-management-for-datadog-and-crowdstrike",e.EventManagementForHuntress="event-management-for-huntress",e.EventManagementForSplunk="event-management-for-splunk",e.PhishingDetection="phishing-detection",e.Milestone11AppPageImprovements="pm-30538-dirt-milestone-11-app-page-improvements",e.AccessIntelligenceNewArchitecture="pm-31936-access-intelligence-new-architecture",e.AccessIntelligenceReportFileStorage="pm-31920-access-intelligence-azure-file-storage",e.AccessIntelligenceAdoptionUxImprovements="pm-34723-access-intelligence-adoption-ux-improvements",e.PM32009NewItemTypes="pm-32009-new-item-types",e.PM28190CipherSharingOpsToSdk="pm-28190-cipher-sharing-ops-to-sdk",e.PM22134SdkCipherListView="pm-22134-sdk-cipher-list-view",e.PM27632_SdkCipherCrudOperations="pm-27632-cipher-crud-operations-to-sdk",e.PM28191CipherAdminOpsToSdk="pm-28191-cipher-admin-ops-to-sdk",e.PM28192_CipherAttachmentOpsToSdk="pm-28192-cipher-attachment-ops-to-sdk",e.PM29438_DialogWithExtensionPromptAccountAge="pm-29438-dialog-with-extension-prompt-account-age",e.PM31039ItemActionInExtension="pm-31039-item-action-in-extension",e.PM32180PremiumUpsellAccountAge="pm-32180-premium-upsell-account-age",e.PM28091_AddCopyAndQuickLaunchActions="pm-28091-add-copy-and-quick-launch-actions",e.PM34500_StrictCipherDecryption="pm-34500-strict-cipher-decryption",e.PM31948_OrgUserNotificationBanner="pm-31948-org-user-notification-banner",e.PM29968_FillAfterSave="pm-29968-fill-after-save",e.PM32016RemoveAtRiskCallout="pm-32016-remove-at-risk-callout",e.PM37785_VaultBatchBar="pm-37785-vault-batch-bar",e.PM37785_DesktopVaultBatchBar="pm-37785-desktop-vault-batch-bar",e.PM32380_BtnTextAddCreate="pm-32380-btn-text-add-create",e.FedRampGovRegion="fedramp-gov-region",e.ContentScriptIpcChannelFramework="content-script-ipc-channel-framework",e.WebAuthnRelatedOrigins="pm-30529-webauthn-related-origins",e.PM34410AttachmentUploadProgress="pm-34410-attachment-upload-progress",e.ElectronStorageCache="pm-32783-electron-storage-cache",e.DesktopSettingsDialog="desktop-ui-settings-dialog"}(n||(n={}));const r=!1,s={[n.GenerateInviteLink]:r,[n.StagedStatus]:r,[n.PM35153CollectionSdkDecryption]:r,[n.PolicyDrawers]:r,[n.PoliciesInAcceptedState]:r,[n.FillAssistTargetingRules]:r,[n.UseUndeterminedCipherScenarioTriggeringLogic]:r,[n.MacOsNativeCredentialSync]:r,[n.EnableAutofillTriage]:r,[n.DefaultPasswordManagerPrompt]:r,[n.PM31039ItemActionInExtension]:r,[n.WindowsDesktopAutotype]:r,[n.WindowsDesktopAutotypeGA]:r,[n.SSHAgentV2]:r,[n.SSHecdsa]:r,[n.SendControls]:r,[n.Pm30110SdkSendsApi]:r,[n.SendEventLogging]:r,[n.EventManagementForBlumira]:r,[n.EventManagementForDataDogAndCrowdStrike]:r,[n.EventManagementForHuntress]:r,[n.EventManagementForSplunk]:r,[n.PhishingDetection]:r,[n.Milestone11AppPageImprovements]:r,[n.AccessIntelligenceNewArchitecture]:r,[n.AccessIntelligenceReportFileStorage]:r,[n.AccessIntelligenceAdoptionUxImprovements]:r,[n.PM32009NewItemTypes]:r,[n.PM22134SdkCipherListView]:r,[n.PM27632_SdkCipherCrudOperations]:r,[n.PM28191CipherAdminOpsToSdk]:r,[n.PM28190CipherSharingOpsToSdk]:r,[n.PM28192_CipherAttachmentOpsToSdk]:r,[n.PM29438_DialogWithExtensionPromptAccountAge]:5,[n.PM32180PremiumUpsellAccountAge]:7,[n.PM28091_AddCopyAndQuickLaunchActions]:r,[n.PM34500_StrictCipherDecryption]:r,[n.PM31948_OrgUserNotificationBanner]:r,[n.PM29968_FillAfterSave]:r,[n.PM32016RemoveAtRiskCallout]:r,[n.PM37785_VaultBatchBar]:r,[n.PM37785_DesktopVaultBatchBar]:r,[n.PM32380_BtnTextAddCreate]:r,[n.SafariAccountSwitching]:r,[n.PM30811_ChangeEmailNewAuthenticationApis]:r,[n.PM31088_MasterPasswordServiceEmitSalt]:r,[n.PM32413_MultiClientPasswordManagement]:r,[n.PM34210_DesktopAddDevices]:r,[n.PM4516_DevicesLastActivityDate]:r,[n.PM29108_EnablePersonalDiscounts]:r,[n.PM24032_NewNavigationPremiumUpgradeButton]:r,[n.PM23713_PremiumBadgeOpensNewPremiumUpgradeDialog]:r,[n.PM34515_BrowserDesktopCheckout]:r,[n.DebugDisableSelfHostPremiumCheck]:r,[n.PM29593_PremiumToOrganizationUpgrade]:r,[n.PrivateKeyRegeneration]:r,[n.EnrollAeadOnKeyRotation]:r,[n.ForceUpdateKDFSettings]:r,[n.SdkKeyRotation]:r,[n.SharedUnlockPart1]:r,[n.SharedUnlockPart2]:r,[n.NoLogoutOnKdfChange]:r,[n.NoLogoutOnKeyUpgradeRotation]:r,[n.ForceUpgradeV2Encryption]:r,[n.PM27279_V2RegistrationTdeJit]:r,[n.EnableAccountEncryptionV2KeyConnectorRegistration]:r,[n.EnableAccountEncryptionV2JitPasswordRegistration]:r,[n.UnlockKeyConnectorWithSdk]:r,[n.SdkKeyConnectorMigration]:r,[n.BiometricsSDKIPC]:r,[n.EnableAccountEncryptionV2UserPasswordRegistration]:r,[n.FedRampGovRegion]:r,[n.ContentScriptIpcChannelFramework]:r,[n.WebAuthnRelatedOrigins]:r,[n.PM34410AttachmentUploadProgress]:r,[n.ElectronStorageCache]:r,[n.DesktopSettingsDialog]:r};function o(e,t){return null==(null==e?void 0:e.featureStates)||null==e.featureStates[t]?s[t]:e.featureStates[t]}},51151(e,t,i){"use strict";i.d(t,{sK:()=>r.s,bq:()=>n,mz:()=>s,kG:()=>o,_n:()=>l,Oc:()=>c});var n,r=i(2738);!function(e){e[e.Android=0]="Android",e[e.iOS=1]="iOS",e[e.ChromeExtension=2]="ChromeExtension",e[e.FirefoxExtension=3]="FirefoxExtension",e[e.OperaExtension=4]="OperaExtension",e[e.EdgeExtension=5]="EdgeExtension",e[e.WindowsDesktop=6]="WindowsDesktop",e[e.MacOsDesktop=7]="MacOsDesktop",e[e.LinuxDesktop=8]="LinuxDesktop",e[e.ChromeBrowser=9]="ChromeBrowser",e[e.FirefoxBrowser=10]="FirefoxBrowser",e[e.OperaBrowser=11]="OperaBrowser",e[e.EdgeBrowser=12]="EdgeBrowser",e[e.IEBrowser=13]="IEBrowser",e[e.UnknownBrowser=14]="UnknownBrowser",e[e.AndroidAmazon=15]="AndroidAmazon",e[e.UWP=16]="UWP",e[e.SafariBrowser=17]="SafariBrowser",e[e.VivaldiBrowser=18]="VivaldiBrowser",e[e.VivaldiExtension=19]="VivaldiExtension",e[e.SafariExtension=20]="SafariExtension",e[e.SDK=21]="SDK",e[e.Server=22]="Server",e[e.WindowsCLI=23]="WindowsCLI",e[e.MacOsCLI=24]="MacOsCLI",e[e.LinuxCLI=25]="LinuxCLI",e[e.DuckDuckGoBrowser=26]="DuckDuckGoBrowser"}(n||(n={}));const s={[n.Android]:{category:"mobile",platform:"Android"},[n.iOS]:{category:"mobile",platform:"iOS"},[n.AndroidAmazon]:{category:"mobile",platform:"Amazon"},[n.ChromeExtension]:{category:"extension",platform:"Chrome"},[n.FirefoxExtension]:{category:"extension",platform:"Firefox"},[n.OperaExtension]:{category:"extension",platform:"Opera"},[n.EdgeExtension]:{category:"extension",platform:"Edge"},[n.VivaldiExtension]:{category:"extension",platform:"Vivaldi"},[n.SafariExtension]:{category:"extension",platform:"Safari"},[n.ChromeBrowser]:{category:"webApp",platform:"Chrome"},[n.FirefoxBrowser]:{category:"webApp",platform:"Firefox"},[n.OperaBrowser]:{category:"webApp",platform:"Opera"},[n.EdgeBrowser]:{category:"webApp",platform:"Edge"},[n.IEBrowser]:{category:"webApp",platform:"IE"},[n.SafariBrowser]:{category:"webApp",platform:"Safari"},[n.VivaldiBrowser]:{category:"webApp",platform:"Vivaldi"},[n.DuckDuckGoBrowser]:{category:"webApp",platform:"DuckDuckGo"},[n.UnknownBrowser]:{category:"webApp",platform:"Unknown"},[n.WindowsDesktop]:{category:"desktop",platform:"Windows"},[n.MacOsDesktop]:{category:"desktop",platform:"macOS"},[n.LinuxDesktop]:{category:"desktop",platform:"Linux"},[n.UWP]:{category:"desktop",platform:"Windows UWP"},[n.WindowsCLI]:{category:"cli",platform:"Windows"},[n.MacOsCLI]:{category:"cli",platform:"macOS"},[n.LinuxCLI]:{category:"cli",platform:"Linux"},[n.SDK]:{category:"sdk",platform:""},[n.Server]:{category:"server",platform:""}};var o;!function(e){e[e.Continue=100]="Continue",e[e.SwitchingProtocols=101]="SwitchingProtocols",e[e.Processing=102]="Processing",e[e.Ok=200]="Ok",e[e.Created=201]="Created",e[e.Accepted=202]="Accepted",e[e.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",e[e.NoContent=204]="NoContent",e[e.ResetContent=205]="ResetContent",e[e.PartialContent=206]="PartialContent",e[e.MultiStatus=207]="MultiStatus",e[e.AlreadyReported=208]="AlreadyReported",e[e.ImUsed=226]="ImUsed",e[e.MultipleChoices=300]="MultipleChoices",e[e.MovedPermanently=301]="MovedPermanently",e[e.Found=302]="Found",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.SwitchProxy=306]="SwitchProxy",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.LengthRequired=411]="LengthRequired",e[e.PreconditionFailed=412]="PreconditionFailed",e[e.PayloadTooLarge=413]="PayloadTooLarge",e[e.UriTooLong=414]="UriTooLong",e[e.UnsupportedMediaType=415]="UnsupportedMediaType",e[e.RangeNotSatisfiable=416]="RangeNotSatisfiable",e[e.ExpectationFailed=417]="ExpectationFailed",e[e.IAmATeapot=418]="IAmATeapot",e[e.MisdirectedRequest=421]="MisdirectedRequest",e[e.UnprocessableEntity=422]="UnprocessableEntity",e[e.Locked=423]="Locked",e[e.FailedDependency=424]="FailedDependency",e[e.UpgradeRequired=426]="UpgradeRequired",e[e.PreconditionRequired=428]="PreconditionRequired",e[e.TooManyRequests=429]="TooManyRequests",e[e.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",e[e.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout",e[e.HttpVersionNotSupported=505]="HttpVersionNotSupported",e[e.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",e[e.InsufficientStorage=507]="InsufficientStorage",e[e.LoopDetected=508]="LoopDetected",e[e.NotExtended=510]="NotExtended",e[e.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired"}(o||(o={}));Object.freeze({Integration:"integration",SDK:"sdk",SSO:"sso",SCIM:"scim",BWDC:"bwdc",EVENT:"event",DEVICE:"device"});var a,l;!function(e){e[e.One=1]="One",e[e.Latest=1]="Latest"}(a||(a={})),function(e){e[e.SyncCipherUpdate=0]="SyncCipherUpdate",e[e.SyncCipherCreate=1]="SyncCipherCreate",e[e.SyncLoginDelete=2]="SyncLoginDelete",e[e.SyncFolderDelete=3]="SyncFolderDelete",e[e.SyncCiphers=4]="SyncCiphers",e[e.SyncVault=5]="SyncVault",e[e.SyncOrgKeys=6]="SyncOrgKeys",e[e.SyncFolderCreate=7]="SyncFolderCreate",e[e.SyncFolderUpdate=8]="SyncFolderUpdate",e[e.SyncCipherDelete=9]="SyncCipherDelete",e[e.SyncSettings=10]="SyncSettings",e[e.LogOut=11]="LogOut",e[e.SyncSendCreate=12]="SyncSendCreate",e[e.SyncSendUpdate=13]="SyncSendUpdate",e[e.SyncSendDelete=14]="SyncSendDelete",e[e.AuthRequest=15]="AuthRequest",e[e.AuthRequestResponse=16]="AuthRequestResponse",e[e.SyncOrganizations=17]="SyncOrganizations",e[e.SyncOrganizationStatusChanged=18]="SyncOrganizationStatusChanged",e[e.SyncOrganizationCollectionSettingChanged=19]="SyncOrganizationCollectionSettingChanged",e[e.Notification=20]="Notification",e[e.NotificationStatus=21]="NotificationStatus",e[e.RefreshSecurityTasks=22]="RefreshSecurityTasks",e[e.OrganizationBankAccountVerified=23]="OrganizationBankAccountVerified",e[e.ProviderBankAccountVerified=24]="ProviderBankAccountVerified",e[e.SyncPolicy=25]="SyncPolicy",e[e.AutoConfirmMember=26]="AutoConfirmMember",e[e.PremiumStatusChanged=27]="PremiumStatusChanged"}(l||(l={}));const c=Object.freeze({KdfChange:0,KeyRotation:1})},35770(e,t,i){"use strict";i.d(t,{h:()=>n});class n{}},45872(e,t,i){"use strict";i.d(t,{R:()=>n});class n{}},89105(e,t,i){"use strict";i.d(t,{N:()=>n});class n{}},8943(e,t,i){"use strict";i.d(t,{AJ:()=>p,mI:()=>A,Gn:()=>d,$9:()=>n});class n{}var r=i(6632),s=i(62870),o=i(54428),a=i(78781),l=i(43890),c=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class d{constructor(e){this.cryptoFunctionService=e}createKey(e){return c(this,void 0,void 0,function*(){const t=yield this.cryptoFunctionService.aesGenerateKey(e);return new l.e(t)})}createKeyWithPurpose(e,t,i){return c(this,void 0,void 0,function*(){if(null==i){const e=yield this.cryptoFunctionService.randomBytes(32);i=a.A.fromBufferToUtf8(e.buffer)}const n=yield this.cryptoFunctionService.aesGenerateKey(e),r=yield this.cryptoFunctionService.hkdf(n,i,t,64,"sha256");return{salt:i,material:n,derivedKey:new l.e(r)}})}deriveKeyFromMaterial(e,t,i){return c(this,void 0,void 0,function*(){const n=yield this.cryptoFunctionService.hkdf(e,t,i,64,"sha256");return new l.e(n)})}deriveKeyFromPassword(e,t,i){return c(this,void 0,void 0,function*(){return"string"==typeof e&&(e=(new TextEncoder).encode(e)),"string"==typeof t&&(t=(new TextEncoder).encode(t)),yield s.B.Ready,new l.e(r.PureCrypto.derive_kdf_material(e,t,i.toSdkConfig()))})}stretchKey(e){return c(this,void 0,void 0,function*(){if(e.inner().type!=o.Qd.AesCbc256_B64)throw new Error("Key passed into stretchKey is not a 256-bit key.");const t=new Uint8Array(64),i=yield this.cryptoFunctionService.hkdfExpand(e.inner().encryptionKey,"enc",32,"sha256"),n=yield this.cryptoFunctionService.hkdfExpand(e.inner().encryptionKey,"mac",32,"sha256");return t.set(new Uint8Array(i)),t.set(new Uint8Array(n),32),new l.e(t)})}deriveVaultExportKey(e,t,i){return c(this,void 0,void 0,function*(){return yield this.stretchKey(yield this.deriveKeyFromPassword(e,t,i))})}}var u=i(36594),h=i.n(u);function A(e,t){const i=h().cipher.createDecipher("AES-ECB",a.A.fromArrayToByteString(t));if(i.start(),i.update(h().util.createBuffer(a.A.fromArrayToByteString(e))),!i.finish())throw new Error("AES-ECB decryption failed.");return a.A.fromByteStringToArray(i.output.getBytes())}function p(e,t,i){const n=h().cipher.createDecipher("AES-CBC",a.A.fromArrayToByteString(t));if(n.start({iv:a.A.fromArrayToByteString(i)}),n.update(h().util.createBuffer(a.A.fromArrayToByteString(e))),!n.finish())throw new Error("AES-CBC decryption failed.");return a.A.fromByteStringToArray(n.output.getBytes())}},39306(e,t,i){"use strict";i.d(t,{h:()=>s,k:()=>o});var n=i(54428),r=i(78781);const s="[error: cannot decrypt]";class o{constructor(e,t,i,n){null!=t?this.initFromData(e,t,i,n):this.initFromEncryptedString(e)}get ivBytes(){return null==this.iv?null:r.A.fromB64ToArray(this.iv)}get macBytes(){return null==this.mac?null:r.A.fromB64ToArray(this.mac)}get dataBytes(){return null==this.data?null:r.A.fromB64ToArray(this.data)}toSdk(){return this.encryptedString}toJSON(){return this.encryptedString}static fromJSON(e){return null==e?null:new o(e)}initFromData(e,t,i,n){this.encryptedString=null!=i?e+"."+i+"|"+t:e+"."+t,null!=n&&(this.encryptedString=this.encryptedString+"|"+n),this.encryptionType=e,this.data=t,this.iv=i,this.mac=n}initFromEncryptedString(e){if(this.encryptedString=e,!this.encryptedString)return;const{encType:t,encPieces:i}=o.parseEncryptedString(this.encryptedString);if(this.encryptionType=t,i.length===n.iS[t])switch(t){case n.Qd.AesCbc256_HmacSha256_B64:this.iv=i[0],this.data=i[1],this.mac=i[2];break;case n.Qd.AesCbc256_B64:this.iv=i[0],this.data=i[1];break;case n.Qd.Rsa2048_OaepSha256_B64:case n.Qd.Rsa2048_OaepSha1_B64:this.data=i[0];break;case n.Qd.Rsa2048_OaepSha256_HmacSha256_B64:case n.Qd.Rsa2048_OaepSha1_HmacSha256_B64:this.data=i[0],this.mac=i[1];break;default:return}}static parseEncryptedString(e){const t=e.split(".");let i,r=null;if(2===t.length)try{i=parseInt(t[0],null),r=t[1].split("|")}catch(s){return{encType:NaN,encPieces:[]}}else r=e.split("|"),i=n.Qd.AesCbc256_B64;return{encType:i,encPieces:r}}static isSerializedEncString(e){if(null==e)return!1;const{encType:t,encPieces:i}=this.parseEncryptedString(e);return!isNaN(t)&&0!==i.length&&n.iS[t]===i.length}}},39935(e,t,i){"use strict";i.d(t,{M:()=>n});class n{}},52057(e,t,i){"use strict";i.d(t,{K:()=>n});class n{}},98267(e,t,i){"use strict";i.d(t,{s:()=>a});class n{constructor(e){if(this.securityState=null,"object"!=typeof e||null==e)throw new TypeError("Response must be an object");if(!("securityState"in e)||"string"!=typeof e.securityState)throw new TypeError("Response must contain a valid securityState");this.securityState=e.securityState}}var r=i(78781);class s{constructor(e){if(this.signedPublicKey=null,"object"!=typeof e||null==e)throw new TypeError("Response must be an object");if(!("publicKey"in e)||"string"!=typeof e.publicKey)throw new TypeError("Response must contain a valid publicKey");if(this.publicKey=r.A.fromB64ToArray(e.publicKey),!("wrappedPrivateKey"in e)||"string"!=typeof e.wrappedPrivateKey)throw new TypeError("Response must contain a valid wrappedPrivateKey");this.wrappedPrivateKey=e.wrappedPrivateKey,"signedPublicKey"in e&&"string"==typeof e.signedPublicKey?this.signedPublicKey=e.signedPublicKey:this.signedPublicKey=null}}class o{constructor(e){if("object"!=typeof e||null==e)throw new TypeError("Response must be an object");if(!("wrappedSigningKey"in e)||"string"!=typeof e.wrappedSigningKey)throw new TypeError("Response must contain a valid wrappedSigningKey");if(this.wrappedSigningKey=e.wrappedSigningKey,!("verifyingKey"in e)||"string"!=typeof e.verifyingKey)throw new TypeError("Response must contain a valid verifyingKey");this.verifyingKey=e.verifyingKey}}class a{constructor(e){if(this.signatureKeyPair=null,this.securityState=null,"object"!=typeof e||null==e)throw new TypeError("Response must be an object");if(!("publicKeyEncryptionKeyPair"in e)||"object"!=typeof e.publicKeyEncryptionKeyPair)throw new TypeError("Response must contain a valid publicKeyEncryptionKeyPair");if(this.publicKeyEncryptionKeyPair=new s(e.publicKeyEncryptionKeyPair),"signatureKeyPair"in e&&"object"==typeof e.signatureKeyPair&&null!=e.signatureKeyPair&&(this.signatureKeyPair=new o(e.signatureKeyPair)),"securityState"in e&&"object"==typeof e.securityState&&null!=e.securityState&&(this.securityState=new n(e.securityState)),null!==this.signatureKeyPair&&null===this.securityState||null===this.signatureKeyPair&&null!==this.securityState)throw new TypeError("Both signatureKeyPair and securityState must be present or absent together")}toWrappedAccountCryptographicState(){if(null===this.signatureKeyPair&&null===this.securityState)return{V1:{private_key:this.publicKeyEncryptionKeyPair.wrappedPrivateKey}};if(null!==this.signatureKeyPair&&null!==this.securityState)return{V2:{private_key:this.publicKeyEncryptionKeyPair.wrappedPrivateKey,signing_key:this.signatureKeyPair.wrappedSigningKey,signed_public_key:this.publicKeyEncryptionKeyPair.signedPublicKey,security_state:this.securityState.securityState}};throw new Error("Both signatureKeyPair and securityState must be present or absent together")}isV2Encryption(){return null!==this.signatureKeyPair&&null!==this.securityState}}},17898(e,t,i){"use strict";i.d(t,{b:()=>n});class n{}},83541(e,t,i){"use strict";i.d(t,{L:()=>n,O:()=>r});class n{}class r extends n{}},67097(e,t,i){"use strict";i.d(t,{v:()=>a});var n=i(20702),r=i(8916);class s extends n.r{constructor(e){super(e);const t=this.getResponseProperty("KdfType");if(null==t||"number"!=typeof t)throw new Error("KDF config response does not contain a valid KDF type");this.kdfType=t;const i=this.getResponseProperty("Iterations");if(null==i||"number"!=typeof i)throw new Error("KDF config response does not contain a valid number of iterations");if(this.iterations=i,this.kdfType===r.ao.Argon2id){const e=this.getResponseProperty("Memory");if(null==e||"number"!=typeof e)throw new Error("KDF config response does not contain a valid memory size for Argon2id");const t=this.getResponseProperty("Parallelism");if(null==t||"number"!=typeof t)throw new Error("KDF config response does not contain a valid parallelism for Argon2id");this.memory=e,this.parallelism=t}}toKdfConfig(){switch(this.kdfType){case r.ao.Argon2id:return new r.hU(this.iterations,this.memory,this.parallelism);case r.ao.PBKDF2_SHA256:return new r.n1(this.iterations)}}}var o=i(10459);class a extends n.r{constructor(e){super(e);const t=this.getResponseProperty("Salt");if(null==t||"string"!=typeof t)throw new Error("MasterPasswordUnlockResponse does not contain a valid salt");this.salt=t,this.kdf=new s(this.getResponseProperty("Kdf"));const i=this.getResponseProperty("MasterKeyEncryptedUserKey");if(null==i||"string"!=typeof i)throw new Error("MasterPasswordUnlockResponse does not contain a valid master key encrypted user key");this.masterKeyWrappedUserKey=i}toMasterPasswordUnlockData(){return new o.k(this.salt,this.kdf.toKdfConfig(),this.masterKeyWrappedUserKey)}}},10459(e,t,i){"use strict";i.d(t,{P:()=>s,k:()=>r});var n=i(8916);class r{constructor(e,t,i){this.salt=e,this.kdf=t,this.masterKeyWrappedUserKey=i}static fromSdk(e){return new r(e.salt,(0,n.E$)(e.kdf),e.masterKeyWrappedUserKey)}toSdk(){return{salt:this.salt,kdf:this.kdf.toSdkConfig(),masterKeyWrappedUserKey:this.masterKeyWrappedUserKey}}toJSON(){return{salt:this.salt,kdf:this.kdf,masterKeyWrappedUserKey:this.masterKeyWrappedUserKey}}static fromJSON(e){return null==e?null:new r(e.salt,e.kdf.kdfType===n.ao.PBKDF2_SHA256?n.n1.fromJSON(e.kdf):n.hU.fromJSON(e.kdf),e.masterKeyWrappedUserKey)}}function s(e){return{salt:e.salt,kdf:(0,n.E$)(e.kdf),masterPasswordAuthenticationHash:e.masterPasswordAuthenticationHash}}},84101(e,t,i){"use strict";i.d(t,{t:()=>n});class n{}},98881(e,t,i){"use strict";i.d(t,{L5:()=>o,a$:()=>r,wK:()=>s});var n=i(31857);const r=new n.Ok(n.EF,"pinProtectedUserKeyEnvelopePersistent",{deserializer:e=>e,clearOn:["logout"],cleanupDelayMs:0}),s=n.Ok.record(n.aL,"pinProtectedUserKeyEnvelopeEphemeral",{deserializer:e=>e,clearOn:["logout"],cleanupDelayMs:0}),o=new n.Ok(n.EF,"userKeyEncryptedPin",{deserializer:e=>e,clearOn:["logout"],cleanupDelayMs:0})},75633(e,t,i){"use strict";i.d(t,{p:()=>n});class n{}},16184(e,t,i){"use strict";i.d(t,{a6:()=>F,rq:()=>E,z4:()=>w.z4,W4:()=>y,BF:()=>C,nv:()=>S,ep:()=>n,Lw:()=>b,ft:()=>I});class n{}var r=i(83604),s=i(191),o=i(72135),a=i(69783),l=i(68108),c=i(98569),d=i(62423),u=i(4958),h=i(71232),A=i(16385),p=i(6933),g=i(7356),v=i(30285),m=i(3633),f=i(98881);const y={Lock:"lock",LogOut:"logOut"},b={Never:"never",OnRestart:"onRestart",OnLocked:"onLocked",OnSleep:"onSleep",OnIdle:"onIdle",Custom:"custom"},C={Immediately:0,OnMinute:1,EightHours:480};function I(e){return"number"==typeof e}var w=i(78070),B=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class E{constructor(e,t,i,n,r,s,o,a,l,c){this.accountService=e,this.userDecryptionOptionsService=t,this.keyService=i,this.tokenService=n,this.policyService=r,this.biometricStateService=s,this.stateProvider=o,this.logService=a,this.defaultVaultTimeout=l,this.sessionTimeoutTypeService=c}setVaultTimeoutOptions(e,t,i){return B(this,void 0,void 0,function*(){if(!e)throw new Error("User id required. Cannot set vault timeout settings.");if(null==t)throw new Error("Vault Timeout cannot be null.");if(null==i)throw new Error("Vault Timeout Action cannot be null.");yield this.setVaultTimeout(e,t),yield this.setVaultTimeoutAction(e,i),yield this.migrateTokenStorage(e,i,t),yield this.keyService.refreshAdditionalKeys(e)})}availableVaultTimeoutActions$(e){return(null!=e?(0,r.of)(e):(0,m.F6)(this.accountService.activeAccount$)).pipe((0,s.n)(e=>(0,o.z)([this.userDecryptionOptionsService.hasMasterPasswordById$(e),this.biometricStateService.biometricUnlockEnabled$(e),(0,o.z)([this.stateProvider.getUserState$(f.wK,e),this.stateProvider.getUserState$(f.a$,e)]).pipe((0,a.T)(([e,t])=>!!e||!!t))])),(0,a.T)(([e,t,i])=>e||t||i?[y.LogOut,y.Lock]:[y.LogOut]))}canLock(e){return B(this,void 0,void 0,function*(){const t=yield(0,l._)(this.availableVaultTimeoutActions$(e));return(null==t?void 0:t.includes(y.Lock))||!1})}isBiometricLockSet(e){return B(this,void 0,void 0,function*(){return yield(0,l._)(this.biometricStateService.biometricUnlockEnabled$(e))})}setVaultTimeout(e,t){return B(this,void 0,void 0,function*(){if(!e)throw new Error("User id required. Cannot set vault timeout.");if(null==t)throw new Error("Vault Timeout cannot be null.");yield this.stateProvider.setUserState(w.z4,t,e)})}getVaultTimeoutByUserId$(e){if(!e)throw new Error("User id required. Cannot get vault timeout.");return(0,o.z)([this.stateProvider.getUserState$(w.z4,e),this.getMaxSessionTimeoutPolicyDataByUserId$(e)]).pipe((0,s.n)(([t,i])=>(this.logService.debug("[VaultTimeoutSettingsService] Current vault timeout is %o for user id %s, max session policy %o",t,e,i),(0,c.H)(this.determineVaultTimeout(t,i)).pipe((0,d.H)(i=>B(this,void 0,void 0,function*(){return this.logService.debug("[VaultTimeoutSettingsService] Determined vault timeout is %o for user id %s",i,e),i!==t&&(yield this.stateProvider.setUserState(w.z4,i,e)),i})),(0,u.W)(e=>(this.logService.error(`Error getting vault timeout: ${e}`),h.w))))),(0,A.F)(),(0,p.t)({refCount:!0,bufferSize:1}))}determineVaultTimeout(e,t){return B(this,void 0,void 0,function*(){const i=yield this.determineVaultTimeoutInternal(e,t);return yield this.sessionTimeoutTypeService.getOrPromoteToAvailable(i)})}determineVaultTimeoutInternal(e,t){return B(this,void 0,void 0,function*(){if(e=null!=e?e:this.defaultVaultTimeout,null==t)return e;switch(t.type){case"immediately":return C.Immediately;case"custom":case null:case void 0:return e===C.Immediately?e:I(e)?Math.min(e,t.minutes):t.minutes;case"onSystemLock":if(e===b.Never||e===b.OnRestart||e===b.OnLocked||e===b.OnIdle||e===b.OnSleep)return b.OnLocked;break;case"onAppRestart":if(e===b.Never||e===b.OnLocked||e===b.OnIdle||e===b.OnSleep)return b.OnRestart}return e})}migrateTokenStorage(e,t,i){return B(this,void 0,void 0,function*(){const n=yield this.tokenService.getAccessToken(e),r=yield this.tokenService.getRefreshToken(e),s=yield this.tokenService.getClientId(e),o=yield this.tokenService.getClientSecret(e);n&&(yield this.tokenService.setTokens(n,t,i,r,[s,o]))})}setVaultTimeoutAction(e,t){return B(this,void 0,void 0,function*(){if(!e)throw new Error("User id required. Cannot set vault timeout action.");if(!t)throw new Error("Vault Timeout Action cannot be null");yield this.stateProvider.setUserState(w.GB,t,e)})}getVaultTimeoutActionByUserId$(e){if(!e)throw new Error("User id required. Cannot get vault timeout action.");return(0,o.z)([this.stateProvider.getUserState$(w.GB,e),this.getMaxSessionTimeoutPolicyDataByUserId$(e),this.availableVaultTimeoutActions$(e),this.getVaultTimeoutByUserId$(e)]).pipe((0,d.H)(t=>B(this,[t],void 0,function*([t,i,n,r]){const s=this.determineVaultTimeoutAction(n,t,i);if(1===n.length){const i=n[0];null!==t&&(yield this.stateProvider.setUserState(w.GB,null,e),t!==i&&(yield this.migrateTokenStorage(e,i,r)))}else s!==t&&(yield this.stateProvider.setUserState(w.GB,s,e),null===t&&s===y.Lock&&(yield this.migrateTokenStorage(e,s,r)));return s})),(0,u.W)(e=>(this.logService.error(`Error getting vault timeout: ${e}`),h.w)),(0,A.F)(),(0,p.t)({refCount:!0,bufferSize:1}))}determineVaultTimeoutAction(e,t,i){return 1===e.length?e[0]:(null==i?void 0:i.action)&&e.includes(i.action)?i.action:null==t&&e.includes(y.Lock)?y.Lock:t}getMaxSessionTimeoutPolicyDataByUserId$(e){if(!e)throw new Error("User id required. Cannot get max session timeout policy.");return this.policyService.policiesByType$(g.tt.MaximumVaultTimeout,e).pipe(v.Zc,(0,a.T)(e=>{var t;return null!==(t=null==e?void 0:e.data)&&void 0!==t?t:null}))}vaultTimeoutSuppressedUntil$(e){if(!e)throw new Error("User id required. Cannot get vault timeout suppressed until.");return this.stateProvider.getUserState$(w.h4,e)}isVaultTimeoutSuppressed$(e){return this.vaultTimeoutSuppressedUntil$(e).pipe((0,a.T)(e=>null!=e&&Date.now()<e))}isVaultTimeoutSuppressed(e){return B(this,void 0,void 0,function*(){return yield(0,l._)(this.isVaultTimeoutSuppressed$(e))})}suppressVaultTimeout(e,t){return B(this,void 0,void 0,function*(){if(!t)throw new Error("User id required. Cannot suppress vault timeout.");yield this.stateProvider.getUser(t,w.h4).update(()=>e)})}clearVaultTimeoutSuppression(e){return B(this,void 0,void 0,function*(){if(!e)throw new Error("User id required. Cannot clear vault timeout suppression.");yield this.stateProvider.getUser(e,w.h4).update(()=>null)})}}class S{}var Q=i(84110),k=i(37798),R=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class F{constructor(e,t,i,n,r,s,o,a){this.accountService=e,this.platformUtilsService=t,this.authService=i,this.vaultTimeoutSettingsService=n,this.taskSchedulerService=r,this.logService=s,this.lockService=o,this.logoutService=a,this.inited=!1,this.taskSchedulerService.registerTaskHandler(k.fq.vaultTimeoutCheckInterval,()=>this.checkVaultTimeout())}init(e){return R(this,void 0,void 0,function*(){this.inited||(this.inited=!0,e&&this.startCheck())})}startCheck(){this.checkVaultTimeout().catch(e=>this.logService.error(e)),this.taskSchedulerService.setInterval(k.fq.vaultTimeoutCheckInterval,1e4)}checkVaultTimeout(){return R(this,void 0,void 0,function*(){const e=yield this.platformUtilsService.isAnyViewFocused();yield(0,l._)((0,o.z)([this.accountService.activeAccount$,this.accountService.accountActivity$]).pipe((0,d.H)(t=>R(this,[t],void 0,function*([t,i]){const n=null==t?void 0:t.id;for(const r in i){const t=r;null!=t&&(yield this.shouldLock(t,i[t],n,e))&&(yield this.executeTimeoutAction(t))}}))))})}shouldLock(e,t,i,n){return R(this,void 0,void 0,function*(){if(n&&e===i)return!1;if(yield this.vaultTimeoutSettingsService.isVaultTimeoutSuppressed(e))return!1;const r=yield this.authService.getAuthStatus(e);if(r===Q.J.Locked||r===Q.J.LoggedOut)return!1;const s=yield(0,l._)(this.vaultTimeoutSettingsService.getVaultTimeoutByUserId$(e));if("string"==typeof s)return!1;if(null==t)return!1;const o=60*s;return((new Date).getTime()-t.getTime())/1e3>=o})}executeTimeoutAction(e){return R(this,void 0,void 0,function*(){(yield(0,l._)(this.vaultTimeoutSettingsService.getVaultTimeoutActionByUserId$(e)))===y.LogOut?yield this.logoutService.logout(e,"vaultTimeout"):yield this.lockService.lock(e)})}}},78070(e,t,i){"use strict";i.d(t,{GB:()=>r,h4:()=>o,z4:()=>s});var n=i(31857);const r=new n.Ok(n.dr,"vaultTimeoutAction",{deserializer:e=>e,clearOn:[]}),s=new n.Ok(n.dr,"vaultTimeout",{deserializer:e=>e,clearOn:[]}),o=new n.Ok(n.zT,"vaultTimeoutSuppressedUntil",{deserializer:e=>e,clearOn:["logout"]})},59777(e,t,i){"use strict";i.d(t,{D:()=>r,L:()=>n});const n={Domain:0,Host:1,StartsWith:2,Exact:3,RegularExpression:4,Never:5};function r(e){if(null!=e)switch(e){case 0:case 1:case 2:case 3:case 4:case 5:return e;default:return}}},9715(e,t,i){"use strict";i.d(t,{pU:()=>K,MA:()=>q,wG:()=>te});var n=i(39306),r=i(19488),s=i(6528);function o(e){if(null!=e)return"string"==typeof e?e:null==e?void 0:e.encryptedString}class a{static template(){const e=new a;return e.cardholderName="John Doe",e.brand="visa",e.number="4242424242424242",e.expMonth="04",e.expYear="2023",e.code="123",e}static toView(e,t=new s.G){return t.cardholderName=e.cardholderName,t.brand=e.brand,t.number=e.number,t.expMonth=e.expMonth,t.expYear=e.expYear,t.code=e.code,t}static toDomain(e,t=new r.Z){return t.cardholderName=null!=e.cardholderName?new n.k(e.cardholderName):void 0,t.brand=null!=e.brand?new n.k(e.brand):void 0,t.number=null!=e.number?new n.k(e.number):void 0,t.expMonth=null!=e.expMonth?new n.k(e.expMonth):void 0,t.expYear=null!=e.expYear?new n.k(e.expYear):void 0,t.code=null!=e.code?new n.k(e.code):void 0,t}constructor(e){null!=e&&(this.cardholderName=o(e.cardholderName),this.brand=o(e.brand),this.number=o(e.number),this.expMonth=o(e.expMonth),this.expYear=o(e.expYear),this.code=o(e.code))}}var l=i(36501),c=i(7919),d=i(7025),u=i(75751),h=i(86966),A=i(84749);class p{static template(){const e=new p;return e.bankName="Acme Bank",e.nameOnAccount="John Doe",e.accountType="checking",e.accountNumber="000123456789",e.routingNumber="000000000",e.branchNumber="000",e.pin="1234",e.swiftCode="ACMEUS33",e.iban="GB00ACME12345600000001",e.bankContactPhone="1-800-123-4567",e}static toView(e,t=new A.n){if(null!=e)return t.bankName=e.bankName,t.nameOnAccount=e.nameOnAccount,t.accountType=e.accountType,t.accountNumber=e.accountNumber,t.routingNumber=e.routingNumber,t.branchNumber=e.branchNumber,t.pin=e.pin,t.swiftCode=e.swiftCode,t.iban=e.iban,t.bankContactPhone=e.bankContactPhone,t}static toDomain(e,t=new h.c){return t.bankName=e.bankName?new n.k(e.bankName):void 0,t.nameOnAccount=e.nameOnAccount?new n.k(e.nameOnAccount):void 0,t.accountType=e.accountType?new n.k(e.accountType):void 0,t.accountNumber=e.accountNumber?new n.k(e.accountNumber):void 0,t.routingNumber=e.routingNumber?new n.k(e.routingNumber):void 0,t.branchNumber=e.branchNumber?new n.k(e.branchNumber):void 0,t.pin=e.pin?new n.k(e.pin):void 0,t.swiftCode=e.swiftCode?new n.k(e.swiftCode):void 0,t.iban=e.iban?new n.k(e.iban):void 0,t.bankContactPhone=e.bankContactPhone?new n.k(e.bankContactPhone):void 0,t}constructor(e){this.bankName=void 0,this.nameOnAccount=void 0,this.accountType=void 0,this.accountNumber=void 0,this.routingNumber=void 0,this.branchNumber=void 0,this.pin=void 0,this.swiftCode=void 0,this.iban=void 0,this.bankContactPhone=void 0,null!=e&&(this.bankName=o(e.bankName),this.nameOnAccount=o(e.nameOnAccount),this.accountType=o(e.accountType),this.accountNumber=o(e.accountNumber),this.routingNumber=o(e.routingNumber),this.branchNumber=o(e.branchNumber),this.pin=o(e.pin),this.swiftCode=o(e.swiftCode),this.iban=o(e.iban),this.bankContactPhone=o(e.bankContactPhone))}}var g=i(33197),v=i(43929);class m{static template(){const e=new m;return e.firstName="Jane",e.middleName="A.",e.lastName="Smith",e.dateOfBirth="1990-01-15",e.licenseNumber="D12345678",e.issuingCountry="US",e.issuingState="CA",e.issueDate="2020-06-01",e.expirationDate="2028-06-01",e.issuingAuthority="California DMV",e.licenseClass="C",e}static toView(e,t=new v.c){if(null!=e)return t.firstName=e.firstName,t.middleName=e.middleName,t.lastName=e.lastName,t.dateOfBirth=e.dateOfBirth,t.licenseNumber=e.licenseNumber,t.issuingCountry=e.issuingCountry,t.issuingState=e.issuingState,t.issueDate=e.issueDate,t.expirationDate=e.expirationDate,t.issuingAuthority=e.issuingAuthority,t.licenseClass=e.licenseClass,t}static toDomain(e,t=new g.b){return t.firstName=e.firstName?new n.k(e.firstName):void 0,t.middleName=e.middleName?new n.k(e.middleName):void 0,t.lastName=e.lastName?new n.k(e.lastName):void 0,t.dateOfBirth=e.dateOfBirth?new n.k(e.dateOfBirth):void 0,t.licenseNumber=e.licenseNumber?new n.k(e.licenseNumber):void 0,t.issuingCountry=e.issuingCountry?new n.k(e.issuingCountry):void 0,t.issuingState=e.issuingState?new n.k(e.issuingState):void 0,t.issueDate=e.issueDate?new n.k(e.issueDate):void 0,t.expirationDate=e.expirationDate?new n.k(e.expirationDate):void 0,t.issuingAuthority=e.issuingAuthority?new n.k(e.issuingAuthority):void 0,t.licenseClass=e.licenseClass?new n.k(e.licenseClass):void 0,t}constructor(e){this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.dateOfBirth=void 0,this.licenseNumber=void 0,this.issuingCountry=void 0,this.issuingState=void 0,this.issueDate=void 0,this.expirationDate=void 0,this.issuingAuthority=void 0,this.licenseClass=void 0,null!=e&&(this.firstName=o(e.firstName),this.middleName=o(e.middleName),this.lastName=o(e.lastName),this.dateOfBirth=o(e.dateOfBirth),this.licenseNumber=o(e.licenseNumber),this.issuingCountry=o(e.issuingCountry),this.issuingState=o(e.issuingState),this.issueDate=o(e.issueDate),this.expirationDate=o(e.expirationDate),this.issuingAuthority=o(e.issuingAuthority),this.licenseClass=o(e.licenseClass))}}var f=i(81356),y=i(77720),b=i(11766);class C{static template(){const e=new C;return e.name="Field name",e.value="Some value",e.type=f.PU.Text,e}static toView(e,t=new b.g){return t.type=e.type,t.value=e.value,t.name=e.name,t.linkedId=e.linkedId,t}static toDomain(e,t=new y.D){return t.type=e.type,t.value=null!=e.value?new n.k(e.value):void 0,t.name=null!=e.name?new n.k(e.name):void 0,t.linkedId=e.linkedId,t}constructor(e){this.type=f.PU.Text,null!=e&&(this.name=o(e.name),this.value=o(e.value),this.type=e.type,this.linkedId=e.linkedId)}}var I=i(32072),w=i(67036);class B{static template(){const e=new B;return e.title="Mr",e.firstName="John",e.middleName="William",e.lastName="Doe",e.address1="123 Any St",e.address2="Apt #123",e.city="New York",e.state="NY",e.postalCode="10001",e.country="US",e.company="Acme Inc.",e.email="john@company.com",e.phone="5555551234",e.ssn="000-123-4567",e.username="jdoe",e.passportNumber="US-123456789",e.licenseNumber="D123-12-123-12333",e}static toView(e,t=new w.O){return t.title=e.title,t.firstName=e.firstName,t.middleName=e.middleName,t.lastName=e.lastName,t.address1=e.address1,t.address2=e.address2,t.address3=e.address3,t.city=e.city,t.state=e.state,t.postalCode=e.postalCode,t.country=e.country,t.company=e.company,t.email=e.email,t.phone=e.phone,t.ssn=e.ssn,t.username=e.username,t.passportNumber=e.passportNumber,t.licenseNumber=e.licenseNumber,t}static toDomain(e,t=new I.l){return t.title=null!=e.title?new n.k(e.title):void 0,t.firstName=null!=e.firstName?new n.k(e.firstName):void 0,t.middleName=null!=e.middleName?new n.k(e.middleName):void 0,t.lastName=null!=e.lastName?new n.k(e.lastName):void 0,t.address1=null!=e.address1?new n.k(e.address1):void 0,t.address2=null!=e.address2?new n.k(e.address2):void 0,t.address3=null!=e.address3?new n.k(e.address3):void 0,t.city=null!=e.city?new n.k(e.city):void 0,t.state=null!=e.state?new n.k(e.state):void 0,t.postalCode=null!=e.postalCode?new n.k(e.postalCode):void 0,t.country=null!=e.country?new n.k(e.country):void 0,t.company=null!=e.company?new n.k(e.company):void 0,t.email=null!=e.email?new n.k(e.email):void 0,t.phone=null!=e.phone?new n.k(e.phone):void 0,t.ssn=null!=e.ssn?new n.k(e.ssn):void 0,t.username=null!=e.username?new n.k(e.username):void 0,t.passportNumber=null!=e.passportNumber?new n.k(e.passportNumber):void 0,t.licenseNumber=null!=e.licenseNumber?new n.k(e.licenseNumber):void 0,t}constructor(e){null!=e&&(this.title=o(e.title),this.firstName=o(e.firstName),this.middleName=o(e.middleName),this.lastName=o(e.lastName),this.address1=o(e.address1),this.address2=o(e.address2),this.address3=o(e.address3),this.city=o(e.city),this.state=o(e.state),this.postalCode=o(e.postalCode),this.country=o(e.country),this.company=o(e.company),this.email=o(e.email),this.phone=o(e.phone),this.ssn=o(e.ssn),this.username=o(e.username),this.passportNumber=o(e.passportNumber),this.licenseNumber=o(e.licenseNumber))}}var E=i(21925),S=i(14093),Q=i(84454),k=i(65918);class R{static template(){const e=new R;return e.credentialId="keyId",e.keyType="keyType",e.keyAlgorithm="keyAlgorithm",e.keyCurve="keyCurve",e.keyValue="keyValue",e.rpId="rpId",e.userHandle="userHandle",e.userName="userName",e.counter="counter",e.rpName="rpName",e.userDisplayName="userDisplayName",e.discoverable="false",e.creationDate=new Date,e}static toView(e,t=new k.X){return t.credentialId=e.credentialId,t.keyType=e.keyType,t.keyAlgorithm=e.keyAlgorithm,t.keyCurve=e.keyCurve,t.keyValue=e.keyValue,t.rpId=e.rpId,t.userHandle=e.userHandle,t.userName=e.userName,t.counter=parseInt(e.counter),t.rpName=e.rpName,t.userDisplayName=e.userDisplayName,t.discoverable="true"===e.discoverable,t.creationDate=new Date(e.creationDate),t}static toDomain(e,t=new Q.U){return t.credentialId=new n.k(e.credentialId),t.keyType=new n.k(e.keyType),t.keyAlgorithm=new n.k(e.keyAlgorithm),t.keyCurve=new n.k(e.keyCurve),t.keyValue=new n.k(e.keyValue),t.rpId=new n.k(e.rpId),t.userHandle=null!=e.userHandle?new n.k(e.userHandle):void 0,t.userName=null!=e.userName?new n.k(e.userName):void 0,t.counter=new n.k(e.counter),t.rpName=null!=e.rpName?new n.k(e.rpName):void 0,t.userDisplayName=null!=e.userDisplayName?new n.k(e.userDisplayName):void 0,t.discoverable=new n.k(e.discoverable),t.creationDate=new Date(e.creationDate),t}constructor(e){var t,i,n,r,s,a,l,c;this.credentialId="",this.keyType="",this.keyAlgorithm="",this.keyCurve="",this.keyValue="",this.rpId="",this.counter="",this.discoverable="false",this.creationDate=new Date,null!=e&&(this.credentialId=null!==(t=o(e.credentialId))&&void 0!==t?t:"",this.keyType=null!==(i=o(e.keyType))&&void 0!==i?i:"",this.keyAlgorithm=null!==(n=o(e.keyAlgorithm))&&void 0!==n?n:"",this.keyCurve=null!==(r=o(e.keyCurve))&&void 0!==r?r:"",this.keyValue=null!==(s=o(e.keyValue))&&void 0!==s?s:"",this.rpId=null!==(a=o(e.rpId))&&void 0!==a?a:"",this.userHandle=o(e.userHandle),this.userName=o(e.userName),this.counter=null!==(l=o(e instanceof k.X?String(e.counter):e.counter))&&void 0!==l?l:"",this.rpName=o(e.rpName),this.userDisplayName=o(e.userDisplayName),this.discoverable=null!==(c=o(e instanceof k.X?String(e.discoverable):e.discoverable))&&void 0!==c?c:"false",this.creationDate=e.creationDate)}}var F=i(73386),T=i(16671);class D{static template(){const e=new D;return e.uri="https://google.com",e}static toView(e,t=new T.z){return t.uri=e.uri,t.match=e.match,t}static toDomain(e,t=new F.m){return t.uri=null!=e.uri?new n.k(e.uri):void 0,t.uriChecksum=null!=e.uriChecksum?new n.k(e.uriChecksum):void 0,t.match=e.match,t}constructor(e){var t;null!=e&&(this.uri=o(e.uri),"uriChecksum"in e&&(this.uriChecksum=null===(t=e.uriChecksum)||void 0===t?void 0:t.encryptedString),this.match=e.match)}}class P{static template(){const e=new P;return e.uris=[],e.username="jdoe",e.password="myp@ssword123",e.totp="JBSWY3DPEHPK3PXP",e.fido2Credentials=[],e}static toView(e,t=new S.r){return null!=e.uris&&(t.uris=e.uris.map(e=>D.toView(e))),t.username=e.username,t.password=e.password,t.totp=e.totp,null!=e.fido2Credentials&&(t.fido2Credentials=e.fido2Credentials.map(e=>R.toView(e))),t}static toDomain(e,t=new E.a){return null!=e.uris&&(t.uris=e.uris.map(e=>D.toDomain(e))),t.username=null!=e.username?new n.k(e.username):void 0,t.password=null!=e.password?new n.k(e.password):void 0,t.totp=null!=e.totp?new n.k(e.totp):void 0,null!=e.fido2Credentials&&(t.fido2Credentials=e.fido2Credentials.map(e=>R.toDomain(e))),t}constructor(e){null!=e&&(null!=e.uris&&(this.uris=e.uris.map(e=>new D(e))),null!=e.fido2Credentials&&(this.fido2Credentials=e.fido2Credentials.map(e=>new R(e))),this.username=o(e.username),this.password=o(e.password),this.totp=o(e.totp))}}var M=i(47268),x=i(75252);class V{static template(){const e=new V;return e.surname="Smith",e.givenName="Jane",e.dateOfBirth="1990-01-15",e.sex="F",e.birthPlace="Los Angeles, CA",e.nationality="USA",e.issuingCountry="US",e.passportNumber="A12345678",e.passportType="P",e.nationalIdentificationNumber="123-45-6789",e.issuingAuthority="U.S. Department of State",e.issueDate="2020-06-01",e.expirationDate="2030-06-01",e}static toView(e,t=new x.U){if(null!=e)return t.surname=e.surname,t.givenName=e.givenName,t.dateOfBirth=e.dateOfBirth,t.sex=e.sex,t.birthPlace=e.birthPlace,t.nationality=e.nationality,t.issuingCountry=e.issuingCountry,t.passportNumber=e.passportNumber,t.passportType=e.passportType,t.nationalIdentificationNumber=e.nationalIdentificationNumber,t.issuingAuthority=e.issuingAuthority,t.issueDate=e.issueDate,t.expirationDate=e.expirationDate,t}static toDomain(e,t=new M.t){return t.surname=e.surname?new n.k(e.surname):void 0,t.givenName=e.givenName?new n.k(e.givenName):void 0,t.dateOfBirth=e.dateOfBirth?new n.k(e.dateOfBirth):void 0,t.sex=e.sex?new n.k(e.sex):void 0,t.birthPlace=e.birthPlace?new n.k(e.birthPlace):void 0,t.nationality=e.nationality?new n.k(e.nationality):void 0,t.issuingCountry=e.issuingCountry?new n.k(e.issuingCountry):void 0,t.passportNumber=e.passportNumber?new n.k(e.passportNumber):void 0,t.passportType=e.passportType?new n.k(e.passportType):void 0,t.nationalIdentificationNumber=e.nationalIdentificationNumber?new n.k(e.nationalIdentificationNumber):void 0,t.issuingAuthority=e.issuingAuthority?new n.k(e.issuingAuthority):void 0,t.issueDate=e.issueDate?new n.k(e.issueDate):void 0,t.expirationDate=e.expirationDate?new n.k(e.expirationDate):void 0,t}constructor(e){this.surname=void 0,this.givenName=void 0,this.dateOfBirth=void 0,this.sex=void 0,this.birthPlace=void 0,this.nationality=void 0,this.issuingCountry=void 0,this.passportNumber=void 0,this.passportType=void 0,this.nationalIdentificationNumber=void 0,this.issuingAuthority=void 0,this.issueDate=void 0,this.expirationDate=void 0,null!=e&&(this.surname=o(e.surname),this.givenName=o(e.givenName),this.dateOfBirth=o(e.dateOfBirth),this.sex=o(e.sex),this.birthPlace=o(e.birthPlace),this.nationality=o(e.nationality),this.issuingCountry=o(e.issuingCountry),this.passportNumber=o(e.passportNumber),this.passportType=o(e.passportType),this.nationalIdentificationNumber=o(e.nationalIdentificationNumber),this.issuingAuthority=o(e.issuingAuthority),this.issueDate=o(e.issueDate),this.expirationDate=o(e.expirationDate))}}var G=i(50751),U=i(12022);class O{static template(){return new O}static toView(e,t=new U.j){return t.password=e.password,t.lastUsedDate=e.lastUsedDate?new Date(e.lastUsedDate):new Date,t}static toDomain(e,t=new G._){return t.password=new n.k(e.password),t.lastUsedDate=e.lastUsedDate?new Date(e.lastUsedDate):new Date,t}constructor(e){var t,i;this.password="",null!=e&&(this.password=null!==(t=o(e.password))&&void 0!==t?t:"",this.lastUsedDate=null!==(i=e.lastUsedDate)&&void 0!==i?i:void 0)}}var N=i(47328),j=i(86346);class Y{static template(){const e=new Y;return e.type=f.ak.Generic,e}static toView(e,t=new j.Z){return t.type=e.type,t}static toDomain(e,t=new N.S){return t.type=e.type,t}constructor(e){this.type=f.ak.Generic,null!=e&&(this.type=e.type)}}var X=i(67756),z=i(72142);class L{static template(){const e=new L;return e.privateKey="",e.publicKey="",e.keyFingerprint="",e}static toView(e,t=new z.H){if(null!=e){if(!e.privateKey||""===e.privateKey.trim())throw new Error("SSH key private key is required.");if(!e.publicKey||""===e.publicKey.trim())throw new Error("SSH key public key is required.");if(!e.keyFingerprint||""===e.keyFingerprint.trim())throw new Error("SSH key fingerprint is required.");return t.privateKey=e.privateKey,t.publicKey=e.publicKey,t.keyFingerprint=e.keyFingerprint,t}}static toDomain(e,t=new X.M){return t.privateKey=new n.k(e.privateKey),t.publicKey=new n.k(e.publicKey),t.keyFingerprint=new n.k(e.keyFingerprint),t}constructor(e){var t,i,n;this.privateKey="",this.publicKey="",this.keyFingerprint="",null!=e&&(this.privateKey=null!==(t=o(e.privateKey))&&void 0!==t?t:"",this.publicKey=null!==(i=o(e.publicKey))&&void 0!==i?i:"",this.keyFingerprint=null!==(n=o(e.keyFingerprint))&&void 0!==n?n:"")}}class W{constructor(){this.type=c.gC.Login,this.name="",this.favorite=!1,this.reprompt=l.b.None}static template(){const e=new W;return e.type=c.gC.Login,e.name="Item name",e.notes="Some notes about this item.",e.favorite=!1,e.fields=[],e.reprompt=l.b.None,e.passwordHistory=[],e}static toView(e,t=new u.f){var i,r,s;if(t.type=e.type,t.folderId=e.folderId,null==t.organizationId&&(t.organizationId=e.organizationId),t.collectionIds||e.collectionIds){const n=new Set((null!==(i=t.collectionIds)&&void 0!==i?i:[]).concat(null!==(r=e.collectionIds)&&void 0!==r?r:[]));t.collectionIds=Array.from(n.values())}switch(t.name=e.name,t.notes=e.notes,t.favorite=e.favorite,t.reprompt=null!==(s=e.reprompt)&&void 0!==s?s:l.b.None,t.key=null!=e.key?new n.k(e.key):void 0,null!=e.fields&&(t.fields=e.fields.map(e=>C.toView(e))),e.type){case c.gC.Login:null!=e.login&&(t.login=P.toView(e.login));break;case c.gC.SecureNote:null!=e.secureNote&&(t.secureNote=Y.toView(e.secureNote));break;case c.gC.Card:null!=e.card&&(t.card=a.toView(e.card));break;case c.gC.Identity:null!=e.identity&&(t.identity=B.toView(e.identity));break;case c.gC.SshKey:null!=e.sshKey&&(t.sshKey=L.toView(e.sshKey));break;case c.gC.BankAccount:null!=e.bankAccount&&(t.bankAccount=p.toView(e.bankAccount));break;case c.gC.DriversLicense:null!=e.driversLicense&&(t.driversLicense=m.toView(e.driversLicense));break;case c.gC.Passport:null!=e.passport&&(t.passport=V.toView(e.passport))}return null!=e.passwordHistory&&(t.passwordHistory=e.passwordHistory.map(e=>O.toView(e))),t.creationDate=e.creationDate?new Date(e.creationDate):t.creationDate,t.revisionDate=e.revisionDate?new Date(e.revisionDate):t.revisionDate,t.deletedDate=e.deletedDate?new Date(e.deletedDate):t.deletedDate,t.archivedDate=e.archivedDate?new Date(e.archivedDate):t.archivedDate,t}static toDomain(e,t=new d.o){var i;switch(t.type=e.type,t.folderId=e.folderId,null==t.organizationId&&(t.organizationId=e.organizationId),t.name=null!=e.name?new n.k(e.name):new n.k(""),t.notes=null!=e.notes?new n.k(e.notes):void 0,t.favorite=e.favorite,t.reprompt=null!==(i=e.reprompt)&&void 0!==i?i:l.b.None,t.key=null!=e.key?new n.k(e.key):void 0,null!=e.fields&&(t.fields=e.fields.map(e=>C.toDomain(e))),e.type){case c.gC.Login:null!=e.login&&(t.login=P.toDomain(e.login));break;case c.gC.SecureNote:null!=e.secureNote&&(t.secureNote=Y.toDomain(e.secureNote));break;case c.gC.Card:null!=e.card&&(t.card=a.toDomain(e.card));break;case c.gC.Identity:null!=e.identity&&(t.identity=B.toDomain(e.identity));break;case c.gC.SshKey:null!=e.sshKey&&(t.sshKey=L.toDomain(e.sshKey));break;case c.gC.BankAccount:null!=e.bankAccount&&(t.bankAccount=p.toDomain(e.bankAccount));break;case c.gC.DriversLicense:null!=e.driversLicense&&(t.driversLicense=m.toDomain(e.driversLicense));break;case c.gC.Passport:null!=e.passport&&(t.passport=V.toDomain(e.passport))}return null!=e.passwordHistory&&(t.passwordHistory=e.passwordHistory.map(e=>O.toDomain(e))),t.creationDate=e.creationDate?new Date(e.creationDate):t.creationDate,t.revisionDate=e.revisionDate?new Date(e.revisionDate):t.revisionDate,t.deletedDate=e.deletedDate?new Date(e.deletedDate):void 0,t.archivedDate=e.archivedDate?new Date(e.archivedDate):void 0,t}build(e){var t,i;switch(this.organizationId=e.organizationId,this.folderId=e.folderId,this.type=e.type,this.reprompt=e.reprompt,this.name=null!==(t=o(e.name))&&void 0!==t?t:"",this.notes=o(e.notes),"key"in e&&(this.key=null===(i=e.key)||void 0===i?void 0:i.encryptedString),this.favorite=e.favorite,null!=e.fields&&(this.fields=e.fields.map(e=>new C(e))),e.type){case c.gC.Login:this.login=new P(e.login);break;case c.gC.SecureNote:this.secureNote=new Y(e.secureNote);break;case c.gC.Card:this.card=new a(e.card);break;case c.gC.Identity:this.identity=new B(e.identity);break;case c.gC.SshKey:this.sshKey=new L(e.sshKey);break;case c.gC.BankAccount:this.bankAccount=new p(e.bankAccount);break;case c.gC.DriversLicense:this.driversLicense=new m(e.driversLicense);break;case c.gC.Passport:this.passport=new V(e.passport)}null!=e.passwordHistory&&(this.passwordHistory=e.passwordHistory.map(e=>new O(e))),this.creationDate=e.creationDate,this.revisionDate=e.revisionDate,this.deletedDate=e.deletedDate,this.archivedDate=e.archivedDate}}class K extends W{constructor(){super(...arguments),this.id="",this.collectionIds=[]}build(e){this.id=e.id,super.build(e),this.collectionIds=e.collectionIds}}var Z=i(14848),H=i(5076);class J{static template(){const e=new J;return e.organizationId=H.v,e.name="Collection name",e.externalId=null,e}static toView(e,t){const i=new Z.iY({name:e.name,organizationId:e.organizationId,id:t});return i.externalId=e.externalId,i}static toDomain(e,t){return t.name=null!=e.name?new n.k(e.name):null,t.externalId=e.externalId,null==t.organizationId&&(t.organizationId=e.organizationId),t}build(e){this.organizationId=e.organizationId,this.name=o(e.name),this.externalId=e.externalId}}class q extends J{static toView(e){return super.toView(e,e.id)}static toDomain(e,t){return t.id=e.id,super.toDomain(e,t)}build(e){this.id=e.id,super.build(e)}}var $=i(84274),_=i(78078);class ee{constructor(){this.name=""}static template(){const e=new ee;return e.name="Folder name",e}static toView(e,t=new _.u){return t.name=e.name,t}static toDomain(e,t=new $.v){return t.name=new n.k(e.name),t}build(e){var t,i;this.name=null!==(i=o(null!==(t=e.name)&&void 0!==t?t:""))&&void 0!==i?i:""}}class te extends ee{static toView(e,t=new _.u){return t.id=e.id,super.toView(e,t)}static toDomain(e,t=new $.v){return t.id=e.id,super.toDomain(e,t)}build(e){this.id=e.id,super.build(e)}}},48541(e,t,i){"use strict";i.d(t,{G:()=>n});class n{constructor(e,t){this.publicKey=e,this.encryptedPrivateKey=t}}},20702(e,t,i){"use strict";i.d(t,{r:()=>n});class n{constructor(e){this.response=e}getResponseProperty(e,t=null,i=!1){if(null==e||""===e)throw new Error("propertyName must not be null/empty.");if(null==t&&null!=this.response&&(t=this.response),null==t)return null;if(!i&&void 0===t[e]){let i=null;i=e.charAt(0)===e.charAt(0).toUpperCase()?e.charAt(0).toLowerCase():e.charAt(0).toUpperCase(),e.length>1&&(i+=e.slice(1)),void 0===t[e=i]&&(e=e.toLowerCase()),void 0===t[e]&&(e=e.toUpperCase())}return t[e]}}},65791(e,t,i){"use strict";i.d(t,{X:()=>s});var n=i(20702);class r extends n.r{constructor(e){super(e),this.type=this.getResponseProperty("Type"),this.domains=this.getResponseProperty("Domains"),this.excluded=this.getResponseProperty("Excluded")}}class s extends n.r{constructor(e){super(e),this.globalEquivalentDomains=[],this.equivalentDomains=this.getResponseProperty("EquivalentDomains");const t=this.getResponseProperty("GlobalEquivalentDomains");this.globalEquivalentDomains=null!=t?t.map(e=>new r(e)):[]}}},7861(e,t,i){"use strict";i.d(t,{_:()=>r});var n=i(20702);class r extends n.r{constructor(e,t,i){super(e);let n=null;if(null!=e){const t=this.getResponseProperty("ErrorModel");n=t&&i?t:e}429===t?this.message="Rate limit exceeded. Try again later.":n&&(this.message=this.getResponseProperty("Message",n),this.validationErrors=this.getResponseProperty("ValidationErrors",n)),this.statusCode=t}getSingleMessage(){if(null==this.validationErrors)return this.message;for(const e in this.validationErrors)if(this.validationErrors.hasOwnProperty(e)&&this.validationErrors[e].length)return this.validationErrors[e][0];return this.message}getAllMessages(){const e=[];if(null==this.validationErrors)return e;for(const t in this.validationErrors)this.validationErrors.hasOwnProperty(t)&&this.validationErrors[t].forEach(i=>{let n="";if(t.indexOf("[")>-1&&t.indexOf("]")>-1){const e=t.lastIndexOf(".");n=t.substr(0,e>-1?e:t.length)+": "}e.push(n+i)});return e}}},12277(e,t,i){"use strict";i.d(t,{s:()=>r});var n=i(20702);class r extends n.r{constructor(e,t){super(e);const i=this.getResponseProperty("Data");this.data=null==i?[]:i.map(e=>new t(e)),this.continuationToken=this.getResponseProperty("ContinuationToken")}}},16969(e,t,i){"use strict";i.d(t,{l:()=>d});var n=i(72868);class r extends n.C{constructor(e){super(e),this.keyConnectorEnabled=!1}}var s=i(20702),o=i(95919);class a extends s.r{constructor(e){super(e),this.id=this.getResponseProperty("Id"),this.name=this.getResponseProperty("Name"),this.key=this.getResponseProperty("Key"),this.status=this.getResponseProperty("Status"),this.type=this.getResponseProperty("Type"),this.enabled=this.getResponseProperty("Enabled"),this.permissions=new o.n(this.getResponseProperty("permissions")),this.userId=this.getResponseProperty("UserId"),this.useEvents=this.getResponseProperty("UseEvents"),this.providerStatus=this.getResponseProperty("ProviderStatus"),this.providerType=this.getResponseProperty("ProviderType")}}var l=i(39306),c=i(98267);class d extends s.r{constructor(e){var t,i,s;super(e),this.accountKeys=null,this.organizations=[],this.providers=[],this.providerOrganizations=[],this.id=this.getResponseProperty("Id"),this.name=this.getResponseProperty("Name"),this.email=this.getResponseProperty("Email"),this.emailVerified=this.getResponseProperty("EmailVerified"),this.premiumPersonally=this.getResponseProperty("Premium"),this.premiumFromOrganization=this.getResponseProperty("PremiumFromOrganization"),this.culture=this.getResponseProperty("Culture"),this.twoFactorEnabled=this.getResponseProperty("TwoFactorEnabled");const o=this.getResponseProperty("Key");o&&(this.key=new l.k(o)),null!=this.getResponseProperty("AccountKeys")&&(this.accountKeys=new c.s(this.getResponseProperty("AccountKeys"))),this.avatarColor=this.getResponseProperty("AvatarColor"),this.creationDate=this.getResponseProperty("CreationDate"),this.privateKey=this.getResponseProperty("PrivateKey"),this.securityStamp=this.getResponseProperty("SecurityStamp"),this.forcePasswordReset=null!==(t=this.getResponseProperty("ForcePasswordReset"))&&void 0!==t&&t,this.usesKeyConnector=null!==(i=this.getResponseProperty("UsesKeyConnector"))&&void 0!==i&&i,this.verifyDevices=null===(s=this.getResponseProperty("VerifyDevices"))||void 0===s||s;const d=this.getResponseProperty("Organizations");null!=d&&(this.organizations=d.map(e=>new n.C(e)));const u=this.getResponseProperty("OrganizationsNew");null!=u&&(this.organizationsNew=u.map(e=>new n.C(e)));const h=this.getResponseProperty("Providers");null!=h&&(this.providers=h.map(e=>new a(e)));const A=this.getResponseProperty("ProviderOrganizations");null!=A&&(this.providerOrganizations=A.map(e=>new r(e)))}}},91059(e,t,i){"use strict";i.d(t,{Y:()=>n});class n{}},61515(e,t,i){"use strict";i.d(t,{s:()=>n});class n{}},52396(e,t,i){"use strict";i.d(t,{y:()=>n});class n{}},1601(e,t,i){"use strict";i.d(t,{w:()=>n});class n{}},29377(e,t,i){"use strict";i.d(t,{T:()=>n,v:()=>r});const n=Object.freeze({US:"US",EU:"EU",Gov:"Gov",SelfHosted:"Self-hosted"});class r{}},8365(e,t,i){"use strict";i.d(t,{y:()=>n});class n{}},50700(e,t,i){"use strict";i.d(t,{W:()=>r});class n{}class r extends n{}},56962(e,t,i){"use strict";i.d(t,{K:()=>n.Kc});var n=i(81216)},83516(e,t,i){"use strict";i.d(t,{U:()=>n.D$});var n=i(5819)},37115(e,t,i){"use strict";i.d(t,{y:()=>n});class n{}},33413(e,t,i){"use strict";i.d(t,{vW:()=>n});i(78781);Error;Error;class n{}},62870(e,t,i){"use strict";i.d(t,{B:()=>o});var n=i(6632),r=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class s extends Error{constructor(e){super(`SDK loading failed: ${e}`)}}class o{loadAndInit(){return r(this,void 0,void 0,function*(){try{yield this.load(),(0,n.init_sdk)(o.logLevel),o.markAsReady()}catch(e){o.markAsFailed(e)}})}}o.logLevel=n.LogLevel.Info,o.Ready=new Promise((e,t)=>{o.markAsReady=e,o.markAsFailed=e=>t(new s(e))})},66523(e,t,i){"use strict";i.d(t,{K5:()=>d,WD:()=>l,m8:()=>s,yL:()=>a,zw:()=>c});var n=i(51151),r=i(78781);class s extends Error{constructor(e){super(`User (${e}) is not logged in`)}}class o extends Error{constructor(e){super(`Invalid UUID: ${e}`)}}function a(e){switch(e){case n.bq.Android:return"Android";case n.bq.iOS:return"iOS";case n.bq.ChromeExtension:return"ChromeExtension";case n.bq.FirefoxExtension:return"FirefoxExtension";case n.bq.OperaExtension:return"OperaExtension";case n.bq.EdgeExtension:return"EdgeExtension";case n.bq.WindowsDesktop:return"WindowsDesktop";case n.bq.MacOsDesktop:return"MacOsDesktop";case n.bq.LinuxDesktop:return"LinuxDesktop";case n.bq.ChromeBrowser:return"ChromeBrowser";case n.bq.FirefoxBrowser:return"FirefoxBrowser";case n.bq.OperaBrowser:return"OperaBrowser";case n.bq.EdgeBrowser:return"EdgeBrowser";case n.bq.IEBrowser:return"IEBrowser";case n.bq.UnknownBrowser:return"UnknownBrowser";case n.bq.AndroidAmazon:return"AndroidAmazon";case n.bq.UWP:return"UWP";case n.bq.SafariBrowser:return"SafariBrowser";case n.bq.VivaldiBrowser:return"VivaldiBrowser";case n.bq.VivaldiExtension:return"VivaldiExtension";case n.bq.SafariExtension:return"SafariExtension";case n.bq.Server:return"Server";case n.bq.WindowsCLI:return"WindowsCLI";case n.bq.MacOsCLI:return"MacOsCLI";case n.bq.LinuxCLI:return"LinuxCLI";default:return"SDK"}}function l(e){if(r.A.isGuid(e))return e;throw new o(e)}function c(e){return e}class d{}},2471(e,t,i){"use strict";i.d(t,{B:()=>n});class n{}},54428(e,t,i){"use strict";var n;i.d(t,{iS:()=>r,Qd:()=>n,K9:()=>s,EO:()=>a.EO,hq:()=>o,xk:()=>c.$b,$B:()=>a.Kg,NJ:()=>d}),function(e){e[e.AesCbc256_B64=0]="AesCbc256_B64",e[e.AesCbc256_HmacSha256_B64=2]="AesCbc256_HmacSha256_B64",e[e.CoseEncrypt0=7]="CoseEncrypt0",e[e.Rsa2048_OaepSha256_B64=3]="Rsa2048_OaepSha256_B64",e[e.Rsa2048_OaepSha1_B64=4]="Rsa2048_OaepSha1_B64",e[e.Rsa2048_OaepSha256_HmacSha256_B64=5]="Rsa2048_OaepSha256_HmacSha256_B64",e[e.Rsa2048_OaepSha1_HmacSha256_B64=6]="Rsa2048_OaepSha1_HmacSha256_B64"}(n||(n={}));const r={[n.AesCbc256_B64]:2,[n.AesCbc256_HmacSha256_B64]:3,[n.Rsa2048_OaepSha256_B64]:1,[n.Rsa2048_OaepSha1_B64]:1,[n.Rsa2048_OaepSha256_HmacSha256_B64]:2,[n.Rsa2048_OaepSha1_HmacSha256_B64]:2,[n.CoseEncrypt0]:1};var s;!function(e){e[e.Direct=0]="Direct",e[e.Azure=1]="Azure"}(s||(s={}));var o,a=i(21551);!function(e){e.Auto="auto",e.Pin="pin"}(o||(o={}));var l,c=i(81216);!function(e){e.System="system",e.Light="light",e.Dark="dark"}(l||(l={}));const d={System:"system",Light:"light",Dark:"dark"}},10760(e,t,i){"use strict";i.d(t,{D$:()=>n.D$,Lg:()=>n.Lg,qk:()=>n.qk});var n=i(5819)},90586(e,t,i){"use strict";function n(e,t){return null==e&&null==t||(!e||null!=t)&&((null!=e||!t)&&("object"!=typeof e||"object"!=typeof t?e===t:JSON.stringify(e)===JSON.stringify(t)))}i.d(t,{c:()=>n})},38020(e,t,i){"use strict";i.d(t,{Hc:()=>s,S:()=>o,pn:()=>a});var n=i(28046),r=i(69783);const s=e=>(0,r.T)(t=>t.find(t=>t.id===e)),o=e=>{const t=new Set(e);return(0,r.T)(e=>e.filter(e=>e.id&&t.has(e.id)))};function a(e){return t=>{const i=new Map,r=()=>{for(const[,e]of i.entries())e.unsubscribe();i.clear()};return new n.c(n=>{const s=t.subscribe({next:t=>{var r;for(const e of i.keys())t.has(e)?t.delete(e):(null===(r=i.get(e))||void 0===r||r.unsubscribe(),i.delete(e));for(const s of t.keys())i.set(s,e(s).subscribe({next:e=>{n.next(e)},error:e=>{n.error(e)},complete:()=>{i.delete(s)}}))},error:e=>{n.error(e)},complete:()=>{r(),n.complete()}});return()=>{r(),s.unsubscribe()}})}}},78781(e,t,i){"use strict";i.d(t,{A:()=>h});var n=i(65908),r=i(81790),s=i(83604),o=i(191),a=i(71078),l=(i(33086),i(87005));const c="undefined"==typeof self?i(36240):null,d=["..","%2e","\\","%5c","\t","%09","\n","%0a","\r","%0d","\0","%00"],u=["/","%2f","#","%23"];class h{static init(){h.inited||(h.inited=!0,h.isNode=void 0!==l&&null!=l.release&&"node"===l.release.name,h.isBrowser="undefined"!=typeof window,h.isMobileBrowser=h.isBrowser&&this.isMobile(window),h.isAppleMobileBrowser=h.isBrowser&&this.isAppleMobile(window),h.isNode?h.global=i.g:h.isBrowser?h.global=window:h.global=self)}static fromB64ToArray(e){if(null==e)return null;if(h.isNode)return new Uint8Array(Buffer.from(e,"base64"));{const t=h.global.atob(e),i=new Uint8Array(t.length);for(let e=0;e<t.length;e++)i[e]=t.charCodeAt(e);return i}}static fromUrlB64ToArray(e){return h.fromB64ToArray(h.fromUrlB64ToB64(e))}static fromHexToArray(e){if(h.isNode)return new Uint8Array(Buffer.from(e,"hex"));{const t=new Uint8Array(e.length/2);for(let i=0;i<e.length;i+=2)t[i/2]=parseInt(e.substr(i,2),16);return t}}static fromUtf8ToArray(e){if(h.isNode)return new Uint8Array(Buffer.from(e,"utf8"));{const t=unescape(encodeURIComponent(e)),i=new Uint8Array(t.length);for(let e=0;e<t.length;e++)i[e]=t.charCodeAt(e);return i}}static fromByteStringToArray(e){if(null==e)return null;const t=new Uint8Array(e.length);for(let i=0;i<e.length;i++)t[i]=e.charCodeAt(i);return t}static fromArrayToHex(e){return null==e?null:e.toHex()}static fromArrayToB64(e){return null==e?null:e.toBase64({alphabet:"base64"})}static fromArrayToUrlB64(e){return null==e?null:e.toBase64({alphabet:"base64url",omitPadding:!0})}static fromArrayToByteString(e){if(null==e)return null;let t="";for(let i=0;i<e.length;i++)t+=String.fromCharCode(e[i]);return t}static fromArrayToUtf8(e){return null==e?null:r.hp.from(e).toString("utf8")}static fromBufferToB64(e){if(null==e)return null;const t=h.normalizeToUint8Array(e);if(0===t.length)return"";if(h.isNode)return Buffer.from(t).toString("base64");{let e="";for(let i=0;i<t.byteLength;i++)e+=String.fromCharCode(t[i]);return h.global.btoa(e)}}static normalizeToUint8Array(e){if(e instanceof Uint8Array)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);{const t=e;return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}}static fromBufferToUrlB64(e){return h.fromB64toUrlB64(h.fromBufferToB64(e))}static fromB64toUrlB64(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}static fromBufferToUtf8(e){return r.hp.from(e).toString("utf8")}static fromBufferToByteString(e){return String.fromCharCode.apply(null,new Uint8Array(e))}static fromBufferToHex(e){if(h.isNode)return Buffer.from(e).toString("hex");{const t=new Uint8Array(e);return Array.prototype.map.call(t,e=>("00"+e.toString(16)).slice(-2)).join("")}}static hexStringToArrayBuffer(e){if(e.length%2!=0)throw"HexString has to be an even length";const t=new ArrayBuffer(e.length/2),i=new Uint8Array(t);for(let n=0;n<i.length;n++){const t=e.substr(2*n,2),r=parseInt(t,16);i[n]=r}return t}static fromUrlB64ToB64(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("Illegal base64url string!")}return t}static fromUrlB64ToUtf8(e){return h.fromB64ToUtf8(h.fromUrlB64ToB64(e))}static fromUtf8ToB64(e){return h.isNode?Buffer.from(e,"utf8").toString("base64"):r.hp.from(e,"utf8").toString("base64")}static fromUtf8ToUrlB64(e){return h.fromArrayToUrlB64(h.fromUtf8ToArray(e))}static fromB64ToUtf8(e){return h.isNode?Buffer.from(e,"base64").toString("utf8"):r.hp.from(e,"base64").toString("utf8")}static newGuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}static isGuid(e){return RegExp(h.guidRegex,"i").test(e)}static getHostname(e){if(h.isNullOrWhitespace(e))return null;if((e=e.trim()).startsWith("data:"))return null;if(e.startsWith("about:"))return null;if(e.startsWith("file:"))return null;try{const t=(0,a.EW)(e,{validHosts:this.validHosts});if(null!=t)return t}catch(t){return null}return null}static getHost(e){const t=h.getUrl(e);try{return null!=t&&""!==t.host?t.host:null}catch(i){return null}}static getDomain(e){if(h.isNullOrWhitespace(e))return null;if((e=e.trim()).startsWith("data:"))return null;if(e.startsWith("about:"))return null;try{const t=(0,a.qg)(e,{validHosts:this.validHosts,allowPrivateDomains:!0});if(null!=t&&null!=t.hostname)return"localhost"===t.hostname||t.isIp?t.hostname:null!=t.domain?t.domain:null}catch(t){return null}return null}static getQueryParams(e){const t=h.getUrl(e);if(null==t||null==t.search||""===t.search)return null;const i=new Map;return("?"===t.search[0]?t.search.substr(1):t.search).split("&").forEach(e=>{const t=e.split("=");t.length<1||i.set(decodeURIComponent(t[0]).toLowerCase(),null==t[1]?"":decodeURIComponent(t[1]))}),i}static getSortFunction(e,t){return(i,n)=>null==i[t]&&null!=n[t]?-1:null!=i[t]&&null==n[t]?1:null==i[t]&&null==n[t]?0:e.collator?e.collator.compare(i[t],n[t]):i[t].localeCompare(n[t])}static isNullOrWhitespace(e){return null==e||"string"!=typeof e||""===e.trim()}static isNullOrEmpty(e){return null==e||"string"!=typeof e||""==e}static isPromise(e){return null!=e&&"function"==typeof e.then&&"function"==typeof e.catch}static nameOf(e){return e}static assign(e,t){return Object.assign(e,t)}static iterateEnum(e){return Object.keys(e).filter(e=>Number.isNaN(+e)).map(t=>e[t])}static getUrl(e){return this.isNullOrWhitespace(e)?null:(e=e.trim(),h.getUrlObject(e))}static camelToPascalCase(e){return e.charAt(0).toUpperCase()+e.slice(1)}static pickTextColorBasedOnBgColor(e,t=186,i=!1){const n="#"===e.charAt(0)?e.substring(1,7):e;return.299*parseInt(n.substring(0,2),16)+.587*parseInt(n.substring(2,4),16)+.114*parseInt(n.substring(4,6),16)>t?i?"black":"black !important":i?"white":"white !important"}static stringToColor(e){let t=0;for(let n=0;n<e.length;n++)t=e.charCodeAt(n)+((t<<5)-t);let i="#";for(let n=0;n<3;n++){i+=("00"+(t>>8*n&255).toString(16)).substr(-2)}return i}static getContainerService(){if(null==this.global.bitwardenContainerService)throw new Error("global bitwardenContainerService not initialized.");return this.global.bitwardenContainerService}static validateHexColor(e){return/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e)}static mapToRecord(e){return null==e?null:e instanceof Map?Object.fromEntries(e):e}static recordToMap(e){if(null==e)return null;if(e instanceof Map)return e;const t=Object.entries(e);return 0===t.length?new Map:isNaN(Number(t[0][0]))?new Map(t):new Map(t.map(e=>[Number(e[0]),e[1]]))}static merge(e,t){return Object.assign(e,t)}static encodeRFC3986URIComponent(e){return encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)}static normalizePath(e){return n.normalize(decodeURIComponent(e)).replace(/^(\.\.(\/|\\|$))+/,"")}static containsTraversalIndicators(e){let t;try{t=decodeURIComponent(e.toLowerCase())}catch(i){return!0}return!!d.some(e=>t.includes(e))||!!t.includes("?")&&this.containsDangerousQueryPatterns(t)}static containsDangerousQueryPatterns(e){const t=e.split("?")[1];return!!t&&u.some(e=>t.includes(e))}static isMobile(e){let t=!1;var i;return i=e.navigator.userAgent||e.navigator.vendor||e.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(i)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(i.substr(0,4)))&&(t=!0),t||null!=e.navigator.userAgent.match(/iPad/i)}static delay(e){return new Promise(t=>setTimeout(t,e))}static asyncToObservable(e){return(0,s.of)(void 0).pipe((0,o.n)(()=>e()))}static daysRemaining(e){const t=e.getTime()-Date.now();return Math.max(0,Math.floor(t/864e5))}static isAppleMobile(e){return null!=e.navigator.userAgent.match(/iPhone/i)||null!=e.navigator.userAgent.match(/iPad/i)}static getUrlObject(e){const t=e.indexOf("://")>-1;if(!t&&e.indexOf(".")>-1)e="http://"+e;else if(!t)return null;try{return null!=c?new c.URL(e):new URL(e)}catch(i){}return null}}h.inited=!1,h.isNode=!1,h.isBrowser=!0,h.isMobileBrowser=!1,h.isAppleMobileBrowser=!1,h.global=null,h.regexpEmojiPresentation=/(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])/g,h.validHosts=["localhost"],h.originalMinimumPasswordLength=8,h.minimumPasswordLength=12,h.maximumPasswordLength=128,h.DomainMatchBlacklist=new Map([["google.com",new Set(["script.google.com"])]]),h.guidRegex=/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/,h.init()},30126(e,t,i){"use strict";i.d(t,{o:()=>n});const n=["abacus","abdomen","abdominal","abide","abiding","ability","ablaze","able","abnormal","abrasion","abrasive","abreast","abridge","abroad","abruptly","absence","absentee","absently","absinthe","absolute","absolve","abstain","abstract","absurd","accent","acclaim","acclimate","accompany","account","accuracy","accurate","accustom","acetone","achiness","aching","acid","acorn","acquaint","acquire","acre","acrobat","acronym","acting","action","activate","activator","active","activism","activist","activity","actress","acts","acutely","acuteness","aeration","aerobics","aerosol","aerospace","afar","affair","affected","affecting","affection","affidavit","affiliate","affirm","affix","afflicted","affluent","afford","affront","aflame","afloat","aflutter","afoot","afraid","afterglow","afterlife","aftermath","aftermost","afternoon","aged","ageless","agency","agenda","agent","aggregate","aghast","agile","agility","aging","agnostic","agonize","agonizing","agony","agreeable","agreeably","agreed","agreeing","agreement","aground","ahead","ahoy","aide","aids","aim","ajar","alabaster","alarm","albatross","album","alfalfa","algebra","algorithm","alias","alibi","alienable","alienate","aliens","alike","alive","alkaline","alkalize","almanac","almighty","almost","aloe","aloft","aloha","alone","alongside","aloof","alphabet","alright","although","altitude","alto","aluminum","alumni","always","amaretto","amaze","amazingly","amber","ambiance","ambiguity","ambiguous","ambition","ambitious","ambulance","ambush","amendable","amendment","amends","amenity","amiable","amicably","amid","amigo","amino","amiss","ammonia","ammonium","amnesty","amniotic","among","amount","amperage","ample","amplifier","amplify","amply","amuck","amulet","amusable","amused","amusement","amuser","amusing","anaconda","anaerobic","anagram","anatomist","anatomy","anchor","anchovy","ancient","android","anemia","anemic","aneurism","anew","angelfish","angelic","anger","angled","angler","angles","angling","angrily","angriness","anguished","angular","animal","animate","animating","animation","animator","anime","animosity","ankle","annex","annotate","announcer","annoying","annually","annuity","anointer","another","answering","antacid","antarctic","anteater","antelope","antennae","anthem","anthill","anthology","antibody","antics","antidote","antihero","antiquely","antiques","antiquity","antirust","antitoxic","antitrust","antiviral","antivirus","antler","antonym","antsy","anvil","anybody","anyhow","anymore","anyone","anyplace","anything","anytime","anyway","anywhere","aorta","apache","apostle","appealing","appear","appease","appeasing","appendage","appendix","appetite","appetizer","applaud","applause","apple","appliance","applicant","applied","apply","appointee","appraisal","appraiser","apprehend","approach","approval","approve","apricot","april","apron","aptitude","aptly","aqua","aqueduct","arbitrary","arbitrate","ardently","area","arena","arguable","arguably","argue","arise","armadillo","armband","armchair","armed","armful","armhole","arming","armless","armoire","armored","armory","armrest","army","aroma","arose","around","arousal","arrange","array","arrest","arrival","arrive","arrogance","arrogant","arson","art","ascend","ascension","ascent","ascertain","ashamed","ashen","ashes","ashy","aside","askew","asleep","asparagus","aspect","aspirate","aspire","aspirin","astonish","astound","astride","astrology","astronaut","astronomy","astute","atlantic","atlas","atom","atonable","atop","atrium","atrocious","atrophy","attach","attain","attempt","attendant","attendee","attention","attentive","attest","attic","attire","attitude","attractor","attribute","atypical","auction","audacious","audacity","audible","audibly","audience","audio","audition","augmented","august","authentic","author","autism","autistic","autograph","automaker","automated","automatic","autopilot","available","avalanche","avatar","avenge","avenging","avenue","average","aversion","avert","aviation","aviator","avid","avoid","await","awaken","award","aware","awhile","awkward","awning","awoke","awry","axis","babble","babbling","babied","baboon","backache","backboard","backboned","backdrop","backed","backer","backfield","backfire","backhand","backing","backlands","backlash","backless","backlight","backlit","backlog","backpack","backpedal","backrest","backroom","backshift","backside","backslid","backspace","backspin","backstab","backstage","backtalk","backtrack","backup","backward","backwash","backwater","backyard","bacon","bacteria","bacterium","badass","badge","badland","badly","badness","baffle","baffling","bagel","bagful","baggage","bagged","baggie","bagginess","bagging","baggy","bagpipe","baguette","baked","bakery","bakeshop","baking","balance","balancing","balcony","balmy","balsamic","bamboo","banana","banish","banister","banjo","bankable","bankbook","banked","banker","banking","banknote","bankroll","banner","bannister","banshee","banter","barbecue","barbed","barbell","barber","barcode","barge","bargraph","barista","baritone","barley","barmaid","barman","barn","barometer","barrack","barracuda","barrel","barrette","barricade","barrier","barstool","bartender","barterer","bash","basically","basics","basil","basin","basis","basket","batboy","batch","bath","baton","bats","battalion","battered","battering","battery","batting","battle","bauble","bazooka","blabber","bladder","blade","blah","blame","blaming","blanching","blandness","blank","blaspheme","blasphemy","blast","blatancy","blatantly","blazer","blazing","bleach","bleak","bleep","blemish","blend","bless","blighted","blimp","bling","blinked","blinker","blinking","blinks","blip","blissful","blitz","blizzard","bloated","bloating","blob","blog","bloomers","blooming","blooper","blot","blouse","blubber","bluff","bluish","blunderer","blunt","blurb","blurred","blurry","blurt","blush","blustery","boaster","boastful","boasting","boat","bobbed","bobbing","bobble","bobcat","bobsled","bobtail","bodacious","body","bogged","boggle","bogus","boil","bok","bolster","bolt","bonanza","bonded","bonding","bondless","boned","bonehead","boneless","bonelike","boney","bonfire","bonnet","bonsai","bonus","bony","boogeyman","boogieman","book","boondocks","booted","booth","bootie","booting","bootlace","bootleg","boots","boozy","borax","boring","borough","borrower","borrowing","boss","botanical","botanist","botany","botch","both","bottle","bottling","bottom","bounce","bouncing","bouncy","bounding","boundless","bountiful","bovine","boxcar","boxer","boxing","boxlike","boxy","breach","breath","breeches","breeching","breeder","breeding","breeze","breezy","brethren","brewery","brewing","briar","bribe","brick","bride","bridged","brigade","bright","brilliant","brim","bring","brink","brisket","briskly","briskness","bristle","brittle","broadband","broadcast","broaden","broadly","broadness","broadside","broadways","broiler","broiling","broken","broker","bronchial","bronco","bronze","bronzing","brook","broom","brought","browbeat","brownnose","browse","browsing","bruising","brunch","brunette","brunt","brush","brussels","brute","brutishly","bubble","bubbling","bubbly","buccaneer","bucked","bucket","buckle","buckshot","buckskin","bucktooth","buckwheat","buddhism","buddhist","budding","buddy","budget","buffalo","buffed","buffer","buffing","buffoon","buggy","bulb","bulge","bulginess","bulgur","bulk","bulldog","bulldozer","bullfight","bullfrog","bullhorn","bullion","bullish","bullpen","bullring","bullseye","bullwhip","bully","bunch","bundle","bungee","bunion","bunkbed","bunkhouse","bunkmate","bunny","bunt","busboy","bush","busily","busload","bust","busybody","buzz","cabana","cabbage","cabbie","cabdriver","cable","caboose","cache","cackle","cacti","cactus","caddie","caddy","cadet","cadillac","cadmium","cage","cahoots","cake","calamari","calamity","calcium","calculate","calculus","caliber","calibrate","calm","caloric","calorie","calzone","camcorder","cameo","camera","camisole","camper","campfire","camping","campsite","campus","canal","canary","cancel","candied","candle","candy","cane","canine","canister","cannabis","canned","canning","cannon","cannot","canola","canon","canopener","canopy","canteen","canyon","capable","capably","capacity","cape","capillary","capital","capitol","capped","capricorn","capsize","capsule","caption","captivate","captive","captivity","capture","caramel","carat","caravan","carbon","cardboard","carded","cardiac","cardigan","cardinal","cardstock","carefully","caregiver","careless","caress","caretaker","cargo","caring","carless","carload","carmaker","carnage","carnation","carnival","carnivore","carol","carpenter","carpentry","carpool","carport","carried","carrot","carrousel","carry","cartel","cartload","carton","cartoon","cartridge","cartwheel","carve","carving","carwash","cascade","case","cash","casing","casino","casket","cassette","casually","casualty","catacomb","catalog","catalyst","catalyze","catapult","cataract","catatonic","catcall","catchable","catcher","catching","catchy","caterer","catering","catfight","catfish","cathedral","cathouse","catlike","catnap","catnip","catsup","cattail","cattishly","cattle","catty","catwalk","caucasian","caucus","causal","causation","cause","causing","cauterize","caution","cautious","cavalier","cavalry","caviar","cavity","cedar","celery","celestial","celibacy","celibate","celtic","cement","census","ceramics","ceremony","certainly","certainty","certified","certify","cesarean","cesspool","chafe","chaffing","chain","chair","chalice","challenge","chamber","chamomile","champion","chance","change","channel","chant","chaos","chaperone","chaplain","chapped","chaps","chapter","character","charbroil","charcoal","charger","charging","chariot","charity","charm","charred","charter","charting","chase","chasing","chaste","chastise","chastity","chatroom","chatter","chatting","chatty","cheating","cheddar","cheek","cheer","cheese","cheesy","chef","chemicals","chemist","chemo","cherisher","cherub","chess","chest","chevron","chevy","chewable","chewer","chewing","chewy","chief","chihuahua","childcare","childhood","childish","childless","childlike","chili","chill","chimp","chip","chirping","chirpy","chitchat","chivalry","chive","chloride","chlorine","choice","chokehold","choking","chomp","chooser","choosing","choosy","chop","chosen","chowder","chowtime","chrome","chubby","chuck","chug","chummy","chump","chunk","churn","chute","cider","cilantro","cinch","cinema","cinnamon","circle","circling","circular","circulate","circus","citable","citadel","citation","citizen","citric","citrus","city","civic","civil","clad","claim","clambake","clammy","clamor","clamp","clamshell","clang","clanking","clapped","clapper","clapping","clarify","clarinet","clarity","clash","clasp","class","clatter","clause","clavicle","claw","clay","clean","clear","cleat","cleaver","cleft","clench","clergyman","clerical","clerk","clever","clicker","client","climate","climatic","cling","clinic","clinking","clip","clique","cloak","clobber","clock","clone","cloning","closable","closure","clothes","clothing","cloud","clover","clubbed","clubbing","clubhouse","clump","clumsily","clumsy","clunky","clustered","clutch","clutter","coach","coagulant","coastal","coaster","coasting","coastland","coastline","coat","coauthor","cobalt","cobbler","cobweb","cocoa","coconut","cod","coeditor","coerce","coexist","coffee","cofounder","cognition","cognitive","cogwheel","coherence","coherent","cohesive","coil","coke","cola","cold","coleslaw","coliseum","collage","collapse","collar","collected","collector","collide","collie","collision","colonial","colonist","colonize","colony","colossal","colt","coma","come","comfort","comfy","comic","coming","comma","commence","commend","comment","commerce","commode","commodity","commodore","common","commotion","commute","commuting","compacted","compacter","compactly","compactor","companion","company","compare","compel","compile","comply","component","composed","composer","composite","compost","composure","compound","compress","comprised","computer","computing","comrade","concave","conceal","conceded","concept","concerned","concert","conch","concierge","concise","conclude","concrete","concur","condense","condiment","condition","condone","conducive","conductor","conduit","cone","confess","confetti","confidant","confident","confider","confiding","configure","confined","confining","confirm","conflict","conform","confound","confront","confused","confusing","confusion","congenial","congested","congrats","congress","conical","conjoined","conjure","conjuror","connected","connector","consensus","consent","console","consoling","consonant","constable","constant","constrain","constrict","construct","consult","consumer","consuming","contact","container","contempt","contend","contented","contently","contents","contest","context","contort","contour","contrite","control","contusion","convene","convent","copartner","cope","copied","copier","copilot","coping","copious","copper","copy","coral","cork","cornball","cornbread","corncob","cornea","corned","corner","cornfield","cornflake","cornhusk","cornmeal","cornstalk","corny","coronary","coroner","corporal","corporate","corral","correct","corridor","corrode","corroding","corrosive","corsage","corset","cortex","cosigner","cosmetics","cosmic","cosmos","cosponsor","cost","cottage","cotton","couch","cough","could","countable","countdown","counting","countless","country","county","courier","covenant","cover","coveted","coveting","coyness","cozily","coziness","cozy","crabbing","crabgrass","crablike","crabmeat","cradle","cradling","crafter","craftily","craftsman","craftwork","crafty","cramp","cranberry","crane","cranial","cranium","crank","crate","crave","craving","crawfish","crawlers","crawling","crayfish","crayon","crazed","crazily","craziness","crazy","creamed","creamer","creamlike","crease","creasing","creatable","create","creation","creative","creature","credible","credibly","credit","creed","creme","creole","crepe","crept","crescent","crested","cresting","crestless","crevice","crewless","crewman","crewmate","crib","cricket","cried","crier","crimp","crimson","cringe","cringing","crinkle","crinkly","crisped","crisping","crisply","crispness","crispy","criteria","critter","croak","crock","crook","croon","crop","cross","crouch","crouton","crowbar","crowd","crown","crucial","crudely","crudeness","cruelly","cruelness","cruelty","crumb","crummiest","crummy","crumpet","crumpled","cruncher","crunching","crunchy","crusader","crushable","crushed","crusher","crushing","crust","crux","crying","cryptic","crystal","cubbyhole","cube","cubical","cubicle","cucumber","cuddle","cuddly","cufflink","culinary","culminate","culpable","culprit","cultivate","cultural","culture","cupbearer","cupcake","cupid","cupped","cupping","curable","curator","curdle","cure","curfew","curing","curled","curler","curliness","curling","curly","curry","curse","cursive","cursor","curtain","curtly","curtsy","curvature","curve","curvy","cushy","cusp","cussed","custard","custodian","custody","customary","customer","customize","customs","cut","cycle","cyclic","cycling","cyclist","cylinder","cymbal","cytoplasm","cytoplast","dab","dad","daffodil","dagger","daily","daintily","dainty","dairy","daisy","dallying","dance","dancing","dandelion","dander","dandruff","dandy","danger","dangle","dangling","daredevil","dares","daringly","darkened","darkening","darkish","darkness","darkroom","darling","darn","dart","darwinism","dash","dastardly","data","datebook","dating","daughter","daunting","dawdler","dawn","daybed","daybreak","daycare","daydream","daylight","daylong","dayroom","daytime","dazzler","dazzling","deacon","deafening","deafness","dealer","dealing","dealmaker","dealt","dean","debatable","debate","debating","debit","debrief","debtless","debtor","debug","debunk","decade","decaf","decal","decathlon","decay","deceased","deceit","deceiver","deceiving","december","decency","decent","deception","deceptive","decibel","decidable","decimal","decimeter","decipher","deck","declared","decline","decode","decompose","decorated","decorator","decoy","decrease","decree","dedicate","dedicator","deduce","deduct","deed","deem","deepen","deeply","deepness","deface","defacing","defame","default","defeat","defection","defective","defendant","defender","defense","defensive","deferral","deferred","defiance","defiant","defile","defiling","define","definite","deflate","deflation","deflator","deflected","deflector","defog","deforest","defraud","defrost","deftly","defuse","defy","degraded","degrading","degrease","degree","dehydrate","deity","dejected","delay","delegate","delegator","delete","deletion","delicacy","delicate","delicious","delighted","delirious","delirium","deliverer","delivery","delouse","delta","deluge","delusion","deluxe","demanding","demeaning","demeanor","demise","democracy","democrat","demote","demotion","demystify","denatured","deniable","denial","denim","denote","dense","density","dental","dentist","denture","deny","deodorant","deodorize","departed","departure","depict","deplete","depletion","deplored","deploy","deport","depose","depraved","depravity","deprecate","depress","deprive","depth","deputize","deputy","derail","deranged","derby","derived","desecrate","deserve","deserving","designate","designed","designer","designing","deskbound","desktop","deskwork","desolate","despair","despise","despite","destiny","destitute","destruct","detached","detail","detection","detective","detector","detention","detergent","detest","detonate","detonator","detoxify","detract","deuce","devalue","deviancy","deviant","deviate","deviation","deviator","device","devious","devotedly","devotee","devotion","devourer","devouring","devoutly","dexterity","dexterous","diabetes","diabetic","diabolic","diagnoses","diagnosis","diagram","dial","diameter","diaper","diaphragm","diary","dice","dicing","dictate","dictation","dictator","difficult","diffused","diffuser","diffusion","diffusive","dig","dilation","diligence","diligent","dill","dilute","dime","diminish","dimly","dimmed","dimmer","dimness","dimple","diner","dingbat","dinghy","dinginess","dingo","dingy","dining","dinner","diocese","dioxide","diploma","dipped","dipper","dipping","directed","direction","directive","directly","directory","direness","dirtiness","disabled","disagree","disallow","disarm","disarray","disaster","disband","disbelief","disburse","discard","discern","discharge","disclose","discolor","discount","discourse","discover","discuss","disdain","disengage","disfigure","disgrace","dish","disinfect","disjoin","disk","dislike","disliking","dislocate","dislodge","disloyal","dismantle","dismay","dismiss","dismount","disobey","disorder","disown","disparate","disparity","dispatch","dispense","dispersal","dispersed","disperser","displace","display","displease","disposal","dispose","disprove","dispute","disregard","disrupt","dissuade","distance","distant","distaste","distill","distinct","distort","distract","distress","district","distrust","ditch","ditto","ditzy","dividable","divided","dividend","dividers","dividing","divinely","diving","divinity","divisible","divisibly","division","divisive","divorcee","dizziness","dizzy","doable","docile","dock","doctrine","document","dodge","dodgy","doily","doing","dole","dollar","dollhouse","dollop","dolly","dolphin","domain","domelike","domestic","dominion","dominoes","donated","donation","donator","donor","donut","doodle","doorbell","doorframe","doorknob","doorman","doormat","doornail","doorpost","doorstep","doorstop","doorway","doozy","dork","dormitory","dorsal","dosage","dose","dotted","doubling","douche","dove","down","dowry","doze","drab","dragging","dragonfly","dragonish","dragster","drainable","drainage","drained","drainer","drainpipe","dramatic","dramatize","drank","drapery","drastic","draw","dreaded","dreadful","dreadlock","dreamboat","dreamily","dreamland","dreamless","dreamlike","dreamt","dreamy","drearily","dreary","drench","dress","drew","dribble","dried","drier","drift","driller","drilling","drinkable","drinking","dripping","drippy","drivable","driven","driver","driveway","driving","drizzle","drizzly","drone","drool","droop","drop-down","dropbox","dropkick","droplet","dropout","dropper","drove","drown","drowsily","drudge","drum","dry","dubbed","dubiously","duchess","duckbill","ducking","duckling","ducktail","ducky","duct","dude","duffel","dugout","duh","duke","duller","dullness","duly","dumping","dumpling","dumpster","duo","dupe","duplex","duplicate","duplicity","durable","durably","duration","duress","during","dusk","dust","dutiful","duty","duvet","dwarf","dweeb","dwelled","dweller","dwelling","dwindle","dwindling","dynamic","dynamite","dynasty","dyslexia","dyslexic","each","eagle","earache","eardrum","earflap","earful","earlobe","early","earmark","earmuff","earphone","earpiece","earplugs","earring","earshot","earthen","earthlike","earthling","earthly","earthworm","earthy","earwig","easeful","easel","easiest","easily","easiness","easing","eastbound","eastcoast","easter","eastward","eatable","eaten","eatery","eating","eats","ebay","ebony","ebook","ecard","eccentric","echo","eclair","eclipse","ecologist","ecology","economic","economist","economy","ecosphere","ecosystem","edge","edginess","edging","edgy","edition","editor","educated","education","educator","eel","effective","effects","efficient","effort","eggbeater","egging","eggnog","eggplant","eggshell","egomaniac","egotism","egotistic","either","eject","elaborate","elastic","elated","elbow","eldercare","elderly","eldest","electable","election","elective","elephant","elevate","elevating","elevation","elevator","eleven","elf","eligible","eligibly","eliminate","elite","elitism","elixir","elk","ellipse","elliptic","elm","elongated","elope","eloquence","eloquent","elsewhere","elude","elusive","elves","email","embargo","embark","embassy","embattled","embellish","ember","embezzle","emblaze","emblem","embody","embolism","emboss","embroider","emcee","emerald","emergency","emission","emit","emote","emoticon","emotion","empathic","empathy","emperor","emphases","emphasis","emphasize","emphatic","empirical","employed","employee","employer","emporium","empower","emptier","emptiness","empty","emu","enable","enactment","enamel","enchanted","enchilada","encircle","enclose","enclosure","encode","encore","encounter","encourage","encroach","encrust","encrypt","endanger","endeared","endearing","ended","ending","endless","endnote","endocrine","endorphin","endorse","endowment","endpoint","endurable","endurance","enduring","energetic","energize","energy","enforced","enforcer","engaged","engaging","engine","engorge","engraved","engraver","engraving","engross","engulf","enhance","enigmatic","enjoyable","enjoyably","enjoyer","enjoying","enjoyment","enlarged","enlarging","enlighten","enlisted","enquirer","enrage","enrich","enroll","enslave","ensnare","ensure","entail","entangled","entering","entertain","enticing","entire","entitle","entity","entomb","entourage","entrap","entree","entrench","entrust","entryway","entwine","enunciate","envelope","enviable","enviably","envious","envision","envoy","envy","enzyme","epic","epidemic","epidermal","epidermis","epidural","epilepsy","epileptic","epilogue","epiphany","episode","equal","equate","equation","equator","equinox","equipment","equity","equivocal","eradicate","erasable","erased","eraser","erasure","ergonomic","errand","errant","erratic","error","erupt","escalate","escalator","escapable","escapade","escapist","escargot","eskimo","esophagus","espionage","espresso","esquire","essay","essence","essential","establish","estate","esteemed","estimate","estimator","estranged","estrogen","etching","eternal","eternity","ethanol","ether","ethically","ethics","euphemism","evacuate","evacuee","evade","evaluate","evaluator","evaporate","evasion","evasive","even","everglade","evergreen","everybody","everyday","everyone","evict","evidence","evident","evil","evoke","evolution","evolve","exact","exalted","example","excavate","excavator","exceeding","exception","excess","exchange","excitable","exciting","exclaim","exclude","excluding","exclusion","exclusive","excretion","excretory","excursion","excusable","excusably","excuse","exemplary","exemplify","exemption","exerciser","exert","exes","exfoliate","exhale","exhaust","exhume","exile","existing","exit","exodus","exonerate","exorcism","exorcist","expand","expanse","expansion","expansive","expectant","expedited","expediter","expel","expend","expenses","expensive","expert","expire","expiring","explain","expletive","explicit","explode","exploit","explore","exploring","exponent","exporter","exposable","expose","exposure","express","expulsion","exquisite","extended","extending","extent","extenuate","exterior","external","extinct","extortion","extradite","extras","extrovert","extrude","extruding","exuberant","fable","fabric","fabulous","facebook","facecloth","facedown","faceless","facelift","faceplate","faceted","facial","facility","facing","facsimile","faction","factoid","factor","factsheet","factual","faculty","fade","fading","failing","falcon","fall","false","falsify","fame","familiar","family","famine","famished","fanatic","fancied","fanciness","fancy","fanfare","fang","fanning","fantasize","fantastic","fantasy","fascism","fastball","faster","fasting","fastness","faucet","favorable","favorably","favored","favoring","favorite","fax","feast","federal","fedora","feeble","feed","feel","feisty","feline","felt-tip","feminine","feminism","feminist","feminize","femur","fence","fencing","fender","ferment","fernlike","ferocious","ferocity","ferret","ferris","ferry","fervor","fester","festival","festive","festivity","fetal","fetch","fever","fiber","fiction","fiddle","fiddling","fidelity","fidgeting","fidgety","fifteen","fifth","fiftieth","fifty","figment","figure","figurine","filing","filled","filler","filling","film","filter","filth","filtrate","finale","finalist","finalize","finally","finance","financial","finch","fineness","finer","finicky","finished","finisher","finishing","finite","finless","finlike","fiscally","fit","five","flaccid","flagman","flagpole","flagship","flagstick","flagstone","flail","flakily","flaky","flame","flammable","flanked","flanking","flannels","flap","flaring","flashback","flashbulb","flashcard","flashily","flashing","flashy","flask","flatbed","flatfoot","flatly","flatness","flatten","flattered","flatterer","flattery","flattop","flatware","flatworm","flavored","flavorful","flavoring","flaxseed","fled","fleshed","fleshy","flick","flier","flight","flinch","fling","flint","flip","flirt","float","flock","flogging","flop","floral","florist","floss","flounder","flyable","flyaway","flyer","flying","flyover","flypaper","foam","foe","fog","foil","folic","folk","follicle","follow","fondling","fondly","fondness","fondue","font","food","fool","footage","football","footbath","footboard","footer","footgear","foothill","foothold","footing","footless","footman","footnote","footpad","footpath","footprint","footrest","footsie","footsore","footwear","footwork","fossil","foster","founder","founding","fountain","fox","foyer","fraction","fracture","fragile","fragility","fragment","fragrance","fragrant","frail","frame","framing","frantic","fraternal","frayed","fraying","frays","freckled","freckles","freebase","freebee","freebie","freedom","freefall","freehand","freeing","freeload","freely","freemason","freeness","freestyle","freeware","freeway","freewill","freezable","freezing","freight","french","frenzied","frenzy","frequency","frequent","fresh","fretful","fretted","friction","friday","fridge","fried","friend","frighten","frightful","frigidity","frigidly","frill","fringe","frisbee","frisk","fritter","frivolous","frolic","from","front","frostbite","frosted","frostily","frosting","frostlike","frosty","froth","frown","frozen","fructose","frugality","frugally","fruit","frustrate","frying","gab","gaffe","gag","gainfully","gaining","gains","gala","gallantly","galleria","gallery","galley","gallon","gallows","gallstone","galore","galvanize","gambling","game","gaming","gamma","gander","gangly","gangrene","gangway","gap","garage","garbage","garden","gargle","garland","garlic","garment","garnet","garnish","garter","gas","gatherer","gathering","gating","gauging","gauntlet","gauze","gave","gawk","gazing","gear","gecko","geek","geiger","gem","gender","generic","generous","genetics","genre","gentile","gentleman","gently","gents","geography","geologic","geologist","geology","geometric","geometry","geranium","gerbil","geriatric","germicide","germinate","germless","germproof","gestate","gestation","gesture","getaway","getting","getup","giant","gibberish","giblet","giddily","giddiness","giddy","gift","gigabyte","gigahertz","gigantic","giggle","giggling","giggly","gigolo","gilled","gills","gimmick","girdle","giveaway","given","giver","giving","gizmo","gizzard","glacial","glacier","glade","gladiator","gladly","glamorous","glamour","glance","glancing","glandular","glare","glaring","glass","glaucoma","glazing","gleaming","gleeful","glider","gliding","glimmer","glimpse","glisten","glitch","glitter","glitzy","gloater","gloating","gloomily","gloomy","glorified","glorifier","glorify","glorious","glory","gloss","glove","glowing","glowworm","glucose","glue","gluten","glutinous","glutton","gnarly","gnat","goal","goatskin","goes","goggles","going","goldfish","goldmine","goldsmith","golf","goliath","gonad","gondola","gone","gong","good","gooey","goofball","goofiness","goofy","google","goon","gopher","gore","gorged","gorgeous","gory","gosling","gossip","gothic","gotten","gout","gown","grab","graceful","graceless","gracious","gradation","graded","grader","gradient","grading","gradually","graduate","graffiti","grafted","grafting","grain","granddad","grandkid","grandly","grandma","grandpa","grandson","granite","granny","granola","grant","granular","grape","graph","grapple","grappling","grasp","grass","gratified","gratify","grating","gratitude","gratuity","gravel","graveness","graves","graveyard","gravitate","gravity","gravy","gray","grazing","greasily","greedily","greedless","greedy","green","greeter","greeting","grew","greyhound","grid","grief","grievance","grieving","grievous","grill","grimace","grimacing","grime","griminess","grimy","grinch","grinning","grip","gristle","grit","groggily","groggy","groin","groom","groove","grooving","groovy","grope","ground","grouped","grout","grove","grower","growing","growl","grub","grudge","grudging","grueling","gruffly","grumble","grumbling","grumbly","grumpily","grunge","grunt","guacamole","guidable","guidance","guide","guiding","guileless","guise","gulf","gullible","gully","gulp","gumball","gumdrop","gumminess","gumming","gummy","gurgle","gurgling","guru","gush","gusto","gusty","gutless","guts","gutter","guy","guzzler","gyration","habitable","habitant","habitat","habitual","hacked","hacker","hacking","hacksaw","had","haggler","haiku","half","halogen","halt","halved","halves","hamburger","hamlet","hammock","hamper","hamster","hamstring","handbag","handball","handbook","handbrake","handcart","handclap","handclasp","handcraft","handcuff","handed","handful","handgrip","handgun","handheld","handiness","handiwork","handlebar","handled","handler","handling","handmade","handoff","handpick","handprint","handrail","handsaw","handset","handsfree","handshake","handstand","handwash","handwork","handwoven","handwrite","handyman","hangnail","hangout","hangover","hangup","hankering","hankie","hanky","haphazard","happening","happier","happiest","happily","happiness","happy","harbor","hardcopy","hardcore","hardcover","harddisk","hardened","hardener","hardening","hardhat","hardhead","hardiness","hardly","hardness","hardship","hardware","hardwired","hardwood","hardy","harmful","harmless","harmonica","harmonics","harmonize","harmony","harness","harpist","harsh","harvest","hash","hassle","haste","hastily","hastiness","hasty","hatbox","hatchback","hatchery","hatchet","hatching","hatchling","hate","hatless","hatred","haunt","haven","hazard","hazelnut","hazily","haziness","hazing","hazy","headache","headband","headboard","headcount","headdress","headed","header","headfirst","headgear","heading","headlamp","headless","headlock","headphone","headpiece","headrest","headroom","headscarf","headset","headsman","headstand","headstone","headway","headwear","heap","heat","heave","heavily","heaviness","heaving","hedge","hedging","heftiness","hefty","helium","helmet","helper","helpful","helping","helpless","helpline","hemlock","hemstitch","hence","henchman","henna","herald","herbal","herbicide","herbs","heritage","hermit","heroics","heroism","herring","herself","hertz","hesitancy","hesitant","hesitate","hexagon","hexagram","hubcap","huddle","huddling","huff","hug","hula","hulk","hull","human","humble","humbling","humbly","humid","humiliate","humility","humming","hummus","humongous","humorist","humorless","humorous","humpback","humped","humvee","hunchback","hundredth","hunger","hungrily","hungry","hunk","hunter","hunting","huntress","huntsman","hurdle","hurled","hurler","hurling","hurray","hurricane","hurried","hurry","hurt","husband","hush","husked","huskiness","hut","hybrid","hydrant","hydrated","hydration","hydrogen","hydroxide","hyperlink","hypertext","hyphen","hypnoses","hypnosis","hypnotic","hypnotism","hypnotist","hypnotize","hypocrisy","hypocrite","ibuprofen","ice","iciness","icing","icky","icon","icy","idealism","idealist","idealize","ideally","idealness","identical","identify","identity","ideology","idiocy","idiom","idly","igloo","ignition","ignore","iguana","illicitly","illusion","illusive","image","imaginary","imagines","imaging","imbecile","imitate","imitation","immature","immerse","immersion","imminent","immobile","immodest","immorally","immortal","immovable","immovably","immunity","immunize","impaired","impale","impart","impatient","impeach","impeding","impending","imperfect","imperial","impish","implant","implement","implicate","implicit","implode","implosion","implosive","imply","impolite","important","importer","impose","imposing","impotence","impotency","impotent","impound","imprecise","imprint","imprison","impromptu","improper","improve","improving","improvise","imprudent","impulse","impulsive","impure","impurity","iodine","iodize","ion","ipad","iphone","ipod","irate","irk","iron","irregular","irrigate","irritable","irritably","irritant","irritate","islamic","islamist","isolated","isolating","isolation","isotope","issue","issuing","italicize","italics","item","itinerary","itunes","ivory","ivy","jab","jackal","jacket","jackknife","jackpot","jailbird","jailbreak","jailer","jailhouse","jalapeno","jam","janitor","january","jargon","jarring","jasmine","jaundice","jaunt","java","jawed","jawless","jawline","jaws","jaybird","jaywalker","jazz","jeep","jeeringly","jellied","jelly","jersey","jester","jet","jiffy","jigsaw","jimmy","jingle","jingling","jinx","jitters","jittery","job","jockey","jockstrap","jogger","jogging","john","joining","jokester","jokingly","jolliness","jolly","jolt","jot","jovial","joyfully","joylessly","joyous","joyride","joystick","jubilance","jubilant","judge","judgingly","judicial","judiciary","judo","juggle","juggling","jugular","juice","juiciness","juicy","jujitsu","jukebox","july","jumble","jumbo","jump","junction","juncture","june","junior","juniper","junkie","junkman","junkyard","jurist","juror","jury","justice","justifier","justify","justly","justness","juvenile","kabob","kangaroo","karaoke","karate","karma","kebab","keenly","keenness","keep","keg","kelp","kennel","kept","kerchief","kerosene","kettle","kick","kiln","kilobyte","kilogram","kilometer","kilowatt","kilt","kimono","kindle","kindling","kindly","kindness","kindred","kinetic","kinfolk","king","kinship","kinsman","kinswoman","kissable","kisser","kissing","kitchen","kite","kitten","kitty","kiwi","kleenex","knapsack","knee","knelt","knickers","knoll","koala","kooky","kosher","krypton","kudos","kung","labored","laborer","laboring","laborious","labrador","ladder","ladies","ladle","ladybug","ladylike","lagged","lagging","lagoon","lair","lake","lance","landed","landfall","landfill","landing","landlady","landless","landline","landlord","landmark","landmass","landmine","landowner","landscape","landside","landslide","language","lankiness","lanky","lantern","lapdog","lapel","lapped","lapping","laptop","lard","large","lark","lash","lasso","last","latch","late","lather","latitude","latrine","latter","latticed","launch","launder","laundry","laurel","lavender","lavish","laxative","lazily","laziness","lazy","lecturer","left","legacy","legal","legend","legged","leggings","legible","legibly","legislate","lego","legroom","legume","legwarmer","legwork","lemon","lend","length","lens","lent","leotard","lesser","letdown","lethargic","lethargy","letter","lettuce","level","leverage","levers","levitate","levitator","liability","liable","liberty","librarian","library","licking","licorice","lid","life","lifter","lifting","liftoff","ligament","likely","likeness","likewise","liking","lilac","lilly","lily","limb","limeade","limelight","limes","limit","limping","limpness","line","lingo","linguini","linguist","lining","linked","linoleum","linseed","lint","lion","lip","liquefy","liqueur","liquid","lisp","list","litigate","litigator","litmus","litter","little","livable","lived","lively","liver","livestock","lividly","living","lizard","lubricant","lubricate","lucid","luckily","luckiness","luckless","lucrative","ludicrous","lugged","lukewarm","lullaby","lumber","luminance","luminous","lumpiness","lumping","lumpish","lunacy","lunar","lunchbox","luncheon","lunchroom","lunchtime","lung","lurch","lure","luridness","lurk","lushly","lushness","luster","lustfully","lustily","lustiness","lustrous","lusty","luxurious","luxury","lying","lyrically","lyricism","lyricist","lyrics","macarena","macaroni","macaw","mace","machine","machinist","magazine","magenta","maggot","magical","magician","magma","magnesium","magnetic","magnetism","magnetize","magnifier","magnify","magnitude","magnolia","mahogany","maimed","majestic","majesty","majorette","majority","makeover","maker","makeshift","making","malformed","malt","mama","mammal","mammary","mammogram","manager","managing","manatee","mandarin","mandate","mandatory","mandolin","manger","mangle","mango","mangy","manhandle","manhole","manhood","manhunt","manicotti","manicure","manifesto","manila","mankind","manlike","manliness","manly","manmade","manned","mannish","manor","manpower","mantis","mantra","manual","many","map","marathon","marauding","marbled","marbles","marbling","march","mardi","margarine","margarita","margin","marigold","marina","marine","marital","maritime","marlin","marmalade","maroon","married","marrow","marry","marshland","marshy","marsupial","marvelous","marxism","mascot","masculine","mashed","mashing","massager","masses","massive","mastiff","matador","matchbook","matchbox","matcher","matching","matchless","material","maternal","maternity","math","mating","matriarch","matrimony","matrix","matron","matted","matter","maturely","maturing","maturity","mauve","maverick","maximize","maximum","maybe","mayday","mayflower","moaner","moaning","mobile","mobility","mobilize","mobster","mocha","mocker","mockup","modified","modify","modular","modulator","module","moisten","moistness","moisture","molar","molasses","mold","molecular","molecule","molehill","mollusk","mom","monastery","monday","monetary","monetize","moneybags","moneyless","moneywise","mongoose","mongrel","monitor","monkhood","monogamy","monogram","monologue","monopoly","monorail","monotone","monotype","monoxide","monsieur","monsoon","monstrous","monthly","monument","moocher","moodiness","moody","mooing","moonbeam","mooned","moonlight","moonlike","moonlit","moonrise","moonscape","moonshine","moonstone","moonwalk","mop","morale","morality","morally","morbidity","morbidly","morphine","morphing","morse","mortality","mortally","mortician","mortified","mortify","mortuary","mosaic","mossy","most","mothball","mothproof","motion","motivate","motivator","motive","motocross","motor","motto","mountable","mountain","mounted","mounting","mourner","mournful","mouse","mousiness","moustache","mousy","mouth","movable","move","movie","moving","mower","mowing","much","muck","mud","mug","mulberry","mulch","mule","mulled","mullets","multiple","multiply","multitask","multitude","mumble","mumbling","mumbo","mummified","mummify","mummy","mumps","munchkin","mundane","municipal","muppet","mural","murkiness","murky","murmuring","muscular","museum","mushily","mushiness","mushroom","mushy","music","musket","muskiness","musky","mustang","mustard","muster","mustiness","musty","mutable","mutate","mutation","mute","mutilated","mutilator","mutiny","mutt","mutual","muzzle","myself","myspace","mystified","mystify","myth","nacho","nag","nail","name","naming","nanny","nanometer","nape","napkin","napped","napping","nappy","narrow","nastily","nastiness","national","native","nativity","natural","nature","naturist","nautical","navigate","navigator","navy","nearby","nearest","nearly","nearness","neatly","neatness","nebula","nebulizer","nectar","negate","negation","negative","neglector","negligee","negligent","negotiate","nemeses","nemesis","neon","nephew","nerd","nervous","nervy","nest","net","neurology","neuron","neurosis","neurotic","neuter","neutron","never","next","nibble","nickname","nicotine","niece","nifty","nimble","nimbly","nineteen","ninetieth","ninja","nintendo","ninth","nuclear","nuclei","nucleus","nugget","nullify","number","numbing","numbly","numbness","numeral","numerate","numerator","numeric","numerous","nuptials","nursery","nursing","nurture","nutcase","nutlike","nutmeg","nutrient","nutshell","nuttiness","nutty","nuzzle","nylon","oaf","oak","oasis","oat","obedience","obedient","obituary","object","obligate","obliged","oblivion","oblivious","oblong","obnoxious","oboe","obscure","obscurity","observant","observer","observing","obsessed","obsession","obsessive","obsolete","obstacle","obstinate","obstruct","obtain","obtrusive","obtuse","obvious","occultist","occupancy","occupant","occupier","occupy","ocean","ocelot","octagon","octane","october","octopus","ogle","oil","oink","ointment","okay","old","olive","olympics","omega","omen","ominous","omission","omit","omnivore","onboard","oncoming","ongoing","onion","online","onlooker","only","onscreen","onset","onshore","onslaught","onstage","onto","onward","onyx","oops","ooze","oozy","opacity","opal","open","operable","operate","operating","operation","operative","operator","opium","opossum","opponent","oppose","opposing","opposite","oppressed","oppressor","opt","opulently","osmosis","other","otter","ouch","ought","ounce","outage","outback","outbid","outboard","outbound","outbreak","outburst","outcast","outclass","outcome","outdated","outdoors","outer","outfield","outfit","outflank","outgoing","outgrow","outhouse","outing","outlast","outlet","outline","outlook","outlying","outmatch","outmost","outnumber","outplayed","outpost","outpour","output","outrage","outrank","outreach","outright","outscore","outsell","outshine","outshoot","outsider","outskirts","outsmart","outsource","outspoken","outtakes","outthink","outward","outweigh","outwit","oval","ovary","oven","overact","overall","overarch","overbid","overbill","overbite","overblown","overboard","overbook","overbuilt","overcast","overcoat","overcome","overcook","overcrowd","overdraft","overdrawn","overdress","overdrive","overdue","overeager","overeater","overexert","overfed","overfeed","overfill","overflow","overfull","overgrown","overhand","overhang","overhaul","overhead","overhear","overheat","overhung","overjoyed","overkill","overlabor","overlaid","overlap","overlay","overload","overlook","overlord","overlying","overnight","overpass","overpay","overplant","overplay","overpower","overprice","overrate","overreach","overreact","override","overripe","overrule","overrun","overshoot","overshot","oversight","oversized","oversleep","oversold","overspend","overstate","overstay","overstep","overstock","overstuff","oversweet","overtake","overthrow","overtime","overtly","overtone","overture","overturn","overuse","overvalue","overview","overwrite","owl","oxford","oxidant","oxidation","oxidize","oxidizing","oxygen","oxymoron","oyster","ozone","paced","pacemaker","pacific","pacifier","pacifism","pacifist","pacify","padded","padding","paddle","paddling","padlock","pagan","pager","paging","pajamas","palace","palatable","palm","palpable","palpitate","paltry","pampered","pamperer","pampers","pamphlet","panama","pancake","pancreas","panda","pandemic","pang","panhandle","panic","panning","panorama","panoramic","panther","pantomime","pantry","pants","pantyhose","paparazzi","papaya","paper","paprika","papyrus","parabola","parachute","parade","paradox","paragraph","parakeet","paralegal","paralyses","paralysis","paralyze","paramedic","parameter","paramount","parasail","parasite","parasitic","parcel","parched","parchment","pardon","parish","parka","parking","parkway","parlor","parmesan","parole","parrot","parsley","parsnip","partake","parted","parting","partition","partly","partner","partridge","party","passable","passably","passage","passcode","passenger","passerby","passing","passion","passive","passivism","passover","passport","password","pasta","pasted","pastel","pastime","pastor","pastrami","pasture","pasty","patchwork","patchy","paternal","paternity","path","patience","patient","patio","patriarch","patriot","patrol","patronage","patronize","pauper","pavement","paver","pavestone","pavilion","paving","pawing","payable","payback","paycheck","payday","payee","payer","paying","payment","payphone","payroll","pebble","pebbly","pecan","pectin","peculiar","peddling","pediatric","pedicure","pedigree","pedometer","pegboard","pelican","pellet","pelt","pelvis","penalize","penalty","pencil","pendant","pending","penholder","penknife","pennant","penniless","penny","penpal","pension","pentagon","pentagram","pep","perceive","percent","perch","percolate","perennial","perfected","perfectly","perfume","periscope","perish","perjurer","perjury","perkiness","perky","perm","peroxide","perpetual","perplexed","persecute","persevere","persuaded","persuader","pesky","peso","pessimism","pessimist","pester","pesticide","petal","petite","petition","petri","petroleum","petted","petticoat","pettiness","petty","petunia","phantom","phobia","phoenix","phonebook","phoney","phonics","phoniness","phony","phosphate","photo","phrase","phrasing","placard","placate","placidly","plank","planner","plant","plasma","plaster","plastic","plated","platform","plating","platinum","platonic","platter","platypus","plausible","plausibly","playable","playback","player","playful","playgroup","playhouse","playing","playlist","playmaker","playmate","playoff","playpen","playroom","playset","plaything","playtime","plaza","pleading","pleat","pledge","plentiful","plenty","plethora","plexiglas","pliable","plod","plop","plot","plow","ploy","pluck","plug","plunder","plunging","plural","plus","plutonium","plywood","poach","pod","poem","poet","pogo","pointed","pointer","pointing","pointless","pointy","poise","poison","poker","poking","polar","police","policy","polio","polish","politely","polka","polo","polyester","polygon","polygraph","polymer","poncho","pond","pony","popcorn","pope","poplar","popper","poppy","popsicle","populace","popular","populate","porcupine","pork","porous","porridge","portable","portal","portfolio","porthole","portion","portly","portside","poser","posh","posing","possible","possibly","possum","postage","postal","postbox","postcard","posted","poster","posting","postnasal","posture","postwar","pouch","pounce","pouncing","pound","pouring","pout","powdered","powdering","powdery","power","powwow","pox","praising","prance","prancing","pranker","prankish","prankster","prayer","praying","preacher","preaching","preachy","preamble","precinct","precise","precision","precook","precut","predator","predefine","predict","preface","prefix","preflight","preformed","pregame","pregnancy","pregnant","preheated","prelaunch","prelaw","prelude","premiere","premises","premium","prenatal","preoccupy","preorder","prepaid","prepay","preplan","preppy","preschool","prescribe","preseason","preset","preshow","president","presoak","press","presume","presuming","preteen","pretended","pretender","pretense","pretext","pretty","pretzel","prevail","prevalent","prevent","preview","previous","prewar","prewashed","prideful","pried","primal","primarily","primary","primate","primer","primp","princess","print","prior","prism","prison","prissy","pristine","privacy","private","privatize","prize","proactive","probable","probably","probation","probe","probing","probiotic","problem","procedure","process","proclaim","procreate","procurer","prodigal","prodigy","produce","product","profane","profanity","professed","professor","profile","profound","profusely","progeny","prognosis","program","progress","projector","prologue","prolonged","promenade","prominent","promoter","promotion","prompter","promptly","prone","prong","pronounce","pronto","proofing","proofread","proofs","propeller","properly","property","proponent","proposal","propose","props","prorate","protector","protegee","proton","prototype","protozoan","protract","protrude","proud","provable","proved","proven","provided","provider","providing","province","proving","provoke","provoking","provolone","prowess","prowler","prowling","proximity","proxy","prozac","prude","prudishly","prune","pruning","pry","psychic","public","publisher","pucker","pueblo","pug","pull","pulmonary","pulp","pulsate","pulse","pulverize","puma","pumice","pummel","punch","punctual","punctuate","punctured","pungent","punisher","punk","pupil","puppet","puppy","purchase","pureblood","purebred","purely","pureness","purgatory","purge","purging","purifier","purify","purist","puritan","purity","purple","purplish","purposely","purr","purse","pursuable","pursuant","pursuit","purveyor","pushcart","pushchair","pusher","pushiness","pushing","pushover","pushpin","pushup","pushy","putdown","putt","puzzle","puzzling","pyramid","pyromania","python","quack","quadrant","quail","quaintly","quake","quaking","qualified","qualifier","qualify","quality","qualm","quantum","quarrel","quarry","quartered","quarterly","quarters","quartet","quench","query","quicken","quickly","quickness","quicksand","quickstep","quiet","quill","quilt","quintet","quintuple","quirk","quit","quiver","quizzical","quotable","quotation","quote","rabid","race","racing","racism","rack","racoon","radar","radial","radiance","radiantly","radiated","radiation","radiator","radio","radish","raffle","raft","rage","ragged","raging","ragweed","raider","railcar","railing","railroad","railway","raisin","rake","raking","rally","ramble","rambling","ramp","ramrod","ranch","rancidity","random","ranged","ranger","ranging","ranked","ranking","ransack","ranting","rants","rare","rarity","rascal","rash","rasping","ravage","raven","ravine","raving","ravioli","ravishing","reabsorb","reach","reacquire","reaction","reactive","reactor","reaffirm","ream","reanalyze","reappear","reapply","reappoint","reapprove","rearrange","rearview","reason","reassign","reassure","reattach","reawake","rebalance","rebate","rebel","rebirth","reboot","reborn","rebound","rebuff","rebuild","rebuilt","reburial","rebuttal","recall","recant","recapture","recast","recede","recent","recess","recharger","recipient","recital","recite","reckless","reclaim","recliner","reclining","recluse","reclusive","recognize","recoil","recollect","recolor","reconcile","reconfirm","reconvene","recopy","record","recount","recoup","recovery","recreate","rectal","rectangle","rectified","rectify","recycled","recycler","recycling","reemerge","reenact","reenter","reentry","reexamine","referable","referee","reference","refill","refinance","refined","refinery","refining","refinish","reflected","reflector","reflex","reflux","refocus","refold","reforest","reformat","reformed","reformer","reformist","refract","refrain","refreeze","refresh","refried","refueling","refund","refurbish","refurnish","refusal","refuse","refusing","refutable","refute","regain","regalia","regally","reggae","regime","region","register","registrar","registry","regress","regretful","regroup","regular","regulate","regulator","rehab","reheat","rehire","rehydrate","reimburse","reissue","reiterate","rejoice","rejoicing","rejoin","rekindle","relapse","relapsing","relatable","related","relation","relative","relax","relay","relearn","release","relenting","reliable","reliably","reliance","reliant","relic","relieve","relieving","relight","relish","relive","reload","relocate","relock","reluctant","rely","remake","remark","remarry","rematch","remedial","remedy","remember","reminder","remindful","remission","remix","remnant","remodeler","remold","remorse","remote","removable","removal","removed","remover","removing","rename","renderer","rendering","rendition","renegade","renewable","renewably","renewal","renewed","renounce","renovate","renovator","rentable","rental","rented","renter","reoccupy","reoccur","reopen","reorder","repackage","repacking","repaint","repair","repave","repaying","repayment","repeal","repeated","repeater","repent","rephrase","replace","replay","replica","reply","reporter","repose","repossess","repost","repressed","reprimand","reprint","reprise","reproach","reprocess","reproduce","reprogram","reps","reptile","reptilian","repugnant","repulsion","repulsive","repurpose","reputable","reputably","request","require","requisite","reroute","rerun","resale","resample","rescuer","reseal","research","reselect","reseller","resemble","resend","resent","reset","reshape","reshoot","reshuffle","residence","residency","resident","residual","residue","resigned","resilient","resistant","resisting","resize","resolute","resolved","resonant","resonate","resort","resource","respect","resubmit","result","resume","resupply","resurface","resurrect","retail","retainer","retaining","retake","retaliate","retention","rethink","retinal","retired","retiree","retiring","retold","retool","retorted","retouch","retrace","retract","retrain","retread","retreat","retrial","retrieval","retriever","retry","return","retying","retype","reunion","reunite","reusable","reuse","reveal","reveler","revenge","revenue","reverb","revered","reverence","reverend","reversal","reverse","reversing","reversion","revert","revisable","revise","revision","revisit","revivable","revival","reviver","reviving","revocable","revoke","revolt","revolver","revolving","reward","rewash","rewind","rewire","reword","rework","rewrap","rewrite","rhyme","ribbon","ribcage","rice","riches","richly","richness","rickety","ricotta","riddance","ridden","ride","riding","rifling","rift","rigging","rigid","rigor","rimless","rimmed","rind","rink","rinse","rinsing","riot","ripcord","ripeness","ripening","ripping","ripple","rippling","riptide","rise","rising","risk","risotto","ritalin","ritzy","rival","riverbank","riverbed","riverboat","riverside","riveter","riveting","roamer","roaming","roast","robbing","robe","robin","robotics","robust","rockband","rocker","rocket","rockfish","rockiness","rocking","rocklike","rockslide","rockstar","rocky","rogue","roman","romp","rope","roping","roster","rosy","rotten","rotting","rotunda","roulette","rounding","roundish","roundness","roundup","roundworm","routine","routing","rover","roving","royal","rubbed","rubber","rubbing","rubble","rubdown","ruby","ruckus","rudder","rug","ruined","rule","rumble","rumbling","rummage","rumor","runaround","rundown","runner","running","runny","runt","runway","rupture","rural","ruse","rush","rust","rut","sabbath","sabotage","sacrament","sacred","sacrifice","sadden","saddlebag","saddled","saddling","sadly","sadness","safari","safeguard","safehouse","safely","safeness","saffron","saga","sage","sagging","saggy","said","saint","sake","salad","salami","salaried","salary","saline","salon","saloon","salsa","salt","salutary","salute","salvage","salvaging","salvation","same","sample","sampling","sanction","sanctity","sanctuary","sandal","sandbag","sandbank","sandbar","sandblast","sandbox","sanded","sandfish","sanding","sandlot","sandpaper","sandpit","sandstone","sandstorm","sandworm","sandy","sanitary","sanitizer","sank","santa","sapling","sappiness","sappy","sarcasm","sarcastic","sardine","sash","sasquatch","sassy","satchel","satiable","satin","satirical","satisfied","satisfy","saturate","saturday","sauciness","saucy","sauna","savage","savanna","saved","savings","savior","savor","saxophone","say","scabbed","scabby","scalded","scalding","scale","scaling","scallion","scallop","scalping","scam","scandal","scanner","scanning","scant","scapegoat","scarce","scarcity","scarecrow","scared","scarf","scarily","scariness","scarring","scary","scavenger","scenic","schedule","schematic","scheme","scheming","schilling","schnapps","scholar","science","scientist","scion","scoff","scolding","scone","scoop","scooter","scope","scorch","scorebook","scorecard","scored","scoreless","scorer","scoring","scorn","scorpion","scotch","scoundrel","scoured","scouring","scouting","scouts","scowling","scrabble","scraggly","scrambled","scrambler","scrap","scratch","scrawny","screen","scribble","scribe","scribing","scrimmage","script","scroll","scrooge","scrounger","scrubbed","scrubber","scruffy","scrunch","scrutiny","scuba","scuff","sculptor","sculpture","scurvy","scuttle","secluded","secluding","seclusion","second","secrecy","secret","sectional","sector","secular","securely","security","sedan","sedate","sedation","sedative","sediment","seduce","seducing","segment","seismic","seizing","seldom","selected","selection","selective","selector","self","seltzer","semantic","semester","semicolon","semifinal","seminar","semisoft","semisweet","senate","senator","send","senior","senorita","sensation","sensitive","sensitize","sensually","sensuous","sepia","september","septic","septum","sequel","sequence","sequester","series","sermon","serotonin","serpent","serrated","serve","service","serving","sesame","sessions","setback","setting","settle","settling","setup","sevenfold","seventeen","seventh","seventy","severity","shabby","shack","shaded","shadily","shadiness","shading","shadow","shady","shaft","shakable","shakily","shakiness","shaking","shaky","shale","shallot","shallow","shame","shampoo","shamrock","shank","shanty","shape","shaping","share","sharpener","sharper","sharpie","sharply","sharpness","shawl","sheath","shed","sheep","sheet","shelf","shell","shelter","shelve","shelving","sherry","shield","shifter","shifting","shiftless","shifty","shimmer","shimmy","shindig","shine","shingle","shininess","shining","shiny","ship","shirt","shivering","shock","shone","shoplift","shopper","shopping","shoptalk","shore","shortage","shortcake","shortcut","shorten","shorter","shorthand","shortlist","shortly","shortness","shorts","shortwave","shorty","shout","shove","showbiz","showcase","showdown","shower","showgirl","showing","showman","shown","showoff","showpiece","showplace","showroom","showy","shrank","shrapnel","shredder","shredding","shrewdly","shriek","shrill","shrimp","shrine","shrink","shrivel","shrouded","shrubbery","shrubs","shrug","shrunk","shucking","shudder","shuffle","shuffling","shun","shush","shut","shy","siamese","siberian","sibling","siding","sierra","siesta","sift","sighing","silenced","silencer","silent","silica","silicon","silk","silliness","silly","silo","silt","silver","similarly","simile","simmering","simple","simplify","simply","sincere","sincerity","singer","singing","single","singular","sinister","sinless","sinner","sinuous","sip","siren","sister","sitcom","sitter","sitting","situated","situation","sixfold","sixteen","sixth","sixties","sixtieth","sixtyfold","sizable","sizably","size","sizing","sizzle","sizzling","skater","skating","skedaddle","skeletal","skeleton","skeptic","sketch","skewed","skewer","skid","skied","skier","skies","skiing","skilled","skillet","skillful","skimmed","skimmer","skimming","skimpily","skincare","skinhead","skinless","skinning","skinny","skintight","skipper","skipping","skirmish","skirt","skittle","skydiver","skylight","skyline","skype","skyrocket","skyward","slab","slacked","slacker","slacking","slackness","slacks","slain","slam","slander","slang","slapping","slapstick","slashed","slashing","slate","slather","slaw","sled","sleek","sleep","sleet","sleeve","slept","sliceable","sliced","slicer","slicing","slick","slider","slideshow","sliding","slighted","slighting","slightly","slimness","slimy","slinging","slingshot","slinky","slip","slit","sliver","slobbery","slogan","sloped","sloping","sloppily","sloppy","slot","slouching","slouchy","sludge","slug","slum","slurp","slush","sly","small","smartly","smartness","smasher","smashing","smashup","smell","smelting","smile","smilingly","smirk","smite","smith","smitten","smock","smog","smoked","smokeless","smokiness","smoking","smoky","smolder","smooth","smother","smudge","smudgy","smuggler","smuggling","smugly","smugness","snack","snagged","snaking","snap","snare","snarl","snazzy","sneak","sneer","sneeze","sneezing","snide","sniff","snippet","snipping","snitch","snooper","snooze","snore","snoring","snorkel","snort","snout","snowbird","snowboard","snowbound","snowcap","snowdrift","snowdrop","snowfall","snowfield","snowflake","snowiness","snowless","snowman","snowplow","snowshoe","snowstorm","snowsuit","snowy","snub","snuff","snuggle","snugly","snugness","speak","spearfish","spearhead","spearman","spearmint","species","specimen","specked","speckled","specks","spectacle","spectator","spectrum","speculate","speech","speed","spellbind","speller","spelling","spendable","spender","spending","spent","spew","sphere","spherical","sphinx","spider","spied","spiffy","spill","spilt","spinach","spinal","spindle","spinner","spinning","spinout","spinster","spiny","spiral","spirited","spiritism","spirits","spiritual","splashed","splashing","splashy","splatter","spleen","splendid","splendor","splice","splicing","splinter","splotchy","splurge","spoilage","spoiled","spoiler","spoiling","spoils","spoken","spokesman","sponge","spongy","sponsor","spoof","spookily","spooky","spool","spoon","spore","sporting","sports","sporty","spotless","spotlight","spotted","spotter","spotting","spotty","spousal","spouse","spout","sprain","sprang","sprawl","spray","spree","sprig","spring","sprinkled","sprinkler","sprint","sprite","sprout","spruce","sprung","spry","spud","spur","sputter","spyglass","squabble","squad","squall","squander","squash","squatted","squatter","squatting","squeak","squealer","squealing","squeamish","squeegee","squeeze","squeezing","squid","squiggle","squiggly","squint","squire","squirt","squishier","squishy","stability","stabilize","stable","stack","stadium","staff","stage","staging","stagnant","stagnate","stainable","stained","staining","stainless","stalemate","staleness","stalling","stallion","stamina","stammer","stamp","stand","stank","staple","stapling","starboard","starch","stardom","stardust","starfish","stargazer","staring","stark","starless","starlet","starlight","starlit","starring","starry","starship","starter","starting","startle","startling","startup","starved","starving","stash","state","static","statistic","statue","stature","status","statute","statutory","staunch","stays","steadfast","steadier","steadily","steadying","steam","steed","steep","steerable","steering","steersman","stegosaur","stellar","stem","stench","stencil","step","stereo","sterile","sterility","sterilize","sterling","sternness","sternum","stew","stick","stiffen","stiffly","stiffness","stifle","stifling","stillness","stilt","stimulant","stimulate","stimuli","stimulus","stinger","stingily","stinging","stingray","stingy","stinking","stinky","stipend","stipulate","stir","stitch","stock","stoic","stoke","stole","stomp","stonewall","stoneware","stonework","stoning","stony","stood","stooge","stool","stoop","stoplight","stoppable","stoppage","stopped","stopper","stopping","stopwatch","storable","storage","storeroom","storewide","storm","stout","stove","stowaway","stowing","straddle","straggler","strained","strainer","straining","strangely","stranger","strangle","strategic","strategy","stratus","straw","stray","streak","stream","street","strength","strenuous","strep","stress","stretch","strewn","stricken","strict","stride","strife","strike","striking","strive","striving","strobe","strode","stroller","strongbox","strongly","strongman","struck","structure","strudel","struggle","strum","strung","strut","stubbed","stubble","stubbly","stubborn","stucco","stuck","student","studied","studio","study","stuffed","stuffing","stuffy","stumble","stumbling","stump","stung","stunned","stunner","stunning","stunt","stupor","sturdily","sturdy","styling","stylishly","stylist","stylized","stylus","suave","subarctic","subatomic","subdivide","subdued","subduing","subfloor","subgroup","subheader","subject","sublease","sublet","sublevel","sublime","submarine","submerge","submersed","submitter","subpanel","subpar","subplot","subprime","subscribe","subscript","subsector","subside","subsiding","subsidize","subsidy","subsoil","subsonic","substance","subsystem","subtext","subtitle","subtly","subtotal","subtract","subtype","suburb","subway","subwoofer","subzero","succulent","such","suction","sudden","sudoku","suds","sufferer","suffering","suffice","suffix","suffocate","suffrage","sugar","suggest","suing","suitable","suitably","suitcase","suitor","sulfate","sulfide","sulfite","sulfur","sulk","sullen","sulphate","sulphuric","sultry","superbowl","superglue","superhero","superior","superjet","superman","supermom","supernova","supervise","supper","supplier","supply","support","supremacy","supreme","surcharge","surely","sureness","surface","surfacing","surfboard","surfer","surgery","surgical","surging","surname","surpass","surplus","surprise","surreal","surrender","surrogate","surround","survey","survival","survive","surviving","survivor","sushi","suspect","suspend","suspense","sustained","sustainer","swab","swaddling","swagger","swampland","swan","swapping","swarm","sway","swear","sweat","sweep","swell","swept","swerve","swifter","swiftly","swiftness","swimmable","swimmer","swimming","swimsuit","swimwear","swinger","swinging","swipe","swirl","switch","swivel","swizzle","swooned","swoop","swoosh","swore","sworn","swung","sycamore","sympathy","symphonic","symphony","symptom","synapse","syndrome","synergy","synopses","synopsis","synthesis","synthetic","syrup","system","t-shirt","tabasco","tabby","tableful","tables","tablet","tableware","tabloid","tackiness","tacking","tackle","tackling","tacky","taco","tactful","tactical","tactics","tactile","tactless","tadpole","taekwondo","tag","tainted","take","taking","talcum","talisman","tall","talon","tamale","tameness","tamer","tamper","tank","tanned","tannery","tanning","tantrum","tapeless","tapered","tapering","tapestry","tapioca","tapping","taps","tarantula","target","tarmac","tarnish","tarot","tartar","tartly","tartness","task","tassel","taste","tastiness","tasting","tasty","tattered","tattle","tattling","tattoo","taunt","tavern","thank","that","thaw","theater","theatrics","thee","theft","theme","theology","theorize","thermal","thermos","thesaurus","these","thesis","thespian","thicken","thicket","thickness","thieving","thievish","thigh","thimble","thing","think","thinly","thinner","thinness","thinning","thirstily","thirsting","thirsty","thirteen","thirty","thong","thorn","those","thousand","thrash","thread","threaten","threefold","thrift","thrill","thrive","thriving","throat","throbbing","throng","throttle","throwaway","throwback","thrower","throwing","thud","thumb","thumping","thursday","thus","thwarting","thyself","tiara","tibia","tidal","tidbit","tidiness","tidings","tidy","tiger","tighten","tightly","tightness","tightrope","tightwad","tigress","tile","tiling","till","tilt","timid","timing","timothy","tinderbox","tinfoil","tingle","tingling","tingly","tinker","tinkling","tinsel","tinsmith","tint","tinwork","tiny","tipoff","tipped","tipper","tipping","tiptoeing","tiptop","tiring","tissue","trace","tracing","track","traction","tractor","trade","trading","tradition","traffic","tragedy","trailing","trailside","train","traitor","trance","tranquil","transfer","transform","translate","transpire","transport","transpose","trapdoor","trapeze","trapezoid","trapped","trapper","trapping","traps","trash","travel","traverse","travesty","tray","treachery","treading","treadmill","treason","treat","treble","tree","trekker","tremble","trembling","tremor","trench","trend","trespass","triage","trial","triangle","tribesman","tribunal","tribune","tributary","tribute","triceps","trickery","trickily","tricking","trickle","trickster","tricky","tricolor","tricycle","trident","tried","trifle","trifocals","trillion","trilogy","trimester","trimmer","trimming","trimness","trinity","trio","tripod","tripping","triumph","trivial","trodden","trolling","trombone","trophy","tropical","tropics","trouble","troubling","trough","trousers","trout","trowel","truce","truck","truffle","trump","trunks","trustable","trustee","trustful","trusting","trustless","truth","try","tubby","tubeless","tubular","tucking","tuesday","tug","tuition","tulip","tumble","tumbling","tummy","turban","turbine","turbofan","turbojet","turbulent","turf","turkey","turmoil","turret","turtle","tusk","tutor","tutu","tux","tweak","tweed","tweet","tweezers","twelve","twentieth","twenty","twerp","twice","twiddle","twiddling","twig","twilight","twine","twins","twirl","twistable","twisted","twister","twisting","twisty","twitch","twitter","tycoon","tying","tyke","udder","ultimate","ultimatum","ultra","umbilical","umbrella","umpire","unabashed","unable","unadorned","unadvised","unafraid","unaired","unaligned","unaltered","unarmored","unashamed","unaudited","unawake","unaware","unbaked","unbalance","unbeaten","unbend","unbent","unbiased","unbitten","unblended","unblessed","unblock","unbolted","unbounded","unboxed","unbraided","unbridle","unbroken","unbuckled","unbundle","unburned","unbutton","uncanny","uncapped","uncaring","uncertain","unchain","unchanged","uncharted","uncheck","uncivil","unclad","unclaimed","unclamped","unclasp","uncle","unclip","uncloak","unclog","unclothed","uncoated","uncoiled","uncolored","uncombed","uncommon","uncooked","uncork","uncorrupt","uncounted","uncouple","uncouth","uncover","uncross","uncrown","uncrushed","uncured","uncurious","uncurled","uncut","undamaged","undated","undaunted","undead","undecided","undefined","underage","underarm","undercoat","undercook","undercut","underdog","underdone","underfed","underfeed","underfoot","undergo","undergrad","underhand","underline","underling","undermine","undermost","underpaid","underpass","underpay","underrate","undertake","undertone","undertook","undertow","underuse","underwear","underwent","underwire","undesired","undiluted","undivided","undocked","undoing","undone","undrafted","undress","undrilled","undusted","undying","unearned","unearth","unease","uneasily","uneasy","uneatable","uneaten","unedited","unelected","unending","unengaged","unenvied","unequal","unethical","uneven","unexpired","unexposed","unfailing","unfair","unfasten","unfazed","unfeeling","unfiled","unfilled","unfitted","unfitting","unfixable","unfixed","unflawed","unfocused","unfold","unfounded","unframed","unfreeze","unfrosted","unfrozen","unfunded","unglazed","ungloved","unglue","ungodly","ungraded","ungreased","unguarded","unguided","unhappily","unhappy","unharmed","unhealthy","unheard","unhearing","unheated","unhelpful","unhidden","unhinge","unhitched","unholy","unhook","unicorn","unicycle","unified","unifier","uniformed","uniformly","unify","unimpeded","uninjured","uninstall","uninsured","uninvited","union","uniquely","unisexual","unison","unissued","unit","universal","universe","unjustly","unkempt","unkind","unknotted","unknowing","unknown","unlaced","unlatch","unlawful","unleaded","unlearned","unleash","unless","unleveled","unlighted","unlikable","unlimited","unlined","unlinked","unlisted","unlit","unlivable","unloaded","unloader","unlocked","unlocking","unlovable","unloved","unlovely","unloving","unluckily","unlucky","unmade","unmanaged","unmanned","unmapped","unmarked","unmasked","unmasking","unmatched","unmindful","unmixable","unmixed","unmolded","unmoral","unmovable","unmoved","unmoving","unnamable","unnamed","unnatural","unneeded","unnerve","unnerving","unnoticed","unopened","unopposed","unpack","unpadded","unpaid","unpainted","unpaired","unpaved","unpeeled","unpicked","unpiloted","unpinned","unplanned","unplanted","unpleased","unpledged","unplowed","unplug","unpopular","unproven","unquote","unranked","unrated","unraveled","unreached","unread","unreal","unreeling","unrefined","unrelated","unrented","unrest","unretired","unrevised","unrigged","unripe","unrivaled","unroasted","unrobed","unroll","unruffled","unruly","unrushed","unsaddle","unsafe","unsaid","unsalted","unsaved","unsavory","unscathed","unscented","unscrew","unsealed","unseated","unsecured","unseeing","unseemly","unseen","unselect","unselfish","unsent","unsettled","unshackle","unshaken","unshaved","unshaven","unsheathe","unshipped","unsightly","unsigned","unskilled","unsliced","unsmooth","unsnap","unsocial","unsoiled","unsold","unsolved","unsorted","unspoiled","unspoken","unstable","unstaffed","unstamped","unsteady","unsterile","unstirred","unstitch","unstopped","unstuck","unstuffed","unstylish","unsubtle","unsubtly","unsuited","unsure","unsworn","untagged","untainted","untaken","untamed","untangled","untapped","untaxed","unthawed","unthread","untidy","untie","until","untimed","untimely","untitled","untoasted","untold","untouched","untracked","untrained","untreated","untried","untrimmed","untrue","untruth","unturned","untwist","untying","unusable","unused","unusual","unvalued","unvaried","unvarying","unveiled","unveiling","unvented","unviable","unvisited","unvocal","unwanted","unwarlike","unwary","unwashed","unwatched","unweave","unwed","unwelcome","unwell","unwieldy","unwilling","unwind","unwired","unwitting","unwomanly","unworldly","unworn","unworried","unworthy","unwound","unwoven","unwrapped","unwritten","unzip","upbeat","upchuck","upcoming","upcountry","update","upfront","upgrade","upheaval","upheld","uphill","uphold","uplifted","uplifting","upload","upon","upper","upright","uprising","upriver","uproar","uproot","upscale","upside","upstage","upstairs","upstart","upstate","upstream","upstroke","upswing","uptake","uptight","uptown","upturned","upward","upwind","uranium","urban","urchin","urethane","urgency","urgent","urging","urologist","urology","usable","usage","useable","used","uselessly","user","usher","usual","utensil","utility","utilize","utmost","utopia","utter","vacancy","vacant","vacate","vacation","vagabond","vagrancy","vagrantly","vaguely","vagueness","valiant","valid","valium","valley","valuables","value","vanilla","vanish","vanity","vanquish","vantage","vaporizer","variable","variably","varied","variety","various","varmint","varnish","varsity","varying","vascular","vaseline","vastly","vastness","veal","vegan","veggie","vehicular","velcro","velocity","velvet","vendetta","vending","vendor","veneering","vengeful","venomous","ventricle","venture","venue","venus","verbalize","verbally","verbose","verdict","verify","verse","version","versus","vertebrae","vertical","vertigo","very","vessel","vest","veteran","veto","vexingly","viability","viable","vibes","vice","vicinity","victory","video","viewable","viewer","viewing","viewless","viewpoint","vigorous","village","villain","vindicate","vineyard","vintage","violate","violation","violator","violet","violin","viper","viral","virtual","virtuous","virus","visa","viscosity","viscous","viselike","visible","visibly","vision","visiting","visitor","visor","vista","vitality","vitalize","vitally","vitamins","vivacious","vividly","vividness","vixen","vocalist","vocalize","vocally","vocation","voice","voicing","void","volatile","volley","voltage","volumes","voter","voting","voucher","vowed","vowel","voyage","wackiness","wad","wafer","waffle","waged","wager","wages","waggle","wagon","wake","waking","walk","walmart","walnut","walrus","waltz","wand","wannabe","wanted","wanting","wasabi","washable","washbasin","washboard","washbowl","washcloth","washday","washed","washer","washhouse","washing","washout","washroom","washstand","washtub","wasp","wasting","watch","water","waviness","waving","wavy","whacking","whacky","wham","wharf","wheat","whenever","whiff","whimsical","whinny","whiny","whisking","whoever","whole","whomever","whoopee","whooping","whoops","why","wick","widely","widen","widget","widow","width","wieldable","wielder","wife","wifi","wikipedia","wildcard","wildcat","wilder","wildfire","wildfowl","wildland","wildlife","wildly","wildness","willed","willfully","willing","willow","willpower","wilt","wimp","wince","wincing","wind","wing","winking","winner","winnings","winter","wipe","wired","wireless","wiring","wiry","wisdom","wise","wish","wisplike","wispy","wistful","wizard","wobble","wobbling","wobbly","wok","wolf","wolverine","womanhood","womankind","womanless","womanlike","womanly","womb","woof","wooing","wool","woozy","word","work","worried","worrier","worrisome","worry","worsening","worshiper","worst","wound","woven","wow","wrangle","wrath","wreath","wreckage","wrecker","wrecking","wrench","wriggle","wriggly","wrinkle","wrinkly","wrist","writing","written","wrongdoer","wronged","wrongful","wrongly","wrongness","wrought","xbox","xerox","yahoo","yam","yanking","yapping","yard","yarn","yeah","yearbook","yearling","yearly","yearning","yeast","yelling","yelp","yen","yesterday","yiddish","yield","yin","yippee","yo-yo","yodel","yoga","yogurt","yonder","yoyo","yummy","zap","zealous","zebra","zen","zeppelin","zero","zestfully","zesty","zigzagged","zipfile","zipping","zippy","zips","zit","zodiac","zombie","zone","zoning","zookeeper","zoologist","zoology","zoom"]},17989(e,t,i){"use strict";i.d(t,{A:()=>o});var n=i(39306),r=i(78781),s=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class o{buildDomainModel(e,t,i,r=[]){for(const s in i){if(!i.hasOwnProperty(s))continue;const o=t[i[s]||s];r.indexOf(s)>-1?e[s]=o||null:e[s]=o?new n.k(o):null}}buildDataModel(e,t,i,n=[]){for(const r in i){if(!i.hasOwnProperty(r))continue;const s=e[i[r]||r];n.indexOf(r)>-1?t[r]=null!=s?s:null:t[r]=null!=s?s.encryptedString:null}}decryptObj(e,t,i,o){return s(this,arguments,void 0,function*(e,t,i,s,o="No Domain Context"){const a=r.A.getContainerService().getEncryptService();for(const r of i)if(null!=e[r])try{t[r]=yield a.decryptString(e[r],s)}catch(l){const e="object"==typeof l&&null!==l&&"message"in l?l.message:String(l);console.error(`Failed to decrypt property '${String(r)}' of domain. Context: ${o}. Error: ${e}`),t[r]=n.h}else t[r]=null;return t})}}},43890(e,t,i){"use strict";i.d(t,{e:()=>s});var n=i(78781),r=i(54428);class s{constructor(e){if(null==e)throw new Error("Must provide key");if(32===e.byteLength)this.innerKey={type:r.Qd.AesCbc256_B64,encryptionKey:e},this.keyB64=this.toBase64();else if(64===e.byteLength)this.innerKey={type:r.Qd.AesCbc256_HmacSha256_B64,encryptionKey:e.slice(0,32),authenticationKey:e.slice(32)},this.keyB64=this.toBase64();else{if(!(e.byteLength>64))throw new Error(`Unsupported encType/key length ${e.byteLength}`);this.innerKey={type:r.Qd.CoseEncrypt0,encryptionKey:e},this.keyB64=this.toBase64()}}toJSON(){return{keyB64:this.keyB64}}inner(){return this.innerKey}toBase64(){return n.A.fromBufferToB64(this.toEncoded())}toEncoded(){if(this.innerKey.type===r.Qd.AesCbc256_B64)return this.innerKey.encryptionKey;if(this.innerKey.type===r.Qd.AesCbc256_HmacSha256_B64){const e=new Uint8Array(64);return e.set(this.innerKey.encryptionKey,0),e.set(this.innerKey.authenticationKey,32),e}if(this.innerKey.type===r.Qd.CoseEncrypt0)return this.innerKey.encryptionKey;throw new Error("Unsupported encryption type.")}static fromString(e){if(null==e)return null;const t=n.A.fromB64ToArray(e);return new s(t)}static fromJSON(e){return s.fromString(null==e?void 0:e.keyB64)}static fromSdk(e){return s.fromString(e)}toSdk(){return this.toBase64()}}},37798(e,t,i){"use strict";i.d(t,{fq:()=>n.fq});var n=i(77867)},62627(e,t,i){"use strict";i.d(t,{V:()=>n.V$});var n=i(81216)},34693(e,t,i){"use strict";var n;i.d(t,{M:()=>n}),function(e){e[e.Cipher=0]="Cipher",e[e.CipherView=1]="CipherView"}(n||(n={}))},62602(e,t,i){"use strict";i.d(t,{t:()=>r});var n=i(69783);class r{constructor(e){this.configService=e}getSettings$(){return this.configService.serverSettings$}get isUserRegistrationDisabled$(){return this.getSettings$().pipe((0,n.T)(e=>e.disableUserRegistration))}}},71464(e,t,i){"use strict";i.d(t,{T:()=>s,y:()=>o});var n=i(43890),r=i(31857);const s=new r.Ok(r.Gg,"everHadUserKey",{deserializer:e=>e,clearOn:["logout"]}),o=r.Ok.record(r.Gd,"userKey",{deserializer:e=>n.e.fromJSON(e),clearOn:["logout","lock"],cleanupDelayMs:0})},31857(e,t,i){"use strict";i.d(t,{$g:()=>n.$g,BA:()=>n.BA,Br:()=>n.Br,EF:()=>n.EF,FC:()=>n.FC,Gd:()=>n.Gd,Gg:()=>n.Gg,Gm:()=>n.Gm,HR:()=>n.HR,Iw:()=>n.Iw,Jb:()=>n.Jb,K8:()=>n.K8,L_:()=>n.L_,MC:()=>n.MC,Mw:()=>n.Mw,O2:()=>n.O2,OB:()=>n.OB,Ok:()=>n.Ok,P7:()=>n.P7,PM:()=>n.PM,Qb:()=>n.Qb,Rv:()=>n.Rv,Sc:()=>n.Sc,Tf:()=>n.Tf,Ud:()=>n.Ud,Vl:()=>n.Vl,W$:()=>n.W$,Wm:()=>n.Wm,XH:()=>n.XH,Xk:()=>n.Xk,Y2:()=>n.Y2,Z6:()=>n.Z6,Zs:()=>n.Zs,_Q:()=>n._Q,aL:()=>n.aL,bI:()=>n.bI,bh:()=>n.bh,bj:()=>n.bj,d1:()=>n.d1,dD:()=>n.dD,dn:()=>n.dn,dp:()=>n.dp,dr:()=>n.dr,eP:()=>n.eP,fK:()=>n.fK,fn:()=>n.fn,g4:()=>n.g4,gc:()=>n.gc,hs:()=>n.hs,i9:()=>n.i9,iK:()=>n.iK,ie:()=>n.ie,jB:()=>n.jB,jb:()=>n.jb,jx:()=>n.jx,k2:()=>n.k2,kj:()=>n.kj,km:()=>n.km,lR:()=>n.lR,ll:()=>n.ll,nr:()=>n.nr,oR:()=>n.oR,q9:()=>n.q9,qd:()=>n.qd,rB:()=>n.rB,uv:()=>n.uv,v2:()=>n.v2,wt:()=>n.wt,ww:()=>n.ww,xS:()=>n.xS,xu:()=>n.xu,y7:()=>n.y7,zT:()=>n.zT});var n=i(31066);i(93173)},54596(e,t,i){"use strict";i.d(t,{f:()=>v,H:()=>n.H});var n=i(11009),r=i(14848),s=i(25607),o=i(1002),a=i(20702),l=i(67097);class c extends a.r{constructor(e){super(e);const t=this.getResponseProperty("WrappedUserKey1");if(null==t||"string"!=typeof t)throw new Error("V2UpgradeTokenResponse does not contain a valid wrappedUserKey1");this.wrappedUserKey1=t;const i=this.getResponseProperty("WrappedUserKey2");if(null==i||"string"!=typeof i)throw new Error("V2UpgradeTokenResponse does not contain a valid wrappedUserKey2");this.wrappedUserKey2=i}toV2UpgradeToken(){return{wrapped_user_key_1:this.wrappedUserKey1,wrapped_user_key_2:this.wrappedUserKey2}}}class d extends a.r{constructor(e){super(e);const t=this.getResponseProperty("MasterPasswordUnlock");null!=t&&"object"==typeof t&&(this.masterPasswordUnlock=new l.v(t));const i=this.getResponseProperty("WebAuthnPrfOptions");null!=i&&Array.isArray(i)&&(this.webAuthnPrfOptions=i.map(e=>new o.C(e)));const n=this.getResponseProperty("V2UpgradeToken");null!=n&&"object"==typeof n&&(this.v2UpgradeToken=new c(n))}}var u=i(65791),h=i(16969),A=i(54306),p=i(42700),g=i(98850);class v extends a.r{constructor(e){super(e),this.folders=[],this.collections=[],this.ciphers=[],this.policies=[],this.sends=[];const t=this.getResponseProperty("Profile");null!=t&&(this.profile=new h.l(t));const i=this.getResponseProperty("Folders");null!=i&&(this.folders=i.map(e=>new g.s(e)));const n=this.getResponseProperty("Collections");null!=n&&(this.collections=n.map(e=>new r.yv(e)));const o=this.getResponseProperty("Ciphers");null!=o&&(this.ciphers=o.map(e=>new p.N(e)));const a=this.getResponseProperty("Domains");null!=a&&(this.domains=new u.X(a));const l=this.getResponseProperty("Policies");null!=l&&(this.policies=l.map(e=>new s.i(e)));const c=this.getResponseProperty("PoliciesNew");null!=c&&(this.policiesNew=c.map(e=>new s.i(e)));const v=this.getResponseProperty("Sends");null!=v&&(this.sends=v.map(e=>new A.o(e)));const m=this.getResponseProperty("UserDecryption");null!=m&&"object"==typeof m&&(this.userDecryption=new d(m))}}},11009(e,t,i){"use strict";i.d(t,{H:()=>n});class n{}},83234(e,t,i){"use strict";i.d(t,{T2:()=>c,oO:()=>a});var n=i(69783),r=i(54428),s=i(31857),o=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class a{}const l=new s.Zs(s.dD,"selection",{deserializer:e=>e});class c{constructor(e,t=r.NJ.System){this.globalStateProvider=e,this.defaultTheme=t,this.selectedThemeState=this.globalStateProvider.get(l),this.selectedTheme$=this.selectedThemeState.state$.pipe((0,n.T)(e=>null==e||Object.values(r.NJ).includes(e)?e:null),(0,n.T)(e=>null!=e?e:this.defaultTheme))}setSelectedTheme(e){return o(this,void 0,void 0,function*(){yield this.selectedThemeState.update(()=>e,{shouldUpdate:t=>t!==e})})}}},97445(e,t,i){"use strict";i.d(t,{p:()=>f});var n=i(69783),r=i(94348),s=i(39250),o=i(191),a=i(22409),l=i(62201),c=i(78880),d=i(82569),u=i(29236),h=i(20377),A=i(9764);class p{}var g=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class v extends p{constructor(e,t,i,n){super(),this.organizationId=e,this.encryptService=t,this.key=i,this.dataPacker=n,this.assertHasValue("organizationId",e),this.assertHasValue("key",i),this.assertHasValue("dataPacker",n),this.assertHasValue("encryptService",t)}encrypt(e){return g(this,void 0,void 0,function*(){this.assertHasValue("secret",e);let t=this.dataPacker.pack(e);const i=yield this.encryptService.encryptString(t,this.key);return t=null,i})}decrypt(e){return g(this,void 0,void 0,function*(){this.assertHasValue("secret",e);let t=yield this.encryptService.decryptString(e,this.key);const i=this.dataPacker.unpack(t);return t=null,i})}assertHasValue(e,t){if(null==t)throw new Error(`${e} cannot be null or undefined`)}}var m=i(22327);class f{constructor(e,t,i){this.encryptService=e,this.keyService=t,this.sdkService=i}userEncryptor$(e,t){const i=new A.n(e);return t.singleUserId$.pipe((0,h.eO)(e=>e,(e,t)=>({expectedUserId:e,actualUserId:t})),(0,n.T)(e=>({userId:e,encryptor:new m.f(e,this.sdkService,i)})))}organizationEncryptor$(e,t){const i=new A.n(e);return t.singleOrganizationId$.pipe((0,h.eO)(e=>e.userId,(e,t)=>({expectedUserId:e,actualUserId:t})),(0,h.eO)(e=>e.organizationId,(e,t)=>({expectedOrganizationId:e,actualOrganizationId:t})),(0,r.N)(e=>{const t=new s.m(1);return e.subscribe(t),t.pipe((0,o.n)(e=>this.keyService.orgKeys$(e.userId).pipe((0,a.j)(e=>!e),(0,l.v)(e=>!!e),(0,n.T)(t=>{const n=e.organizationId,r=t[n];return{organizationId:n,encryptor:new v(n,this.encryptService,r,i)}}),(0,c.O)())),(0,d.Z)(),(0,u.Q)((0,h.E)(t)))}))}}},43946(e,t,i){"use strict";i.d(t,{p:()=>n});class n{}},22327(e,t,i){"use strict";i.d(t,{f:()=>d});var n=i(68108),r=i(69783),s=i(39306);class o{}var a=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})},l=function(e,t,i){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,r;if(i){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],i&&(r=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");r&&(n=function(){try{r.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:i})}else i&&e.stack.push({async:!0});return t},c=function(e){return function(t){function i(i){t.error=t.hasError?new e(i,t.error,"An error was suppressed during disposal."):i,t.hasError=!0}var n,r=0;return function e(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(e);if(n.dispose){var s=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(s).then(e,function(t){return i(t),e()})}else r|=1}catch(o){i(o)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}}("function"==typeof SuppressedError?SuppressedError:function(e,t,i){var n=new Error(i);return n.name="SuppressedError",n.error=e,n.suppressed=t,n});class d extends o{constructor(e,t,i){super(),this.userId=e,this.sdkService=t,this.dataPacker=i,this.assertHasValue("userId",e),this.assertHasValue("sdkService",t),this.assertHasValue("dataPacker",i)}encrypt(e){return a(this,void 0,void 0,function*(){this.assertHasValue("secret",e);const t=this.dataPacker.pack(e),i=yield(0,n._)(this.sdkService.userClient$(this.userId).pipe((0,r.T)(e=>{const i={stack:[],error:void 0,hasError:!1};try{if(!e)throw new Error("SDK not available");return l(i,e.take(),!1).value.crypto().encrypt_with_local_user_data_key(t)}catch(n){i.error=n,i.hasError=!0}finally{c(i)}})));return new s.k(i)})}decrypt(e){return a(this,void 0,void 0,function*(){this.assertHasValue("secret",e);const t=yield(0,n._)(this.sdkService.userClient$(this.userId).pipe((0,r.T)(t=>{const i={stack:[],error:void 0,hasError:!1};try{if(!t)throw new Error("SDK not available");return l(i,t.take(),!1).value.crypto().decrypt_with_local_user_data_key(e.encryptedString)}catch(n){i.error=n,i.hasError=!0}finally{c(i)}})));return this.dataPacker.unpack(t)})}assertHasValue(e,t){if(null==t)throw new Error(`${e} cannot be null or undefined`)}}},23549(e,t,i){"use strict";i.d(t,{D0:()=>r,_z:()=>n,aX:()=>s});const n=Object.freeze({forwarder:"forwarder"}),r=Object.freeze({token:"token",baseUrl:"baseUrl",domain:"domain",prefix:"prefix"}),s=Object.freeze({default:"default",none:"none",allow:"allow",deny:"deny"})},43348(e,t,i){"use strict";i.d(t,{F:()=>n});class n{}},63344(e,t,i){"use strict";i.d(t,{r:()=>a});var n=i(6933),r=i(89222),s=i(31857),o=i(48312);class a{constructor(e,t){this.registry=e,this.providers=t,this.log=t.log({type:"ExtensionService"})}settings(e,t,i){const a=this.registry.extension(e.site,t);a||this.log.panic({site:e.site,vendor:t},"extension not defined");const l=function(e,t){const i=new o.r;return Object.assign(Object.assign({},e.storage),{target:"object",key:`${t.site.id}.${t.product.vendor.id}.${e.storage.key}`,state:s.OB,classifier:i,format:"classified"})}(e,a),c=i.account$.pipe((0,n.t)({bufferSize:1,refCount:!0}));return new r.p(l,this.providers,{account$:c})}site(e){return this.registry.build(e)}}},25304(e,t,i){"use strict";i.d(t,{FG:()=>a,YY:()=>o,iP:()=>r,xN:()=>s});var n=i(23549);const r=Object.freeze(Object.keys(n._z)),s=Object.freeze(Object.keys(n.D0)),o={[n._z.forwarder]:{id:n._z.forwarder,availableFields:[n.D0.baseUrl,n.D0.domain,n.D0.prefix,n.D0.token]}},a=Object.freeze(Object.values(n.aX))},48856(e,t,i){"use strict";i.d(t,{T:()=>o});var n=i(78991);class r{constructor(e,t){this.site=e,this.extensions=t,(0,n.ol)(this)}}var s=i(25304);class o{constructor(e,t){this.allowedSites=e,this.allowedFields=t,this.allPermission="default",this.siteRegistrations=new Map,this.sitePermissions=new Map,this.vendorRegistrations=new Map,this.vendorPermissions=new Map,this.extensionRegistrations=new Array,this.extensionsBySiteByVendor=new Map,Object.freeze(this.allowedFields),Object.freeze(this.allowedSites)}registerSite(e){if(!this.allowedSites.includes(e.id))return this;const t=e.availableFields.filter(e=>this.allowedFields.includes(e)),i=(0,n.ol)({id:e.id,availableFields:t});return this.siteRegistrations.has(e.id)||this.siteRegistrations.set(e.id,i),this}site(e){return this.siteRegistrations.get(e)}sites(){const e=[];for(const[t,i]of this.siteRegistrations.entries()){const n={site:i},r=this.sitePermissions.get(t);r&&(n.permission=r),e.push(n)}return e}registerVendor(e){if(!this.vendorRegistrations.has(e.id)){const t=(0,n.ol)(e);this.vendorRegistrations.set(e.id,t)}return this}vendor(e){return this.vendorRegistrations.get(e)}vendors(){const e=[];for(const[t,i]of this.vendorRegistrations.entries()){const n={vendor:i},r=this.vendorPermissions.get(t);r&&(n.permission=r),e.push(n)}return e}setPermission(e,t){if(!s.FG.includes(t))throw new Error(`invalid extension permission: ${t}`);if("all"in e&&e.all)this.allPermission=t;else if("vendor"in e)this.vendorPermissions.set(e.vendor,t);else{if(!("site"in e))throw new Error(`Unrecognized extension set received: ${JSON.stringify(e)}.`);this.allowedSites.includes(e.site)&&this.sitePermissions.set(e.site,t)}return this}permission(e){return"all"in e&&e.all?this.allPermission:"vendor"in e?this.vendorPermissions.get(e.vendor):"site"in e?this.sitePermissions.get(e.site):void 0}permissions(){const e=[];e.push({set:{all:!0},permission:this.allPermission});for(const[t,i]of this.sitePermissions.entries())e.push({set:{site:t},permission:i});for(const[t,i]of this.vendorPermissions.entries())e.push({set:{vendor:t},permission:i});return e}registerExtension(e){var t;const i=this.siteRegistrations.get(e.site.id),n=this.vendorRegistrations.get(e.product.vendor.id);if(!i||!n)return this;const r=null!==(t=this.extensionsBySiteByVendor.get(e.site.id))&&void 0!==t?t:new Map;if(r.has(e.product.vendor.id))return this;const s={vendor:n};e.product.name&&(s.name=e.product.name);const o=Object.freeze({site:i,product:Object.freeze(s),host:Object.freeze(Object.assign({},e.host)),requestedFields:Object.freeze([...e.requestedFields])}),a=this.extensionRegistrations.push(o)-1;return r.set(n.id,a),this.extensionsBySiteByVendor.set(i.id,r),this}extension(e,t){var i,n;const r=null!==(n=null===(i=this.extensionsBySiteByVendor.get(e))||void 0===i?void 0:i.get(t))&&void 0!==n?n:-1;return r<0?void 0:this.extensionRegistrations[r]}getPermissions(e,t){return[this.sitePermissions.get(e),this.vendorPermissions.get(t),this.allPermission].filter(e=>!!e)}extensions(){const e=[];for(const t of this.extensionRegistrations){const i=this.getPermissions(t.site.id,t.product.vendor.id);e.push({extension:t,permissions:i})}return e}build(e){var t,i;const n=this.siteRegistrations.get(e);if(!n)return;if("deny"===this.allPermission)return new r(n,new Map);const s=new Map,o=null!==(i=null===(t=this.extensionsBySiteByVendor.get(e))||void 0===t?void 0:t.entries())&&void 0!==i?i:[];for(const[r,l]of o){const t=a(this.getPermissions(e,r),this.extensionRegistrations[l]);t&&s.set(r,t)}return new r(n,s)}}function a(e,t){if(!e.includes("deny")){if(e.includes("allow"))return t;if(!e.includes("none")){if(e.includes("default"))return t;throw new Error("failed to recognize any permissions")}}}},19638(e,t,i){"use strict";i.d(t,{N:()=>n});const n=Object.freeze({addyio:"addyio",bitwarden:"bitwarden",duckduckgo:"duckduckgo",fastmail:"fastmail",forwardemail:"forwardemail",mozilla:"mozilla",simplelogin:"simplelogin"})},8936(e,t,i){"use strict";i.d(t,{B:()=>C,G:()=>b});var n=i(78991),r=i(23549),s=i(25304),o=i(19638);const a={id:o.N.addyio,name:"Addy.io"},l=[{site:s.YY.forwarder,product:{vendor:a},host:{authorization:"bearer",selfHost:"maybe",baseUrl:"https://app.addy.io"},requestedFields:[r.D0.token,r.D0.baseUrl,r.D0.domain]}],c=Object.freeze({id:o.N.bitwarden,name:"Bitwarden"}),d={id:o.N.duckduckgo,name:"DuckDuckGo"},u=[{site:s.YY.forwarder,product:{vendor:d},host:{authorization:"bearer",selfHost:"never",baseUrl:"https://quack.duckduckgo.com/api"},requestedFields:[r.D0.token]}],h={id:o.N.fastmail,name:"Fastmail"},A=[{site:s.YY.forwarder,product:{vendor:h},host:{authorization:"bearer",selfHost:"maybe",baseUrl:"https://api.fastmail.com"},requestedFields:[r.D0.token]}],p={id:o.N.forwardemail,name:"Forward Email"},g=[{site:s.YY.forwarder,product:{vendor:p},host:{authorization:"basic-username",selfHost:"never",baseUrl:"https://api.forwardemail.net"},requestedFields:[r.D0.domain,r.D0.token]}],v={id:o.N.mozilla,name:"Mozilla"},m=[{site:s.YY.forwarder,product:{vendor:v,name:"Firefox Relay"},host:{authorization:"token",selfHost:"never",baseUrl:"https://relay.firefox.com/api"},requestedFields:[r.D0.token]}],f={id:o.N.simplelogin,name:"SimpleLogin"},y=[{site:s.YY.forwarder,product:{vendor:f},host:{authentication:!0,selfHost:"maybe",baseUrl:"https://app.simplelogin.io"},requestedFields:[r.D0.baseUrl,r.D0.token,r.D0.domain]}],b=(0,n.ol)([a,c,d,h,p,v,f]),C=(0,n.ol)([l,u,A,g,m,y].flat())},39307(e,t,i){"use strict";i.d(t,{e:()=>r});var n=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class r{constructor(e,t){this.api=e,this.i18n=t}fetchJson(e,t){return n(this,void 0,void 0,function*(){const i=e.toRequest(t),n=yield this.api.nativeFetch(i);let r,s,o;const a=yield this.detectCommonErrors(n);if(a?[s,o]=a:e.hasJsonPayload(n)&&([r,o]=e.processJson(yield n.json())),r)return r;null!=s||(s=o?"forwarderError":"forwarderUnknownError");throw this.i18n.t(s,e.requestor.name,o)})}detectCommonErrors(e){return n(this,void 0,void 0,function*(){if(401===e.status){const t=yield this.tryGetErrorMessage(e);return[t?"forwaderInvalidTokenWithMessage":"forwaderInvalidToken",t]}if(403===e.status){const t=yield this.tryGetErrorMessage(e);return[t?"forwaderInvalidOperationWithMessage":"forwaderInvalidOperation",t]}if(e.status>=400){const t=yield this.tryGetErrorMessage(e);return[t?"forwarderError":"forwarderUnknownError",t]}})}tryGetErrorMessage(e){return n(this,void 0,void 0,function*(){var t,i,n;const r=null!==(t=yield e.text())&&void 0!==t?t:"";return(null!==(n=null!==(i=this.tryFindErrorAsJson(r))&&void 0!==i?i:this.tryFindErrorAsText(r))&&void 0!==n?n:e.statusText)||void 0})}tryFindErrorAsJson(e){var t,i,n,r,s;if(!(e.startsWith("{")||e.startsWith("'")||e.startsWith('"')))return;let o;try{o=JSON.parse(e)}catch(c){return!1}if(o&&"string"==typeof o)return o;const a=null!==(i=null===(t=o.error)||void 0===t?void 0:t.toString())&&void 0!==i?i:null,l=null!==(r=null===(n=o.message)||void 0===n?void 0:n.toString())&&void 0!==r?r:null;return a&&l?`${a}: ${l}`:null!==(s=null!=a?a:l)&&void 0!==s&&s}tryFindErrorAsText(e){if(e.length&&!e.includes("<"))return e}}},20136(e,t,i){"use strict";i.d(t,{S2:()=>l,oR:()=>c,mJ:()=>d});var n=i(54428);class r{constructor(e,t,i=()=>Date.now()){this.logger=e,this.now=i,this.context=t&&"object"==typeof t?t:{}}debug(e,t){this.log(e,n.xk.Debug,t)}info(e,t){this.log(e,n.xk.Info,t)}warn(e,t){this.log(e,n.xk.Warning,t)}error(e,t){this.log(e,n.xk.Error,t)}panic(e,t){this.log(e,n.xk.Error,t);throw new Error(null!=t?t:"string"==typeof e?e:"a fatal error occurred")}log(e,t,i){const n=Object.assign(Object.assign({},this.context),{message:i,content:null!=e?e:void 0,level:s(t),"@timestamp":this.now()});"string"!=typeof e||i||(n.message=e,delete n.content),this.logger.write(t,n)}}function s(e){switch(e){case n.xk.Debug:return"debug";case n.xk.Info:return"information";case n.xk.Warning:return"warning";case n.xk.Error:return"error";default:return`${e}`}}const o=(0,i(78991).ol)({debug(e,t){},info(e,t){},warn(e,t){},error(e,t){},panic(e,t){throw"string"!=typeof e||t?new Error(t):new Error(e)}});function a(e,t,i){e.warning({method:t,context:i,provider:"tools/log",message:"Semantic logging enabled. 🦟 Please report this bug if you see it 🦟"})}function l(e){return o}function c(e,t){return t.length&&a(e,"enableLogForTypes",{types:t}),function(i){const{type:n}=i;if("string"==typeof n&&t.includes(n)){const s=new r(e,i);return a(e,"enableLogForTypes",{targetType:n,available:t,loggerContext:i}),s}return o}}function d(e,t,i){if(e){const e=new r(t,i);return a(t,"ifEnabledSemanticLoggerProvider",i),e}return o}},47524(e,t,i){"use strict";i.d(t,{KR:()=>o,kg:()=>s,u9:()=>n});const n=Object.freeze({OneHour:1,OneDay:24,TwoDays:48,ThreeDays:72,SevenDays:168,FourteenDays:336,ThirtyDays:720}),r=new Map(Object.entries(n).map(([e,t])=>[t,e]));function s(e){return r.has(e)}function o(e){return s(e)?e:void 0}},54600(e,t,i){"use strict";i.d(t,{b:()=>n});const n=Object.freeze({Any:0,PasswordProtected:1,SpecificPeople:2})},63457(e,t,i){"use strict";i.d(t,{y:()=>o,Q:()=>n});class n{}var r=i(58186),s=i.n(r);class o{getPasswordStrength(e,t=null,i=null){if(null==e||0===e.length)return null;const n=["bitwarden","bit","warden",...null!=i?i:[],...this.emailToUserInputs(t)],r=Array.from(new Set(n));return s()(e,r)}emailToUserInputs(e){if(null==e||0===e.length)return[];const t=e.indexOf("@");return t<0?[]:e.substring(0,t).trim().toLowerCase().split(/[^A-Za-z0-9]/)}}},48312(e,t,i){"use strict";i.d(t,{r:()=>n});class n{constructor(e=void 0){this.keys=e}classify(e){var t;const i=JSON.parse(JSON.stringify(e)),n=null!==(t=this.keys)&&void 0!==t?t:Object.keys(i),r={};for(const s of n)r[s]=i[s];return{disclosed:null,secret:r}}declassify(e,t){var i;const n={},r=null!==(i=this.keys)&&void 0!==i?i:Object.keys(t);for(const s of r)n[s]=t[s];return n}}},20377(e,t,i){"use strict";i.d(t,{E:()=>E,Gc:()=>S,LA:()=>B,Zm:()=>R,bt:()=>Q,eO:()=>I,pP:()=>w,y_:()=>k});var n=i(39250),r=i(47130),s=i(64087),o=i(25208),a=i(32782),l=i(94348),c=i(16385),d=i(64536),u=i(68711),h=i(36219),A=i(30690),p=i(69783),g=i(98905),v=i(14971),m=i(34949),f=i(29236),y=i(39722);function b(e){return e}function C(e,t){return{expectedValue:e,actualValue:t}}function I(e=b,t=C){return(0,r.F)((0,m.Z)(null),(0,g.J)(),(0,p.T)(([i,n],r)=>{if(0===r)return n;const s=e(i),o=e(n);if(s===o)return n;throw t(s,o)}))}function w(e,t){return(0,p.T)(i=>(null!=i?i:[]).reduce(e,structuredClone(t)))}function B(){return(0,c.F)((e,t)=>{let i=!0;for(const n in t)i&&(i=e[n]===t[n]);return i})}function E(e){if(Array.isArray(e)){const t=e.filter(e=>!!e).map(e=>e.pipe((0,A.w)(),(0,d.q)(!0)));return(0,o.O)(t)}return e.pipe((0,A.w)(),(0,d.q)(!0))}function S(e){const t=Array.isArray(e)?e:[e];return(0,r.F)((0,l.N)(e=>{const i=new n.m(1);return e.subscribe(i),(0,s.x)((0,a.y)(t).pipe((0,h.$)(),(0,A.w)()),i).pipe((0,f.Q)(E(i)))}))}function Q(...e){return(0,l.N)(t=>{const i=new n.m(1);t.subscribe(i);const r=e.map(e=>{const t=new n.m(1);return e.subscribe(t),t});return(0,s.x)((0,a.y)(r).pipe((0,h.$)(),(0,A.w)()),i).pipe((0,y.E)(...r),(0,f.Q)(E(i)))})}function k(e){return(0,r.F)((null==e?void 0:e.distinct)?(0,c.F)(e.distinct):e=>e,(0,p.T)((t,i)=>{var n,r;if(i>0)throw new Error(`${null!==(r=null===(n=null==e?void 0:e.name)||void 0===n?void 0:n.call(e))&&void 0!==r?r:"unknown"} observable should only emit one value.`);return t}))}function R(e,t){return(0,r.F)((0,v.S)(([i],n)=>{var r,s,o,a;const l=null!==(s=null===(r=null==t?void 0:t.key)||void 0===r?void 0:r.call(t,n))&&void 0!==s?s:n;let c=null==i?void 0:i.get(l);if(c)return[i,c];c=e(n),null==i||i.set(l,c);const d=i.size-(null!==(o=null==t?void 0:t.size)&&void 0!==o?o:1);return d>0&&Array.from(null!==(a=null==i?void 0:i.keys())&&void 0!==a?a:[]).slice(0,d).forEach(e=>null==i?void 0:i.delete(e)),[i,c]},[new Map,null]),(0,p.T)(([,e])=>e),(0,u.p)(e=>!!e))}},41347(e,t,i){"use strict";i.d(t,{h:()=>r});var n=i(20702);class r extends n.r{constructor(e=null){super(e),null!=e&&(this.id=this.getResponseProperty("Id"),this.fileName=this.getResponseProperty("FileName"),this.size=this.getResponseProperty("Size"),this.sizeName=this.getResponseProperty("SizeName"))}}},62046(e,t,i){"use strict";i.d(t,{Y:()=>r});var n=i(20702);class r extends n.r{constructor(e=null){super(e),null!=e&&(this.text=this.getResponseProperty("Text"),this.hidden=this.getResponseProperty("Hidden")||!1)}}},54306(e,t,i){"use strict";i.d(t,{o:()=>o});var n=i(20702),r=i(41347),s=i(62046);class o extends n.r{constructor(e){super(e),this.id=this.getResponseProperty("Id"),this.accessId=this.getResponseProperty("AccessId"),this.type=this.getResponseProperty("Type"),this.authType=this.getResponseProperty("AuthType"),this.name=this.getResponseProperty("Name"),this.notes=this.getResponseProperty("Notes"),this.key=this.getResponseProperty("Key"),this.maxAccessCount=this.getResponseProperty("MaxAccessCount"),this.accessCount=this.getResponseProperty("AccessCount"),this.revisionDate=this.getResponseProperty("RevisionDate"),this.expirationDate=this.getResponseProperty("ExpirationDate"),this.deletionDate=this.getResponseProperty("DeletionDate"),this.password=this.getResponseProperty("Password"),this.emails=this.getResponseProperty("Emails"),this.disable=this.getResponseProperty("Disabled")||!1,this.hideEmail=this.getResponseProperty("HideEmail")||!1,this.authType=this.getResponseProperty("AuthType");const t=this.getResponseProperty("Text");null!=t&&(this.text=new s.Y(t));const i=this.getResponseProperty("File");null!=i&&(this.file=new r.h(i))}}},15853(e,t,i){"use strict";i.d(t,{N:()=>n});const n=Object.freeze({Text:0,File:1})},4132(e,t,i){"use strict";i.d(t,{A:()=>r});var n=i(31857);class r{constructor(e,t,i){this.stateDefinition=e,this.key=t,this.options=i}toKeyDefinition(){return new n.Ok(this.stateDefinition,this.key,this.options)}shouldOverwrite(e){var t;const i=null===(t=this.options)||void 0===t?void 0:t.shouldOverwrite;return i?i(e):!!e}map(e,t){var i;const n=null===(i=this.options)||void 0===i?void 0:i.map;return n?n(e,t):Promise.resolve(e)}isValid(e,t){var i;if(null===e)return Promise.resolve(!1);const n=null===(i=this.options)||void 0===i?void 0:i.isValid;return n?n(e,t):Promise.resolve(!!e)}}},21590(e,t,i){"use strict";i.d(t,{d:()=>u});var n=i(72135),r=i(64087),s=i(61065),o=i(83604),a=i(62423),l=i(68711),c=i(69783),d=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class u{constructor(e,t,i,u=null){this.key=t,this.output=i,this.bufferedState=e.getUser(i.userId,t.toKeyDefinition());const h=(0,r.x)((0,o.of)(null),this.bufferedState.state$).pipe((0,c.T)(e=>null!==(null!=e?e:null))),A=(null!=u?u:(0,o.of)(!0)).pipe((0,c.T)(e=>[t.shouldOverwrite(e),e])),p=(0,n.z)([h,A]).pipe((0,a.H)(e=>d(this,[e],void 0,function*([e,[t,i]]){return e&&t&&(yield this.overwriteOutput(i)),[!1,null]}))),g=this.output.state$.pipe((0,c.T)(e=>[!0,e]));this.state$=(0,s.h)(p,g).pipe((0,l.p)(([e])=>e),(0,c.T)(([,e])=>e)),this.combinedState$=this.state$.pipe((0,c.T)(e=>[this.output.userId,e])),this.bufferedState$=this.bufferedState.state$}overwriteOutput(e){return d(this,void 0,void 0,function*(){let t;yield this.bufferedState.update(e=>(t=null!=e?e:null,null));if(yield this.key.isValid(t,e)){const i=yield this.key.map(t,e);yield this.output.update(()=>i)}})}get userId(){return this.output.userId}buffer(e){return d(this,void 0,void 0,function*(){const t=null!=e?e:null;null!==t&&(yield this.bufferedState.update(()=>t))})}update(e,t=null){return this.output.update(e,t)}}},59303(e,t,i){"use strict";i.d(t,{e:()=>s,k:()=>o});var n=i(67789);const r=new Proxy(Object.freeze({}),{get:()=>({})});class s{constructor(){this.constraints=r}calibrate(){return this}adjust(e){return e}fix(e){return e}}function o(){const e=new s;return new n.t(e)}},9764(e,t,i){"use strict";i.d(t,{n:()=>o});var n=i(78781);class r{}const s=Object.freeze({padding:"0",divider:"|",hasInvalidPadding:/[^0]/});class o extends r{constructor(e){super(),this.frameSize=e}pack(e){const t=JSON.stringify(e),i=n.A.fromUtf8ToB64(t),r=JSON.stringify(this.frameSize),o=2*s.divider.length,a=i.length+r.length+o,l=this.frameSize-a%this.frameSize;return`${r}|${i}|${s.padding.repeat(l)}`}unpack(e){const t=e.indexOf(s.divider);if(t<1)throw new Error("missing frame size");const i=parseInt(e.slice(0,t),10),r=t+1;if(e.length%i>0)throw new Error("invalid length");const o=e.lastIndexOf(s.divider);if(o==t)throw new Error("missing json object");const a=o+1;if(e.slice(a).match(s.hasInvalidPadding))throw new Error("invalid padding");const l=e.slice(r,o),c=n.A.fromB64ToUtf8(l);return JSON.parse(c)}}},89097(e,t,i){"use strict";i.d(t,{l:()=>r});var n=i(31857);class r{constructor(e,t,i,n,r,s){this.stateDefinition=e,this.key=t,this.classifier=i,this.options=n,this.deconstruct=r,this.reconstruct=s}toEncryptedStateKey(){return new n.Ok(this.stateDefinition,this.key,{cleanupDelayMs:this.options.cleanupDelayMs,deserializer:e=>e,clearOn:this.options.clearOn})}static value(e,t,i,n){return new r(e,t,i,n,e=>[[null,e]],([[,e]])=>e)}static array(e,t,i,n){return new r(e,t,i,n,e=>e.map((e,t)=>[t,e]),e=>e.map(([,e])=>e))}static record(e,t,i,n){return new r(e,t,i,n,e=>Object.entries(e),e=>Object.fromEntries(e))}}},16845(e,t,i){"use strict";i.d(t,{m:()=>h});var n=i(39250),r=i(72135),s=i(83604),o=i(73140),a=i(62423),l=i(69783),c=i(91254),d=i(39306),u=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class h{constructor(e,t,i,s){this.key=e,this.$encryptor=t,this.encryptedState=s.getUser(i,e.toEncryptedStateKey()),this.combinedState$=(0,r.z)([this.encryptedState.combinedState$,this.$encryptor]).pipe((0,a.H)(e=>u(this,[e],void 0,function*([[e,t],i]){return[e,yield this.declassifyAll(i,t)]})),(0,c.u)({connector:()=>new n.m(1),resetOnRefCountZero:()=>{var t;return(0,o.O)(null!==(t=e.options.cleanupDelayMs)&&void 0!==t?t:6e4)}})),this.state$=this.combinedState$.pipe((0,l.T)(([,e])=>e))}get userId(){return this.encryptedState.userId}static from(e,t,i,n){return new h(t,n,e,i)}declassifyItem(e,t){return u(this,arguments,void 0,function*(e,{id:t,secret:i,disclosed:n}){const r=d.k.fromJSON(i),s=yield e.decrypt(r),o=this.key.classifier.declassify(n,s);return[t,this.key.options.deserializer(o)]})}declassifyAll(e,t){return u(this,void 0,void 0,function*(){if(null==t)return null;const i=t.map(t=>u(this,void 0,void 0,function*(){return this.declassifyItem(e,t)})),n=yield Promise.all(i);return this.key.reconstruct(n)})}classifyItem(e,t){return u(this,arguments,void 0,function*(e,[t,i]){const n=this.key.classifier.classify(i),r=yield e.encrypt(n.secret);return{id:t,secret:JSON.parse(JSON.stringify(r)),disclosed:n.disclosed}})}classifyAll(e,t){return u(this,void 0,void 0,function*(){if(null==t)return null;const i=this.key.deconstruct(t).map(t=>u(this,void 0,void 0,function*(){return this.classifyItem(e,t)}));return yield Promise.all(i)})}update(e){return u(this,arguments,void 0,function*(e,t=null){var i,n,o;const a=(0,r.z)([null!==(i=null==t?void 0:t.combineLatestWith)&&void 0!==i?i:(0,s.of)(null),this.$encryptor]);let l,c,d;yield this.encryptedState.update(e=>e,{shouldUpdate:(e,t)=>(l=e,[c,d]=t,!1),combineLatestWith:a});const u=yield this.declassifyAll(d,l);if(!(null===(o=null===(n=null==t?void 0:t.shouldUpdate)||void 0===n?void 0:n.call(t,u,c))||void 0===o||o))return u;const h=e(u,c),A=yield this.classifyAll(d,h);return yield this.encryptedState.update(()=>A),h})}}},89222(e,t,i){"use strict";i.d(t,{p:()=>D});var n=i(28046),r=i(39250),s=i(67789),o=i(16385),a=i(6933),l=i(4958),c=i(71232),d=i(35284),u=i(69783),h=i(191),A=i(54291),p=i(29236),g=i(14965),v=i(64087),m=i(39722),f=i(47130),y=i(68711),b=i(36219),C=i(14971),I=i(78950),w=i(62423),B=i(39306),E=i(20377);function S(e){return!!e&&"id"in e&&"secret"in e&&"disclosed"in e&&"string"==typeof e.secret&&"object"==typeof e.disclosed}var Q=i(59303),k=i(31857);function R(e){return e&&"calibrate"in e}var F=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const T="$^$ALWAYS_UPDATE_KLUDGE_PROPERTY$^$";class D extends n.c{constructor(e,t,i){var n,f,y;super(),this.key=e,this.providers=t,this.context=i,this.input=new r.m(1),this.output=new r.m(1),this.counter=0,!function(e){return"object"===e.target&&"format"in e&&"classifier"in e}(this.key)?(this.objectKey=null,this.stateKey=this.key):(this.objectKey=this.key,this.stateKey=function(e){if("plain"===e.format)return new k.Ok(e.state,e.key,e.options);if("classified"===e.format)return new k.Ok(e.state,e.key,{cleanupDelayMs:e.options.cleanupDelayMs,deserializer:e=>e,clearOn:e.options.clearOn});if("secret-state"===e.format)return new k.Ok(e.state,e.key,{cleanupDelayMs:e.options.cleanupDelayMs,deserializer:e=>e,clearOn:e.options.clearOn});throw new Error(`unknown format: ${e.format}`)}(this.key)),this.log=this.providers.log({contextId:this.contextId,type:"UserStateSubject",storage:{state:this.stateKey.stateDefinition.name,key:this.stateKey.key}});const b=(null!==(n=this.context.when$)&&void 0!==n?n:new s.t(!0)).pipe((0,o.F)()),C=i.account$.pipe((0,E.y_)({name:()=>`${this.contextId} { account$ }`,distinct:(e,t)=>e.id===t.id}),(0,a.t)({refCount:!0,bufferSize:1})),I=this.encryptor(C),w=(null!==(f=this.context.constraints$)&&void 0!==f?f:(0,Q.k)()).pipe((0,l.W)(e=>(this.log.error(e,"constraints$ dependency failed; using last-known constraints"),c.w)),(0,a.t)({refCount:!0,bufferSize:1})),B=(null!==(y=this.context.dependencies$)&&void 0!==y?y:new s.t(null)).pipe((0,a.t)({refCount:!0,bufferSize:1})),S=C.pipe((0,d.M)(e=>this.log.debug({accountId:e.id},"loading user state")),(0,u.T)(e=>this.providers.state.getUser(e.id,this.stateKey)),(0,a.t)({refCount:!0,bufferSize:1}));this.outputSubscription=S.pipe((0,h.n)(e=>e.state$),(0,u.T)(e=>(e&&"object"==typeof e&&T in e&&delete e[T],e)),this.declassify(I),this.adjust((0,A.v)(w)),(0,p.Q)((0,E.E)(C))).subscribe(this.output);const R=new r.m(1);this.output.pipe((0,g.H)(),(0,u.T)(e=>e.state)).subscribe(R);const F=(0,v.x)(this.input.pipe(this.when(b),this.adjust((0,E.bt)(w)),this.prepareUpdate(this,B)),R.pipe(this.fix(w),this.prepareUpdate(R,B)));this.inputSubscription=F.pipe(this.classify(I),(0,m.E)(S),(0,p.Q)((0,E.E)([b,this.input,I]))).subscribe({next:([e,t])=>this.onNext(e,t),error:e=>this.onError(e),complete:()=>this.onComplete()})}get contextId(){return`UserStateSubject(${this.stateKey.stateDefinition.name}, ${this.stateKey.key})`}encryptor(e){var t,i;const n=e.pipe((0,u.T)(e=>e.id)),r=null!==(i=null===(t=this.objectKey)||void 0===t?void 0:t.frame)&&void 0!==i?i:32;return this.providers.encryptor.userEncryptor$(r,{singleUserId$:n}).pipe((0,d.M)(()=>this.log.debug("encryptor constructed")),(0,u.T)(({encryptor:e})=>e),(0,a.t)({refCount:!0,bufferSize:1}))}when(e){return(0,f.F)((0,A.v)(e.pipe((0,o.F)())),(0,d.M)(([e,t])=>this.log.debug({when:t},"when status")),(0,y.p)(([e,t])=>!!t),(0,u.T)(([e])=>e))}prepareUpdate(e,t){return i=>(0,v.x)(e.pipe((0,b.$)(),(0,u.T)(e=>[e,null])),i.pipe((0,u.T)(e=>e.state),(0,m.E)(t))).pipe((0,C.S)(([e],[t,i])=>{var n,r,s,o,a,l;if(null===(s=null===(r=(n=this.context).shouldUpdate)||void 0===r?void 0:r.call(n,e,t,i))||void 0===s||s){return[null!==(l=null===(a=(o=this.context).nextValue)||void 0===a?void 0:a.call(o,e,t,i))&&void 0!==l?l:t,i]}return this.log.debug("shouldUpdate prevented write"),[e,null]}),(0,I.i)(1),(0,u.T)(([e])=>e),(0,o.F)())}adjust(e){return(0,f.F)(e,(0,u.T)(([e,t])=>{var i;if(!e&&!(null===(i=this.objectKey)||void 0===i?void 0:i.initial))return this.log.debug("no value; bypassing adjustment"),{constraints:{},state:null};this.log.debug("adjusting");const n=null!=e?e:structuredClone(this.objectKey.initial),r=R(t)?t.calibrate(n):t,s=r.adjust(n);return this.log.debug("adjusted"),{constraints:r.constraints,state:s}}))}fix(e){return(0,f.F)((0,A.v)(e),(0,u.T)(([e,t])=>{this.log.debug("fixing");const i=R(t)?t.calibrate(e):t,n=i.fix(e);return this.log.debug("fixed"),{constraints:i.constraints,state:n}}))}declassify(e){return this.objectKey&&"plain"!==this.objectKey.format?(0,f.F)(this.mapToClassifiedFormat(),(0,A.v)(e),(0,w.H)(e=>F(this,[e],void 0,function*([e,t]){if(null==e)return this.log.debug("no value; bypassing declassification"),null;this.log.debug("declassifying");const{secret:i,disclosed:n}=e,r=B.k.fromJSON(i),s=yield t.decrypt(r),o=this.objectKey.classifier.declassify(n,s),a=this.objectKey.options.deserializer(o);return this.log.debug("declassified"),a}))):(this.log.debug("key uses plain format; bypassing declassification"),e=>e)}mapToClassifiedFormat(){return this.objectKey&&"classified"===this.objectKey.format?(0,u.T)(e=>S(e)?e:(this.log.warn("classified data must be in classified format; dropping"),null)):this.objectKey&&"secret-state"===this.objectKey.format?(0,u.T)(e=>{if(!Array.isArray(e))return this.log.warn("secret-state requires array formatting; dropping"),null;const[t]=e;return S(t)?t:(this.log.warn("unwrapped secret-state must be in classified format; dropping"),null)}):void this.log.panic({format:this.objectKey.format},"unsupported serialization format")}classify(e){return this.objectKey&&"plain"!==this.objectKey.format?(0,f.F)((0,E.bt)(e),(0,w.H)(e=>F(this,[e],void 0,function*([e,t]){if(null==e)return this.log.debug("no value; bypassing classification"),null;this.log.debug("classifying");const i=JSON.parse(JSON.stringify(e)),n=this.objectKey.classifier.classify(i),r=yield t.encrypt(n.secret),s={id:null,secret:JSON.parse(JSON.stringify(r)),disclosed:n.disclosed};return this.log.debug("classified"),s})),this.mapToStorageFormat()):(this.log.debug("key uses plain format; bypassing classification"),(0,f.F)((0,E.Gc)(e),(0,u.T)(e=>e)))}mapToStorageFormat(){return this.objectKey&&"classified"===this.objectKey.format?(0,u.T)(e=>e):this.objectKey&&"secret-state"===this.objectKey.format?(0,u.T)(e=>[e]):void this.log.panic({format:this.objectKey.format},"unsupported serialization format")}next(e){var t;null===(t=this.input)||void 0===t||t.next(e)}error(e){var t;null===(t=this.input)||void 0===t||t.error(e)}complete(){var e;null===(e=this.input)||void 0===e||e.complete()}subscribe(e){return this.output.pipe((0,u.T)(e=>e.state),(0,o.F)()).subscribe(e)}get withConstraints$(){return this.output.asObservable()}onNext(e,t){t.update(()=>{if(this.log.debug("updating"),"object"==typeof e){const t=this.counter++;t>Number.MAX_SAFE_INTEGER&&(this.counter=0);Object.assign({},e)[T]=t}return this.log.debug("updated"),e}).catch(e=>{this.log.error(e,"updating failed"),this.onError(e)})}onError(e){this.isDisposed||(this.log.debug(e,"forwarding error to subscribers"),this.output.error(e)),this.dispose()}onComplete(){this.isDisposed||this.output.complete(),this.dispose()}get isDisposed(){return null===this.input}dispose(){var e,t;this.isDisposed||(this.log.debug("disposing"),null===(e=this.inputSubscription)||void 0===e||e.unsubscribe(),null===(t=this.outputSubscription)||void 0===t||t.unsubscribe(),this.inputSubscription=null,this.outputSubscription=null,this.input=null,this.log.debug("disposed"))}}},78991(e,t,i){"use strict";function n(e){const t=Reflect.ownKeys(e);for(const i of t){const t=e[i];t&&"object"==typeof t&&n(t)}return Object.freeze(e)}function r(e){return"string"==typeof e}i.d(t,{_g:()=>r,ol:()=>n})},5076(e,t,i){"use strict";i.d(t,{e:()=>s,v:()=>r});var n=i(53323);const r="00000000-0000-0000-0000-000000000000";function s(e){return"string"==typeof e&&(0,n.W_)(e)}},88947(e,t,i){"use strict";i.d(t,{e:()=>n});class n{}},92411(e,t,i){"use strict";i.d(t,{J:()=>n});class n{}},97212(e,t,i){"use strict";i.d(t,{A:()=>n,i:()=>r});class n{}function r(e){var t;return"Found"===e.exposed_result.type&&e.exposed_result.value>0||(null!==(t=e.reuse_count)&&void 0!==t?t:1)>1||e.password_strength<3}},46033(e,t,i){"use strict";i.d(t,{F:()=>n});class n{}},5556(e,t,i){"use strict";i.d(t,{p:()=>n});class n{}},41103(e,t,i){"use strict";i.d(t,{w:()=>n});class n{}},74526(e,t,i){"use strict";i.d(t,{Z:()=>r,k:()=>n});class n{}class r extends n{}},43090(e,t,i){"use strict";i.d(t,{l:()=>n});class n{}},54351(e,t,i){"use strict";i.d(t,{S:()=>n});class n{}},39488(e,t,i){"use strict";i.d(t,{H:()=>n.H});var n=i(54596)},63098(e,t,i){"use strict";i.d(t,{R:()=>n});class n{}},4532(e,t,i){"use strict";i.d(t,{d:()=>n});class n{}},75421(e,t,i){"use strict";i.d(t,{Q:()=>n});class n{}},21854(e,t,i){"use strict";i.d(t,{Q:()=>r,e:()=>n});const n=Object.freeze({Checking:"checking",Savings:"savings",CertificateOfDeposit:"certificateOfDeposit",LineOfCredit:"lineOfCredit",InvestmentBrokerage:"investmentBrokerage",MoneyMarket:"moneyMarket",Other:"other"}),r={checking:"bankAccountTypeChecking",savings:"bankAccountTypeSavings",certificateOfDeposit:"bankAccountTypeCertificateOfDeposit",lineOfCredit:"bankAccountTypeLineOfCredit",investmentBrokerage:"bankAccountTypeInvestmentBrokerage",moneyMarket:"bankAccountTypeMoneyMarket",other:"bankAccountTypeOther"}},36501(e,t,i){"use strict";i.d(t,{b:()=>n,x:()=>r});const n={None:0,Password:1};function r(e){switch(e){case n.None:case n.Password:return e;default:return n.None}}},7919(e,t,i){"use strict";i.d(t,{KN:()=>o,g7:()=>s,gC:()=>n});const n=Object.freeze({Login:1,SecureNote:2,Card:3,Identity:4,SshKey:5,BankAccount:6,DriversLicense:7,Passport:8}),r=Object.freeze(Object.fromEntries(Object.entries(n).map(([e,t])=>[t,e])));function s(e){return r[e]}const o=e=>Object.values(n).includes(e)},92543(e,t,i){"use strict";i.d(t,{D:()=>r,P:()=>n});const n=Object.freeze({Text:0,Hidden:1,Boolean:2,Linked:3});function r(e){switch(e){case n.Text:case n.Hidden:case n.Boolean:case n.Linked:return e;default:return n.Text}}},81356(e,t,i){"use strict";i.d(t,{Q:()=>n.Q,xP:()=>l,b1:()=>r.b,gC:()=>s.gC,XS:()=>A,PU:()=>o.P,ZX:()=>c,EU:()=>a,ak:()=>u,KN:()=>s.KN,D1:()=>o.D,NI:()=>d,aw:()=>h,g7:()=>s.g7});var n=i(21854),r=i(36501),s=i(7919),o=i(92543);const a={Username:100,Password:101},l={CardholderName:300,ExpMonth:301,ExpYear:302,Code:303,Brand:304,Number:305},c={Title:400,MiddleName:401,Address1:402,Address2:403,Address3:404,City:405,State:406,PostalCode:407,Country:408,Company:409,Email:410,Phone:411,Ssn:412,Username:413,PassportNumber:414,LicenseNumber:415,FirstName:416,LastName:417,FullName:418};function d(e){if(null==e)return;return[...Object.values(a),...Object.values(l),...Object.values(c)].includes(e)?e:void 0}const u={Generic:0};function h(e){return u.Generic}const A={Index:"popup/index.html#/",AtRiskPasswords:"popup/index.html#/at-risk-passwords"}},69473(e,t,i){"use strict";i.d(t,{V:()=>r});class n{constructor(e,t){this.propertyKey=e,this._i18nKey=null==t?void 0:t.i18nKey,this.sortPosition=t.sortPosition}get i18nKey(){var e;return null!==(e=this._i18nKey)&&void 0!==e?e:this.propertyKey}}function r(e,t){return(i,r)=>{null==i.linkedFieldOptions&&(i.linkedFieldOptions=new Map),i.linkedFieldOptions.set(e,new n(r,t))}}},53136(e,t,i){"use strict";i.d(t,{M:()=>r});var n=i(20702);class r extends n.r{constructor(e=null){super(e),this.bankName=void 0,this.nameOnAccount=void 0,this.accountType=void 0,this.accountNumber=void 0,this.routingNumber=void 0,this.branchNumber=void 0,this.pin=void 0,this.swiftCode=void 0,this.iban=void 0,this.bankContactPhone=void 0,null!=e&&(this.bankName=this.getResponseProperty("BankName"),this.nameOnAccount=this.getResponseProperty("NameOnAccount"),this.accountType=this.getResponseProperty("AccountType"),this.accountNumber=this.getResponseProperty("AccountNumber"),this.routingNumber=this.getResponseProperty("RoutingNumber"),this.branchNumber=this.getResponseProperty("BranchNumber"),this.pin=this.getResponseProperty("Pin"),this.swiftCode=this.getResponseProperty("SwiftCode"),this.iban=this.getResponseProperty("Iban"),this.bankContactPhone=this.getResponseProperty("BankContactPhone"))}}},61782(e,t,i){"use strict";i.d(t,{j:()=>r});var n=i(20702);class r extends n.r{constructor(e=null){super(e),null!=e&&(this.cardholderName=this.getResponseProperty("CardholderName"),this.brand=this.getResponseProperty("Brand"),this.number=this.getResponseProperty("Number"),this.expMonth=this.getResponseProperty("ExpMonth"),this.expYear=this.getResponseProperty("ExpYear"),this.code=this.getResponseProperty("Code"))}}},42234(e,t,i){"use strict";i.d(t,{a:()=>r});var n=i(20702);class r extends n.r{constructor(e=null){super(e),this.delete=!1,this.restore=!1,null!=e&&(this.delete=this.getResponseProperty("Delete"),this.restore=this.getResponseProperty("Restore"))}static fromJSON(e){return Object.assign(new r,e)}static fromSdkCipherPermissions(e){if(!e)return;const t=new r;return t.delete=e.delete,t.restore=e.restore,t}toSdkCipherPermissions(){return this}}},65635(e,t,i){"use strict";i.d(t,{P:()=>r});var n=i(20702);class r extends n.r{constructor(e=null){super(e),this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.dateOfBirth=void 0,this.licenseNumber=void 0,this.issuingCountry=void 0,this.issuingState=void 0,this.issueDate=void 0,this.expirationDate=void 0,this.issuingAuthority=void 0,this.licenseClass=void 0,null!=e&&(this.firstName=this.getResponseProperty("FirstName"),this.middleName=this.getResponseProperty("MiddleName"),this.lastName=this.getResponseProperty("LastName"),this.dateOfBirth=this.getResponseProperty("DateOfBirth"),this.licenseNumber=this.getResponseProperty("LicenseNumber"),this.issuingCountry=this.getResponseProperty("IssuingCountry"),this.issuingState=this.getResponseProperty("IssuingState"),this.issueDate=this.getResponseProperty("IssueDate"),this.expirationDate=this.getResponseProperty("ExpirationDate"),this.issuingAuthority=this.getResponseProperty("IssuingAuthority"),this.licenseClass=this.getResponseProperty("LicenseClass"))}}},36304(e,t,i){"use strict";i.d(t,{K:()=>r});var n=i(20702);class r extends n.r{constructor(e=null){super(e),null!=e&&(this.credentialId=this.getResponseProperty("CredentialId"),this.keyType=this.getResponseProperty("KeyType"),this.keyAlgorithm=this.getResponseProperty("KeyAlgorithm"),this.keyCurve=this.getResponseProperty("KeyCurve"),this.keyValue=this.getResponseProperty("keyValue"),this.rpId=this.getResponseProperty("RpId"),this.userHandle=this.getResponseProperty("UserHandle"),this.userName=this.getResponseProperty("UserName"),this.counter=this.getResponseProperty("Counter"),this.rpName=this.getResponseProperty("RpName"),this.userDisplayName=this.getResponseProperty("UserDisplayName"),this.discoverable=this.getResponseProperty("Discoverable"),this.creationDate=this.getResponseProperty("CreationDate"))}}},61182(e,t,i){"use strict";i.d(t,{d:()=>r});var n=i(20702);class r extends n.r{constructor(e=null){super(e),null!=e&&(this.type=this.getResponseProperty("Type"),this.name=this.getResponseProperty("Name"),this.value=this.getResponseProperty("Value"),this.linkedId=this.getResponseProperty("linkedId"))}}},39326(e,t,i){"use strict";i.d(t,{p:()=>r});var n=i(20702);class r extends n.r{constructor(e=null){super(e),null!=e&&(this.title=this.getResponseProperty("Title"),this.firstName=this.getResponseProperty("FirstName"),this.middleName=this.getResponseProperty("MiddleName"),this.lastName=this.getResponseProperty("LastName"),this.address1=this.getResponseProperty("Address1"),this.address2=this.getResponseProperty("Address2"),this.address3=this.getResponseProperty("Address3"),this.city=this.getResponseProperty("City"),this.state=this.getResponseProperty("State"),this.postalCode=this.getResponseProperty("PostalCode"),this.country=this.getResponseProperty("Country"),this.company=this.getResponseProperty("Company"),this.email=this.getResponseProperty("Email"),this.phone=this.getResponseProperty("Phone"),this.ssn=this.getResponseProperty("SSN"),this.username=this.getResponseProperty("Username"),this.passportNumber=this.getResponseProperty("PassportNumber"),this.licenseNumber=this.getResponseProperty("LicenseNumber"))}}},26076(e,t,i){"use strict";i.d(t,{q:()=>r});var n=i(20702);class r extends n.r{constructor(e=null){if(super(e),this.match=null,null==e)return;this.uri=this.getResponseProperty("Uri"),this.uriChecksum=this.getResponseProperty("UriChecksum");const t=this.getResponseProperty("Match");this.match=null!=t?t:null}}},36107(e,t,i){"use strict";i.d(t,{a:()=>o});var n=i(20702),r=i(36304),s=i(26076);class o extends n.r{constructor(e=null){if(super(e),null==e)return;this.username=this.getResponseProperty("Username"),this.password=this.getResponseProperty("Password"),this.passwordRevisionDate=this.getResponseProperty("PasswordRevisionDate"),this.totp=this.getResponseProperty("Totp"),this.autofillOnPageLoad=this.getResponseProperty("AutofillOnPageLoad");const t=this.getResponseProperty("Uris");null!=t&&(this.uris=t.map(e=>new s.q(e)));const i=this.getResponseProperty("Fido2Credentials");null!=i&&(this.fido2Credentials=i.map(e=>new r.K(e)))}}},89010(e,t,i){"use strict";i.d(t,{j:()=>r});var n=i(20702);class r extends n.r{constructor(e=null){super(e),this.surname=void 0,this.givenName=void 0,this.dateOfBirth=void 0,this.sex=void 0,this.birthPlace=void 0,this.nationality=void 0,this.issuingCountry=void 0,this.passportNumber=void 0,this.passportType=void 0,this.nationalIdentificationNumber=void 0,this.issuingAuthority=void 0,this.issueDate=void 0,this.expirationDate=void 0,null!=e&&(this.surname=this.getResponseProperty("Surname"),this.givenName=this.getResponseProperty("GivenName"),this.dateOfBirth=this.getResponseProperty("DateOfBirth"),this.sex=this.getResponseProperty("Sex"),this.birthPlace=this.getResponseProperty("BirthPlace"),this.nationality=this.getResponseProperty("Nationality"),this.issuingCountry=this.getResponseProperty("IssuingCountry"),this.passportNumber=this.getResponseProperty("PassportNumber"),this.passportType=this.getResponseProperty("PassportType"),this.nationalIdentificationNumber=this.getResponseProperty("NationalIdentificationNumber"),this.issuingAuthority=this.getResponseProperty("IssuingAuthority"),this.issueDate=this.getResponseProperty("IssueDate"),this.expirationDate=this.getResponseProperty("ExpirationDate"))}}},10070(e,t,i){"use strict";i.d(t,{c:()=>r});var n=i(20702);class r extends n.r{constructor(e=null){super(e),null!=e&&(this.type=this.getResponseProperty("Type"))}}},36890(e,t,i){"use strict";i.d(t,{m:()=>r});var n=i(20702);class r extends n.r{constructor(e=null){super(e),null!=e&&(this.privateKey=this.getResponseProperty("PrivateKey"),this.publicKey=this.getResponseProperty("PublicKey"),this.keyFingerprint=this.getResponseProperty("KeyFingerprint"))}}},59281(e,t,i){"use strict";i.d(t,{e:()=>n});class n{constructor(e){null!=e&&(this.id=e.id,this.url=e.url,this.fileName=e.fileName,this.key=e.key,this.size=e.size,this.sizeName=e.sizeName)}}},37518(e,t,i){"use strict";i.d(t,{K:()=>n});class n{constructor(e){null!=e&&(this.bankName=e.bankName,this.nameOnAccount=e.nameOnAccount,this.accountType=e.accountType,this.accountNumber=e.accountNumber,this.routingNumber=e.routingNumber,this.branchNumber=e.branchNumber,this.pin=e.pin,this.swiftCode=e.swiftCode,this.iban=e.iban,this.bankContactPhone=e.bankContactPhone)}}},9184(e,t,i){"use strict";i.d(t,{b:()=>n});class n{constructor(e){null!=e&&(this.cardholderName=e.cardholderName,this.brand=e.brand,this.number=e.number,this.expMonth=e.expMonth,this.expYear=e.expYear,this.code=e.code)}}},50451(e,t,i){"use strict";i.d(t,{A:()=>m});var n=i(36501),r=i(7919),s=i(42234),o=i(59281),a=i(37518),l=i(9184),c=i(57283),d=i(91304),u=i(82696),h=i(22203),A=i(75404),p=i(11314),g=i(27280),v=i(96540);class m{constructor(e,t){if(this.id="",this.edit=!1,this.viewPassword=!0,this.organizationUseTotp=!1,this.favorite=!1,this.type=r.gC.Login,this.name="",this.reprompt=n.b.None,null!=e){switch(this.id=e.id,this.organizationId=e.organizationId,this.folderId=e.folderId,this.edit=e.edit,this.viewPassword=e.viewPassword,this.permissions=e.permissions,this.organizationUseTotp=e.organizationUseTotp,this.favorite=e.favorite,this.revisionDate=e.revisionDate,this.type=e.type,this.name=e.name,this.notes=e.notes,this.collectionIds=null!=t?t:e.collectionIds,this.creationDate=e.creationDate,this.deletedDate=e.deletedDate,this.archivedDate=e.archivedDate,this.reprompt=e.reprompt,this.key=e.key,this.data=e.data,this.type){case r.gC.Login:this.login=e.login&&new h.k(e.login);break;case r.gC.SecureNote:this.secureNote=e.secureNote&&new g.e(e.secureNote);break;case r.gC.Card:this.card=e.card&&new l.b(e.card);break;case r.gC.Identity:this.identity=e.identity&&new u.j(e.identity);break;case r.gC.SshKey:this.sshKey=e.sshKey&&new v.E(e.sshKey);break;case r.gC.BankAccount:this.bankAccount=e.bankAccount&&new a.K(e.bankAccount);break;case r.gC.DriversLicense:this.driversLicense=e.driversLicense&&new c.B(e.driversLicense);break;case r.gC.Passport:this.passport=e.passport&&new A.Z(e.passport)}null!=e.fields&&(this.fields=e.fields.map(e=>new d.N(e))),null!=e.attachments&&(this.attachments=e.attachments.map(e=>new o.e(e))),null!=e.passwordHistory&&(this.passwordHistory=e.passwordHistory.map(e=>new p.k(e)))}else this.creationDate=this.revisionDate=(new Date).toISOString()}static fromJSON(e){const t=Object.assign(new m,e);return null!=e.permissions&&(t.permissions=s.a.fromJSON(e.permissions)),t}}},57283(e,t,i){"use strict";i.d(t,{B:()=>n});class n{constructor(e){null!=e&&(this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.dateOfBirth=e.dateOfBirth,this.licenseNumber=e.licenseNumber,this.issuingCountry=e.issuingCountry,this.issuingState=e.issuingState,this.issueDate=e.issueDate,this.expirationDate=e.expirationDate,this.issuingAuthority=e.issuingAuthority,this.licenseClass=e.licenseClass)}}},47505(e,t,i){"use strict";i.d(t,{w:()=>n});class n{constructor(e){null!=e&&(this.credentialId=e.credentialId,this.keyType=e.keyType,this.keyAlgorithm=e.keyAlgorithm,this.keyCurve=e.keyCurve,this.keyValue=e.keyValue,this.rpId=e.rpId,this.userHandle=e.userHandle,this.userName=e.userName,this.counter=e.counter,this.rpName=e.rpName,this.userDisplayName=e.userDisplayName,this.discoverable=e.discoverable,this.creationDate=e.creationDate)}}},91304(e,t,i){"use strict";i.d(t,{N:()=>r});var n=i(81356);class r{constructor(e){this.type=n.PU.Text,null!=e&&(this.type=e.type,this.name=e.name,this.value=e.value,this.linkedId=e.linkedId)}}},82696(e,t,i){"use strict";i.d(t,{j:()=>n});class n{constructor(e){null!=e&&(this.title=e.title,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.address1=e.address1,this.address2=e.address2,this.address3=e.address3,this.city=e.city,this.state=e.state,this.postalCode=e.postalCode,this.country=e.country,this.company=e.company,this.email=e.email,this.phone=e.phone,this.ssn=e.ssn,this.username=e.username,this.passportNumber=e.passportNumber,this.licenseNumber=e.licenseNumber)}}},38453(e,t,i){"use strict";function n(e){if(null!=e)return{lastUsedDate:e.lastUsedDate?new Date(e.lastUsedDate).getTime():void 0,lastLaunched:e.lastLaunched?new Date(e.lastLaunched).getTime():void 0}}function r(e){if(null!=e)return{lastUsedDate:e.lastUsedDate?new Date(e.lastUsedDate).toISOString():void 0,lastLaunched:e.lastLaunched?new Date(e.lastLaunched).toISOString():void 0}}i.d(t,{H:()=>r,e:()=>n})},76506(e,t,i){"use strict";i.d(t,{S:()=>n});class n{constructor(e){null!=e&&(this.uri=e.uri,this.uriChecksum=e.uriChecksum,this.match=e.match)}}},22203(e,t,i){"use strict";i.d(t,{k:()=>s});var n=i(47505),r=i(76506);class s{constructor(e){var t;null!=e&&(this.username=e.username,this.password=e.password,this.passwordRevisionDate=e.passwordRevisionDate,this.totp=e.totp,this.autofillOnPageLoad=e.autofillOnPageLoad,e.uris&&(this.uris=e.uris.map(e=>new r.S(e))),e.fido2Credentials&&(this.fido2Credentials=null===(t=e.fido2Credentials)||void 0===t?void 0:t.map(e=>new n.w(e))))}}},75404(e,t,i){"use strict";i.d(t,{Z:()=>n});class n{constructor(e){null!=e&&(this.surname=e.surname,this.givenName=e.givenName,this.dateOfBirth=e.dateOfBirth,this.sex=e.sex,this.birthPlace=e.birthPlace,this.nationality=e.nationality,this.issuingCountry=e.issuingCountry,this.passportNumber=e.passportNumber,this.passportType=e.passportType,this.nationalIdentificationNumber=e.nationalIdentificationNumber,this.issuingAuthority=e.issuingAuthority,this.issueDate=e.issueDate,this.expirationDate=e.expirationDate)}}},11314(e,t,i){"use strict";i.d(t,{k:()=>n});class n{constructor(e){null!=e&&(this.password=e.password,this.lastUsedDate=e.lastUsedDate)}}},27280(e,t,i){"use strict";i.d(t,{e:()=>r});var n=i(81356);class r{constructor(e){this.type=n.ak.Generic,null!=e&&(this.type=e.type)}}},96540(e,t,i){"use strict";i.d(t,{E:()=>n});class n{constructor(e){null!=e&&(this.privateKey=e.privateKey,this.publicKey=e.publicKey,this.keyFingerprint=e.keyFingerprint)}}},86966(e,t,i){"use strict";i.d(t,{c:()=>a});var n=i(17989),r=i(24072),s=i(37518),o=i(84749);class a extends n.A{constructor(e){super(),null!=e&&(this.bankName=(0,r.e)(e.bankName),this.nameOnAccount=(0,r.e)(e.nameOnAccount),this.accountType=(0,r.e)(e.accountType),this.accountNumber=(0,r.e)(e.accountNumber),this.routingNumber=(0,r.e)(e.routingNumber),this.branchNumber=(0,r.e)(e.branchNumber),this.pin=(0,r.e)(e.pin),this.swiftCode=(0,r.e)(e.swiftCode),this.iban=(0,r.e)(e.iban),this.bankContactPhone=(0,r.e)(e.bankContactPhone))}decrypt(e,t="No Cipher Context"){return this.decryptObj(this,new o.n,["bankName","nameOnAccount","accountType","accountNumber","routingNumber","branchNumber","pin","swiftCode","iban","bankContactPhone"],e,"DomainType: BankAccount; "+t)}toBankAccountData(){const e=new s.K;return this.buildDataModel(this,e,{bankName:null,nameOnAccount:null,accountType:null,accountNumber:null,routingNumber:null,branchNumber:null,pin:null,swiftCode:null,iban:null,bankContactPhone:null}),e}static fromJSON(e){if(null==e)return;const t=new a;return t.bankName=(0,r.u)(e.bankName),t.nameOnAccount=(0,r.u)(e.nameOnAccount),t.accountType=(0,r.u)(e.accountType),t.accountNumber=(0,r.u)(e.accountNumber),t.routingNumber=(0,r.u)(e.routingNumber),t.branchNumber=(0,r.u)(e.branchNumber),t.pin=(0,r.u)(e.pin),t.swiftCode=(0,r.u)(e.swiftCode),t.iban=(0,r.u)(e.iban),t.bankContactPhone=(0,r.u)(e.bankContactPhone),t}toSdkBankAccount(){var e,t,i,n,r,s,o,a,l,c;return{bankName:null===(e=this.bankName)||void 0===e?void 0:e.toSdk(),nameOnAccount:null===(t=this.nameOnAccount)||void 0===t?void 0:t.toSdk(),accountType:null===(i=this.accountType)||void 0===i?void 0:i.toSdk(),accountNumber:null===(n=this.accountNumber)||void 0===n?void 0:n.toSdk(),routingNumber:null===(r=this.routingNumber)||void 0===r?void 0:r.toSdk(),branchNumber:null===(s=this.branchNumber)||void 0===s?void 0:s.toSdk(),pin:null===(o=this.pin)||void 0===o?void 0:o.toSdk(),swiftCode:null===(a=this.swiftCode)||void 0===a?void 0:a.toSdk(),iban:null===(l=this.iban)||void 0===l?void 0:l.toSdk(),bankContactPhone:null===(c=this.bankContactPhone)||void 0===c?void 0:c.toSdk()}}static fromSdkBankAccount(e){if(!e)return;const t=new a;return t.bankName=(0,r.u)(e.bankName),t.nameOnAccount=(0,r.u)(e.nameOnAccount),t.accountType=(0,r.u)(e.accountType),t.accountNumber=(0,r.u)(e.accountNumber),t.routingNumber=(0,r.u)(e.routingNumber),t.branchNumber=(0,r.u)(e.branchNumber),t.pin=(0,r.u)(e.pin),t.swiftCode=(0,r.u)(e.swiftCode),t.iban=(0,r.u)(e.iban),t.bankContactPhone=(0,r.u)(e.bankContactPhone),t}}},19488(e,t,i){"use strict";i.d(t,{Z:()=>l});var n=i(17989),r=i(24072),s=i(9184),o=i(6528),a=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class l extends n.A{constructor(e){super(),null!=e&&(this.cardholderName=(0,r.e)(e.cardholderName),this.brand=(0,r.e)(e.brand),this.number=(0,r.e)(e.number),this.expMonth=(0,r.e)(e.expMonth),this.expYear=(0,r.e)(e.expYear),this.code=(0,r.e)(e.code))}decrypt(e){return a(this,arguments,void 0,function*(e,t="No Cipher Context"){return this.decryptObj(this,new o.G,["cardholderName","brand","number","expMonth","expYear","code"],e,"DomainType: Card; "+t)})}toCardData(){const e=new s.b;return this.buildDataModel(this,e,{cardholderName:null,brand:null,number:null,expMonth:null,expYear:null,code:null}),e}static fromJSON(e){if(null==e)return;const t=new l;return t.cardholderName=(0,r.u)(e.cardholderName),t.brand=(0,r.u)(e.brand),t.number=(0,r.u)(e.number),t.expMonth=(0,r.u)(e.expMonth),t.expYear=(0,r.u)(e.expYear),t.code=(0,r.u)(e.code),t}toSdkCard(){var e,t,i,n,r,s;return{cardholderName:null===(e=this.cardholderName)||void 0===e?void 0:e.toSdk(),brand:null===(t=this.brand)||void 0===t?void 0:t.toSdk(),number:null===(i=this.number)||void 0===i?void 0:i.toSdk(),expMonth:null===(n=this.expMonth)||void 0===n?void 0:n.toSdk(),expYear:null===(r=this.expYear)||void 0===r?void 0:r.toSdk(),code:null===(s=this.code)||void 0===s?void 0:s.toSdk()}}static fromSdkCard(e){if(!e)return;const t=new l;return t.cardholderName=(0,r.u)(e.cardholderName),t.brand=(0,r.u)(e.brand),t.number=(0,r.u)(e.number),t.expMonth=(0,r.u)(e.expMonth),t.expYear=(0,r.u)(e.expYear),t.code=(0,r.u)(e.code),t}}},7025(e,t,i){"use strict";i.d(t,{o:()=>F});var n=i(60512),r=i(66523),s=i(78781),o=i(17989),a=i(34693),l=i(36501),c=i(7919),d=i(24072),u=i(42234),h=i(50451),A=i(38453),p=i(75751),g=i(59281),v=i(34461),m=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class f extends o.A{constructor(e){super(),null!=e&&(this.id=e.id,this.url=e.url,this.size=e.size,this.sizeName=e.sizeName,this.fileName=(0,d.e)(e.fileName),this.key=(0,d.e)(e.key))}decrypt(e){return m(this,arguments,void 0,function*(e,t="No Cipher Context"){const i=yield this.decryptObj(this,new v.$(this),["fileName"],e,"DomainType: Attachment; "+t);return null!=this.key&&(i.key=yield this.decryptAttachmentKey(e),i.encryptedKey=this.key,i.key||(i.hasDecryptionError=!0)),i})}decryptAttachmentKey(e){return m(this,void 0,void 0,function*(){try{if(null==this.key)return;const t=s.A.getContainerService().getEncryptService();return yield t.unwrapSymmetricKey(this.key,e)}catch(t){return void console.error("[Attachment] Error decrypting attachment",t)}})}toAttachmentData(){const e=new g.e;return null!=this.size&&(e.size=this.size),this.buildDataModel(this,e,{id:null,url:null,sizeName:null,fileName:null,key:null},["id","url","sizeName"]),e}static fromJSON(e){if(null==e)return;const t=new f;return t.id=e.id,t.url=e.url,t.size=e.size,t.sizeName=e.sizeName,t.key=(0,d.u)(e.key),t.fileName=(0,d.u)(e.fileName),t}toSdkAttachment(){var e,t;return{id:this.id,url:this.url,size:this.size,sizeName:this.sizeName,fileName:null===(e=this.fileName)||void 0===e?void 0:e.toSdk(),key:null===(t=this.key)||void 0===t?void 0:t.toSdk()}}static fromSdkAttachment(e){if(!e)return;const t=new f;return t.id=e.id,t.url=e.url,t.size=e.size,t.sizeName=e.sizeName,t.fileName=(0,d.u)(e.fileName),t.key=(0,d.u)(e.key),t}}var y=i(86966),b=i(19488),C=i(33197),I=i(77720),w=i(32072),B=i(21925),E=i(47268),S=i(50751),Q=i(47328),k=i(67756),R=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class F extends o.A{constructor(e,t){var i;if(super(),this.initializerKey=a.M.Cipher,this.id="",this.type=c.gC.Login,this.favorite=!1,this.organizationUseTotp=!1,this.edit=!1,this.viewPassword=!0,this.collectionIds=[],this.reprompt=l.b.None,null!=e){switch(this.id=e.id,this.organizationId=e.organizationId,this.folderId=e.folderId,this.name=(0,d.e)(e.name),this.notes=(0,d.e)(e.notes),this.type=e.type,this.favorite=e.favorite,this.organizationUseTotp=e.organizationUseTotp,this.edit=e.edit,this.viewPassword=e.viewPassword,this.permissions=e.permissions,this.revisionDate=new Date(e.revisionDate),this.localData=t,this.collectionIds=null!==(i=e.collectionIds)&&void 0!==i?i:[],this.creationDate=new Date(e.creationDate),this.deletedDate=null!=e.deletedDate?new Date(e.deletedDate):void 0,this.archivedDate=null!=e.archivedDate?new Date(e.archivedDate):void 0,this.reprompt=e.reprompt,this.key=(0,d.e)(e.key),this.data=e.data,this.type){case c.gC.Login:this.login=e.login&&new B.a(e.login);break;case c.gC.SecureNote:this.secureNote=e.secureNote&&new Q.S(e.secureNote);break;case c.gC.Card:this.card=e.card&&new b.Z(e.card);break;case c.gC.Identity:this.identity=e.identity&&new w.l(e.identity);break;case c.gC.SshKey:this.sshKey=e.sshKey&&new k.M(e.sshKey);break;case c.gC.BankAccount:this.bankAccount=e.bankAccount&&new y.c(e.bankAccount);break;case c.gC.DriversLicense:this.driversLicense=e.driversLicense&&new C.b(e.driversLicense);break;case c.gC.Passport:this.passport=e.passport&&new E.t(e.passport)}null!=e.attachments&&(this.attachments=e.attachments.map(e=>new f(e))),null!=e.fields&&(this.fields=e.fields.map(e=>new I.D(e))),null!=e.passwordHistory&&(this.passwordHistory=e.passwordHistory.map(e=>new S._(e)))}else this.creationDate=this.revisionDate=new Date}decrypt(e){return R(this,void 0,void 0,function*(){(0,n.x)(e,"userKeyOrOrgKey","Cipher decryption");const t=new p.f(this);let i=!0,r=e;if(null!=this.key){const n=s.A.getContainerService().getEncryptService();try{r=yield n.unwrapSymmetricKey(this.key,e),i=!1}catch(o){return t.name="[error: cannot decrypt]",t.decryptionFailure=!0,t}}switch(yield this.decryptObj(this,t,["name","notes"],r),this.type){case c.gC.Login:null!=this.login&&(t.login=yield this.login.decrypt(i,r,`Cipher Id: ${this.id}`));break;case c.gC.SecureNote:null!=this.secureNote&&(t.secureNote=yield this.secureNote.decrypt());break;case c.gC.Card:null!=this.card&&(t.card=yield this.card.decrypt(r,`Cipher Id: ${this.id}`));break;case c.gC.Identity:null!=this.identity&&(t.identity=yield this.identity.decrypt(r,`Cipher Id: ${this.id}`));break;case c.gC.SshKey:null!=this.sshKey&&(t.sshKey=yield this.sshKey.decrypt(r,`Cipher Id: ${this.id}`));break;case c.gC.BankAccount:null!=this.bankAccount&&(t.bankAccount=yield this.bankAccount.decrypt(r,`Cipher Id: ${this.id}`));break;case c.gC.DriversLicense:null!=this.driversLicense&&(t.driversLicense=yield this.driversLicense.decrypt(r,`Cipher Id: ${this.id}`));break;case c.gC.Passport:null!=this.passport&&(t.passport=yield this.passport.decrypt(r,`Cipher Id: ${this.id}`))}if(null!=this.attachments&&this.attachments.length>0){const e=[];for(const t of this.attachments){const i=yield t.decrypt(r,`Cipher Id: ${this.id}`);e.push(i)}t.attachments=e}if(null!=this.fields&&this.fields.length>0){const e=[];for(const t of this.fields){const i=yield t.decrypt(r);e.push(i)}t.fields=e}if(null!=this.passwordHistory&&this.passwordHistory.length>0){const e=[];for(const t of this.passwordHistory){const i=yield t.decrypt(r);e.push(i)}t.passwordHistory=e}return t})}toCipherData(){const e=new h.A;switch(e.id=this.id,null!=this.organizationId&&(e.organizationId=this.organizationId),null!=this.folderId&&(e.folderId=this.folderId),e.edit=this.edit,e.viewPassword=this.viewPassword,e.organizationUseTotp=this.organizationUseTotp,e.favorite=this.favorite,e.revisionDate=this.revisionDate.toISOString(),e.type=this.type,e.collectionIds=this.collectionIds,e.creationDate=this.creationDate.toISOString(),e.deletedDate=null!=this.deletedDate?this.deletedDate.toISOString():void 0,e.reprompt=this.reprompt,null!=this.key&&null!=this.key.encryptedString&&(e.key=this.key.encryptedString),null!=this.data&&(e.data=this.data),null!=this.permissions&&(e.permissions=this.permissions),e.archivedDate=null!=this.archivedDate?this.archivedDate.toISOString():void 0,this.buildDataModel(this,e,{name:null,notes:null}),e.type){case c.gC.Login:null!=this.login&&(e.login=this.login.toLoginData());break;case c.gC.SecureNote:null!=this.secureNote&&(e.secureNote=this.secureNote.toSecureNoteData());break;case c.gC.Card:null!=this.card&&(e.card=this.card.toCardData());break;case c.gC.Identity:null!=this.identity&&(e.identity=this.identity.toIdentityData());break;case c.gC.SshKey:null!=this.sshKey&&(e.sshKey=this.sshKey.toSshKeyData());break;case c.gC.BankAccount:null!=this.bankAccount&&(e.bankAccount=this.bankAccount.toBankAccountData());break;case c.gC.DriversLicense:null!=this.driversLicense&&(e.driversLicense=this.driversLicense.toDriversLicenseData());break;case c.gC.Passport:null!=this.passport&&(e.passport=this.passport.toPassportData())}return null!=this.fields&&(e.fields=this.fields.map(e=>e.toFieldData())),null!=this.attachments&&(e.attachments=this.attachments.map(e=>e.toAttachmentData())),null!=this.passwordHistory&&(e.passwordHistory=this.passwordHistory.map(e=>e.toPasswordHistoryData())),e}static fromJSON(e){var t,i,n;if(null==e)return;const r=new F;switch(r.id=e.id,r.organizationId=e.organizationId,r.folderId=e.folderId,r.type=e.type,r.favorite=e.favorite,r.organizationUseTotp=e.organizationUseTotp,r.edit=e.edit,r.viewPassword=e.viewPassword,null!=e.permissions&&(r.permissions=new u.a(e.permissions)),r.collectionIds=e.collectionIds,r.localData=e.localData,r.reprompt=e.reprompt,r.creationDate=new Date(e.creationDate),r.revisionDate=new Date(e.revisionDate),r.deletedDate=null!=e.deletedDate?new Date(e.deletedDate):void 0,r.archivedDate=null!=e.archivedDate?new Date(e.archivedDate):void 0,r.name=(0,d.u)(e.name),r.notes=(0,d.u)(e.notes),r.key=(0,d.u)(e.key),r.data=e.data,r.attachments=null===(t=e.attachments)||void 0===t?void 0:t.map(e=>f.fromJSON(e)).filter(e=>null!=e),r.fields=null===(i=e.fields)||void 0===i?void 0:i.map(e=>I.D.fromJSON(e)).filter(e=>null!=e),r.passwordHistory=null===(n=e.passwordHistory)||void 0===n?void 0:n.map(e=>S._.fromJSON(e)).filter(e=>null!=e),e.type){case c.gC.Card:null!=e.card&&(r.card=b.Z.fromJSON(e.card));break;case c.gC.Identity:null!=e.identity&&(r.identity=w.l.fromJSON(e.identity));break;case c.gC.Login:null!=e.login&&(r.login=B.a.fromJSON(e.login));break;case c.gC.SecureNote:null!=e.secureNote&&(r.secureNote=Q.S.fromJSON(e.secureNote));break;case c.gC.SshKey:null!=e.sshKey&&(r.sshKey=k.M.fromJSON(e.sshKey));break;case c.gC.BankAccount:null!=e.bankAccount&&(r.bankAccount=y.c.fromJSON(e.bankAccount));break;case c.gC.DriversLicense:null!=e.driversLicense&&(r.driversLicense=C.b.fromJSON(e.driversLicense));break;case c.gC.Passport:null!=e.passport&&(r.passport=E.t.fromJSON(e.passport))}return r}toSdkCipher(){var e,t,i,n,s,o,a,d;const u={id:this.id?(0,r.WD)(this.id):void 0,organizationId:this.organizationId?(0,r.WD)(this.organizationId):void 0,folderId:this.folderId?(0,r.WD)(this.folderId):void 0,collectionIds:this.collectionIds?this.collectionIds.map(r.WD):[],key:null===(e=this.key)||void 0===e?void 0:e.toSdk(),name:null===(t=this.name)||void 0===t?void 0:t.toSdk(),notes:null===(i=this.notes)||void 0===i?void 0:i.toSdk(),type:this.type,favorite:this.favorite,organizationUseTotp:this.organizationUseTotp,edit:this.edit,permissions:this.permissions?{delete:this.permissions.delete,restore:this.permissions.restore}:void 0,viewPassword:this.viewPassword,localData:(0,A.H)(this.localData),attachments:null===(n=this.attachments)||void 0===n?void 0:n.map(e=>e.toSdkAttachment()),fields:null===(s=this.fields)||void 0===s?void 0:s.map(e=>e.toSdkField()),passwordHistory:null===(o=this.passwordHistory)||void 0===o?void 0:o.map(e=>e.toSdkPasswordHistory()),revisionDate:this.revisionDate.toISOString(),creationDate:this.creationDate.toISOString(),deletedDate:null===(a=this.deletedDate)||void 0===a?void 0:a.toISOString(),archivedDate:null===(d=this.archivedDate)||void 0===d?void 0:d.toISOString(),reprompt:(0,l.x)(this.reprompt),login:void 0,identity:void 0,card:void 0,secureNote:void 0,sshKey:void 0,bankAccount:void 0,driversLicense:void 0,passport:void 0,data:this.data};switch(this.type){case c.gC.Login:null!=this.login&&(u.login=this.login.toSdkLogin());break;case c.gC.SecureNote:null!=this.secureNote&&(u.secureNote=this.secureNote.toSdkSecureNote());break;case c.gC.Card:null!=this.card&&(u.card=this.card.toSdkCard());break;case c.gC.Identity:null!=this.identity&&(u.identity=this.identity.toSdkIdentity());break;case c.gC.SshKey:null!=this.sshKey&&(u.sshKey=this.sshKey.toSdkSshKey());break;case c.gC.BankAccount:null!=this.bankAccount&&(u.bankAccount=this.bankAccount.toSdkBankAccount());break;case c.gC.DriversLicense:null!=this.driversLicense&&(u.driversLicense=this.driversLicense.toSdkDriversLicense());break;case c.gC.Passport:null!=this.passport&&(u.passport=this.passport.toSdkPassport())}return u}static fromSdkCipher(e){var t,i,n;if(null==e)return;const s=new F;return s.id=e.id?(0,r.zw)(e.id):"",s.organizationId=e.organizationId?(0,r.zw)(e.organizationId):void 0,s.folderId=e.folderId?(0,r.zw)(e.folderId):void 0,s.collectionIds=e.collectionIds?e.collectionIds.map(r.zw):[],s.key=(0,d.u)(e.key),s.name=(0,d.u)(e.name),s.notes=(0,d.u)(e.notes),s.type=e.type,s.favorite=e.favorite,s.organizationUseTotp=e.organizationUseTotp,s.edit=e.edit,s.permissions=u.a.fromSdkCipherPermissions(e.permissions),s.viewPassword=e.viewPassword,s.localData=(0,A.e)(e.localData),s.attachments=null===(t=e.attachments)||void 0===t?void 0:t.map(e=>f.fromSdkAttachment(e)).filter(e=>null!=e),s.fields=null===(i=e.fields)||void 0===i?void 0:i.map(e=>I.D.fromSdkField(e)).filter(e=>null!=e),s.passwordHistory=null===(n=e.passwordHistory)||void 0===n?void 0:n.map(e=>S._.fromSdkPasswordHistory(e)).filter(e=>null!=e),s.creationDate=new Date(e.creationDate),s.revisionDate=new Date(e.revisionDate),s.deletedDate=e.deletedDate?new Date(e.deletedDate):void 0,s.archivedDate=e.archivedDate?new Date(e.archivedDate):void 0,s.reprompt=e.reprompt,s.data=e.data,s.login=B.a.fromSdkLogin(e.login),s.secureNote=Q.S.fromSdkSecureNote(e.secureNote),s.card=b.Z.fromSdkCard(e.card),s.identity=w.l.fromSdkIdentity(e.identity),s.sshKey=k.M.fromSdkSshKey(e.sshKey),s.bankAccount=y.c.fromSdkBankAccount(e.bankAccount),s.driversLicense=C.b.fromSdkDriversLicense(e.driversLicense),s.passport=E.t.fromSdkPassport(e.passport),s}}},33197(e,t,i){"use strict";i.d(t,{b:()=>a});var n=i(17989),r=i(24072),s=i(57283),o=i(43929);class a extends n.A{constructor(e){super(),null!=e&&(this.firstName=(0,r.e)(e.firstName),this.middleName=(0,r.e)(e.middleName),this.lastName=(0,r.e)(e.lastName),this.dateOfBirth=(0,r.e)(e.dateOfBirth),this.licenseNumber=(0,r.e)(e.licenseNumber),this.issuingCountry=(0,r.e)(e.issuingCountry),this.issuingState=(0,r.e)(e.issuingState),this.issueDate=(0,r.e)(e.issueDate),this.expirationDate=(0,r.e)(e.expirationDate),this.issuingAuthority=(0,r.e)(e.issuingAuthority),this.licenseClass=(0,r.e)(e.licenseClass))}decrypt(e,t="No Cipher Context"){return this.decryptObj(this,new o.c,["firstName","middleName","lastName","dateOfBirth","licenseNumber","issuingCountry","issuingState","issueDate","expirationDate","issuingAuthority","licenseClass"],e,"DomainType: DriversLicense; "+t)}toDriversLicenseData(){const e=new s.B;return this.buildDataModel(this,e,{firstName:null,middleName:null,lastName:null,dateOfBirth:null,licenseNumber:null,issuingCountry:null,issuingState:null,issueDate:null,expirationDate:null,issuingAuthority:null,licenseClass:null}),e}static fromJSON(e){if(null==e)return;const t=new a;return t.firstName=(0,r.u)(e.firstName),t.middleName=(0,r.u)(e.middleName),t.lastName=(0,r.u)(e.lastName),t.dateOfBirth=(0,r.u)(e.dateOfBirth),t.licenseNumber=(0,r.u)(e.licenseNumber),t.issuingCountry=(0,r.u)(e.issuingCountry),t.issuingState=(0,r.u)(e.issuingState),t.issueDate=(0,r.u)(e.issueDate),t.expirationDate=(0,r.u)(e.expirationDate),t.issuingAuthority=(0,r.u)(e.issuingAuthority),t.licenseClass=(0,r.u)(e.licenseClass),t}toSdkDriversLicense(){var e,t,i,n,r,s,o,a,l,c,d;return{firstName:null===(e=this.firstName)||void 0===e?void 0:e.toSdk(),middleName:null===(t=this.middleName)||void 0===t?void 0:t.toSdk(),lastName:null===(i=this.lastName)||void 0===i?void 0:i.toSdk(),dateOfBirth:null===(n=this.dateOfBirth)||void 0===n?void 0:n.toSdk(),licenseNumber:null===(r=this.licenseNumber)||void 0===r?void 0:r.toSdk(),issuingCountry:null===(s=this.issuingCountry)||void 0===s?void 0:s.toSdk(),issuingState:null===(o=this.issuingState)||void 0===o?void 0:o.toSdk(),issueDate:null===(a=this.issueDate)||void 0===a?void 0:a.toSdk(),expirationDate:null===(l=this.expirationDate)||void 0===l?void 0:l.toSdk(),issuingAuthority:null===(c=this.issuingAuthority)||void 0===c?void 0:c.toSdk(),licenseClass:null===(d=this.licenseClass)||void 0===d?void 0:d.toSdk()}}static fromSdkDriversLicense(e){if(!e)return;const t=new a;return t.firstName=(0,r.u)(e.firstName),t.middleName=(0,r.u)(e.middleName),t.lastName=(0,r.u)(e.lastName),t.dateOfBirth=(0,r.u)(e.dateOfBirth),t.licenseNumber=(0,r.u)(e.licenseNumber),t.issuingCountry=(0,r.u)(e.issuingCountry),t.issuingState=(0,r.u)(e.issuingState),t.issueDate=(0,r.u)(e.issueDate),t.expirationDate=(0,r.u)(e.expirationDate),t.issuingAuthority=(0,r.u)(e.issuingAuthority),t.licenseClass=(0,r.u)(e.licenseClass),t}}},84454(e,t,i){"use strict";i.d(t,{U:()=>c});var n=i(39306),r=i(17989),s=i(24072),o=i(47505),a=i(65918),l=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class c extends r.A{constructor(e){super(),null!=e?(this.credentialId=new n.k(e.credentialId),this.keyType=new n.k(e.keyType),this.keyAlgorithm=new n.k(e.keyAlgorithm),this.keyCurve=new n.k(e.keyCurve),this.keyValue=new n.k(e.keyValue),this.rpId=new n.k(e.rpId),this.counter=new n.k(e.counter),this.discoverable=new n.k(e.discoverable),this.userHandle=(0,s.e)(e.userHandle),this.userName=(0,s.e)(e.userName),this.rpName=(0,s.e)(e.rpName),this.userDisplayName=(0,s.e)(e.userDisplayName),this.creationDate=new Date(e.creationDate)):this.creationDate=new Date}decrypt(e){return l(this,void 0,void 0,function*(){const t=yield this.decryptObj(this,new a.X,["credentialId","keyType","keyAlgorithm","keyCurve","keyValue","rpId","userHandle","userName","rpName","userDisplayName"],e),{counter:i}=yield this.decryptObj(this,{counter:""},["counter"],e);t.counter=parseInt(i);const{discoverable:n}=yield this.decryptObj(this,{discoverable:""},["discoverable"],e);return t.discoverable="true"===n,t.creationDate=this.creationDate,t})}toFido2CredentialData(){const e=new o.w;return e.creationDate=this.creationDate.toISOString(),this.buildDataModel(this,e,{credentialId:null,keyType:null,keyAlgorithm:null,keyCurve:null,keyValue:null,rpId:null,userHandle:null,userName:null,counter:null,rpName:null,userDisplayName:null,discoverable:null}),e}static fromJSON(e){if(null==e)return;const t=new c;return t.credentialId=n.k.fromJSON(e.credentialId),t.keyType=n.k.fromJSON(e.keyType),t.keyAlgorithm=n.k.fromJSON(e.keyAlgorithm),t.keyCurve=n.k.fromJSON(e.keyCurve),t.keyValue=n.k.fromJSON(e.keyValue),t.rpId=n.k.fromJSON(e.rpId),t.userHandle=(0,s.u)(e.userHandle),t.userName=(0,s.u)(e.userName),t.counter=n.k.fromJSON(e.counter),t.rpName=(0,s.u)(e.rpName),t.userDisplayName=(0,s.u)(e.userDisplayName),t.discoverable=n.k.fromJSON(e.discoverable),t.creationDate=new Date(e.creationDate),t}toSdkFido2Credential(){var e,t,i,n,r,s;return{credentialId:null===(e=this.credentialId)||void 0===e?void 0:e.toSdk(),keyType:this.keyType.toSdk(),keyAlgorithm:this.keyAlgorithm.toSdk(),keyCurve:this.keyCurve.toSdk(),keyValue:this.keyValue.toSdk(),rpId:this.rpId.toSdk(),userHandle:null===(t=this.userHandle)||void 0===t?void 0:t.toSdk(),userName:null===(i=this.userName)||void 0===i?void 0:i.toSdk(),counter:this.counter.toSdk(),rpName:null===(n=this.rpName)||void 0===n?void 0:n.toSdk(),userDisplayName:null===(r=this.userDisplayName)||void 0===r?void 0:r.toSdk(),discoverable:null===(s=this.discoverable)||void 0===s?void 0:s.toSdk(),creationDate:this.creationDate.toISOString()}}static fromSdkFido2Credential(e){if(null==e)return;const t=new c;return t.credentialId=n.k.fromJSON(e.credentialId),t.keyType=n.k.fromJSON(e.keyType),t.keyAlgorithm=n.k.fromJSON(e.keyAlgorithm),t.keyCurve=n.k.fromJSON(e.keyCurve),t.keyValue=n.k.fromJSON(e.keyValue),t.rpId=n.k.fromJSON(e.rpId),t.counter=n.k.fromJSON(e.counter),t.userHandle=(0,s.u)(e.userHandle),t.userName=(0,s.u)(e.userName),t.rpName=(0,s.u)(e.rpName),t.userDisplayName=(0,s.u)(e.userDisplayName),t.discoverable=n.k.fromJSON(e.discoverable),t.creationDate=new Date(e.creationDate),t}}},77720(e,t,i){"use strict";i.d(t,{D:()=>l});var n=i(17989),r=i(81356),s=i(24072),o=i(91304),a=i(11766);class l extends n.A{constructor(e){var t;super(),this.type=r.PU.Text,null!=e&&(this.type=e.type,this.linkedId=null!==(t=e.linkedId)&&void 0!==t?t:void 0,this.name=(0,s.e)(e.name),this.value=(0,s.e)(e.value))}decrypt(e){return this.decryptObj(this,new a.g(this),["name","value"],e)}toFieldData(){const e=new o.N;return this.buildDataModel(this,e,{name:null,value:null,type:null,linkedId:null},["type","linkedId"]),e}static fromJSON(e){var t,i;if(null==e)return;const n=new l;return n.type=null!==(t=e.type)&&void 0!==t?t:r.PU.Text,n.linkedId=null!==(i=e.linkedId)&&void 0!==i?i:void 0,n.name=(0,s.u)(e.name),n.value=(0,s.u)(e.value),n}toSdkField(){var e,t;return{name:null===(e=this.name)||void 0===e?void 0:e.toSdk(),value:null===(t=this.value)||void 0===t?void 0:t.toSdk(),type:(0,r.D1)(this.type),linkedId:(0,r.NI)(this.linkedId)}}static fromSdkField(e){if(null==e)return;const t=new l;return t.name=(0,s.u)(e.name),t.value=(0,s.u)(e.value),t.type=e.type,t.linkedId=e.linkedId,t}}},84274(e,t,i){"use strict";i.d(t,{v:()=>a});var n=i(39306),r=i(17989),s=i(78078),o=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class a extends r.A{constructor(e){super(),this.id="",this.name=new n.k(""),this.revisionDate=new Date,null!=e&&(this.id=e.id,this.name=new n.k(e.name),this.revisionDate=new Date(e.revisionDate))}decrypt(e){return this.decryptObj(this,new s.u(this),["name"],e)}decryptWithKey(e,t){return o(this,void 0,void 0,function*(){const i=new s.u;i.id=this.id,i.revisionDate=this.revisionDate;try{i.name=yield t.decryptString(this.name,e)}catch(n){throw console.error("[Folder] Error decrypting folder",n),n}return i})}static fromJSON(e){if(null==e)return null;const t=new a;return t.id=e.id,t.name=n.k.fromJSON(e.name),t.revisionDate=new Date(e.revisionDate),t}}},32072(e,t,i){"use strict";i.d(t,{l:()=>a});var n=i(17989),r=i(24072),s=i(82696),o=i(67036);class a extends n.A{constructor(e){super(),null!=e&&(this.title=(0,r.e)(e.title),this.firstName=(0,r.e)(e.firstName),this.middleName=(0,r.e)(e.middleName),this.lastName=(0,r.e)(e.lastName),this.address1=(0,r.e)(e.address1),this.address2=(0,r.e)(e.address2),this.address3=(0,r.e)(e.address3),this.city=(0,r.e)(e.city),this.state=(0,r.e)(e.state),this.postalCode=(0,r.e)(e.postalCode),this.country=(0,r.e)(e.country),this.company=(0,r.e)(e.company),this.email=(0,r.e)(e.email),this.phone=(0,r.e)(e.phone),this.ssn=(0,r.e)(e.ssn),this.username=(0,r.e)(e.username),this.passportNumber=(0,r.e)(e.passportNumber),this.licenseNumber=(0,r.e)(e.licenseNumber))}decrypt(e,t="No Cipher Context"){return this.decryptObj(this,new o.O,["title","firstName","middleName","lastName","address1","address2","address3","city","state","postalCode","country","company","email","phone","ssn","username","passportNumber","licenseNumber"],e,"DomainType: Identity; "+t)}toIdentityData(){const e=new s.j;return this.buildDataModel(this,e,{title:null,firstName:null,middleName:null,lastName:null,address1:null,address2:null,address3:null,city:null,state:null,postalCode:null,country:null,company:null,email:null,phone:null,ssn:null,username:null,passportNumber:null,licenseNumber:null}),e}static fromJSON(e){if(null==e)return;const t=new a;return t.title=(0,r.u)(e.title),t.firstName=(0,r.u)(e.firstName),t.middleName=(0,r.u)(e.middleName),t.lastName=(0,r.u)(e.lastName),t.address1=(0,r.u)(e.address1),t.address2=(0,r.u)(e.address2),t.address3=(0,r.u)(e.address3),t.city=(0,r.u)(e.city),t.state=(0,r.u)(e.state),t.postalCode=(0,r.u)(e.postalCode),t.country=(0,r.u)(e.country),t.company=(0,r.u)(e.company),t.email=(0,r.u)(e.email),t.phone=(0,r.u)(e.phone),t.ssn=(0,r.u)(e.ssn),t.username=(0,r.u)(e.username),t.passportNumber=(0,r.u)(e.passportNumber),t.licenseNumber=(0,r.u)(e.licenseNumber),t}toSdkIdentity(){var e,t,i,n,r,s,o,a,l,c,d,u,h,A,p,g,v,m;return{title:null===(e=this.title)||void 0===e?void 0:e.toSdk(),firstName:null===(t=this.firstName)||void 0===t?void 0:t.toSdk(),middleName:null===(i=this.middleName)||void 0===i?void 0:i.toSdk(),lastName:null===(n=this.lastName)||void 0===n?void 0:n.toSdk(),address1:null===(r=this.address1)||void 0===r?void 0:r.toSdk(),address2:null===(s=this.address2)||void 0===s?void 0:s.toSdk(),address3:null===(o=this.address3)||void 0===o?void 0:o.toSdk(),city:null===(a=this.city)||void 0===a?void 0:a.toSdk(),state:null===(l=this.state)||void 0===l?void 0:l.toSdk(),postalCode:null===(c=this.postalCode)||void 0===c?void 0:c.toSdk(),country:null===(d=this.country)||void 0===d?void 0:d.toSdk(),company:null===(u=this.company)||void 0===u?void 0:u.toSdk(),email:null===(h=this.email)||void 0===h?void 0:h.toSdk(),phone:null===(A=this.phone)||void 0===A?void 0:A.toSdk(),ssn:null===(p=this.ssn)||void 0===p?void 0:p.toSdk(),username:null===(g=this.username)||void 0===g?void 0:g.toSdk(),passportNumber:null===(v=this.passportNumber)||void 0===v?void 0:v.toSdk(),licenseNumber:null===(m=this.licenseNumber)||void 0===m?void 0:m.toSdk()}}static fromSdkIdentity(e){if(null==e)return;const t=new a;return t.title=(0,r.u)(e.title),t.firstName=(0,r.u)(e.firstName),t.middleName=(0,r.u)(e.middleName),t.lastName=(0,r.u)(e.lastName),t.address1=(0,r.u)(e.address1),t.address2=(0,r.u)(e.address2),t.address3=(0,r.u)(e.address3),t.city=(0,r.u)(e.city),t.state=(0,r.u)(e.state),t.postalCode=(0,r.u)(e.postalCode),t.country=(0,r.u)(e.country),t.company=(0,r.u)(e.company),t.email=(0,r.u)(e.email),t.phone=(0,r.u)(e.phone),t.ssn=(0,r.u)(e.ssn),t.username=(0,r.u)(e.username),t.passportNumber=(0,r.u)(e.passportNumber),t.licenseNumber=(0,r.u)(e.licenseNumber),t}}},73386(e,t,i){"use strict";i.d(t,{m:()=>d});var n=i(59777),r=i(78781),s=i(17989),o=i(24072),a=i(76506),l=i(16671),c=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class d extends s.A{constructor(e){var t;super(),null!=e&&(this.uri=(0,o.e)(e.uri),this.uriChecksum=(0,o.e)(e.uriChecksum),this.match=null!==(t=e.match)&&void 0!==t?t:void 0)}decrypt(e,t="No Cipher Context"){return this.decryptObj(this,new l.z(this),["uri"],e,t)}validateChecksum(e,t){return c(this,void 0,void 0,function*(){if(null==this.uriChecksum)return!1;const i=r.A.getContainerService().getEncryptService(),n=yield i.hash(e,"sha256");return(yield i.decryptString(this.uriChecksum,t))===n})}toLoginUriData(){const e=new a.S;return this.buildDataModel(this,e,{uri:null,uriChecksum:null,match:null},["match"]),e}static fromJSON(e){var t;if(null==e)return;const i=new d;return i.uri=(0,o.u)(e.uri),i.match=null!==(t=e.match)&&void 0!==t?t:void 0,i.uriChecksum=(0,o.u)(e.uriChecksum),i}toSdkLoginUri(){var e,t;return{uri:null===(e=this.uri)||void 0===e?void 0:e.toSdk(),uriChecksum:null===(t=this.uriChecksum)||void 0===t?void 0:t.toSdk(),match:(0,n.D)(this.match)}}static fromSdkLoginUri(e){if(null==e)return;const t=new d;return t.uri=(0,o.u)(e.uri),t.uriChecksum=(0,o.u)(e.uriChecksum),t.match=e.match,t}}},21925(e,t,i){"use strict";i.d(t,{a:()=>d});var n=i(17989),r=i(24072),s=i(22203),o=i(14093),a=i(84454),l=i(73386),c=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class d extends n.A{constructor(e){super(),null!=e&&(this.passwordRevisionDate=null!=e.passwordRevisionDate?new Date(e.passwordRevisionDate):void 0,this.autofillOnPageLoad=e.autofillOnPageLoad,this.username=(0,r.e)(e.username),this.password=(0,r.e)(e.password),this.totp=(0,r.e)(e.totp),e.uris&&(this.uris=e.uris.map(e=>new l.m(e))),e.fido2Credentials&&(this.fido2Credentials=e.fido2Credentials.map(e=>new a.U(e))))}decrypt(e,t){return c(this,arguments,void 0,function*(e,t,i="No Cipher Context"){const n=yield this.decryptObj(this,new o.r(this),["username","password","totp"],t,`DomainType: Login; ${i}`);if(null!=this.uris){n.uris=[];for(let r=0;r<this.uris.length;r++){if(null==this.uris[r].uri)continue;const s=yield this.uris[r].decrypt(t,i),o=s.uri;if(null==o)continue;(e||(yield this.uris[r].validateChecksum(o,t)))&&n.uris.push(s)}}return null!=this.fido2Credentials&&(n.fido2Credentials=yield Promise.all(this.fido2Credentials.map(e=>e.decrypt(t)))),n})}toLoginData(){const e=new s.k;return null!=this.passwordRevisionDate&&(e.passwordRevisionDate=this.passwordRevisionDate.toISOString()),null!=this.autofillOnPageLoad&&(e.autofillOnPageLoad=this.autofillOnPageLoad),this.buildDataModel(this,e,{username:null,password:null,totp:null}),null!=this.uris&&this.uris.length>0&&(e.uris=this.uris.map(e=>e.toLoginUriData())),null!=this.fido2Credentials&&this.fido2Credentials.length>0&&(e.fido2Credentials=this.fido2Credentials.map(e=>e.toFido2CredentialData())),e}static fromJSON(e){var t,i,n;if(null==e)return;const s=new d;return s.passwordRevisionDate=null!=e.passwordRevisionDate?new Date(e.passwordRevisionDate):void 0,s.autofillOnPageLoad=e.autofillOnPageLoad,s.username=(0,r.u)(e.username),s.password=(0,r.u)(e.password),s.totp=(0,r.u)(e.totp),s.uris=null===(t=e.uris)||void 0===t?void 0:t.map(e=>l.m.fromJSON(e)).filter(e=>null!=e),s.fido2Credentials=null!==(n=null===(i=e.fido2Credentials)||void 0===i?void 0:i.map(e=>a.U.fromJSON(e)).filter(e=>null!=e))&&void 0!==n?n:void 0,s}toSdkLogin(){var e,t,i,n,r,s,o;return{uris:null===(e=this.uris)||void 0===e?void 0:e.map(e=>e.toSdkLoginUri()),username:null===(t=this.username)||void 0===t?void 0:t.toSdk(),password:null===(i=this.password)||void 0===i?void 0:i.toSdk(),passwordRevisionDate:null===(n=this.passwordRevisionDate)||void 0===n?void 0:n.toISOString(),totp:null===(r=this.totp)||void 0===r?void 0:r.toSdk(),autofillOnPageLoad:null!==(s=this.autofillOnPageLoad)&&void 0!==s?s:void 0,fido2Credentials:null===(o=this.fido2Credentials)||void 0===o?void 0:o.map(e=>e.toSdkFido2Credential())}}static fromSdkLogin(e){var t,i,n,s;if(!e)return;const o=new d;return o.passwordRevisionDate=null!=e.passwordRevisionDate?new Date(e.passwordRevisionDate):void 0,o.autofillOnPageLoad=e.autofillOnPageLoad,o.username=(0,r.u)(e.username),o.password=(0,r.u)(e.password),o.totp=(0,r.u)(e.totp),o.uris=null!==(i=null===(t=e.uris)||void 0===t?void 0:t.filter(e=>null!=e.uri).map(e=>l.m.fromSdkLoginUri(e)).filter(e=>null!=e))&&void 0!==i?i:void 0,o.fido2Credentials=null!==(s=null===(n=e.fido2Credentials)||void 0===n?void 0:n.map(e=>a.U.fromSdkFido2Credential(e)).filter(e=>null!=e))&&void 0!==s?s:void 0,o}}},47268(e,t,i){"use strict";i.d(t,{t:()=>a});var n=i(17989),r=i(24072),s=i(75404),o=i(75252);class a extends n.A{constructor(e){super(),null!=e&&(this.surname=(0,r.e)(e.surname),this.givenName=(0,r.e)(e.givenName),this.dateOfBirth=(0,r.e)(e.dateOfBirth),this.sex=(0,r.e)(e.sex),this.birthPlace=(0,r.e)(e.birthPlace),this.nationality=(0,r.e)(e.nationality),this.issuingCountry=(0,r.e)(e.issuingCountry),this.passportNumber=(0,r.e)(e.passportNumber),this.passportType=(0,r.e)(e.passportType),this.nationalIdentificationNumber=(0,r.e)(e.nationalIdentificationNumber),this.issuingAuthority=(0,r.e)(e.issuingAuthority),this.issueDate=(0,r.e)(e.issueDate),this.expirationDate=(0,r.e)(e.expirationDate))}decrypt(e,t="No Cipher Context"){return this.decryptObj(this,new o.U,["surname","givenName","dateOfBirth","sex","birthPlace","nationality","issuingCountry","passportNumber","passportType","nationalIdentificationNumber","issuingAuthority","issueDate","expirationDate"],e,"DomainType: Passport; "+t)}toPassportData(){const e=new s.Z;return this.buildDataModel(this,e,{surname:null,givenName:null,dateOfBirth:null,sex:null,birthPlace:null,nationality:null,issuingCountry:null,passportNumber:null,passportType:null,nationalIdentificationNumber:null,issuingAuthority:null,issueDate:null,expirationDate:null}),e}static fromJSON(e){if(null==e)return;const t=new a;return t.surname=(0,r.u)(e.surname),t.givenName=(0,r.u)(e.givenName),t.dateOfBirth=(0,r.u)(e.dateOfBirth),t.sex=(0,r.u)(e.sex),t.birthPlace=(0,r.u)(e.birthPlace),t.nationality=(0,r.u)(e.nationality),t.issuingCountry=(0,r.u)(e.issuingCountry),t.passportNumber=(0,r.u)(e.passportNumber),t.passportType=(0,r.u)(e.passportType),t.nationalIdentificationNumber=(0,r.u)(e.nationalIdentificationNumber),t.issuingAuthority=(0,r.u)(e.issuingAuthority),t.issueDate=(0,r.u)(e.issueDate),t.expirationDate=(0,r.u)(e.expirationDate),t}toSdkPassport(){var e,t,i,n,r,s,o,a,l,c,d,u,h;return{surname:null===(e=this.surname)||void 0===e?void 0:e.toSdk(),givenName:null===(t=this.givenName)||void 0===t?void 0:t.toSdk(),dateOfBirth:null===(i=this.dateOfBirth)||void 0===i?void 0:i.toSdk(),sex:null===(n=this.sex)||void 0===n?void 0:n.toSdk(),birthPlace:null===(r=this.birthPlace)||void 0===r?void 0:r.toSdk(),nationality:null===(s=this.nationality)||void 0===s?void 0:s.toSdk(),issuingCountry:null===(o=this.issuingCountry)||void 0===o?void 0:o.toSdk(),passportNumber:null===(a=this.passportNumber)||void 0===a?void 0:a.toSdk(),passportType:null===(l=this.passportType)||void 0===l?void 0:l.toSdk(),nationalIdentificationNumber:null===(c=this.nationalIdentificationNumber)||void 0===c?void 0:c.toSdk(),issuingAuthority:null===(d=this.issuingAuthority)||void 0===d?void 0:d.toSdk(),issueDate:null===(u=this.issueDate)||void 0===u?void 0:u.toSdk(),expirationDate:null===(h=this.expirationDate)||void 0===h?void 0:h.toSdk()}}static fromSdkPassport(e){if(!e)return;const t=new a;return t.surname=(0,r.u)(e.surname),t.givenName=(0,r.u)(e.givenName),t.dateOfBirth=(0,r.u)(e.dateOfBirth),t.sex=(0,r.u)(e.sex),t.birthPlace=(0,r.u)(e.birthPlace),t.nationality=(0,r.u)(e.nationality),t.issuingCountry=(0,r.u)(e.issuingCountry),t.passportNumber=(0,r.u)(e.passportNumber),t.passportType=(0,r.u)(e.passportType),t.nationalIdentificationNumber=(0,r.u)(e.nationalIdentificationNumber),t.issuingAuthority=(0,r.u)(e.issuingAuthority),t.issueDate=(0,r.u)(e.issueDate),t.expirationDate=(0,r.u)(e.expirationDate),t}}},50751(e,t,i){"use strict";i.d(t,{_:()=>a});var n=i(39306),r=i(17989),s=i(11314),o=i(12022);class a extends r.A{constructor(e){super(),null!=e&&(this.password=new n.k(e.password),this.lastUsedDate=new Date(e.lastUsedDate))}decrypt(e){return this.decryptObj(this,new o.j(this),["password"],e,"DomainType: PasswordHistory")}toPasswordHistoryData(){const e=new s.k;return e.lastUsedDate=this.lastUsedDate.toISOString(),this.buildDataModel(this,e,{password:null}),e}static fromJSON(e){if(null==e)return;const t=new a;return t.password=n.k.fromJSON(e.password),t.lastUsedDate=new Date(e.lastUsedDate),t}toSdkPasswordHistory(){return{password:this.password.toSdk(),lastUsedDate:this.lastUsedDate.toISOString()}}static fromSdkPasswordHistory(e){if(!e)return;const t=new a;return t.password=n.k.fromJSON(e.password),t.lastUsedDate=new Date(e.lastUsedDate),t}}},47328(e,t,i){"use strict";i.d(t,{S:()=>l});var n=i(17989),r=i(81356),s=i(27280),o=i(86346),a=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class l extends n.A{constructor(e){super(),this.type=r.ak.Generic,null!=e&&(this.type=e.type)}decrypt(){return a(this,void 0,void 0,function*(){return new o.Z(this)})}toSecureNoteData(){const e=new s.e;return e.type=this.type,e}static fromJSON(e){if(null==e)return;const t=new l;return t.type=e.type,t}toSdkSecureNote(){return{type:(0,r.aw)(this.type)}}static fromSdkSecureNote(e){if(null==e)return;const t=new l;return t.type=e.type,t}}},67756(e,t,i){"use strict";i.d(t,{M:()=>a});var n=i(39306),r=i(17989),s=i(96540),o=i(72142);class a extends r.A{constructor(e){super(),null!=e&&(this.privateKey=new n.k(e.privateKey),this.publicKey=new n.k(e.publicKey),this.keyFingerprint=new n.k(e.keyFingerprint))}decrypt(e,t="No Cipher Context"){return this.decryptObj(this,new o.H,["privateKey","publicKey","keyFingerprint"],e,"DomainType: SshKey; "+t)}toSshKeyData(){const e=new s.E;return this.buildDataModel(this,e,{privateKey:null,publicKey:null,keyFingerprint:null}),e}static fromJSON(e){if(null==e)return;const t=new a;return t.privateKey=n.k.fromJSON(e.privateKey),t.publicKey=n.k.fromJSON(e.publicKey),t.keyFingerprint=n.k.fromJSON(e.keyFingerprint),t}toSdkSshKey(){return{privateKey:this.privateKey.toSdk(),publicKey:this.publicKey.toSdk(),fingerprint:this.keyFingerprint.toSdk()}}static fromSdkSshKey(e){if(null==e)return;const t=new a;return t.privateKey=n.k.fromJSON(e.privateKey),t.publicKey=n.k.fromJSON(e.publicKey),t.keyFingerprint=n.k.fromJSON(e.fingerprint),t}}},84175(e,t,i){"use strict";i.d(t,{n:()=>n});class n{constructor(e,t,i,n){this.children=[],this.parent=t,this.node=e,i&&(this.node.name=i),n&&(this.node.id=n)}}},45113(e,t,i){"use strict";i.d(t,{P:()=>v});var n=i(7919),r=i(53136),s=i(61782),o=i(65635),a=i(36304),l=i(61182),c=i(39326),d=i(26076),u=i(36107),h=i(89010),A=i(10070),p=i(36890);class g{}class v{constructor({cipher:e,encryptedFor:t}){var i,v,m;switch(this.type=e.type,this.encryptedFor=t,this.folderId=e.folderId,this.organizationId=e.organizationId,this.name=e.name?e.name.encryptedString:null,this.notes=e.notes?e.notes.encryptedString:null,this.favorite=e.favorite,this.lastKnownRevisionDate=e.revisionDate,this.archivedDate=e.archivedDate,this.reprompt=e.reprompt,this.key=null===(i=e.key)||void 0===i?void 0:i.encryptedString,this.data=e.data,this.type){case n.gC.Login:if(null==e.login)break;this.login=new u.a,this.login.uris=null!==(m=null===(v=e.login.uris)||void 0===v?void 0:v.map(e=>{const t=new d.q;return t.uri=null!=e.uri?e.uri.encryptedString:null,t.match=null!=e.match?e.match:null,t.uriChecksum=null!=e.uriChecksum?e.uriChecksum.encryptedString:null,t}))&&void 0!==m?m:[],this.login.username=e.login.username?e.login.username.encryptedString:null,this.login.password=e.login.password?e.login.password.encryptedString:null,this.login.passwordRevisionDate=null!=e.login.passwordRevisionDate?e.login.passwordRevisionDate.toISOString():null,this.login.totp=e.login.totp?e.login.totp.encryptedString:null,this.login.autofillOnPageLoad=e.login.autofillOnPageLoad,null!=e.login.fido2Credentials&&(this.login.fido2Credentials=e.login.fido2Credentials.map(e=>{const t=new a.K;return t.credentialId=null!=e.credentialId?e.credentialId.encryptedString:null,t.keyType=null!=e.keyType?e.keyType.encryptedString:null,t.keyAlgorithm=null!=e.keyAlgorithm?e.keyAlgorithm.encryptedString:null,t.keyCurve=null!=e.keyCurve?e.keyCurve.encryptedString:null,t.keyValue=null!=e.keyValue?e.keyValue.encryptedString:null,t.rpId=null!=e.rpId?e.rpId.encryptedString:null,t.rpName=null!=e.rpName?e.rpName.encryptedString:null,t.counter=null!=e.counter?e.counter.encryptedString:null,t.userHandle=null!=e.userHandle?e.userHandle.encryptedString:null,t.userName=null!=e.userName?e.userName.encryptedString:null,t.userDisplayName=null!=e.userDisplayName?e.userDisplayName.encryptedString:null,t.discoverable=null!=e.discoverable?e.discoverable.encryptedString:null,t.creationDate=null!=e.creationDate?e.creationDate.toISOString():null,t}));break;case n.gC.SecureNote:if(null==e.secureNote)break;this.secureNote=new A.c,this.secureNote.type=e.secureNote.type;break;case n.gC.SshKey:if(null==e.sshKey)break;this.sshKey=new p.m,this.sshKey.privateKey=null!=e.sshKey.privateKey?e.sshKey.privateKey.encryptedString:null,this.sshKey.publicKey=null!=e.sshKey.publicKey?e.sshKey.publicKey.encryptedString:null,this.sshKey.keyFingerprint=null!=e.sshKey.keyFingerprint?e.sshKey.keyFingerprint.encryptedString:null;break;case n.gC.Card:if(null==e.card)break;this.card=new s.j,this.card.cardholderName=null!=e.card.cardholderName?e.card.cardholderName.encryptedString:null,this.card.brand=null!=e.card.brand?e.card.brand.encryptedString:null,this.card.number=null!=e.card.number?e.card.number.encryptedString:null,this.card.expMonth=null!=e.card.expMonth?e.card.expMonth.encryptedString:null,this.card.expYear=null!=e.card.expYear?e.card.expYear.encryptedString:null,this.card.code=null!=e.card.code?e.card.code.encryptedString:null;break;case n.gC.Identity:if(null==e.identity)break;this.identity=new c.p,this.identity.title=null!=e.identity.title?e.identity.title.encryptedString:null,this.identity.firstName=null!=e.identity.firstName?e.identity.firstName.encryptedString:null,this.identity.middleName=null!=e.identity.middleName?e.identity.middleName.encryptedString:null,this.identity.lastName=null!=e.identity.lastName?e.identity.lastName.encryptedString:null,this.identity.address1=null!=e.identity.address1?e.identity.address1.encryptedString:null,this.identity.address2=null!=e.identity.address2?e.identity.address2.encryptedString:null,this.identity.address3=null!=e.identity.address3?e.identity.address3.encryptedString:null,this.identity.city=null!=e.identity.city?e.identity.city.encryptedString:null,this.identity.state=null!=e.identity.state?e.identity.state.encryptedString:null,this.identity.postalCode=null!=e.identity.postalCode?e.identity.postalCode.encryptedString:null,this.identity.country=null!=e.identity.country?e.identity.country.encryptedString:null,this.identity.company=null!=e.identity.company?e.identity.company.encryptedString:null,this.identity.email=null!=e.identity.email?e.identity.email.encryptedString:null,this.identity.phone=null!=e.identity.phone?e.identity.phone.encryptedString:null,this.identity.ssn=null!=e.identity.ssn?e.identity.ssn.encryptedString:null,this.identity.username=null!=e.identity.username?e.identity.username.encryptedString:null,this.identity.passportNumber=null!=e.identity.passportNumber?e.identity.passportNumber.encryptedString:null,this.identity.licenseNumber=null!=e.identity.licenseNumber?e.identity.licenseNumber.encryptedString:null;break;case n.gC.BankAccount:if(null==e.bankAccount)break;this.bankAccount=new r.M,this.bankAccount.bankName=null!=e.bankAccount.bankName?e.bankAccount.bankName.encryptedString:null,this.bankAccount.nameOnAccount=null!=e.bankAccount.nameOnAccount?e.bankAccount.nameOnAccount.encryptedString:null,this.bankAccount.accountType=null!=e.bankAccount.accountType?e.bankAccount.accountType.encryptedString:null,this.bankAccount.accountNumber=null!=e.bankAccount.accountNumber?e.bankAccount.accountNumber.encryptedString:null,this.bankAccount.routingNumber=null!=e.bankAccount.routingNumber?e.bankAccount.routingNumber.encryptedString:null,this.bankAccount.branchNumber=null!=e.bankAccount.branchNumber?e.bankAccount.branchNumber.encryptedString:null,this.bankAccount.pin=null!=e.bankAccount.pin?e.bankAccount.pin.encryptedString:null,this.bankAccount.swiftCode=null!=e.bankAccount.swiftCode?e.bankAccount.swiftCode.encryptedString:null,this.bankAccount.iban=null!=e.bankAccount.iban?e.bankAccount.iban.encryptedString:null,this.bankAccount.bankContactPhone=null!=e.bankAccount.bankContactPhone?e.bankAccount.bankContactPhone.encryptedString:null;break;case n.gC.DriversLicense:if(null==e.driversLicense)break;this.driversLicense=new o.P,this.driversLicense.firstName=null!=e.driversLicense.firstName?e.driversLicense.firstName.encryptedString:null,this.driversLicense.middleName=null!=e.driversLicense.middleName?e.driversLicense.middleName.encryptedString:null,this.driversLicense.lastName=null!=e.driversLicense.lastName?e.driversLicense.lastName.encryptedString:null,this.driversLicense.dateOfBirth=null!=e.driversLicense.dateOfBirth?e.driversLicense.dateOfBirth.encryptedString:null,this.driversLicense.licenseNumber=null!=e.driversLicense.licenseNumber?e.driversLicense.licenseNumber.encryptedString:null,this.driversLicense.issuingCountry=null!=e.driversLicense.issuingCountry?e.driversLicense.issuingCountry.encryptedString:null,this.driversLicense.issuingState=null!=e.driversLicense.issuingState?e.driversLicense.issuingState.encryptedString:null,this.driversLicense.issueDate=null!=e.driversLicense.issueDate?e.driversLicense.issueDate.encryptedString:null,this.driversLicense.expirationDate=null!=e.driversLicense.expirationDate?e.driversLicense.expirationDate.encryptedString:null,this.driversLicense.issuingAuthority=null!=e.driversLicense.issuingAuthority?e.driversLicense.issuingAuthority.encryptedString:null,this.driversLicense.licenseClass=null!=e.driversLicense.licenseClass?e.driversLicense.licenseClass.encryptedString:null;break;case n.gC.Passport:if(null==e.passport)break;this.passport=new h.j,this.passport.surname=null!=e.passport.surname?e.passport.surname.encryptedString:null,this.passport.givenName=null!=e.passport.givenName?e.passport.givenName.encryptedString:null,this.passport.dateOfBirth=null!=e.passport.dateOfBirth?e.passport.dateOfBirth.encryptedString:null,this.passport.sex=null!=e.passport.sex?e.passport.sex.encryptedString:null,this.passport.birthPlace=null!=e.passport.birthPlace?e.passport.birthPlace.encryptedString:null,this.passport.nationality=null!=e.passport.nationality?e.passport.nationality.encryptedString:null,this.passport.issuingCountry=null!=e.passport.issuingCountry?e.passport.issuingCountry.encryptedString:null,this.passport.passportNumber=null!=e.passport.passportNumber?e.passport.passportNumber.encryptedString:null,this.passport.passportType=null!=e.passport.passportType?e.passport.passportType.encryptedString:null,this.passport.nationalIdentificationNumber=null!=e.passport.nationalIdentificationNumber?e.passport.nationalIdentificationNumber.encryptedString:null,this.passport.issuingAuthority=null!=e.passport.issuingAuthority?e.passport.issuingAuthority.encryptedString:null,this.passport.issueDate=null!=e.passport.issueDate?e.passport.issueDate.encryptedString:null,this.passport.expirationDate=null!=e.passport.expirationDate?e.passport.expirationDate.encryptedString:null}null!=e.fields&&(this.fields=e.fields.map(e=>{const t=new l.d;return t.type=e.type,t.name=e.name?e.name.encryptedString:null,t.value=e.value?e.value.encryptedString:null,t.linkedId=e.linkedId,t})),null!=e.passwordHistory&&(this.passwordHistory=[],e.passwordHistory.forEach(e=>{this.passwordHistory.push({lastUsedDate:e.lastUsedDate,password:e.password?e.password.encryptedString:null})})),null!=e.attachments&&(this.attachments={},this.attachments2={},e.attachments.forEach(t=>{const i=t.fileName?t.fileName.encryptedString:null;this.attachments[t.id]=i;const n=new g;n.fileName=i,n.lastKnownRevisionDate=e.revisionDate,null!=t.key&&(n.key=t.key.encryptedString),this.attachments2[t.id]=n}))}}},52793(e,t,i){"use strict";i.d(t,{O:()=>n});class n{constructor(e){var t;if(null==(null===(t=e.name)||void 0===t?void 0:t.encryptedString))throw new Error("Folder name is required");this.name=e.name.encryptedString}}},74865(e,t,i){"use strict";i.d(t,{l:()=>r});var n=i(20702);class r extends n.r{constructor(e){super(e),this.id=this.getResponseProperty("Id"),this.url=this.getResponseProperty("Url"),this.fileName=this.getResponseProperty("FileName"),this.key=this.getResponseProperty("Key"),this.size=this.getResponseProperty("Size"),this.sizeName=this.getResponseProperty("SizeName")}}},42700(e,t,i){"use strict";i.d(t,{N:()=>m});var n=i(20702),r=i(36501),s=i(53136),o=i(61782),a=i(42234),l=i(65635),c=i(61182),d=i(39326),u=i(36107),h=i(89010),A=i(10070),p=i(36890),g=i(74865);class v extends n.r{constructor(e){super(e),this.password=this.getResponseProperty("Password"),this.lastUsedDate=this.getResponseProperty("LastUsedDate")}}class m extends n.r{constructor(e){super(e),this.id=this.getResponseProperty("Id"),this.organizationId=this.getResponseProperty("OrganizationId"),this.folderId=this.getResponseProperty("FolderId")||null,this.type=this.getResponseProperty("Type"),this.name=this.getResponseProperty("Name"),this.notes=this.getResponseProperty("Notes"),this.favorite=this.getResponseProperty("Favorite")||!1,this.edit=!!this.getResponseProperty("Edit"),null==this.getResponseProperty("ViewPassword")?this.viewPassword=!0:this.viewPassword=this.getResponseProperty("ViewPassword"),this.permissions=new a.a(this.getResponseProperty("Permissions")),this.organizationUseTotp=this.getResponseProperty("OrganizationUseTotp"),this.revisionDate=this.getResponseProperty("RevisionDate"),this.collectionIds=this.getResponseProperty("CollectionIds"),this.creationDate=this.getResponseProperty("CreationDate"),this.deletedDate=this.getResponseProperty("DeletedDate"),this.archivedDate=this.getResponseProperty("ArchivedDate");const t=this.getResponseProperty("Login");null!=t&&(this.login=new u.a(t));const i=this.getResponseProperty("Card");null!=i&&(this.card=new o.j(i));const n=this.getResponseProperty("Identity");null!=n&&(this.identity=new d.p(n));const m=this.getResponseProperty("SecureNote");null!=m&&(this.secureNote=new A.c(m));const f=this.getResponseProperty("sshKey");null!=f&&(this.sshKey=new p.m(f));const y=this.getResponseProperty("BankAccount");null!=y&&(this.bankAccount=new s.M(y));const b=this.getResponseProperty("DriversLicense");null!=b&&(this.driversLicense=new l.P(b));const C=this.getResponseProperty("Passport");null!=C&&(this.passport=new h.j(C));const I=this.getResponseProperty("Fields");null!=I&&(this.fields=I.map(e=>new c.d(e)));const w=this.getResponseProperty("Attachments");null!=w&&(this.attachments=w.map(e=>new g.l(e)));const B=this.getResponseProperty("PasswordHistory");null!=B&&(this.passwordHistory=B.map(e=>new v(e))),this.reprompt=this.getResponseProperty("Reprompt")||r.b.None,this.key=this.getResponseProperty("Key")||null,this.data=this.getResponseProperty("Data")}}},98850(e,t,i){"use strict";i.d(t,{s:()=>r});var n=i(20702);class r extends n.r{constructor(e){super(e),this.id=this.getResponseProperty("Id"),this.name=this.getResponseProperty("Name"),this.revisionDate=this.getResponseProperty("RevisionDate")}}},34461(e,t,i){"use strict";i.d(t,{$:()=>s});var n=i(39306),r=i(43890);class s{constructor(e){e&&(this.id=e.id,this.url=e.url,this.size=e.size,this.sizeName=e.sizeName)}get fileSize(){try{if(null!=this.size)return parseInt(this.size)}catch(e){}return 0}get hasDecryptionError(){return this._hasDecryptionError||this.fileName===n.h}set hasDecryptionError(e){this._hasDecryptionError=e}static fromJSON(e){const t=null==e.key?null:r.e.fromJSON(e.key);let i;return null!=e.encryptedKey&&("string"==typeof e.encryptedKey?i=n.k.fromJSON(e.encryptedKey):e.encryptedKey instanceof n.k&&(i=e.encryptedKey)),Object.assign(new s,e,{key:t,encryptedKey:i})}toSdkAttachmentView(){var e;return{id:this.id,url:this.url,size:this.size,sizeName:this.sizeName,fileName:this.fileName,key:null===(e=this.encryptedKey)||void 0===e?void 0:e.toSdk(),decryptedKey:this.key?this.key.toBase64():void 0}}static fromSdkAttachmentView(e,t=!1){if(!e)return;const i=new s;return i.id=e.id,i.url=e.url,i.size=e.size,i.sizeName=e.sizeName,i.fileName=e.fileName,i.key=e.decryptedKey?r.e.fromString(e.decryptedKey):void 0,i.encryptedKey=e.key?new n.k(e.key):void 0,i._hasDecryptionError=t,i}isLegacyAttachment(){return null==this.key&&null==this.encryptedKey}}},84749(e,t,i){"use strict";i.d(t,{n:()=>r});var n=i(8583);class r extends n.n{get subTitle(){var e;return null!==(e=this.bankName)&&void 0!==e?e:""}static fromJSON(e){return Object.assign(new r,e)}static fromSdkBankAccountView(e){const t=new r;return t.bankName=e.bankName,t.nameOnAccount=e.nameOnAccount,t.accountType=e.accountType,t.accountNumber=e.accountNumber,t.routingNumber=e.routingNumber,t.branchNumber=e.branchNumber,t.pin=e.pin,t.swiftCode=e.swiftCode,t.iban=e.iban,t.bankContactPhone=e.bankContactPhone,t}toSdkBankAccountView(){return this}}},6528(e,t,i){"use strict";i.d(t,{G:()=>c});var n=i(86204),r=i(81356),s=i(69473),o=i(8583),a=function(e,t,i,n){var r,s=arguments.length,o=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,i,o):r(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o},l=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};class c extends o.n{get maskedCode(){return null!=this.code?"•".repeat(this.code.length):void 0}get maskedNumber(){return null!=this.number?"•".repeat(this.number.length):void 0}get brand(){return this._brand}set brand(e){this._brand=e,this._subTitle=void 0}get number(){return this._number}set number(e){this._number=e,this._subTitle=void 0}get subTitle(){if(null==this._subTitle&&(this._subTitle=this.brand,null!=this.number&&this.number.length>=4)){null!=this._subTitle&&""!==this._subTitle?this._subTitle+=", ":this._subTitle="";const e=this.number.length>=5&&null!=this.number.match(new RegExp("^3[47]"))?5:4;this._subTitle+="*"+this.number.substr(this.number.length-e)}return this._subTitle}get expiration(){const e=this.expYear?(0,n.jd)(this.expYear):void 0;if(!this.expMonth&&!e)return;let t=null!=this.expMonth?("0"+this.expMonth).slice(-2):"__";return t+=" / "+(e||"____"),t}static fromJSON(e){return Object.assign(new c,e)}static getCardBrandByPatterns(e){if(null==e||"string"!=typeof e||""===e.trim())return;let t=new RegExp("^4");return null!=e.match(t)?"Visa":/^(5[1-5][0-9]{14}|2(22[1-9][0-9]{12}|2[3-9][0-9]{13}|[3-6][0-9]{14}|7[0-1][0-9]{13}|720[0-9]{12}))$/.test(e)?"Mastercard":(t=new RegExp("^3[47]"),null!=e.match(t)?"Amex":(t=new RegExp("^(6011|622(12[6-9]|1[3-9][0-9]|[2-8][0-9]{2}|9[0-1][0-9]|92[0-5]|64[4-9])|65)"),null!=e.match(t)?"Discover":(t=new RegExp("^36"),null!=e.match(t)?"Diners Club":(t=new RegExp("^30[0-5]"),null!=e.match(t)?"Diners Club":(t=new RegExp("^35(2[89]|[3-8][0-9])"),null!=e.match(t)?"JCB":(t=new RegExp("^(4026|417500|4508|4844|491(3|7))"),null!=e.match(t)?"Visa":void 0))))))}static fromSdkCardView(e){const t=new c;return t.cardholderName=e.cardholderName,t.brand=e.brand,t.number=e.number,t.expMonth=e.expMonth,t.expYear=e.expYear,t.code=e.code,t}toSdkCardView(){return this}}a([(0,s.V)(r.xP.CardholderName,{sortPosition:0}),l("design:type",String)],c.prototype,"cardholderName",void 0),a([(0,s.V)(r.xP.ExpMonth,{sortPosition:3,i18nKey:"expirationMonth"}),l("design:type",String)],c.prototype,"expMonth",void 0),a([(0,s.V)(r.xP.ExpYear,{sortPosition:4,i18nKey:"expirationYear"}),l("design:type",String)],c.prototype,"expYear",void 0),a([(0,s.V)(r.xP.Code,{sortPosition:5,i18nKey:"securityCode"}),l("design:type",String)],c.prototype,"code",void 0),a([(0,s.V)(r.xP.Brand,{sortPosition:2}),l("design:type",String),l("design:paramtypes",[String])],c.prototype,"brand",null),a([(0,s.V)(r.xP.Number,{sortPosition:1}),l("design:type",String),l("design:paramtypes",[String])],c.prototype,"number",null)},75751(e,t,i){"use strict";i.d(t,{f:()=>I});var n=i(39306),r=i(66523),s=i(34693),o=i(81356),a=i(36501),l=i(42234),c=i(38453),d=i(34461),u=i(84749),h=i(6528),A=i(43929),p=i(65918),g=i(11766),v=i(67036),m=i(14093),f=i(75252),y=i(12022),b=i(86346),C=i(72142);class I{constructor(e){var t;this.initializerKey=s.M.CipherView,this.id="",this.name="",this.type=o.gC.Login,this.favorite=!1,this.organizationUseTotp=!1,this.permissions=new l.a,this.edit=!1,this.viewPassword=!0,this.login=new m.r,this.identity=new v.O,this.card=new h.G,this.secureNote=new b.Z,this.sshKey=new C.H,this.bankAccount=new u.n,this.driversLicense=new A.c,this.passport=new f.U,this.attachments=[],this.fields=[],this.passwordHistory=[],this.collectionIds=[],this.reprompt=a.b.None,this.decryptionFailure=!1,e?(this.id=e.id,this.organizationId=e.organizationId,this.folderId=e.folderId,this.favorite=e.favorite,this.organizationUseTotp=e.organizationUseTotp,this.edit=e.edit,this.viewPassword=e.viewPassword,this.permissions=e.permissions,this.type=e.type,this.localData=e.localData,this.collectionIds=e.collectionIds,this.revisionDate=e.revisionDate,this.creationDate=e.creationDate,this.deletedDate=e.deletedDate,this.archivedDate=e.archivedDate,this.reprompt=null!==(t=e.reprompt)&&void 0!==t?t:a.b.None,this.key=e.key):this.creationDate=this.revisionDate=new Date}get item(){switch(this.type){case o.gC.Login:return this.login;case o.gC.SecureNote:return this.secureNote;case o.gC.Card:return this.card;case o.gC.Identity:return this.identity;case o.gC.SshKey:return this.sshKey;case o.gC.BankAccount:return this.bankAccount;case o.gC.DriversLicense:return this.driversLicense;case o.gC.Passport:return this.passport}}get subTitle(){var e;return null===(e=this.item)||void 0===e?void 0:e.subTitle}get canBeArchived(){return!this.isDeleted&&!this.isArchived}get hasPasswordHistory(){return this.passwordHistory&&this.passwordHistory.length>0}get hasLoginPassword(){var e;return this.type===o.gC.Login&&null!=(null===(e=this.login)||void 0===e?void 0:e.password)&&""!==this.login.password}get hasAttachments(){return!!this.attachments&&this.attachments.length>0}get hasOldAttachments(){return!!this.hasAttachments&&this.attachments.some(e=>e.isLegacyAttachment())}get isUserOwnedCipher(){return null==this.organizationId}get hasFields(){return this.fields&&this.fields.length>0}get passwordRevisionDisplayDate(){if(this.type===o.gC.Login&&null!=this.login&&null!=this.login.password&&""!==this.login.password)return this.login.passwordRevisionDate}get isDeleted(){return null!=this.deletedDate}get isArchived(){return null!=this.archivedDate}get linkedFieldOptions(){var e;return null===(e=this.item)||void 0===e?void 0:e.linkedFieldOptions}get isUnassigned(){return null!=this.organizationId&&(null==this.collectionIds||0===this.collectionIds.length)}get canAssignToCollections(){return null==this.organizationId||this.edit&&this.viewPassword}get canLaunch(){return this.type===o.gC.Login&&this.login.canLaunch}linkedFieldValue(e){var t;const i=null===(t=this.linkedFieldOptions)||void 0===t?void 0:t.get(e),n=this.item;if(null!=i&&null!=n)return n[i.propertyKey]}toJSON(){return this}static fromJSON(e){var t,i,r,s,c,p,w,B,E,S,Q,k,R,F,T,D,P,M;if(null==e)return null;const x=new I;if(x.type=null!==(t=e.type)&&void 0!==t?t:o.gC.Login,x.id=null!==(i=e.id)&&void 0!==i?i:"",x.organizationId=null!==(r=e.organizationId)&&void 0!==r?r:void 0,x.folderId=null!==(s=e.folderId)&&void 0!==s?s:void 0,x.collectionIds=null!==(c=e.collectionIds)&&void 0!==c?c:[],x.name=null!==(p=e.name)&&void 0!==p?p:"",x.notes=e.notes,x.edit=null!==(w=e.edit)&&void 0!==w&&w,x.viewPassword=null===(B=e.viewPassword)||void 0===B||B,x.favorite=null!==(E=e.favorite)&&void 0!==E&&E,x.organizationUseTotp=null!==(S=e.organizationUseTotp)&&void 0!==S&&S,x.localData=e.localData?e.localData:void 0,x.permissions=e.permissions?l.a.fromJSON(e.permissions):void 0,x.reprompt=null!==(Q=e.reprompt)&&void 0!==Q?Q:a.b.None,x.decryptionFailure=null!==(k=e.decryptionFailure)&&void 0!==k&&k,e.creationDate&&(x.creationDate=new Date(e.creationDate)),e.revisionDate&&(x.revisionDate=new Date(e.revisionDate)),x.deletedDate=null==e.deletedDate?void 0:new Date(e.deletedDate),x.archivedDate=null==e.archivedDate?void 0:new Date(e.archivedDate),x.attachments=null!==(F=null===(R=e.attachments)||void 0===R?void 0:R.map(e=>d.$.fromJSON(e)))&&void 0!==F?F:[],x.fields=null!==(D=null===(T=e.fields)||void 0===T?void 0:T.map(e=>g.g.fromJSON(e)))&&void 0!==D?D:[],x.passwordHistory=null!==(M=null===(P=e.passwordHistory)||void 0===P?void 0:P.map(e=>y.j.fromJSON(e)))&&void 0!==M?M:[],null!=e.key){let t;"string"==typeof e.key?t=n.k.fromJSON(e.key):e.key instanceof n.k&&(t=e.key),x.key=t}switch(e.type){case o.gC.Card:x.card=h.G.fromJSON(e.card);break;case o.gC.Identity:x.identity=v.O.fromJSON(e.identity);break;case o.gC.Login:x.login=m.r.fromJSON(e.login);break;case o.gC.SecureNote:x.secureNote=b.Z.fromJSON(e.secureNote);break;case o.gC.SshKey:x.sshKey=C.H.fromJSON(e.sshKey);break;case o.gC.BankAccount:x.bankAccount=u.n.fromJSON(e.bankAccount);break;case o.gC.DriversLicense:x.driversLicense=A.c.fromJSON(e.driversLicense);break;case o.gC.Passport:x.passport=f.U.fromJSON(e.passport)}return x}static fromSdkCipherView(e,t){var i,s,w,B,E,S,Q,k,R,F,T,D;if(null==e)return;const P=null!==(s=null===(i=e.attachments)||void 0===i?void 0:i.map(e=>d.$.fromSdkAttachmentView(e)))&&void 0!==s?s:[];(null===(w=e.attachmentDecryptionFailures)||void 0===w?void 0:w.length)&&e.attachmentDecryptionFailures.forEach(e=>{const t=d.$.fromSdkAttachmentView(e,!0);t&&P.push(t)});const M=new I;switch(M.id=(0,r.zw)(e.id),M.organizationId=(0,r.zw)(e.organizationId),M.folderId=(0,r.zw)(e.folderId),M.name=e.name,M.notes=e.notes,M.type=e.type,M.favorite=e.favorite,M.organizationUseTotp=e.organizationUseTotp,M.permissions=e.permissions?l.a.fromSdkCipherPermissions(e.permissions):void 0,M.edit=e.edit,M.viewPassword=e.viewPassword,M.localData=(0,c.e)(e.localData),M.attachments=P,M.fields=null!==(E=null===(B=e.fields)||void 0===B?void 0:B.map(e=>g.g.fromSdkFieldView(e)))&&void 0!==E?E:[],M.passwordHistory=null!==(Q=null===(S=e.passwordHistory)||void 0===S?void 0:S.map(e=>y.j.fromSdkPasswordHistoryView(e)))&&void 0!==Q?Q:[],M.collectionIds=null!==(R=null===(k=e.collectionIds)||void 0===k?void 0:k.map(e=>(0,r.zw)(e)))&&void 0!==R?R:[],M.revisionDate=new Date(e.revisionDate),M.creationDate=new Date(e.creationDate),M.deletedDate=null==e.deletedDate?void 0:new Date(e.deletedDate),M.archivedDate=null==e.archivedDate?void 0:new Date(e.archivedDate),M.reprompt=null!==(F=e.reprompt)&&void 0!==F?F:a.b.None,M.key=e.key?n.k.fromJSON(e.key):void 0,e.type){case o.gC.Card:M.card=e.card?h.G.fromSdkCardView(e.card):new h.G;break;case o.gC.Identity:M.identity=e.identity?v.O.fromSdkIdentityView(e.identity):new v.O;break;case o.gC.Login:if(M.login=e.login?m.r.fromSdkLoginView(e.login):new m.r,t&&(null===(D=null===(T=e.login)||void 0===T?void 0:T.fido2Credentials)||void 0===D?void 0:D.length)){const i=t.decrypt_fido2_credentials(e),n=t.decrypt_fido2_private_key(e);M.login.fido2Credentials=i.map(e=>{const t=p.X.fromSdkFido2CredentialView(e);return t&&(t.keyValue=n),t}).filter(e=>!!e)}break;case o.gC.SecureNote:M.secureNote=e.secureNote?b.Z.fromSdkSecureNoteView(e.secureNote):new b.Z;break;case o.gC.SshKey:M.sshKey=e.sshKey?C.H.fromSdkSshKeyView(e.sshKey):new C.H;break;case o.gC.BankAccount:M.bankAccount=e.bankAccount?u.n.fromSdkBankAccountView(e.bankAccount):new u.n;break;case o.gC.DriversLicense:M.driversLicense=e.driversLicense?A.c.fromSdkDriversLicenseView(e.driversLicense):new A.c;break;case o.gC.Passport:M.passport=e.passport?f.U.fromSdkPassportView(e.passport):new f.U}return M}toSdkCreateCipherRequest(e){var t,i,n,s,l,c;const d={organizationId:this.organizationId?(0,r.WD)(this.organizationId):void 0,collectionIds:this.collectionIds?this.collectionIds.map(e=>(0,r.WD)(e)):[],folderId:this.folderId?(0,r.WD)(this.folderId):void 0,name:null!==(t=this.name)&&void 0!==t?t:"",notes:this.notes,favorite:null!==(i=this.favorite)&&void 0!==i&&i,reprompt:null!==(n=this.reprompt)&&void 0!==n?n:a.b.None,fields:null===(s=this.fields)||void 0===s?void 0:s.map(e=>e.toSdkFieldView()),type:this.getSdkCipherViewType(),archivedDate:null===(l=this.archivedDate)||void 0===l?void 0:l.toISOString()};if(this.type===o.gC.Login&&(null===(c=this.login)||void 0===c?void 0:c.hasFido2Credentials)){const t=this.toSdkCipherView(e);d.type={login:t.login}}return d}toSdkUpdateCipherRequest(e){var t,i,n,s,l,c,d,u,h;const A={id:(0,r.WD)(this.id),organizationId:this.organizationId?(0,r.WD)(this.organizationId):void 0,folderId:this.folderId?(0,r.WD)(this.folderId):void 0,name:null!==(t=this.name)&&void 0!==t?t:"",notes:this.notes,favorite:null!==(i=this.favorite)&&void 0!==i&&i,reprompt:null!==(n=this.reprompt)&&void 0!==n?n:a.b.None,fields:null===(s=this.fields)||void 0===s?void 0:s.map(e=>e.toSdkFieldView()),type:this.getSdkCipherViewType(),revisionDate:null===(l=this.revisionDate)||void 0===l?void 0:l.toISOString(),archivedDate:null===(c=this.archivedDate)||void 0===c?void 0:c.toISOString(),attachments:null===(d=this.attachments)||void 0===d?void 0:d.map(e=>e.toSdkAttachmentView()),key:null===(u=this.key)||void 0===u?void 0:u.toSdk()};if(this.type===o.gC.Login&&(null===(h=this.login)||void 0===h?void 0:h.hasFido2Credentials)){const t=this.toSdkCipherView(e);A.type={login:t.login}}return A}toSdkPartialUpdateCipherRequest(){var e;return{id:(0,r.WD)(this.id),folderId:this.folderId?(0,r.WD)(this.folderId):void 0,favorite:null!==(e=this.favorite)&&void 0!==e&&e}}getSdkCipherViewType(){var e,t,i,n,r,s,a,l;let c;switch(this.type){case o.gC.Card:c={card:null===(e=this.card)||void 0===e?void 0:e.toSdkCardView()};break;case o.gC.Identity:c={identity:null===(t=this.identity)||void 0===t?void 0:t.toSdkIdentityView()};break;case o.gC.Login:c={login:null===(i=this.login)||void 0===i?void 0:i.toSdkLoginView()};break;case o.gC.SecureNote:c={secureNote:null===(n=this.secureNote)||void 0===n?void 0:n.toSdkSecureNoteView()};break;case o.gC.SshKey:c={sshKey:null===(r=this.sshKey)||void 0===r?void 0:r.toSdkSshKeyView()};break;case o.gC.BankAccount:c={bankAccount:null===(s=this.bankAccount)||void 0===s?void 0:s.toSdkBankAccountView()};break;case o.gC.DriversLicense:c={driversLicense:null===(a=this.driversLicense)||void 0===a?void 0:a.toSdkDriversLicenseView()};break;case o.gC.Passport:c={passport:null===(l=this.passport)||void 0===l?void 0:l.toSdkPassportView()};break;default:c={login:(new m.r).toSdkLoginView()}}return c}toSdkCipherView(e){var t,i,n,s,l,d,u,h,A,p,g,v,m,f,y,b,C,I,w,B,E,S,Q,k,R,F,T;let D={id:this.id?(0,r.WD)(this.id):void 0,organizationId:this.organizationId?(0,r.WD)(this.organizationId):void 0,folderId:this.folderId?(0,r.WD)(this.folderId):void 0,name:null!==(t=this.name)&&void 0!==t?t:"",notes:this.notes,type:null!==(i=this.type)&&void 0!==i?i:o.gC.Login,favorite:null!==(n=this.favorite)&&void 0!==n&&n,organizationUseTotp:null!==(s=this.organizationUseTotp)&&void 0!==s&&s,permissions:null===(l=this.permissions)||void 0===l?void 0:l.toSdkCipherPermissions(),edit:null===(d=this.edit)||void 0===d||d,viewPassword:null===(u=this.viewPassword)||void 0===u||u,localData:(0,c.H)(this.localData),attachments:null===(h=this.attachments)||void 0===h?void 0:h.map(e=>e.toSdkAttachmentView()),fields:null===(A=this.fields)||void 0===A?void 0:A.map(e=>e.toSdkFieldView()),passwordHistory:null===(p=this.passwordHistory)||void 0===p?void 0:p.map(e=>e.toSdkPasswordHistoryView()),collectionIds:null!==(v=null===(g=this.collectionIds)||void 0===g?void 0:g.map(e=>(0,r.WD)(e)))&&void 0!==v?v:[],revisionDate:(null!==(m=this.revisionDate)&&void 0!==m?m:new Date).toISOString(),creationDate:(null!==(f=this.creationDate)&&void 0!==f?f:new Date).toISOString(),deletedDate:null===(y=this.deletedDate)||void 0===y?void 0:y.toISOString(),archivedDate:null===(b=this.archivedDate)||void 0===b?void 0:b.toISOString(),reprompt:null!==(C=this.reprompt)&&void 0!==C?C:a.b.None,key:null===(I=this.key)||void 0===I?void 0:I.toSdk(),login:void 0,card:void 0,identity:void 0,secureNote:void 0,sshKey:void 0,bankAccount:void 0,driversLicense:void 0,passport:void 0};switch(this.type){case o.gC.Card:D.card=null===(w=this.card)||void 0===w?void 0:w.toSdkCardView();break;case o.gC.Identity:D.identity=null===(B=this.identity)||void 0===B?void 0:B.toSdkIdentityView();break;case o.gC.Login:D.login=null===(E=this.login)||void 0===E?void 0:E.toSdkLoginView();break;case o.gC.SecureNote:D.secureNote=null===(S=this.secureNote)||void 0===S?void 0:S.toSdkSecureNoteView();break;case o.gC.SshKey:D.sshKey=null===(Q=this.sshKey)||void 0===Q?void 0:Q.toSdkSshKeyView();break;case o.gC.BankAccount:D.bankAccount=null===(k=this.bankAccount)||void 0===k?void 0:k.toSdkBankAccountView();break;case o.gC.DriversLicense:D.driversLicense=null===(R=this.driversLicense)||void 0===R?void 0:R.toSdkDriversLicenseView();break;case o.gC.Passport:D.passport=null===(F=this.passport)||void 0===F?void 0:F.toSdkPassportView()}if(e&&this.type===o.gC.Login&&(null===(T=this.login)||void 0===T?void 0:T.hasFido2Credentials)){const t=this.login.fido2Credentials.map(e=>e.toSdkFido2CredentialFullView());D=e.set_fido2_credentials(D,t)}return D}}},43929(e,t,i){"use strict";i.d(t,{c:()=>r});var n=i(8583);class r extends n.n{get subTitle(){const e=[this.firstName,this.lastName].filter(Boolean).join(" "),t=this.issuingState;return e&&t?`${e}, ${t}`:e||(null!=t?t:"")}static fromJSON(e){return Object.assign(new r,e)}static fromSdkDriversLicenseView(e){const t=new r;return t.firstName=e.firstName,t.middleName=e.middleName,t.lastName=e.lastName,t.dateOfBirth=e.dateOfBirth,t.licenseNumber=e.licenseNumber,t.issuingCountry=e.issuingCountry,t.issuingState=e.issuingState,t.issueDate=e.issueDate,t.expirationDate=e.expirationDate,t.issuingAuthority=e.issuingAuthority,t.licenseClass=e.licenseClass,t}toSdkDriversLicenseView(){return this}}},65918(e,t,i){"use strict";i.d(t,{X:()=>r});var n=i(8583);class r extends n.n{constructor(e){var t;super(),this.discoverable=!1,null!=e&&(this.credentialId=e.credentialId,this.keyType=e.keyType,this.keyAlgorithm=e.keyAlgorithm,this.keyCurve=e.keyCurve,this.keyValue=e.keyValue,this.rpId=e.rpId,this.userHandle=e.userHandle,this.userName=e.userName,this.counter=e.counter,this.rpName=e.rpName,this.userDisplayName=e.userDisplayName,this.discoverable=null!==(t=e.discoverable)&&void 0!==t&&t,this.creationDate=e.creationDate)}get subTitle(){return this.userDisplayName}static fromJSON(e){const t=null!=e.creationDate?new Date(e.creationDate):null;return Object.assign(new r,e,{creationDate:t})}static fromSdkFido2CredentialView(e){var t;if(e)return new r({credentialId:e.credentialId,keyType:e.keyType,keyAlgorithm:e.keyAlgorithm,keyCurve:e.keyCurve,keyValue:e.keyValue,rpId:e.rpId,userHandle:e.userHandle,userName:e.userName,counter:parseInt(e.counter),rpName:e.rpName,userDisplayName:e.userDisplayName,discoverable:"true"===(null===(t=e.discoverable)||void 0===t?void 0:t.toLowerCase()),creationDate:new Date(e.creationDate)})}toSdkFido2CredentialFullView(){var e;return{credentialId:this.credentialId,keyType:this.keyType,keyAlgorithm:this.keyAlgorithm,keyCurve:this.keyCurve,keyValue:this.keyValue,rpId:this.rpId,userHandle:this.userHandle,userName:this.userName,counter:this.counter.toString(),rpName:this.rpName,userDisplayName:this.userDisplayName,discoverable:this.discoverable?"true":"false",creationDate:null===(e=this.creationDate)||void 0===e?void 0:e.toISOString()}}}},11766(e,t,i){"use strict";i.d(t,{g:()=>s});var n=i(6632),r=i(81356);class s{constructor(e){this.type=r.PU.Text,this.newField=!1,this.showValue=!1,this.showCount=!1,e&&(this.type=e.type,this.linkedId=e.linkedId)}get maskedValue(){return null!=this.value?"••••••••":void 0}static fromJSON(e){return Object.assign(new s,e)}static fromSdkFieldView(e){if(!e)return;const t=new s;return t.name=e.name,t.value=e.value,t.type=e.type,t.linkedId=e.linkedId,t}toSdkFieldView(){var e,t,i,r;return{name:null!==(e=this.name)&&void 0!==e?e:void 0,value:null!==(t=this.value)&&void 0!==t?t:void 0,type:null!==(i=this.type)&&void 0!==i?i:n.FieldType.Text,linkedId:null!==(r=this.linkedId)&&void 0!==r?r:void 0}}}},78078(e,t,i){"use strict";i.d(t,{u:()=>n});class n{constructor(e){this.id="",this.name="",e?(this.id=e.id,this.revisionDate=e.revisionDate):this.revisionDate=new Date}static fromJSON(e){var t,i;const r=new n;return r.id=null!==(t=e.id)&&void 0!==t?t:"",r.name=null!==(i=e.name)&&void 0!==i?i:"",null!=e.revisionDate&&(r.revisionDate=new Date(e.revisionDate)),r}}},67036(e,t,i){"use strict";i.d(t,{O:()=>c});var n=i(78781),r=i(81356),s=i(69473),o=i(8583),a=function(e,t,i,n){var r,s=arguments.length,o=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,i,o):r(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o},l=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};class c extends o.n{constructor(){super()}get firstName(){return this._firstName}set firstName(e){this._firstName=e,this._subTitle=void 0}get lastName(){return this._lastName}set lastName(e){this._lastName=e,this._subTitle=void 0}get subTitle(){return null!=this._subTitle||null==this.firstName&&null==this.lastName||(this._subTitle="",null!=this.firstName&&(this._subTitle=this.firstName),null!=this.lastName&&(""!==this._subTitle&&(this._subTitle+=" "),this._subTitle+=this.lastName)),this._subTitle}get fullName(){if(null!=this.title||null!=this.firstName||null!=this.middleName||null!=this.lastName){let e="";return n.A.isNullOrWhitespace(this.title)||(e+=this.title+" "),n.A.isNullOrWhitespace(this.firstName)||(e+=this.firstName+" "),n.A.isNullOrWhitespace(this.middleName)||(e+=this.middleName+" "),n.A.isNullOrWhitespace(this.lastName)||(e+=this.lastName),e.trim()}}get fullAddress(){var e;let t=null!==(e=this.address1)&&void 0!==e?e:"";return n.A.isNullOrWhitespace(this.address2)||(n.A.isNullOrWhitespace(t)||(t+=", "),t+=this.address2),n.A.isNullOrWhitespace(this.address3)||(n.A.isNullOrWhitespace(t)||(t+=", "),t+=this.address3),t}get fullAddressPart2(){const e=!n.A.isNullOrWhitespace(this.city),t=!n.A.isNullOrWhitespace(this.state),i=!n.A.isNullOrWhitespace(this.postalCode);if(!e&&!t&&!i)return;const r=e?this.city:"-",s=this.state;let o=r;return t&&(o+=", "+s),o+=", "+(i?this.postalCode:"-"),o}get fullAddressForCopy(){let e=this.fullAddress;return null==this.city&&null==this.state&&null==this.postalCode||(e+="\n"+this.fullAddressPart2),null!=this.country&&(e+="\n"+this.country),e}static fromJSON(e){return Object.assign(new c,e)}static fromSdkIdentityView(e){const t=new c;return t.title=e.title,t.firstName=e.firstName,t.middleName=e.middleName,t.lastName=e.lastName,t.address1=e.address1,t.address2=e.address2,t.address3=e.address3,t.city=e.city,t.state=e.state,t.postalCode=e.postalCode,t.country=e.country,t.company=e.company,t.email=e.email,t.phone=e.phone,t.ssn=e.ssn,t.username=e.username,t.passportNumber=e.passportNumber,t.licenseNumber=e.licenseNumber,t}toSdkIdentityView(){return{title:this.title||void 0,firstName:this.firstName||void 0,middleName:this.middleName||void 0,lastName:this.lastName||void 0,address1:this.address1||void 0,address2:this.address2||void 0,address3:this.address3||void 0,city:this.city||void 0,state:this.state||void 0,postalCode:this.postalCode||void 0,country:this.country||void 0,company:this.company||void 0,email:this.email||void 0,phone:this.phone||void 0,ssn:this.ssn||void 0,username:this.username||void 0,passportNumber:this.passportNumber||void 0,licenseNumber:this.licenseNumber||void 0}}}a([(0,s.V)(r.ZX.Title,{sortPosition:0}),l("design:type",String)],c.prototype,"title",void 0),a([(0,s.V)(r.ZX.MiddleName,{sortPosition:2}),l("design:type",String)],c.prototype,"middleName",void 0),a([(0,s.V)(r.ZX.Address1,{sortPosition:12}),l("design:type",String)],c.prototype,"address1",void 0),a([(0,s.V)(r.ZX.Address2,{sortPosition:13}),l("design:type",String)],c.prototype,"address2",void 0),a([(0,s.V)(r.ZX.Address3,{sortPosition:14}),l("design:type",String)],c.prototype,"address3",void 0),a([(0,s.V)(r.ZX.City,{sortPosition:15,i18nKey:"cityTown"}),l("design:type",String)],c.prototype,"city",void 0),a([(0,s.V)(r.ZX.State,{sortPosition:16,i18nKey:"stateProvince"}),l("design:type",String)],c.prototype,"state",void 0),a([(0,s.V)(r.ZX.PostalCode,{sortPosition:17,i18nKey:"zipPostalCodeLabel"}),l("design:type",String)],c.prototype,"postalCode",void 0),a([(0,s.V)(r.ZX.Country,{sortPosition:18}),l("design:type",String)],c.prototype,"country",void 0),a([(0,s.V)(r.ZX.Company,{sortPosition:6}),l("design:type",String)],c.prototype,"company",void 0),a([(0,s.V)(r.ZX.Email,{sortPosition:10}),l("design:type",String)],c.prototype,"email",void 0),a([(0,s.V)(r.ZX.Phone,{sortPosition:11}),l("design:type",String)],c.prototype,"phone",void 0),a([(0,s.V)(r.ZX.Ssn,{sortPosition:7}),l("design:type",String)],c.prototype,"ssn",void 0),a([(0,s.V)(r.ZX.Username,{sortPosition:5}),l("design:type",String)],c.prototype,"username",void 0),a([(0,s.V)(r.ZX.PassportNumber,{sortPosition:8}),l("design:type",String)],c.prototype,"passportNumber",void 0),a([(0,s.V)(r.ZX.LicenseNumber,{sortPosition:9}),l("design:type",String)],c.prototype,"licenseNumber",void 0),a([(0,s.V)(r.ZX.FirstName,{sortPosition:1}),l("design:type",String),l("design:paramtypes",[String])],c.prototype,"firstName",null),a([(0,s.V)(r.ZX.LastName,{sortPosition:4}),l("design:type",String),l("design:paramtypes",[String])],c.prototype,"lastName",null),a([(0,s.V)(r.ZX.FullName,{sortPosition:3}),l("design:type",String),l("design:paramtypes",[])],c.prototype,"fullName",null)},8583(e,t,i){"use strict";i.d(t,{n:()=>n});class n{}},16671(e,t,i){"use strict";i.d(t,{z:()=>a});var n=i(59777),r=i(78781);const s=Object.freeze({CipherUri:["https://","http://","ssh://","ftp://","sftp://","irc://","vnc://","rdp://","ms-rd:","chrome://","iosapp://","androidapp://"],WebUrl:["https://"]});class o{static canLaunch(e,t){if(r.A.isNullOrWhitespace(e))return!1;for(let i=0;i<t.length;i++)if(0===e.indexOf(t[i]))return!0;return!1}}class a{constructor(e){e&&(this.match=e.match)}get uri(){return this._uri}set uri(e){this._uri=e,this._domain=void 0,this._canLaunch=void 0}get domain(){return null==this._domain&&null!=this.uri&&(this._domain=r.A.getDomain(this.uri),""===this._domain&&(this._domain=void 0)),this._domain}get hostname(){if(this.match!==n.L.RegularExpression)return null==this._hostname&&null!=this.uri&&(this._hostname=r.A.getHostname(this.uri),""===this._hostname&&(this._hostname=void 0)),this._hostname}get host(){if(this.match!==n.L.RegularExpression)return null==this._host&&null!=this.uri&&(this._host=r.A.getHost(this.uri),""===this._host&&(this._host=void 0)),this._host}get hostnameOrUri(){return null!=this.hostname?this.hostname:this.uri}get hostOrUri(){return null!=this.host?this.host:this.uri}get isWebsite(){return null!=this.uri&&(0===this.uri.indexOf("http://")||0===this.uri.indexOf("https://")||this.uri.indexOf("://")<0&&!r.A.isNullOrWhitespace(r.A.getDomain(this.uri)))}get canLaunch(){return null!=this._canLaunch||(null!=this.uri&&this.match!==n.L.RegularExpression?this._canLaunch=o.canLaunch(this.launchUri,s.CipherUri):this._canLaunch=!1),this._canLaunch}get launchUri(){if(null!=this.uri)return this.uri.indexOf("://")<0&&!r.A.isNullOrWhitespace(r.A.getDomain(this.uri))?"http://"+this.uri:this.uri}static fromJSON(e){return Object.assign(new a,e)}static fromSdkLoginUriView(e){if(null==e)return;const t=new a;return t.uri=e.uri,t.match=e.match,t}toSdkLoginUriView(){var e,t;return{uri:null!==(e=this.uri)&&void 0!==e?e:void 0,match:null!==(t=this.match)&&void 0!==t?t:void 0,uriChecksum:void 0}}matchesUri(e,t,i,s){var o;if(!this.uri||!e)return!1;let a=null!==(o=this.match)&&void 0!==o?o:i;null!=a||(a=n.L.Domain),s&&a===n.L.Never&&(a=n.L.Domain);const l=r.A.getDomain(e),c=t.add(l);switch(a){case n.L.Domain:return this.matchesDomain(e,c);case n.L.Host:{const t=r.A.getHost(e);return null!=t&&t===r.A.getHost(this.uri)}case n.L.Exact:return e===this.uri;case n.L.StartsWith:return e.startsWith(this.uri);case n.L.RegularExpression:try{return new RegExp(this.uri,"i").test(e)}catch(d){return!1}case n.L.Never:return!1}return!1}matchesDomain(e,t){if(null==e||null==this.domain||!t.has(this.domain))return!1;if(r.A.DomainMatchBlacklist.has(this.domain)){const t=r.A.getHost(e);return!r.A.DomainMatchBlacklist.get(this.domain).has(t)}return!0}}},14093(e,t,i){"use strict";i.d(t,{r:()=>u});var n=i(78781),r=i(81356),s=i(69473),o=i(65918),a=i(8583),l=i(16671),c=function(e,t,i,n){var r,s=arguments.length,o=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,i,o):r(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o},d=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};class u extends a.n{constructor(e){super(),this.uris=[],this.fido2Credentials=[],e&&(this.passwordRevisionDate=e.passwordRevisionDate,this.autofillOnPageLoad=e.autofillOnPageLoad)}get uri(){return this.hasUris?this.uris[0].uri:void 0}get maskedPassword(){return null!=this.password?"••••••••":void 0}get subTitle(){var e;return n.A.isNullOrEmpty(this.username)&&(null===(e=this.fido2Credentials)||void 0===e?void 0:e.length)>0?this.fido2Credentials[0].userName:this.username}get canLaunch(){return this.hasUris&&this.uris.some(e=>e.canLaunch)}get hasTotp(){return!n.A.isNullOrWhitespace(this.totp)}get launchUri(){if(this.hasUris){const e=this.uris.find(e=>e.canLaunch);if(null!=e)return e.launchUri}}get hasUris(){return null!=this.uris&&this.uris.length>0}get hasFido2Credentials(){return null!=this.fido2Credentials&&this.fido2Credentials.length>0}matchesUri(e,t,i,n){return null!=this.uris&&this.uris.some(r=>r.matchesUri(e,t,i,n))}static fromJSON(e){var t,i,n,r;if(null==e)return new u;const s=Object.assign(new u,e);return s.passwordRevisionDate=null==e.passwordRevisionDate?void 0:new Date(e.passwordRevisionDate),s.uris=null!==(i=null===(t=e.uris)||void 0===t?void 0:t.map(e=>l.z.fromJSON(e)))&&void 0!==i?i:[],s.fido2Credentials=null!==(r=null===(n=e.fido2Credentials)||void 0===n?void 0:n.map(e=>o.X.fromJSON(e)))&&void 0!==r?r:[],s}static fromSdkLoginView(e){var t;const i=new u;return i.username=e.username,i.password=e.password,i.passwordRevisionDate=null==e.passwordRevisionDate?void 0:new Date(e.passwordRevisionDate),i.totp=e.totp,i.autofillOnPageLoad=e.autofillOnPageLoad,i.uris=(null===(t=e.uris)||void 0===t?void 0:t.filter(e=>null!=e.uri&&""!==e.uri).map(e=>l.z.fromSdkLoginUriView(e)))||[],i.fido2Credentials=[],i}toSdkLoginView(){var e,t,i;return{username:this.username||void 0,password:this.password||void 0,passwordRevisionDate:null===(e=this.passwordRevisionDate)||void 0===e?void 0:e.toISOString(),totp:this.hasTotp?this.totp:void 0,autofillOnPageLoad:null!==(t=this.autofillOnPageLoad)&&void 0!==t?t:void 0,uris:null===(i=this.uris)||void 0===i?void 0:i.map(e=>e.toSdkLoginUriView()),fido2Credentials:void 0}}}c([(0,s.V)(r.EU.Username,{sortPosition:0}),d("design:type",String)],u.prototype,"username",void 0),c([(0,s.V)(r.EU.Password,{sortPosition:1}),d("design:type",String)],u.prototype,"password",void 0)},75252(e,t,i){"use strict";i.d(t,{U:()=>r});var n=i(8583);class r extends n.n{get subTitle(){return[[this.givenName,this.surname].filter(Boolean).join(" "),this.issuingCountry].filter(Boolean).join(", ")}static fromJSON(e){return Object.assign(new r,e)}static fromSdkPassportView(e){const t=new r;return t.surname=e.surname,t.givenName=e.givenName,t.dateOfBirth=e.dateOfBirth,t.sex=e.sex,t.birthPlace=e.birthPlace,t.nationality=e.nationality,t.issuingCountry=e.issuingCountry,t.passportNumber=e.passportNumber,t.passportType=e.passportType,t.nationalIdentificationNumber=e.nationalIdentificationNumber,t.issuingAuthority=e.issuingAuthority,t.issueDate=e.issueDate,t.expirationDate=e.expirationDate,t}toSdkPassportView(){return this}}},12022(e,t,i){"use strict";i.d(t,{j:()=>n});class n{constructor(e){this.password=null,this.lastUsedDate=null,e&&(this.lastUsedDate=e.lastUsedDate)}static fromJSON(e){const t=null==e.lastUsedDate?null:new Date(e.lastUsedDate);return Object.assign(new n,e,{lastUsedDate:t})}static fromSdkPasswordHistoryView(e){if(!e)return;const t=new n;return t.password=e.password,t.lastUsedDate=null==e.lastUsedDate?null:new Date(e.lastUsedDate),t}toSdkPasswordHistoryView(){var e;return{password:null!==(e=this.password)&&void 0!==e?e:"",lastUsedDate:this.lastUsedDate.toISOString()}}}},86346(e,t,i){"use strict";i.d(t,{Z:()=>s});var n=i(81356),r=i(8583);class s extends r.n{constructor(e){super(),this.type=n.ak.Generic,e&&(this.type=e.type)}get subTitle(){}static fromJSON(e){return Object.assign(new s,e)}static fromSdkSecureNoteView(e){const t=new s;return t.type=e.type,t}toSdkSecureNoteView(){return this}}},72142(e,t,i){"use strict";i.d(t,{H:()=>r});var n=i(8583);class r extends n.n{get maskedPrivateKey(){if(!this.privateKey||0===this.privateKey.length)return"";let e=this.privateKey.split("\n").filter(e=>""!==e.trim());return e=e.map((t,i)=>0===i||i===e.length-1?t:this.maskLine(t)),e.join("\n")}maskLine(e){return"•".repeat(32)}get subTitle(){return this.keyFingerprint}static fromJSON(e){return Object.assign(new r,e)}static fromSdkSshKeyView(e){const t=new r;return t.privateKey=e.privateKey,t.publicKey=e.publicKey,t.keyFingerprint=e.fingerprint,t}toSdkSshKeyView(){return{privateKey:this.privateKey,publicKey:this.publicKey,fingerprint:this.keyFingerprint}}}},23567(e,t,i){"use strict";i.d(t,{F:()=>r});var n=i(84175);class r{static nestedTraverse(e,t,i,s,o,a){if(i.length<=t)return;const l=t===i.length-1,c=i[t];if(l)return void e.push(new n.n(s,o,c));const d=e.filter(e=>e.node.name===c);if(0===d.length){const n=c+a+i[t+1];r.nestedTraverse(e,0,[n,...i.slice(t+2)],s,o,a)}else r.nestedTraverse(d[0].children,t+1,i,s,d[0],a)}static getTreeNodeObject(e,t){if(e.node.id===t)return e;for(let i=0;i<e.children.length;i++)if(null!=e.children[i].children){const n=r.getTreeNodeObject(e.children[i],t);if(null!==n)return n}return null}static getTreeNodeObjectFromList(e,t){for(let i=0;i<e.length;i++){if(e[i].node.id===t)return e[i];if(null!=e[i].children){const n=r.getTreeNodeObjectFromList(e[i].children,t);if(null!==n)return n}}return null}}},11979(e,t,i){"use strict";i.d(t,{H:()=>u,y:()=>d});var n=i(72135),r=i(83604),s=i(69783),o=i(191),a=i(3633),l=i(66523),c=i(38020);class d{}class u{constructor(e,t,i){this.collectionService=e,this.organizationService=t,this.accountService=i,this.organization$=e=>this.accountService.activeAccount$.pipe(a.F6,(0,o.n)(e=>this.organizationService.organizations$(e)),(0,s.T)(t=>t.find(t=>t.id===e.organizationId)))}canDeleteCipher$(e,t){return this.organization$(e).pipe((0,s.T)(i=>{var n;if(t){if(!e.collectionIds||0===e.collectionIds.length)return!0===(null==i?void 0:i.canEditUnassignedCiphers);if(null==i?void 0:i.canEditAllCiphers)return!0}return!!(null===(n=e.permissions)||void 0===n?void 0:n.delete)}))}canRestoreCipher$(e,t){return this.organization$(e).pipe((0,s.T)(i=>{var n;if(t){if(!e.collectionIds||0===e.collectionIds.length)return!0===(null==i?void 0:i.canEditUnassignedCiphers);if(null==i?void 0:i.canEditAllCiphers)return!0}return!!(null===(n=e.permissions)||void 0===n?void 0:n.restore)}))}canEditCipher$(e,t=!1){return this.organization$(e).pipe((0,s.T)(i=>{if(t){if(!e.collectionIds||0===e.collectionIds.length)return!0===(null==i?void 0:i.canEditUnassignedCiphers);if(null==i?void 0:i.canEditAllCiphers)return!0}return!!e.edit}))}canCloneCipher$(e,t){return null==e.organizationId?(0,r.of)(!0):(0,n.z)([this.organization$(e),this.accountService.activeAccount$.pipe(a.F6)]).pipe((0,o.n)(([i,n])=>{var o;return t&&i&&(i.isAdmin||(null===(o=i.permissions)||void 0===o?void 0:o.editAnyCollection))?(0,r.of)(!0):this.collectionService.decryptedCollections$(n).pipe((0,c.S)(e.collectionIds.map(l.zw)),(0,s.T)(e=>e.some(e=>e.manage)))}))}}},66983(e,t,i){"use strict";i.d(t,{b:()=>p});var n=i(72135),r=i(83604),s=i(69783),o=i(16385),a=i(6933),l=i(191),c=i(7356),d=i(3633),u=i(66523),h=i(81356),A=i(61325);class p{constructor(e,t,i){this.accountService=e,this.organizationService=t,this.policyService=i,this.restricted$=this.accountService.activeAccount$.pipe(d.bB,(0,l.n)(e=>null==e?(0,r.of)([]):(0,n.z)([this.organizationService.organizations$(e),this.policyService.policiesByType$(c.tt.RestrictedItemTypes,e)]).pipe((0,s.T)(([e,t])=>{const i=e=>{var t;return null!==(t=e.data)&&void 0!==t?t:[h.gC.Card]};return Array.from(new Set(t.flatMap(i))).map(n=>{const r=e.filter(e=>{const r=t.find(t=>t.organizationId===e.id);return!r||!i(r).includes(n)}).map(e=>e.id);return{cipherType:n,allowViewOrgIds:r}})}))),(0,o.F)(),(0,a.t)({bufferSize:1,refCount:!0}))}isCipherRestricted(e,t){const i=t.find(t=>t.cipherType===A.n.getType(e));return!!i&&(!e.organizationId||!i.allowViewOrgIds.includes((0,u.zw)(e.organizationId)))}isCipherRestricted$(e){return this.restricted$.pipe((0,s.T)(t=>this.isCipherRestricted(e,t)))}}},47269(e,t,i){"use strict";i.d(t,{Sb:()=>S,Wn:()=>s,RB:()=>d});const n=0,r=1,s={UpdateAtRiskCredential:0};class o{constructor(e){this.id=e.id,this.organizationId=e.organizationId,this.cipherId=e.cipherId,this.type=e.type,this.status=e.status,this.creationDate=e.creationDate,this.revisionDate=e.revisionDate}}class a{constructor(e){this.id=e.id,this.organizationId=e.organizationId,this.cipherId=e.cipherId,this.type=e.type,this.status=e.status,this.creationDate=e.creationDate,this.revisionDate=e.revisionDate}static fromJSON(e){return Object.assign(new a({}),e,{creationDate:new Date(e.creationDate),revisionDate:new Date(e.revisionDate)})}}var l=i(20702);class c extends l.r{constructor(e){super(e),this.id=this.getResponseProperty("Id"),this.organizationId=this.getResponseProperty("OrganizationId"),this.cipherId=this.getResponseProperty("CipherId")||void 0,this.type=this.getResponseProperty("Type"),this.status=this.getResponseProperty("Status"),this.creationDate=this.getResponseProperty("CreationDate"),this.revisionDate=this.getResponseProperty("RevisionDate")}}class d{}var u=i(69783),h=i(16385),A=i(191),p=i(83604),g=i(72135),v=i(68711),m=i(61065),f=i(84110),y=i(51151),b=i(12277),C=i(97432),I=i(31857);const w=I.Ok.array(I.k2,"securityTasks",{deserializer:e=>a.fromJSON(e),clearOn:["logout","lock"]});var B=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const E=(0,u.T)(e=>Object.entries(null!=e?e:{}).filter(([,e])=>e>=f.J.Unlocked).map(([e])=>e));class S{constructor(e,t,i,s,a,l){this.stateProvider=e,this.apiService=t,this.organizationService=i,this.authService=s,this.notificationService=a,this.messageListener=l,this.tasksEnabled$=(0,C.j)(e=>this.organizationService.organizations$(e).pipe((0,u.T)(e=>e.some(e=>e.canUseAccessIntelligence)),(0,h.F)())),this.tasks$=(0,C.j)(e=>this.tasksEnabled$(e).pipe((0,A.n)(t=>t?this.taskState(e).state$.pipe((0,A.n)(t=>B(this,void 0,void 0,function*(){return null==t?(yield this.fetchTasksFromApi(e),null):t})),(0,C.w)(),(0,u.T)(e=>e.map(e=>new o(e)))):(0,p.of)([])))),this.pendingTasks$=(0,C.j)(e=>this.tasks$(e).pipe((0,u.T)(e=>e.filter(e=>e.status===n)))),this.completedTasks$=(0,C.j)(e=>this.tasks$(e).pipe((0,u.T)(e=>e.filter(e=>e.status===r)))),this.getOnlyTaskEnabledUsers=(0,A.n)(e=>0===e.length?(0,p.of)([]):(0,g.z)(e.map(e=>this.tasksEnabled$(e).pipe((0,u.T)(t=>t?e:null)))).pipe((0,u.T)(e=>e.filter(e=>null!==e))))}refreshTasks(e){return B(this,void 0,void 0,function*(){yield this.fetchTasksFromApi(e)})}clear(e){return B(this,void 0,void 0,function*(){yield this.updateTaskState(e,[])})}markAsComplete(e,t){return B(this,void 0,void 0,function*(){yield this.apiService.send("PATCH",`/tasks/${e}/complete`,null,!0,!1),yield this.refreshTasks(t)})}fetchTasksFromApi(e){return B(this,void 0,void 0,function*(){const t=yield this.apiService.send("GET","/tasks",null,!0,!0),i=new b.s(t,c).data.map(e=>new a(e));yield this.updateTaskState(e,i)})}taskState(e){return this.stateProvider.getUser(e,w)}updateTaskState(e,t){return this.taskState(e).update(()=>t)}securityTaskNotifications$(e){return this.notificationService.notifications$.pipe((0,v.p)(([t,i])=>t.type===y._n.RefreshSecurityTasks&&e.includes(i)),(0,u.T)(([,e])=>e))}syncCompletedMessage$(e){return this.messageListener.allMessages$.pipe((0,v.p)(e=>"syncCompleted"===e.command&&!!e.successfully&&!!e.userId),(0,u.T)(e=>e.userId),(0,v.p)(t=>e.includes(t)))}listenForTaskNotifications(){return this.authService.authStatuses$.pipe(E,this.getOnlyTaskEnabledUsers,(0,v.p)(e=>e.length>0),(0,A.n)(e=>(0,m.h)(this.securityTaskNotifications$(e),this.syncCompletedMessage$(e))),(0,A.n)(e=>this.refreshTasks(e))).subscribe()}}},61325(e,t,i){"use strict";i.d(t,{n:()=>l});var n,r=i(59777),s=i(78781),o=i(81356),a=i(16671);class l{}n=l,l.isCipherListView=e=>"object"==typeof e.type||"string"==typeof e.type,l.getLogin=e=>n.isCipherListView(e)?"object"!=typeof e.type?null:"login"in e.type?e.type.login:null:e.type===o.gC.Login?e.login:null,l.uri=e=>{var t;const i=n.getLogin(e);return i?"uri"in i?i.uri:(null===(t=i.uris)||void 0===t?void 0:t.length)?i.uris[0].uri:null:null},l.getCard=e=>n.isCipherListView(e)?"object"!=typeof e.type?null:"card"in e.type?e.type.card:null:e.type===o.gC.Card?e.card:null,l.isArchived=e=>n.isCipherListView(e)?!!e.archivedDate:e.isArchived,l.isDeleted=e=>n.isCipherListView(e)?!!e.deletedDate:e.isDeleted,l.isUnassigned=e=>n.isCipherListView(e)?null!=e.organizationId&&(null==e.collectionIds||0===e.collectionIds.length):e.isUnassigned,l.canAssignToCollections=e=>n.isCipherListView(e)?!e.organizationId||e.edit&&e.viewPassword:e.canAssignToCollections,l.getType=e=>{if(!n.isCipherListView(e))return e.type;switch(!0){case"secureNote"===e.type:return o.gC.SecureNote;case"sshKey"===e.type:return o.gC.SshKey;case"bankAccount"===e.type:return o.gC.BankAccount;case"passport"===e.type:return o.gC.Passport;case"identity"===e.type:return o.gC.Identity;case"object"==typeof e.type&&"card"in e.type:return o.gC.Card;case"object"==typeof e.type&&"login"in e.type:return o.gC.Login;case"driversLicense"===e.type:return o.gC.DriversLicense;default:throw new Error(`Unknown cipher type: ${e.type}`)}},l.subtitle=(e,t)=>{const i=n.isCipherListView(e)?e.subtitle:e.subTitle;if(!t)return i;if(n.getType(e)===o.gC.BankAccount){const r=n.bankAccountSubtitle(e,t);return null!=r?r:i}return i},l.getBankAccount=e=>{var t;return n.isCipherListView(e)?null:e.type===o.gC.BankAccount&&null!==(t=e.bankAccount)&&void 0!==t?t:null},l.bankAccountSubtitle=(e,t)=>{var i,r,s,a,l;const c=n.getBankAccount(e);if(!c)return;const d=c.accountType?o.Q[c.accountType]:void 0,u=d?t.t(d):void 0;let h;if(c.accountNumber&&(null===(i=c.accountNumber)||void 0===i?void 0:i.length)>4)h=null===(r=c.accountNumber)||void 0===r?void 0:r.slice(-4);else if(c.accountNumber&&(null===(s=c.accountNumber)||void 0===s?void 0:s.length)>1){const e=-1*((null===(a=c.accountNumber)||void 0===a?void 0:a.length)-1);h=null===(l=c.accountNumber)||void 0===l?void 0:l.slice(e)}return u&&h?`${u}, *${h}`:u||(h?`*${h}`:void 0)},l.hasAttachments=e=>n.isCipherListView(e)?"number"==typeof e.attachments&&e.attachments>0:e.hasAttachments,l.canLaunch=e=>{var t;const i=n.getLogin(e);return!!i&&!!(null===(t=i.uris)||void 0===t?void 0:t.map(e=>d(e)).some(e=>e.canLaunch))},l.getLaunchUri=e=>{var t,i;const r=n.getLogin(e);if(r)return null===(i=null===(t=r.uris)||void 0===t?void 0:t.map(e=>d(e)).find(e=>e.canLaunch))||void 0===i?void 0:i.launchUri},l.matchesUri=(e,t,i,s=r.L.Domain,l)=>{var c;if(n.getType(e)!==o.gC.Login)return!1;if(!n.isCipherListView(e))return e.login.matchesUri(t,i,s,l);const d=n.getLogin(e);if(!(null===(c=null==d?void 0:d.uris)||void 0===c?void 0:c.length))return!1;const u=d.uris.filter(e=>!!e.uri).map(e=>{var t;const i=new a.z;return i.match=null!==(t=e.match)&&void 0!==t?t:s,i.uri=e.uri,i});return u.some(e=>e.matchesUri(t,i,s,l))},l.hasCopyableValue=(e,t)=>{var i,r,s,a,l,d,u,h,A,p,g,v,m,f,y,b,C,I,w,B,E,S,Q,k,R,F,T,D,P;if(n.isCipherListView(e)){if(n.getType(e)===o.gC.Login){const i=n.getLogin(e);if("username"===t)return!!(null==i?void 0:i.username)}let s=t;return"username"===s&&n.getType(e)===o.gC.Identity&&(s="usernameIdentity"),null!==(r=null===(i=e.copyableFields)||void 0===i?void 0:i.includes(c[s]))&&void 0!==r&&r}switch(t){case"username":return!!(null===(s=e.login)||void 0===s?void 0:s.username)||!!(null===(a=e.identity)||void 0===a?void 0:a.username);case"password":return!!(null===(l=e.login)||void 0===l?void 0:l.password);case"totp":return!!(null===(d=e.login)||void 0===d?void 0:d.totp);case"cardNumber":return!!(null===(u=e.card)||void 0===u?void 0:u.number);case"securityCode":return!!(null===(h=e.card)||void 0===h?void 0:h.code);case"email":return!!(null===(A=e.identity)||void 0===A?void 0:A.email);case"phone":return!!(null===(p=e.identity)||void 0===p?void 0:p.phone);case"address":return!!(null===(g=e.identity)||void 0===g?void 0:g.fullAddressForCopy);case"secureNote":return!!e.notes;case"privateKey":return!!(null===(v=e.sshKey)||void 0===v?void 0:v.privateKey);case"publicKey":return!!(null===(m=e.sshKey)||void 0===m?void 0:m.publicKey);case"keyFingerprint":return!!(null===(f=e.sshKey)||void 0===f?void 0:f.keyFingerprint);case"nameOnAccount":return!!(null===(y=e.bankAccount)||void 0===y?void 0:y.nameOnAccount);case"accountNumber":return!!(null===(b=e.bankAccount)||void 0===b?void 0:b.accountNumber);case"routingNumber":return!!(null===(C=e.bankAccount)||void 0===C?void 0:C.routingNumber);case"branchNumber":return!!(null===(I=e.bankAccount)||void 0===I?void 0:I.branchNumber);case"pin":return!!(null===(w=e.bankAccount)||void 0===w?void 0:w.pin);case"iban":return!!(null===(B=e.bankAccount)||void 0===B?void 0:B.iban);case"swiftCode":return!!(null===(E=e.bankAccount)||void 0===E?void 0:E.swiftCode);case"firstNameLicense":return!!(null===(S=e.driversLicense)||void 0===S?void 0:S.firstName);case"middleNameLicense":return!!(null===(Q=e.driversLicense)||void 0===Q?void 0:Q.middleName);case"lastNameLicense":return!!(null===(k=e.driversLicense)||void 0===k?void 0:k.lastName);case"licenseNumber":return!!(null===(R=e.driversLicense)||void 0===R?void 0:R.licenseNumber);case"passportNumber":return!!(null===(F=e.passport)||void 0===F?void 0:F.passportNumber);case"nationalIdentificationNumber":return!!(null===(T=e.passport)||void 0===T?void 0:T.nationalIdentificationNumber);case"givenName":return!!(null===(D=e.passport)||void 0===D?void 0:D.givenName);case"surname":return!!(null===(P=e.passport)||void 0===P?void 0:P.surname);default:return!1}},l.hasFido2Credentials=e=>{var t;const i=n.getLogin(e);return!!(null===(t=null==i?void 0:i.fido2Credentials)||void 0===t?void 0:t.length)},l.decryptionFailure=e=>"decryptionFailure"in e&&e.decryptionFailure,l.getNotes=e=>e.notes,l.getFields=e=>(n.isCipherListView(e),e.fields),l.getAttachmentNames=e=>{var t;return n.isCipherListView(e)?e.attachmentNames:null===(t=e.attachments)||void 0===t?void 0:t.map(e=>e.fileName).filter(e=>null!=e)},l.getUriHostname=e=>{var t;if("hostname"in e&&void 0!==e.hostname)return null!==(t=e.hostname)&&void 0!==t?t:void 0;if(e.match!==r.L.RegularExpression&&e.uri){const t=s.A.getHostname(e.uri);return""===t?void 0:t}};const c={usernameLogin:"LoginUsername",password:"LoginPassword",totp:"LoginTotp",cardNumber:"CardNumber",securityCode:"CardSecurityCode",usernameIdentity:"IdentityUsername",email:"IdentityEmail",phone:"IdentityPhone",address:"IdentityAddress",secureNote:"SecureNotes",privateKey:"SshKey",publicKey:"SshKey",keyFingerprint:"SshKey",nameOnAccount:"BankAccountNameOnAccount",accountNumber:"BankAccountAccountNumber",routingNumber:"BankAccountRoutingNumber",branchNumber:"BankAccountBranchNumber",pin:"BankAccountPin",iban:"BankAccountIban",swiftCode:"BankAccountSwift",firstNameLicense:"DriversLicenseFirstName",middleNameLicense:"DriversLicenseMiddleName",lastNameLicense:"DriversLicenseLastName",licenseNumber:"DriversLicenseLicenseNumber",givenName:"PassportGivenName",surname:"PassportSurname",passportNumber:"PassportPassportNumber",nationalIdentificationNumber:"PassportNationalIdentificationNumber"},d=e=>{if(e instanceof a.z)return e;const t=new a.z;return e.match&&(t.match=e.match),e.uri&&(t.uri=e.uri),t}},24072(e,t,i){"use strict";i.d(t,{e:()=>r,u:()=>s});var n=i(39306);const r=e=>null!=e?new n.k(e):void 0,s=e=>null!=e?n.k.fromJSON(e):void 0},97432(e,t,i){"use strict";i.d(t,{j:()=>l,w:()=>c});var n=i(61065),r=i(71232),s=i(68711),o=i(69783),a=i(6933);function l(e,t=void 0){const i=new Map;return l=>{let c=i.get(l);return c||(null!=t||(t=r.w),c=(0,n.h)(e(l),t.pipe((0,s.p)(e=>e===l||null===e),(0,o.T)(()=>null))).pipe((0,a.t)({bufferSize:1,refCount:!1})),i.set(l,c)),c}}function c(){return(0,s.p)(e=>null!=e)}},54471(e,t,i){"use strict";i.d(t,{C:()=>a});var n=i(24590),r=i(11217),s=i(30634),o=i(14041);class a{constructor(e){this.el=e,this.title=n.hFB.required(Object.assign(Object.assign({},{}),{alias:"appA11yTitle"}));const t=this.el.nativeElement.getAttribute("title"),i=this.el.nativeElement.getAttribute("aria-label");(0,r.QZP)(()=>{(0,s.J)({element:this.el.nativeElement,title:null!=t?t:this.title(),label:null!=i?i:this.title()})})}}a.ɵfac=function(e){return new(e||a)(o.rXU(o.aKT))},a.ɵdir=o.FsC({type:a,selectors:[["","appA11yTitle",""]],inputs:{title:[1,"appA11yTitle","title"]}})},23542(e,t,i){"use strict";i.d(t,{v:()=>o});var n=i(11217);class r{constructor(e,t){this.document=e,this.ngZone=t,this.ngZone.runOutsideAngular(()=>{this.listener=e=>{if(e.target.closest('[aria-disabled="true"][bit-aria-disable="true"]'))return e.stopPropagation(),e.preventDefault(),!1},this.document.addEventListener("click",this.listener,!0)})}ngOnDestroy(){this.document.removeEventListener("click",this.listener,!0)}}r.ɵfac=function(e){return new(e||r)(n.KVO(n.qQL),n.KVO(n.SKi))},r.ɵprov=n.jDH({token:r,factory:r.ɵfac,providedIn:"root"});var s=i(14041);class o{constructor(){this.ariaDisabledClickCaptureService=(0,n.WQX)(r)}}o.ɵfac=function(e){return new(e||o)},o.ɵdir=s.FsC({type:o,hostVars:1,hostBindings:function(e,t){2&e&&s.BMQ("bit-aria-disable",!0)}})},55686(e,t,i){"use strict";i.d(t,{D:()=>d});var n=i(24590),r=i(14041),s=i(11217),o=i(68108),a=i(78781),l=i(49519),c=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class d{constructor(){this.destroyRef=(0,s.WQX)(s.abz),this.ngZone=(0,s.WQX)(s.SKi),this.el=(0,s.WQX)(r.aKT),this.bitAutofocusFallback=(0,n.geq)(),this.focused=(0,s.vPA)(!1),(0,s.QZP)(()=>c(this,void 0,void 0,function*(){const e=this.bitAutofocusFallback();if(this.focused()||a.A.isMobileBrowser||!e)return;const t=e.nativeElement;this.ngZone.isStable||(yield(0,o._)(this.ngZone.onStable)),this.handleFocus(t)}))}handleFocus(e){this.checkForAutofocusDescendants()||this.focusAfterTimeout(e)}focusAfterTimeout(e){const t=setTimeout(()=>{e.focus(),this.focused.set(e===document.activeElement)},0);this.destroyRef.onDestroy(()=>clearTimeout(t))}checkForAutofocusDescendants(){const e=this.el.nativeElement;if(e){return(0,l.U)(e).length>0}return!1}}d.ɵfac=function(e){return new(e||d)},d.ɵdir=r.FsC({type:d,selectors:[["","bitAutofocusFallback",""]],inputs:{bitAutofocusFallback:[1,"bitAutofocusFallback"]},outputs:{bitAutofocusFallback:"bitAutofocusFallbackChange"}})},30634(e,t,i){"use strict";function n({element:e,title:t,label:i}){t&&e.setAttribute("title",t),i&&e.setAttribute("aria-label",i)}i.d(t,{J:()=>n})},24512(e,t,i){"use strict";i.d(t,{J:()=>r});var n=i(13259);const r={pageTitle:null,pageSubtitle:null,pageIcon:null,hidePageIcon:!1,contentVerticalPadding:n.$R,footerVerticalPadding:n.LZ,heroTextAlignment:n.bx,showReadonlyHostname:!1,maxWidth:"md",hideCardWrapper:!1,hideBackgroundIllustration:!1,secondaryContentLocation:"main"}},1221(e,t,i){"use strict";i.d(t,{f:()=>n});class n{}},37579(e,t,i){"use strict";i.d(t,{C:()=>s});var n=i(14041),r=i(11217);class s{}s.ɵfac=function(e){return new(e||s)},s.ɵmod=n.$C({type:s}),s.ɵinj=r.G2t({})},3892(e,t,i){"use strict";i.d(t,{p:()=>g});var n=i(24590),r=i(11217),s=i(92128),o=i(67789),a=i(1739),l=i(35284),c=i(56962),d=i(26038),u=i(14041),h=i(53100),A=i(2471),p=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class g{get loading(){return this._loading$.value}set loading(e){this._loading$.next(e),this.buttonComponent.loading.set(e)}constructor(e,t,i){this.buttonComponent=e,this.validationService=t,this.logService=i,this._loading$=new o.t(!1),this.loading$=this._loading$.asObservable(),this.disabled=!1,this.handler=n.geq.required(Object.assign(Object.assign({},{}),{alias:"bitAction"})),this.destroyRef=(0,r.WQX)(r.abz)}onClick(){return p(this,void 0,void 0,function*(){!this.handler()||this.loading||this.disabled||this.buttonComponent.disabled()||(this.loading=!0,(0,d.Z)(this.handler()).pipe((0,l.M)({error:e=>{var t,i;null===(t=this.logService)||void 0===t||t.error(`Async action exception: ${e}`),null===(i=this.validationService)||void 0===i||i.showError(e)}}),(0,a.j)(()=>this.loading=!1),(0,s.pQ)(this.destroyRef)).subscribe())})}}g.ɵfac=function(e){return new(e||g)(u.rXU(h.E),u.rXU(A.B,8),u.rXU(c.K,8))},g.ɵdir=u.FsC({type:g,selectors:[["","bitAction",""]],hostBindings:function(e,t){1&e&&u.bIt("click",function(){return t.onClick()})},inputs:{handler:[1,"bitAction","handler"]},outputs:{handler:"bitActionChange"}})},38620(e,t,i){"use strict";i.d(t,{L:()=>m});var n=i(11217),r=i(24590),s=i(92128),o=i(67789),a=i(68711),l=i(191),c=i(4958),d=i(83604),u=i(56962),h=i(26038);class A{constructor(){this.registeredDirectives=new Set}registerForm(e){this.registeredDirectives.add(e)}deregisterForm(e){this.registeredDirectives.delete(e)}hasDirtyForm(){var e;for(const t of this.registeredDirectives)if(null===(e=t.form)||void 0===e?void 0:e.dirty)return!0;return!1}}A.ɵfac=function(e){return new(e||A)},A.ɵprov=n.jDH({token:A,factory:A.ɵfac,providedIn:"root"});var p=i(14041),g=i(84210),v=i(2471);class m{constructor(e,t,i){this.formGroupDirective=e,this.destroyRef=(0,n.WQX)(n.abz),this.dirtyFormService=(0,n.WQX)(A),this._loading$=new o.t(!1),this._disabled$=new o.t(!1),this.handler=r.hFB.required(Object.assign(Object.assign({},{}),{alias:"bitSubmit"})),this.allowDisabledFormSubmit=(0,r.hFB)(!1),this.loading$=this._loading$.asObservable(),this.disabled$=this._disabled$.asObservable(),e.ngSubmit.pipe((0,a.p)(()=>!this.disabled),(0,l.n)(()=>{const e=(0,h.Z)(this.handler());return this.loading=!0,e.pipe((0,c.W)(e=>(null==i||i.error(`Async submit exception: ${e}`),null==t||t.showError(e),(0,d.of)(void 0))))}),(0,s.pQ)()).subscribe({next:()=>this.loading=!1,complete:()=>this.loading=!1})}ngOnInit(){var e;this.dirtyFormService.registerForm(this.formGroupDirective),this.destroyRef.onDestroy(()=>{this.dirtyFormService.deregisterForm(this.formGroupDirective)}),null===(e=this.formGroupDirective.statusChanges)||void 0===e||e.pipe((0,s.pQ)(this.destroyRef)).subscribe(e=>{this.allowDisabledFormSubmit()?this._disabled$.next(!1):this._disabled$.next("DISABLED"===e)})}get disabled(){return this._disabled$.value}set disabled(e){this._disabled$.next(e)}get loading(){return this._loading$.value}set loading(e){this.disabled=e,this._loading$.next(e)}}m.ɵfac=function(e){return new(e||m)(p.rXU(g.j4),p.rXU(v.B,8),p.rXU(u.K,8))},m.ɵdir=p.FsC({type:m,selectors:[["","formGroup","","bitSubmit",""]],inputs:{handler:[1,"bitSubmit","handler"],allowDisabledFormSubmit:[1,"allowDisabledFormSubmit"]}})},26657(e,t,i){"use strict";i.d(t,{$:()=>c});var n=i(24590),r=i(92128),s=i(14041),o=i(53100),a=i(38620),l=i(3892);class c{constructor(e,t,i){this.type=(0,n.hFB)(),this.disabled=(0,n.hFB)(),t&&e&&(t.loading$.pipe((0,r.pQ)()).subscribe(t=>{"submit"===this.type()?e.loading.set(t):e.disabled.set(this.disabled()||t)}),t.disabled$.pipe((0,r.pQ)()).subscribe(t=>{const i=this.disabled();!1!==i&&e.disabled.set(i||t)})),t&&i&&(i.loading$.pipe((0,r.pQ)()).subscribe(e=>{t.disabled=e}),t.disabled$.pipe((0,r.pQ)()).subscribe(e=>{i.disabled=e}))}}c.ɵfac=function(e){return new(e||c)(s.rXU(o.E),s.rXU(a.L,8),s.rXU(l.p,8))},c.ɵdir=s.FsC({type:c,selectors:[["button","bitFormButton",""]],inputs:{type:[1,"type"],disabled:[1,"disabled"]}})},57144(e,t,i){"use strict";i.d(t,{BF:()=>h,fw:()=>p,ls:()=>d});var n=i(24590),r=i(14041),s=i(11217),o=i(63477),a=i(78781),l=i(6307),c=i(23542);const d=["teal","coral","brand","green","purple"],u={"2xl":["tw-size-16","tw-min-w-16"],xl:["tw-size-14","tw-min-w-14"],lg:["tw-size-11","tw-min-w-11"],base:["tw-size-8","tw-min-w-8"],sm:["tw-size-6","tw-min-w-6"]},h={teal:"#007c95",coral:"#c71800",brand:"#175ddc",green:"#008236",purple:"#8200db"},A={teal:"#006278",coral:"#a81400",brand:"#0d43af",green:"#016630",purple:"#6e11b0"};class p{constructor(){this.el=(0,s.WQX)(r.aKT),this.color=(0,n.hFB)(),this.id=(0,n.hFB)(),this.text=(0,n.hFB)(),this.title=(0,n.hFB)(),this.size=(0,n.hFB)("base"),this.disabled=(0,n.hFB)(!1),this.svgCharCount=2,this.svgFontSize=12,this.svgFontWeight=400,this.svgSize=32,this.sizeClass=(0,o.EW)(()=>u[this.size()]),this.avatarColors=(0,o.EW)(()=>{const e=this.color(),t=function(e){return void 0!==e&&d.includes(e)}(e),i=null!=e&&""!==e.trim();if(!t&&i)return{bg:e,bgHover:`hsl(from ${e} h calc(s - 10) calc(l - 10))`,text:a.A.pickTextColorBasedOnBgColor(e,135,!0)};{const i=t?e:this.getDefaultColorKey(this.id(),this.text());return{bg:h[i],bgHover:A[i],text:"white"}}}),this.displayChars=(0,o.EW)(()=>{var e,t;const i=null!==(t=null===(e=this.text())||void 0===e?void 0:e.toUpperCase())&&void 0!==t?t:"";let n=this.getFirstLetters(i,this.svgCharCount);null==n&&(n=this.unicodeSafeSubstring(i,this.svgCharCount));const r=n.match(a.A.regexpEmojiPresentation);return r&&(n=r[0]),n}),(0,l.m)(this.el.nativeElement,this.disabled)}getFirstLetters(e,t){const i=e.split(" ");if(i.length>1){let e="";for(let n=0;n<t;n++)e+=this.unicodeSafeSubstring(i[n],1);return e}}unicodeSafeSubstring(e,t){const i=e.match(/./gu);return null!=i?i.slice(0,t).join(""):""}getDefaultColorKey(e,t){var i;let n="";n=a.A.isNullOrWhitespace(e)?null!==(i=null==t?void 0:t.toUpperCase())&&void 0!==i?i:"":e.toString();let r=0;for(const o of n)r=o.charCodeAt(0)+((r<<5)-r);const s=Math.abs(r)%d.length;return d[s]}}p.ɵfac=function(e){return new(e||p)},p.ɵcmp=r.VBU({type:p,selectors:[["bit-avatar"],["button","bit-avatar",""]],hostAttrs:[1,"tw-inline-block","tw-leading-[0px]","focus-visible:tw-outline-none","tw-rounded-full","focus-visible:tw-ring-2","focus-visible:tw-ring-offset-1","focus-visible:tw-ring-border-focus","!focus-visible:tw-border-[transparent]","focus-visible:tw-z-10","tw-group/avatar","aria-disabled:tw-cursor-not-allowed","[&.tw-test-hover_svg]:tw-bg-[--avatar-bg-hover]","[&.tw-test-focus-visible_svg]:tw-bg-[--avatar-bg-hover]"],hostVars:6,hostBindings:function(e,t){2&e&&(r.HbH(t.sizeClass()),r.xc7("--avatar-bg",t.avatarColors().bg)("--avatar-bg-hover",t.avatarColors().bgHover))},inputs:{color:[1,"color"],id:[1,"id"],text:[1,"text"],title:[1,"title"],size:[1,"size"],disabled:[1,"disabled"]},features:[r.nM4([c.v])],decls:5,vars:13,consts:[["xmlns","http://www.w3.org/2000/svg","pointer-events","none",1,"tw-rounded-full","tw-size-full","tw-min-w-full","tw-bg-[--avatar-bg]","group-aria-disabled/avatar:tw-bg-bg-inactive","[&:is(button:not([aria-disabled='true'])_*)]:group-hover/avatar:tw-bg-[--avatar-bg-hover]","[&:is(button:not([aria-disabled='true'])_*)]:group-focus-visible/avatar:tw-bg-[--avatar-bg-hover]"],["text-anchor","middle","y","50%","x","50%","dy","0.35em","pointer-events","auto","font-family",'Inter,"Helvetica Neue",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"',1,"[&:is(button:is([aria-disabled='true'])_*)]:tw-fill-fg-inactive"]],template:function(e,t){1&e&&(s.qSk(),r.rj2(0,"svg",0)(1,"title"),r.EFF(2),r.eux(),r.rj2(3,"text",1),r.EFF(4),r.eux()()),2&e&&(r.BMQ("viewBox",r.ai1("0 0 ",t.svgSize," ",t.svgSize)),r.R7$(2),r.JRh(t.title()||t.text()),r.R7$(),r.HbH(t.avatarColors().text.includes("white")?"tw-fill-fg-white":"tw-fill-black"),r.xc7("font-weight",t.svgFontWeight)("font-size",t.svgFontSize,"px")("line-height",16,"px"),r.R7$(),r.SpI(" ",t.displayChars()," "))},encapsulation:2,changeDetection:0})},79703(e,t,i){"use strict";i.d(t,{m:()=>s});var n=i(14041),r=i(11217);class s{}s.ɵfac=function(e){return new(e||s)},s.ɵmod=n.$C({type:s}),s.ɵinj=r.G2t({})},94438(e,t,i){"use strict";i.d(t,{p:()=>A});var n=i(24590),r=i(63477),s=i(36801),o=i(639),a=i(14041),l=i(47696);function c(e,t){1&e&&(a.j41(0,"span",3),a.EFF(1,", "),a.k0s())}function d(e,t){if(1&e&&(a.j41(0,"span",2),a.EFF(1),a.k0s(),a.nVh(2,c,2,0,"span",3)),2&e){const e=t.$implicit,i=t.$index,n=t.$count,r=a.XpG();a.Y8G("variant",r.variant())("truncate",r.truncate()),a.R7$(),a.SpI(" ",e," "),a.R7$(),a.vxM(i!==n-1||r.isFiltered()?2:-1)}}function u(e,t){if(1&e&&(a.j41(0,"span",1),a.EFF(1),a.nI1(2,"i18n"),a.k0s()),2&e){const e=a.XpG();a.Y8G("variant",e.variant()),a.R7$(),a.SpI(" ",a.i5U(2,2,"plusNMore",(e.items().length-e.filteredItems().length).toString())," ")}}function h(e){return null==e?void 0:Math.max(1,e)}class A{constructor(){this.variant=(0,n.hFB)("primary"),this.items=(0,n.hFB)([]),this.truncate=(0,n.hFB)(!0),this.maxItems=(0,n.hFB)(void 0,Object.assign(Object.assign({},{}),{transform:h})),this.filteredItems=(0,r.EW)(()=>{const e=this.maxItems(),t=this.items();return null==e||t.length<=e?t:t.slice(0,e-1)}),this.isFiltered=(0,r.EW)(()=>this.items().length>this.filteredItems().length)}}A.ɵfac=function(e){return new(e||A)},A.ɵcmp=a.VBU({type:A,selectors:[["bit-badge-list"]],inputs:{variant:[1,"variant"],items:[1,"items"],truncate:[1,"truncate"],maxItems:[1,"maxItems"]},decls:4,vars:1,consts:[[1,"tw-inline-flex","tw-flex-wrap","tw-gap-2"],["bitBadge","",3,"variant"],["bitBadge","",3,"variant","truncate"],[1,"tw-sr-only"]],template:function(e,t){1&e&&(a.j41(0,"div",0),a.Z7z(1,d,3,4,null,null,a.fX1),a.nVh(3,u,3,5,"span",1),a.k0s()),2&e&&(a.R7$(),a.Dyx(t.filteredItems()),a.R7$(2),a.vxM(t.isFiltered()?3:-1))},dependencies:[o.E,l.n,s.$Z],encapsulation:2,changeDetection:0})},47696(e,t,i){"use strict";i.d(t,{n:()=>A});var n=i(24590),r=i(14041),s=i(11217),o=i(63477),a=i(58384);function l(e,t){if(1&e&&r.nrm(0,"bit-icon",2),2&e){const e=r.XpG();r.HbH(e.iconSizeStyles()),r.Y8G("name",e.computedIcon())}}const c={primary:["tw-bg-bg-brand-softer","tw-border-border-brand-soft","tw-text-fg-brand-strong"],info:["tw-bg-bg-brand-softer","tw-border-border-brand-soft","tw-text-fg-brand-strong"],subtle:["tw-bg-bg-secondary","tw-border-border-base","tw-text-fg-body"],secondary:["tw-bg-bg-secondary","tw-border-border-base","tw-text-fg-body"],success:["tw-bg-bg-success-soft","tw-border-border-success-soft","tw-text-fg-success-strong"],warning:["tw-bg-bg-warning-soft","tw-border-border-warning-soft","tw-text-fg-warning-strong"],danger:["tw-bg-bg-danger-soft","tw-border-border-danger-soft","tw-text-fg-danger-strong"],"accent-primary":["tw-bg-bg-accent-primary-soft","tw-border-border-accent-primary-soft","tw-text-fg-accent-primary-strong"]},d={small:{label:["tw-text-xs/4","tw-px-1","tw-py-0.5"],icon:["tw-text-sm/3"]},large:{label:["tw-text-sm/5","tw-px-1.5","tw-py-1"],icon:["tw-text-base/5"]}},u=["tw-inline-flex","tw-items-center","tw-rounded-full","tw-border","tw-font-medium","tw-cursor-default"],h={info:null,subtle:null,secondary:null,primary:null,success:"bwi-check-circle",warning:"bwi-exclamation-triangle",danger:"bwi-error","accent-primary":null};class A{constructor(){this.el=(0,s.WQX)(r.aKT),this.title=(0,n.hFB)(),this.variant=(0,n.hFB)("primary"),this.size=(0,n.hFB)("large"),this.truncate=(0,n.hFB)(!0),this.maxWidthClass=(0,n.hFB)("tw-max-w-[calc(25ch_-_theme(spacing.2))]"),this.startIcon=(0,n.hFB)(void 0),this.computedIcon=(0,o.EW)(()=>{return null===this.startIcon()?null:this.startIcon()||(e=this.variant(),h[e]);var e}),this.iconSizeStyles=(0,o.EW)(()=>{var e;return null===(e=d[this.size()])||void 0===e?void 0:e.icon}),this.classList=(0,o.EW)(()=>[...u,...d[this.size()].label,...c[this.variant()]]),this.contentClasses=(0,o.EW)(()=>["tw-px-1","tw-text-start","tw-min-w-0","tw-flex-1",...this.truncate()?["tw-truncate",this.maxWidthClass()]:[]]),this.titleContent=(0,o.EW)(()=>{var e,t;const i=this.title();return void 0!==i?i:this.truncate()?(null===(t=null===(e=this.el.nativeElement)||void 0===e?void 0:e.textContent)||void 0===t?void 0:t.trim())||"":void 0})}}A.ɵfac=function(e){return new(e||A)},A.ɵcmp=r.VBU({type:A,selectors:[["span","bitBadge",""],["bit-badge"]],hostVars:3,hostBindings:function(e,t){2&e&&(r.BMQ("title",t.titleContent()),r.HbH(t.classList()))},inputs:{title:[1,"title"],variant:[1,"variant"],size:[1,"size"],truncate:[1,"truncate"],maxWidthClass:[1,"maxWidthClass"],startIcon:[1,"startIcon"]},attrs:["bitBadge",""],ngContentSelectors:["*"],decls:4,vars:3,consts:[[1,"tw-inline-flex","tw-min-w-0","tw-w-full","tw-max-w-full","tw-items-center","tw-gap-0.5"],[3,"name","class"],[3,"name"]],template:function(e,t){1&e&&(r.NAR(),r.j41(0,"div",0),r.nVh(1,l,1,3,"bit-icon",1),r.j41(2,"span"),r.SdG(3),r.k0s()()),2&e&&(r.R7$(),r.vxM(t.computedIcon()?1:-1),r.R7$(),r.HbH(t.contentClasses()))},dependencies:[a.R],encapsulation:2,changeDetection:0})},639(e,t,i){"use strict";i.d(t,{E:()=>s});var n=i(14041),r=i(11217);class s{}s.ɵfac=function(e){return new(e||s)},s.ɵmod=n.$C({type:s}),s.ɵinj=r.G2t({})},91326(e,t,i){"use strict";i.d(t,{K:()=>k});var n=i(46758),r=i(24590),s=i(11217),o=i(63477),a=i(92128),l=i(87806),c=i(36801),d=i(22191),u=i(89684),h=i(58806),A=i(14041),p=i(36288);const g=["*",[["","slot","actions"]]];function v(e,t){1&e&&A.SdG(0)}function m(e,t){if(1&e&&A.nrm(0,"bit-icon-tile",12)(1,"bit-icon-tile",13),2&e){const e=A.XpG(2),t=A.r8f(0);A.Y8G("icon",t)("variant",e.variant()),A.R7$(),A.Y8G("icon",t)("variant",e.variant())}}function f(e,t){1&e&&A.eu8(0)}function y(e,t){if(1&e){const e=A.RV6();A.j41(0,"button",14),A.nI1(1,"i18n"),A.bIt("click",function(){s.eBV(e);const t=A.XpG(2);return s.Njj(t.onDismiss())}),A.k0s()}2&e&&A.Y8G("label",A.bMT(1,1,"close"))}function b(e,t){if(1&e){const e=A.RV6();A.j41(0,"div",11)(1,"button",15),A.nI1(2,"i18n"),A.bIt("click",function(){s.eBV(e);const t=A.XpG(2);return s.Njj(t.onDismiss())}),A.k0s()()}2&e&&(A.R7$(),A.Y8G("label",A.bMT(2,1,"close")))}function C(e,t){if(1&e&&(A.j41(0,"div")(1,"div",3),A.nVh(2,m,2,4),A.j41(3,"div",4)(4,"div",5)(5,"div",6),A.EFF(6),A.k0s(),A.j41(7,"span",7),A.DNE(8,f,1,0,"ng-container",8),A.k0s()(),A.j41(9,"div",9),A.SdG(10,1),A.k0s(),A.nVh(11,y,2,3,"button",10),A.k0s(),A.nVh(12,b,3,3,"div",11),A.k0s()()),2&e){const e=A.XpG(),t=A.sdS(2),i=A.r8f(0);A.R7$(2),A.vxM(i?2:-1),A.R7$(4),A.SpI(" ",e.title()," "),A.R7$(2),A.Y8G("ngTemplateOutlet",t),A.R7$(3),A.vxM(e.isDismissible()?11:-1),A.R7$(),A.vxM(e.isDismissible()?12:-1)}}function I(e,t){if(1&e&&A.nrm(0,"bit-icon-tile",17),2&e){const e=A.XpG(2),t=A.r8f(0);A.Y8G("icon",t)("variant",e.variant())}}function w(e,t){1&e&&A.eu8(0)}function B(e,t){if(1&e){const e=A.RV6();A.j41(0,"div",19)(1,"button",15),A.nI1(2,"i18n"),A.bIt("click",function(){s.eBV(e);const t=A.XpG(2);return s.Njj(t.onDismiss())}),A.k0s()()}2&e&&(A.R7$(),A.Y8G("label",A.bMT(2,1,"close")))}function E(e,t){if(1&e&&(A.j41(0,"div")(1,"div",16),A.nVh(2,I,1,2,"bit-icon-tile",17),A.j41(3,"span",18),A.DNE(4,w,1,0,"ng-container",8),A.k0s()(),A.nVh(5,B,3,3,"div",19),A.k0s()),2&e){const e=A.XpG(),t=A.sdS(2),i=A.r8f(0);A.HbH(e.isDismissible()?"tw-pe-6":""),A.R7$(2),A.vxM(i?2:-1),A.R7$(2),A.Y8G("ngTemplateOutlet",t),A.R7$(),A.vxM(e.isDismissible()?5:-1)}}const S={primary:"bwi-info-circle",success:"bwi-star",warning:"bwi-exclamation-triangle",danger:"bwi-error"},Q={primary:"tw-bg-bg-brand-softer tw-border-b-border-brand-soft",success:"tw-bg-bg-success-soft tw-border-b-border-success-soft",warning:"tw-bg-bg-warning-soft tw-border-b-border-warning-soft",danger:"tw-bg-bg-danger-soft tw-border-b-border-danger-soft"};class k{constructor(){this.variant=(0,r.hFB)("primary"),this.title=(0,r.hFB)(),this.icon=(0,r.hFB)(),this.useAlertRole=(0,r.hFB)(!0),this.dismiss$=new l.B,this.dismiss=(0,a.p)(this.dismiss$),this.isDismissible=(0,s.vPA)(!1),this.displayIcon=(0,o.EW)(()=>{var e;return null===this.icon()?null:null!==(e=this.icon())&&void 0!==e?e:S[this.variant()]}),this.bannerClass=(0,o.EW)(()=>Q[this.variant()])}ngOnInit(){this.isDismissible.set(this.dismiss$.observed)}onDismiss(){this.dismiss$.next()}}k.ɵfac=function(e){return new(e||k)},k.ɵcmp=A.VBU({type:k,selectors:[["bit-banner"]],hostAttrs:[1,"tw-@container","tw-flex","tw-flex-col","[bit-layout_&]:-tw-mx-8","[bit-layout_&]:-tw-my-6","[bit-layout_&]:tw-pb-6"],inputs:{variant:[1,"variant"],title:[1,"title"],icon:[1,"icon"],useAlertRole:[1,"useAlertRole"]},outputs:{dismiss:"dismiss"},ngContentSelectors:["*","[slot='actions']"],decls:6,vars:6,consts:[["defaultContent",""],[1,"tw-relative","tw-border-solid","tw-border-b","tw-border-0","tw-p-4"],[3,"class"],[1,"tw-flex","tw-gap-3","tw-w-full"],[1,"tw-flex","tw-flex-col","tw-gap-3","@3xl:tw-flex-row","tw-pe-6","@3xl:tw-pe-0","tw-w-full"],[1,"@3xl:tw-me-auto"],[1,"!tw-text-sm","@3xl:!tw-text-lg","tw-text-main","tw-font-medium","@3xl:!tw-leading-6"],["bitTypography","body2",1,"tw-max-w-[800px]"],[4,"ngTemplateOutlet"],[1,"empty:tw-hidden","tw-flex","tw-gap-3","tw-items-start","tw-shrink-0"],["type","button","bitIconButton","bwi-close","buttonType","primaryGhost","size","small",1,"tw-hidden","@3xl:tw-block",3,"label"],[1,"tw-absolute","tw-end-2","tw-top-2","tw-block","@3xl:tw-hidden"],["size","sm","aria-hidden","true",1,"@3xl:tw-hidden",3,"icon","variant"],["size","lg","aria-hidden","true",1,"tw-hidden","@3xl:tw-block",3,"icon","variant"],["type","button","bitIconButton","bwi-close","buttonType","primaryGhost","size","small",1,"tw-hidden","@3xl:tw-block",3,"click","label"],["type","button","bitIconButton","bwi-close","buttonType","primaryGhost","size","small",3,"click","label"],[1,"tw-flex","tw-items-start","tw-gap-3","@3xl:tw-justify-center"],["size","sm","aria-hidden","true",3,"icon","variant"],["bitTypography","body2",1,"tw-mt-0.5","tw-max-w-[800px]"],[1,"tw-absolute","tw-end-2","tw-top-3"]],template:function(e,t){1&e&&(A.NAR(g),A.SS7(0),A.DNE(1,v,1,0,"ng-template",null,0,A.C5r),A.j41(3,"div",1),A.nVh(4,C,13,5,"div")(5,E,6,5,"div",2),A.k0s()),2&e&&(A.bH3(t.displayIcon()),A.R7$(3),A.HbH(t.bannerClass()),A.BMQ("role",t.useAlertRole()?"status":null)("aria-live",t.useAlertRole()?"polite":null),A.R7$(),A.vxM(t.title()?4:5))},dependencies:[n.T3,d.Q,p.s,u.F,h.r,c.$Z],encapsulation:2,changeDetection:0})},90097(e,t,i){"use strict";i.d(t,{H:()=>s});var n=i(14041),r=i(11217);class s{}s.ɵfac=function(e){return new(e||s)},s.ɵmod=n.$C({type:s}),s.ɵinj=r.G2t({})},16568(e,t,i){"use strict";i.d(t,{c:()=>a});var n=i(24590),r=i(63477),s=i(14041);function o(e,t){if(1&e&&s.EFF(0),2&e){const e=s.XpG();s.SpI(" ",e.content(),"\n")}}class a{constructor(){this.variant=(0,n.geq)("primary"),this.maxDigits=(0,n.hFB)(),this.value=(0,n.hFB)(),this.type=(0,n.hFB)("count"),this.content=(0,r.EW)(()=>{const e=this.value();if("status"===this.type()||!e||e<0)return;const t=this.maxDigits();return t&&e>=10**t?`${(10**t-1).toLocaleString()}+`:`${e.toLocaleString()}`}),this.textColor=(0,r.EW)(()=>"contrast"===this.variant()?"tw-text-fg-heading":"tw-text-fg-contrast"),this.padding=(0,r.EW)(()=>{var e,t;return(null!==(t=null===(e=this.content())||void 0===e?void 0:e.toString().length)&&void 0!==t?t:0)>2?"tw-px-1.5 tw-py-0.5":""}),this.containerClasses=(0,r.EW)(()=>["tw-inline-flex","tw-items-center","tw-justify-center","tw-align-middle","tw-text-xxs","tw-rounded-full",...{status:["tw-h-2","tw-w-2"],count:["tw-h-4","tw-min-w-4",this.padding()]}[this.type()],{primary:"tw-bg-bg-brand",subtle:"tw-bg-bg-contrast",success:"tw-bg-bg-success",warning:"tw-bg-bg-warning",danger:"tw-bg-bg-danger",accentPrimary:"tw-bg-fg-accent-primary-strong",contrast:"tw-bg-bg-primary"}[this.variant()],this.textColor()].join(" "))}}a.ɵfac=function(e){return new(e||a)},a.ɵcmp=s.VBU({type:a,selectors:[["bit-berry"]],hostVars:4,hostBindings:function(e,t){2&e&&(s.HbH(t.containerClasses()),s.AVh("!tw-hidden",!t.content()&&"count"===t.type()))},inputs:{variant:[1,"variant"],maxDigits:[1,"maxDigits"],value:[1,"value"],type:[1,"type"]},outputs:{variant:"variantChange"},decls:1,vars:1,template:function(e,t){1&e&&s.nVh(0,o,1,1),2&e&&s.vxM("status"===t.type()||t.content()?0:-1)},encapsulation:2,changeDetection:0})},88547(e,t,i){"use strict";i.d(t,{D:()=>A});var n=i(24590),r=i(14041),s=i(11217),o=i(92128),a=i(26983),l=i(68711),c=i(55807),d=i(58384);function u(e,t){1&e&&r.nrm(0,"bit-icon",0),2&e&&r.Y8G("name",t)}function h(e,t){if(1&e&&(r.nVh(0,u,1,1,"bit-icon",0),r.SdG(1)),2&e){let e;const t=r.XpG();r.vxM((e=t.icon())?0:-1,e)}}class A{checkActiveRoute(){const e=this.route();if(!e)return;let t="";t="string"==typeof e||e instanceof a.el?e:this.router.createUrlTree(e);const i=this.router.isActive(t,{paths:"subset",queryParams:"exact",fragment:"ignored",matrixParams:"ignored"});this.isActiveRoute.set(i)}constructor(){this.icon=(0,n.hFB)(),this.route=(0,n.hFB)(),this.queryParams=(0,n.hFB)({}),this.queryParamsHandling=(0,n.hFB)(),this.click=(0,n.CGW)(),this.content=(0,n.ebz)(r.C4Q),this.router=(0,s.WQX)(a.Ix),this.isActiveRoute=(0,s.vPA)(!1),this.router.events.pipe((0,o.pQ)(),(0,l.p)(e=>e instanceof a.wF)).subscribe(e=>this.checkActiveRoute())}onClick(e){this.click.emit(e)}}A.ɵfac=function(e){return new(e||A)},A.ɵcmp=r.VBU({type:A,selectors:[["bit-breadcrumb"]],viewQuery:function(e,t){1&e&&r.wEZ(t.content,r.C4Q,5),2&e&&r.NyB()},inputs:{icon:[1,"icon"],route:[1,"route"],queryParams:[1,"queryParams"],queryParamsHandling:[1,"queryParamsHandling"]},outputs:{click:"click"},ngContentSelectors:["*"],decls:1,vars:0,consts:[[1,"tw-me-2",3,"name"]],template:function(e,t){1&e&&(r.NAR(),r.DNE(0,h,2,1,"ng-template"))},dependencies:[c.o,d.R],encapsulation:2,changeDetection:0})},1576(e,t,i){"use strict";i.d(t,{m:()=>j});var n=i(46758),r=i(24590),s=i(11217),o=i(63477),a=i(84522),l=i(50700),c=i(36801),d=i(55807),u=i(22191),h=i(26477),A=i(90647),p=i(75583),g=i(88547),v=i(14041),m=i(58384),f=i(36288),y=i(13496),b=i(73848),C=i(78952),I=i(58806);const w=e=>({breadcrumb:e});function B(e,t){if(1&e&&v.nrm(0,"bit-icon",6),2&e){const e=v.XpG();v.HbH("small"===e.size()?"tw-text-sm tw-mt-1 tw-mx-2":"tw-text-xl tw-mt-0.5 tw-mx-3")}}function E(e,t){if(1&e&&(v.j41(0,"a",9),v.eu8(1,5),v.k0s()),2&e){const e=v.XpG().breadcrumb,t=v.XpG();v.HbH(t.breadcrumbStyles),v.Y8G("routerLink",e.route())("queryParams",e.queryParams())("queryParamsHandling",e.queryParamsHandling())("bitTypography","small"===t.size()?"h6":"h3"),v.R7$(),v.Y8G("ngTemplateOutlet",e.content())}}function S(e,t){if(1&e&&(v.j41(0,"span",10),v.eu8(1,5),v.k0s()),2&e){const e=v.XpG().breadcrumb,t=v.XpG();v.HbH(t.activeBreadcrumbStyles),v.Y8G("bitTypography","small"===t.size()?"h6":"h3"),v.R7$(),v.Y8G("ngTemplateOutlet",e.content())}}function Q(e,t){if(1&e&&v.nVh(0,E,2,7,"a",7)(1,S,2,4,"span",8),2&e){const e=t.breadcrumb;v.vxM(e.isActiveRoute()?1:0)}}function k(e,t){if(1&e){const e=v.RV6();v.j41(0,"button",11),v.bIt("click",function(t){const i=s.eBV(e).breadcrumb;return s.Njj(i.onClick(t))}),v.eu8(1,5),v.k0s()}if(2&e){const e=t.breadcrumb,i=v.XpG();v.HbH(i.breadcrumbStyles),v.Y8G("bitTypography","small"===i.size()?"h6":"h3"),v.R7$(),v.Y8G("ngTemplateOutlet",e.content())}}function R(e,t){if(1&e&&v.eu8(0,12),2&e){const e=v.XpG().breadcrumb;v.XpG();const t=v.sdS(3);v.Y8G("ngTemplateOutlet",t)("ngTemplateOutletContext",v.eq3(2,w,e))}}function F(e,t){if(1&e&&v.eu8(0,12),2&e){const e=v.XpG().breadcrumb;v.XpG();const t=v.sdS(5);v.Y8G("ngTemplateOutlet",t)("ngTemplateOutletContext",v.eq3(2,w,e))}}function T(e,t){if(1&e&&v.nVh(0,R,1,4,"ng-container",12)(1,F,1,4,"ng-container",12),2&e){const e=t.breadcrumb;v.vxM(e.route()?0:1)}}function D(e,t){if(1&e&&v.eu8(0,5),2&e){v.XpG(2);const e=v.sdS(1);v.Y8G("ngTemplateOutlet",e)}}function P(e,t){if(1&e&&(v.eu8(0,12),v.nVh(1,D,1,1,"ng-container",5)),2&e){const e=t.$implicit,i=t.$index,n=t.$count;v.XpG();const r=v.sdS(7);v.Y8G("ngTemplateOutlet",r)("ngTemplateOutletContext",v.eq3(3,w,e)),v.R7$(),v.vxM(i!==n-1?1:-1)}}function M(e,t){if(1&e&&v.eu8(0,5),2&e){v.XpG(2);const e=v.sdS(1);v.Y8G("ngTemplateOutlet",e)}}function x(e,t){if(1&e&&(v.j41(0,"a",14),v.eu8(1,5),v.k0s()),2&e){const e=v.XpG().$implicit;v.Y8G("routerLink",t)("queryParams",e.queryParams())("queryParamsHandling",e.queryParamsHandling()),v.R7$(),v.Y8G("ngTemplateOutlet",e.content())}}function V(e,t){if(1&e){const e=v.RV6();v.j41(0,"button",16),v.bIt("click",function(t){s.eBV(e);const i=v.XpG().$implicit;return s.Njj(i.onClick(t))}),v.eu8(1,5),v.k0s()}if(2&e){const e=v.XpG().$implicit;v.R7$(),v.Y8G("ngTemplateOutlet",e.content())}}function G(e,t){if(1&e&&v.nVh(0,x,2,4,"a",14)(1,V,2,1,"button",15),2&e){let e;const i=t.$implicit;v.vxM((e=i.route())?0:1,e)}}function U(e,t){if(1&e&&v.eu8(0,12),2&e){v.XpG(2);const e=v.sdS(7);v.Y8G("ngTemplateOutlet",e)("ngTemplateOutletContext",v.eq3(2,w,t))}}function O(e,t){if(1&e&&(v.nVh(0,M,1,1,"ng-container",5),v.nrm(1,"button",13),v.nI1(2,"i18n"),v.j41(3,"bit-menu",null,4),v.Z7z(5,G,2,1,null,null,v.fX1),v.k0s(),v.eu8(7,5),v.nVh(8,U,1,4,"ng-container",12)),2&e){let e;const t=v.sdS(4),i=v.XpG(),n=v.sdS(1);v.vxM(i.beforeOverflow().length>0?0:-1),v.R7$(),v.Y8G("bitMenuTriggerFor",t)("label",v.bMT(2,5,"moreBreadcrumbs")),v.R7$(4),v.Dyx(i.overflow()),v.R7$(2),v.Y8G("ngTemplateOutlet",n),v.R7$(),v.vxM((e=i.afterOverflow())?8:-1,e)}}function N(e,t){if(1&e&&v.eu8(0,5),2&e){v.XpG();const e=v.sdS(1);v.Y8G("ngTemplateOutlet",e)}}class j{constructor(){this.i18nService=(0,s.WQX)(l.W),this.ariaLabel=this.i18nService.t("breadcrumbs"),this.show=(0,r.hFB)(4),this.size=(0,r.hFB)("base"),this.showTrailingArrow=(0,r.hFB)(!1,Object.assign(Object.assign({},{}),{transform:r.L39})),this.breadcrumbs=(0,r.tEk)(g.D),this.activeBreadcrumb=(0,o.EW)(()=>this.breadcrumbs().find(e=>e.isActiveRoute())),this.hasOverflow=(0,o.EW)(()=>this.breadcrumbs().length>this.show()),this.beforeOverflow=(0,o.EW)(()=>{const e=this.breadcrumbs(),t=this.show();return e.length>t?e.slice(0,t-1):e}),this.overflow=(0,o.EW)(()=>this.breadcrumbs().slice(this.show()-1,-1)),this.afterOverflow=(0,o.EW)(()=>this.breadcrumbs().at(-1)),this.baseStyles=["tw-inline-block","!tw-m-0","focus-visible:!tw-text-fg-brand","focus-visible:!tw-rounded","focus-visible:tw-outline-none","focus-visible:tw-ring-2","focus-visible:tw-ring-border-focus"],this.breadcrumbStyles=[...this.baseStyles,"!tw-text-fg-body","hover:!tw-text-fg-brand"],this.activeBreadcrumbStyles=[...this.baseStyles,"!tw-text-fg-heading"]}}j.ɵfac=function(e){return new(e||j)},j.ɵcmp=v.VBU({type:j,selectors:[["bit-breadcrumbs"]],contentQueries:function(e,t,i){1&e&&v.C6U(i,t.breadcrumbs,g.D,4),2&e&&v.NyB()},hostAttrs:["role","navigation"],hostVars:1,hostBindings:function(e,t){2&e&&v.BMQ("aria-label",t.ariaLabel)},inputs:{show:[1,"show"],size:[1,"size"],showTrailingArrow:[1,"showTrailingArrow"]},decls:12,vars:2,consts:[["arrow",""],["breadcrumbLink",""],["breadcrumbButton",""],["breadcrumbLinkOrButton",""],["overflowMenu",""],[3,"ngTemplateOutlet"],["name","bwi-angle-right",1,"tw-text-fg-body"],[3,"class","routerLink","queryParams","queryParamsHandling","bitTypography"],["aria-current","page","tabindex","0",3,"class","bitTypography"],[3,"routerLink","queryParams","queryParamsHandling","bitTypography"],["aria-current","page","tabindex","0",3,"bitTypography"],["type","button",3,"click","bitTypography"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button","bitIconButton","bwi-ellipsis-h","size","small",3,"bitMenuTriggerFor","label"],["bitMenuItem","",3,"routerLink","queryParams","queryParamsHandling"],["type","button","bitMenuItem",""],["type","button","bitMenuItem","",3,"click"]],template:function(e,t){1&e&&(v.DNE(0,B,1,2,"ng-template",null,0,v.C5r)(2,Q,2,1,"ng-template",null,1,v.C5r)(4,k,2,4,"ng-template",null,2,v.C5r)(6,T,2,1,"ng-template",null,3,v.C5r),v.Z7z(8,P,2,5,null,null,v.fX1),v.nVh(10,O,9,7),v.nVh(11,N,1,1,"ng-container",5)),2&e&&(v.R7$(8),v.Dyx(t.beforeOverflow()),v.R7$(2),v.vxM(t.hasOverflow()?10:-1),v.R7$(),v.vxM(t.showTrailingArrow()?11:-1))},dependencies:[n.MD,n.T3,h.V,a.iI,a.Wk,d.o,m.R,u.Q,f.s,A.M,y.Z,b.O,C.S,p.E,I.r,c.$Z],encapsulation:2,changeDetection:0})},56615(e,t,i){"use strict";i.d(t,{V:()=>o});var n=i(1576),r=i(14041),s=i(11217);class o{}o.ɵfac=function(e){return new(e||o)},o.ɵmod=r.$C({type:o}),o.ɵinj=s.G2t({imports:[n.m]})},56898(e,t,i){"use strict";i.d(t,{Q:()=>g});var n=i(24590),r=i(14041),s=i(11217),o=i(63477),a=i(43749),l=i(53100),c=i(83632),d=i(6307),u=i(23542);function h(e,t){if(1&e&&r.nrm(0,"i"),2&e){const e=r.XpG();r.HbH(e.startIconClasses())}}function A(e,t){if(1&e&&r.nrm(0,"i"),2&e){const e=r.XpG();r.HbH(e.endIconClasses())}}function p(e,t){if(1&e&&(r.j41(0,"span",3),r.nrm(1,"bit-spinner",4),r.k0s()),2&e){const e=r.XpG();r.R7$(),r.Y8G("size",e.spinnerSize())}}class g{get showLoadingStyle(){return this.baseButton.showLoadingStyle}constructor(){this.baseButton=(0,s.WQX)(a.$H),this.el=(0,s.WQX)(r.aKT),this.loading=this.baseButton.loading,this.disabled=this.baseButton.disabled,this.startIcon=(0,n.hFB)(void 0),this.endIcon=(0,n.hFB)(void 0),this.size=(0,n.geq)("default"),this.startIconClasses=(0,o.EW)(()=>["bwi",this.startIcon()]),this.endIconClasses=(0,o.EW)(()=>["bwi",this.endIcon()]),this.spinnerSize=(0,o.EW)(()=>"small"===this.size()?"sm":"md"),this.classList=(0,o.EW)(()=>{const e=[];return e.push("tw-rounded-xl"),this.baseButton.block()?e.push("tw-w-full","tw-block"):e.push("tw-inline-block"),e.push(...v(this.size())),e.join(" ")}),(0,d.m)(this.el.nativeElement,this.baseButton.disabledAttr)}}g.ɵfac=function(e){return new(e||g)},g.ɵcmp=r.VBU({type:g,selectors:[["button","bitButton",""],["a","bitButton",""]],hostVars:2,hostBindings:function(e,t){2&e&&r.HbH(t.classList())},inputs:{startIcon:[1,"startIcon"],endIcon:[1,"endIcon"],size:[1,"size"]},outputs:{size:"sizeChange"},features:[r.Jv_([{provide:l.E,useExisting:g}]),r.nM4([u.v,{directive:a.$H,inputs:["loading","loading","disabled","disabled","buttonType","buttonType","block","block"]}])],attrs:["bitButton",""],ngContentSelectors:["*"],decls:7,vars:5,consts:[[1,"tw-relative","tw-flex","tw-items-center","tw-justify-center"],[1,"tw-flex","tw-items-center","tw-gap-2"],[3,"class"],[1,"tw-absolute","tw-inset-0","tw-flex","tw-items-center","tw-justify-center"],[3,"size"]],template:function(e,t){1&e&&(r.NAR(),r.j41(0,"span",0)(1,"span",1),r.nVh(2,h,1,2,"i",2),r.j41(3,"div"),r.SdG(4),r.k0s(),r.nVh(5,A,1,2,"i",2),r.k0s(),r.nVh(6,p,2,1,"span",3),r.k0s()),2&e&&(r.R7$(),r.AVh("tw-invisible",t.showLoadingStyle()),r.R7$(),r.vxM(t.startIcon()?2:-1),r.R7$(3),r.vxM(t.endIcon()?5:-1),r.R7$(),r.vxM(t.showLoadingStyle()?6:-1))},dependencies:[c.t],encapsulation:2});const v=e=>{const t={small:["tw-pt-[calc(theme(spacing.2)_-_1px)]","tw-pb-[calc(theme(spacing.2)_-_1px)]","tw-px-3","tw-text-xs/4"],default:["tw-pt-[calc(0.625rem_-_1px)]","tw-pb-[calc(0.625rem_-_1px)]","tw-px-4","tw-text-sm/5"],large:["tw-pt-[calc(theme(spacing.3)_-_1px)]","tw-pb-[calc(theme(spacing.3)_-_1px)]","tw-px-4","tw-text-base/6"]};return t[e]||t.default}},29029(e,t,i){"use strict";i.d(t,{t:()=>s});var n=i(14041),r=i(11217);class s{}s.ɵfac=function(e){return new(e||s)},s.ɵmod=n.$C({type:s}),s.ɵinj=r.G2t({})},44432(e,t,i){"use strict";i.d(t,{G:()=>R});var n=i(46758),r=i(24590),s=i(11217),o=i(63477),a=i(92128),l=i(87806),c=i(55807),d=i(22191),u=i(75583),h=i(14041),A=i(50700),p=i(58806),g=i(36288),v=i(58384);const m=[[["","slot","end"]],"*",[["","slot","title"]]];function f(e,t){1&e&&(h.j41(0,"div",9),h.SdG(1,1),h.k0s())}function y(e,t){if(1&e&&h.nrm(0,"bit-icon",5),2&e){h.XpG();const e=h.r8f(1);h.Y8G("name",e)}}function b(e,t){if(1&e&&(h.j41(0,"header",6),h.SdG(1,2),h.EFF(2),h.k0s()),2&e){const e=h.XpG(),t=h.r8f(0);h.Y8G("id",e.titleId),h.R7$(2),h.SpI(" ",t," ")}}function C(e,t){1&e&&h.eu8(0)}function I(e,t){if(1&e&&h.DNE(0,C,1,0,"ng-container",10),2&e){h.XpG();const e=h.sdS(4);h.Y8G("ngTemplateOutlet",e)}}function w(e,t){if(1&e){const e=h.RV6();h.j41(0,"button",11),h.bIt("click",function(){s.eBV(e);const t=h.XpG();return s.Njj(t.onDismiss())}),h.k0s()}if(2&e){const e=h.XpG();h.HbH(e.fgClass()),h.Y8G("label",e.closeLabel)}}function B(e,t){1&e&&h.eu8(0)}function E(e,t){if(1&e&&h.DNE(0,B,1,0,"ng-container",10),2&e){h.XpG();const e=h.sdS(4);h.Y8G("ngTemplateOutlet",e)}}const S={success:"bwi-check-circle",info:"bwi-info-circle",warning:"bwi-exclamation-triangle",danger:"bwi-error",subtle:"bwi-info-circle"},Q={warning:"warning",danger:"error"};let k=0;class R{onDismiss(){this.dismiss$.next()}ngOnInit(){this.isDismissible.set(this.dismiss$.observed)}constructor(e){this.i18nService=e,this.type=(0,r.hFB)("info"),this.icon=(0,r.hFB)(),this.title=(0,r.hFB)(),this.accessibleName=(0,r.hFB)(),this.closeLabel=this.i18nService.t("close"),this.calloutId=k++,this.dismiss$=new l.B,this.dismiss=(0,a.p)(this.dismiss$),this.isDismissible=(0,s.vPA)(!1),this.iconComputed=(0,o.EW)(()=>{if(null!==this.icon())return this.icon()||S[this.type()]}),this.titleComputed=(0,o.EW)(()=>{const e=this.title();if(null===e)return;const t=this.type();return null==e&&null!=Q[t]?this.i18nService.t(Q[t]):e}),this.titleId=`bit-callout-title-${this.calloutId}`,this.variantClass=(0,o.EW)(()=>{switch(this.type()){case"danger":return"tw-bg-bg-danger-soft tw-border-border-danger-soft";case"info":return"tw-bg-bg-brand-softer tw-border-border-brand-soft";case"success":return"tw-bg-bg-success-soft tw-border-border-success-soft";case"warning":return"tw-bg-bg-warning-soft tw-border-border-warning-soft";case"subtle":return"tw-bg-bg-secondary tw-border-border-base"}}),this.fgClass=(0,o.EW)(()=>{switch(this.type()){case"danger":return"!tw-text-fg-danger-strong";case"info":return"!tw-text-fg-brand-strong";case"success":return"!tw-text-fg-success-strong";case"warning":return"!tw-text-fg-warning-strong";case"subtle":return"!tw-text-fg-heading"}}),this.paddingClass=(0,o.EW)(()=>this.title()?"tw-pt-3 tw-pb-4":"tw-py-2"),this.calloutClass=(0,o.EW)(()=>`${this.variantClass()} ${this.fgClass()} ${this.paddingClass()}`),this.paddingTopClass=(0,o.EW)(()=>this.isDismissible()?"tw-pt-1.5":void 0),this.accessibleLandmarkName=(0,o.EW)(()=>{var e;return null!==(e=this.accessibleName())&&void 0!==e?e:`${this.i18nService.t("callout")} ${this.calloutId+1}, ${this.type()}`})}}R.ɵfac=function(e){return new(e||R)(h.rXU(A.W))},R.ɵcmp=h.VBU({type:R,selectors:[["bit-callout"]],inputs:{type:[1,"type"],icon:[1,"icon"],title:[1,"title"],accessibleName:[1,"accessibleName"]},outputs:{dismiss:"dismiss"},ngContentSelectors:["[slot=end]","*","[slot=title]"],decls:15,vars:12,consts:[["contentTpl",""],[1,"tw-mb-4","tw-border","tw-border-solid","tw-rounded-xl","tw-ps-4","tw-pe-2","tw-flex","tw-flex-col","tw-relative"],[1,"tw-flex","tw-flex-col","tw-gap-2"],[1,"tw-flex","tw-justify-between"],[1,"tw-flex","tw-gap-2","tw-items-baseline"],[3,"name"],[1,"tw-text-base","tw-font-medium",3,"id"],["type","button","bitIconButton","bwi-close","buttonType","subtleGhost","size","small",1,"tw-shrink-0",3,"class","label"],[1,"tw-flex","tw-gap-3","[&>*]:tw-mt-4"],["bitTypography","body2",1,"tw-pr-4"],[4,"ngTemplateOutlet"],["type","button","bitIconButton","bwi-close","buttonType","subtleGhost","size","small",1,"tw-shrink-0",3,"click","label"]],template:function(e,t){if(1&e&&(h.NAR(m),h.SS7(0)(1),h.j41(2,"aside",1),h.DNE(3,f,2,0,"ng-template",null,0,h.C5r),h.j41(5,"div",2)(6,"div",3)(7,"div",4),h.nVh(8,y,1,1,"bit-icon",5),h.nVh(9,b,3,2,"header",6)(10,I,1,1,"ng-container"),h.k0s(),h.nVh(11,w,1,3,"button",7),h.k0s(),h.nVh(12,E,1,1,"ng-container"),h.k0s(),h.j41(13,"div",8),h.SdG(14),h.k0s()()),2&e){const e=h.bH3(t.titleComputed());h.R7$();const i=h.bH3(t.iconComputed());h.R7$(),h.HbH(t.calloutClass()),h.BMQ("aria-labelledby",e?t.titleId:null)("aria-label",e?null:t.accessibleLandmarkName()),h.R7$(5),h.HbH(t.paddingTopClass()),h.R7$(),h.vxM(i?8:-1),h.R7$(),h.vxM(e?9:10),h.R7$(2),h.vxM(t.isDismissible()?11:-1),h.R7$(),h.vxM(e?12:-1)}},dependencies:[n.MD,n.T3,u.E,p.r,d.Q,g.s,c.o,v.R],encapsulation:2,changeDetection:0})},80351(e,t,i){"use strict";i.d(t,{j:()=>o});var n=i(44432),r=i(14041),s=i(11217);class o{}o.ɵfac=function(e){return new(e||o)},o.ɵmod=r.$C({type:o}),o.ɵinj=s.G2t({imports:[n.G]})},67379(e,t,i){"use strict";i.d(t,{f:()=>s});var n=i(14041),r=i(7421);class s{}s.ɵfac=function(e){return new(e||s)},s.ɵcmp=n.VBU({type:s,selectors:[["bit-base-card"]],features:[n.nM4([r.T])],ngContentSelectors:["*"],decls:1,vars:0,template:function(e,t){1&e&&(n.NAR(),n.SdG(0))},encapsulation:2})},7421(e,t,i){"use strict";i.d(t,{T:()=>r});var n=i(14041);class r{}r.ɵfac=function(e){return new(e||r)},r.ɵdir=n.FsC({type:r,hostAttrs:[1,"tw-box-border","tw-block","tw-bg-background","tw-text-main","tw-border","tw-border-solid","tw-border-secondary-100","tw-shadow","tw-rounded-xl"]})},14318(e,t,i){"use strict";i.d(t,{i:()=>s});var n=i(14041),r=i(7421);class s{}s.ɵfac=function(e){return new(e||s)},s.ɵcmp=n.VBU({type:s,selectors:[["bit-card"]],hostAttrs:[1,"tw-p-4","[@media(min-width:650px)]:tw-p-6"],features:[n.nM4([r.T])],ngContentSelectors:["*"],decls:1,vars:0,template:function(e,t){1&e&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0})},50352(e,t,i){"use strict";i.d(t,{P:()=>h});var n=i(24590),r=i(14041),s=i(11217),o=i(63477),a=i(84210),l=i(15033),c=i(38867),d=i(42016);let u=0;class h{constructor(){this.inputEl=(0,s.WQX)(r.aKT),this.group=(0,s.WQX)(d.W,{optional:!0}),this.card=(0,s.WQX)(c.b,{optional:!0}),this.id=(0,n.hFB)("bit-checkbox-"+u++),this.cardLabelledBy=(0,o.EW)(()=>{var e,t;return null!==(t=null===(e=this.card)||void 0===e?void 0:e.labelId)&&void 0!==t?t:null}),this.cardDescribedBy=(0,o.EW)(()=>this.card&&[this.card.effectiveErrorId,this.card.effectiveHintId()].filter(Boolean).join(" ")||null),this.inputClasses=["tw-appearance-none","tw-outline-none","tw-box-border","tw-relative","tw-transition","tw-cursor-pointer","disabled:tw-cursor-default","tw-inline-block","tw-align-sub","tw-flex-none","tw-h-6","tw-w-6","tw-rounded-lg","!-tw-mt-px","!-tw-mb-px","!-tw-ms-px","hover:tw-bg-bg-hover","focus-visible:tw-bg-bg-hover","before:tw-content-['']","before:tw-block","before:tw-inset-1","before:tw-absolute","before:tw-bg-bg-tertiary","before:tw-h-4","before:tw-w-4","before:tw-rounded","before:tw-border","before:tw-border-solid","before:tw-border-border-strong","before:tw-box-border","after:tw-content-['']","after:tw-block","after:tw-absolute","after:tw-inset-1","after:tw-h-4","after:tw-w-4","after:tw-box-border","[&:not(bit-form-control_*,bit-form-control-card_*)]:focus-visible:before:tw-ring-2","[&:not(bit-form-control_*,bit-form-control-card_*)]:focus-visible:before:tw-ring-offset-2","[&:not(bit-form-control_*,bit-form-control-card_*)]:focus-visible:before:tw-ring-border-focus","disabled:hover:tw-bg-transparent","disabled:before:tw-cursor-default","disabled:before:tw-border-border-base","disabled:before:hover:tw-border-border-base","disabled:before:tw-bg-bg-inactive","disabled:hover:before:tw-bg-bg-inactive","checked:before:tw-bg-bg-brand","checked:before:tw-border-border-brand","checked:before:hover:tw-bg-bg-brand","checked:before:hover:tw-border-border-brand","[&>label:hover]:checked:before:tw-bg-bg-brand","[&>label:hover]:checked:before:tw-border-border-brand","checked:after:tw-bg-fg-contrast","checked:after:tw-mask-position-[center]","checked:after:tw-mask-repeat-[no-repeat]","checked:disabled:before:tw-border-border-base","checked:disabled:hover:before:tw-border-border-base","checked:disabled:before:tw-bg-bg-inactive","checked:disabled:after:tw-bg-fg-inactive","[&:not(:indeterminate)]:checked:after:tw-mask-image-[var(--check-mask)]","indeterminate:after:tw-mask-image-[var(--indeterminate-mask-image)]","indeterminate:before:tw-bg-bg-brand","indeterminate:before:tw-border-border-brand","indeterminate:hover:before:tw-bg-bg-brand","indeterminate:hover:before:tw-border-border-brand","[&>label:hover]:indeterminate:before:tw-bg-bg-brand","[&>label:hover]:indeterminate:before:tw-border-border-brand","indeterminate:after:tw-bg-fg-contrast","indeterminate:after:tw-mask-position-[center]","indeterminate:after:tw-mask-repeat-[no-repeat]","indeterminate:after:tw-mask-image-[var(--indeterminate-mask-image)]","indeterminate:disabled:before:tw-border-border-base","indeterminate:disabled:hover:before:tw-border-border-base","indeterminate:disabled:before:tw-bg-bg-inactive","indeterminate:disabled:after:tw-bg-fg-inactive"],this.ngControl=(0,s.WQX)(a.vO,{optional:!0,self:!0}),this.value=(0,n.hFB)(),this.isGroupChecked=(0,o.EW)(()=>this.group&&void 0!==this.value()?this.group.selectedValues().includes(this.value()):this.inputEl.nativeElement.checked),this.checkMask="url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.54972 15.15L18.0247 6.675C18.2247 6.475 18.4581 6.375 18.7247 6.375C18.9914 6.375 19.2247 6.475 19.4247 6.675C19.6247 6.875 19.7247 7.1125 19.7247 7.3875C19.7247 7.6625 19.6247 7.9 19.4247 8.1L10.2497 17.3C10.0497 17.5 9.81639 17.6 9.54972 17.6C9.28305 17.6 9.04972 17.5 8.84972 17.3L4.54972 13C4.34972 12.8 4.25389 12.5625 4.26222 12.2875C4.27055 12.0125 4.37472 11.775 4.57472 11.575C4.77472 11.375 5.01222 11.275 5.28722 11.275C5.56222 11.275 5.79972 11.375 5.99972 11.575L9.54972 15.15Z' fill='currentColor'/%3E%3C/svg%3E\")",this.indeterminateImage="url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 13C5.71667 13 5.47917 12.9042 5.2875 12.7125C5.09583 12.5208 5 12.2833 5 12C5 11.7167 5.09583 11.4792 5.2875 11.2875C5.47917 11.0958 5.71667 11 6 11H18C18.2833 11 18.5208 11.0958 18.7125 11.2875C18.9042 11.4792 19 11.7167 19 12C19 12.2833 18.9042 12.5208 18.7125 12.7125C18.5208 12.9042 18.2833 13 18 13H6Z' fill='currentColor'/%3E%3C/svg%3E\")",this.disabledInput=(0,n.hFB)(!1,Object.assign(Object.assign({},{}),{transform:n.L39,alias:"disabled"}))}get inputId(){return this.id()}onGroupChange(){this.group&&void 0!==this.value()&&this.group.onItemChange(this.value())}get disabled(){var e,t;return this.disabledInput()||(null===(e=this.ngControl)||void 0===e?void 0:e.disabled)||(null===(t=this.group)||void 0===t?void 0:t.groupDisabled())||!1}get required(){var e,t,i;return null!==(i=null===(t=null===(e=this.ngControl)||void 0===e?void 0:e.control)||void 0===t?void 0:t.hasValidator(a.k0.requiredTrue))&&void 0!==i&&i}get hasError(){var e,t;return!("INVALID"!==(null===(e=this.ngControl)||void 0===e?void 0:e.status)||!(null===(t=this.ngControl)||void 0===t?void 0:t.touched))}get error(){var e,t;const i=null!==(t=null===(e=this.ngControl)||void 0===e?void 0:e.errors)&&void 0!==t?t:{},n=Object.keys(i)[0];return[n,i[n]]}}h.ɵfac=function(e){return new(e||h)},h.ɵcmp=r.VBU({type:h,selectors:[["input","type","checkbox","bitCheckbox",""]],hostVars:11,hostBindings:function(e,t){1&e&&r.bIt("change",function(){return t.onGroupChange()}),2&e&&(r.Avn("id",t.id())("checked",t.isGroupChecked())("disabled",t.disabled),r.BMQ("aria-labelledby",t.cardLabelledBy())("aria-describedby",t.cardDescribedBy()),r.HbH(t.inputClasses),r.xc7("--check-mask",t.checkMask)("--indeterminate-mask-image",t.indeterminateImage))},inputs:{id:[1,"id"],value:[1,"value"],disabledInput:[1,"disabled","disabledInput"]},features:[r.Jv_([{provide:l.J,useExisting:h}])],attrs:["type","checkbox","bitCheckbox",""],decls:0,vars:0,template:function(e,t){},encapsulation:2,changeDetection:0})},47135(e,t,i){"use strict";i.d(t,{q:()=>s});var n=i(14041),r=i(11217);class s{}s.ɵfac=function(e){return new(e||s)},s.ɵmod=n.$C({type:s}),s.ɵinj=r.G2t({})},58604(e,t,i){"use strict";i.d(t,{g:()=>l});var n=i(24590),r=i(11217),s=i(67519),o=i(90143),a=i(14041);class l{constructor(){this.baseChip=(0,r.WQX)(s.rg,{host:!0}),this.startIcon=(0,n.hFB)(),this.label=(0,n.hFB)("")}}l.ɵfac=function(e){return new(e||l)},l.ɵcmp=a.VBU({type:l,selectors:[["a","bit-chip-action",""],["button","bit-chip-action",""]],inputs:{startIcon:[1,"startIcon"],label:[1,"label"]},features:[a.nM4([{directive:s.rg,inputs:["variant","variant","size","size","disabled","disabled","maxWidthClass","maxWidthClass"]}])],attrs:["bit-chip-action",""],decls:2,vars:3,consts:[[3,"startIcon","size"]],template:function(e,t){1&e&&(a.j41(0,"bit-chip-content",0),a.EFF(1),a.k0s()),2&e&&(a.Y8G("startIcon",t.startIcon())("size",t.baseChip.size()),a.R7$(),a.SpI(" ",t.label(),"\n"))},dependencies:[o.l],encapsulation:2,changeDetection:0})},5884(e,t,i){"use strict";i.d(t,{W:()=>T});var n=i(46758),r=i(24590),s=i(11217),o=i(63477),a=i(84210),l=i(90586),c=i(36801),d=i(29029),u=i(58384),h=i(22191),A=i(90647),p=i(13496),g=i(73848),v=i(78952),m=i(75583),f=i(67519),y=i(90143),b=i(26193),C=i(14041);const I=["chipSelectButton"],w=e=>({width:e}),B=(e,t)=>t.value;function E(e,t){if(1&e){const e=C.RV6();C.j41(0,"button",8),C.nI1(1,"i18n"),C.bIt("click",function(){s.eBV(e);const t=C.XpG();return s.Njj(t.clear())}),C.k0s()}if(2&e){const e=C.XpG();C.Y8G("disabled",e.disabled()),C.BMQ("aria-label",C.i5U(1,2,"removeItem",e.label))}}function S(e,t){var i,n;if(1&e){const e=C.RV6();C.j41(0,"button",10),C.nI1(1,"i18n"),C.bIt("click",function(t){const i=s.eBV(e),n=C.XpG(2);return s.Njj(n.viewOption(i,t))}),C.nrm(2,"bit-icon",11),C.EFF(3),C.nI1(4,"i18n"),C.k0s(),C.j41(5,"button",10),C.nI1(6,"i18n"),C.bIt("click",function(t){s.eBV(e);const i=C.XpG(2);return s.Njj(i.selectOption(i.renderedOptions,t))}),C.nrm(7,"bit-icon",12),C.EFF(8),C.nI1(9,"i18n"),C.k0s()}if(2&e){const e=t,r=C.XpG(2);C.Y8G("title",C.i5U(1,4,"backTo",null!==(i=e.label)&&void 0!==i?i:r.placeholderText())),C.R7$(3),C.SpI(" ",C.i5U(4,7,"backTo",null!==(n=e.label)&&void 0!==n?n:r.placeholderText())," "),C.R7$(2),C.Y8G("title",C.i5U(6,10,"viewItemsIn",r.renderedOptions.label)),C.R7$(3),C.SpI(" ",C.i5U(9,13,"viewItemsIn",r.renderedOptions.label)," ")}}function Q(e,t){if(1&e&&C.nrm(0,"bit-icon",16),2&e){const e=C.XpG().$implicit;C.HbH(e.iconClass),C.Y8G("name",e.icon)}}function k(e,t){1&e&&C.nrm(0,"bit-icon",15)}function R(e,t){if(1&e){const e=C.RV6();C.j41(0,"button",13),C.bIt("click",function(t){const i=s.eBV(e).$implicit,n=C.XpG(2);return s.Njj(null!=i.children&&i.children.length?n.viewOption(i,t):n.selectOption(i,t))}),C.nVh(1,Q,1,3,"bit-icon",14),C.EFF(2),C.nVh(3,k,1,0,"bit-icon",15),C.k0s()}if(2&e){const e=t.$implicit;C.Y8G("disabled",e.disabled)("title",e.label),C.BMQ("aria-haspopup",null!=e.children&&e.children.length?"menu":null),C.R7$(),C.vxM(e.icon?1:-1),C.R7$(),C.SpI(" ",e.label," "),C.R7$(),C.vxM(null!=e.children&&e.children.length?3:-1)}}function F(e,t){if(1&e&&(C.j41(0,"div",7),C.nVh(1,S,10,16),C.Z7z(2,R,4,6,"button",9,B),C.k0s()),2&e){let e;const t=C.XpG();C.Y8G("ngStyle",t.menuWidth&&C.eq3(2,w,t.menuWidth+"px")),C.R7$(),C.vxM((e=t.getParent(t.renderedOptions))?1:-1,e),C.R7$(),C.Dyx(t.renderedOptions.children)}}class T{constructor(){this.cdr=(0,s.WQX)(r.gRc),this.baseChip=(0,s.WQX)(f.rg,{host:!0}),this.menu=(0,r.ebz)(p.Z),this.menuItems=(0,r.dtW)(v.S),this.chipSelectButton=(0,r.ebz)("chipSelectButton"),this.menuTrigger=(0,r.ebz)(g.O),this.placeholderText=r.hFB.required(),this.placeholderIcon=(0,r.hFB)(),this.options=r.hFB.required(),this.disabledInput=(0,r.hFB)(!1,Object.assign(Object.assign({},{}),{alias:"disabled",transform:r.L39})),this.disabledState=(0,s.vPA)(!1),this.disabled=(0,o.EW)(()=>this.disabledInput()||this.disabledState()),this.classList=(0,o.EW)(()=>`!tw-ps-0 !tw-pb-0 ${this.baseChip.fullWidth()?"tw-block tw-w-full":"tw-inline-block"}`),this.menuWidth=null,this.childParentMap=new Map,this.baseChip.variant.set("subtle"),this.baseChip.hasTrailingIcon.set(!0),(0,s.QZP)(()=>{this.baseChip.disabledState.set(this.disabled())}),(0,s.QZP)(()=>{const e=this.selectedOption;this.childParentMap.clear(),this.initializeRootTree(this.options()),null!=(null==e?void 0:e.value)&&(this.selectedOption=this.findOption(this.rootTree,e.value)),void 0!==this.pendingValue&&(this.selectedOption=this.findOption(this.rootTree,this.pendingValue),this.setOrResetRenderedOptions(),this.pendingValue=void 0,this.cdr.markForCheck()),this.baseChip.selectedState.set(!!this.selectedOption)}),(0,s.QZP)(()=>{var e;const t=this.menuItems(),i=this.menu(),n=this.menuTrigger();t.length>0&&(null==n?void 0:n.isOpen)&&(null===(e=null==i?void 0:i.keyManager())||void 0===e||e.setFirstItemActive())})}get label(){var e;return(null===(e=this.selectedOption)||void 0===e?void 0:e.label)||this.placeholderText()}get icon(){var e;return(null===(e=this.selectedOption)||void 0===e?void 0:e.icon)||this.placeholderIcon()}setOrResetRenderedOptions(){var e,t;this.renderedOptions=this.selectedOption?(null!==(t=null===(e=this.selectedOption.children)||void 0===e?void 0:e.length)&&void 0!==t?t:0)>0?this.selectedOption:this.getParent(this.selectedOption):this.rootTree}handleMenuClosed(){this.setOrResetRenderedOptions(),this.menuWidth=null}selectOption(e,t){this.selectedOption=e,this.baseChip.selectedState.set(!0),this.onChange(e)}viewOption(e,t){this.renderedOptions=e,t.preventDefault(),t.stopImmediatePropagation()}clear(){this.renderedOptions=this.rootTree,this.selectedOption=null,this.baseChip.selectedState.set(!1),this.onChange(null)}findOption(e,t){if(!e)return null;let i=null;return null!==e.value&&(0,l.c)(e.value,t)?e:(Array.isArray(e.children)&&e.children.length>0&&e.children.some(e=>(i=this.findOption(e,t),i)),i)}markParents(e){var t;null===(t=e.children)||void 0===t||t.forEach(t=>{this.childParentMap.set(t,e),this.markParents(t)})}getParent(e){return this.childParentMap.get(e)}initializeRootTree(e){const t={children:e,value:null};this.markParents(t),this.rootTree=t,this.renderedOptions=this.rootTree}setMenuWidth(){var e,t,i,n,r,s,o,a,l,c;const d=null!==(n=null===(i=null===(t=null===(e=this.chipSelectButton())||void 0===e?void 0:e.nativeElement)||void 0===t?void 0:t.getBoundingClientRect())||void 0===i?void 0:i.width)&&void 0!==n?n:0,u=null!==(c=null===(l=null===(a=null===(o=null===(s=null===(r=this.menu())||void 0===r?void 0:r.menuItems().at(0))||void 0===s?void 0:s.elementRef)||void 0===o?void 0:o.nativeElement)||void 0===a?void 0:a.getBoundingClientRect())||void 0===l?void 0:l.width)&&void 0!==c?c:0;this.menuWidth=Math.max(d,u)}writeValue(e){this.rootTree?(this.selectedOption=this.findOption(this.rootTree,e),this.baseChip.selectedState.set(!!this.selectedOption),this.setOrResetRenderedOptions(),this.cdr.markForCheck()):this.pendingValue=e}registerOnChange(e){this.notifyOnChange=e}registerOnTouched(e){this.notifyOnTouched=e}setDisabledState(e){this.disabledState.set(e)}onChange(e){var t;this.notifyOnChange&&this.notifyOnChange(null!==(t=null==e?void 0:e.value)&&void 0!==t?t:null)}onBlur(){this.notifyOnTouched&&this.notifyOnTouched()}}T.ɵfac=function(e){return new(e||T)},T.ɵcmp=C.VBU({type:T,selectors:[["bit-chip-filter"]],viewQuery:function(e,t){1&e&&C.wEZ(t.menu,p.Z,5)(t.menuItems,v.S,5)(t.chipSelectButton,I,5)(t.menuTrigger,g.O,5),2&e&&C.NyB(4)},hostVars:2,hostBindings:function(e,t){2&e&&C.HbH(t.classList())},inputs:{placeholderText:[1,"placeholderText"],placeholderIcon:[1,"placeholderIcon"],options:[1,"options"],disabledInput:[1,"disabled","disabledInput"]},features:[C.Jv_([{provide:a.kq,useExisting:T,multi:!0}]),C.nM4([{directive:f.rg,inputs:["maxWidthClass","maxWidthClass","fullWidth","fullWidth"]}])],decls:10,vars:12,consts:[["menuTrigger","menuTrigger","chipSelectButton",""],["menu",""],["size","large"],["bit-chip-content","","type","button",1,"tw-truncate","tw-bg-transparent","hover:tw-bg-transparent","tw-border-none","tw-outline-none","tw-w-full","tw-text-[color:inherit]","tw-text-[length:inherit]","tw-ps-2",3,"click","startIcon","endIcon","bitMenuTriggerFor","disabled","title"],[1,"tw-block","tw-truncate","tw-min-w-0"],["bit-chip-dismiss-button","","slot","end","type","button",1,"tw-relative","tw-bottom-[1px]",3,"disabled"],[3,"closed"],[1,"tw-max-h-80","tw-min-w-32","tw-max-w-80","tw-text-sm",3,"ngStyle"],["bit-chip-dismiss-button","","slot","end","type","button",1,"tw-relative","tw-bottom-[1px]",3,"click","disabled"],["type","button","bitMenuItem","",1,"tw-text-[length:inherit]",3,"disabled","title"],["type","button","bitMenuItem","",1,"tw-text-[length:inherit]",3,"click","title"],["slot","start","name","bwi-angle-left","aria-hidden","true"],["slot","start","name","bwi-list","aria-hidden","true"],["type","button","bitMenuItem","",1,"tw-text-[length:inherit]",3,"click","disabled","title"],["slot","start","aria-hidden","true",3,"name","class"],["slot","end","name","bwi-angle-right","aria-hidden","true"],["slot","start","aria-hidden","true",3,"name"]],template:function(e,t){if(1&e&&(C.j41(0,"bit-chip-content",2)(1,"button",3,0),C.bIt("click",function(){return t.setMenuWidth()}),C.j41(4,"span",4),C.EFF(5),C.k0s()(),C.nVh(6,E,2,5,"button",5),C.k0s(),C.j41(7,"bit-menu",6,1),C.bIt("closed",function(){return t.handleMenuClosed()}),C.nVh(9,F,4,4,"div",7),C.k0s()),2&e){const e=C.sdS(2),i=C.sdS(8);C.R7$(),C.HbH("tw-pb-[calc(theme(spacing.1)_-_1px)]"),C.AVh("tw-cursor-not-allowed",t.disabled()),C.Y8G("startIcon",t.icon)("endIcon",t.selectedOption?void 0:e.isOpen?"bwi-angle-up":"bwi-angle-down")("bitMenuTriggerFor",i)("disabled",t.disabled())("title",t.label),C.R7$(4),C.JRh(t.label),C.R7$(),C.vxM(t.selectedOption?6:-1),C.R7$(3),C.vxM(t.renderedOptions?9:-1)}},dependencies:[n.MD,n.B3,d.t,h.Q,A.M,p.Z,g.O,v.S,m.E,y.l,b.i,u.R,c.$Z],encapsulation:2,changeDetection:0})},67519(e,t,i){"use strict";i.d(t,{rg:()=>h});var n=i(24590),r=i(14041),s=i(11217),o=i(63477),a=i(6307),l=i(23542);const c={primary:["tw-bg-bg-brand-softer","tw-border-border-brand-soft","tw-text-fg-brand-strong","[&:is(button,a)]:hover:tw-bg-bg-brand-soft","[&:is(button,a)]:focus-visible:tw-bg-bg-brand-soft","has-[button:hover:not([bit-chip-dismiss-button])]:tw-bg-bg-brand-soft","has-[a:hover]:tw-bg-bg-brand-soft","has-[button:focus-visible:not([bit-chip-dismiss-button])]:tw-bg-bg-brand-soft","has-[a:focus-visible]:tw-bg-bg-brand-soft"],subtle:["tw-bg-bg-primary","tw-border-border-base","tw-text-fg-body","[&:is(button,a)]:hover:tw-bg-bg-quaternary","[&:is(button,a)]:focus-visible:tw-bg-bg-quaternary","has-[button:hover:not([bit-chip-dismiss-button])]:tw-bg-bg-quaternary","has-[a:hover]:tw-bg-bg-quaternary","has-[button:focus-visible:not([bit-chip-dismiss-button])]:tw-bg-bg-quaternary","has-[a:focus-visible]:tw-bg-bg-quaternary"],"accent-primary":["tw-bg-bg-accent-primary-soft","tw-border-border-accent-primary-soft","tw-text-fg-accent-primary-strong","[&:is(button,a)]:hover:tw-bg-bg-accent-primary-medium","[&:is(button,a)]:focus-visible:tw-bg-bg-accent-primary-medium","has-[button:hover:not([bit-chip-dismiss-button])]:tw-bg-bg-accent-primary-medium","has-[a:hover]:tw-bg-bg-accent-primary-medium","has-[button:focus-visible:not([bit-chip-dismiss-button])]:tw-bg-bg-accent-primary-medium","has-[a:focus-visible]:tw-bg-bg-accent-primary-medium"],"accent-secondary":["tw-bg-bg-accent-secondary-soft","tw-border-border-accent-secondary-soft","tw-text-fg-accent-secondary-strong","[&:is(button,a)]:hover:tw-bg-bg-accent-secondary-medium","[&:is(button,a)]:focus-visible:tw-bg-bg-accent-secondary-medium","has-[button:hover:not([bit-chip-dismiss-button])]:tw-bg-bg-accent-secondary-medium","has-[a:hover]:tw-bg-bg-accent-secondary-medium","has-[button:focus-visible:not([bit-chip-dismiss-button])]:tw-bg-bg-accent-secondary-medium","has-[a:focus-visible]:tw-bg-bg-accent-secondary-medium"]},d=(e,t)=>{const i={hasTrailingIcon:{small:"tw-pe-0.5",large:"tw-pe-1"},noTrailingIcon:{small:"tw-pe-1.5",large:"tw-pe-2"}}[t?"hasTrailingIcon":"noTrailingIcon"][e];return[...{small:["tw-text-xs/4","tw-ps-1.5","tw-py-[calc(theme(spacing[0.5])_-_1px)]"],large:["tw-text-sm/5","tw-ps-2","tw-py-[calc(theme(spacing.1)_-_1px)]"]}[e],i]},u=["tw-inline-flex","tw-items-center","tw-rounded-md","tw-border","tw-font-medium","tw-transition-colors","[&:is(button)]:tw-appearance-none","[&:is(button)]:tw-outline-none","focus-visible:tw-ring-2","focus-visible:tw-ring-offset-2","focus-visible:tw-ring-border-focus","focus-visible:tw-z-10","has-[:focus-visible:not([bit-chip-dismiss-button])]:tw-ring-2","has-[:focus-visible:not([bit-chip-dismiss-button])]:tw-ring-offset-2","has-[:focus-visible:not([bit-chip-dismiss-button])]:tw-ring-border-focus","has-[:focus-visible:not([bit-chip-dismiss-button])]:tw-z-10","disabled:tw-bg-bg-inactive","disabled:tw-border-border-base","disabled:tw-text-fg-inactive","disabled:hover:tw-bg-bg-inactive","disabled:tw-pointer-events-none","aria-disabled:tw-bg-bg-inactive","aria-disabled:tw-border-border-base","aria-disabled:tw-text-fg-inactive","aria-disabled:hover:tw-bg-bg-inactive","aria-disabled:focus-visible:tw-bg-bg-inactive","aria-disabled:tw-pointer-events-none"];class h{constructor(){this.variant=(0,n.geq)("primary"),this.size=(0,n.hFB)("large"),this.selected=(0,n.hFB)(!1),this.selectedState=(0,s.vPA)(!1),this.isSelected=(0,o.EW)(()=>this.selected()||this.selectedState()),this.fullWidth=(0,n.hFB)(!1,Object.assign(Object.assign({},{}),{transform:n.L39})),this.maxWidthClass=(0,n.hFB)("tw-max-w-52"),this.disabledInput=(0,n.hFB)(!1,Object.assign(Object.assign({},{}),{alias:"disabled",transform:n.L39})),this.disabledState=(0,s.vPA)(!1),this.disabled=(0,o.EW)(()=>this.disabledInput()||this.disabledState()),this.hasTrailingIcon=(0,s.vPA)(!1),this.classList=(0,o.EW)(()=>{const e=this.size()||"large",t=[...u,...d(e,this.hasTrailingIcon()),this.fullWidth()?"tw-w-full":this.maxWidthClass()],i=this.variant()||"primary";return this.isSelected()?t.push(...c.primary):t.push(...c[i]),t.join(" ")}),this.el=(0,s.WQX)(r.aKT),(0,a.m)(this.el.nativeElement,this.disabled)}}h.ɵfac=function(e){return new(e||h)},h.ɵdir=r.FsC({type:h,selectors:[["","bitBaseChip",""]],hostVars:2,hostBindings:function(e,t){2&e&&r.HbH(t.classList())},inputs:{variant:[1,"variant"],size:[1,"size"],selected:[1,"selected"],fullWidth:[1,"fullWidth"],maxWidthClass:[1,"maxWidthClass"],disabledInput:[1,"disabled","disabledInput"]},outputs:{variant:"variantChange"},features:[r.nM4([l.v])]})},90143(e,t,i){"use strict";i.d(t,{l:()=>d});var n=i(24590),r=i(63477),s=i(58384),o=i(14041);const a=[[["","slot","start"]],"*",[["","slot","end"]]];function l(e,t){if(1&e&&o.nrm(0,"bit-icon",0),2&e){const e=o.XpG();o.Y8G("name",e.startIcon())}}function c(e,t){if(1&e&&o.nrm(0,"bit-icon",0),2&e){const e=o.XpG();o.Y8G("name",e.endIcon())}}class d{constructor(){this.startIcon=(0,n.hFB)(),this.endIcon=(0,n.hFB)(),this.size=(0,n.hFB)("large"),this.gapClass=(0,r.EW)(()=>"large"===(this.size()||"large")?"tw-gap-1.5":"tw-gap-1"),this.classList=(0,r.EW)(()=>["tw-inline-flex","tw-min-w-0","tw-w-full","tw-max-w-full","tw-items-center","tw-justify-between",this.gapClass()].join(" "))}}d.ɵfac=function(e){return new(e||d)},d.ɵcmp=o.VBU({type:d,selectors:[["bit-chip-content"],["","bit-chip-content",""]],hostVars:2,hostBindings:function(e,t){2&e&&o.HbH(t.classList())},inputs:{startIcon:[1,"startIcon"],endIcon:[1,"endIcon"],size:[1,"size"]},ngContentSelectors:["[slot=start]","*","[slot=end]"],decls:6,vars:2,consts:[[1,"tw-text-base/5",3,"name"],[1,"tw-text-start","tw-truncate","tw-leading-5","tw-min-w-0","tw-flex-1"]],template:function(e,t){1&e&&(o.NAR(a),o.SdG(0),o.nVh(1,l,1,1,"bit-icon",0),o.j41(2,"span",1),o.SdG(3,1),o.k0s(),o.nVh(4,c,1,1,"bit-icon",0),o.SdG(5,2)),2&e&&(o.R7$(),o.vxM(t.startIcon()?1:-1),o.R7$(3),o.vxM(t.endIcon()?4:-1))},dependencies:[s.R],encapsulation:2,changeDetection:0})},26193(e,t,i){"use strict";i.d(t,{i:()=>d});var n=i(24590),r=i(14041),s=i(11217),o=i(63477),a=i(58384),l=i(6307),c=i(23542);class d{constructor(){this.disabled=(0,n.hFB)(!1),this.el=(0,s.WQX)(r.aKT),this.size=(0,n.hFB)("large"),this.classList=(0,o.EW)(()=>["tw-bg-transparent","hover:tw-bg-bg-hover","focus-visible:tw-bg-bg-hover","tw-outline-none","tw-rounded-md","tw-p-0.5","tw-text-[color:inherit]","tw-text-[length:inherit]","tw-border-solid","tw-border","tw-border-transparent","tw-flex","tw-items-center","tw-justify-center","focus-visible:tw-ring-2","tw-ring-border-focus","hover:aria-disabled:tw-bg-transparent","focus-visible:aria-disabled:tw-bg-transparent",..."small"===this.size()?["tw-text-xs","tw-size-4"]:["tw-text-sm","tw-size-5"]]),(0,l.m)(this.el.nativeElement,this.disabled)}}d.ɵfac=function(e){return new(e||d)},d.ɵcmp=r.VBU({type:d,selectors:[["button","bit-chip-dismiss-button",""]],hostVars:4,hostBindings:function(e,t){2&e&&(r.HbH(t.classList()),r.AVh("tw-cursor-not-allowed",t.disabled()))},inputs:{disabled:[1,"disabled"],size:[1,"size"]},features:[r.nM4([c.v])],attrs:["bit-chip-dismiss-button",""],decls:1,vars:0,consts:[["name","bwi-close"]],template:function(e,t){1&e&&r.nrm(0,"bit-icon",0)},dependencies:[a.R],encapsulation:2,changeDetection:0})},27520(e,t,i){"use strict";i.d(t,{S:()=>u});var n=i(24590),r=i(14041),s=i(11217),o=i(63477),a=i(37115),l=i(78781);function c(e,t){if(1&e&&(r.rj2(0,"span",2),r.EFF(1),r.eux()),2&e){const e=r.XpG().$index;r.R7$(),r.JRh(e+1)}}function d(e,t){if(1&e&&(r.rj2(0,"span",1)(1,"span"),r.EFF(2),r.eux(),r.nVh(3,c,2,1,"span",2),r.eux()),2&e){const e=t.$implicit,i=r.XpG();r.HbH(i.getCharacterClass(e)),r.R7$(2),r.JRh(e),r.R7$(),r.vxM(i.showCount()?3:-1)}}class u{constructor(){this.password=(0,n.hFB)(""),this.showCount=(0,n.hFB)(!1),this.passwordCharArray=(0,o.EW)(()=>{var e;return Array.from(null!==(e=this.password())&&void 0!==e?e:"")}),this.platformUtilsService=(0,s.WQX)(a.y),this.elementRef=(0,s.WQX)(r.aKT),this.characterStyles={emoji:[],letter:["tw-text-main"],special:["tw-text-danger"],number:["tw-text-primary-600"]}}get classList(){return["tw-min-w-0","tw-whitespace-pre-wrap","tw-break-words"]}getCharacterClass(e){const t=this.getCharacterType(e),i=this.characterStyles[t];return this.showCount()?i.concat(["tw-inline-flex","tw-flex-col","tw-items-center","tw-w-7","tw-py-1","odd:tw-bg-secondary-100","even:tw-bg-background"]):i}getCharacterType(e){if(e.match(l.A.regexpEmojiPresentation))return"emoji";if(e.match(/\d/))return"number";return["&","<",">"," "].includes(e)||e.match(/[^\w ]/)?"special":"letter"}onCopy(e){e.preventDefault();const t=window.getSelection();if(!t||0===t.rangeCount)return;const i=this.elementRef.nativeElement.querySelectorAll("span[data-password-character]");let n="";i.forEach((e,i)=>{t.containsNode(e,!0)&&(n+=this.passwordCharArray()[i])}),n&&this.platformUtilsService.copyToClipboard(n)}}u.ɵfac=function(e){return new(e||u)},u.ɵcmp=r.VBU({type:u,selectors:[["bit-color-password"]],hostVars:2,hostBindings:function(e,t){1&e&&r.bIt("copy",function(e){return t.onCopy(e)}),2&e&&r.HbH(t.classList)},inputs:{password:[1,"password"],showCount:[1,"showCount"]},decls:2,vars:0,consts:[["data-password-character","",1,"tw-font-mono",3,"class"],["data-password-character","",1,"tw-font-mono"],[1,"tw-whitespace-nowrap","tw-text-xs","tw-leading-5","tw-text-main"]],template:function(e,t){1&e&&r.Z7z(0,d,4,4,"span",0,r.Vm6),2&e&&r.Dyx(t.passwordCharArray())},encapsulation:2})},98479(e,t,i){"use strict";i.d(t,{p:()=>s});var n=i(14041),r=i(11217);class s{}s.ɵfac=function(e){return new(e||s)},s.ɵmod=n.$C({type:s}),s.ɵinj=r.G2t({})},10672(e,t,i){"use strict";i.d(t,{H:()=>r});var n=i(14041);class r{}r.ɵfac=function(e){return new(e||r)},r.ɵcmp=n.VBU({type:r,selectors:[["bit-container"]],ngContentSelectors:["*"],decls:2,vars:0,consts:[[1,"tw-max-w-4xl"]],template:function(e,t){1&e&&(n.NAR(),n.rj2(0,"div",0),n.SdG(1),n.eux())},encapsulation:2})},25024(e,t,i){"use strict";i.d(t,{D:()=>u});var n=i(24590),r=i(63477),s=i(36801),o=i(14041),a=i(37115),l=i(69855),c=i(50700);const d=new s.aZ("CopyClickListener");class u{constructor(e,t,i,s){this.platformUtilsService=e,this.toastService=t,this.i18nService=i,this.copyListener=s,this._showToast=(0,r.EW)(()=>void 0!==this.showToast()),this.toastVariant=(0,r.EW)(()=>{const e=this.showToast();return""===e||void 0===e?"success":e}),this.valueToCopy=(0,n.hFB)("",Object.assign(Object.assign({},{}),{alias:"appCopyClick"})),this.valueLabel=(0,n.hFB)(),this.showToast=(0,n.hFB)()}onClick(){const e=this.valueToCopy();if(this.platformUtilsService.copyToClipboard(e),this.copyListener&&this.copyListener.onCopy(e),this._showToast()){const e=this.valueLabel(),t=e?this.i18nService.t("valueCopied",e):this.i18nService.t("copySuccessful");this.toastService.showToast({variant:this.toastVariant(),message:t})}}}u.ɵfac=function(e){return new(e||u)(o.rXU(a.y),o.rXU(l.f),o.rXU(c.W),o.rXU(d,8))},u.ɵdir=o.FsC({type:u,selectors:[["","appCopyClick",""]],hostBindings:function(e,t){1&e&&o.bIt("click",function(){return t.onClick()})},inputs:{valueToCopy:[1,"appCopyClick","valueToCopy"],valueLabel:[1,"valueLabel"],showToast:[1,"showToast"]}})},44075(e,t,i){"use strict";i.d(t,{Av:()=>a,ce:()=>s,hq:()=>o});var n=i(87806),r=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class s{}class o{constructor(e,t,i,r=!1,s,o){this.onClose=e,this.isTop=t,this.onStack=i,this.closeOnNavigation=r,this.logService=o,this.isDrawer=!0,this._closedSubject=new n.B,this._isClosed=!1,this.closed=this._closedSubject.asObservable(),this.disableClose=!1,this.componentInstance=null,this.closePredicate=s}stack(e,t){if(!this.isTop())throw new Error("DrawerRef.stack() called on a non-top drawer; only the top drawer can stack a child");return this.onStack(e,t)}close(e,t){return r(this,void 0,void 0,function*(){var t,i;if(this._isClosed)return{closed:!1};if(!this.isTop())return null===(t=this.logService)||void 0===t||t.error("DrawerRef.close() called on a non-top drawer; close from the top of the stack"),{closed:!1};if(this.closePredicate){const t=this.closePredicate;this.closePredicate=void 0;try{if(!(yield t(e)))return this.closePredicate=t,{closed:!1}}catch(n){null===(i=this.logService)||void 0===i||i.error(n)}}return this._isClosed=!0,this._closedSubject.next(e),this._closedSubject.complete(),this.onClose(),{closed:!0}})}_forceClose(e){this._isClosed||(this._isClosed=!0,this._closedSubject.next(e),this._closedSubject.complete(),this.onClose())}}class a{constructor(e,t){this.logService=e,this.isDrawer=!1,this.closePredicate=t}close(e,t){return r(this,void 0,void 0,function*(){var i;if(this.closePredicate)try{if(!(yield this.closePredicate(e)))return{closed:!1}}catch(n){null===(i=this.logService)||void 0===i||i.error(n)}return this.cdkDialogRefBase.close(e,t),{closed:!0}})}get closed(){return this.cdkDialogRefBase.closed}get disableClose(){return this.cdkDialogRefBase.disableClose}set disableClose(e){this.cdkDialogRefBase.disableClose=e}get componentInstance(){return this.cdkDialogRefBase.componentInstance}}},81573(e,t,i){"use strict";i.d(t,{P:()=>l});var n=i(88744),r=i(45635),s=i(66316),o=i(14041),a=i(11217);class l{}l.ɵfac=function(e){return new(e||l)},l.ɵmod=o.$C({type:l}),l.ɵinj=a.G2t({providers:[s.o],imports:[n.Ph,r.m,n.Ph]})},66316(e,t,i){"use strict";i.d(t,{u:()=>V,o:()=>G});var n=i(88744),r=i(84653),s=i(38798),o=i(11217),a=i(92128),l=i(26983),c=i(68711),d=i(191),u=i(68108),h=i(69783),A=i(5206),p=i(68455),g=i(84110),v=i(81216);const m={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};var f=i(44075),y=i(66723),b=i(84210),C=i(38620),I=i(26657),w=i(56898),B=i(67311),E=i(14041),S=i(50700),Q=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function k(e,t){if(1&e){const e=E.RV6();E.j41(0,"button",7),E.bIt("click",function(){o.eBV(e);const t=E.XpG();return o.Njj(t.dialogRef.close(!1))}),E.EFF(1),E.k0s()}if(2&e){const e=E.XpG();E.R7$(),E.SpI(" ",e.cancelButtonText," ")}}const R={primary:"bwi-business",success:"bwi-star",info:"bwi-info-circle",warning:"bwi-exclamation-triangle",danger:"bwi-error"},F={primary:"tw-text-primary-600",success:"tw-text-success",info:"tw-text-info",warning:"tw-text-warning",danger:"tw-text-danger"};class T{get iconClasses(){var e;return[null!==(e=this.simpleDialogOpts.icon)&&void 0!==e?e:R[this.simpleDialogOpts.type],F[this.simpleDialogOpts.type]]}constructor(e,t,i){this.dialogRef=e,this.i18nService=t,this.simpleDialogOpts=i,this.formGroup=new b.gE({}),this.showCancelButton=null!==this.simpleDialogOpts.cancelButtonText,this.accept=()=>Q(this,void 0,void 0,function*(){this.simpleDialogOpts.acceptAction&&(yield this.simpleDialogOpts.acceptAction()),this.simpleDialogOpts.disableClose||this.dialogRef.close(!0)}),this.localizeText()}localizeText(){var e,t;this.title=this.translate(this.simpleDialogOpts.title),this.content=this.translate(this.simpleDialogOpts.content),this.acceptButtonText=this.translate(null!==(e=this.simpleDialogOpts.acceptButtonText)&&void 0!==e?e:{key:"yes"}),this.showCancelButton&&(this.cancelButtonText=this.translate(null!==(t=this.simpleDialogOpts.cancelButtonText)&&void 0!==t?t:void 0!==this.simpleDialogOpts.acceptButtonText?{key:"cancel"}:{key:"no"}))}translate(e){var t;return"object"==typeof e?this.i18nService.t(e.key,...null!==(t=e.placeholders)&&void 0!==t?t:[]):e}}T.ɵfac=function(e){return new(e||T)(E.rXU(n.ce),E.rXU(S.W),E.rXU(n.Qs))},T.ɵcmp=E.VBU({type:T,selectors:[["ng-component"]],decls:10,vars:10,consts:[["bit-simple-dialog","",3,"formGroup","bitSubmit","hideIcon"],["bitDialogIcon","","aria-hidden","true",1,"bwi","tw-text-3xl"],["bitDialogTitle",""],["bitDialogContent",""],["bitDialogFooter",""],["type","submit","bitButton","","bitFormButton","",3,"buttonType"],["type","button","bitButton","","bitFormButton","","buttonType","secondary"],["type","button","bitButton","","bitFormButton","","buttonType","secondary",3,"click"]],template:function(e,t){var i;1&e&&(E.j41(0,"form",0),E.nrm(1,"i",1),E.j41(2,"span",2),E.EFF(3),E.k0s(),E.j41(4,"div",3),E.EFF(5),E.k0s(),E.qex(6,4),E.j41(7,"button",5),E.EFF(8),E.k0s(),E.nVh(9,k,2,1,"button",6),E.bVm(),E.k0s()),2&e&&(E.Y8G("formGroup",t.formGroup)("bitSubmit",t.accept)("hideIcon",null!==(i=t.simpleDialogOpts.hideIcon)&&void 0!==i&&i),E.R7$(),E.HbH(t.iconClasses),E.R7$(2),E.JRh(t.title),E.R7$(2),E.JRh(t.content),E.R7$(2),E.Y8G("buttonType","danger"===t.simpleDialogOpts.type?"danger":"primary"),E.R7$(),E.SpI(" ",t.acceptButtonText," "),E.R7$(),E.vxM(t.showCancelButton?9:-1))},dependencies:[b.X1,b.qT,b.cb,b.j4,C.L,B.o_,B.LJ,B.hJ,w.Q,I.$],encapsulation:2});var D=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})},P=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i};class M{enable(){document.body.classList.add("tw-overflow-hidden")}disable(){document.body.classList.remove("tw-overflow-hidden")}attach(){}detach(){}}class x extends r.qC{constructor(){super(),this.abortController=null,this.prevBreakpoint=null,"undefined"!=typeof window&&(this.abortController=new AbortController,this.updatePosition(),window.addEventListener("resize",this.updatePosition.bind(this),{signal:this.abortController.signal}))}dispose(){var e;null===(e=this.abortController)||void 0===e||e.abort(),this.abortController=null,super.dispose()}updatePosition(){const e=!(e=>{if("undefined"==typeof window||!window.matchMedia)return!1;const t=`(min-width: ${m[e]}px)`;return window.matchMedia(t).matches})("md"),t=e?"small":"large";this.prevBreakpoint!==t&&(this.prevBreakpoint=t,e?this.bottom().centerHorizontally():this.centerVertically().centerHorizontally(),this.apply())}}class V extends r.qC{constructor(){super(),this.centerHorizontally().centerVertically()}}class G{constructor(){this.dialog=(0,o.WQX)(n.lG),this.drawerService=(0,o.WQX)(y.d),this.injector=(0,o.WQX)(o.zZn),this.router=(0,o.WQX)(l.Ix),this.authService=(0,o.WQX)(p.u,{optional:!0}),this.logService=(0,o.WQX)(v.Kc,{optional:!0}),this.backDropClasses=["tw-fixed","tw-bg-bg-overlay","tw-inset-0"],this.defaultScrollStrategy=new M,this.router&&this.authService&&this.router.events.pipe((0,c.p)(e=>e instanceof l.wF),(0,d.n)(()=>this.authService.getAuthStatus()),(0,c.p)(e=>e!==g.J.Unlocked),(0,a.pQ)()).subscribe(()=>this.closeAll())}open(e,t){var i;const n=null!=t?t:{},{closePredicate:r}=n,s=P(n,["closePredicate"]),o=new f.Av(this.logService,r),a=this.createInjector({data:null==t?void 0:t.data,dialogRef:o}),l=Object.assign({backdropClass:this.backDropClasses,scrollStrategy:this.defaultScrollStrategy,positionStrategy:null!==(i=null==t?void 0:t.positionStrategy)&&void 0!==i?i:new x,closeOnNavigation:null==t?void 0:t.closeOnNavigation,injector:a},s);return o.cdkDialogRefBase=this.dialog.open(e,l),void 0===(null==t?void 0:t.restoreFocus)&&this.setRestoreFocusEl(o),o}openDrawer(e,t){return D(this,void 0,void 0,function*(){var i;if(yield this.drawerService.closeAll())return this.stackDrawer(e,t,null!==(i=null==t?void 0:t.closeOnNavigation)&&void 0!==i&&i)})}stackDrawer(e,t,i=!1){const n=new f.hq(()=>this.drawerService.pop(),()=>this.drawerService.isTop(n),(e,t)=>this.stackDrawer(e,t),i,null==t?void 0:t.closePredicate,this.logService),r=new s.A8(e,null,this.createInjector({data:null==t?void 0:t.data,dialogRef:n,drawerRef:n}));return n.portal=r,this.drawerService.push(n),n}openSimpleDialog(e){const t=this.openSimpleDialogRef(e);return(0,u._)(t.closed.pipe((0,h.T)(e=>!!e)))}openSimpleDialogRef(e){return this.open(T,{data:e,disableClose:e.disableClose,positionStrategy:new V})}closeAll(){this.drawerService.forceCloseAll(),this.dialog.closeAll()}setRestoreFocusEl(e){const t=document.activeElement,i=setTimeout(()=>{let i=t;(null==i?void 0:i.isConnected)||(i=document.activeElement),i instanceof HTMLElement&&(e.cdkDialogRefBase.config.restoreFocus=i)},0);e.closed.pipe((0,A.s)(1)).subscribe(()=>{clearTimeout(i)})}createInjector(e){return o.zZn.create({providers:[{provide:n.Qs,useValue:e.data},{provide:f.ce,useValue:e.dialogRef},{provide:n.ce,useValue:e.dialogRef},...e.drawerRef?[{provide:f.hq,useValue:e.drawerRef}]:[]],parent:this.injector})}}G.ɵfac=function(e){return new(e||G)},G.ɵprov=o.jDH({token:G,factory:G.ɵfac})},45635(e,t,i){"use strict";i.d(t,{m:()=>J,G:()=>H});var n=i(70352),r=i(15639),s=i(46758),o=i(11217),a=i(24590),l=i(63477),c=i(92128),d=i(72135),u=i(191),h=i(36801),A=i(55686),p=i(36288),g=i(9396),v=i(83632),m=i(58806),f=i(7595),y=i(34949),b=i(76322),C=i(20408),I=i(69783),w=i(16385),B=i(28046);const E=(e,t,i=1)=>((e,t)=>new B.c(i=>{const n=new IntersectionObserver(e=>{for(const t of e)i.next(t)},t);return n.observe(e),()=>n.disconnect()}))(t,{root:e,threshold:i}).pipe((0,y.Z)(null),(0,b.Z)(0,f.X),(0,C.Q)(f.X),(0,I.T)(t=>t?!t.isIntersecting:e.scrollHeight>e.clientHeight),(0,w.F)());var S=i(44075),Q=i(7730),k=i(35042),R=i(66723),F=i(67311),T=i(14041),D=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const P=["dialogHeader"],M=["scrollBottom"],x=[[["","bitDialogTitle",""]],[["","bitDialogHeaderEnd",""]],[["","bitDialogContent",""]],[["","bitDialogFooter",""]]],V=(e,t)=>[e,t],G=(e,t,i,n)=>({"tw-p-4 has-[[biticonbutton]]:tw-pe-2":e,"tw-px-6 tw-py-4 has-[[biticonbutton]]:tw-pe-4":t,"tw-border-secondary-100":i,"tw-border-transparent":n}),U=(e,t,i)=>({"tw-min-h-60":e,"tw-bg-background":t,"tw-bg-background-alt":i}),O=(e,t,i,n)=>({"tw-pb-4":e,"tw-overflow-y-auto":t,"tw-invisible tw-overflow-y-hidden":i,"tw-py-4":n}),N=(e,t)=>({"tw-border-transparent":e,"tw-border-secondary-100":t}),j=(e,t)=>({"tw-px-6 tw-py-4":e,"tw-p-4 has-[[biticonbutton]]:tw-pe-2":t});function Y(e,t){1&e&&(T.nrm(0,"button",4),T.nI1(1,"i18n")),2&e&&T.Y8G("label",T.bMT(1,1,"back"))}function X(e,t){1&e&&(T.j41(0,"span",6),T.EFF(1),T.k0s()),2&e&&(T.R7$(),T.SpI(" ",t," "))}function z(e,t){if(1&e){const e=T.RV6();T.j41(0,"button",12),T.nI1(1,"i18n"),T.bIt("click",function(){o.eBV(e);const t=T.XpG();return o.Njj(t.closeDialog())}),T.k0s()}2&e&&T.Y8G("label",T.bMT(1,1,"close"))}function L(e,t){1&e&&(T.j41(0,"div",10),T.nrm(1,"bit-spinner"),T.k0s())}function W(e,t){if(1&e&&(T.SS7(0),T.nI1(1,"async"),T.nrm(2,"div",13),T.j41(3,"footer",14),T.SdG(4,3),T.k0s()),2&e){const e=T.XpG(),t=T.r8f(0),i=T.bMT(1,2,e.isScrollable$),n=!e.bodyHasScrolledFrom().top&&i||e.bodyHasScrolledFrom().bottom;T.R7$(2),T.Y8G("ngClass",T.l_i(4,N,!n,n)),T.R7$(),T.Y8G("ngClass",T.l_i(7,j,t,!t))}}const K={small:"md:tw-max-w-sm",default:"md:tw-max-w-xl",large:"md:tw-max-w-3xl"},Z={small:"md:tw-max-w-sm",default:"md:tw-max-w-lg",large:"md:tw-max-w-2xl"},H={small:24,default:32,large:42};class J{constructor(){this.drawerService=(0,o.WQX)(R.d),this.autofocusFallback=(0,o.WQX)(A.D,{host:!0}),this.dialogHeader=a.ebz.required("dialogHeader"),this.scrollableBody=a.ebz.required(r.uv),this.scrollBottom=a.ebz.required("scrollBottom"),this.dialogRef=(0,o.WQX)(S.ce,{optional:!0}),this.bodyHasScrolledFrom=(e=>{const t=null!=e?e:(0,o.vPA)((0,o.WQX)(r.uv)),i=(0,c.br)(t).pipe((0,u.n)(e=>e.elementScrolled().pipe((0,y.Z)(null),(0,I.T)(()=>({top:e.measureScrollOffset("top")>0,bottom:e.measureScrollOffset("bottom")>1})))));return(0,c.ot)(i,{initialValue:{top:!1,bottom:!1}})})(this.scrollableBody),this.scrollableBody$=(0,c.br)(this.scrollableBody),this.scrollBottom$=(0,c.br)(this.scrollBottom),this.isScrollable$=(0,d.z)([this.scrollableBody$,this.scrollBottom$]).pipe((0,u.n)(([e,t])=>E(e.getElementRef().nativeElement,t.nativeElement))),this.footerDirective=(0,a.sbv)(F.hJ),this.hasFooter=(0,l.EW)(()=>!!this.footerDirective()),this.background=(0,a.hFB)("default"),this.dialogSize=(0,a.hFB)("default"),this.title=(0,a.hFB)(),this.subtitle=(0,a.hFB)(),this.disableAnimations=(0,a.hFB)(!1,Object.assign(Object.assign({},{}),{transform:a.L39})),this.loading=(0,a.hFB)(!1),this.animationCompleted=(0,o.vPA)(!1),this.width=(0,l.EW)(()=>{var e;const t=this.dialogSize();return(null===(e=this.dialogRef)||void 0===e?void 0:e.isDrawer)?this.drawerService.isPushMode()?Z[t]:"":K[t]}),this.classes=(0,l.EW)(()=>{var e,t;const i=null===(e=this.dialogRef)||void 0===e?void 0:e.isDrawer,n=["tw-flex","tw-flex-col",i?"tw-w-full":"tw-w-screen"],r=i?["tw-h-full"]:["md:tw-p-4","tw-max-h-[90vh]"],s=this.dialogSize(),o=this.disableAnimations()||this.animationCompleted()||(null===(t=this.dialogRef)||void 0===t?void 0:t.isDrawer)?[]:"small"===s?["tw-animate-slide-down"]:["tw-animate-slide-up","md:tw-animate-slide-down"];return[...n,this.width(),...r,...o]}),this.isStacked=(0,l.EW)(()=>{var e;return!0===(null===(e=this.dialogRef)||void 0===e?void 0:e.isDrawer)&&this.drawerService.stackDepth()>1}),(0,o.QZP)(()=>{var e,t;if(!(null===(e=this.dialogRef)||void 0===e?void 0:e.isDrawer))return;const i=this.dialogSize(),n=(0,g.T)();this.drawerService.declarePushWidth((null!==(t=H[i])&&void 0!==t?t:32)*n)})}closeDialog(){return D(this,void 0,void 0,function*(){var e,t;(null===(e=this.dialogRef)||void 0===e?void 0:e.isDrawer)?yield this.drawerService.closeAll():null===(t=this.dialogRef)||void 0===t||t.close()})}handleEsc(e){var t,i;(null===(t=this.dialogRef)||void 0===t?void 0:t.disableClose)||((null===(i=this.dialogRef)||void 0===i?void 0:i.isDrawer)?this.dialogRef.close():this.closeDialog(),e.stopPropagation())}onAnimationEnd(){this.animationCompleted.set(!0)}ngAfterViewInit(){this.autofocusFallback.bitAutofocusFallback.set(this.dialogHeader())}focusHeader(){this.dialogHeader().nativeElement.focus()}}J.ɵfac=function(e){return new(e||J)},J.ɵcmp=T.VBU({type:J,selectors:[["bit-dialog"],["","bit-dialog",""]],contentQueries:function(e,t,i){1&e&&T.C6U(i,t.footerDirective,F.hJ,5),2&e&&T.NyB()},viewQuery:function(e,t){1&e&&T.wEZ(t.dialogHeader,P,5)(t.scrollableBody,r.uv,5)(t.scrollBottom,M,5),2&e&&T.NyB(3)},hostVars:2,hostBindings:function(e,t){1&e&&T.bIt("keydown.esc",function(e){return t.handleEsc(e)})("animationend",function(){return t.onAnimationEnd()}),2&e&&T.HbH(t.classes())},inputs:{background:[1,"background"],dialogSize:[1,"dialogSize"],title:[1,"title"],subtitle:[1,"subtitle"],disableAnimations:[1,"disableAnimations"],loading:[1,"loading"]},features:[T.nM4([A.D])],ngContentSelectors:["[bitDialogTitle]","[bitDialogHeaderEnd]","[bitDialogContent]","[bitDialogFooter]"],decls:19,vars:28,consts:[["dialogHeader",""],["scrollBottom",""],["cdkTrapFocus","",1,"tw-flex","tw-w-full","tw-flex-col","tw-self-center","tw-overflow-hidden","tw-border","tw-border-solid","tw-border-secondary-100","tw-bg-background","tw-text-main",3,"ngClass"],[1,"tw-flex","tw-justify-between","tw-items-center","tw-gap-2","tw-border-0","tw-border-b","tw-border-solid","tw-py-3","tw-ps-6","tw-pe-4",3,"ngClass"],["type","button","bitIconButton","bwi-angle-left","buttonType","primaryGhost","size","default","bitDialogClose","",3,"label"],["bitDialogTitleContainer","","bitTypography","h3","noMargin","","tabindex","-1",1,"tw-flex-1","tw-text-main","tw-mb-0","tw-line-clamp-2","tw-text-ellipsis","tw-break-words","focus-visible:tw-outline-none"],[1,"tw-text-muted","tw-font-normal","tw-text-sm"],[1,"tw-flex","tw-items-center","tw-justify-center"],["type","button","bitIconButton","bwi-close","buttonType","primaryGhost","size","default",3,"label"],[1,"tw-relative","tw-flex-1","tw-flex","tw-flex-col","tw-overflow-hidden",3,"ngClass"],[1,"tw-absolute","tw-flex","tw-size-full","tw-items-center","tw-justify-center"],["cdkScrollable","","tabindex","0",1,"tw-py-2","tw-ps-6","tw-pe-6",3,"ngClass"],["type","button","bitIconButton","bwi-close","buttonType","primaryGhost","size","default",3,"click","label"],["data-chromatic","ignore",1,"tw-border-0","tw-border-t","tw-border-solid",3,"ngClass"],[1,"tw-flex","tw-flex-row","tw-items-center","tw-gap-2","tw-bg-background","tw-py-5","tw-ps-6","tw-pe-4",3,"ngClass"]],template:function(e,t){var i;if(1&e&&(T.NAR(x),T.SS7(0),T.j41(1,"section",2)(2,"header",3),T.nVh(3,Y,2,3,"button",4),T.j41(4,"h2",5,0),T.EFF(6),T.nVh(7,X,2,1,"span",6),T.SdG(8),T.k0s(),T.j41(9,"div",7),T.SdG(10,1),T.nVh(11,z,2,3,"button",8),T.k0s()(),T.j41(12,"div",9),T.nVh(13,L,2,0,"div",10),T.j41(14,"div",11),T.SdG(15,2),T.nrm(16,"div",null,1),T.k0s()(),T.nVh(18,W,5,10),T.k0s()),2&e){let e;const n=T.bH3(null==t.dialogRef?null:t.dialogRef.isDrawer),r=null!==(i=t.width())&&void 0!==i?i:"";T.R7$(),T.Y8G("ngClass",T.l_i(11,V,r,n?"tw-h-full tw-border-t-0":"tw-rounded-t-xl md:tw-rounded-xl tw-shadow-lg"));const s=t.bodyHasScrolledFrom().top;T.R7$(),T.Y8G("ngClass",T.ziG(14,G,!n,n,s,!s)),T.R7$(),T.vxM(t.isStacked()?3:-1),T.R7$(3),T.SpI(" ",t.title()," "),T.R7$(),T.vxM((e=t.subtitle())?7:-1,e),T.R7$(4),T.vxM(null!=t.dialogRef&&t.dialogRef.disableClose?-1:11),T.R7$(),T.Y8G("ngClass",T.sMw(19,U,t.loading(),"default"===t.background(),"alt"===t.background())),T.R7$(),T.vxM(t.loading()?13:-1),T.R7$(),T.Y8G("ngClass",T.ziG(23,O,!t.hasFooter(),!t.loading(),t.loading(),"alt"===t.background())),T.R7$(4),T.vxM(t.hasFooter()?18:-1)}},dependencies:[s.MD,s.YU,k.h,m.r,p.s,Q.I,n.kB,r.uv,v.t,s.Jj,h.$Z],encapsulation:2})},7730(e,t,i){"use strict";i.d(t,{I:()=>o});var n=i(24590),r=i(14041),s=i(44075);class o{constructor(e){this.dialogRef=e,this.dialogResult=(0,n.hFB)(void 0,Object.assign(Object.assign({},{}),{alias:"bitDialogClose"}))}get disableClose(){var e;return!!(null===(e=this.dialogRef)||void 0===e?void 0:e.disableClose)||null}close(){!this.disableClose&&this.dialogRef&&this.dialogRef.close(this.dialogResult())}}o.ɵfac=function(e){return new(e||o)(r.rXU(s.ce,8))},o.ɵdir=r.FsC({type:o,selectors:[["","bitDialogClose",""]],hostVars:1,hostBindings:function(e,t){1&e&&r.bIt("click",function(){return t.close()}),2&e&&r.BMQ("disabled",t.disableClose)},inputs:{dialogResult:[1,"bitDialogClose","dialogResult"]}})},35042(e,t,i){"use strict";i.d(t,{h:()=>a});var n=i(24590),r=i(14041),s=i(88744);let o=0;class a{constructor(e){this.dialogRef=e,this.id="bit-dialog-title-"+o++,this.simple=(0,n.hFB)(!1)}ngOnInit(){this.dialogRef&&Promise.resolve().then(()=>{const e=this.dialogRef.containerInstance;e&&0===e._ariaLabelledByQueue.length&&e._ariaLabelledByQueue.push(this.id)})}}a.ɵfac=function(e){return new(e||a)(r.rXU(s.ce,8))},a.ɵdir=r.FsC({type:a,selectors:[["","bitDialogTitleContainer",""]],hostVars:1,hostBindings:function(e,t){2&e&&r.Avn("id",t.id)},inputs:{simple:[1,"simple"]}})},66723(e,t,i){"use strict";i.d(t,{d:()=>h});var n=i(11217),r=i(63477),s=i(92128),o=i(26983),a=i(16385),l=i(68711),c=i(69783),d=i(34949),u=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class h{constructor(){var e;this.router=(0,n.WQX)(o.Ix,{optional:!0}),this.stack=(0,n.vPA)([]),this.portal=(0,r.EW)(()=>{var e;return null===(e=this.stack().at(-1))||void 0===e?void 0:e.portal}),this.stackDepth=(0,r.EW)(()=>this.stack().length),this.pushWidthPx=(0,n.vPA)(0),this.isPushMode=(0,n.vPA)(!1),(null===(e=this.router)||void 0===e?void 0:e.events)&&this.router.events.pipe((0,l.p)(e=>e instanceof o.wF),(0,c.T)(e=>e.urlAfterRedirects.split("?")[0]),(0,d.Z)(this.router.url.split("?")[0]),(0,a.F)(),(0,l.p)(()=>{var e;return!0===(null===(e=this.stack()[0])||void 0===e?void 0:e.closeOnNavigation)}),(0,s.pQ)()).subscribe(()=>this.forceCloseAll())}push(e){this.stack.update(t=>[...t,e])}pop(){0!==this.stack().length&&(this.stack.update(e=>e.slice(0,-1)),0===this.stack().length&&(this.pushWidthPx.set(0),this.isPushMode.set(!1)))}isTop(e){const t=this.stack();return t.length>0&&t[t.length-1]===e}closeAll(){return u(this,void 0,void 0,function*(){for(;this.stack().length>0;){const e=this.stack()[this.stack().length-1];if(e.disableClose)return!1;const{closed:t}=yield e.close();if(!t)return!1}return!0})}forceCloseAll(){const e=[...this.stack()].reverse();this.stack.set([]),this.pushWidthPx.set(0),this.isPushMode.set(!1);for(const t of e)t._forceClose()}declarePushWidth(e){this.pushWidthPx.set(e)}}h.ɵfac=function(e){return new(e||h)},h.ɵprov=n.jDH({token:h,factory:h.ɵfac,providedIn:"root"})},67311(e,t,i){"use strict";i.d(t,{hJ:()=>f,LJ:()=>m,o_:()=>y});var n=i(24590),r=i(14041),s=i(11217),o=i(55686),a=i(56898),l=i(58384),c=i(58806),d=i(63636);const u=(0,d.hZ)("fadeIn",[(0,d.kY)(":enter",[(0,d.iF)({opacity:0,transform:"translateY(-50px)"}),(0,d.Os)([(0,d.i0)("0.15s linear",(0,d.iF)({opacity:1})),(0,d.i0)("0.3s ease-out",(0,d.iF)({transform:"none"}))])])]);var h=i(35042);const A=["dialogHeader"],p=[[["","bitDialogTitle",""]],[["","bitDialogContent",""]],[["","bitDialogFooter",""]],[["","bitDialogIcon",""]]];function g(e,t){1&e&&r.nrm(0,"bit-icon",6)}function v(e,t){1&e&&r.SdG(0,3,null,g,1,0)}class m{}m.ɵfac=function(e){return new(e||m)},m.ɵdir=r.FsC({type:m,selectors:[["","bitDialogIcon",""]]});class f{constructor(){this.buttons=(0,n.tEk)(a.Q,Object.assign(Object.assign({},{}),{read:r.aKT}))}}f.ɵfac=function(e){return new(e||f)},f.ɵdir=r.FsC({type:f,selectors:[["","bitDialogFooter",""]],contentQueries:function(e,t,i){1&e&&r.C6U(i,t.buttons,a.Q,4,r.aKT),2&e&&r.NyB()}});class y{constructor(){this.autofocusFallback=(0,s.WQX)(o.D,{host:!0}),this.dialogHeader=n.ebz.required("dialogHeader"),this.footer=(0,n.sbv)(f),this.hideIcon=(0,n.hFB)(!1,Object.assign(Object.assign({},{}),{transform:n.L39}))}ngAfterViewInit(){var e,t,i;const n=null!==(t=null===(e=this.footer())||void 0===e?void 0:e.buttons())&&void 0!==t?t:[];this.autofocusFallback.bitAutofocusFallback.set(null!==(i=n[0])&&void 0!==i?i:this.dialogHeader())}}y.ɵfac=function(e){return new(e||y)},y.ɵcmp=r.VBU({type:y,selectors:[["bit-simple-dialog"],["","bit-simple-dialog",""]],contentQueries:function(e,t,i){1&e&&r.C6U(i,t.footer,f,5),2&e&&r.NyB()},viewQuery:function(e,t){1&e&&r.wEZ(t.dialogHeader,A,5),2&e&&r.NyB()},inputs:{hideIcon:[1,"hideIcon"]},features:[r.nM4([o.D])],ngContentSelectors:["[bitDialogTitle]","[bitDialogContent]","[bitDialogFooter]","[bitDialogIcon]"],decls:10,vars:2,consts:[["dialogHeader",""],[1,"tw-my-4","tw-pb-6","tw-pt-8","tw-flex","tw-max-h-screen","tw-w-96","tw-max-w-90vw","tw-flex-col","tw-overflow-hidden","tw-rounded-3xl","tw-border","tw-border-solid","tw-border-secondary-100","tw-shadow-lg","tw-bg-text-contrast","tw-text-main"],[1,"tw-flex","tw-px-6","tw-flex-col","tw-items-center","tw-gap-2","tw-text-center"],["bitDialogTitleContainer","","bitTypography","h3","noMargin","","tabindex","-1",1,"tw-w-full","tw-text-main","tw-break-words","focus-visible:tw-outline-none"],["tabindex","0",1,"tw-overflow-y-auto","tw-px-6","tw-mb-6","tw-text-center","tw-text-base","tw-break-words"],[1,"tw-flex","tw-flex-col","tw-gap-2","tw-px-6"],["name","bwi-exclamation-triangle",1,"tw-text-3xl","tw-text-warning"]],template:function(e,t){1&e&&(r.NAR(p),r.j41(0,"div",1)(1,"div",2),r.nVh(2,v,2,0),r.j41(3,"h1",3,0),r.SdG(5),r.k0s()(),r.j41(6,"div",4),r.SdG(7,1),r.k0s(),r.j41(8,"div",5),r.SdG(9,2),r.k0s()()),2&e&&(r.Y8G("@fadeIn",void 0),r.R7$(2),r.vxM(t.hideIcon()?-1:2))},dependencies:[h.h,c.r,l.R],encapsulation:2,data:{animation:[u]},changeDetection:0})},84570(e,t,i){"use strict";i.d(t,{G:()=>u});var n=i(24590),r=i(11217),s=i(63477),o=i(84210),a=i(50700),l=i(15033),c=i(14041);let d=0;class u{constructor(){this.id="bit-form-control-"+ ++d,this.label=(0,n.hFB)(),this.inline=(0,n.hFB)(!1,Object.assign(Object.assign({},{}),{transform:n.L39})),this.disableMargin=(0,n.hFB)(!1,Object.assign(Object.assign({},{}),{transform:n.L39})),this.disableMarginSignal=(0,r.vPA)(!1),this.computedDisableMargin=(0,s.EW)(()=>this.disableMargin()||this.disableMarginSignal()),this.hostClasses=(0,s.EW)(()=>[...this.inline()?["tw-inline-block","tw-me-4"]:["tw-block"],...this.computedDisableMargin()?[]:["tw-mb-4"]]),this.formControl=n.sbv.required(l.J),this.ngControl=(0,n.sbv)(o.vO),this.inputId=(0,s.EW)(()=>this.formControl().inputId),this.i18nService=(0,r.WQX)(a.W)}get displayError(){var e,t;const i=this.formControl().error;return"required"===i[0]?this.i18nService.t("inputRequired"):(null===(e=i[1])||void 0===e?void 0:e.message)?null===(t=i[1])||void 0===t?void 0:t.message:i}}u.ɵfac=function(e){return new(e||u)},u.ɵdir=c.FsC({type:u,selectors:[["","bitFormControlBase",""]],contentQueries:function(e,t,i){1&e&&c.C6U(i,t.formControl,l.J,5)(i,t.ngControl,o.vO,5),2&e&&c.NyB(2)},hostVars:2,hostBindings:function(e,t){2&e&&c.HbH(t.hostClasses())},inputs:{label:[1,"label"],inline:[1,"inline"],disableMargin:[1,"disableMargin"]}})},38867(e,t,i){"use strict";i.d(t,{b:()=>f});var n=i(24590),r=i(11217),s=i(63477),o=i(36801),a=i(58384),l=i(89684),c=i(58806),d=i(84570),u=i(42016),h=i(93199),A=i(14041);const p=[[["bit-label"]],[["bit-hint"]],"*"];function g(e,t){if(1&e&&A.nrm(0,"bit-icon-tile",4),2&e){A.XpG();const e=A.r8f(0);A.Y8G("variant",e.disabled?"subtle":"primary")("icon",t)}}function v(e,t){1&e&&(A.j41(0,"sup",9),A.EFF(1,"*"),A.k0s(),A.j41(2,"span",10),A.EFF(3),A.nI1(4,"i18n"),A.k0s()),2&e&&(A.R7$(3),A.SpI(" (",A.bMT(4,1,"required"),")"))}function m(e,t){if(1&e&&(A.nrm(0,"bit-icon",11),A.EFF(1)),2&e){const e=A.XpG();A.R7$(),A.SpI(" ",e.base.displayError," ")}}class f{get effectiveErrorId(){var e,t;return null!==(t=null===(e=this.group)||void 0===e?void 0:e.errorId)&&void 0!==t?t:this.errorId}constructor(){this.icon=(0,n.hFB)(),this.base=(0,r.WQX)(d.G),this.group=(0,r.WQX)(u.W,{optional:!0}),this.labelId=`${this.base.id}-label`,this.errorId=`${this.base.id}-error`,this.hint=(0,n.sbv)(h.I),this.effectiveHintId=(0,s.EW)(()=>{var e,t,i,n;return this.group?null!==(t=null===(e=this.group.hint())||void 0===e?void 0:e.id)&&void 0!==t?t:null:null!==(n=null===(i=this.hint())||void 0===i?void 0:i.id)&&void 0!==n?n:null}),this.base.disableMarginSignal.set(!0)}}f.ɵfac=function(e){return new(e||f)},f.ɵcmp=A.VBU({type:f,selectors:[["bit-form-control-card"]],contentQueries:function(e,t,i){1&e&&A.C6U(i,t.hint,h.I,5),2&e&&A.NyB()},hostAttrs:[1,"[&_bit-hint]:tw-leading-4","[&_bit-hint]:tw-mt-0"],inputs:{icon:[1,"icon"]},features:[A.nM4([{directive:d.G,inputs:["label","label","inline","inline"]}])],ngContentSelectors:["bit-label","bit-hint","*"],decls:15,vars:19,consts:[[1,"tw-flex","tw-flex-col","tw-gap-2"],[1,"tw-flex","tw-items-center","tw-relative","tw-isolate","tw-p-4","tw-border","tw-border-border-base","tw-rounded-xl","tw-justify-between","tw-gap-4","has-[input:focus-visible]:tw-ring-2","has-[input:focus-visible]:tw-ring-border-focus","has-[input:focus-visible]:tw-border-transparent","tw-transition-colors"],[1,"tw-absolute","tw-inset-0","tw-rounded-xl",3,"for"],[1,"tw-flex","tw-items-center","tw-gap-4","tw-relative","tw-pointer-events-none","[&_a]:tw-pointer-events-auto","[&_button]:tw-pointer-events-auto"],[1,"tw-self-start","tw-relative","tw-top-[1px]",3,"variant","icon"],[1,"tw-inline-flex","tw-flex-col"],["bitTypography","body2",1,"tw-flex","tw-gap-0.5","tw-items-center","tw-leading-5","tw-font-medium",3,"id"],[1,"tw-relative","tw-pointer-events-none","tw-flex","[&_a]:tw-pointer-events-auto","[&_button]:tw-pointer-events-auto"],[1,"tw-text-fg-danger","tw-text-xs","tw-ms-0.5",3,"id","hidden"],["aria-hidden","",1,"tw-text-sm","tw-text-fg-danger","tw-relative","tw-top-[-1px]"],[1,"tw-sr-only"],["name","bwi-error"]],template:function(e,t){if(1&e&&(A.NAR(p),A.SS7(0),A.j41(1,"div",0)(2,"div",1),A.nrm(3,"label",2),A.j41(4,"div",3),A.nVh(5,g,1,2,"bit-icon-tile",4),A.j41(6,"span",5)(7,"span",6),A.SdG(8),A.nVh(9,v,5,3),A.k0s(),A.SdG(10,1),A.k0s()(),A.j41(11,"div",7),A.SdG(12,2),A.k0s()(),A.j41(13,"div",8),A.nVh(14,m,2,1),A.k0s()()),2&e){let e;const i=A.bH3(t.base.formControl());A.R7$(2),A.HbH(i.disabled?"":"has-[label:hover]:tw-border-border-brand-soft has-[input:checked]:tw-bg-bg-brand-softer has-[input:checked]:hover:tw-bg-bg-brand-soft"),A.R7$(),A.HbH(i.disabled?"tw-cursor-default":"tw-cursor-pointer"),A.Y8G("for",t.base.inputId()),A.BMQ("aria-labelledby",t.labelId),A.R7$(2),A.vxM((e=t.icon())?5:-1,e),A.R7$(),A.HbH(i.disabled?"[&_bit-hint]:!tw-text-fg-inactive":""),A.AVh("tw-text-fg-inactive",i.disabled)("tw-text-fg-heading",!i.disabled),A.R7$(),A.Y8G("id",t.labelId),A.R7$(2),A.vxM(i.required?9:-1),A.R7$(4),A.Y8G("id",t.errorId)("hidden",!i.hasError),A.R7$(),A.vxM(i.hasError?14:-1)}},dependencies:[c.r,l.F,a.R,o.$Z],encapsulation:2,changeDetection:0})},42016(e,t,i){"use strict";i.d(t,{W:()=>S});var n=i(46758),r=i(24590),s=i(14041),o=i(11217),a=i(63477),l=i(92128),c=i(84210),d=i(68711),u=i(50700),h=i(36801),A=i(58384),p=i(93199),g=i(86226);const v=[[["bit-label"]],"*",[["bit-hint"]]];function m(e,t){1&e&&(s.j41(0,"sup",4),s.EFF(1,"*"),s.k0s(),s.j41(2,"span",5),s.EFF(3),s.nI1(4,"i18n"),s.k0s()),2&e&&(s.R7$(3),s.SpI(" (",s.bMT(4,1,"required"),")"))}function f(e,t){1&e&&s.eu8(0)}function y(e,t){if(1&e&&(s.j41(0,"fieldset",1)(1,"legend",2),s.SdG(2),s.nVh(3,m,5,3),s.k0s(),s.DNE(4,f,1,0,"ng-container",3),s.k0s()),2&e){const e=s.XpG(),t=s.sdS(3);s.R7$(3),s.vxM(e.required()?3:-1),s.R7$(),s.Y8G("ngTemplateOutlet",t)}}function b(e,t){1&e&&s.eu8(0)}function C(e,t){if(1&e&&s.DNE(0,b,1,0,"ng-container",3),2&e){s.XpG();const e=s.sdS(3);s.Y8G("ngTemplateOutlet",e)}}function I(e,t){if(1&e&&(s.j41(0,"div",7),s.nrm(1,"bit-icon",8),s.EFF(2),s.k0s()),2&e){const e=s.XpG(2);s.Y8G("id",e.errorId),s.R7$(2),s.SpI(" ",e.displayError()," ")}}function w(e,t){1&e&&s.SdG(0,2)}function B(e,t){if(1&e&&(s.j41(0,"div",6)(1,"div"),s.SdG(2,1),s.k0s(),s.nVh(3,I,3,2,"div",7)(4,w,1,0),s.k0s()),2&e){const e=s.XpG();s.R7$(),s.HbH(e.containerClass()),s.R7$(2),s.vxM(e.hasError()?3:4)}}let E=0;class S{constructor(){this.ngControl=(0,o.WQX)(c.vO,{optional:!0,self:!0}),this.i18nService=(0,o.WQX)(u.W),this.elementRef=(0,o.WQX)(s.aKT),this.destroyRef=(0,o.WQX)(o.abz),this.id="bit-form-control-group-"+E++,this.errorId=`${this.id}-error`,this.block=(0,r.hFB)(!1),this.label=(0,r.sbv)(g.j),this.hint=(0,r.sbv)(p.I,Object.assign(Object.assign({},{}),{descendants:!1})),this.containerClass=(0,a.EW)(()=>this.block()||"multi"===this.mode()?"tw-flex tw-flex-col tw-gap-2 [&_bit-form-control-card]:!tw-mb-0 [&_bit-radio-button-card]:!tw-mb-0 [&_bit-radio-button]:!tw-mb-0":"tw-flex [&_bit-form-control]:tw-flex"),this._hasRadioChildren=(0,o.vPA)(!1),this.mode=(0,a.EW)(()=>this._hasRadioChildren()?"single":"multi"),this.selectedValues=(0,o.vPA)([]),this.groupDisabled=(0,o.vPA)(!1),this._touched=(0,o.vPA)(!1),this._status=(0,o.vPA)(null),this.required=(0,a.EW)(()=>{var e,t,i;return this._status(),null!==(i=null===(t=null===(e=this.ngControl)||void 0===e?void 0:e.control)||void 0===t?void 0:t.hasValidator(c.k0.required))&&void 0!==i&&i}),this.hasError=(0,a.EW)(()=>"INVALID"===this._status()&&this._touched()),this.error=(0,a.EW)(()=>{var e,t;this._status();const i=null!==(t=null===(e=this.ngControl)||void 0===e?void 0:e.errors)&&void 0!==t?t:{},n=Object.keys(i)[0];return[n,i[n]]}),this.displayError=(0,a.EW)(()=>{const[e,t]=this.error();return"required"===e?this.i18nService.t("inputRequired"):(null==t?void 0:t.message)?t.message:e}),this.notifyOnChange=(0,o.vPA)(()=>{}),this.notifyOnTouched=(0,o.vPA)(()=>{}),this.ngControl&&(this.ngControl.valueAccessor=this)}registerRadioChild(){this._hasRadioChildren.set(!0)}get name(){var e,t;return null===(t=null===(e=this.ngControl)||void 0===e?void 0:e.name)||void 0===t?void 0:t.toString()}onItemChange(e){var t,i,n;"single"===this.mode()?(this.selectedValues.set([e]),null===(t=this.notifyOnChange())||void 0===t||t(e)):(this.selectedValues.update(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]),null===(i=this.notifyOnChange())||void 0===i||i(this.selectedValues())),null===(n=this.notifyOnTouched())||void 0===n||n()}onBlur(){var e;null===(e=this.notifyOnTouched())||void 0===e||e()}onFocusOut(e){this.elementRef.nativeElement.contains(e.relatedTarget)||this.onBlur()}ngAfterContentInit(){var e,t,i;this.ngControl&&(this._status.set(this.ngControl.status),(null===(e=this.ngControl.control)||void 0===e?void 0:e.touched)&&this._touched.set(!0),null===(t=this.ngControl.statusChanges)||void 0===t||t.pipe((0,l.pQ)(this.destroyRef)).subscribe(e=>this._status.set(e)),null===(i=this.ngControl.control)||void 0===i||i.events.pipe((0,d.p)(e=>e instanceof c.rS),(0,l.pQ)(this.destroyRef)).subscribe(e=>this._touched.set(e.touched)))}writeValue(e){Array.isArray(e)?this.selectedValues.set(e):null!=e?this.selectedValues.set([e]):this.selectedValues.set([])}registerOnChange(e){this.notifyOnChange.set(e)}registerOnTouched(e){this.notifyOnTouched.set(()=>{e(),this._touched.set(!0)})}setDisabledState(e){this.groupDisabled.set(e)}}S.ɵfac=function(e){return new(e||S)},S.ɵcmp=s.VBU({type:S,selectors:[["bit-form-control-group"],["bit-radio-group"]],contentQueries:function(e,t,i){1&e&&s.C6U(i,t.label,g.j,5)(i,t.hint,p.I,4),2&e&&s.NyB(2)},hostAttrs:[1,"tw-block","tw-mb-4"],hostBindings:function(e,t){1&e&&s.bIt("focusout",function(e){return t.onFocusOut(e)})},inputs:{block:[1,"block"]},ngContentSelectors:["bit-label","*","bit-hint"],decls:4,vars:2,consts:[["contentTemplate",""],[1,"tw-border-none","tw-m-0","tw-p-0"],[1,"tw-flex","tw-gap-0.5","tw-items-center","tw-mb-2","tw-text-sm/5","tw-font-medium"],[4,"ngTemplateOutlet"],["aria-hidden","true",1,"tw-text-sm","tw-text-fg-danger","tw-relative","tw-top-[-1px]"],[1,"tw-sr-only"],[1,"tw-flex","tw-flex-col","tw-gap-2"],[1,"tw-text-fg-danger","tw-text-xs","tw-ms-0.5",3,"id"],["name","bwi-error"]],template:function(e,t){1&e&&(s.NAR(v),s.nVh(0,y,5,2,"fieldset",1),s.nVh(1,C,1,1,"ng-container"),s.DNE(2,B,5,3,"ng-template",null,0,s.C5r)),2&e&&(s.vxM(t.label()?0:-1),s.R7$(),s.vxM(t.label()?-1:1))},dependencies:[n.T3,A.R,h.$Z],encapsulation:2,changeDetection:0})},15033(e,t,i){"use strict";i.d(t,{J:()=>n});class n{}},90246(e,t,i){"use strict";i.d(t,{f:()=>A});var n=i(11217),r=i(36801),s=i(58384),o=i(58806),a=i(84570),l=i(14041);const c=["*",[["bit-label"]],[["bit-hint"]]];function d(e,t){1&e&&(l.j41(0,"span",3),l.EFF(1),l.nI1(2,"i18n"),l.k0s()),2&e&&(l.R7$(),l.SpI(" (",l.bMT(2,1,"required"),")"))}function u(e,t){1&e&&(l.j41(0,"span",4),l.SdG(1,2),l.k0s())}function h(e,t){if(1&e&&(l.j41(0,"div",5),l.nrm(1,"bit-icon",6),l.EFF(2),l.k0s()),2&e){const e=l.XpG();l.R7$(2),l.SpI(" ",e.base.displayError," ")}}class A{constructor(){this.base=(0,n.WQX)(a.G)}}A.ɵfac=function(e){return new(e||A)},A.ɵcmp=l.VBU({type:A,selectors:[["bit-form-control"]],features:[l.nM4([{directive:a.G,inputs:["label","label","inline","inline","disableMargin","disableMargin"]}])],ngContentSelectors:["*","bit-label","bit-hint"],decls:8,vars:11,consts:[[1,"tw-transition","tw-items-start","tw-gap-2","tw-select-none","tw-mb-0","tw-inline-flex","tw-rounded","has-[:focus-visible]:tw-ring","has-[:focus-visible]:tw-ring-border-focus"],[1,"tw-inline-flex","tw-flex-col","tw-pt-px"],["bitTypography","body2",1,"tw-leading-5","tw-font-medium"],[1,"tw-text-xs","tw-font-normal"],[1,"[&_bit-hint]:tw-mt-0","tw-leading-none"],[1,"tw-mt-1","tw-text-danger","tw-text-xs","tw-ms-0.5"],["name","bwi-error"]],template:function(e,t){if(1&e&&(l.NAR(c),l.j41(0,"label",0),l.SdG(1),l.j41(2,"span",1)(3,"span",2),l.SdG(4,1),l.nVh(5,d,3,3,"span",3),l.k0s(),l.nVh(6,u,2,0,"span",4),l.k0s()(),l.nVh(7,h,3,1,"div",5)),2&e){const e=t.base.formControl();l.AVh("tw-cursor-auto",e.disabled)("tw-cursor-pointer",!e.disabled),l.R7$(2),l.AVh("tw-text-fg-inactive",e.disabled)("tw-text-fg-heading",!e.disabled),l.R7$(3),l.vxM(e.required?5:-1),l.R7$(),l.vxM(e.hasError?-1:6),l.R7$(),l.vxM(e.hasError?7:-1)}},dependencies:[o.r,s.R,r.$Z],encapsulation:2})},89033(e,t,i){"use strict";i.d(t,{c:()=>o});var n=i(86226),r=i(14041),s=i(11217);class o{}o.ɵfac=function(e){return new(e||o)},o.ɵmod=r.$C({type:o}),o.ɵinj=s.G2t({imports:[n.j]})},93199(e,t,i){"use strict";i.d(t,{I:()=>s});var n=i(14041);let r=0;class s{constructor(){this.id="bit-hint-"+r++}}s.ɵfac=function(e){return new(e||s)},s.ɵdir=n.FsC({type:s,selectors:[["bit-hint"]],hostAttrs:[1,"tw-text-muted","tw-font-normal","tw-inline-block","tw-mt-1","tw-text-xs"],hostVars:1,hostBindings:function(e,t){2&e&&n.Avn("id",t.id)}})},86226(e,t,i){"use strict";i.d(t,{j:()=>g});var n=i(46758),r=i(24590),s=i(14041),o=i(90246);const a=["*",[["","slot","end"]]],l=e=>({"tw-truncate":e});function c(e,t){1&e&&s.SdG(0,1)}function d(e,t){1&e&&s.eu8(0)}function u(e,t){if(1&e&&s.DNE(0,d,1,0,"ng-container",2),2&e){s.XpG();const e=s.sdS(1);s.Y8G("ngTemplateOutlet",e)}}function h(e,t){1&e&&s.eu8(0)}function A(e,t){if(1&e&&s.DNE(0,h,1,0,"ng-container",2),2&e){s.XpG();const e=s.sdS(1);s.Y8G("ngTemplateOutlet",e)}}let p=0;class g{constructor(e,t){this.elementRef=e,this.parentFormControl=t,this.classList=["tw-inline-flex","tw-gap-1","tw-items-baseline","tw-flex-row","tw-min-w-0"],this.id=(0,r.hFB)("bit-label-"+p++)}get title(){var e,t;return null!==(t=null===(e=this.elementRef.nativeElement.textContent)||void 0===e?void 0:e.trim())&&void 0!==t?t:""}get isInsideFormControl(){return!!this.parentFormControl}}g.ɵfac=function(e){return new(e||g)(s.rXU(s.aKT),s.rXU(o.f,8))},g.ɵcmp=s.VBU({type:g,selectors:[["bit-label"]],hostVars:4,hostBindings:function(e,t){2&e&&(s.Avn("id",t.id())("title",t.title),s.HbH(t.classList))},inputs:{id:[1,"id"]},ngContentSelectors:["*","[slot=end]"],decls:6,vars:5,consts:[["endSlotContent",""],[3,"ngClass"],[4,"ngTemplateOutlet"]],template:function(e,t){1&e&&(s.NAR(a),s.DNE(0,c,1,0,"ng-template",null,0,s.C5r),s.j41(2,"span",1),s.SdG(3),s.nVh(4,u,1,1,"ng-container"),s.k0s(),s.nVh(5,A,1,1,"ng-container")),2&e&&(s.R7$(2),s.Y8G("ngClass",s.eq3(3,l,!t.isInsideFormControl)),s.R7$(2),s.vxM(t.isInsideFormControl?4:-1),s.R7$(),s.vxM(t.isInsideFormControl?-1:5))},dependencies:[n.MD,n.YU,n.T3],encapsulation:2})},68466(e,t,i){"use strict";i.d(t,{L:()=>l});var n=i(24590),r=i(84210),s=i(36801),o=i(14041);function a(e,t){if(1&e&&(o.Hgh(0,"i",0),o.EFF(1),o.nI1(2,"i18n")),2&e){const e=o.XpG();o.R7$(),o.SpI(" ",o.i5U(2,1,"fieldsNeedAttention",e.errorString)," ")}}class l{constructor(){this.formGroup=(0,n.hFB)()}get errorCount(){const e=this.formGroup();return e?this.getErrorCount(e):0}get errorString(){return this.errorCount.toString()}getErrorCount(e){return Object.values(e.controls).reduce((e,t)=>t instanceof r.J3?e+this.getErrorCount(t):null==t.errors||!t.dirty&&t.untouched?e:e+Object.keys(t.errors).length,0)}}l.ɵfac=function(e){return new(e||l)},l.ɵcmp=o.VBU({type:l,selectors:[["bit-error-summary"]],hostAttrs:["aria-live","assertive",1,"tw-block","tw-text-danger","tw-mt-2"],inputs:{formGroup:[1,"formGroup"]},decls:1,vars:1,consts:[[1,"bwi","bwi-error"]],template:function(e,t){1&e&&o.nVh(0,a,3,4),2&e&&o.vxM(t.errorCount>0?0:-1)},dependencies:[s.$Z],encapsulation:2})},25653(e,t,i){"use strict";i.d(t,{i:()=>o});var n=i(24590),r=i(63477),s=i(14041);class o{constructor(){this.size=(0,n.hFB)("base"),this.hasError=(0,n.hFB)(!1,Object.assign(Object.assign({},{}),{transform:n.L39})),this.readOnly=(0,n.hFB)(!1,Object.assign(Object.assign({},{}),{transform:n.L39})),this.classes=(0,r.EW)(()=>["tw-group/form-field","tw-flex","tw-w-full","tw-border","tw-rounded-xl","tw-border-solid","tw-border-border-strong","tw-bg-bg-secondary","tw-placeholder-fg-body-subtle","has-[input:disabled]:tw-border-border-base","tw-transition-colors","has-[:focus-visible]:tw-border-border-brand","has-[.tw-test-focus-visible]:tw-border-border-brand","has-[:focus-visible]:tw-ring-border-brand","has-[.tw-test-focus-visible]:tw-ring-border-brand","has-[:focus-visible]:tw-ring-1","has-[.tw-test-focus-visible]:tw-ring-1","tw-relative","has-[select]:after:tw-absolute","has-[select]:after:tw-end-[calc(theme(spacing.3)_+_2px)]","has-[select]:after:tw-top-[calc(50%_-_1px)]","has-[select]:after:tw-rotate-[45deg]","has-[select]:after:-tw-translate-y-1/2","has-[select]:after:tw-size-2","has-[select]:after:tw-border-fg-heading","has-[select]:after:tw-border-r-[2px]","has-[select]:after:tw-border-b-[2px]","has-[select]:after:tw-rounded-[2px]",..."large"===this.size()?["tw-text-base/6","tw-min-h-12"]:["tw-text-sm/5","tw-min-h-10"],...this.hasError()?["!tw-ring-border-danger","tw-ring-1","!tw-border-border-danger","has-[:focus-visible]:!tw-border-border-brand","has-[.tw-test-focus-visible]:!tw-border-border-brand","has-[:focus-visible]:!tw-ring-border-brand","has-[.tw-test-focus-visible]:!tw-ring-border-brand"]:[],...this.readOnly()?["tw-bg-transparent","tw-border-transparent","has-[:focus-visible]:!tw-border-border-focus","has-[.tw-test-focus-visible]:!tw-border-border-focus","has-[:focus-visible]:!tw-ring-border-focus","has-[.tw-test-focus-visible]:!tw-ring-border-focus"]:["[&:not(:has(:focus-visible)):not(:has(input:disabled)):hover]:tw-bg-bg-quaternary","[&:not(:has(:focus-visible)):not(:has(.tw-test-focus-visible)):not(:has(input:disabled)).tw-test-hover]:tw-bg-bg-quaternary"]].join(" "))}}o.ɵfac=function(e){return new(e||o)},o.ɵdir=s.FsC({type:o,selectors:[["","bitFieldContainer",""]],hostVars:2,hostBindings:function(e,t){2&e&&s.HbH(t.classes())},inputs:{size:[1,"size"],hasError:[1,"hasError"],readOnly:[1,"readOnly"]}})},92010(e,t,i){"use strict";i.d(t,{y:()=>u});var n=i(24590),r=i(11217),s=i(63477),o=i(92128),a=i(84210),l=i(68711),c=i(14041);let d=0;class u{constructor(){this.ngControl=(0,r.WQX)(a.vO,{optional:!0,self:!0}),this.destroyRef=(0,r.WQX)(r.abz),this.controlEvent=(0,r.vPA)(null),this.id=(0,n.hFB)("bit-form-field-"+d++),this.ariaDescribedBy=(0,r.vPA)(void 0),this.labelForId=(0,r.vPA)(""),this.readOnly=(0,n.hFB)(!1,Object.assign(Object.assign({},{}),{transform:n.L39,alias:"readonly"})),this.type=(0,n.geq)(void 0),this.spellcheck=(0,n.geq)(void 0),this.requiredInput=(0,n.hFB)(!1,Object.assign(Object.assign({},{}),{transform:n.L39,alias:"required"})),this.required=(0,s.EW)(()=>{var e,t,i;return this.controlEvent(),this.requiredInput()||null!==(i=null===(t=null===(e=this.ngControl)||void 0===e?void 0:e.control)||void 0===t?void 0:t.hasValidator(a.k0.required))&&void 0!==i&&i}),this.showErrorsWhenDisabled=(0,n.hFB)(!1),this.hasError=(0,s.EW)(()=>{var e,t,i,n,r,s;return this.controlEvent(),this.showErrorsWhenDisabled()?!("INVALID"!==(null===(e=this.ngControl)||void 0===e?void 0:e.status)&&"DISABLED"!==(null===(t=this.ngControl)||void 0===t?void 0:t.status)||!(null===(i=this.ngControl)||void 0===i?void 0:i.touched)||null==(null===(n=this.ngControl)||void 0===n?void 0:n.errors)):!("INVALID"!==(null===(r=this.ngControl)||void 0===r?void 0:r.status)||!(null===(s=this.ngControl)||void 0===s?void 0:s.touched))}),(0,r.QZP)(()=>this.labelForId.set(this.id()))}get error(){var e,t;const i=null!==(t=null===(e=this.ngControl)||void 0===e?void 0:e.errors)&&void 0!==t?t:{},n=Object.keys(i)[0];return[n,i[n]]}ngAfterViewInit(){var e,t;null===(t=null===(e=this.ngControl)||void 0===e?void 0:e.control)||void 0===t||t.events.pipe((0,l.p)(e=>e instanceof a.rS||e instanceof a.Xx),(0,o.pQ)(this.destroyRef)).subscribe(e=>this.controlEvent.set(e))}}u.ɵfac=function(e){return new(e||u)},u.ɵdir=c.FsC({type:u,hostVars:1,hostBindings:function(e,t){2&e&&c.BMQ("aria-describedby",t.ariaDescribedBy())},inputs:{id:[1,"id"],readOnly:[1,"readonly","readOnly"],type:[1,"type"],spellcheck:[1,"spellcheck"],requiredInput:[1,"required","requiredInput"],showErrorsWhenDisabled:[1,"showErrorsWhenDisabled"]},outputs:{type:"typeChange",spellcheck:"spellcheckChange"}})},43759(e,t,i){"use strict";i.d(t,{h:()=>C});var n=i(46758),r=i(24590),s=i(63477),o=i(36801),a=i(93199),l=i(86226),c=i(14041),d=i(50700);let u=0;class h{constructor(e){this.i18nService=e,this.id="bit-error-"+u++,this.error=(0,r.hFB)()}get displayError(){var e,t,i,n,r,s,o;const a=this.error();if(!a)return"";switch(a[0]){case"required":return this.i18nService.t("inputRequired");case"email":return this.i18nService.t("inputEmail");case"minlength":return this.i18nService.t("inputMinLength",null===(e=a[1])||void 0===e?void 0:e.requiredLength);case"maxlength":return this.i18nService.t("inputMaxLength",null===(t=a[1])||void 0===t?void 0:t.requiredLength);case"min":return this.i18nService.t("inputMinValue",null===(i=a[1])||void 0===i?void 0:i.min);case"max":return this.i18nService.t("inputMaxValue",null===(n=a[1])||void 0===n?void 0:n.max);case"forbiddenCharacters":return this.i18nService.t("inputForbiddenCharacters",null===(r=a[1])||void 0===r?void 0:r.characters.join(", "));case"multipleEmails":return this.i18nService.t("multipleInputEmails");case"trim":return this.i18nService.t("inputTrimValidator");default:return(null===(s=a[1])||void 0===s?void 0:s.message)?null===(o=a[1])||void 0===o?void 0:o.message:a}}}h.ɵfac=function(e){return new(e||h)(c.rXU(d.W))},h.ɵcmp=c.VBU({type:h,selectors:[["bit-error"]],hostAttrs:["aria-live","assertive",1,"tw-block","tw-mt-1","tw-text-danger","tw-text-xs"],hostVars:1,hostBindings:function(e,t){2&e&&c.Avn("id",t.id)},inputs:{error:[1,"error"]},decls:2,vars:1,consts:[[1,"bwi","bwi-error"]],template:function(e,t){1&e&&(c.Hgh(0,"i",0),c.EFF(1)),2&e&&(c.R7$(),c.SpI(" ",t.displayError))},encapsulation:2});var A=i(25653),p=i(92010),g=i(89757),v=i(69896);const m=[[["bit-label"]],[["","bitPrefix",""]],"*",[["","bitSuffix",""]],[["","slot","inline-end"]],[["bit-hint"]]];function f(e,t){1&e&&(c.j41(0,"sup",10),c.EFF(1,"*"),c.k0s(),c.j41(2,"span",11),c.EFF(3),c.nI1(4,"i18n"),c.k0s()),2&e&&(c.R7$(3),c.SpI(" (",c.bMT(4,1,"required"),")"))}function y(e,t){1&e&&c.SdG(0,5)}function b(e,t){if(1&e&&c.nrm(0,"bit-error",9),2&e){const e=c.XpG();c.Y8G("error",e.input().error)}}class C{constructor(){this.input=r.sbv.required(p.y),this.hint=(0,r.sbv)(a.I),this.label=(0,r.sbv)(l.j),this.error=(0,r.ebz)(h),this.disableMargin=(0,r.hFB)(!1,Object.assign(Object.assign({},{}),{transform:r.L39})),this.size=(0,r.hFB)("base"),this.prefixChildren=(0,r.tEk)(g.Z),this.suffixChildren=(0,r.tEk)(v.a),this.prefixHasChildren=(0,s.EW)(()=>this.prefixChildren().length>0),this.suffixHasChildren=(0,s.EW)(()=>this.suffixChildren().length>0)}get labelAndFieldContainerClasses(){return["tw-flex","tw-flex-col","has-[input:disabled]:!tw-text-fg-inactive","[&_bit-hint]:tw-m-0","[&_bit-error]:tw-m-0",...this.readOnly?[]:["tw-gap-2"]].join(" ")}get contentContainerClasses(){return["tw-size-full","tw-min-w-0","tw-relative","[&>*]:tw-p-0","[&>*::selection]:tw-bg-bg-brand-medium","[&>*::selection]:tw-text-fg-heading","has-[bit-select]:tw-p-0","has-[bit-multi-select]:tw-p-0","has-[textarea]:tw-pe-0","has-[textarea]:!tw-py-3",...this.readOnly?[]:["tw-px-3"]].join(" ")}get classList(){return["tw-block"].concat(this.disableMargin()?[]:["tw-mb-4","bit-compact:tw-mb-3"])}get readOnly(){return!!this.input().readOnly()}ngAfterContentChecked(){const e=this.error(),t=this.hint();e?this.input().ariaDescribedBy.set(e.id):t?this.input().ariaDescribedBy.set(t.id):this.input().ariaDescribedBy.set(void 0)}}C.ɵfac=function(e){return new(e||C)},C.ɵcmp=c.VBU({type:C,selectors:[["bit-form-field"]],contentQueries:function(e,t,i){1&e&&c.C6U(i,t.input,p.y,5)(i,t.hint,a.I,5)(i,t.label,l.j,5)(i,t.prefixChildren,g.Z,4)(i,t.suffixChildren,v.a,4),2&e&&c.NyB(5)},viewQuery:function(e,t){1&e&&c.wEZ(t.error,h,5),2&e&&c.NyB()},hostVars:2,hostBindings:function(e,t){2&e&&c.HbH(t.classList)},inputs:{disableMargin:[1,"disableMargin"],size:[1,"size"]},ngContentSelectors:["bit-label","[bitPrefix]","*","[bitSuffix]","[slot='inline-end']","bit-hint"],decls:18,vars:12,consts:[["prefixContainer",""],["suffixContainer",""],[1,"tw-flex","tw-items-center","tw-gap-0.5","tw-text-sm/5","tw-font-medium","tw-max-w-full"],[1,"tw-flex","tw-gap-2","tw-items-center"],["bitFieldContainer","",3,"size","hasError","readOnly"],[1,"tw-flex","tw-items-center","tw-border-e","tw-border-border-base","tw-px-3","tw-bg-bg-quaternary","tw-rounded-s-[11px]",3,"hidden"],[1,"tw-flex","tw-w-full","tw-items-center","tw-pe-3","has-[[biticonbutton]:last-child]:tw-pe-1","has-[bit-select]:tw-pe-0","has-[bit-multi-select]:tw-pe-0","has-[textarea]:!tw-items-start"],["data-default-content",""],[1,"tw-flex","tw-items-center","group-has-[textarea]/form-field:tw-pt-1",3,"hidden"],[3,"error"],[1,"tw-text-sm","tw-text-fg-danger","tw-relative","tw-top-[-1px]"],[1,"tw-sr-only"]],template:function(e,t){if(1&e&&(c.NAR(m),c.j41(0,"div")(1,"label",2),c.SdG(2),c.nVh(3,f,5,3),c.k0s(),c.j41(4,"div",3)(5,"div",4)(6,"div",5,0),c.SdG(8,1),c.k0s(),c.j41(9,"div",6)(10,"div",7),c.SdG(11,2),c.k0s(),c.j41(12,"div",8,1),c.SdG(14,3),c.k0s()()(),c.SdG(15,4),c.k0s(),c.nVh(16,y,1,0)(17,b,1,1,"bit-error",9),c.k0s()),2&e){let e;c.HbH(t.labelAndFieldContainerClasses),c.R7$(),c.BMQ("for",t.input().labelForId()),c.R7$(2),c.vxM(t.input().required()?3:-1),c.R7$(2),c.Y8G("size",t.size())("hasError",t.input().hasError())("readOnly",t.readOnly),c.R7$(),c.Y8G("hidden",!t.prefixHasChildren()),c.R7$(4),c.HbH(t.contentContainerClasses),c.R7$(2),c.Y8G("hidden",!t.suffixHasChildren()),c.R7$(4),c.vxM(!1===(e=t.input().hasError())?16:!0===e?17:-1)}},dependencies:[n.MD,h,A.i,o.$Z],encapsulation:2,changeDetection:0})},26411(e,t,i){"use strict";i.d(t,{L:()=>c});var n=i(89033),r=i(89479),s=i(61465),o=i(43759),a=i(14041),l=i(11217);class c{}c.ɵfac=function(e){return new(e||c)},c.ɵmod=a.$C({type:c}),c.ɵinj=l.G2t({imports:[n.c,r.x,s.i,o.h,n.c,r.x,s.i]})},76356(e,t,i){"use strict";i.d(t,{e:()=>c});var n=i(24590),r=i(11217),s=i(14041),o=i(36288),a=i(43759),l=i(50700);class c{onClick(){this.toggled.update(e=>!e),this.toggledChange.emit(this.toggled()),this.update()}constructor(e,t,i){this.button=e,this.formField=t,this.i18nService=i,this.toggled=(0,n.geq)(!1),this.toggledChange=new r.bkB,this.title=this.i18nService.t("toggleVisibility"),this.label=this.i18nService.t("toggleVisibility")}get icon(){return this.toggled()?"bwi-eye-slash":"bwi-eye"}ngOnChanges(){this.update()}ngAfterContentInit(){const e=this.formField.input();(null==e?void 0:e.type)&&this.toggled.set("password"!==e.type()),this.button.icon.set(this.icon)}update(){var e;this.button.icon.set(this.icon);const t=this.formField.input();null!=(null==t?void 0:t.type)&&(t.type.set(this.toggled()?"text":"password"),null===(e=null==t?void 0:t.spellcheck)||void 0===e||e.set(!this.toggled()&&void 0))}}c.ɵfac=function(e){return new(e||c)(s.rXU(o.s,1),s.rXU(a.h),s.rXU(l.W))},c.ɵdir=s.FsC({type:c,selectors:[["","bitPasswordInputToggle",""]],hostVars:3,hostBindings:function(e,t){1&e&&s.bIt("click",function(){return t.onClick()}),2&e&&s.BMQ("aria-pressed",t.toggled())("title",t.title)("aria-label",t.label)},inputs:{toggled:[1,"toggled"]},outputs:{toggled:"toggledChange",toggledChange:"toggledChange"},features:[s.OA$]})},89757(e,t,i){"use strict";i.d(t,{Z:()=>s});var n=i(14041),r=i(36288);class s{constructor(e){this.iconButtonComponent=e,this.classList=["tw-transition-colors","tw-text-fg-body","group-hover/form-field:tw-text-fg-brand","group-has-[:focus-visible]/form-field:!tw-text-fg-body-subtle"]}ngOnInit(){this.iconButtonComponent&&this.iconButtonComponent.size.set("small")}}s.ɵfac=function(e){return new(e||s)(n.rXU(r.s,8))},s.ɵdir=n.FsC({type:s,selectors:[["","bitPrefix",""]],hostVars:2,hostBindings:function(e,t){2&e&&n.HbH(t.classList)}})},69896(e,t,i){"use strict";i.d(t,{a:()=>o});var n=i(11217),r=i(36288),s=i(14041);class o{constructor(){this.iconButtonComponent=(0,n.WQX)(r.s,{optional:!0}),this.classList=this.iconButtonComponent?[]:["tw-text-fg-body"]}ngOnInit(){this.iconButtonComponent&&this.iconButtonComponent.size.set("small")}}o.ɵfac=function(e){return new(e||o)},o.ɵdir=s.FsC({type:o,selectors:[["","bitSuffix",""]],hostVars:2,hostBindings:function(e,t){2&e&&s.HbH(t.classList)}})},36288(e,t,i){"use strict";i.d(t,{s:()=>m});var n=i(24590),r=i(14041),s=i(11217),o=i(63477),a=i(30634),l=i(43749),c=i(53100),d=i(70171),u=i(83632),h=i(5513),A=i(6307),p=i(23542);function g(e,t){if(1&e&&r.nrm(0,"bit-spinner",1),2&e){const e=r.XpG();r.Y8G("size",e.spinnerSize())}}function v(e,t){if(1&e&&r.nrm(0,"i",3),2&e){const e=r.XpG();r.HbH(e.iconClass())}}class m{get showLoadingStyle(){return this.baseButton.showLoadingStyle()}getFocusTarget(){return this.elementRef.nativeElement}constructor(){this.baseButton=(0,s.WQX)(l.$H),this.elementRef=(0,s.WQX)(r.aKT),this.tooltip=(0,s.WQX)(h.d,{host:!0,optional:!0}),this.icon=n.geq.required(Object.assign(Object.assign({},{}),{alias:"bitIconButton"})),this.label=(0,n.hFB)(),this.buttonType=(0,n.hFB)("primaryGhost"),this.size=(0,n.geq)("default"),this.loading=this.baseButton.loading,this.disabled=this.baseButton.disabled,this.iconClass=(0,o.EW)(()=>[this.icon(),"!tw-m-0"]),this.classList=(0,o.EW)(()=>{const e=[];return e.push("tw-relative","tw-inline-block","tw-align-middle","tw-shrink-0"),e.push(...f(this.size())),e.push(y(this.size())),e.join(" ")}),this.spinnerSize=(0,o.EW)(()=>"small"===this.size()?"sm":"md");const e=this.elementRef.nativeElement;(0,s.QZP)(()=>this.baseButton.buttonType.set(this.buttonType())),(0,A.m)(e,this.baseButton.disabledAttr);const t=e.getAttribute("title");(0,s.QZP)(()=>{var e;(0,a.J)({element:this.elementRef.nativeElement,title:void 0,label:this.label()});const i=t||this.label();i&&(null===(e=this.tooltip)||void 0===e||e.tooltipContent.set(i))})}}m.ɵfac=function(e){return new(e||m)},m.ɵcmp=r.VBU({type:m,selectors:[["button","bitIconButton","",5,"button","bitButton",""]],hostVars:3,hostBindings:function(e,t){2&e&&(r.BMQ("bitIconButton",t.icon()),r.HbH(t.classList()))},inputs:{icon:[1,"bitIconButton","icon"],label:[1,"label"],buttonType:[1,"buttonType"],size:[1,"size"]},outputs:{icon:"bitIconButtonChange",size:"sizeChange"},features:[r.Jv_([{provide:c.E,useExisting:m},{provide:d.H,useExisting:m}]),r.nM4([p.v,{directive:h.d,inputs:["tooltipPosition","tooltipPosition"]},{directive:l.$H,inputs:["loading","loading","disabled","disabled"]}])],attrs:["bitIconButton",""],decls:3,vars:1,consts:[[1,"tw-absolute","tw-top-[50%]","tw-left-[50%]","tw-translate-x-[-50%]","tw-translate-y-[-50%]","tw-leading-[0px]"],[3,"size"],["aria-hidden","true",1,"bwi",3,"class"],["aria-hidden","true",1,"bwi"]],template:function(e,t){1&e&&(r.j41(0,"span",0),r.nVh(1,g,1,1,"bit-spinner",1)(2,v,1,2,"i",2),r.k0s()),2&e&&(r.R7$(),r.vxM(t.showLoadingStyle?1:2))},dependencies:[u.t],encapsulation:2});const f=e=>{const t={xsmall:["tw-text-xl","tw-size-6"],small:["tw-text-xl","tw-size-8"],default:["tw-text-2xl","tw-size-10"],large:["tw-text-[2rem]","tw-size-11"]};return t[e]||t.default},y=e=>"xsmall"===e?"tw-rounded":"tw-rounded-xl"},22191(e,t,i){"use strict";i.d(t,{Q:()=>s});var n=i(14041),r=i(11217);class s{}s.ɵfac=function(e){return new(e||s)},s.ɵmod=n.$C({type:s}),s.ɵinj=r.G2t({})},89684(e,t,i){"use strict";i.d(t,{F:()=>c});var n=i(24590),r=i(63477),s=i(14041);const o={primary:["tw-bg-bg-brand-soft","tw-border-border-brand-soft","tw-text-fg-brand"],success:["tw-bg-bg-success-medium","tw-border-border-success-soft","tw-text-fg-success"],danger:["tw-bg-bg-danger-medium","tw-border-border-danger-soft","tw-text-fg-danger"],warning:["tw-bg-bg-warning-medium","tw-border-border-warning-soft","tw-text-fg-warning"],subtle:["tw-bg-bg-quaternary","tw-border-border-base","tw-text-fg-body"],dark:["tw-bg-bg-contrast","tw-border-border-strong","tw-text-fg-contrast"],contrast:["tw-bg-bg-primary","tw-border-border-base","tw-text-fg-heading"]},a={xs:{container:["tw-w-4","tw-h-4"],icon:["tw-text-xs","tw-leading-[0]"]},sm:{container:["tw-w-6","tw-h-6"],icon:["tw-text-sm","tw-leading-[0]"]},base:{container:["tw-w-9","tw-h-9"],icon:["tw-text-lg"]},lg:{container:["tw-w-12","tw-h-12"],icon:["tw-text-2xl"]},xl:{container:["tw-w-16","tw-h-16"],icon:["tw-text-3xl"]}},l={xs:["tw-rounded"],sm:["tw-rounded"],base:["tw-rounded-lg"],lg:["tw-rounded-lg"],xl:["tw-rounded-xl"]};class c{constructor(){this.icon=n.hFB.required(),this.variant=(0,n.hFB)("primary"),this.size=(0,n.hFB)("base"),this.ariaLabel=(0,n.hFB)(),this.containerClasses=(0,r.EW)(()=>{const e=this.variant(),t=this.size();return["tw-inline-flex","tw-items-center","tw-justify-center","tw-flex-shrink-0","tw-border",...o[e],...a[t].container,...l[t]]}),this.iconClasses=(0,r.EW)(()=>{const e=this.size();return["bwi",this.icon(),...a[e].icon]})}}c.ɵfac=function(e){return new(e||c)},c.ɵcmp=s.VBU({type:c,selectors:[["bit-icon-tile"]],inputs:{icon:[1,"icon"],variant:[1,"variant"],size:[1,"size"],ariaLabel:[1,"ariaLabel"]},decls:2,vars:6,consts:[["aria-hidden","true"]],template:function(e,t){1&e&&(s.rj2(0,"div"),s.Hgh(1,"i",0),s.eux()),2&e&&(s.HbH(t.containerClasses()),s.BMQ("aria-label",t.ariaLabel())("role",t.ariaLabel()?"img":null),s.R7$(),s.HbH(t.iconClasses()))},encapsulation:2,changeDetection:0})},58384(e,t,i){"use strict";i.d(t,{R:()=>o});var n=i(24590),r=i(63477),s=i(14041);class o{constructor(){this.name=n.hFB.required(),this.ariaLabel=(0,n.hFB)(),this.fixedWidth=(0,n.hFB)(!1,Object.assign(Object.assign({},{}),{transform:n.L39})),this.classList=(0,r.EW)(()=>["bwi",this.name(),this.fixedWidth()&&"bwi-fw"].filter(Boolean))}}o.ɵfac=function(e){return new(e||o)},o.ɵcmp=s.VBU({type:o,selectors:[["bit-icon"]],hostVars:5,hostBindings:function(e,t){2&e&&(s.BMQ("aria-hidden",!t.ariaLabel()||null)("aria-label",t.ariaLabel())("role",t.ariaLabel()?"img":"presentation"),s.HbH(t.classList()))},inputs:{name:[1,"name"],ariaLabel:[1,"ariaLabel"],fixedWidth:[1,"fixedWidth"]},decls:0,vars:0,template:function(e,t){},encapsulation:2,changeDetection:0})},55807(e,t,i){"use strict";i.d(t,{o:()=>s});var n=i(14041),r=i(11217);class s{}s.ɵfac=function(e){return new(e||s)},s.ɵmod=n.$C({type:s}),s.ɵinj=r.G2t({})},49519(e,t,i){"use strict";i.d(t,{B:()=>d,U:()=>c});var n=i(24590),r=i(5206),s=i(78781),o=i(14041),a=i(11217),l=i(70171);function c(e){return e.querySelectorAll("[appAutofocus], [bitAutofocus]")}class d{constructor(e,t,i){this.el=e,this.ngZone=t,this.focusableElement=i,this.appAutofocus=(0,n.hFB)(void 0,Object.assign(Object.assign({},{}),{transform:n.L39})),this.focused=!1}ngAfterContentChecked(){if(this.focused||!this.appAutofocus()||s.A.isMobileBrowser)return;null!=this.getElement()&&(this.ngZone.isStable?this.focus():this.ngZone.onStable.pipe((0,r.s)(1)).subscribe(this.focus.bind(this)))}focus(){const e=this.getElement();e&&(e.focus(),this.focused=e===document.activeElement)}getElement(){return this.focusableElement?this.focusableElement.getFocusTarget():this.el.nativeElement}}d.ɵfac=function(e){return new(e||d)(o.rXU(o.aKT),o.rXU(a.SKi),o.rXU(l.H,8))},d.ɵdir=o.FsC({type:d,selectors:[["","appAutofocus",""],["","bitAutofocus",""]],inputs:{appAutofocus:[1,"appAutofocus"]}})},19934(e,t,i){"use strict";i.d(t,{J:()=>c});var n=i(14041),r=i(11217),s=i(63477),o=i(84210),a=i(92010),l=i(43759);class c{constructor(){this.ngControl=(0,r.WQX)(o.vO,{optional:!0,self:!0}),this.elementRef=(0,r.WQX)(n.aKT),this.parentFormField=(0,r.WQX)(l.h,{optional:!0}),this.formFieldControl=(0,r.WQX)(a.y),this.classList=(0,s.EW)(()=>{const e=["tw-block","tw-w-full","[&:is(input,select)]:tw-h-full","[&:is(textarea)]:tw-h-auto","[&:is(textarea)]:tw-min-h-[30px]",..."textarea"===this.elementRef.nativeElement.tagName.toLowerCase()&&this.formFieldControl.readOnly()?[]:["tw-max-h-[50vh]","tw-overflow-y-auto"],"[&:is(textarea)]:tw-resize-none","tw-px-1","tw-placeholder-fg-body-subtle","tw-border-none","focus:tw-outline-none","tw-bg-transparent","tw-text-fg-heading","[&:is(input,textarea):disabled]:tw-bg-bg-secondary","[&:is(input,textarea):disabled]:!tw-placeholder-fg-inactive","[&:is(input,textarea):disabled]:!tw-text-fg-inactive"];var t;return null===this.parentFormField&&e.push(...(t=this.formFieldControl.hasError(),["tw-border","!tw-border-solid",t?"tw-border-danger-600":"tw-border-secondary-500","focus:tw-outline-none"]),...this.standaloneInputClasses()),e.filter(e=>""!=e)}),this.ariaInvalid=(0,s.EW)(()=>!!this.formFieldControl.hasError()||void 0),this.standaloneInputClasses=(0,s.EW)(()=>["tw-px-3","tw-py-2","tw-rounded-lg",this.formFieldControl.hasError()?"hover:tw-border-border-danger":"hover:tw-border-border-brand","disabled:tw-bg-bg-secondary","disabled:hover:tw-border-border-base","focus:tw-border-border-brand","focus:tw-ring-1","focus:tw-ring-border-brand","focus:tw-z-10"])}ngAfterViewInit(){this.adjustTextareaHeight()}onInput(){var e,t;null===(t=null===(e=this.ngControl)||void 0===e?void 0:e.control)||void 0===t||t.markAsUntouched(),this.adjustTextareaHeight()}adjustTextareaHeight(){const e=this.elementRef.nativeElement;if("textarea"!==e.tagName.toLowerCase())return;const t=e;t.style.height="auto",t.style.height=`${t.scrollHeight}px`}}c.ɵfac=function(e){return new(e||c)},c.ɵdir=n.FsC({type:c,selectors:[["input","bitInput",""],["select","bitInput",""],["textarea","bitInput",""]],hostVars:8,hostBindings:function(e,t){1&e&&n.bIt("input",function(){return t.onInput()}),2&e&&(n.Avn("id",t.formFieldControl.id())("required",t.formFieldControl.required()),n.BMQ("type",t.formFieldControl.type())("spellcheck",t.formFieldControl.spellcheck())("aria-invalid",t.ariaInvalid())("readonly",t.formFieldControl.readOnly()?"":null),n.HbH(t.classList()))},features:[n.nM4([{directive:a.y,inputs:["required","required","showErrorsWhenDisabled","showErrorsWhenDisabled","type","type","spellcheck","spellcheck","id","id","readonly","readonly"]}])]})},89479(e,t,i){"use strict";i.d(t,{x:()=>s});var n=i(14041),r=i(11217);class s{}s.ɵfac=function(e){return new(e||s)},s.ɵmod=n.$C({type:s}),s.ɵinj=r.G2t({})},4017(e,t,i){"use strict";i.d(t,{D:()=>r});var n=i(14041);class r{}r.ɵfac=function(e){return new(e||r)},r.ɵcmp=n.VBU({type:r,selectors:[["bit-item-action"]],hostAttrs:[1,"[&>button]:tw-relative","[&>button:not([bit-item-content])]:after:tw-content-['']","[&>button]:after:tw-absolute","[&>button]:after:tw-block","bit-compact:[&>button]:after:tw-top-[-0.7rem]","bit-compact:[&>button]:after:tw-bottom-[-0.7rem]","[&>button]:after:tw-top-[-0.8rem]","[&>button]:after:tw-bottom-[-0.80rem]","[&>button]:after:tw-right-0","[&>button]:after:tw-left-0"],ngContentSelectors:["*"],decls:1,vars:0,template:function(e,t){1&e&&(n.NAR(),n.SdG(0))},encapsulation:2})},90300(e,t,i){"use strict";i.d(t,{g:()=>h});var n=i(46758),r=i(24590),s=i(11217),o=i(75583),a=i(14041),l=i(58806);const c=["endSlot"],d=[[["","slot","start"]],"*",[["","slot","default-trailing"]],[["","slot","secondary"]],[["","slot","end"]]],u=(e,t)=>({"tw-truncate":e,"tw-text-wrap tw-overflow-auto tw-break-words":t});class h{constructor(){this.endSlot=(0,r.ebz)("endSlot"),this.endSlotHasChildren=(0,s.vPA)(!1),this.truncate=(0,r.hFB)(!0)}ngAfterContentChecked(){var e,t;this.endSlotHasChildren.set((null!==(t=null===(e=this.endSlot())||void 0===e?void 0:e.nativeElement.childElementCount)&&void 0!==t?t:0)>0)}}h.ɵfac=function(e){return new(e||h)},h.ɵcmp=a.VBU({type:h,selectors:[["bit-item-content"],["","bit-item-content",""]],viewQuery:function(e,t){1&e&&a.wEZ(t.endSlot,c,5),2&e&&a.NyB()},hostAttrs:["data-fvw-target","",1,"tw-outline-none","tw-text-main","hover:tw-text-main","tw-no-underline","hover:tw-no-underline","tw-text-base","tw-py-2","tw-px-4","bit-compact:tw-py-1.5","bit-compact:tw-px-2","tw-bg-transparent","tw-w-full","tw-border-none","tw-flex","tw-gap-4","tw-items-center","tw-justify-between","disabled:tw-cursor-not-allowed","[&[disabled]_[bittypography]]:!tw-text-secondary-300","[&[disabled]_i]:!tw-text-secondary-300"],inputs:{truncate:[1,"truncate"]},ngContentSelectors:["[slot=start]","*","[slot=default-trailing]","[slot=secondary]","[slot=end]"],decls:13,vars:9,consts:[["endSlot",""],[1,"tw-flex","tw-gap-2","tw-items-center","tw-w-full","tw-min-w-0"],[1,"tw-flex","tw-flex-col","tw-items-start","tw-text-start","tw-w-full","tw-truncate","[&_p]:tw-mb-0"],["bitTypography","body2",1,"tw-text-main","tw-truncate","tw-inline-flex","tw-items-center","tw-gap-1.5","tw-w-full"],[3,"ngClass"],[1,"tw-flex-grow"],["bitTypography","helper",1,"tw-text-muted","tw-w-full",3,"ngClass"],[1,"tw-flex","tw-gap-2","tw-items-center",3,"hidden"]],template:function(e,t){1&e&&(a.NAR(d),a.j41(0,"div",1),a.SdG(1),a.j41(2,"div",2)(3,"div",3)(4,"div",4),a.SdG(5,1),a.k0s(),a.j41(6,"div",5),a.SdG(7,2),a.k0s()(),a.j41(8,"div",6),a.SdG(9,3),a.k0s()()(),a.j41(10,"div",7,0),a.SdG(12,4),a.k0s()),2&e&&(a.R7$(4),a.Y8G("ngClass",a.l_i(3,u,t.truncate(),!t.truncate())),a.R7$(4),a.Y8G("ngClass",a.l_i(6,u,t.truncate(),!t.truncate())),a.R7$(2),a.Y8G("hidden",!t.endSlotHasChildren()))},dependencies:[o.E,l.r,n.YU],encapsulation:2,changeDetection:0})},91962(e,t,i){"use strict";i.d(t,{_:()=>r});var n=i(14041);class r{}r.ɵfac=function(e){return new(e||r)},r.ɵcmp=n.VBU({type:r,selectors:[["bit-item-group"]],hostAttrs:[1,"tw-block"],ngContentSelectors:["*"],decls:1,vars:0,template:function(e,t){1&e&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0})},75556(e,t,i){"use strict";i.d(t,{J:()=>a});var n=i(11217),r=i(4017),s=i(14041);const o=["*",[["","slot","end"]]];class a{constructor(){this.focusVisibleWithin=(0,n.vPA)(!1)}onFocusIn(e){this.focusVisibleWithin.set(e.matches("[data-fvw-target]:focus-visible"))}onFocusOut(){this.focusVisibleWithin.set(!1)}get classList(){return[this.focusVisibleWithin()?"tw-z-10 tw-rounded tw-outline-none tw-ring-2 bit-compact:tw-ring-inset tw-ring-primary-600 tw-border-transparent".split(" "):"tw-border-b-shadow"].flat()}}a.ɵfac=function(e){return new(e||a)},a.ɵcmp=s.VBU({type:a,selectors:[["bit-item"]],hostAttrs:[1,"tw-block","tw-box-border","tw-overflow-hidden","tw-flex","tw-bg-background","[&:has([data-item-main-content]_button:hover,[data-item-main-content]_a:hover)]:tw-cursor-pointer","[&:has([data-item-main-content]_button:enabled:hover,[data-item-main-content]_a:hover)]:tw-bg-hover-default","tw-text-main","tw-border-solid","tw-border-b","tw-border-0","[&:not(bit-layout_*)]:tw-rounded-lg","bit-compact:[&:not(bit-layout_*)]:tw-rounded-none","bit-compact:[&:not(bit-layout_*)]:last-of-type:tw-rounded-b-lg","bit-compact:[&:not(bit-layout_*)]:first-of-type:tw-rounded-t-lg","tw-min-h-9","tw-mb-1.5","bit-compact:tw-mb-0"],hostVars:2,hostBindings:function(e,t){1&e&&s.bIt("focusin",function(e){return t.onFocusIn(e.target)})("focusout",function(){return t.onFocusOut()}),2&e&&s.HbH(t.classList)},ngContentSelectors:["*","[slot=end]"],decls:5,vars:1,consts:[["endSlot",""],["data-item-main-content","",1,"tw-flex","tw-flex-1","tw-overflow-hidden"],[1,"tw-px-2","tw-flex","tw-items-center","tw-gap-2","[&_button[biticonbutton]]:-tw-mx-1",3,"hidden"]],template:function(e,t){if(1&e&&(s.NAR(o),s.j41(0,"bit-item-action",1),s.SdG(1),s.k0s(),s.j41(2,"div",2,0),s.SdG(4,1),s.k0s()),2&e){const e=s.sdS(3);s.R7$(2),s.Y8G("hidden",0===e.childElementCount)}},dependencies:[r.D],encapsulation:2,changeDetection:0})},98403(e,t,i){"use strict";i.d(t,{k:()=>s});var n=i(14041),r=i(11217);class s{}s.ɵfac=function(e){return new(e||s)},s.ɵmod=n.$C({type:s}),s.ɵinj=r.G2t({})},13259(e,t,i){"use strict";i.d(t,{$R:()=>n,LZ:()=>r,bx:()=>s});const n="default",r="default",s="center"},76794(e,t,i){"use strict";i.d(t,{b:()=>r});var n=i(11217);class r{constructor(){this.portal=(0,n.vPA)(void 0)}attach(e){this.portal.set(e)}detach(e){e===this.portal()&&this.portal.set(void 0)}}r.ɵfac=function(e){return new(e||r)},r.ɵprov=n.jDH({token:r,factory:r.ɵfac,providedIn:"root"})},69672(e,t,i){"use strict";i.d(t,{TT:()=>u,lp:()=>h});var n=i(15639),r=i(14041),s=i(11217),o=i(92128),a=i(82129),l=i(68711),c=i(191);class d{constructor(){this.scrollableRef=(0,s.vPA)(null),this.scrollableRef$=(0,o.br)(this.scrollableRef)}}d.ɵfac=function(e){return new(e||d)},d.ɵprov=s.jDH({token:d,factory:d.ɵfac,providedIn:"root"});class u{constructor(){this.ref=(0,s.WQX)(r.aKT),this.service=(0,s.WQX)(d),this.service.scrollableRef.set(this.ref)}ngOnDestroy(){this.service.scrollableRef.set(null)}}u.ɵfac=function(e){return new(e||u)},u.ɵdir=r.FsC({type:u,selectors:[["","bitScrollLayoutHost",""]],hostAttrs:[1,"cdk-virtual-scrollable"]});class h extends n.fI{constructor(){super(),this.service=(0,s.WQX)(d),(0,s.QZP)(()=>{const e=this.service.scrollableRef();e?this.elementRef=e:console.error("ScrollLayoutDirective can't find scroll host")})}elementScrolled(){return this.service.scrollableRef$.pipe((0,l.p)(e=>null!==e),(0,c.n)(e=>(0,a.R)(e.nativeElement,"scroll")))}getElementRef(){return this.service.scrollableRef()}measureBoundingClientRectWithScrollOffset(e){return this.service.scrollableRef().nativeElement.getBoundingClientRect()[e]-this.measureScrollOffset(e)}}h.ɵfac=function(e){return new(e||h)},h.ɵdir=r.FsC({type:h,selectors:[["","bitScrollLayout",""]],features:[r.Jv_([{provide:n.qy,useExisting:h}]),r.Vt3]})},57178(e,t,i){"use strict";i.d(t,{g:()=>A});var n=i(24590),r=i(14041),s=i(11217),o=i(63477),a=i(6307);const l=e=>["bwi",e];function c(e,t){if(1&e&&r.Hgh(0,"i",3),2&e){const e=r.XpG();r.HbH(r.eq3(2,l,e.startIcon()))}}function d(e,t){if(1&e&&r.Hgh(0,"i",3),2&e){const e=r.XpG();r.HbH(r.eq3(2,l,e.endIcon()))}}const u={primary:["tw-text-fg-brand","hover:tw-text-fg-brand-strong","focus-visible:tw-text-fg-brand-strong"],default:["tw-text-fg-brand","hover:tw-text-fg-brand-strong","focus-visible:tw-text-fg-brand-strong"],secondary:["tw-text-fg-heading","hover:tw-text-fg-heading","focus-visible:tw-text-fg-heading"],light:["tw-text-fg-white","hover:tw-text-fg-white","focus-visible:tw-text-fg-white","focus-visible:before:tw-ring-fg-contrast"],subtle:["!tw-text-fg-heading","hover:tw-text-fg-heading","focus-visible:tw-text-fg-heading"],success:["tw-text-fg-success","hover:tw-text-fg-success-strong","focus-visible:tw-text-fg-success-strong"],warning:["tw-text-fg-warning","hover:tw-text-fg-warning-strong","focus-visible:tw-text-fg-warning-strong"],danger:["tw-text-fg-danger","hover:tw-text-fg-danger-strong","focus-visible:tw-text-fg-danger-strong"],contrast:["tw-text-fg-contrast","hover:tw-text-fg-contrast-strong","focus-visible:tw-text-fg-contrast-strong","focus-visible:before:tw-ring-fg-contrast"]},h=["tw-text-unset","tw-leading-none","tw-px-0","tw-py-0.5","tw-font-semibold","tw-bg-transparent","tw-border-0","tw-border-none","tw-rounded","tw-transition","tw-no-underline","tw-cursor-pointer","[&:hover_span]:tw-underline","[&.tw-test-hover_span]:tw-underline","[&:hover_span]:tw-decoration-[.125em]","[&.tw-test-hover_span]:tw-decoration-[.125em]","focus-visible:tw-outline-none","focus-visible:before:tw-ring-border-focus","[&:focus-visible_span]:tw-underline","[&:focus-visible_span]:tw-decoration-[.125em]","[&.tw-test-focus-visible_span]:tw-underline","[&.tw-test-focus-visible_span]:tw-decoration-[.125em]","tw-relative","before:tw-content-['']","before:tw-block","before:tw-absolute","before:-tw-inset-x-[0.1em]","before:-tw-inset-y-[0]","before:tw-rounded-md","before:tw-transition","before:tw-h-full","before:tw-w-[calc(100%_+_.25rem)]","before:tw-pointer-events-none","focus-visible:before:tw-ring-2","focus-visible:tw-z-10","aria-disabled:tw-no-underline","aria-disabled:tw-pointer-events-none","aria-disabled:!tw-text-fg-inactive","aria-disabled:hover:!tw-text-fg-inactive","aria-disabled:hover:tw-no-underline","[&[aria-disabled]:focus-visible_span]:!tw-no-underline"];class A{focus(){this.el.nativeElement.focus()}constructor(){this.el=(0,s.WQX)(r.aKT),this.linkType=(0,n.hFB)("primary"),this.startIcon=(0,n.hFB)(void 0),this.endIcon=(0,n.hFB)(void 0),this.disabled=(0,n.hFB)(!1,Object.assign(Object.assign({},{}),{transform:n.L39})),this.isButton="BUTTON"===this.el.nativeElement.tagName,this.classList=(0,o.EW)(()=>{var e;return[!this.isButton&&"tw-inline-flex"].concat(h).concat(null!==(e=u[this.linkType()])&&void 0!==e?e:[])}),this.isButton&&(0,a.m)(this.el.nativeElement,this.disabled)}}A.ɵfac=function(e){return new(e||A)},A.ɵcmp=r.VBU({type:A,selectors:[["a","bitLink",""],["button","bitLink",""]],hostVars:3,hostBindings:function(e,t){2&e&&(r.BMQ("bit-aria-disable",!!t.isButton||null),r.HbH(t.classList()))},inputs:{linkType:[1,"linkType"],startIcon:[1,"startIcon"],endIcon:[1,"endIcon"],disabled:[1,"disabled"]},attrs:["bitLink",""],ngContentSelectors:["*"],decls:5,vars:2,consts:[[1,"tw-flex","tw-gap-2","tw-items-center"],["aria-hidden","true",3,"class"],[1,"empty:tw-hidden"],["aria-hidden","true"]],template:function(e,t){1&e&&(r.NAR(),r.rj2(0,"div",0),r.nVh(1,c,1,4,"i",1),r.rj2(2,"span",2),r.SdG(3),r.eux(),r.nVh(4,d,1,4,"i",1),r.eux()),2&e&&(r.R7$(),r.vxM(t.startIcon()?1:-1),r.R7$(3),r.vxM(t.endIcon()?4:-1))},encapsulation:2,changeDetection:0})},26477(e,t,i){"use strict";i.d(t,{V:()=>s});var n=i(14041),r=i(11217);class s{}s.ɵfac=function(e){return new(e||s)},s.ɵmod=n.$C({type:s}),s.ɵinj=r.G2t({})},32924(e,t,i){"use strict";i.d(t,{M:()=>r});var n=i(14041);class r{}r.ɵfac=function(e){return new(e||r)},r.ɵcmp=n.VBU({type:r,selectors:[["bit-menu-divider"]],decls:1,vars:0,consts:[["role","separator",1,"tw-h-px","tw-w-full","tw-my-2","tw-bg-border-base"]],template:function(e,t){1&e&&n.Hgh(0,"div",0)},encapsulation:2,changeDetection:0})},78952(e,t,i){"use strict";i.d(t,{S:()=>l});var n=i(14340),r=i(24590),s=i(63477),o=i(14041);const a=[[["","slot","start"]],"*",[["","slot","end"]]];class l{constructor(e){this.elementRef=e,this.variant=(0,r.hFB)("primary"),this.computedStyles=(0,s.EW)(()=>{switch(this.variant()){case"primary":return["tw-text-fg-body","hover:tw-text-fg-heading","hover:tw-bg-bg-brand-softer","focus-visible:tw-text-fg-heading","focus-visible:tw-bg-bg-brand-softer"];case"danger":return["tw-text-fg-danger","hover:tw-text-fg-danger-strong","hover:tw-bg-bg-danger-soft","focus-visible:tw-text-fg-danger-strong","focus-visible:tw-bg-bg-danger-soft"];default:return[]}}),this.classList=(0,s.EW)(()=>["tw-block","tw-w-full","tw-p-2","tw-rounded-lg","!tw-no-underline","tw-cursor-pointer","tw-border-none","tw-bg-background","tw-text-left","focus-visible:tw-z-50","focus-visible:tw-outline-none","focus-visible:tw-ring-2","focus-visible:tw-rounded-lg","focus-visible:tw-ring-inset","focus-visible:tw-ring-border-focus","active:!tw-ring-0","active:!tw-ring-offset-0","disabled:hover:tw-bg-background","disabled:tw-cursor-default","disabled:!tw-text-fg-inactive","aria-disabled:hover:tw-bg-background","aria-disabled:tw-cursor-default","aria-disabled:!tw-text-fg-inactive",...this.computedStyles()]),this.disabled=!1}focus(){this.elementRef.nativeElement.focus()}}l.ɵfac=function(e){return new(e||l)(o.rXU(o.aKT))},l.ɵcmp=o.VBU({type:l,selectors:[["","bitMenuItem",""]],hostAttrs:["role","menuitem","tabindex","-1"],hostVars:3,hostBindings:function(e,t){2&e&&(o.BMQ("disabled",t.disabled||null),o.HbH(t.classList()))},inputs:{variant:[1,"variant"],disabled:[2,"disabled","disabled",n.he]},attrs:["bitMenuItem",""],ngContentSelectors:["[slot=start]","*","[slot=end]"],decls:7,vars:0,consts:[[1,"tw-flex","tw-w-full","tw-justify-between","tw-items-center","tw-gap-2"],[1,"tw-flex","tw-gap-2","tw-items-center","tw-overflow-hidden","tw-text-sm","tw-font-medium"],[1,"tw-truncate"],[1,"tw-flex","tw-items-center","tw-gap-2","tw-text-fg-body-subtle","tw-text-xs","empty:tw-hidden"]],template:function(e,t){1&e&&(o.NAR(a),o.rj2(0,"div",0)(1,"span",1),o.SdG(2),o.rj2(3,"span",2),o.SdG(4,1),o.eux()(),o.rj2(5,"span",3),o.SdG(6,2),o.eux()())},encapsulation:2,changeDetection:0})},73848(e,t,i){"use strict";i.d(t,{O:()=>v});var n=i(97173),r=i(38798),s=i(24590),o=i(11217),a=i(92128),l=i(61065),c=i(68711),d=i(29236),u=i(78950),h=i(5513);const A=[{id:"below-start",originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{id:"below-end",originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{id:"above-start",originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{id:"above-end",originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}];var p=i(14041),g=i(84653);class v{get hasPopup(){var e;return(null===(e=this.menu())||void 0===e?void 0:e.ariaRole())||"menu"}get positions(){const e=this.menuPosition();if(!e)return A;const t=A.find(t=>t.id===e);return t?[t,...A.filter(e=>e!==t)]:A}get defaultMenuConfig(){return{panelClass:"bit-menu-panel",hasBackdrop:!0,backdropClass:["cdk-overlay-transparent-backdrop","bit-menu-panel-backdrop"],scrollStrategy:this.overlay.scrollStrategies.reposition(),positionStrategy:this.overlay.position().flexibleConnectedTo(this.elementRef).withPositions(this.positions).withLockedPosition(!0).withFlexibleDimensions(!1).withPush(!0)}}constructor(e,t,i){this.elementRef=e,this.viewContainerRef=t,this.overlay=i,this.isOpen=!1,this.role=(0,s.hFB)("button"),this.menu=s.hFB.required(Object.assign(Object.assign({},{}),{alias:"bitMenuTriggerFor"})),this.menuPosition=(0,s.hFB)(),this.overlayRef=null,this.hostTooltip=(0,o.WQX)(h.d,{self:!0,optional:!0}),this.closedEventsSub=null,this.keyDownEventsSub=null,this.menuCloseListenerSub=null}toggleMenu(){this.isOpen?this.destroyMenu():this.openMenu()}toggleMenuOnRightClick(e){e.preventDefault(),this.isOpen?this.updateMenuPosition(e):this.openMenu(e)}ngOnDestroy(){this.disposeAll()}openMenu(e){var t;const i=this.menu();if(null==i)throw new Error("Cannot find bit-menu element");this.isOpen=!0,null===(t=this.hostTooltip)||void 0===t||t.suppressed.set(!0);const n=this.defaultMenuConfig,s=e?this.overlay.position().flexibleConnectedTo({x:e.clientX,y:e.clientY}).withPositions(this.positions).withLockedPosition(!1).withFlexibleDimensions(!1).withPush(!0):n.positionStrategy,o=Object.assign(Object.assign({},n),{positionStrategy:s,hasBackdrop:!e});this.overlayRef=this.overlay.create(o);const a=new r.VA(i.templateRef(),this.viewContainerRef);this.overlayRef.attach(a);const l=!!e;this.setupClosingActions(l),this.setupMenuCloseListener();const c=i.keyManager();c&&(c.setFirstItemActive(),this.keyDownEventsSub=this.overlayRef.keydownEvents().subscribe(e=>c.onKeydown(e)))}updateMenuPosition(e){if(null==this.overlayRef)return;const t=this.overlay.position().flexibleConnectedTo({x:e.clientX,y:e.clientY}).withPositions(this.positions);this.overlayRef.updatePositionStrategy(t)}destroyMenu(){var e;null!=this.overlayRef&&this.isOpen&&(this.isOpen=!1,null===(e=this.hostTooltip)||void 0===e||e.suppressed.set(!1),this.disposeAll(),this.menu().closed.emit())}setupClosingActions(e){if(!this.overlayRef)return;const t=this.overlayRef.keydownEvents().pipe((0,c.p)(e=>("menu"===this.menu().ariaRole()?["Escape","Tab"]:["Escape"]).includes(e.key))),i=(0,a.yC)(this.menu().closed),r=this.overlayRef.detachments(),s=e?(0,l.h)(r,t,i):(0,l.h)(r,t,this.overlayRef.backdropClick(),i);this.closedEventsSub=s.pipe((0,d.Q)(this.overlayRef.detachments())).subscribe(e=>{e instanceof KeyboardEvent&&"Escape"===e.key&&!(0,n.rp)(e)&&e.preventDefault(),this.elementRef.nativeElement.focus(),this.destroyMenu()})}setupMenuCloseListener(){this.overlayRef&&(this.menuCloseListenerSub=this.overlayRef.outsidePointerEvents().pipe((0,u.i)(1),(0,d.Q)(this.overlayRef.detachments())).subscribe(e=>{this.destroyMenu()}))}disposeAll(){var e,t,i,n;null===(e=this.closedEventsSub)||void 0===e||e.unsubscribe(),null===(t=this.keyDownEventsSub)||void 0===t||t.unsubscribe(),null===(i=this.menuCloseListenerSub)||void 0===i||i.unsubscribe(),null===(n=this.overlayRef)||void 0===n||n.dispose()}}v.ɵfac=function(e){return new(e||v)(p.rXU(p.aKT),p.rXU(p.c1b),p.rXU(g.hJ))},v.ɵdir=p.FsC({type:v,selectors:[["","bitMenuTriggerFor",""]],hostVars:3,hostBindings:function(e,t){1&e&&p.bIt("click",function(){return t.toggleMenu()}),2&e&&p.BMQ("role",t.role())("aria-expanded",t.isOpen)("aria-haspopup",t.hasPopup)},inputs:{role:[1,"role"],menu:[1,"bitMenuTriggerFor","menu"],menuPosition:[1,"menuPosition"]},exportAs:["menuTrigger"]})},13496(e,t,i){"use strict";i.d(t,{Z:()=>d});var n=i(70352),r=i(2683),s=i(24590),o=i(14041),a=i(11217),l=i(78952);function c(e,t){if(1&e){const e=o.RV6();o.j41(0,"div",0),o.bIt("click",function(){a.eBV(e);const t=o.XpG();return a.Njj(t.closed.emit())}),o.SdG(1),o.k0s()}if(2&e){const e=o.XpG();o.Y8G("cdkTrapFocusAutoCapture","dialog"===e.ariaRole()),o.BMQ("role",e.ariaRole())("aria-label",e.ariaLabel())}}class d{constructor(){this.templateRef=s.ebz.required(o.C4Q),this.closed=(0,s.CGW)(),this.menuItems=(0,s.tEk)(l.S,Object.assign(Object.assign({},{}),{descendants:!0})),this.keyManager=(0,a.vPA)(void 0),this.ariaRole=(0,s.hFB)("menu"),this.ariaLabel=(0,s.hFB)(),(0,a.QZP)(()=>{"menu"===this.ariaRole()&&this.keyManager.set(new r.B(this.menuItems()).withWrap().skipPredicate(e=>!!e.disabled))})}}d.ɵfac=function(e){return new(e||d)},d.ɵcmp=o.VBU({type:d,selectors:[["bit-menu"]],contentQueries:function(e,t,i){1&e&&o.C6U(i,t.menuItems,l.S,5),2&e&&o.NyB()},viewQuery:function(e,t){1&e&&o.wEZ(t.templateRef,o.C4Q,5),2&e&&o.NyB()},inputs:{ariaRole:[1,"ariaRole"],ariaLabel:[1,"ariaLabel"]},outputs:{closed:"closed"},exportAs:["menuComponent"],ngContentSelectors:["*"],decls:1,vars:0,consts:[["cdkTrapFocus","","tabindex","0",1,"tw-flex","tw-shrink-0","tw-flex-col","tw-rounded-xl","tw-border","tw-border-solid","tw-border-border-light","tw-bg-bg-primary","tw-shadow-lg","tw-bg-clip-padding","tw-p-2","tw-overflow-y-auto",3,"click","cdkTrapFocusAutoCapture"]],template:function(e,t){1&e&&(o.NAR(),o.DNE(0,c,2,3,"ng-template"))},dependencies:[n.kB],encapsulation:2,changeDetection:0})},90647(e,t,i){"use strict";i.d(t,{M:()=>s});var n=i(14041),r=i(11217);class s{}s.ɵfac=function(e){return new(e||s)},s.ɵmod=n.$C({type:s}),s.ɵinj=r.G2t({})},89812(e,t,i){"use strict";i.d(t,{b:()=>B});var n=i(97173),r=i(24590),s=i(11217),o=i(63477),a=i(84210),l=i(26885),c=i(50700),d=i(36801),u=i(67519),h=i(90143),A=i(26193),p=i(14041);class g{constructor(){this.baseChip=(0,s.WQX)(u.rg,{host:!0}),this.label=(0,r.hFB)(""),this.startIcon=(0,r.hFB)(),this.dismissed=(0,r.CGW)(),this.baseChip.hasTrailingIcon.set(!0)}handleDismiss(e){e.stopPropagation(),this.baseChip.disabled()||this.dismissed.emit()}}g.ɵfac=function(e){return new(e||g)},g.ɵcmp=p.VBU({type:g,selectors:[["bit-chip"]],inputs:{label:[1,"label"],startIcon:[1,"startIcon"]},outputs:{dismissed:"dismissed"},features:[p.nM4([{directive:u.rg,inputs:["size","size","disabled","disabled"]}])],decls:4,vars:9,consts:[[3,"startIcon","size"],["bit-chip-dismiss-button","","slot","end","type","button",3,"click","disabled","size"]],template:function(e,t){1&e&&(p.j41(0,"bit-chip-content",0),p.EFF(1),p.j41(2,"button",1),p.nI1(3,"i18n"),p.bIt("click",function(e){return t.handleDismiss(e)}),p.k0s()()),2&e&&(p.Y8G("startIcon",t.startIcon())("size",t.baseChip.size()),p.R7$(),p.SpI(" ",t.label()," "),p.R7$(),p.Y8G("disabled",t.baseChip.disabled())("size",t.baseChip.size()),p.BMQ("aria-label",p.i5U(3,6,"removeItem",t.label())))},dependencies:[h.l,A.i,d.$Z],encapsulation:2,changeDetection:0});var v=i(92010),m=i(58384),f=i(83632);function y(e,t){1&e&&p.nrm(0,"bit-spinner",4)}function b(e,t){if(1&e){const e=p.RV6();p.j41(0,"bit-chip",5),p.bIt("dismissed",function(){const t=s.eBV(e),i=t.item,n=t.clear;return s.Njj(n(i))}),p.k0s()}if(2&e){const e=t.item,i=p.XpG();p.Y8G("label",e.labelName)("startIcon",e.icon)("disabled",i.disabled())}}function C(e,t){1&e&&p.nrm(0,"bit-icon",8)}function I(e,t){if(1&e&&p.nrm(0,"i",12),2&e){const e=p.XpG().item;p.HbH(p.VkB("bwi bwi-fw ",e.icon))}}function w(e,t){if(1&e&&(p.j41(0,"div",6)(1,"div",7),p.nVh(2,C,1,0,"bit-icon",8),p.k0s(),p.j41(3,"div",9),p.nVh(4,I,1,3,"i",10),p.k0s(),p.j41(5,"div",11),p.EFF(6),p.k0s()()),2&e){const e=t.item,i=p.XpG();p.R7$(2),p.vxM(i.isSelected(e)?2:-1),p.R7$(2),p.vxM(null!=e.icon?4:-1),p.R7$(),p.BMQ("title",e.listName),p.R7$(),p.SpI(" ",e.listName," ")}}class B{constructor(){this.select=r.ebz.required(l.vr),this.formFieldControl=(0,s.WQX)(v.y),this.ngControl=(0,s.WQX)(a.vO,{optional:!0,self:!0}),this.baseItems=r.geq.required(),this.removeSelectedItems=(0,r.hFB)(!1),this.placeholder=(0,r.geq)(),this.loading=(0,r.hFB)(!1),this.disabled=(0,r.geq)(),this.selectedItems=(0,s.vPA)(null),this.loadingText=(0,s.vPA)(void 0),this.searchInputId=(0,o.EW)(()=>`${this.formFieldControl.id()}-search`),this.notifyOnChange=(0,s.vPA)(void 0),this.notifyOnTouched=(0,s.vPA)(void 0),this.onItemsConfirmed=(0,r.CGW)(),this.i18nService=(0,s.WQX)(c.W),this.keyDown=e=>{const t=this.select();return!(!t.isOpen()&&"Enter"===e.key&&!(0,n.rp)(e))&&(!(t.isOpen()&&"Escape"===e.key&&!(0,n.rp)(e))||(this.selectedItems.set([]),t.close(),e.stopPropagation(),!1))},null!=this.ngControl&&(this.ngControl.valueAccessor=this),(0,s.QZP)(()=>this.formFieldControl.labelForId.set(this.searchInputId())),(0,s.QZP)(()=>{var e,t;null===(e=this.select())||void 0===e||e.searchInput().nativeElement.setAttribute("aria-describedby",null!==(t=this.formFieldControl.ariaDescribedBy())&&void 0!==t?t:"")})}ngAfterViewInit(){}ngOnInit(){this.placeholder.update(e=>null!=e?e:this.i18nService.t("multiSelectPlaceholder")),this.loadingText.set(this.i18nService.t("multiSelectLoading"))}isSelected(e){var t;return null!=(null===(t=this.selectedItems())||void 0===t?void 0:t.find(t=>t.id===e.id))}onDropdownClosed(){const e=this.selectedItems();if(null!=e&&0!=e.length&&(this.onItemsConfirmed.emit(e),this.removeSelectedItems())){let t=this.baseItems();e.forEach(e=>{t=t.filter(t=>e.id!==t.id)}),this.selectedItems.set(null),this.baseItems.set(t)}}writeValue(e){this.selectedItems.set(e)}registerOnChange(e){this.notifyOnChange.set(e)}registerOnTouched(e){this.notifyOnTouched.set(e)}setDisabledState(e){this.disabled.set(e)}onChange(e){var t;this.selectedItems.set(e),null===(t=this.notifyOnChange())||void 0===t||t(e)}onBlur(){var e;null===(e=this.notifyOnTouched())||void 0===e||e()}}B.ɵfac=function(e){return new(e||B)},B.ɵcmp=p.VBU({type:B,selectors:[["bit-multi-select"]],viewQuery:function(e,t){1&e&&p.wEZ(t.select,l.vr,5),2&e&&p.NyB()},hostVars:2,hostBindings:function(e,t){2&e&&(p.Avn("id",t.formFieldControl.id()),p.BMQ("required",t.formFieldControl.required()||null))},inputs:{baseItems:[1,"baseItems"],removeSelectedItems:[1,"removeSelectedItems"],placeholder:[1,"placeholder"],loading:[1,"loading"],disabled:[1,"disabled"]},outputs:{baseItems:"baseItemsChange",placeholder:"placeholderChange",disabled:"disabledChange",onItemsConfirmed:"onItemsConfirmed"},features:[p.nM4([{directive:v.y,inputs:["required","required","id","id"]}])],decls:6,vars:19,consts:[["bindLabel","listName","groupBy","parentGrouping","appendTo","body","outsideClickEvent","mousedown",3,"ngModelChange","blur","close","items","ngModel","placeholder","loading","loadingText","notFoundText","clearAllText","multiple","closeOnSelect","disabled","clearSearchOnAdd","labelForId","keyDownFn"],["ng-loadingspinner-tmp",""],["ng-label-tmp",""],["ng-option-tmp",""],["size","sm"],["size","small",1,"tw-me-1",3,"dismissed","label","startIcon","disabled"],[1,"tw-flex"],[1,"tw-w-7","tw-flex-none"],["name","bwi-check","aria-hidden","true"],[1,"tw-me-2","tw-flex-initial"],["aria-hidden","true",3,"class"],[1,"tw-flex-1"],["aria-hidden","true"]],template:function(e,t){1&e&&(p.j41(0,"ng-select",0),p.nI1(1,"i18n"),p.nI1(2,"i18n"),p.bIt("ngModelChange",function(e){return t.onChange(e)})("blur",function(){return t.onBlur()})("close",function(){return t.onDropdownClosed()}),p.DNE(3,y,1,0,"ng-template",1)(4,b,1,3,"ng-template",2)(5,w,7,4,"ng-template",3),p.k0s()),2&e&&p.Y8G("notFoundText",p.mNQ(p.bMT(1,15,"multiSelectNotFound")))("clearAllText",p.mNQ(p.bMT(2,17,"multiSelectClearAll")))("items",t.baseItems())("ngModel",t.selectedItems())("placeholder",t.placeholder())("loading",t.loading())("loadingText",t.loadingText())("multiple",!0)("closeOnSelect",!1)("disabled",t.disabled())("clearSearchOnAdd",!0)("labelForId",t.searchInputId())("keyDownFn",t.keyDown)},dependencies:[m.R,l.MQ,l.vr,l.Uq,l.ZZ,l.QQ,a.X1,a.BC,a.YN,a.vS,g,f.t,d.$Z],encapsulation:2,changeDetection:0})},61465(e,t,i){"use strict";i.d(t,{i:()=>o});var n=i(89812),r=i(14041),s=i(11217);class o{}o.ɵfac=function(e){return new(e||o)},o.ɵmod=r.$C({type:o}),o.ɵinj=s.G2t({imports:[n.b]})},34465(e,t,i){"use strict";i.d(t,{S:()=>s});var n=i(24590),r=i(14041);class s{constructor(){this.text=(0,n.hFB)(),this.ariaLabel=(0,n.hFB)(),this.icon=(0,n.hFB)(),this.treeDepth=(0,n.geq)(0),this.route=(0,n.hFB)(),this.relativeTo=(0,n.hFB)(),this.routerLinkActiveOptions=(0,n.hFB)({paths:"subset",queryParams:"ignored",fragment:"ignored",matrixParams:"ignored"}),this.hideActiveStyles=(0,n.hFB)(!1),this.mainContentClicked=(0,n.CGW)()}}s.ɵfac=function(e){return new(e||s)},s.ɵdir=r.FsC({type:s,inputs:{text:[1,"text"],ariaLabel:[1,"ariaLabel"],icon:[1,"icon"],treeDepth:[1,"treeDepth"],route:[1,"route"],relativeTo:[1,"relativeTo"],routerLinkActiveOptions:[1,"routerLinkActiveOptions"],hideActiveStyles:[1,"hideActiveStyles"]},outputs:{treeDepth:"treeDepthChange",mainContentClicked:"mainContentClicked"}})},74269(e,t,i){"use strict";i.d(t,{K:()=>a});var n=i(11217),r=i(21823),s=i(14041);function o(e,t){1&e&&s.Hgh(0,"div",0)}class a{constructor(){this.sideNavService=(0,n.WQX)(r.G)}}a.ɵfac=function(e){return new(e||a)},a.ɵcmp=s.VBU({type:a,selectors:[["bit-nav-divider"]],decls:1,vars:1,consts:[[1,"tw-h-px","tw-w-full","tw-my-2","tw-bg-border-nav-divider"]],template:function(e,t){1&e&&s.nVh(0,o,1,0,"div",0),2&e&&s.vxM(t.sideNavService.open()?0:-1)},encapsulation:2,changeDetection:0})},44087(e,t,i){"use strict";i.d(t,{O:()=>f});var n=i(24590),r=i(14041),s=i(11217),o=i(63477),a=i(36801),l=i(22191),c=i(34465),d=i(65067),u=i(21823),h=i(36288);const A=[[["","slot","end"]],"*"],p=(e,t)=>[e,t];function g(e,t){if(1&e&&(r.j41(0,"div",3),r.nI1(1,"i18n"),r.SdG(2,1),r.k0s()),2&e){const e=r.XpG(3);r.BMQ("id",e.contentId)("aria-label",r.l_i(4,p,e.text(),r.bMT(1,2,"submenu")).join(" "))}}function v(e,t){if(1&e&&r.nVh(0,g,3,7,"div",3),2&e){const e=r.XpG(2);r.vxM(e.open()?0:-1)}}function m(e,t){if(1&e){const e=r.RV6();r.j41(0,"bit-nav-item",0),r.bIt("mainContentClicked",function(){s.eBV(e);const t=r.XpG();return s.Njj(t.handleMainContentClicked())}),r.j41(1,"button",1),r.nI1(2,"i18n"),r.bIt("click",function(t){s.eBV(e);const i=r.XpG();return s.Njj(i.toggle(t))}),r.k0s(),r.qex(3,2),r.SdG(4),r.bVm(),r.k0s(),r.nVh(5,v,1,1)}if(2&e){const e=r.XpG();r.Y8G("text",e.text())("icon",e.icon())("route",e.route())("treeDepth",e.treeDepth())("relativeTo",e.relativeTo())("routerLinkActiveOptions",e.routerLinkActiveOptions())("ariaLabel",e.ariaLabel())("hideActiveStyles",e.parentHideActiveStyles())("ariaCurrentWhenActive",e.ariaCurrent())("forceActiveStyles",e.forceActiveStyles()),r.R7$(),r.HbH(e.open()?"":"tw-transform tw-rotate-[-90deg]"),r.Y8G("label",r.l_i(18,p,r.bMT(2,16,"toggleCollapse"),e.text()).join(" ")),r.BMQ("aria-expanded",e.open().toString())("aria-controls",e.contentId),r.R7$(4),r.vxM(e.sideNavOpen()?5:-1)}}class f extends c.S{constructor(){super(),this.sideNavService=(0,s.WQX)(u.G),this.parentNavGroup=(0,s.WQX)(f,{optional:!0,skipSelf:!0}),this.el=(0,s.WQX)(r.aKT),this.nestedNavComponents=(0,n.tEk)(c.S,Object.assign(Object.assign({},{}),{descendants:!1})),this.sideNavOpen=this.sideNavService.open,this.sideNavAndGroupOpen=(0,o.EW)(()=>this.open()&&this.sideNavOpen()),this.parentHideActiveStyles=(0,o.EW)(()=>this.hideActiveStyles()||this.sideNavAndGroupOpen()),this.ariaCurrentWhenActive=(0,n.hFB)(),this.ariaCurrent=(0,o.EW)(()=>{var e;return null!==(e=this.ariaCurrentWhenActive())&&void 0!==e?e:this.sideNavAndGroupOpen()?void 0:"page"}),this.contentId=Math.random().toString(36).substring(2),this.open=(0,n.geq)(!1),this.hideIfEmpty=(0,n.hFB)(!1,Object.assign(Object.assign({},{}),{transform:n.L39})),this.forceActiveStyles=(0,n.hFB)(!1,Object.assign(Object.assign({},{}),{transform:n.L39})),this.disableToggleOnClick=(0,n.hFB)(!1,Object.assign(Object.assign({},{}),{transform:n.L39})),this.parentNavGroup&&this.treeDepth.set(this.parentNavGroup.treeDepth()+1)}setOpen(e){this.open.set(e),this.open()&&this.parentNavGroup&&this.parentNavGroup.setOpen(this.open())}toggle(e){null==e||e.stopPropagation(),this.setOpen(!this.open())}handleMainContentClicked(){this.sideNavService.open()?this.disableToggleOnClick()||this.toggle():(this.route()||this.sideNavService.open.set(!0),this.open.set(!0)),this.mainContentClicked.emit()}}f.ɵfac=function(e){return new(e||f)},f.ɵcmp=r.VBU({type:f,selectors:[["bit-nav-group"]],contentQueries:function(e,t,i){1&e&&r.C6U(i,t.nestedNavComponents,c.S,4),2&e&&r.NyB()},inputs:{ariaCurrentWhenActive:[1,"ariaCurrentWhenActive"],open:[1,"open"],hideIfEmpty:[1,"hideIfEmpty"],forceActiveStyles:[1,"forceActiveStyles"],disableToggleOnClick:[1,"disableToggleOnClick"]},outputs:{open:"openChange"},features:[r.Jv_([{provide:c.S,useExisting:f},{provide:d.H,useExisting:f}]),r.Vt3],ngContentSelectors:["[slot=end]","*"],decls:1,vars:1,consts:[[3,"mainContentClicked","text","icon","route","treeDepth","relativeTo","routerLinkActiveOptions","ariaLabel","hideActiveStyles","ariaCurrentWhenActive","forceActiveStyles"],["slot","start","type","button","bitIconButton","bwi-down-solid","buttonType","side-nav","size","xsmall","data-testid","nav-group-collapse-arrow",1,"tw-ms-auto",3,"click","label"],["slot","end"],["role","group"]],template:function(e,t){1&e&&(r.NAR(A),r.nVh(0,m,6,21)),2&e&&r.vxM(!t.hideIfEmpty()||t.nestedNavComponents().length>0?0:-1)},dependencies:[d.u,l.Q,h.s,a.$Z],encapsulation:2,changeDetection:0})},65067(e,t,i){"use strict";i.d(t,{H:()=>E,u:()=>S});var n=i(46758),r=i(24590),s=i(11217),o=i(63477),a=i(84522),l=i(58384),c=i(22191),d=i(34465),u=i(21823),h=i(14041);const A=[[["","slot","start"]],[["","slot","end"]]],p=e=>({focusAfterNav:e});function g(e,t){1&e&&(h.j41(0,"div",5),h.SdG(1),h.k0s())}function v(e,t){1&e&&h.eu8(0)}function m(e,t){if(1&e){const e=h.RV6();h.j41(0,"a",9),h.bIt("isActiveChange",function(t){s.eBV(e);const i=h.XpG(2);return s.Njj(i.setIsActive(t))})("click",function(){s.eBV(e);const t=h.XpG(2);return s.Njj(t.mainContentClicked.emit())}),h.DNE(1,v,1,0,"ng-container",10),h.k0s()}if(2&e){const e=h.XpG(2),t=h.sdS(5),i=h.r8f(1);h.HbH(i),h.Y8G("routerLink",e.route())("relativeTo",e.relativeTo())("routerLinkActiveOptions",e.routerLinkActiveOptions())("ariaCurrentWhenActive",e.ariaCurrentWhenActive())("state",h.eq3(9,p,e.focusAfterNavTarget())),h.BMQ("aria-label",e.ariaLabel()||e.text()),h.R7$(),h.Y8G("ngTemplateOutlet",t)}}function f(e,t){1&e&&h.eu8(0)}function y(e,t){if(1&e){const e=h.RV6();h.j41(0,"button",11),h.bIt("click",function(){s.eBV(e);const t=h.XpG(2);return s.Njj(t.mainContentClicked.emit())}),h.DNE(1,f,1,0,"ng-container",10),h.k0s()}if(2&e){h.XpG(2);const e=h.sdS(5),t=h.r8f(1);h.HbH(t),h.R7$(),h.Y8G("ngTemplateOutlet",e)}}function b(e,t){1&e&&(h.j41(0,"div",12),h.bIt("click",function(e){return e.stopPropagation()}),h.SdG(1,1),h.k0s())}function C(e,t){if(1&e&&(h.j41(0,"div",3)(1,"div",4),h.nVh(2,g,2,0,"div",5),h.nVh(3,m,2,11,"a",6)(4,y,2,3,"button",7),h.nVh(5,b,2,0,"div",8),h.k0s()()),2&e){const e=h.XpG(),t=h.r8f(0);h.Aen(e.showActiveStyles()?"--color-nav-bg-primary: var(--color-nav-bg-primary-strong); --color-nav-bg-secondary: var(--color-nav-bg-secondary-strong); --color-nav-bg-primary-hover: var(--color-nav-bg-primary-hover-strong); --color-nav-bg-secondary-hover: var(--color-nav-bg-secondary-hover-strong);":""),h.HbH(e.fvwStyles()),h.xc7("padding-inline-start",e.navItemIndentationPadding()),h.R7$(2),h.vxM(t?2:-1),h.R7$(),h.vxM(e.route()?3:4),h.R7$(2),h.vxM(t?5:-1)}}function I(e,t){if(1&e&&h.nrm(0,"bit-icon",14),2&e){const e=h.XpG(2),t=h.r8f(0);h.Y8G("name",e.icon()),h.BMQ("aria-hidden",t)("aria-label",e.text())}}function w(e,t){if(1&e&&(h.j41(0,"span",15),h.EFF(1),h.k0s()),2&e){const e=h.XpG(2);h.R7$(),h.JRh(e.text())}}function B(e,t){if(1&e&&(h.j41(0,"div",13),h.nVh(1,I,1,3,"bit-icon",14),h.nVh(2,w,2,1,"span",15),h.k0s()),2&e){const e=h.XpG(),t=h.r8f(0);h.AVh("tw-text-center",!t)("tw-justify-center",!t)("tw-font-normal",!e.showActiveStyles())("tw-font-semibold",e.showActiveStyles()),h.Y8G("title",e.text()),h.R7$(),h.vxM(e.icon()?1:-1),h.R7$(),h.vxM(t?2:-1)}}class E{}class S extends d.S{setIsActive(e){this._isActive.set(e),e&&this.parentNavGroup&&this.parentNavGroup.setOpen(!0)}onFocusIn(e){this.focusVisibleWithin.set(e.matches("[data-fvw]:focus-visible"))}onFocusOut(){this.focusVisibleWithin.set(!1)}constructor(){super(),this.TREE_BASE_PADDING=2.25,this.TREE_DEPTH_PADDING=1.5,this.forceActiveStyles=(0,r.hFB)(!1),this.sideNavService=(0,s.WQX)(u.G),this.parentNavGroup=(0,s.WQX)(E,{optional:!0}),this._isActive=(0,s.vPA)(!1),this.showActiveStyles=(0,o.EW)(()=>this.forceActiveStyles()||this._isActive()&&!this.hideActiveStyles()),this.navItemIndentationPadding=(0,o.EW)(()=>{var e;const t=this.sideNavService.open(),i=null!==(e=this.treeDepth())&&void 0!==e?e:0;return t?`${this.TREE_BASE_PADDING+i*this.TREE_DEPTH_PADDING}rem`:"0"}),this.ariaCurrentWhenActive=(0,r.hFB)("page"),this.focusAfterNavTarget=(0,r.hFB)(),this.focusVisibleWithin=(0,s.vPA)(!1),this.fvwStyles=(0,o.EW)(()=>this.focusVisibleWithin()?"tw-z-10 tw-rounded tw-outline-none tw-ring tw-ring-inset tw-ring-border-nav-focus tw-bg-bg-nav-hover":""),this.parentNavGroup&&this.treeDepth.set(this.parentNavGroup.treeDepth()+1)}}S.ɵfac=function(e){return new(e||S)},S.ɵcmp=h.VBU({type:S,selectors:[["bit-nav-item"]],hostAttrs:[1,"tw-block"],hostBindings:function(e,t){1&e&&h.bIt("focusin",function(e){return t.onFocusIn(e.target)})("focusout",function(){return t.onFocusOut()})},inputs:{forceActiveStyles:[1,"forceActiveStyles"],ariaCurrentWhenActive:[1,"ariaCurrentWhenActive"],focusAfterNavTarget:[1,"focusAfterNavTarget"]},features:[h.Jv_([{provide:d.S,useExisting:S}]),h.Vt3],ngContentSelectors:["[slot=start]","[slot=end]"],decls:6,vars:3,consts:[["anchorAndButtonContent",""],[1,"tw-cursor-pointer","tw-ps-3","tw-pe-3"],["data-testid","nav-item-container","data-spotlight-target","",1,"tw-relative","tw-rounded-xl","tw-h-10","tw-bg-bg-nav","hover:tw-bg-bg-nav-hover",3,"padding-inline-start","class","style"],["data-testid","nav-item-container","data-spotlight-target","",1,"tw-relative","tw-rounded-xl","tw-h-10","tw-bg-bg-nav","hover:tw-bg-bg-nav-hover"],[1,"tw-relative","tw-flex","tw-items-center","tw-h-full"],[1,"tw-absolute","tw-left-[0px]","tw-transform","tw--translate-x-[calc(100%_+_4px)]"],["data-fvw","","routerLinkActive","","data-testid","nav-item-interactive",3,"class","routerLink","relativeTo","routerLinkActiveOptions","ariaCurrentWhenActive","state"],["type","button","data-fvw","","data-testid","nav-item-interactive",3,"class"],[1,"tw-flex","tw-items-center","tw-gap-1","tw-pe-3","[&:has(button)]:tw-pe-2","empty:tw-hidden"],["data-fvw","","routerLinkActive","","data-testid","nav-item-interactive",3,"isActiveChange","click","routerLink","relativeTo","routerLinkActiveOptions","ariaCurrentWhenActive","state"],[4,"ngTemplateOutlet"],["type","button","data-fvw","","data-testid","nav-item-interactive",3,"click"],[1,"tw-flex","tw-items-center","tw-gap-1","tw-pe-3","[&:has(button)]:tw-pe-2","empty:tw-hidden",3,"click"],[1,"tw-gap-2","tw-py-0","tw-flex","tw-items-center","tw-h-full",3,"title"],["fixedWidth","true",1,"!tw-m-0","tw-w-4","tw-shrink-0",3,"name"],[1,"tw-truncate"]],template:function(e,t){if(1&e&&(h.NAR(A),h.SS7(0)(1),h.j41(2,"div",1),h.nVh(3,C,6,9,"div",2),h.k0s(),h.DNE(4,B,3,11,"ng-template",null,0,h.C5r)),2&e){const e=h.bH3(t.sideNavService.open());h.R7$(),h.bH3("tw-size-full tw-px-0 tw-block tw-truncate tw-border-none !tw-text-fg-nav tw-text-start hover:tw-no-underline focus:tw-outline-none [&_i]:tw-leading-[1.5rem]"),h.R7$(2),h.vxM(e||t.icon()?3:-1)}},dependencies:[n.T3,c.Q,a.iI,a.Wk,a.wQ,l.R],encapsulation:2,changeDetection:0})},59557(e,t,i){"use strict";i.d(t,{K:()=>h});var n=i(46758),r=i(11217),s=i(24590),o=i(84522);const a=i(82392).JW`
|
|
<svg version="1.1" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg" fill="none">
|
|
<title>Vaultwarden</title>
|
|
<g clip-path="url(#bitwarden-shield-clip)">
|
|
<path class="tw-fill-fg-nav" d="m18 11-5.6.00073 15 42h5.3l15-42h-5.6l-9.5 27c-.63 1.7-1.2 3.4-1.6 4.9-.43 1.5-.79 2.9-1.1 4.3-.28-1.4-.63-2.8-1.1-4.4-.43-1.5-.97-3.2-1.6-5l-9.5-27z"/>
|
|
<path class="tw-fill-fg-nav" d="m30 0.05c-0.19 0.068-0.34 0.2-0.44 0.37l-1.5 2.5c-0.27 0.022-0.53 0.046-0.8 0.076l-2-2.2c-0.43-0.44-1.2-0.29-1.4 0.29l-1 2.8c-0.26 0.074-0.51 0.15-0.77 0.23l-2.4-1.8c-0.52-0.45-1.3-0.12-1.4 0.56l-0.44 2.9c-0.23 0.12-0.47 0.24-0.7 0.37l-2.7-1.3c-0.58-0.26-1.2 0.18-1.2 0.81l0.14 3c-0.2 0.16-0.4 0.33-0.6 0.49l-2.9-0.72c-0.59-0.12-1.1 0.41-1 1l0.72 2.9c-0.17 0.2-0.33 0.4-0.49 0.6l-3-0.14c-0.63-0.027-1.1 0.62-0.81 1.2l1.3 2.7c-0.13 0.23-0.25 0.46-0.37 0.7l-2.9 0.44c-0.68 0.068-1 0.88-0.56 1.4l1.8 2.4c-0.081 0.25-0.16 0.51-0.23 0.77l-2.8 1c-0.58 0.22-0.73 0.97-0.29 1.4l2.2 2c-0.03 0.26-0.054 0.53-0.076 0.8l-2.5 1.5c-0.6 0.32-0.6 1.2 0 1.5l2.5 1.5c0.022 0.27 0.046 0.53 0.076 0.8l-2.2 2c-0.44 0.43-0.29 1.2 0.29 1.4l2.8 1c0.074 0.26 0.15 0.51 0.23 0.77l-1.8 2.4c-0.45 0.52-0.12 1.3 0.56 1.4l2.9 0.44c0.12 0.23 0.24 0.47 0.37 0.7l-1.3 2.7c-0.26 0.58 0.18 1.2 0.81 1.2l3-0.14c0.16 0.2 0.33 0.4 0.49 0.6l-0.72 2.9c-0.12 0.59 0.41 1.1 1 1l2.9-0.72c0.2 0.17 0.4 0.33 0.6 0.49l-0.14 3c-0.027 0.63 0.62 1.1 1.2 0.81l2.7-1.3c0.23 0.13 0.46 0.25 0.7 0.37l0.44 2.9c0.068 0.68 0.88 1 1.4 0.56l2.4-1.8c0.25 0.081 0.51 0.16 0.77 0.23l1 2.8c0.22 0.58 0.97 0.73 1.4 0.29l2-2.2c0.26 0.03 0.53 0.054 0.8 0.076l1.5 2.5c0.32 0.6 1.2 0.6 1.5 0l1.5-2.5c0.27-0.022 0.53-0.046 0.8-0.076l2 2.2c0.43 0.44 1.2 0.29 1.4-0.29l1-2.8c0.26-0.074 0.51-0.15 0.77-0.23l2.4 1.8c0.52 0.45 1.3 0.12 1.4-0.56l0.44-2.9c0.23-0.12 0.47-0.24 0.7-0.37l2.7 1.3c0.58 0.26 1.2-0.18 1.2-0.81l-0.14-3c0.2-0.16 0.4-0.33 0.6-0.49l2.9 0.72c0.59 0.12 1.1-0.41 1-1l-0.72-2.9c0.17-0.2 0.33-0.4 0.49-0.6l3 0.14c0.63 0.027 1.1-0.62 0.81-1.2l-1.3-2.7c0.13-0.23 0.25-0.46 0.37-0.7l2.9-0.44c0.68-0.068 1-0.88 0.56-1.4l-1.8-2.4c0.081-0.25 0.16-0.51 0.23-0.77l2.8-1c0.58-0.22 0.73-0.97 0.29-1.4l-2.2-2c0.03-0.26 0.054-0.53 0.076-0.8l2.5-1.5c0.6-0.32 0.6-1.2 0-1.5l-2.5-1.5c-0.022-0.27-0.046-0.53-0.076-0.8l2.2-2c0.44-0.43 0.29-1.2-0.29-1.4l-2.8-1c-0.074-0.26-0.15-0.51-0.23-0.77l1.8-2.4c0.45-0.52 0.12-1.3-0.56-1.4l-2.9-0.44c-0.12-0.23-0.24-0.47-0.37-0.7l1.3-2.7c0.26-0.58-0.18-1.2-0.81-1.2l-3 0.14c-0.16-0.2-0.33-0.4-0.49-0.6l0.72-2.9c0.12-0.59-0.41-1.1-1-1l-2.9 0.72c-0.2-0.17-0.4-0.33-0.6-0.49l0.14-3c0.027-0.63-0.62-1.1-1.2-0.81l-2.7 1.3c-0.23-0.13-0.46-0.25-0.7-0.37l-0.44-2.9c-0.068-0.68-0.88-1-1.4-0.56l-2.4 1.8c-0.25-0.081-0.51-0.16-0.77-0.23l-1-2.8c-0.22-0.58-0.97-0.73-1.4-0.29l-2 2.2c-0.26-0.03-0.53-0.054-0.8-0.076l-1.5-2.5c-0.2-0.34-0.62-0.5-1-0.37zm0.29 5.4c0.94 0 1.7 0.76 1.7 1.7s-0.76 1.7-1.7 1.7-1.7-0.76-1.7-1.7 0.76-1.7 1.7-1.7zm-4 2.9 2.8 2.8c0.66 0.66 1.7 0.66 2.4 0l2.8-2.8c6.6 1.2 12 5.4 15 11l-1.8 3.6c-0.43 0.84-0.097 1.9 0.75 2.3l3.6 1.8c0.12 0.92 0.18 1.9 0.18 2.8 0 5.8-2.3 11-6 15l-4-0.63c-0.94-0.18-1.8 0.45-2 1.4l-0.63 4c-2.8 1.3-6 2.1-9.4 2.1s-6.5-0.76-9.4-2.1l-0.63-4c-0.15-0.95-1.1-1.6-2-1.4l-4 0.63c-3.7-3.9-6-9.2-6-15 0-0.96 0.064-1.9 0.18-2.8l3.6-1.8c0.85-0.42 1.2-1.5 0.75-2.3l-1.8-3.6c3.1-5.7 8.6-9.8 15-11zm-18 13c0.16 0.0045 0.32 0.032 0.48 0.083 0.93 0.29 1.4 1.3 1.1 2.2-0.29 0.93-1.3 1.4-2.2 1.1-0.93-0.29-1.4-1.3-1.1-2.2 0.23-0.74 0.93-1.2 1.7-1.2zm43 0c0.77-0.034 1.5 0.46 1.7 1.2 0.33 0.91-0.17 1.9-1.1 2.2-0.91 0.33-1.9-0.17-2.2-1.1-0.33-0.91 0.17-1.9 1.1-2.2 0.16-0.051 0.32-0.079 0.48-0.083zm-35 25c0.33 0.017 0.64 0.13 0.91 0.32 0.78 0.55 0.95 1.6 0.38 2.4-0.55 0.78-1.6 0.95-2.4 0.38-0.78-0.55-0.95-1.6-0.38-2.4 0.34-0.48 0.91-0.74 1.5-0.7zm27 0c0.59-0.042 1.2 0.22 1.5 0.7 0.57 0.77 0.4 1.8-0.38 2.4-0.77 0.57-1.8 0.4-2.4-0.38-0.57-0.77-0.4-1.8 0.38-2.4 0.27-0.19 0.58-0.3 0.91-0.32z"/>
|
|
</g>
|
|
<defs>
|
|
<clipPath id="bitwarden-shield-clip">
|
|
<path class="tw-fill-fg-nav" d="M0 0h60v60H0z"/>
|
|
</clipPath>
|
|
</defs>
|
|
</svg>
|
|
`;var l=i(8168),c=i(21823),d=i(14041);const u=(e,t,i,n)=>({"tw-sticky tw-top-0 tw-z-50 tw-pb-4":e,"tw-pb-[calc(theme(spacing.8)_+_2px)]":t,"tw-pt-[calc(0.5rem_+_var(--bit-sidenav-extra-top-padding,_0px))]":i,"tw-pt-2":n});class h{constructor(){this.sideNavService=(0,r.WQX)(c.G),this.closedIcon=(0,s.hFB)(a),this.openIcon=s.hFB.required(),this.route=s.hFB.required(),this.label=s.hFB.required()}}h.ɵfac=function(e){return new(e||h)},h.ɵcmp=d.VBU({type:h,selectors:[["bit-nav-logo"]],hostAttrs:[1,"tw-contents"],inputs:{closedIcon:[1,"closedIcon"],openIcon:[1,"openIcon"],route:[1,"route"],label:[1,"label"]},decls:3,vars:12,consts:[[1,"tw-px-2","tw-bg-bg-nav",3,"ngClass"],["routerLinkActive","","ariaCurrentWhenActive","page",1,"tw-relative","tw-p-3","tw-block","tw-rounded-md","tw-outline-none","focus-visible:tw-ring","focus-visible:tw-ring-inset","focus-visible:tw-ring-border-nav-focus","hover:tw-bg-bg-nav-hover","tw-h-[73px]","[&_svg]:tw-absolute","[&_svg]:tw-inset-[.6875rem]","[&_svg]:tw-w-[200px]",3,"routerLink","title"],[3,"content"]],template:function(e,t){1&e&&(d.j41(0,"div",0)(1,"a",1),d.nrm(2,"bit-svg",2),d.k0s()()),2&e&&(d.Y8G("ngClass",d.ziG(7,u,t.sideNavService.open(),!t.sideNavService.open(),t.sideNavService.isOverlay(),!t.sideNavService.isOverlay())),d.R7$(),d.HbH(t.sideNavService.open()?"":"!tw-h-[55px] [&_svg]:!tw-w-[26px]"),d.Y8G("routerLink",t.route())("title",t.label()),d.BMQ("aria-label",t.label()),d.R7$(),d.Y8G("content",t.sideNavService.open()?t.openIcon():t.closedIcon()))},dependencies:[n.YU,o.wQ,o.Wk,l.k],encapsulation:2,changeDetection:0})},24137(e,t,i){"use strict";i.d(t,{f:()=>l});var n=i(44087),r=i(65067),s=i(42503),o=i(14041),a=i(11217);class l{}l.ɵfac=function(e){return new(e||l)},l.ɵmod=o.$C({type:l}),l.ɵinj=a.G2t({imports:[n.O,r.u,s.K]})},42503(e,t,i){"use strict";i.d(t,{K:()=>m});var n=i(70352),r=i(49856),s=i(46758),o=i(24590),a=i(14041),l=i(11217),c=i(36801),d=i(36288),u=i(74269),h=i(21823);const A=["toggleButton"],p=["*",[["","slot","product-switcher"]],[["","slot","footer"]]];function g(e,t){1&e&&(a.j41(0,"div",6),a.SdG(1,1),a.k0s())}function v(e,t){1&e&&a.SdG(0,2)}class m{constructor(){this.sideNavService=(0,l.WQX)(h.G),this.variant=(0,o.hFB)("primary"),this.toggleButton=(0,o.ebz)("toggleButton",Object.assign(Object.assign({},{}),{read:a.aKT})),this.elementRef=(0,l.WQX)(a.aKT),this.handleKeyDown=e=>{var t;return"Escape"!==e.key||(this.sideNavService.open.set(!1),null===(t=this.toggleButton())||void 0===t||t.nativeElement.focus(),!1)}}onDragMoved(e){const t=this.elementRef.nativeElement.getBoundingClientRect().x,i=e.pointerPosition.x;this.sideNavService.setWidthFromDrag(i,t);e.source.element.nativeElement.style.transform="none"}onKeydown(e){"ArrowRight"!==e.key&&"ArrowLeft"!==e.key||this.sideNavService.setWidthFromKeys(e.key)}}m.ɵfac=function(e){return new(e||m)},m.ɵcmp=a.VBU({type:m,selectors:[["bit-side-nav"]],viewQuery:function(e,t){1&e&&a.wEZ(t.toggleButton,A,5,a.aKT),2&e&&a.NyB()},hostAttrs:[1,"tw-block","tw-h-full","tw-col-start-1","tw-row-start-1"],hostVars:2,hostBindings:function(e,t){2&e&&a.HbH(t.sideNavService.isOverlay()?"tw-fixed tw-top-0 tw-bottom-0 tw-left-0 tw-z-50":"")},inputs:{variant:[1,"variant"]},ngContentSelectors:["*","[slot=product-switcher]","[slot=footer]"],decls:20,vars:32,consts:[["toggleButton",""],[1,"tw-relative","tw-h-full",3,"cdkTrapFocus"],["id","bit-side-nav",1,"tw-sticky","tw-inset-y-0","tw-left-0","tw-z-30","tw-flex","tw-h-full","tw-flex-col","tw-overflow-hidden","tw-bg-bg-nav","tw-text-fg-nav","tw-outline-none",3,"keydown"],[1,"tw-flex-1","tw-min-h-0","tw-overflow-auto","tw-overscroll-none",2,"container-type","size"],[1,"tw-flex","tw-flex-col","tw-min-h-full"],[1,"tw-flex-1"],[1,"tw-w-full","tw-bg-bg-nav","[@container_(min-height:600px)]:tw-sticky","[@container_(min-height:600px)]:tw-bottom-0"],[1,"tw-w-full","tw-bg-bg-nav"],[1,"tw-m-4"],["type","button","buttonType","side-nav","size","small","aria-controls","bit-side-nav",1,"tw-mx-auto","tw-block",3,"click","bitIconButton","label"],["cdkDrag","","tabindex","0","role","separator","aria-orientation","vertical","aria-controls","bit-side-nav",1,"tw-absolute","tw-top-0","-tw-right-0.5","tw-z-30","tw-h-full","tw-w-1","tw-cursor-col-resize","tw-transition-colors","tw-duration-[250ms]","hover:tw-ease-in-out","hover:tw-delay-[250ms]","hover:tw-bg-primary-300","focus:tw-outline-none","focus-visible:tw-bg-primary-300","before:tw-content-['']","before:tw-absolute","before:tw-block","before:tw-inset-y-0","before:-tw-left-0.5","before:-tw-right-1",3,"cdkDragMoved","keydown"]],template:function(e,t){if(1&e&&(a.NAR(p),a.j41(0,"div",1),a.nI1(1,"i18n"),a.j41(2,"nav",2),a.nI1(3,"async"),a.nI1(4,"i18n"),a.bIt("keydown",function(e){return t.handleKeyDown(e)}),a.j41(5,"div",3)(6,"div",4)(7,"div",5),a.SdG(8),a.k0s(),a.nVh(9,g,2,0,"div",6),a.k0s()(),a.j41(10,"div",7),a.nrm(11,"bit-nav-divider"),a.nVh(12,v,1,0),a.j41(13,"div",8)(14,"button",9,0),a.nI1(16,"i18n"),a.bIt("click",function(){return t.sideNavService.toggle()}),a.k0s()()()(),a.j41(17,"div",10),a.nI1(18,"async"),a.nI1(19,"i18n"),a.bIt("cdkDragMoved",function(e){return t.onDragMoved(e)})("keydown",function(e){return t.onKeydown(e)}),a.k0s()()),2&e){const e=t.sideNavService.open(),i=t.sideNavService.isOverlay();a.Y8G("cdkTrapFocus",i),a.BMQ("role",i?"dialog":null)("aria-modal",i?"true":null)("aria-label",i?a.bMT(1,20,"sideNavigation"):null),a.R7$(2),a.Aen("secondary"===t.variant()?"--color-nav-fg-primary: var(--color-nav-fg-secondary); --color-nav-bg-primary: var(--color-nav-bg-secondary); --color-nav-bg-primary-strong: var(--color-nav-bg-secondary-strong); --color-nav-bg-primary-hover: var(--color-nav-bg-secondary-hover); --color-nav-bg-primary-hover-strong: var(--color-nav-bg-secondary-hover-strong); --color-nav-border-primary-focus: var(--color-nav-border-secondary-focus); --color-nav-border-primary: var(--color-nav-border-secondary);":""),a.xc7("width",e?a.bMT(3,22,t.sideNavService.width$):void 0,"rem"),a.BMQ("aria-label",a.bMT(4,24,"sideNavigation")),a.R7$(7),a.vxM(e?9:-1),a.R7$(3),a.vxM(e?12:-1),a.R7$(2),a.Y8G("bitIconButton",e?"bwi-angle-left":"bwi-angle-right")("label",a.bMT(16,26,"toggleSideNavigation")),a.BMQ("aria-expanded",e),a.R7$(3),a.AVh("tw-hidden",!e),a.BMQ("aria-valuenow",a.bMT(18,28,t.sideNavService.width$))("aria-valuemax",t.sideNavService.MAX_OPEN_WIDTH)("aria-valuemin",t.sideNavService.MIN_OPEN_WIDTH)("aria-label",a.bMT(19,30,"resizeSideNavigation"))}},dependencies:[n.kB,u.K,d.s,r.ad,r.T1,c.$Z,s.Jj],encapsulation:2,changeDetection:0})},21823(e,t,i){"use strict";i.d(t,{G:()=>A});var n=i(11217),r=i(63477),s=i(92128),o=i(67789),a=i(14679),l=i(36219),c=i(69783),d=i(31066),u=i(9396);const h=new d.Zs(d.cj,"side-nav-width",{deserializer:e=>e});class A{constructor(){this.DEFAULT_OPEN_WIDTH=18,this.MIN_OPEN_WIDTH=15,this.MAX_OPEN_WIDTH=24,this.open=(0,n.vPA)(!1),this.isPushMode=(0,n.vPA)(!1),this.isOverlay=(0,r.EW)(()=>this.open()&&!this.isPushMode()),this.userCollapsePreference=(0,n.vPA)(null),this._width$=new o.t(this.DEFAULT_OPEN_WIDTH),this.width$=this._width$.asObservable(),this.widthRem=(0,s.ot)(this.width$,{initialValue:this.DEFAULT_OPEN_WIDTH}),this.widthState=(0,n.WQX)(d.Y2).get(h),this.widthState$=this.widthState.state$.pipe((0,c.T)(e=>null!=e?e:this.DEFAULT_OPEN_WIDTH)),this.rootFontSizePx=(0,u.T)(),this.widthState$.pipe((0,l.$)()).subscribe(e=>{this._width$.next(e)}),this.width$.pipe((0,a.B)(200),(0,s.pQ)()).subscribe(e=>{this.widthState.update(()=>e)})}toggle(){this.userCollapsePreference.set(this.open()?"closed":"open"),this.open.set(!this.open())}setWidthFromDrag(e,t){const i=(e-t)/this.rootFontSizePx;this._setWidthWithinMinMax(i)}setWidthFromKeys(e){const t=this._width$.getValue()+("ArrowLeft"===e?-1:1);this._setWidthWithinMinMax(t)}_setWidthWithinMinMax(e){const t=Math.min(Math.max(e,this.MIN_OPEN_WIDTH),this.MAX_OPEN_WIDTH);this._width$.next(t)}}A.ɵfac=function(e){return new(e||A)},A.ɵprov=n.jDH({token:A,factory:A.ɵfac,providedIn:"root"})},22690(e,t,i){"use strict";i.d(t,{D:()=>l});var n=i(24590),r=i(78510),s=i(8168),o=i(14041);const a=[[["","slot","title"]],[["","slot","description"]],[["","slot","button"]]];class l{constructor(){this.icon=(0,n.hFB)(r.a)}}l.ɵfac=function(e){return new(e||l)},l.ɵcmp=o.VBU({type:l,selectors:[["bit-no-items"]],inputs:{icon:[1,"icon"]},ngContentSelectors:["[slot=title]","[slot=description]","[slot=button]"],decls:10,vars:1,consts:[[1,"tw-mx-auto","tw-flex","tw-flex-col","tw-items-center","tw-justify-center","tw-pt-6"],[1,"tw-max-w-sm","tw-flex","tw-flex-col","tw-items-center"],[1,"tw-size-24","tw-content-center"],["aria-hidden","true",3,"content"],[1,"tw-font-medium","tw-text-center","tw-mt-4"],[1,"tw-text-center"],[1,"tw-space-x-2"]],template:function(e,t){1&e&&(o.NAR(a),o.j41(0,"div",0)(1,"div",1)(2,"div",2),o.nrm(3,"bit-svg",3),o.k0s(),o.j41(4,"h3",4),o.SdG(5),o.k0s(),o.j41(6,"p",5),o.SdG(7,1),o.k0s()(),o.j41(8,"div",6),o.SdG(9,2),o.k0s()()),2&e&&(o.R7$(3),o.Y8G("content",t.icon()))},dependencies:[s.k],encapsulation:2,changeDetection:0})},59525(e,t,i){"use strict";i.d(t,{s:()=>s});var n=i(14041),r=i(11217);class s{}s.ɵfac=function(e){return new(e||s)},s.ɵmod=n.$C({type:s}),s.ɵinj=r.G2t({})},7141(e,t,i){"use strict";i.d(t,{V:()=>o});var n=i(24590),r=i(14041),s=i(11217);class o{constructor(){this.elementRef=(0,s.WQX)(r.aKT),this.pinned=(0,n.geq)(!1),this.shouldShrink=(0,s.vPA)(!1)}}o.ɵfac=function(e){return new(e||o)},o.ɵdir=r.FsC({type:o,selectors:[["","bitOverflowItem",""]],inputs:{pinned:[1,"pinned"]},outputs:{pinned:"pinnedChange"},exportAs:["bitOverflowItem"]})},55616(e,t,i){"use strict";i.d(t,{E:()=>d});var n=i(11217),r=i(14041),s=i(24590),o=i(63477),a=i(7141),l=i(90630);function c(e,t,i,n){const r=e.length,s=Array.from({length:r},(e,t)=>t);if(t<=0)return{displayed:s,overflow:[]};if(e.reduce((e,t,n)=>e+t+(n>0?i:0),0)<=t)return{displayed:s,overflow:[]};if(null!==n&&n>=0&&n<r){const s=t-e[n],o=[],a=[];let l=0;for(let t=0;t<r;t++){if(t===n)continue;const c=e[t]+i;if(l+c>s){for(let e=t;e<r;e++)e!==n&&a.push(e);break}l+=c,o.push(t)}const c=o.findIndex(e=>e>n);return-1===c?o.push(n):o.splice(c,0,n),{displayed:o,overflow:a}}const o=[],a=[];let l=0;for(let c=0;c<r;c++){const n=e[c]+(c>0?i:0);if(l+n>t){for(let e=c;e<r;e++)a.push(e);break}l+=n,o.push(c)}return{displayed:o,overflow:a}}class d{constructor(){this.destroyRef=(0,n.WQX)(n.abz),this.hostEl=(0,n.WQX)(r.aKT).nativeElement,this.queriedItems=(0,s.tEk)(a.V,Object.assign(Object.assign({},{}),{descendants:!0})),this.itemsInput=(0,s.hFB)(null,Object.assign(Object.assign({},{}),{alias:"items"})),this.items=(0,o.EW)(()=>{var e;return null!==(e=this.itemsInput())&&void 0!==e?e:this.queriedItems()}),this.trigger=(0,s.sbv)(l.q,Object.assign(Object.assign({},{}),{descendants:!0})),this.gap=(0,s.hFB)(0),this.containerWidth=(0,n.vPA)(0),this.itemWidths=(0,n.vPA)([]),this.triggerWidth=(0,n.vPA)(0),this.pinIndex=(0,o.EW)(()=>{const e=this.items();for(let t=0;t<e.length;t++)if(e[t].pinned())return t;return null}),this.packed=(0,o.EW)(()=>{const e=this.items().length,t=this.itemWidths();if(0===e||t.length<e)return{displayed:Array.from({length:e},(e,t)=>t),overflow:[]};const i=this.containerWidth(),n=this.gap();if(t.reduce((e,t,i)=>e+t+(i>0?n:0),0)<=i)return c(t,i,n,this.pinIndex());const r=this.triggerWidth(),s=r>0?r+n:0;return c(t,Math.max(0,i-s),n,this.pinIndex())}),this.displayed=(0,o.EW)(()=>this.packed().displayed),this.overflow=(0,o.EW)(()=>this.packed().overflow),this.ready=(0,n.vPA)(!1);const e=new ResizeObserver(e=>this.containerWidth.set(e[0].contentBoxSize[0].inlineSize));(0,r.mal)(()=>{var t,i;(null!==(i=null===(t=document.fonts)||void 0===t?void 0:t.ready)&&void 0!==i?i:Promise.resolve()).then(()=>{const e=this.items();this.itemWidths.set(e.map(e=>Math.ceil(e.elementRef.nativeElement.getBoundingClientRect().width)));const t=this.trigger();t&&this.triggerWidth.set(Math.ceil(t.elementRef.nativeElement.getBoundingClientRect().width)),this.ready.set(!0)}),e.observe(this.hostEl),this.destroyRef.onDestroy(()=>e.disconnect())}),(0,n.QZP)(()=>{const e=this.overflow(),t=this.displayed(),i=new Set(e),n=1===t.length&&e.length>0?t[0]:-1;if(this.items().forEach((e,t)=>{e.elementRef.nativeElement.hidden=i.has(t),e.shouldShrink.set(t===n)}),this.ready()){const t=this.trigger();t&&(t.elementRef.nativeElement.hidden=0===e.length)}})}}d.ɵfac=function(e){return new(e||d)},d.ɵdir=r.FsC({type:d,selectors:[["","bitOverflowList",""]],contentQueries:function(e,t,i){1&e&&r.C6U(i,t.queriedItems,a.V,5)(i,t.trigger,l.q,5),2&e&&r.NyB(2)},hostVars:2,hostBindings:function(e,t){2&e&&r.xc7("gap",t.gap(),"px")},inputs:{itemsInput:[1,"items","itemsInput"],gap:[1,"gap"]},exportAs:["bitOverflowList"]})},90630(e,t,i){"use strict";i.d(t,{q:()=>s});var n=i(14041),r=i(11217);class s{constructor(){this.elementRef=(0,r.WQX)(n.aKT)}}s.ɵfac=function(e){return new(e||s)},s.ɵdir=n.FsC({type:s,selectors:[["","bitOverflowTrigger",""]],exportAs:["bitOverflowTrigger"]})},38411(e,t,i){"use strict";i.d(t,{d:()=>m,j:()=>v});var n=i(97173),r=i(84653),s=i(38798),o=i(14041),a=i(24590),l=i(11217),c=i(92128),d=i(68711),u=i(76987);const h=14,A=24,p=[{id:"right-start",offsetX:h,offsetY:-24,originX:"end",originY:"center",overlayX:"start",overlayY:"top",panelClass:["bit-popover-right","bit-popover-right-start"]},{id:"right-center",offsetX:h,originX:"end",originY:"center",overlayX:"start",overlayY:"center",panelClass:["bit-popover-right","bit-popover-right-center"]},{id:"right-end",offsetX:h,offsetY:A,originX:"end",originY:"center",overlayX:"start",overlayY:"bottom",panelClass:["bit-popover-right","bit-popover-right-end"]},{id:"left-start",offsetX:-14,offsetY:-24,originX:"start",originY:"center",overlayX:"end",overlayY:"top",panelClass:["bit-popover-left","bit-popover-left-start"]},{id:"left-center",offsetX:-14,originX:"start",originY:"center",overlayX:"end",overlayY:"center",panelClass:["bit-popover-left","bit-popover-left-center"]},{id:"left-end",offsetX:-14,offsetY:A,originX:"start",originY:"center",overlayX:"end",overlayY:"bottom",panelClass:["bit-popover-left","bit-popover-left-end"]},{id:"below-center",offsetY:h,originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",panelClass:["bit-popover-below","bit-popover-below-center"]},{id:"below-start",offsetX:-24,offsetY:h,originX:"center",originY:"bottom",overlayX:"start",overlayY:"top",panelClass:["bit-popover-below","bit-popover-below-start"]},{id:"below-end",offsetX:A,offsetY:h,originX:"center",originY:"bottom",overlayX:"end",overlayY:"top",panelClass:["bit-popover-below","bit-popover-below-end"]},{id:"above-center",offsetY:-14,originX:"center",originY:"top",overlayX:"center",overlayY:"bottom",panelClass:["bit-popover-above","bit-popover-above-center"]},{id:"above-start",offsetX:-24,offsetY:-14,originX:"center",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:["bit-popover-above","bit-popover-above-start"]},{id:"above-end",offsetX:A,offsetY:-14,originX:"center",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:["bit-popover-above","bit-popover-above-end"]}];class g{constructor(){this.overlay=(0,l.WQX)(r.hJ),this.currentTarget=null,this.borderOverlayRef=null,this.resizeObserver=null,this.windowResizeListener=null,this.hideTimeout=null,this.activePopover=null,this.padding=8,this.backdropElement=document.createElement("div"),this.backdropElement.style.cssText="\n position: fixed;\n inset: 0;\n background: transparent;\n z-index: 999;\n pointer-events: auto;\n display: none;\n ",this.backdropElement.setAttribute("data-spotlight-backdrop","true"),document.body.appendChild(this.backdropElement),this.borderElement=document.createElement("div"),this.borderElement.style.cssText="\n box-shadow: 0 0 0 9999px var(--color-bg-overlay);\n width: 100%;\n height: 100%;\n pointer-events: none;\n display: none;\n ",this.borderElement.setAttribute("data-spotlight-border","true"),document.body.appendChild(this.borderElement)}showSpotlight(e){var t;const i=null!==(t=e.querySelector("[data-spotlight-target]"))&&void 0!==t?t:e;null!==this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null),this.currentTarget!==i&&(this.currentTarget=i,"function"==typeof i.scrollIntoView&&i.scrollIntoView({block:"center",inline:"nearest"}),this.backdropElement.style.display="block",this.disposeBorderOverlay(),this.createBorderOverlay(i))}get overlayElement(){var e,t;return null!==(t=null===(e=this.borderOverlayRef)||void 0===e?void 0:e.overlayElement)&&void 0!==t?t:null}register(e){this.activePopover&&this.activePopover!==e&&this.activePopover.closePopover(),this.activePopover=e}unregister(e){this.activePopover===e&&(this.activePopover=null)}hideSpotlight(){this.hideTimeout=window.setTimeout(()=>{this.backdropElement.style.display="none",this.disposeBorderOverlay(),this.currentTarget=null,this.hideTimeout=null},100)}createBorderOverlay(e){const t=window.getComputedStyle(e),i=parseFloat(t.borderRadius);this.borderElement.style.borderRadius=`${i+this.padding}px`,this.borderElement.style.border="2px solid var(--color-border-accent-primary)";const n=this.overlay.position().flexibleConnectedTo(new o.aKT(e)).withPositions([{originX:"start",originY:"top",overlayX:"start",overlayY:"top",offsetX:-this.padding,offsetY:-this.padding}]).withLockedPosition(!1).withFlexibleDimensions(!1).withPush(!1);this.borderOverlayRef=this.overlay.create({positionStrategy:n,scrollStrategy:this.overlay.scrollStrategies.reposition(),width:e.offsetWidth+2*this.padding,height:e.offsetHeight+2*this.padding}),this.borderElement.style.display="block",this.borderOverlayRef.attach(new s.pc(this.borderElement));this.resizeObserver=new ResizeObserver(()=>{this.currentTarget&&this.borderOverlayRef&&(this.borderOverlayRef.updateSize({width:this.currentTarget.offsetWidth+2*this.padding,height:this.currentTarget.offsetHeight+2*this.padding}),this.borderOverlayRef.updatePosition())}),this.resizeObserver.observe(e),this.windowResizeListener=()=>{var e;null===(e=this.borderOverlayRef)||void 0===e||e.updatePosition()},window.addEventListener("resize",this.windowResizeListener)}disposeBorderOverlay(){var e,t;null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.resizeObserver=null,this.windowResizeListener&&(window.removeEventListener("resize",this.windowResizeListener),this.windowResizeListener=null),null===(t=this.borderOverlayRef)||void 0===t||t.dispose(),this.borderOverlayRef=null,this.borderElement.style.display="none"}}g.ɵfac=function(e){return new(e||g)},g.ɵprov=l.jDH({token:g,factory:g.ɵfac,providedIn:"root"});class v{}class m{get positions(){if(!this.position())return p;const e=p.find(e=>e.id===this.position());return e?[e,...p]:p}get defaultPopoverConfig(){return{hasBackdrop:!this.spotlight(),backdropClass:"cdk-overlay-transparent-backdrop",scrollStrategy:this.overlay.scrollStrategies.reposition(),positionStrategy:this.overlay.position().flexibleConnectedTo(this.spotlight()&&this.spotlightService.overlayElement?new o.aKT(this.spotlightService.overlayElement):this.elementRef).withPositions(this.positions).withLockedPosition(!0).withFlexibleDimensions(!1).withPush(!0)}}constructor(){this.popoverOpen=(0,a.geq)(!1),this.popover=a.hFB.required(Object.assign(Object.assign({},{}),{alias:"bitPopoverAnchorFor"})),this.closeOnBackdropClick=(0,a.hFB)(!0),this.position=(0,a.hFB)(),this.spotlight=(0,a.hFB)(!1),this.popoverElementProvider=(0,l.WQX)(v,{host:!0,optional:!0}),this.elementRef=this.popoverElementProvider?this.popoverElementProvider.popoverAnchorElementRef:(0,l.WQX)(o.aKT),this.viewContainerRef=(0,l.WQX)(o.c1b),this.overlay=(0,l.WQX)(r.hJ),this.overlayRef=null,this.closedEventsSub=null,this.hasInitialized=(0,l.vPA)(!1),this.isDestroyed=!1,this.spotlightService=(0,l.WQX)(g),(0,o.mal)(()=>this.hasInitialized.set(!0)),(0,l.QZP)(()=>{this.isDestroyed||(this.popoverOpen()||!this.overlayRef?this.popoverOpen()&&!this.overlayRef&&this.hasInitialized()&&this.openPopover():this.disposeAll())})}openPopover(){if(this.overlayRef)return;this.spotlight()&&(this.spotlightService.register(this),this.spotlightService.showSpotlight(this.elementRef.nativeElement)),this.popoverOpen.set(!0),this.overlayRef=this.overlay.create(this.defaultPopoverConfig);const e=new s.VA(this.popover().templateRef(),this.viewContainerRef);this.overlayRef.attach(e),this.closedEventsSub=this.getClosedEvents().subscribe(e=>{e instanceof KeyboardEvent&&"Escape"===e.key&&!(0,n.rp)(e)&&e.preventDefault(),this.destroyPopover()})}getClosedEvents(){if(!this.overlayRef)throw new Error("Overlay reference is not available");const e=this.overlayRef.detachments(),t=this.overlayRef.keydownEvents().pipe((0,d.p)(e=>"Escape"===e.key&&!this.spotlight())),i=this.overlayRef.backdropClick().pipe((0,d.p)(()=>!this.spotlight()&&this.closeOnBackdropClick())),n=(0,c.yC)(this.popover().closed);return e.pipe((0,u.X)(t,i,n))}destroyPopover(){this.popoverOpen()&&(this.popoverOpen.set(!1),this.disposeAll())}disposeAll(){var e,t;null===(e=this.closedEventsSub)||void 0===e||e.unsubscribe(),this.closedEventsSub=null,null===(t=this.overlayRef)||void 0===t||t.dispose(),this.overlayRef=null,this.spotlight()&&(this.spotlightService.unregister(this),this.spotlightService.hideSpotlight())}ngOnDestroy(){this.isDestroyed=!0,this.disposeAll()}closePopover(){this.destroyPopover()}}m.ɵfac=function(e){return new(e||m)},m.ɵdir=o.FsC({type:m,selectors:[["","bitPopoverAnchorFor",""]],inputs:{popoverOpen:[1,"popoverOpen"],popover:[1,"bitPopoverAnchorFor","popover"],closeOnBackdropClick:[1,"closeOnBackdropClick"],position:[1,"position"],spotlight:[1,"spotlight"]},outputs:{popoverOpen:"popoverOpenChange"},exportAs:["popoverAnchor"]})},63581(e,t,i){"use strict";i.d(t,{k:()=>o});var n=i(11217),r=i(38411),s=i(14041);class o{constructor(){this.anchor=(0,n.WQX)(r.d)}get popoverOpen(){return this.anchor.popoverOpen}togglePopover(){this.anchor.popoverOpen()?this.anchor.closePopover():this.anchor.openPopover()}closePopover(){this.anchor.closePopover()}}o.ɵfac=function(e){return new(e||o)},o.ɵdir=s.FsC({type:o,selectors:[["","bitPopoverTriggerFor",""]],hostVars:1,hostBindings:function(e,t){1&e&&s.bIt("click",function(){return t.togglePopover()}),2&e&&s.BMQ("aria-expanded",t.anchor.popoverOpen())},exportAs:["popoverTrigger"],features:[s.nM4([{directive:r.d,inputs:["bitPopoverAnchorFor","bitPopoverTriggerFor","position","position","popoverOpen","popoverOpen"],outputs:["popoverOpenChange","popoverOpenChange"]}])]})},62044(e,t,i){"use strict";i.d(t,{r:()=>m});var n=i(70352),r=i(24590),s=i(14041),o=i(63477),a=i(36801),l=i(22191),c=i(75583);const d=[[["","slot","media"]]];class u{}u.ɵfac=function(e){return new(e||u)},u.ɵcmp=s.VBU({type:u,selectors:[["bit-popover-header"]],ngContentSelectors:["[slot=media]"],decls:3,vars:0,consts:[[1,"tw-p-2","tw-pb-0"],[1,"tw-overflow-hidden","tw-rounded-lg","[img]:tw-w-full"]],template:function(e,t){1&e&&(s.NAR(d),s.rj2(0,"div",0)(1,"div",1),s.SdG(2),s.eux()())},encapsulation:2,changeDetection:0});var h=i(11217),A=i(36288),p=i(58806);const g=[[["bit-popover-header"]],"*",[["bit-popover-footer"]]];function v(e,t){if(1&e){const e=s.RV6();s.j41(0,"section",0)(1,"div",1)(2,"div",2),s.SdG(3),s.j41(4,"div",3)(5,"div",4)(6,"button",5),s.nI1(7,"i18n"),s.bIt("click",function(){h.eBV(e);const t=s.XpG();return h.Njj(t.closed.emit())}),s.k0s()(),s.j41(8,"div",6)(9,"div",7)(10,"h2",8),s.EFF(11),s.k0s(),s.j41(12,"div",9),s.SdG(13,1),s.k0s()(),s.SdG(14,2),s.k0s()()()(),s.nrm(15,"div",10),s.k0s()}if(2&e){const e=s.XpG();s.BMQ("aria-label",e.title()),s.R7$(6),s.Y8G("buttonType",e.closeButtonType())("label",s.bMT(7,6,"close")),s.R7$(4),s.HbH(e.titleClasses()),s.R7$(),s.SpI(" ",e.title()," ")}}class m{constructor(){this.templateRef=r.ebz.required(s.C4Q),this.title=(0,r.hFB)(""),this.closed=(0,r.CGW)(),this.header=(0,r.sbv)(u),this.closeButtonType=(0,o.EW)(()=>this.header()?"secondary":"primaryGhost"),this.titleClasses=(0,o.EW)(()=>[this.header()?"":"tw-pe-7","tw-text-fg-heading","!tw-mb-0"].join(" "))}}m.ɵfac=function(e){return new(e||m)},m.ɵcmp=s.VBU({type:m,selectors:[["bit-popover"]],contentQueries:function(e,t,i){1&e&&s.C6U(i,t.header,u,5),2&e&&s.NyB()},viewQuery:function(e,t){1&e&&s.wEZ(t.templateRef,s.C4Q,5),2&e&&s.NyB()},inputs:{title:[1,"title"]},outputs:{closed:"closed"},exportAs:["popoverComponent"],ngContentSelectors:["bit-popover-header","*","bit-popover-footer"],decls:1,vars:0,consts:[["cdkTrapFocus","","cdkTrapFocusAutoCapture","","role","dialog","aria-modal","true",1,"tw-relative"],[1,"tw-overflow-hidden","tw-rounded-xl","tw-shadow-md","tw-border","tw-border-border-base"],[1,"tw-relative","tw-z-20","tw-max-w-[22.5rem]","tw-break-words","tw-bg-bg-primary","tw-text-fg-body"],[1,"tw-p-6"],[1,"tw-absolute","tw-top-3","tw-right-3"],["type","button","bitIconButton","bwi-close","size","small",3,"click","buttonType","label"],[1,"tw-flex","tw-flex-col","tw-gap-6"],[1,"tw-flex","tw-flex-col","tw-gap-3"],["bitTypography","h4"],["bitTypography","body2",1,"tw-text-fg-body"],[1,"bit-popover-arrow"]],template:function(e,t){1&e&&(s.NAR(g),s.DNE(0,v,16,8,"ng-template"))},dependencies:[n.Pd,n.kB,l.Q,A.s,c.E,p.r,a.$Z],encapsulation:2,changeDetection:0})},79783(e,t,i){"use strict";i.d(t,{k:()=>o});var n=i(62044),r=i(14041),s=i(11217);class o{}o.ɵfac=function(e){return new(e||o)},o.ɵmod=r.$C({type:o}),o.ɵinj=s.G2t({imports:[n.r]})},50060(e,t,i){"use strict";i.d(t,{a:()=>y});var n=i(46758),r=i(24590),s=i(11217),o=i(63477),a=i(50700),l=i(26411),c=i(75583),d=i(14041),u=i(58806),h=i(93199);const A=[[["","slot","label"]],[["","slot","end"]],[["","slot","start"]]];function p(e,t){if(1&e&&(d.j41(0,"span",7),d.EFF(1),d.k0s()),2&e){const e=d.XpG();d.R7$(),d.JRh(e.accessibleNameComputed())}}function g(e,t){if(1&e&&(d.j41(0,"bit-hint"),d.EFF(1),d.k0s()),2&e){const e=d.XpG(2);d.R7$(),d.JRh(e.defaultStartText())}}function v(e,t){1&e&&(d.j41(0,"div",5),d.SdG(1,2,null,g,2,1),d.k0s())}const m={primary:["tw-bg-primary-600"],subtle:["tw-bg-bg-contrast"],success:["tw-bg-success-600"],warning:["tw-bg-warning-600"],danger:["tw-bg-danger-600"]};let f=0;class y{constructor(){this.id=f++,this.hideStartHint=(0,r.hFB)(!1),this.variant=(0,r.hFB)("primary"),this.value=(0,r.hFB)(0),this.ariaValueText=(0,r.hFB)(),this.progressBarId=(0,r.hFB)(`bit-progress-bar-${this.id}`),this.accessibleName=(0,r.hFB)(),this.i18nService=(0,s.WQX)(a.W),this.labelId=`bit-progress-bar-label-${this.id}`,this.accessibleNameComputed=(0,o.EW)(()=>{var e;return null!==(e=this.accessibleName())&&void 0!==e?e:`${this.i18nService.t("progressBar")} ${this.id+1}`}),this.clampedValue=(0,o.EW)(()=>Math.max(0,Math.min(100,this.value()))),this.defaultStartText=(0,o.EW)(()=>this.i18nService.t("percentageCompleted",this.clampedValue().toString())),this.innerBarStyles=(0,o.EW)(()=>["tw-transition-all","tw-h-2","tw-rounded"].concat(m[this.variant()]))}}y.ɵfac=function(e){return new(e||y)},y.ɵcmp=d.VBU({type:y,selectors:[["bit-progress-bar"]],inputs:{hideStartHint:[1,"hideStartHint"],variant:[1,"variant"],value:[1,"value"],ariaValueText:[1,"ariaValueText"],progressBarId:[1,"progressBarId"],accessibleName:[1,"accessibleName"]},ngContentSelectors:["[slot='label']","[slot='end']","[slot='start']"],decls:10,vars:10,consts:[[1,"tw-flex","tw-flex-col"],["bitTypography","h5",1,"!tw-mb-0","has-[[slot='label']]:!tw-mb-1",3,"id"],[1,"tw-overflow-hidden","tw-rounded","tw-bg-secondary-100","tw-h-2","tw-my-1"],["role","progressbar","aria-valuemin","0","aria-valuemax","100",3,"id"],["bitTypography","body2",1,"tw-flex","tw-text-fg-body"],[1,"tw-me-auto"],[1,"tw-ms-auto"],[1,"tw-sr-only"]],template:function(e,t){1&e&&(d.NAR(A),d.j41(0,"div",0)(1,"div",1),d.SdG(2,0,null,p,2,1),d.k0s(),d.j41(4,"div",2),d.nrm(5,"div",3),d.k0s(),d.j41(6,"div",4),d.nVh(7,v,3,0,"div",5),d.j41(8,"div",6),d.SdG(9,1),d.k0s()()()),2&e&&(d.R7$(),d.Y8G("id",t.labelId),d.R7$(4),d.HbH(t.innerBarStyles()),d.xc7("width",t.clampedValue()+"%"),d.Y8G("id",t.progressBarId()),d.BMQ("aria-valuenow",t.clampedValue())("aria-valuetext",t.ariaValueText())("aria-labelledby",t.labelId),d.R7$(2),d.vxM(t.hideStartHint()?-1:7))},dependencies:[n.MD,c.E,u.r,l.L,h.I],encapsulation:2,changeDetection:0})},24374(e,t,i){"use strict";i.d(t,{d:()=>y});var n=i(11217),r=i(24590),s=i(42016),o=i(89033),a=i(63477),l=i(84210),c=i(15033),d=i(38867),u=i(14041);let h=0;class A{constructor(e){var t;this.ngControl=e,this.group=(0,n.WQX)(s.W,{optional:!0}),this.card=(0,n.WQX)(d.b,{optional:!0}),this.isGroupChecked=(0,a.EW)(()=>{var e,t;return null!==(t=null===(e=this.group)||void 0===e?void 0:e.selectedValues().includes(this.value()))&&void 0!==t&&t}),this.cardLabelledBy=(0,a.EW)(()=>{var e,t;return null!==(t=null===(e=this.card)||void 0===e?void 0:e.labelId)&&void 0!==t?t:null}),this.cardDescribedBy=(0,a.EW)(()=>this.card&&[this.card.effectiveErrorId,this.card.effectiveHintId()].filter(Boolean).join(" ")||null),this.id=(0,r.hFB)("bit-radio-input-"+h++),this.value=(0,r.hFB)(),this.inputClasses=["tw-appearance-none","tw-outline-none","tw-relative","tw-transition","tw-cursor-pointer","tw-inline-block","tw-w-6","tw-h-6","tw-rounded-full","tw-flex-none","hover:tw-bg-bg-hover","focus-visible:tw-bg-bg-hover","[&>label:hover]:tw-bg-bg-hover","disabled:hover:tw-bg-transparent","disabled:[&>label:hover]:!tw-bg-transparent","hover:before:tw-border-2","[&>label:hover]:before:tw-border-2","focus-visible:before:tw-border-2","[&>label:focus-visible]:before:tw-border-2","[&:not(bit-form-control_*,bit-form-control-card_*)]:focus-visible:before:tw-ring-2","[&:not(bit-form-control_*,bit-form-control-card_*)]:focus-visible:before:tw-ring-offset-2","[&:not(bit-form-control_*,bit-form-control-card_*)]:focus-visible:before:tw-ring-border-focus","tw-transition-colors","before:tw-content-['']","before:tw-block","before:tw-inset-1","before:tw-absolute","before:tw-size-4","before:tw-rounded-full","before:tw-border","before:tw-border-solid","before:tw-border-border-strong","before:tw-box-border","before:tw-bg-bg-tertiary","after:tw-content-['']","after:tw-block","after:tw-absolute","after:tw-inset-2","after:tw-size-2","after:tw-box-border","after:tw-rounded-full","disabled:tw-cursor-auto","disabled:tw-pointer-events-none","disabled:tw-bg-transparent","disabled:before:tw-bg-bg-inactive","disabled:before:tw-border-border-base","checked:hover:tw-bg-transparent","checked:focus-visible:tw-bg-transparent","checked:after:tw-bg-bg-brand","checked:before:tw-border-2","checked:before:tw-border-border-brand","checked:disabled:after:tw-bg-fg-inactive","checked:disabled:hover:before:tw-border-border-base"],this.disabledInput=(0,r.hFB)(!1,Object.assign(Object.assign({},{}),{transform:r.L39,alias:"disabled"})),null===(t=this.group)||void 0===t||t.registerRadioChild()}get groupName(){var e,t;return null!==(t=null===(e=this.group)||void 0===e?void 0:e.name)&&void 0!==t?t:null}onGroupChange(){this.group&&this.group.onItemChange(this.value())}onGroupBlur(){var e;null===(e=this.group)||void 0===e||e.onBlur()}get disabled(){var e,t;return this.disabledInput()||(null===(e=this.ngControl)||void 0===e?void 0:e.disabled)||(null===(t=this.group)||void 0===t?void 0:t.groupDisabled())||!1}get required(){var e,t,i;return null!==(i=null===(t=null===(e=this.ngControl)||void 0===e?void 0:e.control)||void 0===t?void 0:t.hasValidator(l.k0.requiredTrue))&&void 0!==i&&i}get hasError(){var e,t;return!("INVALID"!==(null===(e=this.ngControl)||void 0===e?void 0:e.status)||!(null===(t=this.ngControl)||void 0===t?void 0:t.touched))}get error(){var e,t;const i=null!==(t=null===(e=this.ngControl)||void 0===e?void 0:e.errors)&&void 0!==t?t:{},n=Object.keys(i)[0];return[n,i[n]]}get inputId(){return this.id()}}A.ɵfac=function(e){return new(e||A)(u.rXU(l.vO,10))},A.ɵcmp=u.VBU({type:A,selectors:[["input","type","radio","bitRadio",""]],hostVars:8,hostBindings:function(e,t){1&e&&u.bIt("change",function(){return t.onGroupChange()})("blur",function(){return t.onGroupBlur()}),2&e&&(u.Avn("id",t.id())("checked",t.isGroupChecked())("disabled",t.disabled),u.BMQ("name",t.groupName)("aria-labelledby",t.cardLabelledBy())("aria-describedby",t.cardDescribedBy()),u.HbH(t.inputClasses))},inputs:{id:[1,"id"],value:[1,"value"],disabledInput:[1,"disabled","disabledInput"]},features:[u.Jv_([{provide:c.J,useExisting:A}])],attrs:["type","radio","bitRadio",""],decls:0,vars:0,template:function(e,t){},encapsulation:2});var p=i(90246);const g=[[["bit-label"]],[["bit-hint"]]],v=["ngProjectAs","bit-label",5,["bit-label"]],m=["ngProjectAs","bit-hint",5,["bit-hint"]];let f=0;class y{constructor(){this.group=(0,n.WQX)(s.W,{optional:!0}),this.id=(0,r.hFB)("bit-radio-button-"+f++),this.value=(0,r.hFB)(),this.disabled=(0,r.hFB)(!1,Object.assign(Object.assign({},{}),{transform:r.L39}))}get block(){var e,t;return null!==(t=null===(e=this.group)||void 0===e?void 0:e.block())&&void 0!==t&&t}get selected(){var e,t;return null!==(t=null===(e=this.group)||void 0===e?void 0:e.selectedValues().includes(this.value()))&&void 0!==t&&t}get inputId(){return`${this.id()}-input`}}y.ɵfac=function(e){return new(e||y)},y.ɵcmp=u.VBU({type:y,selectors:[["bit-radio-button"]],hostAttrs:[1,"[&_bit-hint]:tw-mt-0"],hostVars:5,hostBindings:function(e,t){2&e&&(u.Avn("id",t.id()),u.AVh("tw-block",t.block)("tw-inline-block",!t.block))},inputs:{id:[1,"id"],value:[1,"value"],disabled:[1,"disabled"]},ngContentSelectors:["bit-label","bit-hint"],decls:4,vars:4,consts:[["disableMargin","",3,"inline"],["type","radio","bitRadio","",3,"id","value","disabled"]],template:function(e,t){1&e&&(u.NAR(g),u.j41(0,"bit-form-control",0),u.nrm(1,"input",1),u.SdG(2,0,v),u.SdG(3,1,m),u.k0s()),2&e&&(u.Y8G("inline",!t.block),u.R7$(),u.Y8G("id",t.inputId)("value",t.value())("disabled",t.disabled()))},dependencies:[o.c,p.f,A],encapsulation:2})},8297(e,t,i){"use strict";i.d(t,{K:()=>a});var n=i(89033),r=i(24374),s=i(14041),o=i(11217);class a{}a.ɵfac=function(e){return new(e||a)},a.ɵmod=s.$C({type:a}),a.ɵinj=o.G2t({imports:[n.c,r.d,n.c]})},5520(e,t,i){"use strict";i.d(t,{S:()=>g});var n=i(11217),r=i(24590),s=i(84210);i(37798);var o=i(36801),a=i(25653),l=i(58384),c=i(36288),d=i(70171),u=i(14041);const h=["input"];function A(e,t){if(1&e){const e=u.RV6();u.j41(0,"button",6),u.nI1(1,"i18n"),u.bIt("click",function(){n.eBV(e);const t=u.XpG();return n.Njj(t.clearSearch())}),u.k0s()}2&e&&u.Y8G("label",u.bMT(1,1,"resetSearch"))}let p=0;class g{constructor(){this.notifyOnChange=(0,n.vPA)(void 0),this.notifyOnTouch=(0,n.vPA)(void 0),this.input=(0,r.ebz)("input"),this.id="search-id-"+p++,this.searchText=(0,n.vPA)(void 0),this.inputType=-1!==navigator.userAgent.indexOf(" Safari/")&&-1===navigator.userAgent.indexOf(" Chrome/")&&-1===navigator.userAgent.indexOf(" Chromium/")?"text":"search",this.disabled=(0,r.geq)(),this.placeholder=(0,r.hFB)(),this.autocomplete=(0,r.hFB)(),this.size=(0,r.hFB)("base")}getFocusTarget(){var e;return null===(e=this.input())||void 0===e?void 0:e.nativeElement}onChange(e){var t;this.searchText.set(e),null===(t=this.notifyOnChange())||void 0===t||t(e)}clearSearch(){var e,t;this.searchText.set(""),null===(e=this.notifyOnChange())||void 0===e||e(""),null===(t=this.input())||void 0===t||t.nativeElement.focus()}onTouch(){var e;null===(e=this.notifyOnTouch())||void 0===e||e()}registerOnChange(e){this.notifyOnChange.set(e)}registerOnTouched(e){this.notifyOnTouch.set(e)}writeValue(e){this.searchText.set(e)}setDisabledState(e){this.disabled.set(e)}}g.ɵfac=function(e){return new(e||g)},g.ɵcmp=u.VBU({type:g,selectors:[["bit-search"]],viewQuery:function(e,t){1&e&&u.wEZ(t.input,h,5),2&e&&u.NyB()},inputs:{disabled:[1,"disabled"],placeholder:[1,"placeholder"],autocomplete:[1,"autocomplete"],size:[1,"size"]},outputs:{disabled:"disabledChange"},features:[u.Jv_([{provide:s.kq,multi:!0,useExisting:g},{provide:d.H,useExisting:g}])],decls:9,vars:14,consts:[["input",""],["bitFieldContainer","","role","search",1,"tw-relative","tw-items-center","tw-w-full","[&_input]:tw-h-full","tw-ps-3","tw-pe-1",3,"size"],[1,"tw-sr-only",3,"for"],["name","bwi-search"],["name","searchText",1,"tw-block","tw-size-full","tw-bg-transparent","tw-text-fg-heading","tw-placeholder-fg-body-subtle","tw-border-none","focus:tw-outline-none","[&:disabled]:tw-bg-bg-inactive","[&:disabled]:!tw-placeholder-fg-inactive","[&:disabled]:!tw-text-fg-inactive","tw-ps-2","tw-pe-1",3,"ngModelChange","blur","type","id","placeholder","ngModel","disabled"],["bitSuffix","","bitIconButton","bwi-clear","size","small","type","reset",3,"label"],["bitSuffix","","bitIconButton","bwi-clear","size","small","type","reset",3,"click","label"]],template:function(e,t){var i;1&e&&(u.j41(0,"form",1)(1,"label",2),u.EFF(2),u.nI1(3,"i18n"),u.k0s(),u.nrm(4,"bit-icon",3),u.j41(5,"input",4,0),u.nI1(7,"i18n"),u.bIt("ngModelChange",function(e){return t.onChange(e)})("blur",function(){return t.onTouch()}),u.k0s(),u.nVh(8,A,2,3,"button",5),u.k0s()),2&e&&(u.Y8G("size",t.size()),u.R7$(),u.Y8G("for",t.id),u.R7$(),u.JRh(u.bMT(3,10,"search")),u.R7$(3),u.Y8G("type",t.inputType)("id",t.id)("placeholder",null!==(i=t.placeholder())&&void 0!==i?i:u.bMT(7,12,"search"))("ngModel",t.searchText())("disabled",t.disabled()),u.BMQ("autocomplete",t.autocomplete()),u.R7$(3),u.vxM(t.searchText()?8:-1))},dependencies:[l.R,a.i,s.X1,s.qT,s.me,s.BC,s.cb,s.YN,s.vS,s.cV,c.s,o.$Z],encapsulation:2,changeDetection:0})},60893(e,t,i){"use strict";i.d(t,{t:()=>o});var n=i(5520),r=i(14041),s=i(11217);class o{}o.ɵfac=function(e){return new(e||o)},o.ɵmod=r.$C({type:o}),o.ɵinj=s.G2t({imports:[n.S]})},58950(e,t,i){"use strict";i.d(t,{U:()=>o});var n=i(75583),r=i(14041);const s=["*",[["","slot","end"]]];class o{}o.ɵfac=function(e){return new(e||o)},o.ɵcmp=r.VBU({type:o,selectors:[["bit-section-header"]],hostAttrs:[1,"tw-block","has-[+_*_bit-card]:tw-pb-1","has-[+_bit-card]:tw-pb-1","has-[+_*_bit-item]:tw-pb-1","has-[+_bit-item]:tw-pb-1","has-[+_*_bit-card]:tw-px-1","has-[+_bit-card]:tw-px-1","has-[+_*_bit-item]:tw-px-1","has-[+_bit-item]:tw-px-1"],ngContentSelectors:["*","[slot=end]"],decls:5,vars:0,consts:[[1,"tw-flex","tw-justify-between","tw-items-end","tw-gap-1"],[1,"[&>*]:tw-mb-0","[&>*]:tw-text-main","tw-flex","tw-items-center","tw-gap-1"],[1,"tw-text-muted","-tw-mb-0.5"]],template:function(e,t){1&e&&(r.NAR(s),r.rj2(0,"div",0)(1,"div",1),r.SdG(2),r.eux(),r.rj2(3,"div",2),r.SdG(4,1),r.eux()())},dependencies:[n.E],encapsulation:2})},88832(e,t,i){"use strict";i.d(t,{n:()=>l});var n=i(14340),r=i(46758),s=i(24590),o=i(14041);const a=e=>({"tw-mb-5 bit-compact:tw-mb-4 [&:not(bit-dialog_*):not(popup-page_*)]:md:tw-mb-12":e});class l{constructor(){this.disableMargin=(0,s.hFB)(!1,Object.assign(Object.assign({},{}),{transform:n.he}))}}l.ɵfac=function(e){return new(e||l)},l.ɵcmp=o.VBU({type:l,selectors:[["bit-section"]],inputs:{disableMargin:[1,"disableMargin"]},ngContentSelectors:["*"],decls:2,vars:3,consts:[[3,"ngClass"]],template:function(e,t){1&e&&(o.NAR(),o.j41(0,"section",0),o.SdG(1),o.k0s()),2&e&&o.Y8G("ngClass",o.eq3(1,a,!t.disableMargin()))},dependencies:[r.MD,r.YU],encapsulation:2})},68923(e,t,i){"use strict";i.d(t,{P:()=>o});var n=i(24590),r=i(14041);function s(e,t){1&e&&r.SdG(0)}class o{constructor(){this.icon=(0,n.hFB)(),this.value=n.hFB.required(),this.label=n.hFB.required(),this.description=(0,n.hFB)(),this.disabled=(0,n.hFB)(void 0,Object.assign(Object.assign({},{}),{transform:n.L39}))}}o.ɵfac=function(e){return new(e||o)},o.ɵcmp=r.VBU({type:o,selectors:[["bit-option"]],inputs:{icon:[1,"icon"],value:[1,"value"],label:[1,"label"],description:[1,"description"],disabled:[1,"disabled"]},ngContentSelectors:["*"],decls:1,vars:0,template:function(e,t){1&e&&(r.NAR(),r.PeT(0,s,1,0,"ng-template"))},encapsulation:2})},33886(e,t,i){"use strict";i.d(t,{w:()=>y});var n=i(97173),r=i(24590),s=i(11217),o=i(63477),a=i(84210),l=i(26885),c=i(50700),d=i(92010),u=i(58384),h=i(58806),A=i(68923),p=i(14041);function g(e,t){if(1&e&&p.nrm(0,"bit-icon",5),2&e){const e=p.XpG().item;p.Y8G("name",e.icon)}}function v(e,t){if(1&e&&(p.j41(0,"div",8),p.EFF(1),p.k0s()),2&e){const e=p.XpG().item;p.R7$(),p.SpI(" ",e.description," ")}}function m(e,t){if(1&e&&(p.j41(0,"div",9),p.EFF(1),p.k0s()),2&e){const e=p.XpG().item;p.R7$(),p.SpI(" ",e.metaData," ")}}function f(e,t){if(1&e&&(p.j41(0,"div",2)(1,"div",3)(2,"div",4),p.nVh(3,g,1,1,"bit-icon",5),p.k0s(),p.j41(4,"div",6)(5,"div",7),p.EFF(6),p.k0s(),p.nVh(7,v,2,1,"div",8),p.k0s()(),p.nVh(8,m,2,1,"div",9),p.k0s()),2&e){const e=t.item;p.Y8G("title",e.label),p.R7$(3),p.vxM(null!=e.icon?3:-1),p.R7$(3),p.SpI(" ",e.label," "),p.R7$(),p.vxM(e.description?7:-1),p.R7$(),p.vxM(e.metaData?8:-1)}}class y{constructor(){this.i18nService=(0,s.WQX)(c.W),this.ngControl=(0,s.WQX)(a.vO,{optional:!0,self:!0}),this.formFieldControl=(0,s.WQX)(d.y),this.labelForId=this.formFieldControl.labelForId,this.select=r.ebz.required(l.vr),this.items=(0,r.geq)(),this.placeholder=(0,r.hFB)(this.i18nService.t("selectPlaceholder")),this.closed=(0,r.CGW)(),this.selectedValue=(0,s.vPA)(void 0),this.selectedOption=(0,o.EW)(()=>this.findSelectedOption(this.items(),this.selectedValue())),this.searchInputId=(0,o.EW)(()=>`${this.formFieldControl.id()}-search`),this.options=(0,r.tEk)(A.P),this.onKeyDown=e=>(this.select().isOpen()&&"Escape"===e.key&&!(0,n.rp)(e)&&e.stopPropagation(),!0),null!=this.ngControl&&(this.ngControl.valueAccessor=this),(0,s.QZP)(()=>this.formFieldControl.labelForId.set(this.searchInputId())),(0,s.QZP)(()=>{var e,t;null===(e=this.select())||void 0===e||e.searchInput().nativeElement.setAttribute("aria-describedby",null!==(t=this.formFieldControl.ariaDescribedBy())&&void 0!==t?t:"")}),(0,r.uEv)({read:()=>{const e=this.options();0!==e.length&&this.items.set(e.map(e=>({icon:e.icon(),value:e.value(),label:e.label(),description:e.description(),disabled:e.disabled()})))}})}get disabledAttr(){return this.disabled||null}get disabled(){var e,t,i;return null!==(i=null!==(e=this._disabled)&&void 0!==e?e:null===(t=this.ngControl)||void 0===t?void 0:t.disabled)&&void 0!==i&&i}set disabled(e){this._disabled=null!=e&&!1!==e}writeValue(e){this.selectedValue.set(e)}registerOnChange(e){this.notifyOnChange=e}registerOnTouched(e){this.notifyOnTouched=e}setDisabledState(e){this.disabled=e}onChange(e){this.selectedValue.set(null==e?void 0:e.value),this.notifyOnChange&&this.notifyOnChange(null==e?void 0:e.value)}onBlur(){this.notifyOnTouched&&this.notifyOnTouched()}findSelectedOption(e,t){return null==e?void 0:e.find(e=>e.value===t)}onClose(){this.closed.emit()}}y.ɵfac=function(e){return new(e||y)},y.ɵcmp=p.VBU({type:y,selectors:[["bit-select"]],contentQueries:function(e,t,i){1&e&&p.C6U(i,t.options,A.P,4),2&e&&p.NyB()},viewQuery:function(e,t){1&e&&p.wEZ(t.select,l.vr,5),2&e&&p.NyB()},hostAttrs:[1,"tw-block","tw-w-full","tw-h-full"],hostVars:3,hostBindings:function(e,t){2&e&&(p.Avn("id",t.formFieldControl.id()),p.BMQ("required",t.formFieldControl.required()||null)("disabled",t.disabledAttr))},inputs:{items:[1,"items"],placeholder:[1,"placeholder"],disabled:"disabled"},outputs:{items:"itemsChange",closed:"closed"},features:[p.nM4([{directive:d.y,inputs:["required","required","id","id"]}])],decls:2,vars:8,consts:[["appendTo","body","outsideClickEvent","mousedown",3,"ngModelChange","blur","close","ngModel","disabled","placeholder","items","labelForId","clearable","keyDownFn"],["ng-option-tmp",""],[1,"tw-flex","tw-justify-between","tw-items-center",3,"title"],[1,"tw-flex","tw-gap-2","tw-flex-1","tw-min-w-0"],[1,"tw-flex-initial","tw-self-center"],["fixedWidth","",3,"name"],[1,"tw-flex","tw-flex-col","tw-min-w-0"],["bitTypography","body2",1,"tw-leading-5","tw-flex-1","tw-text-ellipsis","tw-overflow-hidden"],["bitTypography","helper",1,"tw-text-fg-body","tw-font-normal","tw-truncate"],["bitTypography","helper"]],template:function(e,t){var i;if(1&e&&(p.j41(0,"ng-select",0),p.bIt("ngModelChange",function(e){return t.onChange(e)})("blur",function(){return t.onBlur()})("close",function(){return t.onClose()}),p.DNE(1,f,9,5,"ng-template",1),p.k0s()),2&e){let e;p.Y8G("ngModel",t.selectedOption())("disabled",t.disabled)("placeholder",t.placeholder())("items",t.items())("labelForId",t.searchInputId())("clearable",!1)("keyDownFn",t.onKeyDown),p.BMQ("aria-label",null!==(i=null==(e=t.selectedOption())?null:e.label)&&void 0!==i?i:t.placeholder())}},dependencies:[l.MQ,l.vr,l.Uq,a.X1,a.BC,a.YN,a.vS,h.r,u.R],encapsulation:2})},8433(e,t,i){"use strict";i.d(t,{p:()=>o});var n=i(33886),r=i(14041),s=i(11217);class o{}o.ɵfac=function(e){return new(e||o)},o.ɵmod=r.$C({type:o}),o.ɵinj=s.G2t({imports:[n.w]})},43749(e,t,i){"use strict";i.d(t,{$H:()=>d});var n=i(24590),r=i(63477),s=i(92128),o=i(64608),a=i(86066),l=i(14041);const c=["focus-visible:tw-ring-2","focus-visible:tw-ring-offset-1","focus-visible:tw-ring-border-focus","focus-visible:!tw-border-transparent","focus-visible:tw-z-10"];class d{constructor(){this.buttonType=(0,n.geq)("secondary"),this.block=(0,n.hFB)(!1,Object.assign(Object.assign({},{}),{transform:n.L39})),this.loading=(0,n.geq)(!1),this.disabled=(0,n.geq)(!1),this.disabledAttr=(0,r.EW)(()=>null!=this.disabled()&&!1!==this.disabled()||this.loading()),this.showLoadingStyle=(0,s.ot)((0,s.br)(this.loading).pipe((0,a.s)(e=>(0,o.Y)(e?75:0)))),this.colorClassList=(0,r.EW)(()=>(({buttonType:e,isDisabled:t})=>{const i=(e||"secondary").toLowerCase(),n={primary:["tw-border-border-brand","tw-bg-bg-brand","hover:tw-bg-bg-brand-strong","hover:tw-border-border-brand-strong","aria-expanded:tw-bg-bg-brand-strong","aria-expanded:tw-border-border-brand-strong","focus-visible:tw-bg-bg-brand-strong","focus-visible:tw-border-border-brand-strong"],primaryOutline:["tw-border-border-brand","tw-text-fg-brand","hover:tw-border-border-brand-strong","hover:tw-text-fg-brand-strong","aria-expanded:tw-border-border-brand-strong","aria-expanded:tw-text-fg-brand-strong","focus-visible:tw-text-fg-brand-strong"],primaryGhost:["tw-text-fg-heading","hover:tw-text-fg-brand","aria-expanded:tw-text-fg-brand","focus-visible:tw-text-fg-brand"],secondary:["tw-bg-bg-secondary","tw-border-border-base","tw-text-fg-heading","hover:tw-bg-bg-quaternary","hover:tw-text-fg-brand-strong","aria-expanded:tw-bg-bg-quaternary","aria-expanded:tw-text-fg-brand-strong","focus-visible:tw-text-fg-brand-strong","focus-visible:tw-bg-bg-quaternary"],subtle:["tw-border-border-contrast","tw-bg-bg-contrast","hover:tw-bg-bg-contrast-strong","hover:tw-border-border-contrast-strong","aria-expanded:tw-bg-bg-contrast-strong","aria-expanded:tw-border-border-contrast-strong","focus-visible:tw-border-border-contrast-strong","focus-visible:tw-bg-bg-contrast-strong"],subtleOutline:["tw-border-border-contrast","tw-text-fg-heading","hover:tw-border-border-contrast-strong","hover:tw-text-fg-heading","aria-expanded:tw-border-border-contrast-strong","aria-expanded:tw-text-fg-heading","focus-visible:tw-text-fg-heading"],subtleGhost:["tw-text-fg-heading","hover:tw-text-fg-heading","aria-expanded:tw-text-fg-heading","focus-visible:tw-text-fg-heading"],danger:["tw-bg-bg-danger","tw-border-border-danger","hover:tw-bg-bg-danger-strong","hover:tw-border-border-danger-strong","hover:tw-text-fg-contrast","aria-expanded:tw-bg-bg-danger-strong","aria-expanded:tw-border-border-danger-strong","aria-expanded:tw-text-fg-contrast","focus-visible:tw-border-border-danger-strong","focus-visible:tw-text-fg-contrast","focus-visible:tw-bg-bg-danger-strong"],dangerOutline:["tw-border-border-danger","tw-text-fg-danger","hover:tw-border-border-danger-strong","hover:!tw-text-fg-danger-strong","aria-expanded:tw-border-border-danger-strong","aria-expanded:!tw-text-fg-danger-strong","focus-visible:!tw-text-fg-danger-strong"],dangerGhost:["tw-text-fg-danger","hover:tw-text-fg-danger","aria-expanded:tw-text-fg-danger","focus-visible:tw-text-fg-danger"],warning:["tw-bg-bg-warning","tw-border-border-warning","hover:tw-bg-bg-warning-strong","hover:tw-border-border-warning-strong","aria-expanded:tw-bg-bg-warning-strong","aria-expanded:tw-border-border-warning-strong","focus-visible:tw-bg-bg-warning-strong","focus-visible:tw-border-border-warning-strong"],warningOutline:["tw-border-border-warning","tw-text-fg-warning","hover:tw-border-border-warning-strong","hover:!tw-text-fg-warning-strong","aria-expanded:tw-border-border-warning-strong","aria-expanded:!tw-text-fg-warning-strong","focus-visible:!tw-text-fg-warning-strong"],warningGhost:["tw-text-fg-warning","hover:tw-text-fg-warning-strong","aria-expanded:tw-text-fg-warning-strong","focus-visible:tw-text-fg-warning-strong"],success:["tw-bg-bg-success","tw-border-border-success","hover:tw-bg-bg-success-strong","hover:tw-border-border-success-strong","aria-expanded:tw-bg-bg-success-strong","aria-expanded:tw-border-border-success-strong","focus-visible:tw-bg-bg-success-strong","focus-visible:tw-border-border-success-strong"],successOutline:["tw-border-border-success","tw-text-fg-success","hover:tw-border-border-success-strong","hover:tw-text-fg-success-strong","aria-expanded:tw-border-border-success-strong","aria-expanded:tw-text-fg-success-strong","focus-visible:tw-text-fg-success-strong"],successGhost:["tw-text-fg-success","hover:tw-text-fg-success-strong","aria-expanded:tw-text-fg-success-strong","focus-visible:tw-text-fg-success-strong"],contrast:["tw-text-fg-heading","tw-bg-bg-primary","tw-border-bg-primary","hover:tw-bg-bg-quaternary","hover:tw-text-fg-heading","hover:tw-border-bg-quaternary","aria-expanded:tw-bg-bg-quaternary","aria-expanded:tw-text-fg-heading","aria-expanded:tw-border-bg-quaternary","focus-visible:tw-text-fg-heading","focus-visible:tw-bg-bg-quaternary"],contrastOutline:["tw-border-border-contrast","tw-text-fg-contrast","hover:tw-border-border-contrast-strong","hover:tw-text-fg-contrast-strong","hover:tw-bg-bg-hover-contrast","aria-expanded:tw-border-border-contrast-strong","aria-expanded:tw-text-fg-contrast-strong","aria-expanded:tw-bg-bg-hover-contrast","focus-visible:tw-text-fg-contrast-strong","focus-visible:tw-bg-bg-hover-contrast"],contrastGhost:["tw-text-fg-contrast","hover:tw-text-fg-contrast-strong","hover:tw-bg-bg-hover-contrast","hover:tw-border-bg-hover-contrast","aria-expanded:tw-text-fg-contrast-strong","aria-expanded:tw-bg-bg-hover-contrast","aria-expanded:tw-border-bg-hover-contrast","focus-visible:tw-text-fg-contrast-strong","focus-visible:tw-bg-bg-hover-contrast","focus-visible:tw-border-bg-hover-contrast"],"side-nav":["!tw-text-fg-nav","tw-border-transparent","tw-bg-transparent","hover:tw-text-fg-nav","hover:tw-bg-bg-nav-hover","aria-expanded:!tw-text-fg-nav","aria-expanded:tw-bg-transparent","focus-visible:!tw-ring-fg-nav","focus-visible:!tw-ring-offset-bg-nav","focus-visible:!tw-text-fg-nav","focus-visible:tw-bg-bg-nav-hover","focus-visible:tw-border-transparent"],unstyled:[]},r=["tw-font-medium","tw-outline-none","tw-transition","tw-border","tw-border-solid","tw-text-center","tw-no-underline","hover:tw-no-underline","focus-visible:tw-outline-none",...c],s=["aria-disabled:!tw-text-fg-inactive","hover:!tw-text-fg-inactive","aria-disabled:tw-cursor-default","hover:tw-no-underline"],o=i.includes("outline"),a=i.includes("ghost"),l="secondary"===i,d="unstyled"===i,u=!o&&!a&&!d,h=i.includes("contrast");return t&&(a?r.push(...s,"aria-disabled:!tw-bg-transparent","hover:tw-bg-transparent","hover:tw-border-transparent"):r.push(...s,"aria-disabled:!tw-bg-bg-inactive","hover:tw-bg-bg-hover","aria-disabled:tw-border-border-base","aria-disabled:hover:tw-border-border-base","hover:tw-border-border-base")),(o||a)&&r.push("tw-bg-transparent","tw-bg-clip-padding","hover:tw-bg-bg-hover","aria-expanded:tw-bg-bg-hover","focus-visible:tw-bg-bg-hover"),u&&!l&&r.push("tw-text-fg-contrast","hover:tw-text-fg-contrast","aria-expanded:tw-text-fg-contrast"),a&&r.push("tw-border-transparent","hover:tw-border-bg-hover","aria-expanded:tw-border-bg-hover","focus-visible:tw-border-bg-hover"),d&&r.push("tw-text-current"),h&&r.push("focus-visible:!tw-ring-border-focus-contrast"),[...r,...n[e]||n.secondary]})({buttonType:this.buttonType()||"secondary",isDisabled:this.showLoadingStyle()||this.disabledAttr()}).join(" "))}}d.ɵfac=function(e){return new(e||d)},d.ɵdir=l.FsC({type:d,hostVars:2,hostBindings:function(e,t){2&e&&l.HbH(t.colorClassList())},inputs:{buttonType:[1,"buttonType"],block:[1,"block"],loading:[1,"loading"],disabled:[1,"disabled"]},outputs:{buttonType:"buttonTypeChange",loading:"loadingChange",disabled:"disabledChange"}})},53100(e,t,i){"use strict";i.d(t,{E:()=>n});class n{}},70171(e,t,i){"use strict";i.d(t,{H:()=>n});class n{}},9396(e,t,i){"use strict";i.d(t,{T:()=>n});const n=()=>"undefined"!=typeof document&&parseFloat(getComputedStyle(document.documentElement).fontSize)||16},83632(e,t,i){"use strict";i.d(t,{t:()=>u});var n=i(24590),r=i(11217),s=i(63477),o=i(50700),a=i(14041);function l(e,t){if(1&e&&(a.rj2(0,"span",3),a.EFF(1),a.eux()),2&e){const e=a.XpG();a.R7$(),a.JRh(e.title())}}const c={sm:["tw-size-4"],md:["tw-size-6"],base:["tw-size-14"],lg:["tw-size-20"]},d={primary:{foreground:"tw-stroke-bg-brand",background:"tw-stroke-bg-quaternary"},subtle:{foreground:"tw-stroke-bg-contrast",background:"tw-stroke-bg-quaternary"},success:{foreground:"tw-stroke-bg-success",background:"tw-stroke-bg-quaternary"},warning:{foreground:"tw-stroke-bg-warning",background:"tw-stroke-bg-quaternary"},danger:{foreground:"tw-stroke-bg-danger",background:"tw-stroke-bg-quaternary"},contrast:{foreground:"tw-stroke-bg-primary",background:"tw-stroke-bg-contrast-soft"}};class u{constructor(){this.i18nService=(0,r.WQX)(o.W),this.variant=(0,n.hFB)("primary"),this.size=(0,n.hFB)("base"),this.title=(0,n.hFB)(this.i18nService.t("loading")),this.variantClasses=(0,s.EW)(()=>d[this.variant()]),this.sizeClasses=(0,s.EW)(()=>c[this.size()])}}u.ɵfac=function(e){return new(e||u)},u.ɵcmp=a.VBU({type:u,selectors:[["bit-spinner"]],hostAttrs:[1,"tw-inline-block"],inputs:{variant:[1,"variant"],size:[1,"size"],title:[1,"title"]},decls:5,vars:7,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 56 56","fill","none","aria-hidden","true",1,"tw-size-full","tw-animate-spin","tw-flex"],["cx","28","cy","28","r","23","stroke-width","5"],["cx","28","cy","28","r","23","pathLength","4","stroke-width","5","stroke-dasharray","1 3","stroke-linecap","round"],[1,"tw-sr-only"]],template:function(e,t){1&e&&(a.rj2(0,"div"),r.qSk(),a.rj2(1,"svg",0),a.Hgh(2,"circle",1)(3,"circle",2),a.eux(),a.nVh(4,l,2,1,"span",3),a.eux()),2&e&&(a.HbH(t.sizeClasses()),a.R7$(2),a.HbH(t.variantClasses().background),a.R7$(),a.HbH(t.variantClasses().foreground),a.R7$(),a.vxM(t.title()?4:-1))},encapsulation:2,changeDetection:0})},8168(e,t,i){"use strict";i.d(t,{k:()=>c});var n=i(24590),r=i(11217),s=i(63477),o=i(19438),a=i(82392),l=i(14041);class c{constructor(){this.domSanitizer=(0,r.WQX)(o.up),this.content=(0,n.hFB)(),this.ariaLabel=(0,n.hFB)(),this.innerHtml=(0,s.EW)(()=>{const e=this.content();if(!(0,a.Ye)(e))return null;const t=e.svg;return this.domSanitizer.bypassSecurityTrustHtml(t)})}}c.ɵfac=function(e){return new(e||c)},c.ɵcmp=l.VBU({type:c,selectors:[["bit-svg"]],hostAttrs:[1,"tw-max-h-full","tw-flex","tw-justify-center"],hostVars:4,hostBindings:function(e,t){2&e&&(l.Avn("innerHTML",t.innerHtml(),l.npT),l.BMQ("aria-hidden",!t.ariaLabel())("aria-label",t.ariaLabel())("role",t.ariaLabel()?"img":"presentation"))},inputs:{content:[1,"content"],ariaLabel:[1,"ariaLabel"]},decls:0,vars:0,template:function(e,t){},encapsulation:2,changeDetection:0})},45383(e,t,i){"use strict";i.d(t,{Z:()=>s});var n=i(14041),r=i(11217);class s{}s.ɵfac=function(e){return new(e||s)},s.ɵmod=n.$C({type:s}),s.ɵinj=r.G2t({})},38410(e,t,i){"use strict";i.d(t,{Q:()=>r});var n=i(14041);class r{get classList(){return["tw-p-3","has-[[biticonbutton]]:tw-py-1"]}}r.ɵfac=function(e){return new(e||r)},r.ɵdir=n.FsC({type:r,selectors:[["th","bitCell",""],["td","bitCell",""]],hostVars:2,hostBindings:function(e,t){2&e&&n.HbH(t.classList)}})},22466(e,t,i){"use strict";i.d(t,{Y:()=>s});var n=i(24590),r=i(14041);class s{constructor(){this.alignContent=(0,n.hFB)("middle")}get alignmentClass(){switch(this.alignContent()){case"top":return"tw-align-top";case"middle":return"tw-align-middle";case"bottom":return"tw-align-bottom";default:return"tw-align-baseline"}}get classList(){return["tw-border-0","tw-border-b","tw-border-border-base","tw-border-solid","has-[input[type=checkbox]:hover]:tw-bg-bg-brand-softer","has-[input[type=checkbox]:focus-visible]:tw-bg-bg-brand-softer","has-[input[type=checkbox]:checked]:tw-bg-bg-brand-soft","last:tw-border-0","tw-transition-colors",this.alignmentClass]}}s.ɵfac=function(e){return new(e||s)},s.ɵdir=r.FsC({type:s,selectors:[["tr","bitRow",""]],hostVars:2,hostBindings:function(e,t){2&e&&r.HbH(t.classList)},inputs:{alignContent:[1,"alignContent"]}})},32316(e,t,i){"use strict";i.d(t,{O:()=>l});var n=i(14340),r=i(46758),s=i(24590),o=i(14041),a=i(36572);class l{constructor(e){this.table=e,this.bitSortable=s.hFB.required(),this.default=(0,s.hFB)(!1,Object.assign(Object.assign({},{}),{transform:e=>"desc"===e||"asc"===e?e:!!(0,n.he)(e)&&"asc"})),this.fn=(0,s.hFB)()}ngOnInit(){this.default()&&!this.isActive&&this.setActive()}get ariaSort(){var e;if(this.isActive)return"asc"===(null===(e=this.sort)||void 0===e?void 0:e.direction)?"ascending":"descending"}setActive(){const e=this.table.dataSource();if(e){const t="desc"===this.default()?"desc":"asc",i=this.isActive?"asc"===this.direction?"desc":"asc":t;e.sort={column:this.bitSortable(),direction:i,fn:this.fn()}}}get sort(){var e;return null===(e=this.table.dataSource())||void 0===e?void 0:e.sort}get isActive(){var e;return(null===(e=this.sort)||void 0===e?void 0:e.column)===this.bitSortable()}get direction(){var e;return null===(e=this.sort)||void 0===e?void 0:e.direction}get icon(){return this.isActive?"asc"===this.direction?"bwi-up-solid":"bwi-down-solid":"bwi-up-down-btn"}get classList(){return["tw-min-w-max","tw-font-medium","tw-border","tw-border-solid","tw-rounded","tw-transition","hover:tw-no-underline","focus:tw-outline-none","tw-bg-transparent","!tw-text-muted","tw-border-transparent","hover:tw-bg-transparent-hover","hover:tw-border-primary-700","focus-visible:before:tw-ring-primary-700","disabled:tw-opacity-60","disabled:hover:tw-border-transparent","disabled:hover:tw-bg-transparent","tw-relative","before:tw-content-['']","before:tw-block","before:tw-absolute","before:-tw-inset-[3px]","before:tw-rounded-md","before:tw-transition","before:tw-ring","before:tw-ring-transparent","focus-visible:tw-z-10"]}}l.ɵfac=function(e){return new(e||l)(o.rXU(a.O))},l.ɵcmp=o.VBU({type:l,selectors:[["th","bitSortable",""]],hostVars:1,hostBindings:function(e,t){2&e&&o.BMQ("aria-sort",t.ariaSort)},inputs:{bitSortable:[1,"bitSortable"],default:[1,"default"],fn:[1,"fn"]},attrs:["bitSortable",""],ngContentSelectors:["*"],decls:3,vars:3,consts:[["type","button",3,"click","ngClass"],[1,"bwi","tw-ms-2",3,"ngClass"]],template:function(e,t){1&e&&(o.NAR(),o.j41(0,"button",0),o.bIt("click",function(){return t.setActive()}),o.SdG(1),o.nrm(2,"i",1),o.k0s()),2&e&&(o.Y8G("ngClass",t.classList),o.BMQ("aria-pressed",t.isActive),o.R7$(2),o.Y8G("ngClass",t.icon))},dependencies:[r.YU],encapsulation:2})},55542(e,t,i){"use strict";i.d(t,{s:()=>l});var n=i(26509),r=i(42606),s=i(67789),o=i(72135),a=i(69783);class l extends r.q{constructor(){super(),this._filter=new s.t(()=>!0),this._renderData=new s.t([]),this._renderChangesSubscription=null,this._data=new s.t([]),this._sort=new s.t({direction:"asc"})}get data(){return this._data.value}set data(e){e=Array.isArray(e)?e:[],this._data.next(e),this._renderChangesSubscription||this.filterData(e)}set sort(e){this._sort.next(e)}get sort(){return this._sort.value}get filter(){return this._filter.value}set filter(e){this._filter.next(e),this._renderChangesSubscription||this.filterData(this.data)}connect(){return this._renderChangesSubscription||this.updateChangeSubscription(),this._renderData}disconnect(){var e;null===(e=this._renderChangesSubscription)||void 0===e||e.unsubscribe(),this._renderChangesSubscription=null}updateChangeSubscription(){var e;const t=(0,o.z)([this._data,this._filter]).pipe((0,a.T)(([e])=>this.filterData(e))),i=(0,o.z)([t,this._sort]).pipe((0,a.T)(([e,t])=>this.orderData(e,t)));null===(e=this._renderChangesSubscription)||void 0===e||e.unsubscribe(),this._renderChangesSubscription=i.subscribe(e=>this._renderData.next(e))}filterData(e){const t="string"==typeof this.filter?l.simpleStringFilter(this.filter):this.filter;return this.filteredData=null==this.filter?e:e.filter(e=>t(e)),this.filteredData}orderData(e,t){return t?this.sortData(e,t):e}sortingDataAccessor(e,t){const i=e[t];if((0,n.o1)(i)){const e=Number(i);return e<Number.MAX_SAFE_INTEGER?e:i}return i}sortData(e,t){const i=t.column,n="asc"===t.direction?1:-1;return i?e.sort((e,r)=>{if(t.fn)return t.fn(e,r,t.direction)*n;let s=this.sortingDataAccessor(e,i),o=this.sortingDataAccessor(r,i);const a=typeof s,l=typeof o;if(a!==l&&("number"===a&&(s+=""),"number"===l&&(o+="")),"string"==typeof s&&"string"==typeof o)return s.localeCompare(o)*n;let c=0;return null!=s&&null!=o?s>o?c=1:s<o&&(c=-1):null!=s?c=1:null!=o&&(c=-1),c*n}):e}}l.simpleStringFilter=e=>t=>{if(!e)return!0;const i=Object.keys(t).reduce((e,i)=>e+t[i]+"◬","").toLowerCase(),n=e.trim().toLowerCase();return-1!=i.indexOf(n)}},30930(e,t,i){"use strict";i.d(t,{N:()=>m,a:()=>v});var n=i(15639),r=i(46758),s=i(24590),o=i(69672),a=i(22466),l=i(36572),c=i(14041),d=i(11217);const u=[[["","header",""]]],h=e=>({paddingBottom:e}),A=e=>({$implicit:e});function p(e,t){1&e&&c.eu8(0)}function g(e,t){if(1&e&&(c.j41(0,"tr",4),c.DNE(1,p,1,0,"ng-container",5),c.k0s()),2&e){const e=t.$implicit,i=c.XpG();c.R7$(),c.Y8G("ngTemplateOutlet",i.rowDef().template)("ngTemplateOutletContext",c.eq3(2,A,e))}}class v{constructor(e){this.template=e}}v.ɵfac=function(e){return new(e||v)(c.rXU(c.C4Q))},v.ɵdir=c.FsC({type:v,selectors:[["","bitRowDef",""]]});class m extends l.O{constructor(e,t){super(),this.zone=e,this.el=t,this.rowSize=s.hFB.required(),this.trackBy=(0,s.hFB)(),this.rowDef=(0,s.sbv)(v),this.headerHeight=0}ngAfterViewInit(){this.headerObserver=new ResizeObserver(e=>{this.zone.run(()=>{this.headerHeight=e[0].contentRect.height})}),this.headerObserver.observe(this.el.nativeElement.querySelector("thead"))}ngOnDestroy(){super.ngOnDestroy(),this.headerObserver&&this.headerObserver.disconnect()}}m.ɵfac=function(e){return new(e||m)(c.rXU(d.SKi),c.rXU(c.aKT))},m.ɵcmp=c.VBU({type:m,selectors:[["bit-table-scroll"]],contentQueries:function(e,t,i){1&e&&c.C6U(i,t.rowDef,v,5),2&e&&c.NyB()},inputs:{rowSize:[1,"rowSize"],trackBy:[1,"trackBy"]},features:[c.Jv_([{provide:l.O,useExisting:m}]),c.Vt3],ngContentSelectors:["[header]"],decls:7,vars:8,consts:[["bitScrollLayout","",3,"itemSize","ngStyle"],[3,"ngClass"],[1,"tw-border-0","tw-border-b-2","tw-border-solid","tw-border-border-base","tw-font-medium","tw-text-muted"],["bitRow","",4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy","cdkVirtualForTemplateCacheSize"],["bitRow",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,t){1&e&&(c.NAR(u),c.j41(0,"cdk-virtual-scroll-viewport",0)(1,"table",1)(2,"thead",2)(3,"tr"),c.SdG(4),c.k0s()(),c.j41(5,"tbody"),c.DNE(6,g,2,4,"tr",3),c.k0s()()()),2&e&&(c.Y8G("itemSize",t.rowSize())("ngStyle",c.eq3(6,h,t.headerHeight+"px")),c.R7$(),c.Y8G("ngClass",t.tableClass),c.R7$(5),c.Y8G("cdkVirtualForOf",t.rows$)("cdkVirtualForTrackBy",t.trackBy())("cdkVirtualForTemplateCacheSize",0))},dependencies:[r.MD,r.YU,r.T3,r.B3,n.d6,n.yg,n.E$,a.Y,o.lp],encapsulation:2})},36572(e,t,i){"use strict";i.d(t,{O:()=>u,_:()=>d});var n=i(42606),r=i(46758),s=i(24590),o=i(14041);const a=[[["","header",""]]],l=e=>({$implicit:e});function c(e,t){1&e&&o.eu8(0)}class d{constructor(e){this.template=e}}d.ɵfac=function(e){return new(e||d)(o.rXU(o.C4Q))},d.ɵdir=o.FsC({type:d,selectors:[["ng-template","body",""]]});class u{constructor(){this.dataSource=(0,s.hFB)(),this.layout=(0,s.hFB)("auto"),this.templateVariable=(0,s.sbv)(d),this._initialized=!1}get tableClass(){return["tw-w-full","tw-leading-normal","tw-text-main","tw-border-collapse","tw-text-start","auto"===this.layout()?"tw-table-auto":"tw-table-fixed"]}ngAfterContentChecked(){const e=this.dataSource();if(!this._initialized&&(0,n.y)(e)){this._initialized=!0;const t=e.connect();this.rows$=t}}ngOnDestroy(){const e=this.dataSource();(0,n.y)(e)&&e.disconnect()}}u.ɵfac=function(e){return new(e||u)},u.ɵcmp=o.VBU({type:u,selectors:[["bit-table"]],contentQueries:function(e,t,i){1&e&&o.C6U(i,t.templateVariable,d,5),2&e&&o.NyB()},inputs:{dataSource:[1,"dataSource"],layout:[1,"layout"]},ngContentSelectors:["[header]"],decls:5,vars:5,consts:[[3,"ngClass"],[1,"tw-border-0","tw-border-b-2","tw-border-solid","tw-border-border-base","tw-font-medium","tw-text-muted"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,t){1&e&&(o.NAR(a),o.j41(0,"table",0)(1,"thead",1),o.SdG(2),o.k0s(),o.j41(3,"tbody"),o.DNE(4,c,1,0,"ng-container",2),o.k0s()()),2&e&&(o.Y8G("ngClass",t.tableClass),o.R7$(4),o.Y8G("ngTemplateOutlet",t.templateVariable().template)("ngTemplateOutletContext",o.eq3(3,l,t.rows$)))},dependencies:[r.MD,r.YU,r.T3],encapsulation:2})},47659(e,t,i){"use strict";i.d(t,{b:()=>c});var n=i(15639),r=i(46758),s=i(30930),o=i(36572),a=i(14041),l=i(11217);class c{}c.ɵfac=function(e){return new(e||c)},c.ɵmod=a.$C({type:c}),c.ɵinj=l.G2t({imports:[r.MD,n.E9,o.O,s.N]})},40443(e,t,i){"use strict";i.d(t,{g:()=>r});var n=i(14041);class r{}r.ɵfac=function(e){return new(e||r)},r.ɵcmp=n.VBU({type:r,selectors:[["bit-tab-header"]],hostAttrs:[1,"tw-flex","tw-items-end","tw-border-0","tw-border-b","tw-border-solid","tw-border-border-base"],ngContentSelectors:["*"],decls:1,vars:0,template:function(e,t){1&e&&(n.NAR(),n.SdG(0))},encapsulation:2})},17386(e,t,i){"use strict";i.d(t,{i:()=>r,k:()=>s});var n=i(14041);const r=24;class s{}s.ɵfac=function(e){return new(e||s)},s.ɵdir=n.FsC({type:s,selectors:[["","bitTabListContainer",""]],hostAttrs:[1,"tw-inline-flex","tw-flex-nowrap","tw-w-full","tw-min-w-0","tw-leading-5"]})},39200(e,t,i){"use strict";i.d(t,{O:()=>a,y:()=>l});var n=i(24590),r=i(14041),s=i(11217),o=i(63477);const a="tw-flex tw-items-center tw-gap-1.5 tw-h-6 tw-rounded group-focus-visible/tab-list-item:tw-ring-2 group-focus-visible/tab-list-item:tw-ring-border-focus";class l{constructor(){this.active=(0,n.hFB)(),this.disabledInput=(0,n.hFB)(!1,Object.assign(Object.assign({},{}),{alias:"disabled"})),this.elementRef=(0,s.WQX)(r.aKT),this.classList=(0,o.EW)(()=>this.baseClassList.concat(this.active()?this.activeClassList:[]).concat(this.disabledInput()?this.disabledClassList:[]).concat(this.textColorClassList())),this.textColorClassList=(0,o.EW)(()=>this.disabledInput()?["!tw-text-fg-inactive","hover:!tw-text-fg-inactive"]:this.active()?["!tw-text-fg-brand"]:["!tw-text-fg-body","hover:!tw-text-fg-brand"]),this.baseClassList=["tw-block","tw-relative","tw-h-full","tw-max-w-fit","tw-whitespace-nowrap","tw-pb-3","tw-text-sm","tw-font-medium","tw-bg-transparent","tw-outline-none","tw-group/tab-list-item","tw-transition","after:tw-content-['']","after:tw-w-full","after:tw-h-[2px]","after:tw-bg-bg-brand","after:tw-absolute","after:-tw-bottom-px","after:tw-inset-x-0","after:tw-transition-opacity","after:tw-opacity-0"],this.disabledClassList=["tw-cursor-default"],this.activeClassList=["tw-font-semibold","after:tw-opacity-100"]}get disabled(){return this.disabledInput()}focus(){this.elementRef.nativeElement.focus()}click(){this.elementRef.nativeElement.click()}}l.ɵfac=function(e){return new(e||l)},l.ɵdir=r.FsC({type:l,selectors:[["","bitTabListItem",""]],hostVars:3,hostBindings:function(e,t){2&e&&(r.BMQ("disabled",t.disabledInput()||null),r.HbH(t.classList()))},inputs:{active:[1,"active"],disabledInput:[1,"disabled","disabledInput"]}})},88516(e,t,i){"use strict";i.d(t,{W:()=>j});var n=i(2683),r=i(46758),s=i(11217),o=i(24590),a=i(63477),l=i(36801),c=i(16568),d=i(55807),u=i(90647),h=i(55616),A=i(7141),p=i(90630),g=i(40443),v=i(17386),m=i(39200),f=i(38798),y=i(14041);function b(e,t){}class C{get hidden(){return!this.active()||null}constructor(){this._firstRender=!1,this.content=(0,o.hFB)(),this.preserveContent=(0,o.hFB)(!1),this.active=(0,o.hFB)(),(0,s.QZP)(()=>{this.active()&&(this._firstRender=!0)})}get tabContent(){return this.active()||this.preserveContent()&&this._firstRender?this.content():null}}C.ɵfac=function(e){return new(e||C)},C.ɵcmp=y.VBU({type:C,selectors:[["bit-tab-body"]],hostVars:1,hostBindings:function(e,t){2&e&&y.BMQ("hidden",t.hidden)},inputs:{content:[1,"content"],preserveContent:[1,"preserveContent"],active:[1,"active"]},decls:1,vars:1,consts:[[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&y.DNE(0,b,0,0,"ng-template",0),2&e&&y.Y8G("cdkPortalOutlet",t.tabContent)},dependencies:[f.I3],encapsulation:2});var I=i(18539),w=i(58384),B=i(13496),E=i(73848),S=i(78952);const Q=["moreButton"],k=e=>({tab:e}),R=(e,t)=>t.id;function F(e,t){if(1&e&&y.nrm(0,"bit-icon",15),2&e){const e=y.XpG().tab;y.Y8G("name",e.startIcon())}}function T(e,t){if(1&e&&y.nrm(0,"bit-berry",9),2&e){const e=y.XpG().tab;y.Y8G("value",e.berryValue())}}function D(e,t){if(1&e&&y.nrm(0,"bit-icon",15),2&e){const e=y.XpG().tab;y.Y8G("name",e.endIcon())}}function P(e,t){if(1&e&&(y.j41(0,"span"),y.nVh(1,F,1,1,"bit-icon",15),y.j41(2,"span",16),y.EFF(3),y.k0s(),y.nVh(4,T,1,1,"bit-berry",9),y.nVh(5,D,1,1,"bit-icon",15),y.k0s()),2&e){const e=t.tab,i=y.XpG();y.HbH(i.tabLabelContentClasses),y.R7$(),y.vxM(e.startIcon()?1:-1),y.R7$(2),y.SpI(" ",e.textLabel()," "),y.R7$(),y.vxM(e.berryValue()?4:-1),y.R7$(),y.vxM(e.endIcon()?5:-1)}}function M(e,t){if(1&e){const e=y.RV6();y.j41(0,"button",17,4),y.bIt("click",function(){const t=s.eBV(e).$index,i=y.XpG();return s.Njj(i.selectTab(t))}),y.eu8(2,18),y.k0s()}if(2&e){const e=t.$implicit,i=t.$index,n=y.sdS(1),r=y.XpG(),s=y.sdS(1);y.HbH(n.shouldShrink()?"tw-flex-1 tw-min-w-0 tw-overflow-hidden":"tw-shrink-0"),y.Y8G("pinned",r.selectedIndex()===i)("id",r.getTabLabelId(i))("active",e.isActive())("disabled",e.disabled()),y.BMQ("aria-selected",r.selectedIndex()===i)("tabindex",r.selectedIndex()===i?0:-1),y.R7$(2),y.Y8G("ngTemplateOutlet",s)("ngTemplateOutletContext",y.eq3(10,k,e))}}function x(e,t){if(1&e&&y.nrm(0,"bit-tab-body",12),2&e){const e=t.$implicit,i=t.$index,n=y.XpG();y.Y8G("id",n.getTabContentId(i))("active",e.isActive())("content",e.content)("preserveContent",n.preserveContent()),y.BMQ("tabindex",e.contentTabIndex())("aria-labelledby",n.getTabLabelId(i))}}function V(e,t){if(1&e&&y.nrm(0,"bit-icon",20),2&e){y.XpG();const e=y.r8f(0);y.Y8G("name",e.startIcon())}}function G(e,t){if(1&e&&y.nrm(0,"bit-berry",9),2&e){y.XpG();const e=y.r8f(0);y.Y8G("value",e.berryValue())}}function U(e,t){if(1&e&&y.nrm(0,"bit-icon",15),2&e){y.XpG();const e=y.r8f(0);y.Y8G("name",e.endIcon())}}function O(e,t){if(1&e){const e=y.RV6();y.SS7(0),y.j41(1,"button",19),y.bIt("click",function(){const t=s.eBV(e).$implicit,i=y.XpG();return s.Njj(i.selectTab(t))}),y.nVh(2,V,1,1,"bit-icon",20),y.EFF(3),y.j41(4,"div",21),y.nVh(5,G,1,1,"bit-berry",9),y.nVh(6,U,1,1,"bit-icon",15),y.k0s()()}if(2&e){const e=t.$implicit,i=y.bH3(y.XpG().tabs()[e]);y.R7$(),y.Y8G("disabled",i.disabled()),y.R7$(),y.vxM(i.startIcon()?2:-1),y.R7$(),y.SpI(" ",i.textLabel()," "),y.R7$(2),y.vxM(i.berryValue()?5:-1),y.R7$(),y.vxM(i.endIcon()?6:-1)}}let N=0;class j{constructor(){this.tabLabelContentClasses=m.O,this.TAB_LIST_CONTAINER_GAP=v.i,this.injector=(0,s.WQX)(s.zZn),this.label=(0,o.hFB)(""),this.preserveContent=(0,o.hFB)(!1),this._tab=o.sbv.required(I.j),this.tabs=(0,o.tEk)(I.j),this.tabLabels=(0,o.dtW)(m.y),this.moreButton=(0,o.ebz)("moreButton",Object.assign(Object.assign({},{}),{read:m.y})),this.selectedIndex=(0,o.geq)(0),this._selectedIndex=(0,s.vPA)(null),this._initialized=(0,s.vPA)(!1),this.selectedTabChange=(0,o.CGW)(),this.keyManager=(0,s.vPA)(void 0),this._groupId=N++,(0,s.QZP)(()=>{const e=this.tabs(),t=this.tabLabels();e.forEach((e,i)=>{const n=t[i];n&&(e.popoverAnchorElementRef.nativeElement=n.elementRef.nativeElement)})}),(0,s.QZP)(()=>{const e=this._clampTabIndex(this.selectedIndex());if(e===this._selectedIndex()){const t=this.tabs();let i;const n=t.find(e=>e.isActive());if(n){const e=t.indexOf(n);this.selectedIndex.set(e),this._selectedIndex.set(e),i=n}!i&&t[e]&&(t[e].isActive.set(!0),(0,a.O8)(()=>this._initialized())&&this.selectedTabChange.emit({index:e,tab:t[e]}))}})}getTabContentId(e){return`bit-tab-content-${this._groupId}-${e}`}getTabLabelId(e){return`bit-tab-label-${this._groupId}-${e}`}selectTab(e){this.selectedIndex.set(e)}onOverflowMenuClosed(){var e;const t=this.moreButton();t&&(null===(e=this.keyManager())||void 0===e||e.updateActiveItem(t))}ngAfterContentChecked(){var e;const t=this._clampTabIndex(this.selectedIndex());if(this.selectedIndex.set(t),this._selectedIndex()!=t){null==this._selectedIndex()||this.selectedTabChange.emit({index:t,tab:this.tabs()[t]}),Promise.resolve().then(()=>{this.tabs().forEach((e,i)=>e.isActive.set(i===t)),this._initialized.set(!0)}),this._selectedIndex.set(t),null===(e=this.keyManager())||void 0===e||e.setActiveItem(t)}}ngAfterViewInit(){var e;const t=new n.B(this.tabLabels,this.injector).withHorizontalOrientation("ltr").withWrap().withHomeAndEnd().skipPredicate(e=>e.disabled||e.elementRef.nativeElement.hidden);t.updateActiveItem(null!==(e=this._selectedIndex())&&void 0!==e?e:0),this.keyManager.set(t)}_clampTabIndex(e){return Math.min(this.tabs().length-1,Math.max(e||0,0))}}j.ɵfac=function(e){return new(e||j)},j.ɵcmp=y.VBU({type:j,selectors:[["bit-tab-group"]],contentQueries:function(e,t,i){1&e&&y.C6U(i,t._tab,I.j,5)(i,t.tabs,I.j,4),2&e&&y.NyB(2)},viewQuery:function(e,t){1&e&&y.wEZ(t.tabLabels,m.y,5)(t.moreButton,Q,5,m.y),2&e&&y.NyB(2)},hostAttrs:[1,"tw-block"],inputs:{label:[1,"label"],preserveContent:[1,"preserveContent"],selectedIndex:[1,"selectedIndex"]},outputs:{selectedIndex:"selectedIndexChange",selectedTabChange:"selectedTabChange"},decls:21,vars:11,consts:[["tabLabelContent",""],["ovf","bitOverflowList"],["moreButton",""],["overFlowTabsMenu",""],["ovfItem","bitOverflowItem"],[3,"keydown"],["bitOverflowList","","bitTabListContainer","","role","tablist",3,"gap"],["bitOverflowItem","","bitTabListItem","","type","button","role","tab",3,"pinned","id","active","disabled","class"],["bitTabListItem","","bitOverflowTrigger","","type","button","tabindex","-1",1,"tw-shrink-0",3,"bitMenuTriggerFor"],[3,"value"],["name","bwi-angle-down",1,"tw-text-base"],[1,"tw-pt-5"],["role","tabpanel",3,"id","active","content","preserveContent"],[3,"closed"],["bitMenuItem","","type","button",3,"disabled"],[1,"tw-text-base",3,"name"],[1,"tw-min-w-0","tw-truncate"],["bitOverflowItem","","bitTabListItem","","type","button","role","tab",3,"click","pinned","id","active","disabled"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["bitMenuItem","","type","button",3,"click","disabled"],["slot","start",1,"tw-text-base",3,"name"],["slot","end",1,"empty:tw-hidden","tw-flex","tw-items-center","tw-gap-1"]],template:function(e,t){if(1&e){const e=y.RV6();y.DNE(0,P,6,6,"ng-template",null,0,y.C5r),y.j41(2,"bit-tab-header",5),y.bIt("keydown",function(i){let n;return s.eBV(e),s.Njj(null==(n=t.keyManager())?null:n.onKeydown(i))}),y.j41(3,"div",6,1),y.Z7z(5,M,3,12,"button",7,R),y.j41(7,"button",8,2)(9,"span"),y.EFF(10),y.nI1(11,"i18n"),y.nrm(12,"bit-berry",9)(13,"bit-icon",10),y.k0s()()()(),y.j41(14,"div",11),y.Z7z(15,x,1,6,"bit-tab-body",12,R),y.k0s(),y.j41(17,"bit-menu",13,3),y.bIt("closed",function(){return t.onOverflowMenuClosed()}),y.Z7z(19,O,7,6,"button",14,y.fX1),y.k0s()}if(2&e){const e=y.sdS(4),i=y.sdS(18);y.R7$(3),y.AVh("tw-invisible",!e.ready()),y.Y8G("gap",t.TAB_LIST_CONTAINER_GAP),y.BMQ("aria-label",t.label()),y.R7$(2),y.Dyx(t.tabs()),y.R7$(2),y.Y8G("bitMenuTriggerFor",i),y.R7$(2),y.HbH(t.tabLabelContentClasses),y.R7$(),y.SpI(" ",y.bMT(11,9,"more")," "),y.R7$(2),y.Y8G("value",e.overflow().length),y.R7$(3),y.Dyx(t.tabs()),y.R7$(4),y.Dyx(e.overflow())}},dependencies:[r.T3,g.g,v.k,m.y,C,c.c,d.o,w.R,u.M,B.Z,E.O,S.S,h.E,A.V,p.q,l.$Z],encapsulation:2,changeDetection:0})},18539(e,t,i){"use strict";i.d(t,{j:()=>d});var n=i(38798),r=i(24590),s=i(14041),o=i(11217),a=i(38411);function l(e,t){1&e&&s.SdG(0)}let c=0;class d{get content(){return this._contentPortal()}constructor(e){this._viewContainerRef=e,this.id=c++,this.disabled=(0,r.hFB)(!1),this.textLabel=(0,r.hFB)("",Object.assign(Object.assign({},{}),{alias:"label"})),this.berryValue=(0,r.hFB)(),this.startIcon=(0,r.hFB)(),this.endIcon=(0,r.hFB)(),this.popoverAnchorElementRef=(0,o.WQX)(s.aKT),this.contentTabIndex=(0,r.hFB)(),this.implicitContent=r.ebz.required(s.C4Q),this._contentPortal=(0,o.vPA)(null),this.isActive=(0,o.vPA)(!1)}ngOnInit(){this._contentPortal.set(new n.VA(this.implicitContent(),this._viewContainerRef))}}d.ɵfac=function(e){return new(e||d)(s.rXU(s.c1b))},d.ɵcmp=s.VBU({type:d,selectors:[["bit-tab"]],viewQuery:function(e,t){1&e&&s.wEZ(t.implicitContent,s.C4Q,5),2&e&&s.NyB()},hostAttrs:["role","tabpanel"],inputs:{disabled:[1,"disabled"],textLabel:[1,"label","textLabel"],berryValue:[1,"berryValue"],startIcon:[1,"startIcon"],endIcon:[1,"endIcon"],contentTabIndex:[1,"contentTabIndex"]},features:[s.Jv_([{provide:a.j,useExisting:d}])],ngContentSelectors:["*"],decls:1,vars:0,template:function(e,t){1&e&&(s.NAR(),s.PeT(0,l,1,0,"ng-template"))},encapsulation:2,changeDetection:0})},52798(e,t,i){"use strict";i.d(t,{T:()=>B});var n=i(24590),r=i(14041),s=i(11217),o=i(63477),a=i(92128),l=i(84522),c=i(16568),d=i(55807),u=i(7141),h=i(39200),A=i(39805),p=i(58384);const g=["rla"],v=["labelText"],m=[[["","slot","end"]],"*"],f=()=>({focusAfterNav:!1});function y(e,t){if(1&e&&r.nrm(0,"bit-icon",3),2&e){const e=r.XpG();r.Y8G("name",e.startIcon())}}function b(e,t){if(1&e&&r.EFF(0),2&e){r.XpG();const e=r.r8f(0);r.SpI(" ",e," ")}}function C(e,t){1&e&&r.SdG(0,1)}function I(e,t){if(1&e&&r.nrm(0,"bit-berry",5),2&e){const e=r.XpG();r.Y8G("value",e.berryValue())}}function w(e,t){if(1&e&&r.nrm(0,"bit-icon",3),2&e){const e=r.XpG();r.Y8G("name",e.endIcon())}}class B{onKeyDown(e){"Space"===e.code&&this.tabItem().click()}constructor(e){this._tabNavBar=e,this.tabLabelContentClasses=h.O,this.destroyRef=(0,s.WQX)(s.abz),this.elementRef=(0,s.WQX)(r.aKT),this.overflowItem=(0,s.WQX)(u.V,{host:!0}),this.tabItem=n.ebz.required(h.y),this.routerLinkActive=n.ebz.required("rla"),this.labelText=(0,n.ebz)("labelText"),this.displayText=(0,o.EW)(()=>{var e,t,i,n;return null!==(n=null!==(e=this.label())&&void 0!==e?e:null===(i=null===(t=this.labelText())||void 0===t?void 0:t.nativeElement.textContent)||void 0===i?void 0:i.trim())&&void 0!==n?n:""}),this.routerLinkMatchOptions={queryParams:"ignored",matrixParams:"ignored",paths:"subset",fragment:"ignored"},this.route=(0,n.hFB)(),this.label=(0,n.hFB)(),this.berryValue=(0,n.hFB)(),this.startIcon=(0,n.hFB)(),this.endIcon=(0,n.hFB)(),this.disabled=!1,this.isActive=(0,s.vPA)(!1),this.tabIndex=(0,s.vPA)(-1),(0,s.QZP)(()=>{this.overflowItem.pinned.set(this.isActive())})}focus(){this.tabItem().focus()}ngAfterViewInit(){const e=this.routerLinkActive();this.isActive.set(e.isActive),e.isActiveChange.pipe((0,a.pQ)(this.destroyRef)).subscribe(e=>{this.isActive.set(e),this._tabNavBar.updateActiveLink()})}}B.ɵfac=function(e){return new(e||B)(r.rXU(A.J))},B.ɵcmp=r.VBU({type:B,selectors:[["bit-tab-link"]],viewQuery:function(e,t){1&e&&r.wEZ(t.tabItem,h.y,5)(t.routerLinkActive,g,5)(t.labelText,v,5),2&e&&r.NyB(3)},hostAttrs:[1,"tw-block","tw-max-w-fit"],hostVars:2,hostBindings:function(e,t){1&e&&r.bIt("keydown",function(e){return t.onKeyDown(e)}),2&e&&r.HbH(t.overflowItem.shouldShrink()?"tw-flex-1 tw-min-w-0 tw-overflow-hidden":"tw-shrink-0")},inputs:{route:[1,"route"],label:[1,"label"],berryValue:[1,"berryValue"],startIcon:[1,"startIcon"],endIcon:[1,"endIcon"],disabled:"disabled"},features:[r.nM4([u.V])],ngContentSelectors:["[slot=end]","*"],decls:12,vars:15,consts:[["rla","routerLinkActive"],["labelText",""],["bitTabListItem","","routerLinkActive","","ariaCurrentWhenActive","page","role","link",3,"routerLink","routerLinkActiveOptions","active","state","disabled"],[1,"tw-text-base",3,"name"],[1,"tw-min-w-0","tw-truncate"],[3,"value"]],template:function(e,t){if(1&e&&(r.NAR(m),r.SS7(0),r.j41(1,"a",2,0)(3,"span"),r.nVh(4,y,1,1,"bit-icon",3),r.j41(5,"span",4,1),r.nVh(7,b,1,1)(8,C,1,0),r.k0s(),r.nVh(9,I,1,1,"bit-berry",5),r.nVh(10,w,1,1,"bit-icon",3),r.SdG(11),r.k0s()()),2&e){const e=r.sdS(2),i=r.bH3(t.label());r.R7$(),r.Y8G("routerLink",t.disabled?null:t.route())("routerLinkActiveOptions",t.routerLinkMatchOptions)("active",e.isActive)("state",r.lJ4(14,f))("disabled",t.disabled),r.BMQ("aria-disabled",t.disabled)("tabindex",t.tabIndex()),r.R7$(2),r.HbH(t.tabLabelContentClasses),r.R7$(),r.vxM(t.startIcon()?4:-1),r.R7$(3),r.vxM(i?7:8),r.R7$(2),r.vxM(t.berryValue()?9:-1),r.R7$(),r.vxM(t.endIcon()?10:-1)}},dependencies:[h.y,l.iI,l.Wk,l.wQ,c.c,d.o,p.R],encapsulation:2,changeDetection:0})},39805(e,t,i){"use strict";i.d(t,{J:()=>k});var n=i(2683),r=i(24590),s=i(11217),o=i(63477),a=i(84522),l=i(36801),c=i(16568),d=i(55807),u=i(90647),h=i(55616),A=i(90630),p=i(40443),g=i(17386),v=i(39200),m=i(52798),f=i(14041),y=i(58384),b=i(13496),C=i(73848),I=i(78952);const w=["moreButton"];function B(e,t){if(1&e&&f.nrm(0,"bit-icon",11),2&e){f.XpG();const e=f.r8f(0);f.Y8G("name",e.startIcon())}}function E(e,t){if(1&e&&f.nrm(0,"bit-berry",6),2&e){f.XpG();const e=f.r8f(0);f.Y8G("value",e.berryValue())}}function S(e,t){if(1&e&&f.nrm(0,"bit-icon",13),2&e){f.XpG();const e=f.r8f(0);f.Y8G("name",e.endIcon())}}function Q(e,t){if(1&e){const e=f.RV6();f.SS7(0),f.j41(1,"a",10),f.bIt("click",function(){s.eBV(e);const t=f.r8f(0);f.XpG();const i=f.sdS(12);return s.Njj(!t.disabled&&i.closed.emit())}),f.nVh(2,B,1,1,"bit-icon",11),f.EFF(3),f.j41(4,"div",12),f.nVh(5,E,1,1,"bit-berry",6),f.nVh(6,S,1,1,"bit-icon",13),f.k0s()()}if(2&e){const e=t.$implicit,i=f.bH3(f.XpG().tabLabels()[e]);f.R7$(),f.Y8G("routerLink",i.disabled?null:i.route())("disabled",i.disabled),f.BMQ("aria-disabled",i.disabled||null),f.R7$(),f.vxM(i.startIcon()?2:-1),f.R7$(),f.SpI(" ",i.displayText()," "),f.R7$(2),f.vxM(i.berryValue()?5:-1),f.R7$(),f.vxM(i.endIcon()?6:-1)}}class k{constructor(){this.tabLabelContentClasses=v.O,this.TAB_LIST_CONTAINER_GAP=g.i,this.injector=(0,s.WQX)(s.zZn),this.moreButtonItem=r.ebz.required("moreButton",{read:v.y}),this.tabLabels=(0,r.tEk)((0,s.Rfq)(()=>m.T)),this.overflowItems=(0,o.EW)(()=>this.tabLabels().map(e=>e.overflowItem)),this.label=(0,r.hFB)(""),this.allTabItems=(0,o.EW)(()=>[...this.tabLabels(),this.moreButtonItem()]),this.keyManager=(0,s.vPA)(void 0)}ngAfterViewInit(){const e=new n.B(this.allTabItems,this.injector).withHorizontalOrientation("ltr").withWrap().withHomeAndEnd().skipPredicate(e=>e.disabled||e.elementRef.nativeElement.hidden);this.keyManager.set(e),this.updateActiveLink()}onOverflowMenuClosed(){var e;null===(e=this.keyManager())||void 0===e||e.updateActiveItem(this.moreButtonItem())}updateActiveLink(){var e;const t=this.tabLabels();if(0===t.length)return;const i=t.findIndex(e=>e.isActive()&&!e.disabled),n=i>=0?i:t.findIndex(e=>!e.disabled);t.forEach((e,t)=>e.tabIndex.set(t===n?0:-1)),i>=0&&(null===(e=this.keyManager())||void 0===e||e.updateActiveItem(i))}}k.ɵfac=function(e){return new(e||k)},k.ɵcmp=f.VBU({type:k,selectors:[["bit-tab-nav-bar"]],contentQueries:function(e,t,i){1&e&&f.C6U(i,t.tabLabels,m.T,4),2&e&&f.NyB()},viewQuery:function(e,t){1&e&&f.wEZ(t.moreButtonItem,w,5,v.y),2&e&&f.NyB()},hostAttrs:[1,"tw-block"],inputs:{label:[1,"label"]},ngContentSelectors:["*"],decls:15,vars:12,consts:[["ovf","bitOverflowList"],["moreButton",""],["overflowTabsMenu",""],[3,"keydown"],["bitOverflowList","","bitTabListContainer","",3,"items","gap"],["bitTabListItem","","bitOverflowTrigger","","type","button","tabindex","-1",1,"tw-shrink-0",3,"bitMenuTriggerFor"],[3,"value"],["name","bwi-angle-down",1,"tw-text-base"],[3,"closed"],["bitMenuItem","","ariaCurrentWhenActive","page",3,"routerLink","disabled"],["bitMenuItem","","ariaCurrentWhenActive","page",3,"click","routerLink","disabled"],["slot","start",1,"tw-text-base",3,"name"],["slot","end",1,"empty:tw-hidden","tw-flex","tw-items-center","tw-gap-1"],[1,"tw-text-base",3,"name"]],template:function(e,t){if(1&e){const e=f.RV6();f.NAR(),f.j41(0,"bit-tab-header",3),f.bIt("keydown",function(i){let n;return s.eBV(e),s.Njj(null==(n=t.keyManager())?null:n.onKeydown(i))}),f.j41(1,"nav",4,0),f.SdG(3),f.j41(4,"button",5,1)(6,"span"),f.EFF(7),f.nI1(8,"i18n"),f.nrm(9,"bit-berry",6)(10,"bit-icon",7),f.k0s()()()(),f.j41(11,"bit-menu",8,2),f.bIt("closed",function(){return t.onOverflowMenuClosed()}),f.Z7z(13,Q,7,8,"a",9,f.fX1),f.k0s()}if(2&e){const e=f.sdS(2),i=f.sdS(12);f.R7$(),f.AVh("tw-invisible",!e.ready()),f.Y8G("items",t.overflowItems())("gap",t.TAB_LIST_CONTAINER_GAP),f.BMQ("aria-label",t.label()),f.R7$(3),f.Y8G("bitMenuTriggerFor",i),f.R7$(2),f.HbH(t.tabLabelContentClasses),f.R7$(),f.SpI(" ",f.bMT(8,10,"more")," "),f.R7$(2),f.Y8G("value",e.overflow().length),f.R7$(4),f.Dyx(e.overflow())}},dependencies:[a.iI,a.Wk,p.g,g.k,v.y,c.c,d.o,y.R,u.M,b.Z,C.O,I.S,h.E,A.q,l.$Z],encapsulation:2,changeDetection:0})},39509(e,t,i){"use strict";i.d(t,{j:()=>l});var n=i(46758),r=i(52798),s=i(39805),o=i(14041),a=i(11217);class l{}l.ɵfac=function(e){return new(e||l)},l.ɵmod=o.$C({type:l}),l.ɵinj=a.G2t({imports:[n.MD,s.J,r.T]})},69855(e,t,i){"use strict";i.d(t,{f:()=>o});const n=e=>{const t=(Array.isArray(e)?e:[e]).map(e=>e.split(/\s+/).filter(e=>""!==e)).flat().length;return 5e3+1e3*Math.floor(t/120)};var r=i(11217),s=i(21371);class o{constructor(e){this.toastrService=e}showToast(e){const t={payload:{message:e.message,variant:e.variant,title:e.title},timeOut:null!=e.timeout&&e.timeout>0?e.timeout:n(e.message)};this.toastrService.show(void 0,e.title,t)}_showToast(e){var t;this.showToast({message:e.text,variant:e.type,title:e.title,timeout:null===(t=e.options)||void 0===t?void 0:t.timeout})}}o.ɵfac=function(e){return new(e||o)(r.KVO(s.tw))},o.ɵprov=r.jDH({token:o,factory:o.ɵfac,providedIn:"root"})},34782(e,t,i){"use strict";i.d(t,{B:()=>c});var n=i(24590),r=i(84210),s=i(43759),o=i(33886),a=i(14041);function l(e,t){if(1&e&&(a.j41(0,"label",1),a.EFF(1),a.k0s()),2&e){const e=a.XpG(),t=a.sdS(3);a.BMQ("for",t.labelForId()),a.R7$(),a.JRh(e.label())}}class c{constructor(){this.items=(0,n.hFB)([]),this.value=(0,n.hFB)(),this.label=(0,n.hFB)(),this.valueChange=(0,n.CGW)()}}c.ɵfac=function(e){return new(e||c)},c.ɵcmp=a.VBU({type:c,selectors:[["bit-toggle-dropdown"]],inputs:{items:[1,"items"],value:[1,"value"],label:[1,"label"]},outputs:{valueChange:"valueChange"},decls:4,vars:3,consts:[["bitSelect",""],[1,"tw-sr-only"],["disableMargin",""],[3,"ngModelChange","items","ngModel"]],template:function(e,t){1&e&&(a.nVh(0,l,2,2,"label",1),a.j41(1,"bit-form-field",2)(2,"bit-select",3,0),a.bIt("ngModelChange",function(e){return t.valueChange.emit(e)}),a.k0s()()),2&e&&(a.vxM(t.label()?0:-1),a.R7$(2),a.Y8G("items",t.items())("ngModel",t.value()))},dependencies:[s.h,o.w,r.YN,r.BC,r.vS],encapsulation:2,changeDetection:0})},12694(e,t,i){"use strict";i.d(t,{H:()=>h});var n=i(24590),r=i(14041),s=i(11217),o=i(63477),a=i(34782),l=i(16496);function c(e,t){if(1&e){const e=r.RV6();r.j41(0,"bit-toggle-dropdown",1),r.bIt("valueChange",function(t){s.eBV(e);const i=r.XpG();return s.Njj(i.onInputInteraction(t))}),r.k0s()}if(2&e){const e=r.XpG();r.Y8G("items",e.dropdownItems())("value",e.selected())("label",e.label())}}function d(e,t){1&e&&r.SdG(0)}let u=0;class h{constructor(){this.id=u++,this.name=`bit-toggle-group-${this.id}`,this.el=(0,s.WQX)(r.aKT),this.toggles=(0,n.tEk)(l.a),this.activeIndex=(0,o.EW)(()=>{const e=this.toggles().findIndex(e=>e.value()===this.selected());return e<0?0:e}),this.hasActiveToggle=(0,o.EW)(()=>this.toggles().some(e=>e.value()===this.selected())),this.fullWidth=(0,n.hFB)(void 0,Object.assign(Object.assign({},{}),{transform:n.L39})),this.inline=(0,n.hFB)(void 0,Object.assign(Object.assign({},{}),{transform:n.L39})),this.label=(0,n.hFB)(),this.selected=(0,n.geq)(),this.displayMode=(0,s.vPA)("inline"),this.toggleOptions=(0,s.vPA)([]),this.destroyRef=(0,s.WQX)(s.abz),this.dropdownItems=(0,o.EW)(()=>{const e=this.selected();return this.toggleOptions().map(t=>Object.assign(Object.assign({},t),{icon:t.value===e?"bwi-check":void 0}))}),this.classlist=(0,o.EW)(()=>{const e=this.displayMode();if("dropdown"===e)return["tw-block"];const t="full-width"===e||this.fullWidth();return["tw-gap-1","tw-auto-cols-fr","tw-grid-flow-col","tw-border","tw-border-solid","tw-rounded-2xl","tw-border-border-base","tw-p-1","tw-relative","after:tw-content-['']","after:tw-rounded-xl","after:tw-pointer-events-none","after:tw-absolute","after:tw-top-1","after:tw-left-1","after:tw-h-[calc(100%_-_theme(spacing.2))]","after:tw-w-[calc((100%_-_var(--toggle-count)*theme(spacing.1)_-_theme(spacing.1))/var(--toggle-count,1))]","after:tw-translate-x-[calc(var(--active-toggle,0)*(100%_+_theme(spacing.1)))]","after:tw-transition-transform","after:tw-duration-[225ms]","after:tw-rounded-xl","after:tw-bg-bg-brand-stronger",this.hasActiveToggle()?"after:tw-opacity-100":"after:tw-opacity-0",...t?["tw-grid","tw-w-full","[&>*]:tw-flex-1"]:this.inline()?["tw-inline-grid"]:["tw-grid","md:tw-inline-grid"]]}),(0,n.uEv)(()=>{const e=this.toggles();0!==e.length&&void 0===(0,o.O8)(this.selected)&&this.selected.set(e[0].value())});const e=this.el.nativeElement;let t=0,i=!1;(0,n.uEv)(()=>{if(0===this.toggles().length||"dropdown"===(0,o.O8)(this.displayMode))return;if(e.style.width="max-content",e.style.maxWidth="none",t=Math.floor(e.getBoundingClientRect().width),e.style.maxWidth="",e.style.width="",Math.floor(e.getBoundingClientRect().width)<t?(this.toggleOptions.set(this.buildToggleOptions()),this.displayMode.set("dropdown")):this.fullWidth()&&this.displayMode.set("full-width"),i)return;i=!0;const n=new ResizeObserver(e=>{const i=Math.floor(e[0].borderBoxSize[0].inlineSize),n=this.displayMode();if(i<t&&("inline"===n||"full-width"===n))return this.toggleOptions.set(this.buildToggleOptions()),void this.displayMode.set("dropdown");i>=t&&"dropdown"===n&&(this.toggleOptions.set([]),this.displayMode.set(this.fullWidth()?"full-width":"inline"))});n.observe(e),this.destroyRef.onDestroy(()=>n.disconnect())})}buildToggleOptions(){return this.toggles().map(e=>{var t,i;return{value:e.value(),label:null===(t=e.labelContent())||void 0===t?void 0:t.nativeElement.innerText,metaData:null===(i=e.berryComponent())||void 0===i?void 0:i.content()}})}onInputInteraction(e){this.selected.set(e)}}h.ɵfac=function(e){return new(e||h)},h.ɵcmp=r.VBU({type:h,selectors:[["bit-toggle-group"]],contentQueries:function(e,t,i){1&e&&r.C6U(i,t.toggles,l.a,4),2&e&&r.NyB()},hostVars:8,hostBindings:function(e,t){2&e&&(r.BMQ("role","dropdown"===t.displayMode()?null:"radiogroup")("aria-label","dropdown"===t.displayMode()?null:t.label()),r.HbH(t.classlist()),r.xc7("--toggle-count",t.toggles().length)("--active-toggle",t.activeIndex()))},inputs:{fullWidth:[1,"fullWidth"],inline:[1,"inline"],label:[1,"label"],selected:[1,"selected"]},outputs:{selected:"selectedChange"},ngContentSelectors:["*"],decls:2,vars:1,consts:[[3,"items","value","label"],[3,"valueChange","items","value","label"]],template:function(e,t){1&e&&(r.NAR(),r.nVh(0,c,1,3,"bit-toggle-dropdown",0)(1,d,1,0)),2&e&&r.vxM("dropdown"===t.displayMode()?0:1)},dependencies:[a.B],encapsulation:2,changeDetection:0})},92697(e,t,i){"use strict";i.d(t,{E:()=>a});var n=i(34782),r=i(12694),s=i(14041),o=i(11217);class a{}a.ɵfac=function(e){return new(e||a)},a.ɵmod=s.$C({type:a}),a.ɵinj=o.G2t({imports:[n.B,r.H]})},16496(e,t,i){"use strict";i.d(t,{a:()=>h});var n=i(24590),r=i(14041),s=i(11217),o=i(63477),a=i(16568),l=i(12694);const c=["labelContent"],d=["*",[["bit-berry"]]];let u=0;class h{constructor(){this.id="bit-toggle-"+u++,this.groupComponent=(0,s.WQX)(l.H),this.value=n.hFB.required(),this.labelContent=(0,n.ebz)("labelContent"),this.berryComponent=(0,n.sbv)(a.c),this.hasBerry=(0,o.EW)(()=>!!this.berryComponent()),this.labelTitle=(0,s.vPA)(null),this.name=this.groupComponent.name,this.selected=(0,o.EW)(()=>this.groupComponent.selected()===this.value()),this.hostClasses=["tw-group/toggle","tw-flex","tw-min-w-16","tw-relative"],this.inputClasses=["tw-peer/toggle-input","tw-appearance-none","tw-outline-none"],this.labelClasses=["tw-py-1.5","tw-px-3","tw-relative","tw-h-full","tw-w-full","tw-flex","tw-items-center","tw-justify-center","tw-gap-1.5","!tw-font-medium","tw-leading-5","tw-transition","tw-text-center","tw-text-sm","tw-rounded-xl","tw-z-[2]","tw-transition","tw-duration-[350ms]","!tw-text-fg-body","tw-cursor-pointer","hover:tw-bg-bg-hover","after:tw-content-['']","after:tw-w-px","after:tw-h-[calc(100%_-_theme(spacing.2))]","after:tw-absolute","after:tw-right-[-2px]","after:tw-top-[50%]","after:tw-translate-x-[100%]","after:tw-translate-y-[-50%]","after:tw-bg-border-base","after:tw-transition-opacity","[bit-toggle:has(+_bit-toggle.bit-toggle--selected)_&]:after:tw-opacity-0","group-last-of-type/toggle:after:tw-opacity-0","peer-focus-visible/toggle-input:tw-outline-none","peer-focus-visible/toggle-input:tw-ring","peer-focus-visible/toggle-input:tw-ring-offset-1","peer-focus-visible/toggle-input:tw-ring-border-focus","peer-focus-visible/toggle-input:tw-z-10","peer-focus-visible/toggle-input:tw-bg-bg-hover","peer-checked/toggle-input:!tw-text-fg-contrast","peer-checked/toggle-input:after:tw-opacity-[0]"],(0,r.mal)(()=>{var e;const t=null===(e=this.labelContent())||void 0===e?void 0:e.nativeElement.innerText;t&&this.labelTitle.set(t)}),(0,s.QZP)(()=>{var e;const t=this.selected()?"contrast":"primary";null===(e=this.berryComponent())||void 0===e||e.variant.set(t)})}handleInputChange(){this.groupComponent.onInputInteraction(this.value())}}h.ɵfac=function(e){return new(e||h)},h.ɵcmp=r.VBU({type:h,selectors:[["bit-toggle"]],contentQueries:function(e,t,i){1&e&&r.C6U(i,t.berryComponent,a.c,5),2&e&&r.NyB()},viewQuery:function(e,t){1&e&&r.wEZ(t.labelContent,c,5),2&e&&r.NyB()},hostAttrs:["tabindex","-1"],hostVars:4,hostBindings:function(e,t){2&e&&(r.HbH(t.hostClasses),r.AVh("bit-toggle--selected",t.selected()))},inputs:{value:[1,"value"]},ngContentSelectors:["*","bit-berry"],decls:7,vars:10,consts:[["labelContent",""],["type","radio",3,"change","id","name","checked"],[3,"for"],[1,"tw-whitespace-nowrap"],[1,"tw-shrink-0","[&_bit-berry]:tw-flex",3,"hidden"]],template:function(e,t){1&e&&(r.NAR(d),r.rj2(0,"input",1),r.VwU("change",function(){return t.handleInputChange()}),r.eux(),r.rj2(1,"label",2)(2,"span",3,0),r.SdG(4),r.eux(),r.rj2(5,"span",4),r.SdG(6,1),r.eux()()),2&e&&(r.HbH(t.inputClasses),r.Avn("id",t.id)("name",t.name)("checked",t.selected()),r.R7$(),r.HbH(t.labelClasses),r.Avn("htmlFor",t.id),r.BMQ("aria-label",t.labelTitle()),r.R7$(4),r.Avn("hidden",!t.hasBerry()))},encapsulation:2,changeDetection:0})},5513(e,t,i){"use strict";i.d(t,{d:()=>g});var n=i(84653),r=i(38798),s=i(24590),o=i(11217),a=i(14041),l=i(63477);const c=[{id:"right-center",offsetX:10,originX:"end",originY:"center",overlayX:"start",overlayY:"center",panelClass:["bit-tooltip-right-center"]},{id:"left-center",offsetX:-10,originX:"start",originY:"center",overlayX:"end",overlayY:"center",panelClass:["bit-tooltip-left-center"]},{id:"below-center",offsetY:10,originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",panelClass:["bit-tooltip-below-center"]},{id:"above-center",offsetY:-10,originX:"center",originY:"top",overlayX:"center",overlayY:"bottom",panelClass:["bit-tooltip-above-center"]}];var d=i(46758);function u(e,t){if(1&e&&a.EFF(0),2&e){const e=a.XpG(2);a.JRh(e.tooltipData.content())}}function h(e,t){if(1&e&&(a.rj2(0,"div",0)(1,"div",1),a.SdG(2,0,null,u,1,1),a.eux()()),2&e){const e=a.XpG();a.BMQ("data-position",e.tooltipData.tooltipPosition())("data-visible",e.tooltipData.isVisible()),a.R7$(),a.Avn("id",e.tooltipData.id())}}const A=new o.nKC("TOOLTIP_DATA");class p{constructor(){this.templateRef=s.ebz.required(a.C4Q),this.elementRef=(0,o.WQX)(a.aKT),this.tooltipData=(0,o.WQX)(A)}}p.ɵfac=function(e){return new(e||p)},p.ɵcmp=a.VBU({type:p,selectors:[["bit-tooltip"]],viewQuery:function(e,t){1&e&&a.wEZ(t.templateRef,a.C4Q,5),2&e&&a.NyB()},ngContentSelectors:["*"],decls:1,vars:1,consts:[[1,"bit-tooltip-container"],["role","tooltip",1,"bit-tooltip",3,"id"]],template:function(e,t){1&e&&(a.NAR(),a.nVh(0,h,4,3,"div",0)),2&e&&a.vxM(t.tooltipData.content()?0:-1)},dependencies:[d.MD],encapsulation:2});class g{constructor(){this.tooltipContent=(0,s.geq)("",Object.assign(Object.assign({},{}),{alias:"bitTooltip"})),this.tooltipPosition=(0,s.hFB)("above-center"),this.addTooltipToDescribedby=(0,s.hFB)(!1),this.suppressed=(0,o.vPA)(!1),this.isVisible=(0,o.vPA)(!1),this.elementRef=(0,o.WQX)(a.aKT),this.overlay=(0,o.WQX)(n.hJ),this.viewContainerRef=(0,o.WQX)(a.c1b),this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.elementRef).withFlexibleDimensions(!1).withPush(!0),this.tooltipId="bit-tooltip-"+g.nextId++,this.currentDescribedByIds=this.elementRef.nativeElement.getAttribute("aria-describedby")||null,this.tooltipPortal=new r.A8(p,this.viewContainerRef,o.zZn.create({providers:[{provide:A,useValue:{content:this.tooltipContent,isVisible:this.isVisible,tooltipPosition:this.tooltipPosition,id:(0,o.vPA)(this.tooltipId)}}]})),this.destroyTooltip=()=>{var e;this.clearTimeout(),null===(e=this.overlayRef)||void 0===e||e.dispose(),this.overlayRef=void 0,this.isVisible.set(!1)},this.showTooltip=()=>{this.suppressed()||(this.clearTimeout(),this.overlayRef||(this.overlayRef=this.overlay.create(Object.assign(Object.assign({},this.defaultPopoverConfig),{positionStrategy:this.positionStrategy})),this.overlayRef.attach(this.tooltipPortal)),this.showTimeoutId=setTimeout(()=>{this.isVisible.set(!0),this.showTimeoutId=void 0},800))},this.hideTooltip=()=>{this.destroyTooltip()},this.resolvedDescribedByIds=(0,l.EW)(()=>this.addTooltipToDescribedby()?this.currentDescribedByIds?`${this.currentDescribedByIds||""} ${this.tooltipId}`:this.tooltipId:this.currentDescribedByIds),(0,o.QZP)(()=>{this.suppressed()&&this.destroyTooltip()})}clearTimeout(){void 0!==this.showTimeoutId&&(clearTimeout(this.showTimeoutId),this.showTimeoutId=void 0)}onFocusIn(e){e.target.matches(":focus-visible")&&this.showTooltip()}onFocusOut(){this.hideTooltip()}computePositions(e){const t=c.find(t=>t.id===e);return t?[t,...c]:c}get defaultPopoverConfig(){return{hasBackdrop:!1,scrollStrategy:this.overlay.scrollStrategies.reposition()}}ngOnInit(){this.positionStrategy.withPositions(this.computePositions(this.tooltipPosition()))}ngOnDestroy(){this.destroyTooltip()}}g.nextId=0,g.ɵfac=function(e){return new(e||g)},g.ɵdir=a.FsC({type:g,selectors:[["","bitTooltip",""]],hostVars:1,hostBindings:function(e,t){1&e&&a.bIt("mouseenter",function(){return t.showTooltip()})("mouseleave",function(){return t.hideTooltip()})("focusin",function(e){return t.onFocusIn(e)})("focusout",function(){return t.onFocusOut()}),2&e&&a.BMQ("aria-describedby",t.resolvedDescribedByIds())},inputs:{tooltipContent:[1,"bitTooltip","tooltipContent"],tooltipPosition:[1,"tooltipPosition"],addTooltipToDescribedby:[1,"addTooltipToDescribedby"]},outputs:{tooltipContent:"bitTooltipChange"}})},58806(e,t,i){"use strict";i.d(t,{r:()=>a});var n=i(24590),r=i(14041);const s={h1:["!tw-text-3xl","tw-text-main","tw-font-medium"],h2:["!tw-text-2xl","tw-text-main","tw-font-medium"],h3:["!tw-text-xl","tw-text-main","tw-font-medium"],h4:["!tw-text-lg","tw-text-main","tw-font-medium"],h5:["!tw-text-base","tw-text-main","tw-font-medium"],h6:["!tw-text-sm","tw-text-main","tw-font-medium"],body1:["!tw-text-base"],body2:["!tw-text-sm"],helper:["!tw-text-xs"]},o={h1:["tw-mb-2"],h2:["tw-mb-2"],h3:["tw-mb-2"],h4:["tw-mb-2"],h5:["tw-mb-1.5"],h6:["tw-mb-1.5"],body1:[],body2:[],helper:[]};class a{constructor(){this.bitTypography=n.hFB.required(),this.noMargin=(0,n.hFB)(!1,Object.assign(Object.assign({},{}),{transform:n.L39}))}get classList(){return s[this.bitTypography()].concat(this.noMargin()?[]:o[this.bitTypography()])}}a.ɵfac=function(e){return new(e||a)},a.ɵdir=r.FsC({type:a,selectors:[["","bitTypography",""]],hostVars:2,hostBindings:function(e,t){2&e&&r.HbH(t.classList)},inputs:{bitTypography:[1,"bitTypography"],noMargin:[1,"noMargin"]}})},75583(e,t,i){"use strict";i.d(t,{E:()=>s});var n=i(14041),r=i(11217);class s{}s.ɵfac=function(e){return new(e||s)},s.ɵmod=n.$C({type:s}),s.ɵinj=r.G2t({})},6307(e,t,i){"use strict";i.d(t,{m:()=>r});var n=i(92128);function r(e,t){(0,n.br)(t).pipe((0,n.pQ)()).subscribe(t=>{t?(e.removeAttribute("disabled"),e.setAttribute("aria-disabled","true")):e.removeAttribute("aria-disabled")})}},26038(e,t,i){"use strict";i.d(t,{Z:()=>l});var n=i(28046),r=i(98569),s=i(83604),o=i(92567),a=i(78781);function l(e){let t;try{t=e()}catch(i){return(0,o.$)(()=>i)}return a.A.isPromise(t)?(0,r.H)(t):t instanceof n.c?t:(0,s.of)(t)}},53323(e,t,i){"use strict";i.d(t,{W_:()=>s,aq:()=>r});const n=/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;function r(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function s(e){return n.test(e)}},95713(e,t,i){"use strict";i.d(t,{Pi:()=>Va,F3:()=>be,Uz:()=>ye,AM:()=>W});var n=i(46758),r=i(94735),s=i(55542),o=i(88744),a=i(81573),l=i(47659),c=i(29029),d=i(14041),u=i(44075),h=i(7730),A=i(45635),p=i(67311),g=i(38410),v=i(22466),m=i(36572),f=i(56898),y=i(25740);function b(e,t){if(1&e&&(d.j41(0,"tr",9)(1,"td",4),d.EFF(2),d.k0s(),d.j41(3,"td",4),d.EFF(4),d.k0s()()),2&e){const e=t.$implicit;d.R7$(2),d.JRh(e.type),d.R7$(2),d.JRh(e.message)}}function C(e,t){if(1&e&&(d.DNE(0,b,5,2,"tr",8),d.nI1(1,"async")),2&e){const e=t.$implicit;d.Y8G("ngForOf",d.bMT(1,1,e))}}class I{constructor(e,t){this.dialogRef=e,this.data=t,this.dataSource=new s.s}ngOnInit(){const e=this.data.message.split("\n\n");if(1==e.length)return void(this.dataSource.data=[{type:"",message:this.data.message}]);const t=[];e.forEach(e=>{t.push({type:"",message:e})}),this.dataSource.data=t}}I.ɵfac=function(e){return new(e||I)(d.rXU(u.ce),d.rXU(o.Qs))},I.ɵcmp=d.VBU({type:I,selectors:[["ng-component"]],decls:22,vars:16,consts:[["bitDialogTitle",""],["bitDialogContent",""],[3,"dataSource"],["header",""],["bitCell",""],["body",""],["bitDialogFooter",""],["bitButton","","bitDialogClose","","buttonType","primary","type","button"],["bitRow","",4,"ngFor","ngForOf"],["bitRow",""]],template:function(e,t){1&e&&(d.j41(0,"bit-dialog")(1,"span",0),d.EFF(2),d.nI1(3,"i18n"),d.k0s(),d.j41(4,"span",1)(5,"div"),d.EFF(6),d.nI1(7,"i18n"),d.k0s(),d.j41(8,"bit-table",2),d.qex(9,3),d.j41(10,"tr")(11,"th",4),d.EFF(12),d.nI1(13,"i18n"),d.k0s(),d.j41(14,"th",4),d.EFF(15),d.nI1(16,"i18n"),d.k0s()(),d.bVm(),d.DNE(17,C,2,3,"ng-template",5),d.k0s()(),d.qex(18,6),d.j41(19,"button",7),d.EFF(20),d.nI1(21,"i18n"),d.k0s(),d.bVm(),d.k0s()),2&e&&(d.R7$(2),d.SpI(" ",d.bMT(3,6,"importError")," "),d.R7$(4),d.JRh(d.bMT(7,8,"resolveTheErrorsBelowAndTryAgain")),d.R7$(2),d.Y8G("dataSource",t.dataSource),d.R7$(4),d.JRh(d.bMT(13,10,"name")),d.R7$(3),d.JRh(d.bMT(16,12,"description")),d.R7$(5),d.SpI(" ",d.bMT(21,14,"ok")," "))},dependencies:[n.MD,n.Sq,r.p,a.P,h.I,A.m,p.hJ,l.b,g.Q,v.Y,m._,m.O,c.t,f.Q,n.Jj,y.$],encapsulation:2});var w=i(81356),B=i(36801),E=i(11217),S=i(26983);function Q(e,t){if(1&e&&(d.j41(0,"tr",10)(1,"td",4),d.nrm(2,"i",11),d.EFF(3),d.nI1(4,"i18n"),d.k0s(),d.j41(5,"td",4),d.EFF(6),d.k0s()()),2&e){const e=t.$implicit;d.R7$(2),d.HbH(d.VkB("bwi bwi-fw bwi-",e.icon)),d.R7$(),d.SpI(" ",d.bMT(4,5,e.type)," "),d.R7$(3),d.JRh(e.count)}}function k(e,t){if(1&e&&(d.DNE(0,Q,7,7,"tr",9),d.nI1(1,"async")),2&e){const e=t.$implicit;d.Y8G("ngForOf",d.bMT(1,1,e))}}function R(e,t){if(1&e){const e=d.RV6();d.j41(0,"button",12),d.bIt("click",function(){E.eBV(e);const t=d.XpG();return E.Njj(t.navigateBack())}),d.EFF(1),d.k0s()}if(2&e){const e=d.XpG();d.R7$(),d.SpI(" ",e.data.returnLabel," ")}}function F(e,t){1&e&&(d.j41(0,"button",8),d.EFF(1),d.nI1(2,"i18n"),d.k0s()),2&e&&(d.R7$(),d.SpI(" ",d.bMT(2,1,"ok")," "))}class T{get hasReturnDestination(){return!!this.data.returnUrl&&!!this.data.returnLabel}get totalImported(){var e,t;return null!=this.data.sdkSummary?this.data.sdkSummary.ciphers.reduce((e,t)=>e+t.count,0):null!==(t=null===(e=this.data.importResult)||void 0===e?void 0:e.ciphers.length)&&void 0!==t?t:0}constructor(e,t,i){this.dialogRef=e,this.router=t,this.data=i,this.dataSource=new s.s,this.cipherTypeRows=[{type:w.gC.Login,icon:"globe",label:"typeLogin"},{type:w.gC.Card,icon:"credit-card",label:"typeCard"},{type:w.gC.Identity,icon:"id-card",label:"typeIdentity"},{type:w.gC.SecureNote,icon:"sticky-note",label:"typeSecureNote"},{type:w.gC.SshKey,icon:"key",label:"typeSshKey"}]}ngOnInit(){null==this.data.importResult&&null==this.data.sdkSummary||(this.dataSource.data=this.buildResultList())}navigateBack(){this.dialogRef.close(),this.data.returnUrl&&this.router.navigateByUrl(this.data.returnUrl)}buildResultList(){return null!=this.data.sdkSummary?this.buildResultListFromSummary(this.data.sdkSummary):this.buildResultListFromImportResult()}buildResultListFromSummary(e){const t=[];for(const i of this.cipherTypeRows){const n=e.ciphers.filter(e=>e.type===i.type).reduce((e,t)=>e+t.count,0);n>0&&t.push({icon:i.icon,type:i.label,count:n})}return e.folders>0&&t.push({icon:"folder",type:"folders",count:e.folders}),e.collections>0&&t.push({icon:"collection",type:"collections",count:e.collections}),t}buildResultListFromImportResult(){const e=this.data.importResult;if(null==e)return[];let t=0,i=0,n=0,r=0,s=0;e.ciphers.forEach(e=>{switch(e.type){case w.gC.Login:t++;break;case w.gC.Card:i++;break;case w.gC.SecureNote:r++;break;case w.gC.Identity:n++;break;case w.gC.SshKey:s++}});const o=[];return t>0&&o.push({icon:"globe",type:"typeLogin",count:t}),i>0&&o.push({icon:"credit-card",type:"typeCard",count:i}),n>0&&o.push({icon:"id-card",type:"typeIdentity",count:n}),r>0&&o.push({icon:"sticky-note",type:"typeSecureNote",count:r}),s>0&&o.push({icon:"key",type:"typeSshKey",count:s}),e.folders.length>0&&o.push({icon:"folder",type:"folders",count:e.folders.length}),e.collections.length>0&&o.push({icon:"collection",type:"collections",count:e.collections.length}),o}}T.ɵfac=function(e){return new(e||T)(d.rXU(u.ce),d.rXU(S.Ix),d.rXU(o.Qs))},T.ɵcmp=d.VBU({type:T,selectors:[["ng-component"]],decls:21,vars:15,consts:[["bitDialogTitle",""],["bitDialogContent",""],[3,"dataSource"],["header",""],["bitCell",""],["body",""],["bitDialogFooter",""],["data-testid","return-button","bitButton","","buttonType","primary","type","button","endIcon","bwi-arrow-right"],["data-testid","ok-button","bitButton","","bitDialogClose","","buttonType","primary","type","button"],["bitRow","",4,"ngFor","ngForOf"],["bitRow",""],["aria-hidden","true"],["data-testid","return-button","bitButton","","buttonType","primary","type","button","endIcon","bwi-arrow-right",3,"click"]],template:function(e,t){1&e&&(d.j41(0,"bit-dialog")(1,"span",0),d.EFF(2),d.nI1(3,"i18n"),d.k0s(),d.j41(4,"div",1)(5,"span"),d.EFF(6),d.nI1(7,"i18n"),d.k0s(),d.j41(8,"bit-table",2),d.qex(9,3),d.j41(10,"tr")(11,"th",4),d.EFF(12),d.nI1(13,"i18n"),d.k0s(),d.j41(14,"th",4),d.EFF(15),d.nI1(16,"i18n"),d.k0s()(),d.bVm(),d.DNE(17,k,2,3,"ng-template",5),d.k0s()(),d.qex(18,6),d.nVh(19,R,2,1,"button",7)(20,F,3,3,"button",8),d.bVm(),d.k0s()),2&e&&(d.R7$(2),d.SpI(" ",d.bMT(3,6,"importSuccess")," "),d.R7$(4),d.JRh(d.i5U(7,8,"importSuccessNumberOfItems",t.totalImported)),d.R7$(2),d.Y8G("dataSource",t.dataSource),d.R7$(4),d.JRh(d.bMT(13,11,"type")),d.R7$(3),d.JRh(d.bMT(16,13,"total")),d.R7$(4),d.vxM(t.hasReturnDestination?19:20))},dependencies:[n.MD,n.Sq,a.P,h.I,A.m,p.hJ,l.b,g.Q,v.Y,m._,m.O,c.t,f.Q,n.Jj,B.$Z],encapsulation:2});var D=i(84210),P=i(26411),M=i(37579),x=i(22191),V=i(49519),G=i(57083),U=i(86226),O=i(19934),N=i(43759),j=i(76356),Y=i(69896),X=i(38620),z=i(36288);class L{constructor(e,t){this.dialogRef=e,this.formBuilder=t,this.formGroup=this.formBuilder.group({filePassword:["",D.k0.required]}),this.submit=()=>{this.formGroup.markAsTouched(),this.formGroup.valid&&this.dialogRef.close(this.formGroup.value.filePassword)}}}L.ɵfac=function(e){return new(e||L)(d.rXU(u.ce),d.rXU(D.ok))},L.ɵcmp=d.VBU({type:L,selectors:[["ng-component"]],decls:22,vars:17,consts:[["bit-dialog","",3,"formGroup","bitSubmit"],["bitDialogTitle",""],["bitDialogContent",""],[1,"tw-mt-6"],["bitInput","","type","password","formControlName","filePassword","appAutofocus","","appInputVerbatim",""],["type","button","bitSuffix","","bitIconButton","","bitPasswordInputToggle",""],["bitDialogFooter",""],["bitButton","","buttonType","primary","type","submit"],["bitButton","","bitDialogClose","","buttonType","secondary","type","button"]],template:function(e,t){1&e&&(d.j41(0,"form",0)(1,"span",1),d.EFF(2),d.nI1(3,"i18n"),d.k0s(),d.j41(4,"div",2),d.EFF(5),d.nI1(6,"i18n"),d.j41(7,"bit-form-field",3)(8,"bit-label"),d.EFF(9),d.nI1(10,"i18n"),d.k0s(),d.nrm(11,"input",4)(12,"button",5),d.k0s()(),d.qex(13,6),d.j41(14,"button",7)(15,"span"),d.EFF(16),d.nI1(17,"i18n"),d.k0s()(),d.j41(18,"button",8)(19,"span"),d.EFF(20),d.nI1(21,"i18n"),d.k0s()(),d.bVm(),d.k0s()),2&e&&(d.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit),d.R7$(2),d.SpI(" ",d.bMT(3,7,"confirmVaultImport")," "),d.R7$(3),d.SpI(" ",d.bMT(6,9,"confirmVaultImportDesc")," "),d.R7$(4),d.JRh(d.bMT(10,11,"confirmFilePassword")),d.R7$(7),d.JRh(d.bMT(17,13,"importVerb")),d.R7$(4),d.JRh(d.bMT(21,15,"cancel")))},dependencies:[n.MD,r.p,V.B,G.q,a.P,h.I,A.m,p.hJ,P.L,U.j,O.J,N.h,j.e,Y.a,M.C,X.L,c.t,f.Q,x.Q,z.s,D.X1,D.qT,D.me,D.BC,D.cb,D.j4,D.JD,y.$],encapsulation:2});class W{constructor(e,t){this.dialogRef=e,this.formBuilder=t,this.formGroup=this.formBuilder.group({sshKeyPassword:["",D.k0.required]}),this.submit=()=>{this.formGroup.markAsTouched(),this.formGroup.valid&&this.dialogRef.close(this.formGroup.value.sshKeyPassword)}}}W.ɵfac=function(e){return new(e||W)(d.rXU(u.ce),d.rXU(D.ok))},W.ɵcmp=d.VBU({type:W,selectors:[["ng-component"]],decls:22,vars:17,consts:[["bit-dialog","",3,"formGroup","bitSubmit"],["bitDialogTitle",""],["bitDialogContent",""],[1,"tw-mt-6"],["bitInput","","type","password","formControlName","sshKeyPassword","appAutofocus","","appInputVerbatim",""],["type","button","bitSuffix","","bitIconButton","","bitPasswordInputToggle",""],["bitDialogFooter",""],["bitButton","","buttonType","primary","type","submit"],["bitButton","","bitDialogClose","","buttonType","secondary","type","button"]],template:function(e,t){1&e&&(d.j41(0,"form",0)(1,"span",1),d.EFF(2),d.nI1(3,"i18n"),d.k0s(),d.j41(4,"div",2),d.EFF(5),d.nI1(6,"i18n"),d.j41(7,"bit-form-field",3)(8,"bit-label"),d.EFF(9),d.nI1(10,"i18n"),d.k0s(),d.nrm(11,"input",4)(12,"button",5),d.k0s()(),d.qex(13,6),d.j41(14,"button",7)(15,"span"),d.EFF(16),d.nI1(17,"i18n"),d.k0s()(),d.j41(18,"button",8)(19,"span"),d.EFF(20),d.nI1(21,"i18n"),d.k0s()(),d.bVm(),d.k0s()),2&e&&(d.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit),d.R7$(2),d.SpI(" ",d.bMT(3,7,"enterSshKeyPassword")," "),d.R7$(3),d.SpI(" ",d.bMT(6,9,"enterSshKeyPasswordDesc")," "),d.R7$(4),d.JRh(d.bMT(10,11,"confirmSshKeyPassword")),d.R7$(7),d.JRh(d.bMT(17,13,"importSshKey")),d.R7$(4),d.JRh(d.bMT(21,15,"cancel")))},dependencies:[n.MD,r.p,V.B,G.q,a.P,h.I,A.m,p.hJ,P.L,U.j,O.J,N.h,j.e,Y.a,M.C,X.L,c.t,f.Q,x.Q,z.s,D.X1,D.qT,D.me,D.BC,D.cb,D.j4,D.JD,y.$],encapsulation:2});var K=i(21571),Z=i(21495),H=i(12012),J=i(18499),q=i(35500),$=i(8943),_=i(89105),ee=i(1601),te=i(50700),ie=i(56962),ne=i(37115),re=i(66523),se=i(97445),oe=i(43946),ae=i(43348),le=i(25304),ce=i(48856),de=i(8936);var ue=i(63344),he=i(20136);var Ae=i(5556),pe=i(74526),ge=i(66983),ve=i(8916),me=i(31066),fe=i(69196);const ye=new B.aZ("SystemServices"),be=[(0,Z.F)({provide:fe.RI,useClass:fe.Bd,deps:[H.G]}),(0,Z.F)({provide:oe.p,useClass:se.p,deps:[_.N,ve.Lu,re.K5]}),(0,Z.F)({provide:ae.F,useFactory:()=>function(){const e=new ce.T(le.iP,le.xN);for(const t of Reflect.ownKeys(le.YY))e.registerSite(le.YY[t]);for(const t of de.G)e.registerVendor(t);for(const t of de.B)e.registerExtension(t);return e}(),deps:[]}),(0,Z.F)({provide:ye,useFactory:function(e,t,i,n,r,s,o){let a;return a=s.isDev()?(0,he.oR)(r,[]):he.S2,{policy:i,extension:new ue.r(n,{encryptor:e,state:t,log:a,now:Date.now}),log:a,configService:o,environment:s}},deps:[oe.p,me.v2,J.m,ae.F,ie.K,ne.y,ee.w]}),(0,Z.F)({provide:fe.Tt,useClass:fe.XM,deps:[Ae.p,pe.k,fe.RI,te.W,K.YD,ve.Lu,_.N,$.$9,q.D,ge.b,re.K5]})];var Ce=i(63477),Ie=i(24590),we=i(92128),Be=i(73366),Ee=i(51151),Se=i(66316),Qe=i(80351),ke=i(75583),Re=i(8433),Fe=i(73611),Te=i(58798);const De=(0,Fe.w)("CgpwdXNoLnByb3RvEgRQdXNoIloKF1VzZXJSZWdpc3RyYXRpb25SZXF1ZXN0EhkKEW1lc3NhZ2VTZXNzaW9uVWlkGAEgASgMEg4KBnVzZXJJZBgCIAEoBRIUCgxlbnRlcnByaXNlSWQYAyABKAUirwEKFUtBVG9QdXNoU2VydmVyUmVxdWVzdBImCgttZXNzYWdlVHlwZRgBIAEoDjIRLlB1c2guT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",e[e.DEVICE=8]="DEVICE",e[e.TOTP=9]="TOTP"}(xe||(xe={}));const Ve=Object.freeze({DecryptionFailed:"decryptionFailed",UnsupportedVersion:"unsupportedVersion",FolderDecryptionFailed:"folderDecryptionFailed"});var Ge=i(73183),Ue=i(37553),Oe=i(36022);const Ne=Object.freeze({Email:1,KeeperPush:2,TwoFactor:3,AdminApproval:4}),je=Object.freeze({Push:1,Code:2}),Ye=Object.freeze({Push:1,Sms:2,Voice:3,Passcode:4}),Xe=Object.freeze({Us:"keepersecurity.com",Eu:"keepersecurity.eu",Au:"keepersecurity.com.au",Ca:"keepersecurity.ca",Jp:"keepersecurity.jp",UsGov:"govcloud.keepersecurity.us"}),ze=Object.freeze({Totp:1,Sms:2,Duo:3,Rsa:4,Backup:5,U2f:6,WebAuthn:7,KeeperPush:8,KeeperDna:9}),Le=Object.freeze({Cancelled:1,MfaFailed:2,UnsupportedTwoFactorMethod:3,SocketError:4});class We extends Error{constructor(e,t){super(t),this.name="KeeperAuthError",this.code=e}}const Ke=(0,Fe.w)("ChBlbnRlcnByaXNlLnByb3RvEgpFbnRlcnByaXNlIoQBChhFbnRlcnByaXNlS2V5UGFpclJlcXVlc3QSGwoTZW50ZXJwcmlzZVB1YmxpY0tleRgBIAEoDBIlCh1lbmNyeXB0ZWRFbnRlcnByaXNlUHJpdmF0ZUtleRgCIAEoDBIkCgdrZXlUeXBlGAMgASgOMhMuRW50ZXJwcmlzZS5LZXlUeXBlIicKFEdldFRlYW1NZW1iZXJSZXF1ZXN0Eg8KB3RlYW1VaWQYASABKAwifQoORW50ZXJwcmlzZVVzZXISGAoQZW50ZXJwcmlzZVVzZXJJZBgBIAEoAxINCgVlbWFpbBgCIAEoCRIaChJlbnRlcnByaXNlVXNlcm5hbWUYAyABKAkSFAoMaXNTaGFyZUFkbWluGAQgASgIEhAKCHVzZXJuYW1lGAUgASgJIksKFUdldFRlYW1NZW1iZXJSZXNwb25zZRIyCg5lbnRlcnByaXNlVXNlchgBIAMoCz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c1Jlc3VsdBILCgdTVUNDRVNTEAASGgoWTk9UX0FOX0VOVEVSUFJJU0VfVVNFUhABEhYKEkNBTk5PVF9ERUxFVEVfU0VMRhACEiQKIEJSSURHRV9DQU5OT1RfREVMRVRFX0FDVElWRV9VU0VSEAMSCQoFRVJST1IQBCqHAQoVQ2xlYXJTZWN1cml0eURhdGFUeXBlEh4KGlJFQ0FMQ1VMQVRFX1NVTU1BUllfUkVQT1JUEAASJwojRk9SQ0VfQ0xJRU5UX0NIRUNLX0ZPUl9NSVNTSU5HX0RBVEEQARIlCiFGT1JDRV9DTElFTlRfUkVTRU5EX1NFQ1VSSVRZX0RBVEEQAmIGcHJvdG8z");var Ze;!function(e){e[e.RSA=0]="RSA",e[e.ECC=1]="ECC"}(Ze||(Ze={}));var He;!function(e){e[e.ROLE_EXISTS=0]="ROLE_EXISTS",e[e.MISSING_TREE_KEY=1]="MISSING_TREE_KEY",e[e.MISSING_ROLE_KEY=2]="MISSING_ROLE_KEY",e[e.INVALID_ENTERPRISE_USER_ID=3]="INVALID_ENTERPRISE_USER_ID",e[e.PENDING_ENTERPRISE_USER=4]="PENDING_ENTERPRISE_USER",e[e.INVALID_NODE_ID=5]="INVALID_NODE_ID",e[e.MAY_NOT_REMOVE_SELF_FROM_ROLE=6]="MAY_NOT_REMOVE_SELF_FROM_ROLE",e[e.MUST_HAVE_ONE_USER_ADMIN=7]="MUST_HAVE_ONE_USER_ADMIN"}(He||(He={}));var Je;!function(e){e[e.ENTERPRISE_STANDARD=0]="ENTERPRISE_STANDARD",e[e.ENTERPRISE_MSP=1]="ENTERPRISE_MSP"}(Je||(Je={}));var qe;!function(e){e[e.UNDEFINED=0]="UNDEFINED",e[e.NOT_REQUIRED=1]="NOT_REQUIRED",e[e.NOT_ACCEPTED=2]="NOT_ACCEPTED",e[e.PARTIALLY_ACCEPTED=3]="PARTIALLY_ACCEPTED",e[e.ACCEPTED=4]="ACCEPTED"}(qe||(qe={}));var $e;!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.NODES=1]="NODES",e[e.ROLES=2]="ROLES",e[e.USERS=3]="USERS",e[e.TEAMS=4]="TEAMS",e[e.TEAM_USERS=5]="TEAM_USERS",e[e.ROLE_USERS=6]="ROLE_USERS",e[e.ROLE_PRIVILEGES=7]="ROLE_PRIVILEGES",e[e.ROLE_ENFORCEMENTS=8]="ROLE_ENFORCEMENTS",e[e.ROLE_TEAMS=9]="ROLE_TEAMS",e[e.LICENSES=10]="LICENSES",e[e.MANAGED_NODES=11]="MANAGED_NODES",e[e.MANAGED_COMPANIES=12]="MANAGED_COMPANIES",e[e.BRIDGES=13]="BRIDGES",e[e.SCIMS=14]="SCIMS",e[e.EMAIL_PROVISION=15]="EMAIL_PROVISION",e[e.QUEUED_TEAMS=16]="QUEUED_TEAMS",e[e.QUEUED_TEAM_USERS=17]="QUEUED_TEAM_USERS",e[e.SSO_SERVICES=18]="SSO_SERVICES",e[e.REPORT_FILTER_USERS=19]="REPORT_FILTER_USERS",e[e.DEVICES_REQUEST_FOR_ADMIN_APPROVAL=20]="DEVICES_REQUEST_FOR_ADMIN_APPROVAL",e[e.USER_ALIASES=21]="USER_ALIASES",e[e.COMPLIANCE_REPORT_CRITERIA_AND_FILTER=22]="COMPLIANCE_REPORT_CRITERIA_AND_FILTER",e[e.COMPLIANCE_REPORTS=23]="COMPLIANCE_REPORTS",e[e.QUEUED_TEAM_USERS_INCLUDING_PENDING=24]="QUEUED_TEAM_USERS_INCLUDING_PENDING"}($e||($e={}));var _e;!function(e){e[e.KEEP=0]="KEEP",e[e.CLEAR=1]="CLEAR"}(_e||(_e={}));var et;!function(e){e[e.NO_KEY=0]="NO_KEY",e[e.ENCRYPTED_BY_DATA_KEY=1]="ENCRYPTED_BY_DATA_KEY",e[e.ENCRYPTED_BY_PUBLIC_KEY=2]="ENCRYPTED_BY_PUBLIC_KEY",e[e.ENCRYPTED_BY_DATA_KEY_GCM=3]="ENCRYPTED_BY_DATA_KEY_GCM",e[e.ENCRYPTED_BY_PUBLIC_KEY_ECC=4]="ENCRYPTED_BY_PUBLIC_KEY_ECC"}(et||(et={}));var tt;!function(e){e[e.OWN=0]="OWN",e[e.SHARED_TO_ENTERPRISE=1]="SHARED_TO_ENTERPRISE"}(tt||(tt={}));var it;!function(e){e[e.KT_NO_KEY=0]="KT_NO_KEY",e[e.KT_ENCRYPTED_BY_DATA_KEY=1]="KT_ENCRYPTED_BY_DATA_KEY",e[e.KT_ENCRYPTED_BY_PUBLIC_KEY=2]="KT_ENCRYPTED_BY_PUBLIC_KEY",e[e.KT_ENCRYPTED_BY_DATA_KEY_GCM=3]="KT_ENCRYPTED_BY_DATA_KEY_GCM",e[e.KT_ENCRYPTED_BY_PUBLIC_KEY_ECC=4]="KT_ENCRYPTED_BY_PUBLIC_KEY_ECC"}(it||(it={}));var nt;!function(e){e[e.INVALID=0]="INVALID",e[e.ALLOW_PERSONAL_LICENSE=1]="ALLOW_PERSONAL_LICENSE",e[e.SPECIAL_PROVISIONING=2]="SPECIAL_PROVISIONING",e[e.RECORD_TYPES=3]="RECORD_TYPES",e[e.SECRETS_MANAGER=4]="SECRETS_MANAGER",e[e.ENTERPRISE_LOCKED=5]="ENTERPRISE_LOCKED",e[e.FORBID_KEY_TYPE_2=6]="FORBID_KEY_TYPE_2",e[e.CONSOLE_ONBOARDED=7]="CONSOLE_ONBOARDED",e[e.FORBID_ACCOUNT_TRANSFER=8]="FORBID_ACCOUNT_TRANSFER",e[e.NPS_POPUP_OPT_OUT=9]="NPS_POPUP_OPT_OUT",e[e.SHOW_USER_ONBOARD=10]="SHOW_USER_ONBOARD"}(nt||(nt={}));var rt;!function(e){e[e.USER_UPDATE_OK=0]="USER_UPDATE_OK",e[e.USER_UPDATE_ACCESS_DENIED=1]="USER_UPDATE_ACCESS_DENIED"}(rt||(rt={}));var st;!function(e){e[e.OK=0]="OK",e[e.ACCESS_DENIED=1]="ACCESS_DENIED",e[e.NO_LONGER_IN_ENTERPRISE=2]="NO_LONGER_IN_ENTERPRISE"}(st||(st={}));var ot;!function(e){e[e.USER=0]="USER",e[e.ADMIN=1]="ADMIN",e[e.ADMIN_ONLY=2]="ADMIN_ONLY"}(ot||(ot={}));var at;!function(e){e[e.NOT_USED=0]="NOT_USED",e[e.GENERAL=1]="GENERAL",e[e.DISCOVERY_AND_ROTATION_CONTROLLER=2]="DISCOVERY_AND_ROTATION_CONTROLLER",e[e.KCM_CONTROLLER=3]="KCM_CONTROLLER",e[e.SELF_DESTRUCT=4]="SELF_DESTRUCT"}(at||(at={}));var lt;!function(e){e[e.SUCCESS=0]="SUCCESS",e[e.NOT_AN_ENTERPRISE_USER=1]="NOT_AN_ENTERPRISE_USER",e[e.CANNOT_DELETE_SELF=2]="CANNOT_DELETE_SELF",e[e.BRIDGE_CANNOT_DELETE_ACTIVE_USER=3]="BRIDGE_CANNOT_DELETE_ACTIVE_USER",e[e.ERROR=4]="ERROR"}(lt||(lt={}));var ct;!function(e){e[e.RECALCULATE_SUMMARY_REPORT=0]="RECALCULATE_SUMMARY_REPORT",e[e.FORCE_CLIENT_CHECK_FOR_MISSING_DATA=1]="FORCE_CLIENT_CHECK_FOR_MISSING_DATA",e[e.FORCE_CLIENT_RESEND_SECURITY_DATA=2]="FORCE_CLIENT_RESEND_SECURITY_DATA"}(ct||(ct={}));const dt=(0,Fe.w)("ChFhcGktcmVxdWVzdC5wcm90bxIOQXV0aGVudGljYXRpb24isAEKCkFwaVJlcXVlc3QSIAoYZW5jcnlwdGVkVHJhbnNtaXNzaW9uS2V5GAEgASgMEhMKC3B1YmxpY0tleUlkGAIgASgFEg4KBmxvY2FsZRgDIAEoCRIYChBlbmNyeXB0ZWRQYXlsb2FkGAQgASgMEhYKDmVuY3J5cHRpb25UeXBlGAUgASgFEhEKCXJlY2FwdGNoYRgGIAEoCRIWCg5zdWJFbnZpcm9ubWVudBgHIAEoCSJqChFBcGlSZXF1ZXN0UGF5bG9hZBIPCgdwYXlsb2FkGAEgASgMEh0KFWVuY3J5cHRlZFNlc3Np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hADKjwKDUJhY2t1cEtleVR5cGUSEgoOQktUX1NFQ19BTlNXRVIQABIXChNCS1RfUEFTU1BIUkFTRV9IQVNIEAEqVwoNR2VuZXJpY1N0YXR1cxILCgdTVUNDRVNTEAASEgoOSU5WQUxJRF9PQkpFQ1QQARISCg5BTFJFQURZX0VYSVNUUxACEhEKDUFDQ0VTU19ERU5JRUQQAypOChdBdXRoZW50aWNhdG9yQXR0YWNobWVudBISCg5DUk9TU19QTEFURk9STRAAEgwKCFBMQVRGT1JNEAESEQoNQUxMX1NVUFBPUlRFRBACKi0KDlBhc3NrZXlQdXJwb3NlEgwKCFBLX0xPR0lOEAASDQoJUEtfUkVBVVRIEAEqSwoQQ2xpZW50Rm9ybUZhY3RvchIMCghGRl9FTVBUWRAAEgwKCEZGX1BIT05FEAESDQoJRkZfVEFCTEVUEAISDAoIRkZfV0FUQ0gQA2IGcHJvdG8z",[Ke]),ut=(0,Te.Z)(dt,0),ht=(0,Te.Z)(dt,1),At=(0,Te.Z)(dt,11),pt=(0,Te.Z)(dt,12),gt=(0,Te.Z)(dt,19),vt=(0,Te.Z)(dt,28),mt=(0,Te.Z)(dt,29),ft=(0,Te.Z)(dt,30),yt=(0,Te.Z)(dt,38),bt=(0,Te.Z)(dt,77),Ct=(0,Te.Z)(dt,78),It=(0,Te.Z)(dt,79),wt=(0,Te.Z)(dt,88),Bt=(0,Te.Z)(dt,91);var Et;!function(e){e[e.ENGLISH=0]="ENGLISH",e[e.ARABIC=1]="ARABIC",e[e.BRITISH=2]="BRITISH",e[e.CHINESE=3]="CHINESE",e[e.CHINESE_HONG_KONG=4]="CHINESE_HONG_KONG",e[e.CHINESE_TAIWAN=5]="CHINESE_TAIWAN",e[e.DUTCH=6]="DUTCH",e[e.FRENCH=7]="FRENCH",e[e.GERMAN=8]="GERMAN",e[e.GREEK=9]="GREEK",e[e.HEBREW=10]="HEBREW",e[e.ITALIAN=11]="ITALIAN",e[e.JAPANESE=12]="JAPANESE",e[e.KOREAN=13]="KOREAN",e[e.POLISH=14]="POLISH",e[e.PORTUGUESE=15]="PORTUGUESE",e[e.PORTUGUESE_BRAZIL=16]="PORTUGUESE_BRAZIL",e[e.ROMANIAN=17]="ROMANIAN",e[e.RUSSIAN=18]="RUSSIAN",e[e.SLOVAK=19]="SLOVAK",e[e.SPANISH=20]="SPANISH",e[e.FINNISH=21]="FINNISH",e[e.SWEDISH=22]="SWEDISH"}(Et||(Et={}));var St;!function(e){e[e.NORMAL=0]="NORMAL",e[e.SSO=1]="SSO",e[e.BIO=2]="BIO",e[e.ALTERNATE=3]="ALTERNATE",e[e.OFFLINE=4]="OFFLINE",e[e.FORGOT_PASSWORD=5]="FORGOT_PASSWORD",e[e.PASSKEY_BIO=6]="PASSKEY_BIO"}(St||(St={}));var Qt;!function(e){e[e.DEVICE_NEEDS_APPROVAL=0]="DEVICE_NEEDS_APPROVAL",e[e.DEVICE_OK=1]="DEVICE_OK",e[e.DEVICE_DISABLED_BY_USER=2]="DEVICE_DISABLED_BY_USER",e[e.DEVICE_LOCKED_BY_ADMIN=3]="DEVICE_LOCKED_BY_ADMIN"}(Qt||(Qt={}));var kt;!function(e){e[e.OTHER=0]="OTHER",e[e.ACTIVE=1]="ACTIVE",e[e.EXPIRED=2]="EXPIRED",e[e.DISABLED=3]="DISABLED"}(kt||(kt={}));var Rt;!function(e){e[e.CONSUMER=0]="CONSUMER",e[e.FAMILY=1]="FAMILY",e[e.ENTERPRISE=2]="ENTERPRISE"}(Rt||(Rt={}));var Ft;!function(e){e[e.NO_RESTRICTION=0]="NO_RESTRICTION",e[e.ACCOUNT_RECOVERY=1]="ACCOUNT_RECOVERY",e[e.SHARE_ACCOUNT=2]="SHARE_ACCOUNT",e[e.PURCHASE=3]="PURCHASE",e[e.RESTRICT=4]="RESTRICT",e[e.ACCEPT_INVITE=5]="ACCEPT_INVITE",e[e.SUPPORT_SERVER=6]="SUPPORT_SERVER",e[e.ENTERPRISE_CREATION=7]="ENTERPRISE_CREATION",e[e.EXPIRED_BUT_ALLOWED_TO_SYNC=8]="EXPIRED_BUT_ALLOWED_TO_SYNC",e[e.ACCEPT_FAMILY_INVITE=9]="ACCEPT_FAMILY_INVITE",e[e.ENTERPRISE_CREATION_PURCHASED=10]="ENTERPRISE_CREATION_PURCHASED",e[e.EMERGENCY_ACCESS=11]="EMERGENCY_ACCESS"}(Ft||(Ft={}));var Tt;!function(e){e[e.invalid_version=0]="invalid_version",e[e.default_version=1]="default_version",e[e.second_version=2]="second_version"}(Tt||(Tt={}));var Dt;!function(e){e[e.UNMASK=0]="UNMASK",e[e.COPY=1]="COPY"}(Dt||(Dt={}));var Pt;!function(e){e[e.INVALID_LOGINMETHOD=0]="INVALID_LOGINMETHOD",e[e.EXISTING_ACCOUNT=1]="EXISTING_ACCOUNT",e[e.SSO_DOMAIN=2]="SSO_DOMAIN",e[e.AFTER_SSO=3]="AFTER_SSO",e[e.NEW_ACCOUNT=4]="NEW_ACCOUNT"}(Pt||(Pt={}));var Mt;!function(e){e[e.INVALID_LOGINSTATE=0]="INVALID_LOGINSTATE",e[e.LOGGED_OUT=1]="LOGGED_OUT",e[e.DEVICE_APPROVAL_REQUIRED=2]="DEVICE_APPROVAL_REQUIRED",e[e.DEVICE_LOCKED=3]="DEVICE_LOCKED",e[e.ACCOUNT_LOCKED=4]="ACCOUNT_LOCKED",e[e.DEVICE_ACCOUNT_LOCKED=5]="DEVICE_ACCOUNT_LOCKED",e[e.UPGRADE=6]="UPGRADE",e[e.LICENSE_EXPIRED=7]="LICENSE_EXPIRED",e[e.REGION_REDIRECT=8]="REGION_REDIRECT",e[e.REDIRECT_CLOUD_SSO=9]="REDIRECT_CLOUD_SSO",e[e.REDIRECT_ONSITE_SSO=10]="REDIRECT_ONSITE_SSO",e[e.REQUIRES_2FA=12]="REQUIRES_2FA",e[e.REQUIRES_AUTH_HASH=13]="REQUIRES_AUTH_HASH",e[e.REQUIRES_USERNAME=14]="REQUIRES_USERNAME",e[e.AFTER_CLOUD_SSO_LOGIN=15]="AFTER_CLOUD_SSO_LOGIN",e[e.REQUIRES_ACCOUNT_CREATION=16]="REQUIRES_ACCOUNT_CREATION",e[e.REQUIRES_DEVICE_ENCRYPTED_DATA_KEY=17]="REQUIRES_DEVICE_ENCRYPTED_DATA_KEY",e[e.LOGIN_TOKEN_EXPIRED=18]="LOGIN_TOKEN_EXPIRED",e[e.PASSKEY_INITIATE_CHALLENGE=19]="PASSKEY_INITIATE_CHALLENGE",e[e.PASSKEY_AUTH_REQUIRED=20]="PASSKEY_AUTH_REQUIRED",e[e.PASSKEY_VERIFY_AUTHENTICATION=21]="PASSKEY_VERIFY_AUTHENTICATION",e[e.AFTER_PASSKEY_LOGIN=22]="AFTER_PASSKEY_LOGIN",e[e.LOGGED_IN=99]="LOGGED_IN"}(Mt||(Mt={}));var xt;!function(e){e[e.NO_KEY=0]="NO_KEY",e[e.BY_DEVICE_PUBLIC_KEY=1]="BY_DEVICE_PUBLIC_KEY",e[e.BY_PASSWORD=2]="BY_PASSWORD",e[e.BY_ALTERNATE=3]="BY_ALTERNATE",e[e.BY_BIO=4]="BY_BIO"}(xt||(xt={}));var Vt;!function(e){e[e.ENTERED=0]="ENTERED",e[e.BIOMETRICS=1]="BIOMETRICS"}(Vt||(Vt={}));var Gt;!function(e){e[e.TWO_FA_PUSH_NONE=0]="TWO_FA_PUSH_NONE",e[e.TWO_FA_PUSH_SMS=1]="TWO_FA_PUSH_SMS",e[e.TWO_FA_PUSH_KEEPER=2]="TWO_FA_PUSH_KEEPER",e[e.TWO_FA_PUSH_DUO_PUSH=3]="TWO_FA_PUSH_DUO_PUSH",e[e.TWO_FA_PUSH_DUO_TEXT=4]="TWO_FA_PUSH_DUO_TEXT",e[e.TWO_FA_PUSH_DUO_CALL=5]="TWO_FA_PUSH_DUO_CALL",e[e.TWO_FA_PUSH_DNA=6]="TWO_FA_PUSH_DNA"}(Gt||(Gt={}));var Ut;!function(e){e[e.TWO_FA_CODE_NONE=0]="TWO_FA_CODE_NONE",e[e.TWO_FA_CODE_TOTP=1]="TWO_FA_CODE_TOTP",e[e.TWO_FA_CODE_SMS=2]="TWO_FA_CODE_SMS",e[e.TWO_FA_CODE_DUO=3]="TWO_FA_CODE_DUO",e[e.TWO_FA_CODE_RSA=4]="TWO_FA_CODE_RSA",e[e.TWO_FA_RESP_U2F=5]="TWO_FA_RESP_U2F",e[e.TWO_FA_RESP_WEBAUTHN=6]="TWO_FA_RESP_WEBAUTHN",e[e.TWO_FA_CODE_DNA=7]="TWO_FA_CODE_DNA"}(Ut||(Ut={}));var Ot;!function(e){e[e.TWO_FA_CT_NONE=0]="TWO_FA_CT_NONE",e[e.TWO_FA_CT_TOTP=1]="TWO_FA_CT_TOTP",e[e.TWO_FA_CT_SMS=2]="TWO_FA_CT_SMS",e[e.TWO_FA_CT_DUO=3]="TWO_FA_CT_DUO",e[e.TWO_FA_CT_RSA=4]="TWO_FA_CT_RSA",e[e.TWO_FA_CT_BACKUP=5]="TWO_FA_CT_BACKUP",e[e.TWO_FA_CT_U2F=6]="TWO_FA_CT_U2F",e[e.TWO_FA_CT_WEBAUTHN=7]="TWO_FA_CT_WEBAUTHN",e[e.TWO_FA_CT_KEEPER=8]="TWO_FA_CT_KEEPER",e[e.TWO_FA_CT_DNA=9]="TWO_FA_CT_DNA"}(Ot||(Ot={}));var Nt;!function(e){e[e.TWO_FA_EXP_IMMEDIATELY=0]="TWO_FA_EXP_IMMEDIATELY",e[e.TWO_FA_EXP_5_MINUTES=1]="TWO_FA_EXP_5_MINUTES",e[e.TWO_FA_EXP_12_HOURS=2]="TWO_FA_EXP_12_HOURS",e[e.TWO_FA_EXP_24_HOURS=3]="TWO_FA_EXP_24_HOURS",e[e.TWO_FA_EXP_30_DAYS=4]="TWO_FA_EXP_30_DAYS",e[e.TWO_FA_EXP_NEVER=5]="TWO_FA_EXP_NEVER"}(Nt||(Nt={}));var jt;!function(e){e[e.VAULT=0]="VAULT",e[e.CHAT=1]="CHAT",e[e.STORAGE=2]="STORAGE",e[e.BREACHWATCH=3]="BREACHWATCH"}(jt||(jt={}));var Yt;!function(e){e[e.RECORD=0]="RECORD",e[e.SHARED_FOLDER_USER=1]="SHARED_FOLDER_USER",e[e.SHARED_FOLDER_TEAM=2]="SHARED_FOLDER_TEAM",e[e.USER_FOLDER=3]="USER_FOLDER",e[e.TEAM_USER=4]="TEAM_USER"}(Yt||(Yt={}));var Xt;!function(e){e[e.EOT_UNSPECIFIED=0]="EOT_UNSPECIFIED",e[e.EOT_RECORD_KEY=1]="EOT_RECORD_KEY",e[e.EOT_SHARED_FOLDER_USER_KEY=2]="EOT_SHARED_FOLDER_USER_KEY",e[e.EOT_SHARED_FOLDER_TEAM_KEY=3]="EOT_SHARED_FOLDER_TEAM_KEY",e[e.EOT_TEAM_USER_KEY=4]="EOT_TEAM_USER_KEY",e[e.EOT_USER_FOLDER_KEY=5]="EOT_USER_FOLDER_KEY",e[e.EOT_SECURITY_DATA=6]="EOT_SECURITY_DATA",e[e.EOT_SECURITY_DATA_MASTER_PASSWORD=7]="EOT_SECURITY_DATA_MASTER_PASSWORD",e[e.EOT_EMERGENCY_ACCESS_KEY=8]="EOT_EMERGENCY_ACCESS_KEY",e[e.EOT_V2_RECORD_KEY=9]="EOT_V2_RECORD_KEY"}(Xt||(Xt={}));var zt;!function(e){e[e.MP_UNKNOWN=0]="MP_UNKNOWN",e[e.MP_SUCCESS=1]="MP_SUCCESS",e[e.MP_FAILURE=2]="MP_FAILURE"}(zt||(zt={}));var Lt;!function(e){e[e.ALTERNATE_MASTER_PASSWORD=0]="ALTERNATE_MASTER_PASSWORD",e[e.BIOMETRIC=1]="BIOMETRIC",e[e.ACCOUNT_RECOVER=2]="ACCOUNT_RECOVER"}(Lt||(Lt={}));var Wt;!function(e){e[e.PASSWORD_RETRY_THROTTLE=0]="PASSWORD_RETRY_THROTTLE",e[e.PASSWORD_RETRY_LEGACY_THROTTLE=1]="PASSWORD_RETRY_LEGACY_THROTTLE",e[e.TWO_FA_THROTTLE=2]="TWO_FA_THROTTLE",e[e.TWO_FA_LEGACY_THROTTLE=3]="TWO_FA_LEGACY_THROTTLE",e[e.QA_RETRY_THROTTLE=4]="QA_RETRY_THROTTLE",e[e.ACCOUNT_RECOVER_THROTTLE=5]="ACCOUNT_RECOVER_THROTTLE",e[e.VALIDATE_DEVICE_VERIFICATION_CODE_THROTTLE=6]="VALIDATE_DEVICE_VERIFICATION_CODE_THROTTLE",e[e.VALIDATE_CREATE_USER_VERIFICATION_CODE_THROTTLE=7]="VALIDATE_CREATE_USER_VERIFICATION_CODE_THROTTLE"}(Wt||(Wt={}));var Kt;!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.eu=1]="eu",e[e.us=2]="us",e[e.usgov=3]="usgov",e[e.au=4]="au",e[e.jp=5]="jp",e[e.ca=6]="ca"}(Kt||(Kt={}));var Zt;!function(e){e[e.SHARE_TYPE_RECORD=0]="SHARE_TYPE_RECORD",e[e.SHARE_TYPE_FOLDER=1]="SHARE_TYPE_FOLDER"}(Zt||(Zt={}));var Ht;!function(e){e[e.INVALID_TIME_LIMITED_ACCESS_TYPE=0]="INVALID_TIME_LIMITED_ACCESS_TYPE",e[e.USER_ACCESS_TO_RECORD=1]="USER_ACCESS_TO_RECORD",e[e.USER_OR_TEAM_ACCESS_TO_SHAREDFOLDER=2]="USER_OR_TEAM_ACCESS_TO_SHAREDFOLDER",e[e.RECORD_ACCESS_TO_SHAREDFOLDER=3]="RECORD_ACCESS_TO_SHAREDFOLDER"}(Ht||(Ht={}));var Jt;!function(e){e[e.BKT_SEC_ANSWER=0]="BKT_SEC_ANSWER",e[e.BKT_PASSPHRASE_HASH=1]="BKT_PASSPHRASE_HASH"}(Jt||(Jt={}));var qt;!function(e){e[e.SUCCESS=0]="SUCCESS",e[e.INVALID_OBJECT=1]="INVALID_OBJECT",e[e.ALREADY_EXISTS=2]="ALREADY_EXISTS",e[e.ACCESS_DENIED=3]="ACCESS_DENIED"}(qt||(qt={}));var $t;!function(e){e[e.CROSS_PLATFORM=0]="CROSS_PLATFORM",e[e.PLATFORM=1]="PLATFORM",e[e.ALL_SUPPORTED=2]="ALL_SUPPORTED"}($t||($t={}));var _t;!function(e){e[e.PK_LOGIN=0]="PK_LOGIN",e[e.PK_REAUTH=1]="PK_REAUTH"}(_t||(_t={}));var ei;!function(e){e[e.FF_EMPTY=0]="FF_EMPTY",e[e.FF_PHONE=1]="FF_PHONE",e[e.FF_TABLET=2]="FF_TABLET",e[e.FF_WATCH=3]="FF_WATCH"}(ei||(ei={}));const ti=(0,Fe.w)("Cg5zc29jbG91ZC5wcm90bxIIU3NvQ2xvdWQivwEKD1Nzb0Nsb3VkUmVxdWVzdBIZChFtZXNzYWdlU2Vzc2lvblVpZBgBIAEoDBIVCg1jbGllbnRWZXJzaW9uGAIgASgJEhAKCGVtYmVkZGVkGAMgASgIEgwKBGpzb24YBCABKAgSDAoEZGVzdBgFIAEoCRIUCgxpZHBTZXNzaW9uSWQYBiABKAkSEgoKZm9yY2VMb2dpbhgHIAEoCBIQCgh1c2VybmFtZRgIIAEoCRIQCghkZXRhY2hlZBgJIAEoCCLJAQoQU3NvQ2xvdWRSZXNwb25zZRIPCgdjb21tYW5kGAEgASgJEhkKEW1lc3NhZ2VTZXNzaW9uVWlkGAIgASgMEg0KBWVtYWlsGAMgASgJEhsKE2VuY3J5cHRlZExvZ2luVG9rZW4YBCABKAwSFAoMcHJvdmlkZXJOYW1lGAUgASgJEhQKDGlkcFNlc3Npb25JZBgGIAEoCRIdChVlbmNyeXB0ZWRTZXNzaW9uVG9rZW4YByABKAwSEgoKZXJyb3JUb2tlbhgIIAEoCWIGcHJvdG8z"),ii=(0,Te.Z)(ti,0),ni=(0,Te.Z)(ti,1);const ri=(0,Fe.w)("CgxyZWNvcmQucHJvdG8SB1JlY29yZHMiXAoKUmVjb3JkVHlwZRIUCgxyZWNvcmRUeXBlSWQYASABKAUSDwoHY29udGVudBgCIAEoCRInCgVzY29wZRgDIAEoDjIYLlJlY29yZHMuUmVjb3JkVHlwZVNj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F0dXMSCgoGQUNUSVZFEAASCQoFQkxPQ0sQARILCgdJTlZJVEVEEAIqOgoVUmVjb3JkVHJhbnNhY3Rpb25UeXBlEg8KC1JUVF9HRU5FUkFMEAASEAoMUlRUX1JPVEFUSU9OEAEq5gEKFVRpbWVMaW1pdGVkQWNjZXNzVHlwZRIkCiBJTlZBTElEX1RJTUVfTElNSVRFRF9BQ0NFU1NfVFlQRRAAEhkKFVVTRVJfQUNDRVNTX1RPX1JFQ09SRBABEicKI1VTRVJfT1JfVEVBTV9BQ0NFU1NfVE9fU0hBUkVERk9MREVSEAISIQodUkVDT1JEX0FDQ0VTU19UT19TSEFSRURGT0xERVIQAxIfChtVU0VSX0FDQ0VTU19UT19TSEFSRURGT0xERVIQBBIfChtURUFNX0FDQ0VTU19UT19TSEFSRURGT0xERVIQBSpcChVUaW1lck5vdGlmaWNhdGlvblR5cGUSFAoQTk9USUZJQ0FUSU9OX09GRhAAEhAKDE5PVElGWV9PV05FUhABEhsKF05PVElGWV9QUklWSUxFR0VEX1VTRVJTEAJiBnByb3RvMw");var si;!function(e){e[e.RT_STANDARD=0]="RT_STANDARD",e[e.RT_USER=1]="RT_USER",e[e.RT_ENTERPRISE=2]="RT_ENTERPRISE",e[e.RT_PAM=3]="RT_PAM",e[e.RT_PAM_CONFIGURATION=4]="RT_PAM_CONFIGURATION"}(si||(si={}));var oi;!function(e){e[e.NO_KEY=0]="NO_KEY",e[e.ENCRYPTED_BY_DATA_KEY=1]="ENCRYPTED_BY_DATA_KEY",e[e.ENCRYPTED_BY_PUBLIC_KEY=2]="ENCRYPTED_BY_PUBLIC_KEY",e[e.ENCRYPTED_BY_DATA_KEY_GCM=3]="ENCRYPTED_BY_DATA_KEY_GCM",e[e.ENCRYPTED_BY_PUBLIC_KEY_ECC=4]="ENCRYPTED_BY_PUBLIC_KEY_ECC",e[e.ENCRYPTED_BY_ROOT_KEY_CBC=5]="ENCRYPTED_BY_ROOT_KEY_CBC",e[e.ENCRYPTED_BY_ROOT_KEY_GCM=6]="ENCRYPTED_BY_ROOT_KEY_GCM"}(oi||(oi={}));var ai;!function(e){e[e.user_folder=0]="user_folder",e[e.shared_folder=1]="shared_folder",e[e.shared_folder_folder=2]="shared_folder_folder"}(ai||(ai={}));var li;!function(e){e[e.RS_SUCCESS=0]="RS_SUCCESS",e[e.RS_OUT_OF_SYNC=1]="RS_OUT_OF_SYNC",e[e.RS_ACCESS_DENIED=2]="RS_ACCESS_DENIED",e[e.RS_SHARE_DENIED=3]="RS_SHARE_DENIED",e[e.RS_RECORD_EXISTS=4]="RS_RECORD_EXISTS",e[e.RS_OLD_RECORD_VERSION_TYPE=5]="RS_OLD_RECORD_VERSION_TYPE",e[e.RS_NEW_RECORD_VERSION_TYPE=6]="RS_NEW_RECORD_VERSION_TYPE",e[e.RS_FILES_NOT_MATCH=7]="RS_FILES_NOT_MATCH",e[e.RS_RECORD_NOT_SHAREABLE=8]="RS_RECORD_NOT_SHAREABLE",e[e.RS_ATTACHMENT_NOT_SHAREABLE=9]="RS_ATTACHMENT_NOT_SHAREABLE",e[e.RS_FILE_LIMIT_REACHED=10]="RS_FILE_LIMIT_REACHED",e[e.RS_SIZE_EXCEEDED_LIMIT=11]="RS_SIZE_EXCEEDED_LIMIT",e[e.RS_ONLY_OWNER_CAN_MODIFY_SCRIPTS=12]="RS_ONLY_OWNER_CAN_MODIFY_SCRIPTS"}(li||(li={}));var ci;!function(e){e[e.FA_SUCCESS=0]="FA_SUCCESS",e[e.FA_ERROR=1]="FA_ERROR"}(ci||(ci={}));var di;!function(e){e[e.FG_SUCCESS=0]="FG_SUCCESS",e[e.FG_ERROR=1]="FG_ERROR",e[e.FG_ACCESS_DENIED=2]="FG_ACCESS_DENIED"}(di||(di={}));var ui;!function(e){e[e.DATA_PLUS_SHARE=0]="DATA_PLUS_SHARE",e[e.DATA_ONLY=1]="DATA_ONLY",e[e.SHARE_ONLY=2]="SHARE_ONLY"}(ui||(ui={}));var hi;!function(e){e[e.CHECK_SA_INVALID_TYPE=0]="CHECK_SA_INVALID_TYPE",e[e.CHECK_SA_ON_SF=1]="CHECK_SA_ON_SF",e[e.CHECK_SA_ON_RECORD=2]="CHECK_SA_ON_RECORD"}(hi||(hi={}));var Ai;!function(e){e[e.ACTIVE=0]="ACTIVE",e[e.BLOCK=1]="BLOCK",e[e.INVITED=2]="INVITED"}(Ai||(Ai={}));var pi;!function(e){e[e.RTT_GENERAL=0]="RTT_GENERAL",e[e.RTT_ROTATION=1]="RTT_ROTATION"}(pi||(pi={}));var gi;!function(e){e[e.INVALID_TIME_LIMITED_ACCESS_TYPE=0]="INVALID_TIME_LIMITED_ACCESS_TYPE",e[e.USER_ACCESS_TO_RECORD=1]="USER_ACCESS_TO_RECORD",e[e.USER_OR_TEAM_ACCESS_TO_SHAREDFOLDER=2]="USER_OR_TEAM_ACCESS_TO_SHAREDFOLDER",e[e.RECORD_ACCESS_TO_SHAREDFOLDER=3]="RECORD_ACCESS_TO_SHAREDFOLDER",e[e.USER_ACCESS_TO_SHAREDFOLDER=4]="USER_ACCESS_TO_SHAREDFOLDER",e[e.TEAM_ACCESS_TO_SHAREDFOLDER=5]="TEAM_ACCESS_TO_SHAREDFOLDER"}(gi||(gi={}));var vi;!function(e){e[e.NOTIFICATION_OFF=0]="NOTIFICATION_OFF",e[e.NOTIFY_OWNER=1]="NOTIFY_OWNER",e[e.NOTIFY_PRIVILEGED_USERS=2]="NOTIFY_PRIVILEGED_USERS"}(vi||(vi={}));const mi=(0,Fe.w)("ChFicmVhY2h3YXRjaC5wcm90bxILQnJlYWNoV2F0Y2gioQEKGEJyZWFjaFdhdGNoUmVjb3JkUmVxdWVzdBIRCglyZWNvcmRVaWQYASABKAwSFQoNZW5jcnlwdGVkRGF0YRgCIAEoDBI9ChNicmVhY2hXYXRjaEluZm9UeXBlGAMgASgOMiAuQnJlYWNoV2F0Y2guQnJlYWNoV2F0Y2hJbmZvVHlwZRIcChR1cGRhdGVVc2VyV2hvU2Nhbm5lZBgEIAEoCCJ6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OSxACEgsKB0dTRV9BQ0wQAxIQCgxHU0VfREVMRVRJT04QBCpIChJHcmFwaFN5bmNBY3RvclR5cGUSDAoIR1NBX1VTRVIQABIPCgtHU0FfU0VSVklDRRABEhMKD0dTQV9QQU1fR0FURVdBWRACYgZwcm90bzM");var bi;!function(e){e[e.RFT_GENERAL=0]="RFT_GENERAL",e[e.RFT_USER=1]="RFT_USER",e[e.RFT_DEVICE=2]="RFT_DEVICE",e[e.RFT_REC=3]="RFT_REC",e[e.RFT_FOLDER=4]="RFT_FOLDER",e[e.RFT_TEAM=5]="RFT_TEAM",e[e.RFT_ENTERPRISE=6]="RFT_ENTERPRISE",e[e.RFT_PAM_DIRECTORY=7]="RFT_PAM_DIRECTORY",e[e.RFT_PAM_MACHINE=8]="RFT_PAM_MACHINE",e[e.RFT_PAM_DATABASE=9]="RFT_PAM_DATABASE",e[e.RFT_PAM_USER=10]="RFT_PAM_USER",e[e.RFT_PAM_NETWORK=11]="RFT_PAM_NETWORK",e[e.RFT_PAM_BROWSER=12]="RFT_PAM_BROWSER",e[e.RFT_CONNECTION=13]="RFT_CONNECTION",e[e.RFT_WORKFLOW=14]="RFT_WORKFLOW",e[e.RFT_NOTIFICATION=15]="RFT_NOTIFICATION",e[e.RFT_USER_INFO=16]="RFT_USER_INFO",e[e.RFT_TEAM_INFO=17]="RFT_TEAM_INFO",e[e.RFT_ROLE=18]="RFT_ROLE"}(bi||(bi={}));var Ci;!function(e){e[e.GSE_DATA=0]="GSE_DATA",e[e.GSE_KEY=1]="GSE_KEY",e[e.GSE_LINK=2]="GSE_LINK",e[e.GSE_ACL=3]="GSE_ACL",e[e.GSE_DELETION=4]="GSE_DELETION"}(Ci||(Ci={}));var Ii;!function(e){e[e.GSA_USER=0]="GSA_USER",e[e.GSA_SERVICE=1]="GSA_SERVICE",e[e.GSA_PAM_GATEWAY=2]="GSA_PAM_GATEWAY"}(Ii||(Ii={}));const wi=(0,Fe.w)("Chlub3RpZmljYXRpb24tY2VudGVyLn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IOCgpOQVNfREVOSUVEEAISHAoYTkFTX0xPU1RfQVBQUk9WQUxfUklHSFRTEAMSEwoPTkFTX0xPU1RfQUNDRVNTEARiBnByb3RvMw",[yi]);var Bi;!function(e){e[e.NC_UNSPECIFIED=0]="NC_UNSPECIFIED",e[e.NC_ACCOUNT=1]="NC_ACCOUNT",e[e.NC_SHARING=2]="NC_SHARING",e[e.NC_ENTERPRISE=3]="NC_ENTERPRISE",e[e.NC_SECURITY=4]="NC_SECURITY",e[e.NC_REQUEST=5]="NC_REQUEST",e[e.NC_SYSTEM=6]="NC_SYSTEM",e[e.NC_PROMOTION=7]="NC_PROMOTION"}(Bi||(Bi={}));var Ei;!function(e){e[e.NT_UNSPECIFIED=0]="NT_UNSPECIFIED",e[e.NT_ALERT=1]="NT_ALERT",e[e.NT_DEVICE_APPROVAL=2]="NT_DEVICE_APPROVAL",e[e.NT_MASTER_PASS_UPDATED=3]="NT_MASTER_PASS_UPDATED",e[e.NT_SHARE_APPROVAL=4]="NT_SHARE_APPROVAL",e[e.NT_SHARE_APPROVAL_APPROVED=5]="NT_SHARE_APPROVAL_APPROVED",e[e.NT_SHARED=6]="NT_SHARED",e[e.NT_TRANSFERRED=7]="NT_TRANSFERRED",e[e.NT_LICENSE_LIMIT_REACHED=8]="NT_LICENSE_LIMIT_REACHED",e[e.NT_APPROVAL_REQUEST=9]="NT_APPROVAL_REQUEST",e[e.NT_APPROVED_RESPONSE=10]="NT_APPROVED_RESPONSE",e[e.NT_DENIED_RESPONSE=11]="NT_DENIED_RESPONSE",e[e.NT_2FA_CONFIGURED=12]="NT_2FA_CONFIGURED",e[e.NT_SHARE_APPROVAL_DENIED=13]="NT_SHARE_APPROVAL_DENIED"}(Ei||(Ei={}));var Si;!function(e){e[e.NRS_UNSPECIFIED=0]="NRS_UNSPECIFIED",e[e.NRS_LAST=1]="NRS_LAST",e[e.NRS_READ=2]="NRS_READ",e[e.NRS_UNREAD=3]="NRS_UNREAD"}(Si||(Si={}));var Qi;!function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",e[e.RRST_FAILURE=3]="RRST_FAILURE"}(Di||(Di={}));const Pi=Symbol("Cancel"),Mi=Symbol("Resend"),xi=Symbol("TryAnother");var Vi=i(36594),Gi=i(78781),Ui=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Oi=16;function Ni(e){const t=new Uint8Array(e);return crypto.getRandomValues(t),t}function ji(){return Ni(32)}function Yi(e,t){return Ui(this,void 0,void 0,function*(){const i=e.subarray(0,Oi),n=e.subarray(Oi),r=yield crypto.subtle.importKey("raw",t,{name:"AES-CBC"},!1,["decrypt"]),s=yield crypto.subtle.decrypt({name:"AES-CBC",iv:i},r,n);return new Uint8Array(s)})}function Xi(e,t,i){return Ui(this,arguments,void 0,function*(e,t,i,n=12){const r=null!=i?i:Ni(n),s=yield crypto.subtle.importKey("raw",t,{name:"AES-GCM"},!1,["encrypt"]),o=yield crypto.subtle.encrypt({name:"AES-GCM",iv:r,tagLength:128},s,e);return nn(r,new Uint8Array(o))})}function zi(e,t){return Ui(this,arguments,void 0,function*(e,t,i=12){const n=e.subarray(0,i),r=e.subarray(i),s=yield crypto.subtle.importKey("raw",t,{name:"AES-GCM"},!1,["decrypt"]),o=yield crypto.subtle.decrypt({name:"AES-GCM",iv:n,tagLength:128},s,r);return new Uint8Array(o)})}function Li(){return Ui(this,void 0,void 0,function*(){const e=yield crypto.subtle.generateKey({name:"ECDH",namedCurve:"P-256"},!0,["deriveBits"]);return{privateKey:e.privateKey,publicKey:e.publicKey}})}function Wi(e){return Ui(this,void 0,void 0,function*(){const t=yield crypto.subtle.exportKey("raw",e);return new Uint8Array(t)})}function Ki(e){return Ui(this,void 0,void 0,function*(){if(e.length<65||4!==e[0])throw new Error("Invalid EC public key data");return yield crypto.subtle.importKey("raw",e,{name:"ECDH",namedCurve:"P-256"},!0,[])})}function Zi(e,t){return Ui(this,void 0,void 0,function*(){const i=yield crypto.subtle.deriveBits({name:"ECDH",public:e},t,256),n=yield crypto.subtle.digest("SHA-256",i);return new Uint8Array(n)})}function Hi(e,t){return Ui(this,void 0,void 0,function*(){const i=e.subarray(0,65),n=yield Ki(i),r=yield Zi(n,t),s=e.subarray(65);return yield zi(s,r)})}function Ji(e,t,i){return Ui(this,void 0,void 0,function*(){const n=yield crypto.subtle.importKey("raw",(new TextEncoder).encode(e),"PBKDF2",!1,["deriveBits"]),r=yield crypto.subtle.deriveBits({name:"PBKDF2",salt:t,iterations:i,hash:"SHA-256"},n,256);return new Uint8Array(r)})}function qi(e,t,i){return Ui(this,void 0,void 0,function*(){const n=yield Ji(e,t,i),r=yield crypto.subtle.digest("SHA-256",n);return new Uint8Array(r)})}function $i(e,t){return Ui(this,void 0,void 0,function*(){const i="Corrupted encryption parameters";if(1!==t[0])throw new Error(i);if(100!==t.length)throw new Error(i);const n=(t[1]<<16)+(t[2]<<8)+t[3],r=t.subarray(4,20),s=yield Ji(e,r,n),o=t.subarray(20,36),a=t.subarray(36),l=yield function(e,t,i){return Ui(this,void 0,void 0,function*(){const n=yield crypto.subtle.importKey("raw",t,{name:"AES-CBC"},!1,["encrypt","decrypt"]),r=e.subarray(e.length-Oi),s=new Uint8Array(Oi).fill(Oi),o=yield crypto.subtle.encrypt({name:"AES-CBC",iv:r},n,s),a=new Uint8Array(o).subarray(0,Oi),l=nn(e,a),c=yield crypto.subtle.decrypt({name:"AES-CBC",iv:i},n,l);return new Uint8Array(c).subarray(0,e.length)})}(a,s,o),c=l.subarray(0,32);if(!function(e,t){if(e.length!==t.length)return!1;let i=0;for(let n=0;n<e.length;n++)i|=e[n]^t[n];return 0===i}(c,l.subarray(32,64)))throw new Error(i);return c})}function _i(e,t,i,n,r){return Ui(this,void 0,void 0,function*(){switch(t){case oi.NO_KEY:throw new Error("Cannot decrypt NO_KEY type");case oi.ENCRYPTED_BY_DATA_KEY:return yield Yi(e,i);case oi.ENCRYPTED_BY_PUBLIC_KEY:if(!n)throw new Error("RSA private key required for ENCRYPTED_BY_PUBLIC_KEY");return function(e,t){const i=Vi.util.createBuffer(rn(t)),n=Vi.asn1.fromDer(i),r=Vi.pki.privateKeyFromAsn1(n),s=rn(e);return sn(r.decrypt(s,"RSAES-PKCS1-V1_5"))}(e,n);case oi.ENCRYPTED_BY_DATA_KEY_GCM:return yield zi(e,i);case oi.ENCRYPTED_BY_PUBLIC_KEY_ECC:if(!r)throw new Error("EC private key required for ENCRYPTED_BY_PUBLIC_KEY_ECC");return yield Hi(e,r);default:throw new Error(`Unknown key type: ${t}`)}})}function en(e){return Gi.A.fromB64toUrlB64(Gi.A.fromBufferToB64(e))}function tn(e){return Gi.A.fromUrlB64ToArray(e)}function nn(...e){const t=e.reduce((e,t)=>e+t.length,0),i=new Uint8Array(t);let n=0;for(const r of e)i.set(r,n),n+=r.length;return i}function rn(e){let t="";for(let i=0;i<e.length;i++)t+=String.fromCharCode(e[i]);return t}function sn(e){const t=new Uint8Array(e.length);for(let i=0;i<e.length;i++)t[i]=e.charCodeAt(i);return t}var on=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function an(e,t){return on(this,void 0,void 0,function*(){const i=yield fetch(e,{method:"POST",headers:{"Content-Type":"application/octet-stream"},body:t}),n=new Uint8Array(yield i.arrayBuffer());if(i.ok)return{status:i.status,data:n};let r=`HTTP ${i.status}: ${i.statusText}`;if(n.length>0)try{r+=` - ${(new TextDecoder).decode(n)}`}catch(s){}throw new Error(r)})}var ln=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const cn={1:"MIIBCgKCAQEA9Z_CZzxiNUz8-npqI4V10-zW3AL7-M4UQDdd_17759Xzm0MOEfHOOsOgZxxNK1DEsbyCTCE05fd3Hz1mn1uGjXvm5HnN2mL_3TOVxyLU6VwH9EDInnj4DNMFifs69il3KlviT3llRgPCcjF4xrF8d4SR0_N3eqS1f9CBJPNEKEH-am5Xb_FqAlOUoXkILF0UYxA_jNLoWBSq-1W58e4xDI0p0GuP0lN8f97HBtfB7ijbtF-VxIXtxRy-4jA49zK-CQrGmWqIm5DzZcBvUtVGZ3UXd6LeMXMJOifvuCneGC2T2uB6G2g5yD54-onmKIETyNX0LtpR1MsZmKLgru5ugwIDAQAB",2:"MIIBCgKCAQEAkOpym7xC3sSysw5DAidLoVF7JUgnvXejbieDWmEiD-DQOKxzfQqYHoFfeeix__bx3wMW3I8cAc8zwZ1JO8hyB2ON732JE2Zp301GAUMnAK_rBhQWmYKP_-uXSKeTJPiuaW9PVG0oRJ4MEdS-t1vIA4eDPhI1EexHaY3P2wHKoV8twcGvdWUZB5gxEpMbx5CuvEXptnXEJlxKou3TZu9uwJIo0pgqVLUgRpW1RSRipgutpUslBnQ72Bdbsry0KKVTlcPsudAnnWUtsMJNgmyQbESPm-aVv-GzdVUFvWKpKkAxDpNArPMf0xt8VL2frw2LDe5_n9IMFogUiSYt156_mQIDAQAB",3:"MIIBCgKCAQEAyvxCWbLvtMRmq57oFg3mY4DWfkb1dir7b29E8UcwcKDcCsGTqoIhubU2pO46TVUXmFgC4E-Zlxt-9F-YA-MY7i_5GrDvySwAy4nbDhRL6Z0kz-rqUirgm9WWsP9v-X_BwzARqq83HNBuzAjf3UHgYDsKmCCarVAzRplZdT3Q5rnNiYPYSHzwfUhKEAyXk71UdtleD-bsMAmwnuYHLhDHiT279An_Ta93c9MTqa_Tq2Eirl_NXn1R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wvv1cBda9ahkSzo1BQ4NVXp9qRyqVGU"},un=new Map,hn=new Map;function An(e,t){return ln(this,void 0,void 0,function*(){if(t>=1&&t<=6)return function(e,t){const i=Vi.util.createBuffer(rn(t)),n=Vi.asn1.fromDer(i),r=Vi.pki.publicKeyFromAsn1(n),s=rn(e);return sn(r.encrypt(s,"RSAES-PKCS1-V1_5"))}(e,function(e){if(!un.has(e)){const t=cn[e];if(!t)throw new Error(`Invalid RSA key ID: ${e}`);un.set(e,tn(t))}return un.get(e)}(t));if(t>=7&&t<=17){const i=yield function(e){return ln(this,void 0,void 0,function*(){if(!hn.has(e)){const t=dn[e];if(!t)throw new Error(`Invalid EC key ID: ${e}`);const i=tn(t),n=yield Ki(i);hn.set(e,n)}return hn.get(e)})}(t);return yield function(e,t){return Ui(this,void 0,void 0,function*(){const{privateKey:i,publicKey:n}=yield Li(),r=yield Zi(t,i),s=yield Xi(e,r);return nn(yield Wi(n),s)})}(e,i)}throw new Error(`Invalid key ID: ${t}`)})}var pn=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var gn=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class vn{constructor(e){this.clientVersion="ts17.0.0",this.deviceName="TypeScript Keeper SDK",this.serverKeyId=7,this.locale="en_US",this.password=null,this.ssoTransmissionKey=null,this.twoFactorMethodToUi=new Map([[Ot.TWO_FA_CT_TOTP,ze.Totp],[Ot.TWO_FA_CT_SMS,ze.Sms],[Ot.TWO_FA_CT_DUO,ze.Duo],[Ot.TWO_FA_CT_RSA,ze.Rsa],[Ot.TWO_FA_CT_BACKUP,ze.Backup],[Ot.TWO_FA_CT_U2F,ze.U2f],[Ot.TWO_FA_CT_WEBAUTHN,ze.WebAuthn],[Ot.TWO_FA_CT_KEEPER,ze.KeeperPush],[Ot.TWO_FA_CT_DNA,ze.KeeperDna]]),this.twoFactorMethodFromUi=new Map([[ze.Totp,Ot.TWO_FA_CT_TOTP],[ze.Sms,Ot.TWO_FA_CT_SMS],[ze.Duo,Ot.TWO_FA_CT_DUO],[ze.Rsa,Ot.TWO_FA_CT_RSA],[ze.Backup,Ot.TWO_FA_CT_BACKUP],[ze.U2f,Ot.TWO_FA_CT_U2F],[ze.WebAuthn,Ot.TWO_FA_CT_WEBAUTHN],[ze.KeeperPush,Ot.TWO_FA_CT_KEEPER],[ze.KeeperDna,Ot.TWO_FA_CT_DNA]]),this.duoCapabilityToMethod=new Map([["push",Ye.Push],["sms",Ye.Sms],["phone",Ye.Voice],["mobile_otp",Ye.Passcode]]),this.duoMethodToPush=new Map([[Ye.Push,Gt.TWO_FA_PUSH_DUO_PUSH],[Ye.Sms,Gt.TWO_FA_PUSH_DUO_TEXT],[Ye.Voice,Gt.TWO_FA_PUSH_DUO_CALL]]),this.supported2faMethods=new Set([ze.Totp,ze.Sms,ze.KeeperDna]),this.server=e.region,this.ui=e.ui}login(e){return gn(this,void 0,void 0,function*(){const{deviceToken:t,devicePrivateKey:i}=yield this.registerDevice(),n=Ni(16),r=ji();let s=null;try{s=yield function(e,t,i,n){return pn(this,arguments,void 0,function*(e,t,i,n,r=7,s="en_US"){const o=(0,Ge.v)(Pe,{messageSessionUid:i,encryptedDeviceToken:t,deviceTimeStamp:BigInt(Date.now())}),a=(0,Oe.R)(Pe,o),l=(0,Ge.v)(ht,{payload:a}),c=(0,Oe.R)(ht,l),d=yield Xi(new Uint8Array(c),n),u=yield An(n,r),h=(0,Ge.v)(ut,{encryptedTransmissionKey:u,publicKeyId:r,locale:s,encryptedPayload:d}),A=(0,Oe.R)(ut,h),p=en(new Uint8Array(A)),g=`wss://push.services.${e.replace("govcloud.","")}/wss_open_connection/${p}`;return new Promise((e,t)=>{const i=new WebSocket(g);i.binaryType="arraybuffer";const r=[],s=[];let o=!1,a=!1,l=null;i.onopen=()=>{o=!0,e({waitForMessage:()=>new Promise((e,t)=>{l?t(l):a?t(new Error("Socket is closed")):s.length>0?e(s.shift()):r.push({resolve:e,reject:t})}),disconnect(){if(!a){a=!0,i.close();for(const e of r)e.reject(new Error("Socket disconnected"));r.length=0}}})},i.onmessage=e=>pn(this,void 0,void 0,function*(){var t,i;const o=null!==(i=null===(t=e.data)||void 0===t?void 0:t.byteLength)&&void 0!==i?i:0;let a="decrypt";try{const t=new Uint8Array(e.data),i=yield zi(t,n);a="decode";const o=(0,Ue.Er)(Me,i);let l={};if(o.message)try{l=JSON.parse(o.message)}catch(c){l={raw:o.message}}const d={messageType:o.messageType,message:l};r.length>0?r.shift().resolve(d):s.push(d)}catch(d){l=new We(Le.SocketError,`Failed to process push message at ${a} stage (bytes=${o}, cause=${d instanceof Error?d.name:"unknown"})`);for(const e of r)e.reject(l);r.length=0}}),i.onerror=()=>{const e=new Error("WebSocket error");if(o){for(const t of r)t.reject(e);r.length=0}else t(e)},i.onclose=e=>{a=!0;let t=e.reason||"";try{t=JSON.parse(t).close_reason||t}catch(i){}for(const n of r)n.reject(new Error(`Socket closed: ${t||e.code}`));r.length=0}})})}(this.server,t,n,r,this.serverKeyId,this.locale);let o=yield this.startLogin(e,t,n);const a=10;let l=0;for(;l++<a;)switch(o.loginState){case Mt.REQUIRES_AUTH_HASH:o=yield this.handleAuthHash(o);break;case Mt.REGION_REDIRECT:if(!o.stateSpecificValue)throw new Error("Region redirect without server URL");this.server=o.stateSpecificValue,yield this.registerDeviceInRegion(t,i),o=yield this.startLogin(e,t,n);break;case Mt.DEVICE_APPROVAL_REQUIRED:o=yield this.handleDeviceApproval(e,t,n,o,s,[Ne.Email,Ne.KeeperPush,Ne.TwoFactor]);break;case Mt.REQUIRES_DEVICE_ENCRYPTED_DATA_KEY:o=yield this.handleDeviceApproval(e,t,n,o,s,[Ne.KeeperPush,Ne.AdminApproval]);break;case Mt.REDIRECT_CLOUD_SSO:o=yield this.handleCloudSso(o,t,n);break;case Mt.REQUIRES_2FA:o=yield this.handle2FA(e,t,n,o,s);break;case Mt.LOGGED_IN:return yield this.extractLoginResult(o,i);default:this.throwLoginError(o)}throw new Error(`Login exceeded maximum iterations (${a})`)}finally{s&&s.disconnect()}})}syncDown(e){return gn(this,void 0,void 0,function*(){const t=[];let i=new Uint8Array;for(;;){const n=yield this.syncDownRequest(e,i);if(t.push(n),!n.hasMore)break;i=n.continuationToken}return t})}registerDevice(){return gn(this,void 0,void 0,function*(){const{privateKey:e,publicKey:t}=yield Li(),i=yield Wi(t),n=(0,Ge.v)(bt,{deviceName:this.deviceName,clientVersion:this.clientVersion,devicePublicKey:i}),r=yield this.apiRequest("authentication/register_device",n,bt),s=(0,Ue.Er)(wt,r);return{deviceToken:new Uint8Array(s.encryptedDeviceToken),devicePrivateKey:e}})}registerDeviceInRegion(e,t){return gn(this,void 0,void 0,function*(){const i=yield this.getPublicKeyFromPrivate(t),n=(0,Ge.v)(yt,{encryptedDeviceToken:e,clientVersion:this.clientVersion,deviceName:this.deviceName,devicePublicKey:i});try{yield this.apiRequest("authentication/register_device_in_region",n,yt)}catch(r){if(!(r instanceof Error&&r.message.includes("exists")))throw r}})}getPublicKeyFromPrivate(e){return gn(this,void 0,void 0,function*(){const t=yield crypto.subtle.exportKey("jwk",e),i={kty:t.kty,crv:t.crv,x:t.x,y:t.y},n=yield crypto.subtle.importKey("jwk",i,{name:"ECDH",namedCurve:"P-256"},!0,[]);return yield Wi(n)})}handleAuthHash(e){return gn(this,void 0,void 0,function*(){if(!e.salt||0===e.salt.length)throw new Error("No salt received from server");if(!e.encryptedLoginToken||0===e.encryptedLoginToken.length)throw new Error("No login token received from server");const t=new Uint8Array(e.salt[0].salt),i=e.salt[0].iterations||1e5;let n=!1;for(;;){const s=yield this.ui.promptForPassword({previousPasswordRejected:n});if(s===Pi)throw new We(Le.Cancelled,"Authentication cancelled by user");this.password=s;const o=yield qi(this.password,t,i);try{return yield this.validateAuthHash(o,e.encryptedLoginToken)}catch(r){n=!0}}})}handleCloudSso(e,t,i){return gn(this,void 0,void 0,function*(){if(!e.url)throw new Error("Cloud SSO redirect without URL");const n=yield this.buildCloudSsoUrl(e.url,i),r=yield this.ui.ssoLogin(n);if(r===Pi)throw new We(Le.Cancelled,"SSO authentication cancelled by user");const s=yield this.decryptCloudSsoResponse(r);if(0===s.encryptedLoginToken.length)throw new Error("SSO response missing login token");return yield this.resumeLoginAfterSso(s.encryptedLoginToken,t,i)})}buildCloudSsoUrl(e,t){return gn(this,void 0,void 0,function*(){const i=(0,Ge.v)(ii,{messageSessionUid:t,clientVersion:this.clientVersion,detached:!0,dest:"vault"}),n=(0,Oe.R)(ii,i),r=(0,Ge.v)(ht,{payload:n});this.ssoTransmissionKey=ji();const s=(0,Oe.R)(ht,r),o=yield Xi(new Uint8Array(s),this.ssoTransmissionKey),a=yield An(this.ssoTransmissionKey,this.serverKeyId),l=(0,Ge.v)(ut,{encryptedTransmissionKey:a,publicKeyId:this.serverKeyId,locale:this.locale,encryptedPayload:o}),c=(0,Oe.R)(ut,l),d=en(new Uint8Array(c));return e+"?payload="+d})}decryptCloudSsoResponse(e){return gn(this,void 0,void 0,function*(){if(!this.ssoTransmissionKey)throw new Error("SSO transmission key not available");const t=tn(e),i=yield zi(t,this.ssoTransmissionKey);return(0,Ue.Er)(ni,i)})}resumeLoginAfterSso(e,t,i){return gn(this,void 0,void 0,function*(){const n=(0,Ge.v)(At,{encryptedLoginToken:e,encryptedDeviceToken:t,loginMethod:Pt.AFTER_SSO,clientVersion:this.clientVersion,messageSessionUid:i}),r=yield this.apiRequest("authentication/start_login",n,At);return(0,Ue.Er)(pt,r)})}extractLoginResult(e,t){return gn(this,void 0,void 0,function*(){if(!e.encryptedSessionToken||0===e.encryptedSessionToken.length)throw new Error("No session token received from server");if(!e.encryptedDataKey||0===e.encryptedDataKey.length)throw new Error("No data key received from server");const i=new Uint8Array(e.encryptedSessionToken);let n;switch(e.encryptedDataKeyType){case xt.BY_DEVICE_PUBLIC_KEY:n=yield Hi(new Uint8Array(e.encryptedDataKey),t);break;case xt.BY_PASSWORD:if(!this.password)throw new Error("Password required but not available");n=yield $i(this.password,new Uint8Array(e.encryptedDataKey));break;default:throw new Error(`Unsupported encrypted data key type: ${e.encryptedDataKeyType}`)}return{sessionToken:i,dataKey:n}})}handleDeviceApproval(e,t,i,n,r,s){return gn(this,void 0,void 0,function*(){const o=n.encryptedLoginToken;let a;for(;;){const d=this.throwIfCancel(yield this.ui.selectApprovalMethod(s),"Device approval");if(d===Ne.TwoFactor){const e=()=>this.send2FAPush(o);yield e();let n,s=!1,c=!1;for(;void 0===n;){null!=a||(a=r.waitForMessage());const t=yield Promise.race([this.getTwoFactorCodeFromUi(ze.Totp,{onResend:e,hidden:!0,previousCodeRejected:s}),a]);if(s=!1,t===xi){c=!0;break}if("object"==typeof t&&"messageType"in t){a=void 0;const{messageType:e,message:i}=t,r=i.passcode,s=i.event,l=i.encryptedLoginToken;if(e===xe.DNA&&"received_totp"===s&&l)n=tn(l);else{if(e!==xe.DNA||!r)throw new We(Le.MfaFailed,"Device approval failed or timed out");n=yield this.validate2FA(o,r,new Uint8Array,Ut.TWO_FA_CODE_NONE)}}else try{n=yield this.validate2FA(o,t,new Uint8Array,Ut.TWO_FA_CODE_NONE)}catch(l){s=!0}}if(c)continue;if(void 0===n)throw new We(Le.MfaFailed,"Device approval failed unexpectedly");return yield this.resumeLogin(n,t,i)}switch(d){case Ne.Email:yield this.requestDeviceVerification(e,t,i);break;case Ne.KeeperPush:yield this.send2FAPush(n.encryptedLoginToken,Gt.TWO_FA_PUSH_KEEPER);break;case Ne.AdminApproval:yield this.requestDeviceAdminApproval(e,t,i);break;default:throw new Error("Unsupported device approval method selected")}void 0===a&&(a=r.waitForMessage());let u=!1,h=!1;for(;;){const n=this.throwIfCancel(yield Promise.race([this.ui.provideApprovalCode(d,{previousCodeRejected:h}),a]),"Device approval");if(h=!1,n===xi){u=!0;break}if(n===Mi){if(d===Ne.Email){yield this.requestDeviceVerification(e,t,i,!0);continue}throw new Error("Resend not supported for this approval method")}if("string"==typeof n&&n.length>0){try{yield this.validateDeviceVerificationCode(e,n)}catch(c){h=!0;continue}return yield this.resumeOrRestartLogin(o,e,t,i)}if("object"==typeof n&&"messageType"in n){const{messageType:r,message:s}=n;if(r===xe.SESSION&&s.username===e){const n="device_approved"===s.message&&!0===s.approved;if("device_verified"===s.command||n)return yield this.resumeOrRestartLogin(o,e,t,i)}}break}if(!u)throw new We(Le.MfaFailed,"Device approval failed or timed out")}})}requestDeviceVerification(e,t,i){return gn(this,arguments,void 0,function*(e,t,i,n=!1){const r=(0,Ge.v)(Ct,{username:e,encryptedDeviceToken:t,verificationChannel:n?"email_resend":"email",clientVersion:this.clientVersion,messageSessionUid:i});yield this.apiRequest("authentication/request_device_verification",r,Ct)})}requestDeviceAdminApproval(e,t,i){return gn(this,void 0,void 0,function*(){const n=(0,Ge.v)(Ct,{username:e,encryptedDeviceToken:t,clientVersion:this.clientVersion,messageSessionUid:i}),r=yield this.apiRequest("authentication/request_device_admin_approval",n,Ct);if(r.length>0){if((0,Ue.Er)(It,r).deviceStatus!==Qt.DEVICE_OK)throw new Error("Admin approval request rejected by server")}})}validateDeviceVerificationCode(e,t){return gn(this,void 0,void 0,function*(){const i=(0,Ge.v)(Bt,{username:e.toLowerCase(),clientVersion:this.clientVersion,verificationCode:t});yield this.apiRequest("authentication/validate_device_verification_code",i,Bt)})}send2FAPush(e,t){return gn(this,void 0,void 0,function*(){const i=(0,Ge.v)(ft,{encryptedLoginToken:e,pushType:t||Gt.TWO_FA_PUSH_NONE});yield this.apiRequest("authentication/2fa_send_push",i,ft)})}handle2FA(e,t,i,n,r){return gn(this,void 0,void 0,function*(){let e=n.encryptedLoginToken;const s=n.channels.map(e=>this.twoFactorMethodToUi.get(e.channelType)).filter(e=>void 0!==e&&this.supported2faMethods.has(e));if(0===s.length)throw yield this.ui.showError("keeperUnsupported2faMethod"),new We(Le.UnsupportedTwoFactorMethod,"No supported two-factor methods available");e:for(;;){const o=yield this.ui.selectTwoFactorMethod(s);if(o===Pi)throw new We(Le.Cancelled,"Two-factor authentication cancelled by user");const a=this.twoFactorMethodFromUi.get(o),l=n.channels.find(e=>e.channelType===a);if(!l)throw new We(Le.UnsupportedTwoFactorMethod,"Selected two-factor method not available");switch(a){case Ot.TWO_FA_CT_TOTP:{const t=yield this.submitTwoFactorCodeWithRetry(ze.Totp,t=>this.validate2FA(e,t,l.channelUid,Ut.TWO_FA_CODE_TOTP));if(t===xi)continue e;e=t;break}case Ot.TWO_FA_CT_SMS:{const t=()=>this.send2FAPush(e,Gt.TWO_FA_PUSH_SMS);yield t();const i=yield this.submitTwoFactorCodeWithRetry(ze.Sms,t=>this.validate2FA(e,t,l.channelUid,Ut.TWO_FA_CODE_SMS),t);if(i===xi)continue e;e=i;break}case Ot.TWO_FA_CT_DNA:{yield this.send2FAPush(e,Gt.TWO_FA_PUSH_DNA);const t=yield Promise.race([r.waitForMessage(),this.ui.waitForDnaPush()]);if(t===xi)continue e;if(!t||"object"!=typeof t||!("messageType"in t))throw new We(Le.Cancelled,"Keeper DNA authentication cancelled");{const{messageType:i,message:n}=t,r=n.passcode;if(i!==xe.DNA||!r)throw new We(Le.MfaFailed,"Keeper DNA authentication failed or timed out");e=yield this.validate2FA(e,r,l.channelUid,Ut.TWO_FA_CODE_DNA)}break}case Ot.TWO_FA_CT_DUO:{const t=l.capabilities.map(e=>this.duoCapabilityToMethod.get(e)).filter(e=>void 0!==e),i=this.throwIfCancel(yield this.ui.selectDuoMethod(t,l.phoneNumber),"Two-factor authentication");switch(i){case Ye.Push:case Ye.Voice:{yield this.send2FAPush(e,this.duoMethodToPush.get(i));const t=yield Promise.race([r.waitForMessage(),this.ui.waitForDuoPush(i)]);if(t===xi)continue e;if(!t||"object"!=typeof t||!("messageType"in t))throw new We(Le.Cancelled,"DUO authentication cancelled");{const{messageType:i,message:n}=t,r=n.event,s=n.encryptedLoginToken;if(i!==xe.DNA||"received_totp"!==r||!s)throw new We(Le.MfaFailed,"DUO authentication failed or timed out");e=tn(s)}break}case Ye.Passcode:{const t=yield this.submitTwoFactorCodeWithRetry(ze.Duo,t=>this.validate2FA(e,t,l.channelUid,Ut.TWO_FA_CODE_DUO));if(t===xi)continue e;e=t;break}case Ye.Sms:{const t=()=>this.send2FAPush(e,this.duoMethodToPush.get(i));yield t();const n=yield this.submitTwoFactorCodeWithRetry(ze.Duo,t=>this.validate2FA(e,t,l.channelUid,Ut.TWO_FA_CODE_DUO),t);if(n===xi)continue e;e=n;break}default:throw new We(Le.UnsupportedTwoFactorMethod,"Unsupported two-factor method selected")}break}default:throw new We(Le.UnsupportedTwoFactorMethod,"Unsupported two-factor method selected")}return yield this.resumeLogin(e,t,i)}})}getTwoFactorCodeFromUi(e){return gn(this,arguments,void 0,function*(e,t={}){var i,n;let r=null!==(i=t.previousCodeRejected)&&void 0!==i&&i;for(;;){const i=this.throwIfCancel(yield this.ui.provideTwoFactorCode(e,{hidden:null!==(n=t.hidden)&&void 0!==n&&n,canResend:!!t.onResend,previousCodeRejected:r}),"Two-factor authentication");if(i!==Mi)return i;t.onResend&&(yield t.onResend()),r=!1}})}submitTwoFactorCodeWithRetry(e,t,i){return gn(this,void 0,void 0,function*(){let n=!1;for(;;){const s=yield this.getTwoFactorCodeFromUi(e,{onResend:i,previousCodeRejected:n});if(s===xi)return xi;try{return yield t(s)}catch(r){n=!0}}})}throwIfCancel(e,t){if(e===Pi)throw new We(Le.Cancelled,`${t} cancelled by user`);return e}validate2FA(e,t,i,n){return gn(this,void 0,void 0,function*(){const r=(0,Ge.v)(vt,{encryptedLoginToken:e,value:t,valueType:n,channelUid:i,expireIn:Nt.TWO_FA_EXP_IMMEDIATELY}),s=yield this.apiRequest("authentication/2fa_validate",r,vt),o=(0,Ue.Er)(mt,s);if(!o.encryptedLoginToken||0===o.encryptedLoginToken.length)throw new Error("2FA validation failed: no encrypted login token returned");return new Uint8Array(o.encryptedLoginToken)})}resumeLogin(e,t,i){return gn(this,void 0,void 0,function*(){const n=(0,Ge.v)(At,{encryptedLoginToken:e,encryptedDeviceToken:t,loginMethod:Pt.EXISTING_ACCOUNT,clientVersion:this.clientVersion,messageSessionUid:i}),r=yield this.apiRequest("authentication/start_login",n,At);return(0,Ue.Er)(pt,r)})}resumeOrRestartLogin(e,t,i,n){return gn(this,void 0,void 0,function*(){try{return yield this.resumeLogin(e,i,n)}catch(r){if(r instanceof Error&&r.message.includes("login_token_expired"))return yield this.startLogin(t,i,n);throw r}})}startLogin(e,t,i){return gn(this,void 0,void 0,function*(){const n=(0,Ge.v)(At,{username:e,encryptedDeviceToken:t,loginMethod:Pt.EXISTING_ACCOUNT,clientVersion:this.clientVersion,messageSessionUid:i}),r=yield this.apiRequest("authentication/start_login",n,At);return(0,Ue.Er)(pt,r)})}validateAuthHash(e,t){return gn(this,void 0,void 0,function*(){const i=(0,Ge.v)(gt,{authResponse:e,encryptedLoginToken:t}),n=yield this.apiRequest("authentication/validate_auth_hash",i,gt);return(0,Ue.Er)(pt,n)})}syncDownRequest(e,t){return gn(this,void 0,void 0,function*(){const i=(0,Ge.v)(Ri,{dataVersion:0,continuationToken:t||new Uint8Array}),n=yield this.apiRequestAuth("vault/sync_down",i,Ri,e);return(0,Ue.Er)(Fi,n)})}apiRequest(e,t,i){return gn(this,void 0,void 0,function*(){const n=(0,Ge.v)(ht,{payload:(0,Oe.R)(i,t)});return yield this.executeRest(e,n)})}apiRequestAuth(e,t,i,n){return gn(this,void 0,void 0,function*(){const r=(0,Ge.v)(ht,{payload:(0,Oe.R)(i,t),encryptedSessionToken:n});return yield this.executeRest(e,r)})}executeRest(e,t){return gn(this,void 0,void 0,function*(){const i=e.startsWith("https://")?e:`https://${this.server}/api/rest/${e}`;let n=this.serverKeyId,r=null;for(let e=0;e<3;e++)try{const e=ji(),r=(0,Oe.R)(ht,t),s=yield Xi(new Uint8Array(r),e),o=yield An(e,n),a=(0,Ge.v)(ut,{encryptedTransmissionKey:o,publicKeyId:n,locale:this.locale,encryptedPayload:s}),l=(0,Oe.R)(ut,a),c=yield an(i,l.buffer);if(n!==this.serverKeyId&&(this.serverKeyId=n),c.data&&c.data.length>0){return yield zi(c.data,e)}return new Uint8Array}catch(s){if(r=s instanceof Error?s:new Error(String(s)),r.message.includes('"error":"key"')){const e=r.message.match(/"key_id":(\d+)/);if(e){n=parseInt(e[1],10);continue}}throw s}throw r||new Error("Failed to execute REST request")})}throwLoginError(e){const t=Mt[e.loginState]||e.loginState,i=e.message||"Unknown error";switch(e.loginState){case Mt.DEVICE_LOCKED:case Mt.DEVICE_ACCOUNT_LOCKED:throw new Error(`Device locked: ${i}`);case Mt.ACCOUNT_LOCKED:throw new Error(`Account locked: ${i}`);case Mt.LICENSE_EXPIRED:throw new Error(`License expired: ${i}`);case Mt.UPGRADE:throw new Error(`Account upgrade required: ${i}`);case Mt.REDIRECT_ONSITE_SSO:throw new Error(`SSO authentication not supported: ${i}`);default:throw new Error(`Unhandled login state: ${t} - ${i}`)}}}var mn=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class fn{static open(e,t){return mn(this,void 0,void 0,function*(){const i=new vn(t),n=yield i.login(e),r=yield i.syncDown(n.sessionToken),s=fn.mergeSyncDownPages(r);return yield fn.processMergedSyncDownPages(s,n.dataKey)})}getItems(){return this.items}getErrors(){return this.errors}constructor(e,t){this.items=e,this.errors=t}static mergeSyncDownPages(e){if(1===e.length)return e[0];const t=e[0];for(let i=1;i<e.length;i++){const n=e[i];t.userFolders.push(...n.userFolders),t.sharedFolders.push(...n.sharedFolders),t.userFolderSharedFolders.push(...n.userFolderSharedFolders),t.sharedFolderFolders.push(...n.sharedFolderFolders),t.records.push(...n.records),t.recordMetaData.push(...n.recordMetaData),t.nonSharedData.push(...n.nonSharedData),t.recordLinks.push(...n.recordLinks),t.userFolderRecords.push(...n.userFolderRecords),t.sharedFolderRecords.push(...n.sharedFolderRecords),t.sharedFolderFolderRecords.push(...n.sharedFolderFolderRecords),t.sharedFolderUsers.push(...n.sharedFolderUsers),t.sharedFolderTeams.push(...n.sharedFolderTeams),t.recordAddAuditData.push(...n.recordAddAuditData),t.teams.push(...n.teams),t.sharingChanges.push(...n.sharingChanges),t.pendingTeamMembers.push(...n.pendingTeamMembers),t.breachWatchRecords.push(...n.breachWatchRecords),t.userAuths.push(...n.userAuths),t.breachWatchSecurityData.push(...n.breachWatchSecurityData),t.removedUserFolders.push(...n.removedUserFolders),t.removedSharedFolders.push(...n.removedSharedFolders),t.removedUserFolderSharedFolders.push(...n.removedUserFolderSharedFolders),t.removedSharedFolderFolders.push(...n.removedSharedFolderFolders),t.removedRecords.push(...n.removedRecords),t.removedRecordLinks.push(...n.removedRecordLinks),t.removedUserFolderRecords.push(...n.removedUserFolderRecords),t.removedSharedFolderRecords.push(...n.removedSharedFolderRecords),t.removedSharedFolderFolderRecords.push(...n.removedSharedFolderFolderRecords),t.removedSharedFolderUsers.push(...n.removedSharedFolderUsers),t.removedSharedFolderTeams.push(...n.removedSharedFolderTeams),t.removedTeams.push(...n.removedTeams),t.ksmAppShares.push(...n.ksmAppShares),t.ksmAppClients.push(...n.ksmAppClients),t.shareInvitations.push(...n.shareInvitations),t.recordRotations.push(...n.recordRotations),t.users.push(...n.users),t.removedUsers.push(...n.removedUsers),t.securityScoreData.push(...n.securityScoreData),t.notificationSync.push(...n.notificationSync),t.continuationToken=n.continuationToken,t.hasMore=n.hasMore,t.cacheStatus=n.cacheStatus}return t}static processMergedSyncDownPages(e,t){return mn(this,void 0,void 0,function*(){var i;const[n,r]=yield fn.decryptFolderNames(e.userFolders,t),s=yield fn.decryptSharedFolderKeys(e.sharedFolders,t),[o,a]=yield fn.decryptSharedFolderNames(e.sharedFolders,s),l=yield fn.decryptRecordKeys(e.recordMetaData,t),c=yield fn.decryptSharedFolderRecordKeys(e.sharedFolderRecords,s),d=yield fn.decryptLinkedRecordKeys(e.recordLinks,new Map([...l,...c])),u=new Map([...l,...c,...d]),[h,A]=yield fn.decryptRecords(e.records,u),[p,g]=yield fn.decryptSharedFolderFolderNames(e.sharedFolderFolders,s),v=fn.buildRecordFolderPaths(e.userFolders,e.sharedFolders,e.sharedFolderFolders,e.userFolderSharedFolders,new Map([...n,...o,...p])),m=fn.buildRecordFolders(e.userFolderRecords,e.sharedFolderRecords,e.sharedFolderFolderRecords,v),f=[];for(const[e,t]of h)f.push(Object.assign(Object.assign({},t),{id:e,folders:null!==(i=m.get(e))&&void 0!==i?i:[]}));const y=[...A,...r,...a,...g];return new fn(f,y)})}static decryptFolderNames(e,t){return mn(this,void 0,void 0,function*(){const i=new Map,n=[];for(const s of e){const e=yn(s.folderUid);try{const n=yield _i(s.userFolderKey,s.keyType,t),r=yield fn.decryptJsonV1(s.data,n);i.set(e,r.name)}catch(r){n.push({id:e,reason:Ve.FolderDecryptionFailed})}}return[i,n]})}static decryptSharedFolderKeys(e,t){return mn(this,void 0,void 0,function*(){const i=new Map;for(const r of e){const e=yn(r.sharedFolderUid);try{const n=yield _i(r.sharedFolderKey,r.keyType,t);i.set(e,n)}catch(n){}}return i})}static decryptSharedFolderNames(e,t){return mn(this,void 0,void 0,function*(){const i=new Map,n=[];for(const s of e){const e=yn(s.sharedFolderUid),o=t.get(e);if(o)try{const t=s.data?(yield fn.decryptJsonV1(s.data,o)).name:yield fn.decryptString(s.name,o,Yi);i.set(e,t)}catch(r){n.push({id:e,reason:Ve.FolderDecryptionFailed})}else n.push({id:e,reason:Ve.FolderDecryptionFailed})}return[i,n]})}static decryptSharedFolderRecordKeys(e,t){return mn(this,void 0,void 0,function*(){const i=new Map;for(const r of e){const e=yn(r.sharedFolderUid),s=t.get(e);if(s)try{const e=new Uint8Array(r.recordKey),t=60===e.length?yield zi(e,s):yield Yi(e,s);i.set(yn(r.recordUid),t)}catch(n){}}return i})}static decryptLinkedRecordKeys(e,t){return mn(this,void 0,void 0,function*(){const i=new Map,n=e=>{var n;return null!==(n=t.get(e))&&void 0!==n?n:i.get(e)};let r=!0;for(;r;){r=!1;for(const t of e){const e=yn(t.childRecordUid);if(n(e))continue;const o=n(yn(t.parentRecordUid)),a=new Uint8Array(t.recordKey);if(o&&0!==a.length)try{const t=60===a.length?yield zi(a,o):yield Yi(a,o);i.set(e,t),r=!0}catch(s){}}}return i})}static decryptRecordKeys(e,t){return mn(this,void 0,void 0,function*(){const i=new Map;for(const r of e){const e=yn(r.recordUid);try{const n=yield _i(r.recordKey,r.recordKeyType,t);i.set(e,n)}catch(n){}}return i})}static decryptRecords(e,t){return mn(this,void 0,void 0,function*(){var i,n,r,s,o;const a=new Map,l=[];for(const d of e){const e=yn(d.recordUid),u=t.get(e);if(u)if(d.version<3)l.push({id:e,reason:Ve.UnsupportedVersion});else try{const t=yield fn.decryptJsonV2(d.data,u);a.set(e,{type:null!==(i=t.type)&&void 0!==i?i:"",title:null!==(n=t.title)&&void 0!==n?n:"",notes:null!==(r=t.notes)&&void 0!==r?r:"",fields:null!==(s=t.fields)&&void 0!==s?s:[],custom:null!==(o=t.custom)&&void 0!==o?o:[]})}catch(c){l.push({id:e,reason:Ve.DecryptionFailed})}else l.push({id:e,reason:Ve.DecryptionFailed})}return[a,l]})}static decryptSharedFolderFolderNames(e,t){return mn(this,void 0,void 0,function*(){const i=new Map,n=[];for(const s of e){const e=yn(s.sharedFolderUid),o=yn(s.folderUid),a=t.get(e);if(a)try{const e=yield _i(s.sharedFolderFolderKey,s.keyType,a),t=yield fn.decryptJsonV1(s.data,e);i.set(o,t.name)}catch(r){n.push({id:o,reason:Ve.FolderDecryptionFailed})}else n.push({id:o,reason:Ve.FolderDecryptionFailed})}return[i,n]})}static buildRecordFolderPaths(e,t,i,n,r){const s=new Map,o=new Map;for(const c of e){const e=yn(c.folderUid),t=yn(c.parentUid);o.set(e,t)}for(const c of n){const e=yn(c.sharedFolderUid),t=yn(c.folderUid);o.set(e,t)}for(const c of i){const e=yn(c.folderUid),t=c.parentUid.length>0?yn(c.parentUid):yn(c.sharedFolderUid);o.set(e,t)}const a=new Set,l=e=>{var t;if(s.has(e))return s.get(e);const i=function(e){return e.replaceAll("\\","-").replaceAll("/","-")}(null!==(t=r.get(e))&&void 0!==t?t:e);if(a.has(e))return s.set(e,i),i;a.add(e);const n=o.get(e);if(!n)return s.set(e,i),i;const c=l(n),d=(h=i,(u=c)?u+"/"+h:h);var u,h;return s.set(e,d),d};for(const c of o.keys())l(c);return s}static buildRecordFolders(e,t,i,n){const r=new Map,s=(e,t)=>{const i=n.get(t);r.has(e)||r.set(e,[]),i&&r.get(e).push(i)};for(const o of e)s(yn(o.recordUid),yn(o.folderUid));for(const o of t)s(yn(o.recordUid),yn(o.sharedFolderUid));for(const o of i)s(yn(o.recordUid),yn(o.folderUid));return r}static decryptJsonV1(e,t){return mn(this,void 0,void 0,function*(){return yield fn.decryptJson(e,t,Yi)})}static decryptJsonV2(e,t){return mn(this,void 0,void 0,function*(){return yield fn.decryptJson(e,t,zi)})}static decryptJson(e,t,i){return mn(this,void 0,void 0,function*(){return JSON.parse(yield fn.decryptString(e,t,i))})}static decryptString(e,t,i){return mn(this,void 0,void 0,function*(){return(new TextDecoder).decode(yield i(e,t))})}}function yn(e){return en(e)}var bn=i(92543),Cn=i(6528),In=i(11766),wn=i(67036),Bn=i(16671),En=i(6632),Sn=i(74043),Qn=i(55350);const kn=Object.freeze({Error:"error",UnsupportedFeature:"unsupportedFeature",UnsupportedType:"unsupportedType",FolderDecryptionFailed:"folderDecryptionFailed"});class Rn{constructor(e,t,i){this.id=e,this.reason=t,this.type=i}}const Fn=new Set(["file","photo"]);class Tn extends Qn.G{constructor(){super(...arguments),this.references=new Map,this.idToCipher=new Map}convertVaultToImportResult(e){const t=new Sn.h,i=[];this.references.clear(),this.idToCipher.clear();const n=e.getItems();return this.parseRecords(n,t,i),this.resolveReferences(),this.mapVaultErrors(e.getErrors(),i),this.organization&&this.moveFoldersToCollections(t),t.success=!0,{result:t,errors:i}}mapVaultErrors(e,t){for(const i of e)t.push(new Rn(i.id,Dn(i.reason)))}parseRecords(e,t,i){for(const r of e)if(Fn.has(r.type))i.push(new Rn(r.id,kn.UnsupportedType,r.type));else try{this.parseRecord(r,t)}catch(n){i.push(new Rn(r.id,kn.Error,r.type))}}parseRecord(e,t){const i=this.initLoginCipher();i.name=this.getValueOrDefault(e.title),i.notes=this.getValueOrDefault(e.notes);const n=new Set;switch(e.type){case"bankCard":this.importBankCard(e,i,n);break;case"driverLicense":this.importIdentity(e,i,n,(e,t)=>{e.licenseNumber=t});break;case"ssnCard":this.importIdentity(e,i,n,(e,t)=>{e.ssn=t});break;case"passport":this.importIdentity(e,i,n,(e,t)=>{e.passportNumber=t});break;case"sshKeys":if(!this.importSshKey(e,i,n)){i.type=w.gC.SecureNote;const t=e.fields.findIndex(e=>"password"===e.type);if(-1!==t){const r=this.getFirstFieldValue(e,"password");this.addField(i,"Passphrase",r,bn.P.Hidden),n.add(t)}}}this.importFields(e,i,n),this.collectReferences(e),this.convertToNoteIfNeeded(i),this.cleanupCipher(i);for(const r of e.folders)this.processFolder(t,r);t.ciphers.push(i),e.id&&this.idToCipher.set(e.id,i)}getFirstFieldValue(e,t){const i=e.fields.find(e=>e.type===t);return(null==i?void 0:i.value.length)?String(i.value[0]):void 0}importBankCard(e,t,i){t.type=w.gC.Card,t.card=new Cn.G;for(let n=0;n<e.fields.length;n++){const r=e.fields[n];if("paymentCard"===r.type&&r.value.length>0){const e=r.value[0];if(t.card.number=e.cardNumber||void 0,t.card.code=e.cardSecurityCode||void 0,t.card.brand=Cn.G.getCardBrandByPatterns(t.card.number),e.cardExpirationDate){const i=e.cardExpirationDate.split("/");2===i.length&&(t.card.expMonth=i[0],t.card.expYear=i[1])}i.add(n)}else"text"===r.type&&"cardholderName"===r.label&&r.value.length>0?(t.card.cardholderName=String(r.value[0]),i.add(n)):"pinCode"===r.type&&r.value.length>0&&(this.addField(t,"PIN",String(r.value[0]),bn.P.Hidden),i.add(n))}}importIdentity(e,t,i,n){t.type=w.gC.Identity,t.identity=new wn.O;for(let r=0;r<e.fields.length;r++){const s=e.fields[r];if(0!==s.value.length)if("accountNumber"===s.type)n(t.identity,String(s.value[0])),i.add(r);else if("name"===s.type){const{first:e,middle:n,last:o}=s.value[0];t.identity.firstName=e||void 0,t.identity.middleName=n||void 0,t.identity.lastName=o||void 0,i.add(r)}}}importSshKey(e,t,i){var n;const r=e.fields.findIndex(e=>"keyPair"===e.type&&e.value.length>0);if(-1===r)return!1;const s=e.fields[r].value[0];if(!s.privateKey)return!1;const o=null!==(n=this.getFirstFieldValue(e,"password"))&&void 0!==n?n:"";let a=null;try{a=(0,En.import_ssh_key)(s.privateKey,o)}catch(l){return this.logService.warning(`Unable to import SSH key (title: ${e.title})`),!1}if(!a)return!1;t.type=w.gC.SshKey,t.sshKey.privateKey=a.privateKey,t.sshKey.publicKey=a.publicKey,t.sshKey.keyFingerprint=a.fingerprint,i.add(r);for(let c=0;c<e.fields.length;c++){if(i.has(c))continue;const n=e.fields[c];if("host"===n.type&&n.value.length>0){const{hostName:e,port:r}=n.value[0];this.addField(t,"Hostname",e),this.addField(t,"Port",r),i.add(c)}}return!0}importFields(e,t,i){for(let n=0;n<e.fields.length;n++){if(i.has(n))continue;const r=e.fields[n];this.importField(t,r)}for(const n of e.custom)this.importField(t,n)}collectReferences(e){const t=[];for(const i of[...e.fields,...e.custom])if(i.type.endsWith("Ref")&&i.value.length>0){const e=i.type.slice(0,-3);for(const n of i.value)t.push({id:String(n),type:e})}t.length>0&&this.references.set(e.id,t)}resolveReferences(){var e,t;for(const[i,n]of this.references){const r=this.idToCipher.get(i);if(r)for(const{id:i,type:s}of n){const n=this.idToCipher.get(i);if(!n)continue;const o=null===(t=null===(e=n.fields)||void 0===e?void 0:e.find(e=>e.name===s))||void 0===t?void 0:t.value;o&&this.addField(r,s,o)}}}importField(e,t){if(!t.value||0===t.value.length)return;if(t.type.endsWith("Ref"))return;if(this.tryImportArrayField(t.type,t.value,e))return;const i=t.label||t.type;for(const n of t.value)this.tryImportExpandingField(t.type,n,e)||this.importSingleField(t.type,i,n,e)}tryImportArrayField(e,t,i){var n;switch(e){case"login":for(const e of t){const t=String(e);this.isNullOrWhitespace(t)||(i.type!==w.gC.Login||i.login.username?this.addField(i,"Username",t):i.login.username=t)}break;case"password":for(const e of t){const t=String(e);this.isNullOrWhitespace(t)||(i.type!==w.gC.Login||i.login.password?this.addField(i,"Password",t,bn.P.Hidden):i.login.password=t)}break;case"oneTimeCode":{const e=t.map(e=>String(e));if(0===e.length)break;i.type!==w.gC.Login||i.login.totp||(i.login.totp=e.shift());for(const t of e)this.addField(i,"TOTP",t,bn.P.Hidden)}break;case"url":for(const e of t){const t=String(e);if(!this.isNullOrWhitespace(t))if(i.type===w.gC.Login){const e=new Bn.z;e.uri=null!==(n=this.fixUri(t))&&void 0!==n?n:void 0,this.isNullOrWhitespace(e.uri)||(i.login.uris||(i.login.uris=[]),i.login.uris.push(e))}else this.addField(i,"URL",t)}break;default:return!1}return!0}tryImportExpandingField(e,t,i){switch(e){case"host":{const{hostName:e,port:n}=t;this.addField(i,"Hostname",e),this.addField(i,"Port",n)}break;case"keyPair":{const{publicKey:e,privateKey:n}=t;this.addField(i,"Public key",e),this.addField(i,"Private key",n,bn.P.Hidden)}break;case"securityQuestion":{const{question:e,answer:n}=t;this.addField(i,"Security question",e),this.addField(i,"Security question answer",n,bn.P.Hidden)}break;case"appFiller":break;default:return!1}return!0}importSingleField(e,t,i,n){let r=this.convertToFieldValue(i),s=bn.P.Text;switch(e){case"date":case"birthDate":case"expirationDate":r=this.parseDate(i);break;case"name":{const{first:e,middle:t,last:n}=i;r=[e,t,n].filter(e=>e).join(" ").trim()}break;case"address":{const{street1:e,street2:t,city:n,state:s,zip:o,country:a}=i;r=[e,t,n,s,o,a].filter(e=>e).join(", ").trim()}break;case"phone":{const{region:e,number:t,ext:n,type:s}=i,o=[];e&&o.push(`(${e})`),t&&o.push(t),n&&o.push(`ext. ${n}`),s&&o.push(`(${s})`),r=o.join(" ").trim()}break;case"bankAccount":{const{accountType:e,otherType:t,accountNumber:n,routingNumber:s}=i,o=[],a=t||e;a&&o.push(`Type: ${a}`),n&&o.push(`Account Number: ${n}`),s&&o.push(`Routing Number: ${s}`),r=o.join(", ").trim()}break;case"pinCode":case"secret":s=bn.P.Hidden}this.addField(n,t,r,s)}addField(e,t,i,n=bn.P.Text){if(!i)return;const r=new In.g;r.type=n,r.name=t,r.value=this.convertToFieldValue(i),e.fields.push(r)}convertToFieldValue(e){if("string"==typeof e)return e;try{return JSON.stringify(e)}catch(t){}return""}parseDate(e){const t=new Date(e);return isNaN(t.getTime())?"":t.toLocaleString()}}function Dn(e){switch(e){case Ve.UnsupportedVersion:return kn.UnsupportedFeature;case Ve.FolderDecryptionFailed:return kn.FolderDecryptionFailed;case Ve.DecryptionFailed:default:return kn.Error}}var Pn=i(26477),Mn=i(8297),xn=i(83632);const Vn=[[["","bitDialogContent",""]]],Gn=["ngProjectAs","[bitDialogContent]",5,["","bitDialogContent",""]];function Un(e,t){if(1&e){const e=d.RV6();d.j41(0,"button",5),d.bIt("click",function(){E.eBV(e);const t=d.XpG();return E.Njj(t.primary.emit())}),d.EFF(1),d.k0s()}if(2&e){const e=d.XpG();d.Y8G("loading",e.loading()),d.R7$(),d.SpI(" ",e.primaryLabel()," ")}}function On(e,t){if(1&e){const e=d.RV6();d.j41(0,"button",6),d.bIt("click",function(){E.eBV(e);const t=d.XpG();return E.Njj(t.secondary.emit())}),d.EFF(1),d.k0s()}if(2&e){const e=d.XpG();d.R7$(),d.SpI(" ",e.secondaryLabel()," ")}}class Nn{constructor(){this.title=Ie.hFB.required(),this.email=(0,Ie.hFB)(""),this.primaryLabel=(0,Ie.hFB)(""),this.secondaryLabel=(0,Ie.hFB)(""),this.loading=(0,Ie.hFB)(!1),this.primary=(0,Ie.CGW)(),this.secondary=(0,Ie.CGW)(),this.close=(0,Ie.CGW)()}}Nn.ɵfac=function(e){return new(e||Nn)},Nn.ɵcmp=d.VBU({type:Nn,selectors:[["keeper-stage-shell"]],inputs:{title:[1,"title"],email:[1,"email"],primaryLabel:[1,"primaryLabel"],secondaryLabel:[1,"secondaryLabel"],loading:[1,"loading"]},outputs:{primary:"primary",secondary:"secondary",close:"close"},ngContentSelectors:["[bitDialogContent]"],decls:7,vars:8,consts:[[3,"disableAnimations","title","subtitle"],["bitDialogHeaderEnd","","type","button","bitIconButton","bwi-close","buttonType","primaryGhost","size","default",3,"click","label"],["bitDialogFooter",""],["bitButton","","buttonType","primary","type","button",3,"loading"],["bitButton","","buttonType","secondary","type","button"],["bitButton","","buttonType","primary","type","button",3,"click","loading"],["bitButton","","buttonType","secondary","type","button",3,"click"]],template:function(e,t){1&e&&(d.NAR(Vn),d.j41(0,"bit-dialog",0)(1,"button",1),d.nI1(2,"i18n"),d.bIt("click",function(){return t.close.emit()}),d.k0s(),d.SdG(3,0,Gn),d.qex(4,2),d.nVh(5,Un,2,2,"button",3),d.nVh(6,On,2,1,"button",4),d.bVm(),d.k0s()),2&e&&(d.Y8G("disableAnimations",!0)("title",t.title())("subtitle",t.email()),d.R7$(),d.Y8G("label",d.bMT(2,6,"close")),d.R7$(4),d.vxM(t.primaryLabel()?5:-1),d.R7$(),d.vxM(t.secondaryLabel()?6:-1))},dependencies:[r.p,c.t,f.Q,a.P,A.m,p.hJ,x.Q,z.s,y.$],encapsulation:2,changeDetection:0});var jn=i(44432),Yn=i(42016),Xn=i(57178),zn=i(24374),Ln=i(58806),Wn=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function Kn(e,t){if(1&e&&(d.j41(0,"bit-radio-button",8)(1,"bit-label"),d.EFF(2),d.nI1(3,"i18n"),d.k0s()()),2&e){const e=t.$implicit,i=d.XpG(2);d.Y8G("value",e),d.R7$(2),d.JRh(d.bMT(3,2,i.getApprovalMethodLabel(e)))}}function Zn(e,t){if(1&e){const e=d.RV6();d.j41(0,"keeper-stage-shell",4),d.nI1(1,"i18n"),d.nI1(2,"i18n"),d.nI1(3,"i18n"),d.bIt("primary",function(){E.eBV(e);const t=d.XpG();return E.Njj(t.confirmApproval())})("secondary",function(){E.eBV(e);const t=d.XpG();return E.Njj(t.cancel())})("close",function(){E.eBV(e);const t=d.XpG();return E.Njj(t.cancel())}),d.j41(4,"div",5)(5,"p",6),d.EFF(6),d.nI1(7,"i18n"),d.k0s(),d.j41(8,"bit-radio-group",7),d.Z7z(9,Kn,4,4,"bit-radio-button",8,d.fX1),d.k0s()()()}if(2&e){const e=d.XpG(),t=d.r8f(0);d.Y8G("title",d.bMT(1,7,"deviceApprovalNeeded"))("email",e.email())("primaryLabel",d.bMT(2,9,"continue"))("secondaryLabel",d.bMT(3,11,"cancel")),d.R7$(6),d.JRh(d.bMT(7,13,"selectApprovalMethodDesc")),d.R7$(2),d.Y8G("formControl",e.approvalMethodControl)("block",!0),d.R7$(),d.Dyx(t.methods)}}function Hn(e,t){if(1&e){const e=d.RV6();d.j41(0,"keeper-stage-shell",4),d.nI1(1,"i18n"),d.nI1(2,"i18n"),d.nI1(3,"i18n"),d.bIt("primary",function(){E.eBV(e);const t=d.XpG(2);return E.Njj(t.submitCode())})("secondary",function(){E.eBV(e);const t=d.XpG(2);return E.Njj(t.tryAnother())})("close",function(){E.eBV(e);const t=d.XpG(2);return E.Njj(t.cancel())}),d.j41(4,"div",5)(5,"p",6),d.EFF(6),d.nI1(7,"i18n"),d.k0s(),d.j41(8,"form",9),d.bIt("ngSubmit",function(){E.eBV(e);const t=d.XpG(2);return E.Njj(t.submitCode())}),d.j41(9,"bit-form-field",10)(10,"bit-label"),d.EFF(11),d.nI1(12,"i18n"),d.k0s(),d.nrm(13,"input",11),d.k0s()(),d.j41(14,"button",12),d.bIt("click",function(){E.eBV(e);const t=d.XpG(2);return E.Njj(t.resend())}),d.EFF(15),d.nI1(16,"i18n"),d.k0s()()()}if(2&e){const e=d.XpG(2);d.Y8G("title",d.bMT(1,8,"deviceApprovalNeeded"))("email",e.email())("primaryLabel",d.bMT(2,10,"continue"))("secondaryLabel",d.bMT(3,12,"tryAnotherMethod")),d.R7$(6),d.JRh(d.bMT(7,14,"approvalEmailDesc")),d.R7$(5),d.JRh(d.bMT(12,16,"verificationCode")),d.R7$(2),d.Y8G("formControl",e.codeControl),d.R7$(2),d.SpI(" ",d.bMT(16,18,"resendCode")," ")}}function Jn(e,t){if(1&e){const e=d.RV6();d.j41(0,"keeper-stage-shell",4),d.nI1(1,"i18n"),d.nI1(2,"i18n"),d.nI1(3,"i18n"),d.bIt("primary",function(){E.eBV(e);const t=d.XpG(2);return E.Njj(t.tryAnother())})("secondary",function(){E.eBV(e);const t=d.XpG(2);return E.Njj(t.cancelAdminApproval())})("close",function(){E.eBV(e);const t=d.XpG(2);return E.Njj(t.cancelAdminApproval())}),d.j41(4,"div",5)(5,"div",13),d.nrm(6,"bit-spinner",14),d.j41(7,"h3",15),d.EFF(8),d.nI1(9,"i18n"),d.k0s(),d.j41(10,"p",16),d.EFF(11),d.nI1(12,"i18n"),d.k0s()()()()}if(2&e){const e=d.XpG(2);d.Y8G("title",d.bMT(1,6,"deviceApprovalNeeded"))("email",e.email())("primaryLabel",d.bMT(2,8,"tryAnotherMethod"))("secondaryLabel",d.bMT(3,10,"cancel")),d.R7$(8),d.JRh(d.bMT(9,12,"adminApprovalRequested")),d.R7$(3),d.SpI(" ",d.bMT(12,14,"adminDeviceApprovalPushDesc")," ")}}function qn(e,t){if(1&e){const e=d.RV6();d.j41(0,"keeper-stage-shell",4),d.nI1(1,"i18n"),d.nI1(2,"i18n"),d.nI1(3,"i18n"),d.bIt("primary",function(){E.eBV(e);const t=d.XpG(2);return E.Njj(t.tryAnother())})("secondary",function(){E.eBV(e);const t=d.XpG(2);return E.Njj(t.cancel())})("close",function(){E.eBV(e);const t=d.XpG(2);return E.Njj(t.cancel())}),d.j41(4,"div",5)(5,"div",13),d.nrm(6,"bit-spinner",14),d.j41(7,"h3",15),d.EFF(8),d.nI1(9,"i18n"),d.k0s(),d.j41(10,"p",16),d.EFF(11),d.nI1(12,"i18n"),d.k0s()()()()}if(2&e){const e=d.XpG(2);d.Y8G("title",d.bMT(1,6,"deviceApprovalNeeded"))("email",e.email())("primaryLabel",d.bMT(2,8,"tryAnotherMethod"))("secondaryLabel",d.bMT(3,10,"cancel")),d.R7$(8),d.JRh(d.bMT(9,12,"keeperPushSent")),d.R7$(3),d.SpI(" ",d.bMT(12,14,"otherDeviceApprovalPushDesc")," ")}}function $n(e,t){if(1&e&&d.nVh(0,Hn,17,20,"keeper-stage-shell",0)(1,Jn,13,16,"keeper-stage-shell",0)(2,qn,13,16,"keeper-stage-shell",0),2&e){d.XpG();const e=d.r8f(0);d.vxM("email"===e.variant?0:"admin"===e.variant?1:2)}}function _n(e,t){if(1&e&&(d.j41(0,"bit-radio-button",8)(1,"bit-label"),d.EFF(2),d.nI1(3,"i18n"),d.k0s()()),2&e){const e=t.$implicit,i=d.XpG(2);d.Y8G("value",e),d.R7$(2),d.JRh(d.bMT(3,2,i.getTwoFactorLabel(e)))}}function er(e,t){if(1&e){const e=d.RV6();d.j41(0,"keeper-stage-shell",4),d.nI1(1,"i18n"),d.nI1(2,"i18n"),d.nI1(3,"i18n"),d.bIt("primary",function(){E.eBV(e);const t=d.XpG();return E.Njj(t.confirmTwoFactor())})("secondary",function(){E.eBV(e);const t=d.XpG();return E.Njj(t.cancel())})("close",function(){E.eBV(e);const t=d.XpG();return E.Njj(t.cancel())}),d.j41(4,"div",5)(5,"bit-radio-group",7),d.Z7z(6,_n,4,4,"bit-radio-button",8,d.fX1),d.k0s()()()}if(2&e){const e=d.XpG(),t=d.r8f(0);d.Y8G("title",d.bMT(1,6,"selectTwoFactorMethod"))("email",e.email())("primaryLabel",d.bMT(2,8,"continue"))("secondaryLabel",d.bMT(3,10,"cancel")),d.R7$(5),d.Y8G("formControl",e.twoFactorMethodControl)("block",!0),d.R7$(),d.Dyx(t.methods)}}function tr(e,t){if(1&e){const e=d.RV6();d.j41(0,"button",12),d.bIt("click",function(){E.eBV(e);const t=d.XpG(3);return E.Njj(t.resend())}),d.EFF(1),d.nI1(2,"i18n"),d.k0s()}2&e&&(d.R7$(),d.SpI(" ",d.bMT(2,1,"resendCode")," "))}function ir(e,t){if(1&e){const e=d.RV6();d.j41(0,"p",6),d.EFF(1),d.nI1(2,"i18n"),d.k0s(),d.j41(3,"form",9),d.bIt("ngSubmit",function(){E.eBV(e);const t=d.XpG(2);return E.Njj(t.submitCode())}),d.j41(4,"bit-form-field",10)(5,"bit-label"),d.EFF(6),d.nI1(7,"i18n"),d.k0s(),d.nrm(8,"input",17),d.k0s()(),d.nVh(9,tr,3,3,"button",18)}if(2&e){const e=d.XpG(2),t=d.r8f(0);d.R7$(),d.JRh(d.bMT(2,4,e.getTwoFactorCodePrompt(t))),d.R7$(5),d.JRh(d.bMT(7,6,"verificationCode")),d.R7$(2),d.Y8G("formControl",e.codeControl),d.R7$(),d.vxM(t.canResend?9:-1)}}function nr(e,t){1&e&&(d.j41(0,"p",6),d.EFF(1),d.nI1(2,"i18n"),d.k0s()),2&e&&(d.R7$(),d.JRh(d.bMT(2,1,"mfaPushDesc")))}function rr(e,t){if(1&e){const e=d.RV6();d.j41(0,"keeper-stage-shell",4),d.nI1(1,"i18n"),d.nI1(2,"i18n"),d.nI1(3,"i18n"),d.bIt("primary",function(){E.eBV(e);const t=d.XpG(),i=d.r8f(0);return E.Njj(i.needsInput?t.submitCode():t.submitPush())})("secondary",function(){E.eBV(e);const t=d.XpG(),i=d.r8f(0);return E.Njj(i.hidden?t.tryAnother():t.cancel())})("close",function(){E.eBV(e);const t=d.XpG();return E.Njj(t.cancel())}),d.j41(4,"div",5),d.nVh(5,ir,10,8)(6,nr,3,3,"p",6),d.k0s()()}if(2&e){const e=d.XpG(),t=d.r8f(0);d.Y8G("title",d.bMT(1,5,e.getTwoFactorCodeTitle(t)))("email",e.email())("primaryLabel",d.bMT(2,7,"continue"))("secondaryLabel",d.bMT(3,9,t.hidden?"tryAnotherMethod":"cancel")),d.R7$(5),d.vxM(t.needsInput?5:6)}}function sr(e,t){if(1&e&&(d.j41(0,"bit-radio-button",8)(1,"bit-label"),d.EFF(2),d.nI1(3,"i18n"),d.k0s()()),2&e){const e=t.$implicit,i=d.XpG(2);d.Y8G("value",e),d.R7$(2),d.JRh(d.bMT(3,2,i.getDuoLabel(e)))}}function or(e,t){if(1&e){const e=d.RV6();d.j41(0,"keeper-stage-shell",4),d.nI1(1,"i18n"),d.nI1(2,"i18n"),d.nI1(3,"i18n"),d.bIt("primary",function(){E.eBV(e);const t=d.XpG();return E.Njj(t.confirmDuo())})("secondary",function(){E.eBV(e);const t=d.XpG();return E.Njj(t.cancel())})("close",function(){E.eBV(e);const t=d.XpG();return E.Njj(t.cancel())}),d.j41(4,"div",5)(5,"p",6),d.EFF(6),d.k0s(),d.j41(7,"bit-radio-group",19),d.Z7z(8,sr,4,4,"bit-radio-button",8,d.fX1),d.k0s()()()}if(2&e){const e=d.XpG(),t=d.r8f(0);d.Y8G("title",d.bMT(1,7,"duoVerification"))("email",e.email())("primaryLabel",d.bMT(2,9,"continue"))("secondaryLabel",d.bMT(3,11,"cancel")),d.R7$(6),d.JRh(t.phoneNumber),d.R7$(),d.Y8G("formControl",e.duoMethodControl)("block",!0),d.R7$(),d.Dyx(t.methods)}}function ar(e,t){if(1&e){const e=d.RV6();d.j41(0,"keeper-stage-shell",4),d.nI1(1,"i18n"),d.nI1(2,"i18n"),d.nI1(3,"i18n"),d.bIt("primary",function(){E.eBV(e);const t=d.XpG();return E.Njj(t.tryAnother())})("secondary",function(){E.eBV(e);const t=d.XpG();return E.Njj(t.cancel())})("close",function(){E.eBV(e);const t=d.XpG();return E.Njj(t.cancel())}),d.j41(4,"div",5)(5,"p",6),d.EFF(6),d.nI1(7,"i18n"),d.k0s()()()}if(2&e){const e=d.XpG();d.Y8G("title",d.bMT(1,5,"duoVerification"))("email",e.email())("primaryLabel",d.bMT(2,7,"tryAnotherMethod"))("secondaryLabel",d.bMT(3,9,"cancel")),d.R7$(6),d.JRh(d.bMT(7,11,"duoPushWaiting"))}}function lr(e,t){if(1&e&&(d.j41(0,"bit-radio-button",8)(1,"bit-label"),d.EFF(2),d.nI1(3,"i18n"),d.k0s()()),2&e){const e=t.$implicit,i=d.XpG(2);d.Y8G("value",e),d.R7$(2),d.JRh(d.bMT(3,2,i.getDnaLabel(e)))}}function cr(e,t){if(1&e){const e=d.RV6();d.j41(0,"keeper-stage-shell",4),d.nI1(1,"i18n"),d.nI1(2,"i18n"),d.nI1(3,"i18n"),d.bIt("primary",function(){E.eBV(e);const t=d.XpG();return E.Njj(t.confirmDna())})("secondary",function(){E.eBV(e);const t=d.XpG();return E.Njj(t.cancel())})("close",function(){E.eBV(e);const t=d.XpG();return E.Njj(t.cancel())}),d.j41(4,"div",5)(5,"bit-radio-group",7),d.Z7z(6,lr,4,4,"bit-radio-button",8,d.fX1),d.k0s()()()}if(2&e){const e=d.XpG(),t=d.r8f(0);d.Y8G("title",d.bMT(1,6,"keeperDnaVerification"))("email",e.email())("primaryLabel",d.bMT(2,8,"continue"))("secondaryLabel",d.bMT(3,10,"cancel")),d.R7$(5),d.Y8G("formControl",e.dnaMethodControl)("block",!0),d.R7$(),d.Dyx(t.methods)}}function dr(e,t){if(1&e){const e=d.RV6();d.j41(0,"keeper-stage-shell",20),d.nI1(1,"i18n"),d.nI1(2,"i18n"),d.bIt("secondary",function(){E.eBV(e);const t=d.XpG();return E.Njj(t.cancel())})("close",function(){E.eBV(e);const t=d.XpG();return E.Njj(t.cancel())}),d.j41(3,"div",5)(4,"div",13),d.nrm(5,"bit-spinner",14),d.j41(6,"p",16),d.EFF(7),d.nI1(8,"i18n"),d.k0s()()()()}if(2&e){const e=d.XpG();d.Y8G("title",d.bMT(1,4,"keeperDnaVerification"))("email",e.email())("secondaryLabel",d.bMT(2,6,"cancel")),d.R7$(7),d.SpI(" ",d.bMT(8,8,"keeperDnaPushWaiting")," ")}}function ur(e,t){if(1&e){const e=d.RV6();d.j41(0,"keeper-stage-shell",4),d.nI1(1,"i18n"),d.nI1(2,"i18n"),d.nI1(3,"i18n"),d.bIt("primary",function(){E.eBV(e);const t=d.XpG();return E.Njj(t.submitSsoToken())})("secondary",function(){E.eBV(e);const t=d.XpG();return E.Njj(t.cancel())})("close",function(){E.eBV(e);const t=d.XpG();return E.Njj(t.cancel())}),d.j41(4,"div",5)(5,"p",21),d.EFF(6),d.nI1(7,"i18n"),d.k0s(),d.j41(8,"form",9),d.bIt("ngSubmit",function(){E.eBV(e);const t=d.XpG();return E.Njj(t.submitSsoToken())}),d.j41(9,"bit-form-field",10)(10,"bit-label"),d.EFF(11),d.nI1(12,"i18n"),d.k0s(),d.nrm(13,"input",17),d.k0s()()()()}if(2&e){const e=d.XpG();d.Y8G("title",d.bMT(1,7,"ssoAuthRequired"))("email",e.email())("primaryLabel",d.bMT(2,9,"continue"))("secondaryLabel",d.bMT(3,11,"cancel")),d.R7$(6),d.JRh(d.bMT(7,13,"keeperSsoDesc")),d.R7$(5),d.JRh(d.bMT(12,15,"ssoToken")),d.R7$(2),d.Y8G("formControl",e.ssoTokenControl)}}function hr(e,t){if(1&e){const e=d.RV6();d.j41(0,"keeper-stage-shell",22),d.nI1(1,"i18n"),d.nI1(2,"i18n"),d.nI1(3,"i18n"),d.bIt("primary",function(){E.eBV(e);const t=d.XpG();return E.Njj(t.submitPassword())})("secondary",function(){E.eBV(e);const t=d.XpG();return E.Njj(t.cancel())})("close",function(){E.eBV(e);const t=d.XpG();return E.Njj(t.cancel())}),d.j41(4,"div",5)(5,"p",21),d.EFF(6),d.nI1(7,"i18n"),d.k0s(),d.j41(8,"form",9),d.bIt("ngSubmit",function(){E.eBV(e);const t=d.XpG();return E.Njj(t.submitPassword())}),d.j41(9,"bit-form-field",10)(10,"bit-label"),d.EFF(11),d.nI1(12,"i18n"),d.k0s(),d.nrm(13,"input",23)(14,"button",24),d.k0s()()()()}if(2&e){const e=d.XpG();d.Y8G("title",d.bMT(1,8,"masterPassword"))("email",e.email())("primaryLabel",d.bMT(2,10,"continue"))("secondaryLabel",d.bMT(3,12,"cancel"))("loading",e.passwordSubmitting()),d.R7$(6),d.JRh(d.bMT(7,14,"keeperMasterPasswordPrompt")),d.R7$(5),d.JRh(d.bMT(12,16,"masterPassword")),d.R7$(2),d.Y8G("formControl",e.passwordControl)}}function Ar(e,t){if(1&e){const e=d.RV6();d.j41(0,"keeper-stage-shell",25),d.nI1(1,"i18n"),d.nI1(2,"i18n"),d.bIt("primary",function(){E.eBV(e);const t=d.XpG();return E.Njj(t.dismissError())})("close",function(){E.eBV(e);const t=d.XpG();return E.Njj(t.dismissError())}),d.j41(3,"div",5)(4,"bit-callout",26),d.EFF(5),d.nI1(6,"i18n"),d.k0s()()()}if(2&e){d.XpG();const e=d.r8f(0);d.Y8G("title",d.bMT(1,3,"errorOccurred"))("primaryLabel",d.bMT(2,5,"ok")),d.R7$(5),d.SpI(" ",d.bMT(6,7,e.message)," ")}}class pr{constructor(){this.stage=Ie.hFB.required(),this.email=(0,Ie.hFB)(""),this.submitted=(0,Ie.CGW)(),this.cancelled=(0,Ie.CGW)(),this.triedAnother=(0,Ie.CGW)(),this.resent=(0,Ie.CGW)(),this.errorDismissed=(0,Ie.CGW)(),this.i18nService=(0,E.WQX)(te.W),this.dialogService=(0,E.WQX)(Se.o),this.codeControl=new D.MJ("",{nonNullable:!0,validators:[D.k0.required]}),this.passwordControl=new D.MJ("",{nonNullable:!0,validators:[D.k0.required]}),this.ssoTokenControl=new D.MJ("",{nonNullable:!0,validators:[D.k0.required]}),this.approvalMethodControl=new D.MJ(null),this.twoFactorMethodControl=new D.MJ(null),this.duoMethodControl=new D.MJ(null),this.dnaMethodControl=new D.MJ(null),this.passwordSubmitting=(0,E.vPA)(!1),(0,E.QZP)(()=>{const e=this.stage();this.passwordSubmitting.set(!1),"selectApproval"===e.kind&&e.methods.length>0?this.approvalMethodControl.setValue(e.methods[0]):"selectTwoFactor"===e.kind&&e.methods.length>0?this.twoFactorMethodControl.setValue(e.methods[0]):"selectDuo"===e.kind&&e.methods.length>0?this.duoMethodControl.setValue(e.methods[0]):"selectDna"===e.kind&&e.methods.length>0&&this.dnaMethodControl.setValue(e.methods[0]);"approvalCode"===e.kind&&e.previousCodeRejected||"twoFactorCode"===e.kind&&e.needsInput&&e.previousCodeRejected?(this.codeControl.setErrors({keeperCodeRejected:{message:this.i18nService.t("invalidVerificationCode")}}),this.codeControl.markAsTouched()):("approvalCode"===e.kind||"twoFactorCode"===e.kind&&e.needsInput)&&this.codeControl.reset(""),"password"===e.kind&&e.previousPasswordRejected?(this.passwordControl.setErrors({keeperPasswordRejected:{message:this.i18nService.t("invalidMasterPassword")}}),this.passwordControl.markAsTouched()):"password"===e.kind&&this.passwordControl.reset("")})}confirmApproval(){const e=this.approvalMethodControl.value;null!=e&&this.submitted.emit(e)}confirmTwoFactor(){const e=this.twoFactorMethodControl.value;null!=e&&this.submitted.emit(e)}confirmDuo(){const e=this.duoMethodControl.value;null!=e&&this.submitted.emit(e)}confirmDna(){const e=this.dnaMethodControl.value;null!=e&&this.submitted.emit(e)}submitCode(){const e=this.codeControl.value.trim();e&&(this.codeControl.reset(""),this.submitted.emit(e))}submitPush(){this.submitted.emit("")}submitPassword(){const e=this.passwordControl.value;e&&(this.passwordControl.reset(""),this.passwordSubmitting.set(!0),this.submitted.emit(e))}submitSsoToken(){const e=this.ssoTokenControl.value.trim();e&&(this.ssoTokenControl.reset(""),this.submitted.emit(e))}tryAnother(){this.triedAnother.emit()}resend(){this.resent.emit()}cancel(){this.cancelled.emit()}cancelAdminApproval(){return Wn(this,void 0,void 0,function*(){(yield this.dialogService.openSimpleDialog({title:{key:"approvalRequestWillBeCanceled"},content:{key:"pendingApprovalCancelConfirmation"},acceptButtonText:{key:"cancelRequest"},cancelButtonText:{key:"back"},type:"danger"}))&&this.cancelled.emit()})}dismissError(){this.errorDismissed.emit()}getApprovalMethodLabel(e){switch(e){case Ne.Email:return"email";case Ne.KeeperPush:return"keeperPush";case Ne.TwoFactor:return"twoFactorMethod";case Ne.AdminApproval:return"adminApproval";default:return"email"}}getTwoFactorLabel(e){switch(e){case ze.Totp:return"authenticatorAppTotp";case ze.Sms:return"textMessageSms";case ze.Duo:return"duoSecurity";case ze.Rsa:return"rsaSecurId";case ze.Backup:return"backupCodes";case ze.U2f:return"securityKeyU2f";case ze.WebAuthn:return"securityKeyWebAuthn";case ze.KeeperPush:return"keeperPush";case ze.KeeperDna:return"keeperDna";default:return"unknownMethod"}}getDuoLabel(e){switch(e){case Ye.Push:return"duoPush";case Ye.Sms:return"textMessageSms";case Ye.Voice:return"phoneCall";case Ye.Passcode:return"passcode";default:return"unknownMethod"}}getTwoFactorCodeTitle(e){return e.hidden?"deviceApprovalNeeded":e.needsInput?"verificationCode":"keeperMFARequired"}getTwoFactorCodePrompt(e){if(e.hidden)return"twoFactorCodePrompt";switch(e.method){case ze.Totp:return"totpCodePrompt";case ze.Sms:return"smsCodePrompt";case ze.KeeperDna:return"keeperDnaCodePrompt";default:return"twoFactorCodePrompt"}}getDnaLabel(e){switch(e){case je.Push:return"pushNotification";case je.Code:return"enterCodeManually";default:return"unknownMethod"}}}pr.ɵfac=function(e){return new(e||pr)},pr.ɵcmp=d.VBU({type:pr,selectors:[["keeper-auth-stage-view"]],inputs:{stage:[1,"stage"],email:[1,"email"]},outputs:{submitted:"submitted",cancelled:"cancelled",triedAnother:"triedAnother",resent:"resent",errorDismissed:"errorDismissed"},decls:12,vars:2,consts:[[3,"title","email","primaryLabel","secondaryLabel"],[3,"title","email","secondaryLabel"],[3,"title","email","primaryLabel","secondaryLabel","loading"],[3,"title","primaryLabel"],[3,"primary","secondary","close","title","email","primaryLabel","secondaryLabel"],["bitDialogContent",""],["bitTypography","body1"],[3,"formControl","block"],[3,"value"],[3,"ngSubmit"],["disableMargin",""],["bitInput","","type","text",3,"formControl"],["type","button","bitLink","","linkType","primary",1,"tw-mt-2","tw-text-xs",3,"click"],[1,"tw-flex","tw-flex-col","tw-items-center"],[1,"tw-mb-4"],["bitTypography","h3"],["bitTypography","body1",1,"tw-text-center"],["bitInput","","type","text","appInputVerbatim","",3,"formControl"],["type","button","bitLink","","linkType","primary",1,"tw-mt-2","tw-text-xs"],[1,"tw-mt-4",3,"formControl","block"],[3,"secondary","close","title","email","secondaryLabel"],["bitTypography","body2"],[3,"primary","secondary","close","title","email","primaryLabel","secondaryLabel","loading"],["bitInput","","type","password","appInputVerbatim","",3,"formControl"],["type","button","bitSuffix","","bitIconButton","","bitPasswordInputToggle",""],[3,"primary","close","title","primaryLabel"],["type","danger"]],template:function(e,t){if(1&e&&(d.SS7(0),d.nVh(1,Zn,11,15,"keeper-stage-shell",0)(2,$n,3,1)(3,er,8,12,"keeper-stage-shell",0)(4,rr,7,11,"keeper-stage-shell",0)(5,or,10,13,"keeper-stage-shell",0)(6,ar,8,13,"keeper-stage-shell",0)(7,cr,8,12,"keeper-stage-shell",0)(8,dr,9,10,"keeper-stage-shell",1)(9,ur,14,17,"keeper-stage-shell",0)(10,hr,15,18,"keeper-stage-shell",2)(11,Ar,7,9,"keeper-stage-shell",3)),2&e){let e;const i=d.bH3(t.stage());d.R7$(),d.vxM("selectApproval"===(e=i.kind)?1:"approvalCode"===e?2:"selectTwoFactor"===e?3:"twoFactorCode"===e?4:"selectDuo"===e?5:"duoPush"===e?6:"selectDna"===e?7:"dnaPush"===e?8:"ssoToken"===e?9:"password"===e?10:"error"===e?11:-1)}},dependencies:[r.p,G.q,Qe.j,jn.G,a.P,P.L,U.j,Yn.W,O.J,N.h,j.e,Y.a,x.Q,z.s,Nn,Pn.V,Xn.g,Mn.K,zn.d,D.X1,D.qT,D.me,D.BC,D.cb,D.l_,xn.t,ke.E,Ln.r,y.$],encapsulation:2,changeDetection:0});class gr{constructor(){this.keeperUi=(0,E.WQX)(br),this.stage=this.keeperUi.stage,this.email=this.keeperUi.email}onSubmitted(e){this.keeperUi.submit(e)}onCancelled(){this.keeperUi.cancel()}onTriedAnother(){this.keeperUi.tryAnother()}onResent(){this.keeperUi.resend()}onErrorDismissed(){this.keeperUi.dismissError()}static open(e){return e.open(gr,{disableClose:!0})}}gr.ɵfac=function(e){return new(e||gr)},gr.ɵcmp=d.VBU({type:gr,selectors:[["ng-component"]],decls:1,vars:2,consts:[[3,"submitted","cancelled","triedAnother","resent","errorDismissed","stage","email"]],template:function(e,t){1&e&&(d.j41(0,"keeper-auth-stage-view",0),d.bIt("submitted",function(e){return t.onSubmitted(e)})("cancelled",function(){return t.onCancelled()})("triedAnother",function(){return t.onTriedAnother()})("resent",function(){return t.onResent()})("errorDismissed",function(){return t.onErrorDismissed()}),d.k0s()),2&e&&d.Y8G("stage",t.stage())("email",t.email())},dependencies:[pr],encapsulation:2,changeDetection:0});class vr{constructor(e){this.platformUtilsService=e}launchAndWaitForToken(e){return this.platformUtilsService.launchUri(e),Promise.reject(new Error("SSO token auto-capture is not supported in this client"))}cancel(){}}const mr=new E.nKC("KEEPER_SSO_TAB_MONITOR",{providedIn:"root",factory:()=>new vr((0,E.WQX)(ne.y))});var fr=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const yr=/^https:\/\/keepersecurity\.[^/]+\/api\/rest\/sso\/saml\/\d+\/saml\/sso/i;class br{constructor(){this.dialogService=(0,E.WQX)(Se.o),this.ssoTabMonitor=(0,E.WQX)(mr),this.autoCaptureSsoToken=(0,E.WQX)(ne.y).getClientType()===Ee.sK.Browser,this._stage=(0,E.vPA)({kind:"idle"}),this.stage=this._stage.asReadonly(),this._email=(0,E.vPA)(""),this.email=this._email.asReadonly()}setEmail(e){this._email.set(e)}setStage(e){this._stage.set(e),"idle"!==e.kind&&void 0===this.dialogRef&&(this.dialogRef=gr.open(this.dialogService))}submit(e){this.resolvePending(e)}cancel(){this.resolvePending(Pi)}resend(){this.resolvePending(Mi)}tryAnother(){this.resolvePending(xi)}dismissError(){this.resolvePending(void 0)}reset(){var e;this._stage.set({kind:"idle"}),this._email.set(""),null===(e=this.dialogRef)||void 0===e||e.close(),this.dialogRef=void 0}waitForUser(){return new Promise(e=>{this.pendingResolver=e})}resolvePending(e){const t=this.pendingResolver;this.pendingResolver=void 0,null==t||t(e)}selectApprovalMethod(e){return fr(this,void 0,void 0,function*(){return 0===e.length?Pi:1===e.length?e[0]:(this.setStage({kind:"selectApproval",methods:e}),this.waitForUser())})}provideApprovalCode(e,t){return fr(this,void 0,void 0,function*(){var i;const n=e===Ne.Email?"email":e===Ne.AdminApproval?"admin":"push";return this.setStage({kind:"approvalCode",method:e,variant:n,previousCodeRejected:null!==(i=null==t?void 0:t.previousCodeRejected)&&void 0!==i&&i}),this.waitForUser()})}selectTwoFactorMethod(e){return fr(this,void 0,void 0,function*(){return 0===e.length?Pi:1===e.length?e[0]:(this.setStage({kind:"selectTwoFactor",methods:e}),this.waitForUser())})}provideTwoFactorCode(e,t){return fr(this,void 0,void 0,function*(){var i,n,r;const s=e===ze.Totp||e===ze.Sms||e===ze.Duo||e===ze.Backup||e===ze.Rsa||e===ze.KeeperDna;return this.setStage({kind:"twoFactorCode",method:e,needsInput:s,hidden:null!==(i=null==t?void 0:t.hidden)&&void 0!==i&&i,canResend:null!==(n=null==t?void 0:t.canResend)&&void 0!==n&&n,previousCodeRejected:null!==(r=null==t?void 0:t.previousCodeRejected)&&void 0!==r&&r}),this.waitForUser()})}selectDuoMethod(e,t){return fr(this,void 0,void 0,function*(){return 0===e.length?Pi:1===e.length?e[0]:(this.setStage({kind:"selectDuo",methods:e,phoneNumber:t}),this.waitForUser())})}waitForDuoPush(e){return fr(this,void 0,void 0,function*(){this.setStage({kind:"duoPush",method:e});const t=yield this.waitForUser();if(t===Pi||t===xi)return t})}selectDnaMethod(e){return fr(this,void 0,void 0,function*(){return 0===e.length?Pi:1===e.length?e[0]:(this.setStage({kind:"selectDna",methods:e}),this.waitForUser())})}waitForDnaPush(){return fr(this,void 0,void 0,function*(){this.setStage({kind:"dnaPush"});const e=yield this.waitForUser();if(e===Pi||e===xi)return e})}ssoLogin(e){return fr(this,void 0,void 0,function*(){if(this.autoCaptureSsoToken)try{return yield this.ssoTabMonitor.launchAndWaitForToken(e,yr)}finally{this.ssoTabMonitor.cancel()}this.setStage({kind:"ssoToken"}),this.ssoTabMonitor.launchAndWaitForToken(e,yr).catch(()=>{});try{return yield this.waitForUser()}finally{this.ssoTabMonitor.cancel()}})}promptForPassword(e){return fr(this,void 0,void 0,function*(){var t;return this.setStage({kind:"password",previousPasswordRejected:null!==(t=null==e?void 0:e.previousPasswordRejected)&&void 0!==t&&t}),this.waitForUser()})}showError(e){return fr(this,void 0,void 0,function*(){this.setStage({kind:"error",message:e}),yield this.waitForUser()})}}br.ɵfac=function(e){return new(e||br)},br.ɵprov=E.jDH({token:br,factory:br.ɵfac,providedIn:"root"});var Cr=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Ir{constructor(){this.keeperDirectImportUIService=(0,E.WQX)(br)}handleImport(e,t,i){return Cr(this,void 0,void 0,function*(){if(void 0!==this.inFlight)return this.inFlight;this.keeperDirectImportUIService.setEmail(e);const n={ui:this.keeperDirectImportUIService,region:t};return this.inFlight=(()=>Cr(this,void 0,void 0,function*(){try{const t=yield fn.open(e,n),r=new Tn;return void 0!==i&&(r.organizationId=i),r.convertVaultToImportResult(t)}finally{this.inFlight=void 0,this.keeperDirectImportUIService.reset()}}))(),this.inFlight})}}function wr(e,t){if(1&e&&(d.j41(0,"tr",10)(1,"td",4),d.EFF(2),d.k0s(),d.j41(3,"td",4),d.EFF(4),d.k0s()()),2&e){const e=t.$implicit;d.R7$(2),d.JRh(e.type),d.R7$(2),d.JRh(e.count)}}function Br(e,t){if(1&e&&(d.DNE(0,wr,5,2,"tr",9),d.nI1(1,"async")),2&e){const e=t.$implicit;d.Y8G("ngForOf",d.bMT(1,1,e))}}function Er(e,t){if(1&e){const e=d.RV6();d.j41(0,"button",11),d.bIt("click",function(){E.eBV(e);const t=d.XpG();return E.Njj(t.continueImport())}),d.EFF(1),d.nI1(2,"i18n"),d.k0s()}2&e&&(d.R7$(),d.SpI(" ",d.bMT(2,1,"continue")," "))}Ir.ɵfac=function(e){return new(e||Ir)},Ir.ɵprov=E.jDH({token:Ir,factory:Ir.ɵfac,providedIn:"root"});const Sr={login:"typeLogin",bankCard:"typeCard",bankAccount:"bankAccount",address:"address",contact:"contact",file:"file",photo:"photo",encryptedNotes:"typeSecureNote",ssnCard:"ssnCard",databaseCredentials:"databaseCredentials",serverCredentials:"serverCredentials",sshKeys:"typeSshKey",softwareLicense:"softwareLicense",healthInsurance:"healthInsurance",membership:"membership",passport:"passport",driverLicense:"driverLicense",birthCertificate:"birthCertificate",general:"general",wifiCredentials:"wifiCredentials"};class Qr{constructor(e,t,i){this.dialogRef=e,this.data=t,this.i18nService=i,this.dataSource=new s.s}ngOnInit(){this.dataSource.data=this.buildRows(this.data.errors)}continueImport(){this.dialogRef.close(!0)}cancel(){this.dialogRef.close(!1)}buildRows(e){var t;const i=new Map;for(const n of e){const e=this.typeLabel(n);i.set(e,(null!==(t=i.get(e))&&void 0!==t?t:0)+1)}return Array.from(i,([e,t])=>({type:e,count:t}))}typeLabel(e){if(e.reason===kn.FolderDecryptionFailed)return this.i18nService.t("folder");const t=e.type?Sr[e.type]:void 0;return this.i18nService.t(null!=t?t:"other")}}Qr.ɵfac=function(e){return new(e||Qr)(d.rXU(u.ce),d.rXU(o.Qs),d.rXU(te.W))},Qr.ɵcmp=d.VBU({type:Qr,selectors:[["ng-component"]],decls:23,vars:18,consts:[["bitDialogTitle",""],["bitDialogContent",""],[3,"dataSource"],["header",""],["bitCell",""],["body",""],["bitDialogFooter",""],["bitButton","","buttonType","primary","type","button",3,"click",4,"ngIf"],["bitButton","","buttonType","secondary","type","button",3,"click"],["bitRow","",4,"ngFor","ngForOf"],["bitRow",""],["bitButton","","buttonType","primary","type","button",3,"click"]],template:function(e,t){1&e&&(d.j41(0,"bit-dialog")(1,"span",0),d.EFF(2),d.nI1(3,"i18n"),d.k0s(),d.j41(4,"div",1)(5,"p"),d.EFF(6),d.nI1(7,"i18n"),d.k0s(),d.j41(8,"bit-table",2),d.qex(9,3),d.j41(10,"tr")(11,"th",4),d.EFF(12),d.nI1(13,"i18n"),d.k0s(),d.j41(14,"th",4),d.EFF(15),d.nI1(16,"i18n"),d.k0s()(),d.bVm(),d.DNE(17,Br,2,3,"ng-template",5),d.k0s()(),d.qex(18,6),d.DNE(19,Er,3,3,"button",7),d.j41(20,"button",8),d.bIt("click",function(){return t.cancel()}),d.EFF(21),d.nI1(22,"i18n"),d.k0s(),d.bVm(),d.k0s()),2&e&&(d.R7$(2),d.SpI(" ",d.i5U(3,7,"importPartialErrorTitle",t.data.errors.length)," "),d.R7$(4),d.JRh(d.bMT(7,10,"importPartialErrorDescription")),d.R7$(2),d.Y8G("dataSource",t.dataSource),d.R7$(4),d.JRh(d.bMT(13,12,"type")),d.R7$(3),d.JRh(d.bMT(16,14,"items")),d.R7$(4),d.Y8G("ngIf",t.data.canImport),d.R7$(2),d.SpI(" ",d.bMT(22,16,"cancel")," "))},dependencies:[n.MD,n.Sq,n.bT,r.p,a.P,A.m,p.hJ,c.t,f.Q,l.b,g.Q,v.Y,m._,m.O,n.Jj,y.$],encapsulation:2});var kr=i(93199),Rr=i(33886),Fr=i(68923),Tr=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Dr=(e,t)=>t.value;function Pr(e,t){if(1&e&&(d.nrm(0,"bit-option",2),d.nI1(1,"i18n")),2&e){const e=t.$implicit;d.Y8G("value",e.value)("label",d.bMT(1,2,e.label))}}function Mr(e,t){1&e&&(d.j41(0,"bit-hint"),d.EFF(1),d.k0s()),2&e&&(d.R7$(),d.JRh(t))}function xr(e,t){if(1&e&&d.nrm(0,"bit-option",2),2&e){const e=t.$implicit;d.Y8G("value",e.value)("label",e.label)}}function Vr(e,t){if(1&e&&(d.j41(0,"bit-form-field")(1,"bit-label"),d.EFF(2),d.nI1(3,"i18n"),d.k0s(),d.nrm(4,"input",3),d.nVh(5,Mr,2,1,"bit-hint"),d.k0s(),d.j41(6,"bit-form-field")(7,"bit-label"),d.EFF(8),d.nI1(9,"i18n"),d.k0s(),d.j41(10,"bit-select",4),d.Z7z(11,xr,1,2,"bit-option",2,d.fX1),d.k0s()()),2&e){let e;const t=d.XpG();d.R7$(2),d.JRh(d.bMT(3,3,"keeperEmail")),d.R7$(3),d.vxM((e=t.emailHint())?5:-1,e),d.R7$(3),d.JRh(d.bMT(9,5,"dataCenterLocation")),d.R7$(3),d.Dyx(t.regions)}}function Gr(e){const t=e.getClientType();return t===Ee.sK.Desktop||t===Ee.sK.Browser?"direct":"csv"}class Ur{constructor(){this.formBuilder=(0,E.WQX)(D.ok),this.controlContainer=(0,E.WQX)(D.ZU),this.logService=(0,E.WQX)(ie.K),this.keeperDirectImportService=(0,E.WQX)(Ir),this.i18nService=(0,E.WQX)(te.W),this.platformUtilsService=(0,E.WQX)(ne.y),this.dialogService=(0,E.WQX)(Se.o),this._parentFormGroup=(0,E.vPA)(null),this.directSupported=this.platformUtilsService.getClientType()===Ee.sK.Desktop||this.platformUtilsService.getClientType()===Ee.sK.Browser,this.methods=[...this.directSupported?[{value:"direct",label:"directImporter"}]:[],{value:"csv",label:"csv"},{value:"json",label:"json"}],this.regions=[{value:Xe.Us,label:"US"},{value:Xe.Eu,label:"EU"},{value:Xe.Au,label:"AU"},{value:Xe.Ca,label:"CA"},{value:Xe.Jp,label:"JP"},{value:Xe.UsGov,label:"US (GOV)"}],this.formGroup=this.formBuilder.group({method:this.formBuilder.nonNullable.control(Gr(this.platformUtilsService),{updateOn:"change"}),email:this.formBuilder.control({value:"",disabled:!this.directSupported},[D.k0.required,D.k0.email]),region:[Xe.Us]},{updateOn:"submit"}),this.method=(0,we.ot)(this.formGroup.controls.method.valueChanges,{initialValue:this.formGroup.controls.method.value}),this.toggleEmailEnabled=this.formGroup.controls.method.valueChanges.pipe((0,we.pQ)()).subscribe(e=>{const t=this.formGroup.controls.email;"direct"===e?t.enable():t.disable()}),this.importing=(0,E.vPA)(!1),this.emailHint=(0,Ce.EW)(()=>this.i18nService.t(this.importing()?"importingYourAccount":"keeperEmailHint")),this.importCompleted=(0,Ie.CGW)()}ngOnInit(){this._parentFormGroup.set(this.controlContainer.control),this._parentFormGroup().addControl("keeperOptions",this.formGroup)}ngOnDestroy(){var e;null===(e=this._parentFormGroup())||void 0===e||e.removeControl("keeperOptions")}submitDirect(e){return Tr(this,void 0,void 0,function*(){if("direct"!==this.formGroup.controls.method.value)return;const t=this.formGroup.controls.email;if(!t.invalid){this.importing.set(!0),t.setErrors(null);try{const{result:i,errors:n}=yield this.keeperDirectImportService.handleImport(t.value,this.formGroup.controls.region.value,e);this.importing.set(!1),(yield this.confirmPartialImport(i,n))&&this.importCompleted.emit(i)}catch(i){this.logService.error(`Keeper importer error: ${i}`),t.setErrors({errors:{message:this.i18nService.t(this.getValidationErrorI18nKey(i))}}),t.markAsTouched()}finally{this.importing.set(!1)}}})}confirmPartialImport(e,t){return Tr(this,void 0,void 0,function*(){const{needsConfirmation:i,canImport:n}=function(e,t){return{needsConfirmation:t.length>0,canImport:e.ciphers.length>0}}(e,t);if(!i)return!0;const r=this.dialogService.open(Qr,{data:{errors:t,canImport:n}});return function(e,t){return e&&!0===t}(n,yield(0,Be.s)(r.closed))})}getValidationErrorI18nKey(e){if(e instanceof We)switch(e.code){case Le.Cancelled:return"multifactorAuthenticationCancelled";case Le.MfaFailed:return"multifactorAuthenticationFailed";case Le.UnsupportedTwoFactorMethod:return"keeperUnsupported2faMethod";case Le.SocketError:return"keeperConnectionError"}return"errorOccurred"}}Ur.ɵfac=function(e){return new(e||Ur)},Ur.ɵcmp=d.VBU({type:Ur,selectors:[["import-keeper"]],outputs:{importCompleted:"importCompleted"},decls:9,vars:5,consts:[[3,"formGroup"],["formControlName","method"],[3,"value","label"],["bitInput","","type","text","formControlName","email"],["formControlName","region"]],template:function(e,t){1&e&&(d.j41(0,"div",0)(1,"bit-form-field")(2,"bit-label"),d.EFF(3),d.nI1(4,"i18n"),d.k0s(),d.j41(5,"bit-select",1),d.Z7z(6,Pr,2,4,"bit-option",2,Dr),d.k0s()(),d.nVh(8,Vr,13,7),d.k0s()),2&e&&(d.Y8G("formGroup",t.formGroup),d.R7$(3),d.JRh(d.bMT(4,3,"method")),d.R7$(3),d.Dyx(t.methods),d.R7$(2),d.vxM("direct"===t.method()?8:-1))},dependencies:[r.p,Qe.j,ke.E,P.L,U.j,kr.I,O.J,N.h,D.X1,D.me,D.BC,D.cb,D.j4,D.JD,x.Q,Re.p,Rr.w,Fr.P,y.$],encapsulation:2,changeDetection:0});var Or=i(81727),Nr=i(87806),jr=i(67789),Yr=i(68108),Xr=i(72135),zr=i(191),Lr=i(29236),Wr=i(69783),Kr=i(54291),Zr=i(68711),Hr=i(67553),Jr=i(7356),qr=i(14848),$r=i(3633),_r=i(38020),es=i(5076),ts=i(39488),is=i(14318),ns=i(58950),rs=i(88832),ss=i(89731),os=i(7511),as=i(83586),ls=i(55766),cs=i(47135),ds=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function us(e,t){if(1&e&&d.nrm(0,"bit-option",3),2&e){const e=t.$implicit;d.Y8G("value",e.id)("label",e.name)}}class hs{constructor(e,t,i,n){this.formBuilder=e,this.controlContainer=t,this.logService=i,this.i18nService=n,this.formGroup=this.formBuilder.group({profile:["",{nonNullable:!0,validators:[D.k0.required],asyncValidators:[this.validateAndEmitData()],updateOn:"submit"}]}),this.profileList=[],this.format=Ie.hFB.required(),this.csvDataLoaded=new E.bkB,this.error=new E.bkB}ngOnInit(){return ds(this,void 0,void 0,function*(){if(this._parentFormGroup=this.controlContainer.control,this._parentFormGroup.addControl("chromeOptions",this.formGroup),this.onLoadProfilesFromBrowser)try{this.profileList=yield this.onLoadProfilesFromBrowser(this.getBrowserName(this.format()))}catch(e){this.logService.error("Error loading profiles from browser:",e);const t=this.translateValidationError(e);this.error.emit(t)}})}ngOnDestroy(){this._parentFormGroup.removeControl("chromeOptions")}validateAndEmitData(){return()=>ds(this,void 0,void 0,function*(){try{const e=yield this.onImportFromBrowser(this.getBrowserName(this.format()),this.formGroup.controls.profile.value);if(e.some(e=>null!=e.failure)){const t=e.find(e=>null!=e.failure);return this.logService.error("Chromium importer failure:",t.failure.error),{errors:{message:this.i18nService.t("errorOccurred")}}}if(0===e.length)return{errors:{message:this.i18nService.t("importNothingError")}};const t=[];for(const n of e)null!=n.login&&t.push(new As(n.login));const i=ls.unparse(t);return this.csvDataLoaded.emit(i),null}catch(e){this.logService.error(`Chromium importer error: ${e}`);return{errors:{message:this.translateValidationError(e)}}}})}translateValidationError(e){const t="string"==typeof e?e:null==e?void 0:e.message;return null!=t?t:this.i18nService.t("errorOccurred")}getBrowserName(e){return"edgecsv"===e?"Microsoft Edge":"operacsv"===e?"Opera":"bravecsv"===e?"Brave":"vivaldicsv"===e?"Vivaldi":"arccsv"===e?"Arc":"Chrome"}}hs.ɵfac=function(e){return new(e||hs)(d.rXU(D.ok),d.rXU(D.ZU),d.rXU(ie.K),d.rXU(te.W))},hs.ɵcmp=d.VBU({type:hs,selectors:[["import-chrome"]],inputs:{format:[1,"format"],onLoadProfilesFromBrowser:"onLoadProfilesFromBrowser",onImportFromBrowser:"onImportFromBrowser"},outputs:{csvDataLoaded:"csvDataLoaded",error:"error"},decls:7,vars:5,consts:[[3,"formGroup"],["formControlName","profile"],[3,"value","label",4,"ngFor","ngForOf"],[3,"value","label"]],template:function(e,t){1&e&&(d.j41(0,"div",0)(1,"bit-form-field")(2,"bit-label"),d.EFF(3),d.nI1(4,"i18n"),d.k0s(),d.j41(5,"bit-select",1),d.DNE(6,us,1,2,"bit-option",2),d.k0s()()()),2&e&&(d.Y8G("formGroup",t.formGroup),d.R7$(3),d.JRh(d.bMT(4,3,"browserProfile")),d.R7$(3),d.Y8G("ngForOf",t.profileList))},dependencies:[n.MD,n.Sq,r.p,Qe.j,ke.E,P.L,U.j,N.h,D.X1,D.BC,D.cb,D.j4,D.JD,x.Q,cs.q,Re.p,Rr.w,Fr.P,y.$],encapsulation:2});class As{constructor(e){const t=Gi.A.getUrl(null==e?void 0:e.url);null!=t&&(this.name=new URL(t).hostname),null==this.name&&(this.name=e.url),this.url=e.url,this.username=e.username,this.password=e.password,this.note=e.note}}var ps=i(24825),gs=i(29377),vs=i(81216);class ms{}class fs{}const ys=Object.freeze({Azure:0,OktaAuthServer:1,OktaNoAuthServer:2,Google:3,PingOne:4,OneLogin:5}),bs=Object.freeze({MasterPassword:0,Federated:3}),Cs=Object.freeze({GoogleAuth:0,MicrosoftAuth:1,Yubikey:2}),Is=Object.freeze({Desktop:0,Mobile:1});class ws{static createClientInfo(e,t){return{platform:Is.Desktop,id:e,description:"Importer",loginType:t}}}class Bs{constructor(e){this.url=e.url,this.username=e.username,this.password=e.password,this.totp=e.totp,this.extra=e.notes,this.name=e.name,this.grouping="(none)"===e.path?null:e.path,this.fav=e.isFavorite?1:0}}class Es{}class Ss{constructor(e,t,i){this.waitForOutOfBand=e,this.passcode=t,this.rememberMe=i}waitForApproval(e){return new Ss(!0,"",e)}continueWithPasscode(e,t){return new Ss(!1,e,t)}}Ss.cancel=new Ss(!1,"cancel",!1);class Qs{constructor(e,t){this.passcode=e,this.rememberMe=t}}Qs.cancel=new Qs("cancel",!1);class ks{constructor(){this.parseSecureNotesToAccount=!0}}ks.default=new ks;class Rs{}class Fs{}class Ts{isFederated(){return this.type===bs.Federated&&this.hasValue(this.identityProviderURL)&&this.hasValue(this.openIDConnectAuthority)&&this.hasValue(this.openIDConnectClientId)}get oidcScope(){let e="openid profile email";return this.provider===ys.PingOne&&(e+=" lastpass"),e}get openIDConnectAuthorityBase(){return this.openIDConnectAuthority.replace("/.well-known/openid-configuration","")}hasValue(e){return null!=e&&""!==e.trim()}}var Ds=i(28990);class Ps{constructor(e){this.arr=e,this.position=0;const t=new Uint32Array([287454020]),i=new Uint8Array(t.buffer);this.isLittleEndian=68===i[0]}readBytes(e){if(this.position+e>this.arr.length)throw new Error("End of array reached");const t=this.arr.subarray(this.position,this.position+e);return this.position+=e,t}readUInt16(){const e=this.readBytes(2);return(e[0]|e[1]<<8)>>>0}readUInt32(){const e=this.readBytes(4);return(e[0]|e[1]<<8|e[2]<<16|e[3]<<24)>>>0}readUInt16BigEndian(){let e=this.readUInt16();if(this.isLittleEndian){e=(255&e)<<8|e>>8&255}return e}readUInt32BigEndian(){let e=this.readUInt32();if(this.isLittleEndian){e=(255&e)<<24|(e>>8&255)<<16|(e>>16&255)<<8|e>>24&255}return e}seekFromCurrentPosition(e){const t=this.position+e;if(t<0)throw new Error("Position cannot be negative");if(t>this.arr.length)throw new Error("Array not large enough to seek to this position");this.position=t}atEnd(){return this.position>=this.arr.length-1}}var Ms=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class xs{constructor(){this.isBrowser=!0}get(e){return Ms(this,arguments,void 0,function*(e,t=null,i=null){const n={method:"GET",credentials:"include"};this.setHeaders(n,t,i);const r=new Request(this.baseUrl+"/"+e,n);return yield fetch(r)})}postForm(e){return Ms(this,arguments,void 0,function*(e,t=null,i=null,n=null){return yield this.post(e,(e,i)=>{if(null!=t&&t.size>0){const i=new FormData;for(const[e,n]of t)i.set(e,n);e.body=i}},i,n)})}postJson(e,t){return Ms(this,arguments,void 0,function*(e,t,i=null,n=null){return yield this.post(e,(e,i)=>{null!=t&&(i.set("Content-Type","application/json; charset=utf-8"),e.body=JSON.stringify(t))},i,n)})}post(e,t){return Ms(this,arguments,void 0,function*(e,t,i=null,n=null){const r={method:"POST",credentials:"include"};null==i&&(i=new Map),t(r,i),this.setHeaders(r,i,n);const s=new Request(this.baseUrl+"/"+e,r);return yield fetch(s)})}setHeaders(e,t=null,i=null){const n=new Headers;let r=!1;if(null!=t&&t.size>0){r=!0;for(const[e,i]of t)n.set(e,i)}if(!this.isBrowser&&null!=i&&i.size>0){r=!0;const e=Array.from(i.keys()).map(e=>`${e}=${i.get(e)}`).join("; ");n.set("cookie",e)}r&&(e.headers=n)}}var Vs=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Gs=new Map([[Is.Desktop,"cli"],[Is.Mobile,"android"]]),Us=new Map([["googleauthrequired",Cs.GoogleAuth],["microsoftauthrequired",Cs.MicrosoftAuth],["otprequired",Cs.Yubikey]]);class Os{constructor(e,t){this.parser=e,this.cryptoUtils=t}openVault(e,t,i,n,r,s){return Vs(this,void 0,void 0,function*(){const o=e.toLowerCase(),[a,l]=yield this.login(o,t,i,n,r);try{const e=yield this.downloadVault(a,l),i=yield this.cryptoUtils.deriveKey(o,t,a.keyIterationCount);let n=null,r=null;if(null!=a.encryptedPrivateKey&&""!=a.encryptedPrivateKey){let e=null;if(a.encryptedPrivateKey.startsWith("!")){const t=a.encryptedPrivateKey.split("|");if(t.length<2)throw new Error("Invalid LastPass private key format, no | separator");if(t.length>2)throw new Error("Invalid LastPass private key format, too many | separators");if(r=Gi.A.fromB64ToArray(t[0].slice(1)),16!==r.length)throw new Error(`Invalid LastPass private key init vector length (${r.length})`);e=Gi.A.fromB64ToArray(t[1])}else e=Gi.A.fromHexToArray(a.encryptedPrivateKey),r=i.subarray(0,16);n=yield this.parser.parseEncryptedPrivateKey(e,i,r)}return this.parseVault(e,i,n,s)}finally{yield this.logout(a,l)}})}parseVault(e,t,i,n){return Vs(this,void 0,void 0,function*(){const r=new Ps(e),s=this.parser.extractChunks(r);if(!this.isComplete(s))throw new Error("Blob is truncated or corrupted");return yield this.parseAccounts(s,t,i,n)})}parseAccounts(e,t,i,n){return Vs(this,void 0,void 0,function*(){const r=new Array;let s=null;for(const o of e)if("ACCT"===o.id){const e=null==s?t:s.encryptionKey,i=yield this.parser.parseAcct(o,e,s,n);null!=i&&r.push(i)}else"SHAR"===o.id&&(s=yield this.parser.parseShar(o,t,i));return r})}isComplete(e){if(e.length>0&&"ENDM"===e[e.length-1].id){return"OK"===Gi.A.fromArrayToUtf8(e[e.length-1].payload)}return!1}login(e,t,i,n,r){return Vs(this,void 0,void 0,function*(){const s=new xs;s.baseUrl="https://lastpass.com";let o=100100,a=null,l=null;for(let r=0;r<3;r++){if(a=yield this.performSingleLoginRequest(e,t,i,o,new Map,n,s),l=this.extractSessionFromLoginResponse(a,o,n),null!=l)return[l,s];const r=this.getOptionalErrorAttribute(a,"server");if(null!=r&&""!=r.trim()){s.baseUrl="https://"+r;continue}const c=this.getOptionalErrorAttribute(a,"iterations");if(null==c)break;try{o=parseInt(c)}catch(u){throw"Failed to parse the iteration count, expected an integer value '"+c+"'"}}const c=this.getOptionalErrorAttribute(a,"cause");if(null==c)throw this.makeLoginError(a);const d=Us.get(c);if(null!=d?l=yield this.loginWithOtp(e,t,i,o,d,n,r,s):"outofbandrequired"===c&&(l=yield this.loginWithOob(e,t,i,o,this.getAllErrorAttributes(a),n,r,s)),null==l)throw this.makeLoginError(a);return[l,s]})}loginWithOtp(e,t,i,n,r,s,o,a){return Vs(this,void 0,void 0,function*(){let l=null;switch(r){case Cs.GoogleAuth:l=yield o.provideGoogleAuthPasscode();break;case Cs.MicrosoftAuth:l=yield o.provideMicrosoftAuthPasscode();break;case Cs.Yubikey:l=yield o.provideYubikeyPasscode();break;default:throw new Error("Invalid OTP method")}if(l==Qs.cancel)throw new Error("Second factor step is canceled by the user");const c=yield this.performSingleLoginRequest(e,t,i,n,new Map([["otp",l.passcode]]),s,a),d=this.extractSessionFromLoginResponse(c,n,s);if(null==d)throw this.makeLoginError(c);return l.rememberMe&&(yield this.markDeviceAsTrusted(d,s,a)),d})}loginWithOob(e,t,i,n,r,s,o,a){return Vs(this,void 0,void 0,function*(){const l=r=>Vs(this,void 0,void 0,function*(){const o=yield this.performSingleLoginRequest(e,t,i,n,r,s,a),c=this.extractSessionFromLoginResponse(o,n,s);if(null!=c)return c;if("outofbandrequired"!=this.getOptionalErrorAttribute(o,"cause"))throw this.makeLoginError(o);return r.set("outofbandretry","1"),r.set("outofbandretryid",this.getErrorAttribute(o,"retryid")),l(r)});return yield Promise.race([(()=>{const e=new Map;return e.set("outofbandrequest",1),l(e)})(),(()=>Vs(this,void 0,void 0,function*(){const t=yield this.approveOob(e,r,o,a);if(t==Ss.cancel)throw new Error("Out of band step is canceled by the user");const i=new Map;i.set("otp",t.passcode);const n=yield l(i);return t.rememberMe&&(yield this.markDeviceAsTrusted(n,s,a)),n}))()]).finally(()=>{o.closeMFADialog()})})}approveOob(e,t,i,n){return Vs(this,void 0,void 0,function*(){const r=t.get("outofbandtype");if(null==r)throw new Error("Out of band method is not specified");switch(r){case"lastpassauth":return i.approveLastPassAuth();case"duo":return this.approveDuo(e,t,i,n);case"salesforcehash":return i.approveSalesforceAuth();default:throw new Error("Out of band method "+r+" is not supported")}})}approveDuo(e,t,i,n){return Vs(this,void 0,void 0,function*(){return"1"==t.get("preferduowebsdk")?this.approveDuoWebSdk(e,t,i,n):i.approveDuo()})}approveDuoWebSdk(e,t,i,n){return i.approveDuo()}markDeviceAsTrusted(e,t,i){return Vs(this,void 0,void 0,function*(){const n=new Map([["uuid",t.id],["trustlabel",t.description],["token",e.token]]),r=yield i.postForm("trust.php",n,null,this.getSessionCookies(e));r.status!=Ee.kG.Ok&&this.makeError(r)})}logout(e,t){return Vs(this,void 0,void 0,function*(){const i=new Map([["method",Gs.get(e.platform)],["noredirect",1]]),n=yield t.postForm("logout.php",i,null,this.getSessionCookies(e));n.status!=Ee.kG.Ok&&this.makeError(n)})}downloadVault(e,t){return Vs(this,void 0,void 0,function*(){const i="getaccts.php?mobile=1&b64=1&hash=0.0&hasplugin=3.0.23&requestsrc="+Gs.get(e.platform),n=yield t.get(i,null,this.getSessionCookies(e));if(n.status==Ee.kG.Ok){const e=yield n.text();return Gi.A.fromB64ToArray(e)}this.makeError(n)})}getSessionCookies(e){return new Map([["PHPSESSID",encodeURIComponent(e.id)]])}getErrorAttribute(e,t){const i=this.getOptionalErrorAttribute(e,t);if(null!=i)return i;throw new Error("Unknown response schema: attribute "+t+" is missing")}getOptionalErrorAttribute(e,t){const i=e.querySelector("response > error");if(null==i)return null;const n=i.attributes.getNamedItem(t);return null==n?null:n.value}getAllErrorAttributes(e){const t=e.querySelector("response > error");if(null==t)return null;const i=new Map;for(const n of Array.from(t.attributes))i.set(n.name,n.value);return i}extractSessionFromLoginResponse(e,t,i){const n=e.querySelector("response > ok");if(null==n)return null;const r=n.attributes.getNamedItem("sessionid");if(null==r)return null;const s=n.attributes.getNamedItem("token");if(null==s)return null;const o=new Rs;o.id=r.value,o.keyIterationCount=t,o.token=s.value,o.platform=i.platform;const a=n.attributes.getNamedItem("privatekeyenc");return null!=a&&null!=a.value&&""!=a.value.trim()&&(o.encryptedPrivateKey=a.value),o}performSingleLoginRequest(e,t,i,n,r,s,o){return Vs(this,void 0,void 0,function*(){const a=yield this.cryptoUtils.deriveKeyHash(e,t,n),l=new Map([["method",Gs.get(s.platform)],["xml","2"],["username",e],["hash",Gi.A.fromArrayToHex(a)],["iterations",n],["includeprivatekeyenc","1"],["outofbandsupported","1"],["uuid",s.id],["trustlabel",s.description]]);null!=i&&(l.set("alpfragmentid",i),l.set("calculatedfragmentid",i));for(const[e,t]of r)l.set(e,t);const c=yield o.postForm("login.php",l);if(c.status==Ee.kG.Ok){const e=yield c.text();return(new window.DOMParser).parseFromString(e,"text/xml")}this.makeError(c)})}makeError(e){throw new Error("HTTP request to "+e.url+" failed with status "+e.status+".")}makeLoginError(e){var t;const i=e.querySelector("response > error");if(null==i)return"Unknown response schema";const n=i.attributes.getNamedItem("cause"),r=i.attributes.getNamedItem("message");if(null!=n)switch(n.value){case"unknownemail":return"Invalid username";case"password_invalid":case"unknownpassword":return"Invalid password";case"googleauthfailed":case"microsoftauthfailed":case"otpfailed":return"Second factor code is incorrect";case"multifactorresponsefailed":return"Out of band authentication failed";case"unifiedloginresult":return"unifiedloginresult";default:return null!==(t=null==r?void 0:r.value)&&void 0!==t?t:n.value}return null!=r?r.value:"Unknown error"}}var Ns=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class js{constructor(e){this.cryptoFunctionService=e}deriveKey(e,t,i){return Ns(this,void 0,void 0,function*(){if(i<0)throw new Error("Iteration count should be positive");return 1==i?yield this.cryptoFunctionService.hash(e+t,"sha256"):yield this.cryptoFunctionService.pbkdf2(t,e,"sha256",i)})}deriveKeyHash(e,t,i){return Ns(this,void 0,void 0,function*(){const n=yield this.deriveKey(e,t,i);return 1==i?yield this.cryptoFunctionService.hash(Gi.A.fromArrayToHex(n)+t,"sha256"):yield this.cryptoFunctionService.pbkdf2(n,t,"sha256",1)})}ExclusiveOr(e,t){if(e.length!==t.length)throw new Error("Arrays must be the same length.");const i=new Uint8Array(e.length);for(let n=0;n<e.length;n++)i[n]=e[n]^t[n];return i}decryptAes256PlainWithDefault(e,t,i){return Ns(this,void 0,void 0,function*(){try{return this.decryptAes256Plain(e,t)}catch(n){return i}})}decryptAes256Base64WithDefault(e,t,i){return Ns(this,void 0,void 0,function*(){try{return this.decryptAes256Base64(e,t)}catch(n){return i}})}decryptAes256Plain(e,t){return Ns(this,void 0,void 0,function*(){return 0===e.length?"":33===e[0]&&e.length%16==1&&e.length>32?this.decryptAes256CbcPlain(e,t):this.decryptAes256EcbPlain(e,t)})}decryptAes256Base64(e,t){return Ns(this,void 0,void 0,function*(){return 0===e.length?"":33===e[0]?this.decryptAes256CbcBase64(e,t):this.decryptAes256EcbBase64(e,t)})}decryptAes256(e,t,i){return Ns(this,arguments,void 0,function*(e,t,i,n=new Uint8Array(16)){return 0===e.length?"":"ecb"===i?Gi.A.fromArrayToByteString((0,$.mI)(e,t)):Gi.A.fromArrayToByteString((0,$.AJ)(e,t,n))})}decryptAes256EcbPlain(e,t){return Ns(this,void 0,void 0,function*(){return this.decryptAes256(e,t,"ecb")})}decryptAes256EcbBase64(e,t){return Ns(this,void 0,void 0,function*(){const i=Gi.A.fromB64ToArray(Gi.A.fromArrayToUtf8(e));return this.decryptAes256(i,t,"ecb")})}decryptAes256CbcPlain(e,t){return Ns(this,void 0,void 0,function*(){const i=e.subarray(17),n=e.subarray(1,17);return this.decryptAes256(i,t,"cbc",n)})}decryptAes256CbcBase64(e,t){return Ns(this,void 0,void 0,function*(){const i=Gi.A.fromB64ToArray(Gi.A.fromArrayToUtf8(e.subarray(26))),n=Gi.A.fromB64ToArray(Gi.A.fromArrayToUtf8(e.subarray(1,25)));return this.decryptAes256(i,t,"cbc",n)})}}var Ys=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Xs=new Set(["Server","Email Account","Database","Instant Messenger"]);class zs{constructor(e,t){this.cryptoFunctionService=e,this.cryptoUtils=t}parseAcct(e,t,i,n){return Ys(this,void 0,void 0,function*(){let r,s=0;try{const o="decryption failed",a=new Ps(e.payload);r=Gi.A.fromArrayToUtf8(this.readItem(a)),s=1;const l=yield this.cryptoUtils.decryptAes256PlainWithDefault(this.readItem(a),t,o);s=2;const c=yield this.cryptoUtils.decryptAes256PlainWithDefault(this.readItem(a),t,o);s=3;const d=this.readItem(a);let u=d.length>0&&33===d[0]?yield this.cryptoUtils.decryptAes256PlainWithDefault(d,t,o):Gi.A.fromArrayToUtf8(this.decodeHexLoose(Gi.A.fromArrayToUtf8(d)));if("http://group"==u)return null;s=4;const h=yield this.cryptoUtils.decryptAes256PlainWithDefault(this.readItem(a),t,o);s=5;const A="1"===Gi.A.fromArrayToUtf8(this.readItem(a));this.skipItem(a),s=7;let p=yield this.cryptoUtils.decryptAes256PlainWithDefault(this.readItem(a),t,o);s=8;let g=yield this.cryptoUtils.decryptAes256PlainWithDefault(this.readItem(a),t,o);this.skipItem(a),this.skipItem(a),s=11;const v="1"===Gi.A.fromArrayToUtf8(this.readItem(a));if(n.parseSecureNotesToAccount&&v){let e="";for(const t of h.split("\n")){const i=t.split(":",2);if(!(i.length<2))switch(i[0]){case"NoteType":e=i[1];break;case"Hostname":u=i[1];break;case"Username":p=i[1];break;case"Password":g=i[1]}}if(!Xs.has(e))return null}this.skipItem(a),this.skipItem(a),this.skipItem(a),this.skipItem(a),this.skipItem(a),this.skipItem(a),this.skipItem(a),this.skipItem(a),this.skipItem(a),this.skipItem(a),this.skipItem(a),this.skipItem(a),this.skipItem(a),this.skipItem(a),this.skipItem(a),this.skipItem(a),this.skipItem(a),this.skipItem(a),this.skipItem(a),this.skipItem(a),this.skipItem(a),this.skipItem(a),this.skipItem(a),this.skipItem(a),this.skipItem(a),this.skipItem(a),this.skipItem(a),s=39;const m=yield this.cryptoUtils.decryptAes256PlainWithDefault(this.readItem(a),t,o);s=42;const f=this.makeAccountPath(c,i),y=new ms;return y.id=r,y.name=l,y.username=p,y.password=g,y.url=u,y.path=f,y.notes=h,y.totp=m,y.isFavorite=A,y.isShared=null!=i,y}catch(o){throw new Error("Error parsing accounts on item with ID:"+r+" step #"+s+" errorMessage: "+o.message)}})}parseShar(e,t,i){return Ys(this,void 0,void 0,function*(){let t;try{const n=new Ps(e.payload);t=Gi.A.fromArrayToUtf8(this.readItem(n));const r=this.readItem(n),s=Gi.A.fromHexToArray(Gi.A.fromArrayToUtf8(r)),o=yield this.cryptoFunctionService.rsaDecrypt(s,i,"sha1"),a=Gi.A.fromHexToArray(Gi.A.fromArrayToUtf8(o)),l=this.readItem(n),c=yield this.cryptoUtils.decryptAes256Base64(l,a),d=new Fs;return d.id=t,d.name=c,d.encryptionKey=a,d}catch(n){throw new Error("Error parsing shared folder with ID:"+t+" errorMessage: "+n.message)}})}parseEncryptedPrivateKey(e,t,i){return Ys(this,void 0,void 0,function*(){const n=yield this.cryptoUtils.decryptAes256(e,t,"cbc",i),r="LastPassPrivateKey<",s=">LastPassPrivateKey";if(!n.startsWith(r)||!n.endsWith(s))throw new Error("Failed to decrypt private key");const o=n.substring(19,n.length-19);return Gi.A.fromHexToArray(o)})}makeAccountPath(e,t){const i=null==e||""===e.trim();return null==t?i?"(none)":e:i?t.name:t.name+"\\"+e}extractChunks(e){const t=new Array;for(;!e.atEnd();){const i=this.readChunk(e);t.push(i)}return t}readChunk(e){const t=new fs;return t.id=this.readId(e),t.payload=this.readPayload(e,this.readSize(e)),t}readItem(e){return this.readPayload(e,this.readSize(e))}skipItem(e){e.seekFromCurrentPosition(this.readSize(e))}readId(e){return Gi.A.fromArrayToUtf8(e.readBytes(4))}readSize(e){return e.readUInt32BigEndian()}readPayload(e,t){return e.readBytes(t)}decodeHexLoose(e){return Gi.A.fromHexToArray(e.length%2==0?e:"0"+e)}}var Ls=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Ws{constructor(e){this.cryptoFunctionService=e,this.cryptoUtils=new js(e);const t=new zs(e,this.cryptoUtils);this.client=new Os(t,this.cryptoUtils)}open(e,t,i,n){return Ls(this,arguments,void 0,function*(e,t,i,n,r=ks.default){this.accounts=yield this.client.openVault(e,t,null,i,n,r)})}openFederated(e,t,i){return Ls(this,arguments,void 0,function*(e,t,i,n=ks.default){if(null==e)throw new Error("Federated user context is not set.");const r=yield this.getK1(e),[s,o]=yield this.getK2FragmentId(e),a=yield this.cryptoFunctionService.hash(this.cryptoUtils.ExclusiveOr(r,s),"sha256"),l=Gi.A.fromBufferToB64(a);this.accounts=yield this.client.openVault(e.username,l,o,t,i,n)})}setUserTypeContext(e){return Ls(this,void 0,void 0,function*(){const t=e.toLowerCase(),i=new xs;i.baseUrl="https://lastpass.com";const n="lmiapi/login/type?username="+encodeURIComponent(t),r=yield i.get(n);if(r.status===Ee.kG.Ok){const e=yield r.json();if(this.userType=new Ts,this.userType.companyId=e.CompanyId,this.userType.identityProviderGUID=e.IdentityProviderGUID,this.userType.identityProviderURL=e.IdentityProviderURL,this.userType.isPasswordlessEnabled=e.IsPasswordlessEnabled,this.userType.openIDConnectAuthority=e.OpenIDConnectAuthority,this.userType.openIDConnectClientId=e.OpenIDConnectClientId,this.userType.pkceEnabled=e.PkceEnabled,this.userType.provider=e.Provider,this.userType.type=e.type,this.userType.provider===ys.Azure){const e=this.userType.openIDConnectAuthority.indexOf("?app");e>-1&&(this.userType.openIDConnectAuthority=this.userType.openIDConnectAuthority.substring(0,e))}return}throw new Error("Cannot determine LastPass user type.")})}accountsToExportedCsvString(e=!1){if(null==this.accounts)throw new Error("Vault has not opened any accounts.");const t=this.accounts.filter(t=>!t.isShared||t.isShared&&!e).map(e=>new Bs(e));if(0===t.length)throw new Error("No accounts to transform");return ls.unparse(t)}getK1(e){return Ls(this,void 0,void 0,function*(){var t;if(null==this.userType)throw new Error("User type is not set.");if(!this.userType.isFederated())throw new Error("Cannot get k1 for LastPass user that is not federated.");if(null==e)throw new Error("Federated user is not set.");let i=null;if(null!=(null===(t=e.idpUserInfo)||void 0===t?void 0:t.LastPassK1))return Gi.A.fromByteStringToArray(e.idpUserInfo.LastPassK1);if(this.userType.provider===ys.Azure)i=yield this.getK1Azure(e);else if(this.userType.provider===ys.Google)i=yield this.getK1Google(e);else{const t=this.userType.provider===ys.PingOne;i=yield this.getK1FromAccessToken(e,t)}if(null!=i)return i;throw new Error("Cannot get k1.")})}getK1Azure(e){return Ls(this,void 0,void 0,function*(){const t=new xs;t.baseUrl="https://graph.microsoft.com";const i=yield t.get("v1.0/me?$select=id,displayName,mail&$expand=extensions",new Map([["Authorization","Bearer "+e.accessToken]]));if(i.status===Ee.kG.Ok){const e=yield i.json();if(null!=(null==e?void 0:e.extensions)&&e.extensions.length>0){const t=e.extensions[0].LastPassK1;if(null!=t)return Gi.A.fromB64ToArray(t)}}return null})}getK1Google(e){return Ls(this,void 0,void 0,function*(){const t=new Map([["Authorization","Bearer "+e.accessToken]]),i=new xs;i.baseUrl="https://content.googleapis.com";const n=yield i.get("drive/v3/files?pageSize=1&q=name%20%3D%20%27k1.lp%27&spaces=appDataFolder&fields=nextPageToken%2C%20files(id%2C%20name)",t);if(n.status===Ee.kG.Ok){const e=yield n.json(),r=null==e?void 0:e.files;if(null!=r&&r.length>0&&null!=r[0].id&&"k1.lp"===r[0].name){i.baseUrl="https://www.googleapis.com";const e=yield i.get("drive/v3/files/"+r[0].id+"?alt=media",t);if(e.status===Ee.kG.Ok){const t=yield e.text();return Gi.A.fromB64ToArray(t)}}}return null})}getK1FromAccessToken(e,t){return Ls(this,void 0,void 0,function*(){const i=(0,Ds.iD)(e.accessToken),n=null==i?void 0:i.LastPassK1;return null!=n?t?Gi.A.fromB64ToArray(n):Gi.A.fromByteStringToArray(n):null})}getK2FragmentId(e){return Ls(this,void 0,void 0,function*(){if(null==this.userType)throw new Error("User type is not set.");if(!this.userType.isFederated())throw new Error("Cannot get k2 for LastPass user that is not federated.");const t=new xs;t.baseUrl=this.userType.identityProviderURL;const i=yield t.postJson("federatedlogin/api/v1/getkey",{company_id:this.userType.companyId,id_token:e.idToken});if(i.status===Ee.kG.Ok){const e=yield i.json(),t=null==e?void 0:e.k2,n=null==e?void 0:e.fragment_id;if(null!=t&&null!=n)return[Gi.A.fromB64ToArray(t),n]}throw new Error("Cannot get k2 and/or fragment ID.")})}}var Ks=i(26657);class Zs{constructor(e){this.dialogRef=e,this.formGroup=new D.gE({password:new D.MJ("",{validators:D.k0.required,updateOn:"submit"})}),this.submit=()=>{this.formGroup.markAsTouched(),this.formGroup.valid&&this.dialogRef.close(this.formGroup.controls.password.value)}}static open(e){const t=e.open(Zs);return(0,Yr._)(t.closed)}}Zs.ɵfac=function(e){return new(e||Zs)(d.rXU(u.ce))},Zs.ɵcmp=d.VBU({type:Zs,selectors:[["ng-component"]],decls:23,vars:17,consts:[["bit-dialog","",3,"formGroup","bitSubmit"],["bitDialogTitle",""],["bitDialogContent",""],[1,"!tw-mb-0"],["bitInput","","type","password","formControlName","password","appAutofocus","","appInputVerbatim",""],["type","button","bitSuffix","","bitIconButton","","bitPasswordInputToggle",""],["bitDialogFooter",""],["bitButton","","buttonType","primary","type","submit","bitFormButton",""],["bitButton","","bitDialogClose","","buttonType","secondary","type","button","bitFormButton",""]],template:function(e,t){1&e&&(d.j41(0,"form",0)(1,"span",1),d.EFF(2),d.nI1(3,"i18n"),d.k0s(),d.j41(4,"div",2)(5,"bit-form-field",3)(6,"bit-label"),d.EFF(7),d.nI1(8,"i18n"),d.k0s(),d.nrm(9,"input",4)(10,"button",5),d.j41(11,"bit-hint"),d.EFF(12),d.nI1(13,"i18n"),d.k0s()()(),d.qex(14,6),d.j41(15,"button",7)(16,"span"),d.EFF(17),d.nI1(18,"i18n"),d.k0s()(),d.j41(19,"button",8)(20,"span"),d.EFF(21),d.nI1(22,"i18n"),d.k0s()(),d.bVm(),d.k0s()),2&e&&(d.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit),d.R7$(2),d.SpI(" ",d.bMT(3,7,"lastPassAuthRequired")," "),d.R7$(5),d.JRh(d.bMT(8,9,"lastPassMasterPassword")),d.R7$(5),d.JRh(d.bMT(13,11,"confirmIdentity")),d.R7$(5),d.JRh(d.bMT(18,13,"submit")),d.R7$(4),d.JRh(d.bMT(22,15,"cancel")))},dependencies:[n.MD,r.p,V.B,G.q,D.X1,D.qT,D.me,D.BC,D.cb,D.j4,D.JD,a.P,h.I,A.m,p.hJ,P.L,U.j,kr.I,O.J,N.h,j.e,Y.a,M.C,Ks.$,X.L,c.t,f.Q,x.Q,z.s,ke.E,y.$],encapsulation:2});class Hs{get descriptionI18nKey(){switch(this.variant){case"oob":return"lastPassOOBDesc";case"yubikey":return"lastPassYubikeyDesc";default:return"lastPassMFADesc"}}constructor(e,t){this.dialogRef=e,this.data=t,this.variant=this.data.variant,this.formGroup=new D.gE({passcode:new D.MJ("",{validators:D.k0.required,updateOn:"submit"})}),this.submit=()=>{this.formGroup.markAsTouched(),this.formGroup.valid&&this.dialogRef.close(this.formGroup.value.passcode)}}static open(e,t){return e.open(Hs,{data:t})}}Hs.ɵfac=function(e){return new(e||Hs)(d.rXU(u.ce),d.rXU(o.Qs))},Hs.ɵcmp=d.VBU({type:Hs,selectors:[["ng-component"]],decls:25,vars:20,consts:[["bit-dialog","",3,"formGroup","bitSubmit"],["bitDialogTitle",""],["bitDialogContent",""],[1,"!tw-mb-0"],["bitInput","","type","text","formControlName","passcode","appAutofocus","","appInputVerbatim",""],["bitDialogFooter",""],["bitButton","","buttonType","primary","type","submit","bitFormButton",""],["bitButton","","bitDialogClose","cancel","buttonType","secondary","type","button","bitFormButton",""]],template:function(e,t){1&e&&(d.j41(0,"form",0)(1,"span",1),d.EFF(2),d.nI1(3,"i18n"),d.k0s(),d.j41(4,"div",2)(5,"p"),d.EFF(6),d.nI1(7,"i18n"),d.k0s(),d.j41(8,"bit-form-field",3)(9,"bit-label"),d.EFF(10),d.nI1(11,"i18n"),d.k0s(),d.nrm(12,"input",4),d.j41(13,"bit-hint"),d.EFF(14),d.nI1(15,"i18n"),d.k0s()()(),d.qex(16,5),d.j41(17,"button",6)(18,"span"),d.EFF(19),d.nI1(20,"i18n"),d.k0s()(),d.j41(21,"button",7)(22,"span"),d.EFF(23),d.nI1(24,"i18n"),d.k0s()(),d.bVm(),d.k0s()),2&e&&(d.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit),d.R7$(2),d.SpI(" ",d.bMT(3,8,"lastPassMFARequired")," "),d.R7$(4),d.JRh(d.bMT(7,10,t.descriptionI18nKey)),d.R7$(4),d.JRh(d.bMT(11,12,"passcode")),d.R7$(4),d.JRh(d.bMT(15,14,"confirmIdentity")),d.R7$(5),d.JRh(d.bMT(20,16,"continue")),d.R7$(4),d.JRh(d.bMT(24,18,"cancel")))},dependencies:[n.MD,r.p,V.B,G.q,D.X1,D.qT,D.me,D.BC,D.cb,D.j4,D.JD,a.P,h.I,A.m,p.hJ,P.L,U.j,kr.I,O.J,N.h,M.C,Ks.$,X.L,c.t,f.Q,x.Q,ke.E,y.$],encapsulation:2});var Js=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class qs{constructor(e){this.dialogService=e}getOTPResult(e){return Js(this,void 0,void 0,function*(){const t=yield this.openMFADialog(e);return new Qs(t,!1)})}getOOBResult(e){return Js(this,void 0,void 0,function*(){const t=yield this.openMFADialog(e);return new Ss(!1,t,!1)})}openMFADialog(e){return this.mfaDialogRef=Hs.open(this.dialogService,{variant:e}),(0,Yr._)(this.mfaDialogRef.closed)}closeMFADialog(){var e;null===(e=this.mfaDialogRef)||void 0===e||e.close()}provideGoogleAuthPasscode(){return Js(this,void 0,void 0,function*(){return this.getOTPResult("otp")})}provideMicrosoftAuthPasscode(){return Js(this,void 0,void 0,function*(){return this.getOTPResult("otp")})}provideYubikeyPasscode(){return Js(this,void 0,void 0,function*(){return this.getOTPResult("yubikey")})}approveLastPassAuth(){return Js(this,void 0,void 0,function*(){return this.getOOBResult("oob")})}approveDuo(){return Js(this,void 0,void 0,function*(){return this.getOOBResult("oob")})}approveSalesforceAuth(){return Js(this,void 0,void 0,function*(){return this.getOOBResult("oob")})}}qs.ɵfac=function(e){return new(e||qs)(E.KVO(Se.o))},qs.ɵprov=E.jDH({token:qs,factory:qs.ɵfac,providedIn:"root"});var $s=i(45872),_s=i(91059),eo=i(52396),to=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class io{constructor(e,t,i,n,r,s,o,a,l,c){this.cryptoFunctionService=e,this.environmentService=t,this.appIdService=i,this.lastPassDirectImportUIService=n,this.platformUtilsService=r,this.broadcasterService=s,this.ngZone=o,this.dialogService=a,this.i18nService=l,this.logService=c,this._ssoImportCallback$=new Nr.B,this.ssoImportCallback$=this._ssoImportCallback$.asObservable(),this.vault=new Ws(this.cryptoFunctionService),this.broadcasterService.subscribe("LastPassDirectImportService",e=>{this.ngZone.run(()=>to(this,void 0,void 0,function*(){if("importCallbackLastPass"===e.command)this._ssoImportCallback$.next({oidcCode:e.code,oidcState:e.state})}))})}handleImport(e,t){return to(this,void 0,void 0,function*(){if(yield this.verifyLastPassAccountExists(e),this.isAccountFederated){const i=yield this.handleFederatedLogin(e);return yield this.handleFederatedImport(i.oidcCode,i.oidcState,t)}const i=yield Zs.open(this.dialogService);return yield this.handleStandardImport(e,i,t)})}get isAccountFederated(){return this.vault.userType.isFederated()}verifyLastPassAccountExists(e){return to(this,void 0,void 0,function*(){yield this.vault.setUserTypeContext(e)})}handleFederatedLogin(e){return to(this,void 0,void 0,function*(){const t=(0,Yr._)(this.ssoImportCallback$),i=yield this.createOidcSigninRequest(e);this.platformUtilsService.launchUri(i.url);const n=this.dialogService.openSimpleDialogRef({title:this.i18nService.t("awaitingSSO"),content:this.i18nService.t("awaitingSSODesc"),type:"warning",icon:"bwi-key",acceptButtonText:this.i18nService.t("cancel"),cancelButtonText:null}),r=(0,Yr._)(n.closed).then(e=>{throw Error("SSO auth cancelled")});return Promise.race([r,t]).finally(()=>{n.close()})})}createOidcSigninRequest(e){return to(this,void 0,void 0,function*(){try{const t=new URL(this.vault.userType.openIDConnectAuthorityBase),i=yield ps.CN(t,{algorithm:"oidc"}).then(e=>ps.vA(t,e)),n={client_id:this.vault.userType.openIDConnectClientId},r=ps.YI(),s=yield ps.Yv(r),o=ps.Ot(),a=ps.q4(),l=yield this.getOidcRedirectUrl();this.oidcFlow={as:i,client:n,codeVerifier:r,nonce:a,state:o,userState:{email:e},redirectUri:l};const c=new URL(i.authorization_endpoint);return c.searchParams.set("client_id",n.client_id),c.searchParams.set("redirect_uri",l),c.searchParams.set("response_type","code"),c.searchParams.set("response_mode","query"),c.searchParams.set("scope",this.vault.userType.oidcScope),c.searchParams.set("state",o),c.searchParams.set("nonce",a),c.searchParams.set("code_challenge",s),c.searchParams.set("code_challenge_method","S256"),{url:c.toString()}}catch(t){throw this.logService.error("Unable to generate OIDC sign in request"),t}})}processOidcSigninResponse(e,t){return to(this,void 0,void 0,function*(){if(null==this.oidcFlow)throw new Error("No OIDC sign in request is in progress.");const i=this.oidcFlow,n=new URL(this.getOidcRedirectUrlWithParams(e,t)),r=ps.kO(i.as,i.client,n,i.state),s=yield ps.m(i.as,i.client,ps.NV(),r,i.redirectUri,i.codeVerifier),o=yield ps.d_(i.as,i.client,s,{expectedNonce:i.nonce,requireIdToken:!0}),a=ps.ON(o),l=yield ps.$W(i.as,i.client,o.access_token),c=yield ps.Cz(i.as,i.client,a.sub,l);return{id_token:o.id_token,access_token:o.access_token,profile:Object.assign(Object.assign({},a),c),userState:i.userState}})}getOidcRedirectUrlWithParams(e,t){const i=this.oidcFlow.redirectUri,n="code="+e+"&state="+t;return 0===i.indexOf("bitwarden://")?i+"/?"+n:i+"&"+n}getOidcRedirectUrl(){return to(this,void 0,void 0,function*(){if(this.platformUtilsService.getClientType()===Ee.sK.Desktop)return"bitwarden://import-callback-lp";return(yield(0,Yr._)(this.environmentService.environment$)).getWebVaultUrl()+"/sso-connector.html?lp=1"})}handleStandardImport(e,t,i){return to(this,void 0,void 0,function*(){const n=yield this.createClientInfo(e,bs.MasterPassword);try{yield this.vault.open(e,t,n,this.lastPassDirectImportUIService,{parseSecureNotesToAccount:!1})}catch(r){throw this.logService.error("Unable to open LastPass vault"),r}return this.vault.accountsToExportedCsvString(!i)})}handleFederatedImport(e,t,i){return to(this,void 0,void 0,function*(){const n=new Es;try{const i=yield this.processOidcSigninResponse(e,t);n.idToken=i.id_token,n.accessToken=i.access_token,n.idpUserInfo=i.profile,n.username=i.userState.email}catch(s){throw this.logService.error("Unable to process OIDC sign in response"),s}const r=yield this.createClientInfo(n.username,bs.Federated);try{yield this.vault.openFederated(n,r,this.lastPassDirectImportUIService,{parseSecureNotesToAccount:!1})}catch(s){throw this.logService.error("Unable to open LastPass vault with federated user"),s}return this.vault.accountsToExportedCsvString(!i)})}createClientInfo(e,t){return to(this,void 0,void 0,function*(){const i="lastpass"+(yield this.appIdService.getAppId())+e,n=yield this.cryptoFunctionService.hash(i,"sha256");return ws.createClientInfo(Gi.A.fromArrayToHex(n),t)})}}io.ɵfac=function(e){return new(e||io)(E.KVO($s.R),E.KVO(gs.v),E.KVO(_s.Y),E.KVO(qs),E.KVO(ne.y),E.KVO(eo.y),E.KVO(E.SKi),E.KVO(Se.o),E.KVO(te.W),E.KVO(vs.Kc))},io.ɵprov=E.jDH({token:io,factory:io.ɵfac,providedIn:"root"});var no=i(90246),ro=i(50352),so=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class oo{constructor(e,t,i,n,r){this.formBuilder=e,this.controlContainer=t,this.logService=i,this.lastPassDirectImportService=n,this.i18nService=r,this.formGroup=this.formBuilder.group({email:["",{validators:[D.k0.required,D.k0.email],asyncValidators:[this.validateAndEmitData()],updateOn:"submit"}],includeSharedFolders:[!1]}),this.emailHint$=this.formGroup.controls.email.statusChanges.pipe((0,Wr.T)(e=>{if("PENDING"===e)return this.i18nService.t("importingYourAccount")})),this.csvDataLoaded=new E.bkB}ngOnInit(){this._parentFormGroup=this.controlContainer.control,this._parentFormGroup.addControl("lastpassOptions",this.formGroup)}ngOnDestroy(){this._parentFormGroup.removeControl("lastpassOptions")}validateAndEmitData(){return()=>so(this,void 0,void 0,function*(){try{const e=yield this.lastPassDirectImportService.handleImport(this.formGroup.controls.email.value,this.formGroup.controls.includeSharedFolders.value);return this.csvDataLoaded.emit(e),null}catch(e){return this.logService.error(`LP importer error: ${e}`),{errors:{message:this.i18nService.t(this.getValidationErrorI18nKey(e))}}}})}getValidationErrorI18nKey(e){switch("string"==typeof e?e:null==e?void 0:e.message){case"SSO auth cancelled":case"Second factor step is canceled by the user":case"Out of band step is canceled by the user":return"multifactorAuthenticationCancelled";case"No accounts to transform":case"Vault has not opened any accounts.":return"noLastPassDataFound";case"Invalid username":case"Invalid password":return"incorrectUsernameOrPassword";case"Second factor code is incorrect":case"Out of band authentication failed":return"multifactorAuthenticationFailed";case"unifiedloginresult":return"lastPassTryAgainCheckEmail";default:return"errorOccurred"}}}oo.ɵfac=function(e){return new(e||oo)(d.rXU(D.ok),d.rXU(D.ZU),d.rXU(ie.K),d.rXU(io),d.rXU(te.W))},oo.ɵcmp=d.VBU({type:oo,selectors:[["import-lastpass"]],outputs:{csvDataLoaded:"csvDataLoaded"},decls:14,vars:10,consts:[[3,"formGroup"],["bitInput","","type","text","formControlName","email"],["bitCheckbox","","type","checkbox","formControlName","includeSharedFolders","id","import-lastpass_input_includeSharedFolders"]],template:function(e,t){1&e&&(d.j41(0,"div",0)(1,"bit-form-field")(2,"bit-label"),d.EFF(3),d.nI1(4,"i18n"),d.k0s(),d.nrm(5,"input",1),d.j41(6,"bit-hint"),d.EFF(7),d.nI1(8,"async"),d.k0s()(),d.j41(9,"bit-form-control"),d.nrm(10,"input",2),d.j41(11,"bit-label"),d.EFF(12),d.nI1(13,"i18n"),d.k0s()()()),2&e&&(d.Y8G("formGroup",t.formGroup),d.R7$(3),d.JRh(d.bMT(4,4,"lastPassEmail")),d.R7$(4),d.JRh(d.bMT(8,6,t.emailHint$)),d.R7$(5),d.JRh(d.bMT(13,8,"includeSharedFolders")))},dependencies:[n.MD,r.p,Qe.j,ke.E,P.L,no.f,U.j,kr.I,O.J,N.h,D.X1,D.me,D.Zm,D.BC,D.cb,D.j4,D.JD,x.Q,cs.q,ro.P,n.Jj,y.$],encapsulation:2});var ao=i(69855),lo=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function co(e,t){1&e&&(d.j41(0,"bit-callout",20),d.nI1(1,"i18n"),d.EFF(2),d.nI1(3,"i18n"),d.k0s()),2&e&&(d.Y8G("title",d.bMT(1,2,"restrictCardTypeImport")),d.R7$(2),d.SpI(" ",d.bMT(3,4,"restrictCardTypeImportDesc"),"\n"))}function uo(e,t){1&e&&(d.nrm(0,"bit-option",21),d.nI1(1,"i18n")),2&e&&d.Y8G("label",d.bMT(1,1,"myVault"))}function ho(e,t){if(1&e&&d.nrm(0,"bit-option",22),2&e){const e=t.$implicit;d.Y8G("value",e.id)("label",e.name)}}function Ao(e,t){if(1&e&&d.nrm(0,"bit-option",25),2&e){const e=t.$implicit;d.Y8G("value",e)("label",e.name)}}function po(e,t){if(1&e&&(d.qex(0),d.nrm(1,"bit-option",23),d.nI1(2,"i18n"),d.DNE(3,Ao,1,2,"bit-option",24),d.nI1(4,"async"),d.bVm()),2&e){const e=d.XpG();d.R7$(),d.Y8G("label",d.VkB("-- ",d.bMT(2,4,"selectImportFolder")," --"))("value",null),d.R7$(2),d.Y8G("ngForOf",d.bMT(4,6,e.folders$))}}function go(e,t){if(1&e&&d.nrm(0,"bit-option",27),2&e){const e=t.$implicit,i=d.XpG(2);d.Y8G("value",e)("label",e.name)("icon",e.type===i.DefaultCollectionType?"bwi-user":"bwi-collection-shared")}}function vo(e,t){if(1&e&&(d.qex(0),d.nrm(1,"bit-option",23),d.nI1(2,"i18n"),d.DNE(3,go,1,3,"bit-option",26),d.nI1(4,"async"),d.bVm()),2&e){const e=d.XpG();d.R7$(),d.Y8G("label",d.VkB("-- ",d.bMT(2,4,"selectImportCollection")," --"))("value",null),d.R7$(2),d.Y8G("ngForOf",d.bMT(4,6,e.collections$))}}function mo(e,t){if(1&e&&d.nrm(0,"bit-option",23),2&e){const e=t.$implicit;d.Y8G("value",e.id)("label",e.name)}}function fo(e,t){if(1&e&&d.nrm(0,"bit-option",23),2&e){const e=t.$implicit;d.Y8G("value",e.id)("label",e.name)}}function yo(e,t){if(1&e&&(d.qex(0),d.nrm(1,"bit-option",28),d.DNE(2,fo,1,2,"bit-option",17),d.bVm()),2&e){const e=d.XpG();d.R7$(2),d.Y8G("ngForOf",e.importOptions)}}function bo(e,t){1&e&&(d.qex(0),d.EFF(1," See detailed instructions on our help site at "),d.j41(2,"a",29),d.EFF(3," https://bitwarden.com/help/export-your-data/"),d.k0s(),d.bVm())}function Co(e,t){1&e&&(d.j41(0,"bit-radio-group",33)(1,"bit-radio-button",34)(2,"bit-label"),d.EFF(3),d.nI1(4,"i18n"),d.k0s()(),d.j41(5,"bit-radio-button",35)(6,"bit-label"),d.EFF(7),d.nI1(8,"i18n"),d.k0s()()()),2&e&&(d.R7$(3),d.JRh(d.bMT(4,2,"importDirectlyFromLastPass")),d.R7$(4),d.JRh(d.bMT(8,4,"importFromCSV")))}function Io(e,t){if(1&e&&(d.qex(0),d.j41(1,"p",30),d.EFF(2),d.nI1(3,"i18n"),d.j41(4,"a",31),d.EFF(5," https://bitwarden.com/help/import-from-lastpass/"),d.k0s()(),d.DNE(6,Co,9,6,"bit-radio-group",32),d.bVm()),2&e){const e=d.XpG(2);d.R7$(2),d.SpI(" ",d.bMT(3,2,"seeDetailedInstructions")," "),d.R7$(4),d.Y8G("ngIf",e.showLastPassToggle)}}function wo(e,t){1&e&&(d.qex(0),d.EFF(1,' Using the KeePassX desktop application, navigate to "Database" → "Export to CSV file" and save the CSV file. '),d.bVm())}function Bo(e,t){1&e&&(d.qex(0),d.EFF(1,' In the Avira web vault, go to "Settings" → "My Data" → "Export data" and save the CSV file. '),d.bVm())}function Eo(e,t){1&e&&(d.qex(0),d.EFF(1,' In the Blur web vault, click your username at the top and go to "Settings" → "Export Data", then click "Export CSV" for your "Accounts". '),d.bVm())}function So(e,t){1&e&&(d.qex(0),d.EFF(1,' Using the SaveInCloud desktop application, navigate to "File" → "Export" → "As XML" and save the XML file. '),d.bVm())}function Qo(e,t){1&e&&(d.qex(0),d.EFF(1,' Using the Padlock desktop application, click the hamburger icon in the top left corner and navigate to "Settings" → "Export" button and save the file "As CSV". '),d.bVm())}function ko(e,t){1&e&&(d.qex(0),d.EFF(1,' Using the KeePass 2 desktop application, navigate to "File" → "Export" and select the "KeePass XML (2.x)" option. '),d.bVm())}function Ro(e,t){1&e&&(d.qex(0),d.EFF(1," For detailed instructions visit our "),d.j41(2,"a",36),d.EFF(3," help site"),d.k0s(),d.EFF(4,". "),d.bVm())}function Fo(e,t){1&e&&(d.qex(0),d.EFF(1,' Using the Universal Password Manager desktop application, navigate to "Database" → "Export" and save the CSV file. '),d.bVm())}function To(e,t){1&e&&(d.qex(0),d.EFF(1,' Using the SaferPass browser extension, click the hamburger icon in the top left corner and navigate to "Settings". Click the "Export accounts" button to save the CSV file. '),d.bVm())}function Do(e,t){1&e&&(d.qex(0),d.EFF(1,' Using the Meldium web vault, navigate to "Settings". Locate the "Export data" function and click "Show me my data" to save the CSV file. '),d.bVm())}function Po(e,t){1&e&&(d.qex(0),d.EFF(1," For detailed instructions visit our "),d.j41(2,"a",37),d.EFF(3,"help site"),d.k0s(),d.bVm())}function Mo(e,t){1&e&&(d.j41(0,"span"),d.EFF(1," The process is exactly the same as importing from Google Chrome. "),d.k0s())}function xo(e,t){if(1&e&&(d.qex(0),d.DNE(1,Mo,2,0,"span",12),d.j41(2,"p"),d.EFF(3," See detailed instructions on our help site at "),d.j41(4,"a",38),d.EFF(5," https://bitwarden.com/help/import-from-chrome/"),d.k0s()(),d.j41(6,"bit-radio-group",39),d.nI1(7,"async"),d.j41(8,"bit-radio-button",40)(9,"bit-label"),d.EFF(10),d.nI1(11,"i18n"),d.k0s()(),d.j41(12,"bit-radio-button",41)(13,"bit-label"),d.EFF(14),d.nI1(15,"i18n"),d.k0s()()(),d.bVm()),2&e){const e=d.XpG(2);d.R7$(),d.Y8G("ngIf","chromecsv"!==e.format),d.R7$(5),d.Y8G("hidden",!d.bMT(7,4,e.browserImporterAvailable$)),d.R7$(4),d.JRh(d.bMT(11,6,"importDirectlyFromBrowser")),d.R7$(4),d.JRh(d.bMT(15,8,"importFromCSV"))}}function Vo(e,t){1&e&&(d.qex(0),d.EFF(1," See detailed instructions on our help site at "),d.j41(2,"a",42),d.EFF(3," https://bitwarden.com/help/import-from-firefox/"),d.k0s(),d.EFF(4,". "),d.bVm())}function Go(e,t){1&e&&(d.qex(0),d.EFF(1," See detailed instructions on our help site at "),d.j41(2,"a",43),d.EFF(3," https://bitwarden.com/help/import-from-safari/"),d.k0s(),d.EFF(4,". "),d.bVm())}function Uo(e,t){1&e&&(d.qex(0),d.EFF(1," See detailed instructions on our help site at "),d.j41(2,"a",44),d.EFF(3," https://bitwarden.com/help/import-from-1password/"),d.k0s(),d.EFF(4,". "),d.bVm())}function Oo(e,t){1&e&&(d.qex(0),d.EFF(1,' Using the Password Dragon desktop application, navigate to "File" → "Export" → "To XML". In the dialog that pops up select "All Rows" and check all fields. Click the "Export" button and save the XML file. '),d.bVm())}function No(e,t){1&e&&(d.qex(0),d.EFF(1,' Using the Enpass desktop application, navigate to "File" → "Export" → "As CSV". Select "OK" to the warning alert and save the CSV file. Note that the importer only supports files exported while Enpass is set to the English language, so adjust your settings accordingly. '),d.bVm())}function jo(e,t){1&e&&(d.qex(0),d.EFF(1,' Using the Enpass 6 desktop application, click the menu button and navigate to "File" → "Export". Select the ".json" file format option and save the JSON file. '),d.bVm())}function Yo(e,t){1&e&&(d.qex(0),d.EFF(1,' Using the Password Safe desktop application, navigate to "File" → "Export To" → "XML format..." and save the XML file. '),d.bVm())}function Xo(e,t){1&e&&(d.qex(0),d.EFF(1,' Log in to Dashlane, click on "My Account" → "Settings" → "Export file" and select "Export as a CSV file". This will download a zip archive containing various CSV files. Unzip the archive and import each CSV file individually. '),d.bVm())}function zo(e,t){1&e&&(d.qex(0),d.EFF(1," Dashlane no longer supports the JSON format. Only use this if you have an existing JSON for import. Use the CSV importer when creating new exports. "),d.bVm())}function Lo(e,t){1&e&&(d.qex(0),d.EFF(1,' Using the mSecure desktop application, navigate to "File" → "Export" → "CSV File..." and save the CSV file. '),d.bVm())}function Wo(e,t){1&e&&(d.qex(0),d.EFF(1,' Using the Sticky Password desktop application, navigate to "Menu" (top right) → "Export" → "Export all". Select the unencrypted format XML option and save the XML file. '),d.bVm())}function Ko(e,t){1&e&&(d.qex(0),d.EFF(1,' Using the True Key desktop application, click the gear icon (top right) and then navigate to "App Settings". Click the "Export" button, enter your password and save the CSV file. '),d.bVm())}function Zo(e,t){1&e&&(d.qex(0),d.EFF(1,' Log into the Clipperz web application (clipperz.is/app). Click the hamburger menu icon in the top right to expand the navigation bar. Navigate to "Data" → "Export". Click the "download HTML+JSON" button to save the HTML file. '),d.bVm())}function Ho(e,t){1&e&&(d.qex(0),d.EFF(1,' Using the RoboForm Editor desktop application, navigate to "RoboForm" (top left) → "Options" → "Account & Data" and click the "Export" button. Select all of your data, change the "Format" to "CSV file" and then click the "Export" button to save the CSV file. Note: RoboForm only allows you to export Logins. Other items will not be exported. '),d.bVm())}function Jo(e,t){1&e&&(d.qex(0),d.EFF(1,' Log into the Passbolt web vault and navigate to the "Passwords" listing. Select all of the passwords you would like to export and click the "Export" button at the top of the listing. Choose the "csv (lastpass)" export format and click the "Export" button. '),d.bVm())}function qo(e,t){1&e&&(d.qex(0),d.EFF(1,' Using the Ascendo DataVault desktop application, navigate to "Tools" → "Export". In the dialog that pops up, select the "All Items (DVX, CSV)" option. Click the "Ok" button to save the CSV file. '),d.bVm())}function $o(e,t){1&e&&(d.qex(0),d.EFF(1,' Using the Password Boss desktop application, navigate to "File" → "Export data" → "Password Boss JSON - not encrypted" and save the JSON file. '),d.bVm())}function _o(e,t){1&e&&(d.qex(0),d.EFF(1,' Log into the Zoho web vault (vault.zoho.com). Navigate to "Tools" → "Export Secrets". Select "All Secrets" and click the "Zoho Vault Format CSV" button. Highlight and copy the data from the textarea. Open a text editor like Notepad and paste the data. Save the data from the text editor as '),d.j41(2,"code"),d.EFF(3,"zoho_export.csv"),d.k0s(),d.EFF(4,". "),d.bVm())}function ea(e,t){1&e&&(d.qex(0),d.EFF(1,' Using the SplashID Safe desktop application, click on the SplashID blue lock logo in the top right corner. Navigate to "Export" → "Export as CSV" and save the CSV file. '),d.bVm())}function ta(e,t){1&e&&(d.qex(0),d.EFF(1,' Using the PassKeep mobile app, navigate to "Backup/Restore". Locate the "CSV Backup/Restore" section and click "Backup to CSV" to save the CSV file. '),d.bVm())}function ia(e,t){1&e&&(d.qex(0),d.EFF(1," Make sure you have python-keyring and python-gnomekeyring installed. Save the "),d.j41(2,"a",45),d.EFF(3,"GNOME Keyring Import/Export"),d.k0s(),d.EFF(4," python script to your desktop as "),d.j41(5,"code"),d.EFF(6,"pw_helper.py"),d.k0s(),d.EFF(7,". Open terminal and run "),d.j41(8,"code"),d.EFF(9,"chmod +rx Desktop/pw_helper.py"),d.k0s(),d.EFF(10," and then "),d.j41(11,"code"),d.EFF(12,"python Desktop/pw_helper.py export Desktop/my_passwords.json"),d.k0s(),d.EFF(13,". Then upload the resulting "),d.j41(14,"code"),d.EFF(15,"my_passwords.json"),d.k0s(),d.EFF(16," file here to Bitwarden. "),d.bVm())}function na(e,t){1&e&&(d.qex(0),d.EFF(1,' Using the Password Agent desktop application navigate to "File" → "Export", select the "Fields to export" button and check all of the fields, change the "Output format" to "CSV", and then click the "Start" button to save the CSV file. '),d.bVm())}function ra(e,t){1&e&&(d.qex(0),d.EFF(1,' Log into the Passpack website vault and navigate to "Settings" → "Export", then click the "Download" button to save the CSV file. '),d.bVm())}function sa(e,t){1&e&&(d.qex(0),d.EFF(1,' Open your Passman vault and click on "Settings" in the bottom left corner. In the "Settings" window switch to the "Export credentials" tab and choose "JSON" as the export type. Enter your vault\'s passphrase and click the "Export" button to save the JSON file. '),d.bVm())}function oa(e,t){1&e&&(d.qex(0),d.EFF(1,' Open the Avast Passwords desktop application and navigate to "Settings" → "Import/export data". Select the "Export" button for the "Export to CSV file" option to save the CSV file. '),d.bVm())}function aa(e,t){1&e&&(d.qex(0),d.EFF(1,' Open the Avast Passwords desktop application and navigate to "Settings" → "Import/export data". Select the "Export" button for the "Export to JSON file" option to save the JSON file. '),d.bVm())}function la(e,t){1&e&&(d.qex(0),d.EFF(1,' Open the F-Secure KEY desktop application and navigate to "Settings" → "Export Passwords". Select the "Export" button, enter your master password, and save the FSK file. '),d.bVm())}function ca(e,t){1&e&&(d.qex(0),d.EFF(1,' Open the Kaspersky Password Manager desktop application and navigate to "Settings" → "Import/Export". Locate the "Export to text file" section and select the "Export" button to save the TXT file. '),d.bVm())}function da(e,t){1&e&&(d.qex(0),d.EFF(1,' Open the RememBear desktop application and navigate to "Settings" → "Account" → "Export". Enter your master password and select the "Export Anyway" button to save the CSV file. '),d.bVm())}function ua(e,t){1&e&&(d.qex(0),d.EFF(1,' Open the PasswordWallet desktop application and navigate to "File" → "Export" → "Visible entries to text file". Enter your password and select the "Ok" button to save the TXT file. '),d.bVm())}function ha(e,t){1&e&&(d.qex(0),d.EFF(1,' Open the Myki desktop browser extension and navigate to "Advanced" → "Export Accounts" and then scan the QR code with your mobile device. Various CSV files will then be saved to your computer\'s downloads folder. '),d.bVm())}function Aa(e,t){1&e&&(d.qex(0),d.EFF(1," Export your SecureSafe password safe to a CSV file with a comma delimiter. "),d.bVm())}function pa(e,t){1&e&&(d.qex(0),d.EFF(1,' Open the LogMeOnce browser extension, then navigate to "Open Menu" → "Export To" and select "CSV File" to save the CSV file. '),d.bVm())}function ga(e,t){1&e&&(d.qex(0),d.EFF(1,' Open the BlackBerry Password Keeper application, then navigate to "Settings" → "Import/Export". Select "Export Passwords" and follow the instructions on screen to save the unencrypted CSV file. '),d.bVm())}function va(e,t){1&e&&(d.qex(0),d.EFF(1,' Open the Buttercup desktop application and unlock your vault. Right click on your vault\'s icon and select "Export" to save the CSV file. '),d.bVm())}function ma(e,t){1&e&&(d.qex(0),d.EFF(1,' Open the Codebook desktop application and log in. Navigate to "File" → "Export all", then click "Yes" on the dialog and save the CSV file. '),d.bVm())}function fa(e,t){1&e&&(d.qex(0),d.EFF(1," Open the newest version of the Encryptr desktop application and allow all of your data to sync. Once syncing of your data is complete, the download icon in the top right corner will turn pink. Click the download icon and save the CSV file. "),d.bVm())}function ya(e,t){1&e&&(d.qex(0),d.EFF(1,' From the Yoti browser extension, click on "Settings", then "Export Saved Logins" and save the CSV file. '),d.bVm())}function ba(e,t){1&e&&(d.qex(0),d.EFF(1,' Log in to the Psono web vault, click on the "Signed in as"-dropdown, select "Others". Go to the "Export"-tab and select the json type export and then click on Export. '),d.bVm())}function Ca(e,t){1&e&&(d.qex(0),d.EFF(1,' Log in to "https://vault.passky.org" → "Import & Export" → "Export" in the Passky section. ("Backup" is unsupported as it is encrypted). '),d.bVm())}function Ia(e,t){1&e&&(d.qex(0),d.EFF(1," In the ProtonPass browser extension, go to Settings > Export. Export without PGP encryption and save the zip file. "),d.bVm())}function wa(e,t){1&e&&(d.qex(0),d.EFF(1," Select Database → Export to file... menu. → Within the export options, ensure Folder names and Column titles is checked. → Press Browse... button and choose the target file and set it's type to CSV file. "),d.bVm())}function Ba(e,t){1&e&&(d.qex(0),d.EFF(1," Open the FullClient, go to the Main Menu and select Export. Start the export passwords wizard and follow the instructions to export a CSV file. "),d.bVm())}function Ea(e,t){1&e&&(d.qex(0),d.EFF(1," Log in to NordPass and open Settings → Scroll down to the Import and Export section and select Export items → Enter your Master Password and select Continue. → Save the CSV file on your device. "),d.bVm())}function Sa(e,t){1&e&&(d.qex(0),d.EFF(1," On the desktop application, go to Tools → Export → Enter your master password → Select XML Format (*.xml) as Export format → Click on next → Choose which entries should be included in the export → Click on next to export into the location previously chosen. "),d.bVm())}function Qa(e,t){if(1&e&&(d.j41(0,"bit-callout",20),d.DNE(1,bo,4,0,"ng-container",12)(2,Io,7,4,"ng-container",12)(3,wo,2,0,"ng-container",12)(4,Bo,2,0,"ng-container",12)(5,Eo,2,0,"ng-container",12)(6,So,2,0,"ng-container",12)(7,Qo,2,0,"ng-container",12)(8,ko,2,0,"ng-container",12)(9,Ro,5,0,"ng-container",12)(10,Fo,2,0,"ng-container",12)(11,To,2,0,"ng-container",12)(12,Do,2,0,"ng-container",12)(13,Po,4,0,"ng-container",12)(14,xo,16,10,"ng-container",12),d.nI1(15,"async"),d.DNE(16,Vo,5,0,"ng-container",12)(17,Go,5,0,"ng-container",12)(18,Uo,5,0,"ng-container",12)(19,Oo,2,0,"ng-container",12)(20,No,2,0,"ng-container",12)(21,jo,2,0,"ng-container",12)(22,Yo,2,0,"ng-container",12)(23,Xo,2,0,"ng-container",12)(24,zo,2,0,"ng-container",12)(25,Lo,2,0,"ng-container",12)(26,Wo,2,0,"ng-container",12)(27,Ko,2,0,"ng-container",12)(28,Zo,2,0,"ng-container",12)(29,Ho,2,0,"ng-container",12)(30,Jo,2,0,"ng-container",12)(31,qo,2,0,"ng-container",12)(32,$o,2,0,"ng-container",12)(33,_o,5,0,"ng-container",12)(34,ea,2,0,"ng-container",12)(35,ta,2,0,"ng-container",12)(36,ia,17,0,"ng-container",12)(37,na,2,0,"ng-container",12)(38,ra,2,0,"ng-container",12)(39,sa,2,0,"ng-container",12)(40,oa,2,0,"ng-container",12)(41,aa,2,0,"ng-container",12)(42,la,2,0,"ng-container",12)(43,ca,2,0,"ng-container",12)(44,da,2,0,"ng-container",12)(45,ua,2,0,"ng-container",12)(46,ha,2,0,"ng-container",12)(47,Aa,2,0,"ng-container",12)(48,pa,2,0,"ng-container",12)(49,ga,2,0,"ng-container",12)(50,va,2,0,"ng-container",12)(51,ma,2,0,"ng-container",12)(52,fa,2,0,"ng-container",12)(53,ya,2,0,"ng-container",12)(54,ba,2,0,"ng-container",12)(55,Ca,2,0,"ng-container",12)(56,Ia,2,0,"ng-container",12)(57,wa,2,0,"ng-container",12)(58,Ba,2,0,"ng-container",12)(59,Ea,2,0,"ng-container",12)(60,Sa,2,0,"ng-container",12),d.k0s()),2&e){const e=d.XpG();d.Y8G("title",d.mNQ(e.getFormatInstructionTitle())),d.R7$(),d.Y8G("ngIf","bitwardencsv"===e.format||"bitwardenjson"===e.format),d.R7$(),d.Y8G("ngIf","lastpasscsv"===e.format),d.R7$(),d.Y8G("ngIf","keepassxcsv"===e.format),d.R7$(),d.Y8G("ngIf","aviracsv"===e.format),d.R7$(),d.Y8G("ngIf","blurcsv"===e.format),d.R7$(),d.Y8G("ngIf","safeincloudxml"===e.format),d.R7$(),d.Y8G("ngIf","padlockcsv"===e.format),d.R7$(),d.Y8G("ngIf","keepass2xml"===e.format),d.R7$(),d.Y8G("ngIf","keepasskdbx"===e.format),d.R7$(),d.Y8G("ngIf","upmcsv"===e.format),d.R7$(),d.Y8G("ngIf","saferpasscsv"===e.format),d.R7$(),d.Y8G("ngIf","meldiumcsv"===e.format),d.R7$(),d.Y8G("ngIf","keeper"===e.format),d.R7$(),d.Y8G("ngIf",d.bMT(15,61,e.showChromiumInstructions$)),d.R7$(2),d.Y8G("ngIf","firefoxcsv"===e.format),d.R7$(),d.Y8G("ngIf","safaricsv"===e.format),d.R7$(),d.Y8G("ngIf","1password1pux"===e.format||"1password1pif"===e.format||"1passwordwincsv"===e.format||"1passwordmaccsv"===e.format),d.R7$(),d.Y8G("ngIf","passworddragonxml"===e.format),d.R7$(),d.Y8G("ngIf","enpasscsv"===e.format),d.R7$(),d.Y8G("ngIf","enpassjson"===e.format),d.R7$(),d.Y8G("ngIf","pwsafexml"===e.format),d.R7$(),d.Y8G("ngIf","dashlanecsv"===e.format),d.R7$(),d.Y8G("ngIf","dashlanejson"===e.format),d.R7$(),d.Y8G("ngIf","msecurecsv"===e.format),d.R7$(),d.Y8G("ngIf","stickypasswordxml"===e.format),d.R7$(),d.Y8G("ngIf","truekeycsv"===e.format),d.R7$(),d.Y8G("ngIf","clipperzhtml"===e.format),d.R7$(),d.Y8G("ngIf","roboformcsv"===e.format),d.R7$(),d.Y8G("ngIf","passboltcsv"===e.format),d.R7$(),d.Y8G("ngIf","ascendocsv"===e.format),d.R7$(),d.Y8G("ngIf","passwordbossjson"===e.format),d.R7$(),d.Y8G("ngIf","zohovaultcsv"===e.format),d.R7$(),d.Y8G("ngIf","splashidcsv"===e.format),d.R7$(),d.Y8G("ngIf","passkeepcsv"===e.format),d.R7$(),d.Y8G("ngIf","gnomejson"===e.format),d.R7$(),d.Y8G("ngIf","passwordagentcsv"===e.format),d.R7$(),d.Y8G("ngIf","passpackcsv"===e.format),d.R7$(),d.Y8G("ngIf","passmanjson"===e.format),d.R7$(),d.Y8G("ngIf","avastcsv"===e.format),d.R7$(),d.Y8G("ngIf","avastjson"===e.format),d.R7$(),d.Y8G("ngIf","fsecurefsk"===e.format),d.R7$(),d.Y8G("ngIf","kasperskytxt"===e.format),d.R7$(),d.Y8G("ngIf","remembearcsv"===e.format),d.R7$(),d.Y8G("ngIf","passwordwallettxt"===e.format),d.R7$(),d.Y8G("ngIf","mykicsv"===e.format),d.R7$(),d.Y8G("ngIf","securesafecsv"===e.format),d.R7$(),d.Y8G("ngIf","logmeoncecsv"===e.format),d.R7$(),d.Y8G("ngIf","blackberrycsv"===e.format),d.R7$(),d.Y8G("ngIf","buttercupcsv"===e.format),d.R7$(),d.Y8G("ngIf","codebookcsv"===e.format),d.R7$(),d.Y8G("ngIf","encryptrcsv"===e.format),d.R7$(),d.Y8G("ngIf","yoticsv"===e.format),d.R7$(),d.Y8G("ngIf","psonojson"===e.format),d.R7$(),d.Y8G("ngIf","passkyjson"===e.format),d.R7$(),d.Y8G("ngIf","protonpass"===e.format),d.R7$(),d.Y8G("ngIf","passwordxpcsv"===e.format),d.R7$(),d.Y8G("ngIf","netwrixpasswordsecure"===e.format),d.R7$(),d.Y8G("ngIf","nordpasscsv"===e.format),d.R7$(),d.Y8G("ngIf","passworddepot17xml"===e.format)}}function ka(e,t){if(1&e){const e=d.RV6();d.j41(0,"import-lastpass",46),d.bIt("csvDataLoaded",function(t){E.eBV(e);const i=d.XpG();return E.Njj(i.formGroup.controls.fileContents.setValue(t))}),d.k0s()}if(2&e){const e=d.XpG();d.Y8G("formGroup",e.formGroup)}}function Ra(e,t){if(1&e){const e=d.RV6();d.j41(0,"import-chrome",47),d.bIt("csvDataLoaded",function(t){E.eBV(e);const i=d.XpG();return E.Njj(i.formGroup.controls.fileContents.setValue(t))})("error",function(t){E.eBV(e);const i=d.XpG();return E.Njj(i.handleChromeImportError(t))}),d.k0s()}if(2&e){const e=d.XpG();d.Y8G("formGroup",e.formGroup)("onImportFromBrowser",e.onImportFromBrowser)("onLoadProfilesFromBrowser",e.onLoadProfilesFromBrowser)("format",e.format)}}function Fa(e,t){if(1&e){const e=d.RV6();d.j41(0,"bit-form-field")(1,"bit-label"),d.EFF(2),d.nI1(3,"i18n"),d.k0s(),d.j41(4,"div",51)(5,"button",52),d.bIt("click",function(){E.eBV(e);const t=d.sdS(11);return E.Njj(t.click())}),d.EFF(6),d.nI1(7,"i18n"),d.k0s(),d.EFF(8),d.nI1(9,"i18n"),d.k0s(),d.j41(10,"input",54,1),d.bIt("change",function(t){E.eBV(e);const i=d.XpG(2);return E.Njj(i.setKeyFile(t))}),d.k0s()()}if(2&e){const e=d.XpG(2);d.R7$(2),d.JRh(d.bMT(3,3,"keyFileUpload")),d.R7$(4),d.SpI(" ",d.bMT(7,5,"chooseFile")," "),d.R7$(2),d.SpI(" ",e.keyFileSelected?e.keyFileSelected.name:d.bMT(9,7,"noFileChosen")," ")}}function Ta(e,t){if(1&e){const e=d.RV6();d.j41(0,"button",55),d.bIt("click",function(){E.eBV(e);const t=d.XpG(2);return E.Njj(t.addKeyFile())}),d.EFF(1),d.nI1(2,"i18n"),d.k0s()}2&e&&(d.R7$(),d.SpI(" ",d.bMT(2,1,"addKeyFile")," "))}function Da(e,t){if(1&e){const e=d.RV6();d.j41(0,"bit-form-field")(1,"bit-label"),d.EFF(2),d.nI1(3,"i18n"),d.k0s(),d.nrm(4,"input",48)(5,"button",49),d.k0s(),d.nVh(6,Fa,12,9,"bit-form-field")(7,Ta,3,3,"button",50),d.j41(8,"bit-form-field",10)(9,"bit-label"),d.EFF(10),d.nI1(11,"i18n"),d.k0s(),d.j41(12,"div",51)(13,"button",52),d.bIt("click",function(){E.eBV(e);const t=d.sdS(19);return E.Njj(t.click())}),d.EFF(14),d.nI1(15,"i18n"),d.k0s(),d.EFF(16),d.nI1(17,"i18n"),d.k0s(),d.j41(18,"input",53,0),d.bIt("change",function(t){E.eBV(e);const i=d.XpG();return E.Njj(i.setSelectedFile(t))}),d.k0s(),d.j41(20,"bit-hint"),d.EFF(21),d.nI1(22,"i18n"),d.k0s()()}if(2&e){const e=d.XpG();d.R7$(2),d.JRh(d.bMT(3,7,"keePassMasterPassword")),d.R7$(4),d.vxM(e.showKeyFile?6:7),d.R7$(4),d.JRh(d.bMT(11,9,"kdbxFileUpload")),d.R7$(4),d.SpI(" ",d.bMT(15,11,"chooseFile")," "),d.R7$(2),d.SpI(" ",e.fileSelected?e.fileSelected.name:d.bMT(17,13,"noFileChosen")," "),d.R7$(2),d.BMQ("accept",e.acceptedFileTypes),d.R7$(3),d.JRh(d.bMT(22,15,"acceptedFormatsKdbx"))}}function Pa(e,t){if(1&e){const e=d.RV6();d.j41(0,"import-keeper",56),d.bIt("importCompleted",function(t){E.eBV(e);const i=d.XpG(2);return E.Njj(i.performDirectImport(t))}),d.k0s()}if(2&e){const e=d.XpG(2);d.Y8G("formGroup",e.formGroup)}}function Ma(e,t){if(1&e){const e=d.RV6();d.j41(0,"bit-form-field")(1,"bit-label"),d.EFF(2),d.nI1(3,"i18n"),d.k0s(),d.j41(4,"div",51)(5,"button",52),d.bIt("click",function(){E.eBV(e);const t=d.sdS(11);return E.Njj(t.click())}),d.EFF(6),d.nI1(7,"i18n"),d.k0s(),d.EFF(8),d.nI1(9,"i18n"),d.k0s(),d.j41(10,"input",53,2),d.bIt("change",function(t){E.eBV(e);const i=d.XpG(2);return E.Njj(i.setSelectedFile(t))}),d.k0s()(),d.j41(12,"bit-form-field",10)(13,"bit-label"),d.EFF(14),d.nI1(15,"i18n"),d.k0s(),d.nrm(16,"textarea",57),d.k0s()}if(2&e){const e=d.XpG(2);d.R7$(2),d.JRh(d.bMT(3,5,"selectImportFile")),d.R7$(4),d.SpI(" ",d.bMT(7,7,"chooseFile")," "),d.R7$(2),d.SpI(" ",e.fileSelected?e.fileSelected.name:d.bMT(9,9,"noFileChosen")," "),d.R7$(2),d.BMQ("accept",e.acceptedFileTypes),d.R7$(4),d.JRh(d.bMT(15,11,"orCopyPasteFileContents"))}}function xa(e,t){if(1&e&&(d.nVh(0,Pa,1,1,"import-keeper",18),d.nVh(1,Ma,17,13)),2&e){const e=d.XpG();d.vxM(e.isKeeperFormat?0:-1),d.R7$(),d.vxM(e.isKeeperFormat&&"direct"===e.keeperMethod?-1:1)}}class Va{get organizationId(){return this._organizationId}set organizationId(e){return Gi.A.isNullOrEmpty(e)?(this._organizationId=void 0,void(this.organization=void 0)):(0,es.e)(e)?(this._organizationId=e,void(0,$r.F6)(this.accountService.activeAccount$).pipe((0,zr.n)(t=>this.organizationService.organizations$(t).pipe((0,_r.Hc)(e)))).pipe((0,Lr.Q)(this.destroy$)).subscribe(e=>{this._organizationId=null==e?void 0:e.id,this.organization=e})):(this._organizationId=void 0,void(this.organization=void 0))}ngAfterViewInit(){this.bitSubmit.loading$.pipe((0,Lr.Q)(this.destroy$)).subscribe(e=>{this.formLoading.emit(e)}),this.bitSubmit.disabled$.pipe((0,Lr.Q)(this.destroy$)).subscribe(e=>{this.formDisabled.emit(e)})}constructor(e,t,i,n,r,s,o,a,l,c,d,u,h,A,p,g,v,m){this.i18nService=e,this.importService=t,this.platformUtilsService=i,this.policyService=n,this.logService=r,this.syncService=s,this.dialogService=o,this.folderService=a,this.organizationService=l,this.collectionService=c,this.formBuilder=d,this.importCollectionService=u,this.toastService=h,this.accountService=A,this.restrictedItemTypesService=p,this.destroyRef=g,this.importMetadataService=v,this.router=m,this.DefaultCollectionType=qr.it.DefaultUserCollection,this.format=null,this.keyFileSelected=null,this.showKeyFile=!1,this.returnTo=(0,Ie.hFB)(void 0),this.organization=void 0,this.destroy$=new Nr.B,this.isCardTypeRestricted$=this.restrictedItemTypesService.restricted$.pipe((0,Wr.T)(e=>e.length>0)),this._importBlockedByPolicy=!1,this.isFromAC=!1,this.activeUserId$=this.accountService.activeAccount$.pipe((0,Wr.T)(e=>null==e?void 0:e.id)),this.formGroup=this.formBuilder.group({vaultSelector:["myVault",{nonNullable:!0,validators:[D.k0.required]}],targetSelector:[null],format:[null,[D.k0.required]],fileContents:[],file:[],kdbxPassword:[""],lastPassType:["direct"],chromiumLoader:[as.aH.file]}),this.formLoading=new E.bkB,this.formDisabled=new E.bkB,this.onSuccessfulImport=new E.bkB,this.importer$=new jr.t(void 0),this.showChromiumInstructions$=this.importer$.pipe((0,Wr.T)(e=>(null==e?void 0:e.instructions)===as.wP.chromium)),this.browserImporterAvailable$=this.importer$.pipe((0,Wr.T)(e=>{var t;return(null!==(t=null==e?void 0:e.loaders)&&void 0!==t?t:[]).includes(as.aH.chromium)})),this.showChromiumOptions$=this.formGroup.controls.chromiumLoader.valueChanges.pipe((0,Wr.T)(e=>e===as.aH.chromium)),this.submit=()=>lo(this,void 0,void 0,function*(){var e;yield this.asyncValidatorsFinished(),this.formGroup.invalid?this.formGroup.markAllAsTouched():this.isKeeperFormat&&"direct"===this.keeperMethod?yield null===(e=this.importKeeper)||void 0===e?void 0:e.submitDirect(this.organizationId):yield this.performImport()}),this.masterPasswordRequiredValidator=e=>{var t;return(null!==(t=e.value)&&void 0!==t?t:"").length>0?null:{invalidMasterPassword:{message:this.i18nService.t("invalidMasterPassword")}}}}get importBlockedByPolicy(){return this._importBlockedByPolicy}get showLastPassToggle(){return"lastpasscsv"===this.format&&(this.platformUtilsService.getClientType()===Ee.sK.Desktop||this.platformUtilsService.getClientType()===Ee.sK.Browser)}get showLastPassOptions(){return this.showLastPassToggle&&"direct"===this.formGroup.controls.lastPassType.value}get isKeeperFormat(){return"keeper"===this.format}get keeperMethod(){var e,t;const i=this.formGroup.get("keeperOptions");return null!==(t=null===(e=null==i?void 0:i.get("method"))||void 0===e?void 0:e.value)&&void 0!==t?t:Gr(this.platformUtilsService)}resolveKeeperFileImporter(){let e;switch(this.keeperMethod){case"csv":e=new ss.p;break;case"json":e=new os.F;break;default:throw new Error(`Unsupported Keeper method for file import: ${this.keeperMethod}`)}return e.organizationId=this.organizationId,e}ngOnInit(){return lo(this,void 0,void 0,function*(){yield this.importMetadataService.init(),this.setImportOptions(),this.importMetadataService.metadata$(this.formGroup.controls.format.valueChanges).pipe((0,we.pQ)(this.destroyRef)).subscribe({next:e=>{var t,i;this.importer$.next(e);const n=(null===(t=e.loaders)||void 0===t?void 0:t.includes(as.aH.chromium))?as.aH.chromium:null===(i=e.loaders)||void 0===i?void 0:i[0];this.formGroup.controls.chromiumLoader.setValue(null!=n?n:as.aH.file)},error:e=>this.logService.error("an error occurred",e)}),this.organizationId?yield this.handleOrganizationImportInit():yield this.handleImportInit(),this.formGroup.controls.format.valueChanges.pipe((0,Lr.Q)(this.destroy$)).subscribe(e=>{this.format=e,this.updateKdbxControls(e)}),yield this.handlePolicies()})}handleOrganizationImportInit(){return lo(this,void 0,void 0,function*(){const e=yield(0,Yr._)((0,$r.F6)(this.accountService.activeAccount$));this.organizations$=this.organizationService.memberOrganizations$(e).pipe((0,Wr.T)(e=>e.filter(e=>e.id==this.organizationId&&(e.canAccessImport||e.canCreateNewCollections)))),this.formGroup.controls.vaultSelector.patchValue(this.organizationId),this.formGroup.controls.vaultSelector.disable(),this.collections$=Gi.A.asyncToObservable(()=>this.importCollectionService.getAllAdminCollections(this.organizationId,e).then(e=>e.sort(Gi.A.getSortFunction(this.i18nService,"name")))),this.isFromAC=!0})}handleImportInit(){return lo(this,void 0,void 0,function*(){this.folders$=this.activeUserId$.pipe((0,zr.n)(e=>this.folderService.folderViews$(e)),(0,Wr.T)(e=>e.filter(e=>!!e.id))),this.formGroup.controls.targetSelector.disable();const e=yield(0,Yr._)((0,$r.F6)(this.accountService.activeAccount$));this.organizations$=this.organizationService.memberOrganizations$(e).pipe((0,Kr.v)(this.collectionService.decryptedCollections$(e)),(0,Wr.T)(([e,t])=>e.filter(e=>t.some(t=>t.organizationId===e.id&&t.manage)).sort(Gi.A.getSortFunction(this.i18nService,"name")))),(0,Xr.z)([this.formGroup.controls.vaultSelector.valueChanges,this.organizations$]).pipe((0,Lr.Q)(this.destroy$)).subscribe(([t,i])=>{this.organizationId="myVault"!==t?t:void 0,this.formGroup.controls.targetSelector.setValue(null),this.formGroup.controls.targetSelector.enable(),t&&(this.collections$=this.collectionService.decryptedCollections$(e).pipe((0,Wr.T)(e=>e.filter(e=>e.organizationId===t&&e.manage).sort(Gi.A.getSortFunction(this.i18nService,"name")))))}),this.formGroup.controls.vaultSelector.setValue("myVault")})}handlePolicies(){return lo(this,void 0,void 0,function*(){const e=yield(0,Yr._)((0,$r.F6)(this.accountService.activeAccount$)),t=(0,Xr.z)([this.accountService.activeAccount$.pipe($r.F6,(0,zr.n)(e=>this.policyService.policyAppliesToUser$(Jr.tt.OrganizationDataOwnership,e))),this.organizations$]);t.pipe((0,Lr.Q)(this.destroy$)).subscribe(([e,t])=>{this._importBlockedByPolicy=e,e&&0==t.length&&this.formGroup.disable(),e&&t.length>0&&this.formGroup.controls.vaultSelector.setValue(t[0].id)}),t.pipe((0,Zr.p)(([e,t])=>e&&t.length>0),(0,zr.n)(([,t])=>this.collectionService.defaultUserCollection$(e,t[0].id)),(0,Zr.p)(Boolean),(0,Lr.Q)(this.destroy$)).subscribe(e=>{this.formGroup.controls.targetSelector.setValue(e)})})}asyncValidatorsFinished(){return lo(this,void 0,void 0,function*(){this.formGroup.pending&&(yield(0,Yr._)(this.formGroup.statusChanges.pipe((0,Zr.p)(e=>"PENDING"!==e))))})}performImport(){return lo(this,void 0,void 0,function*(){if(this.importService.isSdkImporter(this.format))return void(yield this.performSdkImport());if(!(yield this.validateImport()))return;const e=this.isKeeperFormat?this.resolveKeeperFileImporter():this.importService.getImporter(this.format,()=>lo(this,void 0,void 0,function*(){return yield this.getFilePassword()}),this.organizationId);if(null===e)return void this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:this.i18nService.t("selectFormat")});const t=yield this.setImportContents();null!=t&&""!==t?yield this.doImport(()=>lo(this,void 0,void 0,function*(){var i;return this.importService.import(e,t,this.organizationId,this.formGroup.controls.targetSelector.value,(null===(i=this.organization)||void 0===i?void 0:i.canAccessImport)&&this.isFromAC)})):this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:this.i18nService.t("selectFile")})})}performDirectImport(e){return lo(this,void 0,void 0,function*(){(yield this.validateImport())&&(yield this.doImport(()=>lo(this,void 0,void 0,function*(){var t;return this.importService.importImportResult(e,this.organizationId,this.formGroup.controls.targetSelector.value,(null===(t=this.organization)||void 0===t?void 0:t.canAccessImport)&&this.isFromAC)})))})}doImport(e){return lo(this,void 0,void 0,function*(){try{const t=yield e(),i=this.returnTo()?this.resolveReturnDestination(this.returnTo()):void 0;this.dialogService.open(T,{data:Object.assign({importResult:t},i)}),this.syncService.fullSync(!0),this.onSuccessfulImport.emit(this._organizationId)}catch(t){this.dialogService.open(I,{data:t}),this.logService.error(t)}})}performSdkImport(){return lo(this,void 0,void 0,function*(){var e;if(!(yield this.validateImport()))return;const t=yield this.getSelectedFileBytes();if(null==t||0===t.length)return void this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:this.i18nService.t("selectFile")});const i=yield this.collectSdkCredentials(this.importService.credentialKindFor(this.format));if(null!=i)try{const n=yield this.importService.importWithSdk(this.format,t,i,this.organizationId,this.formGroup.controls.targetSelector.value,(null===(e=this.organization)||void 0===e?void 0:e.canAccessImport)&&this.isFromAC),r=this.returnTo()?this.resolveReturnDestination(this.returnTo()):void 0;this.dialogService.open(T,{data:Object.assign({sdkSummary:n},r)}),yield this.syncService.fullSync(!0),this.onSuccessfulImport.emit(this._organizationId)}catch(n){const e=this.importService.sdkErrorMessageKey(this.format,n);this.dialogService.open(I,{data:null!=e?new Error(this.i18nService.t(e)):n}),this.logService.error(n)}})}collectSdkCredentials(e){return lo(this,void 0,void 0,function*(){switch(e){case Sn.M.none:return{kind:"none"};case Sn.M.password:{const e=yield this.getFilePassword();return null==e?null:{kind:"password",password:e}}case Sn.M.passwordWithKeyFile:{const e=this.keyFileSelected?new Uint8Array(yield this.keyFileSelected.arrayBuffer()):null;return{kind:"passwordWithKeyFile",password:this.formGroup.controls.kdbxPassword.value,keyFile:e}}default:return null}})}getSelectedFileBytes(){return lo(this,void 0,void 0,function*(){var e,t;const i=document.getElementById("import_input_file"),n=null!==(t=null===(e=null==i?void 0:i.files)||void 0===e?void 0:e[0])&&void 0!==t?t:this.fileSelected;return null==n?null:new Uint8Array(yield n.arrayBuffer())})}get acceptedFileTypes(){var e;return null!==(e=this.importService.sdkFileTypeHint(this.format))&&void 0!==e?e:null}getFormatInstructionTitle(){if(null==this.format)return null;const e=this.featuredImportOptions.concat(this.importOptions).filter(e=>e.id===this.format);return e.length>0?this.i18nService.t("instructionsFor",e[0].name):null}handleChromeImportError(e){this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:e})}setImportOptions(){this.featuredImportOptions=[...this.importService.featuredImportOptions];const e=this.importService.regularImportOptions.filter(e=>"keepercsv"!==e.id&&"keeperjson"!==e.id);this.importOptions=[...e].sort((e,t)=>null==e.name&&null!=t.name?-1:null!=e.name&&null==t.name?1:null==e.name&&null==t.name?0:this.i18nService.collator?this.i18nService.collator.compare(e.name,t.name):e.name.localeCompare(t.name))}setSelectedFile(e){const t=e.target;this.fileSelected=t.files.length>0?t.files[0]:null}setKeyFile(e){const t=e.target;this.keyFileSelected=t.files.length>0?t.files[0]:null}addKeyFile(){this.showKeyFile=!0}updateKdbxControls(e){const t=this.formGroup.controls.kdbxPassword;"keepasskdbx"===e?t.setValidators(this.masterPasswordRequiredValidator):(t.clearValidators(),t.setValue(""),this.keyFileSelected=null,this.showKeyFile=!1),t.updateValueAndValidity()}getFileContents(e){return"1password1pux"===this.format&&e.name.endsWith(".1pux")?this.extractZipContent(e,"export.data"):"protonpass"!==this.format||"application/zip"!==e.type&&"application/x-zip-compressed"!=e.type&&!e.name.endsWith(".zip")?new Promise((t,i)=>{const n=new FileReader;n.readAsText(e,"utf-8"),n.onload=n=>{if("lastpasscsv"===this.format&&"text/html"===e.type){const e=(new DOMParser).parseFromString(n.target.result,"text/html").querySelector("pre");return null!=e?void t(e.textContent):void i()}t(n.target.result)},n.onerror=()=>{i()}}):this.extractZipContent(e,"Proton Pass/data.json")}extractZipContent(e,t){return(new Or).loadAsync(e).then(e=>e.file(t).async("string")).then(function(e){return e},function(e){return""})}getFilePassword(){return lo(this,void 0,void 0,function*(){const e=this.dialogService.open(L,{ariaModal:!0});return yield(0,Be.s)(e.closed)})}validateImport(){return lo(this,void 0,void 0,function*(){const e=this.formGroup.controls.targetSelector.value,t=(null==e?void 0:e.type)===qr.it.DefaultUserCollection;if(this.organization&&!t){if(!(yield this.dialogService.openSimpleDialog({title:{key:"warning"},content:{key:"importWarning",placeholders:[this.organization.name]},type:"warning"})))return!1}return!this.importBlockedByPolicy||null!=this.organizationId||(this.toastService.showToast({variant:"error",title:null,message:this.i18nService.t("personalOwnershipPolicyInEffectImports")}),!1)})}setImportContents(){return lo(this,void 0,void 0,function*(){const e=document.getElementById("import_input_file"),t=null==e?void 0:e.files;let i=this.formGroup.controls.fileContents.value;if(null!=t&&t.length>0)try{const e=yield this.getFileContents(t[0]);null!=e&&(i=e)}catch(n){this.logService.error(n)}return i})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}resolveReturnDestination(e){var t;if(!this.organizationId)return;const i={"access-intelligence":()=>({returnUrl:this.router.serializeUrl(this.router.createUrlTree(["/organizations",this.organizationId,"access-intelligence"],{queryParams:{source:"import",status:"success"}})),returnLabel:this.i18nService.t("goToAccessIntelligence")})};return null===(t=i[e])||void 0===t?void 0:t.call(i)}}Va.ɵfac=function(e){return new(e||Va)(d.rXU(te.W),d.rXU(fe.Tt),d.rXU(ne.y),d.rXU(J.m),d.rXU(ie.K),d.rXU(ts.H),d.rXU(Se.o),d.rXU(pe.k),d.rXU(Hr.PV),d.rXU(K.YD),d.rXU(D.ok),d.rXU(fe.H7,8),d.rXU(ao.f),d.rXU(q.D),d.rXU(ge.b),d.rXU(E.abz),d.rXU(fe.UN),d.rXU(S.Ix))},Va.ɵcmp=d.VBU({type:Va,selectors:[["tools-import"]],viewQuery:function(e,t){if(1&e&&d.GBs(X.L,5)(Ur,5),2&e){let e;d.mGM(e=d.lsd())&&(t.bitSubmit=e.first),d.mGM(e=d.lsd())&&(t.importKeeper=e.first)}},inputs:{organizationId:"organizationId",onLoadProfilesFromBrowser:"onLoadProfilesFromBrowser",onImportFromBrowser:"onImportFromBrowser",returnTo:[1,"returnTo"]},outputs:{formLoading:"formLoading",formDisabled:"formDisabled",onSuccessfulImport:"onSuccessfulImport"},features:[d.Jv_(be)],decls:52,vars:48,consts:[["kdbxFileSelector",""],["keyFileSelector",""],["fileSelector",""],["type","info",3,"title",4,"ngIf"],["id","import_form_importForm",3,"formGroup","bitSubmit"],["bitTypography","h6",1,"tw-font-medium"],[3,"hidden"],["formControlName","vaultSelector"],["value","myVault","icon","bwi-user",3,"label",4,"ngIf"],["icon","bwi-business",3,"value","label",4,"ngFor","ngForOf"],["disableMargin",""],["formControlName","targetSelector"],[4,"ngIf"],[1,"@2xl:tw-w-1/2"],["formControlName","format"],["value","",3,"label"],["value","-","disabled","",1,"tw-font-medium","tw-text-muted","tw-text-xs",3,"label"],[3,"value","label",4,"ngFor","ngForOf"],[3,"formGroup"],[3,"formGroup","onImportFromBrowser","onLoadProfilesFromBrowser","format"],["type","info",3,"title"],["value","myVault","icon","bwi-user",3,"label"],["icon","bwi-business",3,"value","label"],[3,"value","label"],["icon","bwi-folder",3,"value","label",4,"ngFor","ngForOf"],["icon","bwi-folder",3,"value","label"],[3,"value","label","icon",4,"ngFor","ngForOf"],[3,"value","label","icon"],["value","-","label","--------------------------------------","disabled",""],["bitLink","","linkType","primary","target","_blank","rel","noreferrer","href","https://bitwarden.com/help/export-your-data/"],["bitTypography","body1"],["bitLink","","linkType","primary","target","_blank","rel","noreferrer","href","https://bitwarden.com/help/import-from-lastpass/"],["formControlName","lastPassType",4,"ngIf"],["formControlName","lastPassType"],["id","import_bit-radio-button_lp-direct","value","direct",1,"tw-block"],["id","import_bit-radio-button_lp-csv","value","csv",1,"tw-block"],["bitLink","","linkType","primary","target","_blank","rel","noreferrer","href","https://bitwarden.com/help/import-from-keepass/","endIcon","bwi-external-link"],["bitLink","","linkType","primary","target","_blank","rel","noreferrer","endIcon","bwi-external-link","href","https://bitwarden.com/help/import-from-keeper/"],["bitLink","","linkType","primary","target","_blank","rel","noreferrer","href","https://bitwarden.com/help/import-from-chrome/"],["formControlName","chromiumLoader",3,"hidden"],["id","import_bit-radio-button_chrome-browser","value","chromium",1,"tw-block"],["id","import_bit-radio-button_chrome-file","value","file",1,"tw-block"],["bitLink","","linkType","primary","target","_blank","rel","noreferrer","href","https://bitwarden.com/help/import-from-firefox/"],["bitLink","","linkType","primary","target","_blank","rel","noreferrer","href","https://bitwarden.com/help/import-from-safari/"],["bitLink","","linkType","primary","target","_blank","rel","noreferrer","href","https://bitwarden.com/help/import-from-1password/"],["bitLink","","linkType","primary","target","_blank","rel","noreferrer","href","https://github.com/spookylukey/gnome-keyring-import-export"],[3,"csvDataLoaded","formGroup"],[3,"csvDataLoaded","error","formGroup","onImportFromBrowser","onLoadProfilesFromBrowser","format"],["bitInput","","type","password","id","import_input_kdbxPassword","formControlName","kdbxPassword","required","","appInputVerbatim",""],["type","button","bitSuffix","","bitIconButton","","bitPasswordInputToggle",""],["bitLink","","linkType","primary","type","button","startIcon","bwi-plus","id","import_button_addKeyFile",1,"tw-mb-6","tw-block"],[1,"file-selector","tw-pt-2","tw-pb-1","tw-break-words"],["bitButton","","type","button","buttonType","secondary",3,"click"],["bitInput","","type","file","id","import_input_file","formControlName","file","hidden","",1,"tw-hidden",3,"change"],["bitInput","","type","file","id","import_input_keyFile","hidden","",1,"tw-hidden",3,"change"],["bitLink","","linkType","primary","type","button","startIcon","bwi-plus","id","import_button_addKeyFile",1,"tw-mb-6","tw-block",3,"click"],[3,"importCompleted","formGroup"],["id","import_textarea_fileContents","bitInput","","formControlName","fileContents"]],template:function(e,t){1&e&&(d.DNE(0,co,4,6,"bit-callout",3),d.nI1(1,"async"),d.j41(2,"form",4)(3,"bit-section")(4,"bit-section-header")(5,"h2",5),d.EFF(6),d.nI1(7,"i18n"),d.k0s()(),d.j41(8,"bit-card")(9,"bit-form-field",6)(10,"bit-label"),d.EFF(11),d.nI1(12,"i18n"),d.k0s(),d.j41(13,"bit-select",7),d.DNE(14,uo,2,3,"bit-option",8)(15,ho,1,2,"bit-option",9),d.nI1(16,"async"),d.k0s()(),d.j41(17,"bit-form-field",10)(18,"bit-label"),d.EFF(19),d.nI1(20,"i18n"),d.nI1(21,"i18n"),d.k0s(),d.j41(22,"bit-select",11),d.DNE(23,po,5,8,"ng-container",12)(24,vo,5,8,"ng-container",12),d.k0s(),d.j41(25,"bit-hint"),d.EFF(26),d.nI1(27,"i18n"),d.nI1(28,"i18n"),d.k0s()()()(),d.j41(29,"bit-section")(30,"bit-section-header")(31,"h2",5),d.EFF(32),d.nI1(33,"i18n"),d.k0s()(),d.j41(34,"bit-card")(35,"bit-form-field",13)(36,"bit-label"),d.EFF(37),d.nI1(38,"i18n"),d.k0s(),d.j41(39,"bit-select",14),d.nrm(40,"bit-option",15),d.nI1(41,"i18n"),d.nrm(42,"bit-option",16),d.nI1(43,"i18n"),d.DNE(44,mo,1,2,"bit-option",17)(45,yo,3,1,"ng-container",12),d.k0s()(),d.DNE(46,Qa,61,63,"bit-callout",3),d.nVh(47,ka,1,1,"import-lastpass",18),d.nI1(48,"async"),d.vZN(49,Ra,1,4,"import-chrome",19)(50,Da,23,17)(51,xa,2,2),d.k0s()()()),2&e&&(d.Y8G("ngIf",d.bMT(1,22,t.isCardTypeRestricted$)),d.R7$(2),d.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit),d.R7$(4),d.JRh(d.bMT(7,24,"destination")),d.R7$(3),d.Y8G("hidden",t.isFromAC),d.R7$(2),d.JRh(d.bMT(12,26,"vault")),d.R7$(3),d.Y8G("ngIf",!t.importBlockedByPolicy),d.R7$(),d.Y8G("ngForOf",d.bMT(16,28,t.organizations$)),d.R7$(4),d.JRh(t.organizationId?d.bMT(20,30,"collection"):d.bMT(21,32,"folder")),d.R7$(4),d.Y8G("ngIf",!t.organizationId),d.R7$(),d.Y8G("ngIf",t.organizationId),d.R7$(2),d.JRh(t.organizationId?d.bMT(27,34,"importTargetHintCollection"):d.bMT(28,36,"importTargetHintFolder")),d.R7$(6),d.JRh(d.bMT(33,38,"data")),d.R7$(5),d.JRh(d.bMT(38,40,"fileFormat")),d.R7$(3),d.Y8G("label",d.VkB("-- ",d.bMT(41,42,"select")," --")),d.R7$(2),d.Y8G("label",d.mNQ(d.bMT(43,44,"commonImportFormats"))),d.R7$(2),d.Y8G("ngForOf",t.featuredImportOptions),d.R7$(),d.Y8G("ngIf",t.importOptions&&t.importOptions.length),d.R7$(),d.Y8G("ngIf",t.format),d.R7$(),d.vxM(t.showLastPassOptions?47:d.bMT(48,46,t.showChromiumOptions$)?49:"keepasskdbx"===t.format?50:51))},dependencies:[n.MD,n.Sq,n.bT,P.L,U.j,kr.I,Yn.W,O.J,N.h,j.e,Y.a,M.C,X.L,c.t,f.Q,x.Q,z.s,Re.p,Rr.w,Fr.P,Qe.j,jn.G,D.X1,D.qT,D.me,D.BC,D.cb,D.YS,D.j4,D.JD,hs,oo,Ur,Mn.K,zn.d,is.i,ns.U,rs.n,Pn.V,Xn.g,G.q,n.Jj,B.$Z],encapsulation:2})},55350(e,t,i){"use strict";i.d(t,{G:()=>g});var n=i(55766),r=i(14848),s=i(86204),o=i(78781),a=i(62627),l=i(81356),c=i(75751),d=i(11766),u=i(78078),h=i(16671),A=i(14093),p=i(86346);class g{constructor(){this.organizationId=null,this.logService=new a.V(!1),this.newLineRegex=/(?:\r\n|\r|\n)/,this.passwordFieldNames=["password","pass word","passphrase","pass phrase","pass","code","code word","codeword","secret","secret word","personpwd","key","keyword","key word","keyphrase","key phrase","form_pw","wppassword","pin","pwd","pw","pword","passwd","p","serial","serial#","license key","reg #","passwort"],this.usernameFieldNames=["user","name","user name","username","login name","email","e-mail","id","userid","user id","login","form_loginname","wpname","mail","loginid","login id","log","personlogin","first name","last name","card#","account #","member","member #","nom","benutzername"],this.notesFieldNames=["note","notes","comment","comments","memo","description","free form","freeform","free text","freetext","free","kommentar"],this.uriFieldNames=["url","hyper link","hyperlink","link","host","hostname","host name","server","address","hyper ref","href","web","website","web site","site","web-site","uri","ort","adresse"],this.parseCsvOptions={encoding:"UTF-8",skipEmptyLines:!1}}get organization(){return null!=this.organizationId}parseXml(e){if(!this.validateNoExternalEntities(e))return null;const t=(new DOMParser).parseFromString(e,"application/xml");return null!=t&&null==t.querySelector("parsererror")?t:null}parseCsv(e,t,i={}){const r=Object.assign({header:t},this.parseCsvOptions,i);e=this.splitNewLine(e).join("\n").trim();const s=n.parse(e,r);return null!=s.errors&&s.errors.length>0&&s.errors.forEach(e=>{null!=e.row&&this.logService.warning("Error parsing row "+e.row+": "+e.message)}),s.data&&s.data.length>0?s.data:null}parseSingleRowCsv(e){if(this.isNullOrWhitespace(e))return null;const t=this.parseCsv(e,!1);return null!=t&&t.length>0&&t[0].length>0?t[0]:null}makeUriArray(e){if(null==e)return null;if("string"==typeof e){const t=new h.z;return t.uri=this.fixUri(e),this.isNullOrWhitespace(t.uri)?null:[t]}if(e.length>0){const t=[];return e.forEach(e=>{const i=new h.z;i.uri=this.fixUri(e),this.isNullOrWhitespace(i.uri)||t.push(i)}),0===t.length?null:t}return null}fixUri(e){return null==e?null:(-1===(e=e.trim()).indexOf("://")&&e.indexOf(".")>=0&&(e="http://"+e),e.length>1e3?e.substring(0,1e3):e)}nameFromUrl(e){const t=o.A.getHostname(e);return this.isNullOrWhitespace(t)?null:t.startsWith("www.")?t.replace("www.",""):t}isNullOrWhitespace(e){return o.A.isNullOrWhitespace(e)}getValueOrDefault(e,t=null){return this.isNullOrWhitespace(e)?t:e}splitNewLine(e){return e.split(this.newLineRegex)}setCardExpiration(e,t){if(this.isNullOrWhitespace(t))return!1;t=t.replace(/\s/g,"");const i=new RegExp("^0?(?<month>[1-9]|1[0-2])/(?<year>(?:[1-2][0-9])?[0-9]{2})$"),n=t.match(i);if(!n)return!1;e.card.expMonth=n.groups.month;const r=n.groups.year;return e.card.expYear=(0,s.jd)(r),!0}moveFoldersToCollections(e){e.folderRelationships.forEach(t=>e.collectionRelationships.push(t)),e.collections=e.folders.map(e=>new r.iY({name:e.name,organizationId:this.organizationId,id:e.id&&""!==e.id?e.id:null})),e.folderRelationships=[],e.folders=[]}querySelectorDirectChild(e,t){const i=this.querySelectorAllDirectChild(e,t);return 0===i.length?null:i[0]}querySelectorAllDirectChild(e,t){return Array.from(e.querySelectorAll(t)).filter(t=>t.parentNode===e)}initLoginCipher(){const e=new c.f;return e.favorite=!1,e.notes="",e.fields=[],e.login=new A.r,e.type=l.gC.Login,e}cleanupCipher(e){null!=e&&(e.type!==l.gC.Login&&(e.login=null),this.isNullOrWhitespace(e.name)&&(e.name="--"),this.isNullOrWhitespace(e.notes)&&(e.notes=null))}processKvp(e,t,i,n=l.PU.Text){if(!this.isNullOrWhitespace(i))if(this.isNullOrWhitespace(t)&&(t=""),i.length>200||i.trim().search(this.newLineRegex)>-1)null==e.notes&&(e.notes=""),e.notes+=t+": "+this.splitNewLine(i).join("\n")+"\n";else{null==e.fields&&(e.fields=[]);const r=new d.g;r.type=n,r.name=t,r.value=i,e.fields.push(r)}}processFolder(e,t,i=!0){if(this.isNullOrWhitespace(t))return;let n=e.folders.length;t=t.replace(/\\/g,"/");let r=!0;for(let o=0;o<e.folders.length;o++)if(e.folders[o].name===t){r=!1,n=o;break}if(r){const i=new u.u;i.name=t,e.folders.push(i)}i&&e.folderRelationships.push([e.ciphers.length,n]);const s=t.split("/");for(let o=s.length-1;o>0;o--){const t=s.slice(0,o).join("/");if(null==e.folders.find(e=>e.name===t)){const i=new u.u;i.name=t,e.folders.push(i)}}}convertToNoteIfNeeded(e){e.type===l.gC.Login&&this.isNullOrWhitespace(e.login.username)&&this.isNullOrWhitespace(e.login.password)&&(null==e.login.uris||0===e.login.uris.length)&&(e.type=l.gC.SecureNote,e.secureNote=new p.Z,e.secureNote.type=l.ak.Generic)}processFullName(e,t){if(this.isNullOrWhitespace(t))return;const i=t.split(" ");i.length>0&&(e.identity.firstName=this.getValueOrDefault(i[0])),2===i.length?e.identity.lastName=this.getValueOrDefault(i[1]):i.length>=3&&(e.identity.middleName=this.getValueOrDefault(i[1]),e.identity.lastName=i.slice(2,i.length).join(" "))}validateNoExternalEntities(e){return!new RegExp("<!ENTITY","i").test(e)}}},89731(e,t,i){"use strict";i.d(t,{p:()=>s});var n=i(56026),r=i(55350);class s extends r.G{parse(e){const t=new n.h,i=this.parseCsv(e,!1);return null==i?(t.success=!1,Promise.resolve(t)):(i.forEach(e=>{if(e.length<6)return;this.processFolder(t,e[0]);const i=this.initLoginCipher(),n=this.getValueOrDefault(e[5]);if(n&&(i.notes=n.trimEnd()),i.name=this.getValueOrDefault(e[1],"--"),i.login.username=this.getValueOrDefault(e[2]),i.login.password=this.getValueOrDefault(e[3]),i.login.uris=this.makeUriArray(e[4]),e.length>7)for(let t=7;t<e.length;t+=2)"TFC:Keeper"==e[t]?i.login.totp=e[t+1]:this.processKvp(i,e[t],e[t+1]);this.cleanupCipher(i),t.ciphers.push(i)}),this.organization&&this.moveFoldersToCollections(t),t.success=!0,Promise.resolve(t))}}},7511(e,t,i){"use strict";i.d(t,{F:()=>u});var n=i(81356),r=i(92543),s=i(6528),o=i(11766),a=i(67036),l=i(6632),c=i(56026),d=i(55350);class u extends d.G{constructor(){super(...arguments),this.references=new Map,this.idToCipher=new Map}parse(e){var t;const i=new c.h,n=JSON.parse(e);return(null===(t=null==n?void 0:n.records)||void 0===t?void 0:t.length)?(this.parseSharedFolders(n,i),this.parseRecords(n,i),this.resolveReferences(),this.organization&&this.moveFoldersToCollections(i),i.success=!0,Promise.resolve(i)):(i.success=!1,Promise.resolve(i))}parseSharedFolders(e,t){e.shared_folders&&e.shared_folders.forEach(e=>{var i;this.processFolder(t,this.sanitizeFolderName(null!==(i=e.path)&&void 0!==i?i:""),!1)})}parseRecords(e,t){e.records.forEach(e=>{this.parseFolders(t,e);const i=this.initLoginCipher();switch(i.name=this.getValueOrDefault(e.title),i.notes=this.getValueOrDefault(e.notes),i.login.username=this.getValueOrDefault(e.login),i.login.password=this.getValueOrDefault(e.password),i.login.uris=this.makeUriArray(e.login_url),e.$type){case"bankCard":this.importBankCard(e,i);break;case"driverLicense":this.importDriverLicense(e,i);break;case"ssnCard":this.importSsnCard(e,i);break;case"passport":this.importPassport(e,i);break;case"sshKeys":this.importSshKey(e,i)||(i.type=n.gC.SecureNote,this.addField(i,"Passphrase",i.login.password,r.P.Hidden))}if(e.custom_fields&&this.importCustomFields(e.custom_fields,i),e.uid&&e.references){const t=[];for(const[i,n]of Object.entries(e.references)){let[e]=this.parseFieldKey(i);e.endsWith("Ref")&&(e=e.substring(0,e.length-3)),t.push(...this.makeArray(n).map(t=>({id:t,type:e})))}t.length>0&&this.references.set(e.uid,t)}this.convertToNoteIfNeeded(i),this.cleanupCipher(i),t.ciphers.push(i),e.uid&&this.idToCipher.set(e.uid,i)})}resolveReferences(){var e;for(const[t,i]of this.references){const n=this.idToCipher.get(t);if(n)for(const{id:t,type:r}of i){const i=this.idToCipher.get(t);if(!i)continue;const s=(null===(e=this.findFieldByName(i,r))||void 0===e?void 0:e.value)||"";s&&this.addField(n,r,s)}}}findFieldByName(e,t){return e.fields.find(e=>e.name===t)||null}importBankCard(e,t){t.type=n.gC.Card,t.card.cardholderName=this.findCustomField(e.custom_fields,"$text:cardholderName"),t.card.number=this.findCustomField(e.custom_fields,"$paymentCard/cardNumber"),t.card.code=this.findCustomField(e.custom_fields,"$paymentCard/cardSecurityCode"),t.card.brand=s.G.getCardBrandByPatterns(t.card.number);const i=this.findCustomField(e.custom_fields,"$paymentCard/cardExpirationDate");if(i){const e=i.split("/");2===e.length?(t.card.expMonth=e[0],t.card.expYear=e[1]):this.addField(t,"Expiration date",i)}const o=this.findCustomField(e.custom_fields,"$pinCode");o&&this.addField(t,"PIN",o,r.P.Hidden),this.copyLoginPropertiesAsCustomFields(t),this.deleteTopLevelCustomField(e.custom_fields,"$paymentCard"),this.deleteTopLevelCustomField(e.custom_fields,"$text:cardholderName"),this.deleteTopLevelCustomField(e.custom_fields,"$pinCode")}importSshKey(e,t){const i=this.findCustomField(e.custom_fields,"$keyPair/privateKey");if(!i)return!1;let r=null;try{r=(0,l.import_ssh_key)(i,t.login.password)}catch(a){return this.logService.warning(`Unable to import SSH key (id: ${e.uid}, title: ${e.title})`),!1}if(!r)return!1;t.type=n.gC.SshKey,t.sshKey.privateKey=r.privateKey,t.sshKey.publicKey=r.publicKey,t.sshKey.keyFingerprint=r.fingerprint,this.copyLoginPropertiesAsCustomFields(t);const s=this.findCustomField(e.custom_fields,"$host/hostName");s&&this.addField(t,"Hostname",s);const o=this.findCustomField(e.custom_fields,"$host/port");return o&&this.addField(t,"Port",o),this.deleteTopLevelCustomField(e.custom_fields,"$keyPair"),this.deleteTopLevelCustomField(e.custom_fields,"$host"),!0}importDriverLicense(e,t){t.type=n.gC.Identity,t.identity=new a.O,t.identity.licenseNumber=this.findCustomField(e.custom_fields,"$accountNumber:dlNumber"),this.importIdentityName(e,t),this.copyLoginPropertiesAsCustomFields(t),this.deleteTopLevelCustomField(e.custom_fields,"$accountNumber:dlNumber")}importSsnCard(e,t){t.type=n.gC.Identity,t.identity=new a.O,t.identity.ssn=this.findCustomField(e.custom_fields,"$accountNumber:identityNumber"),this.importIdentityName(e,t),this.copyLoginPropertiesAsCustomFields(t),this.deleteTopLevelCustomField(e.custom_fields,"$accountNumber:identityNumber")}importPassport(e,t){t.type=n.gC.Identity,t.identity=new a.O,t.identity.passportNumber=this.findCustomField(e.custom_fields,"$accountNumber:passportNumber"),this.importIdentityName(e,t),this.copyLoginPropertiesAsCustomFields(t),this.deleteTopLevelCustomField(e.custom_fields,"$accountNumber:passportNumber")}importIdentityName(e,t){t.identity.firstName=this.findCustomField(e.custom_fields,"$name/first"),t.identity.middleName=this.findCustomField(e.custom_fields,"$name/middle"),t.identity.lastName=this.findCustomField(e.custom_fields,"$name/last"),this.deleteTopLevelCustomField(e.custom_fields,"$name")}copyLoginPropertiesAsCustomFields(e){this.isNullOrWhitespace(e.login.username)||(this.addField(e,"Username",e.login.username),e.login.username=void 0),this.isNullOrWhitespace(e.login.password)||(this.addField(e,"Password",e.login.password,r.P.Hidden),e.login.password=void 0),e.login.uris&&(e.login.uris.forEach((t,i)=>{this.addField(e,"URL",t.uri)}),e.login.uris=[])}findCustomField(e,t){if(null==e)return"";let i=e;for(const n of t.split("/")){const e=Object.keys(i);if(0===e.length)return"";const t=e.find(e=>e.replace(/:?:\d$/,"")===n);if(!t||null==i[t])return"";i=i[t]}return i.toString()}deleteTopLevelCustomField(e,t){if(null==e)return;const i=Object.keys(e).find(e=>e.replace(/:?:\d$/,"")===t);i&&delete e[i]}importCustomFields(e,t){for(const[i,n]of Object.entries(e)){const[e,r]=this.parseFieldKey(i);if(this.tryImportArrayField(e,n,t))continue;const s=r||e||i,o=this.makeArray(n);for(const i of o)this.tryImportExpandingField(e,i,t)||this.importSingleField(e,s,i,t)}}tryImportArrayField(e,t,i){switch(e){case"oneTimeCode":{const e=this.makeArray(t);if(0===e.length)break;i.type===n.gC.Login&&(i.login.totp=e[0],e.shift()),e.forEach(e=>{this.addField(i,"TOTP",e,r.P.Hidden)})}break;case"url":{const e=this.makeUriArray(t);i.type===n.gC.Login?i.login.uris.push(...e):e.forEach(e=>{this.addField(i,"URL",e.uri)})}break;default:return!1}return!0}tryImportExpandingField(e,t,i){switch(e){case"host":{const{hostName:e,port:n}=t;this.addField(i,"Hostname",e),this.addField(i,"Port",n)}break;case"keyPair":{const{publicKey:e,privateKey:n}=t;this.addField(i,"Public key",e),this.addField(i,"Private key",n,r.P.Hidden)}break;case"securityQuestion":for(const{question:e,answer:n}of this.makeArray(t))this.addField(i,"Security question",e),this.addField(i,"Security question answer",n,r.P.Hidden);break;case"appFiller":break;default:return!1}return!0}importSingleField(e,t,i,n){let s=this.convertToFieldValue(i),o=r.P.Text;switch(e){case"date":case"birthDate":case"expirationDate":s=this.parseDate(i);break;case"name":{const{first:e,middle:t,last:n}=i;s=[e,t,n].filter(e=>e).join(" ").trim()}break;case"address":{const{street1:e,street2:t,city:n,state:r,zip:o,country:a}=i;s=[e,t,n,r,o,a].filter(e=>e).join(", ").trim()}break;case"phone":{const{region:e,number:t,ext:n,type:r}=i,o=[];e&&o.push(`(${e})`),t&&o.push(t),n&&o.push(`ext. ${n}`),r&&o.push(`(${r})`),s=o.join(" ").trim()}break;case"bankAccount":{const{accountType:e,otherType:t,accountNumber:n,routingNumber:r}=i,o=[],a=t||e;a&&o.push(`Type: ${a}`),n&&o.push(`Account Number: ${n}`),r&&o.push(`Routing Number: ${r}`),s=o.join(", ").trim()}break;case"pinCode":case"secret":o=r.P.Hidden}this.addField(n,t,s,o)}parseDate(e){const t=new Date(e);return isNaN(t.getTime())?"":t.toLocaleString()}parseFieldKey(e){if(this.isNullOrWhitespace(e))return["",""];let t="",i="";if("$"===e[0]){const n=e.indexOf(":");n>0?(t=e.substring(1,n).trim(),i=e.substring(n+1).trim()):(t=e.substring(1).trim(),i="")}else t="",i=e;return i.length>=2&&":"===i[i.length-2]&&/\d/.test(i[i.length-1])&&(i=i.substring(0,i.length-2)),[t,i]}addField(e,t,i,n=r.P.Text){if(!i)return;const s=new o.g;s.type=n,s.name=t,s.value=this.convertToFieldValue(i),e.fields.push(s)}convertToFieldValue(e){if("string"==typeof e)return e;try{return JSON.stringify(e)}catch(t){}return""}makeArray(e){return Array.isArray(e)?e:null!=e?[e]:[]}parseFolders(e,t){t.folders&&t.folders.forEach(t=>{null!=t.folder&&this.processFolder(e,this.sanitizeFolderName(t.folder)),null!=t.shared_folder&&this.processFolder(e,this.sanitizeFolderName(t.shared_folder))})}sanitizeFolderName(e){return e.replaceAll("\\\\","-").replaceAll("/","-")}}},83586(e,t,i){"use strict";i.d(t,{qi:()=>c,wP:()=>o,aH:()=>s,Dt:()=>a});var n=i(2738),r=i(78991);const s=Object.freeze({file:"file",chromium:"chromium",ipc:"ipc",download:"download"}),o=Object.freeze({unique:"unique",chromium:"chromium"}),a=(0,r.ol)({[s.chromium]:[n.s.Desktop],[s.download]:[n.s.Browser],[s.file]:[n.s.Browser,n.s.Desktop,n.s.Web,n.s.Cli],[s.ipc]:[]}),l=[{id:"bitwardenjson",loaders:[s.file],instructions:o.unique},{id:"chromecsv",loaders:[s.file],instructions:o.chromium},{id:"operacsv",loaders:[s.file],instructions:o.chromium},{id:"vivaldicsv",loaders:[s.file],instructions:o.chromium},{id:"bravecsv",loaders:[s.file],instructions:o.chromium},{id:"edgecsv",loaders:[s.file],instructions:o.chromium}],c=(0,r.ol)(Object.fromEntries(l.map(e=>[e.id,e])))},56026(e,t,i){"use strict";i.d(t,{h:()=>n});class n{constructor(){this.success=!1,this.ciphers=[],this.folders=[],this.folderRelationships=[],this.collections=[],this.collectionRelationships=[]}}},74043(e,t,i){"use strict";i.d(t,{M:()=>r.M8,h:()=>n.h});var n=i(56026),r=i(1648)},1648(e,t,i){"use strict";i.d(t,{M8:()=>n,U9:()=>A});const n=Object.freeze({none:"none",password:"password",passwordWithKeyFile:"passwordWithKeyFile"});var r=i(66523),s=i(6632),o=i(81356);function a(e){switch(e){case o.gC.Login:return s.CipherType.Login;case o.gC.SecureNote:return s.CipherType.SecureNote;case o.gC.Card:return s.CipherType.Card;case o.gC.Identity:return s.CipherType.Identity;case o.gC.SshKey:return s.CipherType.SshKey;case o.gC.BankAccount:return s.CipherType.BankAccount;case o.gC.DriversLicense:return s.CipherType.DriversLicense;case o.gC.Passport:return s.CipherType.Passport}}var l=i(14848),c=i(78078);var d=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class u{constructor(){this.credentialKind=n.passwordWithKeyFile,this.fileTypeHint=".kdbx"}import(e,t,i,n){return d(this,void 0,void 0,function*(){var s;if("passwordWithKeyFile"!==i.kind)throw new Error("KeePass import requires a password and optional key file.");const{folder:o,collection:d}=function(e){const{organizationId:t,selectedImportTarget:i}=e;return{folder:!t&&i instanceof c.u?i:void 0,collection:t&&i instanceof l.iY?i:void 0}}(n),u={organization_id:n.organizationId?(0,r.WD)(n.organizationId):void 0,target_folder:o?{id:(0,r.WD)(o.id),name:o.name}:void 0,target_collection:d?{id:(0,r.WD)(d.id),name:d.name}:void 0,restricted_types:n.restrictedTypes.map(a)};return yield e.importers().import_kdbx(t,i.password,null!==(s=i.keyFile)&&void 0!==s?s:void 0,u)})}errorMessageKey(e){if((0,s.isImportError)(e))switch(e.variant){case"KdbxWrongCredentials":return"invalidFilePassword";case"KdbxInvalidFormat":return"kdbxWrongFileType";case"KdbxCorruptOrUnsupported":return"kdbxCorruptOrOutdated";case"KdbxFileTooLarge":return"kdbxFileTooLarge";default:return}}}class h{constructor(){this.factories=new Map,this.instances=new Map}register(e,t){this.factories.set(e,t)}has(e){return this.factories.has(e)}get(e){var t;const i=this.instances.get(e);if(null!=i)return i;const n=null===(t=this.factories.get(e))||void 0===t?void 0:t();return null!=n&&this.instances.set(e,n),n}}function A(){const e=new h;return e.register("keepasskdbx",()=>new u),e}},69196(e,t,i){"use strict";i.d(t,{bf:()=>Xt,Bd:()=>s,RI:()=>n,H7:()=>zt,UN:()=>Nt,XM:()=>Ot,Tt:()=>o});class n{}var r=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class s{constructor(e){this.apiService=e}postImportCiphers(e){return r(this,void 0,void 0,function*(){return yield this.apiService.send("POST","/ciphers/import",e,!0,!1)})}postImportOrganizationCiphers(e,t){return r(this,void 0,void 0,function*(){return yield this.apiService.send("POST","/ciphers/import-organization?organizationId="+e,t,!0,!1)})}}class o{}var a=i(68108),l=i(69783),c=i(191),d=i(21571),u=i(14848),h=i(3633);class A{constructor(){this.ciphers=[],this.folders=[],this.folderRelationships=[]}}class p{constructor(){this.ciphers=[],this.collections=[],this.collectionRelationships=[],this.folders=[],this.folderRelationships=[]}}class g{constructor(e,t){this.key=e,this.value=t}}var v=i(7861),m=i(78781),f=i(81356),y=i(45113),b=i(52793);class C extends b.O{constructor(e){super(e),this.id=e.id||void 0}}var I=i(78078),w=i(56026),B=i(55350);class E extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!0);return null==i?(t.success=!1,Promise.resolve(t)):(i.forEach(e=>{var i;const n=this.initLoginCipher(),r=this.getValueOrDefault(e.url);n.name=this.getValueOrDefault(null!==(i=this.nameFromUrl(r))&&void 0!==i?i:"","--"),n.login.username=this.getValueOrDefault(e.username),n.login.password=this.getValueOrDefault(e.password),n.login.uris=this.makeUriArray(e.url),n.notes=this.getValueOrDefault(e.note),this.cleanupCipher(n),t.ciphers.push(n)}),t.success=!0,Promise.resolve(t))}}class S extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!1);return null==i?(t.success=!1,Promise.resolve(t)):(i.forEach(e=>{if(e.length<2)return;const i=this.initLoginCipher();if(i.notes=this.getValueOrDefault(e[e.length-1]),i.name=this.getValueOrDefault(e[0],"--"),e.length>2&&e.length%2==0)for(let t=0;t<e.length-2;t+=2){const n=e[t+2],r=e[t+1];if(this.isNullOrWhitespace(n)||this.isNullOrWhitespace(r))continue;const s=r.toLowerCase();null==i.login.password&&this.passwordFieldNames.indexOf(s)>-1?i.login.password=this.getValueOrDefault(n):null==i.login.username&&this.usernameFieldNames.indexOf(s)>-1?i.login.username=this.getValueOrDefault(n):(null==i.login.uris||0===i.login.uris.length)&&this.uriFieldNames.indexOf(s)>-1?i.login.uris=this.makeUriArray(n):this.processKvp(i,r,n)}this.convertToNoteIfNeeded(i),this.cleanupCipher(i),t.ciphers.push(i)}),t.success=!0,Promise.resolve(t))}}class Q extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!0);return null==i?(t.success=!1,Promise.resolve(t)):(i.forEach(e=>{const i=this.initLoginCipher();i.name=this.getValueOrDefault(e.name),i.login.uris=this.makeUriArray(e.web),i.login.password=this.getValueOrDefault(e.password),i.login.username=this.getValueOrDefault(e.login),this.cleanupCipher(i),t.ciphers.push(i)}),t.success=!0,Promise.resolve(t))}}var k=i(6528);class R extends B.G{parse(e){const t=new w.h,i=JSON.parse(e);return null==i?(t.success=!1,Promise.resolve(t)):(null!=i.logins&&i.logins.forEach(e=>{const i=this.initLoginCipher();i.name=this.getValueOrDefault(e.custName),i.notes=this.getValueOrDefault(e.note),i.login.uris=this.makeUriArray(e.url),i.login.password=this.getValueOrDefault(e.pwd),i.login.username=this.getValueOrDefault(e.loginName),this.cleanupCipher(i),t.ciphers.push(i)}),null!=i.notes&&i.notes.forEach(e=>{const i=this.initLoginCipher();i.type=f.gC.SecureNote,i.secureNote.type=f.ak.Generic,i.name=this.getValueOrDefault(e.label),i.notes=this.getValueOrDefault(e.text),this.cleanupCipher(i),t.ciphers.push(i)}),null!=i.cards&&i.cards.forEach(e=>{const i=this.initLoginCipher();i.type=f.gC.Card,i.name=this.getValueOrDefault(e.custName),i.notes=this.getValueOrDefault(e.note),i.card.cardholderName=this.getValueOrDefault(e.holderName),i.card.number=this.getValueOrDefault(e.cardNumber),i.card.code=this.getValueOrDefault(e.cvv),i.card.brand=k.G.getCardBrandByPatterns(i.card.number),null!=e.expirationDate&&(null!=e.expirationDate.month&&(i.card.expMonth=e.expirationDate.month+""),null!=e.expirationDate.year&&(i.card.expYear=e.expirationDate.year+"")),this.cleanupCipher(i),t.ciphers.push(i)}),t.success=!0,Promise.resolve(t))}}class F extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!0);return null==i?(t.success=!1,Promise.resolve(t)):(i.forEach(e=>{const i=this.initLoginCipher();i.name=this.getValueOrDefault(e.name,this.getValueOrDefault(this.nameFromUrl(e.website),"--")),i.login.uris=this.makeUriArray(e.website),i.login.password=this.getValueOrDefault(e.password),this.isNullOrWhitespace(e.username)&&!this.isNullOrWhitespace(e.secondary_username)?i.login.username=e.secondary_username:(i.login.username=this.getValueOrDefault(e.username),i.notes=this.getValueOrDefault(e.secondary_username)),this.cleanupCipher(i),t.ciphers.push(i)}),t.success=!0,Promise.resolve(t))}}class T extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!0);return null==i?(t.success=!1,Promise.resolve(t)):(i.forEach(e=>{if("list"===e.grouping)return;const i=this.initLoginCipher();i.favorite="1"===e.fav,i.name=this.getValueOrDefault(e.name),i.notes=this.getValueOrDefault(e.extra),"note"!==e.grouping&&(i.login.uris=this.makeUriArray(e.url),i.login.password=this.getValueOrDefault(e.password),i.login.username=this.getValueOrDefault(e.username)),this.convertToNoteIfNeeded(i),this.cleanupCipher(i),t.ciphers.push(i)}),t.success=!0,Promise.resolve(t))}}class D extends B.G{constructor(){super(...arguments),this.androidPatternRegex=new RegExp("^android:\\/\\/.*(?<=@)(.*)(?=\\/)")}normalizeAndroidUrl(e){const t=null==e?void 0:e.match(this.androidPatternRegex);return t?`androidapp://${t[1]}`:e}parse(e){const t=new w.h,i=this.parseCsv(e,!0);return null==i?(t.success=!1,Promise.resolve(t)):(i.forEach(e=>{const i=this.initLoginCipher(),n=this.normalizeAndroidUrl(e.url);let r=e.name;!r&&this.androidPatternRegex.test(e.url)&&(r=e.url.match(this.androidPatternRegex)[1]),i.name=this.getValueOrDefault(r,"--"),i.login.username=this.getValueOrDefault(e.username),i.login.password=this.getValueOrDefault(e.password),i.login.uris=this.makeUriArray(n),i.notes=this.getValueOrDefault(e.note),this.cleanupCipher(i),t.ciphers.push(i)}),t.success=!0,Promise.resolve(t))}}var P=i(36501),M=i(75751),x=i(11766),V=i(14093),G=i(86346);class U extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!0);return null==i?(t.success=!1,Promise.resolve(t)):(i.forEach(e=>{if(this.organization&&!this.isNullOrWhitespace(e.collections)){e.collections.split(",").forEach(e=>{this.processFolder(t,e)})}else this.organization||this.processFolder(t,e.folder);const i=new M.f;i.favorite=!this.organization&&"0"!==this.getValueOrDefault(e.favorite,"0"),i.type=f.gC.Login,i.notes=this.getValueOrDefault(e.notes),i.name=this.getValueOrDefault(e.name,"--");try{i.reprompt=parseInt(this.getValueOrDefault(e.reprompt,P.b.None.toString()),10)}catch(n){console.error("Unable to parse reprompt value",n),i.reprompt=P.b.None}if(!this.isNullOrWhitespace(e.archivedDate))try{i.archivedDate=new Date(e.archivedDate)}catch(n){console.error("Unable to parse archivedDate value",n)}if(!this.isNullOrWhitespace(e.fields)){const t=this.splitNewLine(e.fields);for(let e=0;e<t.length;e++){if(this.isNullOrWhitespace(t[e]))continue;const n=t[e].lastIndexOf(": ");if(-1===n)continue;null==i.fields&&(i.fields=[]);const r=new x.g;r.name=t[e].substr(0,n),r.value=null,r.type=f.PU.Text,t[e].length>n+2&&(r.value=t[e].substr(n+2)),i.fields.push(r)}}switch(null!=e.type?e.type.toLowerCase():null){case"note":i.type=f.gC.SecureNote,i.secureNote=new G.Z,i.secureNote.type=f.ak.Generic;break;default:{i.type=f.gC.Login,i.login=new V.r,i.login.totp=this.getValueOrDefault(e.login_totp||e.totp),i.login.username=this.getValueOrDefault(e.login_username||e.username),i.login.password=this.getValueOrDefault(e.login_password||e.password);const t=this.parseSingleRowCsv(e.login_uri||e.uri);i.login.uris=this.makeUriArray(t);break}}t.ciphers.push(i)}),this.organization&&this.moveFoldersToCollections(t),t.success=!0,Promise.resolve(t))}}var O=i(9715),N=i(87673),j=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Y extends B.G{constructor(){super()}parse(e){return j(this,void 0,void 0,function*(){const t=JSON.parse(e);if(null==t||null==t.items){const e=new w.h;return e.success=!1,e}if(!(0,N.oK)(t))throw new Error("Data is encrypted. Use BitwardenEncryptedJsonImporter instead.");return yield this.parseDecrypted(t)})}parseDecrypted(e){return j(this,void 0,void 0,function*(){const t=new w.h,i=(0,N.SX)(e)?yield this.parseCollections(e,t):yield this.parseFolders(e,t);return e.items.forEach(e=>{const n=O.pU.toView(e);n.id=null,n.organizationId=null,n.collectionIds=null,n.key=null,null!=n.passwordHistory&&n.passwordHistory.length>5&&(n.passwordHistory=n.passwordHistory.slice(0,5)),!this.organization&&null!=e.folderId&&i.has(e.folderId)?t.folderRelationships.push([t.ciphers.length,i.get(e.folderId)]):this.organization&&null!=e.collectionIds&&e.collectionIds.forEach(e=>{i.has(e)&&t.collectionRelationships.push([t.ciphers.length,i.get(e)])}),this.cleanupCipher(n),t.ciphers.push(n)}),t.success=!0,t})}parseFolders(e,t){return j(this,void 0,void 0,function*(){const i=new Map;if(null==e.folders)return i;for(const n of e.folders){const e=O.wG.toView(n);null!=e&&(i.set(n.id,t.folders.length),t.folders.push(e))}return i})}parseCollections(e,t){return j(this,void 0,void 0,function*(){const i=new Map;if(null==e.collections)return i;for(const n of e.collections){const e=O.MA.toView(n);e.organizationId=null,null!=e&&(i.set(n.id,t.collections.length),t.collections.push(e))}return i})}}var X=i(39306),z=i(8916),L=i(68711),W=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class K extends Y{constructor(e,t,i,n,r){super(),this.keyService=e,this.encryptService=t,this.i18nService=i,this.cipherService=n,this.accountService=r}parse(e){const t=Object.create(null,{parse:{get:()=>super.parse}});return W(this,void 0,void 0,function*(){const i=JSON.parse(e);if((0,N.og)(i))throw new Error("Data is password-protected. Use BitwardenPasswordProtectedImporter instead.");if(null==i||null==i.items){const e=new w.h;return e.success=!1,e}return(0,N.oK)(i)?t.parse.call(this,e):yield this.parseEncrypted(i)})}parseEncrypted(e){return W(this,void 0,void 0,function*(){const t=new w.h,i=yield(0,a._)(this.accountService.activeAccount$);if(this.isNullOrWhitespace(e.encKeyValidation_DO_NOT_EDIT))return t.success=!1,t.errorMessage=this.i18nService.t("importEncKeyError"),t;const n=yield(0,a._)(this.keyService.orgKeys$(i.id));let r=null==n?void 0:n[this.organizationId];if(r||(r=yield(0,a._)(this.keyService.userKey$(i.id))),!r)return t.success=!1,t.errorMessage=this.i18nService.t("importEncKeyError"),t;const s=new X.k(e.encKeyValidation_DO_NOT_EDIT);try{yield this.encryptService.decryptString(s,r)}catch(l){return t.success=!1,t.errorMessage=this.i18nService.t("importEncKeyError"),t}let o=null;o=(0,N.TS)(e)?yield this.parseEncryptedCollections(i.id,e,t):yield this.parseEncryptedFolders(i.id,e,t);for(const a of e.items){const e=O.pU.toDomain(a);e.id=null,e.organizationId=this.organizationId,e.collectionIds=null,null!=e.passwordHistory&&e.passwordHistory.length>5&&(e.passwordHistory=e.passwordHistory.slice(0,5)),!this.organization&&null!=a.folderId&&o.has(a.folderId)?t.folderRelationships.push([t.ciphers.length,o.get(a.folderId)]):this.organization&&null!=a.collectionIds&&a.collectionIds.forEach(e=>{o.has(e)&&t.collectionRelationships.push([t.ciphers.length,o.get(e)])});const n=yield this.cipherService.decrypt(e,i.id);this.cleanupCipher(n),t.ciphers.push(n)}return t.success=!0,t})}parseEncryptedFolders(e,t,i){return W(this,void 0,void 0,function*(){const n=new Map;if(null==t.folders)return n;const r=yield(0,a._)(this.keyService.userKey$(e));for(const e of t.folders){let t;const s=O.wG.toDomain(e);null!=s&&(t=yield s.decrypt(r)),null!=t&&(n.set(e.id,i.folders.length),i.folders.push(t))}return n})}parseEncryptedCollections(e,t,i){return W(this,void 0,void 0,function*(){const n=new Map;if(null==t.collections)return n;const r=yield(0,a._)(this.keyService.orgKeys$(e).pipe((0,L.p)(e=>null!=e)));for(const e of t.collections){const t=O.MA.toDomain(e,new u.pM({id:e.id,name:new X.k(e.name),organizationId:this.organizationId})),s=r[e.organizationId],o=yield t.decrypt(s,this.encryptService);null!=o&&(n.set(e.id,i.collections.length),i.collections.push(o))}return n})}}var Z=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class H extends K{constructor(e,t,i,n,r,s,o){super(e,t,i,n,s),this.keyGenerationService=r,this.promptForPassword_callback=o}parse(e){const t=Object.create(null,{parse:{get:()=>super.parse}});return Z(this,void 0,void 0,function*(){const i=new w.h,n=JSON.parse(e);if(!n)return i.success=!1,i;if(!(0,N.og)(n))return yield t.parse.call(this,e);if(this.cannotParseFile(n))return i.success=!1,i;const r=yield this.promptForPassword_callback();if(!(yield this.checkPassword(n,r)))return i.success=!1,i.errorMessage=this.i18nService.t("invalidFilePassword"),i;const s=new X.k(n.data),o=yield this.encryptService.decryptString(s,this.key);return yield t.parse.call(this,o)})}checkPassword(e,t){return Z(this,void 0,void 0,function*(){if(this.isNullOrWhitespace(t))return!1;const i=e.kdfType===z.ao.PBKDF2_SHA256?new z.n1(e.kdfIterations):new z.hU(e.kdfIterations,e.kdfMemory,e.kdfParallelism);this.key=yield this.keyGenerationService.deriveVaultExportKey(t,e.salt,i);const n=new X.k(e.encKeyValidation_DO_NOT_EDIT);try{return yield this.encryptService.decryptString(n,this.key),!0}catch(r){return!1}})}cannotParseFile(e){return!(e&&e.encrypted&&e.passwordProtected&&e.salt&&e.kdfIterations&&"number"==typeof e.kdfIterations&&null!=e.kdfType&&null!=z.ao[e.kdfType]&&e.encKeyValidation_DO_NOT_EDIT&&e.data)}}class J extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!0);return null==i?(t.success=!1,Promise.resolve(t)):(i.forEach(e=>{"null"===e.label&&(e.label=null);const i=this.initLoginCipher();i.name=this.getValueOrDefault(e.label,this.getValueOrDefault(this.nameFromUrl(e.domain),"--")),i.login.uris=this.makeUriArray(e.domain),i.login.password=this.getValueOrDefault(e.password),this.isNullOrWhitespace(e.email)&&!this.isNullOrWhitespace(e.username)?i.login.username=e.username:(i.login.username=this.getValueOrDefault(e.email),i.notes=this.getValueOrDefault(e.username)),this.cleanupCipher(i),t.ciphers.push(i)}),t.success=!0,Promise.resolve(t))}}const q=["!group_id","!group_name","!type","title","username","password","URL","url","note","id"];class $ extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!0);return null==i?(t.success=!1,Promise.resolve(t)):(i.forEach(e=>{this.processFolder(t,this.getValueOrDefault(e["!group_name"]));const i=this.initLoginCipher();i.name=this.getValueOrDefault(e.title,"--"),i.login.username=this.getValueOrDefault(e.username),i.login.password=this.getValueOrDefault(e.password);const n=e.URL||e.url||e.Url;i.login.uris=this.makeUriArray(n);const r=e.note||e.Note||e.notes||e.Notes;r&&(i.notes=r);for(const t in e)if(e.hasOwnProperty(t)){const n=t.toLowerCase();!q.some(e=>e.toLowerCase()===n)&&e[t]&&this.processKvp(i,t,e[t])}this.cleanupCipher(i),t.ciphers.push(i)}),this.organization&&this.moveFoldersToCollections(t),t.success=!0,Promise.resolve(t))}}class _ extends B.G{parse(e){const t=new w.h,i=this.parseXml(e);if(null==i)return t.success=!1,Promise.resolve(t);const n=i.querySelector("textarea");if(null==n||this.isNullOrWhitespace(n.textContent))return t.errorMessage="Missing textarea.",t.success=!1,Promise.resolve(t);return JSON.parse(n.textContent).forEach(e=>{const i=this.initLoginCipher();if(this.isNullOrWhitespace(e.label)||(i.name=e.label.split(" ")[0]),null==e.data||this.isNullOrWhitespace(e.data.notes)||(i.notes=e.data.notes.split("\\n").join("\n")),null!=e.currentVersion&&null!=e.currentVersion.fields)for(const t in e.currentVersion.fields){if(!e.currentVersion.fields.hasOwnProperty(t))continue;const n=e.currentVersion.fields[t];switch(null!=n.actionType?n.actionType.toLowerCase():null){case"password":i.login.password=this.getValueOrDefault(n.value);break;case"email":case"username":case"user":case"name":i.login.username=this.getValueOrDefault(n.value);break;case"url":i.login.uris=this.makeUriArray(n.value);break;default:{const e=null!=n.label?n.label.toLowerCase():null;null==i.login.password&&this.passwordFieldNames.indexOf(e)>-1?i.login.password=this.getValueOrDefault(n.value):null==i.login.username&&this.usernameFieldNames.indexOf(e)>-1?i.login.username=this.getValueOrDefault(n.value):(null==i.login.uris||0===i.login.uris.length)&&this.uriFieldNames.indexOf(e)>-1?i.login.uris=this.makeUriArray(n.value):this.processKvp(i,n.label,n.value);break}}}this.convertToNoteIfNeeded(i),this.cleanupCipher(i),t.ciphers.push(i)}),t.success=!0,Promise.resolve(t)}}class ee extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!0);return null==i?(t.success=!1,Promise.resolve(t)):(i.forEach(e=>{this.processFolder(t,this.getValueOrDefault(e.Category));const i=this.initLoginCipher();i.favorite="True"===this.getValueOrDefault(e.Favorite),i.name=this.getValueOrDefault(e.Entry,"--"),i.notes=this.getValueOrDefault(e.Note),i.login.username=this.getValueOrDefault(e.Username,e.Email),i.login.password=this.getValueOrDefault(e.Password),i.login.totp=this.getValueOrDefault(e.TOTP),i.login.uris=this.makeUriArray(e.Website),this.isNullOrWhitespace(e.Username)||this.processKvp(i,"Email",e.Email),this.processKvp(i,"Phone",e.Phone),this.processKvp(i,"PIN",e.PIN),this.processKvp(i,"Account",e.Account),this.processKvp(i,"Date",e.Date),this.convertToNoteIfNeeded(i),this.cleanupCipher(i),t.ciphers.push(i)}),this.organization&&this.moveFoldersToCollections(t),t.success=!0,Promise.resolve(t))}}var te=i(67036);const ie=new Set(["title","note","username","password","url","otpSecret","category"]),ne=new Set(["type","title","first_name","middle_name","last_name","login","email","phone_number","address","country","state","city","zip","item_name"]),re=new Set(["title","note"]);class se extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!0);if(null==i)return t.success=!1,Promise.resolve(t);if(null!=i[0].type&&null!=i[0].title){if(1===i.filter(e=>"name"===e.type).length){const e=this.initLoginCipher();return e.type=f.gC.Identity,e.identity=new te.O,i.forEach(t=>{this.parsePersonalInformationRecordAsIdentity(e,t)}),this.cleanupCipher(e),t.ciphers.push(e),t.success=!0,Promise.resolve(t)}}return i.forEach(e=>{const i=this.initLoginCipher(),n=Object.keys(e);"username"===n[0]&&(this.processFolder(t,e.category),this.parseCredentialsRecord(i,e)),"type"===n[0]&&"account_name"===n[1]&&this.parsePaymentRecord(i,e),"type"===n[0]&&"number"===n[1]&&this.parseIdRecord(i,e),"type"===n[0]&&"title"===n[1]&&this.parsePersonalInformationRecord(i,e),"title"===n[0]&&"note"===n[1]&&this.parseSecureNoteRecords(i,e),this.convertToNoteIfNeeded(i),this.cleanupCipher(i),t.ciphers.push(i)}),this.organization&&this.moveFoldersToCollections(t),t.success=!0,Promise.resolve(t)}parseCredentialsRecord(e,t){e.type=f.gC.Login,e.login=new V.r,e.name=t.title,e.notes=t.note,e.login.username=t.username,e.login.password=t.password,e.login.totp=Object.keys(t).includes("otpUrl")?t.otpUrl:t.otpSecret,e.login.uris=this.makeUriArray(t.url),this.importUnmappedFields(e,t,ie)}parsePaymentRecord(e,t){e.type=f.gC.Card,e.card=new k.G,e.name=t.account_name;let i=[];switch(t.type){case"credit_card":e.card.cardholderName=t.account_name,e.card.number=t.cc_number,e.card.brand=k.G.getCardBrandByPatterns(e.card.number),e.card.code=t.code,this.setCardExpiration(e,`${t.expiration_month}/${t.expiration_year}`),i=["account_name","account_holder","cc_number","code","expiration_month","expiration_year"];break;case"bank":e.card.cardholderName=t.account_holder,e.card.number=t.account_number,i=["account_name","account_holder","account_number"]}this.importUnmappedFields(e,t,new Set(i))}parseIdRecord(e,t){e.type=f.gC.Identity,e.identity=new te.O;const i=["name","number"];switch(t.type){case"card":e.name=`${t.name} ${t.type}`,this.processFullName(e,t.name),e.identity.licenseNumber=t.number;break;case"passport":e.name=`${t.name} ${t.type}`,this.processFullName(e,t.name),e.identity.passportNumber=t.number;break;case"license":e.name=`${t.name} ${t.type}`,this.processFullName(e,t.name),e.identity.licenseNumber=t.number,e.identity.state=t.state,i.push("state");break;case"social_security":e.name=`${t.name} ${t.type}`,this.processFullName(e,t.name),e.identity.ssn=t.number;break;case"tax_number":e.name=t.type,e.identity.licenseNumber=t.number}this.importUnmappedFields(e,t,new Set(i))}parsePersonalInformationRecord(e,t){e.type=f.gC.SecureNote,e.secureNote.type=f.ak.Generic,"name"===t.type?e.name=`${t.title} ${t.first_name} ${t.middle_name} ${t.last_name}`.replace(" "," ").trim():e.name=t.item_name;const i=t;Object.keys(t).forEach(t=>{this.processKvp(e,t,i[t])})}parsePersonalInformationRecordAsIdentity(e,t){switch(t.type){case"name":this.processFullName(e,`${t.first_name} ${t.middle_name} ${t.last_name}`),e.identity.title=t.title,e.name=e.identity.fullName,e.identity.username=t.login;break;case"email":e.identity.email=t.email;break;case"number":e.identity.phone=t.phone_number;break;case"address":e.identity.address1=t.address,e.identity.city=t.city,e.identity.postalCode=t.zip,e.identity.state=t.state,e.identity.country=t.country}this.importUnmappedFields(e,t,ne)}parseSecureNoteRecords(e,t){e.type=f.gC.SecureNote,e.secureNote.type=f.ak.Generic,e.name=t.title,e.notes=t.note,this.importUnmappedFields(e,t,re)}importUnmappedFields(e,t,i){Object.keys(t).filter(e=>!i.has(e)).forEach(i=>{const n=t;this.processKvp(e,i,n[i])})}}const oe=new Set(["ADDRESS","AUTHENTIFIANT","BANKSTATEMENT","IDCARD","IDENTITY","PAYMENTMEANS_CREDITCARD","PAYMENTMEAN_PAYPAL","EMAIL"]);class ae extends B.G{parse(e){this.result=new w.h;const t=JSON.parse(e);if(null==t||0===t.length)return this.result.success=!1,Promise.resolve(this.result);null!=t.ADDRESS&&this.processAddress(t.ADDRESS),null!=t.AUTHENTIFIANT&&this.processAuth(t.AUTHENTIFIANT),null!=t.BANKSTATEMENT&&this.processNote(t.BANKSTATEMENT,"BankAccountName"),null!=t.IDCARD&&this.processNote(t.IDCARD,"Fullname"),null!=t.PAYMENTMEANS_CREDITCARD&&this.processCard(t.PAYMENTMEANS_CREDITCARD),null!=t.IDENTITY&&this.processIdentity(t.IDENTITY);for(const i in t)t.hasOwnProperty(i)&&!oe.has(i)&&this.processNote(t[i],null,"Generic Note");return this.result.success=!0,Promise.resolve(this.result)}processAuth(e){e.forEach(e=>{const t=this.initLoginCipher();t.name=this.getValueOrDefault(e.title),t.login.username=this.getValueOrDefault(e.login,this.getValueOrDefault(e.secondaryLogin)),this.isNullOrWhitespace(t.login.username)?t.login.username=this.getValueOrDefault(e.email):this.isNullOrWhitespace(e.email)||(t.notes="Email: "+e.email+"\n"),t.login.password=this.getValueOrDefault(e.password),t.login.uris=this.makeUriArray(e.domain),t.notes+=this.getValueOrDefault(e.note,""),this.convertToNoteIfNeeded(t),this.cleanupCipher(t),this.result.ciphers.push(t)})}processIdentity(e){e.forEach(e=>{const t=new M.f;t.identity=new te.O,t.type=f.gC.Identity,t.name=this.getValueOrDefault(e.fullName,"");const i=t.name.split(" ");i.length>0&&(t.identity.firstName=this.getValueOrDefault(i[0])),2===i.length?t.identity.lastName=this.getValueOrDefault(i[1]):3===i.length&&(t.identity.middleName=this.getValueOrDefault(i[1]),t.identity.lastName=this.getValueOrDefault(i[2])),t.identity.username=this.getValueOrDefault(e.pseudo),this.cleanupCipher(t),this.result.ciphers.push(t)})}processAddress(e){e.forEach(e=>{const t=new M.f;t.identity=new te.O,t.type=f.gC.Identity,t.name=this.getValueOrDefault(e.addressName),t.identity.address1=this.getValueOrDefault(e.addressFull),t.identity.city=this.getValueOrDefault(e.city),t.identity.state=this.getValueOrDefault(e.state),t.identity.postalCode=this.getValueOrDefault(e.zipcode),t.identity.country=this.getValueOrDefault(e.country),null!=t.identity.country&&(t.identity.country=t.identity.country.toUpperCase()),this.cleanupCipher(t),this.result.ciphers.push(t)})}processCard(e){e.forEach(e=>{const t=new M.f;t.card=new k.G,t.type=f.gC.Card,t.name=this.getValueOrDefault(e.bank),t.card.number=this.getValueOrDefault(e.cardNumber),t.card.brand=k.G.getCardBrandByPatterns(t.card.number),t.card.cardholderName=this.getValueOrDefault(e.owner),this.isNullOrWhitespace(t.card.brand)||(this.isNullOrWhitespace(t.name)?t.name=t.card.brand:t.name+=" - "+t.card.brand),this.cleanupCipher(t),this.result.ciphers.push(t)})}processNote(e,t,i=null){e.forEach(e=>{const n=new M.f;n.secureNote=new G.Z,n.type=f.gC.SecureNote,n.secureNote.type=f.ak.Generic,n.name=null!=i?i:this.getValueOrDefault(e[t]);for(const i in e)e.hasOwnProperty(i)&&i!==t&&this.processKvp(n,i,e[i].toString());this.cleanupCipher(n),this.result.ciphers.push(n)})}}class le extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!0);return null==i?(t.success=!1,Promise.resolve(t)):(i.forEach(e=>{const i=this.initLoginCipher();i.name=this.getValueOrDefault(e.Label,"--"),i.notes=this.getValueOrDefault(e.Notes);const n=this.getValueOrDefault(e.Text);this.isNullOrWhitespace(n)||(this.isNullOrWhitespace(i.notes)?i.notes=n:i.notes+="\n\n"+n);const r=e["Entry Type"];if("Password"===r)i.login.username=this.getValueOrDefault(e.Username),i.login.password=this.getValueOrDefault(e.Password),i.login.uris=this.makeUriArray(e["Site URL"]);else if("Credit Card"===r){i.type=f.gC.Card,i.card=new k.G,i.card.cardholderName=this.getValueOrDefault(e["Name on card"]),i.card.number=this.getValueOrDefault(e["Card Number"]),i.card.brand=k.G.getCardBrandByPatterns(i.card.number),i.card.code=this.getValueOrDefault(e.CVV);const t=this.getValueOrDefault(e.Expiry);if(!this.isNullOrWhitespace(t)){const e=t.split("/");e.length>1&&(i.card.expMonth=parseInt(e[0],null).toString(),i.card.expYear=(2e3+parseInt(e[1],null)).toString())}}this.convertToNoteIfNeeded(i),this.cleanupCipher(i),t.ciphers.push(i)}),t.success=!0,Promise.resolve(t))}}class ce extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!1);if(null==i)return t.success=!1,Promise.resolve(t);let n=!0;return i.forEach(e=>{if(e.length<2||n&&("Title"===e[0]||"title"===e[0]))return void(n=!1);const i=this.initLoginCipher();if(i.notes=this.getValueOrDefault(e[e.length-1]),i.name=this.getValueOrDefault(e[0],"--"),2!==e.length&&(this.containsField(e,"username")||this.containsField(e,"password")||this.containsField(e,"email")||this.containsField(e,"url"))||(i.type=f.gC.SecureNote,i.secureNote=new G.Z,i.secureNote.type=f.ak.Generic),this.containsField(e,"cardholder")&&this.containsField(e,"number")&&this.containsField(e,"expiry date")&&(i.type=f.gC.Card,i.card=new k.G),e.length>2&&e.length%2==0)for(let t=0;t<e.length-2;t+=2){const n=e[t+2];if(this.isNullOrWhitespace(n))continue;const r=e[t+1],s=r.toLowerCase();if(i.type===f.gC.Login){if("url"===s&&(null==i.login.uris||0===i.login.uris.length)){i.login.uris=this.makeUriArray(n);continue}if(("username"===s||"email"===s)&&this.isNullOrWhitespace(i.login.username)){i.login.username=n;continue}if("password"===s&&this.isNullOrWhitespace(i.login.password)){i.login.password=n;continue}if("totp"===s&&this.isNullOrWhitespace(i.login.totp)){i.login.totp=n;continue}}else if(i.type===f.gC.Card){if("cardholder"===s&&this.isNullOrWhitespace(i.card.cardholderName)){i.card.cardholderName=n;continue}if("number"===s&&this.isNullOrWhitespace(i.card.number)){i.card.number=n,i.card.brand=k.G.getCardBrandByPatterns(i.card.number);continue}if("cvc"===s&&this.isNullOrWhitespace(i.card.code)){i.card.code=n;continue}if("expiry date"===s&&this.isNullOrWhitespace(i.card.expMonth)&&this.isNullOrWhitespace(i.card.expYear)){if(this.setCardExpiration(i,n))continue}else if("type"===s)continue}this.processKvp(i,r,n)}this.cleanupCipher(i),t.ciphers.push(i)}),t.success=!0,Promise.resolve(t)}containsField(e,t){return null!=e&&null!=t&&e.filter(e=>!this.isNullOrWhitespace(e)&&e.toLowerCase()===t.toLowerCase()).length>0}}const de=new RegExp("androidapp://.*==@","g");class ue extends B.G{parse(e){const t=new w.h,i=JSON.parse(e);if(null==i||null==i.items||0===i.items.length)return t.success=!1,Promise.resolve(t);const n=new Map,r=new Map,s=this.buildFolderTree(i.folders);return this.flattenFolderTree(null,s,n),n.forEach((e,i)=>{r.set(i,t.folders.length);const n=new I.u;n.name=e,t.folders.push(n)}),i.items.forEach(e=>{null!=e.folders&&e.folders.length>0&&r.has(e.folders[0])&&t.folderRelationships.push([t.ciphers.length,r.get(e.folders[0])]);const i=this.initLoginCipher();i.name=this.getValueOrDefault(e.title),i.favorite=e.favorite>0,null!=e.template_type&&null!=e.fields&&e.fields.length>0&&(0===e.template_type.indexOf("login.")||0===e.template_type.indexOf("password.")?this.processLogin(i,e.fields):0===e.template_type.indexOf("creditcard.")?this.processCard(i,e.fields):e.template_type.indexOf("identity.")<0&&e.fields.some(e=>"password"===e.type&&!this.isNullOrWhitespace(e.value))?this.processLogin(i,e.fields):this.processNote(i,e.fields));const n=this.getValueOrDefault(e.note,"");n&&(i.notes=n.trimEnd()),this.convertToNoteIfNeeded(i),this.cleanupCipher(i),t.ciphers.push(i)}),t.success=!0,Promise.resolve(t)}processLogin(e,t){const i=[];t.forEach(t=>{if(!this.isNullOrWhitespace(t.value)&&"section"!==t.type)if("username"!==t.type&&"email"!==t.type||!this.isNullOrWhitespace(e.login.username))if("password"===t.type&&this.isNullOrWhitespace(e.login.password))e.login.password=t.value;else if("totp"===t.type&&this.isNullOrWhitespace(e.login.totp))e.login.totp=t.value;else if("url"===t.type)i.push(t.value);else if(".Android#"===t.type){let e=t.value.startsWith("androidapp://")?t.value:"androidapp://"+t.value;e=e.replace("android://",""),e=e.replace(de,"androidapp://"),i.push(e)}else this.processKvp(e,t.label,t.value,1===t.sensitive?f.PU.Hidden:f.PU.Text);else e.login.username=t.value}),e.login.uris=this.makeUriArray(i)}processCard(e,t){e.card=new k.G,e.type=f.gC.Card,t.forEach(t=>{this.isNullOrWhitespace(t.value)||"section"===t.type||"ccType"===t.type||("ccName"===t.type&&this.isNullOrWhitespace(e.card.cardholderName)?e.card.cardholderName=t.value:"ccNumber"===t.type&&this.isNullOrWhitespace(e.card.number)?(e.card.number=t.value,e.card.brand=k.G.getCardBrandByPatterns(e.card.number)):"ccCvc"===t.type&&this.isNullOrWhitespace(e.card.code)?e.card.code=t.value:"ccExpiry"===t.type&&this.isNullOrWhitespace(e.card.expYear)&&this.setCardExpiration(e,t.value)||this.processKvp(e,t.label,t.value,1===t.sensitive?f.PU.Hidden:f.PU.Text))})}processNote(e,t){t.forEach(t=>{this.isNullOrWhitespace(t.value)||"section"===t.type||this.processKvp(e,t.label,t.value,1===t.sensitive?f.PU.Hidden:f.PU.Text)})}buildFolderTree(e){if(null==e)return[];const t=[],i=new Map([]);return e.forEach(e=>{i.set(e.uuid,e),e.children=[]}),e.forEach(e=>{null!=e.parent_uuid&&""!==e.parent_uuid&&i.has(e.parent_uuid)?i.get(e.parent_uuid).children.push(e):t.push(e)}),t}flattenFolderTree(e,t,i){null!=t&&t.forEach(t=>{if(null!=t.title&&""!==t.title.trim()){let n=t.title.trim();null!=e&&""!==e.trim()&&(n=e+"/"+n),i.set(t.uuid,n),null!=t.children&&0!==t.children.length&&this.flattenFolderTree(n,t.children,i)}})}}class he extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!0);return null==i?(t.success=!1,Promise.resolve(t)):(i.filter(e=>"chrome://FirefoxAccounts"!==e.url).forEach(e=>{const i=this.initLoginCipher(),n=this.getValueOrDefault(e.url,this.getValueOrDefault(e.hostname));i.name=this.getValueOrDefault(this.nameFromUrl(n),"--"),i.login.username=this.getValueOrDefault(e.username),i.login.password=this.getValueOrDefault(e.password),i.login.uris=this.makeUriArray(n),this.cleanupCipher(i),t.ciphers.push(i)}),t.success=!0,Promise.resolve(t))}}const Ae=Object.freeze({Login:1,CreditCard:2});class pe extends B.G{parse(e){const t=new w.h,i=JSON.parse(e);if(null==i||null==i.data)return t.success=!1,Promise.resolve(t);for(const[,n]of Object.entries(i.data)){const e=this.parseEntry(n);null!=e&&t.ciphers.push(e)}return t.success=!0,Promise.resolve(t)}parseEntry(e){const t=this.initLoginCipher();switch(t.name=this.getValueOrDefault(e.service),t.notes=this.getValueOrDefault(e.notes),t.favorite=e.favorite>0,e.type){case Ae.Login:this.handleLoginEntry(e,t);break;case Ae.CreditCard:this.handleCreditCardEntry(e,t);break;default:return}return this.convertToNoteIfNeeded(t),this.cleanupCipher(t),t}handleLoginEntry(e,t){t.login.username=this.getValueOrDefault(e.username),t.login.password=this.getValueOrDefault(e.password),t.login.uris=this.makeUriArray(e.url)}handleCreditCardEntry(e,t){t.type=f.gC.Card,t.card=new k.G,t.card.cardholderName=this.getValueOrDefault(e.username),t.card.number=this.getValueOrDefault(e.creditNumber),t.card.brand=k.G.getCardBrandByPatterns(t.card.number),t.card.code=this.getValueOrDefault(e.creditCvv),this.isNullOrWhitespace(e.creditExpiry)||this.setCardExpiration(t,e.creditExpiry)||this.processKvp(t,"Expiration",e.creditExpiry),this.isNullOrWhitespace(e.password)||this.processKvp(t,"PIN",e.password)}}class ge extends B.G{parse(e){const t=new w.h,i=JSON.parse(e);if(null==i||0===Object.keys(i).length)return t.success=!1,Promise.resolve(t);for(const n in i)i.hasOwnProperty(n)&&!this.isNullOrWhitespace(n)&&0!==i[n].length&&i[n].forEach(e=>{if(this.isNullOrWhitespace(e.display_name)||0!==e.display_name.indexOf("http"))return;this.processFolder(t,n);const i=this.initLoginCipher();if(i.name=e.display_name.replace("http://","").replace("https://",""),i.name.length>30&&(i.name=i.name.substring(0,30)),i.login.password=this.getValueOrDefault(e.secret),i.login.uris=this.makeUriArray(e.display_name),null!=e.attributes){i.login.username=null!=e.attributes?this.getValueOrDefault(e.attributes.username_value):null;for(const t in e.attributes)e.attributes.hasOwnProperty(t)&&"username_value"!==t&&"xdg:schema"!==t&&this.processKvp(i,t,e.attributes[t])}this.convertToNoteIfNeeded(i),this.cleanupCipher(i),t.ciphers.push(i)});return this.organization&&this.moveFoldersToCollections(t),t.success=!0,Promise.resolve(t)}}const ve="Notes\n\n",me="Applications\n\n",fe="Websites\n\n",ye="\n---\n";class be extends B.G{parse(e){const t=new w.h;let i,n,r,s=this.splitNewLine(e).join("\n");if(-1!==s.indexOf(ve)){const e=s.split(ve);e.length>1&&(s=e[0],i=e[1])}if(-1!==s.indexOf(me)){const e=s.split(me);e.length>1&&(s=e[0],n=e[1])}if(0===s.indexOf(fe)){const e=s.split(fe);e.length>1&&(s=e[0],r=e[1])}const o=this.parseDataCategory(i),a=this.parseDataCategory(n),l=this.parseDataCategory(r);return o.forEach(e=>{const i=this.initLoginCipher();i.name=this.getValueOrDefault(e.get("Name")),i.notes=this.getValueOrDefault(e.get("Text")),this.cleanupCipher(i),t.ciphers.push(i)}),l.concat(a).forEach(e=>{const i=this.initLoginCipher(),n=e.has("Website name")?"Website name":"Application";i.name=this.getValueOrDefault(e.get(n),""),this.isNullOrWhitespace(e.get("Login name"))||(this.isNullOrWhitespace(i.name)||(i.name+=": "),i.name+=e.get("Login name")),i.notes=this.getValueOrDefault(e.get("Comment")),e.has("Website URL")&&(i.login.uris=this.makeUriArray(e.get("Website URL"))),i.login.username=this.getValueOrDefault(e.get("Login")),i.login.password=this.getValueOrDefault(e.get("Password")),this.cleanupCipher(i),t.ciphers.push(i)}),t.success=!0,Promise.resolve(t)}parseDataCategory(e){if(this.isNullOrWhitespace(e)||-1===e.indexOf(ye))return[];const t=[];return e.split(ye).forEach(e=>{if(-1===e.indexOf("\n"))return;const i=new Map;let n,r;e.split("\n").forEach(e=>{if(null!=n)return void(n+="\n"+e);const t=e.indexOf(":");let s,o;-1!==t&&(s=e.substring(0,t),e.length>t+1&&(o=e.substring(t+2)),null!=s&&i.set(s,o),"Comment"!==s&&"Text"!==s||(n=o,r=s))}),null!=n&&null!=r&&i.set(r,n),0!==i.size&&t.push(i)}),t}}class Ce extends B.G{constructor(){super(...arguments),this.result=new w.h}parse(e){const t=this.parseXml(e);if(null==t)return this.result.success=!1,Promise.resolve(this.result);const i=t.querySelector("KeePassFile");if(null==i)return this.result.errorMessage="Missing `KeePassFile` node.",this.result.success=!1,Promise.resolve(this.result);const n=i.querySelector("Root");if(null==n)return this.result.errorMessage="Missing `KeePassFile > Root` node.",this.result.success=!1,Promise.resolve(this.result);const r=n.querySelector("Group");return null==r?(this.result.errorMessage="Missing `KeePassFile > Root > Group` node.",this.result.success=!1,Promise.resolve(this.result)):(this.traverse(r,!0,""),this.organization&&this.moveFoldersToCollections(this.result),this.result.success=!0,Promise.resolve(this.result))}traverse(e,t,i){const n=this.result.folders.length;let r=i;if(!t){""!==r&&(r+="/");const t=this.querySelectorDirectChild(e,"Name");r+=null==t?"-":t.textContent;const i=new I.u;i.name=r,this.result.folders.push(i)}this.querySelectorAllDirectChild(e,"Entry").forEach(e=>{const i=this.result.ciphers.length,r=this.initLoginCipher();this.querySelectorAllDirectChild(e,"String").forEach(e=>{const t=this.querySelectorDirectChild(e,"Value"),i=null!=t?t.textContent:null;if(this.isNullOrWhitespace(i))return;const n=this.querySelectorDirectChild(e,"Key"),s=null!=n?n.textContent:null;if("URL"===s)r.login.uris=this.makeUriArray(i);else if("UserName"===s)r.login.username=i;else if("Password"===s)r.login.password=i;else if("otp"===s)r.login.totp=i.replace("key=","");else if("Title"===s)r.name=i;else if("Notes"===s)r.notes+=i+"\n";else{const e=t.attributes;if(e.length>0&&null!=e.ProtectInMemory&&"True"===e.ProtectInMemory.value){null==r.fields&&(r.fields=[]);const e=new x.g;e.type=f.PU.Hidden,e.name=s,e.value=i,r.fields.push(e)}else this.processKvp(r,s,i,f.PU.Text)}}),this.cleanupCipher(r),this.result.ciphers.push(r),t||this.result.folderRelationships.push([i,n])}),this.querySelectorAllDirectChild(e,"Group").forEach(e=>{this.traverse(e,!1,r)})}}class Ie extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!0);return null==i?(t.success=!1,Promise.resolve(t)):(i.forEach(e=>{if(this.isNullOrWhitespace(e.Title))return;e.Group=!this.isNullOrWhitespace(e.Group)&&e.Group.startsWith("Root/")?e.Group.replace("Root/",""):e.Group;const i=this.isNullOrWhitespace(e.Group)?null:e.Group;this.processFolder(t,i);const n=this.initLoginCipher();n.notes=this.getValueOrDefault(e.Notes),n.name=this.getValueOrDefault(e.Title,"--"),n.login.username=this.getValueOrDefault(e.Username),n.login.password=this.getValueOrDefault(e.Password),n.login.uris=this.makeUriArray(e.URL),n.login.totp=this.getValueOrDefault(e.TOTP),this.cleanupCipher(n),t.ciphers.push(n)}),this.organization&&this.moveFoldersToCollections(t),t.success=!0,Promise.resolve(t))}}var we=i(89731),Be=i(7511);class Ee extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!0);return null==i?(t.success=!1,Promise.resolve(t)):(i.forEach(e=>{const i=t.ciphers.length;let n=t.folders.length,r=e.grouping;null!=r&&(r=r.replace(/\\/g,"/").replace(/[\x00-\x1F\x7F-\x9F]/g,""));const s="(none)"!==this.getValueOrDefault(r,"(none)");let o=s;if(s)for(let l=0;l<t.folders.length;l++)if(t.folders[l].name===r){o=!1,n=l;break}const a=this.buildBaseCipher(e);if(a.type===f.gC.Login)a.notes=this.getValueOrDefault(e.extra),a.login=new V.r,a.login.uris=this.makeUriArray(e.url),a.login.username=this.getValueOrDefault(e.username),a.login.password=this.getValueOrDefault(e.password),a.login.totp=this.getValueOrDefault(e.totp);else if(a.type===f.gC.SecureNote)this.parseSecureNote(e,a);else if(a.type===f.gC.Card)a.card=this.parseCard(e),a.notes=this.getValueOrDefault(e.notes);else if(a.type===f.gC.Identity&&(a.identity=this.parseIdentity(e),a.notes=this.getValueOrDefault(e.notes),!this.isNullOrWhitespace(e.ccnum))){const i=this.buildBaseCipher(e);i.identity=null,i.type=f.gC.Card,i.card=this.parseCard(e),t.ciphers.push(i)}if(t.ciphers.push(a),o){const e=new I.u;e.name=r,t.folders.push(e)}s&&t.folderRelationships.push([i,n])}),this.organization&&this.moveFoldersToCollections(t),t.success=!0,Promise.resolve(t))}buildBaseCipher(e){const t=new M.f;return e.hasOwnProperty("profilename")&&e.hasOwnProperty("profilelanguage")?(t.favorite=!1,t.name=this.getValueOrDefault(e.profilename,"--"),t.type=f.gC.Card,this.isNullOrWhitespace(e.title)&&this.isNullOrWhitespace(e.firstname)&&this.isNullOrWhitespace(e.lastname)&&this.isNullOrWhitespace(e.address1)&&this.isNullOrWhitespace(e.phone)&&this.isNullOrWhitespace(e.username)&&this.isNullOrWhitespace(e.email)||(t.type=f.gC.Identity)):(t.favorite=!this.organization&&"1"===this.getValueOrDefault(e.fav,"0"),t.name=this.getValueOrDefault(e.name,"--"),t.type="http://sn"===e.url?f.gC.SecureNote:f.gC.Login),t}parseCard(e){const t=new k.G;if(t.cardholderName=this.getValueOrDefault(e.ccname),t.number=this.getValueOrDefault(e.ccnum),t.code=this.getValueOrDefault(e.cccsc),t.brand=k.G.getCardBrandByPatterns(t.number),!this.isNullOrWhitespace(e.ccexp)&&e.ccexp.indexOf("-")>-1){const i=e.ccexp.split("-");i.length>1&&(t.expYear=i[0],t.expMonth=i[1],2===t.expMonth.length&&"0"===t.expMonth[0]&&(t.expMonth=t.expMonth[1]))}return t}parseIdentity(e){const t=new te.O;return t.title=this.getValueOrDefault(e.title),t.firstName=this.getValueOrDefault(e.firstname),t.middleName=this.getValueOrDefault(e.middlename),t.lastName=this.getValueOrDefault(e.lastname),t.username=this.getValueOrDefault(e.username),t.company=this.getValueOrDefault(e.company),t.ssn=this.getValueOrDefault(e.ssn),t.address1=this.getValueOrDefault(e.address1),t.address2=this.getValueOrDefault(e.address2),t.address3=this.getValueOrDefault(e.address3),t.city=this.getValueOrDefault(e.city),t.state=this.getValueOrDefault(e.state),t.postalCode=this.getValueOrDefault(e.zip),t.country=this.getValueOrDefault(e.country),t.email=this.getValueOrDefault(e.email),t.phone=this.getValueOrDefault(e.phone),this.isNullOrWhitespace(t.title)||(t.title=t.title.charAt(0).toUpperCase()+t.title.slice(1)),t}parseSecureNote(e,t){const i=this.splitNewLine(e.extra);let n=!1;if(i.length){const e=i[0].split(":");if(e.length>1&&"NoteType"===e[0]&&("Credit Card"===e[1]||"Address"===e[1])){if("Credit Card"===e[1]){const e=this.parseSecureNoteMapping(t,i,{Number:"number","Name on Card":"cardholderName","Security Code":"code","Expiration Date":"expMonth"});if(this.isNullOrWhitespace(e.expMonth)||","===e.expMonth)e.expMonth=void 0;else{const[t,i]=e.expMonth.split(",");if(this.isNullOrWhitespace(t))e.expMonth=void 0;else{const i=new Date(Date.parse(t.trim()+" 1, 2012")).getMonth()+1;isNaN(i)?e.expMonth=void 0:e.expMonth=i.toString()}this.isNullOrWhitespace(i)||(e.expYear=i)}t.type=f.gC.Card,t.card=new k.G,Object.assign(t.card,e)}else if("Address"===e[1]){const e=this.parseSecureNoteMapping(t,i,{Title:"title","First Name":"firstName","Last Name":"lastName","Middle Name":"middleName",Company:"company","Address 1":"address1","Address 2":"address2","Address 3":"address3","City / Town":"city",State:"state","Zip / Postal Code":"postalCode",Country:"country","Email Address":"email",Username:"username"});t.type=f.gC.Identity,t.identity=new te.O,Object.assign(t.identity,e)}n=!0}}n||(t.secureNote=new G.Z,t.secureNote.type=f.ak.Generic,t.notes=this.getValueOrDefault(e.extra))}parseSecureNoteMapping(e,t,i){const n={};let r=!1;return t.forEach(t=>{let s=null,o=null;if(!r){if(this.isNullOrWhitespace(t))return;const e=t.indexOf(":");if(-1===e?s=t:(s=t.substring(0,e),t.length>e&&(o=t.substring(e+1))),this.isNullOrWhitespace(s)||this.isNullOrWhitespace(o)||"NoteType"===s)return}r?e.notes+="\n"+t:"Notes"===s?(this.isNullOrWhitespace(e.notes)?e.notes=o:e.notes+="\n"+o,r=!0):i.hasOwnProperty(s)?n[i[s]]=o:this.processKvp(e,s,o)}),n}}class Se extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!0);return null==i?(t.success=!1,Promise.resolve(t)):(i.forEach(e=>{if(!e.name)return;const i=this.initLoginCipher();if(i.name=this.getValueOrDefault(e.name,"--"),i.login.username=this.getValueOrDefault(e.username),i.login.password=this.getValueOrDefault(e.password),i.login.uris=this.makeUriArray(e.url),this.cleanupCipher(i),t.ciphers.push(i),e.group){let i=t.folders.findIndex(t=>t.name===e.group);if(-1===i){const n=new I.u;n.name=e.group,t.folders.push(n),i=t.folders.length-1}t.folderRelationships.push([t.ciphers.length-1,i])}}),t.success=!0,Promise.resolve(t))}}class Qe extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!0);return null==i?(t.success=!1,Promise.resolve(t)):(i.forEach(e=>{const i=this.initLoginCipher();i.name=this.getValueOrDefault(e.DisplayName,"--"),i.notes=this.getValueOrDefault(e.Notes),i.login.username=this.getValueOrDefault(e.UserName),i.login.password=this.getValueOrDefault(e.Password),i.login.uris=this.makeUriArray(e.Url),this.cleanupCipher(i),t.ciphers.push(i)}),t.success=!0,Promise.resolve(t))}}class ke extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!1,{delimiter:","});return null==i?(t.success=!1,Promise.resolve(t)):(i.forEach(e=>{if(e.length<3)return;const i="Unassigned"!==this.getValueOrDefault(e[2],"Unassigned")?e[2]:null;this.processFolder(t,i);const n=this.initLoginCipher();if(n.name=this.getValueOrDefault(e[0].split("|")[0],"--"),"Web Logins"===e[1]||"Login"===e[1])n.login.username=this.getValueOrDefault(this.splitValueRetainingLastPart(e[5])),n.login.uris=this.makeUriArray(this.splitValueRetainingLastPart(e[4])),n.login.password=this.getValueOrDefault(this.splitValueRetainingLastPart(e[6])),n.notes=this.isNullOrWhitespace(e[3])?null:e[3].split("\\n").join("\n");else if("Credit Card"===e[1]){n.type=f.gC.Card,n.card.number=this.getValueOrDefault(this.splitValueRetainingLastPart(e[4]));const[t,i]=this.getValueOrDefault(this.splitValueRetainingLastPart(e[5])).split("/");n.card.expMonth=t.trim(),n.card.expYear=i.trim();const r=RegExp("^Security Code\\|\\d*\\|"),s=e.find(e=>r.test(e));n.card.code=this.getValueOrDefault(this.splitValueRetainingLastPart(s));const o=RegExp("^Name on Card\\|\\d*\\|"),a=e.find(e=>e.match(o));n.card.cardholderName=this.getValueOrDefault(this.splitValueRetainingLastPart(a)),n.card.brand=this.getValueOrDefault(this.splitValueRetainingLastPart(e[9]),"");const l=RegExp("\\|\\d*\\|"),c=e.slice(2).filter(e=>!this.isNullOrWhitespace(e)&&!l.test(e)),d=[8,10,11].filter(t=>e[t]&&l.test(e[t])).map(t=>e[t]).map(e=>`${e.split("|")[0]}: ${this.getValueOrDefault(this.splitValueRetainingLastPart(e),"")}`);n.notes=[...c,...d].join("\n")}else if(e.length>3){n.type=f.gC.SecureNote,n.secureNote=new G.Z,n.secureNote.type=f.ak.Generic;for(let t=3;t<e.length;t++)this.isNullOrWhitespace(e[t])||(n.notes+=e[t]+"\n")}this.isNullOrWhitespace(e[1])||n.type===f.gC.Login||n.type===f.gC.Card||(n.name=e[1]+": "+n.name),this.cleanupCipher(n),t.ciphers.push(n)}),this.organization&&this.moveFoldersToCollections(t),t.success=!0,Promise.resolve(t))}splitValueRetainingLastPart(e){return e&&e.split("|").slice(0,2).concat(e.split("|").slice(2).join("|")).pop()}}const Re=["nickname","additionalInfo"],Fe=new Set(Re.concat(["url","username","password","twofaSecret"])),Te=new Set(Re.concat(["cardNumber","cardName","exp_month","exp_year","cvv"])),De=new Set(Re.concat(["title","firstName","middleName","lastName","email","firstAddressLine","secondAddressLine","city","country","zipCode"])),Pe=new Set(Re.concat(["idName","idNumber","idCountry"])),Me=new Set(Re.concat(["authToken"])),xe=new Set(Re.concat(["content"]));class Ve extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!0);return null==i?(t.success=!1,Promise.resolve(t)):(i.forEach(e=>{const i=this.initLoginCipher();if(i.name=this.getValueOrDefault(e.nickname,"--"),i.notes=this.getValueOrDefault(e.additionalInfo,"").trimEnd(),void 0!==e.url)i.login.uris=this.makeUriArray(e.url),i.login.username=this.getValueOrDefault(e.username),i.login.password=this.getValueOrDefault(e.password),i.login.totp=this.getValueOrDefault(e.twofaSecret),this.importUnmappedFields(i,e,Fe);else if(void 0!==e.authToken)i.login.totp=this.getValueOrDefault(e.authToken),this.importUnmappedFields(i,e,Me);else if(void 0!==e.cardNumber)i.card=new k.G,i.type=f.gC.Card,i.card.cardholderName=this.getValueOrDefault(e.cardName),i.card.number=this.getValueOrDefault(e.cardNumber),i.card.brand=k.G.getCardBrandByPatterns(i.card.number),i.card.expMonth=this.getValueOrDefault(e.exp_month),i.card.expYear=this.getValueOrDefault(e.exp_year),i.card.code=this.getValueOrDefault(e.cvv),this.importUnmappedFields(i,e,Te);else if(void 0!==e.firstName)i.identity=new te.O,i.type=f.gC.Identity,i.identity.title=this.getValueOrDefault(e.title),i.identity.firstName=this.getValueOrDefault(e.firstName),i.identity.middleName=this.getValueOrDefault(e.middleName),i.identity.lastName=this.getValueOrDefault(e.lastName),i.identity.phone=this.getValueOrDefault(e.number),i.identity.email=this.getValueOrDefault(e.email),i.identity.address1=this.getValueOrDefault(e.firstAddressLine),i.identity.address2=this.getValueOrDefault(e.secondAddressLine),i.identity.city=this.getValueOrDefault(e.city),i.identity.country=this.getValueOrDefault(e.country),i.identity.postalCode=this.getValueOrDefault(e.zipCode),this.importUnmappedFields(i,e,De);else if(void 0!==e.idType){switch(i.identity=new te.O,i.type=f.gC.Identity,this.processFullName(i,e.idName),i.identity.country=this.getValueOrDefault(e.idCountry),e.idType){case"Passport":i.identity.passportNumber=e.idNumber;break;case"Social Security":i.identity.ssn=e.idNumber;break;default:i.identity.licenseNumber=e.idNumber}this.importUnmappedFields(i,e,Pe)}else{if(void 0===e.content)return;i.secureNote=new G.Z,i.type=f.gC.SecureNote,i.secureNote.type=f.ak.Generic,i.notes=this.getValueOrDefault(e.content,"").trimEnd(),this.importUnmappedFields(i,e,xe)}this.cleanupCipher(i),t.ciphers.push(i)}),t.success=!0,Promise.resolve(t))}importUnmappedFields(e,t,i){Object.keys(t).filter(e=>!i.has(e)).forEach(i=>{const n=t;this.processKvp(e,i,n[i])})}}const Ge=new Set(["Organisationseinheit","Informationen","Beschreibung","Benutzername","Passwort","Internetseite","One-Time Passwort"]);class Ue extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!0);return null==i?(t.success=!1,Promise.resolve(t)):(i.forEach(e=>{this.processFolder(t,e.Organisationseinheit);const i=this.initLoginCipher(),n=this.getValueOrDefault(e.Informationen);n&&(i.notes=n.trimEnd()),i.name=this.getValueOrDefault(e.Beschreibung,"--"),i.login.username=this.getValueOrDefault(e.Benutzername),i.login.password=this.getValueOrDefault(e.Passwort),i.login.uris=this.makeUriArray(e.Internetseite),i.login.totp=this.getValueOrDefault(e["One-Time Passwort"]),this.importUnmappedFields(i,e,Ge),this.cleanupCipher(i),t.ciphers.push(i)}),this.organization&&this.moveFoldersToCollections(t),t.success=!0,Promise.resolve(t))}importUnmappedFields(e,t,i){Object.keys(t).filter(e=>!i.has(e)).forEach(i=>{const n=t;this.processKvp(e,i,n[i])})}}class Oe extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!0);return null==i?(t.success=!1,Promise.resolve(t)):(i.forEach(e=>{const i=this.evaluateType(e);if(void 0===i)return;this.processFolder(t,e.folder);const n=new M.f;if(n.name=this.getValueOrDefault(e.name,"--"),n.notes=this.getValueOrDefault(e.note),e.custom_fields){const t=JSON.parse(e.custom_fields);t&&t.length>0&&t.forEach(e=>{let t=f.PU.Text;"hidden"==e.type&&(t=f.PU.Hidden),this.processKvp(n,e.label,e.value,t)})}switch(i){case f.gC.Login:if(n.type=f.gC.Login,n.login=new V.r,n.login.username=this.getValueOrDefault(e.username),n.login.password=this.getValueOrDefault(e.password),e.additional_urls){const t=JSON.parse(e.additional_urls),i=[e.url,...t];n.login.uris=this.makeUriArray(i)}else n.login.uris=this.makeUriArray(e.url);break;case f.gC.Card:n.type=f.gC.Card,n.card.cardholderName=this.getValueOrDefault(e.cardholdername),n.card.number=this.getValueOrDefault(e.cardnumber),n.card.code=this.getValueOrDefault(e.cvc),n.card.brand=k.G.getCardBrandByPatterns(n.card.number),this.setCardExpiration(n,e.expirydate);break;case f.gC.Identity:n.type=f.gC.Identity,this.processFullName(n,this.getValueOrDefault(e.full_name)),n.identity.address1=this.getValueOrDefault(e.address1),n.identity.address2=this.getValueOrDefault(e.address2),n.identity.city=this.getValueOrDefault(e.city),n.identity.state=this.getValueOrDefault(e.state),n.identity.postalCode=this.getValueOrDefault(e.zipcode),n.identity.country=this.getValueOrDefault(e.country),null!=n.identity.country&&(n.identity.country=n.identity.country.toUpperCase()),n.identity.email=this.getValueOrDefault(e.email),n.identity.phone=this.getValueOrDefault(e.phone_number);break;case f.gC.SecureNote:n.type=f.gC.SecureNote,n.secureNote.type=f.ak.Generic}this.cleanupCipher(n),t.ciphers.push(n)}),this.organization&&this.moveFoldersToCollections(t),t.success=!0,Promise.resolve(t))}evaluateType(e){switch(e.type){case"password":return f.gC.Login;case"credit_card":return f.gC.Card;case"note":return f.gC.SecureNote;case"identity":return f.gC.Identity}}}var Ne=i(12022);class je extends B.G{constructor(){super(...arguments),this.result=new w.h}parse(e){return e.split(this.newLineRegex).forEach(e=>{if(this.isNullOrWhitespace(e)||"{"!==e[0])return;const t=JSON.parse(e);if(!0===t.trashed)return;const i=this.initLoginCipher();this.isNullOrWhitespace(t.hmac)?this.processStandardItem(t,i):this.processWinOpVaultItem(t,i),this.convertToNoteIfNeeded(i),this.cleanupCipher(i),this.result.ciphers.push(i)}),this.result.success=!0,Promise.resolve(this.result)}processWinOpVaultItem(e,t){if(null!=e.overview&&(t.name=this.getValueOrDefault(e.overview.title),null!=e.overview.URLs)){const i=[];e.overview.URLs.forEach(e=>{this.isNullOrWhitespace(e.u)||i.push(e.u)}),t.login.uris=this.makeUriArray(i)}null!=e.details&&(null!=e.details.passwordHistory&&this.parsePasswordHistory(e.details.passwordHistory,t),this.isNullOrWhitespace(e.details.ccnum)&&this.isNullOrWhitespace(e.details.cvv)?this.isNullOrWhitespace(e.details.firstname)&&this.isNullOrWhitespace(e.details.address1)||(t.type=f.gC.Identity,t.identity=new te.O):(t.type=f.gC.Card,t.card=new k.G),t.type!==f.gC.Login||this.isNullOrWhitespace(e.details.password)||(t.login.password=e.details.password),this.isNullOrWhitespace(e.details.notesPlain)||(t.notes=e.details.notesPlain.split(this.newLineRegex).join("\n")+"\n"),null!=e.details.fields&&this.parseFields(e.details.fields,t,"designation","value","name"),null!=e.details.sections&&e.details.sections.forEach(e=>{null!=e.fields&&this.parseFields(e.fields,t,"n","v","t")}))}processStandardItem(e,t){if(t.favorite=!(!e.openContents||!e.openContents.faveIndex),t.name=this.getValueOrDefault(e.title),"securenotes.SecureNote"===e.typeName?(t.type=f.gC.SecureNote,t.secureNote=new G.Z,t.secureNote.type=f.ak.Generic):"wallet.financial.CreditCard"===e.typeName?(t.type=f.gC.Card,t.card=new k.G):"identities.Identity"===e.typeName?(t.type=f.gC.Identity,t.identity=new te.O):t.login.uris=this.makeUriArray(e.location),null!=e.secureContents){if(null!=e.secureContents.passwordHistory&&this.parsePasswordHistory(e.secureContents.passwordHistory,t),this.isNullOrWhitespace(e.secureContents.notesPlain)||(t.notes=e.secureContents.notesPlain.split(this.newLineRegex).join("\n")+"\n"),t.type===f.gC.Login&&(this.isNullOrWhitespace(e.secureContents.password)||(t.login.password=e.secureContents.password),null!=e.secureContents.URLs)){const i=[];e.secureContents.URLs.forEach(e=>{this.isNullOrWhitespace(e.url)||i.push(e.url)}),i.length>0&&(t.login.uris=this.makeUriArray(i))}null!=e.secureContents.fields&&this.parseFields(e.secureContents.fields,t,"designation","value","name"),null!=e.secureContents.sections&&e.secureContents.sections.forEach(e=>{null!=e.fields&&this.parseFields(e.fields,t,"n","v","t")})}}parsePasswordHistory(e,t){const i=e.length>5?5:e.length;t.passwordHistory=e.filter(e=>!this.isNullOrWhitespace(e.value)&&null!=e.time).sort((e,t)=>t.time-e.time).slice(0,i).map(e=>{const t=new Ne.j;return t.password=e.value,t.lastUsedDate=new Date((""+e.time).length>=13?e.time:1e3*e.time),t})}parseFields(e,t,i,n,r){e.forEach(e=>{if(null==e[n]||""===e[n].toString().trim())return;const s="date"===e.k?new Date(1e3*e[n]).toUTCString():e[n].toString(),o=null!=e[i]?e[i].toString():null;if(t.type===f.gC.Login){if(this.isNullOrWhitespace(t.login.username)&&"username"===o)return void(t.login.username=s);if(this.isNullOrWhitespace(t.login.password)&&"password"===o)return void(t.login.password=s);if(this.isNullOrWhitespace(t.login.totp)&&null!=o&&o.startsWith("TOTP_"))return void(t.login.totp=s)}else if(t.type===f.gC.Card){if(this.isNullOrWhitespace(t.card.number)&&"ccnum"===o)return t.card.number=s,void(t.card.brand=k.G.getCardBrandByPatterns(t.card.number));if(this.isNullOrWhitespace(t.card.code)&&"cvv"===o)return void(t.card.code=s);if(this.isNullOrWhitespace(t.card.cardholderName)&&"cardholder"===o)return void(t.card.cardholderName=s);if(this.isNullOrWhitespace(t.card.expiration)&&"expiry"===o&&6===s.length)return t.card.expMonth=s.substr(4,2),"0"===t.card.expMonth[0]&&(t.card.expMonth=t.card.expMonth.substr(1,1)),void(t.card.expYear=s.substr(0,4));if("type"===o)return}else if(t.type===f.gC.Identity){const i=t.identity;if(this.isNullOrWhitespace(i.firstName)&&"firstname"===o)return void(i.firstName=s);if(this.isNullOrWhitespace(i.lastName)&&"lastname"===o)return void(i.lastName=s);if(this.isNullOrWhitespace(i.middleName)&&"initial"===o)return void(i.middleName=s);if(this.isNullOrWhitespace(i.phone)&&"defphone"===o)return void(i.phone=s);if(this.isNullOrWhitespace(i.company)&&"company"===o)return void(i.company=s);if(this.isNullOrWhitespace(i.email)&&"email"===o)return void(i.email=s);if(this.isNullOrWhitespace(i.username)&&"username"===o)return void(i.username=s);if("address"===o){const{street:t,city:r,country:s,zip:o}=e[n];return i.address1=this.getValueOrDefault(t),i.city=this.getValueOrDefault(r),this.isNullOrWhitespace(s)||(i.country=s.toUpperCase()),void(i.postalCode=this.getValueOrDefault(o))}}const a=this.isNullOrWhitespace(e[r])?"no_name":e[r];if("password"===a&&null!=t.passwordHistory&&t.passwordHistory.some(e=>e.password===s))return;const l="concealed"===e.k?f.PU.Hidden:f.PU.Text;this.processKvp(t,a,s,l)})}}var Ye=i(72142),Xe=i(6632);const ze=Object.freeze({Login:"001",CreditCard:"002",SecureNote:"003",Identity:"004",Password:"005",Document:"006",SoftwareLicense:"100",BankAccount:"101",Database:"102",DriversLicense:"103",OutdoorLicense:"104",Membership:"105",Passport:"106",RewardsProgram:"107",SocialSecurityNumber:"108",WirelessRouter:"109",Server:"110",EmailAccount:"111",API_Credential:"112",MedicalRecord:"113",SSH_Key:"114"}),Le=Object.freeze({TextOrHtml:"T",EmailAddress:"E",URL:"U",Number:"N",Password:"P",TextArea:"A",PhoneNumber:"TEL",CheckBox:"C"});class We extends B.G{constructor(){super(...arguments),this.result=new w.h}parse(e){return JSON.parse(e).accounts[0].vaults.forEach(e=>{e.items.forEach(e=>{const t=this.initLoginCipher(),i=e.categoryUuid;switch(i){case ze.Login:case ze.Database:case ze.Password:case ze.WirelessRouter:case ze.Server:case ze.API_Credential:t.type=f.gC.Login,t.login=new V.r;break;case ze.CreditCard:case ze.BankAccount:t.type=f.gC.Card,t.card=new k.G;break;case ze.SecureNote:case ze.SoftwareLicense:case ze.EmailAccount:case ze.MedicalRecord:t.type=f.gC.SecureNote,t.secureNote=new G.Z,t.secureNote.type=f.ak.Generic;break;case ze.Identity:case ze.DriversLicense:case ze.OutdoorLicense:case ze.Membership:case ze.Passport:case ze.RewardsProgram:case ze.SocialSecurityNumber:t.type=f.gC.Identity,t.identity=new te.O;break;case ze.SSH_Key:t.type=f.gC.SshKey,t.sshKey=new Ye.H}t.favorite=1===e.favIndex,this.processOverview(e.overview,t),this.processLoginFields(e,t),this.processDetails(i,e.details,t),this.parsePasswordHistory(e.details.passwordHistory,t),this.processSections(i,e.details.sections,t),this.isNullOrWhitespace(e.details.notesPlain)||(t.notes=e.details.notesPlain.split(this.newLineRegex).join("\n").trimEnd()),this.convertToNoteIfNeeded(t),this.cleanupCipher(t),"archived"===e.state&&(t.archivedDate=new Date),this.result.ciphers.push(t)})}),this.organization&&this.moveFoldersToCollections(this.result),this.result.success=!0,Promise.resolve(this.result)}processOverview(e,t){if(null!=e){if(t.name=this.getValueOrDefault(e.title),null!=e.urls){const i=[];e.urls.forEach(e=>{this.isNullOrWhitespace(e.url)||i.push(e.url)}),t.login.uris=this.makeUriArray(i)}if(null!=e.tags&&e.tags.length>0){const t=this.capitalize(e.tags[0]);this.processFolder(this.result,t)}}}capitalize(e){return e.trim().replace(/\w\S*/g,e=>e.replace(/^\w/,e=>e.toUpperCase()))}processLoginFields(e,t){null!=e.details&&null!=e.details.loginFields&&0!==e.details.loginFields.length&&e.details.loginFields.forEach(e=>{if("username"===e.designation&&""!==e.value)return t.type=f.gC.Login,void(t.login.username=e.value);if("password"===e.designation&&""!==e.value)return t.type=f.gC.Login,void(t.login.password=e.value);let i=e.value,n=f.PU.Text;switch(e.fieldType){case Le.Password:n=f.PU.Hidden;break;case Le.CheckBox:i=""!==e.value?"true":"false",n=f.PU.Boolean}this.processKvp(t,e.name,i,n)})}processDetails(e,t,i){e===ze.Password&&null!=t&&(i.login.password=t.password)}processSections(e,t,i){null!=t&&0!==t.length&&t.forEach(t=>{null!=t.fields&&this.parseSectionFields(e,t.fields,i,t.title)})}parseSectionFields(e,t,i,n){t.forEach(t=>{const r=Object.keys(t.value)[0],s=t;if(null==s.value||null==s.value[r]||""===s.value[r])return;const o=this.getFieldName(t.title,n),a=this.extractValue(t.value,r);if(i.type===f.gC.Login){if(this.fillLogin(t,a,i))return;switch(e){case ze.Login:case ze.Database:case ze.EmailAccount:case ze.WirelessRouter:break;case ze.Server:if(this.isNullOrWhitespace(i.login.uri)&&"url"===t.id)return void(i.login.uris=this.makeUriArray(a));break;case ze.API_Credential:if(this.fillApiCredentials(t,a,i))return}}else if(i.type===f.gC.Card){if(this.fillCreditCard(t,a,i))return;if(e===ze.BankAccount&&this.fillBankAccount(t,a,i))return}else if(i.type===f.gC.Identity){if(this.fillIdentity(t,a,i,r))return;if("address"===r){const{street:e,city:n,country:r,zip:s,state:o}=t.value.address;return i.identity.address1=this.getValueOrDefault(e),i.identity.city=this.getValueOrDefault(n),this.isNullOrWhitespace(r)||(i.identity.country=r.toUpperCase()),i.identity.postalCode=this.getValueOrDefault(s),void(i.identity.state=this.getValueOrDefault(o))}switch(e){case ze.Identity:break;case ze.DriversLicense:if(this.fillDriversLicense(t,a,i))return;break;case ze.OutdoorLicense:if(this.fillOutdoorLicense(t,a,i))return;break;case ze.Membership:if(this.fillMembership(t,a,i))return;break;case ze.Passport:if(this.fillPassport(t,a,i))return;break;case ze.RewardsProgram:if(this.fillRewardsProgram(t,a,i))return;break;case ze.SocialSecurityNumber:if(this.fillSSN(t,a,i))return}}else if(i.type===f.gC.SshKey&&"sshKey"===r){const{privateKey:e}=t.value.sshKey.metadata,n=(0,Xe.import_ssh_key)(e);return i.sshKey.privateKey=n.privateKey,i.sshKey.publicKey=n.publicKey,void(i.sshKey.keyFingerprint=n.fingerprint)}if("email"===r){const{email_address:e,provider:n}=t.value.email;return this.processKvp(i,o,e,f.PU.Text),void this.processKvp(i,"provider",n,f.PU.Text)}if("password"===t.title&&null!=i.passwordHistory&&i.passwordHistory.some(e=>e.password===a))return;t.guarded&&i.reprompt===P.b.None&&(i.reprompt=P.b.Password);const l="concealed"===r?f.PU.Hidden:f.PU.Text;this.processKvp(i,o,a,l)})}getFieldName(e,t){return this.isNullOrWhitespace(e)?this.isNullOrWhitespace(t)?"":t:e}extractValue(e,t){return"date"===t?new Date(1e3*e.date).toUTCString():"monthYear"===t?e.monthYear.toString():e[t]}fillLogin(e,t,i){const n=this.getFieldName(e.title);return this.isNullOrWhitespace(i.login.username)&&"username"===n?(i.login.username=t,!0):this.isNullOrWhitespace(i.login.password)&&"password"===n?(i.login.password=t,!0):!(!this.isNullOrWhitespace(i.login.totp)||null==e.id||!e.id.startsWith("TOTP_"))&&(i.login.totp=t,!0)}fillApiCredentials(e,t,i){const n=this.getFieldName(e.title);return this.isNullOrWhitespace(i.login.password)&&"credential"===n?(i.login.password=t,!0):!(!this.isNullOrWhitespace(i.login.uri)||"hostname"!==n)&&(i.login.uris=this.makeUriArray(t),!0)}fillCreditCard(e,t,i){if(this.isNullOrWhitespace(i.card.number)&&"ccnum"===e.id)return i.card.number=t,i.card.brand=k.G.getCardBrandByPatterns(i.card.number),!0;if(this.isNullOrWhitespace(i.card.code)&&"cvv"===e.id)return i.card.code=t,!0;if(this.isNullOrWhitespace(i.card.cardholderName)&&"cardholder"===e.id)return i.card.cardholderName=t,!0;if(this.isNullOrWhitespace(i.card.expiration)&&"expiry"===e.id){const e=t.toString().trim();return i.card.expMonth=e.substring(4,6),"0"===i.card.expMonth[0]&&(i.card.expMonth=i.card.expMonth.substring(1,2)),i.card.expYear=e.substring(0,4),!0}return"type"===e.id}fillBankAccount(e,t,i){return!(!this.isNullOrWhitespace(i.card.cardholderName)||"owner"!==e.id)&&(i.card.cardholderName=t,!0)}fillIdentity(e,t,i,n){if(this.isNullOrWhitespace(i.identity.firstName)&&"firstname"===e.id)return i.identity.firstName=t,!0;if(this.isNullOrWhitespace(i.identity.lastName)&&"lastname"===e.id)return i.identity.lastName=t,!0;if(this.isNullOrWhitespace(i.identity.middleName)&&"initial"===e.id)return i.identity.middleName=t,!0;if(this.isNullOrWhitespace(i.identity.phone)&&"defphone"===e.id)return i.identity.phone=t,!0;if(this.isNullOrWhitespace(i.identity.company)&&"company"===e.id)return i.identity.company=t,!0;if(this.isNullOrWhitespace(i.identity.email)){if("email"===n){const{email_address:t,provider:n}=e.value.email;return i.identity.email=this.getValueOrDefault(t),this.processKvp(i,"provider",n,f.PU.Text),!0}if("email"===e.id)return i.identity.email=t,!0}return!(!this.isNullOrWhitespace(i.identity.username)||"username"!==e.id)&&(i.identity.username=t,!0)}fillDriversLicense(e,t,i){return this.isNullOrWhitespace(i.identity.firstName)&&"fullname"===e.id?(this.processFullName(i,t),!0):this.isNullOrWhitespace(i.identity.address1)&&"address"===e.id?(i.identity.address1=t,!0):this.isNullOrWhitespace(i.identity.country)&&"country"===e.id?(i.identity.country=t,!0):this.isNullOrWhitespace(i.identity.state)&&"state"===e.id?(i.identity.state=t,!0):!(!this.isNullOrWhitespace(i.identity.licenseNumber)||"number"!==e.id)&&(i.identity.licenseNumber=t,!0)}fillOutdoorLicense(e,t,i){return this.isNullOrWhitespace(i.identity.firstName)&&"name"===e.id?(this.processFullName(i,t),!0):this.isNullOrWhitespace(i.identity.country)&&"country"===e.id?(i.identity.country=t,!0):!(!this.isNullOrWhitespace(i.identity.state)||"state"!==e.id)&&(i.identity.state=t,!0)}fillMembership(e,t,i){return this.isNullOrWhitespace(i.identity.firstName)&&"member_name"===e.id?(this.processFullName(i,t),!0):this.isNullOrWhitespace(i.identity.company)&&"org_name"===e.id?(i.identity.company=t,!0):!(!this.isNullOrWhitespace(i.identity.phone)||"phone"!==e.id)&&(i.identity.phone=t,!0)}fillPassport(e,t,i){return this.isNullOrWhitespace(i.identity.firstName)&&"fullname"===e.id?(this.processFullName(i,t),!0):this.isNullOrWhitespace(i.identity.country)&&"issuing_country"===e.id?(i.identity.country=t,!0):!(!this.isNullOrWhitespace(i.identity.passportNumber)||"number"!==e.id)&&(i.identity.passportNumber=t,!0)}fillRewardsProgram(e,t,i){return this.isNullOrWhitespace(i.identity.firstName)&&"member_name"===e.id?(this.processFullName(i,t),!0):!(!this.isNullOrWhitespace(i.identity.company)||"company_name"!==e.id)&&(i.identity.company=t,!0)}fillSSN(e,t,i){return this.isNullOrWhitespace(i.identity.firstName)&&"name"===e.id?(this.processFullName(i,t),!0):!(!this.isNullOrWhitespace(i.identity.ssn)||"number"!==e.id)&&(i.identity.ssn=t,!0)}parsePasswordHistory(e,t){if(null==e||0===e.length)return;const i=e.length>5?5:e.length;t.passwordHistory=e.filter(e=>!this.isNullOrWhitespace(e.value)&&null!=e.time).sort((e,t)=>t.time-e.time).slice(0,i).map(e=>{const t=new Ne.j;return t.password=e.value,t.lastUsedDate=new Date((""+e.time).length>=13?e.time:1e3*e.time),t})}}class Ke{constructor(e,t,i){this.importRecord=e,this.property=t,this.cipher=i,this.lowerProperty=t.toLowerCase()}}const Ze=["ainfo","autosubmit","notesplain","ps","scope","tags","title","uuid","notes"];class He extends B.G{constructor(){super(...arguments),this.loginPropertyParsers=[this.setLoginUsername,this.setLoginPassword,this.setLoginUris],this.creditCardPropertyParsers=[this.setCreditCardNumber,this.setCreditCardVerification,this.setCreditCardCardholderName,this.setCreditCardExpiry],this.identityPropertyParsers=[this.setIdentityFirstName,this.setIdentityInitial,this.setIdentityLastName,this.setIdentityUserName,this.setIdentityEmail,this.setIdentityPhone,this.setIdentityCompany]}parse(e){const t=new w.h,i=this.parseCsv(e,!0,{quoteChar:'"',escapeChar:"\\"});return null==i?(t.success=!1,Promise.resolve(t)):(i.forEach(e=>{if(this.isNullOrWhitespace(this.getProp(e,"title")))return;const i=this.initLoginCipher();i.name=this.getValueOrDefault(this.getProp(e,"title"),"--"),this.setNotes(e,i),this.setCipherType(e,i);let n=null;for(const t in e){if(!e.hasOwnProperty(t)||this.isNullOrWhitespace(e[t]))continue;const r=new Ke(e,t,i);i.type===f.gC.Login&&this.setKnownLoginValue(r)||(i.type===f.gC.Card&&this.setKnownCreditCardValue(r)||i.type===f.gC.Identity&&this.setKnownIdentityValue(r)||(n=this.setUnknownValue(r,n)))}i.type===f.gC.Login&&!this.isNullOrWhitespace(n)&&this.isNullOrWhitespace(i.login.username)&&-1===n.indexOf("://")&&(i.login.username=n),this.convertToNoteIfNeeded(i),this.cleanupCipher(i),t.ciphers.push(i)}),t.success=!0,Promise.resolve(t))}getProp(e,t){return Object.entries(e).reduce((e,t)=>(e[t[0].toLowerCase()]=t[1],e),{})[t.toLowerCase()]}getPropByRegexp(e,t){const i=Object.keys(e).reduce((e,i)=>(i.match(t)&&e.push(i),e),[]);return 0===i.length?null:e[i[0]]}getPropIncluding(e,t){const i=Object.keys(e).reduce((e,i)=>(i.toLowerCase().includes(t.toLowerCase())&&e.push(i),e),[]);return 0===i.length?null:e[i[0]]}setNotes(e,t){t.notes=this.getValueOrDefault(this.getProp(e,"notesPlain"),"")+"\n"+this.getValueOrDefault(this.getProp(e,"notes"),"")+"\n",t.notes.trim()}setKnownLoginValue(e){return this.loginPropertyParsers.reduce((t,i)=>(t||(t=i.bind(this)(e)),t),!1)}setKnownCreditCardValue(e){return this.creditCardPropertyParsers.reduce((t,i)=>(t||(t=i.bind(this)(e)),t),!1)}setKnownIdentityValue(e){return this.identityPropertyParsers.reduce((t,i)=>(t||(t=i.bind(this)(e)),t),!1)}setUnknownValue(e,t){if(-1===Ze.indexOf(e.lowerProperty)&&!e.lowerProperty.startsWith("section:")&&!e.lowerProperty.startsWith("section ")){if(null==t&&"email"===e.lowerProperty)return e.importRecord[e.property];if("created date"===e.lowerProperty||"modified date"===e.lowerProperty){const t=new Date(1e3*parseInt(e.importRecord[e.property],10)).toUTCString();return this.processKvp(e.cipher,"1Password "+e.property,t),null}e.lowerProperty.includes("password")||e.lowerProperty.includes("key")||e.lowerProperty.includes("secret")?this.processKvp(e.cipher,e.property,e.importRecord[e.property],f.PU.Hidden):this.processKvp(e.cipher,e.property,e.importRecord[e.property])}return null}setIdentityFirstName(e){return!(!this.isNullOrWhitespace(e.cipher.identity.firstName)||!e.lowerProperty.includes("first name"))&&(e.cipher.identity.firstName=e.importRecord[e.property],!0)}setIdentityInitial(e){return!(!this.isNullOrWhitespace(e.cipher.identity.middleName)||!e.lowerProperty.includes("initial"))&&(e.cipher.identity.middleName=e.importRecord[e.property],!0)}setIdentityLastName(e){return!(!this.isNullOrWhitespace(e.cipher.identity.lastName)||!e.lowerProperty.includes("last name"))&&(e.cipher.identity.lastName=e.importRecord[e.property],!0)}setIdentityUserName(e){return!(!this.isNullOrWhitespace(e.cipher.identity.username)||!e.lowerProperty.includes("username"))&&(e.cipher.identity.username=e.importRecord[e.property],!0)}setIdentityCompany(e){return!(!this.isNullOrWhitespace(e.cipher.identity.company)||!e.lowerProperty.includes("company"))&&(e.cipher.identity.company=e.importRecord[e.property],!0)}setIdentityPhone(e){return!(!this.isNullOrWhitespace(e.cipher.identity.phone)||!e.lowerProperty.includes("default phone"))&&(e.cipher.identity.phone=e.importRecord[e.property],!0)}setIdentityEmail(e){return!(!this.isNullOrWhitespace(e.cipher.identity.email)||!e.lowerProperty.includes("email"))&&(e.cipher.identity.email=e.importRecord[e.property],!0)}setCreditCardNumber(e){return!(!this.isNullOrWhitespace(e.cipher.card.number)||!e.lowerProperty.includes("number"))&&(e.cipher.card.number=e.importRecord[e.property],e.cipher.card.brand=k.G.getCardBrandByPatterns(e.cipher.card.number),!0)}setCreditCardVerification(e){return!(!this.isNullOrWhitespace(e.cipher.card.code)||!e.lowerProperty.includes("verification number"))&&(e.cipher.card.code=e.importRecord[e.property],!0)}setCreditCardCardholderName(e){return!(!this.isNullOrWhitespace(e.cipher.card.cardholderName)||!e.lowerProperty.includes("cardholder name"))&&(e.cipher.card.cardholderName=e.importRecord[e.property],!0)}setCreditCardExpiry(e){return!(!this.isNullOrWhitespace(e.cipher.card.expiration)||!e.lowerProperty.includes("expiry date")||7!==e.importRecord[e.property].length)&&(e.cipher.card.expMonth=e.importRecord[e.property].substr(0,2),"0"===e.cipher.card.expMonth[0]&&(e.cipher.card.expMonth=e.cipher.card.expMonth.substr(1,1)),e.cipher.card.expYear=e.importRecord[e.property].substr(3,4),!0)}setLoginPassword(e){return!(!this.isNullOrWhitespace(e.cipher.login.password)||"password"!==e.lowerProperty)&&(e.cipher.login.password=e.importRecord[e.property],!0)}setLoginUsername(e){return!(!this.isNullOrWhitespace(e.cipher.login.username)||"username"!==e.lowerProperty)&&(e.cipher.login.username=e.importRecord[e.property],!0)}setLoginUris(e){if((null==e.cipher.login.uris||0===e.cipher.login.uris.length)&&"urls"===e.lowerProperty){const t=e.importRecord[e.property].split(this.newLineRegex);return e.cipher.login.uris=this.makeUriArray(t),!0}return"url"===e.lowerProperty&&(null==e.cipher.login.uris&&(e.cipher.login.uris=[]),e.cipher.login.uris.concat(this.makeUriArray(e.importRecord[e.property])),!0)}}class Je extends He{setCipherType(e,t){switch(this.getValueOrDefault(this.getProp(e,"type"),"Login")){case"Credit Card":t.type=f.gC.Card,t.card=new k.G,Ze.push("type");break;case"Identity":t.type=f.gC.Identity,t.identity=new te.O,Ze.push("type");break;case"Login":case"Secure Note":Ze.push("type")}}}class qe extends He{constructor(){super(),this.identityPropertyParsers.push(this.setIdentityAddress)}setCipherType(e,t){t.type=f.gC.Login,t.login=new V.r,this.isNullOrWhitespace(this.getPropByRegexp(e,/\d+: number/i))||this.isNullOrWhitespace(this.getPropByRegexp(e,/\d+: expiry date/i))||(t.type=f.gC.Card,t.card=new k.G),this.isNullOrWhitespace(this.getPropByRegexp(e,/name \d+: first name/i))&&this.isNullOrWhitespace(this.getPropByRegexp(e,/name \d+: initial/i))&&this.isNullOrWhitespace(this.getPropByRegexp(e,/name \d+: last name/i))&&this.isNullOrWhitespace(this.getPropByRegexp(e,/internet \d+: email/i))||(t.type=f.gC.Identity,t.identity=new te.O)}setIdentityAddress(e){return!!e.lowerProperty.match(/address \d+: address/i)&&(this.processKvp(e.cipher,"address",e.importRecord[e.property]),!0)}setCreditCardExpiry(e){if(this.isNullOrWhitespace(e.cipher.card.expiration)&&e.lowerProperty.includes("expiry date")){const t=e.importRecord[e.property].split("/");return e.cipher.card.expMonth=t[0],"0"===e.cipher.card.expMonth[0]&&2===e.cipher.card.expMonth.length&&(e.cipher.card.expMonth=e.cipher.card.expMonth.substr(1,1)),e.cipher.card.expYear=t[2].length>4?t[2].substr(0,4):t[2],!0}return!1}}class $e extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!1);if(null==i)return t.success=!1,Promise.resolve(t);let n=null;return i.forEach(e=>{if(null==n)return void(n=e.map(e=>e));if(e.length<2||e.length!==n.length)return;if(!this.isNullOrWhitespace(e[1]))if(this.organization){e[1].split(",").forEach(e=>{e=e.trim();let i=!0,n=t.collections.length;for(let r=0;r<t.collections.length;r++)if(t.collections[r].name===e){i=!1,n=r;break}if(i){const i=new u.iY({name:e});t.collections.push(i)}t.collectionRelationships.push([t.ciphers.length,n])})}else{const i=e[1].split(","),n=i.length>0?i[0].trim():null;this.processFolder(t,n)}const i=this.initLoginCipher();i.name=this.getValueOrDefault(e[0],"--");for(let t=2;t<e.length;t++){const r=n[t].trim().toLowerCase();this.isNullOrWhitespace(e[t])||this.isNullOrWhitespace(r)||(this.usernameFieldNames.indexOf(r)>-1?i.login.username=e[t]:this.passwordFieldNames.indexOf(r)>-1?i.login.password=e[t]:this.uriFieldNames.indexOf(r)>-1?i.login.uris=this.makeUriArray(e[t]):this.processKvp(i,n[t],e[t]))}this.cleanupCipher(i),t.ciphers.push(i)}),t.success=!0,Promise.resolve(t)}}class _e extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!0);return null==i?(t.success=!1,Promise.resolve(t)):(i.forEach(e=>{this.processFolder(t,this.getValue("category",e));const i=this.initLoginCipher();i.notes=this.getValue("description",e),i.name=this.getValueOrDefault(this.getValue("title",e),"--"),i.login.username=this.getValue("username",e),i.login.password=this.getValue("password",e),i.login.uris=this.makeUriArray(this.getValue("site",e)),this.processKvp(i,"Password 2",this.getValue("password2",e)),this.cleanupCipher(i),t.ciphers.push(i)}),this.organization&&this.moveFoldersToCollections(t),t.success=!0,Promise.resolve(t))}getValue(e,t){return this.getValueOrDefault(t[e],this.getValueOrDefault(t[" "+e]))}}class et extends B.G{parse(e){const t=new w.h,i=JSON.parse(e);return null==i||null==i.passwords||0===i.passwords.length?(t.success=!1,Promise.resolve(t)):1==i.encrypted?(t.success=!1,t.errorMessage="Unable to import an encrypted passky backup.",Promise.resolve(t)):(i.passwords.forEach(e=>{const i=this.initLoginCipher();i.name=e.website,i.login.username=e.username,i.login.password=e.password,i.login.uris=this.makeUriArray(e.website),i.notes=e.message,this.convertToNoteIfNeeded(i),this.cleanupCipher(i),t.ciphers.push(i)}),t.success=!0,Promise.resolve(t))}}class tt extends B.G{parse(e){const t=new w.h,i=JSON.parse(e);return null==i||0===i.length?(t.success=!1,Promise.resolve(t)):(i.forEach(e=>{if(null!=e.tags&&e.tags.length>0){const i=e.tags[0].text;this.processFolder(t,i)}const i=this.initLoginCipher();i.name=e.label,i.login.username=this.getValueOrDefault(e.username),this.isNullOrWhitespace(i.login.username)?i.login.username=this.getValueOrDefault(e.email):this.isNullOrWhitespace(e.email)||(i.notes="Email: "+e.email+"\n"),i.login.password=this.getValueOrDefault(e.password),i.login.uris=this.makeUriArray(e.url),i.notes+=this.getValueOrDefault(e.description,""),null!=e.otp&&(i.login.totp=this.getValueOrDefault(e.otp.secret)),null!=e.custom_fields&&e.custom_fields.forEach(e=>{switch(e.field_type){case"text":case"password":this.processKvp(i,e.label,e.value)}}),this.convertToNoteIfNeeded(i),this.cleanupCipher(i),t.ciphers.push(i)}),this.organization&&this.moveFoldersToCollections(t),t.success=!0,Promise.resolve(t))}}class it extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!0);return null==i?(t.success=!1,Promise.resolve(t)):(i.forEach(e=>{const i=this.isNullOrWhitespace(e.Tags)?null:JSON.parse(e.Tags),n=null!=i&&null!=i.tags&&i.tags.length>0?i.tags.map(e=>{try{const t=JSON.parse(e);return this.getValueOrDefault(t.tag)}catch(t){}return null}).filter(e=>!this.isNullOrWhitespace(e)):null;this.organization&&null!=n&&n.length>0?n.forEach(e=>{let i=!0,n=t.collections.length;for(let r=0;r<t.collections.length;r++)if(t.collections[r].name===e){i=!1,n=r;break}if(i){const i=new u.iY({name:e});t.collections.push(i)}t.collectionRelationships.push([t.ciphers.length,n])}):!this.organization&&null!=n&&n.length>0&&this.processFolder(t,n[0]);const r=this.initLoginCipher();r.notes=this.getValueOrDefault(e.Notes,""),r.notes+="\n\n"+this.getValueOrDefault(e["Shared Notes"],"")+"\n",r.name=this.getValueOrDefault(e["Entry Name"],"--"),r.login.username=this.getValueOrDefault(e["User ID"]),r.login.password=this.getValueOrDefault(e.Password),r.login.uris=this.makeUriArray(e.URL),null!=e.__parsed_extra&&e.__parsed_extra.length>0&&e.__parsed_extra.forEach(e=>{this.isNullOrWhitespace(e)||(r.notes+="\n"+e)});const s=this.isNullOrWhitespace(e["Extra Fields"])?null:JSON.parse(e["Extra Fields"]),o=null!=s&&null!=s.extraFields&&s.extraFields.length>0?s.extraFields.map(e=>{try{return JSON.parse(e)}catch(t){}return null}):null;null!=o&&o.forEach(e=>{null!=e&&this.processKvp(r,e.name,e.data)}),this.cleanupCipher(r),t.ciphers.push(r)}),t.success=!0,Promise.resolve(t))}}class nt extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!1);if(null==i)return t.success=!1,Promise.resolve(t);let n=!0;return i.forEach(e=>{if(5!==e.length&&e.length<9)return;const i=10===e.length&&"0"===e[0],r=this.initLoginCipher();if(r.name=this.getValueOrDefault(e[i?1:0],"--"),r.login.username=this.getValueOrDefault(e[i?2:1]),r.login.password=this.getValueOrDefault(e[i?3:2]),5===e.length)n=!1,r.notes=this.getValueOrDefault(e[4]),r.login.uris=this.makeUriArray(e[3]);else{const n=this.getValueOrDefault(e[i?9:8],"(None)");let s="(None)"!==n?n.split("\\").join("/"):null;null!=s&&(s=n.split(" > ").join("/"),s=n.split(">").join("/")),this.processFolder(t,s),r.notes=this.getValueOrDefault(e[i?5:3]),r.login.uris=this.makeUriArray(e[4])}this.convertToNoteIfNeeded(r),this.cleanupCipher(r),t.ciphers.push(r)}),n&&this.organization&&this.moveFoldersToCollections(t),t.success=!0,Promise.resolve(t)}}class rt extends B.G{parse(e){const t=new w.h,i=JSON.parse(e);if(null==i||null==i.items)return t.success=!1,Promise.resolve(t);const n=new Map;i.folders.forEach(e=>{n.set(e.id,e.name)});const r=new Map;return n.forEach((e,i)=>{r.set(i,t.folders.length);const n=new I.u;n.name=e,t.folders.push(n)}),i.items.forEach(e=>{const i=this.initLoginCipher();if(i.name=this.getValueOrDefault(e.name,"--"),i.login.uris=this.makeUriArray(e.login_url),null!=e.folder&&r.has(e.folder)&&t.folderRelationships.push([t.ciphers.length,r.get(e.folder)]),null!=e.identifiers){this.isNullOrWhitespace(e.identifiers.notes)||(i.notes=e.identifiers.notes.split("\\r\\n").join("\n").split("\\n").join("\n")),"CreditCard"===e.type&&(i.card=new k.G,i.type=f.gC.Card);for(const t in e.identifiers){if(!e.identifiers.hasOwnProperty(t))continue;const r=e.identifiers[t],s=null!=r?r.toString():null;if(!this.isNullOrWhitespace(s)&&"notes"!==t&&"ignoreItemInSecurityScore"!==t)if("custom_fields"!==t){if(i.type===f.gC.Card){if("cardNumber"===t){i.card.number=s,i.card.brand=k.G.getCardBrandByPatterns(i.card.number);continue}if("nameOnCard"===t){i.card.cardholderName=s;continue}if("security_code"===t){i.card.code=s;continue}if("expires"===t){try{const e=new Date(s);i.card.expYear=e.getFullYear().toString(),i.card.expMonth=(e.getMonth()+1).toString()}catch(n){}continue}if("cardType"===t)continue}else{if(("username"===t||"email"===t)&&this.isNullOrWhitespace(i.login.username)){i.login.username=s;continue}if("password"===t){i.login.password=s;continue}if("totp"===t){i.login.totp=s;continue}if((null==i.login.uris||0===i.login.uris.length)&&this.uriFieldNames.indexOf(t)>-1){i.login.uris=this.makeUriArray(s);continue}}this.processKvp(i,t,s)}else r.forEach(e=>{this.processKvp(i,e.name,e.value)})}this.convertToNoteIfNeeded(i),this.cleanupCipher(i),t.ciphers.push(i)}}),t.success=!0,Promise.resolve(t)}}const st=Object.freeze({Password:"0",CreditCard:"1",SoftwareLicense:"2",Identity:"3",Information:"4",Banking:"5",EncryptedFile:"6",Document:"7",RDP:"8",Putty:"9",TeamViewer:"10",Certificate:"11"}),ot=Object.freeze({Password:"1",Memo:"2",Date:"3",Number:"4",Boolean:"5",Decimal:"6",Email:"7",URL:"8"});class at extends B.G{constructor(){super(...arguments),this.result=new w.h,this._favouritesLookupTable=new Set}parse(e){const t=this.parseXml(e);if(null==t)return this.result.success=!1,Promise.resolve(this.result);const i=t.querySelector("passwordfile");if(null==i)return this.result.errorMessage="Missing `passwordfile` node.",this.result.success=!1,Promise.resolve(this.result);const n=this.querySelectorDirectChild(i,"header");if(null==n)return this.result.success=!1,Promise.resolve(this.result);let r=this.querySelectorDirectChild(n,"version");if(null==r&&(r=this.querySelectorDirectChild(n,"dataformat"),null==r))return this.result.success=!1,Promise.resolve(this.result);if(!r.textContent.startsWith("17"))return this.result.errorMessage="Unsupported export version detected - (only 17.0 is supported)",this.result.success=!1,Promise.resolve(this.result);const s=this.querySelectorDirectChild(n,"encrypted");if(null!=s&&"True"==s.textContent)return this.result.errorMessage="Encrypted Password Depot files are not supported.",this.result.success=!1,Promise.resolve(this.result);const o=i.querySelector("passwords");return null==o?(this.result.errorMessage="Missing `passwordfile > passwords` node.",this.result.success=!1,Promise.resolve(this.result)):(this.buildFavouritesLookupTable(i),this.querySelectorAllDirectChild(o,"group").forEach(e=>{this.traverse(e,"")}),this.organization&&this.moveFoldersToCollections(this.result),this.result.success=!0,Promise.resolve(this.result))}traverse(e,t){const i=this.result.folders.length;let n=t;""!==n&&(n+="/");const r=e.attributes.getNamedItem("fingerprint");if(""!=(null==r?void 0:r.textContent)&&"null"!=r.textContent){const t=e.attributes.getNamedItem("name");n+=null==t?"-":t.textContent;const i=new I.u;i.name=n,this.result.folders.push(i)}this.querySelectorAllDirectChild(e,"item").forEach(e=>{const t=this.result.ciphers.length,r=this.initLoginCipher();let s=st.Password;const o=e.children;for(let i=0;i<o.length;i++){const e=o[i];if("hitems"!==e.tagName)if("description"!==e.tagName)if("comment"!==e.tagName)if("type"!==e.tagName)(s!==st.Password&&s!==st.RDP&&s!==st.Putty&&s!==st.TeamViewer&&s!==st.Banking&&s!==st.Certificate&&s!==st.EncryptedFile||!this.parseLoginFields(e,r))&&("fingerprint"===e.tagName&&this._favouritesLookupTable.has(e.textContent)&&(r.favorite=!0),"customfields"!==e.tagName?s!==st.Banking||"tans"!==e.tagName?this.processKvp(r,e.tagName,e.textContent,f.PU.Text):this.querySelectorAllDirectChild(e,"tan").forEach(e=>{this.parseBankingTANs(e,r)}):this.parseCustomFields(e,s,r));else switch(s=e.textContent,s){case st.Password:case st.RDP:case st.Putty:case st.TeamViewer:case st.Banking:case st.Certificate:case st.EncryptedFile:r.type=f.gC.Login,r.login=new V.r;break;case st.CreditCard:r.type=f.gC.Card,r.card=new k.G;break;case st.SoftwareLicense:case st.Information:case st.Document:r.type=f.gC.SecureNote,r.secureNote=new G.Z,r.secureNote.type=f.ak.Generic;break;case st.Identity:r.type=f.gC.Identity,r.identity=new te.O}else r.notes=e.textContent;else r.name=e.textContent}this.cleanupCipher(r),this.result.ciphers.push(r),""!==n&&this.result.folderRelationships.push([t,i])}),this.querySelectorAllDirectChild(e,"group").forEach(e=>{this.traverse(e,n)})}parseCustomFields(e,t,i){this.querySelectorAllDirectChild(e,"field").forEach(e=>{const n=this.parseCustomField(e);if(null!=n){switch(t){case st.CreditCard:if(this.parseCreditCardCustomFields(n,i))return;break;case st.Identity:if(this.parseIdentityCustomFields(n,i))return;break;case st.Information:if(this.parseInformationCustomFields(n,i))return}this.processKvp(i,n.name,n.value,n.type)}})}parseLoginFields(e,t){return"username"===e.tagName?(t.login.username=e.textContent,!0):"password"===e.tagName?(t.login.password=e.textContent,!0):"url"===e.tagName&&(t.login.uris=this.makeUriArray(e.textContent),!0)}parseCustomField(e){let t,i,n,r=ot.Memo;if(e.hasAttributes()){if(t=e.getAttribute("name"),null==t)return null;i=e.getAttribute("value");const s=e.getAttribute("type");r=null!=s?s:ot.Memo,n=e.getAttribute("visible")}else{const s=this.querySelectorDirectChild(e,"name");if(t=null!=s?s.textContent:null,null==t)return null;const o=this.querySelectorDirectChild(e,"value");i=null!=o?o.textContent:null;const a=this.querySelectorDirectChild(e,"type");r=null!=a?a.textContent:ot.Memo;const l=this.querySelectorDirectChild(e,"visible");n=null!=l?l.textContent:null}if(r===ot.Date&&!isNaN(i)){const e=parseInt(i);i=new Date((e-25569)*(1e3*86400)).toLocaleDateString()}return r===ot.Password?{name:t,value:i,type:f.PU.Hidden,linkedId:null}:r===ot.Boolean?{name:t,value:i,type:f.PU.Boolean,linkedId:null}:"0"==n?{name:t,value:i,type:f.PU.Hidden,linkedId:null}:{name:t,value:i,type:f.PU.Text,linkedId:null}}parseCreditCardCustomFields(e,t){return"IDS_CardHolder"===e.name?(t.card.cardholderName=e.value,!0):"IDS_CardNumber"===e.name?(t.card.number=e.value,t.card.brand=k.G.getCardBrandByPatterns(t.card.number),!0):"IDS_CardExpires"===e.name?(this.setCardExpiration(t,e.value),!0):"IDS_CardCode"===e.name&&(t.card.code=e.value,!0)}parseIdentityCustomFields(e,t){return"IDS_IdentityName"===e.name?(this.processFullName(t,e.value),!0):"IDS_IdentityEmail"===e.name?(t.identity.email=e.value,!0):"IDS_IdentityFirstName"===e.name?(t.identity.firstName=e.value,!0):"IDS_IdentityLastName"===e.name?(t.identity.lastName=e.value,!0):"IDS_IdentityCompany"===e.name?(t.identity.company=e.value,!0):"IDS_IdentityAddress1"===e.name?(t.identity.address1=e.value,!0):"IDS_IdentityAddress2"===e.name?(t.identity.address2=e.value,!0):"IDS_IdentityCity"===e.name?(t.identity.city=e.value,!0):"IDS_IdentityState"===e.name?(t.identity.state=e.value,!0):"IDS_IdentityZIP"===e.name?(t.identity.postalCode=e.value,!0):"IDS_IdentityCountry"===e.name?(t.identity.country=e.value,!0):"IDS_IdentityPhone"===e.name&&(t.identity.phone=e.value,!0)}parseInformationCustomFields(e,t){return"IDS_InformationText"===e.name&&(t.notes=e.value,!0)}parseBankingTANs(e,t){let i="0";const n=e.children;for(let r=0;r<n.length;r++){const e=n[r];"number"!==e.tagName?this.processKvp(t,`tan_${i}_${e.tagName}`,e.textContent):i=e.textContent}}buildFavouritesLookupTable(e){const t=this.querySelectorDirectChild(e,"favorites");if(null==t)return;const i=atob(t.textContent);i.indexOf("\r\n")>0?i.split("\r\n").forEach(e=>{this._favouritesLookupTable.add(e)}):i.split("\n").forEach(e=>{this._favouritesLookupTable.add(e)})}}class lt extends B.G{parse(e){const t=new w.h,i=this.parseXml(e);if(null==i)return t.success=!1,Promise.resolve(t);const n=i.querySelectorAll("PasswordManager > record");return Array.from(n).forEach(e=>{const i=this.querySelectorDirectChild(e,"Category"),n=null==i||this.isNullOrWhitespace(i.textContent)||"Unfiled"===i.textContent?null:i.textContent;this.processFolder(t,n);const r=this.querySelectorDirectChild(e,"Account-Name"),s=this.querySelectorDirectChild(e,"User-Id"),o=this.querySelectorDirectChild(e,"Password"),a=this.querySelectorDirectChild(e,"URL"),l=this.querySelectorDirectChild(e,"Notes"),c=this.initLoginCipher();c.name=null!=r?this.getValueOrDefault(r.textContent,"--"):"--",c.notes=null!=l?this.getValueOrDefault(l.textContent):"",c.login.username=null!=s?this.getValueOrDefault(s.textContent):null,c.login.password=null!=o?this.getValueOrDefault(o.textContent):null,c.login.uris=null!=a?this.makeUriArray(a.textContent):null;const d=[];for(let t=1;t<=10;t++)d.push("Attribute-"+t);this.querySelectorAllDirectChild(e,d.join(",")).forEach(e=>{this.isNullOrWhitespace(e.textContent)||"null"===e.textContent||this.processKvp(c,e.tagName,e.textContent)}),this.cleanupCipher(c),t.ciphers.push(c)}),this.organization&&this.moveFoldersToCollections(t),t.success=!0,Promise.resolve(t)}}class ct extends B.G{parse(e){const t=new w.h,i=this.parseXml(e);if(null==i)return t.success=!1,Promise.resolve(t);const n=i.querySelector("passwordsafe");if(null==n)return t.errorMessage="Missing `passwordsafe` node.",t.success=!1,Promise.resolve(t);const r=n.getAttribute("delimiter"),s=i.querySelectorAll("passwordsafe > entry");return Array.from(s).forEach(e=>{const i=this.querySelectorDirectChild(e,"group"),n=null==i||this.isNullOrWhitespace(i.textContent)?null:i.textContent.split(".").join("/");this.processFolder(t,n);const s=this.querySelectorDirectChild(e,"title"),o=this.querySelectorDirectChild(e,"username"),a=this.querySelectorDirectChild(e,"email"),l=this.querySelectorDirectChild(e,"password"),c=this.querySelectorDirectChild(e,"url"),d=this.querySelectorDirectChild(e,"notes"),u=this.initLoginCipher();u.name=null!=s?this.getValueOrDefault(s.textContent,"--"):"--",u.notes=null!=d?this.getValueOrDefault(d.textContent,"").split(r).join("\n"):null,u.login.username=null!=o?this.getValueOrDefault(o.textContent):null,u.login.password=null!=l?this.getValueOrDefault(l.textContent):null,u.login.uris=null!=c?this.makeUriArray(c.textContent):null,this.isNullOrWhitespace(u.login.username)&&null!=a?u.login.username=this.getValueOrDefault(a.textContent):null==a||this.isNullOrWhitespace(a.textContent)||(u.notes=this.isNullOrWhitespace(u.notes)?"Email: "+a.textContent:u.notes+"\nEmail: "+a.textContent),this.cleanupCipher(u),t.ciphers.push(u)}),this.organization&&this.moveFoldersToCollections(t),t.success=!0,Promise.resolve(t)}}class dt extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!1);return null==i?(t.success=!1,Promise.resolve(t)):(i.forEach(e=>{if(e.length<1)return;e.length>5&&this.processFolder(t,e[5]);const i=this.initLoginCipher();i.name=this.getValueOrDefault(e[0],"--"),e.length>4&&(i.notes=this.getValueOrDefault(e[4],"").split("¬").join("\n")),e.length>2&&(i.login.username=this.getValueOrDefault(e[2])),e.length>3&&(i.login.password=this.getValueOrDefault(e[3])),e.length>1&&(i.login.uris=this.makeUriArray(e[1])),this.cleanupCipher(i),t.ciphers.push(i)}),this.organization&&this.moveFoldersToCollections(t),t.success=!0,Promise.resolve(t))}}const ut={Titel:"Title",Gebruikersnaam:"Username",Wachtwoord:"Password",Gewijzigd:"Modified",Gemaakt:"Created","Verloopt op":"Expire on",Beschrijving:"Description","Gewijzigd door":"Modified by"},ht={Titel:"Title",Benutzername:"Username",Konto:"Account",Passwort:"Password","Geändert am":"Modified","Erstellt am":"Created","Läuft ab am":"Expire on",Beschreibung:"Description","Geändert von":"Modified by"},At=new Set(["Title","Username","URL","Password","Description"]);function pt(e){return Object.assign(Object.assign({"User name":"Username"},ht),ut)[e]||e}class gt extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!0,{skipEmptyLines:!0,transformHeader:pt});if(null==i)return t.success=!1,Promise.resolve(t);if(!i[0].Title)return t.success=!1,Promise.resolve(t);let n="";return i.forEach(e=>{if(">>>"==e.Title)return;const i=e.Title;if(i.startsWith("[")&&i.endsWith("]"))return void(n=i.startsWith("/")?i.replace("/",""):i.substring(1,i.length-1));m.A.isNullOrWhitespace(n)||this.processFolder(t,n);const r=this.initLoginCipher();r.name=this.getValueOrDefault(e.Title),r.login.username=this.getValueOrDefault(e.Username),r.notes=this.getValueOrDefault(e.Description),r.login.uris=this.makeUriArray(e.URL),r.login.password=this.getValueOrDefault(e.Password),this.importUnmappedFields(r,e,At),this.convertToNoteIfNeeded(r),this.cleanupCipher(r),t.ciphers.push(r)}),this.organization&&this.moveFoldersToCollections(t),t.success=!0,Promise.resolve(t)}importUnmappedFields(e,t,i){Object.keys(t).filter(e=>!i.has(e)).forEach(i=>{const n=t;this.processKvp(e,i,n[i])})}}function vt(e,t,i,n){let r=t,s=i,o=n;if(e){const a=e.trim().split(/\s+/);r=a[0]||t,o=a.length>1?a[a.length-1]:n,s=a.length>2?a.slice(1,-1).join(" "):i}return{mappedFirstName:r,mappedMiddleName:s,mappedLastName:o}}const mt=Object.freeze({ACTIVE:1,TRASHED:2});class ft extends B.G{constructor(e){super(),this.i18nService=e,this.mappedIdentityItemKeys=["fullName","firstName","middleName","lastName","email","phoneNumber","company","socialSecurityNumber","passportNumber","licenseNumber","organization","streetAddress","floor","county","city","stateOrProvince","zipOrPostalCode","countryOrRegion"],this.identityItemExtraFieldsKeys=["extraPersonalDetails","extraAddressDetails","extraContactDetails","extraWorkDetails","extraSections"]}processIdentityItemUnmappedAndExtraFields(e,t){Object.keys(t).forEach(i=>{if(this.mappedIdentityItemKeys.includes(i)||this.identityItemExtraFieldsKeys.includes(i)){if(this.identityItemExtraFieldsKeys.includes(i))if("extraSections"!==i){const n=t[i];null==n||n.forEach(t=>{this.processKvp(e,t.fieldName,t.data.content,"hidden"===t.type?f.PU.Hidden:f.PU.Text)})}else{const n=t[i];null==n||n.forEach(t=>{var i;null===(i=t.sectionFields)||void 0===i||i.forEach(t=>{this.processKvp(e,t.fieldName,t.data.content,"hidden"===t.type?f.PU.Hidden:f.PU.Text)})})}}else this.processKvp(e,i,t[i])})}parse(e){var t,i;const n=new w.h,r=JSON.parse(e);if(null==r||null==r.vaults)return n.success=!1,Promise.resolve(n);if(r.encrypted)return n.success=!1,n.errorMessage=this.i18nService.t("unsupportedEncryptedImport"),Promise.resolve(n);for(const[,s]of Object.entries(r.vaults))for(const e of s.items){if(e.state==mt.TRASHED)continue;const r=this.initLoginCipher();switch(r.name=this.getValueOrDefault(e.data.metadata.name,"--"),r.notes=this.getValueOrDefault(e.data.metadata.note),r.favorite=e.pinned,e.data.type){case"login":{const t=e.data.content;r.login.uris=this.makeUriArray(t.urls),r.login.username=this.getValueOrDefault(t.itemUsername),null==r.login.username?r.login.username=this.getValueOrDefault(t.itemEmail):this.processKvp(r,"email",t.itemEmail),r.login.password=this.getValueOrDefault(t.password),r.login.totp=this.getValueOrDefault(t.totpUri);for(const i of e.data.extraFields)this.processKvp(r,i.fieldName,"totp"==i.type?i.data.totpUri:i.data.content,"text"==i.type?f.PU.Text:f.PU.Hidden);break}case"note":r.type=f.gC.SecureNote,r.secureNote=new G.Z,r.secureNote.type=f.ak.Generic;break;case"creditCard":{const t=e.data.content;r.type=f.gC.Card,r.card=new k.G,r.card.cardholderName=this.getValueOrDefault(t.cardholderName),r.card.number=this.getValueOrDefault(t.number),r.card.brand=k.G.getCardBrandByPatterns(t.number),r.card.code=this.getValueOrDefault(t.verificationNumber),this.isNullOrWhitespace(t.expirationDate)||(r.card.expMonth=t.expirationDate.substring(5,7),r.card.expMonth=r.card.expMonth.replace(/^0+/,""),r.card.expYear=t.expirationDate.substring(0,4)),this.isNullOrWhitespace(t.pin)||this.processKvp(r,"PIN",t.pin,f.PU.Hidden);break}case"identity":{const n=e.data.content;r.type=f.gC.Identity,r.identity=new te.O;const{mappedFirstName:s,mappedMiddleName:o,mappedLastName:a}=vt(this.getValueOrDefault(n.fullName),this.getValueOrDefault(n.firstName),this.getValueOrDefault(n.middleName),this.getValueOrDefault(n.lastName));r.identity.firstName=s,r.identity.middleName=o,r.identity.lastName=a,r.identity.email=this.getValueOrDefault(n.email),r.identity.phone=this.getValueOrDefault(n.phoneNumber),r.identity.company=this.getValueOrDefault(n.company),r.identity.ssn=this.getValueOrDefault(n.socialSecurityNumber),r.identity.passportNumber=this.getValueOrDefault(n.passportNumber),r.identity.licenseNumber=this.getValueOrDefault(n.licenseNumber);const l=`${null!==(t=n.floor)&&void 0!==t?t:""} ${null!==(i=n.county)&&void 0!==i?i:""}`.trim();r.identity.address1=this.getValueOrDefault(n.organization),r.identity.address2=this.getValueOrDefault(n.streetAddress),r.identity.address3=this.getValueOrDefault(l),r.identity.city=this.getValueOrDefault(n.city),r.identity.state=this.getValueOrDefault(n.stateOrProvince),r.identity.postalCode=this.getValueOrDefault(n.zipOrPostalCode),r.identity.country=this.getValueOrDefault(n.countryOrRegion),this.processIdentityItemUnmappedAndExtraFields(r,n);for(const t of e.data.extraFields)this.processKvp(r,t.fieldName,t.data.content,"hidden"===t.type?f.PU.Hidden:f.PU.Text);break}default:continue}this.processFolder(n,s.name),this.cleanupCipher(r),n.ciphers.push(r)}return this.organization&&this.moveFoldersToCollections(n),n.success=!0,Promise.resolve(n)}}class yt extends B.G{constructor(){super(...arguments),this.WEBSITE_mappedValues=new Set(["type","name","website_password_title","website_password_notes","website_password_username","website_password_password","website_password_url","autosubmit","website_password_auto_submit","urlfilter","website_password_url_filter"]),this.APP_PWD_mappedValues=new Set(["type","name","application_password_title","application_password_notes","application_password_username","application_password_password"]),this.BOOKMARK_mappedValues=new Set(["type","name","bookmark_title","bookmark_notes","bookmark_url"]),this.NOTES_mappedValues=new Set(["type","name","note_title","note_notes"]),this.TOTP_mappedValues=new Set(["type","name","totp_title","totp_notes","totp_code"]),this.ENV_VARIABLES_mappedValues=new Set(["type","name","environment_variables_title","environment_variables_notes","environment_variables_variables"]),this.GPG_mappedValues=new Set(["type","name","mail_gpg_own_key_title","mail_gpg_own_key_public","mail_gpg_own_key_name","mail_gpg_own_key_email","mail_gpg_own_key_private"])}parse(e){const t=new w.h,i=JSON.parse(e);return null==i?(t.success=!1,Promise.resolve(t)):(this.parseFolders(t,i.folders),this.handleItemParsing(t,i.items),this.organization&&this.moveFoldersToCollections(t),t.success=!0,Promise.resolve(t))}parseFolders(e,t,i){null!=t&&0!==t.length&&t.forEach(t=>{const n=null!=t.items&&t.items.length>0,r=null!=t.folders&&t.folders.length>0;(n||r)&&(m.A.isNullOrWhitespace(i)||(t.name=i+"/"+t.name),r&&this.parseFolders(e,t.folders,t.name),n?this.handleItemParsing(e,t.items,t.name):this.processFolder(e,t.name,n))})}handleItemParsing(e,t,i){null!=t&&0!==t.length&&t.forEach(t=>{const n=this.parsePsonoItem(t);this.processFolder(e,i,!0),this.cleanupCipher(n),e.ciphers.push(n)})}parsePsonoItem(e){const t=this.initLoginCipher();switch(e.type){case"website_password":this.parseWebsiteLogins(e,t);break;case"application_password":this.parseApplicationPasswords(e,t);break;case"environment_variables":this.parseEnvironmentVariables(e,t);break;case"totp":this.parseTOTP(e,t);break;case"bookmark":this.parseBookmarks(e,t);break;case"note":this.parseNotes(e,t)}return t}parseWebsiteLogins(e,t){var i;null!=e&&"website_password"==e.type&&(t.name=e.website_password_title,t.notes=e.website_password_notes,t.login.username=e.website_password_username,t.login.password=e.website_password_password,t.login.uris=this.makeUriArray(e.website_password_url),this.processKvp(t,"website_password_auto_submit",null===(i=e.website_password_auto_submit)||void 0===i?void 0:i.toString(),f.PU.Boolean),this.processKvp(t,"website_password_url_filter",e.website_password_url_filter),this.importUnmappedFields(t,e,this.WEBSITE_mappedValues))}parseApplicationPasswords(e,t){null!=e&&"application_password"==e.type&&(t.name=e.application_password_title,t.notes=e.application_password_notes,t.login.username=e.application_password_username,t.login.password=e.application_password_password,this.importUnmappedFields(t,e,this.APP_PWD_mappedValues))}parseBookmarks(e,t){null!=e&&"bookmark"==e.type&&(t.name=e.bookmark_title,t.notes=e.bookmark_notes,t.login.uris=this.makeUriArray(e.bookmark_url),this.importUnmappedFields(t,e,this.BOOKMARK_mappedValues))}parseNotes(e,t){null!=e&&"note"==e.type&&(t.type=f.gC.SecureNote,t.secureNote=new G.Z,t.secureNote.type=f.ak.Generic,t.name=e.note_title,t.notes=e.note_notes,this.importUnmappedFields(t,e,this.NOTES_mappedValues))}parseTOTP(e,t){null!=e&&"totp"==e.type&&(t.name=e.totp_title,t.notes=e.totp_notes,t.login.totp=e.totp_code,this.importUnmappedFields(t,e,this.TOTP_mappedValues))}parseEnvironmentVariables(e,t){null!=e&&"environment_variables"==e.type&&(t.type=f.gC.SecureNote,t.secureNote=new G.Z,t.secureNote.type=f.ak.Generic,t.name=e.environment_variables_title,t.notes=e.environment_variables_notes,e.environment_variables_variables.forEach(e=>{this.processKvp(t,e.key,e.value)}),this.importUnmappedFields(t,e,this.ENV_VARIABLES_mappedValues))}parseGPG(e,t){null!=e&&"mail_gpg_own_key"==e.type&&(t.type=f.gC.SecureNote,t.secureNote=new G.Z,t.secureNote.type=f.ak.Generic,t.name=e.mail_gpg_own_key_title,t.notes=e.mail_gpg_own_key_public,this.processKvp(t,"mail_gpg_own_key_name",e.mail_gpg_own_key_name),this.processKvp(t,"mail_gpg_own_key_email",e.mail_gpg_own_key_email),this.processKvp(t,"mail_gpg_own_key_private",e.mail_gpg_own_key_private,f.PU.Hidden),this.importUnmappedFields(t,e,this.GPG_mappedValues))}importUnmappedFields(e,t,i){Object.keys(t).filter(e=>!i.has(e)).forEach(i=>{const n=t;this.processKvp(e,i,n[i].toString())})}}class bt extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!0);return null==i?(t.success=!1,Promise.resolve(t)):(i.forEach(e=>{if("true"===e.trash)return;const i=this.initLoginCipher();if(i.name=this.getValueOrDefault(e.name),i.notes=this.getValueOrDefault(e.notes),"LoginItem"===e.type)i.login.uris=this.makeUriArray(e.website),i.login.password=this.getValueOrDefault(e.password),i.login.username=this.getValueOrDefault(e.username);else if("CreditCardItem"===e.type){i.type=f.gC.Card,i.card=new k.G,i.card.cardholderName=this.getValueOrDefault(e.cardholder),i.card.number=this.getValueOrDefault(e.number),i.card.brand=k.G.getCardBrandByPatterns(i.card.number),i.card.code=this.getValueOrDefault(e.verification);try{const t=this.getValueOrDefault(e.expiryMonth);if(null!=t){const e=parseInt(t,null);null!=e&&e>=1&&e<=12&&(i.card.expMonth=e.toString())}}catch(n){}try{const t=this.getValueOrDefault(e.expiryYear);if(null!=t){const e=parseInt(t,null);null!=e&&(i.card.expYear=e.toString())}}catch(r){}const t=this.getValueOrDefault(e.pin);null!=t&&this.processKvp(i,"PIN",t);const s=this.getValueOrDefault(e.zipCode);null!=s&&this.processKvp(i,"Zip Code",s)}this.cleanupCipher(i),t.ciphers.push(i)}),t.success=!0,Promise.resolve(t))}}class Ct extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!0);if(null==i)return t.success=!1,Promise.resolve(t);let n=1;return i.forEach(e=>{var r,s;const o=!this.isNullOrWhitespace(e.Folder)&&e.Folder.startsWith("/")?e.Folder.replace("/",""):e.Folder,a=this.isNullOrWhitespace(o)?null:o;this.processFolder(t,a);const l=this.initLoginCipher();l.notes=this.getValueOrDefault(e.Note),l.name=this.getValueOrDefault(e.Name,"--"),l.login.username=this.getValueOrDefault(e.Login),l.login.password=null!==(r=this.getValueOrDefault(e.Pwd))&&void 0!==r?r:this.getValueOrDefault(e.Password),l.login.uris=null!==(s=this.makeUriArray(e.Url))&&void 0!==s?s:this.makeUriArray(e.URL),this.isNullOrWhitespace(e.Rf_fields)?this.isNullOrWhitespace(e.RfFieldsV2)||this.parseRfFieldsV2(l,e):this.parseRfFields(l,e),this.convertToNoteIfNeeded(l),this.cleanupCipher(l),n===i.length&&"--"===l.name&&this.isNullOrWhitespace(l.login.password)||(t.ciphers.push(l),n++)}),this.organization&&this.moveFoldersToCollections(t),t.success=!0,Promise.resolve(t)}parseRfFields(e,t){let i=[t.Rf_fields];null!=t.__parsed_extra&&t.__parsed_extra.length>0&&(i=i.concat(t.__parsed_extra)),i.forEach(t=>{const i=t.split(":");if(i.length<3)return;const n="-no-name-"===i[0]?null:i[0],r=4===i.length&&"rck"===i[2]?i[1]:i[2];this.processKvp(e,n,r)})}parseRfFieldsV2(e,t){let i=[t.RfFieldsV2];null!=t.__parsed_extra&&t.__parsed_extra.length>0&&(i=i.concat(t.__parsed_extra));let n=1,r=1;i.forEach(t=>{const i=t.split(",");if(i.length<5)return;const s="-no-name-"===i[0]?null:i[0],o="pwd"===i[3]?f.PU.Hidden:f.PU.Text,a=i[4];if("TOTP KEY$"===s)return void(e.login.totp=a);if("User ID$"===s&&a===e.login.username)return;if("Password$"===s&&a===e.login.password)return;let l=s;"User ID$"===s?l="Alternate User ID "+n++:"Password$"===s&&(l="Alternate Password "+r++),this.processKvp(e,l,a,o)})}}class It extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!0);return null==i?(t.success=!1,Promise.resolve(t)):(i.forEach(e=>{var i;const n=this.initLoginCipher();n.name=this.getValueOrDefault(e.Title,"--"),n.login.username=this.getValueOrDefault(e.Username),n.login.password=this.getValueOrDefault(e.Password),n.login.uris=this.makeUriArray(null!==(i=e.Url)&&void 0!==i?i:e.URL),n.login.totp=this.getValueOrDefault(e.OTPAuth),n.notes=this.getValueOrDefault(e.Notes),this.cleanupCipher(n),t.ciphers.push(n)}),t.success=!0,Promise.resolve(t))}}class wt extends B.G{parse(e){const t=new w.h,i=this.parseXml(e);if(null==i)return t.success=!1,Promise.resolve(t);if(null==i.querySelector("database"))return t.errorMessage="Missing `database` node.",t.success=!1,Promise.resolve(t);const n=new Map;return Array.from(i.querySelectorAll("database > label")).forEach(e=>{const i=e.getAttribute("name"),r=e.getAttribute("id");if(!this.isNullOrWhitespace(i)&&!this.isNullOrWhitespace(r)){n.set(r,t.folders.length);const e=new I.u;e.name=i,t.folders.push(e)}}),Array.from(i.querySelectorAll("database > card")).forEach(e=>{if("true"===e.getAttribute("template")||"true"===e.getAttribute("deleted"))return;const i=this.querySelectorDirectChild(e,"label_id");if(null!=i){const e=i.textContent;!this.isNullOrWhitespace(e)&&n.has(e)&&t.folderRelationships.push([t.ciphers.length,n.get(e)])}const r=this.initLoginCipher();r.name=this.getValueOrDefault(e.getAttribute("title"),"--"),"true"===e.getAttribute("star")&&(r.favorite=!0);"note"===e.getAttribute("type")?(r.type=f.gC.SecureNote,r.secureNote=new G.Z,r.secureNote.type=f.ak.Generic):Array.from(this.querySelectorAllDirectChild(e,"field")).forEach(e=>{const t=e.textContent;if(this.isNullOrWhitespace(t))return;const i=e.getAttribute("name"),n=this.getValueOrDefault(e.getAttribute("type"),"").toLowerCase();"login"===n?r.login.username=t:"password"===n||"secret"===n?this.processKvp(r,i,t,f.PU.Hidden):"one_time_password"===n?r.login.totp=t:"notes"===n?r.notes+=t+"\n":"weblogin"===n||"website"===n?r.login.uris.push(...this.makeUriArray(t)):this.processKvp(r,i,t)}),Array.from(this.querySelectorAllDirectChild(e,"notes")).forEach(e=>{r.notes+=e.textContent+"\n"}),this.setPassword(r),this.cleanupCipher(r),t.ciphers.push(r)}),this.organization&&this.moveFoldersToCollections(t),t.success=!0,Promise.resolve(t)}setPassword(e){const t=e.fields.filter(e=>e.type===f.PU.Hidden);if(!t.length)return;let i;for(const n of t)if(this.passwordFieldNames.includes(n.name.toLowerCase())){i=n,e.fields=e.fields.filter(e=>e!==i);break}i||(i=t[0]),e.login.password=i.value}}class Bt extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!0);return null==i?(t.success=!1,Promise.resolve(t)):(i.forEach(e=>{const i=this.initLoginCipher();i.name=this.getValueOrDefault(this.nameFromUrl(e.url),"--"),i.notes=this.getValueOrDefault(e.notes),i.login.username=this.getValueOrDefault(e.username),i.login.password=this.getValueOrDefault(e.password),i.login.uris=this.makeUriArray(e.url),this.cleanupCipher(i),t.ciphers.push(i)}),t.success=!0,Promise.resolve(t))}}class Et extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!0);if(null==i)return t.success=!1,Promise.resolve(t);const n=Object.keys(i[0]).find(e=>/url/i.test(e));return i.forEach(e=>{const i=this.initLoginCipher();i.name=this.getValueOrDefault(e.Title),i.notes=this.getValueOrDefault(e.Comment),i.login.uris=this.makeUriArray(e[n]),i.login.password=this.getValueOrDefault(e.Password),i.login.username=this.getValueOrDefault(e.Username),this.cleanupCipher(i),t.ciphers.push(i)}),t.success=!0,Promise.resolve(t)}}class St extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!1);return null==i?(t.success=!1,Promise.resolve(t)):(i.forEach(e=>{if(e.length<3)return;this.processFolder(t,this.getValueOrDefault(e[e.length-1]));const i=this.initLoginCipher();i.notes=this.getValueOrDefault(e[e.length-2],""),i.name=this.getValueOrDefault(e[1],"--"),"Web Logins"===e[0]||"Servers"===e[0]||"Email Accounts"===e[0]?(i.login.username=this.getValueOrDefault(e[2]),i.login.password=this.getValueOrDefault(e[3]),i.login.uris=this.makeUriArray(e[4]),this.parseFieldsToNotes(i,5,e)):this.parseFieldsToNotes(i,2,e),this.convertToNoteIfNeeded(i),this.cleanupCipher(i),t.ciphers.push(i)}),this.organization&&this.moveFoldersToCollections(t),t.success=!0,Promise.resolve(t))}parseFieldsToNotes(e,t,i){for(let n=t;n<i.length-3;n++)this.isNullOrWhitespace(i[n])||(e.notes+=i[n]+"\n")}}class Qt extends B.G{parse(e){const t=new w.h,i=this.parseXml(e);if(null==i)return t.success=!1,Promise.resolve(t);const n=i.querySelectorAll("root > Database > Logins > Login");return Array.from(n).forEach(e=>{const n=e.getAttribute("ID");if(this.isNullOrWhitespace(n))return;const r=e.getAttribute("Name"),s=e.getAttribute("Password");let o=null,a=null,l=null,c=null,d=null;const u=i.querySelector('root > Database > Accounts > Account > LoginLinks > Login[SourceLoginID="'+n+'"]');if(null!=u){const e=u.parentElement.parentElement;null!=e&&(o=e.getAttribute("Name"),a=e.getAttribute("Link"),c=e.getAttribute("ParentID"),l=e.getAttribute("Comments"),this.isNullOrWhitespace(l)||(l=l.split("/n").join("\n")))}this.isNullOrWhitespace(c)||(d=this.buildGroupText(i,c,""),this.processFolder(t,d));const h=this.initLoginCipher();h.name=this.getValueOrDefault(o,"--"),h.notes=this.getValueOrDefault(l),h.login.username=this.getValueOrDefault(r),h.login.password=this.getValueOrDefault(s),h.login.uris=this.makeUriArray(a),this.cleanupCipher(h),t.ciphers.push(h)}),this.organization&&this.moveFoldersToCollections(t),t.success=!0,Promise.resolve(t)}buildGroupText(e,t,i){const n=e.querySelector('root > Database > Groups > Group[ID="'+t+'"]');return null==n?i:(this.isNullOrWhitespace(i)||(i="/"+i),i=n.getAttribute("Name")+i,this.buildGroupText(e,n.getAttribute("ParentID"),i))}}const kt=["kind","autologin","favorite","hexcolor","protectedwithpassword","subdomainonly","type","tk_export_version","note","title","document_content"];class Rt extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!0);return null==i?(t.success=!1,Promise.resolve(t)):(i.forEach(e=>{const i=this.initLoginCipher();if(i.favorite="true"===this.getValueOrDefault(e.favorite,"").toLowerCase(),i.name=this.getValueOrDefault(e.name,"--"),i.notes=this.getValueOrDefault(e.memo,""),i.login.username=this.getValueOrDefault(e.login),i.login.password=this.getValueOrDefault(e.password),i.login.uris=this.makeUriArray(e.url),"login"!==e.kind&&(i.name=this.getValueOrDefault(e.title,"--"),i.notes=this.getValueOrDefault(e.note,"")),"cc"===e.kind){if(i.type=f.gC.Card,i.card=new k.G,i.card.cardholderName=this.getValueOrDefault(e.cardholder),i.card.number=this.getValueOrDefault(e.number),i.card.brand=k.G.getCardBrandByPatterns(i.card.number),!this.isNullOrWhitespace(e.expiryDate))try{const t=new Date(e.expiryDate);i.card.expYear=t.getFullYear().toString(),i.card.expMonth=(t.getMonth()+1).toString()}catch(n){}}else if("login"!==e.kind){i.type=f.gC.SecureNote,i.secureNote=new G.Z,i.secureNote.type=f.ak.Generic,this.isNullOrWhitespace(i.notes)||(i.notes=this.getValueOrDefault(e.document_content,""));for(const t in e)e.hasOwnProperty(t)&&kt.indexOf(t.toLowerCase())<0&&!this.isNullOrWhitespace(e[t])&&this.processKvp(i,t,e[t])}this.cleanupCipher(i),t.ciphers.push(i)}),t.success=!0,Promise.resolve(t))}}class Ft extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!1);return null==i?(t.success=!1,Promise.resolve(t)):(i.forEach(e=>{if(5!==e.length)return;const i=this.initLoginCipher();i.name=this.getValueOrDefault(e[0],"--"),i.notes=this.getValueOrDefault(e[4]),i.login.username=this.getValueOrDefault(e[1]),i.login.password=this.getValueOrDefault(e[2]),i.login.uris=this.makeUriArray(e[3]),this.cleanupCipher(i),t.ciphers.push(i)}),t.success=!0,Promise.resolve(t))}}class Tt extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!0);return null==i?(t.success=!1,Promise.resolve(t)):(i.forEach(e=>{const i=this.initLoginCipher();i.name=this.getValueOrDefault(e.Name,"--"),i.login.username=this.getValueOrDefault(e["User name"]),i.login.password=this.getValueOrDefault(e.Password),i.login.uris=this.makeUriArray(e.URL),this.cleanupCipher(i),t.ciphers.push(i)}),t.success=!0,Promise.resolve(t))}}class Dt extends B.G{parse(e){const t=new w.h,i=this.parseCsv(e,!0);return null==i?(t.success=!1,Promise.resolve(t)):(i.forEach(e=>{if(this.isNullOrWhitespace(e["Password Name"])&&this.isNullOrWhitespace(e["Secret Name"]))return;this.processFolder(t,this.getValueOrDefault(e["Folder Name"]));const i=this.initLoginCipher();i.favorite="1"===this.getValueOrDefault(e.Favorite,"0"),i.notes=this.getValueOrDefault(e.Notes),i.name=this.getValueOrDefault(e["Password Name"],this.getValueOrDefault(e["Secret Name"],"--")),i.login.uris=this.makeUriArray(this.getValueOrDefault(e["Password URL"],this.getValueOrDefault(e["Secret URL"]))),i.login.totp=this.getValueOrDefault(e.TOTP,this.getValueOrDefault(e.login_totp)),this.parseData(i,e.SecretData),this.parseData(i,e.CustomData),this.convertToNoteIfNeeded(i),this.cleanupCipher(i),t.ciphers.push(i)}),this.organization&&this.moveFoldersToCollections(t),t.success=!0,Promise.resolve(t))}parseData(e,t){if(this.isNullOrWhitespace(t))return;this.splitNewLine(t).forEach(t=>{const i=t.indexOf(":");if(i<0)return;const n=t.substring(0,i),r=t.length>i?t.substring(i+1):null;if(this.isNullOrWhitespace(n)||this.isNullOrWhitespace(r)||"SecretType"===n)return;const s=n.toLowerCase();null==e.login.username&&this.usernameFieldNames.indexOf(s)>-1?e.login.username=r:null==e.login.password&&this.passwordFieldNames.indexOf(s)>-1?e.login.password=r:this.processKvp(e,n,r)})}}const Pt=[{id:"bitwardenjson",name:"Bitwarden (json)"},{id:"bitwardencsv",name:"Bitwarden (csv)"},{id:"chromecsv",name:"Chrome"},{id:"dashlanecsv",name:"Dashlane (csv)"},{id:"firefoxcsv",name:"Firefox (csv)"},{id:"keepass2xml",name:"KeePass 2 (xml)"},{id:"keeper",name:"Keeper"},{id:"lastpasscsv",name:"LastPass"},{id:"safaricsv",name:"Safari and macOS (csv)"},{id:"1password1pux",name:"1Password (1pux/json)"}],Mt=[{id:"keepasskdbx",name:"KeePass (kdbx)"},{id:"keepassxcsv",name:"KeePassX (csv)"},{id:"1password1pif",name:"1Password (1pif)"},{id:"1passwordwincsv",name:"1Password 6 and 7 Windows (csv)"},{id:"1passwordmaccsv",name:"1Password 6 and 7 Mac (csv)"},{id:"dashlanejson",name:"Dashlane (json)"},{id:"roboformcsv",name:"RoboForm (csv)"},{id:"keepercsv",name:"Keeper (csv)"},{id:"keeperjson",name:"Keeper (json)"},{id:"enpasscsv",name:"Enpass (csv)"},{id:"enpassjson",name:"Enpass (json)"},{id:"protonpass",name:"ProtonPass (zip/json)"},{id:"safeincloudxml",name:"SafeInCloud (xml)"},{id:"pwsafexml",name:"Password Safe - pwsafe.org (xml)"},{id:"stickypasswordxml",name:"Sticky Password (xml)"},{id:"msecurecsv",name:"mSecure (csv)"},{id:"truekeycsv",name:"True Key (csv)"},{id:"passwordbossjson",name:"Password Boss (json)"},{id:"zohovaultcsv",name:"Zoho Vault (csv)"},{id:"splashidcsv",name:"SplashID (csv)"},{id:"passworddragonxml",name:"Password Dragon (xml)"},{id:"padlockcsv",name:"Padlock (csv)"},{id:"passboltcsv",name:"Passbolt (csv)"},{id:"clipperzhtml",name:"Clipperz (html)"},{id:"aviracsv",name:"Avira (csv)"},{id:"saferpasscsv",name:"SaferPass (csv)"},{id:"upmcsv",name:"Universal Password Manager (csv)"},{id:"ascendocsv",name:"Ascendo DataVault (csv)"},{id:"meldiumcsv",name:"Meldium (csv)"},{id:"passkeepcsv",name:"PassKeep (csv)"},{id:"arccsv",name:"Arc"},{id:"edgecsv",name:"Edge"},{id:"operacsv",name:"Opera"},{id:"vivaldicsv",name:"Vivaldi"},{id:"bravecsv",name:"Brave"},{id:"gnomejson",name:"GNOME Passwords and Keys/Seahorse (json)"},{id:"blurcsv",name:"Blur (csv)"},{id:"passwordagentcsv",name:"Password Agent (csv)"},{id:"passpackcsv",name:"Passpack (csv)"},{id:"passmanjson",name:"Passman (json)"},{id:"avastcsv",name:"Avast Passwords (csv)"},{id:"avastjson",name:"Avast Passwords (json)"},{id:"fsecurefsk",name:"F-Secure KEY (fsk)"},{id:"kasperskytxt",name:"Kaspersky Password Manager (txt)"},{id:"remembearcsv",name:"RememBear (csv)"},{id:"passwordwallettxt",name:"PasswordWallet (txt)"},{id:"mykicsv",name:"Myki (csv)"},{id:"securesafecsv",name:"SecureSafe (csv)"},{id:"logmeoncecsv",name:"LogMeOnce (csv)"},{id:"blackberrycsv",name:"BlackBerry Password Keeper (csv)"},{id:"buttercupcsv",name:"Buttercup (csv)"},{id:"codebookcsv",name:"Codebook (csv)"},{id:"encryptrcsv",name:"Encryptr (csv)"},{id:"yoticsv",name:"Yoti (csv)"},{id:"nordpasscsv",name:"Nordpass (csv)"},{id:"psonojson",name:"Psono (json)"},{id:"passkyjson",name:"Passky (json)"},{id:"passwordxpcsv",name:"Password XP (csv)"},{id:"netwrixpasswordsecure",name:"Netwrix Password Secure (csv)"},{id:"passworddepot17xml",name:"Password Depot 17 (xml)"}];var xt=i(1648),Vt=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})},Gt=function(e,t,i){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,r;if(i){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],i&&(r=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");r&&(n=function(){try{r.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:i})}else i&&e.stack.push({async:!0});return t},Ut=function(e){return function(t){function i(i){t.error=t.hasError?new e(i,t.error,"An error was suppressed during disposal."):i,t.hasError=!0}var n,r=0;return function e(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(e);if(n.dispose){var s=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(s).then(e,function(t){return i(t),e()})}else r|=1}catch(o){i(o)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}}("function"==typeof SuppressedError?SuppressedError:function(e,t,i){var n=new Error(i);return n.name="SuppressedError",n.error=e,n.suppressed=t,n});class Ot{constructor(e,t,i,n,r,s,o,a,l,c,d){this.cipherService=e,this.folderService=t,this.importApiService=i,this.i18nService=n,this.collectionService=r,this.keyService=s,this.encryptService=o,this.keyGenerationService=a,this.accountService=l,this.restrictedItemTypesService=c,this.sdkService=d,this.featuredImportOptions=Pt,this.regularImportOptions=Mt,this.sdkImporters=(0,xt.U9)()}getImportOptions(){return this.featuredImportOptions.concat(this.regularImportOptions)}import(e,t){return Vt(this,arguments,void 0,function*(e,t,i=null,n=null,r){let s;try{s=yield e.parse(t)}catch(o){if(o instanceof SyntaxError)throw new Error(this.i18nService.t("importFormatError"));throw o}return this.importImportResult(s,i,n,r)})}importImportResult(e){return Vt(this,arguments,void 0,function*(e,t=null,i=null,n=!1){if(!e.success){if(!m.A.isNullOrWhitespace(e.errorMessage))throw new Error(e.errorMessage);throw new Error(this.i18nService.t("importFormatError"))}if(0===e.folders.length&&0===e.ciphers.length)throw new Error(this.i18nService.t("importNothingError"));if(e.ciphers.length>0){const t=Math.floor(e.ciphers.length/2),i=e.ciphers.length-1;if(this.badData(e.ciphers[0])&&this.badData(e.ciphers[t])&&this.badData(e.ciphers[i]))throw new Error(this.i18nService.t("importFormatError"))}const r=yield(0,a._)(this.restrictedItemTypesService.restricted$.pipe((0,l.T)(e=>e.map(e=>e.cipherType))));if(e.ciphers=e.ciphers.filter(e=>!r.includes(e.type)),t&&!i&&!n){if(e.collectionRelationships.length<e.ciphers.length)throw new Error(this.i18nService.t("importUnassignedItemsError"))}try{yield this.setImportTarget(e,t,i);const n=yield(0,a._)(this.accountService.activeAccount$.pipe(h.F6));null!=t?yield this.handleOrganizationalImport(e,t,n):yield this.handleIndividualImport(e,n)}catch(s){const t=new v._(s,400);throw this.handleServerError(t,e)}return e})}getImporter(e,t,i=null){if(null==t)return null;const n=this.getImporterInstance(e,t);return null==n?null:(n.organizationId=i,n)}isSdkImporter(e){return this.sdkImporters.has(e)}credentialKindFor(e){var t;return null===(t=this.sdkImporters.get(e))||void 0===t?void 0:t.credentialKind}sdkFileTypeHint(e){var t;return null===(t=this.sdkImporters.get(e))||void 0===t?void 0:t.fileTypeHint}sdkErrorMessageKey(e,t){var i,n;return null===(n=null===(i=this.sdkImporters.get(e))||void 0===i?void 0:i.errorMessageKey)||void 0===n?void 0:n.call(i,t)}importWithSdk(e,t,i){return Vt(this,arguments,void 0,function*(e,t,i,n=null,r=null,s=!1){const o=this.sdkImporters.get(e);if(null==o)throw new Error(`No SDK importer registered for format '${e}'.`);if(n&&!r&&!s)throw new Error(this.i18nService.t("importUnassignedItemsError"));const d=yield(0,a._)(this.restrictedItemTypesService.restricted$.pipe((0,l.T)(e=>e.map(e=>e.cipherType)))),u=yield(0,a._)(this.accountService.activeAccount$.pipe(h.F6));return yield(0,a._)(this.sdkService.userClient$(u).pipe((0,c.n)(e=>Vt(this,void 0,void 0,function*(){const s={stack:[],error:void 0,hasError:!1};try{if(!e)throw new Error("SDK not available");const a=Gt(s,e.take(),!1);return yield o.import(a.value,t,i,{organizationId:null!=n?n:void 0,selectedImportTarget:null!=r?r:void 0,restrictedTypes:d})}catch(a){s.error=a,s.hasError=!0}finally{Ut(s)}}))))})}getImporterInstance(e,t){if(null==e)return null;switch(e){case"bitwardencsv":return new U;case"bitwardenjson":case"bitwardenpasswordprotected":return new H(this.keyService,this.encryptService,this.i18nService,this.cipherService,this.keyGenerationService,this.accountService,t);case"lastpasscsv":case"passboltcsv":return new Ee;case"keepassxcsv":return new Ie;case"aviracsv":return new F;case"blurcsv":return new J;case"safeincloudxml":return new wt;case"padlockcsv":return new $e;case"keepass2xml":return new Ce;case"arccsv":return new E;case"edgecsv":case"chromecsv":case"operacsv":case"vivaldicsv":case"bravecsv":return new D;case"firefoxcsv":return new he;case"upmcsv":return new Ft;case"saferpasscsv":return new Bt;case"safaricsv":return new It;case"meldiumcsv":return new Qe;case"1password1pif":return new je;case"1password1pux":return new We;case"1passwordwincsv":return new qe;case"1passwordmaccsv":return new Je;case"keepercsv":return new we.p;case"keeperjson":return new Be.F;case"passworddragonxml":return new lt;case"enpasscsv":return new ce;case"enpassjson":return new ue;case"pwsafexml":return new ct;case"dashlanecsv":return new se;case"dashlanejson":return new ae;case"msecurecsv":return new ke;case"stickypasswordxml":return new Qt;case"truekeycsv":return new Rt;case"clipperzhtml":return new _;case"roboformcsv":return new Ct;case"ascendocsv":return new S;case"passwordbossjson":return new rt;case"zohovaultcsv":return new Dt;case"splashidcsv":return new St;case"passkeepcsv":return new _e;case"gnomejson":return new ge;case"passwordagentcsv":return new nt;case"passpackcsv":return new it;case"passmanjson":return new tt;case"avastcsv":return new Q;case"avastjson":return new R;case"fsecurefsk":return new pe;case"kasperskytxt":return new be;case"remembearcsv":return new bt;case"passwordwallettxt":return new dt;case"mykicsv":return new Ve;case"securesafecsv":return new Et;case"logmeoncecsv":return new Se;case"blackberrycsv":return new T;case"buttercupcsv":return new $;case"codebookcsv":return new ee;case"encryptrcsv":return new le;case"yoticsv":return new Tt;case"nordpasscsv":return new Oe;case"psonojson":return new yt;case"passkyjson":return new et;case"protonpass":return new ft(this.i18nService);case"passwordxpcsv":return new gt;case"netwrixpasswordsecure":return new Ue;case"passworddepot17xml":return new at;default:return null}}handleIndividualImport(e,t){return Vt(this,void 0,void 0,function*(){const i=new A,n=yield this.cipherService.encryptMany(e.ciphers,t);for(const e of n)i.ciphers.push(new y.P(e));const r=yield(0,a._)(this.keyService.userKey$(t));return yield this.addFolders(i,e,r),yield this.importApiService.postImportCiphers(i)})}handleOrganizationalImport(e,t,i){return Vt(this,void 0,void 0,function*(){const n=new p;e.ciphers.forEach(e=>{e.organizationId=t});const r=yield this.cipherService.encryptMany(e.ciphers,i);for(const e of r)n.ciphers.push(new y.P(e));const s=yield(0,a._)(this.keyService.userKey$(i));if(yield this.addFolders(n,e,s),null!=e.collections)for(let o=0;o<e.collections.length;o++){e.collections[o].organizationId=t;const r=yield this.collectionService.encrypt(e.collections[o],i);n.collections.push(new d.hQ(r))}return null!=e.collectionRelationships&&e.collectionRelationships.forEach(e=>n.collectionRelationships.push(new g(e[0],e[1]))),yield this.importApiService.postImportOrganizationCiphers(t,n)})}addFolders(e,t,i){return Vt(this,void 0,void 0,function*(){if(null!=t.folders)for(let n=0;n<t.folders.length;n++){const r=yield this.folderService.encrypt(t.folders[n],i);e.folders.push(new C(r))}null!=t.folderRelationships&&t.folderRelationships.forEach(t=>e.folderRelationships.push(new g(t[0],t[1])))})}badData(e){return(null==e.name||"--"===e.name)&&e.type===f.gC.Login&&null!=e.login&&m.A.isNullOrWhitespace(e.login.password)}handleServerError(e,t){if(null==e.validationErrors)return new Error(e.message);let i="";return Object.entries(e.validationErrors).forEach(([e,n],r)=>{let s,o;const a=Number(e.match(/[0-9]+/)[0]);switch(e.match(/^\w+/)[0]){case"Ciphers":s=t.ciphers[a],o=(0,f.g7)(s.type);break;case"Folders":s=t.folders[a],o="Folder";break;case"Collections":s=t.collections[a],o="Collection";break;default:return}r>0&&(i+="\n\n"),"Folder"!==o&&"Collection"!==o&&(i+="["+(a+1)+"] "),i+="["+o+'] "'+s.name+'": '+n}),new Error(i)}setImportTarget(e,t,i){return Vt(this,void 0,void 0,function*(){if(!i)return;if(t){if(!(i instanceof u.iY))throw new Error(this.i18nService.t("errorAssigningTargetCollection"));const t=[];if(e.ciphers.forEach((i,n)=>{Array.isArray(e.collectionRelationships)&&e.collectionRelationships.some(([e])=>e===n)||t.push([n,0])}),i.type===u.it.DefaultUserCollection){if(e.folders.length>0)for(let t=0;t<e.ciphers.length;t++){const i=e.folders.findIndex(i=>i.id===e.ciphers[t].folderId);-1!==i&&e.folderRelationships.push([t,i])}else{if(e.ciphers.some((t,i)=>e.collectionRelationships.filter(e=>e[0]===i).length>1))throw new Error(this.i18nService.t("errorImportingMyItemsMultiCollection"));e.folders=e.collections.map(e=>{const t=new I.u;return t.name=e.name,t}),e.folderRelationships=e.collectionRelationships.map(e=>[e[0],e[1]])}return e.collections=[i],void(e.collectionRelationships=e.ciphers.map((e,t)=>[t,0]))}const n=[...e.collections];e.collections=[i],n.map(t=>{const n=new u.iY(t);n.name=`${i.name}/${t.name}`,e.collections.push(n)});const r=[...e.collectionRelationships];return e.collectionRelationships=[...t],void r.map(t=>{e.collectionRelationships.push([t[0],t[1]+1])})}if(!(i instanceof I.u))throw new Error(this.i18nService.t("errorAssigningTargetFolder"));const n=[];e.ciphers.forEach((e,t)=>{m.A.isNullOrEmpty(e.folderId)&&(e.folderId=i.id,n.push([t,0]))});const r=[...e.folders];e.folders=[i],r.map(t=>{const n=`${i.name}/${t.name}`,r=new I.u;r.name=n,e.folders.push(r)});const s=[...e.folderRelationships];e.folderRelationships=[...n],s.map(t=>{e.folderRelationships.push([t[0],t[1]+1])})})}}class Nt{}var jt=i(83586);var Yt=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Xt{constructor(e){this.system=e,this.importers=jt.qi,this.logger=e.log({type:"ImportMetadataService"})}init(){return Yt(this,void 0,void 0,function*(){})}metadata$(e){const t=this.system.environment.getClientType(),i=e.pipe((0,l.T)(e=>{var i;if(!this.importers)return{type:e,loaders:[]};const n=function(e,t,i){var n,r;if(!e)return;if(!(t in e))return;return(null!==(r=null===(n=e[t])||void 0===n?void 0:n.loaders)&&void 0!==r?r:[]).filter(e=>jt.Dt[e].includes(i))}(this.importers,e,t);if(!n||0===n.length)return{type:e,loaders:[]};const r={type:e,loaders:n};return e in this.importers&&(r.instructions=null===(i=this.importers[e])||void 0===i?void 0:i.instructions),this.logger.debug({importType:e,capabilities:r},"capabilities updated"),r}));return i}}class zt{}},8916(e,t,i){"use strict";i.d(t,{hU:()=>ie,vB:()=>f,Zm:()=>I,cR:()=>g,fX:()=>re,QH:()=>y,aT:()=>le,gX:()=>$,PA:()=>ge,xP:()=>he,zZ:()=>se,ao:()=>ee,Lu:()=>w,n1:()=>te,ox:()=>Ae,wM:()=>ce,E$:()=>ne});var n=i(69783),r=i(68108),s=i(60512),o=i(39306),a=i(31857);const l=new a.Ok(a.rB,"biometricUnlockEnabled",{deserializer:e=>e,clearOn:[]}),c=new a.Ok(a.rB,"clientKeyHalf",{deserializer:e=>e,clearOn:["logout"]}),d=a.Zs.record(a.rB,"promptCancelled",{deserializer:e=>e}),u=new a.Ok(a.rB,"promptAutomatically",{deserializer:e=>e,clearOn:[]}),h=new a.Zs(a.rB,"fingerprintValidated",{deserializer:e=>e}),A=new a.Ok(a.rB,"biometricEnrolledKeyId",{deserializer:e=>e,clearOn:[]}),p=new a.Zs(a.rB,"lastProcessReload",{deserializer:e=>new Date(e)});var g,v,m=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class f{}class y{constructor(e){this.stateProvider=e,this.promptCancelledState=this.stateProvider.getGlobal(d),this.fingerprintValidatedState=this.stateProvider.getGlobal(h),this.fingerprintValidated$=this.fingerprintValidatedState.state$.pipe((0,n.T)(Boolean)),this.lastProcessReloadState=this.stateProvider.getGlobal(p),this.lastProcessReload$=this.lastProcessReloadState.state$}setBiometricUnlockEnabled(e,t){return m(this,void 0,void 0,function*(){(0,s.x)(t,"userId"),yield this.stateProvider.getUser(t,l).update(()=>e)})}biometricUnlockEnabled$(e){return(0,s.x)(e,"userId"),this.stateProvider.getUser(e,l).state$.pipe((0,n.T)(Boolean))}getBiometricUnlockEnabled(e){return m(this,void 0,void 0,function*(){return yield(0,r._)(this.biometricUnlockEnabled$(e))})}setEncryptedClientKeyHalf(e,t){return m(this,void 0,void 0,function*(){var i;(0,s.x)(t,"userId");const n=null!==(i=null==e?void 0:e.encryptedString)&&void 0!==i?i:null;yield this.stateProvider.getUser(t,c).update(()=>n)})}encryptedClientKeyHalf$(e){return(0,s.x)(e,"userId"),this.stateProvider.getUser(e,c).state$.pipe((0,n.T)(b))}getEncryptedClientKeyHalf(e){return m(this,void 0,void 0,function*(){return yield(0,r._)(this.encryptedClientKeyHalf$(e))})}getBiometricEnrolledKeyId(e){return m(this,void 0,void 0,function*(){return(0,s.x)(e,"userId"),yield(0,r._)(this.stateProvider.getUser(e,A).state$.pipe((0,n.T)(e=>null!=e?e:null)))})}setBiometricEnrolledKeyId(e,t){return m(this,void 0,void 0,function*(){(0,s.x)(e,"userId"),yield this.stateProvider.getUser(e,A).update(()=>t)})}logout(e){return m(this,void 0,void 0,function*(){(0,s.x)(e,"userId"),yield this.stateProvider.getUser(e,c).update(()=>null),yield this.resetUserPromptCancelled(e)})}promptCancelled$(e){return(0,s.x)(e,"userId"),this.promptCancelledState.state$.pipe((0,n.T)(t=>{var i;return null!==(i=null==t?void 0:t[e])&&void 0!==i&&i}))}resetUserPromptCancelled(e){return m(this,void 0,void 0,function*(){(0,s.x)(e,"userId"),yield this.promptCancelledState.update(t=>(null!=t&&delete t[e],t),{shouldUpdate:t=>null!=(null==t?void 0:t[e])})})}setUserPromptCancelled(e){return m(this,void 0,void 0,function*(){(0,s.x)(e,"userId"),yield this.promptCancelledState.update(t=>(null!=t||(t={}),t[e]=!0,t))})}resetAllPromptCancelled(){return m(this,void 0,void 0,function*(){yield this.promptCancelledState.update(()=>null)})}promptAutomatically$(e){return(0,s.x)(e,"userId"),this.stateProvider.getUser(e,u).state$.pipe((0,n.T)(Boolean))}setPromptAutomatically(e,t){return m(this,void 0,void 0,function*(){(0,s.x)(t,"userId"),yield this.stateProvider.getUser(t,u).update(()=>e)})}setFingerprintValidated(e){return m(this,void 0,void 0,function*(){yield this.fingerprintValidatedState.update(()=>e)})}updateLastProcessReload(){return m(this,void 0,void 0,function*(){yield this.lastProcessReloadState.update(()=>new Date)})}getLastProcessReload(){return m(this,void 0,void 0,function*(){return yield(0,r._)(this.lastProcessReload$)})}}function b(e){return null==e?null:new o.k(e)}!function(e){e[e.Available=0]="Available",e[e.UnlockNeeded=1]="UnlockNeeded",e[e.HardwareUnavailable=2]="HardwareUnavailable",e[e.AutoSetupNeeded=3]="AutoSetupNeeded",e[e.ManualSetupNeeded=4]="ManualSetupNeeded",e[e.PlatformUnsupported=5]="PlatformUnsupported",e[e.DesktopDisconnected=6]="DesktopDisconnected",e[e.NotEnabledLocally=7]="NotEnabledLocally",e[e.NotEnabledInConnectedDesktopApp=8]="NotEnabledInConnectedDesktopApp",e[e.NativeMessagingPermissionMissing=9]="NativeMessagingPermissionMissing"}(g||(g={})),function(e){e.AuthenticateWithBiometrics="authenticateWithBiometrics",e.GetBiometricsStatus="getBiometricsStatus",e.UnlockWithBiometricsForUser="unlockWithBiometricsForUser",e.GetBiometricsStatusForUser="getBiometricsStatusForUser",e.CanEnableBiometricUnlock="canEnableBiometricUnlock"}(v||(v={}));var C=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class I{constructor(){this.unlockService=null}supportsBiometric(){throw new Error("Method not implemented.")}setUnlockService(e){return C(this,void 0,void 0,function*(){this.unlockService=e})}}Error;class w{}var B=i(83569),E=i(191),S=i(12055),Q=i(68711),k=i(16385),R=i(6933),F=i(83604),T=i(4958),D=i(79161),P=i(72135),M=i(2738),x=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class V{static fromData(e){switch(e.type){case"organization":return new G(e.key);case"provider":return new U(e.key,e.providerId);default:return null}}static isProviderEncrypted(e){return"provider"===e.toData().type}}class G{constructor(e){this.key=e}decrypt(e,t){return x(this,void 0,void 0,function*(){return yield e.decapsulateKeyUnsigned(this.encryptedOrganizationKey,t)})}get encryptedOrganizationKey(){return new o.k(this.key)}toData(){return{type:"organization",key:this.key}}}class U{constructor(e,t){this.key=e,this.providerId=t}decrypt(e,t){return x(this,void 0,void 0,function*(){const i=yield e.unwrapSymmetricKey(new o.k(this.key),t[this.providerId]);if(null==i)throw new Error("Failed to decrypt organization key");return i})}get encryptedOrganizationKey(){return new o.k(this.key)}toData(){return{type:"provider",key:this.key,providerId:this.providerId}}}var O=i(16184),N=i(78070),j=i(62870),Y=i(54428);var X=i(78781),z=i(30126),L=i(43890);const W=a.Ok.record(a.Gg,"organizationKeys",{deserializer:e=>e,clearOn:["logout"]}),K=a.Ok.record(a.Gg,"providerKeys",{deserializer:e=>e,clearOn:["logout"]});var Z=i(71464),H=i(6632),J=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const q="";class ${constructor(e,t,i,n,r,s,o,a,l,c,d){this.masterPasswordService=e,this.keyGenerationService=t,this.cryptoFunctionService=i,this.encryptService=n,this.platformUtilService=r,this.logService=s,this.stateService=o,this.accountService=a,this.stateProvider=l,this.kdfConfigService=c,this.accountCryptographyStateService=d,this.activeUserOrgKeys$=this.stateProvider.activeUserId$.pipe((0,E.n)(e=>null!=e?this.orgKeys$(e):S.t),(0,Q.p)(e=>null!=e),(0,k.F)(),(0,R.t)({bufferSize:1,refCount:!1}))}setUserKey(e,t){return J(this,void 0,void 0,function*(){if(null==e)throw new Error("No key provided. Lock the user to clear the key");if(null==t)throw new Error("No userId provided.");yield this.stateProvider.setUserState(Z.y,this.userKeyToStateObject(e),t),yield this.stateProvider.setUserState(Z.T,!0,t),yield this.storeAdditionalKeys(e,t);if(null==(yield(0,r._)(this.userKey$(t).pipe((0,Q.p)(e=>null!=e)))))throw new Error("Failed to set user key")})}refreshAdditionalKeys(e){return J(this,void 0,void 0,function*(){if(null==e)throw new Error("UserId is required.");const t=yield(0,r._)(this.userKey$(e));if(null==t)throw new Error("No user key found for: "+e);yield this.setUserKey(t,e)})}everHadUserKey$(e){return this.stateProvider.getUser(e,Z.T).state$.pipe((0,n.T)(e=>null!=e&&e))}getInMemoryUserKeyFor$(e){return this.stateProvider.getUserState$(Z.y,e).pipe((0,n.T)(e=>this.stateObjectToUserKey(e)))}getUserKey(e){return J(this,void 0,void 0,function*(){const t=yield(0,r._)(this.stateProvider.getUserState$(Z.y,e));return this.stateObjectToUserKey(t)})}getUserKeyFromStorage(e,t){return J(this,void 0,void 0,function*(){if(null==t)throw new Error("UserId is required");const i=yield this.getKeyFromStorage(e,t);return null==i?null:((yield this.validateUserKey(i,t))||(this.logService.warning("Invalid key, throwing away stored keys"),yield this.clearAllStoredUserKeys(t)),i)})}hasUserKey(e){return J(this,void 0,void 0,function*(){return null!=e&&null!=(yield(0,r._)(this.stateProvider.getUserState$(Z.y,e)))})}makeUserKey(e){return J(this,void 0,void 0,function*(){if(!e)throw new Error("MasterKey is required");yield j.B.Ready;const t=L.e.fromSdk(H.PureCrypto.make_aes256_cbc_hmac_key());return this.buildProtectedSymmetricKey(e,t)})}clearUserKey(e){return J(this,void 0,void 0,function*(){null!=e&&(yield this.stateProvider.setUserState(Z.y,null,e),yield this.clearAllStoredUserKeys(e))})}clearStoredUserKey(e){return J(this,void 0,void 0,function*(){if(null==e)throw new Error("UserId is required");yield this.stateService.setUserKeyAutoUnlock(null,{userId:e})})}getOrDeriveMasterKey(e,t){return J(this,void 0,void 0,function*(){if(null==t)throw new Error("User ID is required.");const i=yield(0,r._)(this.masterPasswordService.masterKey$(t));if(null!=i)return i;const s=yield(0,r._)(this.accountService.accounts$.pipe((0,n.T)(e=>{var i;return null===(i=e[t])||void 0===i?void 0:i.email})));if(null==s)throw new Error("No email found for user "+t);const o=yield(0,r._)(this.kdfConfigService.getKdfConfig$(t));if(null==o)throw new Error("No kdf found for user "+t);return yield this.makeMasterKey(e,s,o)})}makeMasterKey(e,t,i){return J(this,void 0,void 0,function*(){const n=(new Date).getTime();t=t.trim().toLowerCase();const r=yield this.keyGenerationService.deriveKeyFromPassword(e,t,i),s=(new Date).getTime();return this.logService.info(`[KeyService] Deriving master key took ${s-n}ms`),r})}encryptUserKeyWithMasterKey(e,t){return J(this,void 0,void 0,function*(){if(null==e)throw new Error("masterKey is required.");if(null==t)throw new Error("userKey is required.");return yield this.buildProtectedSymmetricKey(e,t)})}hashMasterKey(e,t){return J(this,void 0,void 0,function*(){if(null==e)throw new Error("password is required.");if(null==t)throw new Error("key is required.");const i=yield this.cryptoFunctionService.pbkdf2(t.inner().encryptionKey,e,"sha256",1);return X.A.fromBufferToB64(i)})}setOrgKeys(e,t,i){return J(this,void 0,void 0,function*(){yield this.stateProvider.getUser(i,W).update(()=>{const i={};for(const t of e)i[t.id]={type:"organization",key:t.key};for(const e of t)i[e.id]={type:"provider",providerId:e.providerId,key:e.key};return i})})}getOrgKey(e){return J(this,void 0,void 0,function*(){return yield(0,r._)(this.activeUserOrgKeys$.pipe((0,n.T)(t=>{var i;return null!==(i=t[e])&&void 0!==i?i:null})))})}makeDataEncKey(e){return J(this,void 0,void 0,function*(){if(null==e)throw new Error("No key provided");yield j.B.Ready;const t=L.e.fromSdk(H.PureCrypto.make_aes256_cbc_hmac_key());return[t,yield this.encryptService.wrapSymmetricKey(t,e)]})}clearOrgKeys(e){return J(this,void 0,void 0,function*(){null!=e&&(yield this.stateProvider.setUserState(W,null,e))})}setProviderKeys(e,t){return J(this,void 0,void 0,function*(){yield this.stateProvider.getUser(t,K).update(()=>{const t={};return e.forEach(e=>{t[e.id]=e.key}),t})})}providerKeys$(e){return this.userPrivateKey$(e).pipe((0,E.n)(t=>null==t?(0,F.of)(null):this.providerKeysHelper$(e,t)))}clearProviderKeys(e){return J(this,void 0,void 0,function*(){null!=e&&(yield this.stateProvider.setUserState(K,null,e))})}makeOrgKey(e){return J(this,void 0,void 0,function*(){if(null==e)throw new Error("UserId is required");const t=yield(0,r._)(this.userPublicKey$(e));if(null==t)throw new Error("No public key found for user "+e);yield j.B.Ready;const i=L.e.fromSdk(H.PureCrypto.make_aes256_cbc_hmac_key());return[yield this.encryptService.encapsulateKeyUnsigned(i,t),i]})}getFingerprint(e,t){return J(this,void 0,void 0,function*(){if(null==t)throw new Error("Public key is required to generate a fingerprint.");const i=yield this.cryptoFunctionService.hash(t,"sha256"),n=yield this.cryptoFunctionService.hkdfExpand(i,e,32,"sha256");return this.hashPhrase(n)})}makeKeyPair(e){return J(this,void 0,void 0,function*(){if(null==e)throw new Error("'key' is a required parameter and must be non-null.");const t=yield this.cryptoFunctionService.rsaGenerateKeyPair(2048);return[X.A.fromBufferToB64(t[0]),yield this.encryptService.wrapDecapsulationKey(t[1],e)]})}makeSendKey(e){return J(this,void 0,void 0,function*(){return yield this.keyGenerationService.deriveKeyFromMaterial(e,"bitwarden-send","send")})}clearKeys(e){return J(this,void 0,void 0,function*(){if(null==e)throw new Error("UserId is required");yield this.clearUserKey(e),yield this.clearOrgKeys(e),yield this.clearProviderKeys(e),yield this.stateProvider.setUserState(Z.T,null,e),yield this.accountCryptographyStateService.clearAccountCryptographicState(e)})}validateUserKey(e,t){return J(this,void 0,void 0,function*(){if(null==e)return!1;try{const i=yield(0,r._)(this.userEncryptedPrivateKey$(t));if(null==i)return!1;const n=yield this.decryptPrivateKey(i,e);if(null==n)return!1;if(null==(yield this.derivePublicKey(n)))return!1}catch(i){return!1}return!0})}initAccount(e){return J(this,void 0,void 0,function*(){if(null==e)throw new Error("UserId is required.");if(null!=(yield(0,r._)(this.userKey$(e))))throw this.logService.error("Tried to initialize account with existing user key."),new Error("Cannot initialize account, keys already exist.");yield j.B.Ready;const t=L.e.fromSdk(H.PureCrypto.make_aes256_cbc_hmac_key()),[i,n]=yield this.makeKeyPair(t);if(null==n.encryptedString)throw new Error("Failed to create valid private key.");return yield this.setUserKey(t,e),yield this.accountCryptographyStateService.setAccountCryptographicState({V1:{private_key:n.encryptedString}},e),{userKey:t,publicKey:i,privateKey:n}})}storeAdditionalKeys(e,t){return J(this,void 0,void 0,function*(){(yield this.shouldStoreKey(Y.hq.Auto,t))?yield this.stateService.setUserKeyAutoUnlock(e.keyB64,{userId:t}):yield this.stateService.setUserKeyAutoUnlock(null,{userId:t})})}shouldStoreKey(e,t){return J(this,void 0,void 0,function*(){if(e===Y.hq.Auto){if(this.platformUtilService.getClientType()==M.s.Cli)return!0;const e=yield(0,r._)(this.stateProvider.getUserState$(N.z4,t).pipe((0,Q.p)(e=>null!=e)));return this.logService.debug(`[KeyService] Should store auto key for vault timeout ${e}`),e==O.Lw.Never}return!1})}getKeyFromStorage(e,t){return J(this,void 0,void 0,function*(){if(e===Y.hq.Auto){const e=yield this.stateService.getUserKeyAutoUnlock({userId:t});if(e)return new L.e(X.A.fromB64ToArray(e))}return null})}clearAllStoredUserKeys(e){return J(this,void 0,void 0,function*(){yield this.stateService.setUserKeyAutoUnlock(null,{userId:e})})}hashPhrase(e){return J(this,arguments,void 0,function*(e,t=64){const i=Math.log(z.o.length)/Math.log(2);let n=Math.ceil(t/i);const r=Array.from(new Uint8Array(e));if(n*i>4*r.length)throw new Error("Output entropy of hash function is too small");const s=[];let o=B.fromArray(r,256);for(;n--;){const e=o.mod(z.o.length);o=o.divide(z.o.length),s.push(z.o[e])}return s})}buildProtectedSymmetricKey(e,t){return J(this,void 0,void 0,function*(){let i;if(e.inner().type===Y.Qd.AesCbc256_B64){const n=yield this.keyGenerationService.stretchKey(e);i=yield this.encryptService.wrapSymmetricKey(t,n)}else{if(e.inner().type!==Y.Qd.AesCbc256_HmacSha256_B64)throw new Error("Invalid key size.");i=yield this.encryptService.wrapSymmetricKey(t,e)}return[t,i]})}userKey$(e){return this.stateProvider.getUser(e,Z.y).state$.pipe((0,n.T)(e=>null!=e?e[""]:null))}userPublicKey$(e){return this.userPrivateKey$(e).pipe((0,E.n)(e=>J(this,void 0,void 0,function*(){return yield this.derivePublicKey(e)})))}derivePublicKey(e){return J(this,void 0,void 0,function*(){return null==e?null:yield this.cryptoFunctionService.rsaExtractPublicKey(e)})}userPrivateKey$(e){return this.userPrivateKeyHelper$(e).pipe((0,n.T)(e=>{var t;return null!==(t=null==e?void 0:e.userPrivateKey)&&void 0!==t?t:null}))}userEncryptionKeyPair$(e){return this.userPrivateKey$(e).pipe((0,E.n)(e=>J(this,void 0,void 0,function*(){if(null==e)return null;const t=yield this.derivePublicKey(e);return{privateKey:e,publicKey:t}})))}userEncryptedPrivateKey$(e){return this.accountCryptographyStateService.accountCryptographicState$(e).pipe((0,n.T)(e=>null==e?null:"V2"in e?e.V2.private_key:"V1"in e?e.V1.private_key:null))}userPrivateKeyHelper$(e){return this.userKey$(e).pipe((0,E.n)(t=>null==t?(0,F.of)(null):this.userEncryptedPrivateKey$(e).pipe((0,E.n)(e=>J(this,void 0,void 0,function*(){return yield this.decryptPrivateKey(e,t)})),(0,n.T)(e=>({userKey:t,userPrivateKey:e})),(0,T.W)(i=>(this.logService.error(`Failed to decrypt private key for user ${e}`),(0,F.of)({userKey:t,userPrivateKey:null}))))))}decryptPrivateKey(e,t){return J(this,void 0,void 0,function*(){return null==e?null:yield this.encryptService.unwrapDecapsulationKey(new o.k(e),t)})}providerKeysHelper$(e,t){return this.stateProvider.getUser(e,K).state$.pipe((i=(e,i)=>J(this,void 0,void 0,function*(){return yield this.encryptService.decapsulateKeyUnsigned(new o.k(i),t)}),(0,n.T)(e=>{if(null==e)return null;const t={};for(const[n,r]of Object.entries(e))t[n]=i(n,r);return t})),(0,E.n)(e=>null==e?(0,F.of)(null):0===Object.keys(e).length?(0,F.of)({}):(0,D.p)(e)));var i}userSigningKey$(e){return this.accountCryptographyStateService.accountCryptographicState$(e).pipe((0,n.T)(e=>null==e?null:"V2"in e?e.V2.signing_key:null))}orgKeys$(e){return this.cipherDecryptionKeys$(e).pipe((0,n.T)(e=>{var t;return null!==(t=null==e?void 0:e.orgKeys)&&void 0!==t?t:null}))}encryptedOrgKeys$(e){var t;return null===(t=this.userPrivateKey$(e))||void 0===t?void 0:t.pipe((0,E.n)(t=>null==t?(0,F.of)({}):(0,P.z)([this.stateProvider.getUser(e,W).state$,this.providerKeysHelper$(e,t)]).pipe((0,E.n)(e=>J(this,[e],void 0,function*([e,i]){const n=yield this.derivePublicKey(t),r={};e=null!=e?e:{};for(const t of Object.keys(e)){if(null!=r[t])continue;const s=V.fromData(e[t]);if(null==s)continue;let o;if(V.isProviderEncrypted(s)){if(null==i)continue;o=yield this.encryptService.encapsulateKeyUnsigned(yield s.decrypt(this.encryptService,i),n)}else o=s.encryptedOrganizationKey;r[t]=o}return r})),(0,T.W)(t=>(this.logService.error(`Failed to get encrypted organization keys for user ${e}`,t),(0,F.of)({}))))))}cipherDecryptionKeys$(e){var t;return null===(t=this.userPrivateKeyHelper$(e))||void 0===t?void 0:t.pipe((0,E.n)(t=>{if(null==t)return(0,F.of)(null);const i=t.userPrivateKey;return null==i?(0,F.of)({userKey:t.userKey,orgKeys:null}):(0,P.z)([this.stateProvider.getUser(e,W).state$,this.providerKeysHelper$(e,i)]).pipe((0,E.n)(e=>J(this,[e],void 0,function*([e,t]){const n={};e=null!=e?e:{};for(const r of Object.keys(e)){if(null!=n[r])continue;const s=V.fromData(e[r]);if(null==s)continue;let o;if(V.isProviderEncrypted(s)){if(null==t)continue;o=yield s.decrypt(this.encryptService,t)}else o=yield s.decrypt(this.encryptService,i);n[r]=o}return n})),(0,n.T)(e=>({userKey:t.userKey,orgKeys:e})))}))}userSignedPublicKey$(e){return this.accountCryptographyStateService.accountCryptographicState$(e).pipe((0,n.T)(e=>null==e?null:"V2"in e?e.V2.signed_public_key:null))}userKeyToStateObject(e){return null==e?null:{[q]:e}}stateObjectToUserKey(e){var t;return null==e?null:null!==(t=e[""])&&void 0!==t?t:null}}class _{constructor(e,t,i){if(this.min=e,this.max=t,this.defaultValue=i,e>t)throw new Error(`${e} is greater than ${t}.`);if(!1===this.inRange(i))throw new Error("Default value is not in range.")}inRange(e){return e>=this.min&&e<=this.max}}var ee;!function(e){e[e.PBKDF2_SHA256=0]="PBKDF2_SHA256",e[e.Argon2id=1]="Argon2id"}(ee||(ee={}));class te{constructor(e){this.iterations=e,this.kdfType=ee.PBKDF2_SHA256,(0,s.x)(e,"iterations")}static createDefault(){return new te(te.ITERATIONS.defaultValue)}validateKdfConfigForSetting(){if(!te.ITERATIONS.inRange(this.iterations))throw new Error(`PBKDF2 iterations must be between ${te.ITERATIONS.min} and ${te.ITERATIONS.max}`)}validateKdfConfigForPrelogin(){if(te.PRELOGIN_ITERATIONS_MIN>this.iterations)throw new Error(`PBKDF2 iterations must be at least ${te.PRELOGIN_ITERATIONS_MIN}, but was ${this.iterations}; possible pre-login downgrade attack detected.`)}static fromJSON(e){return new te(e.iterations)}toSdkConfig(){return{pBKDF2:{iterations:this.iterations}}}}te.ITERATIONS=new _(6e5,2e6,6e5),te.PRELOGIN_ITERATIONS_MIN=5e3;class ie{constructor(e,t,i){this.iterations=e,this.memory=t,this.parallelism=i,this.kdfType=ee.Argon2id,(0,s.x)(e,"iterations"),(0,s.x)(t,"memory"),(0,s.x)(i,"parallelism")}static createDefault(){return new ie(ie.ITERATIONS.defaultValue,ie.MEMORY.defaultValue,ie.PARALLELISM.defaultValue)}validateKdfConfigForSetting(){if(!ie.ITERATIONS.inRange(this.iterations))throw new Error(`Argon2 iterations must be between ${ie.ITERATIONS.min} and ${ie.ITERATIONS.max}`);if(!ie.MEMORY.inRange(this.memory))throw new Error(`Argon2 memory must be between ${ie.MEMORY.min} MiB and ${ie.MEMORY.max} MiB`);if(!ie.PARALLELISM.inRange(this.parallelism))throw new Error(`Argon2 parallelism must be between ${ie.PARALLELISM.min} and ${ie.PARALLELISM.max}.`)}validateKdfConfigForPrelogin(){if(ie.PRELOGIN_ITERATIONS_MIN>this.iterations)throw new Error(`Argon2 iterations must be at least ${ie.PRELOGIN_ITERATIONS_MIN}, but was ${this.iterations}; possible pre-login downgrade attack detected.`);if(ie.PRELOGIN_MEMORY_MIN>this.memory)throw new Error(`Argon2 memory must be at least ${ie.PRELOGIN_MEMORY_MIN} MiB, but was ${this.memory} MiB; possible pre-login downgrade attack detected.`);if(ie.PRELOGIN_PARALLELISM_MIN>this.parallelism)throw new Error(`Argon2 parallelism must be at least ${ie.PRELOGIN_PARALLELISM_MIN}, but was ${this.parallelism}; possible pre-login downgrade attack detected.`)}static fromJSON(e){return new ie(e.iterations,e.memory,e.parallelism)}toSdkConfig(){return{argon2id:{iterations:this.iterations,memory:this.memory,parallelism:this.parallelism}}}}function ne(e){if("pBKDF2"in e)return new te(e.pBKDF2.iterations);if("argon2id"in e)return new ie(e.argon2id.iterations,e.argon2id.memory,e.argon2id.parallelism);throw new Error("Unsupported KDF type")}ie.MEMORY=new _(16,1024,32),ie.PARALLELISM=new _(1,16,4),ie.ITERATIONS=new _(2,10,6),ie.PRELOGIN_MEMORY_MIN=16,ie.PRELOGIN_PARALLELISM_MIN=1,ie.PRELOGIN_ITERATIONS_MIN=2;const re=new te(te.ITERATIONS.defaultValue);class se{}var oe=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const ae=new a.Ok(a.P7,"kdfConfig",{deserializer:e=>null==e?null:e.kdfType===ee.PBKDF2_SHA256?te.fromJSON(e):ie.fromJSON(e),clearOn:["logout"]});class le{constructor(e){this.stateProvider=e}setKdfConfig(e,t){return oe(this,void 0,void 0,function*(){if(null==e)throw new Error("userId cannot be null");if(null==t)throw new Error("kdfConfig cannot be null");yield this.stateProvider.setUserState(ae,t,e)})}getKdfConfig(e){return oe(this,void 0,void 0,function*(){if(null==e)throw new Error("userId cannot be null");const t=yield(0,r._)(this.stateProvider.getUser(e,ae).state$);if(null==t)throw new Error("KdfConfig for user "+e+" is null");return t})}getKdfConfig$(e){if(null==e)throw new Error("userId cannot be null");return this.stateProvider.getUser(e,ae).state$}}class ce{}var de=i(82468),ue=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class he{constructor(e,t,i,n,r,s,o,a){this.keyService=e,this.cipherService=t,this.userAsymmetricKeysRegenerationApiService=i,this.logService=n,this.sdkService=r,this.apiService=s,this.configService=o,this.accountCryptographyStateService=a}regenerateIfNeeded(e){return ue(this,void 0,void 0,function*(){try{if(yield this.configService.getFeatureFlag(de.TO.PrivateKeyRegeneration)){(yield this.shouldRegenerate(e))&&(yield this.regenerateUserPublicKeyEncryptionKeyPair(e))}}catch(t){this.logService.error("[UserAsymmetricKeyRegeneration] An error occurred. Skipping regeneration for the user.",t)}})}shouldRegenerate(e){return ue(this,void 0,void 0,function*(){const t=yield(0,r._)(this.keyService.userKey$(e));if(!t)return this.logService.info("[UserAsymmetricKeyRegeneration] User symmetric key unavailable, skipping regeneration for the user."),!1;if(t.inner().type===Y.Qd.CoseEncrypt0)return this.logService.error("[UserAsymmetricKeyRegeneration] Cannot regenerate asymmetric keys for accounts on V2 encryption."),!1;const i=yield(0,r._)(this.keyService.userEncryptedPrivateKey$(e));let s=null;try{s=yield this.apiService.getUserPublicKey(e)}catch(a){if(404!==(null==a?void 0:a.statusCode))throw a}if(!i&&!s)return this.logService.info("[UserAsymmetricKeyRegeneration] User has no asymmetric keys, attempting to create a new keypair."),!0;if(!i||!s)return this.logService.warning("[UserAsymmetricKeyRegeneration] User's asymmetric key initialization data is unavailable, skipping regeneration."),!1;const o=yield(0,r._)(this.sdkService.client$.pipe((0,n.T)(e=>{if(void 0===e)throw new Error("SDK is undefined");return e.crypto().verify_asymmetric_keys({userKey:t.keyB64,userPublicKey:s.publicKey,userKeyEncryptedPrivateKey:i})})));if(o.privateKeyDecryptable)return!o.validPrivateKey&&(this.logService.info("[UserAsymmetricKeyRegeneration] User's private key is decryptable but not a valid key, attempting regeneration."),!0);return(yield this.userKeyCanDecrypt(t,e))?(this.logService.info("[UserAsymmetricKeyRegeneration] User Asymmetric Key decryption failure detected, attempting regeneration."),!0):(this.logService.warning("[UserAsymmetricKeyRegeneration] User Asymmetric Key decryption failure detected, but unable to determine User Symmetric Key validity, skipping regeneration."),!1)})}regenerateUserPublicKeyEncryptionKeyPair(e){return ue(this,void 0,void 0,function*(){const t=yield(0,r._)(this.keyService.userKey$(e));if(null==t)throw new Error("User key not found");if(t.inner().type!==Y.Qd.AesCbc256_HmacSha256_B64)throw new Error("User key is not V1 encryption type");const i=yield(0,r._)(this.sdkService.client$.pipe((0,n.T)(e=>{if(void 0===e)throw new Error("SDK is undefined");return e.crypto().make_key_pair(t.keyB64)})));try{yield this.userAsymmetricKeysRegenerationApiService.regenerateUserAsymmetricKeys(i.userPublicKey,new o.k(i.userKeyEncryptedPrivateKey))}catch(s){return"Key regeneration not supported for this user."===(null==s?void 0:s.message)?(this.logService.info("[UserAsymmetricKeyRegeneration] Regeneration not supported for this user at this time."),!1):(this.logService.error("[UserAsymmetricKeyRegeneration] Regeneration error when submitting the request to the server.",s),!1)}return yield this.accountCryptographyStateService.setAccountCryptographicState({V1:{private_key:i.userKeyEncryptedPrivateKey}},e),this.logService.info("[UserAsymmetricKeyRegeneration] User's asymmetric keys successfully regenerated."),!0})}userKeyCanDecrypt(e,t){return ue(this,void 0,void 0,function*(){const i=(yield this.cipherService.getAll(t)).find(e=>null==e.organizationId);if(!i)return!1;try{return!(yield i.decrypt(e)).decryptionFailure||(this.logService.error("[UserAsymmetricKeyRegeneration] User Symmetric Key validation error: Cipher decryption failed"),!1)}catch(n){return this.logService.error("[UserAsymmetricKeyRegeneration] User Symmetric Key validation error.",n),!1}})}}class Ae{}var pe=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class ge{constructor(e){this.apiService=e}regenerateUserAsymmetricKeys(e,t){return pe(this,void 0,void 0,function*(){const i={userPublicKey:e,userKeyEncryptedUserPrivateKey:t};yield this.apiService.send("POST","/accounts/key-management/regenerate-keys",i,!0,!0)})}}},81216(e,t,i){"use strict";i.d(t,{V$:()=>s,FO:()=>l,$b:()=>r,Kc:()=>n,Vf:()=>u});class n{}var r;!function(e){e[e.Debug=0]="Debug",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(r||(r={}));class s{constructor(e,t=null){this.isDev=e,this.filter=t,this.timersMap=new Map}debug(e,...t){this.isDev&&this.write(r.Debug,e,...t)}info(e,...t){this.write(r.Info,e,...t)}warning(e,...t){this.write(r.Warning,e,...t)}error(e,...t){this.write(r.Error,e,...t)}write(e,t,...i){if(null==this.filter||!this.filter(e))switch(e){case r.Debug:case r.Info:console.log(t,...i);break;case r.Warning:console.warn(t,...i);break;case r.Error:console.error(t,...i)}}measure(e,t,i,n,r){const s=`[${i}]: ${n}`,o=performance.measure(s,{start:e,detail:{devtools:{dataType:"track-entry",track:i,trackGroup:t,properties:r}}});return this.info(`${s} took ${o.duration}`,r),o}mark(e){const t=performance.mark(e,{detail:{devtools:{dataType:"marker"}}});return this.info(t.name,(new Date).toISOString()),t}}var o=i(6632),a=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class l{constructor(e){this.sdkReady=e}read(){return a(this,void 0,void 0,function*(){return(yield this.getClient()).read()})}count(){return a(this,void 0,void 0,function*(){return(yield this.getClient()).count()})}getClient(){return null==this.clientPromise&&(this.clientPromise=this.sdkReady.then(()=>new o.FlightRecorderClient)),this.clientPromise}}var c=i(55766);const d=["timestamp","level","target","message","fields"];function u(e,t=new Date){const i=e.map(e=>({timestamp:new Date(e.timestamp).toISOString(),level:e.level,target:e.target,message:e.message,fields:JSON.stringify(e.fields)})),n=c.unparse(i,{columns:[...d],header:!0});return{fileName:`Bitwarden-diagnostic-report-${`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`}.csv`,blobData:n}}},5819(e,t,i){"use strict";i.d(t,{Lg:()=>l,qk:()=>s,D$:()=>a,fg:()=>c});var n=i(68711),r=i(71232);class s{constructor(e){this.messageStream=e,this.allMessages$=this.messageStream}messages$(e){return this.allMessages$.pipe((0,n.p)(t=>(null==t?void 0:t.command)===e.command))}}s.EMPTY=new s(r.w);class o{constructor(e){this.innerMessageSenders=e}send(e,t={}){for(const i of this.innerMessageSenders)i.send(e,t)}}class a{static combine(...e){return new o(e)}}a.EMPTY=new o([]);class l{constructor(e){this.command=e}}Symbol("externalSource");class c{constructor(e){this.messagesSubject=e}send(e,t={}){const i=(e=>"string"==typeof e?e:e.command)(e);this.messagesSubject.next(Object.assign(null!=t?t:{},{command:i}))}}},66905(e,t,i){"use strict";i.d(t,{fq:()=>h,HQ:()=>Q,GA:()=>n,s_:()=>r});class n{}class r{}var s=i(20702);class o extends s.r{constructor(e){super(e),this.orgSsoId=this.getResponseProperty("OrgSsoId"),this.required=this.getResponseProperty("Required")}}class a extends s.r{constructor(e){super(e),this.organizationName=this.getResponseProperty("OrganizationName"),this.seatsAvailable=this.getResponseProperty("SeatsAvailable");const t=this.getResponseProperty("Sso");this.sso=null==t?null:new o(t)}}class l extends s.r{constructor(e){super(e),this.id=this.getResponseProperty("Id"),this.code=this.getResponseProperty("Code"),this.organizationId=this.getResponseProperty("OrganizationId"),this.allowedDomains=this.getResponseProperty("AllowedDomains"),this.invite=this.getResponseProperty("Invite"),this.supportsConfirmation=this.getResponseProperty("SupportsConfirmation"),this.creationDate=this.getResponseProperty("CreationDate")}}class c{constructor(e){this.id=e.id,this.code=e.code,this.organizationId=e.organizationId,this.allowedDomains=e.allowedDomains,this.invite=e.invite,this.supportsConfirmation=e.supportsConfirmation,this.creationDate=e.creationDate}static fromJSON(e){return Object.assign(new c(e),e)}}class d extends s.r{constructor(e){super(e),this.isAllowed=this.getResponseProperty("IsAllowed")}}var u=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class h{constructor(e){this.apiService=e}create(e,t){return u(this,void 0,void 0,function*(){const i=yield this.apiService.send("POST",`/organizations/${e}/invite-link`,t,!0,!0);return new l(i)})}refresh(e,t){return u(this,void 0,void 0,function*(){const i=yield this.apiService.send("POST",`/organizations/${e}/invite-link/refresh`,t,!0,!0);return new l(i)})}get(e){return u(this,void 0,void 0,function*(){const t=yield this.apiService.send("GET",`/organizations/${e}/invite-link`,null,!0,!0);return new l(t)})}updateAllowedDomains(e,t){return u(this,void 0,void 0,function*(){const i=yield this.apiService.send("PUT",`/organizations/${e}/invite-link`,t,!0,!0);return new l(i)})}delete(e){return u(this,void 0,void 0,function*(){yield this.apiService.send("DELETE",`/organizations/${e}/invite-link`,null,!0,!1)})}validateEmailDomain(e){return u(this,void 0,void 0,function*(){const t=yield this.apiService.send("POST","/organizations/invite-link/validate-email-domain",e,!1,!0);return new d(t)})}getStatus(e){return u(this,void 0,void 0,function*(){const t=yield this.apiService.send("POST","/organizations/invite-link/status",{code:e},!1,!0);return new a(t)})}accept(e){return u(this,void 0,void 0,function*(){yield this.apiService.send("POST","/organizations/users/invite-link/accept",e,!0,!1)})}}var A=i(69783),p=i(191),g=i(83604),v=i(68108),m=i(7861),f=i(66523);class y{constructor(e){if(!e.allowedDomains||0===e.allowedDomains.length)throw new Error("At least one allowed domain is required.");if(!e.invite)throw new Error("Invite is required.");this.allowedDomains=e.allowedDomains,this.invite=e.invite,this.supportsConfirmation=e.supportsConfirmation}}class b{constructor(e){if(!e.invite)throw new Error("Invite is required.");this.invite=e.invite,this.supportsConfirmation=e.supportsConfirmation}}class C{constructor(e){if(!e.allowedDomains||0===e.allowedDomains.length)throw new Error("At least one allowed domain is required.");this.allowedDomains=e.allowedDomains}}var I=i(31066);const w=I.Ok.record(I.de,"inviteLink",{deserializer:e=>c.fromJSON(e),clearOn:["logout"]});var B=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})},E=function(e,t,i){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,r;if(i){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],i&&(r=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");r&&(n=function(){try{r.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:i})}else i&&e.stack.push({async:!0});return t},S=function(e){return function(t){function i(i){t.error=t.hasError?new e(i,t.error,"An error was suppressed during disposal."):i,t.hasError=!0}var n,r=0;return function e(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(e);if(n.dispose){var s=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(s).then(e,function(t){return i(t),e()})}else r|=1}catch(o){i(o)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}}("function"==typeof SuppressedError?SuppressedError:function(e,t,i){var n=new Error(i);return n.name="SuppressedError",n.error=e,n.suppressed=t,n});class Q{constructor(e,t,i,n){this.apiService=e,this.stateProvider=t,this.environmentService=i,this.sdkService=n}inviteLink$(e,t){return this.stateProvider.getUser(e,w).state$.pipe((0,A.T)(e=>null==e?void 0:e[t]),(0,p.n)(i=>null==i?this.getInviteLink(e,t):(0,g.of)(i)))}createInviteLink(e,t,i,n){return B(this,void 0,void 0,function*(){const r=yield(0,v._)(this.makeInvite(e,t)),s=new y({allowedDomains:i,invite:r,supportsConfirmation:n}),o=yield this.apiService.create(t,s);yield this.upsert(e,new c(o))})}updateAllowedDomains(e,t,i){return B(this,void 0,void 0,function*(){if(0===i.length)throw new Error("At least one allowed domain is required.");const n=new C({allowedDomains:i}),r=yield this.apiService.updateAllowedDomains(t,n);yield this.upsert(e,new c(r))})}refreshInviteLink(e,t,i){return B(this,void 0,void 0,function*(){const n=yield(0,v._)(this.makeInvite(e,t)),r=new b({invite:n,supportsConfirmation:i}),s=yield this.apiService.refresh(t,r);yield this.upsert(e,new c(s))})}reconstructUrl(e,t,i){return this.sdkService.userClient$(e).pipe((0,A.T)(e=>{const n={stack:[],error:void 0,hasError:!1};try{return E(n,e.take(),!1).value.invite_link().get_invite_key((0,f.WD)(t),i.invite)}catch(r){n.error=r,n.hasError=!0}finally{S(n)}}),(0,p.n)(e=>this.buildInviteUrl(i.code,e)))}upsert(e,t){return B(this,void 0,void 0,function*(){yield this.stateProvider.getUser(e,w).update(e=>{const i=null!=e?e:{};return Object.assign(Object.assign({},i),{[t.organizationId]:t})})})}delete(e,t){return B(this,void 0,void 0,function*(){yield this.apiService.delete(t),yield this.stateProvider.getUser(e,w).update(e=>null==e?e:Object.assign(Object.assign({},e),{[t]:void 0}))})}buildInviteUrl(e,t){return this.environmentService.environment$.pipe((0,A.T)(i=>`${i.getWebVaultUrl()}/#/join/${e}?key=${t}`))}getInviteLink(e,t){return B(this,void 0,void 0,function*(){let i;try{i=yield this.apiService.get(t)}catch(r){if(r instanceof m._&&404===r.statusCode)return;throw r}const n=new c(i);return yield this.upsert(e,n),n})}makeInvite(e,t){return this.sdkService.userClient$(e).pipe((0,A.T)(e=>{const i={stack:[],error:void 0,hasError:!1};try{const n=E(i,e.take(),!1);return n.value.invite_link().make_invite((0,f.WD)(t)).invite}catch(n){i.error=n,i.hasError=!0}finally{S(i)}}))}}},92954(e,t,i){"use strict";i.d(t,{Oo:()=>de,UJ:()=>G,Tu:()=>P,Y2:()=>k,fE:()=>M});var n=i(46758),r=i(24590),s=i(639),o=i(29029),a=i(45383),l=i(55807),c=i(75583),d=i(14318),u=i(36801),h=i(14041),A=i(11217),p=i(47696),g=i(56898),v=i(58384),m=i(58806);const f=[[["","slot","title"]]];function y(e,t){if(1&e&&(h.j41(0,"span",2),h.EFF(1),h.k0s()),2&e){const e=t;h.Y8G("variant",e.variant||"primary"),h.R7$(),h.SpI(" ",e.text," ")}}function b(e,t){1&e&&(h.EFF(0),h.nI1(1,"i18n")),2&e&&h.SpI(" ",h.bMT(1,1,"perUser")," ")}function C(e,t){if(1&e&&(h.j41(0,"div",5)(1,"div",8)(2,"span",9),h.EFF(3),h.nI1(4,"currency"),h.k0s(),h.j41(5,"span",10),h.EFF(6),h.nI1(7,"i18n"),h.nVh(8,b,2,3),h.k0s()()()),2&e){const e=t;h.R7$(3),h.JRh(h.ii3(4,3,e.amount,"$",!0,e.amount%1==0?"1.0-0":"1.2-2")),h.R7$(3),h.SpI(" / ",h.bMT(7,8,e.cadence)," "),h.R7$(2),h.vxM(e.showPerUser?8:-1)}}function I(e,t){if(1&e&&h.nrm(0,"bit-icon",12),2&e){const e=h.XpG();h.Y8G("name",e.icon.type)}}function w(e,t){if(1&e&&h.nrm(0,"bit-icon",13),2&e){const e=h.XpG();h.Y8G("name",e.icon.type)}}function B(e,t){if(1&e){const e=h.RV6();h.j41(0,"div",6)(1,"button",11),h.bIt("click",function(){A.eBV(e);const t=h.XpG();return A.Njj(t.buttonClick.emit())}),h.nVh(2,I,1,1,"bit-icon",12),h.EFF(3),h.nVh(4,w,1,1,"bit-icon",13),h.k0s()()}if(2&e){const e=t;h.R7$(),h.Y8G("buttonType",e.type)("block",!0)("disabled",e.disabled),h.R7$(),h.vxM(e.icon&&"before"===e.icon.position?2:-1),h.R7$(),h.SpI(" ",e.text," "),h.R7$(),h.vxM(!e.icon||"after"!==e.icon.position&&e.icon.position?-1:4)}}function E(e,t){if(1&e&&(h.j41(0,"li",15),h.nrm(1,"bit-icon",16),h.j41(2,"span",17),h.EFF(3),h.k0s()()),2&e){const e=t.$implicit;h.R7$(3),h.JRh(e)}}function S(e,t){if(1&e&&(h.j41(0,"ul",14),h.Z7z(1,E,4,1,"li",15,h.fX1),h.k0s()),2&e){const e=h.XpG();h.R7$(),h.Dyx(e)}}function Q(e,t){1&e&&h.nVh(0,S,3,0,"ul",14),2&e&&h.vxM(t.length>0?0:-1)}class k{constructor(){this.tagline=r.hFB.required(),this.price=(0,r.hFB)(),this.button=(0,r.hFB)(),this.features=(0,r.hFB)(),this.activeBadge=(0,r.hFB)(),this.buttonClick=(0,r.CGW)()}}k.ɵfac=function(e){return new(e||k)},k.ɵcmp=h.VBU({type:k,selectors:[["billing-pricing-card"]],inputs:{tagline:[1,"tagline"],price:[1,"price"],button:[1,"button"],features:[1,"features"],activeBadge:[1,"activeBadge"]},outputs:{buttonClick:"buttonClick"},ngContentSelectors:["[slot=title]"],decls:11,vars:5,consts:[[1,"tw-size-full","tw-flex","tw-flex-col"],[1,"tw-flex","tw-items-center","tw-justify-between","tw-mb-2"],["bitBadge","",1,"tw-ml-3",3,"variant"],[1,"tw-mb-6","tw-h-6"],["bitTypography","helper",1,"tw-text-muted","tw-m-0","tw-leading-relaxed","tw-line-clamp-2"],[1,"tw-mb-6"],[1,"tw-mb-6","tw-h-12"],[1,"tw-flex-grow"],[1,"tw-flex","tw-items-baseline","tw-gap-1","tw-flex-wrap"],[1,"tw-text-3xl","tw-font-medium","tw-leading-none","tw-m-0"],["bitTypography","helper",1,"tw-text-muted"],["bitButton","","type","button",3,"click","buttonType","block","disabled"],["aria-hidden","true",1,"tw-me-2",3,"name"],["aria-hidden","true",1,"tw-ms-2",3,"name"],[1,"tw-list-none","tw-p-0","tw-m-0"],[1,"tw-flex","tw-items-start","tw-gap-2","tw-mb-2","last:tw-mb-0"],["name","bwi-check","aria-hidden","true",1,"tw-text-primary-600","tw-mt-0.5","tw-flex-shrink-0"],["bitTypography","helper",1,"tw-text-muted","tw-leading-relaxed"]],template:function(e,t){if(1&e&&(h.NAR(f),h.j41(0,"bit-card",0)(1,"div",1),h.SdG(2),h.nVh(3,y,2,2,"span",2),h.k0s(),h.j41(4,"div",3)(5,"p",4),h.EFF(6),h.k0s()(),h.nVh(7,C,9,10,"div",5),h.nVh(8,B,5,6,"div",6),h.j41(9,"div",7),h.nVh(10,Q,1,1),h.k0s()()),2&e){let e,i,n,r;h.R7$(3),h.vxM((e=t.activeBadge())?3:-1,e),h.R7$(3),h.SpI(" ",t.tagline()," "),h.R7$(),h.vxM((i=t.price())?7:-1,i),h.R7$(),h.vxM((n=t.button())?8:-1,n),h.R7$(2),h.vxM((r=t.features())?10:-1,r)}},dependencies:[s.E,p.n,o.t,g.Q,a.Z,l.o,v.R,c.E,m.r,d.i,n.oe,u.$Z],encapsulation:2,changeDetection:0});var R=i(63477),F=i(92128),T=i(50700),D=i(22191);const P={AmountOff:"amount-off",PercentOff:"percent-off"},M=(e,t)=>{switch(e.type){case P.PercentOff:{const i=e.value<1?e.value:e.value/100;return Math.round(t*i*100)/100}case P.AmountOff:return e.value;default:{const t=e.type;throw new Error(`Unhandled discount type: ${t}`)}}},x=(e,t)=>{switch(t.type){case P.AmountOff:return`${new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2}).format(t.value)} ${e.t("discount")}`;case P.PercentOff:{const i=t.value<1?100*t.value:t.value;return`${Math.round(i)}% ${e.t("discount")}`}}};function V(e,t){if(1&e&&(h.j41(0,"span",0),h.EFF(1),h.k0s()),2&e){const e=h.XpG();h.BMQ("aria-label",e.label()),h.R7$(),h.SpI(" ",e.label()," ")}}class G{constructor(){this.i18nService=(0,A.WQX)(T.W),this.discount=(0,r.hFB)(null),this.display=(0,R.EW)(()=>{const e=this.discount();return!!e&&e.value>0}),this.label=(0,R.EW)(()=>{const e=this.discount();if(e)return x(this.i18nService,e)})}}G.ɵfac=function(e){return new(e||G)},G.ɵcmp=h.VBU({type:G,selectors:[["billing-discount-badge"]],inputs:{discount:[1,"discount"]},decls:1,vars:1,consts:[["bitBadge","","variant","success","role","status",1,"tw-w-fit"]],template:function(e,t){1&e&&h.nVh(0,V,2,2,"span",0),2&e&&h.vxM(t.display()?0:-1)},dependencies:[n.MD,s.E,p.n],encapsulation:2,changeDetection:0});var U=i(36288);const O=e=>({total:e}),N=(e,t)=>t.label;function j(e,t){1&e&&h.eu8(0)}function Y(e,t){if(1&e&&h.DNE(0,j,1,0,"ng-container",5),2&e){const e=h.XpG();h.Y8G("ngTemplateOutlet",t)("ngTemplateOutletContext",h.eq3(2,O,e.total()))}}function X(e,t){if(1&e&&(h.j41(0,"span",8),h.EFF(1),h.k0s()),2&e){h.XpG(2);const e=h.r8f(1);h.R7$(),h.SpI(" / ",e," ")}}function z(e,t){if(1&e&&(h.j41(0,"h2",6),h.EFF(1),h.nI1(2,"i18n"),h.nI1(3,"currency"),h.k0s(),h.j41(4,"span",7),h.EFF(5," "),h.k0s(),h.nVh(6,X,2,1,"span",8)),2&e){const e=h.XpG(),t=h.r8f(2);h.R7$(),h.Lme(" ",h.bMT(2,3,"total"),": ",h.brH(3,5,e.total(),"USD","symbol")," USD "),h.R7$(5),h.vxM(t?-1:6)}}function L(e,t){if(1&e&&h.nrm(0,"billing-discount-badge",9),2&e){const e=t.$implicit;h.Y8G("discount",e)}}function W(e,t){if(1&e&&h.Z7z(0,L,1,1,"billing-discount-badge",9,h.fX1),2&e){h.XpG();const e=h.r8f(0);h.Dyx(e.discounts)}}function K(e,t){if(1&e&&h.EFF(0),2&e){h.XpG(3);const e=h.r8f(1);h.SpI(" / ",e," ")}}function Z(e,t){if(1&e&&(h.EFF(0),h.nI1(1,"currency"),h.nVh(2,K,1,1)),2&e){h.XpG();const e=h.r8f(8);h.XpG();const t=h.r8f(2);h.SpI(" x ",h.brH(1,2,e.cost,"USD","symbol")," "),h.R7$(2),h.vxM(t?-1:2)}}function H(e,t){if(1&e&&(h.j41(0,"div",17)(1,"div",25),h.EFF(2),h.k0s(),h.j41(3,"div",26),h.EFF(4),h.nI1(5,"currency"),h.k0s()()),2&e){const e=h.XpG(2);h.R7$(2),h.SpI(" ",e.passwordManagerSeatsDiscountLabel()," "),h.R7$(2),h.SpI(" -",h.brH(5,2,e.passwordManagerSeatsDiscountAmount(),"USD","symbol")," ")}}function J(e,t){if(1&e&&h.EFF(0),2&e){h.XpG(4);const e=h.r8f(1);h.SpI(" / ",e," ")}}function q(e,t){if(1&e&&(h.EFF(0),h.nI1(1,"currency"),h.nVh(2,J,1,1)),2&e){h.XpG(2);const e=h.r8f(16);h.XpG();const t=h.r8f(2);h.SpI(" x ",h.brH(1,2,e.cost,"USD","symbol")," "),h.R7$(2),h.vxM(t?-1:2)}}function $(e,t){if(1&e&&(h.j41(0,"div",18)(1,"div",14)(2,"div",15),h.EFF(3),h.nVh(4,q,3,6),h.k0s()(),h.j41(5,"div",27),h.EFF(6),h.nI1(7,"currency"),h.k0s()()),2&e){h.XpG();const e=h.r8f(16),t=h.XpG();h.R7$(3),h.Lme(" ",e.quantity," ",t.translateWithParams(e.translationKey,e.translationParams)," "),h.R7$(),h.vxM(e.hideBreakdown?-1:4),h.R7$(2),h.SpI(" ",h.brH(7,4,t.additionalStorageTotal(),"USD","symbol")," ")}}function _(e,t){if(1&e&&h.EFF(0),2&e){h.XpG(4);const e=h.r8f(1);h.SpI(" / ",e," ")}}function ee(e,t){if(1&e&&(h.EFF(0),h.nI1(1,"currency"),h.nVh(2,_,1,1)),2&e){h.XpG(2);const e=h.r8f(18);h.XpG();const t=h.r8f(2);h.SpI(" x ",h.brH(1,2,e.cost,"USD","symbol")," "),h.R7$(2),h.vxM(t?-1:2)}}function te(e,t){if(1&e&&h.EFF(0),2&e){h.XpG(5);const e=h.r8f(1);h.SpI(" / ",e," ")}}function ie(e,t){if(1&e&&(h.EFF(0),h.nI1(1,"currency"),h.nVh(2,te,1,1)),2&e){h.XpG(2);const e=h.r8f(12);h.XpG(2);const t=h.r8f(2);h.SpI(" x ",h.brH(1,2,e.cost,"USD","symbol")," "),h.R7$(2),h.vxM(t?-1:2)}}function ne(e,t){if(1&e&&(h.j41(0,"div",31)(1,"div",15),h.EFF(2),h.nVh(3,ie,3,6),h.k0s(),h.j41(4,"div",32),h.EFF(5),h.nI1(6,"currency"),h.k0s()()),2&e){h.XpG();const e=h.r8f(12),t=h.XpG(2);h.R7$(2),h.Lme(" ",e.quantity," ",t.translateWithParams(e.translationKey,e.translationParams)," "),h.R7$(),h.vxM(e.hideBreakdown?-1:3),h.R7$(2),h.SpI(" ",h.brH(6,4,t.additionalServiceAccountsTotal(),"USD","symbol")," ")}}function re(e,t){if(1&e&&(h.j41(0,"div",19)(1,"div",28)(2,"div",12),h.EFF(3),h.nI1(4,"i18n"),h.k0s()(),h.j41(5,"div",29)(6,"div",15),h.EFF(7),h.nVh(8,ee,3,6),h.k0s(),h.j41(9,"div",30),h.EFF(10),h.nI1(11,"currency"),h.k0s()(),h.SS7(12),h.nVh(13,ne,7,8,"div",31),h.k0s()),2&e){h.XpG();const e=h.r8f(18),t=h.XpG(),i=h.r8f(0);h.R7$(3),h.SpI(" ",h.bMT(4,6,"secretsManager")," "),h.R7$(4),h.Lme(" ",e.quantity," ",t.translateWithParams(e.translationKey,e.translationParams)," "),h.R7$(),h.vxM(e.hideBreakdown?-1:8),h.R7$(2),h.SpI(" ",h.brH(11,8,t.secretsManagerSeatsTotal(),"USD","symbol")," "),h.R7$(2);const n=h.bH3(null==i.secretsManager?null:i.secretsManager.additionalServiceAccounts);h.R7$(),h.vxM(n?13:-1)}}function se(e,t){if(1&e&&(h.j41(0,"div",33)(1,"div",34),h.EFF(2),h.k0s(),h.j41(3,"div",35),h.EFF(4),h.nI1(5,"currency"),h.k0s()()),2&e){const e=h.XpG().$implicit;h.R7$(2),h.JRh(e.label),h.R7$(2),h.SpI(" -",h.brH(5,2,e.amount,"USD","symbol")," ")}}function oe(e,t){if(1&e&&h.nVh(0,se,6,6,"div",33),2&e){const e=t.$implicit;h.vxM(e.amount>0?0:-1)}}function ae(e,t){if(1&e&&(h.j41(0,"div",20)(1,"div",15),h.EFF(2),h.k0s(),h.j41(3,"div",36),h.EFF(4),h.nI1(5,"currency"),h.k0s()()),2&e){const e=h.XpG(2),t=h.r8f(0);h.R7$(2),h.SpI(" ",e.translateWithParams(t.credit.translationKey,t.credit.translationParams)," "),h.R7$(2),h.SpI(" -",h.brH(5,2,e.creditAmount(),"USD","symbol")," ")}}function le(e,t){if(1&e&&h.EFF(0),2&e){h.XpG(2);const e=h.r8f(1);h.SpI(" / ",e," ")}}function ce(e,t){if(1&e&&(h.j41(0,"div",4)(1,"div",10)(2,"div",11)(3,"h3",12),h.EFF(4),h.nI1(5,"i18n"),h.k0s()(),h.j41(6,"div",13)(7,"div",14),h.SS7(8),h.j41(9,"div",15),h.EFF(10),h.nVh(11,Z,3,6),h.k0s()(),h.j41(12,"div",16),h.EFF(13),h.nI1(14,"currency"),h.k0s()(),h.nVh(15,H,6,6,"div",17),h.SS7(16),h.nVh(17,$,8,8,"div",18),h.k0s(),h.SS7(18),h.nVh(19,re,14,13,"div",19),h.Z7z(20,oe,1,1,null,null,N),h.nVh(22,ae,6,6,"div",20),h.j41(23,"div",21)(24,"h3",12),h.EFF(25),h.nI1(26,"i18n"),h.k0s(),h.j41(27,"div",22),h.EFF(28),h.nI1(29,"currency"),h.k0s()(),h.j41(30,"div",23)(31,"h3",12),h.EFF(32),h.nI1(33,"i18n"),h.k0s(),h.j41(34,"div",24),h.EFF(35),h.nI1(36,"currency"),h.nVh(37,le,1,1),h.k0s()()()),2&e){const e=h.XpG(),t=h.r8f(0);h.R7$(4),h.SpI(" ",h.bMT(5,14,"passwordManager")," "),h.R7$(4);const i=h.bH3(t.passwordManager.seats);h.R7$(2),h.Lme(" ",i.quantity," ",e.translateWithParams(i.translationKey,i.translationParams)," "),h.R7$(),h.vxM(i.hideBreakdown?-1:11),h.R7$(2),h.SpI(" ",h.brH(14,17,e.passwordManagerSeatsTotal(),"USD","symbol")," "),h.R7$(2),h.vxM(e.passwordManagerSeatsDiscountAmount()>0?15:-1),h.R7$();const n=h.bH3(t.passwordManager.additionalStorage);h.R7$(),h.vxM(n?17:-1),h.R7$();const r=h.bH3(null==t.secretsManager?null:t.secretsManager.seats);h.R7$(),h.vxM(r?19:-1),h.R7$(),h.Dyx(e.discountLineItems()),h.R7$(2),h.vxM(e.creditAmount()>0?22:-1),h.R7$(3),h.SpI(" ",h.bMT(26,23,"estimatedTax")," "),h.R7$(3),h.SpI(" ",h.brH(29,25,e.estimatedTax(),"USD","symbol")," "),h.R7$(4),h.JRh(h.bMT(33,29,"total")),h.R7$(3),h.SpI(" ",h.brH(36,31,e.total(),"USD","symbol")," "),h.R7$(2),h.vxM(e.hidePricingTerm()?-1:37)}}class de{constructor(){this.i18nService=(0,A.WQX)(T.W),this.cart=r.hFB.required(),this.header=(0,r.hFB)(),this.hidePricingTerm=(0,r.hFB)(!1),this.showDiscountBadges=(0,r.hFB)(!1),this.isExpanded=(0,A.vPA)(!0),this.passwordManagerSeatsTotal=(0,R.EW)(()=>{const{passwordManager:{seats:e}}=this.cart();return e.quantity*e.cost}),this.passwordManagerSeatsDiscountAmount=(0,R.EW)(()=>{const{passwordManager:{seats:e}}=this.cart();return this.getItemDiscountAmount(e)}),this.passwordManagerSeatsDiscountLabel=(0,R.EW)(()=>{const{passwordManager:{seats:e}}=this.cart();return e.discount?x(this.i18nService,e.discount):""}),this.additionalStorageTotal=(0,R.EW)(()=>{const{passwordManager:{additionalStorage:e}}=this.cart();return e?e.quantity*e.cost:0}),this.secretsManagerSeatsTotal=(0,R.EW)(()=>{const{secretsManager:e}=this.cart();return e?e.seats.quantity*e.seats.cost:0}),this.additionalServiceAccountsTotal=(0,R.EW)(()=>{const{secretsManager:e}=this.cart();return e&&e.additionalServiceAccounts?e.additionalServiceAccounts.quantity*e.additionalServiceAccounts.cost:0}),this.estimatedTax=(0,R.EW)(()=>this.cart().estimatedTax),this.term=(0,R.EW)(()=>{const{cadence:e}=this.cart();switch(e){case"annually":return this.i18nService.t("year");case"monthly":return this.i18nService.t("month")}}),this.subtotal=(0,R.EW)(()=>this.passwordManagerSeatsTotal()+this.additionalStorageTotal()+this.secretsManagerSeatsTotal()+this.additionalServiceAccountsTotal()),this.discountLineItems=(0,R.EW)(()=>{const{discounts:e}=this.cart();return(null==e?void 0:e.length)?this.calculateDiscountLineItems(e,this.subtotal()):[]}),this.discountAmount=(0,R.EW)(()=>this.discountLineItems().reduce((e,t)=>e+t.amount,0)),this.creditAmount=(0,R.EW)(()=>{const{credit:e}=this.cart();return e?e.value:0}),this.total=(0,R.EW)(()=>this.subtotal()-this.discountAmount()-this.passwordManagerSeatsDiscountAmount()-this.creditAmount()+this.estimatedTax()),this.total$=(0,F.br)(this.total)}calculateDiscountLineItems(e,t){let i=t;return e.map(e=>{const t=M(e,i);return i-=t,{label:x(this.i18nService,e),amount:t}})}translateWithParams(e,t){return t&&0!==t.length?this.i18nService.t(e,...t):this.i18nService.t(e)}toggleExpanded(){this.isExpanded.update(e=>!e)}getItemDiscountAmount(e){return e.discount?M(e.discount,e.quantity*e.cost):0}}de.ɵfac=function(e){return new(e||de)},de.ɵcmp=h.VBU({type:de,selectors:[["billing-cart-summary"]],inputs:{cart:[1,"cart"],header:[1,"header"],hidePricingTerm:[1,"hidePricingTerm"],showDiscountBadges:[1,"showDiscountBadges"]},decls:13,vars:14,consts:[[1,"tw-size-full"],[1,"tw-flex","tw-items-center","tw-pb-2","tw-gap-0.5"],[1,"tw-flex","tw-items-center"],["type","button","size","small","data-testid","toggle-purchase-summary-details",3,"click","bitIconButton","label"],["id","purchase-summary-details",1,"tw-pb-2"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["bitTypography","h4","id","purchase-summary-heading","data-testid","purchase-summary-heading-total",1,"!tw-m-0"],["bitTypography","h3"],["bitTypography","body1",1,"tw-text-muted"],[1,"tw-mr-1",3,"discount"],["id","password-manager",1,"tw-border-b","tw-border-secondary-100","tw-pb-2"],[1,"tw-flex","tw-justify-between","tw-mb-1"],["bitTypography","h5",1,"tw-text-muted","tw-font-semibold"],["id","password-manager-members",1,"tw-flex","tw-justify-between"],[1,"tw-flex-1"],["bitTypography","body1",1,"tw-text-muted","tw-font-normal"],["bitTypography","body1","data-testid","password-manager-total",1,"tw-text-muted","tw-font-normal"],["data-testid","password-manager-seats-discount",1,"tw-flex","tw-justify-between"],["id","additional-storage",1,"tw-flex","tw-justify-between"],["id","secrets-manager",1,"tw-border-b","tw-border-secondary-100","tw-py-2"],["id","credit-section","data-testid","credit-section",1,"tw-flex","tw-justify-between","tw-border-b","tw-border-secondary-100","tw-py-2"],["id","estimated-tax-section",1,"tw-flex","tw-justify-between","tw-border-b","tw-border-secondary-100","tw-pt-2","tw-pb-0.5"],["bitTypography","body1","data-testid","estimated-tax",1,"tw-text-muted"],["id","total-section",1,"tw-flex","tw-justify-between","tw-items-center","tw-pt-2"],["bitTypography","body1","data-testid","final-total",1,"tw-text-muted"],["bitTypography","body1","data-testid","password-manager-seats-discount-label",1,"tw-text-success-600"],["bitTypography","body1","data-testid","password-manager-seats-discount-amount",1,"tw-text-success-600"],["bitTypography","body1","data-testid","additional-storage-total",1,"tw-text-muted","tw-font-normal"],[1,"tw-flex","tw-justify-between"],["id","secrets-manager-members",1,"tw-flex","tw-justify-between"],["bitTypography","body1","data-testid","secrets-manager-seats-total",1,"tw-text-muted","tw-font-normal"],["id","additional-service-accounts",1,"tw-flex","tw-justify-between"],["bitTypography","body1","data-testid","additional-service-accounts-total",1,"tw-text-muted"],["data-testid","discount-section",1,"tw-flex","tw-justify-between","tw-border-b","tw-border-secondary-100","tw-py-2"],["bitTypography","body1",1,"tw-text-success-600"],["bitTypography","body1","data-testid","discount-amount",1,"tw-text-success-600"],["bitTypography","body1","data-testid","credit-amount",1,"tw-text-muted","tw-font-normal"]],template:function(e,t){if(1&e&&(h.SS7(0)(1)(2),h.j41(3,"div",0)(4,"div",1)(5,"div",2),h.nVh(6,Y,1,4,"ng-container")(7,z,7,9),h.k0s(),h.j41(8,"button",3),h.nI1(9,"i18n"),h.nI1(10,"i18n"),h.bIt("click",function(){return t.toggleExpanded()}),h.k0s(),h.nVh(11,W,2,0),h.k0s(),h.nVh(12,ce,38,35,"div",4),h.k0s()),2&e){let e;h.bH3(t.cart()),h.R7$(),h.bH3(t.term()),h.R7$(),h.bH3(t.hidePricingTerm()),h.R7$(4),h.vxM((e=t.header())?6:7,e),h.R7$(2),h.Y8G("bitIconButton",t.isExpanded()?"bwi-angle-up":"bwi-angle-down")("label",t.isExpanded()?h.bMT(9,10,"Collapse purchase details"):h.bMT(10,12,"Expand purchase details")),h.BMQ("aria-expanded",t.isExpanded())("aria-controls","purchase-summary-details"),h.R7$(3),h.vxM(t.showDiscountBadges()?11:-1),h.R7$(),h.vxM(t.isExpanded()?12:-1)}},dependencies:[c.E,m.r,D.Q,U.s,n.T3,G,n.oe,u.$Z],encapsulation:2,changeDetection:0})},77867(e,t,i){"use strict";i.d(t,{P8:()=>a,fq:()=>n,Cc:()=>r});const n={generatePasswordClearClipboardTimeout:"generatePasswordClearClipboardTimeout",systemClearClipboardTimeout:"systemClearClipboardTimeout",loginStrategySessionTimeout:"loginStrategySessionTimeout",notificationsReconnectTimeout:"notificationsReconnectTimeout",fido2ClientAbortTimeout:"fido2ClientAbortTimeout",scheduleNextSyncInterval:"scheduleNextSyncInterval",eventUploadsInterval:"eventUploadsInterval",vaultTimeoutCheckInterval:"vaultTimeoutCheckInterval",clearPopupViewCache:"clearPopupViewCache",targetingRulesUpdate:"targetingRulesUpdate",phishingDomainUpdate:"phishingDomainUpdate"};class r{}var s=i(34414),o=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class a extends r{constructor(e){super(),this.logService=e,this.taskHandlers=new Map}setTimeout(e,t){this.validateRegisteredTask(e);const i=globalThis.setTimeout(()=>this.triggerTask(e),t);return new s.yU(()=>globalThis.clearTimeout(i))}setInterval(e,t,i){this.validateRegisteredTask(e);const n=globalThis.setInterval(()=>this.triggerTask(e),t);return new s.yU(()=>globalThis.clearInterval(n))}registerTaskHandler(e,t){this.taskHandlers.get(e)&&(this.logService.warning(`Task handler for ${e} already exists. Overwriting.`),this.unregisterTaskHandler(e)),this.taskHandlers.set(e,t)}unregisterTaskHandler(e){this.taskHandlers.delete(e)}triggerTask(e,t){return o(this,void 0,void 0,function*(){const t=this.taskHandlers.get(e);t&&t()})}validateRegisteredTask(e){if(!this.taskHandlers.has(e))throw new Error(`Task handler for ${e} not registered. Unable to schedule task.`)}}},93173(e,t,i){"use strict";i.d(t,{Bz:()=>N,$5:()=>A,jx:()=>I,dR:()=>T,Bh:()=>V,df:()=>q,ep:()=>_,Cp:()=>O,mH:()=>K});var n=i(16385),r=i(191),s=i(12055),o=i(69783),a=i(68108),l=i(6586),c=i(92567),d=i(31066),u=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class h{constructor(e,t,i){this.keyDefinition=e,this.activeUserId$=t,this.singleUserStateProvider=i,this.combinedState$=this.activeUserId$.pipe((0,r.n)(e=>null!=e?this.singleUserStateProvider.get(e,this.keyDefinition).combinedState$:s.t)),this.state$=this.combinedState$.pipe((0,o.T)(([e,t])=>t))}update(e){return u(this,arguments,void 0,function*(e,t={}){const i=yield(0,a._)(this.activeUserId$.pipe((0,l.w)({first:1e3,with:()=>(0,c.$)(()=>new Error(`Timeout while retrieving active user for key ${this.keyDefinition.fullName}.`))})));if(null==i)throw new Error(`Error storing ${this.keyDefinition.fullName} for the active user: No active user at this time.`);return[i,yield this.singleUserStateProvider.get(i,this.keyDefinition).update(e,t)]})}}class A{constructor(e,t){this.activeAccountAccessor=e,this.singleUserStateProvider=t,this.activeUserId$=this.activeAccountAccessor.activeUserId$.pipe((0,n.F)((e,t)=>null==e||null==t?e==t:e===t))}get(e){return new h(e,this.activeUserId$,this.singleUserStateProvider)}}var p=i(87806),g=i(62423),v=i(61065),m=i(91254),f=i(39250),y=i(73140),b=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class C{constructor(e,t,i){this.parentState$=e,this.deriveDefinition=t,this.dependencies=i,this.forcedValueSubject=new p.B,this.storageKey=t.storageKey;const n=this.parentState$.pipe((0,g.H)(e=>b(this,void 0,void 0,function*(){let t=this.deriveDefinition.derive(e,this.dependencies);t instanceof Promise&&(t=yield t);return t})));this.state$=(0,v.h)(this.forcedValueSubject,n).pipe((0,m.u)({connector:()=>new f.m(1),resetOnRefCountZero:()=>(0,y.O)(this.deriveDefinition.cleanupDelayMs)}))}forceValue(e){return b(this,void 0,void 0,function*(){return this.forcedValueSubject.next(e),e})}}class I{constructor(){this.cache=new WeakMap}get(e,t,i){let n=this.cache.get(e);n||(n={},this.cache.set(e,n));const r=t.buildCacheKey(),s=n[r];if(null!=s)return s;const o=this.buildDerivedState(e,t,i);return n[r]=o,o}buildDerivedState(e,t,i){return new C(e,t,i)}}var w=i(68711),B=i(95457),E=i(35284),S=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function Q(e,t,i){return S(this,void 0,void 0,function*(){if(t.valuesRequireDeserialization){const n=yield t.get(e);return i(n)}{const i=yield t.get(e);return null!=i?i:null}})}var k=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class R{constructor(e,t,i,n){this.key=e,this.storageService=t,this.keyDefinition=i,this.logService=n;const s=t.updates$.pipe((0,w.p)(t=>t.key===e),(0,r.n)(n=>k(this,void 0,void 0,function*(){return"remove"===n.updateType?null:yield Q(e,t,i.deserializer)})));let o=(0,v.h)((0,B.v)(()=>Q(e,t,i.deserializer)),s);i.debug.enableRetrievalLogging&&(o=o.pipe((0,E.M)({next:t=>{this.logService.info(`Retrieving '${e}' from storage, value is ${null==t?"null":"non-null"}`)}}))),0!==i.cleanupDelayMs&&(o=o.pipe((0,m.u)({connector:()=>new f.m(1),resetOnRefCountZero:()=>(0,y.O)(i.cleanupDelayMs)}))),this.state$=o}update(e){return k(this,arguments,void 0,function*(e,t={}){const i=function(e){const{combineLatestWith:t=null,shouldUpdate:i=()=>!0,msTimeout:n=1e3}=e;return{combineLatestWith:t,shouldUpdate:i,msTimeout:n}}(t);null!=this.updatePromise&&(yield this.updatePromise);try{return this.updatePromise=this.internalUpdate(e,i),yield this.updatePromise}finally{this.updatePromise=null}})}internalUpdate(e,t){return k(this,void 0,void 0,function*(){const i=yield this.getStateForUpdate(),n=null!=t.combineLatestWith?yield(0,a._)(t.combineLatestWith.pipe((0,l.w)(t.msTimeout))):null;if(!t.shouldUpdate(i,n))return i;const r=e(i,n);return yield this.doStorageSave(r,i),r})}doStorageSave(e,t){return k(this,void 0,void 0,function*(){this.keyDefinition.debug.enableUpdateLogging&&this.logService.info(`Updating '${this.key}' from ${null==t?"null":"non-null"} to ${null==e?"null":"non-null"}`),yield this.storageService.save(this.key,e)})}getStateForUpdate(){return k(this,void 0,void 0,function*(){return yield Q(this.key,this.storageService,this.keyDefinition.deserializer)})}}class F extends R{constructor(e,t,i){super(function(e){return`global_${e.stateDefinition.name}_${e.key}`}(e),t,e,i)}}class T{constructor(e,t){this.storageServiceProvider=e,this.logService=t,this.globalStateCache={}}get(e){const[t,i]=this.storageServiceProvider.get(e.stateDefinition.defaultStorageLocation,e.stateDefinition.storageLocationOverrides),n=this.buildCacheKey(t,e),r=this.globalStateCache[n];if(null!=r)return r;const s=new F(e,i,this.logService);return this.globalStateCache[n]=s,s}buildCacheKey(e,t){return`${e}_${t.fullName}`}}var D=i(72135),P=i(83604),M=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class x extends R{constructor(e,t,i,n,r){super(t.buildKey(e),i,t,r),this.userId=e,this.stateEventRegistrarService=n,this.combinedState$=(0,D.z)([(0,P.of)(e),this.state$])}doStorageSave(e,t){const i=Object.create(null,{doStorageSave:{get:()=>super.doStorageSave}});return M(this,void 0,void 0,function*(){yield i.doStorageSave.call(this,e,t),yield this.stateEventRegistrarService.registerEvents(this.keyDefinition)})}}class V{constructor(e,t,i){this.storageServiceProvider=e,this.stateEventRegistrarService=t,this.logService=i,this.cache={}}get(e,t){const[i,n]=this.storageServiceProvider.get(t.stateDefinition.defaultStorageLocation,t.stateDefinition.storageLocationOverrides),r=this.buildCacheKey(i,e,t),s=this.cache[r];if(null!=s)return s;const o=new x(e,t,n,this.stateEventRegistrarService,this.logService);return this.cache[r]=o,o}buildCacheKey(e,t,i){return`${e}_${i.fullName}_${t}`}}var G=i(5206),U=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class O{constructor(e,t,i,n){this.activeUserStateProvider=e,this.singleUserStateProvider=t,this.globalStateProvider=i,this.derivedStateProvider=n,this.getActive=this.activeUserStateProvider.get.bind(this.activeUserStateProvider),this.getUser=this.singleUserStateProvider.get.bind(this.singleUserStateProvider),this.getGlobal=this.globalStateProvider.get.bind(this.globalStateProvider),this.getDerived=this.derivedStateProvider.get.bind(this.derivedStateProvider),this.activeUserId$=this.activeUserStateProvider.activeUserId$}getUserState$(e,t){return t?this.getUser(t,e).state$:this.activeUserId$.pipe((0,w.p)(e=>null!=e),(0,G.s)(1),(0,r.n)(t=>this.getUser(t,e).state$))}getUserStateOrDefault$(e,t){const{userId:i,defaultValue:n=null}=t;return i?this.getUser(i,e).state$:this.activeUserId$.pipe((0,G.s)(1),(0,r.n)(t=>null!=t?this.getUser(t,e).state$:(0,P.of)(n)))}setUserState(e,t,i){return U(this,void 0,void 0,function*(){return i?[i,yield this.getUser(i,e).update(()=>t)]:yield this.getActive(e).update(()=>t)})}}class N{}class j{}var Y=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const X="global",z="_user_auto",L="_user_biometric",W="DuckDuckGoSharedKey";class K{constructor(e,t,i){this.storageService=e,this.secureStorageService=t,this.activeUserAccessor=i}clean(e){return Y(this,void 0,void 0,function*(){yield this.setUserKeyAutoUnlock(null,e),yield this.clearUserKeyBiometric(e.userId)})}getUserKeyAutoUnlock(e){return Y(this,void 0,void 0,function*(){return null==e.userId?null:yield this.secureStorageService.get(`${e.userId}${z}`,{userId:e.userId,keySuffix:"auto"})})}setUserKeyAutoUnlock(e,t){return Y(this,void 0,void 0,function*(){null!=t.userId&&(yield this.saveSecureStorageKey(z,e,t.userId,"auto"))})}clearUserKeyBiometric(e){return Y(this,void 0,void 0,function*(){null!=e&&(yield this.saveSecureStorageKey(L,null,e,"biometric"))})}getDuckDuckGoSharedKey(){return Y(this,void 0,void 0,function*(){return null==(yield this.getActiveUserIdFromStorage())?null:yield this.secureStorageService.get(W)})}setDuckDuckGoSharedKey(e){return Y(this,void 0,void 0,function*(){null!=(yield this.getActiveUserIdFromStorage())&&(null==e?yield this.secureStorageService.remove(W):yield this.secureStorageService.save(W,e))})}setEnableDuckDuckGoBrowserIntegration(e){return Y(this,void 0,void 0,function*(){var t;const i=null!==(t=yield this.storageService.get(X))&&void 0!==t?t:new j;i.enableDuckDuckGoBrowserIntegration=e,yield this.storageService.save(X,i)})}getActiveUserIdFromStorage(){return Y(this,void 0,void 0,function*(){return yield(0,a._)(this.activeUserAccessor.activeUserId$)})}saveSecureStorageKey(e,t,i,n){return Y(this,void 0,void 0,function*(){return null==t?yield this.secureStorageService.remove(`${i}${e}`,{keySuffix:n}):yield this.secureStorageService.save(`${i}${e}`,t,{keySuffix:n})})}}var Z=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const H=d.Zs.array(d.Z9,"lock",{deserializer:e=>e}),J=d.Zs.array(d.Z9,"logout",{deserializer:e=>e});class q{constructor(e,t){this.storageServiceProvider=t,this.stateEventStateMap={lock:e.get(H),logout:e.get(J)}}registerEvents(e){return Z(this,void 0,void 0,function*(){for(const t of e.clearOn){const i=this.stateEventStateMap[t],[n]=this.storageServiceProvider.get(e.stateDefinition.defaultStorageLocation,e.stateDefinition.storageLocationOverrides),r={state:e.stateDefinition.name,key:e.key,location:n};yield i.update(e=>(null!=e||(e=[]),e.push(r),e),{shouldUpdate:e=>null==e||-1===e.findIndex(e=>e.state===r.state&&e.key===r.key&&e.location===r.location)})}})}}var $=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class _{constructor(e,t){this.storageServiceProvider=t,this.stateEventMap={lock:e.get(H),logout:e.get(J)}}handleEvent(e,t){return $(this,void 0,void 0,function*(){let i=yield(0,a._)(this.stateEventMap[e].state$);null!=i||(i=[]);const n=[];for(const e of i)try{const[,i]=this.storageServiceProvider.get(e.location,{}),n=this.storageKeyFor(t,e);null!=(yield i.get(n))&&(yield i.remove(n))}catch(r){let t="Unknown Error";null!=r&&"object"==typeof r&&"message"in r&&"string"==typeof r.message&&(t=r.message),n.push(`${t} in ${e.state} > ${e.key} located ${e.location}`)}if(n.length>0)throw new Error(`One or more errors occurred while handling event '${e}' for user ${t}.\n${n.join("\n")}`)})}storageKeyFor(e,t){return new d.Ok(new d.zU(t.state,t.location),t.key,{deserializer:e=>e,clearOn:[]}).buildKey(e)}}},31066(e,t,i){"use strict";i.d(t,{ie:()=>Q,dn:()=>k,dp:()=>q,Vl:()=>$,vZ:()=>I,wt:()=>R,Md:()=>a,O2:()=>H,Iw:()=>Ee,Cg:()=>B,Q5:()=>E,g:()=>S,rB:()=>Me,cj:()=>_,fn:()=>Ie,HR:()=>we,Xk:()=>Be,Z9:()=>ee,PM:()=>ge,xS:()=>ve,Z6:()=>te,Gg:()=>Ue,Gd:()=>Oe,V_:()=>Jo,BA:()=>C,eP:()=>F,XH:()=>J,w8:()=>n,K8:()=>xe,ww:()=>ie,Wm:()=>ne,Qb:()=>he,OB:()=>ce,Rv:()=>me,jx:()=>fe,qd:()=>de,kj:()=>ue,Y2:()=>s,hs:()=>re,P7:()=>Ne,_Q:()=>je,Zs:()=>d,d1:()=>T,jB:()=>D,Gm:()=>P,Br:()=>M,Tf:()=>x,y7:()=>V,Nb:()=>ta,i9:()=>Qe,bI:()=>ke,nr:()=>m,fK:()=>W,de:()=>w,ll:()=>b,EF:()=>Ve,aL:()=>Ge,jb:()=>f,L_:()=>y,Sc:()=>G,k2:()=>Se,Mc:()=>X,bj:()=>Ae,$g:()=>pe,q9:()=>Re,FC:()=>Ye,iy:()=>U,aC:()=>O,W$:()=>se,Ys:()=>o,zU:()=>v,iO:()=>Xe,lR:()=>g,v2:()=>r,dw:()=>na,dD:()=>oe,uv:()=>N,MC:()=>j,oR:()=>Y,Ud:()=>ae,bh:()=>z,xu:()=>L,Ok:()=>p,gc:()=>Te,km:()=>ye,iK:()=>be,Mw:()=>De,Jb:()=>Ce,dr:()=>K,zT:()=>Z,b4:()=>Fe,g4:()=>le,yh:()=>Pe,yT:()=>qo,YO:()=>$o,GR:()=>_o});class n{}class r{}class s{}class o{}class a{}function l(e){return t=>null==t?null:t.map(t=>e(t))}function c(e){return t=>{if(null==t)return null;const i={};return Object.entries(t).forEach(([t,n])=>{i[t]=e(n)}),i}}class d{constructor(e,t,i){var n;if(this.stateDefinition=e,this.key=t,this.options=i,null==i.deserializer)throw new Error(`'deserializer' is a required property on key ${this.errorKeyName}`);if(i.cleanupDelayMs<0)throw new Error(`'cleanupDelayMs' must be greater than or equal to 0. Value of ${i.cleanupDelayMs} passed to key ${this.errorKeyName} `);const{enableUpdateLogging:r=!1,enableRetrievalLogging:s=!1}=null!==(n=i.debug)&&void 0!==n?n:{};this.debug={enableUpdateLogging:r,enableRetrievalLogging:s}}get deserializer(){return this.options.deserializer}get cleanupDelayMs(){var e;return this.options.cleanupDelayMs<0?0:null!==(e=this.options.cleanupDelayMs)&&void 0!==e?e:1e3}static array(e,t,i){return new d(e,t,Object.assign(Object.assign({},i),{deserializer:l(e=>i.deserializer(e))}))}static record(e,t,i){return new d(e,t,Object.assign(Object.assign({},i),{deserializer:c(e=>i.deserializer(e))}))}get fullName(){return`${this.stateDefinition.name}_${this.key}`}get errorKeyName(){return`${this.stateDefinition.name} > ${this.key}`}}var u,h=i(53323);const A=Symbol("UserKeyDefinition");class p{constructor(e,t,i){var n;if(this.stateDefinition=e,this.key=t,this.options=i,this[u]=!0,null==i.deserializer)throw new Error(`'deserializer' is a required property on key ${this.errorKeyName}`);if(i.cleanupDelayMs<0)throw new Error(`'cleanupDelayMs' must be greater than or equal to 0. Value of ${i.cleanupDelayMs} passed to key ${this.errorKeyName} `);this.clearOn=Array.from(new Set(i.clearOn));const{enableUpdateLogging:r=!1,enableRetrievalLogging:s=!1}=null!==(n=i.debug)&&void 0!==n?n:{};this.debug={enableUpdateLogging:r,enableRetrievalLogging:s}}get deserializer(){return this.options.deserializer}get cleanupDelayMs(){var e;return this.options.cleanupDelayMs<0?0:null!==(e=this.options.cleanupDelayMs)&&void 0!==e?e:1e3}static array(e,t,i){return new p(e,t,Object.assign(Object.assign({},i),{deserializer:l(e=>i.deserializer(e))}))}static record(e,t,i){return new p(e,t,Object.assign(Object.assign({},i),{deserializer:c(e=>i.deserializer(e))}))}get fullName(){return`${this.stateDefinition.name}_${this.key}`}buildKey(e){if(!(0,h.W_)(e))throw new Error(`You cannot build a user key without a valid UserId, building for key ${this.fullName}`);return`user_${e}_${this.stateDefinition.name}_${this.key}`}get errorKeyName(){return`${this.stateDefinition.name} > ${this.key}`}}u=A;class g{}Symbol("active");class v{constructor(e,t,i){this.name=e,this.defaultStorageLocation=t,this.storageLocationOverrides=null!=i?i:{}}}const m=new v("organizations","disk"),f=new v("policies","disk"),y=new v("providers","disk"),b=new v("organizationManagementPreferences","disk",{web:"disk-local"}),C=new v("showDeleteManagedUserWarning","disk",{web:"disk-local"}),I=new v("autoConfirm","disk",{web:"disk-local"}),w=new v("organizationInviteLink","disk"),B=(new v("scimBanner","disk",{web:"disk-local"}),new v("billing","disk")),E=new v("billingLocal","disk",{web:"disk-local"}),S=new v("billing","memory"),Q=new v("account","disk"),k=(new v("account","memory"),new v("authRequestLocal","disk",{web:"disk-local"})),R=new v("avatar","disk",{web:"disk-local"}),F=new v("deviceTrust","disk",{web:"disk-local",browser:"disk-backup-local-storage"}),T=new v("loginEmail","disk",{web:"disk-local"}),D=new v("loginEmail","memory"),P=new v("loginStrategy","memory"),M=new v("masterPassword","disk"),x=new v("masterPassword","memory"),V=new v("masterPasswordUnlock","disk"),G=new v("router","disk"),U=new v("ssoLogin","disk"),O=new v("ssoLoginLocal","disk",{web:"disk-local"}),N=new v("token","disk"),j=new v("tokenDiskLocal","disk",{web:"disk-local"}),Y=new v("token","memory"),X=new v("sendAccess","disk"),z=new v("twoFactor","memory"),L=new v("userDecryptionOptions","disk"),W=new v("organizationInvite","disk"),K=new v("vaultTimeoutSettings","disk",{web:"disk-local"}),Z=new v("vaultTimeoutSettings","memory"),H=new v("badgeSettings","disk"),J=(new v("userNotificationSettings","disk"),new v("domainSettings","disk")),q=new v("autofillSettings","disk"),$=new v("autofillSettingsLocal","disk",{web:"disk-local"}),_=(new v("autotypeSettings","disk"),new v("newWebLayoutBanner","disk",{web:"disk-local"}),new v("bitSideNav","disk")),ee=(new v("phishingDetection","disk"),new v("applicationId","disk",{web:"disk-local"}),new v("clearEvent","disk")),te=new v("config","disk",{web:"disk-local"}),ie=(new v("desktopSettings","disk"),new v("environment","disk")),ne=new v("environment","memory"),re=new v("interProcessCommunication","memory"),se=(new v("popupView","memory",{browser:"memory-large-object"}),new v("sync","disk",{web:"memory"})),oe=new v("theming","disk",{web:"disk-local"}),ae=new v("translation","disk",{web:"disk-local"}),le=(new v("animation","disk"),new v("taskScheduler","disk"),new v("extensionInitialInstall","disk"),new v("webPushSubscription","disk",{web:"disk-local"})),ce=(new v("serverCommunicationConfig","disk"),new v("popupStyle","disk"),new v("smOnboarding","disk",{web:"disk-local"}),new v("extension","disk")),de=new v("generator","disk"),ue=new v("generator","memory"),he=(new v("sendBrowser","memory"),new v("eventCollection","disk")),Ae=new v("encryptedSend","disk",{web:"memory"}),pe=new v("decryptedSend","memory",{browser:"memory-large-object"}),ge=(new v("sendAccessAuth","memory"),new v("collection","disk",{web:"memory"})),ve=new v("decryptedCollections","memory",{browser:"memory-large-object"}),me=new v("folder","disk",{web:"memory"}),fe=new v("decryptedFolders","memory",{browser:"memory-large-object"}),ye=new v("vaultFilter","disk",{web:"disk-local"}),be=new v("vaultOnboarding","disk",{web:"disk-local"}),Ce=new v("vaultSettings","disk",{web:"disk-local"}),Ie=(new v("vaultBrowser","memory",{browser:"memory-large-object"}),new v("vaultSearch","memory",{browser:"memory-large-object"}),new v("ciphers","disk",{web:"memory"})),we=new v("ciphersLocal","disk",{web:"disk-local"}),Be=new v("ciphersMemory","memory",{browser:"memory-large-object"}),Ee=new v("bannersDismissed","disk"),Se=(new v("vaultAppearance","disk"),new v("securityTasks","disk")),Qe=(new v("atRiskPasswordsPage","disk"),new v("notifications","disk")),ke=new v("nudges","disk",{web:"disk-local"}),Re=new v("setupExtensionDismissed","disk",{web:"disk-local"}),Fe=new v("vaultWelcomeDialog","disk",{web:"disk-local"}),Te=(new v("vaultBrowserIntroCarousel","disk"),new v("vaultBrowserDefaultPasswordManagerPrompt","disk"),new v("vaultAutofillSimplifiedIcon","disk"),new v("vaultAtRiskPasswords","memory")),De=new v("vaultOrgUserNotification","disk",{web:"disk-local"}),Pe=new v("vaultWelcomeExtensionDialogDismissed","disk",{web:"disk-local"}),Me=(new v("accessIntelligenceWelcomeDialog","disk",{web:"disk-local"}),new v("biometricSettings","disk")),xe=new v("encryptedMigration","disk"),Ve=new v("pinUnlock","disk"),Ge=new v("pinUnlock","memory"),Ue=new v("crypto","disk"),Oe=new v("crypto","memory"),Ne=new v("kdfConfig","disk"),je=new v("keyConnector","disk"),Ye=new v("sharedUnlockSettings","disk");class Xe{}var ze=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Le{static create(){return new Le([])}constructor(e){this.migrations=e}with(...e){return this.addMigrator(e,"up")}rollback(...e){return 3===e.length&&(e=[e[0],e[2],e[1]]),this.addMigrator(e,"down")}migrate(e){return this.migrations.reduce((t,i)=>t.then(()=>ze(this,void 0,void 0,function*(){yield this.runMigrator(i.migrator,e,i.direction)})),Promise.resolve())}addMigrator(e,t="up"){const i=1===e.length?{migrator:new e[0],direction:t}:{migrator:new e[0](e[1],e[2]),direction:t};return new Le([...this.migrations,i])}runMigrator(e,t,i){return ze(this,void 0,void 0,function*(){const n=yield e.shouldMigrate(t,i);if(t.info(`Migrator ${e.constructor.name} (to version ${e.toVersion}) should migrate: ${n} - ${i}`),n){const n="up"===i?e.migrate:e.rollback;yield n.bind(e)(t),t.info(`Migrator ${e.constructor.name} (to version ${e.toVersion}) migrated - ${i}`),yield e.updateVersion(t,i),t.info(`Migrator ${e.constructor.name} (to version ${e.toVersion}) updated version - ${i}`)}})}}var We=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Ke=new Error("Irreversible migration");class Ze{constructor(e,t){if(this.fromVersion=e,this.toVersion=t,null==e||null==t)throw new Error("Invalid migration");if(e>t)throw new Error("Invalid migration")}shouldMigrate(e,t){const i="up"===t?this.fromVersion:this.toVersion;return Promise.resolve(e.currentVersion===i)}updateVersion(e,t){return We(this,void 0,void 0,function*(){const i="up"===t?this.toVersion:this.fromVersion;e.currentVersion=i,yield e.set("stateVersion",i)})}}var He=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Je={key:"everHadUserKey",stateDefinition:{name:"crypto"}};class qe extends Ze{migrate(e){return He(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return He(this,void 0,void 0,function*(){var n;const r=null===(n=null==i?void 0:i.profile)||void 0===n?void 0:n.everHadUserKey;yield e.setToUser(t,Je,null!=r&&r),null!=r&&delete i.profile.everHadUserKey,yield e.set(t,i)})}(t,i))])})}rollback(e){return He(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return He(this,void 0,void 0,function*(){var n;const r=yield e.getFromUser(t,Je);i&&(i.profile=Object.assign(null!==(n=i.profile)&&void 0!==n?n:{},{everHadUserKey:r}),yield e.set(t,i)),yield e.setToUser(t,Je,null)})}(t,i))])})}}var $e=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const _e={key:"organizationKeys",stateDefinition:{name:"crypto"}};class et extends Ze{migrate(e){return $e(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return $e(this,void 0,void 0,function*(){var n,r;const s=null===(r=null===(n=null==i?void 0:i.keys)||void 0===n?void 0:n.organizationKeys)||void 0===r?void 0:r.encrypted;null!=s&&(yield e.setToUser(t,_e,s),delete i.keys.organizationKeys,yield e.set(t,i))})}(t,i))])})}rollback(e){return $e(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return $e(this,void 0,void 0,function*(){var n;const r=yield e.getFromUser(t,_e);i&&r&&(i.keys=Object.assign(null!==(n=i.keys)&&void 0!==n?n:{},{organizationKeys:{encrypted:r}}),yield e.set(t,i)),yield e.setToUser(t,_e,null)})}(t,i))])})}}var tt=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const it={name:"environment"},nt={key:"region",stateDefinition:it},rt={key:"urls",stateDefinition:it};class st extends Ze{migrate(e){return tt(this,void 0,void 0,function*(){const t=yield e.get("global");null!=(null==t?void 0:t.region)&&(yield e.setToGlobal(nt,t.region)),null!=(null==t?void 0:t.environmentUrls)&&(yield e.setToGlobal(rt,t.environmentUrls));const i=yield e.getAccounts();yield Promise.all(i.map(t=>tt(this,[t],void 0,function*({userId:t,account:i}){var n,r,s,o;null!=(null===(n=null==i?void 0:i.settings)||void 0===n?void 0:n.region)&&(yield e.setToUser(t,nt,i.settings.region)),null!=(null===(r=null==i?void 0:i.settings)||void 0===r?void 0:r.environmentUrls)&&(yield e.setToUser(t,rt,i.settings.environmentUrls)),null===(s=null==i?void 0:i.settings)||void 0===s||delete s.region,null===(o=null==i?void 0:i.settings)||void 0===o||delete o.environmentUrls,yield e.set(t,i)}))),null==t||delete t.region,null==t||delete t.environmentUrls,yield e.set("global",t)})}rollback(e){return tt(this,void 0,void 0,function*(){let t=yield e.get("global"),i=!1;const n=yield e.getFromGlobal(nt);n&&(t||(t={}),i=!0,t.region=n,yield e.setToGlobal(nt,null));const r=yield e.getFromGlobal(rt);r&&(t||(t={}),i=!0,t.environmentUrls=r,yield e.setToGlobal(rt,null)),i&&(yield e.set("global",t));const s=yield e.getAccounts();yield Promise.all(s.map(({userId:t,account:i})=>function(t,i){return tt(this,void 0,void 0,function*(){let n=!1;const r=yield e.getFromUser(t,nt);r&&(i||(i={}),i.settings||(i.settings={}),n=!0,i.settings.region=r,yield e.setToUser(t,nt,null));const s=yield e.getFromUser(t,rt);s&&(i||(i={}),i.settings||(i.settings={}),n=!0,i.settings.environmentUrls=s,yield e.setToUser(t,rt,null)),n&&(yield e.set(t,i))})}(t,i)))})}}var ot=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const at={key:"providerKeys",stateDefinition:{name:"crypto"}};class lt extends Ze{migrate(e){return ot(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return ot(this,void 0,void 0,function*(){var n,r;const s=null===(r=null===(n=null==i?void 0:i.keys)||void 0===n?void 0:n.providerKeys)||void 0===r?void 0:r.encrypted;null!=s&&(yield e.setToUser(t,at,s),delete i.keys.providerKeys,yield e.set(t,i))})}(t,i))])})}rollback(e){return ot(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return ot(this,void 0,void 0,function*(){var n;const r=yield e.getFromUser(t,at);i&&r&&(i.keys=Object.assign(null!==(n=i.keys)&&void 0!==n?n:{},{providerKeys:{encrypted:r}}),yield e.set(t,i)),yield e.setToUser(t,at,null)})}(t,i))])})}}var ct=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const dt={key:"clientKeyHalf",stateDefinition:{name:"biometricSettings"}};class ut extends Ze{migrate(e){return ct(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all(t.map(t=>ct(this,[t],void 0,function*({userId:t,account:i}){var n,r;null!=(null===(n=null==i?void 0:i.keys)||void 0===n?void 0:n.biometricEncryptionClientKeyHalf)&&(yield e.setToUser(t,dt,i.keys.biometricEncryptionClientKeyHalf),null===(r=null==i?void 0:i.keys)||void 0===r||delete r.biometricEncryptionClientKeyHalf,yield e.set(t,i))})))})}rollback(e){return ct(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all(t.map(({userId:t,account:i})=>function(t,i){return ct(this,void 0,void 0,function*(){var n;let r=!1;const s=yield e.getFromUser(t,dt);s&&(null!=i||(i={}),null!==(n=i.keys)&&void 0!==n||(i.keys={}),r=!0,i.keys.biometricEncryptionClientKeyHalf=s,yield e.setToUser(t,dt,null)),r&&(yield e.set(t,i))})}(t,i)))})}}var ht=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const At={key:"folders",stateDefinition:{name:"folder"}};class pt extends Ze{migrate(e){return ht(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return ht(this,void 0,void 0,function*(){var n,r;const s=null===(r=null===(n=null==i?void 0:i.data)||void 0===n?void 0:n.folders)||void 0===r?void 0:r.encrypted;null!=s&&(yield e.setToUser(t,At,s),delete i.data.folders,yield e.set(t,i))})}(t,i))])})}rollback(e){return ht(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return ht(this,void 0,void 0,function*(){var n;const r=yield e.getFromUser(t,At);i&&(i.data=Object.assign(null!==(n=i.data)&&void 0!==n?n:{},{folders:{encrypted:r}}),yield e.set(t,i)),yield e.setToUser(t,At,null)})}(t,i))])})}}var gt=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const vt={key:"lastSync",stateDefinition:{name:"sync"}};class mt extends Ze{migrate(e){return gt(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return gt(this,void 0,void 0,function*(){var n;const r=null===(n=null==i?void 0:i.profile)||void 0===n?void 0:n.lastSync;yield e.setToUser(t,vt,null!=r?r:null),null!=r&&(delete i.profile.lastSync,yield e.set(t,i))})}(t,i))])})}rollback(e){return gt(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return gt(this,void 0,void 0,function*(){var n;const r=yield e.getFromUser(t,vt);i&&(i.profile=Object.assign(null!==(n=i.profile)&&void 0!==n?n:{},{lastSync:r}),yield e.set(t,i)),yield e.setToUser(t,vt,null)})}(t,i))])})}}var ft=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const yt={key:"enablePasskeys",stateDefinition:{name:"vaultSettings"}};class bt extends Ze{migrate(e){return ft(this,void 0,void 0,function*(){const t=yield e.get("global");null!=(null==t?void 0:t.enablePasskeys)&&(yield e.setToGlobal(yt,t.enablePasskeys),null==t||delete t.enablePasskeys,yield e.set("global",t))})}rollback(e){return ft(this,void 0,void 0,function*(){let t=yield e.get("global");const i=yield e.getFromGlobal(yt);null!=i&&(t=Object.assign(null!=t?t:{},{enablePasskeys:i}),yield e.set("global",t),yield e.setToGlobal(yt,void 0))})}}var Ct=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const It={stateDefinition:{name:"autofillSettings"}};class wt extends Ze{migrate(e){return Ct(this,void 0,void 0,function*(){const t=yield e.get("global");null!=(null==t?void 0:t.autoFillOverlayVisibility)&&(yield e.setToGlobal({stateDefinition:{name:"autofillSettingsLocal"},key:"inlineMenuVisibility"},t.autoFillOverlayVisibility),delete t.autoFillOverlayVisibility,yield e.set("global",t));const i=yield e.getAccounts();yield Promise.all([...i.map(({userId:t,account:i})=>function(t,i){return Ct(this,void 0,void 0,function*(){let n=!1;const r=null==i?void 0:i.settings;null!=(null==r?void 0:r.autoFillOnPageLoadDefault)&&(yield e.setToUser(t,Object.assign(Object.assign({},It),{key:"autofillOnPageLoadDefault"}),r.autoFillOnPageLoadDefault),delete i.settings.autoFillOnPageLoadDefault,n=!0),null!=(null==r?void 0:r.enableAutoFillOnPageLoad)&&(yield e.setToUser(t,Object.assign(Object.assign({},It),{key:"autofillOnPageLoad"}),null==r?void 0:r.enableAutoFillOnPageLoad),delete i.settings.enableAutoFillOnPageLoad,n=!0),null!=(null==r?void 0:r.dismissedAutoFillOnPageLoadCallout)&&(yield e.setToUser(t,Object.assign(Object.assign({},It),{key:"autofillOnPageLoadCalloutIsDismissed"}),null==r?void 0:r.dismissedAutoFillOnPageLoadCallout),delete i.settings.dismissedAutoFillOnPageLoadCallout,n=!0),null!=(null==r?void 0:r.disableAutoTotpCopy)&&(yield e.setToUser(t,Object.assign(Object.assign({},It),{key:"autoCopyTotp"}),!(null==r?void 0:r.disableAutoTotpCopy)),delete i.settings.disableAutoTotpCopy,n=!0),null!=(null==r?void 0:r.activateAutoFillOnPageLoadFromPolicy)&&(yield e.setToUser(t,{stateDefinition:{name:"autofillSettingsLocal"},key:"activateAutofillOnPageLoadFromPolicy"},null==r?void 0:r.activateAutoFillOnPageLoadFromPolicy),delete i.settings.activateAutoFillOnPageLoadFromPolicy,n=!0),n&&(yield e.set(t,i))})}(t,i))])})}rollback(e){return Ct(this,void 0,void 0,function*(){const t=(yield e.get("global"))||{},i=yield e.getFromGlobal({stateDefinition:{name:"autofillSettingsLocal"},key:"inlineMenuVisibility"});i&&(yield e.set("global",Object.assign(Object.assign({},t),{autoFillOverlayVisibility:i})),yield e.setToGlobal({stateDefinition:{name:"autofillSettingsLocal"},key:"inlineMenuVisibility"},null));const n=yield e.getAccounts();yield Promise.all([...n.map(({userId:t,account:i})=>function(t,i){return Ct(this,void 0,void 0,function*(){let n=!1,r=(null==i?void 0:i.settings)||{};const s=yield e.getFromUser(t,Object.assign(Object.assign({},It),{key:"autofillOnPageLoadDefault"})),o=yield e.getFromUser(t,Object.assign(Object.assign({},It),{key:"autofillOnPageLoad"})),a=yield e.getFromUser(t,Object.assign(Object.assign({},It),{key:"autofillOnPageLoadCalloutIsDismissed"})),l=yield e.getFromUser(t,Object.assign(Object.assign({},It),{key:"autoCopyTotp"})),c=yield e.getFromUser(t,{stateDefinition:{name:"autofillSettingsLocal"},key:"activateAutofillOnPageLoadFromPolicy"});null!=s&&(r=Object.assign(Object.assign({},r),{autoFillOnPageLoadDefault:s}),yield e.setToUser(t,Object.assign(Object.assign({},It),{key:"autofillOnPageLoadDefault"}),null),n=!0),null!=o&&(r=Object.assign(Object.assign({},r),{enableAutoFillOnPageLoad:o}),yield e.setToUser(t,Object.assign(Object.assign({},It),{key:"autofillOnPageLoad"}),null),n=!0),null!=a&&(r=Object.assign(Object.assign({},r),{dismissedAutoFillOnPageLoadCallout:a}),yield e.setToUser(t,Object.assign(Object.assign({},It),{key:"autofillOnPageLoadCalloutIsDismissed"}),null),n=!0),null!=l&&(r=Object.assign(Object.assign({},r),{disableAutoTotpCopy:!l}),yield e.setToUser(t,Object.assign(Object.assign({},It),{key:"autoCopyTotp"}),null),n=!0),null!=c&&(r=Object.assign(Object.assign({},r),{activateAutoFillOnPageLoadFromPolicy:c}),yield e.setToUser(t,{stateDefinition:{name:"autofillSettingsLocal"},key:"activateAutofillOnPageLoadFromPolicy"},null),n=!0),n&&(yield e.set(t,Object.assign(Object.assign({},i),{settings:r})))})}(t,i))])})}}var Bt=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Et={key:"requirePasswordOnStart",stateDefinition:{name:"biometricSettings"}};class St extends Ze{migrate(e){return Bt(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all(t.map(t=>Bt(this,[t],void 0,function*({userId:t,account:i}){var n;null!=(null===(n=null==i?void 0:i.settings)||void 0===n?void 0:n.requirePasswordOnStart)&&(yield e.setToUser(t,Et,i.settings.requirePasswordOnStart),delete i.settings.requirePasswordOnStart,yield e.set(t,i))})))})}rollback(e){return Bt(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all(t.map(({userId:t,account:i})=>function(t,i){return Bt(this,void 0,void 0,function*(){var n;const r=yield e.getFromUser(t,Et);r&&(null!=i||(i={}),null!==(n=i.settings)&&void 0!==n||(i.settings={}),i.settings.requirePasswordOnStart=r,yield e.setToUser(t,Et,null),yield e.set(t,i))})}(t,i)))})}}var Qt=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const kt={key:"privateKey",stateDefinition:{name:"crypto"}};class Rt extends Ze{migrate(e){return Qt(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return Qt(this,void 0,void 0,function*(){var n,r;const s=null===(r=null===(n=null==i?void 0:i.keys)||void 0===n?void 0:n.privateKey)||void 0===r?void 0:r.encrypted;null!=s&&(yield e.setToUser(t,kt,s),delete i.keys.privateKey,yield e.set(t,i))})}(t,i))])})}rollback(e){return Qt(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return Qt(this,void 0,void 0,function*(){var n;const r=yield e.getFromUser(t,kt);i&&r&&(i.keys=Object.assign(null!==(n=i.keys)&&void 0!==n?n:{},{privateKey:{encrypted:r}}),yield e.set(t,i)),yield e.setToUser(t,kt,null)})}(t,i))])})}}var Ft=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Tt={key:"collections",stateDefinition:{name:"collection"}};class Dt extends Ze{migrate(e){return Ft(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return Ft(this,void 0,void 0,function*(){var n,r;const s=null===(r=null===(n=null==i?void 0:i.data)||void 0===n?void 0:n.collections)||void 0===r?void 0:r.encrypted;null!=s&&(yield e.setToUser(t,Tt,s),delete i.data.collections,yield e.set(t,i))})}(t,i))])})}rollback(e){return Ft(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return Ft(this,void 0,void 0,function*(){var n;const r=yield e.getFromUser(t,Tt);i&&(i.data=Object.assign(null!==(n=i.data)&&void 0!==n?n:{},{collections:{encrypted:r}}),yield e.set(t,i)),yield e.setToUser(t,Tt,null)})}(t,i))])})}}var Pt=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Mt={key:"collapsedGroupings",stateDefinition:{name:"vaultFilter"}};class xt extends Ze{migrate(e){return Pt(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return Pt(this,void 0,void 0,function*(){var n;const r=null===(n=null==i?void 0:i.settings)||void 0===n?void 0:n.collapsedGroupings;null!=r&&(yield e.setToUser(t,Mt,r),delete i.settings.collapsedGroupings,yield e.set(t,i))})}(t,i))])})}rollback(e){return Pt(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return Pt(this,void 0,void 0,function*(){var n;const r=yield e.getFromUser(t,Mt);i&&(i.settings=Object.assign(null!==(n=i.settings)&&void 0!==n?n:{},{collapsedGroupings:r}),yield e.set(t,i)),yield e.setToUser(t,Mt,null)})}(t,i))])})}}var Vt=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Gt={key:"dismissedBiometricRequirePasswordOnStartCallout",stateDefinition:{name:"biometricSettings"}},Ut={key:"promptAutomatically",stateDefinition:{name:"biometricSettings"}};class Ot extends Ze{migrate(e){return Vt(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all(t.map(t=>Vt(this,[t],void 0,function*({userId:t,account:i}){var n,r,s,o;null!=i&&(null!=(null===(n=null==i?void 0:i.settings)||void 0===n?void 0:n.dismissedBiometricRequirePasswordOnStartCallout)&&(yield e.setToUser(t,Gt,i.settings.dismissedBiometricRequirePasswordOnStartCallout)),null!=(null===(r=null==i?void 0:i.settings)||void 0===r?void 0:r.disableAutoBiometricsPrompt)&&(yield e.setToUser(t,Ut,!i.settings.disableAutoBiometricsPrompt)),null===(s=null==i?void 0:i.settings)||void 0===s||delete s.dismissedBiometricRequirePasswordOnStartCallout,null===(o=null==i?void 0:i.settings)||void 0===o||delete o.disableAutoBiometricsPrompt,yield e.set(t,i))})))})}rollback(e){return Vt(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all(t.map(({userId:t,account:i})=>function(t,i){return Vt(this,void 0,void 0,function*(){var n,r;let s=!1;const o=yield e.getFromUser(t,Gt);o&&(null!=i||(i={}),null!==(n=i.settings)&&void 0!==n||(i.settings={}),s=!0,i.settings.dismissedBiometricRequirePasswordOnStartCallout=o,yield e.setToUser(t,Gt,null));const a=yield e.getFromUser(t,Ut);null!=a&&(null!=i||(i={}),null!==(r=i.settings)&&void 0!==r||(i.settings={}),s=!0,i.settings.disableAutoBiometricsPrompt=!a,yield e.setToUser(t,Ut,null)),s&&(yield e.set(t,i))})}(t,i)))})}}var Nt=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const jt={key:"tasks",stateDefinition:{name:"smOnboarding"}};class Yt extends Ze{migrate(e){return Nt(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all(t.map(t=>Nt(this,[t],void 0,function*({userId:t,account:i}){var n;null!=(null===(n=null==i?void 0:i.settings)||void 0===n?void 0:n.smOnboardingTasks)&&(yield e.setToUser(t,jt,i.settings.smOnboardingTasks),delete i.settings.smOnboardingTasks,yield e.set(t,i))})))})}rollback(e){return Nt(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all(t.map(({userId:t,account:i})=>function(t,i){return Nt(this,void 0,void 0,function*(){var n;const r=yield e.getFromUser(t,jt);r&&(null!=i||(i={}),null!==(n=i.settings)&&void 0!==n||(i.settings={}),i.settings.smOnboardingTasks=r,yield e.setToUser(t,jt,null),yield e.set(t,i))})}(t,i)))})}}var Xt=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const zt={stateDefinition:{name:"autofillSettingsLocal"}};class Lt extends Ze{migrate(e){return Xt(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return Xt(this,void 0,void 0,function*(){const n=null==i?void 0:i.settings;void 0!==(null==n?void 0:n.clearClipboard)&&(yield e.setToUser(t,Object.assign(Object.assign({},zt),{key:"clearClipboardDelay"}),n.clearClipboard),delete i.settings.clearClipboard,yield e.set(t,i))})}(t,i))])})}rollback(e){return Xt(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return Xt(this,void 0,void 0,function*(){let n=(null==i?void 0:i.settings)||{};const r=yield e.getFromUser(t,Object.assign(Object.assign({},zt),{key:"clearClipboardDelay"}));void 0!==r&&(n=Object.assign(Object.assign({},n),{clearClipboard:r}),yield e.setToUser(t,Object.assign(Object.assign({},zt),{key:"clearClipboardDelay"}),null),yield e.set(t,Object.assign(Object.assign({},i),{settings:n})))})}(t,i))])})}}var Wt=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Kt={key:"lastSync",stateDefinition:{name:"sync"}};class Zt extends Ze{rollback(e){return Wt(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return Wt(this,void 0,void 0,function*(){var n;const r=null===(n=null==i?void 0:i.profile)||void 0===n?void 0:n.lastSync;yield e.setToUser(t,Kt,null!=r?r:null),null!=r&&(delete i.profile.lastSync,yield e.set(t,i))})}(t,i))])})}migrate(e){return Wt(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return Wt(this,void 0,void 0,function*(){var n;const r=yield e.getFromUser(t,Kt);i&&(i.profile=Object.assign(null!==(n=i.profile)&&void 0!==n?n:{},{lastSync:r}),yield e.set(t,i)),yield e.setToUser(t,Kt,null)})}(t,i))])})}}var Ht=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Jt={stateDefinition:{name:"badgeSettings"},key:"enableBadgeCounter"};class qt extends Ze{migrate(e){return Ht(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return Ht(this,void 0,void 0,function*(){const n=null==i?void 0:i.settings;null!=(null==n?void 0:n.disableBadgeCounter)&&(yield e.setToUser(t,Jt,!n.disableBadgeCounter),delete i.settings.disableBadgeCounter,yield e.set(t,i))})}(t,i))])})}rollback(e){return Ht(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return Ht(this,void 0,void 0,function*(){let n=(null==i?void 0:i.settings)||{};const r=yield e.getFromUser(t,Jt);null!=r&&(n=Object.assign(Object.assign({},n),{disableBadgeCounter:!r}),yield e.setToUser(t,Jt,null),yield e.set(t,Object.assign(Object.assign({},i),{settings:n})))})}(t,i))])})}}var $t=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const _t={key:"biometricUnlockEnabled",stateDefinition:{name:"biometricSettings"}};class ei extends Ze{migrate(e){return $t(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all(t.map(t=>$t(this,[t],void 0,function*({userId:t,account:i}){var n,r;null!=i&&(null!=(null===(n=null==i?void 0:i.settings)||void 0===n?void 0:n.biometricUnlock)&&(yield e.setToUser(t,_t,i.settings.biometricUnlock)),null===(r=null==i?void 0:i.settings)||void 0===r||delete r.biometricUnlock,yield e.set(t,i))})))})}rollback(e){return $t(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all(t.map(({userId:t,account:i})=>function(t,i){return $t(this,void 0,void 0,function*(){var n;const r=yield e.getFromUser(t,_t);null!=r&&(null!=i||(i={}),null!==(n=i.settings)&&void 0!==n||(i.settings={}),i.settings.biometricUnlock=r,yield e.setToUser(t,_t,null),yield e.set(t,i))})}(t,i)))})}}var ti=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class ii extends Ze{migrate(e){return ti(this,void 0,void 0,function*(){const t=yield e.get("global");null!=(null==t?void 0:t.disableAddLoginNotification)&&(yield e.setToGlobal({stateDefinition:{name:"userNotificationSettings"},key:"enableAddedLoginPrompt"},!t.disableAddLoginNotification),delete t.disableAddLoginNotification,yield e.set("global",t)),null!=(null==t?void 0:t.disableChangedPasswordNotification)&&(yield e.setToGlobal({stateDefinition:{name:"userNotificationSettings"},key:"enableChangedPasswordPrompt"},!t.disableChangedPasswordNotification),delete t.disableChangedPasswordNotification,yield e.set("global",t))})}rollback(e){return ti(this,void 0,void 0,function*(){const t=(yield e.get("global"))||{},i=yield e.getFromGlobal({stateDefinition:{name:"userNotificationSettings"},key:"enableAddedLoginPrompt"}),n=yield e.getFromGlobal({stateDefinition:{name:"userNotificationSettings"},key:"enableChangedPasswordPrompt"});i&&(yield e.set("global",Object.assign(Object.assign({},t),{disableAddLoginNotification:!i})),yield e.setToGlobal({stateDefinition:{name:"userNotificationSettings"},key:"enableAddedLoginPrompt"},null)),n&&(yield e.set("global",Object.assign(Object.assign({},t),{disableChangedPasswordNotification:!n})),yield e.setToGlobal({stateDefinition:{name:"userNotificationSettings"},key:"enableChangedPasswordPrompt"},null))})}}var ni,ri=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};!function(e){e[e.TwoFactorAuthentication=0]="TwoFactorAuthentication",e[e.MasterPassword=1]="MasterPassword",e[e.PasswordGenerator=2]="PasswordGenerator",e[e.SingleOrg=3]="SingleOrg",e[e.RequireSso=4]="RequireSso",e[e.PersonalOwnership=5]="PersonalOwnership",e[e.DisableSend=6]="DisableSend",e[e.SendOptions=7]="SendOptions",e[e.ResetPassword=8]="ResetPassword",e[e.MaximumVaultTimeout=9]="MaximumVaultTimeout",e[e.DisablePersonalVaultExport=10]="DisablePersonalVaultExport",e[e.ActivateAutofill=11]="ActivateAutofill"}(ni||(ni={}));const si={key:"policies",stateDefinition:{name:"policies"}};class oi extends Ze{migrate(e){return ri(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all(t.map(({userId:t,account:i})=>function(t,i){return ri(this,void 0,void 0,function*(){var n,r;const s=null===(r=null===(n=null==i?void 0:i.data)||void 0===n?void 0:n.policies)||void 0===r?void 0:r.encrypted;null!=s&&(yield e.setToUser(t,si,s),delete i.data.policies,yield e.set(t,i))})}(t,i)))})}rollback(e){return ri(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all(t.map(({userId:t,account:i})=>function(t,i){return ri(this,void 0,void 0,function*(){var n;const r=yield e.getFromUser(t,si);i&&(i.data=Object.assign(null!==(n=i.data)&&void 0!==n?n:{},{policies:{encrypted:r}}),yield e.set(t,i)),yield e.setToUser(t,si,null)})}(t,i)))})}}var ai=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const li={stateDefinition:{name:"autofillSettings"},key:"enableContextMenu"};class ci extends Ze{migrate(e){return ai(this,void 0,void 0,function*(){const t=yield e.get("global");null!=(null==t?void 0:t.disableContextMenuItem)&&(yield e.setToGlobal(li,!t.disableContextMenuItem),delete t.disableContextMenuItem,yield e.set("global",t))})}rollback(e){return ai(this,void 0,void 0,function*(){const t=(yield e.get("global"))||{},i=yield e.getFromGlobal(li);null!=i&&(yield e.set("global",Object.assign(Object.assign({},t),{disableContextMenuItem:!i})),yield e.setToGlobal(li,null))})}}var di=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const ui={key:"locale",stateDefinition:{name:"translation"}};class hi extends Ze{migrate(e){return di(this,void 0,void 0,function*(){const t=yield e.get("global");(null==t?void 0:t.locale)&&(yield e.setToGlobal(ui,t.locale),delete t.locale,yield e.set("global",t))})}rollback(e){return di(this,void 0,void 0,function*(){var t;const i=yield e.getFromGlobal(ui);if(!i)return;const n=null!==(t=yield e.get("global"))&&void 0!==t?t:{};n.locale=i,yield e.set("global",n),yield e.setToGlobal(ui,null)})}}var Ai=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const pi="appId",gi="anonymousAppId",vi={key:pi,stateDefinition:{name:"applicationId"}},mi={key:gi,stateDefinition:{name:"applicationId"}};class fi extends Ze{migrate(e){return Ai(this,void 0,void 0,function*(){const t=yield e.get(pi),i=yield e.get(gi);null!=t&&(yield e.setToGlobal(vi,t),yield e.set(pi,null)),null!=i&&(yield e.setToGlobal(mi,i),yield e.set(gi,null))})}rollback(e){return Ai(this,void 0,void 0,function*(){const t=yield e.getFromGlobal(vi),i=yield e.getFromGlobal(mi);null!=t&&(yield e.set(pi,t),yield e.setToGlobal(vi,null)),null!=i&&(yield e.set(gi,i),yield e.setToGlobal(mi,null))})}}var yi=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const bi={stateDefinition:{name:"domainSettings"},key:"defaultUriMatchStrategy"},Ci={stateDefinition:{name:"domainSettings"},key:"equivalentDomains"},Ii={stateDefinition:{name:"domainSettings"},key:"neverDomains"};class wi extends Ze{migrate(e){return yi(this,void 0,void 0,function*(){let t=!1;const i=yield e.get("global");null!=(null==i?void 0:i.neverDomains)&&(yield e.setToGlobal(Ii,i.neverDomains),delete i.neverDomains,yield e.set("global",i));const n=yield e.getAccounts();yield Promise.all([...n.map(({userId:i,account:n})=>function(i,n){return yi(this,void 0,void 0,function*(){var r;const s=null==n?void 0:n.settings;null!=(null==s?void 0:s.defaultUriMatch)&&(yield e.setToUser(i,bi,s.defaultUriMatch),delete n.settings.defaultUriMatch,t=!0),null!=(null===(r=null==s?void 0:s.settings)||void 0===r?void 0:r.equivalentDomains)&&(yield e.setToUser(i,Ci,s.settings.equivalentDomains),delete n.settings.settings.equivalentDomains,delete n.settings.settings,t=!0),t&&(yield e.set(i,n))})}(i,n))])})}rollback(e){return yi(this,void 0,void 0,function*(){let t=!1;const i=(yield e.get("global"))||{},n=yield e.getFromGlobal(Ii);null!=n&&(yield e.set("global",Object.assign(Object.assign({},i),{neverDomains:n})),yield e.setToGlobal(Ii,null));const r=yield e.getAccounts();yield Promise.all([...r.map(({userId:i,account:n})=>function(i,n){return yi(this,void 0,void 0,function*(){let r=(null==n?void 0:n.settings)||{};const s=yield e.getFromUser(i,bi),o=yield e.getFromUser(i,Ci);null!=s&&(r=Object.assign(Object.assign({},r),{defaultUriMatch:s}),yield e.setToUser(i,bi,null),t=!0),null!=o&&(r=Object.assign(Object.assign({},r),{settings:{equivalentDomains:o}}),yield e.setToUser(i,Ci,null),t=!0),t&&(yield e.set(i,Object.assign(Object.assign({},n),{settings:r})))})}(i,n))])})}}var Bi=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Ei={key:"selection",stateDefinition:{name:"theming"}};class Si extends Ze{migrate(e){return Bi(this,void 0,void 0,function*(){const t=yield e.get("global"),i=null==t?void 0:t.theme;null!=i&&(yield e.setToGlobal(Ei,i),delete t.theme,yield e.set("global",t))})}rollback(e){return Bi(this,void 0,void 0,function*(){var t;const i=yield e.getFromGlobal(Ei);if(null!=i){const n=null!==(t=yield e.get("global"))&&void 0!==t?t:{};n.theme=i,yield e.set("global",n),yield e.removeFromGlobal(Ei)}})}}var Qi=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const ki={stateDefinition:{name:"vaultSettings"}};class Ri extends Ze{migrate(e){return Qi(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return Qi(this,void 0,void 0,function*(){let n=!1;const r=null==i?void 0:i.settings;null!=(null==r?void 0:r.dontShowCardsCurrentTab)&&(yield e.setToUser(t,Object.assign(Object.assign({},ki),{key:"showCardsCurrentTab"}),!r.dontShowCardsCurrentTab),delete i.settings.dontShowCardsCurrentTab,n=!0),null!=(null==r?void 0:r.dontShowIdentitiesCurrentTab)&&(yield e.setToUser(t,Object.assign(Object.assign({},ki),{key:"showIdentitiesCurrentTab"}),!r.dontShowIdentitiesCurrentTab),delete i.settings.dontShowIdentitiesCurrentTab,n=!0),n&&(yield e.set(t,i))})}(t,i))])})}rollback(e){return Qi(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return Qi(this,void 0,void 0,function*(){var n;let r=!1,s=null!==(n=null==i?void 0:i.settings)&&void 0!==n?n:{};const o=yield e.getFromUser(t,Object.assign(Object.assign({},ki),{key:"showCardsCurrentTab"})),a=yield e.getFromUser(t,Object.assign(Object.assign({},ki),{key:"showIdentitiesCurrentTab"}));null!=o&&(s=Object.assign(Object.assign({},s),{dontShowCardsCurrentTab:!o}),yield e.setToUser(t,Object.assign(Object.assign({},ki),{key:"showCardsCurrentTab"}),null),r=!0),null!=a&&(s=Object.assign(Object.assign({},s),{dontShowIdentitiesCurrentTab:!a}),yield e.setToUser(t,Object.assign(Object.assign({},ki),{key:"showIdentitiesCurrentTab"}),null),r=!0),r&&(yield e.set(t,Object.assign(Object.assign({},i),{settings:s})))})}(t,i))])})}}var Fi=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Ti={key:"avatarColor",stateDefinition:{name:"avatar"}};class Di extends Ze{migrate(e){return Fi(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all(t.map(t=>Fi(this,[t],void 0,function*({userId:t,account:i}){var n,r;null!=(null===(n=null==i?void 0:i.settings)||void 0===n?void 0:n.avatarColor)&&(yield e.setToUser(t,Ti,i.settings.avatarColor),null===(r=null==i?void 0:i.settings)||void 0===r||delete r.avatarColor,yield e.set(t,i))})))})}rollback(e){return Fi(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all(t.map(({userId:t,account:i})=>function(t,i){return Fi(this,void 0,void 0,function*(){let n=!1;const r=yield e.getFromUser(t,Ti);r&&(i||(i={}),n=!0,i.settings.avatarColor=r,yield e.setToUser(t,Ti,null)),n&&(yield e.set(t,i))})}(t,i)))})}}var Pi=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Mi={key:"emailTwoFactorTokenRecord",stateDefinition:{name:"tokenDiskLocal"}},xi={name:"token"},Vi={key:"accessToken",stateDefinition:xi},Gi={key:"refreshToken",stateDefinition:xi},Ui={key:"apiKeyClientId",stateDefinition:xi},Oi={key:"apiKeyClientSecret",stateDefinition:xi};class Ni extends Ze{migrate(e){return Pi(this,void 0,void 0,function*(){const t=yield e.get("global"),i={},n=yield e.getAccounts();yield Promise.all([...n.map(({userId:n,account:r})=>function(t,i,n,r){return Pi(this,void 0,void 0,function*(){var s,o,a,l,c;let d=!1;const u=null===(s=null==i?void 0:i.profile)||void 0===s?void 0:s.email;null!=n&&null!=i&&null!=u&&(r[u]=n);const h=null===(o=null==i?void 0:i.tokens)||void 0===o?void 0:o.accessToken;null!=h&&("web-disk-local"!==e.type&&(yield e.setToUser(t,Vi,h)),delete i.tokens.accessToken,d=!0);const A=null===(a=null==i?void 0:i.tokens)||void 0===a?void 0:a.refreshToken;null!=A&&("web-disk-local"!==e.type&&(yield e.setToUser(t,Gi,A)),delete i.tokens.refreshToken,d=!0);const p=null===(l=null==i?void 0:i.profile)||void 0===l?void 0:l.apiKeyClientId;null!=p&&("web-disk-local"!==e.type&&(yield e.setToUser(t,Ui,p)),delete i.profile.apiKeyClientId,d=!0);const g=null===(c=null==i?void 0:i.keys)||void 0===c?void 0:c.apiKeyClientSecret;null!=g&&("web-disk-local"!==e.type&&(yield e.setToUser(t,Oi,g)),delete i.keys.apiKeyClientSecret,d=!0),d&&(yield e.set(t,i))})}(n,r,null==t?void 0:t.twoFactorToken,i))]),yield e.setToGlobal(Mi,i),null==t||delete t.twoFactorToken,yield e.set("global",t)})}rollback(e){return Pi(this,void 0,void 0,function*(){var t;const i=yield e.getAccounts();let n=null;for(const{account:r}of i){const i=null===(t=null==r?void 0:r.profile)||void 0===t?void 0:t.email;if(null==i)continue;if(n=(yield e.getFromGlobal(Mi))[i],null!=n)break}if(null!=n){let t=yield e.get("global");t||(t={}),t.twoFactorToken=n,yield e.set("global",t)}yield e.setToGlobal(Mi,null),yield Promise.all([...i.map(({userId:t,account:i})=>function(t,i){return Pi(this,void 0,void 0,function*(){let n=!1;const r=yield e.getFromUser(t,Vi);(null==i?void 0:i.tokens)&&null!=r&&(i.tokens.accessToken=r,n=!0),yield e.setToUser(t,Vi,null);const s=yield e.getFromUser(t,Gi);(null==i?void 0:i.tokens)&&null!=s&&(i.tokens.refreshToken=s,n=!0),yield e.setToUser(t,Gi,null);const o=yield e.getFromUser(t,Ui);(null==i?void 0:i.profile)&&null!=o&&(i.profile.apiKeyClientId=o,n=!0),yield e.setToUser(t,Ui,null);const a=yield e.getFromUser(t,Oi);(null==i?void 0:i.keys)&&null!=a&&(i.keys.apiKeyClientSecret=a,n=!0),yield e.setToUser(t,Oi,null),n&&(yield e.set(t,i))})}(t,i))])})}}var ji=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Yi={key:"accountProfile",stateDefinition:{name:"billing"}};class Xi extends Ze{migrate(e){return ji(this,void 0,void 0,function*(){const t=yield e.getAccounts(),i=(t,i)=>ji(this,void 0,void 0,function*(){var n,r,s,o;const a=null===(n=null==i?void 0:i.profile)||void 0===n?void 0:n.hasPremiumPersonally,l=null===(r=null==i?void 0:i.profile)||void 0===r?void 0:r.hasPremiumFromOrganization;null==a&&null==l||(yield e.setToUser(t,Yi,{hasPremiumPersonally:a,hasPremiumFromOrganization:l}),null===(s=null==i?void 0:i.profile)||void 0===s||delete s.hasPremiumPersonally,null===(o=null==i?void 0:i.profile)||void 0===o||delete o.hasPremiumFromOrganization,yield e.set(t,i))});yield Promise.all([...t.map(({userId:e,account:t})=>i(e,t))])})}rollback(e){return ji(this,void 0,void 0,function*(){const t=yield e.getAccounts(),i=(t,i)=>ji(this,void 0,void 0,function*(){var n;const r=yield e.getFromUser(t,Yi);i&&r&&(i.profile=Object.assign(null!==(n=i.profile)&&void 0!==n?n:{},{hasPremiumPersonally:null==r?void 0:r.hasPremiumPersonally,hasPremiumFromOrganization:null==r?void 0:r.hasPremiumFromOrganization}),yield e.set(t,i)),yield e.setToUser(t,Yi,null)});yield Promise.all([...t.map(({userId:e,account:t})=>i(e,t))])})}}var zi=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Li extends Ze{migrate(e){return zi(this,void 0,void 0,function*(){const t=yield e.getAccounts();Promise.all(t.map(({userId:t,account:i})=>function(t,i){return zi(this,void 0,void 0,function*(){var n;if(null!=(null===(n=null==i?void 0:i.profile)||void 0===n?void 0:n.everBeenUnlocked))return delete i.profile.everBeenUnlocked,e.set(t,i)})}(t,i)))})}rollback(e){throw Ke}updateVersion(e,t){return zi(this,void 0,void 0,function*(){const i="up"===t?this.toVersion:this.fromVersion;e.currentVersion=i;const n=(yield e.get("global"))||{};yield e.set("global",Object.assign(Object.assign({},n),{stateVersion:i}))})}}var Wi,Ki,Zi,Hi,Ji=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};!function(e){e[e.Invited=0]="Invited",e[e.Accepted=1]="Accepted",e[e.Confirmed=2]="Confirmed",e[e.Revoked=-1]="Revoked"}(Wi||(Wi={})),function(e){e[e.Owner=0]="Owner",e[e.Admin=1]="Admin",e[e.User=2]="User",e[e.Manager=3]="Manager",e[e.Custom=4]="Custom"}(Ki||(Ki={})),function(e){e[e.Msp=0]="Msp",e[e.Reseller=1]="Reseller"}(Zi||(Zi={})),function(e){e[e.Free=0]="Free",e[e.Families=1]="Families",e[e.Teams=2]="Teams",e[e.Enterprise=3]="Enterprise",e[e.TeamsStarter=4]="TeamsStarter"}(Hi||(Hi={}));const qi={key:"organizations",stateDefinition:{name:"organizations"}};class $i extends Ze{migrate(e){return Ji(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all(t.map(({userId:t,account:i})=>function(t,i){return Ji(this,void 0,void 0,function*(){var n;const r=null===(n=null==i?void 0:i.data)||void 0===n?void 0:n.organizations;null!=r&&(yield e.setToUser(t,qi,r),delete i.data.organizations,yield e.set(t,i))})}(t,i)))})}rollback(e){return Ji(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all(t.map(({userId:t,account:i})=>function(t,i){return Ji(this,void 0,void 0,function*(){var n;const r=yield e.getFromUser(t,qi);i&&(i.data=Object.assign(null!==(n=i.data)&&void 0!==n?n:{},{organizations:r}),yield e.set(t,i)),yield e.setToUser(t,qi,null)})}(t,i)))})}}var _i=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const en={stateDefinition:{name:"eventCollection"},key:"eventCollection"};class tn extends Ze{migrate(e){return _i(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return _i(this,void 0,void 0,function*(){var n;const r=null===(n=null==i?void 0:i.data)||void 0===n?void 0:n.eventCollection;null!=r&&(yield e.setToUser(t,en,r),delete i.data.eventCollection,yield e.set(t,i))})}(t,i))])})}rollback(e){return _i(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return _i(this,void 0,void 0,function*(){var n;const r=yield e.getFromUser(t,en);i&&(i.data=Object.assign(null!==(n=i.data)&&void 0!==n?n:{},{eventCollection:r}),yield e.set(t,i)),yield e.setToUser(t,en,null)})}(t,i))])})}}var nn=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const rn={stateDefinition:{name:"domainSettings"},key:"showFavicons"};class sn extends Ze{migrate(e){return nn(this,void 0,void 0,function*(){const t=yield e.get("global");null!=(null==t?void 0:t.disableFavicon)&&(yield e.setToGlobal(rn,!t.disableFavicon),delete t.disableFavicon,yield e.set("global",t))})}rollback(e){return nn(this,void 0,void 0,function*(){const t=(yield e.get("global"))||{},i=yield e.getFromGlobal(rn);null!=i&&(yield e.set("global",Object.assign(Object.assign({},t),{disableFavicon:!i})),yield e.setToGlobal(rn,null))})}}var on=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const an={key:"autoConfirmFingerPrints",stateDefinition:{name:"organizationManagementPreferences"}};class ln extends Ze{migrate(e){return on(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all(t.map(t=>on(this,[t],void 0,function*({userId:t,account:i}){var n,r;null!=(null===(n=null==i?void 0:i.settings)||void 0===n?void 0:n.autoConfirmFingerPrints)&&(yield e.setToUser(t,an,i.settings.autoConfirmFingerPrints),null===(r=null==i?void 0:i.settings)||void 0===r||delete r.autoConfirmFingerPrints,yield e.set(t,i))})))})}rollback(e){return on(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all(t.map(({userId:t,account:i})=>function(t,i){return on(this,void 0,void 0,function*(){let n=!1;const r=yield e.getFromUser(t,an);r&&(i||(i={}),n=!0,i.settings.autoConfirmFingerPrints=r,yield e.setToUser(t,an,null)),n&&(yield e.set(t,i))})}(t,i)))})}}var cn=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const dn={key:"decryptionOptions",stateDefinition:{name:"userDecryptionOptions"}};class un extends Ze{migrate(e){return cn(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return cn(this,void 0,void 0,function*(){const n=null==i?void 0:i.decryptionOptions;null!=n&&(yield e.setToUser(t,dn,n),delete i.decryptionOptions,yield e.set(t,i))})}(t,i))])})}rollback(e){return cn(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return cn(this,void 0,void 0,function*(){const n=yield e.getFromUser(t,dn);i&&(i.decryptionOptions=Object.assign(i.decryptionOptions,n),yield e.set(t,i)),yield e.setToUser(t,dn,null)})}(t,i))])})}}var hn=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const An={name:"environment"},pn={key:"region",stateDefinition:An},gn={key:"urls",stateDefinition:An},vn={key:"environment",stateDefinition:An};class mn extends Ze{migrate(e){return hn(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t){return hn(this,void 0,void 0,function*(){const i=yield e.getFromUser(t,pn),n=yield e.getFromUser(t,gn);null==i&&null==n||(yield e.setToUser(t,vn,{region:i,urls:n}),yield e.removeFromUser(t,pn),yield e.removeFromUser(t,gn))})}(t))]);const i=yield e.getFromGlobal(pn),n=yield e.getFromGlobal(gn);null==i&&null==n||(yield e.setToGlobal(vn,{region:i,urls:n}),yield e.removeFromGlobal(pn),yield e.removeFromGlobal(gn))})}rollback(e){return hn(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t){return hn(this,void 0,void 0,function*(){const i=yield e.getFromUser(t,vn);yield e.setToUser(t,pn,null==i?void 0:i.region),yield e.setToUser(t,gn,null==i?void 0:i.urls),yield e.removeFromUser(t,vn)})}(t))]);const i=yield e.getFromGlobal(vn);yield e.setToGlobal(pn,null==i?void 0:i.region),yield e.setToGlobal(gn,null==i?void 0:i.urls),yield e.removeFromGlobal(vn)})}}var fn=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const yn={key:"promptCancelled",stateDefinition:{name:"biometricSettings"}};class bn extends Ze{migrate(e){return fn(this,void 0,void 0,function*(){yield Promise.all((yield e.getAccounts()).map(t=>fn(this,[t],void 0,function*({userId:t}){null!=e.getFromUser(t,yn)&&(yield e.removeFromUser(t,yn))})))})}rollback(e){return fn(this,void 0,void 0,function*(){throw Ke})}}var Cn=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const In={name:"desktopSettings"},wn={key:"window",stateDefinition:In},Bn={key:"closeToTray",stateDefinition:In},En={key:"minimizeToTray",stateDefinition:In},Sn={key:"startToTray",stateDefinition:In},Qn={key:"trayEnabled",stateDefinition:In},kn={key:"openAtLogin",stateDefinition:In},Rn={key:"alwaysShowDock",stateDefinition:In},Fn={key:"alwaysOnTop",stateDefinition:In};class Tn extends Ze{migrate(e){return Cn(this,void 0,void 0,function*(){const t=yield e.get("global");let i=!1;void 0!==(null==t?void 0:t.window)&&(yield e.setToGlobal(wn,t.window),i=!0,delete t.window),null!=(null==t?void 0:t.enableCloseToTray)&&(yield e.setToGlobal(Bn,t.enableCloseToTray),i=!0,delete t.enableCloseToTray),null!=(null==t?void 0:t.enableMinimizeToTray)&&(yield e.setToGlobal(En,t.enableMinimizeToTray),i=!0,delete t.enableMinimizeToTray),null!=(null==t?void 0:t.enableStartToTray)&&(yield e.setToGlobal(Sn,t.enableStartToTray),i=!0,delete t.enableStartToTray),null!=(null==t?void 0:t.enableTray)&&(yield e.setToGlobal(Qn,t.enableTray),i=!0,delete t.enableTray),null!=(null==t?void 0:t.openAtLogin)&&(yield e.setToGlobal(kn,t.openAtLogin),i=!0,delete t.openAtLogin),null!=(null==t?void 0:t.alwaysShowDock)&&(yield e.setToGlobal(Rn,t.alwaysShowDock),i=!0,delete t.alwaysShowDock),null!=(null==t?void 0:t.enableAlwaysOnTop)&&(yield e.setToGlobal(Fn,t.enableAlwaysOnTop),i=!0,delete t.enableAlwaysOnTop),i&&(yield e.set("global",t));const n=yield e.getAccounts();yield Promise.all(n.map(({userId:t,account:i})=>function(t,i){return Cn(this,void 0,void 0,function*(){var n;null!=(null===(n=null==i?void 0:i.settings)||void 0===n?void 0:n.enableAlwaysOnTop)&&(delete i.settings.enableAlwaysOnTop,yield e.set(t,i))})}(t,i)))})}rollback(e){throw Ke}}var Dn=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Pn={key:"enableDuckDuckGoBrowserIntegration",stateDefinition:{name:"autofillSettings"}};class Mn extends Ze{migrate(e){return Dn(this,void 0,void 0,function*(){const t=yield e.get("global");null!=(null==t?void 0:t.enableDuckDuckGoBrowserIntegration)&&(yield e.setToGlobal(Pn,t.enableDuckDuckGoBrowserIntegration),delete t.enableDuckDuckGoBrowserIntegration,yield e.set("global",t))})}rollback(e){return Dn(this,void 0,void 0,function*(){var t;const i=yield e.getFromGlobal(Pn);if(!i)return;const n=null!==(t=yield e.get("global"))&&void 0!==t?t:{};n.enableDuckDuckGoBrowserIntegration=i,yield e.set("global",n),yield e.removeFromGlobal(Pn)})}}var xn=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Vn={stateDefinition:{name:"config"},key:"serverConfig"};class Gn extends Ze{migrate(e){return xn(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return xn(this,void 0,void 0,function*(){var n;null!=(null===(n=null==i?void 0:i.settings)||void 0===n?void 0:n.serverConfig)&&(yield e.setToUser(t,Vn,i.settings.serverConfig),delete i.settings.serverConfig,yield e.set(t,i))})}(t,i))])})}rollback(e){return xn(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return xn(this,void 0,void 0,function*(){var n;const r=yield e.getFromUser(t,Vn);r&&(null!=i||(i={}),null!==(n=i.settings)&&void 0!==n||(i.settings={}),i.settings.serverConfig=r,yield e.setToUser(t,Vn,null),yield e.set(t,i))})}(t,i))])})}}var Un=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class On extends Ze{migrate(e){return Un(this,void 0,void 0,function*(){const t=yield e.getAccounts();Promise.all(t.map(({userId:t,account:i})=>function(t,i){return Un(this,void 0,void 0,function*(){var n,r;const s=null===(r=null===(n=null==i?void 0:i.keys)||void 0===n?void 0:n.organizationKeys)||void 0===r?void 0:r.encrypted;if(null==s)return;const o={};Object.entries(s).forEach(([e,t])=>{o[e]={type:"organization",key:t}}),i.keys.organizationKeys.encrypted=o,yield e.set(t,i)})}(t,i)))})}rollback(e){return Un(this,void 0,void 0,function*(){const t=yield e.getAccounts();Promise.all(t.map(t=>Un(this,[t],void 0,function*({userId:t,account:i}){return function(t,i){return Un(this,void 0,void 0,function*(){var n,r;const s=null===(r=null===(n=null==i?void 0:i.keys)||void 0===n?void 0:n.organizationKeys)||void 0===r?void 0:r.encrypted;if(null==s)return;const o={};Object.entries(s).forEach(([e,t])=>{o[e]=t.key}),i.keys.organizationKeys.encrypted=o,yield e.set(t,i)})}(t,i)})))})}updateVersion(e,t){return Un(this,void 0,void 0,function*(){const i="up"===t?this.toVersion:this.fromVersion;e.currentVersion=i;const n=(yield e.get("global"))||{};yield e.set("global",Object.assign(Object.assign({},n),{stateVersion:i}))})}}var Nn=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const jn={key:"usesKeyConnector",stateDefinition:{name:"keyConnector"}},Yn={key:"convertAccountToKeyConnector",stateDefinition:{name:"keyConnector"}};class Xn extends Ze{migrate(e){return Nn(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return Nn(this,void 0,void 0,function*(){var n,r;const s=null===(n=null==i?void 0:i.profile)||void 0===n?void 0:n.usesKeyConnector,o=null===(r=null==i?void 0:i.profile)||void 0===r?void 0:r.convertAccountToKeyConnector;null==s&&null==o||(null!=s&&(yield e.setToUser(t,jn,s),delete i.profile.usesKeyConnector),null!=o&&(yield e.setToUser(t,Yn,o),delete i.profile.convertAccountToKeyConnector),yield e.set(t,i))})}(t,i))])})}rollback(e){return Nn(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return Nn(this,void 0,void 0,function*(){const n=yield e.getFromUser(t,jn),r=yield e.getFromUser(t,Yn);null==n&&null==r||(null!=n&&(i.profile.usesKeyConnector=n,yield e.setToUser(t,jn,null)),null!=r&&(i.profile.convertAccountToKeyConnector=r,yield e.setToUser(t,Yn,null)),yield e.set(t,i))})}(t,i))])})}}var zn=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Ln={key:"storedEmail",stateDefinition:{name:"loginEmail"}};class Wn extends Ze{migrate(e){return zn(this,void 0,void 0,function*(){const t=yield e.get("global");null!=(null==t?void 0:t.rememberedEmail)&&(yield e.setToGlobal(Ln,t.rememberedEmail)),null==t||delete t.rememberedEmail,yield e.set("global",t)})}rollback(e){return zn(this,void 0,void 0,function*(){let t=yield e.get("global"),i=!1;const n=yield e.getFromGlobal(Ln);n&&(t||(t={}),i=!0,t.rememberedEmail=n,yield e.setToGlobal(Ln,null)),i&&(yield e.set("global",t))})}}var Kn=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Zn extends Ze{migrate(e){return Kn(this,void 0,void 0,function*(){const t=yield e.get("global");null!=(null==t?void 0:t.installedVersion)&&(delete t.installedVersion,yield e.set("global",t))})}rollback(e){throw Ke}}var Hn=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Jn={key:"deviceKey",stateDefinition:{name:"deviceTrust"}},qn={key:"shouldTrustDevice",stateDefinition:{name:"deviceTrust"}};class $n extends Ze{migrate(e){return Hn(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return Hn(this,void 0,void 0,function*(){var n,r;let s=!1;const o=null===(n=null==i?void 0:i.keys)||void 0===n?void 0:n.deviceKey;null!=o&&(yield e.setToUser(t,Jn,o),delete i.keys.deviceKey,s=!0);const a=null===(r=null==i?void 0:i.settings)||void 0===r?void 0:r.trustDeviceChoiceForDecryption;null!=a&&(yield e.setToUser(t,qn,a),delete i.settings.trustDeviceChoiceForDecryption,s=!0),s&&(yield e.set(t,i))})}(t,i))])})}rollback(e){return Hn(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return Hn(this,void 0,void 0,function*(){const n=yield e.getFromUser(t,Jn);(null==i?void 0:i.keys)&&null!=n&&(i.keys.deviceKey=n,yield e.set(t,i)),yield e.setToUser(t,Jn,null);const r=yield e.getFromUser(t,qn);(null==i?void 0:i.settings)&&null!=r&&(i.settings.trustDeviceChoiceForDecryption=r,yield e.set(t,i)),yield e.setToUser(t,qn,null)})}(t,i))])})}}var _n,er=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};!function(e){e[e.Text=0]="Text",e[e.File=1]="File"}(_n||(_n={}));const tr={stateDefinition:{name:"send"},key:"sends"};class ir extends Ze{migrate(e){return er(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return er(this,void 0,void 0,function*(){var n,r;const s=null===(r=null===(n=null==i?void 0:i.data)||void 0===n?void 0:n.sends)||void 0===r?void 0:r.encrypted;null!=s&&(yield e.setToUser(t,tr,s),delete i.data.sends,yield e.set(t,i))})}(t,i))])})}rollback(e){return er(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return er(this,void 0,void 0,function*(){var n;const r=yield e.getFromUser(t,tr);i&&(i.data=Object.assign(null!==(n=i.data)&&void 0!==n?n:{},{sends:{encrypted:r}}),yield e.set(t,i)),yield e.setToUser(t,tr,null)})}(t,i))])})}}var nr=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const rr={key:"forceSetPasswordReason",stateDefinition:{name:"masterPassword"}},sr={key:"masterKeyHash",stateDefinition:{name:"masterPassword"}},or={key:"masterKeyEncryptedUserKey",stateDefinition:{name:"masterPassword"}};class ar extends Ze{migrate(e){return nr(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return nr(this,void 0,void 0,function*(){var n,r,s;const o=null===(n=null==i?void 0:i.profile)||void 0===n?void 0:n.forceSetPasswordReason;null!=o&&(yield e.setToUser(t,rr,o),delete i.profile.forceSetPasswordReason,yield e.set(t,i));const a=null===(r=null==i?void 0:i.profile)||void 0===r?void 0:r.keyHash;null!=a&&(yield e.setToUser(t,sr,a),delete i.profile.keyHash,yield e.set(t,i));const l=null===(s=null==i?void 0:i.keys)||void 0===s?void 0:s.masterKeyEncryptedUserKey;null!=l&&(yield e.setToUser(t,or,l),delete i.keys.masterKeyEncryptedUserKey,yield e.set(t,i))})}(t,i))])})}rollback(e){return nr(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return nr(this,void 0,void 0,function*(){var n,r,s;const o=yield e.getFromUser(t,rr),a=yield e.getFromUser(t,sr),l=yield e.getFromUser(t,or);null!=i&&(null!=o&&(i.profile=Object.assign(null!==(n=i.profile)&&void 0!==n?n:{},{forceSetPasswordReason:o})),null!=a&&(i.profile=Object.assign(null!==(r=i.profile)&&void 0!==r?r:{},{keyHash:a})),null!=l&&(i.keys=Object.assign(null!==(s=i.keys)&&void 0!==s?s:{},{masterKeyEncryptedUserKey:l})),yield e.set(t,i)),yield e.setToUser(t,rr,null),yield e.setToUser(t,sr,null)})}(t,i))])})}}var lr=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const cr={stateDefinition:{name:"authRequestLocal"},key:"adminAuthRequest"},dr={stateDefinition:{name:"authRequestLocal"},key:"acceptAuthRequests"};class ur extends Ze{migrate(e){return lr(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return lr(this,void 0,void 0,function*(){var n;let r=!1;const s=null==i?void 0:i.adminAuthRequest;null!=s&&(yield e.setToUser(t,cr,s),delete i.adminAuthRequest,r=!0);const o=null===(n=null==i?void 0:i.settings)||void 0===n?void 0:n.approveLoginRequests;null!=o&&(yield e.setToUser(t,dr,o),delete i.settings.approveLoginRequests,r=!0),r&&(yield e.set(t,i))})}(t,i))])})}rollback(e){return lr(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return lr(this,void 0,void 0,function*(){var n;let r=!1;const s=yield e.getFromUser(t,cr);null!=s&&(i.adminAuthRequest=s,r=!0),yield e.setToUser(t,cr,null);const o=yield e.getFromUser(t,dr);null!=o&&(i.settings=Object.assign(null!==(n=i.settings)&&void 0!==n?n:{},{approveLoginRequests:o}),r=!0),yield e.setToUser(t,dr,null),r&&(yield e.set(t,i))})}(t,i))])})}}var hr=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Ar={key:"localData",stateDefinition:{name:"ciphersLocal"}},pr={key:"ciphers",stateDefinition:{name:"ciphers"}};class gr extends Ze{migrate(e){return hr(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return hr(this,void 0,void 0,function*(){var n,r,s;let o=!1;const a=null===(n=null==i?void 0:i.data)||void 0===n?void 0:n.localData;null!=a&&(yield e.setToUser(t,Ar,a),delete i.data.localData,o=!0);const l=null===(s=null===(r=null==i?void 0:i.data)||void 0===r?void 0:r.ciphers)||void 0===s?void 0:s.encrypted;null!=l&&(yield e.setToUser(t,pr,l),delete i.data.ciphers,o=!0),o&&(yield e.set(t,i))})}(t,i))])})}rollback(e){return hr(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return hr(this,void 0,void 0,function*(){var n;const r=yield e.getFromUser(t,Ar);i.data&&null!=r&&(i.data.localData=r,yield e.set(t,i)),yield e.setToUser(t,Ar,null);const s=yield e.getFromUser(t,pr);i.data&&null!=s&&((n=i.data).ciphers||(n.ciphers={encrypted:null}),i.data.ciphers.encrypted=s,yield e.set(t,i)),yield e.setToUser(t,pr,null)})}(t,i))])})}}var vr=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const mr={key:"refreshTokenMigratedToSecureStorage",stateDefinition:{name:"token"}};class fr extends Ze{migrate(e){return vr(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t){return vr(this,void 0,void 0,function*(){null!=(yield e.getFromUser(t,mr))&&(yield e.removeFromUser(t,mr))})}(t))])})}rollback(e){return vr(this,void 0,void 0,function*(){throw Ke})}}var yr,br=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};!function(e){e[e.PBKDF2_SHA256=0]="PBKDF2_SHA256",e[e.Argon2id=1]="Argon2id"}(yr||(yr={}));const Cr={key:"kdfConfig",stateDefinition:{name:"kdfConfig"}};class Ir extends Ze{migrate(e){return br(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return br(this,void 0,void 0,function*(){var n,r,s,o,a,l,c,d;const u={iterations:null===(n=null==i?void 0:i.profile)||void 0===n?void 0:n.kdfIterations,kdfType:null===(r=null==i?void 0:i.profile)||void 0===r?void 0:r.kdfType,memory:null===(s=null==i?void 0:i.profile)||void 0===s?void 0:s.kdfMemory,parallelism:null===(o=null==i?void 0:i.profile)||void 0===o?void 0:o.kdfParallelism};null!=u&&(yield e.setToUser(t,Cr,u),null===(a=null==i?void 0:i.profile)||void 0===a||delete a.kdfIterations,null===(l=null==i?void 0:i.profile)||void 0===l||delete l.kdfType,null===(c=null==i?void 0:i.profile)||void 0===c||delete c.kdfMemory,null===(d=null==i?void 0:i.profile)||void 0===d||delete d.kdfParallelism),yield e.set(t,i)})}(t,i))])})}rollback(e){return br(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return br(this,void 0,void 0,function*(){const n=yield e.getFromUser(t,Cr);null!=n&&(i.profile.kdfIterations=n.iterations,i.profile.kdfType=n.kdfType,i.profile.kdfMemory=n.memory,i.profile.kdfParallelism=n.parallelism,yield e.setToUser(t,Cr,null)),yield e.set(t,i)})}(t,i))])})}}var wr=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Br extends Ze{migrate(e){return wr(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all(t.map(({userId:t,account:i})=>function(t,i){return wr(this,void 0,void 0,function*(){var n;(null===(n=null==i?void 0:i.keys)||void 0===n?void 0:n.legacyEtmKey)&&(delete i.keys.legacyEtmKey,yield e.set(t,i))})}(t,i)))})}rollback(e){return wr(this,void 0,void 0,function*(){throw Ke})}updateVersion(e,t){return wr(this,void 0,void 0,function*(){const i="up"===t?this.toVersion:this.fromVersion;e.currentVersion=i;const n=(yield e.get("global"))||{};yield e.set("global",Object.assign(Object.assign({},n),{stateVersion:i}))})}}var Er=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Sr={stateDefinition:{name:"account"},key:"accounts"},Qr={stateDefinition:{name:"account"},key:"activeAccountId"},kr={stateDefinition:{name:"account"},key:"activity"};class Rr extends Ze{migrate(e){return Er(this,void 0,void 0,function*(){yield this.migrateAuthenticatedAccounts(e),yield this.migrateActiveAccountId(e),yield this.migrateAccountActivity(e)})}rollback(e){return Er(this,void 0,void 0,function*(){var t;const i=null!==(t=yield e.getKnownUserIds())&&void 0!==t?t:[];yield e.set("authenticatedAccounts",i),yield e.removeFromGlobal(Sr);const n=yield e.getFromGlobal(Qr);n&&(yield e.set("activeUserId",n)),yield e.removeFromGlobal(Qr);const r=yield e.getFromGlobal(kr);if(r){const t=Object.entries(r).reduce((e,[t,i])=>(e[t]=new Date(i).getTime(),e),{});yield e.set("accountActivity",t)}yield e.removeFromGlobal(kr)})}migrateAuthenticatedAccounts(e){return Er(this,void 0,void 0,function*(){var t;const i=null!==(t=yield e.get("authenticatedAccounts"))&&void 0!==t?t:[],n=(yield Promise.all(i.map(t=>Er(this,void 0,void 0,function*(){const i=yield e.get(t);return{userId:t,account:i}})))).reduce((e,{userId:t,account:i})=>{var n,r;return(null==i?void 0:i.profile)&&(e[t]={email:null!==(n=i.profile.email)&&void 0!==n?n:"",emailVerified:null!==(r=i.profile.emailVerified)&&void 0!==r&&r,name:i.profile.name}),e},{});yield e.setToGlobal(Sr,n),yield e.remove("authenticatedAccounts")})}migrateAccountActivity(e){return Er(this,void 0,void 0,function*(){const t=yield e.get("accountActivity"),i=Object.entries(null!=t?t:{}).reduce((e,[t,i])=>(e[t]=JSON.stringify(new Date(i)),e),{});yield e.setToGlobal(kr,i),yield e.remove("accountActivity")})}migrateActiveAccountId(e){return Er(this,void 0,void 0,function*(){const t=yield e.get("activeUserId");yield e.setToGlobal(Qr,t),yield e.remove("activeUserId")})}}var Fr=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Tr={name:"pinUnlock"},Dr={stateDefinition:Tr,key:"pinKeyEncryptedUserKeyPersistent"},Pr={stateDefinition:Tr,key:"userKeyEncryptedPin"},Mr={stateDefinition:Tr,key:"oldPinKeyEncryptedMasterKey"};class xr extends Ze{migrate(e){return Fr(this,void 0,void 0,function*(){const t=yield e.getAccounts();let i=!1;yield Promise.all([...t.map(({userId:t,account:n})=>function(t,n){return Fr(this,void 0,void 0,function*(){var r,s,o,a;null!=(null===(r=null==n?void 0:n.settings)||void 0===r?void 0:r.pinKeyEncryptedUserKey)&&(yield e.setToUser(t,Dr,n.settings.pinKeyEncryptedUserKey),delete n.settings.pinKeyEncryptedUserKey,i=!0),null!=(null===(s=null==n?void 0:n.settings)||void 0===s?void 0:s.protectedPin)&&(yield e.setToUser(t,Pr,n.settings.protectedPin),delete n.settings.protectedPin,i=!0),null!=(null===(a=null===(o=null==n?void 0:n.settings)||void 0===o?void 0:o.pinProtected)||void 0===a?void 0:a.encrypted)&&(yield e.setToUser(t,Mr,n.settings.pinProtected.encrypted),delete n.settings.pinProtected,i=!0),i&&(yield e.set(t,n))})}(t,n))])})}rollback(e){return Fr(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all(t.map(({userId:t,account:i})=>function(t,i){return Fr(this,void 0,void 0,function*(){var n;let r=!1;const s=yield e.getFromUser(t,Dr),o=yield e.getFromUser(t,Pr),a=yield e.getFromUser(t,Mr);i||(i={}),null!=s&&(i.settings.pinKeyEncryptedUserKey=s,yield e.setToUser(t,Dr,null),r=!0),null!=o&&(i.settings.protectedPin=o,yield e.setToUser(t,Pr,null),r=!0),null!=a&&(i.settings=Object.assign(null!==(n=i.settings)&&void 0!==n?n:{},{pinProtected:{encrypted:a}}),yield e.setToUser(t,Mr,null),r=!0),r&&(yield e.set(t,i))})}(t,i)))})}}var Vr=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Gr={name:"vaultTimeoutSettings"},Ur={key:"vaultTimeout",stateDefinition:Gr},Or={key:"vaultTimeoutAction",stateDefinition:Gr},Nr={null:"never","-1":"onRestart","-2":"onLocked","-3":"onSleep","-4":"onIdle"},jr={never:null,onRestart:-1,onLocked:-2,onSleep:-3,onIdle:-4};var Yr;!function(e){e.Web="web",e.Browser="browser",e.Desktop="desktop",e.Cli="cli"}(Yr||(Yr={}));class Xr extends Ze{migrate(e){return Vr(this,void 0,void 0,function*(){const t=yield e.get("global"),i=yield e.getAccounts();yield Promise.all([...i.map(({userId:t,account:i})=>function(t,i){return Vr(this,void 0,void 0,function*(){var n,r,s,o;let a=!1,l=null===(n=null==i?void 0:i.settings)||void 0===n?void 0:n.vaultTimeout;if(e.clientType===Yr.Cli&&void 0===l&&(l=null),void 0!==l){if(null===l||l<0){const i=Nr[l];yield e.setToUser(t,Ur,i)}else yield e.setToUser(t,Ur,l);null===(r=null==i?void 0:i.settings)||void 0===r||delete r.vaultTimeout,a=!0}const c=null===(s=null==i?void 0:i.settings)||void 0===s?void 0:s.vaultTimeoutAction;null!=c&&(yield e.setToUser(t,Or,c),null===(o=null==i?void 0:i.settings)||void 0===o||delete o.vaultTimeoutAction,a=!0),a&&(yield e.set(t,i))})}(t,i))]),null==t||delete t.vaultTimeout,null==t||delete t.vaultTimeoutAction,yield e.set("global",t),yield e.remove("global\\.vaultTimeout"),yield e.remove("global\\.vaultTimeoutAction")})}rollback(e){return Vr(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return Vr(this,void 0,void 0,function*(){let n=!1;const r=yield e.getFromUser(t,Ur);(null==i?void 0:i.settings)&&null!=r&&(i.settings.vaultTimeout="string"==typeof r?jr[r]:r,n=!0),yield e.setToUser(t,Ur,null);const s=yield e.getFromUser(t,Or);(null==i?void 0:i.settings)&&null!=s&&(i.settings.vaultTimeoutAction=s,n=!0),yield e.setToUser(t,Or,null),n&&(yield e.set(t,i))})}(t,i))])})}}var zr=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Lr={stateDefinition:{name:"generator"},key:"generatorSettings"},Wr={stateDefinition:{name:"generator"},key:"passwordGeneratorSettings"},Kr={stateDefinition:{name:"generator"},key:"passphraseGeneratorSettings"};class Zr extends Ze{migrate(e){return zr(this,void 0,void 0,function*(){const t=yield e.getAccounts();function i(t,i){return zr(this,void 0,void 0,function*(){var n;const r=null===(n=null==i?void 0:i.settings)||void 0===n?void 0:n.passwordGenerationOptions;if(r){const n=function(e){const t={length:e.length,ambiguous:e.ambiguous,uppercase:e.uppercase,minUppercase:e.minUppercase,lowercase:e.lowercase,minLowercase:e.minLowercase,number:e.number,minNumber:e.minNumber,special:e.special,minSpecial:e.minSpecial},i={type:e.type},n={numWords:e.numWords,wordSeparator:e.wordSeparator,capitalize:e.capitalize,includeNumber:e.includeNumber};return{generator:i,password:t,passphrase:n}}(r);yield function(e,t,i){return zr(this,void 0,void 0,function*(){var n;const r=null!==(n=yield e.getFromUser(t,Lr))&&void 0!==n?n:{},s=Object.assign(r,i.generator);yield Promise.all([e.setToUser(t,Lr,s),e.setToUser(t,Kr,i.passphrase),e.setToUser(t,Wr,i.password)])})}(e,t,n),yield function(e,t,i){return zr(this,void 0,void 0,function*(){var n;null===(n=null==i?void 0:i.settings)||void 0===n||delete n.passwordGenerationOptions,yield e.set(t,i)})}(e,t,i)}})}yield Promise.all([...t.map(({userId:e,account:t})=>i(e,t))])})}rollback(e){return zr(this,void 0,void 0,function*(){})}}var Hr=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Jr={stateDefinition:{name:"generator"},key:"localGeneratorHistoryBuffer"};class qr extends Ze{migrate(e){return Hr(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t,i){return Hr(this,void 0,void 0,function*(){var n;const r=null===(n=null==i?void 0:i.data)||void 0===n?void 0:n.passwordGenerationHistory;r&&r.encrypted&&(yield e.setToUser(t,Jr,r.encrypted),delete i.data.passwordGenerationHistory,yield e.set(t,i))})}(t,i))])})}rollback(e){return Hr(this,void 0,void 0,function*(){})}}var $r=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const _r={stateDefinition:{name:"generator"},key:"generatorSettings"},es={stateDefinition:{name:"generator"},key:"catchallGeneratorSettings"},ts={stateDefinition:{name:"generator"},key:"effUsernameGeneratorSettings"},is={stateDefinition:{name:"generator"},key:"subaddressGeneratorSettings"},ns={stateDefinition:{name:"generator"},key:"addyIoBuffer"},rs={stateDefinition:{name:"generator"},key:"duckDuckGoBuffer"},ss={stateDefinition:{name:"generator"},key:"fastmailBuffer"},os={stateDefinition:{name:"generator"},key:"firefoxRelayBuffer"},as={stateDefinition:{name:"generator"},key:"forwardEmailBuffer"},ls={stateDefinition:{name:"generator"},key:"simpleLoginBuffer"};class cs extends Ze{migrate(e){return $r(this,void 0,void 0,function*(){const t=yield e.getAccounts();function i(t,i){return $r(this,void 0,void 0,function*(){var n;const r=null===(n=null==i?void 0:i.settings)||void 0===n?void 0:n.usernameGenerationOptions;if(r){const n=function(e){const t={addyIo:{baseUrl:e.forwardedAnonAddyBaseUrl,token:e.forwardedAnonAddyApiToken,domain:e.forwardedAnonAddyDomain},duckDuckGo:{token:e.forwardedDuckDuckGoToken},fastmail:{token:e.forwardedFastmailApiToken},firefoxRelay:{token:e.forwardedFirefoxApiToken},forwardEmail:{token:e.forwardedForwardEmailApiToken,domain:e.forwardedForwardEmailDomain},simpleLogin:{token:e.forwardedSimpleLoginApiKey,baseUrl:e.forwardedSimpleLoginBaseUrl}},i={username:e.type,forwarder:e.forwardedService},n={effUsername:{wordCapitalize:e.wordCapitalize,wordIncludeNumber:e.wordIncludeNumber},subaddress:{subaddressType:e.subaddressType,subaddressEmail:e.subaddressEmail},catchall:{catchallType:e.catchallType,catchallDomain:e.catchallDomain}};return{generator:i,algorithms:n,forwarders:t}}(r);yield function(e,t,i){return $r(this,void 0,void 0,function*(){yield Promise.all([e.setToUser(t,_r,i.generator),e.setToUser(t,es,i.algorithms.catchall),e.setToUser(t,ts,i.algorithms.effUsername),e.setToUser(t,is,i.algorithms.subaddress),e.setToUser(t,ns,i.forwarders.addyIo),e.setToUser(t,rs,i.forwarders.duckDuckGo),e.setToUser(t,ss,i.forwarders.fastmail),e.setToUser(t,os,i.forwarders.firefoxRelay),e.setToUser(t,as,i.forwarders.forwardEmail),e.setToUser(t,ls,i.forwarders.simpleLogin)])})}(e,t,n),yield function(e,t,i){return $r(this,void 0,void 0,function*(){var n;null===(n=null==i?void 0:i.settings)||void 0===n||delete n.usernameGenerationOptions,yield e.set(t,i)})}(e,t,i)}})}yield Promise.all([...t.map(({userId:e,account:t})=>i(e,t))])})}rollback(e){return $r(this,void 0,void 0,function*(){})}}var ds=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const us={name:"desktopSettings"},hs={key:"browserIntegrationEnabled",stateDefinition:us},As={key:"browserIntegrationFingerprintEnabled",stateDefinition:us},ps={key:"minimizeOnCopy",stateDefinition:us};class gs extends Ze{migrate(e){return ds(this,void 0,void 0,function*(){const t=yield e.get("global"),i=null==t?void 0:t.enableBrowserIntegration,n=null==t?void 0:t.enableBrowserIntegrationFingerprint;let r=!1;null!=i&&(yield e.setToGlobal(hs,i),delete t.enableBrowserIntegration,r=!0),null!=n&&(yield e.setToGlobal(As,n),delete t.enableBrowserIntegrationFingerprint,r=!0),r&&(yield e.set("global",t));const s=yield e.getAccounts();yield Promise.all(s.map(({userId:t,account:i})=>function(t,i){return ds(this,void 0,void 0,function*(){var n;const r=null===(n=null==i?void 0:i.settings)||void 0===n?void 0:n.minimizeOnCopyToClipboard;null!=r&&(yield e.setToUser(t,ps,r),delete i.settings.minimizeOnCopyToClipboard,yield e.set(t,i))})}(t,i)))})}rollback(e){return ds(this,void 0,void 0,function*(){const t=yield e.getFromGlobal(hs),i=yield e.getFromGlobal(As);if(null!=t){let i=yield e.get("global");null!=i||(i={}),i.enableBrowserIntegration=t,yield e.set("global",i),yield e.removeFromGlobal(hs)}if(null!=i){let t=yield e.get("global");null!=t||(t={}),t.enableBrowserIntegrationFingerprint=i,yield e.set("global",t),yield e.removeFromGlobal(As)}const n=yield e.getAccounts();yield Promise.all(n.map(({userId:t,account:i})=>function(t,i){return ds(this,void 0,void 0,function*(){const n=yield e.getFromUser(t,ps);null!=n&&(null!=i||(i={settings:{}}),i.settings.minimizeOnCopyToClipboard=n,yield e.set(t,i),yield e.removeFromUser(t,ps))})}(t,i)))})}}var vs=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const ms={key:"showBanner",stateDefinition:{name:"unassignedItemsBanner"}};class fs extends Ze{migrate(e){return vs(this,void 0,void 0,function*(){yield Promise.all((yield e.getAccounts()).map(t=>vs(this,[t],void 0,function*({userId:t}){null!=e.getFromUser(t,ms)&&(yield e.removeFromUser(t,ms))})))})}rollback(e){return vs(this,void 0,void 0,function*(){throw Ke})}}var ys=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const bs={key:"lastSync",stateDefinition:{name:"sync"}};class Cs extends Ze{migrate(e){return ys(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all(t.map(({userId:t,account:i})=>function(t,i){return ys(this,void 0,void 0,function*(){var n;const r=null===(n=null==i?void 0:i.profile)||void 0===n?void 0:n.lastSync;null!=r&&(yield e.setToUser(t,bs,r),delete i.profile.lastSync,yield e.set(t,i))})}(t,i)))})}rollback(e){return ys(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all(t.map(({userId:t,account:i})=>function(t,i){return ys(this,void 0,void 0,function*(){var n;const r=yield e.getFromUser(t,bs);null!=r&&(null!=i||(i={}),null!==(n=i.profile)&&void 0!==n||(i.profile={}),i.profile.lastSync=r,yield e.set(t,i),yield e.removeFromUser(t,bs))})}(t,i)))})}}var Is=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const ws={key:"folder",stateDefinition:{name:"folder"}},Bs={key:"folders",stateDefinition:{name:"folder"}};class Es extends Ze{migrate(e){return Is(this,void 0,void 0,function*(){const t=yield e.getKnownUserIds();yield Promise.all(t.map(t=>function(t){return Is(this,void 0,void 0,function*(){const i=yield e.getFromUser(t,ws);null!=i&&(yield e.setToUser(t,Bs,i)),yield e.removeFromUser(t,ws)})}(t)))})}rollback(e){return Is(this,void 0,void 0,function*(){const t=yield e.getKnownUserIds();yield Promise.all(t.map(t=>function(t){return Is(this,void 0,void 0,function*(){const i=yield e.getFromUser(t,Bs);null!=i&&(yield e.setToUser(t,ws,i)),yield e.removeFromUser(t,Bs)})}(t)))})}}var Ss=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Qs extends Ze{migrate(e){return Ss(this,void 0,void 0,function*(){var t;const i=yield e.get("global"),n=null!==(t=null==i?void 0:i.noAutoPromptBiometrics)&&void 0!==t&&t,r=yield e.getAccounts();delete i.noAutoPromptBiometrics,yield Promise.all([...r.map(({userId:t,account:i})=>function(t,i){return Ss(this,void 0,void 0,function*(){var r;null!=i&&n&&(i.settings=Object.assign(null!==(r=null==i?void 0:i.settings)&&void 0!==r?r:{},{disableAutoBiometricsPrompt:!0}),yield e.set(t,i))})}(t,i)),e.set("global",i)])})}rollback(e){return Ss(this,void 0,void 0,function*(){throw Ke})}updateVersion(e,t){return Ss(this,void 0,void 0,function*(){const i="up"===t?this.toVersion:this.fromVersion;e.currentVersion=i;const n=(yield e.get("global"))||{};yield e.set("global",Object.assign(Object.assign({},n),{stateVersion:i}))})}}var ks=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Rs={key:"acBannersDismissed",stateDefinition:{name:"showProviderClientVaultPrivacyBanner"}};class Fs extends Ze{migrate(e){return ks(this,void 0,void 0,function*(){yield Promise.all((yield e.getAccounts()).map(t=>ks(this,[t],void 0,function*({userId:t}){null!=e.getFromUser(t,Rs)&&(yield e.removeFromUser(t,Rs))})))})}rollback(e){return ks(this,void 0,void 0,function*(){throw Ke})}}var Ts=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Ds={key:"newCustomizationOptionsCalloutDismissed",stateDefinition:{name:"bannersDismissed"}};class Ps extends Ze{migrate(e){return Ts(this,void 0,void 0,function*(){yield Promise.all((yield e.getAccounts()).map(t=>Ts(this,[t],void 0,function*({userId:t}){null!=e.getFromUser(t,Ds)&&(yield e.removeFromUser(t,Ds))})))})}rollback(e){return Ts(this,void 0,void 0,function*(){throw Ke})}}var Ms=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const xs={key:"showAccountDeprovisioningBanner",stateDefinition:{name:"accountDeprovisioningBanner"}};class Vs extends Ze{migrate(e){return Ms(this,void 0,void 0,function*(){yield Promise.all((yield e.getAccounts()).map(t=>Ms(this,[t],void 0,function*({userId:t}){null!=e.getFromUser(t,xs)&&(yield e.removeFromUser(t,xs))})))})}rollback(e){return Ms(this,void 0,void 0,function*(){throw Ke})}}var Gs=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Us={stateDefinition:{name:"account"},key:"accounts"},Os={key:"masterPasswordUnlockKey",stateDefinition:{name:"masterPasswordUnlock"}},Ns={key:"masterKeyEncryptedUserKey",stateDefinition:{name:"masterPassword"}},js={key:"kdfConfig",stateDefinition:{name:"kdfConfig"}};class Ys extends Ze{migrate(e){return Gs(this,void 0,void 0,function*(){const t=yield e.getFromGlobal(Us),i=yield e.getAccounts();yield Promise.all(i.map(({userId:i})=>function(t,i){return Gs(this,void 0,void 0,function*(){const n=null==i?void 0:i.email,r=yield e.getFromUser(t,js),s=yield e.getFromUser(t,Ns);null==(yield e.getFromUser(t,Os))&&null!=n&&null!=r&&null!=s&&(yield e.setToUser(t,Os,{salt:n.trim().toLowerCase(),kdf:r,masterKeyWrappedUserKey:s}))})}(i,t[i])))})}rollback(e){return Gs(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all(t.map(({userId:t})=>function(t){return Gs(this,void 0,void 0,function*(){null!=(yield e.getFromUser(t,Os))&&(yield e.removeFromUser(t,Os))})}(t)))})}}var Xs=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const zs={key:"pinKeyEncryptedUserKeyPersistent",stateDefinition:{name:"pinUnlock"}};class Ls extends Ze{migrate(e){return Xs(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all([...t.map(({userId:t,account:i})=>function(t){return Xs(this,void 0,void 0,function*(){null!=(yield e.getFromUser(t,zs))&&(yield e.removeFromUser(t,zs))})}(t))])})}rollback(e){return Xs(this,void 0,void 0,function*(){throw Ke})}}var Ws=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Ks={key:"privateKey",stateDefinition:{name:"crypto"}},Zs={key:"userSigningKey",stateDefinition:{name:"crypto"}},Hs={key:"userSignedPublicKey",stateDefinition:{name:"crypto"}},Js={key:"accountSecurityState",stateDefinition:{name:"crypto"}},qs={key:"accountCryptographicState",stateDefinition:{name:"crypto"}};class $s extends Ze{migrate(e){return Ws(this,void 0,void 0,function*(){const t=yield e.getAccounts();for(const{userId:i}of t){const t=yield e.getFromUser(i,qs),n=yield e.getFromUser(i,Ks),r=yield e.getFromUser(i,Zs),s=yield e.getFromUser(i,Hs),o=yield e.getFromUser(i,Js);if(!t){let t;null!=n&&null==r&&null==s&&null==o?(t={V1:{private_key:n}},yield e.setToUser(i,qs,t)):null!=n&&null!=r&&null!=s&&null!=o?(t={V2:{private_key:n,signing_key:r,signed_public_key:s,security_state:o}},yield e.setToUser(i,qs,t)):e.logService.warning(`Incomplete cryptographic state for user ${i}, skipping migration of account cryptographic state.`)}null!=n&&(yield e.removeFromUser(i,Ks)),null!=r&&(yield e.removeFromUser(i,Zs)),null!=s&&(yield e.removeFromUser(i,Hs)),null!=o&&(yield e.removeFromUser(i,Js))}})}rollback(e){return Ws(this,void 0,void 0,function*(){throw Ke})}}var _s=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const eo={wide:"default","extra-wide":"wide"},to={key:"popup-width",stateDefinition:{name:"popupStyle"}};class io extends Ze{migrate(e){return _s(this,void 0,void 0,function*(){const t=yield e.getFromGlobal(to);null!=t&&t in eo&&(yield e.setToGlobal(to,eo[t]))})}rollback(e){return _s(this,void 0,void 0,function*(){throw Ke})}}var no=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const ro=null,so=10,oo=20,ao=30,lo=60,co=120,uo=300,ho="tenSeconds",Ao="twentySeconds",po="thirtySeconds",go="oneMinute",vo="twoMinutes",mo="fiveMinutes",fo={stateDefinition:{name:"autofillSettingsLocal"},key:"clearClipboardDelay"},yo={stateDefinition:{name:"autofillSettingsLocal"},key:"hadPreMigrationClipboardValue"};class bo extends Ze{migrate(e){return no(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all(t.map(({userId:t})=>this.migrateAccount(e,t)))})}migrateAccount(e,t){return no(this,void 0,void 0,function*(){const i=yield e.getFromUser(t,fo);if(void 0===i)return;let n;switch(null===i&&(yield e.setToUser(t,yo,!0)),i){case null:case 300:default:n=mo;break;case 10:n=ho;break;case 20:n=Ao;break;case 30:n=po;break;case 60:n=go;break;case 120:n=vo}yield e.setToUser(t,fo,n)})}rollback(e){return no(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all(t.map(({userId:t})=>this.rollbackAccount(e,t)))})}rollbackAccount(e,t){return no(this,void 0,void 0,function*(){yield e.setToUser(t,yo,void 0);const i=yield e.getFromUser(t,fo);if(void 0===i)return;let n;switch(i){case"never":default:n=ro;break;case"tenSeconds":n=so;break;case"twentySeconds":n=oo;break;case"thirtySeconds":n=ao;break;case"oneMinute":n=lo;break;case"twoMinutes":n=co;break;case"fiveMinutes":n=uo}yield e.setToUser(t,fo,n)})}}var Co=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Io={key:"ssoRequiredCache",stateDefinition:{name:"ssoLoginLocal"}};class wo extends Ze{migrate(e){return Co(this,void 0,void 0,function*(){const t=yield e.getFromGlobal(Io);null!=t&&0!==t.length&&"string"==typeof t[0]&&(yield e.setToGlobal(Io,null))})}rollback(e){return Co(this,void 0,void 0,function*(){throw Ke})}}var Bo=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Eo={key:"featureFlagOverrides",stateDefinition:{name:"config"}};class So extends Ze{migrate(e){return Bo(this,void 0,void 0,function*(){const t=yield e.getFromGlobal(Eo);null!=t&&0!==Object.keys(t).length||(yield e.setToGlobal(Eo,{}))})}rollback(){return Bo(this,void 0,void 0,function*(){})}}var Qo=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class ko extends Ze{migrate(e){return Qo(this,void 0,void 0,function*(){const t=yield e.get("global");if(!t.stateVersion)throw new Error("Migration failed, state version not found");yield e.set("stateVersion",t.stateVersion),delete t.stateVersion,yield e.set("global",t)})}rollback(e){return Qo(this,void 0,void 0,function*(){const t=yield e.get("stateVersion"),i=yield e.get("global");yield e.set("global",Object.assign(Object.assign({},i),{stateVersion:t})),yield e.set("stateVersion",void 0)})}updateVersion(e,t){return Qo(this,void 0,void 0,function*(){const i="up"===t?this.toVersion:this.fromVersion;if(e.currentVersion=i,"up"===t)yield e.set("stateVersion",i);else{const t=(yield e.get("global"))||{};yield e.set("global",Object.assign(Object.assign({},t),{stateVersion:i}))}})}}var Ro=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Fo={name:"desktopSettings"},To={key:"closeToTray",stateDefinition:Fo},Do={key:"runInBackground",stateDefinition:Fo},Po={key:"trayEnabled",stateDefinition:Fo},Mo={key:"minimizeToTray",stateDefinition:Fo},xo={key:"alwaysShowDock",stateDefinition:Fo};class Vo extends Ze{migrate(e){return Ro(this,void 0,void 0,function*(){const t=yield e.getFromGlobal(To),i=yield e.getFromGlobal(Po);null==t&&null==i||(yield e.setToGlobal(Do,Boolean(t)||Boolean(i))),null!=t&&(yield e.removeFromGlobal(To)),null!=i&&(yield e.removeFromGlobal(Po)),null!=(yield e.getFromGlobal(Mo))&&(yield e.removeFromGlobal(Mo)),null!=(yield e.getFromGlobal(xo))&&(yield e.removeFromGlobal(xo))})}rollback(e){throw Ke}}var Go=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Uo={key:"biometricUnlockEnabled",stateDefinition:{name:"biometricSettings"}},Oo={key:"allowSharingUnlockStateWithDesktop",stateDefinition:{name:"sharedUnlockSettings"}};class No extends Ze{migrate(e){return Go(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all(t.map(({userId:t})=>function(t){return Go(this,void 0,void 0,function*(){!0===(yield e.getFromUser(t,Uo))&&null==(yield e.getFromUser(t,Oo))&&(yield e.setToUser(t,Oo,!0))})}(t)))})}rollback(e){return Go(this,void 0,void 0,function*(){const t=yield e.getAccounts();yield Promise.all(t.map(({userId:t})=>function(t){return Go(this,void 0,void 0,function*(){!0===(yield e.getFromUser(t,Uo))&&(yield e.removeFromUser(t,Oo))})}(t)))})}}var jo=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Yo={key:"browserIntegrationEnabled",stateDefinition:{name:"desktopSettings"}};class Xo extends Ze{migrate(e){return jo(this,void 0,void 0,function*(){null!=(yield e.getFromGlobal(Yo))&&(yield e.removeFromGlobal(Yo))})}rollback(e){throw Ke}}var zo=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Lo extends Ze{tryAddSetting(e,t,i){if(e.some(({account:e})=>void 0!==t(e))){const n=!e.some(({account:e})=>{var i;return!1===(null!==(i=t(e))&&void 0!==i&&i)});i(n)}}migrate(e){return zo(this,void 0,void 0,function*(){const t=yield e.get("global"),i=yield e.getAccounts(),n=i.reduce((e,{account:t})=>{var i,n;const r=null!==(n=null===(i=t.settings)||void 0===i?void 0:i.neverDomains)&&void 0!==n?n:{};for(const[s,o]of Object.entries(r))null!=e||(e={}),e[s]=o;return e},void 0),r={};null!=n&&(r.neverDomains=n),this.tryAddSetting(i,e=>{var t;return null===(t=e.settings)||void 0===t?void 0:t.disableAddLoginNotification},e=>r.disableAddLoginNotification=e),this.tryAddSetting(i,e=>{var t;return null===(t=e.settings)||void 0===t?void 0:t.disableChangedPasswordNotification},e=>r.disableChangedPasswordNotification=e),this.tryAddSetting(i,e=>{var t;return null===(t=e.settings)||void 0===t?void 0:t.disableContextMenuItem},e=>r.disableContextMenuItem=e),yield e.set("global",Object.assign(Object.assign({},t),r)),yield Promise.all(i.map(t=>zo(this,[t],void 0,function*({userId:t,account:i}){var n,r,s,o;null===(n=i.settings)||void 0===n||delete n.disableAddLoginNotification,null===(r=i.settings)||void 0===r||delete r.disableChangedPasswordNotification,null===(s=i.settings)||void 0===s||delete s.disableContextMenuItem,null===(o=i.settings)||void 0===o||delete o.neverDomains,yield e.set(t,i)})))})}rollback(e){throw new Error("Method not implemented.")}}var Wo=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Ko extends Ze{constructor(){super(0,Ho)}shouldMigrate(e){return Promise.resolve(e.currentVersion<Ho)}migrate(e){return Wo(this,void 0,void 0,function*(){if(e.currentVersion<Ho)throw new Error(`Your local data is too old to be migrated. Your current state version is ${e.currentVersion}, but minimum version is ${Ho}.`)})}rollback(e){return Wo(this,void 0,void 0,function*(){throw Ke})}}var Zo=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Ho=3,Jo=82;function qo(){return Le.create().with(Ko).with(Li,3,4).with(On,4,5).with(Br,5,6).with(Qs,6,7).with(ko,7,8).with(Lo,8,9).with(qe,9,10).with(et,10,11).with(st,11,12).with(lt,12,13).with(ut,13,14).with(pt,14,15).with(mt,15,16).with(bt,16,17).with(wt,17,18).with(St,18,19).with(Rt,19,20).with(Dt,20,21).with(xt,21,22).with(Ot,22,23).with(Yt,23,24).with(Lt,24,25).with(Zt,25,26).with(qt,26,27).with(ei,27,28).with(ii,28,29).with(oi,29,30).with(ci,30,31).with(hi,31,32).with(fi,32,33).with(wi,33,34).with(Si,34,35).with(Ri,35,36).with(Di,36,37).with(Ni,37,38).with(Xi,38,39).with($i,39,40).with(tn,40,41).with(sn,41,42).with(ln,42,43).with(un,43,44).with(mn,44,45).with(bn,45,46).with(Tn,46,47).with(Mn,47,48).with(Gn,48,49).with(Xn,49,50).with(Wn,50,51).with(Zn,51,52).with($n,52,53).with(ir,53,54).with(ar,54,55).with(ur,55,56).with(gr,56,57).with(fr,57,58).with(Ir,58,59).with(Rr,59,60).with(xr,60,61).with(Xr,61,62).with(Zr,62,63).with(qr,63,64).with(cs,64,65).with(gs,65,66).with(fs,66,67).with(Cs,67,68).with(Es,68,69).with(Fs,69,70).with(Ps,70,71).with(Vs,71,72).with(Ys,72,73).with(Ls,73,74).with($s,74,75).with(io,75,76).with(bo,76,77).with(wo,77,78).with(So,78,79).with(Vo,79,80).with(No,80,81).with(Xo,81,Jo)}function $o(e,t){return Zo(this,void 0,void 0,function*(){var i;let n=yield e.get("stateVersion");return null==n&&(n=null===(i=yield e.get("global"))||void 0===i?void 0:i.stateVersion),null==n?(t.info("No state version found, assuming empty state."),-1):(t.info(`State version: ${n}`),n)})}function _o(e,t){return Zo(this,void 0,void 0,function*(){const i=()=>Zo(this,void 0,void 0,function*(){return(yield $o(e,t))>=Jo}),n=e=>Zo(this,void 0,void 0,function*(){const r=2*e;if(!(r>8192))return new Promise(s=>{setTimeout(()=>Zo(this,void 0,void 0,function*(){(yield i())||(t.info(`Waiting for migrations to finish, waiting for ${r}ms`),yield n(r)),s()}),e)})});(yield i())||(yield n(2))})}var ea=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class ta{constructor(e,t,i,n,r){this.currentVersion=e,this.storageService=t,this.logService=i,this.clientType=r,this.type=n}get(e){return this.storageService.get(e)}set(e,t){return this.logService.info(`Setting ${e}`),this.storageService.save(e,t)}remove(e){return this.logService.info(`Removing ${e}`),this.storageService.remove(e)}getFromGlobal(e){return this.get(this.getGlobalKey(e))}setToGlobal(e,t){return this.set(this.getGlobalKey(e),t)}removeFromGlobal(e){return this.remove(this.getGlobalKey(e))}getFromUser(e,t){return this.get(this.getUserKey(e,t))}setToUser(e,t,i){return this.set(this.getUserKey(e,t),i)}removeFromUser(e,t){return this.remove(this.getUserKey(e,t))}info(e){this.logService.info(e)}getAccounts(){return ea(this,void 0,void 0,function*(){const e=yield this.getKnownUserIds();return Promise.all(e.map(e=>ea(this,void 0,void 0,function*(){return{userId:e,account:yield this.get(e)}})))})}getKnownUserIds(){return ea(this,void 0,void 0,function*(){return this.currentVersion<60?function(e){return ea(this,void 0,void 0,function*(){var t;return null!==(t=yield e.get("authenticatedAccounts"))&&void 0!==t?t:[]})}(this.storageService):function(e){return ea(this,void 0,void 0,function*(){const t=yield e.get(ia({stateDefinition:{name:"account"},key:"accounts"}));return Object.keys(null!=t?t:{})})}(this.storageService)})}getUserKey(e,t){return this.currentVersion<9?function(){throw Error("No key builder should be used for versions prior to 9.")}():function(e,t){return`user_${e}_${t.stateDefinition.name}_${t.key}`}(e,t)}getGlobalKey(e){return this.currentVersion<9?function(){throw Error("No key builder should be used for versions prior to 9.")}():ia(e)}}function ia(e){return`global_${e.stateDefinition.name}_${e.key}`}class na{}},21551(e,t,i){"use strict";var n;i.d(t,{zq:()=>s,EO:()=>n,g2:()=>a,Cc:()=>d,Kg:()=>l,wH:()=>u}),function(e){e.Local="local",e.Memory="memory",e.Session="session"}(n||(n={}));var r=i(87806);class s{}var o=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class a extends s{constructor(){super(...arguments),this.store=new Map,this.updatesSubject=new r.B}get valuesRequireDeserialization(){return!1}get updates$(){return this.updatesSubject.asObservable()}get(e){if(this.store.has(e)){const t=this.store.get(e);return Promise.resolve(t)}return Promise.resolve(null)}has(e){return o(this,void 0,void 0,function*(){return null!=(yield this.get(e))})}save(e,t){if(null==t)return this.remove(e);const i=structuredClone(t);return this.store.set(e,i),this.updatesSubject.next({key:e,updateType:"save"}),Promise.resolve()}remove(e){return this.store.delete(e),this.updatesSubject.next({key:e,updateType:"remove"}),Promise.resolve()}}var l,c=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class d extends s{constructor(){super(...arguments),this.store={},this.updatesSubject=new r.B}get valuesRequireDeserialization(){return!0}get updates$(){return this.updatesSubject.asObservable()}get(e){const t=this.store[e];if(t){const e=JSON.parse(t);return Promise.resolve(e)}return Promise.resolve(null)}has(e){return c(this,void 0,void 0,function*(){return null!=(yield this.get(e))})}save(e,t){return null==t?this.remove(e):(this.store[e]=JSON.stringify(t),this.updatesSubject.next({key:e,updateType:"save"}),Promise.resolve())}remove(e){return delete this.store[e],this.updatesSubject.next({key:e,updateType:"remove"}),Promise.resolve()}}!function(e){e.Both="both",e.Disk="disk",e.Memory="memory"}(l||(l={}));class u{constructor(e,t){this.diskStorageService=e,this.memoryStorageService=t}get(e,t){switch(e){case"disk":return[e,this.diskStorageService];case"memory":return[e,this.memoryStorageService];default:throw new Error(`Unexpected location: ${e}`)}}}},2003(e,t,i){"use strict";i.d(t,{vo:()=>u,Vj:()=>h,J_:()=>z,Xc:()=>j,db:()=>Y,xI:()=>U,ZS:()=>O,gc:()=>X});var n=i(24590),r=i(29029),s=i(14318),o=i(75583),a=i(36801),l=i(14041),c=i(56898),d=i(58806);const u={DownloadLicense:"download-license",CancelSubscription:"cancel-subscription"};class h{constructor(){this.downloadLicenseDisabled=(0,n.hFB)(!1),this.cancelSubscriptionDisabled=(0,n.hFB)(!1),this.callToActionClicked=(0,n.CGW)(),this.actions=u}}h.ɵfac=function(e){return new(e||h)},h.ɵcmp=l.VBU({type:h,selectors:[["billing-additional-options-card"]],inputs:{downloadLicenseDisabled:[1,"downloadLicenseDisabled"],cancelSubscriptionDisabled:[1,"cancelSubscriptionDisabled"]},outputs:{callToActionClicked:"callToActionClicked"},decls:14,vars:14,consts:[[1,"tw-size-full","tw-flex","tw-flex-col"],["bitTypography","h3",1,"tw-m-0","tw-mb-4"],["bitTypography","body1",1,"tw-m-0","tw-mb-4","tw-text-main"],[1,"tw-flex","tw-gap-4"],["bitButton","","buttonType","secondary","type","button",3,"click","disabled"],["bitButton","","buttonType","danger","type","button",3,"click","disabled"]],template:function(e,t){1&e&&(l.j41(0,"bit-card",0)(1,"h3",1),l.EFF(2),l.nI1(3,"i18n"),l.k0s(),l.j41(4,"p",2),l.EFF(5),l.nI1(6,"i18n"),l.k0s(),l.j41(7,"div",3)(8,"button",4),l.bIt("click",function(){return t.callToActionClicked.emit(t.actions.DownloadLicense)}),l.EFF(9),l.nI1(10,"i18n"),l.k0s(),l.j41(11,"button",5),l.bIt("click",function(){return t.callToActionClicked.emit(t.actions.CancelSubscription)}),l.EFF(12),l.nI1(13,"i18n"),l.k0s()()()),2&e&&(l.R7$(2),l.JRh(l.bMT(3,6,"additionalOptions")),l.R7$(3),l.SpI(" ",l.bMT(6,8,"additionalOptionsDesc")," "),l.R7$(3),l.Y8G("disabled",t.downloadLicenseDisabled()),l.R7$(),l.SpI(" ",l.bMT(10,10,"downloadLicense")," "),l.R7$(2),l.Y8G("disabled",t.cancelSubscriptionDisabled()),l.R7$(),l.SpI(" ",l.bMT(13,12,"cancelSubscription")," "))},dependencies:[r.t,c.Q,s.i,o.E,d.r,a.$Z],encapsulation:2,changeDetection:0});var A=i(46758),p=i(11217),g=i(63477),v=i(50700),m=i(639),f=i(80351),y=i(92954),b=i(47696),C=i(44432);const I=(e,t)=>t.action;function w(e,t){if(1&e){const e=l.RV6();l.j41(0,"button",12),l.bIt("click",function(){const t=p.eBV(e).$implicit,i=l.XpG(3);return p.Njj(i.callToActionClicked.emit(t.action))}),l.EFF(1),l.k0s()}if(2&e){const e=t.$implicit;l.Y8G("buttonType",e.buttonType),l.R7$(),l.SpI(" ",e.text," ")}}function B(e,t){if(1&e&&(l.j41(0,"div",10),l.Z7z(1,w,2,2,"button",11,I),l.k0s()),2&e){const e=l.XpG();l.R7$(),l.Dyx(e.callsToAction)}}function E(e,t){if(1&e&&(l.j41(0,"bit-callout",7)(1,"div",8)(2,"p",9),l.EFF(3),l.k0s(),l.nVh(4,B,3,0,"div",10),l.k0s()()),2&e){const e=t;l.Y8G("type",e.type)("icon",e.icon)("title",e.title),l.R7$(3),l.JRh(e.description),l.R7$(),l.vxM(e.callsToAction?4:-1)}}function S(e,t){if(1&e&&(l.EFF(0),l.nI1(1,"i18n"),l.j41(2,"span",14),l.EFF(3),l.nI1(4,"date"),l.k0s()),2&e){const e=l.XpG(2);l.SpI(" ",l.bMT(1,2,"yourSubscriptionWillBeSuspendedOn")," "),l.R7$(3),l.JRh(l.i5U(4,4,e.suspension(),e.dateFormat))}}function Q(e,t){if(1&e&&(l.EFF(0),l.nI1(1,"i18n"),l.j41(2,"span",14),l.EFF(3),l.nI1(4,"date"),l.k0s()),2&e){const e=l.XpG(2);l.SpI(" ",l.bMT(1,2,"yourSubscriptionWasSuspendedOn")," "),l.R7$(3),l.JRh(l.i5U(4,4,e.suspension(),e.dateFormat))}}function k(e,t){if(1&e&&(l.EFF(0),l.nI1(1,"i18n"),l.j41(2,"span",14),l.EFF(3),l.nI1(4,"date"),l.k0s()),2&e){const e=l.XpG(3);l.SpI(" ",l.bMT(1,2,"yourSubscriptionWillBeCanceledOn")," "),l.R7$(3),l.JRh(l.i5U(4,4,t,e.dateFormat))}}function R(e,t){if(1&e&&(l.EFF(0),l.nI1(1,"i18n"),l.j41(2,"span",14),l.EFF(3),l.nI1(4,"currency"),l.k0s(),l.EFF(5),l.nI1(6,"i18n"),l.j41(7,"span",14),l.EFF(8),l.nI1(9,"date"),l.k0s()),2&e){const e=l.XpG(2).total,t=l.XpG();l.SpI(" ",l.bMT(1,4,"yourNextChargeIsFor")," "),l.R7$(3),l.SpI("",l.brH(4,6,e,"USD","symbol")," USD"),l.R7$(2),l.SpI(" ",l.bMT(6,10,"dueOn")," "),l.R7$(3),l.JRh(l.i5U(9,12,t.nextCharge(),t.dateFormat))}}function F(e,t){if(1&e&&l.nVh(0,k,5,7)(1,R,10,15),2&e){let e;const t=l.XpG(2);l.vxM((e=t.cancelAt())?0:1,e)}}function T(e,t){if(1&e&&(l.EFF(0),l.nI1(1,"i18n"),l.j41(2,"span",14),l.EFF(3),l.nI1(4,"date"),l.k0s()),2&e){const e=l.XpG(3);l.SpI(" ",l.bMT(1,2,"yourSubscriptionWillBeCanceledOn")," "),l.R7$(3),l.JRh(l.i5U(4,4,t,e.dateFormat))}}function D(e,t){if(1&e&&(l.EFF(0),l.nI1(1,"i18n"),l.j41(2,"span",14),l.EFF(3),l.nI1(4,"currency"),l.k0s(),l.EFF(5),l.nI1(6,"i18n"),l.j41(7,"span",14),l.EFF(8),l.nI1(9,"date"),l.k0s()),2&e){const e=l.XpG(2).total,t=l.XpG();l.SpI(" ",l.bMT(1,4,"yourNextChargeIsFor")," "),l.R7$(3),l.SpI("",l.brH(4,6,e,"USD","symbol")," USD"),l.R7$(2),l.SpI(" ",l.bMT(6,10,"dueOn")," "),l.R7$(3),l.JRh(l.i5U(9,12,t.nextCharge(),t.dateFormat))}}function P(e,t){if(1&e&&l.nVh(0,T,5,7)(1,D,10,15),2&e){let e;const t=l.XpG(2);l.vxM((e=t.cancelAt())?0:1,e)}}function M(e,t){if(1&e&&(l.EFF(0),l.nI1(1,"i18n"),l.j41(2,"span",14),l.EFF(3),l.nI1(4,"date"),l.k0s()),2&e){const e=l.XpG(2);l.SpI(" ",l.bMT(1,2,"yourSubscriptionWillBeSuspendedOn")," "),l.R7$(3),l.JRh(l.i5U(4,4,e.suspension(),e.dateFormat))}}function x(e,t){if(1&e&&(l.EFF(0),l.nI1(1,"i18n"),l.j41(2,"span",14),l.EFF(3),l.nI1(4,"date"),l.k0s()),2&e){const e=l.XpG(2);l.SpI(" ",l.bMT(1,2,"yourSubscriptionWasCanceledOn")," "),l.R7$(3),l.JRh(l.i5U(4,4,e.canceled(),e.dateFormat))}}function V(e,t){if(1&e&&(l.EFF(0),l.nI1(1,"i18n"),l.j41(2,"span",14),l.EFF(3),l.nI1(4,"date"),l.k0s()),2&e){const e=l.XpG(2);l.SpI(" ",l.bMT(1,2,"yourSubscriptionWasSuspendedOn")," "),l.R7$(3),l.JRh(l.i5U(4,4,e.suspension(),e.dateFormat))}}function G(e,t){if(1&e&&(l.j41(0,"h2",13),l.nVh(1,S,5,7)(2,Q,5,7)(3,F,2,1)(4,P,2,1)(5,M,5,7)(6,x,5,7)(7,V,5,7),l.k0s()),2&e){let e;const t=l.XpG().subscription().status;l.R7$(),l.vxM("incomplete"===(e=t)?1:"incomplete_expired"===e?2:"trialing"===e?3:"active"===e?4:"past_due"===e?5:"canceled"===e?6:"unpaid"===e?7:-1)}}const U={ContactSupport:"contact-support",ManageInvoices:"manage-invoices",ReinstateSubscription:"reinstate-subscription",Resubscribe:"resubscribe",UpdatePayment:"update-payment",UpgradePlan:"upgrade-plan"};class O{constructor(){this.datePipe=(0,p.WQX)(A.vh),this.i18nService=(0,p.WQX)(v.W),this.dateFormat="MMM. d, y",this.title=n.hFB.required(),this.subscription=n.hFB.required(),this.showUpgradeButton=(0,n.hFB)(!1),this.callToActionClicked=(0,n.CGW)(),this.badge=(0,g.EW)(()=>{const e=this.subscription(),t={text:this.i18nService.t("pendingCancellation"),variant:"warning"};switch(e.status){case X.Incomplete:return{text:this.i18nService.t("updatePayment"),variant:"warning"};case X.IncompleteExpired:return{text:this.i18nService.t("expired"),variant:"danger"};case X.Trialing:return e.cancelAt?t:{text:this.i18nService.t("trial"),variant:"success"};case X.Active:return e.cancelAt?t:{text:this.i18nService.t("active"),variant:"success"};case X.PastDue:return{text:this.i18nService.t("pastDue"),variant:"warning"};case X.Canceled:return{text:this.i18nService.t("canceled"),variant:"danger"};case X.Unpaid:return{text:this.i18nService.t("unpaid"),variant:"danger"}}}),this.callout=(0,g.EW)(()=>{const e=this.subscription();switch(e.status){case X.Incomplete:return{title:this.i18nService.t("updatePayment"),type:"warning",description:this.i18nService.t("weCouldNotProcessYourPayment"),callsToAction:[{text:this.i18nService.t("updatePayment"),buttonType:"unstyled",action:U.UpdatePayment},{text:this.i18nService.t("contactSupportShort"),buttonType:"unstyled",action:U.ContactSupport}]};case X.IncompleteExpired:return{title:this.i18nService.t("expired"),type:"danger",description:this.i18nService.t("yourSubscriptionIsExpired"),callsToAction:[{text:this.i18nService.t("resubscribe"),buttonType:"unstyled",action:U.Resubscribe}]};case X.Trialing:case X.Active:if(e.cancelAt){const t=this.datePipe.transform(e.cancelAt,this.dateFormat);return{title:this.i18nService.t("pendingCancellation"),type:"warning",description:this.i18nService.t("yourSubscriptionIsScheduledToCancel",t),callsToAction:[{text:this.i18nService.t("reinstateSubscription"),buttonType:"unstyled",action:U.ReinstateSubscription}]}}return this.showUpgradeButton()?{title:this.i18nService.t("upgradeYourPlan"),type:"info",icon:"bwi-diamond",description:this.i18nService.t("premiumShareEvenMore"),callsToAction:[{text:this.i18nService.t("upgradeNow"),buttonType:"unstyled",action:U.UpgradePlan}]}:null;case X.PastDue:{const t=this.datePipe.transform(e.suspension,this.dateFormat);return{title:this.i18nService.t("pastDue"),type:"warning",description:this.i18nService.t("youHaveAGracePeriod",e.gracePeriod,t),callsToAction:[{text:this.i18nService.t("manageInvoices"),buttonType:"unstyled",action:U.ManageInvoices}]}}case X.Canceled:return{title:this.i18nService.t("canceled"),type:"danger",description:this.i18nService.t("yourSubscriptionIsCanceled"),callsToAction:[{text:this.i18nService.t("resubscribe"),buttonType:"unstyled",action:U.Resubscribe}]};case X.Unpaid:return{title:this.i18nService.t("unpaid"),type:"danger",description:this.i18nService.t("toReactivateYourSubscription"),callsToAction:[{text:this.i18nService.t("manageInvoices"),buttonType:"unstyled",action:U.ManageInvoices}]}}}),this.cancelAt=(0,g.EW)(()=>{const e=this.subscription();if(e.status===X.Trialing||e.status===X.Active)return e.cancelAt}),this.canceled=(0,g.EW)(()=>{const e=this.subscription();if(e.status===X.Canceled)return e.canceled}),this.nextCharge=(0,g.EW)(()=>{const e=this.subscription();if(e.status===X.Trialing||e.status===X.Active)return e.nextCharge}),this.suspension=(0,g.EW)(()=>{const e=this.subscription();if(e.status===X.Incomplete||e.status===X.IncompleteExpired||e.status===X.PastDue||e.status===X.Unpaid)return e.suspension})}}O.ɵfac=function(e){return new(e||O)},O.ɵcmp=l.VBU({type:O,selectors:[["billing-subscription-card"]],inputs:{title:[1,"title"],subscription:[1,"subscription"],showUpgradeButton:[1,"showUpgradeButton"]},outputs:{callToActionClicked:"callToActionClicked"},decls:11,vars:6,consts:[["cartSummaryHeader",""],[1,"tw-size-full","tw-flex","tw-flex-col"],[1,"tw-flex","tw-items-center","tw-justify-between","tw-mb-4"],["bitTypography","h3",1,"tw-m-0"],["bitBadge","",1,"tw-ml-3",3,"variant"],[1,"tw-mb-4"],[3,"cart","header"],[3,"type","icon","title"],[1,"tw-flex","tw-flex-col","tw-gap-2"],[1,"tw-m-0"],[1,"tw-flex","tw-flex-row","tw-gap-2"],["bitButton","","type","button",3,"buttonType"],["bitButton","","type","button",3,"click","buttonType"],["bitTypography","h4","id","cart-summary-header-custom","data-test-id","cart-summary-header-custom",1,"!tw-m-0"],[1,"tw-font-bold"]],template:function(e,t){if(1&e&&(l.j41(0,"bit-card",1)(1,"div",2)(2,"h2",3),l.EFF(3),l.k0s(),l.j41(4,"span",4),l.EFF(5),l.k0s()(),l.j41(6,"div",5),l.nrm(7,"billing-cart-summary",6),l.k0s(),l.nVh(8,E,5,5,"bit-callout",7),l.k0s(),l.DNE(9,G,8,1,"ng-template",null,0,l.C5r)),2&e){let e;const i=l.sdS(10);l.R7$(3),l.JRh(t.title()),l.R7$(),l.Y8G("variant",t.badge().variant),l.R7$(),l.SpI(" ",t.badge().text," "),l.R7$(2),l.Y8G("cart",t.subscription().cart)("header",i),l.R7$(),l.vxM((e=t.callout())?8:-1,e)}},dependencies:[A.MD,m.E,b.n,r.t,c.Q,f.j,C.G,s.i,y.Oo,o.E,d.r,A.oe,A.vh,a.$Z],encapsulation:2,changeDetection:0});var N=i(50060);const j={AddStorage:"add-storage",RemoveStorage:"remove-storage"};class Y{constructor(){this.i18nService=(0,p.WQX)(v.W),this.storage=n.hFB.required(),this.addStorageDisabled=(0,n.hFB)(!1),this.removeStorageDisabled=(0,n.hFB)(!1),this.callToActionClicked=(0,n.CGW)(),this.isEmpty=(0,g.EW)(()=>0===this.storage().used),this.isFull=(0,g.EW)(()=>{const e=this.storage();return e.used>=e.available}),this.percentageUsed=(0,g.EW)(()=>{const e=this.storage();return 0===e.available?0:e.used/e.available*100}),this.title=(0,g.EW)(()=>this.isFull()?this.i18nService.t("storageFull"):this.i18nService.t("storage")),this.description=(0,g.EW)(()=>{const e=this.storage(),t=e.available,i=e.readableUsed;return this.isFull()?this.i18nService.t("storageFullDescription",t.toString()):this.i18nService.t("storageUsedDescription",i,t.toString())}),this.progressBarColor=(0,g.EW)(()=>this.isFull()?"danger":"primary"),this.actions=j}}Y.ɵfac=function(e){return new(e||Y)},Y.ɵcmp=l.VBU({type:Y,selectors:[["billing-storage-card"]],inputs:{storage:[1,"storage"],addStorageDisabled:[1,"addStorageDisabled"],removeStorageDisabled:[1,"removeStorageDisabled"]},outputs:{callToActionClicked:"callToActionClicked"},decls:15,vars:13,consts:[[1,"tw-size-full","tw-flex","tw-flex-col"],[1,"tw-flex","tw-flex-col","tw-gap-3","tw-mb-4"],["bitTypography","h3",1,"tw-m-0"],["bitTypography","body1",1,"tw-m-0","tw-text-main"],[1,"tw-mb-4"],[3,"value","variant","hideStartHint"],[1,"tw-flex","tw-gap-4"],["bitButton","","buttonType","secondary","type","button",3,"click","disabled"]],template:function(e,t){1&e&&(l.j41(0,"bit-card",0)(1,"div",1)(2,"h3",2),l.EFF(3),l.k0s(),l.j41(4,"p",3),l.EFF(5),l.k0s()(),l.j41(6,"div",4),l.nrm(7,"bit-progress-bar",5),l.k0s(),l.j41(8,"div",6)(9,"button",7),l.bIt("click",function(){return t.callToActionClicked.emit(t.actions.AddStorage)}),l.EFF(10),l.nI1(11,"i18n"),l.k0s(),l.j41(12,"button",7),l.bIt("click",function(){return t.callToActionClicked.emit(t.actions.RemoveStorage)}),l.EFF(13),l.nI1(14,"i18n"),l.k0s()()()),2&e&&(l.R7$(3),l.JRh(t.title()),l.R7$(2),l.JRh(t.description()),l.R7$(2),l.Y8G("value",t.percentageUsed())("variant",t.progressBarColor())("hideStartHint",!0),l.R7$(2),l.Y8G("disabled",t.addStorageDisabled()),l.R7$(),l.SpI(" ",l.bMT(11,9,"addStorage")," "),l.R7$(2),l.Y8G("disabled",t.removeStorageDisabled()),l.R7$(),l.SpI(" ",l.bMT(14,11,"removeStorage")," "))},dependencies:[A.MD,r.t,c.Q,s.i,N.a,o.E,d.r,a.$Z],encapsulation:2,changeDetection:0});const X={Incomplete:"incomplete",IncompleteExpired:"incomplete_expired",Trialing:"trialing",Active:"active",PastDue:"past_due",Canceled:"canceled",Unpaid:"unpaid"},z=100},87673(e,t,i){"use strict";function n(e){return null!=e&&!0!==e.encrypted}function r(e){return n(e)&&null!=e.collections}function s(e){return null!=e&&!0===e.encrypted}function o(e){return null!=e&&!0===e.encrypted&&!0===e.passwordProtected}function a(e){return s(e)&&null!=e.collections}i.d(t,{Rf:()=>Y,Ly:()=>F,n_:()=>V,DX:()=>P,zo:()=>D,to:()=>g,SF:()=>G,C8:()=>p,Os:()=>l,TS:()=>a,SX:()=>r,og:()=>o,oK:()=>n});class l{}var c=i(83604),d=i(68108),u=i(3633),h=i(78781),A=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class p{constructor(e,t,i){this.individualVaultExportService=e,this.organizationVaultExportService=t,this.accountService=i}getExport(e){return A(this,arguments,void 0,function*(e,t="csv",i=""){if(yield this.checkForImpersonation(e),!h.A.isNullOrWhitespace(i)){if("csv"==t)throw new Error("CSV does not support password protected export");return this.individualVaultExportService.getPasswordProtectedExport(e,i)}return this.individualVaultExportService.getExport(e,t)})}getOrganizationExport(e,t,i,n){return A(this,arguments,void 0,function*(e,t,i,n,r=!1){if(yield this.checkForImpersonation(e),!h.A.isNullOrWhitespace(n)){if("csv"==i)throw new Error("CSV does not support password protected export");return this.organizationVaultExportService.getPasswordProtectedExport(e,t,n,r)}return this.organizationVaultExportService.getOrganizationExport(e,t,i,r)})}formats$(e){const t=[{name:".json",format:"json"},{name:".csv",format:"csv"},{name:".json (Encrypted)",format:"encrypted_json"}];return e.isMyVault?(0,c.of)([...t,{name:".zip (with attachments)",format:"zip"}]):(0,c.of)(t)}checkForImpersonation(e){return A(this,void 0,void 0,function*(){const t=yield(0,d._)(this.accountService.activeAccount$.pipe(u.F6));if(e!==t)throw new Error("UserId does not match the currently authenticated user")})}}class g{}var v=i(55766),m=i(68711),f=i(69783),y=i(14848),b=i(9715),C=i(81356),I=i(50451),w=i(7025),B=i(53323),E=i(62870),S=i(8916),Q=i(6632),k=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class R{constructor(e,t,i){this.keyGenerationService=e,this.encryptService=t,this.kdfConfigService=i}buildPasswordExport(e,t,i){return k(this,void 0,void 0,function*(){const n=yield this.kdfConfigService.getKdfConfig(e);yield E.B.Ready;const r=h.A.fromBufferToB64((new Q.SdkRandomNumberClient).gen_bytes(16)),s=yield this.keyGenerationService.deriveVaultExportKey(i,r,n),o=yield this.encryptService.encryptString(h.A.newGuid(),s),a=yield this.encryptService.encryptString(t,s),l={encrypted:!0,passwordProtected:!0,salt:r,kdfType:n.kdfType,kdfIterations:n.iterations,encKeyValidation_DO_NOT_EDIT:o.encryptedString,data:a.encryptedString};return n.kdfType===S.ao.Argon2id&&(l.kdfMemory=n.memory,l.kdfParallelism=n.parallelism),JSON.stringify(l,null," ")})}buildCommonCipher(e,t){switch(e.type=null,e.name=t.name,e.notes=t.notes,e.fields=null,e.reprompt=t.reprompt,e.archivedDate=t.archivedDate?t.archivedDate.toISOString():null,e.login_uri=null,e.login_username=null,e.login_password=null,e.login_totp=null,t.fields&&t.fields.forEach(t=>{e.fields?e.fields+="\n":e.fields="",e.fields+=(t.name||"")+": "+t.value}),t.type){case C.gC.Login:e.type="login",e.login_username=t.login.username,e.login_password=t.login.password,e.login_totp=t.login.totp,t.login.uris&&(e.login_uri=[],t.login.uris.forEach(t=>{e.login_uri.push(t.uri)}));break;case C.gC.SecureNote:e.type="note";break;default:return}return e}}class F{static getFileName(e="",t="csv"){"encrypted_json"===t&&(e=""==e?"encrypted":"encrypted_"+e,t="json");const i=new Date;return"bitwarden"+(e?"_"+e:"")+"_export_"+(i.getFullYear()+""+this.padNumber(i.getMonth()+1,2)+this.padNumber(i.getDate(),2)+this.padNumber(i.getHours(),2)+this.padNumber(i.getMinutes(),2)+this.padNumber(i.getSeconds(),2))+"."+t}static padNumber(e,t,i="0"){const n=e.toString();return n.length>=t?n:new Array(t-n.length+1).join(i)+n}}var T=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class D extends R{constructor(e,t,i,n,r,s,o,a){super(i,r,o),this.cipherService=e,this.vaultExportApiService=t,this.keyService=n,this.collectionService=s,this.restrictedItemTypesService=a}getPasswordProtectedExport(e,t,i,n){return T(this,void 0,void 0,function*(){const r=yield this.getOrganizationExport(e,t,"json",n);return{type:"text/plain",data:yield this.buildPasswordExport(e,r.data,i),fileName:F.getFileName("org","encrypted_json")}})}getOrganizationExport(e,t){return T(this,arguments,void 0,function*(e,t,i="csv",n){if(h.A.isNullOrWhitespace(t))throw new Error("OrganizationId must be set");if("zip"===i)throw new Error("Zip export not supported for organization");return"encrypted_json"===i?{type:"text/plain",data:n?yield this.getEncryptedManagedExport(e,t):yield this.getOrganizationEncryptedExport(e,t),fileName:F.getFileName("org","encrypted_json")}:{type:"text/plain",data:n?yield this.getDecryptedManagedExport(e,t,i):yield this.getOrganizationDecryptedExport(e,t,i),fileName:F.getFileName("org",i)}})}getOrganizationDecryptedExport(e,t,i){return T(this,void 0,void 0,function*(){const n=[],r=[],s=[],o=yield(0,d._)(this.keyService.orgKeys$(e).pipe((0,m.p)(e=>null!=e))),a=yield(0,d._)(this.restrictedItemTypesService.restricted$);return s.push(this.vaultExportApiService.getOrganizationExport(t).then(i=>{const s=[];return null!=i&&(null!=i.collections&&i.collections.length>0&&i.collections.forEach(e=>{const i=y.pM.fromCollectionData(new y.Fw(e)),r=o[t];s.push(i.decrypt(r,this.encryptService).then(e=>{n.push(e)}))}),null!=i.ciphers&&i.ciphers.length>0&&i.ciphers.filter(e=>null===e.deletedDate).forEach(t=>T(this,void 0,void 0,function*(){const i=new w.o(new I.A(t));s.push(this.cipherService.decrypt(i,e).then(e=>{this.restrictedItemTypesService.isCipherRestricted(e,a)||r.push(e)}))}))),Promise.all(s)})),yield Promise.all(s),"csv"===i?this.buildCsvExport(n,r):this.buildJsonExport(n,r)})}getOrganizationEncryptedExport(e,t){return T(this,void 0,void 0,function*(){const i=[],n=[],r=yield(0,d._)(this.restrictedItemTypesService.restricted$),s=yield this.vaultExportApiService.getOrganizationExport(t);if(null!=s)return null!=s.collections&&s.collections.length>0&&s.collections.forEach(e=>{const t=y.pM.fromCollectionData(new y.Fw(e));i.push(t)}),null!=s.ciphers&&s.ciphers.length>0&&s.ciphers.filter(e=>null===e.deletedDate).forEach(e=>{const t=new w.o(new I.A(e));this.restrictedItemTypesService.isCipherRestricted(t,r)||n.push(t)}),this.BuildEncryptedExport(e,t,i,n)})}getDecryptedManagedExport(e,t,i){return T(this,void 0,void 0,function*(){let n=[],r=[];const s=[];s.push(this.cipherService.getAllDecrypted(e).then(e=>{r=e})),yield Promise.all(s);const o=yield(0,d._)(this.collectionService.decryptedCollections$(e).pipe((0,f.T)(e=>e.filter(e=>e.organizationId==t&&e.manage)))),a=yield(0,d._)(this.restrictedItemTypesService.restricted$);return n=r.filter(e=>null==e.deletedDate&&e.organizationId==t&&o.some(t=>e.collectionIds.some(e=>t.id===e))&&!this.restrictedItemTypesService.isCipherRestricted(e,a)),"csv"===i?this.buildCsvExport(o,n):this.buildJsonExport(o,n)})}getEncryptedManagedExport(e,t){return T(this,void 0,void 0,function*(){let i=[],n=[];const r=[];r.push(this.cipherService.getAll(e).then(e=>{n=e})),yield Promise.all(r);const s=yield(0,d._)(this.collectionService.encryptedCollections$(e).pipe((0,f.T)(e=>null!=e?e:[]),(0,f.T)(e=>e.filter(e=>e.organizationId==t&&e.manage)))),o=yield(0,d._)(this.restrictedItemTypesService.restricted$);return i=n.filter(e=>null==e.deletedDate&&e.organizationId==t&&s.some(t=>e.collectionIds.some(e=>t.id===e))&&!this.restrictedItemTypesService.isCipherRestricted(e,o)),this.BuildEncryptedExport(e,t,s,i)})}BuildEncryptedExport(e,t,i,n){return T(this,void 0,void 0,function*(){const r=yield(0,d._)(this.keyService.orgKeys$(e)),s=null==r?void 0:r[t];if(null==s)throw new Error("No encryption key found for organization");const o={encrypted:!0,encKeyValidation_DO_NOT_EDIT:(yield this.encryptService.encryptString((0,B.aq)(),s)).encryptedString,collections:[],items:[]};return i.forEach(e=>{const t=new b.MA;t.build(e),o.collections.push(t)}),n.forEach(e=>{const t=new b.pU;t.build(e),o.items.push(t)}),JSON.stringify(o,null," ")})}buildCsvExport(e,t){const i=new Map;e.forEach(e=>{i.set(e.id,e)});const n=[];return t.forEach(e=>{if(e.type!==C.gC.Login&&e.type!==C.gC.SecureNote)return;const t={collections:[]};null!=e.collectionIds&&(t.collections=e.collectionIds.filter(e=>i.has(e)).map(e=>i.get(e).name)),this.buildCommonCipher(t,e),n.push(t)}),v.unparse(n)}buildJsonExport(e,t){const i={encrypted:!1,collections:[],items:[]};return e.forEach(e=>{const t=new b.MA;t.build(e),i.collections.push(t)}),t.forEach(e=>{const t=new b.pU;t.build(e),delete t.key,i.items.push(t)}),JSON.stringify(i,null," ")}}class P{}var M=i(81727),x=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class V extends R{constructor(e,t,i,n,r,s,o,a,l){super(i,r,s),this.folderService=e,this.cipherService=t,this.keyService=n,this.apiService=o,this.restrictedItemTypesService=a,this.logService=l}getExport(e){return x(this,arguments,void 0,function*(e,t="csv"){return"encrypted_json"===t?this.getEncryptedExport(e):"zip"===t?this.getDecryptedExportZip(e):this.getDecryptedExport(e,t)})}getPasswordProtectedExport(e,t){return x(this,void 0,void 0,function*(){const i=yield this.getExport(e,"json");if("text/plain"!==i.type)throw new Error("Unexpected export type");return{type:"text/plain",data:yield this.buildPasswordExport(e,i.data,t),fileName:F.getFileName("","encrypted_json")}})}getDecryptedExportZip(e){return x(this,void 0,void 0,function*(){const t=new M,i=yield this.getDecryptedExport(e,"json");t.file("data.json",i.data);const n=t.folder("attachments");if(null==n)throw new Error("Error creating attachments folder");let r=0;const s=new Map;for(const a of yield this.cipherService.getAllDecrypted(e)){if(!a.attachments||0===a.attachments.length||null!=a.deletedDate||null!=a.organizationId)continue;let t=a.name.replace(/[/\\><:"|?*]/g,"_").replace(/__+/g,"_");const i=s.get(a.name);void 0===i?s.set(a.name,1):(s.set(a.name,i+1),t+=`_${i}`);const l=n.folder(t),c=new Map;for(const n of a.attachments)try{const t=yield this.downloadAttachment(a.id,n.id),i=yield this.cipherService.getDecryptedAttachmentBuffer(a.id,n,t,e),r=n.fileName.split(".");let s=n.fileName,o="";r.length>1&&(s=r.slice(0,-1).join(""),o=`.${r[r.length-1]}`),s=s.replace(/[/\\><:"|?*.]/g,"_").replace(/__+/g,"_");let d=`${s}${o}`;const u=c.get(d);void 0===u?c.set(d,1):(c.set(d,u+1),d=`${s}_${u}${o}`),l.file(d,i)}catch(o){this.logService.error(`Failed to export attachment: Cipher Id: ${a.id}`,o),r++}}return{type:"application/zip",data:yield t.generateAsync({type:"blob"}),fileName:F.getFileName("","zip"),skippedAttachmentCount:r>0?r:void 0}})}downloadAttachment(e,t){return x(this,void 0,void 0,function*(){const i=(yield this.apiService.getAttachmentData(e,t)).url,n=yield fetch(new Request(i,{cache:"no-store"}));if(200!==n.status)throw new Error("Error downloading attachment");return n})}getDecryptedExport(e,t){return x(this,void 0,void 0,function*(){let i=[],n=[];const r=[];r.push((0,d._)(this.folderService.folderViews$(e)).then(e=>{i=e}));const s=yield(0,d._)(this.restrictedItemTypesService.restricted$);return r.push(this.cipherService.getAllDecrypted(e).then(e=>{n=e.filter(e=>null==e.deletedDate&&!this.restrictedItemTypesService.isCipherRestricted(e,s))})),yield Promise.all(r),"csv"===t?{type:"text/plain",data:this.buildCsvExport(i,n),fileName:F.getFileName("","csv")}:{type:"text/plain",data:this.buildJsonExport(i,n),fileName:F.getFileName("","json")}})}getEncryptedExport(e){return x(this,void 0,void 0,function*(){if(!e)throw new Error("User ID must not be null or undefined");let t=[],i=[];const n=[];n.push((0,d._)(this.folderService.folders$(e)).then(e=>{t=e}));const r=yield(0,d._)(this.restrictedItemTypesService.restricted$);n.push(this.cipherService.getAll(e).then(e=>{i=e.filter(e=>null==e.deletedDate&&!this.restrictedItemTypesService.isCipherRestricted(e,r))})),yield Promise.all(n);const s=yield(0,d._)(this.keyService.userKey$(e)),o={encrypted:!0,encKeyValidation_DO_NOT_EDIT:(yield this.encryptService.encryptString(h.A.newGuid(),s)).encryptedString,folders:[],items:[]};return t.forEach(e=>{if(!e.id)return;const t=new b.wG;t.build(e),o.folders.push(t)}),i.forEach(e=>{if(null!=e.organizationId)return;const t=new b.pU;t.build(e),t.collectionIds=null,o.items.push(t)}),{type:"text/plain",data:JSON.stringify(o,null," "),fileName:F.getFileName("","encrypted_json")}})}buildCsvExport(e,t){const i=new Map;e.forEach(e=>{e.id&&i.set(e.id,e)});const n=[];return t.forEach(e=>{if(e.type!==C.gC.Login&&e.type!==C.gC.SecureNote)return;if(null!=e.organizationId)return;const t={};t.folder=null!=e.folderId&&i.has(e.folderId)?i.get(e.folderId).name:null,t.favorite=e.favorite?1:null,this.buildCommonCipher(t,e),n.push(t)}),v.unparse(n)}buildJsonExport(e,t){const i={encrypted:!1,folders:[],items:[]};return e.forEach(e=>{if(!e.id)return;const t=new b.wG;t.build(e),i.folders.push(t)}),t.forEach(e=>{if(null!=e.organizationId)return;const t=new b.pU;t.build(e),t.collectionIds=null,delete t.key,i.items.push(t)}),JSON.stringify(i,null," ")}}class G{}var U=i(20702),O=i(42700);class N extends U.r{constructor(e){super(e);const t=this.getResponseProperty("Collections");null!=t&&(this.collections=t.map(e=>new y.uF(e)));const i=this.getResponseProperty("Ciphers");null!=i&&(this.ciphers=i.map(e=>new O.N(e)))}}var j=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Y{constructor(e){this.apiService=e}getOrganizationExport(e){return j(this,void 0,void 0,function*(){const t=yield this.apiService.send("GET","/organizations/"+e+"/export",void 0,!0,!0);return new N(t)})}}},8245(e,t,i){"use strict";i.d(t,{b:()=>b});var n=i(11217),r=i(84210),s=i(87806),o=i(39250),a=i(69783),l=i(78950),c=i(29236),d=i(39722),u=i(94735),h=i(26411),A=i(23544),p=i(14041),g=i(86226),v=i(19934),m=i(43759),f=i(25740),y=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class b{constructor(e,t){this.formBuilder=e,this.generatorService=t,this.account$=new o.m(1),this.onUpdated=new n.bkB,this.settings=this.formBuilder.group({catchallDomain:[""]}),this.saveSettings=new s.B,this.destroyed$=new s.B}ngOnChanges(e){return y(this,void 0,void 0,function*(){"account"in e&&e.account&&this.account$.next(this.account)})}ngOnInit(){return y(this,void 0,void 0,function*(){const e=yield this.generatorService.settings(A.qG.catchall,{account$:this.account$});e.pipe((0,c.Q)(this.destroyed$)).subscribe(e=>{this.settings.patchValue(e,{emitEvent:!1})}),e.pipe((0,l.i)(1),(0,c.Q)(this.destroyed$)).subscribe(this.onUpdated),this.saveSettings.pipe((0,d.E)(this.settings.valueChanges),(0,a.T)(([,e])=>e),(0,c.Q)(this.destroyed$)).subscribe(e)})}save(e="component api call"){this.saveSettings.next(e)}ngOnDestroy(){this.account$.complete(),this.destroyed$.next(),this.destroyed$.complete()}}b.ɵfac=function(e){return new(e||b)(p.rXU(r.ok),p.rXU(A.iE))},b.ɵcmp=p.VBU({type:b,selectors:[["tools-catchall-settings"]],inputs:{account:"account"},outputs:{onUpdated:"onUpdated"},features:[p.OA$],decls:6,vars:4,consts:[[1,"tw-container",3,"formGroup"],["bitInput","","formControlName","catchallDomain","type","text",3,"change"]],template:function(e,t){1&e&&(p.j41(0,"form",0)(1,"bit-form-field")(2,"bit-label"),p.EFF(3),p.nI1(4,"i18n"),p.k0s(),p.j41(5,"input",1),p.bIt("change",function(){return t.save("catchallDomain")}),p.k0s()()()),2&e&&(p.Y8G("formGroup",t.settings),p.R7$(3),p.JRh(p.bMT(4,2,"domainName")))},dependencies:[r.X1,r.qT,r.me,r.BC,r.cb,r.j4,r.JD,h.L,g.j,v.J,m.h,u.p,f.$],encapsulation:2})},286(e,t,i){"use strict";i.d(t,{y:()=>we});var n=i(46758),r=i(11217),s=i(84210),o=i(87806),a=i(39250),l=i(67789),c=i(68711),d=i(54291),u=i(69783),h=i(68108),A=i(72135),p=i(35284),g=i(29236),v=i(16385),m=i(4958),f=i(39722),y=i(94735),b=i(56962),C=i(20136),I=i(92697),w=i(14318),B=i(27520),E=i(36288),S=i(25024),Q=i(88832),k=i(58950),R=i(75583),F=i(26411),T=i(8433),D=i(23544),P=i(192),M=i(8245),x=i(23979),V=i(191),G=i(406),U=i(3633),O=i(80351),N=i(36801),j=i(14041),Y=i(35500),X=i(44432),z=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function L(e,t){if(1&e){const e=j.RV6();j.j41(0,"div",0)(1,"bit-callout",1),j.nI1(2,"i18n"),j.bIt("dismiss",function(){r.eBV(e);const t=j.XpG();return r.Njj(t.dismissGeneratorSpotlight(t.NudgeType.GeneratorNudgeStatus))}),j.j41(3,"p",2)(4,"span",3),j.EFF(5),j.nI1(6,"i18n"),j.k0s(),j.j41(7,"span",4),j.EFF(8),j.nI1(9,"i18n"),j.nrm(10,"i",5),j.EFF(11),j.nI1(12,"i18n"),j.k0s()()()()}2&e&&(j.R7$(),j.Y8G("title",j.bMT(2,5,"generatorNudgeTitle"))("icon",null),j.R7$(4),j.SpI(" ",j.bMT(6,7,"generatorNudgeBodyAria")," "),j.R7$(3),j.SpI(" ",j.bMT(9,9,"generatorNudgeBodyOne")," "),j.R7$(3),j.SpI(" ",j.bMT(12,11,"generatorNudgeBodyTwo")," "))}class W{constructor(e,t){this.nudgesService=e,this.accountService=t,this.NudgeType=G.mo,this.activeUserId$=this.accountService.activeAccount$.pipe(U.F6),this.showGeneratorSpotlight$=this.activeUserId$.pipe((0,V.n)(e=>this.nudgesService.showNudgeSpotlight$(G.mo.GeneratorNudgeStatus,e)))}dismissGeneratorSpotlight(e){return z(this,void 0,void 0,function*(){const t=yield(0,h._)(this.activeUserId$);yield this.nudgesService.dismissNudge(e,t)})}}W.ɵfac=function(e){return new(e||W)(j.rXU(G.u6),j.rXU(Y.D))},W.ɵcmp=j.VBU({type:W,selectors:[["nudge-generator-spotlight"]],decls:2,vars:3,consts:[[1,"tw-mb-4"],[3,"dismiss","title","icon"],[1,"tw-text-main","tw-mb-0"],[1,"tw-sr-only"],["aria-hidden","true"],[1,"bwi","bwi-generate"]],template:function(e,t){1&e&&(j.nVh(0,L,13,13,"div",0),j.nI1(1,"async")),2&e&&j.vxM(j.bMT(1,1,t.showGeneratorSpotlight$)?0:-1)},dependencies:[O.j,X.G,n.MD,R.E,N.$Z,n.Jj],encapsulation:2});var K=i(94615),Z=i(63968),H=i(13642),J=i(58503),q=i(18030),$=i(69855),_=i(50700),ee=i(70352),te=i(12694),ie=i(16496),ne=i(58806),re=i(86226),se=i(93199),oe=i(43759),ae=i(33886),le=i(25740),ce=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function de(e,t){if(1&e&&(j.j41(0,"bit-toggle",1),j.EFF(1),j.k0s()),2&e){const e=t.$implicit;j.Y8G("value",e.value),j.R7$(),j.SpI(" ",e.label," ")}}function ue(e,t){if(1&e){const e=j.RV6();j.j41(0,"tools-password-settings",9),j.bIt("onUpdated",function(){r.eBV(e);const t=j.XpG();return r.Njj(t.generate("password settings"))}),j.k0s()}if(2&e){j.XpG();const e=j.r8f(24);j.Y8G("account",e)}}function he(e,t){if(1&e){const e=j.RV6();j.j41(0,"tools-passphrase-settings",9),j.bIt("onUpdated",function(){r.eBV(e);const t=j.XpG();return r.Njj(t.generate("passphrase settings"))}),j.k0s()}if(2&e){j.XpG();const e=j.r8f(24);j.Y8G("account",e)}}function Ae(e,t){if(1&e&&(j.j41(0,"bit-hint"),j.EFF(1),j.nI1(2,"async"),j.k0s()),2&e){const e=j.XpG(2);j.R7$(),j.JRh(j.bMT(2,1,e.credentialTypeHint$))}}function pe(e,t){if(1&e&&(j.j41(0,"form",12)(1,"bit-form-field")(2,"bit-label"),j.EFF(3),j.nI1(4,"i18n"),j.k0s(),j.nrm(5,"bit-select",16),j.nI1(6,"async"),j.k0s()()),2&e){const e=j.XpG(2);j.Y8G("formGroup",e.forwarder),j.R7$(3),j.JRh(j.bMT(4,3,"service")),j.R7$(2),j.Y8G("items",j.bMT(6,5,e.forwarderOptions$))}}function ge(e,t){if(1&e){const e=j.RV6();j.j41(0,"tools-catchall-settings",17),j.bIt("onUpdated",function(){r.eBV(e);const t=j.XpG(2);return r.Njj(t.generate("catchall settings"))}),j.k0s()}if(2&e){j.XpG(2);const e=j.r8f(24);j.Y8G("account",e)}}function ve(e,t){if(1&e&&j.nrm(0,"tools-forwarder-settings",15),2&e){j.XpG(2);const e=j.r8f(24);j.Y8G("account",e)("forwarder",t)}}function me(e,t){if(1&e){const e=j.RV6();j.j41(0,"tools-subaddress-settings",17),j.bIt("onUpdated",function(){r.eBV(e);const t=j.XpG(2);return r.Njj(t.generate("subaddress settings"))}),j.k0s()}if(2&e){j.XpG(2);const e=j.r8f(24);j.Y8G("account",e)}}function fe(e,t){if(1&e){const e=j.RV6();j.j41(0,"tools-username-settings",17),j.bIt("onUpdated",function(){r.eBV(e);const t=j.XpG(2);return r.Njj(t.generate("username settings"))}),j.k0s()}if(2&e){j.XpG(2);const e=j.r8f(24);j.Y8G("account",e)}}function ye(e,t){if(1&e&&(j.j41(0,"bit-section")(1,"bit-section-header")(2,"h2",10),j.EFF(3),j.nI1(4,"i18n"),j.k0s()(),j.j41(5,"div",11)(6,"bit-card")(7,"form",12)(8,"bit-form-field")(9,"bit-label"),j.EFF(10),j.nI1(11,"i18n"),j.k0s(),j.nrm(12,"bit-select",13),j.nI1(13,"async"),j.nVh(14,Ae,3,3,"bit-hint"),j.nI1(15,"async"),j.k0s()(),j.nVh(16,pe,7,7,"form",12),j.nI1(17,"async"),j.nVh(18,ge,1,1,"tools-catchall-settings",14),j.nVh(19,ve,1,2,"tools-forwarder-settings",15),j.nI1(20,"async"),j.nVh(21,me,1,1,"tools-subaddress-settings",14),j.nVh(22,fe,1,1,"tools-username-settings",14),j.k0s()()()),2&e){let e;const t=j.XpG(),i=j.r8f(22);j.R7$(3),j.JRh(j.bMT(4,10,"options")),j.R7$(4),j.Y8G("formGroup",t.username),j.R7$(3),j.JRh(j.bMT(11,12,"type")),j.R7$(2),j.Y8G("items",j.bMT(13,14,t.usernameOptions$)),j.R7$(2),j.vxM(j.bMT(15,16,t.credentialTypeHint$)?14:-1),j.R7$(2),j.vxM(j.bMT(17,18,t.showForwarder$)?16:-1),j.R7$(2),j.vxM((null==i?null:i.id)===t.Algorithm.catchall?18:-1),j.R7$(),j.vxM((e=j.bMT(20,20,t.forwarderId$))?19:-1,e),j.R7$(2),j.vxM((null==i?null:i.id)===t.Algorithm.plusAddress?21:-1),j.R7$(),j.vxM((null==i?null:i.id)===t.Algorithm.username?22:-1)}}const be="identifier",Ce="forwarder",Ie="none";class we{constructor(e,t,i,n,s,h,A,p,g){this.generatorService=e,this.generatorHistoryService=t,this.toastService=i,this.logService=n,this.i18nService=s,this.accountService=h,this.zone=A,this.formBuilder=p,this.ariaLive=g,this.destroyed=new o.B,this.Algorithm=D.oG,this.account=null,this.debug=!1,this.log=(0,C.S2)({}),this.account$=new a.m(1),this.website=null,this.onGenerated=new r.bkB,this.root$=new l.t({nav:null}),this.username=this.formBuilder.group({nav:[null]}),this.forwarder=this.formBuilder.group({nav:[null]}),this.rootOptions$=new l.t([]),this.usernameOptions$=new l.t([]),this.forwarderOptions$=new l.t([]),this.forwarderId$=new l.t(null),this.showForwarder$=new l.t(!1),this.maybeAlgorithm$=new a.m(1),this.algorithm$=this.maybeAlgorithm$.pipe((0,c.p)(e=>!!e)),this.showAlgorithm$=this.maybeAlgorithm$.pipe((0,d.v)(this.showForwarder$),(0,u.T)(([e,t])=>t?null:e)),this.credentialTypeCopyLabel$=this.algorithm$.pipe((0,u.T)(({i18nKeys:{copyCredential:e}})=>(0,q.Tl)(e,this.i18nService))),this.credentialTypeGenerateLabel$=this.algorithm$.pipe((0,u.T)(({i18nKeys:{generateCredential:e}})=>(0,q.Tl)(e,this.i18nService))),this.credentialTypeLabel$=this.algorithm$.pipe((0,u.T)(({i18nKeys:{credentialType:e}})=>(0,q.Tl)(e,this.i18nService))),this.credentialTypeHint$=new a.m(1),this.category$=new a.m(1),this.generatedCredential$=new l.t(void 0),this.value$=this.generatedCredential$.pipe((0,u.T)(e=>{var t;return null!==(t=null==e?void 0:e.credential)&&void 0!==t?t:"-"})),this.USER_REQUEST="user request",this.generate$=new o.B}ngOnChanges(e){return ce(this,void 0,void 0,function*(){var t,i,n,r,s;const o=null==e?void 0:e.account;(null===(t=null==o?void 0:o.previousValue)||void 0===t?void 0:t.id)!==(null===(i=null==o?void 0:o.currentValue)||void 0===i?void 0:i.id)&&(this.log.debug({previousUserId:null===(n=null==o?void 0:o.previousValue)||void 0===n?void 0:n.id,currentUserId:null===(r=null==o?void 0:o.currentValue)||void 0===r?void 0:r.id},"account input change detected"),this.account$.next(null!==(s=o.currentValue)&&void 0!==s?s:this.account))})}onRootChanged(e){this.root$.value.nav!==e.nav&&this.zone.run(()=>{this.root$.next(e)})}ngOnInit(){return ce(this,void 0,void 0,function*(){if(this.log=(0,C.mJ)(this.debug,this.logService,{type:"CredentialGeneratorComponent"}),!this.account){const e=yield(0,h._)(this.accountService.activeAccount$);e||this.log.panic("active account cannot be `null`."),this.log.info({userId:e.id},"account not specified; using active account settings"),this.account$.next(e)}(0,A.z)([this.generatorService.algorithms$("email",{account$:this.account$}),this.generatorService.algorithms$("username",{account$:this.account$})]).pipe((0,u.T)(e=>e.flat()),(0,u.T)(e=>{const t=e.filter(e=>!(0,D.$S)(e.id));t.sort((e,t)=>e.weight-t.weight);const i=this.toOptions(t);i.splice(-1,0,{value:Ce,label:this.i18nService.t("forwardedEmail")});const n=e.filter(e=>(0,D.$S)(e.id));n.sort((e,t)=>e.weight-t.weight);const r=this.toOptions(n);return r.unshift({value:Ie,label:this.i18nService.t("select")}),[i,r]}),(0,p.M)(e=>this.log.debug({algorithms:e},"algorithms loaded")),(0,g.Q)(this.destroyed)).subscribe(([e,t])=>{this.zone.run(()=>{this.usernameOptions$.next(e),this.forwarderOptions$.next(t)})}),this.generatorService.algorithms$("password",{account$:this.account$}).pipe((0,u.T)(e=>{const t=this.toOptions(e);return t.push({value:be,label:this.i18nService.t("username")}),t}),(0,g.Q)(this.destroyed)).subscribe(this.rootOptions$),this.maybeAlgorithm$.pipe((0,u.T)(e=>{var t;return(null===(t=null==e?void 0:e.i18nKeys)||void 0===t?void 0:t.description)?(0,q.Tl)(e.i18nKeys.description,this.i18nService):""}),(0,g.Q)(this.destroyed)).subscribe(e=>{this.zone.run(()=>{this.credentialTypeHint$.next(e)})}),this.maybeAlgorithm$.pipe((0,u.T)(e=>null==e?void 0:e.type),(0,v.F)(),(0,g.Q)(this.destroyed)).subscribe(e=>{this.zone.run(()=>{this.category$.next(e)})}),this.generatorService.generate$({on$:this.generate$,account$:this.account$}).pipe((0,m.W)((e,t)=>("string"==typeof e?this.toastService.showToast({message:e,variant:"error",title:""}):this.logService.error(e),t)),(0,f.E)(this.account$,this.maybeAlgorithm$),(0,g.Q)(this.destroyed)).subscribe(([e,t,i])=>{var n,r;this.log.debug({source:null!==(n=e.source)&&void 0!==n?n:null,algorithm:null!==(r=null==i?void 0:i.id)&&void 0!==r?r:null},"credential generated");const s="string"==typeof(null==i?void 0:i.id)?i.id:void 0;this.generatorHistoryService.track(t.id,e.credential,e.category,e.generationDate,s).catch(e=>{this.logService.error(e)}),this.zone.run(()=>{i&&e.source===this.USER_REQUEST&&this.announce((0,q.Tl)(i.i18nKeys.credentialGenerated,this.i18nService)),this.generatedCredential$.next(e),this.onGenerated.next(e)})});const e=new o.B,t=new o.B,i=new o.B;this.root$.pipe((0,u.T)(e=>e.nav===be?{nav:e.nav}:e.nav?{nav:e.nav,algorithm:JSON.parse(e.nav)}:{nav:be}),(0,g.Q)(this.destroyed)).subscribe(e),this.username.valueChanges.pipe((0,u.T)(e=>{if(e.nav===Ce)return{nav:e.nav};if(e.nav)return{nav:e.nav,algorithm:JSON.parse(e.nav)};{const[e]=D.I4[D.ZU.username];return{nav:JSON.stringify(e),algorithm:e}}}),(0,g.Q)(this.destroyed)).subscribe(t),this.forwarder.valueChanges.pipe((0,u.T)(e=>e.nav===Ie?{nav:e.nav}:e.nav?{nav:e.nav,algorithm:JSON.parse(e.nav)}:{nav:Ie}),(0,g.Q)(this.destroyed)).subscribe(i),(0,A.z)([e,t,i]).pipe((0,u.T)(([e,t,i])=>{const n=!e.algorithm&&!t.algorithm;return[n,n&&i.algorithm&&(0,D.$S)(i.algorithm)?i.algorithm.forwarder:null]}),(0,v.F)((e,t)=>e[0]===t[0]&&e[1]===t[1]),(0,g.Q)(this.destroyed)).subscribe(([e,t])=>{this.log.debug({forwarderId:t,showForwarder:e},"forwarder visibility updated"),this.zone.run(()=>{this.showForwarder$.next(e),this.forwarderId$.next(t)})}),(0,A.z)([e,t,i]).pipe((0,u.T)(([e,t,i])=>{var n,r;const s=null!==(r=null!==(n=e.algorithm)&&void 0!==n?n:t.algorithm)&&void 0!==r?r:i.algorithm;return s?this.generatorService.algorithm(s):null}),(0,v.F)((e,t)=>null!==e&&null!==t&&(0,D.W0)(e.id,t.id)),(0,g.Q)(this.destroyed)).subscribe(e=>{var t;this.log.debug({algorithm:null!==(t=null==e?void 0:e.id)&&void 0!==t?t:null},"algorithm selected"),this.zone.run(()=>{this.maybeAlgorithm$.next(e)})});const n=yield this.generatorService.preferences({account$:this.account$});this.algorithm$.pipe((0,f.E)(n),(0,g.Q)(this.destroyed)).subscribe(([e,t])=>{function i(i){const n=t[i];n.algorithm=e.id,n.updated=new Date}if((0,D.MP)(e.id))i("email");else if((0,D.yJ)(e.id))i("username");else{if(!(0,D.xu)(e.id))return;i("password")}this.log.info({algorithm:e.id,type:e.type},"algorithm preferences updated"),n.next(t)}),n.pipe((0,u.T)(({email:e,username:t,password:i})=>{const n=e.updated>t.updated?e:t,r=(0,D.$S)(n.algorithm)?n:null,s=r?JSON.stringify(r.algorithm):Ie,o=r?Ce:JSON.stringify(n.algorithm),a=n.updated>i.updated?be:JSON.stringify(i.algorithm);return{root:{selection:{nav:a},active:{nav:a,algorithm:a===be?void 0:i.algorithm}},username:{selection:{nav:o},active:{nav:o,algorithm:r?void 0:n.algorithm}},forwarder:{selection:{nav:s},active:{nav:s,algorithm:null==r?void 0:r.algorithm}}}}),(0,g.Q)(this.destroyed)).subscribe(({root:n,username:r,forwarder:s})=>{this.log.debug({root:n.selection,username:r.selection,forwarder:s.selection},"navigation updated"),this.onRootChanged(n.selection),this.username.setValue(r.selection,{emitEvent:!1}),this.forwarder.setValue(s.selection,{emitEvent:!1}),e.next(n.active),t.next(r.active),i.next(s.active)}),this.maybeAlgorithm$.pipe((0,g.Q)(this.destroyed)).subscribe(e=>{this.zone.run(()=>{var t;(null===(t=null==e?void 0:e.capabilities)||void 0===t?void 0:t.autogenerate)?(this.log.debug("autogeneration enabled"),this.generate("autogenerate").catch(e=>{this.log.error(e,"a failure occurred during autogeneration")})):(this.log.debug("autogeneration disabled; clearing generated credential"),this.generatedCredential$.next(void 0))})}),this.log.debug("component initialized")})}announce(e){this.ariaLive.announce(e).catch(e=>this.logService.error(e))}generate(e){return ce(this,void 0,void 0,function*(){const t=yield(0,h._)(this.algorithm$),i={source:e,algorithm:t.id};this.website&&(i.website=this.website),this.log.debug(i,"generation requested"),this.generate$.next(i)})}toOptions(e){return e.map(e=>({value:JSON.stringify(e.id),label:(0,q.Tl)(e.i18nKeys.name,this.i18nService)}))}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this.generate$.complete(),this.generatedCredential$.complete(),this.onGenerated.complete(),this.log.debug("component destroyed")}}we.ɵfac=function(e){return new(e||we)(j.rXU(D.iE),j.rXU(P.ZS),j.rXU($.f),j.rXU(b.K),j.rXU(_.W),j.rXU(Y.D),j.rXU(r.SKi),j.rXU(s.ok),j.rXU(ee.Ai))},we.ɵcmp=j.VBU({type:we,selectors:[["tools-credential-generator"]],inputs:{account:"account",debug:"debug",website:"website"},outputs:{onGenerated:"onGenerated"},features:[j.OA$],decls:30,vars:42,consts:[["fullWidth","",1,"tw-mb-4",3,"selectedChange","selected","label"],[3,"value"],[1,"tw-flex","tw-justify-between","tw-mb-4"],[1,"tw-grow","tw-flex","tw-items-center","tw-min-w-0"],[1,"tw-font-mono",3,"password"],[1,"tw-flex","tw-items-center","tw-space-x-1"],["type","button","bitIconButton","bwi-generate","buttonType","primaryGhost",3,"click","label","disabled"],["type","button","bitIconButton","bwi-clone","buttonType","primaryGhost","showToast","",3,"label","appCopyClick","valueLabel","disabled"],[1,"tw-mt-6",3,"account"],[1,"tw-mt-6",3,"onUpdated","account"],["bitTypography","h6"],[1,"tw-mb-4"],[1,"tw-container",3,"formGroup"],["formControlName","nav","data-testid","username-type",3,"items"],[3,"account"],[3,"account","forwarder"],["formControlName","nav","data-testid","email-forwarding-service",3,"items"],[3,"onUpdated","account"]],template:function(e,t){if(1&e&&(j.j41(0,"bit-toggle-group",0),j.nI1(1,"async"),j.nI1(2,"i18n"),j.bIt("selectedChange",function(e){return t.onRootChanged({nav:e})}),j.Z7z(3,de,2,2,"bit-toggle",1,j.fX1),j.nI1(5,"async"),j.k0s(),j.nrm(6,"nudge-generator-spotlight"),j.j41(7,"bit-card",2)(8,"div",3),j.nrm(9,"bit-color-password",4),j.nI1(10,"async"),j.k0s(),j.j41(11,"div",5)(12,"button",6),j.nI1(13,"async"),j.nI1(14,"async"),j.bIt("click",function(){return t.generate(t.USER_REQUEST)}),j.EFF(15),j.nI1(16,"async"),j.k0s(),j.nrm(17,"button",7),j.nI1(18,"async"),j.nI1(19,"async"),j.nI1(20,"async"),j.nI1(21,"async"),j.k0s()(),j.SS7(22),j.nI1(23,"async"),j.SS7(24),j.nI1(25,"async"),j.nVh(26,ue,1,1,"tools-password-settings",8)(27,he,1,1,"tools-passphrase-settings",8),j.nVh(28,ye,23,22,"bit-section"),j.nI1(29,"async")),2&e){let e;j.Y8G("selected",j.bMT(1,12,t.root$).nav)("label",j.bMT(2,14,"type")),j.R7$(3),j.Dyx(j.bMT(5,16,t.rootOptions$)),j.R7$(6),j.Y8G("password",j.bMT(10,18,t.value$)),j.R7$(3),j.Y8G("label",j.bMT(13,20,t.credentialTypeGenerateLabel$))("disabled",!j.bMT(14,22,t.algorithm$)),j.R7$(3),j.SpI(" ",j.bMT(16,24,t.credentialTypeGenerateLabel$)," "),j.R7$(2),j.Y8G("label",j.bMT(18,26,t.credentialTypeCopyLabel$))("appCopyClick",j.bMT(19,28,t.value$))("valueLabel",j.bMT(20,30,t.credentialTypeLabel$))("disabled",!j.bMT(21,32,t.algorithm$)),j.R7$(5);const i=j.bH3(j.bMT(23,34,t.showAlgorithm$));j.R7$(2),j.bH3(j.bMT(25,37,t.account$)),j.R7$(2),j.vxM((e=null==i?null:i.id)===t.Algorithm.password?26:e===t.Algorithm.passphrase?27:-1),j.R7$(2),j.vxM("password"!==j.bMT(29,40,t.category$)?28:-1)}},dependencies:[I.E,te.H,ie.a,W,w.i,B.S,E.s,S.D,Z.q,K.H,Q.n,k.U,R.E,ne.r,s.X1,s.qT,s.BC,s.cb,s.j4,s.JD,F.L,re.j,se.I,oe.h,T.p,ae.w,M.b,x.h,H.z,J.b,y.p,n.Jj,le.$],encapsulation:2})},23979(e,t,i){"use strict";i.d(t,{h:()=>R});var n=i(11217),r=i(84210),s=i(87806),o=i(39250),a=i(69783),l=i(78950),c=i(85566),d=i(29236),u=i(39722),h=i(94735),A=i(26411),p=i(36288),g=i(23544),v=i(14041),m=i(86226),f=i(93199),y=i(19934),b=i(43759),C=i(76356),I=i(69896),w=i(25740),B=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function E(e,t){if(1&e){const e=v.RV6();v.j41(0,"bit-form-field")(1,"bit-label"),v.EFF(2),v.nI1(3,"i18n"),v.k0s(),v.j41(4,"input",2),v.bIt("change",function(){n.eBV(e);const t=v.XpG();return n.Njj(t.save("domain"))}),v.k0s(),v.j41(5,"bit-hint"),v.EFF(6),v.nI1(7,"i18n"),v.k0s()()}2&e&&(v.R7$(2),v.JRh(v.bMT(3,2,"forwarderDomainName")),v.R7$(4),v.JRh(v.bMT(7,4,"forwarderDomainNameHint")))}function S(e,t){if(1&e){const e=v.RV6();v.j41(0,"bit-form-field")(1,"bit-label"),v.EFF(2),v.nI1(3,"i18n"),v.k0s(),v.j41(4,"input",3),v.bIt("change",function(){n.eBV(e);const t=v.XpG();return n.Njj(t.save("password"))}),v.k0s(),v.j41(5,"button",4),v.bIt("change",function(){n.eBV(e);const t=v.XpG();return n.Njj(t.save("token"))}),v.k0s()()}2&e&&(v.R7$(2),v.JRh(v.bMT(3,1,"apiKey")))}function Q(e,t){if(1&e){const e=v.RV6();v.j41(0,"bit-form-field",1)(1,"bit-label"),v.EFF(2),v.nI1(3,"i18n"),v.k0s(),v.j41(4,"input",5),v.bIt("change",function(){n.eBV(e);const t=v.XpG();return n.Njj(t.save("baseUrl"))}),v.k0s()()}2&e&&(v.R7$(2),v.JRh(v.bMT(3,1,"selfHostBaseUrl")))}const k=Object.freeze({domain:"domain",token:"token",baseUrl:"baseUrl"});class R{constructor(e,t){this.formBuilder=e,this.generatorService=t,this.account=null,this.account$=new o.m(1),this.forwarder=null,this.onUpdated=new n.bkB,this.settings=this.formBuilder.group({[k.domain]:[""],[k.token]:[""],[k.baseUrl]:[""]}),this.vendor=new o.m(1),this.saveSettings=new s.B,this.displayDomain=!1,this.displayToken=!1,this.displayBaseUrl=!1,this.refresh$=new s.B,this.destroyed$=new s.B}ngOnInit(){return B(this,void 0,void 0,function*(){const e=new o.m(1);this.vendor.pipe((0,a.T)(e=>this.generatorService.forwarder(e)),(0,d.Q)(this.destroyed$)).subscribe(t=>{this.displayDomain=t.capabilities.fields.includes("domain"),this.displayToken=t.capabilities.fields.includes("token"),this.displayBaseUrl=t.capabilities.fields.includes("baseUrl"),e.next(t)});const t=e.pipe((0,a.T)(e=>this.generatorService.settings(e,{account$:this.account$})));t.pipe((0,c.w)(),(0,d.Q)(this.destroyed$)).subscribe(e=>{this.settings.patchValue(e,{emitEvent:!1})}),e.pipe((0,d.Q)(this.destroyed$)).subscribe(e=>{for(const t in k){const i=this.settings.get(t);e.capabilities.fields.includes(t)?null==i||i.enable({emitEvent:!1}):null==i||i.disable({emitEvent:!1})}}),t.pipe((0,a.T)(e=>e.pipe((0,l.i)(1))),(0,c.w)(),(0,d.Q)(this.destroyed$)).subscribe(this.onUpdated),this.saveSettings.pipe((0,u.E)(this.settings.valueChanges,t),(0,d.Q)(this.destroyed$)).subscribe(([,e,t])=>{t.next(e)})})}save(e="component api call"){this.saveSettings.next(e)}ngOnChanges(e){return B(this,void 0,void 0,function*(){this.refresh$.complete(),"forwarder"in e&&this.vendor.next(this.forwarder),"account"in e&&this.account$.next(this.account)})}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}R.ɵfac=function(e){return new(e||R)(v.rXU(r.ok),v.rXU(g.iE))},R.ɵcmp=v.VBU({type:R,selectors:[["tools-forwarder-settings"]],inputs:{account:"account",forwarder:"forwarder"},outputs:{onUpdated:"onUpdated"},features:[v.OA$],decls:4,vars:4,consts:[[1,"tw-container",3,"formGroup"],["disableMargin",""],["bitInput","","formControlName","domain","type","text","placeholder","example.com",3,"change"],["bitInput","","formControlName","token","type","password",3,"change"],["type","button","bitIconButton","","bitSuffix","","bitPasswordInputToggle","",3,"change"],["bitInput","","formControlName","baseUrl","type","text",3,"change"]],template:function(e,t){1&e&&(v.j41(0,"form",0),v.nVh(1,E,8,6,"bit-form-field"),v.nVh(2,S,6,3,"bit-form-field"),v.nVh(3,Q,5,3,"bit-form-field",1),v.k0s()),2&e&&(v.Y8G("formGroup",t.settings),v.R7$(),v.vxM(t.displayDomain?1:-1),v.R7$(),v.vxM(t.displayToken?2:-1),v.R7$(),v.vxM(t.displayBaseUrl?3:-1))},dependencies:[r.X1,r.qT,r.me,r.BC,r.cb,r.j4,r.JD,A.L,m.j,f.I,y.J,b.h,C.e,I.a,p.s,h.p,w.$],encapsulation:2})},27545(e,t,i){"use strict";i.d(t,{gA:()=>Z,Im:()=>$,_h:()=>Ie});var n=i(286),r=i(46758),s=i(87806),o=i(67789),a=i(39250),l=i(35284),c=i(191),d=i(69783),u=i(29236),h=i(94735),A=i(56962),p=i(20136),g=i(98479),v=i(22191),m=i(59525),f=i(98403),y=i(23544),b=i(192),C=i(18030),I=i(14041),w=i(50700),B=i(27520),E=i(36288),S=i(25024),Q=i(75556),k=i(90300),R=i(4017),F=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function T(e,t){if(1&e&&(I.j41(0,"bit-item")(1,"bit-item-content"),I.nrm(2,"bit-color-password",0),I.j41(3,"div",1),I.EFF(4),I.nI1(5,"date"),I.k0s()(),I.qex(6,2),I.j41(7,"bit-item-action")(8,"button",3),I.EFF(9),I.k0s()(),I.bVm(),I.k0s()),2&e){const e=t.$implicit,i=I.XpG();I.R7$(2),I.Y8G("password",e.credential),I.R7$(2),I.SpI(" ",I.i5U(5,6,e.generationDate,"medium")," "),I.R7$(4),I.Y8G("appCopyClick",e.credential)("valueLabel",i.getGeneratedValueText(e))("label",i.getCopyText(e)),I.R7$(),I.SpI(" ",i.getCopyText(e)," ")}}class D{constructor(e,t,i,n){this.generatorService=e,this.history=t,this.i18nService=i,this.logService=n,this.destroyed=new s.B,this.credentials$=new o.t([]),this.account$=new a.m(1),this.debug=!1,this.log=(0,p.S2)({})}ngOnChanges(e){return F(this,void 0,void 0,function*(){var t,i,n,r,s;const o=null==e?void 0:e.account;(null===(t=null==o?void 0:o.previousValue)||void 0===t?void 0:t.id)!==(null===(i=null==o?void 0:o.currentValue)||void 0===i?void 0:i.id)&&(this.log.debug({previousUserId:null===(n=null==o?void 0:o.previousValue)||void 0===n?void 0:n.id,currentUserId:null===(r=null==o?void 0:o.currentValue)||void 0===r?void 0:r.id},"account input change detected"),this.account$.next(null!==(s=o.currentValue)&&void 0!==s?s:this.account))})}ngOnInit(){this.log=(0,p.mJ)(this.debug,this.logService,{type:"CredentialGeneratorComponent"}),this.account$.pipe((0,l.M)(e=>this.log.info({accountId:e.id},"loading credential history")),(0,c.n)(e=>this.history.credentials$(e.id)),(0,d.T)(e=>e.filter(e=>{var t;return""!==(null!==(t=e.credential)&&void 0!==t?t:"")})),(0,u.Q)(this.destroyed)).subscribe(this.credentials$)}getCopyText(e){const t=this.generatorService.algorithm(this.algorithmId(e));return(0,C.Tl)(t.i18nKeys.copyCredential,this.i18nService)}getGeneratedValueText(e){const t=this.generatorService.algorithm(this.algorithmId(e));return(0,C.Tl)(t.i18nKeys.credentialType,this.i18nService)}algorithmId(e){if(e.algorithm)return e.algorithm;const[t]=y.I4[e.category];return t}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this.log.debug("component destroyed")}}D.ɵfac=function(e){return new(e||D)(I.rXU(y.iE),I.rXU(b.ZS),I.rXU(w.W),I.rXU(A.K))},D.ɵcmp=I.VBU({type:D,selectors:[["bit-credential-generator-history"]],inputs:{account:"account",debug:"debug"},features:[I.OA$],decls:3,vars:2,consts:[[1,"tw-font-mono",3,"password"],["slot","secondary"],["slot","end"],["type","button","bitIconButton","bwi-clone","showToast","",3,"appCopyClick","valueLabel","label"]],template:function(e,t){1&e&&(I.Z7z(0,T,10,9,"bit-item",null,I.fX1),I.nI1(2,"async")),2&e&&I.Dyx(I.bMT(2,0,t.credentials$))},dependencies:[r.MD,g.p,B.S,v.Q,E.s,m.s,h.p,S.D,f.k,Q.J,k.g,R.D,r.Jj,r.vh],encapsulation:2});var P=i(68108),M=i(29029),x=i(81573),V=i(9171),G=i(22690),U=i(25740);class O{constructor(){this.noCredentialsIcon=V.R}}O.ɵfac=function(e){return new(e||O)},O.ɵcmp=I.VBU({type:O,selectors:[["bit-empty-credential-history"]],decls:7,vars:7,consts:[[3,"icon"],["slot","title"],["slot","description"]],template:function(e,t){1&e&&(I.j41(0,"bit-no-items",0),I.qex(1,1),I.EFF(2),I.nI1(3,"i18n"),I.bVm(),I.qex(4,2),I.EFF(5),I.nI1(6,"i18n"),I.bVm(),I.k0s()),2&e&&(I.Y8G("icon",t.noCredentialsIcon),I.R7$(2),I.JRh(I.bMT(3,3,"nothingToShow")),I.R7$(3),I.JRh(I.bMT(6,5,"nothingGeneratedRecently")))},dependencies:[h.p,m.s,G.D,U.$],encapsulation:2});var N=i(35500),j=i(66316),Y=i(56898),X=i(45635),z=i(67311),L=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function W(e,t){if(1&e&&(I.nrm(0,"bit-credential-generator-history",4),I.nI1(1,"async")),2&e){const e=I.XpG();I.Y8G("account",I.bMT(1,1,e.account$))}}function K(e,t){1&e&&I.nrm(0,"bit-empty-credential-history",5)}class Z{constructor(e,t,i,n){this.accountService=e,this.history=t,this.dialogService=i,this.logService=n,this.destroyed=new s.B,this.hasHistory$=new o.t(!1),this.account$=new a.m(1),this.debug=!1,this.log=(0,p.S2)({})}ngOnChanges(e){var t,i,n,r,s;const o=null==e?void 0:e.account;(null===(t=null==o?void 0:o.previousValue)||void 0===t?void 0:t.id)!==(null===(i=null==o?void 0:o.currentValue)||void 0===i?void 0:i.id)&&(this.log.debug({previousUserId:null===(n=null==o?void 0:o.previousValue)||void 0===n?void 0:n.id,currentUserId:null===(r=null==o?void 0:o.currentValue)||void 0===r?void 0:r.id},"account input change detected"),this.account$.next(null!==(s=o.currentValue)&&void 0!==s?s:this.account))}ngOnInit(){return L(this,void 0,void 0,function*(){this.log=(0,p.mJ)(this.debug,this.logService,{type:"CredentialGeneratorComponent"}),this.account||(this.account=yield(0,P._)(this.accountService.activeAccount$),this.log.info({userId:this.account.id},"account not specified; using active account settings"),this.account$.next(this.account)),this.account$.pipe((0,c.n)(e=>e.id&&this.history.credentials$(e.id)),(0,d.T)(e=>e.length>0),(0,u.Q)(this.destroyed)).subscribe(this.hasHistory$)})}clear(){return L(this,void 0,void 0,function*(){(yield this.dialogService.openSimpleDialog({title:{key:"clearGeneratorHistoryTitle"},content:{key:"cleargGeneratorHistoryDescription"},type:"warning",acceptButtonText:{key:"clearHistory"},cancelButtonText:{key:"cancel"}}))&&(yield this.history.clear((yield(0,P._)(this.account$)).id))})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this.log.debug("component destroyed")}}Z.ɵfac=function(e){return new(e||Z)(I.rXU(N.D),I.rXU(b.ZS),I.rXU(j.o),I.rXU(A.K))},Z.ɵcmp=I.VBU({type:Z,selectors:[["ng-component"]],inputs:{account:"account",debug:"debug"},features:[I.OA$],decls:14,vars:12,consts:[["dialog",""],["background","alt"],["bitDialogTitle",""],["bitDialogContent",""],[3,"account"],[2,"display","contents"],["bitDialogFooter",""],["bitButton","","type","submit","buttonType","primary",3,"click","disabled"]],template:function(e,t){1&e&&(I.j41(0,"bit-dialog",1,0)(2,"span",2),I.EFF(3),I.nI1(4,"i18n"),I.k0s(),I.qex(5,3),I.nVh(6,W,2,3,"bit-credential-generator-history",4),I.nI1(7,"async"),I.vZN(8,K,1,0,"bit-empty-credential-history",5),I.bVm(),I.qex(9,6),I.j41(10,"button",7),I.nI1(11,"async"),I.bIt("click",function(){return t.clear()}),I.EFF(12),I.nI1(13,"i18n"),I.k0s(),I.bVm(),I.k0s()),2&e&&(I.R7$(3),I.JRh(I.bMT(4,4,"generatorHistory")),I.R7$(3),I.vxM(I.bMT(7,6,t.hasHistory$)?6:8),I.R7$(4),I.Y8G("disabled",!I.bMT(11,8,t.hasHistory$)),I.R7$(2),I.SpI(" ",I.bMT(13,10,"clearHistory")," "))},dependencies:[M.t,Y.Q,r.MD,h.p,x.P,X.m,z.hJ,D,O,r.Jj,U.$],encapsulation:2});var H=i(4162),J=i(99327),q=i(11217);class ${constructor(){}}$.ɵfac=function(e){return new(e||$)},$.ɵmod=I.$C({type:$}),$.ɵinj=q.G2t({imports:[n.y,H.M,J.d]});var _=i(6933),ee=i(21495),te=i(2073),ie=i(12012),ne=i(18499),re=i(89105),se=i(1601),oe=i(37115),ae=i(66523),le=i(31857),ce=i(97445),de=i(43946),ue=i(23549),he=i(43348),Ae=i(63344),pe=i(25304),ge=i(48856),ve=i(8936),me=i(39307);var fe=i(8916);const ye=new te.aZ("Randomizer"),be=new te.aZ("CredentialGeneratorProviders"),Ce=new te.aZ("SystemServices");class Ie{constructor(){}}Ie.ɵfac=function(e){return new(e||Ie)},Ie.ɵmod=I.$C({type:Ie}),Ie.ɵinj=q.G2t({providers:[(0,ee.F)({provide:ye,useFactory:y.WX,deps:[]}),(0,ee.F)({provide:de.p,useClass:ce.p,deps:[re.N,fe.Lu,ae.K5]}),(0,ee.F)({provide:he.F,useFactory:()=>{const e=new ge.T(pe.iP,pe.xN);e.registerSite(pe.YY[ue._z.forwarder]);for(const t of ve.G)e.registerVendor(t);for(const t of ve.B)e.registerExtension(t);return e.setPermission({all:!0},"default"),e},deps:[]}),(0,ee.F)({provide:Ce,useFactory:(e,t,i,n,r,s,o)=>{let a;a=s.isDev()?(0,p.oR)(r,[]):p.S2;return{policy:i,extension:new Ae.r(n,{encryptor:e,state:t,log:a,now:Date.now}),log:a,configService:o}},deps:[de.p,le.v2,ne.m,he.F,A.K,oe.y,se.w]}),(0,ee.F)({provide:be,useFactory:(e,t,i,n,r,s,o)=>{const a={encryptor:i,state:n,log:e.log,now:Date.now},l=new y.r5.i(a,e,Object.values(y.qG)),c=new y.r5.O(a,e.policy),d=o.client$.pipe((0,_.t)({refCount:!1,bufferSize:1})),u={randomizer:t,client:new me.e(s,r),i18nService:r,sdk:()=>(0,P._)(d),now:Date.now};return{userState:{encryptor:i,state:n,log:e.log,now:Date.now},generator:u,profile:c,metadata:l}},deps:[Ce,ye,de.p,le.v2,w.W,ie.G,ae.K5]}),(0,ee.F)({provide:class{},useFactory:(e,t)=>Object.freeze({encryptor:e,state:t,log:p.S2,now:Date.now}),deps:[de.p,le.v2]}),(0,ee.F)({provide:y.iE,useClass:y.PG,deps:[be,Ce]})],imports:[h.p]})},94615(e,t,i){"use strict";i.d(t,{H:()=>U});var n=i(14340),r=i(46758),s=i(11217),o=i(84210),a=i(87806),l=i(39250),c=i(69783),d=i(78950),u=i(29236),h=i(35284),A=i(39722),p=i(94735),g=i(56962),v=i(20136),m=i(88832),f=i(75583),y=i(26411),b=i(47135),C=i(58950),I=i(14318),w=i(23544),B=i(14041),E=i(50700),S=i(58806),Q=i(90246),k=i(86226),R=i(93199),F=i(19934),T=i(43759),D=i(50352),P=i(25740),M=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function x(e,t){1&e&&(B.j41(0,"bit-section-header")(1,"h6",9),B.EFF(2),B.nI1(3,"i18n"),B.k0s()()),2&e&&(B.R7$(2),B.JRh(B.bMT(3,1,"options")))}function V(e,t){1&e&&(B.j41(0,"p",8),B.EFF(1),B.nI1(2,"i18n"),B.k0s()),2&e&&(B.R7$(),B.JRh(B.bMT(2,1,"generatorPolicyInEffect")))}const G=Object.freeze({numWords:"numWords",includeNumber:"includeNumber",capitalize:"capitalize",wordSeparator:"wordSeparator"});class U{constructor(e,t,i,n){this.formBuilder=e,this.generatorService=t,this.i18nService=i,this.logService=n,this.debug=!1,this.log=(0,v.S2)({}),this.account=null,this.account$=new l.m(1),this.showHeader=!0,this.disableMargin=!1,this.onUpdated=new s.bkB,this.settings=this.formBuilder.group({[G.numWords]:[0],[G.wordSeparator]:[""],[G.capitalize]:[!1],[G.includeNumber]:[!1]}),this.wordSeparatorMaxLength=0,this.saveSettings=new a.B,this.policyInEffect=!1,this.numWordsBoundariesHint=new l.m(1),this.numWordsBoundariesHint$=this.numWordsBoundariesHint.asObservable(),this.destroyed$=new a.B}ngOnChanges(e){return M(this,void 0,void 0,function*(){"account"in e&&e.account&&this.account$.next(this.account)})}ngOnInit(){return M(this,void 0,void 0,function*(){this.log=(0,v.mJ)(this.debug,this.logService,{type:"PassphraseSettingsComponent"});const e=yield this.generatorService.settings(w.qG.passphrase,{account$:this.account$});e.withConstraints$.pipe((0,h.M)(e=>this.log.debug(e,"passphrase settings loaded with constraints")),(0,u.Q)(this.destroyed$)).subscribe(({state:e,constraints:t})=>{var i,n,r,s,o,a,l,c,d;this.settings.patchValue(e,{emitEvent:!1});let u=this.i18nService.t("spinboxBoundariesHint",null===(n=null===(i=t.numWords)||void 0===i?void 0:i.min)||void 0===n?void 0:n.toString(),null===(s=null===(r=t.numWords)||void 0===r?void 0:r.max)||void 0===s?void 0:s.toString());(null!==(o=e.numWords)&&void 0!==o?o:0)<=(null!==(l=null===(a=t.numWords)||void 0===a?void 0:a.recommendation)&&void 0!==l?l:0)&&(u+=this.i18nService.t("passphraseNumWordsRecommendationHint",null===(d=null===(c=t.numWords)||void 0===c?void 0:c.recommendation)||void 0===d?void 0:d.toString())),this.numWordsBoundariesHint.next(u)}),e.pipe((0,d.i)(1),(0,h.M)(e=>this.log.debug(e,"passphrase settings onUpdate event")),(0,u.Q)(this.destroyed$)).subscribe(this.onUpdated),this.generatorService.policy$(w.qG.passphrase,{account$:this.account$}).pipe((0,u.Q)(this.destroyed$)).subscribe(({constraints:e})=>{var t,i,n,r,s;this.wordSeparatorMaxLength=null!==(i=null===(t=e.wordSeparator)||void 0===t?void 0:t.maxLength)&&void 0!==i?i:0,this.policyInEffect=null!==(n=e.policyInEffect)&&void 0!==n&&n,this.toggleEnabled(G.capitalize,!(null===(r=e.capitalize)||void 0===r?void 0:r.readonly)),this.toggleEnabled(G.includeNumber,!(null===(s=e.includeNumber)||void 0===s?void 0:s.readonly))}),this.saveSettings.pipe((0,A.E)(this.settings.valueChanges),(0,h.M)(([e,t])=>this.log.debug({source:e,form:t},"save passphrase settings request")),(0,c.T)(([,e])=>e),(0,u.Q)(this.destroyed$)).subscribe(e)})}save(e="component api call"){this.saveSettings.next(e)}toggleEnabled(e,t){var i,n;t?null===(i=this.settings.get(e))||void 0===i||i.enable({emitEvent:!1}):null===(n=this.settings.get(e))||void 0===n||n.disable({emitEvent:!1})}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}U.ɵfac=function(e){return new(e||U)(B.rXU(o.ok),B.rXU(w.iE),B.rXU(E.W),B.rXU(g.K))},U.ɵcmp=B.VBU({type:U,selectors:[["tools-passphrase-settings"]],inputs:{debug:"debug",account:"account",showHeader:"showHeader",disableMargin:[2,"disableMargin","disableMargin",n.he]},outputs:{onUpdated:"onUpdated"},features:[B.OA$],decls:31,vars:21,consts:[[3,"disableMargin"],[1,"tw-container",3,"formGroup"],[1,"tw-mb-4"],["disableMargin",""],["bitInput","","formControlName","numWords","id","num-words","type","number",3,"change"],["bitInput","","formControlName","wordSeparator","id","word-separator","type","text",3,"change","maxlength"],["bitCheckbox","","formControlName","capitalize","id","capitalize","type","checkbox",3,"change"],["bitCheckbox","","formControlName","includeNumber","id","include-number","type","checkbox",3,"change"],["bitTypography","helper"],["bitTypography","h6"]],template:function(e,t){1&e&&(B.j41(0,"bit-section",0),B.nVh(1,x,4,3,"bit-section-header"),B.j41(2,"form",1)(3,"div",2)(4,"bit-card")(5,"bit-form-field",3)(6,"bit-label"),B.EFF(7),B.nI1(8,"i18n"),B.k0s(),B.j41(9,"input",4),B.bIt("change",function(){return t.save("numWords")}),B.k0s(),B.j41(10,"bit-hint"),B.EFF(11),B.nI1(12,"async"),B.k0s()()()(),B.j41(13,"div")(14,"bit-card")(15,"bit-form-field")(16,"bit-label"),B.EFF(17),B.nI1(18,"i18n"),B.k0s(),B.j41(19,"input",5),B.bIt("change",function(){return t.save("wordSeparator")}),B.k0s()(),B.j41(20,"bit-form-control")(21,"input",6),B.bIt("change",function(){return t.save("capitalize")}),B.k0s(),B.j41(22,"bit-label"),B.EFF(23),B.nI1(24,"i18n"),B.k0s()(),B.j41(25,"bit-form-control",0)(26,"input",7),B.bIt("change",function(){return t.save("includeNumber")}),B.k0s(),B.j41(27,"bit-label"),B.EFF(28),B.nI1(29,"i18n"),B.k0s()(),B.nVh(30,V,3,3,"p",8),B.k0s()()()()),2&e&&(B.Y8G("disableMargin",t.disableMargin),B.R7$(),B.vxM(t.showHeader?1:-1),B.R7$(),B.Y8G("formGroup",t.settings),B.R7$(5),B.JRh(B.bMT(8,11,"numWords")),B.R7$(4),B.JRh(B.bMT(12,13,t.numWordsBoundariesHint$)),B.R7$(6),B.JRh(B.bMT(18,15,"wordSeparator")),B.R7$(2),B.Y8G("maxlength",t.wordSeparatorMaxLength),B.R7$(4),B.JRh(B.bMT(24,17,"capitalize")),B.R7$(2),B.Y8G("disableMargin",!t.policyInEffect),B.R7$(3),B.JRh(B.bMT(29,19,"includeNumber")),B.R7$(2),B.vxM(t.policyInEffect?30:-1))},dependencies:[m.n,C.U,f.E,S.r,o.X1,o.qT,o.me,o.Q0,o.Zm,o.BC,o.cb,o.tU,o.j4,o.JD,I.i,y.L,Q.f,k.j,R.I,F.J,T.h,b.q,D.P,p.p,r.Jj,P.$],encapsulation:2})},4162(e,t,i){"use strict";i.d(t,{M:()=>Y});var n=i(14340),r=i(46758),s=i(11217),o=i(87806),a=i(67789),l=i(39250),c=i(68108),d=i(4958),u=i(16385),h=i(68711),A=i(69783),p=i(29236),g=i(39722),v=i(94735),m=i(56962),f=i(20136),y=i(25024),b=i(92697),C=i(14318),I=i(27520),w=i(36288),B=i(23544),E=i(192),S=i(94615),Q=i(63968),k=i(18030),R=i(14041),F=i(69855),T=i(50700),D=i(35500),P=i(70352),M=i(12694),x=i(16496),V=i(25740),G=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function U(e,t){if(1&e&&(R.j41(0,"bit-toggle",9),R.EFF(1),R.k0s()),2&e){const e=t.$implicit;R.Y8G("value",e.value),R.R7$(),R.SpI(" ",e.label," ")}}function O(e,t){if(1&e){const e=R.RV6();R.j41(0,"bit-toggle-group",8),R.nI1(1,"async"),R.nI1(2,"i18n"),R.bIt("selectedChange",function(t){s.eBV(e);const i=R.XpG();return s.Njj(i.onCredentialTypeChanged(t))}),R.Z7z(3,U,2,2,"bit-toggle",9,R.fX1),R.nI1(5,"async"),R.k0s()}if(2&e){const e=R.XpG();R.Y8G("selected",R.bMT(1,2,e.credentialType$))("label",R.bMT(2,4,"type")),R.R7$(3),R.Dyx(R.bMT(5,6,e.passwordOptions$))}}function N(e,t){if(1&e){const e=R.RV6();R.j41(0,"tools-password-settings",10),R.nI1(1,"async"),R.bIt("onUpdated",function(){s.eBV(e);const t=R.XpG();return s.Njj(t.generate("password settings"))}),R.k0s()}if(2&e){const e=R.XpG();R.Y8G("account",R.bMT(1,2,e.account$))("disableMargin",e.disableMargin)}}function j(e,t){if(1&e){const e=R.RV6();R.j41(0,"tools-passphrase-settings",10),R.nI1(1,"async"),R.bIt("onUpdated",function(){s.eBV(e);const t=R.XpG();return s.Njj(t.generate("passphrase settings"))}),R.k0s()}if(2&e){const e=R.XpG();R.Y8G("account",R.bMT(1,2,e.account$))("disableMargin",e.disableMargin)}}class Y{constructor(e,t,i,n,r,c,d,u){this.generatorService=e,this.generatorHistoryService=t,this.toastService=i,this.i18nService=n,this.logService=r,this.accountService=c,this.zone=d,this.ariaLive=u,this.Algorithm=B.oG,this.account=null,this.account$=new l.m(1),this.debug=!1,this.log=(0,f.S2)({}),this.profile=B.WV.account,this.disableMargin=!1,this.credentialType$=new a.t(null),this.value$=new a.t(""),this.generate$=new o.B,this.USER_REQUEST="user request",this.onGenerated=new s.bkB,this.onAlgorithm=new s.bkB,this.passwordOptions$=new a.t([]),this.showCredentialTypes$=this.passwordOptions$.pipe((0,A.T)(e=>e.length>1)),this.maybeAlgorithm$=new l.m(1),this.algorithm$=this.maybeAlgorithm$.pipe((0,h.p)(e=>!!e)),this.credentialTypeCopyLabel$=this.algorithm$.pipe((0,A.T)(({i18nKeys:{copyCredential:e}})=>(0,k.Tl)(e,this.i18nService))),this.credentialTypeGenerateLabel$=this.algorithm$.pipe((0,A.T)(({i18nKeys:{generateCredential:e}})=>(0,k.Tl)(e,this.i18nService))),this.credentialTypeLabel$=this.algorithm$.pipe((0,A.T)(({i18nKeys:{credentialType:e}})=>(0,k.Tl)(e,this.i18nService))),this.destroyed=new o.B}ngOnChanges(e){return G(this,void 0,void 0,function*(){var t,i;const n=null==e?void 0:e.account;n&&n.currentValue.id&&n.previousValue.id!==n.currentValue.id&&(this.log.debug({previousUserId:null===(t=null==n?void 0:n.previousValue)||void 0===t?void 0:t.id,currentUserId:null===(i=null==n?void 0:n.currentValue)||void 0===i?void 0:i.id},"account input change detected"),this.account$.next(n.currentValue.id))})}generate(e){return G(this,void 0,void 0,function*(){const t=yield(0,c._)(this.algorithm$),i={source:e,algorithm:t.id,profile:this.profile};this.log.debug(i,"generation requested"),this.generate$.next(i)})}onCredentialTypeChanged(e){this.credentialType$.value!==e&&this.zone.run(()=>{this.credentialType$.next(e)})}ngOnInit(){return G(this,void 0,void 0,function*(){if(this.log=(0,f.mJ)(this.debug,this.logService,{type:"PasswordGeneratorComponent"}),!this.account){const e=yield(0,c._)(this.accountService.activeAccount$);e||this.log.panic("active account cannot be `null`."),this.log.info({userId:e.id},"account not specified; using active account settings"),this.account$.next(e)}this.generatorService.algorithms$("password",{account$:this.account$}).pipe((0,A.T)(e=>this.toOptions(e)),(0,p.Q)(this.destroyed)).subscribe(this.passwordOptions$),this.generatorService.generate$({on$:this.generate$,account$:this.account$}).pipe((0,d.W)((e,t)=>("string"==typeof e?this.toastService.showToast({message:e,variant:"error",title:""}):this.logService.error(e),t)),(0,g.E)(this.account$,this.algorithm$),(0,p.Q)(this.destroyed)).subscribe(([e,t,i])=>{var n;this.log.debug({source:null!==(n=e.source)&&void 0!==n?n:null},"credential generated"),this.generatorHistoryService.track(t.id,e.credential,e.category,e.generationDate).catch(e=>{this.logService.error(e)}),this.zone.run(()=>{e.source===this.USER_REQUEST&&this.announce((0,k.Tl)(i.i18nKeys.credentialGenerated,this.i18nService)),this.onGenerated.next(e),this.value$.next(e.credential)})});const e=yield this.generatorService.preferences({account$:this.account$});this.credentialType$.pipe((0,h.p)(e=>!!e),(0,g.E)(e),(0,p.Q)(this.destroyed)).subscribe(([t,i])=>{(0,B.xu)(t)&&(this.log.info({algorithm:t,type:B.ZU.password},"algorithm preferences updated"),i.password.algorithm=t,i.password.updated=new Date,e.next(i))}),e.pipe((0,A.T)(({password:e})=>this.generatorService.algorithm(e.algorithm)),(0,u.F)((e,t)=>null!==e&&null!==t&&(0,B.W0)(e.id,t.id)),(0,p.Q)(this.destroyed)).subscribe(e=>{this.log.debug({algorithm:e.id},"algorithm selected"),this.onCredentialTypeChanged(e.id),this.zone.run(()=>{this.maybeAlgorithm$.next(e),this.onAlgorithm.next((0,k.VI)(e,this.i18nService))})}),this.maybeAlgorithm$.pipe((0,p.Q)(this.destroyed)).subscribe(e=>{this.zone.run(()=>{var t;(null===(t=null==e?void 0:e.capabilities)||void 0===t?void 0:t.autogenerate)?(this.log.debug("autogeneration enabled"),this.generate("autogenerate").catch(e=>{this.log.error(e,"a failure occurred during autogeneration")})):(this.log.debug("autogeneration disabled; clearing generated credential"),this.value$.next("-"))})}),this.log.debug("component initialized")})}announce(e){this.ariaLive.announce(e).catch(e=>this.logService.error(e))}toOptions(e){return e.map(e=>({value:e.id,label:(0,k.Tl)(e.i18nKeys.name,this.i18nService)}))}ngOnDestroy(){this.destroyed.complete(),this.generate$.complete(),this.value$.complete(),this.onGenerated.complete()}}Y.ɵfac=function(e){return new(e||Y)(R.rXU(B.iE),R.rXU(E.ZS),R.rXU(F.f),R.rXU(T.W),R.rXU(m.K),R.rXU(D.D),R.rXU(s.SKi),R.rXU(P.Ai))},Y.ɵcmp=R.VBU({type:Y,selectors:[["tools-password-generator"]],inputs:{account:"account",debug:"debug",profile:"profile",disableMargin:[2,"disableMargin","disableMargin",n.he]},outputs:{onGenerated:"onGenerated",onAlgorithm:"onAlgorithm"},features:[R.OA$],decls:21,vars:33,consts:[["fullWidth","",1,"tw-mb-4",3,"selected","label"],[1,"tw-flex","tw-justify-between","tw-mb-4"],[1,"tw-grow","tw-flex","tw-items-center","tw-min-w-0"],[1,"tw-font-mono",3,"password"],[1,"tw-flex","tw-items-center","tw-space-x-1"],["type","button","bitIconButton","bwi-generate","buttonType","primaryGhost",3,"click","label","disabled"],["type","button","bitIconButton","bwi-clone","buttonType","primaryGhost","showToast","",3,"label","appCopyClick","valueLabel","disabled"],[1,"tw-mt-6",3,"account","disableMargin"],["fullWidth","",1,"tw-mb-4",3,"selectedChange","selected","label"],[3,"value"],[1,"tw-mt-6",3,"onUpdated","account","disableMargin"]],template:function(e,t){if(1&e&&(R.nVh(0,O,6,8,"bit-toggle-group",0),R.nI1(1,"async"),R.j41(2,"bit-card",1)(3,"div",2),R.nrm(4,"bit-color-password",3),R.nI1(5,"async"),R.k0s(),R.j41(6,"div",4)(7,"button",5),R.nI1(8,"async"),R.nI1(9,"async"),R.bIt("click",function(){return t.generate(t.USER_REQUEST)}),R.EFF(10),R.nI1(11,"async"),R.k0s(),R.nrm(12,"button",6),R.nI1(13,"async"),R.nI1(14,"async"),R.nI1(15,"async"),R.nI1(16,"async"),R.k0s()(),R.nVh(17,N,2,4,"tools-password-settings",7),R.nI1(18,"async"),R.nVh(19,j,2,4,"tools-passphrase-settings",7),R.nI1(20,"async")),2&e){let e,i;R.vxM(R.bMT(1,11,t.showCredentialTypes$)?0:-1),R.R7$(4),R.Y8G("password",R.bMT(5,13,t.value$)),R.R7$(3),R.Y8G("label",R.bMT(8,15,t.credentialTypeGenerateLabel$))("disabled",!R.bMT(9,17,t.algorithm$)),R.R7$(3),R.SpI(" ",R.bMT(11,19,t.credentialTypeGenerateLabel$)," "),R.R7$(2),R.Y8G("label",R.bMT(13,21,t.credentialTypeCopyLabel$))("appCopyClick",R.bMT(14,23,t.value$))("valueLabel",R.bMT(15,25,t.credentialTypeLabel$))("disabled",!R.bMT(16,27,t.algorithm$)),R.R7$(5),R.vxM((null==(e=R.bMT(18,29,t.algorithm$))?null:e.id)===t.Algorithm.password?17:-1),R.R7$(2),R.vxM((null==(i=R.bMT(20,31,t.algorithm$))?null:i.id)===t.Algorithm.passphrase?19:-1)}},dependencies:[b.E,M.H,x.a,C.i,I.S,w.s,y.D,Q.q,S.H,v.p,r.Jj,V.$],encapsulation:2})},63968(e,t,i){"use strict";i.d(t,{q:()=>U});var n=i(14340),r=i(46758),s=i(11217),o=i(84210),a=i(87806),l=i(39250),c=i(68711),d=i(69783),u=i(78950),h=i(29236),A=i(35284),p=i(39722),g=i(94735),v=i(88832),m=i(75583),f=i(26411),y=i(47135),b=i(58950),C=i(14318),I=i(23544),w=i(18030),B=i(14041),E=i(50700),S=i(58806),Q=i(90246),k=i(86226),R=i(93199),F=i(19934),T=i(43759),D=i(50352),P=i(25740),M=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function x(e,t){1&e&&(B.j41(0,"bit-section-header")(1,"h2",20),B.EFF(2),B.nI1(3,"i18n"),B.k0s()()),2&e&&(B.R7$(2),B.JRh(B.bMT(3,1,"options")))}function V(e,t){1&e&&(B.j41(0,"p",19),B.EFF(1),B.nI1(2,"i18n"),B.k0s()),2&e&&(B.R7$(),B.JRh(B.bMT(2,1,"generatorPolicyInEffect")))}const G=Object.freeze({length:"length",uppercase:"uppercase",lowercase:"lowercase",number:"number",special:"special",minNumber:"minNumber",minSpecial:"minSpecial",avoidAmbiguous:"avoidAmbiguous"});class U{constructor(e,t,i){this.formBuilder=e,this.generatorService=t,this.i18nService=i,this.account=null,this.account$=new l.m(1),this.showHeader=!0,this.waitMs=100,this.disableMargin=!1,this.onUpdated=new s.bkB,this.settings=this.formBuilder.group({[G.length]:[0],[G.uppercase]:[!1],[G.lowercase]:[!1],[G.number]:[!1],[G.special]:[!1],[G.minNumber]:[0],[G.minSpecial]:[0],[G.avoidAmbiguous]:[!1]}),this.saveSettings=new a.B,this.policyInEffect=!1,this.lengthBoundariesHint=new l.m(1),this.lengthBoundariesHint$=this.lengthBoundariesHint.asObservable(),this.lengthMin=null,this.lengthMax=null,this.minNumberMin=null,this.minNumberMax=null,this.minSpecialMin=null,this.minSpecialMax=null,this.destroyed$=new a.B}ngOnChanges(e){return M(this,void 0,void 0,function*(){"account"in e&&e.account&&this.account$.next(this.account)})}get numbers(){return this.settings.get(G.number)}get special(){return this.settings.get(G.special)}get minNumber(){return this.settings.get(G.minNumber)}get minSpecial(){return this.settings.get(G.minSpecial)}ngOnInit(){return M(this,void 0,void 0,function*(){const e=yield this.generatorService.settings(I.qG.password,{account$:this.account$});e.withConstraints$.pipe((0,d.T)(({state:e,constraints:t})=>{const i=Object.assign({},e);return i.avoidAmbiguous=!i.ambiguous,delete i.ambiguous,[i,t]}),(0,h.Q)(this.destroyed$)).subscribe(([e,t])=>{var i,n,r,s,o,a,l,c,d,u,h,A,p,g,v,m,f,y,b,C;let I=this.i18nService.t("spinboxBoundariesHint",null===(n=null===(i=t.length)||void 0===i?void 0:i.min)||void 0===n?void 0:n.toString(),null===(s=null===(r=t.length)||void 0===r?void 0:r.max)||void 0===s?void 0:s.toString());e.length<=(null!==(a=null===(o=t.length)||void 0===o?void 0:o.recommendation)&&void 0!==a?a:0)&&(I+=this.i18nService.t("passwordLengthRecommendationHint",null===(c=null===(l=t.length)||void 0===l?void 0:l.recommendation)||void 0===c?void 0:c.toString())),this.lengthBoundariesHint.next(I),this.lengthMin=null!==(u=null===(d=t.length)||void 0===d?void 0:d.min)&&void 0!==u?u:null,this.lengthMax=null!==(A=null===(h=t.length)||void 0===h?void 0:h.max)&&void 0!==A?A:null,this.minNumberMin=null!==(g=null===(p=t.minNumber)||void 0===p?void 0:p.min)&&void 0!==g?g:null,this.minNumberMax=null!==(m=null===(v=t.minNumber)||void 0===v?void 0:v.max)&&void 0!==m?m:null,this.minSpecialMin=null!==(y=null===(f=t.minSpecial)||void 0===f?void 0:f.min)&&void 0!==y?y:null,this.minSpecialMax=null!==(C=null===(b=t.minSpecial)||void 0===b?void 0:b.max)&&void 0!==C?C:null,this.applyRangeValidators(this.settings.get(G.length),this.lengthMin,this.lengthMax),this.applyRangeValidators(this.settings.get(G.minNumber),this.minNumberMin,this.minNumberMax),this.applyRangeValidators(this.settings.get(G.minSpecial),this.minSpecialMin,this.minSpecialMax),this.settings.patchValue(e,{emitEvent:!1})}),this.generatorService.policy$(I.qG.password,{account$:this.account$}).pipe((0,h.Q)(this.destroyed$)).subscribe(({constraints:e})=>{var t,i,n,r,s,o,a,l,c,d,u;this.policyInEffect=null!==(t=e.policyInEffect)&&void 0!==t&&t;const h=[[G.length,(0,w.jo)(null===(i=e.length)||void 0===i?void 0:i.min,null===(n=e.length)||void 0===n?void 0:n.max)],[G.uppercase,!(null===(r=e.uppercase)||void 0===r?void 0:r.readonly)],[G.lowercase,!(null===(s=e.lowercase)||void 0===s?void 0:s.readonly)],[G.number,!(null===(o=e.number)||void 0===o?void 0:o.readonly)],[G.special,!(null===(a=e.special)||void 0===a?void 0:a.readonly)],[G.minNumber,(0,w.jo)(null===(l=e.minNumber)||void 0===l?void 0:l.min,null===(c=e.minNumber)||void 0===c?void 0:c.max)],[G.minSpecial,(0,w.jo)(null===(d=e.minSpecial)||void 0===d?void 0:d.min,null===(u=e.minSpecial)||void 0===u?void 0:u.max)]];for(const[A,p]of h)this.toggleEnabled(A,p)});let t=1;this.numbers.valueChanges.pipe((0,c.p)(e=>{var t;return!(e&&(null!==(t=this.minNumber.value)&&void 0!==t?t:0)>0)}),(0,d.T)(e=>e?t:0),(0,h.Q)(this.destroyed$)).subscribe(e=>this.minNumber.setValue(e,{emitEvent:!1})),this.minNumber.valueChanges.pipe((0,d.T)(e=>[e,(null!=e?e:0)>0]),(0,A.M)(([e,i])=>t=i&&e?e:t),(0,h.Q)(this.destroyed$)).subscribe(([,e])=>this.numbers.setValue(e,{emitEvent:!1}));let i=1;this.special.valueChanges.pipe((0,c.p)(e=>{var t;return!(e&&(null!==(t=this.minSpecial.value)&&void 0!==t?t:0)>0)}),(0,d.T)(e=>e?i:0),(0,h.Q)(this.destroyed$)).subscribe(e=>this.minSpecial.setValue(e,{emitEvent:!1})),this.minSpecial.valueChanges.pipe((0,d.T)(e=>[e,(null!=e?e:0)>0]),(0,A.M)(([e,t])=>i=t&&e?e:i),(0,h.Q)(this.destroyed$)).subscribe(([,e])=>this.special.setValue(e,{emitEvent:!1})),e.pipe((0,u.i)(1),(0,h.Q)(this.destroyed$)).subscribe(this.onUpdated),this.saveSettings.pipe((0,p.E)(this.settings.valueChanges),(0,d.T)(([,e])=>{const t=Object.assign({},e);return t.ambiguous=!t.avoidAmbiguous,delete t.avoidAmbiguous,t}),(0,h.Q)(this.destroyed$)).subscribe(e)})}save(e="component api call"){this.saveSettings.next(e)}applyRangeValidators(e,t,i){const n=[];null!==t&&n.push(o.k0.min(t)),null!==i&&n.push(o.k0.max(i)),e.setValidators(n),e.updateValueAndValidity({emitEvent:!1})}toggleEnabled(e,t){var i,n;t?null===(i=this.settings.get(e))||void 0===i||i.enable({emitEvent:!1}):null===(n=this.settings.get(e))||void 0===n||n.disable({emitEvent:!1})}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}U.ɵfac=function(e){return new(e||U)(B.rXU(o.ok),B.rXU(I.iE),B.rXU(E.W))},U.ɵcmp=B.VBU({type:U,selectors:[["tools-password-settings"]],inputs:{account:"account",showHeader:"showHeader",waitMs:"waitMs",disableMargin:[2,"disableMargin","disableMargin",n.he]},outputs:{onUpdated:"onUpdated"},features:[B.OA$],decls:66,vars:67,consts:[[3,"disableMargin"],[1,"tw-container",3,"formGroup"],[1,"tw-mb-4"],["disableMargin",""],["bitInput","","formControlName","length","type","number",3,"change","min","max"],[1,"tw-mb-4","tw-flex","tw-flex-wrap","tw-gap-4","sm:tw-gap-8"],[1,"!tw-mb-0",3,"title"],["bitCheckbox","","type","checkbox","formControlName","uppercase",3,"change"],["bitCheckbox","","type","checkbox","formControlName","lowercase",3,"change"],["bitCheckbox","","type","checkbox","formControlName","number",3,"change"],["bitCheckbox","","type","checkbox","formControlName","special",3,"change"],["aria-hidden","true"],[1,"tw-sr-only"],[1,"tw-flex"],[1,"tw-w-full","tw-basis-1/2","tw-mr-4"],["bitInput","","type","number","formControlName","minNumber",3,"change","min","max"],[1,"tw-w-full","tw-basis-1/2"],["bitInput","","type","number","formControlName","minSpecial",3,"change","min","max"],["bitCheckbox","","type","checkbox","formControlName","avoidAmbiguous",3,"change"],["bitTypography","helper"],["bitTypography","h6"]],template:function(e,t){1&e&&(B.j41(0,"bit-section",0),B.nVh(1,x,4,3,"bit-section-header"),B.j41(2,"form",1)(3,"div",2)(4,"bit-card")(5,"bit-form-field",3)(6,"bit-label"),B.EFF(7),B.nI1(8,"i18n"),B.k0s(),B.j41(9,"input",4),B.bIt("change",function(){return t.save("length")}),B.k0s(),B.j41(10,"bit-hint"),B.EFF(11),B.nI1(12,"async"),B.k0s()()()(),B.j41(13,"div")(14,"bit-card")(15,"div",2),B.EFF(16),B.nI1(17,"i18n"),B.k0s(),B.j41(18,"div",5)(19,"bit-form-control",6),B.nI1(20,"i18n"),B.nI1(21,"i18n"),B.j41(22,"input",7),B.bIt("change",function(){return t.save("uppercase")}),B.k0s(),B.j41(23,"bit-label"),B.EFF(24),B.nI1(25,"i18n"),B.k0s()(),B.j41(26,"bit-form-control",6),B.nI1(27,"i18n"),B.nI1(28,"i18n"),B.j41(29,"input",8),B.bIt("change",function(){return t.save("lowercase")}),B.k0s(),B.j41(30,"bit-label"),B.EFF(31),B.nI1(32,"i18n"),B.k0s()(),B.j41(33,"bit-form-control",6),B.nI1(34,"i18n"),B.nI1(35,"i18n"),B.j41(36,"input",9),B.bIt("change",function(){return t.save("number")}),B.k0s(),B.j41(37,"bit-label"),B.EFF(38),B.nI1(39,"i18n"),B.k0s()(),B.j41(40,"bit-form-control",6),B.nI1(41,"i18n"),B.j41(42,"input",10),B.bIt("change",function(){return t.save("special")}),B.k0s(),B.j41(43,"bit-label")(44,"span",11),B.EFF(45),B.k0s(),B.j41(46,"span",12),B.EFF(47),B.nI1(48,"i18n"),B.k0s()()()(),B.j41(49,"div",13)(50,"bit-form-field",14)(51,"bit-label"),B.EFF(52),B.nI1(53,"i18n"),B.k0s(),B.j41(54,"input",15),B.bIt("change",function(){return t.save("minNumbers")}),B.k0s()(),B.j41(55,"bit-form-field",16)(56,"bit-label"),B.EFF(57),B.nI1(58,"i18n"),B.k0s(),B.j41(59,"input",17),B.bIt("change",function(){return t.save("minSpecial")}),B.k0s()()(),B.j41(60,"bit-form-control",0)(61,"input",18),B.bIt("change",function(){return t.save("avoidAmbiguous")}),B.k0s(),B.j41(62,"bit-label"),B.EFF(63),B.nI1(64,"i18n"),B.k0s()(),B.nVh(65,V,3,3,"p",19),B.k0s()()()()),2&e&&(B.Y8G("disableMargin",t.disableMargin),B.R7$(),B.vxM(t.showHeader?1:-1),B.R7$(),B.Y8G("formGroup",t.settings),B.R7$(5),B.JRh(B.bMT(8,33,"length")),B.R7$(2),B.Y8G("min",t.lengthMin)("max",t.lengthMax),B.R7$(2),B.JRh(B.bMT(12,35,t.lengthBoundariesHint$)),B.R7$(5),B.JRh(B.bMT(17,37,"include")),B.R7$(3),B.Y8G("title",B.mNQ(B.bMT(20,39,"uppercaseDescription"))),B.BMQ("aria-description",B.bMT(21,41,"uppercaseDescription")),B.R7$(5),B.JRh(B.bMT(25,43,"uppercaseLabel")),B.R7$(2),B.Y8G("title",B.mNQ(B.bMT(27,45,"lowercaseDescription"))),B.BMQ("aria-description",B.bMT(28,47,"lowercaseDescription")),B.R7$(5),B.JRh(B.bMT(32,49,"lowercaseLabel")),B.R7$(2),B.Y8G("title",B.mNQ(B.bMT(34,51,"numbersDescription"))),B.BMQ("aria-description",B.bMT(35,53,"numbersDescription")),B.R7$(5),B.JRh(B.bMT(39,55,"numbersLabel")),B.R7$(2),B.Y8G("title",B.mNQ(B.bMT(41,57,"specialCharactersDescription"))),B.R7$(5),B.JRh("!@#$%^&*"),B.R7$(2),B.SpI(" ",B.bMT(48,59,"specialCharactersDescription")," "),B.R7$(5),B.JRh(B.bMT(53,61,"minNumbers")),B.R7$(2),B.Y8G("min",t.minNumberMin)("max",t.minNumberMax),B.R7$(3),B.JRh(B.bMT(58,63,"minSpecial")),B.R7$(2),B.Y8G("min",t.minSpecialMin)("max",t.minSpecialMax),B.R7$(),B.Y8G("disableMargin",!t.policyInEffect),B.R7$(3),B.JRh(B.bMT(64,65,"avoidAmbiguous")),B.R7$(2),B.vxM(t.policyInEffect?65:-1))},dependencies:[v.n,b.U,m.E,S.r,o.X1,o.qT,o.me,o.Q0,o.Zm,o.BC,o.cb,o.VZ,o.zX,o.j4,o.JD,C.i,f.L,Q.f,k.j,R.I,F.J,T.h,y.q,D.P,g.p,r.Jj,P.$],encapsulation:2})},13642(e,t,i){"use strict";i.d(t,{z:()=>b});var n=i(11217),r=i(84210),s=i(87806),o=i(39250),a=i(69783),l=i(78950),c=i(29236),d=i(39722),u=i(94735),h=i(26411),A=i(23544),p=i(14041),g=i(86226),v=i(19934),m=i(43759),f=i(25740),y=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class b{constructor(e,t){this.formBuilder=e,this.generatorService=t,this.account=null,this.account$=new o.m(1),this.onUpdated=new n.bkB,this.settings=this.formBuilder.group({subaddressEmail:[""]}),this.saveSettings=new s.B,this.destroyed$=new s.B}ngOnChanges(e){return y(this,void 0,void 0,function*(){"account"in e&&e.account&&this.account$.next(this.account)})}ngOnInit(){return y(this,void 0,void 0,function*(){const e=yield this.generatorService.settings(A.qG.plusAddress,{account$:this.account$});e.pipe((0,c.Q)(this.destroyed$)).subscribe(e=>{this.settings.patchValue(e,{emitEvent:!1})}),e.pipe((0,l.i)(1),(0,c.Q)(this.destroyed$)).subscribe(this.onUpdated),this.saveSettings.pipe((0,d.E)(this.settings.valueChanges),(0,a.T)(([,e])=>e),(0,c.Q)(this.destroyed$)).subscribe(e)})}save(e="component api call"){this.saveSettings.next(e)}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}b.ɵfac=function(e){return new(e||b)(p.rXU(r.ok),p.rXU(A.iE))},b.ɵcmp=p.VBU({type:b,selectors:[["tools-subaddress-settings"]],inputs:{account:"account"},outputs:{onUpdated:"onUpdated"},features:[p.OA$],decls:6,vars:4,consts:[[1,"tw-container",3,"formGroup"],["bitInput","","formControlName","subaddressEmail","type","text",3,"change"]],template:function(e,t){1&e&&(p.j41(0,"form",0)(1,"bit-form-field")(2,"bit-label"),p.EFF(3),p.nI1(4,"i18n"),p.k0s(),p.j41(5,"input",1),p.bIt("change",function(){return t.save("subaddressEmail")}),p.k0s()()()),2&e&&(p.Y8G("formGroup",t.settings),p.R7$(3),p.JRh(p.bMT(4,2,"email")))},dependencies:[r.X1,r.qT,r.me,r.BC,r.cb,r.j4,r.JD,h.L,g.j,v.J,m.h,u.p,f.$],encapsulation:2})},99327(e,t,i){"use strict";i.d(t,{d:()=>se});var n=i(14340),r=i(46758),s=i(11217),o=i(84210),a=i(87806),l=i(67789),c=i(39250),d=i(68108),u=i(72135),h=i(4958),A=i(54291),p=i(16385),g=i(68711),v=i(69783),m=i(29236),f=i(35284),y=i(39722),b=i(94735),C=i(56962),I=i(20136),w=i(25024),B=i(88832),E=i(75583),S=i(26411),Q=i(14318),k=i(27520),R=i(36288),F=i(58950),T=i(33886),D=i(23544),P=i(192),M=i(8245),x=i(23979),V=i(13642),G=i(58503),U=i(18030),O=i(14041),N=i(69855),j=i(50700),Y=i(35500),X=i(70352),z=i(58806),L=i(86226),W=i(93199),K=i(43759),Z=i(25740),H=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const J=e=>({"tw-mb-4":e});function q(e,t){if(1&e&&(O.j41(0,"bit-hint"),O.EFF(1),O.nI1(2,"async"),O.k0s()),2&e){const e=O.XpG();O.R7$(),O.JRh(O.bMT(2,1,e.credentialTypeHint$))}}function $(e,t){if(1&e&&(O.j41(0,"form",9)(1,"bit-form-field")(2,"bit-label"),O.EFF(3),O.nI1(4,"i18n"),O.k0s(),O.nrm(5,"bit-select",13),O.nI1(6,"async"),O.k0s()()),2&e){const e=O.XpG();O.Y8G("formGroup",e.forwarder),O.R7$(3),O.JRh(O.bMT(4,3,"service")),O.R7$(2),O.Y8G("items",O.bMT(6,5,e.forwarderOptions$))}}function _(e,t){if(1&e){const e=O.RV6();O.j41(0,"tools-catchall-settings",14),O.bIt("onUpdated",function(){s.eBV(e);const t=O.XpG();return s.Njj(t.generate("catchall settings"))}),O.k0s()}if(2&e){O.XpG();const e=O.r8f(37);O.Y8G("account",e)}}function ee(e,t){if(1&e&&O.nrm(0,"tools-forwarder-settings",12),2&e){O.XpG();const e=O.r8f(37);O.Y8G("forwarder",t)("account",e)}}function te(e,t){if(1&e){const e=O.RV6();O.j41(0,"tools-subaddress-settings",14),O.bIt("onUpdated",function(){s.eBV(e);const t=O.XpG();return s.Njj(t.generate("subaddress settings"))}),O.k0s()}if(2&e){O.XpG();const e=O.r8f(37);O.Y8G("account",e)}}function ie(e,t){if(1&e){const e=O.RV6();O.j41(0,"tools-username-settings",14),O.bIt("onUpdated",function(){s.eBV(e);const t=O.XpG();return s.Njj(t.generate("username settings"))}),O.k0s()}if(2&e){O.XpG();const e=O.r8f(37);O.Y8G("account",e)}}const ne="forwarder",re="none";class se{constructor(e,t,i,n,r,o,d,u,h){this.generatorService=e,this.generatorHistoryService=t,this.toastService=i,this.logService=n,this.i18nService=r,this.accountService=o,this.zone=d,this.formBuilder=u,this.ariaLive=h,this.Algorithm=D.oG,this.account=null,this.account$=new c.m(1),this.debug=!1,this.log=(0,I.S2)({}),this.website=null,this.onGenerated=new s.bkB,this.onAlgorithm=new s.bkB,this.disableMargin=!1,this.username=this.formBuilder.group({nav:[null]}),this.forwarder=this.formBuilder.group({nav:[null]}),this.typeOptions$=new l.t([]),this.forwarderId$=new l.t(null),this.forwarderOptions$=new l.t([]),this.showForwarder$=new l.t(!1),this.maybeAlgorithm$=new c.m(1),this.algorithm$=this.maybeAlgorithm$.pipe((0,g.p)(e=>!!e)),this.credentialTypeHint$=new c.m(1),this.generatedCredential$=new l.t(void 0),this.value$=this.generatedCredential$.pipe((0,v.T)(e=>{var t;return null!==(t=null==e?void 0:e.credential)&&void 0!==t?t:"-"})),this.generate$=new a.B,this.showAlgorithm$=this.maybeAlgorithm$.pipe((0,A.v)(this.showForwarder$),(0,v.T)(([e,t])=>t?null:e)),this.credentialTypeCopyLabel$=this.algorithm$.pipe((0,v.T)(({i18nKeys:{copyCredential:e}})=>(0,U.Tl)(e,this.i18nService))),this.credentialTypeGenerateLabel$=this.algorithm$.pipe((0,v.T)(({i18nKeys:{generateCredential:e}})=>(0,U.Tl)(e,this.i18nService))),this.credentialTypeLabel$=this.algorithm$.pipe((0,v.T)(({i18nKeys:{credentialType:e}})=>(0,U.Tl)(e,this.i18nService))),this.USER_REQUEST="user request",this.destroyed=new a.B}ngOnChanges(e){return H(this,void 0,void 0,function*(){var t,i;const n=null==e?void 0:e.account;n&&n.currentValue.id&&n.previousValue.id!==n.currentValue.id&&(this.log.debug({previousUserId:null===(t=null==n?void 0:n.previousValue)||void 0===t?void 0:t.id,currentUserId:null===(i=null==n?void 0:n.currentValue)||void 0===i?void 0:i.id},"account input change detected"),this.account$.next(n.currentValue.id))})}ngOnInit(){return H(this,void 0,void 0,function*(){if(this.log=(0,I.mJ)(this.debug,this.logService,{type:"UsernameGeneratorComponent"}),!this.account){const e=yield(0,d._)(this.accountService.activeAccount$);e||this.log.panic("active account cannot be `null`."),this.log.info({userId:e.id},"account not specified; using active account settings"),this.account$.next(e)}(0,u.z)([this.generatorService.algorithms$("email",{account$:this.account$}),this.generatorService.algorithms$("username",{account$:this.account$})]).pipe((0,v.T)(e=>e.flat()),(0,v.T)(e=>{const t=e.filter(e=>!(0,D.$S)(e.id));t.sort((e,t)=>e.weight-t.weight);const i=this.toOptions(t);i.splice(-1,0,{value:ne,label:this.i18nService.t("forwardedEmail")});const n=e.filter(e=>(0,D.$S)(e.id));n.sort((e,t)=>e.weight-t.weight);const r=this.toOptions(n);return r.unshift({value:re,label:this.i18nService.t("select")}),[i,r]}),(0,f.M)(e=>this.log.debug({algorithms:e},"algorithms loaded")),(0,m.Q)(this.destroyed)).subscribe(([e,t])=>{this.zone.run(()=>{this.typeOptions$.next(e),this.forwarderOptions$.next(t)})}),this.maybeAlgorithm$.pipe((0,v.T)(e=>{var t;return(null===(t=null==e?void 0:e.i18nKeys)||void 0===t?void 0:t.description)?(0,U.Tl)(e.i18nKeys.description,this.i18nService):""}),(0,m.Q)(this.destroyed)).subscribe(e=>{this.zone.run(()=>{this.credentialTypeHint$.next(e)})}),this.generatorService.generate$({on$:this.generate$,account$:this.account$}).pipe((0,h.W)((e,t)=>("string"==typeof e?this.toastService.showToast({message:e,variant:"error",title:""}):this.logService.error(e),t)),(0,y.E)(this.account$,this.maybeAlgorithm$),(0,m.Q)(this.destroyed)).subscribe(([e,t,i])=>{var n,r;this.log.debug({source:null!==(n=e.source)&&void 0!==n?n:null,algorithm:null!==(r=null==i?void 0:i.id)&&void 0!==r?r:null},"credential generated"),this.generatorHistoryService.track(t.id,e.credential,e.category,e.generationDate).catch(e=>{this.logService.error(e)}),this.zone.run(()=>{i&&e.source===this.USER_REQUEST&&this.announce((0,U.Tl)(i.i18nKeys.credentialGenerated,this.i18nService)),this.generatedCredential$.next(e),this.onGenerated.next(e)})});const e=new a.B,t=new a.B;this.username.valueChanges.pipe((0,v.T)(e=>{if(e.nav===ne)return{nav:e.nav};if(e.nav)return{nav:e.nav,algorithm:JSON.parse(e.nav)};{const[e]=D.I4[D.ZU.username];return{nav:JSON.stringify(e),algorithm:e}}}),(0,m.Q)(this.destroyed)).subscribe(e),this.forwarder.valueChanges.pipe((0,v.T)(e=>e.nav===re?{nav:e.nav}:e.nav?{nav:e.nav,algorithm:JSON.parse(e.nav)}:{nav:re}),(0,m.Q)(this.destroyed)).subscribe(t),(0,u.z)([e,t]).pipe((0,v.T)(([e,t])=>{const i=!e.algorithm;return[i,i&&t.algorithm&&(0,D.$S)(t.algorithm)?t.algorithm.forwarder:null]}),(0,p.F)((e,t)=>e[0]===t[0]&&e[1]===t[1]),(0,m.Q)(this.destroyed)).subscribe(([e,t])=>{this.log.debug({forwarderId:t,showForwarder:e},"forwarder visibility updated"),this.zone.run(()=>{this.showForwarder$.next(e),this.forwarderId$.next(t)})}),(0,u.z)([e,t]).pipe((0,v.T)(([e,t])=>{var i;const n=null!==(i=e.algorithm)&&void 0!==i?i:t.algorithm;return n?this.generatorService.algorithm(n):null}),(0,p.F)((e,t)=>null!==e&&null!==t&&(0,D.W0)(e.id,t.id)),(0,m.Q)(this.destroyed)).subscribe(e=>{var t;this.log.debug({algorithm:null!==(t=null==e?void 0:e.id)&&void 0!==t?t:null},"algorithm selected"),this.zone.run(()=>{this.maybeAlgorithm$.next(e),e?this.onAlgorithm.next((0,U.VI)(e,this.i18nService)):this.onAlgorithm.next(null)})});const i=yield this.generatorService.preferences({account$:this.account$});this.algorithm$.pipe((0,y.E)(i),(0,m.Q)(this.destroyed)).subscribe(([e,t])=>{if((0,D.MP)(e.id))t.email.algorithm=e.id,t.email.updated=new Date;else{if(!(0,D.yJ)(e.id))return;t.username.algorithm=e.id,t.username.updated=new Date}this.log.info({algorithm:e.id,type:e.type},"algorithm preferences updated"),i.next(t)}),i.pipe((0,v.T)(({email:e,username:t})=>{const i=e.updated>t.updated?e:t,n=(0,D.$S)(i.algorithm)?i:null,r=n?JSON.stringify(n.algorithm):re,s=n?ne:JSON.stringify(i.algorithm);return{username:{selection:{nav:s},active:{nav:s,algorithm:n?void 0:i.algorithm}},forwarder:{selection:{nav:r},active:{nav:r,algorithm:null==n?void 0:n.algorithm}}}}),(0,m.Q)(this.destroyed)).subscribe(({username:i,forwarder:n})=>{this.log.debug({username:i.selection,forwarder:n.selection},"navigation updated"),this.username.setValue(i.selection,{emitEvent:!1}),this.forwarder.setValue(n.selection,{emitEvent:!1}),e.next(i.active),t.next(n.active)}),this.maybeAlgorithm$.pipe((0,m.Q)(this.destroyed)).subscribe(e=>{this.zone.run(()=>{var t;(null===(t=null==e?void 0:e.capabilities)||void 0===t?void 0:t.autogenerate)?(this.log.debug("autogeneration enabled"),this.generate("autogenerate").catch(e=>{this.log.error(e,"a failure occurred during autogeneration")})):(this.log.debug("autogeneration disabled; clearing generated credential"),this.generatedCredential$.next(void 0))})}),this.log.debug("component initialized")})}announce(e){this.ariaLive.announce(e).catch(e=>this.logService.error(e))}generate(e){return H(this,void 0,void 0,function*(){const t=yield(0,d._)(this.algorithm$),i={source:e,algorithm:t.id};this.website&&(i.website=this.website),this.log.debug(i,"generation requested"),this.generate$.next(i)})}toOptions(e){return e.map(e=>({value:JSON.stringify(e.id),label:(0,U.Tl)(e.i18nKeys.name,this.i18nService)}))}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this.generate$.complete(),this.generatedCredential$.complete(),this.onGenerated.complete(),this.log.debug("component destroyed")}}se.ɵfac=function(e){return new(e||se)(O.rXU(D.iE),O.rXU(P.ZS),O.rXU(N.f),O.rXU(C.K),O.rXU(j.W),O.rXU(Y.D),O.rXU(s.SKi),O.rXU(o.ok),O.rXU(X.Ai))},se.ɵcmp=O.VBU({type:se,selectors:[["tools-username-generator"]],inputs:{account:"account",debug:"debug",website:"website",disableMargin:[2,"disableMargin","disableMargin",n.he]},outputs:{onGenerated:"onGenerated",onAlgorithm:"onAlgorithm"},features:[O.OA$],decls:44,vars:58,consts:[[1,"tw-flex","tw-justify-between","tw-mb-4"],[1,"tw-grow","tw-flex","tw-items-center"],[1,"tw-font-mono",3,"password"],[1,"tw-flex","tw-items-center","tw-space-x-1"],["type","button","bitIconButton","bwi-generate","buttonType","primaryGhost",3,"click","label","disabled"],["type","button","bitIconButton","bwi-clone","buttonType","primaryGhost","showToast","",3,"label","appCopyClick","valueLabel","disabled"],[3,"disableMargin"],["bitTypography","h6"],[3,"ngClass"],[1,"tw-container",3,"formGroup"],["formControlName","nav","data-testid","username-type",3,"items"],[3,"account"],[3,"forwarder","account"],["formControlName","nav","data-testid","email-forwarding-service",3,"items"],[3,"onUpdated","account"]],template:function(e,t){if(1&e&&(O.j41(0,"bit-card",0)(1,"div",1),O.nrm(2,"bit-color-password",2),O.nI1(3,"async"),O.k0s(),O.j41(4,"div",3)(5,"button",4),O.nI1(6,"async"),O.nI1(7,"async"),O.bIt("click",function(){return t.generate(t.USER_REQUEST)}),O.EFF(8),O.nI1(9,"async"),O.k0s(),O.j41(10,"button",5),O.nI1(11,"async"),O.nI1(12,"async"),O.nI1(13,"async"),O.nI1(14,"async"),O.EFF(15),O.nI1(16,"async"),O.k0s()()(),O.j41(17,"bit-section",6)(18,"bit-section-header")(19,"h2",7),O.EFF(20),O.nI1(21,"i18n"),O.k0s()(),O.j41(22,"div",8)(23,"bit-card")(24,"form",9)(25,"bit-form-field")(26,"bit-label"),O.EFF(27),O.nI1(28,"i18n"),O.k0s(),O.nrm(29,"bit-select",10),O.nI1(30,"async"),O.nVh(31,q,3,3,"bit-hint"),O.nI1(32,"async"),O.k0s()(),O.nVh(33,$,7,7,"form",9),O.nI1(34,"async"),O.SS7(35),O.nI1(36,"async"),O.SS7(37),O.nI1(38,"async"),O.nVh(39,_,1,1,"tools-catchall-settings",11),O.nVh(40,ee,1,2,"tools-forwarder-settings",12),O.nI1(41,"async"),O.nVh(42,te,1,1,"tools-subaddress-settings",11),O.nVh(43,ie,1,1,"tools-username-settings",11),O.k0s()()()),2&e){let e;O.R7$(2),O.Y8G("password",O.bMT(3,21,t.value$)),O.R7$(3),O.Y8G("label",O.bMT(6,23,t.credentialTypeGenerateLabel$))("disabled",!O.bMT(7,25,t.algorithm$)),O.R7$(3),O.SpI(" ",O.bMT(9,27,t.credentialTypeGenerateLabel$)," "),O.R7$(2),O.Y8G("label",O.bMT(11,29,t.credentialTypeCopyLabel$))("appCopyClick",O.bMT(12,31,t.value$))("valueLabel",O.bMT(13,33,t.credentialTypeLabel$))("disabled",!O.bMT(14,35,t.algorithm$)),O.R7$(5),O.SpI(" ",O.bMT(16,37,t.credentialTypeCopyLabel$)," "),O.R7$(2),O.Y8G("disableMargin",t.disableMargin),O.R7$(3),O.JRh(O.bMT(21,39,"options")),O.R7$(2),O.Y8G("ngClass",O.eq3(56,J,!t.disableMargin)),O.R7$(2),O.Y8G("formGroup",t.username),O.R7$(3),O.JRh(O.bMT(28,41,"type")),O.R7$(2),O.Y8G("items",O.bMT(30,43,t.typeOptions$)),O.R7$(2),O.vxM(O.bMT(32,45,t.credentialTypeHint$)?31:-1),O.R7$(2),O.vxM(O.bMT(34,47,t.showForwarder$)?33:-1);const i=O.bMT(36,49,t.showAlgorithm$);O.R7$(4),O.bH3(O.bMT(38,51,t.account$)),O.R7$(2),O.vxM((null==i?null:i.id)===t.Algorithm.catchall?39:-1),O.R7$(),O.vxM((e=O.bMT(41,54,t.forwarderId$))?40:-1,e),O.R7$(2),O.vxM((null==i?null:i.id)===t.Algorithm.plusAddress?42:-1),O.R7$(),O.vxM((null==i?null:i.id)===t.Algorithm.username?43:-1)}},dependencies:[Q.i,k.S,R.s,w.D,B.n,F.U,E.E,z.r,r.YU,o.X1,o.qT,o.BC,o.cb,o.j4,o.JD,T.w,S.L,L.j,W.I,K.h,M.b,x.h,V.z,G.b,b.p,r.Jj,Z.$],encapsulation:2})},58503(e,t,i){"use strict";i.d(t,{b:()=>C});var n=i(11217),r=i(84210),s=i(87806),o=i(39250),a=i(69783),l=i(78950),c=i(29236),d=i(39722),u=i(94735),h=i(26411),A=i(47135),p=i(23544),g=i(14041),v=i(90246),m=i(86226),f=i(50352),y=i(25740),b=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class C{constructor(e,t){this.formBuilder=e,this.generatorService=t,this.account=null,this.account$=new o.m(1),this.onUpdated=new n.bkB,this.settings=this.formBuilder.group({wordCapitalize:[!1],wordIncludeNumber:[!1]}),this.saveSettings=new s.B,this.destroyed$=new s.B}ngOnChanges(e){return b(this,void 0,void 0,function*(){"account"in e&&this.account$.next(this.account)})}ngOnInit(){return b(this,void 0,void 0,function*(){const e=yield this.generatorService.settings(p.qG.effWordList,{account$:this.account$});e.pipe((0,c.Q)(this.destroyed$)).subscribe(e=>{this.settings.patchValue(e,{emitEvent:!1})}),e.pipe((0,l.i)(1),(0,c.Q)(this.destroyed$)).subscribe(this.onUpdated),this.saveSettings.pipe((0,d.E)(this.settings.valueChanges),(0,a.T)(([,e])=>e),(0,c.Q)(this.destroyed$)).subscribe(e)})}save(e="component api call"){this.saveSettings.next(e)}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}C.ɵfac=function(e){return new(e||C)(g.rXU(r.ok),g.rXU(p.iE))},C.ɵcmp=g.VBU({type:C,selectors:[["tools-username-settings"]],inputs:{account:"account"},outputs:{onUpdated:"onUpdated"},features:[g.OA$],decls:11,vars:7,consts:[[1,"tw-container",3,"formGroup"],["bitCheckbox","","formControlName","wordCapitalize","type","checkbox",3,"change"],["bitCheckbox","","formControlName","wordIncludeNumber","type","checkbox",3,"change"]],template:function(e,t){1&e&&(g.j41(0,"form",0)(1,"bit-form-control")(2,"input",1),g.bIt("change",function(){return t.save("wordCapitalize")}),g.k0s(),g.j41(3,"bit-label"),g.EFF(4),g.nI1(5,"i18n"),g.k0s()(),g.j41(6,"bit-form-control")(7,"input",2),g.bIt("change",function(){return t.save("wordIncludeNumber")}),g.k0s(),g.j41(8,"bit-label"),g.EFF(9),g.nI1(10,"i18n"),g.k0s()()()),2&e&&(g.Y8G("formGroup",t.settings),g.R7$(4),g.JRh(g.bMT(5,3,"capitalize")),g.R7$(5),g.JRh(g.bMT(10,5,"includeNumber")))},dependencies:[r.X1,r.qT,r.Zm,r.BC,r.cb,r.j4,r.JD,h.L,v.f,m.j,A.q,f.P,u.p,y.$],encapsulation:2})},18030(e,t,i){"use strict";i.d(t,{Tl:()=>s,VI:()=>r,jo:()=>o});var n=i(78991);function r(e,t){const i={id:e.id,type:e.type,name:s(e.i18nKeys.name,t),generate:s(e.i18nKeys.generateCredential,t),onGeneratedMessage:s(e.i18nKeys.credentialGenerated,t),credentialType:s(e.i18nKeys.credentialType,t),copy:s(e.i18nKeys.copyCredential,t),useGeneratedValue:s(e.i18nKeys.useCredential,t),onlyOnRequest:!e.capabilities.autogenerate,request:e.capabilities.fields};return e.i18nKeys.description&&(i.description=s(e.i18nKeys.description,t)),i}function s(e,t){return(0,n._g)(e)?t.t(e):e.literal}function o(e,t){return(null!=e?e:0)<(null!=t?t:Number.POSITIVE_INFINITY)}},23544(e,t,i){"use strict";i.d(t,{oG:()=>$,I4:()=>pt,qG:()=>At,iE:()=>a,PG:()=>Xt,IQ:()=>L,WV:()=>ee,ZU:()=>_,WX:()=>zt,Hi:()=>n,MP:()=>ut,$S:()=>dt,xu:()=>lt,W0:()=>ht,yJ:()=>ct,r5:()=>r,$p:()=>s,Wy:()=>o});var n={};i.r(n),i.d(n,{Lq:()=>Ae,Mt:()=>he,sF:()=>re,Zx:()=>Ce,zT:()=>we,AB:()=>J,QS:()=>Ee});var r={};i.r(r),i.d(r,{i:()=>Qt,O:()=>Ft});var s={};i.r(s),i.d(s,{P:()=>Xt,q:()=>Pt});var o={};i.r(o),i.d(o,{B:()=>Ai,KQ:()=>fi,ji:()=>ii,jK:()=>ci,gb:()=>ui,Vm:()=>gi});class a{}const l=Object.freeze({catchallType:"random",catchallDomain:"",website:null});const c=function(){const e=Object.freeze({min:3,max:20});return Object.freeze({numWords:e})}();const d=function(){const e=Object.freeze({min:5,max:128}),t=Object.freeze({min:0,max:9}),i=Object.freeze({min:0,max:9});return Object.freeze({length:e,minDigits:t,minSpecialCharacters:i})}(),u=Object.freeze({wordCapitalize:!1,wordIncludeNumber:!1,website:null}),h=Object.freeze({numWords:6,wordSeparator:"-",capitalize:!1,includeNumber:!1}),A=Object.freeze({length:14,minLength:d.length.min,ambiguous:!0,uppercase:!0,minUppercase:1,lowercase:!0,minLowercase:1,number:!0,minNumber:1,special:!1,minSpecial:0}),p=Object.freeze({subaddressType:"random",subaddressEmail:"",website:null});var g=i(31857),v=i(19638),m=i(48312);class f{constructor(e){this.keys=e}classify(e){const t=JSON.parse(JSON.stringify(e)),i={};for(const n of this.keys)i[n]=t[n];return{disclosed:i,secret:null}}declassify(e,t){const i={};for(const n of this.keys)i[n]=e[n];return i}}var y=i(4132);const b=Object.freeze({token:"",domain:"",baseUrl:""}),C=Object.freeze({url:(e,t)=>t.baseUrl()+"/api/v1/aliases",body:(e,t)=>({domain:t.emailDomain(),description:t.generatedBy(e,{extractHostname:!0,maxLength:200})}),hasJsonPayload:e=>200===e.status||201===e.status,processJson(e){var t;return[null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.email]}}),I=Object.freeze({defaultSettings:b,createForwardingEmail:C,request:["token","baseUrl","domain"],settingsConstraints:{token:{required:!0},domain:{required:!0},baseUrl:{}},local:{settings:{key:"addyIoForwarder",target:"object",format:"secret-state",frame:512,classifier:new m.r,state:g.qd,initial:b,options:{deserializer:e=>e,clearOn:["logout"]}},import:{key:"forwarder.AddyIo.local.import",target:"object",format:"plain",classifier:new f(["token","baseUrl","domain"]),state:g.kj,options:{deserializer:e=>e,clearOn:["logout","lock"]}}},settings:new g.Ok(g.qd,"addyIoForwarder",{deserializer:e=>e,clearOn:[]}),importBuffer:new y.A(g.qd,"addyIoBuffer",{deserializer:e=>e,clearOn:["logout"]})}),w=Object.freeze({id:v.N.addyio,name:"Addy.io",extends:["forwarder"],selfHost:"maybe",baseUrl:"https://app.addy.io",authenticate:(e,t)=>({Authorization:"Bearer "+t.authenticationToken()}),forwarder:I}),B=Object.freeze({token:""}),E=Object.freeze({url:(e,t)=>t.baseUrl()+"/email/addresses",body(e,t){},hasJsonPayload:e=>200===e.status||201===e.status,processJson:e=>[`${e.address}@duck.com`]}),S=Object.freeze({defaultSettings:B,createForwardingEmail:E,request:["token"],settingsConstraints:{token:{required:!0}},local:{settings:{key:"duckDuckGoForwarder",target:"object",format:"secret-state",frame:512,classifier:new m.r,state:g.qd,initial:B,options:{deserializer:e=>e,clearOn:["logout"]}},import:{key:"forwarder.DuckDuckGo.local.import",target:"object",format:"plain",classifier:new f(["token"]),state:g.kj,options:{deserializer:e=>e,clearOn:["logout","lock"]}}},settings:new g.Ok(g.qd,"duckDuckGoForwarder",{deserializer:e=>e,clearOn:[]}),importBuffer:new y.A(g.qd,"duckDuckGoBuffer",{deserializer:e=>e,clearOn:["logout"]})}),Q=Object.freeze({id:v.N.duckduckgo,name:"DuckDuckGo",baseUrl:"https://quack.duckduckgo.com/api",selfHost:"never",extends:["forwarder"],authenticate:(e,t)=>({Authorization:"Bearer "+t.authenticationToken()}),forwarder:S}),k=Object.freeze({domain:"",prefix:"",token:""}),R=Object.freeze({url:(e,t)=>t.baseUrl()+"/jmap/session",hasJsonPayload:e=>200===e.status,processJson(e,t){var i,n;const r=null!==(n=null===(i=e.primaryAccounts)||void 0===i?void 0:i["https://www.fastmail.com/dev/maskedemail"])&&void 0!==n?n:void 0;return[r,r?void 0:t.missingAccountIdCause()]}}),F=Object.freeze({url:(e,t)=>t.baseUrl()+"/jmap/api/",body:(e,t)=>({using:["https://www.fastmail.com/dev/maskedemail","urn:ietf:params:jmap:core"],methodCalls:[["MaskedEmail/set",{accountId:e.accountId,create:{"new-masked-email":{state:"enabled",description:"",forDomain:t.website(e),emailPrefix:""}}},"0"]]}),hasJsonPayload:e=>200===e.status,processJson(e){var t,i,n,r,s,o,a,l,c,d,u;if(null!=e.methodResponses&&e.methodResponses.length>0&&e.methodResponses[0].length>0)if("MaskedEmail/set"===e.methodResponses[0][0]){if(null!=(null===(i=null===(t=e.methodResponses[0][1])||void 0===t?void 0:t.created)||void 0===i?void 0:i["new-masked-email"])){return[null===(s=null===(r=null===(n=e.methodResponses[0][1])||void 0===n?void 0:n.created)||void 0===r?void 0:r["new-masked-email"])||void 0===s?void 0:s.email]}if(null!=(null===(a=null===(o=e.methodResponses[0][1])||void 0===o?void 0:o.notCreated)||void 0===a?void 0:a["new-masked-email"])){return[void 0,null===(d=null===(c=null===(l=e.methodResponses[0][1])||void 0===l?void 0:l.notCreated)||void 0===c?void 0:c["new-masked-email"])||void 0===d?void 0:d.description]}}else if("error"===e.methodResponses[0][0]){return[void 0,null===(u=e.methodResponses[0][1])||void 0===u?void 0:u.description]}}}),T=Object.freeze({defaultSettings:k,createForwardingEmail:F,getAccountId:R,request:["token"],settingsConstraints:{token:{required:!0},domain:{required:!0},prefix:{}},local:{settings:{key:"fastmailForwarder",target:"object",format:"secret-state",frame:512,classifier:new m.r,state:g.qd,initial:k,options:{deserializer:e=>e,clearOn:["logout"]}},import:{key:"forwarder.Fastmail.local.import",target:"object",format:"plain",classifier:new f(["token"]),state:g.kj,options:{deserializer:e=>e,clearOn:["logout","lock"]}}},settings:new g.Ok(g.qd,"fastmailForwarder",{deserializer:e=>e,clearOn:[]}),importBuffer:new y.A(g.qd,"fastmailBuffer",{deserializer:e=>e,clearOn:["logout"]})}),D=Object.freeze({id:v.N.fastmail,name:"Fastmail",baseUrl:"https://api.fastmail.com",selfHost:"maybe",extends:["forwarder"],authenticate:(e,t)=>({Authorization:"Bearer "+t.authenticationToken()}),forwarder:T}),P=Object.freeze({token:""}),M=Object.freeze({url:(e,t)=>t.baseUrl()+"/v1/relayaddresses/",body:(e,t)=>({enabled:!0,generated_for:t.website(e,{maxLength:255}),description:t.generatedBy(e,{extractHostname:!0,maxLength:64})}),hasJsonPayload:e=>200===e.status||201===e.status,processJson:e=>[e.full_address]}),x=Object.freeze({defaultSettings:P,createForwardingEmail:M,request:["token"],settingsConstraints:{token:{required:!0}},local:{settings:{key:"firefoxRelayForwarder",target:"object",format:"secret-state",frame:512,classifier:new m.r,state:g.qd,initial:P,options:{deserializer:e=>e,clearOn:["logout"]}},import:{key:"forwarder.Firefox.local.import",target:"object",format:"plain",classifier:new f(["token"]),state:g.kj,options:{deserializer:e=>e,clearOn:["logout","lock"]}}},settings:new g.Ok(g.qd,"firefoxRelayForwarder",{deserializer:e=>e,clearOn:[]}),importBuffer:new y.A(g.qd,"firefoxRelayBuffer",{deserializer:e=>e,clearOn:["logout"]})}),V=Object.freeze({id:v.N.mozilla,name:"Firefox Relay",baseUrl:"https://relay.firefox.com/api",selfHost:"never",extends:["forwarder"],authenticate:(e,t)=>({Authorization:"Token "+t.authenticationToken()}),forwarder:x}),G=Object.freeze({token:"",domain:""}),U=Object.freeze({url(e,t){const i=t.emailDomain();return t.baseUrl()+`/v1/domains/${i}/aliases`},body:(e,t)=>({labels:t.website(e),description:t.generatedBy(e)}),hasJsonPayload:e=>200===e.status||201===e.status,processJson(e,t){var i;const{name:n,domain:r}=e;return[`${n}@${null!==(i=null==r?void 0:r.name)&&void 0!==i?i:t.emailDomain()}`]}}),O=Object.freeze({defaultSettings:G,request:["token","domain"],settingsConstraints:{token:{required:!0},domain:{required:!0}},local:{settings:{key:"forwardEmailForwarder",target:"object",format:"secret-state",frame:512,classifier:new m.r,state:g.qd,initial:G,options:{deserializer:e=>e,clearOn:["logout"]}},import:{key:"forwarder.ForwardEmail.local.import",target:"object",format:"plain",classifier:new f(["token","domain"]),state:g.kj,options:{deserializer:e=>e,clearOn:["logout","lock"]}}},settings:new g.Ok(g.qd,"forwardEmailForwarder",{deserializer:e=>e,clearOn:[]}),importBuffer:new y.A(g.qd,"forwardEmailBuffer",{deserializer:e=>e,clearOn:["logout"]}),createForwardingEmail:U}),N=Object.freeze({id:v.N.forwardemail,name:"Forward Email",extends:["forwarder"],selfHost:"never",baseUrl:"https://api.forwardemail.net",authenticate:(e,t)=>({Authorization:"Basic "+t.authenticationToken({base64:!0,suffix:":"})}),forwarder:O}),j=Object.freeze({token:"",domain:"",baseUrl:""}),Y=Object.freeze({url(e,t){const i=t.baseUrl()+"/api/alias/random/new",n=t.website(e);return""!==n?`${i}?hostname=${n}`:i},body:(e,t)=>({note:t.generatedBy(e)}),hasJsonPayload:e=>200===e.status||201===e.status,processJson:e=>[null==e?void 0:e.alias]}),X=Object.freeze({defaultSettings:j,createForwardingEmail:Y,request:["token","baseUrl"],settingsConstraints:{token:{required:!0}},local:{settings:{key:"simpleLoginForwarder",target:"object",format:"secret-state",frame:512,classifier:new m.r,state:g.qd,initial:j,options:{deserializer:e=>e,clearOn:["logout"]}},import:{key:"forwarder.SimpleLogin.local.import",target:"object",format:"plain",classifier:new f(["token","baseUrl"]),state:g.kj,options:{deserializer:e=>e,clearOn:["logout","lock"]}}},settings:new g.Ok(g.qd,"simpleLoginForwarder",{deserializer:e=>e,clearOn:[]}),importBuffer:new y.A(g.qd,"simpleLoginBuffer",{deserializer:e=>e,clearOn:["logout"]})}),z=Object.freeze({id:v.N.simplelogin,name:"SimpleLogin",selfHost:"maybe",extends:["forwarder"],baseUrl:"https://app.simplelogin.io",authenticate:(e,t)=>({Authentication:t.authenticationToken()}),forwarder:X}),L=Object.freeze({AddyIo:w,DuckDuckGo:Q,Fastmail:D,FirefoxRelay:V,ForwardEmail:N,SimpleLogin:z}),W=new Map(Object.values(L).map(e=>[e.id,e]));i(39307);var K=i(62870),Z=i(6632),H=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class J{constructor(){}pick(e){return H(this,void 0,void 0,function*(){var t;if((null!==(t=null==e?void 0:e.length)&&void 0!==t?t:0)<=0)throw new Error("list must have at least one entry.");const i=yield this.uniform(0,e.length-1);return e[i]})}pickWord(e,t){return H(this,void 0,void 0,function*(){var i,n;let r=yield this.pick(e);if(null!==(i=null==t?void 0:t.titleCase)&&void 0!==i&&i&&(r=r.charAt(0).toUpperCase()+r.slice(1)),null!==(n=null==t?void 0:t.number)&&void 0!==n&&n){yield K.B.Ready;r+=(new Z.SdkRandomNumberClient).gen_range(0,9).toString()}return r})}shuffle(e,t){return H(this,void 0,void 0,function*(){var i,n;if((null!==(i=null==e?void 0:e.length)&&void 0!==i?i:0)<=0)throw new Error("items must have at least one entry.");const r=null===(n=null==t?void 0:t.copy)||void 0===n||n?[...e]:e;for(let e=r.length-1;e>0;e--){const t=yield this.uniform(0,e);[r[e],r[t]]=[r[t],r[e]]}return r})}chars(e){return H(this,void 0,void 0,function*(){let t="";const i="abcdefghijklmnopqrstuvwxyz1234567890";for(let n=0;n<e;n++){const e=yield this.uniform(0,35);t+=i.charAt(e)}return t})}uniform(e,t){return H(this,void 0,void 0,function*(){return yield K.B.Ready,(new Z.SdkRandomNumberClient).gen_range(e,t)})}}var q=i(78991);const $=Object.freeze({password:"password",passphrase:"passphrase",username:"username",catchall:"catchall",plusAddress:"subaddress"}),_=Object.freeze({password:"password",username:"username",email:"email"}),ee=Object.freeze({account:"account"}),te=(0,q.ol)({[_.password]:[$.password,$.passphrase],[_.username]:[$.username],[_.email]:[$.catchall,$.plusAddress]});var ie=i(78781);class ne{constructor(e,t,i){this.metadata=e,this.settings=t,this.i18n=i}baseUrl(){var e,t;const i=null!==(e=this.settings&&"baseUrl"in this.settings?this.settings.baseUrl:void 0)&&void 0!==e?e:"";let n="";if(n="always"===this.metadata.selfHost?i:"never"===this.metadata.selfHost||i.length<=0?null!==(t=this.metadata.baseUrl)&&void 0!==t?t:"":i,""===n){throw this.i18n.t("forwarderNoUrl",this.metadata.name)}return n}authenticationToken(e=null){var t,i;let n="token"in this.settings&&null!==(t=this.settings.token)&&void 0!==t?t:"";if(""===n){throw this.i18n.t("forwaderInvalidToken",this.metadata.name)}return n+=null!==(i=null==e?void 0:e.suffix)&&void 0!==i?i:"",(null==e?void 0:e.base64)&&(n=ie.A.fromUtf8ToB64(n)),n}website(e,t){var i,n;let r=null!==(i=e.website)&&void 0!==i?i:"";return(null==t?void 0:t.extractHostname)&&(r=null!==(n=ie.A.getHost(r))&&void 0!==n?n:r),r.slice(0,null==t?void 0:t.maxLength)}generatedBy(e,t){var i;const n=this.website(e,{extractHostname:null!==(i=null==t?void 0:t.extractHostname)&&void 0!==i&&i}),r=""===n?"forwarderGeneratedBy":"forwarderGeneratedByWithWebsite";return this.i18n.t(r,n).slice(0,null==t?void 0:t.maxLength)}}class re extends ne{constructor(e,t,i){super(e,t,i),this.configuration=e}emailDomain(){var e;const t="domain"in this.settings&&null!==(e=this.settings.domain)&&void 0!==e?e:"";if(""===t){throw this.i18n.t("forwarderNoDomain",this.configuration.name)}return t}emailPrefix(){var e;const t="prefix"in this.settings&&null!==(e=this.settings.prefix)&&void 0!==e?e:"";if(""===t){throw this.i18n.t("forwarderNoPrefix",this.configuration.name)}return t}missingAccountIdCause(){return this.i18n.t("forwarderNoAccountId",this.configuration.name)}}var se=i(30126);class oe{constructor(e,t,i,n,r){this.credential=e,this.category=t,this.source=n,this.website=r,this.generationDate="number"==typeof i?new Date(i):i}static fromJSON(e){return new oe(e.credential,e.category,e.generationDate)}toJSON(){return{credential:this.credential,category:this.category,generationDate:this.generationDate.valueOf()}}}function ae(e){const t=e.split("");return Object.freeze(t)}const le=ae("!@#$%^&*"),ce=Object.freeze({Full:Object.freeze({Uppercase:ae("ABCDEFGHIJKLMNOPQRSTUVWXYZ"),Lowercase:ae("abcdefghijklmnopqrstuvwxyz"),Digit:ae("0123456789"),Special:le}),Unmistakable:Object.freeze({Uppercase:ae("ABCDEFGHJKLMNPQRSTUVWXYZ"),Lowercase:ae("abcdefghijkmnopqrstuvwxyz"),Digit:ae("23456789"),Special:le})}),de=new RegExp("(?<username>[^@+]+)(?<subaddress>\\+.+)?(?<domain>@.+)");var ue=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class he{constructor(e){this.random=e}randomAsciiSubaddress(e,t){return ue(this,void 0,void 0,function*(){var i,n;let r=null!=e?e:"";const s=null!==(i=null==t?void 0:t.length)&&void 0!==i?i:8;if(s<1)return r;const o=de.exec(r);if(!o)return r;let a=null!==(n=o.groups.subaddress)&&void 0!==n?n:"+";return a+=(yield this.random.chars(s)),r=`${o.groups.username}${a}${o.groups.domain}`,r})}randomAsciiCatchall(e,t){return ue(this,void 0,void 0,function*(){var i;if(((null==e?void 0:e.startsWith("@"))?e.substring(1,1/0):null!=e?e:"").length<1)return null;const n=null!==(i=null==t?void 0:t.length)&&void 0!==i?i:8;if(n<1)return null;return`${yield this.random.chars(n)}@${e}`})}randomWordsCatchall(e,t){return ue(this,void 0,void 0,function*(){var i,n;if(((null==e?void 0:e.startsWith("@"))?e.substring(1,1/0):null!=e?e:"").length<1)return null;const r=null!==(i=null==t?void 0:t.numberOfWords)&&void 0!==i?i:1;if(r<1)return null;const s=null!==(n=null==t?void 0:t.words)&&void 0!==n?n:se.o,o=[];for(let e=0;e<r;e++)o[e]=yield this.random.pickWord(s,{titleCase:0!==e});return`${o.join("")}@${e}`})}generate(e,t){return ue(this,void 0,void 0,function*(){if(function(e){return"catchallDomain"in(null!=e?e:{})}(t)){const i=yield this.randomAsciiCatchall(t.catchallDomain);return new oe(i,_.email,Date.now(),e.source,e.website)}if(function(e){return"subaddressEmail"in(null!=e?e:{})}(t)){const i=yield this.randomAsciiSubaddress(t.subaddressEmail);return new oe(i,_.email,Date.now(),e.source,e.website)}throw new Error("Invalid settings received by generator.")})}}class Ae{appendToSubaddress(e,t){var i;let n=(null!=t?t:"").trim();const r=(null!=e?e:"").trim();if(r.length<1)return n;const s=de.exec(n);if(!s)return n;const o=(null!==(i=s.groups.subaddress)&&void 0!==i?i:"+")+r;return n=`${s.groups.username}${o}${s.groups.domain}`,n}concatenate(e,t){const i=(null==t?void 0:t.startsWith("@"))?t.substring(1,1/0):null!=t?t:"";if(i.length<1)return null;const n=null!=e?e:"";if(n.length<1)return null;return`${n}@${i}`}}var pe=i(67789);function ge(e){const t=new Map;return i=>{let n=t.get(i);if(void 0===n){const r=e();n=new pe.t(Object.assign({},r)),t.set(i,n)}return n.asObservable()}}function ve(e,t){return i=>t.getUser(i,e)}const me=(...e)=>(null!=e?e:[]).reduce((e,t)=>e+(null!=t?t:0),0);function fe(e){var t,i;function n(e,t,i,n){return(null!=e?e:i)?null!=t?t:n:void 0}const r={uppercase:n(e.uppercase,e.minUppercase,A.uppercase,A.minUppercase),lowercase:n(e.lowercase,e.minLowercase,A.lowercase,A.minLowercase),digits:n(e.number,e.minNumber,A.number,A.minNumber),special:n(e.special,e.minSpecial,A.special,A.minSpecial),ambiguous:null!==(t=e.ambiguous)&&void 0!==t?t:A.ambiguous,all:0},s=me(r.uppercase,r.lowercase,r.digits,r.special),o=(null!==(i=e.length)&&void 0!==i?i:0)-s;return r.all=Math.max(o,0),r}function ye(e){var t,i,n,r;const s=null!==(t=e.numWords)&&void 0!==t?t:h.numWords;return{numberOfWords:Math.max(s,c.numWords.min),capitalize:null!==(i=e.capitalize)&&void 0!==i?i:h.capitalize,number:null!==(n=e.includeNumber)&&void 0!==n?n:h.includeNumber,separator:null!==(r=e.wordSeparator)&&void 0!==r?r:h.wordSeparator}}var be=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Ce{constructor(e,t){this.randomizer=e,this.currentTime=t}randomAscii(e){return be(this,void 0,void 0,function*(){const t=function(e){function t(e,t){const i=new Array(e>0?e:0);return i.fill(t,0,e),i}const i=[],n=e.ambiguous?ce.Full:ce.Unmistakable,r=[];void 0!==e.uppercase&&(r.push(...t(e.uppercase,n.Uppercase)),i.push(...n.Uppercase));void 0!==e.lowercase&&(r.push(...t(e.lowercase,n.Lowercase)),i.push(...n.Lowercase));void 0!==e.digits&&(r.push(...t(e.digits,n.Digit)),i.push(...n.Digit));void 0!==e.special&&(r.push(...t(e.special,n.Special)),i.push(...n.Special));return r.push(...t(e.all,i)),r}(e),i=(yield this.randomizer.shuffle(t)).flatMap(e=>this.randomizer.pick(e));return(yield Promise.all(i)).join("")})}randomEffLongWords(e){return be(this,void 0,void 0,function*(){let t=-1;e.number&&(t=yield this.randomizer.uniform(0,e.numberOfWords-1));const i=new Array(e.numberOfWords);for(let n=0;n<e.numberOfWords;n++){const r=yield this.randomizer.pickWord(se.o,{titleCase:e.capitalize,number:n===t});i[n]=r}return i.join(e.separator)})}generate(e,t){return be(this,void 0,void 0,function*(){if(function(e){return"length"in(null!=e?e:{})}(t)){const i=fe(t),n=yield this.randomAscii(i);return new oe(n,_.password,this.currentTime(),e.source,e.website)}if(function(e){return"numWords"in(null!=e?e:{})}(t)){const i=ye(t),n=yield this.randomEffLongWords(i);return new oe(n,_.password,this.currentTime(),e.source,e.website)}throw new Error("Invalid settings received by generator.")})}}var Ie=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class we{constructor(e,t){this.client=e,this.currentTime=t}generate(e,t){return Ie(this,void 0,void 0,function*(){const i=yield this.client();if(function(e){return"length"in(null!=e?e:{})}(t)){const n=yield i.generator().password(function(e){return{lowercase:e.lowercase,uppercase:e.uppercase,numbers:e.number,special:e.special,length:e.length,avoidAmbiguous:!e.ambiguous,minLowercase:e.minLowercase,minUppercase:e.minUppercase,minNumber:e.minNumber,minSpecial:e.minSpecial}}(t));return new oe(n,_.password,this.currentTime(),e.source,e.website)}if(function(e){return"numWords"in(null!=e?e:{})}(t)){const n=yield i.generator().passphrase(function(e){return{numWords:e.numWords,wordSeparator:e.wordSeparator,capitalize:e.capitalize,includeNumber:e.includeNumber}}(t));return new oe(n,_.password,this.currentTime(),e.source,e.website)}throw new Error("Invalid settings received by generator.")})}}var Be=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Ee{constructor(e){this.random=e}randomWords(e){return Be(this,void 0,void 0,function*(){var t,i,n;const r=null!==(t=null==e?void 0:e.numberOfWords)&&void 0!==t?t:1;if(r<1)return"";const s=Math.max(null!==(i=null==e?void 0:e.digits)&&void 0!==i?i:0,0);let o=e=>!1;"camelCase"===(null==e?void 0:e.casing)?o=e=>0!==e:"TitleCase"===(null==e?void 0:e.casing)&&(o=e=>!0);const a=null!==(n=null==e?void 0:e.words)&&void 0!==n?n:se.o,l=[];for(let e=0;e<r;e++){const t=yield this.random.pickWord(a,{titleCase:o(e)});l.push(t)}for(let e=0;e<s;e++){const e=yield this.random.uniform(0,9);l.push(e.toString())}return l.join("")})}generate(e,t){return Be(this,void 0,void 0,function*(){if(function(e){return"wordIncludeNumber"in(null!=e?e:{})}(t)){const i=yield this.randomWords({digits:t.wordIncludeNumber?4:0,casing:t.wordCapitalize?"TitleCase":"lowercase"});return new oe(i,"username",Date.now(),e.source,e.website)}throw new Error("Invalid settings received by generator.")})}}const Se=new RegExp("[^@]+@(?<domain>.+)");class Qe{constructor(e){var t;if(this.constraints={},!e)return void(this.domain="");const i=Se.exec(e);i&&(null===(t=i.groups)||void 0===t?void 0:t.domain)&&(this.domain=i.groups.domain)}adjust(e){var t;if(""!==(null!==(t=e.catchallDomain)&&void 0!==t?t:"").trim())return e;const i=Object.assign({},e);return i.catchallDomain=this.domain,i}fix(e){return e}}const ke=(0,q.ol)({id:$.catchall,type:_.email,weight:210,i18nKeys:{name:"catchallEmail",description:"catchallEmailDesc",credentialType:"email",generateCredential:"generateEmail",credentialGenerated:"emailGenerated",copyCredential:"copyEmail",useCredential:"useThisEmail"},capabilities:{autogenerate:!0,fields:[]},engine:{create:e=>new he(e.randomizer)},profiles:{[ee.account]:{type:"core",storage:{key:"catchallGeneratorSettings",target:"object",format:"plain",classifier:new f(["catchallType","catchallDomain"]),state:g.qd,initial:{catchallType:"random",catchallDomain:""},options:{deserializer:e=>e,clearOn:["logout"]}},constraints:{default:{catchallDomain:{minLength:1}},create(e,t){var i;return new Qe(null!==(i=t.email)&&void 0!==i?i:"")}}}}});class Re{constructor(e){this.email=e,this.constraints={},e||(this.email="")}adjust(e){var t;if(""!==(null!==(t=e.subaddressEmail)&&void 0!==t?t:"").trim())return e;const i=Object.assign({},e);return i.subaddressEmail=this.email,i}fix(e){return e}}const Fe=(0,q.ol)({id:$.plusAddress,type:_.email,weight:200,i18nKeys:{name:"plusAddressedEmail",description:"plusAddressedEmailDesc",credentialType:"email",generateCredential:"generateEmail",credentialGenerated:"emailGenerated",copyCredential:"copyEmail",useCredential:"useThisEmail"},capabilities:{autogenerate:!0,fields:[]},engine:{create:e=>new he(e.randomizer)},profiles:{[ee.account]:{type:"core",storage:{key:"subaddressGeneratorSettings",target:"object",format:"plain",classifier:new f(["subaddressType","subaddressEmail"]),state:g.qd,initial:{subaddressType:"random",subaddressEmail:""},options:{deserializer:e=>e,clearOn:["logout"]}},constraints:{default:{},create(e,t){var i;return new Re(null!==(i=t.email)&&void 0!==i?i:"")}}}}});var Te=i(7356);class De{get policy(){return{}}get policyInEffect(){return!1}applyPolicy(e){return e}sanitize(e){return e}}const Pe={min:0,max:0},Me={min:1},xe={requiredValue:!0};function Ve(e,t){var i;const n=me(...t.map(e=>null==e?void 0:e.min));return Ue(Math.max(null!==(i=null==e?void 0:e.min)&&void 0!==i?i:0,n),e)}function Ge(e,t){return e?t:void 0}function Ue(e,t){var i;if(null==e)return t;const n=Object.assign({},null!=t?t:{});return n.min=Math.max(null!==(i=n.min)&&void 0!==i?i:-1/0,e),"max"in n&&(n.max=Math.max(n.max,e)),n}function Oe(e,t){if(!t)return e;const{min:i,max:n}=t,r=Math.min(null!=e?e:0,null!=n?n:1/0);return Math.max(r,null!=i?i:-1/0)}function Ne(e,t,i){if(!t)return e;const{minLength:n,maxLength:r}=t,{fillString:s}=null!=i?i:{fillString:" "},o=(null!=e?e:"").slice(0,null!=r?r:1/0);return o.padEnd(null!=n?n:o.length,s)}function je(e,t){return(null==t?void 0:t.readonly)?t.requiredValue:e}function Ye(e){return Ge(e,function(e,t){if(!e)return t;const i=Object.assign({},null!=t?t:{});return i.readonly=!0,i}(e,xe))}class Xe{constructor(e){this.constraints=e}adjust(e){const t=Object.assign(Object.assign({},null!=e?e:A),{length:Oe(e.length,this.constraints.length),lowercase:je(e.lowercase,this.constraints.lowercase),uppercase:je(e.uppercase,this.constraints.uppercase),number:je(e.number,this.constraints.number),special:je(e.special,this.constraints.special),minLowercase:Oe(e.minLowercase,this.constraints.minLowercase),minUppercase:Oe(e.minUppercase,this.constraints.minUppercase),minNumber:Oe(e.minNumber,this.constraints.minNumber),minSpecial:Oe(e.minSpecial,this.constraints.minSpecial)});t.lowercase||(t.lowercase=e.minLowercase>0),t.uppercase||(t.uppercase=e.minUppercase>0),t.number||(t.number=e.minNumber>0),t.special||(t.special=e.minSpecial>0);return[t.lowercase,t.uppercase,t.number,t.special].some(e=>e)||(t.lowercase=!0,t.uppercase=!0),t}fix(e){return e}}class ze{constructor(e,t){this.defaults=t;const i=Ge(e.useLowercase,Me),n=Ge(e.useUppercase,Me),r=Ue(e.numberCount||e.useNumbers&&Me.min,t.minNumber),s=Ue(e.specialCount||e.useSpecial&&Me.min,t.minSpecial),o=Ve(Ue(e.minLength,t.length),[i,n,r,s]);this.constraints=Object.freeze({policyInEffect:Le(e,t),lowercase:Ye(e.useLowercase),uppercase:Ye(e.useUppercase),number:Ye(e.useNumbers),special:Ye(e.useSpecial),length:o,minLowercase:i,minUppercase:n,minNumber:r,minSpecial:s})}calibrate(e){var t,i,n,r,s,o,a,l,c,d,u,h;const A=e.lowercase||(null===(t=this.constraints.lowercase)||void 0===t?void 0:t.requiredValue)||!1,p=e.uppercase||(null===(i=this.constraints.uppercase)||void 0===i?void 0:i.requiredValue)||!1,g=e.number||(null===(n=this.constraints.number)||void 0===n?void 0:n.requiredValue)||(null!==(s=null===(r=this.constraints.minNumber)||void 0===r?void 0:r.min)&&void 0!==s?s:0)>0,v=e.special||(null===(o=this.constraints.special)||void 0===o?void 0:o.requiredValue)||(null!==(l=null===(a=this.constraints.minSpecial)||void 0===a?void 0:a.min)&&void 0!==l?l:0)>0,m=Object.assign(Object.assign({},this.constraints),{minLowercase:Ge(A,null!==(c=this.constraints.minLowercase)&&void 0!==c?c:Me),minUppercase:Ge(p,null!==(d=this.constraints.minUppercase)&&void 0!==d?d:Me),minNumber:null!==(u=Ge(g,this.constraints.minNumber))&&void 0!==u?u:Pe,minSpecial:null!==(h=Ge(v,this.constraints.minSpecial))&&void 0!==h?h:Pe});m.length=Ve(this.constraints.length,[Ue(e.minNumber,m.minNumber),Ue(e.minSpecial,m.minSpecial),Ue(e.minLowercase,m.minLowercase),Ue(e.minUppercase,m.minUppercase)]);return new Xe(m)}}function Le(e,t){return[e.useUppercase,e.useLowercase,e.useNumbers,e.useSpecial,e.minLength>t.length.min,e.numberCount>t.minNumber.min,e.specialCount>t.minSpecial.min].includes(!0)}class We{constructor(e){var t,i;this.policy=structuredClone(e),this.numWords=(t=e.minNumberWords,i=c.numWords,{min:Math.max(i.min,t),max:Math.max(i.max,t)})}get policyInEffect(){return[this.policy.capitalize,this.policy.includeNumber,this.policy.minNumberWords>c.numWords.min].includes(!0)}applyPolicy(e){const t=this.policy.capitalize||e.capitalize||!1,i=this.policy.includeNumber||e.includeNumber||!1,n=function(e,t){const{min:i,max:n}=t,r=Math.min(null!=e?e:t.min,n);return Math.max(r,i)}(e.numWords,this.numWords);return Object.assign(Object.assign({},e),{numWords:n,capitalize:t,includeNumber:i})}sanitize(e){var t,i;const n=""===e.wordSeparator?"":null!==(i=null===(t=e.wordSeparator)||void 0===t?void 0:t[0])&&void 0!==i?i:h.wordSeparator;return Object.assign(Object.assign({},e),{wordSeparator:n})}}class Ke{constructor(e,t){this.policy=e,this.defaults=t,this.constraints={policyInEffect:Ze(e,t),wordSeparator:{minLength:0,maxLength:1},capitalize:Ye(e.capitalize),includeNumber:Ye(e.includeNumber),numWords:Ue(e.minNumberWords,t.numWords)}}adjust(e){return{wordSeparator:Ne(e.wordSeparator,this.constraints.wordSeparator,{fillString:h.wordSeparator}),capitalize:je(e.capitalize,this.constraints.capitalize),includeNumber:je(e.includeNumber,this.constraints.includeNumber),numWords:Oe(e.numWords,this.constraints.numWords)}}fix(e){return e}}function Ze(e,t){return[e.capitalize,e.includeNumber,e.minNumberWords>t.numWords.min].includes(!0)}class He{get minNumber(){return this.minDigits}get minSpecial(){return this.minSpecialCharacters}constructor(e){function t(e,t){return{min:Math.max(t.min,e),max:Math.max(t.max,e)}}this.policy=structuredClone(e),this.minDigits=t(e.numberCount,d.minDigits),this.minSpecialCharacters=t(e.specialCount,d.minSpecialCharacters);const i=this.minDigits.min+this.minSpecialCharacters.min,n=e.minLength>0?e.minLength:d.length.min,r=Math.max(n,i,d.length.min);this.length={min:r,max:Math.max(d.length.max,r)}}get policyInEffect(){return[this.policy.useUppercase,this.policy.useLowercase,this.policy.useNumbers,this.policy.useSpecial,this.policy.minLength>d.length.min,this.policy.numberCount>d.minDigits.min,this.policy.specialCount>d.minSpecialCharacters.min].includes(!0)}applyPolicy(e){function t(e,t){const{min:i,max:n}=t,r=Math.min(e||0,n);return Math.max(r,i)}const i=this.policy.useUppercase||e.uppercase||!1,n=this.policy.useLowercase||e.lowercase||!1,r=this.policy.useNumbers||e.number||e.minNumber>0,s=this.policy.useSpecial||e.special||e.minSpecial>0,o=t(e.length,this.length),a=t(e.minNumber,this.minDigits),l=t(e.minSpecial,this.minSpecialCharacters);return Object.assign(Object.assign({},e),{length:o,uppercase:i,lowercase:n,number:r,minNumber:a,special:s,minSpecial:l})}sanitize(e){var t;function i(e,t){const i=null!=e?e:t>0;return[i,i?t||1:0]}const[n,r]=i(e.lowercase,e.minLowercase),[s,o]=i(e.uppercase,e.minUppercase),[a,l]=i(e.number,e.minNumber),[c,d]=i(e.special,e.minSpecial),u=r+o+l+d,h=Math.max(u,this.length.min),A=Math.max(null!==(t=e.length)&&void 0!==t?t:h,h);return Object.assign(Object.assign({},e),{length:A,minLength:h,lowercase:n,minLowercase:r,uppercase:s,minUppercase:o,number:a,minNumber:l,special:c,minSpecial:d})}}function Je(e,t){var i;return t.type!==Te.tt.PasswordGenerator?e:{minNumberWords:Math.max(e.minNumberWords,null!==(i=t.data.minNumberWords)&&void 0!==i?i:e.minNumberWords),capitalize:t.data.capitalize||e.capitalize,includeNumber:t.data.includeNumber||e.includeNumber}}function qe(e,t){var i,n,r;return t.type===Te.tt.PasswordGenerator&&t.enabled?{minLength:Math.max(e.minLength,null!==(i=t.data.minLength)&&void 0!==i?i:e.minLength),useUppercase:t.data.useUpper||e.useUppercase,useLowercase:t.data.useLower||e.useLowercase,useNumbers:t.data.useNumbers||e.useNumbers,numberCount:Math.max(e.numberCount,null!==(n=t.data.minNumbers)&&void 0!==n?n:e.numberCount),useSpecial:t.data.useSpecial||e.useSpecial,specialCount:Math.max(e.specialCount,null!==(r=t.data.minSpecial)&&void 0!==r?r:e.specialCount)}:e}class $e{constructor(e,t,i){this.algorithms=e,this.isAvailable=t,this.system=i,this.constraints={},this.log=i.log({type:"AvailableAlgorithmsConstraint"})}adjust(e){const t={},i=Object.keys(e);for(const n of i)t[n]=this.adjustPreference(n,e[n]);return t}adjustPreference(e,t){var i;if(this.isAvailable(t.algorithm))return this.log.debug({preference:t,type:e},"using preferred algorithm"),t;const n=null!==(i=(e?this.algorithms({type:e}):[]).find(this.isAvailable))&&void 0!==i?i:null;let r;return n?(r=Object.assign(Object.assign({},t),{algorithm:n,updated:this.system.now()}),this.log.debug({preference:t,defaultAlgorithm:n,type:e},"preference not available; defaulting the algorithm")):(this.log.warn({preference:t,type:e},"preference not available and default algorithm not found; continuing with preference"),r=t),r}fix(e){return e}}const _e={id:$.passphrase,type:_.password,weight:110,i18nKeys:{name:"passphrase",credentialType:"passphrase",generateCredential:"generatePassphrase",credentialGenerated:"passphraseGenerated",copyCredential:"copyPassphrase",useCredential:"useThisPassphrase"},capabilities:{autogenerate:!0,fields:[]},engine:{create:e=>new we(e.sdk,e.now)},profiles:{[ee.account]:{type:"core",storage:{key:"passphraseGeneratorSettings",target:"object",format:"plain",classifier:new f(["numWords","wordSeparator","capitalize","includeNumber"]),state:g.qd,initial:{numWords:6,wordSeparator:"-",capitalize:!1,includeNumber:!1},options:{deserializer:e=>e,clearOn:["logout"]}},constraints:{type:Te.tt.PasswordGenerator,default:{wordSeparator:{maxLength:1},numWords:{min:3,max:20,recommendation:6}},create(e,t){const i=e.reduce(Je,{minNumberWords:0,capitalize:!1,includeNumber:!1});return new Ke(i,t.defaultConstraints)}}}}},et=(0,q.ol)({id:$.password,type:_.password,weight:100,i18nKeys:{name:"password",generateCredential:"generatePassword",credentialGenerated:"passwordGenerated",credentialType:"password",copyCredential:"copyPassword",useCredential:"useThisPassword"},capabilities:{autogenerate:!0,fields:[]},engine:{create:e=>new we(e.sdk,e.now)},profiles:{[ee.account]:{type:"core",storage:{key:"passwordGeneratorSettings",target:"object",format:"plain",classifier:new f(["length","ambiguous","uppercase","minUppercase","lowercase","minLowercase","number","minNumber","special","minSpecial"]),state:g.qd,initial:{length:14,ambiguous:!0,uppercase:!0,minUppercase:1,lowercase:!0,minLowercase:1,number:!0,minNumber:1,special:!1,minSpecial:0},options:{deserializer:e=>e,clearOn:["logout"]}},constraints:{type:Te.tt.PasswordGenerator,default:{length:{min:5,max:128,recommendation:14},minNumber:{min:0,max:9},minSpecial:{min:0,max:9}},create(e,t){const i=e.reduce(qe,{minLength:0,useUppercase:!1,useLowercase:!1,useNumbers:!1,numberCount:0,useSpecial:!1,specialCount:0});return new ze(i,t.defaultConstraints)}}}}});var tt=i(59303);const it=(0,q.ol)({id:$.username,type:_.username,weight:400,i18nKeys:{name:"randomWord",credentialType:"username",generateCredential:"generateUsername",credentialGenerated:"usernameGenerated",copyCredential:"copyUsername",useCredential:"useThisUsername"},capabilities:{autogenerate:!0,fields:[]},engine:{create:e=>new Ee(e.randomizer)},profiles:{[ee.account]:{type:"core",storage:{key:"effUsernameGeneratorSettings",target:"object",format:"plain",classifier:new f(["wordCapitalize","wordIncludeNumber"]),state:g.qd,initial:{wordCapitalize:!1,wordIncludeNumber:!1,website:null},options:{deserializer:e=>e,clearOn:["logout"]}},constraints:{default:{},create:(e,t)=>new tt.e}}}});class nt{constructor(e,t){this.requestor=e,this.context=t}get createForwardingEmail(){return this.requestor.forwarder.createForwardingEmail}toRequest(e){const t=this.createForwardingEmail.url(e,this.context),i=this.requestor.authenticate(e,this.context),n=this.body(e);return new Request(t,{redirect:"manual",cache:"no-store",method:"POST",headers:new Headers(Object.assign(Object.assign({},i),{"Content-Type":"application/json",Accept:"application/json"})),body:n})}body(e){const t=this.createForwardingEmail.body;if(!t)return;const i=t(e,this.context);return i?JSON.stringify(i):void 0}hasJsonPayload(e){return this.createForwardingEmail.hasJsonPayload(e,this.context)}processJson(e){return this.createForwardingEmail.processJson(e,this.context)}}class rt{constructor(e,t){this.requestor=e,this.context=t}hasJsonPayload(e){return this.requestor.forwarder.getAccountId.hasJsonPayload(e,this.context)}processJson(e){return this.requestor.forwarder.getAccountId.processJson(e,this.context)}toRequest(e){const t=this.requestor.forwarder.getAccountId.url(e,this.context),i=this.requestor.authenticate(e,this.context);return new Request(t,{redirect:"manual",cache:"no-store",method:"GET",headers:new Headers(Object.assign(Object.assign({},i),{"Content-Type":"application/json",Accept:"application/json"}))})}}var st=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class ot{constructor(e,t,i){this.configuration=e,this.client=t,this.i18nService=i}generate(e,t){return st(this,void 0,void 0,function*(){const i={website:e.website},n=yield this.getAccountId(this.configuration,t);n&&(i.accountId=yield this.client.fetchJson(n,i));const r=this.createForwardingAddress(this.configuration,t),s=yield this.client.fetchJson(r,i);return new oe(s,_.email,Date.now())})}createContext(e,t){return new re(e,t,this.i18nService)}createForwardingAddress(e,t){const i=this.createContext(e,t);return new nt(e,i)}getAccountId(e,t){if(!e.forwarder.getAccountId)return null;const i=this.createContext(e,t);return new rt(e,i)}}function at(e){var t;if("forwarder"!==e.site.id)throw new Error(`expected forwarder extension; received ${e.site.id} (${e.product.vendor.id})`);const i={literal:null!==(t=e.product.name)&&void 0!==t?t:e.product.vendor.name};return{id:{forwarder:e.product.vendor.id},type:_.email,weight:300,i18nKeys:{name:i,description:"forwardedEmailDesc",generateCredential:"generateEmail",credentialGenerated:"emailGenerated",useCredential:"useThisEmail",credentialType:"email",copyCredential:"copyEmail"},capabilities:{autogenerate:!1,fields:[...e.requestedFields]},engine:{create(t){const i=function(e){const t=W.get(e);return t&&"forwarder"in t?t:null}(e.product.vendor.id);return new ot(i,t.client,t.i18nService)}},profiles:{[ee.account]:{type:"extension",site:"forwarder",storage:{key:"forwarder",frame:512,initial:{token:"",baseUrl:"",domain:"",prefix:""},options:{deserializer:e=>e,clearOn:["logout"]}},constraints:{default:{},create:()=>new tt.e}}}}}function lt(e){return te.password.includes(e)}function ct(e){return te.username.includes(e)}function dt(e){return!(!e||"object"!=typeof e||!("forwarder"in e))}function ut(e){return te.email.includes(e)||dt(e)}function ht(e,t){return e===t||!(!dt(e)||!dt(t))&&e.forwarder===t.forwarder}const At=Object.freeze({catchall:ke,plusAddress:Fe,passphrase:_e,password:et,effWordList:it}),pt=te,gt=Object.freeze(Object.values($)),vt=Object.freeze(Object.values(_));var mt=i(69783),ft=i(6933),yt=i(191),bt=i(16385),Ct=i(29236),It=i(20377),wt=i(89222);function Bt(e){return!!e.algorithm}function Et(e){return!!e.type}const St=new g.Ok(g.qd,"credentialPreferences",{deserializer:e=>{var t;const i=null!==(t=e)&&void 0!==t?t:{};for(const n in pt){const e=n;if(i[e])i[e].updated=new Date(i[e].updated);else{const[t]=pt[e];i[e]={algorithm:t,updated:new Date}}}return i},clearOn:["logout"]});class Qt{constructor(e,t,i){this.system=e,this.application=t,this.log=e.log({type:"GeneratorMetadataProvider"});const n=t.extension.site("forwarder");n||this.log.panic("forwarder extension site not found"),this.site=n,this._metadata=new Map(i.map(e=>[e.id,e]))}metadata(e){let t=null;if(dt(e)){const i=this.site.extensions.get(e.forwarder);i||this.log.panic(e,"extension not found"),t=at(i)}else t=this._metadata.get(e);return t||this.log.panic({algorithm:e},"metadata not found"),t}types(){return vt}algorithms(e){let t;if(Et(e)){let i=[];e.type===_.email&&(i=Array.from(this.site.extensions.keys()).map(e=>({forwarder:e}))),t=pt[e.type].concat(i)}else Bt(e)&&dt(e.algorithm)?t=this.site.extensions.has(e.algorithm.forwarder)?[e.algorithm]:[]:Bt(e)?t=gt.includes(e.algorithm)?[e.algorithm]:[]:this.log.panic(e,"algorithm or type required");return t}isAvailable$(e){const t=e.account$.pipe((0,mt.T)(e=>e.id),(0,It.y_)(),(0,ft.t)({bufferSize:1,refCount:!0}));return t.pipe((0,yt.n)(e=>this.application.policy.policiesByType$(Te.tt.PasswordGenerator,e).pipe((0,mt.T)(e=>function(e){const t=e.filter(e=>e.type===Te.tt.PasswordGenerator&&e.enabled).reduce((e,t)=>{var i;return"password"===e?e:null!==(i=t.data.overridePasswordType)&&void 0!==i?i:e},null),i=[...pt[_.email],...pt[_.username]];return t?i.push(t):i.push(...pt[_.password]),i}(e).filter(e=>this._metadata.has(e)).sort()),(0,It.Zm)(e=>new Set(e),{key:e=>e.join(":")}),(0,bt.F)(),(0,Ct.Q)((0,It.E)(t)))),(0,mt.T)(e=>function(t){return dt(t)||e.has(t)}))}algorithms$(e,t){if(Et(e)){const{type:i}=e;return this.isAvailable$(t).pipe((0,mt.T)(e=>this.algorithms({type:i}).filter(e)))}if(Bt(e)){const{algorithm:i}=e;return this.isAvailable$(t).pipe((0,mt.T)(e=>e(i)?[i]:[]))}this.log.panic(e,"algorithm or type required")}preference$(e,t){const i=t.account$.pipe((0,ft.t)({bufferSize:1,refCount:!0}));return this.preferences({account$:i}).pipe((0,mt.T)(t=>t[e].algorithm),(0,bt.F)())}preferences(e){const t=e.account$.pipe((0,ft.t)({bufferSize:1,refCount:!0})),i=this.isAvailable$({account$:t}).pipe((0,mt.T)(e=>new $e(this.algorithms.bind(this),e,this.system)));return new wt.p(St,this.system,{account$:t,constraints$:i})}}var kt=i(83604),Rt=i(35284);class Ft{constructor(e,t){this.providers=e,this.policyService=t,this.log=e.log({type:"GeneratorProfileProvider"})}settings(e,t){const i=t.account$.pipe((0,ft.t)({bufferSize:1,refCount:!0})),n=this.constraints$(e,{account$:i});return new wt.p(e.storage,this.providers,{constraints$:n,account$:i})}constraints$(e,t){const i=t.account$.pipe((0,ft.t)({bufferSize:1,refCount:!0}));return i.pipe((0,bt.F)((e,t)=>e.email===t.email&&e.emailVerified===t.emailVerified),(0,yt.n)(t=>{var i;this.log.debug({accountId:t.id,profileType:e.type,policyType:null!==(i=e.constraints.type)&&void 0!==i?i:"N/A",defaultConstraints:e.constraints.default},"initializing constraints$");const n=e.constraints.type?this.policyService.policiesByType$(e.constraints.type,t.id):(0,kt.of)([]),r={defaultConstraints:e.constraints.default};t.emailVerified&&(this.log.debug({email:t.email},"verified email detected; including in context"),r.email=t.email);const s=n.pipe((0,mt.T)(t=>e.constraints.create(t,r)),(0,bt.F)((e,t)=>function(e,t){var i,n;if(e.constraints.policyInEffect!==t.constraints.policyInEffect)return!1;const r=Object.keys(e.constraints);for(const s of r){if(!(s in t.constraints))return!1;const r=null!==(i=e.constraints[s])&&void 0!==i?i:{},o=null!==(n=t.constraints[s])&&void 0!==n?n:{};if(Object.keys(r).some(e=>r[e]!==o[e]))return!1}return!0}(e,t)),(0,Rt.M)(e=>this.log.debug(e,"constraints updated")));return s}),(0,Ct.Q)((0,It.E)(i)))}}var Tt=i(68108),Dt=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Pt{constructor(e,t){this.strategy=e,this.policy=t,this._evaluators$=new Map}options$(e){return this.strategy.durableState(e).state$}defaults$(e){return this.strategy.defaults$(e)}saveOptions(e,t){return Dt(this,void 0,void 0,function*(){yield this.strategy.durableState(e).update(()=>t)})}evaluator$(e){let t=this._evaluators$.get(e);return t||(t=this.createEvaluator(e),this._evaluators$.set(e,t)),t}createEvaluator(e){return this.policy.policiesByType$(this.strategy.policy,e).pipe(this.strategy.toEvaluator())}enforcePolicy(e,t){return Dt(this,void 0,void 0,function*(){const i=yield(0,Tt._)(this.evaluator$(e)),n=i.applyPolicy(t);return i.sanitize(n)})}generate(e){return Dt(this,void 0,void 0,function*(){return yield this.strategy.generate(e)})}}var Mt=i(36219),xt=i(68711),Vt=i(32782),Gt=i(91254),Ut=i(39250),Ot=i(73140),Nt=i(85566),jt=i(62423);const Yt=18e4;class Xt{constructor(e,t){this.provide=e,this.system=t,this.log=t.log({type:"DefaultCredentialGeneratorService"})}generate$(e){const t=e.on$.pipe((0,ft.t)({refCount:!0,bufferSize:1})),i=e.account$.pipe((0,ft.t)({refCount:!0,bufferSize:1})),n=t.pipe((0,yt.n)(e=>Bt(e)?(0,kt.of)(e.algorithm):Et(e)?this.provide.metadata.preference$(e.type,{account$:i}).pipe((0,Mt.$)()):void this.log.panic(e,"algorithm or category required")),(0,xt.p)(e=>!!e),(0,It.Zm)(e=>this.provide.metadata.metadata(e),{size:10}),(0,ft.t)({refCount:!0,bufferSize:1})),r=(0,Vt.y)(t,n).pipe((0,mt.T)(([e,t])=>{var i;return[Object.assign(Object.assign({},e),{profile:null!==(i=e.profile)&&void 0!==i?i:ee.account}),t]}),(0,It.Zm)(([e,t])=>{const[n,r]=[e.profile,t.id],s=this.settings(t,{account$:i},n).pipe((0,Rt.M)(()=>this.log.debug({algorithm:r,profile:n},"settings update received")),(0,Gt.u)({connector:()=>new Ut.m(1,Yt),resetOnRefCountZero:()=>(0,Ot.O)(Yt)}),(0,Rt.M)({subscribe:()=>this.log.debug({algorithm:r,profile:n},"settings hot"),complete:()=>this.log.debug({algorithm:r,profile:n},"settings cold")}),(0,Mt.$)());return this.log.debug({algorithm:r,profile:n},"settings cached"),s},{key:([e,t])=>`${t.id}:${e.profile}`}),(0,Nt.w)()),s=n.pipe((0,It.Zm)(e=>{const t=e.engine.create(this.provide.generator);return this.log.debug({algorithm:e.id},"engine cached"),t},{size:10}));return(0,Vt.y)([t,r,s]).pipe((0,Rt.M)(([e])=>this.log.debug(e,"generating credential")),(0,jt.H)(([e,t,i])=>i.generate(e,t)),(0,Ct.Q)((0,It.E)([r])))}algorithms$(e,t){return this.provide.metadata.algorithms$({type:e},t).pipe((0,mt.T)(e=>e.map(e=>this.algorithm(e))))}preferredAlgorithm$(e,t){return this.provide.metadata.preference$(e,t).pipe((0,It.Zm)(e=>this.provide.metadata.metadata(e)),(0,bt.F)(),(0,ft.t)({refCount:!0,bufferSize:1}))}algorithms(e){return(Array.isArray(e)?e:[e]).flatMap(e=>this.provide.metadata.algorithms({type:e})).map(e=>this.algorithm(e))}algorithm(e){const t=this.provide.metadata.metadata(e);return t||this.log.panic({algorithm:e},"invalid credential algorithm"),t}forwarder(e){const t=this.provide.metadata.metadata({forwarder:e});return t||this.log.panic({algorithm:e},"invalid vendor"),t}preferences(e){return this.provide.metadata.preferences(e)}settings(e,t,i=ee.account){const n=e.profiles[i];let r;if(n||this.log.panic({algorithm:e.id,profile:i},"failed to load settings; profile metadata not found"),"extension"===(s=n).type&&"forwarder"===s.site){const s=function(e){if(dt(e))return e.forwarder}(e.id);s||this.log.panic({algorithm:e.id,profile:i},"failed to load extension profile; vendor not specified"),this.log.info({profile:i,vendor:s,site:n.site},"loading extension profile"),r=this.system.extension.settings(n,s,t)}else this.log.info({profile:i,algorithm:e.id},"loading generator profile"),r=this.provide.profile.settings(n,t);var s;return r}policy$(e,t,i=ee.account){const n=e.profiles[i];return n||this.log.panic({algorithm:e.id,profile:i},"failed to load policy; profile metadata not found"),this.provide.profile.constraints$(n,t)}}function zt(){return new J}var Lt=i(47130);function Wt(e){return(0,Lt.F)((0,It.pP)(e.combine,e.disabledValue),(0,It.LA)(),(0,mt.T)(e.createEvaluator))}function Kt(){return()=>(0,Lt.F)((0,mt.T)(e=>new De))}var Zt=i(22327),Ht=i(21590),Jt=i(9764),qt=i(89097),$t=i(16845);class _t{}class ei{classify(e){const t=JSON.parse(JSON.stringify(e));delete t.website;return{disclosed:{},secret:t}}declassify(e,t){return Object.assign(Object.assign({},t),{website:null})}}var ti=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class ii extends _t{constructor(e,t,i,n,r,s){super(),this.configuration=e,this.client=t,this.i18nService=i,this.sdkService=n,this.keyService=r,this.stateProvider=s,this.policy=Te.tt.PasswordGenerator,this.defaults$=ge(()=>this.configuration.forwarder.defaultSettings),this.toEvaluator=Kt(),this.durableState=function(e){const t=new Map;return i=>{let n=t.get(i);return void 0===n&&(n=e(i),t.set(i,n)),n}}(e=>this.getUserSecrets(e)),this.generate=e=>ti(this,void 0,void 0,function*(){const t={website:e.website},i=yield this.getAccountId(this.configuration,e);i&&(t.accountId=yield this.client.fetchJson(i,t));const n=this.createForwardingAddress(this.configuration,e);return yield this.client.fetchJson(n,t)})}get key(){return this.configuration.forwarder.settings}get rolloverKey(){return this.configuration.forwarder.importBuffer}getUserSecrets(e){const t=new Jt.n(512),i=(0,kt.of)(new Zt.f(e,this.sdkService,t)),n=new ei,r=qt.l.value(this.key.stateDefinition,this.key.key,n,{deserializer:e=>this.key.deserializer(e),cleanupDelayMs:this.key.cleanupDelayMs,clearOn:this.key.clearOn}),s=$t.m.from(e,r,this.stateProvider,i),o=this.keyService.userKey$(e).pipe((0,mt.T)(e=>null!==e));return new Ht.d(this.stateProvider,this.rolloverKey,s,o)}createContext(e,t){return new re(e,t,this.i18nService)}createForwardingAddress(e,t){const i=this.createContext(e,t);return new nt(e,i)}getAccountId(e,t){if(!e.forwarder.getAccountId)return null;const i=this.createContext(e,t);return new rt(e,i)}}const ni=new g.Ok(g.qd,"passwordGeneratorSettings",{deserializer:e=>e,clearOn:[]}),ri=new g.Ok(g.qd,"passphraseGeneratorSettings",{deserializer:e=>e,clearOn:[]}),si=new g.Ok(g.qd,"effUsernameGeneratorSettings",{deserializer:e=>e,clearOn:[]}),oi=new g.Ok(g.qd,"catchallGeneratorSettings",{deserializer:e=>e,clearOn:[]}),ai=new g.Ok(g.qd,"subaddressGeneratorSettings",{deserializer:e=>e,clearOn:[]});var li=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class ci{constructor(e,t){this.randomizer=e,this.stateProvider=t,this.durableState=ve(ri,this.stateProvider),this.defaults$=ge(()=>h),this.policy=Te.tt.PasswordGenerator}toEvaluator(){return Wt({type:Te.tt.PasswordGenerator,disabledValue:Object.freeze({minNumberWords:0,capitalize:!1,includeNumber:!1}),combine:Je,createEvaluator:e=>new We(e)})}generate(e){return li(this,void 0,void 0,function*(){const t=ye(e);return this.randomizer.randomEffLongWords(t)})}}var di=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class ui{constructor(e,t){this.randomizer=e,this.stateProvider=t,this.durableState=ve(ni,this.stateProvider),this.defaults$=ge(()=>A),this.policy=Te.tt.PasswordGenerator}toEvaluator(){return Wt({type:Te.tt.PasswordGenerator,disabledValue:{minLength:0,useUppercase:!1,useLowercase:!1,useNumbers:!1,numberCount:0,useSpecial:!1,specialCount:0},combine:qe,createEvaluator:e=>new He(e)})}generate(e){return di(this,void 0,void 0,function*(){const t=fe(e);return yield this.randomizer.randomAscii(t)})}}var hi=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Ai{constructor(e,t,i,n=l){this.emailCalculator=e,this.emailRandomizer=t,this.stateProvider=i,this.defaultOptions=n,this.durableState=ve(oi,this.stateProvider),this.defaults$=ge(()=>this.defaultOptions),this.toEvaluator=Kt(),this.policy=Te.tt.PasswordGenerator}generate(e){return hi(this,void 0,void 0,function*(){return null==e.catchallType&&(e.catchallType="random"),"website-name"===e.catchallType?yield this.emailCalculator.concatenate(e.website,e.catchallDomain):this.emailRandomizer.randomAsciiCatchall(e.catchallDomain)})}}var pi=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class gi{constructor(e,t,i,n=p){this.emailCalculator=e,this.emailRandomizer=t,this.stateProvider=i,this.defaultOptions=n,this.durableState=ve(ai,this.stateProvider),this.defaults$=ge(()=>this.defaultOptions),this.toEvaluator=Kt(),this.policy=Te.tt.PasswordGenerator}generate(e){return pi(this,void 0,void 0,function*(){return null==e.subaddressType&&(e.subaddressType="random"),"website-name"===e.subaddressType?this.emailCalculator.appendToSubaddress(e.website,e.subaddressEmail):this.emailRandomizer.randomAsciiSubaddress(e.subaddressEmail)})}}var vi=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const mi=Object.freeze({enabled:4,disabled:0});class fi{constructor(e,t,i=u){this.randomizer=e,this.stateProvider=t,this.defaultOptions=i,this.durableState=ve(si,this.stateProvider),this.defaults$=ge(()=>this.defaultOptions),this.toEvaluator=Kt(),this.policy=Te.tt.PasswordGenerator}generate(e){return vi(this,void 0,void 0,function*(){var t,i;const n=(null!==(t=e.wordCapitalize)&&void 0!==t?t:u.wordCapitalize)?"TitleCase":"lowercase",r=(null!==(i=e.wordIncludeNumber)&&void 0!==i?i:u.wordIncludeNumber)?mi.enabled:mi.disabled;return yield this.randomizer.randomWords({numberOfWords:1,casing:n,digits:r})})}}},192(e,t,i){"use strict";i.d(t,{ZG:()=>n,ZS:()=>r,Kt:()=>E});class n{constructor(e,t){this.password=e,this.date=t}}class r{}var s=i(69783),o=i(83604),a=i(22327),l=i(21590),c=i(9764),d=i(16845);class u{constructor(e,t,i,n){this.credential=e,this.category=t,this.algorithm=n,this.generationDate="number"==typeof i?new Date(i):i}static fromJSON(e){return new u(e.credential,e.category,e.generationDate,e.algorithm)}toJSON(){const e={credential:this.credential,category:this.category,generationDate:this.generationDate.valueOf()};return void 0!==this.algorithm&&(e.algorithm=this.algorithm),e}}var h=i(31857),A=i(4132);class p{constructor(e,t){this.disclosed=e,this.excluded=t}static allSecret(){const e=Object.freeze([]),t=Object.freeze([]);return new p(e,t)}disclose(e){const t=[...this.disclosed,e];return new p(Object.freeze(t),this.excluded)}exclude(e){const t=[...this.excluded,e];return new p(this.disclosed,Object.freeze(t))}classify(e){const t=JSON.parse(JSON.stringify(e));for(const n of this.excluded)delete t[n];const i={};for(const n of this.disclosed)i[n]=t[n],delete t[n];return{disclosed:i,secret:t}}declassify(e,t){const i={};for(const r of this.disclosed)i[r]=e[r];const n=Object.assign(i,t);for(const r of this.excluded)delete n[r];return n}}var g=i(89097),v=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const m=g.l.array(h.qd,"localGeneratorHistory",p.allSecret(),{deserializer:u.fromJSON,clearOn:["logout"]}),f=new A.A(h.qd,"localGeneratorHistoryBuffer",{deserializer(e){const t=e;return null==t?void 0:t.map(e=>new n(e.password,e.date))},isValid(e){return v(this,void 0,void 0,function*(){return!!e.length})},map(e,t){return v(this,void 0,void 0,function*(){return(yield t.decrypt(e)).map(e=>new u(e.password,"password",e.date))})},clearOn:["logout"]});var y=i(68108),b=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})},C=function(e,t,i){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,r;if(i){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],i&&(r=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");r&&(n=function(){try{r.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:i})}else i&&e.stack.push({async:!0});return t},I=function(e){return function(t){function i(i){t.error=t.hasError?new e(i,t.error,"An error was suppressed during disposal."):i,t.hasError=!0}var n,r=0;return function e(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(e);if(n.dispose){var s=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(s).then(e,function(t){return i(t),e()})}else r|=1}catch(o){i(o)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}}("function"==typeof SuppressedError?SuppressedError:function(e,t,i){var n=new Error(i);return n.name="SuppressedError",n.error=e,n.suppressed=t,n});class w{constructor(e,t){this.userId=e,this.sdkService=t}decrypt(e){return b(this,void 0,void 0,function*(){const t=(null!=e?e:[]).map(e=>b(this,void 0,void 0,function*(){const t=yield(0,y._)(this.sdkService.userClient$(this.userId).pipe((0,s.T)(t=>{const i={stack:[],error:void 0,hasError:!1};try{if(!t)throw new Error("SDK not available");return C(i,t.take(),!1).value.crypto().decrypt_with_local_user_data_key(e.password)}catch(n){i.error=n,i.hasError=!0}finally{I(i)}})));return new n(t,e.date)}));return Promise.all(t)})}}var B=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class E extends r{constructor(e,t,i={maxTotal:200},n=new c.n(2048)){super(),this.stateProvider=e,this.sdkService=t,this.options=i,this.dataPacker=n,this._credentialStates=new Map,this.track=(e,t,i,n,r)=>B(this,void 0,void 0,function*(){const s=this.getCredentialState(e);let o=null;return yield s.update(e=>{e=null!=e?e:[],o=new u(t,i,null!=n?n:Date.now(),r),e.unshift(o);const s=Math.max(0,this.options.maxTotal);return e.splice(s,1/0),e},{shouldUpdate:e=>{var i;return!(null!==(i=null==e?void 0:e.some(e=>e.credential===t))&&void 0!==i&&i)}}),o}),this.take=(e,t)=>B(this,void 0,void 0,function*(){const i=this.getCredentialState(e);let n,r=null;return yield i.update(e=>(e=null!=e?e:[],[r]=e.splice(n,1),e),{shouldUpdate:e=>{var i;return n=null!==(i=null==e?void 0:e.findIndex(e=>e.credential===t))&&void 0!==i?i:-1,n>=0}}),r}),this.clear=e=>B(this,void 0,void 0,function*(){var t;const i=this.getCredentialState(e);return null!==(t=yield i.update(()=>null))&&void 0!==t?t:[]}),this.credentials$=e=>this.getCredentialState(e).state$.pipe((0,s.T)(e=>null!=e?e:[]))}getCredentialState(e){let t=this._credentialStates.get(e);return t||(t=this.createSecretState(e),this._credentialStates.set(e,t)),t}createSecretState(e){const t=(0,o.of)(new a.f(e,this.sdkService,this.dataPacker)),i=d.m.from(e,m,this.stateProvider,t),n=new w(e,this.sdkService),r=this.sdkService.userClient$(e).pipe((0,s.T)(e=>e&&n));return new l.d(this.stateProvider,f,i,r)}}},71373(e,t,i){"use strict";i.d(t,{JJ:()=>n,GL:()=>U,Im:()=>G,pV:()=>_});class n{}var r=i(23544),s=i(192);const o=Object.freeze({type:"password",username:"word",forwarder:""});var a=i(67789),l=i(69783),c=i(68108),d=i(7356),u=i(20377);class h{constructor(e){this.policy=e}get policyInEffect(){var e;return r.I4[r.ZU.password].includes(null===(e=this.policy)||void 0===e?void 0:e.overridePasswordType)}applyPolicy(e){var t;const i=Object.assign({},e);return this.policyInEffect&&(i.type=null!==(t=this.policy.overridePasswordType)&&void 0!==t?t:i.type),i}sanitize(e){var t;return Object.assign(Object.assign({},e),{type:null!==(t=e.type)&&void 0!==t?t:o.type})}}function A(e,t){if(!(t.type===d.tt.PasswordGenerator&&t.enabled))return e;return"password"!==e.overridePasswordType&&t.data.overridePasswordType?Object.assign(Object.assign({},e),{overridePasswordType:t.data.overridePasswordType}):e}const p=Object.freeze({overridePasswordType:null});var g=i(31857);const v=new g.Ok(g.qd,"generatorSettings",{deserializer:e=>e,clearOn:["logout"]});var m=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class f{constructor(e,t){this.stateProvider=e,this.policy=t}options$(e){return this.stateProvider.getUserState$(v,e)}defaults$(e){return new a.t(Object.assign({},o))}evaluator$(e){return this.policy.policiesByType$(d.tt.PasswordGenerator,e).pipe((0,u.pP)(A,p),(0,u.LA)(),(0,l.T)(e=>new h(e)))}enforcePolicy(e,t){return m(this,void 0,void 0,function*(){const i=yield(0,c._)(this.evaluator$(e)),n=i.applyPolicy(t);return i.sanitize(n)})}saveOptions(e,t){return m(this,void 0,void 0,function*(){yield this.stateProvider.setUserState(v,t,e)})}}var y=i(83604),b=i(62423),C=i(64087),I=i(72135),w=i(98905),B=i(32782),E=i(6586),S=i(68711),Q=i(17989);class k extends Q.A{constructor(){super(...arguments),this.overridePasswordType="",this.minLength=0,this.useUppercase=!1,this.useLowercase=!1,this.useNumbers=!1,this.numberCount=0,this.useSpecial=!1,this.specialCount=0,this.minNumberWords=0,this.capitalize=!1,this.includeNumber=!1}inEffect(){return this.overridePasswordType||this.minLength>0||this.numberCount>0||this.specialCount>0||this.useUppercase||this.useLowercase||this.useNumbers||this.useSpecial||this.minNumberWords>0||this.capitalize||this.includeNumber}clone(){const e=new k;return Object.assign(e,this),e}}var R=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class F{constructor(e,t,i,n,r){this.accountService=e,this.navigation=t,this.passwords=i,this.passphrases=n,this.history=r}generatePassword(e){return"password"===e.type?this.passwords.generate(e):this.passphrases.generate(e)}generatePassphrase(e){return this.passphrases.generate(e)}getRawOptions$(){function e(e){return e.pipe((0,l.T)((e,t)=>[e,t]))}return this.accountService.activeAccount$.pipe((0,b.H)(t=>(0,C.x)((0,y.of)([null,null,[null,-1],null,null,[null,-1],null,null,[null,-1]]),(0,I.z)([this.passwords.options$(t.id),this.passwords.defaults$(t.id),e(this.passwords.evaluator$(t.id)),this.passphrases.options$(t.id),this.passphrases.defaults$(t.id),e(this.passphrases.evaluator$(t.id)),this.navigation.options$(t.id),this.navigation.defaults$(t.id),e(this.navigation.evaluator$(t.id))]))),(0,w.J)(),(0,l.T)(function([e,t]){const[,,[,i],,,[,n],,,[,r]]=e,[s,o,[a,l],c,d,[u,h],A,p,[g,v]]=t;return[s,o,a,c,d,u,A,p,g,i<l||n<h||r<v]}))}getOptions$(){return this.getRawOptions$().pipe((0,l.T)(([e,t,i,n,r,s,o,a,l,c])=>{const d=i.applyPolicy(null!=e?e:t),u=s.applyPolicy(null!=n?n:r),h=l.applyPolicy(null!=o?o:a);return[this.toPasswordGeneratorOptions({password:i.sanitize(d),passphrase:s.sanitize(u),generator:l.sanitize(h),policyUpdated:c}),Object.assign(new k,i.policy,s.policy,l.policy)]}))}getOptions(){return R(this,void 0,void 0,function*(){return yield(0,c._)(this.getOptions$())})}enforcePasswordGeneratorPoliciesOnOptions(e){return R(this,void 0,void 0,function*(){const t=this.accountService.activeAccount$.pipe((0,b.H)(e=>(0,B.y)(this.passwords.evaluator$(e.id),this.passphrases.evaluator$(e.id),this.navigation.evaluator$(e.id))),(0,l.T)(([t,i,n])=>{const r=Object.assign(new k,t.policy,i.policy,n.policy),s=n.applyPolicy(e),o=Object.assign(Object.assign({},e),n.sanitize(s));if("password"===o.type){const e=t.applyPolicy(o);return[t.sanitize(e),r]}{const e=i.applyPolicy(o);return[i.sanitize(e),r]}})),[i,n]=yield(0,c._)(t);return[Object.assign(e,i),n]})}saveOptions(e){return R(this,void 0,void 0,function*(){const t=this.toStoredOptions(e),i=yield(0,c._)(this.accountService.activeAccount$),n=(0,B.y)(this.navigation.options$(i.id),this.navigation.defaults$(i.id)).pipe((0,l.T)(([e,t])=>null!=e?e:t));let r=yield(0,c._)(n);r=Object.assign(r,t.generator),yield this.navigation.saveOptions(i.id,r),yield this.passwords.saveOptions(i.id,t.password),yield this.passphrases.saveOptions(i.id,t.passphrase)})}toStoredOptions(e){return{generator:{type:e.type},password:{length:e.length,minLength:e.minLength,ambiguous:e.ambiguous,uppercase:e.uppercase,minUppercase:e.minUppercase,lowercase:e.lowercase,minLowercase:e.minLowercase,number:e.number,minNumber:e.minNumber,special:e.special,minSpecial:e.minSpecial},passphrase:{numWords:e.numWords,wordSeparator:e.wordSeparator,capitalize:e.capitalize,includeNumber:e.includeNumber},policyUpdated:!1}}toPasswordGeneratorOptions(e){return{type:e.generator.type,length:e.password.length,minLength:e.password.minLength,ambiguous:e.password.ambiguous,uppercase:e.password.uppercase,minUppercase:e.password.minUppercase,lowercase:e.password.lowercase,minLowercase:e.password.minLowercase,number:e.password.number,minNumber:e.password.minNumber,special:e.password.special,minSpecial:e.password.minSpecial,numWords:e.passphrase.numWords,wordSeparator:e.passphrase.wordSeparator,capitalize:e.passphrase.capitalize,includeNumber:e.passphrase.includeNumber,policyUpdated:e.policyUpdated}}getHistory(){const e=this.accountService.activeAccount$.pipe((0,b.H)(e=>this.history.credentials$(e.id)),(0,E.w)({each:1e3,with:()=>[]}),(0,l.T)(e=>e.map(T)));return(0,c._)(e)}addHistory(e){return R(this,void 0,void 0,function*(){const t=yield(0,c._)(this.accountService.activeAccount$);(null==t?void 0:t.id)&&(yield this.history.track(t.id,e,"password"))})}clear(){const e=this.accountService.activeAccount$.pipe((0,S.p)(e=>!!(null==e?void 0:e.id)),(0,b.H)(e=>this.history.clear(e.id)),(0,E.w)({each:1e3,with:()=>[]}),(0,l.T)(e=>e.map(T)));return(0,c._)(e)}}function T(e){return new s.ZG(e.credential,e.generationDate.valueOf())}const{jK:D,gb:P}=r.Wy,{AB:M,Zx:x}=r.Hi,V=r.$p.q;function G(e,t,i,n){const r=new M,o=new x(r,Date.now),a=new V(new P(o,i),e),l=new V(new D(o,i),e),c=new f(i,e),d=new s.Kt(i,n);return new F(t,c,a,l,d)}class U{}var O=i(39307),N=i(19638);const j=Object.freeze({AddyIo:Object.freeze({id:"anonaddy",name:"Addy.io",validForSelfHosted:!0}),DuckDuckGo:Object.freeze({id:"duckduckgo",name:"DuckDuckGo",validForSelfHosted:!1}),Fastmail:Object.freeze({id:"fastmail",name:"Fastmail",validForSelfHosted:!0}),FirefoxRelay:Object.freeze({id:"firefoxrelay",name:"Firefox Relay",validForSelfHosted:!1}),ForwardEmail:Object.freeze({id:"forwardemail",name:"Forward Email",validForSelfHosted:!0}),SimpleLogin:Object.freeze({id:"simplelogin",name:"SimpleLogin",validForSelfHosted:!0})});var Y=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class X{constructor(e,t,i,n,r,s,o,a,l,c,d){this.accountService=e,this.navigation=t,this.catchall=i,this.effUsername=n,this.subaddress=r,this.addyIo=s,this.duckDuckGo=o,this.fastmail=a,this.firefoxRelay=l,this.forwardEmail=c,this.simpleLogin=d}generateUsername(e){return"catchall"===e.type?this.generateCatchall(e):"subaddress"===e.type?this.generateSubaddress(e):"forwarded"===e.type?this.generateForwarded(e):this.generateWord(e)}generateWord(e){return this.effUsername.generate(e)}generateSubaddress(e){return this.subaddress.generate(e)}generateCatchall(e){return this.catchall.generate(e)}generateForwarded(e){if(!e.forwardedService)return null;const t=this.toStoredOptions(e);switch(e.forwardedService){case j.AddyIo.id:case N.N.addyio:return this.addyIo.generate(t.forwarders.addyIo);case j.DuckDuckGo.id:return this.duckDuckGo.generate(t.forwarders.duckDuckGo);case j.Fastmail.id:return this.fastmail.generate(t.forwarders.fastmail);case j.FirefoxRelay.id:case N.N.mozilla:return this.firefoxRelay.generate(t.forwarders.firefoxRelay);case j.ForwardEmail.id:return this.forwardEmail.generate(t.forwarders.forwardEmail);case j.SimpleLogin.id:return this.simpleLogin.generate(t.forwarders.simpleLogin)}}getOptions$(){return this.accountService.activeAccount$.pipe((0,b.H)(e=>(0,I.z)([this.navigation.options$(e.id),this.navigation.defaults$(e.id),this.catchall.options$(e.id),this.catchall.defaults$(e.id),this.effUsername.options$(e.id),this.effUsername.defaults$(e.id),this.subaddress.options$(e.id),this.subaddress.defaults$(e.id),this.addyIo.options$(e.id),this.addyIo.defaults$(e.id),this.duckDuckGo.options$(e.id),this.duckDuckGo.defaults$(e.id),this.fastmail.options$(e.id),this.fastmail.defaults$(e.id),this.firefoxRelay.options$(e.id),this.firefoxRelay.defaults$(e.id),this.forwardEmail.options$(e.id),this.forwardEmail.defaults$(e.id),this.simpleLogin.options$(e.id),this.simpleLogin.defaults$(e.id)])),(0,l.T)(([e,t,i,n,r,s,o,a,l,c,d,u,h,A,p,g,v,m,f,y])=>this.toUsernameOptions({generator:null!=e?e:t,algorithms:{catchall:null!=i?i:n,effUsername:null!=r?r:s,subaddress:null!=o?o:a},forwarders:{addyIo:null!=l?l:c,duckDuckGo:null!=d?d:u,fastmail:null!=h?h:A,firefoxRelay:null!=p?p:g,forwardEmail:null!=v?v:m,simpleLogin:null!=f?f:y}})))}getOptions(){return(0,c._)(this.getOptions$())}saveOptions(e){return Y(this,void 0,void 0,function*(){const t=this.toStoredOptions(e),i=yield(0,c._)(this.accountService.activeAccount$);(yield this.saveGeneratorOptions(i.id,e.type,t))||(yield this.saveForwarderOptions(i.id,e.forwardedService,t)),yield this.saveNavigationOptions(i.id,t)})}saveNavigationOptions(e,t){return Y(this,void 0,void 0,function*(){const i=(0,B.y)(this.navigation.options$(e),this.navigation.defaults$(e)).pipe((0,l.T)(([e,t])=>null!=e?e:t));let n=yield(0,c._)(i);n=Object.assign(n,t.generator),yield this.navigation.saveOptions(e,n)})}saveGeneratorOptions(e,t,i){return Y(this,void 0,void 0,function*(){switch(t){case"word":return yield this.effUsername.saveOptions(e,i.algorithms.effUsername),!0;case"subaddress":return yield this.subaddress.saveOptions(e,i.algorithms.subaddress),!0;case"catchall":return yield this.catchall.saveOptions(e,i.algorithms.catchall),!0;default:return!1}})}saveForwarderOptions(e,t,i){return Y(this,void 0,void 0,function*(){switch(t){case j.AddyIo.id:case N.N.addyio:return yield this.addyIo.saveOptions(e,i.forwarders.addyIo),!0;case j.DuckDuckGo.id:return yield this.duckDuckGo.saveOptions(e,i.forwarders.duckDuckGo),!0;case j.Fastmail.id:return yield this.fastmail.saveOptions(e,i.forwarders.fastmail),!0;case j.FirefoxRelay.id:case N.N.mozilla:return yield this.firefoxRelay.saveOptions(e,i.forwarders.firefoxRelay),!0;case j.ForwardEmail.id:return yield this.forwardEmail.saveOptions(e,i.forwarders.forwardEmail),!0;case j.SimpleLogin.id:return yield this.simpleLogin.saveOptions(e,i.forwarders.simpleLogin),!0;default:return!1}})}toStoredOptions(e){const t={addyIo:{baseUrl:e.forwardedAnonAddyBaseUrl,token:e.forwardedAnonAddyApiToken,domain:e.forwardedAnonAddyDomain,website:e.website},duckDuckGo:{token:e.forwardedDuckDuckGoToken,website:e.website},fastmail:{token:e.forwardedFastmailApiToken,website:e.website},firefoxRelay:{token:e.forwardedFirefoxApiToken,website:e.website},forwardEmail:{token:e.forwardedForwardEmailApiToken,domain:e.forwardedForwardEmailDomain,website:e.website},simpleLogin:{token:e.forwardedSimpleLoginApiKey,baseUrl:e.forwardedSimpleLoginBaseUrl,website:e.website}};return{generator:{username:e.type,forwarder:e.forwardedService},algorithms:{effUsername:{wordCapitalize:e.wordCapitalize,wordIncludeNumber:e.wordIncludeNumber,website:e.website},subaddress:{subaddressType:e.subaddressType,subaddressEmail:e.subaddressEmail,website:e.website},catchall:{catchallType:e.catchallType,catchallDomain:e.catchallDomain,website:e.website}},forwarders:t}}toUsernameOptions(e){return{type:e.generator.username,wordCapitalize:e.algorithms.effUsername.wordCapitalize,wordIncludeNumber:e.algorithms.effUsername.wordIncludeNumber,subaddressType:e.algorithms.subaddress.subaddressType,subaddressEmail:e.algorithms.subaddress.subaddressEmail,catchallType:e.algorithms.catchall.catchallType,catchallDomain:e.algorithms.catchall.catchallDomain,forwardedService:e.generator.forwarder,forwardedAnonAddyApiToken:e.forwarders.addyIo.token,forwardedAnonAddyDomain:e.forwarders.addyIo.domain,forwardedAnonAddyBaseUrl:e.forwarders.addyIo.baseUrl,forwardedDuckDuckGoToken:e.forwarders.duckDuckGo.token,forwardedFirefoxApiToken:e.forwarders.firefoxRelay.token,forwardedFastmailApiToken:e.forwarders.fastmail.token,forwardedForwardEmailApiToken:e.forwarders.forwardEmail.token,forwardedForwardEmailDomain:e.forwarders.forwardEmail.domain,forwardedSimpleLoginApiKey:e.forwarders.simpleLogin.token,forwardedSimpleLoginBaseUrl:e.forwarders.simpleLogin.baseUrl}}}const{AB:z,QS:L,Mt:W,Lq:K}=r.Hi,Z=r.$p.q,{B:H,Vm:J,KQ:q,ji:$}=r.Wy;function _(e,t,i,n,s,o,a){const l=new z,c=new O.e(e,t),d=new L(l),u=new W(l),h=new K,A=new Z(new q(d,a),s),p=new Z(new J(h,u,a),s),g=new Z(new H(h,u,a),s),v=new Z(new $(r.IQ.AddyIo,c,t,n,i,a),s),m=new Z(new $(r.IQ.DuckDuckGo,c,t,n,i,a),s),y=new Z(new $(r.IQ.Fastmail,c,t,n,i,a),s),b=new Z(new $(r.IQ.FirefoxRelay,c,t,n,i,a),s),C=new Z(new $(r.IQ.ForwardEmail,c,t,n,i,a),s),I=new Z(new $(r.IQ.SimpleLogin,c,t,n,i,a),s),w=new f(a,s);return new X(o,w,g,A,p,v,m,y,b,C,I)}},25740(e,t,i){"use strict";i.d(t,{$:()=>s});var n=i(14041),r=i(50700);class s{constructor(e){this.i18nService=e}transform(e,t,i,n){return this.i18nService.t(e,t,i,n)}}s.ɵfac=function(e){return new(e||s)(n.rXU(r.W,16))},s.ɵpipe=n.EJ8({name:"i18n",type:s,pure:!0})},36801(e,t,i){"use strict";i.d(t,{$Z:()=>o.$,aZ:()=>r,F:()=>s});var n=i(11217);class r extends n.nKC{}const s=e=>e;var o=i(25740)},69592(e,t,i){"use strict";i.d(t,{w:()=>p});var n=i(68108),r=i(3633),s=i(66523),o=i(61325),a=i(84330),l=i(14041),c=i(35500),d=i(5556),u=i(36288),h=i(78952),A=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class p{constructor(e,t,i,n,r){this.copyCipherFieldService=e,this.accountService=t,this.cipherService=i,this.menuItemComponent=n,this.iconButtonComponent=r,this.disabled=null}get hidden(){return this.disabled&&this.menuItemComponent}copy(){return A(this,void 0,void 0,function*(){const e=yield this.getValueToCopy();yield this.copyCipherFieldService.copy(null!=e?e:"",this.action,this.cipher)})}ngOnChanges(){return A(this,void 0,void 0,function*(){yield this.updateDisabledState()})}updateDisabledState(){return A(this,void 0,void 0,function*(){var e,t;this.disabled=!this.cipher||!this.hasValueToCopy()||"totp"===this.action&&!(yield this.copyCipherFieldService.totpAllowed(this.cipher))||null,this.iconButtonComponent&&this.iconButtonComponent.disabled.set(null!==(e=this.disabled)&&void 0!==e&&e),this.menuItemComponent&&(this.menuItemComponent.disabled=null!==(t=this.disabled)&&void 0!==t&&t)})}hasValueToCopy(){return o.n.hasCopyableValue(this.cipher,this.action)}getValueToCopy(){return A(this,void 0,void 0,function*(){var e,t,i,a,l,c,d,u,h,A,p,g,v,m,f,y,b,C,I,w,B,E,S,Q,k,R,F;let T;if(o.n.isCipherListView(this.cipher)){const e=yield(0,n._)(this.accountService.activeAccount$.pipe(r.F6)),t=yield this.cipherService.get((0,s.zw)(this.cipher.id),e);T=yield this.cipherService.decrypt(t,e)}else T=this.cipher;switch(this.action){case"username":return(null===(e=T.login)||void 0===e?void 0:e.username)||(null===(t=T.identity)||void 0===t?void 0:t.username);case"password":return null===(i=T.login)||void 0===i?void 0:i.password;case"totp":return null===(a=T.login)||void 0===a?void 0:a.totp;case"cardNumber":return null===(l=T.card)||void 0===l?void 0:l.number;case"securityCode":return null===(c=T.card)||void 0===c?void 0:c.code;case"email":return null===(d=T.identity)||void 0===d?void 0:d.email;case"phone":return null===(u=T.identity)||void 0===u?void 0:u.phone;case"address":return null===(h=T.identity)||void 0===h?void 0:h.fullAddressForCopy;case"secureNote":return T.notes;case"privateKey":return null===(A=T.sshKey)||void 0===A?void 0:A.privateKey;case"publicKey":return null===(p=T.sshKey)||void 0===p?void 0:p.publicKey;case"keyFingerprint":return null===(g=T.sshKey)||void 0===g?void 0:g.keyFingerprint;case"nameOnAccount":return null===(v=T.bankAccount)||void 0===v?void 0:v.nameOnAccount;case"accountNumber":return null===(m=T.bankAccount)||void 0===m?void 0:m.accountNumber;case"routingNumber":return null===(f=T.bankAccount)||void 0===f?void 0:f.routingNumber;case"branchNumber":return null===(y=T.bankAccount)||void 0===y?void 0:y.branchNumber;case"pin":return null===(b=T.bankAccount)||void 0===b?void 0:b.pin;case"iban":return null===(C=T.bankAccount)||void 0===C?void 0:C.iban;case"swiftCode":return null===(I=T.bankAccount)||void 0===I?void 0:I.swiftCode;case"firstNameLicense":return null===(w=T.driversLicense)||void 0===w?void 0:w.firstName;case"middleNameLicense":return null===(B=T.driversLicense)||void 0===B?void 0:B.middleName;case"lastNameLicense":return null===(E=T.driversLicense)||void 0===E?void 0:E.lastName;case"licenseNumber":return null===(S=T.driversLicense)||void 0===S?void 0:S.licenseNumber;case"passportNumber":return null===(Q=T.passport)||void 0===Q?void 0:Q.passportNumber;case"nationalIdentificationNumber":return null===(k=T.passport)||void 0===k?void 0:k.nationalIdentificationNumber;case"givenName":return null===(R=T.passport)||void 0===R?void 0:R.givenName;case"surname":return null===(F=T.passport)||void 0===F?void 0:F.surname;default:return null}})}}p.ɵfac=function(e){return new(e||p)(l.rXU(a.nR),l.rXU(c.D),l.rXU(d.p),l.rXU(h.S,8),l.rXU(u.s,8))},p.ɵdir=l.FsC({type:p,selectors:[["","appCopyField",""]],hostVars:3,hostBindings:function(e,t){1&e&&l.bIt("click",function(){return t.copy()}),2&e&&(l.BMQ("disabled",t.disabled),l.AVh("tw-hidden",t.hidden))},inputs:{action:[0,"appCopyField","action"],cipher:"cipher"},features:[l.OA$]})},14551(e,t,i){"use strict";i.d(t,{T:()=>L});var n=i(24590),r=i(94735),s=i(81356),o=i(61325),a=i(98403),l=i(22191),c=i(90647),d=i(69592),u=i(14041),h=i(50700),A=i(4017),p=i(36288),g=i(13496),v=i(73848),m=i(78952),f=i(25740);function y(e,t){if(1&e&&(u.nrm(0,"button",8),u.nI1(1,"i18n")),2&e){u.XpG(3);const e=u.r8f(0);u.Y8G("cipher",e)("label",u.bMT(1,2,"copyPassword"))}}function b(e,t){if(1&e&&(u.j41(0,"bit-item-action"),u.nrm(1,"button",7),u.nI1(2,"i18n"),u.k0s(),u.j41(3,"bit-item-action"),u.nVh(4,y,2,4,"button",8),u.k0s(),u.j41(5,"bit-item-action"),u.nrm(6,"button",9),u.nI1(7,"i18n"),u.k0s()),2&e){u.XpG(2);const e=u.r8f(0);u.R7$(),u.Y8G("cipher",e)("label",u.bMT(2,5,"copyUsername")),u.R7$(3),u.vxM(e.viewPassword?4:-1),u.R7$(2),u.Y8G("cipher",e)("label",u.bMT(7,7,"copyVerificationCode"))}}function C(e,t){if(1&e&&(u.nrm(0,"button",10),u.nI1(1,"i18n")),2&e){const e=u.XpG(3),t=u.r8f(0);u.Y8G("label",u.brH(1,3,"copyFieldCipherName",e.singleCopyableLogin.key,t.name))("appCopyField",e.singleCopyableLogin.field)("cipher",t)}}function I(e,t){if(1&e&&(u.j41(0,"button",13),u.EFF(1),u.nI1(2,"i18n"),u.k0s()),2&e){u.XpG(4);const e=u.r8f(0);u.Y8G("cipher",e),u.R7$(),u.SpI(" ",u.bMT(2,2,"copyPassword")," ")}}function w(e,t){if(1&e&&(u.nrm(0,"button",11),u.nI1(1,"i18n"),u.nI1(2,"i18n"),u.j41(3,"bit-menu",null,0)(5,"button",12),u.EFF(6),u.nI1(7,"i18n"),u.k0s(),u.nVh(8,I,3,4,"button",13),u.j41(9,"button",14),u.EFF(10),u.nI1(11,"i18n"),u.k0s()()),2&e){const e=u.sdS(4),t=u.XpG(3),i=u.r8f(0);u.Y8G("label",t.hasLoginValues?u.i5U(1,8,"copyInfoTitle",i.name):u.bMT(2,11,"noValuesToCopy"))("disabled",!t.hasLoginValues)("bitMenuTriggerFor",e),u.R7$(5),u.Y8G("cipher",i),u.R7$(),u.SpI(" ",u.bMT(7,13,"copyUsername")," "),u.R7$(2),u.vxM(i.viewPassword?8:-1),u.R7$(),u.Y8G("cipher",i),u.R7$(),u.SpI(" ",u.bMT(11,15,"copyVerificationCode")," ")}}function B(e,t){if(1&e&&(u.j41(0,"bit-item-action"),u.nVh(1,C,2,7,"button",10),u.nVh(2,w,12,17),u.k0s()),2&e){const e=u.XpG(2);u.R7$(),u.vxM(e.singleCopyableLogin?1:-1),u.R7$(),u.vxM(e.singleCopyableLogin?-1:2)}}function E(e,t){if(1&e&&u.nVh(0,b,8,9)(1,B,3,2,"bit-item-action"),2&e){const e=u.XpG();u.vxM(e.showQuickCopyActions()?0:1)}}function S(e,t){if(1&e&&(u.j41(0,"bit-item-action"),u.nrm(1,"button",15),u.nI1(2,"i18n"),u.k0s(),u.j41(3,"bit-item-action"),u.nrm(4,"button",16),u.nI1(5,"i18n"),u.k0s()),2&e){u.XpG(2);const e=u.r8f(0);u.R7$(),u.Y8G("cipher",e)("label",u.bMT(2,4,"copyNumber")),u.R7$(3),u.Y8G("cipher",e)("label",u.bMT(5,6,"copySecurityCode"))}}function Q(e,t){if(1&e&&(u.nrm(0,"button",17),u.nI1(1,"i18n")),2&e){const e=u.XpG(3),t=u.r8f(0);u.Y8G("label",u.brH(1,3,"copyFieldCipherName",e.singleCopyableCard.key,t.name))("appCopyField",e.singleCopyableCard.field)("cipher",t)}}function k(e,t){if(1&e&&(u.nrm(0,"button",11),u.nI1(1,"i18n"),u.nI1(2,"i18n"),u.j41(3,"bit-menu",null,1)(5,"button",18),u.EFF(6),u.nI1(7,"i18n"),u.k0s(),u.j41(8,"button",19),u.EFF(9),u.nI1(10,"i18n"),u.k0s()()),2&e){const e=u.sdS(4),t=u.XpG(3),i=u.r8f(0);u.Y8G("label",t.hasCardValues?u.i5U(1,7,"copyInfoTitle",i.name):u.bMT(2,10,"noValuesToCopy"))("disabled",!t.hasCardValues)("bitMenuTriggerFor",e),u.R7$(5),u.Y8G("cipher",i),u.R7$(),u.SpI(" ",u.bMT(7,12,"copyNumber")," "),u.R7$(2),u.Y8G("cipher",i),u.R7$(),u.SpI(" ",u.bMT(10,14,"copySecurityCode")," ")}}function R(e,t){if(1&e&&(u.j41(0,"bit-item-action"),u.nVh(1,Q,2,7,"button",17),u.nVh(2,k,11,16),u.k0s()),2&e){const e=u.XpG(2);u.R7$(),u.vxM(e.singleCopyableCard?1:-1),u.R7$(),u.vxM(e.singleCopyableCard?-1:2)}}function F(e,t){if(1&e&&u.nVh(0,S,6,8)(1,R,3,2,"bit-item-action"),2&e){const e=u.XpG();u.vxM(e.showQuickCopyActions()?0:1)}}function T(e,t){if(1&e&&(u.nrm(0,"button",17),u.nI1(1,"i18n")),2&e){const e=u.XpG(2),t=u.r8f(0);u.Y8G("label",u.brH(1,3,"copyFieldCipherName",e.singleCopyableIdentity.key,t.name))("appCopyField",e.singleCopyableIdentity.field)("cipher",t)}}function D(e,t){if(1&e&&(u.nrm(0,"button",11),u.nI1(1,"i18n"),u.nI1(2,"i18n"),u.j41(3,"bit-menu",null,2)(5,"button",12),u.EFF(6),u.nI1(7,"i18n"),u.k0s(),u.j41(8,"button",20),u.EFF(9),u.nI1(10,"i18n"),u.k0s(),u.j41(11,"button",21),u.EFF(12),u.nI1(13,"i18n"),u.k0s(),u.j41(14,"button",22),u.EFF(15),u.nI1(16,"i18n"),u.k0s()()),2&e){const e=u.sdS(4),t=u.XpG(2),i=u.r8f(0);u.Y8G("label",t.hasIdentityValues?u.i5U(1,11,"copyInfoTitle",i.name):u.bMT(2,14,"noValuesToCopy"))("disabled",!t.hasIdentityValues)("bitMenuTriggerFor",e),u.R7$(5),u.Y8G("cipher",i),u.R7$(),u.SpI(" ",u.bMT(7,16,"copyUsername")," "),u.R7$(2),u.Y8G("cipher",i),u.R7$(),u.SpI(" ",u.bMT(10,18,"copyEmail")," "),u.R7$(2),u.Y8G("cipher",i),u.R7$(),u.SpI(" ",u.bMT(13,20,"copyPhone")," "),u.R7$(2),u.Y8G("cipher",i),u.R7$(),u.SpI(" ",u.bMT(16,22,"copyAddress")," ")}}function P(e,t){if(1&e&&(u.j41(0,"bit-item-action"),u.nVh(1,T,2,7,"button",17),u.nVh(2,D,17,24),u.k0s()),2&e){const e=u.XpG();u.R7$(),u.vxM(e.singleCopyableIdentity?1:-1),u.R7$(),u.vxM(e.singleCopyableIdentity?-1:2)}}function M(e,t){if(1&e&&(u.j41(0,"bit-item-action"),u.nrm(1,"button",23),u.nI1(2,"i18n"),u.nI1(3,"i18n"),u.k0s()),2&e){const e=u.XpG(),t=u.r8f(0);u.R7$(),u.Y8G("label",e.hasSecureNoteValue?u.i5U(2,2,"copyNoteTitle",t.name):u.bMT(3,5,"noValuesToCopy"))("cipher",t)}}function x(e,t){if(1&e&&(u.j41(0,"bit-item-action"),u.nrm(1,"button",11),u.nI1(2,"i18n"),u.nI1(3,"i18n"),u.j41(4,"bit-menu",null,3)(6,"button",24),u.EFF(7),u.nI1(8,"i18n"),u.k0s(),u.j41(9,"button",25),u.EFF(10),u.nI1(11,"i18n"),u.k0s(),u.j41(12,"button",26),u.EFF(13),u.nI1(14,"i18n"),u.k0s()()()),2&e){const e=u.sdS(5),t=u.XpG(),i=u.r8f(0);u.R7$(),u.Y8G("label",t.hasSshKeyValues?u.i5U(2,9,"copyInfoTitle",i.name):u.bMT(3,12,"noValuesToCopy"))("disabled",!t.hasSshKeyValues)("bitMenuTriggerFor",e),u.R7$(5),u.Y8G("cipher",i),u.R7$(),u.SpI(" ",u.bMT(8,14,"copyPrivateKey")," "),u.R7$(2),u.Y8G("cipher",i),u.R7$(),u.SpI(" ",u.bMT(11,16,"copyPublicKey")," "),u.R7$(2),u.Y8G("cipher",i),u.R7$(),u.SpI(" ",u.bMT(14,18,"copyFingerprint")," ")}}function V(e,t){if(1&e&&(u.nrm(0,"button",17),u.nI1(1,"i18n")),2&e){const e=u.XpG(2),t=u.r8f(0);u.Y8G("label",u.brH(1,3,"copyFieldCipherName",e.singleCopyableBankAccount.key,t.name))("appCopyField",e.singleCopyableBankAccount.field)("cipher",t)}}function G(e,t){if(1&e&&(u.nrm(0,"button",11),u.nI1(1,"i18n"),u.nI1(2,"i18n"),u.j41(3,"bit-menu",null,4)(5,"button",27),u.EFF(6),u.nI1(7,"i18n"),u.k0s(),u.j41(8,"button",28),u.EFF(9),u.nI1(10,"i18n"),u.k0s(),u.j41(11,"button",29),u.EFF(12),u.nI1(13,"i18n"),u.k0s(),u.j41(14,"button",30),u.EFF(15),u.nI1(16,"i18n"),u.k0s(),u.j41(17,"button",31),u.EFF(18),u.nI1(19,"i18n"),u.k0s(),u.j41(20,"button",32),u.EFF(21),u.nI1(22,"i18n"),u.k0s(),u.j41(23,"button",33),u.EFF(24),u.nI1(25,"i18n"),u.k0s()()),2&e){const e=u.sdS(4),t=u.XpG(2),i=u.r8f(0);u.Y8G("label",t.hasBankAccountValues?u.i5U(1,17,"copyInfoTitle",i.name):u.bMT(2,20,"noValuesToCopy"))("disabled",!t.hasBankAccountValues)("bitMenuTriggerFor",e),u.R7$(5),u.Y8G("cipher",i),u.R7$(),u.SpI(" ",u.bMT(7,22,"copyNameOnAccount")," "),u.R7$(2),u.Y8G("cipher",i),u.R7$(),u.SpI(" ",u.bMT(10,24,"copyAccountNumber")," "),u.R7$(2),u.Y8G("cipher",i),u.R7$(),u.SpI(" ",u.bMT(13,26,"copyRoutingNumber")," "),u.R7$(2),u.Y8G("cipher",i),u.R7$(),u.SpI(" ",u.bMT(16,28,"copyBranchNumber")," "),u.R7$(2),u.Y8G("cipher",i),u.R7$(),u.SpI(" ",u.bMT(19,30,"copyPin")," "),u.R7$(2),u.Y8G("cipher",i),u.R7$(),u.SpI(" ",u.bMT(22,32,"copyIban")," "),u.R7$(2),u.Y8G("cipher",i),u.R7$(),u.SpI(" ",u.bMT(25,34,"copySwiftCode")," ")}}function U(e,t){if(1&e&&(u.j41(0,"bit-item-action"),u.nVh(1,V,2,7,"button",17)(2,G,26,36),u.k0s()),2&e){const e=u.XpG();u.R7$(),u.vxM(e.singleCopyableBankAccount?1:2)}}function O(e,t){if(1&e&&(u.nrm(0,"button",17),u.nI1(1,"i18n")),2&e){const e=u.XpG(2),t=u.r8f(0);u.Y8G("label",u.brH(1,3,"copyFieldCipherName",e.singleCopyableDriversLicense.key,t.name))("appCopyField",e.singleCopyableDriversLicense.field)("cipher",t)}}function N(e,t){if(1&e&&(u.nrm(0,"button",11),u.nI1(1,"i18n"),u.nI1(2,"i18n"),u.j41(3,"bit-menu",null,5)(5,"button",34),u.EFF(6),u.nI1(7,"i18n"),u.k0s(),u.j41(8,"button",35),u.EFF(9),u.nI1(10,"i18n"),u.k0s(),u.j41(11,"button",36),u.EFF(12),u.nI1(13,"i18n"),u.k0s(),u.j41(14,"button",37),u.EFF(15),u.nI1(16,"i18n"),u.k0s()()),2&e){const e=u.sdS(4),t=u.XpG(2),i=u.r8f(0);u.Y8G("label",t.hasDriversLicenseValues?u.i5U(1,11,"copyInfoTitle",i.name):u.bMT(2,14,"noValuesToCopy"))("disabled",!t.hasDriversLicenseValues)("bitMenuTriggerFor",e),u.R7$(5),u.Y8G("cipher",i),u.R7$(),u.SpI(" ",u.bMT(7,16,"copyFirstName")," "),u.R7$(2),u.Y8G("cipher",i),u.R7$(),u.SpI(" ",u.bMT(10,18,"copyMiddleName")," "),u.R7$(2),u.Y8G("cipher",i),u.R7$(),u.SpI(" ",u.bMT(13,20,"copyLastName")," "),u.R7$(2),u.Y8G("cipher",i),u.R7$(),u.SpI(" ",u.bMT(16,22,"copyLicenseNumber")," ")}}function j(e,t){if(1&e&&(u.j41(0,"bit-item-action"),u.nVh(1,O,2,7,"button",17)(2,N,17,24),u.k0s()),2&e){const e=u.XpG();u.R7$(),u.vxM(e.singleCopyableDriversLicense?1:2)}}function Y(e,t){if(1&e&&(u.nrm(0,"button",17),u.nI1(1,"i18n")),2&e){const e=u.XpG(2),t=u.r8f(0);u.Y8G("label",u.brH(1,3,"copyFieldCipherName",e.singleCopyablePassport.key,t.name))("appCopyField",e.singleCopyablePassport.field)("cipher",t)}}function X(e,t){if(1&e&&(u.nrm(0,"button",11),u.nI1(1,"i18n"),u.nI1(2,"i18n"),u.j41(3,"bit-menu",null,6)(5,"button",38),u.EFF(6),u.nI1(7,"i18n"),u.k0s(),u.j41(8,"button",39),u.EFF(9),u.nI1(10,"i18n"),u.k0s(),u.j41(11,"button",40),u.EFF(12),u.nI1(13,"i18n"),u.k0s(),u.j41(14,"button",41),u.EFF(15),u.nI1(16,"i18n"),u.k0s()()),2&e){const e=u.sdS(4),t=u.XpG(2),i=u.r8f(0);u.Y8G("label",t.hasPassportValues?u.i5U(1,11,"copyInfoTitle",i.name):u.bMT(2,14,"noValuesToCopy"))("disabled",!t.hasPassportValues)("bitMenuTriggerFor",e),u.R7$(5),u.Y8G("cipher",i),u.R7$(),u.SpI(" ",u.bMT(7,16,"copyFirstName")," "),u.R7$(2),u.Y8G("cipher",i),u.R7$(),u.SpI(" ",u.bMT(10,18,"copyLastName")," "),u.R7$(2),u.Y8G("cipher",i),u.R7$(),u.SpI(" ",u.bMT(13,20,"copyPassportNumber")," "),u.R7$(2),u.Y8G("cipher",i),u.R7$(),u.SpI(" ",u.bMT(16,22,"copyNationalIdentificationNumber")," ")}}function z(e,t){if(1&e&&(u.j41(0,"bit-item-action"),u.nVh(1,Y,2,7,"button",17)(2,X,17,24),u.k0s()),2&e){const e=u.XpG();u.R7$(),u.vxM(e.singleCopyablePassport?1:2)}}class L{constructor(e){this.i18nService=e,this.cipher=n.hFB.required(),this.showQuickCopyActions=(0,n.hFB)(!1),this.CipherViewLikeUtils=o.n,this.CipherType=s.gC}get singleCopyableLogin(){const e=this.cipher(),t=this.getLoginCopyableItems(e);return this.findSingleCopyableItem(e,t)}getLoginCopyableItems(e){const t=[{key:"username",field:"username"},{key:"password",field:"password"},{key:"verificationCodeTotp",field:"totp"}];return e.viewPassword?t:t.filter(e=>"password"!==e.field)}get singleCopyableCard(){return this.findSingleCopyableItem(this.cipher(),[{key:"securityCode",field:"securityCode"},{key:"cardNumber",field:"cardNumber"}])}get singleCopyableIdentity(){return this.findSingleCopyableItem(this.cipher(),[{key:"address",field:"address"},{key:"email",field:"email"},{key:"username",field:"username"},{key:"phone",field:"phone"}])}get singleCopyableBankAccount(){return this.findSingleCopyableItem(this.cipher(),[{key:"nameOnAccount",field:"nameOnAccount"},{key:"accountNumber",field:"accountNumber"},{key:"bankRoutingNumber",field:"routingNumber"},{key:"branchNumber",field:"branchNumber"},{key:"pin",field:"pin"},{key:"iban",field:"iban"},{key:"swiftCode",field:"swiftCode"}])}get singleCopyableDriversLicense(){return this.findSingleCopyableItem(this.cipher(),[{key:"firstName",field:"firstNameLicense"},{key:"middleName",field:"middleNameLicense"},{key:"lastName",field:"lastNameLicense"},{key:"licenseNumber",field:"licenseNumber"}])}get singleCopyablePassport(){return this.findSingleCopyableItem(this.cipher(),[{key:"givenName",field:"givenName"},{key:"surname",field:"surname"},{key:"passportNumber",field:"passportNumber"},{key:"nationalIdentificationNumber",field:"nationalIdentificationNumber"}])}findSingleCopyableItem(e,t){const i=t.filter(({field:t})=>o.n.hasCopyableValue(e,t));return 1===i.length?Object.assign(Object.assign({},i[0]),{key:this.i18nService.t(i[0].key)}):null}get hasLoginValues(){return this.getNumberOfLoginValues(this.cipher())>0}get hasCardValues(){return this.getNumberOfCardValues(this.cipher())>0}get hasIdentityValues(){return this.getNumberOfIdentityValues(this.cipher())>0}get hasSecureNoteValue(){return this.getNumberOfSecureNoteValues(this.cipher())>0}get hasSshKeyValues(){return this.getNumberOfSshKeyValues(this.cipher())>0}get hasBankAccountValues(){return this.getNumberOfBankAccountValues(this.cipher())>0}get hasDriversLicenseValues(){return this.getNumberOfDriversLicenseValues(this.cipher())>0}get hasPassportValues(){return this.getNumberOfPassportValues(this.cipher())>0}getNumberOfLoginValues(e){return this.getLoginCopyableItems(e).map(t=>o.n.hasCopyableValue(e,t.field)).filter(Boolean).length}getNumberOfCardValues(e){if(o.n.isCipherListView(e)){const t=["CardSecurityCode","CardNumber"];return e.copyableFields.filter(e=>t.includes(e)).length}return[e.card.code,e.card.number].filter(Boolean).length}getNumberOfIdentityValues(e){if(o.n.isCipherListView(e)){const t=["IdentityAddress","IdentityEmail","IdentityUsername","IdentityPhone"];return e.copyableFields.filter(e=>t.includes(e)).length}return[e.identity.fullAddressForCopy,e.identity.email,e.identity.username,e.identity.phone].filter(Boolean).length}getNumberOfSecureNoteValues(e){return o.n.isCipherListView(e)?e.copyableFields.includes("SecureNotes")?1:0:e.notes?1:0}getNumberOfPassportValues(e){var t,i,n,r;if(o.n.isCipherListView(e)){const t=["PassportGivenName","PassportSurname","PassportPassportNumber","PassportNationalIdentificationNumber"];return e.copyableFields.filter(e=>t.includes(e)).length}return[null===(t=e.passport)||void 0===t?void 0:t.givenName,null===(i=e.passport)||void 0===i?void 0:i.surname,null===(n=e.passport)||void 0===n?void 0:n.passportNumber,null===(r=e.passport)||void 0===r?void 0:r.nationalIdentificationNumber].filter(Boolean).length}getNumberOfSshKeyValues(e){return o.n.isCipherListView(e)?e.copyableFields.includes("SshKey")?1:0:[e.sshKey.privateKey,e.sshKey.publicKey,e.sshKey.keyFingerprint].filter(Boolean).length}getNumberOfBankAccountValues(e){if(o.n.isCipherListView(e)){const t=["BankAccountNameOnAccount","BankAccountAccountNumber","BankAccountRoutingNumber","BankAccountBranchNumber","BankAccountPin","BankAccountIban","BankAccountSwift"];return e.copyableFields.filter(e=>t.includes(e)).length}return[e.bankAccount.nameOnAccount,e.bankAccount.accountNumber,e.bankAccount.routingNumber,e.bankAccount.branchNumber,e.bankAccount.pin,e.bankAccount.iban,e.bankAccount.swiftCode].filter(Boolean).length}getNumberOfDriversLicenseValues(e){var t,i,n,r;if(o.n.isCipherListView(e)){const t=["DriversLicenseFirstName","DriversLicenseMiddleName","DriversLicenseLastName","DriversLicenseLicenseNumber"];return e.copyableFields.filter(e=>t.includes(e)).length}return[null===(t=e.driversLicense)||void 0===t?void 0:t.firstName,null===(i=e.driversLicense)||void 0===i?void 0:i.middleName,null===(n=e.driversLicense)||void 0===n?void 0:n.lastName,null===(r=e.driversLicense)||void 0===r?void 0:r.licenseNumber].filter(Boolean).length}}L.ɵfac=function(e){return new(e||L)(u.rXU(h.W))},L.ɵcmp=u.VBU({type:L,selectors:[["vault-item-copy-actions"]],inputs:{cipher:[1,"cipher"],showQuickCopyActions:[1,"showQuickCopyActions"]},decls:9,vars:9,consts:[["loginOptions",""],["cardOptions",""],["identityOptions",""],["sshKeyOptions",""],["bankAccountOptions",""],["driversLicenseOptions",""],["passportOptions",""],["type","button","bitIconButton","bwi-user","size","small","appCopyField","username",3,"cipher","label"],["type","button","bitIconButton","bwi-key","size","small","appCopyField","password",3,"cipher","label"],["type","button","bitIconButton","bwi-clock","size","small","appCopyField","totp",3,"cipher","label"],["type","button","bitIconButton","bwi-clone","size","small",3,"label","appCopyField","cipher"],["type","button","bitIconButton","bwi-clone","size","small",3,"label","disabled","bitMenuTriggerFor"],["type","button","bitMenuItem","","appCopyField","username",3,"cipher"],["type","button","bitMenuItem","","appCopyField","password",3,"cipher"],["type","button","bitMenuItem","","appCopyField","totp",3,"cipher"],["type","button","bitIconButton","bwi-hashtag","size","small","appCopyField","cardNumber",3,"cipher","label"],["type","button","bitIconButton","bwi-key","size","small","appCopyField","securityCode",3,"cipher","label"],["type","button","bitIconButton","bwi-clone","size","small","showToast","",3,"label","appCopyField","cipher"],["type","button","bitMenuItem","","appCopyField","cardNumber",3,"cipher"],["type","button","bitMenuItem","","appCopyField","securityCode",3,"cipher"],["type","button","bitMenuItem","","appCopyField","email",3,"cipher"],["type","button","bitMenuItem","","appCopyField","phone",3,"cipher"],["type","button","bitMenuItem","","appCopyField","address",3,"cipher"],["type","button","bitIconButton","bwi-clone","size","small","appCopyField","secureNote",3,"label","cipher"],["type","button","bitMenuItem","","appCopyField","privateKey",3,"cipher"],["type","button","bitMenuItem","","appCopyField","publicKey",3,"cipher"],["type","button","bitMenuItem","","appCopyField","keyFingerprint",3,"cipher"],["type","button","bitMenuItem","","appCopyField","nameOnAccount",3,"cipher"],["type","button","bitMenuItem","","appCopyField","accountNumber",3,"cipher"],["type","button","bitMenuItem","","appCopyField","routingNumber",3,"cipher"],["type","button","bitMenuItem","","appCopyField","branchNumber",3,"cipher"],["type","button","bitMenuItem","","appCopyField","pin",3,"cipher"],["type","button","bitMenuItem","","appCopyField","iban",3,"cipher"],["type","button","bitMenuItem","","appCopyField","swiftCode",3,"cipher"],["type","button","bitMenuItem","","appCopyField","firstNameLicense",3,"cipher"],["type","button","bitMenuItem","","appCopyField","middleNameLicense",3,"cipher"],["type","button","bitMenuItem","","appCopyField","lastNameLicense",3,"cipher"],["type","button","bitMenuItem","","appCopyField","licenseNumber",3,"cipher"],["type","button","bitMenuItem","","appCopyField","givenName",3,"cipher"],["type","button","bitMenuItem","","appCopyField","surname",3,"cipher"],["type","button","bitMenuItem","","appCopyField","passportNumber",3,"cipher"],["type","button","bitMenuItem","","appCopyField","nationalIdentificationNumber",3,"cipher"]],template:function(e,t){if(1&e&&(u.SS7(0),u.nVh(1,E,2,1),u.nVh(2,F,2,1),u.nVh(3,P,3,2,"bit-item-action"),u.nVh(4,M,4,7,"bit-item-action"),u.nVh(5,x,15,20,"bit-item-action"),u.nVh(6,U,3,1,"bit-item-action"),u.nVh(7,j,3,1,"bit-item-action"),u.nVh(8,z,3,1,"bit-item-action")),2&e){const e=u.bH3(t.cipher());u.R7$(),u.vxM(t.CipherViewLikeUtils.getType(e)===t.CipherType.Login?1:-1),u.R7$(),u.vxM(t.CipherViewLikeUtils.getType(e)===t.CipherType.Card?2:-1),u.R7$(),u.vxM(t.CipherViewLikeUtils.getType(e)===t.CipherType.Identity?3:-1),u.R7$(),u.vxM(t.CipherViewLikeUtils.getType(e)===t.CipherType.SecureNote?4:-1),u.R7$(),u.vxM(t.CipherViewLikeUtils.getType(e)===t.CipherType.SshKey?5:-1),u.R7$(),u.vxM(t.CipherViewLikeUtils.getType(e)===t.CipherType.BankAccount?6:-1),u.R7$(),u.vxM(t.CipherViewLikeUtils.getType(e)===t.CipherType.DriversLicense?7:-1),u.R7$(),u.vxM(t.CipherViewLikeUtils.getType(e)===t.CipherType.Passport?8:-1)}},dependencies:[a.k,A.D,l.Q,p.s,r.p,c.M,g.Z,v.O,m.S,d.w,f.$],encapsulation:2,changeDetection:0})},75697(e,t,i){"use strict";i.d(t,{P:()=>A});var n=i(84522),r=i(94735),s=i(14848),o=i(58604),a=i(14041),l=i(50700),c=i(54471);class d{transform(e,t=25,i=!1,n="..."){return e.length<=t?e:(t-=n.length,i&&e.length>t&&e.indexOf(" ")>0&&(t=e.substring(0,t).lastIndexOf(" ")),e.substring(0,t)+n)}}d.ɵfac=function(e){return new(e||d)},d.ɵpipe=a.EJ8({name:"ellipsis",type:d,pure:!0});var u=i(25740);const h=e=>({organizationId:e});class A{constructor(e){this.i18nService=e}ngOnChanges(){null==this.organizationName||""===this.organizationName?this.name=this.i18nService.t("me"):this.name=this.organizationName}get organizationIdLink(){var e;return null!==(e=this.organizationId)&&void 0!==e?e:s.I_}}A.ɵfac=function(e){return new(e||A)(a.rXU(l.W))},A.ɵcmp=a.VBU({type:A,selectors:[["app-org-badge"]],inputs:{organizationId:"organizationId",organizationName:"organizationName",disabled:"disabled"},features:[a.OA$],decls:3,vars:13,consts:[["bit-chip-action","","type","button","routerLink","","queryParamsHandling","merge",3,"disabled","appA11yTitle","queryParams","label"]],template:function(e,t){1&e&&(a.nrm(0,"button",0),a.nI1(1,"i18n"),a.nI1(2,"ellipsis")),2&e&&a.Y8G("appA11yTitle",a.mNQ(a.i5U(1,5,"ownerBadgeA11yDescription",t.name)))("disabled",t.disabled)("queryParams",a.eq3(11,h,t.organizationIdLink))("label",a.i5U(2,8,t.name,13))},dependencies:[n.iI,n.Wk,r.p,c.C,o.g,d,u.$],encapsulation:2})},84330(e,t,i){"use strict";i.d(t,{nw:()=>_d,px:()=>Gl,np:()=>Vl,_J:()=>ql,iJ:()=>Hl,u8:()=>pd,Gc:()=>Cl,k1:()=>$d,NY:()=>_r,_A:()=>es,iH:()=>lu,xl:()=>du,vA:()=>au,vj:()=>Pd,E8:()=>eu,YA:()=>cu,vx:()=>ru,hI:()=>tl,vv:()=>ts,Wg:()=>dl,k:()=>Sr,f$:()=>yl,nR:()=>ne,Mr:()=>ge,Tp:()=>kl,Ws:()=>nl,cM:()=>rd,_8:()=>dd,eG:()=>Dc,Pq:()=>_c.P,yk:()=>Sl,qX:()=>H,tW:()=>Pc,l:()=>md,aC:()=>Fd,BR:()=>Rd,Vi:()=>Ta,Gh:()=>Mu,pG:()=>pu,$5:()=>Ad,ug:()=>Sd,cD:()=>yd,T6:()=>Rl.T,VH:()=>qd,rd:()=>Jd,DL:()=>sd,Qn:()=>$c,Jp:()=>fd,im:()=>su,IN:()=>Tl});var n=i(72135),r=i(69783),s=i(31857),o=i(47269),a=i(11217),l=i(5556);const c=new s.Ok(s.gc,"atRiskPasswords",{deserializer:e=>e,clearOn:["lock","logout"]});class d{constructor(e,t,i){this.taskService=e,this.cipherService=t,this.stateProvider=i}pendingTasks$(e){return(0,n.z)([this.taskService.pendingTasks$(e),this.cipherService.cipherViews$(e)]).pipe((0,r.T)(([e,t])=>e.filter(e=>{const i=t.find(t=>t.id===e.cipherId);return e.type===o.Wn.UpdateAtRiskCredential&&i&&i.edit&&i.viewPassword&&!i.isDeleted})))}completedTasks$(e){return this.taskService.completedTasks$(e).pipe((0,r.T)(e=>e.find(e=>e.type===o.Wn.UpdateAtRiskCredential)))}showCompletedTasksBanner$(e){return(0,n.z)([this.pendingTasks$(e),this.completedTasks$(e),this.atRiskPasswordState(e).state$]).pipe((0,r.T)(([e,t,i])=>{var n,r,s;const o=e.length>0,a=null!==(n=null==i?void 0:i.tasksBannerDismissed)&&void 0!==n&&n,l=null!==(r=null==i?void 0:i.hasInteractedWithTasks)&&void 0!==r&&r;return!!(o||l&&!a)&&!(!t||o||null!==(s=null==i?void 0:i.tasksBannerDismissed)&&void 0!==s&&s)}))}atRiskPasswordState(e){return this.stateProvider.getUser(e,c)}updateAtRiskPasswordState(e,t){this.atRiskPasswordState(e).update(()=>t)}}d.ɵfac=function(e){return new(e||d)(a.KVO(o.RB),a.KVO(l.p),a.KVO(s.v2))},d.ɵprov=a.jDH({token:d,factory:d.ɵfac});var u=i(73366),h=i(68108),A=i(78781),p=i(81356),g=i(84210),v=i(94735),m=i(3633),f=i(37579),y=i(29029),b=i(81573),C=i(26411),I=i(22191),w=i(14041),B=i(17898),E=i(37115),S=i(50700),Q=i(44075),k=i(69855),R=i(35500),F=i(49519),T=i(26657),D=i(38620),P=i(56898),M=i(7730),x=i(45635),V=i(67311),G=i(86226),U=i(19934),O=i(43759),N=i(76356),j=i(69896),Y=i(36288),X=i(25740),z=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class L{constructor(e,t,i,n,r,s,o){this.masterPasswordUnlockService=e,this.platformUtilsService=t,this.i18nService=i,this.formBuilder=n,this.dialogRef=r,this.toastService=s,this.accountService=o,this.formGroup=this.formBuilder.group({masterPassword:["",{validators:[g.k0.required],updateOn:"submit"}]}),this.submit=()=>z(this,void 0,void 0,function*(){if(!this.formGroup.value.masterPassword)return;const e=yield(0,h._)((0,m.F6)(this.accountService.activeAccount$));if(null==e)throw new Error("An active user is expected while doing password reprompt.");(yield this.masterPasswordUnlockService.proofOfDecryption(this.formGroup.value.masterPassword,e))?yield this.dialogRef.close(!0):this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:this.i18nService.t("invalidMasterPassword")})})}}L.ɵfac=function(e){return new(e||L)(w.rXU(B.b),w.rXU(E.y),w.rXU(S.W),w.rXU(g.ok),w.rXU(Q.ce),w.rXU(k.f),w.rXU(R.D))},L.ɵcmp=w.VBU({type:L,selectors:[["vault-password-reprompt"]],decls:21,vars:17,consts:[["bit-dialog","",3,"formGroup","bitSubmit"],["bitDialogTitle",""],["bitDialogContent",""],["disableMargin","",1,"tw-mt-6"],["bitInput","","appAutofocus","","id","masterPassword","type","password","formControlName","masterPassword"],["type","button","bitSuffix","","bitIconButton","","bitPasswordInputToggle",""],["bitDialogFooter",""],["bitButton","","buttonType","primary","bitFormButton","","type","submit"],["bitButton","","buttonType","secondary","bitDialogClose","","type","button"]],template:function(e,t){1&e&&(w.j41(0,"form",0)(1,"span",1),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.qex(4,2),w.EFF(5),w.nI1(6,"i18n"),w.j41(7,"bit-form-field",3)(8,"bit-label"),w.EFF(9),w.nI1(10,"i18n"),w.k0s(),w.nrm(11,"input",4)(12,"button",5),w.k0s(),w.bVm(),w.qex(13,6),w.j41(14,"button",7)(15,"span"),w.EFF(16),w.nI1(17,"i18n"),w.k0s()(),w.j41(18,"button",8),w.EFF(19),w.nI1(20,"i18n"),w.k0s(),w.bVm(),w.k0s()),2&e&&(w.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit),w.R7$(2),w.SpI(" ",w.bMT(3,7,"passwordConfirmation")," "),w.R7$(3),w.SpI(" ",w.bMT(6,9,"passwordConfirmationDesc")," "),w.R7$(4),w.JRh(w.bMT(10,11,"masterPass")),w.R7$(7),w.JRh(w.bMT(17,13,"ok")),w.R7$(3),w.SpI(" ",w.bMT(20,15,"cancel")," "))},dependencies:[v.p,F.B,f.C,T.$,D.L,y.t,P.Q,b.P,M.I,x.m,V.hJ,C.L,G.j,U.J,O.h,N.e,j.a,I.Q,Y.s,g.X1,g.qT,g.me,g.BC,g.cb,g.j4,g.JD,X.$],encapsulation:2});var W=i(66316),K=i(62166),Z=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class H{constructor(e,t){this.dialogService=e,this.userVerificationService=t,this.enabled$=A.A.asyncToObservable(()=>this.userVerificationService.hasMasterPassword())}protectedFields(){return["TOTP","Password","H_Field","Card Number","Security Code","PIN","Account Number","IBAN","SWIFT","Passport Number","National Identification Number","License Number"]}passwordRepromptCheck(e){return Z(this,void 0,void 0,function*(){return e.reprompt===p.b1.None||(yield this.showPasswordPrompt())})}showPasswordPrompt(){return Z(this,void 0,void 0,function*(){if(!(yield this.enabled()))return!0;const e=yield this.dialogService.open(L,{ariaModal:!0});return!0===(yield(0,u.s)(e.closed))})}enabled(){return(0,h._)(this.enabled$)}}H.ɵfac=function(e){return new(e||H)(a.KVO(W.o),a.KVO(K.i))},H.ɵprov=a.jDH({token:H,factory:H.ɵfac});var J=i(7751),q=i(66523),$=i(61325),_=i(63098),ee=i(58329),te=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const ie={username:{typeI18nKey:"username",protected:!1},password:{typeI18nKey:"password",protected:!0,event:J.Bx.Cipher_ClientCopiedPassword},totp:{typeI18nKey:"verificationCodeTotp",protected:!0},cardNumber:{typeI18nKey:"number",protected:!0},securityCode:{typeI18nKey:"securityCode",protected:!0,event:J.Bx.Cipher_ClientCopiedCardCode},email:{typeI18nKey:"email",protected:!0},phone:{typeI18nKey:"phone",protected:!0},address:{typeI18nKey:"address",protected:!0},secureNote:{typeI18nKey:"note",protected:!0},privateKey:{typeI18nKey:"sshPrivateKey",protected:!0},publicKey:{typeI18nKey:"sshPublicKey",protected:!0},keyFingerprint:{typeI18nKey:"sshFingerprint",protected:!0},nameOnAccount:{typeI18nKey:"nameOnAccount",protected:!1},accountNumber:{typeI18nKey:"accountNumber",protected:!0,event:J.Bx.Cipher_ClientCopiedBankAccountNumber},routingNumber:{typeI18nKey:"bankRoutingNumber",protected:!1},branchNumber:{typeI18nKey:"branchNumber",protected:!1},pin:{typeI18nKey:"pin",protected:!0,event:J.Bx.Cipher_ClientCopiedBankAccountPin},iban:{typeI18nKey:"iban",protected:!0,event:J.Bx.Cipher_ClientCopiedIban},swiftCode:{typeI18nKey:"swiftCode",protected:!0,event:J.Bx.Cipher_ClientCopiedSwiftCode},firstNameLicense:{typeI18nKey:"firstName",protected:!1},middleNameLicense:{typeI18nKey:"middleName",protected:!1},lastNameLicense:{typeI18nKey:"lastName",protected:!1},licenseNumber:{typeI18nKey:"licenseNumber",protected:!0,event:J.Bx.Cipher_ClientCopiedLicenseNumber},passportNumber:{typeI18nKey:"passportNumber",protected:!0,event:J.Bx.Cipher_ClientCopiedPassportNumber},nationalIdentificationNumber:{typeI18nKey:"nationalIdentificationNumber",protected:!0,event:J.Bx.Cipher_ClientCopiedNationalIdentificationNumber},givenName:{typeI18nKey:"firstName",protected:!1},surname:{typeI18nKey:"lastName",protected:!1},hiddenField:{typeI18nKey:"value",protected:!0,event:J.Bx.Cipher_ClientCopiedHiddenField}};class ne{constructor(e,t,i,n,r,s,o,a){this.platformUtilsService=e,this.toastService=t,this.eventCollectionService=i,this.passwordRepromptService=n,this.totpService=r,this.i18nService=s,this.billingAccountProfileStateService=o,this.accountService=a}copy(e,t,i){return te(this,arguments,void 0,function*(e,t,i,n=!1){const r=ie[t];if(!n&&i.reprompt!==p.b1.None&&r.protected&&!(yield this.passwordRepromptService.showPasswordPrompt()))return!1;if(null==e)return!1;if("totp"===t){if(!(yield this.totpAllowed(i)))return!1;const t=yield(0,h._)(this.totpService.getCode$(e));if(!(null==t?void 0:t.code))return!1;e=t.code}return this.platformUtilsService.copyToClipboard(e),this.toastService.showToast({variant:"success",message:this.i18nService.t("valueCopied",this.i18nService.t(r.typeI18nKey)),title:""}),void 0!==r.event&&(yield this.eventCollectionService.collect(r.event,i.id?(0,q.zw)(i.id):void 0,!1,i.organizationId?(0,q.zw)(i.organizationId):void 0)),!0})}totpAllowed(e){return te(this,void 0,void 0,function*(){const t=yield(0,h._)(this.accountService.activeAccount$);if(!(null==t?void 0:t.id))return!1;const i=$.n.getLogin(e);return!!(null==i?void 0:i.totp)&&(e.organizationUseTotp||(yield(0,h._)(this.billingAccountProfileStateService.hasPremiumFromAnySource$(t.id))))})}}ne.ɵfac=function(e){return new(e||ne)(a.KVO(E.y),a.KVO(k.f),a.KVO(J.c_),a.KVO(H),a.KVO(_.R),a.KVO(S.W),a.KVO(ee.Q),a.KVO(R.D))},ne.ɵprov=a.jDH({token:ne,factory:ne.ɵfac,providedIn:"root"});var re=i(69592),se=i(64447);class oe{constructor(e,t){this.el=e,this.renderer=t,this.size="default",this.renderer.setAttribute(this.el.nativeElement,"aria-hidden","true")}get iconSize(){switch(this.size){case"small":return"bwi-sm";case"large":return"bwi-lg";default:return""}}get orgIcon(){switch(this.tierType){case se.K_.Free:case se.K_.Families:return"bwi-family";case se.K_.Teams:case se.K_.Enterprise:case se.K_.TeamsStarter:return"bwi-business";default:return""}}get classList(){return["bwi",this.iconSize,this.orgIcon]}}oe.ɵfac=function(e){return new(e||oe)(w.rXU(w.aKT),w.rXU(w.sFG))},oe.ɵdir=w.FsC({type:oe,selectors:[["","appOrgIcon",""]],hostVars:2,hostBindings:function(e,t){2&e&&w.HbH(t.classList)},inputs:{tierType:"tierType",size:"size"}});var ae=i(29236),le=i(87806),ce=i(11979);class de{set cipher(e){this.viewContainer.clear(),this.cipherAuthorizationService.canDeleteCipher$(e).pipe((0,ae.Q)(this.destroy$)).subscribe(e=>{e?this.viewContainer.createEmbeddedView(this.templateRef):this.viewContainer.clear()})}constructor(e,t,i){this.templateRef=e,this.viewContainer=t,this.cipherAuthorizationService=i,this.destroy$=new le.B}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}de.ɵfac=function(e){return new(e||de)(w.rXU(w.C4Q),w.rXU(w.c1b),w.rXU(ce.y))},de.ɵdir=w.FsC({type:de,selectors:[["","appCanDeleteCipher",""]],inputs:{cipher:[0,"appCanDeleteCipher","cipher"]}});var ue=i(24590),he=i(92128),Ae=i(2073),pe=i(83234);class ge{constructor(){this.themeService=(0,a.WQX)(pe.oO),this.systemTheme$=(0,a.WQX)(Ae.eL),this.el=(0,a.WQX)(w.aKT),this.destroyRef=(0,a.WQX)(a.abz),this.darkImgSrc=ue.hFB.required(Object.assign(Object.assign({},{}),{alias:"appDarkImgSrc"}))}ngOnInit(){this.lightImgSrc=this.el.nativeElement.getAttribute("src"),(0,n.z)([this.themeService.selectedTheme$,this.systemTheme$]).pipe((0,he.pQ)(this.destroyRef)).subscribe(([e,t])=>{const i="dark"===("system"===e?t:e);this.src=i?this.darkImgSrc():this.lightImgSrc})}}ge.ɵfac=function(e){return new(e||ge)},ge.ɵdir=w.FsC({type:ge,selectors:[["","appDarkImgSrc",""]],hostVars:1,hostBindings:function(e,t){2&e&&w.BMQ("src",t.src,w.n$t)},inputs:{darkImgSrc:[1,"appDarkImgSrc","darkImgSrc"]}});i(55818);var ve=i(46758),me=i(63477),fe=i(191),ye=i(83604),be=i(4958),Ce=i(98569),Ie=i(34949),we=i(21571),Be=i(67553),Ee=i(86204),Se=i(82468),Qe=i(56962),ke=i(38020),Re=i(97212),Fe=i(80351),Te=i(60893),De=i(57178),Pe=i(75583),Me=i(14318),xe=i(89479),Ve=i(58950),Ge=i(25024);class Ue{constructor(){this.data=""}onDragStart(e){var t;null===(t=e.dataTransfer)||void 0===t||t.setData("text",this.data)}}Ue.ɵfac=function(e){return new(e||Ue)},Ue.ɵdir=w.FsC({type:Ue,selectors:[["","appTextDrag",""]],hostAttrs:["draggable","true",1,"tw-cursor-move"],hostBindings:function(e,t){1&e&&w.bIt("dragstart",function(e){return t.onDragStart(e)})},inputs:{data:[0,"appTextDrag","data"]}});var Oe=i(58806);class Ne{constructor(){this.notes=""}}Ne.ɵfac=function(e){return new(e||Ne)},Ne.ɵcmp=w.VBU({type:Ne,selectors:[["app-additional-options"]],inputs:{notes:"notes"},decls:15,vars:15,consts:[[1,"tw-mb-5","bit-compact:tw-mb-4"],["bitTypography","h6"],[1,"[&_bit-form-field:last-of-type]:tw-mb-0"],[3,"appTextDrag"],["readonly","","id","notes","bitInput","","rows","5","aria-readonly","true"],["bitSuffix","","bitIconButton","bwi-clone","size","small","type","button","showToast","",3,"appCopyClick","valueLabel","label"]],template:function(e,t){1&e&&(w.j41(0,"section",0)(1,"bit-section-header")(2,"h2",1),w.EFF(3),w.nI1(4,"i18n"),w.k0s()(),w.j41(5,"bit-card",2)(6,"bit-form-field")(7,"bit-label",3),w.EFF(8),w.nI1(9,"i18n"),w.k0s(),w.j41(10,"textarea",4),w.EFF(11),w.k0s(),w.nrm(12,"button",5),w.nI1(13,"i18n"),w.nI1(14,"i18n"),w.k0s()()()),2&e&&(w.R7$(3),w.JRh(w.bMT(4,7,"additionalOptions")),w.R7$(4),w.Y8G("appTextDrag",t.notes),w.R7$(),w.JRh(w.bMT(9,9,"note")),w.R7$(3),w.JRh(t.notes),w.R7$(),w.Y8G("appCopyClick",t.notes)("valueLabel",w.bMT(13,11,"note"))("label",w.bMT(14,13,"copyNotes")))},dependencies:[ve.MD,v.p,Ge.D,Ue,Me.i,I.Q,Y.s,xe.x,U.J,Ve.U,Pe.E,Oe.r,C.L,G.j,O.h,j.a,X.$],encapsulation:2});var je=i(12055),Ye=i(75751),Xe=i(98403),ze=i(8916),Le=i(7861),We=i(6632),Ke=i(12012),Ze=i(8365),He=i(1601),Je=i(46033),qe=i(3892),$e=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function _e(e,t){if(1&e&&(w.nrm(0,"button",0),w.nI1(1,"i18n")),2&e){const e=w.XpG();w.Y8G("bitAction",e.download)("label",w.i5U(1,2,"downloadAttachmentName",e.attachment().fileName))}}class et{constructor(e,t,i,n,r,s,o,a){this.i18nService=e,this.apiService=t,this.fileDownloadService=i,this.toastService=n,this.stateProvider=r,this.cipherService=s,this.configService=o,this.cipherSdkService=a,this.attachment=ue.hFB.required(),this.cipher=ue.hFB.required(),this.checkPwReprompt=(0,ue.hFB)(!1),this.emergencyAccessId=(0,ue.hFB)(),this.admin=(0,ue.hFB)(!1),this.isDecryptionFailure=(0,me.EW)(()=>this.attachment().hasDecryptionError),this.download=()=>$e(this,void 0,void 0,function*(){const e=this.attachment(),t=this.cipher();if(!e.id||!e.fileName)return void this.showErrorToast();const i=yield(0,h._)(this.stateProvider.activeUserId$);if(!i)return void this.showErrorToast();const n=yield this.fetchUrl(t.id,e,i);if(!n)return void this.showErrorToast();const r=yield fetch(new Request(n,{cache:"no-store"}));if(200===r.status)try{const n=yield this.cipherService.getDecryptedAttachmentBuffer(t.id,e,r,i,Boolean(this.emergencyAccessId()));this.fileDownloadService.download({fileName:e.fileName,blobData:n})}catch(s){this.showErrorToast()}else this.showErrorToast()})}fetchUrl(e,t,i){return $e(this,void 0,void 0,function*(){const n=yield(0,h._)(this.configService.getFeatureFlag$(Se.TO.PM28192_CipherAttachmentOpsToSdk));if(t.id)try{if(n)return yield this.cipherSdkService.getAttachmentDownloadUrl(e,t.id,i,this.downloadOptions());return(this.admin()?yield this.apiService.getAttachmentDataAdmin(e,t.id):yield this.apiService.getAttachmentData(e,t.id,this.emergencyAccessId())).url}catch(r){if(r instanceof Le._&&404===r.statusCode)return t.url;if(n&&((0,We.isCipherAdminGetAttachmentDownloadUrlError)(r)||(0,We.isCipherGetAttachmentDownloadUrlError)(r))&&"NotFound"===r.variant)return t.url;if(r instanceof Le._)throw new Error(r.getSingleMessage());throw r}})}downloadOptions(){if(this.admin())return{asAdmin:!0};const e=this.emergencyAccessId();return e?{emergencyAccessId:e}:void 0}showErrorToast(){this.toastService.showToast({variant:"error",message:this.i18nService.t("errorOccurred")})}}et.ɵfac=function(e){return new(e||et)(w.rXU(S.W),w.rXU(Ke.G),w.rXU(Ze.y),w.rXU(k.f),w.rXU(s.v2),w.rXU(l.p),w.rXU(He.w),w.rXU(Je.F))},et.ɵcmp=w.VBU({type:et,selectors:[["app-download-attachment"]],inputs:{attachment:[1,"attachment"],cipher:[1,"cipher"],checkPwReprompt:[1,"checkPwReprompt"],emergencyAccessId:[1,"emergencyAccessId"],admin:[1,"admin"]},decls:1,vars:1,consts:[["bitIconButton","bwi-download","buttonType","primaryGhost","size","small","type","button",3,"bitAction","label"]],template:function(e,t){1&e&&w.nVh(0,_e,2,5,"button",0),2&e&&w.vxM(t.isDecryptionFailure()?-1:0)},dependencies:[f.C,qe.p,ve.MD,v.p,I.Q,Y.s,X.$],encapsulation:2,changeDetection:0});var tt=i(5513);function it(e,t=30){if(!e||e.length<=t)return null!=e?e:"";const i=t-1,n=e.lastIndexOf(".");if(!(n>0)){const t=Math.ceil(i/2),n=i-t;return e.slice(0,t)+"…"+e.slice(e.length-n)}const r=e.slice(n),s=e.slice(0,n);if(r.length>=i)return s.slice(0,1)+"…"+r.slice(-(i-1));const o=i-r.length,a=Math.ceil(o/2),l=o-a;return s.slice(0,a)+"…"+(l>0?s.slice(s.length-l):"")+r}const nt=["container"];class rt{constructor(){this.filename=ue.hFB.required(),this.displayText=(0,a.vPA)(""),this.containerRef=(0,ue.ebz)("container"),this.destroyRef=(0,a.WQX)(a.abz),this.observer=new ResizeObserver(()=>this.recalculate()),(0,a.QZP)(()=>{this.filename(),this.recalculate()}),(0,a.QZP)(()=>{var e;const t=null===(e=this.containerRef())||void 0===e?void 0:e.nativeElement;t&&(this.observer.disconnect(),this.observer.observe(t))}),this.destroyRef.onDestroy(()=>this.observer.disconnect())}recalculate(){var e;const t=null===(e=this.containerRef())||void 0===e?void 0:e.nativeElement,i=this.filename();if(!i||!t)return void this.displayText.set(null!=i?i:"");const n=t.clientWidth;if(n<=0)return void this.displayText.set(i);const r=rt.getMeasureContext();if(!r)return void this.displayText.set(i);const s=getComputedStyle(t);r.font=`${s.fontWeight} ${s.fontSize} ${s.fontFamily}`;const o=Math.round(r.measureText(i).width);if(o<=n)return void this.displayText.set(i);const a=o/i.length;let l=Math.max(5,Math.floor(n/a)),c=it(i,l);for(;r.measureText(c).width>n&&l>5;)l--,c=it(i,l);this.displayText.set(c)}static getMeasureContext(){return rt.measureCanvas.getContext("2d")}}rt.measureCanvas=document.createElement("canvas"),rt.ɵfac=function(e){return new(e||rt)},rt.ɵcmp=w.VBU({type:rt,selectors:[["bit-truncated-filename"]],viewQuery:function(e,t){1&e&&w.wEZ(t.containerRef,nt,5),2&e&&w.NyB()},hostAttrs:[1,"tw-contents"],inputs:{filename:[1,"filename"]},decls:6,vars:4,consts:[["container",""],[1,"tw-block","tw-flex-1","tw-min-w-0","tw-overflow-hidden","tw-whitespace-nowrap","tw-relative",3,"bitTooltip"],["aria-hidden","true",1,"tw-invisible"],[1,"tw-absolute","tw-inset-0"]],template:function(e,t){1&e&&(w.j41(0,"span",1,0)(2,"span",2),w.EFF(3),w.k0s(),w.j41(4,"span",3),w.EFF(5),w.k0s()()),2&e&&(w.Y8G("bitTooltip",t.filename()),w.BMQ("aria-label",t.filename()),w.R7$(3),w.JRh(t.filename()),w.R7$(2),w.JRh(t.displayText()))},dependencies:[tt.d],encapsulation:2,changeDetection:0});var st=i(75556),ot=i(90300),at=i(4017),lt=i(91962);const ct=(e,t)=>t.id;function dt(e,t){if(1&e&&(w.j41(0,"span",3),w.EFF(1),w.k0s()),2&e){const e=w.XpG().$implicit;w.R7$(),w.JRh(e.sizeName)}}function ut(e,t){if(1&e&&(w.j41(0,"bit-item")(1,"bit-item-content"),w.nrm(2,"bit-truncated-filename",2),w.nVh(3,dt,2,1,"span",3),w.k0s(),w.qex(4,4),w.j41(5,"bit-item-action",5),w.nrm(6,"app-download-attachment",6),w.k0s(),w.bVm(),w.k0s()),2&e){const e=t.$implicit,i=w.XpG();w.R7$(2),w.Y8G("filename",i.getAttachmentFileName(e)),w.R7$(),w.vxM(e.hasDecryptionError?-1:3),w.R7$(3),w.Y8G("admin",i.admin)("cipher",i.cipher)("attachment",e)("checkPwReprompt",!0)("emergencyAccessId",i.emergencyAccessId)}}class ht{constructor(e,t,i,n,r){this.keyService=e,this.billingAccountProfileStateService=t,this.stateProvider=i,this.accountService=n,this.i18nService=r,this.admin=!1,this.subscribeToHasPremiumCheck(),this.subscribeToOrgKey()}subscribeToHasPremiumCheck(){this.accountService.activeAccount$.pipe((0,fe.n)(e=>this.billingAccountProfileStateService.hasPremiumFromAnySource$(e.id)),(0,he.pQ)()).subscribe(e=>{this.canAccessPremium=e})}subscribeToOrgKey(){this.stateProvider.activeUserId$.pipe((0,fe.n)(e=>null!=e?this.keyService.orgKeys$(e):je.t),(0,he.pQ)()).subscribe(e=>{e&&(this.orgKey=e[this.cipher.organizationId])})}getAttachmentFileName(e){var t;return e.hasDecryptionError?this.i18nService.t("errorCannotDecrypt"):null!==(t=e.fileName)&&void 0!==t?t:""}}ht.ɵfac=function(e){return new(e||ht)(w.rXU(ze.Lu),w.rXU(ee.Q),w.rXU(s.v2),w.rXU(R.D),w.rXU(S.W))},ht.ɵcmp=w.VBU({type:ht,selectors:[["app-attachments-v2-view"]],inputs:{cipher:"cipher",emergencyAccessId:"emergencyAccessId",admin:"admin"},decls:8,vars:3,consts:[[1,"tw-mb-5","bit-compact:tw-mb-4"],["bitTypography","h6"],["data-testid","file-name",3,"filename"],["slot","secondary","data-testid","file-size"],["slot","end"],[1,"tw-pr-4","[@media(min-width:650px)]:tw-pr-6"],[3,"admin","cipher","attachment","checkPwReprompt","emergencyAccessId"]],template:function(e,t){1&e&&(w.j41(0,"section",0)(1,"bit-section-header")(2,"h2",1),w.EFF(3),w.nI1(4,"i18n"),w.k0s()(),w.j41(5,"bit-item-group"),w.Z7z(6,ut,7,7,"bit-item",null,ct),w.k0s()()),2&e&&(w.R7$(3),w.JRh(w.bMT(4,1,"attachments")),w.R7$(3),w.Dyx(t.cipher.attachments))},dependencies:[ve.MD,v.p,Xe.k,st.J,ot.g,at.D,lt._,I.Q,Ve.U,rt,Pe.E,Oe.r,et,X.$],encapsulation:2});var At=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function pt(e,t){if(1&e){const e=w.RV6();w.qex(0),w.j41(1,"bit-form-field",2)(2,"bit-label"),w.EFF(3),w.nI1(4,"i18n"),w.k0s(),w.nrm(5,"input",3),w.j41(6,"button",4),w.nI1(7,"i18n"),w.bIt("click",function(){const t=a.eBV(e).$implicit,i=w.XpG();return a.Njj(i.openWebsite(t.launchUri))}),w.k0s(),w.nrm(8,"button",5),w.nI1(9,"i18n"),w.nI1(10,"i18n"),w.k0s(),w.bVm()}if(2&e){const e=t.$implicit,i=t.$index,n=t.$count;w.R7$(),w.Y8G("disableMargin",i===n-1),w.R7$(2),w.SpI(" ",w.bMT(4,7,"website")," "),w.R7$(2),w.Y8G("value",e.hostOrUri),w.R7$(),w.Y8G("label",w.bMT(7,9,"launch")+" "+e.hostOrUri),w.R7$(2),w.Y8G("appCopyClick",e.uri)("valueLabel",w.bMT(9,11,"website"))("label",w.bMT(10,13,"copyWebsite"))}}class gt{constructor(e,t,i){this.platformUtilsService=e,this.cipherService=t,this.accountService=i}openWebsite(e){return At(this,void 0,void 0,function*(){const t=yield(0,h._)(this.accountService.activeAccount$.pipe(m.F6));yield this.cipherService.updateLastLaunchedDate(this.cipherId,t),this.platformUtilsService.launchUri(e)})}}gt.ɵfac=function(e){return new(e||gt)(w.rXU(E.y),w.rXU(l.p),w.rXU(R.D))},gt.ɵcmp=w.VBU({type:gt,selectors:[["app-autofill-options-view"]],inputs:{loginUris:"loginUris",cipherId:"cipherId"},decls:8,vars:3,consts:[[1,"tw-mb-5","bit-compact:tw-mb-4"],["bitTypography","h6"],["data-testid","autofill-view-list",3,"disableMargin"],["readonly","","bitInput","","type","text","aria-readonly","true","data-testid","login-website",3,"value"],["bitIconButton","bwi-external-link","bitSuffix","","type","button","data-testid","launch-website",3,"click","label"],["bitIconButton","bwi-clone","bitSuffix","","type","button","showToast","","data-testid","copy-website",3,"appCopyClick","valueLabel","label"]],template:function(e,t){1&e&&(w.j41(0,"section",0)(1,"bit-section-header")(2,"h2",1),w.EFF(3),w.nI1(4,"i18n"),w.k0s()(),w.j41(5,"bit-card"),w.Z7z(6,pt,11,15,"ng-container",null,w.Vm6),w.k0s()()),2&e&&(w.R7$(3),w.JRh(w.bMT(4,1,"autofillOptions")),w.R7$(3),w.Dyx(t.loginUris))},dependencies:[ve.MD,v.p,Ge.D,Me.i,Ve.U,Pe.E,Oe.r,C.L,G.j,U.J,O.h,j.a,I.Q,Y.s,X.$],encapsulation:2});var vt=i(21854),mt=i(36801);class ft{}ft.ɵfac=function(e){return new(e||ft)},ft.ɵcmp=w.VBU({type:ft,selectors:[["read-only-cipher-card"]],ngContentSelectors:["*"],decls:2,vars:0,consts:[[1,"[&_bit-form-field:last-of-type]:tw-mb-0"]],template:function(e,t){1&e&&(w.NAR(),w.j41(0,"bit-card",0),w.SdG(1),w.k0s())},dependencies:[Me.i],encapsulation:2,changeDetection:0});var yt=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function bt(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",2),w.k0s()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,2,"bankName")),w.R7$(2),w.Y8G("value",e.bankAccount().bankName)}}function Ct(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",3)(5,"button",4),w.nI1(6,"i18n"),w.k0s()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,4,"nameOnAccount")),w.R7$(2),w.Y8G("value",e.bankAccount().nameOnAccount),w.R7$(),w.Y8G("label",w.bMT(6,6,"copyNameOnAccount"))("cipher",e.cipher())}}function It(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",5),w.k0s()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,2,"bankAccountType")),w.R7$(2),w.Y8G("value",e.localizedAccountType())}}function wt(e,t){if(1&e){const e=w.RV6();w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",6),w.j41(5,"button",7),w.bIt("toggledChange",function(t){a.eBV(e);const i=w.XpG();return a.Njj(i.toggleAccountNumberVisible(t))}),w.k0s(),w.nrm(6,"button",8),w.nI1(7,"i18n"),w.k0s()}if(2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,5,"accountNumber")),w.R7$(2),w.Y8G("value",e.bankAccount().accountNumber),w.R7$(),w.Y8G("toggled",e.revealAccountNumber()),w.R7$(),w.Y8G("label",w.bMT(7,7,"copyAccountNumber"))("cipher",e.cipher())}}function Bt(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",9)(5,"button",10),w.nI1(6,"i18n"),w.k0s()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,4,"bankRoutingNumber")),w.R7$(2),w.Y8G("value",e.bankAccount().routingNumber),w.R7$(),w.Y8G("label",w.bMT(6,6,"copyRoutingNumber"))("cipher",e.cipher())}}function Et(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",11)(5,"button",12),w.nI1(6,"i18n"),w.k0s()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,4,"branchNumber")),w.R7$(2),w.Y8G("value",e.bankAccount().branchNumber),w.R7$(),w.Y8G("label",w.bMT(6,6,"copyBranchNumber"))("cipher",e.cipher())}}function St(e,t){if(1&e){const e=w.RV6();w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",13),w.j41(5,"button",14),w.bIt("toggledChange",function(t){a.eBV(e);const i=w.XpG();return a.Njj(i.togglePinVisible(t))}),w.k0s(),w.nrm(6,"button",15),w.nI1(7,"i18n"),w.k0s()}if(2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,5,"pin")),w.R7$(2),w.Y8G("value",e.bankAccount().pin),w.R7$(),w.Y8G("toggled",e.revealPin()),w.R7$(),w.Y8G("label",w.bMT(7,7,"copyPin"))("cipher",e.cipher())}}function Qt(e,t){if(1&e){const e=w.RV6();w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",16),w.j41(5,"button",17),w.bIt("toggledChange",function(t){a.eBV(e);const i=w.XpG();return a.Njj(i.toggleSwiftCodeVisible(t))}),w.k0s(),w.nrm(6,"button",18),w.nI1(7,"i18n"),w.k0s()}if(2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,5,"swiftCode")),w.R7$(2),w.Y8G("value",e.bankAccount().swiftCode),w.R7$(),w.Y8G("toggled",e.revealSwiftCode()),w.R7$(),w.Y8G("label",w.bMT(7,7,"copySwiftCode"))("cipher",e.cipher())}}function kt(e,t){if(1&e){const e=w.RV6();w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",19),w.j41(5,"button",20),w.bIt("toggledChange",function(t){a.eBV(e);const i=w.XpG();return a.Njj(i.toggleIbanVisible(t))}),w.k0s(),w.nrm(6,"button",21),w.nI1(7,"i18n"),w.k0s()}if(2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,5,"iban")),w.R7$(2),w.Y8G("value",e.bankAccount().iban),w.R7$(),w.Y8G("toggled",e.revealIban()),w.R7$(),w.Y8G("label",w.bMT(7,7,"copyIban"))("cipher",e.cipher())}}function Rt(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",22),w.k0s()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,2,"bankContactPhone")),w.R7$(2),w.Y8G("value",e.bankAccount().bankContactPhone)}}class Ft{constructor(){this.i18nService=(0,a.WQX)(S.W),this.eventCollectionService=(0,a.WQX)(J.c_),this.bankAccount=ue.hFB.required(),this.cipher=ue.hFB.required(),this.revealAccountNumber=(0,a.vPA)(!1),this.revealPin=(0,a.vPA)(!1),this.revealSwiftCode=(0,a.vPA)(!1),this.revealIban=(0,a.vPA)(!1),this.localizedAccountType=(0,me.EW)(()=>{const e=this.bankAccount().accountType;if(!e)return;const t=vt.Q[e];return t?this.i18nService.t(t):e})}toggleAccountNumberVisible(e){return yt(this,void 0,void 0,function*(){this.revealAccountNumber.set(e),e&&(yield this.eventCollectionService.collect(J.Bx.Cipher_ClientToggledBankAccountNumberVisible,this.cipher().id,!1,this.cipher().organizationId))})}togglePinVisible(e){return yt(this,void 0,void 0,function*(){this.revealPin.set(e),e&&(yield this.eventCollectionService.collect(J.Bx.Cipher_ClientToggledBankAccountPinVisible,this.cipher().id,!1,this.cipher().organizationId))})}toggleSwiftCodeVisible(e){return yt(this,void 0,void 0,function*(){this.revealSwiftCode.set(e),e&&(yield this.eventCollectionService.collect(J.Bx.Cipher_ClientToggledSwiftCodeVisible,this.cipher().id,!1,this.cipher().organizationId))})}toggleIbanVisible(e){return yt(this,void 0,void 0,function*(){this.revealIban.set(e),e&&(yield this.eventCollectionService.collect(J.Bx.Cipher_ClientToggledIbanVisible,this.cipher().id,!1,this.cipher().organizationId))})}}Ft.ɵfac=function(e){return new(e||Ft)},Ft.ɵcmp=w.VBU({type:Ft,selectors:[["app-bank-account-view"]],inputs:{bankAccount:[1,"bankAccount"],cipher:[1,"cipher"]},decls:16,vars:13,consts:[[1,"tw-mb-5","bit-compact:tw-mb-4"],["bitTypography","h6"],["readonly","","bitInput","","aria-readonly","true","data-testid","bank-name",3,"value"],["readonly","","bitInput","","aria-readonly","true","data-testid","name-on-account",3,"value"],["bitIconButton","bwi-clone","bitSuffix","","type","button","appCopyField","nameOnAccount",3,"label","cipher"],["readonly","","bitInput","","aria-readonly","true","data-testid","account-type",3,"value"],["readonly","","bitInput","","aria-readonly","true","type","password","data-testid","account-number",3,"value"],["bitSuffix","","type","button","bitIconButton","","bitPasswordInputToggle","","data-testid","toggle-account-number",3,"toggledChange","toggled"],["bitIconButton","bwi-clone","bitSuffix","","type","button","appCopyField","accountNumber",3,"label","cipher"],["readonly","","bitInput","","aria-readonly","true","data-testid","routing-number",3,"value"],["bitIconButton","bwi-clone","bitSuffix","","type","button","appCopyField","routingNumber",3,"label","cipher"],["readonly","","bitInput","","aria-readonly","true","data-testid","branch-number",3,"value"],["bitIconButton","bwi-clone","bitSuffix","","type","button","appCopyField","branchNumber",3,"label","cipher"],["readonly","","bitInput","","aria-readonly","true","type","password","data-testid","pin",3,"value"],["bitSuffix","","type","button","bitIconButton","","bitPasswordInputToggle","","data-testid","toggle-pin",3,"toggledChange","toggled"],["bitIconButton","bwi-clone","bitSuffix","","type","button","appCopyField","pin",3,"label","cipher"],["readonly","","bitInput","","aria-readonly","true","data-testid","swift-code","type","password",3,"value"],["bitSuffix","","type","button","bitIconButton","","bitPasswordInputToggle","","data-testid","toggle-swift-code",3,"toggledChange","toggled"],["bitIconButton","bwi-clone","bitSuffix","","type","button","appCopyField","swiftCode",3,"label","cipher"],["readonly","","bitInput","","aria-readonly","true","data-testid","iban","type","password",3,"value"],["bitSuffix","","type","button","bitIconButton","","bitPasswordInputToggle","","data-testid","toggle-iban",3,"toggledChange","toggled"],["bitIconButton","bwi-clone","bitSuffix","","type","button","appCopyField","iban",3,"label","cipher"],["readonly","","bitInput","","aria-readonly","true","data-testid","bank-contact-phone",3,"value"]],template:function(e,t){1&e&&(w.j41(0,"section",0)(1,"bit-section-header")(2,"h2",1),w.EFF(3),w.nI1(4,"i18n"),w.k0s()(),w.j41(5,"read-only-cipher-card"),w.nVh(6,bt,5,4,"bit-form-field"),w.nVh(7,Ct,7,8,"bit-form-field"),w.nVh(8,It,5,4,"bit-form-field"),w.nVh(9,wt,8,9,"bit-form-field"),w.nVh(10,Bt,7,8,"bit-form-field"),w.nVh(11,Et,7,8,"bit-form-field"),w.nVh(12,St,8,9,"bit-form-field"),w.nVh(13,Qt,8,9,"bit-form-field"),w.nVh(14,kt,8,9,"bit-form-field"),w.nVh(15,Rt,5,4,"bit-form-field"),w.k0s()()),2&e&&(w.R7$(3),w.JRh(w.bMT(4,11,"bankAccountDetails")),w.R7$(3),w.vxM(t.bankAccount().bankName?6:-1),w.R7$(),w.vxM(t.bankAccount().nameOnAccount?7:-1),w.R7$(),w.vxM(t.localizedAccountType()?8:-1),w.R7$(),w.vxM(t.bankAccount().accountNumber?9:-1),w.R7$(),w.vxM(t.bankAccount().routingNumber?10:-1),w.R7$(),w.vxM(t.bankAccount().branchNumber?11:-1),w.R7$(),w.vxM(t.bankAccount().pin?12:-1),w.R7$(),w.vxM(t.bankAccount().swiftCode?13:-1),w.R7$(),w.vxM(t.bankAccount().iban?14:-1),w.R7$(),w.vxM(t.bankAccount().bankContactPhone?15:-1))},dependencies:[re.w,Ve.U,ft,Pe.E,Oe.r,C.L,G.j,U.J,O.h,N.e,j.a,I.Q,Y.s,mt.$Z],encapsulation:2,changeDetection:0});const Tt={Visa:[{cardLength:16,blocks:[4,4,4,4]}],Mastercard:[{cardLength:16,blocks:[4,4,4,4]}],Maestro:[{cardLength:16,blocks:[4,4,4,4]},{cardLength:13,blocks:[4,4,5]},{cardLength:15,blocks:[4,6,5]},{cardLength:19,blocks:[4,4,4,4,3]}],Discover:[{cardLength:16,blocks:[4,4,4,4]}],"Diners Club":[{cardLength:14,blocks:[4,6,4]}],JCB:[{cardLength:16,blocks:[4,4,4,4]}],UnionPay:[{cardLength:16,blocks:[4,4,4,4]},{cardLength:19,blocks:[6,13]}],Amex:[{cardLength:15,blocks:[4,6,5]}],Other:[{cardLength:16,blocks:[4,4,4,4]}]};class Dt{transform(e,t){e=e.replace(/\D/g,"");let i=Tt[t];null==i&&(i=Tt.Other);const n=e.length;let r=i.find(e=>e.cardLength==n);null==r&&(r=i[0]);const s=r.blocks,o=[];let a=0;return s.forEach(t=>{o.push(e.slice(a,a+t)),a+=t}),n>a&&o.push(e.slice(a)),o.join(" ")}}Dt.ɵfac=function(e){return new(e||Dt)},Dt.ɵpipe=w.EJ8({name:"creditCardNumber",type:Dt,pure:!0});var Pt=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function Mt(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label",2),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",3)(5,"button",4),w.nI1(6,"i18n"),w.nI1(7,"i18n"),w.k0s()),2&e){const e=w.XpG();w.R7$(),w.Y8G("appTextDrag",e.card.cardholderName),w.R7$(),w.JRh(w.bMT(3,6,"cardholderName")),w.R7$(2),w.Y8G("value",e.card.cardholderName),w.R7$(),w.Y8G("appCopyClick",e.card.cardholderName)("valueLabel",w.bMT(6,8,"cardholderName"))("label",w.bMT(7,10,"copyCardholderName"))}}function xt(e,t){if(1&e){const e=w.RV6();w.j41(0,"bit-form-field")(1,"bit-label",2),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",5),w.nI1(5,"creditCardNumber"),w.j41(6,"button",6),w.bIt("toggledChange",function(t){a.eBV(e);const i=w.XpG();return a.Njj(i.logCardEvent(t,i.EventType.Cipher_ClientToggledCardNumberVisible))}),w.k0s(),w.nrm(7,"button",7),w.nI1(8,"i18n"),w.nI1(9,"i18n"),w.k0s()}if(2&e){const e=w.XpG();w.R7$(),w.Y8G("appTextDrag",e.card.number),w.R7$(),w.JRh(w.bMT(3,7,"number")),w.R7$(2),w.Y8G("value",w.i5U(5,9,e.card.number,e.cipher.card.brand)),w.R7$(2),w.Y8G("toggled",e.revealCardNumber),w.R7$(),w.Y8G("appCopyClick",e.card.number)("valueLabel",w.bMT(8,12,"number"))("label",w.bMT(9,14,"copyNumber"))}}function Vt(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label",2),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",8),w.k0s()),2&e){const e=w.XpG();w.R7$(),w.Y8G("appTextDrag",e.card.expiration),w.R7$(),w.JRh(w.bMT(3,3,"expiration")),w.R7$(2),w.Y8G("value",e.card.expiration)}}function Gt(e,t){if(1&e){const e=w.RV6();w.j41(0,"bit-form-field")(1,"bit-label",2),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",9),w.j41(5,"button",10),w.bIt("toggledChange",function(t){a.eBV(e);const i=w.XpG();return a.Njj(i.logCardEvent(t,i.EventType.Cipher_ClientToggledCardCodeVisible))}),w.k0s(),w.j41(6,"button",11),w.nI1(7,"i18n"),w.nI1(8,"i18n"),w.bIt("click",function(){a.eBV(e);const t=w.XpG();return a.Njj(t.logCardEvent(!0,t.EventType.Cipher_ClientCopiedCardCode))}),w.k0s()()}if(2&e){const e=w.XpG();w.R7$(),w.Y8G("appTextDrag",e.card.code),w.R7$(),w.JRh(w.bMT(3,7,"securityCode")),w.R7$(2),w.Y8G("value",e.card.code),w.R7$(),w.Y8G("toggled",e.revealCardCode),w.R7$(),w.Y8G("appCopyClick",e.card.code)("valueLabel",w.bMT(7,9,"securityCode"))("label",w.bMT(8,11,"copySecurityCode"))}}class Ut{constructor(e,t){this.i18nService=e,this.eventCollectionService=t,this.EventType=J.Bx,this.revealCardNumber=!1,this.revealCardCode=!1}get card(){return this.cipher.card}ngOnChanges(e){e.cipher&&(this.revealCardNumber=!1,this.revealCardCode=!1)}get setSectionTitle(){return this.card.brand&&"Other"!==this.card.brand?this.i18nService.t("cardBrandDetails",this.card.brand):this.i18nService.t("cardDetails")}logCardEvent(e,t){return Pt(this,void 0,void 0,function*(){t===J.Bx.Cipher_ClientToggledCardNumberVisible?this.revealCardNumber=e:t===J.Bx.Cipher_ClientToggledCardCodeVisible&&(this.revealCardCode=e),e&&(yield this.eventCollectionService.collect(t,this.cipher.id,!1,this.cipher.organizationId))})}}Ut.ɵfac=function(e){return new(e||Ut)(w.rXU(S.W),w.rXU(J.c_))},Ut.ɵcmp=w.VBU({type:Ut,selectors:[["app-card-details-view"]],inputs:{cipher:"cipher"},features:[w.OA$],decls:9,vars:5,consts:[[1,"tw-mb-5","bit-compact:tw-mb-4"],["bitTypography","h6"],[3,"appTextDrag"],["id","cardholderName","readonly","","bitInput","","type","text","aria-readonly","true","data-testid","cardholder-name",3,"value"],["bitIconButton","bwi-clone","bitSuffix","","type","button","showToast","","data-testid","copy-cardholder-name",3,"appCopyClick","valueLabel","label"],["id","cardNumber","readonly","","bitInput","","type","password","aria-readonly","true","data-testid","cardholder-number",1,"tw-font-mono",3,"value"],["bitSuffix","","type","button","bitIconButton","","bitPasswordInputToggle","","data-testid","toggle-number",3,"toggledChange","toggled"],["bitIconButton","bwi-clone","bitSuffix","","type","button","showToast","","data-testid","copy-number",3,"appCopyClick","valueLabel","label"],["id","expiration","readonly","","bitInput","","type","text","aria-readonly","true","data-testid","cardholder-expiration",3,"value"],["id","securityCode","readonly","","bitInput","","type","password","aria-readonly","true","data-testid","cardholder-code",1,"tw-font-mono",3,"value"],["bitSuffix","","type","button","bitIconButton","","bitPasswordInputToggle","","data-testid","toggle-code",3,"toggledChange","toggled"],["bitIconButton","bwi-clone","bitSuffix","","type","button","showToast","","data-testid","copy-code",3,"click","appCopyClick","valueLabel","label"]],template:function(e,t){1&e&&(w.j41(0,"section",0)(1,"bit-section-header")(2,"h2",1),w.EFF(3),w.k0s()(),w.j41(4,"read-only-cipher-card"),w.nVh(5,Mt,8,12,"bit-form-field"),w.nVh(6,xt,10,16,"bit-form-field"),w.nVh(7,Vt,5,5,"bit-form-field"),w.nVh(8,Gt,9,13,"bit-form-field"),w.k0s()()),2&e&&(w.R7$(3),w.JRh(t.setSectionTitle),w.R7$(2),w.vxM(t.card.cardholderName?5:-1),w.R7$(),w.vxM(t.card.number?6:-1),w.R7$(),w.vxM(t.card.expiration?7:-1),w.R7$(),w.vxM(t.card.code?8:-1))},dependencies:[ve.MD,v.p,Ge.D,Ue,Ve.U,Pe.E,Oe.r,C.L,G.j,U.J,O.h,N.e,j.a,I.Q,Y.s,ft,X.$,Dt],encapsulation:2});var Ot=i(6528),Nt=i(67036),jt=i(14093),Yt=i(47135),Xt=i(98479),zt=i(76038),Lt=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Wt{constructor(e,t){this.autosize=e,this.ngZone=t,this.autosize.enabled=!1}ngAfterViewInit(){return Lt(this,void 0,void 0,function*(){yield(0,h._)(this.ngZone.onStable),this.autosize.enabled=!0})}}Wt.ɵfac=function(e){return new(e||Wt)(w.rXU(zt.xb,1),w.rXU(a.SKi))},Wt.ɵdir=w.FsC({type:Wt,selectors:[["textarea","vaultAutosizeReadOnlyTextArea",""]],features:[w.Jv_([zt.EE]),w.nM4([zt.xb])]});var Kt=i(93103),Zt=i(90246),Ht=i(50352),Jt=i(27520),qt=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const $t=e=>({"tw-mb-4":e}),_t=()=>({"tw-mt-3":!0,"tw-mb-2":!0});function ei(e,t){return this.cipher.id}function ti(e,t){if(1&e&&(w.nrm(0,"button",6),w.nI1(1,"i18n")),2&e){const e=w.XpG(2).$implicit;w.Y8G("appCopyClick",e.value)("valueLabel",e.name)("label",w.i5U(1,3,"copyCustomField",e.name))}}function ii(e,t){var i;if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label",4),w.EFF(2),w.k0s(),w.nrm(3,"textarea",5),w.nVh(4,ti,2,6,"button",6),w.k0s()),2&e){const e=w.XpG().$implicit,t=w.XpG();w.R7$(),w.Y8G("appTextDrag",e.value),w.R7$(),w.JRh(e.name),w.R7$(),w.Y8G("value",null!==(i=e.value)&&void 0!==i?i:""),w.BMQ("aria-label",t.emptyFieldAriaLabel(e)),w.R7$(),w.vxM(e.value?4:-1)}}function ni(e,t){var i;if(1&e&&w.nrm(0,"input",7),2&e){const e=w.XpG(2).$implicit,t=w.XpG();w.Y8G("value",null!==(i=e.value)&&void 0!==i?i:""),w.BMQ("aria-label",t.emptyFieldAriaLabel(e))}}function ri(e,t){var i;if(1&e&&w.nrm(0,"textarea",8),2&e){const e=w.XpG(2).$implicit;w.Y8G("value",null!==(i=e.value)&&void 0!==i?i:"")}}function si(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",12),w.nI1(1,"i18n"),w.bIt("click",function(){a.eBV(e);const t=w.XpG(2).$index,i=w.XpG();return a.Njj(i.toggleCharacterCount(t))}),w.k0s()}if(2&e){const e=w.XpG(2).$index,t=w.XpG();w.Y8G("label",w.bMT(1,2,t.showHiddenValueCountFields.includes(e)?"hideCharacterCount":"showCharacterCount")),w.BMQ("aria-expanded",t.showHiddenValueCountFields.includes(e))}}function oi(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",13),w.bIt("toggledChange",function(t){a.eBV(e);const i=w.XpG(2).$index,n=w.XpG();return a.Njj(n.toggleHiddenField(t,i))}),w.k0s()}}function ai(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",14),w.nI1(1,"i18n"),w.bIt("click",function(){a.eBV(e);const t=w.XpG(3);return a.Njj(t.logCopyEvent())}),w.k0s()}if(2&e){const e=w.XpG(2).$implicit;w.Y8G("appCopyClick",e.value)("valueLabel",e.name)("label",w.i5U(1,3,"copyCustomField",e.name))}}function li(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label",4),w.EFF(2),w.k0s(),w.nVh(3,ni,1,2,"input",7),w.nVh(4,ri,1,1,"textarea",8),w.nVh(5,si,2,4,"button",9),w.nVh(6,oi,1,0,"button",10),w.nVh(7,ai,2,6,"button",11),w.k0s()),2&e){const e=w.XpG(),t=e.$implicit,i=e.$index,n=w.XpG();w.R7$(),w.Y8G("appTextDrag",t.value),w.R7$(),w.JRh(t.name),w.R7$(),w.vxM(n.revealedHiddenFields.includes(i)?-1:3),w.R7$(),w.vxM(n.revealedHiddenFields.includes(i)?4:-1),w.R7$(),w.vxM(n.canViewPassword&&n.revealedHiddenFields.includes(i)?5:-1),w.R7$(),w.vxM(n.canViewPassword&&t.value?6:-1),w.R7$(),w.vxM(n.canViewPassword&&t.value?7:-1)}}function ci(e,t){if(1&e&&(w.j41(0,"div",3),w.nrm(1,"bit-color-password",15),w.k0s()),2&e){const e=w.XpG().$implicit;w.Y8G("ngClass",w.lJ4(3,_t)),w.R7$(),w.Y8G("password",e.value)("showCount",!0)}}function di(e,t){if(1&e&&(w.j41(0,"bit-form-control"),w.nrm(1,"input",16),w.j41(2,"bit-label",4),w.EFF(3),w.k0s()()),2&e){const e=w.XpG().$implicit;w.R7$(),w.Y8G("checked","true"===e.value),w.R7$(),w.Y8G("appTextDrag",e.value),w.R7$(),w.SpI(" ",e.name," ")}}function ui(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",17),w.k0s()),2&e){const e=w.XpG().$implicit,t=w.XpG();w.R7$(2),w.Lme(" ",w.bMT(3,3,"cfTypeLinked"),": ",e.name," "),w.R7$(2),w.Y8G("value",t.getLinkedType(e.linkedId))}}function hi(e,t){if(1&e&&(w.j41(0,"div",2),w.nVh(1,ii,5,5,"bit-form-field"),w.nVh(2,li,8,7,"bit-form-field"),w.nVh(3,ci,2,4,"div",3),w.nVh(4,di,4,3,"bit-form-control"),w.nVh(5,ui,5,5,"bit-form-field"),w.k0s()),2&e){const e=t.$implicit,i=t.$index,n=t.$count,r=w.XpG();w.Y8G("ngClass",w.eq3(6,$t,!(i===n-1))),w.R7$(),w.vxM(e.type===r.fieldType.Text?1:-1),w.R7$(),w.vxM(e.type===r.fieldType.Hidden?2:-1),w.R7$(),w.vxM(r.showHiddenValueCountFields.includes(i)&&r.revealedHiddenFields.includes(i)?3:-1),w.R7$(),w.vxM(e.type===r.fieldType.Boolean?4:-1),w.R7$(),w.vxM(e.type===r.fieldType.Linked?5:-1)}}class Ai{constructor(e,t){this.i18nService=e,this.eventCollectionService=t,this.fieldType=p.PU,this.revealedHiddenFields=[],this.showHiddenValueCountFields=[]}ngOnInit(){this.fieldOptions=this.getLinkedFieldsOptionsForCipher()}ngOnChanges(e){e.cipher&&(this.revealedHiddenFields=[],this.fieldOptions=this.getLinkedFieldsOptionsForCipher())}getLinkedType(e){var t;const i=null===(t=this.fieldOptions)||void 0===t?void 0:t.get(e);return i?this.i18nService.t(i.i18nKey):null}get canViewPassword(){return this.cipher.viewPassword}emptyFieldAriaLabel(e){return e.value?null:`${e.name}, ${this.i18nService.t("noValueEntered")}`}toggleCharacterCount(e){const t=this.showHiddenValueCountFields.indexOf(e);t>-1?this.showHiddenValueCountFields.splice(t,1):this.showHiddenValueCountFields.push(e)}toggleHiddenField(e,t){return qt(this,void 0,void 0,function*(){e?this.revealedHiddenFields.push(t):this.revealedHiddenFields=this.revealedHiddenFields.filter(e=>e!==t),e&&(yield this.eventCollectionService.collect(J.Bx.Cipher_ClientToggledHiddenFieldVisible,this.cipher.id,!1,this.cipher.organizationId))})}logCopyEvent(){return qt(this,void 0,void 0,function*(){yield this.eventCollectionService.collect(J.Bx.Cipher_ClientCopiedHiddenField,this.cipher.id,!1,this.cipher.organizationId)})}getLinkedFieldsOptionsForCipher(){switch(this.cipher.type){case p.gC.Login:return jt.r.prototype.linkedFieldOptions;case p.gC.Card:return Ot.G.prototype.linkedFieldOptions;case p.gC.Identity:return Nt.O.prototype.linkedFieldOptions;default:return}}}Ai.ɵfac=function(e){return new(e||Ai)(w.rXU(S.W),w.rXU(J.c_))},Ai.ɵcmp=w.VBU({type:Ai,selectors:[["app-custom-fields-v2"]],inputs:{cipher:"cipher"},features:[w.OA$],decls:8,vars:3,consts:[[1,"tw-mb-5","bit-compact:tw-mb-4"],["bitTypography","h6"],["data-testid","custom-field",1,"tw-border-secondary-300","[&_bit-form-field:last-of-type]:tw-mb-0",3,"ngClass"],[3,"ngClass"],[3,"appTextDrag"],["readonly","","bitInput","","aria-readonly","true","vaultAutosizeReadOnlyTextArea","",3,"value"],["bitIconButton","bwi-clone","bitSuffix","","type","button","showToast","","data-testid","copy-custom-field",3,"appCopyClick","valueLabel","label"],["readonly","","bitInput","","type","password","aria-readonly","true",1,"tw-font-mono",3,"value"],["readonly","","bitInput","","type","password","aria-readonly","true","vaultAutosizeReadOnlyTextArea","",1,"tw-font-mono",3,"value"],["bitIconButton","bwi-numbered-list","bitSuffix","","type","button","data-testid","toggle-hidden-field-value-count","appStopClick","",3,"label"],["bitSuffix","","type","button","bitIconButton","","bitPasswordInputToggle",""],["bitIconButton","bwi-clone","bitSuffix","","type","button","showToast","",3,"appCopyClick","valueLabel","label"],["bitIconButton","bwi-numbered-list","bitSuffix","","type","button","data-testid","toggle-hidden-field-value-count","appStopClick","",3,"click","label"],["bitSuffix","","type","button","bitIconButton","","bitPasswordInputToggle","",3,"toggledChange"],["bitIconButton","bwi-clone","bitSuffix","","type","button","showToast","",3,"click","appCopyClick","valueLabel","label"],[3,"password","showCount"],["bitCheckbox","","type","checkbox","aria-readonly","true","disabled","",3,"checked"],["readonly","","bitInput","","type","text","aria-readonly","true",3,"value"]],template:function(e,t){1&e&&(w.j41(0,"section",0)(1,"bit-section-header")(2,"h2",1),w.EFF(3),w.nI1(4,"i18n"),w.k0s()(),w.j41(5,"bit-card"),w.Z7z(6,hi,6,8,"div",2,ei,!0),w.k0s()()),2&e&&(w.R7$(3),w.JRh(w.bMT(4,1,"customFields")),w.R7$(3),w.Dyx(t.cipher.fields))},dependencies:[ve.MD,ve.YU,v.p,Kt.Y,Ge.D,Ue,Me.i,I.Q,Y.s,C.L,Zt.f,G.j,U.J,O.h,N.e,j.a,xe.x,Ve.U,Pe.E,Oe.r,Yt.q,Ht.P,Xt.p,Jt.S,Wt,X.$],encapsulation:2});var pi=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function gi(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",2)(5,"button",3),w.nI1(6,"i18n"),w.k0s()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,4,"firstName")),w.R7$(2),w.Y8G("value",e.driversLicense().firstName),w.R7$(),w.Y8G("label",w.bMT(6,6,"copyFirstName"))("cipher",e.cipher())}}function vi(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",2)(5,"button",4),w.nI1(6,"i18n"),w.k0s()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,4,"middleName")),w.R7$(2),w.Y8G("value",e.driversLicense().middleName),w.R7$(),w.Y8G("label",w.bMT(6,6,"copyMiddleName"))("cipher",e.cipher())}}function mi(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",2)(5,"button",5),w.nI1(6,"i18n"),w.k0s()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,4,"lastName")),w.R7$(2),w.Y8G("value",e.driversLicense().lastName),w.R7$(),w.Y8G("label",w.bMT(6,6,"copyLastName"))("cipher",e.cipher())}}function fi(e,t){if(1&e){const e=w.RV6();w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",6),w.j41(5,"button",7),w.bIt("toggledChange",function(t){a.eBV(e);const i=w.XpG();return a.Njj(i.toggleLicenseNumberVisible(t))}),w.k0s(),w.nrm(6,"button",8),w.nI1(7,"i18n"),w.k0s()}if(2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,5,"licenseNumber")),w.R7$(2),w.Y8G("value",e.driversLicense().licenseNumber),w.R7$(),w.Y8G("toggled",e.revealLicenseNumber()),w.R7$(),w.Y8G("label",w.bMT(7,7,"copyLicenseNumber"))("cipher",e.cipher())}}function yi(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",2),w.k0s()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,2,"dateOfBirth")),w.R7$(2),w.Y8G("value",e.formatDate(e.driversLicense().dateOfBirth))}}function bi(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",2),w.k0s()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,2,"issuingCountry")),w.R7$(2),w.Y8G("value",e.driversLicense().issuingCountry)}}function Ci(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",2),w.k0s()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,2,"issuingState")),w.R7$(2),w.Y8G("value",e.driversLicense().issuingState)}}function Ii(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",2),w.k0s()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,2,"issuingAuthority")),w.R7$(2),w.Y8G("value",e.driversLicense().issuingAuthority)}}function wi(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",2),w.k0s()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,2,"issueDate")),w.R7$(2),w.Y8G("value",e.formatDate(e.driversLicense().issueDate))}}function Bi(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",2),w.k0s()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,2,"expirationDate")),w.R7$(2),w.Y8G("value",e.formatDate(e.driversLicense().expirationDate))}}function Ei(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",2),w.k0s()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,2,"licenseClass")),w.R7$(2),w.Y8G("value",e.driversLicense().licenseClass)}}class Si{constructor(){this.eventCollectionService=(0,a.WQX)(J.c_),this.datePipe=(0,a.WQX)(ve.vh),this.driversLicense=ue.hFB.required(),this.cipher=ue.hFB.required(),this.revealLicenseNumber=(0,a.vPA)(!1)}formatDate(e){var t;if(!e)return"";const[i,n,r]=e.split("-");if(i&&n&&r){const e=new Date(+i,+n-1,+r);return null!==(t=this.datePipe.transform(e,"longDate"))&&void 0!==t?t:""}return e}toggleLicenseNumberVisible(e){return pi(this,void 0,void 0,function*(){this.revealLicenseNumber.set(e),e&&(yield this.eventCollectionService.collect(J.Bx.Cipher_ClientToggledLicenseNumberVisible,this.cipher().id,!1,this.cipher().organizationId))})}}Si.ɵfac=function(e){return new(e||Si)},Si.ɵcmp=w.VBU({type:Si,selectors:[["app-drivers-license-view"]],inputs:{driversLicense:[1,"driversLicense"],cipher:[1,"cipher"]},features:[w.Jv_([ve.vh])],decls:17,vars:14,consts:[[1,"tw-mb-5","bit-compact:tw-mb-4"],["bitTypography","h6"],["readonly","","bitInput","","aria-readonly","true",3,"value"],["bitIconButton","bwi-clone","bitSuffix","","type","button","appCopyField","firstNameLicense",3,"label","cipher"],["bitIconButton","bwi-clone","bitSuffix","","type","button","appCopyField","middleNameLicense",3,"label","cipher"],["bitIconButton","bwi-clone","bitSuffix","","type","button","appCopyField","lastNameLicense",3,"label","cipher"],["readonly","","bitInput","","aria-readonly","true","type","password",3,"value"],["bitSuffix","","type","button","bitIconButton","","bitPasswordInputToggle","",3,"toggledChange","toggled"],["bitIconButton","bwi-clone","bitSuffix","","type","button","appCopyField","licenseNumber",3,"label","cipher"]],template:function(e,t){1&e&&(w.j41(0,"section",0)(1,"bit-section-header")(2,"h2",1),w.EFF(3),w.nI1(4,"i18n"),w.k0s()(),w.j41(5,"read-only-cipher-card"),w.nVh(6,gi,7,8,"bit-form-field"),w.nVh(7,vi,7,8,"bit-form-field"),w.nVh(8,mi,7,8,"bit-form-field"),w.nVh(9,fi,8,9,"bit-form-field"),w.nVh(10,yi,5,4,"bit-form-field"),w.nVh(11,bi,5,4,"bit-form-field"),w.nVh(12,Ci,5,4,"bit-form-field"),w.nVh(13,Ii,5,4,"bit-form-field"),w.nVh(14,wi,5,4,"bit-form-field"),w.nVh(15,Bi,5,4,"bit-form-field"),w.nVh(16,Ei,5,4,"bit-form-field"),w.k0s()()),2&e&&(w.R7$(3),w.JRh(w.bMT(4,12,"driversLicenseDetails")),w.R7$(3),w.vxM(t.driversLicense().firstName?6:-1),w.R7$(),w.vxM(t.driversLicense().middleName?7:-1),w.R7$(),w.vxM(t.driversLicense().lastName?8:-1),w.R7$(),w.vxM(t.driversLicense().licenseNumber?9:-1),w.R7$(),w.vxM(t.driversLicense().dateOfBirth?10:-1),w.R7$(),w.vxM(t.driversLicense().issuingCountry?11:-1),w.R7$(),w.vxM(t.driversLicense().issuingState?12:-1),w.R7$(),w.vxM(t.driversLicense().issuingAuthority?13:-1),w.R7$(),w.vxM(t.driversLicense().issueDate?14:-1),w.R7$(),w.vxM(t.driversLicense().expirationDate?15:-1),w.R7$(),w.vxM(t.driversLicense().licenseClass?16:-1))},dependencies:[ve.MD,v.p,Ve.U,ft,Pe.E,Oe.r,C.L,G.j,U.J,O.h,N.e,j.a,I.Q,Y.s,re.w,X.$],encapsulation:2,changeDetection:0});var Qi=i(82129),ki=i(14848),Ri=i(84488),Fi=i(78078),Ti=i(26333);const Di=e=>({"tw-mb-2":e}),Pi=(e,t)=>t.id;function Mi(e,t){if(1&e&&(w.nrm(0,"i",8),w.nI1(1,"i18n")),2&e){const e=w.XpG(2);w.Y8G("tierType",e.organization().productTierType)("size","large")("title",w.bMT(1,3,"owner"))}}function xi(e,t){if(1&e&&w.nrm(0,"i",9),2&e){const e=w.XpG().$implicit,t=w.XpG();w.Y8G("ngClass",t.getIconClass(e))("title",t.getItemTitle(e))}}function Vi(e,t){if(1&e&&(w.j41(0,"span",6),w.nVh(1,Mi,2,5,"i",8)(2,xi,1,2,"i",9),w.j41(3,"span",10),w.EFF(4),w.k0s()()),2&e){const e=t.$implicit,i=t.$index,n=t.$count,r=w.XpG();w.Y8G("ngClass",w.eq3(4,Di,i===n-1&&r.hasSmallScreen())),w.BMQ("aria-label",r.getAriaLabel(e)),w.R7$(),w.vxM(r.isOrgIcon(e)?1:2),w.R7$(3),w.SpI(" ",e.name," ")}}function Gi(e,t){1&e&&(w.j41(0,"span",7),w.nI1(1,"i18n"),w.nrm(2,"i",11),w.nI1(3,"i18n"),w.j41(4,"span",10),w.EFF(5),w.nI1(6,"i18n"),w.k0s()()),2&e&&(w.BMQ("aria-label",w.bMT(1,3,"noneFolder")),w.R7$(2),w.Y8G("title",w.bMT(3,5,"folder")),w.R7$(3),w.SpI(" ",w.bMT(6,7,"noneFolder")," "))}function Ui(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",13),w.bIt("click",function(){a.eBV(e);const t=w.XpG(2);return a.Njj(t.toggleShowMore())}),w.EFF(1),w.nI1(2,"i18n"),w.k0s()}2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,1,"showMore")," "))}function Oi(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",13),w.bIt("click",function(){a.eBV(e);const t=w.XpG(2);return a.Njj(t.toggleShowMore())}),w.EFF(1),w.nI1(2,"i18n"),w.k0s()}2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,1,"showLess")," "))}function Ni(e,t){if(1&e&&w.nVh(0,Ui,3,3,"button",12)(1,Oi,3,3,"button",12),2&e){const e=w.XpG();w.vxM(e.showAllDetails()?1:0)}}class ji{constructor(e){this.i18nService=e,this.hideOwner=(0,ue.hFB)(!1),this.cipher=ue.hFB.required(),this.organization=(0,ue.hFB)(),this.folder=(0,ue.hFB)(),this.collections=(0,ue.hFB)(),this.showAllDetails=(0,a.vPA)(!1),this.showOwnership=(0,me.EW)(()=>this.cipher().organizationId&&this.organization()&&!this.hideOwner()),this.hasSmallScreen=(0,he.ot)((0,Qi.R)(window,"resize").pipe((0,r.T)(()=>window.innerWidth),(0,Ie.Z)(window.innerWidth),(0,r.T)(e=>e<681))),this.allItems=(0,me.EW)(()=>{var e;let t=[];return this.showOwnership()&&this.organization()&&t.push(this.organization()),(null===(e=this.cipher().collectionIds)||void 0===e?void 0:e.length)>0&&this.collections()&&(t=[...t,...this.collections()]),this.cipher().folderId&&this.folder()&&t.push(this.folder()),t}),this.showItems=(0,me.EW)(()=>{var e;return this.hasSmallScreen()&&this.allItems().length>2&&!this.showAllDetails()&&(null===(e=this.cipher().collectionIds)||void 0===e?void 0:e.length)>1?this.allItems().slice(0,2):this.allItems()})}toggleShowMore(){this.showAllDetails.update(e=>!e)}getAriaLabel(e){return e instanceof Ri.y?this.i18nService.t("owner")+e.name:e instanceof ki.iY?this.i18nService.t("collection")+e.name:e instanceof Fi.u?this.i18nService.t("folder")+e.name:""}getIconClass(e){return e instanceof ki.iY?e.type===ki.it.DefaultUserCollection?"bwi-user":"bwi-collection-shared":e instanceof Fi.u?"bwi-folder":""}getItemTitle(e){return e instanceof ki.iY?this.i18nService.t("collection"):e instanceof Fi.u?this.i18nService.t("folder"):""}isOrgIcon(e){return e instanceof Ri.y}}ji.ɵfac=function(e){return new(e||ji)(w.rXU(S.W))},ji.ɵcmp=w.VBU({type:ji,selectors:[["app-item-details-v2"]],inputs:{hideOwner:[1,"hideOwner"],cipher:[1,"cipher"],organization:[1,"organization"],folder:[1,"folder"],collections:[1,"collections"]},ngContentSelectors:["*"],decls:14,vars:8,consts:[[1,"tw-mb-5","bit-compact:tw-mb-4"],[1,"tw-flex","tw-place-items-center","tw-w-full",3,"ngClass"],[1,"tw-flex","tw-items-center","tw-justify-center",2,"width","40px","height","40px"],[3,"cipher","coloredIcon"],["bitTypography","h4","data-testid","item-name",1,"tw-ml-2","tw-mt-2","tw-select-auto","tw-flex-1","tw-break-all","tw-line-clamp-2"],[1,"tw-flex","tw-flex-col","tw-mt-2","md:tw-flex-row","md:tw-flex-wrap"],["bitTypography","body2","data-testid","item-details-list",1,"tw-flex","tw-items-center","tw-mt-2","tw-mr-4",3,"ngClass"],["bitTypography","body2",1,"tw-flex","tw-items-center","tw-mt-2","tw-mr-4"],["appOrgIcon","",3,"tierType","size","title"],["aria-hidden","true",1,"bwi","bwi-lg",3,"ngClass","title"],["aria-hidden","true",1,"tw-pl-1.5"],["aria-hidden","true",1,"bwi","bwi-folder","bwi-lg",3,"title"],["bitTypography","body2","type","button","bitLink","","linkType","primary",1,"tw-mt-1.5"],["bitTypography","body2","type","button","bitLink","","linkType","primary",1,"tw-mt-1.5",3,"click"]],template:function(e,t){1&e&&(w.NAR(),w.j41(0,"section",0)(1,"bit-card")(2,"div",1)(3,"div",2),w.nrm(4,"app-vault-icon",3),w.k0s(),w.j41(5,"h2",4),w.EFF(6),w.k0s()(),w.qex(7),w.j41(8,"div",5),w.Z7z(9,Vi,5,6,"span",6,Pi),w.nVh(11,Gi,7,9,"span",7),w.nVh(12,Ni,2,1),w.k0s(),w.bVm(),w.SdG(13),w.k0s()()),2&e&&(w.R7$(2),w.Y8G("ngClass",w.eq3(6,Di,t.allItems.length>0)),w.R7$(2),w.Y8G("cipher",t.cipher())("coloredIcon",!0),w.R7$(2),w.SpI(" ",t.cipher().name," "),w.R7$(3),w.Dyx(t.showItems()),w.R7$(2),w.vxM(0===t.allItems().length?11:-1),w.R7$(),w.vxM(t.hasSmallScreen()&&t.allItems().length>2&&t.cipher().collectionIds.length>1?12:-1))},dependencies:[ve.MD,ve.YU,v.p,Ti.R,Me.i,Pe.E,Oe.r,oe,C.L,De.g,X.$],encapsulation:2});var Yi=i(84522),Xi=i(88832),zi=i(26477),Li=i(75421),Wi=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Ki=(e,t)=>({"tw-mb-1 ":e,"tw-mb-0":t}),Zi=e=>({"tw-mb-3":e});function Hi(e,t){if(1&e&&(w.j41(0,"p",4)(1,"span",3),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.EFF(4),w.nI1(5,"date"),w.k0s()),2&e){const e=w.XpG();w.Y8G("ngClass",w.eq3(8,Zi,e.cipher.hasPasswordHistory)),w.R7$(2),w.SpI("",w.bMT(3,3,"datePasswordUpdated"),":"),w.R7$(2),w.SpI(" ",w.i5U(5,5,e.cipher.passwordRevisionDisplayDate,"medium")," ")}}function Ji(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",6),w.bIt("click",function(){a.eBV(e);const t=w.XpG();return a.Njj(t.viewPasswordHistory())}),w.EFF(1),w.nI1(2,"i18n"),w.k0s()}2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,1,"passwordHistory")," "))}class qi{constructor(e){this.viewPasswordHistoryService=e}get isLogin(){return this.cipher.type===p.gC.Login}viewPasswordHistory(){return Wi(this,void 0,void 0,function*(){yield this.viewPasswordHistoryService.viewPasswordHistory(this.cipher)})}}qi.ɵfac=function(e){return new(e||qi)(w.rXU(Li.Q))},qi.ɵcmp=w.VBU({type:qi,selectors:[["app-item-history-v2"]],inputs:{cipher:"cipher"},decls:20,vars:23,consts:[["disableMargin",""],["bitTypography","h6"],[1,"tw-mb-1","tw-text-xs","tw-text-muted","tw-select-all"],[1,"tw-font-medium"],[1,"tw-text-xs","tw-text-muted","tw-select-all",3,"ngClass"],["bitTypography","body2","bitLink","","type","button"],["bitTypography","body2","bitLink","","type","button",3,"click"]],template:function(e,t){1&e&&(w.j41(0,"bit-section",0)(1,"bit-section-header")(2,"h2",1),w.EFF(3),w.nI1(4,"i18n"),w.k0s()(),w.j41(5,"bit-card")(6,"p",2)(7,"span",3),w.EFF(8),w.nI1(9,"i18n"),w.k0s(),w.EFF(10),w.nI1(11,"date"),w.k0s(),w.j41(12,"p",4)(13,"span",3),w.EFF(14),w.nI1(15,"i18n"),w.k0s(),w.EFF(16),w.nI1(17,"date"),w.k0s(),w.nVh(18,Hi,6,10,"p",4),w.nVh(19,Ji,3,3,"button",5),w.k0s()()),2&e&&(w.R7$(3),w.JRh(w.bMT(4,8,"itemHistory")),w.R7$(5),w.SpI("",w.bMT(9,10,"lastEdited"),":"),w.R7$(2),w.SpI(" ",w.i5U(11,12,t.cipher.revisionDate,"medium")," "),w.R7$(2),w.Y8G("ngClass",w.l_i(20,Ki,t.cipher.hasPasswordHistory,!t.cipher.hasPasswordHistory)),w.R7$(2),w.SpI("",w.bMT(15,15,"dateCreated"),":"),w.R7$(2),w.SpI(" ",w.i5U(17,17,t.cipher.creationDate,"medium")," "),w.R7$(2),w.vxM(t.cipher.passwordRevisionDisplayDate?18:-1),w.R7$(),w.vxM(t.cipher.hasPasswordHistory?19:-1))},dependencies:[ve.MD,ve.YU,v.p,Yi.iI,Me.i,Xi.n,Ve.U,Pe.E,Oe.r,zi.V,De.g,ve.vh,X.$],encapsulation:2});var $i=i(30675),_i=i(35284),en=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const tn=(e,t)=>({"tw-text-main":e,"tw-text-danger":t}),nn=(e,t)=>({"tw-stroke-text-main":e,"tw-stroke-danger-600":t}),rn=e=>({"stroke-dashoffset.px":e});function sn(e,t){if(1&e&&(w.qex(0),w.j41(1,"div",0)(2,"span",1)(3,"span",2),w.EFF(4),w.k0s(),a.qSk(),w.j41(5,"svg",3)(6,"g"),w.nrm(7,"circle",4)(8,"circle",5),w.k0s()()()(),w.bVm()),2&e){const e=t;w.R7$(3),w.Y8G("ngClass",w.l_i(5,tn,!e.totpLow,e.totpLow)),w.R7$(),w.JRh(e.totpSec),w.R7$(3),w.Y8G("ngClass",w.l_i(8,nn,!e.totpLow,e.totpLow))("ngStyle",w.eq3(11,rn,e.totpDash)),w.R7$(),w.Y8G("ngClass",w.l_i(13,nn,!e.totpLow,e.totpLow))}}class on{constructor(e){this.totpService=e,this.sendCopyCode=new a.bkB}ngOnInit(){return en(this,void 0,void 0,function*(){this.setTotpInfo()})}ngOnChanges(e){e.cipher&&this.setTotpInfo()}setTotpInfo(){var e,t;this.totpInfo$=(null===(t=null===(e=this.cipher)||void 0===e?void 0:e.login)||void 0===t?void 0:t.totp)?this.totpService.getCode$(this.cipher.login.totp).pipe((0,r.T)(e=>{const t=Math.round((new Date).getTime()/1e3)%e.period;return{totpCode:e.code,totpCodeFormatted:this.formatTotpCode(e.code),totpSec:e.period-t,totpDash:+(Math.round(60/e.period*t+"e+2")+"e-2"),totpLow:e.period-t<=7}}),(0,_i.M)(e=>{e.totpCode&&e.totpCode.length>4&&this.sendCopyCode.emit({totpCode:e.totpCode,totpCodeFormatted:e.totpCodeFormatted})})):void 0}formatTotpCode(e){if(e.length>4){const t=Math.floor(e.length/2);return e.substring(0,t)+" "+e.substring(t)}return e}}on.ɵfac=function(e){return new(e||on)(w.rXU(_.R))},on.ɵcmp=w.VBU({type:on,selectors:[["","bitTotpCountdown",""]],inputs:{cipher:"cipher"},outputs:{sendCopyCode:"sendCopyCode"},features:[w.OA$],attrs:["bitTotpCountdown",""],decls:2,vars:3,consts:[[1,"tw-flex","tw-items-center","tw-justify-center"],["aria-hidden","true",1,"tw-relative","tw-flex","tw-justify-center","tw-items-center"],["bitTypography","helper",1,"tw-absolute",3,"ngClass"],["transform","rotate(-90)","viewBox","0 0 28 28",1,"tw-size-7"],["r","9.5","cy","14","cx","14","stroke-width","2","stroke-dasharray","60",1,"tw-fill-none",3,"ngClass","ngStyle"],["r","11","cy","14","cx","14","stroke-width","1","stroke-dasharray","71","stroke-dashoffset","0",1,"tw-fill-none",3,"ngClass"]],template:function(e,t){if(1&e&&(w.nVh(0,sn,9,16,"ng-container"),w.nI1(1,"async")),2&e){let e;w.vxM((e=w.bMT(1,1,t.totpInfo$))?0:-1,e)}},dependencies:[ve.MD,ve.YU,ve.B3,Pe.E,Oe.r,ve.Jj],encapsulation:2});var an=i(43090),ln=i(93199),cn=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const dn=["passwordInput"],un=e=>({"tw-hidden":e}),hn=e=>({"tw-mt-3":e,"tw-mb-2":!0});function An(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label",4),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",5)(5,"button",6),w.nI1(6,"i18n"),w.nI1(7,"i18n"),w.k0s()),2&e){const e=w.XpG();w.R7$(),w.Y8G("appTextDrag",e.cipher.login.username),w.R7$(),w.SpI(" ",w.bMT(3,6,"username")," "),w.R7$(2),w.Y8G("value",e.cipher.login.username),w.R7$(),w.Y8G("appCopyClick",e.cipher.login.username)("valueLabel",w.bMT(6,8,"username"))("label",w.bMT(7,10,"copyUsername"))}}function pn(e,t){if(1&e&&(w.j41(0,"span",9),w.nrm(1,"bit-color-password",14),w.k0s()),2&e){const e=w.XpG(2);w.BMQ("aria-label",e.cipher.login.password),w.R7$(),w.Y8G("password",e.cipher.login.password)}}function gn(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",15),w.nI1(1,"i18n"),w.bIt("click",function(){a.eBV(e);const t=w.XpG(2);return a.Njj(t.togglePasswordCount())}),w.k0s()}if(2&e){const e=w.XpG(2);w.Y8G("label",w.bMT(1,2,e.showPasswordCount?"hideCharacterCount":"showCharacterCount")),w.BMQ("aria-expanded",e.showPasswordCount)}}function vn(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",16),w.bIt("toggledChange",function(t){a.eBV(e);const i=w.XpG(2);return a.Njj(i.pwToggleValue(t))}),w.k0s()}if(2&e){const e=w.XpG(2);w.Y8G("toggled",e.passwordRevealed)}}function mn(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",17),w.nI1(1,"i18n"),w.nI1(2,"i18n"),w.bIt("click",function(){a.eBV(e);const t=w.XpG(2);return a.Njj(t.logCopyEvent())}),w.k0s()}if(2&e){const e=w.XpG(2);w.Y8G("appCopyClick",e.cipher.login.password)("valueLabel",w.bMT(1,3,"password"))("label",w.bMT(2,5,"copyPassword"))}}function fn(e,t){if(1&e){const e=w.RV6();w.j41(0,"a",21),w.bIt("click",function(){a.eBV(e);const t=w.XpG(3);return a.Njj(t.launchChangePasswordEvent())}),w.EFF(1),w.nI1(2,"i18n"),w.k0s()}if(2&e){const e=w.XpG(3);w.Y8G("href",e.changePasswordLink(),w.B4B),w.R7$(),w.SpI(" ",w.bMT(2,2,"changeNow")," ")}}function yn(e,t){if(1&e&&(w.j41(0,"bit-hint",13),w.nrm(1,"i",18),w.j41(2,"span",19),w.EFF(3),w.nI1(4,"i18n"),w.k0s(),w.nVh(5,fn,3,4,"a",20),w.k0s()),2&e){const e=w.XpG(2);w.R7$(3),w.JRh(w.bMT(4,2,"atRiskPassword")),w.R7$(2),w.vxM(e.changePasswordLink()?5:-1)}}function bn(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label",7),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",8,0),w.nVh(6,pn,2,2,"span",9),w.nVh(7,gn,2,4,"button",10),w.nVh(8,vn,1,1,"button",11),w.nVh(9,mn,3,7,"button",12),w.nVh(10,yn,6,4,"bit-hint",13),w.k0s()),2&e){const e=w.XpG();w.R7$(),w.Y8G("appTextDrag",e.cipher.login.password),w.R7$(),w.SpI(" ",w.bMT(3,9,"password")," "),w.R7$(2),w.Y8G("ngClass",w.eq3(11,un,e.passwordRevealed))("value",e.cipher.login.password),w.R7$(2),w.vxM(e.passwordRevealed?6:-1),w.R7$(),w.vxM(e.cipher.viewPassword&&e.passwordRevealed?7:-1),w.R7$(),w.vxM(e.cipher.viewPassword?8:-1),w.R7$(),w.vxM(e.cipher.viewPassword?9:-1),w.R7$(),w.vxM(e.showChangePasswordLink?10:-1)}}function Cn(e,t){if(1&e&&(w.j41(0,"div",3),w.nrm(1,"bit-color-password",22),w.k0s()),2&e){const e=w.XpG();w.Y8G("ngClass",w.eq3(3,hn,!e.cipher.login.totp)),w.R7$(),w.Y8G("password",e.cipher.login.password)("showCount",!0)}}function In(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label",4),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",23),w.k0s()),2&e){const e=w.XpG();w.R7$(),w.Y8G("appTextDrag",e.fido2CredentialCreationDateValue),w.R7$(),w.SpI("",w.bMT(3,3,"typePasskey")," "),w.R7$(2),w.Y8G("value",e.fido2CredentialCreationDateValue)}}function wn(e,t){if(1&e){const e=w.RV6();w.j41(0,"div",29),w.bIt("sendCopyCode",function(t){a.eBV(e);const i=w.XpG(2);return a.Njj(i.setTotpCopyCode(t))}),w.k0s()}if(2&e){const e=w.XpG(2);w.Y8G("cipher",e.cipher)}}function Bn(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label",4)(2,"div",24),w.EFF(3),w.nI1(4,"i18n"),w.nrm(5,"app-premium-badge",25),w.k0s()(),w.nrm(6,"input",26),w.nI1(7,"async"),w.nVh(8,wn,1,1,"div",27),w.nI1(9,"async"),w.nrm(10,"button",28),w.nI1(11,"i18n"),w.nI1(12,"i18n"),w.nI1(13,"async"),w.k0s()),2&e){const e=w.XpG();w.R7$(),w.Y8G("appTextDrag",null==e.totpCodeCopyObj?null:e.totpCodeCopyObj.totpCode),w.R7$(2),w.SpI(" ",w.bMT(4,10,"verificationCodeTotp")," "),w.R7$(2),w.Y8G("organizationId",e.cipher.organizationId),w.R7$(),w.Y8G("type",w.bMT(7,12,e.isPremium$)?"text":"password")("value",(null==e.totpCodeCopyObj?null:e.totpCodeCopyObj.totpCodeFormatted)||"*** ***"),w.R7$(2),w.vxM(w.bMT(9,14,e.isPremium$)?8:-1),w.R7$(2),w.Y8G("appCopyClick",null==e.totpCodeCopyObj?null:e.totpCodeCopyObj.totpCode)("valueLabel",w.bMT(11,16,"verificationCodeTotp"))("label",w.bMT(12,18,"copyVerificationCode"))("disabled",!w.bMT(13,20,e.isPremium$))}}class En{constructor(e,t,i,n,r){this.billingAccountProfileStateService=e,this.i18nService=t,this.premiumUpgradeService=i,this.eventCollectionService=n,this.accountService=r,this.changePasswordLink=(0,ue.hFB)(),this.handleChangePassword=new a.bkB,this.isPremium$=this.accountService.activeAccount$.pipe((0,fe.n)(e=>this.billingAccountProfileStateService.hasPremiumFromAnySource$(e.id))),this.showPasswordCount=!1,this.passwordRevealed=!1,this.datePipe=(0,a.WQX)(ve.vh)}get fido2CredentialCreationDateValue(){var e;return`${this.i18nService.t("dateCreated")} ${this.datePipe.transform(null===(e=this.cipher.login.fido2Credentials[0])||void 0===e?void 0:e.creationDate,"short")}`}ngOnChanges(e){var t;e.cipher&&((null===(t=this.passwordInput)||void 0===t?void 0:t.nativeElement)&&(this.passwordInput.nativeElement.type="password"),this.passwordRevealed=!1,this.showPasswordCount=!1)}pwToggleValue(e){return cn(this,void 0,void 0,function*(){this.passwordRevealed=e,e&&(yield this.eventCollectionService.collect(J.Bx.Cipher_ClientToggledPasswordVisible,this.cipher.id,!1,this.cipher.organizationId))})}togglePasswordCount(){this.showPasswordCount=!this.showPasswordCount}setTotpCopyCode(e){this.totpCodeCopyObj=e}logCopyEvent(){return cn(this,void 0,void 0,function*(){yield this.eventCollectionService.collect(J.Bx.Cipher_ClientCopiedPassword,this.cipher.id,!1,this.cipher.organizationId)})}launchChangePasswordEvent(){this.handleChangePassword.emit()}}En.ɵfac=function(e){return new(e||En)(w.rXU(ee.Q),w.rXU(S.W),w.rXU(an.l),w.rXU(J.c_),w.rXU(R.D))},En.ɵcmp=w.VBU({type:En,selectors:[["app-login-credentials-view"]],viewQuery:function(e,t){if(1&e&&w.GBs(dn,5),2&e){let e;w.mGM(e=w.lsd())&&(t.passwordInput=e.first)}},inputs:{cipher:"cipher",activeUserId:"activeUserId",showChangePasswordLink:"showChangePasswordLink",changePasswordLink:[1,"changePasswordLink"]},outputs:{handleChangePassword:"handleChangePassword"},features:[w.OA$],decls:11,vars:8,consts:[["passwordInput",""],[1,"tw-mb-5","bit-compact:tw-mb-4"],["bitTypography","h6"],[3,"ngClass"],[3,"appTextDrag"],["id","userName","readonly","","bitInput","","type","text","aria-readonly","true","data-testid","login-username",3,"value"],["bitIconButton","bwi-clone","bitSuffix","","type","button","showToast","","data-testid","copy-username",3,"appCopyClick","valueLabel","label"],["id","password-label",3,"appTextDrag"],["id","password","readonly","","bitInput","","type","password","aria-readonly","true","data-testid","login-password",3,"ngClass","value"],["role","textbox","tabindex","0","data-testid","login-password-color","aria-readonly","true","aria-labelledby","password-label"],["bitIconButton","bwi-numbered-list","bitSuffix","","type","button","data-testid","toggle-password-count","appStopClick","",3,"label"],["bitSuffix","","type","button","bitIconButton","","bitPasswordInputToggle","","data-testid","toggle-password",3,"toggled"],["bitIconButton","bwi-clone","bitSuffix","","type","button","showToast","","data-testid","copy-password",3,"appCopyClick","valueLabel","label"],[1,"tw-flex","tw-mb-3","tw-items-center"],[1,"tw-font-mono",3,"password"],["bitIconButton","bwi-numbered-list","bitSuffix","","type","button","data-testid","toggle-password-count","appStopClick","",3,"click","label"],["bitSuffix","","type","button","bitIconButton","","bitPasswordInputToggle","","data-testid","toggle-password",3,"toggledChange","toggled"],["bitIconButton","bwi-clone","bitSuffix","","type","button","showToast","","data-testid","copy-password",3,"click","appCopyClick","valueLabel","label"],["aria-hidden","true",1,"bwi","bwi-exclamation-triangle","tw-text-warning"],[1,"tw-ml-2","tw-mr-1"],["bitLink","","appStopClick","",3,"href"],["bitLink","","appStopClick","",3,"click","href"],[3,"password","showCount"],["id","fido","readonly","","bitInput","","type","text","aria-readonly","true","data-testid","login-passkey",3,"value"],[1,"tw-flex","tw-items-center","tw-gap-2"],[3,"organizationId"],["id","totp","readonly","","bitInput","","aria-readonly","true","data-testid","login-totp",1,"tw-font-mono",3,"type","value"],["bitTotpCountdown","","bitSuffix","",3,"cipher"],["bitIconButton","bwi-clone","bitSuffix","","type","button","showToast","","data-testid","copy-totp",1,"disabled:tw-cursor-default",3,"appCopyClick","valueLabel","label","disabled"],["bitTotpCountdown","","bitSuffix","",3,"sendCopyCode","cipher"]],template:function(e,t){1&e&&(w.j41(0,"section",1)(1,"bit-section-header")(2,"h2",2),w.EFF(3),w.nI1(4,"i18n"),w.k0s()(),w.j41(5,"read-only-cipher-card"),w.nVh(6,An,8,12,"bit-form-field"),w.nVh(7,bn,11,13,"bit-form-field"),w.nVh(8,Cn,2,5,"div",3),w.nVh(9,In,5,5,"bit-form-field"),w.nVh(10,Bn,14,22,"bit-form-field"),w.k0s()()),2&e&&(w.R7$(3),w.JRh(w.bMT(4,6,"loginCredentials")),w.R7$(3),w.vxM(t.cipher.login.username?6:-1),w.R7$(),w.vxM(t.cipher.login.password?7:-1),w.R7$(),w.vxM(t.showPasswordCount&&t.passwordRevealed?8:-1),w.R7$(),w.vxM((null==t.cipher.login||null==t.cipher.login.fido2Credentials?null:t.cipher.login.fido2Credentials.length)>0?9:-1),w.R7$(),w.vxM(t.cipher.login.totp?10:-1))},dependencies:[ve.MD,ve.YU,v.p,Kt.Y,Ge.D,Ue,Ve.U,Pe.E,Oe.r,C.L,G.j,ln.I,U.J,O.h,N.e,j.a,I.Q,Y.s,Xt.p,Jt.S,on,ft,zi.V,De.g,$i.a,ve.Jj,X.$],encapsulation:2});var Sn=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function Qn(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",2)(5,"button",3),w.nI1(6,"i18n"),w.k0s()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,4,"firstName")),w.R7$(2),w.Y8G("value",e.passport().givenName),w.R7$(),w.Y8G("label",w.bMT(6,6,"copyFirstName"))("cipher",e.cipher())}}function kn(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",4)(5,"button",5),w.nI1(6,"i18n"),w.k0s()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,4,"lastName")),w.R7$(2),w.Y8G("value",e.passport().surname),w.R7$(),w.Y8G("label",w.bMT(6,6,"copyLastName"))("cipher",e.cipher())}}function Rn(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",6),w.k0s()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,2,"dateOfBirth")),w.R7$(2),w.Y8G("value",e.formatDate(e.passport().dateOfBirth))}}function Fn(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",7),w.k0s()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,2,"sex")),w.R7$(2),w.Y8G("value",e.passport().sex)}}function Tn(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",8),w.k0s()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,2,"birthPlace")),w.R7$(2),w.Y8G("value",e.passport().birthPlace)}}function Dn(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",9),w.k0s()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,2,"nationality")),w.R7$(2),w.Y8G("value",e.passport().nationality)}}function Pn(e,t){if(1&e){const e=w.RV6();w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",10),w.j41(5,"button",11),w.bIt("toggledChange",function(t){a.eBV(e);const i=w.XpG();return a.Njj(i.togglePassportNumberVisible(t))}),w.k0s(),w.nrm(6,"button",12),w.nI1(7,"i18n"),w.k0s()}if(2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,5,"passportNumber")),w.R7$(2),w.Y8G("value",e.passport().passportNumber),w.R7$(),w.Y8G("toggled",e.revealPassportNumber()),w.R7$(),w.Y8G("label",w.bMT(7,7,"copyPassportNumber"))("cipher",e.cipher())}}function Mn(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",13),w.k0s()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,2,"passportType")),w.R7$(2),w.Y8G("value",e.passport().passportType)}}function xn(e,t){if(1&e){const e=w.RV6();w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",14),w.j41(5,"button",11),w.bIt("toggledChange",function(t){a.eBV(e);const i=w.XpG();return a.Njj(i.toggleNationalIdentificationNumberVisible(t))}),w.k0s(),w.nrm(6,"button",15),w.nI1(7,"i18n"),w.k0s()}if(2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,5,"nationalIdentificationNumber")),w.R7$(2),w.Y8G("value",e.passport().nationalIdentificationNumber),w.R7$(),w.Y8G("toggled",e.revealNationalIdentificationNumber()),w.R7$(),w.Y8G("label",w.bMT(7,7,"copyNationalIdentificationNumber"))("cipher",e.cipher())}}function Vn(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",16),w.k0s()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,2,"issuingCountry")),w.R7$(2),w.Y8G("value",e.passport().issuingCountry)}}function Gn(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",17),w.k0s()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,2,"issuingAuthority")),w.R7$(2),w.Y8G("value",e.passport().issuingAuthority)}}function Un(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",18),w.k0s()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,2,"issueDate")),w.R7$(2),w.Y8G("value",e.formatDate(e.passport().issueDate))}}function On(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",19),w.k0s()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,2,"expirationDate")),w.R7$(2),w.Y8G("value",e.formatDate(e.passport().expirationDate))}}class Nn{constructor(){this.eventCollectionService=(0,a.WQX)(J.c_),this.datePipe=(0,a.WQX)(ve.vh),this.passport=ue.hFB.required(),this.cipher=ue.hFB.required(),this.revealPassportNumber=(0,a.vPA)(!1),this.revealNationalIdentificationNumber=(0,a.vPA)(!1)}togglePassportNumberVisible(e){return Sn(this,void 0,void 0,function*(){this.revealPassportNumber.set(e),e&&(yield this.eventCollectionService.collect(J.Bx.Cipher_ClientToggledPassportNumberVisible,this.cipher().id,!1,this.cipher().organizationId))})}toggleNationalIdentificationNumberVisible(e){return Sn(this,void 0,void 0,function*(){this.revealNationalIdentificationNumber.set(e),e&&(yield this.eventCollectionService.collect(J.Bx.Cipher_ClientToggledNationalIdentificationNumberVisible,this.cipher().id,!1,this.cipher().organizationId))})}formatDate(e){var t,i;if(!e)return"";const[n,r,s]=e.split("-");if(n&&r&&s){const i=new Date(+n,+r-1,+s);return null!==(t=this.datePipe.transform(i,"longDate"))&&void 0!==t?t:e}if(n&&r){const t=new Date(+n,+r-1,1);return null!==(i=this.datePipe.transform(t,"MMMM y"))&&void 0!==i?i:e}return null!=n?n:e}}Nn.ɵfac=function(e){return new(e||Nn)},Nn.ɵcmp=w.VBU({type:Nn,selectors:[["app-passport-view"]],inputs:{passport:[1,"passport"],cipher:[1,"cipher"]},decls:19,vars:16,consts:[[1,"tw-mb-5","bit-compact:tw-mb-4"],["bitTypography","h6"],["readonly","","bitInput","","aria-readonly","true","data-testid","firstName",3,"value"],["bitIconButton","bwi-clone","bitSuffix","","type","button","appCopyField","givenName",3,"label","cipher"],["readonly","","bitInput","","aria-readonly","true","data-testid","lastName",3,"value"],["bitIconButton","bwi-clone","bitSuffix","","type","button","appCopyField","surname",3,"label","cipher"],["readonly","","bitInput","","aria-readonly","true","data-testid","date-of-birth",3,"value"],["readonly","","bitInput","","aria-readonly","true","data-testid","sex",3,"value"],["readonly","","bitInput","","aria-readonly","true","data-testid","birth-place",3,"value"],["readonly","","bitInput","","aria-readonly","true","data-testid","nationality",3,"value"],["readonly","","bitInput","","aria-readonly","true","type","password","data-testid","passport-number",3,"value"],["bitSuffix","","type","button","bitIconButton","","bitPasswordInputToggle","",3,"toggledChange","toggled"],["bitIconButton","bwi-clone","bitSuffix","","type","button","appCopyField","passportNumber",3,"label","cipher"],["readonly","","bitInput","","aria-readonly","true","data-testid","passport-type",3,"value"],["readonly","","bitInput","","aria-readonly","true","type","password","data-testid","national-identification-number",3,"value"],["bitIconButton","bwi-clone","bitSuffix","","type","button","appCopyField","nationalIdentificationNumber",3,"label","cipher"],["readonly","","bitInput","","aria-readonly","true","data-testid","issuing-country",3,"value"],["readonly","","bitInput","","aria-readonly","true","data-testid","issuing-authority",3,"value"],["readonly","","bitInput","","aria-readonly","true","data-testid","issue-date",3,"value"],["readonly","","bitInput","","aria-readonly","true","data-testid","expiration-date",3,"value"]],template:function(e,t){1&e&&(w.j41(0,"section",0)(1,"bit-section-header")(2,"h2",1),w.EFF(3),w.nI1(4,"i18n"),w.k0s()(),w.j41(5,"read-only-cipher-card"),w.nVh(6,Qn,7,8,"bit-form-field"),w.nVh(7,kn,7,8,"bit-form-field"),w.nVh(8,Rn,5,4,"bit-form-field"),w.nVh(9,Fn,5,4,"bit-form-field"),w.nVh(10,Tn,5,4,"bit-form-field"),w.nVh(11,Dn,5,4,"bit-form-field"),w.nVh(12,Pn,8,9,"bit-form-field"),w.nVh(13,Mn,5,4,"bit-form-field"),w.nVh(14,xn,8,9,"bit-form-field"),w.nVh(15,Vn,5,4,"bit-form-field"),w.nVh(16,Gn,5,4,"bit-form-field"),w.nVh(17,Un,5,4,"bit-form-field"),w.nVh(18,On,5,4,"bit-form-field"),w.k0s()()),2&e&&(w.R7$(3),w.JRh(w.bMT(4,14,"passportDetails")),w.R7$(3),w.vxM(t.passport().givenName?6:-1),w.R7$(),w.vxM(t.passport().surname?7:-1),w.R7$(),w.vxM(t.passport().dateOfBirth?8:-1),w.R7$(),w.vxM(t.passport().sex?9:-1),w.R7$(),w.vxM(t.passport().birthPlace?10:-1),w.R7$(),w.vxM(t.passport().nationality?11:-1),w.R7$(),w.vxM(t.passport().passportNumber?12:-1),w.R7$(),w.vxM(t.passport().passportType?13:-1),w.R7$(),w.vxM(t.passport().nationalIdentificationNumber?14:-1),w.R7$(),w.vxM(t.passport().issuingCountry?15:-1),w.R7$(),w.vxM(t.passport().issuingAuthority?16:-1),w.R7$(),w.vxM(t.passport().issueDate?17:-1),w.R7$(),w.vxM(t.passport().expirationDate?18:-1))},dependencies:[re.w,Ve.U,ft,Pe.E,Oe.r,C.L,G.j,U.J,O.h,N.e,j.a,I.Q,Y.s,mt.$Z],encapsulation:2,changeDetection:0});class jn{constructor(){this.revealSshKey=!1}ngOnChanges(e){e.sshKey&&(this.revealSshKey=!1)}}function Yn(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label",2),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",3)(5,"button",4),w.nI1(6,"i18n"),w.nI1(7,"i18n"),w.k0s()),2&e){const e=w.XpG(2);w.R7$(),w.Y8G("appTextDrag",e.cipher.identity.fullName),w.R7$(),w.JRh(w.bMT(3,6,"name")),w.R7$(2),w.Y8G("value",e.cipher.identity.fullName),w.R7$(),w.Y8G("label",w.bMT(6,8,"copyName"))("appCopyClick",e.cipher.identity.fullName)("valueLabel",w.bMT(7,10,"name"))}}function Xn(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label",2),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",5)(5,"button",6),w.nI1(6,"i18n"),w.nI1(7,"i18n"),w.k0s()),2&e){const e=w.XpG(2);w.R7$(),w.Y8G("appTextDrag",e.cipher.identity.username),w.R7$(),w.JRh(w.bMT(3,6,"username")),w.R7$(2),w.Y8G("value",e.cipher.identity.username),w.R7$(),w.Y8G("label",w.bMT(6,8,"copyUsername"))("appCopyClick",e.cipher.identity.username)("valueLabel",w.bMT(7,10,"username"))}}function zn(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label",2),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",7)(5,"button",8),w.nI1(6,"i18n"),w.nI1(7,"i18n"),w.k0s()),2&e){const e=w.XpG(2);w.R7$(),w.Y8G("appTextDrag",e.cipher.identity.company),w.R7$(),w.JRh(w.bMT(3,6,"company")),w.R7$(2),w.Y8G("value",e.cipher.identity.company),w.R7$(),w.Y8G("label",w.bMT(6,8,"copyCompany"))("appCopyClick",e.cipher.identity.company)("valueLabel",w.bMT(7,10,"company"))}}function Ln(e,t){if(1&e&&(w.j41(0,"section",0)(1,"bit-section-header")(2,"h2",1),w.EFF(3),w.nI1(4,"i18n"),w.k0s()(),w.j41(5,"read-only-cipher-card"),w.nVh(6,Yn,8,12,"bit-form-field"),w.nVh(7,Xn,8,12,"bit-form-field"),w.nVh(8,zn,8,12,"bit-form-field"),w.k0s()()),2&e){const e=w.XpG();w.R7$(3),w.JRh(w.bMT(4,4,"personalDetails")),w.R7$(3),w.vxM(e.cipher.identity.fullName?6:-1),w.R7$(),w.vxM(e.cipher.identity.username?7:-1),w.R7$(),w.vxM(e.cipher.identity.company?8:-1)}}function Wn(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label",2),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",9)(5,"button",10)(6,"button",11),w.nI1(7,"i18n"),w.nI1(8,"i18n"),w.k0s()),2&e){const e=w.XpG(2);w.R7$(),w.Y8G("appTextDrag",e.cipher.identity.ssn),w.R7$(),w.JRh(w.bMT(3,6,"ssn")),w.R7$(2),w.Y8G("value",e.cipher.identity.ssn),w.R7$(2),w.Y8G("label",w.bMT(7,8,"copySSN"))("appCopyClick",e.cipher.identity.ssn)("valueLabel",w.bMT(8,10,"ssn"))}}function Kn(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label",2),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",12)(5,"button",13)(6,"button",14),w.nI1(7,"i18n"),w.nI1(8,"i18n"),w.k0s()),2&e){const e=w.XpG(2);w.R7$(),w.Y8G("appTextDrag",e.cipher.identity.passportNumber),w.R7$(),w.JRh(w.bMT(3,6,"passportNumber")),w.R7$(2),w.Y8G("value",e.cipher.identity.passportNumber),w.R7$(2),w.Y8G("label",w.bMT(7,8,"copyPassportNumber"))("appCopyClick",e.cipher.identity.passportNumber)("valueLabel",w.bMT(8,10,"passportNumber"))}}function Zn(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label",2),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",15)(5,"button",16),w.nI1(6,"i18n"),w.nI1(7,"i18n"),w.k0s()),2&e){const e=w.XpG(2);w.R7$(),w.Y8G("appTextDrag",e.cipher.identity.licenseNumber),w.R7$(),w.JRh(w.bMT(3,6,"licenseNumber")),w.R7$(2),w.Y8G("value",e.cipher.identity.licenseNumber),w.R7$(),w.Y8G("label",w.bMT(6,8,"copyLicenseNumber"))("appCopyClick",e.cipher.identity.licenseNumber)("valueLabel",w.bMT(7,10,"licenseNumber"))}}function Hn(e,t){if(1&e&&(w.j41(0,"section",0)(1,"bit-section-header")(2,"h2",1),w.EFF(3),w.nI1(4,"i18n"),w.k0s()(),w.j41(5,"read-only-cipher-card"),w.nVh(6,Wn,9,12,"bit-form-field"),w.nVh(7,Kn,9,12,"bit-form-field"),w.nVh(8,Zn,8,12,"bit-form-field"),w.k0s()()),2&e){const e=w.XpG();w.R7$(3),w.JRh(w.bMT(4,4,"identification")),w.R7$(3),w.vxM(e.cipher.identity.ssn?6:-1),w.R7$(),w.vxM(e.cipher.identity.passportNumber?7:-1),w.R7$(),w.vxM(e.cipher.identity.licenseNumber?8:-1)}}function Jn(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label",2),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",17)(5,"button",18),w.nI1(6,"i18n"),w.nI1(7,"i18n"),w.k0s()),2&e){const e=w.XpG(2);w.R7$(),w.Y8G("appTextDrag",e.cipher.identity.email),w.R7$(),w.JRh(w.bMT(3,6,"email")),w.R7$(2),w.Y8G("value",e.cipher.identity.email),w.R7$(),w.Y8G("label",w.bMT(6,8,"copyEmail"))("appCopyClick",e.cipher.identity.email)("valueLabel",w.bMT(7,10,"email"))}}function qn(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label",2),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",19)(5,"button",20),w.nI1(6,"i18n"),w.nI1(7,"i18n"),w.k0s()),2&e){const e=w.XpG(2);w.R7$(),w.Y8G("appTextDrag",e.cipher.identity.phone),w.R7$(),w.JRh(w.bMT(3,6,"phone")),w.R7$(2),w.Y8G("value",e.cipher.identity.phone),w.R7$(),w.Y8G("label",w.bMT(6,8,"copyPhone"))("appCopyClick",e.cipher.identity.phone)("valueLabel",w.bMT(7,10,"phone"))}}function $n(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label",2),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"textarea",21)(5,"button",22),w.nI1(6,"i18n"),w.nI1(7,"i18n"),w.k0s()),2&e){const e=w.XpG(2);w.R7$(),w.Y8G("appTextDrag",e.addressFields),w.R7$(),w.JRh(w.bMT(3,7,"address")),w.R7$(2),w.Y8G("value",e.addressFields)("rows",e.addressRows),w.R7$(),w.Y8G("label",w.bMT(6,9,"copyAddress"))("appCopyClick",e.addressFields)("valueLabel",w.bMT(7,11,"address"))}}function _n(e,t){if(1&e&&(w.j41(0,"section",0)(1,"bit-section-header")(2,"h2",1),w.EFF(3),w.nI1(4,"i18n"),w.k0s()(),w.j41(5,"read-only-cipher-card"),w.nVh(6,Jn,8,12,"bit-form-field"),w.nVh(7,qn,8,12,"bit-form-field"),w.nVh(8,$n,8,13,"bit-form-field"),w.k0s()()),2&e){const e=w.XpG();w.R7$(3),w.JRh(w.bMT(4,4,"contactInfo")),w.R7$(3),w.vxM(e.cipher.identity.email?6:-1),w.R7$(),w.vxM(e.cipher.identity.phone?7:-1),w.R7$(),w.vxM(e.addressFields?8:-1)}}jn.ɵfac=function(e){return new(e||jn)},jn.ɵcmp=w.VBU({type:jn,selectors:[["app-sshkey-view"]],inputs:{sshKey:"sshKey"},features:[w.OA$],decls:31,vars:37,consts:[[1,"tw-mb-5","bit-compact:tw-mb-4"],["bitTypography","h6"],["readonly","","bitInput","","aria-readonly","true","type","password","data-testid","private-key",3,"value"],["bitSuffix","","type","button","bitIconButton","","bitPasswordInputToggle","","data-testid","toggle-privateKey",3,"toggledChange","toggled"],["bitIconButton","bwi-clone","bitSuffix","","type","button","showToast","",3,"label","appCopyClick","valueLabel"],["readonly","","bitInput","","aria-readonly","true","data-testid","public-key",3,"value"],["readonly","","bitInput","","aria-readonly","true","data-testid","fingerprint",3,"value"]],template:function(e,t){1&e&&(w.j41(0,"section",0)(1,"bit-section-header")(2,"h2",1),w.EFF(3),w.nI1(4,"i18n"),w.k0s()(),w.j41(5,"read-only-cipher-card")(6,"bit-form-field")(7,"bit-label"),w.EFF(8),w.nI1(9,"i18n"),w.k0s(),w.nrm(10,"input",2),w.j41(11,"button",3),w.mxI("toggledChange",function(e){return w.DH7(t.revealSshKey,e)||(t.revealSshKey=e),e}),w.k0s(),w.nrm(12,"button",4),w.nI1(13,"i18n"),w.nI1(14,"i18n"),w.k0s(),w.j41(15,"bit-form-field")(16,"bit-label"),w.EFF(17),w.nI1(18,"i18n"),w.k0s(),w.nrm(19,"input",5)(20,"button",4),w.nI1(21,"i18n"),w.nI1(22,"i18n"),w.k0s(),w.j41(23,"bit-form-field")(24,"bit-label"),w.EFF(25),w.nI1(26,"i18n"),w.k0s(),w.nrm(27,"input",6)(28,"button",4),w.nI1(29,"i18n"),w.nI1(30,"i18n"),w.k0s()()()),2&e&&(w.R7$(3),w.JRh(w.bMT(4,17,"typeSshKey")),w.R7$(5),w.JRh(w.bMT(9,19,"sshPrivateKey")),w.R7$(2),w.Y8G("value",t.sshKey.privateKey),w.R7$(),w.R50("toggled",t.revealSshKey),w.R7$(),w.Y8G("label",w.bMT(13,21,"copyPrivateKey"))("appCopyClick",t.sshKey.privateKey)("valueLabel",w.bMT(14,23,"sshPrivateKey")),w.R7$(5),w.JRh(w.bMT(18,25,"sshPublicKey")),w.R7$(2),w.Y8G("value",t.sshKey.publicKey),w.R7$(),w.Y8G("label",w.bMT(21,27,"copyPublicKey"))("appCopyClick",t.sshKey.publicKey)("valueLabel",w.bMT(22,29,"sshPublicKey")),w.R7$(5),w.JRh(w.bMT(26,31,"sshFingerprint")),w.R7$(2),w.Y8G("value",t.sshKey.keyFingerprint),w.R7$(),w.Y8G("label",w.bMT(29,33,"copyFingerprint"))("appCopyClick",t.sshKey.keyFingerprint)("valueLabel",w.bMT(30,35,"sshFingerprint")))},dependencies:[ve.MD,v.p,Ge.D,Ve.U,ft,Pe.E,Oe.r,C.L,G.j,U.J,O.h,N.e,j.a,I.Q,Y.s,X.$],encapsulation:2});class er{constructor(){this.cipher=null}get addressFields(){if(!this.cipher)return"";const{address1:e,address2:t,address3:i,fullAddressPart2:n,country:r}=this.cipher.identity;return[e,t,i,n,r].filter(Boolean).join("\n")}get addressRows(){return this.addressFields.split("\n").length}get hasPersonalDetails(){if(!this.cipher)return!1;const{username:e,company:t,fullName:i}=this.cipher.identity;return Boolean(i||e||t)}get hasIdentificationDetails(){if(!this.cipher)return!1;const{ssn:e,passportNumber:t,licenseNumber:i}=this.cipher.identity;return Boolean(e||t||i)}get hasContactDetails(){if(!this.cipher)return!1;const{email:e,phone:t}=this.cipher.identity;return Boolean(e||t||this.addressFields)}}er.ɵfac=function(e){return new(e||er)},er.ɵcmp=w.VBU({type:er,selectors:[["app-view-identity-sections"]],inputs:{cipher:"cipher"},decls:3,vars:3,consts:[[1,"tw-mb-5","bit-compact:tw-mb-4"],["bitTypography","h6"],[3,"appTextDrag"],["bitInput","","id","fullName","readonly","","data-testid","name",3,"value"],["type","button","bitIconButton","bwi-clone","bitSuffix","","showToast","","data-testid","copy-name",3,"label","appCopyClick","valueLabel"],["bitInput","","id","username","readonly","","data-testid","username",3,"value"],["type","button","bitIconButton","bwi-clone","bitSuffix","","showToast","",3,"label","appCopyClick","valueLabel"],["bitInput","","id","company","readonly","","data-testid","company",3,"value"],["type","button","bitIconButton","bwi-clone","bitSuffix","","showToast","","data-testid","copy-company",3,"label","appCopyClick","valueLabel"],["bitInput","","id","ssn","type","password","readonly","","data-testid","ssn",3,"value"],["type","button","bitIconButton","","bitSuffix","","bitPasswordInputToggle","","data-testid","ssn-toggle"],["type","button","bitIconButton","bwi-clone","bitSuffix","","showToast","","data-testid","copy-ssn",3,"label","appCopyClick","valueLabel"],["id","passportNumber","bitInput","","type","password","readonly","","data-testid","passport",3,"value"],["type","button","bitIconButton","","bitSuffix","","bitPasswordInputToggle","","data-testid","passport-toggle"],["type","button","bitIconButton","bwi-clone","bitSuffix","","showToast","","data-testid","copy-passport",3,"label","appCopyClick","valueLabel"],["bitInput","","id","licenseNumber","readonly","","data-testid","license",3,"value"],["type","button","bitIconButton","bwi-clone","bitSuffix","","showToast","","data-testid","copy-license",3,"label","appCopyClick","valueLabel"],["bitInput","","id","email","readonly","","data-testid","email",3,"value"],["type","button","bitIconButton","bwi-clone","bitSuffix","","showToast","","data-testid","copy-email",3,"label","appCopyClick","valueLabel"],["bitInput","","id","phone","readonly","","data-testid","phone",3,"value"],["type","button","bitIconButton","bwi-clone","bitSuffix","","showToast","","data-testid","copy-phone",3,"label","appCopyClick","valueLabel"],["bitInput","","id","address","readonly","","data-testid","address",1,"tw-resize-none",3,"value","rows"],["type","button","bitIconButton","bwi-clone","bitSuffix","","showToast","","data-testid","copy-address",3,"label","appCopyClick","valueLabel"]],template:function(e,t){1&e&&(w.nVh(0,Ln,9,6,"section",0),w.nVh(1,Hn,9,6,"section",0),w.nVh(2,_n,9,6,"section",0)),2&e&&(w.vxM(t.hasPersonalDetails?0:-1),w.R7$(),w.vxM(t.hasIdentificationDetails?1:-1),w.R7$(),w.vxM(t.hasContactDetails?2:-1))},dependencies:[v.p,Ge.D,Ue,Ve.U,Pe.E,Oe.r,C.L,G.j,U.J,O.h,N.e,j.a,I.Q,Y.s,ft,X.$],encapsulation:2});var tr=i(74526),ir=i(88947),nr=i(4532),rr=i(44432),sr=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const or=[[["","slot","button"]]];function ar(e,t){1&e&&(w.j41(0,"bit-callout",0),w.nI1(1,"i18n"),w.EFF(2),w.nI1(3,"i18n"),w.k0s()),2&e&&(w.Y8G("title",w.bMT(1,2,"cardExpiredTitle")),w.R7$(2),w.SpI(" ",w.bMT(3,4,"cardExpiredMessage")," "))}function lr(e,t){1&e&&(w.j41(0,"bit-callout",12),w.nI1(1,"i18n"),w.EFF(2),w.nI1(3,"i18n"),w.k0s()),2&e&&(w.Y8G("title",w.bMT(1,2,"missingWebsite")),w.R7$(2),w.SpI(" ",w.bMT(3,4,"changeAtRiskPasswordAndAddWebsite")," "))}function cr(e,t){if(1&e){const e=w.RV6();w.j41(0,"a",14),w.bIt("click",function(){a.eBV(e);const t=w.XpG(4);return a.Njj(t.launchChangePassword())}),w.EFF(1),w.nI1(2,"i18n"),w.k0s()}if(2&e){const e=w.XpG(4);w.Y8G("href",e.changePasswordLink(),w.B4B),w.R7$(),w.SpI(" ",w.bMT(2,2,"changeAtRiskPassword")," ")}}function dr(e,t){1&e&&(w.EFF(0),w.nI1(1,"i18n")),2&e&&w.SpI(" ",w.bMT(1,1,"changeAtRiskPassword")," ")}function ur(e,t){if(1&e&&(w.j41(0,"bit-callout",12),w.nVh(1,cr,3,4,"a",13)(2,dr,2,3),w.k0s()),2&e){const e=w.XpG(3);w.Y8G("title",""),w.R7$(),w.vxM(e.changePasswordLink()?1:2)}}function hr(e,t){if(1&e&&(w.nVh(0,lr,4,6,"bit-callout",12),w.nVh(1,ur,3,2,"bit-callout",12)),2&e){const e=w.XpG(2);w.vxM(!e.hasLoginUri()&&e.hadPendingChangePasswordTask()?0:-1),w.R7$(),w.vxM(e.showChangePasswordLink()?1:-1)}}function Ar(e,t){1&e&&(w.j41(0,"p",1),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,1,"noEditPermissions")," "))}function pr(e,t){if(1&e){const e=w.RV6();w.j41(0,"app-login-credentials-view",15),w.nI1(1,"async"),w.bIt("handleChangePassword",function(){a.eBV(e);const t=w.XpG(2);return a.Njj(t.launchChangePassword())}),w.k0s()}if(2&e){const e=w.XpG(2);w.Y8G("cipher",e.cipher())("activeUserId",w.bMT(1,4,e.activeUserId$))("showChangePasswordLink",e.showChangePasswordLink())("changePasswordLink",e.changePasswordLink())}}function gr(e,t){if(1&e&&w.nrm(0,"app-autofill-options-view",4),2&e){const e=w.XpG(2);w.Y8G("loginUris",e.cipher().login.uris)("cipherId",e.cipher().id)}}function vr(e,t){if(1&e&&w.nrm(0,"app-card-details-view",5),2&e){const e=w.XpG(2);w.Y8G("cipher",e.cipher())}}function mr(e,t){if(1&e&&w.nrm(0,"app-view-identity-sections",5),2&e){const e=w.XpG(2);w.Y8G("cipher",e.cipher())}}function fr(e,t){if(1&e&&w.nrm(0,"app-sshkey-view",6),2&e){const e=w.XpG(2);w.Y8G("sshKey",e.cipher().sshKey)}}function yr(e,t){if(1&e&&w.nrm(0,"app-bank-account-view",7),2&e){const e=w.XpG(2);w.Y8G("bankAccount",e.cipher().bankAccount)("cipher",e.cipher())}}function br(e,t){if(1&e&&w.nrm(0,"app-drivers-license-view",8),2&e){const e=w.XpG(2);w.Y8G("driversLicense",e.cipher().driversLicense)("cipher",e.cipher())}}function Cr(e,t){if(1&e&&w.nrm(0,"app-passport-view",9),2&e){const e=w.XpG(2);w.Y8G("passport",e.cipher().passport)("cipher",e.cipher())}}function Ir(e,t){if(1&e&&w.nrm(0,"app-additional-options",10),2&e){const e=w.XpG(2);w.Y8G("notes",e.cipher().notes)}}function wr(e,t){if(1&e&&w.nrm(0,"app-custom-fields-v2",5),2&e){const e=w.XpG(2);w.Y8G("cipher",e.cipher())}}function Br(e,t){if(1&e&&w.nrm(0,"app-attachments-v2-view",11),2&e){const e=w.XpG(2);w.Y8G("emergencyAccessId",e.emergencyAccessId())("cipher",e.cipher())("admin",e.isAdminConsole())}}function Er(e,t){if(1&e&&(w.nVh(0,ar,4,6,"bit-callout",0),w.nVh(1,hr,2,2),w.nVh(2,Ar,3,3,"p",1),w.j41(3,"app-item-details-v2",2),w.SdG(4),w.k0s(),w.nVh(5,pr,2,6,"app-login-credentials-view",3),w.nVh(6,gr,1,2,"app-autofill-options-view",4),w.nVh(7,vr,1,1,"app-card-details-view",5),w.nVh(8,mr,1,1,"app-view-identity-sections",5),w.nVh(9,fr,1,1,"app-sshkey-view",6),w.nVh(10,yr,1,2,"app-bank-account-view",7),w.nVh(11,br,1,2,"app-drivers-license-view",8),w.nVh(12,Cr,1,2,"app-passport-view",9),w.nVh(13,Ir,1,1,"app-additional-options",10),w.nVh(14,wr,1,1,"app-custom-fields-v2",5),w.nVh(15,Br,1,3,"app-attachments-v2-view",11),w.nrm(16,"app-item-history-v2",5)),2&e){let e,t,i,n,r;const s=w.XpG();w.vxM(s.cardIsExpired()?0:-1),w.R7$(),w.vxM(s.removeAtRiskCallout()?-1:1),w.R7$(),w.vxM(null==(e=s.cipher())||!e.isDeleted||null!=(e=s.cipher())&&e.edit?-1:2),w.R7$(),w.Y8G("cipher",s.cipher())("organization",s.organization())("collections",s.resolvedCollections())("folder",s.folder())("hideOwner",s.isAdminConsole()),w.R7$(2),w.vxM(s.hasLogin()?5:-1),w.R7$(),w.vxM(s.hasAutofill()?6:-1),w.R7$(),w.vxM(s.hasCard()?7:-1),w.R7$(),w.vxM(null!=(t=s.cipher())&&t.identity?8:-1),w.R7$(),w.vxM(s.hasSshKey()?9:-1),w.R7$(),w.vxM(s.hasBankAccount()?10:-1),w.R7$(),w.vxM(s.hasDriversLicense()?11:-1),w.R7$(),w.vxM(s.hasPassport()?12:-1),w.R7$(),w.vxM(null!=(i=s.cipher())&&i.notes?13:-1),w.R7$(),w.vxM(null!=(n=s.cipher())&&n.hasFields?14:-1),w.R7$(),w.vxM(null!=(r=s.cipher())&&r.hasAttachments?15:-1),w.R7$(),w.Y8G("cipher",s.cipher())}}class Sr{constructor(e,t,i,s,a,l,c,d,u,h,A,g,v){this.organizationService=e,this.collectionService=t,this.folderService=i,this.accountService=s,this.defaultTaskService=a,this.platformUtilsService=l,this.changeLoginPasswordService=c,this.cipherService=d,this.logService=u,this.cipherRiskService=h,this.billingAccountService=A,this.vaultSettingsService=g,this.configService=v,this.cipher=ue.hFB.required(),this.cipher$=(0,he.br)(this.cipher),this.emergencyAccessId=(0,ue.hFB)(),this.collections=(0,ue.hFB)(void 0),this.isAdminConsole=(0,ue.hFB)(!1),this.activeUserId$=(0,m.F6)(this.accountService.activeAccount$),this.resolvedCollections=(0,he.ot)((0,n.z)([this.activeUserId$,this.cipher$,(0,he.br)(this.collections)]).pipe((0,fe.n)(([e,t,i])=>i&&i.length>0?(0,ye.of)(i):t.collectionIds&&t.collectionIds.length>0?this.collectionService.decryptedCollections$(e).pipe((0,ke.S)(t.collectionIds)):(0,ye.of)(void 0)))),this.organization=(0,he.ot)((0,n.z)([this.activeUserId$,this.cipher$]).pipe((0,fe.n)(([e,t])=>e&&(null==t?void 0:t.organizationId)?this.organizationService.organizations$(e).pipe((0,r.T)(e=>e.find(e=>e.id===t.organizationId))):(0,ye.of)(void 0)))),this.folder=(0,he.ot)((0,n.z)([this.activeUserId$,this.cipher$]).pipe((0,fe.n)(([e,t])=>e&&(null==t?void 0:t.folderId)?this.folderService.getDecrypted$(t.folderId,e):(0,ye.of)(void 0)))),this.hadPendingChangePasswordTask=(0,he.ot)((0,n.z)([this.activeUserId$,this.cipher$]).pipe((0,fe.n)(([e,t])=>(null==t?void 0:t.type)===p.gC.Login&&(null==t?void 0:t.organizationId)?(0,n.z)([this.cipherService.ciphers$(e),this.defaultTaskService.pendingTasks$(e)]).pipe((0,r.T)(([e,i])=>{var n;const r=e[null==t?void 0:t.id];return!(!(null==r?void 0:r.edit)||!(null==r?void 0:r.viewPassword))&&(null!==(n=null==i?void 0:i.some(e=>e.cipherId===(null==t?void 0:t.id)&&e.type===o.Wn.UpdateAtRiskCredential))&&void 0!==n&&n)}),(0,be.W)(e=>(this.logService.error("Failed to retrieve change password tasks for cipher",e),(0,ye.of)(!1)))):(0,ye.of)(!1))),{initialValue:!1}),this.hasCard=(0,me.EW)(()=>{const e=this.cipher();if(!e)return!1;const{cardholderName:t,code:i,expMonth:n,expYear:r,number:s}=e.card;return t||i||n||r||s}),this.cardIsExpired=(0,me.EW)(()=>{const e=this.cipher();return null!=e&&(0,Ee.ov)(e.card)}),this.hasLogin=(0,me.EW)(()=>{const e=this.cipher();if(!e)return!1;const{username:t,password:i,totp:n,fido2Credentials:r}=e.login;return t||i||n||(null==r?void 0:r.length)>0}),this.hasAutofill=(0,me.EW)(()=>{var e,t;const i=this.cipher();return(null!==(t=null===(e=null==i?void 0:i.login)||void 0===e?void 0:e.uris.length)&&void 0!==t?t:0)>0}),this.hasSshKey=(0,me.EW)(()=>{var e;const t=this.cipher();return!!(null===(e=null==t?void 0:t.sshKey)||void 0===e?void 0:e.privateKey)}),this.hasBankAccount=(0,me.EW)(()=>{const e=this.cipher();return!!e&&Array.from(Object.values(e.bankAccount)).some(e=>Boolean(e))}),this.hasDriversLicense=(0,me.EW)(()=>{const e=this.cipher();return!!e&&Array.from(Object.values(e.driversLicense)).some(e=>Boolean(e))}),this.hasPassport=(0,me.EW)(()=>{var e;const t=this.cipher();return!!t&&Array.from(Object.values(null!==(e=t.passport)&&void 0!==e?e:{})).some(e=>Boolean(e))}),this.hasLoginUri=(0,me.EW)(()=>{var e;const t=this.cipher();return null===(e=null==t?void 0:t.login)||void 0===e?void 0:e.hasUris}),this.passwordIsAtRisk=(0,he.ot)((0,n.z)([this.activeUserId$,this.cipher$]).pipe((0,fe.n)(([e,t])=>!t.hasLoginPassword||!t.edit||t.organizationId||t.isDeleted?(0,ye.of)(!1):this.switchPremium$(e,()=>(0,Ce.H)(this.checkIfPasswordIsAtRisk(t.id,e)).pipe((0,Ie.Z)(!1)),()=>(0,ye.of)(!1)))),{initialValue:!1}),this.showChangePasswordLink=(0,me.EW)(()=>this.hasLoginUri()&&(this.hadPendingChangePasswordTask()||this.passwordIsAtRisk()&&this.showAtRiskPasswordNotifications())),this.showAtRiskPasswordNotifications=(0,he.ot)(this.vaultSettingsService.showAtRiskPasswordNotifications$),this.removeAtRiskCallout=(0,he.ot)(this.configService.getFeatureFlag$(Se.TO.PM32016RemoveAtRiskCallout),{initialValue:!1}),this.changePasswordUrl=(0,me.Zc)(Object.assign(Object.assign({},{}),{params:()=>({cipher:this.cipher(),showPwLink:this.showChangePasswordLink()}),loader:e=>sr(this,[e],void 0,function*({params:e}){if(e.showPwLink)try{return yield this.changeLoginPasswordService.getChangePasswordUrl(e.cipher)}catch(t){return void this.logService.error(t.message)}})})),this.changePasswordLink=(0,me.EW)(()=>{if(this.changePasswordUrl.hasValue())return this.changePasswordUrl.value()}),this.launchChangePassword=()=>sr(this,void 0,void 0,function*(){const e=this.cipher();if(null!=e){const t=yield this.changeLoginPasswordService.getChangePasswordUrl(e);if(null==t)return;this.platformUtilsService.launchUri(t)}})}switchPremium$(e,t,i){return this.billingAccountService.hasPremiumFromAnySource$(e).pipe((0,fe.n)(e=>e?t():i()))}checkIfPasswordIsAtRisk(e,t){return sr(this,void 0,void 0,function*(){try{const i=yield this.cipherRiskService.computeCipherRiskForUser(e,t,!0);return(0,Re.i)(i)}catch(i){return this.logService.error("Failed to check if password is at risk",i),!1}})}}Sr.ɵfac=function(e){return new(e||Sr)(w.rXU(Be.PV),w.rXU(we.YD),w.rXU(tr.k),w.rXU(R.D),w.rXU(o.RB),w.rXU(E.y),w.rXU(ir.e),w.rXU(l.p),w.rXU(Qe.K),w.rXU(Re.A),w.rXU(ee.Q),w.rXU(nr.d),w.rXU(He.w))},Sr.ɵcmp=w.VBU({type:Sr,selectors:[["app-cipher-view"]],inputs:{cipher:[1,"cipher"],emergencyAccessId:[1,"emergencyAccessId"],collections:[1,"collections"],isAdminConsole:[1,"isAdminConsole"]},ngContentSelectors:["[slot=button]"],decls:1,vars:1,consts:[["type","info",3,"title"],["bitTypography","helper",1,"tw-text-muted"],[3,"cipher","organization","collections","folder","hideOwner"],[3,"cipher","activeUserId","showChangePasswordLink","changePasswordLink"],[3,"loginUris","cipherId"],[3,"cipher"],[3,"sshKey"],[3,"bankAccount","cipher"],[3,"driversLicense","cipher"],[3,"passport","cipher"],[3,"notes"],[3,"emergencyAccessId","cipher","admin"],["type","warning",3,"title"],["bitLink","","appStopClick","","linkType","secondary","endIcon","bwi-external-link",3,"href"],["bitLink","","appStopClick","","linkType","secondary","endIcon","bwi-external-link",3,"click","href"],[3,"handleChangePassword","cipher","activeUserId","showChangePasswordLink","changePasswordLink"]],template:function(e,t){1&e&&(w.NAR(or),w.nVh(0,Er,17,20)),2&e&&w.vxM(t.cipher()?0:-1)},dependencies:[Fe.j,rr.G,ve.MD,Te.t,v.p,Kt.Y,ji,Ne,ht,qi,Ai,Ut,jn,Ft,Si,Nn,er,En,gt,De.g,Pe.E,Oe.r,ve.Jj,X.$],encapsulation:2});var Qr=i(88744),kr=i(50451),Rr=i(7025),Fr=i(50060),Tr=(i(34461),function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})});class Dr{constructor(e,t,i,n,r,s){this.toastService=e,this.i18nService=t,this.cipherService=i,this.logService=n,this.dialogService=r,this.accountService=s,this.admin=!1,this.onDeletionSuccess=new a.bkB,this.delete=()=>Tr(this,void 0,void 0,function*(){if(yield this.dialogService.openSimpleDialog({title:{key:"deleteAttachment"},content:{key:"permanentlyDeleteAttachmentConfirmation"},type:"warning"}))try{const e=yield(0,h._)(this.accountService.activeAccount$.pipe(m.bB));if(null==e)throw new Error("An active user is expected while deleting an attachment.");yield this.cipherService.deleteAttachmentWithServer(this.cipherId,this.attachment.id,e,this.admin),this.toastService.showToast({variant:"success",title:"",message:this.i18nService.t("deletedAttachment")}),this.onDeletionSuccess.emit()}catch(e){this.logService.error(e)}})}}Dr.ɵfac=function(e){return new(e||Dr)(w.rXU(k.f),w.rXU(S.W),w.rXU(l.p),w.rXU(Qe.K),w.rXU(W.o),w.rXU(R.D))},Dr.ɵcmp=w.VBU({type:Dr,selectors:[["app-delete-attachment"]],inputs:{cipherId:"cipherId",attachment:"attachment",admin:"admin"},outputs:{onDeletionSuccess:"onDeletionSuccess"},decls:2,vars:5,consts:[["bitIconButton","bwi-trash","buttonType","dangerGhost","size","small","type","button",1,"tw-border-transparent",3,"label","bitAction"]],template:function(e,t){1&e&&(w.nrm(0,"button",0),w.nI1(1,"i18n")),2&e&&w.Y8G("label",w.i5U(1,2,"deleteAttachmentName",t.attachment.fileName))("bitAction",t.delete)},dependencies:[f.C,qe.p,ve.MD,v.p,y.t,I.Q,Y.s,X.$],encapsulation:2});var Pr=i(54471),Mr=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const xr=["fileInput"],Vr=(e,t)=>t.id;function Gr(e,t){1&e&&(w.nrm(0,"i",6),w.nI1(1,"i18n")),2&e&&w.Y8G("appA11yTitle",w.bMT(1,1,"fixEncryptionTooltip"))}function Ur(e,t){if(1&e&&w.nrm(0,"app-download-attachment",8),2&e){let e;const t=w.XpG(2).$implicit,i=w.XpG(2);w.Y8G("admin",i.admin()&&(null==(e=i.organization())?null:e.canEditAllCiphers))("cipher",i.cipher())("attachment",t)}}function Or(e,t){if(1&e&&(w.j41(0,"button",9),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e){const e=w.XpG(2).$implicit,t=w.XpG(2);w.Y8G("bitAction",t.fixOldAttachment(e)),w.R7$(),w.SpI(" ",w.bMT(2,2,"fixEncryption")," ")}}function Nr(e,t){if(1&e){const e=w.RV6();w.j41(0,"bit-item-action")(1,"app-delete-attachment",10),w.bIt("onDeletionSuccess",function(){a.eBV(e);const t=w.XpG(2).$implicit,i=w.XpG(2);return a.Njj(i.removeAttachment(t))}),w.k0s()()}if(2&e){let e;const t=w.XpG(2).$implicit,i=w.XpG(2);w.R7$(),w.Y8G("admin",i.admin()&&(null==(e=i.organization())?null:e.canEditAllCiphers))("cipherId",i.cipher().id)("attachment",t)}}function jr(e,t){if(1&e&&(w.j41(0,"bit-item")(1,"bit-item-content"),w.nrm(2,"bit-truncated-filename",4),w.j41(3,"span",5),w.EFF(4),w.k0s(),w.nVh(5,Gr,2,3,"i",6),w.k0s(),w.qex(6,7),w.j41(7,"bit-item-action"),w.nVh(8,Ur,1,3,"app-download-attachment",8)(9,Or,3,4,"button",9),w.k0s(),w.nVh(10,Nr,2,3,"bit-item-action"),w.bVm(),w.k0s()),2&e){const e=w.XpG().$implicit,t=w.XpG(2);w.R7$(2),w.Y8G("filename",e.fileName),w.R7$(2),w.JRh(e.sizeName),w.R7$(),w.vxM(null==e.key?5:-1),w.R7$(3),w.vxM(null!=e.key?8:9),w.R7$(2),w.vxM(t.cipher().edit?10:-1)}}function Yr(e,t){if(1&e){const e=w.RV6();w.j41(0,"bit-item-action")(1,"app-delete-attachment",10),w.bIt("onDeletionSuccess",function(){a.eBV(e);const t=w.XpG(2).$implicit,i=w.XpG(2);return a.Njj(i.removeAttachment(t))}),w.k0s()()}if(2&e){let e;const t=w.XpG(2).$implicit,i=w.XpG(2);w.R7$(),w.Y8G("admin",i.admin()&&(null==(e=i.organization())?null:e.canEditAllCiphers))("cipherId",i.cipher().id)("attachment",t)}}function Xr(e,t){if(1&e&&(w.j41(0,"bit-item")(1,"bit-item-content")(2,"span",11),w.nI1(3,"i18n"),w.EFF(4),w.nI1(5,"i18n"),w.k0s()(),w.qex(6,7),w.nVh(7,Yr,2,3,"bit-item-action"),w.bVm(),w.k0s()),2&e){const e=w.XpG(3);w.R7$(2),w.Y8G("title",w.bMT(3,3,"errorCannotDecrypt")),w.R7$(2),w.SpI(" ",w.bMT(5,5,"errorCannotDecrypt")," "),w.R7$(3),w.vxM(e.cipher().edit?7:-1)}}function zr(e,t){if(1&e&&(w.j41(0,"li"),w.nVh(1,jr,11,5,"bit-item")(2,Xr,8,7,"bit-item"),w.k0s()),2&e){const e=t.$implicit;w.R7$(),w.vxM(e.hasDecryptionError?2:1)}}function Lr(e,t){1&e&&(w.j41(0,"ul",2),w.Z7z(1,zr,3,1,"li",null,Vr),w.k0s()),2&e&&(w.R7$(),w.Dyx(t))}function Wr(e,t){1&e&&w.nrm(0,"bit-truncated-filename",17),2&e&&w.Y8G("filename",t.name)}function Kr(e,t){1&e&&(w.j41(0,"p",18),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,1,"noFileChosen")," "))}function Zr(e,t){1&e&&(w.j41(0,"p",19),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,1,"maxFileSizeSansPunctuation")," "))}function Hr(e,t){if(1&e&&w.nrm(0,"bit-progress-bar",20),2&e){const e=w.XpG(2);w.Y8G("value",e.uploadProgress())}}function Jr(e,t){if(1&e){const e=w.RV6();w.j41(0,"bit-card")(1,"label",12),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"div",13)(5,"input",14,0),w.bIt("change",function(t){a.eBV(e);const i=w.XpG();return a.Njj(i.onFileChange(t))}),w.k0s(),w.j41(7,"div",15)(8,"button",16),w.bIt("click",function(){a.eBV(e);const t=w.sdS(6);return a.Njj(t.click())}),w.EFF(9),w.nI1(10,"i18n"),w.k0s(),w.nVh(11,Wr,1,1,"bit-truncated-filename",17)(12,Kr,3,3,"p",18),w.k0s()(),w.nVh(13,Zr,3,3,"p",19)(14,Hr,1,1,"bit-progress-bar",20),w.k0s()}if(2&e){let e;const t=w.XpG();w.R7$(2),w.SpI(" ",w.bMT(3,4,"addAttachment")," "),w.R7$(7),w.SpI(" ",w.bMT(10,6,"chooseFileSentenceCase")," "),w.R7$(2),w.vxM((e=null==t.attachmentForm.controls.file?null:t.attachmentForm.controls.file.value)?11:12,e),w.R7$(2),w.vxM(null===t.uploadProgress()?13:14)}}class qr{constructor(e,t,i,n,r,s,o,l,c){this.cipherService=e,this.i18nService=t,this.formBuilder=i,this.logService=n,this.toastService=r,this.accountService=s,this.apiService=o,this.organizationService=l,this.configService=c,this.fileInput=(0,ue.ebz)("fileInput",Object.assign(Object.assign({},{}),{read:w.aKT})),this.bitSubmit=(0,ue.ebz)(D.L),this.cipherId=ue.hFB.required(),this.organizationId=(0,ue.hFB)(),this.admin=(0,ue.hFB)(!1),this.submitBtn=(0,ue.hFB)(),this.onUploadStarted=(0,ue.CGW)(),this.onUploadSuccess=(0,ue.CGW)(),this.onUploadFailed=(0,ue.CGW)(),this.onRemoveSuccess=(0,ue.CGW)(),this.onCloseButtonPress=(0,ue.CGW)(),this.organization=(0,a.vPA)(null),this.cipher=(0,a.vPA)(null),this.uploadProgress=(0,a.vPA)(null),this.attachmentForm=this.formBuilder.group({file:new g.MJ(null,[g.k0.required])}),this.cipherDomain=null,this.activeUserId=null,this.destroyRef=(0,a.WQX)(a.abz),this.submit=()=>Mr(this,void 0,void 0,function*(){var e,t,i,n;if(null===(t=null===(e=this.cipher())||void 0===e?void 0:e.edit)||void 0===t||!t)return void this.onCloseButtonPress.emit();this.onUploadStarted.emit();const r=this.attachmentForm.value.file;if(null==r)return this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:this.i18nService.t("selectFile")}),void this.onUploadFailed.emit();if(r.size>524288e3)return this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:this.i18nService.t("maxFileSize")}),void this.onUploadFailed.emit();if(!this.cipherDomain||!this.activeUserId)return;if((null!==(n=null===(i=this.cipher())||void 0===i?void 0:i.attachments)&&void 0!==n?n:[]).some(e=>{var t;return(null!==(t=e.fileName)&&void 0!==t?t:"")===r.name}))return this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:this.i18nService.t("duplicateAttachmentNameError")}),void this.onUploadFailed.emit();const s=yield this.configService.getFeatureFlag(Se.TO.PM34410AttachmentUploadProgress);try{s&&this.uploadProgress.set(0),this.cipherDomain=yield this.cipherService.saveAttachmentWithServer(this.cipherDomain,r,this.activeUserId,this.admin(),s?{onProgress:e=>this.uploadProgress.set(e)}:void 0),this.cipher.set(yield this.cipherService.decrypt(this.cipherDomain,this.activeUserId));const e=this.fileInput();e&&(e.nativeElement.value=""),this.attachmentForm.controls.file.setValue(null),this.toastService.showToast({variant:"success",message:this.i18nService.t("attachmentSaved")}),this.onUploadSuccess.emit()}catch(o){this.logService.error(o);let e=this.i18nService.t("unexpectedError");"string"==typeof o?e=o:o instanceof Error&&(null==o?void 0:o.message)&&(e=o.message),this.toastService.showToast({variant:"error",message:e}),this.onUploadFailed.emit()}finally{s&&this.uploadProgress.set(null)}}),this.fixOldAttachment=e=>()=>Mr(this,void 0,void 0,function*(){const t=this.cipher(),i=this.activeUserId;if(e.id&&i&&t)try{const n=yield this.cipherService.upgradeOldCipherAttachments(t,i,e.id);this.cipher.set(n),this.toastService.showToast({variant:"success",message:this.i18nService.t("attachmentUpdated")}),this.onUploadSuccess.emit()}catch(n){this.toastService.showToast({variant:"error",message:this.i18nService.t("errorOccurred")})}else this.toastService.showToast({variant:"error",message:this.i18nService.t("errorOccurred")})}),this.attachmentForm.statusChanges.pipe((0,he.pQ)()).subscribe(e=>{const t=this.submitBtn();t&&t.disabled.set("VALID"!==e)}),(0,a.QZP)(()=>Mr(this,void 0,void 0,function*(){var e,t;const i=this.cipherId();if(!i)return;this.activeUserId=yield(0,h._)(this.accountService.activeAccount$.pipe(m.F6)),this.organization.set(yield this.getOrganization()),this.cipherDomain=yield this.getCipher(i),this.cipherDomain&&this.activeUserId&&this.cipher.set(yield this.cipherService.decrypt(this.cipherDomain,this.activeUserId));const n=this.submitBtn();n&&n.disabled.set(!this.attachmentForm.valid&&(null===(t=null===(e=this.cipher())||void 0===e?void 0:e.edit)||void 0===t||t))})),(0,a.QZP)(()=>{const e=this.bitSubmit(),t=this.submitBtn();e&&t&&(e.loading$.pipe((0,he.pQ)(this.destroyRef)).subscribe(e=>{t.loading.set(e)}),e.disabled$.pipe((0,he.pQ)(this.destroyRef)).subscribe(e=>{t.disabled.set(e)}))})}get attachmentFormId(){return qr.attachmentFormID}onFileChange(e){const t=e.target;t.files&&t.files.length>0&&this.attachmentForm.controls.file.setValue(t.files[0])}removeAttachment(e){const t=this.cipher();if(!(null==t?void 0:t.attachments))return;const i=t.attachments.indexOf(e);i>-1&&(t.attachments.splice(i,1),this.cipher.set(Object.assign(Object.create(Object.getPrototypeOf(t)),t))),this.onRemoveSuccess.emit()}getCipher(e){return Mr(this,void 0,void 0,function*(){if(null==e||!this.activeUserId)return null;if(this.admin()){const t=yield this.apiService.getCipherAdmin(e);t.edit=!0;const i=new kr.A(t);return new Rr.o(i)}const t=yield this.cipherService.get(e,this.activeUserId);return null==t&&this.organizationId()?null:t})}getOrganization(){return Mr(this,void 0,void 0,function*(){const e=this.organizationId();if(!e||!this.activeUserId)return null;return(yield(0,h._)(this.organizationService.organizations$(this.activeUserId))).find(t=>t.id===e)||null})}}function $r(e,t){if(1&e){const e=w.RV6();w.j41(0,"app-cipher-attachments",7),w.bIt("onUploadStarted",function(){a.eBV(e);const t=w.XpG();return a.Njj(t.uploadStarted())})("onUploadSuccess",function(){a.eBV(e);const t=w.XpG();return a.Njj(t.uploadSuccessful())})("onUploadFailed",function(){a.eBV(e);const t=w.XpG();return a.Njj(t.uploadFailed())})("onRemoveSuccess",function(){a.eBV(e);const t=w.XpG();return a.Njj(t.removalSuccessful())})("onCloseButtonPress",function(){a.eBV(e);const t=w.XpG();return a.Njj(t.closeButtonPressed())}),w.k0s()}if(2&e){const e=w.XpG(),t=w.sdS(8);w.Y8G("cipherId",e.cipherId)("organizationId",e.organizationId)("admin",e.admin)("submitBtn",t)}}qr.attachmentFormID="attachmentForm",qr.ɵfac=function(e){return new(e||qr)(w.rXU(l.p),w.rXU(S.W),w.rXU(g.ok),w.rXU(Qe.K),w.rXU(k.f),w.rXU(R.D),w.rXU(Ke.G),w.rXU(Be.PV),w.rXU(He.w))},qr.ɵcmp=w.VBU({type:qr,selectors:[["app-cipher-attachments"]],viewQuery:function(e,t){1&e&&w.wEZ(t.fileInput,xr,5,w.aKT)(t.bitSubmit,D.L,5),2&e&&w.NyB(2)},inputs:{cipherId:[1,"cipherId"],organizationId:[1,"organizationId"],admin:[1,"admin"],submitBtn:[1,"submitBtn"]},outputs:{onUploadStarted:"onUploadStarted",onUploadSuccess:"onUploadSuccess",onUploadFailed:"onUploadFailed",onRemoveSuccess:"onRemoveSuccess",onCloseButtonPress:"onCloseButtonPress"},decls:6,vars:8,consts:[["fileInput",""],["id","attachments",1,"tw-sr-only"],["aria-labelledby","attachments",1,"tw-list-none","tw-pl-0"],[3,"id","formGroup","bitSubmit"],["data-testid","file-name",3,"filename"],["slot","secondary","data-testid","file-size"],["slot","default-trailing",1,"bwi","bwi-exclamation-triangle","bwi-sm","tw-text-muted",3,"appA11yTitle"],["slot","end"],[3,"admin","cipher","attachment"],["bitButton","","buttonType","primary","size","small","type","button",3,"bitAction"],[3,"onDeletionSuccess","admin","cipherId","attachment"],["data-testid","file-name",3,"title"],["for","file","bitTypography","body2",1,"tw-sr-only"],[1,"tw-relative"],["type","file","id","file","name","file","aria-describedby","fileHelp","tabindex","-1","required","",1,"tw-sr-only",3,"change"],["aria-hidden","true",1,"tw-flex","tw-gap-2","tw-items-center"],["bitButton","","buttonType","secondary","type","button",1,"tw-whitespace-nowrap",3,"click"],["bitTypography","body2",1,"tw-text-muted","tw-min-w-0",3,"filename"],["bitTypography","body2",1,"tw-text-muted","tw-mb-0"],["id","fileHelp","bitTypography","helper",1,"tw-text-muted","tw-px-1","tw-pt-1","tw-mb-0"],[1,"tw-block","tw-mt-2",3,"value"]],template:function(e,t){if(1&e&&(w.j41(0,"h2",1),w.EFF(1),w.nI1(2,"i18n"),w.k0s(),w.nVh(3,Lr,3,0,"ul",2),w.j41(4,"form",3),w.nVh(5,Jr,15,8,"bit-card"),w.k0s()),2&e){let e,i;w.R7$(),w.JRh(w.bMT(2,6,"attachments")),w.R7$(2),w.vxM((e=null==(e=t.cipher())?null:e.attachments)?3:-1,e),w.R7$(),w.Y8G("id",t.attachmentFormId)("formGroup",t.attachmentForm)("bitSubmit",t.submit),w.R7$(),w.vxM(null!=(i=t.cipher())&&i.edit?5:-1)}},dependencies:[f.C,qe.p,D.L,y.t,P.Q,ve.MD,Xe.k,st.J,ot.g,at.D,v.p,Pr.C,Fr.a,g.X1,g.qT,g.cb,g.j4,rt,Pe.E,Oe.r,Me.i,Dr,et,X.$],encapsulation:2,changeDetection:0});const _r={Uploaded:"uploaded",Removed:"removed",Closed:"closed"};class es{constructor(e,t,i){var n,r;this.dialogRef=e,this.params=t,this.i18nService=i,this.admin=!1,this.attachmentFormId=qr.attachmentFormID,this.isUploading=!1,this.handleBeforeUnloadEvent=e=>{if(this.isUploading){e.preventDefault();const t="Upload in progress. Are you sure you want to leave?";return e.returnValue=t,t}},this.cipherId=t.cipherId,this.organizationId=t.organizationId,this.admin=null!==(n=t.admin)&&void 0!==n&&n,this.canEditCipher=null!==(r=null==t?void 0:t.canEditCipher)&&void 0!==r&&r,this.buttonText=this.canEditCipher||this.admin?this.i18nService.t("upload"):this.i18nService.t("close")}static open(e,t){return e.open(es,{data:t})}uploadStarted(){this.isUploading=!0,this.dialogRef.disableClose=!0}uploadSuccessful(){this.isUploading=!1,this.dialogRef.disableClose=!1,this.dialogRef.close({action:_r.Uploaded})}uploadFailed(){this.isUploading=!1,this.dialogRef.disableClose=!1}removalSuccessful(){this.dialogRef.close({action:_r.Removed})}closeButtonPressed(){this.dialogRef.close({action:_r.Closed})}}es.ɵfac=function(e){return new(e||es)(w.rXU(Q.ce),w.rXU(Qr.Qs),w.rXU(S.W))},es.ɵcmp=w.VBU({type:es,selectors:[["app-vault-attachments-v2"]],hostBindings:function(e,t){1&e&&w.bIt("beforeunload",function(e){return t.handleBeforeUnloadEvent(e)},w.tSv)},decls:10,vars:6,consts:[["submitBtn",""],["dialogSize","default","background","alt"],["bitDialogTitle",""],["bitDialogContent",""],[3,"cipherId","organizationId","admin","submitBtn"],["bitDialogFooter",""],["bitButton","","type","submit","buttonType","primary"],[3,"onUploadStarted","onUploadSuccess","onUploadFailed","onRemoveSuccess","onCloseButtonPress","cipherId","organizationId","admin","submitBtn"]],template:function(e,t){1&e&&(w.j41(0,"bit-dialog",1)(1,"span",2),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.qex(4,3),w.nVh(5,$r,1,4,"app-cipher-attachments",4),w.bVm(),w.qex(6,5),w.j41(7,"button",6,0),w.EFF(9),w.k0s(),w.bVm(),w.k0s()),2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,4,"addAttachment")," "),w.R7$(3),w.vxM(t.cipherId?5:-1),w.R7$(2),w.BMQ("form",t.attachmentFormId),w.R7$(2),w.SpI(" ",t.buttonText," "))},dependencies:[y.t,P.Q,ve.MD,b.P,x.m,V.hJ,qr,mt.$Z],encapsulation:2});class ts{}class is{}var ns=i(67789),rs=i(8433);class ss{}var os=i(47836);class as{constructor(){this.viewCacheService=(0,a.WQX)(os.Z),this.cipherCache=this.viewCacheService.signal({key:"cipher-form-cache",initialValue:null,deserializer:Ye.f.fromJSON}),this.initializedWithValue=!!this.cipherCache(),this.initialCacheValue=this.cipherCache()}cacheCipherView(e){this.cipherCache.set(Ye.f.fromJSON(e))}getCachedCipherView(){return this.initialCacheValue}clearCache(){this.initialCacheValue=null,this.cipherCache.set(null)}}as.ɵfac=function(e){return new(e||as)},as.ɵprov=a.jDH({token:as,factory:as.ɵfac});var ls=i(6933),cs=i(49856),ds=i(32782),us=i(11766),hs=i(33886),As=i(68923);const ps=(e,t)=>t.value;function gs(e,t){if(1&e&&w.nrm(0,"bit-option",10),2&e){const e=t.$implicit;w.Y8G("value",e.value)("label",e.name)}}function vs(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"bit-select",9),w.Z7z(5,gs,1,2,"bit-option",10,ps),w.k0s(),w.j41(7,"bit-hint"),w.EFF(8),w.k0s()()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,2,"fieldType")),w.R7$(3),w.Dyx(e.fieldTypeOptions),w.R7$(3),w.SpI(" ",e.getTypeHint()," ")}}function ms(e,t){1&e&&(w.j41(0,"bit-hint"),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,1,"linkedLabelHelpText")," "))}function fs(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",11),w.nI1(1,"i18n"),w.bIt("click",function(){a.eBV(e);const t=w.XpG();return a.Njj(t.removeField())}),w.k0s()}if(2&e){const e=w.XpG();w.Y8G("label",w.i5U(1,1,"deleteCustomField",e.customFieldForm.value.label))}}class ys{constructor(e,t,i){this.data=e,this.formBuilder=t,this.i18nService=i,this.customFieldForm=this.formBuilder.group({type:p.PU.Text,label:["",g.k0.required]}),this.fieldTypeOptions=[{name:this.i18nService.t("cfTypeText"),value:p.PU.Text},{name:this.i18nService.t("cfTypeHidden"),value:p.PU.Hidden},{name:this.i18nService.t("cfTypeCheckbox"),value:p.PU.Boolean},{name:this.i18nService.t("cfTypeLinked"),value:p.PU.Linked}],this.FieldType=p.PU,this.submit=()=>{"add"===this.variant?this.addField():this.updateLabel()},this.variant=e.editLabelConfig?"edit":"add",this.fieldTypeOptions=this.fieldTypeOptions.filter(e=>{if(this.data.disallowHiddenField&&e.value===p.PU.Hidden)return!1;return![p.gC.SecureNote,p.gC.SshKey,p.gC.BankAccount,p.gC.DriversLicense,p.gC.Passport].includes(this.data.cipherType)||e.value!==p.PU.Linked}),"edit"===this.variant&&(this.customFieldForm.controls.label.setValue(e.editLabelConfig.label),this.customFieldForm.controls.type.disable())}getTypeHint(){var e;switch(null===(e=this.customFieldForm.get("type"))||void 0===e?void 0:e.value){case p.PU.Text:return this.i18nService.t("textHelpText");case p.PU.Hidden:return this.i18nService.t("hiddenHelpText");case p.PU.Boolean:return this.i18nService.t("checkBoxHelpText");case p.PU.Linked:return this.i18nService.t("linkedHelpText");default:return""}}addField(){if(this.customFieldForm.invalid)return;const{type:e,label:t}=this.customFieldForm.value;this.data.addField(e,t)}updateLabel(){if(this.customFieldForm.invalid)return;const{label:e}=this.customFieldForm.value;this.data.updateLabel(this.data.editLabelConfig.index,e)}removeField(){this.data.removeField(this.data.editLabelConfig.index)}}ys.ɵfac=function(e){return new(e||ys)(w.rXU(Qr.Qs),w.rXU(g.ok),w.rXU(S.W))},ys.ɵcmp=w.VBU({type:ys,selectors:[["vault-add-edit-custom-field-dialog"]],decls:20,vars:18,consts:[["bit-dialog","",3,"formGroup","bitSubmit"],["bitDialogTitle",""],["bitDialogContent",""],["disableMargin",""],["bitInput","","id","fieldLabel","formControlName","label","type","text"],["bitDialogFooter",""],["bitButton","","buttonType","primary","type","submit",3,"disabled"],["bitButton","","bitDialogClose","","buttonType","secondary","type","button"],["type","button","buttonType","dangerGhost","bitIconButton","bwi-trash",1,"tw-ml-auto",3,"label"],["id","fieldType","formControlName","type"],[3,"value","label"],["type","button","buttonType","dangerGhost","bitIconButton","bwi-trash",1,"tw-ml-auto",3,"click","label"]],template:function(e,t){1&e&&(w.j41(0,"form",0)(1,"span",1),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"div",2),w.nVh(5,vs,9,4,"bit-form-field"),w.j41(6,"bit-form-field",3)(7,"bit-label"),w.EFF(8),w.nI1(9,"i18n"),w.k0s(),w.nrm(10,"input",4),w.nVh(11,ms,3,3,"bit-hint"),w.k0s()(),w.qex(12,5),w.j41(13,"button",6),w.EFF(14),w.nI1(15,"i18n"),w.k0s(),w.j41(16,"button",7),w.EFF(17),w.nI1(18,"i18n"),w.k0s(),w.nVh(19,fs,2,4,"button",8),w.bVm(),w.k0s()),2&e&&(w.Y8G("formGroup",t.customFieldForm)("bitSubmit",t.submit),w.R7$(2),w.SpI(" ",w.bMT(3,10,"add"===t.variant?"addField":"editField")," "),w.R7$(3),w.vxM("add"===t.variant?5:-1),w.R7$(3),w.JRh(w.bMT(9,12,"fieldLabel")),w.R7$(3),w.vxM(t.customFieldForm.value.type===t.FieldType.Linked?11:-1),w.R7$(2),w.Y8G("disabled",t.customFieldForm.invalid),w.R7$(),w.SpI(" ",w.bMT(15,14,"add"===t.variant?"add":"save")," "),w.R7$(3),w.SpI(" ",w.bMT(18,16,"cancel")," "),w.R7$(2),w.vxM("edit"===t.variant?19:-1))},dependencies:[ve.MD,v.p,b.P,M.I,x.m,V.hJ,y.t,P.Q,C.L,G.j,ln.I,U.J,O.h,rs.p,hs.w,As.P,g.X1,g.qT,g.me,g.BC,g.cb,g.j4,g.JD,I.Q,Y.s,f.C,D.L,X.$],encapsulation:2});var bs=i(70352),Cs=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Is=["customFieldRow"],ws=e=>({"tw-mb-0":e}),Bs=e=>({"tw-items-center":e});function Es(e,t){if(1&e&&(w.j41(0,"bit-form-field",7)(1,"bit-label"),w.EFF(2),w.k0s(),w.nrm(3,"input",10),w.k0s()),2&e){const e=w.XpG().$implicit;w.R7$(2),w.JRh(e.value.name)}}function Ss(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",13),w.bIt("toggledChange",function(t){a.eBV(e);const i=w.XpG(4);return a.Njj(i.logHiddenEvent(t))}),w.k0s()}}function Qs(e,t){if(1&e&&(w.j41(0,"bit-form-field",7)(1,"bit-label"),w.EFF(2),w.k0s(),w.nrm(3,"input",11),w.nVh(4,Ss,1,0,"button",12),w.k0s()),2&e){const e=w.XpG(),t=e.$implicit,i=e.$index,n=w.XpG(2);w.R7$(2),w.JRh(t.value.name),w.R7$(2),w.vxM(n.canViewPasswords(i)?4:-1)}}function ks(e,t){if(1&e&&(w.j41(0,"bit-form-control",7),w.nrm(1,"input",14),w.j41(2,"bit-label"),w.EFF(3),w.k0s()()),2&e){const e=w.XpG().$implicit;w.R7$(3),w.JRh(e.value.name)}}function Rs(e,t){if(1&e&&w.nrm(0,"bit-option",16),2&e){const e=t.$implicit;w.Y8G("value",e.value)("label",e.name)}}function Fs(e,t){if(1&e&&(w.j41(0,"bit-form-field",7)(1,"bit-label"),w.EFF(2),w.k0s(),w.j41(3,"bit-select",15),w.Z7z(4,Rs,1,2,"bit-option",16,w.Vm6),w.k0s()()),2&e){const e=w.XpG().$implicit,t=w.XpG(2);w.R7$(2),w.JRh(e.value.name),w.R7$(2),w.Dyx(t.linkedFieldOptions)}}function Ts(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",17),w.nI1(1,"i18n"),w.bIt("click",function(){a.eBV(e);const t=w.XpG(),i=t.$implicit,n=t.$index,r=w.XpG(2);return a.Njj(r.openAddEditCustomFieldDialog({index:n,label:i.value.name}))}),w.k0s()}if(2&e){const e=w.XpG().$implicit,t=w.XpG(2);w.Y8G("label",w.i5U(1,2,"editFieldLabel",e.value.name))("disabled",t.parentFormDisabled)}}function Ds(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",18),w.nI1(1,"i18n"),w.bIt("keydown",function(t){a.eBV(e);const i=w.XpG(),n=i.$implicit,r=i.$index,s=w.XpG(2);return a.Njj(s.handleKeyDown(t,n.value.name,r))}),w.k0s()}if(2&e){const e=w.XpG().$implicit,t=w.XpG(2);w.Y8G("label",w.i5U(1,2,"reorderToggleButton",e.value.name))("disabled",t.parentFormDisabled)}}function Ps(e,t){if(1&e&&(w.j41(0,"div",5,0),w.nVh(2,Es,4,1,"bit-form-field",7),w.nVh(3,Qs,5,2,"bit-form-field",7),w.nVh(4,ks,4,1,"bit-form-control",7),w.nVh(5,Fs,6,1,"bit-form-field",7),w.nVh(6,Ts,2,5,"button",8),w.nVh(7,Ds,2,5,"button",9),w.k0s()),2&e){const e=t.$implicit,i=t.$index,n=w.XpG(2);w.Y8G("formGroupName",i)("ngClass",w.eq3(10,Bs,e.value.type===n.FieldType.Boolean))("cdkDragDisabled",n.dragDisabled(e.value.type)),w.BMQ("data-testid",e.value.name+"-entry"),w.R7$(2),w.vxM(e.value.type===n.FieldType.Text?2:-1),w.R7$(),w.vxM(e.value.type===n.FieldType.Hidden?3:-1),w.R7$(),w.vxM(e.value.type===n.FieldType.Boolean?4:-1),w.R7$(),w.vxM(e.value.type===n.FieldType.Linked?5:-1),w.R7$(),w.vxM(n.canEdit(e.value.type)?6:-1),w.R7$(),w.vxM(n.canEdit(e.value.type)&&n.fields.controls.length>1?7:-1)}}function Ms(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",19),w.bIt("click",function(){a.eBV(e);const t=w.XpG(2);return a.Njj(t.openAddEditCustomFieldDialog())}),w.EFF(1),w.nI1(2,"i18n"),w.k0s()}2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,1,"addField")," "))}function xs(e,t){if(1&e){const e=w.RV6();w.j41(0,"section",1)(1,"bit-section-header")(2,"h2",2),w.EFF(3),w.nI1(4,"i18n"),w.k0s()(),w.j41(5,"form",3)(6,"bit-card",4),w.bIt("cdkDropListDropped",function(t){a.eBV(e);const i=w.XpG();return a.Njj(i.drop(t))}),w.Z7z(7,Ps,8,12,"div",5,w.fX1),w.nVh(9,Ms,3,3,"button",6),w.k0s()()()}if(2&e){const e=w.XpG();w.Y8G("ngClass",w.eq3(6,ws,e.disableSectionMargin)),w.R7$(3),w.JRh(w.bMT(4,4,"customFields")),w.R7$(2),w.Y8G("formGroup",e.customFieldsForm),w.R7$(2),w.Dyx(e.fields.controls),w.R7$(2),w.vxM(e.isPartialEdit||e.parentFormDisabled?-1:9)}}class Vs{constructor(e,t,i,n,r,s){this.dialogService=e,this.cipherFormContainer=t,this.formBuilder=i,this.i18nService=n,this.liveAnnouncer=r,this.eventCollectionService=s,this.numberOfFieldsChange=new a.bkB,this.customFieldsForm=this.formBuilder.group({fields:new g.Yp([])}),this.linkedFieldOptions=[],this.hasCustomFields=!1,this.focusOnNewInput$=new le.B,this.parentFormDisabled=!1,this.FieldType=p.PU,this.destroyed$=(0,a.WQX)(a.abz),this.cipherFormContainer.registerChildForm("customFields",this.customFieldsForm),this.customFieldsForm.valueChanges.pipe((0,he.pQ)()).subscribe(()=>{this.updateCipher(this.fields.getRawValue())}),this.cipherFormContainer.formStatusChange$.pipe((0,he.pQ)()).subscribe(e=>{this.parentFormDisabled="disabled"===e})}get fields(){return this.customFieldsForm.controls.fields}canEdit(e){return!this.isPartialEdit&&(e!==p.PU.Hidden||null===this.cipherFormContainer.originalCipherView||this.cipherFormContainer.originalCipherView.viewPassword)}dragDisabled(e){return!this.canEdit(e)||this.fields.length<=1}ngOnInit(){var e,t;const i=this.getLinkedFieldsOptionsForCipher(),n=Array.from(null!==(e=null==i?void 0:i.entries())&&void 0!==e?e:[]);n.sort((e,t)=>e[1].sortPosition-t[1].sortPosition),this.linkedFieldOptions=n.map(([e,t])=>({name:this.i18nService.t(t.i18nKey),value:e}));const r=this.cipherFormContainer.getInitialCipherView();null===(t=null==r?void 0:r.fields)||void 0===t||t.forEach(e=>{var t;let i=e.value;e.type===p.PU.Boolean&&(i="true"===e.value);const n=this.formBuilder.group({type:e.type,name:e.name,value:i,linkedId:e.linkedId,newField:!1});e.type!==p.PU.Hidden||(null===(t=this.cipherFormContainer.originalCipherView)||void 0===t?void 0:t.viewPassword)||n.controls.value.disable(),this.fields.push(n)}),"partial-edit"===this.cipherFormContainer.config.mode&&(this.isPartialEdit=!0,this.customFieldsForm.disable())}ngAfterViewInit(){(0,ds.y)(this.focusOnNewInput$,this.customFieldRows.changes).pipe((0,he.pQ)(this.destroyed$)).subscribe(()=>{const e=this.customFieldRows.last.nativeElement,t=e.querySelector("input"),i=e.querySelector("label").textContent.trim();this.liveAnnouncer.announce(this.i18nService.t("fieldAdded",i),"polite").then(()=>{t.focus()})})}openAddEditCustomFieldDialog(e){const{cipherType:t,mode:i,originalCipher:n}=this.cipherFormContainer.config;this.dialogRef=this.dialogService.open(ys,{data:{addField:this.addField.bind(this),updateLabel:this.updateLabel.bind(this),removeField:this.removeField.bind(this),cipherType:t,editLabelConfig:e,disallowHiddenField:"edit"===i&&!n.viewPassword}})}canViewPasswords(e){return null===this.cipherFormContainer.originalCipherView||(this.cipherFormContainer.originalCipherView.viewPassword||this.fields.at(e).value.newField)}updateLabel(e,t){var i;this.fields.at(e).patchValue({name:t}),null===(i=this.dialogRef)||void 0===i||i.close()}removeField(e){var t;this.fields.removeAt(e),null===(t=this.dialogRef)||void 0===t||t.close()}addField(e,t){var i;null===(i=this.dialogRef)||void 0===i||i.close();let n=null,r=null;e===p.PU.Boolean&&(n=!1),e===p.PU.Linked&&this.linkedFieldOptions.length>0&&(r=this.linkedFieldOptions[0].value),this.fields.push(this.formBuilder.group({type:e,name:t,value:n,linkedId:r,newField:!0})),this.focusOnNewInput$.next()}drop(e){(0,cs.HD)(this.fields.controls,e.previousIndex,e.currentIndex),this.updateCipher(this.fields.controls.map(e=>e.value))}handleKeyDown(e,t,i){return Cs(this,void 0,void 0,function*(){if("ArrowUp"===e.key&&0!==i){e.preventDefault();const n=i-1;this.drop({previousIndex:i,currentIndex:n}),yield this.liveAnnouncer.announce(this.i18nService.t("reorderFieldUp",t,n+1,this.fields.length),"assertive"),setTimeout(()=>{e.target.focus()})}if("ArrowDown"===e.key&&i!==this.fields.length-1){e.preventDefault();const n=i+1;this.drop({previousIndex:i,currentIndex:n}),yield this.liveAnnouncer.announce(this.i18nService.t("reorderFieldDown",t,n+1,this.fields.length),"assertive")}})}logHiddenEvent(e){return Cs(this,void 0,void 0,function*(){const{mode:t,originalCipher:i}=this.cipherFormContainer.config,n=["edit","partial-edit"].includes(t);e&&n&&(yield this.eventCollectionService.collect(J.Bx.Cipher_ClientToggledHiddenFieldVisible,i.id,!1,i.organizationId))})}getLinkedFieldsOptionsForCipher(){switch(this.cipherFormContainer.config.cipherType){case p.gC.Login:return jt.r.prototype.linkedFieldOptions;case p.gC.Card:return Ot.G.prototype.linkedFieldOptions;case p.gC.Identity:return Nt.O.prototype.linkedFieldOptions;default:return null}}updateCipher(e){const t=e.map(e=>{var t;let i;i="number"==typeof e.value?`${e.value}`:"boolean"==typeof e.value?e.value?"true":"false":e.value;const n=new us.g;return n.type=e.type,n.name=e.name,n.value=i,n.linkedId=null!==(t=e.linkedId)&&void 0!==t?t:void 0,n});this.hasCustomFields=t.length>0,this.numberOfFieldsChange.emit(t.length),this.cipherFormContainer.patchCipher(e=>(e.fields=t,e))}}Vs.ɵfac=function(e){return new(e||Vs)(w.rXU(W.o),w.rXU(ss),w.rXU(g.ok),w.rXU(S.W),w.rXU(bs.Ai),w.rXU(J.c_))},Vs.ɵcmp=w.VBU({type:Vs,selectors:[["vault-custom-fields"]],viewQuery:function(e,t){if(1&e&&w.GBs(Is,5),2&e){let e;w.mGM(e=w.lsd())&&(t.customFieldRows=e)}},inputs:{disableSectionMargin:"disableSectionMargin"},outputs:{numberOfFieldsChange:"numberOfFieldsChange"},decls:1,vars:1,consts:[["customFieldRow",""],[1,"tw-mb-5","bit-compact:tw-mb-4",3,"ngClass"],["bitTypography","h6"],[3,"formGroup"],["formArrayName","fields","cdkDropList","","data-testid","custom-fields",3,"cdkDropListDropped"],["cdkDrag","",1,"tw-flex","tw-p-3","-tw-mx-3","tw-gap-4","tw-bg-background","tw-rounded-lg","first:-tw-mt-3","last-of-type:tw-mb-0",3,"formGroupName","ngClass","cdkDragDisabled"],["startIcon","bwi-plus","type","button","bitLink","","linkType","primary","data-testid","add-field-button"],["disableMargin","",1,"tw-flex-1"],["type","button","bitIconButton","bwi-pencil-square","data-testid","edit-custom-field-button",1,"tw-self-center","tw-mt-2",3,"label","disabled"],["role","application","type","button","bitIconButton","bwi-drag-and-drop","cdkDragHandle","","data-testid","reorder-toggle-button",1,"tw-self-center","tw-mt-2",3,"label","disabled"],["bitInput","","formControlName","value","data-testid","custom-text-field"],["bitInput","","formControlName","value","type","password","data-testid","custom-hidden-field",1,"tw-font-mono"],["type","button","bitIconButton","","bitSuffix","","bitPasswordInputToggle","","data-testid","visibility-for-custom-hidden-field"],["type","button","bitIconButton","","bitSuffix","","bitPasswordInputToggle","","data-testid","visibility-for-custom-hidden-field",3,"toggledChange"],["bitCheckbox","","formControlName","value","type","checkbox","data-testid","custom-boolean-field"],["formControlName","linkedId","data-testid","custom-linked-field"],[3,"value","label"],["type","button","bitIconButton","bwi-pencil-square","data-testid","edit-custom-field-button",1,"tw-self-center","tw-mt-2",3,"click","label","disabled"],["role","application","type","button","bitIconButton","bwi-drag-and-drop","cdkDragHandle","","data-testid","reorder-toggle-button",1,"tw-self-center","tw-mt-2",3,"keydown","label","disabled"],["startIcon","bwi-plus","type","button","bitLink","","linkType","primary","data-testid","add-field-button",3,"click"]],template:function(e,t){1&e&&w.nVh(0,xs,10,8,"section",1),2&e&&w.vxM(t.hasCustomFields?0:-1)},dependencies:[v.p,ve.MD,ve.YU,g.YN,g.qT,g.me,g.Zm,g.BC,g.cb,C.L,Zt.f,G.j,U.J,O.h,N.e,j.a,g.X1,g.j4,g.JD,g.$R,g.v8,Ve.U,Pe.E,Oe.r,Me.i,I.Q,Y.s,Yt.q,Ht.P,rs.p,hs.w,As.P,cs.ad,cs.O7,cs.T1,cs.Fb,zi.V,De.g,X.$],encapsulation:2});const Gs=e=>({"tw-mb-0":e});function Us(e,t){if(1&e&&(w.j41(0,"bit-form-control",3),w.nrm(1,"input",6),w.j41(2,"bit-label"),w.EFF(3),w.nI1(4,"i18n"),w.k0s()()),2&e){const e=w.XpG();w.Y8G("disableMargin",e.hasCustomFields||e.isPartialEdit),w.R7$(3),w.JRh(w.bMT(4,2,"passwordPrompt"))}}function Os(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",7),w.bIt("click",function(){a.eBV(e);const t=w.XpG();return a.Njj(t.addCustomField())}),w.EFF(1),w.nI1(2,"i18n"),w.k0s()}2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,1,"addField")," "))}class Ns{get allowNewField(){return this.additionalOptionsForm.enabled}constructor(e,t,i,n){this.cipherFormContainer=e,this.formBuilder=t,this.passwordRepromptService=i,this.changeDetectorRef=n,this.additionalOptionsForm=this.formBuilder.group({notes:[null],reprompt:[!1]}),this.passwordRepromptEnabled$=this.passwordRepromptService.enabled$.pipe((0,ls.t)({refCount:!1,bufferSize:1})),this.hasCustomFields=!1,this.isPartialEdit=!1,this.cipherFormContainer.registerChildForm("additionalOptions",this.additionalOptionsForm),this.additionalOptionsForm.valueChanges.pipe((0,he.pQ)()).subscribe(e=>{this.cipherFormContainer.patchCipher(t=>(t.notes=e.notes,t.reprompt=e.reprompt?p.b1.Password:p.b1.None,t))})}ngOnInit(){const e=this.cipherFormContainer.getInitialCipherView();e&&this.additionalOptionsForm.patchValue({notes:e.notes,reprompt:e.reprompt===p.b1.Password}),"partial-edit"===this.cipherFormContainer.config.mode&&(this.additionalOptionsForm.disable(),this.isPartialEdit=!0)}addCustomField(){this.customFieldsComponent.openAddEditCustomFieldDialog()}handleCustomFieldChange(e){this.hasCustomFields=e>0,this.changeDetectorRef.detectChanges()}}Ns.ɵfac=function(e){return new(e||Ns)(w.rXU(ss),w.rXU(g.ok),w.rXU(H),w.rXU(ue.gRc))},Ns.ɵcmp=w.VBU({type:Ns,selectors:[["vault-additional-options-section"]],viewQuery:function(e,t){if(1&e&&w.GBs(Vs,5),2&e){let e;w.mGM(e=w.lsd())&&(t.customFieldsComponent=e.first)}},inputs:{disableSectionMargin:"disableSectionMargin"},decls:15,vars:15,consts:[[1,"tw-mb-5","bit-compact:tw-mb-4",3,"ngClass","formGroup"],["bitTypography","h6"],["bitInput","","rows","5","formControlName","notes"],[3,"disableMargin"],["bitLink","","startIcon","bwi-plus","type","button","linkType","primary"],[3,"numberOfFieldsChange","disableSectionMargin"],["type","checkbox","bitCheckbox","","formControlName","reprompt"],["bitLink","","startIcon","bwi-plus","type","button","linkType","primary",3,"click"]],template:function(e,t){1&e&&(w.j41(0,"section",0)(1,"bit-section-header")(2,"h2",1),w.EFF(3),w.nI1(4,"i18n"),w.k0s()(),w.j41(5,"bit-card")(6,"bit-form-field")(7,"bit-label"),w.EFF(8),w.nI1(9,"i18n"),w.k0s(),w.nrm(10,"textarea",2),w.k0s(),w.nVh(11,Us,5,4,"bit-form-control",3),w.nI1(12,"async"),w.nVh(13,Os,3,3,"button",4),w.k0s()(),w.j41(14,"vault-custom-fields",5),w.bIt("numberOfFieldsChange",function(e){return t.handleCustomFieldChange(e)}),w.k0s()),2&e&&(w.Y8G("ngClass",w.eq3(13,Gs,t.disableSectionMargin&&!t.hasCustomFields))("formGroup",t.additionalOptionsForm),w.R7$(3),w.JRh(w.bMT(4,7,"additionalOptions")),w.R7$(5),w.JRh(w.bMT(9,9,"notes")),w.R7$(3),w.vxM(w.bMT(12,11,t.passwordRepromptEnabled$)?11:-1),w.R7$(2),w.vxM(t.hasCustomFields||t.isPartialEdit||!t.allowNewField?-1:13),w.R7$(),w.Y8G("disableSectionMargin",t.disableSectionMargin))},dependencies:[ve.MD,ve.YU,Ve.U,Pe.E,Oe.r,v.p,Me.i,C.L,Zt.f,G.j,U.J,O.h,g.X1,g.me,g.Zm,g.BC,g.cb,g.j4,g.JD,Yt.q,Ht.P,Vs,zi.V,De.g,ve.Jj,X.$],encapsulation:2});var js=i(84749);const Ys=(e,t)=>t.value;function Xs(e,t){if(1&e&&w.nrm(0,"bit-option",5),2&e){const e=t.$implicit;w.Y8G("value",e.value)("label",e.label)}}class zs{constructor(e,t,i){this.cipherFormContainer=e,this.formBuilder=t,this.i18nService=i,this.originalCipherView=(0,ue.hFB)(null),this.disabled=(0,ue.hFB)(!1),this.bankAccountForm=this.formBuilder.group({bankName:[""],nameOnAccount:[""],accountType:[""],accountNumber:[""],routingNumber:[""],branchNumber:[""],pin:[""],swiftCode:[""],iban:[""],bankContactPhone:[""]}),this.destroyRef=(0,a.WQX)(a.abz),this.accountTypeOptions=[{label:"-- "+this.i18nService.t("bankAccountType")+" --",value:""},{label:this.i18nService.t("bankAccountTypeChecking"),value:vt.e.Checking},{label:this.i18nService.t("bankAccountTypeSavings"),value:vt.e.Savings},{label:this.i18nService.t("bankAccountTypeCertificateOfDeposit"),value:vt.e.CertificateOfDeposit},{label:this.i18nService.t("bankAccountTypeLineOfCredit"),value:vt.e.LineOfCredit},{label:this.i18nService.t("bankAccountTypeInvestmentBrokerage"),value:vt.e.InvestmentBrokerage},{label:this.i18nService.t("bankAccountTypeMoneyMarket"),value:vt.e.MoneyMarket},{label:this.i18nService.t("bankAccountTypeOther"),value:vt.e.Other}],this.setupNumericFilter(this.bankAccountForm.controls.pin),this.cipherFormContainer.registerChildForm("bankAccountDetails",this.bankAccountForm),this.bankAccountForm.valueChanges.pipe((0,he.pQ)()).subscribe(e=>{var t,i,n,r,s,o,a,l,c,d;const u=new js.n;u.bankName=null!==(t=e.bankName)&&void 0!==t?t:void 0,u.nameOnAccount=null!==(i=e.nameOnAccount)&&void 0!==i?i:void 0,u.accountType=null!==(n=e.accountType)&&void 0!==n?n:void 0,u.accountNumber=null!==(r=e.accountNumber)&&void 0!==r?r:void 0,u.routingNumber=null!==(s=e.routingNumber)&&void 0!==s?s:void 0,u.branchNumber=null!==(o=e.branchNumber)&&void 0!==o?o:void 0,u.pin=null!==(a=e.pin)&&void 0!==a?a:void 0,u.swiftCode=null!==(l=e.swiftCode)&&void 0!==l?l:void 0,u.iban=null!==(c=e.iban)&&void 0!==c?c:void 0,u.bankContactPhone=null!==(d=e.bankContactPhone)&&void 0!==d?d:void 0,this.cipherFormContainer.patchCipher(e=>(e.bankAccount=u,e))})}ngOnInit(){var e,t;const i=this.cipherFormContainer.getInitialCipherView(),n=null!==(e=null==i?void 0:i.bankAccount)&&void 0!==e?e:null===(t=this.originalCipherView())||void 0===t?void 0:t.bankAccount;n&&this.setInitialValues(n),this.disabled()&&this.bankAccountForm.disable(),this.cipherFormContainer.formStatusChange$.pipe((0,he.pQ)(this.destroyRef)).subscribe(e=>{"disabled"===e||this.disabled()?this.bankAccountForm.disable():this.bankAccountForm.enable()})}setupNumericFilter(e){e.valueChanges.pipe((0,he.pQ)(this.destroyRef)).subscribe(t=>{if(!t)return;const i=t.replace(/\D/g,"");i!==t&&e.setValue(i,{emitEvent:!1})})}setInitialValues(e){this.bankAccountForm.setValue({bankName:e.bankName||"",nameOnAccount:e.nameOnAccount||"",accountType:e.accountType||"",accountNumber:e.accountNumber||"",routingNumber:e.routingNumber||"",branchNumber:e.branchNumber||"",pin:e.pin||"",swiftCode:e.swiftCode||"",iban:e.iban||"",bankContactPhone:e.bankContactPhone||""})}}zs.ɵfac=function(e){return new(e||zs)(w.rXU(ss),w.rXU(g.ok),w.rXU(S.W))},zs.ɵcmp=w.VBU({type:zs,selectors:[["vault-bank-account-section"]],inputs:{originalCipherView:[1,"originalCipherView"],disabled:[1,"disabled"]},decls:62,vars:34,consts:[[1,"tw-mb-5","bit-compact:tw-mb-4",3,"formGroup"],["bitTypography","h6"],["bitInput","","formControlName","bankName","data-testid","bank-name"],["bitInput","","formControlName","nameOnAccount","data-testid","name-on-account"],["formControlName","accountType","data-testid","account-type"],[3,"value","label"],["bitInput","","formControlName","accountNumber","type","password","data-testid","account-number"],["type","button","bitIconButton","","bitSuffix","","data-testid","toggle-account-number-visibility","bitPasswordInputToggle",""],["bitInput","","formControlName","routingNumber","data-testid","routing-number"],["bitInput","","formControlName","branchNumber","data-testid","branch-number"],["bitInput","","formControlName","pin","type","password","data-testid","pin","inputmode","numeric"],["type","button","bitIconButton","","bitSuffix","","data-testid","toggle-pin-visibility","bitPasswordInputToggle",""],["bitInput","","formControlName","swiftCode","type","password","data-testid","swift-code"],["type","button","bitIconButton","","bitSuffix","","bitPasswordInputToggle",""],["bitInput","","formControlName","iban","type","password","data-testid","iban"],["bitInput","","formControlName","bankContactPhone","data-testid","bank-contact-phone"]],template:function(e,t){1&e&&(w.j41(0,"section",0)(1,"bit-section-header")(2,"h2",1),w.EFF(3),w.nI1(4,"i18n"),w.k0s()(),w.j41(5,"bit-card")(6,"bit-form-field")(7,"bit-label"),w.EFF(8),w.nI1(9,"i18n"),w.k0s(),w.nrm(10,"input",2),w.k0s(),w.j41(11,"bit-form-field")(12,"bit-label"),w.EFF(13),w.nI1(14,"i18n"),w.k0s(),w.nrm(15,"input",3),w.k0s(),w.j41(16,"bit-form-field")(17,"bit-label"),w.EFF(18),w.nI1(19,"i18n"),w.k0s(),w.j41(20,"bit-select",4),w.Z7z(21,Xs,1,2,"bit-option",5,Ys),w.k0s()(),w.j41(23,"bit-form-field")(24,"bit-label"),w.EFF(25),w.nI1(26,"i18n"),w.k0s(),w.nrm(27,"input",6)(28,"button",7),w.k0s(),w.j41(29,"bit-form-field")(30,"bit-label"),w.EFF(31),w.nI1(32,"i18n"),w.k0s(),w.nrm(33,"input",8),w.k0s(),w.j41(34,"bit-form-field")(35,"bit-label"),w.EFF(36),w.nI1(37,"i18n"),w.k0s(),w.nrm(38,"input",9),w.k0s(),w.j41(39,"bit-form-field")(40,"bit-label"),w.EFF(41),w.nI1(42,"i18n"),w.k0s(),w.nrm(43,"input",10)(44,"button",11),w.k0s(),w.j41(45,"bit-form-field")(46,"bit-label"),w.EFF(47),w.nI1(48,"i18n"),w.k0s(),w.nrm(49,"input",12)(50,"button",13),w.k0s(),w.j41(51,"bit-form-field")(52,"bit-label"),w.EFF(53),w.nI1(54,"i18n"),w.k0s(),w.nrm(55,"input",14)(56,"button",13),w.k0s(),w.j41(57,"bit-form-field")(58,"bit-label"),w.EFF(59),w.nI1(60,"i18n"),w.k0s(),w.nrm(61,"input",15),w.k0s()()()),2&e&&(w.Y8G("formGroup",t.bankAccountForm),w.R7$(3),w.SpI(" ",w.bMT(4,12,"bankAccountDetails")," "),w.R7$(5),w.JRh(w.bMT(9,14,"bankName")),w.R7$(5),w.JRh(w.bMT(14,16,"nameOnAccount")),w.R7$(5),w.JRh(w.bMT(19,18,"bankAccountType")),w.R7$(3),w.Dyx(t.accountTypeOptions),w.R7$(4),w.JRh(w.bMT(26,20,"accountNumber")),w.R7$(6),w.JRh(w.bMT(32,22,"bankRoutingNumber")),w.R7$(5),w.JRh(w.bMT(37,24,"branchNumber")),w.R7$(5),w.JRh(w.bMT(42,26,"pin")),w.R7$(6),w.JRh(w.bMT(48,28,"swiftCode")),w.R7$(6),w.JRh(w.bMT(54,30,"iban")),w.R7$(6),w.JRh(w.bMT(60,32,"bankContactPhone")))},dependencies:[Me.i,Pe.E,Oe.r,C.L,G.j,U.J,O.h,N.e,j.a,g.X1,g.me,g.BC,g.cb,g.j4,g.JD,rs.p,hs.w,As.P,Ve.U,I.Q,Y.s,mt.$Z],encapsulation:2,changeDetection:0});var Ls=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Ws=(e,t)=>t.value;function Ks(e,t){if(1&e&&w.nrm(0,"bit-option",6),2&e){const e=t.$implicit;w.Y8G("value",e.value)("label",e.name)}}function Zs(e,t){if(1&e&&w.nrm(0,"bit-option",6),2&e){const e=t.$implicit;w.Y8G("value",e.value)("label",e.name)}}class Hs{get initialValues(){return this.cipherFormContainer.config.initialValues}constructor(e,t,i,n){this.cipherFormContainer=e,this.formBuilder=t,this.i18nService=i,this.eventCollectionService=n,this.cardDetailsForm=this.formBuilder.group({cardholderName:"",number:"",brand:"",expMonth:"",expYear:"",code:""}),this.cardBrands=[{name:"-- "+this.i18nService.t("select")+" --",value:null},{name:"Visa",value:"Visa"},{name:"Mastercard",value:"Mastercard"},{name:"American Express",value:"Amex"},{name:"Discover",value:"Discover"},{name:"Diners Club",value:"Diners Club"},{name:"JCB",value:"JCB"},{name:"Maestro",value:"Maestro"},{name:"UnionPay",value:"UnionPay"},{name:"RuPay",value:"RuPay"},{name:this.i18nService.t("other"),value:"Other"}],this.expirationMonths=[{name:"-- "+this.i18nService.t("select")+" --",value:null},{name:"01 - "+this.i18nService.t("january"),value:"1"},{name:"02 - "+this.i18nService.t("february"),value:"2"},{name:"03 - "+this.i18nService.t("march"),value:"3"},{name:"04 - "+this.i18nService.t("april"),value:"4"},{name:"05 - "+this.i18nService.t("may"),value:"5"},{name:"06 - "+this.i18nService.t("june"),value:"6"},{name:"07 - "+this.i18nService.t("july"),value:"7"},{name:"08 - "+this.i18nService.t("august"),value:"8"},{name:"09 - "+this.i18nService.t("september"),value:"9"},{name:"10 - "+this.i18nService.t("october"),value:"10"},{name:"11 - "+this.i18nService.t("november"),value:"11"},{name:"12 - "+this.i18nService.t("december"),value:"12"}],this.EventType=J.Bx,this.cipherFormContainer.registerChildForm("cardDetails",this.cardDetailsForm),this.cardDetailsForm.valueChanges.pipe((0,he.pQ)()).subscribe(({cardholderName:e,number:t,brand:i,expMonth:n,expYear:r,code:s})=>{this.cipherFormContainer.patchCipher(o=>{var a;const l=null!==(a=(0,Ee.jd)(r))&&void 0!==a?a:"";return o.card.cardholderName=e,o.card.number=t,o.card.brand=i,o.card.expMonth=n,o.card.expYear=l,o.card.code=s,o})}),this.cardDetailsForm.controls.number.valueChanges.pipe((0,he.pQ)()).subscribe(e=>{const t=Ot.G.getCardBrandByPatterns(e);t&&this.cardDetailsForm.controls.brand.setValue(t)})}ngOnInit(){const e=this.cipherFormContainer.getInitialCipherView();e?this.initFromExistingCipher(e.card):this.initNewCipher(),this.disabled&&this.cardDetailsForm.disable()}initFromExistingCipher(e){var t,i,n,r,s,o,a,l,c,d,u,h;this.cardDetailsForm.patchValue({cardholderName:null!==(i=null===(t=this.initialValues)||void 0===t?void 0:t.cardholderName)&&void 0!==i?i:e.cardholderName,number:null!==(r=null===(n=this.initialValues)||void 0===n?void 0:n.number)&&void 0!==r?r:e.number,brand:null!==(o=null===(s=this.initialValues)||void 0===s?void 0:s.brand)&&void 0!==o?o:e.brand,expMonth:null!==(l=null===(a=this.initialValues)||void 0===a?void 0:a.expMonth)&&void 0!==l?l:e.expMonth,expYear:null!==(d=null===(c=this.initialValues)||void 0===c?void 0:c.expYear)&&void 0!==d?d:e.expYear,code:null!==(h=null===(u=this.initialValues)||void 0===u?void 0:u.code)&&void 0!==h?h:e.code})}initNewCipher(){var e,t,i,n,r,s;this.cardDetailsForm.patchValue({cardholderName:(null===(e=this.initialValues)||void 0===e?void 0:e.cardholderName)||"",number:(null===(t=this.initialValues)||void 0===t?void 0:t.number)||"",expMonth:(null===(i=this.initialValues)||void 0===i?void 0:i.expMonth)||"",expYear:(null===(n=this.initialValues)||void 0===n?void 0:n.expYear)||"",code:(null===(r=this.initialValues)||void 0===r?void 0:r.code)||"",brand:Ot.G.getCardBrandByPatterns(null===(s=this.initialValues)||void 0===s?void 0:s.number)||""})}getSectionHeading(){const{brand:e}=this.cardDetailsForm.value;return e&&"Other"!==e?this.i18nService.t("cardBrandDetails",e):this.i18nService.t("cardDetails")}logCardEvent(e,t){return Ls(this,void 0,void 0,function*(){const{mode:i,originalCipher:n}=this.cipherFormContainer.config,r=["edit","partial-edit"].includes(i);e&&r&&(yield this.eventCollectionService.collect(t,n.id,!1,n.organizationId))})}}Hs.ɵfac=function(e){return new(e||Hs)(w.rXU(ss),w.rXU(g.ok),w.rXU(S.W),w.rXU(J.c_))},Hs.ɵcmp=w.VBU({type:Hs,selectors:[["vault-card-details-section"]],inputs:{originalCipherView:"originalCipherView",disabled:"disabled"},decls:42,vars:20,consts:[[1,"tw-mb-5","bit-compact:tw-mb-4",3,"formGroup"],["bitTypography","h6"],["id","cardholderName","bitInput","","formControlName","cardholderName"],["id","cardNumber","bitInput","","formControlName","number","type","password",1,"tw-font-mono"],["type","button","bitIconButton","","bitSuffix","","bitPasswordInputToggle","","data-testid","visibility-for-card-number",3,"toggledChange"],["id","cardBrand","formControlName","brand"],[3,"value","label"],[1,"tw-flex","tw-flex-wrap","tw-gap-1"],[1,"tw-flex-1"],["id","cardExpMonth","formControlName","expMonth"],["id","cardExpYear","bitInput","","formControlName","expYear","type","number"],["disableMargin",""],["id","cardCode","bitInput","","formControlName","code","type","password",1,"tw-font-mono"],["type","button","bitIconButton","","bitSuffix","","bitPasswordInputToggle","","data-testid","visibility-for-card-code",3,"toggledChange"]],template:function(e,t){1&e&&(w.j41(0,"section",0)(1,"bit-section-header")(2,"h2",1),w.EFF(3),w.k0s()(),w.j41(4,"bit-card")(5,"bit-form-field")(6,"bit-label"),w.EFF(7),w.nI1(8,"i18n"),w.k0s(),w.nrm(9,"input",2),w.k0s(),w.j41(10,"bit-form-field")(11,"bit-label"),w.EFF(12),w.nI1(13,"i18n"),w.k0s(),w.nrm(14,"input",3),w.j41(15,"button",4),w.bIt("toggledChange",function(e){return t.logCardEvent(e,t.EventType.Cipher_ClientToggledCardNumberVisible)}),w.k0s()(),w.j41(16,"bit-form-field")(17,"bit-label"),w.EFF(18),w.nI1(19,"i18n"),w.k0s(),w.j41(20,"bit-select",5),w.Z7z(21,Ks,1,2,"bit-option",6,Ws),w.k0s()(),w.j41(23,"div",7)(24,"bit-form-field",8)(25,"bit-label"),w.EFF(26),w.nI1(27,"i18n"),w.k0s(),w.j41(28,"bit-select",9),w.Z7z(29,Zs,1,2,"bit-option",6,Ws),w.k0s()(),w.j41(31,"bit-form-field",8)(32,"bit-label"),w.EFF(33),w.nI1(34,"i18n"),w.k0s(),w.nrm(35,"input",10),w.k0s()(),w.j41(36,"bit-form-field",11)(37,"bit-label"),w.EFF(38),w.nI1(39,"i18n"),w.k0s(),w.nrm(40,"input",12),w.j41(41,"button",13),w.bIt("toggledChange",function(e){return t.logCardEvent(e,t.EventType.Cipher_ClientToggledCardCodeVisible)}),w.k0s()()()()),2&e&&(w.Y8G("formGroup",t.cardDetailsForm),w.R7$(3),w.SpI(" ",t.getSectionHeading()," "),w.R7$(4),w.JRh(w.bMT(8,8,"cardholderName")),w.R7$(5),w.JRh(w.bMT(13,10,"number")),w.R7$(6),w.JRh(w.bMT(19,12,"brand")),w.R7$(3),w.Dyx(t.cardBrands),w.R7$(5),w.JRh(w.bMT(27,14,"expirationMonth")),w.R7$(3),w.Dyx(t.expirationMonths),w.R7$(4),w.JRh(w.bMT(34,16,"expirationYear")),w.R7$(5),w.JRh(w.bMT(39,18,"securityCode")))},dependencies:[Me.i,Pe.E,Oe.r,C.L,G.j,U.J,O.h,N.e,j.a,g.X1,g.me,g.Q0,g.BC,g.cb,g.j4,g.JD,rs.p,hs.w,As.P,Ve.U,I.Q,Y.s,v.p,ve.MD,X.$],encapsulation:2});var Js=i(43929);const qs=["dateFieldGroup"],$s=(e,t)=>t.value;function _s(e,t){if(1&e&&w.nrm(0,"bit-option",4),2&e){const e=t.$implicit;w.Y8G("value",e.value)("label",e.name)}}class eo{constructor(e,t,i){this.formBuilder=e,this.i18nService=t,this.destroyRef=i,this.monthLabel=(0,ue.hFB)(""),this.dayLabel=(0,ue.hFB)(""),this.yearLabel=(0,ue.hFB)(""),this.dateFieldGroup=(0,ue.ebz)("dateFieldGroup"),this.onChange=e=>{},this.onTouched=()=>{},this.onValidatorChange=()=>{},this.months=[{name:"-- "+this.i18nService.t("select")+" --",value:""},{name:this.i18nService.t("january"),value:"1"},{name:this.i18nService.t("february"),value:"2"},{name:this.i18nService.t("march"),value:"3"},{name:this.i18nService.t("april"),value:"4"},{name:this.i18nService.t("may"),value:"5"},{name:this.i18nService.t("june"),value:"6"},{name:this.i18nService.t("july"),value:"7"},{name:this.i18nService.t("august"),value:"8"},{name:this.i18nService.t("september"),value:"9"},{name:this.i18nService.t("october"),value:"10"},{name:this.i18nService.t("november"),value:"11"},{name:this.i18nService.t("december"),value:"12"}],this.internalForm=this.formBuilder.group({month:[""],day:[""],year:[""]})}ngOnInit(){this.setupNumericFilter(this.internalForm.get("day")),this.setupNumericFilter(this.internalForm.get("year")),this.internalForm.valueChanges.pipe((0,he.pQ)(this.destroyRef)).subscribe(()=>{this.validateDayRange();const e=this.combineDate(this.internalForm.get("month").value,this.internalForm.get("day").value,this.internalForm.get("year").value);this.onChange(e),this.onValidatorChange()})}writeValue(e){if(!e)return void this.internalForm.patchValue({month:"",day:"",year:""},{emitEvent:!1});const t=this.parseDateParts(e);this.internalForm.patchValue(t,{emitEvent:!1})}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){e?this.internalForm.disable({emitEvent:!1}):this.internalForm.enable({emitEvent:!1})}validate(){var e,t,i;const n=this.internalForm.get("month"),r=this.internalForm.get("day"),s=this.internalForm.get("year"),o=[null===(e=n.value)||void 0===e?void 0:e.trim(),null===(t=r.value)||void 0===t?void 0:t.trim(),null===(i=s.value)||void 0===i?void 0:i.trim()],a=o.some(e=>!!e),l=o.every(e=>!!e);if(!a)return null;if(!l||this.internalForm.invalid){return{invalidDate:!0,fieldCount:o.filter(e=>!e).length||1}}return null}registerOnValidatorChange(e){this.onValidatorChange=e}onGroupBlur(e){var t;(null===(t=this.dateFieldGroup())||void 0===t?void 0:t.nativeElement.contains(e.relatedTarget))||(this.internalForm.get("month").markAsTouched(),this.internalForm.get("day").markAsTouched(),this.internalForm.get("year").markAsTouched(),this.validateAllOrNothing())}parseDateParts(e){if(!e)return{month:"",day:"",year:""};const[t="",i="",n=""]=e.split("-");return{month:i?String(parseInt(i,10)):"",day:n?String(parseInt(n,10)):"",year:t}}combineDate(e,t,i){if(!e&&!t&&!i)return"";if(!e||!t||!i)return"";return`${i}-${String(e).padStart(2,"0")}-${String(t).padStart(2,"0")}`}setupNumericFilter(e){e.valueChanges.pipe((0,he.pQ)(this.destroyRef)).subscribe(t=>{if(!t)return;const i=t.replace(/\D/g,"");i!==t&&e.setValue(i,{emitEvent:!1})})}validateAllOrNothing(){var e,t;const i=this.internalForm.get("month"),n=this.internalForm.get("day"),r=this.internalForm.get("year"),s=!!i.value,o=!!(null===(e=n.value)||void 0===e?void 0:e.trim()),a=!!(null===(t=r.value)||void 0===t?void 0:t.trim()),l=s||o||a;if(!(i.touched||n.touched||r.touched)||!l)return this.clearCrossFieldError(i),this.clearCrossFieldError(n),void this.clearCrossFieldError(r);this.setCrossFieldError(i,!s,this.i18nService.t("enterMonth")),this.setCrossFieldError(n,!o,this.i18nService.t("enterDay")),this.setCrossFieldError(r,!a,this.i18nService.t("enterYear"))}validateDayRange(){var e;const t=this.internalForm.get("month"),i=this.internalForm.get("day"),n=this.internalForm.get("year"),r=t.value,s=i.value,o=n.value;if(!r||!s||!o)return void i.setErrors(this.removeError(i.errors,"invalidDay"));const a=parseInt(s,10),l=parseInt(r,10),c=parseInt(o,10);if(isNaN(c)||4!==o.length){const e=this.removeError(n.errors,"crossFieldRequired");return void n.setErrors(Object.assign(Object.assign({},null!=e?e:{}),{invalidYear:{message:this.i18nService.t("invalidYear")}}))}n.setErrors(this.removeError(n.errors,"invalidYear"));const d=new Date(c,l,0).getDate();a>=1&&a<=d?i.setErrors(this.removeError(i.errors,"invalidDay")):i.setErrors(Object.assign(Object.assign({},null!==(e=i.errors)&&void 0!==e?e:{}),{invalidDay:{message:this.i18nService.t("invalidDay")}}))}setCrossFieldError(e,t,i){var n;t?e.setErrors(Object.assign(Object.assign({},null!==(n=e.errors)&&void 0!==n?n:{}),{crossFieldRequired:{message:i}})):e.setErrors(this.removeError(e.errors,"crossFieldRequired"))}clearCrossFieldError(e){e.setErrors(this.removeError(e.errors,"crossFieldRequired"))}removeError(e,t){if(!e||!e[t])return e;const i=Object.assign({},e);return delete i[t],Object.keys(i).length?i:null}}eo.ɵfac=function(e){return new(e||eo)(w.rXU(g.ok),w.rXU(S.W),w.rXU(a.abz))},eo.ɵcmp=w.VBU({type:eo,selectors:[["vault-date-field-group"]],viewQuery:function(e,t){1&e&&w.wEZ(t.dateFieldGroup,qs,5),2&e&&w.NyB()},inputs:{monthLabel:[1,"monthLabel"],dayLabel:[1,"dayLabel"],yearLabel:[1,"yearLabel"]},features:[w.Jv_([{provide:g.kq,useExisting:(0,a.Rfq)(()=>eo),multi:!0},{provide:g.cz,useExisting:(0,a.Rfq)(()=>eo),multi:!0}])],decls:16,vars:4,consts:[["dateFieldGroup",""],[1,"tw-flex","tw-flex-wrap","tw-gap-1",3,"focusout","formGroup"],[1,"tw-flex-1"],["formControlName","month"],[3,"value","label"],["bitInput","","type","text","inputmode","numeric","maxlength","2","formControlName","day"],["bitInput","","type","text","inputmode","numeric","maxlength","4","formControlName","year"]],template:function(e,t){1&e&&(w.j41(0,"div",1,0),w.bIt("focusout",function(e){return t.onGroupBlur(e)}),w.j41(2,"bit-form-field",2)(3,"bit-label"),w.EFF(4),w.k0s(),w.j41(5,"bit-select",3),w.Z7z(6,_s,1,2,"bit-option",4,$s),w.k0s()(),w.j41(8,"bit-form-field",2)(9,"bit-label"),w.EFF(10),w.k0s(),w.nrm(11,"input",5),w.k0s(),w.j41(12,"bit-form-field",2)(13,"bit-label"),w.EFF(14),w.k0s(),w.nrm(15,"input",6),w.k0s()()),2&e&&(w.Y8G("formGroup",t.internalForm),w.R7$(4),w.JRh(t.monthLabel()),w.R7$(2),w.Dyx(t.months),w.R7$(4),w.JRh(t.dayLabel()),w.R7$(4),w.JRh(t.yearLabel()))},dependencies:[ve.MD,g.X1,g.me,g.BC,g.cb,g.tU,g.j4,g.JD,C.L,G.j,U.J,O.h,rs.p,hs.w,As.P,v.p],encapsulation:2,changeDetection:0});class to{constructor(e,t,i){this.cipherFormContainer=e,this.formBuilder=t,this.destroyRef=i,this.originalCipherView=(0,ue.hFB)(null),this.disabled=(0,ue.hFB)(!1),this.driversLicenseForm=this.formBuilder.group({firstName:[""],middleName:[""],lastName:[""],dateOfBirth:[""],licenseNumber:[""],issuingCountry:[""],issuingState:[""],issueDate:[""],expirationDate:[""],issuingAuthority:[""],licenseClass:[""]}),this.cipherFormContainer.registerChildForm("driversLicenseDetails",this.driversLicenseForm),this.driversLicenseForm.valueChanges.pipe((0,he.pQ)()).subscribe(e=>this.updateCipherFromFormValue(e))}ngOnInit(){var e,t;const i=this.cipherFormContainer.getInitialCipherView(),n=null!==(e=null==i?void 0:i.driversLicense)&&void 0!==e?e:null===(t=this.originalCipherView())||void 0===t?void 0:t.driversLicense;n&&this.driversLicenseForm.patchValue({firstName:n.firstName,middleName:n.middleName,lastName:n.lastName,dateOfBirth:n.dateOfBirth,licenseNumber:n.licenseNumber,issuingCountry:n.issuingCountry,issuingState:n.issuingState,issueDate:n.issueDate,expirationDate:n.expirationDate,issuingAuthority:n.issuingAuthority,licenseClass:n.licenseClass}),this.disabled()&&this.driversLicenseForm.disable()}updateCipherFromFormValue(e){const t=new Js.c;t.firstName=e.firstName,t.middleName=e.middleName,t.lastName=e.lastName,t.dateOfBirth=e.dateOfBirth,t.licenseNumber=e.licenseNumber,t.issuingCountry=e.issuingCountry,t.issuingState=e.issuingState,t.issueDate=e.issueDate,t.expirationDate=e.expirationDate,t.issuingAuthority=e.issuingAuthority,t.licenseClass=e.licenseClass,this.cipherFormContainer.patchCipher(e=>(e.driversLicense=t,e))}}to.ɵfac=function(e){return new(e||to)(w.rXU(ss),w.rXU(g.ok),w.rXU(a.abz))},to.ɵcmp=w.VBU({type:to,selectors:[["vault-drivers-license-section"]],inputs:{originalCipherView:[1,"originalCipherView"],disabled:[1,"disabled"]},decls:59,vars:55,consts:[[1,"tw-mb-5","bit-compact:tw-mb-4",3,"formGroup"],["bitTypography","h6"],["id","firstName","bitInput","","formControlName","firstName","type","text"],["id","middleName","bitInput","","formControlName","middleName","type","text"],["id","lastName","bitInput","","formControlName","lastName","type","text"],["id","licenseNumber","bitInput","","formControlName","licenseNumber","type","password",1,"tw-font-mono"],["type","button","bitIconButton","","bitSuffix","","bitPasswordInputToggle",""],["formControlName","dateOfBirth",3,"monthLabel","dayLabel","yearLabel"],["id","issuingCountry","bitInput","","formControlName","issuingCountry","type","text"],["id","issuingState","bitInput","","formControlName","issuingState","type","text"],["id","issuingAuthority","bitInput","","formControlName","issuingAuthority","type","text"],["formControlName","issueDate",3,"monthLabel","dayLabel","yearLabel"],["formControlName","expirationDate",3,"monthLabel","dayLabel","yearLabel"],["disableMargin",""],["id","licenseClass","bitInput","","formControlName","licenseClass","type","text"]],template:function(e,t){1&e&&(w.j41(0,"section",0)(1,"bit-section-header")(2,"h2",1),w.EFF(3),w.nI1(4,"i18n"),w.k0s()(),w.j41(5,"bit-card")(6,"bit-form-field")(7,"bit-label"),w.EFF(8),w.nI1(9,"i18n"),w.k0s(),w.nrm(10,"input",2),w.k0s(),w.j41(11,"bit-form-field")(12,"bit-label"),w.EFF(13),w.nI1(14,"i18n"),w.k0s(),w.nrm(15,"input",3),w.k0s(),w.j41(16,"bit-form-field")(17,"bit-label"),w.EFF(18),w.nI1(19,"i18n"),w.k0s(),w.nrm(20,"input",4),w.k0s(),w.j41(21,"bit-form-field")(22,"bit-label"),w.EFF(23),w.nI1(24,"i18n"),w.k0s(),w.nrm(25,"input",5)(26,"button",6),w.k0s(),w.nrm(27,"vault-date-field-group",7),w.nI1(28,"i18n"),w.nI1(29,"i18n"),w.nI1(30,"i18n"),w.j41(31,"bit-form-field")(32,"bit-label"),w.EFF(33),w.nI1(34,"i18n"),w.k0s(),w.nrm(35,"input",8),w.k0s(),w.j41(36,"bit-form-field")(37,"bit-label"),w.EFF(38),w.nI1(39,"i18n"),w.k0s(),w.nrm(40,"input",9),w.k0s(),w.j41(41,"bit-form-field")(42,"bit-label"),w.EFF(43),w.nI1(44,"i18n"),w.k0s(),w.nrm(45,"input",10),w.k0s(),w.nrm(46,"vault-date-field-group",11),w.nI1(47,"i18n"),w.nI1(48,"i18n"),w.nI1(49,"i18n"),w.nrm(50,"vault-date-field-group",12),w.nI1(51,"i18n"),w.nI1(52,"i18n"),w.nI1(53,"i18n"),w.j41(54,"bit-form-field",13)(55,"bit-label"),w.EFF(56),w.nI1(57,"i18n"),w.k0s(),w.nrm(58,"input",14),w.k0s()()()),2&e&&(w.Y8G("formGroup",t.driversLicenseForm),w.R7$(3),w.SpI(" ",w.bMT(4,19,"driversLicenseDetails")," "),w.R7$(5),w.JRh(w.bMT(9,21,"firstName")),w.R7$(5),w.JRh(w.bMT(14,23,"middleName")),w.R7$(5),w.JRh(w.bMT(19,25,"lastName")),w.R7$(5),w.JRh(w.bMT(24,27,"licenseNumber")),w.R7$(4),w.Y8G("monthLabel",w.bMT(28,29,"birthMonth"))("dayLabel",w.bMT(29,31,"birthDay"))("yearLabel",w.bMT(30,33,"birthYear")),w.R7$(6),w.JRh(w.bMT(34,35,"issuingCountry")),w.R7$(5),w.JRh(w.bMT(39,37,"issuingState")),w.R7$(5),w.JRh(w.bMT(44,39,"issuingAuthority")),w.R7$(3),w.Y8G("monthLabel",w.bMT(47,41,"issueMonth"))("dayLabel",w.bMT(48,43,"issueDay"))("yearLabel",w.bMT(49,45,"issueYear")),w.R7$(4),w.Y8G("monthLabel",w.bMT(51,47,"expirationMonth"))("dayLabel",w.bMT(52,49,"expirationDay"))("yearLabel",w.bMT(53,51,"expirationYear")),w.R7$(6),w.JRh(w.bMT(57,53,"licenseClass")))},dependencies:[Me.i,Pe.E,Oe.r,C.L,G.j,U.J,O.h,N.e,j.a,g.X1,g.me,g.BC,g.cb,g.j4,g.JD,Ve.U,I.Q,Y.s,v.p,ve.MD,eo,X.$],encapsulation:2,changeDetection:0});const io=(e,t)=>t.value;function no(e,t){if(1&e&&w.nrm(0,"bit-option",4),2&e){const e=t.$implicit;w.Y8G("value",e.value)("label",e.name)}}class ro{get initialValues(){return this.cipherFormContainer.config.initialValues}constructor(e,t,i){this.cipherFormContainer=e,this.formBuilder=t,this.i18nService=i,this.identityTitleOptions=[{name:"-- "+this.i18nService.t("select")+" --",value:null},{name:this.i18nService.t("mr"),value:this.i18nService.t("mr")},{name:this.i18nService.t("mrs"),value:this.i18nService.t("mrs")},{name:this.i18nService.t("ms"),value:this.i18nService.t("ms")},{name:this.i18nService.t("mx"),value:this.i18nService.t("mx")},{name:this.i18nService.t("dr"),value:this.i18nService.t("dr")}],this.identityForm=this.formBuilder.group({title:[null],firstName:[""],middleName:[""],lastName:[""],username:[""],company:[""],ssn:[""],passportNumber:[""],licenseNumber:[""],email:[""],phone:[""],address1:[""],address2:[""],address3:[""],city:[""],state:[""],postalCode:[""],country:[""]}),this.cipherFormContainer.registerChildForm("identityDetails",this.identityForm),this.identityForm.valueChanges.pipe((0,he.pQ)()).subscribe(e=>{const t=new Nt.O;t.title=e.title,t.firstName=e.firstName,t.middleName=e.middleName,t.lastName=e.lastName,t.username=e.username,t.company=e.company,t.ssn=e.ssn,t.passportNumber=e.passportNumber,t.licenseNumber=e.licenseNumber,t.email=e.email,t.phone=e.phone,t.address1=e.address1,t.address2=e.address2,t.address3=e.address3,t.city=e.city,t.state=e.state,t.postalCode=e.postalCode,t.country=e.country,this.cipherFormContainer.patchCipher(e=>(e.identity=t,e))})}ngOnInit(){var e;this.disabled&&this.identityForm.disable();const t=this.cipherFormContainer.getInitialCipherView();t?(this.initFromExistingCipher(t.identity),this.populateFormData(t)):(this.initNewCipher(),this.identityForm.patchValue({username:(null===(e=this.cipherFormContainer.config.initialValues)||void 0===e?void 0:e.username)||""}))}initFromExistingCipher(e){var t,i,n,r,s,o,a,l,c,d,u,h,A,p,g,v,m,f,y,b,C,I,w,B,E,S,Q,k,R,F,T,D;this.identityForm.patchValue({firstName:null!==(i=null===(t=this.initialValues)||void 0===t?void 0:t.firstName)&&void 0!==i?i:e.firstName,middleName:null!==(r=null===(n=this.initialValues)||void 0===n?void 0:n.middleName)&&void 0!==r?r:e.middleName,lastName:null!==(o=null===(s=this.initialValues)||void 0===s?void 0:s.lastName)&&void 0!==o?o:e.lastName,company:null!==(l=null===(a=this.initialValues)||void 0===a?void 0:a.company)&&void 0!==l?l:e.company,ssn:null!==(d=null===(c=this.initialValues)||void 0===c?void 0:c.ssn)&&void 0!==d?d:e.ssn,passportNumber:null!==(h=null===(u=this.initialValues)||void 0===u?void 0:u.passportNumber)&&void 0!==h?h:e.passportNumber,licenseNumber:null!==(p=null===(A=this.initialValues)||void 0===A?void 0:A.licenseNumber)&&void 0!==p?p:e.licenseNumber,email:null!==(v=null===(g=this.initialValues)||void 0===g?void 0:g.email)&&void 0!==v?v:e.email,phone:null!==(f=null===(m=this.initialValues)||void 0===m?void 0:m.phone)&&void 0!==f?f:e.phone,address1:null!==(b=null===(y=this.initialValues)||void 0===y?void 0:y.address1)&&void 0!==b?b:e.address1,address2:null!==(I=null===(C=this.initialValues)||void 0===C?void 0:C.address2)&&void 0!==I?I:e.address2,address3:null!==(B=null===(w=this.initialValues)||void 0===w?void 0:w.address3)&&void 0!==B?B:e.address3,city:null!==(S=null===(E=this.initialValues)||void 0===E?void 0:E.city)&&void 0!==S?S:e.city,state:null!==(k=null===(Q=this.initialValues)||void 0===Q?void 0:Q.state)&&void 0!==k?k:e.state,postalCode:null!==(F=null===(R=this.initialValues)||void 0===R?void 0:R.postalCode)&&void 0!==F?F:e.postalCode,country:null!==(D=null===(T=this.initialValues)||void 0===T?void 0:T.country)&&void 0!==D?D:e.country})}initNewCipher(){var e,t,i,n,r,s,o,a,l,c,d,u,h,A,p,g;this.identityForm.patchValue({firstName:(null===(e=this.initialValues)||void 0===e?void 0:e.firstName)||"",middleName:(null===(t=this.initialValues)||void 0===t?void 0:t.middleName)||"",lastName:(null===(i=this.initialValues)||void 0===i?void 0:i.lastName)||"",company:(null===(n=this.initialValues)||void 0===n?void 0:n.company)||"",ssn:(null===(r=this.initialValues)||void 0===r?void 0:r.ssn)||"",passportNumber:(null===(s=this.initialValues)||void 0===s?void 0:s.passportNumber)||"",licenseNumber:(null===(o=this.initialValues)||void 0===o?void 0:o.licenseNumber)||"",email:(null===(a=this.initialValues)||void 0===a?void 0:a.email)||"",phone:(null===(l=this.initialValues)||void 0===l?void 0:l.phone)||"",address1:(null===(c=this.initialValues)||void 0===c?void 0:c.address1)||"",address2:(null===(d=this.initialValues)||void 0===d?void 0:d.address2)||"",address3:(null===(u=this.initialValues)||void 0===u?void 0:u.address3)||"",city:(null===(h=this.initialValues)||void 0===h?void 0:h.city)||"",state:(null===(A=this.initialValues)||void 0===A?void 0:A.state)||"",postalCode:(null===(p=this.initialValues)||void 0===p?void 0:p.postalCode)||"",country:(null===(g=this.initialValues)||void 0===g?void 0:g.country)||""})}populateFormData(e){var t,i;const{identity:n}=e;this.identityForm.patchValue({title:n.title,firstName:n.firstName,middleName:n.middleName,lastName:n.lastName,username:null!==(i=null===(t=this.cipherFormContainer.config.initialValues)||void 0===t?void 0:t.username)&&void 0!==i?i:n.username,company:n.company,ssn:n.ssn,passportNumber:n.passportNumber,licenseNumber:n.licenseNumber,email:n.email,phone:n.phone,address1:n.address1,address2:n.address2,address3:n.address3,city:n.city,state:n.state,postalCode:n.postalCode,country:n.country})}}ro.ɵfac=function(e){return new(e||ro)(w.rXU(ss),w.rXU(g.ok),w.rXU(S.W))},ro.ɵcmp=w.VBU({type:ro,selectors:[["vault-identity-section"]],inputs:{originalCipherView:"originalCipherView",disabled:"disabled"},decls:119,vars:67,consts:[[3,"formGroup"],[1,"tw-mb-5","bit-compact:tw-mb-4"],["bitTypography","h6"],["formControlName","title"],[3,"value","label"],["bitInput","","formControlName","firstName"],["bitInput","","formControlName","middleName"],["bitInput","","formControlName","lastName"],["bitInput","","formControlName","username"],["disableMargin",""],["bitInput","","formControlName","company"],["formControlName","ssn","bitInput","","type","password"],["type","button","bitIconButton","","bitSuffix","","bitPasswordInputToggle","","data-testid","visibility-for-ssn"],["formControlName","passportNumber","bitInput","","type","password"],["type","button","bitIconButton","","bitSuffix","","bitPasswordInputToggle","","data-testid","visibility-for-passport-number"],["bitInput","","formControlName","licenseNumber"],["bitInput","","formControlName","email"],["bitInput","","formControlName","phone"],["bitInput","","formControlName","address1"],["bitInput","","formControlName","address2"],["bitInput","","formControlName","address3"],["bitInput","","formControlName","city"],["bitInput","","formControlName","state"],["bitInput","","formControlName","postalCode"],["bitInput","","formControlName","country"]],template:function(e,t){1&e&&(w.j41(0,"form",0)(1,"section",1)(2,"bit-section-header")(3,"h2",2),w.EFF(4),w.nI1(5,"i18n"),w.k0s()(),w.j41(6,"bit-card")(7,"bit-form-field")(8,"bit-label"),w.EFF(9),w.nI1(10,"i18n"),w.k0s(),w.j41(11,"bit-select",3),w.Z7z(12,no,1,2,"bit-option",4,io),w.k0s()(),w.j41(14,"bit-form-field")(15,"bit-label"),w.EFF(16),w.nI1(17,"i18n"),w.k0s(),w.nrm(18,"input",5),w.k0s(),w.j41(19,"bit-form-field")(20,"bit-label"),w.EFF(21),w.nI1(22,"i18n"),w.k0s(),w.nrm(23,"input",6),w.k0s(),w.j41(24,"bit-form-field")(25,"bit-label"),w.EFF(26),w.nI1(27,"i18n"),w.k0s(),w.nrm(28,"input",7),w.k0s(),w.j41(29,"bit-form-field")(30,"bit-label"),w.EFF(31),w.nI1(32,"i18n"),w.k0s(),w.nrm(33,"input",8),w.k0s(),w.j41(34,"bit-form-field",9)(35,"bit-label"),w.EFF(36),w.nI1(37,"i18n"),w.k0s(),w.nrm(38,"input",10),w.k0s()()(),w.j41(39,"section",1)(40,"bit-section-header")(41,"h2",2),w.EFF(42),w.nI1(43,"i18n"),w.k0s()(),w.j41(44,"bit-card")(45,"bit-form-field")(46,"bit-label"),w.EFF(47),w.nI1(48,"i18n"),w.k0s(),w.nrm(49,"input",11)(50,"button",12),w.k0s(),w.j41(51,"bit-form-field")(52,"bit-label"),w.EFF(53),w.nI1(54,"i18n"),w.k0s(),w.nrm(55,"input",13)(56,"button",14),w.k0s(),w.j41(57,"bit-form-field",9)(58,"bit-label"),w.EFF(59),w.nI1(60,"i18n"),w.k0s(),w.nrm(61,"input",15),w.k0s()()(),w.j41(62,"section",1)(63,"bit-section-header")(64,"h2",2),w.EFF(65),w.nI1(66,"i18n"),w.k0s()(),w.j41(67,"bit-card")(68,"bit-form-field")(69,"bit-label"),w.EFF(70),w.nI1(71,"i18n"),w.k0s(),w.nrm(72,"input",16),w.k0s(),w.j41(73,"bit-form-field",9)(74,"bit-label"),w.EFF(75),w.nI1(76,"i18n"),w.k0s(),w.nrm(77,"input",17),w.k0s()()(),w.j41(78,"section",1)(79,"bit-section-header")(80,"h2",2),w.EFF(81),w.nI1(82,"i18n"),w.k0s()(),w.j41(83,"bit-card")(84,"bit-form-field")(85,"bit-label"),w.EFF(86),w.nI1(87,"i18n"),w.k0s(),w.nrm(88,"input",18),w.k0s(),w.j41(89,"bit-form-field")(90,"bit-label"),w.EFF(91),w.nI1(92,"i18n"),w.k0s(),w.nrm(93,"input",19),w.k0s(),w.j41(94,"bit-form-field")(95,"bit-label"),w.EFF(96),w.nI1(97,"i18n"),w.k0s(),w.nrm(98,"input",20),w.k0s(),w.j41(99,"bit-form-field")(100,"bit-label"),w.EFF(101),w.nI1(102,"i18n"),w.k0s(),w.nrm(103,"input",21),w.k0s(),w.j41(104,"bit-form-field")(105,"bit-label"),w.EFF(106),w.nI1(107,"i18n"),w.k0s(),w.nrm(108,"input",22),w.k0s(),w.j41(109,"bit-form-field")(110,"bit-label"),w.EFF(111),w.nI1(112,"i18n"),w.k0s(),w.nrm(113,"input",23),w.k0s(),w.j41(114,"bit-form-field",9)(115,"bit-label"),w.EFF(116),w.nI1(117,"i18n"),w.k0s(),w.nrm(118,"input",24),w.k0s()()()()),2&e&&(w.Y8G("formGroup",t.identityForm),w.R7$(4),w.JRh(w.bMT(5,23,"personalDetails")),w.R7$(5),w.SpI(" ",w.bMT(10,25,"title")," "),w.R7$(3),w.Dyx(t.identityTitleOptions),w.R7$(4),w.SpI(" ",w.bMT(17,27,"firstName")," "),w.R7$(5),w.SpI(" ",w.bMT(22,29,"middleName")," "),w.R7$(5),w.SpI(" ",w.bMT(27,31,"lastName")," "),w.R7$(5),w.SpI(" ",w.bMT(32,33,"username")," "),w.R7$(5),w.SpI(" ",w.bMT(37,35,"company")," "),w.R7$(6),w.JRh(w.bMT(43,37,"identification")),w.R7$(5),w.SpI(" ",w.bMT(48,39,"ssn")," "),w.R7$(6),w.SpI(" ",w.bMT(54,41,"passportNumber")," "),w.R7$(6),w.SpI(" ",w.bMT(60,43,"licenseNumber")," "),w.R7$(6),w.JRh(w.bMT(66,45,"contactInfo")),w.R7$(5),w.SpI(" ",w.bMT(71,47,"email")," "),w.R7$(5),w.SpI(" ",w.bMT(76,49,"phone")," "),w.R7$(6),w.JRh(w.bMT(82,51,"address")),w.R7$(5),w.SpI(" ",w.bMT(87,53,"address1")," "),w.R7$(5),w.SpI(" ",w.bMT(92,55,"address2")," "),w.R7$(5),w.SpI(" ",w.bMT(97,57,"address3")," "),w.R7$(5),w.SpI(" ",w.bMT(102,59,"cityTown")," "),w.R7$(5),w.SpI(" ",w.bMT(107,61,"stateProvince")," "),w.R7$(5),w.SpI(" ",w.bMT(112,63,"zipPostalCodeLabel")," "),w.R7$(5),w.SpI(" ",w.bMT(117,65,"country")," "))},dependencies:[ve.MD,y.t,v.p,g.X1,g.qT,g.me,g.BC,g.cb,g.j4,g.JD,Ve.U,Me.i,C.L,G.j,U.J,O.h,N.e,j.a,I.Q,Y.s,rs.p,hs.w,As.P,Pe.E,Oe.r,X.$],encapsulation:2});var so=i(16385),oo=i(62423),ao=i(2738),lo=i(7356),co=i(58604),uo=i(18499),ho=i(89812),Ao=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const po=(e,t)=>t.id;function go(e,t){1&e&&(w.nrm(0,"button",2),w.nI1(1,"i18n")),2&e&&w.Y8G("label",w.bMT(1,1,"archived"))}function vo(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",6),w.nI1(1,"i18n"),w.bIt("click",function(){a.eBV(e);const t=w.XpG();return a.Njj(t.toggleFavorite())}),w.k0s()}if(2&e){const e=w.XpG();w.Y8G("bitIconButton",e.favoriteIcon)("label",w.bMT(1,4,"favorite"))("disabled",e.favoriteButtonDisabled),w.BMQ("aria-checked",e.itemDetailsForm.value.favorite)}}function mo(e,t){if(1&e&&(w.nrm(0,"bit-option",8),w.nI1(1,"async")),2&e){const e=w.XpG(2);w.Y8G("value",null)("label",w.bMT(1,2,e.userEmail$))}}function fo(e,t){if(1&e&&w.nrm(0,"bit-option",8),2&e){const e=t.$implicit;w.Y8G("value",e.id)("label",e.name)}}function yo(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"bit-select",7),w.nVh(5,mo,2,4,"bit-option",8),w.Z7z(6,fo,1,2,"bit-option",8,po),w.k0s()()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,2,"owner")),w.R7$(3),w.vxM(e.showPersonalOwnershipOption?5:-1),w.R7$(),w.Dyx(e.organizations)}}function bo(e,t){if(1&e&&(w.j41(0,"bit-hint",11),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e){const e=w.XpG(2);w.R7$(),w.SpI(" ",w.i5U(2,1,"cannotRemoveViewOnlyCollections",e.readOnlyCollectionsNames.join(", "))," ")}}function Co(e,t){if(1&e&&(w.qex(0),w.j41(1,"bit-form-field",9)(2,"bit-label"),w.EFF(3),w.nI1(4,"i18n"),w.k0s(),w.nrm(5,"bit-multi-select",10),w.nVh(6,bo,3,4,"bit-hint",11),w.k0s(),w.bVm()),2&e){const e=w.XpG();w.R7$(),w.Y8G("disableMargin",e.config.hideIndividualVaultFields),w.R7$(2),w.JRh(w.bMT(4,4,"collections")),w.R7$(2),w.Y8G("baseItems",e.collectionOptions),w.R7$(),w.vxM(e.readOnlyCollectionsNames.length>0?6:-1)}}function Io(e,t){if(1&e&&w.nrm(0,"bit-option",8),2&e){const e=t.$implicit;w.Y8G("value",e.id)("label",e.name)}}function wo(e,t){if(1&e&&(w.j41(0,"bit-form-field",5)(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"bit-select",12),w.Z7z(5,Io,1,2,"bit-option",8,po),w.k0s()()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,1,"folder")),w.R7$(3),w.Dyx(e.config.folders)}}class Bo{get readOnlyCollectionsNames(){return this.readOnlyCollections.map(e=>e.name)}get partialEdit(){return"partial-edit"===this.config.mode}get allowPersonalOwnership(){return this.config.organizationDataOwnershipDisabled}get collections(){return this.config.collections}get initialValues(){return this.config.initialValues}get showPersonalOwnershipOption(){return this.allowPersonalOwnership||this.itemDetailsForm.controls.organizationId.disabled||!this.allowPersonalOwnership&&this.config.originalCipher&&null==this.itemDetailsForm.controls.organizationId.value}constructor(e,t,i,n,s,o,a){this.cipherFormContainer=e,this.formBuilder=t,this.i18nService=i,this.destroyRef=n,this.accountService=s,this.policyService=o,this.platformUtilsService=a,this.itemDetailsForm=this.formBuilder.group({name:["",[g.k0.required]],organizationId:[null],folderId:[null],collectionIds:new g.MJ([],[g.k0.required]),favorite:[!1]}),this.showArchiveBadge=(0,me.EW)(()=>{var e;return(null===(e=this.originalCipherView())||void 0===e?void 0:e.isArchived)&&this.platformUtilsService.getClientType()===ao.s.Desktop}),this.collectionOptions=[],this.readOnlyCollections=[],this.userEmail$=this.accountService.activeAccount$.pipe((0,r.T)(e=>e.email)),this.organizations=[],this.favoriteButtonDisabled=!1,this.originalCipherView=(0,ue.hFB)(),this.cipherFormContainer.registerChildForm("itemDetails",this.itemDetailsForm),this.itemDetailsForm.valueChanges.pipe((0,he.pQ)(),(0,r.T)(()=>this.itemDetailsForm.getRawValue())).subscribe(e=>{this.cipherFormContainer.patchCipher(t=>{var i;return Object.assign(t,{name:e.name,organizationId:e.organizationId,folderId:e.folderId,collectionIds:[...(null===(i=e.collectionIds)||void 0===i?void 0:i.map(e=>e.id))||[],...this.readOnlyCollections.map(e=>e.id)],favorite:e.favorite}),t})})}get favoriteIcon(){return this.itemDetailsForm.controls.favorite.value?"bwi-star-f":"bwi-star"}toggleFavorite(){this.itemDetailsForm.controls.favorite.setValue(!this.itemDetailsForm.controls.favorite.value)}get allowOwnershipChange(){var e;return("edit"!==this.config.mode||null==(null===(e=this.originalCipherView())||void 0===e?void 0:e.organizationId))&&(this.allowPersonalOwnership?this.organizations.length>0:this.organizations.length>1)}get showOwnership(){const e=this.organizations.length>0&&"edit"===this.config.mode,t=this.config.isAdminConsole&&"clone"!==this.config.mode;return this.allowOwnershipChange||e&&!t}get defaultOwner(){return this.allowPersonalOwnership||0===this.organizations.length?null:this.organizations[0].id}ngOnInit(){return Ao(this,void 0,void 0,function*(){var e,t,i,n,r;this.organizations=this.config.organizations.sort(A.A.getSortFunction(this.i18nService,"name")),this.userId=yield(0,h._)(this.accountService.activeAccount$.pipe(m.F6));const s=this.cipherFormContainer.getInitialCipherView();if(s)yield this.initFromExistingCipher(s);else{const s=null===(e=this.initialValues)||void 0===e?void 0:e.organizationId;this.itemDetailsForm.setValue({name:(null===(t=this.initialValues)||void 0===t?void 0:t.name)||"",organizationId:s||this.defaultOwner,folderId:(null===(i=this.initialValues)||void 0===i?void 0:i.folderId)||null,collectionIds:[],favorite:!1}),yield this.updateCollectionOptions(null!==(r=null===(n=this.initialValues)||void 0===n?void 0:n.collectionIds)&&void 0!==r?r:[])}this.setFormState(),this.itemDetailsForm.controls.organizationId.valueChanges.pipe((0,he.pQ)(this.destroyRef),(0,so.F)(),(0,oo.H)(()=>Ao(this,void 0,void 0,function*(){yield this.updateCollectionOptions(),this.setFormState()}))).subscribe()})}setFormState(){this.config.originalCipher&&!this.allowPersonalOwnership?null==this.itemDetailsForm.controls.organizationId.value?(this.cipherFormContainer.disableFormFields(),this.itemDetailsForm.controls.organizationId.enable(),this.favoriteButtonDisabled=!0):(this.cipherFormContainer.enableFormFields(),this.favoriteButtonDisabled=!1,this.setCollectionControlState()):this.allowOwnershipChange||this.itemDetailsForm.controls.organizationId.disable({emitEvent:!1})}getDefaultCollectionId(e){return Ao(this,void 0,void 0,function*(){if(!e||this.allowPersonalOwnership)return;if(!(yield(0,h._)(this.policyService.policiesByType$(lo.tt.OrganizationDataOwnership,this.userId))).find(e=>e.organizationId))return;const t=this.collections.find(t=>t.organizationId===e&&t.type===ki.it.DefaultUserCollection);return null==t?void 0:t.id})}initFromExistingCipher(e){return Ao(this,void 0,void 0,function*(){var t,i,n,r,s,o,a;const{name:l,folderId:c,collectionIds:d}=e;this.itemDetailsForm.patchValue({name:l||(null!==(i=null===(t=this.initialValues)||void 0===t?void 0:t.name)&&void 0!==i?i:""),organizationId:null!==(n=e.organizationId)&&void 0!==n?n:null,folderId:c||(null!==(s=null===(r=this.initialValues)||void 0===r?void 0:r.folderId)&&void 0!==s?s:null),collectionIds:[],favorite:e.favorite});const u=this.itemDetailsForm.controls.organizationId.value,h=this.cipherFormContainer.initializedWithCachedCipher();"clone"===this.config.mode&&(h||this.itemDetailsForm.controls.name.setValue(e.name+" - "+this.i18nService.t("clone")),this.allowPersonalOwnership||null!=e.organizationId||this.itemDetailsForm.controls.organizationId.setValue(this.defaultOwner));const A=(null==d?void 0:d.length)?d:null!==(a=null===(o=this.initialValues)||void 0===o?void 0:o.collectionIds)&&void 0!==a?a:[];yield this.updateCollectionOptions(A),this.setCollectionControlState(),this.partialEdit?(this.itemDetailsForm.disable(),this.itemDetailsForm.controls.favorite.enable(),this.itemDetailsForm.controls.folderId.enable()):"edit"===this.config.mode&&(this.config.isAdminConsole&&this.config.admin||(this.readOnlyCollections=this.collections.filter(e=>e.organizationId===u&&e.readOnly&&this.originalCipherView().collectionIds.includes(e.id))))})}setCollectionControlState(){const e=this.cipherFormContainer.getInitialCipherView();if(!(null==e?void 0:e.id))return;const t=this.itemDetailsForm.controls.organizationId.value,i=this.organizations.find(e=>e.id===t);i&&((i.canEditAllCiphers||e.canAssignToCollections)&&(!i.allowAdminAccessToAllCollectionItems||e.viewPassword&&e.edit)&&(i.type!==lo.D7.Custom||e.viewPassword)||this.itemDetailsForm.controls.collectionIds.disable())}updateCollectionOptions(){return Ao(this,arguments,void 0,function*(e=[]){var t,i;const n=this.itemDetailsForm.controls.organizationId.value,r=this.itemDetailsForm.controls.collectionIds;if(null==n)return this.collectionOptions=[],r.reset(),r.disable(),void(this.showCollectionsControl=!1);r.enable(),this.showCollectionsControl=!0;const s=(null!==(i=null===(t=this.originalCipherView())||void 0===t?void 0:t.collectionIds)&&void 0!==i?i:[]).length>0&&this.originalCipherView().collectionIds.every(e=>{var t;return(null===(t=this.collections.find(t=>t.id===e))||void 0===t?void 0:t.type)===ki.it.SharedCollection});if(this.collectionOptions=this.collections.filter(e=>e.organizationId===n&&(!!this.partialEdit||(!!this.config.admin||(!s||e.type!==ki.it.DefaultUserCollection)&&(e.assigned&&!e.readOnly)))).sort((e,t)=>(e.type===ki.it.DefaultUserCollection?-1:0)-(t.type===ki.it.DefaultUserCollection?-1:0)).map(e=>({id:e.id,name:e.name,listName:e.name,labelName:e.name})),r.reset(),r.enable(),this.showCollectionsControl=!0,1!==this.collectionOptions.length)if((null==e?void 0:e.filter(Boolean).length)>0)r.setValue(this.collectionOptions.filter(t=>e.includes(t.id)));else{const e=yield this.getDefaultCollectionId(n);e&&r.setValue(this.collectionOptions.filter(t=>t.id===e))}else r.setValue(this.collectionOptions)})}}Bo.ɵfac=function(e){return new(e||Bo)(w.rXU(ss),w.rXU(g.ok),w.rXU(S.W),w.rXU(a.abz),w.rXU(R.D),w.rXU(uo.m),w.rXU(E.y))},Bo.ɵcmp=w.VBU({type:Bo,selectors:[["vault-item-details-section"]],inputs:{config:"config",originalCipherView:[1,"originalCipherView"]},decls:16,vars:12,consts:[[1,"tw-mb-5","bit-compact:tw-mb-4",3,"formGroup"],["bitTypography","h6"],["type","button","bit-chip-action","",3,"label"],["slot","end","type","button","size","small","role","checkbox",3,"bitIconButton","label","disabled"],["bitInput","","formControlName","name"],["disableMargin",""],["slot","end","type","button","size","small","role","checkbox",3,"click","bitIconButton","label","disabled"],["formControlName","organizationId"],[3,"value","label"],[1,"tw-w-full",3,"disableMargin"],["formControlName","collectionIds",1,"tw-w-full",3,"baseItems"],["data-testid","view-only-hint"],["formControlName","folderId"]],template:function(e,t){1&e&&(w.j41(0,"section",0)(1,"bit-section-header")(2,"h2",1),w.EFF(3),w.nI1(4,"i18n"),w.k0s(),w.nVh(5,go,2,3,"button",2),w.nVh(6,vo,2,6,"button",3),w.k0s(),w.j41(7,"bit-card")(8,"bit-form-field")(9,"bit-label"),w.EFF(10),w.nI1(11,"i18n"),w.k0s(),w.nrm(12,"input",4),w.k0s(),w.nVh(13,yo,8,4,"bit-form-field"),w.nVh(14,Co,7,6,"ng-container"),w.nVh(15,wo,7,3,"bit-form-field",5),w.k0s()()),2&e&&(w.Y8G("formGroup",t.itemDetailsForm),w.R7$(3),w.JRh(w.bMT(4,8,"itemDetails")),w.R7$(2),w.vxM(t.showArchiveBadge()?5:-1),w.R7$(),w.vxM(t.config.hideIndividualVaultFields?-1:6),w.R7$(4),w.JRh(w.bMT(11,10,"itemName")),w.R7$(3),w.vxM(t.showOwnership?13:-1),w.R7$(),w.vxM(t.showCollectionsControl?14:-1),w.R7$(),w.vxM(t.config.hideIndividualVaultFields?-1:15))},dependencies:[Me.i,co.g,Pe.E,Oe.r,C.L,G.j,ln.I,U.J,ho.b,O.h,g.X1,g.me,g.BC,g.cb,g.j4,g.JD,rs.p,hs.w,As.P,Ve.U,I.Q,Y.s,v.p,ve.MD,X.$,ve.Jj],encapsulation:2});var Eo=i(79783),So=i(68711),Qo=i(5206),ko=i(70342),Ro=i(54473),Fo=i(51151),To=i(16671),Do=i(90647);const Po="desktopapp://";var Mo=i(98905),xo=i(59777);class Vo{constructor(e){this.dialogRef=e,this.platformUtilsService=(0,a.WQX)(E.y),this.params=(0,a.WQX)(Qr.Qs)}get contentKey(){return this.params.contentKey}onCancel(){var e,t;null===(t=(e=this.params).onCancel)||void 0===t||t.call(e),this.dialogRef.close(!1)}onContinue(){var e,t;null===(t=(e=this.params).onContinue)||void 0===t||t.call(e),this.dialogRef.close(!0)}openLink(e){e.preventDefault(),this.platformUtilsService.launchUri("https://bitwarden.com/help/uri-match-detection/")}static open(e,t){return e.open(Vo,{data:t,disableClose:!0,positionStrategy:new W.u})}}Vo.ɵfac=function(e){return new(e||Vo)(w.rXU(Q.ce))},Vo.ɵcmp=w.VBU({type:Vo,selectors:[["ng-component"]],decls:20,vars:15,consts:[["bitDialogIcon","","aria-hidden","true",1,"bwi","tw-text-3xl","bwi-exclamation-triangle","tw-text-warning"],["bitDialogTitle",""],["bitDialogContent","",1,"tw-mb-1"],[1,"tw-mb-1","tw-hyphens-none"],["bitLink","","type","button","linkType","primary",3,"click"],["bitDialogFooter",""],["bitButton","","type","button","buttonType","primary",3,"click"],["bitButton","","type","button","buttonType","secondary",3,"click"]],template:function(e,t){1&e&&(w.j41(0,"bit-simple-dialog"),w.nrm(1,"i",0),w.j41(2,"span",1),w.EFF(3),w.nI1(4,"i18n"),w.k0s(),w.j41(5,"div",2)(6,"p",3),w.EFF(7),w.nI1(8,"i18n"),w.nrm(9,"br"),w.j41(10,"button",4),w.bIt("click",function(e){return t.openLink(e)}),w.EFF(11),w.nI1(12,"i18n"),w.k0s()()(),w.qex(13,5),w.j41(14,"button",6),w.bIt("click",function(){return t.onContinue()}),w.EFF(15),w.nI1(16,"i18n"),w.k0s(),w.j41(17,"button",7),w.bIt("click",function(){return t.onCancel()}),w.EFF(18),w.nI1(19,"i18n"),w.k0s(),w.bVm(),w.k0s()),2&e&&(w.R7$(3),w.SpI(" ",w.bMT(4,5,"warningCapitalized")," "),w.R7$(4),w.SpI(" ",w.bMT(8,7,t.contentKey)," "),w.R7$(4),w.SpI(" ",w.bMT(12,9,"uriMatchWarningDialogLink")," "),w.R7$(4),w.SpI(" ",w.bMT(16,11,"continue")," "),w.R7$(3),w.SpI(" ",w.bMT(19,13,"cancel")," "))},dependencies:[De.g,y.t,P.Q,b.P,V.LJ,V.hJ,V.o_,v.p,X.$],encapsulation:2});var Go=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Uo=["uriInput"],Oo=["matchDetectionSelect"],No=(e,t)=>t.value;function jo(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",11),w.nI1(1,"i18n"),w.bIt("click",function(){a.eBV(e);const t=w.XpG();return a.Njj(t.removeUri())}),w.k0s()}2&e&&w.Y8G("label",w.bMT(1,1,"deleteWebsite"))}function Yo(e,t){if(1&e){const e=w.RV6();w.j41(0,"div",9)(1,"button",12),w.nI1(2,"i18n"),w.bIt("keydown",function(t){a.eBV(e);const i=w.XpG();return a.Njj(i.handleKeydown(t))}),w.k0s()()}if(2&e){const e=w.XpG();w.R7$(),w.Y8G("label",w.i5U(2,1,"reorderToggleButton",e.uriLabel))}}function Xo(e,t){if(1&e&&w.nrm(0,"bit-option",14),2&e){const e=t.$implicit;w.Y8G("label",e.label)("value",e.value)("disabled",e.disabled)}}function zo(e,t){if(1&e&&(w.j41(0,"b"),w.EFF(1),w.nI1(2,"i18n"),w.k0s(),w.EFF(3),w.nI1(4,"i18n")),2&e){const e=w.XpG();w.R7$(),w.SpI("",w.bMT(2,2,"warningCapitalized"),":"),w.R7$(2),w.SpI(" ",w.bMT(4,4,e[1])," ")}}function Lo(e,t){if(1&e&&(w.j41(0,"bit-hint"),w.EFF(1),w.nI1(2,"i18n"),w.nVh(3,zo,5,6),w.k0s()),2&e){const e=t;w.R7$(),w.SpI(" ",w.bMT(2,2,e[0])," "),w.R7$(2),w.vxM(e.length>1?3:-1)}}function Wo(e,t){if(1&e&&(w.j41(0,"bit-form-field",10)(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"bit-select",13,1),w.Z7z(6,Xo,1,3,"bit-option",14,No),w.k0s(),w.nVh(8,Lo,4,4,"bit-hint"),w.k0s()),2&e){let e;const t=w.XpG();w.R7$(2),w.JRh(w.bMT(3,2,"matchDetection")),w.R7$(4),w.Dyx(t.uriMatchOptions),w.R7$(2),w.vxM((e=t.getMatchHints())?8:-1,e)}}class Ko{set defaultMatchDetection(e){var t;null!==e&&(this.uriMatchOptions[0].label=this.i18nService.t("defaultLabelWithValue",null===(t=this.uriMatchOptions.find(t=>t.value===e))||void 0===t?void 0:t.label))}toggleMatchDetection(){this.showMatchDetection=!this.showMatchDetection,this.showMatchDetection&&setTimeout(()=>{var e,t;return null===(t=null===(e=this.matchDetectionSelect)||void 0===e?void 0:e.select())||void 0===t?void 0:t.focus()},0)}get uriLabel(){var e,t;return this.showAppLabel()&&null!==(t=null===(e=this.uriForm.controls.uri.value)||void 0===e?void 0:e.startsWith(Po))&&void 0!==t&&t?0===this.index?this.i18nService.t("appUri"):this.i18nService.t("appUriCount",this.index+1):0===this.index?this.i18nService.t("websiteUri"):this.i18nService.t("websiteUriCount",this.index+1)}get toggleTitle(){return this.i18nService.t(this.showMatchDetection?"hideMatchDetectionNoPlaceholder":"showMatchDetectionNoPlaceholder")}handleKeydown(e){this.onKeydown.emit(e)}constructor(e,t,i){this.dialogService=e,this.formBuilder=t,this.i18nService=i,this.uriForm=this.formBuilder.group({uri:[null],matchDetection:[null]}),this.uriMatchOptions=[{label:this.i18nService.t("default"),value:null},{label:this.i18nService.t("baseDomain"),value:xo.L.Domain},{label:this.i18nService.t("host"),value:xo.L.Host},{label:this.i18nService.t("exact"),value:xo.L.Exact},{label:this.i18nService.t("never"),value:xo.L.Never},{label:this.i18nService.t("uriAdvancedOption"),value:null,disabled:!0},{label:this.i18nService.t("startsWith"),value:xo.L.StartsWith},{label:this.i18nService.t("regEx"),value:xo.L.RegularExpression}],this.advancedOptionWarningMap={[xo.L.StartsWith]:"startsWithAdvancedOptionWarning",[xo.L.RegularExpression]:"regExAdvancedOptionWarning"},this.showAppLabel=(0,ue.hFB)(!1),this.onKeydown=new a.bkB,this.remove=new a.bkB,this.showMatchDetection=!1,this.onChange=()=>{},this.onTouched=()=>{},this.uriForm.valueChanges.pipe((0,he.pQ)()).subscribe(e=>{this.onChange(e)}),this.uriForm.statusChanges.pipe((0,he.pQ)()).subscribe(()=>{this.onTouched()}),this.uriForm.controls.matchDetection.valueChanges.pipe((0,Mo.J)(),(0,oo.H)(([e,t])=>this.handleAdvancedMatch(e,t)),(0,he.pQ)()).subscribe()}handleAdvancedMatch(e,t){return Go(this,void 0,void 0,function*(){const i=e!==t,n=t===xo.L.StartsWith||t===xo.L.RegularExpression;i&&n&&Vo.open(this.dialogService,{contentKey:this.advancedOptionWarningMap[t],onContinue:()=>{this.uriForm.controls.matchDetection.setValue(t)},onCancel:()=>{this.uriForm.controls.matchDetection.setValue(e)}})})}focusInput(){var e;(null===(e=this.inputElement)||void 0===e?void 0:e.nativeElement)&&this.inputElement.nativeElement.focus()}removeUri(){this.remove.emit()}writeValue(e){var t,i;e&&this.uriForm.setValue({uri:null!==(t=e.uri)&&void 0!==t?t:"",matchDetection:null!==(i=e.matchDetection)&&void 0!==i?i:null},{emitEvent:!1})}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){e?this.uriForm.disable():this.uriForm.enable()}getMatchHints(){var e;const t=["uriMatchDefaultStrategyHint"],i=null===(e=this.uriForm.get("matchDetection"))||void 0===e?void 0:e.value;return i!==xo.L.StartsWith&&i!==xo.L.RegularExpression||t.push(this.advancedOptionWarningMap[i]),t}}Ko.ɵfac=function(e){return new(e||Ko)(w.rXU(W.o),w.rXU(g.ok),w.rXU(S.W))},Ko.ɵcmp=w.VBU({type:Ko,selectors:[["vault-autofill-uri-option"]],viewQuery:function(e,t){if(1&e&&w.GBs(Uo,5)(Oo,5),2&e){let e;w.mGM(e=w.lsd())&&(t.inputElement=e.first),w.mGM(e=w.lsd())&&(t.matchDetectionSelect=e.first)}},inputs:{canReorder:"canReorder",canRemove:"canRemove",defaultMatchDetection:"defaultMatchDetection",index:"index",showAppLabel:[1,"showAppLabel"]},outputs:{onKeydown:"onKeydown",remove:"remove"},features:[w.Jv_([{provide:g.kq,useExisting:(0,a.Rfq)(()=>Ko),multi:!0}])],decls:12,vars:9,consts:[["uriInput",""],["matchDetectionSelect",""],[3,"formGroup"],[1,"tw-mb-4","tw-pt-1"],[1,"tw-flex","tw-pt-2"],["disableMargin","",1,"tw-flex-1","!tw-pt-0"],["bitInput","","formControlName","uri"],["type","button","bitSuffix","","data-testid","toggle-match-detection-button",3,"click","bitIconButton","label"],["type","button","bitIconButton","bwi-minus-circle","buttonType","dangerGhost","bitSuffix","","data-testid","remove-uri-button",3,"label"],[1,"tw-flex","tw-items-center","tw-ml-1.5"],[1,"!tw-mb-5"],["type","button","bitIconButton","bwi-minus-circle","buttonType","dangerGhost","bitSuffix","","data-testid","remove-uri-button",3,"click","label"],["role","application","type","button","bitIconButton","bwi-drag-and-drop","cdkDragHandle","","data-testid","reorder-toggle-button",1,"!tw-py-0","!tw-px-1",3,"keydown","label"],["formControlName","matchDetection"],[3,"label","value","disabled"]],template:function(e,t){1&e&&(w.qex(0,2),w.j41(1,"div",3)(2,"div",4)(3,"bit-form-field",5)(4,"bit-label"),w.EFF(5),w.k0s(),w.nrm(6,"input",6,0),w.j41(8,"button",7),w.bIt("click",function(){return t.toggleMatchDetection()}),w.k0s(),w.nVh(9,jo,2,3,"button",8),w.k0s(),w.nVh(10,Yo,3,4,"div",9),w.k0s(),w.nVh(11,Wo,9,4,"bit-form-field",10),w.k0s(),w.bVm()),2&e&&(w.Y8G("formGroup",t.uriForm),w.R7$(2),w.AVh("!tw-mb-1",t.showMatchDetection),w.R7$(3),w.JRh(t.uriLabel),w.R7$(3),w.Y8G("bitIconButton",t.showMatchDetection?"bwi-cog-f":"bwi-cog")("label",t.toggleTitle),w.R7$(),w.vxM(t.canRemove?9:-1),w.R7$(),w.vxM(t.canReorder?10:-1),w.R7$(),w.vxM(t.showMatchDetection?11:-1))},dependencies:[cs.ad,cs.Fb,C.L,G.j,ln.I,U.J,O.h,j.a,g.X1,g.me,g.BC,g.cb,g.j4,g.JD,I.Q,Y.s,v.p,rs.p,hs.w,As.P,X.$],encapsulation:2});var Zo=i(13496),Ho=i(73848),Jo=i(78952),qo=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function $o(e,t){if(1&e){const e=w.RV6();w.j41(0,"vault-autofill-uri-option",7),w.nI1(1,"async"),w.bIt("remove",function(){const t=a.eBV(e).$index,i=w.XpG();return a.Njj(i.removeUri(t))})("onKeydown",function(t){const i=a.eBV(e).$index,n=w.XpG();return a.Njj(n.onUriItemKeydown(t,i))}),w.k0s()}if(2&e){const e=t.$index,i=w.XpG();w.Y8G("cdkDragDisabled",i.uriControls.length<=1||i.autofillOptionsForm.disabled)("formControlName",e)("canReorder",i.uriControls.length>1&&i.autofillOptionsForm.enabled)("canRemove",i.uriControls.length>1&&i.autofillOptionsForm.enabled)("defaultMatchDetection",w.bMT(1,7,i.defaultMatchDetection$))("index",e)("showAppLabel",i.showAddAppDropdown())}}function _o(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",9),w.nI1(1,"async"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"bit-menu",null,0)(6,"button",10),w.bIt("click",function(){a.eBV(e);const t=w.XpG(2);return a.Njj(t.addUri({uri:null,matchDetection:null},!0))}),w.EFF(7),w.nI1(8,"i18n"),w.k0s(),w.j41(9,"button",10),w.bIt("click",function(){a.eBV(e);const t=w.XpG(2);return a.Njj(t.addUri({uri:t.desktopAppUriPrefix,matchDetection:null},!0))}),w.EFF(10),w.nI1(11,"i18n"),w.k0s()()}if(2&e){const e=w.sdS(5),t=w.XpG(2);w.AVh("tw-mb-6",w.bMT(1,6,t.autofillOnPageLoadEnabled$)),w.Y8G("bitMenuTriggerFor",e),w.R7$(2),w.SpI(" ",w.bMT(3,8,"addWebsiteOrApp")," "),w.R7$(5),w.SpI(" ",w.bMT(8,10,"website")," "),w.R7$(3),w.SpI(" ",w.bMT(11,12,"app")," ")}}function ea(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",11),w.nI1(1,"async"),w.bIt("click",function(){a.eBV(e);const t=w.XpG(2);return a.Njj(t.addUri({uri:null,matchDetection:null},!0))}),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}if(2&e){const e=w.XpG(2);w.AVh("tw-mb-6",w.bMT(1,3,e.autofillOnPageLoadEnabled$)),w.R7$(2),w.SpI(" ",w.bMT(3,5,"addWebsite")," ")}}function ta(e,t){if(1&e&&w.nVh(0,_o,12,14)(1,ea,4,7,"button",8),2&e){const e=w.XpG();w.vxM(e.showAddAppDropdown()?0:1)}}function ia(e,t){if(1&e&&(w.j41(0,"bit-form-field",6)(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"bit-select",12),w.k0s()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,2,"autoFillOnPageLoad")),w.R7$(2),w.Y8G("items",e.autofillOptions)}}class na{get uriControls(){return this.autofillOptionsForm.controls.uris.controls}get isPartialEdit(){return"partial-edit"===this.cipherFormContainer.config.mode}constructor(e,t,i,n,r,s,o,a){this.cipherFormContainer=e,this.formBuilder=t,this.i18nService=i,this.liveAnnouncer=n,this.domainSettingsService=r,this.autofillSettingsService=s,this.platformUtilsService=o,this.configService=a,this.autofillOptionsForm=this.formBuilder.group({uris:this.formBuilder.array([]),autofillOnPageLoad:[null]}),this.defaultMatchDetection$=this.domainSettingsService.resolvedDefaultUriMatchStrategy$.pipe((0,So.p)(()=>this.platformUtilsService.getClientType()==Fo.sK.Browser)),this.autofillOnPageLoadEnabled$=this.autofillSettingsService.autofillOnPageLoad$,this.autofillOptions=[{label:this.i18nService.t("default"),value:null},{label:this.i18nService.t("yes"),value:!0},{label:this.i18nService.t("no"),value:!1}],this.focusOnNewInput$=new le.B,this.isWindowsDesktop=this.platformUtilsService.getDevice()===Fo.bq.WindowsDesktop,this.showAddAppDropdown=(0,he.ot)(this.isWindowsDesktop?this.configService.getFeatureFlag$(Se.TO.WindowsDesktopAutotypeGA):(0,ye.of)(!1),{initialValue:!1}),this.desktopAppUriPrefix=Po,this.cipherFormContainer.registerChildForm("autoFillOptions",this.autofillOptionsForm),this.autofillOptionsForm.valueChanges.pipe((0,he.pQ)()).subscribe(e=>{this.cipherFormContainer.patchCipher(t=>{var i;return t.login.uris=null===(i=e.uris)||void 0===i?void 0:i.map(e=>Object.assign(new To.z,{uri:e.uri,match:e.matchDetection})),t.login.autofillOnPageLoad=e.autofillOnPageLoad,t})}),this.updateDefaultAutofillLabel(),this.focusOnNewInput$.pipe((0,he.pQ)(),(0,fe.n)(()=>this.uriOptions.changes.pipe((0,Qo.s)(1))),(0,fe.n)(()=>this.liveAnnouncer.announce(this.i18nService.t("websiteAdded"),"polite"))).subscribe(()=>{var e,t;null===(t=null===(e=this.uriOptions)||void 0===e?void 0:e.last)||void 0===t||t.focusInput()}),this.cipherFormContainer.formStatusChange$.pipe((0,he.pQ)()).subscribe(e=>{"disabled"===e?this.autofillOptionsForm.disable({emitEvent:!1}):this.isPartialEdit||this.autofillOptionsForm.enable({emitEvent:!1})})}ngOnInit(){const e=this.cipherFormContainer.getInitialCipherView();e?this.initFromExistingCipher(e.login):this.initNewCipher(),this.isPartialEdit&&this.autofillOptionsForm.disable()}initFromExistingCipher(e){var t,i,n;null===(t=e.uris)||void 0===t||t.forEach(e=>{this.addUri({uri:e.uri,matchDetection:e.match},!1,!1)}),this.autofillOptionsForm.patchValue({autofillOnPageLoad:e.autofillOnPageLoad}),(null===(i=this.cipherFormContainer.config.initialValues)||void 0===i?void 0:i.loginUri)&&!this.cipherFormContainer.initializedWithCachedCipher()&&-1===(null===(n=e.uris)||void 0===n?void 0:n.findIndex(e=>e.uri===this.cipherFormContainer.config.initialValues.loginUri))&&this.addUri({uri:this.cipherFormContainer.config.initialValues.loginUri,matchDetection:null})}initNewCipher(){var e,t;this.addUri({uri:null!==(t=null===(e=this.cipherFormContainer.config.initialValues)||void 0===e?void 0:e.loginUri)&&void 0!==t?t:null,matchDetection:null}),this.autofillOptionsForm.patchValue({autofillOnPageLoad:null})}updateDefaultAutofillLabel(){this.autofillSettingsService.autofillOnPageLoadDefault$.pipe((0,he.pQ)()).subscribe(e=>{const t=this.autofillOptions.find(t=>t.value===e);t&&(this.autofillOptions[0].label=this.i18nService.t("defaultLabelWithValue",t.label),this.autofillOptions=[...this.autofillOptions])})}addUri(e={uri:null,matchDetection:null},t=!1,i=!0){this.autofillOptionsForm.controls.uris.push(this.formBuilder.control(e),{emitEvent:i}),t&&this.focusOnNewInput$.next()}removeUri(e){this.autofillOptionsForm.controls.uris.removeAt(e)}updateUriFields(){this.cipherFormContainer.patchCipher(e=>(e.login.uris=this.uriControls.map(e=>{var t;return Object.assign(new To.z,{uri:e.value.uri,match:null!==(t=e.value.matchDetection)&&void 0!==t?t:null})}),e))}onUriItemDrop(e){(0,cs.HD)(this.uriControls,e.previousIndex,e.currentIndex),this.updateUriFields()}onUriItemKeydown(e,t){return qo(this,void 0,void 0,function*(){"ArrowUp"===e.key&&0!==t&&(yield this.reorderUriItems(e,t,"Up")),"ArrowDown"===e.key&&t!==this.uriControls.length-1&&(yield this.reorderUriItems(e,t,"Down"))})}reorderUriItems(e,t,i){return qo(this,void 0,void 0,function*(){const n=t+("Up"===i?-1:1);e.preventDefault(),yield this.liveAnnouncer.announce(this.i18nService.t(`reorderField${i}`,this.i18nService.t("websiteUri"),n+1,this.uriControls.length),"assertive"),(0,cs.HD)(this.uriControls,t,n),this.updateUriFields(),requestAnimationFrame(()=>{e.target.focus()})})}}na.ɵfac=function(e){return new(e||na)(w.rXU(ss),w.rXU(g.ok),w.rXU(S.W),w.rXU(bs.Ai),w.rXU(Ro.V),w.rXU(ko.h),w.rXU(E.y),w.rXU(He.w))},na.ɵcmp=w.VBU({type:na,selectors:[["vault-autofill-options"]],viewQuery:function(e,t){if(1&e&&w.GBs(Ko,5),2&e){let e;w.mGM(e=w.lsd())&&(t.uriOptions=e)}},decls:12,vars:8,consts:[["addUriMenu",""],[1,"tw-mb-5","bit-compact:tw-mb-4",3,"formGroup"],["bitTypography","h6"],["cdkDropList","",3,"cdkDropListDropped"],["formArrayName","uris"],["cdkDrag","",3,"cdkDragDisabled","formControlName","canReorder","canRemove","defaultMatchDetection","index","showAppLabel"],["disableMargin",""],["cdkDrag","",3,"remove","onKeydown","cdkDragDisabled","formControlName","canReorder","canRemove","defaultMatchDetection","index","showAppLabel"],["type","button","bitLink","","linkType","primary","startIcon","bwi-plus",3,"tw-mb-6"],["type","button","bitLink","","linkType","primary","startIcon","bwi-plus",3,"bitMenuTriggerFor"],["type","button","bitMenuItem","",3,"click"],["type","button","bitLink","","linkType","primary","startIcon","bwi-plus",3,"click"],["formControlName","autofillOnPageLoad",3,"items"]],template:function(e,t){1&e&&(w.j41(0,"section",1)(1,"bit-section-header")(2,"h2",2),w.EFF(3),w.nI1(4,"i18n"),w.k0s()(),w.j41(5,"bit-card",3),w.bIt("cdkDropListDropped",function(e){return t.onUriItemDrop(e)}),w.qex(6,4),w.Z7z(7,$o,2,9,"vault-autofill-uri-option",5,w.Vm6),w.bVm(),w.nVh(9,ta,2,1),w.nVh(10,ia,5,4,"bit-form-field",6),w.nI1(11,"async"),w.k0s()()),2&e&&(w.Y8G("formGroup",t.autofillOptionsForm),w.R7$(3),w.SpI(" ",w.bMT(4,4,"autofillOptions")," "),w.R7$(4),w.Dyx(t.uriControls),w.R7$(2),w.vxM(t.autofillOptionsForm.enabled?9:-1),w.R7$(),w.vxM(w.bMT(11,6,t.autofillOnPageLoadEnabled$)?10:-1))},dependencies:[cs.ad,cs.O7,cs.T1,Ve.U,Pe.E,Oe.r,v.p,Me.i,g.X1,g.BC,g.cb,g.j4,g.JD,g.v8,C.L,G.j,O.h,rs.p,hs.w,I.Q,Ko,zi.V,De.g,Do.M,Zo.Z,Ho.O,Jo.S,X.$,ve.Jj],encapsulation:2});var ra=i(72331);class sa{}var oa=i(62044),aa=i(63581),la=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function ca(e,t){if(1&e&&(w.nrm(0,"button",4),w.nI1(1,"i18n")),2&e){const e=w.XpG();w.Y8G("label",w.bMT(1,2,"generateUsername"))("bitAction",e.generateUsername)}}function da(e,t){1&e&&(w.qex(0),w.EFF(1),w.nI1(2,"i18n"),w.bVm()),2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,1,"securePasswordGenerated")," "))}function ua(e,t){1&e&&(w.qex(0),w.j41(1,"span",16),w.EFF(2),w.nI1(3,"i18n"),w.nI1(4,"i18n"),w.k0s(),w.j41(5,"span",17),w.EFF(6),w.nI1(7,"i18n"),w.nrm(8,"i",18),w.EFF(9),w.nI1(10,"i18n"),w.k0s(),w.bVm()),2&e&&(w.R7$(2),w.Lme(" ",w.bMT(3,4,"useGeneratorHelpTextPartOne")," ",w.bMT(4,6,"useGeneratorHelpTextPartTwo")," "),w.R7$(4),w.SpI(" ",w.bMT(7,8,"useGeneratorHelpTextPartOne")," "),w.R7$(3),w.SpI(" ",w.bMT(10,10,"useGeneratorHelpTextPartTwo")," "))}function ha(e,t){if(1&e&&(w.j41(0,"bit-hint"),w.nVh(1,da,3,3,"ng-container")(2,ua,11,12,"ng-container"),w.k0s()),2&e){const e=w.XpG();w.R7$(),w.vxM(e.newPasswordGenerated?1:2)}}function Aa(e,t){if(1&e&&(w.nrm(0,"button",6),w.nI1(1,"i18n")),2&e){const e=w.XpG();w.Y8G("label",w.bMT(1,2,"checkPassword"))("bitAction",e.checkPassword)}}function pa(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",19),w.bIt("toggledChange",function(t){a.eBV(e);const i=w.XpG();return a.Njj(i.logVisibleEvent(t,i.EventType.Cipher_ClientToggledPasswordVisible))}),w.k0s()}}function ga(e,t){if(1&e&&(w.nrm(0,"button",8),w.nI1(1,"i18n")),2&e){const e=w.XpG();w.Y8G("label",w.bMT(1,2,"generatePassword"))("bitAction",e.generatePassword)}}function va(e,t){if(1&e&&(w.nrm(0,"button",21),w.nI1(1,"i18n")),2&e){const e=w.XpG(2);w.Y8G("bitAction",e.removePasskey)("label",w.bMT(1,2,"removePasskey"))}}function ma(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",20),w.nVh(5,va,2,4,"button",21),w.k0s()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,3,"typePasskey")),w.R7$(2),w.Y8G("value",e.fido2CredentialCreationDateValue),w.R7$(),w.vxM(e.loginDetailsForm.enabled&&e.viewHiddenFields?5:-1)}}function fa(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",22),w.bIt("toggledChange",function(t){a.eBV(e);const i=w.XpG();return a.Njj(i.logVisibleEvent(t,i.EventType.Cipher_ClientToggledTOTPSeedVisible))}),w.k0s()}}function ya(e,t){if(1&e&&(w.nrm(0,"button",15),w.nI1(1,"i18n")),2&e){const e=w.XpG();w.Y8G("bitAction",e.captureTotp)("label",w.bMT(1,2,"totpCapture"))}}class ba{get canCaptureTotp(){var e;return!!(null===(e=this.totpCaptureService)||void 0===e?void 0:e.canCaptureTotp(window))&&this.loginDetailsForm.controls.totp.enabled}get hasPasskey(){return null!=this.existingFido2Credentials&&this.existingFido2Credentials.length>0}get fido2CredentialCreationDateValue(){var e,t;return`${this.i18nService.t("dateCreated")} ${this.datePipe.transform(null===(t=null===(e=this.existingFido2Credentials)||void 0===e?void 0:e[0])||void 0===t?void 0:t.creationDate,"short")}`}get viewHiddenFields(){return!this.cipherFormContainer.originalCipherView||this.cipherFormContainer.originalCipherView.viewPassword}get initialValues(){return this.cipherFormContainer.config.initialValues}constructor(e,t,i,n,s,o,l,c){this.cipherFormContainer=e,this.formBuilder=t,this.i18nService=i,this.generationService=n,this.auditService=s,this.toastService=o,this.eventCollectionService=l,this.totpCaptureService=c,this.EventType=J.Bx,this.loginDetailsForm=this.formBuilder.group({username:[""],password:[""],totp:[""]}),this.datePipe=(0,a.WQX)(ve.vh),this.destroyRef=(0,a.WQX)(a.abz),this.logVisibleEvent=(e,t)=>la(this,void 0,void 0,function*(){const{mode:i,originalCipher:n}=this.cipherFormContainer.config,r=["edit","partial-edit"].includes(i);e&&r&&n&&(yield this.eventCollectionService.collect(t,n.id,!1,n.organizationId))}),this.captureTotp=()=>la(this,void 0,void 0,function*(){if(this.canCaptureTotp)try{const e=yield this.totpCaptureService.captureTotpSecret();e&&(this.loginDetailsForm.controls.totp.patchValue(e),this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("totpCaptureSuccess")}))}catch(e){this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:this.i18nService.t("totpCaptureError")})}}),this.removePasskey=()=>la(this,void 0,void 0,function*(){this.existingFido2Credentials=null,this.cipherFormContainer.patchCipher(e=>(e.login.fido2Credentials=null,e))}),this.generatePassword=()=>la(this,void 0,void 0,function*(){const e=yield this.generationService.generatePassword();e&&(this.loginDetailsForm.controls.password.patchValue(e),this.newPasswordGenerated=!0)}),this.generateUsername=()=>la(this,void 0,void 0,function*(){const e=yield this.generationService.generateUsername(this.cipherFormContainer.website);e&&this.loginDetailsForm.controls.username.patchValue(e)}),this.checkPassword=()=>la(this,void 0,void 0,function*(){const e=this.loginDetailsForm.controls.password.value;if(null==e||""===e)return;const t=yield this.auditService.passwordLeaked(e);t>0?this.toastService.showToast({variant:"warning",title:null,message:this.i18nService.t("passwordExposed",t.toString())}):this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("passwordSafe")})}),this.cipherFormContainer.registerChildForm("loginDetails",this.loginDetailsForm),this.loginDetailsForm.valueChanges.pipe((0,he.pQ)(),(0,r.T)(()=>this.loginDetailsForm.getRawValue())).subscribe(e=>{this.cipherFormContainer.patchCipher(t=>{var i;return Object.assign(t.login,{username:e.username,password:e.password,totp:null===(i=e.totp)||void 0===i?void 0:i.trim()}),t})})}ngOnInit(){const e=this.cipherFormContainer.getInitialCipherView();e?this.initFromExistingCipher(e.login):this.initNewCipher(),"partial-edit"===this.cipherFormContainer.config.mode&&this.loginDetailsForm.disable(),this.cipherFormContainer.formStatusChange$.pipe((0,he.pQ)(this.destroyRef)).subscribe(e=>{"enabled"===e&&(this.viewHiddenFields||(this.loginDetailsForm.controls.password.disable(),this.loginDetailsForm.controls.totp.disable()))})}initFromExistingCipher(e){var t,i,n,r;this.loginDetailsForm.patchValue({username:null!==(i=null===(t=this.initialValues)||void 0===t?void 0:t.username)&&void 0!==i?i:e.username,password:null!==(r=null===(n=this.initialValues)||void 0===n?void 0:n.password)&&void 0!==r?r:e.password,totp:e.totp}),"clone"!=this.cipherFormContainer.config.mode&&(this.existingFido2Credentials=e.fido2Credentials),this.viewHiddenFields||(this.loginDetailsForm.controls.password.disable(),this.loginDetailsForm.controls.totp.disable())}initNewCipher(){var e,t;this.loginDetailsForm.patchValue({username:(null===(e=this.initialValues)||void 0===e?void 0:e.username)||"",password:(null===(t=this.initialValues)||void 0===t?void 0:t.password)||""})}}ba.ɵfac=function(e){return new(e||ba)(w.rXU(ss),w.rXU(g.ok),w.rXU(S.W),w.rXU(ts),w.rXU(ra.d),w.rXU(k.f),w.rXU(J.c_),w.rXU(sa,8))},ba.ɵcmp=w.VBU({type:ba,selectors:[["vault-login-details-section"]],decls:38,vars:31,consts:[["totpPopover",""],[1,"tw-mb-5","bit-compact:tw-mb-4",3,"formGroup"],["bitTypography","h6"],["bitInput","","formControlName","username"],["type","button","bitIconButton","bwi-generate","bitSuffix","","data-testid","generate-username-button",3,"label","bitAction"],["bitInput","","formControlName","password","type","password",1,"tw-font-mono"],["type","button","bitIconButton","bwi-check-circle","bitSuffix","","data-testid","check-password-button",3,"label","bitAction"],["type","button","bitIconButton","","bitSuffix","","data-testid","toggle-password-visibility","bitPasswordInputToggle",""],["type","button","bitIconButton","bwi-generate","bitSuffix","","data-testid","generate-password-button",3,"label","bitAction"],["disableMargin",""],["bitLink","","type","button","slot","end","startIcon","bwi-question-circle",3,"bitPopoverTriggerFor","appA11yTitle"],[3,"title"],[1,"tw-mb-0"],["bitInput","","formControlName","totp","type","password",1,"tw-font-mono"],["type","button","bitIconButton","","bitSuffix","","data-testid","toggle-totp-visibility","bitPasswordInputToggle",""],["type","button","bitIconButton","bwi-camera","bitSuffix","","data-testid","capture-totp-button",3,"bitAction","label"],[1,"tw-sr-only"],["aria-hidden","true"],["aria-hidden","true",1,"bwi","bwi-generate"],["type","button","bitIconButton","","bitSuffix","","data-testid","toggle-password-visibility","bitPasswordInputToggle","",3,"toggledChange"],["bitInput","","readonly","","data-testid","passkey-field",3,"value"],["type","button","bitIconButton","bwi-minus-circle","buttonType","dangerGhost","bitSuffix","","data-testid","remove-passkey-button",3,"bitAction","label"],["type","button","bitIconButton","","bitSuffix","","data-testid","toggle-totp-visibility","bitPasswordInputToggle","",3,"toggledChange"]],template:function(e,t){if(1&e&&(w.j41(0,"section",1)(1,"bit-section-header")(2,"h2",2),w.EFF(3),w.nI1(4,"i18n"),w.k0s()(),w.j41(5,"bit-card")(6,"bit-form-field")(7,"bit-label"),w.EFF(8),w.nI1(9,"i18n"),w.k0s(),w.nrm(10,"input",3),w.nVh(11,ca,2,4,"button",4),w.k0s(),w.j41(12,"bit-form-field")(13,"bit-label"),w.EFF(14),w.nI1(15,"i18n"),w.k0s(),w.nrm(16,"input",5),w.nVh(17,ha,3,1,"bit-hint"),w.nVh(18,Aa,2,4,"button",6),w.nVh(19,pa,1,0,"button",7),w.nVh(20,ga,2,4,"button",8),w.k0s(),w.nVh(21,ma,6,5,"bit-form-field"),w.j41(22,"bit-form-field",9)(23,"bit-label"),w.EFF(24),w.nI1(25,"i18n"),w.nrm(26,"button",10),w.nI1(27,"i18n"),w.j41(28,"bit-popover",11,0),w.nI1(30,"i18n"),w.j41(31,"p",12),w.EFF(32),w.nI1(33,"i18n"),w.k0s()()(),w.nrm(34,"input",13),w.nVh(35,fa,1,0,"button",14),w.nVh(36,ya,2,4,"button",15),w.k0s()()(),w.nrm(37,"vault-autofill-options")),2&e){const e=w.sdS(29);w.Y8G("formGroup",t.loginDetailsForm),w.R7$(3),w.SpI(" ",w.bMT(4,17,"loginCredentials")," "),w.R7$(5),w.JRh(w.bMT(9,19,"username")),w.R7$(3),w.vxM(t.loginDetailsForm.controls.username.enabled?11:-1),w.R7$(3),w.JRh(w.bMT(15,21,"password")),w.R7$(3),w.vxM(t.loginDetailsForm.controls.password.enabled?17:-1),w.R7$(),w.vxM(t.loginDetailsForm.controls.password.enabled&&(null==t.loginDetailsForm.controls.password.value?null:t.loginDetailsForm.controls.password.value.length)>0?18:-1),w.R7$(),w.vxM(t.viewHiddenFields?19:-1),w.R7$(),w.vxM(t.loginDetailsForm.controls.password.enabled?20:-1),w.R7$(),w.vxM(t.hasPasskey?21:-1),w.R7$(3),w.SpI(" ",w.bMT(25,23,"authenticatorKey")," "),w.R7$(2),w.Y8G("bitPopoverTriggerFor",e)("appA11yTitle",w.bMT(27,25,"learnMoreAboutAuthenticators")),w.R7$(2),w.Y8G("title",w.bMT(30,27,"totpHelperTitle")),w.R7$(4),w.SpI(" ",w.bMT(33,29,t.canCaptureTotp?"totpHelperWithCapture":"totpHelper")," "),w.R7$(3),w.vxM(t.viewHiddenFields?35:-1),w.R7$(),w.vxM(t.canCaptureTotp?36:-1)}},dependencies:[g.X1,g.me,g.BC,g.cb,g.j4,g.JD,Ve.U,Pe.E,Oe.r,v.p,Pr.C,Me.i,C.L,G.j,ln.I,U.J,O.h,N.e,j.a,I.Q,Y.s,f.C,qe.p,Eo.k,oa.r,aa.k,na,zi.V,De.g,X.$],encapsulation:2});var Ca=i(406),Ia=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function wa(e,t){if(1&e&&(w.j41(0,"strong"),w.EFF(1),w.k0s()),2&e){const e=w.XpG(2);w.R7$(),w.JRh(e.nudgeBodyBold)}}function Ba(e,t){if(1&e&&w.EFF(0),2&e){const e=w.XpG(2);w.SpI(" ",e.nudgeBodySuffix," ")}}function Ea(e,t){if(1&e&&(w.j41(0,"a",2),w.EFF(1),w.k0s()),2&e){const e=w.XpG(2);w.Y8G("href",e.nudgeBodyLinkUrl,w.B4B),w.R7$(),w.JRh(e.nudgeBodyLinkText)}}function Sa(e,t){if(1&e){const e=w.RV6();w.j41(0,"bit-callout",1),w.bIt("dismiss",function(){a.eBV(e);const t=w.XpG();return a.Njj(t.dismissNewItemSpotlight())}),w.EFF(1),w.nVh(2,wa,2,1,"strong"),w.nVh(3,Ba,1,1),w.nVh(4,Ea,2,2,"a",2),w.k0s()}if(2&e){const e=w.XpG();w.Y8G("title",e.nudgeTitle)("icon",null),w.R7$(),w.SpI(" ",e.nudgeBody," "),w.R7$(),w.vxM(e.nudgeBodyBold?2:-1),w.R7$(),w.vxM(e.nudgeBodySuffix?3:-1),w.R7$(),w.vxM(e.nudgeBodyLinkUrl?4:-1)}}class Qa{constructor(e,t,i){this.i18nService=e,this.accountService=t,this.nudgesService=i,this.configType=ue.hFB.required(),this.activeUserId$=this.accountService.activeAccount$.pipe(m.F6),this.showNewItemSpotlight$=(0,n.z)([this.activeUserId$,(0,he.br)(this.configType)]).pipe((0,fe.n)(([e,t])=>{if(null==t)return(0,ye.of)(!1);const i=this.mapToNudgeType(t);return i?this.nudgesService.showNudgeSpotlight$(i,e):(0,ye.of)(!1)})),this.nudgeTitle="",this.nudgeBody="",this.nudgeBodyBold="",this.nudgeBodySuffix="",this.nudgeBodyLinkText="",this.nudgeBodyLinkUrl="",this.dismissalNudgeType=null}mapToNudgeType(e){switch(this.nudgeBodyBold="",this.nudgeBodySuffix="",this.nudgeBodyLinkText="",this.nudgeBodyLinkUrl="",e){case We.CipherType.Login:return this.dismissalNudgeType=Ca.mo.NewLoginItemStatus,this.nudgeTitle=this.i18nService.t("newLoginNudgeTitle"),this.nudgeBody=this.i18nService.t("newLoginNudgeBodyOne"),this.nudgeBodyBold=this.i18nService.t("newLoginNudgeBodyBold"),this.nudgeBodySuffix=this.i18nService.t("newLoginNudgeBodyTwo"),Ca.mo.NewLoginItemStatus;case We.CipherType.Card:return this.dismissalNudgeType=Ca.mo.NewCardItemStatus,this.nudgeTitle=this.i18nService.t("newCardNudgeTitle"),this.nudgeBody=this.i18nService.t("newCardNudgeBody"),Ca.mo.NewCardItemStatus;case We.CipherType.Identity:return this.dismissalNudgeType=Ca.mo.NewIdentityItemStatus,this.nudgeTitle=this.i18nService.t("newIdentityNudgeTitle"),this.nudgeBody=this.i18nService.t("newIdentityNudgeBody"),Ca.mo.NewIdentityItemStatus;case We.CipherType.SecureNote:return this.dismissalNudgeType=Ca.mo.NewNoteItemStatus,this.nudgeTitle=this.i18nService.t("newNoteNudgeTitle"),this.nudgeBody=this.i18nService.t("newNoteNudgeBody"),Ca.mo.NewNoteItemStatus;case We.CipherType.SshKey:return this.dismissalNudgeType=Ca.mo.NewSshItemStatus,this.nudgeTitle=this.i18nService.t("newSshNudgeTitle"),this.nudgeBody=this.i18nService.t("newSshNudgeBodyOne"),this.nudgeBodyLinkText=this.i18nService.t("newSshNudgeBodyTwo"),this.nudgeBodyLinkUrl="https://bitwarden.com/help/ssh-agent",Ca.mo.NewSshItemStatus;default:return null}}dismissNewItemSpotlight(){return Ia(this,void 0,void 0,function*(){const e=yield(0,h._)(this.activeUserId$);this.dismissalNudgeType&&e&&(yield this.nudgesService.dismissNudge(this.dismissalNudgeType,e),this.showNewItemSpotlight$=(0,ye.of)(!1))})}}Qa.ɵfac=function(e){return new(e||Qa)(w.rXU(S.W),w.rXU(R.D),w.rXU(Ca.u6))},Qa.ɵcmp=w.VBU({type:Qa,selectors:[["vault-new-item-nudge"]],inputs:{configType:[1,"configType"]},decls:2,vars:3,consts:[[3,"title","icon"],[3,"dismiss","title","icon"],["target","_blank","rel","noopener noreferrer",1,"tw-text-primary-600","tw-font-medium",3,"href"]],template:function(e,t){1&e&&(w.nVh(0,Sa,5,6,"bit-callout",0),w.nI1(1,"async")),2&e&&w.vxM(w.bMT(1,1,t.showNewItemSpotlight$)?0:-1)},dependencies:[Fe.j,rr.G,ve.Jj],encapsulation:2});var ka=i(75252);class Ra{constructor(e,t){this.cipherFormContainer=e,this.formBuilder=t,this.originalCipherView=(0,ue.hFB)(null),this.disabled=(0,ue.hFB)(!1),this.destroyRef=(0,a.WQX)(a.abz),this.passportForm=this.formBuilder.group({surname:[""],givenName:[""],dateOfBirth:[""],sex:[""],birthPlace:[""],nationality:[""],issuingCountry:[""],passportNumber:[""],passportType:[""],nationalIdentificationNumber:[""],issuingAuthority:[""],issueDate:[""],expirationDate:[""]}),this.cipherFormContainer.registerChildForm("passportDetails",this.passportForm),this.passportForm.valueChanges.pipe((0,he.pQ)()).subscribe(e=>this.updateCipherFromFormValue(e))}ngOnInit(){var e,t;const i=this.cipherFormContainer.getInitialCipherView(),n=null!==(e=null==i?void 0:i.passport)&&void 0!==e?e:null===(t=this.originalCipherView())||void 0===t?void 0:t.passport;n&&this.passportForm.patchValue({surname:n.surname,givenName:n.givenName,dateOfBirth:n.dateOfBirth,sex:n.sex,birthPlace:n.birthPlace,nationality:n.nationality,issuingCountry:n.issuingCountry,passportNumber:n.passportNumber,passportType:n.passportType,nationalIdentificationNumber:n.nationalIdentificationNumber,issuingAuthority:n.issuingAuthority,issueDate:n.issueDate,expirationDate:n.expirationDate}),this.disabled()&&this.passportForm.disable(),this.cipherFormContainer.formStatusChange$.pipe((0,he.pQ)(this.destroyRef)).subscribe(e=>{"disabled"===e||this.disabled()?this.passportForm.disable():this.passportForm.enable()})}updateCipherFromFormValue(e){const t=new ka.U;t.surname=e.surname,t.givenName=e.givenName,t.dateOfBirth=e.dateOfBirth,t.sex=e.sex,t.birthPlace=e.birthPlace,t.nationality=e.nationality,t.issuingCountry=e.issuingCountry,t.passportNumber=e.passportNumber,t.passportType=e.passportType,t.nationalIdentificationNumber=e.nationalIdentificationNumber,t.issuingAuthority=e.issuingAuthority,t.issueDate=e.issueDate,t.expirationDate=e.expirationDate,this.cipherFormContainer.patchCipher(e=>(e.passport=t,e))}}Ra.ɵfac=function(e){return new(e||Ra)(w.rXU(ss),w.rXU(g.ok))},Ra.ɵcmp=w.VBU({type:Ra,selectors:[["vault-passport-section"]],inputs:{originalCipherView:[1,"originalCipherView"],disabled:[1,"disabled"]},decls:70,vars:61,consts:[[1,"tw-mb-5","bit-compact:tw-mb-4",3,"formGroup"],["bitTypography","h6"],["bitInput","","formControlName","givenName","data-testid","given-name"],["bitInput","","formControlName","surname","data-testid","surname"],["formControlName","dateOfBirth",3,"monthLabel","dayLabel","yearLabel"],["bitInput","","formControlName","sex","data-testid","sex"],["bitInput","","formControlName","birthPlace","data-testid","birth-place"],["bitInput","","formControlName","nationality","data-testid","nationality"],["bitInput","","formControlName","passportNumber","type","password","data-testid","passport-number",1,"tw-font-mono"],["type","button","bitIconButton","","bitSuffix","","bitPasswordInputToggle",""],["bitInput","","formControlName","passportType","data-testid","passport-type"],["bitInput","","formControlName","nationalIdentificationNumber","type","password","data-testid","national-identification-number",1,"tw-font-mono"],["bitInput","","formControlName","issuingCountry","data-testid","issuing-country"],["bitInput","","formControlName","issuingAuthority","data-testid","issuing-authority"],["formControlName","issueDate",3,"monthLabel","dayLabel","yearLabel"],["formControlName","expirationDate",3,"monthLabel","dayLabel","yearLabel"]],template:function(e,t){1&e&&(w.j41(0,"section",0)(1,"bit-section-header")(2,"h2",1),w.EFF(3),w.nI1(4,"i18n"),w.k0s()(),w.j41(5,"bit-card")(6,"bit-form-field")(7,"bit-label"),w.EFF(8),w.nI1(9,"i18n"),w.k0s(),w.nrm(10,"input",2),w.k0s(),w.j41(11,"bit-form-field")(12,"bit-label"),w.EFF(13),w.nI1(14,"i18n"),w.k0s(),w.nrm(15,"input",3),w.k0s(),w.nrm(16,"vault-date-field-group",4),w.nI1(17,"i18n"),w.nI1(18,"i18n"),w.nI1(19,"i18n"),w.j41(20,"bit-form-field")(21,"bit-label"),w.EFF(22),w.nI1(23,"i18n"),w.k0s(),w.nrm(24,"input",5),w.k0s(),w.j41(25,"bit-form-field")(26,"bit-label"),w.EFF(27),w.nI1(28,"i18n"),w.k0s(),w.nrm(29,"input",6),w.k0s(),w.j41(30,"bit-form-field")(31,"bit-label"),w.EFF(32),w.nI1(33,"i18n"),w.k0s(),w.nrm(34,"input",7),w.k0s(),w.j41(35,"bit-form-field")(36,"bit-label"),w.EFF(37),w.nI1(38,"i18n"),w.k0s(),w.nrm(39,"input",8)(40,"button",9),w.k0s(),w.j41(41,"bit-form-field")(42,"bit-label"),w.EFF(43),w.nI1(44,"i18n"),w.k0s(),w.nrm(45,"input",10),w.k0s(),w.j41(46,"bit-form-field")(47,"bit-label"),w.EFF(48),w.nI1(49,"i18n"),w.k0s(),w.nrm(50,"input",11)(51,"button",9),w.k0s(),w.j41(52,"bit-form-field")(53,"bit-label"),w.EFF(54),w.nI1(55,"i18n"),w.k0s(),w.nrm(56,"input",12),w.k0s(),w.j41(57,"bit-form-field")(58,"bit-label"),w.EFF(59),w.nI1(60,"i18n"),w.k0s(),w.nrm(61,"input",13),w.k0s(),w.nrm(62,"vault-date-field-group",14),w.nI1(63,"i18n"),w.nI1(64,"i18n"),w.nI1(65,"i18n"),w.nrm(66,"vault-date-field-group",15),w.nI1(67,"i18n"),w.nI1(68,"i18n"),w.nI1(69,"i18n"),w.k0s()()),2&e&&(w.Y8G("formGroup",t.passportForm),w.R7$(3),w.SpI(" ",w.bMT(4,21,"passportDetails")," "),w.R7$(5),w.JRh(w.bMT(9,23,"firstName")),w.R7$(5),w.JRh(w.bMT(14,25,"lastName")),w.R7$(3),w.Y8G("monthLabel",w.bMT(17,27,"birthMonth"))("dayLabel",w.bMT(18,29,"birthDay"))("yearLabel",w.bMT(19,31,"birthYear")),w.R7$(6),w.JRh(w.bMT(23,33,"sex")),w.R7$(5),w.JRh(w.bMT(28,35,"birthPlace")),w.R7$(5),w.JRh(w.bMT(33,37,"nationality")),w.R7$(5),w.JRh(w.bMT(38,39,"passportNumber")),w.R7$(6),w.JRh(w.bMT(44,41,"passportType")),w.R7$(5),w.JRh(w.bMT(49,43,"nationalIdentificationNumber")),w.R7$(6),w.JRh(w.bMT(55,45,"issuingCountry")),w.R7$(5),w.JRh(w.bMT(60,47,"issuingAuthority")),w.R7$(3),w.Y8G("monthLabel",w.bMT(63,49,"issueMonth"))("dayLabel",w.bMT(64,51,"issueDay"))("yearLabel",w.bMT(65,53,"issueYear")),w.R7$(4),w.Y8G("monthLabel",w.bMT(67,55,"expirationMonth"))("dayLabel",w.bMT(68,57,"expirationDay"))("yearLabel",w.bMT(69,59,"expirationYear")))},dependencies:[ve.MD,Me.i,Pe.E,Oe.r,C.L,G.j,U.J,O.h,N.e,j.a,g.X1,g.me,g.BC,g.cb,g.j4,g.JD,Ve.U,I.Q,Y.s,v.p,eo,X.$],encapsulation:2,changeDetection:0});var Fa=i(72142);class Ta{}var Da=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function Pa(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",7),w.nI1(1,"i18n"),w.bIt("click",function(){a.eBV(e);const t=w.XpG();return a.Njj(t.importSshKeyFromClipboard())}),w.k0s()}2&e&&w.Y8G("label",w.mNQ(w.bMT(1,2,"importSshKeyFromClipboard")))}class Ma{constructor(e,t,i,n,r){this.cipherFormContainer=e,this.formBuilder=t,this.sdkService=i,this.sshImportPromptService=n,this.platformUtilsService=r,this.originalCipherView=(0,ue.hFB)(null),this.sshKeyForm=this.formBuilder.group({privateKey:[""],publicKey:[""],keyFingerprint:[""]}),this.showImport=(0,me.EW)(()=>this.platformUtilsService.getClientType()!==Fo.sK.Web&&(null==this.originalCipherView()||this.originalCipherView().edit)),this.cipherFormContainer.registerChildForm("sshKeyDetails",this.sshKeyForm),this.sshKeyForm.valueChanges.pipe((0,he.pQ)()).subscribe(e=>{const t=new Fa.H;t.privateKey=e.privateKey,t.publicKey=e.publicKey,t.keyFingerprint=e.keyFingerprint,this.cipherFormContainer.patchCipher(e=>(e.sshKey=t,e))})}ngOnInit(){return Da(this,void 0,void 0,function*(){var e,t;const i=this.cipherFormContainer.getInitialCipherView(),n=null!==(e=null==i?void 0:i.sshKey)&&void 0!==e?e:null===(t=this.originalCipherView())||void 0===t?void 0:t.sshKey;n?this.setInitialValues(n):yield this.generateSshKey()})}setInitialValues(e){const{privateKey:t,publicKey:i,keyFingerprint:n}=e;this.sshKeyForm.setValue({privateKey:t,publicKey:i,keyFingerprint:n})}importSshKeyFromClipboard(){return Da(this,void 0,void 0,function*(){const e=yield this.sshImportPromptService.importSshKeyFromClipboard();null!=e&&this.sshKeyForm.setValue({privateKey:e.privateKey,publicKey:e.publicKey,keyFingerprint:e.keyFingerprint})})}generateSshKey(){return Da(this,void 0,void 0,function*(){yield(0,h._)(this.sdkService.client$);const e=(0,We.generate_ssh_key)("Ed25519");this.sshKeyForm.setValue({privateKey:e.privateKey,publicKey:e.publicKey,keyFingerprint:e.fingerprint})})}}Ma.ɵfac=function(e){return new(e||Ma)(w.rXU(ss),w.rXU(g.ok),w.rXU(q.K5),w.rXU(Ta),w.rXU(E.y))},Ma.ɵcmp=w.VBU({type:Ma,selectors:[["vault-sshkey-section"]],inputs:{originalCipherView:[1,"originalCipherView"]},decls:23,vars:14,consts:[[1,"tw-mb-5","bit-compact:tw-mb-4",3,"formGroup"],["bitTypography","h6"],["id","privateKey","bitInput","","formControlName","privateKey","type","password","readonly",""],["type","button","bitIconButton","","bitSuffix","","data-testid","toggle-privateKey-visibility","bitPasswordInputToggle",""],["type","button","bitIconButton","bwi-import","bitSuffix","","data-testid","import-privateKey",3,"label"],["id","publicKey","bitInput","","formControlName","publicKey","readonly",""],["id","keyFingerprint","bitInput","","formControlName","keyFingerprint","readonly",""],["type","button","bitIconButton","bwi-import","bitSuffix","","data-testid","import-privateKey",3,"click","label"]],template:function(e,t){1&e&&(w.j41(0,"section",0)(1,"bit-section-header")(2,"h2",1),w.EFF(3),w.nI1(4,"i18n"),w.k0s()(),w.j41(5,"bit-card")(6,"bit-form-field")(7,"bit-label"),w.EFF(8),w.nI1(9,"i18n"),w.k0s(),w.nrm(10,"input",2)(11,"button",3),w.nVh(12,Pa,2,4,"button",4),w.k0s(),w.j41(13,"bit-form-field")(14,"bit-label"),w.EFF(15),w.nI1(16,"i18n"),w.k0s(),w.nrm(17,"input",5),w.k0s(),w.j41(18,"bit-form-field")(19,"bit-label"),w.EFF(20),w.nI1(21,"i18n"),w.k0s(),w.nrm(22,"input",6),w.k0s()()()),2&e&&(w.Y8G("formGroup",t.sshKeyForm),w.R7$(3),w.SpI(" ",w.bMT(4,6,"typeSshKey")," "),w.R7$(5),w.JRh(w.bMT(9,8,"sshPrivateKey")),w.R7$(4),w.vxM(t.showImport()?12:-1),w.R7$(3),w.JRh(w.bMT(16,10,"sshPublicKey")),w.R7$(5),w.JRh(w.bMT(21,12,"sshFingerprint")))},dependencies:[Me.i,Pe.E,Oe.r,C.L,G.j,U.J,O.h,N.e,j.a,g.X1,g.me,g.BC,g.cb,g.j4,g.JD,rs.p,Ve.U,I.Q,Y.s,v.p,ve.MD,X.$],encapsulation:2});var xa=i(92411),Va=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Ga=[[["","slot","attachment-button"]]];function Ua(e,t){if(1&e&&w.nrm(0,"vault-new-item-nudge",0),2&e){const e=w.XpG();w.Y8G("configType",e.config.cipherType)}}function Oa(e,t){1&e&&w.nrm(0,"vault-login-details-section")}function Na(e,t){if(1&e&&w.nrm(0,"vault-identity-section",3),2&e){const e=w.XpG(2);w.Y8G("disabled","partial-edit"===e.config.mode)("originalCipherView",e.originalCipherView)}}function ja(e,t){if(1&e&&w.nrm(0,"vault-card-details-section",4),2&e){const e=w.XpG(2);w.Y8G("originalCipherView",e.originalCipherView)("disabled","partial-edit"===e.config.mode)}}function Ya(e,t){if(1&e&&w.nrm(0,"vault-sshkey-section",5),2&e){const e=w.XpG(2);w.Y8G("originalCipherView",e.originalCipherView)}}function Xa(e,t){if(1&e&&w.nrm(0,"vault-bank-account-section",3),2&e){const e=w.XpG(2);w.Y8G("disabled","partial-edit"===e.config.mode)("originalCipherView",e.originalCipherView)}}function za(e,t){if(1&e&&w.nrm(0,"vault-drivers-license-section",3),2&e){const e=w.XpG(2);w.Y8G("disabled","partial-edit"===e.config.mode)("originalCipherView",e.originalCipherView)}}function La(e,t){if(1&e&&w.nrm(0,"vault-passport-section",3),2&e){const e=w.XpG(2);w.Y8G("disabled","partial-edit"===e.config.mode)("originalCipherView",e.originalCipherView)}}function Wa(e,t){1&e&&w.SdG(0)}function Ka(e,t){if(1&e&&(w.nrm(0,"vault-item-details-section",2),w.nVh(1,Oa,1,0,"vault-login-details-section"),w.nVh(2,Na,1,2,"vault-identity-section",3),w.nVh(3,ja,1,2,"vault-card-details-section",4),w.nVh(4,Ya,1,1,"vault-sshkey-section",5),w.nVh(5,Xa,1,2,"vault-bank-account-section",3),w.nVh(6,za,1,2,"vault-drivers-license-section",3),w.nVh(7,La,1,2,"vault-passport-section",3),w.nrm(8,"vault-additional-options-section",6),w.nVh(9,Wa,1,0)),2&e){const e=w.XpG();w.Y8G("config",e.config)("originalCipherView",e.originalCipherView),w.R7$(),w.vxM(e.config.cipherType===e.CipherType.Login?1:-1),w.R7$(),w.vxM(e.config.cipherType===e.CipherType.Identity?2:-1),w.R7$(),w.vxM(e.config.cipherType===e.CipherType.Card?3:-1),w.R7$(),w.vxM(e.config.cipherType===e.CipherType.SshKey?4:-1),w.R7$(),w.vxM(e.config.cipherType===e.CipherType.BankAccount?5:-1),w.R7$(),w.vxM(e.config.cipherType===e.CipherType.DriversLicense?6:-1),w.R7$(),w.vxM(e.config.cipherType===e.CipherType.Passport?7:-1),w.R7$(),w.Y8G("disableSectionMargin","edit"!==e.config.mode),w.R7$(),w.vxM("edit"==e.config.mode?9:-1)}}class Za{get website(){var e,t,i,n,r;return null!==(r=null===(n=null===(i=null===(t=null===(e=this.updatedCipherView)||void 0===e?void 0:e.login)||void 0===t?void 0:t.uris)||void 0===i?void 0:i[0])||void 0===n?void 0:n.uri)&&void 0!==r?r:null}ngAfterViewInit(){this.submitBtn&&(this.bitSubmit.loading$.pipe((0,he.pQ)(this.destroyRef)).subscribe(e=>{this.submitBtn.loading.set(e)}),this.bitSubmit.disabled$.pipe((0,he.pQ)(this.destroyRef)).subscribe(e=>{this.submitBtn.disabled.set(e)}))}disableFormFields(){this.cipherForm.disable({emitEvent:!1}),this.formStatusChangeSubject.next("disabled")}enableFormFields(){"disabled"===this.formStatusChangeSubject.getValue()&&(this.cipherForm.enable({emitEvent:!1}),this.formStatusChangeSubject.next("enabled"))}registerChildForm(e,t){this.cipherForm.setControl(e,t)}patchCipher(e){this.updatedCipherView=e(this.updatedCipherView),this.cipherFormCacheService.cacheCipherView(this.updatedCipherView)}getInitialCipherView(){const e=this.cipherFormCacheService.getCachedCipherView();return e&&this.initializedWithCachedCipher()?e:this.originalCipherView}initializedWithCachedCipher(){return this.cipherFormCacheService.initializedWithValue}ngOnChanges(){return Va(this,void 0,void 0,function*(){this._firstInitialized&&(yield this.init())})}ngOnInit(){return Va(this,void 0,void 0,function*(){yield this.init(),this._firstInitialized=!0})}init(){return Va(this,void 0,void 0,function*(){if(this.loading=!0,this.changeDetectorRef.detectChanges(),this.updatedCipherView=new Ye.f,this.originalCipherView=null,this.cipherForm=this.formBuilder.group({}),null!=this.config){if("add"!==this.config.mode){if(null==this.config.originalCipher)throw new Error("Original cipher is required for edit or clone mode");this.originalCipherView=yield this.addEditFormService.decryptCipher(this.config.originalCipher),this.updatedCipherView=yield this.addEditFormService.decryptCipher(this.config.originalCipher),"clone"===this.config.mode&&(this.updatedCipherView.id=null,this.updatedCipherView.key=void 0,this.updatedCipherView.attachments=[],this.updatedCipherView.login&&(this.updatedCipherView.login.fido2Credentials=null))}else this.updatedCipherView.type=this.config.cipherType,this.config.cipherType===p.gC.SecureNote&&(this.updatedCipherView.secureNote.type=p.ak.Generic);this.setInitialCipherFromCache(),this.loading=!1,this.formReadySubject.next()}})}setInitialCipherFromCache(){if(this.config.initialValues&&(void 0!==this.config.initialValues.username||void 0!==this.config.initialValues.password))return void this.cipherFormCacheService.clearCache();const e=this.cipherFormCacheService.getCachedCipherView();if(null===e)return;const t=this.updatedCipherView.id&&this.updatedCipherView.id===e.id,i=!this.updatedCipherView.id&&!e.id&&this.updatedCipherView.type===e.type;(t||i)&&(this.updatedCipherView=e)}constructor(e,t,i,n,r,s,o,l){this.formBuilder=e,this.addEditFormService=t,this.toastService=i,this.i18nService=n,this.changeDetectorRef=r,this.cipherFormCacheService=s,this.cipherArchiveService=o,this.accountService=l,this.destroyRef=(0,a.WQX)(a.abz),this._firstInitialized=!1,this.cipherSaved=new a.bkB,this.formReadySubject=new le.B,this.formReady=this.formReadySubject.asObservable(),this.formStatusChangeSubject=new ns.t(null),this.formStatusChange$=this.formStatusChangeSubject.asObservable(),this.cipherForm=this.formBuilder.group({}),this.loading=!0,this.CipherType=p.gC,this.submit=()=>Va(this,void 0,void 0,function*(){if(!this.config.organizationDataOwnershipDisabled&&0===this.config.organizations.length)return void this.toastService.showToast({variant:"error",message:this.i18nService.t("cannotSaveItemNoConfirmedOrgs")});let e="editedItem";if(this.cipherForm.invalid){this.cipherForm.markAllAsTouched();const e=this.countInvalidFields(this.cipherForm);return void(e>0&&this.toastService.showToast({variant:"error",title:null,message:1===e?this.i18nService.t("singleFieldNeedsAttention"):this.i18nService.t("multipleFieldsNeedAttention",e)}))}if(this.beforeSubmit){if(!(yield this.beforeSubmit()))return}!(yield(0,h._)(this.accountService.activeAccount$.pipe(m.F6,(0,fe.n)(e=>this.cipherArchiveService.userCanArchive$(e)))))&&this.updatedCipherView.archivedDate&&(this.updatedCipherView.archivedDate=null,e="itemRestored");const t=yield this.addEditFormService.saveCipher(this.updatedCipherView,this.config);this.cipherFormCacheService.clearCache(),this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("edit"===this.config.mode||"partial-edit"===this.config.mode?e:"addedItem")}),this.cipherSaved.emit(t)})}countInvalidFields(e){return Object.values(e.controls).reduce((e,t)=>{var i,n;if(t instanceof g.gE)return e+this.countInvalidFields(t);return e+(t.invalid?null!==(n=null===(i=t.errors)||void 0===i?void 0:i.fieldCount)&&void 0!==n?n:1:0)},0)}}Za.ɵfac=function(e){return new(e||Za)(w.rXU(g.ok),w.rXU(is),w.rXU(k.f),w.rXU(S.W),w.rXU(ue.gRc),w.rXU(as),w.rXU(xa.J),w.rXU(R.D))},Za.ɵcmp=w.VBU({type:Za,selectors:[["vault-cipher-form"]],viewQuery:function(e,t){if(1&e&&w.GBs(D.L,5),2&e){let e;w.mGM(e=w.lsd())&&(t.bitSubmit=e.first)}},inputs:{formId:"formId",config:"config",submitBtn:"submitBtn",beforeSubmit:"beforeSubmit"},outputs:{cipherSaved:"cipherSaved",formReady:"formReady",formStatusChange$:"formStatusChange$"},features:[w.Jv_([{provide:ss,useExisting:(0,a.Rfq)(()=>Za)},{provide:as}]),w.OA$],ngContentSelectors:["[slot=attachment-button]"],decls:3,vars:5,consts:[[3,"configType"],[3,"id","formGroup","bitSubmit"],[3,"config","originalCipherView"],[3,"disabled","originalCipherView"],[3,"originalCipherView","disabled"],[3,"originalCipherView"],[3,"disableSectionMargin"]],template:function(e,t){1&e&&(w.NAR(Ga),w.nVh(0,Ua,1,1,"vault-new-item-nudge",0),w.j41(1,"form",1),w.nVh(2,Ka,10,11),w.k0s()),2&e&&(w.vxM(t.loading?-1:0),w.R7$(),w.Y8G("id",t.formId)("formGroup",t.cipherForm)("bitSubmit",t.submit),w.R7$(),w.vxM(t.loading?-1:2))},dependencies:[f.C,D.L,Pe.E,Xe.k,C.L,g.X1,g.qT,g.cb,g.j4,rs.p,Bo,Hs,ro,Ma,zs,to,Ra,Ns,ba,Qa],encapsulation:2});var Ha=i(71373),Ja=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class qa{constructor(e,t){this.passwordGenerationService=e,this.usernameGenerationService=t}generatePassword(){return Ja(this,void 0,void 0,function*(){const[e]=yield this.passwordGenerationService.getOptions();return yield this.passwordGenerationService.generatePassword(e)})}generateUsername(){return Ja(this,void 0,void 0,function*(){const e=yield this.usernameGenerationService.getOptions();return yield this.usernameGenerationService.generateUsername(e)})}}qa.ɵfac=function(e){return new(e||qa)(a.KVO(Ha.JJ),a.KVO(Ha.GL))},qa.ɵprov=a.jDH({token:qa,factory:qa.ɵfac});var $a=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class _a{constructor(){this.cipherService=(0,a.WQX)(l.p),this.accountService=(0,a.WQX)(R.D),this.taskService=(0,a.WQX)(o.RB)}decryptCipher(e){return $a(this,void 0,void 0,function*(){const t=yield(0,h._)(this.accountService.activeAccount$.pipe(m.F6));return yield this.cipherService.decrypt(e,t)})}saveCipher(e,t){return $a(this,void 0,void 0,function*(){var i,n;const r=yield(0,h._)(this.accountService.activeAccount$.pipe(m.F6));let s;if(null==e.id||""===e.id)return yield this.cipherService.createWithServer(e,r,t.admin);if(null==t.originalCipher)throw new Error("Original cipher is required for updating an existing cipher");const o=yield this.decryptCipher(t.originalCipher),a=new Set(null!==(i=t.originalCipher.collectionIds)&&void 0!==i?i:[]),l=new Set(null!==(n=e.collectionIds)&&void 0!==n?n:[]);if(null==t.originalCipher.organizationId&&null!=e.organizationId){const t=e.organizationId;e.organizationId=null,s=yield this.cipherService.shareWithServer(e,t,e.collectionIds,r,o)}else if(d=l,(c=a).size===d.size&&[...c].every(e=>d.has(e))){const i=yield this.cipherService.updateWithServer(e,r,o,t.admin);s=yield this.cipherService.encrypt(i,r).then(e=>e.cipher)}else{const i=e.collectionIds;e.collectionIds=t.originalCipher.collectionIds;const n=yield this.cipherService.updateWithServer(e,r,o,t.admin||0===a.size);n.collectionIds=i;const{cipher:l}=yield this.cipherService.encrypt(n,r);s=t.admin||0===a.size?yield this.cipherService.saveCollectionsWithServerAdmin(l):yield this.cipherService.saveCollectionsWithServer(l,r)}var c,d;return yield this.markAssociatedTaskAsComplete(r,e,t),null==s?null:yield this.cipherService.decrypt(s,r)})}markAssociatedTaskAsComplete(e,t,i){return $a(this,void 0,void 0,function*(){var n;const s=yield this.cipherService.decrypt(i.originalCipher,e),a=yield(0,h._)(this.taskService.pendingTasks$(e).pipe((0,r.T)(e=>e.find(e=>e.type===o.Wn.UpdateAtRiskCredential&&e.cipherId===t.id)))),l=t.type===p.gC.Login&&t.login.password&&t.login.password!==(null===(n=null==s?void 0:s.login)||void 0===n?void 0:n.password);a&&l&&(yield this.taskService.markAsComplete(a.id,e))})}}_a.ɵfac=function(e){return new(e||_a)},_a.ɵprov=a.jDH({token:_a,factory:_a.ɵfac});class el{}el.ɵfac=function(e){return new(e||el)},el.ɵmod=w.$C({type:el}),el.ɵinj=a.G2t({providers:[{provide:is,useClass:_a},{provide:ts,useClass:qa}],imports:[Za]});class tl{}var il=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class nl{constructor(){this.policyService=(0,a.WQX)(uo.m),this.organizationService=(0,a.WQX)(Be.PV),this.cipherService=(0,a.WQX)(l.p),this.folderService=(0,a.WQX)(tr.k),this.collectionService=(0,a.WQX)(we.YD),this.accountService=(0,a.WQX)(R.D),this.organizationDataOwnershipDisabled$=this.accountService.activeAccount$.pipe(m.F6,(0,fe.n)(e=>this.policyService.policyAppliesToUser$(lo.tt.OrganizationDataOwnership,e)),(0,r.T)(e=>!e))}buildConfig(e,t,i){return il(this,void 0,void 0,function*(){var s,o;const a=yield(0,h._)(this.accountService.activeAccount$.pipe(m.F6)),[l,c,d,u,A]=yield(0,h._)((0,n.z)([this.organizations$(a),this.collectionService.encryptedCollections$(a).pipe((0,r.T)(e=>null!=e?e:[]),(0,fe.n)(e=>this.collectionService.decryptedCollections$(a).pipe((0,So.p)(t=>t.length===e.length)))),this.organizationDataOwnershipDisabled$,this.folderService.folders$(a).pipe((0,fe.n)(e=>this.folderService.folderViews$(a).pipe((0,So.p)(t=>t.length>0||0===e.length)))),this.getCipher(a,t)]));return{mode:e,cipherType:null!==(o=null!==(s=null==A?void 0:A.type)&&void 0!==s?s:i)&&void 0!==o?o:p.gC.Login,admin:!1,organizationDataOwnershipDisabled:d,originalCipher:A,collections:c,organizations:l,folders:u}})}organizations$(e){return this.organizationService.organizations$(e).pipe((0,r.T)(e=>e.filter(e=>e.isMember&&e.enabled&&e.status===lo.Zx.Confirmed)))}getCipher(e,t){return null==t?Promise.resolve(null):this.cipherService.get(t,e)}}nl.ɵfac=function(e){return new(e||nl)},nl.ɵprov=a.jDH({token:nl,factory:nl.ɵfac});var rl=i(14340),sl=i(27545),ol=i(4162),al=i(99327);function ll(e,t){if(1&e){const e=w.RV6();w.j41(0,"tools-password-generator",2),w.bIt("onGenerated",function(t){a.eBV(e);const i=w.XpG();return a.Njj(i.onCredentialGenerated(t))})("onAlgorithm",function(t){a.eBV(e);const i=w.XpG();return a.Njj(i.onAlgorithmSelected(t))}),w.k0s()}if(2&e){const e=w.XpG();w.Y8G("disableMargin",e.disableMargin)}}function cl(e,t){if(1&e){const e=w.RV6();w.j41(0,"tools-username-generator",3),w.bIt("onGenerated",function(t){a.eBV(e);const i=w.XpG();return a.Njj(i.onCredentialGenerated(t))})("onAlgorithm",function(t){a.eBV(e);const i=w.XpG();return a.Njj(i.onAlgorithmSelected(t))}),w.k0s()}if(2&e){const e=w.XpG();w.Y8G("website",e.uri)("disableMargin",e.disableMargin)}}class dl{constructor(){this.uri="",this.type="password",this.disableMargin=!1,this.algorithmSelected=new a.bkB,this.valueGenerated=new a.bkB,this.onAlgorithmSelected=e=>{this.algorithmSelected.emit(e)},this.onCredentialGenerated=e=>{this.valueGenerated.emit(e.credential)}}}dl.ɵfac=function(e){return new(e||dl)},dl.ɵcmp=w.VBU({type:dl,selectors:[["vault-cipher-form-generator"]],inputs:{uri:"uri",type:"type",disableMargin:[2,"disableMargin","disableMargin",rl.he]},outputs:{algorithmSelected:"algorithmSelected",valueGenerated:"valueGenerated"},decls:2,vars:2,consts:[[3,"disableMargin"],[3,"website","disableMargin"],[3,"onGenerated","onAlgorithm","disableMargin"],[3,"onGenerated","onAlgorithm","website","disableMargin"]],template:function(e,t){1&e&&(w.nVh(0,ll,1,1,"tools-password-generator",0),w.nVh(1,cl,1,2,"tools-username-generator",1)),2&e&&(w.vxM("password"===t.type?0:-1),w.R7$(),w.vxM("username"===t.type?1:-1))},dependencies:[ve.MD,sl.Im,ol.M,al.d],encapsulation:2});var ul=i(61465),hl=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Al=(e,t)=>t.id;function pl(e,t){if(1&e&&(w.j41(0,"li")(1,"p"),w.EFF(2),w.nI1(3,"i18n"),w.k0s()()),2&e){const e=w.XpG();w.R7$(2),w.SpI(" ",w.brH(3,1,"bulkCollectionAssignmentWarning",e.totalItemCount,e.readonlyItemCount)," ")}}function gl(e,t){if(1&e&&(w.j41(0,"li")(1,"p"),w.EFF(2),w.k0s()()),2&e){const e=w.XpG();w.R7$(2),w.SpI(" ",e.transferWarningText(e.orgName,e.personalItemsCount)," ")}}function vl(e,t){if(1&e&&w.nrm(0,"bit-option",8),2&e){const e=t.$implicit;w.Y8G("value",e.id)("label",e.name)}}function ml(e,t){if(1&e&&(w.j41(0,"div",2)(1,"bit-form-field",6)(2,"bit-label"),w.EFF(3),w.nI1(4,"i18n"),w.k0s(),w.j41(5,"bit-select",7),w.Z7z(6,vl,1,2,"bit-option",8,Al),w.nI1(8,"async"),w.k0s()()()),2&e){const e=w.XpG();w.R7$(3),w.JRh(w.bMT(4,1,"moveToOrganization")),w.R7$(3),w.Dyx(w.bMT(8,3,e.organizations$))}}function fl(e,t){if(1&e&&(w.j41(0,"bit-hint",5),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e){const e=w.XpG();w.R7$(),w.SpI(" ",w.i5U(2,1,"cannotRemoveViewOnlyCollections",e.readOnlyCollectionNames.join(", "))," ")}}const yl={Saved:"saved",Canceled:"canceled"},bl="MyVault";class Cl{get selectedOrgId(){return this.formGroup.getRawValue().selectedOrg||this.params.organizationId}constructor(e,t,i,n,s,o,l,c){this.cipherService=e,this.i18nService=t,this.organizationService=i,this.collectionService=n,this.formBuilder=s,this.toastService=o,this.accountService=l,this.configService=c,this.editableItemCountChange=new a.bkB,this.onCollectionAssign=new a.bkB,this.formGroup=this.formBuilder.group({selectedOrg:[null],collections:[[],[g.k0.required]]}),this.readOnlyCollectionNames=[],this.availableCollections=[],this.showOrgSelector=!1,this.organizations$=this.accountService.activeAccount$.pipe((0,fe.n)(e=>this.organizationService.organizations$(null==e?void 0:e.id).pipe((0,r.T)(e=>e.filter(e=>e.enabled&&e.status===lo.Zx.Confirmed).sort((e,t)=>e.name.localeCompare(t.name))),(0,_i.M)(e=>{e.length>0&&this.showOrgSelector&&setTimeout(()=>{this.formGroup.patchValue({selectedOrg:e[0].id}),this.setFormValidators(),1===e.length&&this.formGroup.controls.selectedOrg.disable()})})))),this.transferWarningText=(e,t)=>{const i=!!e;return t>1&&i?this.i18nService.t("personalItemsWithOrgTransferWarningPlural",t,e):t>1&&!i?this.i18nService.t("personalItemsTransferWarningPlural",t):1===t&&i?this.i18nService.t("personalItemWithOrgTransferWarningSingular",e):this.i18nService.t("personalItemTransferWarningSingular")},this.editableItems=[],this.destroy$=new le.B,this.submit=()=>hl(this,void 0,void 0,function*(){if(this.formGroup.markAllAsTouched(),this.formGroup.invalid)return;const e=this.editableItems.filter(e=>e.organizationId).map(e=>e.id),t=yield(0,h._)(this.accountService.activeAccount$.pipe(m.F6));if(this.personalItemsCount>0&&(yield this.moveToOrganization(this.selectedOrgId,this.params.ciphers.filter(e=>null==e.organizationId),this.formGroup.controls.collections.value.map(e=>e.id),t)),e.length>0){const i=1===e.length&&0===this.personalItemsCount;yield i?this.updateAssignedCollections(this.editableItems[0],t):this.bulkUpdateCollections(e,t);const n=yield this.configService.getFeatureFlag(Se.TO.PM37785_VaultBatchBar),r=this.formGroup.controls.collections.value.length,s=this.params.ciphers.length;let o;o=n?this.collectionAssignmentToastKey(s,r):"successfullyAssignedCollections";const a=this.i18nService.t(o);this.toastService.showToast({variant:"success",title:null,message:a})}this.onCollectionAssign.emit(yl.Saved)}),this.sortItems=(e,t)=>this.i18nService.collator.compare(e.labelName,t.labelName)}ngOnInit(){return hl(this,void 0,void 0,function*(){const e=this.params.ciphers.every(e=>null==e.organizationId);(this.selectedOrgId===bl||e)&&(this.showOrgSelector=!0),yield this.initializeItems(this.selectedOrgId),this.selectedOrgId&&this.selectedOrgId!==bl&&(yield this.handleOrganizationCiphers(this.selectedOrgId)),this.setupFormSubscriptions()})}ngAfterViewInit(){this.bitSubmit.loading$.pipe((0,ae.Q)(this.destroy$)).subscribe(e=>{this.submitBtn&&this.submitBtn.loading.set(e)}),this.bitSubmit.disabled$.pipe((0,ae.Q)(this.destroy$)).subscribe(e=>{this.submitBtn&&this.submitBtn.disabled.set(e)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}selectCollections(e){const t=[...this.formGroup.controls.collections.value,...e].sort(this.sortItems);this.formGroup.patchValue({collections:t})}handleOrganizationCiphers(e){return hl(this,void 0,void 0,function*(){if(0==this.editableItemCount)return this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:this.i18nService.t("nothingSelected")}),void this.onCollectionAssign.emit(yl.Canceled);const t=yield(0,h._)((0,m.F6)(this.accountService.activeAccount$)),i=yield(0,h._)(this.organizationService.organizations$(t).pipe((0,Be.Sw)(e)));yield this.setReadOnlyCollectionNames();const n=this.canAccessDefaultCollection(this.params.availableCollections);this.availableCollections=this.params.availableCollections.filter(e=>n?e.canEditItems(i):e.canEditItems(i)&&e.type!==ki.it.DefaultUserCollection).map(e=>({icon:e.type===ki.it.DefaultUserCollection?"bwi-user":"bwi-collection-shared",id:e.id,labelName:e.name,listName:e.name})),this.selectCollectionsAssignedToSingleCipher(),this.params.activeCollection&&this.selectCollections([{icon:"bwi-collection-shared",id:this.params.activeCollection.id,labelName:this.params.activeCollection.name,listName:this.params.activeCollection.name}])})}selectCollectionsAssignedToSingleCipher(){if(1!==this.params.ciphers.length)return;const e=this.params.ciphers[0].collectionIds,t=this.availableCollections.filter(t=>{var i;return e.includes(t.id)&&t.id!==(null===(i=this.params.activeCollection)||void 0===i?void 0:i.id)}).map(e=>({icon:e.icon,id:e.id,labelName:e.labelName,listName:e.listName}));t.length>0&&this.selectCollections(t)}initializeItems(e){return hl(this,void 0,void 0,function*(){if(this.totalItemCount=this.params.ciphers.length,!e||e===bl)return this.editableItems=this.params.ciphers,this.editableItemCount=this.params.ciphers.length,this.personalItemsCount=this.params.ciphers.length,void this.editableItemCountChange.emit(this.editableItemCount);const t=yield(0,h._)((0,m.F6)(this.accountService.activeAccount$)),i=yield(0,h._)(this.organizationService.organizations$(t).pipe((0,Be.Sw)(e)));this.orgName=i.name,this.editableItems=i.canEditAllCiphers?this.params.ciphers:this.params.ciphers.filter(e=>e.edit),this.editableItemCount=this.editableItems.length,this.editableItemCountChange.emit(this.editableItemCount),this.personalItemsCount=this.params.ciphers.filter(e=>null==e.organizationId).length,this.readonlyItemCount=this.totalItemCount-this.editableItemCount})}setFormValidators(){const e=this.formGroup.get("selectedOrg");null==e||e.setValidators([g.k0.required]),null==e||e.updateValueAndValidity()}setupFormSubscriptions(){this.formGroup.controls.selectedOrg.valueChanges.pipe((0,_i.M)(()=>{this.formGroup.controls.collections.setValue([],{emitEvent:!1})}),(0,fe.n)(e=>this.getCollectionsForOrganization(e)),(0,ae.Q)(this.destroy$)).subscribe(e=>{this.availableCollections=e.map(e=>({icon:e.type===ki.it.DefaultUserCollection?"bwi-user":"bwi-collection-shared",id:e.id,labelName:e.name,listName:e.name}))})}getCollectionsForOrganization(e){return this.accountService.activeAccount$.pipe(m.F6,(0,fe.n)(e=>(0,n.z)([this.collectionService.decryptedCollections$(e),this.organizationService.organizations$(e)])),(0,r.T)(([t,i])=>{const n=i.find(t=>t.id===e);this.orgName=n.name;const r=t.filter(t=>t.organizationId===e),s=this.canAccessDefaultCollection(t);return r.filter(e=>s?!e.readOnly:!e.readOnly&&e.type!==ki.it.DefaultUserCollection)}),(0,ls.t)({refCount:!0,bufferSize:1}))}collectionAssignmentToastKey(e,t){return 1===e?1===t?"itemMovedToCollection":"itemMovedToCollections":1===t?"itemsMovedToCollection":"itemsMovedToCollections"}moveToOrganization(e,t,i,n){return hl(this,void 0,void 0,function*(){var r;yield this.cipherService.shareManyWithServer(t,e,i,n);(yield this.configService.getFeatureFlag(Se.TO.PM37785_VaultBatchBar))?this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t(this.collectionAssignmentToastKey(t.length,i.length))}):this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t(1===t.length?"itemMovedToOrg":"itemsMovedToOrg",null!==(r=this.orgName)&&void 0!==r?r:this.i18nService.t("organization"))})})}bulkUpdateCollections(e,t){return hl(this,void 0,void 0,function*(){this.formGroup.controls.collections.value.length>0&&(yield this.cipherService.bulkUpdateCollectionsWithServer(this.selectedOrgId,t,e,this.formGroup.controls.collections.value.map(e=>e.id),!1)),null!=this.params.activeCollection&&null==this.formGroup.controls.collections.value.find(e=>e.id===this.params.activeCollection.id)&&(yield this.cipherService.bulkUpdateCollectionsWithServer(this.selectedOrgId,t,e,[this.params.activeCollection.id],!0))})}updateAssignedCollections(e,t){return hl(this,void 0,void 0,function*(){const{collections:i}=this.formGroup.getRawValue();e.collectionIds=i.map(e=>e.id);const{cipher:n}=yield this.cipherService.encrypt(e,t);this.params.isSingleCipherAdmin?yield this.cipherService.saveCollectionsWithServerAdmin(n):yield this.cipherService.saveCollectionsWithServer(n,t)})}setReadOnlyCollectionNames(){return hl(this,void 0,void 0,function*(){const{availableCollections:e,ciphers:t}=this.params,i=yield(0,h._)(this.organizations$.pipe((0,r.T)(e=>e.find(e=>e.id===this.selectedOrgId))));this.readOnlyCollectionNames=e.filter(e=>e.readOnly&&t.some(t=>t.collectionIds.includes(e.id))&&!e.canEditItems(i)).map(e=>e.name)})}canAccessDefaultCollection(e){const t=Object.fromEntries(e.map(e=>[e.id,e]));return this.params.ciphers.every(e=>!e.collectionIds.length||e.collectionIds.some(e=>{var i;return(null===(i=t[e])||void 0===i?void 0:i.type)===ki.it.DefaultUserCollection}))}}Cl.ɵfac=function(e){return new(e||Cl)(w.rXU(l.p),w.rXU(S.W),w.rXU(Be.PV),w.rXU(we.YD),w.rXU(g.ok),w.rXU(k.f),w.rXU(R.D),w.rXU(He.w))},Cl.ɵcmp=w.VBU({type:Cl,selectors:[["assign-collections"]],viewQuery:function(e,t){if(1&e&&w.GBs(D.L,5),2&e){let e;w.mGM(e=w.lsd())&&(t.bitSubmit=e.first)}},inputs:{params:"params",submitBtn:"submitBtn"},outputs:{editableItemCountChange:"editableItemCountChange",onCollectionAssign:"onCollectionAssign"},decls:15,vars:13,consts:[["id","assign_collections_form",3,"formGroup","bitSubmit"],[1,"tw-list-disc","tw-pl-5","tw-space-y-2","tw-break-words"],[1,"tw-flex"],["disableMargin","",1,"tw-grow","tw-max-w-full"],["formControlName","collections",1,"tw-w-full",3,"baseItems"],["data-testid","view-only-hint"],[1,"tw-grow","tw-max-w-full"],["formControlName","selectedOrg"],["icon","bwi-business",3,"value","label"]],template:function(e,t){1&e&&(w.j41(0,"form",0)(1,"p"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"ul",1),w.nVh(5,pl,4,5,"li"),w.nVh(6,gl,3,1,"li"),w.k0s(),w.nVh(7,ml,9,5,"div",2),w.j41(8,"div",2)(9,"bit-form-field",3)(10,"bit-label"),w.EFF(11),w.nI1(12,"i18n"),w.k0s(),w.nrm(13,"bit-multi-select",4),w.nVh(14,fl,3,4,"bit-hint",5),w.k0s()()()),2&e&&(w.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit),w.R7$(2),w.SpI(" ",w.bMT(3,9,1===t.personalItemsCount?"bulkCollectionAssignmentDialogDescriptionSingular":"bulkCollectionAssignmentDialogDescriptionPlural")," "),w.R7$(3),w.vxM(t.readonlyItemCount>0?5:-1),w.R7$(),w.vxM(t.personalItemsCount>0?6:-1),w.R7$(),w.vxM(t.showOrgSelector?7:-1),w.R7$(4),w.JRh(w.bMT(12,11,"selectCollectionsToAssign")),w.R7$(2),w.Y8G("baseItems",t.availableCollections),w.R7$(),w.vxM(t.readOnlyCollectionNames.length>0?14:-1))},dependencies:[ve.MD,v.p,C.L,G.j,ln.I,ho.b,O.h,f.C,D.L,ul.i,rs.p,hs.w,As.P,g.X1,g.qT,g.BC,g.cb,g.j4,g.JD,y.t,b.P,ve.Jj,X.$],encapsulation:2});class Il{transform(e,t){return e?it(e,t):""}}function wl(e,t){if(1&e&&(w.j41(0,"bit-item")(1,"div",1),w.nrm(2,"bit-color-password",2),w.j41(3,"div",3),w.EFF(4),w.nI1(5,"date"),w.k0s()(),w.qex(6,4),w.j41(7,"bit-item-action"),w.nrm(8,"button",5),w.nI1(9,"i18n"),w.nI1(10,"i18n"),w.k0s(),w.bVm(),w.k0s()),2&e){const e=t.$implicit;w.R7$(2),w.Y8G("password",e.password)("showCount",!1),w.R7$(2),w.JRh(w.i5U(5,6,e.lastUsedDate,"medium")),w.R7$(4),w.Y8G("label",w.bMT(9,9,"copyPassword"))("appCopyClick",e.password)("valueLabel",w.bMT(10,11,"password"))}}function Bl(e,t){if(1&e&&(w.j41(0,"div"),w.Z7z(1,wl,11,13,"bit-item",null,w.Vm6),w.k0s()),2&e){const e=w.XpG();w.R7$(),w.Dyx(e.history)}}function El(e,t){1&e&&(w.j41(0,"div",0)(1,"p"),w.EFF(2),w.nI1(3,"i18n"),w.k0s()()),2&e&&(w.R7$(2),w.JRh(w.bMT(3,1,"noPasswordsInList")))}Il.ɵfac=function(e){return new(e||Il)},Il.ɵpipe=w.EJ8({name:"truncateFilename",type:Il,pure:!0});class Sl{constructor(){this.history=[]}ngOnInit(){this.history=null==this.cipher.passwordHistory?[]:this.cipher.passwordHistory}}function Ql(e,t){if(1&e){const e=w.RV6();w.j41(0,"li",9,0),w.bIt("click",function(){a.eBV(e);const t=w.sdS(1),i=w.XpG();return a.Njj(i.selectText(t))}),w.EFF(2),w.k0s()}if(2&e){const e=t.$implicit;w.R7$(2),w.SpI(" ",e," ")}}Sl.ɵfac=function(e){return new(e||Sl)},Sl.ɵcmp=w.VBU({type:Sl,selectors:[["vault-password-history-view"]],inputs:{cipher:"cipher"},decls:2,vars:2,consts:[[1,"tw-absolute","tw-top-1/2","tw-left-1/2","tw-transform","tw--translate-x-1/2","tw--translate-y-1/2","tw-text-center"],[1,"tw-pl-3","tw-py-2"],[1,"tw-text-base",3,"password","showCount"],[1,"tw-text-sm","tw-text-muted"],["slot","end"],["type","button","bitIconButton","bwi-clone","appStopClick","","showToast","",3,"label","appCopyClick","valueLabel"]],template:function(e,t){1&e&&(w.nVh(0,Bl,3,0,"div"),w.nVh(1,El,4,3,"div",0)),2&e&&(w.vxM(t.history&&t.history.length?0:-1),w.R7$(),w.vxM(null!=t.history&&t.history.length?-1:1))},dependencies:[ve.MD,Xe.k,st.J,at.D,Xt.p,Jt.S,I.Q,Y.s,v.p,Kt.Y,Ge.D,ve.vh,X.$],encapsulation:2});class kl{constructor(){this.dialogRef=(0,a.WQX)(Q.ce),this.params=(0,a.WQX)(Qr.Qs),this.platformUtilsService=(0,a.WQX)(E.y)}selectText(e){const t=window.getSelection();if(null==t)return;t.removeAllRanges();const i=document.createRange();i.selectNodeContents(e),t.addRange(i)}openContactSupport(e){e.preventDefault(),this.platformUtilsService.launchUri("https://bitwarden.com/contact")}static open(e,t){return e.open(kl,{data:t,positionStrategy:new W.u})}}kl.ɵfac=function(e){return new(e||kl)},kl.ɵcmp=w.VBU({type:kl,selectors:[["vault-decryption-failure-dialog"]],decls:21,vars:15,consts:[["listItem",""],["bitDialogIcon","","aria-hidden","true",1,"bwi","tw-text-3xl","bwi-exclamation-triangle","tw-text-warning"],["bitDialogTitle",""],["bitDialogContent",""],["bitLink","","href","#",3,"click"],[1,"tw-list-none","tw-pl-0"],[1,"tw-text-code","tw-font-mono","tw-py-0.5"],["bitDialogFooter",""],["type","button","bitButton","","buttonType","primary",3,"click"],[1,"tw-text-code","tw-font-mono","tw-py-0.5",3,"click"]],template:function(e,t){1&e&&(w.j41(0,"bit-simple-dialog"),w.nrm(1,"i",1),w.j41(2,"span",2),w.EFF(3),w.nI1(4,"i18n"),w.k0s(),w.j41(5,"div",3)(6,"p"),w.EFF(7),w.nI1(8,"i18n"),w.j41(9,"a",4),w.bIt("click",function(e){return t.openContactSupport(e)}),w.EFF(10),w.nI1(11,"i18n"),w.k0s(),w.EFF(12),w.nI1(13,"i18n"),w.k0s(),w.j41(14,"ul",5),w.Z7z(15,Ql,3,1,"li",6,w.fX1),w.k0s()(),w.qex(17,7),w.j41(18,"button",8),w.bIt("click",function(){return t.dialogRef.close(!1)}),w.EFF(19),w.nI1(20,"i18n"),w.k0s(),w.bVm(),w.k0s()),2&e&&(w.R7$(3),w.JRh(w.bMT(4,5,"decryptionError")),w.R7$(4),w.SpI(" ",w.bMT(8,7,"couldNotDecryptVaultItemsBelow")," "),w.R7$(3),w.JRh(w.bMT(11,9,"contactCSToAvoidDataLossPart1")),w.R7$(2),w.SpI(" ",w.bMT(13,11,"contactCSToAvoidDataLossPart2")," "),w.R7$(3),w.Dyx(t.params.cipherIds),w.R7$(4),w.SpI(" ",w.bMT(20,13,"close")," "))},dependencies:[b.P,V.LJ,V.hJ,V.o_,ve.MD,Pe.E,v.p,f.C,y.t,P.Q,De.g,X.$],encapsulation:2});var Rl=i(14551);class Fl{constructor(e,t){this.params=e,this.dialogRef=t,this.cipher=e.cipher}close(){this.dialogRef.close()}}function Tl(e,t){return e.open(Fl,t)}Fl.ɵfac=function(e){return new(e||Fl)(w.rXU(Qr.Qs),w.rXU(Q.ce))},Fl.ɵcmp=w.VBU({type:Fl,selectors:[["app-vault-password-history"]],decls:10,vars:7,consts:[["background","alt"],["bitDialogTitle",""],["bitDialogContent",""],[3,"cipher"],["bitDialogFooter",""],["bitButton","","buttonType","primary","type","button",3,"click"]],template:function(e,t){1&e&&(w.j41(0,"bit-dialog",0)(1,"span",1),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.qex(4,2),w.nrm(5,"vault-password-history-view",3),w.bVm(),w.qex(6,4),w.j41(7,"button",5),w.bIt("click",function(){return t.close()}),w.EFF(8),w.nI1(9,"i18n"),w.k0s(),w.bVm(),w.k0s()),2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,3,"passwordHistory")," "),w.R7$(3),w.Y8G("cipher",t.cipher),w.R7$(3),w.SpI(" ",w.bMT(9,5,"close")," "))},dependencies:[y.t,P.Q,ve.MD,f.C,b.P,x.m,V.hJ,Sl,mt.$Z],encapsulation:2});var Dl=i(41103),Pl=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Ml=["submitBtn"];function xl(e,t){if(1&e&&(w.nrm(0,"button",9),w.nI1(1,"i18n")),2&e){const e=w.XpG();w.Y8G("label",w.bMT(1,2,"deleteFolder"))("bitAction",e.deleteFolder)}}const Vl={Created:"created",Deleted:"deleted"};class Gl{constructor(e,t,i,n,s,o,l,c,d,u,A){this.formBuilder=e,this.folderService=t,this.folderApiService=i,this.accountService=n,this.keyService=s,this.toastService=o,this.i18nService=l,this.logService=c,this.dialogService=d,this.dialogRef=u,this.data=A,this.configService=(0,a.WQX)(He.w),this.btnTextAddCreateFeatureFlag=(0,he.ot)(this.configService.getFeatureFlag$(Se.TO.PM32380_BtnTextAddCreate),{initialValue:!1}),this.folder=new Fi.u,this.variant="add",this.folderForm=this.formBuilder.group({name:["",g.k0.required]}),this.activeUserId$=this.accountService.activeAccount$.pipe((0,r.T)(e=>null==e?void 0:e.id)),this.destroyRef=(0,a.WQX)(a.abz),this.submit=()=>Pl(this,void 0,void 0,function*(){var e;if(!this.folderForm.invalid){this.folder.name=null!==(e=this.folderForm.controls.name.value)&&void 0!==e?e:"";try{const e=yield(0,h._)(this.activeUserId$),t=yield this.keyService.getUserKey(e),i=yield this.folderService.encrypt(this.folder,t);yield this.folderApiService.save(i,e),this.toastService.showToast({variant:"success",title:"",message:this.i18nService.t("editedFolder")}),this.close(Vl.Created)}catch(t){this.logService.error(t)}}}),this.deleteFolder=()=>Pl(this,void 0,void 0,function*(){if(yield this.dialogService.openSimpleDialog({title:{key:"deleteFolder"},content:{key:"deleteFolderPermanently"},type:"warning"})){try{const e=yield(0,h._)(this.activeUserId$);yield this.folderApiService.delete(this.folder.id,e),this.toastService.showToast({variant:"success",title:"",message:this.i18nService.t("deletedFolder")})}catch(e){this.logService.error(e)}this.close(Vl.Deleted)}})}ngOnInit(){var e;(null===(e=this.data)||void 0===e?void 0:e.editFolderConfig)?(this.variant="edit",this.folderForm.controls.name.setValue(this.data.editFolderConfig.folder.name),this.folder=this.data.editFolderConfig.folder):this.folder=new Fi.u}ngAfterViewInit(){var e;null===(e=this.bitSubmit)||void 0===e||e.loading$.pipe((0,he.pQ)(this.destroyRef)).subscribe(e=>{this.submitBtn&&this.submitBtn.loading.set(e)})}get title(){return"add"===this.variant?this.btnTextAddCreateFeatureFlag()?"addFolder":"newFolder":"editFolder"}close(e){this.dialogRef.close(e)}static open(e,t){return e.open(Gl,{data:t})}}Gl.ɵfac=function(e){return new(e||Gl)(w.rXU(g.ok),w.rXU(tr.k),w.rXU(Dl.w),w.rXU(R.D),w.rXU(ze.Lu),w.rXU(k.f),w.rXU(S.W),w.rXU(Qe.K),w.rXU(W.o),w.rXU(Q.ce),w.rXU(Qr.Qs))},Gl.ɵcmp=w.VBU({type:Gl,selectors:[["vault-add-edit-folder-dialog"]],viewQuery:function(e,t){if(1&e&&w.GBs(D.L,5)(Ml,5),2&e){let e;w.mGM(e=w.lsd())&&(t.bitSubmit=e.first),w.mGM(e=w.lsd())&&(t.submitBtn=e.first)}},decls:22,vars:19,consts:[["submitBtn",""],["bit-dialog","","id","add-edit-folder",3,"formGroup","bitSubmit"],["bitDialogTitle",""],["bitDialogContent",""],["disableMargin",""],["bitInput","","id","folderName","formControlName","name","type","text"],["bitDialogFooter",""],["bitButton","","buttonType","primary","type","submit","form","add-edit-folder",3,"disabled"],["bitButton","","bitDialogClose","","buttonType","secondary","type","button"],["type","button","buttonType","dangerGhost","bitIconButton","bwi-trash",1,"tw-ml-auto",3,"label","bitAction"]],template:function(e,t){1&e&&(w.j41(0,"form",1)(1,"span",2),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"div",3)(5,"bit-form-field",4)(6,"bit-label"),w.EFF(7),w.nI1(8,"i18n"),w.k0s(),w.nrm(9,"input",5),w.j41(10,"bit-hint"),w.EFF(11),w.nI1(12,"i18n"),w.k0s()()(),w.qex(13,6),w.j41(14,"button",7,0),w.EFF(16),w.nI1(17,"i18n"),w.k0s(),w.j41(18,"button",8),w.EFF(19),w.nI1(20,"i18n"),w.k0s(),w.nVh(21,xl,2,4,"button",9),w.bVm(),w.k0s()),2&e&&(w.Y8G("formGroup",t.folderForm)("bitSubmit",t.submit),w.R7$(2),w.SpI(" ",w.bMT(3,9,t.title)," "),w.R7$(5),w.JRh(w.bMT(8,11,"folderName")),w.R7$(4),w.SpI(" ",w.bMT(12,13,"folderHintText")," "),w.R7$(3),w.Y8G("disabled",t.folderForm.invalid),w.R7$(2),w.SpI(" ",w.bMT(17,15,"save")," "),w.R7$(3),w.SpI(" ",w.bMT(20,17,"cancel")," "),w.R7$(2),w.vxM("edit"===t.variant?21:-1))},dependencies:[ve.MD,v.p,b.P,M.I,x.m,V.hJ,y.t,P.Q,C.L,G.j,ln.I,U.J,O.h,g.X1,g.qT,g.me,g.BC,g.cb,g.j4,g.JD,I.Q,Y.s,f.C,qe.p,D.L,X.$],encapsulation:2});var Ul=i(66983);const Ol=Object.freeze([{type:p.gC.Login,icon:"bwi-globe",labelKey:"typeLogin",subtitleKey:"typeLoginSubtitle"},{type:p.gC.Card,icon:"bwi-credit-card",labelKey:"typeCard",subtitleKey:"typeCardSubtitle"},{type:p.gC.Identity,icon:"bwi-id-card",labelKey:"typeIdentity",subtitleKey:"typeIdentitySubtitle"},{type:p.gC.SecureNote,icon:"bwi-sticky-note",labelKey:"typeNote",subtitleKey:"typeNoteSubtitle"},{type:p.gC.SshKey,icon:"bwi-key",labelKey:"typeSshKey",subtitleKey:"typeSshKeySubtitle"}]),Nl={type:p.gC.BankAccount,icon:"bwi-bank",labelKey:"typeBankAccount",subtitleKey:"typeBankAccountSubtitle"},jl={type:p.gC.Passport,icon:"bwi-passport",labelKey:"typePassport",subtitleKey:"typePassportSubtitle"},Yl={type:p.gC.DriversLicense,icon:"bwi-id-card",labelKey:"typeDriversLicense",subtitleKey:"typeDriversLicenseSubtitle"},Xl=[...Ol.slice(0,2),Nl,...Ol.slice(2,3),Yl,jl,...Ol.slice(3)].map(e=>e.type===p.gC.Login?Object.assign(Object.assign({},e),{icon:"bwi-lock"}):e.type===p.gC.Identity?Object.assign(Object.assign({},e),{icon:"bwi-user"}):e.type===p.gC.SecureNote?Object.assign(Object.assign({},e),{labelKey:"typeSecureNote"}):e);var zl=i(89684),Ll=i(58384);const Wl=e=>({"md:tw-grid-cols-2":e}),Kl=(e,t)=>t.labelKey;function Zl(e,t){if(1&e){const e=w.RV6();w.j41(0,"li")(1,"bit-item",1)(2,"button",2),w.bIt("click",function(){const t=a.eBV(e).$implicit;return a.Njj(t.action())}),w.nrm(3,"bit-icon-tile",3),w.EFF(4),w.nI1(5,"i18n"),w.j41(6,"div",4),w.EFF(7),w.nI1(8,"i18n"),w.k0s(),w.nrm(9,"bit-icon",5),w.k0s()()()}if(2&e){const e=t.$implicit;w.R7$(3),w.Y8G("icon",e.icon)("variant","primary")("size","base"),w.R7$(),w.SpI(" ",w.bMT(5,5,e.labelKey)," "),w.R7$(3),w.JRh(w.bMT(8,7,e.subtitleKey))}}const Hl=Object.freeze({Cipher:"cipher",Folder:"folder",Collection:"collection"});class Jl{constructor(e){this.restrictedItemTypesService=e,this.canCreateFolder=(0,ue.hFB)(!1),this.canCreateCollection=(0,ue.hFB)(!1),this.canCreateSshKey=(0,ue.hFB)(!1),this.itemSelected=(0,ue.CGW)(),this.restrictedTypes=(0,he.ot)(this.restrictedItemTypesService.restricted$,{initialValue:[]}),this.items=(0,me.EW)(()=>{const e=this.restrictedTypes(),t=Xl.filter(t=>!(!this.canCreateSshKey()&&t.type===p.gC.SshKey)&&!e.some(e=>e.cipherType===t.type)).map(e=>({icon:e.icon,labelKey:e.labelKey,subtitleKey:e.subtitleKey,action:()=>this.itemSelected.emit({result:Hl.Cipher,cipherType:e.type})}));return this.canCreateFolder()&&t.push({icon:"bwi-folder",labelKey:"folder",subtitleKey:"folderSubtitle",action:()=>this.itemSelected.emit({result:Hl.Folder})}),this.canCreateCollection()&&t.push({icon:"bwi-collection-shared",labelKey:"collection",subtitleKey:"collectionSubtitle",action:()=>this.itemSelected.emit({result:Hl.Collection})}),t})}}Jl.ɵfac=function(e){return new(e||Jl)(w.rXU(Ul.b))},Jl.ɵcmp=w.VBU({type:Jl,selectors:[["vault-add-item-grid"]],inputs:{canCreateFolder:[1,"canCreateFolder"],canCreateCollection:[1,"canCreateCollection"],canCreateSshKey:[1,"canCreateSshKey"]},outputs:{itemSelected:"itemSelected"},decls:3,vars:3,consts:[[1,"tw-grid","tw-grid-cols-1","tw-gap-x-4","tw-gap-y-2","tw-list-none","tw-p-0","tw-m-0",3,"ngClass"],[1,"!tw-mb-0"],["type","button","bit-item-content","",1,"tw-w-full","tw-flex","tw-items-center","tw-gap-4",3,"click"],["slot","start",3,"icon","variant","size"],["slot","secondary"],["slot","end","name","bwi-angle-right",1,"tw-text-main","bwi-lg"]],template:function(e,t){if(1&e&&(w.j41(0,"ul",0),w.Z7z(1,Zl,10,9,"li",null,Kl),w.k0s()),2&e){const e=t.items();w.Y8G("ngClass",w.eq3(1,Wl,e.length>=6)),w.R7$(),w.Dyx(e)}},dependencies:[ve.MD,ve.YU,zl.F,Ll.R,Xe.k,st.J,ot.g,Pe.E,mt.$Z],encapsulation:2,changeDetection:0});class ql{constructor(){this.dialogRef=(0,a.WQX)(Q.ce),this.data=(0,a.WQX)(Qr.Qs),this.grid=ue.ebz.required(Jl),this.dialogSize=(0,me.EW)(()=>this.grid().items().length>=6?"large":"default")}onItemSelected(e){this.dialogRef.close(e)}static open(e,t){return e.open(ql,{data:t})}}ql.ɵfac=function(e){return new(e||ql)},ql.ɵcmp=w.VBU({type:ql,selectors:[["vault-add-item-dialog"]],viewQuery:function(e,t){1&e&&w.wEZ(t.grid,Jl,5),2&e&&w.NyB()},decls:6,vars:7,consts:[["background","alt",3,"dialogSize"],["bitDialogTitle",""],["bitDialogContent",""],[3,"itemSelected","canCreateFolder","canCreateCollection","canCreateSshKey"]],template:function(e,t){1&e&&(w.j41(0,"bit-dialog",0)(1,"span",1),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"div",2)(5,"vault-add-item-grid",3),w.bIt("itemSelected",function(e){return t.onItemSelected(e)}),w.k0s()()()),2&e&&(w.Y8G("dialogSize",t.dialogSize()),w.R7$(2),w.SpI(" ",w.bMT(3,5,"chooseItemToAdd")," "),w.R7$(3),w.Y8G("canCreateFolder",t.data.canCreateFolder)("canCreateCollection",t.data.canCreateCollection)("canCreateSshKey",t.data.canCreateSshKey))},dependencies:[b.P,x.m,Jl,mt.$Z],encapsulation:2,changeDetection:0});var $l=i(38798);const _l=e=>({"tw-px-4 tw-py-5":e});function ec(e,t){if(1&e&&(w.j41(0,"div",0),w.SdG(1),w.k0s()),2&e){const e=w.XpG();w.Y8G("ngClass",w.eq3(2,_l,!e.disablePadding)),w.BMQ("tabIndex",e.noFocusableChildren?0:void 0)}}class tc{get content(){return this._contentPortal}constructor(e){this.viewContainerRef=e,this.disablePadding=!1,this._contentPortal=null}ngOnInit(){this._contentPortal=new $l.VA(this.implicitContent,this.viewContainerRef)}}tc.ɵfac=function(e){return new(e||tc)(w.rXU(w.c1b))},tc.ɵcmp=w.VBU({type:tc,selectors:[["vault-carousel-slide"]],viewQuery:function(e,t){if(1&e&&w.GBs(w.C4Q,7),2&e){let e;w.mGM(e=w.lsd())&&(t.implicitContent=e.first)}},inputs:{label:"label",disablePadding:[2,"disablePadding","disablePadding",ue.L39],noFocusableChildren:[2,"noFocusableChildren","noFocusableChildren",rl.he]},ngContentSelectors:["*"],decls:1,vars:0,consts:[["role","tabpanel",3,"ngClass"]],template:function(e,t){1&e&&(w.NAR(),w.DNE(0,ec,2,4,"ng-template"))},dependencies:[ve.MD,ve.YU],encapsulation:2});var ic=i(2683);const nc=i(82392).JW`
|
|
<svg class="tw-block" width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" data-testid="inactive-carousel-icon">
|
|
<rect class="tw-stroke-current" x="0.5" y="0.5" width="11" height="11" rx="5.5" />
|
|
</svg>
|
|
`;var rc=i(45383),sc=i(8168);const oc=["btn"];class ac{constructor(){this.CarouselIcon=nc,this.onClick=new a.bkB}focus(){this.button.nativeElement.focus()}get dynamicClasses(){return this.isActive?["[&_rect]:tw-fill-primary-600","tw-text-primary-600"]:["tw-text-muted","[&_rect]:hover:tw-fill-text-muted","focus-visible:tw-text-info-700"]}}function lc(e,t){}ac.ɵfac=function(e){return new(e||ac)},ac.ɵcmp=w.VBU({type:ac,selectors:[["vault-carousel-button"]],viewQuery:function(e,t){if(1&e&&w.GBs(oc,7),2&e){let e;w.mGM(e=w.lsd())&&(t.button=e.first)}},inputs:{slide:"slide",isActive:"isActive"},outputs:{onClick:"onClick"},decls:3,vars:5,consts:[["btn",""],["type","button","role","tab",1,"tw-size-6","tw-p-0","tw-flex","tw-items-center","tw-justify-center","tw-border-2","tw-border-solid","tw-rounded-full","tw-transition","tw-bg-transparent","tw-border-transparent","focus-visible:tw-outline-none","focus-visible:tw-border-primary-600",3,"click","ngClass"],[3,"content"]],template:function(e,t){1&e&&(w.j41(0,"button",1,0),w.bIt("click",function(){return t.onClick.emit()}),w.nrm(2,"bit-svg",2),w.k0s()),2&e&&(w.Y8G("ngClass",t.dynamicClasses),w.BMQ("aria-selected",t.isActive)("tabindex",t.isActive?0:-1)("aria-label",t.slide.label),w.R7$(2),w.Y8G("content",t.CarouselIcon))},dependencies:[ve.MD,ve.YU,rc.Z,sc.k],encapsulation:2});class cc{}cc.ɵfac=function(e){return new(e||cc)},cc.ɵcmp=w.VBU({type:cc,selectors:[["vault-carousel-content"]],inputs:{content:"content"},decls:2,vars:1,consts:[["aria-live","polite","aria-atomic","false",1,"tw-m-auto","tw-text-main"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(w.j41(0,"div",0),w.DNE(1,lc,0,0,"ng-template",1),w.k0s()),2&e&&(w.R7$(),w.Y8G("cdkPortalOutlet",t.content))},dependencies:[$l.I3],encapsulation:2});var dc=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const uc=["container"],hc=["carouselButtonWrapper"],Ac=["tempSlideContainer"],pc=[[["","carouselActions",""]]],gc=e=>({minHeight:e});function vc(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",12),w.nI1(1,"i18n"),w.bIt("click",function(){a.eBV(e);const t=w.XpG();return a.Njj(t.prevSlide())}),w.k0s()}if(2&e){const e=w.XpG();w.Y8G("label",w.mNQ(w.bMT(1,3,"back")))("disabled",e.selectedIndex<=0)}}function mc(e,t){if(1&e){const e=w.RV6();w.j41(0,"vault-carousel-button",13),w.bIt("onClick",function(){const t=a.eBV(e).$index,i=w.XpG();return a.Njj(i.selectSlide(t))}),w.k0s()}if(2&e){const e=t.$implicit,i=t.$index,n=w.XpG();w.Y8G("slide",e)("isActive",i===n.selectedIndex)}}function fc(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",14),w.nI1(1,"i18n"),w.bIt("click",function(){a.eBV(e);const t=w.XpG();return a.Njj(t.nextSlide())}),w.k0s()}if(2&e){const e=w.XpG();w.Y8G("label",w.mNQ(w.bMT(1,3,"next")))("disabled",e.selectedIndex>=e.slides.length-1)}}function yc(e,t){}function bc(e,t){1&e&&(w.j41(0,"div",11,2),w.DNE(2,yc,0,0,"ng-template",15),w.k0s())}class Cc{constructor(e,t){this.ngZone=e,this.destroyRef=t,this.changeDetectorRef=(0,a.WQX)(ue.gRc),this.label="",this.hideArrows=(0,ue.hFB)(!1),this.slideChange=new a.bkB,this.selectedIndex=0,this.minHeight=null,this.keyManager=null}selectSlide(e){this.selectedIndex=e,this.slideChange.emit(e)}nextSlide(){this.selectedIndex<this.slides.length-1&&this.selectSlide(this.selectedIndex+1)}prevSlide(){this.selectedIndex>0&&this.selectSlide(this.selectedIndex-1)}ngAfterViewInit(){return dc(this,void 0,void 0,function*(){this.keyManager=new ic.B(this.carouselButtons).withHorizontalOrientation("ltr").withWrap().withHomeAndEnd(),this.keyManager.setFirstItemActive(),this.ngZone.onStable.pipe((0,Qo.s)(1),(0,he.pQ)(this.destroyRef)).subscribe(()=>{this.setMinHeightOfCarousel()})})}setMinHeightOfCarousel(){return dc(this,void 0,void 0,function*(){const e=this.carouselButtonWrapper.nativeElement.offsetHeight,t=this.carouselContainer.nativeElement.offsetWidth,i=this.carouselContainer.nativeElement.offsetHeight;this.tempSlideContainer.nativeElement.style.width=`${t}px`;let n=i-e;for(let r=0;r<this.slides.length;r++)r!==this.selectedIndex&&(this.tempSlideOutlet.attach(this.slides.get(r).content),yield new Promise(requestAnimationFrame),this.tempSlideContainer.nativeElement.offsetHeight>n&&(n=this.tempSlideContainer.nativeElement.offsetHeight),this.tempSlideOutlet.detach());this.minHeight=`${n+e}px`,this.changeDetectorRef.detectChanges()})}}Cc.ɵfac=function(e){return new(e||Cc)(w.rXU(a.SKi),w.rXU(a.abz))},Cc.ɵcmp=w.VBU({type:Cc,selectors:[["vault-carousel"]],contentQueries:function(e,t,i){if(1&e&&w.wni(i,tc,4),2&e){let e;w.mGM(e=w.lsd())&&(t.slides=e)}},viewQuery:function(e,t){if(1&e&&w.GBs(uc,5)(hc,5)(Ac,5)($l.I3,5)(ac,5),2&e){let e;w.mGM(e=w.lsd())&&(t.carouselContainer=e.first),w.mGM(e=w.lsd())&&(t.carouselButtonWrapper=e.first),w.mGM(e=w.lsd())&&(t.tempSlideContainer=e.first),w.mGM(e=w.lsd())&&(t.tempSlideOutlet=e.first),w.mGM(e=w.lsd())&&(t.carouselButtons=e)}},inputs:{label:"label",hideArrows:[1,"hideArrows"]},outputs:{slideChange:"slideChange"},ngContentSelectors:["[carouselActions]"],decls:14,vars:8,consts:[["container",""],["carouselButtonWrapper",""],["tempSlideContainer",""],["aria-roledescription","carousel",1,"tw-flex","tw-flex-col",3,"ngStyle"],[3,"content"],[1,"tw-w-full","tw-flex","tw-justify-between","tw-mt-auto","tw-px-4","tw-pb-2","tw-pt-4"],[1,"tw-size-6"],["type","button","bitIconButton","bwi-angle-left","size","small",1,"tw-size-6","tw-p-0","tw-flex","tw-items-center","tw-justify-center",3,"disabled","label"],["role","tablist",1,"tw-w-full","tw-flex","tw-gap-2","tw-justify-center","tw-mt-auto",3,"keydown"],[3,"slide","isActive"],["type","button","bitIconButton","bwi-angle-right","size","small",1,"tw-size-6","tw-p-0","tw-flex","tw-items-center","tw-justify-center",3,"disabled","label"],[1,"tw-absolute","tw-invisible"],["type","button","bitIconButton","bwi-angle-left","size","small",1,"tw-size-6","tw-p-0","tw-flex","tw-items-center","tw-justify-center",3,"click","disabled","label"],[3,"onClick","slide","isActive"],["type","button","bitIconButton","bwi-angle-right","size","small",1,"tw-size-6","tw-p-0","tw-flex","tw-items-center","tw-justify-center",3,"click","disabled","label"],["cdkPortalOutlet",""]],template:function(e,t){var i;if(1&e&&(w.NAR(pc),w.j41(0,"section",3,0),w.nrm(2,"vault-carousel-content",4),w.j41(3,"div",5)(4,"span",6),w.nVh(5,vc,2,5,"button",7),w.k0s(),w.j41(6,"div",8,1),w.bIt("keydown",function(e){return t.keyManager.onKeydown(e)}),w.Z7z(8,mc,1,2,"vault-carousel-button",9,w.Vm6),w.k0s(),w.j41(10,"span",6),w.nVh(11,fc,2,5,"button",10),w.k0s()(),w.SdG(12),w.nVh(13,bc,3,0,"div",11),w.k0s()),2&e){let e;w.Y8G("ngStyle",w.eq3(6,gc,null!==(i=t.minHeight)&&void 0!==i?i:void 0)),w.BMQ("aria-label",t.label),w.R7$(2),w.Y8G("content",null==(e=t.slides.get(t.selectedIndex))?null:e.content),w.R7$(3),w.vxM(t.hideArrows()?-1:5),w.R7$(3),w.Dyx(t.slides),w.R7$(3),w.vxM(t.hideArrows()?-1:11),w.R7$(2),w.vxM(null===t.minHeight?13:-1)}},dependencies:[$l.I3,ve.MD,ve.B3,v.p,I.Q,Y.s,y.t,cc,ac,X.$],encapsulation:2});class Ic{}Ic.ɵfac=function(e){return new(e||Ic)},Ic.ɵmod=w.$C({type:Ic}),Ic.ɵinj=a.G2t({imports:[Cc,tc]});var wc=i(32924),Bc=i(38411);const Ec=(e,t)=>t.type;function Sc(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",2),w.nI1(1,"i18n"),w.bIt("click",function(){a.eBV(e);const t=w.XpG();return a.Njj(t.handleButtonClick())}),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}if(2&e){const e=w.XpG();w.Y8G("appA11yTitle",w.bMT(1,6,e.getButtonLabel()))("bitPopoverAnchorFor",e.coachmarkPopover())("popoverOpen",e.coachmarkPopoverOpen())("position",e.coachmarkPosition())("spotlight",!!e.coachmarkPopover()),w.R7$(2),w.SpI(" ",w.bMT(3,8,e.getButtonLabel())," ")}}function Qc(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",6),w.bIt("click",function(){const t=a.eBV(e).$implicit,i=w.XpG(2);return a.Njj(i.cipherAdded.emit(t.type))}),w.nrm(1,"i",7),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}if(2&e){const e=t.$implicit;w.R7$(),w.HbH(w.VkB("bwi ",e.icon)),w.R7$(),w.SpI(" ",w.bMT(3,4,e.labelKey)," ")}}function kc(e,t){1&e&&w.nrm(0,"bit-menu-divider")}function Rc(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",6),w.bIt("click",function(){a.eBV(e);const t=w.XpG(2);return a.Njj(t.folderAdded.emit())}),w.nrm(1,"i",8),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"folder")," "))}function Fc(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",6),w.bIt("click",function(){a.eBV(e);const t=w.XpG(2);return a.Njj(t.collectionAdded.emit())}),w.nrm(1,"i",9),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"collection")," "))}function Tc(e,t){if(1&e){const e=w.RV6();w.j41(0,"div")(1,"button",3),w.nI1(2,"i18n"),w.bIt("click",function(){a.eBV(e);const t=w.XpG();return a.Njj(t.handleButtonClick())}),w.EFF(3),w.nI1(4,"i18n"),w.k0s(),w.j41(5,"bit-menu",4,0),w.Z7z(7,Qc,4,6,"button",5,Ec),w.nI1(9,"async"),w.nVh(10,kc,1,0,"bit-menu-divider"),w.nVh(11,Rc,4,3,"button",5),w.nVh(12,Fc,4,3,"button",5),w.k0s()()}if(2&e){const e=w.sdS(6),t=w.XpG();w.R7$(),w.Y8G("bitMenuTriggerFor",t.isOnlyCollectionCreation()?null:e)("appA11yTitle",w.bMT(2,11,t.getButtonLabel()))("bitPopoverAnchorFor",t.coachmarkPopover())("popoverOpen",t.coachmarkPopoverOpen())("position",t.coachmarkPosition())("spotlight",!!t.coachmarkPopover())("closeOnBackdropClick",!1),w.R7$(2),w.SpI(" ",w.bMT(4,13,t.getButtonLabel())," "),w.R7$(4),w.Dyx(w.bMT(9,15,t.cipherMenuItems$)),w.R7$(3),w.vxM(t.canCreateCipher()?10:-1),w.R7$(),w.vxM(t.canCreateFolder()?11:-1),w.R7$(),w.vxM(t.canCreateCollection()?12:-1)}}class Dc{constructor(e,t){this.restrictedItemTypesService=e,this.configService=t,this.canCreateCipher=(0,ue.hFB)(!1),this.canCreateFolder=(0,ue.hFB)(!1),this.canCreateCollection=(0,ue.hFB)(!1),this.canCreateSshKey=(0,ue.hFB)(!1),this.coachmarkPopover=(0,ue.hFB)(),this.coachmarkPopoverOpen=(0,ue.hFB)(!1),this.coachmarkPosition=(0,ue.hFB)(),this.folderAdded=(0,ue.CGW)(),this.collectionAdded=(0,ue.CGW)(),this.cipherAdded=(0,ue.CGW)(),this.onAddItemDialog=(0,ue.CGW)(),this.btnTextAddCreateFeatureFlag=(0,he.ot)(this.configService.getFeatureFlag$(Se.TO.PM32380_BtnTextAddCreate),{initialValue:!1}),this.useNewItemDialog=(0,he.ot)(this.configService.getFeatureFlag$(Se.TO.PM32009NewItemTypes),{initialValue:!1}),this.cipherMenuItems$=(0,n.z)([this.restrictedItemTypesService.restricted$,(0,he.br)(this.canCreateCipher),(0,he.br)(this.canCreateSshKey)]).pipe((0,r.T)(([e,t,i])=>t?Ol.filter(t=>!(!i&&t.type===p.gC.SshKey)&&!e.some(e=>e.cipherType===t.type)):[]),(0,ls.t)({bufferSize:1,refCount:!0}))}getButtonLabel(){const e=this.canCreateCipher(),t=this.canCreateFolder(),i=this.canCreateCollection(),n=this.btnTextAddCreateFeatureFlag();return e||t||!i?n?"add":"new":n?"addCollection":"newCollection"}isOnlyCollectionCreation(){return!this.canCreateCipher()&&!this.canCreateFolder()&&this.canCreateCollection()}handleButtonClick(){this.isOnlyCollectionCreation()?this.collectionAdded.emit():this.useNewItemDialog()&&this.onAddItemDialog.emit()}}Dc.ɵfac=function(e){return new(e||Dc)(w.rXU(Ul.b),w.rXU(He.w))},Dc.ɵcmp=w.VBU({type:Dc,selectors:[["vault-new-cipher-menu"]],inputs:{canCreateCipher:[1,"canCreateCipher"],canCreateFolder:[1,"canCreateFolder"],canCreateCollection:[1,"canCreateCollection"],canCreateSshKey:[1,"canCreateSshKey"],coachmarkPopover:[1,"coachmarkPopover"],coachmarkPopoverOpen:[1,"coachmarkPopoverOpen"],coachmarkPosition:[1,"coachmarkPosition"]},outputs:{folderAdded:"folderAdded",collectionAdded:"collectionAdded",cipherAdded:"cipherAdded",onAddItemDialog:"onAddItemDialog"},decls:2,vars:1,consts:[["addOptions",""],["bitButton","","buttonType","primary","type","button","id","newItemButton","startIcon","bwi-plus",3,"appA11yTitle","bitPopoverAnchorFor","popoverOpen","position","spotlight"],["bitButton","","buttonType","primary","type","button","id","newItemButton","startIcon","bwi-plus",3,"click","appA11yTitle","bitPopoverAnchorFor","popoverOpen","position","spotlight"],["bitButton","","buttonType","primary","type","button","id","newItemDropdown","startIcon","bwi-plus",3,"click","bitMenuTriggerFor","appA11yTitle","bitPopoverAnchorFor","popoverOpen","position","spotlight","closeOnBackdropClick"],["aria-labelledby","newItemDropdown"],["type","button","bitMenuItem",""],["type","button","bitMenuItem","",3,"click"],["slot","start","aria-hidden","true"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-folder"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-collection-shared"]],template:function(e,t){1&e&&w.nVh(0,Sc,4,10,"button",1)(1,Tc,13,17,"div"),2&e&&w.vxM(t.useNewItemDialog()&&(t.canCreateCipher()||t.canCreateCollection()||t.canCreateFolder())?0:t.canCreateCipher()||t.canCreateCollection()||t.canCreateFolder()?1:-1)},dependencies:[y.t,P.Q,ve.MD,Do.M,Zo.Z,Ho.O,Jo.S,wc.M,Eo.k,Bc.d,v.p,Pr.C,ve.Jj,mt.$Z],encapsulation:2});class Pc{constructor(){this.platformUtilService=(0,a.WQX)(E.y)}openLearnMore(e){e.preventDefault(),this.platformUtilService.launchUri("https://bitwarden.com/help/website-icons/")}}Pc.ɵfac=function(e){return new(e||Pc)},Pc.ɵcmp=w.VBU({type:Pc,selectors:[["vault-permit-cipher-details-popover"]],decls:13,vars:13,consts:[["permitDetailsPopover",""],["type","button","position","above-center","bitLink","","startIcon","bwi-question-circle",1,"tw-border-none","tw-bg-transparent","tw-text-primary-600","tw-p-0",3,"bitPopoverTriggerFor","appA11yTitle"],[3,"title"],[1,"tw-flex","tw-gap-1.5","tw-items-center"],["bitLink","","href","#",1,"tw-flex",3,"click"],["slot","end","aria-hidden","true",1,"bwi","bwi-external-link","tw-text-primary-600"]],template:function(e,t){if(1&e&&(w.nrm(0,"button",1),w.nI1(1,"i18n"),w.j41(2,"bit-popover",2,0),w.nI1(4,"i18n"),w.j41(5,"p"),w.EFF(6),w.nI1(7,"i18n"),w.k0s(),w.j41(8,"div",3)(9,"a",4),w.bIt("click",function(e){return t.openLearnMore(e)}),w.EFF(10),w.nI1(11,"i18n"),w.k0s(),w.nrm(12,"i",5),w.k0s()()),2&e){const e=w.sdS(3);w.Y8G("bitPopoverTriggerFor",e)("appA11yTitle",w.bMT(1,5,"aboutThisSetting")),w.R7$(2),w.Y8G("title",w.bMT(4,7,"aboutThisSetting")),w.R7$(4),w.SpI(" ",w.bMT(7,9,"permitCipherDetailsDescription")," "),w.R7$(4),w.SpI(" ",w.bMT(11,11,"learnMore")," ")}},dependencies:[Eo.k,oa.r,aa.k,v.p,Pr.C,zi.V,De.g,X.$],encapsulation:2});var Mc=i(55807);const xc=Object.freeze({Accepted:"accepted",Declined:"declined"});class Vc{constructor(){this.params=(0,a.WQX)(Qr.Qs),this.dialogRef=(0,a.WQX)(Q.ce),this.platformUtilsService=(0,a.WQX)(E.y),this.organizationName=this.params.organizationName}acceptTransfer(){this.dialogRef.close(xc.Accepted)}decline(){this.dialogRef.close(xc.Declined)}openLearnMore(e){e.preventDefault(),this.platformUtilsService.launchUri("https://bitwarden.com/help/transfer-ownership/")}static open(e,t){return e.open(Vc,Object.assign({positionStrategy:new W.u,disableClose:!0},t))}}Vc.ɵfac=function(e){return new(e||Vc)},Vc.ɵcmp=w.VBU({type:Vc,selectors:[["ng-component"]],decls:22,vars:23,consts:[["hideIcon",""],["bitDialogTitle",""],["bitDialogContent",""],["bitLink","","href","#","endIcon","bwi-external-link",3,"click","aria-label"],[1,"tw-mb-0"],["bitDialogFooter",""],["bitButton","","type","button","buttonType","primary",3,"click"],["bitLink","","type","button","linkType","primary",1,"tw-mt-1","tw-self-center","tw-text-sm",3,"click"]],template:function(e,t){1&e&&(w.j41(0,"bit-simple-dialog",0)(1,"span",1),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"span",2)(5,"p"),w.EFF(6),w.nI1(7,"i18n"),w.j41(8,"a",3),w.nI1(9,"i18n"),w.bIt("click",function(e){return t.openLearnMore(e)}),w.EFF(10),w.nI1(11,"i18n"),w.k0s()(),w.j41(12,"p",4),w.EFF(13),w.nI1(14,"i18n"),w.k0s()(),w.qex(15,5),w.j41(16,"button",6),w.bIt("click",function(){return t.acceptTransfer()}),w.EFF(17),w.nI1(18,"i18n"),w.k0s(),w.j41(19,"button",7),w.bIt("click",function(){return t.decline()}),w.EFF(20),w.nI1(21,"i18n"),w.k0s(),w.bVm(),w.k0s()),2&e&&(w.R7$(2),w.JRh(w.i5U(3,7,"transferItemsToOrganizationTitle",t.organizationName)),w.R7$(4),w.SpI(" ",w.i5U(7,10,"transferItemsToOrganizationDescription",t.organizationName)," "),w.R7$(2),w.jOp("aria-label",w.bMT(9,13,"openTransferItemsHelpArticle")),w.R7$(2),w.SpI(" ",w.bMT(11,15,"learnMore")," "),w.R7$(3),w.SpI(" ",w.bMT(14,17,"transferItemsToOrganizationAction")," "),w.R7$(4),w.SpI(" ",w.bMT(18,19,"acceptTransfer")," "),w.R7$(3),w.SpI(" ",w.bMT(21,21,"declineAndLeave")," "))},dependencies:[y.t,P.Q,b.P,V.hJ,V.o_,Mc.o,zi.V,De.g,Pe.E,v.p,X.$],encapsulation:2,changeDetection:0});const Gc=Object.freeze({Confirmed:"confirmed",Back:"back"});class Uc{constructor(){this.params=(0,a.WQX)(Qr.Qs),this.dialogRef=(0,a.WQX)(Q.ce),this.platformUtilsService=(0,a.WQX)(E.y),this.organizationName=this.params.organizationName}confirmLeave(){this.dialogRef.close(Gc.Confirmed)}goBack(){this.dialogRef.close(Gc.Back)}openLearnMore(e){e.preventDefault(),this.platformUtilsService.launchUri("https://bitwarden.com/help/transfer-ownership/")}static open(e,t){return e.open(Uc,Object.assign({positionStrategy:new W.u,disableClose:!0},t))}}Uc.ɵfac=function(e){return new(e||Uc)},Uc.ɵcmp=w.VBU({type:Uc,selectors:[["ng-component"]],decls:23,vars:19,consts:[["bitDialogIcon","","name","bwi-exclamation-triangle",1,"tw-text-warning","tw-text-3xl"],["bitDialogTitle",""],["bitDialogContent",""],["bitTypography","body1"],["bitTypography","body1",1,"tw-mb-0"],["bitDialogFooter",""],["bitButton","","type","button","buttonType","danger",3,"click"],["bitButton","","type","button","buttonType","secondary",3,"click"],["bitLink","","href","#",1,"tw-self-center","tw-text-sm",3,"click"],["name","bwi-external-link",1,"tw-ml-1"]],template:function(e,t){1&e&&(w.j41(0,"bit-simple-dialog"),w.nrm(1,"bit-icon",0),w.j41(2,"span",1),w.EFF(3),w.nI1(4,"i18n"),w.k0s(),w.qex(5,2),w.j41(6,"p",3),w.EFF(7),w.nI1(8,"i18n"),w.k0s(),w.j41(9,"p",4),w.EFF(10),w.nI1(11,"i18n"),w.k0s(),w.bVm(),w.qex(12,5),w.j41(13,"button",6),w.bIt("click",function(){return t.confirmLeave()}),w.EFF(14),w.nI1(15,"i18n"),w.k0s(),w.j41(16,"button",7),w.bIt("click",function(){return t.goBack()}),w.EFF(17),w.nI1(18,"i18n"),w.k0s(),w.j41(19,"a",8),w.bIt("click",function(e){return t.openLearnMore(e)}),w.EFF(20),w.nI1(21,"i18n"),w.nrm(22,"bit-icon",9),w.k0s(),w.bVm(),w.k0s()),2&e&&(w.R7$(3),w.JRh(w.bMT(4,6,"leaveConfirmationDialogTitle")),w.R7$(4),w.SpI(" ",w.bMT(8,8,"leaveConfirmationDialogContentOne")," "),w.R7$(3),w.SpI(" ",w.bMT(11,10,"leaveConfirmationDialogContentTwo")," "),w.R7$(4),w.SpI(" ",w.i5U(15,12,"leaveConfirmationDialogConfirmButton",t.organizationName)," "),w.R7$(3),w.SpI(" ",w.bMT(18,15,"goBack")," "),w.R7$(3),w.SpI(" ",w.bMT(21,17,"howToManageMyVault")," "))},dependencies:[y.t,P.Q,b.P,V.LJ,V.hJ,V.o_,Mc.o,Ll.R,zi.V,De.g,Pe.E,Oe.r,v.p,X.$],encapsulation:2,changeDetection:0});var Oc=i(91326),Nc=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const jc=e=>null!=e?new Date(e):null,Yc=new s.Ok(s.Mw,"notificationBannerDismissed",{deserializer:jc,clearOn:[]}),Xc=new s.Ok(s.Mw,"notificationBannerDismissedSession",{deserializer:jc,clearOn:["logout"]});class zc{constructor(){this.accountService=(0,a.WQX)(R.D),this.policyService=(0,a.WQX)(uo.m),this.configService=(0,a.WQX)(He.w),this.stateProvider=(0,a.WQX)(s.v2),this.eventCollectionService=(0,a.WQX)(J.c_),this.userNotificationPolicies$=this.accountService.activeAccount$.pipe(m.F6,(0,fe.n)(e=>this.policyService.policiesByType$(lo.tt.OrganizationUserNotification,e))),this.latestUserNotificationPolicy$=this.userNotificationPolicies$.pipe((0,r.T)(e=>e.reduce((e,t)=>null==e||t.revisionDate>e.revisionDate?t:e,null))),this.notificationData$=this.latestUserNotificationPolicy$.pipe((0,r.T)(e=>{var t,i,n,r,s,o,a,l;return e&&e.enabled?{organizationId:e.organizationId,header:null!==(i=null===(t=e.data)||void 0===t?void 0:t.header)&&void 0!==i?i:null,description:null!==(r=null===(n=e.data)||void 0===n?void 0:n.description)&&void 0!==r?r:"",buttonText:null!==(o=null===(s=e.data)||void 0===s?void 0:s.buttonText)&&void 0!==o?o:null,showAfterEveryLogin:null!==(l=null===(a=e.data)||void 0===a?void 0:a.showAfterEveryLogin)&&void 0!==l&&l,revisionDate:e.revisionDate}:null}),(0,so.F)((e,t)=>e===t||null!=e&&null!=t&&(e.organizationId===t.organizationId&&e.header===t.header&&e.description===t.description&&e.buttonText===t.buttonText&&e.showAfterEveryLogin===t.showAfterEveryLogin&&e.revisionDate.getTime()===t.revisionDate.getTime()))),this.showNotificationBanner$=this.accountService.activeAccount$.pipe(m.F6,(0,fe.n)(e=>(0,n.z)([this.notificationData$,this.stateProvider.getUser(e,Yc).state$,this.stateProvider.getUser(e,Xc).state$,this.configService.getFeatureFlag$(Se.TO.PM31948_OrgUserNotificationBanner)])),(0,r.T)(([e,t,i,n])=>!(!e||!n)&&(null==t||t<e.revisionDate||e.showAfterEveryLogin&&null==i)))}saveDismissalToState(){return Nc(this,void 0,void 0,function*(){const e=yield(0,h._)(this.accountService.activeAccount$.pipe(m.F6)),t=new Date;yield Promise.all([this.stateProvider.getUser(e,Yc).update(()=>t),this.stateProvider.getUser(e,Xc).update(()=>t)])})}recordActionButtonClick(e){return Nc(this,void 0,void 0,function*(){yield this.eventCollectionService.collect(J.Bx.OrganizationUser_NotificationBannerActionClicked,void 0,!1,e),yield this.saveDismissalToState()})}}zc.ɵfac=function(e){return new(e||zc)},zc.ɵprov=a.jDH({token:zc,factory:zc.ɵfac});var Lc=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function Wc(e,t){if(1&e){const e=w.RV6();w.j41(0,"bit-banner",0),w.EFF(1),w.qex(2,1),w.j41(3,"button",2),w.bIt("click",function(){a.eBV(e);const t=w.XpG(2),i=w.XpG(2);return a.Njj(i.actionButtonClick(t.organizationId))}),w.EFF(4),w.k0s(),w.bVm(),w.k0s()}if(2&e){const e=w.XpG(),i=w.XpG();w.Y8G("title",e),w.R7$(),w.SpI(" ",i.description," "),w.R7$(3),w.SpI(" ",t," ")}}function Kc(e,t){if(1&e){const e=w.RV6();w.j41(0,"bit-banner",3),w.bIt("dismiss",function(){a.eBV(e);const t=w.XpG(4);return a.Njj(t.close())}),w.EFF(1),w.k0s()}if(2&e){const e=w.XpG(),t=w.XpG();w.Y8G("title",e),w.R7$(),w.SpI(" ",t.description," ")}}function Zc(e,t){if(1&e&&w.nVh(0,Wc,5,3,"bit-banner",0)(1,Kc,2,2,"bit-banner",0),2&e){let e;const t=w.XpG();w.vxM((e=t.buttonText)?0:1,e)}}function Hc(e,t){if(1&e){const e=w.RV6();w.j41(0,"bit-banner",4),w.bIt("dismiss",function(){a.eBV(e);const t=w.XpG(3);return a.Njj(t.close())}),w.EFF(1),w.k0s()}if(2&e){const e=w.XpG();w.R7$(),w.SpI(" ",e.description," ")}}function Jc(e,t){if(1&e&&w.nVh(0,Zc,2,1)(1,Hc,2,1,"bit-banner"),2&e){let e;w.vxM((e=t.header)?0:1,e)}}function qc(e,t){if(1&e&&w.nVh(0,Jc,2,1),2&e){let e;const t=w.XpG();w.vxM((e=t.notificationData())?0:-1,e)}}class $c{constructor(){this.vaultOrganizationUserNotificationsService=(0,a.WQX)(zc),this.notificationData=(0,he.ot)(this.vaultOrganizationUserNotificationsService.notificationData$),this.showBanner=(0,he.ot)(this.vaultOrganizationUserNotificationsService.showNotificationBanner$,{initialValue:!1})}close(){return Lc(this,void 0,void 0,function*(){yield this.vaultOrganizationUserNotificationsService.saveDismissalToState()})}actionButtonClick(e){return Lc(this,void 0,void 0,function*(){yield this.vaultOrganizationUserNotificationsService.recordActionButtonClick(e)})}}$c.ɵfac=function(e){return new(e||$c)},$c.ɵcmp=w.VBU({type:$c,selectors:[["vault-organization-user-notifications"]],features:[w.Jv_([zc])],decls:1,vars:1,consts:[[3,"title"],["slot","actions"],["bitButton","","type","button","buttonType","primary",3,"click"],[3,"dismiss","title"],[3,"dismiss"]],template:function(e,t){1&e&&w.nVh(0,qc,1,1),2&e&&w.vxM(t.showBanner()?0:-1)},dependencies:[Oc.K,y.t,P.Q],encapsulation:2,changeDetection:0});var _c=i(75697),ed=i(36890),td=i(96540),id=i(95713),nd=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class rd{constructor(e,t,i,n,r,s){this.dialogService=e,this.toastService=t,this.platformUtilsService=i,this.i18nService=n,this.configService=r,this.logService=s}importSshKeyFromClipboard(){return nd(this,void 0,void 0,function*(){const e=yield this.platformUtilsService.readFromClipboard();let t=!1,i=null;try{i=(0,We.import_ssh_key)(e)}catch(n){const e=n;if("PasswordRequired"!==e.variant&&"WrongPassword"!==e.variant)return this.toastService.showToast({variant:"error",title:"",message:this.i18nService.t(this.sshImportErrorVariantToI18nKey(e.variant))}),null;t=!0}if(t)for(;;){const t=yield this.getSshKeyPassword();if(""===t||null==t)return null;try{i=(0,We.import_ssh_key)(e,t);break}catch(n){const e=n;if("WrongPassword"!==e.variant)return this.toastService.showToast({variant:"error",title:"",message:this.i18nService.t(this.sshImportErrorVariantToI18nKey(e.variant))}),null}}if(rd.ECDSA_KEY_TYPES.some(e=>i.publicKey.startsWith(e))){if(!(yield this.configService.getFeatureFlag(Se.TO.SSHecdsa))){this.logService.error("ECDSA SSH key import blocked: SSHecdsa feature flag is not enabled");const e="UnsupportedKeyType";return this.toastService.showToast({variant:"error",title:"",message:this.i18nService.t(this.sshImportErrorVariantToI18nKey(e))}),null}}return this.toastService.showToast({variant:"success",title:"",message:this.i18nService.t("sshKeyImported")}),new td.E(new ed.m({privateKey:i.privateKey,publicKey:i.publicKey,keyFingerprint:i.fingerprint}))})}sshImportErrorVariantToI18nKey(e){switch(e){case"ParsingError":return"invalidSshKey";case"UnsupportedKeyType":return"sshKeyTypeUnsupported";case"PasswordRequired":case"WrongPassword":return"sshKeyWrongPassword";default:return"errorOccurred"}}getSshKeyPassword(){return nd(this,void 0,void 0,function*(){const e=this.dialogService.open(id.AM,{ariaModal:!0});return yield(0,h._)(e.closed)})}}rd.ECDSA_KEY_TYPES=["ecdsa-sha2-nistp256","ecdsa-sha2-nistp384","ecdsa-sha2-nistp521"],rd.ɵfac=function(e){return new(e||rd)(a.KVO(W.o),a.KVO(k.f),a.KVO(E.y),a.KVO(S.W),a.KVO(He.w),a.KVO(Qe.K))},rd.ɵprov=a.jDH({token:rd,factory:rd.ɵfac});class sd{}var od=i(39488),ad=i(97432),ld=i(81216),cd=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class dd{constructor(e,t,i,n,r,s,o,a,l,c,d){this.cipherService=e,this.policyService=t,this.organizationService=i,this.collectionService=n,this.logService=r,this.i18nService=s,this.dialogService=o,this.toastService=a,this.eventCollectionService=l,this.organizationUserApiService=c,this.syncService=d,this._transferInProgressSubject=new ns.t(!1),this.transferInProgress$=this._transferInProgressSubject.asObservable(),this.enforcementInFlight=!1}enforcingOrganization$(e){return this.policyService.policiesByType$(lo.tt.OrganizationDataOwnership,e).pipe((0,r.T)(e=>{var t;return null===(t=e.filter(e=>{var t;return!0===(null===(t=e.data)||void 0===t?void 0:t.enableIndividualItemsTransfer)}).sort((e,t)=>e.revisionDate.getTime()-t.revisionDate.getTime()))||void 0===t?void 0:t[0]}),(0,fe.n)(t=>null==t?(0,ye.of)(void 0):this.organizationService.organizations$(e).pipe((0,ke.Hc)(t.organizationId),(0,r.T)(e=>(null==e?void 0:e.status)===lo.Zx.Confirmed?e:void 0))))}personalCiphers$(e){return this.cipherService.cipherViews$(e).pipe((0,ad.w)(),(0,r.T)(e=>e.filter(e=>null==e.organizationId)))}userMigrationInfo$(e){return this.enforcingOrganization$(e).pipe((0,fe.n)(t=>null==t?(0,ye.of)({requiresMigration:!1}):(0,n.z)([this.personalCiphers$(e),this.collectionService.defaultUserCollection$(e,t.id)]).pipe((0,r.T)(([e,i])=>({requiresMigration:e.length>0,enforcingOrganization:t,defaultCollectionId:null==i?void 0:i.id})))))}promptUserForTransfer(e){return cd(this,void 0,void 0,function*(){const t=Vc.open(this.dialogService,{data:{organizationName:e}});if((yield(0,h._)(t.closed))===xc.Accepted)return!0;const i=Uc.open(this.dialogService,{data:{organizationName:e}});return(yield(0,h._)(i.closed))===Gc.Back&&this.promptUserForTransfer(e)})}enforceOrganizationDataOwnership(e){return cd(this,void 0,void 0,function*(){if(this.enforcementInFlight)return;const t=yield(0,h._)(this.userMigrationInfo$(e));if(!t.requiresMigration)return;if(null==t.defaultCollectionId)return void this.logService.warning("Default collection is missing for user during organization data ownership enforcement");this.enforcementInFlight=!0;if(!(yield this.promptUserForTransfer(t.enforcingOrganization.name)))return yield this.organizationUserApiService.revokeSelf(t.enforcingOrganization.id),this.toastService.showToast({variant:"success",message:this.i18nService.t("leftOrganization")}),yield this.syncService.fullSync(!0),void(this.enforcementInFlight=!1);try{this._transferInProgressSubject.next(!0),yield this.transferPersonalItems(e,t.enforcingOrganization.id,t.defaultCollectionId),this._transferInProgressSubject.next(!1),this.toastService.showToast({variant:"success",message:this.i18nService.t("itemsTransferred")}),yield this.eventCollectionService.collect(J.Bx.Organization_ItemOrganization_Accepted,void 0,void 0,t.enforcingOrganization.id)}catch(i){this._transferInProgressSubject.next(!1),this.logService.error("Error transferring personal items to organization",i),this.toastService.showToast({variant:"error",message:this.i18nService.t("errorOccurred")})}finally{this.enforcementInFlight=!1}})}transferPersonalItems(e,t,i){return cd(this,void 0,void 0,function*(){let n=yield(0,h._)(this.personalCiphers$(e));if(0===n.length)return;const r=n.filter(e=>e.hasOldAttachments);if(r.length>0){yield this.upgradeOldAttachments(r,e,t),n=yield(0,h._)(this.personalCiphers$(e));const i=n.filter(e=>e.hasOldAttachments);if(i.length>0)throw new Error(`Failed to upgrade all old attachments. ${i.length} ciphers still have old attachments.`)}this.logService.info(`Starting transfer of ${n.length} personal ciphers to organization ${t} for user ${e}`),yield this.cipherService.shareManyWithServer(n,t,[i],e)})}upgradeOldAttachments(e,t,i){return cd(this,void 0,void 0,function*(){this.logService.info(`Found ${e.length} ciphers with old attachments needing upgrade during transfer to organization ${i} for user ${t}`);for(const r of e)try{if(!r.hasOldAttachments)continue;if((yield this.cipherService.upgradeOldCipherAttachments(r,t)).hasOldAttachments)throw this.logService.error(`Attachment upgrade did not complete successfully for cipher ${r.id} during transfer to organization ${i} for user ${t}`),new Error(`Failed to upgrade old attachments for cipher ${r.id}`)}catch(n){throw this.logService.error(`Failed to upgrade old attachments for cipher ${r.id} during transfer to organization ${i} for user ${t}: ${n}`),new Error(`Failed to upgrade old attachments for cipher ${r.id}`)}this.logService.info(`Successfully upgraded ${e.length} ciphers with old attachments during transfer to organization ${i} for user ${t}`)})}}dd.ɵfac=function(e){return new(e||dd)(a.KVO(l.p),a.KVO(uo.m),a.KVO(Be.PV),a.KVO(we.YD),a.KVO(ld.Kc),a.KVO(S.W),a.KVO(W.o),a.KVO(k.f),a.KVO(J.c_),a.KVO(we.uB),a.KVO(od.H))},dd.ɵprov=a.jDH({token:dd,factory:dd.ɵfac});var ud=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class hd{constructor(e,t,i,n,r,s){this.cipherArchiveService=e,this.dialogService=t,this.passwordRepromptService=i,this.toastService=n,this.i18nService=r,this.accountService=s}archiveCipher(e){return ud(this,arguments,void 0,function*(e,t=!1){if(!t){if(!(yield this.passwordRepromptService.passwordRepromptCheck(e)))return}if(!(yield this.dialogService.openSimpleDialog({title:{key:"archiveItem"},content:{key:"archiveItemDialogContent"},acceptButtonText:{key:"archiveVerb"},type:"info"})))return;const i=yield(0,h._)(this.accountService.activeAccount$.pipe(m.F6));try{const t=yield this.cipherArchiveService.archiveWithServer(e.id,i);return this.toastService.showToast({variant:"success",message:this.i18nService.t("itemArchiveToast")}),t}catch(n){return void this.toastService.showToast({variant:"error",message:this.i18nService.t("errorOccurred")})}})}unarchiveCipher(e){return ud(this,arguments,void 0,function*(e,t=!1){if(!t){if(!(yield this.passwordRepromptService.passwordRepromptCheck(e)))return}const i=yield(0,h._)(this.accountService.activeAccount$.pipe(m.F6));try{const t=yield this.cipherArchiveService.unarchiveWithServer(e.id,i);return this.toastService.showToast({variant:"success",message:this.i18nService.t("itemUnarchivedToast")}),t}catch(n){return void this.toastService.showToast({variant:"error",message:this.i18nService.t("errorOccurred")})}})}}hd.ɵfac=function(e){return new(e||hd)(a.KVO(xa.J),a.KVO(W.o),a.KVO(H),a.KVO(k.f),a.KVO(S.W),a.KVO(R.D))},hd.ɵprov=a.jDH({token:hd,factory:hd.ɵfac,providedIn:"root"});class Ad{get collectionBreadcrumbs(){if(!this.isCollectionSelected)return[];const e=[this.selectedCollectionNode];for(;null!=e[e.length-1].parent;)e.push(e[e.length-1].parent);return e.slice(1).reverse()}get isCollectionSelected(){return null!=this.selectedCollectionNode&&"AllCollections"!==this.selectedCollectionNode.node.id}get isUnassignedCollectionSelected(){return null!=this.selectedCollectionNode&&null===this.selectedCollectionNode.node.id}get isMyVaultSelected(){var e;return"MyVault"===(null===(e=this.selectedOrganizationNode)||void 0===e?void 0:e.node.id)}get isFavorites(){var e;return"favorites"===(null===(e=this.selectedCipherTypeNode)||void 0===e?void 0:e.node.type)}get isDeleted(){var e;return"trash"===(null===(e=this.selectedCipherTypeNode)||void 0===e?void 0:e.node.type)||null}get isArchived(){var e;return"archive"===(null===(e=this.selectedCipherTypeNode)||void 0===e?void 0:e.node.type)}get organizationId(){var e;return null===(e=this.selectedOrganizationNode)||void 0===e?void 0:e.node.id}get cipherType(){var e,t;return(0,p.KN)(null===(e=this.selectedCipherTypeNode)||void 0===e?void 0:e.node.type)?null===(t=this.selectedCipherTypeNode)||void 0===t?void 0:t.node.type:null}get cipherStatus(){var e;return null===(e=this.selectedCipherTypeNode)||void 0===e?void 0:e.node.type}get cipherTypeId(){var e;return null===(e=this.selectedCipherTypeNode)||void 0===e?void 0:e.node.id}get folderId(){var e;return null===(e=this.selectedFolderNode)||void 0===e?void 0:e.node.id}get collectionId(){var e;return null===(e=this.selectedCollectionNode)||void 0===e?void 0:e.node.id}constructor(e){Object.assign(this,e)}resetFilter(){this.selectedCipherTypeNode=null,this.selectedFolderNode=null,this.selectedCollectionNode=null}resetOrganization(){this.selectedOrganizationNode=null}buildFilter(){return e=>{let t=!0;return this.isFavorites&&t&&(t=e.favorite),this.isDeleted&&t&&(t=e.isDeleted),this.isArchived&&t&&(t=e.isArchived),this.cipherType&&t&&(t=e.type===this.cipherType),this.selectedFolderNode&&(null===this.folderId&&t&&(t=null==e.folderId||""===e.folderId),null!==this.folderId&&t&&(t=e.folderId===this.folderId)),this.selectedCollectionNode&&("AllCollections"===this.collectionId&&t&&(t=!1),null===this.collectionId&&t&&(t=null!=e.organizationId&&(null==e.collectionIds||0===e.collectionIds.length)),null!==this.collectionId&&"AllCollections"!==this.collectionId&&t&&(t=null!=e.collectionIds&&e.collectionIds.includes(this.collectionId))),this.selectedOrganizationNode&&("MyVault"===this.organizationId&&t?t=null===e.organizationId:null!==this.organizationId&&t&&(t=e.organizationId===this.organizationId)),t}}}const pd="all",gd=["favorites","login","card","identity","note","sshKey","bankAccount","driversLicense","passport","archive","trash",pd];function vd(e){return gd.includes(e)}class md{constructor(e,t,i){this.routedFilter=e,this.legacyFilter=t,this.bridgeService=i}get collectionBreadcrumbs(){return this.legacyFilter.collectionBreadcrumbs}get isCollectionSelected(){return this.legacyFilter.isCollectionSelected}get isUnassignedCollectionSelected(){return this.legacyFilter.isUnassignedCollectionSelected}get isMyVaultSelected(){return this.legacyFilter.isMyVaultSelected}get selectedOrganizationNode(){return this.legacyFilter.selectedOrganizationNode}set selectedOrganizationNode(e){this.bridgeService.navigate(Object.assign(Object.assign({},this.routedFilter),{organizationId:"MyVault"===(null==e?void 0:e.node.id)?ki.I_:null==e?void 0:e.node.id,folderId:void 0,collectionId:void 0}))}get selectedCipherTypeNode(){return this.legacyFilter.selectedCipherTypeNode}set selectedCipherTypeNode(e){let t;"AllItems"===(null==e?void 0:e.node.id)&&"path"===this.routedFilter.organizationIdParamType?t=pd:"AllItems"===(null==e?void 0:e.node.id)&&"query"===this.routedFilter.organizationIdParamType?t=void 0:vd(null==e?void 0:e.node.id)&&(t=null==e?void 0:e.node.id),this.bridgeService.navigate(Object.assign(Object.assign({},this.routedFilter),{type:t,folderId:void 0,collectionId:void 0}))}get selectedFolderNode(){return this.legacyFilter.selectedFolderNode}set selectedFolderNode(e){const t=(null==e?void 0:e.node.id)?e.node.id:ki.I_;this.bridgeService.navigate(Object.assign(Object.assign({},this.routedFilter),{folderId:t,type:void 0,collectionId:void 0}))}get selectedCollectionNode(){return this.legacyFilter.selectedCollectionNode}set selectedCollectionNode(e){let t;t=null!=e&&null===e.node.id?ki.I_:"AllCollections"===(null==e?void 0:e.node.id)&&"path"===this.routedFilter.organizationIdParamType?void 0:"AllCollections"===(null==e?void 0:e.node.id)&&"query"===this.routedFilter.organizationIdParamType?pd:null==e?void 0:e.node.id,this.bridgeService.navigate(Object.assign(Object.assign({},this.routedFilter),{collectionId:t,type:void 0,folderId:void 0}))}get isFavorites(){return this.legacyFilter.isFavorites}get isDeleted(){return this.legacyFilter.isDeleted}get isArchived(){return this.legacyFilter.isArchived}get organizationId(){return this.legacyFilter.organizationId}get cipherType(){return this.legacyFilter.cipherType}get cipherStatus(){return this.legacyFilter.cipherStatus}get cipherTypeId(){return this.legacyFilter.cipherTypeId}get folderId(){return this.legacyFilter.folderId}get collectionId(){return this.legacyFilter.collectionId}resetFilter(){this.bridgeService.navigate(Object.assign(Object.assign({},this.routedFilter),{collectionId:void 0,folderId:void 0,organizationId:"path"===this.routedFilter.organizationIdParamType?this.routedFilter.organizationId:void 0,type:void 0}))}resetOrganization(){this.bridgeService.navigate(Object.assign(Object.assign({},this.routedFilter),{organizationId:void 0}))}buildFilter(){return this.legacyFilter.buildFilter()}}function fd(e){return t=>{const i=$.n.getType(t),n=$.n.isDeleted(t);if("favorites"===e.type&&!t.favorite)return!1;if("card"===e.type&&i!==p.gC.Card)return!1;if("driversLicense"===e.type&&i!==p.gC.DriversLicense)return!1;if("identity"===e.type&&i!==p.gC.Identity)return!1;if("login"===e.type&&i!==p.gC.Login)return!1;if("note"===e.type&&i!==p.gC.SecureNote)return!1;if("sshKey"===e.type&&i!==p.gC.SshKey)return!1;if("bankAccount"===e.type&&i!==p.gC.BankAccount)return!1;if("passport"===e.type&&i!==p.gC.Passport)return!1;if("trash"===e.type&&!n)return!1;if("trash"!==e.type&&n)return!1;if("archive"===e.type&&!$.n.isArchived(t))return!1;if("archive"!==e.type&&"trash"!==e.type&&$.n.isArchived(t))return!1;const r=e.folderId===ki.I_||""===e.folderId,s=null!=t.folderId&&""!==t.folderId;if(r&&s)return!1;if(void 0!==e.folderId&&e.folderId!==pd&&e.folderId!==ki.I_&&""!==e.folderId&&t.folderId!==e.folderId)return!1;if(e.collectionId===pd)return!1;if(e.collectionId===ki.I_&&(null==t.organizationId||null!=t.collectionIds&&t.collectionIds.length>0))return!1;if(void 0!==e.collectionId&&e.collectionId!==pd&&e.collectionId!==ki.I_){if(null==t.collectionIds)return!1;if(e.collectionIds&&e.collectionIds.length>0){if(!e.collectionIds.some(e=>t.collectionIds.includes(e)))return!1}else if(!t.collectionIds.includes(e.collectionId))return!1}return(e.organizationId!==ki.I_||null==t.organizationId)&&(void 0===e.organizationId||e.organizationId===ki.I_||t.organizationId===e.organizationId)}}class yd{}var bd=i(43317),Cd=i(84175),Id=i(23567);const wd=s.Ok.array(s.km,"collapsedGroupings",{deserializer:e=>e,clearOn:["logout","lock"]});var Bd=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Ed="/";class Sd{collapsedGroupingsState(e){return this.stateProvider.getUser(e,wd)}constructor(e,t,i,s,o,a,l,c,d){this.organizationService=e,this.folderService=t,this.cipherService=i,this.policyService=s,this.i18nService=o,this.stateProvider=a,this.collectionService=l,this.accountService=c,this.configService=d,this.activeUserId$=this.accountService.activeAccount$.pipe(m.F6),this.memberOrganizations$=this.activeUserId$.pipe((0,fe.n)(e=>this.organizationService.memberOrganizations$(e))),this.collapsedFilterNodes$=this.activeUserId$.pipe((0,fe.n)(e=>this.collapsedGroupingsState(e).state$),(0,r.T)(e=>new Set(e))),this.organizationTree$=(0,n.z)([this.memberOrganizations$,this.activeUserId$.pipe((0,fe.n)(e=>(0,Be.UX)(e,this.policyService))),this.activeUserId$.pipe((0,fe.n)(e=>this.policyService.policyAppliesToUser$(lo.tt.OrganizationDataOwnership,e)))]).pipe((0,r.T)(([e,t,i])=>this.buildOrganizationTree(e,t,i))),this._organizationFilter=new ns.t(null),this.filteredFolders$=this.activeUserId$.pipe((0,fe.n)(e=>(0,n.z)([this.folderService.folderViews$(e),this.cipherService.cipherListViews$(e),this._organizationFilter])),(0,So.p)(([e,t,i])=>!!t),(0,fe.n)(([e,t,i])=>this.filterFolders(e,t,i))),this.folderTree$=this.filteredFolders$.pipe((0,r.T)(e=>this.buildFolderTree(e))),this.filteredCollections$=(0,n.z)([this.accountService.activeAccount$.pipe(m.F6,(0,fe.n)(e=>this.collectionService.decryptedCollections$(e))),this._organizationFilter]).pipe((0,fe.n)(([e,t])=>this.filterCollections(e,t))),this.collectionTree$=(0,n.z)([this.filteredCollections$,this.memberOrganizations$]).pipe((0,r.T)(([e,t])=>this.buildCollectionTree(e,t))),this.cipherTypeFilters$=this.configService.getFeatureFlag$(Se.TO.PM32009NewItemTypes).pipe((0,r.T)(e=>[{id:"favorites",name:this.i18nService.t("favorites"),type:"favorites",icon:"bwi-star"},{id:"login",name:this.i18nService.t("typeLogin"),type:p.gC.Login,icon:e?"bwi-lock":"bwi-globe"},{id:"card",name:this.i18nService.t("typeCard"),type:p.gC.Card,icon:"bwi-credit-card"},...e?[{id:"bankAccount",name:this.i18nService.t("bankAccount"),type:p.gC.BankAccount,icon:"bwi-bank"}]:[],{id:"identity",name:this.i18nService.t("typeIdentity"),type:p.gC.Identity,icon:e?"bwi-user":"bwi-id-card"},...e?[{id:"driversLicense",name:this.i18nService.t("typeDriversLicense"),type:p.gC.DriversLicense,icon:"bwi-id-card"}]:[],...e?[{id:"passport",name:this.i18nService.t("typePassport"),type:p.gC.Passport,icon:"bwi-passport"}]:[],{id:"note",name:this.i18nService.t("typeSecureNote"),type:p.gC.SecureNote,icon:"bwi-sticky-note"},{id:"sshKey",name:this.i18nService.t("typeSshKey"),type:p.gC.SshKey,icon:"bwi-key"}])),this.cipherTypeTree$=this.buildCipherTypeTree()}getCollectionNodeFromTree(e){return Bd(this,void 0,void 0,function*(){const t=yield(0,h._)(this.collectionTree$);return Id.F.getTreeNodeObject(t,e)})}setCollapsedFilterNodes(e,t){return Bd(this,void 0,void 0,function*(){yield this.collapsedGroupingsState(t).update(()=>Array.from(e))})}getCollapsedFilterNodes(){return Bd(this,void 0,void 0,function*(){return yield(0,h._)(this.collapsedFilterNodes$)})}getOrganizationFilter(){return this._organizationFilter}clearOrganizationFilter(){this._organizationFilter.next(null)}setOrganizationFilter(e){"AllVaults"!=(null==e?void 0:e.id)?this._organizationFilter.next(e):this._organizationFilter.next(null)}expandOrgFilter(e){return Bd(this,void 0,void 0,function*(){const t=yield(0,h._)(this.collapsedFilterNodes$);t.has("AllVaults")&&(t.delete("AllVaults"),yield this.setCollapsedFilterNodes(t,e))})}buildOrganizationTree(e,t,i){const n=this.getOrganizationFilterHead();if(!i){const e=this.getOrganizationFilterMyVault();n.children.push(e)}if(t&&(e=e.slice(0,1)),e){const t=[];e.forEach(e=>{const i=e;(null==e?void 0:e.productTierType)===se.K_.Free||(null==e?void 0:e.productTierType)===se.K_.Families?i.icon="bwi-family":i.icon="bwi-business";const r=new Cd.n(i,n,i.name);t.push(r)}),t.sort((e,t)=>e.node.name.localeCompare(t.node.name)),n.children.push(...t)}return n}getOrganizationFilterHead(){const e=new Ri.y;return e.enabled=!0,new Cd.n(e,null,"allVaults","AllVaults")}getOrganizationFilterMyVault(){const e=new Ri.y;return e.id="MyVault",e.icon="bwi-user",e.enabled=!0,e.hideOptions=!0,new Cd.n(e,null,this.i18nService.t("myVault"))}buildTypeTree(e,t){const i=new Cd.n(e,null);return null==t||t.forEach(e=>{const t=new Cd.n(e,i,e.name);i.children.push(t)}),(0,ye.of)(i)}filterCollections(e,t){return Bd(this,void 0,void 0,function*(){return null!=(null==t?void 0:t.id)?e.filter(e=>e.organizationId===t.id):e})}buildCollectionTree(e,t){const i=this.getCollectionFilterHead();if(!e)return i;const n=[];e=function(e,t=[],i){return[...e.filter(e=>e.type===ki.it.DefaultUserCollection).sort((e,n)=>{var r,s,o,a;const l=null!==(s=null===(r=t.find(t=>t.id===e.organizationId))||void 0===r?void 0:r.name)&&void 0!==s?s:e.organizationId,c=null!==(a=null===(o=t.find(e=>e.id===n.organizationId))||void 0===o?void 0:o.name)&&void 0!==a?a:n.organizationId;if(!l||!c)throw new Error("Collection does not have an organizationId.");return i.compare(l,c)}),...e.filter(e=>e.type!==ki.it.DefaultUserCollection)]}(e,t,this.i18nService.collator);const r=this.collectionService.groupByOrganization(e);for(const s of r.values()){const e=[];for(const t of s){const i=(0,bd.sE)(new ki.iY(Object.assign(Object.assign({},t),{name:t.name})));i.icon=t.type===ki.it.DefaultUserCollection?"bwi-user":"bwi-collection-shared";const n=t.name?t.name.replace(/^\/+|\/+$/g,"").split(Ed):[];Id.F.nestedTraverse(e,0,n,i,void 0,Ed)}n.push(...e)}return n.forEach(e=>{e.parent=i,i.children.push(e)}),i}getCollectionFilterHead(){const e=ki.iY.vaultFilterHead();return new Cd.n(e,null,"collections","AllCollections")}filterFolders(e,t,i){return Bd(this,void 0,void 0,function*(){if(null==(null==i?void 0:i.id)||"MyVault"==(null==i?void 0:i.id))return e;const n=t.filter(e=>e.organizationId==(null==i?void 0:i.id));return e.filter(e=>n.some(t=>t.folderId==e.id)||!e.id)})}buildFolderTree(e){const t=this.getFolderFilterHead();if(!e)return t;const i=[];return e.forEach(e=>{const t=new Fi.u;t.id=e.id,t.revisionDate=e.revisionDate,t.icon="bwi-folder",t.fullName=e.name;const n=null!=e.name?e.name.replace(/^\/+|\/+$/g,"").split(Ed):[];Id.F.nestedTraverse(i,0,n,t,null,Ed)}),i.forEach(e=>{e.parent=t,t.children.push(e)}),t}getFolderFilterHead(){const e=new Fi.u;return new Cd.n(e,null,"folders","AllFolders")}buildCipherTypeTree(){return this.cipherTypeFilters$.pipe((0,fe.n)(e=>this.buildTypeTree({id:"AllItems",name:"allItems",type:"all"},e)))}}Sd.ɵfac=function(e){return new(e||Sd)(a.KVO(Be.PV),a.KVO(tr.k),a.KVO(l.p),a.KVO(uo.m),a.KVO(S.W),a.KVO(s.v2),a.KVO(we.YD),a.KVO(R.D),a.KVO(He.w))},Sd.ɵprov=a.jDH({token:Sd,factory:Sd.ɵfac});var Qd=i(26983);const kd=new mt.aZ("VaultFilterBaseRoute");class Rd{constructor(e){var t;this.onDestroy=new le.B,this.baseRoute=null!==(t=(0,a.WQX)(kd,{optional:!0}))&&void 0!==t?t:"",this.filter$=(0,n.z)([e.paramMap,e.queryParamMap]).pipe((0,r.T)(([e,t])=>{var i,n,r,s;const o=t.get("type"),a=vd(o)?o:void 0;return{collectionId:null!==(i=t.get("collectionId"))&&void 0!==i?i:void 0,folderId:null!==(n=t.get("folderId"))&&void 0!==n?n:void 0,organizationId:null!==(s=null!==(r=e.get("organizationId"))&&void 0!==r?r:t.get("organizationId"))&&void 0!==s?s:void 0,organizationIdParamType:null!=e.get("organizationId")?"path":"query",type:a}}),(0,ae.Q)(this.onDestroy))}createRoute(e){var t,i,n,r;return[this.baseRoute?[this.baseRoute]:[],{queryParams:{collectionId:null!==(t=e.collectionId)&&void 0!==t?t:null,folderId:null!==(i=e.folderId)&&void 0!==i?i:null,organizationId:"path"===e.organizationIdParamType?null:null!==(n=e.organizationId)&&void 0!==n?n:null,type:null!==(r=e.type)&&void 0!==r?r:null},queryParamsHandling:"merge",state:{focusAfterNav:!1}}]}ngOnDestroy(){this.onDestroy.next(),this.onDestroy.complete()}}Rd.ɵfac=function(e){return new(e||Rd)(a.KVO(Qd.nX))},Rd.ɵprov=a.jDH({token:Rd,factory:Rd.ɵfac});class Fd{constructor(e,t,i){this.router=e,this.routedVaultFilterService=t,this.activeFilter$=(0,n.z)([t.filter$,i.collectionTree$,i.organizationTree$,i.cipherTypeTree$]).pipe((0,fe.n)(([e,t,n,s])=>{if(function(e){return"path"===e.organizationIdParamType}(e)){const i=function(e,t,i){const n=new Ad;void 0===e.collectionId&&void 0===e.type?n.selectedCollectionNode=Id.F.getTreeNodeObject(t,"AllCollections"):void 0!==e.collectionId&&e.collectionId===ki.I_?n.selectedCollectionNode=Id.F.getTreeNodeObject(t,null):void 0!==e.collectionId&&(n.selectedCollectionNode=Id.F.getTreeNodeObject(t,e.collectionId));void 0===e.collectionId&&e.type===pd?n.selectedCipherTypeNode=Id.F.getTreeNodeObject(i,"AllItems"):void 0!==e.type&&"trash"===e.type?n.selectedCipherTypeNode=new Cd.n({id:"trash",name:"",type:"trash"},null):void 0!==e.type&&"trash"!==e.type&&(n.selectedCipherTypeNode=Id.F.getTreeNodeObject(i,e.type));return n}(e,t,s);return(0,ye.of)(new md(e,i,this))}return i.folderTree$.pipe((0,r.T)(i=>{const r=function(e,t,i,n,r){const s=new Ad;void 0!==e.collectionId&&e.collectionId===ki.I_?s.selectedCollectionNode=Id.F.getTreeNodeObject(t,null):void 0!==e.collectionId&&e.collectionId===pd?s.selectedCollectionNode=Id.F.getTreeNodeObject(t,"AllCollections"):void 0!==e.collectionId&&(s.selectedCollectionNode=Id.F.getTreeNodeObject(t,e.collectionId));void 0===e.folderId||e.folderId!==ki.I_&&""!==e.folderId?void 0!==e.folderId&&e.folderId!==ki.I_&&(s.selectedFolderNode=Id.F.getTreeNodeObject(i,e.folderId)):s.selectedFolderNode=Id.F.getTreeNodeObject(i,null);void 0!==e.organizationId&&e.organizationId===ki.I_?s.selectedOrganizationNode=Id.F.getTreeNodeObject(n,"MyVault"):void 0!==e.organizationId&&e.organizationId!==ki.I_&&(s.selectedOrganizationNode=Id.F.getTreeNodeObject(n,e.organizationId));void 0===e.type?s.selectedCipherTypeNode=Id.F.getTreeNodeObject(r,"AllItems"):void 0!==e.type&&"trash"===e.type?s.selectedCipherTypeNode=new Cd.n({id:"trash",name:"",type:"trash"},null):void 0!==e.type&&"archive"===e.type?s.selectedCipherTypeNode=new Cd.n({id:"archive",name:"",type:"archive"},null):void 0!==e.type&&"trash"!==e.type&&(s.selectedCipherTypeNode=Id.F.getTreeNodeObject(r,e.type));return s}(e,t,i,n,s);return new md(e,r,this)}))}))}navigate(e){const[t,i]=this.routedVaultFilterService.createRoute(e);this.router.navigate(t,i)}}Fd.ɵfac=function(e){return new(e||Fd)(a.KVO(Qd.Ix),a.KVO(Rd),a.KVO(yd))},Fd.ɵprov=a.jDH({token:Fd,factory:Fd.ɵfac});var Td=i(54596),Dd=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Pd{constructor(){this.cipherService=(0,a.WQX)(l.p),this.apiService=(0,a.WQX)(Ke.G),this.collectionService=(0,a.WQX)(we.YD),this.syncService=(0,a.WQX)(Td.H),this.accountService=(0,a.WQX)(R.D)}deleteCiphers(e){return Dd(this,arguments,void 0,function*({cipherIds:e,unassignedCiphers:t,permanent:i,organization:n}){const r=yield(0,h._)(this.accountService.activeAccount$.pipe(m.F6)),s=[];t.length&&(null==n?void 0:n.canEditUnassignedCiphers)&&s.push(this.deleteCiphersWithServer(t,r,i,!0,n.id)),e.length&&(n&&n.canEditAllCiphers?s.push(this.deleteCiphersWithServer(e,r,i,!0,n.id)):s.push(this.deleteCiphersWithServer(e,r,i,null==n?void 0:n.canEditAllCiphers))),yield Promise.all(s)})}deleteCollections(e){return Dd(this,void 0,void 0,function*(){var t;const i=yield(0,h._)(this.accountService.activeAccount$.pipe(m.F6)),n=new Map;for(const r of e){const e=null!==(t=n.get(r.organizationId))&&void 0!==t?t:[];e.push(r.id),n.set(r.organizationId,e)}yield Promise.all([...n].map(([e,t])=>this.apiService.deleteManyCollections(e,t))),yield this.syncService.fullSync(!0),yield this.collectionService.delete(e.map(e=>e.id),i)})}deleteCiphersWithServer(e,t,i,n,r){return Dd(this,void 0,void 0,function*(){i?yield this.cipherService.deleteManyWithServer(e,t,n,r):yield this.cipherService.softDeleteManyWithServer(e,t,n,r)})}}Pd.ɵfac=function(e){return new(e||Pd)},Pd.ɵprov=a.jDH({token:Pd,factory:Pd.ɵfac,providedIn:"root"});var Md=i(50790),xd=i(83516),Vd=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Gd=["dialogContent"];function Ud(e,t){1&e&&(w.nrm(0,"button",4),w.nI1(1,"i18n")),2&e&&w.Y8G("label",w.bMT(1,1,"archived"))}function Od(e,t){if(1&e&&w.nrm(0,"app-cipher-view",6),2&e){const e=w.XpG();w.Y8G("cipher",e.cipher)("collections",e.collections)("isAdminConsole",e.formConfig.isAdminConsole)}}function Nd(e,t){if(1&e){const e=w.RV6();w.j41(0,"vault-cipher-form",14),w.bIt("formReady",function(){a.eBV(e);const t=w.XpG();return a.Njj(t.onFormReady())})("cipherSaved",function(t){a.eBV(e);const i=w.XpG();return a.Njj(i.onCipherSaved(t))})("formStatusChange$",function(t){a.eBV(e);const i=w.XpG();return a.Njj(i.formStatusChanged(t))}),w.j41(1,"bit-item",15)(2,"button",16),w.bIt("click",function(){a.eBV(e);const t=w.XpG();return a.Njj(t.openAttachmentsDialog())}),w.j41(3,"div",17),w.EFF(4),w.nI1(5,"i18n"),w.nrm(6,"app-premium-badge"),w.k0s(),w.nrm(7,"bit-icon",18),w.k0s()()()}if(2&e){const e=w.XpG(),t=w.sdS(12);w.Y8G("config",e.formConfig)("submitBtn",t),w.R7$(2),w.Y8G("disabled",e.attachmentsButtonDisabled),w.R7$(2),w.SpI(" ",w.bMT(5,4,"attachments")," ")}}function jd(e,t){if(1&e&&(w.j41(0,"button",9),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e){const e=w.XpG();w.Y8G("bitAction",e.restore),w.R7$(),w.SpI(" ",w.bMT(2,2,"restore")," ")}}function Yd(e,t){if(1&e&&(w.j41(0,"button",10),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e){const e=w.XpG();w.Y8G("bitAction",e.switchToEdit)("disabled",e.disableEdit),w.R7$(),w.SpI(" ",w.bMT(2,3,"edit")," ")}}function Xd(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",19),w.bIt("click",function(){a.eBV(e);const t=w.XpG();return a.Njj(t.cancel())}),w.EFF(1),w.nI1(2,"i18n"),w.k0s()}2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,1,"cancel")," "))}function zd(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",19),w.bIt("click",function(){a.eBV(e);const t=w.XpG();return a.Njj(t.cancel())}),w.EFF(1),w.nI1(2,"i18n"),w.k0s()}2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,1,"close")," "))}function Ld(e,t){if(1&e&&(w.nrm(0,"button",21),w.nI1(1,"i18n")),2&e){const e=w.XpG(3);w.Y8G("bitAction",e.unarchive)("label",w.bMT(1,2,"unArchive"))}}function Wd(e,t){if(1&e&&(w.nrm(0,"button",22),w.nI1(1,"i18n")),2&e){const e=w.XpG(3);w.Y8G("bitAction",e.archive)("label",w.bMT(1,2,"archiveVerb"))}}function Kd(e,t){if(1&e&&(w.nVh(0,Ld,2,4,"button",21),w.nVh(1,Wd,2,4,"button",22)),2&e){const e=w.XpG(2);w.vxM(e.showUnarchiveBtn?0:-1),w.R7$(),w.vxM(e.showArchiveBtn?1:-1)}}function Zd(e,t){if(1&e&&(w.nrm(0,"button",20),w.nI1(1,"i18n")),2&e){const e=w.XpG(2);w.Y8G("label",w.bMT(1,3,"delete"))("bitAction",e.delete)("disabled",!e.canDelete)}}function Hd(e,t){if(1&e&&(w.j41(0,"div",13),w.nVh(1,Kd,2,2),w.nVh(2,Zd,2,5,"button",20),w.k0s()),2&e){const e=w.XpG();w.R7$(),w.vxM(e.showArchiveOptions?1:-1),w.R7$(),w.vxM(e.cipher?2:-1)}}const Jd={Saved:"saved",Deleted:"deleted",PremiumUpgrade:"premiumUpgrade",Restored:"restored"};class qd{get isTrashFilter(){var e;return!!(null===(e=this.cipher)||void 0===e?void 0:e.isDeleted)}get showCancel(){return!this.isTrashFilter&&!this.showCipherView}get showClose(){return this.isTrashFilter&&!this.showRestore}get showActionButtons(){return null!==this.cipher&&"clone"!==this.formConfig.mode}canUserRestore(){return Vd(this,void 0,void 0,function*(){var e;return this.isTrashFilter&&(null===(e=this.cipher)||void 0===e?void 0:e.permissions.restore)})}get loadingForm(){return this.loadForm&&!this.formReady}get disableEdit(){return!this.canEdit&&"partial-edit"!==this.formConfig.mode}get showEdit(){return this.showCipherView&&!this.isTrashFilter&&!this.showRestore}get showCipherView(){return null!=this.cipher&&("view"===this.params.mode||this.loadingForm)}get submitButtonText$(){return this.userHasPremium$.pipe((0,r.T)(e=>this.isCipherArchived&&!e?this.i18nService.t("unArchiveAndSave"):this.i18nService.t("save")))}get isCipherArchived(){var e;return null===(e=this.cipher)||void 0===e?void 0:e.isArchived}get showArchiveOptions(){return!this.params.isAdminConsoleAction&&"view"===this.params.mode}get showArchiveBtn(){var e;return this.userCanArchive()&&(null===(e=this.cipher)||void 0===e?void 0:e.canBeArchived)}get showUnarchiveBtn(){var e;return this.isCipherArchived&&!(null===(e=this.cipher)||void 0===e?void 0:e.isDeleted)}constructor(e,t,i,n,s,o,a,l,c,d,u,A,p,g,v,f,y){this.params=e,this.dialogRef=t,this.dialogService=i,this.i18nService=n,this.toastService=s,this.messagingService=o,this.logService=a,this.cipherService=l,this.accountService=c,this.router=d,this.billingAccountProfileStateService=u,this.premiumUpgradeService=A,this.cipherAuthorizationService=p,this.apiService=g,this.eventCollectionService=v,this.archiveService=f,this.configService=y,this.dialogContent=ue.ebz.required("dialogContent"),this.cipherFormComponent=ue.ebz.required(Za),this.dialogComponent=(0,ue.ebz)(x.m),this._cipherModified=!1,this._originalFormMode=this.params.formConfig.mode,this._formReadySubject=new le.B,this.performingInitialLoad=!0,this.userHasPremium$=this.accountService.activeAccount$.pipe((0,fe.n)(e=>this.billingAccountProfileStateService.hasPremiumFromAnySource$(e.id))),this.userId$=this.accountService.activeAccount$.pipe(m.F6),this.userCanArchive$=this.userId$.pipe((0,fe.n)(e=>this.archiveService.userCanArchive$(e))),this.userCanArchive=(0,he.ot)(this.userCanArchive$,{initialValue:!1}),this.pm32009NewItemTypes=(0,he.ot)(this.configService.getFeatureFlag$(Se.TO.PM32009NewItemTypes),{initialValue:!1}),this.loadForm="form"===this.params.mode,this.formReady=!1,this.formConfig=this.params.formConfig,this.canDelete=!1,this.canEdit=!1,this.attachmentsButtonDisabled=!1,this.confirmedPremiumUpgrade=!1,this.btnTextAddCreateFeatureFlag=(0,he.ot)(this.configService.getFeatureFlag$(Se.TO.PM32380_BtnTextAddCreate),{initialValue:!1}),this.restore=()=>Vd(this,void 0,void 0,function*(){var e,t;yield null===(t=(e=this.params).restore)||void 0===t?void 0:t.call(e,this.cipher),yield this.dialogRef.close(Jd.Restored)}),this.delete=()=>Vd(this,void 0,void 0,function*(){if(!this.cipher)return;if(yield this.dialogService.openSimpleDialog({title:{key:"deleteItem"},content:{key:this.cipher.isDeleted?"permanentlyDeleteItemConfirmation":"deleteItemConfirmation"},type:"warning"})){try{yield this.deleteCipher(),this.toastService.showToast({variant:"success",title:this.i18nService.t("success"),message:this.i18nService.t(this.cipher.isDeleted?"permanentlyDeletedItem":"deletedItem")}),this.messagingService.send(this.cipher.isDeleted?"permanentlyDeletedCipher":"deletedCipher")}catch(e){this.logService.error(e)}this._cipherModified=!1,yield this.dialogRef.close(Jd.Deleted)}}),this.openAttachmentsDialog=()=>Vd(this,void 0,void 0,function*(){var e,t,i,n,r,s;if(!(yield(0,h._)(this.userHasPremium$)))return void(yield this.premiumUpgradeService.promptForPremium(null===(e=this.cipher)||void 0===e?void 0:e.organizationId));const o=this.dialogService.open(es,{data:{cipherId:null===(t=this.formConfig.originalCipher)||void 0===t?void 0:t.id,organizationId:null===(i=this.formConfig.originalCipher)||void 0===i?void 0:i.organizationId,canEditCipher:null===(n=this.formConfig.originalCipher)||void 0===n?void 0:n.edit,admin:this.formConfig.admin}}),a=yield(0,h._)(o.closed);if(a.action===_r.Removed||a.action===_r.Uploaded){const e=yield(0,h._)(this.userId$);let t;if(this.formConfig.admin){const i=yield this.apiService.getCipherAdmin(null===(r=this.formConfig.originalCipher)||void 0===r?void 0:r.id),n=new kr.A(i),s=new Rr.o(n);t=yield s.decrypt(yield this.cipherService.getKeyForCipherKeyDecryption(s,e))}else t=yield(0,h._)(this.cipherService.cipherView$(e,null===(s=this.formConfig.originalCipher)||void 0===s?void 0:s.id));this.cipherFormComponent().patchCipher(e=>(e.attachments=t.attachments,e.revisionDate=t.revisionDate,e)),this._cipherModified=!0}}),this.switchToEdit=()=>Vd(this,void 0,void 0,function*(){this.cipher&&(yield this.changeMode("form"))}),this.cancel=()=>Vd(this,void 0,void 0,function*(){if("view"===this.params.mode||null==this.cipher||"clone"===this.formConfig.mode)return void(yield this.dialogRef.close(this._cipherModified?Jd.Saved:void 0));const e=yield(0,h._)(this.userId$),t=yield(0,h._)(this.cipherService.cipherView$(e,this.cipher.id));null!=t&&(this.cipher=t),yield this.changeMode("view")}),this.updateCipherFromResponse=(e,t)=>Vd(this,void 0,void 0,function*(){const i=new Rr.o(e);i.collectionIds=[...this.cipher.collectionIds];const n=yield this.cipherService.decrypt(i,t);yield this.onCipherSaved(n)}),this.archive=()=>Vd(this,void 0,void 0,function*(){if(!(yield this.dialogService.openSimpleDialog({title:{key:"archiveItem"},content:{key:"archiveItemDialogContent"},acceptButtonText:{key:"archiveVerb"},type:"info"})))return;const e=yield(0,h._)(this.userId$);try{const t=yield this.archiveService.archiveWithServer(this.cipher.id,e);yield this.updateCipherFromResponse(t,e),this.toastService.showToast({variant:"success",message:this.i18nService.t("itemArchiveToast")})}catch(t){this.toastService.showToast({variant:"error",message:this.i18nService.t("errorOccurred")})}}),this.unarchive=()=>Vd(this,void 0,void 0,function*(){const e=yield(0,h._)(this.userId$);try{const t=yield this.archiveService.unarchiveWithServer(this.cipher.id,e);yield this.updateCipherFromResponse(t,e),this.toastService.showToast({variant:"success",message:this.i18nService.t("itemUnarchivedToast")})}catch(t){this.toastService.showToast({variant:"error",message:this.i18nService.t("errorOccurred")})}}),this.updateTitle(),this.premiumUpgradeService.upgradeConfirmed$.pipe((0,r.T)(e=>e&&(this.confirmedPremiumUpgrade=!0)),(0,he.pQ)()).subscribe()}ngOnInit(){return Vd(this,void 0,void 0,function*(){if(this.cipher=yield this.getDecryptedCipherView(this.formConfig),this.cipher){if(this.cipher.decryptionFailure)return this.dialogService.open(kl,{data:{cipherIds:[this.cipher.id]},positionStrategy:new W.u}),void(yield this.dialogRef.close());this.collections=this.formConfig.collections.filter(e=>{var t;return null===(t=this.cipher.collectionIds)||void 0===t?void 0:t.includes(e.id)}),this.organization=this.formConfig.organizations.find(e=>e.id===this.cipher.organizationId),this.canDelete=yield(0,h._)(this.cipherAuthorizationService.canDeleteCipher$(this.cipher,this.params.isAdminConsoleAction)),this.canEdit=yield(0,h._)(this.cipherAuthorizationService.canEditCipher$(this.cipher,this.params.isAdminConsoleAction)),this.canEdit||"partial-edit"===this.formConfig.mode||"form"!==this.params.mode||(this.params.mode="view",this.loadForm=!1,this.updateTitle()),yield this.eventCollectionService.collect(J.Bx.Cipher_ClientViewed,this.cipher.id,!1,this.cipher.organizationId)}this.showRestore=yield this.canUserRestore(),this.performingInitialLoad=!1})}ngOnDestroy(){this.confirmedPremiumUpgrade||this._cipherModified&&this.dialogRef.close(Jd.Saved)}formStatusChanged(e){this.attachmentsButtonDisabled="disabled"===e}onCipherSaved(e){return Vd(this,void 0,void 0,function*(){this.cipher=e,this.collections=this.formConfig.collections.filter(t=>{var i;return null===(i=e.collectionIds)||void 0===i?void 0:i.includes(t.id)}),"add"!==this._originalFormMode&&"clone"!==this._originalFormMode||(this.formConfig.mode="edit",this.formConfig.initialValues=null);const t=yield(0,h._)(this.userId$);let i=yield this.cipherService.get(e.id,t);if(this.formConfig.isAdminConsole&&(null==i||this.formConfig.admin)){const t=yield this.apiService.getCipherAdmin(e.id);t.edit=!0,t.viewPassword=!0;const n=new kr.A(t);i=new Rr.o(n),this.cipher.organizationUseTotp=i.organizationUseTotp}this.formConfig.originalCipher=i,this._cipherModified=!0,this.canEdit=yield(0,h._)(this.cipherAuthorizationService.canEditCipher$(this.cipher,this.params.isAdminConsoleAction)),this.canDelete=yield(0,h._)(this.cipherAuthorizationService.canDeleteCipher$(this.cipher,this.params.isAdminConsoleAction)),yield this.changeMode("view")})}onFormReady(){this.formReady=!0,this._formReadySubject.next()}getDecryptedCipherView(e){return Vd(this,void 0,void 0,function*(){if(null==e.originalCipher)return;const t=yield(0,h._)(this.userId$);return yield this.cipherService.decrypt(e.originalCipher,t)})}updateTitle(){var e,t;const i={view:{[p.gC.Login]:this.btnTextAddCreateFeatureFlag()?"viewItemHeaderLoginSentenceCase":"viewItemHeaderLogin",[p.gC.Card]:this.btnTextAddCreateFeatureFlag()?"viewItemHeaderCardSentenceCase":"viewItemHeaderCard",[p.gC.Identity]:this.btnTextAddCreateFeatureFlag()?"viewItemHeaderIdentitySentenceCase":"viewItemHeaderIdentity",[p.gC.SecureNote]:this.pm32009NewItemTypes()?"viewItemHeaderSecureNote":this.btnTextAddCreateFeatureFlag()?"viewItemHeaderNoteSentenceCase":"viewItemHeaderNote",[p.gC.SshKey]:"viewItemHeaderSshKey",[p.gC.BankAccount]:"viewItemHeaderBankAccount",[p.gC.DriversLicense]:"viewItemHeaderLicense",[p.gC.Passport]:"viewItemHeaderPassport"},new:{[p.gC.Login]:this.btnTextAddCreateFeatureFlag()?"addItemHeaderLogin":"newItemHeaderLogin",[p.gC.Card]:this.btnTextAddCreateFeatureFlag()?"addItemHeaderCard":"newItemHeaderCard",[p.gC.Identity]:this.btnTextAddCreateFeatureFlag()?"addItemHeaderIdentity":"newItemHeaderIdentity",[p.gC.SecureNote]:this.pm32009NewItemTypes()?this.btnTextAddCreateFeatureFlag()?"addItemHeaderSecureNote":"newItemHeaderSecureNote":this.btnTextAddCreateFeatureFlag()?"addItemHeaderNote":"newItemHeaderNote",[p.gC.SshKey]:this.btnTextAddCreateFeatureFlag()?"addItemHeaderSshKey":"newItemHeaderSshKey",[p.gC.BankAccount]:this.btnTextAddCreateFeatureFlag()?"addItemHeaderBankAccount":"newItemHeaderBankAccount",[p.gC.DriversLicense]:this.btnTextAddCreateFeatureFlag()?"addItemHeaderDriversLicense":"newItemHeaderDriversLicense",[p.gC.Passport]:this.btnTextAddCreateFeatureFlag()?"addItemHeaderPassport":"newItemHeaderPassport"},edit:{[p.gC.Login]:this.btnTextAddCreateFeatureFlag()?"editItemHeaderLoginSentenceCase":"editItemHeaderLogin",[p.gC.Card]:this.btnTextAddCreateFeatureFlag()?"editItemHeaderCardSentenceCase":"editItemHeaderCard",[p.gC.Identity]:this.btnTextAddCreateFeatureFlag()?"editItemHeaderIdentitySentenceCase":"editItemHeaderIdentity",[p.gC.SecureNote]:this.pm32009NewItemTypes()?"editItemHeaderSecureNote":this.btnTextAddCreateFeatureFlag()?"editItemHeaderNoteSentenceCase":"editItemHeaderNote",[p.gC.SshKey]:"editItemHeaderSshKey",[p.gC.BankAccount]:"editItemHeaderBankAccount",[p.gC.DriversLicense]:"editItemHeaderLicense",[p.gC.Passport]:"editItemHeaderPassport"}},n=null!==(t=null===(e=this.cipher)||void 0===e?void 0:e.type)&&void 0!==t?t:this.formConfig.cipherType;let r="view";"form"===this.params.mode&&(r="edit"===this.formConfig.mode||"partial-edit"===this.formConfig.mode?"edit":"new");const s=i[r][n];this.title=this.i18nService.t(s)}changeMode(e){return Vd(this,void 0,void 0,function*(){var t;this.formReady=!1,"form"==e?(this.loadForm=!0,yield(0,h._)(this._formReadySubject)):this.loadForm=!1,this.params.mode=e,this.updateTitle(),this.dialogContent().nativeElement.parentElement.scrollTop=0,this.dialogComponent().focusHeader(),yield this.router.navigate([],{queryParams:{action:"form"===e?"edit":"view",itemId:null===(t=this.cipher)||void 0===t?void 0:t.id},queryParamsHandling:"merge",replaceUrl:!0})})}deleteCipher(){return Vd(this,void 0,void 0,function*(){var e;const t=this.cipher.isUnassigned,i=this.params.isAdminConsoleAction&&((null===(e=this.organization)||void 0===e?void 0:e.canEditAllCiphers)||t),n=yield(0,h._)(this.accountService.activeAccount$.pipe((0,r.T)(e=>null==e?void 0:e.id)));this.cipher.isDeleted?yield this.cipherService.deleteWithServer(this.cipher.id,n,i):yield this.cipherService.softDeleteWithServer(this.cipher.id,n,i)})}static open(e,t){return e.open(qd,{data:t})}static openDrawer(e,t){return e.openDrawer(qd,{data:t})}}qd.ɵfac=function(e){return new(e||qd)(w.rXU(Qr.Qs),w.rXU(Q.ce),w.rXU(W.o),w.rXU(S.W),w.rXU(k.f),w.rXU(xd.U),w.rXU(Qe.K),w.rXU(l.p),w.rXU(R.D),w.rXU(Qd.Ix),w.rXU(ee.Q),w.rXU(an.l),w.rXU(ce.y),w.rXU(Ke.G),w.rXU(J.c_),w.rXU(xa.J),w.rXU(He.w))},qd.ɵcmp=w.VBU({type:qd,selectors:[["app-vault-item-dialog"]],viewQuery:function(e,t){1&e&&w.wEZ(t.dialogContent,Gd,5)(t.cipherFormComponent,Za,5)(t.dialogComponent,x.m,5),2&e&&w.NyB(3)},features:[w.Jv_([{provide:Li.Q,useClass:Md.I}])],decls:18,vars:14,consts:[["dialogContent",""],["submitBtn",""],["dialogSize","large","background","alt",3,"loading"],["bitDialogTitle","","aria-live","polite",1,"tw-flex","tw-items-center","tw-gap-1"],["type","button","bit-chip-action","","bitDialogHeaderEnd","",3,"label"],["bitDialogContent",""],[3,"cipher","collections","isAdminConsole"],["formId","cipherForm",3,"config","submitBtn"],["bitDialogFooter",""],["bitButton","","buttonType","primary","type","button",3,"bitAction"],["bitButton","","buttonType","primary","type","button",3,"bitAction","disabled"],["bitButton","","type","submit","form","cipherForm","buttonType","primary",3,"hidden"],["bitButton","","type","button","buttonType","secondary"],[1,"tw-ml-auto"],["formId","cipherForm",3,"formReady","cipherSaved","formStatusChange$","config","submitBtn"],["slot","attachment-button"],["bit-item-content","","type","button",3,"click","disabled"],[1,"tw-flex","tw-items-center","tw-gap-2"],["name","bwi-angle-right","slot","end"],["bitButton","","type","button","buttonType","secondary",3,"click"],["bitIconButton","bwi-trash","type","button","buttonType","dangerGhost","data-testid","delete-cipher-btn",3,"label","bitAction","disabled"],["type","button","bitIconButton","bwi-unarchive",1,"tw-mr-1",3,"bitAction","label"],["type","button","bitIconButton","bwi-archive",1,"tw-mr-1",3,"bitAction","label"]],template:function(e,t){1&e&&(w.j41(0,"bit-dialog",2)(1,"span",3),w.EFF(2),w.k0s(),w.nVh(3,Ud,2,3,"button",4),w.j41(4,"div",5,0),w.nVh(6,Od,1,3,"app-cipher-view",6),w.nVh(7,Nd,8,6,"vault-cipher-form",7),w.k0s(),w.qex(8,8),w.nVh(9,jd,3,4,"button",9),w.nVh(10,Yd,3,5,"button",10),w.j41(11,"button",11,1),w.EFF(13),w.nI1(14,"async"),w.k0s(),w.nVh(15,Xd,3,3,"button",12),w.nVh(16,zd,3,3,"button",12),w.nVh(17,Hd,3,2,"div",13),w.bVm(),w.k0s()),2&e&&(w.Y8G("loading",t.performingInitialLoad),w.R7$(2),w.SpI(" ",t.title," "),w.R7$(),w.vxM(t.isCipherArchived&&!t.params.isAdminConsoleAction?3:-1),w.R7$(3),w.vxM(t.showCipherView?6:-1),w.R7$(),w.vxM(t.loadForm?7:-1),w.R7$(2),w.vxM(t.showRestore?9:-1),w.R7$(),w.vxM(t.showEdit?10:-1),w.R7$(),w.Y8G("hidden",t.showCipherView||t.showRestore),w.R7$(2),w.SpI(" ",w.bMT(14,12,t.submitButtonText$)," "),w.R7$(2),w.vxM(t.showCancel?15:-1),w.R7$(),w.vxM(t.showClose?16:-1),w.R7$(),w.vxM(t.showActionButtons?17:-1))},dependencies:[Y.s,y.t,P.Q,I.Q,Mc.o,Ll.R,Sr,b.P,x.m,V.hJ,ve.MD,el,Za,f.C,qe.p,co.g,Xe.k,st.J,ot.g,$i.a,ve.Jj,mt.$Z],encapsulation:2});const $d={Saved:"saved",Canceled:"canceled"},_d=new mt.aZ("ASSIGN_COLLECTIONS_DIALOG");class eu{}eu.ɵfac=function(e){return new(e||eu)},eu.ɵmod=w.$C({type:eu}),eu.ɵinj=a.G2t({imports:[ve.MD,g.X1,v.p,f.C,y.t,b.P,C.L,rs.p]});var tu=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const iu=(e,t)=>t.id;function nu(e,t){if(1&e&&w.nrm(0,"bit-option",5),2&e){const e=t.$implicit;w.Y8G("value",e.id)("label",e.name)}}const ru={Moved:"moved",Canceled:"canceled"},su=(e,t)=>e.open(ou,t);class ou{constructor(e,t,i,n,r,s,o,a,l){var c;this.dialogRef=t,this.cipherService=i,this.platformUtilsService=n,this.i18nService=r,this.folderService=s,this.formBuilder=o,this.toastService=a,this.accountService=l,this.cipherIds=[],this.formGroup=this.formBuilder.group({folderId:["",[g.k0.nullValidator]]}),this.submit=()=>tu(this,void 0,void 0,function*(){if(this.formGroup.invalid)return;const e=yield(0,h._)(this.accountService.activeAccount$.pipe(m.F6));yield this.cipherService.moveManyWithServer(this.cipherIds,this.formGroup.value.folderId,e),this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t(1===this.cipherIds.length?"movedItem":"movedItems")}),this.close(ru.Moved)}),this.cipherIds=null!==(c=e.cipherIds)&&void 0!==c?c:[]}ngOnInit(){return tu(this,void 0,void 0,function*(){const e=yield(0,h._)(this.accountService.activeAccount$.pipe(m.F6));this.folders$=this.folderService.folderViews$(e),this.formGroup.patchValue({folderId:(yield(0,h._)(this.folders$))[0].id})})}cancel(){this.close(ru.Canceled)}close(e){this.dialogRef.close(e)}}ou.ɵfac=function(e){return new(e||ou)(w.rXU(Qr.Qs),w.rXU(Q.ce),w.rXU(l.p),w.rXU(E.y),w.rXU(S.W),w.rXU(tr.k),w.rXU(g.ok),w.rXU(k.f),w.rXU(R.D))},ou.ɵcmp=w.VBU({type:ou,selectors:[["ng-component"]],standalone:!1,decls:23,vars:20,consts:[["bit-dialog","","dialogSize","small",3,"formGroup","bitSubmit"],["bitDialogTitle",""],["bitDialogContent",""],["for","folder"],["formControlName","folderId"],[3,"value","label"],["bitDialogFooter",""],["bitButton","","bitFormButton","","type","submit","buttonType","primary"],["bitButton","","bitFormButton","","type","button","buttonType","secondary",3,"click"]],template:function(e,t){1&e&&(w.j41(0,"form",0)(1,"span",1),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"span",2)(5,"p"),w.EFF(6),w.nI1(7,"i18n"),w.k0s(),w.j41(8,"bit-form-field")(9,"bit-label",3),w.EFF(10),w.nI1(11,"i18n"),w.k0s(),w.j41(12,"bit-select",4),w.Z7z(13,nu,1,2,"bit-option",5,iu),w.nI1(15,"async"),w.k0s()()(),w.qex(16,6),w.j41(17,"button",7),w.EFF(18),w.nI1(19,"i18n"),w.k0s(),w.j41(20,"button",8),w.bIt("click",function(){return t.cancel()}),w.EFF(21),w.nI1(22,"i18n"),w.k0s(),w.bVm(),w.k0s()),2&e&&(w.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit),w.R7$(2),w.SpI(" ",w.bMT(3,7,"addToFolder")," "),w.R7$(4),w.JRh(w.i5U(7,9,"moveSelectedItemsDesc",t.cipherIds.length)),w.R7$(4),w.JRh(w.bMT(11,12,"selectFolder")),w.R7$(3),w.Dyx(w.bMT(15,14,t.folders$)),w.R7$(5),w.SpI(" ",w.bMT(19,16,"save")," "),w.R7$(3),w.SpI(" ",w.bMT(22,18,"cancel")," "))},dependencies:[g.qT,g.BC,g.cb,g.j4,g.JD,T.$,D.L,P.Q,x.m,V.hJ,G.j,O.h,hs.w,As.P,ve.Jj,X.$],encapsulation:2});const au={Deleted:"deleted",Canceled:"canceled"},lu=new mt.aZ("BULK_DELETE_DIALOG"),cu=Object.freeze({Saved:"saved",Canceled:"canceled"}),du=new mt.aZ("BULK_EDIT_COLLECTION_ACCESS_DIALOG");var uu=i(4807),hu=i(36501),Au=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class pu{constructor(){this.cipherService=(0,a.WQX)(l.p),this.cipherArchiveService=(0,a.WQX)(xa.J),this.cipherAuthorizationService=(0,a.WQX)(ce.y),this.organizationService=(0,a.WQX)(Be.PV),this.passwordRepromptService=(0,a.WQX)(H),this.dialogService=(0,a.WQX)(W.o),this.toastService=(0,a.WQX)(k.f),this.accountService=(0,a.WQX)(R.D),this.routedVaultFilterBridgeService=(0,a.WQX)(Fd),this.routedVaultFilterService=(0,a.WQX)(Rd),this.i18nService=(0,a.WQX)(S.W),this.logService=(0,a.WQX)(Qe.K),this.configService=(0,a.WQX)(He.w),this.assignCollectionsDialog=(0,a.WQX)(_d),this.bulkDeleteDialog=(0,a.WQX)(lu),this.bulkEditCollectionAccessDialog=(0,a.WQX)(du,{optional:!0}),this.defaultConfig={isOrgVault:!1,allCollections:[],hasCiphers:!1},this.config=(0,a.vPA)(this.defaultConfig),this.inTrash=(0,he.ot)(this.routedVaultFilterService.filter$.pipe((0,r.T)(e=>"trash"===e.type)),{initialValue:!1}),this.showBulkAddToFolder=(0,me.EW)(()=>!this.inTrash()&&!this.config().isOrgVault),this.allOrganizations=(0,he.ot)(this.accountService.activeAccount$.pipe(m.F6,(0,fe.n)(e=>this.organizationService.organizations$(e))),{initialValue:[]}),this.userCanArchive=(0,he.ot)(this.accountService.activeAccount$.pipe(m.F6,(0,fe.n)(e=>this.cipherArchiveService.userCanArchive$(e))),{initialValue:!1}),this.selection=new uu.C(!0,[],!0),this._completed$=new le.B,this.completed$=this._completed$.asObservable(),this.selectionChanged=(0,he.ot)(this.selection.changed.pipe((0,Ie.Z)(null))),this.selected=(0,me.EW)(()=>(this.selectionChanged(),this.selection.selected)),this.selectedCount=(0,me.EW)(()=>this.selected().length),this.batchBarFlag=(0,he.ot)(this.configService.getFeatureFlag$(Se.TO.PM37785_VaultBatchBar),{initialValue:!1}),this.enabled=(0,me.EW)(()=>this.batchBarFlag()),this.barVisible=(0,me.EW)(()=>this.batchBarFlag()&&this.selectedCount()>0),this.selectedCiphers=(0,me.EW)(()=>this.selected().filter(e=>void 0!==e.cipher).map(e=>e.cipher)),this.selectedCollections=(0,me.EW)(()=>this.selected().filter(e=>void 0!==e.collection).map(e=>e.collection)),this.canAddToFolder=(0,me.EW)(()=>{const e=this.selected();return this.showBulkAddToFolder()&&0!==e.length&&0===e.filter(e=>e.collection).length}),this.canArchive=(0,me.EW)(()=>{const e=this.selected(),t=e.some(e=>e.collection);return!(0===e.length||!this.userCanArchive()||t||this.inTrash())&&!e.find(e=>e.cipher&&e.cipher.archivedDate)}),this.canUnarchive=(0,me.EW)(()=>{const e=this.selected();return 0!==e.length&&!this.inTrash()&&!e.find(e=>{var t;return!(null===(t=e.cipher)||void 0===t?void 0:t.archivedDate)})}),this.canRestore=(0,he.ot)((0,n.z)([this.selection.changed.pipe((0,Ie.Z)(null)),(0,he.br)(this.config),(0,he.br)(this.inTrash)]).pipe((0,fe.n)(([,e,t])=>{const i=this.selection.selected,s=i.filter(e=>e.cipher).map(e=>e.cipher);if(0===i.length)return(0,ye.of)(!0);if(0===s.length)return(0,ye.of)(!1);const o=s.map(t=>this.cipherAuthorizationService.canRestoreCipher$(t,e.isOrgVault));return(0,n.z)(o).pipe((0,r.T)(e=>e.every(e=>e)&&t))})),{initialValue:!0}),this.canDelete=(0,he.ot)((0,n.z)([this.selection.changed.pipe((0,Ie.Z)(null)),(0,he.br)(this.config),(0,he.br)(this.allOrganizations)]).pipe((0,fe.n)(([,e,t])=>{const i=this.selection.selected;if(0===i.length)return(0,ye.of)(!0);const s=i.filter(e=>e.cipher).map(e=>e.cipher),o=i.filter(e=>e.collection).map(e=>e.collection).every(e=>{if(e.id===ki.I_)return!1;const i=t.find(t=>t.id===e.organizationId);return e.canDelete(i)});if(0===s.length)return(0,ye.of)(o);const a=s.map(t=>this.cipherAuthorizationService.canDeleteCipher$(t,e.isOrgVault));return(0,n.z)(a).pipe((0,r.T)(e=>e.every(e=>e)&&o))})),{initialValue:!0}),this.canAssignToCollections=(0,me.EW)(()=>{const e=this.config(),t=this.allOrganizations(),i=this.selected(),n=i.filter(e=>e.cipher).map(e=>e.cipher),r=n.some(e=>$.n.isArchived(e));if(!(e.hasCiphers&&!r))return!1;if(e.isOrgVault&&0!==n.length)return!0;if(this.inTrash()||0===t.length||0===i.length)return!1;const s=n.some(e=>!e.organizationId),o=new Set(n.flatMap(e=>{var t;return null!==(t=e.organizationId)&&void 0!==t?t:null}).filter(Boolean)),a=e.allCollections.some(e=>!e.readOnly);if(o.size>1)return!1;if(0===o.size&&a)return s;const[l]=o,c=t.find(e=>e.id===l),d=!0===(null==c?void 0:c.canEditAllCiphers),u=0===i.filter(e=>e.collection).length,h=n.every(e=>e.edit&&e.viewPassword);return(d||h)&&u&&a}),this.canEditCollectionAccess=(0,me.EW)(()=>{const e=this.config(),t=this.selected();return!(!e.isOrgVault||0===t.length)&&t.some(e=>void 0!==e.collection)}),this.routedVaultFilterService.filter$.pipe((0,so.F)((e,t)=>e.organizationId===t.organizationId&&e.collectionId===t.collectionId&&e.folderId===t.folderId&&e.type===t.type&&e.organizationIdParamType===t.organizationIdParamType),(0,he.pQ)()).subscribe(()=>{this.selection.clear()})}setConfig(e){this.config.set(e)}bulkArchive(){return Au(this,void 0,void 0,function*(){const e=this.selectedCiphers();if(!(yield this.reprompt(e)))return;const t=1===e.length?"archiveItemTitle":"archiveItemsPlural",i=1===e.length?"archiveItemDialogContent":"archiveItemsPluralDescription",n=1===e.length?"itemArchiveToast":"bulkArchiveItems";if(!(yield this.dialogService.openSimpleDialog({title:{key:t,placeholders:[e.length]},content:{key:i},acceptButtonText:{key:"archiveVerb"},type:"info"})))return;const r=yield(0,h._)(this.accountService.activeAccount$.pipe(m.F6)),s=e.map(e=>e.id);try{yield this.cipherArchiveService.archiveWithServer(s,r),this.toastService.showToast({variant:"success",message:this.i18nService.t(n)}),this.selection.clear(),this._completed$.next()}catch(o){this.logService.error("Error archiving ciphers",o),this.toastService.showToast({variant:"error",message:this.i18nService.t("errorOccurred")})}})}bulkUnarchive(){return Au(this,void 0,void 0,function*(){const e=this.selectedCiphers();if(!(yield this.reprompt(e)))return;const t=yield(0,h._)(this.accountService.activeAccount$.pipe(m.F6)),i=e.map(e=>e.id);try{yield this.cipherArchiveService.unarchiveWithServer(i,t),this.toastService.showToast({variant:"success",message:this.i18nService.t(1===e.length?"itemUnarchivedToast":"bulkUnarchiveItems")}),this.selection.clear(),this._completed$.next()}catch(n){this.logService.error("Error unarchiving ciphers",n),this.toastService.showToast({variant:"error",message:this.i18nService.t("errorOccurred")})}})}bulkRestore(){return Au(this,void 0,void 0,function*(){const e=this.selectedCiphers(),{isOrgVault:t,organization:i}=this.config();if(e.length>0){if(!(yield(0,h._)((0,n.z)(e.map(e=>this.cipherAuthorizationService.canRestoreCipher$(e,t))).pipe((0,r.T)(e=>e.every(e=>e))))))return void this.toastService.showToast({variant:"error",message:this.i18nService.t("missingPermissions")})}const s=e.some(e=>!$.n.isArchived(e))?this.i18nService.t(1===e.length?"restoredItem":"restoredItems"):this.i18nService.t(1===e.length?"archivedItemRestored":"archivedItemsRestored");if(!(yield this.reprompt(e)))return;const o=yield(0,h._)(this.accountService.activeAccount$.pipe(m.F6));try{if(null!=i){const t=[],n=[];if(i.canEditAllCiphers?e.forEach(e=>t.push((0,q.zw)(e.id))):e.forEach(e=>{$.n.isUnassigned(e)?n.push((0,q.zw)(e.id)):e.edit&&t.push((0,q.zw)(e.id))}),0===n.length&&0===t.length)return void this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:this.i18nService.t("nothingSelected")});yield this.cipherService.restoreManyWithServer([...n,...t],o,i.id)}else{const t=e.map(e=>(0,q.zw)(e.id));if(0===t.length)return void this.toastService.showToast({variant:"error",message:this.i18nService.t("nothingSelected")});yield this.cipherService.restoreManyWithServer(t,o)}this.toastService.showToast({variant:"success",message:s}),this.selection.clear(),this._completed$.next()}catch(a){this.logService.error("Error restoring ciphers",a),this.toastService.showToast({variant:"error",message:this.i18nService.t("errorOccurred")})}})}bulkDelete(){return Au(this,void 0,void 0,function*(){const{isOrgVault:e,organization:t}=this.config(),i=this.selection.selected,s=i.filter(e=>void 0===e.collection&&void 0!==e.cipher).map(e=>e.cipher),o=i.filter(e=>void 0!==e.collection).map(e=>e.collection);if(!(yield this.reprompt(s)))return;if(0===s.length&&0===o.length)return void this.toastService.showToast({variant:"error",message:this.i18nService.t("nothingSelected")});const a=this.inTrash(),l=o.map(e=>e.organizationId),c=this.allOrganizations().filter(e=>l.includes(e.id)),d=0===o.length||o.every(e=>{const t=c.find(t=>t.id===e.organizationId);return e.canDelete(t)}),u=0===s.length||(yield(0,h._)((0,n.z)(s.map(t=>this.cipherAuthorizationService.canDeleteCipher$(t,e))).pipe((0,r.T)(e=>e.every(e=>e)))));if(!d||!u)return void this.toastService.showToast({variant:"error",message:this.i18nService.t("missingPermissions")});const A=null!=t?s.filter(e=>$.n.isUnassigned(e)).map(e=>(0,q.zw)(e.id)):[],p=null!=t?s.filter(e=>!$.n.isUnassigned(e)).map(e=>(0,q.zw)(e.id)):s.map(e=>(0,q.zw)(e.id));(yield this.bulkDeleteDialog.open(Object.assign({permanent:a,cipherIds:p,organizations:c,collections:o},null!=t?{organization:t,unassignedCiphers:A}:{})))===au.Deleted&&(this.selection.clear(),this._completed$.next())})}bulkMoveToFolder(){return Au(this,void 0,void 0,function*(){const e=this.selectedCiphers();if(!(yield this.reprompt(e)))return;const t=e.map(e=>(0,q.zw)(e.id));if(0===t.length)return void this.toastService.showToast({variant:"error",message:this.i18nService.t("nothingSelected")});const i=su(this.dialogService,{data:{cipherIds:t}});(yield(0,u.s)(i.closed))===ru.Moved&&(this.selection.clear(),this._completed$.next())})}bulkAssignToCollections(){return Au(this,void 0,void 0,function*(){var e,t;const i=this.selectedCiphers();if(!(yield this.reprompt(i)))return;if(0===i.length)return void this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:this.i18nService.t("nothingSelected")});const n=this.config(),s=yield(0,h._)(this.routedVaultFilterBridgeService.activeFilter$),{collectionId:o}=s,a=o&&o!==pd&&o!==ki.I_?n.allCollections.find(e=>e.id===o):void 0,l=null!==(e=s.organizationId)&&void 0!==e?e:null===(t=i.find(e=>!!e.organizationId))||void 0===t?void 0:t.organizationId;let c,d=[];if(l&&"MyVault"!==l){const e=this.allOrganizations().find(e=>e.id===l);d=n.allCollections.filter(t=>t.organizationId===(null==e?void 0:e.id))}if(i.some($.n.isCipherListView)){const e=yield(0,h._)(this.accountService.activeAccount$.pipe(m.F6));c=yield(0,h._)(this.cipherService.cipherViews$(e).pipe((0,r.T)(e=>e.filter(e=>i.some(t=>t.id===e.id)))))}else c=i;(yield this.assignCollectionsDialog.open(Object.assign({ciphers:c,organizationId:l,availableCollections:d,activeCollection:a},null!=n.organization&&1===c.length?{isSingleCipherAdmin:n.organization.canEditAllCiphers||$.n.isUnassigned(c[0])}:{})))===$d.Saved&&(this.selection.clear(),this._completed$.next())})}bulkEditCollectionAccess(){return Au(this,void 0,void 0,function*(){if(!this.bulkEditCollectionAccessDialog)return;const{organization:e}=this.config();if(!e)return;const t=this.selectedCollections();if(0===t.length)return;if(!t.every(t=>t.canEdit(e)))return void this.toastService.showToast({variant:"error",message:this.i18nService.t("missingPermissions")});(yield this.bulkEditCollectionAccessDialog.open({organizationId:e.id,collections:t}))===cu.Saved&&(this.selection.clear(),this._completed$.next())})}reprompt(e){return Au(this,void 0,void 0,function*(){return!e.find(e=>e.reprompt!==hu.b.None)||(yield this.passwordRepromptService.showPasswordPrompt())})}}pu.ɵfac=function(e){return new(e||pu)},pu.ɵprov=a.jDH({token:pu,factory:pu.ɵfac});var gu=i(76794),vu=i(30634);const mu=["label"];class fu{constructor(){this.elementRef=(0,a.WQX)(w.aKT),this.tooltip=(0,a.WQX)(tt.d,{self:!0}),this.icon=ue.hFB.required(),this.compact=(0,ue.hFB)(!1),this.tabIndex=(0,a.vPA)(-1),this.label=(0,ue.ebz)("label"),this.labelText=(0,me.EW)(()=>{var e,t,i;return null!==(i=null===(t=null===(e=this.label())||void 0===e?void 0:e.nativeElement.textContent)||void 0===t?void 0:t.trim())&&void 0!==i?i:""}),this.actionClasses=(0,me.EW)(()=>["tw-inline-flex","tw-items-center","tw-gap-2",...this.compact()?["tw-p-2"]:["tw-px-3","tw-py-2"],"tw-text-sm","!tw-text-fg-contrast","!tw-no-underline","tw-bg-transparent","tw-border-none","tw-cursor-pointer","tw-rounded-lg","hover:tw-bg-bg-hover-contrast","focus-visible:tw-bg-bg-hover-contrast","focus-visible:tw-outline-none","focus-visible:tw-ring-2","focus-visible:tw-ring-inset","focus-visible:tw-ring-border-focus-contrast","disabled:!tw-text-fg-inactive","disabled:tw-cursor-default","disabled:hover:tw-bg-transparent","aria-disabled:!tw-text-fg-inactive","aria-disabled:tw-cursor-default","aria-disabled:hover:tw-bg-transparent"]),(0,a.QZP)(()=>{this.tooltip.tooltipContent.set(this.compact()?this.labelText():"")}),(0,a.QZP)(()=>{const e=this.elementRef.nativeElement;this.compact()&&this.labelText()?(0,vu.J)({element:e,label:this.labelText()}):e.removeAttribute("aria-label")})}focus(){this.elementRef.nativeElement.focus({focusVisible:!0})}forceLabelVisible(e){var t;const i=null===(t=this.label())||void 0===t?void 0:t.nativeElement;i&&(i.style.display=e?"inline":"")}get disabled(){return!0===this.elementRef.nativeElement.disabled}}fu.ɵfac=function(e){return new(e||fu)},fu.ɵcmp=w.VBU({type:fu,selectors:[["button","bitBulkActionButton",""],["a","bitBulkActionButton",""]],viewQuery:function(e,t){1&e&&w.wEZ(t.label,mu,5),2&e&&w.NyB()},hostVars:3,hostBindings:function(e,t){2&e&&(w.BMQ("tabindex",t.tabIndex()),w.HbH(t.actionClasses()))},inputs:{icon:[1,"icon"],compact:[1,"compact"]},features:[w.nM4([tt.d])],attrs:["bitBulkActionButton",""],ngContentSelectors:["*"],decls:4,vars:5,consts:[["label",""],[1,"tw-leading-none",3,"name"]],template:function(e,t){1&e&&(w.NAR(),w.nrm(0,"bit-icon",1),w.j41(1,"span",null,0),w.SdG(3),w.k0s()),2&e&&(w.AVh("tw-text-lg",t.compact()),w.Y8G("name",t.icon()),w.R7$(),w.AVh("tw-hidden",t.compact()))},dependencies:[Ll.R],encapsulation:2,changeDetection:0});class yu{constructor(){this.action=ue.hFB.required(),this.label=ue.hFB.required(),this.icon=ue.hFB.required(),this.disabled=(0,ue.hFB)(!1,Object.assign(Object.assign({},{}),{transform:ue.L39}))}}yu.ɵfac=function(e){return new(e||yu)},yu.ɵcmp=w.VBU({type:yu,selectors:[["bit-bulk-action"]],hostAttrs:[2,"display","none"],inputs:{action:[1,"action"],label:[1,"label"],icon:[1,"icon"],disabled:[1,"disabled"]},decls:0,vars:0,template:function(e,t){},encapsulation:2,changeDetection:0});class bu{constructor(){this.action=ue.hFB.required(),this.label=ue.hFB.required(),this.icon=(0,ue.hFB)(),this.disabled=(0,ue.hFB)(!1,Object.assign(Object.assign({},{}),{transform:ue.L39}))}}bu.ɵfac=function(e){return new(e||bu)},bu.ɵcmp=w.VBU({type:bu,selectors:[["bit-bulk-additional-action"]],hostAttrs:[2,"display","none"],inputs:{action:[1,"action"],label:[1,"label"],icon:[1,"icon"],disabled:[1,"disabled"]},decls:0,vars:0,template:function(e,t){},encapsulation:2,changeDetection:0});const Cu=["bar"],Iu=["wrapper"],wu=["additionalActionsTrigger"];function Bu(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",15),w.bIt("click",function(){const t=a.eBV(e).$implicit;return a.Njj(t.action()())}),w.EFF(1),w.k0s()}if(2&e){const e=t.$implicit,i=w.XpG();w.Y8G("icon",e.icon())("compact",i.compact())("disabled",e.disabled()),w.R7$(),w.SpI(" ",e.label()," ")}}function Eu(e,t){if(1&e&&(w.j41(0,"button",13,3),w.nI1(2,"i18n"),w.EFF(3),w.nI1(4,"i18n"),w.k0s()),2&e){w.XpG();const e=w.sdS(22);w.Y8G("compact",!0)("bitMenuTriggerFor",e),w.BMQ("aria-label",w.bMT(2,4,"additionalActions")),w.R7$(3),w.SpI(" ",w.bMT(4,6,"additionalActions")," ")}}function Su(e,t){1&e&&w.nrm(0,"bit-icon",17),2&e&&w.Y8G("name",t)}function Qu(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",16),w.bIt("click",function(){const t=a.eBV(e).$implicit;return a.Njj(t.action()())}),w.nVh(1,Su,1,1,"bit-icon",17),w.EFF(2),w.k0s()}if(2&e){let e;const i=t.$implicit;w.Y8G("disabled",i.disabled()),w.R7$(),w.vxM((e=i.icon())?1:-1,e),w.R7$(),w.SpI(" ",i.label()," ")}}class ku{constructor(){this.document=(0,a.WQX)(a.qQL),this.i18nService=(0,a.WQX)(S.W),this.selectedCount=ue.hFB.required(),this.clear$=new le.B,this.clear=(0,he.p)(this.clear$),this.bar=(0,ue.ebz)("bar"),this.wrapper=ue.ebz.required("wrapper"),this.closeBtn=(0,ue.ebz)(fu),this.additionalActionsTrigger=(0,ue.ebz)("additionalActionsTrigger",Object.assign(Object.assign({},{}),{read:fu})),this.primaryActions=(0,ue.tEk)(yu),this.additionalActions=(0,ue.tEk)(bu),this.hasAdditionalActions=(0,me.EW)(()=>this.additionalActions().length>0),this.primaryButtons=(0,ue.dtW)(fu),this.visible=(0,me.EW)(()=>this.selectedCount()>0),this.initialBarWidth=(0,a.vPA)(0),this.compact=(0,a.vPA)(!1),this.modifierKey=(0,a.vPA)(this.detectInitialModifier()),this.announcement=(0,me.EW)(()=>0===this.selectedCount()?this.i18nService.t("selectionCleared"):this.i18nService.t("bulkActionsBarAnnouncement",this.selectedCount(),`${this.modifierKey()}+B`)),this.barStateClasses=(0,me.EW)(()=>this.visible()?"tw-pointer-events-auto":"tw-translate-y-[110%] tw-opacity-0"),this.previousFocus=(0,a.vPA)(null),this.keyManager=(0,a.vPA)(void 0),this.destroyRef=(0,a.WQX)(a.abz),this.elementWithDividerClasses=["tw-relative","after:tw-content-['']","after:tw-absolute","after:tw-bg-bg-brand-strong","after:tw-w-px","after:tw-h-8","after:tw-end-0","after:tw-translate-x-[calc(theme(spacing.2)_+_1px)]","after:tw-inset-y-0","after:tw-my-auto"];const e=(0,a.WQX)(a.zZn);this.initResizeObserver(),(0,a.QZP)(()=>{0!==this.primaryButtons().length&&(0,w.mal)(()=>this.measureIntrinsicWidth(),{injector:e})}),(0,a.QZP)(e=>{const t=this.closeBtn();if(null==t)return;const i=this.additionalActionsTrigger(),n=this.primaryButtons().filter(e=>e!==t&&e!==i),r=i?[t,...n,i]:[t,...n],s=new ic.B(r).withHorizontalOrientation("ltr").withWrap().withHomeAndEnd();this.keyManager.set(s),s.updateActiveItem(0),this.applyRovingTabIndex(0,r),s.change.pipe((0,he.pQ)(this.destroyRef)).subscribe(e=>this.applyRovingTabIndex(e,r)),e(()=>s.destroy())})}onClear(){this.clear$.next(),this.restorePreviousFocus()}onToolbarKeydown(e){var t;null===(t=this.keyManager())||void 0===t||t.onKeydown(e)}initResizeObserver(){(0,w.mal)(()=>{const e=this.wrapper().nativeElement,t=new ResizeObserver(()=>{const t=this.initialBarWidth()+48;this.compact.set(e.clientWidth<t)});t.observe(e),this.destroyRef.onDestroy(()=>t.disconnect())})}measureIntrinsicWidth(){var e;const t=null===(e=this.bar())||void 0===e?void 0:e.nativeElement,i=this.wrapper().nativeElement;if(!t)return;const n=t.style.minWidth;t.style.minWidth="max-content";const r=this.additionalActionsTrigger(),s=this.primaryButtons().filter(e=>e!==r);s.forEach(e=>e.forceLabelVisible(!0));const o=Math.ceil(t.getBoundingClientRect().width);if(s.forEach(e=>e.forceLabelVisible(!1)),t.style.minWidth=n,0===o)return;this.initialBarWidth.set(o);const a=o+48;this.compact.set(i.clientWidth<a)}handleShortcut(e){var t,i;if(e.metaKey&&!e.ctrlKey?this.modifierKey.set("Command"):e.ctrlKey&&!e.metaKey&&this.modifierKey.set("Ctrl"),!this.visible())return;if("b"!==e.key.toLowerCase()||e.metaKey===e.ctrlKey)return;e.preventDefault();const n=null===(t=this.bar())||void 0===t?void 0:t.nativeElement,r=this.document.activeElement;n&&r&&n.contains(r)?this.restorePreviousFocus():(this.previousFocus.set(r&&r!==this.document.body?r:null),null===(i=this.keyManager())||void 0===i||i.setFirstItemActive())}applyRovingTabIndex(e,t){t.forEach((t,i)=>{t.tabIndex.set(i===e?0:-1)})}restorePreviousFocus(){const e=this.previousFocus();this.previousFocus.set(null),e&&e.isConnected&&this.isFocusable(e)?e.focus():this.document.body.focus()}isFocusable(e){return!e.hasAttribute("disabled")&&-1!==e.tabIndex}detectInitialModifier(){var e,t,i;const n=null===(e=this.document.defaultView)||void 0===e?void 0:e.navigator;return(null===(t=null==n?void 0:n.platform)||void 0===t?void 0:t.startsWith("Mac"))||/Macintosh/.test(null!==(i=null==n?void 0:n.userAgent)&&void 0!==i?i:"")?"Command":"Ctrl"}}ku.ɵfac=function(e){return new(e||ku)},ku.ɵcmp=w.VBU({type:ku,selectors:[["bit-bulk-actions-bar"]],contentQueries:function(e,t,i){1&e&&w.C6U(i,t.primaryActions,yu,4)(i,t.additionalActions,bu,4),2&e&&w.NyB(2)},viewQuery:function(e,t){1&e&&w.wEZ(t.bar,Cu,5)(t.wrapper,Iu,5)(t.closeBtn,fu,5)(t.additionalActionsTrigger,wu,5,fu)(t.primaryButtons,fu,5),2&e&&w.NyB(5)},hostBindings:function(e,t){1&e&&w.bIt("keydown",function(e){return t.handleShortcut(e)},w.EBC)},inputs:{selectedCount:[1,"selectedCount"]},outputs:{clear:"clear"},ngContentSelectors:["*"],decls:25,vars:21,consts:[["wrapper",""],["bar",""],["additionalActionsMenu",""],["additionalActionsTrigger",""],[1,"tw-fixed","tw-bottom-0","tw-inset-x-0","tw-z-50","tw-flex","tw-justify-center"],["role","status","aria-live","polite",1,"tw-sr-only"],["role","toolbar","aria-orientation","horizontal",1,"tw-mb-4","tw-flex","tw-items-center","tw-gap-[17px]","tw-p-2","tw-rounded-xl","tw-bg-bg-brand-stronger","tw-transition-[transform,opacity]","tw-duration-200","tw-ease-out",3,"keydown"],[1,"tw-flex","tw-gap-1.5","tw-px-2","tw-text-sm"],[1,"tw-font-semibold","tw-text-fg-contrast"],[1,"tw-text-fg-contrast-strong"],["bitBulkActionButton","","icon","bwi-clear","type","button",3,"click","compact"],[1,"tw-flex","tw-items-center","tw-gap-2"],["bitBulkActionButton","","type","button",3,"icon","compact","disabled"],["bitBulkActionButton","","icon","bwi-ellipsis-v","type","button","menuPosition","above-end",3,"compact","bitMenuTriggerFor"],["bitMenuItem","","type","button",3,"disabled"],["bitBulkActionButton","","type","button",3,"click","icon","compact","disabled"],["bitMenuItem","","type","button",3,"click","disabled"],["slot","start",3,"name"]],template:function(e,t){1&e&&(w.NAR(),w.j41(0,"div",4,0)(2,"div",5),w.EFF(3),w.k0s(),w.j41(4,"div",6,1),w.nI1(6,"i18n"),w.bIt("keydown",function(e){return t.onToolbarKeydown(e)}),w.j41(7,"span",7)(8,"span",8),w.EFF(9),w.k0s(),w.j41(10,"span",9),w.EFF(11),w.nI1(12,"i18n"),w.k0s()(),w.j41(13,"button",10),w.bIt("click",function(){return t.onClear()}),w.EFF(14),w.nI1(15,"i18n"),w.k0s(),w.j41(16,"div",11),w.Z7z(17,Bu,2,4,"button",12,w.fX1),w.nVh(19,Eu,5,8,"button",13),w.k0s()(),w.SdG(20),w.k0s(),w.j41(21,"bit-menu",null,2),w.Z7z(23,Qu,3,3,"button",14,w.fX1),w.k0s()),2&e&&(w.R7$(3),w.SpI(" ",t.announcement()," "),w.R7$(),w.HbH(t.barStateClasses()),w.BMQ("inert",t.visible()?null:"")("aria-hidden",t.visible()?null:"true")("aria-label",w.bMT(6,15,"bulkActionsBar")),w.R7$(3),w.HbH(t.elementWithDividerClasses),w.R7$(2),w.SpI(" ",t.selectedCount()," "),w.R7$(2),w.SpI(" ",w.bMT(12,17,"selectedLowercase")," "),w.R7$(2),w.HbH(t.elementWithDividerClasses),w.Y8G("compact",t.compact()),w.R7$(),w.SpI(" ",w.bMT(15,19,"clear")," "),w.R7$(3),w.Dyx(t.primaryActions()),w.R7$(2),w.vxM(t.hasAdditionalActions()?19:-1),w.R7$(4),w.Dyx(t.additionalActions()))},dependencies:[fu,Zo.Z,Jo.S,Ho.O,Ll.R,mt.$Z],encapsulation:2,changeDetection:0});const Ru=["barPortal"],Fu=(e,t)=>t.label;function Tu(e,t){if(1&e&&w.nrm(0,"bit-bulk-action",2),2&e){const e=t.$implicit;w.Y8G("action",e.action)("icon",e.icon)("label",e.label)}}function Du(e,t){if(1&e&&w.nrm(0,"bit-bulk-additional-action",2),2&e){const e=t.$implicit;w.Y8G("action",e.action)("icon",e.icon)("label",e.label)}}function Pu(e,t){if(1&e){const e=w.RV6();w.j41(0,"bit-bulk-actions-bar",1),w.bIt("clear",function(){a.eBV(e);const t=w.XpG();return a.Njj(t.service.selection.clear())}),w.Z7z(1,Tu,1,3,"bit-bulk-action",2,Fu),w.Z7z(3,Du,1,3,"bit-bulk-additional-action",2,Fu),w.k0s()}if(2&e){const e=w.XpG();w.Y8G("selectedCount",e.service.selectedCount()),w.R7$(),w.Dyx(e.primaryActions()),w.R7$(2),w.Dyx(e.overflowActions())}}class Mu{constructor(){this.service=(0,a.WQX)(pu),this.i18nService=(0,a.WQX)(S.W),this.viewContainerRef=(0,a.WQX)(w.c1b),this.layoutFooter=(0,a.WQX)(gu.b),this.barPortal=ue.ebz.required("barPortal"),this.portal=(0,a.vPA)(null),this.visibleActions=(0,me.EW)(()=>{const e=[];return this.service.canAddToFolder()&&e.push({action:this.service.bulkMoveToFolder.bind(this.service),icon:"bwi-folder",label:this.i18nService.t("addToFolder")}),this.service.canAssignToCollections()&&e.push({action:this.service.bulkAssignToCollections.bind(this.service),icon:"bwi-collection",label:this.i18nService.t("assignToCollections")}),this.service.canEditCollectionAccess()&&e.push({action:this.service.bulkEditCollectionAccess.bind(this.service),icon:"bwi-users",label:this.i18nService.t("editAccess")}),this.service.canArchive()&&e.push({action:this.service.bulkArchive.bind(this.service),icon:"bwi-archive",label:this.i18nService.t("archiveVerb")}),this.service.canUnarchive()&&e.push({action:this.service.bulkUnarchive.bind(this.service),icon:"bwi-unarchive",label:this.i18nService.t("unArchive")}),this.service.canRestore()&&e.push({action:this.service.bulkRestore.bind(this.service),icon:"bwi-undo",label:this.i18nService.t("restore")}),this.service.canDelete()&&e.push({action:this.service.bulkDelete.bind(this.service),icon:"bwi-trash",label:this.i18nService.t(this.service.inTrash()?"permanentlyDelete":"delete")}),e}),this.primaryActions=(0,me.EW)(()=>{const e=this.visibleActions();return e.length>3?e.slice(0,2):e}),this.overflowActions=(0,me.EW)(()=>{const e=this.visibleActions();return e.length>3?e.slice(2):[]}),(0,w.mal)(()=>{const e=new $l.VA(this.barPortal(),this.viewContainerRef);this.portal.set(e),this.layoutFooter.attach(e)})}ngOnDestroy(){const e=this.portal();null!=e&&(this.layoutFooter.detach(e),this.portal.set(null))}}Mu.ɵfac=function(e){return new(e||Mu)},Mu.ɵcmp=w.VBU({type:Mu,selectors:[["bit-vault-batch-action"]],viewQuery:function(e,t){1&e&&w.wEZ(t.barPortal,Ru,5),2&e&&w.NyB()},decls:2,vars:0,consts:[["barPortal",""],[3,"clear","selectedCount"],[3,"action","icon","label"]],template:function(e,t){1&e&&w.DNE(0,Pu,5,1,"ng-template",null,0,w.C5r)},dependencies:[ku,yu,bu],encapsulation:2,changeDetection:0})},55818(e,t,i){"use strict";i.d(t,{t:()=>r});var n=i(14041);class r{transform(e,t){var i;return null===(i=null==t?void 0:t.find(t=>t.id===e))||void 0===i?void 0:i.name}}r.ɵfac=function(e){return new(e||r)},r.ɵpipe=n.EJ8({name:"orgNameFromId",type:r,pure:!0})},55393(e,t,i){"use strict";i.d(t,{K:()=>u});var n=i(66523),r=i(57768),s=i(14041);class o{transform(e,t){var i;return null===(i=t.find(t=>t.id===e))||void 0===i?void 0:i.name}}o.ɵfac=function(e){return new(e||o)},o.ɵpipe=s.EJ8({name:"collectionNameFromId",type:o,pure:!0});var a=i(46758),l=i(47696);function c(e,t){if(1&e&&(s.qex(0),s.j41(1,"span",2),s.EFF(2),s.nI1(3,"collectionNameFromId"),s.k0s(),s.bVm()),2&e){const e=t.$implicit,i=s.XpG();s.R7$(2),s.JRh(s.i5U(3,1,e,i.collections))}}function d(e,t){if(1&e&&(s.qex(0),s.j41(1,"span",2),s.EFF(2),s.k0s(),s.bVm()),2&e){const e=s.XpG();s.R7$(2),s.SpI("+ ",e.xMoreCount," more")}}class u{get shownCollections(){return(this.showXMore?this.collectionIds.slice(0,2):this.collectionIds).map(n.zw)}get showXMore(){return this.collectionIds.length>3}get xMoreCount(){return this.collectionIds.length-2}}u.ɵfac=function(e){return new(e||u)},u.ɵcmp=s.VBU({type:u,selectors:[["app-collection-badge"]],inputs:{collectionIds:"collectionIds",collections:"collections"},decls:2,vars:2,consts:[[4,"ngFor","ngForOf"],[4,"ngIf"],["bitBadge","","variant","secondary"]],template:function(e,t){1&e&&s.DNE(0,c,4,4,"ng-container",0)(1,d,3,1,"ng-container",1),2&e&&(s.Y8G("ngForOf",t.shownCollections),s.R7$(),s.Y8G("ngIf",t.showXMore))},dependencies:[r.G,a.Sq,a.bT,l.n,o],encapsulation:2})},86561(e,t,i){"use strict";i.d(t,{K:()=>n.K});var n=i(55393)},79303(e,t,i){"use strict";i.d(t,{B:()=>a});var n=i(57768),r=i(10840),s=i(14041),o=i(11217);class a{}a.ɵfac=function(e){return new(e||a)},a.ɵmod=s.$C({type:a}),a.ɵinj=o.G2t({imports:[n.G,r.Y]})},20798(e,t,i){"use strict";i.d(t,{K:()=>n.K});var n=i(86561)},81667(e,t,i){"use strict";i.d(t,{Je:()=>s,nK:()=>b,EB:()=>C,dc:()=>B,WW:()=>S});var n=i(14041),r=i(11217);class s{}s.ɵfac=function(e){return new(e||s)},s.ɵmod=n.$C({type:s}),s.ɵinj=r.G2t({});var o=i(50545),a=i(12277),l=i(14848);class c{constructor(){this.collections=[]}static fromResponse(e){const t=Object.assign(new c,e);return t.collections=e.collections.map(e=>new l.sK(e)),t}}class d{static fromResponse(e){return Object.assign(new d,e)}}class u{constructor(){this.collections=[],this.users=[]}}class h{constructor(e){this.ids=null==e?[]:e}}var A=i(73409),p=i(20702);class g extends p.r{constructor(e){super(e),this.id=this.getResponseProperty("Id"),this.organizationId=this.getResponseProperty("OrganizationId"),this.name=this.getResponseProperty("Name"),this.externalId=this.getResponseProperty("ExternalId")}}class v extends g{constructor(e){super(e),this.collections=[];const t=this.getResponseProperty("Collections");null!=t&&(this.collections=t.map(e=>new A.U(e)))}}var m=i(12012),f=i(1601),y=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class b{constructor(e,t){this.apiService=e,this.configService=t}get(e,t){return y(this,void 0,void 0,function*(){const i=yield this.apiService.send("GET","/organizations/"+e+"/groups/"+t+"/details",null,!0,!0);return c.fromResponse(new v(i))})}getAll(e){return y(this,void 0,void 0,function*(){const t=yield this.apiService.send("GET","/organizations/"+e+"/groups",null,!0,!0);return new a.s(t,v).data.map(e=>d.fromResponse(e))})}getAllDetails(e){return y(this,void 0,void 0,function*(){const t=yield this.apiService.send("GET","/organizations/"+e+"/groups/details",null,!0,!0);return new a.s(t,v).data.map(e=>c.fromResponse(e))})}}b.ɵfac=function(e){return new(e||b)(r.KVO(m.G),r.KVO(f.w))},b.ɵprov=r.jDH({token:b,factory:b.ɵfac,providedIn:"root"});class C extends b{constructor(e,t){super(e,t),this.apiService=e,this.configService=t}delete(e,t){return y(this,void 0,void 0,function*(){yield this.apiService.send("DELETE","/organizations/"+e+"/groups/"+t,null,!0,!1)})}deleteMany(e,t){return y(this,void 0,void 0,function*(){yield this.apiService.send("DELETE","/organizations/"+e+"/groups",new h(t),!0,!0)})}save(e){return y(this,void 0,void 0,function*(){const t=new u;return t.name=e.name,t.users=e.members,t.collections=e.collections.map(e=>new o.I(e.id,e.readOnly,e.hidePasswords,e.manage)),null==e.id?yield this.postGroup(e.organizationId,t):yield this.putGroup(e.organizationId,e.id,t)})}postGroup(e,t){return y(this,void 0,void 0,function*(){const i=yield this.apiService.send("POST","/organizations/"+e+"/groups",t,!0,!0);return d.fromResponse(new g(i))})}putGroup(e,t,i){return y(this,void 0,void 0,function*(){const n=yield this.apiService.send("PUT","/organizations/"+e+"/groups/"+t,i,!0,!0);return d.fromResponse(new g(n))})}}C.ɵfac=function(e){return new(e||C)(r.KVO(m.G),r.KVO(f.w))},C.ɵprov=r.jDH({token:C,factory:C.ɵfac,providedIn:s});var I=i(68108),w=i(21571);class B{constructor(e){this.collections=[],this.groups=[],this.id=e.id,this.userId=e.userId,this.organizationId=e.organizationId,this.collections=e.collections,this.groups=e.groups,this.type=e.type,this.status=e.status,this.externalId=e.externalId,this.ssoExternalId=e.ssoExternalId,this.permissions=e.permissions,this.accessSecretsManager=e.accessSecretsManager,this.resetPasswordEnrolled=e.resetPasswordEnrolled,this.hasMasterPassword=e.hasMasterPassword,this.claimedByOrganization=e.claimedByOrganization}static fromResponse(e,t){var i,n,r,s,o;return new B({id:t.id,userId:t.userId,organizationId:e,collections:t.collections.map(e=>({id:e.id,hidePasswords:e.hidePasswords,readOnly:e.readOnly,manage:e.manage})),groups:null!==(i=t.groups)&&void 0!==i?i:[],type:t.type,status:t.status,externalId:t.externalId,ssoExternalId:t.ssoExternalId,permissions:t.permissions,accessSecretsManager:null!==(n=t.accessSecretsManager)&&void 0!==n&&n,resetPasswordEnrolled:null!==(r=t.resetPasswordEnrolled)&&void 0!==r&&r,hasMasterPassword:null!==(s=t.hasMasterPassword)&&void 0!==s&&s,claimedByOrganization:null!==(o=t.claimedByOrganization)&&void 0!==o&&o})}}var E=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class S{constructor(e,t){this.organizationUserApiService=e,this.organizationUserService=t}get(e,t){return E(this,void 0,void 0,function*(){const i=yield this.organizationUserApiService.getOrganizationUser(e,t,{includeGroups:!0});if(null!=i)return B.fromResponse(e,i)})}save(e,t){return E(this,void 0,void 0,function*(){const i=new w.$3({type:e.type,permissions:e.permissions,collections:e.collections,groups:e.groups,accessSecretsManager:e.accessSecretsManager});yield this.saveV2(i,e.id,t)})}saveV2(e,t,i){return E(this,void 0,void 0,function*(){yield(0,I._)(this.organizationUserService.updateUser(i,t,e))})}invite(e,t){return E(this,void 0,void 0,function*(){const i=new w.JS({emails:e,permissions:t.permissions,type:t.type,collections:t.collections,groups:t.groups,accessSecretsManager:t.accessSecretsManager});yield this.organizationUserApiService.postOrganizationUserInvite(t.organizationId,i)})}}S.ɵfac=function(e){return new(e||S)(r.KVO(w.uB),r.KVO(w.Ki))},S.ɵprov=r.jDH({token:S,factory:S.ɵfac,providedIn:s});i(65551)},65551(e,t,i){"use strict";i.d(t,{i:()=>s});var n=i(14848),r=i(6632);class s{constructor(e){var t;this.resetPasswordEnrolled=!1,this.twoFactorEnabled=!1,this.usesKeyConnector=!1,this.hasMasterPassword=!1,this.accessSecretsManager=!1,this.claimedByOrganization=!1,this.collections=[],this.groups=[],this.collectionNames=[],this.groupNames=[],this.id=e.id,this.userId=e.userId,this.email=e.email,this.type=e.type,this.revocationReason=e.revocationReason,this.status=e.status,this.permissions=e.permissions,this.avatarColor=e.avatarColor,this.name=e.name,this.claimedByOrganization=null!==(t=e.claimedByOrganization)&&void 0!==t&&t,this.canConfirm=this.status===r.OrganizationUserStatusType.Accepted,this.canReinvite=this.status===r.OrganizationUserStatusType.Invited,this.canRestore=this.status===r.OrganizationUserStatusType.Revoked,this.canRevoke=this.status!==r.OrganizationUserStatusType.Revoked,this.canRemove=!this.claimedByOrganization,this.canManageMember=this.status!==r.OrganizationUserStatusType.Staged}static fromResponse(e){const t=new s({id:e.id,userId:e.userId,email:e.email,type:e.type,revocationReason:e.revocationReason,status:e.status,permissions:e.permissions,avatarColor:e.avatarColor,name:e.name,claimedByOrganization:e.claimedByOrganization});return t.resetPasswordEnrolled=e.resetPasswordEnrolled,t.twoFactorEnabled=e.twoFactorEnabled,t.usesKeyConnector=e.usesKeyConnector,t.hasMasterPassword=e.hasMasterPassword,t.accessSecretsManager=e.accessSecretsManager,null!=e.collections&&(t.collections=e.collections.map(e=>new n.sK(e))),null!=e.groups&&(t.groups=e.groups),t}}},32501(e,t,i){"use strict";i.d(t,{Y:()=>o});var n=i(25065),r=i(14041),s=i(11217);class o{}o.ɵfac=function(e){return new(e||o)},o.ɵmod=r.$C({type:o}),o.ɵinj=s.G2t({imports:[n.G]})},58688(e,t,i){"use strict";i.d(t,{T:()=>f});var n=i(11217),r=i(68108),s=i(14041),o=i(35500),a=i(46758),l=i(84210),c=i(86226),d=i(19934),u=i(43759),h=i(25740),A=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function p(e,t){if(1&e&&(s.j41(0,"form",2,0)(2,"bit-form-field")(3,"bit-label"),s.EFF(4),s.nI1(5,"i18n"),s.k0s(),s.nrm(6,"input",3),s.k0s()()),2&e){const e=s.XpG();s.Y8G("formGroup",e.formGroup),s.R7$(4),s.JRh(s.bMT(5,2,"organizationName"))}}function g(e,t){1&e&&(s.j41(0,"bit-form-field",6)(1,"bit-label"),s.EFF(2),s.nI1(3,"i18n"),s.k0s(),s.nrm(4,"input",9),s.k0s()),2&e&&(s.R7$(2),s.JRh(s.bMT(3,1,"clientOwnerEmail")))}function v(e,t){if(1&e&&(s.j41(0,"div",5)(1,"bit-form-field",6)(2,"bit-label"),s.EFF(3),s.nI1(4,"i18n"),s.k0s(),s.nrm(5,"input",3),s.k0s(),s.j41(6,"bit-form-field",6)(7,"bit-label"),s.EFF(8),s.nI1(9,"i18n"),s.k0s(),s.nrm(10,"input",7),s.k0s(),s.DNE(11,g,5,3,"bit-form-field",8),s.k0s()),2&e){const e=s.XpG(2);s.R7$(3),s.JRh(s.bMT(4,3,"organizationName")),s.R7$(5),s.JRh(s.bMT(9,5,"email")),s.R7$(3),s.Y8G("ngIf",e.isProvider)}}function m(e,t){if(1&e&&(s.j41(0,"form",2,0)(2,"h2"),s.EFF(3),s.nI1(4,"i18n"),s.k0s(),s.DNE(5,v,12,7,"div",4),s.k0s()),2&e){const e=s.XpG();s.Y8G("formGroup",e.formGroup),s.R7$(3),s.JRh(s.bMT(4,3,"generalInformation")),s.R7$(2),s.Y8G("ngIf",e.createOrganization)}}class f{constructor(e){this.accountService=e,this.nameOnly=!1,this.createOrganization=!0,this.isProvider=!1,this.acceptingSponsorship=!1,this.changedBusinessOwned=new n.bkB}ngOnInit(){return A(this,void 0,void 0,function*(){var e,t,i;if(null===(i=null===(t=null===(e=this.formGroup)||void 0===e?void 0:e.controls)||void 0===t?void 0:t.billingEmail)||void 0===i?void 0:i.value)return;const n=yield(0,r._)(this.accountService.activeAccount$);(null==n?void 0:n.email)&&this.formGroup.controls.billingEmail.setValue(n.email)})}}f.ɵfac=function(e){return new(e||f)(s.rXU(o.D))},f.ɵcmp=s.VBU({type:f,selectors:[["app-org-info"]],inputs:{nameOnly:"nameOnly",createOrganization:"createOrganization",isProvider:"isProvider",acceptingSponsorship:"acceptingSponsorship",formGroup:"formGroup"},outputs:{changedBusinessOwned:"changedBusinessOwned"},standalone:!1,decls:2,vars:2,consts:[["form",""],[3,"formGroup",4,"ngIf"],[3,"formGroup"],["bitInput","","type","text","formControlName","name"],["class","tw-flex tw-w-full tw-space-x-4",4,"ngIf"],[1,"tw-flex","tw-w-full","tw-space-x-4"],[1,"tw-w-1/2"],["bitInput","","type","email","formControlName","billingEmail"],["class","tw-w-1/2",4,"ngIf"],["bitInput","","type","email","formControlName","clientOwnerEmail"]],template:function(e,t){1&e&&s.DNE(0,p,7,4,"form",1)(1,m,6,5,"form",1),2&e&&(s.Y8G("ngIf",t.nameOnly),s.R7$(),s.Y8G("ngIf",!t.nameOnly))},dependencies:[a.bT,l.qT,l.me,l.BC,l.cb,l.j4,l.JD,c.j,d.J,u.h,h.$],encapsulation:2})},45151(e,t,i){"use strict";i.d(t,{w:()=>b});var n=i(68108),r=i(191),s=i(69783),o=i(21571),a=i(67553),l=i(3633),c=i(39306),d=i(78781),u=i(8916);class h{constructor(e,t,i){this.orgId=e,this.publicKey=t,this.orgName=i}}var A=i(11217),p=i(89105),g=i(11224),v=i(50700),m=i(35500),f=i(83541),y=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class b{constructor(e,t,i,n,r,s,o,a){this.keyService=e,this.encryptService=t,this.organizationService=i,this.organizationUserApiService=n,this.organizationApiService=r,this.i18nService=s,this.accountService=o,this.masterPasswordService=a}buildRecoveryKey(e,t,i){return y(this,void 0,void 0,function*(){if(null==t)throw new Error("User key is required for recovery.");const n=yield this.organizationApiService.getKeys(e);if(null==n)throw new Error(this.i18nService.t("resetPasswordOrgKeysError"));const r=d.A.fromB64ToArray(n.publicKey);if(!i.some(e=>d.A.fromArrayToHex(e)===d.A.fromArrayToHex(r)))throw new Error("Untrusted public key");return(yield this.encryptService.encapsulateKeyUnsigned(t,r)).encryptedString})}recoverAccount(e){return y(this,void 0,void 0,function*(){let t,i;if(e.resetMasterPassword){const n=e.newMasterPassword;if(d.A.isNullOrWhitespace(n)||null==n)throw new Error(this.i18nService.t("resetPasswordNewPasswordRequired"));const r=e.email;if(d.A.isNullOrWhitespace(r)||null==r)throw new Error(this.i18nService.t("emailRequired"));const s=yield this.organizationUserApiService.getOrganizationUserResetPasswordDetails(e.organizationId,e.organizationUserId);if(null==s)throw new Error(this.i18nService.t("resetPasswordDetailsError"));const o=this.buildKdfConfig(s),a=yield this.decryptUserKey(s,e.organizationId),l="string"==typeof s.masterPasswordSalt?s.masterPasswordSalt:this.masterPasswordService.emailToSalt(r);({newMasterPasswordHash:t,key:i}=yield this.buildResetPasswordRequest(n,l,o,a))}yield this.organizationUserApiService.putOrganizationUserRecoverAccount(e.organizationId,e.organizationUserId,new o.W7(e.resetMasterPassword,e.resetTwoFactor,t,i))})}getPublicKeys(e){return y(this,void 0,void 0,function*(){const t=(yield(0,n._)(this.organizationService.organizations$(e))).filter(e=>e.resetPasswordEnrolled),i=[];for(const e of t){const t=yield this.organizationApiService.getKeys(e.id),n=d.A.fromB64ToArray(t.publicKey),r=new h(e.id,n,e.name);i.push(r)}return i})}getRotatedData(e,t,i){return y(this,void 0,void 0,function*(){if(null==e)throw new Error("New user key is required for rotation.");const r=yield(0,n._)(this.organizationService.organizations$(i));if(!r)throw new Error("Could not get organizations");const s=[];for(const i of r){if(!i.resetPasswordEnrolled)continue;const n=yield this.buildRecoveryKey(i.id,e,t),r=new o.Fw(i.id);r.resetPasswordKey=n,r.masterPasswordHash="ignored",s.push(r)}return s})}buildKdfConfig(e){switch(e.kdf){case u.ao.PBKDF2_SHA256:return new u.n1(e.kdfIterations);case u.ao.Argon2id:if(null==e.kdfMemory||null==e.kdfParallelism)throw new Error("Invalid KDF configuration");return new u.hU(e.kdfIterations,e.kdfMemory,e.kdfParallelism);default:throw new Error("Unsupported KDF type")}}decryptUserKey(e,t){return y(this,void 0,void 0,function*(){const i=yield(0,n._)(this.accountService.activeAccount$.pipe(l.F6,(0,r.n)(e=>this.keyService.orgKeys$(e)),(0,s.T)(e=>{var i;return null!==(i=null==e?void 0:e[t])&&void 0!==i?i:null})));if(null==i)throw new Error("No org key found");const o=yield this.encryptService.unwrapDecapsulationKey(new c.k(e.encryptedPrivateKey),i);return yield this.encryptService.decapsulateKeyUnsigned(new c.k(e.resetPasswordKey),o)})}buildResetPasswordRequest(e,t,i,n){return y(this,void 0,void 0,function*(){const r=yield this.masterPasswordService.makeMasterPasswordAuthenticationData(e,i,t),s=yield this.masterPasswordService.makeMasterPasswordUnlockData(e,i,t,n);return{newMasterPasswordHash:r.masterPasswordAuthenticationHash,key:s.masterKeyWrappedUserKey}})}}b.ɵfac=function(e){return new(e||b)(A.KVO(u.Lu),A.KVO(p.N),A.KVO(a.PV),A.KVO(o.uB),A.KVO(g.X),A.KVO(v.W),A.KVO(m.D),A.KVO(f.L))},b.ɵprov=A.jDH({token:b,factory:b.ɵfac,providedIn:"root"})},94249(e,t,i){"use strict";i.d(t,{WS:()=>dn,ZQ:()=>Yt,WM:()=>fe,sU:()=>Ge,iZ:()=>Oe,bS:()=>mn});var n=i(11217),r=i(92128),s=i(83604),o=i(72135),a=i(69783),l=i(191),c=i(6933),d=i(36219),u=i(73366),h=i(67553),A=i(3633),p=i(82468),g=i(38020),v=i(58950),m=i(98403),f=i(36801),y=i(72932),b=i(25065),C=i(24590),I=i(14041),w=i(68711),B=i(34949),E=i(68108),S=i(7356),Q=i(25607),k=i(84110),R=i(1601),F=i(88744),T=i(8916),D=i(83632),P=i(35500),M=i(27866),x=i(50700),V=i(84210),G=i(44075),U=i(69855),O=i(66316),N=i(68455),j=i(26657),Y=i(38620),X=i(47696),z=i(56898),L=i(44432),W=i(45635),K=i(67311),Z=i(57178),H=i(58806),J=i(25740),q=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const $=["policyForm"];function _(e,t){1&e&&I.nrm(0,"bit-spinner")}function ee(e,t){if(1&e&&(I.j41(0,"a",9),I.EFF(1),I.nI1(2,"i18n"),I.k0s()),2&e){const e=I.XpG(3);I.Y8G("href",e.policy.v2.prerequisiteLinkHref,I.B4B),I.R7$(),I.SpI(" ",I.bMT(2,2,e.policy.v2.prerequisiteLinkTextKey)," ")}}function te(e,t){if(1&e&&(I.j41(0,"bit-callout",6),I.nI1(1,"i18n"),I.EFF(2),I.nI1(3,"i18n"),I.nVh(4,ee,3,4,"a",9),I.k0s()),2&e){const e=I.XpG(2);I.Y8G("title",I.bMT(1,3,"prerequisite")),I.R7$(2),I.SpI(" ",I.bMT(3,5,e.policy.v2.prerequisiteKey)," "),I.R7$(2),I.vxM(e.policy.v2.prerequisiteLinkHref&&e.policy.v2.prerequisiteLinkTextKey?4:-1)}}function ie(e,t){if(1&e&&(I.j41(0,"bit-callout",7),I.EFF(1),I.nI1(2,"i18n"),I.k0s()),2&e){const e=I.XpG(2);I.R7$(),I.JRh(I.bMT(2,1,e.policy.warningKey))}}function ne(e,t){var i;if(1&e&&(I.j41(0,"p",8),I.EFF(1),I.nI1(2,"i18n"),I.k0s()),2&e){const e=I.XpG(2);I.R7$(),I.JRh(I.bMT(2,1,null!==(i=null==e.policy.v2?null:e.policy.v2.description)&&void 0!==i?i:e.policy.description))}}function re(e,t){}function se(e,t){var i;if(1&e&&(I.nVh(0,te,5,7,"bit-callout",6),I.nVh(1,ie,3,3,"bit-callout",7),I.nVh(2,ne,3,3,"p",8),I.DNE(3,re,0,0,"ng-template",null,0,I.C5r)),2&e){const e=I.XpG();I.vxM(null!=e.policy.v2&&e.policy.v2.prerequisiteKey?0:-1),I.R7$(),I.vxM(e.policy.warningKey?1:-1),I.R7$(),I.vxM((null!==(i=null==e.policy.v2?null:e.policy.v2.showDescription)&&void 0!==i?i:e.policy.showDescription)?2:-1)}}class oe{constructor(e,t,i,r,s,o,a,l,c,d,u){this.data=e,this.accountService=t,this.policyApiService=i,this.i18nService=r,this.cdr=s,this.formBuilder=o,this.dialogRef=a,this.toastService=l,this.keyService=c,this.dialogService=d,this.authService=u,this.policyFormRef=(0,C.ebz)("policyForm",Object.assign(Object.assign({},{}),{read:I.c1b})),this.destroyRef=(0,n.WQX)(n.abz),this.guardArmed=(0,n.vPA)(!0),this.policyType=S.tt,this.loading=(0,n.vPA)(!0),this.enabled=!1,this._saveDisabled=(0,n.vPA)(!0),this.saveDisabled=this._saveDisabled,this.policyComponent=(0,n.vPA)(void 0),this.policyEnabled=(0,n.vPA)(!1),this.formGroup=this.formBuilder.group({enabled:[this.enabled]}),this.discardDialogOptions={title:{key:"discardEditsTitle"},content:{key:"discardEditsConfirmation"},type:"danger",hideIcon:!0,acceptButtonText:{key:"discardEdits"},cancelButtonText:{key:"backToEditing"}},this.submit=()=>q(this,void 0,void 0,function*(){const e=this.policyComponent();if(!e)throw new Error("PolicyComponent not initialized.");try{yield this.submitPolicy(e),this.toastService.showToast({variant:"success",message:this.i18nService.t("editedPolicyId",this.i18nService.t(this.data.policy.name))}),yield this.dialogRef.close("saved")}catch(t){this.toastService.showToast({variant:"error",message:t.message})}})}get policy(){return this.data.policy}isFormDirty(){var e,t;const i=this.policyComponent();return!!i&&(i.enabled.dirty||null!==(t=null===(e=i.data)||void 0===e?void 0:e.dirty)&&void 0!==t&&t)}setupDiscardGuard(){this.dialogRef.closePredicate=e=>q(this,void 0,void 0,function*(){return!(!e&&this.isFormDirty())||this.dialogService.openSimpleDialog(this.discardDialogOptions)});const e=e=>{this.guardArmed()&&this.isFormDirty()&&e.preventDefault()};window.addEventListener("beforeunload",e),this.destroyRef.onDestroy(()=>window.removeEventListener("beforeunload",e)),this.accountService.activeAccount$.pipe((0,l.n)(e=>null==(null==e?void 0:e.id)?(0,s.of)(null):this.authService.authStatusFor$(e.id).pipe((0,w.p)(e=>e!==k.J.Unlocked))),(0,r.pQ)(this.destroyRef)).subscribe(()=>{this.guardArmed.set(!1),this.dialogRef.closePredicate=void 0})}ngAfterViewInit(){return q(this,void 0,void 0,function*(){var e,t,i,n,l;const c=yield this.load();this.loading.set(!1),this.cdr.detectChanges();const d=this.policyFormRef();if(!d)throw new Error("Template not initialized.");const u=d.createComponent(this.getComponentToLoad());u.setInput("policy",this.data.policy),u.setInput("policyResponse",c);const h=u.instance;this.policyComponent.set(h),this.policyEnabled.set(c.enabled),(0,o.z)([h.enabled.valueChanges.pipe((0,B.Z)(c.enabled)),null!==(t=null===(e=h.data)||void 0===e?void 0:e.valueChanges.pipe((0,B.Z)(c.data)))&&void 0!==t?t:(0,s.of)({}),null!==(l=null===(i=h.data)||void 0===i?void 0:i.statusChanges.pipe((0,B.Z)(null===(n=h.data)||void 0===n?void 0:n.status)))&&void 0!==l?l:(0,s.of)("VALID")]).pipe((0,a.T)(([e,t,i])=>{var n;return e===c.enabled&&!this.policyDataHasChanged(c.data,null===(n=h.data)||void 0===n?void 0:n.getRawValue())||"INVALID"===i||!c.canToggleState}),(0,r.pQ)(this.destroyRef)).subscribe(e=>this._saveDisabled.set(e)),this.cdr.detectChanges(),this.setupDiscardGuard()})}policyDataHasChanged(e,t){const i=null!=e?e:{},n=null!=t?t:{};return Object.keys(i).length!==Object.keys(n).length||Object.keys(n).some(e=>i[e]!==n[e])}load(){return q(this,void 0,void 0,function*(){try{return yield this.policyApiService.getPolicy(this.data.organization.id,this.data.policy.type)}catch(e){if(404===e.statusCode)return new Q.i({Enabled:!1});throw e}})}submitPolicy(e){return q(this,void 0,void 0,function*(){const t=yield(0,E._)(this.accountService.activeAccount$.pipe(A.F6,(0,l.n)(e=>this.keyService.orgKeys$(e)),(0,w.p)(e=>null!=e),(0,a.T)(e=>{var t;return null!==(t=e[this.data.organization.id])&&void 0!==t?t:null})));if(null==t)throw new Error("No encryption key for this organization.");const i=yield e.buildRequest(t);yield this.policyApiService.putPolicy(this.data.organization.id,this.data.policy.type,i)})}getComponentToLoad(){var e,t;return null!==(t=null===(e=this.data.policy.v2)||void 0===e?void 0:e.component)&&void 0!==t?t:this.data.policy.component}}oe.openDrawer=(e,t)=>e.openDrawer(oe,t),oe.ɵfac=function(e){return new(e||oe)(I.rXU(F.Qs),I.rXU(P.D),I.rXU(M.m),I.rXU(x.W),I.rXU(C.gRc),I.rXU(V.ok),I.rXU(G.ce),I.rXU(U.f),I.rXU(T.Lu),I.rXU(O.o),I.rXU(N.u))},oe.ɵcmp=I.VBU({type:oe,selectors:[["app-policy-edit-drawer"]],viewQuery:function(e,t){1&e&&I.wEZ(t.policyFormRef,$,5,I.c1b),2&e&&I.NyB()},decls:12,vars:15,consts:[["policyForm",""],["bit-dialog","","subtitle","",3,"formGroup","bitSubmit","loading","title"],["bitBadge","","bitDialogHeaderEnd","",3,"variant"],["bitDialogContent",""],["bitDialogFooter",""],["bitButton","","buttonType","primary","bitFormButton","","type","submit",3,"disabled"],["type","info",3,"title"],["type","warning"],["bitTypography","body1"],["bitLink","","target","_blank","rel","noreferrer",3,"href"]],template:function(e,t){var i;1&e&&(I.j41(0,"form",1),I.nI1(1,"i18n"),I.j41(2,"span",2),I.EFF(3),I.nI1(4,"i18n"),I.k0s(),I.qex(5,3),I.nVh(6,_,1,0,"bit-spinner")(7,se,5,3),I.bVm(),I.qex(8,4),I.j41(9,"button",5),I.EFF(10),I.nI1(11,"i18n"),I.k0s(),I.bVm(),I.k0s()),2&e&&(I.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit)("loading",t.loading())("title",I.bMT(1,9,null!==(i=null==t.policy.v2?null:t.policy.v2.name)&&void 0!==i?i:t.policy.name)),I.R7$(2),I.Y8G("variant",t.policyEnabled()?"success":"secondary"),I.R7$(),I.JRh(I.bMT(4,11,t.policyEnabled()?"on":"off")),I.R7$(3),I.vxM(t.loading()?6:7),I.R7$(3),I.Y8G("disabled",t.saveDisabled()),I.R7$(),I.SpI(" ",I.bMT(11,13,"save")," "))},dependencies:[b.G,V.qT,V.cb,V.j4,j.$,Y.L,X.n,z.Q,L.G,W.m,K.hJ,Z.g,H.r,D.t,J.$],encapsulation:2,changeDetection:0});var ae=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const le=["policyForm"];function ce(e,t){1&e&&(I.j41(0,"div"),I.nrm(1,"i",8),I.nI1(2,"i18n"),I.j41(3,"span",9),I.EFF(4),I.nI1(5,"i18n"),I.k0s()()),2&e&&(I.R7$(),I.Y8G("title",I.mNQ(I.bMT(2,3,"loading"))),I.R7$(3),I.JRh(I.bMT(5,5,"loading")))}function de(e,t){if(1&e&&(I.j41(0,"p",4),I.EFF(1),I.nI1(2,"i18n"),I.k0s()),2&e){const e=I.XpG();I.R7$(),I.JRh(I.bMT(2,1,e.policy.description))}}function ue(e,t){}class he{constructor(e,t,i,s,o,a,l,c,d,u,h,A){this.data=e,this.accountService=t,this.policyApiService=i,this.i18nService=s,this.cdr=o,this.formBuilder=a,this.dialogRef=l,this.toastService=c,this.keyService=d,this.dialogService=u,this.configService=h,this.authService=A,this.policyFormRef=(0,C.ebz)("policyForm",Object.assign(Object.assign({},{}),{read:I.c1b})),this.destroyRef=(0,n.WQX)(n.abz),this.discardGuardEnabled=(0,n.vPA)(!1),this.guardArmed=(0,n.vPA)(!1),this.useDrawer=(0,r.ot)((0,n.WQX)(R.w).getFeatureFlag$(p.TO.PolicyDrawers),{initialValue:!1}),this.policyType=S.tt,this.loading=(0,n.vPA)(!0),this.enabled=!1,this.policyEnabled=(0,n.vPA)(!1),this._saveDisabled=(0,n.vPA)(!0),this.saveDisabled=this._saveDisabled,this.policyComponent=(0,n.vPA)(void 0),this.formGroup=this.formBuilder.group({enabled:[this.enabled]}),this.discardDialogOptions={title:{key:"discardEditsTitle"},content:{key:"discardEditsConfirmation"},type:"danger",hideIcon:!0,acceptButtonText:{key:"discardEdits"},cancelButtonText:{key:"keepEditing"}},this.cancel=()=>ae(this,void 0,void 0,function*(){if(!this.discardGuardEnabled()||!this.isFormDirty())return void(yield this.dialogRef.close());(yield this.dialogService.openSimpleDialog(this.discardDialogOptions))&&(this.dialogRef.closePredicate=void 0,yield this.dialogRef.close())}),this.submit=()=>ae(this,void 0,void 0,function*(){const e=this.policyComponent();if(!e)throw new Error("PolicyComponent not initialized.");try{yield this.submitPolicy(e),this.toastService.showToast({variant:"success",message:this.i18nService.t("editedPolicyId",this.i18nService.t(this.data.policy.name))}),yield this.dialogRef.close("saved")}catch(t){this.toastService.showToast({variant:"error",message:t.message})}})}get policy(){return this.data.policy}isFormDirty(){var e,t;const i=this.policyComponent();return!!i&&(i.enabled.dirty||null!==(t=null===(e=i.data)||void 0===e?void 0:e.dirty)&&void 0!==t&&t)}setupDiscardGuard(){this.guardArmed.set(!0);const e=e=>{this.guardArmed()&&this.isFormDirty()&&e.preventDefault()};window.addEventListener("beforeunload",e),this.destroyRef.onDestroy(()=>window.removeEventListener("beforeunload",e)),this.accountService.activeAccount$.pipe((0,l.n)(e=>null==(null==e?void 0:e.id)?(0,s.of)(null):this.authService.authStatusFor$(e.id).pipe((0,w.p)(e=>e!==k.J.Unlocked))),(0,r.pQ)(this.destroyRef)).subscribe(()=>{this.guardArmed.set(!1),this.discardGuardEnabled.set(!1),this.dialogRef.closePredicate=void 0}),this.useDrawer()&&this.dialogRef.isDrawer&&(this.discardGuardEnabled.set(!0),this.dialogRef.closePredicate=e=>ae(this,void 0,void 0,function*(){if(e||!this.isFormDirty())return!0;const t=yield this.dialogService.openSimpleDialog(this.discardDialogOptions);return t&&this.discardGuardEnabled.set(!1),t}))}getComponentToLoad(){return this.data.policy.component}ngAfterViewInit(){return ae(this,void 0,void 0,function*(){var e,t,i,n;const l=yield this.load();this.policyEnabled.set(l.enabled),this.loading.set(!1);const c=this.policyFormRef();if(!c)throw new Error("Template not initialized.");const d=c.createComponent(this.getComponentToLoad());d.setInput("policy",this.data.policy),d.setInput("policyResponse",l);const u=d.instance;this.policyComponent.set(u),this.policyEnabled.set(l.enabled),(0,o.z)([u.enabled.valueChanges.pipe((0,B.Z)(l.enabled)),null!==(t=null===(e=u.data)||void 0===e?void 0:e.valueChanges.pipe((0,B.Z)(l.data)))&&void 0!==t?t:(0,s.of)({}),null!==(n=null===(i=u.data)||void 0===i?void 0:i.statusChanges.pipe((0,B.Z)("VALID")))&&void 0!==n?n:(0,s.of)("VALID")]).pipe((0,a.T)(([e,t,i])=>{var n;return e===l.enabled&&!this.policyDataHasChanged(l.data,null===(n=u.data)||void 0===n?void 0:n.getRawValue())||"INVALID"===i||!l.canToggleState}),(0,r.pQ)(this.destroyRef)).subscribe(e=>this._saveDisabled.set(e)),this.cdr.detectChanges(),this.setupDiscardGuard()})}policyDataHasChanged(e,t){const i=null!=e?e:{},n=null!=t?t:{};return Object.keys(i).length!==Object.keys(n).length||Object.keys(n).some(e=>{const t=i[e],r=n[e];return Array.isArray(t)||Array.isArray(r)?JSON.stringify((t||[]).sort())!==JSON.stringify((r||[]).sort()):t!==r})}load(){return ae(this,void 0,void 0,function*(){try{return yield this.policyApiService.getPolicy(this.data.organization.id,this.data.policy.type)}catch(e){if(404===e.statusCode)return new Q.i({Enabled:!1});throw e}})}submitPolicy(e){return ae(this,void 0,void 0,function*(){const t=yield(0,E._)(this.accountService.activeAccount$.pipe(A.F6,(0,l.n)(e=>this.keyService.orgKeys$(e)),(0,w.p)(e=>null!=e),(0,a.T)(e=>{var t;return null!==(t=e[this.data.organization.id])&&void 0!==t?t:null})));if(null==t)throw new Error("No encryption key for this organization.");const i=yield e.buildRequest(t);yield this.policyApiService.putPolicy(this.data.organization.id,this.data.policy.type,i)})}}he.open=(e,t)=>e.open(he,t),he.openDrawer=(e,t)=>oe.openDrawer(e,t),he.ɵfac=function(e){return new(e||he)(I.rXU(F.Qs),I.rXU(P.D),I.rXU(M.m),I.rXU(x.W),I.rXU(C.gRc),I.rXU(V.ok),I.rXU(G.ce),I.rXU(U.f),I.rXU(T.Lu),I.rXU(O.o),I.rXU(R.w),I.rXU(N.u))},he.ɵcmp=I.VBU({type:he,selectors:[["ng-component"]],viewQuery:function(e,t){1&e&&I.wEZ(t.policyFormRef,le,5,I.c1b),2&e&&I.NyB()},decls:16,vars:19,consts:[["policyForm",""],["bit-dialog","",3,"formGroup","bitSubmit","loading","title","subtitle"],["bitDialogContent",""],[3,"hidden"],["bitTypography","body1"],["bitDialogFooter",""],["bitButton","","buttonType","primary","bitFormButton","","type","submit",3,"disabled"],["bitButton","","buttonType","secondary","type","button",3,"click"],["aria-hidden","true",1,"bwi","bwi-spinner","bwi-spin","tw-text-muted",3,"title"],[1,"tw-sr-only"]],template:function(e,t){1&e&&(I.j41(0,"form",1),I.nI1(1,"i18n"),I.nI1(2,"i18n"),I.qex(3,2),I.nVh(4,ce,6,7,"div"),I.j41(5,"div",3),I.nVh(6,de,3,3,"p",4),I.DNE(7,ue,0,0,"ng-template",null,0,I.C5r),I.k0s(),I.bVm(),I.qex(9,5),I.j41(10,"button",6),I.EFF(11),I.nI1(12,"i18n"),I.k0s(),I.j41(13,"button",7),I.bIt("click",function(){return t.cancel()}),I.EFF(14),I.nI1(15,"i18n"),I.k0s(),I.bVm(),I.k0s()),2&e&&(I.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit)("loading",t.loading())("title",I.bMT(1,11,"editPolicy"))("subtitle",I.bMT(2,13,t.policy.name)),I.R7$(4),I.vxM(t.loading()?4:-1),I.R7$(),I.Y8G("hidden",t.loading()),I.R7$(),I.vxM(t.policy.showDescription?6:-1),I.R7$(4),I.Y8G("disabled",t.saveDisabled()),I.R7$(),I.SpI(" ",I.bMT(12,15,"save")," "),I.R7$(3),I.SpI(" ",I.bMT(15,17,"cancel")," "))},dependencies:[b.G,V.qT,V.cb,V.j4,j.$,Y.L,z.Q,W.m,K.hJ,H.r,J.$],encapsulation:2,changeDetection:0});const Ae="data-controls",pe="authentication",ge="vault-management",ve=[{category:Ae,labelKey:"dataControls"},{category:pe,labelKey:"authentication"},{category:ge,labelKey:"vaultManagement"}];class me{constructor(e){const t=[...e].sort((t,i)=>t.priority!==i.priority?t.priority-i.priority:e.indexOf(t)-e.indexOf(i));this.allPolicies=Object.freeze(t),this.sections=ve.map(e=>Object.assign(Object.assign({},e),{policies:t.filter(t=>t.category===e.category)}))}getPolicies(){return this.allPolicies}}const fe=new f.aZ("POLICY_EDIT_REGISTER");var ye=i(26983),be=i(18499),Ce=i(10672),Ie=i(88832),we=i(49112),Be=i(75556),Ee=i(90300),Se=i(91962),Qe=i(46758),ke=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Re=(e,t)=>t.category,Fe=(e,t)=>t.type;function Te(e,t){1&e&&(I.nrm(0,"i",0),I.nI1(1,"i18n"),I.j41(2,"span",1),I.EFF(3),I.nI1(4,"i18n"),I.k0s()),2&e&&(I.Y8G("title",I.mNQ(I.bMT(1,3,"loading"))),I.R7$(3),I.JRh(I.bMT(4,5,"loading")))}function De(e,t){1&e&&(I.j41(0,"span",5),I.EFF(1),I.nI1(2,"i18n"),I.k0s()),2&e&&(I.R7$(),I.JRh(I.bMT(2,1,"on")))}function Pe(e,t){1&e&&(I.j41(0,"span",6),I.EFF(1),I.nI1(2,"i18n"),I.k0s()),2&e&&(I.R7$(),I.JRh(I.bMT(2,1,"off")))}function Me(e,t){if(1&e){const e=I.RV6();I.j41(0,"bit-item")(1,"button",3),I.bIt("click",function(){const t=n.eBV(e).$implicit,i=I.XpG(3),r=I.r8f(5);return n.Njj(i.edit(t,r))}),I.EFF(2),I.nI1(3,"i18n"),I.j41(4,"span",4),I.EFF(5),I.nI1(6,"i18n"),I.k0s(),I.nVh(7,De,3,3,"span",5)(8,Pe,3,3,"span",6),I.k0s()()}if(2&e){const e=t.$implicit;I.XpG(3);const i=I.r8f(3),n=I.r8f(7);I.R7$(2),I.SpI(" ",I.bMT(3,3,n&&null!=e.v2&&e.v2.name?e.v2.name:e.name)," "),I.R7$(3),I.JRh(I.bMT(6,5,n&&null!=e.v2&&e.v2.description?e.v2.description:e.description)),I.R7$(2),I.vxM(i.get(e.type)?7:8)}}function xe(e,t){if(1&e&&(I.j41(0,"bit-section")(1,"bit-section-header")(2,"h2",2),I.EFF(3),I.nI1(4,"i18n"),I.k0s()(),I.j41(5,"bit-item-group"),I.nI1(6,"i18n"),I.Z7z(7,Me,9,7,"bit-item",null,Fe),I.k0s()()),2&e){const e=t.$implicit;I.R7$(3),I.JRh(I.bMT(4,2,e.labelKey)),I.R7$(2),I.BMQ("aria-label",I.bMT(6,4,e.labelKey)),I.R7$(2),I.Dyx(e.policies)}}function Ve(e,t){if(1&e&&I.Z7z(0,xe,9,6,"bit-section",null,Re),2&e){I.XpG();const e=I.r8f(1);I.Dyx(e)}}class Ge{visiblePoliciesInSection$(e,t){return 0===e.policies.length?(0,s.of)(Object.assign(Object.assign({},e),{policies:[]})):(0,o.z)(e.policies.map(e=>e.display$(t,this.configService).pipe((0,a.T)(t=>t?e:null)))).pipe((0,a.T)(t=>Object.assign(Object.assign({},e),{policies:t.filter(e=>null!==e)})))}constructor(e,t,i,d,u,h,v,m,f){this.route=e,this.organizationService=t,this.accountService=i,this.policyApiService=d,this.policyListService=u,this.dialogService=h,this.policyService=v,this.configService=m,this.destroyRef=f,this.drawerRef=(0,n.vPA)(void 0),this.userId$=this.accountService.activeAccount$.pipe(A.F6),this.organizationId$=this.route.params.pipe((0,a.T)(e=>e.organizationId)),this.organization$=(0,o.z)([this.userId$,this.organizationId$]).pipe((0,l.n)(([e,t])=>this.organizationService.organizations$(e).pipe((0,g.Hc)(t),(0,a.T)(e=>{if(null==e)throw new Error("No organization found for provided userId");return e})))),this.policies$=(0,s.of)(this.policyListService.getPolicies()),this.orgPolicies$=this.accountService.activeAccount$.pipe(A.F6,(0,l.n)(e=>this.policyService.policies$(e)),(0,l.n)(()=>this.organizationId$),(0,l.n)(e=>this.policyApiService.getPolicies(e)),(0,a.T)(e=>null!=e.data&&e.data.length>0?e.data:[]),(0,c.t)({bufferSize:1,refCount:!0})),this.policyEditDefinitionsDict=Object.fromEntries(this.policyListService.getPolicies().map(e=>[e.type,e])),this.policiesEnabledMap$=this.orgPolicies$.pipe((0,a.T)(e=>{const t=new Map;return e.forEach(e=>{var i,n;const r=null!==(n=null===(i=this.policyEditDefinitionsDict[e.type])||void 0===i?void 0:i.enabled(e))&&void 0!==n?n:e.enabled;t.set(e.type,r)}),t})),this.useDrawer=(0,r.ot)(this.configService.getFeatureFlag$(p.TO.PolicyDrawers),{initialValue:!1}),this.policySections$=this.organization$.pipe((0,l.n)(e=>(0,o.z)(this.policyListService.sections.map(t=>this.visiblePoliciesInSection$(t,e)))),(0,a.T)(e=>e.filter(e=>e.policies.length>0))),this.handleLaunchEvent(),this.destroyRef.onDestroy(()=>{var e;null===(e=this.drawerRef())||void 0===e||e.close()})}handleLaunchEvent(){(0,o.z)([this.route.queryParams.pipe((0,d.$)()),this.orgPolicies$,this.organization$]).pipe((0,a.T)(([e,t,i])=>{if(null!=e.policyId){const n=e.policyId,r=this.policyListService.getPolicies();for(const e of t)if(e.id===n){for(const t of r)if(t.type===e.type){this.edit(t,i);break}break}}}),(0,r.pQ)(this.destroyRef)).subscribe()}edit(e,t){return ke(this,void 0,void 0,function*(){var i;const n=null!==(i=e.editDialogComponent)&&void 0!==i?i:he,r=this.useDrawer()?n.openDrawer:void 0;if(r){const i=document.activeElement instanceof HTMLElement?document.activeElement:null,n=yield r(this.dialogService,{data:{policy:e,organization:t}});if(void 0!==n){this.drawerRef.set(n);try{yield(0,u.s)(n.closed)}finally{this.drawerRef.set(void 0)}(null==i?void 0:i.isConnected)&&i.focus()}}else n.open(this.dialogService,{data:{policy:e,organization:t}})})}canDeactivate(){return ke(this,void 0,void 0,function*(){if(!this.drawerRef())return!0;return(yield this.drawerRef().close()).closed})}}Ge.ɵfac=function(e){return new(e||Ge)(I.rXU(ye.nX),I.rXU(h.PV),I.rXU(P.D),I.rXU(M.m),I.rXU(me),I.rXU(O.o),I.rXU(be.m),I.rXU(R.w),I.rXU(n.abz))},Ge.ɵcmp=I.VBU({type:Ge,selectors:[["ng-component"]],features:[I.Jv_([(0,f.F)({provide:me,deps:[fe]})])],decls:11,vars:11,consts:[["aria-hidden","true",1,"bwi","bwi-spinner","bwi-spin","tw-text-muted",3,"title"],[1,"tw-sr-only"],["bitTypography","h2"],["type","button","bit-item-content","",3,"click"],["slot","secondary"],["bitBadge","","variant","success","slot","end"],["bitBadge","","variant","secondary","slot","end"]],template:function(e,t){if(1&e&&(I.nrm(0,"app-header"),I.SS7(1),I.nI1(2,"async"),I.SS7(3),I.nI1(4,"async"),I.SS7(5),I.nI1(6,"async"),I.SS7(7),I.j41(8,"bit-container"),I.nVh(9,Te,5,7)(10,Ve,2,0),I.k0s()),2&e){I.R7$();const e=I.bH3(I.bMT(2,1,t.policySections$));I.R7$(2);const i=I.bH3(I.bMT(4,4,t.policiesEnabledMap$));I.R7$(2);const n=I.bH3(I.bMT(6,7,t.organization$));I.R7$(2),I.bH3(t.useDrawer()),I.R7$(2),I.vxM(e&&i&&n?10:9)}},dependencies:[b.G,X.n,Ce.H,Ie.n,H.r,y.G,we.f,v.U,m.k,Be.J,Ee.g,Se._,Qe.Jj,J.$],encapsulation:2,changeDetection:0});var Ue=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Oe{constructor(e,t){this.accountService=e,this.authService=t}canDeactivate(e){return Ue(this,void 0,void 0,function*(){const t=yield(0,E._)(this.accountService.activeAccount$);if(null==(null==t?void 0:t.id))return!0;return(yield(0,E._)(this.authService.authStatusFor$(t.id)))!==k.J.Unlocked||e.canDeactivate()})}}Oe.ɵfac=function(e){return new(e||Oe)(n.KVO(P.D),n.KVO(N.u))},Oe.ɵprov=n.jDH({token:Oe,factory:Oe.ɵfac,providedIn:"root"});var Ne=i(95457),je=i(60512),Ye=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Xe{constructor(){this.showDescription=!0,this.showEnabledBadge=!1}display$(e,t){return(0,s.of)(!0)}enabled(e){return e.enabled}}class ze{constructor(){this.accountService=(0,n.WQX)(P.D),this.organizationServcie=(0,n.WQX)(h.PV),this.keyService=(0,n.WQX)(T.Lu),this.policyApiService=(0,n.WQX)(M.m),this.policyResponse=(0,C.hFB)(void 0),this.policy=(0,C.hFB)(void 0),this.currentStep=(0,C.hFB)((0,n.vPA)(0)),this.organizationId=(0,C.hFB)(void 0),this.organization$=(0,Ne.v)(()=>{var e,t;return this.accountService.activeAccount$.pipe(A.F6,(0,l.n)(e=>this.organizationServcie.organizations$(e)),(0,g.Hc)(null!==(e=this.organizationId())&&void 0!==e?e:null===(t=this.policyResponse())||void 0===t?void 0:t.organizationId))}),this.enabled=new V.MJ(!1),this.policySteps=[{sideEffect:()=>this.savePolicy()}]}ngOnInit(){var e,t,i;this.enabled.setValue(null!==(t=null===(e=this.policyResponse())||void 0===e?void 0:e.enabled)&&void 0!==t&&t),null!=(null===(i=this.policyResponse())||void 0===i?void 0:i.data)&&this.loadData()}buildRequest(e){return Ye(this,void 0,void 0,function*(){var e;if(!this.policy())throw new Error("Policy was not found");return{policy:{enabled:null!==(e=this.enabled.value)&&void 0!==e&&e,data:this.buildRequestData()},metadata:null}})}savePolicy(){return Ye(this,void 0,void 0,function*(){var e;if(!this.policy())throw new Error("Policy was not found");const t=yield(0,E._)(this.accountService.activeAccount$.pipe(A.F6,(0,l.n)(e=>this.keyService.orgKeys$(e))));(0,je.x)(t,"Org keys not provided");const i=t[this.organizationId()];(0,je.x)(i,"No encryption key for this organization.");const n=yield this.buildRequest(i);yield this.policyApiService.putPolicy(null!==(e=this.organizationId())&&void 0!==e?e:"",this.policy().type,n)})}loadData(){var e,t,i;null===(e=this.data)||void 0===e||e.patchValue(null!==(i=null===(t=this.policyResponse())||void 0===t?void 0:t.data)&&void 0!==i?i:{})}buildRequestData(){return null!=this.data?this.data.getRawValue():null}}ze.ɵfac=function(e){return new(e||ze)},ze.ɵdir=I.FsC({type:ze,inputs:{policyResponse:[1,"policyResponse"],policy:[1,"policy"],currentStep:[1,"currentStep"],organizationId:[1,"organizationId"]}});var Le=i(50352),We=i(90246),Ke=i(86226);class Ze extends ze{}Ze.ɵfac=(()=>{let e;return function(t){return(e||(e=I.xGo(Ze)))(t||Ze)}})(),Ze.ɵcmp=I.VBU({type:Ze,selectors:[["disable-send-policy-edit"]],features:[I.Vt3],decls:8,vars:7,consts:[["type","warning"],["type","checkbox","bitCheckbox","","id","enabled",3,"formControl"]],template:function(e,t){1&e&&(I.j41(0,"bit-callout",0),I.EFF(1),I.nI1(2,"i18n"),I.k0s(),I.j41(3,"bit-form-control"),I.nrm(4,"input",1),I.j41(5,"bit-label"),I.EFF(6),I.nI1(7,"i18n"),I.k0s()()),2&e&&(I.R7$(),I.SpI(" ",I.bMT(2,3,"disableSendExemption"),"\n"),I.R7$(3),I.Y8G("formControl",t.enabled),I.R7$(2),I.JRh(I.bMT(7,5,"turnOn")))},dependencies:[b.G,V.Zm,V.BC,V.l_,L.G,Le.P,We.f,Ke.j,J.$],encapsulation:2,changeDetection:0});var He=i(63477),Je=i(15853),qe=i(54600);class $e{constructor(){this.disableSend=!1,this.whoCanAccess=qe.b.Any,this.allowedDomains=null,this.disableHideEmail=!1,this.deletionHours=null,this.allowedSendTypes=[Je.N.Text,Je.N.File]}}var _e=i(47524),et=i(47135),tt=i(26411),it=i(61465),nt=i(8297),rt=i(38867),st=i(15033),ot=i(58384),at=i(23542);let lt=0;class ct{get ngControl(){return this.injector.get(V.vO,null,{self:!0,optional:!0})}get disabled(){return this.disabledInput()||this._formsDisabled()||!1}get required(){var e,t,i;return null!==(i=null===(t=null===(e=this.ngControl)||void 0===e?void 0:e.control)||void 0===t?void 0:t.hasValidator(V.k0.requiredTrue))&&void 0!==i&&i}get hasError(){var e,t;return!("INVALID"!==(null===(e=this.ngControl)||void 0===e?void 0:e.status)||!(null===(t=this.ngControl)||void 0===t?void 0:t.touched))}get error(){var e,t;const i=null!==(t=null===(e=this.ngControl)||void 0===e?void 0:e.errors)&&void 0!==t?t:{},n=Object.keys(i)[0];return[n,i[n]]}writeValue(e){this.selected.set(e)}onChange(e){this.selected.set(e),null!=this.notifyOnChange&&this.notifyOnChange(e)}onTouch(){null!=this.notifyOnTouch&&this.notifyOnTouch()}registerOnChange(e){this.notifyOnChange=e}registerOnTouched(e){this.notifyOnTouch=e}setDisabledState(e){this._formsDisabled.set(e)}constructor(){this.injector=(0,n.WQX)(n.zZn),this.card=(0,n.WQX)(rt.b,{optional:!0}),this.size=(0,n.vPA)(this.card?"large":"base"),this.ariaLabelledBy=(0,n.vPA)(void 0),this.ariaDescribedBy=(0,n.vPA)(void 0),this.selected=(0,C.geq)(!1),this.disabledInput=(0,C.hFB)(!1,Object.assign(Object.assign({},{}),{transform:C.L39,alias:"disabled"})),this._formsDisabled=(0,n.vPA)(!1),this.checkIndicatorClasses=(0,He.EW)(()=>["tw-transition-opacity",...this.selected()?["tw-opacity-100"]:["tw-opacity-0"],..."large"===this.size()?["tw-text-[.875rem]"]:["tw-text-[.75rem]"]].join(" ")),this.trackClasses=(0,He.EW)(()=>["tw-flex","tw-relative","tw-shrink-0","tw-rounded-full","tw-text-fg-brand","after:tw-transition-[background-color]","after:tw-absolute","after:tw-inset-0","after:tw-rounded-full","after:tw-size-full",..."large"===this.size()?["!tw-w-11","!tw-h-6"]:["!tw-w-8","tw-h-[1.125rem]"],...this.disabled?["tw-bg-bg-inactive","tw-text-[var(--color-bg-inactive)]"]:this.selected()?["tw-bg-bg-brand","[&:has(input:focus-visible)]:after:tw-bg-bg-brand-strong","[&:has(input:focus-visible)]:tw-text-fg-brand-strong","[label:hover_&]:after:tw-bg-bg-brand-strong","[label:hover_&]:tw-text-fg-brand-strong"]:["tw-bg-bg-gray","[&:has(input:focus-visible)]:after:tw-bg-bg-gray-strong","[label:hover_&]:after:tw-bg-bg-gray-strong"]].join(" ")),this.thumbClasses=(0,He.EW)(()=>["tw-flex","tw-items-center","tw-justify-center","tw-absolute","tw-z-[2]","tw-block","tw-bg-text-alt2","tw-rounded-full","tw-shadow-md","tw-transform","tw-transition-transform",..."large"===this.size()?["tw-size-[1.125rem]","tw-top-[3px]","tw-start-[3px]"]:["tw-size-3.5","tw-top-[2px]","tw-start-[2px]"],..."large"===this.size()&&this.selected()?["tw-translate-x-[calc(theme(spacing.11)_-_(1.125rem_+_6px))]","rtl:-tw-translate-x-[calc(theme(spacing.11)_-_(1.125rem_+_6px))]"]:[],..."base"===this.size()&&this.selected()?["tw-translate-x-[calc(theme(spacing.8)_-_(.875rem_+_4px))]","rtl:-tw-translate-x-[calc(theme(spacing.8)_-_(.875rem_+_4px))]"]:[],...this.disabled&&this.selected()?["tw-bg-[var(--color-fg-inactive)]"]:[]].join(" ")),this.notifyOnChange=()=>{},this.notifyOnTouch=()=>{},this.id=(0,C.hFB)("bit-switch-"+lt++),this.card&&(0,n.QZP)(()=>{const e=[this.card.effectiveErrorId,this.card.effectiveHintId()].filter(Boolean).join(" ");this.ariaLabelledBy.set(this.card.labelId),this.ariaDescribedBy.set(e||void 0)})}onInputChange(e){const t=e.target.checked;this.onChange(t),this.onTouch()}get inputId(){return`${this.id()}-input`}}ct.ɵfac=function(e){return new(e||ct)},ct.ɵcmp=I.VBU({type:ct,selectors:[["bit-switch"]],hostVars:2,hostBindings:function(e,t){2&e&&(I.Avn("id",t.id()),I.BMQ("aria-disabled",t.disabled))},inputs:{selected:[1,"selected"],disabledInput:[1,"disabled","disabledInput"],id:[1,"id"]},outputs:{selected:"selectedChange"},features:[I.Jv_([{provide:V.kq,useExisting:ct,multi:!0},{provide:st.J,useExisting:ct}]),I.nM4([at.v])],decls:5,vars:11,consts:[[1,"tw-p-[3px]","tw-relative"],["type","checkbox","role","switch",1,"tw-sr-only","tw-absolute","tw-size-full",3,"change","id","checked"],["name","bwi-check"]],template:function(e,t){var i,n;1&e&&(I.j41(0,"div",0)(1,"span")(2,"input",1),I.bIt("change",function(e){return t.onInputChange(e)}),I.k0s(),I.j41(3,"span"),I.nrm(4,"bit-icon",2),I.k0s()()()),2&e&&(I.R7$(),I.HbH(t.trackClasses()),I.R7$(),I.Y8G("id",t.inputId)("checked",t.selected()),I.BMQ("aria-disabled",t.disabled)("aria-labelledby",null!==(i=t.ariaLabelledBy())&&void 0!==i?i:null)("aria-describedby",null!==(n=t.ariaDescribedBy())&&void 0!==n?n:null),I.R7$(),I.HbH(t.thumbClasses()),I.R7$(),I.HbH(t.checkIndicatorClasses()))},dependencies:[ot.R],encapsulation:2});var dt=i(8433),ut=i(4717),ht=i(93199),At=i(19934),pt=i(89812),gt=i(43759),vt=i(33886),mt=i(68923),ft=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const yt=(e,t)=>t.value;function bt(e,t){if(1&e&&I.nrm(0,"bit-option",7),2&e){const e=t.$implicit;I.Y8G("label",e.label)("value",e.value)}}function Ct(e,t){if(1&e&&(I.j41(0,"bit-form-field",8)(1,"bit-label"),I.EFF(2),I.nI1(3,"i18n"),I.k0s(),I.nrm(4,"input",13),I.j41(5,"bit-hint"),I.EFF(6),I.k0s()()),2&e){const e=I.XpG();I.R7$(2),I.JRh(I.bMT(3,2,"allowedDomains")),I.R7$(4),I.JRh(e.allowedDomainsHint())}}function It(e,t){if(1&e&&I.nrm(0,"bit-option",15),2&e){const e=t.$implicit;I.Y8G("value",e.value)("label",e.label)}}function wt(e,t){if(1&e&&(I.j41(0,"bit-form-field")(1,"bit-label"),I.EFF(2),I.nI1(3,"i18n"),I.k0s(),I.j41(4,"bit-select",14),I.Z7z(5,It,1,2,"bit-option",15,yt),I.k0s()()),2&e){const e=I.XpG();I.R7$(2),I.JRh(I.bMT(3,1,"sendDeletionDate")),I.R7$(3),I.Dyx(e.deletionHoursOptions)}}class Bt extends ze{constructor(e,t,i){super(),this.formBuilder=e,this.orgDomainApiService=t,this.i18nService=i,this.destroyRef=(0,n.WQX)(n.abz),this.deletionHoursOptions=[],this.data=this.formBuilder.group({disableSend:!1,whoCanAccess:qe.b.Any,allowedDomains:null,disableHideEmail:!1,allowedSendTypes:[[Je.N.Text,Je.N.File],[V.k0.required]],deletionHours:null}),this.enableSendControl=new V.MJ(!1),this.allowedSendTypesMultiSelectControl=new V.MJ([],{validators:[V.k0.required]}),this.dataFormValue=(0,r.ot)(this.data.valueChanges),this.sendFeatureAllowed=(0,He.EW)(()=>{var e;return!(null===(e=this.dataFormValue())||void 0===e?void 0:e.disableSend)}),this.allSendTypeOptions=(0,n.vPA)([{id:Je.N.Text.toString(),icon:"bwi-file-text",listName:this.i18nService.t("sendTypeText"),labelName:this.i18nService.t("sendTypeText"),value:Je.N.Text},{id:Je.N.File.toString(),icon:"bwi-file",listName:this.i18nService.t("sendTypeFile"),labelName:this.i18nService.t("sendTypeFile"),value:Je.N.File}]).asReadonly(),this.sendAccessOptions=[{label:this.i18nService.t("any"),value:qe.b.Any},{label:this.i18nService.t("emailVerification"),value:qe.b.SpecificPeople},{label:this.i18nService.t("sendAccessOptionAnyoneWithAPassword"),value:qe.b.PasswordProtected}],this.showDomains=(0,n.vPA)(!1),this.claimedDomains=(0,n.vPA)(null),this.allowedDomainsHint=(0,He.EW)(()=>null!=this.claimedDomains()?this.i18nService.t("allowedDomainsAutopopulateAlert")+" "+this.i18nService.t("separateDomainsWithComma"):this.i18nService.t("separateDomainsWithComma")),this.showDeletionHours=new V.MJ(!1),this.deletionHoursOptions=[{label:this.i18nService.t("oneHour"),value:_e.u9.OneHour},{label:this.i18nService.t("oneDay"),value:_e.u9.OneDay},{label:this.i18nService.t("days","2"),value:_e.u9.TwoDays},{label:this.i18nService.t("days","3"),value:_e.u9.ThreeDays},{label:this.i18nService.t("days","7"),value:_e.u9.SevenDays},{label:this.i18nService.t("days","14"),value:_e.u9.FourteenDays},{label:this.i18nService.t("days","30"),value:_e.u9.ThirtyDays}]}ngOnInit(){const e=Object.create(null,{ngOnInit:{get:()=>super.ngOnInit}});return ft(this,void 0,void 0,function*(){var t,i;this.fetchClaimedDomains(),null===(t=this.data.get("whoCanAccess"))||void 0===t||t.valueChanges.pipe((0,r.pQ)(this.destroyRef)).subscribe(e=>{const t=this.data.get("allowedDomains");t&&(e===qe.b.SpecificPeople?(t.setValidators([this.emailDomainValidator()]),t.value||t.setValue(this.claimedDomains()),this.showDomains.set(!0)):(t.clearValidators(),t.patchValue(null),this.showDomains.set(!1)))}),this.enableSendControl.valueChanges.pipe((0,r.pQ)(this.destroyRef)).subscribe(e=>{var t;null===(t=this.data.get("disableSend"))||void 0===t||t.patchValue(!e)}),null===(i=this.data.get("deletionHours"))||void 0===i||i.valueChanges.pipe((0,r.pQ)(this.destroyRef)).subscribe(e=>{this.showDeletionHours.patchValue(null!=e,{emitEvent:!1})}),this.showDeletionHours.valueChanges.pipe((0,r.pQ)(this.destroyRef)).subscribe(e=>{this.data.patchValue({deletionHours:e?_e.u9.ThreeDays:null})}),this.allowedSendTypesMultiSelectControl.valueChanges.pipe((0,r.pQ)(this.destroyRef)).subscribe(e=>{var t;null===(t=this.data.get("allowedSendTypes"))||void 0===t||t.patchValue((null!=e?e:[]).map(e=>e.value))}),e.ngOnInit.call(this)})}loadData(){var e,t,i;const n=null!==(t=null===(e=this.policyResponse())||void 0===e?void 0:e.data)&&void 0!==t?t:new $e;null==n.allowedSendTypes&&(n.allowedSendTypes=[Je.N.Text,Je.N.File]),null==n.whoCanAccess&&(n.whoCanAccess=qe.b.Any),this.data.patchValue(n),this.enableSendControl.patchValue(!(null!==(i=n.disableSend)&&void 0!==i&&i)),this.allowedSendTypesMultiSelectControl.patchValue(this.allSendTypeOptions().filter(e=>n.allowedSendTypes.some(t=>t.toString()===e.id)))}fetchClaimedDomains(){return ft(this,void 0,void 0,function*(){var e,t,i;const n=null===(e=this.policyResponse())||void 0===e?void 0:e.organizationId,r=null!=(null===(i=null===(t=this.policyResponse())||void 0===t?void 0:t.data)||void 0===i?void 0:i.allowedDomains);if(!n||r)return;const s=yield(0,E._)(this.organization$);if(null==s?void 0:s.canManageDomainVerification)try{const e=yield this.orgDomainApiService.getAllByOrgId(n);(null==e?void 0:e.length)&&this.claimedDomains.set(e.map(e=>e.domainName).join(", "))}catch(o){}})}emailDomainValidator(){return e=>{if(null==e.value||""==e.value)return null;const t=/^[^\s@]+\.[^\s@]+$/,i=e.value.split(",").map(e=>e.trim()).filter(e=>e.length>0);if(0===i.length)return{multipleDomainsInvalid:{message:this.i18nService.t("multipleInputDomainsInvalid")}};return i.filter(e=>!t.test(e)).length>0?{multipleDomainsInvalid:{message:this.i18nService.t("multipleInputDomainsInvalid")}}:null}}buildRequest(e){return Promise.resolve({policy:{enabled:!0,data:this.data.value},metadata:null})}}Bt.ɵfac=function(e){return new(e||Bt)(I.rXU(V.ze),I.rXU(ut.o),I.rXU(x.W))},Bt.ɵcmp=I.VBU({type:Bt,selectors:[["send-controls-policy-edit"]],features:[I.Vt3],decls:34,vars:27,consts:[[3,"formGroup"],[1,"tw-mt-4"],["id","enableSendControlsPolicySwitch",3,"formControl"],[1,"tw-text-sm"],[3,"hidden"],[3,"formControl","baseItems","disabled"],["formControlName","whoCanAccess"],[3,"label","value"],[1,"tw-mt-2"],[1,"tw-mb-2"],["type","checkbox","bitCheckbox","",3,"formControl"],["disableMargin",""],["type","checkbox","bitCheckbox","","formControlName","disableHideEmail","id","disableHideEmail"],["bitInput","","type","text","formControlName","allowedDomains"],["formControlName","deletionHours"],[3,"value","label"]],template:function(e,t){1&e&&(I.j41(0,"div",0)(1,"bit-form-control",1),I.nrm(2,"bit-switch",2),I.j41(3,"bit-label",3),I.EFF(4),I.nI1(5,"i18n"),I.k0s()(),I.j41(6,"div",4)(7,"bit-form-field")(8,"bit-label"),I.EFF(9),I.nI1(10,"i18n"),I.k0s(),I.nrm(11,"bit-multi-select",5),I.k0s(),I.j41(12,"bit-form-field")(13,"bit-label"),I.EFF(14),I.nI1(15,"i18n"),I.k0s(),I.j41(16,"bit-select",6),I.Z7z(17,bt,1,2,"bit-option",7,yt),I.k0s()(),I.nVh(19,Ct,7,4,"bit-form-field",8),I.j41(20,"bit-hint",9),I.EFF(21),I.nI1(22,"i18n"),I.k0s(),I.j41(23,"bit-form-control")(24,"bit-label"),I.EFF(25),I.nI1(26,"i18n"),I.k0s(),I.nrm(27,"input",10),I.k0s(),I.nVh(28,wt,7,3,"bit-form-field"),I.j41(29,"bit-form-control",11),I.nrm(30,"input",12),I.j41(31,"bit-label"),I.EFF(32),I.nI1(33,"i18n"),I.k0s()()()()),2&e&&(I.Y8G("formGroup",t.data),I.R7$(2),I.Y8G("formControl",t.enableSendControl),I.R7$(2),I.JRh(I.bMT(5,15,"sendControlsPolicySwitchLabelV2")),I.R7$(2),I.Y8G("hidden",!t.sendFeatureAllowed()),I.R7$(3),I.JRh(I.bMT(10,17,"sendTypes")),I.R7$(2),I.Y8G("formControl",t.allowedSendTypesMultiSelectControl)("baseItems",t.allSendTypeOptions())("disabled",!t.enabled.value),I.R7$(3),I.JRh(I.bMT(15,19,"sendControlAccessOptions")),I.R7$(3),I.Dyx(t.sendAccessOptions),I.R7$(2),I.vxM(t.showDomains()?19:-1),I.R7$(2),I.JRh(I.bMT(22,21,"additionalOptions")),I.R7$(4),I.JRh(I.bMT(26,23,"enforceDeletionDate")),I.R7$(2),I.Y8G("formControl",t.showDeletionHours),I.R7$(),I.vxM(t.showDeletionHours.value?28:-1),I.R7$(4),I.JRh(I.bMT(33,25,"sendControlHideEmailDescription")))},dependencies:[V.YN,V.me,V.Zm,V.BC,V.cb,V.X1,V.l_,V.j4,V.JD,et.q,Le.P,tt.L,We.f,Ke.j,ht.I,At.J,pt.b,gt.h,it.i,nt.K,ct,dt.p,vt.w,mt.P,f.$Z],encapsulation:2,changeDetection:0});var Et=i(89033);class St extends ze{}St.ɵfac=(()=>{let e;return function(t){return(e||(e=I.xGo(St)))(t||St)}})(),St.ɵcmp=I.VBU({type:St,selectors:[["app-simple-toggle-policy-edit"]],features:[I.Vt3],decls:5,vars:4,consts:[[3,"formControl"]],template:function(e,t){1&e&&(I.j41(0,"bit-form-control"),I.nrm(1,"bit-switch",0),I.j41(2,"bit-label"),I.EFF(3),I.nI1(4,"i18n"),I.k0s()()),2&e&&(I.R7$(),I.Y8G("formControl",t.enabled),I.R7$(2),I.JRh(I.bMT(4,2,"enablePolicy")))},dependencies:[V.X1,V.BC,V.l_,Et.c,We.f,Ke.j,ct,f.$Z],encapsulation:2,changeDetection:0});class Qt extends ze{}Qt.ɵfac=(()=>{let e;return function(t){return(e||(e=I.xGo(Qt)))(t||Qt)}})(),Qt.ɵcmp=I.VBU({type:Qt,selectors:[["autotype-policy-edit"]],features:[I.Vt3],decls:5,vars:4,consts:[["type","checkbox","bitCheckbox","","id","enabled",3,"formControl"]],template:function(e,t){1&e&&(I.j41(0,"bit-form-control"),I.nrm(1,"input",0),I.j41(2,"bit-label"),I.EFF(3),I.nI1(4,"i18n"),I.k0s()()),2&e&&(I.R7$(),I.Y8G("formControl",t.enabled),I.R7$(2),I.JRh(I.bMT(4,2,"turnOn")))},dependencies:[V.X1,V.Zm,V.BC,V.l_,et.q,Le.P,tt.L,We.f,Ke.j,f.$Z],encapsulation:2,changeDetection:0});var kt=i(78781),Rt=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Ft=["policyForm"];function Tt(e,t){if(1&e&&I.eu8(0,3),2&e){I.XpG();const e=I.r8f(2);I.Y8G("ngTemplateOutlet",e)}}function Dt(e,t){1&e&&(I.j41(0,"span",8),I.EFF(1),I.nI1(2,"i18n"),I.k0s()),2&e&&(I.R7$(),I.JRh(I.bMT(2,1,"on")))}function Pt(e,t){1&e&&(I.j41(0,"span",9),I.EFF(1),I.nI1(2,"i18n"),I.k0s()),2&e&&(I.R7$(),I.JRh(I.bMT(2,1,"off")))}function Mt(e,t){if(1&e&&I.nVh(0,Dt,3,3,"span",8)(1,Pt,3,3,"span",9),2&e){const e=I.XpG(2);I.vxM(e.policyEnabled()?0:1)}}function xt(e,t){if(1&e&&(I.qex(0,4),I.nVh(1,Mt,2,1),I.bVm()),2&e){const e=I.XpG();I.R7$(),I.vxM(e.loading()?-1:1)}}function Vt(e,t){if(1&e&&(I.j41(0,"p",6),I.EFF(1),I.nI1(2,"i18n"),I.k0s()),2&e){const e=I.XpG();I.R7$(),I.JRh(I.bMT(2,1,e.descriptionKey()))}}function Gt(e,t){if(1&e&&I.eu8(0,3),2&e){I.XpG();const e=I.r8f(7);I.Y8G("ngTemplateOutlet",e)}}function Ut(e,t){}function Ot(e,t){if(1&e&&I.eu8(0,3),2&e){I.XpG();const e=I.r8f(12);I.Y8G("ngTemplateOutlet",e)}}function Nt(e,t){if(1&e){const e=I.RV6();I.j41(0,"button",12),I.bIt("click",function(){n.eBV(e);const t=I.XpG(2);return n.Njj(t.cancel())}),I.EFF(1),I.nI1(2,"i18n"),I.k0s()}2&e&&(I.R7$(),I.SpI(" ",I.bMT(2,1,"cancel")," "))}function jt(e,t){if(1&e&&(I.j41(0,"button",10),I.EFF(1),I.nI1(2,"i18n"),I.k0s(),I.nVh(3,Nt,3,3,"button",11)),2&e){const e=I.XpG();I.Y8G("disabled",e.loading()||e.saveDisabled()),I.R7$(),I.SpI(" ",I.bMT(2,3,e.currentStep()===e.policySteps().length-1?"save":"next")," "),I.R7$(2),I.vxM(e.isV2()?-1:3)}}class Yt extends he{constructor(e,t,i,o,c,d,u,h,A,p,g,v){super(e,t,i,o,c,d,u,h,A,p,g,v),this.policyFormViewRef=(0,C.ebz)("policyForm",Object.assign(Object.assign({},{}),{read:I.c1b})),this.policySteps=(0,n.vPA)([]),this.currentStep=(0,n.vPA)(0),this.currentStepConfig=(0,He.EW)(()=>this.policySteps()[this.currentStep()]),this.isV2=(0,He.EW)(()=>!!this.dialogRef.isDrawer&&!!this.policy.v2),this.dialogTitle=(0,He.EW)(()=>{var e,t;if(!(null===(t=null===(e=this.currentStepConfig())||void 0===e?void 0:e.titleContent)||void 0===t?void 0:t.call(e)))return this.isV2()?this.i18nService.t(this.policy.name):this.i18nService.t("editPolicy")}),this.dialogSubtitle=(0,He.EW)(()=>{var e,t;if(!(null===(t=null===(e=this.currentStepConfig())||void 0===e?void 0:e.titleContent)||void 0===t?void 0:t.call(e))&&!this.isV2())return this.i18nService.t(this.policy.name)}),this.showDescription=(0,He.EW)(()=>{var e,t;return this.isV2()&&null!==(t=null===(e=this.policy.v2)||void 0===e?void 0:e.showDescription)&&void 0!==t?t:this.policy.showDescription}),this.descriptionKey=(0,He.EW)(()=>{var e,t;return this.isV2()&&null!==(t=null===(e=this.policy.v2)||void 0===e?void 0:e.description)&&void 0!==t?t:this.policy.description}),this.saveDisabled=(0,r.ot)((0,r.br)(this.currentStepConfig).pipe((0,l.n)(e=>{if(null==e?void 0:e.disableSave)return e.disableSave;const t=this.policyComponent();return(null==t?void 0:t.data)?t.data.statusChanges.pipe((0,B.Z)(t.data.status),(0,a.T)(e=>"INVALID"===e)):(0,s.of)(!1)})),{initialValue:!1}),this.submit=()=>Rt(this,void 0,void 0,function*(){var e,t;if(!this.policyComponent())throw new Error("PolicyComponent not initialized.");try{const i=null===(e=this.policySteps()[this.currentStep()])||void 0===e?void 0:e.sideEffect,n=i?yield i():void 0;if(this.currentStep()===this.policySteps().length-1||"object"==typeof n&&n.closeDialog)return this.toastService.showToast({variant:"success",message:this.i18nService.t("editedPolicyId",this.i18nService.t(this.data.policy.name))}),void(yield this.dialogRef.close("saved"));this.currentStep.update(e=>e+1);const r=this.policyComponent();r&&(r.enabled.markAsPristine(),null===(t=r.data)||void 0===t||t.markAsPristine())}catch(i){this.toastService.showToast({variant:"error",message:i.message})}})}ngAfterViewInit(){return Rt(this,void 0,void 0,function*(){var e;const t=yield this.load();this.policyEnabled.set(t.enabled),this.loading.set(!1);const i=this.policyFormViewRef();if(!i)throw new Error("Template not initialized.");const n=i.createComponent(this.isV2()?this.data.policy.v2.component:this.data.policy.component);n.setInput("policyResponse",t),n.setInput("policy",this.data.policy),n.setInput("currentStep",this.currentStep),n.setInput("organizationId",this.data.organization.id);const r=n.instance;this.policyComponent.set(r),this.policySteps.set(null!==(e=r.policySteps)&&void 0!==e?e:[]),yield this.setupDiscardGuard()})}}Yt.open=(e,t)=>e.open(Yt,t),Yt.openDrawer=(e,t)=>e.openDrawer(Yt,t),Yt.ɵfac=function(e){return new(e||Yt)(I.rXU(F.Qs),I.rXU(P.D),I.rXU(M.m),I.rXU(x.W),I.rXU(C.gRc),I.rXU(V.ok),I.rXU(G.ce),I.rXU(U.f),I.rXU(T.Lu),I.rXU(O.o),I.rXU(R.w),I.rXU(N.u))},Yt.ɵcmp=I.VBU({type:Yt,selectors:[["app-multi-step-policy-edit-dialog"]],viewQuery:function(e,t){1&e&&I.wEZ(t.policyFormViewRef,Ft,5,I.c1b),2&e&&I.NyB()},features:[I.Vt3],decls:15,vars:13,consts:[["policyForm",""],["bit-dialog","",3,"formGroup","bitSubmit","loading","title","subtitle"],["bitDialogTitle",""],[3,"ngTemplateOutlet"],["bitDialogHeaderEnd",""],["bitDialogContent",""],["bitTypography","body1"],["bitDialogFooter",""],["bitBadge","","variant","success"],["bitBadge","","variant","secondary"],["bitButton","","buttonType","primary","bitFormButton","","type","submit",3,"disabled"],["bitButton","","buttonType","secondary","type","button"],["bitButton","","buttonType","secondary","type","button",3,"click"]],template:function(e,t){if(1&e&&(I.j41(0,"form",1),I.qex(1,2),I.SS7(2),I.nVh(3,Tt,1,1,"ng-container",3),I.bVm(),I.nVh(4,xt,2,1,"ng-container",4),I.qex(5,5),I.nVh(6,Vt,3,3,"p",6),I.SS7(7),I.nVh(8,Gt,1,1,"ng-container",3),I.DNE(9,Ut,0,0,"ng-template",null,0,I.C5r),I.bVm(),I.qex(11,7),I.SS7(12),I.nVh(13,Ot,1,1,"ng-container",3)(14,jt,4,5),I.bVm(),I.k0s()),2&e){let e,i,n;I.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit)("loading",t.loading())("title",t.dialogTitle())("subtitle",t.dialogSubtitle()),I.R7$(2);const r=I.bH3(null==(e=t.policySteps()[t.currentStep()])||null==e.titleContent?null:e.titleContent());I.R7$(),I.vxM(r?3:-1),I.R7$(),I.vxM(t.isV2()?4:-1),I.R7$(2),I.vxM(t.showDescription()?6:-1),I.R7$();const s=I.bH3(null==(i=t.policySteps()[t.currentStep()])||null==i.bodyContent?null:i.bodyContent());I.R7$(),I.vxM(s?8:-1),I.R7$(4);const o=I.bH3(null==(n=t.policySteps()[t.currentStep()])||null==n.footerContent?null:n.footerContent());I.R7$(),I.vxM(o?13:14)}},dependencies:[b.G,Qe.T3,V.qT,V.cb,V.j4,j.$,Y.L,X.n,z.Q,W.m,K.hJ,H.r,J.$],encapsulation:2,changeDetection:0});var Xt=i(75583);const zt=(e,t)=>t.value;function Lt(e,t){1&e&&(I.j41(0,"bit-callout",0),I.EFF(1),I.nI1(2,"i18n"),I.k0s()),2&e&&(I.R7$(),I.SpI(" ",I.bMT(2,1,"keyConnectorPolicyRestriction")," "))}function Wt(e,t){if(1&e&&I.nrm(0,"bit-option",5),2&e){const e=t.$implicit;I.Y8G("value",e.value)("label",e.name)}}class Kt extends ze{constructor(){super(...arguments),this.MinPasswordLength=kt.A.minimumPasswordLength,this.MaxPasswordLength=kt.A.maximumPasswordLength,this.formBuilder=(0,n.WQX)(V.Qk),this.i18nService=(0,n.WQX)(x.W),this.data=this.formBuilder.group({minComplexity:[0],minLength:[this.MinPasswordLength,[V.k0.min(kt.A.minimumPasswordLength),V.k0.max(this.MaxPasswordLength)]],requireUpper:[!1],requireLower:[!1],requireNumbers:[!1],requireSpecial:[!1],enforceOnLogin:[!1]}),this.showKeyConnectorInfo$=this.organization$.pipe((0,a.T)(e=>{var t;return null!==(t=null==e?void 0:e.keyConnectorEnabled)&&void 0!==t&&t})),this.passwordScores=[{name:"-- "+this.i18nService.t("select")+" --",value:null},{name:this.i18nService.t("weak")+" (0)",value:0},{name:this.i18nService.t("weak")+" (1)",value:1},{name:this.i18nService.t("weak")+" (2)",value:2},{name:this.i18nService.t("good")+" (3)",value:3},{name:this.i18nService.t("strong")+" (4)",value:4}]}}Kt.ɵfac=(()=>{let e;return function(t){return(e||(e=I.xGo(Kt)))(t||Kt)}})(),Kt.ɵcmp=I.VBU({type:Kt,selectors:[["master-password-policy-v2-edit"]],features:[I.Vt3],decls:51,vars:37,consts:[["type","info"],[3,"formGroup"],["id","enabled",3,"formControl"],["type","checkbox","bitCheckbox","","formControlName","enforceOnLogin","id","enforceOnLogin"],["formControlName","minComplexity","id","minComplexity"],[3,"value","label"],["bitInput","","type","number","formControlName","minLength","id","minLength",3,"min","max"],["bitTypography","body2",1,"tw-mb-1","tw-text-muted"],[1,"!tw-mb-2"],["type","checkbox","bitCheckbox","","formControlName","requireUpper","id","requireUpper"],["type","checkbox","bitCheckbox","","formControlName","requireLower","id","requireLower"],["type","checkbox","bitCheckbox","","formControlName","requireNumbers","id","requireNumbers"],["type","checkbox","bitCheckbox","","formControlName","requireSpecial","id","requireSpecial"]],template:function(e,t){1&e&&(I.j41(0,"p"),I.EFF(1),I.nI1(2,"i18n"),I.k0s(),I.nVh(3,Lt,3,3,"bit-callout",0),I.nI1(4,"async"),I.j41(5,"div",1)(6,"bit-form-control"),I.nrm(7,"bit-switch",2),I.j41(8,"bit-label"),I.EFF(9),I.nI1(10,"i18n"),I.k0s()(),I.j41(11,"bit-form-control"),I.nrm(12,"input",3),I.j41(13,"bit-label"),I.EFF(14),I.nI1(15,"i18n"),I.k0s()(),I.j41(16,"bit-form-field")(17,"bit-label"),I.EFF(18),I.nI1(19,"i18n"),I.k0s(),I.j41(20,"bit-select",4),I.Z7z(21,Wt,1,2,"bit-option",5,zt),I.k0s()(),I.j41(23,"bit-form-field")(24,"bit-label"),I.EFF(25),I.nI1(26,"i18n"),I.k0s(),I.nrm(27,"input",6),I.k0s(),I.j41(28,"p",7),I.EFF(29),I.nI1(30,"i18n"),I.k0s(),I.j41(31,"bit-form-control",8),I.nrm(32,"input",9),I.j41(33,"bit-label"),I.EFF(34),I.nI1(35,"i18n"),I.k0s()(),I.j41(36,"bit-form-control",8),I.nrm(37,"input",10),I.j41(38,"bit-label"),I.EFF(39),I.nI1(40,"i18n"),I.k0s()(),I.j41(41,"bit-form-control",8),I.nrm(42,"input",11),I.j41(43,"bit-label"),I.EFF(44),I.nI1(45,"i18n"),I.k0s()(),I.j41(46,"bit-form-control"),I.nrm(47,"input",12),I.j41(48,"bit-label"),I.EFF(49),I.nI1(50,"i18n"),I.k0s()()()),2&e&&(I.R7$(),I.JRh(I.bMT(2,15,"masterPassPolicyDesc")),I.R7$(2),I.vxM(I.bMT(4,17,t.showKeyConnectorInfo$)?3:-1),I.R7$(2),I.Y8G("formGroup",t.data),I.R7$(2),I.Y8G("formControl",t.enabled),I.R7$(2),I.JRh(I.bMT(10,19,"enablePolicy")),I.R7$(5),I.JRh(I.bMT(15,21,"enforceOnLoginDesc")),I.R7$(4),I.JRh(I.bMT(19,23,"minComplexityScore")),I.R7$(3),I.Dyx(t.passwordScores),I.R7$(4),I.JRh(I.bMT(26,25,"minCharacterLength")),I.R7$(2),I.Y8G("min",t.MinPasswordLength)("max",t.MaxPasswordLength),I.R7$(2),I.JRh(I.bMT(30,27,"characterRequirements")),I.R7$(5),I.JRh(I.bMT(35,29,"uppercasePolicy")),I.R7$(5),I.JRh(I.bMT(40,31,"lowercasePolicy")),I.R7$(5),I.JRh(I.bMT(45,33,"numbersPolicy")),I.R7$(5),I.JRh(I.bMT(50,35,"specialCharactersPolicy")))},dependencies:[L.G,et.q,Le.P,Et.c,We.f,Ke.j,tt.L,At.J,gt.h,V.X1,V.me,V.Q0,V.Zm,V.BC,V.cb,V.VZ,V.zX,V.l_,V.j4,V.JD,dt.p,vt.w,mt.P,ct,Xt.E,H.r,Qe.Jj,f.$Z],encapsulation:2,changeDetection:0});var Zt=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function Ht(e,t){1&e&&(I.j41(0,"bit-callout",14),I.EFF(1),I.nI1(2,"i18n"),I.k0s()),2&e&&(I.R7$(),I.SpI(" ",I.bMT(2,1,"keyConnectorPolicyRestriction"),"\n"))}function Jt(e,t){if(1&e&&I.nrm(0,"bit-option",15),2&e){const e=t.$implicit;I.Y8G("value",e.value)("label",e.name)}}class qt extends ze{constructor(e,t){super(),this.formBuilder=e,this.MinPasswordLength=kt.A.minimumPasswordLength,this.MaxPasswordLength=kt.A.maximumPasswordLength,this.data=this.formBuilder.group({minComplexity:[null],minLength:[this.MinPasswordLength,[V.k0.min(kt.A.minimumPasswordLength),V.k0.max(this.MaxPasswordLength)]],requireUpper:[!1],requireLower:[!1],requireNumbers:[!1],requireSpecial:[!1],enforceOnLogin:[!1]}),this.showKeyConnectorInfo=!1,this.passwordScores=[{name:"-- "+t.t("select")+" --",value:null},{name:t.t("weak")+" (0)",value:0},{name:t.t("weak")+" (1)",value:1},{name:t.t("weak")+" (2)",value:2},{name:t.t("good")+" (3)",value:3},{name:t.t("strong")+" (4)",value:4}]}ngOnInit(){const e=Object.create(null,{ngOnInit:{get:()=>super.ngOnInit}});return Zt(this,void 0,void 0,function*(){var t;e.ngOnInit.call(this);const i=yield(0,E._)(this.organization$);this.showKeyConnectorInfo=null!==(t=null==i?void 0:i.keyConnectorEnabled)&&void 0!==t&&t})}}qt.ɵfac=function(e){return new(e||qt)(I.rXU(V.ok),I.rXU(x.W))},qt.ɵcmp=I.VBU({type:qt,selectors:[["master-password-policy-edit"]],features:[I.Vt3],decls:40,vars:18,consts:[["type","info",4,"ngIf"],[3,"formGroup"],["type","checkbox","bitCheckbox","","id","enabled",3,"formControl"],["type","checkbox","bitCheckbox","","formControlName","enforceOnLogin","id","enforceOnLogin"],[1,"tw-flex","tw-space-x-4"],[1,"tw-flex-auto"],["formControlName","minComplexity","id","minComplexity"],[3,"value","label",4,"ngFor","ngForOf"],["bitInput","","type","number","formControlName","minLength","id","minLength",3,"min","max"],[1,"!tw-mb-2"],["type","checkbox","bitCheckbox","","formControlName","requireUpper","id","requireUpper"],["type","checkbox","bitCheckbox","","formControlName","requireLower","id","requireLower"],["type","checkbox","bitCheckbox","","formControlName","requireNumbers","id","requireNumbers"],["type","checkbox","bitCheckbox","","formControlName","requireSpecial","id","requireSpecial"],["type","info"],[3,"value","label"]],template:function(e,t){1&e&&(I.DNE(0,Ht,3,3,"bit-callout",0),I.j41(1,"div",1)(2,"bit-form-control"),I.nrm(3,"input",2),I.j41(4,"bit-label"),I.EFF(5),I.nI1(6,"i18n"),I.k0s()(),I.j41(7,"bit-form-control"),I.nrm(8,"input",3),I.j41(9,"bit-label"),I.EFF(10),I.nI1(11,"i18n"),I.k0s()(),I.j41(12,"div",4)(13,"bit-form-field",5)(14,"bit-label"),I.EFF(15),I.nI1(16,"i18n"),I.k0s(),I.j41(17,"bit-select",6),I.DNE(18,Jt,1,2,"bit-option",7),I.k0s()(),I.j41(19,"bit-form-field",5)(20,"bit-label"),I.EFF(21),I.nI1(22,"i18n"),I.k0s(),I.nrm(23,"input",8),I.k0s()(),I.j41(24,"bit-form-control",9),I.nrm(25,"input",10),I.j41(26,"bit-label"),I.EFF(27,"A-Z"),I.k0s()(),I.j41(28,"bit-form-control",9),I.nrm(29,"input",11),I.j41(30,"bit-label"),I.EFF(31,"a-z"),I.k0s()(),I.j41(32,"bit-form-control",9),I.nrm(33,"input",12),I.j41(34,"bit-label"),I.EFF(35,"0-9"),I.k0s()(),I.j41(36,"bit-form-control"),I.nrm(37,"input",13),I.j41(38,"bit-label"),I.EFF(39,"!@#$%^&*"),I.k0s()()()),2&e&&(I.Y8G("ngIf",t.showKeyConnectorInfo),I.R7$(),I.Y8G("formGroup",t.data),I.R7$(2),I.Y8G("formControl",t.enabled),I.R7$(2),I.JRh(I.bMT(6,10,"turnOn")),I.R7$(5),I.JRh(I.bMT(11,12,"enforceOnLoginDesc")),I.R7$(5),I.JRh(I.bMT(16,14,"minComplexityScore")),I.R7$(3),I.Y8G("ngForOf",t.passwordScores),I.R7$(3),I.JRh(I.bMT(22,16,"minLength")),I.R7$(2),I.Y8G("min",t.MinPasswordLength)("max",t.MaxPasswordLength))},dependencies:[b.G,Qe.Sq,Qe.bT,V.me,V.Q0,V.Zm,V.BC,V.cb,V.VZ,V.zX,V.l_,V.j4,V.JD,L.G,Le.P,We.f,Ke.j,At.J,gt.h,vt.w,mt.P,J.$],encapsulation:2,changeDetection:0});var $t=i(89105),_t=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function ei(e,t){if(1&e&&(I.j41(0,"bit-form-control"),I.nrm(1,"input",5),I.j41(2,"bit-label"),I.EFF(3),I.nI1(4,"i18n"),I.k0s()()),2&e){const e=I.XpG();I.R7$(),I.Y8G("formControl",e.data.controls.enableIndividualItemsTransfer),I.R7$(2),I.JRh(I.bMT(4,2,"promptUsersToMoveItemsV2"))}}class ti extends ze{constructor(e,t,i,s){super(),this.i18nService=e,this.encryptService=t,this.formBuilder=i,this.organizationService=s,this.useMyItems=(0,n.vPA)(!1),this.data=this.formBuilder.group({enableIndividualItemsTransfer:[{value:!1,disabled:!0}]}),this.enabled.valueChanges.pipe((0,r.pQ)()).subscribe(e=>{e&&this.useMyItems()?this.data.controls.enableIndividualItemsTransfer.enable():(this.data.controls.enableIndividualItemsTransfer.disable(),this.data.controls.enableIndividualItemsTransfer.setValue(!1))})}ngOnInit(){const e=Object.create(null,{ngOnInit:{get:()=>super.ngOnInit}});return _t(this,void 0,void 0,function*(){var t,i;e.ngOnInit.call(this);const n=null===(t=this.policyResponse())||void 0===t?void 0:t.organizationId;if(n){const e=yield(0,E._)(this.accountService.activeAccount$.pipe(A.F6)),t=yield(0,E._)(this.organizationService.organizations$(e).pipe((0,g.Hc)(n)));this.useMyItems.set(null!==(i=null==t?void 0:t.useMyItems)&&void 0!==i&&i)}this.enabled.value&&this.useMyItems()&&this.data.controls.enableIndividualItemsTransfer.enable()})}loadData(){var e,t;if(!(null===(e=this.policyResponse())||void 0===e?void 0:e.data))return;const i=this.policyResponse().data;this.data.patchValue({enableIndividualItemsTransfer:null!==(t=i.enableIndividualItemsTransfer)&&void 0!==t&&t})}buildRequestData(){var e;const t=this.data.getRawValue();return{enableIndividualItemsTransfer:null!==(e=this.useMyItems()&&t.enableIndividualItemsTransfer)&&void 0!==e&&e}}buildRequest(e){return _t(this,void 0,void 0,function*(){var t;if(!this.policy())throw new Error("Policy was not found");if(null==e)throw new Error("No encryption key for this organization.");const i=yield this.getEncryptedDefaultUserCollectionName(e);return{policy:{enabled:null!==(t=this.enabled.value)&&void 0!==t&&t,data:this.buildRequestData()},metadata:{defaultUserCollectionName:i}}})}getEncryptedDefaultUserCollectionName(e){return _t(this,void 0,void 0,function*(){const t=this.i18nService.t("myItems"),i=yield this.encryptService.encryptString(t,e);if(!i.encryptedString)throw new Error("Encryption error");return i.encryptedString})}}ti.ɵfac=function(e){return new(e||ti)(I.rXU(x.W),I.rXU($t.N),I.rXU(V.ok),I.rXU(h.PV))},ti.ɵcmp=I.VBU({type:ti,selectors:[["organization-data-ownership-policy-v2-edit"]],features:[I.Vt3],decls:27,vars:23,consts:[["bitLink","","href","https://bitwarden.com/resources/credential-lifecycle-management/","target","_blank","rel","noreferrer"],[1,"tw-text-left","tw-overflow-hidden","tw-mb-2"],[1,"tw-pl-7","tw-space-y-2","tw-pt-2"],[1,"tw-mt-4"],["id","enableOrganizationDataOwnershipPolicySwitch",3,"formControl"],["type","checkbox","bitCheckbox","","id","enableIndividualItemsTransferV2",3,"formControl"]],template:function(e,t){1&e&&(I.j41(0,"p"),I.EFF(1),I.nI1(2,"i18n"),I.j41(3,"a",0),I.EFF(4),I.nI1(5,"i18n"),I.k0s(),I.EFF(6,".\n"),I.k0s(),I.j41(7,"div",1)(8,"strong"),I.EFF(9),I.nI1(10,"i18n"),I.k0s(),I.j41(11,"ul",2)(12,"li"),I.EFF(13),I.nI1(14,"i18n"),I.k0s(),I.j41(15,"li"),I.EFF(16),I.nI1(17,"i18n"),I.k0s(),I.j41(18,"li"),I.EFF(19),I.nI1(20,"i18n"),I.k0s()()(),I.j41(21,"bit-form-control",3),I.nrm(22,"bit-switch",4),I.j41(23,"bit-label"),I.EFF(24),I.nI1(25,"i18n"),I.k0s()(),I.nVh(26,ei,5,4,"bit-form-control")),2&e&&(I.R7$(),I.SpI(" ",I.bMT(2,9,"centralizeDataOwnershipDescV2")),I.R7$(3),I.JRh(I.bMT(5,11,"centralizeDataOwnershipContentAnchor")),I.R7$(5),I.SpI("",I.bMT(10,13,"benefits"),":"),I.R7$(4),I.SpI(" ",I.bMT(14,15,"centralizeDataOwnershipBenefit1")," "),I.R7$(3),I.SpI(" ",I.bMT(17,17,"centralizeDataOwnershipBenefit2")," "),I.R7$(3),I.SpI(" ",I.bMT(20,19,"centralizeDataOwnershipBenefit3V2")," "),I.R7$(3),I.Y8G("formControl",t.enabled),I.R7$(2),I.JRh(I.bMT(25,21,"enablePolicy")),I.R7$(2),I.vxM(t.useMyItems()?26:-1))},dependencies:[b.G,V.Zm,V.BC,V.l_,Le.P,We.f,Ke.j,Z.g,ct,J.$],encapsulation:2,changeDetection:0});var ii=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function ni(e,t){1&e&&(I.j41(0,"bit-callout",5),I.EFF(1),I.nI1(2,"i18n"),I.j41(3,"a",0),I.EFF(4),I.nI1(5,"i18n"),I.k0s()()),2&e&&(I.R7$(),I.SpI(" ",I.bMT(2,2,"promptUsersToMoveItemsCallout")," "),I.R7$(3),I.SpI(" ",I.bMT(5,4,"centralizeDataOwnershipWarningLink")," "))}function ri(e,t){if(1&e&&(I.j41(0,"bit-form-control"),I.nrm(1,"input",4),I.j41(2,"bit-label"),I.EFF(3),I.nI1(4,"i18n"),I.k0s()(),I.nVh(5,ni,6,6,"bit-callout",5)),2&e){const e=I.XpG();I.R7$(),I.Y8G("formControl",e.data.controls.enableIndividualItemsTransfer),I.R7$(2),I.JRh(I.bMT(4,3,"promptUsersToMoveItems")),I.R7$(2),I.vxM(e.enableIndividualItemsTransfer()?5:-1)}}class si extends ze{constructor(e,t,i){super(),this.i18nService=e,this.encryptService=t,this.formBuilder=i,this.useMyItems=(0,n.vPA)(!1),this.policySteps=[{sideEffect:()=>this.savePolicy()}],this.data=this.formBuilder.group({enableIndividualItemsTransfer:[{value:!1,disabled:!0}]}),this.enableIndividualItemsTransfer=(0,r.ot)(this.data.controls.enableIndividualItemsTransfer.valueChanges.pipe((0,B.Z)(!1)),{initialValue:!1}),this.enabled.valueChanges.pipe((0,r.pQ)()).subscribe(e=>{e&&this.useMyItems()?this.data.controls.enableIndividualItemsTransfer.enable():(this.data.controls.enableIndividualItemsTransfer.disable(),this.data.controls.enableIndividualItemsTransfer.setValue(!1))})}ngOnInit(){const e=Object.create(null,{ngOnInit:{get:()=>super.ngOnInit}});return ii(this,void 0,void 0,function*(){var t;e.ngOnInit.call(this);const i=yield(0,E._)(this.organization$);this.useMyItems.set(null!==(t=null==i?void 0:i.useMyItems)&&void 0!==t&&t),this.enabled.value&&this.useMyItems()&&this.data.controls.enableIndividualItemsTransfer.enable()})}loadData(){var e,t;if(!(null===(e=this.policyResponse())||void 0===e?void 0:e.data))return;const i=this.policyResponse().data;this.data.patchValue({enableIndividualItemsTransfer:null!==(t=i.enableIndividualItemsTransfer)&&void 0!==t&&t})}buildRequestData(){var e;const t=this.data.getRawValue();return{enableIndividualItemsTransfer:null!==(e=this.useMyItems()&&t.enableIndividualItemsTransfer)&&void 0!==e&&e}}buildRequest(e){return ii(this,void 0,void 0,function*(){var t;if(!this.policy())throw new Error("Policy was not found");if(null==e)throw new Error("No encryption key for this organization.");const i=yield this.getEncryptedDefaultUserCollectionName(e);return{policy:{enabled:null!==(t=this.enabled.value)&&void 0!==t&&t,data:this.buildRequestData()},metadata:{defaultUserCollectionName:i}}})}getEncryptedDefaultUserCollectionName(e){return ii(this,void 0,void 0,function*(){const t=this.i18nService.t("myItems"),i=yield this.encryptService.encryptString(t,e);if(!i.encryptedString)throw new Error("Encryption error");return i.encryptedString})}}si.ɵfac=function(e){return new(e||si)(I.rXU(x.W),I.rXU($t.N),I.rXU(V.ok))},si.ɵcmp=I.VBU({type:si,selectors:[["organization-data-ownership-policy-edit"]],features:[I.Vt3],decls:26,vars:23,consts:[["bitLink","","href","https://bitwarden.com/resources/credential-lifecycle-management/","target","_blank","endIcon","bwi-external-link"],[1,"tw-text-left","tw-overflow-hidden","tw-mb-2"],[1,"tw-pl-7","tw-space-y-2","tw-pt-2"],["type","checkbox","bitCheckbox","","id","enabled",1,"tw-mt-4",3,"formControl"],["type","checkbox","bitCheckbox","","id","enableIndividualItemsTransfer",3,"formControl"],["type","info"]],template:function(e,t){1&e&&(I.j41(0,"p"),I.EFF(1),I.nI1(2,"i18n"),I.j41(3,"a",0),I.EFF(4),I.nI1(5,"i18n"),I.k0s()(),I.j41(6,"div",1)(7,"strong"),I.EFF(8),I.nI1(9,"i18n"),I.k0s(),I.j41(10,"ul",2)(11,"li"),I.EFF(12),I.nI1(13,"i18n"),I.k0s(),I.j41(14,"li"),I.EFF(15),I.nI1(16,"i18n"),I.k0s(),I.j41(17,"li"),I.EFF(18),I.nI1(19,"i18n"),I.k0s()()(),I.j41(20,"bit-form-control"),I.nrm(21,"input",3),I.j41(22,"bit-label"),I.EFF(23),I.nI1(24,"i18n"),I.k0s()(),I.nVh(25,ri,6,5)),2&e&&(I.R7$(),I.SpI(" ",I.bMT(2,9,"centralizeDataOwnershipDesc")," "),I.R7$(3),I.SpI(" ",I.bMT(5,11,"centralizeDataOwnershipContentAnchor")," "),I.R7$(4),I.SpI("",I.bMT(9,13,"benefits"),":"),I.R7$(4),I.SpI(" ",I.bMT(13,15,"centralizeDataOwnershipBenefit1")," "),I.R7$(3),I.SpI(" ",I.bMT(16,17,"centralizeDataOwnershipBenefit2")," "),I.R7$(3),I.SpI(" ",I.bMT(19,19,"centralizeDataOwnershipBenefit3")," "),I.R7$(3),I.Y8G("formControl",t.enabled),I.R7$(2),I.JRh(I.bMT(24,21,"turnOn")),I.R7$(2),I.vxM(t.useMyItems()?25:-1))},dependencies:[b.G,V.Zm,V.BC,V.l_,L.G,Le.P,We.f,Ke.j,Z.g,J.$],encapsulation:2,changeDetection:0});var oi=i(67789),ai=i(23544),li=i(42016);const ci=(e,t)=>t.value;function di(e,t){if(1&e&&I.nrm(0,"bit-option",3),2&e){const e=t.$implicit;I.Y8G("value",e.value)("label",e.name)}}function ui(e,t){if(1&e&&(I.j41(0,"h3",4),I.EFF(1),I.nI1(2,"i18n"),I.k0s(),I.j41(3,"bit-form-field")(4,"bit-label"),I.EFF(5),I.nI1(6,"i18n"),I.k0s(),I.nrm(7,"input",5),I.k0s(),I.j41(8,"bit-form-field")(9,"bit-label"),I.EFF(10),I.nI1(11,"i18n"),I.k0s(),I.nrm(12,"input",6),I.k0s(),I.j41(13,"bit-form-field")(14,"bit-label"),I.EFF(15),I.nI1(16,"i18n"),I.k0s(),I.nrm(17,"input",7),I.k0s(),I.j41(18,"bit-form-control-group")(19,"bit-label"),I.EFF(20),I.nI1(21,"i18n"),I.k0s(),I.j41(22,"bit-form-control",8),I.nrm(23,"input",9),I.j41(24,"bit-label"),I.EFF(25),I.nI1(26,"i18n"),I.k0s()(),I.j41(27,"bit-form-control",8),I.nrm(28,"input",10),I.j41(29,"bit-label"),I.EFF(30),I.nI1(31,"i18n"),I.k0s()(),I.j41(32,"bit-form-control",8),I.nrm(33,"input",11),I.j41(34,"bit-label"),I.EFF(35),I.nI1(36,"i18n"),I.k0s()(),I.j41(37,"bit-form-control",8),I.nrm(38,"input",12),I.j41(39,"bit-label"),I.EFF(40),I.nI1(41,"i18n"),I.k0s()()()),2&e){const e=I.XpG();I.R7$(),I.JRh(I.bMT(2,15,"generatedPassword")),I.R7$(4),I.JRh(I.bMT(6,17,"minLength")),I.R7$(2),I.Y8G("min",e.minLengthMin)("max",e.minLengthMax),I.R7$(3),I.JRh(I.bMT(11,19,"minNumbers")),I.R7$(2),I.Y8G("min",e.minNumbersMin)("max",e.minNumbersMax),I.R7$(3),I.JRh(I.bMT(16,21,"minSpecialCharacters")),I.R7$(2),I.Y8G("min",e.minSpecialMin)("max",e.minSpecialMax),I.R7$(3),I.JRh(I.bMT(21,23,"characterRequirements")),I.R7$(5),I.JRh(I.bMT(26,25,"uppercasePolicy")),I.R7$(5),I.JRh(I.bMT(31,27,"lowercasePolicy")),I.R7$(5),I.JRh(I.bMT(36,29,"numbersPolicy")),I.R7$(5),I.JRh(I.bMT(41,31,"specialCharactersPolicy"))}}function hi(e,t){if(1&e&&(I.j41(0,"h3",4),I.EFF(1),I.nI1(2,"i18n"),I.k0s(),I.j41(3,"bit-form-field")(4,"bit-label"),I.EFF(5),I.nI1(6,"i18n"),I.k0s(),I.nrm(7,"input",13),I.k0s(),I.j41(8,"bit-form-control-group")(9,"bit-label"),I.EFF(10),I.nI1(11,"i18n"),I.k0s(),I.j41(12,"bit-form-control",8),I.nrm(13,"input",14),I.j41(14,"bit-label"),I.EFF(15),I.nI1(16,"i18n"),I.k0s()(),I.j41(17,"bit-form-control",8),I.nrm(18,"input",15),I.j41(19,"bit-label"),I.EFF(20),I.nI1(21,"i18n"),I.k0s()()()),2&e){const e=I.XpG();I.R7$(),I.JRh(I.bMT(2,7,"generatedPassphrase")),I.R7$(4),I.JRh(I.bMT(6,9,"minimumNumberOfWords")),I.R7$(2),I.Y8G("min",e.minNumberWordsMin)("max",e.minNumberWordsMax),I.R7$(3),I.JRh(I.bMT(11,11,"characterRequirements")),I.R7$(5),I.JRh(I.bMT(16,13,"uppercasePolicy")),I.R7$(5),I.JRh(I.bMT(21,15,"numbersPolicy"))}}const Ai="password",pi="passphrase";class gi extends ze{constructor(){super(),this.minLengthMin=ai.qG.password.profiles[ai.WV.account].constraints.default.length.min,this.minLengthMax=ai.qG.password.profiles[ai.WV.account].constraints.default.length.max,this.minNumbersMin=ai.qG.password.profiles[ai.WV.account].constraints.default.minNumber.min,this.minNumbersMax=ai.qG.password.profiles[ai.WV.account].constraints.default.minNumber.max,this.minSpecialMin=ai.qG.password.profiles[ai.WV.account].constraints.default.minSpecial.min,this.minSpecialMax=ai.qG.password.profiles[ai.WV.account].constraints.default.minSpecial.max,this.minNumberWordsMin=ai.qG.passphrase.profiles[ai.WV.account].constraints.default.numWords.min,this.minNumberWordsMax=ai.qG.passphrase.profiles[ai.WV.account].constraints.default.numWords.max,this.formBuilder=(0,n.WQX)(V.ok),this.i18nService=(0,n.WQX)(x.W),this.data=this.formBuilder.group({overridePasswordType:[null],minLength:[null,[V.k0.min(this.minLengthMin),V.k0.max(this.minLengthMax)]],useUpper:[null],useLower:[null],useNumbers:[null],useSpecial:[null],minNumbers:[null,[V.k0.min(this.minNumbersMin),V.k0.max(this.minNumbersMax)]],minSpecial:[null,[V.k0.min(this.minSpecialMin),V.k0.max(this.minSpecialMax)]],minNumberWords:[null,[V.k0.min(this.minNumberWordsMin),V.k0.max(this.minNumberWordsMax)]],capitalize:[null],includeNumber:[null]}),this.overridePasswordTypeOptions=[{name:this.i18nService.t("userPreference"),value:null},{name:this.i18nService.t("password"),value:Ai},{name:this.i18nService.t("passphrase"),value:pi}],this.showPasswordPolicies=new oi.t(!0),this.showPassphrasePolicies=new oi.t(!0),this.showPasswordPolicies$=this.showPasswordPolicies.asObservable(),this.showPassphrasePolicies$=this.showPassphrasePolicies.asObservable(),this.data.valueChanges.pipe(vi(Ai),(0,r.pQ)()).subscribe(this.showPasswordPolicies),this.data.valueChanges.pipe(vi(pi),(0,r.pQ)()).subscribe(this.showPassphrasePolicies)}}function vi(e){return(0,a.T)(t=>{var i;return(null!==(i=null==t?void 0:t.overridePasswordType)&&void 0!==i?i:e)===e})}function mi(e,t){if(1&e&&I.nrm(0,"bit-option",7),2&e){const e=t.$implicit;I.Y8G("value",e.value)("label",e.name)}}function fi(e,t){if(1&e&&(I.j41(0,"div")(1,"h3",8),I.EFF(2),I.nI1(3,"i18n"),I.k0s(),I.j41(4,"div",2)(5,"bit-form-field",9)(6,"bit-label"),I.EFF(7),I.nI1(8,"i18n"),I.k0s(),I.nrm(9,"input",10),I.k0s()(),I.j41(10,"div",2)(11,"bit-form-field",9)(12,"bit-label"),I.EFF(13),I.nI1(14,"i18n"),I.k0s(),I.nrm(15,"input",11),I.k0s(),I.j41(16,"bit-form-field",9)(17,"bit-label"),I.EFF(18),I.nI1(19,"i18n"),I.k0s(),I.nrm(20,"input",12),I.k0s()(),I.j41(21,"bit-form-control"),I.nrm(22,"input",13),I.j41(23,"bit-label"),I.EFF(24),I.nI1(25,"i18n"),I.k0s()(),I.j41(26,"bit-form-control"),I.nrm(27,"input",14),I.j41(28,"bit-label"),I.EFF(29),I.nI1(30,"i18n"),I.k0s()(),I.j41(31,"bit-form-control"),I.nrm(32,"input",15),I.j41(33,"bit-label"),I.EFF(34),I.nI1(35,"i18n"),I.k0s()(),I.j41(36,"bit-form-control"),I.nrm(37,"input",16),I.j41(38,"bit-label"),I.EFF(39),I.k0s()()()),2&e){const e=I.XpG();I.R7$(2),I.JRh(I.bMT(3,14,"password")),I.R7$(5),I.JRh(I.bMT(8,16,"minLength")),I.R7$(2),I.Y8G("min",e.minLengthMin)("max",e.minLengthMax),I.R7$(4),I.JRh(I.bMT(14,18,"minNumbers")),I.R7$(2),I.Y8G("min",e.minNumbersMin)("max",e.minNumbersMax),I.R7$(3),I.JRh(I.bMT(19,20,"minSpecial")),I.R7$(2),I.Y8G("min",e.minSpecialMin)("max",e.minSpecialMax),I.R7$(4),I.JRh(I.bMT(25,22,"uppercaseLabel")),I.R7$(5),I.JRh(I.bMT(30,24,"lowercaseLabel")),I.R7$(5),I.JRh(I.bMT(35,26,"numbersLabel")),I.R7$(5),I.JRh("!@#$%^&*")}}function yi(e,t){if(1&e&&(I.j41(0,"div")(1,"h3",8),I.EFF(2),I.nI1(3,"i18n"),I.k0s(),I.j41(4,"div",2)(5,"bit-form-field",9)(6,"bit-label"),I.EFF(7),I.nI1(8,"i18n"),I.k0s(),I.nrm(9,"input",17),I.k0s()(),I.j41(10,"bit-form-control"),I.nrm(11,"input",18),I.j41(12,"bit-label"),I.EFF(13),I.nI1(14,"i18n"),I.k0s()(),I.j41(15,"bit-form-control"),I.nrm(16,"input",19),I.j41(17,"bit-label"),I.EFF(18),I.nI1(19,"i18n"),I.k0s()()()),2&e){const e=I.XpG();I.R7$(2),I.JRh(I.bMT(3,6,"passphrase")),I.R7$(5),I.JRh(I.bMT(8,8,"minimumNumberOfWords")),I.R7$(2),I.Y8G("min",e.minNumberWordsMin)("max",e.minNumberWordsMax),I.R7$(4),I.JRh(I.bMT(14,10,"capitalize")),I.R7$(5),I.JRh(I.bMT(19,12,"includeNumber"))}}gi.ɵfac=function(e){return new(e||gi)},gi.ɵcmp=I.VBU({type:gi,selectors:[["password-generator-policy-v2-edit"]],features:[I.Vt3],decls:20,vars:17,consts:[[3,"formGroup"],["id","enabled",3,"formControl"],["formControlName","overridePasswordType","id","overrideType"],[3,"value","label"],["bitTypography","h3",1,"tw-mt-4"],["bitInput","","type","number","formControlName","minLength",3,"min","max"],["bitInput","","type","number","formControlName","minNumbers",3,"min","max"],["bitInput","","type","number","formControlName","minSpecial",3,"min","max"],["disableMargin",""],["type","checkbox","bitCheckbox","","formControlName","useUpper","id","useUpper"],["type","checkbox","bitCheckbox","","formControlName","useLower","id","useLower"],["type","checkbox","bitCheckbox","","formControlName","useNumbers","id","useNumbers"],["type","checkbox","bitCheckbox","","formControlName","useSpecial","id","useSpecial"],["bitInput","","type","number","formControlName","minNumberWords",3,"min","max"],["type","checkbox","bitCheckbox","","formControlName","capitalize","id","capitalize"],["type","checkbox","bitCheckbox","","formControlName","includeNumber","id","includeNumber"]],template:function(e,t){1&e&&(I.j41(0,"p"),I.EFF(1),I.nI1(2,"i18n"),I.k0s(),I.j41(3,"div",0)(4,"bit-form-control"),I.nrm(5,"bit-switch",1),I.j41(6,"bit-label"),I.EFF(7),I.nI1(8,"i18n"),I.k0s()(),I.j41(9,"bit-form-field")(10,"bit-label"),I.EFF(11),I.nI1(12,"i18n"),I.k0s(),I.j41(13,"bit-select",2),I.Z7z(14,di,1,2,"bit-option",3,ci),I.k0s()(),I.nVh(16,ui,42,33),I.nI1(17,"async"),I.nVh(18,hi,22,17),I.nI1(19,"async"),I.k0s()),2&e&&(I.R7$(),I.JRh(I.bMT(2,7,"passwordGeneratorPolicyDescV2")),I.R7$(2),I.Y8G("formGroup",t.data),I.R7$(2),I.Y8G("formControl",t.enabled),I.R7$(2),I.JRh(I.bMT(8,9,"enablePolicy")),I.R7$(4),I.JRh(I.bMT(12,11,"overridePasswordTypePolicy")),I.R7$(3),I.Dyx(t.overridePasswordTypeOptions),I.R7$(2),I.vxM(I.bMT(17,13,t.showPasswordPolicies$)?16:-1),I.R7$(2),I.vxM(I.bMT(19,15,t.showPassphrasePolicies$)?18:-1))},dependencies:[et.q,Le.P,Et.c,We.f,Ke.j,li.W,tt.L,At.J,gt.h,V.X1,V.me,V.Q0,V.Zm,V.BC,V.cb,V.VZ,V.zX,V.l_,V.j4,V.JD,dt.p,vt.w,mt.P,ct,Xt.E,H.r,Qe.Jj,f.$Z],encapsulation:2,changeDetection:0});class bi extends ze{get showPasswordPolicies$(){return this.showPasswordPolicies.asObservable()}get showPassphrasePolicies$(){return this.showPassphrasePolicies.asObservable()}constructor(e,t){super(),this.formBuilder=e,this.minLengthMin=ai.qG.password.profiles[ai.WV.account].constraints.default.length.min,this.minLengthMax=ai.qG.password.profiles[ai.WV.account].constraints.default.length.max,this.minNumbersMin=ai.qG.password.profiles[ai.WV.account].constraints.default.minNumber.min,this.minNumbersMax=ai.qG.password.profiles[ai.WV.account].constraints.default.minNumber.max,this.minSpecialMin=ai.qG.password.profiles[ai.WV.account].constraints.default.minSpecial.min,this.minSpecialMax=ai.qG.password.profiles[ai.WV.account].constraints.default.minSpecial.max,this.minNumberWordsMin=ai.qG.passphrase.profiles[ai.WV.account].constraints.default.numWords.min,this.minNumberWordsMax=ai.qG.passphrase.profiles[ai.WV.account].constraints.default.numWords.max,this.data=this.formBuilder.group({overridePasswordType:[null],minLength:[null,[V.k0.min(this.minLengthMin),V.k0.max(this.minLengthMax)]],useUpper:[null],useLower:[null],useNumbers:[null],useSpecial:[null],minNumbers:[null,[V.k0.min(this.minNumbersMin),V.k0.max(this.minNumbersMax)]],minSpecial:[null,[V.k0.min(this.minSpecialMin),V.k0.max(this.minSpecialMax)]],minNumberWords:[null,[V.k0.min(this.minNumberWordsMin),V.k0.max(this.minNumberWordsMax)]],capitalize:[null],includeNumber:[null]}),this.showPasswordPolicies=new oi.t(!0),this.showPassphrasePolicies=new oi.t(!0),this.overridePasswordTypeOptions=[{name:t.t("userPreference"),value:null},{name:t.t("password"),value:Ci},{name:t.t("passphrase"),value:"passphrase"}],this.data.valueChanges.pipe(wi(Ci),(0,r.pQ)()).subscribe(this.showPasswordPolicies),this.data.valueChanges.pipe(wi(Ii),(0,r.pQ)()).subscribe(this.showPassphrasePolicies)}}bi.ɵfac=function(e){return new(e||bi)(I.rXU(V.ok),I.rXU(x.W))},bi.ɵcmp=I.VBU({type:bi,selectors:[["password-generator-policy-edit"]],features:[I.Vt3],decls:17,vars:15,consts:[[3,"formGroup"],["type","checkbox","bitCheckbox","","id","enabled",3,"formControl"],[1,"tw-grid","tw-grid-cols-12","tw-gap-4"],[1,"tw-col-span-6","tw-mb-0"],["formControlName","overridePasswordType","id","overrideType"],[3,"value","label",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"value","label"],["bitTypography","h3",1,"tw-mt-4"],[1,"tw-col-span-6"],["bitInput","","type","number","formControlName","minLength",3,"min","max"],["bitInput","","type","number","formControlName","minNumbers",3,"min","max"],["bitInput","","type","number","formControlName","minSpecial",3,"min","max"],["type","checkbox","bitCheckbox","","formControlName","useUpper","id","useUpper"],["type","checkbox","bitCheckbox","","formControlName","useLower","id","useLower"],["type","checkbox","bitCheckbox","","formControlName","useNumbers","id","useNumbers"],["type","checkbox","bitCheckbox","","formControlName","useSpecial","id","useSpecial"],["bitInput","","type","number","formControlName","minNumberWords",3,"min","max"],["type","checkbox","bitCheckbox","","formControlName","capitalize","id","capitalize"],["type","checkbox","bitCheckbox","","formControlName","includeNumber","id","includeNumber"]],template:function(e,t){1&e&&(I.j41(0,"div",0)(1,"bit-form-control"),I.nrm(2,"input",1),I.j41(3,"bit-label"),I.EFF(4),I.nI1(5,"i18n"),I.k0s()(),I.j41(6,"div",2)(7,"bit-form-field",3)(8,"bit-label"),I.EFF(9),I.nI1(10,"i18n"),I.k0s(),I.j41(11,"bit-select",4),I.DNE(12,mi,1,2,"bit-option",5),I.k0s()()(),I.DNE(13,fi,40,28,"div",6),I.nI1(14,"async"),I.DNE(15,yi,20,14,"div",6),I.nI1(16,"async"),I.k0s()),2&e&&(I.Y8G("formGroup",t.data),I.R7$(2),I.Y8G("formControl",t.enabled),I.R7$(2),I.JRh(I.bMT(5,7,"turnOn")),I.R7$(5),I.JRh(I.bMT(10,9,"overridePasswordTypePolicy")),I.R7$(3),I.Y8G("ngForOf",t.overridePasswordTypeOptions),I.R7$(),I.Y8G("ngIf",I.bMT(14,11,t.showPasswordPolicies$)),I.R7$(2),I.Y8G("ngIf",I.bMT(16,13,t.showPassphrasePolicies$)))},dependencies:[b.G,Qe.Sq,Qe.bT,V.me,V.Q0,V.Zm,V.BC,V.cb,V.VZ,V.zX,V.l_,V.j4,V.JD,Le.P,We.f,Ke.j,At.J,gt.h,vt.w,mt.P,H.r,Qe.Jj,J.$],encapsulation:2,changeDetection:0});const Ci="password",Ii="passphrase";function wi(e){return(0,a.T)(t=>{var i;return(null!==(i=null==t?void 0:t.overridePasswordType)&&void 0!==i?i:e)===e})}class Bi extends ze{}Bi.ɵfac=(()=>{let e;return function(t){return(e||(e=I.xGo(Bi)))(t||Bi)}})(),Bi.ɵcmp=I.VBU({type:Bi,selectors:[["remove-unlock-with-pin-policy-edit"]],features:[I.Vt3],decls:5,vars:4,consts:[["type","checkbox","id","enabled","bitCheckbox","",3,"formControl"]],template:function(e,t){1&e&&(I.j41(0,"bit-form-control"),I.nrm(1,"input",0),I.j41(2,"bit-label"),I.EFF(3),I.nI1(4,"i18n"),I.k0s()()),2&e&&(I.R7$(),I.Y8G("formControl",t.enabled),I.R7$(2),I.JRh(I.bMT(4,2,"turnOn")))},dependencies:[b.G,V.Zm,V.BC,V.l_,Le.P,We.f,Ke.j,J.$],encapsulation:2,changeDetection:0});class Ei extends ze{}function Si(e,t){1&e&&(I.j41(0,"bit-callout",1),I.EFF(1),I.nI1(2,"i18n"),I.k0s()),2&e&&(I.R7$(),I.SpI(" ",I.bMT(2,1,"keyConnectorPolicyRestriction")," "))}Ei.ɵfac=(()=>{let e;return function(t){return(e||(e=I.xGo(Ei)))(t||Ei)}})(),Ei.ɵcmp=I.VBU({type:Ei,selectors:[["require-sso-policy-edit"]],features:[I.Vt3],decls:12,vars:14,consts:[["type","info",3,"title"],["type","warning"],["type","checkbox","bitCheckbox","","id","enabled",3,"formControl"]],template:function(e,t){1&e&&(I.j41(0,"bit-callout",0),I.nI1(1,"i18n"),I.EFF(2),I.nI1(3,"i18n"),I.k0s(),I.j41(4,"bit-callout",1),I.EFF(5),I.nI1(6,"i18n"),I.k0s(),I.j41(7,"bit-form-control"),I.nrm(8,"input",2),I.j41(9,"bit-label"),I.EFF(10),I.nI1(11,"i18n"),I.k0s()()),2&e&&(I.Y8G("title",I.mNQ(I.bMT(1,6,"prerequisite"))),I.R7$(2),I.SpI(" ",I.bMT(3,8,"requireSsoPolicyReq"),"\n"),I.R7$(3),I.SpI(" ",I.bMT(6,10,"requireSsoExemption"),"\n"),I.R7$(3),I.Y8G("formControl",t.enabled),I.R7$(2),I.JRh(I.bMT(11,12,"turnOn")))},dependencies:[b.G,V.Zm,V.BC,V.l_,L.G,Le.P,We.f,Ke.j,J.$],encapsulation:2,changeDetection:0});class Qi extends ze{constructor(){super(),this.formBuilder=(0,n.WQX)(V.ok),this.data=this.formBuilder.group({autoEnrollEnabled:[{value:!1,disabled:!0}]}),this.showKeyConnectorInfo$=this.organization$.pipe((0,a.T)(e=>{var t;return null!==(t=null==e?void 0:e.keyConnectorEnabled)&&void 0!==t&&t})),this.enabled.valueChanges.pipe((0,r.pQ)()).subscribe(e=>{e?this.data.controls.autoEnrollEnabled.enable():(this.data.controls.autoEnrollEnabled.disable(),this.data.controls.autoEnrollEnabled.setValue(!1))})}}Qi.ɵfac=function(e){return new(e||Qi)},Qi.ɵcmp=I.VBU({type:Qi,selectors:[["reset-password-policy-v2-edit"]],features:[I.Vt3],decls:25,vars:26,consts:[["type","info",3,"title"],["type","info"],["bitLink","","href","https://bitwarden.com/help/account-recovery/","target","_blank","rel","noreferrer"],["id","enabled",3,"formControl"],[3,"formGroup"],["type","checkbox","bitCheckbox","","formControlName","autoEnrollEnabled","id","autoEnrollEnabled"]],template:function(e,t){1&e&&(I.j41(0,"bit-callout",0),I.nI1(1,"i18n"),I.EFF(2),I.nI1(3,"i18n"),I.k0s(),I.nVh(4,Si,3,3,"bit-callout",1),I.nI1(5,"async"),I.j41(6,"p"),I.EFF(7),I.nI1(8,"i18n"),I.j41(9,"a",2),I.EFF(10),I.nI1(11,"i18n"),I.k0s(),I.EFF(12),I.nI1(13,"i18n"),I.k0s(),I.j41(14,"bit-form-control"),I.nrm(15,"bit-switch",3),I.j41(16,"bit-label"),I.EFF(17),I.nI1(18,"i18n"),I.k0s()(),I.qex(19,4),I.j41(20,"bit-form-control"),I.nrm(21,"input",5),I.j41(22,"bit-label"),I.EFF(23),I.nI1(24,"i18n"),I.k0s()(),I.bVm()),2&e&&(I.Y8G("title",I.bMT(1,10,"prerequisite")),I.R7$(2),I.SpI(" ",I.bMT(3,12,"accountRecoveryPolicySingleOrgReqV2"),"\n"),I.R7$(2),I.vxM(I.bMT(5,14,t.showKeyConnectorInfo$)?4:-1),I.R7$(3),I.SpI(" ",I.bMT(8,16,"accountRecoveryPolicyDescV3Part1")),I.R7$(3),I.JRh(I.bMT(11,18,"accountRecoveryDescLinkText")),I.R7$(2),I.SpI("",I.bMT(13,20,"accountRecoveryPolicyDescV3Part2"),"\n"),I.R7$(3),I.Y8G("formControl",t.enabled),I.R7$(2),I.JRh(I.bMT(18,22,"enablePolicy")),I.R7$(2),I.Y8G("formGroup",t.data),I.R7$(4),I.JRh(I.bMT(24,24,"resetPasswordPolicyAutoEnrollCheckboxV2")))},dependencies:[L.G,et.q,Le.P,Et.c,We.f,Ke.j,Z.g,V.X1,V.Zm,V.BC,V.cb,V.l_,V.j4,V.JD,ct,Qe.Jj,f.$Z],encapsulation:2,changeDetection:0});var ki=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function Ri(e,t){1&e&&(I.j41(0,"bit-callout",6),I.EFF(1),I.nI1(2,"i18n"),I.k0s()),2&e&&(I.R7$(),I.SpI(" ",I.bMT(2,1,"keyConnectorPolicyRestriction"),"\n"))}class Fi extends ze{constructor(e){super(),this.formBuilder=e,this.data=this.formBuilder.group({autoEnrollEnabled:[{value:!1,disabled:!0}]}),this.showKeyConnectorInfo=!1,this.enabled.valueChanges.pipe((0,r.pQ)()).subscribe(e=>{e?this.data.controls.autoEnrollEnabled.enable():(this.data.controls.autoEnrollEnabled.disable(),this.data.controls.autoEnrollEnabled.setValue(!1))})}ngOnInit(){const e=Object.create(null,{ngOnInit:{get:()=>super.ngOnInit}});return ki(this,void 0,void 0,function*(){e.ngOnInit.call(this);const t=yield(0,E._)(this.organization$);if(!t)throw new Error("No organization found.");this.showKeyConnectorInfo=t.keyConnectorEnabled})}}Fi.ɵfac=function(e){return new(e||Fi)(I.rXU(V.ok))},Fi.ɵcmp=I.VBU({type:Fi,selectors:[["reset-password-policy-edit"]],features:[I.Vt3],decls:19,vars:18,consts:[["type","info",4,"ngIf"],["type","info",3,"title"],[1,"!tw-mb-1"],["type","checkbox","bitCheckbox","","id","enabled",3,"formControl"],[3,"formGroup"],["type","checkbox","bitCheckbox","","formControlName","autoEnrollEnabled","id","autoEnrollEnabled"],["type","info"]],template:function(e,t){1&e&&(I.j41(0,"p"),I.EFF(1),I.nI1(2,"i18n"),I.k0s(),I.DNE(3,Ri,3,3,"bit-callout",0),I.j41(4,"bit-callout",1),I.nI1(5,"i18n"),I.EFF(6),I.nI1(7,"i18n"),I.k0s(),I.j41(8,"bit-form-control",2),I.nrm(9,"input",3),I.j41(10,"bit-label"),I.EFF(11),I.nI1(12,"i18n"),I.k0s()(),I.qex(13,4),I.j41(14,"bit-form-control",2),I.nrm(15,"input",5),I.j41(16,"bit-label"),I.EFF(17),I.nI1(18,"i18n"),I.k0s()(),I.bVm()),2&e&&(I.R7$(),I.JRh(I.bMT(2,8,"accountRecoveryPolicyWarningV2")),I.R7$(2),I.Y8G("ngIf",t.showKeyConnectorInfo),I.R7$(),I.Y8G("title",I.bMT(5,10,"prerequisite")),I.R7$(2),I.SpI(" ",I.bMT(7,12,"accountRecoverySingleOrgRequirementDesc"),"\n"),I.R7$(3),I.Y8G("formControl",t.enabled),I.R7$(2),I.JRh(I.bMT(12,14,"turnOn")),I.R7$(2),I.Y8G("formGroup",t.data),I.R7$(4),I.JRh(I.bMT(18,16,"resetPasswordPolicyAutoEnrollCheckboxV2")))},dependencies:[b.G,Qe.bT,V.Zm,V.BC,V.cb,V.l_,V.j4,V.JD,L.G,Le.P,We.f,Ke.j,J.$],encapsulation:2,changeDetection:0});class Ti extends ze{constructor(){super()}}Ti.ɵfac=function(e){return new(e||Ti)},Ti.ɵcmp=I.VBU({type:Ti,selectors:[["restricted-item-types-policy-edit"]],features:[I.Vt3],decls:5,vars:4,consts:[["type","checkbox","bitCheckbox","","id","enabled",3,"formControl"]],template:function(e,t){1&e&&(I.j41(0,"bit-form-control"),I.nrm(1,"input",0),I.j41(2,"bit-label"),I.EFF(3),I.nI1(4,"i18n"),I.k0s()()),2&e&&(I.R7$(),I.Y8G("formControl",t.enabled),I.R7$(2),I.JRh(I.bMT(4,2,"turnOn")))},dependencies:[V.X1,V.Zm,V.BC,V.l_,et.q,Le.P,tt.L,We.f,Ke.j,f.$Z],encapsulation:2,changeDetection:0});class Di extends ze{constructor(){super(...arguments),this.formBuilder=(0,n.WQX)(V.ok),this.data=this.formBuilder.group({disableHideEmail:!1})}}Di.ɵfac=(()=>{let e;return function(t){return(e||(e=I.xGo(Di)))(t||Di)}})(),Di.ɵcmp=I.VBU({type:Di,selectors:[["send-options-policy-edit"]],features:[I.Vt3],decls:17,vars:14,consts:[["type","warning"],["type","checkbox","bitCheckbox","","id","enabled",3,"formControl"],[3,"formGroup"],["bitTypography","h3",1,"tw-mt-4"],["type","checkbox","bitCheckbox","","formControlName","disableHideEmail","id","disableHideEmail"]],template:function(e,t){1&e&&(I.j41(0,"bit-callout",0),I.EFF(1),I.nI1(2,"i18n"),I.k0s(),I.j41(3,"bit-form-control"),I.nrm(4,"input",1),I.j41(5,"bit-label"),I.EFF(6),I.nI1(7,"i18n"),I.k0s()(),I.j41(8,"div",2)(9,"h3",3),I.EFF(10),I.nI1(11,"i18n"),I.k0s(),I.j41(12,"bit-form-control"),I.nrm(13,"input",4),I.j41(14,"bit-label"),I.EFF(15),I.nI1(16,"i18n"),I.k0s()()()),2&e&&(I.R7$(),I.SpI(" ",I.bMT(2,6,"sendOptionsExemption"),"\n"),I.R7$(3),I.Y8G("formControl",t.enabled),I.R7$(2),I.JRh(I.bMT(7,8,"turnOn")),I.R7$(2),I.Y8G("formGroup",t.data),I.R7$(2),I.JRh(I.bMT(11,10,"options")),I.R7$(5),I.JRh(I.bMT(16,12,"disableHideEmail")))},dependencies:[b.G,V.Zm,V.BC,V.cb,V.l_,V.j4,V.JD,L.G,Le.P,We.f,Ke.j,H.r,J.$],encapsulation:2,changeDetection:0});var Pi=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Mi extends ze{ngOnInit(){const e=Object.create(null,{ngOnInit:{get:()=>super.ngOnInit}});return Pi(this,void 0,void 0,function*(){if(e.ngOnInit.call(this),!this.policyResponse())throw new Error("Policies not found");this.policyResponse().canToggleState||this.enabled.disable()})}}Mi.ɵfac=(()=>{let e;return function(t){return(e||(e=I.xGo(Mi)))(t||Mi)}})(),Mi.ɵcmp=I.VBU({type:Mi,selectors:[["single-org-policy-edit"]],features:[I.Vt3],decls:8,vars:7,consts:[["type","warning"],["type","checkbox","bitCheckbox","","id","enabled",3,"formControl"]],template:function(e,t){1&e&&(I.j41(0,"bit-callout",0),I.EFF(1),I.nI1(2,"i18n"),I.k0s(),I.j41(3,"bit-form-control"),I.nrm(4,"input",1),I.j41(5,"bit-label"),I.EFF(6),I.nI1(7,"i18n"),I.k0s()()),2&e&&(I.R7$(),I.SpI(" ",I.bMT(2,3,"singleOrgPolicyMemberWarning"),"\n"),I.R7$(3),I.Y8G("formControl",t.enabled),I.R7$(2),I.JRh(I.bMT(7,5,"turnOn")))},dependencies:[b.G,V.Zm,V.BC,V.l_,L.G,Le.P,We.f,Ke.j,J.$],encapsulation:2,changeDetection:0});class xi extends ze{}xi.ɵfac=(()=>{let e;return function(t){return(e||(e=I.xGo(xi)))(t||xi)}})(),xi.ɵcmp=I.VBU({type:xi,selectors:[["two-factor-authentication-policy-edit"]],features:[I.Vt3],decls:8,vars:7,consts:[["type","warning"],["type","checkbox","id","enabled","bitCheckbox","",3,"formControl"]],template:function(e,t){1&e&&(I.j41(0,"bit-callout",0),I.EFF(1),I.nI1(2,"i18n"),I.k0s(),I.j41(3,"bit-form-control"),I.nrm(4,"input",1),I.j41(5,"bit-label"),I.EFF(6),I.nI1(7,"i18n"),I.k0s()()),2&e&&(I.R7$(),I.JRh(I.bMT(2,3,"twoStepLoginPolicyWarning")),I.R7$(3),I.Y8G("formControl",t.enabled),I.R7$(2),I.JRh(I.bMT(7,5,"turnOn")))},dependencies:[b.G,V.Zm,V.BC,V.l_,L.G,Le.P,We.f,Ke.j,J.$],encapsulation:2,changeDetection:0});var Vi=i(59777),Gi=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function Ui(e,t){if(1&e&&I.nrm(0,"bit-option",6),2&e){const e=t.$implicit;I.Y8G("label",e.label)("value",e.value)("disabled",e.disabled)}}class Oi extends ze{constructor(e,t){super(),this.formBuilder=e,this.i18nService=t,this.data=this.formBuilder.group({uriMatchDetection:new V.MJ(Vi.L.Domain,{validators:[V.k0.required],nonNullable:!0})}),this.uriMatchOptions=[{label:t.t("baseDomain"),value:Vi.L.Domain},{label:t.t("host"),value:Vi.L.Host},{label:t.t("exact"),value:Vi.L.Exact},{label:t.t("never"),value:Vi.L.Never}]}loadData(){var e,t,i;const n=null===(t=null===(e=this.policyResponse())||void 0===e?void 0:e.data)||void 0===t?void 0:t.uriMatchDetection;null===(i=this.data)||void 0===i||i.patchValue({uriMatchDetection:n})}buildRequestData(){var e,t;return{uriMatchDetection:null===(t=null===(e=this.data)||void 0===e?void 0:e.value)||void 0===t?void 0:t.uriMatchDetection}}buildRequest(e){const t=Object.create(null,{buildRequest:{get:()=>super.buildRequest}});return Gi(this,void 0,void 0,function*(){var i;const n=yield t.buildRequest.call(this,e);if(null==(null===(i=n.policy.data)||void 0===i?void 0:i.uriMatchDetection))throw new Error(this.i18nService.t("invalidUriMatchDefaultPolicySetting"));return n})}}Oi.ɵfac=function(e){return new(e||Oi)(I.rXU(V.ok),I.rXU(x.W))},Oi.ɵcmp=I.VBU({type:Oi,selectors:[["uri-match-default-policy-edit"]],features:[I.Vt3],decls:16,vars:16,consts:[[3,"title"],["type","checkbox","bitCheckbox","","id","enabled",3,"formControl"],[3,"formGroup"],[1,"tw-flex-auto"],["formControlName","uriMatchDetection","id","uriMatchDetection"],[3,"label","value","disabled",4,"ngFor","ngForOf"],[3,"label","value","disabled"]],template:function(e,t){1&e&&(I.j41(0,"bit-callout",0),I.nI1(1,"i18n"),I.EFF(2),I.nI1(3,"i18n"),I.k0s(),I.j41(4,"bit-form-control"),I.nrm(5,"input",1),I.j41(6,"bit-label"),I.EFF(7),I.nI1(8,"i18n"),I.k0s()(),I.j41(9,"div",2)(10,"bit-form-field",3)(11,"bit-label"),I.EFF(12),I.nI1(13,"i18n"),I.k0s(),I.j41(14,"bit-select",4),I.DNE(15,Ui,1,3,"bit-option",5),I.k0s()()()),2&e&&(I.Y8G("title",I.mNQ(I.bMT(1,8,"prerequisite"))),I.R7$(2),I.SpI(" ",I.bMT(3,10,"requireSsoPolicyReq"),"\n"),I.R7$(3),I.Y8G("formControl",t.enabled),I.R7$(2),I.JRh(I.bMT(8,12,"turnOn")),I.R7$(2),I.Y8G("formGroup",t.data),I.R7$(3),I.JRh(I.bMT(13,14,"uriMatchDetectionOptionsLabel")),I.R7$(3),I.Y8G("ngForOf",t.uriMatchOptions))},dependencies:[b.G,Qe.Sq,V.Zm,V.BC,V.cb,V.l_,V.j4,V.JD,L.G,Le.P,We.f,Ke.j,gt.h,vt.w,mt.P,J.$],encapsulation:2,changeDetection:0});const Ni=i(82392).JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 197 232"><g filter="url(#a)"><path class="tw-fill-background-alt" d="M8 11a8 8 0 0 1 8-8h166a8 8 0 0 1 8 8v16.673H8z"/><path class="tw-fill-background" d="M8 26.686h182V229H8z"/><path class="tw-fill-illustration-logo" d="M153.366 8.3a2.31 2.31 0 0 1 2.31-2.31h11.687a2.31 2.31 0 0 1 2.309 2.31v11.472a2.31 2.31 0 0 1-2.31 2.31h-11.686a2.31 2.31 0 0 1-2.31-2.31z"/><g clip-path="url(#b)"><path class="tw-fill-background" d="M166.143 8.46a.46.46 0 0 0-.334-.143h-8.579a.46.46 0 0 0-.334.143.45.45 0 0 0-.143.335v5.718c.002.436.086.867.249 1.27q.232.602.618 1.118.395.516.879.95.448.411.941.767.429.304.901.577.471.272.666.368.197.097.315.149.094.045.198.043a.4.4 0 0 0 .193-.045q.12-.053.317-.149c.132-.064.357-.187.666-.368s.613-.374.901-.577q.494-.356.943-.767.484-.434.878-.95c.256-.343.464-.719.619-1.117.163-.404.247-.835.248-1.27v-5.72a.45.45 0 0 0-.142-.332m-1.106 6.106c0 2.073-3.517 3.853-3.517 3.853V9.542h3.517z"/></g><path class="tw-fill-secondary-500" d="M178.484 10.454c0 .577.474 1.044 1.059 1.044s1.059-.467 1.059-1.044-.474-1.045-1.059-1.045-1.059.468-1.059 1.045M179.543 14.633a1.05 1.05 0 0 1-1.059-1.045c0-.577.474-1.045 1.059-1.045s1.059.468 1.059 1.045-.474 1.045-1.059 1.045M179.543 17.767a1.05 1.05 0 0 1-1.059-1.045c0-.577.474-1.045 1.059-1.045s1.059.468 1.059 1.045-.474 1.045-1.059 1.045"/></g><g clip-path="url(#c)"><rect width="154" height="205" x="16" y="24" class="tw-fill-background-alt" rx="4.918"/><path class="tw-fill-background" d="M16 24h155v27.419H16z"/><path class="tw-fill-text-main" d="m24.595 40.71-2.107-5.739h1.057l1.648 4.73 1.664-4.73h1.041l-2.107 5.738zm4.891.098q-.492 0-.828-.18a1.2 1.2 0 0 1-.492-.484 1.4 1.4 0 0 1-.155-.656q0-.394.196-.689a1.33 1.33 0 0 1 .59-.459q.395-.164.951-.164h1.025q0-.36-.074-.598a.62.62 0 0 0-.254-.353q-.18-.123-.516-.123-.32 0-.533.148a.64.64 0 0 0-.262.418h-.968q.05-.426.279-.73a1.5 1.5 0 0 1 .623-.475q.386-.165.86-.164.6 0 1 .205.41.197.616.566.213.368.213.901v2.738h-.845l-.098-.664a1.3 1.3 0 0 1-.213.303 1.4 1.4 0 0 1-.287.246q-.165.099-.377.156a1.7 1.7 0 0 1-.45.058m.213-.78q.222 0 .402-.09a.9.9 0 0 0 .32-.253q.14-.164.22-.378.083-.213.1-.45v-.05h-.886q-.279 0-.46.082-.18.074-.27.213a.6.6 0 0 0-.082.312q0 .197.082.336a.56.56 0 0 0 .23.205.76.76 0 0 0 .344.074m4.787.78q-.491 0-.844-.18a1.3 1.3 0 0 1-.549-.558q-.189-.378-.189-.926v-2.747h.984v2.615q0 .493.238.73.246.237.672.238.27 0 .492-.115a.9.9 0 0 0 .352-.36 1.15 1.15 0 0 0 .14-.591v-2.517h.983v4.312h-.868l-.074-.656q-.165.352-.508.558-.345.197-.828.197m3.43-.099v-5.902h.983v5.902zm3.966 0a1.9 1.9 0 0 1-.73-.13 1 1 0 0 1-.476-.435q-.163-.304-.163-.82v-2.107h-.746v-.82h.746l.114-1.164h.87v1.164h1.139v.82h-1.14v2.107q0 .311.131.434.131.115.46.115h.565v.836z"/><path class="tw-fill-secondary-300" d="M102.538 37.71a7.38 7.38 0 0 1 7.378-7.378h27.871a7.378 7.378 0 0 1 0 14.755h-27.871a7.38 7.38 0 0 1-7.378-7.378"/><path class="tw-fill-secondary-100" d="M149.913 37.71a7.378 7.378 0 1 1 14.755 0 7.378 7.378 0 0 1-14.755 0"/><g clip-path="url(#d)"><path class="tw-fill-background" d="M21.874 64.308a6.56 6.56 0 0 1 6.558-6.558h130.137a6.56 6.56 0 0 1 6.558 6.558v1.23a6.56 6.56 0 0 1-6.558 6.558H28.432a6.56 6.56 0 0 1-6.558-6.558z"/></g><path class="tw-fill-secondary-100" d="M22.332 84.759a3.166 3.166 0 0 1 3.166-3.166H68.78a3.166 3.166 0 0 1 0 6.332H25.498a3.166 3.166 0 0 1-3.166-3.166M22.332 97.422a6.33 6.33 0 0 1 6.332-6.331h129.673a6.33 6.33 0 0 1 6.332 6.331v9.497a6.33 6.33 0 0 1-6.332 6.332H28.664a6.33 6.33 0 0 1-6.332-6.332zM22.332 122.749a6.33 6.33 0 0 1 6.332-6.332h129.673a6.33 6.33 0 0 1 6.332 6.332v9.497a6.33 6.33 0 0 1-6.332 6.332H28.664a6.33 6.33 0 0 1-6.332-6.332zM22.332 148.075a6.33 6.33 0 0 1 6.332-6.332h129.673a6.33 6.33 0 0 1 6.332 6.332v9.497a6.33 6.33 0 0 1-6.332 6.332H28.664a6.33 6.33 0 0 1-6.332-6.332z"/><path class="tw-fill-secondary-100" d="M41.477 101.706a7.727 7.727 0 0 0-7.727-7.727h-.337a7.727 7.727 0 0 0 0 15.454h.337a7.727 7.727 0 0 0 7.727-7.727M95.974 106.13a1.994 1.994 0 0 0-1.994-1.994H46.637a1.994 1.994 0 0 0 0 3.988H93.98a1.993 1.993 0 0 0 1.994-1.994M86.31 98.591a3.303 3.303 0 0 0-3.303-3.303h-35.06a3.303 3.303 0 1 0 0 6.607h35.06a3.303 3.303 0 0 0 3.303-3.304M161.816 101.706a5.84 5.84 0 0 0-5.84-5.84h-29.987a5.84 5.84 0 0 0 0 11.681h29.987a5.84 5.84 0 0 0 5.84-5.841M41.477 127.032a7.726 7.726 0 0 0-7.727-7.726h-.337a7.726 7.726 0 1 0 0 15.453h.337a7.727 7.727 0 0 0 7.727-7.727M95.974 131.457a1.993 1.993 0 0 0-1.994-1.994H46.637a1.993 1.993 0 1 0 0 3.987H93.98a1.993 1.993 0 0 0 1.994-1.993M86.31 123.918a3.303 3.303 0 0 0-3.303-3.304h-35.06a3.303 3.303 0 0 0 0 6.607h35.06a3.303 3.303 0 0 0 3.303-3.303M161.816 127.032a5.84 5.84 0 0 0-5.84-5.84h-29.987a5.84 5.84 0 0 0 0 11.681h29.987a5.84 5.84 0 0 0 5.84-5.841M41.477 152.359a7.727 7.727 0 0 0-7.727-7.727h-.337a7.727 7.727 0 0 0 0 15.454h.337a7.727 7.727 0 0 0 7.727-7.727M95.974 156.783a1.994 1.994 0 0 0-1.994-1.994H46.637a1.994 1.994 0 0 0 0 3.988H93.98a1.994 1.994 0 0 0 1.994-1.994M86.31 149.244a3.303 3.303 0 0 0-3.303-3.303h-35.06a3.303 3.303 0 1 0 0 6.606h35.06a3.303 3.303 0 0 0 3.303-3.303M161.816 152.359a5.84 5.84 0 0 0-5.84-5.841h-29.987a5.84 5.84 0 0 0 0 11.682h29.987a5.84 5.84 0 0 0 5.84-5.841M22.332 176.567a3.166 3.166 0 0 1 3.166-3.166H68.78a3.166 3.166 0 0 1 0 6.332H25.498a3.166 3.166 0 0 1-3.166-3.166M22.332 189.23a6.33 6.33 0 0 1 6.332-6.331h129.673a6.33 6.33 0 0 1 6.332 6.331v9.498a6.33 6.33 0 0 1-6.332 6.331H28.664a6.33 6.33 0 0 1-6.332-6.331z"/><path class="tw-fill-secondary-100" d="M41.477 193.514a7.726 7.726 0 0 0-7.727-7.726h-.337a7.726 7.726 0 1 0 0 15.453h.337a7.727 7.727 0 0 0 7.727-7.727M95.974 197.938a1.993 1.993 0 0 0-1.994-1.993H46.637a1.993 1.993 0 1 0 0 3.987H93.98a1.993 1.993 0 0 0 1.994-1.994M86.31 190.4a3.303 3.303 0 0 0-3.303-3.304h-35.06a3.303 3.303 0 0 0 0 6.607h35.06a3.303 3.303 0 0 0 3.303-3.303M161.816 193.514a5.84 5.84 0 0 0-5.84-5.841h-9.038a5.842 5.842 0 0 0 0 11.682h9.038a5.84 5.84 0 0 0 5.84-5.841M22.332 214.557a6.33 6.33 0 0 1 6.332-6.332h129.673a6.33 6.33 0 0 1 6.332 6.332v9.497a6.33 6.33 0 0 1-6.332 6.332H28.664a6.33 6.33 0 0 1-6.332-6.332z"/><path class="tw-fill-secondary-100" d="M41.477 220.424a7.727 7.727 0 0 0-7.727-7.727h-.337a7.727 7.727 0 1 0 0 15.453h.337a7.726 7.726 0 0 0 7.727-7.726M95.974 224.848a1.994 1.994 0 0 0-1.994-1.994H46.637a1.994 1.994 0 0 0 0 3.988H93.98a1.994 1.994 0 0 0 1.994-1.994M86.31 217.309a3.303 3.303 0 0 0-3.303-3.304h-35.06a3.303 3.303 0 0 0 0 6.607h35.06a3.303 3.303 0 0 0 3.303-3.303M161.816 220.423a5.84 5.84 0 0 0-5.84-5.84h-9.038a5.84 5.84 0 1 0 0 11.681h9.038a5.84 5.84 0 0 0 5.84-5.841"/></g><g clip-path="url(#e)"><rect width="154" height="205" x="16" y="24" class="tw-fill-primary-700" fill-opacity=".1" rx="4.918"/><g filter="url(#f)"><g clip-path="url(#g)"><path class="tw-fill-background" d="M20.84 73.484c0-5.577 4.521-10.098 10.098-10.098h124.125c5.577 0 10.098 4.521 10.098 10.098v106.032c0 5.577-4.521 10.098-10.098 10.098H30.938c-5.577 0-10.098-4.521-10.098-10.098z"/><path class="tw-fill-primary-100" d="M36.121 75.434h30.366a5.078 5.078 0 1 1 0 10.155H36.121a5.078 5.078 0 0 1 0-10.156"/><path class="tw-stroke-primary-700" stroke-width=".21" d="M36.121 75.434h30.366a5.078 5.078 0 1 1 0 10.155H36.121a5.078 5.078 0 0 1 0-10.156Z"/><path class="tw-fill-primary-700" d="m36.214 78.64-1.161 3.371h-.703l1.464-3.889h.448zm.973 3.371-1.165-3.37-.05-.519h.45l1.47 3.889zm-.057-1.442v.531h-2.115v-.531zm1.94.932.707-2.38h.668l-1.004 2.89h-.417zm-.543-2.38.721 2.39.035.5h-.416l-1.01-2.89zm3.902 2.31v-1.378a.6.6 0 0 0-.056-.267.4.4 0 0 0-.17-.173.6.6 0 0 0-.284-.062.64.64 0 0 0-.272.054.44.44 0 0 0-.18.144.35.35 0 0 0-.063.205h-.641q0-.17.083-.33a.9.9 0 0 1 .24-.286 1.2 1.2 0 0 1 .377-.198q.22-.072.491-.072.326 0 .577.11.254.109.398.33.147.22.147.55v1.285q0 .198.026.355.03.156.083.27v.043h-.66a1.2 1.2 0 0 1-.072-.264 2 2 0 0 1-.024-.316m.094-1.177.005.397h-.462q-.18 0-.315.035a.7.7 0 0 0-.227.096.42.42 0 0 0-.182.361q0 .114.054.211a.38.38 0 0 0 .155.147q.105.053.25.053a.7.7 0 0 0 .58-.28.44.44 0 0 0 .091-.227l.209.286a1 1 0 0 1-.11.235 1.1 1.1 0 0 1-.203.24 1 1 0 0 1-.692.256q-.283 0-.505-.112a.9.9 0 0 1-.347-.307.8.8 0 0 1-.125-.44.9.9 0 0 1 .085-.407.8.8 0 0 1 .257-.299q.17-.12.416-.181.246-.064.561-.064zm1.915-1.133v2.89h-.647v-2.89zm-.69-.758a.33.33 0 0 1 .097-.243.37.37 0 0 1 .272-.1q.171 0 .27.1a.33.33 0 0 1 .099.243.32.32 0 0 1-.099.24.37.37 0 0 1-.27.096.37.37 0 0 1-.272-.096.33.33 0 0 1-.096-.24m2.084-.454v4.102h-.646v-4.102zm2.334 3.522v-1.378a.6.6 0 0 0-.056-.267.4.4 0 0 0-.17-.173.6.6 0 0 0-.284-.062.64.64 0 0 0-.272.054.44.44 0 0 0-.18.144.35.35 0 0 0-.063.205H46.5q0-.17.083-.33a.9.9 0 0 1 .24-.286q.157-.126.377-.198.219-.072.491-.072.326 0 .577.11.254.109.398.33.147.22.147.55v1.285q0 .198.026.355.03.156.083.27v.043h-.66a1.2 1.2 0 0 1-.072-.264 2 2 0 0 1-.024-.316m.094-1.177.005.397h-.462q-.18 0-.315.035a.7.7 0 0 0-.227.096.42.42 0 0 0-.182.361q0 .114.054.211a.38.38 0 0 0 .155.147q.105.053.25.053a.7.7 0 0 0 .58-.28.44.44 0 0 0 .091-.227l.208.286a1 1 0 0 1-.11.235q-.075.125-.202.24a1 1 0 0 1-.692.256q-.282 0-.505-.112a.9.9 0 0 1-.347-.307.8.8 0 0 1-.125-.44.9.9 0 0 1 .085-.407.8.8 0 0 1 .257-.299q.17-.12.416-.181.246-.064.561-.064zm1.228-2.345h.644v3.485l-.061.617h-.583zm2.53 2.63v.056q0 .32-.072.59a1.4 1.4 0 0 1-.214.465 1 1 0 0 1-.353.308q-.209.105-.483.106-.27 0-.47-.101a.94.94 0 0 1-.337-.288 1.6 1.6 0 0 1-.216-.447 3 3 0 0 1-.117-.571v-.18q.034-.315.117-.57a1.6 1.6 0 0 1 .216-.447.93.93 0 0 1 .334-.29q.201-.103.468-.102.278 0 .488.106a.96.96 0 0 1 .356.305q.141.195.21.465.073.27.073.595m-.644.056v-.056q0-.195-.032-.366a1 1 0 0 0-.107-.304.54.54 0 0 0-.197-.206.57.57 0 0 0-.308-.077.7.7 0 0 0-.293.059.6.6 0 0 0-.206.16.8.8 0 0 0-.13.235q-.047.134-.062.288v.484q.024.2.101.368.08.166.224.267.145.1.372.1.179 0 .302-.073a.53.53 0 0 0 .195-.2 1 1 0 0 0 .106-.305q.035-.173.035-.374m1.878-2.686v4.102h-.647v-4.102zm1.979 4.155a1.5 1.5 0 0 1-.58-.104 1.3 1.3 0 0 1-.438-.296 1.3 1.3 0 0 1-.275-.446 1.6 1.6 0 0 1-.096-.553v-.107q0-.338.099-.614t.275-.47q.176-.198.416-.302.24-.105.521-.104.31 0 .543.104.232.104.384.294.155.186.23.446.077.258.077.571v.275h-2.233v-.462h1.598v-.05a.9.9 0 0 0-.07-.326.55.55 0 0 0-.19-.246.57.57 0 0 0-.341-.094.566.566 0 0 0-.491.264 1 1 0 0 0-.129.31 1.7 1.7 0 0 0-.043.404v.107q0 .19.051.352.054.16.155.28t.246.19a.8.8 0 0 0 .328.067.89.89 0 0 0 .73-.358l.339.329a1.215 1.215 0 0 1-.609.462 1.5 1.5 0 0 1-.497.077m3.659-2.326v2.273h-.644v-2.89h.606zm-.115.721-.208-.002a1.9 1.9 0 0 1 .085-.564 1.4 1.4 0 0 1 .235-.44q.153-.186.363-.284a1.1 1.1 0 0 1 .47-.101q.21 0 .377.058a.7.7 0 0 1 .291.185.8.8 0 0 1 .187.334q.064.202.064.5v1.866h-.646v-1.87a.7.7 0 0 0-.062-.328.34.34 0 0 0-.173-.174.65.65 0 0 0-.28-.053.62.62 0 0 0-.519.259.9.9 0 0 0-.136.278 1.2 1.2 0 0 0-.048.336m2.398.14v-.062q0-.313.091-.58.09-.27.262-.467.173-.2.422-.31.25-.112.566-.112.318 0 .566.112.252.11.425.31.174.198.264.467.091.267.091.58v.061q0 .313-.09.58-.092.267-.265.467a1.2 1.2 0 0 1-.422.31q-.248.11-.563.11a1.4 1.4 0 0 1-.57-.11 1.2 1.2 0 0 1-.421-.31 1.4 1.4 0 0 1-.265-.467 1.8 1.8 0 0 1-.09-.58m.644-.062v.061q0 .195.04.369a1 1 0 0 0 .126.304.6.6 0 0 0 .219.206.64.64 0 0 0 .318.075.61.61 0 0 0 .528-.28 1 1 0 0 0 .126-.305q.042-.174.043-.369v-.061q0-.193-.043-.364a1 1 0 0 0-.128-.307.61.61 0 0 0-.532-.285.6.6 0 0 0-.315.077.6.6 0 0 0-.216.208 1 1 0 0 0-.126.307 1.6 1.6 0 0 0-.04.364m3.368.833.668-2.249h.411l-.112.673-.673 2.217h-.369zm-.393-2.249.521 2.26.043.63h-.411l-.783-2.89zm2.097 2.233.505-2.233h.627l-.78 2.89h-.41zm-.555-2.233.66 2.222.082.668h-.369l-.68-2.22-.113-.67z"/><path class="tw-fill-text-main" d="m33.889 92.986-1.706 5.074h-1.195l2.235-5.983h.764zm1.426 5.074L33.6 92.986l-.103-.909h.769l2.247 5.983zm-.078-2.223v.892h-3.21v-.892zm4.408 1.167v-3.39h1.093v4.446h-1.027zm.14-.92.337-.008q0 .447-.099.825a1.9 1.9 0 0 1-.308.658 1.4 1.4 0 0 1-.522.431 1.7 1.7 0 0 1-.747.152q-.33 0-.6-.09a1.2 1.2 0 0 1-.469-.292 1.4 1.4 0 0 1-.3-.513 2.4 2.4 0 0 1-.106-.76v-2.873h1.084v2.88q0 .223.05.37.053.15.143.243.095.09.218.131a1 1 0 0 0 .271.037q.395 0 .62-.156a.88.88 0 0 0 .33-.427q.098-.271.098-.608m4.019-2.47v.781h-2.548v-.78zm-1.866-1.093h1.09v4.257q0 .198.053.304.053.108.16.144a.8.8 0 0 0 .255.037q.105 0 .197-.012.09-.012.152-.025l.004.814q-.135.045-.308.074-.17.028-.382.028-.366 0-.641-.123a.9.9 0 0 1-.428-.407q-.152-.284-.152-.747zm2.289 3.361v-.086q0-.489.14-.9a2.1 2.1 0 0 1 .407-.719q.266-.304.653-.472.385-.173.88-.173.5 0 .887.173.39.168.657.472t.407.72q.14.41.14.9v.085q0 .486-.14.9a2.1 2.1 0 0 1-.407.72q-.267.303-.653.472a2.2 2.2 0 0 1-.884.168 2.2 2.2 0 0 1-.883-.168q-.39-.168-.657-.473a2.1 2.1 0 0 1-.407-.719 2.8 2.8 0 0 1-.14-.9m1.085-.086v.086q0 .292.057.547.059.255.177.448.12.193.308.304a.94.94 0 0 0 .46.107.9.9 0 0 0 .452-.107.9.9 0 0 0 .309-.304q.123-.193.18-.448a2.5 2.5 0 0 0 .058-.547v-.086q0-.288-.058-.538a1.4 1.4 0 0 0-.18-.448.86.86 0 0 0-.769-.423.85.85 0 0 0-.76.423q-.12.193-.177.448a2.4 2.4 0 0 0-.057.538m4.955-1.27v3.534h-1.085v-4.446h1.023zm-.16 1.151h-.333q0-.465.111-.855.116-.39.337-.678a1.5 1.5 0 0 1 .547-.452q.328-.16.76-.16.3 0 .55.09.25.087.432.276.184.185.283.485.099.296.099.71v2.967h-1.085v-2.856q0-.312-.09-.488a.5.5 0 0 0-.251-.247 1 1 0 0 0-.395-.074.9.9 0 0 0-.44.103.85.85 0 0 0-.3.275 1.3 1.3 0 0 0-.172.407q-.053.23-.053.497m2.704-.201-.448.082q.003-.42.115-.785.111-.37.324-.645.219-.28.539-.436.324-.16.748-.16.328 0 .591.095.267.09.456.291.189.198.288.514.102.316.103.772v2.856h-1.093V95.2q0-.324-.09-.497a.47.47 0 0 0-.251-.238 1 1 0 0 0-.387-.07.808.808 0 0 0-.674.316q-.11.148-.168.346a1.6 1.6 0 0 0-.053.419m6.139 1.64v-2.051q0-.226-.079-.39a.56.56 0 0 0-.238-.255.8.8 0 0 0-.407-.09.9.9 0 0 0-.382.073.56.56 0 0 0-.246.21.54.54 0 0 0-.087.304h-1.089q0-.276.132-.522.132-.25.374-.444.246-.197.587-.308.345-.11.773-.11.506 0 .9.172.398.168.624.51.23.34.23.858v1.94q0 .332.042.57.045.235.131.407v.07H59.11a1.6 1.6 0 0 1-.12-.427 3.4 3.4 0 0 1-.04-.518m.151-1.764.009.645h-.687q-.255 0-.447.054a.8.8 0 0 0-.317.148.6.6 0 0 0-.185.23.7.7 0 0 0 .013.596.56.56 0 0 0 .222.21q.147.073.345.073.287 0 .501-.115a1 1 0 0 0 .333-.287.6.6 0 0 0 .127-.32l.313.468a2 2 0 0 1-.173.357 1.6 1.6 0 0 1-.296.353q-.18.165-.436.272a1.5 1.5 0 0 1-.591.106q-.431 0-.773-.172a1.37 1.37 0 0 1-.538-.473 1.2 1.2 0 0 1-.197-.682q0-.353.131-.624.132-.271.39-.457.26-.188.642-.283.386-.099.883-.099zm4.023-1.738v.781h-2.547v-.78zm-1.865-1.093h1.089v4.257q0 .198.053.304.054.108.16.144a.8.8 0 0 0 .255.037q.107 0 .197-.012t.152-.025l.004.814q-.135.045-.308.074-.169.028-.382.028-.366 0-.64-.123a.9.9 0 0 1-.428-.407q-.153-.284-.152-.747zm3.739 1.093v4.446h-1.089v-4.446zm-1.163-1.163A.54.54 0 0 1 64 92.05a.63.63 0 0 1 .452-.16q.285 0 .448.16a.53.53 0 0 1 .169.402.53.53 0 0 1-.169.399.61.61 0 0 1-.448.16.63.63 0 0 1-.452-.16.53.53 0 0 1-.164-.399m4.023 4.837q.23 0 .41-.09a.7.7 0 0 0 .288-.255.7.7 0 0 0 .12-.383h1.023a1.44 1.44 0 0 1-.255.81 1.75 1.75 0 0 1-.658.567 2 2 0 0 1-.912.205 2.2 2.2 0 0 1-.895-.172 1.74 1.74 0 0 1-.637-.481 2.1 2.1 0 0 1-.379-.715 3 3 0 0 1-.123-.871v-.132q0-.465.123-.87a2.1 2.1 0 0 1 .379-.716q.255-.308.636-.48.382-.173.892-.173.538 0 .945.21.411.21.641.591.234.382.243.9h-1.023a1 1 0 0 0-.107-.427.8.8 0 0 0-.28-.304.8.8 0 0 0-.44-.115.86.86 0 0 0-.46.115.8.8 0 0 0-.283.316q-.099.198-.14.444a3.4 3.4 0 0 0-.037.51v.131q0 .27.037.518.041.246.14.444a.8.8 0 0 0 .283.308q.186.114.469.115m5.013-.173v-2.05q0-.226-.078-.39a.56.56 0 0 0-.239-.255.8.8 0 0 0-.406-.09.9.9 0 0 0-.383.073.56.56 0 0 0-.246.21.54.54 0 0 0-.086.304h-1.09q0-.276.132-.522.132-.25.374-.444.246-.197.588-.308.345-.11.772-.11.505 0 .9.172.399.168.625.51.23.34.23.858v1.94q0 .332.04.57.047.235.132.407v.07h-1.105a1.6 1.6 0 0 1-.12-.427 3.4 3.4 0 0 1-.04-.518m.152-1.763.008.645h-.686q-.255 0-.448.054a.8.8 0 0 0-.317.148.6.6 0 0 0-.184.23.7.7 0 0 0 .012.596.57.57 0 0 0 .222.21q.148.073.345.073.288 0 .501-.115a1 1 0 0 0 .333-.287.6.6 0 0 0 .127-.32l.313.468a2 2 0 0 1-.173.357 1.6 1.6 0 0 1-.296.353q-.18.165-.435.272-.255.105-.592.106-.431 0-.772-.172a1.37 1.37 0 0 1-.539-.473 1.2 1.2 0 0 1-.197-.682q0-.353.132-.624.13-.271.39-.457.258-.188.64-.283.387-.099.884-.099zm3.07-3.603v6.311h-1.09V91.75zm2.185 0v6.311H77.19V91.75zm2.338 5.818 1.192-3.953h1.163l-1.784 5.12q-.06.165-.16.358-.094.192-.255.365a1.2 1.2 0 0 1-.402.288q-.239.11-.58.11-.147 0-.263-.02a3 3 0 0 1-.242-.053v-.814a1 1 0 0 0 .094.004q.059.005.099.005.238 0 .395-.058a.5.5 0 0 0 .25-.177 1 1 0 0 0 .164-.312zm-.587-3.953 1.006 3.275.177 1.147-.748.135-1.606-4.557zm7.388 3.674q.23 0 .41-.09a.7.7 0 0 0 .288-.255.7.7 0 0 0 .12-.383h1.022a1.44 1.44 0 0 1-.254.81 1.75 1.75 0 0 1-.658.567 2 2 0 0 1-.912.205 2.2 2.2 0 0 1-.896-.172 1.74 1.74 0 0 1-.637-.481 2.1 2.1 0 0 1-.378-.715 3 3 0 0 1-.123-.871v-.132q0-.465.123-.87a2.1 2.1 0 0 1 .378-.716q.255-.308.637-.48.382-.173.892-.173.539 0 .945.21.411.21.641.591.234.382.242.9h-1.023a1 1 0 0 0-.107-.427.8.8 0 0 0-.279-.304.8.8 0 0 0-.44-.115.86.86 0 0 0-.46.115.8.8 0 0 0-.283.316q-.1.198-.14.444a3.4 3.4 0 0 0-.037.51v.131q0 .27.037.518.04.246.14.444a.8.8 0 0 0 .283.308q.185.114.469.115m2.37-1.406v-.086q0-.489.14-.9a2.1 2.1 0 0 1 .407-.719q.267-.304.653-.472.386-.173.88-.173.501 0 .887.173.39.168.658.472.267.304.406.72.14.41.14.9v.085q0 .486-.14.9a2.1 2.1 0 0 1-.406.72q-.267.303-.654.472a2.2 2.2 0 0 1-.883.168 2.2 2.2 0 0 1-.884-.168q-.39-.168-.657-.473a2.1 2.1 0 0 1-.407-.719 2.8 2.8 0 0 1-.14-.9m1.085-.086v.086q0 .292.058.547.057.255.176.448.12.193.309.304a.94.94 0 0 0 .46.107.9.9 0 0 0 .452-.107.9.9 0 0 0 .308-.304q.123-.193.18-.448.059-.255.058-.547v-.086a2.4 2.4 0 0 0-.057-.538 1.4 1.4 0 0 0-.181-.448.86.86 0 0 0-.768-.423.85.85 0 0 0-.76.423q-.12.193-.177.448a2.4 2.4 0 0 0-.058.538m4.94-1.233v3.497h-1.085v-4.446h1.019zm-.173 1.114h-.32a3 3 0 0 1 .13-.88q.129-.393.358-.677.234-.285.555-.436.32-.152.715-.152.32 0 .58.09.258.09.443.288.189.197.288.518.102.316.102.78v2.852h-1.093V95.2q0-.304-.09-.48a.5.5 0 0 0-.255-.251 1 1 0 0 0-.407-.074.9.9 0 0 0-.44.103.9.9 0 0 0-.312.275 1.4 1.4 0 0 0-.189.407q-.065.23-.065.497m5.181 2.383h-1.093v-4.692q0-.55.222-.929.226-.382.645-.58.423-.196 1.007-.197.34 0 .657.07.32.066.658.173l-.161.88a7 7 0 0 0-.476-.132 2.6 2.6 0 0 0-.604-.062q-.432 0-.645.197-.21.198-.21.58zm.888-4.446v.781h-2.65v-.78zm1.717 0v4.446h-1.089v-4.446zm2.137.908v3.538h-1.085v-4.446h1.027zm1.352-.937-.017 1.011a2.894 2.894 0 0 0-.415-.033q-.25 0-.439.07a.8.8 0 0 0-.317.193.9.9 0 0 0-.189.313 1.4 1.4 0 0 0-.074.41l-.234-.028q0-.423.086-.785.087-.361.251-.633.165-.27.411-.419.25-.152.575-.152.09 0 .193.017.108.012.169.036m1.676.941v3.534h-1.085v-4.446h1.024zm-.16 1.151h-.333q0-.465.111-.855.115-.39.337-.678.222-.291.547-.452.328-.16.76-.16.3 0 .55.09.25.087.432.276.185.185.283.485.099.296.099.71v2.967h-1.085v-2.856q0-.312-.09-.488a.5.5 0 0 0-.251-.247 1 1 0 0 0-.394-.074.84.84 0 0 0-.74.378 1.3 1.3 0 0 0-.173.407q-.053.23-.053.497m2.704-.201-.448.082q.004-.42.115-.785.111-.37.324-.645a1.5 1.5 0 0 1 .539-.436q.324-.16.748-.16.329 0 .591.095.267.09.456.291.189.198.288.514.102.316.103.772v2.856h-1.093V95.2q0-.324-.091-.497a.47.47 0 0 0-.25-.238 1 1 0 0 0-.387-.07.85.85 0 0 0-.394.086.8.8 0 0 0-.279.23 1.1 1.1 0 0 0-.169.346 1.6 1.6 0 0 0-.053.419m6.849-.913v3.497h-1.084v-4.446h1.019zm-.172 1.114h-.321a3 3 0 0 1 .132-.88q.127-.393.357-.677.234-.285.555-.436.32-.152.715-.152.321 0 .579.09.26.09.444.288.189.197.288.518.102.316.102.78v2.852h-1.093V95.2q0-.304-.09-.48a.5.5 0 0 0-.255-.251 1 1 0 0 0-.406-.074.9.9 0 0 0-.44.103.9.9 0 0 0-.312.275 1.3 1.3 0 0 0-.189.407q-.066.23-.066.497m5.806 2.465q-.506 0-.908-.164a2 2 0 0 1-.686-.456 2.1 2.1 0 0 1-.432-.686 2.4 2.4 0 0 1-.148-.847v-.164q0-.514.148-.933a2.1 2.1 0 0 1 .419-.727q.271-.304.649-.469t.835-.164q.473 0 .834.16.361.156.604.444.242.288.365.69.124.399.124.884v.456h-3.485v-.748h2.416v-.082a1.3 1.3 0 0 0-.098-.473.76.76 0 0 0-.28-.345.84.84 0 0 0-.489-.131.8.8 0 0 0-.423.107.85.85 0 0 0-.296.295 1.5 1.5 0 0 0-.172.452q-.058.264-.058.584v.164q0 .28.074.518.078.238.226.415.152.172.362.271.213.095.485.095.34 0 .616-.132.28-.135.485-.398l.546.567a1.926 1.926 0 0 1-.945.703 2.4 2.4 0 0 1-.768.114m3.768-1.15.974-3.378h.69l-.206 1.167-.982 3.28h-.595zm-.539-3.378.732 3.386.066 1.06h-.687l-1.167-4.446zm3.107 3.337.715-3.337h1.052l-1.159 4.446h-.686zm-.797-3.337.965 3.345.128 1.101h-.596l-.99-3.279-.202-1.167zm7.947 3.39v-3.39h1.093v4.446h-1.028zm.139-.92.337-.008q0 .447-.098.825a1.9 1.9 0 0 1-.309.658 1.44 1.44 0 0 1-.521.431 1.7 1.7 0 0 1-.748.152q-.328 0-.6-.09a1.2 1.2 0 0 1-.469-.292 1.4 1.4 0 0 1-.3-.513 2.4 2.4 0 0 1-.106-.76v-2.873h1.084v2.88q0 .223.05.37.053.15.143.243.095.09.218.131a1 1 0 0 0 .271.037q.395 0 .621-.156a.9.9 0 0 0 .329-.427q.098-.271.098-.608m4.36.76a.44.44 0 0 0-.074-.25q-.074-.112-.279-.202a3 3 0 0 0-.592-.177q-.346-.074-.637-.185a2 2 0 0 1-.501-.267 1.2 1.2 0 0 1-.329-.374 1.05 1.05 0 0 1-.115-.501q0-.275.119-.518.119-.246.345-.431.226-.19.551-.296.324-.11.731-.11.567-.001.974.184.41.184.629.51.217.32.217.723h-1.084a.63.63 0 0 0-.083-.32.56.56 0 0 0-.242-.23.86.86 0 0 0-.415-.091.9.9 0 0 0-.382.074.56.56 0 0 0-.23.193.47.47 0 0 0-.078.263q0 .106.041.193.045.082.144.152.097.07.267.127.173.058.423.111.497.1.867.263.374.161.583.427.21.268.21.683 0 .296-.127.542a1.3 1.3 0 0 1-.37.423q-.243.18-.58.284a2.7 2.7 0 0 1-.76.098q-.612 0-1.035-.217a1.66 1.66 0 0 1-.641-.56 1.3 1.3 0 0 1-.218-.706h1.04q.012.259.139.415t.321.226q.197.066.415.066.246 0 .415-.066a.6.6 0 0 0 .255-.185.45.45 0 0 0 .086-.271m3.883 1.298q-.506 0-.908-.164a2 2 0 0 1-.686-.456 2.1 2.1 0 0 1-.432-.686 2.4 2.4 0 0 1-.148-.847v-.164q0-.514.148-.933a2.1 2.1 0 0 1 .419-.727q.271-.304.649-.469.379-.165.835-.164.472 0 .834.16.361.156.604.444.242.288.365.69.124.399.124.884v.456h-3.485v-.748h2.416v-.082a1.3 1.3 0 0 0-.098-.473.76.76 0 0 0-.28-.345.84.84 0 0 0-.489-.131.8.8 0 0 0-.423.107.85.85 0 0 0-.296.295 1.5 1.5 0 0 0-.172.452q-.058.264-.058.584v.164q0 .28.074.518.078.238.226.415.152.172.362.271.213.095.485.095.34 0 .616-.132.28-.135.485-.398l.546.567a1.926 1.926 0 0 1-.945.703 2.4 2.4 0 0 1-.768.114m3.616-3.62v3.538h-1.085v-4.446h1.027zm1.352-.937-.017 1.011a2.894 2.894 0 0 0-.415-.033q-.25 0-.439.07a.8.8 0 0 0-.317.193.9.9 0 0 0-.189.313 1.4 1.4 0 0 0-.074.41l-.234-.028q0-.423.086-.785.086-.361.251-.633.164-.27.411-.419.25-.152.575-.152.09 0 .193.017.107.012.169.036m3.04 3.259a.44.44 0 0 0-.074-.25q-.073-.112-.279-.202a3 3 0 0 0-.592-.177q-.345-.074-.637-.185a2 2 0 0 1-.501-.267 1.2 1.2 0 0 1-.329-.374 1.07 1.07 0 0 1-.115-.501q0-.275.119-.518a1.3 1.3 0 0 1 .346-.431q.226-.19.55-.296.325-.11.732-.11.567-.001.973.184.411.184.629.51.218.32.218.723h-1.085a.63.63 0 0 0-.082-.32.56.56 0 0 0-.243-.23.85.85 0 0 0-.415-.091.9.9 0 0 0-.382.074.56.56 0 0 0-.23.193.47.47 0 0 0-.037.456q.045.082.144.152t.267.127q.172.058.423.111.498.1.867.263.375.161.584.427.21.268.209.683 0 .296-.127.542a1.25 1.25 0 0 1-.37.423q-.242.18-.579.284a2.7 2.7 0 0 1-.76.098q-.612 0-1.036-.217a1.66 1.66 0 0 1-.641-.56 1.3 1.3 0 0 1-.218-.706h1.04q.012.259.14.415a.7.7 0 0 0 .32.226q.198.066.415.066.247 0 .415-.066a.6.6 0 0 0 .255-.185.45.45 0 0 0 .086-.271M34.646 104.555v4.188h-.558l-2.108-3.23v3.23h-.555v-4.188h.555l2.117 3.239v-3.239zm2.195 4.246q-.326 0-.59-.11a1.3 1.3 0 0 1-.452-.313 1.4 1.4 0 0 1-.287-.478 1.8 1.8 0 0 1-.1-.604v-.12q0-.38.111-.676.113-.3.305-.507.193-.207.437-.313.245-.107.507-.107.333 0 .575.116.244.114.4.322.155.204.23.483.075.276.075.604v.239h-2.325v-.435h1.792v-.04a1.3 1.3 0 0 0-.086-.403.73.73 0 0 0-.23-.322q-.159-.126-.431-.126a.71.71 0 0 0-.595.302 1.1 1.1 0 0 0-.17.365q-.06.216-.06.498v.12q0 .222.06.417.063.193.18.34.121.147.291.23a.9.9 0 0 0 .391.083.9.9 0 0 0 .478-.115q.195-.114.342-.307l.322.256a1.5 1.5 0 0 1-.256.29 1.2 1.2 0 0 1-.382.224 1.5 1.5 0 0 1-.532.087m2.62-.61.8-2.56h.35l-.069.509-.814 2.603h-.342zm-.538-2.56.682 2.589.049.523h-.36l-.903-3.112zm2.454 2.569.65-2.569h.529l-.903 3.112h-.357zm-.688-2.569.782 2.517.09.595h-.34l-.837-2.609-.069-.503zm5.779 2.393v-2.393h.535v3.112h-.51zm.1-.656.222-.005q0 .31-.066.575a1.2 1.2 0 0 1-.207.454 1 1 0 0 1-.377.302 1.4 1.4 0 0 1-.567.107q-.227 0-.417-.066a.85.85 0 0 1-.532-.564 1.7 1.7 0 0 1-.072-.532v-2.008h.532v2.013q0 .21.046.348a.6.6 0 0 0 .13.216.5.5 0 0 0 .184.109q.104.032.212.032.34 0 .538-.129a.74.74 0 0 0 .285-.354q.09-.225.09-.498m3.058.55a.45.45 0 0 0-.052-.213.44.44 0 0 0-.204-.181 1.7 1.7 0 0 0-.46-.144 4 4 0 0 1-.47-.13 1.4 1.4 0 0 1-.353-.181.8.8 0 0 1-.222-.25.785.785 0 0 1 .003-.685.9.9 0 0 1 .233-.29q.153-.127.366-.199t.474-.072q.374 0 .639.133a1 1 0 0 1 .405.354q.141.218.141.486h-.532a.46.46 0 0 0-.078-.251.6.6 0 0 0-.221-.204.7.7 0 0 0-.354-.08.8.8 0 0 0-.36.069.46.46 0 0 0-.198.169.43.43 0 0 0-.031.374.34.34 0 0 0 .109.124 1 1 0 0 0 .218.104q.141.049.36.097.382.087.63.207.248.121.368.297t.12.425a.837.837 0 0 1-.33.668q-.158.12-.38.19a1.7 1.7 0 0 1-.491.066q-.412 0-.697-.147a1.1 1.1 0 0 1-.43-.38.9.9 0 0 1-.148-.492h.535q.012.219.127.349.115.126.282.181.166.051.33.051.219 0 .366-.057a.5.5 0 0 0 .227-.158.37.37 0 0 0 .078-.23m2.522.883q-.324 0-.59-.11a1.3 1.3 0 0 1-.45-.313 1.4 1.4 0 0 1-.289-.478 1.8 1.8 0 0 1-.1-.604v-.12q0-.38.112-.676.112-.3.305-.507.192-.207.437-.313t.506-.107q.334 0 .575.116.245.114.4.322.156.204.23.483.075.276.075.604v.239h-2.324v-.435h1.792v-.04a1.3 1.3 0 0 0-.086-.403.73.73 0 0 0-.23-.322q-.159-.126-.432-.126a.712.712 0 0 0-.595.302q-.11.149-.17.365t-.06.498v.12q0 .222.06.417.064.193.181.34a.9.9 0 0 0 .29.23.9.9 0 0 0 .392.083.9.9 0 0 0 .477-.115q.195-.114.343-.307l.322.256a1.5 1.5 0 0 1-.256.29 1.2 1.2 0 0 1-.383.224 1.5 1.5 0 0 1-.532.087m2.365-2.681v2.623h-.532v-3.112h.517zm.972-.506-.003.494a1.289 1.289 0 0 0-.259-.023.9.9 0 0 0-.325.058.7.7 0 0 0-.239.161.8.8 0 0 0-.155.247 1.2 1.2 0 0 0-.072.311l-.15.086q0-.282.055-.529.057-.248.176-.437a.85.85 0 0 1 .299-.299.84.84 0 0 1 .673-.069m2.304 2.304a.45.45 0 0 0-.052-.213.44.44 0 0 0-.204-.181 1.7 1.7 0 0 0-.46-.144 4 4 0 0 1-.47-.13 1.4 1.4 0 0 1-.353-.181.8.8 0 0 1-.222-.25.783.783 0 0 1 .003-.685.9.9 0 0 1 .233-.29q.153-.127.365-.199.213-.072.475-.072.374 0 .639.133a1 1 0 0 1 .405.354.87.87 0 0 1 .141.486h-.532a.46.46 0 0 0-.078-.251.6.6 0 0 0-.221-.204.7.7 0 0 0-.354-.08.8.8 0 0 0-.36.069.46.46 0 0 0-.198.169.43.43 0 0 0-.032.374.34.34 0 0 0 .11.124 1 1 0 0 0 .218.104q.141.049.36.097.383.087.63.207.248.121.368.297t.12.425a.837.837 0 0 1-.33.668q-.158.12-.38.19a1.7 1.7 0 0 1-.492.066q-.411 0-.696-.147a1.1 1.1 0 0 1-.431-.38.9.9 0 0 1-.147-.492h.535q.012.219.127.349.115.126.282.181.166.051.33.051.219 0 .366-.057a.5.5 0 0 0 .227-.158.37.37 0 0 0 .078-.23m3.48.273.8-2.56h.35l-.069.509-.814 2.603h-.342zm-.538-2.56.682 2.589.049.523h-.36l-.903-3.112zm2.454 2.569.65-2.569h.529l-.903 3.112h-.357zm-.688-2.569.782 2.517.09.595h-.34l-.837-2.609-.069-.503zm2.992 0v3.112h-.535v-3.112zm-.576-.825a.32.32 0 0 1 .078-.219q.08-.09.236-.089.153 0 .233.089a.3.3 0 0 1 .083.219.3.3 0 0 1-.083.212q-.081.087-.233.087-.155 0-.236-.087a.3.3 0 0 1-.078-.212m2.008-.481v4.418h-.535v-4.418zm1.432 0v4.418h-.535v-4.418zm2.313 0h.535v3.814l-.046.604h-.49zm2.637 2.836v.061q0 .339-.08.63a1.6 1.6 0 0 1-.236.5q-.155.213-.38.331-.224.118-.514.118-.296 0-.521-.101a1 1 0 0 1-.374-.296 1.5 1.5 0 0 1-.244-.466q-.09-.273-.124-.616v-.264a3 3 0 0 1 .124-.619 1.5 1.5 0 0 1 .244-.466 1 1 0 0 1 .374-.296q.221-.104.515-.104.293 0 .52.116.228.112.38.322.155.21.236.503.08.29.08.647m-.535.061v-.061a2 2 0 0 0-.043-.437 1.1 1.1 0 0 0-.138-.362.69.69 0 0 0-.633-.34.8.8 0 0 0-.35.069.8.8 0 0 0-.25.187 1 1 0 0 0-.17.265 1.5 1.5 0 0 0-.095.305v.693q.045.201.15.388a.9.9 0 0 0 .281.302.8.8 0 0 0 .44.118.74.74 0 0 0 .368-.086.7.7 0 0 0 .25-.245q.099-.155.144-.359.046-.204.046-.437m2.5 1.579q-.325 0-.59-.11a1.3 1.3 0 0 1-.451-.313 1.4 1.4 0 0 1-.288-.478 1.8 1.8 0 0 1-.1-.604v-.12q0-.38.112-.676.111-.3.305-.507.192-.207.437-.313.244-.107.506-.107.333 0 .575.116.244.114.4.322.155.204.23.483.075.276.075.604v.239h-2.324v-.435h1.792v-.04a1.3 1.3 0 0 0-.087-.403.73.73 0 0 0-.23-.322q-.158-.126-.431-.126a.71.71 0 0 0-.595.302 1.1 1.1 0 0 0-.17.365q-.06.216-.06.498v.12q0 .222.06.417.063.193.181.34.12.147.29.23a.9.9 0 0 0 .392.083.9.9 0 0 0 .477-.115q.196-.114.342-.307l.323.256a1.5 1.5 0 0 1-.256.29 1.2 1.2 0 0 1-.383.224 1.5 1.5 0 0 1-.532.087m5.128-.59v-1.602a.65.65 0 0 0-.074-.319.5.5 0 0 0-.219-.213.8.8 0 0 0-.362-.075.85.85 0 0 0-.354.069.6.6 0 0 0-.236.181.4.4 0 0 0-.084.242h-.532q0-.167.087-.331a1 1 0 0 1 .247-.296q.165-.135.391-.213.23-.081.512-.081.34 0 .599.116.261.114.408.348.15.23.15.578v1.449q0 .156.025.331.03.176.084.302v.046h-.555a1 1 0 0 1-.064-.244 2 2 0 0 1-.023-.288m.092-1.355.006.374h-.538a2 2 0 0 0-.405.038.9.9 0 0 0-.3.106.482.482 0 0 0-.247.431.55.55 0 0 0 .066.268.5.5 0 0 0 .199.193q.135.069.33.069a.894.894 0 0 0 .728-.357.54.54 0 0 0 .121-.29l.227.256a.8.8 0 0 1-.109.267 1.27 1.27 0 0 1-.59.503 1.1 1.1 0 0 1-.454.087q-.317 0-.555-.124a.95.95 0 0 1-.368-.331.9.9 0 0 1-.13-.469q0-.25.098-.44a.85.85 0 0 1 .282-.319q.184-.129.443-.196.258-.066.578-.066zm3.182 1.168v-2.393h.535v3.112h-.51zm.1-.656.222-.005q0 .31-.066.575a1.2 1.2 0 0 1-.207.454 1 1 0 0 1-.377.302 1.4 1.4 0 0 1-.567.107q-.227 0-.417-.066a.85.85 0 0 1-.532-.564 1.7 1.7 0 0 1-.072-.532v-2.008h.532v2.013q0 .21.046.348a.6.6 0 0 0 .13.216.5.5 0 0 0 .184.109q.103.032.213.032.339 0 .537-.129a.74.74 0 0 0 .285-.354q.09-.225.09-.498m2.549-1.737v.408h-1.683v-.408zm-1.114-.756h.533v3.097q0 .159.049.239a.23.23 0 0 0 .126.106.5.5 0 0 0 .167.026q.066 0 .138-.011l.112-.023.003.434a1 1 0 0 1-.167.038q-.1.02-.244.02a.8.8 0 0 1-.36-.078.58.58 0 0 1-.262-.259 1.1 1.1 0 0 1-.094-.495zm1.54 2.347v-.067q0-.336.097-.624a1.5 1.5 0 0 1 .282-.503 1.3 1.3 0 0 1 .446-.334q.261-.12.587-.121.327 0 .59.121.264.118.448.334.188.213.285.503.097.288.097.624v.067q0 .336-.097.624-.098.287-.285.503a1.3 1.3 0 0 1-.446.334 1.4 1.4 0 0 1-.587.118 1.4 1.4 0 0 1-.59-.118 1.3 1.3 0 0 1-.448-.334 1.5 1.5 0 0 1-.282-.503 2 2 0 0 1-.098-.624m.531-.067v.067q0 .233.055.44.055.204.164.362a.8.8 0 0 0 .28.25q.166.09.387.089a.8.8 0 0 0 .383-.089.8.8 0 0 0 .276-.25q.109-.158.164-.362a1.6 1.6 0 0 0 .058-.44v-.067q0-.23-.058-.434a1.1 1.1 0 0 0-.167-.365.768.768 0 0 0-.662-.345.8.8 0 0 0-.385.092.8.8 0 0 0-.276.253 1.2 1.2 0 0 0-.164.365 1.7 1.7 0 0 0-.055.434m3.498-.906v2.494h-.535v-3.112h.506zm-.11.82-.247-.008q.003-.32.084-.59.08-.273.239-.475.157-.2.394-.31.236-.113.546-.113.219 0 .403.064a.81.81 0 0 1 .529.532q.075.207.075.5v2.074h-.532v-2.048a.8.8 0 0 0-.084-.391.48.48 0 0 0-.23-.213.8.8 0 0 0-.35-.069.83.83 0 0 0-.395.084.66.66 0 0 0-.253.23q-.095.146-.138.336-.04.187-.04.397m2.017-.293-.357.109q.003-.257.084-.492.083-.236.239-.42.157-.183.388-.29.23-.11.526-.11.25 0 .443.067a.8.8 0 0 1 .328.204q.135.135.204.348.07.213.07.506v2.045h-.536v-2.051a.8.8 0 0 0-.083-.405.43.43 0 0 0-.23-.204.9.9 0 0 0-.351-.061q-.175 0-.31.061a.6.6 0 0 0-.228.166.7.7 0 0 0-.141.239.9.9 0 0 0-.046.288m4.565 1.435v-1.602a.65.65 0 0 0-.075-.319.5.5 0 0 0-.219-.213.8.8 0 0 0-.362-.075.85.85 0 0 0-.354.069.6.6 0 0 0-.236.181.4.4 0 0 0-.083.242h-.532q0-.167.086-.331a1 1 0 0 1 .247-.296q.165-.135.392-.213.23-.081.511-.081.34 0 .599.116.261.114.408.348.15.23.15.578v1.449q0 .156.026.331.029.176.083.302v.046h-.555a1 1 0 0 1-.063-.244 2 2 0 0 1-.023-.288m.092-1.355.006.374h-.538q-.228 0-.406.038a.9.9 0 0 0-.3.106.482.482 0 0 0-.247.431.55.55 0 0 0 .067.268.5.5 0 0 0 .198.193q.135.069.331.069a.895.895 0 0 0 .728-.357.54.54 0 0 0 .12-.29l.228.256a.8.8 0 0 1-.11.267 1.27 1.27 0 0 1-.59.503 1.1 1.1 0 0 1-.454.087q-.316 0-.555-.124a.95.95 0 0 1-.368-.331.9.9 0 0 1-.13-.469q0-.25.098-.44a.85.85 0 0 1 .282-.319q.184-.129.443-.196.259-.066.578-.066zm2.58-1.225v.408h-1.683v-.408zm-1.113-.756h.532v3.097q0 .159.049.239a.23.23 0 0 0 .126.106.5.5 0 0 0 .167.026q.066 0 .138-.011l.112-.023.003.434a1 1 0 0 1-.167.038q-.1.02-.244.02a.8.8 0 0 1-.36-.078.58.58 0 0 1-.261-.259 1.1 1.1 0 0 1-.095-.495zm2.315.756v3.112h-.535v-3.112zm-.575-.825q0-.13.077-.219.081-.09.236-.089.153 0 .233.089a.3.3 0 0 1 .084.219.3.3 0 0 1-.084.212q-.08.087-.233.087-.155 0-.236-.087a.31.31 0 0 1-.077-.212m2.675 3.557a.8.8 0 0 0 .351-.077.7.7 0 0 0 .264-.213.6.6 0 0 0 .118-.314h.506a.94.94 0 0 1-.187.515 1.3 1.3 0 0 1-.445.383 1.3 1.3 0 0 1-.607.144 1.4 1.4 0 0 1-.613-.124 1.2 1.2 0 0 1-.431-.339 1.5 1.5 0 0 1-.256-.495 2 2 0 0 1-.084-.596v-.12q0-.314.084-.593.086-.282.256-.497.173-.216.431-.34a1.4 1.4 0 0 1 .613-.124q.365 0 .638.15.273.147.429.403.158.252.172.575h-.506a.8.8 0 0 0-.109-.348.7.7 0 0 0-.253-.247.7.7 0 0 0-.371-.095q-.244 0-.412.097a.7.7 0 0 0-.261.259q-.096.162-.138.36-.04.196-.041.4v.12q0 .205.041.403.04.198.135.36a.76.76 0 0 0 .262.259.83.83 0 0 0 .414.094m3.673-.152v-1.602a.65.65 0 0 0-.075-.319.5.5 0 0 0-.219-.213.8.8 0 0 0-.362-.075.85.85 0 0 0-.354.069.63.63 0 0 0-.236.181.4.4 0 0 0-.083.242h-.532a.7.7 0 0 1 .086-.331 1 1 0 0 1 .247-.296q.164-.135.392-.213.23-.081.512-.081.339 0 .598.116a.9.9 0 0 1 .408.348q.15.23.15.578v1.449q0 .156.026.331a1.3 1.3 0 0 0 .083.302v.046h-.555a1 1 0 0 1-.063-.244 2 2 0 0 1-.023-.288m.092-1.355.006.374h-.538a2 2 0 0 0-.406.038 1 1 0 0 0-.299.106.484.484 0 0 0-.247.431q0 .147.066.268t.198.193q.135.069.331.069a.9.9 0 0 0 .728-.357.55.55 0 0 0 .121-.29l.227.256a.8.8 0 0 1-.11.267 1.27 1.27 0 0 1-.589.503 1.1 1.1 0 0 1-.455.087q-.317 0-.555-.124a.95.95 0 0 1-.368-.331.9.9 0 0 1-.129-.469q0-.25.097-.44a.86.86 0 0 1 .282-.319q.185-.129.443-.196.26-.066.578-.066zm1.855-2.531v4.418h-.535v-4.418zm1.432 0v4.418h-.535v-4.418zm1.729 4.096.866-2.79h.569l-1.248 3.593a2 2 0 0 1-.115.247q-.069.135-.178.256a.84.84 0 0 1-.791.256 2 2 0 0 1-.138-.029l-.003-.431.072.005.072.006q.18 0 .307-.049a.45.45 0 0 0 .213-.158 1 1 0 0 0 .153-.302zm-.636-2.79.809 2.416.138.561-.383.196-1.145-3.173zm5.258 2.732a.8.8 0 0 0 .351-.077.7.7 0 0 0 .265-.213.6.6 0 0 0 .118-.314h.506a.95.95 0 0 1-.187.515 1.291 1.291 0 0 1-1.053.527q-.351 0-.612-.124a1.2 1.2 0 0 1-.432-.339 1.5 1.5 0 0 1-.256-.495 2.1 2.1 0 0 1-.083-.596v-.12q0-.314.083-.593.087-.282.256-.497.172-.216.432-.34.261-.123.612-.124.366 0 .639.15.273.147.428.403.158.252.173.575h-.506a.8.8 0 0 0-.11-.348.67.67 0 0 0-.253-.247.7.7 0 0 0-.371-.095q-.244 0-.411.097a.73.73 0 0 0-.262.259 1.2 1.2 0 0 0-.138.36q-.04.196-.04.4v.12q0 .205.04.403t.135.36a.8.8 0 0 0 .262.259.83.83 0 0 0 .414.094m1.697-1.141v-.067q0-.336.098-.624.098-.29.282-.503a1.3 1.3 0 0 1 .446-.334q.261-.12.587-.121.328 0 .589.121.265.118.449.334.187.213.285.503.097.288.097.624v.067q0 .336-.097.624a1.5 1.5 0 0 1-.285.503 1.3 1.3 0 0 1-1.033.452q-.328 0-.589-.118a1.3 1.3 0 0 1-.449-.334 1.5 1.5 0 0 1-.282-.503 2 2 0 0 1-.098-.624m.532-.067v.067q0 .233.055.44.055.204.164.362a.8.8 0 0 0 .279.25q.167.09.388.089a.8.8 0 0 0 .383-.089.8.8 0 0 0 .276-.25 1.1 1.1 0 0 0 .164-.362q.057-.207.057-.44v-.067q0-.23-.057-.434a1.1 1.1 0 0 0-.167-.365.767.767 0 0 0-.661-.345.8.8 0 0 0-.386.092.8.8 0 0 0-.276.253 1.2 1.2 0 0 0-.164.365 1.7 1.7 0 0 0-.055.434m3.501-.86v2.448h-.532v-3.112h.503zm-.127.774-.221-.008q.002-.32.095-.59.091-.273.259-.475.166-.2.397-.31.232-.113.514-.113.23 0 .415.064.183.06.313.195.132.135.201.351.069.213.069.521v2.039h-.534v-2.045a.9.9 0 0 0-.072-.391.44.44 0 0 0-.21-.216.76.76 0 0 0-.34-.069.8.8 0 0 0-.362.084.84.84 0 0 0-.279.23q-.115.146-.181.336a1.2 1.2 0 0 0-.064.397m3.561 1.674h-.532v-3.382q0-.354.138-.599a.9.9 0 0 1 .394-.371q.256-.126.607-.126.207 0 .406.052.198.048.408.123l-.089.449a3 3 0 0 0-.308-.098 1.4 1.4 0 0 0-.38-.049q-.342 0-.494.156-.15.152-.15.463zm.636-3.112v.408h-1.66v-.408zm1.047 0v3.112h-.532v-3.112zm1.406.489v2.623h-.532v-3.112h.518zm.973-.506-.003.494a1.277 1.277 0 0 0-.259-.023.9.9 0 0 0-.325.058.7.7 0 0 0-.239.161.8.8 0 0 0-.155.247 1.2 1.2 0 0 0-.072.311l-.15.086q0-.282.055-.529.058-.248.175-.437a.86.86 0 0 1 .299-.299.84.84 0 0 1 .674-.069m1.021.635v2.494h-.535v-3.112h.506zm-.11.82-.247-.008q.003-.32.083-.59.081-.273.239-.475.159-.2.394-.31.236-.113.547-.113.218 0 .402.064a.82.82 0 0 1 .53.532q.074.207.074.5v2.074h-.532v-2.048a.8.8 0 0 0-.083-.391.48.48 0 0 0-.23-.213.8.8 0 0 0-.351-.069.83.83 0 0 0-.394.084.65.65 0 0 0-.253.23 1 1 0 0 0-.138.336 2 2 0 0 0-.041.397m2.017-.293-.357.109q.003-.257.083-.492a1.4 1.4 0 0 1 .239-.42q.159-.183.388-.29.23-.11.527-.11.25 0 .443.067.195.066.328.204.135.135.204.348t.069.506v2.045h-.535v-2.051a.8.8 0 0 0-.084-.405.43.43 0 0 0-.23-.204.9.9 0 0 0-.351-.061.7.7 0 0 0-.31.061.6.6 0 0 0-.227.166.7.7 0 0 0-.141.239.9.9 0 0 0-.046.288m4.021 2.025q-.326 0-.59-.11a1.3 1.3 0 0 1-.452-.313 1.4 1.4 0 0 1-.287-.478 1.8 1.8 0 0 1-.101-.604v-.12q0-.38.112-.676.113-.3.305-.507a1.3 1.3 0 0 1 .437-.313q.245-.107.507-.107.333 0 .575.116.244.114.4.322.155.204.23.483.075.276.075.604v.239h-2.324v-.435h1.791v-.04a1.3 1.3 0 0 0-.086-.403.73.73 0 0 0-.23-.322q-.158-.126-.431-.126a.71.71 0 0 0-.596.302 1.1 1.1 0 0 0-.169.365q-.061.216-.061.498v.12q0 .222.061.417.063.193.181.34.12.147.29.23a.9.9 0 0 0 .391.083.93.93 0 0 0 .478-.115q.195-.114.342-.307l.322.256a1.5 1.5 0 0 1-.256.29 1.2 1.2 0 0 1-.382.224q-.225.087-.532.087m3.793-.662v-3.814h.535v4.418h-.489zm-2.093-.917v-.061q0-.356.086-.647a1.6 1.6 0 0 1 .25-.503q.164-.21.388-.322.228-.116.507-.116.293 0 .512.104a1 1 0 0 1 .373.296q.156.193.245.466.089.274.124.619v.264a2.7 2.7 0 0 1-.124.616 1.4 1.4 0 0 1-.245.466 1 1 0 0 1-.373.296 1.25 1.25 0 0 1-.518.101 1.08 1.08 0 0 1-.889-.449 1.6 1.6 0 0 1-.25-.5 2.2 2.2 0 0 1-.086-.63m.535-.061v.061q0 .233.046.437.048.204.149.359a.75.75 0 0 0 .256.245.76.76 0 0 0 .371.086.77.77 0 0 0 .434-.112.84.84 0 0 0 .277-.296q.103-.184.161-.4v-.693a1.5 1.5 0 0 0-.101-.305 1 1 0 0 0-.167-.265.7.7 0 0 0-.25-.187.8.8 0 0 0-.348-.069.74.74 0 0 0-.377.092.74.74 0 0 0-.256.248 1.1 1.1 0 0 0-.149.362 2 2 0 0 0-.046.437m-106.9 10.03.799-2.56h.35l-.068.509-.814 2.603h-.343zm-.539-2.56.682 2.589.049.523h-.36l-.903-3.112zm2.454 2.569.65-2.569h.529l-.903 3.112h-.357zm-.688-2.569.783 2.517.089.595h-.34l-.837-2.609-.069-.503zm2.946-1.306v4.418h-.532v-4.418zm-.127 2.744-.221-.008q.003-.32.095-.59.09-.273.258-.475a1.16 1.16 0 0 1 .912-.423q.231 0 .414.064.185.06.314.195a.9.9 0 0 1 .201.351q.07.213.07.521v2.039h-.536v-2.045a.9.9 0 0 0-.072-.391.44.44 0 0 0-.21-.216.75.75 0 0 0-.339-.069.8.8 0 0 0-.362.084.9.9 0 0 0-.28.23 1.15 1.15 0 0 0-.244.733m3.417-1.438v3.112h-.535v-3.112zm-.575-.825a.32.32 0 0 1 .078-.219q.08-.09.235-.089.153 0 .233.089a.3.3 0 0 1 .084.219.3.3 0 0 1-.084.212q-.08.087-.233.087-.155 0-.236-.087a.3.3 0 0 1-.077-.212m2.008-.481v4.418h-.536v-4.418zm2.145 4.476q-.324 0-.59-.11a1.3 1.3 0 0 1-.451-.313 1.4 1.4 0 0 1-.288-.478 1.8 1.8 0 0 1-.1-.604v-.12q0-.38.112-.676.112-.3.305-.507.192-.207.437-.313t.506-.107q.334 0 .576.116.244.114.4.322.155.204.23.483.075.276.074.604v.239h-2.324v-.435h1.792v-.04a1.3 1.3 0 0 0-.086-.403.73.73 0 0 0-.23-.322q-.159-.126-.432-.126a.71.71 0 0 0-.595.302 1.1 1.1 0 0 0-.17.365q-.06.216-.06.498v.12q0 .222.06.417.063.193.181.34.121.147.29.23a.9.9 0 0 0 .392.083.9.9 0 0 0 .477-.115q.196-.114.343-.307l.322.256a1.5 1.5 0 0 1-.256.29 1.2 1.2 0 0 1-.383.224 1.5 1.5 0 0 1-.532.087m4.597-3.17v.408h-1.683v-.408zm-1.114-.756h.533v3.097q0 .159.048.239a.23.23 0 0 0 .127.106.5.5 0 0 0 .167.026q.066 0 .138-.011l.112-.023.003.434a1 1 0 0 1-.167.038q-.101.02-.244.02a.8.8 0 0 1-.36-.078.58.58 0 0 1-.262-.259 1.1 1.1 0 0 1-.095-.495zm2.27-.55v4.418h-.532v-4.418zm-.127 2.744-.221-.008a1.9 1.9 0 0 1 .095-.59q.091-.273.259-.475a1.16 1.16 0 0 1 .911-.423q.231 0 .414.064.185.06.314.195a.9.9 0 0 1 .201.351q.07.213.07.521v2.039h-.536v-2.045a.9.9 0 0 0-.072-.391.44.44 0 0 0-.21-.216.75.75 0 0 0-.339-.069.8.8 0 0 0-.362.084.9.9 0 0 0-.28.23 1.15 1.15 0 0 0-.244.733m3.417-1.438v3.112h-.535v-3.112zm-.575-.825a.32.32 0 0 1 .078-.219q.08-.09.236-.089.152 0 .232.089a.3.3 0 0 1 .084.219.3.3 0 0 1-.084.212q-.08.087-.232.087-.156 0-.236-.087a.3.3 0 0 1-.078-.212m3.242 3.112a.45.45 0 0 0-.052-.213.44.44 0 0 0-.204-.181 1.7 1.7 0 0 0-.46-.144 4 4 0 0 1-.47-.13 1.4 1.4 0 0 1-.353-.181.8.8 0 0 1-.222-.25.783.783 0 0 1 .003-.685.9.9 0 0 1 .233-.29q.153-.127.365-.199.213-.072.475-.072.374 0 .639.133a1 1 0 0 1 .405.354q.141.218.141.486h-.532a.46.46 0 0 0-.078-.251.6.6 0 0 0-.221-.204.7.7 0 0 0-.354-.08.8.8 0 0 0-.36.069.46.46 0 0 0-.198.169.43.43 0 0 0-.032.374.34.34 0 0 0 .11.124 1 1 0 0 0 .218.104q.141.049.36.097.383.087.63.207.247.121.368.297.12.176.12.425a.838.838 0 0 1-.33.668q-.158.12-.38.19a1.7 1.7 0 0 1-.491.066q-.412 0-.697-.147a1.1 1.1 0 0 1-.431-.38.9.9 0 0 1-.147-.492h.535q.012.219.127.349.115.126.282.181.166.051.33.051.219 0 .366-.057a.5.5 0 0 0 .227-.158.37.37 0 0 0 .078-.23m4.654.221v-3.814h.535v4.418h-.49zm-2.094-.917v-.061q0-.356.086-.647.09-.294.25-.503.165-.21.388-.322a1.1 1.1 0 0 1 .507-.116q.293 0 .512.104a1 1 0 0 1 .373.296q.156.193.245.466.089.274.124.619v.264a2.7 2.7 0 0 1-.124.616q-.09.273-.245.466a1 1 0 0 1-.373.296q-.222.1-.518.101-.274 0-.5-.118a1.2 1.2 0 0 1-.389-.331 1.6 1.6 0 0 1-.25-.5 2.2 2.2 0 0 1-.087-.63m.534-.061v.061q0 .233.047.437.048.204.15.359a.75.75 0 0 0 .255.245.76.76 0 0 0 .371.086.77.77 0 0 0 .434-.112.84.84 0 0 0 .277-.296q.103-.184.16-.4v-.693a1.5 1.5 0 0 0-.1-.305 1 1 0 0 0-.167-.265.7.7 0 0 0-.25-.187.8.8 0 0 0-.348-.069.74.74 0 0 0-.377.092.74.74 0 0 0-.256.248 1.1 1.1 0 0 0-.15.362 2 2 0 0 0-.046.437m4.214 1.64q-.324 0-.59-.11a1.3 1.3 0 0 1-.45-.313 1.4 1.4 0 0 1-.289-.478 1.8 1.8 0 0 1-.1-.604v-.12q0-.38.112-.676.112-.3.305-.507.192-.207.437-.313t.506-.107q.335 0 .576.116.244.114.4.322.155.204.23.483.075.276.074.604v.239H61.08v-.435h1.792v-.04a1.3 1.3 0 0 0-.086-.403.73.73 0 0 0-.23-.322q-.159-.126-.432-.126a.71.71 0 0 0-.595.302q-.11.149-.17.365t-.06.498v.12q0 .222.06.417.064.193.181.34a.9.9 0 0 0 .29.23.9.9 0 0 0 .392.083.9.9 0 0 0 .478-.115q.195-.114.342-.307l.322.256a1.5 1.5 0 0 1-.256.29 1.2 1.2 0 0 1-.383.224 1.5 1.5 0 0 1-.532.087m2.738-.538.852-2.632h.544l-1.12 3.112h-.356zm-.71-2.632.877 2.646.06.466h-.356l-1.127-3.112zm3.196 0v3.112h-.535v-3.112zm-.576-.825a.32.32 0 0 1 .078-.219q.08-.09.236-.089.153 0 .233.089a.3.3 0 0 1 .083.219.3.3 0 0 1-.083.212q-.081.087-.233.087-.155 0-.236-.087a.3.3 0 0 1-.078-.212m2.675 3.557a.8.8 0 0 0 .351-.077.7.7 0 0 0 .265-.213.6.6 0 0 0 .118-.314h.506a.95.95 0 0 1-.187.515 1.27 1.27 0 0 1-1.053.527q-.351 0-.612-.124a1.2 1.2 0 0 1-.432-.339 1.5 1.5 0 0 1-.256-.495 2 2 0 0 1-.083-.596v-.12q0-.314.083-.593a1.5 1.5 0 0 1 .256-.497 1.2 1.2 0 0 1 .432-.34q.261-.123.612-.124.366 0 .639.15.273.147.428.403.158.252.173.575h-.506a.8.8 0 0 0-.11-.348.7.7 0 0 0-.253-.247.7.7 0 0 0-.37-.095q-.245 0-.412.097a.73.73 0 0 0-.262.259q-.094.162-.138.36a2 2 0 0 0-.04.4v.12q0 .205.04.403t.135.36a.76.76 0 0 0 .262.259.83.83 0 0 0 .414.094m3.13.438q-.325 0-.59-.11a1.3 1.3 0 0 1-.452-.313 1.4 1.4 0 0 1-.287-.478 1.8 1.8 0 0 1-.1-.604v-.12q0-.38.111-.676.113-.3.305-.507.193-.207.438-.313.244-.107.506-.107.333 0 .575.116.244.114.4.322.155.204.23.483.075.276.075.604v.239h-2.324v-.435h1.792v-.04a1.3 1.3 0 0 0-.087-.403.73.73 0 0 0-.23-.322q-.159-.126-.431-.126a.71.71 0 0 0-.595.302q-.11.149-.17.365t-.06.498v.12q0 .222.06.417.063.193.18.34.121.147.291.23a.9.9 0 0 0 .392.083.9.9 0 0 0 .477-.115q.196-.114.342-.307l.322.256a1.5 1.5 0 0 1-.256.29 1.2 1.2 0 0 1-.382.224 1.5 1.5 0 0 1-.532.087m3.871-3.17v3.112h-.535v-3.112zm-.575-.825a.32.32 0 0 1 .078-.219q.08-.09.235-.089.153 0 .233.089a.3.3 0 0 1 .084.219.3.3 0 0 1-.084.212q-.079.087-.233.087t-.235-.087a.3.3 0 0 1-.078-.212m3.242 3.112a.45.45 0 0 0-.052-.213.44.44 0 0 0-.204-.181 1.7 1.7 0 0 0-.46-.144 4 4 0 0 1-.47-.13 1.4 1.4 0 0 1-.353-.181.8.8 0 0 1-.222-.25.783.783 0 0 1 .003-.685.9.9 0 0 1 .233-.29q.153-.127.365-.199.213-.072.475-.072.375 0 .638.133a1 1 0 0 1 .406.354q.141.218.141.486h-.532a.46.46 0 0 0-.078-.251.6.6 0 0 0-.221-.204.7.7 0 0 0-.354-.08.8.8 0 0 0-.36.069.46.46 0 0 0-.198.169.43.43 0 0 0-.032.374.34.34 0 0 0 .11.124 1 1 0 0 0 .218.104q.141.049.36.097.382.087.63.207.247.121.368.297.12.176.12.425a.837.837 0 0 1-.33.668q-.158.12-.38.19a1.7 1.7 0 0 1-.492.066q-.411 0-.696-.147a1.1 1.1 0 0 1-.431-.38.9.9 0 0 1-.147-.492h.535q.012.219.127.349.114.126.282.181.166.051.33.051.219 0 .366-.057a.5.5 0 0 0 .227-.158.37.37 0 0 0 .078-.23m4.596.106v-2.393h.535v3.112h-.51zm.1-.656.222-.005q0 .31-.066.575a1.2 1.2 0 0 1-.207.454 1 1 0 0 1-.377.302 1.4 1.4 0 0 1-.567.107q-.227 0-.417-.066a.85.85 0 0 1-.532-.564 1.7 1.7 0 0 1-.072-.532v-2.008h.532v2.013q0 .21.046.348a.6.6 0 0 0 .13.216.5.5 0 0 0 .184.109q.104.032.213.032.339 0 .538-.129a.74.74 0 0 0 .284-.354q.09-.225.09-.498m1.778-1.073v2.448h-.532v-3.112h.503zm-.126.774-.222-.008a1.9 1.9 0 0 1 .095-.59q.092-.273.259-.475a1.16 1.16 0 0 1 .912-.423q.23 0 .414.064.184.06.313.195.133.135.202.351.069.213.069.521v2.039h-.535v-2.045a.9.9 0 0 0-.072-.391.44.44 0 0 0-.21-.216.75.75 0 0 0-.34-.069.8.8 0 0 0-.362.084.9.9 0 0 0-.279.23 1.15 1.15 0 0 0-.244.733m3.428-2.744v4.418h-.535v-4.418zm.713 2.897v-.067q0-.336.098-.624a1.5 1.5 0 0 1 .282-.503 1.3 1.3 0 0 1 .446-.334q.261-.12.587-.121a1.4 1.4 0 0 1 .59.121q.264.118.448.334.188.213.285.503.098.288.098.624v.067q0 .336-.098.624a1.5 1.5 0 0 1-.285.503 1.3 1.3 0 0 1-.446.334 1.4 1.4 0 0 1-.587.118 1.4 1.4 0 0 1-.59-.118 1.3 1.3 0 0 1-.448-.334 1.5 1.5 0 0 1-.282-.503 2 2 0 0 1-.098-.624m.532-.067v.067q0 .233.055.44.055.204.164.362a.8.8 0 0 0 .28.25q.166.09.387.089a.8.8 0 0 0 .383-.089.8.8 0 0 0 .276-.25q.11-.158.164-.362.057-.207.058-.44v-.067q0-.23-.058-.434a1.1 1.1 0 0 0-.167-.365.768.768 0 0 0-.662-.345.8.8 0 0 0-.385.092.8.8 0 0 0-.276.253 1.2 1.2 0 0 0-.164.365 1.7 1.7 0 0 0-.055.434m4.214 1.208a.8.8 0 0 0 .351-.077.7.7 0 0 0 .265-.213.6.6 0 0 0 .118-.314h.506a.95.95 0 0 1-.187.515 1.293 1.293 0 0 1-1.053.527q-.351 0-.612-.124a1.2 1.2 0 0 1-.432-.339 1.5 1.5 0 0 1-.256-.495 2 2 0 0 1-.083-.596v-.12q0-.314.083-.593a1.5 1.5 0 0 1 .256-.497 1.2 1.2 0 0 1 .432-.34q.261-.123.612-.124.366 0 .639.15.273.147.428.403.158.252.173.575h-.506a.8.8 0 0 0-.11-.348.7.7 0 0 0-.253-.247.7.7 0 0 0-.37-.095q-.245 0-.412.097a.73.73 0 0 0-.262.259q-.095.162-.138.36-.04.196-.04.4v.12q0 .205.04.403t.135.36a.76.76 0 0 0 .262.259.83.83 0 0 0 .414.094m2.373-4.038v4.418h-.535v-4.418zm1.901 1.306-1.357 1.453-.76.788-.043-.567.544-.65.966-1.024zm-.486 3.112-1.11-1.484.276-.475 1.461 1.959zm2.27.058a1.5 1.5 0 0 1-.59-.11 1.3 1.3 0 0 1-.451-.313 1.4 1.4 0 0 1-.288-.478 1.8 1.8 0 0 1-.1-.604v-.12q0-.38.111-.676.113-.3.305-.507.194-.207.438-.313t.506-.107q.333 0 .575.116.244.114.4.322.155.204.23.483.075.276.075.604v.239h-2.324v-.435h1.792v-.04a1.3 1.3 0 0 0-.087-.403.73.73 0 0 0-.23-.322q-.158-.126-.431-.126a.711.711 0 0 0-.596.302q-.109.149-.17.365-.06.216-.06.498v.12q0 .222.06.417.064.193.182.34a.9.9 0 0 0 .29.23.9.9 0 0 0 .392.083.9.9 0 0 0 .477-.115q.195-.114.342-.307l.322.256a1.5 1.5 0 0 1-.256.29 1.2 1.2 0 0 1-.382.224q-.225.087-.532.087m3.794-.662v-3.814h.535v4.418h-.489zm-2.094-.917v-.061q0-.356.086-.647a1.6 1.6 0 0 1 .25-.503q.164-.21.388-.322.228-.116.507-.116.293 0 .512.104a1 1 0 0 1 .374.296q.155.193.244.466.09.274.124.619v.264a2.7 2.7 0 0 1-.124.616 1.5 1.5 0 0 1-.244.466 1.04 1.04 0 0 1-.374.296 1.25 1.25 0 0 1-.518.101 1.08 1.08 0 0 1-.889-.449 1.6 1.6 0 0 1-.25-.5 2.2 2.2 0 0 1-.086-.63m.535-.061v.061q0 .233.046.437.048.204.149.359a.75.75 0 0 0 .256.245.76.76 0 0 0 .371.086.77.77 0 0 0 .435-.112.84.84 0 0 0 .276-.296q.103-.184.161-.4v-.693a1.5 1.5 0 0 0-.101-.305 1 1 0 0 0-.167-.265.7.7 0 0 0-.25-.187.8.8 0 0 0-.348-.069.74.74 0 0 0-.377.092.74.74 0 0 0-.256.248 1.1 1.1 0 0 0-.149.362 2 2 0 0 0-.046.437m2.931 1.3q0-.135.083-.227a.32.32 0 0 1 .247-.095q.162 0 .245.095a.32.32 0 0 1 .086.227.32.32 0 0 1-.086.225q-.083.092-.245.092a.32.32 0 0 1-.247-.092.32.32 0 0 1-.083-.225"/><path class="tw-fill-background" d="M20.84 126.475h144.32v64.661H20.84z"/><rect width="124.124" height="16.049" x="30.939" y="129.842" class="tw-fill-secondary-500" rx="4.039"/><path class="tw-fill-background" d="M83.974 134.58v4.786h-.983v-4.786zm1.473 0v.772h-3.905v-.772zm2.357 3.935v-2.706h.947v3.557h-.891zm.105-.73.28-.007q0 .355-.083.661a1.6 1.6 0 0 1-.246.526q-.165.22-.414.345a1.3 1.3 0 0 1-.589.122q-.26 0-.48-.072a1 1 0 0 1-.374-.234 1.1 1.1 0 0 1-.244-.411 1.9 1.9 0 0 1-.085-.608v-2.298h.947v2.305q0 .158.036.266a.5.5 0 0 0 .108.177.4.4 0 0 0 .161.099q.096.03.21.03.294 0 .46-.119a.62.62 0 0 0 .24-.322q.073-.207.073-.46m2.511-1.2v2.781h-.946v-3.557h.89zm1.072-.799-.016.878a2 2 0 0 0-.168-.016 2 2 0 0 0-.174-.01q-.2 0-.349.052a.6.6 0 0 0-.243.148.65.65 0 0 0-.145.24 1.2 1.2 0 0 0-.052.322l-.19-.059q0-.345.068-.634.07-.293.2-.51.135-.216.33-.335a.83.83 0 0 1 .443-.118q.08 0 .161.013.082.01.135.029m1.374.783v2.797h-.947v-3.557h.888zm-.138.894h-.256q0-.395.102-.71.102-.32.286-.543.183-.227.437-.345a1.3 1.3 0 0 1 .572-.121q.25 0 .457.072a.9.9 0 0 1 .355.23q.15.158.23.417.082.26.082.635v2.268h-.953v-2.271a.84.84 0 0 0-.066-.369.37.37 0 0 0-.194-.184.8.8 0 0 0-.309-.055.7.7 0 0 0-.332.075.7.7 0 0 0-.23.21 1 1 0 0 0-.135.309q-.046.178-.046.382m4.51.161v-.069q0-.392.112-.72.111-.332.325-.575t.526-.378q.313-.138.717-.138.405 0 .72.138.315.135.529.378.217.243.329.575.111.328.112.72v.069q0 .387-.112.72a1.7 1.7 0 0 1-.329.575 1.46 1.46 0 0 1-.526.378q-.312.135-.717.135t-.72-.135a1.5 1.5 0 0 1-.529-.378 1.7 1.7 0 0 1-.325-.575 2.3 2.3 0 0 1-.112-.72m.947-.069v.069q0 .223.04.417.039.195.124.342a.65.65 0 0 0 .23.227q.142.082.346.082a.66.66 0 0 0 .338-.082.6.6 0 0 0 .227-.227q.086-.147.125-.342.043-.194.043-.417v-.069a2 2 0 0 0-.043-.408 1.1 1.1 0 0 0-.128-.342.64.64 0 0 0-.227-.236.65.65 0 0 0-.342-.086.65.65 0 0 0-.342.086.7.7 0 0 0-.227.236 1.1 1.1 0 0 0-.125.342 2 2 0 0 0-.04.408m3.931-.986v2.797h-.946v-3.557h.887zm-.138.894h-.256q0-.395.102-.71.102-.32.286-.543.184-.227.437-.345a1.3 1.3 0 0 1 .572-.121q.25 0 .457.072a.9.9 0 0 1 .355.23q.151.158.23.417.082.26.082.635v2.268h-.953v-2.271a.84.84 0 0 0-.066-.369.37.37 0 0 0-.194-.184.8.8 0 0 0-.309-.055.7.7 0 0 0-.332.075.7.7 0 0 0-.23.21 1 1 0 0 0-.135.309q-.046.178-.046.382"/><rect width="123.283" height="15.208" x="31.359" y="149.677" class="tw-stroke-secondary-500" stroke-width=".842" rx="3.619"/><path class="tw-fill-secondary-500" d="M87.663 157.194h.982q-.03.483-.266.857-.233.375-.654.586-.418.21-1.006.21-.46 0-.825-.158a1.76 1.76 0 0 1-.625-.46 2 2 0 0 1-.39-.723q-.136-.425-.136-.95v-.332q0-.526.139-.95.14-.427.4-.727a1.8 1.8 0 0 1 .629-.46q.364-.16.815-.161.598 0 1.009.217.414.217.64.598.23.382.277.868h-.986a1.3 1.3 0 0 0-.115-.49.65.65 0 0 0-.3-.305q-.196-.106-.525-.106a.96.96 0 0 0-.43.092.8.8 0 0 0-.31.28 1.4 1.4 0 0 0-.187.473q-.06.283-.06.664v.339q.001.371.056.654a1.5 1.5 0 0 0 .171.473.8.8 0 0 0 .303.29 1 1 0 0 0 .45.095q.309 0 .51-.099a.68.68 0 0 0 .305-.292q.109-.195.129-.483m2.57-3.462v5.049h-.95v-5.049zm.631 3.307v-.069q0-.391.112-.72.112-.332.326-.575.213-.243.525-.378.313-.138.717-.138.405 0 .72.138.315.135.53.378t.328.575q.111.329.112.72v.069q0 .388-.112.72a1.7 1.7 0 0 1-.329.575 1.5 1.5 0 0 1-.526.378 1.8 1.8 0 0 1-.716.135q-.405 0-.72-.135a1.5 1.5 0 0 1-.53-.378 1.7 1.7 0 0 1-.325-.575 2.2 2.2 0 0 1-.112-.72m.947-.069v.069q0 .223.04.418.039.194.124.341.09.145.23.227.142.082.346.082a.66.66 0 0 0 .338-.082.6.6 0 0 0 .227-.227q.086-.147.125-.341.042-.195.043-.418v-.069a2 2 0 0 0-.043-.408 1.1 1.1 0 0 0-.128-.341.64.64 0 0 0-.227-.237.65.65 0 0 0-.342-.086.65.65 0 0 0-.342.086.7.7 0 0 0-.227.237 1.1 1.1 0 0 0-.124.341 2 2 0 0 0-.04.408m4.927.828a.3.3 0 0 0-.059-.184.5.5 0 0 0-.22-.151 2 2 0 0 0-.457-.131 4 4 0 0 1-.503-.148 1.8 1.8 0 0 1-.4-.221.84.84 0 0 1-.358-.706q-.002-.224.094-.421.1-.198.28-.349.183-.155.447-.239.266-.09.598-.089.463 0 .796.148.335.147.512.407a1 1 0 0 1 .181.585h-.947a.5.5 0 0 0-.059-.246.4.4 0 0 0-.177-.174.63.63 0 0 0-.31-.066.6.6 0 0 0-.272.056.4.4 0 0 0-.178.144.35.35 0 0 0-.026.346q.037.062.115.115t.204.098q.127.043.316.079.384.08.686.207.303.125.48.342.178.214.178.562a.9.9 0 0 1-.105.434q-.105.198-.303.345-.197.145-.473.227a2.2 2.2 0 0 1-.615.079q-.496 0-.841-.178a1.33 1.33 0 0 1-.52-.45 1.05 1.05 0 0 1-.174-.565h.897a.53.53 0 0 0 .1.312.54.54 0 0 0 .24.171 1 1 0 0 0 .318.053.8.8 0 0 0 .306-.05.43.43 0 0 0 .184-.138.33.33 0 0 0 .066-.204m3.173 1.049q-.414 0-.743-.131a1.6 1.6 0 0 1-.56-.372 1.7 1.7 0 0 1-.348-.549 1.9 1.9 0 0 1-.121-.67v-.132q0-.404.115-.74t.329-.581a1.4 1.4 0 0 1 .526-.378q.309-.135.697-.135.377 0 .67.125.292.124.49.355.2.23.302.552.102.319.102.71v.394h-2.827v-.631h1.897v-.072a.8.8 0 0 0-.072-.352.57.57 0 0 0-.211-.25.65.65 0 0 0-.361-.092.6.6 0 0 0-.323.083.6.6 0 0 0-.22.23 1.2 1.2 0 0 0-.125.348 2.2 2.2 0 0 0-.04.434v.132q0 .213.06.394.063.18.174.312a.8.8 0 0 0 .276.204q.165.072.372.072.257 0 .476-.098a1 1 0 0 0 .385-.306l.46.5q-.111.16-.305.309a1.7 1.7 0 0 1-.461.243 1.9 1.9 0 0 1-.614.092"/><path class="tw-fill-secondary-700" d="m41.003 177.374.834-3.524h.466l.107.587-.889 3.601h-.5zm-.428-3.524.69 3.524-.057.664h-.558l-.93-4.188zm2.568 3.509.682-3.509h.854l-.926 4.188h-.558zm-.578-3.509.84 3.538-.023.65h-.5l-.895-3.604.115-.584zm3.34-.23v4.418h-.829v-4.418zm-.118 2.753h-.228q.003-.325.087-.599.083-.276.238-.477.156-.205.371-.316a1.04 1.04 0 0 1 .484-.113q.23 0 .417.067a.8.8 0 0 1 .325.207.9.9 0 0 1 .213.371q.074.23.074.558v1.967h-.834v-1.973a.7.7 0 0 0-.06-.325.33.33 0 0 0-.17-.17.6.6 0 0 0-.27-.052.65.65 0 0 0-.305.067.5.5 0 0 0-.199.184.8.8 0 0 0-.109.27 1.5 1.5 0 0 0-.034.334m4.291.963v-1.386q0-.15-.049-.256a.36.36 0 0 0-.152-.17.5.5 0 0 0-.262-.06.54.54 0 0 0-.239.049.34.34 0 0 0-.155.135.37.37 0 0 0-.055.204h-.828q0-.198.092-.377a.9.9 0 0 1 .267-.313q.175-.138.417-.216.246-.078.547-.078.362 0 .644.121a1 1 0 0 1 .443.363q.165.241.164.604v1.331q0 .257.032.42.031.162.092.282v.049h-.837q-.06-.126-.092-.316a3 3 0 0 1-.029-.386m.11-1.193.005.468h-.463a1 1 0 0 0-.285.038.5.5 0 0 0-.198.106.4.4 0 0 0-.115.156.5.5 0 0 0-.035.195q0 .106.05.193.048.083.14.132a.5.5 0 0 0 .216.046.7.7 0 0 0 .325-.075.6.6 0 0 0 .213-.184.4.4 0 0 0 .08-.207l.219.351q-.045.118-.127.245a1.024 1.024 0 0 1-.489.42 1.1 1.1 0 0 1-.402.069q-.297 0-.538-.118a1 1 0 0 1-.38-.331.87.87 0 0 1-.138-.483q0-.245.092-.435a.85.85 0 0 1 .27-.319 1.3 1.3 0 0 1 .452-.198q.27-.069.627-.069zm2.887-1.217v.587h-1.812v-.587zm-1.363-.768h.828v2.942q0 .136.035.208a.2.2 0 0 0 .109.1.6.6 0 0 0 .181.026q.078 0 .138-.006.063-.008.107-.017l.002.61q-.105.035-.23.054a1.6 1.6 0 0 1-.273.021q-.273 0-.477-.09a.66.66 0 0 1-.31-.293 1.1 1.1 0 0 1-.11-.529zm4.981 3.178v-1.386q0-.15-.048-.256a.36.36 0 0 0-.153-.17.5.5 0 0 0-.262-.06.54.54 0 0 0-.238.049.34.34 0 0 0-.156.135.37.37 0 0 0-.054.204h-.829q0-.198.092-.377a.9.9 0 0 1 .268-.313q.175-.138.417-.216.244-.078.546-.078.363 0 .645.121a1 1 0 0 1 .443.363q.164.241.164.604v1.331q0 .257.031.42.032.162.092.282v.049h-.837q-.06-.126-.092-.316a3 3 0 0 1-.029-.386m.11-1.193.006.468h-.463a1 1 0 0 0-.285.038.5.5 0 0 0-.199.106.4.4 0 0 0-.115.156.5.5 0 0 0-.034.195q0 .106.049.193.049.083.14.132a.5.5 0 0 0 .216.046.7.7 0 0 0 .325-.075.6.6 0 0 0 .213-.184.4.4 0 0 0 .08-.207l.22.351q-.047.118-.127.245a1.022 1.022 0 0 1-.489.42 1.1 1.1 0 0 1-.403.069q-.296 0-.538-.118a1 1 0 0 1-.38-.331.87.87 0 0 1-.138-.483q0-.245.093-.435a.85.85 0 0 1 .27-.319q.18-.132.451-.198.27-.069.627-.069zm2.192-.538v2.433h-.829v-3.112h.78zm.937-.699-.014.768a2 2 0 0 0-.147-.015 2 2 0 0 0-.152-.008.9.9 0 0 0-.305.046.55.55 0 0 0-.213.129.6.6 0 0 0-.127.21 1 1 0 0 0-.046.282l-.166-.052q0-.302.06-.555.06-.255.175-.446a.9.9 0 0 1 .288-.293.73.73 0 0 1 .388-.104q.069 0 .141.012a.5.5 0 0 1 .118.026m1.766 3.19q-.362 0-.65-.115a1.4 1.4 0 0 1-.489-.325 1.5 1.5 0 0 1-.305-.481 1.6 1.6 0 0 1-.106-.587v-.115q0-.353.1-.647a1.5 1.5 0 0 1 .288-.509q.19-.216.46-.331.27-.118.61-.118.33 0 .587.11t.429.31q.175.202.264.484.09.279.09.621v.345h-2.474v-.552h1.66v-.064a.7.7 0 0 0-.064-.307.5.5 0 0 0-.184-.219.57.57 0 0 0-.316-.08.54.54 0 0 0-.282.071.56.56 0 0 0-.193.202 1.1 1.1 0 0 0-.11.305 2 2 0 0 0-.034.379v.115q0 .187.052.346a.9.9 0 0 0 .152.273.7.7 0 0 0 .242.178.8.8 0 0 0 .325.063q.225 0 .417-.086a.9.9 0 0 0 .337-.267l.402.437a1.2 1.2 0 0 1-.267.27 1.4 1.4 0 0 1-.403.213 1.7 1.7 0 0 1-.538.081m4.74-3.17v.587h-1.812v-.587zm-1.363-.768h.828v2.942q0 .136.035.208a.2.2 0 0 0 .11.1.6.6 0 0 0 .18.026q.078 0 .139-.006.063-.008.106-.017l.003.61a1.638 1.638 0 0 1-.503.075q-.274 0-.478-.09a.66.66 0 0 1-.31-.293 1.1 1.1 0 0 1-.11-.529zm2.643-.538v4.418h-.828v-4.418zm-.118 2.753h-.227q.002-.325.087-.599.083-.276.238-.477.156-.205.371-.316a1.04 1.04 0 0 1 .483-.113q.231 0 .417.067a.8.8 0 0 1 .326.207.9.9 0 0 1 .212.371q.075.23.075.558v1.967h-.834v-1.973a.7.7 0 0 0-.06-.325.33.33 0 0 0-.17-.17.6.6 0 0 0-.27-.052.65.65 0 0 0-.305.067.5.5 0 0 0-.199.184.8.8 0 0 0-.11.27 1.5 1.5 0 0 0-.034.334m4.044 1.723q-.362 0-.65-.115a1.4 1.4 0 0 1-.489-.325 1.5 1.5 0 0 1-.304-.481 1.6 1.6 0 0 1-.107-.587v-.115q0-.353.1-.647a1.5 1.5 0 0 1 .288-.509q.19-.216.46-.331a1.5 1.5 0 0 1 .61-.118q.332 0 .587.11.256.11.429.31.175.202.264.484.09.279.09.621v.345h-2.474v-.552h1.66v-.064a.7.7 0 0 0-.064-.307.5.5 0 0 0-.184-.219.57.57 0 0 0-.316-.08.54.54 0 0 0-.282.071.56.56 0 0 0-.193.202 1.1 1.1 0 0 0-.11.305 2 2 0 0 0-.034.379v.115q0 .187.052.346a.9.9 0 0 0 .153.273.7.7 0 0 0 .241.178.8.8 0 0 0 .325.063 1 1 0 0 0 .417-.086.9.9 0 0 0 .337-.267l.403.437a1.2 1.2 0 0 1-.268.27 1.4 1.4 0 0 1-.403.213 1.7 1.7 0 0 1-.538.081m4.045-2.572v3.711h-.829v-4.309h.768zm1.97.923v.061q0 .339-.08.63a1.6 1.6 0 0 1-.23.506 1.1 1.1 0 0 1-.38.334q-.225.118-.518.118-.285 0-.495-.115a1.04 1.04 0 0 1-.354-.323 1.9 1.9 0 0 1-.227-.486 4 4 0 0 1-.132-.592v-.158q.046-.34.132-.622.087-.284.227-.492.144-.209.351-.325.21-.114.492-.115.297 0 .52.113.228.111.38.322.155.21.233.5.08.291.08.644m-.831.061v-.061q0-.198-.035-.365a1 1 0 0 0-.104-.296.51.51 0 0 0-.457-.268.7.7 0 0 0-.29.055.5.5 0 0 0-.193.158.7.7 0 0 0-.112.248q-.037.144-.046.325v.399q.015.213.08.383a.6.6 0 0 0 .204.265.6.6 0 0 0 .363.097.5.5 0 0 0 .276-.071.55.55 0 0 0 .181-.205 1 1 0 0 0 .1-.299q.033-.17.033-.365m1.213.006v-.061q0-.342.098-.63.097-.29.285-.503a1.3 1.3 0 0 1 .46-.331q.273-.12.627-.121.354 0 .63.121.276.118.463.331.19.213.288.503.098.288.098.63v.061q0 .339-.098.63a1.5 1.5 0 0 1-.288.503 1.3 1.3 0 0 1-.46.331 1.6 1.6 0 0 1-.627.118q-.354 0-.63-.118a1.3 1.3 0 0 1-.463-.331 1.5 1.5 0 0 1-.285-.503 2 2 0 0 1-.098-.63m.829-.061v.061q0 .195.034.365.035.17.11.299a.6.6 0 0 0 .2.199.6.6 0 0 0 .303.071.6.6 0 0 0 .296-.071.55.55 0 0 0 .199-.199 1 1 0 0 0 .109-.299 1.7 1.7 0 0 0 .037-.365v-.061a1.6 1.6 0 0 0-.037-.356 1 1 0 0 0-.112-.3.56.56 0 0 0-.199-.207.6.6 0 0 0-.299-.074.6.6 0 0 0-.299.074.6.6 0 0 0-.198.207 1 1 0 0 0-.11.3q-.034.167-.034.356m4.153-1.527v.587h-1.812v-.587zm-1.363-.768h.828v2.942q0 .136.035.208a.2.2 0 0 0 .109.1.6.6 0 0 0 .181.026q.078 0 .138-.006.063-.008.107-.017l.002.61q-.105.035-.23.054a1.6 1.6 0 0 1-.273.021q-.273 0-.477-.09a.66.66 0 0 1-.31-.293 1.1 1.1 0 0 1-.11-.529zm3.267 3.938q-.362 0-.65-.115a1.4 1.4 0 0 1-.489-.325 1.5 1.5 0 0 1-.305-.481 1.6 1.6 0 0 1-.106-.587v-.115q0-.353.1-.647a1.5 1.5 0 0 1 .288-.509q.19-.216.46-.331.27-.118.61-.118.33 0 .587.11t.428.31q.177.202.265.484.09.279.09.621v.345H83.73v-.552h1.66v-.064a.7.7 0 0 0-.064-.307.5.5 0 0 0-.184-.219.57.57 0 0 0-.316-.08.54.54 0 0 0-.282.071.56.56 0 0 0-.193.202 1.1 1.1 0 0 0-.11.305 2 2 0 0 0-.034.379v.115q0 .187.052.346a.9.9 0 0 0 .152.273.7.7 0 0 0 .242.178.8.8 0 0 0 .325.063q.225 0 .417-.086a.9.9 0 0 0 .337-.267l.402.437a1.2 1.2 0 0 1-.267.27 1.4 1.4 0 0 1-.403.213 1.7 1.7 0 0 1-.538.081m2.56-2.506v2.448h-.828v-3.112h.776zm-.12.783h-.225q0-.345.09-.622.088-.279.25-.474.16-.198.382-.302.225-.107.5-.107.22 0 .4.064.182.063.31.201a.9.9 0 0 1 .202.365q.072.228.072.555v1.985h-.834v-1.987a.74.74 0 0 0-.058-.323.33.33 0 0 0-.17-.161.7.7 0 0 0-.27-.049.6.6 0 0 0-.29.067.6.6 0 0 0-.201.184.9.9 0 0 0-.118.27q-.04.156-.04.334m4.135-1.447v.587H89.69v-.587zm-1.363-.768h.828v2.942q0 .136.035.208a.2.2 0 0 0 .11.1.6.6 0 0 0 .18.026q.078 0 .138-.006.064-.008.107-.017l.003.61q-.107.035-.23.054a1.6 1.6 0 0 1-.273.021q-.274 0-.478-.09a.66.66 0 0 1-.31-.293 1.1 1.1 0 0 1-.11-.529zm2.71.768v3.112h-.832v-3.112zm-.883-.811a.4.4 0 0 1 .126-.299.48.48 0 0 1 .34-.118q.21 0 .336.118.13.117.13.299 0 .181-.13.299a.47.47 0 0 1-.337.118.48.48 0 0 1-.339-.118.4.4 0 0 1-.126-.299m3.247 3.221v-1.386q0-.15-.049-.256a.36.36 0 0 0-.153-.17.5.5 0 0 0-.261-.06.54.54 0 0 0-.239.049.34.34 0 0 0-.155.135.37.37 0 0 0-.055.204h-.828q0-.198.092-.377a.9.9 0 0 1 .267-.313q.175-.138.417-.216.245-.078.547-.078.362 0 .644.121a1 1 0 0 1 .443.363q.164.241.164.604v1.331q0 .257.032.42.03.162.092.282v.049h-.837a1.2 1.2 0 0 1-.092-.316 3 3 0 0 1-.03-.386m.11-1.193.005.468h-.463a1 1 0 0 0-.285.038.5.5 0 0 0-.198.106.4.4 0 0 0-.115.156.5.5 0 0 0-.035.195q0 .106.049.193.049.083.14.132a.5.5 0 0 0 .217.046.7.7 0 0 0 .325-.075.6.6 0 0 0 .213-.184.4.4 0 0 0 .08-.207l.219.351q-.046.118-.127.245a1.025 1.025 0 0 1-.489.42 1.1 1.1 0 0 1-.403.069q-.295 0-.538-.118a1 1 0 0 1-.38-.331.87.87 0 0 1-.137-.483q0-.245.092-.435a.85.85 0 0 1 .27-.319 1.3 1.3 0 0 1 .452-.198q.27-.069.627-.069zm2.237-2.523v4.418h-.831v-4.418zm3.834 3.558a.27.27 0 0 0-.052-.161.45.45 0 0 0-.192-.132 2 2 0 0 0-.4-.115 3 3 0 0 1-.44-.13 1.5 1.5 0 0 1-.351-.193.739.739 0 0 1-.313-.618q0-.195.083-.368a.95.95 0 0 1 .244-.305q.162-.135.391-.21.234-.078.524-.078.405 0 .696.13.293.129.449.357.158.224.158.511h-.829a.45.45 0 0 0-.051-.215.35.35 0 0 0-.156-.153.56.56 0 0 0-.27-.057.54.54 0 0 0-.239.049.36.36 0 0 0-.155.126.3.3 0 0 0-.023.302q.032.055.101.101a1 1 0 0 0 .178.086q.112.037.276.069.337.07.601.181.266.11.42.3.155.186.155.491 0 .207-.092.38a.9.9 0 0 1-.264.302 1.4 1.4 0 0 1-.414.199q-.24.069-.538.069-.434 0-.737-.156-.299-.155-.454-.394a.9.9 0 0 1-.153-.494h.786a.46.46 0 0 0 .086.273.47.47 0 0 0 .21.149.8.8 0 0 0 .279.046.7.7 0 0 0 .267-.043.37.37 0 0 0 .161-.121.3.3 0 0 0 .058-.178m2.776.918q-.363 0-.65-.115a1.4 1.4 0 0 1-.489-.325 1.5 1.5 0 0 1-.305-.481 1.6 1.6 0 0 1-.107-.587v-.115q0-.353.101-.647.1-.293.288-.509.19-.216.46-.331.27-.118.61-.118.33 0 .586.11t.429.31q.175.202.265.484.089.279.089.621v.345h-2.474v-.552h1.66v-.064a.7.7 0 0 0-.064-.307.5.5 0 0 0-.184-.219.57.57 0 0 0-.316-.08.54.54 0 0 0-.282.071.56.56 0 0 0-.193.202 1.1 1.1 0 0 0-.109.305 2 2 0 0 0-.034.379v.115q0 .187.051.346a.9.9 0 0 0 .153.273.7.7 0 0 0 .241.178.8.8 0 0 0 .325.063q.225 0 .417-.086a.9.9 0 0 0 .337-.267l.403.437a1.417 1.417 0 0 1-.67.483 1.7 1.7 0 0 1-.538.081m3.034-.648a.6.6 0 0 0 .271-.057.46.46 0 0 0 .255-.423h.78q-.003.328-.175.584-.173.253-.464.4a1.44 1.44 0 0 1-.65.144q-.362 0-.632-.121a1.2 1.2 0 0 1-.446-.334 1.5 1.5 0 0 1-.268-.5 2.1 2.1 0 0 1-.089-.616v-.083q0-.331.089-.616.09-.288.268-.5.178-.216.446-.337.267-.12.627-.121.382 0 .67.147.29.147.454.42.167.27.17.641h-.78a.6.6 0 0 0-.066-.281.497.497 0 0 0-.463-.279.5.5 0 0 0-.296.077.5.5 0 0 0-.178.207 1 1 0 0 0-.089.297 2.4 2.4 0 0 0-.024.345v.083q0 .182.024.348.023.167.086.296a.5.5 0 0 0 .181.205q.115.075.299.074m3.627-.155v-2.367h.829v3.112h-.78zm.092-.638.245-.006q0 .31-.072.578-.072.264-.216.46a1 1 0 0 1-.362.302 1.2 1.2 0 0 1-.515.107q-.228 0-.42-.064a.85.85 0 0 1-.328-.204 1 1 0 0 1-.213-.359 1.7 1.7 0 0 1-.075-.533v-2.01h.829v2.016q0 .138.031.233a.4.4 0 0 0 .095.156q.06.06.141.086a.6.6 0 0 0 .184.026.7.7 0 0 0 .403-.104q.15-.103.21-.282a1.2 1.2 0 0 0 .063-.402m2.198-1.05v2.433h-.829v-3.112h.78zm.937-.699-.014.768a2 2 0 0 0-.147-.015 2 2 0 0 0-.152-.008.9.9 0 0 0-.305.046.6.6 0 0 0-.213.129.56.56 0 0 0-.126.21 1 1 0 0 0-.046.282l-.167-.052q0-.302.06-.555.06-.255.176-.446a.9.9 0 0 1 .287-.293.73.73 0 0 1 .388-.104q.069 0 .141.012a.5.5 0 0 1 .118.026m1.266.02v3.112h-.831v-3.112zm-.883-.811a.4.4 0 0 1 .126-.299.48.48 0 0 1 .34-.118.47.47 0 0 1 .336.118q.13.117.13.299 0 .181-.13.299a.47.47 0 0 1-.336.118.48.48 0 0 1-.34-.118.4.4 0 0 1-.126-.299m3.092.811v.587h-1.812v-.587zm-1.363-.768h.828v2.942q0 .136.034.208a.2.2 0 0 0 .11.1.6.6 0 0 0 .181.026q.078 0 .138-.006.064-.008.106-.017l.003.61a1.629 1.629 0 0 1-.503.075q-.273 0-.478-.09a.66.66 0 0 1-.31-.293q-.11-.201-.109-.529zm2.758 3.529.825-2.761h.889l-1.251 3.581a2 2 0 0 1-.109.253 1 1 0 0 1-.182.256.8.8 0 0 1-.284.201 1 1 0 0 1-.417.078q-.118 0-.193-.014a3 3 0 0 1-.178-.041v-.607h.066l.066.003a.8.8 0 0 0 .267-.037.37.37 0 0 0 .167-.115.6.6 0 0 0 .101-.196zm-.345-2.761.676 2.255.118.877-.564.061-1.119-3.193zm4.685.679v2.433h-.828v-3.112h.779zm.938-.699-.014.768a2 2 0 0 0-.147-.015 2 2 0 0 0-.153-.008.9.9 0 0 0-.304.046.54.54 0 0 0-.213.129.6.6 0 0 0-.127.21 1 1 0 0 0-.046.282l-.167-.052q0-.302.061-.555.06-.255.175-.446a.9.9 0 0 1 .288-.293.73.73 0 0 1 .388-.104q.069 0 .141.012a.5.5 0 0 1 .118.026m1.265.02v3.112h-.831v-3.112zm-.883-.811q0-.182.127-.299a.48.48 0 0 1 .339-.118q.21 0 .337.118a.39.39 0 0 1 .129.299q0 .181-.129.299a.47.47 0 0 1-.337.118.48.48 0 0 1-.339-.118.4.4 0 0 1-.127-.299m3.251 3.063a.27.27 0 0 0-.052-.161.46.46 0 0 0-.193-.132 2 2 0 0 0-.4-.115 3 3 0 0 1-.44-.13 1.5 1.5 0 0 1-.351-.193.8.8 0 0 1-.23-.264.75.75 0 0 1-.083-.354.84.84 0 0 1 .328-.673q.161-.135.391-.21.233-.078.523-.078.406 0 .697.13.293.129.448.357a.86.86 0 0 1 .158.511h-.828a.44.44 0 0 0-.052-.215.34.34 0 0 0-.155-.153.56.56 0 0 0-.27-.057.54.54 0 0 0-.239.049.36.36 0 0 0-.155.126.3.3 0 0 0-.052.173q0 .072.029.129.031.055.1.101a1 1 0 0 0 .179.086q.111.037.276.069.336.07.601.181t.42.3a.74.74 0 0 1 .155.491.8.8 0 0 1-.092.38.9.9 0 0 1-.265.302 1.4 1.4 0 0 1-.414.199 2 2 0 0 1-.538.069q-.434 0-.736-.156a1.16 1.16 0 0 1-.454-.394.9.9 0 0 1-.153-.494h.785a.46.46 0 0 0 .087.273.46.46 0 0 0 .21.149.8.8 0 0 0 .279.046.7.7 0 0 0 .267-.043.37.37 0 0 0 .161-.121.3.3 0 0 0 .058-.178m2.171-3.561v4.421h-.828v-4.421zm1.962 1.309-1.352 1.542-.725.733-.302-.598.575-.731.809-.946zm-.86 3.112-.921-1.438.573-.501 1.303 1.939zm2.899-.86a.27.27 0 0 0-.052-.161.44.44 0 0 0-.192-.132 2 2 0 0 0-.4-.115 3 3 0 0 1-.44-.13 1.5 1.5 0 0 1-.351-.193.735.735 0 0 1-.314-.618.8.8 0 0 1 .084-.368.95.95 0 0 1 .244-.305q.162-.135.391-.21.233-.078.524-.078.405 0 .696.13.293.129.449.357.158.224.158.511h-.828a.45.45 0 0 0-.052-.215.35.35 0 0 0-.156-.153.56.56 0 0 0-.27-.057.54.54 0 0 0-.239.049.36.36 0 0 0-.155.126.31.31 0 0 0-.023.302q.032.055.101.101a1 1 0 0 0 .178.086q.112.037.276.069.337.07.601.181.266.11.42.3a.74.74 0 0 1 .156.491.8.8 0 0 1-.092.38.9.9 0 0 1-.265.302 1.4 1.4 0 0 1-.414.199 2 2 0 0 1-.538.069q-.435 0-.736-.156a1.17 1.17 0 0 1-.455-.394.9.9 0 0 1-.152-.494h.785a.46.46 0 0 0 .086.273.47.47 0 0 0 .21.149.8.8 0 0 0 .279.046.7.7 0 0 0 .268-.043.4.4 0 0 0 .161-.121.3.3 0 0 0 .057-.178m2.756-.42h-.734a2.5 2.5 0 0 1 .041-.446q.039-.189.135-.342.097-.153.259-.302.135-.121.235-.23a1 1 0 0 0 .159-.224.6.6 0 0 0 .057-.262.64.64 0 0 0-.052-.276.35.35 0 0 0-.149-.17.5.5 0 0 0-.248-.058.5.5 0 0 0-.23.055.43.43 0 0 0-.175.161.6.6 0 0 0-.069.288h-.834q.008-.395.181-.65.175-.259.469-.383a1.65 1.65 0 0 1 .658-.126q.403 0 .691.132a.96.96 0 0 1 .44.383q.152.25.152.609a1 1 0 0 1-.098.446q-.097.193-.256.36a8 8 0 0 1-.348.345.8.8 0 0 0-.224.308 1.2 1.2 0 0 0-.06.382m-.82.889q0-.184.127-.305a.47.47 0 0 1 .339-.124.46.46 0 0 1 .336.124q.13.121.13.305a.4.4 0 0 1-.13.302.46.46 0 0 1-.336.124.47.47 0 0 1-.339-.124.4.4 0 0 1-.127-.302"/><g class="tw-fill-secondary-700" clip-path="url(#h)"><path d="M141.027 174.75c0-.291.235-.526.526-.526h1.472a.315.315 0 1 0 0-.631h-1.472c-.639 0-1.157.518-1.157 1.157v3.576c0 .639.518 1.157 1.157 1.157h3.576c.639 0 1.157-.518 1.157-1.157v-1.472a.315.315 0 1 0-.631 0v1.472a.525.525 0 0 1-.526.526h-3.576a.525.525 0 0 1-.526-.526z"/><path d="M144.498 173.593a.316.316 0 1 0 0 .631h.711l-1.776 1.775a.317.317 0 0 0 .447.447l1.775-1.776v.711a.316.316 0 0 0 .631 0v-1.473a.315.315 0 0 0-.315-.315z"/></g></g><path class="tw-stroke-secondary-100" stroke-width=".421" d="M30.939 63.596h124.123c5.461 0 9.888 4.428 9.888 9.889v106.031c0 5.461-4.427 9.887-9.888 9.887H30.939c-5.461 0-9.89-4.426-9.89-9.887V73.485c0-5.461 4.429-9.89 9.89-9.89Z"/></g></g><defs><clipPath id="b"><path class="tw-fill-background" d="M155.801 8.317h11.438v11.438h-11.438z"/></clipPath><clipPath id="c"><rect width="154" height="205" x="16" y="24" class="tw-fill-background" rx="4.918"/></clipPath><clipPath id="d"><path class="tw-fill-background" d="M21.874 57.75h143.253v14.345H21.874z"/></clipPath><clipPath id="e"><rect width="154" height="205" x="16" y="24" class="tw-fill-background" rx="4.918"/></clipPath><clipPath id="g"><path class="tw-fill-background" d="M20.84 73.484c0-5.577 4.521-10.098 10.098-10.098h124.125c5.577 0 10.098 4.521 10.098 10.098v106.032c0 5.577-4.521 10.098-10.098 10.098H30.938c-5.577 0-10.098-4.521-10.098-10.098z"/></clipPath><clipPath id="h"><path class="tw-fill-background" d="M139.976 173.172h6.732v6.732h-6.732z"/></clipPath><filter id="a" width="184.857" height="228.234" x="6.26" y="1.883" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset/><feGaussianBlur stdDeviation=".558"/><feColorMatrix values="0 0 0 0 0.4 0 0 0 0 0.4 0 0 0 0 0.5 0 0 0 0.35 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_6463_20789"/><feBlend in="SourceGraphic" in2="effect1_dropShadow_6463_20789" result="shape"/></filter><filter id="f" width="161.152" height="143.059" x="12.425" y="63.386" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feMorphology in="SourceAlpha" radius="2.104" result="effect1_dropShadow_6463_20789"/><feOffset dy="8.415"/><feGaussianBlur stdDeviation="5.26"/><feComposite in2="hardAlpha" operator="out"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_6463_20789"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feMorphology in="SourceAlpha" radius="2.525" result="effect2_dropShadow_6463_20789"/><feOffset dy="3.366"/><feGaussianBlur stdDeviation="2.104"/><feComposite in2="hardAlpha" operator="out"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/><feBlend in2="effect1_dropShadow_6463_20789" result="effect2_dropShadow_6463_20789"/><feBlend in="SourceGraphic" in2="effect2_dropShadow_6463_20789" result="shape"/></filter></defs></svg>
|
|
`;var ji=i(52892),Yi=i(7730),Xi=i(8168),zi=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Li=["step0Title"],Wi=["step0Content"],Ki=["step0Footer"],Zi=["step1Title"],Hi=["step1Content"],Ji=["step1Footer"];function qi(e,t){1&e&&(I.j41(0,"span",7),I.EFF(1),I.nI1(2,"i18n"),I.k0s()),2&e&&(I.R7$(),I.SpI(" ",I.bMT(2,1,"availableNow")))}function $i(e,t){if(1&e&&(I.j41(0,"span",8),I.EFF(1),I.nI1(2,"i18n"),I.k0s()),2&e){const e=I.XpG(2);I.R7$(),I.SpI(" ",I.bMT(2,1,e.policy().name)," ")}}function _i(e,t){var i;if(1&e&&(I.j41(0,"div",6),I.nVh(1,qi,3,3,"span",7),I.j41(2,"span"),I.EFF(3),I.nI1(4,"i18n"),I.nVh(5,$i,3,3,"span",8),I.k0s()()),2&e){const e=I.XpG(),t=null!==(i=null==e.autoConfirmPolicy?null:e.autoConfirmPolicy.firstTimeDialog)&&void 0!==i&&i;I.R7$(),I.vxM(t?1:-1),I.R7$(2),I.SpI(" ",I.bMT(4,3,t?"autoConfirm":"editPolicy")," "),I.R7$(2),I.vxM(t?-1:5)}}function en(e,t){1&e&&(I.j41(0,"span",11),I.EFF(1),I.nI1(2,"i18n"),I.k0s()),2&e&&(I.R7$(),I.SpI(" ",I.bMT(2,1,"autoConfirmSingleOrgExemption")," "))}function tn(e,t){1&e&&(I.j41(0,"span",11),I.EFF(1),I.nI1(2,"i18n"),I.k0s()),2&e&&(I.R7$(),I.SpI(" ",I.bMT(2,1,"autoConfirmSingleOrgRequired")," "))}function nn(e,t){if(1&e&&(I.j41(0,"p",9),I.EFF(1),I.nI1(2,"i18n"),I.k0s(),I.j41(3,"ul",10)(4,"li")(5,"span",11),I.EFF(6),I.nI1(7,"i18n"),I.k0s(),I.EFF(8),I.nI1(9,"i18n"),I.j41(10,"a",12),I.EFF(11),I.nI1(12,"i18n"),I.k0s()(),I.j41(13,"li"),I.nVh(14,en,3,3,"span",11),I.nI1(15,"async"),I.vZN(16,tn,3,3,"span",11),I.EFF(17),I.nI1(18,"i18n"),I.k0s(),I.j41(19,"li")(20,"span",11),I.EFF(21),I.nI1(22,"i18n"),I.k0s(),I.EFF(23),I.nI1(24,"i18n"),I.k0s()(),I.j41(25,"bit-form-control"),I.nrm(26,"input",13),I.j41(27,"bit-label"),I.EFF(28),I.nI1(29,"i18n"),I.k0s()()),2&e){const e=I.XpG();I.R7$(),I.SpI(" ",I.bMT(2,10,"autoConfirmPolicyEditDescription")," "),I.R7$(5),I.SpI(" ",I.bMT(7,12,"autoConfirmAcceptSecurityRiskTitle")," "),I.R7$(2),I.SpI(" ",I.bMT(9,14,"autoConfirmAcceptSecurityRiskDescription")," "),I.R7$(3),I.SpI(" ",I.bMT(12,16,"autoConfirmAcceptSecurityRiskLearnMore")," "),I.R7$(3),I.vxM(I.bMT(15,18,e.singleOrgEnabled$)?14:16),I.R7$(3),I.SpI(" ",I.bMT(18,20,"autoConfirmSingleOrgRequiredDesc")," "),I.R7$(4),I.SpI(" ",I.bMT(22,22,"autoConfirmNoEmergencyAccess")," "),I.R7$(2),I.SpI(" ",I.bMT(24,24,"autoConfirmNoEmergencyAccessDescription")," "),I.R7$(3),I.Y8G("formControl",e.enabled),I.R7$(2),I.JRh(I.bMT(29,26,"autoConfirmCheckBoxLabel"))}}function rn(e,t){1&e&&(I.EFF(0),I.nI1(1,"i18n")),2&e&&I.SpI(" ",I.bMT(1,1,"save")," ")}function sn(e,t){1&e&&(I.EFF(0),I.nI1(1,"i18n")),2&e&&I.SpI(" ",I.bMT(1,1,"continue")," ")}function on(e,t){if(1&e&&(I.j41(0,"button",14),I.nI1(1,"async"),I.SS7(2),I.nI1(3,"async"),I.SS7(4),I.nI1(5,"async"),I.nVh(6,rn,2,3)(7,sn,2,3),I.k0s(),I.j41(8,"button",15),I.EFF(9),I.nI1(10,"i18n"),I.k0s()),2&e){const e=I.XpG();I.Y8G("disabled",I.bMT(1,3,e.saveDisabled$));const t=I.bMT(3,5,e.autoConfirmEnabled$),i=I.bMT(5,7,e.managePoliciesOnly$);I.R7$(6),I.vxM(t||i?6:7),I.R7$(3),I.SpI(" ",I.bMT(10,9,"cancel")," ")}}function an(e,t){1&e&&(I.EFF(0),I.nI1(1,"i18n")),2&e&&I.SpI(" ",I.bMT(1,1,"howToTurnOnAutoConfirm"),"\n")}function ln(e,t){if(1&e&&(I.j41(0,"div",16),I.nrm(1,"bit-svg",17),I.k0s(),I.j41(2,"ol")(3,"li"),I.EFF(4),I.nI1(5,"i18n"),I.k0s(),I.j41(6,"li"),I.EFF(7),I.nI1(8,"i18n"),I.j41(9,"strong"),I.EFF(10),I.nI1(11,"i18n"),I.k0s()()()),2&e){const e=I.XpG();I.R7$(),I.Y8G("content",e.autoConfirmSvg),I.R7$(3),I.SpI("1. ",I.bMT(5,4,"autoConfirmExtension1")),I.R7$(3),I.SpI(" 2. ",I.bMT(8,6,"autoConfirmExtension2")," "),I.R7$(3),I.SpI(" ",I.bMT(11,8,"autoConfirmExtension3")," ")}}function cn(e,t){if(1&e&&(I.j41(0,"button",14),I.nI1(1,"async"),I.EFF(2),I.nI1(3,"i18n"),I.nrm(4,"i",18),I.k0s(),I.j41(5,"button",15),I.EFF(6),I.nI1(7,"i18n"),I.k0s()),2&e){const e=I.XpG();I.Y8G("disabled",I.bMT(1,3,e.saveDisabled$)),I.R7$(2),I.SpI(" ",I.bMT(3,5,"openExtension")," "),I.R7$(4),I.SpI(" ",I.bMT(7,7,"close")," ")}}class dn extends Xe{constructor(e=!1){super(),this.firstTimeDialog=e,this.name="automaticUserConfirmation",this.description="autoConfirmDescription",this.type=S.tt.AutomaticUserConfirmation,this.category=ge,this.priority=90,this.component=un,this.showDescription=!1,this.editDialogComponent=Yt}display$(e){return(0,s.of)(e.useAutomaticUserConfirmation)}}class un extends ze{constructor(e,t,i){super(),this.policyService=e,this.autoConfirmService=t,this.router=i,this.autoConfirmSvg=Ni,this.step0Title=C.ebz.required("step0Title"),this.step0Content=C.ebz.required("step0Content"),this.step0Footer=C.ebz.required("step0Footer"),this.step1Title=C.ebz.required("step1Title"),this.step1Content=C.ebz.required("step1Content"),this.step1Footer=C.ebz.required("step1Footer"),this.autoConfirmEnabled$=this.accountService.activeAccount$.pipe(A.F6,(0,l.n)(e=>this.policyService.policies$(e)),(0,a.T)(e=>{var t,i;return null!==(i=null===(t=e.find(e=>e.type===S.tt.AutomaticUserConfirmation))||void 0===t?void 0:t.enabled)&&void 0!==i&&i})),this.singleOrgEnabled$=this.accountService.activeAccount$.pipe(A.F6,(0,l.n)(e=>this.policyService.policies$(e)),(0,a.T)(e=>{var t,i;return null!==(i=null===(t=e.find(e=>e.type===S.tt.SingleOrg))||void 0===t?void 0:t.enabled)&&void 0!==i&&i})),this.managePoliciesOnly$=this.organization$.pipe((0,a.T)(e=>{var t;return null!==(t=!(null==e?void 0:e.isAdmin)&&(null==e?void 0:e.canManagePolicies))&&void 0!==t&&t})),this.saveDisabled$=(0,o.z)([this.autoConfirmEnabled$,this.enabled.valueChanges.pipe((0,B.Z)(this.enabled.value))]).pipe((0,a.T)(([e,t])=>!e&&!t)),this.policySteps=[{titleContent:this.step0Title,bodyContent:this.step0Content,footerContent:this.step0Footer,disableSave:this.saveDisabled$,sideEffect:()=>this.savePolicy()},{titleContent:this.step1Title,bodyContent:this.step1Content,footerContent:this.step1Footer,sideEffect:()=>this.navigateToExtensionPromptStep()}]}get autoConfirmPolicy(){return this.policy()}savePolicy(){return zi(this,void 0,void 0,function*(){var e,t,i,n,r,s;const o=yield(0,E._)(this.accountService.activeAccount$.pipe(A.F6)),a=yield(0,E._)(this.organization$),l=null!==(e=!(null==a?void 0:a.isAdmin)&&(null==a?void 0:a.canManagePolicies))&&void 0!==e&&e,c=!(null!==(i=null===(t=(yield(0,E._)(this.policyService.policies$(o))).find(e=>e.type===S.tt.SingleOrg))||void 0===t?void 0:t.enabled)&&void 0!==i&&i);c&&(yield this.policyApiService.putPolicy(null!==(n=this.organizationId())&&void 0!==n?n:"",S.tt.SingleOrg,{policy:{enabled:!0,data:null},metadata:null}));try{const e=yield this.buildRequest();yield this.policyApiService.putPolicy(null!==(r=this.organizationId())&&void 0!==r?r:"",S.tt.AutomaticUserConfirmation,e)}catch(u){throw c&&(yield this.policyApiService.putPolicy(null!==(s=this.organizationId())&&void 0!==s?s:"",S.tt.SingleOrg,{policy:{enabled:!1,data:null},metadata:null})),u}const d=yield(0,E._)(this.autoConfirmService.configuration$(o));if(yield this.autoConfirmService.upsert(o,Object.assign(Object.assign({},d),{showSetupDialog:!1})),!this.enabled.value||l)return{closeDialog:!0}})}navigateToExtensionPromptStep(){return zi(this,void 0,void 0,function*(){yield this.router.navigate(["/browser-extension-prompt"],{queryParams:{url:"AutoConfirm"}})})}}un.ɵfac=function(e){return new(e||un)(I.rXU(be.m),I.rXU(ji.zh),I.rXU(ye.Ix))},un.ɵcmp=I.VBU({type:un,selectors:[["auto-confirm-policy-edit"]],viewQuery:function(e,t){1&e&&I.wEZ(t.step0Title,Li,5)(t.step0Content,Wi,5)(t.step0Footer,Ki,5)(t.step1Title,Zi,5)(t.step1Content,Hi,5)(t.step1Footer,Ji,5),2&e&&I.NyB(6)},features:[I.Vt3],decls:12,vars:0,consts:[["step0Title",""],["step0Content",""],["step0Footer",""],["step1Title",""],["step1Content",""],["step1Footer",""],[1,"tw-flex","tw-flex-col"],["bitBadge","","variant","info",1,"tw-w-[99px]","tw-my-2"],[1,"tw-text-muted","tw-font-normal","tw-text-sm"],[1,"tw-mb-6"],[1,"tw-mb-6","tw-pl-6"],[1,"tw-font-medium"],["bitLink","","href","https://bitwarden.com/help/automatic-confirmation/","target","_blank","endIcon","bwi-external-link"],["type","checkbox","bitCheckbox","","id","enabled",3,"formControl"],["bitButton","","buttonType","primary","bitFormButton","","type","submit",3,"disabled"],["bitButton","","buttonType","secondary","type","button","bitDialogClose",""],[1,"tw-flex","tw-justify-center","tw-mb-6"],[1,"tw-w-[233px]",3,"content"],["aria-hidden","true",1,"bwi","bwi-external-link","tw-ml-1"]],template:function(e,t){1&e&&I.DNE(0,_i,6,5,"ng-template",null,0,I.C5r)(2,nn,30,28,"ng-template",null,1,I.C5r)(4,on,11,11,"ng-template",null,2,I.C5r)(6,an,2,3,"ng-template",null,3,I.C5r)(8,ln,12,10,"ng-template",null,4,I.C5r)(10,cn,8,9,"ng-template",null,5,I.C5r)},dependencies:[b.G,V.Zm,V.BC,V.l_,j.$,X.n,z.Q,Le.P,Yi.I,We.f,Ke.j,Xi.k,Z.g,Qe.Jj,J.$],encapsulation:2,changeDetection:0});var hn=i(5513);function An(e,t){1&e&&(I.j41(0,"bit-callout",0),I.nI1(1,"i18n"),I.EFF(2),I.nI1(3,"i18n"),I.k0s()),2&e&&(I.Y8G("title",I.bMT(1,2,"prerequisite")),I.R7$(2),I.JRh(I.bMT(3,4,"singleOrgPrerequisite")))}function pn(e,t){return i=>i.value&&i.value.length>t?{maxLength:{message:e}}:null}class gn extends ze{buildRequestData(){if(!this.enabled.value)return null;const{header:e,description:t,buttonText:i,showAfterEveryLogin:n}=this.data.value;return{header:(null==e?void 0:e.trim())||null,description:(null==t?void 0:t.trim())||null,buttonText:(null==i?void 0:i.trim())||null,showAfterEveryLogin:n}}constructor(){var e;super(),this.formBuilder=(0,n.WQX)(V.ok),this.policyService=(0,n.WQX)(be.m),this.i18nService=(0,n.WQX)(x.W),this.singleOrgEnabled$=this.accountService.activeAccount$.pipe(A.F6,(0,l.n)(e=>this.policyService.policies$(e)),(0,a.T)(e=>{var t,i;return null!==(i=null===(t=e.find(e=>e.type===S.tt.SingleOrg))||void 0===t?void 0:t.enabled)&&void 0!==i&&i})),this.singleOrgEnabled=(0,r.ot)(this.singleOrgEnabled$,{initialValue:!1}),this.data=this.formBuilder.group({header:[null,pn(this.i18nService.t("tooManyCharacters",this.i18nService.t("header").toLocaleLowerCase(),40),40)],description:[null,[(e=this.i18nService.t("enterADescription"),t=>{var i;return(null===(i=t.value)||void 0===i?void 0:i.trim())?null:{requiredCustom:{message:e}}}),pn(this.i18nService.t("tooManyCharacters",this.i18nService.t("description").toLocaleLowerCase(),250),250)]],buttonText:[null,[pn(this.i18nService.t("tooManyCharactersAlt",this.i18nService.t("button").toLocaleLowerCase(),20),20)]],showAfterEveryLogin:[null]});const{header:t,description:i,buttonText:s,showAfterEveryLogin:o}=this.data.controls,c=[t,i,o];this.singleOrgEnabled()?(this.enabled.enable(),this.enabled.value&&c.forEach(e=>e.enable())):(this.enabled.disable(),c.forEach(e=>e.disable()),s.disable()),this.enabled.valueChanges.pipe((0,B.Z)(this.enabled.value),(0,r.pQ)()).subscribe(e=>{e?c.forEach(e=>e.enable()):(c.forEach(e=>e.disable()),s.disable())}),t.valueChanges.pipe((0,B.Z)(t.value),(0,r.pQ)()).subscribe(e=>{this.enabled.value&&(null==e?void 0:e.trim())?s.enable():s.disable()})}}gn.ɵfac=function(e){return new(e||gn)},gn.ɵcmp=I.VBU({type:gn,selectors:[["ng-component"]],features:[I.Vt3],decls:44,vars:39,consts:[["type","info",3,"title"],["type","checkbox","bitCheckbox","","id","enabled",3,"formControl"],[3,"formGroup"],["bitTypography","h3",1,"tw-mt-4"],["type","text","bitInput","","formControlName","header"],["bitInput","","required","","formControlName","description","rows","3"],["name","bwi-question-circle",3,"bitTooltip"],["type","text","bitInput","","formControlName","buttonText"],["type","checkbox","bitCheckbox","","formControlName","showAfterEveryLogin","id","showAfterEveryLogin"]],template:function(e,t){1&e&&(I.nVh(0,An,4,6,"bit-callout",0),I.j41(1,"bit-form-control"),I.nrm(2,"input",1),I.j41(3,"bit-label"),I.EFF(4),I.nI1(5,"i18n"),I.k0s()(),I.qex(6,2),I.j41(7,"h3",3),I.EFF(8),I.nI1(9,"i18n"),I.k0s(),I.j41(10,"bit-form-field")(11,"bit-label"),I.EFF(12),I.nI1(13,"i18n"),I.k0s(),I.nrm(14,"input",4),I.j41(15,"bit-hint"),I.EFF(16),I.nI1(17,"i18n"),I.k0s()(),I.j41(18,"bit-form-field")(19,"bit-label"),I.EFF(20),I.nI1(21,"i18n"),I.k0s(),I.nrm(22,"textarea",5),I.j41(23,"bit-hint"),I.EFF(24),I.nI1(25,"i18n"),I.k0s()(),I.j41(26,"bit-form-field")(27,"bit-label"),I.EFF(28),I.nI1(29,"i18n"),I.nrm(30,"bit-icon",6),I.nI1(31,"i18n"),I.k0s(),I.nrm(32,"input",7),I.j41(33,"bit-hint"),I.EFF(34),I.nI1(35,"i18n"),I.k0s()(),I.j41(36,"bit-form-control"),I.nrm(37,"input",8),I.j41(38,"bit-label"),I.EFF(39),I.nI1(40,"i18n"),I.k0s(),I.j41(41,"bit-hint"),I.EFF(42),I.nI1(43,"i18n"),I.k0s()(),I.bVm()),2&e&&(I.vxM(t.singleOrgEnabled()?-1:0),I.R7$(2),I.Y8G("formControl",t.enabled),I.R7$(2),I.JRh(I.bMT(5,14,"enableBanner")),I.R7$(2),I.Y8G("formGroup",t.data),I.R7$(2),I.JRh(I.bMT(9,16,"createBannerMessage")),I.R7$(4),I.JRh(I.bMT(13,18,"header")),I.R7$(4),I.JRh(I.i5U(17,20,"maximumOfXCharacters",40)),I.R7$(4),I.JRh(I.bMT(21,23,"description")),I.R7$(4),I.JRh(I.i5U(25,25,"maximumOfXCharacters",250)),I.R7$(4),I.SpI("",I.bMT(29,28,"button")," "),I.R7$(2),I.Y8G("bitTooltip",I.bMT(31,30,"organizationUserNotificationPolicyButtonTooltip")),I.R7$(4),I.JRh(I.i5U(35,32,"maximumOfXCharacters",20)),I.R7$(5),I.JRh(I.bMT(40,35,"showAfterEveryLogin")),I.R7$(3),I.JRh(I.bMT(43,37,"seeMessageEveryLogin")))},dependencies:[gt.h,et.q,Le.P,tt.L,We.f,Ke.j,ht.I,At.J,V.X1,V.me,V.Zm,V.BC,V.cb,V.YS,V.l_,V.j4,V.JD,Xt.E,H.r,ot.R,hn.d,L.G,f.$Z],encapsulation:2,changeDetection:0});class vn extends gn{}vn.ɵfac=(()=>{let e;return function(t){return(e||(e=I.xGo(vn)))(t||vn)}})(),vn.ɵcmp=I.VBU({type:vn,selectors:[["ng-component"]],features:[I.Vt3],decls:43,vars:38,consts:[["id","enabled",3,"formControl"],[3,"formGroup"],["bitTypography","h3",1,"tw-mt-4"],["type","text","bitInput","","formControlName","header"],["bitInput","","required","","formControlName","description","rows","3"],["name","bwi-question-circle",3,"bitTooltip"],["type","text","bitInput","","formControlName","buttonText"],["type","checkbox","bitCheckbox","","formControlName","showAfterEveryLogin","id","showAfterEveryLogin"]],template:function(e,t){1&e&&(I.j41(0,"bit-form-control"),I.nrm(1,"bit-switch",0),I.j41(2,"bit-label"),I.EFF(3),I.nI1(4,"i18n"),I.k0s()(),I.qex(5,1),I.j41(6,"h3",2),I.EFF(7),I.nI1(8,"i18n"),I.k0s(),I.j41(9,"bit-form-field")(10,"bit-label"),I.EFF(11),I.nI1(12,"i18n"),I.k0s(),I.nrm(13,"input",3),I.j41(14,"bit-hint"),I.EFF(15),I.nI1(16,"i18n"),I.k0s()(),I.j41(17,"bit-form-field")(18,"bit-label"),I.EFF(19),I.nI1(20,"i18n"),I.k0s(),I.nrm(21,"textarea",4),I.j41(22,"bit-hint"),I.EFF(23),I.nI1(24,"i18n"),I.k0s()(),I.j41(25,"bit-form-field")(26,"bit-label"),I.EFF(27),I.nI1(28,"i18n"),I.nrm(29,"bit-icon",5),I.nI1(30,"i18n"),I.k0s(),I.nrm(31,"input",6),I.j41(32,"bit-hint"),I.EFF(33),I.nI1(34,"i18n"),I.k0s()(),I.j41(35,"bit-form-control"),I.nrm(36,"input",7),I.j41(37,"bit-label"),I.EFF(38),I.nI1(39,"i18n"),I.k0s(),I.j41(40,"bit-hint"),I.EFF(41),I.nI1(42,"i18n"),I.k0s()(),I.bVm()),2&e&&(I.R7$(),I.Y8G("formControl",t.enabled),I.R7$(2),I.JRh(I.bMT(4,13,"enableBanner")),I.R7$(2),I.Y8G("formGroup",t.data),I.R7$(2),I.JRh(I.bMT(8,15,"createBannerMessage")),I.R7$(4),I.JRh(I.bMT(12,17,"header")),I.R7$(4),I.JRh(I.i5U(16,19,"maximumOfXCharacters",40)),I.R7$(4),I.JRh(I.bMT(20,22,"description")),I.R7$(4),I.JRh(I.i5U(24,24,"maximumOfXCharacters",250)),I.R7$(4),I.SpI("",I.bMT(28,27,"button")," "),I.R7$(2),I.Y8G("bitTooltip",I.bMT(30,29,"organizationUserNotificationPolicyButtonTooltip")),I.R7$(4),I.JRh(I.i5U(34,31,"maximumOfXCharacters",20)),I.R7$(5),I.JRh(I.bMT(39,34,"showAfterEveryLogin")),I.R7$(3),I.JRh(I.bMT(42,36,"seeMessageEveryLogin")))},dependencies:[gt.h,et.q,Le.P,tt.L,We.f,Ke.j,ht.I,At.J,V.X1,V.me,V.Zm,V.BC,V.cb,V.YS,V.l_,V.j4,V.JD,Xt.E,H.r,ot.R,hn.d,ct,f.$Z],encapsulation:2,changeDetection:0});const mn=[new class extends Xe{constructor(){super(...arguments),this.name="twoStepLoginPolicyTitle",this.description="twoStepLoginPolicyDesc",this.type=S.tt.TwoFactorAuthentication,this.category=pe,this.priority=40,this.component=xi,this.warningKey="twoStepLoginPolicyWarningV2",this.v2={component:St,description:"twoStepLoginPolicyDescV2"}}},new class extends Xe{constructor(){super(...arguments),this.name="masterPassPolicyTitle",this.description="masterPassPolicyDesc",this.type=S.tt.MasterPassword,this.category=pe,this.priority=10,this.component=qt,this.editDialogComponent=Yt,this.v2={component:Kt,showDescription:!1}}},new class extends Xe{constructor(){super(...arguments),this.name="removeUnlockWithPinPolicyTitle",this.description="removeUnlockWithPinPolicyDesc",this.type=S.tt.RemoveUnlockWithPin,this.category=pe,this.priority=80,this.component=Bi,this.v2={component:St,description:"removeUnlockWithPinPolicyDescV2"}}},new class extends Xe{constructor(){super(...arguments),this.name="accountRecoveryPolicy",this.description="accountRecoveryPolicyDescV2",this.type=S.tt.ResetPassword,this.category=pe,this.priority=20,this.component=Fi,this.v2={component:Qi,showDescription:!1}}display$(e,t){return(0,s.of)(e.useResetPassword)}},new class extends Xe{constructor(){super(...arguments),this.name="passwordGenerator",this.description="passwordGeneratorPolicyDesc",this.type=S.tt.PasswordGenerator,this.category=ge,this.priority=10,this.component=bi,this.v2={component:gi,description:"passwordGeneratorPolicyDescV2",showDescription:!1}}},new class extends Xe{constructor(){super(...arguments),this.name="singleOrg",this.description="singleOrgPolicyDesc",this.type=S.tt.SingleOrg,this.category=Ae,this.priority=10,this.component=Mi,this.v2={component:St,description:"singleOrgPolicyDescV2"}}},new class extends Xe{constructor(){super(...arguments),this.name="requireSso",this.description="requireSsoPolicyDesc",this.type=S.tt.RequireSso,this.category=pe,this.priority=30,this.component=Ei,this.v2={component:St,name:"requireSsoPolicyTitle",description:"requireSsoPolicyDescV2",prerequisiteKey:"requireSsoPolicyReqV2"}}display$(e,t){return(0,s.of)(e.useSso)}},new class extends Xe{constructor(){super(...arguments),this.name="centralizeDataOwnership",this.description="centralizeDataOwnershipDesc",this.type=S.tt.OrganizationDataOwnership,this.category=Ae,this.priority=20,this.component=si,this.showDescription=!1,this.editDialogComponent=Yt,this.v2={component:ti,showDescription:!1}}},new class extends Xe{constructor(){super(...arguments),this.name="disableSend",this.description="disableSendPolicyDesc",this.type=S.tt.DisableSend,this.category=Ae,this.priority=40,this.component=Ze}display$(e,t){return t.getFeatureFlag$(p.TO.SendControls).pipe((0,a.T)(e=>!e))}},new class extends Xe{constructor(){super(...arguments),this.name="sendOptions",this.description="sendOptionsPolicyDesc",this.type=S.tt.SendOptions,this.category=Ae,this.priority=30,this.component=Di}display$(e,t){return t.getFeatureFlag$(p.TO.SendControls).pipe((0,a.T)(e=>!e))}},new class extends Xe{constructor(){super(...arguments),this.name="manageSend",this.description="sendControlsPolicyDescV4",this.type=S.tt.SendControls,this.category=Ae,this.priority=30,this.component=Bt}display$(e,t){return t.getFeatureFlag$(p.TO.SendControls)}enabled(e){return null==e||null==e.data||!e.data.disableSend}},new class extends Xe{constructor(){super(...arguments),this.name="restrictedItemTypePolicy",this.description="restrictedItemTypePolicyDesc",this.type=S.tt.RestrictedItemTypes,this.category=ge,this.priority=50,this.component=Ti,this.v2={component:St,description:"restrictedItemTypePolicyDescV2"}}},new class extends Xe{constructor(){super(...arguments),this.name="desktopAutotypePolicy",this.description="desktopAutotypePolicyDesc",this.type=S.tt.AutotypeDefaultSetting,this.category=ge,this.priority=70,this.component=Qt,this.v2={component:St,name:"desktopAutotypePolicyTitleV2",description:"desktopAutotypePolicyDescV2"}}display$(e,t){return t.getFeatureFlag$(p.TO.WindowsDesktopAutotype)}},new class extends Xe{constructor(){super(...arguments),this.name="uriMatchDetectionPolicy",this.description="uriMatchDetectionPolicyDesc",this.type=S.tt.UriMatchDefaults,this.category=ge,this.priority=20,this.component=Oi}},new dn,new class extends Xe{constructor(){super(...arguments),this.name="organizationUserNotificationPolicyTitle",this.description="organizationUserNotificationPolicyDesc",this.type=S.tt.OrganizationUserNotification,this.component=gn,this.category=ge,this.priority=70,this.v2={component:vn,prerequisiteKey:"singleOrgPrerequisite"}}display$(e,t){return t.getFeatureFlag$(p.TO.PM31948_OrgUserNotificationBanner)}}]},71901(e,t,i){"use strict";i.d(t,{ay:()=>n,f$:()=>z});var n,r=i(84210),s=i(87806),o=i(68108),a=i(72135),l=i(29236),c=i(67553),d=i(3633),u=i(78781),h=i(81356),A=i(88744),p=i(50866),g=i(57768),v=i(14041),m=i(44075),f=i(69855),y=i(50700),b=i(37115),C=i(62166),I=i(5556),w=i(35500),B=i(11224),E=i(46758),S=i(26657),Q=i(38620),k=i(56898),R=i(44432),F=i(7730),T=i(45635),D=i(67311),P=i(7855),M=i(25740),x=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function V(e,t){1&e&&(v.qex(0),v.EFF(1),v.nI1(2,"i18n"),v.bVm()),2&e&&(v.R7$(),v.SpI(" ",v.bMT(2,1,"orgCreatedSponsorshipInvalid")," "))}function G(e,t){if(1&e&&(v.j41(0,"li"),v.EFF(1),v.nI1(2,"i18n"),v.k0s()),2&e){const e=t.$implicit;v.R7$(),v.Lme(" ",e.count," ",v.bMT(2,2,e.localizationKey)," ")}}function U(e,t){if(1&e&&(v.qex(0),v.EFF(1),v.nI1(2,"i18n"),v.j41(3,"ul"),v.DNE(4,G,3,4,"li",12),v.k0s(),v.EFF(5),v.nI1(6,"i18n"),v.bVm()),2&e){const e=v.XpG(2);v.R7$(),v.SpI(" ",v.i5U(2,3,"deletingOrganizationContentWarning",null==e.organization?null:e.organization.name)," "),v.R7$(3),v.Y8G("ngForOf",e.organizationContentSummary.itemCountByType),v.R7$(),v.SpI(" ",v.bMT(6,6,"deletingOrganizationActiveUserAccountsWarning")," ")}}function O(e,t){if(1&e&&v.DNE(0,U,7,8,"ng-container",11),2&e){const e=v.XpG();v.Y8G("ngIf",e.organizationContentSummary.totalItemCount>0)}}class N{getKey(e){return 1==e?this.singular:this.plural}constructor(e,t){this.singular=e,this.plural=t}}class j{get localizationKey(){return this.localizationKeyOptions.getKey(this.count)}constructor(e,t){this.count=e,this.localizationKeyOptions=t}}class Y{constructor(){this.totalItemCount=0,this.itemCountByType=[]}}!function(e){e.Deleted="deleted",e.Canceled="canceled"}(n||(n={}));class X{constructor(e,t,i,o,a,l,c,d,u,h,A){this.params=e,this.dialogRef=t,this.i18nService=i,this.platformUtilsService=o,this.userVerificationService=a,this.cipherService=l,this.organizationService=c,this.accountService=d,this.organizationApiService=u,this.formBuilder=h,this.toastService=A,this.destroy$=new s.B,this.deleteOrganizationRequestType="RegularDelete",this.organizationContentSummary=new Y,this.formGroup=this.formBuilder.group({secret:new r.MJ(null,[r.k0.required])}),this.submit=()=>x(this,void 0,void 0,function*(){yield this.userVerificationService.buildRequest(this.formGroup.value.secret).then(e=>this.organizationApiService.delete(this.organization.id,e)),this.toastService.showToast({variant:"success",title:this.i18nService.t("organizationDeleted"),message:this.i18nService.t("organizationDeletedDesc")}),yield this.dialogRef.close(n.Deleted)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngOnInit(){return x(this,void 0,void 0,function*(){this.deleteOrganizationRequestType=this.params.requestType;const e=yield(0,o._)((0,d.F6)(this.accountService.activeAccount$));(0,a.z)([this.organizationService.organizations$(e).pipe((0,c.Sw)(this.params.organizationId)),this.cipherService.getAllFromApiForOrganization(this.params.organizationId)]).pipe((0,l.Q)(this.destroy$)).subscribe(([e,t])=>{this.organization=e,this.organizationContentSummary=this.buildOrganizationContentSummary(t),this.loaded=!0})})}buildOrganizationContentSummary(e){const t=new Y,i=e.filter(e=>null==e.deletedDate);if(i.length<1)return t;t.totalItemCount=i.length;for(const n of u.A.iterateEnum(h.gC)){const e=this.getOrganizationItemCountByType(i,n);e>0&&t.itemCountByType.push(new j(e,this.getOrganizationItemLocalizationKeysByType((0,h.g7)(n))))}return t}getOrganizationItemCountByType(e,t){return e.filter(e=>e.type==t).length}getOrganizationItemLocalizationKeysByType(e){return new N(`type${e}`,`type${e}Plural`)}}function z(e,t){return e.open(X,t)}X.ɵfac=function(e){return new(e||X)(v.rXU(A.Qs),v.rXU(m.ce),v.rXU(y.W),v.rXU(b.y),v.rXU(C.i),v.rXU(I.p),v.rXU(c.PV),v.rXU(w.D),v.rXU(B.X),v.rXU(r.ok),v.rXU(f.f))},X.ɵcmp=v.VBU({type:X,selectors:[["app-delete-organization"]],decls:20,vars:19,consts:[["regularDelete",""],["bit-dialog","",3,"formGroup","bitSubmit","loading"],["bitDialogTitle",""],["bitDialogContent",""],["type","warning"],["id","organizationDeleteDescription"],[4,"ngIf","ngIfElse"],["formControlName","secret"],["bitDialogFooter",""],["type","submit","bitButton","","bitFormButton","","buttonType","danger",3,"disabled"],["type","button","bitButton","","bitFormButton","","buttonType","secondary","bitDialogClose",""],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(e,t){if(1&e&&(v.j41(0,"form",1)(1,"span",2),v.EFF(2),v.nI1(3,"i18n"),v.k0s(),v.j41(4,"div",3)(5,"bit-callout",4),v.EFF(6),v.nI1(7,"i18n"),v.k0s(),v.j41(8,"p",5),v.DNE(9,V,3,3,"ng-container",6)(10,O,1,1,"ng-template",null,0,v.C5r),v.k0s(),v.nrm(12,"app-user-verification",7),v.k0s(),v.qex(13,8),v.j41(14,"button",9),v.EFF(15),v.nI1(16,"i18n"),v.k0s(),v.j41(17,"button",10),v.EFF(18),v.nI1(19,"i18n"),v.k0s(),v.bVm(),v.k0s()),2&e){const e=v.sdS(11);v.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit)("loading",!t.loaded),v.R7$(2),v.JRh(v.bMT(3,10,"deleteOrganization")),v.R7$(4),v.SpI(" ",v.i5U(7,12,"deletingOrganizationIsPermanentWarning",null==t.organization?null:t.organization.name)," "),v.R7$(3),v.Y8G("ngIf","InvalidFamiliesForEnterprise"===t.deleteOrganizationRequestType)("ngIfElse",e),v.R7$(5),v.Y8G("disabled",!t.loaded),v.R7$(),v.SpI(" ",v.bMT(16,15,"deleteOrganization")," "),v.R7$(3),v.SpI(" ",v.bMT(19,17,"cancel")," ")}},dependencies:[g.G,E.Sq,E.bT,r.qT,r.BC,r.cb,r.j4,r.JD,S.$,Q.L,k.Q,R.G,F.I,T.m,D.hJ,p.R6,P.q,M.$],encapsulation:2})},43184(e,t,i){"use strict";i.d(t,{t:()=>le,Z:()=>ae});var n=i(46758),r=i(11217),s=i(24590),o=i(63477),a=i(92128),l=i(84210);function c(e,t,i){let n=0,r=e.length||0,s=-1,o=0;for(;n<r;)if(s=Math.floor((n+r)/2),o=i(e[s],t),o<0)n=s+1;else{if(!(o>0))return s;r=s}return n}class d{constructor(e,t){this.controlFactory=e,this.compareFn=t,this.allItems=[],this.selectedItems=[],this.deselectedItems=[],this.formArray=new l.Yp([])}selectItems(e,t){for(const i of e)this.selectItem(i,t)}deselectItems(e){for(const t of e)this.deselectItem(t)}deselectAll(){this.formArray.clear(),this.selectedItems=[],this.deselectedItems=[...this.allItems]}selectItem(e,t){const i=this.deselectedItems.findIndex(t=>t.id===e);if(-1===i)return;const n=this.deselectedItems[i];this.deselectedItems=[...this.deselectedItems.slice(0,i),...this.deselectedItems.slice(i+1)];const r=c(this.selectedItems,n,this.compareFn);this.selectedItems=[...this.selectedItems.slice(0,r),n,...this.selectedItems.slice(r)];const s=this.controlFactory(n);s.patchValue(Object.assign({id:e},t)),this.formArray.insert(r,s)}deselectItem(e){const t=this.selectedItems.findIndex(t=>t.id===e);if(-1===t)return;const i=this.selectedItems[t];this.selectedItems=[...this.selectedItems.slice(0,t),...this.selectedItems.slice(t+1)],this.formArray.removeAt(t);const n=c(this.deselectedItems,i,this.compareFn);this.deselectedItems=[...this.deselectedItems.slice(0,n),i,...this.deselectedItems.slice(n)]}populateItems(e,t=[]){this.formArray.clear(),this.allItems=[...e].sort(this.compareFn),this.selectedItems=[],this.deselectedItems=[...this.allItems];for(const i of t)this.selectItem(i.id,i)}forEachControlItem(e){for(let t=0;t<this.formArray.length;t++)e(this.formArray.at(t),this.selectedItems[t])}}var u=i(50700),h=i(54471),A=i(47696),p=i(26411),g=i(22191),v=i(8433),m=i(47659),f=i(36801),y=i(45980),b=i(7356),C=i(14041);class I{constructor(){this.i18nService=(0,r.WQX)(u.W)}transform(e,t){if(null==e)return null!=t?t:this.i18nService.t("unknown");switch(e){case b.D7.Owner:return this.i18nService.t("owner");case b.D7.Admin:return this.i18nService.t("admin");case b.D7.User:return this.i18nService.t("user");case b.D7.Custom:return this.i18nService.t("custom")}}}I.ɵfac=function(e){return new(e||I)},I.ɵpipe=C.EJ8({name:"userType",type:I,pure:!0});var w=i(86226),B=i(93199),E=i(89812),S=i(43759),Q=i(36288),k=i(33886),R=i(68923),F=i(38410),T=i(22466),D=i(36572);const P=()=>({standalone:!0}),M=e=>({"tw-text-muted":e});function x(e,t){if(1&e&&(C.nrm(0,"bit-option",5),C.nI1(1,"i18n")),2&e){const e=t.$implicit;C.Y8G("value",e.perm)("label",C.bMT(1,2,e.labelId))}}function V(e,t){if(1&e){const e=C.RV6();C.j41(0,"bit-form-field",2)(1,"bit-label"),C.EFF(2),C.nI1(3,"i18n"),C.k0s(),C.j41(4,"bit-select",4),C.bIt("ngModelChange",function(t){r.eBV(e);const i=C.XpG(2);return r.Njj(i.initialPermissionValue.set(t))})("closed",function(){r.eBV(e);const t=C.XpG(2);return r.Njj(t.handleBlur())}),C.Z7z(5,x,2,4,"bit-option",5,C.fX1),C.k0s()()}if(2&e){const e=C.XpG(2);C.R7$(2),C.JRh(C.bMT(3,4,"permission")),C.R7$(2),C.Y8G("disabled",e.disabled())("ngModel",e.initialPermissionValue())("ngModelOptions",C.lJ4(6,P)),C.R7$(),C.Dyx(e.permissionList)}}function G(e,t){if(1&e){const e=C.RV6();C.j41(0,"bit-multi-select",8),C.bIt("onItemsConfirmed",function(t){r.eBV(e);const i=C.XpG(3);return r.Njj(i.selectItems(t))})("blur",function(){r.eBV(e);const t=C.XpG(3);return r.Njj(t.handleBlur())}),C.k0s()}if(2&e){const e=C.XpG(3);C.Y8G("baseItems",e.selectionList.deselectedItems)("removeSelectedItems",!0)("disabled",e.disabled()),C.BMQ("data-testid",e.multiSelectTestId())}}function U(e,t){if(1&e){const e=C.RV6();C.j41(0,"bit-multi-select",9),C.bIt("ngModelChange",function(t){r.eBV(e);const i=C.XpG(3);return r.Njj(i.onInlineSelectionChange(t))})("onItemsConfirmed",function(t){r.eBV(e);const i=C.XpG(3);return r.Njj(i.addItems(t))})("blur",function(){r.eBV(e);const t=C.XpG(3);return r.Njj(t.handleBlur())}),C.k0s()}if(2&e){const e=C.XpG(3);C.Y8G("baseItems",e.selectionList.allItems)("removeSelectedItems",!1)("disabled",e.disabled())("ngModel",e.selectedItems())("ngModelOptions",C.lJ4(6,P)),C.BMQ("data-testid",e.multiSelectTestId())}}function O(e,t){if(1&e&&(C.j41(0,"bit-hint"),C.EFF(1),C.k0s()),2&e){const e=C.XpG(3);C.R7$(),C.JRh(e.selectorHelpText())}}function N(e,t){if(1&e&&(C.j41(0,"bit-form-field",3)(1,"bit-label"),C.EFF(2),C.k0s(),C.nVh(3,G,1,4,"bit-multi-select",6)(4,U,1,7,"bit-multi-select",7),C.nVh(5,O,2,1,"bit-hint"),C.k0s()),2&e){const e=C.XpG(2);C.R7$(2),C.JRh(e.selectorLabelText()),C.R7$(),C.vxM(e.hideTable()?4:3),C.R7$(2),C.vxM(e.selectorHelpText()?5:-1)}}function j(e,t){if(1&e&&(C.j41(0,"div",0),C.nVh(1,V,7,7,"bit-form-field",2),C.nVh(2,N,6,3,"bit-form-field",3),C.k0s()),2&e){const e=C.XpG();C.R7$(),C.vxM("edit"==e.permissionMode()?1:-1),C.R7$(),C.vxM(e.disabled()?-1:2)}}function Y(e,t){1&e&&(C.j41(0,"th",12)(1,"div",17),C.EFF(2),C.nI1(3,"i18n"),C.k0s()()),2&e&&(C.R7$(2),C.SpI(" ",C.bMT(3,1,"permission")," "))}function X(e,t){1&e&&(C.j41(0,"th",13),C.EFF(1),C.nI1(2,"i18n"),C.k0s()),2&e&&(C.R7$(),C.JRh(C.bMT(2,1,"role")))}function z(e,t){1&e&&(C.j41(0,"th",14),C.EFF(1),C.nI1(2,"i18n"),C.k0s()),2&e&&(C.R7$(),C.JRh(C.bMT(2,1,"group")))}function L(e,t){1&e&&(C.j41(0,"span",25),C.EFF(1),C.nI1(2,"i18n"),C.k0s()),2&e&&(C.R7$(),C.SpI(" ",C.bMT(2,1,"invited")," "))}function W(e,t){if(1&e&&(C.j41(0,"div",26),C.EFF(1),C.k0s()),2&e){const e=C.XpG(2).$implicit;C.R7$(),C.SpI(" ",e.email," ")}}function K(e,t){if(1&e&&(C.j41(0,"div",20),C.nrm(1,"i",23),C.j41(2,"div",24)(3,"div"),C.EFF(4),C.nVh(5,L,3,3,"span",25),C.k0s(),C.nVh(6,W,2,1,"div",26),C.k0s()()),2&e){const e=C.XpG().$implicit;C.R7$(),C.HbH(C.VkB("bwi tw-mr-3 ",e.icon)),C.R7$(3),C.SpI(" ",e.labelName," "),C.R7$(),C.vxM(0==e.status?5:-1),C.R7$(),C.vxM(0!=e.status&&e.labelName!=e.email?6:-1)}}function Z(e,t){if(1&e&&(C.j41(0,"div",20),C.nrm(1,"i",27),C.j41(2,"span"),C.EFF(3),C.k0s()()),2&e){const e=C.XpG().$implicit,t=C.XpG(3);C.R7$(),C.Y8G("ngClass",e.icon||t.itemIcon(e)),C.R7$(2),C.JRh(e.labelName)}}function H(e,t){if(1&e&&(C.nrm(0,"bit-option",5),C.nI1(1,"i18n")),2&e){const e=t.$implicit;C.Y8G("value",e.perm)("label",C.bMT(1,2,e.labelId))}}function J(e,t){if(1&e){const e=C.RV6();C.j41(0,"bit-form-field")(1,"bit-select",28),C.nI1(2,"i18n"),C.bIt("closed",function(){r.eBV(e);const t=C.XpG(5);return r.Njj(t.handleBlur())}),C.Z7z(3,H,2,4,"bit-option",5,C.fX1),C.k0s()()}if(2&e){const e=C.XpG(2),t=e.$implicit,i=e.$index,n=C.XpG(3);C.R7$(),C.Y8G("appA11yTitle",C.ai1("",t.labelName," ",C.bMT(2,4,"permission")))("id","permission"+i),C.R7$(2),C.Dyx(n.permissionList)}}function q(e,t){if(1&e&&(C.j41(0,"div",29),C.nI1(1,"i18n"),C.EFF(2),C.nI1(3,"i18n"),C.k0s()),2&e){const e=C.XpG(3).$implicit,t=C.XpG(3);C.Y8G("title",C.bMT(1,2,t.permissionLabelId(e.readonlyPermission))),C.R7$(2),C.SpI(" ",C.bMT(3,4,t.permissionLabelId(e.readonlyPermission))," ")}}function $(e,t){if(1&e&&C.nVh(0,q,4,6,"div",29),2&e){const e=C.XpG(2).$implicit,t=C.XpG(3);C.vxM(e.readonly||t.disabled()?0:-1)}}function _(e,t){if(1&e&&(C.j41(0,"td",11),C.nVh(1,J,5,6,"bit-form-field")(2,$,1,1),C.k0s()),2&e){const e=C.XpG().$implicit,t=C.XpG(3);C.R7$(),C.vxM(t.canEditItemPermission(e)?1:2)}}function ee(e,t){if(1&e&&(C.j41(0,"td",11),C.EFF(1),C.nI1(2,"userType"),C.k0s()),2&e){const e=C.XpG().$implicit;C.R7$(),C.SpI(" ",C.i5U(2,1,e.role,"-")," ")}}function te(e,t){var i;if(1&e&&(C.j41(0,"td",11),C.EFF(1),C.k0s()),2&e){const e=C.XpG().$implicit;C.R7$(),C.SpI(" ",null!==(i=e.viaGroupName)&&void 0!==i?i:"-"," ")}}function ie(e,t){if(1&e){const e=C.RV6();C.j41(0,"button",30),C.nI1(1,"i18n"),C.bIt("click",function(){r.eBV(e);const t=C.XpG().$implicit,i=C.XpG(3);return r.Njj(i.deselectItem(t.id))}),C.k0s()}if(2&e){const e=C.XpG().$implicit,t=C.XpG(3);C.Y8G("label",C.ai1("",C.bMT(1,4,"remove")," ",e.labelName))("disabled",t.disabled())}}function ne(e,t){if(1&e&&(C.j41(0,"tr",18)(1,"td",19),C.nVh(2,K,7,6,"div",20)(3,Z,4,2,"div",20),C.k0s(),C.nVh(4,_,3,1,"td",11),C.nVh(5,ee,3,4,"td",11),C.nVh(6,te,2,1,"td",11),C.j41(7,"td",21),C.nVh(8,ie,2,6,"button",22),C.k0s()()),2&e){let e;const i=t.$implicit,n=t.$index,r=C.XpG(3);C.Y8G("formGroupName",n)("ngClass",C.eq3(7,M,i.readonly)),C.R7$(2),C.vxM((e=i.type)===r.itemType.Member?2:3),C.R7$(2),C.vxM("hidden"!=r.permissionMode()?4:-1),C.R7$(),C.vxM(r.showMemberRoles()?5:-1),C.R7$(),C.vxM(r.showGroupColumn()?6:-1),C.R7$(2),C.vxM(r.disabled()||i.readonly?-1:8)}}function re(e,t){if(1&e&&(C.j41(0,"tr")(1,"td",11),C.EFF(2),C.k0s()()),2&e){const e=C.XpG(3);C.R7$(2),C.JRh(e.emptySelectionText())}}function se(e,t){if(1&e&&(C.Z7z(0,ne,9,9,"tr",18,C.fX1),C.nVh(2,re,3,1,"tr")),2&e){const e=C.XpG(2);C.Dyx(e.selectedItems()),C.R7$(2),C.vxM(0==e.selectedItems().length?2:-1)}}function oe(e,t){if(1&e&&(C.j41(0,"bit-table",1),C.qex(1,10),C.j41(2,"tr")(3,"th",11),C.EFF(4),C.k0s(),C.nVh(5,Y,4,3,"th",12),C.nVh(6,X,3,3,"th",13),C.nVh(7,z,3,3,"th",14),C.nrm(8,"th",15),C.k0s(),C.bVm(),C.DNE(9,se,3,1,"ng-template",16),C.k0s()),2&e){const e=C.XpG();C.Y8G("formGroup",e.formGroup),C.R7$(4),C.JRh(e.columnHeader()),C.R7$(),C.vxM("hidden"!=e.permissionMode()?5:-1),C.R7$(),C.vxM(e.showMemberRoles()?6:-1),C.R7$(),C.vxM(e.showGroupColumn()?7:-1)}}var ae;!function(e){e.Hidden="hidden",e.Readonly="readonly",e.Edit="edit"}(ae||(ae={}));class le{constructor(){this.formBuilder=(0,r.WQX)(l.ok),this.i18nService=(0,r.WQX)(u.W),this.notifyOnChange=(0,r.vPA)(null),this.notifyOnTouch=(0,r.vPA)(null),this.pauseChangeNotification=(0,r.vPA)(!1),this.updateRowControlDisableState=(e,t)=>{var i;t.readonly?e.disable():(e.enable(),this.permissionMode()!=ae.Edit&&(null===(i=e.controls.permission)||void 0===i||i.disable()))},this.updateAllRowControlDisableStates=()=>{this.selectionList.forEachControlItem((e,t)=>{this.updateRowControlDisableState(e,t)})},this.selectionList=new d(e=>{const t=this.formBuilder.control(this.initialPermissionValue(),{nonNullable:!0}),i=this.formBuilder.group({id:new l.MJ(e.id,{nonNullable:!0}),type:new l.MJ(e.type,{nonNullable:!0}),permission:t});return this.updateRowControlDisableState(i,e),i},this._itemComparator.bind(this)),this.formGroup=this.formBuilder.group({items:this.selectionList.formArray}),this.itemType=y.Uv,this.disabled=(0,r.vPA)(!1),this.items=(0,s.hFB)([]),this.permissionMode=(0,s.hFB)(ae.Hidden),this.columnHeader=(0,s.hFB)(),this.selectorLabelText=(0,s.hFB)(),this.selectorHelpText=(0,s.hFB)(),this.emptySelectionText=(0,s.hFB)(),this.showMemberRoles=(0,s.hFB)(),this.showGroupColumn=(0,s.hFB)(),this.hideMultiSelect=(0,s.hFB)(!1),this.hideTable=(0,s.hFB)(!1),this.multiSelectTestId=(0,s.hFB)(),this.initialPermission=(0,s.hFB)(y.aF.View),this.selectedItems=(0,r.vPA)([]),this.initialPermissionValue=(0,r.vPA)(y.aF.View),this.pendingValue=(0,r.vPA)(null),this.permissionList=(0,y.M3)(),(0,r.QZP)(()=>{var e;const t=this.items(),i=this.pendingValue(),n=(null!==(e=null!=i?i:this.selectionList.formArray.getRawValue())&&void 0!==e?e:[]).concat(t.filter(e=>e.readonly));null!=i&&(0,o.O8)(()=>this.pendingValue.set(null)),this.selectionList.populateItems(t.map(e=>{var t;return e.icon=null!==(t=e.icon)&&void 0!==t?t:this.itemIcon(e),e}),n),this.selectedItems.set([...this.selectionList.selectedItems])}),(0,r.QZP)(()=>{this.initialPermissionValue.set(this.initialPermission())}),(0,r.QZP)(()=>{this.permissionMode(),this.updateAllRowControlDisableStates()}),this.selectionList.formArray.valueChanges.pipe((0,a.pQ)()).subscribe(e=>{const t=this.notifyOnChange();t&&!this.pauseChangeNotification()&&(this.selectionList.formArray.disabled?t([]):t(e))})}registerOnChange(e){this.notifyOnChange.set(e)}registerOnTouched(e){this.notifyOnTouch.set(e)}setDisabledState(e){this.disabled.set(e),e?this.formGroup.disable():(this.formGroup.enable(),this.updateAllRowControlDisableStates())}writeValue(e){if(null!=e&&!Array.isArray(e))throw new Error("The access selector component only supports Array form values!");if(this.pendingValue.set(null!=e?e:null),this.pauseChangeNotification.set(!0),this.selectionList.deselectAll(),this.selectionList.selectItems(this.selectionList.allItems.filter(e=>e.readonly).map(e=>e.id)),null!=e)for(const t of e)this.selectionList.selectItem(t.id,t);this.selectedItems.set([...this.selectionList.selectedItems]),this.pauseChangeNotification.set(!1)}handleBlur(){var e;null===(e=this.notifyOnTouch())||void 0===e||e()}deselectItem(e){this.selectionList.deselectItem(e),this.selectedItems.set([...this.selectionList.selectedItems]),this.handleBlur()}selectItems(e){this.pauseChangeNotification.set(!0),this.selectionList.selectItems(e.map(e=>e.id)),this.selectedItems.set([...this.selectionList.selectedItems]),this.pauseChangeNotification.set(!1);const t=this.notifyOnChange();null!=t&&t(this.selectionList.formArray.value)}addItems(e){this.selectionList.selectItems(e.map(e=>e.id)),this.selectedItems.set([...this.selectionList.selectedItems]);const t=this.notifyOnChange();null!=t&&t(this.selectionList.formArray.value)}onInlineSelectionChange(e){const t=new Set((null!=e?e:[]).map(e=>e.id));for(const i of[...this.selectionList.selectedItems])if(!t.has(i.id)){this.selectionList.deselectItem(i.id),this.selectedItems.set([...this.selectionList.selectedItems]);const e=this.notifyOnChange();null!=e&&e(this.selectionList.formArray.value)}}itemIcon(e){switch(e.type){case y.Uv.Collection:return"bwi-collection-shared";case y.Uv.Group:return"bwi-users";case y.Uv.Member:return"bwi-user"}}permissionLabelId(e){var t;return null===(t=this.permissionList.find(t=>t.perm==e))||void 0===t?void 0:t.labelId}canEditItemPermission(e){return this.permissionMode()==ae.Edit&&!e.readonly&&!this.disabled()}_itemComparator(e,t){return e.type-t.type||this.i18nService.collator.compare(e.listName,t.listName)||this.i18nService.collator.compare(e.labelName,t.labelName)||Number(t.readonly)-Number(e.readonly)}}le.ɵfac=function(e){return new(e||le)},le.ɵcmp=C.VBU({type:le,selectors:[["bit-access-selector"]],inputs:{items:[1,"items"],permissionMode:[1,"permissionMode"],columnHeader:[1,"columnHeader"],selectorLabelText:[1,"selectorLabelText"],selectorHelpText:[1,"selectorHelpText"],emptySelectionText:[1,"emptySelectionText"],showMemberRoles:[1,"showMemberRoles"],showGroupColumn:[1,"showGroupColumn"],hideMultiSelect:[1,"hideMultiSelect"],hideTable:[1,"hideTable"],multiSelectTestId:[1,"multiSelectTestId"],initialPermission:[1,"initialPermission"]},features:[C.Jv_([{provide:l.kq,useExisting:(0,r.Rfq)(()=>le),multi:!0}])],decls:2,vars:2,consts:[[1,"tw-flex","tw-gap-3"],[3,"formGroup"],[1,"tw-shrink-0","tw-basis-2/5"],[1,"tw-grow"],["bitInput","","data-testid","permission",3,"ngModelChange","closed","disabled","ngModel","ngModelOptions"],[3,"value","label"],[1,"tw-w-full",3,"baseItems","removeSelectedItems","disabled"],[1,"tw-w-full",3,"baseItems","removeSelectedItems","disabled","ngModel","ngModelOptions"],[1,"tw-w-full",3,"onItemsConfirmed","blur","baseItems","removeSelectedItems","disabled"],[1,"tw-w-full",3,"ngModelChange","onItemsConfirmed","blur","baseItems","removeSelectedItems","disabled","ngModel","ngModelOptions"],["header",""],["bitCell",""],["bitCell","","id","permissionColHeading"],["bitCell","","id","roleColHeading"],["bitCell","","id","groupColHeading"],["bitCell","",1,"tw-w-20"],["body","","formArrayName","items"],[1,"tw-border","tw-border-solid","tw-border-transparent"],["bitRow","",3,"formGroupName","ngClass"],["bitCell","",1,"tw-w-5/12"],[1,"tw-flex","tw-items-center"],["bitCell","",1,"tw-text-right"],["type","button","bitIconButton","bwi-close","buttonType","primaryGhost",3,"label","disabled"],["aria-hidden","true"],[1,"tw-flex","tw-flex-col"],["bitBadge","","variant","secondary"],[1,"tw-text-xs","tw-text-muted"],["aria-hidden","true",1,"bwi","tw-mr-3","tw-px-0.5","tw-text-2xl",3,"ngClass"],["bitInput","","formControlName","permission",3,"closed","appA11yTitle","id"],[1,"tw-max-w-40","tw-overflow-hidden","tw-overflow-ellipsis","tw-whitespace-nowrap","tw-font-medium","tw-text-muted",3,"title"],["type","button","bitIconButton","bwi-close","buttonType","primaryGhost",3,"click","label","disabled"]],template:function(e,t){1&e&&(C.nVh(0,j,3,2,"div",0),C.nVh(1,oe,10,5,"bit-table",1)),2&e&&(C.vxM(t.hideMultiSelect()?-1:0),C.R7$(),C.vxM(t.hideTable()?-1:1))},dependencies:[h.C,A.n,p.L,w.j,B.I,E.b,S.h,l.YN,l.BC,l.cb,l.vS,g.Q,Q.s,n.YU,l.X1,l.j4,l.JD,l.$R,l.v8,v.p,k.w,R.P,m.b,F.Q,T.Y,D._,D.O,f.$Z,I],encapsulation:2,changeDetection:0})},45980(e,t,i){"use strict";i.d(t,{Jh:()=>a,M3:()=>o,NU:()=>u,Uv:()=>r,aF:()=>n,df:()=>h,yo:()=>l});var n,r,s=i(14848);!function(e){e.View="view",e.ViewExceptPass="viewExceptPass",e.Edit="edit",e.EditExceptPass="editExceptPass",e.Manage="manage"}(n||(n={})),function(e){e[e.Collection=0]="Collection",e[e.Group=1]="Group",e[e.Member=2]="Member"}(r||(r={}));const o=()=>[{perm:n.ViewExceptPass,labelId:"viewItemsHidePass"},{perm:n.View,labelId:"viewItems"},{perm:n.EditExceptPass,labelId:"editItemsHidePass"},{perm:n.Edit,labelId:"editItems"},{perm:n.Manage,labelId:"manageCollection"}],a=e=>{if(null!=e)return e.manage?n.Manage:e.readOnly?e.hidePasswords?n.ViewExceptPass:n.View:e.hidePasswords?n.EditExceptPass:n.Edit},l=e=>new s.sK({id:e.id,readOnly:c(e.permission),hidePasswords:d(e.permission),manage:e.permission===n.Manage}),c=e=>[n.View,n.ViewExceptPass].includes(e),d=e=>[n.ViewExceptPass,n.EditExceptPass].includes(e);function u(e){return{id:e.id,type:r.Group,listName:e.name,labelName:e.name}}function h(e){var t,i;return{id:e.id,type:r.Member,email:e.email,role:e.type,listName:(null===(t=e.name)||void 0===t?void 0:t.length)>0?`${e.name} (${e.email})`:e.email,labelName:null!==(i=e.name)&&void 0!==i?i:e.email,status:e.status}}},97434(e,t,i){"use strict";i.d(t,{m:()=>o});var n=i(43184),r=i(14041),s=i(11217);class o{}o.ɵfac=function(e){return new(e||o)},o.ɵmod=r.$C({type:o}),o.ɵinj=s.G2t({imports:[n.t]})},2195(e,t,i){"use strict";i.d(t,{RZ:()=>F,GW:()=>Re,_K:()=>k,jN:()=>De});var n=i(92128),r=i(84210),s=i(87806),o=i(68108),a=i(69783),l=i(29236),c=i(35284),d=i(68711),u=i(191),h=i(6933),A=i(83604),p=i(72135),g=i(36219),v=i(21571),m=i(67553),f=i(14848),y=i(3633),b=i(82468),C=i(38020),I=i(78781);var w=i(88744),B=i(8433),E=i(16452),S=i(25065),Q=i(81667);var k,R,F,T=i(43184),D=i(45980),P=i(97434),M=i(14041),x=i(11217),V=i(24590),G=i(44075),U=i(66316),O=i(69855),N=i(50700),j=i(35500),Y=i(1601),X=i(46758),z=i(49519),L=i(3892),W=i(26657),K=i(38620),Z=i(56898),H=i(44432),J=i(45635),q=i(67311),$=i(86226),_=i(93199),ee=i(19934),te=i(43759),ie=i(36288),ne=i(33886),re=i(68923),se=i(88516),oe=i(18539),ae=i(25740),le=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function ce(e,t){if(1&e&&(M.j41(0,"span",11),M.EFF(1),M.k0s()),2&e){const e=M.XpG(2);M.R7$(),M.JRh(e.collection.name)}}function de(e,t){if(1&e&&(M.qex(0),M.EFF(1),M.nI1(2,"i18n"),M.DNE(3,ce,2,1,"span",10),M.bVm()),2&e){const e=M.XpG();M.R7$(),M.SpI(" ",M.bMT(2,2,e.dialogReadonly?"viewCollection":"editCollection")," "),M.R7$(2),M.Y8G("ngIf",!e.loading)}}function ue(e,t){if(1&e&&(M.qex(0),M.EFF(1),M.nI1(2,"i18n"),M.bVm()),2&e){const e=M.XpG();M.R7$(),M.SpI(" ",M.bMT(2,1,e.btnTextAddCreateFeatureFlag()?"addCollection":"newCollection")," ")}}function he(e,t){1&e&&(M.qex(0,null,0),M.nrm(2,"i",12),M.bVm())}function Ae(e,t){if(1&e&&M.nrm(0,"bit-option",26),2&e){const e=t.$implicit;M.Y8G("value",e.id)("label",e.name)}}function pe(e,t){if(1&e&&(M.j41(0,"bit-form-field")(1,"bit-label"),M.EFF(2),M.nI1(3,"i18n"),M.k0s(),M.j41(4,"bit-select",24),M.DNE(5,Ae,1,2,"bit-option",25),M.nI1(6,"async"),M.k0s()()),2&e){const e=M.XpG(2);M.R7$(2),M.JRh(M.bMT(3,2,"organization")),M.R7$(3),M.Y8G("ngForOf",M.bMT(6,4,e.organizations$))}}function ge(e,t){1&e&&(M.j41(0,"bit-form-field")(1,"bit-label"),M.EFF(2),M.nI1(3,"i18n"),M.k0s(),M.nrm(4,"input",27),M.j41(5,"bit-hint"),M.EFF(6),M.nI1(7,"i18n"),M.k0s()()),2&e&&(M.R7$(2),M.JRh(M.bMT(3,2,"externalId")),M.R7$(4),M.JRh(M.bMT(7,4,"externalIdDesc")))}function ve(e,t){if(1&e&&(M.nrm(0,"bit-option",28),M.nI1(1,"i18n")),2&e){const e=M.XpG(2);M.Y8G("label",M.ai1("",e.deletedParentName," (",M.bMT(1,4,"deleted"),")"))("value",e.deletedParentName)}}function me(e,t){if(1&e&&M.nrm(0,"bit-option",29),2&e){const e=t.$implicit;M.Y8G("value",e.name)("label",e.name)}}function fe(e,t){1&e&&(M.qex(0),M.j41(1,"span"),M.EFF(2),M.nI1(3,"i18n"),M.k0s(),M.bVm()),2&e&&(M.R7$(2),M.JRh(M.bMT(3,1,"readOnlyCollectionAccess")))}function ye(e,t){1&e&&(M.j41(0,"bit-callout",31),M.nI1(1,"i18n"),M.EFF(2),M.nI1(3,"i18n"),M.k0s()),2&e&&(M.Y8G("title",M.mNQ(M.bMT(1,3,"grantManageCollectionWarningTitle"))),M.R7$(2),M.SpI(" ",M.bMT(3,5,"grantManageCollectionWarning")," "))}function be(e,t){1&e&&(M.j41(0,"span"),M.EFF(1),M.nI1(2,"i18n"),M.k0s()),2&e&&(M.R7$(),M.JRh(M.bMT(2,1,"grantCollectionAccess")))}function Ce(e,t){1&e&&(M.j41(0,"span"),M.EFF(1),M.nI1(2,"i18n"),M.k0s()),2&e&&(M.R7$(),M.JRh(M.bMT(2,1,"grantCollectionAccessMembersOnly")))}function Ie(e,t){1&e&&(M.j41(0,"span"),M.EFF(1),M.nI1(2,"i18n"),M.k0s()),2&e&&(M.R7$(),M.SpI(" "," "+M.bMT(2,1,"adminCollectionAccess")," "))}function we(e,t){if(1&e&&(M.qex(0),M.DNE(1,ye,4,7,"bit-callout",30)(2,be,3,3,"span",3)(3,Ce,3,3,"span",3)(4,Ie,3,3,"span",3),M.bVm()),2&e){const e=M.XpG(2);M.R7$(),M.Y8G("ngIf",e.showAddAccessWarning),M.R7$(),M.Y8G("ngIf",e.organization.useGroups),M.R7$(),M.Y8G("ngIf",!e.organization.useGroups),M.R7$(),M.Y8G("ngIf",e.organization.allowAdminAccessToAllCollectionItems)}}function Be(e,t){1&e&&(M.j41(0,"div",32),M.nrm(1,"i",33),M.EFF(2),M.nI1(3,"i18n"),M.k0s()),2&e&&(M.R7$(2),M.SpI(" ",M.bMT(3,1,"managePermissionRequired")," "))}function Ee(e,t){if(1&e&&(M.nrm(0,"bit-access-selector",34),M.nI1(1,"i18n"),M.nI1(2,"i18n"),M.nI1(3,"i18n"),M.nI1(4,"i18n")),2&e){const e=M.XpG(2);M.Y8G("permissionMode",e.dialogReadonly?e.PermissionMode.Readonly:e.PermissionMode.Edit)("items",e.accessItems)("columnHeader",M.bMT(1,7,"groupSlashMemberColumnHeader"))("selectorLabelText",M.bMT(2,9,"selectGroupsAndMembers"))("selectorHelpText",M.bMT(3,11,"userPermissionOverrideHelperDesc"))("emptySelectionText",M.bMT(4,13,"noMembersOrGroupsAdded"))("initialPermission",e.initialPermission)}}function Se(e,t){if(1&e&&(M.nrm(0,"bit-access-selector",35),M.nI1(1,"i18n"),M.nI1(2,"i18n"),M.nI1(3,"i18n")),2&e){const e=M.XpG(2);M.Y8G("permissionMode",e.dialogReadonly?e.PermissionMode.Readonly:e.PermissionMode.Edit)("items",e.accessItems)("columnHeader",M.bMT(1,5,"memberColumnHeader"))("selectorLabelText",M.bMT(2,7,"selectMembers"))("emptySelectionText",M.bMT(3,9,"noMembersAdded"))}}function Qe(e,t){if(1&e){const e=M.RV6();M.j41(0,"bit-tab-group",13),M.mxI("selectedIndexChange",function(t){x.eBV(e);const i=M.XpG();return M.DH7(i.tabIndex,t)||(i.tabIndex=t),x.Njj(t)}),M.j41(1,"bit-tab",14),M.nI1(2,"i18n"),M.j41(3,"bit-form-field")(4,"bit-label"),M.EFF(5),M.nI1(6,"i18n"),M.k0s(),M.nrm(7,"input",15),M.k0s(),M.DNE(8,pe,7,6,"bit-form-field",3)(9,ge,8,6,"bit-form-field",3),M.j41(10,"bit-form-field")(11,"bit-label"),M.EFF(12),M.nI1(13,"i18n"),M.k0s(),M.j41(14,"bit-select",16),M.nrm(15,"bit-option",17),M.nI1(16,"i18n"),M.DNE(17,ve,2,6,"bit-option",18)(18,me,1,2,"bit-option",19),M.k0s()()(),M.j41(19,"bit-tab",14)(20,"div",20),M.DNE(21,fe,4,3,"ng-container",3)(22,we,5,4,"ng-container",3),M.k0s(),M.DNE(23,Be,4,3,"div",21)(24,Ee,5,15,"bit-access-selector",22)(25,Se,4,11,"bit-access-selector",23),M.k0s()()}if(2&e){const e=M.XpG();M.R50("selectedIndex",e.tabIndex),M.R7$(),M.Y8G("label",M.mNQ(M.bMT(2,17,"collectionInfo"))),M.R7$(4),M.JRh(M.bMT(6,19,"name")),M.R7$(3),M.Y8G("ngIf",e.showOrgSelector),M.R7$(),M.Y8G("ngIf",e.isExternalIdVisible),M.R7$(3),M.JRh(M.bMT(13,21,"nestCollectionUnder")),M.R7$(3),M.Y8G("value",void 0)("label",M.bMT(16,23,"noCollection")),M.R7$(2),M.Y8G("ngIf",e.deletedParentName),M.R7$(),M.Y8G("ngForOf",e.nestOptions),M.R7$(),M.Y8G("label",e.accessTabLabel),M.R7$(2),M.Y8G("ngIf",e.dialogReadonly),M.R7$(),M.Y8G("ngIf",!e.dialogReadonly),M.R7$(),M.Y8G("ngIf",e.formGroup.controls.access.hasError("managePermissionRequired")&&!e.showAddAccessWarning),M.R7$(),M.Y8G("ngIf",e.organization.useGroups),M.R7$(),M.Y8G("ngIf",!e.organization.useGroups)}}function ke(e,t){if(1&e&&(M.nrm(0,"button",36),M.nI1(1,"i18n")),2&e){const e=M.XpG();M.Y8G("label",M.bMT(1,3,"delete"))("bitAction",e.delete)("disabled",e.loading)}}!function(e){e[e.Info=0]="Info",e[e.Access=1]="Access"}(k||(k={})),function(e){e.Upgrade="upgrade",e.Save="save"}(R||(R={})),function(e){e.Saved="saved",e.Canceled="canceled",e.Deleted="deleted",e.Upgrade="upgrade"}(F||(F={}));class Re{constructor(e,t,i,a,l,c,d,u,h,A,p,g,v,m){var C,I,w;this.params=e,this.formBuilder=t,this.dialogRef=i,this.organizationService=a,this.groupService=l,this.collectionAdminService=c,this.i18nService=d,this.organizationUserApiService=u,this.dialogService=h,this.changeDetectorRef=A,this.accountService=p,this.toastService=g,this.collectionService=v,this.configService=m,this.destroy$=new s.B,this.loading=!0,this.nestOptions=[],this.accessItems=[],this.showOrgSelector=!1,this.formGroup=this.formBuilder.group({name:["",[r.k0.required,(w=["/"],e=>{if(!(e instanceof r.MJ))throw new Error("forbiddenCharacters only supports validating FormControls");if(null===e.value||void 0===e.value)return null;const t=String(e.value);for(const i of t)if(w.includes(i))return{forbiddenCharacters:{value:e.value,characters:w}};return null})]],externalId:{value:"",disabled:!1},parent:void 0,access:[[]],selectedOrg:""}),this.PermissionMode=T.Z,this.showDeleteButton=!1,this.showAddAccessWarning=!1,this.buttonDisplayName=R.Save,this.btnTextAddCreateFeatureFlag=(0,n.ot)(this.configService.getFeatureFlag$(b.TO.PM32380_BtnTextAddCreate)),this.submit=()=>le(this,void 0,void 0,function*(){var e,t;if(this.dialogReadonly)return;if(this.formGroup.markAllAsTouched(),this.buttonDisplayName==R.Upgrade)return this.close(F.Upgrade),void this.changePlan(this.orgExceedingCollectionLimit);if(this.formGroup.invalid){const e=this.formGroup.controls.access.hasError("managePermissionRequired");return void(this.tabIndex!==k.Access||e?this.tabIndex===k.Info&&e&&this.toastService.showToast({variant:"error",message:this.i18nService.t("fieldOnTabRequiresAttention",this.i18nService.t("access"))}):this.toastService.showToast({variant:"error",message:this.i18nService.t("fieldOnTabRequiresAttention",this.i18nService.t("collectionInfo"))}))}if(this.editMode&&!(null===(e=this.collection)||void 0===e?void 0:e.canEditName(this.organization))&&this.formGroup.controls.name.dirty)throw new Error("Cannot change readonly field: Name");const i=null===(t=this.formGroup.controls.parent)||void 0===t?void 0:t.value,n=Object.assign(new f.nb({id:"",organizationId:"",name:""}),this.collection);n.name=i?`${i}/${this.formGroup.controls.name.value}`:this.formGroup.controls.name.value,n.id=this.params.collectionId,n.organizationId=this.formGroup.controls.selectedOrg.value,n.externalId=this.formGroup.controls.externalId.value,n.groups=this.formGroup.controls.access.value.filter(e=>e.type===D.Uv.Group).map(D.yo),n.users=this.formGroup.controls.access.value.filter(e=>e.type===D.Uv.Member).map(D.yo);const r=yield(0,o._)(this.accountService.activeAccount$.pipe(y.F6)),s=this.editMode?yield this.collectionAdminService.update(n,r):yield this.collectionAdminService.create(n,r);this.toastService.showToast({variant:"success",message:this.i18nService.t(this.editMode?"editedCollectionId":"createdCollectionId",n.name)}),this.close(F.Saved,s)}),this.delete=()=>le(this,void 0,void 0,function*(){var e,t;if(this.dialogReadonly)return;if(!(yield this.dialogService.openSimpleDialog({title:null===(e=this.collection)||void 0===e?void 0:e.name,content:{key:"deleteCollectionConfirmation"},type:"warning"}))&&this.params.collectionId)return!1;yield this.collectionAdminService.delete(this.params.organizationId,this.params.collectionId),this.toastService.showToast({variant:"success",message:this.i18nService.t("deletedCollectionId",null===(t=this.collection)||void 0===t?void 0:t.name)}),this.close(F.Deleted,this.collection)}),this.tabIndex=null!==(C=e.initialTab)&&void 0!==C?C:k.Info,this.initialPermission=null!==(I=e.initialPermission)&&void 0!==I?I:D.aF.View}ngOnInit(){return le(this,void 0,void 0,function*(){const e=yield(0,o._)(this.accountService.activeAccount$.pipe((0,a.T)(e=>null==e?void 0:e.id)));var t,i,n;this.params.showOrgSelector?(this.showOrgSelector=!0,this.formGroup.controls.selectedOrg.valueChanges.pipe((0,l.Q)(this.destroy$)).subscribe(e=>this.loadOrg(e)),this.organizations$=this.organizationService.organizations$(e).pipe((0,g.$)(),(0,a.T)(e=>e.filter(e=>e.canCreateNewCollections&&!e.isProviderUser).sort(I.A.getSortFunction(this.i18nService,"name")))),this.formGroup.patchValue({selectedOrg:this.params.organizationId})):(this.formGroup.patchValue({selectedOrg:this.params.organizationId}),yield this.loadOrg(this.params.organizationId)),this.organizationSelected.setAsyncValidators((t=this.organizations$,i=this.collectionService.encryptedCollections$(e).pipe((0,a.T)(e=>null!=e?e:[])),n=this.i18nService,e=>{if(!(e instanceof r.MJ))return(0,A.of)(null);const s=e.value;return s?(0,p.z)([t.pipe((0,C.Hc)(s)),i]).pipe((0,a.T)(([e,t])=>{if(!e)return null;const i=t.filter(t=>t.organizationId===e.id);return e.maxCollections===i.length?{cannotCreateCollections:{message:n.t("cannotCreateCollection")}}:null})):(0,A.of)(null)})),this.formGroup.updateValueAndValidity(),this.organizationSelected.valueChanges.pipe((0,c.M)(e=>{var t;(null===(t=this.organizationSelected.errors)||void 0===t?void 0:t.cannotCreateCollections)?this.buttonDisplayName=R.Upgrade:this.buttonDisplayName=R.Save}),(0,d.p)(()=>{var e;return null===(e=this.organizationSelected.errors)||void 0===e?void 0:e.cannotCreateCollections}),(0,u.n)(e=>this.organizations$.pipe((0,C.Hc)(e))),(0,l.Q)(this.destroy$)).subscribe(e=>{this.orgExceedingCollectionLimit=e,this.organizationSelected.markAsTouched(),this.formGroup.updateValueAndValidity()})})}loadOrg(e){return le(this,void 0,void 0,function*(){const t=yield(0,o._)((0,y.F6)(this.accountService.activeAccount$)),i=this.organizationService.organizations$(t).pipe((0,m.Sw)(e)).pipe((0,h.t)({refCount:!0,bufferSize:1})),n=i.pipe((0,u.n)(t=>t.useGroups?this.groupService.getAll(e):(0,A.of)([]))),r=this.accountService.activeAccount$.pipe(y.F6,(0,u.n)(t=>this.collectionAdminService.collectionAdminViews$(e,t)));(0,p.z)({organization:i,collections:r,groups:n,users:this.organizationUserApiService.getAllMiniUserDetails(e)}).pipe((0,l.Q)(this.formGroup.controls.selectedOrg.valueChanges),(0,l.Q)(this.destroy$)).subscribe(({organization:e,collections:t,groups:i,users:n})=>{var r,s;if(this.organization=e,this.params.collectionId&&(this.collection=t.find(e=>e.id===this.collectionId),!this.collection))throw new Error("Could not find collection to edit.");if(this.accessItems=[].concat(i.map(e=>function(e,t){return{id:e.id,type:D.Uv.Group,listName:e.name,labelName:e.name,readonly:!1,readonlyPermission:null!=t?(0,D.Jh)(t.groups.find(t=>t.id===e.id)):void 0}}(e,this.collection)),n.data.map(e=>Te(e,this.collection))),this.changeDetectorRef.detectChanges(),this.nestOptions=this.params.limitNestedCollections?t.filter(e=>e.manage):t,this.collection){this.nestOptions=this.nestOptions.filter(e=>e.id!==this.collectionId);const{name:i,parent:n}=function(e){var t;const i=null===(t=e.name)||void 0===t?void 0:t.split("/"),n=i[i.length-1],r=i.length>1?i.slice(0,-1).join("/"):void 0;return{name:n,parent:r}}(this.collection);void 0!==n&&(this.organization.canViewAllCollections&&!t.find(e=>e.name===n)?this.deletedParentName=n:this.nestOptions.find(e=>e.name===n)||this.nestOptions.unshift({name:n}));const r=function(e){if(null==e)return[];return[].concat(e.groups.map(e=>({id:e.id,type:D.Uv.Group,permission:(0,D.Jh)(e)})),e.users.map(e=>({id:e.id,type:D.Uv.Member,permission:(0,D.Jh)(e)})))}(this.collection);this.formGroup.patchValue({name:i,externalId:this.collection.externalId,parent:n,access:r}),this.showDeleteButton=!this.dialogReadonly&&this.collection.canDelete(e)}else{const e=this.nestOptions.find(e=>e.id===this.params.parentCollectionId),t=null===(r=n.data.find(e=>{var t;return e.userId===(null===(t=this.organization)||void 0===t?void 0:t.userId)}))||void 0===r?void 0:r.id,i=void 0!==t?[{id:t,type:D.Uv.Member,permission:D.aF.Manage}]:[];this.formGroup.patchValue({parent:null!==(s=null==e?void 0:e.name)&&void 0!==s?s:void 0,access:i})}e.allowAdminAccessToAllCollectionItems?this.formGroup.controls.access.removeValidators(Fe):this.formGroup.controls.access.addValidators(Fe),this.formGroup.controls.access.updateValueAndValidity(),this.handleFormGroupReadonly(this.dialogReadonly),this.loading=!1,this.showAddAccessWarning=this.handleAddAccessWarning()})})}get organizationSelected(){return this.formGroup.controls.selectedOrg}get isExternalIdVisible(){var e;return this.params.isAdminConsoleActive&&!!(null===(e=this.formGroup.get("externalId"))||void 0===e?void 0:e.value)}get collectionId(){return this.params.collectionId}get editMode(){return null!=this.params.collectionId}get dialogReadonly(){return!0===this.params.readonly}get accessTabLabel(){return this.dialogReadonly?this.i18nService.t("viewAccess"):this.i18nService.t("editAccess")}cancel(){return le(this,void 0,void 0,function*(){this.close(F.Canceled)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}changePlan(e){(0,E.IO)(this.dialogService,{data:{organizationId:e.id,subscription:null,productTierType:e.productTierType}})}handleAddAccessWarning(){var e;return!((null===(e=this.organization)||void 0===e?void 0:e.allowAdminAccessToAllCollectionItems)||!this.params.isAddAccessCollection)}handleFormGroupReadonly(e){if(e)return this.formGroup.controls.access.disable(),this.formGroup.controls.name.disable(),void this.formGroup.controls.parent.disable();if(this.formGroup.controls.access.enable(),!this.editMode)return this.formGroup.controls.name.enable(),void this.formGroup.controls.parent.enable();const t=this.collection.canEditName(this.organization);this.formGroup.controls.name[t?"enable":"disable"](),this.formGroup.controls.parent[t?"enable":"disable"]()}close(e,t){this.dialogRef.close({action:e,collection:t})}}function Fe(e){return e.value.some(e=>e.permission===D.aF.Manage)?null:{managePermissionRequired:!0}}function Te(e,t){var i,n;return{id:e.id,type:D.Uv.Member,email:e.email,role:e.type,listName:(null===(i=e.name)||void 0===i?void 0:i.length)>0?`${e.name} (${e.email})`:e.email,labelName:null!==(n=e.name)&&void 0!==n?n:e.email,status:e.status,readonly:!1,readonlyPermission:null!=t?(0,D.Jh)(new f.sK(t.users.find(t=>t.id===e.id))):void 0}}function De(e,t){return e.open(Re,t)}Re.ɵfac=function(e){return new(e||Re)(M.rXU(w.Qs),M.rXU(r.ok),M.rXU(G.ce),M.rXU(m.PV),M.rXU(Q.nK),M.rXU(v.vE),M.rXU(N.W),M.rXU(v.uB),M.rXU(U.o),M.rXU(V.gRc),M.rXU(j.D),M.rXU(O.f),M.rXU(v.YD),M.rXU(Y.w))},Re.ɵcmp=M.VBU({type:Re,selectors:[["ng-component"]],decls:15,vars:15,consts:[["spinner",""],["bit-dialog","","dialogSize","large",3,"formGroup","bitSubmit"],["bitDialogTitle",""],[4,"ngIf"],["bitDialogContent",""],[3,"selectedIndex","selectedIndexChange",4,"ngIf"],["bitDialogFooter",""],["type","submit","bitButton","","bitFormButton","","buttonType","primary",3,"disabled"],["type","button","bitButton","","bitFormButton","","buttonType","secondary",3,"click","disabled"],["type","button","bitIconButton","bwi-trash","buttonType","dangerGhost","class","tw-ml-auto","bitFormButton","",3,"label","bitAction","disabled",4,"ngIf"],["class","tw-text-sm tw-normal-case tw-text-muted",4,"ngIf"],[1,"tw-text-sm","tw-normal-case","tw-text-muted"],["aria-hidden","true",1,"bwi","bwi-spinner","bwi-lg","bwi-spin"],[3,"selectedIndexChange","selectedIndex"],[3,"label"],["bitInput","","appAutofocus","","formControlName","name"],["bitInput","","formControlName","parent"],[3,"value","label"],["disabled","","icon","bwi-collection-shared",3,"value","label",4,"ngIf"],["icon","bwi-collection-shared",3,"value","label",4,"ngFor","ngForOf"],[1,"tw-mb-3"],["class","tw-mb-3 tw-text-danger",4,"ngIf"],["formControlName","access",3,"permissionMode","items","columnHeader","selectorLabelText","selectorHelpText","emptySelectionText","initialPermission",4,"ngIf"],["formControlName","access",3,"permissionMode","items","columnHeader","selectorLabelText","emptySelectionText",4,"ngIf"],["bitInput","","formControlName","selectedOrg"],["icon","bwi-business",3,"value","label",4,"ngFor","ngForOf"],["icon","bwi-business",3,"value","label"],["bitInput","","formControlName","externalId","readonly",""],["disabled","","icon","bwi-collection-shared",3,"value","label"],["icon","bwi-collection-shared",3,"value","label"],["type","warning",3,"title",4,"ngIf"],["type","warning",3,"title"],[1,"tw-mb-3","tw-text-danger"],[1,"bwi","bwi-error"],["formControlName","access",3,"permissionMode","items","columnHeader","selectorLabelText","selectorHelpText","emptySelectionText","initialPermission"],["formControlName","access",3,"permissionMode","items","columnHeader","selectorLabelText","emptySelectionText"],["type","button","bitIconButton","bwi-trash","buttonType","dangerGhost","bitFormButton","",1,"tw-ml-auto",3,"label","bitAction","disabled"]],template:function(e,t){1&e&&(M.j41(0,"form",1)(1,"span",2),M.DNE(2,de,4,4,"ng-container",3)(3,ue,3,3,"ng-container",3),M.k0s(),M.j41(4,"div",4),M.DNE(5,he,3,0,"ng-container",3)(6,Qe,26,25,"bit-tab-group",5),M.k0s(),M.qex(7,6),M.j41(8,"button",7),M.EFF(9),M.nI1(10,"i18n"),M.k0s(),M.j41(11,"button",8),M.bIt("click",function(){return t.cancel()}),M.EFF(12),M.nI1(13,"i18n"),M.k0s(),M.DNE(14,ke,2,5,"button",9),M.bVm(),M.k0s()),2&e&&(M.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit),M.R7$(2),M.Y8G("ngIf",t.editMode),M.R7$(),M.Y8G("ngIf",!t.editMode),M.R7$(2),M.Y8G("ngIf",t.loading),M.R7$(),M.Y8G("ngIf",!t.loading),M.R7$(2),M.Y8G("disabled",t.loading||t.dialogReadonly),M.R7$(),M.SpI(" ",M.bMT(10,11,t.buttonDisplayName)," "),M.R7$(2),M.Y8G("disabled",t.loading),M.R7$(),M.SpI(" ",M.bMT(13,13,"cancel")," "),M.R7$(2),M.Y8G("ngIf",t.showDeleteButton))},dependencies:[S.G,X.Sq,X.bT,r.qT,r.me,r.BC,r.cb,r.j4,r.JD,z.B,L.p,W.$,K.L,Z.Q,H.G,J.m,q.hJ,$.j,_.I,ee.J,te.h,ie.s,ne.w,re.P,se.W,oe.j,P.m,T.t,B.p,X.Jj,ae.$],encapsulation:2})},9413(e,t,i){"use strict";i.d(t,{S:()=>a});var n=i(81714),r=i(80755),s=i(14041),o=i(11217);class a{}a.ɵfac=function(e){return new(e||a)},a.ɵmod=s.$C({type:a}),a.ɵinj=o.G2t({providers:[n.J,r.p]})},15740(e,t,i){"use strict";var n;i.d(t,{c:()=>n}),function(e){e[e.Invited=0]="Invited",e[e.Accepted=1]="Accepted",e[e.Confirmed=2]="Confirmed",e[e.RecoveryInitiated=3]="RecoveryInitiated",e[e.RecoveryApproved=4]="RecoveryApproved"}(n||(n={}))},57396(e,t,i){"use strict";i.d(t,{RR:()=>r,_1:()=>s,cY:()=>n});class n{constructor(e={}){Object.assign(this,e)}static fromResponse(e){return new n({id:e.id,granteeId:e.granteeId,name:e.name,email:e.email,type:e.type,status:e.status,waitTimeDays:e.waitTimeDays,creationDate:e.creationDate,avatarColor:e.avatarColor})}}class r{constructor(e={}){Object.assign(this,e)}static fromResponse(e){return new r({id:e.id,grantorId:e.grantorId,name:e.name,email:e.email,type:e.type,status:e.status,waitTimeDays:e.waitTimeDays,creationDate:e.creationDate,avatarColor:e.avatarColor})}}class s extends n{}},81714(e,t,i){"use strict";i.d(t,{J:()=>p});var n=i(25607),r=i(12277),s=i(20702),o=i(42700);class a extends s.r{constructor(e){super(e),this.id=this.getResponseProperty("Id"),this.granteeId=this.getResponseProperty("GranteeId"),this.name=this.getResponseProperty("Name"),this.email=this.getResponseProperty("Email"),this.type=this.getResponseProperty("Type"),this.status=this.getResponseProperty("Status"),this.waitTimeDays=this.getResponseProperty("WaitTimeDays"),this.creationDate=this.getResponseProperty("CreationDate"),this.avatarColor=this.getResponseProperty("AvatarColor")}}class l extends s.r{constructor(e){super(e),this.id=this.getResponseProperty("Id"),this.grantorId=this.getResponseProperty("GrantorId"),this.name=this.getResponseProperty("Name"),this.email=this.getResponseProperty("Email"),this.type=this.getResponseProperty("Type"),this.status=this.getResponseProperty("Status"),this.waitTimeDays=this.getResponseProperty("WaitTimeDays"),this.creationDate=this.getResponseProperty("CreationDate"),this.avatarColor=this.getResponseProperty("AvatarColor")}}class c extends s.r{constructor(e){super(e),this.keyEncrypted=this.getResponseProperty("KeyEncrypted"),this.kdf=this.getResponseProperty("Kdf"),this.kdfIterations=this.getResponseProperty("KdfIterations"),this.kdfMemory=this.getResponseProperty("KdfMemory"),this.kdfParallelism=this.getResponseProperty("KdfParallelism"),this.salt=this.getResponseProperty("Salt")}}class d extends s.r{constructor(e){super(e),this.ciphers=[],this.keyEncrypted=this.getResponseProperty("KeyEncrypted");const t=this.getResponseProperty("Ciphers");null!=t&&(this.ciphers=t.map(e=>new o.N(e)))}}var u=i(11217),h=i(12012),A=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class p{constructor(e){this.apiService=e}getEmergencyAccessTrusted(){return A(this,void 0,void 0,function*(){const e=yield this.apiService.send("GET","/emergency-access/trusted",null,!0,!0);return new r.s(e,a)})}getEmergencyAccessGranted(){return A(this,void 0,void 0,function*(){const e=yield this.apiService.send("GET","/emergency-access/granted",null,!0,!0);return new r.s(e,l)})}getEmergencyAccess(e){return A(this,void 0,void 0,function*(){const t=yield this.apiService.send("GET","/emergency-access/"+e,null,!0,!0);return new a(t)})}getEmergencyGrantorPolicies(e){return A(this,void 0,void 0,function*(){const t=yield this.apiService.send("GET","/emergency-access/"+e+"/policies",null,!0,!0);return new r.s(t,n.i)})}putEmergencyAccess(e,t){return this.apiService.send("PUT","/emergency-access/"+e,t,!0,!1)}deleteEmergencyAccess(e){return this.apiService.send("DELETE","/emergency-access/"+e,null,!0,!1)}postEmergencyAccessInvite(e){return this.apiService.send("POST","/emergency-access/invite",e,!0,!1)}postEmergencyAccessReinvite(e){return this.apiService.send("POST","/emergency-access/"+e+"/reinvite",null,!0,!1)}postEmergencyAccessAccept(e,t){return this.apiService.send("POST","/emergency-access/"+e+"/accept",t,!0,!1)}postEmergencyAccessConfirm(e,t){return this.apiService.send("POST","/emergency-access/"+e+"/confirm",t,!0,!1)}postEmergencyAccessInitiate(e){return this.apiService.send("POST","/emergency-access/"+e+"/initiate",null,!0,!1)}postEmergencyAccessApprove(e){return this.apiService.send("POST","/emergency-access/"+e+"/approve",null,!0,!1)}postEmergencyAccessReject(e){return this.apiService.send("POST","/emergency-access/"+e+"/reject",null,!0,!1)}postEmergencyAccessTakeover(e){return A(this,void 0,void 0,function*(){const t=yield this.apiService.send("POST","/emergency-access/"+e+"/takeover",null,!0,!0);return new c(t)})}postEmergencyAccessPassword(e,t){return A(this,void 0,void 0,function*(){yield this.apiService.send("POST","/emergency-access/"+e+"/password",t,!0,!0)})}postEmergencyAccessView(e){return A(this,void 0,void 0,function*(){const t=yield this.apiService.send("POST","/emergency-access/"+e+"/view",null,!0,!0);return new d(t)})}}p.ɵfac=function(e){return new(e||p)(u.KVO(h.G))},p.ɵprov=u.jDH({token:p,factory:p.ɵfac})},80755(e,t,i){"use strict";i.d(t,{p:()=>Q});var n=i(68108),r=i(54967),s=i(38449),o=i(39306),a=i(56962),l=i(78781),c=i(50451),d=i(7025),u=i(8916),h=i(15740),A=i(57396);class p{}class g{}class v{}class m{static newConstructor(e,t){const i=new m;return i.newMasterPasswordHash=e.masterPasswordAuthenticationHash,i.key=t.masterKeyWrappedUserKey,i}}class f{}class y extends f{}var b=i(81714),C=i(11217),I=i(12012),w=i(89105),B=i(5556),E=i(83541),S=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Q{constructor(e,t,i,n,r,s,o){this.emergencyAccessApiService=e,this.apiService=t,this.keyService=i,this.encryptService=n,this.cipherService=r,this.logService=s,this.masterPasswordService=o}getEmergencyAccess(e){return this.emergencyAccessApiService.getEmergencyAccess(e)}getEmergencyAccessTrusted(){return S(this,void 0,void 0,function*(){const e=yield this.emergencyAccessApiService.getEmergencyAccessTrusted();return e&&0!==e.data.length?e.data.map(e=>A.cY.fromResponse(e)):[]})}getEmergencyAccessGranted(){return S(this,void 0,void 0,function*(){const e=yield this.emergencyAccessApiService.getEmergencyAccessGranted();return e&&0!==e.data.length?e.data.map(e=>A.RR.fromResponse(e)):[]})}getGrantorPolicies(e){return S(this,void 0,void 0,function*(){const t=yield this.emergencyAccessApiService.getEmergencyGrantorPolicies(e);let i=[];return null!=t.data&&t.data.length>0&&(i=t.data.map(e=>new s.P(new r.L(e)))),i})}invite(e,t,i){return S(this,void 0,void 0,function*(){const n=new v;n.email=e.trim(),n.type=t,n.waitTimeDays=i,yield this.emergencyAccessApiService.postEmergencyAccessInvite(n)})}reinvite(e){return this.emergencyAccessApiService.postEmergencyAccessReinvite(e)}update(e,t,i){return S(this,void 0,void 0,function*(){const n=new f;n.type=t,n.waitTimeDays=i,yield this.emergencyAccessApiService.putEmergencyAccess(e,n)})}accept(e,t){return S(this,void 0,void 0,function*(){const i=new p;i.token=t,yield this.emergencyAccessApiService.postEmergencyAccessAccept(e,i)})}confirm(e,t,i,r){return S(this,void 0,void 0,function*(){const s=yield(0,n._)(this.keyService.userKey$(r));if(!s)throw new Error("No user key found");try{this.logService.debug("User's fingerprint: "+(yield this.keyService.getFingerprint(t,i)).join("-"))}catch(a){}const o=new g;o.key=yield this.encryptKey(s,i),yield this.emergencyAccessApiService.postEmergencyAccessConfirm(e,o)})}delete(e){return this.emergencyAccessApiService.deleteEmergencyAccess(e)}requestAccess(e){return this.emergencyAccessApiService.postEmergencyAccessInitiate(e)}approve(e){return this.emergencyAccessApiService.postEmergencyAccessApprove(e)}reject(e){return this.emergencyAccessApiService.postEmergencyAccessReject(e)}getViewOnlyCiphers(e,t){return S(this,void 0,void 0,function*(){const i=yield this.emergencyAccessApiService.postEmergencyAccessView(e),r=yield(0,n._)(this.keyService.userPrivateKey$(t));if(null==r)throw new Error("Active user does not have a private key, cannot get view only ciphers.");const s=yield this.encryptService.decapsulateKeyUnsigned(new o.k(i.keyEncrypted),r);let a=[];const l=i.ciphers.map(e=>new d.o(new c.A(e)));return a=yield Promise.all(l.map(e=>S(this,void 0,void 0,function*(){return e.decrypt(s)}))),a.sort(this.cipherService.getLocaleSortingFunction())})}takeover(e,t,i,r){return S(this,void 0,void 0,function*(){const s=yield this.emergencyAccessApiService.postEmergencyAccessTakeover(e),a=yield(0,n._)(this.keyService.userPrivateKey$(r));if(null==a)throw new Error("Active user does not have a private key, cannot complete a takeover.");const l=yield this.encryptService.decapsulateKeyUnsigned(new o.k(s.keyEncrypted),a);if(null==l)throw new Error("Failed to decrypt grantor key");const c=l;let d;switch(s.kdf){case u.ao.PBKDF2_SHA256:d=new u.n1(s.kdfIterations);break;case u.ao.Argon2id:d=new u.hU(s.kdfIterations,s.kdfMemory,s.kdfParallelism)}const h="string"==typeof s.salt?s.salt:this.masterPasswordService.emailToSalt(i),A=yield this.masterPasswordService.makeMasterPasswordAuthenticationData(t,d,h),p=yield this.masterPasswordService.makeMasterPasswordUnlockData(t,d,h,c),g=m.newConstructor(A,p);yield this.emergencyAccessApiService.postEmergencyAccessPassword(e,g)})}getEmergencyAccessData(){return S(this,void 0,void 0,function*(){const e=yield this.emergencyAccessApiService.getEmergencyAccessTrusted();if(!e||0===e.data.length)return[];const t=new Set([h.c.Confirmed,h.c.RecoveryInitiated,h.c.RecoveryApproved]);return e.data.filter(e=>t.has(e.status))})}getPublicKeys(){return S(this,void 0,void 0,function*(){const e=yield this.getEmergencyAccessData();return yield Promise.all(e.map(e=>S(this,void 0,void 0,function*(){const t=new A._1;return t.id=e.id,t.granteeId=e.granteeId,t.name=e.name,t.email=e.email,t.type=e.type,t.status=e.status,t.waitTimeDays=e.waitTimeDays,t.creationDate=e.creationDate,t.avatarColor=e.avatarColor,t.publicKey=l.A.fromB64ToArray((yield this.apiService.getUserPublicKey(e.granteeId)).publicKey),t})))})}getRotatedData(e,t,i){return S(this,void 0,void 0,function*(){if(null==e)throw new Error("New user key is required for rotation.");const i=[];this.logService.info("Starting emergency access rotation, with trusted keys: ",t);const n=yield this.getPublicKeys();for(const r of n){if(null==t.find(e=>l.A.fromArrayToHex(e)===l.A.fromArrayToHex(r.publicKey)))throw this.logService.info(`Public key for user ${r.granteeId} is not trusted, skipping rotation.`),new Error("Public key for user is not trusted.");const n=yield this.encryptKey(e,r.publicKey),s=new y;s.id=r.id,s.type=r.type,s.waitTimeDays=r.waitTimeDays,s.keyEncrypted=n,i.push(s)}return i})}encryptKey(e,t){return S(this,void 0,void 0,function*(){const i=yield this.encryptService.encapsulateKeyUnsigned(e,t);if(null==i||!i.encryptedString)throw new Error("publicKeyEncryptedUserKey not found");return i.encryptedString})}}Q.ɵfac=function(e){return new(e||Q)(C.KVO(b.J),C.KVO(I.G),C.KVO(u.Lu),C.KVO(w.N),C.KVO(B.p),C.KVO(a.K),C.KVO(E.L))},Q.ɵprov=C.jDH({token:Q,factory:Q.ɵfac})},63629(e,t,i){"use strict";i.d(t,{i:()=>d});var n=i(11217),r=i(26983),s=i(68455),o=i(84110),a=i(78781),l=i(51971),c=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function d(){return(t,i)=>c(this,void 0,void 0,function*(){const t=(0,n.WQX)(s.u),c=(0,n.WQX)(r.Ix),d=(0,n.WQX)(l.H),u=i.url,h=d.getPreviousUrl();if((yield t.getAuthStatus())===o.J.Unlocked){const e=yield d.getAndClearLoginRedirectUrl();return void 0===e||(!!a.A.isNullOrEmpty(e)||c.navigateByUrl(e))}return e(u)?yield d.persistLoginRedirectUrl(u):e(h)&&void 0!==h&&(yield d.persistLoginRedirectUrl(h)),!0});function e(e){if(null==e)return!1;if(a.A.isNullOrEmpty(e))return!1;const t=e.toLocaleLowerCase();return!t.includes("/login-initiated")&&!t.includes("/lock")}}},46131(e,t,i){"use strict";i.d(t,{t:()=>l});var n=i(46758),r=i(75583),s=i(36801),o=i(14041),a=i(58806);class l{}l.ɵfac=function(e){return new(e||l)},l.ɵcmp=o.VBU({type:l,selectors:[["app-danger-zone"]],ngContentSelectors:["*"],decls:7,vars:3,consts:[["content",""],["bitTypography","h1",1,"tw-mt-16","tw-pb-2.5","!tw-text-danger"],[1,"tw-rounded","tw-border","tw-border-solid","tw-border-danger-600","tw-p-5"],[1,"tw-grid","tw-auto-rows-fr","@2xl:tw-grid-cols-2","@3xl:tw-flex","tw-gap-2","@2xl:tw-gap-4","@3xl:tw-gap-2"]],template:function(e,t){1&e&&(o.NAR(),o.j41(0,"h1",1),o.EFF(1),o.nI1(2,"i18n"),o.k0s(),o.j41(3,"div",2)(4,"div",3,0),o.SdG(6),o.k0s()()),2&e&&(o.R7$(),o.JRh(o.bMT(2,1,"dangerZone")))},dependencies:[n.MD,r.E,a.r,s.$Z],encapsulation:2})},50342(e,t,i){"use strict";i.d(t,{V:()=>B});var n=i(84210),r=i(64456),s=i(88744),o=i(25065),a=i(14041),l=i(62166),c=i(46758),d=i(26657),u=i(38620),h=i(56898),A=i(44432),p=i(7730),g=i(45635),v=i(67311),m=i(58806),f=i(25740),y=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function b(e,t){1&e&&a.nrm(0,"app-user-verification-form-input",10)}function C(e,t){if(1&e&&(a.j41(0,"bit-callout",11),a.EFF(1),a.nI1(2,"i18n"),a.k0s()),2&e){const e=a.XpG();a.R7$(),a.JRh(a.bMT(2,1,e.data.apiKeyWarning))}}function I(e,t){if(1&e&&(a.j41(0,"bit-callout",12),a.nI1(1,"i18n"),a.j41(2,"p",13)(3,"strong"),a.EFF(4,"client_id:"),a.k0s(),a.nrm(5,"br"),a.j41(6,"code"),a.EFF(7),a.k0s()(),a.j41(8,"p",13)(9,"strong"),a.EFF(10,"client_secret:"),a.k0s(),a.nrm(11,"br"),a.j41(12,"code"),a.EFF(13),a.k0s()(),a.j41(14,"p",13)(15,"strong"),a.EFF(16,"scope:"),a.k0s(),a.nrm(17,"br"),a.j41(18,"code"),a.EFF(19),a.k0s()(),a.j41(20,"p",14)(21,"strong"),a.EFF(22,"grant_type:"),a.k0s(),a.nrm(23,"br"),a.j41(24,"code"),a.EFF(25),a.k0s()()()),2&e){const e=a.XpG();a.Y8G("title",a.mNQ(a.bMT(1,6,"oauth2ClientCredentials"))),a.R7$(7),a.JRh(e.clientId),a.R7$(6),a.JRh(e.clientSecret),a.R7$(6),a.JRh(e.data.scope),a.R7$(6),a.JRh(e.data.grantType)}}function w(e,t){if(1&e&&(a.j41(0,"button",15)(1,"span"),a.EFF(2),a.nI1(3,"i18n"),a.k0s()()),2&e){const e=a.XpG();a.R7$(2),a.JRh(a.bMT(3,1,e.data.isRotation?"rotateApiKey":"viewApiKey"))}}class B{constructor(e,t,i){this.data=e,this.formBuilder=t,this.userVerificationService=i,this.formGroup=this.formBuilder.group({masterPassword:[null,[n.k0.required]]}),this.submit=()=>y(this,void 0,void 0,function*(){if(this.formGroup.invalid)return void this.formGroup.markAllAsTouched();const e=yield this.userVerificationService.buildRequest(this.formGroup.value.masterPassword).then(e=>this.data.postKey(this.data.entityId,e));this.clientSecret=e.apiKey,this.clientId=`${this.data.keyType}.${this.data.entityId}`})}}B.open=(e,t)=>e.open(B,t),B.ɵfac=function(e){return new(e||B)(a.rXU(s.Qs),a.rXU(n.ok),a.rXU(l.i))},B.ɵcmp=a.VBU({type:B,selectors:[["ng-component"]],decls:16,vars:15,consts:[["bit-dialog","",3,"formGroup","bitSubmit"],["bitDialogTitle",""],["bitDialogContent",""],["bitTypography","body1"],["formControlName","masterPassword",4,"ngIf"],["type","warning",4,"ngIf"],["type","info","icon","bwi-key",3,"title",4,"ngIf"],["bitDialogFooter",""],["type","submit","buttonType","primary","bitButton","","bitFormButton","",4,"ngIf"],["type","button","bitButton","","bitFormButton","","bitDialogClose",""],["formControlName","masterPassword"],["type","warning"],["type","info","icon","bwi-key",3,"title"],["bitTypography","body1",1,"tw-mb-1"],["bitTypography","body1",1,"tw-mb-0"],["type","submit","buttonType","primary","bitButton","","bitFormButton",""]],template:function(e,t){1&e&&(a.j41(0,"form",0)(1,"span",1),a.EFF(2),a.nI1(3,"i18n"),a.k0s(),a.j41(4,"div",2)(5,"p",3),a.EFF(6),a.nI1(7,"i18n"),a.k0s(),a.DNE(8,b,1,0,"app-user-verification-form-input",4)(9,C,3,3,"bit-callout",5)(10,I,26,8,"bit-callout",6),a.k0s(),a.qex(11,7),a.DNE(12,w,4,3,"button",8),a.j41(13,"button",9),a.EFF(14),a.nI1(15,"i18n"),a.k0s(),a.bVm(),a.k0s()),2&e&&(a.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit),a.R7$(2),a.JRh(a.bMT(3,9,t.data.apiKeyTitle)),a.R7$(4),a.JRh(a.bMT(7,11,t.data.apiKeyDescription)),a.R7$(2),a.Y8G("ngIf",!t.clientSecret),a.R7$(),a.Y8G("ngIf",t.clientSecret),a.R7$(),a.Y8G("ngIf",t.clientSecret),a.R7$(2),a.Y8G("ngIf",!t.clientSecret),a.R7$(2),a.SpI(" ",a.bMT(15,13,"close")," "))},dependencies:[o.G,c.bT,n.qT,n.BC,n.cb,n.j4,n.JD,d.$,u.L,h.Q,A.G,p.I,g.m,v.hJ,m.r,r.wV,f.$],encapsulation:2})},33818(e,t,i){"use strict";i.d(t,{U:()=>W});var n=i(46758),r=i(11217),s=i(84210),o=i(71804),a=i(7248);class l extends a.V{}var c=i(37380),d=i(56962),u=i(88744),h=i(81573),A=i(26411),p=i(89479),g=i(75583),v=i(29029),m=i(45383),f=i(37579),y=i(80351),b=i(36801),C=i(89294),I=i(14041),w=i(50700),B=i(37115),E=i(62166),S=i(66316),Q=i(44075),k=i(69855),R=i(7730),F=i(45635),T=i(67311),D=i(86226),P=i(19934),M=i(43759),x=i(58806),V=i(56898),G=i(26657),U=i(38620),O=i(44432),N=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function j(e,t){if(1&e&&(I.qex(0),I.j41(1,"bit-callout",7),I.nI1(2,"i18n"),I.EFF(3),I.nI1(4,"i18n"),I.k0s(),I.j41(5,"strong"),I.EFF(6),I.nI1(7,"i18n"),I.k0s(),I.EFF(8),I.nrm(9,"br"),I.j41(10,"strong"),I.EFF(11),I.nI1(12,"i18n"),I.k0s(),I.EFF(13),I.nrm(14,"br"),I.j41(15,"strong"),I.EFF(16),I.nI1(17,"i18n"),I.k0s(),I.EFF(18),I.bVm()),2&e){const e=I.XpG(2);I.R7$(),I.Y8G("title",I.bMT(2,8,"enabled")),I.R7$(2),I.SpI(" ",I.bMT(4,10,"twoStepLoginProviderEnabled")," "),I.R7$(3),I.SpI("",I.bMT(7,12,"twoFactorDuoClientId"),":"),I.R7$(2),I.SpI(" ",e.clientId," "),I.R7$(3),I.SpI("",I.bMT(12,14,"twoFactorDuoClientSecret"),":"),I.R7$(2),I.SpI(" ",e.clientSecret," "),I.R7$(3),I.SpI("",I.bMT(17,16,"twoFactorDuoApiHostname"),":"),I.R7$(2),I.SpI(" ",e.host," ")}}function Y(e,t){1&e&&(I.qex(0),I.j41(1,"p",8),I.EFF(2),I.nI1(3,"i18n"),I.k0s(),I.j41(4,"bit-form-field")(5,"bit-label"),I.EFF(6),I.nI1(7,"i18n"),I.k0s(),I.nrm(8,"input",9),I.k0s(),I.j41(9,"bit-form-field")(10,"bit-label"),I.EFF(11),I.nI1(12,"i18n"),I.k0s(),I.nrm(13,"input",10),I.k0s(),I.j41(14,"bit-form-field")(15,"bit-label"),I.EFF(16),I.nI1(17,"i18n"),I.k0s(),I.nrm(18,"input",11),I.nI1(19,"i18n"),I.k0s(),I.bVm()),2&e&&(I.R7$(2),I.JRh(I.bMT(3,6,"twoFactorDuoDesc")),I.R7$(4),I.JRh(I.bMT(7,8,"twoFactorDuoClientId")),I.R7$(5),I.JRh(I.bMT(12,10,"twoFactorDuoClientSecret")),I.R7$(5),I.JRh(I.bMT(17,12,"twoFactorDuoApiHostname")),I.R7$(2),I.Y8G("placeholder",I.VkB("",I.bMT(19,14,"ex")," api-xxxxxxxx.duosecurity.com")))}function X(e,t){1&e&&(I.j41(0,"span"),I.EFF(1),I.nI1(2,"i18n"),I.k0s()),2&e&&(I.R7$(),I.JRh(I.bMT(2,1,"enable")))}function z(e,t){1&e&&(I.j41(0,"span"),I.EFF(1),I.nI1(2,"i18n"),I.k0s()),2&e&&(I.R7$(),I.JRh(I.bMT(2,1,"disable")))}function L(e,t){if(1&e&&(I.j41(0,"form",1),I.nI1(1,"i18n"),I.qex(2,2),I.DNE(3,j,19,18,"ng-container",3)(4,Y,20,16,"ng-container",3),I.bVm(),I.qex(5,4),I.j41(6,"button",5),I.DNE(7,X,3,3,"span",3)(8,z,3,3,"span",3),I.k0s(),I.j41(9,"button",6),I.EFF(10),I.nI1(11,"i18n"),I.k0s(),I.bVm(),I.k0s()),2&e){const e=I.XpG();I.Y8G("formGroup",e.formGroup)("bitSubmit",e.submit)("title",I.bMT(1,9,"twoStepLogin"))("subtitle","Duo"),I.R7$(3),I.Y8G("ngIf",e.enabled),I.R7$(),I.Y8G("ngIf",!e.enabled),I.R7$(3),I.Y8G("ngIf",!e.enabled),I.R7$(),I.Y8G("ngIf",e.enabled),I.R7$(2),I.SpI(" ",I.bMT(11,11,"close")," ")}}class W extends C.g{constructor(e,t,i,n,a,l,c,d,u,h){super(t,i,n,a,l,c,h),this.data=e,this.formBuilder=d,this.dialogRef=u,this.toastService=h,this.onChangeStatus=new r.bkB,this.type=o.R.Duo,this.formGroup=this.formBuilder.group({clientId:["",[s.k0.required]],clientSecret:["",[s.k0.required]],host:["",[s.k0.required]]}),this.componentName="app-two-factor-duo",this.submit=()=>N(this,void 0,void 0,function*(){this.formGroup.markAllAsTouched(),this.formGroup.invalid||(this.enabled?yield this.disableMethod():yield this.enable(),this.onChangeStatus.emit(this.enabled))}),this.onClose=()=>{this.dialogRef.close(this.enabled)}}get clientId(){var e;return(null===(e=this.formGroup.get("clientId"))||void 0===e?void 0:e.value)||""}get clientSecret(){var e;return(null===(e=this.formGroup.get("clientSecret"))||void 0===e?void 0:e.value)||""}get host(){var e;return(null===(e=this.formGroup.get("host"))||void 0===e?void 0:e.value)||""}set clientId(e){var t;null===(t=this.formGroup.get("clientId"))||void 0===t||t.setValue(e)}set clientSecret(e){var t;null===(t=this.formGroup.get("clientSecret"))||void 0===t||t.setValue(e)}set host(e){var t;null===(t=this.formGroup.get("host"))||void 0===t||t.setValue(e)}ngOnInit(){const e=Object.create(null,{auth:{get:()=>super.auth}});return N(this,void 0,void 0,function*(){var t;if(!(null===(t=this.data)||void 0===t?void 0:t.authResponse))throw Error("TwoFactorDuoComponent requires a TwoFactorDuoResponse to initialize");e.auth.call(this,this.data.authResponse),this.processResponse(this.data.authResponse.response),this.data.organizationId&&(this.type=o.R.OrganizationDuo,this.organizationId=this.data.organizationId)})}enable(){return N(this,void 0,void 0,function*(){const e=yield this.buildRequestModel(l);let t;e.clientId=this.clientId,e.clientSecret=this.clientSecret,e.host=this.host,t=null!=this.organizationId?yield this.twoFactorService.putTwoFactorOrganizationDuo(this.organizationId,e):yield this.twoFactorService.putTwoFactorDuo(e),this.processResponse(t),this.onUpdated.emit(!0)})}processResponse(e){this.clientId=e.clientId,this.clientSecret=e.clientSecret,this.host=e.host,this.enabled=e.enabled}}W.open=(e,t)=>e.open(W,t),W.ɵfac=function(e){return new(e||W)(I.rXU(u.Qs),I.rXU(c.fz),I.rXU(w.W),I.rXU(B.y),I.rXU(d.K),I.rXU(E.i),I.rXU(S.o),I.rXU(s.ok),I.rXU(Q.ce),I.rXU(k.f))},W.ɵcmp=I.VBU({type:W,selectors:[["app-two-factor-setup-duo"]],outputs:{onChangeStatus:"onChangeStatus"},features:[I.Vt3],decls:1,vars:1,consts:[["autocomplete","off","bit-dialog","",3,"formGroup","bitSubmit","title","subtitle",4,"ngIf"],["autocomplete","off","bit-dialog","",3,"formGroup","bitSubmit","title","subtitle"],["bitDialogContent",""],[4,"ngIf"],["bitDialogFooter",""],["bitButton","","bitFormButton","","type","submit","buttonType","primary"],["bitButton","","bitFormButton","","type","button","buttonType","secondary","bitDialogClose",""],["type","success","icon","bwi-check-circle",3,"title"],["bitTypography","body1"],["bitInput","","type","text","formControlName","clientId","appInputVerbatim",""],["bitInput","","type","password","formControlName","clientSecret","appInputVerbatim",""],["bitInput","","type","text","formControlName","host","appInputVerbatim","",3,"placeholder"]],template:function(e,t){1&e&&I.DNE(0,L,12,13,"form",0),2&e&&I.Y8G("ngIf",t.authed)},dependencies:[n.MD,n.bT,h.P,R.I,F.m,T.hJ,A.L,D.j,P.J,M.h,p.x,g.E,x.r,v.t,V.Q,m.Z,s.X1,s.qT,s.me,s.BC,s.cb,s.j4,s.JD,f.C,G.$,U.L,y.j,O.G,b.$Z],encapsulation:2})},89294(e,t,i){"use strict";i.d(t,{g:()=>g});var n=i(11217),r=i(71804),s=i(16888),o=i(37380),a=i(56962),l=i(14041),c=i(50700),d=i(37115),u=i(62166),h=i(69855),A=i(66316),p=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class g{constructor(e,t,i,s,o,a,l){this.twoFactorService=e,this.i18nService=t,this.platformUtilsService=i,this.logService=s,this.userVerificationService=o,this.dialogService=a,this.toastService=l,this.onUpdated=new n.bkB,this.organizationId=null,this.twoFactorProviderType=r.R,this.enabled=!1,this.authed=!1,this.componentName=""}auth(e){this.secret=e.secret,this.verificationType=e.verificationType,this.authed=!0}disableMethod(){return p(this,void 0,void 0,function*(){if(!(yield this.dialogService.openSimpleDialog({title:{key:"disable"},content:{key:"twoStepDisableDesc"},type:"warning"})))return;const e=yield this.buildRequestModel(s.G);if(void 0===this.type)throw new Error("Two-factor provider type is required");e.type=this.type,null!=this.organizationId?yield this.twoFactorService.putTwoFactorOrganizationDisable(this.organizationId,e):yield this.twoFactorService.putTwoFactorDisable(e),this.enabled=!1,this.toastService.showToast({variant:"success",title:"",message:this.i18nService.t("twoStepDisabled")}),this.onUpdated.emit(!1)})}buildRequestModel(e){return p(this,void 0,void 0,function*(){if(void 0===this.secret||void 0===this.verificationType)throw new Error("User verification data is missing");return this.userVerificationService.buildRequest({secret:this.secret,type:this.verificationType},e,!0)})}}g.ɵfac=function(e){return new(e||g)(l.rXU(o.fz),l.rXU(c.W),l.rXU(d.y),l.rXU(a.K),l.rXU(u.i),l.rXU(A.o),l.rXU(h.f))},g.ɵdir=l.FsC({type:g,outputs:{onUpdated:"onUpdated"}})},43600(e,t,i){"use strict";i.d(t,{q:()=>$t});var n=i(87806),r=i(191),s=i(29236),o=i(73366),a=i(36219),l=i(23327),c=i(30675),d=i(64456),u=i(7356),h=i(71804),A=i(16888),p=i(3633),g=i(37380),v=i(64447),m=i(83516),f=i(98403),y=i(72932),b=i(57768),C=i(46758),I=i(88744),w=i(81573),B=i(29029),E=i(75583),S=i(36801),Q=i(14041),k=i(11217),R=i(50700),F=i(7730),T=i(45635),D=i(67311),P=i(56898),M=i(58806);function x(e,t){if(1&e&&(Q.qex(0),Q.j41(1,"p",7),Q.EFF(2),Q.nI1(3,"i18n"),Q.k0s(),Q.j41(4,"code",8),Q.EFF(5),Q.k0s(),Q.bVm()),2&e){const e=Q.XpG(2);Q.R7$(2),Q.SpI("",Q.bMT(3,2,"twoFactorRecoveryYourCode"),":"),Q.R7$(3),Q.JRh(e.code)}}function V(e,t){1&e&&(Q.qex(0),Q.EFF(1),Q.nI1(2,"i18n"),Q.bVm()),2&e&&(Q.R7$(),Q.SpI(" ",Q.bMT(2,1,"twoFactorRecoveryNoCode")," "))}function G(e,t){if(1&e&&(Q.qex(0,5),Q.DNE(1,x,6,4,"ng-container",6)(2,V,3,3,"ng-container",6),Q.bVm()),2&e){const e=Q.XpG();Q.R7$(),Q.Y8G("ngIf",e.code),Q.R7$(),Q.Y8G("ngIf",!e.code)}}function U(e,t){if(1&e){const e=Q.RV6();Q.j41(0,"button",9),Q.bIt("click",function(){k.eBV(e);const t=Q.XpG();return k.Njj(t.print())}),Q.EFF(1),Q.nI1(2,"i18n"),Q.k0s()}2&e&&(Q.R7$(),Q.SpI(" ",Q.bMT(2,1,"printCode")," "))}class O{constructor(e,t){this.data=e,this.i18nService=t,this.type=-1,this.code="",this.authed=!1,this.twoFactorProviderType=h.R,this.auth(e.response)}auth(e){this.authed=!0,this.processResponse(e.response)}print(){const e=window.open();e&&(e.document.write('<div style="font-size: 18px; text-align: center;"><p>'+this.i18nService.t("twoFactorRecoveryYourCode")+":</p><code style=\"font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;\">"+this.code+'</code></div><p style="text-align: center;">'+new Date+"</p>"),e.onafterprint=()=>e.close(),e.print())}formatString(e){return null==e?"":e.replace(/(.{4})/g,"$1 ").trim().toUpperCase()}processResponse(e){this.code=this.formatString(e.code)}static open(e,t){return e.open(O,t)}}O.ɵfac=function(e){return new(e||O)(Q.rXU(I.Qs),Q.rXU(R.W))},O.ɵcmp=Q.VBU({type:O,selectors:[["app-two-factor-recovery"]],decls:9,vars:11,consts:[["dialogSize","default",3,"title","subtitle"],["bitDialogContent","",4,"ngIf"],["bitDialogFooter",""],["bitButton","","type","button","buttonType","primary",3,"click",4,"ngIf"],["bitButton","","type","button","buttonType","secondary","bitDialogClose",""],["bitDialogContent",""],[4,"ngIf"],["bitTypography","body1",1,"tw-text-center"],[1,"tw-text-lg","tw-w-full","tw-flex","tw-justify-center"],["bitButton","","type","button","buttonType","primary",3,"click"]],template:function(e,t){1&e&&(Q.j41(0,"bit-dialog",0),Q.nI1(1,"i18n"),Q.nI1(2,"i18n"),Q.DNE(3,G,3,2,"ng-container",1),Q.qex(4,2),Q.DNE(5,U,3,3,"button",3),Q.j41(6,"button",4),Q.EFF(7),Q.nI1(8,"i18n"),Q.k0s(),Q.bVm(),Q.k0s()),2&e&&(Q.Y8G("title",Q.bMT(1,5,"twoStepLogin"))("subtitle",Q.bMT(2,7,"recoveryCodeTitle")),Q.R7$(3),Q.Y8G("ngIf",t.authed),Q.R7$(2),Q.Y8G("ngIf",t.code),Q.R7$(2),Q.SpI(" ",Q.bMT(8,9,"close")," "))},dependencies:[C.MD,C.bT,w.P,F.I,T.m,D.hJ,B.t,P.Q,E.E,M.r,S.$Z],encapsulation:2});var N=i(84210),j=i(68108),Y=i(69783),X=i(94735);class z extends A.G{}var L=i(7248);class W extends L.V{}var K=i(56962),Z=i(78781),H=i(26411),J=i(55807),q=i(89479),$=i(26477),_=i(80351),ee=i(45383),te=i(37579),ie=i(89294),ne=i(44075),re=i(66316),se=i(69855),oe=i(62166),ae=i(37115),le=i(35500),ce=i(1601),de=i(86226),ue=i(19934),he=i(43759),Ae=i(58384),pe=i(57178),ge=i(44432),ve=i(26657),me=i(38620),fe=i(54471),ye=i(57083),be=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function Ce(e,t){1&e&&(Q.qex(0),Q.j41(1,"bit-callout",12),Q.nI1(2,"i18n"),Q.j41(3,"p",13),Q.EFF(4),Q.nI1(5,"i18n"),Q.k0s(),Q.EFF(6),Q.nI1(7,"i18n"),Q.k0s(),Q.j41(8,"p",13),Q.EFF(9),Q.nI1(10,"i18n"),Q.k0s(),Q.bVm()),2&e&&(Q.R7$(),Q.Y8G("title",Q.mNQ(Q.bMT(2,5,"enabled"))),Q.R7$(3),Q.JRh(Q.bMT(5,7,"twoStepLoginProviderEnabled")),Q.R7$(2),Q.SpI(" ",Q.bMT(7,9,"twoStepAuthenticatorReaddDesc")," "),Q.R7$(3),Q.JRh(Q.bMT(10,11,"twoStepAuthenticatorNeedApp")))}function Ie(e,t){if(1&e){const e=Q.RV6();Q.qex(0),Q.j41(1,"p"),Q.EFF(2),Q.nI1(3,"i18n"),Q.j41(4,"a",14),Q.bIt("click",function(){k.eBV(e);const t=Q.XpG(2);return k.Njj(t.launchExternalUrl("https://getaegis.app"))}),Q.EFF(5,"Aegis"),Q.k0s(),Q.EFF(6),Q.nI1(7,"i18n"),Q.j41(8,"a",14),Q.bIt("click",function(){k.eBV(e);const t=Q.XpG(2);return k.Njj(t.launchExternalUrl("https://2fas.com"))}),Q.EFF(9,"2FAS"),Q.k0s(),Q.EFF(10),Q.nI1(11,"i18n"),Q.j41(12,"a",14),Q.bIt("click",function(){k.eBV(e);const t=Q.XpG(2);return k.Njj(t.launchBitwardenUrl("https://bitwarden.com/products/authenticator/"))}),Q.EFF(13,"Bitwarden Authenticator"),Q.k0s(),Q.EFF(14),Q.nI1(15,"i18n"),Q.k0s(),Q.j41(16,"p",15)(17,"a",16),Q.nrm(18,"img",17),Q.k0s(),Q.j41(19,"a",18),Q.nrm(20,"img",19),Q.k0s()(),Q.EFF(21),Q.nI1(22,"i18n"),Q.bVm()}2&e&&(Q.R7$(2),Q.SpI(" ",Q.bMT(3,5,"twoStepAuthenticatorInstructionPrefix")," "),Q.R7$(4),Q.SpI(" ",Q.bMT(7,7,"twoStepAuthenticatorInstructionInfix1")," "),Q.R7$(4),Q.SpI(" ",Q.bMT(11,9,"twoStepAuthenticatorInstructionInfix2")," "),Q.R7$(4),Q.SpI(" ",Q.bMT(15,11,"twoStepAuthenticatorInstructionSuffix")," "),Q.R7$(7),Q.SpI(" ",Q.bMT(22,13,"twoStepAuthenticatorScanCodeV2")," "))}function we(e,t){1&e&&Q.nrm(0,"hr")}function Be(e,t){1&e&&(Q.qex(0,20),Q.nrm(1,"bit-icon",21),Q.j41(2,"p"),Q.EFF(3),Q.nI1(4,"i18n"),Q.k0s(),Q.bVm()),2&e&&(Q.R7$(3),Q.SpI(" ",Q.bMT(4,1,"twoStepAuthenticatorQRCanvasError")," "))}function Ee(e,t){1&e&&Q.nrm(0,"canvas",22)}function Se(e,t){1&e&&(Q.j41(0,"bit-form-field",23)(1,"bit-label"),Q.EFF(2),Q.nI1(3,"i18n"),Q.k0s(),Q.nrm(4,"input",24),Q.k0s()),2&e&&(Q.Y8G("disableMargin",!0),Q.R7$(2),Q.JRh(Q.bMT(3,2,"twoStepAuthenticatorEnterCodeV2")))}function Qe(e,t){if(1&e){const e=Q.RV6();Q.j41(0,"form",1),Q.nI1(1,"i18n"),Q.nI1(2,"i18n"),Q.qex(3,2),Q.DNE(4,Ce,11,13,"ng-container",3)(5,Ie,23,15,"ng-container",3)(6,we,1,0,"hr",3),Q.j41(7,"p",4),Q.DNE(8,Be,5,3,"ng-container",5)(9,Ee,1,0,"canvas",6),Q.nrm(10,"br"),Q.j41(11,"code",7),Q.nI1(12,"i18n"),Q.EFF(13),Q.k0s()(),Q.DNE(14,Se,5,4,"bit-form-field",8),Q.bVm(),Q.qex(15,9),Q.j41(16,"button",10),Q.bIt("click",function(){k.eBV(e);const t=Q.XpG();return k.Njj(t.validateTokenControl())}),Q.EFF(17),Q.nI1(18,"i18n"),Q.k0s(),Q.j41(19,"button",11),Q.EFF(20),Q.nI1(21,"i18n"),Q.k0s(),Q.bVm(),Q.k0s()}if(2&e){const e=Q.XpG();Q.Y8G("formGroup",e.formGroup)("bitSubmit",e.submit)("title",Q.bMT(1,15,"twoStepLogin"))("subtitle",Q.bMT(2,17,"authenticatorAppTitle")),Q.R7$(4),Q.Y8G("ngIf",e.enabled),Q.R7$(),Q.Y8G("ngIf",!e.enabled),Q.R7$(),Q.Y8G("ngIf",e.enabled),Q.R7$(2),Q.Y8G("ngIf",e.qrScriptError),Q.R7$(),Q.Y8G("ngIf",!e.qrScriptError),Q.R7$(2),Q.Y8G("appA11yTitle",Q.mNQ(Q.bMT(12,19,"key"))),Q.R7$(2),Q.JRh(e.key),Q.R7$(),Q.Y8G("ngIf",!e.enabled),Q.R7$(3),Q.SpI(" ",Q.bMT(18,21,e.enabled?"disable":"enable")," "),Q.R7$(3),Q.SpI(" ",Q.bMT(21,23,"close")," ")}}class ke extends ie.g{constructor(e,t,i,n,r,s,o,a,l,c,d,u){super(i,n,o,a,r,c,u),this.data=e,this.dialogRef=t,this.formBuilder=s,this.accountService=l,this.configService=d,this.toastService=u,this.onChangeStatus=new k.bkB,this.type=h.R.Authenticator,this.componentName="app-two-factor-authenticator",this.qrScriptError=!1,this.formGroup=this.formBuilder.group({token:new N.MJ(null,[N.k0.required,N.k0.minLength(6)])}),this.submit=()=>be(this,void 0,void 0,function*(){this.formGroup.invalid&&!this.enabled||(this.enabled?(yield this.disableMethod(),yield this.dialogRef.close(this.enabled)):yield this.enable(),this.onChangeStatus.emit(this.enabled))}),this.qrScript=window.document.createElement("script"),this.qrScript.src="scripts/qrious.min.js",this.qrScript.async=!0}ngOnInit(){return be(this,void 0,void 0,function*(){window.document.body.appendChild(this.qrScript),yield this.auth(this.data)})}ngOnDestroy(){window.document.body.removeChild(this.qrScript)}validateTokenControl(){this.formGroup.controls.token.markAsTouched()}auth(e){const t=Object.create(null,{auth:{get:()=>super.auth}});return be(this,void 0,void 0,function*(){return t.auth.call(this,e),this.processResponse(e.response)})}enable(){return be(this,void 0,void 0,function*(){const e=yield this.buildRequestModel(W);e.token=this.formGroup.value.token,e.key=this.key,e.userVerificationToken=this.userVerificationToken;const t=yield this.twoFactorService.putTwoFactorAuthenticator(e);yield this.processResponse(t),this.onUpdated.emit(!0)})}disableMethod(){return be(this,void 0,void 0,function*(){if(!(yield this.dialogService.openSimpleDialog({title:{key:"disable"},content:{key:"twoStepDisableDesc"},type:"warning"})))return;const e=yield this.buildRequestModel(z);e.type=this.type,e.key=this.key,e.userVerificationToken=this.userVerificationToken,yield this.twoFactorService.deleteTwoFactorAuthenticator(e),this.enabled=!1,this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("twoStepDisabled")}),this.onUpdated.emit(!1)})}processResponse(e){return be(this,void 0,void 0,function*(){this.formGroup.get("token").setValue(null),this.enabled=e.enabled,this.key=e.key,this.userVerificationToken=e.userVerificationToken,yield this.waitForQRiousToLoadOrError().catch(e=>{this.logService.error(e),this.qrScriptError=!0}),yield this.createQRCode()})}waitForQRiousToLoadOrError(){return be(this,void 0,void 0,function*(){return void 0!==window.QRious||this.qrScriptError?Promise.resolve():new Promise((e,t)=>{this.qrScript.onload=()=>e(),this.qrScript.onerror=()=>t(new Error(this.i18nService.t("twoStepAuthenticatorQRCanvasError")))})})}createQRCode(){return be(this,void 0,void 0,function*(){if(this.qrScriptError)return;const e=yield(0,j._)(this.accountService.activeAccount$.pipe((0,Y.T)(e=>null==e?void 0:e.email)));new window.QRious({element:document.getElementById("qr"),value:"otpauth://totp/Vaultwarden:"+Z.A.encodeRFC3986URIComponent(e)+"?secret="+encodeURIComponent(this.key)+"&issuer=Vaultwarden",size:160})})}static open(e,t){return e.open(ke,t)}launchExternalUrl(e){return be(this,void 0,void 0,function*(){const t=new URL(e).hostname;(yield this.dialogService.openSimpleDialog({title:this.i18nService.t("continueToExternalUrlTitle",t),content:this.i18nService.t("continueToExternalUrlDesc"),type:"info",acceptButtonText:{key:"continue"}}))&&this.platformUtilsService.launchUri(e)})}launchBitwardenUrl(e){return be(this,void 0,void 0,function*(){(yield this.dialogService.openSimpleDialog({title:this.i18nService.t("twoStepContinueToBitwardenUrlTitle"),content:this.i18nService.t("twoStepContinueToBitwardenUrlDesc"),type:"info",acceptButtonText:{key:"continue"}}))&&this.platformUtilsService.launchUri(e)})}}ke.ɵfac=function(e){return new(e||ke)(Q.rXU(I.Qs),Q.rXU(ne.ce),Q.rXU(g.fz),Q.rXU(R.W),Q.rXU(oe.i),Q.rXU(N.ok),Q.rXU(ae.y),Q.rXU(K.K),Q.rXU(le.D),Q.rXU(re.o),Q.rXU(ce.w),Q.rXU(se.f))},ke.ɵcmp=Q.VBU({type:ke,selectors:[["app-two-factor-setup-authenticator"]],outputs:{onChangeStatus:"onChangeStatus"},features:[Q.Vt3],decls:1,vars:1,consts:[["bit-dialog","","dialogSize","default",3,"formGroup","bitSubmit","title","subtitle",4,"ngIf"],["bit-dialog","","dialogSize","default",3,"formGroup","bitSubmit","title","subtitle"],["bitDialogContent",""],[4,"ngIf"],[1,"tw-text-center","tw-mb-0"],["class","tw-mt-2",4,"ngIf"],["id","qr",4,"ngIf"],[3,"appA11yTitle"],[3,"disableMargin",4,"ngIf"],["bitDialogFooter",""],["bitButton","","bitFormButton","","type","submit","buttonType","primary",3,"click"],["bitButton","","bitFormButton","","type","button","buttonType","secondary","bitDialogClose",""],["type","success","icon","bwi-check-circle",3,"title"],["bitTypography","body1"],["bitLink","","target","_blank","rel","noreferrer",3,"click"],[1,"tw-text-center"],["href","https://apps.apple.com/ca/app/bitwarden-authenticator/id6497335175","target","_blank"],["src","../../../images/download_apple_appstore.svg","alt","Download on App Store","max-width","120","height","40"],["href","https://play.google.com/store/apps/details?id=com.bitwarden.authenticator","target","_blank"],["src","../../../images/download_google_playstore.svg","alt","Get it on Google Play","max-width","120","height","40",2,"margin-left","10px"],[1,"tw-mt-2"],["name","bwi-error",1,"tw-text-3xl","tw-text-danger"],["id","qr"],[3,"disableMargin"],["bitInput","","type","text","formControlName","token","appInputVerbatim",""]],template:function(e,t){1&e&&Q.DNE(0,Qe,22,25,"form",0),2&e&&Q.Y8G("ngIf",t.authed)},dependencies:[C.MD,C.bT,N.X1,N.qT,N.me,N.BC,N.cb,N.j4,N.JD,w.P,F.I,T.m,D.hJ,H.L,de.j,ue.J,he.h,J.o,Ae.R,q.x,$.V,pe.g,E.E,M.r,_.j,ge.G,B.t,P.Q,ee.Z,te.C,ve.$,me.L,X.p,fe.C,ye.q,S.$Z],encapsulation:2});var Re=i(33818),Fe=i(74199);class Te extends L.V{}var De=i(3892),Pe=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function Me(e,t){if(1&e&&(Q.qex(0),Q.j41(1,"bit-callout",7),Q.nI1(2,"i18n"),Q.EFF(3),Q.nI1(4,"i18n"),Q.k0s(),Q.j41(5,"strong"),Q.EFF(6),Q.nI1(7,"i18n"),Q.k0s(),Q.EFF(8),Q.bVm()),2&e){const e=Q.XpG(2);Q.R7$(),Q.Y8G("title",Q.mNQ(Q.bMT(2,5,"enabled"))),Q.R7$(2),Q.SpI(" ",Q.bMT(4,7,"twoStepLoginProviderEnabled")," "),Q.R7$(3),Q.SpI("",Q.bMT(7,9,"email"),":"),Q.R7$(2),Q.SpI(" ",e.email," ")}}function xe(e,t){1&e&&(Q.j41(0,"span",13),Q.EFF(1),Q.nI1(2,"i18n"),Q.k0s()),2&e&&(Q.R7$(),Q.SpI(" ",Q.bMT(2,1,"emailSent")," "))}function Ve(e,t){if(1&e&&(Q.qex(0),Q.j41(1,"p"),Q.EFF(2),Q.nI1(3,"i18n"),Q.k0s(),Q.j41(4,"bit-form-field")(5,"bit-label"),Q.EFF(6),Q.nI1(7,"i18n"),Q.k0s(),Q.nrm(8,"input",8),Q.k0s(),Q.j41(9,"div",9)(10,"button",10),Q.EFF(11),Q.nI1(12,"i18n"),Q.k0s(),Q.DNE(13,xe,3,3,"span",11),Q.k0s(),Q.j41(14,"bit-form-field")(15,"bit-label"),Q.EFF(16),Q.nI1(17,"i18n"),Q.k0s(),Q.nrm(18,"input",12),Q.k0s(),Q.bVm()),2&e){const e=Q.XpG(2);Q.R7$(2),Q.JRh(Q.bMT(3,6,"twoFactorEmailDesc")),Q.R7$(4),Q.SpI("1. ",Q.bMT(7,8,"twoFactorEmailEnterEmail")),Q.R7$(4),Q.Y8G("bitAction",e.sendEmail),Q.R7$(),Q.SpI(" ",Q.bMT(12,10,"sendEmail")," "),Q.R7$(2),Q.Y8G("ngIf",e.sentEmail),Q.R7$(3),Q.SpI("2. ",Q.bMT(17,12,"twoFactorEmailEnterCode"))}}function Ge(e,t){1&e&&(Q.j41(0,"span"),Q.EFF(1),Q.nI1(2,"i18n"),Q.k0s()),2&e&&(Q.R7$(),Q.JRh(Q.bMT(2,1,"enable")))}function Ue(e,t){1&e&&(Q.j41(0,"span"),Q.EFF(1),Q.nI1(2,"i18n"),Q.k0s()),2&e&&(Q.R7$(),Q.JRh(Q.bMT(2,1,"disable")))}function Oe(e,t){if(1&e&&(Q.j41(0,"form",1),Q.nI1(1,"i18n"),Q.nI1(2,"i18n"),Q.qex(3,2),Q.DNE(4,Me,9,11,"ng-container",3)(5,Ve,19,14,"ng-container",3),Q.bVm(),Q.qex(6,4),Q.j41(7,"button",5),Q.DNE(8,Ge,3,3,"span",3)(9,Ue,3,3,"span",3),Q.k0s(),Q.j41(10,"button",6),Q.EFF(11),Q.nI1(12,"i18n"),Q.k0s(),Q.bVm(),Q.k0s()),2&e){const e=Q.XpG();Q.Y8G("formGroup",e.formGroup)("bitSubmit",e.submit)("title",Q.bMT(1,9,"twoStepLogin"))("subtitle",Q.bMT(2,11,"emailTitle")),Q.R7$(4),Q.Y8G("ngIf",e.enabled),Q.R7$(),Q.Y8G("ngIf",!e.enabled),Q.R7$(3),Q.Y8G("ngIf",!e.enabled),Q.R7$(),Q.Y8G("ngIf",e.enabled),Q.R7$(2),Q.SpI(" ",Q.bMT(12,13,"close")," ")}}class Ne extends ie.g{constructor(e,t,i,n,r,s,o,a,l,c,d){super(t,i,n,r,s,a,d),this.data=e,this.accountService=o,this.formBuilder=l,this.dialogRef=c,this.toastService=d,this.onChangeStatus=new k.bkB,this.type=h.R.Email,this.sentEmail="",this.componentName="app-two-factor-email",this.formGroup=this.formBuilder.group({token:["",[N.k0.required]],email:["",[N.k0.email,N.k0.required]]}),this.submit=()=>Pe(this,void 0,void 0,function*(){if(this.formGroup.markAllAsTouched(),this.enabled)yield this.disableEmail(),this.onChangeStatus.emit(!1);else{if(this.formGroup.invalid)return;yield this.enable(),this.onChangeStatus.emit(!0)}}),this.sendEmail=()=>Pe(this,void 0,void 0,function*(){const e=yield this.buildRequestModel(Fe.v);e.email=this.email,this.emailPromise=this.twoFactorService.postTwoFactorEmailSetup(e),yield this.emailPromise,this.sentEmail=this.email}),this.onClose=()=>{this.dialogRef.close(this.enabled)}}get token(){var e;return(null===(e=this.formGroup.get("token"))||void 0===e?void 0:e.value)||""}set token(e){var t;null===(t=this.formGroup.get("token"))||void 0===t||t.setValue(e||"")}get email(){var e;return(null===(e=this.formGroup.get("email"))||void 0===e?void 0:e.value)||""}set email(e){var t;null===(t=this.formGroup.get("email"))||void 0===t||t.setValue(e||"")}ngOnInit(){return Pe(this,void 0,void 0,function*(){yield this.auth(this.data)})}auth(e){return super.auth(e),this.processResponse(e.response)}disableEmail(){return super.disableMethod()}enable(){return Pe(this,void 0,void 0,function*(){const e=yield this.buildRequestModel(Te);e.email=this.email,e.token=this.token;const t=yield this.twoFactorService.putTwoFactorEmail(e);yield this.processResponse(t),this.onUpdated.emit(!0)})}processResponse(e){return Pe(this,void 0,void 0,function*(){this.token=null,this.email=e.email,this.enabled=e.enabled,this.enabled||null!=this.email&&""!==this.email||(this.email=yield(0,j._)(this.accountService.activeAccount$.pipe((0,Y.T)(e=>null==e?void 0:e.email))))})}static open(e,t){return e.open(Ne,t)}}Ne.ɵfac=function(e){return new(e||Ne)(Q.rXU(I.Qs),Q.rXU(g.fz),Q.rXU(R.W),Q.rXU(ae.y),Q.rXU(K.K),Q.rXU(oe.i),Q.rXU(le.D),Q.rXU(re.o),Q.rXU(N.ok),Q.rXU(ne.ce),Q.rXU(se.f))},Ne.ɵcmp=Q.VBU({type:Ne,selectors:[["app-two-factor-setup-email"]],outputs:{onChangeStatus:"onChangeStatus"},features:[Q.Vt3],decls:1,vars:1,consts:[["bit-dialog","",3,"formGroup","bitSubmit","title","subtitle",4,"ngIf"],["bit-dialog","",3,"formGroup","bitSubmit","title","subtitle"],["bitDialogContent",""],[4,"ngIf"],["bitDialogFooter",""],["bitButton","","bitFormButton","","type","submit","buttonType","primary"],["bitButton","","bitFormButton","","type","button","buttonType","secondary","bitDialogClose",""],["type","success","icon","bwi-check-circle",3,"title"],["bitInput","","type","text","formControlName","email","inputmode","email","appInputVerbatim","false"],[1,"tw-mb-3","tw-flex","tw-items-center"],["bitButton","","type","button","buttonType","primary",3,"bitAction"],["class","tw-text-success tw-ml-3",4,"ngIf"],["bitInput","","type","text","formControlName","token","appInputVerbatim",""],[1,"tw-text-success","tw-ml-3"]],template:function(e,t){1&e&&Q.DNE(0,Oe,13,15,"form",0),2&e&&Q.Y8G("ngIf",t.authed)},dependencies:[te.C,De.p,ve.$,me.L,B.t,P.Q,_.j,ge.G,C.MD,C.bT,w.P,F.I,T.m,D.hJ,H.L,de.j,ue.J,he.h,ee.Z,q.x,N.X1,N.qT,N.me,N.BC,N.cb,N.j4,N.JD,E.E,S.$Z],encapsulation:2});class je extends L.V{}class Ye extends L.V{}var Xe=i(5771),ze=i(93103),Le=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function We(e,t){1&e&&(Q.j41(0,"bit-callout",18),Q.nI1(1,"i18n"),Q.EFF(2),Q.nI1(3,"i18n"),Q.k0s()),2&e&&(Q.Y8G("title",Q.mNQ(Q.bMT(1,3,"enabled"))),Q.R7$(2),Q.SpI(" ",Q.bMT(3,5,"twoStepLoginProviderEnabled")," "))}function Ke(e,t){if(1&e&&(Q.j41(0,"span",22),Q.EFF(1),Q.nI1(2,"i18n"),Q.k0s()),2&e){const e=Q.XpG(2).$implicit;Q.R7$(),Q.SpI(" ",e.name||Q.bMT(2,1,"unnamedKey")," ")}}function Ze(e,t){1&e&&(Q.qex(0),Q.j41(1,"span"),Q.EFF(2),Q.nI1(3,"i18n"),Q.k0s(),Q.bVm()),2&e&&(Q.R7$(2),Q.JRh(Q.bMT(3,1,"webAuthnMigrated")))}function He(e,t){if(1&e&&(Q.qex(0),Q.DNE(1,Ze,4,3,"ng-container",13),Q.bVm()),2&e){const e=Q.XpG(2).$implicit;Q.R7$(),Q.Y8G("ngIf",e.migrated)}}function Je(e,t){1&e&&(Q.nrm(0,"bit-icon",25),Q.nI1(1,"i18n")),2&e&&Q.Y8G("ariaLabel",Q.bMT(1,1,"loading"))}function qe(e,t){if(1&e){const e=Q.RV6();Q.qex(0),Q.DNE(1,Je,2,3,"bit-icon",23),Q.EFF(2," - "),Q.j41(3,"a",24),Q.bIt("click",function(){k.eBV(e);const t=Q.XpG(2).$implicit,i=Q.XpG(2);return k.Njj(i.remove(t))}),Q.EFF(4),Q.nI1(5,"i18n"),Q.k0s(),Q.bVm()}if(2&e){Q.XpG(2);const e=Q.sdS(1);Q.R7$(),Q.Y8G("ngIf",e.loading),Q.R7$(3),Q.JRh(Q.bMT(5,2,"remove"))}}function $e(e,t){if(1&e&&(Q.qex(0),Q.nrm(1,"bit-icon",20),Q.DNE(2,Ke,3,3,"span",21)(3,He,2,1,"ng-container",13)(4,qe,6,4,"ng-container",13),Q.bVm()),2&e){const e=Q.XpG().$implicit,t=Q.sdS(1),i=Q.XpG(2);Q.R7$(2),Q.Y8G("ngIf",e.configured),Q.R7$(),Q.Y8G("ngIf",e.configured&&!t.loading),Q.R7$(),Q.Y8G("ngIf",i.keysConfiguredCount>1&&e.configured)}}function _e(e,t){if(1&e&&(Q.j41(0,"li",19,1),Q.DNE(2,$e,5,3,"ng-container",13),Q.k0s()),2&e){const e=t.$implicit;Q.Y8G("appApiAction",e.removePromise),Q.R7$(2),Q.Y8G("ngIf",e.configured)}}function et(e,t){1&e&&(Q.qex(0),Q.nrm(1,"bit-icon",26),Q.nI1(2,"i18n"),Q.bVm()),2&e&&(Q.R7$(),Q.Y8G("ariaLabel",Q.bMT(2,1,"loading")))}function tt(e,t){1&e&&(Q.qex(0),Q.nrm(1,"bit-icon",26),Q.nI1(2,"i18n"),Q.EFF(3),Q.nI1(4,"i18n"),Q.bVm()),2&e&&(Q.R7$(),Q.Y8G("ariaLabel",Q.bMT(2,2,"loading")),Q.R7$(2),Q.SpI(" ",Q.bMT(4,4,"twoFactorU2fWaiting"),"... "))}function it(e,t){1&e&&(Q.qex(0),Q.nrm(1,"bit-icon",27),Q.EFF(2),Q.nI1(3,"i18n"),Q.bVm()),2&e&&(Q.R7$(2),Q.SpI(" ",Q.bMT(3,1,"twoFactorU2fClickSave")," "))}function nt(e,t){1&e&&(Q.qex(0),Q.nrm(1,"bit-icon",28),Q.EFF(2),Q.nI1(3,"i18n"),Q.bVm()),2&e&&(Q.R7$(2),Q.SpI(" ",Q.bMT(3,1,"twoFactorU2fProblemReadingTryAgain")," "))}function rt(e,t){if(1&e&&(Q.qex(0),Q.DNE(1,tt,5,6,"ng-container",13)(2,it,4,3,"ng-container",13)(3,nt,4,3,"ng-container",13),Q.bVm()),2&e){const e=Q.XpG(2);Q.R7$(),Q.Y8G("ngIf",e.webAuthnListening),Q.R7$(),Q.Y8G("ngIf",e.webAuthnResponse),Q.R7$(),Q.Y8G("ngIf",e.webAuthnError)}}function st(e,t){if(1&e&&(Q.j41(0,"button",29),Q.EFF(1),Q.nI1(2,"i18n"),Q.k0s()),2&e){const e=Q.XpG(2);Q.Y8G("bitAction",e.disable),Q.R7$(),Q.SpI(" ",Q.bMT(2,2,"disableAllKeys")," ")}}function ot(e,t){if(1&e&&(Q.j41(0,"form",3),Q.nI1(1,"i18n"),Q.nI1(2,"i18n"),Q.qex(3,4),Q.DNE(4,We,4,7,"bit-callout",5),Q.j41(5,"ul",6),Q.DNE(6,_e,3,2,"li",7),Q.k0s(),Q.nrm(7,"hr"),Q.j41(8,"p",8),Q.EFF(9),Q.nI1(10,"i18n"),Q.k0s(),Q.j41(11,"ol",8)(12,"li"),Q.EFF(13),Q.nI1(14,"i18n"),Q.k0s(),Q.j41(15,"li"),Q.EFF(16),Q.nI1(17,"i18n"),Q.k0s(),Q.j41(18,"li"),Q.EFF(19),Q.nI1(20,"i18n"),Q.k0s(),Q.j41(21,"li"),Q.EFF(22),Q.nI1(23,"i18n"),Q.k0s()(),Q.j41(24,"div",9)(25,"bit-form-field",10)(26,"bit-label"),Q.EFF(27),Q.nI1(28,"i18n"),Q.k0s(),Q.nrm(29,"input",11),Q.k0s()(),Q.j41(30,"button",12,0),Q.EFF(32),Q.nI1(33,"i18n"),Q.k0s(),Q.DNE(34,et,3,3,"ng-container",13)(35,rt,4,3,"ng-container",13),Q.bVm(),Q.qex(36,14),Q.j41(37,"button",15),Q.EFF(38),Q.nI1(39,"i18n"),Q.k0s(),Q.DNE(40,st,3,4,"button",16),Q.j41(41,"button",17),Q.EFF(42),Q.nI1(43,"i18n"),Q.k0s(),Q.bVm(),Q.k0s()),2&e){const e=Q.sdS(31),t=Q.XpG();Q.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit)("title",Q.bMT(1,21,"twoStepLogin"))("subtitle",Q.bMT(2,23,"webAuthnTitle")),Q.R7$(4),Q.Y8G("ngIf",t.enabled),Q.R7$(2),Q.Y8G("ngForOf",t.keys),Q.R7$(3),Q.SpI("",Q.bMT(10,25,"twoFactorWebAuthnAdd"),":"),Q.R7$(4),Q.JRh(Q.bMT(14,27,"twoFactorU2fGiveName")),Q.R7$(3),Q.JRh(Q.bMT(17,29,"twoFactorU2fPlugInReadKey")),Q.R7$(3),Q.JRh(Q.bMT(20,31,"twoFactorU2fTouchButton")),Q.R7$(3),Q.JRh(Q.bMT(23,33,"twoFactorU2fSaveForm")),Q.R7$(5),Q.JRh(Q.bMT(28,35,"name")),Q.R7$(3),Q.Y8G("bitAction",t.readKey)("disabled",e.loading()||t.webAuthnListening||!t.keyIdAvailable||t.formGroup.invalid),Q.R7$(2),Q.SpI(" ",Q.bMT(33,37,"readKey")," "),Q.R7$(2),Q.Y8G("ngIf",e.loading()),Q.R7$(),Q.Y8G("ngIf",!e.loading()),Q.R7$(2),Q.Y8G("disabled",!t.webAuthnResponse),Q.R7$(),Q.SpI(" ",Q.bMT(39,39,"save")," "),Q.R7$(2),Q.Y8G("ngIf",t.enabled),Q.R7$(2),Q.SpI(" ",Q.bMT(43,41,"close")," ")}}class at extends ie.g{constructor(e,t,i,n,r,s,o,a,l,c){super(i,n,r,o,a,l,c),this.data=e,this.dialogRef=t,this.ngZone=s,this.type=h.R.WebAuthn,this.name="",this.keys=[],this.keyIdAvailable=null,this.keysConfiguredCount=0,this.webAuthnError=!1,this.webAuthnListening=!1,this.webAuthnResponse=null,this.componentName="app-two-factor-webauthn",this.submit=()=>Le(this,void 0,void 0,function*(){return null==this.webAuthnResponse||null==this.keyIdAvailable?Promise.reject():this.enable()}),this.disable=()=>Le(this,void 0,void 0,function*(){yield this.disableMethod(),this.enabled||(this.onUpdated.emit(this.enabled),yield this.dialogRef.close())}),this.readKey=()=>Le(this,void 0,void 0,function*(){if(null==this.keyIdAvailable)return;const e=yield this.buildRequestModel(L.V);this.challengePromise=this.twoFactorService.getTwoFactorWebAuthnChallenge(e);const t=yield this.challengePromise;this.readDevice(t)}),this.formGroup=new N.gE({name:new N.MJ({value:"",disabled:!1},N.k0.required)}),this.auth(e)}auth(e){super.auth(e),this.processResponse(e.response)}enable(){return Le(this,void 0,void 0,function*(){const e=yield this.buildRequestModel(Ye);if(null==this.webAuthnResponse||null==this.keyIdAvailable)throw new Error("WebAuthn response or key ID is missing");e.deviceResponse=this.webAuthnResponse,e.id=this.keyIdAvailable,e.name=this.formGroup.value.name||"";const t=yield this.twoFactorService.putTwoFactorWebAuthn(e);this.processResponse(t),this.toastService.showToast({title:this.i18nService.t("success"),message:this.i18nService.t("twoFactorProviderEnabled"),variant:"success"}),this.onUpdated.emit(t.enabled)})}remove(e){return Le(this,void 0,void 0,function*(){if(this.keysConfiguredCount<=1||null!=e.removePromise)return;const t=null!=e.name?e.name:this.i18nService.t("webAuthnkeyX",e.id);if(!(yield this.dialogService.openSimpleDialog({title:t,content:{key:"removeU2fConfirmation"},type:"warning"})))return;const i=yield this.buildRequestModel(je);i.id=e.id;try{e.removePromise=this.twoFactorService.deleteTwoFactorWebAuthn(i);const t=yield e.removePromise;e.removePromise=null,yield this.processResponse(t)}catch(n){this.logService.error(n)}})}readDevice(e){console.log("listening for key..."),this.resetWebAuthn(!0),navigator.credentials.create({publicKey:e}).then(e=>{this.ngZone.run(()=>{this.webAuthnListening=!1,this.webAuthnResponse=e})}).catch(e=>{console.error(e),this.resetWebAuthn(!1),this.webAuthnError=!0})}resetWebAuthn(e=!1){this.webAuthnResponse=null,this.webAuthnError=!1,this.webAuthnListening=e}findNextAvailableKeyId(e){for(let t=1;t<=e.size+1;t++)if(!e.has(t))return t;throw new Error("Unable to find next available key ID")}processResponse(e){e.keys&&0!==e.keys.length||(e.keys=[]),this.resetWebAuthn(),this.keys=[],this.keyIdAvailable=null;const t=this.formGroup.get("name");t&&(t.enable(),t.setValue("")),this.keysConfiguredCount=0;for(const r of e.keys)this.keysConfiguredCount++,this.keys.push({id:r.id,name:r.name,configured:!0,migrated:r.migrated,removePromise:null});const i=new Set(e.keys.map(e=>e.id)),n=this.findNextAvailableKeyId(i);this.keys.push({id:n,name:"",configured:!1,removePromise:null}),this.keyIdAvailable=n,this.enabled=e.enabled,this.onUpdated.emit(this.enabled)}static open(e,t){return e.open(at,t)}}at.ɵfac=function(e){return new(e||at)(Q.rXU(I.Qs),Q.rXU(ne.ce),Q.rXU(g.fz),Q.rXU(R.W),Q.rXU(ae.y),Q.rXU(k.SKi),Q.rXU(K.K),Q.rXU(oe.i),Q.rXU(re.o),Q.rXU(se.f))},at.ɵcmp=Q.VBU({type:at,selectors:[["app-two-factor-setup-webauthn"]],features:[Q.Vt3],decls:1,vars:1,consts:[["readKeyBtn",""],["removeKeyBtn",""],["bit-dialog","","dialogSize","large",3,"formGroup","bitSubmit","title","subtitle",4,"ngIf"],["bit-dialog","","dialogSize","large",3,"formGroup","bitSubmit","title","subtitle"],["bitDialogContent",""],["type","success","icon","bwi-check-circle",3,"title",4,"ngIf"],[1,"bwi-ul"],[3,"appApiAction",4,"ngFor","ngForOf"],["bitTypography","body1"],[1,"tw-flex"],[1,"tw-basis-1/2"],["bitInput","","type","text","formControlName","name"],["bitButton","","bitFormButton","","type","button","buttonType","secondary",1,"tw-mr-2",3,"bitAction","disabled"],[4,"ngIf"],["bitDialogFooter",""],["bitButton","","bitFormButton","","type","submit","buttonType","primary",3,"disabled"],["bitButton","","bitFormButton","","type","button","buttonType","secondary",3,"bitAction",4,"ngIf"],["bitButton","","bitFormButton","","type","button","buttonType","secondary","bitDialogClose",""],["type","success","icon","bwi-check-circle",3,"title"],[3,"appApiAction"],["name","bwi-key",1,"bwi-li"],["bitTypography","body1","class","tw-font-medium",4,"ngIf"],["bitTypography","body1",1,"tw-font-medium"],["name","bwi-spinner","class","bwi-spin tw-text-muted bwi-fw",3,"ariaLabel",4,"ngIf"],["bitLink","","href","#","appStopClick","",3,"click"],["name","bwi-spinner",1,"bwi-spin","tw-text-muted","bwi-fw",3,"ariaLabel"],["name","bwi-spinner",1,"bwi-spin","tw-text-muted",3,"ariaLabel"],["name","bwi-check-circle",1,"tw-text-success"],["name","bwi-exclamation-triangle",1,"tw-text-danger"],["bitButton","","bitFormButton","","type","button","buttonType","secondary",3,"bitAction"]],template:function(e,t){1&e&&Q.DNE(0,ot,44,43,"form",2),2&e&&Q.Y8G("ngIf",t.authed)},dependencies:[te.C,De.p,ve.$,me.L,B.t,P.Q,_.j,ge.G,C.MD,C.Sq,C.bT,w.P,F.I,T.m,D.hJ,H.L,de.j,ue.J,he.h,J.o,Ae.R,X.p,Xe.k,ze.Y,$.V,pe.g,N.X1,N.qT,N.me,N.BC,N.cb,N.j4,N.JD,E.E,M.r,S.$Z],encapsulation:2});class lt extends L.V{}var ct=i(22191),dt=i(47135),ut=i(90246),ht=i(93199),At=i(36288),pt=i(50352),gt=i(25740),vt=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function mt(e,t){1&e&&(Q.j41(0,"bit-callout",17),Q.nI1(1,"i18n"),Q.EFF(2),Q.nI1(3,"i18n"),Q.k0s()),2&e&&(Q.Y8G("title",Q.mNQ(Q.bMT(1,3,"enabled"))),Q.R7$(2),Q.SpI(" ",Q.bMT(3,5,"twoStepLoginProviderEnabled")," "))}function ft(e,t){1&e&&(Q.j41(0,"bit-form-field"),Q.nrm(1,"input",21),Q.k0s())}function yt(e,t){if(1&e){const e=Q.RV6();Q.j41(0,"div",22)(1,"span",23),Q.EFF(2),Q.k0s(),Q.j41(3,"button",24),Q.nI1(4,"i18n"),Q.bIt("click",function(){k.eBV(e);const t=Q.XpG().index,i=Q.XpG(2);return k.Njj(i.remove(t))}),Q.k0s()()}if(2&e){const e=Q.XpG().index,t=Q.XpG(2);Q.R7$(2),Q.JRh(t.keys[e].existingKey),Q.R7$(),Q.Y8G("label",Q.mNQ(Q.bMT(4,3,"remove")))}}function bt(e,t){if(1&e&&(Q.j41(0,"div",18)(1,"bit-label"),Q.EFF(2),Q.nI1(3,"i18n"),Q.k0s(),Q.DNE(4,ft,2,0,"bit-form-field",19)(5,yt,5,5,"div",20),Q.k0s()),2&e){const e=t.index,i=Q.XpG(2);Q.Y8G("formGroupName",e),Q.R7$(2),Q.JRh(Q.i5U(3,4,"yubikeyX",(e+1).toString())),Q.R7$(2),Q.Y8G("ngIf",!i.keys[e].existingKey),Q.R7$(),Q.Y8G("ngIf",i.keys[e].existingKey)}}function Ct(e,t){if(1&e&&(Q.j41(0,"button",25),Q.EFF(1),Q.nI1(2,"i18n"),Q.k0s()),2&e){const e=Q.XpG(2);Q.Y8G("bitAction",e.disable),Q.R7$(),Q.SpI(" ",Q.bMT(2,2,"disableAllKeys")," ")}}function It(e,t){if(1&e&&(Q.j41(0,"form",1),Q.nI1(1,"i18n"),Q.qex(2,2),Q.DNE(3,mt,4,7,"bit-callout",3),Q.j41(4,"bit-callout",4)(5,"p",5),Q.EFF(6),Q.nI1(7,"i18n"),Q.k0s(),Q.j41(8,"ul",6)(9,"li"),Q.EFF(10),Q.nI1(11,"i18n"),Q.k0s(),Q.j41(12,"li"),Q.EFF(13),Q.nI1(14,"i18n"),Q.k0s()()(),Q.j41(15,"p",5),Q.EFF(16),Q.nI1(17,"i18n"),Q.k0s(),Q.j41(18,"ol",5)(19,"li"),Q.EFF(20),Q.nI1(21,"i18n"),Q.k0s(),Q.j41(22,"li"),Q.EFF(23),Q.nI1(24,"i18n"),Q.k0s(),Q.j41(25,"li"),Q.EFF(26),Q.nI1(27,"i18n"),Q.k0s(),Q.j41(28,"li"),Q.EFF(29),Q.nI1(30,"i18n"),Q.k0s()(),Q.nrm(31,"hr"),Q.j41(32,"div",7),Q.DNE(33,bt,6,7,"div",8),Q.k0s(),Q.j41(34,"p",9),Q.EFF(35),Q.nI1(36,"i18n"),Q.k0s(),Q.j41(37,"bit-form-control",10)(38,"bit-label"),Q.EFF(39),Q.nI1(40,"i18n"),Q.k0s(),Q.nrm(41,"input",11),Q.j41(42,"bit-hint",12),Q.EFF(43),Q.nI1(44,"i18n"),Q.k0s()(),Q.bVm(),Q.qex(45,13),Q.j41(46,"button",14),Q.EFF(47),Q.nI1(48,"i18n"),Q.k0s(),Q.DNE(49,Ct,3,4,"button",15),Q.j41(50,"button",16),Q.EFF(51),Q.nI1(52,"i18n"),Q.k0s(),Q.bVm(),Q.k0s()),2&e){const e=Q.XpG();Q.Y8G("formGroup",e.formGroup)("bitSubmit",e.submit)("title",Q.bMT(1,22,"twoStepLogin"))("subtitle","YubiKey"),Q.R7$(3),Q.Y8G("ngIf",e.enabled),Q.R7$(3),Q.JRh(Q.bMT(7,24,"twoFactorYubikeyWarning")),Q.R7$(4),Q.JRh(Q.bMT(11,26,"twoFactorYubikeySupportUsb")),Q.R7$(3),Q.JRh(Q.bMT(14,28,"twoFactorYubikeySupportMobile")),Q.R7$(3),Q.SpI("",Q.bMT(17,30,"twoFactorYubikeyAdd"),":"),Q.R7$(4),Q.JRh(Q.bMT(21,32,"twoFactorYubikeyPlugIn")),Q.R7$(3),Q.JRh(Q.bMT(24,34,"twoFactorYubikeySelectKey")),Q.R7$(3),Q.JRh(Q.bMT(27,36,"twoFactorYubikeyTouchButton")),Q.R7$(3),Q.JRh(Q.bMT(30,38,"twoFactorYubikeySaveForm")),Q.R7$(4),Q.Y8G("ngForOf",e.keys),Q.R7$(2),Q.JRh(Q.bMT(36,40,"nfcSupport")),Q.R7$(2),Q.Y8G("disableMargin",!0),Q.R7$(2),Q.JRh(Q.bMT(40,42,"twoFactorYubikeySupportsNfc")),Q.R7$(4),Q.JRh(Q.bMT(44,44,"twoFactorYubikeySupportsNfcDesc")),Q.R7$(4),Q.SpI(" ",Q.bMT(48,46,"save")," "),Q.R7$(2),Q.Y8G("ngIf",e.enabled),Q.R7$(),Q.Y8G("bitDialogClose",e.enabled),Q.R7$(),Q.SpI(" ",Q.bMT(52,48,"close")," ")}}class wt extends ie.g{get keysFormControl(){var e;return null===(e=this.formGroup)||void 0===e?void 0:e.controls.formKeys.controls}get anyKeyHasNfcFormControl(){var e;return null===(e=this.formGroup)||void 0===e?void 0:e.controls.anyKeyHasNfc}constructor(e,t,i,n,r,s,o,a,l){super(t,i,n,r,s,o,l),this.data=e,this.formBuilder=a,this.toastService=l,this.type=h.R.Yubikey,this.keys=[],this.anyKeyHasNfc=!1,this.componentName="app-two-factor-yubikey",this.submit=()=>vt(this,void 0,void 0,function*(){this.formGroup&&(this.formGroup.markAllAsTouched(),this.formGroup.invalid||(yield this.enable()))}),this.disable=()=>vt(this,void 0,void 0,function*(){if(yield this.disableMethod(),!this.enabled)for(let e=0;e<this.keys.length;e++)this.remove(e)})}ngOnInit(){this.auth(this.data),this.formGroup=this.formBuilder.group({formKeys:this.formBuilder.array([]),anyKeyHasNfc:this.formBuilder.control(this.anyKeyHasNfc)}),this.refreshFormArrayData()}refreshFormArrayData(){if(!this.formGroup)return;const e=this.formGroup.get("formKeys");e.clear(),this.keys.forEach(t=>{const i=this.formBuilder.group({key:t.key,existingKey:t.existingKey});e.push(i)})}auth(e){super.auth(e),this.processResponse(e.response)}enable(){return vt(this,void 0,void 0,function*(){var e,t,i,n,r,s,o,a,l,c,d;if(!this.formGroup)return;const u=this.formGroup.controls.formKeys.value,h=yield this.buildRequestModel(lt);h.key1=null!=u&&u.length>0&&null!==(t=null===(e=u[0])||void 0===e?void 0:e.key)&&void 0!==t?t:"",h.key2=null!=u&&u.length>1&&null!==(n=null===(i=u[1])||void 0===i?void 0:i.key)&&void 0!==n?n:"",h.key3=null!=u&&u.length>2&&null!==(s=null===(r=u[2])||void 0===r?void 0:r.key)&&void 0!==s?s:"",h.key4=null!=u&&u.length>3&&null!==(a=null===(o=u[3])||void 0===o?void 0:o.key)&&void 0!==a?a:"",h.key5=null!=u&&u.length>4&&null!==(c=null===(l=u[4])||void 0===l?void 0:l.key)&&void 0!==c?c:"",h.nfc=null!==(d=this.formGroup.value.anyKeyHasNfc)&&void 0!==d&&d,this.processResponse(yield this.twoFactorService.putTwoFactorYubiKey(h)),this.refreshFormArrayData(),this.toastService.showToast({title:this.i18nService.t("success"),message:this.i18nService.t("yubikeysUpdated"),variant:"success"}),this.onUpdated.emit(this.enabled)})}remove(e){this.keys[e].key="",this.keys[e].existingKey="",this.keysFormControl&&this.keysFormControl[e]&&this.keysFormControl[e].setValue({existingKey:"",key:""})}processResponse(e){this.enabled=e.enabled,this.anyKeyHasNfc=e.nfc||!e.enabled,this.keys=[{key:e.key1,existingKey:this.padRight(e.key1)},{key:e.key2,existingKey:this.padRight(e.key2)},{key:e.key3,existingKey:this.padRight(e.key3)},{key:e.key4,existingKey:this.padRight(e.key4)},{key:e.key5,existingKey:this.padRight(e.key5)}]}padRight(e,t="•",i=44){if(null==e||null==t||e.length>=i)return e;const n=(i-e.length)/t.length;for(let r=0;r<n;r++)e+=t;return e}static open(e,t){return e.open(wt,t)}}wt.ɵfac=function(e){return new(e||wt)(Q.rXU(I.Qs),Q.rXU(g.fz),Q.rXU(R.W),Q.rXU(ae.y),Q.rXU(K.K),Q.rXU(oe.i),Q.rXU(re.o),Q.rXU(N.ok),Q.rXU(se.f))},wt.ɵcmp=Q.VBU({type:wt,selectors:[["app-two-factor-setup-yubikey"]],features:[Q.Vt3],decls:1,vars:1,consts:[["bit-dialog","","dialogSize","large",3,"formGroup","bitSubmit","title","subtitle",4,"ngIf"],["bit-dialog","","dialogSize","large",3,"formGroup","bitSubmit","title","subtitle"],["bitDialogContent",""],["type","success","icon","bwi-check-circle",3,"title",4,"ngIf"],["type","warning"],["bitTypography","body1"],["bitTypography","body1",1,"tw-mb-0"],["formArrayName","formKeys",1,"tw-flex","tw-flex-col","tw-mt-4"],[3,"formGroupName",4,"ngFor","ngForOf"],["bitTypography","body1",1,"tw-font-medium","tw-mb-2"],[3,"disableMargin"],["bitCheckbox","","type","checkbox","formControlName","anyKeyHasNfc"],[1,"tw-text-sm"],["bitDialogFooter",""],["bitButton","","bitFormButton","","type","submit","buttonType","primary"],["bitButton","","bitFormButton","","type","button","buttonType","secondary",3,"bitAction",4,"ngIf"],["bitButton","","bitFormButton","","type","button","buttonType","secondary",3,"bitDialogClose"],["type","success","icon","bwi-check-circle",3,"title"],[3,"formGroupName"],[4,"ngIf"],["class","tw-flex tw-justify-between tw-mb-4",4,"ngIf"],["bitInput","","type","password","formControlName","key","appInputVerbatim",""],[1,"tw-flex","tw-justify-between","tw-mb-4"],[1,"tw-mr-2","tw-self-center"],["bitIconButton","bwi-minus-circle","type","button","buttonType","dangerGhost",3,"click","label"],["bitButton","","bitFormButton","","type","button","buttonType","secondary",3,"bitAction"]],template:function(e,t){1&e&&Q.DNE(0,It,53,50,"form",0),2&e&&Q.Y8G("ngIf",t.authed)},dependencies:[C.MD,C.Sq,C.bT,N.X1,N.qT,N.me,N.Zm,N.BC,N.cb,N.j4,N.JD,N.$R,N.v8,X.p,ye.q,w.P,F.I,T.m,D.hJ,H.L,ut.f,de.j,ht.I,ue.J,he.h,B.t,P.Q,ct.Q,At.s,_.j,ge.G,dt.q,pt.P,$.V,E.E,M.r,q.x,te.C,De.p,ve.$,me.L,gt.$],encapsulation:2});var Bt=i(6804),Et=i(18499),St=i(58329),Qt=i(75556),kt=i(90300),Rt=i(4017),Ft=i(91962),Tt=i(49112),Dt=i(84522),Pt=i(10672),Mt=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const xt=e=>({"mt-5":e});function Vt(e,t){1&e&&Q.nrm(0,"app-header")}function Gt(e,t){1&e&&(Q.j41(0,"h1"),Q.EFF(1),Q.nI1(2,"i18n"),Q.k0s()),2&e&&(Q.R7$(),Q.JRh(Q.bMT(2,1,"twoStepLogin")))}function Ut(e,t){1&e&&(Q.j41(0,"h1"),Q.EFF(1),Q.nI1(2,"i18n"),Q.k0s()),2&e&&(Q.R7$(),Q.JRh(Q.bMT(2,1,"twoStepLoginEnforcement")))}function Ot(e,t){if(1&e&&(Q.j41(0,"div",6),Q.DNE(1,Gt,3,3,"h1",1)(2,Ut,3,3,"h1",1),Q.k0s()),2&e){const e=Q.XpG();Q.R7$(),Q.Y8G("ngIf",!e.organizationId||!e.isEnterpriseOrg),Q.R7$(),Q.Y8G("ngIf",e.organizationId&&e.isEnterpriseOrg)}}function Nt(e,t){1&e&&(Q.j41(0,"p"),Q.EFF(1),Q.nI1(2,"i18n"),Q.k0s()),2&e&&(Q.R7$(),Q.JRh(Q.bMT(2,1,"twoStepLoginDesc")))}function jt(e,t){1&e&&(Q.qex(0),Q.EFF(1),Q.nI1(2,"i18n"),Q.j41(3,"a",8),Q.EFF(4),Q.nI1(5,"i18n"),Q.k0s(),Q.nrm(6,"br"),Q.EFF(7),Q.nI1(8,"i18n"),Q.nrm(9,"br")(10,"br"),Q.j41(11,"p"),Q.EFF(12),Q.nI1(13,"i18n"),Q.k0s(),Q.bVm()),2&e&&(Q.R7$(),Q.SpI(" ",Q.bMT(2,4,"twoStepLoginEnterpriseDescStart")," "),Q.R7$(3),Q.SpI("",Q.bMT(5,6,"twoStepLoginPolicy"),"."),Q.R7$(3),Q.SpI(" ",Q.bMT(8,8,"twoStepLoginOrganizationDuoDesc")," "),Q.R7$(5),Q.JRh(Q.bMT(13,10,"twoStepLoginOrganizationSsoDesc")))}function Yt(e,t){1&e&&(Q.EFF(0),Q.nI1(1,"i18n"),Q.nrm(2,"br"),Q.EFF(3),Q.nI1(4,"i18n")),2&e&&(Q.SpI(" ",Q.bMT(1,2,"twoStepLoginTeamsDesc")," "),Q.R7$(3),Q.SpI(" ",Q.bMT(4,4,"twoStepLoginOrganizationDuoDesc")," "))}function Xt(e,t){if(1&e&&(Q.qex(0),Q.j41(1,"p"),Q.DNE(2,jt,14,12,"ng-container",7)(3,Yt,5,6,"ng-template",null,0,Q.C5r),Q.k0s(),Q.bVm()),2&e){const e=Q.sdS(4),t=Q.XpG();Q.R7$(2),Q.Y8G("ngIf",t.isEnterpriseOrg)("ngIfElse",e)}}function zt(e,t){if(1&e){const e=Q.RV6();Q.j41(0,"bit-callout",9)(1,"p"),Q.EFF(2),Q.k0s(),Q.j41(3,"button",10),Q.bIt("click",function(){k.eBV(e);const t=Q.XpG();return k.Njj(t.recoveryCode())}),Q.EFF(4),Q.nI1(5,"i18n"),Q.k0s()()}if(2&e){const e=Q.XpG();Q.R7$(2),Q.JRh(e.recoveryCodeWarningMessage),Q.R7$(2),Q.SpI(" ",Q.bMT(5,2,"viewRecoveryCode")," ")}}function Lt(e,t){1&e&&(Q.j41(0,"small"),Q.nrm(1,"bit-icon",11),Q.nI1(2,"i18n"),Q.k0s()),2&e&&(Q.R7$(),Q.Y8G("ariaLabel",Q.bMT(2,1,"loading")))}function Wt(e,t){1&e&&(Q.j41(0,"bit-callout",9),Q.EFF(1),Q.nI1(2,"i18n"),Q.k0s()),2&e&&(Q.R7$(),Q.SpI(" ",Q.bMT(2,1,"twoStepLoginPolicyUserWarning")," "))}function Kt(e,t){1&e&&(Q.qex(0),Q.nrm(1,"bit-icon",22),Q.nI1(2,"i18n"),Q.bVm()),2&e&&(Q.R7$(),Q.Y8G("ariaLabel",Q.bMT(2,1,"enabled")))}function Zt(e,t){1&e&&Q.nrm(0,"app-premium-badge",23)}function Ht(e,t){if(1&e){const e=Q.RV6();Q.j41(0,"button",24),Q.bIt("click",function(){k.eBV(e);const t=Q.XpG().$implicit,i=Q.XpG();return k.Njj(i.disablePremium2faTypeForNonPremiumUser(t.type))}),Q.EFF(1),Q.nI1(2,"i18n"),Q.k0s()}2&e&&(Q.R7$(),Q.SpI(" ",Q.bMT(2,1,"disable")," "))}function Jt(e,t){if(1&e){const e=Q.RV6();Q.j41(0,"button",25),Q.nI1(1,"async"),Q.bIt("click",function(){k.eBV(e);const t=Q.XpG().$implicit,i=Q.XpG();return k.Njj(i.manage(t.type))}),Q.EFF(2),Q.nI1(3,"i18n"),Q.k0s()}if(2&e){const e=Q.XpG().$implicit,t=Q.XpG();Q.Y8G("disabled",!Q.bMT(1,2,t.canAccessPremium$)&&e.premium),Q.R7$(2),Q.SpI(" ",Q.bMT(3,4,"manage")," ")}}function qt(e,t){if(1&e&&(Q.j41(0,"bit-item")(1,"div",12),Q.nrm(2,"auth-two-factor-icon",13),Q.k0s(),Q.j41(3,"div",14)(4,"h3",15)(5,"div",16),Q.EFF(6),Q.k0s(),Q.DNE(7,Kt,3,3,"ng-container",1)(8,Zt,1,0,"app-premium-badge",17),Q.k0s(),Q.j41(9,"div",18),Q.EFF(10),Q.k0s()(),Q.j41(11,"bit-item-action",19),Q.nVh(12,Ht,3,3,"button",20),Q.nI1(13,"async"),Q.vZN(14,Jt,4,6,"button",21),Q.k0s()()),2&e){const e=t.$implicit,i=Q.XpG();Q.HbH(Q.VkB("tw-py-4 providers-2fa-",e.type)),Q.R7$(2),Q.Y8G("provider",e.type)("name",e.name),Q.R7$(3),Q.Aen(e.enabled||e.premium?"display:inline-block":""),Q.R7$(),Q.SpI(" ",e.name," "),Q.R7$(),Q.Y8G("ngIf",e.enabled),Q.R7$(),Q.Y8G("ngIf",e.premium),Q.R7$(2),Q.JRh(e.description),Q.R7$(2),Q.vxM(e.premium&&e.enabled&&!Q.bMT(13,12,i.canAccessPremium$)?12:14)}}class $t{constructor(e,t,i,s,o,a,l,c,d,u){this.dialogService=e,this.twoFactorService=t,this.messagingService=i,this.policyService=s,this.accountService=a,this.configService=l,this.i18nService=c,this.userVerificationService=d,this.toastService=u,this.providers=[],this.showPolicyWarning=!1,this.loading=!0,this.tabbedHeader=!0,this.destroy$=new n.B,this.canAccessPremium$=this.accountService.activeAccount$.pipe((0,r.n)(e=>o.hasPremiumFromAnySource$(e.id)))}ngOnInit(){return Mt(this,void 0,void 0,function*(){this.recoveryCodeWarningMessage=this.i18nService.t("yourSingleUseRecoveryCode");for(const e in g.Ow){if(!g.Ow.hasOwnProperty(e))continue;const t=g.Ow[e];this.filterProvider(t.type)||this.providers.push({type:t.type,name:t.name,description:t.description,enabled:!1,premium:t.premium,sort:t.sort})}this.providers.sort((e,t)=>e.sort-t.sort),this.accountService.activeAccount$.pipe(p.F6,(0,r.n)(e=>this.policyService.policyAppliesToUser$(u.tt.TwoFactorAuthentication,e)),(0,s.Q)(this.destroy$)).subscribe(e=>{this.twoFactorAuthPolicyAppliesToActiveUser=e}),yield this.load()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}load(){return Mt(this,void 0,void 0,function*(){this.loading=!0;(yield this.getTwoFactorProviders()).data.forEach(e=>{this.providers.forEach(t=>{e.type===t.type&&(t.enabled=e.enabled)})}),this.evaluatePolicies(),this.loading=!1})}callTwoFactorVerifyDialog(e){return Mt(this,void 0,void 0,function*(){const t=Bt.S.open(this.dialogService,{data:{type:e,organizationId:this.organizationId}});return yield(0,o.s)(t.closed)})}disablePremium2faTypeForNonPremiumUser(e){return Mt(this,void 0,void 0,function*(){const t=yield d.GA.open(this.dialogService,{title:"twoStepLogin",verificationType:{type:"custom",verificationFn:t=>Mt(this,void 0,void 0,function*(){const i=yield this.userVerificationService.buildRequest(t,A.G);return i.type=e,yield this.twoFactorService.putTwoFactorDisable(i),!0})}});"cancel"!==t.userAction&&t.verificationSuccess&&(this.toastService.showToast({variant:"success",title:"",message:this.i18nService.t("twoStepDisabled")}),this.updateStatus(!1,e))})}manage(e){return Mt(this,void 0,void 0,function*(){var t;switch(null===(t=this.twoFactorSetupSubscription)||void 0===t||t.unsubscribe(),e){case h.R.Authenticator:{const t=yield this.callTwoFactorVerifyDialog(e);if(!t)return;const i=ke.open(this.dialogService,{data:t});this.twoFactorSetupSubscription=i.componentInstance.onChangeStatus.pipe((0,a.$)(),(0,s.Q)(this.destroy$)).subscribe(e=>{i.close(),this.updateStatus(e,h.R.Authenticator)});break}case h.R.Yubikey:{const t=yield this.callTwoFactorVerifyDialog(e);if(!t)return;wt.open(this.dialogService,{data:t}).componentInstance.onUpdated.pipe((0,s.Q)(this.destroy$)).subscribe(e=>{this.updateStatus(e,h.R.Yubikey)});break}case h.R.Duo:{const t=yield this.callTwoFactorVerifyDialog(e);if(!t)return;const i=Re.U.open(this.dialogService,{data:{authResponse:t}});this.twoFactorSetupSubscription=i.componentInstance.onChangeStatus.pipe((0,a.$)(),(0,s.Q)(this.destroy$)).subscribe(e=>{i.close(),this.updateStatus(e,h.R.Duo)});break}case h.R.Email:{const t=yield this.callTwoFactorVerifyDialog(e);if(!t)return;const i=Ne.open(this.dialogService,{data:t});this.twoFactorSetupSubscription=i.componentInstance.onChangeStatus.pipe((0,a.$)(),(0,s.Q)(this.destroy$)).subscribe(e=>{i.close(),this.updateStatus(e,h.R.Email)});break}case h.R.WebAuthn:{const t=yield this.callTwoFactorVerifyDialog(e);if(!t)return;const i=at.open(this.dialogService,{data:t});this.twoFactorSetupSubscription=i.componentInstance.onUpdated.pipe((0,a.$)(),(0,s.Q)(this.destroy$)).subscribe(e=>{i.close(),this.updateStatus(e,h.R.WebAuthn)});break}}})}recoveryCode(){return Mt(this,void 0,void 0,function*(){const e=yield this.callTwoFactorVerifyDialog(-1);if(e){const t=O.open(this.dialogService,{data:e});yield(0,o.s)(t.closed)}})}getTwoFactorProviders(){return this.twoFactorService.getEnabledTwoFactorProviders()}filterProvider(e){return e===h.R.OrganizationDuo}updateStatus(e,t){this.providers.forEach(i=>{i.type===t&&void 0!==e&&(i.enabled=e)}),this.evaluatePolicies()}evaluatePolicies(){null==this.organizationId&&1===this.providers.filter(e=>e.enabled).length?this.showPolicyWarning=this.twoFactorAuthPolicyAppliesToActiveUser:this.showPolicyWarning=!1}get isEnterpriseOrg(){var e;return(null===(e=this.organization)||void 0===e?void 0:e.productTierType)===v.K_.Enterprise}}$t.ɵfac=function(e){return new(e||$t)(Q.rXU(re.o),Q.rXU(g.fz),Q.rXU(m.U),Q.rXU(Et.m),Q.rXU(St.Q),Q.rXU(le.D),Q.rXU(ce.w),Q.rXU(R.W),Q.rXU(oe.i),Q.rXU(se.f))},$t.ɵcmp=Q.VBU({type:$t,selectors:[["app-two-factor-setup"]],decls:14,vars:17,consts:[["teamsDescription",""],[4,"ngIf"],["class","tw-mt-6 tw-mb-2 tw-pb-2.5",4,"ngIf"],["type","warning",4,"ngIf"],[3,"ngClass"],[3,"class",4,"ngFor","ngForOf"],[1,"tw-mt-6","tw-mb-2","tw-pb-2.5"],[4,"ngIf","ngIfElse"],["bitLink","","routerLink","../policies"],["type","warning"],["type","button","bitButton","","buttonType","warning",3,"click"],["name","bwi-spinner",1,"bwi-spin","bwi-fw","tw-text-muted",3,"ariaLabel"],["slot","start",1,"tw-min-w-[120px]","tw-flex","tw-justify-center"],[1,"tw-flex","tw-items-center",3,"provider","name"],["bit-item-content","",1,"tw-px-4"],[1,"tw-mb-0"],[1,"tw-font-medium","tw-text-base"],["class","tw-ml-2",4,"ngIf"],[1,"tw-mt-2","tw-text-wrap"],["slot","end"],["type","button","bitButton","","buttonType","danger"],["type","button","bitButton","","buttonType","secondary",3,"disabled"],["name","bwi-check",1,"tw-text-success-600","bwi-fw","tw-ml-2",3,"ariaLabel"],[1,"tw-ml-2"],["type","button","bitButton","","buttonType","danger",3,"click"],["type","button","bitButton","","buttonType","secondary",3,"click","disabled"]],template:function(e,t){1&e&&(Q.DNE(0,Vt,1,0,"app-header",1),Q.j41(1,"bit-container"),Q.DNE(2,Ot,3,2,"div",2)(3,Nt,3,3,"p",1)(4,Xt,5,2,"ng-container",1)(5,zt,6,4,"bit-callout",3),Q.j41(6,"h2",4),Q.EFF(7),Q.nI1(8,"i18n"),Q.DNE(9,Lt,3,3,"small",1),Q.k0s(),Q.DNE(10,Wt,3,3,"bit-callout",3),Q.j41(11,"bit-item-group"),Q.nI1(12,"i18n"),Q.DNE(13,qt,15,14,"bit-item",5),Q.k0s()()),2&e&&(Q.Y8G("ngIf",null!=t.organizationId),Q.R7$(2),Q.Y8G("ngIf",null==t.organizationId),Q.R7$(),Q.Y8G("ngIf",!t.organizationId),Q.R7$(),Q.Y8G("ngIf",t.organizationId),Q.R7$(),Q.Y8G("ngIf",!t.organizationId),Q.R7$(),Q.Y8G("ngClass",Q.eq3(15,xt,!t.organizationId)),Q.R7$(),Q.SpI(" ",Q.bMT(8,11,"providers")," "),Q.R7$(2),Q.Y8G("ngIf",t.loading),Q.R7$(),Q.Y8G("ngIf",t.showPolicyWarning),Q.R7$(),Q.BMQ("aria-label",Q.bMT(12,13,"providers")),Q.R7$(2),Q.Y8G("ngForOf",t.providers))},dependencies:[f.k,Qt.J,kt.g,Rt.D,Ft._,y.G,Tt.f,c.a,l.U,b.G,C.YU,C.Sq,C.bT,Dt.Wk,P.Q,ge.G,Pt.H,Ae.R,pe.g,C.Jj,gt.$],encapsulation:2})},6804(e,t,i){"use strict";i.d(t,{S:()=>B});var n=i(84210),r=i(64456),s=i(71804),o=i(37380),a=i(7861),l=i(37579),c=i(81573),d=i(29029),u=i(88744),h=i(36801),A=i(14041),p=i(44075),g=i(50700),v=i(62166),m=i(26657),f=i(38620),y=i(56898),b=i(7730),C=i(45635),I=i(67311),w=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class B{constructor(e,t,i,r,s){this.data=e,this.dialogRef=t,this.twoFactorService=i,this.i18nService=r,this.userVerificationService=s,this.formGroup=new n.gE({secret:new n.MJ(null)}),this.invalidSecret=!1,this.submit=()=>w(this,void 0,void 0,function*(){try{if(!this.formGroup.value.secret)throw new Error("Secret is required");const e=this.formGroup.value.secret;this.formPromise=this.userVerificationService.buildRequest(e).then(e=>this.apiCall(e));const t=yield this.formPromise;yield this.dialogRef.close({response:t,secret:e.secret,verificationType:e.type})}catch(e){throw e instanceof a._&&400===e.statusCode&&(this.invalidSecret=!0),e}}),this.type=e.type,this.organizationId=e.organizationId}get dialogTitle(){switch(this.type){case-1:return this.i18nService.t("recoveryCodeTitle");case s.R.Duo:case s.R.OrganizationDuo:return"Duo";case s.R.Email:return this.i18nService.t("emailTitle");case s.R.WebAuthn:return this.i18nService.t("webAuthnTitle");case s.R.Authenticator:return this.i18nService.t("authenticatorAppTitle");case s.R.Yubikey:return"Yubikey";default:throw new Error(`Unknown two-factor type: ${this.type}`)}}apiCall(e){switch(this.type){case-1:return this.twoFactorService.getTwoFactorRecover(e);case s.R.Duo:case s.R.OrganizationDuo:return null!=this.organizationId?this.twoFactorService.getTwoFactorOrganizationDuo(this.organizationId,e):this.twoFactorService.getTwoFactorDuo(e);case s.R.Email:return this.twoFactorService.getTwoFactorEmail(e);case s.R.WebAuthn:return this.twoFactorService.getTwoFactorWebAuthn(e);case s.R.Authenticator:return this.twoFactorService.getTwoFactorAuthenticator(e);case s.R.Yubikey:return this.twoFactorService.getTwoFactorYubiKey(e);default:throw new Error(`Unknown two-factor type: ${this.type}`)}}static open(e,t){return e.open(B,t)}}B.ɵfac=function(e){return new(e||B)(A.rXU(u.Qs),A.rXU(p.ce),A.rXU(o.fz),A.rXU(g.W),A.rXU(v.i))},B.ɵcmp=A.VBU({type:B,selectors:[["app-two-factor-verify"]],decls:11,vars:13,consts:[["bit-dialog","","dialogSize","default",3,"formGroup","bitSubmit","title","subtitle"],["bitDialogContent",""],["formControlName","secret","name","secret",3,"invalidSecretChange","invalidSecret"],["bitDialogFooter",""],["bitButton","","bitFormButton","","type","submit","buttonType","primary"],["bitButton","","type","button","buttonType","secondary","bitDialogClose",""]],template:function(e,t){1&e&&(A.j41(0,"form",0),A.nI1(1,"i18n"),A.qex(2,1),A.j41(3,"app-user-verification-form-input",2),A.mxI("invalidSecretChange",function(e){return A.DH7(t.invalidSecret,e)||(t.invalidSecret=e),e}),A.k0s(),A.bVm(),A.qex(4,3),A.j41(5,"button",4),A.EFF(6),A.nI1(7,"i18n"),A.k0s(),A.j41(8,"button",5),A.EFF(9),A.nI1(10,"i18n"),A.k0s(),A.bVm(),A.k0s()),2&e&&(A.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit)("title",A.bMT(1,7,"twoStepLogin"))("subtitle",t.dialogTitle),A.R7$(3),A.R50("invalidSecret",t.invalidSecret),A.R7$(3),A.SpI(" ",A.bMT(7,9,"continue")," "),A.R7$(3),A.SpI(" ",A.bMT(10,11,"close")," "))},dependencies:[l.C,m.$,f.L,d.t,y.Q,c.P,b.I,C.m,I.hJ,n.X1,n.qT,n.BC,n.cb,n.j4,n.JD,r.wV,h.$Z],encapsulation:2})},50866(e,t,i){"use strict";i.d(t,{R6:()=>a});var n=i(84210),r=i(57768),s=i(14041),o=i(11217);class a{}a.ɵfac=function(e){return new(e||a)},a.ɵmod=s.$C({type:a}),a.ɵinj=o.G2t({imports:[r.G,n.YN,n.X1]});var l=i(7855),c=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class d{constructor(e,t,i,n,r,s,o){this.modalRef=e,this.config=t,this.userVerificationService=i,this.formBuilder=n,this.platformUtilsService=r,this.i18nService=s,this.toastService=o,this.confirmDescription=this.config.confirmDescription,this.confirmButtonText=this.config.confirmButtonText,this.modalTitle=this.config.modalTitle,this.formGroup=this.formBuilder.group({secret:this.formBuilder.control(null)}),this.invalidSecret=!1,this.submit=()=>c(this,void 0,void 0,function*(){if(this.formGroup.markAllAsTouched(),!this.formGroup.invalid){try{yield this.userVerificationService.verifyUser(this.secret.value),this.invalidSecret=!1}catch(e){return this.invalidSecret=!0,void this.toastService.showToast({variant:"error",title:this.i18nService.t("error"),message:e.message})}this.close(!0)}})}get secret(){return this.formGroup.controls.secret}close(e){this.modalRef.close(e)}}d.ɵfac=function(e){s.QTQ()},d.ɵdir=s.FsC({type:d});var u=i(88744),h=i(44075),A=i(69855),p=i(62166),g=i(37115),v=i(50700),m=i(26657),f=i(38620),y=i(56898),b=i(7730),C=i(45635),I=i(67311),w=i(58806),B=i(25740);class E extends d{constructor(e,t,i,n,r,s,o){super(null,e,i,n,r,s,o),this.dialogRef=t}close(e){this.dialogRef.close(e)}}E.ɵfac=function(e){return new(e||E)(s.rXU(u.Qs),s.rXU(h.ce),s.rXU(p.i),s.rXU(n.ok),s.rXU(g.y),s.rXU(v.W),s.rXU(A.f))},E.ɵcmp=s.VBU({type:E,selectors:[["ng-component"]],standalone:!1,features:[s.Vt3],decls:16,vars:15,consts:[["bit-dialog","",3,"formGroup","bitSubmit"],["bitDialogTitle",""],["bitDialogContent",""],["bitTypography","body1"],["formControlName","secret",3,"invalidSecretChange","invalidSecret"],["bitDialogFooter",""],["type","submit","bitButton","","bitFormButton","","buttonType","primary"],["type","button","bitButton","","bitFormButton","","buttonType","secondary","bitDialogClose",""]],template:function(e,t){1&e&&(s.j41(0,"form",0)(1,"span",1),s.EFF(2),s.nI1(3,"i18n"),s.k0s(),s.qex(4,2),s.j41(5,"p",3),s.EFF(6),s.nI1(7,"i18n"),s.k0s(),s.j41(8,"app-user-verification",4),s.mxI("invalidSecretChange",function(e){return s.DH7(t.invalidSecret,e)||(t.invalidSecret=e),e}),s.k0s(),s.bVm(),s.qex(9,5),s.j41(10,"button",6),s.EFF(11),s.nI1(12,"i18n"),s.k0s(),s.j41(13,"button",7),s.EFF(14),s.nI1(15,"i18n"),s.k0s(),s.bVm(),s.k0s()),2&e&&(s.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit),s.R7$(2),s.JRh(s.bMT(3,7,t.modalTitle)),s.R7$(4),s.JRh(s.bMT(7,9,t.confirmDescription)),s.R7$(2),s.R50("invalidSecret",t.invalidSecret),s.R7$(3),s.SpI(" ",s.bMT(12,11,t.confirmButtonText)," "),s.R7$(3),s.SpI(" ",s.bMT(15,13,"cancel")," "))},dependencies:[n.qT,n.BC,n.cb,n.j4,n.JD,m.$,f.L,y.Q,b.I,C.m,I.hJ,w.r,l.q,B.$],encapsulation:2})},7855(e,t,i){"use strict";i.d(t,{q:()=>D});var n=i(63636),r=i(84210),s=i(11217),o=i(87806),a=i(29236),l=i(68333),c=i(78781),d=i(14041),u=i(62166),h=i(50700),A=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class p{get invalidSecret(){return this._invalidSecret}set invalidSecret(e){this._invalidSecret=e,this.invalidSecretChange.emit(e),e&&this.secret.markAsTouched(),this.secret.updateValueAndValidity({emitEvent:!1})}constructor(e,t){this.userVerificationService=e,this.i18nService=t,this._invalidSecret=!1,this.invalidSecretChange=new s.bkB,this.hasMasterPassword=!0,this.disableRequestOTP=!1,this.sentCode=!1,this.secret=new r.MJ("",[r.k0.required,()=>{if(this.invalidSecret)return{invalidSecret:{message:this.hasMasterPassword?this.i18nService.t("incorrectPassword"):this.i18nService.t("incorrectCode")}}}]),this.destroy$=new o.B,this.requestOTP=()=>A(this,void 0,void 0,function*(){if(!this.hasMasterPassword){this.disableRequestOTP=!0;try{yield this.userVerificationService.requestOTP(),this.sentCode=!0}finally{this.disableRequestOTP=!1}}})}ngOnInit(){return A(this,void 0,void 0,function*(){this.hasMasterPassword=yield this.userVerificationService.hasMasterPassword(),this.processChanges(this.secret.value),this.secret.valueChanges.pipe((0,a.Q)(this.destroy$)).subscribe(e=>this.processChanges(e))})}writeValue(e){this.secret.setValue(e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){}setDisabledState(e){this.disableRequestOTP=e,e?this.secret.disable():this.secret.enable()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}processChanges(e){this.invalidSecret=!1,null!=this.onChange&&this.onChange({type:this.hasMasterPassword?l.k.MasterPassword:l.k.OTP,secret:c.A.isNullOrWhitespace(e)?null:e})}}p.ɵfac=function(e){return new(e||p)(d.rXU(u.i),d.rXU(h.W))},p.ɵdir=d.FsC({type:p,selectors:[["app-user-verification"]],inputs:{invalidSecret:"invalidSecret"},outputs:{invalidSecretChange:"invalidSecretChange"},standalone:!1});var g=i(46758),v=i(49519),m=i(57083),f=i(3892),y=i(56898),b=i(86226),C=i(93199),I=i(19934),w=i(43759),B=i(76356),E=i(69896),S=i(36288),Q=i(58384),k=i(25740);function R(e,t){if(1&e&&(d.qex(0),d.j41(1,"bit-form-field",1)(2,"bit-label"),d.EFF(3),d.nI1(4,"i18n"),d.k0s(),d.nrm(5,"input",2)(6,"button",3),d.j41(7,"bit-hint"),d.EFF(8),d.nI1(9,"i18n"),d.k0s()(),d.bVm()),2&e){const e=d.XpG();d.R7$(3),d.JRh(d.bMT(4,3,"masterPass")),d.R7$(2),d.Y8G("formControl",e.secret),d.R7$(3),d.JRh(d.bMT(9,5,"confirmIdentity"))}}function F(e,t){1&e&&(d.j41(0,"span",9),d.nrm(1,"bit-icon",10),d.EFF(2),d.nI1(3,"i18n"),d.k0s()),2&e&&(d.Y8G("@sent",void 0),d.R7$(2),d.SpI(" ",d.bMT(3,2,"codeSent")," "))}function T(e,t){if(1&e&&(d.qex(0),d.j41(1,"div",4)(2,"label",5),d.EFF(3),d.nI1(4,"i18n"),d.k0s(),d.j41(5,"button",6),d.EFF(6),d.nI1(7,"i18n"),d.k0s(),d.DNE(8,F,4,4,"span",7),d.k0s(),d.j41(9,"bit-form-field",1)(10,"bit-label"),d.EFF(11),d.nI1(12,"i18n"),d.k0s(),d.nrm(13,"input",8),d.j41(14,"bit-hint"),d.EFF(15),d.nI1(16,"i18n"),d.k0s()(),d.bVm()),2&e){const e=d.XpG();d.R7$(3),d.JRh(d.bMT(4,7,"sendVerificationCode")),d.R7$(2),d.Y8G("bitAction",e.requestOTP),d.R7$(),d.SpI(" ",d.bMT(7,9,"sendCode")," "),d.R7$(2),d.Y8G("ngIf",e.sentCode),d.R7$(3),d.JRh(d.bMT(12,11,"verificationCode")),d.R7$(2),d.Y8G("formControl",e.secret),d.R7$(2),d.JRh(d.bMT(16,13,"confirmIdentity"))}}class D extends p{}D.ɵfac=(()=>{let e;return function(t){return(e||(e=d.xGo(D)))(t||D)}})(),D.ɵcmp=d.VBU({type:D,selectors:[["app-user-verification"]],standalone:!1,features:[d.Jv_([{provide:r.kq,multi:!0,useExisting:D}]),d.Vt3],decls:2,vars:2,consts:[[4,"ngIf"],["disableMargin",""],["bitInput","","id","masterPassword","type","password","name","MasterPasswordHash","appAutofocus","","appInputVerbatim","",3,"formControl"],["type","button","bitIconButton","","bitSuffix","","bitPasswordInputToggle",""],[1,"tw-mb-6"],[1,"tw-block"],["type","button","bitButton","","buttonType","secondary","appAutofocus","",3,"bitAction"],["class","tw-ml-2 tw-text-success","role","alert",4,"ngIf"],["bitInput","","type","text","id","verificationCode","name","verificationCode","appInputVerbatim","",3,"formControl"],["role","alert",1,"tw-ml-2","tw-text-success"],["name","bwi-check-circle"]],template:function(e,t){1&e&&d.DNE(0,R,10,7,"ng-container",0)(1,T,17,15,"ng-container",0),2&e&&(d.Y8G("ngIf",t.hasMasterPassword),d.R7$(),d.Y8G("ngIf",!t.hasMasterPassword))},dependencies:[g.bT,r.me,r.BC,r.l_,v.B,m.q,f.p,y.Q,b.j,C.I,I.J,w.h,B.e,E.a,S.s,Q.R,k.$],encapsulation:2,data:{animation:[(0,n.hZ)("sent",[(0,n.kY)(":enter",[(0,n.iF)({opacity:0}),(0,n.i0)("100ms",(0,n.iF)({opacity:1}))])])]}})},11728(e,t,i){"use strict";i.d(t,{c:()=>y});var n=i(2003),r=i(20702),s=i(58412),o=i(92954);class a extends r.r{constructor(e){super(e);const t=this.getResponseProperty("Type");if(t!==o.Tu.AmountOff&&t!==o.Tu.PercentOff)throw new Error(`Failed to parse invalid discount type: ${t}`);this.type=t,this.value=this.getResponseProperty("Value")}}class l extends r.r{constructor(e){super(e),this.translationKey=this.getResponseProperty("TranslationKey"),this.quantity=this.getResponseProperty("Quantity"),this.cost=this.getResponseProperty("Cost");const t=this.getResponseProperty("Discount");t&&(this.discount=t)}}class c extends r.r{constructor(e){super(e),this.seats=new l(this.getResponseProperty("Seats"));const t=this.getResponseProperty("AdditionalStorage");t&&(this.additionalStorage=new l(t))}}class d extends r.r{constructor(e){super(e),this.seats=new l(this.getResponseProperty("Seats"));const t=this.getResponseProperty("AdditionalServiceAccounts");t&&(this.additionalServiceAccounts=new l(t))}}class u extends r.r{constructor(e){super(e),this.passwordManager=new c(this.getResponseProperty("PasswordManager"));const t=this.getResponseProperty("SecretsManager");t&&(this.secretsManager=new d(t));const i=this.getResponseProperty("Cadence");if(i!==s.fQ.Annually&&i!==s.fQ.Monthly)throw new Error(`Failed to parse invalid cadence: ${i}`);this.cadence=i;const n=this.getResponseProperty("Discount");n&&(this.discounts=[new a(n)]),this.estimatedTax=this.getResponseProperty("EstimatedTax")}}class h extends r.r{constructor(e){super(e),this.available=this.getResponseProperty("Available"),this.used=this.getResponseProperty("Used"),this.readableUsed=this.getResponseProperty("ReadableUsed")}}class A extends r.r{constructor(e){super(e),this.toDomain=()=>{switch(this.status){case n.gc.Incomplete:case n.gc.IncompleteExpired:case n.gc.PastDue:case n.gc.Unpaid:return{cart:this.cart,storage:this.storage,status:this.status,suspension:this.suspension,gracePeriod:this.gracePeriod};case n.gc.Trialing:case n.gc.Active:return{cart:this.cart,storage:this.storage,status:this.status,nextCharge:this.nextCharge,cancelAt:this.cancelAt};case n.gc.Canceled:return{cart:this.cart,storage:this.storage,status:this.status,canceled:this.canceled}}};const t=this.getResponseProperty("Status");if(t!==n.gc.Incomplete&&t!==n.gc.IncompleteExpired&&t!==n.gc.Trialing&&t!==n.gc.Active&&t!==n.gc.PastDue&&t!==n.gc.Canceled&&t!==n.gc.Unpaid)throw new Error(`Failed to parse invalid subscription status: ${t}`);this.status=t,this.cart=new u(this.getResponseProperty("Cart")),this.storage=new h(this.getResponseProperty("Storage"));const i=this.getResponseProperty("Suspension");i&&(this.suspension=new Date(i));const r=this.getResponseProperty("GracePeriod");r&&(this.gracePeriod=r);const s=this.getResponseProperty("NextCharge");s&&(this.nextCharge=new Date(s));const o=this.getResponseProperty("CancelAt");o&&(this.cancelAt=new Date(o));const a=this.getResponseProperty("Canceled");a&&(this.canceled=new Date(a))}}class p extends r.r{constructor(e){var t,i,n,r,s;super(e),this.stripeCouponId=this.getResponseProperty("StripeCouponId"),this.percentOff=null!==(t=this.getResponseProperty("PercentOff"))&&void 0!==t?t:void 0,this.amountOff=null!==(i=this.getResponseProperty("AmountOff"))&&void 0!==i?i:void 0,this.currency=null!==(n=this.getResponseProperty("Currency"))&&void 0!==n?n:void 0,this.duration=this.getResponseProperty("Duration"),this.durationInMonths=null!==(r=this.getResponseProperty("DurationInMonths"))&&void 0!==r?r:void 0,this.name=null!==(s=this.getResponseProperty("Name"))&&void 0!==s?s:void 0,this.startDate=this.getResponseProperty("StartDate"),this.endDate=this.getResponseProperty("EndDate"),this.tierEligibility=this.getResponseProperty("TierEligibility")}}var g=i(7861),v=i(11217),m=i(12012),f=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class y{constructor(e){this.apiService=e,this.endpoint="/account/billing/vnext",this.getLicense=()=>f(this,void 0,void 0,function*(){const e=`${this.endpoint}/license`;return this.apiService.send("GET",e,null,!0,!0)}),this.getSubscription=()=>f(this,void 0,void 0,function*(){const e=`${this.endpoint}/subscription`;try{const t=yield this.apiService.send("GET",e,null,!0,!0);return new A(t).toDomain()}catch(t){if(t instanceof g._&&404===t.statusCode)return null;throw t}}),this.purchaseSubscription=(e,t,i,n)=>f(this,void 0,void 0,function*(){const r=`${this.endpoint}/subscription`,s="token"in e?{tokenizedPaymentMethod:e,billingAddress:t}:{nonTokenizedPaymentMethod:e,billingAddress:t},o=Object.assign(Object.assign(Object.assign({},s),(null==i?void 0:i.length)?{coupons:i}:{}),n?{fromMarketing:n}:{});yield this.apiService.send("POST",r,o,!0,!0)}),this.reinstateSubscription=()=>f(this,void 0,void 0,function*(){const e=`${this.endpoint}/subscription/reinstate`;yield this.apiService.send("POST",e,null,!0,!1)}),this.updateSubscriptionStorage=e=>f(this,void 0,void 0,function*(){const t=`${this.endpoint}/subscription/storage`;yield this.apiService.send("PUT",t,{additionalStorageGb:e},!0,!1)}),this.getApplicableDiscounts=()=>f(this,void 0,void 0,function*(){const e=`${this.endpoint}/discounts`,t=yield this.apiService.send("GET",e,null,!0,!0);return Array.isArray(t)?t.map(e=>new p(e)):[]}),this.upgradePremiumToOrganization=e=>f(this,void 0,void 0,function*(){const t=`${this.endpoint}/upgrade`;return yield this.apiService.send("POST",t,{organizationName:e.organizationName,key:e.organizationKey,collectionName:e.collectionName,publicKey:e.publicKey,encryptedPrivateKey:e.encryptedPrivateKey,targetProductTierType:e.planTier,cadence:e.cadence,billingAddress:e.billingAddress},!0,!0)})}}y.ɵfac=function(e){return new(e||y)(v.KVO(m.G))},y.ɵprov=v.jDH({token:y,factory:y.ɵfac,providedIn:"root"})},9327(e,t,i){"use strict";i.d(t,{cH:()=>w.c,cK:()=>m,dA:()=>I,Hd:()=>f.H});var n=i(20702),r=i(47438);class s extends n.r{constructor(e){super(e);const t=this.getResponseProperty("FreeTrial");t&&(this.freeTrial=new o(t));const i=this.getResponseProperty("InactiveSubscription");i&&(this.inactiveSubscription=new a(i));const n=this.getResponseProperty("ResellerRenewal");n&&(this.resellerRenewal=new l(n));const s=this.getResponseProperty("ScheduledPriceIncrease");s&&(this.scheduledPriceIncrease=new h(s));const c=this.getResponseProperty("TaxId");c&&(this.taxId=new r.c(c))}}class o extends n.r{constructor(e){super(e),this.remainingTrialDays=this.getResponseProperty("RemainingTrialDays")}}class a extends n.r{constructor(e){super(e),this.resolution=this.getResponseProperty("Resolution")}}class l extends n.r{constructor(e){switch(super(e),this.type=this.getResponseProperty("Type"),this.type){case"upcoming":this.upcoming=new c(this.getResponseProperty("Upcoming"));break;case"issued":this.issued=new d(this.getResponseProperty("Issued"));break;case"past_due":this.pastDue=new u(this.getResponseProperty("PastDue"))}}}class c extends n.r{constructor(e){super(e),this.renewalDate=new Date(this.getResponseProperty("RenewalDate"))}}class d extends n.r{constructor(e){super(e),this.issuedDate=new Date(this.getResponseProperty("IssuedDate")),this.dueDate=new Date(this.getResponseProperty("DueDate"))}}class u extends n.r{constructor(e){super(e),this.suspensionDate=new Date(this.getResponseProperty("SuspensionDate"))}}class h extends n.r{constructor(e){super(e),this.seatPrice=this.getResponseProperty("SeatPrice"),this.effectiveDate=new Date(this.getResponseProperty("EffectiveDate")),this.cadence=this.getResponseProperty("Cadence")}}var A=i(11217),p=i(12012),g=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class v extends n.r{constructor(e){super(e),this.couponId=this.getResponseProperty("CouponId"),this.percentOff=this.getResponseProperty("PercentOff"),this.amountOff=this.getResponseProperty("AmountOff"),this.duration=this.getResponseProperty("Duration"),this.durationInMonths=this.getResponseProperty("DurationInMonths"),this.name=this.getResponseProperty("Name")}}class m{constructor(e){this.apiService=e,this.getWarnings=e=>g(this,void 0,void 0,function*(){const t=yield this.apiService.send("GET",`/organizations/${e}/billing/vnext/warnings`,null,!0,!0);return new s(t)}),this.getChurnOffer=e=>g(this,void 0,void 0,function*(){const t=yield this.apiService.send("GET",`/organizations/${e}/billing/vnext/churn-mitigation-offer`,null,!0,!0);return t?new v(t):null}),this.redeemChurnOffer=e=>g(this,void 0,void 0,function*(){yield this.apiService.send("POST",`/organizations/${e}/billing/vnext/churn-mitigation-offer/redeem`,null,!0,!1)})}}m.ɵfac=function(e){return new(e||m)(A.KVO(p.G))},m.ɵprov=A.jDH({token:m,factory:m.ɵfac,providedIn:"root"});var f=i(60577),y=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class b extends n.r{constructor(e){super(e),this.tax=this.getResponseProperty("Tax"),this.total=this.getResponseProperty("Total")}}class C extends n.r{constructor(e){super(e),this.tax=this.getResponseProperty("Tax"),this.total=this.getResponseProperty("Total"),this.credit=this.getResponseProperty("Credit"),this.newPlanProratedMonths=this.getResponseProperty("NewPlanProratedMonths"),this.newPlanProratedAmount=this.getResponseProperty("NewPlanProratedAmount")}}class I{constructor(e){this.apiService=e,this.previewTaxForOrganizationSubscriptionPurchase=(e,t,i)=>y(this,void 0,void 0,function*(){const n=yield this.apiService.send("POST","/billing/preview-invoice/organizations/subscriptions/purchase",{purchase:Object.assign(Object.assign({},e),(null==i?void 0:i.length)?{coupons:i}:{}),billingAddress:t},!0,!0);return new b(n)}),this.previewTaxForOrganizationSubscriptionPlanChange=(e,t,i)=>y(this,void 0,void 0,function*(){const n=yield this.apiService.send("POST",`/billing/preview-invoice/organizations/${e}/subscription/plan-change`,{plan:t,billingAddress:i},!0,!0);return new b(n)}),this.previewTaxForOrganizationSubscriptionUpdate=(e,t)=>y(this,void 0,void 0,function*(){const i=yield this.apiService.send("POST",`/billing/preview-invoice/organizations/${e}/subscription/update`,{update:t},!0,!0);return new b(i)}),this.previewTaxForPremiumSubscriptionPurchase=(e,t,i)=>y(this,void 0,void 0,function*(){const n=yield this.apiService.send("POST","/billing/preview-invoice/premium/subscriptions/purchase",Object.assign({additionalStorage:e,billingAddress:t},(null==i?void 0:i.length)?{coupons:i}:{}),!0,!0);return new b(n)}),this.previewProrationForPremiumUpgrade=(e,t)=>y(this,void 0,void 0,function*(){const i=yield this.apiService.send("POST","/billing/preview-invoice/premium/subscriptions/upgrade",{targetProductTierType:e,billingAddress:t},!0,!0);return new C(i)})}}I.ɵfac=function(e){return new(e||I)(A.KVO(p.G))},I.ɵprov=A.jDH({token:I,factory:I.ɵfac,providedIn:"root"});var w=i(11728)},60577(e,t,i){"use strict";i.d(t,{H:()=>l});var n=i(7861),r=i(14055),s=i(11217),o=i(12012),a=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class l{constructor(e){this.apiService=e,this.getEndpoint=e=>{switch(e.type){case"account":return"/account/billing/vnext";case"organization":return`/organizations/${e.data.id}/billing/vnext`;case"provider":return`/providers/${e.data.id}/billing/vnext`}},this.addCreditWithBitPay=(e,t)=>a(this,void 0,void 0,function*(){const i=`${this.getEndpoint(e)}/credit/bitpay`;try{return{type:"success",value:yield this.apiService.send("POST",i,t,!0,!0)}}catch(r){if(r instanceof n._)return{type:"error",message:r.message};throw r}}),this.getBillingAddress=e=>a(this,void 0,void 0,function*(){const t=`${this.getEndpoint(e)}/address`,i=yield this.apiService.send("GET",t,null,!0,!0);return i?new r.TU(i):null}),this.getCredit=e=>a(this,void 0,void 0,function*(){const t=`${this.getEndpoint(e)}/credit`,i=yield this.apiService.send("GET",t,null,!0,!0);return i||null}),this.getPaymentMethod=e=>a(this,void 0,void 0,function*(){const t=`${this.getEndpoint(e)}/payment-method`,i=yield this.apiService.send("GET",t,null,!0,!0);return i?new r.cD(i).value:null}),this.restartSubscription=(e,t,i)=>a(this,void 0,void 0,function*(){const n=`${this.getEndpoint(e)}/subscription/restart`;yield this.apiService.send("POST",n,{paymentMethod:t,billingAddress:i},!0,!1)}),this.updateBillingAddress=(e,t)=>a(this,void 0,void 0,function*(){const i=`${this.getEndpoint(e)}/address`;try{const e=yield this.apiService.send("PUT",i,t,!0,!0);return{type:"success",value:new r.TU(e)}}catch(s){if(s instanceof n._)return{type:"error",message:s.message};throw s}}),this.updatePaymentMethod=(e,t,i)=>a(this,void 0,void 0,function*(){const s=`${this.getEndpoint(e)}/payment-method`;try{const e=Object.assign(Object.assign({},t),{billingAddress:i}),n=yield this.apiService.send("PUT",s,e,!0,!0);return{type:"success",value:new r.cD(n).value}}catch(o){if(o instanceof n._)return{type:"error",message:o.message};throw o}}),this.verifyBankAccount=(e,t)=>a(this,void 0,void 0,function*(){const i=`${this.getEndpoint(e)}/payment-method/verify-bank-account`;try{const e=yield this.apiService.send("POST",i,{descriptorCode:t},!0,!0);return{type:"success",value:new r.cD(e).value}}catch(s){if(s instanceof n._)return{type:"error",message:s.message};throw s}})}}l.ɵfac=function(e){return new(e||l)(s.KVO(o.G))},l.ɵprov=s.jDH({token:l,factory:l.ɵfac,providedIn:"root"})},88977(e,t,i){"use strict";i.d(t,{O:()=>n});const n=7},33102(e,t,i){"use strict";i.d(t,{J:()=>p});var n=i(64447),r=i(58412),s=i(39488),o=i(8916),a=i(9327),l=i(14055),c=i(11217),d=i(50700),u=i(89105),h=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const A="Unverified bank account payment method is not supported for this upgrade";class p{constructor(e,t,i,n,r,s,o){this.accountBillingClient=e,this.previewInvoiceClient=t,this.subscriberBillingClient=i,this.keyService=n,this.i18nService=r,this.encryptService=s,this.syncService=o}previewProratedInvoice(e,t){return h(this,void 0,void 0,function*(){const i=this.ProductTierTypeFromSubscriptionTierId(e.tier),n=yield this.previewInvoiceClient.previewProrationForPremiumUpgrade(i,t);return{tax:n.tax,total:n.total,credit:n.credit,newPlanProratedMonths:n.newPlanProratedMonths,newPlanProratedAmount:n.newPlanProratedAmount}})}upgradeToOrganization(e,t,i,n){return h(this,void 0,void 0,function*(){if(!t)throw new Error("Organization name is required for organization upgrade");if(!(null==n?void 0:n.country)||!(null==n?void 0:n.postalCode))throw new Error("Billing address information is incomplete");const s=yield this.subscriberBillingClient.getPaymentMethod({type:"account",data:e});if(this.isUnverifiedBankAccount(s))throw new Error(A);const o=this.ProductTierTypeFromSubscriptionTierId(i),a=yield this.generateOrganizationEncryptionData(e.id),l=yield this.accountBillingClient.upgradePremiumToOrganization({organizationName:t,organizationKey:a.key,collectionName:a.collectionCt,publicKey:a.orgKeys[0],encryptedPrivateKey:a.orgKeys[1].encryptedString,planTier:o,cadence:r.fQ.Annually,billingAddress:n});return yield this.syncService.fullSync(!0),l})}isUnverifiedBankAccount(e){return(null==e?void 0:e.type)===l.vj.bankAccount&&!!e.hostedVerificationUrl}isBankAccountNotSupportedError(e){return e instanceof Error&&e.message===A}ProductTierTypeFromSubscriptionTierId(e){switch(e){case"families":return n.K_.Families;case"teams":return n.K_.Teams;case"enterprise":return n.K_.Enterprise;default:throw new Error("Invalid plan tier for organization upgrade")}}SubscriptionTierIdFromProductTier(e){switch(e){case n.K_.Families:return r.OU.Families;case n.K_.Teams:return r.ql.Teams;case n.K_.Enterprise:return r.ql.Enterprise;default:throw new Error("Invalid plan tier for organization upgrade")}}generateOrganizationEncryptionData(e){return h(this,void 0,void 0,function*(){const t=yield this.keyService.makeOrgKey(e);return{key:t[0].encryptedString,collectionCt:(yield this.encryptService.encryptString(this.i18nService.t("defaultCollection"),t[1])).encryptedString,orgKeys:yield this.keyService.makeKeyPair(t[1]),orgKey:t[1],activeUserId:e}})}}p.ɵfac=function(e){return new(e||p)(c.KVO(a.cH),c.KVO(a.dA),c.KVO(a.Hd),c.KVO(o.Lu),c.KVO(d.W),c.KVO(u.N),c.KVO(s.H))},p.ɵprov=c.jDH({token:p,factory:p.ɵfac,providedIn:"root"})},27485(e,t,i){"use strict";i.d(t,{gY:()=>Ge,PD:()=>xe,TT:()=>Ve});var n=i(88744),r=i(46758),s=i(11217),o=i(63477),a=i(81573),l=i(29029),c=i(23101),d=i(70352),u=i(24590),h=i(92128),A=i(4958),p=i(83604),g=i(58412),v=i(92954),m=i(25065),f=i(14041),y=i(50700),b=i(3160),C=i(69855),I=i(36288),w=i(57178),B=i(58806),E=i(25740);function S(e,t){if(1&e){const e=f.RV6();f.j41(0,"billing-pricing-card",12),f.bIt("buttonClick",function(){s.eBV(e);const t=f.XpG(2);return s.Njj(t.planSelected.emit(t.premiumPlanType))}),f.j41(1,"h3",13),f.EFF(2),f.k0s()()}if(2&e){const e=f.XpG(2);f.Y8G("tagline",e.premiumCardDetails.tagline)("price",e.premiumCardDetails.price)("button",e.premiumCardDetails.button)("features",e.premiumCardDetails.features),f.R7$(2),f.SpI(" ",e.premiumCardDetails.title," ")}}function Q(e,t){if(1&e){const e=f.RV6();f.j41(0,"billing-pricing-card",12),f.bIt("buttonClick",function(){s.eBV(e);const t=f.XpG(2);return s.Njj(t.planSelected.emit(t.familiesPlanType))}),f.j41(1,"h3",13),f.EFF(2),f.k0s()()}if(2&e){const e=f.XpG(2);f.Y8G("tagline",e.familiesCardDetails.tagline)("price",e.familiesCardDetails.price)("button",e.familiesCardDetails.button)("features",e.familiesCardDetails.features),f.R7$(2),f.SpI(" ",e.familiesCardDetails.title," ")}}function k(e,t){if(1&e){const e=f.RV6();f.j41(0,"button",14),f.bIt("click",function(){s.eBV(e);const t=f.XpG(2);return s.Njj(t.closeClicked.emit(t.closeStatus))}),f.EFF(1),f.nI1(2,"i18n"),f.k0s()}2&e&&(f.R7$(),f.SpI(" ",f.bMT(2,1,"continueWithoutUpgrading")," "))}function R(e,t){if(1&e){const e=f.RV6();f.j41(0,"section",0)(1,"header",1)(2,"button",2),f.nI1(3,"i18n"),f.bIt("click",function(){s.eBV(e);const t=f.XpG();return s.Njj(t.closeClicked.emit(t.closeStatus))}),f.k0s()(),f.j41(4,"div",3)(5,"div",4)(6,"h1",5),f.EFF(7),f.nI1(8,"i18n"),f.k0s(),f.j41(9,"p",6),f.EFF(10),f.nI1(11,"i18n"),f.k0s()(),f.j41(12,"div",7),f.nVh(13,S,3,5,"billing-pricing-card",8),f.nVh(14,Q,3,5,"billing-pricing-card",8),f.k0s(),f.j41(15,"div",9)(16,"p",10),f.EFF(17),f.nI1(18,"i18n"),f.k0s(),f.nVh(19,k,3,3,"button",11),f.k0s()()()}if(2&e){const e=f.XpG();f.R7$(2),f.Y8G("label",f.bMT(3,7,"close")),f.R7$(5),f.SpI(" ",f.bMT(8,9,e.dialogTitle())," "),f.R7$(3),f.SpI(" ",f.bMT(11,11,"individualUpgradeDescriptionMessage")," "),f.R7$(3),f.vxM(e.premiumCardDetails?13:-1),f.R7$(),f.vxM(e.familiesCardDetails?14:-1),f.R7$(3),f.SpI(" ",f.bMT(18,13,"individualUpgradeTaxInformationMessage")," "),f.R7$(2),f.vxM(e.hideContinueWithoutUpgradingButton()?-1:19)}}const F="closed";class T{constructor(e,t,i,n){this.i18nService=e,this.subscriptionPricingService=t,this.toastService=i,this.destroyRef=n,this.dialogTitleMessageOverride=(0,u.hFB)(null),this.hideContinueWithoutUpgradingButton=(0,u.hFB)(!1),this.planSelected=(0,u.CGW)(),this.closeClicked=(0,u.CGW)(),this.loading=(0,s.vPA)(!0),this.familiesPlanType=g.OU.Families,this.premiumPlanType=g.OU.Premium,this.closeStatus=F,this.dialogTitle=(0,o.EW)(()=>this.dialogTitleMessageOverride()||"individualUpgradeWelcomeMessage")}ngOnInit(){this.subscriptionPricingService.getPersonalSubscriptionPricingTiers$().pipe((0,A.W)(e=>(this.toastService.showToast({variant:"error",title:"",message:this.i18nService.t("unexpectedError")}),this.loading.set(!1),(0,p.of)([]))),(0,h.pQ)(this.destroyRef)).subscribe(e=>{this.setupCardDetails(e),this.loading.set(!1)})}setupCardDetails(e){const t=e.find(e=>e.id===g.OU.Premium),i=e.find(e=>e.id===g.OU.Families);t&&(this.premiumCardDetails=this.createCardDetails(t,"primary")),i&&(this.familiesCardDetails=this.createCardDetails(i,"secondary"))}createCardDetails(e,t){return{title:e.name,tagline:e.description,price:e.passwordManager.annualPrice?{amount:e.passwordManager.annualPrice/12,cadence:g.fQ.Monthly}:void 0,button:{text:this.i18nService.t(this.isFamiliesPlan(e.id)?"startFreeFamiliesTrial":"upgradeToPremium"),type:t},features:e.passwordManager.features.map(e=>e.value)}}isFamiliesPlan(e){return e===g.OU.Families}}T.ɵfac=function(e){return new(e||T)(f.rXU(y.W),f.rXU(b.z),f.rXU(C.f),f.rXU(s.abz))},T.ɵcmp=f.VBU({type:T,selectors:[["app-upgrade-account"]],inputs:{dialogTitleMessageOverride:[1,"dialogTitleMessageOverride"],hideContinueWithoutUpgradingButton:[1,"hideContinueWithoutUpgradingButton"]},outputs:{planSelected:"planSelected",closeClicked:"closeClicked"},decls:1,vars:1,consts:[["cdkTrapFocus","","cdkTrapFocusAutoCapture","","tabindex","0",1,"tw-w-screen","tw-max-h-screen","tw-min-w-[332px]","md:tw-max-w-4xl","tw-overflow-y-auto","tw-self-center","tw-bg-background","tw-rounded-xl","tw-shadow-lg","tw-border-secondary-100","tw-border-solid","tw-border"],[1,"tw-flex","tw-items-center","tw-justify-end","tw-pl-6","tw-pt-3","tw-pr-2"],["cdkFocusInitial","","type","button","bitIconButton","bwi-close","buttonType","primaryGhost","size","default",3,"click","label"],[1,"tw-px-14","tw-pb-8"],[1,"tw-flex","tw-text-center","tw-flex-col","tw-pb-4"],[1,"tw-font-medium","tw-text-[32px]"],["bitTypography","body1",1,"tw-text-muted"],[1,"tw-grid","tw-grid-cols-1","sm:tw-grid-cols-2","tw-gap-5","tw-mb-4"],[1,"tw-w-full","tw-min-w-[216px]","tw-max-w-[456px]",3,"tagline","price","button","features"],[1,"tw-text-center","tw-w-full"],["bitTypography","helper",1,"tw-text-muted","tw-italic"],["bitLink","","linkType","primary","type","button"],[1,"tw-w-full","tw-min-w-[216px]","tw-max-w-[456px]",3,"buttonClick","tagline","price","button","features"],["slot","title","bitTypography","h3",1,"tw-m-0"],["bitLink","","linkType","primary","type","button",3,"click"]],template:function(e,t){1&e&&f.nVh(0,R,20,15,"section",0),2&e&&f.vxM(t.loading()?-1:0)},dependencies:[r.MD,a.P,m.G,I.s,w.g,B.r,c.IJ,v.Y2,d.kB,E.$],encapsulation:2});var D=i(84210),P=i(191),M=i(6933),x=i(95457),V=i(61065),G=i(34949),U=i(14679),O=i(72135),N=i(69783),j=i(98569),Y=i(32706),X=i(81216),z=i(88977),L=i(81098),W=i(14055),K=i(69022),Z=i(73074),H=i(4490),J=i(51922),q=i(67553),$=i(84488),_=i(3633),ee=i(64447),te=i(39488),ie=i(9327),ne=i(31925),re=i(58605),se=i(35500),oe=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class ae{constructor(e,t,i,n,r,s,o,a){this.organizationBillingService=e,this.accountBillingClient=t,this.previewInvoiceClient=i,this.logService=n,this.syncService=r,this.organizationService=s,this.accountService=o,this.subscriberBillingClient=a,this.userIsOwnerOfFreeOrg$=this.accountService.activeAccount$.pipe(_.F6,(0,P.n)(e=>this.organizationService.organizations$(e)),(0,Z.Z)(e=>e),(0,H.I)(e=>e.isFreeOrg&&e.isOwner),(0,J.U)(!1),(0,N.T)(e=>e instanceof $.y)),this.adminConsoleRouteForOwnedOrganization$=this.accountService.activeAccount$.pipe(_.F6,(0,P.n)(e=>this.organizationService.organizations$(e)),(0,Z.Z)(e=>e),(0,H.I)(e=>e.isFreeOrg&&e.isOwner),(0,N.T)(e=>`/organizations/${e.id}/billing/subscription`)),this.accountCredit$=this.accountService.activeAccount$.pipe(ne.$i,(0,P.n)(e=>this.subscriberBillingClient.getCredit(e)))}calculateEstimatedTax(e,t,i){return oe(this,void 0,void 0,function*(){const n=e.tier===g.OU.Families,r=e.tier===g.OU.Premium;let s=null;if(n){const e={tier:"families",cadence:"annually",passwordManager:{seats:1,additionalStorage:0,sponsored:!1}};s=this.previewInvoiceClient.previewTaxForOrganizationSubscriptionPurchase(e,t,i)}if(r&&(s=this.previewInvoiceClient.previewTaxForPremiumSubscriptionPurchase(0,t,i)),null===s)throw new Error("Preview client call is not defined");try{return(yield s).tax}catch(o){throw this.logService.error("Tax calculation failed:",o),o}})}upgradeToPremium(e,t,i,n){return oe(this,void 0,void 0,function*(){this.validatePaymentAndBillingInfo(e,t),yield this.accountBillingClient.purchaseSubscription(e,t,i,n),yield this.refreshAndSync()})}upgradeToFamilies(e,t,i,n,r){return oe(this,void 0,void 0,function*(){const s=n.billingAddress;if(!n.organizationName)throw new Error("Organization name is required for families upgrade");this.validatePaymentAndBillingInfo(i,s);const o=this.getPasswordManagerSeats(t),a=ee.OL.FamiliesAnnually,l=Object.assign({organization:{name:n.organizationName,billingEmail:e.email},plan:{type:a,passwordManagerSeats:o},payment:{paymentMethod:[i.token,this.getPaymentMethodType(i)],billing:{country:s.country,postalCode:s.postalCode}}},(null==r?void 0:r.length)?{coupons:r}:{}),c=yield this.organizationBillingService.purchaseSubscription(l,e.id);return yield this.refreshAndSync(),c})}getPasswordManagerSeats(e){return"users"in e.details.passwordManager&&e.details.passwordManager.users?e.details.passwordManager.users:0}validatePaymentAndBillingInfo(e,t){if(!(null==e?void 0:e.type))throw new Error("Payment method type is missing");if(e.type!==W.mv.accountCredit&&!(null==e?void 0:e.token))throw new Error("Payment method token is missing");if(!(null==t?void 0:t.country)||!(null==t?void 0:t.postalCode))throw new Error("Billing address information is incomplete")}refreshAndSync(){return oe(this,void 0,void 0,function*(){yield this.syncService.fullSync(!0)})}getPaymentMethodType(e){return e.type===W.mv.accountCredit?ee.eq.Credit:(0,W.x$)(e.type)}}ae.ɵfac=function(e){return new(e||ae)(s.KVO(re.Y),s.KVO(ie.cH),s.KVO(ie.dA),s.KVO(X.Kc),s.KVO(te.H),s.KVO(q.PV),s.KVO(se.D),s.KVO(ie.Hd))},ae.ɵprov=s.jDH({token:ae,factory:ae.ɵfac,providedIn:"root"});var le=i(7730),ce=i(45635),de=i(67311),ue=i(84522),he=i(26657),Ae=i(38620),pe=i(56898),ge=i(44432),ve=i(86226),me=i(93199),fe=i(19934),ye=i(43759),be=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Ce=()=>({type:"checkout",supportsTaxId:!1});function Ie(e,t){if(1&e&&(f.j41(0,"div",15)(1,"bit-callout",20),f.EFF(2),f.nI1(3,"i18n"),f.j41(4,"a",21),f.nI1(5,"async"),f.EFF(6),f.nI1(7,"i18n"),f.k0s()()()),2&e){const e=f.XpG(2);f.R7$(2),f.SpI(" ",f.bMT(3,3,"formWillCreateNewFamiliesOrgMessage")," "),f.R7$(2),f.Y8G("routerLink",f.bMT(5,5,e.adminConsoleRouteForOwnedOrganization$)),f.R7$(2),f.SpI(" ",f.bMT(7,7,"upgradeNow")," ")}}function we(e,t){if(1&e&&(f.nVh(0,Ie,8,9,"div",15),f.nI1(1,"async"),f.j41(2,"div",16)(3,"bit-form-field",17)(4,"bit-label"),f.EFF(5),f.nI1(6,"i18n"),f.k0s(),f.nrm(7,"input",18),f.j41(8,"bit-hint",19),f.EFF(9),f.nI1(10,"i18n"),f.k0s()()()),2&e){const e=f.XpG();f.vxM(f.bMT(1,3,e.userIsOwnerOfFreeOrg$)?0:-1),f.R7$(5),f.JRh(f.bMT(6,5,"organizationName")),f.R7$(4),f.SpI(" ",f.bMT(10,7,"organizationNameDescription")," ")}}function Be(e,t){if(1&e&&(f.j41(0,"p",11),f.EFF(1),f.nI1(2,"i18n"),f.k0s()),2&e){const e=f.XpG();f.R7$(),f.SpI(" ",f.i5U(2,1,"paymentChargedWithTrialSpecificLength",e.defaultTrialDays)," ")}}const Ee="closed",Se="upgradedToPremium",Qe="upgradedToFamilies";class ke{constructor(e,t,i,n,r,a,l){this.i18nService=e,this.subscriptionPricingService=t,this.toastService=i,this.logService=n,this.destroyRef=r,this.upgradePaymentService=a,this.subscriptionDiscountService=l,this.INITIAL_TAX_VALUE=0,this.defaultTrialDays=z.O,this.selectedPlanId=u.hFB.required(),this.account=u.hFB.required(),this.fromMarketing=(0,u.hFB)(null),this.goBack=(0,u.CGW)(),this.complete=(0,u.CGW)(),this.paymentComponent=u.ebz.required(L.Pu),this.cartSummaryComponent=u.ebz.required(v.Oo),this.formGroup=new D.gE({organizationName:new D.MJ("",[D.k0.required]),paymentForm:L.Pu.getFormGroup(),billingAddress:L.vU.getFormGroup()}),this.selectedPlan=(0,s.vPA)(null),this.loading=(0,s.vPA)(!0),this.upgradeToMessage=(0,s.vPA)(""),this.isFamiliesPlan=(0,o.EW)(()=>this.selectedPlanId()===g.OU.Families),this.discountTierType=(0,o.EW)(()=>this.isFamiliesPlan()?Y.A.Families:Y.A.Premium),this.eligibleDiscounts$=(0,h.br)(this.discountTierType).pipe((0,P.n)(e=>this.subscriptionDiscountService.getEligibleDiscountsForTier$(e).pipe((0,A.W)(()=>(0,p.of)([])))),(0,M.t)({bufferSize:1,refCount:!1})),this.eligibleDiscounts=(0,h.ot)(this.eligibleDiscounts$,{initialValue:[]}),this.cartDiscounts=(0,o.EW)(()=>this.eligibleDiscounts().map(e=>this.subscriptionDiscountService.mapToCartDiscount(e)).filter(e=>!!e)),this.eligibleCouponIds=(0,o.EW)(()=>this.eligibleDiscounts().map(e=>e.stripeCouponId)),this.estimatedTax$=(0,x.v)(()=>(0,V.h)(this.formGroup.controls.billingAddress.valueChanges.pipe((0,G.Z)(this.formGroup.controls.billingAddress.value)),this.eligibleDiscounts$).pipe((0,U.B)(1e3),(0,P.n)(()=>this.refreshSalesTax$()))),this.estimatedTax=(0,h.ot)(this.estimatedTax$,{initialValue:this.INITIAL_TAX_VALUE}),this.cart=(0,o.EW)(()=>{var e,t;return this.selectedPlan()?{passwordManager:{seats:{translationKey:this.isFamiliesPlan()?"familiesMembership":"premiumMembership",cost:null!==(e=this.selectedPlan().details.passwordManager.annualPrice)&&void 0!==e?e:0,quantity:1}},cadence:"annually",estimatedTax:null!==(t=this.estimatedTax())&&void 0!==t?t:0,discounts:this.cartDiscounts().length>0?this.cartDiscounts():void 0}:{passwordManager:{seats:{translationKey:"",cost:0,quantity:0}},cadence:"annually",estimatedTax:0}}),this.userIsOwnerOfFreeOrg$=this.upgradePaymentService.userIsOwnerOfFreeOrg$,this.adminConsoleRouteForOwnedOrganization$=this.upgradePaymentService.adminConsoleRouteForOwnedOrganization$,this.submit=()=>be(this,void 0,void 0,function*(){if(this.isFormValid()){if(!this.selectedPlan())throw new Error("No plan selected");try{const e=yield this.processUpgrade();e.status===Qe?this.toastService.showToast({variant:"success",message:this.i18nService.t("familiesUpdated")}):e.status===Se&&this.toastService.showToast({variant:"success",message:this.i18nService.t("premiumUpdated")}),this.complete.emit(e)}catch(e){if(this.logService.error("Upgrade failed:",e),this.subscriptionDiscountService.isDiscountExpiredError(e))return this.subscriptionDiscountService.refresh(),void this.toastService.showToast({variant:"warning",message:this.i18nService.t("discountExpiredOnPurchase")});this.toastService.showToast({variant:"error",message:this.i18nService.t("upgradeErrorMessage")})}}else this.formGroup.markAllAsTouched()})}ngOnInit(){this.isFamiliesPlan()||this.formGroup.controls.organizationName.disable(),this.pricingTiers$=this.subscriptionPricingService.getPersonalSubscriptionPricingTiers$(),this.pricingTiers$.pipe((0,A.W)(e=>(this.toastService.showToast({variant:"error",title:this.i18nService.t("error"),message:this.i18nService.t("unexpectedError")}),this.loading.set(!1),(0,p.of)([]))),(0,h.pQ)(this.destroyRef)).subscribe(e=>{const t=e.find(e=>e.id===this.selectedPlanId());t?(this.selectedPlan.set({tier:this.selectedPlanId(),details:t}),this.upgradeToMessage.set(this.i18nService.t(this.isFamiliesPlan()?"startFreeFamiliesTrial":"upgradeToPremium"))):this.complete.emit({status:Ee,organizationId:null})}),this.loading.set(!1)}ngAfterViewInit(){const e=this.cartSummaryComponent();e.isExpanded.set(!1),this.hasEnoughAccountCredit$=(0,O.z)([e.total$,this.upgradePaymentService.accountCredit$,this.formGroup.controls.paymentForm.valueChanges.pipe((0,G.Z)(this.formGroup.controls.paymentForm.value))]).pipe((0,N.T)(([e,t,i])=>(null==i?void 0:i.type)!==W.mv.accountCredit||!!t&&t>=e),(0,M.t)({bufferSize:1,refCount:!0}))}isFormValid(){return this.formGroup.valid&&this.paymentComponent().validate()}processUpgrade(){return be(this,void 0,void 0,function*(){var e;if(!this.selectedPlan())throw new Error("No plan selected");const t=(0,L.c3)(this.formGroup.controls.billingAddress),i=null===(e=this.formGroup.value)||void 0===e?void 0:e.organizationName;if(!t.country||!t.postalCode)throw new Error("Billing address is incomplete");if(this.isFamiliesPlan()&&!i)throw new Error("Organization name is required");const n=yield this.getPaymentMethod();if(!n)throw new Error("Payment method is required");if(!("token"in n)&&this.isFamiliesPlan())throw new Error("Tokenized payment is required for families plan");return this.isFamiliesPlan()?this.processFamiliesUpgrade(i,t,n):this.processPremiumUpgrade(n,t)})}processFamiliesUpgrade(e,t,i){return be(this,void 0,void 0,function*(){const n={organizationName:e,billingAddress:t},r=yield this.upgradePaymentService.upgradeToFamilies(this.account(),this.selectedPlan(),i,n,this.eligibleCouponIds());return{status:Qe,organizationId:r.id}})}processPremiumUpgrade(e,t){return be(this,void 0,void 0,function*(){return yield this.upgradePaymentService.upgradeToPremium(e,t,this.eligibleCouponIds(),this.fromMarketing()),{status:Se,organizationId:null}})}getPaymentMethod(){return be(this,void 0,void 0,function*(){var e,t;return(null===(t=null===(e=this.formGroup.value)||void 0===e?void 0:e.paymentForm)||void 0===t?void 0:t.type)===W.mv.accountCredit?{type:W.mv.accountCredit}:yield this.paymentComponent().tokenize()})}refreshSalesTax$(){if(this.formGroup.invalid||!this.selectedPlan())return(0,p.of)(this.INITIAL_TAX_VALUE);const e=(0,L.c3)(this.formGroup.controls.billingAddress);return e.country&&e.postalCode?(0,j.H)(this.upgradePaymentService.calculateEstimatedTax(this.selectedPlan(),e,this.eligibleCouponIds())).pipe((0,A.W)(e=>(this.logService.error("Tax calculation failed:",e),this.toastService.showToast({variant:"error",message:this.i18nService.t("taxCalculationError")}),(0,p.of)(this.INITIAL_TAX_VALUE)))):(0,p.of)(this.INITIAL_TAX_VALUE)}}ke.ɵfac=function(e){return new(e||ke)(f.rXU(y.W),f.rXU(b.z),f.rXU(C.f),f.rXU(X.Kc),f.rXU(s.abz),f.rXU(ae),f.rXU(K.s))},ke.ɵcmp=f.VBU({type:ke,selectors:[["app-upgrade-payment"]],viewQuery:function(e,t){1&e&&f.wEZ(t.paymentComponent,L.Pu,5)(t.cartSummaryComponent,v.Oo,5),2&e&&f.NyB(2)},inputs:{selectedPlanId:[1,"selectedPlanId"],account:[1,"account"],fromMarketing:[1,"fromMarketing"]},outputs:{goBack:"goBack",complete:"complete"},decls:29,vars:34,consts:[["paymentComponent",""],["cartSummaryComponent",""],["bit-dialog","","dialogSize","large",3,"formGroup","bitSubmit","loading"],["bitDialogTitle","",1,"tw-font-medium"],["bitDialogContent",""],[1,"tw-pb-8","!tw-mx-0"],["bitTypography","h5"],[3,"showBankAccount","showAccountCredit","group","includeBillingAddress","hasEnoughAccountCredit"],["bitTypography","h5",1,"tw-pt-4","tw-pb-2"],[3,"group","scenario"],[3,"cart","showDiscountBadges"],["bitTypography","helper",1,"tw-italic","tw-text-muted","!tw-mb-0"],["bitDialogFooter",""],["bitButton","","bitFormButton","","buttonType","primary","type","submit",3,"disabled"],["bitButton","","type","button","buttonType","secondary",3,"click","disabled"],[1,"tw-pb-2"],[1,"tw-pb-4"],[1,"!tw-mb-0"],["bitInput","","type","text","formControlName","organizationName","required",""],["bitTypography","helper",1,"tw-text-muted"],["type","info"],["bitLink","","bitDialogClose","","linkType","primary","endIcon","bwi-angle-right",3,"routerLink"]],template:function(e,t){1&e&&(f.j41(0,"form",2)(1,"span",3),f.EFF(2),f.k0s(),f.qex(3,4),f.j41(4,"section"),f.nVh(5,we,11,9),f.j41(6,"div",5)(7,"h5",6),f.EFF(8),f.nI1(9,"i18n"),f.k0s(),f.nrm(10,"app-enter-payment-method",7,0),f.nI1(12,"async"),f.j41(13,"h5",8),f.EFF(14),f.nI1(15,"i18n"),f.k0s(),f.nrm(16,"app-enter-billing-address",9),f.k0s()(),f.j41(17,"section"),f.nrm(18,"billing-cart-summary",10,1),f.nVh(20,Be,3,4,"p",11),f.k0s(),f.bVm(),f.qex(21,12),f.j41(22,"button",13),f.nI1(23,"async"),f.EFF(24),f.nI1(25,"i18n"),f.k0s(),f.j41(26,"button",14),f.bIt("click",function(){return t.goBack.emit()}),f.EFF(27),f.nI1(28,"i18n"),f.k0s(),f.bVm(),f.k0s()),2&e&&(f.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit)("loading",t.loading()),f.R7$(2),f.JRh(t.upgradeToMessage()),f.R7$(3),f.vxM(t.isFamiliesPlan()?5:-1),f.R7$(3),f.JRh(f.bMT(9,21,"paymentMethod")),f.R7$(2),f.Y8G("showBankAccount",t.isFamiliesPlan())("showAccountCredit",!t.isFamiliesPlan())("group",t.formGroup.controls.paymentForm)("includeBillingAddress",!1)("hasEnoughAccountCredit",f.bMT(12,23,t.hasEnoughAccountCredit$)),f.R7$(4),f.JRh(f.bMT(15,25,"billingAddress")),f.R7$(2),f.Y8G("group",t.formGroup.controls.billingAddress)("scenario",f.lJ4(33,Ce)),f.R7$(2),f.Y8G("cart",t.cart())("showDiscountBadges",!0),f.R7$(2),f.vxM(t.isFamiliesPlan()?20:-1),f.R7$(2),f.Y8G("disabled",t.loading()||!t.isFormValid()||!f.bMT(23,27,t.hasEnoughAccountCredit$)),f.R7$(2),f.SpI(" ",f.bMT(25,29,"upgrade")," "),f.R7$(2),f.Y8G("disabled",t.loading()),f.R7$(),f.SpI(" ",f.bMT(28,31,"back")," "))},dependencies:[a.P,le.I,ce.m,de.hJ,m.G,D.qT,D.me,D.BC,D.cb,D.YS,D.j4,D.JD,ue.Wk,he.$,Ae.L,pe.Q,ge.G,ve.j,me.I,fe.J,ye.h,w.g,B.r,v.Oo,l.t,L.Pu,L.vU,c.IJ,r.Jj,E.$],encapsulation:2});var Re=i(44075),Fe=i(26983),Te=i(71613),De=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function Pe(e,t){if(1&e){const e=f.RV6();f.j41(0,"app-upgrade-account",2),f.bIt("planSelected",function(t){s.eBV(e);const i=f.XpG();return s.Njj(i.onPlanSelected(t))})("closeClicked",function(){s.eBV(e);const t=f.XpG();return s.Njj(t.onCloseClicked())}),f.k0s()}if(2&e){const e=f.XpG();f.Y8G("dialogTitleMessageOverride",e.planSelectionStepTitleOverride())("hideContinueWithoutUpgradingButton",e.hideContinueWithoutUpgradingButton())}}function Me(e,t){if(1&e){const e=f.RV6();f.j41(0,"app-upgrade-payment",3),f.bIt("goBack",function(){s.eBV(e);const t=f.XpG();return s.Njj(t.previousStep())})("complete",function(t){s.eBV(e);const i=f.XpG();return s.Njj(i.onComplete(t))}),f.k0s()}if(2&e){const e=f.XpG();f.Y8G("selectedPlanId",e.selectedPlan())("account",e.account())("fromMarketing",e.fromMarketing())}}const xe={Closed:"closed",UpgradedToPremium:"upgradedToPremium",UpgradedToFamilies:"upgradedToFamilies"},Ve={PlanSelection:"planSelection",Payment:"payment"};class Ge{constructor(e,t,i,n){this.dialogRef=e,this.params=t,this.router=i,this.premiumInterestStateService=n,this.step=(0,s.vPA)(Ve.PlanSelection),this.selectedPlan=(0,s.vPA)(null),this.account=(0,s.vPA)(null),this.planSelectionStepTitleOverride=(0,s.vPA)(null),this.hideContinueWithoutUpgradingButton=(0,s.vPA)(!1),this.hasPremiumInterest=(0,s.vPA)(!1),this.fromMarketing=(0,o.EW)(()=>this.hasPremiumInterest()?"premium":null),this.PaymentStep=Ve.Payment,this.PlanSelectionStep=Ve.PlanSelection}ngOnInit(){return De(this,void 0,void 0,function*(){var e,t,i,n;this.account.set(this.params.account),this.step.set(null!==(e=this.params.initialStep)&&void 0!==e?e:Ve.PlanSelection),this.selectedPlan.set(null!==(t=this.params.selectedPlan)&&void 0!==t?t:null),this.planSelectionStepTitleOverride.set(null!==(i=this.params.planSelectionStepTitleOverride)&&void 0!==i?i:null),this.hideContinueWithoutUpgradingButton.set(null!==(n=this.params.hideContinueWithoutUpgradingButton)&&void 0!==n&&n);(yield this.premiumInterestStateService.getPremiumInterest(this.params.account.id))&&(this.hasPremiumInterest.set(!0),yield this.premiumInterestStateService.clearPremiumInterest(this.params.account.id))})}onPlanSelected(e){this.selectedPlan.set(e),this.nextStep()}onCloseClicked(){return De(this,void 0,void 0,function*(){this.close({status:xe.Closed})})}close(e){this.dialogRef.close(e)}nextStep(){this.step()===Ve.PlanSelection&&this.step.set(Ve.Payment)}previousStep(){return De(this,void 0,void 0,function*(){var e;this.step()===Ve.Payment&&null==(null===(e=this.params)||void 0===e?void 0:e.initialStep)?(this.step.set(Ve.PlanSelection),this.selectedPlan.set(null)):this.close({status:xe.Closed})})}onComplete(e){return De(this,void 0,void 0,function*(){let t;switch(e.status){case"upgradedToPremium":t=xe.UpgradedToPremium;break;case"upgradedToFamilies":t=xe.UpgradedToFamilies;break;default:t=xe.Closed}if(this.close({status:t,organizationId:e.organizationId}),t===xe.UpgradedToPremium&&this.hasPremiumInterest())yield this.router.navigate(["/vault"]);else if(this.params.redirectOnCompletion&&(t===xe.UpgradedToPremium||t===xe.UpgradedToFamilies)){const i=t===xe.UpgradedToFamilies?`/organizations/${e.organizationId}/vault`:"/settings/subscription/user-subscription";yield this.router.navigate([i])}})}static open(e,t){return e.open(Ge,{data:t.data})}}Ge.ɵfac=function(e){return new(e||Ge)(f.rXU(Re.ce),f.rXU(n.Qs),f.rXU(Fe.Ix),f.rXU(Te.a))},Ge.ɵcmp=f.VBU({type:Ge,selectors:[["app-unified-upgrade-dialog"]],decls:2,vars:1,consts:[[3,"dialogTitleMessageOverride","hideContinueWithoutUpgradingButton"],[3,"selectedPlanId","account","fromMarketing"],[3,"planSelected","closeClicked","dialogTitleMessageOverride","hideContinueWithoutUpgradingButton"],[3,"goBack","complete","selectedPlanId","account","fromMarketing"]],template:function(e,t){1&e&&f.nVh(0,Pe,1,2,"app-upgrade-account",0)(1,Me,1,3,"app-upgrade-payment",1),2&e&&f.vxM(t.step()==t.PlanSelectionStep?0:t.step()==t.PaymentStep&&null!==t.selectedPlan()&&null!==t.account()?1:-1)},dependencies:[r.MD,a.P,l.t,T,ke,c.IJ],encapsulation:2,changeDetection:0})},16452(e,t,i){"use strict";i.d(t,{IO:()=>ri,d1:()=>ii});var n=i(11217),r=i(84210),s=i(87806),o=i(68108),a=i(72135),l=i(69783),c=i(191),d=i(29236),u=i(14679),h=i(67553),A=i(79334),p=i(79667),g=i(3633),v=i(64447),m=i(83516),f=i(39488),y=i(14318),b=i(88744),C=i(8916),I=i(9327),w=i(27760),B=i(81098),E=i(14055),S=i(41226),Q=i(37806),k=i(14041),R=i(69855),F=i(44075),T=i(12012),D=i(50700),P=i(26983),M=i(18499),x=i(11224),V=i(35500),G=i(46758),U=i(26657),O=i(38620),N=i(47696),j=i(56898),Y=i(44432),X=i(7730),z=i(45635),L=i(67311),W=i(93199),K=i(36288),Z=i(12694),H=i(16496),J=i(58806),q=i(25740),$=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const _=(e,t)=>({"tw-py-1":e,"tw-py-0":t}),ee=(e,t)=>({"tw-bg-primary-700 !tw-text-contrast":e,"tw-bg-secondary-100":t}),te=e=>({type:"checkout",supportsTaxId:e});function ie(e,t){if(1&e&&(k.j41(0,"bit-toggle",17),k.EFF(1),k.k0s()),2&e){const e=t.$implicit;k.Y8G("value",e.value),k.R7$(),k.SpI(" ",e.name," ")}}function ne(e,t){if(1&e){const e=k.RV6();k.j41(0,"div",14)(1,"bit-toggle-group",15),k.nI1(2,"i18n"),k.bIt("selectedChange",function(t){n.eBV(e);const i=k.XpG();return n.Njj(i.updateInterval(t))}),k.DNE(3,ie,2,2,"bit-toggle",16),k.k0s()()}if(2&e){const e=k.XpG();k.R7$(),k.Y8G("selected",e.selectedInterval)("label",k.bMT(2,4,"planBillingInterval")),k.R7$(2),k.Y8G("ngForOf",e.getPlanIntervals())("ngForTrackBy",e.optimizedNgForRender)}}function re(e,t){if(1&e&&(k.j41(0,"div",30),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e){const e=k.XpG().$implicit,t=k.XpG(2);k.Y8G("ngClass",k.l_i(4,ee,e===t.selectedPlan,!(e===t.selectedPlan))),k.R7$(),k.SpI(" ",k.bMT(2,2,"recommended")," ")}}function se(e,t){1&e&&(k.j41(0,"span",31),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.SpI(" ",k.bMT(2,1,"current")))}function oe(e,t){if(1&e&&(k.qex(0),k.EFF(1),k.nI1(2,"i18n"),k.nI1(3,"currency"),k.nI1(4,"i18n"),k.bVm()),2&e){const e=k.XpG(3).$implicit,t=k.XpG(2);k.R7$(),k.E5c(" ",k.bMT(2,3,"additionalUsers").toLowerCase()," ",k.i5U(3,5,e.isAnnual?e.PasswordManager.seatPrice/12:e.PasswordManager.seatPrice,"$")," /",k.bMT(4,8,t.selectedPlanInterval)," ")}}function ae(e,t){if(1&e&&(k.qex(0),k.j41(1,"b",32),k.EFF(2),k.nI1(3,"currency"),k.k0s(),k.j41(4,"span",33),k.EFF(5),k.nI1(6,"i18n"),k.k0s(),k.j41(7,"b",34),k.DNE(8,oe,5,10,"ng-container",10),k.k0s(),k.bVm()),2&e){const e=k.XpG(2).$implicit,t=k.XpG(2);k.R7$(2),k.SpI(" ",k.i5U(3,3,e.isAnnual?e.PasswordManager.basePrice/12:e.PasswordManager.basePrice,"$")," "),k.R7$(3),k.SpI(" /",e.productTier===t.productTypes.Families?"month":k.bMT(6,6,"monthPerMember")),k.R7$(3),k.Y8G("ngIf",e.PasswordManager.hasAdditionalSeatsOption)}}function le(e,t){if(1&e&&(k.j41(0,"span"),k.DNE(1,ae,9,8,"ng-container",10),k.k0s()),2&e){const e=k.XpG().$implicit,t=k.XpG(2);k.R7$(),k.Y8G("ngIf",e.PasswordManager.basePrice&&!t.acceptingSponsorship)}}function ce(e,t){if(1&e&&(k.j41(0,"span")(1,"b",32),k.EFF(2),k.nI1(3,"currency"),k.nI1(4,"i18n"),k.k0s(),k.j41(5,"span",33),k.EFF(6),k.nI1(7,"i18n"),k.k0s()()),2&e){const e=k.XpG().$implicit,t=k.XpG(2);k.R7$(2),k.SpI("",k.i5U(4,5,"costPerMember",k.i5U(3,2,((t.sub.useSecretsManager?e.SecretsManager.seatPrice:0)+e.PasswordManager.seatPrice)/(e.isAnnual?12:1),"$"))," "),k.R7$(4),k.SpI(" /",k.bMT(7,8,"monthPerMember"))}}function de(e,t){1&e&&(k.j41(0,"span"),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.SpI("",k.bMT(2,1,"freeForever")," "))}function ue(e,t){1&e&&(k.j41(0,"p",40),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.SpI(" ",k.bMT(2,1,"bitwardenPasswordManager")," "))}function he(e,t){1&e&&(k.j41(0,"p",40),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.SpI(" ",k.bMT(2,1,"bitwardenSecretsManager")," "))}function Ae(e,t){1&e&&(k.j41(0,"ul",37)(1,"li"),k.nrm(2,"i",38),k.EFF(3),k.nI1(4,"i18n"),k.k0s(),k.j41(5,"li"),k.nrm(6,"i",38),k.EFF(7),k.nI1(8,"i18n"),k.k0s(),k.j41(9,"li"),k.nrm(10,"i",38),k.EFF(11),k.nI1(12,"i18n"),k.k0s(),k.j41(13,"li"),k.nrm(14,"i",38),k.EFF(15),k.nI1(16,"i18n"),k.k0s()()),2&e&&(k.R7$(3),k.SpI(" ",k.bMT(4,4,"unlimitedSecretsStorage")," "),k.R7$(4),k.SpI(" ",k.bMT(8,6,"unlimitedUsers")," "),k.R7$(4),k.SpI(" ",k.bMT(12,8,"unlimitedProjects")," "),k.R7$(4),k.SpI(" ",k.bMT(16,10,"UpTo50MachineAccounts")," "))}function pe(e,t){if(1&e&&(k.qex(0),k.DNE(1,ue,3,3,"p",35),k.j41(2,"p",36),k.EFF(3),k.nI1(4,"i18n"),k.k0s(),k.j41(5,"ul",37)(6,"li"),k.nrm(7,"i",38),k.EFF(8),k.nI1(9,"i18n"),k.k0s(),k.j41(10,"li"),k.nrm(11,"i",38),k.EFF(12),k.nI1(13,"i18n"),k.k0s(),k.j41(14,"li"),k.nrm(15,"i",38),k.EFF(16),k.nI1(17,"i18n"),k.k0s(),k.j41(18,"li"),k.nrm(19,"i",38),k.EFF(20),k.nI1(21,"i18n"),k.k0s()(),k.DNE(22,he,3,3,"p",35)(23,Ae,17,12,"ul",39),k.bVm()),2&e){const e=k.XpG(3);k.R7$(),k.Y8G("ngIf",e.organization.useSecretsManager),k.R7$(2),k.JRh(k.bMT(4,8,"enterprisePlanUpgradeMessage")),k.R7$(5),k.SpI(" ",k.bMT(9,10,"includeEnterprisePolicies")," "),k.R7$(4),k.SpI(" ",k.bMT(13,12,"passwordLessSso")," "),k.R7$(4),k.SpI(" ",k.bMT(17,14,"accountRecovery")," "),k.R7$(4),k.SpI(" ",k.bMT(21,16,"customRoles")," "),k.R7$(2),k.Y8G("ngIf",e.organization.useSecretsManager),k.R7$(),k.Y8G("ngIf",e.organization.useSecretsManager)}}function ge(e,t){1&e&&(k.qex(0),k.j41(1,"ul",41)(2,"li"),k.EFF(3),k.nI1(4,"i18n"),k.k0s(),k.j41(5,"li"),k.EFF(6),k.nI1(7,"i18n"),k.k0s(),k.j41(8,"li"),k.EFF(9),k.nI1(10,"i18n"),k.k0s()(),k.bVm()),2&e&&(k.R7$(3),k.JRh(k.bMT(4,3,"includeAllTeamsStarterFeatures")),k.R7$(3),k.JRh(k.bMT(7,5,"chooseMonthlyOrAnnualBilling")),k.R7$(3),k.JRh(k.i5U(10,7,"abilityToAddMoreThanNMembers",10)))}function ve(e,t){1&e&&(k.j41(0,"p",40),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.SpI(" ",k.bMT(2,1,"bitwardenPasswordManager")," "))}function me(e,t){1&e&&(k.j41(0,"p",36),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.SpI(" ",k.bMT(2,1,"teamsPlanUpgradeMessage")," "))}function fe(e,t){1&e&&(k.j41(0,"p",36),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.SpI(" ",k.bMT(2,1,"familyPlanUpgradeMessage")," "))}function ye(e,t){1&e&&(k.j41(0,"ul",44)(1,"li"),k.nrm(2,"i",38),k.EFF(3),k.nI1(4,"i18n"),k.k0s(),k.j41(5,"li"),k.nrm(6,"i",38),k.EFF(7),k.nI1(8,"i18n"),k.k0s(),k.j41(9,"li"),k.nrm(10,"i",38),k.EFF(11),k.nI1(12,"i18n"),k.k0s()()),2&e&&(k.R7$(3),k.SpI(" ",k.bMT(4,3,"premiumAccounts")," "),k.R7$(4),k.SpI(" ",k.bMT(8,5,"unlimitedSharing")," "),k.R7$(4),k.SpI(" ",k.bMT(12,7,"unlimitedCollections")," "))}function be(e,t){1&e&&(k.j41(0,"ul",37)(1,"li"),k.nrm(2,"i",38),k.EFF(3),k.nI1(4,"i18n"),k.k0s(),k.j41(5,"li"),k.nrm(6,"i",38),k.EFF(7),k.nI1(8,"i18n"),k.k0s(),k.j41(9,"li"),k.nrm(10,"i",38),k.EFF(11),k.nI1(12,"i18n"),k.k0s()()),2&e&&(k.R7$(3),k.SpI(" ",k.bMT(4,3,"secureDataSharing")," "),k.R7$(4),k.SpI(" ",k.bMT(8,5,"eventLogMonitoring")," "),k.R7$(4),k.SpI(" ",k.bMT(12,7,"directoryIntegration")," "))}function Ce(e,t){1&e&&(k.j41(0,"p",40),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.SpI(" ",k.bMT(2,1,"bitwardenSecretsManager")," "))}function Ie(e,t){1&e&&(k.j41(0,"ul",37)(1,"li"),k.nrm(2,"i",38),k.EFF(3),k.nI1(4,"i18n"),k.k0s(),k.j41(5,"li"),k.nrm(6,"i",38),k.EFF(7),k.nI1(8,"i18n"),k.k0s(),k.j41(9,"li"),k.nrm(10,"i",38),k.EFF(11),k.nI1(12,"i18n"),k.k0s()()),2&e&&(k.R7$(3),k.SpI(" ",k.bMT(4,3,"unlimitedSecretsStorage")," "),k.R7$(4),k.SpI(" ",k.bMT(8,5,"unlimitedProjects")," "),k.R7$(4),k.SpI(" ",k.bMT(12,7,"UpTo20MachineAccounts")," "))}function we(e,t){if(1&e&&k.DNE(0,ve,3,3,"p",35)(1,me,3,3,"p",42)(2,fe,3,3,"p",42)(3,ye,13,9,"ul",43)(4,be,13,9,"ul",39)(5,Ce,3,3,"p",35)(6,Ie,13,9,"ul",39),2&e){const e=k.XpG(2).$implicit,t=k.XpG(2);k.Y8G("ngIf",t.organization.useSecretsManager),k.R7$(),k.Y8G("ngIf",e.productTier===t.productTypes.Teams),k.R7$(),k.Y8G("ngIf",e.productTier===t.productTypes.Families),k.R7$(),k.Y8G("ngIf",e.productTier==t.productTypes.Families),k.R7$(),k.Y8G("ngIf",e.productTier==t.productTypes.Teams),k.R7$(),k.Y8G("ngIf",t.organization.useSecretsManager&&e.productTier!==t.productTypes.Families),k.R7$(),k.Y8G("ngIf",t.organization.useSecretsManager&&e.productTier==t.productTypes.Teams)}}function Be(e,t){if(1&e&&k.DNE(0,ge,11,10,"ng-container",29)(1,we,7,7,"ng-template",null,1,k.C5r),2&e){const e=k.sdS(2),t=k.XpG().$implicit,i=k.XpG(2);k.Y8G("ngIf",t.productTier===i.productTypes.Teams&&i.teamsStarterPlanIsAvailable)("ngIfElse",e)}}function Ee(e,t){if(1&e){const e=k.RV6();k.j41(0,"bit-card",22),k.bIt("click",function(){const t=n.eBV(e).$implicit,i=k.XpG(2);return n.Njj(i.selectPlan(t))})("keyup",function(t){const i=n.eBV(e).index,r=k.XpG(2);return n.Njj(r.onKeydown(t,i))})("focus",function(){const t=n.eBV(e).index,i=k.XpG(2);return n.Njj(i.onFocus(t))}),k.j41(1,"div",23),k.DNE(2,re,3,7,"div",24),k.j41(3,"div",25)(4,"h3",26)(5,"span",27),k.EFF(6),k.nI1(7,"i18n"),k.k0s(),k.DNE(8,se,3,3,"span",28),k.k0s(),k.DNE(9,le,2,1,"span",10)(10,ce,8,10,"span",10)(11,de,3,3,"span",10),k.k0s()(),k.DNE(12,pe,24,18,"ng-container",29)(13,Be,3,2,"ng-template",null,0,k.C5r),k.k0s()}if(2&e){const e=t.$implicit,i=t.index,n=k.sdS(14),r=k.XpG(2);k.Y8G("ngClass",r.getPlanCardContainerClasses(e,i))("id",i+"a_plan_card"),k.BMQ("tabindex",r.focusedIndex!==i||r.isCardDisabled(i)?"-1":"0")("aria-disabled",r.isCardDisabled(i)),k.R7$(2),k.Y8G("ngIf",e.productTier===r.productTypes.Enterprise&&!r.isSubscriptionCanceled),k.R7$(),k.Y8G("ngClass",k.l_i(15,_,!(e===r.selectedPlan),e===r.selectedPlan)),k.R7$(3),k.JRh(k.bMT(7,13,e.nameLocalizationKey)),k.R7$(2),k.Y8G("ngIf",e===r.currentPlan),k.R7$(),k.Y8G("ngIf",e.productTier!=r.productTypes.Free),k.R7$(),k.Y8G("ngIf",!e.PasswordManager.basePrice&&e.PasswordManager.hasAdditionalSeatsOption),k.R7$(),k.Y8G("ngIf",e.productTier==r.productTypes.Free),k.R7$(),k.Y8G("ngIf",e.productTier===r.productTypes.Enterprise)("ngIfElse",n)}}function Se(e,t){1&e&&(k.j41(0,"bit-callout",45),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.SpI(" ",k.bMT(2,1,"secretsManagerSubscriptionInfo")," "))}function Qe(e,t){1&e&&(k.j41(0,"bit-callout",46),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.SpI(" ",k.bMT(2,1,"secretsManagerComplimentaryPasswordManager")," "))}function ke(e,t){if(1&e&&(k.qex(0),k.j41(1,"div",18),k.DNE(2,Ee,15,18,"bit-card",19),k.k0s(),k.nrm(3,"br"),k.DNE(4,Se,3,3,"bit-callout",20)(5,Qe,3,3,"bit-callout",21),k.nrm(6,"br"),k.bVm()),2&e){const e=k.XpG();k.R7$(),k.HbH("tw-grid-cols-"+e.selectableProducts.length),k.R7$(),k.Y8G("ngForOf",e.selectableProducts)("ngForTrackBy",e.manageSelectableProduct),k.R7$(2),k.Y8G("ngIf",e.organization.useSecretsManager&&!e.isSecretsManagerTrial()),k.R7$(),k.Y8G("ngIf",e.organization.useSecretsManager&&e.isSecretsManagerTrial())}}function Re(e,t){1&e&&(k.j41(0,"span"),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.SpI("- ",k.bMT(2,1,"unverified")))}function Fe(e,t){if(1&e){const e=k.RV6();k.nrm(0,"i",55),k.EFF(1),k.nVh(2,Re,3,3,"span"),k.j41(3,"span",56),k.bIt("click",function(){n.eBV(e);const t=k.XpG(3);return n.Njj(t.toggleShowPayment())}),k.EFF(4),k.nI1(5,"i18n"),k.k0s()}if(2&e){const e=k.XpG(3);k.R7$(),k.Lme(" ",e.paymentMethod.bankName,", *",e.paymentMethod.last4," "),k.R7$(),k.vxM(e.paymentMethod.hostedVerificationUrl?2:-1),k.R7$(2),k.SpI(" ",k.bMT(5,4,"changePaymentMethod")," ")}}function Te(e,t){if(1&e&&k.nrm(0,"i"),2&e){k.XpG();const e=k.r8f(1);k.HbH(k.VkB("bwi bwi-fw credit-card-icon ",e))}}function De(e,t){1&e&&k.nrm(0,"i",58)}function Pe(e,t){if(1&e){const e=k.RV6();k.j41(0,"p",8),k.SS7(1),k.nVh(2,Te,1,3,"i",57)(3,De,1,0,"i",58),k.EFF(4),k.nI1(5,"titlecase"),k.j41(6,"span",56),k.bIt("click",function(){n.eBV(e);const t=k.XpG(3);return n.Njj(t.toggleShowPayment())}),k.EFF(7),k.nI1(8,"i18n"),k.k0s()()}if(2&e){const e=k.XpG(3);k.R7$();const t=k.bH3(e.getCardBrandIcon());k.R7$(),k.vxM(null!==t?2:3),k.R7$(2),k.E5c(" ",k.bMT(5,6,e.paymentMethod.brand),", *",e.paymentMethod.last4,", ",e.paymentMethod.expiration," "),k.R7$(3),k.SpI(" ",k.bMT(8,8,"changePaymentMethod")," ")}}function Me(e,t){if(1&e){const e=k.RV6();k.nrm(0,"i",59),k.EFF(1),k.j41(2,"span",56),k.bIt("click",function(){n.eBV(e);const t=k.XpG(3);return n.Njj(t.toggleShowPayment())}),k.EFF(3),k.nI1(4,"i18n"),k.k0s()}if(2&e){const e=k.XpG(3);k.R7$(),k.SpI(" ",e.paymentMethod.email," "),k.R7$(2),k.SpI(" ",k.bMT(4,2,"changePaymentMethod")," ")}}function xe(e,t){if(1&e&&(k.j41(0,"p"),k.nVh(1,Fe,6,6)(2,Pe,9,10,"p",8)(3,Me,5,4),k.nrm(4,"a"),k.k0s()),2&e){let e;const t=k.XpG(2);k.R7$(),k.vxM("bankAccount"===(e=t.paymentMethod.type)?1:"card"===e?2:"payPal"===e?3:-1)}}function Ve(e,t){if(1&e&&(k.qex(0),k.nrm(1,"app-enter-payment-method",60)(2,"app-enter-billing-address",61),k.bVm()),2&e){const e=k.XpG(2);k.R7$(),k.Y8G("group",e.billingFormGroup.controls.paymentMethod),k.R7$(),k.Y8G("group",e.billingFormGroup.controls.billingAddress)("scenario",k.eq3(3,te,e.supportsTaxId))}}function Ge(e,t){1&e&&(k.j41(0,"p",69),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.SpI(" ",k.bMT(2,1,"passwordManager")," "))}function Ue(e,t){if(1&e&&(k.qex(0),k.j41(1,"span",71),k.EFF(2),k.nI1(3,"currency"),k.k0s(),k.EFF(4),k.nI1(5,"i18n"),k.bVm()),2&e){const e=k.XpG(5);k.R7$(2),k.JRh(k.i5U(3,2,e.selectedPlan.PasswordManager.basePrice,"$")),k.R7$(2),k.SpI(" ",k.bMT(5,5,"freeWithSponsorship")," ")}}function Oe(e,t){if(1&e&&(k.EFF(0),k.nI1(1,"currency")),2&e){const e=k.XpG(5);k.SpI(" ",k.i5U(1,1,e.selectedPlan.PasswordManager.basePrice,"$")," ")}}function Ne(e,t){if(1&e&&(k.j41(0,"p",70)(1,"span"),k.EFF(2),k.nI1(3,"i18n"),k.nI1(4,"currency"),k.nI1(5,"i18n"),k.k0s(),k.j41(6,"span"),k.DNE(7,Ue,6,7,"ng-container",29)(8,Oe,2,4,"ng-template",null,2,k.C5r),k.k0s()()),2&e){const e=k.sdS(9),t=k.XpG(4);k.R7$(2),k.LHq(" ",t.passwordManagerSeats," ",k.bMT(3,6,"members")," × ",k.i5U(4,8,t.selectedPlan.isAnnual?t.selectedPlan.PasswordManager.basePrice/12:t.selectedPlan.PasswordManager.basePrice,"$")," /",k.bMT(5,11,t.selectedPlanInterval)," "),k.R7$(5),k.Y8G("ngIf",t.acceptingSponsorship)("ngIfElse",e)}}function je(e,t){1&e&&(k.j41(0,"span"),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.SpI("",k.bMT(2,1,"additionalUsers"),":"))}function Ye(e,t){1&e&&(k.j41(0,"span"),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.JRh(k.bMT(2,1,"members")))}function Xe(e,t){if(1&e&&(k.j41(0,"p",72)(1,"span"),k.DNE(2,je,3,3,"span",10),k.EFF(3),k.DNE(4,Ye,3,3,"span",10),k.EFF(5),k.nI1(6,"currency"),k.nI1(7,"i18n"),k.k0s(),k.j41(8,"span"),k.EFF(9),k.nI1(10,"currency"),k.k0s()()),2&e){const e=k.XpG(4);k.R7$(2),k.Y8G("ngIf",e.selectedPlan.PasswordManager.baseSeats),k.R7$(),k.SpI(" ",e.passwordManagerSeats||0," "),k.R7$(),k.Y8G("ngIf",!e.selectedPlan.PasswordManager.baseSeats),k.R7$(),k.Lme(" × ",k.i5U(6,6,e.selectedPlan.PasswordManager.seatPrice,"$")," /",k.bMT(7,9,e.selectedPlanInterval)," "),k.R7$(4),k.SpI(" ",k.i5U(10,11,e.passwordManagerSeatTotal(e.selectedPlan),"$")," ")}}function ze(e,t){if(1&e&&(k.j41(0,"p",72)(1,"span"),k.EFF(2),k.nI1(3,"i18n"),k.nI1(4,"currency"),k.nI1(5,"i18n"),k.k0s(),k.j41(6,"span"),k.EFF(7),k.nI1(8,"currency"),k.k0s()()),2&e){const e=k.XpG(4);k.R7$(2),k.LHq(" ",e.storageGb," ",k.bMT(3,5,"additionalStorageGbMessage")," × ",k.i5U(4,7,e.additionalStoragePriceMonthly(e.selectedPlan),"$")," /",k.bMT(5,10,e.selectedPlanInterval)," "),k.R7$(5),k.JRh(k.i5U(8,12,e.additionalStorageTotal(e.selectedPlan),"$"))}}function Le(e,t){if(1&e&&(k.qex(0),k.j41(1,"span",73),k.EFF(2),k.nI1(3,"i18n"),k.nI1(4,"lowercase"),k.k0s(),k.j41(5,"span",74),k.EFF(6),k.nI1(7,"currency"),k.k0s(),k.bVm()),2&e){const e=k.XpG(5);k.R7$(2),k.SpI(" ",k.bMT(4,5,k.i5U(3,2,"providerDiscount",e.discountPercentageFromSub))," "),k.R7$(4),k.JRh(k.i5U(7,7,e.calculateTotalAppliedDiscount(e.passwordManagerSeatTotal(e.selectedPlan)+e.additionalStorageTotal(e.selectedPlan)),"$"))}}function We(e,t){if(1&e&&(k.j41(0,"p",72),k.DNE(1,Le,8,10,"ng-container",10),k.k0s()),2&e){const e=k.XpG(4);k.R7$(),k.Y8G("ngIf",e.selectedInterval==e.planIntervals.Annually&&e.discountPercentageFromSub>0)}}function Ke(e,t){1&e&&(k.j41(0,"p",75),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.SpI(" ",k.bMT(2,1,"secretsManager")," "))}function Ze(e,t){if(1&e&&(k.j41(0,"p",70)(1,"span"),k.EFF(2),k.nI1(3,"i18n"),k.nI1(4,"currency"),k.nI1(5,"i18n"),k.k0s()()),2&e){const e=k.XpG(4);k.R7$(2),k.LHq(" ",null==e.sub?null:e.sub.smSeats," ",k.bMT(3,4,"members")," × ",k.i5U(4,6,e.selectedPlan.isAnnual?e.selectedPlan.SecretsManager.basePrice/12:e.selectedPlan.SecretsManager.basePrice,"$")," /",k.bMT(5,9,e.selectedPlanInterval)," ")}}function He(e,t){1&e&&(k.j41(0,"span"),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.SpI("",k.bMT(2,1,"additionalUsers"),":"))}function Je(e,t){1&e&&(k.j41(0,"span"),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.JRh(k.bMT(2,1,"members")))}function qe(e,t){if(1&e&&(k.j41(0,"p",72)(1,"span"),k.DNE(2,He,3,3,"span",10),k.EFF(3),k.DNE(4,Je,3,3,"span",10),k.EFF(5),k.nI1(6,"currency"),k.nI1(7,"i18n"),k.k0s(),k.j41(8,"span"),k.EFF(9),k.nI1(10,"currency"),k.k0s()()),2&e){const e=k.XpG(4);k.R7$(2),k.Y8G("ngIf",e.selectedPlan.SecretsManager.baseSeats),k.R7$(),k.SpI(" ",(null==e.sub?null:e.sub.smSeats)||0," "),k.R7$(),k.Y8G("ngIf",!e.selectedPlan.SecretsManager.baseSeats),k.R7$(),k.Lme(" × ",k.i5U(6,6,e.selectedPlan.SecretsManager.seatPrice,"$")," /",k.bMT(7,9,e.selectedPlanInterval)," "),k.R7$(4),k.SpI(" ",k.i5U(10,11,e.secretsManagerSeatTotal(e.selectedPlan,e.sub.smSeats),"$")," ")}}function $e(e,t){if(1&e&&(k.j41(0,"p",72)(1,"span"),k.EFF(2),k.nI1(3,"i18n"),k.nI1(4,"lowercase"),k.nI1(5,"currency"),k.nI1(6,"i18n"),k.k0s(),k.j41(7,"span"),k.EFF(8),k.nI1(9,"currency"),k.k0s()()),2&e){const e=k.XpG(4);k.R7$(2),k.LHq(" ",e.additionalServiceAccount," ",k.bMT(4,7,k.bMT(3,5,"serviceAccounts"))," × ",k.i5U(5,9,null==e.selectedPlan||null==e.selectedPlan.SecretsManager?null:e.selectedPlan.SecretsManager.additionalPricePerServiceAccount,"$")," /",k.bMT(6,12,e.selectedPlanInterval)," "),k.R7$(6),k.JRh(k.i5U(9,14,e.additionalServiceAccountTotal(e.selectedPlan),"$"))}}function _e(e,t){if(1&e&&(k.qex(0),k.j41(1,"span",73),k.EFF(2),k.nI1(3,"i18n"),k.nI1(4,"lowercase"),k.k0s(),k.j41(5,"span",74),k.EFF(6),k.nI1(7,"currency"),k.k0s(),k.bVm()),2&e){const e=k.XpG(5);k.R7$(2),k.SpI(" ",k.bMT(4,5,k.i5U(3,2,"providerDiscount",e.discountPercentageFromSub))," "),k.R7$(4),k.JRh(k.i5U(7,7,e.calculateTotalAppliedDiscount(e.additionalServiceAccountTotal(e.selectedPlan)+e.secretsManagerSeatTotal(e.selectedPlan,e.sub.smSeats)),"$"))}}function et(e,t){if(1&e&&(k.j41(0,"p",72),k.DNE(1,_e,8,10,"ng-container",10),k.k0s()),2&e){const e=k.XpG(4);k.R7$(),k.Y8G("ngIf",e.selectedInterval==e.planIntervals.Annually&&e.discountPercentageFromSub>0)}}function tt(e,t){if(1&e&&(k.j41(0,"bit-hint",64),k.DNE(1,Ge,3,3,"p",65)(2,Ne,10,13,"p",66)(3,Xe,11,14,"p",67)(4,ze,9,15,"p",67)(5,We,2,1,"p",67)(6,Ke,3,3,"p",68)(7,Ze,6,11,"p",66)(8,qe,11,14,"p",67)(9,$e,10,17,"p",67)(10,et,2,1,"p",67),k.k0s()),2&e){const e=k.XpG(3);k.R7$(),k.Y8G("ngIf",e.organization.useSecretsManager),k.R7$(),k.Y8G("ngIf",e.selectedPlan.PasswordManager.basePrice),k.R7$(),k.Y8G("ngIf",e.selectedPlan.PasswordManager.hasAdditionalSeatsOption),k.R7$(),k.Y8G("ngIf",e.selectedPlan.PasswordManager.hasAdditionalStorageOption&&e.storageGb>0),k.R7$(),k.Y8G("ngIf",e.organization.useSecretsManager&&!e.isSecretsManagerTrial()),k.R7$(),k.Y8G("ngIf",e.organization.useSecretsManager),k.R7$(),k.Y8G("ngIf",(null==e.selectedPlan||null==e.selectedPlan.SecretsManager?null:e.selectedPlan.SecretsManager.basePrice)&&e.organization.useSecretsManager),k.R7$(),k.Y8G("ngIf",(null==e.selectedPlan||null==e.selectedPlan.SecretsManager?null:e.selectedPlan.SecretsManager.hasAdditionalSeatsOption)&&e.organization.useSecretsManager),k.R7$(),k.Y8G("ngIf",(null==e.selectedPlan||null==e.selectedPlan.SecretsManager?null:e.selectedPlan.SecretsManager.hasAdditionalServiceAccountOption)&&e.additionalServiceAccount>0),k.R7$(),k.Y8G("ngIf",e.organization.useSecretsManager&&!e.isSecretsManagerTrial())}}function it(e,t){1&e&&(k.j41(0,"p",69),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.SpI(" ",k.bMT(2,1,"passwordManager")," "))}function nt(e,t){if(1&e&&(k.j41(0,"p",72)(1,"span"),k.EFF(2),k.nI1(3,"i18n"),k.nI1(4,"currency"),k.nI1(5,"i18n"),k.k0s(),k.j41(6,"span"),k.EFF(7),k.nI1(8,"currency"),k.k0s()()),2&e){const e=k.XpG(4);k.R7$(2),k.E5c(" ",k.bMT(3,4,"basePrice"),": ",k.i5U(4,6,e.selectedPlan.PasswordManager.basePrice,"$")," ",k.bMT(5,9,"monthAbbr")," "),k.R7$(5),k.SpI(" ",k.i5U(8,11,e.selectedPlan.PasswordManager.basePrice,"$")," ")}}function rt(e,t){1&e&&(k.j41(0,"span"),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.SpI("",k.bMT(2,1,"additionalUsers"),":"))}function st(e,t){1&e&&(k.j41(0,"span"),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.JRh(k.bMT(2,1,"members")))}function ot(e,t){if(1&e&&(k.j41(0,"p",72)(1,"span"),k.DNE(2,rt,3,3,"span",10),k.EFF(3),k.DNE(4,st,3,3,"span",10),k.EFF(5),k.nI1(6,"currency"),k.nI1(7,"i18n"),k.k0s(),k.j41(8,"span"),k.EFF(9),k.nI1(10,"currency"),k.k0s()()),2&e){const e=k.XpG(4);k.R7$(2),k.Y8G("ngIf",e.selectedPlan.PasswordManager.baseSeats),k.R7$(),k.SpI(" ",e.passwordManagerSeats," "),k.R7$(),k.Y8G("ngIf",!e.selectedPlan.PasswordManager.baseSeats),k.R7$(),k.Lme(" × ",k.i5U(6,6,e.selectedPlan.PasswordManager.seatPrice,"$")," /",k.bMT(7,9,e.selectedPlanInterval)," "),k.R7$(4),k.SpI(" ",k.i5U(10,11,e.passwordManagerSeatTotal(e.selectedPlan),"$")," ")}}function at(e,t){if(1&e&&(k.j41(0,"p",72)(1,"span"),k.EFF(2),k.nI1(3,"i18n"),k.nI1(4,"currency"),k.nI1(5,"i18n"),k.k0s(),k.j41(6,"span"),k.EFF(7),k.nI1(8,"currency"),k.k0s()()),2&e){const e=k.XpG(4);k.R7$(2),k.LHq(" ",e.storageGb," ",k.bMT(3,5,"additionalStorageGbMessage")," × ",k.i5U(4,7,e.additionalStoragePriceMonthly(e.selectedPlan),"$")," /",k.bMT(5,10,e.selectedPlanInterval)," "),k.R7$(5),k.JRh(k.i5U(8,12,e.storageGb*e.selectedPlan.PasswordManager.additionalStoragePricePerGb,"$"))}}function lt(e,t){if(1&e&&(k.qex(0),k.j41(1,"span",73),k.EFF(2),k.nI1(3,"i18n"),k.nI1(4,"lowercase"),k.k0s(),k.j41(5,"span",74),k.EFF(6),k.nI1(7,"currency"),k.k0s(),k.bVm()),2&e){const e=k.XpG(5);k.R7$(),k.xc7("display",e.discountPercentageFromSub>0?"block":"none"),k.R7$(),k.SpI(" ",k.bMT(4,9,k.i5U(3,6,"providerDiscount",e.discountPercentageFromSub))," "),k.R7$(3),k.xc7("display",e.discountPercentageFromSub>0?"block":"none"),k.R7$(),k.JRh(k.i5U(7,11,e.calculateTotalAppliedDiscount(e.total),"$"))}}function ct(e,t){if(1&e&&(k.j41(0,"p",72),k.DNE(1,lt,8,14,"ng-container",10),k.k0s()),2&e){const e=k.XpG(4);k.R7$(),k.Y8G("ngIf",e.selectedInterval==e.planIntervals.Monthly)}}function dt(e,t){1&e&&(k.j41(0,"p",75),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.SpI(" ",k.bMT(2,1,"secretsManager")," "))}function ut(e,t){if(1&e&&(k.j41(0,"p",72)(1,"span"),k.EFF(2),k.nI1(3,"i18n"),k.nI1(4,"currency"),k.nI1(5,"i18n"),k.k0s(),k.j41(6,"span"),k.EFF(7),k.nI1(8,"currency"),k.k0s()()),2&e){const e=k.XpG(4);k.R7$(2),k.E5c(" ",k.bMT(3,4,"basePrice"),": ",k.i5U(4,6,e.selectedPlan.SecretsManager.basePrice,"$")," ",k.bMT(5,9,"monthAbbr")," "),k.R7$(5),k.SpI(" ",k.i5U(8,11,e.selectedPlan.SecretsManager.basePrice,"$")," ")}}function ht(e,t){1&e&&(k.j41(0,"span"),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.SpI("",k.bMT(2,1,"additionalUsers"),":"))}function At(e,t){1&e&&(k.j41(0,"span"),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.JRh(k.bMT(2,1,"members")))}function pt(e,t){if(1&e&&(k.j41(0,"p",72)(1,"span"),k.DNE(2,ht,3,3,"span",10),k.EFF(3),k.DNE(4,At,3,3,"span",10),k.EFF(5),k.nI1(6,"currency"),k.nI1(7,"i18n"),k.k0s(),k.j41(8,"span"),k.EFF(9),k.nI1(10,"currency"),k.k0s()()),2&e){const e=k.XpG(4);k.R7$(2),k.Y8G("ngIf",e.selectedPlan.SecretsManager.baseSeats),k.R7$(),k.SpI(" ",null==e.sub?null:e.sub.smSeats," "),k.R7$(),k.Y8G("ngIf",!e.selectedPlan.SecretsManager.baseSeats),k.R7$(),k.Lme(" × ",k.i5U(6,6,e.selectedPlan.SecretsManager.seatPrice,"$")," /",k.bMT(7,9,e.selectedPlanInterval)," "),k.R7$(4),k.SpI(" ",k.i5U(10,11,e.secretsManagerSeatTotal(e.selectedPlan,null==e.sub?null:e.sub.smSeats),"$")," ")}}function gt(e,t){if(1&e&&(k.j41(0,"p",72)(1,"span"),k.EFF(2),k.nI1(3,"i18n"),k.nI1(4,"currency"),k.nI1(5,"i18n"),k.k0s(),k.j41(6,"span"),k.EFF(7),k.nI1(8,"currency"),k.k0s()()),2&e){const e=k.XpG(4);k.R7$(2),k.LHq(" ",e.additionalServiceAccount," ",k.bMT(3,5,"serviceAccounts")," × ",k.i5U(4,7,e.selectedPlan.SecretsManager.additionalPricePerServiceAccount,"$")," /",k.bMT(5,10,e.selectedPlanInterval)," "),k.R7$(5),k.JRh(k.i5U(8,12,e.additionalServiceAccountTotal(e.selectedPlan),"$"))}}function vt(e,t){if(1&e&&(k.qex(0),k.j41(1,"span",73),k.EFF(2),k.nI1(3,"i18n"),k.nI1(4,"lowercase"),k.k0s(),k.j41(5,"span",74),k.EFF(6),k.nI1(7,"currency"),k.k0s(),k.bVm()),2&e){const e=k.XpG(5);k.R7$(),k.xc7("display",e.discountPercentageFromSub>0?"block":"none"),k.R7$(),k.SpI(" ",k.bMT(4,9,k.i5U(3,6,"providerDiscount",e.discountPercentageFromSub))," "),k.R7$(3),k.xc7("display",e.discountPercentageFromSub>0?"block":"none"),k.R7$(),k.JRh(k.i5U(7,11,e.additionalServiceAccountTotal(e.selectedPlan)+e.secretsManagerSeatTotal(e.selectedPlan,null==e.sub?null:e.sub.smSeats),"$"))}}function mt(e,t){if(1&e&&(k.j41(0,"p",72),k.DNE(1,vt,8,14,"ng-container",10),k.k0s()),2&e){const e=k.XpG(4);k.R7$(),k.Y8G("ngIf",e.selectedInterval==e.planIntervals.Monthly)}}function ft(e,t){if(1&e&&(k.j41(0,"bit-hint",64),k.DNE(1,it,3,3,"p",65)(2,nt,9,14,"p",67)(3,ot,11,14,"p",67)(4,at,9,15,"p",67)(5,ct,2,1,"p",67)(6,dt,3,3,"p",68)(7,ut,9,14,"p",67)(8,pt,11,14,"p",67)(9,gt,9,15,"p",67)(10,mt,2,1,"p",67),k.k0s()),2&e){const e=k.XpG(3);k.R7$(),k.Y8G("ngIf",e.organization.useSecretsManager),k.R7$(),k.Y8G("ngIf",e.selectedPlan.PasswordManager.basePrice),k.R7$(),k.Y8G("ngIf",e.selectedPlan.PasswordManager.hasAdditionalSeatsOption),k.R7$(),k.Y8G("ngIf",e.selectedPlan.PasswordManager.hasAdditionalStorageOption&&e.storageGb>0),k.R7$(),k.Y8G("ngIf",e.organization.useSecretsManager&&!e.isSecretsManagerTrial()),k.R7$(),k.Y8G("ngIf",e.organization.useSecretsManager),k.R7$(),k.Y8G("ngIf",e.selectedPlan.SecretsManager.basePrice&&e.organization.useSecretsManager),k.R7$(),k.Y8G("ngIf",e.selectedPlan.SecretsManager.hasAdditionalSeatsOption&&e.organization.useSecretsManager),k.R7$(),k.Y8G("ngIf",e.selectedPlan.SecretsManager.hasAdditionalServiceAccountOption&&e.additionalServiceAccount>0),k.R7$(),k.Y8G("ngIf",e.organization.useSecretsManager&&!e.isSecretsManagerTrial())}}function yt(e,t){if(1&e&&(k.j41(0,"div",62),k.DNE(1,tt,11,10,"bit-hint",63)(2,ft,11,10,"bit-hint",63),k.k0s()),2&e){const e=k.XpG(2);k.R7$(),k.Y8G("ngIf",e.selectedInterval==e.planIntervals.Annually),k.R7$(),k.Y8G("ngIf",e.selectedInterval==e.planIntervals.Monthly)}}function bt(e,t){1&e&&(k.j41(0,"p",78),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.SpI(" ",k.bMT(2,1,"secretsManager")," "))}function Ct(e,t){if(1&e&&(k.j41(0,"p",70)(1,"span"),k.EFF(2),k.nI1(3,"i18n"),k.nI1(4,"currency"),k.nI1(5,"i18n"),k.k0s()()),2&e){const e=k.XpG(4);k.R7$(2),k.LHq(" ",null==e.sub?null:e.sub.smSeats," ",k.bMT(3,4,"members")," × ",k.i5U(4,6,e.selectedPlan.isAnnual?e.selectedPlan.SecretsManager.basePrice/12:e.selectedPlan.SecretsManager.basePrice,"$")," /",k.bMT(5,9,e.selectedPlanInterval)," ")}}function It(e,t){1&e&&(k.j41(0,"span"),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.SpI("",k.bMT(2,1,"additionalUsers"),":"))}function wt(e,t){1&e&&(k.j41(0,"span"),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.JRh(k.bMT(2,1,"members")))}function Bt(e,t){if(1&e&&(k.j41(0,"p",72)(1,"span"),k.DNE(2,It,3,3,"span",10),k.EFF(3),k.DNE(4,wt,3,3,"span",10),k.EFF(5),k.nI1(6,"currency"),k.nI1(7,"i18n"),k.k0s(),k.j41(8,"span"),k.EFF(9),k.nI1(10,"currency"),k.k0s()()),2&e){const e=k.XpG(4);k.R7$(2),k.Y8G("ngIf",e.selectedPlan.SecretsManager.baseSeats),k.R7$(),k.SpI(" ",(null==e.sub?null:e.sub.smSeats)||0," "),k.R7$(),k.Y8G("ngIf",!e.selectedPlan.SecretsManager.baseSeats),k.R7$(),k.Lme(" × ",k.i5U(6,6,e.selectedPlan.SecretsManager.seatPrice,"$")," /",k.bMT(7,9,e.selectedPlanInterval)," "),k.R7$(4),k.SpI(" ",k.i5U(10,11,e.secretsManagerSeatTotal(e.selectedPlan,e.sub.smSeats),"$")," ")}}function Et(e,t){if(1&e&&(k.j41(0,"p",72)(1,"span"),k.EFF(2),k.nI1(3,"i18n"),k.nI1(4,"currency"),k.nI1(5,"i18n"),k.k0s(),k.j41(6,"span"),k.EFF(7),k.nI1(8,"currency"),k.k0s()()),2&e){const e=k.XpG(4);k.R7$(2),k.LHq(" ",e.additionalServiceAccount," ",k.bMT(3,5,"serviceAccounts")," × ",k.i5U(4,7,e.selectedPlan.SecretsManager.additionalPricePerServiceAccount,"$")," /",k.bMT(5,10,e.selectedPlanInterval)," "),k.R7$(5),k.JRh(k.i5U(8,12,e.additionalServiceAccountTotal(e.selectedPlan),"$"))}}function St(e,t){1&e&&(k.j41(0,"p",79),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.SpI(" ",k.bMT(2,1,"passwordManager")," "))}function Qt(e,t){if(1&e&&(k.qex(0),k.j41(1,"span",71),k.EFF(2),k.nI1(3,"currency"),k.k0s(),k.EFF(4),k.nI1(5,"i18n"),k.bVm()),2&e){const e=k.XpG(5);k.R7$(2),k.JRh(k.i5U(3,2,e.selectedPlan.PasswordManager.basePrice,"$")),k.R7$(2),k.SpI(" ",k.bMT(5,5,"freeWithSponsorship")," ")}}function kt(e,t){if(1&e&&(k.EFF(0),k.nI1(1,"currency")),2&e){const e=k.XpG(5);k.SpI(" ",k.i5U(1,1,e.selectedPlan.PasswordManager.basePrice,"$")," ")}}function Rt(e,t){if(1&e&&(k.j41(0,"p",72)(1,"span"),k.EFF(2),k.nI1(3,"i18n"),k.nI1(4,"currency"),k.nI1(5,"i18n"),k.k0s(),k.j41(6,"span"),k.DNE(7,Qt,6,7,"ng-container",29)(8,kt,2,4,"ng-template",null,2,k.C5r),k.k0s()()),2&e){const e=k.sdS(9),t=k.XpG(4);k.R7$(2),k.LHq(" ",null==t.sub?null:t.sub.seats," ",k.bMT(3,6,"members")," × ",k.i5U(4,8,t.selectedPlan.isAnnual?t.selectedPlan.PasswordManager.basePrice/12:t.selectedPlan.PasswordManager.basePrice,"$")," /",k.bMT(5,11,t.selectedPlanInterval)," "),k.R7$(5),k.Y8G("ngIf",t.acceptingSponsorship)("ngIfElse",e)}}function Ft(e,t){1&e&&(k.j41(0,"span"),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.SpI("",k.bMT(2,1,"additionalUsers"),":"))}function Tt(e,t){1&e&&(k.j41(0,"span"),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.JRh(k.bMT(2,1,"members")))}function Dt(e,t){1&e&&(k.j41(0,"span"),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.SpI(" ",k.bMT(2,1,"freeForOneYear")," "))}function Pt(e,t){if(1&e&&(k.j41(0,"span"),k.EFF(1),k.nI1(2,"currency"),k.k0s()),2&e){const e=k.XpG(5);k.R7$(),k.SpI(" ",k.i5U(2,1,e.passwordManagerSeatTotal(e.selectedPlan),"$")," ")}}function Mt(e,t){if(1&e&&(k.j41(0,"p",72)(1,"span"),k.DNE(2,Ft,3,3,"span",10),k.EFF(3),k.DNE(4,Tt,3,3,"span",10),k.EFF(5),k.nI1(6,"currency"),k.nI1(7,"i18n"),k.k0s(),k.DNE(8,Dt,3,3,"span",10)(9,Pt,3,4,"span",10),k.k0s()),2&e){const e=k.XpG(4);k.R7$(2),k.Y8G("ngIf",e.selectedPlan.PasswordManager.baseSeats),k.R7$(),k.SpI(" ",(null==e.sub?null:e.sub.seats)||0," "),k.R7$(),k.Y8G("ngIf",!e.selectedPlan.PasswordManager.baseSeats),k.R7$(),k.Lme(" × ",k.i5U(6,7,e.selectedPlan.PasswordManager.seatPrice,"$")," /",k.bMT(7,10,e.selectedPlanInterval)," "),k.R7$(3),k.Y8G("ngIf",e.isSecretsManagerTrial()),k.R7$(),k.Y8G("ngIf",!e.isSecretsManagerTrial())}}function xt(e,t){if(1&e&&(k.j41(0,"bit-hint",64),k.DNE(1,bt,3,3,"p",76)(2,Ct,6,11,"p",66)(3,Bt,11,14,"p",67)(4,Et,9,15,"p",67)(5,St,3,3,"p",77)(6,Rt,10,13,"p",67)(7,Mt,10,12,"p",67),k.k0s()),2&e){const e=k.XpG(3);k.R7$(),k.Y8G("ngIf",e.organization.useSecretsManager),k.R7$(),k.Y8G("ngIf",e.selectedPlan.SecretsManager.basePrice&&e.organization.useSecretsManager),k.R7$(),k.Y8G("ngIf",e.selectedPlan.SecretsManager.hasAdditionalSeatsOption&&e.organization.useSecretsManager),k.R7$(),k.Y8G("ngIf",e.selectedPlan.SecretsManager.hasAdditionalServiceAccountOption&&e.additionalServiceAccount>0),k.R7$(),k.Y8G("ngIf",e.organization.useSecretsManager),k.R7$(),k.Y8G("ngIf",e.selectedPlan.PasswordManager.basePrice),k.R7$(),k.Y8G("ngIf",e.selectedPlan.PasswordManager.hasAdditionalSeatsOption)}}function Vt(e,t){1&e&&(k.j41(0,"p",78),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.SpI(" ",k.bMT(2,1,"secretsManager")," "))}function Gt(e,t){if(1&e&&(k.j41(0,"p",72)(1,"span"),k.EFF(2),k.nI1(3,"i18n"),k.nI1(4,"currency"),k.nI1(5,"i18n"),k.k0s(),k.j41(6,"span"),k.EFF(7),k.nI1(8,"currency"),k.k0s()()),2&e){const e=k.XpG(4);k.R7$(2),k.E5c(" ",k.bMT(3,4,"basePrice"),": ",k.i5U(4,6,e.selectedPlan.SecretsManager.basePrice,"$")," ",k.bMT(5,9,"monthAbbr")," "),k.R7$(5),k.SpI(" ",k.i5U(8,11,e.selectedPlan.SecretsManager.basePrice,"$")," ")}}function Ut(e,t){1&e&&(k.j41(0,"span"),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.SpI("",k.bMT(2,1,"additionalUsers"),":"))}function Ot(e,t){1&e&&(k.j41(0,"span"),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.JRh(k.bMT(2,1,"members")))}function Nt(e,t){if(1&e&&(k.j41(0,"p",72)(1,"span"),k.DNE(2,Ut,3,3,"span",10),k.EFF(3),k.DNE(4,Ot,3,3,"span",10),k.EFF(5),k.nI1(6,"currency"),k.nI1(7,"i18n"),k.k0s(),k.j41(8,"span"),k.EFF(9),k.nI1(10,"currency"),k.k0s()()),2&e){const e=k.XpG(4);k.R7$(2),k.Y8G("ngIf",e.selectedPlan.SecretsManager.baseSeats),k.R7$(),k.SpI(" ",null==e.sub?null:e.sub.smSeats," "),k.R7$(),k.Y8G("ngIf",!e.selectedPlan.SecretsManager.baseSeats),k.R7$(),k.Lme(" × ",k.i5U(6,6,e.selectedPlan.SecretsManager.seatPrice,"$")," /",k.bMT(7,9,e.selectedPlanInterval)," "),k.R7$(4),k.SpI(" ",k.i5U(10,11,e.secretsManagerSeatTotal(e.selectedPlan,null==e.sub?null:e.sub.smSeats),"$")," ")}}function jt(e,t){if(1&e&&(k.j41(0,"p",72)(1,"span"),k.EFF(2),k.nI1(3,"i18n"),k.nI1(4,"currency"),k.nI1(5,"i18n"),k.k0s(),k.j41(6,"span"),k.EFF(7),k.nI1(8,"currency"),k.k0s()()),2&e){const e=k.XpG(4);k.R7$(2),k.LHq(" ",e.additionalServiceAccount," ",k.bMT(3,5,"serviceAccounts")," × ",k.i5U(4,7,e.selectedPlan.SecretsManager.additionalPricePerServiceAccount,"$")," /",k.bMT(5,10,e.selectedPlanInterval)," "),k.R7$(5),k.JRh(k.i5U(8,12,e.additionalServiceAccountTotal(e.selectedPlan),"$"))}}function Yt(e,t){1&e&&(k.j41(0,"p",79),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.SpI(" ",k.bMT(2,1,"passwordManager")," "))}function Xt(e,t){if(1&e&&(k.j41(0,"p",72)(1,"span"),k.EFF(2),k.nI1(3,"i18n"),k.nI1(4,"currency"),k.nI1(5,"i18n"),k.k0s(),k.j41(6,"span"),k.EFF(7),k.nI1(8,"currency"),k.k0s()()),2&e){const e=k.XpG(4);k.R7$(2),k.E5c(" ",k.bMT(3,4,"basePrice"),": ",k.i5U(4,6,e.selectedPlan.PasswordManager.basePrice,"$")," ",k.bMT(5,9,"monthAbbr")," "),k.R7$(5),k.SpI(" ",k.i5U(8,11,e.selectedPlan.PasswordManager.basePrice,"$")," ")}}function zt(e,t){1&e&&(k.j41(0,"span"),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.SpI("",k.bMT(2,1,"additionalUsers"),":"))}function Lt(e,t){1&e&&(k.j41(0,"span"),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.JRh(k.bMT(2,1,"members")))}function Wt(e,t){1&e&&(k.j41(0,"span"),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.SpI(" ",k.bMT(2,1,"freeForOneYear")," "))}function Kt(e,t){if(1&e&&(k.j41(0,"span"),k.EFF(1),k.nI1(2,"currency"),k.k0s()),2&e){const e=k.XpG(5);k.R7$(),k.SpI(" ",k.i5U(2,1,e.passwordManagerSeatTotal(e.selectedPlan),"$")," ")}}function Zt(e,t){if(1&e&&(k.j41(0,"p",72)(1,"span"),k.DNE(2,zt,3,3,"span",10),k.EFF(3),k.DNE(4,Lt,3,3,"span",10),k.EFF(5),k.nI1(6,"currency"),k.nI1(7,"i18n"),k.k0s(),k.DNE(8,Wt,3,3,"span",10)(9,Kt,3,4,"span",10),k.k0s()),2&e){const e=k.XpG(4);k.R7$(2),k.Y8G("ngIf",e.selectedPlan.PasswordManager.baseSeats),k.R7$(),k.SpI(" ",null==e.sub?null:e.sub.seats," "),k.R7$(),k.Y8G("ngIf",!e.selectedPlan.PasswordManager.baseSeats),k.R7$(),k.Lme(" × ",k.i5U(6,7,e.selectedPlan.PasswordManager.seatPrice,"$")," /",k.bMT(7,10,e.selectedPlanInterval)," "),k.R7$(3),k.Y8G("ngIf",e.isSecretsManagerTrial()),k.R7$(),k.Y8G("ngIf",!e.isSecretsManagerTrial())}}function Ht(e,t){if(1&e&&(k.j41(0,"bit-hint",64),k.DNE(1,Vt,3,3,"p",76)(2,Gt,9,14,"p",67)(3,Nt,11,14,"p",67)(4,jt,9,15,"p",67)(5,Yt,3,3,"p",77)(6,Xt,9,14,"p",67)(7,Zt,10,12,"p",67),k.k0s()),2&e){const e=k.XpG(3);k.R7$(),k.Y8G("ngIf",e.organization.useSecretsManager),k.R7$(),k.Y8G("ngIf",e.selectedPlan.SecretsManager.basePrice&&e.organization.useSecretsManager),k.R7$(),k.Y8G("ngIf",e.selectedPlan.SecretsManager.hasAdditionalSeatsOption&&e.organization.useSecretsManager),k.R7$(),k.Y8G("ngIf",e.selectedPlan.SecretsManager.hasAdditionalServiceAccountOption&&e.additionalServiceAccount>0),k.R7$(),k.Y8G("ngIf",e.organization.useSecretsManager),k.R7$(),k.Y8G("ngIf",e.selectedPlan.PasswordManager.basePrice),k.R7$(),k.Y8G("ngIf",e.selectedPlan.PasswordManager.hasAdditionalSeatsOption)}}function Jt(e,t){if(1&e&&(k.j41(0,"div",62),k.DNE(1,xt,8,7,"bit-hint",63)(2,Ht,8,7,"bit-hint",63),k.k0s()),2&e){const e=k.XpG(2);k.R7$(),k.Y8G("ngIf",e.selectedInterval==e.planIntervals.Annually),k.R7$(),k.Y8G("ngIf",e.selectedInterval==e.planIntervals.Monthly)}}function qt(e,t){if(1&e&&(k.j41(0,"p",72),k.qex(1),k.j41(2,"span",73),k.EFF(3),k.nI1(4,"i18n"),k.nI1(5,"lowercase"),k.k0s(),k.j41(6,"span",74),k.EFF(7),k.nI1(8,"currency"),k.k0s(),k.bVm(),k.k0s()),2&e){const e=k.XpG(3);k.R7$(3),k.SpI(" ",k.bMT(5,5,k.i5U(4,2,"providerDiscount",e.discountPercentageFromSub))," "),k.R7$(4),k.JRh(k.i5U(8,7,e.calculateTotalAppliedDiscount(e.total),"$"))}}function $t(e,t){if(1&e&&(k.j41(0,"div",62)(1,"bit-hint",64),k.DNE(2,qt,9,10,"p",67),k.k0s()()),2&e){const e=k.XpG(2);k.R7$(2),k.Y8G("ngIf",e.discountPercentageFromSub>0)}}function _t(e,t){if(1&e&&(k.j41(0,"div",80)(1,"bit-hint",64)(2,"p",81)(3,"span",50),k.EFF(4),k.nI1(5,"i18n"),k.k0s(),k.j41(6,"span"),k.EFF(7),k.nI1(8,"currency"),k.k0s()()()()),2&e){const e=k.XpG(2);k.R7$(4),k.SpI(" ",k.bMT(5,2,"estimatedTax")," "),k.R7$(3),k.SpI(" ",k.brH(8,4,e.estimatedTax,"USD","$")," ")}}function ei(e,t){if(1&e&&(k.j41(0,"div",80)(1,"bit-hint",64)(2,"p",81)(3,"span",50),k.EFF(4),k.nI1(5,"i18n"),k.k0s(),k.j41(6,"span"),k.EFF(7),k.nI1(8,"currency"),k.j41(9,"span",82),k.EFF(10),k.nI1(11,"i18n"),k.k0s()()()()()),2&e){const e=k.XpG(2);k.R7$(4),k.SpI(" ",k.bMT(5,3,"total")," "),k.R7$(3),k.SpI(" ",k.brH(8,5,e.total-e.calculateTotalAppliedDiscount(e.total),"USD","$")," "),k.R7$(3),k.SpI(" / ",k.bMT(11,9,e.selectedPlanInterval))}}function ti(e,t){if(1&e){const e=k.RV6();k.qex(0),k.j41(1,"h2",47),k.EFF(2),k.nI1(3,"i18n"),k.k0s(),k.DNE(4,xe,5,1,"p",10)(5,Ve,3,5,"ng-container",10),k.j41(6,"div",48)(7,"p",49)(8,"span",50),k.EFF(9),k.nI1(10,"i18n"),k.nI1(11,"currency"),k.k0s(),k.j41(12,"span",51),k.EFF(13),k.nI1(14,"i18n"),k.k0s(),k.j41(15,"button",52),k.nI1(16,"i18n"),k.nI1(17,"i18n"),k.bIt("click",function(){n.eBV(e);const t=k.XpG();return n.Njj(t.toggleTotalOpened())}),k.k0s()()(),k.DNE(18,yt,3,2,"div",53)(19,Jt,3,2,"div",53)(20,$t,3,1,"div",53)(21,_t,9,8,"div",54)(22,ei,12,11,"div",54),k.bVm()}if(2&e){const e=k.XpG();k.R7$(2),k.JRh(k.bMT(3,13,"paymentMethod")),k.R7$(2),k.Y8G("ngIf",!e.showPayment&&!!e.paymentMethod&&!e.isSubscriptionCanceled),k.R7$(),k.Y8G("ngIf",e.canUpdatePaymentInformation()),k.R7$(4),k.Lme("",k.bMT(10,15,"total"),": ",k.brH(11,17,e.total-e.calculateTotalAppliedDiscount(e.total),"USD","$")," USD"),k.R7$(4),k.SpI(" / ",k.bMT(14,21,e.selectedPlanInterval)),k.R7$(2),k.Y8G("bitIconButton",e.totalOpened?"bwi-angle-down":"bwi-angle-up")("label",e.totalOpened?k.bMT(16,23,"hidePricingSummary"):k.bMT(17,25,"showPricingSummary")),k.R7$(3),k.Y8G("ngIf",e.totalOpened&&!e.isSecretsManagerTrial()),k.R7$(),k.Y8G("ngIf",e.totalOpened&&e.isSecretsManagerTrial()),k.R7$(),k.Y8G("ngIf",e.totalOpened&&!e.organization.useSecretsManager),k.R7$(),k.Y8G("ngIf",e.totalOpened),k.R7$(),k.Y8G("ngIf",e.totalOpened)}}var ii,ni;!function(e){e.Closed="closed",e.Submitted="submitted"}(ii||(ii={})),function(e){e.Selected="selected",e.NotSelected="not_selected",e.Disabled="disabled"}(ni||(ni={}));const ri=(e,t)=>e.open(si,t);class si{get productTier(){return this._productTier}set productTier(e){var t,i,n;this._productTier=e,null===(n=null===(i=null===(t=this.formGroup)||void 0===t?void 0:t.controls)||void 0===i?void 0:i.productTier)||void 0===n||n.setValue(e)}get plan(){return this._plan}set plan(e){var t,i,n;this._plan=e,null===(n=null===(i=null===(t=this.formGroup)||void 0===t?void 0:t.controls)||void 0===i?void 0:i.plan)||void 0===n||n.setValue(e)}constructor(e,t,i,o,a,l,c,d,u,h,A,p,g,m,f,y,b,C){this.dialogParams=e,this.dialogRef=t,this.toastService=i,this.apiService=o,this.i18nService=a,this.keyService=l,this.router=c,this.syncService=d,this.policyService=u,this.organizationService=h,this.messagingService=A,this.formBuilder=p,this.organizationApiService=g,this.accountService=m,this.billingNotificationService=f,this.subscriberBillingClient=y,this.previewInvoiceClient=b,this.organizationWarningsService=C,this.acceptingSponsorship=!1,this.showFree=!1,this.showCancel=!1,this.estimatedTax=0,this._productTier=v.K_.Free,this._plan=v.OL.Free,this.onSuccess=new n.bkB,this.onCanceled=new n.bkB,this.onTrialBillingSuccess=new n.bkB,this.loading=!0,this.ResultType=ii,this.selfHosted=!1,this.productTypes=v.K_,this.singleOrgPolicyAppliesToActiveUser=!1,this.isInTrialFlow=!1,this.discount=0,this.formGroup=this.formBuilder.group({name:[""],billingEmail:["",[r.k0.email]],businessOwned:[!1],premiumAccessAddon:[!1],additionalSeats:[0,[r.k0.min(0),r.k0.max(1e5)]],clientOwnerEmail:["",[r.k0.email]],plan:[this.plan],productTier:[this.productTier]}),this.billingFormGroup=this.formBuilder.group({paymentMethod:B.Pu.getFormGroup(),billingAddress:B.vU.getFormGroup()}),this.selectedInterval=1,this.planIntervals=v.$y,this.showPayment=!1,this.totalOpened=!1,this.isCardStateDisabled=!1,this.focusedIndex=null,this.isSubscriptionCanceled=!1,this.destroy$=new s.B,this.submit=()=>$(this,void 0,void 0,function*(){if(this.formGroup.markAllAsTouched(),this.billingFormGroup.markAllAsTouched(),this.formGroup.invalid||this.billingFormGroup.invalid&&!this.paymentMethod)return;this.formPromise=(()=>$(this,void 0,void 0,function*(){var e;let t;const i=null===(e=this.sub)||void 0===e?void 0:e.subscription,n="canceled"===(null==i?void 0:i.status),r=(null==i?void 0:i.cancelled)&&this.organization.productTierType===v.K_.Free;return n||r?(yield this.restartSubscription(),t=this.organizationId):t=yield this.updateOrganization(),this.toastService.showToast({variant:"success",title:null,message:this.isSubscriptionCanceled?this.i18nService.t("restartOrganizationSubscription"):this.i18nService.t("organizationUpgraded")}),yield this.syncService.fullSync(!0),this.acceptingSponsorship||this.isInTrialFlow||(yield this.router.navigate(["/organizations/"+t+"/billing/subscription"])),this.isInTrialFlow&&this.onTrialBillingSuccess.emit({orgId:t,subLabelText:this.billingSubLabelText()}),t}))();const e=yield this.formPromise;this.onSuccess.emit({organizationId:e}),this.messagingService.send("organizationCreated",{organizationId:e}),yield this.dialogRef.close()}),this.getCardBrandIcon=()=>(0,E.nS)(this.paymentMethod)}ngOnInit(){return $(this,void 0,void 0,function*(){var e,t,i,n,r,s,A,p;if(this.dialogParams.organizationId){this.currentPlanName=this.resolvePlanName(this.dialogParams.productTierType),this.sub=null!==(e=this.dialogParams.subscription)&&void 0!==e?e:yield this.organizationApiService.getSubscription(this.dialogParams.organizationId),this.dialogHeaderName=this.resolveHeaderName(this.sub),this.organizationId=this.dialogParams.organizationId,this.currentPlan=null===(t=this.sub)||void 0===t?void 0:t.plan,this.selectedPlan=null===(i=this.sub)||void 0===i?void 0:i.plan;const s=yield(0,o._)(this.accountService.activeAccount$.pipe((0,l.T)(e=>null==e?void 0:e.id)));if(this.organization=yield(0,o._)(this.organizationService.organizations$(s).pipe((0,h.Sw)(this.organizationId))),"canceled"!==(null===(r=null===(n=this.sub)||void 0===n?void 0:n.subscription)||void 0===r?void 0:r.status))try{const e={type:"organization",data:this.organization},[t,i]=yield Promise.all([this.subscriberBillingClient.getPaymentMethod(e),this.subscriberBillingClient.getBillingAddress(e)]);this.paymentMethod=t,this.billingAddress=i}catch(m){this.billingNotificationService.handleError(m)}}if(this.selfHosted||(this.plans=yield this.apiService.getPlans(),this.passwordManagerPlans=this.plans.data.filter(e=>!!e.PasswordManager),this.secretsManagerPlans=this.plans.data.filter(e=>!!e.SecretsManager),this.productTier!==v.K_.Enterprise&&this.productTier!==v.K_.Teams||this.formGroup.controls.businessOwned.setValue(!0)),this._familyPlan=v.OL.FamiliesAnnually,this.currentPlan&&this.currentPlan.productTier!==v.K_.Enterprise){const e=this.passwordManagerPlans.find(e=>this.currentPlan.productTier===v.K_.Free?e.type===this._familyPlan:e.upgradeSortOrder==this.currentPlan.upgradeSortOrder+1);this.plan=e.type,this.productTier=e.productTier}this.upgradeFlowPrefillForm(),this.accountService.activeAccount$.pipe(g.F6,(0,c.n)(e=>(0,h.UX)(e,this.policyService)),(0,d.Q)(this.destroy$)).subscribe(e=>{this.singleOrgPolicyAppliesToActiveUser=e}),this.selfHosted||this.changedProduct(),this.planCards=[{name:this.i18nService.t("planNameTeams"),selected:!0},{name:this.i18nService.t("planNameEnterprise"),selected:!1}],this.discountPercentageFromSub=this.isSecretsManagerTrial()?0:null!==(p=null===(A=null===(s=this.sub)||void 0===s?void 0:s.customerDiscount)||void 0===A?void 0:A.percentOff)&&void 0!==p?p:0,yield this.setInitialPlanSelection(),this.isSubscriptionCanceled||(yield this.refreshSalesTax()),(0,a.z)([this.billingFormGroup.controls.billingAddress.controls.country.valueChanges,this.billingFormGroup.controls.billingAddress.controls.postalCode.valueChanges,this.billingFormGroup.controls.billingAddress.controls.taxId.valueChanges]).pipe((0,u.B)(1e3),(0,c.n)(()=>$(this,void 0,void 0,function*(){return yield this.refreshSalesTax()})),(0,d.Q)(this.destroy$)).subscribe(),this.loading=!1})}resolveHeaderName(e){var t;return null!=e.subscription&&(this.isSubscriptionCanceled=e.subscription.cancelled&&(null===(t=this.sub)||void 0===t?void 0:t.plan.productTier)!==v.K_.Free,this.isSubscriptionCanceled)?this.i18nService.t("restartSubscription"):this.i18nService.t("upgradeFreeOrganization",this.resolvePlanName(this.dialogParams.productTierType))}setInitialPlanSelection(){return $(this,void 0,void 0,function*(){this.focusedIndex=this.selectableProducts.length-1,this.isSubscriptionCanceled?yield this.selectPlan(this.reSubscribablePlan):yield this.selectPlan(this.getPlanByType(v.K_.Enterprise))})}getPlanByType(e){return this.selectableProducts.find(t=>t.productTier===e)}isSecretsManagerTrial(){var e,t,i,n;return null!==(n=null===(i=null===(t=null===(e=this.sub)||void 0===e?void 0:e.subscription)||void 0===t?void 0:t.items)||void 0===i?void 0:i.some(e=>{var t,i,n;return null===(n=null===(i=null===(t=this.sub)||void 0===t?void 0:t.customerDiscount)||void 0===i?void 0:i.appliesTo)||void 0===n?void 0:n.includes(e.productId)}))&&void 0!==n&&n}planTypeChanged(){return $(this,void 0,void 0,function*(){yield this.selectPlan(this.getPlanByType(v.K_.Enterprise))})}updateInterval(e){return $(this,void 0,void 0,function*(){this.selectedInterval=e,yield this.planTypeChanged()})}getPlanIntervals(){return[{name:v.$y[v.$y.Annually],value:v.$y.Annually},{name:v.$y[v.$y.Monthly],value:v.$y.Monthly}]}optimizedNgForRender(e){return e}getPlanCardContainerClasses(e,t){let i;switch(e==this.currentPlan?(i=ni.Disabled,this.isCardStateDisabled=!0,this.focusedIndex=t):e==this.selectedPlan?(i=ni.Selected,this.isCardStateDisabled=!1,this.focusedIndex=t):this.selectedInterval===v.$y.Monthly&&e.productTier==v.K_.Families?(i=ni.Disabled,this.isCardStateDisabled=!0,this.focusedIndex=this.selectableProducts.length-1):(i=ni.NotSelected,this.isCardStateDisabled=!1),i){case ni.Selected:return["tw-cursor-pointer","tw-block","tw-rounded","tw-border","tw-border-solid","tw-border-primary-600","hover:tw-border-primary-700","tw-border-2","!tw-border-primary-700","tw-rounded-lg"];case ni.NotSelected:return["tw-cursor-pointer","tw-block","tw-rounded","tw-border","tw-border-solid","tw-border-secondary-300","hover:tw-border-text-main","focus:tw-border-2","focus:tw-border-primary-700"];case ni.Disabled:return this.isSubscriptionCanceled?["tw-cursor-not-allowed","tw-bg-secondary-100","tw-font-normal","tw-bg-blur","tw-text-muted","tw-block","tw-rounded","tw-w-80"]:["tw-cursor-not-allowed","tw-bg-secondary-100","tw-font-normal","tw-bg-blur","tw-text-muted","tw-block","tw-rounded"]}}selectPlan(e){return $(this,void 0,void 0,function*(){if((this.selectedInterval!==v.$y.Monthly||e.productTier!=v.K_.Families)&&(e!==this.currentPlan||this.isSubscriptionCanceled)){this.selectedPlan=e,this.formGroup.patchValue({productTier:e.productTier});try{yield this.refreshSalesTax()}catch(t){this.estimatedTax=0}}})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}get upgradeRequiresPaymentMethod(){var e;const t=(null===(e=this.organization)||void 0===e?void 0:e.productTierType)===v.K_.Free,i=!this.showFree,n=!this.paymentMethod;return t&&i&&n}get selectedPlanInterval(){return this.isSubscriptionCanceled?this.currentPlan.isAnnual?"year":"month":this.selectedPlan.isAnnual?"year":"month"}get reSubscribablePlan(){var e;if(!this.currentPlan)throw new Error("Current plan must be set to find the re-subscribable plan for a cancelled subscription.");return this.currentPlan.disabled&&null!==(e=this.passwordManagerPlans.find(e=>e.productTier===this.currentPlan.productTier&&e.isAnnual===this.currentPlan.isAnnual&&!e.disabled))&&void 0!==e?e:this.currentPlan}get selectableProducts(){if(this.isSubscriptionCanceled)return[this.reSubscribablePlan];if(this.acceptingSponsorship){const e=this.passwordManagerPlans.find(e=>e.type===this._familyPlan);return this.discount=e.PasswordManager.basePrice,[e]}const e=this.formGroup.controls.businessOwned.value,t=this.passwordManagerPlans.filter(t=>t.type!==v.OL.Custom&&(!e||t.canBeUsedByBusiness)&&(this.showFree||t.productTier!==v.K_.Free)&&(t.productTier===v.K_.Free||t.productTier===v.K_.TeamsStarter||this.selectedInterval===v.$y.Annually&&t.isAnnual||this.selectedInterval===v.$y.Monthly&&!t.isAnnual)&&(t.productTier!==v.K_.Families||t.type===this._familyPlan)&&(!this.currentPlan||this.currentPlan.upgradeSortOrder<t.upgradeSortOrder)&&this.planIsEnabled(t));if(this.currentPlan.productTier===v.K_.Free&&this.selectedInterval===v.$y.Monthly&&!this.organization.useSecretsManager){const e=this.passwordManagerPlans.find(e=>e.productTier==v.K_.Families);t.push(e)}if(this.organization.useSecretsManager&&this.currentPlan.productTier===v.K_.Free){const e=t.findIndex(e=>e.productTier===v.K_.Families);-1!==e&&t.splice(e,1)}return this.currentPlan.productTier!==v.K_.Free&&t.push(this.currentPlan),t.sort((e,t)=>e.displaySortOrder-t.displaySortOrder),t}get selectablePlans(){var e;const t=this.formGroup.controls.productTier.value,i=(null===(e=this.passwordManagerPlans)||void 0===e?void 0:e.filter(e=>e.productTier===t&&this.planIsEnabled(e)))||[];return i.sort((e,t)=>e.displaySortOrder-t.displaySortOrder),i}get storageGb(){var e,t;return Math.max(0,(null!==(t=null===(e=this.sub)||void 0===e?void 0:e.maxStorageGb)&&void 0!==t?t:0)-this.selectedPlan.PasswordManager.baseStorageGb)}passwordManagerSeatTotal(e){var t;return!e.PasswordManager.hasAdditionalSeatsOption||this.isSecretsManagerTrial()?0:e.PasswordManager.seatPrice*Math.abs((null===(t=this.sub)||void 0===t?void 0:t.seats)||0)}secretsManagerSeatTotal(e,t){return e.SecretsManager.hasAdditionalSeatsOption?e.SecretsManager.seatPrice*Math.abs(t||0):0}additionalStorageTotal(e){return e.PasswordManager.hasAdditionalStorageOption?e.PasswordManager.additionalStoragePricePerGb*this.storageGb:0}additionalStoragePriceMonthly(e){return e.PasswordManager.additionalStoragePricePerGb}additionalServiceAccountTotal(e){return e.SecretsManager.hasAdditionalServiceAccountOption&&0!=this.additionalServiceAccount?e.SecretsManager.additionalPricePerServiceAccount*this.additionalServiceAccount:0}get passwordManagerSubtotal(){if(!this.selectedPlan||!this.selectedPlan.PasswordManager)return 0;let e=this.selectedPlan.PasswordManager.basePrice;return this.selectedPlan.PasswordManager.hasAdditionalSeatsOption&&(e+=this.passwordManagerSeatTotal(this.selectedPlan)),this.selectedPlan.PasswordManager.hasPremiumAccessOption&&(e+=this.selectedPlan.PasswordManager.premiumAccessOptionPrice),this.selectedPlan.PasswordManager.hasAdditionalStorageOption&&(e+=this.additionalStorageTotal(this.selectedPlan)),e-this.discount}secretsManagerSubtotal(){var e;const t=this.selectedPlan;return t&&t.SecretsManager?(this.secretsManagerTotal||(this.secretsManagerTotal=t.SecretsManager.basePrice+this.secretsManagerSeatTotal(t,null===(e=this.sub)||void 0===e?void 0:e.smSeats)+this.additionalServiceAccountTotal(t)),this.secretsManagerTotal):this.secretsManagerTotal||0}get passwordManagerSeats(){var e;return this.selectedPlan?this.selectedPlan.productTier===v.K_.Families?this.selectedPlan.PasswordManager.baseSeats:null===(e=this.sub)||void 0===e?void 0:e.seats:0}get total(){return this.organization&&this.selectedPlan?this.organization.useSecretsManager?this.passwordManagerSubtotal+this.secretsManagerSubtotal()+this.estimatedTax:this.passwordManagerSubtotal+this.estimatedTax:0}get teamsStarterPlanIsAvailable(){return this.selectablePlans.some(e=>e.type===v.OL.TeamsStarter)}get additionalServiceAccount(){var e,t,i;if(!this.currentPlan||!this.currentPlan.SecretsManager)return 0;const n=((null===(e=this.currentPlan.SecretsManager)||void 0===e?void 0:e.baseServiceAccount)||0)-(((null===(t=this.sub)||void 0===t?void 0:t.smServiceAccounts)||0)-((null===(i=this.sub)||void 0===i?void 0:i.smServiceAccountsGrace)||0));return n<=0?Math.abs(n):0}changedProduct(){const e=this.selectablePlans[0];this.setPlanType(e.type),this.handlePremiumAddonAccess(e.PasswordManager.hasPremiumAccessOption),this.handleAdditionalSeats(e.PasswordManager.hasAdditionalSeatsOption)}setPlanType(e){this.formGroup.controls.plan.setValue(e)}handlePremiumAddonAccess(e){this.formGroup.controls.premiumAccessAddon.setValue(!e)}handleAdditionalSeats(e){e?!this.currentPlan||this.currentPlan.PasswordManager.hasAdditionalSeatsOption?this.organization?this.formGroup.controls.additionalSeats.setValue(this.organization.seats):this.formGroup.controls.additionalSeats.setValue(1):this.formGroup.controls.additionalSeats.setValue(this.currentPlan.PasswordManager.baseSeats):this.formGroup.controls.additionalSeats.setValue(0)}restartSubscription(){return $(this,void 0,void 0,function*(){const e=yield this.enterPaymentMethodComponent.tokenize(),t=(0,B.c3)(this.billingFormGroup.controls.billingAddress);yield this.subscriberBillingClient.restartSubscription({type:"organization",data:this.organization},e,t),this.organizationWarningsService.refreshInactiveSubscriptionWarning()})}updateOrganization(){return $(this,void 0,void 0,function*(){var e,t,i;const n=new p.v;if(this.selectedPlan.productTier!==v.K_.Families&&(n.additionalSeats=null===(e=this.sub)||void 0===e?void 0:e.seats),(null===(t=this.sub)||void 0===t?void 0:t.maxStorageGb)>this.selectedPlan.PasswordManager.baseStorageGb&&(n.additionalStorageGb=(null===(i=this.sub)||void 0===i?void 0:i.maxStorageGb)-this.selectedPlan.PasswordManager.baseStorageGb),n.premiumAccessAddon=this.selectedPlan.PasswordManager.hasPremiumAccessOption&&this.formGroup.controls.premiumAccessAddon.value,n.planType=this.selectedPlan.type,this.showPayment&&(n.billingAddressCountry=this.billingFormGroup.controls.billingAddress.value.country,n.billingAddressPostalCode=this.billingFormGroup.controls.billingAddress.value.postalCode),this.buildSecretsManagerRequest(n),this.upgradeRequiresPaymentMethod||this.showPayment||!this.paymentMethod){const e=yield this.enterPaymentMethodComponent.tokenize(),t=(0,B.c3)(this.billingFormGroup.controls.billingAddress),i={type:"organization",data:this.organization};yield this.subscriberBillingClient.updateBillingAddress(i,t),yield this.subscriberBillingClient.updatePaymentMethod(i,e,null)}if(!this.organization.hasPublicAndPrivateKeys){const e=yield(0,o._)(this.accountService.activeAccount$.pipe((0,l.T)(e=>null==e?void 0:e.id))),t=yield(0,o._)(this.keyService.orgKeys$(e).pipe((0,l.T)(e=>{var t;return null!==(t=null==e?void 0:e[this.organizationId])&&void 0!==t?t:null}))),i=yield this.keyService.makeKeyPair(t);n.keys=new A.B(i[0],i[1].encryptedString)}return yield this.organizationApiService.upgrade(this.organizationId,n),this.organizationId})}billingSubLabelText(){const e=this.selectedPlan,t=0===e.PasswordManager.basePrice?e.PasswordManager.seatPrice:e.PasswordManager.basePrice;let i="";return e.isAnnual?i+=`${this.i18nService.t("annual")} ($${t}/${this.i18nService.t("yr")})`:i+=`${this.i18nService.t("monthly")} ($${t}/${this.i18nService.t("monthAbbr")})`,i}buildSecretsManagerRequest(e){var t;e.useSecretsManager=this.organization.useSecretsManager,this.organization.useSecretsManager&&(this.selectedPlan.SecretsManager.hasAdditionalSeatsOption&&this.currentPlan.productTier===v.K_.Free?e.additionalSmSeats=this.organization.seats:(e.additionalSmSeats=null===(t=this.sub)||void 0===t?void 0:t.smSeats,e.additionalServiceAccounts=this.additionalServiceAccount))}upgradeFlowPrefillForm(){if(this.acceptingSponsorship)return this.formGroup.controls.productTier.setValue(v.K_.Families),void this.changedProduct();if(this.currentPlan&&this.currentPlan.productTier!==v.K_.Enterprise){const e=this.passwordManagerPlans.find(e=>this.currentPlan.productTier===v.K_.Free?e.type===this._familyPlan:this.currentPlan.productTier!==v.K_.Families||this.teamsStarterPlanIsAvailable?e.upgradeSortOrder===this.currentPlan.upgradeSortOrder+1:e.type===v.OL.TeamsAnnually);this.plan=e.type,this.productTier=e.productTier,this.changedProduct()}}planIsEnabled(e){return!e.disabled&&!e.legacyYear}toggleShowPayment(){this.showPayment=!0}toggleTotalOpened(){this.totalOpened=!this.totalOpened}calculateTotalAppliedDiscount(e){return e*(this.discountPercentageFromSub/100)}resolvePlanName(e){switch(e){case v.K_.Enterprise:return this.i18nService.t("planNameEnterprise");case v.K_.Free:return this.i18nService.t("planNameFree");case v.K_.Families:return this.i18nService.t("planNameFamilies");case v.K_.Teams:return this.i18nService.t("planNameTeams");case v.K_.TeamsStarter:return this.i18nService.t("planNameTeamsStarter")}}onKeydown(e,t){const i=Array.from(document.querySelectorAll(".product-card"));let n=t;const r="ArrowRight"===e.key||"ArrowDown"===e.key?1:-1;if(["ArrowRight","ArrowDown","ArrowLeft","ArrowUp"].includes(e.key)){do{n=(n+r+i.length)%i.length}while(this.isCardDisabled(n)&&n!==t);e.preventDefault(),setTimeout(()=>{const e=i[n];e.classList.contains("tw-bg-secondary-100")&&e.classList.contains("tw-text-muted")||null==e||e.focus()},0)}}onFocus(e){return $(this,void 0,void 0,function*(){this.focusedIndex=e,yield this.selectPlan(this.selectableProducts[e])})}isCardDisabled(e){return this.selectableProducts[e]===(this.currentPlan||this.isCardStateDisabled)}manageSelectableProduct(e){return e}refreshSalesTax(){return $(this,void 0,void 0,function*(){if(this.billingFormGroup.controls.billingAddress.invalid&&!this.billingAddress)return;const e=this.billingFormGroup.controls.billingAddress.valid?(0,B.c3)(this.billingFormGroup.controls.billingAddress):this.billingAddress,t=yield this.previewInvoiceClient.previewTaxForOrganizationSubscriptionPlanChange(this.organizationId,(e=>{switch(e){case v.OL.FamiliesAnnually:case v.OL.FamiliesAnnually2025:return{tier:"families",cadence:"annually"};case v.OL.TeamsMonthly:return{tier:"teams",cadence:"monthly"};case v.OL.TeamsAnnually:return{tier:"teams",cadence:"annually"};case v.OL.EnterpriseMonthly:return{tier:"enterprise",cadence:"monthly"};case v.OL.EnterpriseAnnually:return{tier:"enterprise",cadence:"annually"}}})(this.selectedPlan.type),e);this.estimatedTax=t.tax})}canUpdatePaymentInformation(){return this.upgradeRequiresPaymentMethod||this.showPayment||!this.paymentMethod||this.isSubscriptionCanceled}get submitButtonLabel(){var e;return this.organization&&this.sub&&this.organization.productTierType!==v.K_.Free&&"canceled"===(null===(e=this.sub.subscription)||void 0===e?void 0:e.status)?this.i18nService.t("restart"):this.i18nService.t("upgrade")}get supportsTaxId(){return this.formGroup.value.productTier!==v.K_.Families}}si.ɵfac=function(e){return new(e||si)(k.rXU(b.Qs),k.rXU(F.ce),k.rXU(R.f),k.rXU(T.G),k.rXU(D.W),k.rXU(C.Lu),k.rXU(P.Ix),k.rXU(f.H),k.rXU(M.m),k.rXU(h.PV),k.rXU(m.U),k.rXU(r.ok),k.rXU(x.X),k.rXU(V.D),k.rXU(S.g),k.rXU(I.Hd),k.rXU(I.dA),k.rXU(w.S))},si.ɵcmp=k.VBU({type:si,selectors:[["ng-component"]],viewQuery:function(e,t){if(1&e&&k.GBs(B.Pu,5),2&e){let e;k.mGM(e=k.lsd())&&(t.enterPaymentMethodComponent=e.first)}},inputs:{acceptingSponsorship:"acceptingSponsorship",organizationId:"organizationId",showFree:"showFree",showCancel:"showCancel",productTier:"productTier",plan:"plan",providerId:"providerId"},outputs:{onSuccess:"onSuccess",onCanceled:"onCanceled",onTrialBillingSuccess:"onTrialBillingSuccess"},decls:21,vars:19,consts:[["nonEnterprisePlans",""],["fullFeatureList",""],["notAcceptingSponsorship",""],["bit-dialog","","dialogSize","large",3,"formGroup","bitSubmit","loading"],["bitDialogTitle","",1,"tw-font-medium"],["bitDialogContent",""],[1,"tw-mb-3","tw-flex","tw-justify-between"],[1,"tw-text-lg","tw-pr-1","tw-font-medium",3,"hidden"],[1,"tw-flex","tw-items-center","tw-gap-2"],["class","tw-inline-block",4,"ngIf"],[4,"ngIf"],["bitDialogFooter",""],["bitButton","","bitFormButton","","buttonType","primary","type","submit"],["bitButton","","buttonType","secondary","type","button",3,"bitDialogClose"],[1,"tw-inline-block"],[3,"selectedChange","selected","label"],[3,"value",4,"ngFor","ngForOf","ngForTrackBy"],[3,"value"],[1,"tw-grid","tw-grid-flow-col","tw-gap-4","tw-mb-4"],[3,"ngClass","id","click","keyup","focus",4,"ngFor","ngForOf","ngForTrackBy"],["type","info","title","SECRETS MANAGER SUBSCRIPTION",4,"ngIf"],["type","info","title","PASSWORD MANAGER SUBSCRIPTION",4,"ngIf"],[3,"click","keyup","focus","ngClass","id"],[1,"tw-relative"],["class","tw-bg-secondary-100 tw-text-center !tw-border-0 tw-text-sm tw-font-medium tw-py-1",3,"ngClass",4,"ngIf"],[1,"tw-px-2","tw-pb-[4px]",3,"ngClass"],[1,"tw-text-[1.25rem]","tw-mt-[6px]","tw-font-medium","tw-mb-0","tw-leading-[2rem]","tw-flex","tw-items-center"],[1,"tw-capitalize","tw-whitespace-nowrap"],["bitBadge","","variant","secondary","class","tw-ml-2 tw-align-middle",4,"ngIf"],[4,"ngIf","ngIfElse"],[1,"tw-bg-secondary-100","tw-text-center","!tw-border-0","tw-text-sm","tw-font-medium","tw-py-1",3,"ngClass"],["bitBadge","","variant","secondary",1,"tw-ml-2","tw-align-middle"],[1,"tw-text-lg","tw-font-medium"],[1,"tw-text-xs","tw-px-0"],[1,"tw-text-sm","tw-font-medium"],["class","tw-text-xs tw-px-2 tw-font-medium tw-mb-1",4,"ngIf"],[1,"tw-text-xs","tw-px-2","tw-mb-1"],[1,"bwi-ul","tw-text-xs"],["aria-hidden","true",1,"bwi","bwi-check","tw-text-success","bwi-li"],["class","bwi-ul tw-text-xs",4,"ngIf"],[1,"tw-text-xs","tw-px-2","tw-font-medium","tw-mb-1"],[1,"tw-px-2","tw-pb-2","tw-list-inside","tw-mb-0","tw-text-xs"],["class","tw-text-xs tw-px-2 tw-mb-1",4,"ngIf"],["class","bwi-ul tw-text-xs tw-mb-1",4,"ngIf"],[1,"bwi-ul","tw-text-xs","tw-mb-1"],["type","info","title","SECRETS MANAGER SUBSCRIPTION"],["type","info","title","PASSWORD MANAGER SUBSCRIPTION"],["bitTypography","h4"],[1,"tw-mt-4"],[1,"tw-text-lg","tw-mb-1"],[1,"tw-font-medium"],[1,"tw-text-xs","tw-font-light"],["type","button","size","small",3,"click","bitIconButton","label"],["class","tw-flex tw-flex-wrap tw-gap-4",4,"ngIf"],["class","tw-flex tw-flex-wrap tw-gap-4 tw-mt-4",4,"ngIf"],[1,"bwi","bwi-fw","bwi-billing"],[1,"tw-ml-2","tw-text-primary-600","tw-cursor-pointer",3,"click"],[3,"class"],[1,"bwi","bwi-fw","bwi-credit-card"],[1,"bwi","bwi-fw","bwi-paypal","tw-text-primary-600"],[3,"group"],[3,"group","scenario"],[1,"tw-flex","tw-flex-wrap","tw-gap-4"],["class","tw-w-1/2",4,"ngIf"],[1,"tw-w-1/2"],["class","tw-font-medium tw-mb-1",4,"ngIf"],["class","tw-mb-1 tw-flex tw-justify-between","bitTypography","body2",4,"ngIf"],["class","tw-mb-0 tw-flex tw-justify-between","bitTypography","body2",4,"ngIf"],["class","tw-font-medium tw-mt-3 tw-mb-1",4,"ngIf"],[1,"tw-font-medium","tw-mb-1"],["bitTypography","body2",1,"tw-mb-1","tw-flex","tw-justify-between"],[1,"tw-line-through"],["bitTypography","body2",1,"tw-mb-0","tw-flex","tw-justify-between"],[1,"tw-text-xs"],[1,"tw-line-through","tw-text-xs"],[1,"tw-font-medium","tw-mt-3","tw-mb-1"],["class","tw-font-medium tw-mt-2 tw-mb-0",4,"ngIf"],["class","tw-font-medium tw-mt-3 tw-mb-0",4,"ngIf"],[1,"tw-font-medium","tw-mt-2","tw-mb-0"],[1,"tw-font-medium","tw-mt-3","tw-mb-0"],[1,"tw-flex","tw-flex-wrap","tw-gap-4","tw-mt-4"],[1,"tw-flex","tw-justify-between","tw-border-0","tw-border-solid","tw-border-t","tw-border-secondary-300","tw-pt-2","tw-mb-0"],[1,"tw-text-xs","tw-font-medium"]],template:function(e,t){1&e&&(k.j41(0,"form",3)(1,"span",4),k.EFF(2),k.k0s(),k.j41(3,"div",5)(4,"p"),k.EFF(5),k.nI1(6,"i18n"),k.k0s(),k.j41(7,"div",6)(8,"span",7),k.EFF(9),k.nI1(10,"i18n"),k.k0s(),k.j41(11,"div",8),k.DNE(12,ne,4,6,"div",9),k.k0s()(),k.DNE(13,ke,7,6,"ng-container",10)(14,ti,23,27,"ng-container",10),k.k0s(),k.qex(15,11),k.j41(16,"button",12),k.EFF(17),k.k0s(),k.j41(18,"button",13),k.EFF(19),k.nI1(20,"i18n"),k.k0s(),k.bVm(),k.k0s()),2&e&&(k.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit)("loading",t.loading),k.R7$(2),k.SpI(" ",t.dialogHeaderName," "),k.R7$(3),k.JRh(k.bMT(6,13,"upgradePlans")),k.R7$(3),k.Y8G("hidden",t.isSubscriptionCanceled),k.R7$(),k.JRh(k.bMT(10,15,"selectAPlan")),k.R7$(3),k.Y8G("ngIf",!t.isSubscriptionCanceled),k.R7$(),k.Y8G("ngIf",!t.loading&&!t.selfHosted&&t.passwordManagerPlans),k.R7$(),k.Y8G("ngIf",t.formGroup.value.productTier!==t.productTypes.Free||t.isSubscriptionCanceled),k.R7$(3),k.SpI(" ",t.submitButtonLabel," "),k.R7$(),k.Y8G("bitDialogClose",t.ResultType.Closed),k.R7$(),k.SpI(" ",k.bMT(20,17,"cancel")," "))},dependencies:[Q.r,G.YU,G.Sq,G.bT,r.qT,r.cb,r.j4,U.$,O.L,N.n,j.Q,Y.G,X.I,z.m,L.hJ,W.I,K.s,Z.H,H.a,J.r,B.Pu,B.vU,y.i,G.GH,G.PV,G.oe,q.$],encapsulation:2})},67372(e,t,i){"use strict";i.d(t,{v:()=>Ft});var n=i(24590),r=i(63477),s=i(11217),o=i(92128),a=i(84210),l=i(4958),c=i(83604),d=i(87806),u=i(68108),h=i(29236),A=i(68711),p=i(191),g=i(69783),v=i(67553),m=i(77665),f=i(79334),y=i(79667);class b{constructor(e,t){this.clientOwnerEmail=e,this.organizationCreateRequest=t}}var C=i(3633),I=i(60512),w=i(64447),B=i(32706),E=i(82468),S=i(83516),Q=i(39488),k=i(8916),R=i(92954),F=i(9327),T=i(88977),D=i(81098),P=i(32501),M=i(33102),x=i(69022),V=i(62482),G=i(14041),U=i(12012),O=i(50700),N=i(37115),j=i(89105),Y=i(26983),X=i(18499),z=i(11224),L=i(62316),W=i(69855),K=i(35500),Z=i(1601),H=i(58329),J=i(46758),q=i(26657),$=i(38620),_=i(56898),ee=i(44432),te=i(50352),ie=i(90246),ne=i(86226),re=i(93199),se=i(42016),oe=i(19934),ae=i(68466),le=i(43759),ce=i(58384),de=i(24374),ue=i(88832),he=i(58806),Ae=i(91517),pe=i(54596),ge=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class ve{constructor(e,t,i,n,r){this.formBuilder=e,this.i18nService=t,this.platformUtilsService=i,this.toastService=n,this.tokenService=r;if(!this.platformUtilsService.isSelfHost())throw new Error("This component should only be used in self-hosted environments");this.form=this.formBuilder.group({file:[null,[a.k0.required]]}),this.submit=this.submit.bind(this)}get formValue(){return this.form.value}onLicenseFileSelectedChanged(e){const t=e.target;this.form.value.file=t.files.length>0?t.files[0]:null}submit(){return ge(this,void 0,void 0,function*(){if(this.form.markAllAsTouched(),this.form.invalid)return this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:this.i18nService.t("selectFile")});return(yield this.tokenService.getEmailVerified())?void 0:this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:this.i18nService.t("verifyEmailFirst")})})}}var me=i(83078),fe=i(25740),ye=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class be extends ve{constructor(e,t,i,n,r,o,a,l,c,d,u){super(e,t,i,n,r),this.formBuilder=e,this.i18nService=t,this.platformUtilsService=i,this.toastService=n,this.tokenService=r,this.apiService=o,this.encryptService=a,this.keyService=l,this.organizationApiService=c,this.syncService=d,this.accountService=u,this.onLicenseFileUploaded=new s.bkB}submit(){const e=Object.create(null,{submit:{get:()=>super.submit}});return ye(this,void 0,void 0,function*(){yield e.submit.call(this);const t=yield(0,u._)((0,C.F6)(this.accountService.activeAccount$)),i=yield this.keyService.makeOrgKey(t),n=i[0].encryptedString,r=(yield this.encryptService.encryptString(this.i18nService.t("defaultCollection"),i[1])).encryptedString,s=yield this.keyService.makeKeyPair(i[1]),o=new FormData;o.append("license",this.formValue.file),o.append("key",n),o.append("collectionName",r);const a=(yield this.organizationApiService.createLicense(o)).id;yield this.apiService.refreshIdentityToken();const l=new f.B(s[0],s[1].encryptedString);yield this.organizationApiService.updateKeys(a,l),yield this.apiService.refreshIdentityToken(),yield this.syncService.fullSync(!0),this.onLicenseFileUploaded.emit(a)})}get description(){return"uploadLicenseFileOrg"}get hintFileName(){return"bitwarden_organization_license.json"}}be.ɵfac=function(e){return new(e||be)(G.rXU(a.ok),G.rXU(O.W),G.rXU(N.y),G.rXU(W.f),G.rXU(me.B),G.rXU(U.G),G.rXU(j.N),G.rXU(k.Lu),G.rXU(z.X),G.rXU(pe.H),G.rXU(K.D))},be.ɵcmp=G.VBU({type:be,selectors:[["organization-self-hosting-license-uploader"]],outputs:{onLicenseFileUploaded:"onLicenseFileUploaded"},standalone:!1,features:[G.Vt3],decls:22,vars:21,consts:[["fileSelector",""],["bitTypography","body1",1,"tw-break-words","tw-whitespace-normal","tw-mb-8"],[3,"formGroup","bitSubmit"],[1,"tw-my-1"],["bitButton","","type","button","buttonType","secondary",3,"click"],["bitInput","","type","file","formControlName","file","accept","application/JSON","hidden","",1,"tw-hidden",3,"change"],["type","submit","bitButton","","bitFormButton","","buttonType","primary"]],template:function(e,t){if(1&e){const e=G.RV6();G.j41(0,"p",1),G.EFF(1),G.nI1(2,"i18n"),G.k0s(),G.j41(3,"form",2)(4,"bit-form-field")(5,"bit-label"),G.EFF(6),G.nI1(7,"i18n"),G.k0s(),G.j41(8,"div",3)(9,"button",4),G.bIt("click",function(){s.eBV(e);const t=G.sdS(15);return s.Njj(t.click())}),G.EFF(10),G.nI1(11,"i18n"),G.k0s(),G.EFF(12),G.nI1(13,"i18n"),G.k0s(),G.j41(14,"input",5,0),G.bIt("change",function(e){return t.onLicenseFileSelectedChanged(e)}),G.k0s(),G.j41(16,"bit-hint"),G.EFF(17),G.nI1(18,"i18n"),G.k0s()(),G.j41(19,"button",6),G.EFF(20),G.nI1(21,"i18n"),G.k0s()()}2&e&&(G.R7$(),G.SpI(" ",G.bMT(2,8,"uploadLicenseFileOrg"),"\n"),G.R7$(2),G.Y8G("formGroup",t.form)("bitSubmit",t.submit),G.R7$(3),G.JRh(G.bMT(7,10,t.description)),G.R7$(4),G.SpI(" ",G.bMT(11,12,"chooseFile")," "),G.R7$(2),G.SpI(" ",t.form.value.file?t.form.value.file.name:G.bMT(13,14,"noFileChosen")," "),G.R7$(5),G.JRh(G.i5U(18,16,"licenseFileDesc",t.hintFileName)),G.R7$(3),G.SpI(" ",G.bMT(21,19,"submit")," "))},dependencies:[a.qT,a.me,a.BC,a.cb,a.j4,a.JD,q.$,$.L,_.Q,ne.j,re.I,oe.J,le.h,he.r,fe.$],encapsulation:2});var Ce=i(58688),Ie=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const we=e=>({"tw-hidden":e}),Be=e=>({type:"checkout",supportsTaxId:e});function Ee(e,t){1&e&&(G.qex(0),G.nrm(1,"bit-icon",2),G.nI1(2,"i18n"),G.j41(3,"span",3),G.EFF(4),G.nI1(5,"i18n"),G.k0s(),G.bVm()),2&e&&(G.R7$(),G.Y8G("title",G.mNQ(G.bMT(2,3,"loading"))),G.R7$(3),G.JRh(G.bMT(5,5,"loading")))}function Se(e,t){if(1&e){const e=G.RV6();G.qex(0),G.j41(1,"organization-self-hosting-license-uploader",4),G.bIt("onLicenseFileUploaded",function(t){s.eBV(e);const i=G.XpG();return s.Njj(i.onLicenseFileUploaded(t))}),G.k0s(),G.bVm()}}function Qe(e,t){1&e&&(G.j41(0,"li"),G.EFF(1),G.nI1(2,"i18n"),G.k0s()),2&e&&(G.R7$(),G.JRh(G.bMT(2,1,"onPremHostingOptional")))}function ke(e,t){1&e&&(G.j41(0,"li"),G.EFF(1),G.nI1(2,"i18n"),G.k0s()),2&e&&(G.R7$(),G.JRh(G.bMT(2,1,"includeSsoAuthentication")))}function Re(e,t){1&e&&(G.j41(0,"li"),G.EFF(1),G.nI1(2,"i18n"),G.k0s()),2&e&&(G.R7$(),G.JRh(G.bMT(2,1,"includeEnterprisePolicies")))}function Fe(e,t){if(1&e&&(G.j41(0,"li"),G.EFF(1),G.nI1(2,"i18n"),G.k0s()),2&e){G.XpG(2);const e=G.r8f(9);G.R7$(),G.JRh(G.i5U(2,1,"xDayFreeTrial",e))}}function Te(e,t){if(1&e&&(G.j41(0,"ul",16)(1,"li"),G.EFF(2),G.nI1(3,"i18n"),G.k0s(),G.nVh(4,Qe,3,3,"li"),G.nVh(5,ke,3,3,"li"),G.nVh(6,Re,3,3,"li"),G.nVh(7,Fe,3,4,"li"),G.k0s()),2&e){G.XpG();const e=G.r8f(2),t=G.r8f(3),i=G.r8f(4),n=G.r8f(10);G.R7$(2),G.JRh(G.bMT(3,5,"includeAllTeamsFeatures")),G.R7$(2),G.vxM(e?4:-1),G.R7$(),G.vxM(t?5:-1),G.R7$(),G.vxM(i?6:-1),G.R7$(),G.vxM(n?7:-1)}}function De(e,t){if(1&e&&(G.j41(0,"li"),G.EFF(1),G.nI1(2,"i18n"),G.k0s()),2&e){G.XpG(3);const e=G.r8f(9);G.R7$(),G.SpI(" ",G.i5U(2,1,"xDayFreeTrial",e)," ")}}function Pe(e,t){if(1&e&&(G.j41(0,"ul",16)(1,"li"),G.EFF(2),G.nI1(3,"i18n"),G.k0s(),G.j41(4,"li"),G.EFF(5),G.nI1(6,"i18n"),G.k0s(),G.j41(7,"li"),G.EFF(8),G.nI1(9,"i18n"),G.k0s(),G.nVh(10,De,3,4,"li"),G.k0s()),2&e){G.XpG(2);const e=G.r8f(10);G.R7$(2),G.JRh(G.bMT(3,4,"includeAllTeamsStarterFeatures")),G.R7$(3),G.JRh(G.bMT(6,6,"chooseMonthlyOrAnnualBilling")),G.R7$(3),G.JRh(G.i5U(9,8,"abilityToAddMoreThanNMembers",10)),G.R7$(2),G.vxM(e?10:-1)}}function Me(e,t){if(1&e&&(G.j41(0,"li"),G.EFF(1),G.nI1(2,"i18n"),G.k0s()),2&e){G.XpG(3);const e=G.r8f(0);G.R7$(),G.JRh(G.i5U(2,1,"limitedUsers",e.maxSeats))}}function xe(e,t){if(1&e&&(G.j41(0,"li"),G.EFF(1),G.nI1(2,"i18n"),G.k0s()),2&e){G.XpG(3);const e=G.r8f(0);G.R7$(),G.JRh(G.i5U(2,1,"addShareLimitedUsers",e.maxSeats))}}function Ve(e,t){1&e&&(G.j41(0,"li"),G.EFF(1),G.nI1(2,"i18n"),G.k0s()),2&e&&(G.R7$(),G.JRh(G.bMT(2,1,"addShareUnlimitedUsers")))}function Ge(e,t){if(1&e&&(G.j41(0,"li"),G.EFF(1),G.nI1(2,"i18n"),G.k0s()),2&e){G.XpG(3);const e=G.r8f(0);G.R7$(),G.JRh(G.i5U(2,1,"limitedCollections",e.maxCollections))}}function Ue(e,t){if(1&e&&(G.j41(0,"li"),G.EFF(1),G.nI1(2,"i18n"),G.k0s()),2&e){G.XpG(3);const e=G.r8f(0);G.R7$(),G.JRh(G.i5U(2,1,"addShareLimitedUsers",e.maxAdditionalSeats))}}function Oe(e,t){1&e&&(G.j41(0,"li"),G.EFF(1),G.nI1(2,"i18n"),G.k0s()),2&e&&(G.R7$(),G.JRh(G.bMT(2,1,"createUnlimitedCollections")))}function Ne(e,t){if(1&e&&(G.j41(0,"li"),G.EFF(1),G.nI1(2,"i18n"),G.k0s()),2&e){G.XpG(3);const e=G.r8f(0);G.R7$(),G.JRh(G.i5U(2,1,"gbEncryptedFileStorage",e.baseStorageGb+" GB"))}}function je(e,t){1&e&&(G.j41(0,"li"),G.EFF(1),G.nI1(2,"i18n"),G.k0s()),2&e&&(G.R7$(),G.JRh(G.bMT(2,1,"controlAccessWithGroups")))}function Ye(e,t){1&e&&(G.j41(0,"li"),G.EFF(1),G.nI1(2,"i18n"),G.k0s()),2&e&&(G.R7$(),G.JRh(G.bMT(2,1,"trackAuditLogs")))}function Xe(e,t){1&e&&(G.j41(0,"li"),G.EFF(1),G.nI1(2,"i18n"),G.k0s()),2&e&&(G.R7$(),G.JRh(G.bMT(2,1,"syncUsersFromDirectory")))}function ze(e,t){1&e&&(G.j41(0,"li"),G.EFF(1),G.nI1(2,"i18n"),G.k0s()),2&e&&(G.R7$(),G.JRh(G.bMT(2,1,"onPremHostingOptional")))}function Le(e,t){1&e&&(G.j41(0,"li"),G.EFF(1),G.nI1(2,"i18n"),G.k0s()),2&e&&(G.R7$(),G.JRh(G.bMT(2,1,"usersGetPremium")))}function We(e,t){1&e&&(G.j41(0,"li"),G.EFF(1),G.nI1(2,"i18n"),G.k0s()),2&e&&(G.R7$(),G.JRh(G.bMT(2,1,"priorityCustomerSupport")))}function Ke(e,t){if(1&e&&(G.j41(0,"li"),G.EFF(1),G.nI1(2,"i18n"),G.k0s()),2&e){G.XpG(3);const e=G.r8f(9);G.R7$(),G.JRh(G.i5U(2,1,"xDayFreeTrial",e))}}function Ze(e,t){if(1&e&&(G.j41(0,"ul",16),G.nVh(1,Me,3,4,"li"),G.nVh(2,xe,3,4,"li"),G.nVh(3,Ve,3,3,"li"),G.nVh(4,Ge,3,4,"li"),G.nVh(5,Ue,3,4,"li"),G.nVh(6,Oe,3,3,"li"),G.nVh(7,Ne,3,4,"li"),G.nVh(8,je,3,3,"li"),G.nVh(9,Ye,3,3,"li"),G.nVh(10,Xe,3,3,"li"),G.nVh(11,ze,3,3,"li"),G.nVh(12,Le,3,3,"li"),G.nVh(13,We,3,3,"li"),G.nVh(14,Ke,3,4,"li"),G.k0s()),2&e){G.XpG(2);const e=G.r8f(0),t=G.r8f(1),i=G.r8f(2),n=G.r8f(5),r=G.r8f(6),s=G.r8f(7),o=G.r8f(8),a=G.r8f(10),l=G.XpG(2);G.R7$(),G.vxM(t==l.productTypes.Free?1:-1),G.R7$(),G.vxM(t!=l.productTypes.Free&&t!=l.productTypes.TeamsStarter&&e.maxSeats?2:-1),G.R7$(),G.vxM(e.maxSeats?-1:3),G.R7$(),G.vxM(e.maxCollections?4:-1),G.R7$(),G.vxM(e.maxAdditionalSeats?5:-1),G.R7$(),G.vxM(e.maxCollections?-1:6),G.R7$(),G.vxM(e.baseStorageGb?7:-1),G.R7$(),G.vxM(n?8:-1),G.R7$(),G.vxM(r?9:-1),G.R7$(),G.vxM(s?10:-1),G.R7$(),G.vxM(i?11:-1),G.R7$(),G.vxM(o?12:-1),G.R7$(),G.vxM(t!=l.productTypes.Free?13:-1),G.R7$(),G.vxM(a?14:-1)}}function He(e,t){if(1&e&&G.nVh(0,Pe,11,11,"ul",16)(1,Ze,15,14,"ul",16),2&e){G.XpG();const e=G.r8f(1),t=G.XpG(2);G.vxM(e===t.productTypes.Teams&&t.teamsStarterPlanIsAvailable()?0:1)}}function Je(e,t){if(1&e&&(G.EFF(0),G.nI1(1,"i18n"),G.nI1(2,"currency"),G.nI1(3,"i18n")),2&e){const e=G.XpG(3).$implicit,t=G.r8f(0);G.E5c(" ",G.bMT(1,3,"additionalUsers").toLowerCase()," ",G.i5U(2,5,e.isAnnual?t.seatPrice/12:t.seatPrice,"$")," /",G.bMT(3,8,"month")," ")}}function qe(e,t){if(1&e&&(G.EFF(0),G.nI1(1,"currency"),G.nI1(2,"i18n"),G.nI1(3,"i18n"),G.nVh(4,Je,4,10)),2&e){const e=G.XpG(2).$implicit,t=G.r8f(0);G.E5c(" ",G.i5U(1,4,e.isAnnual?t.basePrice/12:t.basePrice,"$")," /",G.bMT(2,7,"month"),", ",G.i5U(3,9,"includesXUsers",t.baseSeats)," "),G.R7$(4),G.vxM(t.hasAdditionalSeatsOption?4:-1)}}function $e(e,t){if(1&e&&(G.j41(0,"span",17),G.nVh(1,qe,5,12),G.k0s()),2&e){G.XpG();const e=G.r8f(0),t=G.XpG(2);G.R7$(),G.vxM(e.basePrice&&!t.acceptingSponsorship()?1:-1)}}function _e(e,t){if(1&e&&(G.j41(0,"span",17),G.EFF(1),G.nI1(2,"currency"),G.nI1(3,"i18n"),G.nI1(4,"i18n"),G.k0s()),2&e){const e=G.XpG().$implicit,t=G.r8f(0);G.R7$(),G.Lme(" ",G.i5U(3,5,"costPerUser",G.i5U(2,2,e.isAnnual?t.seatPrice/12:t.seatPrice,"$"))," /",G.bMT(4,8,"month")," ")}}function et(e,t){1&e&&(G.j41(0,"span",17),G.EFF(1),G.nI1(2,"i18n"),G.k0s()),2&e&&(G.R7$(),G.JRh(G.bMT(2,1,"freeForever")))}function tt(e,t){var i;if(1&e){const e=G.RV6();G.SS7(0)(1)(2)(3)(4)(5)(6)(7)(8)(9)(10),G.j41(11,"div",9)(12,"bit-radio-button",14),G.bIt("change",function(){s.eBV(e);const t=G.XpG(2);return s.Njj(t.changedProduct())}),G.j41(13,"bit-label"),G.EFF(14),G.nI1(15,"i18n"),G.k0s(),G.j41(16,"bit-hint",15),G.EFF(17),G.nI1(18,"i18n"),G.nVh(19,Te,8,7,"ul",16)(20,He,2,1),G.k0s()(),G.nVh(21,$e,2,1,"span",17),G.nVh(22,_e,5,10,"span",17),G.nVh(23,et,3,3,"span",17),G.k0s()}if(2&e){const e=t.$implicit,n=G.XpG(2),r=G.r8f(0),s=G.bH3(e.PasswordManager);G.R7$();const o=G.bH3(e.productTier);G.R7$(),G.bH3(e.hasSelfHost),G.R7$(),G.bH3(e.hasSso),G.R7$(),G.bH3(e.hasPolicies),G.R7$(),G.bH3(e.hasGroups),G.R7$(),G.bH3(e.hasApi),G.R7$(),G.bH3(e.hasDirectory),G.R7$(),G.bH3(e.usersGetPremium);const a=e.trialPeriodDays;G.R7$();const l=G.bH3(null!==(i=n.trialLength())&&void 0!==i?i:a);G.R7$(),G.bH3(o!=n.productTypes.Free&&l&&n.createOrganization()&&!r),G.R7$(2),G.Y8G("value",o),G.R7$(2),G.JRh(G.bMT(15,18,e.nameLocalizationKey)),G.R7$(3),G.SpI("",G.i5U(18,20,e.descriptionLocalizationKey,"1")," "),G.R7$(2),G.vxM(o===n.productTypes.Enterprise?19:20),G.R7$(2),G.vxM(o!=n.productTypes.Free?21:-1),G.R7$(),G.vxM(!s.basePrice&&s.hasAdditionalSeatsOption?22:-1),G.R7$(),G.vxM(o==n.productTypes.Free?23:-1)}}function it(e,t){1&e&&(G.j41(0,"bit-section")(1,"h2",7),G.EFF(2),G.nI1(3,"i18n"),G.k0s(),G.j41(4,"div",18)(5,"bit-form-field",19)(6,"bit-label"),G.EFF(7),G.nI1(8,"i18n"),G.k0s(),G.nrm(9,"input",20),G.nI1(10,"i18n"),G.j41(11,"bit-hint",15),G.EFF(12),G.nI1(13,"i18n"),G.k0s()()()()),2&e&&(G.R7$(2),G.JRh(G.bMT(3,5,"users")),G.R7$(5),G.JRh(G.bMT(8,7,"userSeats")),G.R7$(2),G.Y8G("placeholder",G.mNQ(G.bMT(10,9,"userSeatsDesc"))),G.R7$(3),G.JRh(G.bMT(13,11,"userSeatsHowManyDesc")))}function nt(e,t){if(1&e&&(G.j41(0,"div",18)(1,"bit-form-field",19)(2,"bit-label"),G.EFF(3),G.nI1(4,"i18n"),G.k0s(),G.nrm(5,"input",22),G.nI1(6,"i18n"),G.j41(7,"bit-hint",15),G.EFF(8),G.nI1(9,"currency"),G.nI1(10,"i18n"),G.k0s()()()),2&e){G.XpG(2);const e=G.r8f(0),t=G.XpG(2);G.R7$(3),G.JRh(G.bMT(4,4,"additionalUserSeats")),G.R7$(2),G.Y8G("placeholder",G.mNQ(G.bMT(6,6,"userSeatsDesc"))),G.R7$(3),G.SpI("",G.brH(10,11,"userSeatsAdditionalDesc",e.PasswordManager.baseSeats,G.i5U(9,8,t.seatPriceMonthly(e),"$"))," ")}}function rt(e,t){if(1&e&&(G.j41(0,"bit-section")(1,"h2",7),G.EFF(2),G.nI1(3,"i18n"),G.k0s(),G.nVh(4,nt,11,15,"div",18),G.j41(5,"div",18)(6,"bit-form-field",19)(7,"bit-label"),G.EFF(8),G.nI1(9,"i18n"),G.k0s(),G.nrm(10,"input",21),G.nI1(11,"i18n"),G.j41(12,"bit-hint",15),G.EFF(13),G.nI1(14,"currency"),G.nI1(15,"i18n"),G.nI1(16,"i18n"),G.k0s()()()()),2&e){G.XpG();const e=G.r8f(0),t=G.XpG(2);G.R7$(2),G.JRh(G.bMT(3,6,"addons")),G.R7$(2),G.vxM(e.PasswordManager.hasAdditionalSeatsOption&&e.PasswordManager.baseSeats?4:-1),G.R7$(4),G.JRh(G.bMT(9,8,"additionalStorageGb")),G.R7$(2),G.Y8G("placeholder",G.mNQ(G.bMT(11,10,"additionalStorageGbDesc"))),G.R7$(3),G.JRh(G.ii3(16,17,"additionalStorageIntervalDesc",`${e.PasswordManager.baseStorageGb} GB`,G.i5U(14,12,t.additionalStoragePriceMonthly(e),"$"),G.bMT(15,15,"month")))}}function st(e,t){1&e&&(G.j41(0,"div",18)(1,"bit-form-control",19)(2,"bit-label"),G.EFF(3),G.nI1(4,"i18n"),G.k0s(),G.nrm(5,"input",23),G.j41(6,"bit-hint",15),G.EFF(7),G.nI1(8,"currency"),G.nI1(9,"i18n"),G.nI1(10,"i18n"),G.k0s()()()),2&e&&(G.R7$(3),G.JRh(G.bMT(4,2,"premiumAccess")),G.R7$(4),G.JRh(G.brH(10,9,"premiumAccessDesc",G.i5U(8,4,3.33,"$"),G.bMT(9,7,"month"))))}function ot(e,t){if(1&e&&(G.j41(0,"span",27),G.EFF(1),G.nI1(2,"currency"),G.k0s(),G.EFF(3),G.nI1(4,"i18n")),2&e){G.XpG(3);const e=G.r8f(0);G.R7$(),G.JRh(G.i5U(2,2,e.basePrice,"$")),G.R7$(2),G.SpI(" ",G.bMT(4,5,"freeWithSponsorship")," ")}}function at(e,t){if(1&e&&(G.EFF(0),G.nI1(1,"currency"),G.nI1(2,"i18n")),2&e){G.XpG(3);const e=G.r8f(0);G.Lme(" ",G.i5U(1,2,e.basePrice,"$")," /",G.bMT(2,5,"year")," ")}}function lt(e,t){if(1&e&&(G.j41(0,"p",26),G.EFF(1),G.nI1(2,"i18n"),G.nI1(3,"currency"),G.nI1(4,"i18n"),G.nVh(5,ot,5,7)(6,at,3,7),G.k0s()),2&e){G.XpG(2);const e=G.r8f(0),t=G.r8f(1),i=G.XpG(4);G.R7$(),G.E5c(" ",G.bMT(2,4,"basePrice"),": ",G.i5U(3,6,t?e.basePrice/12:e.basePrice,"$")," × 12 ",G.bMT(4,9,"monthAbbr")," = "),G.R7$(4),G.vxM(i.acceptingSponsorship()?5:6)}}function ct(e,t){1&e&&(G.j41(0,"span"),G.EFF(1),G.nI1(2,"i18n"),G.k0s()),2&e&&(G.R7$(),G.SpI("",G.bMT(2,1,"additionalUsers"),":"))}function dt(e,t){1&e&&(G.j41(0,"span"),G.EFF(1),G.nI1(2,"i18n"),G.k0s()),2&e&&(G.R7$(),G.SpI("",G.bMT(2,1,"users"),":"))}function ut(e,t){if(1&e&&(G.j41(0,"p",26),G.nVh(1,ct,3,3,"span")(2,dt,3,3,"span"),G.EFF(3),G.nI1(4,"currency"),G.nI1(5,"i18n"),G.nI1(6,"currency"),G.nI1(7,"i18n"),G.k0s()),2&e){const e=G.XpG(2).$implicit,t=G.r8f(0),i=G.r8f(1),n=G.XpG(4);G.R7$(),G.vxM(t.baseSeats?1:2),G.R7$(2),G.SjE(" ",n.formGroup.controls.additionalSeats.value||0," × ",G.i5U(4,6,i?t.seatPrice/12:t.seatPrice,"$")," × 12 ",G.bMT(5,9,"monthAbbr")," = ",G.i5U(6,11,n.passwordManagerSeatTotal(e,n.formGroup.value.additionalSeats),"$")," /",G.bMT(7,14,"year")," ")}}function ht(e,t){if(1&e&&(G.j41(0,"p",26),G.EFF(1),G.nI1(2,"i18n"),G.nI1(3,"currency"),G.nI1(4,"i18n"),G.nI1(5,"currency"),G.nI1(6,"i18n"),G.k0s()),2&e){const e=G.XpG(2).$implicit,t=G.r8f(0),i=G.r8f(1),n=G.XpG(4);G.R7$(),G.ZXR(" ",G.bMT(2,6,"additionalStorageGb"),": ",n.formGroup.controls.additionalStorage.value||0," × ",G.i5U(3,8,i?t.additionalStoragePricePerGb/12:t.additionalStoragePricePerGb,"$")," × 12 ",G.bMT(4,11,"monthAbbr")," = ",G.i5U(5,13,n.additionalStorageTotal(e),"$")," /",G.bMT(6,16,"year")," ")}}function At(e,t){if(1&e&&(G.j41(0,"bit-hint"),G.nVh(1,lt,7,11,"p",26),G.nVh(2,ut,8,16,"p",26),G.nVh(3,ht,7,18,"p",26),G.k0s()),2&e){G.XpG();const e=G.r8f(0);G.R7$(),G.vxM(e.basePrice?1:-1),G.R7$(),G.vxM(e.hasAdditionalSeatsOption?2:-1),G.R7$(),G.vxM(e.hasAdditionalStorageOption?3:-1)}}function pt(e,t){if(1&e&&(G.j41(0,"p",26),G.EFF(1),G.nI1(2,"i18n"),G.nI1(3,"currency"),G.nI1(4,"i18n"),G.nI1(5,"currency"),G.nI1(6,"i18n"),G.k0s()),2&e){G.XpG(2);const e=G.r8f(0);G.R7$(),G.SjE(" ",G.bMT(2,5,"basePrice"),": ",G.i5U(3,7,e.basePrice,"$")," ",G.bMT(4,10,"monthAbbr")," = ",G.i5U(5,12,e.basePrice,"$")," /",G.bMT(6,15,"month")," ")}}function gt(e,t){1&e&&(G.j41(0,"span"),G.EFF(1),G.nI1(2,"i18n"),G.k0s()),2&e&&(G.R7$(),G.SpI("",G.bMT(2,1,"additionalUsers"),":"))}function vt(e,t){1&e&&(G.j41(0,"span"),G.EFF(1),G.nI1(2,"i18n"),G.k0s()),2&e&&(G.R7$(),G.SpI("",G.bMT(2,1,"users"),":"))}function mt(e,t){if(1&e&&(G.j41(0,"p",26),G.nVh(1,gt,3,3,"span")(2,vt,3,3,"span"),G.EFF(3),G.nI1(4,"currency"),G.nI1(5,"i18n"),G.nI1(6,"currency"),G.nI1(7,"i18n"),G.k0s()),2&e){const e=G.XpG(2).$implicit,t=G.r8f(0),i=G.XpG(4);G.R7$(),G.vxM(t.baseSeats?1:2),G.R7$(2),G.SjE(" ",i.formGroup.controls.additionalSeats.value||0," × ",G.i5U(4,6,t.seatPrice,"$")," ",G.bMT(5,9,"monthAbbr")," = ",G.i5U(6,11,i.passwordManagerSeatTotal(e,i.formGroup.value.additionalSeats),"$")," /",G.bMT(7,14,"month")," ")}}function ft(e,t){if(1&e&&(G.j41(0,"p",26),G.EFF(1),G.nI1(2,"i18n"),G.nI1(3,"currency"),G.nI1(4,"i18n"),G.nI1(5,"currency"),G.nI1(6,"i18n"),G.k0s()),2&e){const e=G.XpG(2).$implicit,t=G.r8f(0),i=G.XpG(4);G.R7$(),G.ZXR(" ",G.bMT(2,6,"additionalStorageGb"),": ",i.formGroup.controls.additionalStorage.value||0," × ",G.i5U(3,8,t.additionalStoragePricePerGb,"$")," ",G.bMT(4,11,"monthAbbr")," = ",G.i5U(5,13,i.additionalStorageTotal(e),"$")," /",G.bMT(6,16,"month")," ")}}function yt(e,t){if(1&e&&(G.j41(0,"bit-hint"),G.nVh(1,pt,7,17,"p",26),G.nVh(2,mt,8,16,"p",26),G.nVh(3,ft,7,18,"p",26),G.k0s()),2&e){G.XpG();const e=G.r8f(0);G.R7$(),G.vxM(e.basePrice?1:-1),G.R7$(),G.vxM(e.hasAdditionalSeatsOption?2:-1),G.R7$(),G.vxM(e.hasAdditionalStorageOption?3:-1)}}function bt(e,t){if(1&e&&(G.SS7(0)(1),G.j41(2,"bit-radio-button",25)(3,"bit-label"),G.EFF(4),G.nI1(5,"i18n"),G.k0s(),G.nVh(6,At,4,3,"bit-hint")(7,yt,4,3,"bit-hint"),G.k0s()),2&e){const e=t.$implicit;G.bH3(e.PasswordManager),G.R7$();const i=G.bH3(e.isAnnual);G.R7$(),G.Y8G("id",G.VkB("interval",e.type))("value",e.type),G.R7$(2),G.JRh(G.bMT(5,7,i?"annually":"monthly")),G.R7$(2),G.vxM(i?6:7)}}function Ct(e,t){if(1&e&&(G.j41(0,"bit-section")(1,"h2",7),G.EFF(2),G.nI1(3,"i18n"),G.k0s(),G.j41(4,"bit-radio-group",24),G.Z7z(5,bt,8,9,"bit-radio-button",25,G.Vm6),G.k0s()()),2&e){const e=G.XpG(3);G.R7$(2),G.JRh(G.bMT(3,1,"summary")),G.R7$(3),G.Dyx(e.selectablePlans())}}function It(e,t){if(1&e&&(G.SS7(0),G.j41(1,"bit-section"),G.nVh(2,it,14,13,"bit-section"),G.nVh(3,rt,17,22,"bit-section"),G.j41(4,"bit-section"),G.nVh(5,st,11,13,"div",18),G.k0s(),G.nVh(6,Ct,7,3,"bit-section"),G.k0s()),2&e){const e=G.XpG(2),t=G.r8f(0),i=G.bH3(e.selectedPlan());G.R7$(2),G.vxM(!i.PasswordManager.hasAdditionalSeatsOption||i.PasswordManager.baseSeats||t?-1:2),G.R7$(),G.vxM(t?-1:3),G.R7$(2),G.vxM(i.PasswordManager.hasPremiumAccessOption?5:-1),G.R7$(),G.vxM(t?-1:6)}}function wt(e,t){if(1&e&&G.nrm(0,"sm-subscribe",10),2&e){const e=G.XpG(2);G.Y8G("formGroup",e.formGroup.controls.secretsManager)("selectedPlan",e.selectedSecretsManagerPlan())("upgradeOrganization",!e.createOrganization())}}function Bt(e,t){if(1&e&&G.nrm(0,"app-enter-payment-method",29,0),2&e){const e=G.XpG(3),t=G.r8f(0);G.Y8G("group",e.billingFormGroup.controls.paymentMethod)("showBankAccount",!t)}}function Et(e,t){if(1&e&&(G.j41(0,"bit-section")(1,"h2",7),G.EFF(2),G.nI1(3,"i18n"),G.k0s(),G.j41(4,"p",28),G.EFF(5),G.k0s(),G.nVh(6,Bt,2,2,"app-enter-payment-method",29),G.nrm(7,"app-enter-billing-address",30),G.j41(8,"div",31),G.nrm(9,"billing-cart-summary",32),G.k0s()()),2&e){const e=G.XpG(2);G.R7$(2),G.SpI(" ",G.bMT(3,7,e.createOrganization()?"paymentInformation":"billingInformation")," "),G.R7$(3),G.SpI(" ",e.paymentDesc," "),G.R7$(),G.vxM(e.createOrganization()||e.upgradeRequiresPaymentMethod?6:-1),G.R7$(),G.Y8G("group",e.billingFormGroup.controls.billingAddress)("scenario",G.eq3(9,Be,e.showTaxIdField())),G.R7$(2),G.Y8G("cart",e.cart())("showDiscountBadges",!0)}}function St(e,t){1&e&&(G.j41(0,"bit-section")(1,"bit-callout",33),G.nI1(2,"i18n"),G.EFF(3),G.nI1(4,"i18n"),G.k0s()()),2&e&&(G.R7$(),G.Y8G("title",G.bMT(2,2,"error")),G.R7$(2),G.SpI(" ",G.bMT(4,4,"singleOrgBlockCreateMessage")," "))}function Qt(e,t){if(1&e){const e=G.RV6();G.j41(0,"button",34),G.bIt("click",function(){s.eBV(e);const t=G.XpG(2);return s.Njj(t.cancel())}),G.EFF(1),G.nI1(2,"i18n"),G.k0s()}2&e&&(G.R7$(),G.SpI(" ",G.bMT(2,1,"cancel")," "))}function kt(e,t){if(1&e){const e=G.RV6();G.j41(0,"form",1)(1,"bit-section",5)(2,"app-org-info",6),G.bIt("changedBusinessOwned",function(){s.eBV(e);const t=G.XpG();return s.Njj(t.changedOwnedBusiness())}),G.k0s()(),G.j41(3,"bit-section")(4,"h2",7),G.EFF(5),G.nI1(6,"i18n"),G.k0s(),G.j41(7,"bit-radio-group",8),G.Z7z(8,tt,24,23,"div",9,G.Vm6),G.k0s()(),G.nVh(10,It,7,5,"bit-section"),G.j41(11,"bit-section"),G.nVh(12,wt,1,3,"sm-subscribe",10),G.k0s(),G.nVh(13,Et,10,11,"bit-section"),G.nVh(14,St,5,6,"bit-section"),G.j41(15,"bit-section")(16,"button",11),G.EFF(17),G.nI1(18,"i18n"),G.k0s(),G.nVh(19,Qt,3,3,"button",12),G.nrm(20,"bit-error-summary",13),G.k0s()()}if(2&e){const e=G.XpG(),t=G.r8f(0);G.Y8G("formGroup",e.formGroup)("bitSubmit",e.submit),G.R7$(),G.Y8G("ngClass",G.eq3(21,we,!e.createOrganization())),G.R7$(),G.Y8G("formGroup",e.formGroup)("createOrganization",e.createOrganization())("isProvider",!!e.providerId())("acceptingSponsorship",e.acceptingSponsorship()),G.R7$(3),G.JRh(G.bMT(6,17,"chooseYourPlan")),G.R7$(2),G.Y8G("block",!0),G.R7$(),G.Dyx(e.selectableProducts()),G.R7$(2),G.vxM(e.formGroup.value.productTier!==e.productTypes.Free?10:-1),G.R7$(2),G.vxM(!e.planOffersSecretsManager()||e.hasProvider()||t?-1:12),G.R7$(),G.vxM(e.formGroup.value.productTier!==e.productTypes.Free?13:-1),G.R7$(),G.vxM(e.singleOrgPolicyBlock?14:-1),G.R7$(2),G.Y8G("disabled",!e.formGroup.valid),G.R7$(),G.SpI(" ",G.bMT(18,19,"submit")," "),G.R7$(2),G.vxM(e.showCancel()?19:-1),G.R7$(),G.Y8G("formGroup",e.formGroup)}}const Rt=[w.OL.TeamsMonthly2020,w.OL.TeamsAnnually2020,w.OL.EnterpriseAnnually2020,w.OL.EnterpriseMonthly2020];class Ft{get familiesSponsorshipDiscount(){var e;if(!this.acceptingSponsorship())return 0;const t=this.passwordManagerPlans.find(e=>e.type===this._familyPlan);return null!==(e=null==t?void 0:t.PasswordManager.basePrice)&&void 0!==e?e:0}constructor(e,t,i,h,g,v,m,f,y,b,C,I,S,Q,k,F,T,P,M,x,G){this.apiService=e,this.i18nService=t,this.platformUtilsService=i,this.keyService=h,this.encryptService=g,this.router=v,this.syncService=m,this.policyService=f,this.organizationService=y,this.messagingService=b,this.formBuilder=C,this.organizationApiService=I,this.providerApiService=S,this.toastService=Q,this.accountService=k,this.subscriberBillingClient=F,this.previewInvoiceClient=T,this.configService=P,this.billingAccountProfileStateService=M,this.premiumOrgUpgradeService=x,this.subscriptionDiscountService=G,this.enterPaymentMethodComponent=(0,n.ebz)(D.Pu),this.organizationId=(0,n.hFB)(null),this.providerId=(0,n.hFB)(null),this.showFree=(0,n.hFB)(!0),this.showCancel=(0,n.hFB)(!1),this.acceptingSponsorship=(0,n.hFB)(!1),this.planSponsorshipType=(0,n.hFB)(null),this.currentPlan=(0,n.hFB)(null),this.preSelectedProductTier=(0,n.hFB)(null),this.enableSecretsManagerByDefault=(0,n.hFB)(!1),this.initialProductTier=(0,n.hFB)(w.K_.Free),this.initialPlan=(0,n.hFB)(w.OL.Free),this.trialLength=(0,n.hFB)(void 0),this.hasPremiumPersonally=(0,o.ot)(this.accountService.activeAccount$.pipe((0,A.p)(Boolean),(0,p.n)(e=>this.billingAccountProfileStateService.hasPremiumPersonally$(e.id))),{initialValue:!1}),this.premiumToOrganizationUpgradeFeatureFlagEnabled=(0,o.ot)(this.configService.getFeatureFlag$(E.TO.PM29593_PremiumToOrganizationUpgrade),{initialValue:!1}),this.createOrganization=(0,r.EW)(()=>null==this.organizationId()),this.hasProvider=(0,r.EW)(()=>null!=this.providerId()),this.canUpgradeFromPremium=(0,r.EW)(()=>{const e=this.hasPremiumPersonally(),t=this.premiumToOrganizationUpgradeFeatureFlagEnabled(),i=this.createOrganization();return e&&i&&t&&!this.acceptingSponsorship()}),this.selectedPlan=(0,r.EW)(()=>this.passwordManagerPlans.find(e=>e.type===this.formValues().plan)),this.selectedSecretsManagerPlan=(0,r.EW)(()=>this.secretsManagerPlans.find(e=>e.type===this.formValues().plan)),this.selectedPlanInterval=(0,r.EW)(()=>{var e;return(null===(e=this.selectedPlan())||void 0===e?void 0:e.isAnnual)?"year":"month"}),this.freeTrial=(0,r.EW)(()=>{var e,t,i;return(null!==(i=null!==(e=this.trialLength())&&void 0!==e?e:null===(t=this.selectedPlan())||void 0===t?void 0:t.trialPeriodDays)&&void 0!==i?i:0)>0}),this.planOffersSecretsManager=(0,r.EW)(()=>null!=this.selectedSecretsManagerPlan()),this.selectableProducts=(0,r.EW)(()=>{if(this.acceptingSponsorship()){return[this.passwordManagerPlans.find(e=>e.type===this._familyPlan)]}const e=this.formValues().businessOwned,t=this.currentPlan(),i=this.passwordManagerPlans.filter(i=>{const n=i.type!==w.OL.Custom,r=!e||i.canBeUsedByBusiness,s=i.productTier!==w.K_.Free||this.showFree(),o=i.isAnnual||i.productTier===w.K_.Free||i.productTier===w.K_.TeamsStarter,a=!t||t.upgradeSortOrder<i.upgradeSortOrder,l=!this.hasProvider()||i.productTier!==w.K_.TeamsStarter,c=i.productTier!==w.K_.Families||i.type===this._familyPlan,d=!this.isProviderQualifiedFor2020Plan()&&this.planIsEnabled(i)||this.isProviderQualifiedFor2020Plan()&&Rt.includes(i.type);return n&&r&&s&&o&&a&&l&&c&&d});return i.sort((e,t)=>e.displaySortOrder-t.displaySortOrder),i}),this.selectablePlans=(0,r.EW)(()=>{var e;const t=this.formValues().productTier,i=(null===(e=this.passwordManagerPlans)||void 0===e?void 0:e.filter(e=>{const i=e.productTier===t,n=e.productTier!==w.K_.Families||e.type===this._familyPlan,r=!this.isProviderQualifiedFor2020Plan()&&this.planIsEnabled(e)||this.isProviderQualifiedFor2020Plan()&&Rt.includes(e.type);return i&&n&&r}))||[];return i.sort((e,t)=>e.displaySortOrder-t.displaySortOrder),i}),this.teamsStarterPlanIsAvailable=(0,r.EW)(()=>this.selectablePlans().some(e=>e.type===w.OL.TeamsStarter)),this.eligibleDiscounts$=this.subscriptionDiscountService.getEligibleDiscountsForTier$(B.A.Families).pipe((0,l.W)(()=>(0,c.of)([]))),this.eligibleDiscounts=(0,o.ot)(this.eligibleDiscounts$,{initialValue:[]}),this.cartDiscounts=(0,r.EW)(()=>this.acceptingSponsorship()||this.formValues().productTier!==w.K_.Families?void 0:this.eligibleDiscounts().map(e=>this.subscriptionDiscountService.mapToCartDiscount(e)).filter(e=>!!e)),this.eligibleCouponIds=(0,r.EW)(()=>this.acceptingSponsorship()||this.formValues().productTier!==w.K_.Families?[]:this.eligibleDiscounts().map(e=>e.stripeCouponId)),this.showTaxIdField=(0,r.EW)(()=>{switch(this.formValues().productTier){case w.K_.Free:case w.K_.Families:return!1;default:return!0}}),this.onSuccess=(0,n.CGW)(),this.onCanceled=(0,n.CGW)(),this.onTrialBillingSuccess=(0,n.CGW)(),this.loading=!0,this.selfHosted=!1,this.productTypes=w.K_,this.formPromise=null,this.singleOrgPolicyAppliesToActiveUser=!1,this.isInTrialFlow=!1,this.passwordManagerPlans=[],this.secretsManagerPlans=[],this.organization=null,this.sub=null,this.billing=null,this.provider=null,this.previewInvoice=(0,s.vPA)(null),this.estimatedTax=(0,s.vPA)(0),this.cart=(0,r.EW)(()=>{var e,t,i,n,r,s,o,a,l,c,d,u;const h=this.formValues(),A=this.previewInvoice(),p=this.estimatedTax(),g=this.selectedPlan();let v;if(!g)return{passwordManager:{seats:{translationKey:"passwordManager",cost:0,quantity:1,hideBreakdown:!0}},cadence:"annually",estimatedTax:p};const m=g.PasswordManager.hasAdditionalSeatsOption&&h.additionalSeats,f=m?g.PasswordManager.seatPrice:g.PasswordManager.basePrice,y=m?null!==(e=h.additionalSeats)&&void 0!==e?e:0:1;if(this.canUpgradeFromPremium()){if(!A)return{passwordManager:{seats:{translationKey:"passwordManagerPlanPrice",cost:f,quantity:y,hideBreakdown:!0}},cadence:g.isAnnual?"annually":"monthly",estimatedTax:0};v={passwordManager:{seats:{translationKey:"planProratedMembershipInMonths",translationParams:[g.name,`${A.newPlanProratedMonths} month${A.newPlanProratedMonths>1?"s":""}`],cost:A.newPlanProratedAmount,quantity:1,hideBreakdown:!0}},cadence:g.isAnnual?"annually":"monthly",estimatedTax:A.tax,credit:{translationKey:"premiumSubscriptionCredit",value:A.credit}}}else{let e=f;if(g.PasswordManager.hasPremiumAccessOption&&h.premiumAccessAddon&&(e+=g.PasswordManager.premiumAccessOptionPrice),v={passwordManager:{seats:{translationKey:"passwordManagerPlanPrice",cost:e,quantity:y}},cadence:g.isAnnual?"annually":"monthly",estimatedTax:p},this.acceptingSponsorship()&&this.familiesSponsorshipDiscount>0?v.discounts=[{type:R.Tu.AmountOff,value:this.familiesSponsorshipDiscount}]:v.discounts=this.cartDiscounts(),g.PasswordManager.hasAdditionalStorageOption&&(null!==(t=h.additionalStorage)&&void 0!==t?t:0)>0&&(v.passwordManager.additionalStorage={translationKey:"additionalStorageGb",cost:g.PasswordManager.additionalStoragePricePerGb,quantity:null!==(i=h.additionalStorage)&&void 0!==i?i:0}),this.planOffersSecretsManager()&&(null===(n=h.secretsManager)||void 0===n?void 0:n.enabled)){const e=this.selectedSecretsManagerPlan();let t=e.SecretsManager.baseSeats;const i=e.SecretsManager.seatPrice;e.SecretsManager.hasAdditionalSeatsOption&&(null!==(s=null===(r=h.secretsManager)||void 0===r?void 0:r.userSeats)&&void 0!==s?s:0)>0&&(t+=null!==(a=null===(o=h.secretsManager)||void 0===o?void 0:o.userSeats)&&void 0!==a?a:0),v.secretsManager={seats:{translationKey:"secretsManagerPlanPrice",cost:i,quantity:t}},e.SecretsManager.hasAdditionalServiceAccountOption&&(null!==(c=null===(l=h.secretsManager)||void 0===l?void 0:l.additionalServiceAccounts)&&void 0!==c?c:0)>0&&(v.secretsManager.additionalServiceAccounts={translationKey:"additionalServiceAccounts",cost:e.SecretsManager.additionalPricePerServiceAccount,quantity:null!==(u=null===(d=h.secretsManager)||void 0===d?void 0:d.additionalServiceAccounts)&&void 0!==u?u:0})}}return v}),this._familyPlan=null,this.destroy$=new d.B,this.secretsManagerSubscription=(0,V.Fk)(this.formBuilder),this.formGroup=this.formBuilder.group({name:[""],billingEmail:["",[a.k0.email]],businessOwned:[!1],premiumAccessAddon:[!1],additionalStorage:[0,[a.k0.min(0),a.k0.max(99)]],additionalSeats:[0,[a.k0.min(0),a.k0.max(1e5)]],clientOwnerEmail:["",[a.k0.email]],plan:[this.initialPlan()],productTier:[this.initialProductTier()],secretsManager:this.secretsManagerSubscription}),this.formValues=(0,o.ot)(this.formGroup.valueChanges,{initialValue:this.formGroup.value}),this.billingFormGroup=this.formBuilder.group({paymentMethod:D.Pu.getFormGroup(),billingAddress:D.vU.getFormGroup()}),this.submit=()=>Ie(this,void 0,void 0,function*(){if(this.formGroup.markAllAsTouched(),this.formGroup.invalid)return;if(this.singleOrgPolicyBlock)return;const e=()=>Ie(this,void 0,void 0,function*(){var e;let t;if(this.createOrganization()){const i=this.canUpgradeFromPremium(),n=yield(0,u._)(this.accountService.activeAccount$);if(i&&(null===(e=this.selectedPlan())||void 0===e?void 0:e.type)!==w.OL.Free)t=yield this.upgradeFromPremiumToOrganization(n);else{const e=yield this.premiumOrgUpgradeService.generateOrganizationEncryptionData(n.id);t=yield this.createCloudHosted(e)}this.toastService.showToast({variant:"success",title:this.i18nService.t("organizationCreated"),message:this.i18nService.t("organizationReadyToGo")})}else t=yield this.updateOrganization(),this.toastService.showToast({variant:"success",title:void 0,message:this.i18nService.t("organizationUpgraded")});return yield this.syncService.fullSync(!0),this.acceptingSponsorship()||this.isInTrialFlow||this.router.navigate(["/organizations/"+t]),this.isInTrialFlow&&this.onTrialBillingSuccess.emit({orgId:t,subLabelText:this.billingSubLabelText()}),t});try{this.formPromise=e();const t=yield this.formPromise;this.onSuccess.emit({organizationId:t}),this.messagingService.send("organizationCreated",{organizationId:t})}catch(t){if(t instanceof Error&&"Payment method validation failed"===t.message)return;if(this.premiumOrgUpgradeService.isBankAccountNotSupportedError(t))return void this.toastService.showToast({variant:"error",message:this.i18nService.t("unverifiedBankAccountNotSupportedForUpgrade")});if(this.subscriptionDiscountService.isDiscountExpiredError(t))return this.subscriptionDiscountService.refresh(),void this.toastService.showToast({variant:"warning",message:this.i18nService.t("discountExpiredOnPurchase")});throw t}}),this.selfHosted=this.platformUtilsService.isSelfHost()}ngOnInit(){return Ie(this,void 0,void 0,function*(){const e=this.organizationId();e&&(yield this.loadExistingOrganizationData(e)),this.createOrganization()?(this.formGroup.controls.name.addValidators([a.k0.required,a.k0.maxLength(50)]),this.formGroup.controls.billingEmail.addValidators(a.k0.required)):this.upgradeFlowPrefillForm(),this.accountService.activeAccount$.pipe(C.F6,(0,p.n)(e=>(0,v.UX)(e,this.policyService)),(0,h.Q)(this.destroy$)).subscribe(e=>{this.singleOrgPolicyAppliesToActiveUser=e}),this.setInitialPlanSelection(),this.selfHosted||this.changedProduct(),this.loading=!1})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}get singleOrgPolicyBlock(){return this.singleOrgPolicyAppliesToActiveUser&&!this.hasProvider()}get upgradeRequiresPaymentMethod(){return!1}isProviderQualifiedFor2020Plan(){const e=new Date("2023-11-06");if(!this.provider||!this.provider.creationDate)return!1;return new Date(this.provider.creationDate)<e}additionalStoragePriceMonthly(e){return e.isAnnual?e.PasswordManager.additionalStoragePricePerGb/12:e.PasswordManager.additionalStoragePricePerGb}seatPriceMonthly(e){return e.isAnnual?e.PasswordManager.seatPrice/12:e.PasswordManager.seatPrice}additionalStorageTotal(e){return e.PasswordManager.hasAdditionalStorageOption?e.PasswordManager.additionalStoragePricePerGb*Math.abs(this.formGroup.controls.additionalStorage.value||0):0}passwordManagerSeatTotal(e,t){return e.PasswordManager.hasAdditionalSeatsOption?e.PasswordManager.seatPrice*Math.abs(t||0):0}get paymentDesc(){var e,t,i;return this.acceptingSponsorship()?this.i18nService.t("paymentSponsored"):this.freeTrial()&&this.createOrganization()&&!this.canUpgradeFromPremium()?this.i18nService.t("paymentChargedWithTrialSpecificLength",null!==(i=null!==(e=this.trialLength())&&void 0!==e?e:null===(t=this.selectedPlan())||void 0===t?void 0:t.trialPeriodDays)&&void 0!==i?i:T.O):this.i18nService.t("paymentCharged",this.i18nService.t(this.selectedPlanInterval()))}get secretsManagerForm(){return this.formGroup.controls.secretsManager}changedProduct(){}setPlanType(e){this.formGroup.controls.plan.setValue(e)}handlePremiumAddonAccess(e){this.formGroup.controls.premiumAccessAddon.setValue(!e)}handleAdditionalStorage(e){var t;const i=this.currentPlan();e&&i?(null===(t=this.organization)||void 0===t?void 0:t.maxStorageGb)&&this.formGroup.controls.additionalStorage.setValue(this.organization.maxStorageGb-i.PasswordManager.baseStorageGb):this.formGroup.controls.additionalStorage.setValue(0)}handleAdditionalSeats(e){if(!e)return void this.formGroup.controls.additionalSeats.setValue(0);const t=this.currentPlan();!t||t.PasswordManager.hasAdditionalSeatsOption?this.organization?this.formGroup.controls.additionalSeats.setValue(this.organization.seats):this.formGroup.controls.additionalSeats.setValue(1):this.formGroup.controls.additionalSeats.setValue(t.PasswordManager.baseSeats)}handleSecretsManagerForm(){var e,t,i,n,r,s,o,a,l;this.planOffersSecretsManager()&&this.secretsManagerForm.enable(),(null===(e=this.organization)||void 0===e?void 0:e.useSecretsManager)&&this.secretsManagerForm.controls.enabled.setValue(!0),this.secretsManagerForm.controls.enabled.value&&(this.secretsManagerForm.controls.userSeats.setValue((null===(t=this.sub)||void 0===t?void 0:t.smSeats)||1),this.secretsManagerForm.controls.additionalServiceAccounts.setValue(Math.max(0,(null!==(n=null===(i=this.sub)||void 0===i?void 0:i.smServiceAccounts)&&void 0!==n?n:0)-(null!==(o=null===(s=null===(r=this.currentPlan())||void 0===r?void 0:r.SecretsManager)||void 0===s?void 0:s.baseServiceAccount)&&void 0!==o?o:0)-(null!==(l=null===(a=this.sub)||void 0===a?void 0:a.smServiceAccountsGrace)&&void 0!==l?l:0)))),this.secretsManagerForm.updateValueAndValidity()}changedOwnedBusiness(){var e;this.formGroup.controls.businessOwned.value&&!(null===(e=this.selectedPlan())||void 0===e?void 0:e.canBeUsedByBusiness)&&(this.teamsStarterPlanIsAvailable()?(this.formGroup.controls.productTier.setValue(w.K_.TeamsStarter),this.formGroup.controls.plan.setValue(w.OL.TeamsStarter)):(this.formGroup.controls.productTier.setValue(w.K_.Teams),this.formGroup.controls.plan.setValue(w.OL.TeamsAnnually)),this.changedProduct())}cancel(){this.onCanceled.emit()}getPlanFromLegacyEnum(){switch(this.formGroup.value.plan){case w.OL.FamiliesAnnually:case w.OL.FamiliesAnnually2025:return{tier:"families",cadence:"annually"};case w.OL.TeamsMonthly:return{tier:"teams",cadence:"monthly"};case w.OL.TeamsAnnually:return{tier:"teams",cadence:"annually"};case w.OL.EnterpriseMonthly:return{tier:"enterprise",cadence:"monthly"};case w.OL.EnterpriseAnnually:return{tier:"enterprise",cadence:"annually"};default:throw new Error(`Unsupported plan type: ${this.formGroup.value.plan}`)}}buildTaxPreviewRequest(e,t){var i,n,r,s;const o=this.selectedPlan().PasswordManager.hasAdditionalSeatsOption?null!==(i=this.formGroup.value.additionalSeats)&&void 0!==i?i:0:1;return Object.assign(Object.assign({},this.getPlanFromLegacyEnum()),{passwordManager:{seats:o,additionalStorage:e,sponsored:t},secretsManager:(null===(n=this.formGroup.value.secretsManager)||void 0===n?void 0:n.enabled)?{seats:null!==(r=this.secretsManagerForm.value.userSeats)&&void 0!==r?r:0,additionalServiceAccounts:null!==(s=this.secretsManagerForm.value.additionalServiceAccounts)&&void 0!==s?s:0,standalone:!1}:void 0})}refreshSalesTax(){return Ie(this,void 0,void 0,function*(){})}updateOrganization(){return Ie(this,void 0,void 0,function*(){var e,t,i,n,r,s,o,a,l,c,d,h,A,p;const v=new y.v;if(v.additionalSeats=null!==(e=this.formGroup.controls.additionalSeats.value)&&void 0!==e?e:0,v.additionalStorageGb=null!==(t=this.formGroup.controls.additionalStorage.value)&&void 0!==t?t:0,v.premiumAccessAddon=null!==(n=null===(i=this.selectedPlan())||void 0===i?void 0:i.PasswordManager.hasPremiumAccessOption)&&void 0!==n&&n&&null!==(r=this.formGroup.controls.premiumAccessAddon.value)&&void 0!==r&&r,v.planType=this.selectedPlan().type,v.billingAddressCountry=null!==(o=null===(s=this.billingFormGroup.value.billingAddress)||void 0===s?void 0:s.country)&&void 0!==o?o:"",v.billingAddressPostalCode=null!==(l=null===(a=this.billingFormGroup.value.billingAddress)||void 0===a?void 0:a.postalCode)&&void 0!==l?l:"",this.buildSecretsManagerRequest(v),this.upgradeRequiresPaymentMethod){if(this.billingFormGroup.invalid)throw new Error("Billing form is invalid");const e=yield null===(c=this.enterPaymentMethodComponent())||void 0===c?void 0:c.tokenize();if(!e)throw new Error("Payment method validation failed");yield this.subscriberBillingClient.updatePaymentMethod({type:"organization",data:this.organization},e,{country:null!==(h=null===(d=this.billingFormGroup.value.billingAddress)||void 0===d?void 0:d.country)&&void 0!==h?h:"",postalCode:null!==(p=null===(A=this.billingFormGroup.value.billingAddress)||void 0===A?void 0:A.postalCode)&&void 0!==p?p:""})}if(!this.organization.hasPublicAndPrivateKeys){const e=yield(0,u._)(this.accountService.activeAccount$.pipe((0,g.T)(e=>null==e?void 0:e.id))),t=yield(0,u._)(this.keyService.orgKeys$(e).pipe((0,g.T)(e=>{var t;return null!==(t=null==e?void 0:e[this.organizationId()])&&void 0!==t?t:null}))),i=yield this.keyService.makeKeyPair(t);v.keys=new f.B(i[0],i[1].encryptedString)}return yield this.organizationApiService.upgrade(this.organizationId(),v),this.organizationId()})}createCloudHosted(e){return Ie(this,void 0,void 0,function*(){var t,i,n;const r=new m.L(e.key,new f.B(e.orgKeys[0],e.orgKeys[1].encryptedString),e.collectionCt);r.name=null!==(t=this.formGroup.controls.name.value)&&void 0!==t?t:"",r.billingEmail=null!==(i=this.formGroup.controls.billingEmail.value)&&void 0!==i?i:"",r.initiationPath="New organization creation in-product",r.planType=w.OL.Free,this.eligibleCouponIds().length>0&&(r.coupons=this.eligibleCouponIds());const s=this.trialLength();if(void 0!==s&&(r.trialLength=s),this.hasProvider()){const t=new b(null!==(n=this.formGroup.controls.clientOwnerEmail.value)&&void 0!==n?n:"",r),i=yield(0,u._)(this.keyService.providerKeys$(e.activeUserId).pipe((0,g.T)(e=>{var t;return null!==(t=null==e?void 0:e[this.providerId()])&&void 0!==t?t:null})));(0,I.x)(i,"Provider key not found"),t.organizationCreateRequest.key=(yield this.encryptService.wrapSymmetricKey(e.orgKey,i)).encryptedString;return(yield this.apiService.postProviderCreateOrganization(this.providerId(),t)).organizationId}return(yield this.organizationApiService.create(r)).id})}billingSubLabelText(){const e=this.selectedPlan();if(!e)return"";const t=0===e.PasswordManager.basePrice?e.PasswordManager.seatPrice:e.PasswordManager.basePrice;let i="";return e.isAnnual?i+=`${this.i18nService.t("annual")} ($${t}/${this.i18nService.t("yr")})`:i+=`${this.i18nService.t("monthly")} ($${t}/${this.i18nService.t("monthAbbr")})`,i}buildSecretsManagerRequest(e){}upgradeFlowPrefillForm(){}planIsEnabled(e){return!e.disabled&&!e.legacyYear}loadExistingOrganizationData(e){return Ie(this,void 0,void 0,function*(){var t,i;const n=yield(0,u._)(this.accountService.activeAccount$.pipe((0,g.T)(e=>null==e?void 0:e.id)));this.organization=null!==(t=yield(0,u._)(this.organizationService.organizations$(n).pipe((0,v.Sw)(e))))&&void 0!==t?t:null,this.billing=yield this.organizationApiService.getBilling(e),this.sub=yield this.organizationApiService.getSubscription(e);const r=yield this.subscriberBillingClient.getBillingAddress({type:"organization",data:this.organization});this.billingFormGroup.controls.billingAddress.patchValue(Object.assign(Object.assign({},r),{taxId:null===(i=null==r?void 0:r.taxId)||void 0===i?void 0:i.value}))})}loadPlanData(){return Ie(this,void 0,void 0,function*(){const e=yield this.apiService.getPlans();this.passwordManagerPlans=e.data.filter(e=>!!e.PasswordManager),this.secretsManagerPlans=e.data.filter(e=>!!e.SecretsManager),this.formGroup.controls.productTier.value!==w.K_.Enterprise&&this.formGroup.controls.productTier.value!==w.K_.Teams||this.formGroup.controls.businessOwned.setValue(!0)})}preselectUpgradePlan(e){if(e.productTier==w.K_.Enterprise)return;const t=this.passwordManagerPlans.find(t=>e.productTier===w.K_.Free?t.type===this._familyPlan:t.upgradeSortOrder==e.upgradeSortOrder+1);t&&(this.formGroup.controls.plan.setValue(t.type),this.formGroup.controls.productTier.setValue(t.productTier))}setupProviderConfiguration(){return Ie(this,void 0,void 0,function*(){this.formGroup.controls.businessOwned.setValue(!0),this.formGroup.controls.clientOwnerEmail.addValidators(a.k0.required),this.changedOwnedBusiness(),this.provider=yield this.providerApiService.getProvider(this.providerId());const e=this.passwordManagerPlans.find(e=>e.type===w.OL.TeamsAnnually);e&&(this.formGroup.controls.plan.setValue(e.type),this.formGroup.controls.productTier.setValue(e.productTier))})}setInitialPlanSelection(){var e;const t=this.initialPlan(),i=this.initialProductTier(),n=this.preSelectedProductTier();t!==w.OL.Free&&this.formGroup.controls.plan.setValue(t),i!==w.K_.Free&&this.formGroup.controls.productTier.setValue(i),null!=n&&(null!==(e=this.formGroup.controls.productTier.value)&&void 0!==e?e:0)<n&&this.formGroup.controls.productTier.setValue(n)}onLicenseFileUploaded(e){return Ie(this,void 0,void 0,function*(){this.toastService.showToast({variant:"success",title:this.i18nService.t("organizationCreated"),message:this.i18nService.t("organizationReadyToGo")}),this.acceptingSponsorship()||this.isInTrialFlow||this.router.navigate(["/organizations/"+e]),this.isInTrialFlow&&this.onTrialBillingSuccess.emit({orgId:e,subLabelText:this.billingSubLabelText()}),this.onSuccess.emit({organizationId:e}),this.messagingService.send("organizationCreated",{organizationId:e})})}upgradeFromPremiumToOrganization(e){return Ie(this,void 0,void 0,function*(){var t,i,n,r,s,o;const a=null!==(t=this.formGroup.controls.name.value)&&void 0!==t?t:"",l=(0,D.c3)(this.billingFormGroup.controls.billingAddress),c=this.premiumOrgUpgradeService.SubscriptionTierIdFromProductTier(this.formGroup.controls.productTier.value),d=yield null===(i=this.enterPaymentMethodComponent())||void 0===i?void 0:i.tokenize();if(!d)throw new Error("Payment method validation failed");return yield this.subscriberBillingClient.updatePaymentMethod({type:"account",data:e},d,{country:null!==(r=null===(n=this.billingFormGroup.value.billingAddress)||void 0===n?void 0:n.country)&&void 0!==r?r:"",postalCode:null!==(o=null===(s=this.billingFormGroup.value.billingAddress)||void 0===s?void 0:s.postalCode)&&void 0!==o?o:""}),yield this.premiumOrgUpgradeService.upgradeToOrganization(e,a,c,l)})}}Ft.ɵfac=function(e){return new(e||Ft)(G.rXU(U.G),G.rXU(O.W),G.rXU(N.y),G.rXU(k.Lu),G.rXU(j.N),G.rXU(Y.Ix),G.rXU(Q.H),G.rXU(X.m),G.rXU(v.PV),G.rXU(S.U),G.rXU(a.ok),G.rXU(z.X),G.rXU(L.J),G.rXU(W.f),G.rXU(K.D),G.rXU(F.Hd),G.rXU(F.dA),G.rXU(Z.w),G.rXU(H.Q),G.rXU(M.J),G.rXU(x.s))},Ft.ɵcmp=G.VBU({type:Ft,selectors:[["app-organization-plans"]],viewQuery:function(e,t){1&e&&G.wEZ(t.enterPaymentMethodComponent,D.Pu,5),2&e&&G.NyB()},inputs:{organizationId:[1,"organizationId"],providerId:[1,"providerId"],showFree:[1,"showFree"],showCancel:[1,"showCancel"],acceptingSponsorship:[1,"acceptingSponsorship"],planSponsorshipType:[1,"planSponsorshipType"],currentPlan:[1,"currentPlan"],preSelectedProductTier:[1,"preSelectedProductTier"],enableSecretsManagerByDefault:[1,"enableSecretsManagerByDefault"],initialProductTier:[1,"initialProductTier"],initialPlan:[1,"initialPlan"],trialLength:[1,"trialLength"]},outputs:{onSuccess:"onSuccess",onCanceled:"onCanceled",onTrialBillingSuccess:"onTrialBillingSuccess"},decls:4,vars:4,consts:[["enterPaymentMethodComponent",""],[1,"tw-pt-6",3,"formGroup","bitSubmit"],["name","bwi-spinner","aria-hidden","true",1,"bwi-spin","tw-text-muted",3,"title"],[1,"tw-sr-only"],[3,"onLicenseFileUploaded"],[3,"ngClass"],[3,"changedBusinessOwned","formGroup","createOrganization","isProvider","acceptingSponsorship"],["bitTypography","h2"],["formControlName","productTier",3,"block"],[1,"tw-mb-3"],[3,"formGroup","selectedPlan","upgradeOrganization"],["type","submit","buttonType","primary","bitButton","","bitFormButton","",3,"disabled"],["type","button","buttonType","secondary","bitButton","","bitFormButton",""],[3,"formGroup"],[3,"change","value"],[1,"tw-text-sm"],[1,"tw-pl-0","tw-list-inside","tw-mb-0"],[1,"tw-pl-4"],[1,"tw-grid","tw-grid-cols-12","tw-gap-4"],[1,"tw-col-span-6"],["bitInput","","type","number","formControlName","additionalSeats","required","",3,"placeholder"],["bitInput","","type","number","formControlName","additionalStorage","step","1",3,"placeholder"],["bitInput","","type","number","formControlName","additionalSeats",3,"placeholder"],["type","checkbox","bitCheckbox","","formControlName","premiumAccessAddon"],["formControlName","plan"],["type","radio",3,"id","value"],["bitTypography","body2",1,"tw-mb-0"],[1,"tw-line-through"],["bitTypography","body2",1,"tw-text-muted","tw-italic","tw-mb-3","tw-block"],[3,"group","showBankAccount"],[1,"tw-my-4",3,"group","scenario"],["id","price",1,"tw-my-4"],[3,"cart","showDiscountBadges"],["type","danger",3,"title"],["type","button","buttonType","secondary","bitButton","","bitFormButton","",3,"click"]],template:function(e,t){if(1&e&&(G.SS7(0),G.nVh(1,Ee,6,7,"ng-container"),G.nVh(2,Se,2,0,"ng-container"),G.nVh(3,kt,21,23,"form",1)),2&e){const e=t.loading;t.passwordManagerPlans,t.secretsManagerPlans,G.bH3(t.canUpgradeFromPremium()),G.R7$(),G.vxM(e?1:-1),G.R7$(),G.vxM(-1),G.R7$(),G.vxM(e?-1:3)}},dependencies:[V.rd,J.YU,a.qT,a.me,a.Q0,a.Zm,a.BC,a.cb,a.YS,a.j4,a.JD,q.$,$.L,_.Q,ee.G,te.P,ie.f,ne.j,re.I,se.W,oe.J,ae.L,le.h,ce.R,de.d,ue.n,he.r,Ae.m,be,P.Y,Ce.T,D.Pu,D.vU,R.Oo,J.oe,fe.$],encapsulation:2})},1094(e,t,i){"use strict";i.d(t,{zU:()=>n.z,hR:()=>u,$n:()=>h.$});var n=i(440),r=(i(84488),i(90097)),s=i(25065),o=i(27760),a=i(14041),l=i(91326),c=i(46758);function d(e,t){if(1&e&&(a.j41(0,"bit-banner",0),a.EFF(1),a.k0s()),2&e){a.XpG();const e=a.r8f(0);a.R7$(),a.SpI(" ",e.message," ")}}class u{constructor(e){this.organizationWarningsService=e}ngOnInit(){this.warning$=this.organizationWarningsService.getResellerRenewalWarning$(this.organization)}}u.ɵfac=function(e){return new(e||u)(a.rXU(o.S))},u.ɵcmp=a.VBU({type:u,selectors:[["app-organization-reseller-renewal-warning"]],inputs:{organization:"organization"},decls:3,vars:4,consts:[["id","reseller-warning-banner","icon","bwi-billing","variant","primary"]],template:function(e,t){if(1&e&&(a.SS7(0),a.nI1(1,"async"),a.nVh(2,d,2,1,"bit-banner",0)),2&e){const e=a.bH3(a.bMT(1,1,t.warning$));a.R7$(2),a.vxM(e?2:-1)}},dependencies:[r.H,l.K,s.G,c.Jj],encapsulation:2});var h=i(37433)},440(e,t,i){"use strict";i.d(t,{z:()=>A});var n=i(11217),r=(i(84488),i(90097)),s=i(25065),o=i(27760),a=i(14041),l=i(91326),c=i(57178),d=i(46758),u=i(25740);function h(e,t){if(1&e){const e=a.RV6();a.j41(0,"bit-banner",0),a.EFF(1),a.j41(2,"a",1),a.bIt("click",function(){n.eBV(e);const t=a.XpG();return n.Njj(t.clicked.emit())}),a.EFF(3),a.nI1(4,"i18n"),a.k0s()()}if(2&e){a.XpG();const e=a.r8f(0);a.R7$(),a.SpI(" ",e.message," "),a.R7$(2),a.SpI(" ",a.bMT(4,2,"clickHereToAddPaymentMethod")," ")}}class A{constructor(e){this.organizationWarningsService=e,this.includeOrganizationNameInMessaging=!1,this.clicked=new n.bkB}ngOnInit(){this.warning$=this.organizationWarningsService.getFreeTrialWarning$(this.organization,this.includeOrganizationNameInMessaging)}}A.ɵfac=function(e){return new(e||A)(a.rXU(o.S))},A.ɵcmp=a.VBU({type:A,selectors:[["app-organization-free-trial-warning"]],inputs:{organization:"organization",includeOrganizationNameInMessaging:"includeOrganizationNameInMessaging"},outputs:{clicked:"clicked"},decls:3,vars:4,consts:[["id","free-trial-banner","icon","bwi-billing","variant","success"],["bitLink","","linkType","secondary","rel","noreferrer noopener",1,"tw-cursor-pointer",3,"click"]],template:function(e,t){if(1&e&&(a.SS7(0),a.nI1(1,"async"),a.nVh(2,h,5,4,"bit-banner",0)),2&e){const e=a.bH3(a.bMT(1,1,t.warning$));a.R7$(2),a.vxM(e?2:-1)}},dependencies:[r.H,l.K,s.G,c.g,d.Jj,u.$],encapsulation:2})},37433(e,t,i){"use strict";i.d(t,{$:()=>v});var n=i(46758),r=i(24590),s=i(11217),o=i(92128),a=i(69783),l=i(191),c=i(50700),d=i(80351),u=i(36801),h=i(27760),A=i(14041),p=i(44432);function g(e,t){if(1&e&&(A.j41(0,"bit-callout",0),A.nI1(1,"i18n"),A.EFF(2),A.k0s()),2&e){A.XpG();const e=A.r8f(0);A.Y8G("title",null)("accessibleName",A.bMT(1,3,"priceIncreaseNotice")),A.R7$(2),A.SpI(" ",e," ")}}class v{constructor(){this.organization=r.hFB.required(),this.organizationWarningsService=(0,s.WQX)(h.S),this.i18nService=(0,s.WQX)(c.W),this.currencyPipe=(0,s.WQX)(n.oe),this.datePipe=(0,s.WQX)(n.vh),this.message$=(0,o.br)(this.organization).pipe((0,l.n)(e=>this.organizationWarningsService.getScheduledPriceIncreaseWarning$(e)),(0,a.T)(e=>{var t,i;if(!e)return null;const n=Number.isInteger(e.seatPrice)?"1.0-0":"1.2-2",r=null!==(t=this.currencyPipe.transform(e.seatPrice,"$","symbol",n))&&void 0!==t?t:`$${e.seatPrice}`,s=null!==(i=this.datePipe.transform(e.effectiveDate,"longDate","UTC"))&&void 0!==i?i:"";return"annually"===e.cadence?this.i18nService.t("scheduledPriceIncreaseWarningAnnually",r,s):this.i18nService.t("scheduledPriceIncreaseWarningMonthly",r,s)}))}}v.ɵfac=function(e){return new(e||v)},v.ɵcmp=A.VBU({type:v,selectors:[["app-organization-scheduled-price-increase-warning"]],hostAttrs:[1,"tw-block","tw-mt-6","tw-mb-8"],inputs:{organization:[1,"organization"]},features:[A.Jv_([n.oe,n.vh])],decls:3,vars:4,consts:[["type","info",3,"title","accessibleName"]],template:function(e,t){if(1&e&&(A.SS7(0),A.nI1(1,"async"),A.nVh(2,g,3,5,"bit-callout",0)),2&e){const e=A.bH3(A.bMT(1,1,t.message$));A.R7$(2),A.vxM(e?2:-1)}},dependencies:[n.MD,d.j,p.G,n.Jj,u.$Z],encapsulation:2,changeDetection:0})},27760(e,t,i){"use strict";i.d(t,{S:()=>at});var n=i(87806),r=i(67789),s=i(61065),o=i(191),a=i(69783),l=i(35284),c=i(73366),d=i(68711),u=i(68108),h=i(98569),A=i(83604),p=i(5206),g=i(56962),v=i(31066),m=i(9327),f=i(11217),y=i(84210),b=i(72135),C=i(29236),I=i(34949),w=i(14679),B=i(67553),E=i(64447);class S{constructor(e){this.newPlanType=e}}var Q=i(88744),k=i(88977),R=i(81098),F=i(12012),T=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class D{constructor(e){this.apiService=e}getCadenceCards(e,t,i){return T(this,void 0,void 0,function*(){const n=(yield this.apiService.getPlans()).data.filter(e=>!!e.PasswordManager);return((null==n?void 0:n.filter(t=>t.productTier===e.productTier&&!t.disabled&&!t.legacyYear))||[]).map(e=>{var n,r;let s=0;if(e.PasswordManager.basePrice)s=e.isAnnual?e.PasswordManager.basePrice/12:e.PasswordManager.basePrice;else if(!e.PasswordManager.basePrice&&e.PasswordManager.hasAdditionalSeatsOption){s=((t.useSecretsManager?e.SecretsManager.seatPrice:0)+(i?0:e.PasswordManager.seatPrice))/(e.isAnnual?12:1)}const o=null!==(r=null===(n=t.customerDiscount)||void 0===n?void 0:n.percentOff)&&void 0!==r?r:0,a=0===o&&e.isAnnual||i?20:o;return{title:e.isAnnual?"Annually":"Monthly",costPerMember:s,discount:a,isDisabled:!1,isSelected:e.isAnnual,isAnnual:e.isAnnual,productTier:e.productTier}}).reverse()})}}D.ɵfac=function(e){return new(e||D)(f.KVO(F.G))},D.ɵprov=f.jDH({token:D,factory:D.ɵfac,providedIn:"root"});var P=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class M{getPricingSummaryData(e,t,i,n,r,s){return P(this,void 0,void 0,function*(){var o,a,l,c,d,u,h,A,p,g,v,m;const f=(null===(o=e.PasswordManager)||void 0===o?void 0:o.hasAdditionalSeatsOption)&&!r?e.PasswordManager.seatPrice*Math.abs((null==t?void 0:t.seats)||0):0,y=(null===(a=e.SecretsManager)||void 0===a?void 0:a.hasAdditionalSeatsOption)?e.SecretsManager.seatPrice*Math.abs((null==t?void 0:t.smSeats)||0):0,b=this.getAdditionalServiceAccount(e,t),C=Math.max(0,(null!==(l=null==t?void 0:t.maxStorageGb)&&void 0!==l?l:0)-e.PasswordManager.baseStorageGb),I=(null===(c=e.PasswordManager)||void 0===c?void 0:c.hasAdditionalStorageOption)?e.PasswordManager.additionalStoragePricePerGb*C:0,w=(null===(d=e.PasswordManager)||void 0===d?void 0:d.additionalStoragePricePerGb)||0,B=(null===(u=e.SecretsManager)||void 0===u?void 0:u.hasAdditionalServiceAccountOption)&&b>0?e.SecretsManager.additionalPricePerServiceAccount*b:0;let S=(null===(h=e.PasswordManager)||void 0===h?void 0:h.basePrice)||0;(null===(A=e.PasswordManager)||void 0===A?void 0:A.hasAdditionalSeatsOption)&&(S+=f),(null===(p=e.PasswordManager)||void 0===p?void 0:p.hasPremiumAccessOption)&&(S+=e.PasswordManager.premiumAccessOptionPrice),(null===(g=e.PasswordManager)||void 0===g?void 0:g.hasAdditionalStorageOption)&&(S+=I);const Q=e.SecretsManager?(e.SecretsManager.basePrice||0)+y+B:0,k=r?0:null!==(m=null===(v=null==t?void 0:t.customerDiscount)||void 0===v?void 0:v.percentOff)&&void 0!==m?m:0,R=(null==i?void 0:i.useSecretsManager)?S+Q+s:S+s;return{selectedPlanInterval:n===E.$y.Annually?"year":"month",passwordManagerSeats:e.productTier===E.K_.Families?e.PasswordManager.baseSeats:null==t?void 0:t.seats,passwordManagerSeatTotal:f,secretsManagerSeatTotal:y,additionalStorageTotal:I,additionalStoragePriceMonthly:w,additionalServiceAccountTotal:B,totalAppliedDiscount:0,secretsManagerSubtotal:Q,passwordManagerSubtotal:S,total:R,organization:i,sub:t,selectedPlan:e,selectedInterval:n,discountPercentageFromSub:k,discountPercentage:20,acceptingSponsorship:!1,additionalServiceAccount:b,storageGb:C,isSecretsManagerTrial:r,estimatedTax:s}})}getAdditionalServiceAccount(e,t){var i;if(!e||!e.SecretsManager)return 0;const n=((null===(i=e.SecretsManager)||void 0===i?void 0:i.baseServiceAccount)||0)-(((null==t?void 0:t.smServiceAccounts)||0)-((null==t?void 0:t.smServiceAccountsGrace)||0));return n<=0?Math.abs(n):0}}M.ɵfac=function(e){return new(e||M)},M.ɵprov=f.jDH({token:M,factory:M.ɵfac,providedIn:"root"});var x=i(14041),V=i(44075),G=i(69855),U=i(50700),O=i(11224),N=i(35500),j=i(71628),Y=i(46758),X=i(3892),z=i(56898),L=i(7730),W=i(45635),K=i(67311),Z=i(58806),H=i(21587),J=i(34923),q=i(24590),$=i(25740);const _=(e,t)=>({"tw-py-1":e,"tw-py-0":t}),ee=(e,t)=>({"tw-bg-primary-700 !tw-text-contrast":e,"tw-bg-secondary-100":t});function te(e,t){if(1&e&&(x.j41(0,"div",2),x.EFF(1),x.nI1(2,"i18n"),x.k0s()),2&e){const e=x.XpG();x.Y8G("ngClass",x.l_i(4,ee,e.plan().isSelected,!e.plan().isSelected)),x.R7$(),x.SpI(" ",x.bMT(2,2,"recommended")," ")}}class ie{constructor(){this.plan=q.hFB.required(),this.productTiers=E.K_,this.cardClicked=(0,q.CGW)()}getPlanCardContainerClasses(){const e=this.plan().isSelected;return this.plan().isDisabled?["tw-cursor-not-allowed","tw-bg-secondary-100","tw-font-normal","tw-bg-blur","tw-text-muted","tw-block","tw-rounded"]:e?["tw-cursor-pointer","tw-block","tw-rounded","tw-border","tw-border-solid","tw-border-primary-600","tw-border-2","tw-rounded-lg","hover:tw-border-primary-700","focus:tw-border-3","focus:tw-border-primary-700","focus:tw-rounded-lg"]:["tw-cursor-pointer","tw-block","tw-rounded","tw-border","tw-border-solid","tw-border-secondary-300","hover:tw-border-text-main","focus:tw-border-2","focus:tw-border-primary-700"]}}ie.ɵfac=function(e){return new(e||ie)},ie.ɵcmp=x.VBU({type:ie,selectors:[["app-plan-card"]],inputs:{plan:[1,"plan"]},outputs:{cardClicked:"cardClicked"},standalone:!1,decls:14,vars:16,consts:[[1,"tw-h-full",3,"click","ngClass"],[1,"tw-relative"],[1,"tw-bg-secondary-100","tw-text-center","!tw-border-0","tw-text-sm","tw-font-medium","tw-py-1",3,"ngClass"],[1,"tw-px-2","tw-pb-[4px]",3,"ngClass"],[1,"tw-text-[1.25rem]","tw-mt-[6px]","tw-font-medium","tw-mb-0","tw-leading-[2rem]","tw-flex","tw-items-center"],[1,"tw-capitalize","tw-whitespace-nowrap"],[1,"tw-text-lg","tw-font-medium"],[1,"tw-text-xs","tw-px-0"]],template:function(e,t){if(1&e&&(x.j41(0,"bit-card",0),x.bIt("click",function(){return t.cardClicked.emit()}),x.j41(1,"div",1),x.nVh(2,te,3,7,"div",2),x.j41(3,"div",3)(4,"h3",4)(5,"span",5),x.EFF(6),x.k0s()(),x.j41(7,"span")(8,"b",6),x.EFF(9),x.nI1(10,"currency"),x.k0s(),x.j41(11,"span",7),x.EFF(12),x.nI1(13,"i18n"),x.k0s()()()()()),2&e){let e;const i=t.plan().isSelected,n=t.plan().isAnnual;x.Y8G("ngClass",t.getPlanCardContainerClasses()),x.BMQ("tabindex",!i||t.plan().isDisabled?"-1":"0")("data-selected",null==(e=t.plan())?null:e.isSelected),x.R7$(2),x.vxM(n?2:-1),x.R7$(),x.Y8G("ngClass",x.l_i(13,_,!t.plan().isSelected,t.plan().isSelected)),x.R7$(3),x.JRh(t.plan().title),x.R7$(3),x.SpI("",x.i5U(10,8,t.plan().costPerMember,"$")," "),x.R7$(3),x.SpI(" /",x.bMT(13,11,"monthPerMember"))}},dependencies:[Y.YU,Y.oe,$.$],encapsulation:2});var ne=i(93199),re=i(36288);function se(e,t){1&e&&x.eu8(0)}function oe(e,t){1&e&&x.eu8(0)}function ae(e,t){if(1&e&&(x.qex(0),x.DNE(1,se,1,0,"ng-container",16)(2,oe,1,0,"ng-container",16),x.bVm()),2&e){x.XpG();const e=x.sdS(7),t=x.sdS(9);x.R7$(),x.Y8G("ngTemplateOutlet",t),x.R7$(),x.Y8G("ngTemplateOutlet",e)}}function le(e,t){1&e&&x.eu8(0)}function ce(e,t){1&e&&x.eu8(0)}function de(e,t){if(1&e&&x.DNE(0,le,1,0,"ng-container",16)(1,ce,1,0,"ng-container",16),2&e){x.XpG();const e=x.sdS(7),t=x.sdS(9);x.Y8G("ngTemplateOutlet",e),x.R7$(),x.Y8G("ngTemplateOutlet",t)}}function ue(e,t){if(1&e&&(x.qex(0),x.EFF(1),x.nI1(2,"i18n"),x.nI1(3,"currency"),x.nI1(4,"i18n"),x.bVm()),2&e){const e=x.XpG(5);x.R7$(),x.LHq(" ",e.summaryData.passwordManagerSeats," ",x.bMT(2,4,"members")," × ",x.i5U(3,6,e.summaryData.selectedPlan.isAnnual?e.summaryData.selectedPlan.PasswordManager.basePrice/12:e.summaryData.selectedPlan.PasswordManager.basePrice,"$")," /",x.bMT(4,9,e.summaryData.selectedPlanInterval)," ")}}function he(e,t){if(1&e&&(x.qex(0),x.EFF(1),x.nI1(2,"i18n"),x.nI1(3,"currency"),x.nI1(4,"i18n"),x.bVm()),2&e){const e=x.XpG(5);x.R7$(),x.E5c(" ",x.bMT(2,3,"basePrice"),": ",x.i5U(3,5,e.summaryData.selectedPlan.PasswordManager.basePrice,"$")," ",x.bMT(4,8,"monthAbbr")," ")}}function Ae(e,t){if(1&e&&(x.qex(0),x.j41(1,"span",22),x.EFF(2),x.nI1(3,"currency"),x.k0s(),x.EFF(4),x.nI1(5,"i18n"),x.bVm()),2&e){const e=x.XpG(5);x.R7$(2),x.JRh(x.i5U(3,2,e.summaryData.selectedPlan.PasswordManager.basePrice,"$")),x.R7$(2),x.SpI(" ",x.bMT(5,5,"freeWithSponsorship")," ")}}function pe(e,t){if(1&e&&(x.EFF(0),x.nI1(1,"currency")),2&e){const e=x.XpG(5);x.SpI(" ",x.i5U(1,1,e.summaryData.selectedPlan.PasswordManager.basePrice,"$")," ")}}function ge(e,t){if(1&e&&(x.qex(0),x.j41(1,"p",18)(2,"span"),x.qex(3,19),x.DNE(4,ue,5,11,"ng-container",20)(5,he,5,10,"ng-container",21),x.bVm(),x.k0s(),x.j41(6,"span"),x.DNE(7,Ae,6,7,"ng-container",12)(8,pe,2,4,"ng-template",null,3,x.C5r),x.k0s()(),x.bVm()),2&e){const e=x.sdS(9),t=x.XpG(4);x.R7$(3),x.Y8G("ngSwitch",t.summaryData.selectedInterval),x.R7$(),x.Y8G("ngSwitchCase",t.planIntervals.Annually),x.R7$(3),x.Y8G("ngIf",t.summaryData.acceptingSponsorship)("ngIfElse",e)}}function ve(e,t){1&e&&(x.j41(0,"span"),x.EFF(1),x.nI1(2,"i18n"),x.k0s()),2&e&&(x.R7$(),x.SpI("",x.bMT(2,1,"additionalUsers"),":"))}function me(e,t){1&e&&(x.j41(0,"span"),x.EFF(1),x.nI1(2,"i18n"),x.k0s()),2&e&&(x.R7$(),x.JRh(x.bMT(2,1,"members")))}function fe(e,t){if(1&e&&(x.j41(0,"span"),x.EFF(1),x.nI1(2,"currency"),x.k0s()),2&e){const e=x.XpG(5);x.R7$(),x.SpI(" ",x.i5U(2,1,e.summaryData.passwordManagerSeatTotal,"$")," ")}}function ye(e,t){1&e&&(x.j41(0,"span"),x.EFF(1),x.nI1(2,"i18n"),x.k0s()),2&e&&(x.R7$(),x.SpI(" ",x.bMT(2,1,"freeForOneYear")," "))}function be(e,t){if(1&e&&(x.qex(0),x.j41(1,"p",23)(2,"span"),x.DNE(3,ve,3,3,"span",9),x.EFF(4),x.DNE(5,me,3,3,"span",9),x.EFF(6),x.nI1(7,"currency"),x.nI1(8,"i18n"),x.k0s(),x.DNE(9,fe,3,4,"span",9)(10,ye,3,3,"span",9),x.k0s(),x.bVm()),2&e){const e=x.XpG(4);x.R7$(3),x.Y8G("ngIf",e.summaryData.selectedPlan.PasswordManager.baseSeats),x.R7$(),x.SpI(" ",e.summaryData.passwordManagerSeats||0," "),x.R7$(),x.Y8G("ngIf",!e.summaryData.selectedPlan.PasswordManager.baseSeats),x.R7$(),x.Lme(" × ",x.i5U(7,7,e.summaryData.selectedPlan.PasswordManager.seatPrice,"$")," /",x.bMT(8,10,e.summaryData.selectedPlanInterval)," "),x.R7$(3),x.Y8G("ngIf",!e.summaryData.isSecretsManagerTrial),x.R7$(),x.Y8G("ngIf",e.summaryData.isSecretsManagerTrial)}}function Ce(e,t){if(1&e&&(x.qex(0),x.EFF(1),x.nI1(2,"currency"),x.bVm()),2&e){const e=x.XpG(5);x.R7$(),x.SpI(" ",x.i5U(2,1,e.summaryData.additionalStorageTotal,"$")," ")}}function Ie(e,t){if(1&e&&(x.qex(0),x.EFF(1),x.nI1(2,"currency"),x.bVm()),2&e){const e=x.XpG(5);x.R7$(),x.SpI(" ",x.i5U(2,1,e.summaryData.storageGb*e.summaryData.selectedPlan.PasswordManager.additionalStoragePricePerGb,"$")," ")}}function we(e,t){if(1&e&&(x.qex(0),x.j41(1,"p",23)(2,"span"),x.EFF(3),x.nI1(4,"i18n"),x.nI1(5,"currency"),x.nI1(6,"i18n"),x.k0s(),x.j41(7,"span"),x.qex(8,19),x.DNE(9,Ce,3,4,"ng-container",20)(10,Ie,3,4,"ng-container",21),x.bVm(),x.k0s()(),x.bVm()),2&e){const e=x.XpG(4);x.R7$(3),x.LHq(" ",e.summaryData.storageGb," ",x.bMT(4,6,"additionalStorageGbMessage")," × ",x.i5U(5,8,e.summaryData.additionalStoragePriceMonthly,"$")," /",x.bMT(6,11,e.summaryData.selectedPlanInterval)," "),x.R7$(5),x.Y8G("ngSwitch",e.summaryData.selectedInterval),x.R7$(),x.Y8G("ngSwitchCase",e.planIntervals.Annually)}}function Be(e,t){if(1&e&&(x.qex(0),x.j41(1,"p",17),x.EFF(2),x.nI1(3,"i18n"),x.k0s(),x.DNE(4,ge,10,4,"ng-container",9)(5,be,11,12,"ng-container",9)(6,we,11,13,"ng-container",9),x.bVm()),2&e){const e=x.XpG(3);x.R7$(2),x.JRh(x.bMT(3,4,"passwordManager")),x.R7$(2),x.Y8G("ngIf",e.summaryData.selectedPlan.PasswordManager.basePrice),x.R7$(),x.Y8G("ngIf",e.summaryData.selectedPlan.PasswordManager.hasAdditionalSeatsOption),x.R7$(),x.Y8G("ngIf",e.summaryData.selectedPlan.PasswordManager.hasAdditionalStorageOption&&e.summaryData.storageGb>0)}}function Ee(e,t){if(1&e&&x.DNE(0,Be,7,6,"ng-container",9),2&e){const e=x.XpG(2);x.Y8G("ngIf",!e.summaryData.isSecretsManagerTrial||e.summaryData.organization.useSecretsManager)}}function Se(e,t){if(1&e&&(x.qex(0),x.EFF(1),x.nI1(2,"i18n"),x.nI1(3,"currency"),x.nI1(4,"i18n"),x.bVm()),2&e){const e=x.XpG(5);x.R7$(),x.LHq(" ",null==e.summaryData.sub?null:e.summaryData.sub.smSeats," ",x.bMT(2,4,"members")," × ",x.i5U(3,6,e.summaryData.selectedPlan.isAnnual?e.summaryData.selectedPlan.SecretsManager.basePrice/12:e.summaryData.selectedPlan.SecretsManager.basePrice,"$")," /",x.bMT(4,9,e.summaryData.selectedPlanInterval)," ")}}function Qe(e,t){if(1&e&&(x.qex(0),x.EFF(1),x.nI1(2,"i18n"),x.nI1(3,"currency"),x.nI1(4,"i18n"),x.bVm()),2&e){const e=x.XpG(5);x.R7$(),x.E5c(" ",x.bMT(2,3,"basePrice"),": ",x.i5U(3,5,e.summaryData.selectedPlan.SecretsManager.basePrice,"$")," ",x.bMT(4,8,"monthAbbr")," ")}}function ke(e,t){if(1&e&&(x.j41(0,"span"),x.EFF(1),x.nI1(2,"currency"),x.k0s()),2&e){const e=x.XpG(5);x.R7$(),x.SpI(" ",x.i5U(2,1,e.summaryData.selectedPlan.SecretsManager.basePrice,"$")," ")}}function Re(e,t){if(1&e&&(x.qex(0),x.j41(1,"p",18)(2,"span"),x.qex(3,19),x.DNE(4,Se,5,11,"ng-container",20)(5,Qe,5,10,"ng-container",21),x.bVm(),x.k0s(),x.DNE(6,ke,3,4,"span",9),x.k0s(),x.bVm()),2&e){const e=x.XpG(4);x.R7$(3),x.Y8G("ngSwitch",e.summaryData.selectedInterval),x.R7$(),x.Y8G("ngSwitchCase",e.planIntervals.Annually),x.R7$(2),x.Y8G("ngIf",e.summaryData.selectedInterval===e.planIntervals.Monthly)}}function Fe(e,t){1&e&&(x.j41(0,"span"),x.EFF(1),x.nI1(2,"i18n"),x.k0s()),2&e&&(x.R7$(),x.SpI("",x.bMT(2,1,"additionalUsers"),":"))}function Te(e,t){1&e&&(x.j41(0,"span"),x.EFF(1),x.nI1(2,"i18n"),x.k0s()),2&e&&(x.R7$(),x.JRh(x.bMT(2,1,"members")))}function De(e,t){if(1&e&&(x.qex(0),x.j41(1,"p",23)(2,"span"),x.DNE(3,Fe,3,3,"span",9),x.EFF(4),x.DNE(5,Te,3,3,"span",9),x.EFF(6),x.nI1(7,"currency"),x.nI1(8,"i18n"),x.k0s(),x.j41(9,"span"),x.EFF(10),x.nI1(11,"currency"),x.k0s()(),x.bVm()),2&e){const e=x.XpG(4);x.R7$(3),x.Y8G("ngIf",e.summaryData.selectedPlan.SecretsManager.baseSeats),x.R7$(),x.SpI(" ",(null==e.summaryData.sub?null:e.summaryData.sub.smSeats)||0," "),x.R7$(),x.Y8G("ngIf",!e.summaryData.selectedPlan.SecretsManager.baseSeats),x.R7$(),x.Lme(" × ",x.i5U(7,6,e.summaryData.selectedPlan.SecretsManager.seatPrice,"$")," /",x.bMT(8,9,e.summaryData.selectedPlanInterval)," "),x.R7$(4),x.SpI(" ",x.i5U(11,11,e.summaryData.secretsManagerSeatTotal,"$")," ")}}function Pe(e,t){if(1&e&&(x.qex(0),x.j41(1,"p",23)(2,"span"),x.EFF(3),x.nI1(4,"i18n"),x.nI1(5,"lowercase"),x.nI1(6,"currency"),x.nI1(7,"i18n"),x.k0s(),x.j41(8,"span"),x.EFF(9),x.nI1(10,"currency"),x.k0s()(),x.bVm()),2&e){const e=x.XpG(4);x.R7$(3),x.LHq(" ",e.summaryData.additionalServiceAccount," ",x.bMT(5,7,x.bMT(4,5,"serviceAccounts"))," × ",x.i5U(6,9,null==e.summaryData.selectedPlan||null==e.summaryData.selectedPlan.SecretsManager?null:e.summaryData.selectedPlan.SecretsManager.additionalPricePerServiceAccount,"$")," /",x.bMT(7,12,e.summaryData.selectedPlanInterval)," "),x.R7$(6),x.JRh(x.i5U(10,14,e.summaryData.additionalServiceAccountTotal,"$"))}}function Me(e,t){if(1&e&&(x.qex(0),x.j41(1,"p",17),x.EFF(2),x.nI1(3,"i18n"),x.k0s(),x.DNE(4,Re,7,3,"ng-container",9)(5,De,12,14,"ng-container",9)(6,Pe,11,17,"ng-container",9),x.bVm()),2&e){const e=x.XpG(3);x.R7$(2),x.JRh(x.bMT(3,4,"secretsManager")),x.R7$(2),x.Y8G("ngIf",null==e.summaryData.selectedPlan||null==e.summaryData.selectedPlan.SecretsManager?null:e.summaryData.selectedPlan.SecretsManager.basePrice),x.R7$(),x.Y8G("ngIf",null==e.summaryData.selectedPlan||null==e.summaryData.selectedPlan.SecretsManager?null:e.summaryData.selectedPlan.SecretsManager.hasAdditionalSeatsOption),x.R7$(),x.Y8G("ngIf",(null==e.summaryData.selectedPlan||null==e.summaryData.selectedPlan.SecretsManager?null:e.summaryData.selectedPlan.SecretsManager.hasAdditionalServiceAccountOption)&&e.summaryData.additionalServiceAccount>0)}}function xe(e,t){if(1&e&&x.DNE(0,Me,7,6,"ng-container",9),2&e){const e=x.XpG(2);x.Y8G("ngIf",e.summaryData.organization.useSecretsManager)}}function Ve(e,t){if(1&e&&(x.qex(0),x.j41(1,"p",23)(2,"span",24),x.EFF(3),x.nI1(4,"i18n"),x.nI1(5,"lowercase"),x.k0s(),x.j41(6,"span",25),x.EFF(7),x.nI1(8,"currency"),x.k0s()(),x.bVm()),2&e){const e=x.XpG(2);x.R7$(3),x.SpI(" ",x.bMT(5,5,x.i5U(4,2,"providerDiscount",e.summaryData.discountPercentageFromSub))," "),x.R7$(4),x.SpI(" ",x.i5U(8,7,e.summaryData.totalAppliedDiscount,"$")," ")}}function Ge(e,t){if(1&e&&(x.qex(0),x.j41(1,"div",10)(2,"bit-hint",11),x.DNE(3,ae,3,2,"ng-container",12)(4,de,2,2,"ng-template",null,0,x.C5r)(6,Ee,1,1,"ng-template",null,1,x.C5r)(8,xe,1,1,"ng-template",null,2,x.C5r)(10,Ve,9,10,"ng-container",9),x.k0s()(),x.j41(11,"div",13)(12,"bit-hint",11)(13,"p",14)(14,"span",6),x.EFF(15),x.nI1(16,"i18n"),x.k0s(),x.j41(17,"span"),x.EFF(18),x.nI1(19,"currency"),x.k0s()()()(),x.j41(20,"div",13)(21,"bit-hint",11)(22,"p",14)(23,"span",6),x.EFF(24),x.nI1(25,"i18n"),x.k0s(),x.j41(26,"span"),x.EFF(27),x.nI1(28,"currency"),x.j41(29,"span",15),x.EFF(30),x.nI1(31,"i18n"),x.k0s()()()()(),x.bVm()),2&e){const e=x.sdS(5),t=x.XpG();x.R7$(3),x.Y8G("ngIf",t.summaryData.isSecretsManagerTrial)("ngIfElse",e),x.R7$(7),x.Y8G("ngIf",t.summaryData.discountPercentageFromSub>0),x.R7$(5),x.JRh(x.bMT(16,8,"estimatedTax")),x.R7$(3),x.JRh(x.brH(19,10,t.summaryData.estimatedTax,"USD","$")),x.R7$(6),x.JRh(x.bMT(25,14,"total")),x.R7$(3),x.SpI(" ",x.brH(28,16,t.summaryData.total-t.summaryData.totalAppliedDiscount,"USD","$")," "),x.R7$(3),x.SpI("/ ",x.bMT(31,20,t.summaryData.selectedPlanInterval))}}class Ue{constructor(){this.planIntervals=E.$y}toggleTotalOpened(){this.summaryData&&(this.summaryData.totalOpened=!this.summaryData.totalOpened)}}Ue.ɵfac=function(e){return new(e||Ue)},Ue.ɵcmp=x.VBU({type:Ue,selectors:[["app-pricing-summary"]],inputs:{summaryData:"summaryData"},standalone:!1,decls:14,vars:18,consts:[["showPasswordManagerFirst",""],["passwordManagerSection",""],["secretsManagerSection",""],["notAcceptingSponsorship",""],[1,"tw-mt-4"],[1,"tw-text-lg","tw-mb-1"],[1,"tw-font-medium"],[1,"tw-text-xs","tw-font-light"],["type","button","size","small",3,"click","bitIconButton","label"],[4,"ngIf"],[1,"tw-flex","tw-flex-wrap","tw-gap-4"],[1,"tw-w-full"],[4,"ngIf","ngIfElse"],[1,"tw-flex","tw-flex-wrap","tw-gap-4","tw-mt-4"],[1,"tw-flex","tw-justify-between","tw-border-0","tw-border-solid","tw-border-t","tw-border-secondary-300","tw-pt-2","tw-mb-0"],[1,"tw-text-xs","tw-font-medium"],[4,"ngTemplateOutlet"],[1,"tw-font-medium","tw-mt-3","tw-mb-1"],["bitTypography","body2",1,"tw-mb-1","tw-flex","tw-justify-between"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"tw-line-through"],["bitTypography","body2",1,"tw-mb-0","tw-flex","tw-justify-between"],[1,"tw-text-xs"],[1,"tw-line-through","tw-text-xs"]],template:function(e,t){1&e&&(x.qex(0),x.j41(1,"div",4)(2,"p",5)(3,"span",6),x.EFF(4),x.nI1(5,"i18n"),x.nI1(6,"currency"),x.k0s(),x.j41(7,"span",7),x.EFF(8),x.nI1(9,"i18n"),x.k0s(),x.j41(10,"button",8),x.nI1(11,"i18n"),x.nI1(12,"i18n"),x.bIt("click",function(){return t.toggleTotalOpened()}),x.k0s()()(),x.DNE(13,Ge,32,22,"ng-container",9),x.bVm()),2&e&&(x.R7$(4),x.Lme("",x.bMT(5,6,"total"),": ",x.brH(6,8,t.summaryData.total-t.summaryData.totalAppliedDiscount,"USD","$")," USD"),x.R7$(4),x.SpI(" / ",x.bMT(9,12,t.summaryData.selectedPlanInterval)),x.R7$(2),x.Y8G("bitIconButton",t.summaryData.totalOpened?"bwi-angle-down":"bwi-angle-up")("label",t.summaryData.totalOpened?x.bMT(11,14,"hidePricingSummary"):x.bMT(12,16,"showPricingSummary")),x.R7$(3),x.Y8G("ngIf",t.summaryData.totalOpened))},dependencies:[Y.bT,Y.T3,Y.ux,Y.e1,Y.fG,ne.I,re.s,Z.r,Y.GH,Y.oe,$.$],encapsulation:2});var Oe=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})},Ne=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i};const je=e=>({type:"checkout",supportsTaxId:e});function Ye(e,t){1&e&&(x.j41(0,"li"),x.nrm(1,"i",14),x.EFF(2),x.nI1(3,"i18n"),x.k0s()),2&e&&(x.R7$(2),x.SpI(" ",x.bMT(3,1,"customRoles")," "))}function Xe(e,t){1&e&&(x.j41(0,"li"),x.nrm(1,"i",14),x.EFF(2),x.nI1(3,"i18n"),x.k0s()),2&e&&(x.R7$(2),x.SpI(" ",x.bMT(3,1,"unlimitedSecretsAndProjects")," "))}function ze(e,t){if(1&e&&(x.j41(0,"ul",13)(1,"li"),x.nrm(2,"i",14),x.EFF(3),x.nI1(4,"i18n"),x.k0s(),x.j41(5,"li"),x.nrm(6,"i",14),x.EFF(7),x.nI1(8,"i18n"),x.k0s(),x.j41(9,"li"),x.nrm(10,"i",14),x.EFF(11),x.nI1(12,"i18n"),x.k0s(),x.DNE(13,Ye,4,3,"li",5)(14,Xe,4,3,"li",5),x.k0s()),2&e){const e=x.XpG();x.R7$(3),x.SpI(" ",x.bMT(4,5,"includeEnterprisePolicies")," "),x.R7$(4),x.SpI(" ",x.bMT(8,7,"passwordLessSso")," "),x.R7$(4),x.SpI(" ",x.bMT(12,9,"accountRecovery")," "),x.R7$(2),x.Y8G("ngIf",!(null!=e.organization&&e.organization.canAccessSecretsManager)),x.R7$(),x.Y8G("ngIf",null==e.organization?null:e.organization.canAccessSecretsManager)}}function Le(e,t){1&e&&(x.j41(0,"li"),x.nrm(1,"i",14),x.EFF(2),x.nI1(3,"i18n"),x.k0s()),2&e&&(x.R7$(2),x.SpI(" ",x.bMT(3,1,"unlimitedSecretsAndProjects")," "))}function We(e,t){if(1&e&&(x.j41(0,"ul",13)(1,"li"),x.nrm(2,"i",14),x.EFF(3),x.nI1(4,"i18n"),x.k0s(),x.j41(5,"li"),x.nrm(6,"i",14),x.EFF(7),x.nI1(8,"i18n"),x.k0s(),x.j41(9,"li"),x.nrm(10,"i",14),x.EFF(11),x.nI1(12,"i18n"),x.k0s(),x.DNE(13,Le,4,3,"li",5),x.k0s()),2&e){const e=x.XpG();x.R7$(3),x.SpI(" ",x.bMT(4,4,"secureDataSharing")," "),x.R7$(4),x.SpI(" ",x.bMT(8,6,"eventLogMonitoring")," "),x.R7$(4),x.SpI(" ",x.bMT(12,8,"directoryIntegration")," "),x.R7$(2),x.Y8G("ngIf",null==e.organization?null:e.organization.canAccessSecretsManager)}}function Ke(e,t){1&e&&(x.j41(0,"ul",13)(1,"li"),x.nrm(2,"i",14),x.EFF(3),x.nI1(4,"i18n"),x.k0s(),x.j41(5,"li"),x.nrm(6,"i",14),x.EFF(7),x.nI1(8,"i18n"),x.k0s(),x.j41(9,"li"),x.nrm(10,"i",14),x.EFF(11),x.nI1(12,"i18n"),x.k0s()()),2&e&&(x.R7$(3),x.SpI(" ",x.bMT(4,3,"premiumAccounts")," "),x.R7$(4),x.SpI(" ",x.bMT(8,5,"unlimitedSharing")," "),x.R7$(4),x.SpI(" ",x.bMT(12,7,"createUnlimitedCollections")," "))}function Ze(e,t){if(1&e){const e=x.RV6();x.j41(0,"app-plan-card",19),x.bIt("cardClicked",function(){const t=f.eBV(e).$implicit,i=x.XpG(3);return f.Njj(i.setSelected(t))}),x.k0s()}if(2&e){const e=t.$implicit;x.Y8G("plan",e)}}function He(e,t){if(1&e&&(x.qex(0),x.j41(1,"div",17),x.Z7z(2,Ze,1,1,"app-plan-card",18,x.Vm6),x.k0s(),x.bVm()),2&e){const e=x.XpG(2);x.R7$(),x.HbH("tw-grid-cols-"+e.planCards().length),x.R7$(),x.Dyx(e.planCards())}}function Je(e,t){if(1&e&&(x.j41(0,"div")(1,"div",15)(2,"h4",16),x.EFF(3),x.nI1(4,"i18n"),x.k0s()(),x.DNE(5,He,4,2,"ng-container",5),x.k0s()),2&e){const e=x.XpG();x.R7$(3),x.JRh(x.bMT(4,2,"selectAPlan")),x.R7$(2),x.Y8G("ngIf",e.planCards().length>0)}}function qe(e,t){if(1&e&&x.nrm(0,"app-pricing-summary",20),2&e){const e=x.XpG();x.Y8G("summaryData",e.pricingSummaryData)}}const $e={CLOSED:"closed",SUBMITTED:"submitted"};class _e{constructor(e,t,i,r,s,o,a,l,c,d,u,h,A){var p;this.dialogParams=e,this.dialogRef=t,this.organizationService=i,this.i18nService=r,this.organizationApiService=s,this.accountService=o,this.planCardService=a,this.pricingSummaryService=l,this.apiService=c,this.toastService=d,this.organizationBillingApiServiceAbstraction=u,this.subscriberBillingClient=h,this.previewInvoiceClient=A,this.productTypes=E.K_,this.selectedInterval=E.$y.Annually,this.planCards=(0,f.vPA)([]),this.onSuccess=new f.bkB,this.ResultType=$e,this.formGroup=new y.gE({paymentMethod:R.Pu.getFormGroup(),billingAddress:R.vU.getFormGroup()}),this.destroy$=new n.B,this.refreshPricingSummary=()=>Oe(this,void 0,void 0,function*(){const e=yield this.getEstimatedTax();this.pricingSummaryData=yield this.pricingSummaryService.getPricingSummaryData(this.currentPlan,this.sub,this.organization,this.selectedInterval,this.isSecretsManagerTrial(),e)}),this.getEstimatedTax=()=>Oe(this,void 0,void 0,function*(){if(this.formGroup.controls.billingAddress.invalid)return 0;const e=this.currentPlan.productTier!==E.K_.Families?this.currentPlan.isAnnual?"annually":"monthly":null,t=(0,R.c3)(this.formGroup.controls.billingAddress),i=(e=>{switch(e.productTierType){case E.K_.Families:return"families";case E.K_.Teams:return"teams";case E.K_.Enterprise:return"enterprise"}})(this.organization);if(i&&e){return(yield this.previewInvoiceClient.previewTaxForOrganizationSubscriptionPlanChange(this.organization.id,{tier:i,cadence:e},t)).tax}return 0}),this.initialPaymentMethod=null!==(p=this.dialogParams.initialPaymentMethod)&&void 0!==p?p:E.eq.Card}ngOnInit(){return Oe(this,void 0,void 0,function*(){var e,t,i;this.currentPlanName=this.resolvePlanName(this.dialogParams.productTierType),this.sub=null!==(e=this.dialogParams.subscription)&&void 0!==e?e:yield this.organizationApiService.getSubscription(this.dialogParams.organizationId),this.organizationId=this.dialogParams.organizationId,this.currentPlan=null===(t=this.sub)||void 0===t?void 0:t.plan;const n=yield(0,u._)(this.accountService.activeAccount$.pipe((0,a.T)(e=>null==e?void 0:e.id)));if(!n)throw new Error("User ID is required");const r=yield(0,u._)(this.organizationService.organizations$(n).pipe((0,B.Sw)(this.organizationId)));if(!r)throw new Error("Organization not found");this.organization=r;const s=yield this.planCardService.getCadenceCards(this.currentPlan,this.sub,this.isSecretsManagerTrial());this.planCards.set(s),this.selectedInterval||(this.selectedInterval=(null===(i=s.find(e=>e.isSelected))||void 0===i?void 0:i.isAnnual)?E.$y.Annually:E.$y.Monthly);const l=yield this.subscriberBillingClient.getBillingAddress({type:"organization",data:this.organization});if(l){const{taxId:e}=l,t=Ne(l,["taxId"]);this.formGroup.controls.billingAddress.patchValue(Object.assign(Object.assign({},t),{taxId:e?e.value:null}))}yield this.refreshPricingSummary(),this.plans=yield this.apiService.getPlans(),(0,b.z)([this.formGroup.controls.billingAddress.controls.country.valueChanges.pipe((0,I.Z)(this.formGroup.controls.billingAddress.controls.country.value)),this.formGroup.controls.billingAddress.controls.postalCode.valueChanges.pipe((0,I.Z)(this.formGroup.controls.billingAddress.controls.postalCode.value)),this.formGroup.controls.billingAddress.controls.taxId.valueChanges.pipe((0,I.Z)(this.formGroup.controls.billingAddress.controls.taxId.value))]).pipe((0,w.B)(500),(0,o.n)(()=>this.refreshPricingSummary()),(0,C.Q)(this.destroy$)).subscribe()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setSelected(e){return Oe(this,void 0,void 0,function*(){this.selectedInterval=e.isAnnual?E.$y.Annually:E.$y.Monthly,this.planCards.update(e=>e.map(e=>e.isSelected?Object.assign(Object.assign({},e),{isSelected:!1}):Object.assign(Object.assign({},e),{isSelected:!0}))),yield this.selectPlan(),yield this.refreshPricingSummary()})}selectPlan(){return Oe(this,void 0,void 0,function*(){if(this.selectedInterval===E.$y.Monthly&&this.currentPlan.productTier==E.K_.Families)return;const e=this.plans.data.filter(e=>e.productTier===this.currentPlan.productTier&&e.isAnnual===(this.selectedInterval===E.$y.Annually));e.length>0&&(this.currentPlan=e[0]);try{yield this.refreshPricingSummary()}catch(t){const e=t instanceof Error?t.message:String(t),i=this.i18nService.t(e);this.toastService.showToast({title:"",variant:"error",message:i&&""!==i?i:e})}})}isSecretsManagerTrial(){var e,t,i,n;return null!==(n=null===(i=null===(t=null===(e=this.sub)||void 0===e?void 0:e.subscription)||void 0===t?void 0:t.items)||void 0===i?void 0:i.some(e=>{var t,i,n;return null===(n=null===(i=null===(t=this.sub)||void 0===t?void 0:t.customerDiscount)||void 0===i?void 0:i.appliesTo)||void 0===n?void 0:n.includes(e.productId)}))&&void 0!==n&&n}onSubscribe(){return Oe(this,void 0,void 0,function*(){if(this.formGroup.markAllAsTouched(),!this.formGroup.invalid)try{const e=yield this.enterPaymentMethodComponent.tokenize();if(!e)return;const t=(0,R.c3)(this.formGroup.controls.billingAddress),i={type:"organization",data:this.organization};if(yield Promise.all([this.subscriberBillingClient.updatePaymentMethod(i,e,null),this.subscriberBillingClient.updateBillingAddress(i,t)]),this.currentPlan.type!==this.sub.planType){const e=new S;e.newPlanType=this.currentPlan.type,yield this.organizationBillingApiServiceAbstraction.changeSubscriptionFrequency(this.organizationId,e)}this.toastService.showToast({variant:"success",title:void 0,message:this.i18nService.t("updatedPaymentMethod")}),this.onSuccess.emit({organizationId:this.organizationId}),yield this.dialogRef.close($e.SUBMITTED)}catch(e){const t="object"==typeof e&&null!==e&&"message"in e?e.message:String(e);this.toastService.showToast({variant:"error",title:void 0,message:this.i18nService.t(t)||t})}})}get trialLength(){var e,t;const{trialStartDate:i,trialEndDate:n}=null!==(t=null===(e=this.sub)||void 0===e?void 0:e.subscription)&&void 0!==t?t:{};if(!i||!n)return k.O;return Math.round((new Date(n).getTime()-new Date(i).getTime())/864e5)}resolvePlanName(e){switch(e){case E.K_.Enterprise:return this.i18nService.t("planNameEnterprise");case E.K_.Free:return this.i18nService.t("planNameFree");case E.K_.Families:return this.i18nService.t("planNameFamilies");case E.K_.Teams:return this.i18nService.t("planNameTeams");case E.K_.TeamsStarter:return this.i18nService.t("planNameTeamsStarter");default:return this.i18nService.t("planNameFree")}}get supportsTaxId(){return!!this.organization&&this.organization.productTierType!==E.K_.Families}}_e.open=(e,t)=>e.open(_e,t),_e.ɵfac=function(e){return new(e||_e)(x.rXU(Q.Qs),x.rXU(V.ce),x.rXU(B.PV),x.rXU(U.W),x.rXU(O.X),x.rXU(N.D),x.rXU(D),x.rXU(M),x.rXU(F.G),x.rXU(G.f),x.rXU(j.C),x.rXU(m.Hd),x.rXU(m.dA))},_e.ɵcmp=x.VBU({type:_e,selectors:[["app-trial-payment-dialog"]],viewQuery:function(e,t){if(1&e&&x.GBs(R.Pu,5),2&e){let e;x.mGM(e=x.lsd())&&(t.enterPaymentMethodComponent=e.first)}},outputs:{onSuccess:"onSuccess"},standalone:!1,decls:28,vars:31,consts:[["dialogSize","default"],["bitDialogTitle","",1,"tw-font-medium"],["bitDialogContent",""],[3,"ngSwitch"],["class","bwi-ul tw-text-xs",4,"ngSwitchCase"],[4,"ngIf"],["bitTypography","h4"],[3,"group"],[3,"group","scenario"],[3,"summaryData",4,"ngIf"],["bitDialogFooter",""],["bitButton","","buttonType","primary","type","button",3,"bitAction"],["bitButton","","buttonType","secondary","type","button",3,"bitDialogClose"],[1,"bwi-ul","tw-text-xs"],["aria-hidden","true",1,"bwi","bwi-check","tw-text-muted","bwi-li"],[1,"tw-mb-3","tw-flex","tw-justify-between"],[1,"tw-text-lg","tw-text-main"],[1,"tw-grid","tw-grid-flow-col","tw-gap-4","tw-mb-2"],[3,"plan"],[3,"cardClicked","plan"],[3,"summaryData"]],template:function(e,t){1&e&&(x.j41(0,"bit-dialog",0)(1,"span",1),x.EFF(2),x.nI1(3,"i18n"),x.k0s(),x.j41(4,"div",2)(5,"p"),x.EFF(6),x.nI1(7,"i18n"),x.k0s(),x.qex(8,3),x.DNE(9,ze,15,11,"ul",4)(10,We,14,10,"ul",4)(11,Ke,13,9,"ul",4),x.bVm(),x.DNE(12,Je,6,4,"div",5),x.qex(13),x.j41(14,"h2",6),x.EFF(15),x.nI1(16,"i18n"),x.k0s(),x.qex(17,2),x.nrm(18,"app-enter-payment-method",7)(19,"app-enter-billing-address",8),x.bVm(),x.DNE(20,qe,1,1,"app-pricing-summary",9),x.bVm(),x.k0s(),x.qex(21,10),x.j41(22,"button",11),x.EFF(23),x.nI1(24,"i18n"),x.k0s(),x.j41(25,"button",12),x.EFF(26),x.nI1(27,"i18n"),x.k0s(),x.bVm(),x.k0s()),2&e&&(x.R7$(2),x.SpI(" ",x.i5U(3,16,"subscribetoEnterprise",t.currentPlanName)," "),x.R7$(4),x.SpI(" ",x.brH(7,19,"subscribeEnterpriseSubtitleSpecificTrialLength",t.currentPlanName,t.trialLength)," "),x.R7$(2),x.Y8G("ngSwitch",null==t.currentPlan?null:t.currentPlan.productTier),x.R7$(),x.Y8G("ngSwitchCase",t.productTypes.Enterprise),x.R7$(),x.Y8G("ngSwitchCase",t.productTypes.Teams),x.R7$(),x.Y8G("ngSwitchCase",t.productTypes.Families),x.R7$(),x.Y8G("ngIf",!((null==t.currentPlan?null:t.currentPlan.productTier)===t.productTypes.Families)),x.R7$(3),x.JRh(x.bMT(16,23,"paymentMethod")),x.R7$(3),x.Y8G("group",t.formGroup.controls.paymentMethod),x.R7$(),x.Y8G("group",t.formGroup.controls.billingAddress)("scenario",x.eq3(29,je,t.supportsTaxId)),x.R7$(),x.Y8G("ngIf",t.pricingSummaryData),x.R7$(2),x.Y8G("bitAction",t.onSubscribe.bind(t)),x.R7$(),x.SpI(" ",x.bMT(24,25,"subscribe")," "),x.R7$(2),x.Y8G("bitDialogClose",t.ResultType.CLOSED),x.R7$(),x.SpI(" ",x.bMT(27,27,"later")," "))},dependencies:[Y.bT,Y.ux,Y.e1,X.p,z.Q,L.I,W.m,K.hJ,Z.r,H.P,J.vU,ie,Ue,$.$],encapsulation:2});var et=i(16452),tt=i(66316),it=i(37115),nt=i(26983),rt=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const st=e=>e.toLocaleDateString("en-US",{month:"short",day:"2-digit",year:"numeric"}),ot=new v.Ok(v.Q5,"trialPaymentModalDismissedOrgs",{deserializer:e=>e,clearOn:[]});class at{constructor(e,t,i,g,v,m,f,y,b){this.dialogService=e,this.i18nService=t,this.organizationApiService=i,this.organizationBillingClient=g,this.platformUtilsService=v,this.router=m,this.accountService=f,this.logService=y,this.stateProvider=b,this.cache$=new Map,this.refreshFreeTrialWarningTrigger=new n.B,this.refreshTaxIdWarningTrigger=new n.B,this.refreshInactiveSubscriptionWarningTrigger=new n.B,this.taxIdWarningRefreshedSubject=new r.t(null),this.taxIdWarningRefreshed$=this.taxIdWarningRefreshedSubject.asObservable(),this.getFreeTrialWarning$=(e,t=!1)=>(0,s.h)(this.getWarning$(e,e=>e.freeTrial),this.refreshFreeTrialWarningTrigger.pipe((0,o.n)(()=>this.getWarning$(e,e=>e.freeTrial,!0)))).pipe((0,a.T)(i=>{if(!i)return null;const{remainingTrialDays:n}=i;return n>=2?{organization:e,message:t?this.i18nService.t("freeTrialEndPromptMultipleDays",e.name,n):this.i18nService.t("freeTrialEndPromptCount",n)}:1==n?{organization:e,message:t?this.i18nService.t("freeTrialEndPromptTomorrow",e.name):this.i18nService.t("freeTrialEndPromptTomorrowNoOrgName")}:{organization:e,message:t?this.i18nService.t("freeTrialEndPromptToday",e.name):this.i18nService.t("freeTrialEndingTodayWithoutOrgName")}})),this.getResellerRenewalWarning$=e=>this.getWarning$(e,e=>e.resellerRenewal).pipe((0,a.T)(e=>{if(!e)return null;switch(e.type){case"upcoming":return{type:"info",message:this.i18nService.t("resellerRenewalWarningMsgV2",st(e.upcoming.renewalDate))};case"issued":return null;case"past_due":return{type:"info",message:this.i18nService.t("resellerPastDueWarningMsgV2",st(e.pastDue.suspensionDate))}}})),this.getScheduledPriceIncreaseWarning$=e=>this.getWarning$(e,e=>e.scheduledPriceIncrease),this.getTaxIdWarning$=e=>(0,s.h)(this.getWarning$(e,e=>e.taxId),this.refreshTaxIdWarningTrigger.pipe((0,o.n)(()=>this.getWarning$(e,e=>e.taxId,!0).pipe((0,l.M)(e=>this.taxIdWarningRefreshedSubject.next(e?e.type:null)))))).pipe((0,a.T)(e=>e?e.type:null)),this.refreshFreeTrialWarning=()=>this.refreshFreeTrialWarningTrigger.next(),this.refreshInactiveSubscriptionWarning=()=>this.refreshInactiveSubscriptionWarningTrigger.next(),this.refreshTaxIdWarning=()=>this.refreshTaxIdWarningTrigger.next(),this.showInactiveSubscriptionDialog$=e=>(0,s.h)(this.getWarning$(e,e=>e.inactiveSubscription),this.refreshInactiveSubscriptionWarningTrigger.pipe((0,o.n)(()=>this.getWarning$(e,e=>e.inactiveSubscription,!0)))).pipe((0,o.n)(t=>rt(this,void 0,void 0,function*(){if(t)switch(t.resolution){case"contact_provider":yield this.dialogService.openSimpleDialog({title:this.i18nService.t("suspendedOrganizationTitle",e.name),content:{key:"suspendedManagedOrgMessage",placeholders:[e.providerName]},type:"danger",acceptButtonText:this.i18nService.t("close"),cancelButtonText:null});break;case"add_payment_method":(yield this.dialogService.openSimpleDialog({title:this.i18nService.t("suspendedOrganizationTitle",e.name),content:{key:"suspendedOwnerOrgMessage"},type:"danger",acceptButtonText:this.i18nService.t("continue"),cancelButtonText:this.i18nService.t("close")}))&&(yield this.router.navigate(["organizations",`${e.id}`,"billing","payment-details"],{state:{launchPaymentModalAutomatically:!0}}));break;case"resubscribe":{const t=yield this.organizationApiService.getSubscription(e.id),i=(0,et.IO)(this.dialogService,{data:{organizationId:e.id,subscription:t,productTierType:e.productTierType}});yield(0,c.s)(i.closed);break}case"contact_owner":yield this.dialogService.openSimpleDialog({title:this.i18nService.t("suspendedOrganizationTitle",e.name),content:{key:"suspendedUserOrgMessage"},type:"danger",acceptButtonText:this.i18nService.t("close"),cancelButtonText:null})}}))),this.showSubscribeBeforeFreeTrialEndsDialog$=e=>this.getWarning$(e,e=>e.freeTrial).pipe((0,d.p)(e=>null!==e),(0,o.n)(()=>rt(this,void 0,void 0,function*(){const t=yield(0,u._)(this.accountService.activeAccount$);if(!t)return;const i=yield(0,u._)(this.stateProvider.getUserState$(ot,t.id));if(null==i?void 0:i[e.id])return;const n=yield this.organizationApiService.getSubscription(e.id),r=_e.open(this.dialogService,{data:{organizationId:e.id,subscription:n,productTierType:null==e?void 0:e.productTierType}});if((yield(0,c.s)(r.closed))===$e.SUBMITTED)this.refreshFreeTrialWarningTrigger.next();else try{yield this.stateProvider.getUser(t.id,ot).update(t=>Object.assign(Object.assign({},null!=t?t:{}),{[e.id]:!0}))}catch(s){this.logService.error("Failed to save trial payment modal dismissal state:",s)}}))),this.readThroughWarnings$=(e,t=!1)=>{const i=e.id,n=this.cache$.get(i);if(n&&!t)return n;const r=(0,h.H)(this.organizationBillingClient.getWarnings(i));return this.cache$.set(i,r),r},this.getWarning$=(e,t,i=!1)=>this.platformUtilsService.isSelfHost()?(0,A.of)(null):this.readThroughWarnings$(e,i).pipe((0,a.T)(e=>{const i=t(e);return i||null}),(0,p.s)(1))}}at.ɵfac=function(e){return new(e||at)(f.KVO(tt.o),f.KVO(U.W),f.KVO(O.X),f.KVO(m.cK),f.KVO(it.y),f.KVO(nt.Ix),f.KVO(N.D),f.KVO(g.K),f.KVO(v.v2))},at.ɵprov=f.jDH({token:at,factory:at.ɵfac,providedIn:"root"})},34923(e,t,i){"use strict";i.d(t,{c3:()=>Q,kx:()=>k,vU:()=>R});var n=i(84210),r=i(87806),s=i(69783),o=i(34949),a=i(29236),l=i(47438),c=i(25065),d=i(14055),u=i(14041),h=i(50700),A=i(86226),p=i(93199),g=i(19934),v=i(43759),m=i(33886),f=i(68923),y=i(46758),b=i(25740),C=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i};const I=(e,t)=>t.value;function w(e,t){if(1&e&&u.nrm(0,"bit-option",5),2&e){const e=t.$implicit;u.Y8G("value",e.value)("disabled",e.disabled)("label",e.name)}}function B(e,t){if(1&e&&(u.j41(0,"div",2)(1,"bit-form-field",3)(2,"bit-label"),u.EFF(3),u.nI1(4,"i18n"),u.k0s(),u.nrm(5,"input",8),u.k0s()(),u.j41(6,"div",2)(7,"bit-form-field",3)(8,"bit-label"),u.EFF(9),u.nI1(10,"i18n"),u.k0s(),u.nrm(11,"input",9),u.k0s()(),u.j41(12,"div",2)(13,"bit-form-field",3)(14,"bit-label"),u.EFF(15),u.nI1(16,"i18n"),u.k0s(),u.nrm(17,"input",10),u.k0s()(),u.j41(18,"div",2)(19,"bit-form-field",3)(20,"bit-label"),u.EFF(21),u.nI1(22,"i18n"),u.k0s(),u.nrm(23,"input",11),u.k0s()()),2&e){const e=u.XpG();u.R7$(),u.Y8G("disableMargin",!0),u.R7$(2),u.JRh(u.bMT(4,12,"address1")),u.R7$(2),u.Y8G("formControl",e.group.controls.line1),u.R7$(2),u.Y8G("disableMargin",!0),u.R7$(2),u.JRh(u.bMT(10,14,"address2")),u.R7$(2),u.Y8G("formControl",e.group.controls.line2),u.R7$(2),u.Y8G("disableMargin",!0),u.R7$(2),u.JRh(u.bMT(16,16,"cityTown")),u.R7$(2),u.Y8G("formControl",e.group.controls.city),u.R7$(2),u.Y8G("disableMargin",!0),u.R7$(2),u.JRh(u.bMT(22,18,"stateProvince")),u.R7$(2),u.Y8G("formControl",e.group.controls.state)}}function E(e,t){if(1&e&&(u.j41(0,"bit-hint"),u.nrm(1,"i",13),u.EFF(2),u.k0s()),2&e){u.XpG();const e=u.r8f(6);u.R7$(),u.Y8G("title",u.mNQ(e)),u.R7$(),u.JRh(e)}}function S(e,t){if(1&e&&(u.j41(0,"div",7)(1,"bit-form-field",3)(2,"bit-label"),u.EFF(3),u.nI1(4,"i18n"),u.k0s(),u.nrm(5,"input",12),u.SS7(6),u.nVh(7,E,3,3,"bit-hint"),u.k0s()()),2&e){const e=u.XpG();u.R7$(),u.Y8G("disableMargin",!0),u.R7$(2),u.JRh(u.bMT(4,4,"taxIdNumber")),u.R7$(2),u.Y8G("formControl",e.group.controls.taxId),u.R7$();const t=u.bH3(e.taxIdWarningHint);u.R7$(),u.vxM(t?7:-1)}}const Q=e=>k(e.getRawValue()),k=e=>{const{taxId:t}=e,i=C(e,["taxId"]),n=t?(0,d.i5)(i.country):null;return n?Object.assign(Object.assign({},i),{taxId:{code:n.code,value:t}}):Object.assign(Object.assign({},i),{taxId:null})};class R{constructor(e){this.i18nService=e,this.selectableCountries=d.Lx,this.destroy$=new r.B,this.disableAddressControls=()=>{this.group.controls.line1.disable(),this.group.controls.line2.disable(),this.group.controls.city.disable(),this.group.controls.state.disable()}}ngOnInit(){var e,t;switch(this.scenario.type){case"checkout":this.disableAddressControls();break;case"update":this.scenario.existing&&this.group.patchValue(Object.assign(Object.assign({},this.scenario.existing),{taxId:null===(e=this.scenario.existing.taxId)||void 0===e?void 0:e.value}))}this.supportsTaxId$=this.group.controls.country.valueChanges.pipe((0,o.Z)(null!==(t=this.group.value.country)&&void 0!==t?t:this.selectableCountries[0].value),(0,s.T)(e=>!(!this.scenario.supportsTaxId||"US"===e)&&d.qk.filter(t=>t.iso===e).length>0)),this.supportsTaxId$.pipe((0,a.Q)(this.destroy$)).subscribe(e=>{e?this.group.controls.taxId.enable():this.group.controls.taxId.disable()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}get taxIdWarningHint(){if("checkout"===this.scenario.type||!this.scenario.supportsTaxId||!this.group.value.country||this.scenario.taxIdWarning!==l.e.FailedVerification)return null;const e=(0,d.i5)(this.group.value.country);if(!e)return null;const t=this.i18nService.t("checkInputFormat");switch(e.code){case"au_abn":return`${t} ${this.i18nService.t("exampleTaxIdFormat","ABN",e.example)}`;case"eu_vat":return`${t} ${this.i18nService.t("exampleTaxIdFormat","EU VAT",e.example)}`;case"gb_vat":return`${t} ${this.i18nService.t("exampleTaxIdFormat","GB VAT",e.example)}`}}}R.getFormGroup=()=>new n.gE({country:new n.MJ("",{nonNullable:!0,validators:[n.k0.required]}),postalCode:new n.MJ("",{nonNullable:!0,validators:[n.k0.required]}),line1:new n.MJ(null),line2:new n.MJ(null),city:new n.MJ(null),state:new n.MJ(null),taxId:new n.MJ(null)}),R.ɵfac=function(e){return new(e||R)(u.rXU(h.W))},R.ɵcmp=u.VBU({type:R,selectors:[["app-enter-billing-address"]],inputs:{scenario:"scenario",group:"group"},decls:19,vars:15,consts:[[3,"formGroup"],[1,"tw-grid","tw-grid-cols-12","tw-gap-4"],[1,"tw-col-span-6"],[3,"disableMargin"],["data-testid","country",3,"formControl"],[3,"value","disabled","label"],["bitInput","","type","text","autocomplete","postal-code","data-testid","postal-code",3,"formControl"],[1,"tw-col-span-12"],["bitInput","","type","text","autocomplete","address-line1","data-testid","address-line1",3,"formControl"],["bitInput","","type","text","autocomplete","address-line2","data-testid","address-line2",3,"formControl"],["bitInput","","type","text","autocomplete","address-level2","data-testid","city",3,"formControl"],["bitInput","","type","text","autocomplete","address-level1","data-testid","state",3,"formControl"],["bitInput","","type","text","data-testid","tax-id",3,"formControl"],["aria-hidden","true",1,"bwi","bwi-exclamation-triangle","tw-mr-1",3,"title"]],template:function(e,t){1&e&&(u.j41(0,"form",0)(1,"div",1)(2,"div",2)(3,"bit-form-field",3)(4,"bit-label"),u.EFF(5),u.nI1(6,"i18n"),u.k0s(),u.j41(7,"bit-select",4),u.Z7z(8,w,1,3,"bit-option",5,I),u.k0s()()(),u.j41(10,"div",2)(11,"bit-form-field",3)(12,"bit-label"),u.EFF(13),u.nI1(14,"i18n"),u.k0s(),u.nrm(15,"input",6),u.k0s()(),u.nVh(16,B,24,20),u.nVh(17,S,8,7,"div",7),u.nI1(18,"async"),u.k0s()()),2&e&&(u.Y8G("formGroup",t.group),u.R7$(3),u.Y8G("disableMargin",!0),u.R7$(2),u.JRh(u.bMT(6,9,"country")),u.R7$(2),u.Y8G("formControl",t.group.controls.country),u.R7$(),u.Dyx(t.selectableCountries),u.R7$(3),u.Y8G("disableMargin",!0),u.R7$(2),u.JRh(u.bMT(14,11,"zipPostalCodeLabel")),u.R7$(2),u.Y8G("formControl",t.group.controls.postalCode),u.R7$(),u.vxM("update"===t.scenario.type?16:-1),u.R7$(),u.vxM(u.bMT(18,13,t.supportsTaxId$)?17:-1))},dependencies:[c.G,n.qT,n.me,n.BC,n.cb,n.l_,n.j4,A.j,p.I,g.J,v.h,m.w,f.P,y.Jj,b.$],encapsulation:2})},21587(e,t,i){"use strict";i.d(t,{P:()=>K});var n=i(24590),r=i(84210),s=i(87806),o=i(83604),a=i(69783),l=i(34949),c=i(29236),d=i(56962),u=i(78781),h=i(79783),A=i(25065),p=i(23101),g=i(14055),v=i(32287),m=i(14041),f=i(50700),y=i(69855),b=i(62044),C=i(63581),I=i(44432),w=i(86226),B=i(42016),E=i(19934),S=i(43759),Q=i(24374),k=i(33886),R=i(68923),F=i(58806),T=i(46758),D=i(25740),P=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const M=(e,t)=>t.value;function x(e,t){1&e&&(m.j41(0,"h5",2),m.EFF(1),m.nI1(2,"i18n"),m.k0s()),2&e&&(m.R7$(),m.JRh(m.bMT(2,1,"paymentMethod")))}function V(e,t){1&e&&(m.j41(0,"bit-radio-button",7)(1,"bit-label"),m.nrm(2,"i",11),m.EFF(3),m.nI1(4,"i18n"),m.k0s()()),2&e&&(m.Y8G("value","bankAccount"),m.R7$(3),m.SpI(" ",m.bMT(4,2,"bankAccount")," "))}function G(e,t){1&e&&(m.j41(0,"bit-radio-button",8)(1,"bit-label"),m.nrm(2,"i",12),m.EFF(3),m.nI1(4,"i18n"),m.k0s()()),2&e&&(m.Y8G("value","payPal"),m.R7$(3),m.SpI(" ",m.bMT(4,2,"payPal")," "))}function U(e,t){1&e&&(m.j41(0,"bit-radio-button",9)(1,"bit-label"),m.nrm(2,"i",13),m.EFF(3),m.nI1(4,"i18n"),m.k0s()()),2&e&&(m.Y8G("value","accountCredit"),m.R7$(3),m.SpI(" ",m.bMT(4,2,"accountCredit")," "))}function O(e,t){if(1&e&&(m.j41(0,"div",10)(1,"div",14)(2,"app-payment-label",15),m.EFF(3),m.nI1(4,"i18n"),m.k0s(),m.nrm(5,"div",16),m.k0s(),m.j41(6,"div",17),m.nrm(7,"img",18),m.k0s(),m.j41(8,"div",14)(9,"app-payment-label",15),m.EFF(10),m.nI1(11,"i18n"),m.k0s(),m.nrm(12,"div",16),m.k0s(),m.j41(13,"div",14)(14,"app-payment-label",15),m.EFF(15),m.nI1(16,"i18n"),m.j41(17,"button",19),m.nrm(18,"i",20),m.k0s(),m.j41(19,"bit-popover",21,0),m.nI1(21,"i18n"),m.j41(22,"p",22),m.EFF(23),m.nI1(24,"i18n"),m.k0s()()(),m.nrm(25,"div",16),m.k0s()()),2&e){const e=m.sdS(20),t=m.XpG();m.R7$(2),m.Y8G("for","stripe-card-number-"+t.instanceId),m.R7$(),m.SpI(" ",m.bMT(4,13,"cardNumberLabel")," "),m.R7$(2),m.Y8G("id","stripe-card-number-"+t.instanceId),m.R7$(4),m.Y8G("for","stripe-card-expiry-"+t.instanceId),m.R7$(),m.SpI(" ",m.bMT(11,15,"expiration")," "),m.R7$(2),m.Y8G("id","stripe-card-expiry-"+t.instanceId),m.R7$(2),m.Y8G("for","stripe-card-cvc-"+t.instanceId),m.R7$(),m.SpI(" ",m.bMT(16,17,"securityCodeSlashCVV")," "),m.R7$(2),m.Y8G("bitPopoverTriggerFor",e)("position","above-end"),m.R7$(2),m.Y8G("title",m.bMT(21,19,"cardSecurityCode")),m.R7$(4),m.JRh(m.bMT(24,21,"cardSecurityCodeDescription")),m.R7$(2),m.Y8G("id","stripe-card-cvc-"+t.instanceId)}}function N(e,t){if(1&e&&(m.qex(0),m.j41(1,"bit-callout",23),m.nI1(2,"i18n"),m.EFF(3),m.nI1(4,"i18n"),m.k0s(),m.j41(5,"div",24)(6,"bit-form-field",25)(7,"bit-label"),m.EFF(8),m.nI1(9,"i18n"),m.k0s(),m.nrm(10,"input",26),m.k0s(),m.j41(11,"bit-form-field",25)(12,"bit-label"),m.EFF(13),m.nI1(14,"i18n"),m.k0s(),m.nrm(15,"input",27),m.k0s(),m.j41(16,"bit-form-field",25)(17,"bit-label"),m.EFF(18),m.nI1(19,"i18n"),m.k0s(),m.nrm(20,"input",28),m.k0s(),m.j41(21,"bit-form-field",25)(22,"bit-label"),m.EFF(23),m.nI1(24,"i18n"),m.k0s(),m.j41(25,"bit-select",29),m.nrm(26,"bit-option",30),m.nI1(27,"i18n"),m.nrm(28,"bit-option",30),m.nI1(29,"i18n"),m.nrm(30,"bit-option",30),m.nI1(31,"i18n"),m.k0s()()(),m.bVm()),2&e){const e=m.XpG();m.R7$(),m.Y8G("title",m.mNQ(m.bMT(2,24,"verifyBankAccount"))),m.R7$(2),m.SpI(" ",m.bMT(4,26,"requiredToVerifyBankAccountWithStripe")," "),m.R7$(3),m.Y8G("disableMargin",!0),m.R7$(2),m.JRh(m.bMT(9,28,"routingNumber")),m.R7$(2),m.Y8G("formControl",e.group().controls.bankAccount.controls.routingNumber),m.R7$(),m.Y8G("disableMargin",!0),m.R7$(2),m.JRh(m.bMT(14,30,"accountNumber")),m.R7$(2),m.Y8G("formControl",e.group().controls.bankAccount.controls.accountNumber),m.R7$(),m.Y8G("disableMargin",!0),m.R7$(2),m.JRh(m.bMT(19,32,"accountHolderName")),m.R7$(2),m.Y8G("formControl",e.group().controls.bankAccount.controls.accountHolderName),m.R7$(),m.Y8G("disableMargin",!0),m.R7$(2),m.JRh(m.bMT(24,34,"bankAccountType")),m.R7$(2),m.Y8G("formControl",e.group().controls.bankAccount.controls.accountHolderType),m.R7$(),m.Y8G("label",m.VkB("-- ",m.bMT(27,36,"select")," --"))("value",""),m.R7$(2),m.Y8G("label",m.mNQ(m.bMT(29,38,"bankAccountTypeCompany")))("value","company"),m.R7$(2),m.Y8G("label",m.mNQ(m.bMT(31,40,"bankAccountTypeIndividual")))("value","individual")}}function j(e,t){1&e&&(m.qex(0),m.j41(1,"div",31),m.nrm(2,"div",32),m.j41(3,"small",33),m.EFF(4),m.nI1(5,"i18n"),m.k0s()(),m.bVm()),2&e&&(m.R7$(4),m.JRh(m.bMT(5,1,"paypalClickSubmit")))}function Y(e,t){1&e&&(m.j41(0,"bit-callout",34),m.EFF(1),m.nI1(2,"i18n"),m.k0s()),2&e&&(m.R7$(),m.SpI(" ",m.bMT(2,1,"makeSureEnoughCredit")," "))}function X(e,t){1&e&&(m.j41(0,"bit-callout",35),m.EFF(1),m.nI1(2,"i18n"),m.k0s()),2&e&&(m.R7$(),m.SpI(" ",m.bMT(2,1,"notEnoughAccountCredit")," "))}function z(e,t){if(1&e&&(m.qex(0),m.nVh(1,Y,3,3,"bit-callout",34)(2,X,3,3,"bit-callout",35),m.bVm()),2&e){const e=m.XpG();m.R7$(),m.vxM(e.hasEnoughAccountCredit()?1:2)}}function L(e,t){if(1&e&&m.nrm(0,"bit-option",40),2&e){const e=t.$implicit;m.Y8G("value",e.value)("disabled",e.disabled)("label",e.name)}}function W(e,t){if(1&e&&(m.j41(0,"h5",36),m.EFF(1),m.nI1(2,"i18n"),m.k0s(),m.j41(3,"div",37)(4,"div",38)(5,"bit-form-field",39)(6,"bit-label"),m.EFF(7),m.nI1(8,"i18n"),m.k0s(),m.j41(9,"bit-select",4),m.Z7z(10,L,1,3,"bit-option",40,M),m.k0s()()(),m.j41(12,"div",38)(13,"bit-form-field",39)(14,"bit-label"),m.EFF(15),m.nI1(16,"i18n"),m.k0s(),m.nrm(17,"input",41),m.k0s()()()),2&e){const e=m.XpG();m.R7$(),m.JRh(m.bMT(2,7,"billingAddress")),m.R7$(4),m.Y8G("disableMargin",!0),m.R7$(2),m.JRh(m.bMT(8,9,"country")),m.R7$(2),m.Y8G("formControl",e.group().controls.billingAddress.controls.country),m.R7$(),m.Dyx(e.selectableCountries),m.R7$(3),m.Y8G("disableMargin",!0),m.R7$(2),m.JRh(m.bMT(16,11,"zipPostalCodeLabel")),m.R7$(2),m.Y8G("formControl",e.group().controls.billingAddress.controls.postalCode)}}class K{constructor(e,t,i,r,o){this.braintreeService=e,this.i18nService=t,this.logService=i,this.stripeService=r,this.toastService=o,this.instanceId=u.A.newGuid(),this.group=n.hFB.required(),this.showBankAccount=(0,n.hFB)(!0),this.showPayPal=(0,n.hFB)(!0),this.showAccountCredit=(0,n.hFB)(!1),this.hasEnoughAccountCredit=(0,n.hFB)(!0),this.includeBillingAddress=(0,n.hFB)(!1),this.selectableCountries=g.Lx,this.destroy$=new s.B,this.select=e=>this.group().controls.type.patchValue(e),this.tokenize=()=>P(this,void 0,void 0,function*(){const e=e=>P(this,void 0,void 0,function*(){switch(e){case"bankAccount":{if(this.group().controls.bankAccount.markAllAsTouched(),!this.group().controls.bankAccount.valid)throw new Error("Attempted to tokenize invalid bank account information.");const e=this.group().controls.bankAccount.getRawValue(),t=yield this.stripeService.createSetupIntent("bankAccount"),i=this.group().controls.billingAddress.enabled?this.group().controls.billingAddress.getRawValue():void 0;return yield this.stripeService.setupBankAccountPaymentMethod(t,e,i)}case"card":{const e=yield this.stripeService.createSetupIntent("card"),t=this.group().controls.billingAddress.enabled?this.group().controls.billingAddress.getRawValue():void 0;return this.stripeService.setupCardPaymentMethod(this.instanceId,e,t)}case"payPal":return this.braintreeService.requestPaymentMethod()}});if(!(0,g.w$)(this.selected))throw new Error(`Attempted to tokenize a non-tokenizable payment method: ${this.selected}`);try{const t=yield e(this.selected);return{type:this.selected,token:t}}catch(t){if(t){switch(this.logService.error(t),this.selected){case"card":return"object"==typeof t&&"message"in t&&"string"==typeof t.message&&this.toastService.showToast({variant:"error",title:"",message:t.message}),null;case"payPal":if("string"==typeof t&&"No payment method is available."===t)return this.toastService.showToast({variant:"error",title:"",message:this.i18nService.t("clickPayWithPayPal")}),null}throw t}return null}}),this.validate=()=>"bankAccount"!==this.selected||(this.group().controls.bankAccount.markAllAsTouched(),this.group().controls.bankAccount.valid)}ngOnInit(){this.stripeService.loadStripe(this.instanceId,{cardNumber:`#stripe-card-number-${this.instanceId}`,cardExpiry:`#stripe-card-expiry-${this.instanceId}`,cardCvc:`#stripe-card-cvc-${this.instanceId}`},!0),this.showPayPal()&&this.braintreeService.loadBraintree("#braintree-container",!1),this.includeBillingAddress()?(this.group().controls.billingAddress.patchValue({country:"US"}),this.showBankAccount$=this.group().controls.billingAddress.controls.country.valueChanges.pipe((0,l.Z)(this.group().controls.billingAddress.controls.country.value),(0,a.T)(e=>this.showBankAccount()&&"US"===e))):(this.showBankAccount$=(0,o.of)(this.showBankAccount()),this.group().controls.billingAddress.disable()),this.group().controls.type.valueChanges.pipe((0,l.Z)(this.group().controls.type.value),(0,c.Q)(this.destroy$)).subscribe(e=>{if("bankAccount"===e)this.group().controls.bankAccount.enable(),this.includeBillingAddress()&&this.group().controls.billingAddress.enable();else{switch(e){case"card":this.stripeService.mountElements(this.instanceId),this.includeBillingAddress()&&this.group().controls.billingAddress.enable();break;case"payPal":this.braintreeService.createDropin(),this.includeBillingAddress()&&this.group().controls.billingAddress.disable()}this.group().controls.bankAccount.disable()}}),this.showBankAccount$.pipe((0,c.Q)(this.destroy$)).subscribe(e=>{e||"bankAccount"!==this.selected||this.select("card")})}ngOnDestroy(){this.stripeService.unloadStripe(this.instanceId),this.destroy$.next(),this.destroy$.complete()}get selected(){return this.group().value.type}}K.getFormGroup=()=>new r.gE({type:new r.MJ("card",{nonNullable:!0}),bankAccount:new r.gE({routingNumber:new r.MJ("",{nonNullable:!0,validators:[r.k0.required]}),accountNumber:new r.MJ("",{nonNullable:!0,validators:[r.k0.required]}),accountHolderName:new r.MJ("",{nonNullable:!0,validators:[r.k0.required]}),accountHolderType:new r.MJ("",{nonNullable:!0,validators:[r.k0.required]})}),billingAddress:new r.gE({country:new r.MJ("",{nonNullable:!0,validators:[r.k0.required]}),postalCode:new r.MJ("",{nonNullable:!0,validators:[r.k0.required]})})}),K.ɵfac=function(e){return new(e||K)(m.rXU(p.qb),m.rXU(f.W),m.rXU(d.K),m.rXU(p.d$),m.rXU(y.f))},K.ɵcmp=m.VBU({type:K,selectors:[["app-enter-payment-method"]],inputs:{group:[1,"group"],showBankAccount:[1,"showBankAccount"],showPayPal:[1,"showPayPal"],showAccountCredit:[1,"showAccountCredit"],hasEnoughAccountCredit:[1,"hasEnoughAccountCredit"],includeBillingAddress:[1,"includeBillingAddress"]},decls:18,vars:14,consts:[["cardSecurityCodePopover",""],[3,"formGroup"],["bitTypography","h5"],[1,"tw-mb-4","tw-text-lg"],[3,"formControl"],["id","card-payment-method",3,"value"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-credit-card"],["id","bank-payment-method",3,"value"],["id","paypal-payment-method",3,"value"],["id","credit-payment-method",3,"value"],[1,"tw-grid","tw-grid-cols-2","tw-gap-4","tw-mb-4"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-billing"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-paypal"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-dollar"],[1,"tw-col-span-1"],["required","",3,"for"],[1,"tw-stripe-form-control",3,"id"],[1,"tw-col-span-1","tw-flex","tw-items-end"],["src","../../../images/cards.png","alt","Visa, MasterCard, Discover, AmEx, JCB, Diners Club, UnionPay",1,"tw-max-w-full"],["type","button",1,"tw-border-none","tw-bg-transparent","tw-text-primary-600","tw-pr-1",3,"bitPopoverTriggerFor","position"],["aria-hidden","true",1,"bwi","bwi-question-circle","tw-text-sm"],[3,"title"],[1,"tw-mb-0"],["type","warning",3,"title"],["formGroupName","bankAccount",1,"tw-grid","tw-grid-cols-2","tw-gap-4","tw-mb-4"],[1,"tw-col-span-1",3,"disableMargin"],["bitInput","","id","routingNumber","type","text","required","",3,"formControl"],["bitInput","","id","accountNumber","type","text","required","",3,"formControl"],["id","accountHolderName","bitInput","","type","text","required","",3,"formControl"],["id","accountHolderType","required","",3,"formControl"],[3,"value","label"],[1,"tw-mb-3"],["id","braintree-container",1,"tw-mb-1","tw-content-center"],[1,"tw-text-muted"],["type","info"],["type","warning"],["bitTypography","h5",1,"tw-pt-4"],[1,"tw-grid","tw-grid-cols-12","tw-gap-4"],[1,"tw-col-span-6"],[3,"disableMargin"],[3,"value","disabled","label"],["bitInput","","type","text","autocomplete","postal-code",3,"formControl"]],template:function(e,t){if(1&e&&(m.j41(0,"form",1),m.nVh(1,x,3,3,"h5",2),m.j41(2,"div",3)(3,"bit-radio-group",4)(4,"bit-radio-button",5)(5,"bit-label"),m.nrm(6,"i",6),m.EFF(7),m.nI1(8,"i18n"),m.k0s()(),m.nVh(9,V,5,4,"bit-radio-button",7),m.nI1(10,"async"),m.nVh(11,G,5,4,"bit-radio-button",8),m.nVh(12,U,5,4,"bit-radio-button",9),m.k0s()(),m.nVh(13,O,26,23,"div",10)(14,N,32,42,"ng-container")(15,j,6,3,"ng-container")(16,z,3,1,"ng-container"),m.nVh(17,W,18,13),m.k0s()),2&e){let e;const i=t.includeBillingAddress()&&"payPal"!==t.selected;m.Y8G("formGroup",t.group()),m.R7$(),m.vxM(i?1:-1),m.R7$(2),m.Y8G("formControl",t.group().controls.type),m.R7$(),m.Y8G("value","card"),m.R7$(3),m.SpI(" ",m.bMT(8,10,"creditCard")," "),m.R7$(2),m.vxM(m.bMT(10,12,t.showBankAccount$)?9:-1),m.R7$(2),m.vxM(t.showPayPal()?11:-1),m.R7$(),m.vxM(t.showAccountCredit()?12:-1),m.R7$(),m.vxM("card"===(e=t.selected)?13:"bankAccount"===e?14:"payPal"===e?15:"accountCredit"===e?16:-1),m.R7$(4),m.vxM(i?17:-1)}},dependencies:[p.IJ,v.m,h.k,b.r,C.k,A.G,r.qT,r.me,r.BC,r.cb,r.YS,r.l_,r.j4,r.$R,I.G,w.j,B.W,E.J,S.h,Q.d,k.w,R.P,F.r,T.Jj,D.$],encapsulation:2,changeDetection:0})},81098(e,t,i){"use strict";i.d(t,{tD:()=>V,I$:()=>j,M0:()=>le,H8:()=>Ne,Ww:()=>ke,ve:()=>$,vU:()=>W.vU,Pu:()=>D.P,kx:()=>W.kx,c3:()=>W.c3});var n=i(88744),r=i(14041),s=i(84210),o=i(69783),a=i(9327),l=i(25065),c=i(1601),d=i(44075),u=i(69855),h=i(50700),A=i(37115),p=i(26657),g=i(38620),v=i(56898),m=i(7730),f=i(45635),y=i(67311),b=i(86226),C=i(42016),I=i(19934),w=i(43759),B=i(89757),E=i(24374),S=i(58806),Q=i(46758),k=i(25740),R=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const F=["payPalForm"];class T{constructor(e,t,i,n,r,a,l){var c;this.billingClient=e,this.configService=t,this.dialogParams=i,this.dialogRef=n,this.i18nService=r,this.platformUtilsService=a,this.toastService=l,this.payPalConfig={},this.redirectUrl=window.location.href,this.formGroup=new s.gE({paymentMethod:new s.MJ("payPal"),amount:new s.MJ("0.00",[s.k0.required,(c=this.i18nService.t("mustBePositiveNumber"),e=>{if(!e.value)return null;const t=parseFloat(e.value);return isNaN(t)||t<=0?{notPositiveNumber:{message:c}}:null})])}),this.payPalCustom$=this.configService.cloudRegion$.pipe((0,o.T)(e=>{switch(this.dialogParams.subscriber.type){case"account":return`user_id:${this.dialogParams.subscriber.data.id},account_credit:1,region:${e}`;case"organization":return`organization_id:${this.dialogParams.subscriber.data.id},account_credit:1,region:${e}`;case"provider":return`provider_id:${this.dialogParams.subscriber.data.id},account_credit:1,region:${e}`}})),this.submit=()=>R(this,void 0,void 0,function*(){if(this.formGroup.markAllAsTouched(),this.formGroup.valid){if("bitPay"===this.formGroup.value.paymentMethod){const e=yield this.billingClient.addCreditWithBitPay(this.dialogParams.subscriber,{amount:this.amount,redirectUrl:this.redirectUrl});switch(e.type){case"success":this.platformUtilsService.launchUri(e.value),yield this.dialogRef.close("launched");break;case"error":this.toastService.showToast({variant:"error",title:"",message:e.message}),yield this.dialogRef.close("error")}}this.payPalForm.nativeElement.submit(),yield this.dialogRef.close("launched")}}),this.formatAmount=()=>{if(this.formGroup.value.amount){const e=parseFloat(this.formGroup.value.amount);isNaN(e)?this.formGroup.controls.amount.setValue(null):this.formGroup.controls.amount.setValue(e.toFixed(2).toString())}}}get amount(){if(this.formGroup.value.amount){const e=parseFloat(this.formGroup.value.amount);return isNaN(e)?null:e}return null}get payPalSubject(){switch(this.dialogParams.subscriber.type){case"account":return this.dialogParams.subscriber.data.email;case"organization":case"provider":return this.dialogParams.subscriber.data.name}}}T.open=(e,t)=>e.open(T,t),T.ɵfac=function(e){return new(e||T)(r.rXU(a.Hd),r.rXU(c.w),r.rXU(n.Qs),r.rXU(d.ce),r.rXU(h.W),r.rXU(A.y),r.rXU(u.f))},T.ɵcmp=r.VBU({type:T,selectors:[["ng-component"]],viewQuery:function(e,t){if(1&e&&r.GBs(F,7,r.aKT),2&e){let e;r.mGM(e=r.lsd())&&(t.payPalForm=e.first)}},decls:51,vars:38,consts:[["payPalForm",""],["bit-dialog","",3,"formGroup","bitSubmit"],["bitDialogTitle","",1,"tw-font-medium"],["bitDialogContent",""],["bitTypography","body1"],[1,"tw-grid","tw-grid-cols-2"],[3,"formControl"],["id","credit-method-paypal",3,"value"],[1,"bwi","bwi-paypal"],["id","credit-method-bitcoin",3,"value"],[1,"bwi","bwi-bitcoin"],["bitInput","","type","text","required","",3,"blur","formControl"],["bitPrefix",""],["bitDialogFooter",""],["type","submit","bitButton","","bitFormButton","","buttonType","primary"],["type","button","bitButton","","bitFormButton","","buttonType","secondary",3,"bitDialogClose"],["method","post","target","_top",3,"action"],["type","hidden","name","cmd","value","_xclick"],["type","hidden","name","business",3,"value"],["type","hidden","name","button_subtype","value","services"],["type","hidden","name","no_note","value","1"],["type","hidden","name","no_shipping","value","1"],["type","hidden","name","rm","value","1"],["type","hidden","name","return",3,"value"],["type","hidden","name","cancel_return",3,"value"],["type","hidden","name","currency_code","value","USD"],["type","hidden","name","image_url","value","https://bitwarden.com/images/paypal-banner.png"],["type","hidden","name","bn","value","PP-BuyNowBF:btn_buynow_LG.gif:NonHosted"],["type","hidden","name","amount",3,"value"],["type","hidden","name","custom",3,"value"],["type","hidden","name","item_name","value","Bitwarden Account Credit"],["type","hidden","name","item_number",3,"value"]],template:function(e,t){1&e&&(r.j41(0,"form",1)(1,"span",2),r.EFF(2),r.nI1(3,"i18n"),r.k0s(),r.j41(4,"div",3)(5,"p",4),r.EFF(6),r.nI1(7,"i18n"),r.k0s(),r.j41(8,"div",5)(9,"bit-radio-group",6)(10,"bit-radio-button",7)(11,"bit-label"),r.nrm(12,"i",8),r.EFF(13,"PayPal"),r.k0s()(),r.j41(14,"bit-radio-button",9)(15,"bit-label"),r.nrm(16,"i",10),r.EFF(17,"Bitcoin"),r.k0s()()()(),r.j41(18,"div",5)(19,"bit-form-field")(20,"bit-label"),r.EFF(21),r.nI1(22,"i18n"),r.k0s(),r.j41(23,"input",11),r.bIt("blur",function(){return t.formatAmount()}),r.k0s(),r.j41(24,"span",12),r.EFF(25,"$USD"),r.k0s()()()(),r.qex(26,13),r.j41(27,"button",14),r.EFF(28),r.nI1(29,"i18n"),r.k0s(),r.j41(30,"button",15),r.EFF(31),r.nI1(32,"i18n"),r.k0s(),r.bVm(),r.k0s(),r.j41(33,"form",16,0),r.nrm(35,"input",17)(36,"input",18)(37,"input",19)(38,"input",20)(39,"input",21)(40,"input",22)(41,"input",23)(42,"input",24)(43,"input",25)(44,"input",26)(45,"input",27)(46,"input",28)(47,"input",29),r.nI1(48,"async"),r.nrm(49,"input",30)(50,"input",31),r.k0s()),2&e&&(r.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit),r.R7$(2),r.SpI(" ",r.bMT(3,26,"addCredit")," "),r.R7$(4),r.JRh(r.bMT(7,28,"creditDelayed")),r.R7$(3),r.Y8G("formControl",t.formGroup.controls.paymentMethod),r.R7$(),r.Y8G("value","payPal"),r.R7$(4),r.Y8G("value","bitPay"),r.R7$(7),r.JRh(r.bMT(22,30,"amount")),r.R7$(2),r.Y8G("formControl",t.formGroup.controls.amount),r.R7$(5),r.SpI(" ",r.bMT(29,32,"submit")," "),r.R7$(2),r.Y8G("bitDialogClose","cancelled"),r.R7$(),r.SpI(" ",r.bMT(32,34,"cancel")," "),r.R7$(2),r.Y8G("action",r.mNQ(t.payPalConfig.buttonAction),r.B4B),r.R7$(3),r.Y8G("value",r.mNQ(t.payPalConfig.businessId)),r.R7$(5),r.Y8G("value",r.mNQ(t.redirectUrl)),r.R7$(),r.Y8G("value",r.mNQ(t.redirectUrl)),r.R7$(4),r.Y8G("value",r.mNQ(t.amount)),r.R7$(),r.Y8G("value",r.mNQ(r.bMT(48,36,t.payPalCustom$))),r.R7$(3),r.Y8G("value",r.mNQ(t.payPalSubject)))},dependencies:[l.G,s.qT,s.me,s.BC,s.cb,s.YS,s.cV,s.l_,s.j4,p.$,g.L,v.Q,m.I,f.m,y.hJ,b.j,C.W,I.J,w.h,B.Z,E.d,S.r,Q.Jj,k.$],encapsulation:2});var D=i(21587),P=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class M{constructor(e,t,i,n){this.billingClient=e,this.dialogRef=t,this.i18nService=i,this.toastService=n,this.formGroup=D.P.getFormGroup(),this.submit=()=>P(this,void 0,void 0,function*(){if(this.formGroup.markAllAsTouched(),!this.formGroup.valid)return;const e=yield this.enterPaymentMethodComponent.tokenize();if(!e)return;const t="payPal"!==this.formGroup.value.type?this.formGroup.controls.billingAddress.getRawValue():null,i=yield this.billingClient.updatePaymentMethod(this.subscriber,e,t);switch(i.type){case"success":this.toastService.showToast({variant:"success",title:"",message:this.i18nService.t("paymentMethodUpdated")}),yield this.dialogRef.close({type:"success",paymentMethod:i.value});break;case"error":this.toastService.showToast({variant:"error",title:"",message:i.message}),yield this.dialogRef.close({type:"error"})}})}}M.ɵfac=function(e){return new(e||M)(r.rXU(a.Hd),r.rXU(d.ce),r.rXU(h.W),r.rXU(u.f))},M.ɵcmp=r.VBU({type:M,selectors:[["ng-component"]],viewQuery:function(e,t){if(1&e&&r.GBs(D.P,5),2&e){let e;r.mGM(e=r.lsd())&&(t.enterPaymentMethodComponent=e.first)}},decls:0,vars:0,template:function(e,t){},encapsulation:2});const x=()=>({type:"cancelled"});class V extends M{constructor(e,t,i,n,r){super(e,i,n,r),this.dialogParams=t,this.subscriber=this.dialogParams.subscriber}}V.open=(e,t)=>e.open(V,t),V.ɵfac=function(e){return new(e||V)(r.rXU(a.Hd),r.rXU(n.Qs),r.rXU(d.ce),r.rXU(h.W),r.rXU(u.f))},V.ɵcmp=r.VBU({type:V,selectors:[["ng-component"]],features:[r.Vt3],decls:13,vars:16,consts:[["bit-dialog","",3,"formGroup","bitSubmit"],["bitDialogTitle","",1,"tw-font-medium"],["bitDialogContent",""],[3,"group","showBankAccount","includeBillingAddress"],["bitDialogFooter",""],["bitButton","","bitFormButton","","buttonType","primary","type","submit"],["bitButton","","buttonType","secondary","type","button",3,"bitDialogClose"]],template:function(e,t){1&e&&(r.j41(0,"form",0)(1,"span",1),r.EFF(2),r.nI1(3,"i18n"),r.k0s(),r.j41(4,"div",2),r.nrm(5,"app-enter-payment-method",3),r.k0s(),r.qex(6,4),r.j41(7,"button",5),r.EFF(8),r.nI1(9,"i18n"),r.k0s(),r.j41(10,"button",6),r.EFF(11),r.nI1(12,"i18n"),r.k0s(),r.bVm(),r.k0s()),2&e&&(r.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit),r.R7$(2),r.SpI(" ",r.bMT(3,9,"changePaymentMethod")," "),r.R7$(3),r.Y8G("group",t.formGroup)("showBankAccount","account"!==t.dialogParams.subscriber.type)("includeBillingAddress",!0),r.R7$(3),r.SpI(" ",r.bMT(9,11,"save")," "),r.R7$(2),r.Y8G("bitDialogClose",r.lJ4(15,x)),r.R7$(),r.SpI(" ",r.bMT(12,13,"cancel")," "))},dependencies:[D.P,l.G,s.qT,s.cb,s.j4,p.$,g.L,v.Q,m.I,f.m,y.hJ,k.$],encapsulation:2});var G=i(66316),U=i(3892),O=i(88832),N=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class j{constructor(e,t,i,n){this.billingClient=e,this.dialogService=t,this.i18nService=i,this.toastService=n,this.addAccountCredit=()=>N(this,void 0,void 0,function*(){if("account"!==this.subscriber.type){(yield this.billingClient.getBillingAddress(this.subscriber))||this.toastService.showToast({variant:"error",title:"",message:this.i18nService.t("billingAddressRequiredToAddCredit")})}T.open(this.dialogService,{data:{subscriber:this.subscriber}})})}}j.ɵfac=function(e){return new(e||j)(r.rXU(a.Hd),r.rXU(G.o),r.rXU(h.W),r.rXU(u.f))},j.ɵcmp=r.VBU({type:j,selectors:[["app-display-account-credit"]],inputs:{subscriber:"subscriber",credit:"credit"},decls:11,vars:14,consts:[["bitTypography","h2"],["type","button","bitButton","","buttonType","secondary",3,"bitAction"]],template:function(e,t){var i;1&e&&(r.j41(0,"bit-section")(1,"h2",0),r.EFF(2),r.nI1(3,"i18n"),r.nI1(4,"currency"),r.k0s(),r.j41(5,"p"),r.EFF(6),r.nI1(7,"i18n"),r.k0s(),r.j41(8,"button",1),r.EFF(9),r.nI1(10,"i18n"),r.k0s()()),2&e&&(r.R7$(2),r.Lme("",r.bMT(3,5,"accountCredit"),": ",r.i5U(4,7,null!==(i=t.credit)&&void 0!==i?i:0,"$")),r.R7$(4),r.JRh(r.bMT(7,10,"availableCreditAppliedToInvoice")),r.R7$(2),r.Y8G("bitAction",t.addAccountCredit),r.R7$(),r.SpI(" ",r.bMT(10,12,"addCredit")," "))},dependencies:[l.G,U.p,v.Q,O.n,S.r,Q.oe,k.$],encapsulation:2});var Y=i(11217),X=i(73366),z=i(64447),L=i(47438),W=i(34923),K=i(44432),Z=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const H=(e,t,i)=>({type:"update",existing:e,supportsTaxId:t,taxIdWarning:i}),J=()=>({type:"cancelled"});function q(e,t){if(1&e&&(r.j41(0,"bit-callout",3),r.EFF(1),r.k0s()),2&e){r.XpG();const e=r.r8f(5);r.Y8G("type",e.type)("title",e.title),r.R7$(),r.SpI(" ",e.message," ")}}class ${constructor(e,t,i,n,r){var s;this.billingClient=e,this.dialogParams=t,this.dialogRef=i,this.i18nService=n,this.toastService=r,this.formGroup=W.vU.getFormGroup(),this.submit=()=>Z(this,void 0,void 0,function*(){if(this.formGroup.markAllAsTouched(),this.formGroup.invalid)return;const e=(0,W.c3)(this.formGroup),t=yield this.billingClient.updateBillingAddress(this.dialogParams.subscriber,e);switch(t.type){case"success":this.toastService.showToast({variant:"success",title:"",message:this.i18nService.t("billingAddressUpdated")}),yield this.dialogRef.close({type:"success",billingAddress:t.value});break;case"error":this.toastService.showToast({variant:"error",title:"",message:t.message}),yield this.dialogRef.close({type:"error"})}}),t.billingAddress&&this.formGroup.patchValue(Object.assign(Object.assign({},t.billingAddress),{taxId:null===(s=t.billingAddress.taxId)||void 0===s?void 0:s.value}))}get supportsTaxId(){switch(this.dialogParams.subscriber.type){case"account":return!1;case"organization":return[z.K_.TeamsStarter,z.K_.Teams,z.K_.Enterprise].includes(this.dialogParams.subscriber.data.productTierType);case"provider":return!0}}get taxIdWarningCallout(){if(!this.supportsTaxId||!this.dialogParams.taxIdWarning||this.dialogParams.taxIdWarning===L.e.PendingVerification)return null;switch(this.dialogParams.taxIdWarning){case L.e.Missing:return{type:"warning",title:this.i18nService.t("missingTaxIdCalloutTitle"),message:this.i18nService.t("missingTaxIdCalloutDescription")};case L.e.FailedVerification:return{type:"warning",title:this.i18nService.t("unverifiedTaxIdCalloutTitle"),message:this.i18nService.t("unverifiedTaxIdCalloutDescription")}}}}$.open=(e,t)=>e.open($,t),$.ɵfac=function(e){return new(e||$)(r.rXU(a.Hd),r.rXU(n.Qs),r.rXU(d.ce),r.rXU(h.W),r.rXU(u.f))},$.ɵcmp=r.VBU({type:$,selectors:[["ng-component"]],decls:15,vars:21,consts:[["bit-dialog","",3,"formGroup","bitSubmit"],["bitDialogTitle","",1,"tw-font-medium"],["bitDialogContent",""],[3,"type","title"],[3,"scenario","group"],["bitDialogFooter",""],["bitButton","","bitFormButton","","buttonType","primary","type","submit"],["bitButton","","buttonType","secondary","type","button",3,"bitDialogClose"]],template:function(e,t){if(1&e&&(r.j41(0,"form",0)(1,"span",1),r.EFF(2),r.nI1(3,"i18n"),r.k0s(),r.j41(4,"div",2),r.SS7(5),r.nVh(6,q,2,3,"bit-callout",3),r.nrm(7,"app-enter-billing-address",4),r.k0s(),r.qex(8,5),r.j41(9,"button",6),r.EFF(10),r.nI1(11,"i18n"),r.k0s(),r.j41(12,"button",7),r.EFF(13),r.nI1(14,"i18n"),r.k0s(),r.bVm(),r.k0s()),2&e){r.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit),r.R7$(2),r.SpI(" ",r.bMT(3,9,"editBillingAddress")," "),r.R7$(3);const e=r.bH3(t.taxIdWarningCallout);r.R7$(),r.vxM(e?6:-1),r.R7$(),r.Y8G("scenario",r.sMw(16,H,t.dialogParams.billingAddress,t.supportsTaxId,t.dialogParams.taxIdWarning))("group",t.formGroup),r.R7$(3),r.SpI(" ",r.bMT(11,12,"save")," "),r.R7$(2),r.Y8G("bitDialogClose",r.lJ4(20,J)),r.R7$(),r.SpI(" ",r.bMT(14,14,"cancel")," ")}},dependencies:[W.vU,l.G,s.qT,s.cb,s.j4,p.$,g.L,v.Q,K.G,m.I,f.m,y.hJ,k.$],encapsulation:2});class _{transform(e){const t=[];return e.line1&&t.push(e.line1),e.line2&&t.push(e.line2),e.city&&t.push(e.city),e.state&&t.push(e.state),t.push(e.postalCode,e.country),t.join(", ")}}_.ɵfac=function(e){return new(e||_)},_.ɵpipe=r.EJ8({name:"address",type:_,pure:!0});var ee=i(47696),te=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function ie(e,t){1&e&&(r.j41(0,"span",1),r.EFF(1),r.nI1(2,"i18n"),r.k0s()),2&e&&(r.R7$(),r.JRh(r.bMT(2,1,"missingTaxId")))}function ne(e,t){1&e&&(r.j41(0,"span",4),r.EFF(1),r.nI1(2,"i18n"),r.k0s()),2&e&&(r.R7$(),r.JRh(r.bMT(2,1,"pendingVerification")))}function re(e,t){1&e&&(r.j41(0,"span",1),r.EFF(1),r.nI1(2,"i18n"),r.k0s()),2&e&&(r.R7$(),r.JRh(r.bMT(2,1,"unverified")))}function se(e,t){if(1&e&&(r.j41(0,"p",3),r.EFF(1),r.nI1(2,"i18n"),r.nVh(3,ne,3,3,"span",4),r.nVh(4,re,3,3,"span",1),r.k0s()),2&e){const e=r.XpG(2);r.R7$(),r.SpI(" ",r.i5U(2,3,"taxId",e.billingAddress.taxId.value)," "),r.R7$(2),r.vxM(e.showTaxIdPendingVerificationBadge?3:-1),r.R7$(),r.vxM(e.showUnverifiedTaxIdBadge?4:-1)}}function oe(e,t){if(1&e&&(r.j41(0,"p"),r.EFF(1),r.nI1(2,"address"),r.k0s(),r.nVh(3,se,5,6,"p",3)),2&e){const e=r.XpG();r.R7$(),r.JRh(r.bMT(2,2,e.billingAddress)),r.R7$(2),r.vxM(e.billingAddress.taxId?3:-1)}}function ae(e,t){1&e&&(r.j41(0,"p"),r.EFF(1),r.nI1(2,"i18n"),r.k0s()),2&e&&(r.R7$(),r.JRh(r.bMT(2,1,"noBillingAddress")))}class le{constructor(e){this.dialogService=e,this.updated=new Y.bkB,this.editBillingAddress=()=>te(this,void 0,void 0,function*(){const e=$.open(this.dialogService,{data:{subscriber:this.subscriber,billingAddress:this.billingAddress,taxIdWarning:this.taxIdWarning}}),t=yield(0,X.s)(e.closed);"success"===(null==t?void 0:t.type)&&this.updated.emit(t.billingAddress)})}get showMissingTaxIdBadge(){return"account"!==this.subscriber.type&&this.taxIdWarning===L.e.Missing}get showTaxIdPendingVerificationBadge(){return"account"!==this.subscriber.type&&this.taxIdWarning===L.e.PendingVerification}get showUnverifiedTaxIdBadge(){return"account"!==this.subscriber.type&&this.taxIdWarning===L.e.FailedVerification}}le.ɵfac=function(e){return new(e||le)(r.rXU(G.o))},le.ɵcmp=r.VBU({type:le,selectors:[["app-display-billing-address"]],inputs:{subscriber:"subscriber",billingAddress:"billingAddress",taxIdWarning:"taxIdWarning"},outputs:{updated:"updated"},decls:10,vars:9,consts:[["bitTypography","h2"],["bitBadge","","variant","warning"],["type","button","bitButton","","buttonType","secondary",3,"bitAction"],[1,"tw-flex","tw-items-center","tw-gap-2"],["bitBadge","","variant","secondary"]],template:function(e,t){if(1&e&&(r.j41(0,"bit-section")(1,"h2",0),r.EFF(2),r.nI1(3,"i18n"),r.nVh(4,ie,3,3,"span",1),r.k0s(),r.nVh(5,oe,4,4)(6,ae,3,3,"p"),r.j41(7,"button",2),r.EFF(8),r.nI1(9,"i18n"),r.k0s()()),2&e){r.R7$(2),r.SpI(" ",r.bMT(3,5,"billingAddress")," "),r.R7$(2),r.vxM(t.showMissingTaxIdBadge?4:-1),r.R7$(),r.vxM(t.billingAddress?5:6);const e=t.billingAddress?"editBillingAddress":"addBillingAddress";r.R7$(2),r.Y8G("bitAction",t.editBillingAddress),r.R7$(),r.SpI(" ",r.bMT(9,7,e)," ")}},dependencies:[l.G,U.p,ee.n,v.Q,O.n,S.r,_,k.$],encapsulation:2});var ce=i(24590),de=i(63477),ue=i(81216),he=i(14055),Ae=i(58384),pe=i(57178),ge=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function ve(e,t){if(1&e&&(r.j41(0,"p"),r.EFF(1),r.nI1(2,"i18n"),r.j41(3,"a",7),r.EFF(4),r.nI1(5,"i18n"),r.k0s()()),2&e){const e=r.XpG(2);r.R7$(),r.SpI(" ",r.bMT(2,3,"verifyBankAccountWithStripe")," "),r.R7$(2),r.BMQ("href",e.hostedVerificationUrl,r.B4B),r.R7$(),r.JRh(r.bMT(5,5,"verifyNow"))}}function me(e,t){1&e&&(r.j41(0,"span"),r.EFF(1),r.nI1(2,"i18n"),r.k0s()),2&e&&(r.R7$(),r.SpI("- ",r.bMT(2,1,"unverified")))}function fe(e,t){if(1&e&&(r.nVh(0,ve,6,7,"p"),r.j41(1,"p"),r.nrm(2,"bit-icon",6),r.EFF(3),r.nVh(4,me,3,3,"span"),r.k0s()),2&e){const e=r.XpG();r.vxM(e.hostedVerificationUrl?0:-1),r.R7$(3),r.Lme(" ",e.bankName,", *",e.last4," "),r.R7$(),r.vxM(e.hostedVerificationUrl?4:-1)}}function ye(e,t){1&e&&r.nrm(0,"i"),2&e&&r.HbH(r.VkB("bwi bwi-fw credit-card-icon ",t))}function be(e,t){1&e&&r.nrm(0,"bit-icon",9)}function Ce(e,t){if(1&e&&(r.j41(0,"p",5),r.nVh(1,ye,1,3,"i",8)(2,be,1,0,"bit-icon",9),r.EFF(3),r.nI1(4,"titlecase"),r.k0s()),2&e){let e;const t=r.XpG(),i=r.XpG(2);r.R7$(),r.vxM((e=i.cardBrandIcon())?1:2,e),r.R7$(2),r.E5c(" ",r.bMT(4,4,t.brand),", *",t.last4,", ",t.expiration," ")}}function Ie(e,t){if(1&e&&(r.j41(0,"p"),r.nrm(1,"bit-icon",10),r.EFF(2),r.k0s()),2&e){const e=r.XpG();r.R7$(2),r.SpI(" ",e.email," ")}}function we(e,t){if(1&e&&r.nVh(0,fe,5,4)(1,Ce,5,6,"p",5)(2,Ie,3,1,"p"),2&e){let e;r.vxM("bankAccount"===(e=t.type)?0:"card"===e?1:"payPal"===e?2:-1)}}function Be(e,t){1&e&&(r.j41(0,"p",3),r.EFF(1),r.nI1(2,"i18n"),r.k0s()),2&e&&(r.R7$(),r.JRh(r.bMT(2,1,"noPaymentMethod")))}function Ee(e,t){if(1&e){const e=r.RV6();r.j41(0,"h5",1),r.EFF(1),r.nI1(2,"i18n"),r.k0s(),r.j41(3,"div",2),r.nVh(4,we,3,1)(5,Be,3,3,"p",3),r.j41(6,"a",4),r.bIt("click",function(){Y.eBV(e);const t=r.XpG();return Y.Njj(t.changePaymentMethod())}),r.EFF(7),r.nI1(8,"i18n"),r.k0s()()}if(2&e){let e;const t=r.XpG();r.R7$(),r.JRh(r.bMT(2,3,"paymentMethod")),r.R7$(3),r.vxM((e=t.paymentMethod())?4:5,e);const i=t.paymentMethod()?"changePaymentMethod":"addPaymentMethod";r.R7$(3),r.SpI(" ",r.bMT(8,5,i))}}function Se(e,t){if(1&e){const e=r.RV6();r.j41(0,"div",12)(1,"button",13),r.bIt("click",function(){Y.eBV(e);const t=r.XpG(2);return Y.Njj(t.submit())}),r.EFF(2),r.nI1(3,"i18n"),r.k0s(),r.j41(4,"button",14),r.bIt("click",function(){Y.eBV(e);const t=r.XpG(2);return Y.Njj(t.cancel())}),r.EFF(5),r.nI1(6,"i18n"),r.k0s()()}if(2&e){const e=r.XpG(2);r.R7$(),r.Y8G("disabled",e.formGroup.invalid),r.R7$(),r.SpI(" ",r.bMT(3,3,"save")," "),r.R7$(3),r.SpI(" ",r.bMT(6,5,"cancel")," ")}}function Qe(e,t){if(1&e&&(r.nrm(0,"app-enter-payment-method",11,0),r.nVh(2,Se,7,7,"div",12)),2&e){const e=r.XpG();r.Y8G("includeBillingAddress",!1)("group",e.formGroup)("showBankAccount",e.showBankAccountOption())("showAccountCredit",!1),r.R7$(2),r.vxM(e.showFormButtons()?2:-1)}}class ke{constructor(){var e;this.subscriber=ce.hFB.required(),this.paymentMethod=ce.hFB.required(),this.externalFormGroup=(0,ce.hFB)(null),this.showBankAccountOption=(0,ce.hFB)(!1),this.updated=(0,ce.CGW)(),this.enterPaymentMethodComponent=(0,ce.ebz)(D.P),this.isChangingPayment=(0,Y.vPA)(!1),this.cardBrandIcon=(0,de.EW)(()=>(0,he.nS)(this.paymentMethod())),this.showFormButtons=(0,de.EW)(()=>null===this.externalFormGroup()),this.billingClient=(0,Y.WQX)(a.Hd),this.i18nService=(0,Y.WQX)(h.W),this.toastService=(0,Y.WQX)(u.f),this.logService=(0,Y.WQX)(ue.Kc),this.changePaymentMethod=()=>ge(this,void 0,void 0,function*(){this.isChangingPayment.set(!0)}),this.submit=()=>ge(this,void 0,void 0,function*(){try{const e=yield this.getTokenizedPaymentMethod(),t=this.formGroup.value.type!==he.vj.payPal?this.formGroup.controls.billingAddress.getRawValue():null;yield this.handlePaymentMethodUpdate(e,t)}catch(e){throw this.logService.error("Error submitting payment method update:",e),this.toastService.showToast({variant:"error",title:"",message:this.i18nService.t("paymentMethodUpdateError")}),e}}),this.cancel=()=>{this.resetForm()},this.formGroup=null!==(e=this.externalFormGroup())&&void 0!==e?e:D.P.getFormGroup()}getTokenizedPaymentMethod(){return ge(this,void 0,void 0,function*(){if(!this.formGroup.valid)throw this.formGroup.markAllAsTouched(),new Error("Form is invalid");const e=this.enterPaymentMethodComponent();if(!e)throw new Error("Payment method component not found");const t=yield e.tokenize();if(!t)throw new Error("Failed to tokenize payment method");return t})}isFormValid(){return!!this.enterPaymentMethodComponent()&&this.enterPaymentMethodComponent().validate()}resetForm(){this.formGroup.reset(),this.isChangingPayment.set(!1)}handlePaymentMethodUpdate(e,t){return ge(this,void 0,void 0,function*(){const i=yield this.billingClient.updatePaymentMethod(this.subscriber(),e,t);switch(i.type){case"success":this.toastService.showToast({variant:"success",title:"",message:this.i18nService.t("paymentMethodUpdated")}),this.updated.emit(i.value),this.resetForm();break;case"error":this.logService.error("Error submitting payment method update:",i),this.toastService.showToast({variant:"error",title:"",message:this.i18nService.t("paymentMethodUpdateError")})}})}}ke.ɵfac=function(e){return new(e||ke)},ke.ɵcmp=r.VBU({type:ke,selectors:[["app-display-payment-method-inline"]],viewQuery:function(e,t){1&e&&r.wEZ(t.enterPaymentMethodComponent,D.P,5),2&e&&r.NyB()},inputs:{subscriber:[1,"subscriber"],paymentMethod:[1,"paymentMethod"],externalFormGroup:[1,"externalFormGroup"],showBankAccountOption:[1,"showBankAccountOption"]},outputs:{updated:"updated"},decls:3,vars:1,consts:[["enterPaymentMethodComponent",""],["bitTypography","h5"],[1,"tw-flex","tw-items-center","tw-gap-2"],["bitTypography","body1"],["bitLink","","linkType","primary",1,"tw-cursor-pointer","tw-mb-4",3,"click"],[1,"tw-flex","tw-gap-2"],["name","bwi-billing"],["bitLink","","rel","noreferrer","target","_blank"],[3,"class"],["name","bwi-credit-card"],["name","bwi-paypal",1,"tw-text-primary-600"],[3,"includeBillingAddress","group","showBankAccount","showAccountCredit"],[1,"tw-mt-4","tw-flex","tw-gap-2"],["bitLink","","linkType","default","type","button",3,"click","disabled"],["bitLink","","linkType","subtle","type","button",3,"click"]],template:function(e,t){1&e&&(r.j41(0,"bit-section"),r.nVh(1,Ee,9,7)(2,Qe,3,5),r.k0s()),2&e&&(r.R7$(),r.vxM(t.isChangingPayment()?2:1))},dependencies:[l.G,Ae.R,pe.g,O.n,S.r,D.P,Q.PV,k.$],encapsulation:2,changeDetection:0});var Re=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function Fe(e,t){1&e&&(r.j41(0,"h2",0),r.EFF(1),r.nI1(2,"i18n"),r.k0s()),2&e&&(r.R7$(),r.JRh(r.bMT(2,1,"paymentMethod")))}function Te(e,t){if(1&e&&(r.j41(0,"p"),r.EFF(1),r.nI1(2,"i18n"),r.j41(3,"a",5),r.EFF(4),r.nI1(5,"i18n"),r.k0s()()),2&e){const e=r.XpG(3);r.R7$(),r.SpI(" ",r.bMT(2,3,"verifyBankAccountWithStripe")," "),r.R7$(2),r.BMQ("href",e.paymentMethod.hostedVerificationUrl,r.B4B),r.R7$(),r.JRh(r.bMT(5,5,"verifyNow"))}}function De(e,t){1&e&&(r.j41(0,"span"),r.EFF(1),r.nI1(2,"i18n"),r.k0s()),2&e&&(r.R7$(),r.SpI("- ",r.bMT(2,1,"unverified")))}function Pe(e,t){if(1&e&&(r.nVh(0,Te,6,7,"p"),r.j41(1,"p"),r.nrm(2,"i",4),r.EFF(3),r.nVh(4,De,3,3,"span"),r.k0s()),2&e){const e=r.XpG(2);r.vxM(e.paymentMethod.hostedVerificationUrl?0:-1),r.R7$(3),r.Lme(" ",e.paymentMethod.bankName,", *",e.paymentMethod.last4," "),r.R7$(),r.vxM(e.paymentMethod.hostedVerificationUrl?4:-1)}}function Me(e,t){if(1&e&&r.nrm(0,"i"),2&e){r.XpG();const e=r.r8f(1);r.HbH(r.VkB("bwi bwi-fw credit-card-icon ",e))}}function xe(e,t){1&e&&r.nrm(0,"i",7)}function Ve(e,t){if(1&e&&(r.j41(0,"p",3),r.SS7(1),r.nVh(2,Me,1,3,"i",6)(3,xe,1,0,"i",7),r.EFF(4),r.nI1(5,"titlecase"),r.k0s()),2&e){const e=r.XpG(2);r.R7$();const t=r.bH3(e.getCardBrandIcon());r.R7$(),r.vxM(null!==t?2:3),r.R7$(2),r.E5c(" ",r.bMT(5,5,e.paymentMethod.brand),", *",e.paymentMethod.last4,", ",e.paymentMethod.expiration," ")}}function Ge(e,t){if(1&e&&(r.j41(0,"p"),r.nrm(1,"i",8),r.EFF(2),r.k0s()),2&e){const e=r.XpG(2);r.R7$(2),r.SpI(" ",e.paymentMethod.email," ")}}function Ue(e,t){if(1&e&&r.nVh(0,Pe,5,4)(1,Ve,6,7,"p",3)(2,Ge,3,1,"p"),2&e){let e;const t=r.XpG();r.vxM("bankAccount"===(e=t.paymentMethod.type)?0:"card"===e?1:"payPal"===e?2:-1)}}function Oe(e,t){1&e&&(r.j41(0,"p",1),r.EFF(1),r.nI1(2,"i18n"),r.k0s()),2&e&&(r.R7$(),r.JRh(r.bMT(2,1,"noPaymentMethod")))}class Ne{constructor(e){this.dialogService=e,this.updated=new Y.bkB,this.hideHeader=(0,ce.hFB)(!1),this.changePaymentMethod=()=>Re(this,void 0,void 0,function*(){const e=V.open(this.dialogService,{data:{subscriber:this.subscriber}}),t=yield(0,X.s)(e.closed);"success"===(null==t?void 0:t.type)&&this.updated.emit(t.paymentMethod)}),this.getCardBrandIcon=()=>(0,he.nS)(this.paymentMethod)}}Ne.ɵfac=function(e){return new(e||Ne)(r.rXU(G.o))},Ne.ɵcmp=r.VBU({type:Ne,selectors:[["app-display-payment-method"]],inputs:{subscriber:"subscriber",paymentMethod:"paymentMethod",hideHeader:[1,"hideHeader"]},outputs:{updated:"updated"},decls:7,vars:6,consts:[["bitTypography","h2"],["bitTypography","body1"],["type","button","bitButton","","buttonType","secondary",3,"bitAction"],[1,"tw-flex","tw-items-center","tw-gap-2"],[1,"bwi","bwi-fw","bwi-billing"],["bitLink","","rel","noreferrer","target","_blank"],[3,"class"],[1,"bwi","bwi-fw","bwi-credit-card"],[1,"bwi","bwi-fw","bwi-paypal","tw-text-primary-600"]],template:function(e,t){if(1&e&&(r.j41(0,"bit-section"),r.nVh(1,Fe,3,3,"h2",0),r.nVh(2,Ue,3,1)(3,Oe,3,3,"p",1),r.j41(4,"button",2),r.EFF(5),r.nI1(6,"i18n"),r.k0s()()),2&e){r.R7$(),r.vxM(t.hideHeader()?-1:1),r.R7$(),r.vxM(t.paymentMethod?2:3);const e=t.paymentMethod?"changePaymentMethod":"addPaymentMethod";r.R7$(2),r.Y8G("bitAction",t.changePaymentMethod),r.R7$(),r.SpI(" ",r.bMT(6,4,e)," ")}},dependencies:[l.G,U.p,v.Q,pe.g,O.n,S.r,Q.PV,k.$],encapsulation:2});i(32287);class je extends M{constructor(e,t,i,n,r){super(e,i,n,r),this.dialogParams=t,this.subscriber=this.dialogParams.subscriber}}je.open=(e,t)=>e.open(je,Object.assign(Object.assign({},t),{disableClose:!0})),je.ɵfac=function(e){return new(e||je)(r.rXU(a.Hd),r.rXU(n.Qs),r.rXU(d.ce),r.rXU(h.W),r.rXU(u.f))},je.ɵcmp=r.VBU({type:je,selectors:[["ng-component"]],features:[r.Vt3],decls:12,vars:13,consts:[["bit-dialog","",3,"formGroup","bitSubmit"],["bitDialogTitle","",1,"tw-font-medium"],["bitDialogContent",""],[3,"type","title"],[3,"group","includeBillingAddress"],["bitDialogFooter",""],["bitButton","","bitFormButton","","buttonType","primary","type","submit"]],template:function(e,t){1&e&&(r.j41(0,"form",0)(1,"span",1),r.EFF(2),r.nI1(3,"i18n"),r.k0s(),r.j41(4,"div",2)(5,"bit-callout",3),r.EFF(6),r.k0s(),r.nrm(7,"app-enter-payment-method",4),r.k0s(),r.qex(8,5),r.j41(9,"button",6),r.EFF(10),r.nI1(11,"i18n"),r.k0s(),r.bVm(),r.k0s()),2&e&&(r.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit),r.R7$(2),r.SpI(" ",r.bMT(3,9,"addPaymentMethod")," "),r.R7$(3),r.Y8G("type",t.dialogParams.callout.type)("title",t.dialogParams.callout.title),r.R7$(),r.SpI(" ",t.dialogParams.callout.message," "),r.R7$(),r.Y8G("group",t.formGroup)("includeBillingAddress",!0),r.R7$(3),r.SpI(" ",r.bMT(11,11,"save")," "))},dependencies:[D.P,l.G,s.qT,s.cb,s.j4,p.$,g.L,v.Q,K.G,f.m,y.hJ,k.$],encapsulation:2});var Ye=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Xe{constructor(e,t,i){this.billingClient=e,this.i18nService=t,this.toastService=i,this.verified=new Y.bkB,this.formGroup=new s.gE({descriptorCode:new s.MJ("",[s.k0.required,s.k0.minLength(6),s.k0.maxLength(6)])}),this.submit=()=>Ye(this,void 0,void 0,function*(){if(this.formGroup.markAllAsTouched(),!this.formGroup.valid)return;const e=yield this.billingClient.verifyBankAccount(this.subscriber,this.formGroup.value.descriptorCode);switch(e.type){case"success":this.toastService.showToast({variant:"success",title:"",message:this.i18nService.t("bankAccountVerified")}),this.verified.emit(e.value);break;case"error":this.toastService.showToast({variant:"error",title:"",message:e.message})}})}}Xe.ɵfac=function(e){return new(e||Xe)(r.rXU(a.Hd),r.rXU(h.W),r.rXU(u.f))},Xe.ɵcmp=r.VBU({type:Xe,selectors:[["app-verify-bank-account"]],inputs:{subscriber:"subscriber"},outputs:{verified:"verified"},decls:14,vars:16,consts:[["type","warning",3,"title"],[3,"formGroup","bitSubmit"],[1,"tw-mr-2","tw-w-48"],["bitInput","","type","text","placeholder","SMAB12",3,"formControl"],["type","submit","bitButton","","bitFormButton","","buttonType","primary"]],template:function(e,t){1&e&&(r.j41(0,"bit-callout",0),r.nI1(1,"i18n"),r.j41(2,"p"),r.EFF(3),r.nI1(4,"i18n"),r.k0s(),r.j41(5,"form",1)(6,"bit-form-field",2)(7,"bit-label"),r.EFF(8),r.nI1(9,"i18n"),r.k0s(),r.nrm(10,"input",3),r.k0s(),r.j41(11,"button",4),r.EFF(12),r.nI1(13,"i18n"),r.k0s()()()),2&e&&(r.Y8G("title",r.mNQ(r.bMT(1,8,"verifyBankAccount"))),r.R7$(3),r.JRh(r.bMT(4,10,"verifyBankAccountWithStatementDescriptorInstructions")),r.R7$(2),r.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit),r.R7$(3),r.JRh(r.bMT(9,12,"descriptorCode")),r.R7$(2),r.Y8G("formControl",t.formGroup.controls.descriptorCode),r.R7$(2),r.SpI(" ",r.bMT(13,14,"submit")," "))},dependencies:[l.G,s.qT,s.me,s.BC,s.cb,s.l_,s.j4,p.$,g.L,v.Q,K.G,b.j,I.J,w.h,k.$],encapsulation:2})},32287(e,t,i){"use strict";i.d(t,{m:()=>h});var n=i(24590),r=i(26411),s=i(25065),o=i(14041),a=i(86226),l=i(46758),c=i(25740);function d(e,t){1&e&&o.SdG(0)}function u(e,t){1&e&&o.eu8(0)}class h{constructor(){this.required=!1}}h.ɵfac=function(e){return new(e||h)},h.ɵcmp=o.VBU({type:h,selectors:[["app-payment-label"]],inputs:{for:"for",required:[2,"required","required",n.L39]},ngContentSelectors:["*"],decls:8,vars:5,consts:[["defaultContent",""],[1,"tw-relative","tw-mt-2"],[1,"tw-absolute","tw-bg-background","tw-px-1","tw-text-sm","tw-text-muted","-tw-top-2.5","tw-left-3","tw-mb-0","tw-max-w-full","tw-pointer-events-auto"],[4,"ngTemplateOutlet"],[1,"tw-text-[0.625rem]","tw-font-normal"]],template:function(e,t){if(1&e&&(o.NAR(),o.DNE(0,d,1,0,"ng-template",null,0,o.C5r),o.j41(2,"div",1)(3,"bit-label",2),o.DNE(4,u,1,0,"ng-container",3),o.j41(5,"span",4),o.EFF(6),o.nI1(7,"i18n"),o.k0s()()()),2&e){const e=o.sdS(1);o.R7$(3),o.BMQ("for",t.for),o.R7$(),o.Y8G("ngTemplateOutlet",e),o.R7$(2),o.SpI("(",o.bMT(7,3,"required"),")")}},dependencies:[r.L,a.j,s.G,l.T3,c.$],encapsulation:2})},14055(e,t,i){"use strict";i.d(t,{TU:()=>s,cD:()=>l,mv:()=>m,vj:()=>v,nS:()=>a,i5:()=>A,w$:()=>f,Lx:()=>h,qk:()=>p,x$:()=>y});var n=i(20702);class r extends n.r{constructor(e){super(e),this.code=this.getResponseProperty("Code"),this.value=this.getResponseProperty("Value")}}class s extends n.r{constructor(e){super(e),this.country=this.getResponseProperty("Country"),this.postalCode=this.getResponseProperty("PostalCode"),this.line1=this.getResponseProperty("Line1"),this.line2=this.getResponseProperty("Line2"),this.city=this.getResponseProperty("City"),this.state=this.getResponseProperty("State");const t=this.getResponseProperty("TaxId");this.taxId=t?new r(t):null}}const o={amex:"card-amex",diners:"card-diners-club",discover:"card-discover",jcb:"card-jcb",mastercard:"card-mastercard",unionpay:"card-unionpay",visa:"card-visa"},a=e=>"card"!==(null==e?void 0:e.type)?null:e.brand in o?o[e.brand]:null;class l extends n.r{constructor(e){super(e);const t=this.getResponseProperty("Type");switch(t){case"card":this.value=new d(e);break;case"bankAccount":this.value=new c(e);break;case"payPal":this.value=new u(e);break;default:throw new Error(`Cannot deserialize unsupported payment method type: ${t}`)}}}class c extends n.r{constructor(e){super(e),this.type="bankAccount",this.bankName=this.getResponseProperty("BankName"),this.last4=this.getResponseProperty("Last4"),this.hostedVerificationUrl=this.getResponseProperty("HostedVerificationUrl")}}class d extends n.r{constructor(e){super(e),this.type="card",this.brand=this.getResponseProperty("Brand"),this.last4=this.getResponseProperty("Last4"),this.expiration=this.getResponseProperty("Expiration")}}class u extends n.r{constructor(e){super(e),this.type="payPal",this.email=this.getResponseProperty("Email")}}const h=[{name:"-- Select --",value:"",disabled:!1},{name:"United States",value:"US",disabled:!1},{name:"China",value:"CN",disabled:!1},{name:"France",value:"FR",disabled:!1},{name:"Germany",value:"DE",disabled:!1},{name:"Canada",value:"CA",disabled:!1},{name:"United Kingdom",value:"GB",disabled:!1},{name:"Australia",value:"AU",disabled:!1},{name:"India",value:"IN",disabled:!1},{name:"",value:"-",disabled:!0},{name:"Afghanistan",value:"AF",disabled:!1},{name:"Åland Islands",value:"AX",disabled:!1},{name:"Albania",value:"AL",disabled:!1},{name:"Algeria",value:"DZ",disabled:!1},{name:"American Samoa",value:"AS",disabled:!1},{name:"Andorra",value:"AD",disabled:!1},{name:"Angola",value:"AO",disabled:!1},{name:"Anguilla",value:"AI",disabled:!1},{name:"Antarctica",value:"AQ",disabled:!1},{name:"Antigua and Barbuda",value:"AG",disabled:!1},{name:"Argentina",value:"AR",disabled:!1},{name:"Armenia",value:"AM",disabled:!1},{name:"Aruba",value:"AW",disabled:!1},{name:"Austria",value:"AT",disabled:!1},{name:"Azerbaijan",value:"AZ",disabled:!1},{name:"Bahamas",value:"BS",disabled:!1},{name:"Bahrain",value:"BH",disabled:!1},{name:"Bangladesh",value:"BD",disabled:!1},{name:"Barbados",value:"BB",disabled:!1},{name:"Belarus",value:"BY",disabled:!1},{name:"Belgium",value:"BE",disabled:!1},{name:"Belize",value:"BZ",disabled:!1},{name:"Benin",value:"BJ",disabled:!1},{name:"Bermuda",value:"BM",disabled:!1},{name:"Bhutan",value:"BT",disabled:!1},{name:"Bolivia, Plurinational State of",value:"BO",disabled:!1},{name:"Bonaire, Sint Eustatius and Saba",value:"BQ",disabled:!1},{name:"Bosnia and Herzegovina",value:"BA",disabled:!1},{name:"Botswana",value:"BW",disabled:!1},{name:"Bouvet Island",value:"BV",disabled:!1},{name:"Brazil",value:"BR",disabled:!1},{name:"British Indian Ocean Territory",value:"IO",disabled:!1},{name:"Brunei Darussalam",value:"BN",disabled:!1},{name:"Bulgaria",value:"BG",disabled:!1},{name:"Burkina Faso",value:"BF",disabled:!1},{name:"Burundi",value:"BI",disabled:!1},{name:"Cambodia",value:"KH",disabled:!1},{name:"Cameroon",value:"CM",disabled:!1},{name:"Cape Verde",value:"CV",disabled:!1},{name:"Cayman Islands",value:"KY",disabled:!1},{name:"Central African Republic",value:"CF",disabled:!1},{name:"Chad",value:"TD",disabled:!1},{name:"Chile",value:"CL",disabled:!1},{name:"Christmas Island",value:"CX",disabled:!1},{name:"Cocos (Keeling) Islands",value:"CC",disabled:!1},{name:"Colombia",value:"CO",disabled:!1},{name:"Comoros",value:"KM",disabled:!1},{name:"Congo",value:"CG",disabled:!1},{name:"Congo, the Democratic Republic of the",value:"CD",disabled:!1},{name:"Cook Islands",value:"CK",disabled:!1},{name:"Costa Rica",value:"CR",disabled:!1},{name:"Côte d'Ivoire",value:"CI",disabled:!1},{name:"Croatia",value:"HR",disabled:!1},{name:"Cuba",value:"CU",disabled:!1},{name:"Curaçao",value:"CW",disabled:!1},{name:"Cyprus",value:"CY",disabled:!1},{name:"Czech Republic",value:"CZ",disabled:!1},{name:"Denmark",value:"DK",disabled:!1},{name:"Djibouti",value:"DJ",disabled:!1},{name:"Dominica",value:"DM",disabled:!1},{name:"Dominican Republic",value:"DO",disabled:!1},{name:"Ecuador",value:"EC",disabled:!1},{name:"Egypt",value:"EG",disabled:!1},{name:"El Salvador",value:"SV",disabled:!1},{name:"Equatorial Guinea",value:"GQ",disabled:!1},{name:"Eritrea",value:"ER",disabled:!1},{name:"Estonia",value:"EE",disabled:!1},{name:"Ethiopia",value:"ET",disabled:!1},{name:"Falkland Islands (Malvinas)",value:"FK",disabled:!1},{name:"Faroe Islands",value:"FO",disabled:!1},{name:"Fiji",value:"FJ",disabled:!1},{name:"Finland",value:"FI",disabled:!1},{name:"French Guiana",value:"GF",disabled:!1},{name:"French Polynesia",value:"PF",disabled:!1},{name:"French Southern Territories",value:"TF",disabled:!1},{name:"Gabon",value:"GA",disabled:!1},{name:"Gambia",value:"GM",disabled:!1},{name:"Georgia",value:"GE",disabled:!1},{name:"Ghana",value:"GH",disabled:!1},{name:"Gibraltar",value:"GI",disabled:!1},{name:"Greece",value:"GR",disabled:!1},{name:"Greenland",value:"GL",disabled:!1},{name:"Grenada",value:"GD",disabled:!1},{name:"Guadeloupe",value:"GP",disabled:!1},{name:"Guam",value:"GU",disabled:!1},{name:"Guatemala",value:"GT",disabled:!1},{name:"Guernsey",value:"GG",disabled:!1},{name:"Guinea",value:"GN",disabled:!1},{name:"Guinea-Bissau",value:"GW",disabled:!1},{name:"Guyana",value:"GY",disabled:!1},{name:"Haiti",value:"HT",disabled:!1},{name:"Heard Island and McDonald Islands",value:"HM",disabled:!1},{name:"Holy See (Vatican City State)",value:"VA",disabled:!1},{name:"Honduras",value:"HN",disabled:!1},{name:"Hong Kong",value:"HK",disabled:!1},{name:"Hungary",value:"HU",disabled:!1},{name:"Iceland",value:"IS",disabled:!1},{name:"Indonesia",value:"ID",disabled:!1},{name:"Iran, Islamic Republic of",value:"IR",disabled:!1},{name:"Iraq",value:"IQ",disabled:!1},{name:"Ireland",value:"IE",disabled:!1},{name:"Isle of Man",value:"IM",disabled:!1},{name:"Israel",value:"IL",disabled:!1},{name:"Italy",value:"IT",disabled:!1},{name:"Jamaica",value:"JM",disabled:!1},{name:"Japan",value:"JP",disabled:!1},{name:"Jersey",value:"JE",disabled:!1},{name:"Jordan",value:"JO",disabled:!1},{name:"Kazakhstan",value:"KZ",disabled:!1},{name:"Kenya",value:"KE",disabled:!1},{name:"Kiribati",value:"KI",disabled:!1},{name:"Korea, Democratic People's Republic of",value:"KP",disabled:!1},{name:"Korea, Republic of",value:"KR",disabled:!1},{name:"Kuwait",value:"KW",disabled:!1},{name:"Kyrgyzstan",value:"KG",disabled:!1},{name:"Lao People's Democratic Republic",value:"LA",disabled:!1},{name:"Latvia",value:"LV",disabled:!1},{name:"Lebanon",value:"LB",disabled:!1},{name:"Lesotho",value:"LS",disabled:!1},{name:"Liberia",value:"LR",disabled:!1},{name:"Libya",value:"LY",disabled:!1},{name:"Liechtenstein",value:"LI",disabled:!1},{name:"Lithuania",value:"LT",disabled:!1},{name:"Luxembourg",value:"LU",disabled:!1},{name:"Macao",value:"MO",disabled:!1},{name:"Macedonia, the former Yugoslav Republic of",value:"MK",disabled:!1},{name:"Madagascar",value:"MG",disabled:!1},{name:"Malawi",value:"MW",disabled:!1},{name:"Malaysia",value:"MY",disabled:!1},{name:"Maldives",value:"MV",disabled:!1},{name:"Mali",value:"ML",disabled:!1},{name:"Malta",value:"MT",disabled:!1},{name:"Marshall Islands",value:"MH",disabled:!1},{name:"Martinique",value:"MQ",disabled:!1},{name:"Mauritania",value:"MR",disabled:!1},{name:"Mauritius",value:"MU",disabled:!1},{name:"Mayotte",value:"YT",disabled:!1},{name:"Mexico",value:"MX",disabled:!1},{name:"Micronesia, Federated States of",value:"FM",disabled:!1},{name:"Moldova, Republic of",value:"MD",disabled:!1},{name:"Monaco",value:"MC",disabled:!1},{name:"Mongolia",value:"MN",disabled:!1},{name:"Montenegro",value:"ME",disabled:!1},{name:"Montserrat",value:"MS",disabled:!1},{name:"Morocco",value:"MA",disabled:!1},{name:"Mozambique",value:"MZ",disabled:!1},{name:"Myanmar",value:"MM",disabled:!1},{name:"Namibia",value:"NA",disabled:!1},{name:"Nauru",value:"NR",disabled:!1},{name:"Nepal",value:"NP",disabled:!1},{name:"Netherlands",value:"NL",disabled:!1},{name:"New Caledonia",value:"NC",disabled:!1},{name:"New Zealand",value:"NZ",disabled:!1},{name:"Nicaragua",value:"NI",disabled:!1},{name:"Niger",value:"NE",disabled:!1},{name:"Nigeria",value:"NG",disabled:!1},{name:"Niue",value:"NU",disabled:!1},{name:"Norfolk Island",value:"NF",disabled:!1},{name:"Northern Mariana Islands",value:"MP",disabled:!1},{name:"Norway",value:"NO",disabled:!1},{name:"Oman",value:"OM",disabled:!1},{name:"Pakistan",value:"PK",disabled:!1},{name:"Palau",value:"PW",disabled:!1},{name:"Palestinian Territory, Occupied",value:"PS",disabled:!1},{name:"Panama",value:"PA",disabled:!1},{name:"Papua New Guinea",value:"PG",disabled:!1},{name:"Paraguay",value:"PY",disabled:!1},{name:"Peru",value:"PE",disabled:!1},{name:"Philippines",value:"PH",disabled:!1},{name:"Pitcairn",value:"PN",disabled:!1},{name:"Poland",value:"PL",disabled:!1},{name:"Portugal",value:"PT",disabled:!1},{name:"Puerto Rico",value:"PR",disabled:!1},{name:"Qatar",value:"QA",disabled:!1},{name:"Réunion",value:"RE",disabled:!1},{name:"Romania",value:"RO",disabled:!1},{name:"Russian Federation",value:"RU",disabled:!1},{name:"Rwanda",value:"RW",disabled:!1},{name:"Saint Barthélemy",value:"BL",disabled:!1},{name:"Saint Helena, Ascension and Tristan da Cunha",value:"SH",disabled:!1},{name:"Saint Kitts and Nevis",value:"KN",disabled:!1},{name:"Saint Lucia",value:"LC",disabled:!1},{name:"Saint Martin (French part)",value:"MF",disabled:!1},{name:"Saint Pierre and Miquelon",value:"PM",disabled:!1},{name:"Saint Vincent and the Grenadines",value:"VC",disabled:!1},{name:"Samoa",value:"WS",disabled:!1},{name:"San Marino",value:"SM",disabled:!1},{name:"Sao Tome and Principe",value:"ST",disabled:!1},{name:"Saudi Arabia",value:"SA",disabled:!1},{name:"Senegal",value:"SN",disabled:!1},{name:"Serbia",value:"RS",disabled:!1},{name:"Seychelles",value:"SC",disabled:!1},{name:"Sierra Leone",value:"SL",disabled:!1},{name:"Singapore",value:"SG",disabled:!1},{name:"Sint Maarten (Dutch part)",value:"SX",disabled:!1},{name:"Slovakia",value:"SK",disabled:!1},{name:"Slovenia",value:"SI",disabled:!1},{name:"Solomon Islands",value:"SB",disabled:!1},{name:"Somalia",value:"SO",disabled:!1},{name:"South Africa",value:"ZA",disabled:!1},{name:"South Georgia and the South Sandwich Islands",value:"GS",disabled:!1},{name:"South Sudan",value:"SS",disabled:!1},{name:"Spain",value:"ES",disabled:!1},{name:"Sri Lanka",value:"LK",disabled:!1},{name:"Sudan",value:"SD",disabled:!1},{name:"Suriname",value:"SR",disabled:!1},{name:"Svalbard and Jan Mayen",value:"SJ",disabled:!1},{name:"Swaziland",value:"SZ",disabled:!1},{name:"Sweden",value:"SE",disabled:!1},{name:"Switzerland",value:"CH",disabled:!1},{name:"Syrian Arab Republic",value:"SY",disabled:!1},{name:"Taiwan",value:"TW",disabled:!1},{name:"Tajikistan",value:"TJ",disabled:!1},{name:"Tanzania, United Republic of",value:"TZ",disabled:!1},{name:"Thailand",value:"TH",disabled:!1},{name:"Timor-Leste",value:"TL",disabled:!1},{name:"Togo",value:"TG",disabled:!1},{name:"Tokelau",value:"TK",disabled:!1},{name:"Tonga",value:"TO",disabled:!1},{name:"Trinidad and Tobago",value:"TT",disabled:!1},{name:"Tunisia",value:"TN",disabled:!1},{name:"Turkey",value:"TR",disabled:!1},{name:"Turkmenistan",value:"TM",disabled:!1},{name:"Turks and Caicos Islands",value:"TC",disabled:!1},{name:"Tuvalu",value:"TV",disabled:!1},{name:"Uganda",value:"UG",disabled:!1},{name:"Ukraine",value:"UA",disabled:!1},{name:"United Arab Emirates",value:"AE",disabled:!1},{name:"United States Minor Outlying Islands",value:"UM",disabled:!1},{name:"Uruguay",value:"UY",disabled:!1},{name:"Uzbekistan",value:"UZ",disabled:!1},{name:"Vanuatu",value:"VU",disabled:!1},{name:"Venezuela, Bolivarian Republic of",value:"VE",disabled:!1},{name:"Viet Nam",value:"VN",disabled:!1},{name:"Virgin Islands, British",value:"VG",disabled:!1},{name:"Virgin Islands, U.S.",value:"VI",disabled:!1},{name:"Wallis and Futuna",value:"WF",disabled:!1},{name:"Western Sahara",value:"EH",disabled:!1},{name:"Yemen",value:"YE",disabled:!1},{name:"Zambia",value:"ZM",disabled:!1},{name:"Zimbabwe",value:"ZW",disabled:!1}],A=e=>{const t=p.filter(t=>t.iso===e);if(0===t.length)return null;if(1===t.length)return t[0];{const e=t.find(e=>e.impactsTaxCalculation);return e||t[0]}},p=[{country:"Albania",iso:"AL",code:"al_tin",description:"Albania Tax Identification Number",example:"J12345678N",impactsTaxCalculation:!0},{country:"Andorra",iso:"AD",code:"ad_nrt",description:"Andorran NRT number",example:"A-123456-Z",impactsTaxCalculation:!1},{country:"Angola",iso:"AO",code:"ao_tin",description:"Angola Tax Identification Number",example:"5123456789",impactsTaxCalculation:!1},{country:"Argentina",iso:"AR",code:"ar_cuit",description:"Argentinian tax ID number",example:"12-3456789-01",impactsTaxCalculation:!1},{country:"Armenia",iso:"AM",code:"am_tin",description:"Armenia Tax Identification Number",example:"2538904",impactsTaxCalculation:!0},{country:"Aruba",iso:"AW",code:"aw_tin",description:"Aruba Tax Identification Number",example:"12345678",impactsTaxCalculation:!0},{country:"Australia",iso:"AU",code:"au_abn",description:"Australian Business Number (AU ABN)",example:"12345678912",impactsTaxCalculation:!0},{country:"Australia",iso:"AU",code:"au_arn",description:"Australian Taxation Office Reference Number",example:"123456789123",impactsTaxCalculation:!1},{country:"Austria",iso:"AT",code:"eu_vat",description:"European VAT number",example:"ATU12345678",impactsTaxCalculation:!0},{country:"Azerbaijan",iso:"AZ",code:"az_tin",description:"Azerbaijan Tax Identification Number",example:"123456789",impactsTaxCalculation:!0},{country:"Bahamas",iso:"BS",code:"bs_tin",description:"Bahamas Tax Identification Number",example:"123.456.789",impactsTaxCalculation:!1},{country:"Bahrain",iso:"BH",code:"bh_vat",description:"Bahraini VAT Number",example:"123456789012345",impactsTaxCalculation:!0},{country:"Bangladesh",iso:"BD",code:"bd_bin",description:"Bangladesh Business Identification Number",example:"123456789-0123",impactsTaxCalculation:!0},{country:"Barbados",iso:"BB",code:"bb_tin",description:"Barbados Tax Identification Number",example:"1123456789012",impactsTaxCalculation:!1},{country:"Belarus",iso:"BY",code:"by_tin",description:"Belarus TIN Number",example:"123456789",impactsTaxCalculation:!0},{country:"Belgium",iso:"BE",code:"eu_vat",description:"European VAT number",example:"BE0123456789",impactsTaxCalculation:!0},{country:"Benin",iso:"BJ",code:"bj_ifu",description:"Benin Tax Identification Number (Identifiant Fiscal Unique)",example:"1234567890123",impactsTaxCalculation:!0},{country:"Bolivia",iso:"BO",code:"bo_tin",description:"Bolivian tax ID",example:"123456789",impactsTaxCalculation:!1},{country:"Bosnia & Herzegovina",iso:"BA",code:"ba_tin",description:"Bosnia and Herzegovina Tax Identification Number",example:"123456789012",impactsTaxCalculation:!0},{country:"Brazil",iso:"BR",code:"br_cnpj",description:"Brazilian CNPJ number",example:"01.234.456/5432-10",impactsTaxCalculation:!1},{country:"Brazil",iso:"BR",code:"br_cpf",description:"Brazilian CPF number",example:"123.456.789-87",impactsTaxCalculation:!1},{country:"Bulgaria",iso:"BG",code:"bg_uic",description:"Bulgaria Unified Identification Code",example:"123456789",impactsTaxCalculation:!1},{country:"Bulgaria",iso:"BG",code:"eu_vat",description:"European VAT number",example:"BG0123456789",impactsTaxCalculation:!0},{country:"Burkina Faso",iso:"BF",code:"bf_ifu",description:"Burkina Faso Tax Identification Number (Numéro d'Identifiant Fiscal Unique)",example:"12345678A",impactsTaxCalculation:!0},{country:"Cambodia",iso:"KH",code:"kh_tin",description:"Cambodia Tax Identification Number",example:"1001-123456789",impactsTaxCalculation:!0},{country:"Cameroon",iso:"CM",code:"cm_niu",description:"Cameroon Tax Identification Number (Numéro d'Identifiant fiscal Unique)",example:"M123456789000L",impactsTaxCalculation:!1},{country:"Canada",iso:"CA",code:"ca_bn",description:"Canadian BN",example:"123456789",impactsTaxCalculation:!1},{country:"Canada",iso:"CA",code:"ca_gst_hst",description:"Canadian GST/HST number",example:"123456789RT0002",impactsTaxCalculation:!0},{country:"Canada",iso:"CA",code:"ca_pst_bc",description:"Canadian PST number (British Columbia)",example:"PST-1234-5678",impactsTaxCalculation:!1},{country:"Canada",iso:"CA",code:"ca_pst_mb",description:"Canadian PST number (Manitoba)",example:"123456-7",impactsTaxCalculation:!1},{country:"Canada",iso:"CA",code:"ca_pst_sk",description:"Canadian PST number (Saskatchewan)",example:"1234567",impactsTaxCalculation:!1},{country:"Canada",iso:"CA",code:"ca_qst",description:"Canadian QST number (Québec)",example:"1234567890TQ1234",impactsTaxCalculation:!0},{country:"Cape Verde",iso:"CV",code:"cv_nif",description:"Cape Verde Tax Identification Number (Número de Identificação Fiscal)",example:"213456789",impactsTaxCalculation:!1},{country:"Chile",iso:"CL",code:"cl_tin",description:"Chilean TIN",example:"12.345.678-K",impactsTaxCalculation:!0},{country:"China",iso:"CN",code:"cn_tin",description:"Chinese tax ID",example:"123456789012345678",impactsTaxCalculation:!1},{country:"Colombia",iso:"CO",code:"co_nit",description:"Colombian NIT number",example:"123.456.789-0",impactsTaxCalculation:!1},{country:"Congo - Kinshasa",iso:"CD",code:"cd_nif",description:"Congo (DR) Tax Identification Number (Número de Identificação Fiscal)",example:"A0123456M",impactsTaxCalculation:!1},{country:"Costa Rica",iso:"CR",code:"cr_tin",description:"Costa Rican tax ID",example:"1-234-567890",impactsTaxCalculation:!1},{country:"Croatia",iso:"HR",code:"eu_vat",description:"European VAT number",example:"HR12345678912",impactsTaxCalculation:!0},{country:"Croatia",iso:"HR",code:"hr_oib",description:"Croatian Personal Identification Number",example:"12345678901",impactsTaxCalculation:!1},{country:"Cyprus",iso:"CY",code:"eu_vat",description:"European VAT number",example:"CY12345678Z",impactsTaxCalculation:!0},{country:"Czech Republic",iso:"CZ",code:"eu_vat",description:"European VAT number",example:"CZ1234567890",impactsTaxCalculation:!0},{country:"Denmark",iso:"DK",code:"eu_vat",description:"European VAT number",example:"DK12345678",impactsTaxCalculation:!0},{country:"Dominican Republic",iso:"DO",code:"do_rcn",description:"Dominican RCN number",example:"123-4567890-1",impactsTaxCalculation:!1},{country:"Ecuador",iso:"EC",code:"ec_ruc",description:"Ecuadorian RUC number",example:"1234567890001",impactsTaxCalculation:!1},{country:"Egypt",iso:"EG",code:"eg_tin",description:"Egyptian Tax Identification Number",example:"123456789",impactsTaxCalculation:!0},{country:"El Salvador",iso:"SV",code:"sv_nit",description:"El Salvadorian NIT number",example:"1234-567890-123-4",impactsTaxCalculation:!1},{country:"Estonia",iso:"EE",code:"eu_vat",description:"European VAT number",example:"EE123456789",impactsTaxCalculation:!0},{country:"Ethiopia",iso:"ET",code:"et_tin",description:"Ethiopia Tax Identification Number",example:"1234567890",impactsTaxCalculation:!0},{country:"EU",iso:"EU",code:"eu_oss_vat",description:"European One Stop Shop VAT number for non-Union scheme",example:"EU123456789",impactsTaxCalculation:!1},{country:"Finland",iso:"FI",code:"eu_vat",description:"European VAT number",example:"FI12345678",impactsTaxCalculation:!0},{country:"France",iso:"FR",code:"eu_vat",description:"European VAT number",example:"FRAB123456789",impactsTaxCalculation:!0},{country:"Georgia",iso:"GE",code:"ge_vat",description:"Georgian VAT",example:"123456789",impactsTaxCalculation:!0},{country:"Germany",iso:"DE",code:"de_stn",description:"German Tax Number (Steuernummer)",example:"1234567890",impactsTaxCalculation:!1},{country:"Germany",iso:"DE",code:"eu_vat",description:"European VAT number",example:"DE123456789",impactsTaxCalculation:!0},{country:"Greece",iso:"GR",code:"eu_vat",description:"European VAT number",example:"EL123456789",impactsTaxCalculation:!0},{country:"Guinea",iso:"GN",code:"gn_nif",description:"Guinea Tax Identification Number (Número de Identificação Fiscal)",example:"123456789",impactsTaxCalculation:!0},{country:"Hong Kong",iso:"HK",code:"hk_br",description:"Hong Kong BR number",example:"12345678",impactsTaxCalculation:!1},{country:"Hungary",iso:"HU",code:"eu_vat",description:"European VAT number",example:"HU12345678",impactsTaxCalculation:!0},{country:"Hungary",iso:"HU",code:"hu_tin",description:"Hungary tax number (adószám)",example:"12345678-1-23",impactsTaxCalculation:!1},{country:"Iceland",iso:"IS",code:"is_vat",description:"Icelandic VAT",example:"123456",impactsTaxCalculation:!0},{country:"India",iso:"IN",code:"in_gst",description:"Indian GST number",example:"12ABCDE3456FGZH",impactsTaxCalculation:!0},{country:"Indonesia",iso:"ID",code:"id_npwp",description:"Indonesian NPWP number",example:"012.345.678.9-012.345",impactsTaxCalculation:!1},{country:"Ireland",iso:"IE",code:"eu_vat",description:"European VAT number",example:"IE1234567AB",impactsTaxCalculation:!0},{country:"Israel",iso:"IL",code:"il_vat",description:"Israel VAT",example:"12345",impactsTaxCalculation:!1},{country:"Italy",iso:"IT",code:"eu_vat",description:"European VAT number",example:"IT12345678912",impactsTaxCalculation:!0},{country:"Japan",iso:"JP",code:"jp_cn",description:"Japanese Corporate Number (*Hōjin Bangō*)",example:"1234567891234",impactsTaxCalculation:!1},{country:"Japan",iso:"JP",code:"jp_rn",description:"Japanese Registered Foreign Businesses' Registration Number (*Tōroku Kokugai Jigyōsha no Tōroku Bangō*)",example:"12345",impactsTaxCalculation:!1},{country:"Japan",iso:"JP",code:"jp_trn",description:"Japanese Tax Registration Number (*Tōroku Bangō*)",example:"T1234567891234",impactsTaxCalculation:!0},{country:"Kazakhstan",iso:"KZ",code:"kz_bin",description:"Kazakhstani Business Identification Number",example:"123456789012",impactsTaxCalculation:!0},{country:"Kenya",iso:"KE",code:"ke_pin",description:"Kenya Revenue Authority Personal Identification Number",example:"P000111111A",impactsTaxCalculation:!1},{country:"Kyrgyzstan",iso:"KG",code:"kg_tin",description:"Kyrgyzstan Tax Identification Number",example:"12345678901234",impactsTaxCalculation:!1},{country:"Laos",iso:"LA",code:"la_tin",description:"Laos Tax Identification Number",example:"123456789-000",impactsTaxCalculation:!1},{country:"Latvia",iso:"LV",code:"eu_vat",description:"European VAT number",example:"LV12345678912",impactsTaxCalculation:!0},{country:"Liechtenstein",iso:"LI",code:"li_uid",description:"Liechtensteinian UID number",example:"CHE123456789",impactsTaxCalculation:!1},{country:"Liechtenstein",iso:"LI",code:"li_vat",description:"Liechtensteinian VAT number",example:"12345",impactsTaxCalculation:!0},{country:"Lithuania",iso:"LT",code:"eu_vat",description:"European VAT number",example:"LT123456789123",impactsTaxCalculation:!0},{country:"Luxembourg",iso:"LU",code:"eu_vat",description:"European VAT number",example:"LU12345678",impactsTaxCalculation:!0},{country:"Malaysia",iso:"MY",code:"my_frp",description:"Malaysian FRP number",example:"12345678",impactsTaxCalculation:!1},{country:"Malaysia",iso:"MY",code:"my_itn",description:"Malaysian ITN",example:"C 1234567890",impactsTaxCalculation:!1},{country:"Malaysia",iso:"MY",code:"my_sst",description:"Malaysian SST number",example:"A12-3456-78912345",impactsTaxCalculation:!1},{country:"Malta",iso:"MT",code:"eu_vat",description:"European VAT number",example:"MT12345678",impactsTaxCalculation:!0},{country:"Mauritania",iso:"MR",code:"mr_nif",description:"Mauritania Tax Identification Number (Número de Identificação Fiscal)",example:"12345678",impactsTaxCalculation:!1},{country:"Mexico",iso:"MX",code:"mx_rfc",description:"Mexican RFC number",example:"ABC010203AB9",impactsTaxCalculation:!1},{country:"Moldova",iso:"MD",code:"md_vat",description:"Moldova VAT Number",example:"1234567",impactsTaxCalculation:!0},{country:"Montenegro",iso:"ME",code:"me_pib",description:"Montenegro PIB Number",example:"12345678",impactsTaxCalculation:!1},{country:"Morocco",iso:"MA",code:"ma_vat",description:"Morocco VAT Number",example:"12345678",impactsTaxCalculation:!0},{country:"Nepal",iso:"NP",code:"np_pan",description:"Nepal PAN Number",example:"123456789",impactsTaxCalculation:!0},{country:"Netherlands",iso:"NL",code:"eu_vat",description:"European VAT number",example:"NL123456789B12",impactsTaxCalculation:!0},{country:"New Zealand",iso:"NZ",code:"nz_gst",description:"New Zealand GST number",example:"123456789",impactsTaxCalculation:!0},{country:"Nigeria",iso:"NG",code:"ng_tin",description:"Nigerian Tax Identification Number",example:"12345678-0001",impactsTaxCalculation:!1},{country:"North Macedonia",iso:"MK",code:"mk_vat",description:"North Macedonia VAT Number",example:"MK1234567890123",impactsTaxCalculation:!0},{country:"Norway",iso:"NO",code:"no_vat",description:"Norwegian VAT number",example:"123456789MVA",impactsTaxCalculation:!0},{country:"Norway",iso:"NO",code:"no_voec",description:"Norwegian VAT on e-commerce number",example:"1234567",impactsTaxCalculation:!1},{country:"Oman",iso:"OM",code:"om_vat",description:"Omani VAT Number",example:"OM1234567890",impactsTaxCalculation:!0},{country:"Peru",iso:"PE",code:"pe_ruc",description:"Peruvian RUC number",example:"12345678901",impactsTaxCalculation:!0},{country:"Philippines",iso:"PH",code:"ph_tin",description:"Philippines Tax Identification Number",example:"123456789012",impactsTaxCalculation:!0},{country:"Poland",iso:"PL",code:"eu_vat",description:"European VAT number",example:"PL1234567890",impactsTaxCalculation:!0},{country:"Portugal",iso:"PT",code:"eu_vat",description:"European VAT number",example:"PT123456789",impactsTaxCalculation:!0},{country:"Romania",iso:"RO",code:"eu_vat",description:"European VAT number",example:"RO1234567891",impactsTaxCalculation:!0},{country:"Romania",iso:"RO",code:"ro_tin",description:"Romanian tax ID number",example:"1234567890123",impactsTaxCalculation:!1},{country:"Russia",iso:"RU",code:"ru_inn",description:"Russian INN",example:"1234567891",impactsTaxCalculation:!0},{country:"Russia",iso:"RU",code:"ru_kpp",description:"Russian KPP",example:"123456789",impactsTaxCalculation:!0},{country:"Saudi Arabia",iso:"SA",code:"sa_vat",description:"Saudi Arabia VAT",example:"123456789012345",impactsTaxCalculation:!0},{country:"Senegal",iso:"SN",code:"sn_ninea",description:"Senegal NINEA Number",example:"12345672A2",impactsTaxCalculation:!1},{country:"Serbia",iso:"RS",code:"rs_pib",description:"Serbian PIB number",example:"123456789",impactsTaxCalculation:!1},{country:"Singapore",iso:"SG",code:"sg_gst",description:"Singaporean GST",example:"M12345678X",impactsTaxCalculation:!0},{country:"Singapore",iso:"SG",code:"sg_uen",description:"Singaporean UEN",example:"123456789F",impactsTaxCalculation:!1},{country:"Slovakia",iso:"SK",code:"eu_vat",description:"European VAT number",example:"SK1234567891",impactsTaxCalculation:!0},{country:"Slovenia",iso:"SI",code:"eu_vat",description:"European VAT number",example:"SI12345678",impactsTaxCalculation:!0},{country:"Slovenia",iso:"SI",code:"si_tin",description:"Slovenia tax number (davčna številka)",example:"12345678",impactsTaxCalculation:!1},{country:"South Africa",iso:"ZA",code:"za_vat",description:"South African VAT number",example:"4123456789",impactsTaxCalculation:!0},{country:"South Korea",iso:"KR",code:"kr_brn",description:"Korean BRN",example:"123-45-67890",impactsTaxCalculation:!0},{country:"Spain",iso:"ES",code:"es_cif",description:"Spanish NIF number (previously Spanish CIF number)",example:"A12345678",impactsTaxCalculation:!1},{country:"Spain",iso:"ES",code:"eu_vat",description:"European VAT number",example:"ESA1234567Z",impactsTaxCalculation:!0},{country:"Suriname",iso:"SR",code:"sr_fin",description:"Suriname FIN Number",example:"1234567890",impactsTaxCalculation:!0},{country:"Sweden",iso:"SE",code:"eu_vat",description:"European VAT number",example:"SE123456789123",impactsTaxCalculation:!0},{country:"Switzerland",iso:"CH",code:"ch_uid",description:"Switzerland UID number",example:"CHE-123.456.789 HR",impactsTaxCalculation:!1},{country:"Switzerland",iso:"CH",code:"ch_vat",description:"Switzerland VAT number",example:"CHE-123.456.789 MWST",impactsTaxCalculation:!0},{country:"Taiwan",iso:"TW",code:"tw_vat",description:"Taiwanese VAT",example:"12345678",impactsTaxCalculation:!0},{country:"Tajikistan",iso:"TJ",code:"tj_tin",description:"Tajikistan Tax Identification Number",example:"123456789",impactsTaxCalculation:!0},{country:"Tanzania",iso:"TZ",code:"tz_vat",description:"Tanzania VAT Number",example:"12345678A",impactsTaxCalculation:!0},{country:"Thailand",iso:"TH",code:"th_vat",description:"Thai VAT",example:"1234567891234",impactsTaxCalculation:!0},{country:"Turkey",iso:"TR",code:"tr_tin",description:"Turkish Tax Identification Number",example:"123456789",impactsTaxCalculation:!0},{country:"Uganda",iso:"UG",code:"ug_tin",description:"Uganda Tax Identification Number",example:"1014751879",impactsTaxCalculation:!0},{country:"Ukraine",iso:"UA",code:"ua_vat",description:"Ukrainian VAT",example:"123456789",impactsTaxCalculation:!0},{country:"United Arab Emirates",iso:"AE",code:"ae_trn",description:"United Arab Emirates TRN",example:"123456789012345",impactsTaxCalculation:!0},{country:"United Kingdom",iso:"GB",code:"eu_vat",description:"Northern Ireland VAT number",example:"XI123456789",impactsTaxCalculation:!0},{country:"United Kingdom",iso:"GB",code:"gb_vat",description:"United Kingdom VAT number",example:"GB123456789",impactsTaxCalculation:!0},{country:"United States",iso:"US",code:"us_ein",description:"United States EIN",example:"12-3456789",impactsTaxCalculation:!1},{country:"Uruguay",iso:"UY",code:"uy_ruc",description:"Uruguayan RUC number",example:"123456789012",impactsTaxCalculation:!0},{country:"Uzbekistan",iso:"UZ",code:"uz_tin",description:"Uzbekistan TIN Number",example:"123456789",impactsTaxCalculation:!1},{country:"Uzbekistan",iso:"UZ",code:"uz_vat",description:"Uzbekistan VAT Number",example:"123456789012",impactsTaxCalculation:!0},{country:"Venezuela",iso:"VE",code:"ve_rif",description:"Venezuelan RIF number",example:"A-12345678-9",impactsTaxCalculation:!1},{country:"Vietnam",iso:"VN",code:"vn_tin",description:"Vietnamese tax ID number",example:"1234567890",impactsTaxCalculation:!1},{country:"Zambia",iso:"ZM",code:"zm_tin",description:"Zambia Tax Identification Number",example:"1004751879",impactsTaxCalculation:!1},{country:"Zimbabwe",iso:"ZW",code:"zw_tin",description:"Zimbabwe Tax Identification Number",example:"1234567890",impactsTaxCalculation:!1}];var g=i(64447);const v={bankAccount:"bankAccount",card:"card",payPal:"payPal"},m={accountCredit:"accountCredit"},f=e=>Object.values(v).includes(e),y=e=>{switch(e){case"bankAccount":return g.eq.BankAccount;case"card":return g.eq.Card;case"payPal":return g.eq.PayPal}}},41226(e,t,i){"use strict";i.d(t,{g:()=>a});var n=i(7861),r=i(56962),s=i(11217),o=i(69855);class a{constructor(e,t){this.logService=e,this.toastService=t}handleError(e,t=""){throw this.logService.error(e),e instanceof n._&&this.toastService.showToast({variant:"error",title:t,message:e.getSingleMessage()}),e}showSuccess(e,t=""){this.toastService.showToast({variant:"success",title:t,message:e})}showError(e,t=""){this.toastService.showToast({variant:"error",title:t,message:e})}}a.ɵfac=function(e){return new(e||a)(s.KVO(r.K),s.KVO(o.f))},a.ɵprov=s.jDH({token:a,factory:a.ɵfac,providedIn:"root"})},33189(e,t,i){"use strict";i.d(t,{A:()=>g});var n=i(72135),r=i(83604),s=i(68711),o=i(69783),a=i(191),l=i(67553),c=i(7356),d=i(3633),u=i(64447),h=i(11217),A=i(18499),p=i(35500);class g{constructor(e,t,i){this.policyService=e,this.organizationService=t,this.accountService=i,this.organizations$=this.accountService.activeAccount$.pipe((0,a.n)(e=>(null==e?void 0:e.id)?this.organizationService.organizations$(null==e?void 0:e.id):(0,r.of)()))}get showFreeFamilies$(){return this.getFreeFamiliesVisibility$()}showSponsoredFamiliesDropdown$(e){const t=e.pipe((0,o.T)(e=>e.productTierType===u.K_.Enterprise));return this.accountService.activeAccount$.pipe(d.F6,(0,a.n)(i=>{const r=this.policyService.policiesByType$(c.tt.FreeFamiliesSponsorship,i);return(0,n.z)([t,e,r]).pipe((0,o.T)(([e,t,i])=>{const n=i.some(e=>e.organizationId===t.id&&e.enabled);return e&&!n&&t.useAdminSponsoredFamilies&&(t.isAdmin||t.isOwner||t.canManageUsers)}))}))}getFreeFamiliesVisibility$(){return(0,n.z)([this.checkEnterpriseOrganizationsAndFetchPolicy(),this.organizations$]).pipe((0,o.T)(([e,t])=>this.shouldShowFreeFamilyLink(e,t)))}shouldShowFreeFamilyLink(e,t){if(!e)return!1;const{isFreeFamilyPolicyEnabled:i}=e;return t.some(e=>e.canManageSponsorships)&&!i}checkEnterpriseOrganizationsAndFetchPolicy(){return this.organizations$.pipe((0,s.p)(e=>Array.isArray(e)&&e.length>0),(0,a.n)(e=>this.fetchEnterpriseOrganizationPolicy(e)))}fetchEnterpriseOrganizationPolicy(e){const{belongToOneEnterpriseOrgs:t,belongToMultipleEnterpriseOrgs:i}=this.evaluateEnterpriseOrganizations(e),n=e.filter(e=>e.canManageSponsorships).map(e=>e.id);return 0===n.length?(0,r.of)({isFreeFamilyPolicyEnabled:!1,belongToOneEnterpriseOrgs:t,belongToMultipleEnterpriseOrgs:i}):this.accountService.activeAccount$.pipe(d.F6,(0,a.n)(e=>this.policyService.policiesByType$(c.tt.FreeFamiliesSponsorship,e)),(0,o.T)(e=>({isFreeFamilyPolicyEnabled:n.every(t=>e.some(e=>e.organizationId===t&&e.enabled)),belongToOneEnterpriseOrgs:t,belongToMultipleEnterpriseOrgs:i})))}evaluateEnterpriseOrganizations(e){const t=e.filter(e=>e.canManageSponsorships).length;return{belongToOneEnterpriseOrgs:1===t,belongToMultipleEnterpriseOrgs:t>1}}}g.ɵfac=function(e){return new(e||g)(h.KVO(A.m),h.KVO(l.PV),h.KVO(p.D))},g.ɵprov=h.jDH({token:g,factory:g.ɵfac,providedIn:"root"})},23101(e,t,i){"use strict";i.d(t,{IJ:()=>o,qb:()=>l,d$:()=>u});var n=i(41226),r=i(14041),s=i(11217);class o{}o.ɵfac=function(e){return new(e||o)},o.ɵmod=r.$C({type:o}),o.ɵinj=s.G2t({providers:[n.g]});var a=i(56962);class l{constructor(e){this.logService=e}createDropin(){window.setTimeout(()=>{window.braintree.dropin.create({authorization:"",container:this.containerId,paymentOptionPriority:["paypal"],paypal:{flow:"vault",buttonStyle:{label:"pay",size:"medium",shape:"pill",color:"blue",tagline:"false"}}},(e,t)=>{null==e?this.braintree=t:this.logService.error(e)})},250)}loadBraintree(e,t){const i=window.document.createElement("script");i.id="dropin-script",i.src="scripts/dropin.js?cache=r5ktz",i.async=!0,t&&(i.onload=()=>this.createDropin()),this.containerId=e,window.document.head.appendChild(i)}requestPaymentMethod(){return new Promise((e,t)=>{this.braintree.requestPaymentMethod((i,n)=>{i?(this.logService.error(i),t(i.message)):e(n.nonce)})})}unloadBraintree(){const e=window.document.getElementById("dropin-script");window.document.head.removeChild(e),window.setTimeout(()=>{const e=Array.from(window.document.head.querySelectorAll("script")).filter(e=>null!=e.src&&e.src.indexOf("paypal")>-1);e.forEach(e=>{try{window.document.head.removeChild(e)}catch(t){this.logService.error(t)}});const t=window.document.head.querySelector("#braintree-dropin-stylesheet");if(null!=t)try{window.document.head.removeChild(t)}catch(i){this.logService.error(i)}},500)}}l.ɵfac=function(e){return new(e||l)(s.KVO(a.K))},l.ɵprov=s.jDH({token:l,factory:l.ɵfac,providedIn:o});var c=i(12012),d=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class u{constructor(e,t){this.apiService=e,this.logService=t,this.stripe=null,this.stripeScriptLoaded=!1,this.instanceCount=0,this.instances=new Map,this.createSetupIntent=e=>d(this,void 0,void 0,function*(){return yield this.apiService.send("POST",(()=>{switch(e){case"bankAccount":return"/setup-intent/bank-account";case"card":return"/setup-intent/card"}})(),null,!0,!0)})}loadStripe(e,t,i){if(this.stripeScriptLoaded)this.initializeInstance(e,t,i);else if(window.document.getElementById("stripe-script"))this.initializeInstance(e,t,i);else{const n=window.document.createElement("script");n.id="stripe-script",n.src="https://js.stripe.com/v3?advancedFraudSignals=false",n.onload=()=>d(this,void 0,void 0,function*(){const n=window;this.stripe=n.Stripe(""),this.stripeScriptLoaded=!0,this.initializeInstance(e,t,i)}),window.document.head.appendChild(n)}}initializeInstance(e,t,i,n=1){if(!this.stripe)return void(n<10?(this.logService.warning(`Stripe not yet loaded for instance ${e}, retrying attempt ${n}...`),setTimeout(()=>this.initializeInstance(e,t,i,n+1),50)):this.logService.error(`Stripe failed to load for instance ${e} after ${n} attempts`));const r=this.stripe.elements();this.instances.set(e,{elements:r,elementIds:t}),this.instanceCount++,setTimeout(()=>{r.create("cardNumber",this.getElementOptions("cardNumber")),r.create("cardExpiry",this.getElementOptions("cardExpiry")),r.create("cardCvc",this.getElementOptions("cardCvc")),i&&this.mountElements(e)},50)}mountElements(e,t=1){setTimeout(()=>{const i=this.instances.get(e);if(i)if(i.elements){const n=i.elements.getElement("cardNumber"),r=i.elements.getElement("cardExpiry"),s=i.elements.getElement("cardCvc");[n,r,s].some(e=>!e)?(this.logService.warning(`Some Stripe card elements for instance ${e} are missing, retrying for attempt ${t}...`),this.mountElements(e,t+1)):(n.mount(i.elementIds.cardNumber),r.mount(i.elementIds.cardExpiry),s.mount(i.elementIds.cardCvc))}else this.logService.warning(`Stripe elements for instance ${e} are missing, retrying for attempt ${t}...`),this.mountElements(e,t+1);else t<10?(this.logService.warning(`Stripe instance ${e} not found, retrying for attempt ${t}...`),this.mountElements(e,t+1)):this.logService.error(`Stripe instance ${e} not found after ${t} attempts`)},100)}setupBankAccountPaymentMethod(e,t,i){return d(this,arguments,void 0,function*(e,{accountHolderName:t,routingNumber:i,accountNumber:n,accountHolderType:r},s){const o={payment_method:{us_bank_account:{routing_number:i,account_number:n,account_holder_type:r},billing_details:{name:t}}};s&&(o.payment_method.billing_details.address={country:s.country,postal_code:s.postalCode});const a=yield this.stripe.confirmUsBankAccountSetup(e,o);if(a.error||a.setupIntent&&"requires_action"!==a.setupIntent.status)throw this.logService.error(a.error),a.error;return a.setupIntent.payment_method})}setupCardPaymentMethod(e,t,i){return d(this,void 0,void 0,function*(){const n=this.instances.get(e);if(!n){const t=Array.from(this.instances.keys());throw this.logService.error(`Stripe instance ${e} not found. Available instances: [${t.join(", ")}]. This may occur if the component was destroyed during the payment flow.`),new Error("Payment method initialization failed. Please try again.")}const r={payment_method:{card:n.elements.getElement("cardNumber")}};i&&(r.payment_method.billing_details={address:{country:i.country,postal_code:i.postalCode}});const s=yield this.stripe.confirmCardSetup(t,r);if(s.error||s.setupIntent&&"succeeded"!==s.setupIntent.status)throw this.logService.error(s.error),s.error;return s.setupIntent.payment_method})}unloadStripe(e){const t=this.instances.get(e);if(t){if(t.elements)try{const e=t.elements.getElement("cardNumber"),i=t.elements.getElement("cardExpiry"),n=t.elements.getElement("cardCvc");e&&e.unmount(),i&&i.unmount(),n&&n.unmount()}catch(i){this.logService.error(`Error unmounting Stripe elements for instance ${e}:`,i)}if(this.instances.delete(e),this.instanceCount--,this.instanceCount<=0){this.instanceCount<0&&this.logService.error(`Stripe instance count became negative (${this.instanceCount}). This indicates a reference counting bug.`),this.instanceCount=0,this.stripeScriptLoaded=!1,this.stripe=null;const e=window.document.getElementById("stripe-script");e&&window.document.head.removeChild(e),window.setTimeout(()=>{Array.from(window.document.querySelectorAll("iframe")).filter(e=>null!=e.src&&e.src.indexOf("stripe")>-1).forEach(e=>{try{e.remove()}catch(i){this.logService.error(i)}})},500)}}}getElementOptions(e){const t={style:{base:{color:null,fontFamily:'Inter, "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontSize:"16px",fontSmoothing:"antialiased",lineHeight:"1.5",padding:"8px 12px","::placeholder":{color:null}},invalid:{color:null}},classes:{base:"tw-stripe-form-control",focus:"is-focused",empty:"is-empty",invalid:"is-invalid"}};t.style.base.fontWeight="500",["cardNumber","cardCvc"].includes(e)&&(t.placeholder="");const i=getComputedStyle(document.documentElement);return t.style.base.color=`rgb(${i.getPropertyValue("--color-text-main")})`,t.style.base["::placeholder"].color=`rgb(${i.getPropertyValue("--color-text-muted")})`,t.style.invalid.color=`rgb(${i.getPropertyValue("--color-text-main")})`,t.style.invalid.borderColor=`rgb(${i.getPropertyValue("--color-danger-600")})`,t}}u.ɵfac=function(e){return new(e||u)(s.KVO(c.G),s.KVO(a.K))},u.ɵprov=s.jDH({token:u,factory:u.ɵfac,providedIn:"root"})},69022(e,t,i){"use strict";i.d(t,{s:()=>v});var n=i(87806),r=i(98569),s=i(61065),o=i(83604),a=i(69783),l=i(6933),c=i(191),d=i(82468),u=i(7861),h=i(92954),A=i(11728),p=i(11217),g=i(1601);class v{constructor(e,t){this.accountBillingClient=e,this.configService=t,this.refreshTrigger=new n.B,this.getEligibleDiscountsForTier$=e=>this.getEligibleDiscounts$().pipe((0,a.T)(t=>t.filter(t=>t.tierEligibility[e])))}refresh(){this.refreshTrigger.next()}getEligibleDiscounts$(){return this.configService.getFeatureFlag$(d.TO.PM29108_EnablePersonalDiscounts).pipe((0,l.t)({refCount:!0,bufferSize:1})).pipe((0,c.n)(e=>e?(0,s.h)(this.fetchDiscounts$(),this.refreshTrigger.pipe((0,c.n)(()=>this.fetchDiscounts$(!0)))).pipe((0,l.t)({refCount:!0,bufferSize:1})):(0,o.of)([])))}isDiscountExpiredError(e){return e instanceof u._&&400===e.statusCode&&"Discount expired. Please review your cart total and try again"===e.message}mapToCartDiscount(e){return null!=e.percentOff?{type:h.Tu.PercentOff,value:e.percentOff}:null!=e.amountOff?{type:h.Tu.AmountOff,value:e.amountOff/100}:null}fetchDiscounts$(e=!1){return!e&&this.cachedDiscounts$||(this.cachedDiscounts$=(0,r.H)(this.accountBillingClient.getApplicableDiscounts())),this.cachedDiscounts$}}v.ɵfac=function(e){return new(e||v)(p.KVO(A.c),p.KVO(g.w))},v.ɵprov=p.jDH({token:v,factory:v.ɵfac,providedIn:"root"})},37806(e,t,i){"use strict";i.d(t,{r:()=>d});var n=i(90097),r=i(92954),s=i(81098),o=i(72932),a=i(25065),l=i(14041),c=i(11217);class d{}d.ɵfac=function(e){return new(e||d)},d.ɵmod=l.$C({type:d}),d.ɵinj=c.G2t({imports:[a.G,o.G,n.H,s.Pu,s.vU,r.UJ,a.G]})},62482(e,t,i){"use strict";i.d(t,{Fk:()=>r.F,rd:()=>n.r});var n=i(37806),r=i(91517)},91517(e,t,i){"use strict";i.d(t,{m:()=>V,F:()=>x});var n=i(84210),r=i(87806),s=i(34949),o=i(29236);const a=i(82392).JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 580 104" fill="none">
|
|
<path class="tw-fill-text-alt2" d="M102.539 52.27c0 28.315-22.954 51.269-51.27 51.269C22.955 103.539 0 80.585 0 52.269 0 23.955 22.954 1 51.27 1c28.315 0 51.269 22.954 51.269 51.27Z"/>
|
|
<path class="tw-fill-bw-blue" fill-rule="evenodd" d="M75.971 26.765c-.516-.49-1.111-.777-1.786-.777H28.39c-.675 0-1.31.287-1.786.777-.516.49-.754 1.145-.754 1.84v31.47c0 2.371.437 4.66 1.31 6.95.873 2.288 1.984 4.332 3.294 6.13s2.897 3.515 4.682 5.232a62.036 62.036 0 0 0 5 4.25 82.731 82.731 0 0 0 4.802 3.188c1.667.981 2.857 1.676 3.572 2.003.714.368 1.27.613 1.706.817a2.26 2.26 0 0 0 1.032.246 2.26 2.26 0 0 0 1.032-.246c.436-.204.992-.45 1.706-.817.715-.368 1.905-1.022 3.572-2.003a54.848 54.848 0 0 0 4.801-3.188c1.548-1.103 3.215-2.534 5.04-4.25 1.826-1.717 3.373-3.434 4.683-5.232 1.31-1.798 2.42-3.842 3.294-6.13.912-2.29 1.31-4.62 1.31-6.95v-31.47c.04-.695-.239-1.309-.715-1.84Zm-5.913 33.597c0 11.403-18.77 21.172-18.77 21.172V32.732h18.77v27.63Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-text-alt2" d="M142.208 70.81c-2.804 0-5.243-.511-7.319-1.533-2.075-1.023-3.678-2.447-4.806-4.272-1.129-1.826-1.694-3.943-1.694-6.353h4.807c0 1.497.346 2.884 1.038 4.162.692 1.241 1.693 2.246 3.004 3.012 1.347.73 3.004 1.096 4.97 1.096 2.585 0 4.588-.621 6.008-1.862 1.42-1.242 2.13-2.794 2.13-4.656 0-1.533-.327-2.756-.983-3.669-.655-.95-1.547-1.716-2.676-2.3-1.092-.585-2.367-1.096-3.823-1.534a126.43 126.43 0 0 1-4.479-1.479c-2.95-1.022-5.134-2.281-6.555-3.778-1.42-1.534-2.13-3.524-2.13-5.97-.036-2.045.437-3.852 1.42-5.422.984-1.607 2.367-2.848 4.151-3.724 1.821-.913 3.969-1.37 6.446-1.37 2.439 0 4.551.457 6.335 1.37 1.821.913 3.223 2.172 4.206 3.779 1.02 1.606 1.548 3.432 1.584 5.476h-4.806c0-1.058-.274-2.099-.82-3.121-.546-1.06-1.383-1.917-2.512-2.574-1.093-.658-2.476-.986-4.151-.986-2.076-.037-3.787.493-5.135 1.588-1.31 1.095-1.966 2.61-1.966 4.546 0 1.643.455 2.903 1.366 3.779.946.876 2.257 1.606 3.932 2.19 1.675.548 3.605 1.187 5.79 1.917 1.821.657 3.459 1.424 4.916 2.3 1.456.877 2.585 2.009 3.386 3.396.838 1.388 1.256 3.158 1.256 5.313 0 1.825-.473 3.56-1.42 5.203-.946 1.606-2.385 2.92-4.315 3.943-1.893 1.022-4.278 1.533-7.155 1.533ZM172.42 70.81c-2.586 0-4.88-.584-6.882-1.752-2.003-1.205-3.587-2.867-4.752-4.984-1.129-2.118-1.694-4.619-1.694-7.503 0-2.848.565-5.331 1.694-7.449 1.128-2.154 2.694-3.815 4.697-4.983 2.039-1.205 4.388-1.808 7.046-1.808 2.622 0 4.879.603 6.773 1.807 1.93 1.169 3.404 2.72 4.424 4.656a13.201 13.201 0 0 1 1.529 6.243c0 .402-.018.803-.054 1.205v1.37h-21.575c.109 2.08.582 3.815 1.42 5.202.874 1.351 1.948 2.373 3.222 3.067a8.754 8.754 0 0 0 4.152 1.04c1.893 0 3.477-.437 4.751-1.314 1.275-.876 2.203-2.063 2.786-3.56h4.533c-.728 2.52-2.13 4.62-4.205 6.299-2.039 1.643-4.661 2.464-7.865 2.464Zm0-24.59c-2.185 0-4.133.675-5.845 2.026-1.675 1.314-2.64 3.25-2.895 5.805h17.042c-.11-2.446-.947-4.363-2.513-5.75-1.566-1.388-3.495-2.081-5.789-2.081ZM202.697 70.81c-2.585 0-4.916-.584-6.991-1.752-2.039-1.205-3.66-2.867-4.861-4.984-1.166-2.154-1.748-4.655-1.748-7.503s.582-5.331 1.748-7.449c1.201-2.154 2.822-3.815 4.861-4.983 2.075-1.205 4.406-1.808 6.991-1.808 3.204 0 5.899.84 8.084 2.52 2.221 1.679 3.623 3.924 4.206 6.736h-4.698c-.364-1.68-1.256-2.976-2.676-3.889-1.42-.949-3.077-1.424-4.97-1.424-1.53 0-2.968.384-4.315 1.15-1.348.767-2.44 1.917-3.278 3.45-.837 1.534-1.256 3.433-1.256 5.697 0 2.263.419 4.162 1.256 5.696.838 1.533 1.93 2.701 3.278 3.505a8.584 8.584 0 0 0 4.315 1.15c1.893 0 3.55-.457 4.97-1.37 1.42-.949 2.312-2.282 2.676-3.998h4.698c-.547 2.739-1.93 4.966-4.152 6.682-2.221 1.716-4.934 2.574-8.138 2.574ZM220.302 70.153V42.988h4.151l.382 5.203c.838-1.789 2.112-3.213 3.823-4.272 1.712-1.058 3.824-1.588 6.336-1.588v4.82h-1.256c-1.602 0-3.077.292-4.424.876-1.347.548-2.422 1.497-3.223 2.848-.801 1.35-1.201 3.213-1.201 5.586v13.692h-4.588ZM250.218 70.81c-2.585 0-4.879-.584-6.882-1.752-2.003-1.205-3.587-2.867-4.752-4.984-1.129-2.118-1.693-4.619-1.693-7.503 0-2.848.564-5.331 1.693-7.449 1.129-2.154 2.695-3.815 4.698-4.983 2.039-1.205 4.387-1.808 7.045-1.808 2.622 0 4.88.603 6.773 1.807 1.93 1.169 3.405 2.72 4.424 4.656 1.02 1.935 1.53 4.016 1.53 6.243 0 .402-.018.803-.055 1.205v1.37h-21.575c.11 2.08.583 3.815 1.421 5.202.874 1.351 1.948 2.373 3.222 3.067a8.753 8.753 0 0 0 4.151 1.04c1.894 0 3.478-.437 4.752-1.314 1.275-.876 2.203-2.063 2.786-3.56h4.533c-.728 2.52-2.13 4.62-4.206 6.299-2.039 1.643-4.66 2.464-7.865 2.464Zm0-24.59c-2.185 0-4.133.675-5.844 2.026-1.675 1.314-2.64 3.25-2.895 5.805h17.041c-.109-2.446-.946-4.363-2.512-5.75-1.566-1.388-3.496-2.081-5.79-2.081ZM277.841 70.153c-2.476 0-4.424-.603-5.844-1.807-1.42-1.205-2.13-3.378-2.13-6.518V46.877h-4.698v-3.889h4.698l.601-6.517h3.987v6.517h7.974v3.889h-7.974v14.951c0 1.716.346 2.885 1.038 3.505.691.585 1.911.877 3.659.877h2.84v3.943h-4.151ZM297.544 70.81c-3.241 0-5.936-.821-8.084-2.464-2.149-1.643-3.405-3.87-3.769-6.682h4.697c.292 1.424 1.038 2.665 2.24 3.724 1.238 1.022 2.895 1.534 4.97 1.534 1.93 0 3.35-.402 4.26-1.205.911-.84 1.366-1.826 1.366-2.958 0-1.643-.601-2.738-1.803-3.286-1.165-.547-2.822-1.04-4.97-1.478a28.114 28.114 0 0 1-4.369-1.26c-1.457-.548-2.677-1.315-3.66-2.3-.983-1.023-1.475-2.355-1.475-3.998 0-2.373.874-4.309 2.622-5.806 1.784-1.533 4.188-2.3 7.21-2.3 2.876 0 5.225.73 7.046 2.19 1.857 1.425 2.931 3.47 3.222 6.135h-4.533c-.182-1.388-.783-2.465-1.803-3.231-.983-.804-2.312-1.205-3.987-1.205-1.638 0-2.913.346-3.823 1.04-.874.694-1.311 1.607-1.311 2.739 0 1.095.564 1.953 1.693 2.574 1.165.62 2.731 1.15 4.697 1.588 1.675.365 3.259.821 4.752 1.37 1.53.51 2.768 1.295 3.714 2.354.984 1.022 1.475 2.52 1.475 4.491.037 2.446-.892 4.473-2.785 6.08-1.857 1.57-4.388 2.354-7.592 2.354ZM327.019 70.153V31.816h5.353l13.764 26.726 13.655-26.726h5.407v38.337h-4.588V40.031l-12.781 24.645h-3.441l-12.781-24.59v30.067h-4.588ZM380.911 70.81c-2.258 0-4.133-.383-5.626-1.15-1.493-.767-2.604-1.789-3.332-3.067a8.266 8.266 0 0 1-1.092-4.162c0-2.775 1.056-4.911 3.168-6.408 2.112-1.497 4.988-2.245 8.63-2.245h7.319v-.33c0-2.372-.619-4.161-1.857-5.366-1.238-1.242-2.895-1.862-4.971-1.862-1.784 0-3.332.456-4.642 1.369-1.275.876-2.076 2.172-2.404 3.888h-4.697c.182-1.971.838-3.633 1.966-4.983 1.166-1.352 2.604-2.374 4.315-3.068 1.712-.73 3.532-1.095 5.462-1.095 3.787 0 6.627 1.022 8.521 3.067 1.93 2.008 2.895 4.692 2.895 8.05v16.705h-4.097l-.273-4.874c-.765 1.533-1.893 2.848-3.386 3.943-1.457 1.059-3.423 1.588-5.899 1.588Zm.71-3.888c1.748 0 3.241-.457 4.479-1.37a8.66 8.66 0 0 0 2.895-3.56c.655-1.46.983-2.993.983-4.6v-.055h-6.937c-2.695 0-4.606.475-5.735 1.424-1.092.913-1.639 2.063-1.639 3.45 0 1.425.51 2.575 1.53 3.451 1.056.84 2.53 1.26 4.424 1.26ZM400.356 70.153V42.988h4.151l.273 4.875a9.86 9.86 0 0 1 3.769-4.053c1.639-.986 3.496-1.479 5.571-1.479 3.205 0 5.754.986 7.647 2.958 1.93 1.935 2.895 4.929 2.895 8.981v15.883h-4.588v-15.39c0-5.659-2.331-8.489-6.991-8.489-2.331 0-4.279.858-5.845 2.575-1.529 1.679-2.294 4.089-2.294 7.229v14.075h-4.588ZM439.533 70.81c-2.258 0-4.133-.383-5.626-1.15-1.493-.767-2.603-1.789-3.332-3.067a8.266 8.266 0 0 1-1.092-4.162c0-2.775 1.056-4.911 3.168-6.408 2.112-1.497 4.988-2.245 8.63-2.245h7.319v-.33c0-2.372-.619-4.161-1.857-5.366-1.238-1.242-2.895-1.862-4.971-1.862-1.784 0-3.331.456-4.642 1.369-1.275.876-2.076 2.172-2.404 3.888h-4.697c.182-1.971.838-3.633 1.966-4.983 1.166-1.352 2.604-2.374 4.315-3.068 1.712-.73 3.532-1.095 5.462-1.095 3.787 0 6.627 1.022 8.521 3.067 1.93 2.008 2.895 4.692 2.895 8.05v16.705h-4.097l-.273-4.874c-.764 1.533-1.893 2.848-3.386 3.943-1.457 1.059-3.423 1.588-5.899 1.588Zm.71-3.888c1.748 0 3.241-.457 4.479-1.37a8.66 8.66 0 0 0 2.895-3.56c.655-1.46.983-2.993.983-4.6v-.055h-6.937c-2.694 0-4.606.475-5.735 1.424-1.092.913-1.639 2.063-1.639 3.45 0 1.425.51 2.575 1.53 3.451 1.056.84 2.531 1.26 4.424 1.26ZM469.684 61.61c-1.53 0-2.931-.202-4.206-.603l-2.731 2.574c.401.292.892.548 1.475.767.619.182 1.493.365 2.622.547 1.128.146 2.712.31 4.751.493 3.642.256 6.245 1.096 7.811 2.52 1.566 1.424 2.349 3.286 2.349 5.586 0 1.57-.437 3.067-1.311 4.49-.838 1.425-2.149 2.593-3.933 3.506-1.748.913-4.005 1.369-6.773 1.369-2.439 0-4.606-.329-6.499-.986-1.894-.62-3.369-1.588-4.425-2.903-1.055-1.277-1.583-2.902-1.583-4.874 0-1.022.273-2.136.819-3.34.546-1.169 1.566-2.282 3.059-3.341a13.725 13.725 0 0 1-2.076-1.041 13.173 13.173 0 0 1-1.529-1.314V63.8l4.642-4.6c-2.148-1.826-3.222-4.236-3.222-7.23 0-1.789.418-3.414 1.256-4.874.837-1.46 2.057-2.61 3.66-3.45 1.602-.877 3.55-1.315 5.844-1.315 1.566 0 2.986.22 4.26.657h9.995v3.45l-5.079.22c1.056 1.533 1.584 3.304 1.584 5.312 0 1.79-.437 3.414-1.311 4.874-.838 1.461-2.057 2.63-3.66 3.506-1.565.84-3.495 1.26-5.789 1.26Zm0-3.78c1.93 0 3.459-.493 4.588-1.478 1.165-1.023 1.748-2.483 1.748-4.382 0-1.862-.583-3.286-1.748-4.272-1.129-1.022-2.658-1.533-4.588-1.533-1.967 0-3.532.511-4.698 1.533-1.128.986-1.693 2.41-1.693 4.272 0 1.899.565 3.36 1.693 4.382 1.166.985 2.731 1.478 4.698 1.478Zm-7.975 15.828c0 1.826.765 3.177 2.294 4.053 1.53.913 3.441 1.37 5.735 1.37 2.258 0 4.06-.494 5.408-1.48 1.383-.986 2.075-2.3 2.075-3.943 0-1.168-.473-2.19-1.42-3.067-.947-.84-2.694-1.332-5.243-1.479-2.003-.146-3.733-.328-5.189-.547-1.493.803-2.476 1.661-2.95 2.574-.473.95-.71 1.789-.71 2.52ZM499.136 70.81c-2.585 0-4.879-.584-6.882-1.752-2.003-1.205-3.587-2.867-4.752-4.984-1.129-2.118-1.693-4.619-1.693-7.503 0-2.848.564-5.331 1.693-7.449 1.129-2.154 2.695-3.815 4.697-4.983 2.04-1.205 4.388-1.808 7.046-1.808 2.622 0 4.88.603 6.773 1.807 1.93 1.169 3.405 2.72 4.424 4.656 1.02 1.935 1.53 4.016 1.53 6.243 0 .402-.019.803-.055 1.205v1.37h-21.575c.11 2.08.583 3.815 1.42 5.202.874 1.351 1.949 2.373 3.223 3.067a8.753 8.753 0 0 0 4.151 1.04c1.894 0 3.478-.437 4.752-1.314 1.274-.876 2.203-2.063 2.786-3.56h4.533c-.728 2.52-2.13 4.62-4.206 6.299-2.039 1.643-4.661 2.464-7.865 2.464Zm0-24.59c-2.185 0-4.133.675-5.844 2.026-1.675 1.314-2.64 3.25-2.895 5.805h17.041c-.109-2.446-.947-4.363-2.512-5.75-1.566-1.388-3.496-2.081-5.79-2.081ZM516.96 70.153V42.988h4.151l.383 5.203c.837-1.789 2.112-3.213 3.823-4.272 1.712-1.058 3.824-1.588 6.336-1.588v4.82h-1.256c-1.602 0-3.077.292-4.424.876-1.348.548-2.422 1.497-3.223 2.848-.801 1.35-1.202 3.213-1.202 5.586v13.692h-4.588Z"/>
|
|
</svg>
|
|
`;var l=i(64447),c=(i(69138),i(69580),i(14041)),d=i(50700),u=i(46758),h=i(26657),A=i(56898),p=i(50352),g=i(90246),v=i(86226),m=i(93199),f=i(19934),y=i(43759),b=i(8168),C=i(58806),I=i(25740);function w(e,t){if(1&e&&(c.j41(0,"li"),c.EFF(1),c.nI1(2,"i18n"),c.k0s()),2&e){const e=c.XpG(2);c.R7$(),c.JRh(c.i5U(2,1,"limitedUsers",e.maxUsers))}}function B(e,t){if(1&e&&(c.j41(0,"li"),c.EFF(1),c.nI1(2,"i18n"),c.k0s()),2&e){const e=c.XpG(2);c.R7$(),c.SpI(" ",c.i5U(2,1,"projectsIncluded",e.maxProjects)," ")}}function E(e,t){1&e&&(c.j41(0,"li"),c.EFF(1),c.nI1(2,"i18n"),c.k0s()),2&e&&(c.R7$(),c.JRh(c.bMT(2,1,"unlimitedProjects")))}function S(e,t){if(1&e&&(c.j41(0,"li"),c.EFF(1),c.nI1(2,"currency"),c.nI1(3,"i18n"),c.k0s()),2&e){const e=c.XpG(2);c.R7$(),c.SpI(" ",c.i5U(3,4,"additionalMachineAccountCost",c.i5U(2,1,e.monthlyCostPerServiceAccount,"$"))," ")}}function Q(e,t){if(1&e&&(c.j41(0,"span"),c.EFF(1),c.nI1(2,"currency"),c.nI1(3,"i18n"),c.nI1(4,"i18n"),c.k0s()),2&e){const e=c.XpG(2);c.R7$(),c.Lme(" ",c.i5U(3,5,"costPerUser",c.i5U(2,2,e.monthlyCostPerUser,"$"))," /",c.bMT(4,8,"month")," ")}}function k(e,t){1&e&&(c.j41(0,"span"),c.EFF(1),c.nI1(2,"i18n"),c.k0s()),2&e&&(c.R7$(),c.JRh(c.bMT(2,1,"freeForever")))}function R(e,t){1&e&&(c.j41(0,"bit-hint"),c.EFF(1),c.nI1(2,"i18n"),c.k0s()),2&e&&(c.R7$(),c.JRh(c.bMT(2,1,"addSecretsManagerUpgradeDesc")))}function F(e,t){1&e&&(c.j41(0,"div",17)(1,"bit-form-field")(2,"bit-label"),c.EFF(3),c.nI1(4,"i18n"),c.k0s(),c.nrm(5,"input",18),c.j41(6,"bit-hint"),c.EFF(7),c.nI1(8,"i18n"),c.k0s()()()),2&e&&(c.R7$(3),c.JRh(c.bMT(4,2,"userSeats")),c.R7$(4),c.JRh(c.bMT(8,4,"userSeatsHowManyDesc")))}function T(e,t){if(1&e&&(c.j41(0,"div",17)(1,"bit-form-field")(2,"bit-label"),c.EFF(3),c.nI1(4,"i18n"),c.k0s(),c.nrm(5,"input",19),c.j41(6,"bit-hint"),c.EFF(7),c.nI1(8,"i18n"),c.nI1(9,"currency"),c.nI1(10,"i18n"),c.k0s()()()),2&e){const e=c.XpG(3);c.R7$(3),c.JRh(c.bMT(4,3,"additionalMachineAccounts")),c.R7$(4),c.Lme(" ",c.i5U(8,5,"includedMachineAccounts",e.serviceAccountsIncluded)," ",c.i5U(10,11,"addAdditionalMachineAccounts",c.i5U(9,8,e.monthlyCostPerServiceAccount,"$"))," ")}}function D(e,t){1&e&&(c.j41(0,"button",20),c.EFF(1),c.nI1(2,"i18n"),c.k0s()),2&e&&(c.R7$(),c.SpI(" ",c.bMT(2,1,"save")," "))}function P(e,t){if(1&e&&(c.qex(0),c.DNE(1,F,9,6,"div",15)(2,T,11,14,"div",15)(3,D,3,3,"button",16),c.bVm()),2&e){const e=c.XpG(2);c.R7$(),c.Y8G("ngIf",e.selectedPlan.SecretsManager.hasAdditionalSeatsOption),c.R7$(),c.Y8G("ngIf",e.selectedPlan.SecretsManager.hasAdditionalServiceAccountOption),c.R7$(),c.Y8G("ngIf",e.showSubmitButton)}}function M(e,t){if(1&e&&(c.j41(0,"div",3)(1,"h3",4),c.EFF(2),c.nI1(3,"i18n"),c.k0s(),c.j41(4,"div",5)(5,"div",6),c.nrm(6,"bit-svg",7),c.k0s()(),c.j41(7,"div",8)(8,"h4",9),c.EFF(9),c.nI1(10,"i18n"),c.k0s(),c.j41(11,"div",10),c.EFF(12),c.nI1(13,"i18n"),c.j41(14,"ul"),c.DNE(15,w,3,4,"li",11),c.j41(16,"li"),c.EFF(17),c.nI1(18,"i18n"),c.k0s(),c.DNE(19,B,3,4,"li",12)(20,E,3,3,"ng-template",null,0,c.C5r),c.j41(22,"li"),c.EFF(23),c.nI1(24,"i18n"),c.k0s(),c.DNE(25,S,4,7,"li",11),c.k0s()(),c.j41(26,"div",13),c.DNE(27,Q,5,10,"span",12)(28,k,3,3,"ng-template",null,1,c.C5r),c.k0s(),c.j41(30,"bit-form-control"),c.nrm(31,"input",14),c.j41(32,"bit-label"),c.EFF(33),c.nI1(34,"i18n"),c.k0s(),c.DNE(35,R,3,3,"bit-hint",11),c.k0s(),c.DNE(36,P,4,3,"ng-container",11),c.k0s()()),2&e){const e=c.sdS(21),t=c.sdS(29),i=c.XpG();c.Y8G("formGroup",i.formGroup),c.R7$(2),c.JRh(c.bMT(3,16,"moreFromBitwarden")),c.R7$(4),c.Y8G("content",i.logo),c.R7$(3),c.JRh(c.i5U(10,18,"secretsManagerForPlan",i.planName)),c.R7$(3),c.SpI(" ",c.bMT(13,21,"secretsManagerForPlanDesc")," "),c.R7$(3),c.Y8G("ngIf",i.product==i.productTypes.Free),c.R7$(2),c.JRh(c.bMT(18,23,"unlimitedSecrets")),c.R7$(2),c.Y8G("ngIf",i.product==i.productTypes.Free)("ngIfElse",e),c.R7$(4),c.JRh(c.i5U(24,25,"machineAccountsIncluded",i.serviceAccountsIncluded)),c.R7$(2),c.Y8G("ngIf",i.product!=i.productTypes.Free),c.R7$(2),c.Y8G("ngIf",i.product!=i.productTypes.Free)("ngIfElse",t),c.R7$(6),c.JRh(c.bMT(34,28,"subscribeToSecretsManager")),c.R7$(2),c.Y8G("ngIf",i.upgradeOrganization),c.R7$(),c.Y8G("ngIf",i.formGroup.value.enabled)}}const x=e=>e.group({enabled:[!1],userSeats:[1,[n.k0.required,n.k0.min(1),n.k0.max(1e5)]],additionalServiceAccounts:[0,[n.k0.required,n.k0.min(0),n.k0.max(1e5)]]});class V{constructor(e){this.i18nService=e,this.showSubmitButton=!1,this.logo=a,this.productTypes=l.K_,this.destroy$=new r.B,this.discountPrice=e=>e-(this.customerDiscount&&this.customerDiscount.active?e*(this.customerDiscount.percentOff/100):0)}ngOnInit(){this.formGroup.controls.enabled.valueChanges.pipe((0,s.Z)(this.formGroup.value.enabled),(0,o.Q)(this.destroy$)).subscribe(e=>{e?(this.formGroup.controls.userSeats.enable(),this.formGroup.controls.additionalServiceAccounts.enable()):(this.formGroup.controls.userSeats.disable(),this.formGroup.controls.additionalServiceAccounts.disable())})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}get product(){return this.selectedPlan.productTier}get planName(){switch(this.product){case l.K_.Free:return this.i18nService.t("free2PersonOrganization");case l.K_.Teams:case l.K_.TeamsStarter:return this.i18nService.t("planNameTeams");case l.K_.Enterprise:return this.i18nService.t("planNameEnterprise")}}get serviceAccountsIncluded(){return this.selectedPlan.SecretsManager.baseServiceAccount}get monthlyCostPerServiceAccount(){return this.selectedPlan.isAnnual?this.discountPrice(this.selectedPlan.SecretsManager.additionalPricePerServiceAccount)/12:this.discountPrice(this.selectedPlan.SecretsManager.additionalPricePerServiceAccount)}get maxUsers(){return this.selectedPlan.SecretsManager.maxSeats}get maxProjects(){return this.selectedPlan.SecretsManager.maxProjects}get monthlyCostPerUser(){return this.selectedPlan.isAnnual?this.discountPrice(this.selectedPlan.SecretsManager.seatPrice)/12:this.discountPrice(this.selectedPlan.SecretsManager.seatPrice)}}V.ɵfac=function(e){return new(e||V)(c.rXU(d.W))},V.ɵcmp=c.VBU({type:V,selectors:[["sm-subscribe"]],inputs:{formGroup:"formGroup",upgradeOrganization:"upgradeOrganization",showSubmitButton:"showSubmitButton",selectedPlan:"selectedPlan",customerDiscount:"customerDiscount"},standalone:!1,decls:1,vars:1,consts:[["unlimitedProjects",""],["freeForever",""],[3,"formGroup",4,"ngIf"],[3,"formGroup"],["bitTypography","h3"],[1,"tw-rounded-t","tw-bg-background-alt3","tw-p-5"],[1,"tw-w-72"],[3,"content"],[1,"tw-rounded-b","tw-border-x","tw-border-b","tw-border-t-0","tw-border-solid","tw-border-secondary-300","tw-p-5"],["bitTypography","h4"],[1,"tw-text-muted"],[4,"ngIf"],[4,"ngIf","ngIfElse"],[1,"tw-mb-5"],["type","checkbox","bitCheckbox","","formControlName","enabled"],["class","tw-w-1/2",4,"ngIf"],["type","submit","bitButton","","buttonType","primary","bitFormButton","",4,"ngIf"],[1,"tw-w-1/2"],["bitInput","","formControlName","userSeats","type","number"],["bitInput","","formControlName","additionalServiceAccounts","type","number"],["type","submit","bitButton","","buttonType","primary","bitFormButton",""]],template:function(e,t){1&e&&c.DNE(0,M,37,30,"div",2),2&e&&c.Y8G("ngIf",t.formGroup&&null!=t.selectedPlan)},dependencies:[u.bT,n.me,n.Q0,n.Zm,n.BC,n.cb,n.j4,n.JD,h.$,A.Q,p.P,g.f,v.j,m.I,f.J,y.h,b.k,C.r,u.oe,I.$],encapsulation:2})},31925(e,t,i){"use strict";i.d(t,{$i:()=>r,bL:()=>s});var n=i(69783);const r=(0,n.T)(e=>{if(!e)throw new Error("Account not found");return{type:"account",data:e}}),s=(0,n.T)(e=>{if(!e)throw new Error("Organization not found");return{type:"organization",data:e}});(0,n.T)(e=>{if(!e)throw new Error("Organization not found");return{type:"provider",data:e}})},47438(e,t,i){"use strict";i.d(t,{c:()=>s,e:()=>r});var n=i(20702);const r={Missing:"tax_id_missing",PendingVerification:"tax_id_pending_verification",FailedVerification:"tax_id_failed_verification"};class s extends n.r{constructor(e){super(e),this.type=this.getResponseProperty("Type")}}},80885(e,t,i){"use strict";i.d(t,{X:()=>g});var n=i(87806),r=i(68108),s=i(36219),o=i(191),a=i(29236),l=i(84110),c=i(14041),d=i(26983),u=i(37115),h=i(50700),A=i(68455),p=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class g{constructor(e,t,i,r,s){this.router=e,this.platformUtilService=t,this.i18nService=i,this.route=r,this.authService=s,this.loading=!0,this.authed=!1,this.requiredParameters=[],this.failedShortMessage="inviteAcceptFailedShort",this.failedMessage="inviteAcceptFailed",this.destroy$=new n.B}getErrorMessage(e){return null!=e?this.i18nService.t(this.failedShortMessage,e):this.i18nService.t(this.failedMessage)}ngOnInit(){return p(this,void 0,void 0,function*(){this.route.queryParams.pipe((0,s.$)(),(0,o.n)(e=>p(this,void 0,void 0,function*(){let t=this.requiredParameters.some(t=>null==(null==e?void 0:e[t])||""===e[t]),i=null;if(!t){this.email=e.email;if((yield(0,r._)(this.authService.activeAccountStatus$))!==l.J.LoggedOut)try{yield this.authedHandler(e)}catch(n){t=!0,i=n.message}else yield this.unauthedHandler(e)}if(t){const e=this.getErrorMessage(i);this.platformUtilService.showToast("error",null,e,{timeout:1e4}),this.router.navigate(["/"])}this.loading=!1})),(0,a.Q)(this.destroy$)).subscribe()})}}g.ɵfac=function(e){return new(e||g)(c.rXU(d.Ix),c.rXU(u.y),c.rXU(h.W),c.rXU(d.nX),c.rXU(A.u))},g.ɵdir=c.FsC({type:g})},23490(e,t,i){"use strict";i.d(t,{O:()=>u});var n=i(87806),r=i(25065),s=i(14041),o=i(86388),a=i(93103),l=i(57144),c=i(46758),d=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class u{constructor(e){this.avatarService=e,this.size="base",this.destroy$=new n.B,this.color$=this.avatarService.avatarColor$,this.text&&(this.text=this.text.toUpperCase())}ngOnDestroy(){return d(this,void 0,void 0,function*(){this.destroy$.next(),this.destroy$.complete()})}}u.ɵfac=function(e){return new(e||u)(s.rXU(o.v))},u.ɵcmp=s.VBU({type:u,selectors:[["dynamic-avatar"]],inputs:{id:"id",text:"text",title:"title",size:"size"},decls:3,vars:8,consts:[[3,"title"],["appStopClick","",3,"text","size","color","id","title"]],template:function(e,t){1&e&&(s.j41(0,"span",0),s.nrm(1,"bit-avatar",1),s.nI1(2,"async"),s.k0s()),2&e&&(s.Y8G("title",t.title),s.R7$(),s.Y8G("text",t.text)("size",t.size)("color",s.bMT(2,6,t.color$))("id",t.id)("title",t.title))},dependencies:[r.G,a.Y,l.fw,c.Jj],encapsulation:2})},51971(e,t,i){"use strict";i.d(t,{H:()=>A});var n=i(26983),r=i(68108),s=i(68711),o=i(78781),a=i(31857),l=i(11217),c=i(19438),d=i(50700),u=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const h=new a.Zs(a.Sc,"deepLinkRedirectUrl",{deserializer:e=>e});class A{constructor(e,t,i,r,o){this.router=e,this.activatedRoute=t,this.titleService=i,this.stateProvider=r,this.previousUrl=void 0,this.currentUrl=void 0,this.deepLinkRedirectUrlState=this.stateProvider.getGlobal(h),this.currentUrl=this.router.url,e.events.pipe((0,s.p)(e=>e instanceof n.wF)).subscribe(e=>{var t,i,n,r,s,a;this.currentUrl=e.url;let l="Vaultwarden Web";this.currentUrl.includes("/sm/")&&(l=o.t("bitSecretsManager"));let c=this.activatedRoute.firstChild;for(;c.firstChild;)c=c.firstChild;const d=null===(i=null===(t=null==c?void 0:c.snapshot)||void 0===t?void 0:t.data)||void 0===i?void 0:i.titleId,u=null===(r=null===(n=null==c?void 0:c.snapshot)||void 0===n?void 0:n.data)||void 0===r?void 0:r.title,h=!(null===(a=null===(s=null==c?void 0:c.snapshot)||void 0===s?void 0:s.data)||void 0===a?void 0:a.doNotSaveUrl);if(null!=d||null!=u){const e=null!=u?u:o.t(d);null!=e&&""!==e&&(l=e+" | "+l)}this.titleService.setTitle(l),h&&this.setPreviousUrl(this.currentUrl)})}getPreviousUrl(){return this.previousUrl}setPreviousUrl(e){this.previousUrl=e}persistLoginRedirectUrl(e){return u(this,void 0,void 0,function*(){yield this.deepLinkRedirectUrlState.update(()=>e)})}getAndClearLoginRedirectUrl(){return u(this,void 0,void 0,function*(){const e=yield(0,r._)(this.deepLinkRedirectUrlState.state$);if(!o.A.isNullOrEmpty(e))return yield this.persistLoginRedirectUrl(null),e})}}A.ɵfac=function(e){return new(e||A)(l.KVO(n.Ix),l.KVO(n.nX),l.KVO(c.hE),l.KVO(a.v2),l.KVO(d.W))},A.ɵprov=l.jDH({token:A,factory:A.ɵfac})},83724(e,t,i){"use strict";i.d(t,{_:()=>c});var n=i(51151),r=i(56962),s=i(83516),o=i(11217),a=i(50700),l=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class c{constructor(e,t,i){this.i18nService=e,this.messagingService=t,this.logService=i,this.browserCache=null}getDevice(){return null!=this.browserCache||(-1!==navigator.userAgent.indexOf(" Firefox/")||-1!==navigator.userAgent.indexOf(" Gecko/")?this.browserCache=n.bq.FirefoxBrowser:navigator.userAgent.indexOf(" OPR/")>=0?this.browserCache=n.bq.OperaBrowser:-1!==navigator.userAgent.indexOf(" Edg/")?this.browserCache=n.bq.EdgeBrowser:-1!==navigator.userAgent.indexOf(" Vivaldi/")?this.browserCache=n.bq.VivaldiBrowser:-1!==navigator.userAgent.indexOf("Ddg")?this.browserCache=n.bq.DuckDuckGoBrowser:-1!==navigator.userAgent.indexOf(" Safari/")&&-1===navigator.userAgent.indexOf("Chrome")?this.browserCache=n.bq.SafariBrowser:window.chrome&&-1!==navigator.userAgent.indexOf(" Chrome/")?this.browserCache=n.bq.ChromeBrowser:-1!==navigator.userAgent.indexOf(" Trident/")?this.browserCache=n.bq.IEBrowser:this.browserCache=n.bq.UnknownBrowser),this.browserCache}getDeviceString(){return n.bq[this.getDevice()].toLowerCase().replace("browser","")}getClientType(){return n.sK.Web}isFirefox(){return this.getDevice()===n.bq.FirefoxBrowser}isChrome(){return this.getDevice()===n.bq.ChromeBrowser}isEdge(){return this.getDevice()===n.bq.EdgeBrowser}isOpera(){return this.getDevice()===n.bq.OperaBrowser}isVivaldi(){return this.getDevice()===n.bq.VivaldiBrowser}isSafari(){return this.getDevice()===n.bq.SafariBrowser}isChromium(){return this.isChrome()||this.isEdge()||this.isOpera()||this.isVivaldi()}isWebKit(){return!0}isMacAppStore(){return!1}isPopupOpen(){return Promise.resolve(!1)}isAnyViewFocused(){return Promise.resolve(!1)}launchUri(e,t){const i=document.createElement("a");i.href=e,null!=t&&t.sameWindow||(i.target="_blank",i.rel="noreferrer noopener"),i.classList.add("d-none"),document.body.appendChild(i),i.click(),document.body.removeChild(i)}getApplicationVersion(){return Promise.resolve("2026.7.0")}getApplicationVersionNumber(){return l(this,void 0,void 0,function*(){return(yield this.getApplicationVersion()).split(RegExp("[+|-]"))[0].trim()})}supportsWebAuthn(e){return"undefined"!=typeof PublicKeyCredential}supportsDuo(){return!0}supportsAutofill(){return!1}supportsFileDownloads(){return!(this.getDevice()===n.bq.SafariBrowser)}showToast(e,t,i,n){this.messagingService.send("showToast",{text:i,title:t,type:e,options:n})}isDev(){return!1}isSelfHost(){return!0}static isSelfHost(){return!0}copyToClipboard(e,t){let i=window,n=window.document;if(t&&(t.window||t.win)?(i=t.window||t.win,n=i.document):t&&t.doc&&(n=t.doc),n.queryCommandSupported&&n.queryCommandSupported("copy")){const t=n.createElement("textarea");t.textContent=e,t.style.position="fixed";let i=n.body;n.body.classList.contains("modal-open")&&(i=n.body.querySelector(".modal")),i.appendChild(t),t.select();let s=!1;try{s=n.execCommand("copy"),s||this.logService.debug("Copy command unsupported or disabled.")}catch(r){console.warn("Copy to clipboard failed.",r)}finally{i.removeChild(t)}return s}}readFromClipboard(e){throw new Error("Cannot read from clipboard on web.")}supportsSecureStorage(){return!1}getAutofillKeyboardShortcut(){return null}packageType(){return null}}c.ɵfac=function(e){return new(e||c)(o.KVO(a.W),o.KVO(s.U),o.KVO(r.K))},c.ɵprov=o.jDH({token:c,factory:c.ɵfac})},11486(e,t,i){"use strict";i.d(t,{l:()=>$});var n=i(68108),r=i(191),s=i(21571),o=i(90171),a=i(67553),l=i(7751),c=i(94644),d=i(56962),u=i(55542),h=i(88744),A=i(25065),p=i(30038),g=i(67331),v=i(14041),m=i(11217),f=i(12012),y=i(50700),b=i(84210),C=i(2471),I=i(69855),w=i(26983),B=i(35500),E=i(46758),S=i(54471),Q=i(3892),k=i(26657),R=i(38620),F=i(56898),T=i(7730),D=i(45635),P=i(67311),M=i(86226),x=i(19934),V=i(43759),G=i(58384),U=i(38410),O=i(22466),N=i(36572),j=i(25740),Y=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function X(e,t){if(1&e&&(v.j41(0,"small",15),v.EFF(1),v.k0s()),2&e){const e=v.XpG();v.R7$(),v.JRh(e.name)}}function z(e,t){1&e&&(v.j41(0,"div"),v.EFF(1),v.nI1(2,"i18n"),v.k0s()),2&e&&(v.R7$(),v.SpI(" ",v.bMT(2,1,"noEventsInList")," "))}function L(e,t){1&e&&(v.j41(0,"th",18),v.EFF(1),v.nI1(2,"i18n"),v.k0s()),2&e&&(v.R7$(),v.JRh(v.bMT(2,1,"member")))}function W(e,t){if(1&e&&(v.j41(0,"td",18)(1,"span",26),v.EFF(2),v.k0s()()),2&e){const e=v.XpG().$implicit;v.R7$(),v.Y8G("appA11yTitle",v.mNQ(e.userEmail)),v.R7$(),v.JRh(e.userName)}}function K(e,t){if(1&e){const e=v.RV6();v.j41(0,"tr",23)(1,"td",18),v.EFF(2),v.nI1(3,"date"),v.k0s(),v.j41(4,"td",18),v.nrm(5,"bit-icon",24),v.j41(6,"span",19),v.EFF(7),v.k0s()(),v.DNE(8,W,3,3,"td",20),v.j41(9,"td",25),v.bIt("click",function(t){m.eBV(e);const i=v.XpG(3);return m.Njj(i.onEventMessageClick(t))}),v.k0s()()}if(2&e){const e=t.$implicit,i=v.XpG(3);v.R7$(2),v.JRh(v.i5U(3,9,e.date,"medium")),v.R7$(3),v.Y8G("title",v.ai1("",e.appName,", ",e.ip))("name",e.appIcon),v.R7$(2),v.Lme("",e.appName,", ",e.ip),v.R7$(),v.Y8G("ngIf",i.showUser),v.R7$(),v.Y8G("innerHTML",e.message,v.npT)}}function Z(e,t){if(1&e&&(v.DNE(0,K,10,12,"tr",22),v.nI1(1,"async")),2&e){const e=t.$implicit;v.Y8G("ngForOf",v.bMT(1,1,e))}}function H(e,t){if(1&e&&(v.j41(0,"bit-table",16),v.qex(1,17),v.j41(2,"tr")(3,"th",18),v.EFF(4),v.nI1(5,"i18n"),v.k0s(),v.j41(6,"th",18)(7,"span",19),v.EFF(8),v.nI1(9,"i18n"),v.k0s()(),v.DNE(10,L,3,3,"th",20),v.j41(11,"th",18),v.EFF(12),v.nI1(13,"i18n"),v.k0s()(),v.bVm(),v.DNE(14,Z,2,3,"ng-template",21),v.k0s()),2&e){const e=v.XpG();v.Y8G("dataSource",e.dataSource),v.R7$(4),v.JRh(v.bMT(5,5,"timestamp")),v.R7$(4),v.JRh(v.bMT(9,7,"client")),v.R7$(2),v.Y8G("ngIf",e.showUser),v.R7$(2),v.JRh(v.bMT(13,9,"event"))}}function J(e,t){if(1&e&&(v.j41(0,"button",27),v.EFF(1),v.nI1(2,"i18n"),v.k0s()),2&e){const e=v.XpG();v.Y8G("bitAction",e.loadMoreEvents),v.R7$(),v.SpI(" ",v.bMT(2,2,"loadMore")," ")}}class q{get showUser(){var e;return null!==(e=this.params.showUser)&&void 0!==e&&e}constructor(e,t,i,n,r,s,o,a,l,c,d,h,A,p,g){this.params=e,this.apiService=t,this.eventLogApiService=i,this.i18nService=n,this.eventService=r,this.userNamePipe=s,this.logService=o,this.organizationUserApiService=a,this.formBuilder=l,this.validationService=c,this.toastService=d,this.router=h,this.activeRoute=A,this.accountService=p,this.organizationService=g,this.loading=!0,this.dataSource=new u.s,this.filterFormGroup=this.formBuilder.group({start:[""],end:[""]}),this.orgUsersUserIdMap=new Map,this.orgUsersIdMap=new Map,this.loadMoreEvents=()=>Y(this,void 0,void 0,function*(){yield this.loadEvents(!1)}),this.refreshEvents=()=>Y(this,void 0,void 0,function*(){yield this.loadEvents(!0)})}ngOnInit(){return Y(this,void 0,void 0,function*(){this.entity=this.params.entity,this.entityId=this.params.entityId,this.name=this.params.name,this.providerId=this.params.providerId;const e=this.eventService.getDefaultDateFilters();this.filterFormGroup.setValue({start:e[0],end:e[1]}),yield this.load()})}switchEntity(e,t,i){return Y(this,void 0,void 0,function*(){this.entity=e,this.entityId=t,this.name=i,this.providerId=void 0,this.continuationToken=null,this.dataSource.data=[],this.loading=!0,yield this.load()})}onEventMessageClick(e){var t,i;const n=null===(i=null===(t=e.target)||void 0===t?void 0:t.closest("a"))||void 0===i?void 0:i.getAttribute("href");if(null!=n){if(n.startsWith(p.eK)){e.preventDefault();const t=n.slice(p.eK.length);return void this.switchEntity("send",t,this.i18nService.t("send")+" "+t.substring(0,8))}if(n.startsWith(p.I1)){e.preventDefault();const t=n.slice(p.I1.length),i=this.orgUsersUserIdMap.get(t);null!=(null==i?void 0:i.organizationUserId)&&(this.switchEntity("user",i.organizationUserId,i.name),null!=this.params.organizationId&&this.router.navigate(["/organizations",this.params.organizationId,"members"]))}}}ngOnDestroy(){return Y(this,void 0,void 0,function*(){yield(0,n._)(this.activeRoute.queryParams.pipe((0,r.n)(e=>Y(this,void 0,void 0,function*(){yield this.router.navigate([],{queryParams:Object.assign(Object.assign({},e),{viewEvents:null})})}))))})}load(){return Y(this,void 0,void 0,function*(){try{if(this.showUser){(yield this.organizationUserApiService.getAllMiniUserDetails(this.params.organizationId)).data.forEach(e=>{const t=this.userNamePipe.transform(e);this.orgUsersIdMap.set(e.id,{name:t,email:e.email}),this.orgUsersUserIdMap.set(e.userId,{name:t,email:e.email,organizationUserId:e.id})})}yield this.loadEvents(!0)}catch(e){this.logService.error(e),this.validationService.showError(e)}this.loading=!1})}loadEvents(e){return Y(this,void 0,void 0,function*(){let t=null;try{t=this.eventService.formatDateFilters(this.filterFormGroup.value.start,this.filterFormGroup.value.end)}catch(a){return void this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:this.i18nService.t("invalidDateRange")})}const i=e?null:this.continuationToken,n=this.params.organizationId;let r;switch(this.entity){case"user":r=this.providerId?yield this.apiService.getEventsProviderUser(this.providerId,this.entityId,t[0],t[1],i):yield this.apiService.getEventsOrganizationUser(n,this.entityId,t[0],t[1],i);break;case"send":r=yield this.eventLogApiService.getEventsSend(n,this.entityId,t[0],t[1],i);break;case"secret":r=yield this.apiService.getEventsSecret(n,this.entityId,t[0],t[1],i);break;case"service-account":r=yield this.apiService.getEventsServiceAccount(n,this.entityId,t[0],t[1],i);break;case"project":r=yield this.apiService.getEventsProject(n,this.entityId,t[0],t[1],i);break;default:r=yield this.apiService.getEventsCipher(this.entityId,t[0],t[1],i)}const s=new p.ng;s.hideSendId="send"===this.entity,s.linkableMemberIds=(0,g.zY)(this.orgUsersUserIdMap),this.continuationToken=r.continuationToken;const o=yield Promise.all(r.data.map(e=>Y(this,void 0,void 0,function*(){const t=null==e.actingUserId?e.userId:e.actingUserId,i=yield this.eventService.getEventInfo(e,s),n=this.showUser?this.resolveMember(e,t):null;return new l.g8({message:i.message,humanReadableMessage:i.humanReadableMessage,appIcon:i.appIcon,appName:i.appName,userId:t,actingUserId:e.actingUserId,userName:null!=n?n.name:this.showUser?this.i18nService.t("unknown"):null,userEmail:null!=n?n.email:this.showUser?"":null,date:e.date,ip:e.ipAddress,type:e.type,installationId:e.installationId,systemUser:e.systemUser,serviceAccountId:e.serviceAccountId})})));!e&&null!=this.dataSource.data&&this.dataSource.data.length>0?this.dataSource.data=this.dataSource.data.concat(o):this.dataSource.data=o})}resolveMember(e,t){const i=(0,g.rh)(e,this.orgUsersUserIdMap,this.i18nService);return null!=i?i:null!=t&&this.orgUsersUserIdMap.has(t)?this.orgUsersUserIdMap.get(t):null}}q.ɵfac=function(e){return new(e||q)(v.rXU(h.Qs),v.rXU(f.G),v.rXU(c.A),v.rXU(y.W),v.rXU(p.US),v.rXU(o.b),v.rXU(d.K),v.rXU(s.uB),v.rXU(b.ok),v.rXU(C.B),v.rXU(I.f),v.rXU(w.Ix),v.rXU(w.nX),v.rXU(B.D),v.rXU(a.PV))},q.ɵcmp=v.VBU({type:q,selectors:[["ng-component"]],decls:33,vars:30,consts:[["dialogSize","large",3,"loading"],["bitDialogTitle",""],["class","tw-text-muted",4,"ngIf"],["bitDialogContent",""],[3,"formGroup","bitSubmit"],[1,"tw-flex","tw-items-center","tw-space-x-2"],["bitInput","","type","datetime-local","id","start","formControlName","start",3,"placeholder"],[1,"tw-mx-2"],["bitInput","","type","datetime-local","id","end","formControlName","end",3,"placeholder"],["type","submit","bitButton","","buttonType","primary","startIcon","bwi-refresh","bitFormButton",""],[4,"ngIf"],[3,"dataSource",4,"ngIf"],["bitButton","","buttonType","secondary","block","","type","button",3,"bitAction",4,"ngIf"],["bitDialogFooter",""],["bitButton","","buttonType","secondary","type","button","bitDialogClose",""],[1,"tw-text-muted"],[3,"dataSource"],["header",""],["bitCell",""],[1,"tw-sr-only"],["bitCell","",4,"ngIf"],["body",""],["bitRow","",4,"ngFor","ngForOf"],["bitRow",""],["fixedWidth","",1,"bwi-lg","tw-text-muted",3,"name","title"],["bitCell","",3,"click","innerHTML"],[3,"appA11yTitle"],["bitButton","","buttonType","secondary","block","","type","button",3,"bitAction"]],template:function(e,t){1&e&&(v.j41(0,"bit-dialog",0)(1,"span",1),v.EFF(2),v.nI1(3,"i18n"),v.DNE(4,X,2,1,"small",2),v.k0s(),v.j41(5,"div",3)(6,"form",4)(7,"div",5)(8,"bit-form-field")(9,"bit-label"),v.EFF(10),v.nI1(11,"i18n"),v.k0s(),v.nrm(12,"input",6),v.nI1(13,"i18n"),v.k0s(),v.j41(14,"span",7),v.EFF(15,"-"),v.k0s(),v.j41(16,"bit-form-field")(17,"bit-label"),v.EFF(18),v.nI1(19,"i18n"),v.k0s(),v.nrm(20,"input",8),v.nI1(21,"i18n"),v.k0s(),v.j41(22,"button",9),v.EFF(23),v.nI1(24,"i18n"),v.k0s()()(),v.nrm(25,"hr"),v.DNE(26,z,3,3,"div",10)(27,H,15,11,"bit-table",11)(28,J,3,4,"button",12),v.k0s(),v.qex(29,13),v.j41(30,"button",14),v.EFF(31),v.nI1(32,"i18n"),v.k0s(),v.bVm(),v.k0s()),2&e&&(v.Y8G("loading",t.loading),v.R7$(2),v.SpI(" ",v.bMT(3,16,"eventLogs")," "),v.R7$(2),v.Y8G("ngIf",t.name),v.R7$(2),v.Y8G("formGroup",t.filterFormGroup)("bitSubmit",t.refreshEvents),v.R7$(4),v.JRh(v.bMT(11,18,"from")),v.R7$(2),v.Y8G("placeholder",v.mNQ(v.bMT(13,20,"startDate"))),v.R7$(6),v.JRh(v.bMT(19,22,"to")),v.R7$(2),v.Y8G("placeholder",v.mNQ(v.bMT(21,24,"endDate"))),v.R7$(3),v.SpI(" ",v.bMT(24,26,"refresh")," "),v.R7$(3),v.Y8G("ngIf",!t.dataSource.data||!t.dataSource.data.length),v.R7$(),v.Y8G("ngIf",null==t.dataSource||null==t.dataSource.data?null:t.dataSource.data.length),v.R7$(),v.Y8G("ngIf",t.continuationToken),v.R7$(3),v.SpI(" ",v.bMT(32,28,"close")," "))},dependencies:[A.G,E.Sq,E.bT,b.qT,b.me,b.BC,b.cb,b.j4,b.JD,S.C,Q.p,k.$,R.L,F.Q,T.I,D.m,P.hJ,M.j,x.J,V.h,G.R,U.Q,O.Y,N._,N.O,E.Jj,E.vh,j.$],encapsulation:2});const $=(e,t)=>e.open(q,t)},67331(e,t,i){"use strict";i.d(t,{Jl:()=>r,rh:()=>o,zY:()=>s});var n=i(7751);function r(e,t){var i;return null!=e&&null!=(null===(i=t.get(e))||void 0===i?void 0:i.organizationUserId)}function s(e){const t=new Set;for(const i of e.keys())r(i,e)&&t.add(i);return t}function o(e,t,i){if(e.type===n.Bx.Send_Accessed_Text||e.type===n.Bx.Send_Accessed_File)return null!=e.actingUserId&&t.has(e.actingUserId)?t.get(e.actingUserId):e.domainName?{name:i.t("sendAccessExternalDomain",e.domainName),email:""}:{name:i.t("sendAccessExternal"),email:""}}},17594(e,t,i){"use strict";i.d(t,{US:()=>y.US,bC:()=>Se});var n=i(11217),r=i(84210),s=i(87806),o=i(68711),a=i(191),l=i(72135),c=i(69783),d=i(29236),u=i(67553),h=i(7751),A=i(56962),p=i(55766),g=i(87673);class v{constructor(e){this.message=e.humanReadableMessage,this.appIcon=e.appIcon,this.appName=e.appName,this.userId=e.userId,this.userName=e.userName,this.userEmail=e.userEmail,this.date=e.date,this.ip=e.ip,this.type=h.Bx[e.type],this.installationId=e.installationId}}var m=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class f{getEventExport(e){return m(this,void 0,void 0,function*(){return p.unparse(e.map(e=>new v(e)))})}getFileName(e=null,t="csv"){return g.Ly.getFileName(null!=e?e:"",t)}}f.ɵfac=function(e){return new(e||f)},f.ɵprov=n.jDH({token:f,factory:f.ɵfac,providedIn:"root"});var y=i(30038),b=i(14041),C=i(50700),I=i(37115),w=i(8365),B=i(69855),E=i(26983),S=i(35500),Q=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class k{get destroy$(){return this.destroySubject$.asObservable()}constructor(e,t,i,o,a,l,c,d,u,h){this.eventService=e,this.i18nService=t,this.exportService=i,this.platformUtilsService=o,this.logService=a,this.fileDownloadService=l,this.toastService=c,this.activeRoute=d,this.accountService=u,this.organizationService=h,this.loading=(0,n.vPA)(!0),this.loaded=(0,n.vPA)(!1),this.events=(0,n.vPA)([]),this.dirtyDates=!0,this.canUseSM=!1,this.eventsForm=new r.gE({start:new r.MJ(null),end:new r.MJ(null)}),this.destroySubject$=new s.B,this.loadMoreEvents=()=>Q(this,void 0,void 0,function*(){yield this.loadEvents(!1)}),this.refreshEvents=()=>Q(this,void 0,void 0,function*(){yield this.loadEvents(!0)}),this.exportEvents=()=>Q(this,void 0,void 0,function*(){if(this.dirtyDates)return;this.loading.set(!0);const e=this.parseDates();if(null==e)return;let t;try{t=this.export(e[0],e[1]),yield t}catch(i){this.logService.error(`Handled exception: ${i}`)}t=null,this.loading.set(!1)}),this.loadEvents=e=>Q(this,void 0,void 0,function*(){const t=this.parseDates();if(null==t)return;this.loading.set(!0);let i,n=[];i=this.loadAndParseEvents(t[0],t[1],e?null:this.continuationToken);const r=yield i;this.continuationToken=r.continuationToken,n=r.events,!e&&null!=this.events()&&this.events().length>0?this.events.update(e=>[...e,...n]):this.events.set(n),this.dirtyDates=!1,this.loading.set(!1),i=null});const A=this.eventService.getDefaultDateFilters();this.start=A[0],this.end=A[1]}initBase(){this.organizations$=this.accountService.activeAccount$.pipe((0,o.p)(e=>!!(null==e?void 0:e.id)),(0,a.n)(e=>this.organizationService.organizations$(e.id))),this.activeOrganization$=(0,l.z)([this.activeRoute.paramMap,this.organizations$]).pipe((0,c.T)(([e,t])=>t.find(t=>t.id===e.get("organizationId")))),this.canUseSM$=this.activeOrganization$.pipe((0,c.T)(e=>{var t;return null!==(t=null==e?void 0:e.canAccessSecretsManager)&&void 0!==t&&t})),this.canUseSM$.pipe((0,d.Q)(this.destroy$)).subscribe(e=>{this.canUseSM=e})}ngOnDestroy(){this.destroySubject$.next(),this.destroySubject$.complete()}get start(){return this.eventsForm.value.start}set start(e){this.eventsForm.get("start").setValue(e)}get end(){return this.eventsForm.value.end}set end(e){this.eventsForm.get("end").setValue(e)}asBitwardenIcon(e){return e}linkableMemberIds(){return new Set}loadAndParseEvents(e,t,i){return Q(this,void 0,void 0,function*(){const n=yield this.requestEvents(e,t,i),r=this.linkableMemberIds(),s=yield Promise.all(n.data.map(e=>Q(this,void 0,void 0,function*(){const t=null==e.actingUserId?e.userId:e.actingUserId,i=new y.ng;i.disableLink=!this.canUseSM,i.linkableMemberIds=r;const n=yield this.eventService.getEventInfo(e,i),s=this.getUserName(e,t),o=null!=s?s.name:this.i18nService.t("unknown");return new h.g8({message:n.message,humanReadableMessage:n.humanReadableMessage,appIcon:n.appIcon,appName:n.appName,userId:t,actingUserId:e.actingUserId,userName:o,userEmail:null!=s?s.email:"",date:e.date,ip:e.ipAddress,type:e.type,installationId:e.installationId,systemUser:e.systemUser,serviceAccountId:e.serviceAccountId})})));return{continuationToken:n.continuationToken,events:s}})}parseDates(){let e=null;try{e=this.eventService.formatDateFilters(this.start,this.end)}catch(t){return this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:this.i18nService.t("invalidDateRange")}),null}return e}export(e,t){return Q(this,void 0,void 0,function*(){let i=this.continuationToken,n=[].concat(this.events());for(;null!=i;){const r=yield this.loadAndParseEvents(e,t,i);i=r.continuationToken,n=n.concat(r.events)}const r=yield this.exportService.getEventExport(n),s=this.exportService.getFileName(this.exportFileName,"csv");this.fileDownloadService.download({fileName:s,blobData:r,blobOptions:{type:"text/plain"}})})}}k.ɵfac=function(e){return new(e||k)(b.rXU(y.US),b.rXU(C.W),b.rXU(f),b.rXU(I.y),b.rXU(A.K),b.rXU(w.y),b.rXU(B.f),b.rXU(E.nX),b.rXU(S.D),b.rXU(u.PV))},k.ɵdir=b.FsC({type:k});var R=i(68108),F=i(62423),T=i(83604),D=i(35284),P=i(73366),M=i(21571),x=i(90171),V=i(3633),G=i(64447),U=i(16452),O=i(72932),N=i(25065),j=i(11486);function Y(){const e=new Date,t=new Date(e.getTime()-864e5),i=t.getTime()+Math.random()*(e.getTime()-t.getTime());return new Date(i).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0})}const X=new Array(6).fill({appName:"***",userName:"**********",userEmail:"**********",message:"**********"}),z=[{date:Y(),appName:"Extension - Firefox",userName:"Alice",userEmail:"alice@email.com",message:"Logged in"},{date:Y(),appName:"Mobile - iOS",userName:"Bob",message:'Viewed item <span class="tw-text-code">000000</span>'},{date:Y(),appName:"Desktop - Linux",userName:"Carlos",userEmail:"carlos@email.com",message:"Login attempt failed with incorrect password"},{date:Y(),appName:"Web vault - Chrome",userName:"Ivan",userEmail:"ivan@email.com",message:'Confirmed user <span class="tw-text-code">000000</span>'},{date:Y(),appName:"Mobile - Android",userName:"Franz",userEmail:"franz@email.com",message:'Sent item <span class="tw-text-code">000000</span> to trash'}].sort((e,t)=>new Date(e.date).getTime()-new Date(t.date).getTime()).concat(X);var L=i(67331),W=i(12012),K=i(11224),Z=i(13417),H=i(66316),J=i(1601),q=i(3892),$=i(26657),_=i(47696),ee=i(56898),te=i(44432),ie=i(86226),ne=i(19934),re=i(43759),se=i(58384),oe=i(38410),ae=i(22466),le=i(36572),ce=i(49112),de=i(46758),ue=i(25740),he=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function Ae(e,t){1&e&&(b.j41(0,"span",0),b.EFF(1),b.nI1(2,"i18n"),b.k0s()),2&e&&(b.R7$(),b.SpI(" ",b.bMT(2,1,"upgrade")," "))}function pe(e,t){1&e&&(b.j41(0,"bit-callout",8),b.nI1(1,"i18n"),b.EFF(2),b.nI1(3,"i18n"),b.k0s()),2&e&&(b.Y8G("title",b.bMT(1,2,"upgradeEventLogTitleMessage")),b.R7$(2),b.SpI(" ",b.bMT(3,4,"upgradeEventLogMessage")," "))}function ge(e,t){1&e&&(b.qex(0),b.nrm(1,"bit-icon",9),b.j41(2,"span",10),b.EFF(3),b.nI1(4,"i18n"),b.k0s(),b.bVm()),2&e&&(b.R7$(3),b.JRh(b.bMT(4,1,"loading")))}function ve(e,t){1&e&&(b.j41(0,"p"),b.EFF(1),b.nI1(2,"i18n"),b.k0s()),2&e&&(b.R7$(),b.JRh(b.bMT(2,1,"noEventsInList")))}function me(e,t){if(1&e){const e=b.RV6();b.j41(0,"a",21),b.bIt("click",function(t){n.eBV(e);const i=b.XpG().$implicit,r=b.XpG(4);return n.Njj(r.memberNameClicked(t,i.actingUserId))}),b.EFF(1),b.k0s()}if(2&e){const e=b.XpG().$implicit;b.Y8G("title",b.mNQ(e.userEmail)),b.R7$(),b.JRh(e.userName)}}function fe(e,t){if(1&e&&(b.j41(0,"span",18),b.EFF(1),b.k0s()),2&e){const e=b.XpG().$implicit;b.Y8G("title",b.mNQ(e.userEmail)),b.R7$(),b.JRh(e.userName)}}function ye(e,t){if(1&e){const e=b.RV6();b.j41(0,"tr",16)(1,"td",17),b.EFF(2),b.nI1(3,"date"),b.k0s(),b.j41(4,"td",14)(5,"span",18),b.EFF(6),b.k0s()(),b.j41(7,"td",14),b.nVh(8,me,2,3,"a",19)(9,fe,2,3,"span",18),b.k0s(),b.j41(10,"td",20),b.bIt("click",function(t){n.eBV(e);const i=b.XpG(4);return n.Njj(i.onEventMessageClick(t))}),b.k0s()()}if(2&e){const e=t.$implicit,i=t.$index,n=b.XpG(4),r=b.r8f(0);b.R7$(2),b.SpI(" ",i>4&&r?"******":b.i5U(3,7,e.date,"medium")," "),b.R7$(3),b.Y8G("title",b.ai1("",e.appName,", ",e.ip)),b.R7$(),b.JRh(e.appName),b.R7$(2),b.vxM(n.isSendAccessMemberLink(e)?8:9),b.R7$(2),b.Y8G("innerHTML",e.message,b.npT)}}function be(e,t){if(1&e&&b.Z7z(0,ye,11,10,"tr",16,b.Vm6),2&e){b.XpG(2);const e=b.r8f(1);b.Dyx(e)}}function Ce(e,t){1&e&&(b.j41(0,"bit-table",11),b.qex(1,13),b.j41(2,"tr")(3,"th",14),b.EFF(4),b.nI1(5,"i18n"),b.k0s(),b.j41(6,"th",14),b.EFF(7),b.nI1(8,"i18n"),b.k0s(),b.j41(9,"th",14),b.EFF(10),b.nI1(11,"i18n"),b.k0s(),b.j41(12,"th",14),b.EFF(13),b.nI1(14,"i18n"),b.k0s()(),b.bVm(),b.DNE(15,be,2,0,"ng-template",15),b.k0s()),2&e&&(b.R7$(4),b.JRh(b.bMT(5,4,"timestamp")),b.R7$(3),b.JRh(b.bMT(8,6,"client")),b.R7$(3),b.JRh(b.bMT(11,8,"member")),b.R7$(3),b.JRh(b.bMT(14,10,"event")))}function Ie(e,t){if(1&e&&(b.j41(0,"button",12),b.EFF(1),b.nI1(2,"i18n"),b.k0s()),2&e){const e=b.XpG(2);b.Y8G("bitAction",e.loadMoreEvents),b.R7$(),b.SpI(" ",b.bMT(2,2,"loadMore")," ")}}function we(e,t){if(1&e&&(b.qex(0),b.SS7(1),b.nVh(2,ve,3,3,"p"),b.nVh(3,Ce,16,12,"bit-table",11),b.nVh(4,Ie,3,4,"button",12),b.bVm()),2&e){const e=b.XpG();b.R7$();const t=b.bH3(null!=e.organization&&e.organization.useEvents?e.events():e.placeholderEvents);b.R7$(),b.vxM(t&&t.length?-1:2),b.R7$(),b.vxM(t&&t.length?3:-1),b.R7$(),b.vxM(e.continuationToken?4:-1)}}function Be(e,t){if(1&e){const e=b.RV6();b.qex(0),b.j41(1,"div",22)(2,"div",23),b.nrm(3,"bit-icon",24),b.j41(4,"p",25),b.EFF(5),b.nI1(6,"i18n"),b.k0s(),b.j41(7,"p"),b.EFF(8),b.nI1(9,"i18n"),b.k0s(),b.j41(10,"button",26),b.bIt("click",function(){n.eBV(e);const t=b.XpG();return n.Njj(t.changePlan())}),b.EFF(11),b.nI1(12,"i18n"),b.k0s()()(),b.bVm()}2&e&&(b.R7$(5),b.SpI(" ",b.bMT(6,3,"upgradeEventLogTitleMessage")," "),b.R7$(3),b.SpI(" ",b.bMT(9,5,"upgradeForFullEventsMessage")," "),b.R7$(3),b.SpI(" ",b.bMT(12,7,"changeBillingPlan")," "))}const Ee={[h.p2.SCIM]:null,[h.p2.DomainVerification]:"domainVerification",[h.p2.PublicApi]:"publicApi",[h.p2.BitwardenPortal]:"system"};class Se extends k{constructor(e,t,i,n,r,s,o,a,l,c,d,u,h,A,p,g,v,m,f){super(i,n,r,s,o,h,A,m,p,l),this.apiService=e,this.route=t,this.userNamePipe=a,this.organizationService=l,this.organizationUserApiService=c,this.organizationApiService=d,this.providerService=u,this.accountService=p,this.dialogService=g,this.configService=v,this.activeRoute=m,this.router=f,this.exportFileName="org-events",this.placeholderEvents=z,this.orgUsersUserIdMap=new Map,this.ProductTierType=G.K_}ngOnInit(){return he(this,void 0,void 0,function*(){this.initBase();const e=yield(0,R._)((0,V.F6)(this.accountService.activeAccount$));this.route.params.pipe((0,F.H)(t=>he(this,void 0,void 0,function*(){this.organizationId=t.organizationId,this.organization=yield(0,R._)(this.organizationService.organizations$(e).pipe((0,u.Sw)(this.organizationId))),this.organization.useEvents||(this.eventsForm.get("start").disable(),this.eventsForm.get("end").disable(),this.organizationSubscription=yield this.organizationApiService.getSubscription(this.organizationId)),yield this.load()})),(0,d.Q)(this.destroy$)).subscribe()})}load(){return he(this,void 0,void 0,function*(){if((yield this.organizationUserApiService.getAllMiniUserDetails(this.organizationId)).data.forEach(e=>{const t=this.userNamePipe.transform(e);this.orgUsersUserIdMap.set(e.userId,{name:t,email:e.email,organizationUserId:e.id})}),null!=this.organization.providerId)try{yield(0,R._)(this.accountService.activeAccount$.pipe(V.F6,(0,a.n)(e=>this.providerService.get$(this.organization.providerId,e)),(0,c.T)(e=>null!=e&&e.canManageUsers),(0,a.n)(e=>e?this.apiService.getProviderUsers(this.organization.providerId):(0,T.of)(null)),(0,D.M)(e=>{e&&e.data.forEach(e=>{const t=this.userNamePipe.transform(e);this.orgUsersUserIdMap.set(e.userId,{name:`${t} (${this.organization.providerName})`,email:e.email})})})))}catch(e){this.logService.warning(e)}yield this.refreshEvents(),this.loaded.set(!0)})}requestEvents(e,t,i){return this.apiService.getEventsOrganization(this.organizationId,e,t,i)}getUserName(e,t){const i=(0,L.rh)(e,this.orgUsersUserIdMap,this.i18nService);if(null!=i)return i;if(null!=e.installationId)return{name:`Installation: ${e.installationId}`};if(null!=t){if(this.orgUsersUserIdMap.has(t))return this.orgUsersUserIdMap.get(t);if(null!=e.providerId&&e.providerId===this.organization.providerId)return{name:this.organization.providerName}}if(null!=e.systemUser){const t=Ee[e.systemUser];return t?{name:this.i18nService.t(t)}:{name:h.p2[e.systemUser]}}return e.serviceAccountId?{name:this.i18nService.t("machineAccount")+" "+this.getShortId(e.serviceAccountId)}:null}linkableMemberIds(){return(0,L.zY)(this.orgUsersUserIdMap)}isSendAccessMemberLink(e){return(e.type===h.Bx.Send_Accessed_Text||e.type===h.Bx.Send_Accessed_File)&&(0,L.Jl)(e.actingUserId,this.orgUsersUserIdMap)}onEventMessageClick(e){var t,i;const n=null===(i=null===(t=e.target)||void 0===t?void 0:t.closest("a"))||void 0===i?void 0:i.getAttribute("href");if(null!=n)return n.startsWith(y.eK)?(e.preventDefault(),void this.openSendEventsDialog(n.slice(y.eK.length))):void(n.startsWith(y.I1)&&(e.preventDefault(),this.openMemberEventsDialog(n.slice(y.I1.length))))}memberNameClicked(e,t){e.preventDefault(),this.openMemberEventsDialog(t)}openSendEventsDialog(e){null!=e&&(0,j.l)(this.dialogService,{data:{entity:"send",entityId:e,organizationId:this.organizationId,name:this.i18nService.t("send")+" "+this.getShortId(e),showUser:!0}})}openMemberEventsDialog(e){const t=null!=e?this.orgUsersUserIdMap.get(e):null;null!=(null==t?void 0:t.organizationUserId)&&((0,j.l)(this.dialogService,{data:{entity:"user",entityId:t.organizationUserId,organizationId:this.organizationId,name:t.name,showUser:!0}}),this.router.navigate(["/organizations",this.organizationId,"members"]))}getShortId(e){return null==e?void 0:e.substring(0,8)}changePlan(){return he(this,void 0,void 0,function*(){const e=(0,U.IO)(this.dialogService,{data:{organizationId:this.organizationId,subscription:this.organizationSubscription,productTierType:this.organization.productTierType}});(yield(0,P.s)(e.closed))!==U.d1.Closed&&(yield this.load())})}}Se.ɵfac=function(e){return new(e||Se)(b.rXU(W.G),b.rXU(E.nX),b.rXU(y.US),b.rXU(C.W),b.rXU(f),b.rXU(I.y),b.rXU(A.K),b.rXU(x.b),b.rXU(u.PV),b.rXU(M.uB),b.rXU(K.X),b.rXU(Z.$),b.rXU(w.y),b.rXU(B.f),b.rXU(S.D),b.rXU(H.o),b.rXU(J.w),b.rXU(E.nX),b.rXU(E.Ix))},Se.ɵcmp=b.VBU({type:Se,selectors:[["ng-component"]],features:[b.Vt3],decls:31,vars:31,consts:[["bitBadge","","variant","primary","slot","title-suffix",1,"tw-ml-2","tw-mt-1.5","tw-inline-flex","tw-items-center"],[1,"tw-mb-4",3,"formGroup"],[1,"tw-mt-4","tw-flex","tw-items-center"],["bitInput","","type","datetime-local","formControlName","start",3,"change","placeholder"],[1,"tw-mx-2"],["bitInput","","type","datetime-local","formControlName","end",3,"change","placeholder"],["type","button","bitButton","","bitFormButton","","buttonType","primary",1,"tw-mx-3","tw-mt-1",3,"bitAction","disabled"],["type","button","bitButton","","bitFormButton","","endIcon","bwi-sign-in",1,"tw-mt-1",3,"bitAction","disabled"],["type","info",3,"title"],["name","bwi-spinner","aria-hidden","true",1,"bwi-lg","bwi-spin","tw-text-muted"],[1,"tw-sr-only"],["data-testid","events-table"],["type","button","bitButton","","buttonType","primary",3,"bitAction"],["header",""],["bitCell",""],["body",""],["bitRow","","alignContent","top"],["bitCell","",1,"tw-whitespace-nowrap"],[3,"title"],["href","#",3,"title"],["bitCell","",3,"click","innerHTML"],["href","#",3,"click","title"],[1,"tw-relative","tw--top-72","tw-bg-background","tw-bg-opacity-90","tw-pb-5","tw-flex","tw-items-center","tw-justify-center","tw-h-[19rem]"],[1,"tw-bg-background","tw-max-w-xl","tw-flex-col","tw-justify-center","tw-text-center","tw-p-5","tw-px-10","tw-rounded","tw-border-0","tw-border-b","tw-border-secondary-300","tw-border-solid","tw-mt-5"],["name","bwi-business",1,"bwi-2x","tw-text-primary-600"],[1,"tw-font-medium","tw-mt-2"],["type","button","bitButton","","buttonType","primary",1,"tw-mt-1",3,"click"]],template:function(e,t){if(1&e&&(b.SS7(0),b.j41(1,"app-header"),b.nVh(2,Ae,3,3,"span",0),b.k0s(),b.j41(3,"div",1)(4,"div",2)(5,"bit-form-field")(6,"bit-label"),b.EFF(7),b.nI1(8,"i18n"),b.k0s(),b.j41(9,"input",3),b.nI1(10,"i18n"),b.bIt("change",function(){return t.dirtyDates=!0}),b.k0s()(),b.j41(11,"span",4),b.EFF(12,"-"),b.k0s(),b.j41(13,"bit-form-field")(14,"bit-label"),b.EFF(15),b.nI1(16,"i18n"),b.k0s(),b.j41(17,"input",5),b.nI1(18,"i18n"),b.bIt("change",function(){return t.dirtyDates=!0}),b.k0s()(),b.j41(19,"form")(20,"button",6),b.EFF(21),b.nI1(22,"i18n"),b.k0s()(),b.j41(23,"form")(24,"button",7),b.EFF(25),b.nI1(26,"i18n"),b.k0s()()()(),b.nVh(27,pe,4,6,"bit-callout",8),b.nVh(28,ge,5,3,"ng-container"),b.nVh(29,we,5,4,"ng-container"),b.nVh(30,Be,13,9,"ng-container")),2&e){const e=b.bH3(!(null!=t.organization&&t.organization.useEvents));b.R7$(2),b.vxM(e?2:-1),b.R7$(),b.Y8G("formGroup",t.eventsForm),b.R7$(4),b.JRh(b.bMT(8,19,"from")),b.R7$(2),b.Y8G("placeholder",b.mNQ(b.bMT(10,21,"startDate"))),b.R7$(6),b.JRh(b.bMT(16,23,"to")),b.R7$(2),b.Y8G("placeholder",b.mNQ(b.bMT(18,25,"endDate"))),b.R7$(3),b.Y8G("bitAction",t.refreshEvents)("disabled",e),b.R7$(),b.SpI(" ",b.bMT(22,27,"update")," "),b.R7$(3),b.Y8G("bitAction",t.exportEvents)("disabled",t.dirtyDates||e),b.R7$(),b.SpI(" ",b.bMT(26,29,"exportVerb")," "),b.R7$(2),b.vxM(t.loaded()&&e?27:-1),b.R7$(),b.vxM(t.loaded()?-1:28),b.R7$(),b.vxM(t.loaded()?29:-1),b.R7$(),b.vxM(t.loaded()&&e?30:-1)}},dependencies:[N.G,r.qT,r.me,r.BC,r.cb,r.cV,r.j4,r.JD,q.p,$.$,_.n,ee.Q,te.G,ie.j,ne.J,re.h,se.R,oe.Q,ae.Y,le._,le.O,O.G,ce.f,de.vh,ue.$],encapsulation:2,changeDetection:0})},30038(e,t,i){"use strict";i.d(t,{I1:()=>p,US:()=>g,eK:()=>A,ng:()=>v});var n=i(191),r=i(7356),s=i(3633),o=i(7751),a=i(51151),l=i(11217),c=i(50700),d=i(18499),u=i(35500),h=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const A="#send-events:",p="#member-events:";class g{constructor(e,t,i){this.i18nService=e,i.activeAccount$.pipe(s.F6,(0,n.n)(e=>t.policies$(e))).subscribe(e=>{this.policies=e})}getDefaultDateFilters(){const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59);e.setDate(e.getDate()-30);const i=new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0);return[this.toDateTimeLocalString(i),this.toDateTimeLocalString(t)]}formatDateFilters(e,t){const i=new Date(e),n=new Date(t+":59.999");if(isNaN(i.getTime())||isNaN(n.getTime())||n<i)throw new Error("Invalid date range.");return[i.toISOString(),n.toISOString()]}getEventInfo(e){return h(this,arguments,void 0,function*(e,t=new v){const i=this.getAppInfo(e),{message:n,humanReadableMessage:r}=yield this.getEventMessage(e,t);return{message:n,humanReadableMessage:r,appIcon:i[0],appName:i[1]}})}getEventMessage(e,t){return h(this,void 0,void 0,function*(){let i="",n="";switch(e.type){case o.Bx.User_LoggedIn:i=n=this.i18nService.t("loggedIn");break;case o.Bx.User_ChangedPassword:i=n=this.i18nService.t("changedPassword");break;case o.Bx.User_Updated2fa:i=n=this.i18nService.t("enabledUpdated2fa");break;case o.Bx.User_Disabled2fa:i=n=this.i18nService.t("disabled2fa");break;case o.Bx.User_Recovered2fa:i=n=this.i18nService.t("recovered2fa");break;case o.Bx.User_FailedLogIn:i=n=this.i18nService.t("failedLogin");break;case o.Bx.User_FailedLogIn2fa:i=n=this.i18nService.t("failedLogin2fa");break;case o.Bx.User_ClientExportedVault:i=n=this.i18nService.t("exportedVault");break;case o.Bx.User_UpdatedTempPassword:i=n=this.i18nService.t("userResetMasterPasswordThroughAccountRecovery");break;case o.Bx.User_MigratedKeyToKeyConnector:i=n=this.i18nService.t("migratedKeyConnector");break;case o.Bx.User_RequestedDeviceApproval:i=n=this.i18nService.t("requestedDeviceApproval");break;case o.Bx.User_TdeOffboardingPasswordSet:i=n=this.i18nService.t("tdeOffboardingPasswordSet");break;case o.Bx.Cipher_Created:i=this.i18nService.t("createdItemId",this.formatCipherId(e,t)),n=this.i18nService.t("createdItemId",this.getShortId(e.cipherId));break;case o.Bx.Cipher_Updated:i=this.i18nService.t("editedItemId",this.formatCipherId(e,t)),n=this.i18nService.t("editedItemId",this.getShortId(e.cipherId));break;case o.Bx.Cipher_Deleted:i=this.i18nService.t("permanentlyDeletedItemId",this.formatCipherId(e,t)),n=this.i18nService.t("permanentlyDeletedItemId",this.getShortId(e.cipherId));break;case o.Bx.Cipher_SoftDeleted:i=this.i18nService.t("deletedItemId",this.formatCipherId(e,t)),n=this.i18nService.t("deletedItemId",this.getShortId(e.cipherId));break;case o.Bx.Cipher_Restored:i=this.i18nService.t("restoredItemId",this.formatCipherId(e,t)),n=this.i18nService.t("restoredItemId",this.formatCipherId(e,t));break;case o.Bx.Cipher_AttachmentCreated:i=this.i18nService.t("createdAttachmentForItem",this.formatCipherId(e,t)),n=this.i18nService.t("createdAttachmentForItem",this.getShortId(e.cipherId));break;case o.Bx.Cipher_AttachmentDeleted:i=this.i18nService.t("deletedAttachmentForItem",this.formatCipherId(e,t)),n=this.i18nService.t("deletedAttachmentForItem",this.getShortId(e.cipherId));break;case o.Bx.Cipher_Shared:i=this.i18nService.t("movedItemIdToOrg",this.formatCipherId(e,t)),n=this.i18nService.t("movedItemIdToOrg",this.getShortId(e.cipherId));break;case o.Bx.Cipher_ClientViewed:i=this.i18nService.t("viewedItemId",this.formatCipherId(e,t)),n=this.i18nService.t("viewedItemId",this.getShortId(e.cipherId));break;case o.Bx.Cipher_ClientToggledPasswordVisible:i=this.i18nService.t("viewedPasswordItemId",this.formatCipherId(e,t)),n=this.i18nService.t("viewedPasswordItemId",this.getShortId(e.cipherId));break;case o.Bx.Cipher_ClientToggledHiddenFieldVisible:i=this.i18nService.t("viewedHiddenFieldItemId",this.formatCipherId(e,t)),n=this.i18nService.t("viewedHiddenFieldItemId",this.getShortId(e.cipherId));break;case o.Bx.Cipher_ClientToggledCardNumberVisible:i=this.i18nService.t("viewedCardNumberItemId",this.formatCipherId(e,t)),n=this.i18nService.t("viewedCardNumberItemId",this.getShortId(e.cipherId));break;case o.Bx.Cipher_ClientToggledCardCodeVisible:i=this.i18nService.t("viewedSecurityCodeItemId",this.formatCipherId(e,t)),n=this.i18nService.t("viewedSecurityCodeItemId",this.getShortId(e.cipherId));break;case o.Bx.Cipher_ClientCopiedHiddenField:i=this.i18nService.t("copiedHiddenFieldItemId",this.formatCipherId(e,t)),n=this.i18nService.t("copiedHiddenFieldItemId",this.getShortId(e.cipherId));break;case o.Bx.Cipher_ClientCopiedPassword:i=this.i18nService.t("copiedPasswordItemId",this.formatCipherId(e,t)),n=this.i18nService.t("copiedPasswordItemId",this.getShortId(e.cipherId));break;case o.Bx.Cipher_ClientCopiedCardCode:i=this.i18nService.t("copiedSecurityCodeItemId",this.formatCipherId(e,t)),n=this.i18nService.t("copiedSecurityCodeItemId",this.getShortId(e.cipherId));break;case o.Bx.Cipher_ClientAutofilled:i=this.i18nService.t("autofilledItemId",this.formatCipherId(e,t)),n=this.i18nService.t("autofilledItemId",this.getShortId(e.cipherId));break;case o.Bx.Cipher_UpdatedCollections:i=this.i18nService.t("editedCollectionsForItem",this.formatCipherId(e,t)),n=this.i18nService.t("editedCollectionsForItem",this.getShortId(e.cipherId));break;case o.Bx.Cipher_ClientToggledBankAccountNumberVisible:i=this.i18nService.t("viewedBankAccountNumberItemId",this.formatCipherId(e,t)),n=this.i18nService.t("viewedBankAccountNumberItemId",this.getShortId(e.cipherId));break;case o.Bx.Cipher_ClientToggledBankAccountPinVisible:i=this.i18nService.t("viewedBankAccountPinItemId",this.formatCipherId(e,t)),n=this.i18nService.t("viewedBankAccountPinItemId",this.getShortId(e.cipherId));break;case o.Bx.Cipher_ClientCopiedBankAccountNumber:i=this.i18nService.t("copiedBankAccountNumberItemId",this.formatCipherId(e,t)),n=this.i18nService.t("copiedBankAccountNumberItemId",this.getShortId(e.cipherId));break;case o.Bx.Cipher_ClientCopiedBankAccountPin:i=this.i18nService.t("copiedBankAccountPinItemId",this.formatCipherId(e,t)),n=this.i18nService.t("copiedBankAccountPinItemId",this.getShortId(e.cipherId));break;case o.Bx.Cipher_ClientToggledLicenseNumberVisible:i=this.i18nService.t("viewedLicenseNumberItemId",this.formatCipherId(e,t)),n=this.i18nService.t("viewedLicenseNumberItemId",this.getShortId(e.cipherId));break;case o.Bx.Cipher_ClientCopiedLicenseNumber:i=this.i18nService.t("copiedLicenseNumberItemId",this.formatCipherId(e,t)),n=this.i18nService.t("copiedLicenseNumberItemId",this.getShortId(e.cipherId));break;case o.Bx.Cipher_ClientCopiedPassportNumber:i=this.i18nService.t("copiedPassportNumberItemId",this.formatCipherId(e,t)),n=this.i18nService.t("copiedPassportNumberItemId",this.getShortId(e.cipherId));break;case o.Bx.Cipher_ClientToggledPassportNumberVisible:i=this.i18nService.t("viewedPassportNumberItemId",this.formatCipherId(e,t)),n=this.i18nService.t("viewedPassportNumberItemId",this.getShortId(e.cipherId));break;case o.Bx.Cipher_ClientCopiedIban:i=this.i18nService.t("copiedIbanItemId",this.formatCipherId(e,t)),n=this.i18nService.t("copiedIbanItemId",this.getShortId(e.cipherId));break;case o.Bx.Cipher_ClientToggledIbanVisible:i=this.i18nService.t("viewedIbanItemId",this.formatCipherId(e,t)),n=this.i18nService.t("viewedIbanItemId",this.getShortId(e.cipherId));break;case o.Bx.Cipher_ClientCopiedSwiftCode:i=this.i18nService.t("copiedSwiftCodeItemId",this.formatCipherId(e,t)),n=this.i18nService.t("copiedSwiftCodeItemId",this.getShortId(e.cipherId));break;case o.Bx.Cipher_ClientToggledSwiftCodeVisible:i=this.i18nService.t("viewedSwiftCodeItemId",this.formatCipherId(e,t)),n=this.i18nService.t("viewedSwiftCodeItemId",this.getShortId(e.cipherId));break;case o.Bx.Cipher_ClientToggledNationalIdentificationNumberVisible:i=this.i18nService.t("viewedNationalIdentificationNumberItemId",this.formatCipherId(e,t)),n=this.i18nService.t("viewedNationalIdentificationNumberItemId",this.getShortId(e.cipherId));break;case o.Bx.Cipher_ClientCopiedNationalIdentificationNumber:i=this.i18nService.t("copiedNationalIdentificationNumberItemId",this.formatCipherId(e,t)),n=this.i18nService.t("copiedNationalIdentificationNumberItemId",this.getShortId(e.cipherId));break;case o.Bx.Collection_Created:i=this.i18nService.t("createdCollectionId",this.formatCollectionId(e)),n=this.i18nService.t("createdCollectionId",this.getShortId(e.collectionId));break;case o.Bx.Collection_Updated:i=this.i18nService.t("editedCollectionId",this.formatCollectionId(e)),n=this.i18nService.t("editedCollectionId",this.getShortId(e.collectionId));break;case o.Bx.Collection_Deleted:i=this.i18nService.t("deletedCollectionId",this.formatCollectionId(e)),n=this.i18nService.t("deletedCollectionId",this.getShortId(e.collectionId));break;case o.Bx.Group_Created:i=this.i18nService.t("createdGroupId",this.formatGroupId(e)),n=this.i18nService.t("createdGroupId",this.getShortId(e.groupId));break;case o.Bx.Group_Updated:i=this.i18nService.t("editedGroupId",this.formatGroupId(e)),n=this.i18nService.t("editedGroupId",this.getShortId(e.groupId));break;case o.Bx.Group_Deleted:i=this.i18nService.t("deletedGroupId",this.formatGroupId(e)),n=this.i18nService.t("deletedGroupId",this.getShortId(e.groupId));break;case o.Bx.OrganizationUser_Invited:i=this.i18nService.t("invitedUserId",this.formatOrgUserId(e)),n=this.i18nService.t("invitedUserId",this.getShortId(e.organizationUserId));break;case o.Bx.OrganizationUser_Confirmed:i=this.i18nService.t("confirmedUserId",this.formatOrgUserId(e)),n=this.i18nService.t("confirmedUserId",this.getShortId(e.organizationUserId));break;case o.Bx.OrganizationUser_Updated:i=this.i18nService.t("editedUserId",this.formatOrgUserId(e)),n=this.i18nService.t("editedUserId",this.getShortId(e.organizationUserId));break;case o.Bx.OrganizationUser_Removed:i=this.i18nService.t("removedUserId",this.formatOrgUserId(e)),n=this.i18nService.t("removedUserId",this.getShortId(e.organizationUserId));break;case o.Bx.OrganizationUser_UpdatedGroups:i=this.i18nService.t("editedGroupsForUser",this.formatOrgUserId(e)),n=this.i18nService.t("editedGroupsForUser",this.getShortId(e.organizationUserId));break;case o.Bx.OrganizationUser_UnlinkedSso:i=this.i18nService.t("unlinkedSsoUser",this.formatOrgUserId(e)),n=this.i18nService.t("unlinkedSsoUser",this.getShortId(e.organizationUserId));break;case o.Bx.OrganizationUser_ResetPassword_Enroll:i=this.i18nService.t("eventEnrollAccountRecovery",this.formatOrgUserId(e)),n=this.i18nService.t("eventEnrollAccountRecovery",this.getShortId(e.organizationUserId));break;case o.Bx.OrganizationUser_ResetPassword_Withdraw:i=this.i18nService.t("eventWithdrawAccountRecovery",this.formatOrgUserId(e)),n=this.i18nService.t("eventWithdrawAccountRecovery",this.getShortId(e.organizationUserId));break;case o.Bx.OrganizationUser_AdminResetPassword:i=this.i18nService.t("eventAccountRecoveryWithMasterPasswordInitiated",this.formatOrgUserId(e)),n=this.i18nService.t("eventAccountRecoveryWithMasterPasswordInitiated",this.getShortId(e.organizationUserId));break;case o.Bx.OrganizationUser_AdminResetTwoFactor:i=this.i18nService.t("eventAccountRecoveryWithTwoStepLoginInitiated",this.formatOrgUserId(e)),n=this.i18nService.t("eventAccountRecoveryWithTwoStepLoginInitiated",this.getShortId(e.organizationUserId));break;case o.Bx.OrganizationUser_ResetSsoLink:i=this.i18nService.t("eventResetSsoLink",this.formatOrgUserId(e)),n=this.i18nService.t("eventResetSsoLink",this.getShortId(e.organizationUserId));break;case o.Bx.OrganizationUser_FirstSsoLogin:i=this.i18nService.t("firstSsoLogin",this.formatOrgUserId(e)),n=this.i18nService.t("firstSsoLogin",this.getShortId(e.organizationUserId));break;case o.Bx.OrganizationUser_Revoked:i=this.i18nService.t("revokedUserId",this.formatOrgUserId(e)),n=this.i18nService.t("revokedUserId",this.getShortId(e.organizationUserId));break;case o.Bx.OrganizationUser_Restored:i=this.i18nService.t("restoredUserId",this.formatOrgUserId(e)),n=this.i18nService.t("restoredUserId",this.getShortId(e.organizationUserId));break;case o.Bx.OrganizationUser_Staged:i=this.i18nService.t("stagedUserId",this.formatOrgUserId(e)),n=this.i18nService.t("stagedUserId",this.getShortId(e.organizationUserId));break;case o.Bx.OrganizationUser_ApprovedAuthRequest:i=this.i18nService.t("approvedAuthRequest",this.formatOrgUserId(e)),n=this.i18nService.t("approvedAuthRequest",this.getShortId(e.organizationUserId));break;case o.Bx.OrganizationUser_RejectedAuthRequest:i=this.i18nService.t("rejectedAuthRequest",this.formatOrgUserId(e)),n=this.i18nService.t("rejectedAuthRequest",this.getShortId(e.organizationUserId));break;case o.Bx.OrganizationUser_Deleted:i=this.i18nService.t("deletedUserIdEventMessage",this.formatOrgUserId(e)),n=this.i18nService.t("deletedUserIdEventMessage",this.getShortId(e.organizationUserId));break;case o.Bx.OrganizationUser_Left:i=this.i18nService.t("userLeftOrganization",this.formatOrgUserId(e)),n=this.i18nService.t("userLeftOrganization",this.getShortId(e.organizationUserId));break;case o.Bx.OrganizationUser_AutomaticallyConfirmed:i=this.i18nService.t("automaticallyConfirmedUserId",this.formatOrgUserId(e)),n=this.i18nService.t("automaticallyConfirmedUserId",this.getShortId(e.organizationUserId));break;case o.Bx.OrganizationUser_SelfRevoked:i=n=this.i18nService.t("userSelfRevokedOrganizationOwnership");break;case o.Bx.OrganizationUser_Revoked_TwoFactorNonCompliance:i=this.i18nService.t("revokedUserIdTwoFactorNonCompliance",this.formatOrgUserId(e)),n=this.i18nService.t("revokedUserIdTwoFactorNonCompliance",this.getShortId(e.organizationUserId));break;case o.Bx.OrganizationUser_Revoked_SingleOrganizationNonCompliance:i=this.i18nService.t("revokedUserIdSingleOrganizationNonCompliance",this.formatOrgUserId(e)),n=this.i18nService.t("revokedUserIdSingleOrganizationNonCompliance",this.getShortId(e.organizationUserId));break;case o.Bx.OrganizationUser_NotificationBannerActionClicked:i=n=this.i18nService.t("clickedVaultBannerButton");break;case o.Bx.OrganizationUser_InviteLinkAccepted:i=this.i18nService.t("inviteLinkEventAccepted",this.formatOrgUserId(e)),n=this.i18nService.t("inviteLinkEventAccepted",this.getShortId(e.organizationUserId));break;case o.Bx.Organization_Updated:i=n=this.i18nService.t("editedOrgSettings");break;case o.Bx.Organization_PurgedVault:i=n=this.i18nService.t("purgedOrganizationVault");break;case o.Bx.Organization_ClientExportedVault:i=n=this.i18nService.t("exportedOrganizationVault");break;case o.Bx.Organization_VaultAccessed:i=n=this.i18nService.t("vaultAccessedByProvider");break;case o.Bx.Organization_EnabledSso:i=n=this.i18nService.t("enabledSso");break;case o.Bx.Organization_DisabledSso:i=n=this.i18nService.t("ssoTurnedOff");break;case o.Bx.Organization_EnabledKeyConnector:i=n=this.i18nService.t("enabledKeyConnector");break;case o.Bx.Organization_DisabledKeyConnector:i=n=this.i18nService.t("disabledKeyConnector");break;case o.Bx.Organization_SponsorshipsSynced:i=n=this.i18nService.t("sponsorshipsSynced");break;case o.Bx.Organization_CollectionManagementUpdated:i=this.i18nService.t("modifiedCollectionManagement",this.formatOrganizationId(e)),n=this.i18nService.t("modifiedCollectionManagement",this.getShortId(e.organizationId));break;case o.Bx.Organization_CollectionManagement_LimitCollectionCreationEnabled:i=this.i18nService.t("limitCollectionCreationEnabled",this.formatOrganizationId(e)),n=this.i18nService.t("limitCollectionCreationEnabled",this.getShortId(e.organizationId));break;case o.Bx.Organization_CollectionManagement_LimitCollectionCreationDisabled:i=this.i18nService.t("limitCollectionCreationDisabled",this.formatOrganizationId(e)),n=this.i18nService.t("limitCollectionCreationDisabled",this.getShortId(e.organizationId));break;case o.Bx.Organization_CollectionManagement_LimitCollectionDeletionEnabled:i=this.i18nService.t("limitCollectionDeletionEnabled",this.formatOrganizationId(e)),n=this.i18nService.t("limitCollectionDeletionEnabled",this.getShortId(e.organizationId));break;case o.Bx.Organization_CollectionManagement_LimitCollectionDeletionDisabled:i=this.i18nService.t("limitCollectionDeletionDisabled",this.formatOrganizationId(e)),n=this.i18nService.t("limitCollectionDeletionDisabled",this.getShortId(e.organizationId));break;case o.Bx.Organization_CollectionManagement_LimitItemDeletionEnabled:i=this.i18nService.t("limitItemDeletionEnabled",this.formatOrganizationId(e)),n=this.i18nService.t("limitItemDeletionEnabled",this.getShortId(e.organizationId));break;case o.Bx.Organization_CollectionManagement_LimitItemDeletionDisabled:i=this.i18nService.t("limitItemDeletionDisabled",this.formatOrganizationId(e)),n=this.i18nService.t("limitItemDeletionDisabled",this.getShortId(e.organizationId));break;case o.Bx.Organization_CollectionManagement_AllowAdminAccessToAllCollectionItemsEnabled:i=this.i18nService.t("allowAdminAccessToAllCollectionItemsEnabled",this.formatOrganizationId(e)),n=this.i18nService.t("allowAdminAccessToAllCollectionItemsEnabled",this.getShortId(e.organizationId));break;case o.Bx.Organization_CollectionManagement_AllowAdminAccessToAllCollectionItemsDisabled:i=this.i18nService.t("allowAdminAccessToAllCollectionItemsDisabled",this.formatOrganizationId(e)),n=this.i18nService.t("allowAdminAccessToAllCollectionItemsDisabled",this.getShortId(e.organizationId));break;case o.Bx.Organization_ItemOrganization_Accepted:i=n=this.i18nService.t("userAcceptedTransfer");break;case o.Bx.Organization_ItemOrganization_Declined:i=this.i18nService.t("revokedUserIdDeclinedTransfer",this.formatOrgUserId(e)),n=this.i18nService.t("revokedUserIdDeclinedTransfer",this.getShortId(e.organizationUserId));break;case o.Bx.Organization_AutoConfirmEnabled_Admin:i=n=this.i18nService.t("autoConfirmEnabledByAdmin");break;case o.Bx.Organization_AutoConfirmDisabled_Admin:i=n=this.i18nService.t("autoConfirmDisabledByAdmin");break;case o.Bx.Organization_AutoConfirmEnabled_Portal:i=n=this.i18nService.t("autoConfirmEnabledByPortal");break;case o.Bx.Organization_AutoConfirmDisabled_Portal:i=n=this.i18nService.t("autoConfirmDisabledByPortal");break;case o.Bx.Organization_InviteLinkCreated:i=n=this.i18nService.t("inviteLinkEventCreated");break;case o.Bx.Organization_InviteLinkDomainsEdited:i=n=this.i18nService.t("inviteLinkEventDomainsEdited");break;case o.Bx.Organization_InviteLinkDeleted:i=n=this.i18nService.t("inviteLinkEventDeleted");break;case o.Bx.Organization_InviteLinkClientCopied:i=n=this.i18nService.t("inviteLinkEventCopied");break;case o.Bx.Organization_InviteLinkRefreshed:i=n=this.i18nService.t("inviteLinkEventRegenerated");break;case o.Bx.Policy_Updated:{i=this.i18nService.t("modifiedPolicyId",this.formatPolicyId(e));const t=this.policies.filter(t=>t.id===e.policyId)[0];let s=this.getShortId(e.policyId);null!=t&&(s=r.tt[t.type]),n=this.i18nService.t("modifiedPolicyId",s);break}case o.Bx.ProviderUser_Invited:i=this.i18nService.t("invitedUserId",this.formatProviderUserId(e)),n=this.i18nService.t("invitedUserId",this.getShortId(e.providerUserId));break;case o.Bx.ProviderUser_Confirmed:i=this.i18nService.t("confirmedUserId",this.formatProviderUserId(e)),n=this.i18nService.t("confirmedUserId",this.getShortId(e.providerUserId));break;case o.Bx.ProviderUser_Updated:i=this.i18nService.t("editedUserId",this.formatProviderUserId(e)),n=this.i18nService.t("editedUserId",this.getShortId(e.providerUserId));break;case o.Bx.ProviderUser_Removed:i=this.i18nService.t("removedUserId",this.formatProviderUserId(e)),n=this.i18nService.t("removedUserId",this.getShortId(e.providerUserId));break;case o.Bx.ProviderOrganization_Created:i=this.i18nService.t("createdOrganizationId",this.formatProviderOrganizationId(e)),n=this.i18nService.t("createdOrganizationId",this.getShortId(e.providerOrganizationId));break;case o.Bx.ProviderOrganization_Added:i=this.i18nService.t("addedOrganizationId",this.formatProviderOrganizationId(e)),n=this.i18nService.t("addedOrganizationId",this.getShortId(e.providerOrganizationId));break;case o.Bx.ProviderOrganization_Removed:i=this.i18nService.t("removedOrganizationId",this.formatProviderOrganizationId(e)),n=this.i18nService.t("removedOrganizationId",this.getShortId(e.providerOrganizationId));break;case o.Bx.ProviderOrganization_VaultAccessed:i=this.i18nService.t("accessedClientVault",this.formatProviderOrganizationId(e)),n=this.i18nService.t("accessedClientVault",this.getShortId(e.providerOrganizationId));break;case o.Bx.OrganizationDomain_Added:i=n=this.i18nService.t("addedDomain",this.escapeHtml(e.domainName));break;case o.Bx.OrganizationDomain_Removed:i=n=this.i18nService.t("removedDomain",this.escapeHtml(e.domainName));break;case o.Bx.OrganizationDomain_Verified:i=n=this.i18nService.t("domainClaimedEvent",this.escapeHtml(e.domainName));break;case o.Bx.OrganizationDomain_NotVerified:i=n=this.i18nService.t("domainNotClaimedEvent",this.escapeHtml(e.domainName));break;case o.Bx.Secret_Retrieved:i=this.i18nService.t("accessedSecretWithId",this.formatSecretId(e,t)),n=this.i18nService.t("accessedSecretWithId",this.getShortId(e.secretId));break;case o.Bx.Secret_Created:i=this.i18nService.t("createdSecretWithId",this.formatSecretId(e,t)),n=this.i18nService.t("createdSecretWithId",this.getShortId(e.secretId));break;case o.Bx.Secret_Deleted:i=this.i18nService.t("deletedSecretWithId",this.formatSecretId(e,t)),n=this.i18nService.t("deletedSecretWithId",this.getShortId(e.secretId));break;case o.Bx.Secret_Permanently_Deleted:i=this.i18nService.t("permanentlyDeletedSecretWithId",this.formatSecretId(e,t)),n=this.i18nService.t("permanentlyDeletedSecretWithId",this.getShortId(e.secretId));break;case o.Bx.Secret_Restored:i=this.i18nService.t("restoredSecretWithId",this.formatSecretId(e,t)),n=this.i18nService.t("restoredSecretWithId",this.getShortId(e.secretId));break;case o.Bx.Secret_Edited:i=this.i18nService.t("editedSecretWithId",this.formatSecretId(e,t)),n=this.i18nService.t("editedSecretWithId",this.getShortId(e.secretId));break;case o.Bx.Project_Retrieved:i=this.i18nService.t("accessedProjectWithIdentifier",this.formatProjectId(e,t)),n=this.i18nService.t("accessedProjectWithIdentifier",this.getShortId(e.projectId));break;case o.Bx.Project_Created:i=this.i18nService.t("createdProjectWithId",this.formatProjectId(e,t)),n=this.i18nService.t("createdProjectWithId",this.getShortId(e.projectId));break;case o.Bx.Project_Deleted:i=this.i18nService.t("deletedProjectWithId",this.formatProjectId(e,t)),n=this.i18nService.t("deletedProjectWithId",this.getShortId(e.projectId));break;case o.Bx.Project_Edited:i=this.i18nService.t("editedProjectWithId",this.formatProjectId(e,t)),n=this.i18nService.t("editedProjectWithId",this.getShortId(e.projectId));break;case o.Bx.ServiceAccount_UserAdded:i=this.i18nService.t("addedUserToServiceAccountWithId",this.formatUserId(e,t),this.formatServiceAccountId(e,t)),n=this.i18nService.t("addedUserToServiceAccountWithId",this.formatUserId(e,t),this.formatServiceAccountId(e,t));break;case o.Bx.ServiceAccount_UserRemoved:i=this.i18nService.t("removedUserToServiceAccountWithId",this.formatUserId(e,t),this.formatServiceAccountId(e,t)),n=this.i18nService.t("removedUserToServiceAccountWithId",this.formatUserId(e,t),this.formatServiceAccountId(e,t));break;case o.Bx.ServiceAccount_GroupRemoved:i=this.i18nService.t("removedGroupFromServiceAccountWithId",this.formatGroupId(e),this.formatServiceAccountId(e,t)),n=this.i18nService.t("removedGroupFromServiceAccountWithId",this.formatGroupId(e),this.formatServiceAccountId(e,t));break;case o.Bx.ServiceAccount_GroupAdded:i=this.i18nService.t("addedGroupToServiceAccountId",this.formatGroupId(e),this.formatServiceAccountId(e,t)),n=this.i18nService.t("addedGroupToServiceAccountId",this.formatGroupId(e),this.formatServiceAccountId(e,t));break;case o.Bx.ServiceAccount_Created:i=this.i18nService.t("serviceAccountCreatedWithId",this.formatServiceAccountId(e,t)),n=this.i18nService.t("serviceAccountCreatedWithId",this.formatServiceAccountId(e,t));break;case o.Bx.ServiceAccount_Deleted:i=this.i18nService.t("serviceAccountDeletedWithId",this.formatServiceAccountId(e,t)),n=this.i18nService.t("serviceAccountDeletedWithId",this.formatServiceAccountId(e,t));break;case o.Bx.PhishingBlocker_SiteAccessed:i=this.i18nService.t("phishingBlockerSiteAccessed"),n=this.i18nService.t("phishingBlockerSiteAccessed");break;case o.Bx.PhishingBlocker_SiteExited:i=this.i18nService.t("phishingBlockerSiteExited"),n=this.i18nService.t("phishingBlockerSiteExited");break;case o.Bx.PhishingBlocker_Bypassed:i=this.i18nService.t("phishingBlockerBypassed"),n=this.i18nService.t("phishingBlockerBypassed");break;case o.Bx.Send_Created_Text:i=this.i18nService.t("createdTextSendV2",this.formatSendId(e,t)),n=this.i18nService.t("createdTextSendV2",this.formatSendIdText(e,t));break;case o.Bx.Send_Created_Text_WithEmailVerification:i=this.i18nService.t("createdTextSendWithEmailVerificationV2",this.formatSendId(e,t)),n=this.i18nService.t("createdTextSendWithEmailVerificationV2",this.formatSendIdText(e,t));break;case o.Bx.Send_Created_Text_WithPasswordProtection:i=this.i18nService.t("createdTextSendWithPasswordProtectionV2",this.formatSendId(e,t)),n=this.i18nService.t("createdTextSendWithPasswordProtectionV2",this.formatSendIdText(e,t));break;case o.Bx.Send_Created_File:i=this.i18nService.t("createdFileSendV2",this.formatSendId(e,t)),n=this.i18nService.t("createdFileSendV2",this.formatSendIdText(e,t));break;case o.Bx.Send_Created_File_WithEmailVerification:i=this.i18nService.t("createdFileSendWithEmailVerificationV2",this.formatSendId(e,t)),n=this.i18nService.t("createdFileSendWithEmailVerificationV2",this.formatSendIdText(e,t));break;case o.Bx.Send_Created_File_WithPasswordProtection:i=this.i18nService.t("createdFileSendWithPasswordProtectionV2",this.formatSendId(e,t)),n=this.i18nService.t("createdFileSendWithPasswordProtectionV2",this.formatSendIdText(e,t));break;case o.Bx.Send_Updated_Text:i=this.i18nService.t("editedTextSendV2",this.formatSendId(e,t)),n=this.i18nService.t("editedTextSendV2",this.formatSendIdText(e,t));break;case o.Bx.Send_Updated_File:i=this.i18nService.t("editedFileSendV2",this.formatSendId(e,t)),n=this.i18nService.t("editedFileSendV2",this.formatSendIdText(e,t));break;case o.Bx.Send_Deleted_Text:i=this.i18nService.t("deletedTextSendV2",this.formatSendId(e,t)),n=this.i18nService.t("deletedTextSendV2",this.formatSendIdText(e,t));break;case o.Bx.Send_Deleted_File:i=this.i18nService.t("deletedFileSendV2",this.formatSendId(e,t)),n=this.i18nService.t("deletedFileSendV2",this.formatSendIdText(e,t));break;case o.Bx.Send_Accessed_Text:i=this.i18nService.t("accessedTextSendV2",this.formatSendId(e,t),this.formatSendCreatorId(e,t)),n=this.i18nService.t("accessedTextSendV2",this.formatSendIdText(e,t),this.getShortId(e.userId));break;case o.Bx.Send_Accessed_File:i=this.i18nService.t("accessedFileSendV2",this.formatSendId(e,t),this.formatSendCreatorId(e,t)),n=this.i18nService.t("accessedFileSendV2",this.formatSendIdText(e,t),this.getShortId(e.userId))}return{message:""===i?null:i,humanReadableMessage:""===n?null:n}})}getAppInfo(e){if(e.serviceAccountId)return["bwi-globe",this.i18nService.t("sdk")];switch(e.deviceType){case a.bq.Android:return["bwi-mobile",this.i18nService.t("mobile")+" - Android"];case a.bq.iOS:return["bwi-mobile",this.i18nService.t("mobile")+" - iOS"];case a.bq.UWP:return["bwi-mobile",this.i18nService.t("mobile")+" - Windows"];case a.bq.ChromeExtension:return["bwi-puzzle",this.i18nService.t("extension")+" - Chrome"];case a.bq.FirefoxExtension:return["bwi-puzzle",this.i18nService.t("extension")+" - Firefox"];case a.bq.OperaExtension:return["bwi-puzzle",this.i18nService.t("extension")+" - Opera"];case a.bq.EdgeExtension:return["bwi-puzzle",this.i18nService.t("extension")+" - Edge"];case a.bq.VivaldiExtension:return["bwi-puzzle",this.i18nService.t("extension")+" - Vivaldi"];case a.bq.SafariExtension:return["bwi-puzzle",this.i18nService.t("extension")+" - Safari"];case a.bq.WindowsDesktop:return["bwi-desktop",this.i18nService.t("desktop")+" - Windows"];case a.bq.MacOsDesktop:return["bwi-desktop",this.i18nService.t("desktop")+" - macOS"];case a.bq.LinuxDesktop:return["bwi-desktop",this.i18nService.t("desktop")+" - Linux"];case a.bq.ChromeBrowser:return["bwi-browser",this.i18nService.t("webVault")+" - Chrome"];case a.bq.FirefoxBrowser:return["bwi-browser",this.i18nService.t("webVault")+" - Firefox"];case a.bq.OperaBrowser:return["bwi-browser",this.i18nService.t("webVault")+" - Opera"];case a.bq.SafariBrowser:return["bwi-browser",this.i18nService.t("webVault")+" - Safari"];case a.bq.VivaldiBrowser:return["bwi-browser",this.i18nService.t("webVault")+" - Vivaldi"];case a.bq.EdgeBrowser:return["bwi-browser",this.i18nService.t("webVault")+" - Edge"];case a.bq.IEBrowser:return["bwi-browser",this.i18nService.t("webVault")+" - IE"];case a.bq.DuckDuckGoBrowser:return["bwi-browser",this.i18nService.t("webVault")+" - DuckDuckGo"];case a.bq.Server:return["bwi-user-monitor",this.i18nService.t("server")];case a.bq.WindowsCLI:return["bwi-cli",this.i18nService.t("cli")+" - Windows"];case a.bq.MacOsCLI:return["bwi-cli",this.i18nService.t("cli")+" - macOS"];case a.bq.LinuxCLI:return["bwi-cli",this.i18nService.t("cli")+" - Linux"];case a.bq.UnknownBrowser:return["bwi-browser",this.i18nService.t("webVault")+" - "+this.i18nService.t("unknown")];default:return["bwi-globe",this.i18nService.t("unknown")]}}formatCipherId(e,t){const i=this.getShortId(e.cipherId);if(null==e.organizationId||!t.cipherInfo)return"<code>"+i+"</code>";const n=this.makeAnchor(i);return n.setAttribute("href",`#/organizations/${e.organizationId}/vault?search=${i}&viewEvents=${e.cipherId}&type=all`),n.outerHTML}formatGroupId(e){const t=this.getShortId(e.groupId),i=this.makeAnchor(t);return i.setAttribute("href","#/organizations/"+e.organizationId+"/groups?search="+t),i.outerHTML}formatCollectionId(e){const t=this.getShortId(e.collectionId),i=this.makeAnchor(t);return i.setAttribute("href",`#/organizations/${e.organizationId}/vault?collectionId=${e.collectionId}`),i.outerHTML}formatOrgUserId(e){const t=this.getShortId(e.organizationUserId),i=this.makeAnchor(t);return i.setAttribute("href","#/organizations/"+e.organizationId+"/members?search="+t+"&viewEvents="+e.organizationUserId),i.outerHTML}formatProviderUserId(e){const t=this.getShortId(e.providerUserId),i=this.makeAnchor(t);return i.setAttribute("href","#/providers/"+e.providerId+"/manage/people?search="+t+"&viewEvents="+e.providerUserId),i.outerHTML}formatProviderOrganizationId(e){const t=this.getShortId(e.providerOrganizationId),i=this.makeAnchor(t);return i.setAttribute("href","#/providers/"+e.providerId+"/clients?search="+t),i.outerHTML}formatOrganizationId(e){const t=this.getShortId(e.organizationId),i=this.makeAnchor(t);return i.setAttribute("href","#/organizations/"+e.organizationId+"/settings/account"),i.outerHTML}formatPolicyId(e){const t=this.getShortId(e.policyId),i=this.makeAnchor(t);return i.setAttribute("href","#/organizations/"+e.organizationId+"/settings/policies?policyId="+e.policyId),i.outerHTML}formatSecretId(e,t){const i=this.getShortId(e.secretId);if(t.disableLink)return i;const n=this.makeAnchor(i);return n.setAttribute("href","#/sm/"+e.organizationId+"/secrets?search="+i+"&viewEvents="+e.secretId+"&type=all"),n.outerHTML}formatServiceAccountId(e,t){const i=this.getShortId(e.grantedServiceAccountId);if(t.disableLink)return i;const n=this.makeAnchor(i);return n.setAttribute("href","#/sm/"+e.organizationId+"/machine-accounts?search="+i+"&viewEvents="+e.grantedServiceAccountId+"&type=all"),n.outerHTML}formatUserId(e,t){const i=this.getShortId(e.userId);if(t.disableLink)return i;const n=this.makeAnchor(i);return n.setAttribute("href","#/organizations/"+e.organizationId+"/members?search="+i),n.outerHTML}formatProjectId(e,t){const i=this.getShortId(e.projectId);if(t.disableLink)return i;const n=this.makeAnchor(i);return n.setAttribute("href","#/sm/"+e.organizationId+"/projects?search="+i+"&viewEvents="+e.projectId+"&type=all"),n.outerHTML}makeAnchor(e){const t=document.createElement("a");return t.title=this.i18nService.t("view"),t.innerHTML="<code>"+e+"</code>",t}formatSendId(e,t){if(t.hideSendId||null==e.sendId)return"";const i=this.getShortId(e.sendId),n=this.makeAnchor(i);return n.title=this.i18nService.t("viewSendEvents",i),n.setAttribute("href",A+e.sendId)," "+n.outerHTML}formatSendIdText(e,t){return t.hideSendId||null==e.sendId?"":" "+this.getShortId(e.sendId)}formatSendCreatorId(e,t){if(null==e.userId)return"";const i=this.getShortId(e.userId);if(null!=t.linkableMemberIds&&!t.linkableMemberIds.has(e.userId))return"<code>"+i+"</code>";const n=this.makeAnchor(i);return n.title=this.i18nService.t("viewMemberEvents",i),n.setAttribute("href",p+e.userId),n.outerHTML}getShortId(e){return null==e?void 0:e.substring(0,8)}escapeHtml(e){if(!e)return e;const t=document.createElement("div");return t.textContent=e,t.innerHTML}toDateTimeLocalString(e){return e.getFullYear()+"-"+this.pad(e.getMonth()+1)+"-"+this.pad(e.getDate())+"T"+this.pad(e.getHours())+":"+this.pad(e.getMinutes())}pad(e){const t=Math.floor(Math.abs(e));return(t<10?"0":"")+t}}g.ɵfac=function(e){return new(e||g)(l.KVO(c.W),l.KVO(d.m),l.KVO(u.D))},g.ɵprov=l.jDH({token:g,factory:g.ɵfac});class v{constructor(){this.cipherInfo=!0,this.disableLink=!1,this.hideSendId=!1}}},80504(e,t,i){"use strict";i.d(t,{nI:()=>ne,C0:()=>oe.C,AX:()=>Ee,DF:()=>le,uE:()=>se});var n=i(84653),r=i(46758),s=i(5884),o=i(84330),a=i(72932),l=i(25065),c=i(14092),d=i(10840),u=i(62819),h=i(84522),A=i(31539),p=i(11217),g=i(26983),v=i(83604),m=i(98569),f=i(191),y=i(35284),b=i(35500),C=i(58329),I=i(43090);function w(){return(e,t)=>{const i=(0,p.WQX)(g.Ix),n=(0,p.WQX)(I.l),r=(0,p.WQX)(C.Q);return(0,p.WQX)(b.D).activeAccount$.pipe((0,f.n)(e=>e?r.hasPremiumFromAnySource$(e.id):(0,v.of)(!1)),(0,f.n)(e=>e?(0,v.of)(e):(0,m.H)(n.promptForPremium()).pipe((0,f.n)(()=>(0,v.of)(e)))),(0,y.M)(e=>{if(!e&&"/login"===i.url)return i.createUrlTree(["/"])}))}}var B=i(84210),E=i(68108),S=i(69783),Q=i(81216),k=i(14041),R=i(72331),F=i(38620),T=i(56898),D=i(44432),P=i(10672),M=i(86226),x=i(19934),V=i(43759),G=i(49112),U=i(25740),O=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function N(e,t){1&e&&(k.j41(0,"p"),k.EFF(1),k.nI1(2,"i18n"),k.k0s()),2&e&&(k.R7$(),k.SpI("",k.bMT(2,1,"reportError"),"..."))}function j(e,t){if(1&e&&(k.j41(0,"bit-callout",6),k.nI1(1,"i18n"),k.EFF(2),k.nI1(3,"i18n"),k.k0s()),2&e){const e=k.XpG(3);k.Y8G("title",k.mNQ(k.bMT(1,3,"goodNews"))),k.R7$(2),k.SpI(" ",k.i5U(3,5,"breachEmailNotFound",e.checkedEmail)," ")}}function Y(e,t){if(1&e&&(k.j41(0,"li"),k.EFF(1),k.k0s()),2&e){const e=t.$implicit;k.R7$(),k.JRh(e)}}function X(e,t){if(1&e&&(k.j41(0,"li",9)(1,"div",10),k.nrm(2,"img",11),k.k0s(),k.j41(3,"div",12)(4,"h3",13),k.EFF(5),k.k0s(),k.nrm(6,"p",14),k.j41(7,"p",15),k.EFF(8),k.nI1(9,"i18n"),k.k0s(),k.j41(10,"ul"),k.Z7z(11,Y,2,1,"li",null,k.fX1),k.k0s()(),k.j41(13,"div",16)(14,"dl")(15,"dt"),k.EFF(16),k.nI1(17,"i18n"),k.k0s(),k.j41(18,"dd"),k.EFF(19),k.k0s(),k.j41(20,"dt"),k.EFF(21),k.nI1(22,"i18n"),k.k0s(),k.j41(23,"dd"),k.EFF(24),k.nI1(25,"number"),k.k0s(),k.j41(26,"dt"),k.EFF(27),k.nI1(28,"i18n"),k.k0s(),k.j41(29,"dd"),k.EFF(30),k.nI1(31,"date"),k.k0s(),k.j41(32,"dt"),k.EFF(33),k.nI1(34,"i18n"),k.k0s(),k.j41(35,"dd"),k.EFF(36),k.nI1(37,"date"),k.k0s()()()()),2&e){const e=t.$implicit;k.R7$(2),k.Y8G("src",e.logoPath,k.B4B),k.R7$(3),k.JRh(e.title),k.R7$(),k.Y8G("innerHTML",e.description,k.npT),k.R7$(2),k.SpI("",k.bMT(9,12,"compromisedData"),":"),k.R7$(3),k.Dyx(e.dataClasses),k.R7$(5),k.JRh(k.bMT(17,14,"website")),k.R7$(3),k.JRh(e.domain),k.R7$(2),k.JRh(k.bMT(22,16,"affectedUsers")),k.R7$(3),k.JRh(k.bMT(25,18,e.pwnCount)),k.R7$(3),k.JRh(k.bMT(28,20,"breachOccurred")),k.R7$(3),k.JRh(k.i5U(31,22,e.breachDate,"mediumDate")),k.R7$(3),k.JRh(k.bMT(34,25,"breachReported")),k.R7$(3),k.JRh(k.i5U(37,27,e.addedDate,"mediumDate"))}}function z(e,t){if(1&e&&(k.j41(0,"bit-callout",7),k.nI1(1,"i18n"),k.EFF(2),k.nI1(3,"i18n"),k.k0s(),k.j41(4,"ul",8),k.Z7z(5,X,38,30,"li",9,k.fX1),k.k0s()),2&e){const e=k.XpG(3);k.Y8G("title",k.mNQ(k.bMT(1,3,"breachFound"))),k.R7$(2),k.SpI(" ",k.brH(3,5,"breachEmailFound",e.checkedEmail,e.breachedAccounts.length)," "),k.R7$(3),k.Dyx(e.breachedAccounts)}}function L(e,t){if(1&e&&k.nVh(0,j,4,8,"bit-callout",6)(1,z,7,9),2&e){const e=k.XpG(2);k.vxM(e.breachedAccounts.length?1:0)}}function W(e,t){if(1&e&&(k.j41(0,"div",5),k.nVh(1,N,3,3,"p")(2,L,2,1),k.k0s()),2&e){const e=k.XpG();k.R7$(),k.vxM(e.error?1:2)}}class K{constructor(e,t,i,n){this.auditService=e,this.accountService=t,this.formBuilder=i,this.logService=n,this.loading=!1,this.error=!1,this.breachedAccounts=[],this.formGroup=this.formBuilder.group({email:["",{validators:[B.k0.required,B.k0.email],updateOn:"change"}]}),this.submit=()=>O(this,void 0,void 0,function*(){if(this.formGroup.markAsTouched(),this.formGroup.invalid)return void this.logService.warning("[BreachReport] submit blocked invalid form");this.error=!1,this.loading=!0,this.logService.info("[BreachReport] breach check start");const e=this.formGroup.value.email.toLowerCase();try{this.breachedAccounts=yield this.auditService.breachedAccounts(e),this.logService.info(`[BreachReport] breach check complete count=${this.breachedAccounts.length}`)}catch(t){this.error=!0,this.logService.error("[BreachReport] breach check failure")}finally{this.loading=!1,this.logService.info("[BreachReport] breach check finalize loading=false")}this.checkedEmail=e})}ngOnInit(){return O(this,void 0,void 0,function*(){this.logService.info("[BreachReport] load start");try{this.formGroup.get("email").setValue(yield(0,E._)(this.accountService.activeAccount$.pipe((0,S.T)(e=>null==e?void 0:e.email)))),this.logService.info("[BreachReport] load success")}catch(e){throw this.logService.error("[BreachReport] load failure",e),e}})}}K.ɵfac=function(e){return new(e||K)(k.rXU(R.d),k.rXU(b.D),k.rXU(B.ok),k.rXU(Q.Kc))},K.ɵcmp=k.VBU({type:K,selectors:[["app-breach-report"]],standalone:!1,decls:18,vars:16,consts:[[3,"bitSubmit","formGroup"],["disableMargin","",1,"tw-w-1/2"],["id","email","type","text","formControlName","email","bitInput",""],[1,"tw-mb-4","tw-block","tw-text-muted"],["type","submit","buttonType","primary","bitButton","",3,"loading"],[1,"tw-mt-4"],["type","success",3,"title"],["type","danger",3,"title"],[1,"tw-list-none","tw-flex-col","tw-divide-x-0","tw-divide-y","tw-divide-solid","tw-divide-secondary-300","tw-rounded","tw-border","tw-border-solid","tw-border-secondary-300","tw-p-0"],[1,"tw-flex","tw-gap-4","tw-p-4"],[1,"tw-w-32","tw-flex-none"],["alt","",1,"tw-max-w-32","tw-items-stretch",3,"src"],[1,"tw-flex-auto"],[1,"tw-text-lg"],[3,"innerHTML"],[1,"tw-mb-1"],[1,"tw-w-48","tw-flex-none"]],template:function(e,t){1&e&&(k.nrm(0,"app-header"),k.j41(1,"bit-container")(2,"p"),k.EFF(3),k.nI1(4,"i18n"),k.k0s(),k.j41(5,"form",0)(6,"bit-form-field",1)(7,"bit-label"),k.EFF(8),k.nI1(9,"i18n"),k.k0s(),k.nrm(10,"input",2),k.k0s(),k.j41(11,"small",3),k.EFF(12),k.nI1(13,"i18n"),k.k0s(),k.j41(14,"button",4),k.EFF(15),k.nI1(16,"i18n"),k.k0s()(),k.nVh(17,W,3,1,"div",5),k.k0s()),2&e&&(k.R7$(3),k.JRh(k.bMT(4,8,"breachDesc")),k.R7$(2),k.Y8G("bitSubmit",t.submit)("formGroup",t.formGroup),k.R7$(3),k.JRh(k.bMT(9,10,"email")),k.R7$(4),k.JRh(k.bMT(13,12,"breachCheckEmail")),k.R7$(2),k.Y8G("loading",t.loading),k.R7$(),k.SpI(" ",k.bMT(16,14,"checkBreaches")," "),k.R7$(2),k.vxM(!t.loading&&t.checkedEmail?17:-1))},dependencies:[B.qT,B.me,B.BC,B.cb,B.j4,B.JD,F.L,T.Q,D.G,P.H,M.j,x.J,V.h,G.f,r.QX,r.vh,U.$],encapsulation:2});var Z=i(85037),H=i(30414),J=i(82392);const q=J.JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0.7 2.4 79.3 77.2">
|
|
<path class="tw-fill-illustration-bg-primary" d="M17.6 26.8a4.8 4.8 0 0 1 4.8-4.8h52.8a4.8 4.8 0 0 1 4.8 4.8v33.6a4.8 4.8 0 0 1-4.8 4.8H22.4a4.8 4.8 0 0 1-4.8-4.8V26.8Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M75.2 23.6H22.4a3.2 3.2 0 0 0-3.2 3.2v33.6a3.2 3.2 0 0 0 3.2 3.2h52.8a3.2 3.2 0 0 0 3.2-3.2V26.8a3.2 3.2 0 0 0-3.2-3.2ZM22.4 22a4.8 4.8 0 0 0-4.8 4.8v33.6a4.8 4.8 0 0 0 4.8 4.8h52.8a4.8 4.8 0 0 0 4.8-4.8V26.8a4.8 4.8 0 0 0-4.8-4.8H22.4Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-secondary" d="M17.6 26.8H80v33.6H17.6V26.8Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M78.4 28.4H19.2v30.4h59.2V28.4Zm-60.8-1.6v33.6H80V26.8H17.6Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-primary" d="M41.6 64.4H56v14.4H41.6V64.4Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M40.8 63.6h16V78h6.4a.8.8 0 0 1 0 1.6H34.4a.8.8 0 0 1 0-1.6h6.4V63.6ZM42.4 78h12.8V65.2H42.4V78Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-secondary" d="M42.4 65.2h12.8V70H42.4v-4.8Z"/>
|
|
<path class="tw-fill-illustration-tertiary" d="M56.8 43.6a8 8 0 1 1-16 0 8 8 0 0 1 16 0Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M48.8 50a6.4 6.4 0 1 0 0-12.8 6.4 6.4 0 0 0 0 12.8Zm0 1.6a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-primary" d="M11.496 20.793c0 10.158 8.235 18.392 18.393 18.392 10.158 0 18.392-8.234 18.392-18.392S40.047 2.4 29.89 2.4s-18.393 8.235-18.393 18.393Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M29.889 37.585c-9.274 0-16.793-7.518-16.793-16.792C13.096 11.519 20.614 4 29.89 4 39.163 4 46.68 11.52 46.68 20.793S39.163 37.585 29.89 37.585Zm0 1.6c-10.158 0-18.393-8.234-18.393-18.392S19.731 2.4 29.89 2.4c10.158 0 18.392 8.235 18.392 18.393 0 10.158-8.234 18.392-18.392 18.392Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-secondary" d="M16.093 20.792c0 7.619 6.176 13.795 13.794 13.795 7.619 0 13.795-6.176 13.795-13.795 0-7.618-6.176-13.794-13.795-13.794-7.618 0-13.794 6.176-13.794 13.794Z"/>
|
|
<path class="tw-fill-illustration-outline" d="m1.197 47.71 15.356-14.503 1.84 1.84L3.889 50.402a1.6 1.6 0 0 1-2.294.032l-.43-.43a1.6 1.6 0 0 1 .032-2.295Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M22.402 18.041c.445 0 .806.36.806.806v2.232a.806.806 0 1 1-1.612 0v-2.232c0-.445.36-.806.806-.806Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M25.407 20.22a.794.794 0 0 1-.543.994l-2.232.638a.819.819 0 0 1-1.006-.55.793.793 0 0 1 .543-.995l2.232-.637a.819.819 0 0 1 1.006.55Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M24.465 23.968a.828.828 0 0 1-1.134-.204l-1.594-2.232a.785.785 0 0 1 .195-1.11.828.828 0 0 1 1.134.204l1.595 2.232c.259.363.171.86-.196 1.11Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M19.395 20.22a.794.794 0 0 0 .544.994l2.231.638a.819.819 0 0 0 1.007-.551.793.793 0 0 0-.543-.994l-2.232-.637a.819.819 0 0 0-1.007.55Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M20.338 23.968a.828.828 0 0 0 1.134-.204l1.594-2.232a.785.785 0 0 0-.195-1.11.828.828 0 0 0-1.135.204l-1.594 2.232a.785.785 0 0 0 .196 1.11ZM29.954 18.041c.446 0 .807.36.807.806v2.232a.806.806 0 1 1-1.613 0v-2.232c0-.445.361-.806.806-.806Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M32.96 20.22a.793.793 0 0 1-.543.994l-2.232.638a.819.819 0 0 1-1.006-.55.794.794 0 0 1 .543-.995l2.231-.637a.819.819 0 0 1 1.007.55Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M32.018 23.968a.828.828 0 0 1-1.135-.204l-1.594-2.232a.785.785 0 0 1 .196-1.11.828.828 0 0 1 1.134.204l1.594 2.232c.26.363.172.86-.195 1.11Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M26.948 20.22a.793.793 0 0 0 .543.994l2.232.638a.82.82 0 0 0 1.006-.551.794.794 0 0 0-.543-.994l-2.231-.637a.819.819 0 0 0-1.007.55Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M27.89 23.968a.828.828 0 0 0 1.135-.204l1.594-2.232a.785.785 0 0 0-.195-1.11.828.828 0 0 0-1.135.204l-1.594 2.232a.785.785 0 0 0 .195 1.11ZM37.505 18.041c.445 0 .806.36.806.806v2.232a.806.806 0 1 1-1.612 0v-2.232c0-.445.361-.806.806-.806Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M40.513 20.22a.793.793 0 0 1-.543.994l-2.232.638a.819.819 0 0 1-1.007-.55.793.793 0 0 1 .543-.995l2.232-.637a.819.819 0 0 1 1.007.55Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M39.569 23.968a.828.828 0 0 1-1.135-.204l-1.594-2.232a.785.785 0 0 1 .195-1.11.828.828 0 0 1 1.135.204l1.594 2.232c.26.363.172.86-.195 1.11Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M34.5 20.22a.793.793 0 0 0 .542.994l2.232.638a.82.82 0 0 0 1.006-.551.794.794 0 0 0-.543-.994l-2.232-.637a.819.819 0 0 0-1.006.55Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M35.443 23.968a.828.828 0 0 0 1.135-.204l1.594-2.232a.785.785 0 0 0-.196-1.11.828.828 0 0 0-1.134.204l-1.594 2.232a.785.785 0 0 0 .195 1.11Z" clip-rule="evenodd"/>
|
|
</svg>
|
|
`;var $=i(9171);const _=J.JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0.99 80 73.35">
|
|
<path class="tw-fill-illustration-bg-primary" d="M11.666 32.667c0-5.523 3.806-10 8.5-10h39.667c4.694 0 8.5 4.477 8.5 10v31.667c0 5.522-3.806 10-8.5 10H20.166c-4.694 0-8.5-4.478-8.5-10V32.667Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M59.833 24.334H20.166c-3.912 0-7.083 3.73-7.083 8.333v31.667c0 4.602 3.171 8.333 7.083 8.333h39.667c3.912 0 7.083-3.731 7.083-8.333V32.667c0-4.602-3.171-8.333-7.083-8.333Zm-39.667-1.667c-4.694 0-8.5 4.477-8.5 10v31.667c0 5.522 3.806 10 8.5 10h39.667c4.694 0 8.5-4.478 8.5-10V32.667c0-5.523-3.806-10-8.5-10H20.166Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-secondary" d="M13.334 56.833h53.333V63.5H13.334v-6.667Z"/>
|
|
<path class="tw-fill-illustration-tertiary" d="M0 48.5c0-5.523 4.477-10 10-10h60c5.523 0 10 4.477 10 10s-4.477 10-10 10H10c-5.523 0-10-4.477-10-10Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M70 40.167H10a8.333 8.333 0 1 0 0 16.666h60a8.333 8.333 0 1 0 0-16.666ZM10 38.5c-5.523 0-10 4.477-10 10s4.477 10 10 10h60c5.523 0 10-4.477 10-10s-4.477-10-10-10H10Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M16.667 43.5c.46 0 .834.389.834.868v3.48l3.117-1.658c.423-.225.942-.078 1.158.328.216.407.047.919-.376 1.144l-3.364 1.789 2.69 2.885c.327.35.319.89-.018 1.203-.336.314-.874.284-1.201-.067l-2.84-3.045-2.84 3.045c-.326.351-.864.38-1.2.067-.337-.314-.345-.853-.018-1.203l2.69-2.885-3.364-1.79c-.424-.224-.592-.736-.376-1.143.216-.406.735-.553 1.158-.328l3.117 1.658v-3.48c0-.48.373-.868.833-.868Zm13.334 0c.46 0 .833.389.833.868v3.48l3.117-1.658c.423-.225.942-.078 1.158.328.216.407.048.919-.376 1.144L31.37 49.45l2.69 2.885c.327.35.32.89-.017 1.203-.337.314-.875.284-1.202-.067L30 50.427l-2.839 3.045c-.327.351-.865.38-1.201.067-.337-.314-.345-.853-.018-1.203l2.69-2.885-3.364-1.79c-.424-.224-.592-.736-.376-1.143.216-.406.735-.553 1.158-.328l3.117 1.658v-3.48c0-.48.373-.868.834-.868Zm14.166.868c0-.48-.373-.868-.833-.868-.46 0-.833.389-.833.868v3.48l-3.117-1.658c-.424-.225-.942-.078-1.158.328-.216.407-.048.919.375 1.144l3.365 1.789-2.69 2.885c-.328.35-.32.89.017 1.203.337.314.874.284 1.202-.067l2.839-3.045 2.84 3.045c.327.351.864.38 1.201.067.337-.314.344-.853.017-1.203l-2.69-2.885 3.365-1.79c.423-.224.591-.736.375-1.143-.216-.406-.734-.553-1.158-.328l-3.117 1.657v-3.479Zm6.667 8.299c0-.46.373-.834.833-.834h6.667a.833.833 0 0 1 0 1.667h-6.667a.833.833 0 0 1-.833-.833Zm10.833-.834a.833.833 0 0 0 0 1.667h6.667a.833.833 0 0 0 0-1.667h-6.667Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M55.833 17.644v-.025c0-8.745-7.09-15.834-15.834-15.834S24.166 8.874 24.166 17.62v5.833h5v-5.834c0-5.983 4.85-10.833 10.833-10.833 5.983 0 10.834 4.85 10.834 10.834v.025h5Z"/>
|
|
<path class="tw-fill-illustration-bg-primary" d="M24.785 19.488h3.775v3.333h-3.775z"/>
|
|
<path class="tw-fill-illustration-outline" d="M28.367 17.618c0-6.424 5.208-11.632 11.633-11.633 6.164 0 11.206 4.795 11.605 10.859h3.409C54.61 8.9 48.043 2.585 40 2.585c-8.302 0-15.033 6.73-15.033 15.033v5.033h3.4v-5.033Zm1.6 5.834a.8.8 0 0 1-.8.8h-5a.8.8 0 0 1-.8-.8v-5.834C23.367 8.432 30.814.986 40 .985c9.186 0 16.634 7.447 16.634 16.633v.027a.8.8 0 0 1-.8.8h-5a.802.802 0 0 1-.8-.8v-.027C50.032 12.078 45.54 7.585 40 7.585s-10.033 4.492-10.033 10.033v5.834Z"/>
|
|
</svg>
|
|
`,ee=J.JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0.4 10.07 79.2 60">
|
|
<path class="tw-fill-illustration-bg-primary" d="M.4 14.872a4.8 4.8 0 0 1 4.8-4.8h69.6a4.8 4.8 0 0 1 4.8 4.8v50.4a4.8 4.8 0 0 1-4.8 4.8H5.2a4.8 4.8 0 0 1-4.8-4.8v-50.4Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M74.8 11.672H5.2a3.2 3.2 0 0 0-3.2 3.2v50.4a3.2 3.2 0 0 0 3.2 3.2h69.6a3.2 3.2 0 0 0 3.2-3.2v-50.4a3.2 3.2 0 0 0-3.2-3.2Zm-69.6-1.6a4.8 4.8 0 0 0-4.8 4.8v50.4a4.8 4.8 0 0 0 4.8 4.8h69.6a4.8 4.8 0 0 0 4.8-4.8v-50.4a4.8 4.8 0 0 0-4.8-4.8H5.2Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M79.6 24.166H.4v-1.6h79.2v1.6Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" d="M75.176 17.323a2.415 2.415 0 0 1-2.412 2.417 2.415 2.415 0 0 1-2.412-2.417 2.415 2.415 0 0 1 2.412-2.417 2.415 2.415 0 0 1 2.412 2.417ZM67.94 17.323a2.415 2.415 0 0 1-2.413 2.417 2.415 2.415 0 0 1-2.412-2.417 2.415 2.415 0 0 1 2.412-2.417 2.415 2.415 0 0 1 2.412 2.417ZM60.705 17.323a2.415 2.415 0 0 1-2.412 2.417 2.415 2.415 0 0 1-2.412-2.417 2.415 2.415 0 0 1 2.412-2.417 2.415 2.415 0 0 1 2.412 2.417Z"/>
|
|
<path class="tw-fill-illustration-bg-secondary" fill-rule="evenodd" d="M40.104 65.54c10.696 0 19.367-8.67 19.367-19.367 0-10.696-8.671-19.367-19.367-19.367-10.697 0-19.368 8.67-19.368 19.367 0 10.696 8.671 19.367 19.368 19.367Zm-9.705-26.63a2.4 2.4 0 0 0-2.4 2.4v14.568a2.4 2.4 0 0 0 2.4 2.4h19.41a2.4 2.4 0 0 0 2.4-2.4V41.31a2.4 2.4 0 0 0-2.4-2.4h-19.41Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-tertiary" d="M28 41.31a2.4 2.4 0 0 1 2.4-2.4h19.41a2.4 2.4 0 0 1 2.4 2.4v14.568a2.4 2.4 0 0 1-2.4 2.4H30.4a2.4 2.4 0 0 1-2.4-2.4V41.31Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M49.81 40.51H30.4a.8.8 0 0 0-.8.8v14.568a.8.8 0 0 0 .8.8h19.41a.8.8 0 0 0 .8-.8V41.31a.8.8 0 0 0-.8-.8Zm-19.41-1.6a2.4 2.4 0 0 0-2.4 2.4v14.568a2.4 2.4 0 0 0 2.4 2.4h19.41a2.4 2.4 0 0 0 2.4-2.4V41.31a2.4 2.4 0 0 0-2.4-2.4H30.4Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" d="M38.895 46.172a1.21 1.21 0 0 1 2.42 0v4.842a1.21 1.21 0 0 1-2.42 0v-4.842Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M34.928 39.108a5.642 5.642 0 0 1 9.772-5.642l.605 1.048a.8.8 0 1 1-1.385.8l-.605-1.048a4.042 4.042 0 0 0-7.001 4.042l.605 1.048a.8.8 0 0 1-1.385.8l-.606-1.048Z" clip-rule="evenodd"/>
|
|
</svg>
|
|
`;var te=i(90005);const ie=J.JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="11.6 3.33 56.67 73.33">
|
|
<path class="tw-fill-illustration-bg-secondary" d="M60 10a1.6 1.6 0 0 1 1.6 1.6v63.467a1.6 1.6 0 0 1-1.6 1.6H13.2a1.6 1.6 0 0 1-1.6-1.6V11.6a1.6 1.6 0 0 1 1.6-1.6H60Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M60 75.067V11.6H13.2v63.467H60ZM61.6 11.6A1.6 1.6 0 0 0 60 10H13.2a1.6 1.6 0 0 0-1.6 1.6v63.467a1.6 1.6 0 0 0 1.6 1.6H60a1.6 1.6 0 0 0 1.6-1.6V11.6Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-primary" d="M68.266 68.4V4.933a1.6 1.6 0 0 0-1.6-1.6H31.012c-.425 0-.827.164-1.127.464L18.733 14.95c-.3.3-.467.706-.467 1.13V68.4a1.6 1.6 0 0 0 1.6 1.6h46.8a1.6 1.6 0 0 0 1.6-1.6Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M66.666 68.4V4.933H31.012L19.866 16.079V68.4h46.8Zm1.6-63.467V68.4a1.6 1.6 0 0 1-1.6 1.6h-46.8a1.6 1.6 0 0 1-1.6-1.6V16.08c0-.425.167-.83.467-1.13L29.885 3.796c.3-.3.702-.464 1.127-.464h35.654a1.6 1.6 0 0 1 1.6 1.6Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M31.6 4.2a.8.8 0 0 1 .8.8v11.666a.8.8 0 0 1-.8.8H19.932a.8.8 0 0 1 0-1.6h10.866V4.999a.8.8 0 0 1 .8-.8Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-tertiary" d="M39.617 22.914c1.642-2.825 5.723-2.825 7.365 0l10.896 18.741c1.651 2.84-.397 6.401-3.682 6.401H32.403c-3.285 0-5.334-3.56-3.683-6.4l10.897-18.742Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M38.925 22.51c1.951-3.355 6.798-3.355 8.75 0L58.57 41.254c1.962 3.373-.472 7.603-4.374 7.603H32.403c-3.901 0-6.335-4.23-4.374-7.603L38.925 22.51Zm7.366.805c-1.334-2.295-4.648-2.295-5.982 0L29.412 42.057c-1.34 2.306.323 5.199 2.991 5.199h21.793c2.668 0 4.332-2.893 2.991-5.2L46.291 23.316Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" d="M44.764 42.2a1.464 1.464 0 1 1-2.928 0 1.464 1.464 0 0 1 2.928 0ZM41.155 29.495a.426.426 0 0 1 .423-.472h3.444c.254 0 .45.22.424.472l-1.007 9.396a.426.426 0 0 1-.423.38h-1.43a.426.426 0 0 1-.424-.38l-.509-4.743-.498-4.653Z"/>
|
|
</svg>
|
|
`;var ne,re=i(54006);!function(e){e.ExposedPasswords="exposedPasswords",e.ReusedPasswords="reusedPasswords",e.WeakPasswords="weakPasswords",e.UnsecuredWebsites="unsecuredWebsites",e.Inactive2fa="inactive2fa",e.DataBreach="dataBreach",e.MemberAccessReport="memberAccessReport"}(ne||(ne={}));const se={[ne.ExposedPasswords]:{title:"exposedPasswordsReport",description:"exposedPasswordsReportDesc",route:"exposed-passwords-report",icon:q},[ne.ReusedPasswords]:{title:"reusedPasswordsReport",description:"reusedPasswordsReportDesc",route:"reused-passwords-report",icon:$.R},[ne.WeakPasswords]:{title:"weakPasswordsReport",description:"weakPasswordsReportDesc",route:"weak-passwords-report",icon:_},[ne.UnsecuredWebsites]:{title:"unsecuredWebsitesReport",description:"unsecuredWebsitesReportDesc",route:"unsecured-websites-report",icon:ee},[ne.Inactive2fa]:{title:"inactive2faReport",description:"inactive2faReportDesc",route:"inactive-two-factor-report",icon:te.f},[ne.DataBreach]:{title:"dataBreachReport",description:"breachDesc",route:"breach-report",icon:ie},[ne.MemberAccessReport]:{title:"memberAccessReport",description:"memberAccessReportDesc",route:"member-access-report",icon:re.u}};var oe=i(80378),ae=i(57768);class le{}le.ɵfac=function(e){return new(e||le)},le.ɵmod=k.$C({type:le}),le.ɵinj=p.G2t({imports:[r.MD,ae.G]});var ce=i(25219),de=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class ue{constructor(e,t){this.billingAccountProfileStateService=e,this.accountService=t,this.reports=(0,p.vPA)([])}ngOnInit(){return de(this,void 0,void 0,function*(){const e=yield(0,E._)(this.accountService.activeAccount$),t=(yield(0,E._)(this.billingAccountProfileStateService.hasPremiumFromAnySource$(e.id)))?oe.C.Enabled:oe.C.RequiresPremium;this.reports.set([Object.assign(Object.assign({},se[ne.ExposedPasswords]),{variant:t}),Object.assign(Object.assign({},se[ne.ReusedPasswords]),{variant:t}),Object.assign(Object.assign({},se[ne.WeakPasswords]),{variant:t}),Object.assign(Object.assign({},se[ne.UnsecuredWebsites]),{variant:t}),Object.assign(Object.assign({},se[ne.Inactive2fa]),{variant:t}),Object.assign(Object.assign({},se[ne.DataBreach]),{variant:oe.C.Enabled})])})}}ue.ɵfac=function(e){return new(e||ue)(k.rXU(C.Q),k.rXU(b.D))},ue.ɵcmp=k.VBU({type:ue,selectors:[["app-reports-home"]],standalone:!1,decls:6,vars:4,consts:[[3,"reports"]],template:function(e,t){1&e&&(k.nrm(0,"app-header"),k.j41(1,"bit-container")(2,"p"),k.EFF(3),k.nI1(4,"i18n"),k.k0s(),k.nrm(5,"app-report-list",0),k.k0s()),2&e&&(k.R7$(3),k.JRh(k.bMT(4,2,"reportsDesc")),k.R7$(2),k.Y8G("reports",t.reports()))},dependencies:[P.H,ce.i,G.f,U.$],encapsulation:2,changeDetection:0});var he=i(17343),Ae=i(71687),pe=i(72523),ge=i(38798),ve=i(24590),me=i(92128),fe=i(68711);const ye=["backButtonTemplate"];function be(e,t){if(1&e){const e=k.RV6();k.j41(0,"span",2),k.bIt("keydown.tab",function(t){p.eBV(e);const i=k.XpG();return p.Njj(i.focusOverlayButton(t))}),k.k0s()}}function Ce(e,t){if(1&e){const e=k.RV6();k.j41(0,"div",3)(1,"a",4),k.bIt("keydown.tab",function(t){p.eBV(e);const i=k.XpG();return p.Njj(i.returnFocusToPage(t))}),k.EFF(2),k.nI1(3,"i18n"),k.k0s()()}2&e&&(k.R7$(2),k.SpI(" ",k.bMT(3,1,"backToReports")," "))}class Ie{constructor(){this.homepage=!0,this.backButtonTemplate=ve.ebz.required("backButtonTemplate"),this.overlayRef=null,this.overlay=(0,p.WQX)(n.hJ),this.viewContainerRef=(0,p.WQX)(k.c1b),this.router=(0,p.WQX)(g.Ix),this.router.events.pipe((0,me.pQ)(),(0,fe.p)(e=>e instanceof g.wF)).subscribe(()=>this.updateOverlay())}ngAfterViewInit(){this.updateOverlay()}ngOnDestroy(){var e;null===(e=this.overlayRef)||void 0===e||e.dispose()}returnFocusToPage(e){if(e.shiftKey)return;e.preventDefault();const t=document.querySelector("[cdktrapfocus] a:not([tabindex='-1'])");null==t||t.focus()}focusOverlayButton(e){var t,i;if(e.shiftKey)return;e.preventDefault();const n=null===(i=null===(t=this.overlayRef)||void 0===t?void 0:t.overlayElement)||void 0===i?void 0:i.querySelector("a");null==n||n.focus()}updateOverlay(){var e;"/reports"===this.router.url?(this.homepage=!0,null===(e=this.overlayRef)||void 0===e||e.dispose(),this.overlayRef=null):this.overlayRef||(this.homepage=!1,this.overlayRef=this.overlay.create({positionStrategy:this.overlay.position().global().bottom("20px").right("32px")}),this.overlayRef.attach(new ge.VA(this.backButtonTemplate(),this.viewContainerRef)))}}Ie.ɵfac=function(e){return new(e||Ie)},Ie.ɵcmp=k.VBU({type:Ie,selectors:[["app-reports-layout"]],viewQuery:function(e,t){1&e&&k.wEZ(t.backButtonTemplate,ye,5),2&e&&k.NyB()},standalone:!1,decls:4,vars:1,consts:[["backButtonTemplate",""],["tabindex","0","aria-hidden","true",1,"tw-sr-only"],["tabindex","0","aria-hidden","true",1,"tw-sr-only",3,"keydown.tab"],[1,"tw-p-3","tw-rounded-lg","tw-opacity-90"],["bitButton","","buttonType","primary","routerLink","./","tabindex","0",3,"keydown.tab"]],template:function(e,t){1&e&&(k.nrm(0,"router-outlet"),k.nVh(1,be,1,0,"span",1),k.DNE(2,Ce,4,3,"ng-template",null,0,k.C5r)),2&e&&(k.R7$(),k.vxM(t.homepage?-1:1))},dependencies:[g.n3,h.Wk,T.Q,U.$],encapsulation:2});const we=[{path:"",component:Ie,canActivate:[A.W_],children:[{path:"",pathMatch:"full",component:ue,data:{titleId:"reports",homepage:!0}},{path:"breach-report",component:K,data:{titleId:"dataBreachReport"}},{path:"reused-passwords-report",component:he.A,data:{titleId:"reusedPasswordsReport"},canActivate:[w()]},{path:"unsecured-websites-report",component:Ae.U,data:{titleId:"unsecuredWebsitesReport"},canActivate:[w()]},{path:"weak-passwords-report",component:pe.w,data:{titleId:"weakPasswordsReport"},canActivate:[w()]},{path:"exposed-passwords-report",component:Z.y,data:{titleId:"exposedPasswordsReport"},canActivate:[w()]},{path:"inactive-two-factor-report",component:H.O,data:{titleId:"inactive2faReport"},canActivate:[w()]}]}];class Be{}Be.ɵfac=function(e){return new(e||Be)},Be.ɵmod=k.$C({type:Be}),Be.ɵinj=p.G2t({imports:[h.iI.forChild(we),h.iI]});class Ee{}Ee.ɵfac=function(e){return new(e||Ee)},Ee.ɵmod=k.$C({type:Ee}),Ee.ɵinj=p.G2t({providers:[{provide:o.hI,useClass:o.Ws},o.BR,u.l,o.aC],imports:[r.MD,n.z_,l.G,le,Be,c.t,d.Y,a.G,s.W]})},77723(e,t,i){"use strict";i.d(t,{n:()=>w});var n=i(87806),r=i(67789),s=i(73366),o=i(68108),a=i(191),l=i(29236),c=i(67553),d=i(3633),u=i(39488),h=i(36501),A=i(55542),p=i(81216),g=i(84330),v=i(62819),m=i(14041),f=i(5556),y=i(66316),b=i(35500),C=i(50700),I=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class w{constructor(e,t,i,s,o,c,u,h,p,g){this.cipherService=e,this.dialogService=t,this.passwordRepromptService=i,this.organizationService=s,this.accountService=o,this.i18nService=c,this.syncService=u,this.cipherFormConfigService=h,this.adminConsoleCipherFormConfigService=p,this.logService=g,this.isAdminConsoleActive=!1,this.loading=!1,this.hasLoaded=!1,this.ciphers=[],this.allCiphers=[],this.dataSource=new A.s,this.organization=void 0,this.organizations=[],this.maxItemsToSwitchToChipSelect=5,this.filterStatus=[0],this.showFilterToggle=!1,this.selectedFilterChip="0",this.chipSelectOptions=[],this.vaultMsg="vault",this.currentFilterStatus=0,this.filterOrgStatus$=new r.t(0),this.destroyed$=new n.B,this.organizations$=this.accountService.activeAccount$.pipe(d.F6,(0,a.n)(e=>this.organizationService.organizations$(e))),this.organizations$.pipe((0,l.Q)(this.destroyed$)).subscribe(e=>{this.organizations=e})}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}getName(e){let t;return 0===e?t=this.i18nService.t("all"):1===e?t=this.i18nService.t("me"):this.organizations.filter(i=>{if(i.id===e)return t=i.name,i}),t}getCount(e){let t,i;return 0===e?i=this.allCiphers.length:1===e?i=this.allCiphers.filter(e=>!e.organizationId).length:(this.organizations.filter(i=>{if(i.id===e)return t=i.id,i}),i=this.allCiphers.filter(e=>e.organizationId===t).length),i}filterOrgToggle(e){return I(this,void 0,void 0,function*(){let t=e=>!0;if("number"==typeof e&&1===e)t=e=>!e.organizationId;else if("string"==typeof e){const i=e;t=e=>e.organizationId===i}this.dataSource.filter=t})}load(){return I(this,void 0,void 0,function*(){var e,t,i,n,r,s;null===(e=this.logService)||void 0===e||e.info(`[CipherReport] load() — filterStatus="${this.currentFilterStatus}", cipherCount=${this.ciphers.length}`),this.loading=!0,null===(t=this.logService)||void 0===t||t.info("[CipherReport] Starting full sync"),yield this.syncService.fullSync(!1),null===(i=this.logService)||void 0===i||i.info("[CipherReport] Full sync complete"),this.currentFilterStatus?this.ciphers.length>2?(null===(n=this.logService)||void 0===n||n.info(`[CipherReport] Restoring filter "${this.currentFilterStatus}"`),this.filterOrgStatus$.next(this.currentFilterStatus),yield this.filterOrgToggle(this.currentFilterStatus)):(null===(r=this.logService)||void 0===r||r.info(`[CipherReport] Too few items (${this.ciphers.length}), resetting filter to All`),this.filterOrgStatus$.next(0),yield this.filterOrgToggle(0)):(null===(s=this.logService)||void 0===s||s.info("[CipherReport] No active filter, calling setCiphers()"),yield this.setCiphers()),this.loading=!1,this.hasLoaded=!0})}selectCipher(e){return I(this,void 0,void 0,function*(){if(yield this.repromptCipher(e))if(this.organization){const t=yield this.adminConsoleCipherFormConfigService.buildConfig("edit",e.id,e.type);yield this.openVaultItemDialog("view",t,e)}else{const t=yield this.cipherFormConfigService.buildConfig("edit",e.id,e.type);yield this.openVaultItemDialog("view",t,e)}})}openVaultItemDialog(e,t,i,n){return I(this,void 0,void 0,function*(){this.vaultItemDialogRef=g.VH.open(this.dialogService,{mode:e,formConfig:t,activeCollectionId:n,isAdminConsoleAction:null!=this.organization});const r=yield(0,s.s)(this.vaultItemDialogRef.closed);this.vaultItemDialogRef=void 0,r!==g.rd.PremiumUpgrade&&(r!==g.rd.Deleted&&r!==g.rd.Saved||(yield this.refresh(r,i)))})}setCiphers(){return I(this,void 0,void 0,function*(){this.allCiphers=[]})}refresh(e,t){return I(this,void 0,void 0,function*(){var i,n,r,s,a,l,c;if(null===(i=this.logService)||void 0===i||i.info(`[CipherReport] refresh() — result="${e}", cipherId="${t.id}"`),e===g.rd.Deleted)return yield this.determinedUpdatedCipherReportStatus(e,t),this.ciphers=this.ciphers.filter(e=>e.id!==t.id),null===(n=this.logService)||void 0===n||n.info(`[CipherReport] Cipher deleted, ${this.ciphers.length} remaining`),void this.filterCiphersByOrg(this.ciphers);if(e==g.rd.Saved){const i=yield(0,o._)(this.accountService.activeAccount$.pipe(d.F6));let n=yield this.cipherService.get(t.id,i);this.isAdminConsoleActive&&(null===(r=this.logService)||void 0===r||r.info("[CipherReport] Fetching cipher via admin console path"),n=null!==(s=yield this.adminConsoleCipherFormConfigService.getCipher(t.id,this.organization))&&void 0!==s?s:n);const u=yield n.decrypt(yield this.cipherService.getKeyForCipherKeyDecryption(n,i)),h=yield this.determinedUpdatedCipherReportStatus(e,u),A=this.ciphers.findIndex(e=>e.id===u.id);-1===A&&(null===(a=this.logService)||void 0===a||a.warning("[CipherReport] Saved cipher not found in report list")),null===h&&A>-1&&(null===(l=this.logService)||void 0===l||l.info("[CipherReport] Cipher no longer meets report criteria, removing"),this.ciphers.splice(A,1)),null!==h&&A>-1&&(null===(c=this.logService)||void 0===c||c.info("[CipherReport] Cipher still meets report criteria, updating"),this.ciphers[A]=h),this.filterCiphersByOrg(this.ciphers)}})}determinedUpdatedCipherReportStatus(e,t){return I(this,void 0,void 0,function*(){return t})}repromptCipher(e){return I(this,void 0,void 0,function*(){return e.reprompt===h.b.None||(yield this.passwordRepromptService.showPasswordPrompt())})}getAllCiphers(){return I(this,void 0,void 0,function*(){var e,t,i;null===(e=this.logService)||void 0===e||e.info("[CipherReport] Fetching all ciphers for user");try{const e=yield(0,o._)(this.accountService.activeAccount$.pipe(d.F6)),i=yield this.cipherService.getAllDecrypted(e);return null===(t=this.logService)||void 0===t||t.info(`[CipherReport] Fetched ${i.length} decrypted ciphers for user`),i}catch(n){throw null===(i=this.logService)||void 0===i||i.error("[CipherReport] Failed to fetch ciphers for user",n),n}})}canDisplayToggleGroup(){return this.filterStatus.length<=this.maxItemsToSwitchToChipSelect}filterOrgToggleChipSelect(e){return I(this,void 0,void 0,function*(){const t=null!=e?e:0;yield this.filterOrgToggle(t)})}filterCiphersByOrg(e){this.allCiphers=[...e],this.ciphers=e.map(e=>(-1===this.filterStatus.indexOf(e.organizationId)&&null!=e.organizationId?this.filterStatus.push(e.organizationId):-1===this.filterStatus.indexOf(1)&&null==e.organizationId&&this.filterStatus.splice(1,0,1),e)),this.dataSource.data=this.ciphers,this.filterStatus.length>2?(this.showFilterToggle=!0,this.vaultMsg="vaults"):(this.showFilterToggle=!1,this.vaultMsg="vault"),this.chipSelectOptions=this.setupChipSelectOptions(this.filterStatus)}setupChipSelectOptions(e){return e.map((e,t)=>{const i=this.getName(e),n=this.getCount(e);return{label:i+(null!=n?` (${n})`:""),value:e}})}}w.ɵfac=function(e){return new(e||w)(m.rXU(f.p),m.rXU(y.o),m.rXU(g.qX),m.rXU(c.PV),m.rXU(b.D),m.rXU(C.W),m.rXU(u.H),m.rXU(g.hI),m.rXU(v.l),m.rXU(p.Kc,8))},w.ɵdir=m.FsC({type:w})},85037(e,t,i){"use strict";i.d(t,{y:()=>te});var n=i(67553),r=i(39488),s=i(81356),o=i(81216),a=i(84330),l=i(62819),c=i(77723),d=i(14041),u=i(11217),h=i(5556),A=i(72331),p=i(66316),g=i(35500),v=i(50700),m=i(84210),f=i(26333),y=i(93103),b=i(47428),C=i(47696),I=i(56898),w=i(44432),B=i(10672),E=i(58384),S=i(57178),Q=i(30930),k=i(38410),R=i(32316),F=i(12694),T=i(16496),D=i(49112),P=i(5884),M=i(16568),x=i(46758),V=i(25740),G=i(55818),U=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function O(e,t){1&e&&(d.j41(0,"bit-callout",2),d.nI1(1,"i18n"),d.EFF(2),d.nI1(3,"i18n"),d.k0s()),2&e&&(d.Y8G("title",d.mNQ(d.bMT(1,3,"goodNews"))),d.R7$(2),d.SpI(" ",d.bMT(3,5,"noExposedPasswords")," "))}function N(e,t){if(1&e&&(d.j41(0,"bit-toggle",14),d.EFF(1),d.nrm(2,"bit-berry",14),d.k0s()),2&e){const e=t.$implicit,i=d.XpG(5);d.Y8G("value",e),d.R7$(),d.SpI(" ",i.getName(e)," "),d.R7$(),d.Y8G("value",i.getCount(e))}}function j(e,t){if(1&e){const e=d.RV6();d.j41(0,"bit-toggle-group",13),d.nI1(1,"async"),d.nI1(2,"i18n"),d.bIt("selectedChange",function(t){u.eBV(e);const i=d.XpG(4);return u.Njj(i.filterOrgToggle(t))}),d.Z7z(3,N,3,3,"bit-toggle",14,d.fX1),d.k0s()}if(2&e){const e=d.XpG(4);d.Y8G("selected",d.bMT(1,2,e.filterOrgStatus$))("label",d.bMT(2,4,"addAccessFilter")),d.R7$(3),d.Dyx(e.filterStatus)}}function Y(e,t){if(1&e){const e=d.RV6();d.j41(0,"bit-chip-filter",15),d.bIt("ngModelChange",function(t){u.eBV(e);const i=d.XpG(4);return u.Njj(i.filterOrgToggleChipSelect(t))}),d.k0s()}if(2&e){const e=d.XpG(4);d.Y8G("placeholderText",e.chipSelectOptions[0].label)("options",e.chipSelectOptions)("ngModel",e.selectedFilterChip)}}function X(e,t){if(1&e&&d.nVh(0,j,5,6,"bit-toggle-group",11)(1,Y,1,3,"bit-chip-filter",12),2&e){const e=d.XpG(3);d.vxM(e.canDisplayToggleGroup()?0:1)}}function z(e,t){1&e&&(d.j41(0,"th",8),d.EFF(1),d.nI1(2,"i18n"),d.k0s()),2&e&&(d.R7$(),d.SpI(" ",d.bMT(2,1,"owner")," "))}function L(e,t){if(1&e){const e=d.RV6();d.j41(0,"a",23),d.nI1(1,"i18n"),d.bIt("click",function(){u.eBV(e);const t=d.XpG().$implicit,i=d.XpG(3);return u.Njj(i.selectCipher(t))}),d.EFF(2),d.k0s()}if(2&e){const e=d.XpG().$implicit;d.Y8G("title",d.mNQ(d.i5U(1,3,"editItemWithName",e.name))),d.R7$(2),d.SpI(" ",e.name," ")}}function W(e,t){if(1&e&&(d.j41(0,"span",20),d.EFF(1),d.k0s()),2&e){const e=d.XpG().$implicit;d.Y8G("title",d.mNQ(e.name)),d.R7$(),d.JRh(e.name)}}function K(e,t){1&e&&(d.nrm(0,"bit-icon",24),d.nI1(1,"i18n"),d.j41(2,"span",25),d.EFF(3),d.nI1(4,"i18n"),d.k0s()),2&e&&(d.Y8G("title",d.bMT(1,2,"shared")),d.R7$(3),d.JRh(d.bMT(4,4,"shared")))}function Z(e,t){1&e&&(d.nrm(0,"bit-icon",26),d.nI1(1,"i18n"),d.j41(2,"span",25),d.EFF(3),d.nI1(4,"i18n"),d.k0s()),2&e&&(d.Y8G("title",d.bMT(1,2,"attachments")),d.R7$(3),d.JRh(d.bMT(4,4,"attachments")))}function H(e,t){if(1&e&&(d.j41(0,"bit-badge",27),d.EFF(1),d.nI1(2,"async"),d.nI1(3,"orgNameFromId"),d.k0s()),2&e){const e=d.XpG(2).$implicit,t=d.XpG(3);d.R7$(),d.SpI(" ",d.i5U(3,3,e.organizationId,d.bMT(2,1,t.organizations$))," ")}}function J(e,t){1&e&&(d.j41(0,"bit-badge",27),d.EFF(1),d.nI1(2,"i18n"),d.k0s()),2&e&&(d.R7$(),d.SpI(" ",d.bMT(2,1,"me")," "))}function q(e,t){if(1&e&&(d.j41(0,"td",16),d.nVh(1,H,4,6,"bit-badge",27)(2,J,3,3,"bit-badge",27),d.k0s()),2&e){const e=d.XpG().$implicit;d.R7$(),d.vxM(e.organizationId?1:2)}}function $(e,t){if(1&e&&(d.j41(0,"td",16),d.nrm(1,"app-vault-icon",17),d.k0s(),d.j41(2,"td",18),d.nVh(3,L,3,6,"a",19)(4,W,2,3,"span",20),d.nVh(5,K,5,6),d.nVh(6,Z,5,6),d.nrm(7,"br"),d.j41(8,"small"),d.EFF(9),d.k0s()(),d.nVh(10,q,3,1,"td",16),d.j41(11,"td",21)(12,"bit-badge",22),d.EFF(13),d.nI1(14,"number"),d.nI1(15,"i18n"),d.k0s()()),2&e){const e=t.$implicit,i=d.XpG(3);d.R7$(),d.Y8G("cipher",e),d.R7$(2),d.vxM(!i.organization||i.canManageCipher(e)?3:4),d.R7$(2),d.vxM(!i.organization&&e.organizationId?5:-1),d.R7$(),d.vxM(e.hasAttachments?6:-1),d.R7$(3),d.JRh(e.subTitle),d.R7$(),d.vxM(i.isAdminConsoleActive?-1:10),d.R7$(3),d.SpI(" ",d.i5U(15,9,"exposedXTimes",d.bMT(14,7,e.exposedXTimes))," ")}}function _(e,t){if(1&e&&(d.j41(0,"bit-callout",3),d.nI1(1,"i18n"),d.EFF(2),d.nI1(3,"number"),d.nI1(4,"i18n"),d.k0s(),d.nVh(5,X,2,1),d.j41(6,"bit-table-scroll",4),d.qex(7,5),d.nrm(8,"th",6),d.j41(9,"th",7),d.EFF(10),d.nI1(11,"i18n"),d.k0s(),d.nVh(12,z,3,3,"th",8),d.j41(13,"th",9),d.EFF(14),d.nI1(15,"i18n"),d.k0s(),d.bVm(),d.DNE(16,$,16,12,"ng-template",10),d.k0s()),2&e){const e=d.XpG(2);d.Y8G("title",d.mNQ(d.bMT(1,9,"exposedPasswordsFound"))),d.R7$(2),d.SpI(" ",d.brH(4,13,"exposedPasswordsFoundReportDesc",d.bMT(3,11,e.ciphers.length),e.vaultMsg)," "),d.R7$(3),d.vxM(e.showFilterToggle&&!e.isAdminConsoleActive?5:-1),d.R7$(),d.Y8G("dataSource",e.dataSource)("rowSize",54),d.R7$(4),d.JRh(d.bMT(11,17,"name")),d.R7$(2),d.vxM(e.isAdminConsoleActive?-1:12),d.R7$(2),d.SpI(" ",d.bMT(15,19,"timesExposed")," ")}}function ee(e,t){if(1&e&&(d.j41(0,"div",1),d.nVh(1,O,4,7,"bit-callout",2)(2,_,17,21),d.k0s()),2&e){const e=d.XpG();d.R7$(),d.vxM(e.ciphers.length?2:1)}}class te extends c.n{constructor(e,t,i,n,r,s,o,a,l,c,d){super(e,n,s,i,r,o,a,l,c,d),this.cipherService=e,this.auditService=t,this.organizationService=i,this.logService=d,this.disabled=!0}ngOnInit(){const e=Object.create(null,{load:{get:()=>super.load}});return U(this,void 0,void 0,function*(){this.logService.info("[ExposedPasswordsReport] load start");try{yield e.load.call(this),this.logService.info("[ExposedPasswordsReport] load success")}catch(t){throw this.logService.error("[ExposedPasswordsReport] load failure",t),t}})}setCiphers(){return U(this,void 0,void 0,function*(){this.logService.info("[ExposedPasswordsReport] analysis start");try{const e=yield this.getAllCiphers(),t=[],i=[];let n=0;this.filterStatus=[0],e.forEach(e=>{const{type:r,login:o,isDeleted:a,edit:l,viewPassword:c}=e;if(r!==s.gC.Login||null==o.password||""===o.password||a||!this.organization&&!l||!c)return;n++;const d=this.isPasswordExposed(e).then(e=>{e&&t.push(e)});i.push(d)}),this.logService.info(`[ExposedPasswordsReport] analysis candidates total=${e.length} eligible=${n}`),yield Promise.all(i),this.logService.info(`[ExposedPasswordsReport] analysis complete exposed=${t.length}`),this.filterCiphersByOrg(t),this.logService.info(`[ExposedPasswordsReport] filter complete displayed=${this.ciphers.length}`),this.dataSource.sort={column:"exposedXTimes",direction:"desc"}}catch(e){throw this.logService.error("[ExposedPasswordsReport] analysis failure",e),e}})}isPasswordExposed(e){return U(this,void 0,void 0,function*(){const{login:t}=e;if(null==t.password)return null;try{return yield this.auditService.passwordLeaked(t.password).then(t=>t>0?Object.assign(Object.assign({},e),{exposedXTimes:t}):null)}catch(i){throw this.logService.error("[ExposedPasswordsReport] leak check failure",i),i}})}canManageCipher(e){return!0}determinedUpdatedCipherReportStatus(e,t){return U(this,void 0,void 0,function*(){if(this.logService.info(`[ExposedPasswordsReport] update check start result=${e}`),e===a.rd.Deleted)return this.logService.info("[ExposedPasswordsReport] update check complete action=deleted"),null;const i=yield this.isPasswordExposed(t);return this.logService.info("[ExposedPasswordsReport] update check complete action="+(i?"retain":"remove")),i})}}te.ɵfac=function(e){return new(e||te)(d.rXU(h.p),d.rXU(A.d),d.rXU(n.PV),d.rXU(p.o),d.rXU(g.D),d.rXU(a.qX),d.rXU(v.W),d.rXU(r.H),d.rXU(a.hI),d.rXU(l.l),d.rXU(o.Kc))},te.ɵcmp=d.VBU({type:te,selectors:[["app-exposed-passwords-report"]],standalone:!1,features:[d.Vt3],decls:9,vars:8,consts:[["type","submit","buttonType","primary","bitButton","",3,"click","loading"],[1,"tw-mt-4"],["type","success",3,"title"],["type","danger",3,"title"],["layout","fixed",3,"dataSource","rowSize"],["header",""],["bitCell","",1,"tw-w-12"],["bitCell","","bitSortable","name"],["bitCell","","bitSortable","organizationId",1,"tw-w-1/4"],["bitCell","","bitSortable","exposedXTimes",1,"tw-w-1/4","tw-text-right"],["bitRowDef",""],[3,"selected","label"],["fullWidth","true",3,"placeholderText","options","ngModel"],[3,"selectedChange","selected","label"],[3,"value"],["fullWidth","true",3,"ngModelChange","placeholderText","options","ngModel"],["bitCell",""],[3,"cipher"],["bitCell","",1,"tw-truncate","tw-max-w-0"],["bitLink","","href","#","appStopClick","",3,"title"],[3,"title"],["bitCell","",1,"tw-text-right"],["variant","warning","size","small"],["bitLink","","href","#","appStopClick","",3,"click","title"],["name","bwi-collection-shared","appStopProp","",1,"tw-ml-1",3,"title"],[1,"tw-sr-only"],["name","bwi-paperclip","appStopProp","",1,"tw-ml-1",3,"title"],["variant","secondary","size","small"]],template:function(e,t){1&e&&(d.nrm(0,"app-header"),d.j41(1,"bit-container")(2,"p"),d.EFF(3),d.nI1(4,"i18n"),d.k0s(),d.j41(5,"button",0),d.bIt("click",function(){return t.load()}),d.EFF(6),d.nI1(7,"i18n"),d.k0s(),d.nVh(8,ee,3,1,"div",1),d.k0s()),2&e&&(d.R7$(3),d.JRh(d.bMT(4,4,"exposedPasswordsReportDesc")),d.R7$(2),d.Y8G("loading",t.loading),d.R7$(),d.SpI(" ",d.bMT(7,6,"checkExposedPasswords")," "),d.R7$(2),d.vxM(t.hasLoaded?8:-1))},dependencies:[m.BC,m.vS,f.R,y.Y,b.x,C.n,I.Q,w.G,B.H,E.R,S.g,Q.a,k.Q,R.O,Q.N,F.H,T.a,D.f,P.W,M.c,x.Jj,x.QX,V.$,G.t],encapsulation:2})},30414(e,t,i){"use strict";i.d(t,{O:()=>ne});var n=i(67553),r=i(56962),s=i(78781),o=i(39488),a=i(81356),l=i(84330),c=i(62819),d=i(77723),u=i(24590),h=i(14041),A=i(11217),p=i(5556),g=i(66316),v=i(35500),m=i(50700),f=i(84210),y=i(26333),b=i(93103),C=i(47428),I=i(47696),w=i(44432),B=i(10672),E=i(58384),S=i(57178),Q=i(30930),k=i(38410),R=i(12694),F=i(16496),T=i(49112),D=i(58604),P=i(5884),M=i(16568),x=i(46758),V=i(25740),G=i(55818),U=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function O(e,t){1&e&&(h.j41(0,"div"),h.nrm(1,"bit-icon",1),h.nI1(2,"i18n"),h.j41(3,"span",2),h.EFF(4),h.nI1(5,"i18n"),h.k0s()()),2&e&&(h.R7$(),h.Y8G("title",h.bMT(2,2,"loading")),h.R7$(3),h.JRh(h.bMT(5,4,"loading")))}function N(e,t){1&e&&(h.j41(0,"bit-callout",3),h.nI1(1,"i18n"),h.EFF(2),h.nI1(3,"i18n"),h.k0s()),2&e&&(h.Y8G("title",h.mNQ(h.bMT(1,3,"goodNews"))),h.R7$(2),h.SpI(" ",h.bMT(3,5,"noInactive2fa")," "))}function j(e,t){if(1&e&&(h.j41(0,"bit-toggle",14),h.EFF(1),h.nrm(2,"bit-berry",14),h.k0s()),2&e){const e=t.$implicit,i=h.XpG(5);h.Y8G("value",e),h.R7$(),h.SpI(" ",i.getName(e)," "),h.R7$(),h.Y8G("value",i.getCount(e))}}function Y(e,t){if(1&e){const e=h.RV6();h.j41(0,"bit-toggle-group",13),h.nI1(1,"async"),h.nI1(2,"i18n"),h.bIt("selectedChange",function(t){A.eBV(e);const i=h.XpG(4);return A.Njj(i.filterOrgToggle(t))}),h.Z7z(3,j,3,3,"bit-toggle",14,h.fX1),h.k0s()}if(2&e){const e=h.XpG(4);h.Y8G("selected",h.bMT(1,2,e.filterOrgStatus$))("label",h.bMT(2,4,"addAccessFilter")),h.R7$(3),h.Dyx(e.filterStatus)}}function X(e,t){if(1&e){const e=h.RV6();h.j41(0,"bit-chip-filter",15),h.bIt("ngModelChange",function(t){A.eBV(e);const i=h.XpG(4);return A.Njj(i.filterOrgToggleChipSelect(t))}),h.k0s()}if(2&e){const e=h.XpG(4);h.Y8G("placeholderText",e.chipSelectOptions[0].label)("options",e.chipSelectOptions)("ngModel",e.selectedFilterChip)}}function z(e,t){if(1&e&&h.nVh(0,Y,5,6,"bit-toggle-group",11)(1,X,1,3,"bit-chip-filter",12),2&e){const e=h.XpG(3);h.vxM(e.canDisplayToggleGroup()?0:1)}}function L(e,t){1&e&&(h.j41(0,"th",9),h.EFF(1),h.nI1(2,"i18n"),h.k0s()),2&e&&(h.R7$(),h.JRh(h.bMT(2,1,"owner")))}function W(e,t){if(1&e){const e=h.RV6();h.j41(0,"a",22),h.nI1(1,"i18n"),h.bIt("click",function(){A.eBV(e);const t=h.XpG().$implicit,i=h.XpG(3);return A.Njj(i.selectCipher(t))}),h.EFF(2),h.k0s()}if(2&e){const e=h.XpG().$implicit;h.Y8G("title",h.mNQ(h.i5U(1,3,"editItemWithName",e.name))),h.R7$(2),h.JRh(e.name)}}function K(e,t){if(1&e&&(h.j41(0,"span",19),h.EFF(1),h.k0s()),2&e){const e=h.XpG().$implicit;h.Y8G("title",h.mNQ(e.name)),h.R7$(),h.JRh(e.name)}}function Z(e,t){1&e&&(h.nrm(0,"bit-icon",23),h.nI1(1,"i18n"),h.j41(2,"span",2),h.EFF(3),h.nI1(4,"i18n"),h.k0s()),2&e&&(h.Y8G("title",h.bMT(1,2,"shared")),h.R7$(3),h.JRh(h.bMT(4,4,"shared")))}function H(e,t){1&e&&(h.nrm(0,"bit-icon",24),h.nI1(1,"i18n"),h.j41(2,"span",2),h.EFF(3),h.nI1(4,"i18n"),h.k0s()),2&e&&(h.Y8G("title",h.bMT(1,2,"attachments")),h.R7$(3),h.JRh(h.bMT(4,4,"attachments")))}function J(e,t){if(1&e&&(h.j41(0,"bit-badge",25),h.EFF(1),h.nI1(2,"async"),h.nI1(3,"orgNameFromId"),h.k0s()),2&e){const e=h.XpG(2).$implicit,t=h.XpG(3);h.R7$(),h.SpI(" ",h.i5U(3,3,e.organizationId,h.bMT(2,1,t.organizations$))," ")}}function q(e,t){1&e&&(h.j41(0,"bit-badge",25),h.EFF(1),h.nI1(2,"i18n"),h.k0s()),2&e&&(h.R7$(),h.SpI(" ",h.bMT(2,1,"me")," "))}function $(e,t){if(1&e&&(h.j41(0,"td",8),h.nVh(1,J,4,6,"bit-badge",25)(2,q,3,3,"bit-badge",25),h.k0s()),2&e){const e=h.XpG().$implicit;h.R7$(),h.vxM(e.organizationId?1:2)}}function _(e,t){if(1&e&&(h.nrm(0,"a",21),h.nI1(1,"i18n")),2&e){const e=h.XpG().$implicit,t=h.XpG(3);h.Y8G("href",t.cipherDocs.get(e.id),h.B4B)("label",h.bMT(1,2,"instructions"))}}function ee(e,t){if(1&e&&(h.j41(0,"td",8),h.nrm(1,"app-vault-icon",16),h.k0s(),h.j41(2,"td",17),h.nVh(3,W,3,6,"a",18)(4,K,2,3,"span",19),h.nVh(5,Z,5,6),h.nVh(6,H,5,6),h.nrm(7,"br"),h.j41(8,"small"),h.EFF(9),h.k0s()(),h.nVh(10,$,3,1,"td",8),h.j41(11,"td",20),h.nVh(12,_,2,4,"a",21),h.k0s()),2&e){const e=t.$implicit,i=h.XpG(3);h.R7$(),h.Y8G("cipher",e),h.R7$(2),h.vxM(!i.organization||i.canManageCipher(e)?3:4),h.R7$(2),h.vxM(!i.organization&&e.organizationId?5:-1),h.R7$(),h.vxM(e.hasAttachments?6:-1),h.R7$(3),h.JRh(e.subTitle),h.R7$(),h.vxM(i.isAdminConsoleActive?-1:10),h.R7$(2),h.vxM(i.cipherDocs.has(e.id)?12:-1)}}function te(e,t){if(1&e&&(h.j41(0,"bit-callout",4),h.nI1(1,"i18n"),h.EFF(2),h.nI1(3,"number"),h.nI1(4,"i18n"),h.k0s(),h.nVh(5,z,2,1),h.j41(6,"bit-table-scroll",5),h.qex(7,6),h.nrm(8,"th",7),h.j41(9,"th",8),h.EFF(10),h.nI1(11,"i18n"),h.k0s(),h.nVh(12,L,3,3,"th",9),h.nrm(13,"th",9),h.bVm(),h.DNE(14,ee,13,7,"ng-template",10),h.k0s()),2&e){const e=h.XpG(2);h.Y8G("title",h.mNQ(h.bMT(1,8,"inactive2faFound"))),h.R7$(2),h.SpI(" ",h.brH(4,12,"inactive2faFoundReportDesc",h.bMT(3,10,e.ciphers.length),e.vaultMsg)," "),h.R7$(3),h.vxM(e.showFilterToggle&&!e.isAdminConsoleActive?5:-1),h.R7$(),h.Y8G("dataSource",e.dataSource)("rowSize",75),h.R7$(4),h.JRh(h.bMT(11,16,"name")),h.R7$(2),h.vxM(e.isAdminConsoleActive?-1:12)}}function ie(e,t){if(1&e&&(h.j41(0,"div",0),h.nVh(1,N,4,7,"bit-callout",3)(2,te,15,18),h.k0s()),2&e){const e=h.XpG();h.R7$(),h.vxM(e.ciphers.length?2:1)}}class ne extends d.n{constructor(e,t,i,n,r,s,o,a,l,c,d){super(e,i,s,t,n,o,a,l,c,r),this.cipherService=e,this.organizationService=t,this.logService=r,this.changeDetectorRef=d,this.services=new Map,this.cipherDocs=new Map,this.disabled=!0}ngOnInit(){const e=Object.create(null,{load:{get:()=>super.load}});return U(this,void 0,void 0,function*(){this.logService.info("[InactiveTwoFactorReport] load start");try{yield e.load.call(this),this.logService.info("[InactiveTwoFactorReport] load success")}catch(t){throw this.logService.error("[InactiveTwoFactorReport] load failure",t),t}})}setCiphers(){return U(this,void 0,void 0,function*(){this.logService.info("[InactiveTwoFactorReport] analysis start");try{yield this.load2fa()}catch(e){throw this.logService.error("[InactiveTwoFactorReport] 2fa directory load failure",e),e}if(this.services.size>0){const e=yield this.getAllCiphers(),t=[],i=new Map;let n=0;return this.filterStatus=[0],e.forEach(e=>{const{type:r,login:s,isDeleted:o,edit:l,viewPassword:c}=e;r!==a.gC.Login||null!=s.totp&&""!==s.totp||!s.hasUris||o||!this.organization&&!l||!c||n++;const[d,u]=this.isInactive2faCipher(e);u&&(t.push(e),""!==d&&i.set(e.id,d))}),this.logService.info(`[InactiveTwoFactorReport] analysis candidates total=${e.length} eligible=${n}`),this.logService.info(`[InactiveTwoFactorReport] analysis complete inactive2fa=${t.length} docs=${i.size}`),this.filterCiphersByOrg(t),this.logService.info(`[InactiveTwoFactorReport] filter complete displayed=${this.ciphers.length}`),this.cipherDocs=i,void this.changeDetectorRef.markForCheck()}this.logService.info("[InactiveTwoFactorReport] analysis skipped reason=no services loaded")})}isInactive2faCipher(e){let t="",i=!1;const{type:n,login:r,isDeleted:o,edit:l,viewPassword:c}=e;if(n!==a.gC.Login||null!=r.totp&&""!==r.totp||!r.hasUris||o||!this.organization&&!l||!c)return[t,i];for(let a=0;a<r.uris.length;a++){const e=r.uris[a];if(null!=e.uri&&""!==e.uri){const n=e.uri.replace("www.",""),r=s.A.getHost(n),o=s.A.getDomain(n);if(null!=r&&this.services.has(r)){null!=this.services.get(r)&&(t=this.services.get(r)||""),i=!0;break}if(null!=o&&this.services.has(o)){null!=this.services.get(o)&&(t=this.services.get(o)||""),i=!0;break}}}return[t,i]}load2fa(){return U(this,void 0,void 0,function*(){if(this.services.size>0)return void this.logService.info(`[InactiveTwoFactorReport] 2fa directory load skipped cached=${this.services.size}`);this.logService.info("[InactiveTwoFactorReport] 2fa directory fetch start");const e=yield fetch(new Request("https://api.2fa.directory/v3/totp.json"));if(200!==e.status)throw new Error;const t=yield e.json();let i=0;for(const n of t){const e=n[1];if(null!=e.domain&&null!=e.documentation){if(null!=e["additional-domains"])for(const t of e["additional-domains"])this.services.set(t,e.documentation),i++;this.services.set(e.domain,e.documentation),i++}}this.logService.info(`[InactiveTwoFactorReport] 2fa directory fetch complete services=${i}`),this.changeDetectorRef.markForCheck()})}canManageCipher(e){return!0}determinedUpdatedCipherReportStatus(e,t){return U(this,void 0,void 0,function*(){if(this.logService.info(`[InactiveTwoFactorReport] update check start result=${e}`),e===l.rd.Deleted)return this.logService.info("[InactiveTwoFactorReport] update check complete action=deleted"),null;const[i,n]=this.isInactive2faCipher(t);return n?(this.cipherDocs.set(t.id,i),this.logService.info("[InactiveTwoFactorReport] update check complete action=retain"),t):(this.logService.info("[InactiveTwoFactorReport] update check complete action=remove"),null)})}}ne.ɵfac=function(e){return new(e||ne)(h.rXU(p.p),h.rXU(n.PV),h.rXU(g.o),h.rXU(v.D),h.rXU(r.K),h.rXU(l.qX),h.rXU(m.W),h.rXU(o.H),h.rXU(l.hI),h.rXU(c.l),h.rXU(u.gRc))},ne.ɵcmp=h.VBU({type:ne,selectors:[["app-inactive-two-factor-report"]],standalone:!1,features:[h.Vt3],decls:7,vars:4,consts:[[1,"tw-mt-4"],["name","bwi-spinner",1,"bwi-spin","tw-text-muted",3,"title"],[1,"tw-sr-only"],["type","success",3,"title"],["type","danger",3,"title"],["layout","fixed",3,"dataSource","rowSize"],["header",""],["bitCell","",1,"tw-w-12"],["bitCell",""],["bitCell","",1,"tw-w-1/4"],["bitRowDef",""],[3,"selected","label"],["fullWidth","true",3,"placeholderText","options","ngModel"],[3,"selectedChange","selected","label"],[3,"value"],["fullWidth","true",3,"ngModelChange","placeholderText","options","ngModel"],[3,"cipher"],["bitCell","",1,"tw-truncate","tw-max-w-0"],["bitLink","","href","#","appStopClick","",3,"title"],[3,"title"],["bitCell","",1,"tw-text-right"],["bit-chip-action","","target","_blank","rel","noreferrer",3,"href","label"],["bitLink","","href","#","appStopClick","",3,"click","title"],["name","bwi-collection-shared","appStopProp","",1,"tw-ml-1",3,"title"],["name","bwi-paperclip","appStopProp","",1,"tw-ml-1",3,"title"],["variant","secondary"]],template:function(e,t){1&e&&(h.nrm(0,"app-header"),h.j41(1,"bit-container")(2,"p"),h.EFF(3),h.nI1(4,"i18n"),h.k0s(),h.nVh(5,O,6,6,"div")(6,ie,3,1,"div",0),h.k0s()),2&e&&(h.R7$(3),h.JRh(h.bMT(4,2,"inactive2faReportDesc")),h.R7$(2),h.vxM(!t.hasLoaded&&t.loading?5:6))},dependencies:[f.BC,f.vS,y.R,b.Y,C.x,I.n,w.G,B.H,E.R,S.g,Q.a,k.Q,Q.N,R.H,F.a,T.f,D.g,P.W,M.c,x.Jj,x.QX,V.$,G.t],encapsulation:2,changeDetection:0})},17343(e,t,i){"use strict";i.d(t,{A:()=>_});var n=i(67553),r=i(39488),s=i(81356),o=i(81216),a=i(84330),l=i(62819),c=i(77723),d=i(14041),u=i(11217),h=i(5556),A=i(66316),p=i(35500),g=i(50700),v=i(84210),m=i(26333),f=i(93103),y=i(47428),b=i(47696),C=i(44432),I=i(10672),w=i(58384),B=i(57178),E=i(30930),S=i(38410),Q=i(12694),k=i(16496),R=i(49112),F=i(5884),T=i(16568),D=i(46758),P=i(25740),M=i(55818),x=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function V(e,t){1&e&&(d.j41(0,"div"),d.nrm(1,"bit-icon",1),d.nI1(2,"i18n"),d.nI1(3,"i18n"),d.j41(4,"span",2),d.EFF(5),d.nI1(6,"i18n"),d.k0s()()),2&e&&(d.R7$(),d.Y8G("ariaLabel",d.bMT(2,3,"loading"))("title",d.bMT(3,5,"loading")),d.R7$(4),d.JRh(d.bMT(6,7,"loading")))}function G(e,t){1&e&&(d.j41(0,"bit-callout",3),d.nI1(1,"i18n"),d.EFF(2),d.nI1(3,"i18n"),d.k0s()),2&e&&(d.Y8G("title",d.mNQ(d.bMT(1,3,"goodNews"))),d.R7$(2),d.SpI(" ",d.bMT(3,5,"noReusedPasswords")," "))}function U(e,t){if(1&e&&(d.j41(0,"bit-toggle",15),d.EFF(1),d.nrm(2,"bit-berry",15),d.k0s()),2&e){const e=t.$implicit,i=d.XpG(5);d.Y8G("value",e),d.R7$(),d.SpI(" ",i.getName(e)," "),d.R7$(),d.Y8G("value",i.getCount(e))}}function O(e,t){if(1&e){const e=d.RV6();d.j41(0,"bit-toggle-group",14),d.nI1(1,"async"),d.nI1(2,"i18n"),d.bIt("selectedChange",function(t){u.eBV(e);const i=d.XpG(4);return u.Njj(i.filterOrgToggle(t))}),d.Z7z(3,U,3,3,"bit-toggle",15,d.fX1),d.k0s()}if(2&e){const e=d.XpG(4);d.Y8G("selected",d.bMT(1,2,e.filterOrgStatus$))("label",d.bMT(2,4,"addAccessFilter")),d.R7$(3),d.Dyx(e.filterStatus)}}function N(e,t){if(1&e){const e=d.RV6();d.j41(0,"bit-chip-filter",16),d.bIt("ngModelChange",function(t){u.eBV(e);const i=d.XpG(4);return u.Njj(i.filterOrgToggleChipSelect(t))}),d.k0s()}if(2&e){const e=d.XpG(4);d.Y8G("placeholderText",e.chipSelectOptions[0].label)("options",e.chipSelectOptions)("ngModel",e.selectedFilterChip)}}function j(e,t){if(1&e&&d.nVh(0,O,5,6,"bit-toggle-group",12)(1,N,1,3,"bit-chip-filter",13),2&e){const e=d.XpG(3);d.vxM(e.canDisplayToggleGroup()?0:1)}}function Y(e,t){1&e&&(d.j41(0,"th",9),d.EFF(1),d.nI1(2,"i18n"),d.k0s()),2&e&&(d.R7$(),d.JRh(d.bMT(2,1,"owner")))}function X(e,t){if(1&e){const e=d.RV6();d.j41(0,"a",23),d.nI1(1,"i18n"),d.bIt("click",function(){u.eBV(e);const t=d.XpG().$implicit,i=d.XpG(3);return u.Njj(i.selectCipher(t))}),d.EFF(2),d.k0s()}if(2&e){const e=d.XpG().$implicit;d.Y8G("title",d.mNQ(d.i5U(1,3,"editItemWithName",e.name))),d.R7$(2),d.JRh(e.name)}}function z(e,t){if(1&e&&(d.j41(0,"span",20),d.EFF(1),d.k0s()),2&e){const e=d.XpG().$implicit;d.Y8G("title",d.mNQ(e.name)),d.R7$(),d.JRh(e.name)}}function L(e,t){1&e&&(d.nrm(0,"bit-icon",24),d.nI1(1,"i18n"),d.j41(2,"span",2),d.EFF(3),d.nI1(4,"i18n"),d.k0s()),2&e&&(d.Y8G("title",d.bMT(1,2,"shared")),d.R7$(3),d.JRh(d.bMT(4,4,"shared")))}function W(e,t){1&e&&(d.nrm(0,"bit-icon",25),d.nI1(1,"i18n"),d.j41(2,"span",2),d.EFF(3),d.nI1(4,"i18n"),d.k0s()),2&e&&(d.Y8G("title",d.bMT(1,2,"attachments")),d.R7$(3),d.JRh(d.bMT(4,4,"attachments")))}function K(e,t){if(1&e&&(d.j41(0,"bit-badge",26),d.EFF(1),d.nI1(2,"async"),d.nI1(3,"orgNameFromId"),d.k0s()),2&e){const e=d.XpG(2).$implicit,t=d.XpG(3);d.R7$(),d.SpI(" ",d.i5U(3,3,e.organizationId,d.bMT(2,1,t.organizations$))," ")}}function Z(e,t){1&e&&(d.j41(0,"bit-badge",26),d.EFF(1),d.nI1(2,"i18n"),d.k0s()),2&e&&(d.R7$(),d.SpI(" ",d.bMT(2,1,"me")," "))}function H(e,t){if(1&e&&(d.j41(0,"td",8),d.nVh(1,K,4,6,"bit-badge",26)(2,Z,3,3,"bit-badge",26),d.k0s()),2&e){const e=d.XpG().$implicit;d.R7$(),d.vxM(e.organizationId?1:2)}}function J(e,t){if(1&e&&(d.j41(0,"td",8),d.nrm(1,"app-vault-icon",17),d.k0s(),d.j41(2,"td",18),d.nVh(3,X,3,6,"a",19)(4,z,2,3,"span",20),d.nVh(5,L,5,6),d.nVh(6,W,5,6),d.nrm(7,"br"),d.j41(8,"small"),d.EFF(9),d.k0s()(),d.nVh(10,H,3,1,"td",8),d.j41(11,"td",21)(12,"bit-badge",22),d.EFF(13),d.nI1(14,"i18n"),d.k0s()()),2&e){const e=t.$implicit,i=d.XpG(3);d.R7$(),d.Y8G("cipher",e),d.R7$(2),d.vxM(!i.organization||i.canManageCipher(e)?3:4),d.R7$(2),d.vxM(!i.organization&&e.organizationId?5:-1),d.R7$(),d.vxM(e.hasAttachments?6:-1),d.R7$(3),d.JRh(e.subTitle),d.R7$(),d.vxM(i.isAdminConsoleActive?-1:10),d.R7$(3),d.SpI(" ",d.i5U(14,7,"reusedXTimes",i.passwordUseMap.get(e.login.password))," ")}}function q(e,t){if(1&e&&(d.j41(0,"bit-callout",4),d.nI1(1,"i18n"),d.EFF(2),d.nI1(3,"number"),d.nI1(4,"i18n"),d.k0s(),d.nVh(5,j,2,1),d.j41(6,"bit-table-scroll",5),d.qex(7,6),d.nrm(8,"th",7),d.j41(9,"th",8),d.EFF(10),d.nI1(11,"i18n"),d.k0s(),d.nVh(12,Y,3,3,"th",9),d.j41(13,"th",10),d.EFF(14),d.nI1(15,"i18n"),d.k0s(),d.bVm(),d.DNE(16,J,15,10,"ng-template",11),d.k0s()),2&e){const e=d.XpG(2);d.Y8G("title",d.mNQ(d.bMT(1,9,"reusedPasswordsFound"))),d.R7$(2),d.SpI(" ",d.brH(4,13,"reusedPasswordsFoundReportDesc",d.bMT(3,11,e.ciphers.length),e.vaultMsg)," "),d.R7$(3),d.vxM(e.showFilterToggle&&!e.isAdminConsoleActive?5:-1),d.R7$(),d.Y8G("dataSource",e.dataSource)("rowSize",75),d.R7$(4),d.JRh(d.bMT(11,17,"name")),d.R7$(2),d.vxM(e.isAdminConsoleActive?-1:12),d.R7$(2),d.JRh(d.bMT(15,19,"timesReused"))}}function $(e,t){if(1&e&&(d.j41(0,"div",0),d.nVh(1,G,4,7,"bit-callout",3)(2,q,17,21),d.k0s()),2&e){const e=d.XpG();d.R7$(),d.vxM(e.ciphers.length?2:1)}}class _ extends c.n{constructor(e,t,i,n,r,s,o,a,l,c){super(e,i,r,t,n,s,o,a,l,c),this.cipherService=e,this.organizationService=t,this.logService=c,this.ciphersToCheckForReusedPasswords=[],this.disabled=!0}ngOnInit(){const e=Object.create(null,{load:{get:()=>super.load}});return x(this,void 0,void 0,function*(){this.logService.info("[ReusedPasswordsReport] load start");try{yield e.load.call(this),this.logService.info("[ReusedPasswordsReport] load success")}catch(t){throw this.logService.error("[ReusedPasswordsReport] load failure",t),t}})}setCiphers(){return x(this,void 0,void 0,function*(){this.logService.info("[ReusedPasswordsReport] analysis start");try{this.ciphersToCheckForReusedPasswords=yield this.getAllCiphers(),this.logService.info(`[ReusedPasswordsReport] analysis candidates total=${this.ciphersToCheckForReusedPasswords.length}`);const e=yield this.checkCiphersForReusedPasswords(this.ciphersToCheckForReusedPasswords);this.logService.info(`[ReusedPasswordsReport] analysis complete reused=${e.length}`),this.filterCiphersByOrg(e),this.logService.info(`[ReusedPasswordsReport] filter complete displayed=${this.ciphers.length}`)}catch(e){throw this.logService.error("[ReusedPasswordsReport] analysis failure",e),e}})}checkCiphersForReusedPasswords(e){return x(this,void 0,void 0,function*(){const t=[];this.passwordUseMap=new Map,this.filterStatus=[0];let i=0;e.forEach(e=>{const{type:n,login:r,isDeleted:o,edit:a,viewPassword:l}=e;n===s.gC.Login&&null!=r.password&&""!==r.password&&!o&&(this.organization||a)&&l&&(i++,t.push(e),this.passwordUseMap.has(r.password)?this.passwordUseMap.set(r.password,this.passwordUseMap.get(r.password)+1):this.passwordUseMap.set(r.password,1))});const n=t.filter(e=>this.passwordUseMap.has(e.login.password)&&this.passwordUseMap.get(e.login.password)>1);return this.logService.info(`[ReusedPasswordsReport] password analysis eligible=${i} unique=${this.passwordUseMap.size} reused=${n.length}`),n})}canManageCipher(e){return!0}determinedUpdatedCipherReportStatus(e,t){return x(this,void 0,void 0,function*(){if(this.logService.info(`[ReusedPasswordsReport] update check start result=${e}`),e===a.rd.Deleted)return this.ciphersToCheckForReusedPasswords=this.ciphersToCheckForReusedPasswords.filter(e=>e.id!==t.id),this.logService.info("[ReusedPasswordsReport] update check complete action=deleted"),null;const i=this.ciphersToCheckForReusedPasswords.findIndex(e=>e.id===t.id);-1!==i?this.ciphersToCheckForReusedPasswords[i]=t:this.logService.warning("[ReusedPasswordsReport] update check warning cipher not found");const n=yield this.checkCiphersForReusedPasswords(this.ciphersToCheckForReusedPasswords);return this.filterCiphersByOrg(n),this.logService.info(`[ReusedPasswordsReport] update check complete action=recalculated displayed=${this.ciphers.length}`),t})}}_.ɵfac=function(e){return new(e||_)(d.rXU(h.p),d.rXU(n.PV),d.rXU(A.o),d.rXU(p.D),d.rXU(a.qX),d.rXU(g.W),d.rXU(r.H),d.rXU(a.hI),d.rXU(l.l),d.rXU(o.Kc))},_.ɵcmp=d.VBU({type:_,selectors:[["app-reused-passwords-report"]],standalone:!1,features:[d.Vt3],decls:7,vars:4,consts:[[1,"tw-mt-4"],["name","bwi-spinner",1,"bwi-spin","tw-text-muted",3,"ariaLabel","title"],[1,"tw-sr-only"],["type","success",3,"title"],["type","danger",3,"title"],["layout","fixed",3,"dataSource","rowSize"],["header",""],["bitCell","",1,"tw-w-12"],["bitCell",""],["bitCell","",1,"tw-w-1/4"],["bitCell","",1,"tw-w-1/4","tw-text-right"],["bitRowDef",""],[3,"selected","label"],["fullWidth","true",3,"placeholderText","options","ngModel"],[3,"selectedChange","selected","label"],[3,"value"],["fullWidth","true",3,"ngModelChange","placeholderText","options","ngModel"],[3,"cipher"],["bitCell","",1,"tw-truncate","tw-max-w-0"],["bitLink","","href","#","appStopClick","",3,"title"],[3,"title"],["bitCell","",1,"tw-text-right"],["variant","warning","size","small"],["bitLink","","href","#","appStopClick","",3,"click","title"],["name","bwi-collection-shared","appStopProp","",1,"tw-ml-1",3,"title"],["name","bwi-paperclip","appStopProp","",1,"tw-ml-1",3,"title"],["variant","secondary","size","small"]],template:function(e,t){1&e&&(d.nrm(0,"app-header"),d.j41(1,"bit-container")(2,"p"),d.EFF(3),d.nI1(4,"i18n"),d.k0s(),d.nVh(5,V,7,9,"div")(6,$,3,1,"div",0),d.k0s()),2&e&&(d.R7$(3),d.JRh(d.bMT(4,2,"reusedPasswordsReportDesc")),d.R7$(2),d.vxM(!t.hasLoaded&&t.loading?5:6))},dependencies:[v.BC,v.vS,m.R,f.Y,y.x,b.n,C.G,I.H,w.R,B.g,E.a,S.Q,E.N,Q.H,k.a,R.f,F.W,T.c,D.Jj,D.QX,P.$,M.t],encapsulation:2})},71687(e,t,i){"use strict";i.d(t,{U:()=>ee});var n=i(21571),r=i(67553),s=i(39488),o=i(81356),a=i(81216),l=i(84330),c=i(62819),d=i(77723),u=i(14041),h=i(11217),A=i(5556),p=i(66316),g=i(35500),v=i(50700),m=i(84210),f=i(26333),y=i(93103),b=i(47428),C=i(47696),I=i(44432),w=i(10672),B=i(58384),E=i(57178),S=i(30930),Q=i(38410),k=i(12694),R=i(16496),F=i(49112),T=i(5884),D=i(16568),P=i(46758),M=i(25740),x=i(55818),V=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function G(e,t){1&e&&(u.j41(0,"div"),u.nrm(1,"bit-icon",1),u.nI1(2,"i18n"),u.j41(3,"span",2),u.EFF(4),u.nI1(5,"i18n"),u.k0s()()),2&e&&(u.R7$(),u.Y8G("title",u.bMT(2,2,"loading")),u.R7$(3),u.JRh(u.bMT(5,4,"loading")))}function U(e,t){1&e&&(u.j41(0,"bit-callout",3),u.nI1(1,"i18n"),u.EFF(2),u.nI1(3,"i18n"),u.k0s()),2&e&&(u.Y8G("title",u.mNQ(u.bMT(1,3,"goodNews"))),u.R7$(2),u.SpI(" ",u.bMT(3,5,"noUnsecuredWebsites")," "))}function O(e,t){if(1&e&&(u.j41(0,"bit-toggle",14),u.EFF(1),u.nrm(2,"bit-berry",14),u.k0s()),2&e){const e=t.$implicit,i=u.XpG(5);u.Y8G("value",e),u.R7$(),u.SpI(" ",i.getName(e)," "),u.R7$(),u.Y8G("value",i.getCount(e))}}function N(e,t){if(1&e){const e=u.RV6();u.j41(0,"bit-toggle-group",13),u.nI1(1,"async"),u.nI1(2,"i18n"),u.bIt("selectedChange",function(t){h.eBV(e);const i=u.XpG(4);return h.Njj(i.filterOrgToggle(t))}),u.Z7z(3,O,3,3,"bit-toggle",14,u.fX1),u.k0s()}if(2&e){const e=u.XpG(4);u.Y8G("selected",u.bMT(1,2,e.filterOrgStatus$))("label",u.bMT(2,4,"addAccessFilter")),u.R7$(3),u.Dyx(e.filterStatus)}}function j(e,t){if(1&e){const e=u.RV6();u.j41(0,"bit-chip-filter",15),u.bIt("ngModelChange",function(t){h.eBV(e);const i=u.XpG(4);return h.Njj(i.filterOrgToggleChipSelect(t))}),u.k0s()}if(2&e){const e=u.XpG(4);u.Y8G("placeholderText",e.chipSelectOptions[0].label)("options",e.chipSelectOptions)("ngModel",e.selectedFilterChip)}}function Y(e,t){if(1&e&&u.nVh(0,N,5,6,"bit-toggle-group",11)(1,j,1,3,"bit-chip-filter",12),2&e){const e=u.XpG(3);u.vxM(e.canDisplayToggleGroup()?0:1)}}function X(e,t){1&e&&(u.j41(0,"th",9),u.EFF(1),u.nI1(2,"i18n"),u.k0s()),2&e&&(u.R7$(),u.JRh(u.bMT(2,1,"owner")))}function z(e,t){if(1&e){const e=u.RV6();u.j41(0,"a",20),u.nI1(1,"i18n"),u.bIt("click",function(){h.eBV(e);const t=u.XpG().$implicit,i=u.XpG(3);return h.Njj(i.selectCipher(t))}),u.EFF(2),u.k0s()}if(2&e){const e=u.XpG().$implicit;u.Y8G("title",u.mNQ(u.i5U(1,3,"editItemWithName",e.name))),u.R7$(2),u.JRh(e.name)}}function L(e,t){if(1&e&&(u.j41(0,"span",19),u.EFF(1),u.k0s()),2&e){const e=u.XpG().$implicit;u.Y8G("title",u.mNQ(e.name)),u.R7$(),u.JRh(e.name)}}function W(e,t){1&e&&(u.nrm(0,"bit-icon",21),u.nI1(1,"i18n"),u.j41(2,"span",2),u.EFF(3),u.nI1(4,"i18n"),u.k0s()),2&e&&(u.Y8G("title",u.bMT(1,2,"shared")),u.R7$(3),u.JRh(u.bMT(4,4,"shared")))}function K(e,t){1&e&&(u.nrm(0,"bit-icon",22),u.nI1(1,"i18n"),u.j41(2,"span",2),u.EFF(3),u.nI1(4,"i18n"),u.k0s()),2&e&&(u.Y8G("title",u.bMT(1,2,"attachments")),u.R7$(3),u.JRh(u.bMT(4,4,"attachments")))}function Z(e,t){if(1&e&&(u.j41(0,"bit-badge",23),u.EFF(1),u.nI1(2,"async"),u.nI1(3,"orgNameFromId"),u.k0s()),2&e){const e=u.XpG(2).$implicit,t=u.XpG(3);u.R7$(),u.SpI(" ",u.i5U(3,3,e.organizationId,u.bMT(2,1,t.organizations$))," ")}}function H(e,t){1&e&&(u.j41(0,"bit-badge",23),u.EFF(1),u.nI1(2,"i18n"),u.k0s()),2&e&&(u.R7$(),u.SpI(" ",u.bMT(2,1,"me")," "))}function J(e,t){if(1&e&&(u.j41(0,"td",8),u.nVh(1,Z,4,6,"bit-badge",23)(2,H,3,3,"bit-badge",23),u.k0s()),2&e){const e=u.XpG().$implicit;u.R7$(),u.vxM(e.organizationId?1:2)}}function q(e,t){if(1&e&&(u.j41(0,"td",8),u.nrm(1,"app-vault-icon",16),u.k0s(),u.j41(2,"td",17),u.nVh(3,z,3,6,"a",18)(4,L,2,3,"span",19),u.nVh(5,W,5,6),u.nVh(6,K,5,6),u.nrm(7,"br"),u.j41(8,"small"),u.EFF(9),u.k0s()(),u.nVh(10,J,3,1,"td",8)),2&e){const e=t.$implicit,i=u.XpG(3);u.R7$(),u.Y8G("cipher",e),u.R7$(2),u.vxM(!i.organization||i.canManageCipher(e)?3:4),u.R7$(2),u.vxM(!i.organization&&e.organizationId?5:-1),u.R7$(),u.vxM(e.hasAttachments?6:-1),u.R7$(3),u.JRh(e.subTitle),u.R7$(),u.vxM(i.isAdminConsoleActive?-1:10)}}function $(e,t){if(1&e&&(u.j41(0,"bit-callout",4),u.nI1(1,"i18n"),u.EFF(2),u.nI1(3,"number"),u.nI1(4,"i18n"),u.k0s(),u.nVh(5,Y,2,1),u.j41(6,"bit-table-scroll",5),u.qex(7,6),u.nrm(8,"th",7),u.j41(9,"th",8),u.EFF(10),u.nI1(11,"i18n"),u.k0s(),u.nVh(12,X,3,3,"th",9),u.bVm(),u.DNE(13,q,11,6,"ng-template",10),u.k0s()),2&e){const e=u.XpG(2);u.Y8G("title",u.mNQ(u.bMT(1,8,"unsecuredWebsitesFound"))),u.R7$(2),u.SpI(" ",u.brH(4,12,"unsecuredWebsitesFoundReportDesc",u.bMT(3,10,e.ciphers.length),e.vaultMsg)," "),u.R7$(3),u.vxM(e.showFilterToggle&&!e.isAdminConsoleActive?5:-1),u.R7$(),u.Y8G("dataSource",e.dataSource)("rowSize",75),u.R7$(4),u.JRh(u.bMT(11,16,"name")),u.R7$(2),u.vxM(e.isAdminConsoleActive?-1:12)}}function _(e,t){if(1&e&&(u.j41(0,"div",0),u.nVh(1,U,4,7,"bit-callout",3)(2,$,14,18),u.k0s()),2&e){const e=u.XpG();u.R7$(),u.vxM(e.ciphers.length?2:1)}}class ee extends d.n{constructor(e,t,i,n,r,s,o,a,l,c,d){super(e,i,r,t,n,s,o,l,c,d),this.cipherService=e,this.organizationService=t,this.collectionService=a,this.logService=d,this.disabled=!0}ngOnInit(){const e=Object.create(null,{load:{get:()=>super.load}});return V(this,void 0,void 0,function*(){this.logService.info("[UnsecuredWebsitesReport] load start");try{yield e.load.call(this),this.logService.info("[UnsecuredWebsitesReport] load success")}catch(t){throw this.logService.error("[UnsecuredWebsitesReport] load failure",t),t}})}setCiphers(){return V(this,void 0,void 0,function*(){this.logService.info("[UnsecuredWebsitesReport] analysis start");try{const e=yield this.getAllCiphers();this.filterStatus=[0];let t=0;const i=e.filter(e=>(e.type===o.gC.Login&&e.login.hasUris&&!e.isDeleted&&(this.organization||e.edit)&&t++,this.cipherContainsUnsecured(e)));this.logService.info(`[UnsecuredWebsitesReport] analysis candidates total=${e.length} eligible=${t}`),this.logService.info(`[UnsecuredWebsitesReport] analysis complete unsecured=${i.length}`),this.filterCiphersByOrg(i),this.logService.info(`[UnsecuredWebsitesReport] filter complete displayed=${this.ciphers.length}`)}catch(e){throw this.logService.error("[UnsecuredWebsitesReport] analysis failure",e),e}})}cipherContainsUnsecured(e){if(e.type!==o.gC.Login||!e.login.hasUris||e.isDeleted||!this.organization&&!e.edit)return!1;return e.login.uris.some(e=>null!=e.uri&&0===e.uri.indexOf("http://"))}canManageCipher(e){return!0}determinedUpdatedCipherReportStatus(e,t){return V(this,void 0,void 0,function*(){return this.logService.info(`[UnsecuredWebsitesReport] update check start result=${e}`),e===l.rd.Deleted?(this.logService.info("[UnsecuredWebsitesReport] update check complete action=deleted"),null):this.cipherContainsUnsecured(t)?(this.logService.info("[UnsecuredWebsitesReport] update check complete action=retain"),t):(this.logService.info("[UnsecuredWebsitesReport] update check complete action=remove"),null)})}}ee.ɵfac=function(e){return new(e||ee)(u.rXU(A.p),u.rXU(r.PV),u.rXU(p.o),u.rXU(g.D),u.rXU(l.qX),u.rXU(v.W),u.rXU(s.H),u.rXU(n.YD),u.rXU(l.hI),u.rXU(c.l),u.rXU(a.Kc))},ee.ɵcmp=u.VBU({type:ee,selectors:[["app-unsecured-websites-report"]],standalone:!1,features:[u.Vt3],decls:7,vars:4,consts:[[1,"tw-mt-4"],["name","bwi-spinner",1,"bwi-spin","tw-text-muted",3,"title"],[1,"tw-sr-only"],["type","success",3,"title"],["type","danger",3,"title"],["layout","fixed",3,"dataSource","rowSize"],["header",""],["bitCell","",1,"tw-w-12"],["bitCell",""],["bitCell","",1,"tw-w-1/3"],["bitRowDef",""],[3,"selected","label"],["fullWidth","true",3,"placeholderText","options","ngModel"],[3,"selectedChange","selected","label"],[3,"value"],["fullWidth","true",3,"ngModelChange","placeholderText","options","ngModel"],[3,"cipher"],["bitCell","",1,"tw-truncate","tw-max-w-0"],["bitLink","","href","#","appStopClick","",3,"title"],[3,"title"],["bitLink","","href","#","appStopClick","",3,"click","title"],["name","bwi-collection-shared","appStopProp","",1,"tw-ml-1",3,"title"],["name","bwi-paperclip","appStopProp","",1,"tw-ml-1",3,"title"],["variant","secondary"]],template:function(e,t){1&e&&(u.nrm(0,"app-header"),u.j41(1,"bit-container")(2,"p"),u.EFF(3),u.nI1(4,"i18n"),u.k0s(),u.nVh(5,G,6,6,"div")(6,_,3,1,"div",0),u.k0s()),2&e&&(u.R7$(3),u.JRh(u.bMT(4,2,"unsecuredWebsitesReportDesc")),u.R7$(2),u.vxM(!t.hasLoaded&&t.loading?5:6))},dependencies:[m.BC,m.vS,f.R,y.Y,b.x,C.n,I.G,w.H,B.R,E.g,S.a,Q.Q,S.N,k.H,R.a,F.f,T.W,D.c,P.Jj,P.QX,M.$,x.t],encapsulation:2})},72523(e,t,i){"use strict";i.d(t,{w:()=>ie});var n=i(67553),r=i(78781),s=i(63457),o=i(39488),a=i(81356),l=i(81216),c=i(84330),d=i(62819),u=i(77723),h=i(14041),A=i(11217),p=i(5556),g=i(66316),v=i(35500),m=i(50700),f=i(84210),y=i(26333),b=i(93103),C=i(47428),I=i(47696),w=i(44432),B=i(10672),E=i(58384),S=i(57178),Q=i(30930),k=i(38410),R=i(32316),F=i(12694),T=i(16496),D=i(49112),P=i(5884),M=i(16568),x=i(46758),V=i(25740),G=i(55818),U=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function O(e,t){1&e&&(h.j41(0,"div"),h.nrm(1,"bit-icon",1),h.nI1(2,"i18n"),h.nI1(3,"i18n"),h.j41(4,"span",2),h.EFF(5),h.nI1(6,"i18n"),h.k0s()()),2&e&&(h.R7$(),h.Y8G("ariaLabel",h.bMT(2,3,"loading"))("title",h.bMT(3,5,"loading")),h.R7$(4),h.JRh(h.bMT(6,7,"loading")))}function N(e,t){1&e&&(h.j41(0,"bit-callout",3),h.nI1(1,"i18n"),h.EFF(2),h.nI1(3,"i18n"),h.k0s()),2&e&&(h.Y8G("title",h.mNQ(h.bMT(1,3,"goodNews"))),h.R7$(2),h.SpI(" ",h.bMT(3,5,"noWeakPasswords")," "))}function j(e,t){if(1&e&&(h.j41(0,"bit-toggle",15),h.EFF(1),h.nrm(2,"bit-berry",15),h.k0s()),2&e){const e=t.$implicit,i=h.XpG(5);h.Y8G("value",e),h.R7$(),h.SpI(" ",i.getName(e)," "),h.R7$(),h.Y8G("value",i.getCount(e))}}function Y(e,t){if(1&e){const e=h.RV6();h.j41(0,"bit-toggle-group",14),h.nI1(1,"async"),h.nI1(2,"i18n"),h.bIt("selectedChange",function(t){A.eBV(e);const i=h.XpG(4);return A.Njj(i.filterOrgToggle(t))}),h.Z7z(3,j,3,3,"bit-toggle",15,h.fX1),h.k0s()}if(2&e){const e=h.XpG(4);h.Y8G("selected",h.bMT(1,2,e.filterOrgStatus$))("label",h.bMT(2,4,"addAccessFilter")),h.R7$(3),h.Dyx(e.filterStatus)}}function X(e,t){if(1&e){const e=h.RV6();h.j41(0,"bit-chip-filter",16),h.bIt("ngModelChange",function(t){A.eBV(e);const i=h.XpG(4);return A.Njj(i.filterOrgToggleChipSelect(t))}),h.k0s()}if(2&e){const e=h.XpG(4);h.Y8G("placeholderText",e.chipSelectOptions[0].label)("options",e.chipSelectOptions)("ngModel",e.selectedFilterChip)}}function z(e,t){if(1&e&&h.nVh(0,Y,5,6,"bit-toggle-group",12)(1,X,1,3,"bit-chip-filter",13),2&e){const e=h.XpG(3);h.vxM(e.canDisplayToggleGroup()?0:1)}}function L(e,t){1&e&&(h.j41(0,"th",9),h.EFF(1),h.nI1(2,"i18n"),h.k0s()),2&e&&(h.R7$(),h.SpI(" ",h.bMT(2,1,"owner")," "))}function W(e,t){if(1&e){const e=h.RV6();h.j41(0,"a",24),h.nI1(1,"i18n"),h.bIt("click",function(){A.eBV(e);const t=h.XpG().$implicit,i=h.XpG(3);return A.Njj(i.selectCipher(t))}),h.EFF(2),h.k0s()}if(2&e){const e=h.XpG().$implicit;h.Y8G("title",h.mNQ(h.i5U(1,3,"editItemWithName",e.name))),h.R7$(2),h.JRh(e.name)}}function K(e,t){if(1&e&&(h.j41(0,"span",21),h.EFF(1),h.k0s()),2&e){const e=h.XpG().$implicit;h.Y8G("title",h.mNQ(e.name)),h.R7$(),h.JRh(e.name)}}function Z(e,t){1&e&&(h.nrm(0,"bit-icon",25),h.nI1(1,"i18n"),h.j41(2,"span",2),h.EFF(3),h.nI1(4,"i18n"),h.k0s()),2&e&&(h.Y8G("title",h.bMT(1,2,"shared")),h.R7$(3),h.JRh(h.bMT(4,4,"shared")))}function H(e,t){1&e&&(h.nrm(0,"bit-icon",26),h.nI1(1,"i18n"),h.j41(2,"span",2),h.EFF(3),h.nI1(4,"i18n"),h.k0s()),2&e&&(h.Y8G("title",h.bMT(1,2,"attachments")),h.R7$(3),h.JRh(h.bMT(4,4,"attachments")))}function J(e,t){if(1&e&&(h.j41(0,"bit-badge",27),h.EFF(1),h.nI1(2,"async"),h.nI1(3,"orgNameFromId"),h.k0s()),2&e){const e=h.XpG(2).$implicit,t=h.XpG(3);h.R7$(),h.SpI(" ",h.i5U(3,3,e.organizationId,h.bMT(2,1,t.organizations$))," ")}}function q(e,t){1&e&&(h.j41(0,"bit-badge",27),h.EFF(1),h.nI1(2,"i18n"),h.k0s()),2&e&&(h.R7$(),h.SpI(" ",h.bMT(2,1,"me")," "))}function $(e,t){if(1&e&&(h.j41(0,"td",17),h.nVh(1,J,4,6,"bit-badge",27)(2,q,3,3,"bit-badge",27),h.k0s()),2&e){const e=h.XpG().$implicit;h.R7$(),h.vxM(e.organizationId?1:2)}}function _(e,t){if(1&e&&(h.j41(0,"td",17),h.nrm(1,"app-vault-icon",18),h.k0s(),h.j41(2,"td",19),h.nVh(3,W,3,6,"a",20)(4,K,2,3,"span",21),h.nVh(5,Z,5,6),h.nVh(6,H,5,6),h.nrm(7,"br"),h.j41(8,"small"),h.EFF(9),h.k0s()(),h.nVh(10,$,3,1,"td",17),h.j41(11,"td",22)(12,"bit-badge",23),h.EFF(13),h.nI1(14,"i18n"),h.k0s()()),2&e){const e=t.$implicit,i=h.XpG(3);h.R7$(),h.Y8G("cipher",e),h.R7$(2),h.vxM(!i.organization||i.canManageCipher(e)?3:4),h.R7$(2),h.vxM(!i.organization&&e.organizationId?5:-1),h.R7$(),h.vxM(e.hasAttachments?6:-1),h.R7$(3),h.JRh(e.subTitle),h.R7$(),h.vxM(i.isAdminConsoleActive?-1:10),h.R7$(2),h.Y8G("variant",e.reportValue.badgeVariant),h.R7$(),h.SpI(" ",h.bMT(14,8,e.reportValue.label)," ")}}function ee(e,t){if(1&e&&(h.j41(0,"bit-callout",4),h.nI1(1,"i18n"),h.EFF(2),h.nI1(3,"number"),h.nI1(4,"i18n"),h.k0s(),h.nVh(5,z,2,1),h.j41(6,"bit-table-scroll",5),h.qex(7,6),h.nrm(8,"th",7),h.j41(9,"th",8),h.EFF(10),h.nI1(11,"i18n"),h.k0s(),h.nVh(12,L,3,3,"th",9),h.j41(13,"th",10),h.EFF(14),h.nI1(15,"i18n"),h.k0s(),h.bVm(),h.DNE(16,_,15,10,"ng-template",11),h.k0s()),2&e){const e=h.XpG(2);h.Y8G("title",h.mNQ(h.bMT(1,9,"weakPasswordsFound"))),h.R7$(2),h.SpI(" ",h.brH(4,13,"weakPasswordsFoundReportDesc",h.bMT(3,11,e.ciphers.length),e.vaultMsg)," "),h.R7$(3),h.vxM(e.showFilterToggle&&!e.isAdminConsoleActive?5:-1),h.R7$(),h.Y8G("dataSource",e.dataSource)("rowSize",54),h.R7$(4),h.JRh(h.bMT(11,17,"name")),h.R7$(2),h.vxM(e.isAdminConsoleActive?-1:12),h.R7$(2),h.SpI(" ",h.bMT(15,19,"weakness")," ")}}function te(e,t){if(1&e&&(h.j41(0,"div",0),h.nVh(1,N,4,7,"bit-callout",3)(2,ee,17,21),h.k0s()),2&e){const e=h.XpG();h.R7$(),h.vxM(e.ciphers.length?2:1)}}class ie extends u.n{constructor(e,t,i,n,r,s,o,a,l,c,d){super(e,n,s,i,r,o,a,l,c),this.cipherService=e,this.passwordStrengthService=t,this.organizationService=i,this.accountService=r,this.adminConsoleCipherFormConfigService=c,this.logService=d,this.disabled=!0,this.weakPasswordCiphers=[]}ngOnInit(){const e=Object.create(null,{load:{get:()=>super.load}});return U(this,void 0,void 0,function*(){this.logService.info("[WeakPasswordsReport] load start");try{yield e.load.call(this),this.logService.info("[WeakPasswordsReport] load success")}catch(t){throw this.logService.error("[WeakPasswordsReport] load failure",t),t}})}setCiphers(){return U(this,void 0,void 0,function*(){this.logService.info("[WeakPasswordsReport] analysis start");try{const e=yield this.getAllCiphers();this.logService.info(`[WeakPasswordsReport] Loaded ${e.length} ciphers for report`),this.weakPasswordCiphers=[],this.filterStatus=[0],this.findWeakPasswords(e)}catch(e){throw this.logService.error("[WeakPasswordsReport] Failed to fetch ciphers",e),e}})}determinedUpdatedCipherReportStatus(e,t){return U(this,void 0,void 0,function*(){if(this.logService.info(`[WeakPasswordsReport] Updating cipher ${t.id}, result: ${e}`),e===c.rd.Deleted)return this.weakPasswordCiphers=this.weakPasswordCiphers.filter(e=>e.id!==t.id),this.logService.info(`[WeakPasswordsReport] Cipher deleted, ${this.weakPasswordCiphers.length} remaining`),null;const i=yield this.determineWeakPasswordScore(t),n=this.weakPasswordCiphers.findIndex(e=>e.id===t.id);return-1===n?this.logService.warning(`[WeakPasswordsReport] Edited cipher not found in report list: ${t.id}`):null!==i?this.weakPasswordCiphers[n]=i:this.weakPasswordCiphers.splice(n,1),i})}findWeakPasswords(e){const t=e.filter(e=>e.type===a.gC.Login);this.logService.info(`[WeakPasswordsReport] Analyzing ${e.length} ciphers (${t.length} logins)`),this.logService.info("[WeakPasswordsReport] Checking passwords against user inputs and common patterns"),e.forEach(e=>{const t=this.determineWeakPasswordScore(e);null!=t&&this.weakPasswordCiphers.push(t)}),this.logService.info(`[WeakPasswordsReport] Found ${this.weakPasswordCiphers.length} weak passwords`),this.logService.info("[WeakPasswordsReport] Filtering ciphers by organization"),this.filterCiphersByOrg(this.weakPasswordCiphers),this.logService.info(`[WeakPasswordsReport] Finished loading report with ${this.ciphers.length} ciphers to display`)}determineWeakPasswordScore(e){const{type:t,login:i,isDeleted:n,edit:r,viewPassword:s}=e;if(t!==a.gC.Login||null==i||null==i.password||""===i.password||n||!this.organization&&!r||!s)return;let o=[];if(this.isUserNameNotEmpty(e)){const e=i.username.indexOf("@");o=e>-1?o.concat(i.username.substr(0,e).trim().toLowerCase().split(/[^A-Za-z0-9]/)).filter(e=>e.length>=3):i.username.trim().toLowerCase().split(/[^A-Za-z0-9]/).filter(e=>e.length>=3)}const l=this.passwordStrengthService.getPasswordStrength(i.password,null,o.length>0?o:null);if(null==l.score)return this.logService.warning(`[WeakPasswordsReport] Password strength returned null score for cipher ${e.id}`),null;if(l.score<=2){const t=this.scoreKey(l.score);return Object.assign(Object.assign({},e),{score:l.score,reportValue:t,scoreKey:t.sortOrder})}return null}canManageCipher(e){return!0}isUserNameNotEmpty(e){return!r.A.isNullOrWhitespace(e.login.username)}scoreKey(e){switch(e){case 4:return{label:"strong",badgeVariant:"success",sortOrder:1};case 3:return{label:"good",badgeVariant:"primary",sortOrder:2};case 2:return{label:"weak",badgeVariant:"warning",sortOrder:3};default:return{label:"veryWeak",badgeVariant:"danger",sortOrder:4}}}}ie.ɵfac=function(e){return new(e||ie)(h.rXU(p.p),h.rXU(s.Q),h.rXU(n.PV),h.rXU(g.o),h.rXU(v.D),h.rXU(c.qX),h.rXU(m.W),h.rXU(o.H),h.rXU(c.hI),h.rXU(d.l),h.rXU(l.Kc))},ie.ɵcmp=h.VBU({type:ie,selectors:[["app-weak-passwords-report"]],standalone:!1,features:[h.Vt3],decls:7,vars:4,consts:[[1,"tw-mt-4"],["name","bwi-spinner",1,"bwi-spin","tw-text-muted",3,"ariaLabel","title"],[1,"tw-sr-only"],["type","success",3,"title"],["type","danger",3,"title"],["layout","fixed",3,"dataSource","rowSize"],["header",""],["bitCell","",1,"tw-w-12"],["bitCell","","bitSortable","name"],["bitCell","","bitSortable","organizationId",1,"tw-w-1/4"],["bitCell","","bitSortable","scoreKey","default","desc",1,"tw-text-right"],["bitRowDef",""],[3,"selected","label"],["fullWidth","true",3,"placeholderText","options","ngModel"],[3,"selectedChange","selected","label"],[3,"value"],["fullWidth","true",3,"ngModelChange","placeholderText","options","ngModel"],["bitCell",""],[3,"cipher"],["bitCell","",1,"tw-truncate","tw-max-w-0"],["bitLink","","href","#","appStopClick","",3,"title"],[3,"title"],["bitCell","",1,"tw-text-right"],["size","small",3,"variant"],["bitLink","","href","#","appStopClick","",3,"click","title"],["name","bwi-collection-shared","appStopProp","",1,"tw-ml-1",3,"title"],["name","bwi-paperclip","appStopProp","",1,"tw-ml-1",3,"title"],["variant","secondary","size","small"]],template:function(e,t){1&e&&(h.nrm(0,"app-header"),h.j41(1,"bit-container")(2,"p"),h.EFF(3),h.nI1(4,"i18n"),h.k0s(),h.nVh(5,O,7,9,"div")(6,te,3,1,"div",0),h.k0s()),2&e&&(h.R7$(3),h.JRh(h.bMT(4,2,"weakPasswordsReportDesc")),h.R7$(2),h.vxM(!t.hasLoaded&&t.loading?5:6))},dependencies:[f.BC,f.vS,y.R,b.Y,C.x,I.n,w.G,B.H,E.R,S.g,Q.a,k.Q,R.O,Q.N,F.H,T.a,D.f,P.W,M.c,x.Jj,x.QX,V.$,G.t],encapsulation:2})},80378(e,t,i){"use strict";var n;i.d(t,{C:()=>n}),function(e){e.Enabled="Enabled",e.RequiresPremium="RequiresPremium",e.RequiresUpgrade="RequiresUpgrade",e.RequiresEnterprise="RequiresEnterprise"}(n||(n={}))},25219(e,t,i){"use strict";i.d(t,{i:()=>y});var n=i(24590),r=i(14041),s=i(80378),o=i(46758),a=i(84522),l=i(47696),c=i(8168),d=i(67379);class u{}u.ɵfac=function(e){return new(e||u)},u.ɵcmp=r.VBU({type:u,selectors:[["bit-card-content"]],ngContentSelectors:["*"],decls:2,vars:0,consts:[[1,"tw-p-4","[@media(min-width:650px)]:tw-p-6"]],template:function(e,t){1&e&&(r.NAR(),r.rj2(0,"div",0),r.SdG(1),r.eux())},encapsulation:2});var h=i(37856),A=i(25740);const p=e=>({"tw-grayscale":e});function g(e,t){1&e&&r.nrm(0,"app-premium-badge",8)}function v(e,t){1&e&&(r.j41(0,"span",9),r.EFF(1),r.nI1(2,"i18n"),r.k0s()),2&e&&(r.R7$(),r.SpI(" ",r.bMT(2,1,"upgrade")," "))}class m{get disabled(){return this.variant!=s.C.Enabled}get requiresPremium(){return this.variant==s.C.RequiresPremium}get requiresUpgrade(){return this.variant==s.C.RequiresUpgrade}}function f(e,t){if(1&e&&(r.j41(0,"div"),r.nrm(1,"app-report-card",1),r.nI1(2,"i18n"),r.nI1(3,"i18n"),r.k0s()),2&e){const e=t.$implicit;r.R7$(),r.Y8G("title",r.bMT(2,5,e.title))("description",r.bMT(3,7,e.description))("route",e.route)("variant",e.variant)("icon",e.icon)}}m.ɵfac=function(e){return new(e||m)},m.ɵcmp=r.VBU({type:m,selectors:[["app-report-card"]],inputs:{title:"title",description:"description",route:"route",icon:"icon",variant:"variant"},standalone:!1,decls:12,vars:11,consts:[[1,"tw-block","tw-h-full","tw-max-w-72","tw-rounded-xl","!tw-text-main","tw-transition-all","hover:tw-scale-105","hover:tw-no-underline","focus:tw-outline-none","focus:tw-ring","focus:tw-ring-primary-700","focus:tw-ring-offset-2",3,"routerLink"],[1,"tw-relative","tw-overflow-hidden","tw-h-full"],[1,"tw-flex","tw-h-28","tw-bg-background-alt2","tw-text-center","tw-text-primary-300",3,"ngClass"],[1,"tw-m-auto","tw-size-20","tw-content-center"],["aria-hidden","true",1,"tw-h-full",3,"content"],[3,"ngClass"],[1,"tw-mb-4","tw-text-xl","tw-font-medium"],[1,"tw-mb-0"],[1,"tw-absolute","tw-left-2","tw-top-2"],["bitBadge","","variant","primary",1,"tw-absolute","tw-left-2","tw-top-2"]],template:function(e,t){1&e&&(r.j41(0,"a",0)(1,"bit-base-card",1)(2,"div",2)(3,"div",3),r.nrm(4,"bit-svg",4),r.k0s()(),r.j41(5,"bit-card-content",5)(6,"h3",6),r.EFF(7),r.k0s(),r.j41(8,"p",7),r.EFF(9),r.k0s()(),r.nVh(10,g,1,0,"app-premium-badge",8)(11,v,3,3,"span",9),r.k0s()()),2&e&&(r.Y8G("routerLink",t.route),r.R7$(2),r.Y8G("ngClass",r.eq3(7,p,t.disabled)),r.R7$(2),r.Y8G("content",t.icon),r.R7$(),r.Y8G("ngClass",r.eq3(9,p,t.disabled)),r.R7$(2),r.JRh(t.title),r.R7$(2),r.JRh(t.description),r.R7$(),r.vxM(t.requiresPremium?10:t.requiresUpgrade?11:-1))},dependencies:[o.YU,a.Wk,l.n,c.k,d.f,u,h.a,A.$],encapsulation:2});class y{constructor(){this.reports=(0,n.hFB)([])}}y.ɵfac=function(e){return new(e||y)},y.ɵcmp=r.VBU({type:y,selectors:[["app-report-list"]],inputs:{reports:[1,"reports"]},standalone:!1,decls:3,vars:0,consts:[[1,"tw-inline-grid","tw-place-items-stretch","tw-place-content-center","tw-grid-cols-1","@xl:tw-grid-cols-2","@4xl:tw-grid-cols-3","tw-gap-4","[&_a]:tw-max-w-none","@5xl:[&_a]:tw-max-w-72"],[3,"title","description","route","variant","icon"]],template:function(e,t){1&e&&(r.j41(0,"div",0),r.Z7z(1,f,4,9,"div",null,r.fX1),r.k0s()),2&e&&(r.R7$(),r.Dyx(t.reports()))},dependencies:[m,A.$],encapsulation:2,changeDetection:0})},77243(e,t,i){"use strict";i.d(t,{l:()=>h});var n=i(8916),r=i(57768),s=i(14041),o=i(46758),a=i(54471),l=i(58384),c=i(25740),d=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function u(e,t){if(1&e&&(s.j41(0,"p"),s.EFF(1),s.j41(2,"a",1),s.nI1(3,"i18n"),s.nrm(4,"bit-icon",2),s.k0s(),s.nrm(5,"br"),s.j41(6,"code",3),s.EFF(7),s.k0s()()),2&e){const e=s.XpG();s.R7$(),s.SpI(" ",e.fingerprintLabel,": "),s.R7$(),s.Y8G("appA11yTitle",s.mNQ(s.bMT(3,4,"learnMoreAboutYourAccountFingerprintPhrase"))),s.R7$(5),s.JRh(e.fingerprint)}}class h{constructor(e){this.keyService=e}ngOnInit(){return d(this,void 0,void 0,function*(){var e;const t=yield this.keyService.getFingerprint(this.fingerprintMaterial,this.publicKeyBuffer);this.fingerprint=null!==(e=null==t?void 0:t.join("-"))&&void 0!==e?e:null})}}h.ɵfac=function(e){return new(e||h)(s.rXU(n.Lu))},h.ɵcmp=s.VBU({type:h,selectors:[["app-account-fingerprint"]],inputs:{fingerprintMaterial:"fingerprintMaterial",publicKeyBuffer:"publicKeyBuffer",fingerprintLabel:"fingerprintLabel"},decls:3,vars:1,consts:[[4,"ngIf"],["href","https://bitwarden.com/help/fingerprint-phrase/","target","_blank","rel","noreferrer",3,"appA11yTitle"],["name","bwi-question-circle"],[1,"tw-text-code"]],template:function(e,t){1&e&&(s.qex(0),s.nrm(1,"hr"),s.DNE(2,u,8,6,"p",0),s.bVm()),2&e&&(s.R7$(2),s.Y8G("ngIf",t.fingerprint))},dependencies:[r.G,o.bT,a.C,l.R,c.$],encapsulation:2})},72932(e,t,i){"use strict";i.d(t,{G:()=>o});var n=i(49112),r=i(14041),s=i(11217);class o{}o.ɵfac=function(e){return new(e||o)},o.ɵmod=r.$C({type:o}),o.ɵinj=s.G2t({imports:[n.f]})},49112(e,t,i){"use strict";i.d(t,{f:()=>$});var n=i(11217),r=i(24590),s=i(26983),o=i(69783),a=i(90097),l=i(58806),c=i(14041);const d=[[["","slot","breadcrumbs"]],[["","slot","title-suffix"]],"*",[["","slot","secondary"]],[["","slot","tabs"]]];function u(e,t){if(1&e&&c.nrm(0,"i",10),2&e){const e=c.XpG();c.HbH(c.VkB("bwi ",e.icon()))}}class h{constructor(){this.title=r.hFB.required(),this.icon=(0,r.hFB)()}}h.ɵfac=function(e){return new(e||h)},h.ɵcmp=c.VBU({type:h,selectors:[["bit-header"]],inputs:{title:[1,"title"],icon:[1,"icon"]},ngContentSelectors:["[slot=breadcrumbs]","[slot=title-suffix]","*","[slot=secondary]","[slot=tabs]"],decls:17,vars:3,consts:[[1,"-tw-mt-6","-tw-mx-8","tw-mb-3","tw-flex","tw-flex-col","tw-gap-4","tw-py-6","tw-px-8","has-[[data-tabs]:not(:empty)]:tw-border-0","has-[[data-tabs]:not(:empty)]:tw-border-b","has-[[data-tabs]:not(:empty)]:tw-border-solid","has-[[data-tabs]:not(:empty)]:tw-border-secondary-100","has-[[data-tabs]:not(:empty)]:tw-bg-background-alt","has-[[data-tabs]:not(:empty)]:tw-pb-0"],[1,"tw-flex"],[1,"tw-flex","tw-min-w-0","tw-flex-1","tw-flex-col","tw-gap-2"],["bitTypography","h1","noMargin","",1,"tw-m-0","tw-mr-2","tw-leading-10","tw-flex","tw-gap-1",3,"title"],[1,"tw-truncate"],["aria-hidden","true",3,"class"],[1,"tw-ml-auto","tw-flex","tw-flex-col","tw-gap-4"],[1,"tw-flex","tw-min-w-max","tw-items-center","tw-justify-end","tw-gap-2"],[1,"tw-ml-auto","empty:tw-hidden"],["data-tabs","",1,"-tw-mb-px","empty:tw-hidden"],["aria-hidden","true"]],template:function(e,t){1&e&&(c.NAR(d),c.j41(0,"header",0)(1,"div",1)(2,"div",2),c.SdG(3),c.j41(4,"h1",3)(5,"div",4),c.nVh(6,u,1,3,"i",5),c.EFF(7),c.k0s(),c.j41(8,"div"),c.SdG(9,1),c.k0s()()(),c.j41(10,"div",6)(11,"div",7),c.SdG(12,2),c.k0s(),c.j41(13,"div",8),c.SdG(14,3),c.k0s()()(),c.j41(15,"div",9),c.SdG(16,4),c.k0s()()),2&e&&(c.R7$(4),c.Y8G("title",t.title()),c.R7$(2),c.vxM(t.icon()?6:-1),c.R7$(),c.SpI(" ",t.title()," "))},dependencies:[l.r],encapsulation:2,changeDetection:0});var A=i(25065),p=i(87916),g=i(92128),v=i(28990),m=i(35500),f=i(16184),y=i(37115),b=i(23490),C=i(84522),I=i(47428),w=i(13496),B=i(73848),E=i(78952),S=i(32924),Q=i(46758),k=i(25740),R=i(90171),F=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function T(e,t){if(1&e&&(c.nrm(0,"bit-menu-divider"),c.j41(1,"span",16),c.EFF(2),c.k0s()),2&e){const e=c.XpG(2);c.R7$(2),c.SpI(" ",e.hostname," ")}}function D(e,t){if(1&e){const e=c.RV6();c.j41(0,"button",14),c.bIt("click",function(){n.eBV(e);const t=c.XpG(2);return n.Njj(t.lock())}),c.nrm(1,"i",17),c.EFF(2),c.nI1(3,"i18n"),c.k0s()}2&e&&(c.R7$(2),c.SpI(" ",c.bMT(3,1,"lockNow")," "))}function P(e,t){if(1&e){const e=c.RV6();c.j41(0,"button",1),c.nrm(1,"dynamic-avatar",2),c.nI1(2,"userName"),c.k0s(),c.j41(3,"bit-menu",null,0)(5,"div",3)(6,"div",4),c.nrm(7,"dynamic-avatar",2),c.nI1(8,"userName"),c.j41(9,"div",5)(10,"span"),c.EFF(11),c.nI1(12,"i18n"),c.k0s(),c.j41(13,"small",6),c.EFF(14),c.nI1(15,"userName"),c.k0s()()(),c.nVh(16,T,3,1),c.nrm(17,"bit-menu-divider"),c.j41(18,"a",7),c.nrm(19,"i",8),c.EFF(20),c.nI1(21,"i18n"),c.k0s(),c.j41(22,"a",9),c.nrm(23,"i",10),c.EFF(24),c.nI1(25,"i18n"),c.k0s(),c.j41(26,"a",11),c.nrm(27,"i",12),c.EFF(28),c.nI1(29,"i18n"),c.k0s(),c.nrm(30,"bit-menu-divider"),c.nVh(31,D,4,3,"button",13),c.nI1(32,"async"),c.j41(33,"button",14),c.bIt("click",function(){n.eBV(e);const t=c.XpG();return n.Njj(t.logout())}),c.nrm(34,"i",15),c.EFF(35),c.nI1(36,"i18n"),c.k0s()()()}if(2&e){const e=c.sdS(4),t=c.XpG();c.Y8G("bitMenuTriggerFor",e),c.R7$(),c.Y8G("id",t.account().id)("text",c.bMT(2,13,t.account())),c.R7$(6),c.Y8G("id",t.account().id)("text",c.bMT(8,15,t.account())),c.R7$(4),c.JRh(c.bMT(12,17,"loggedInAs")),c.R7$(3),c.SpI(" ",c.bMT(15,19,t.account())," "),c.R7$(2),c.vxM(t.selfHosted?16:-1),c.R7$(4),c.SpI(" ",c.bMT(21,21,"accountSettings")," "),c.R7$(4),c.SpI(" ",c.bMT(25,23,"getHelp")," "),c.R7$(4),c.SpI(" ",c.bMT(29,25,"getApps")," "),c.R7$(3),c.vxM(c.bMT(32,27,t.canLock$)?31:-1),c.R7$(4),c.SpI(" ",c.bMT(36,29,"logOut")," ")}}class M{constructor(){this.platformUtilsService=(0,n.WQX)(y.y),this.vaultTimeoutSettingsService=(0,n.WQX)(f.ep),this.accountService=(0,n.WQX)(m.D),this.logoutService=(0,n.WQX)(v.k4),this.lockService=(0,n.WQX)(v.FQ),this.account=(0,g.ot)(this.accountService.activeAccount$),this.canLock$=this.vaultTimeoutSettingsService.availableVaultTimeoutActions$().pipe((0,o.T)(e=>e.includes(f.W4.Lock))),this.selfHosted=this.platformUtilsService.isSelfHost(),this.hostname=globalThis.location.hostname}lock(){return F(this,void 0,void 0,function*(){var e;const t=null===(e=this.account())||void 0===e?void 0:e.id;t&&(yield this.lockService.lock(t))})}logout(){return F(this,void 0,void 0,function*(){var e;const t=null===(e=this.account())||void 0===e?void 0:e.id;t&&(yield this.logoutService.logout(t))})}}M.ɵfac=function(e){return new(e||M)},M.ɵcmp=c.VBU({type:M,selectors:[["app-account-menu"]],decls:1,vars:1,consts:[["accountMenu",""],["type","button",1,"tw-border-0","tw-bg-transparent","tw-p-0","tw-shrink-0",3,"bitMenuTriggerFor"],[3,"id","text"],[1,"tw-flex","tw-min-w-52","tw-max-w-72","tw-flex-col"],["appStopProp","",1,"tw-flex","tw-items-center","tw-px-4","tw-py-1","tw-leading-tight","tw-text-muted"],[1,"tw-ml-2","tw-block","tw-overflow-hidden","tw-whitespace-nowrap"],[1,"tw-block","tw-overflow-hidden","tw-whitespace-nowrap"],["bitMenuItem","","routerLink","/settings/account"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-user"],["bitMenuItem","","href","https://github.com/dani-garcia/vaultwarden","target","_blank","rel","noreferrer"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-question-circle"],["bitMenuItem","","href","https://bitwarden.com/download/","target","_blank","rel","noreferrer"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-download"],["bitMenuItem","","type","button"],["bitMenuItem","","type","button",3,"click"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-sign-out"],[1,"tw-break-all","tw-px-4","tw-py-1","tw-text-left","tw-text-muted"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-lock"]],template:function(e,t){1&e&&c.nVh(0,P,37,31),2&e&&c.vxM(t.account()?0:-1)},dependencies:[A.G,C.Wk,I.x,w.Z,B.O,E.S,S.M,b.O,Q.Jj,k.$,R.b],encapsulation:2,changeDetection:0});var x=i(78867),V=i(36288),G=i(57178);const U=["menu"],O=e=>({"--num-products":e,"grid-template-columns":"repeat(min(var(--num-products,1),3),auto)"}),N=()=>({focusAfterNav:"body"});function j(e,t){if(1&e&&(c.j41(0,"a",7),c.nrm(1,"i"),c.j41(2,"span",8),c.EFF(3),c.k0s()()),2&e){const e=t.$implicit;c.Y8G("routerLink",e.appRoute)("ngClass",e.isActive?"tw-bg-primary-600 tw-font-medium !tw-text-contrast tw-ring-offset-2 hover:tw-bg-primary-600":"")("state",c.lJ4(7,N)),c.R7$(),c.HbH(c.VkB("bwi ",e.icon," tw-text-4xl !tw-m-0 !tw-mb-1")),c.R7$(2),c.JRh(e.name)}}function Y(e,t){if(1&e&&(c.j41(0,"a",14),c.EFF(1),c.k0s()),2&e){const e=c.XpG().$implicit;c.Y8G("routerLink",e.marketingRoute.route)("startIcon",e.icon),c.R7$(),c.SpI(" ",e.name," ")}}function X(e,t){if(1&e&&(c.j41(0,"a",15),c.EFF(1),c.k0s()),2&e){const e=c.XpG().$implicit;c.Y8G("href",e.marketingRoute.route,c.B4B)("startIcon",e.icon),c.R7$(),c.SpI(" ",e.name," ")}}function z(e,t){if(1&e&&(c.j41(0,"span"),c.DNE(1,Y,2,3,"a",12)(2,X,2,3,"a",13),c.k0s()),2&e){const e=t.$implicit;c.R7$(),c.Y8G("ngIf",!e.marketingRoute.external),c.R7$(),c.Y8G("ngIf",e.marketingRoute.external)}}function L(e,t){if(1&e&&(c.j41(0,"section",9)(1,"span",10),c.EFF(2),c.nI1(3,"i18n"),c.k0s(),c.DNE(4,z,3,2,"span",11),c.k0s()),2&e){const e=c.XpG().ngIf;c.R7$(2),c.JRh(c.bMT(3,2,"moreFromBitwarden")),c.R7$(2),c.Y8G("ngForOf",e.other)}}function W(e,t){if(1&e&&(c.j41(0,"div",3)(1,"section",4),c.DNE(2,j,4,8,"a",5),c.k0s(),c.DNE(3,L,5,4,"section",6),c.k0s()),2&e){const e=t.ngIf;c.R7$(),c.Y8G("ngStyle",c.eq3(3,O,e.bento.length)),c.R7$(),c.Y8G("ngForOf",e.bento),c.R7$(),c.Y8G("ngIf",!1)}}class K{constructor(e){this.productSwitcherService=e,this.products$=this.productSwitcherService.products$}}function Z(e,t){if(1&e&&(c.nrm(0,"button",2),c.nI1(1,"i18n")),2&e){const e=c.XpG(),t=c.sdS(3);c.Y8G("bitMenuTriggerFor",null==t?null:t.menu)("buttonType",e.buttonType)("label",c.bMT(1,3,"switchProducts"))}}K.ɵfac=function(e){return new(e||K)(c.rXU(x.Y))},K.ɵcmp=c.VBU({type:K,selectors:[["product-switcher-content"]],viewQuery:function(e,t){if(1&e&&c.GBs(U,5),2&e){let e;c.mGM(e=c.lsd())&&(t.menu=e.first)}},standalone:!1,decls:5,vars:6,consts:[["menu",""],["ariaRole","dialog",3,"ariaLabel"],["class","tw-px-4 tw-py-2",4,"ngIf"],[1,"tw-px-4","tw-py-2"],[1,"tw-grid","tw-gap-2",3,"ngStyle"],["class","tw-group/product-link tw-flex tw-h-24 tw-w-28 tw-flex-col tw-items-center tw-justify-center tw-rounded tw-p-1 tw-text-primary-600 tw-outline-none hover:tw-bg-background-alt hover:tw-text-primary-700 hover:tw-no-underline focus-visible:!tw-ring-2 focus-visible:!tw-ring-primary-700","ariaCurrentWhenActive","page",3,"routerLink","ngClass","state",4,"ngFor","ngForOf"],["class","tw-mt-4 tw-flex tw-w-full tw-flex-col tw-gap-2 tw-border-0 tw-border-t tw-border-solid tw-border-t-secondary-100 tw-p-2 tw-pb-0",4,"ngIf"],["ariaCurrentWhenActive","page",1,"tw-group/product-link","tw-flex","tw-h-24","tw-w-28","tw-flex-col","tw-items-center","tw-justify-center","tw-rounded","tw-p-1","tw-text-primary-600","tw-outline-none","hover:tw-bg-background-alt","hover:tw-text-primary-700","hover:tw-no-underline","focus-visible:!tw-ring-2","focus-visible:!tw-ring-primary-700",3,"routerLink","ngClass","state"],[1,"tw-max-w-24","tw-text-center","tw-text-sm","tw-leading-snug","group-hover/product-link:tw-underline"],[1,"tw-mt-4","tw-flex","tw-w-full","tw-flex-col","tw-gap-2","tw-border-0","tw-border-t","tw-border-solid","tw-border-t-secondary-100","tw-p-2","tw-pb-0"],[1,"tw-mb-1","tw-text-xs","tw-text-muted"],[4,"ngFor","ngForOf"],["bitLink","",3,"routerLink","startIcon",4,"ngIf"],["bitLink","","target","_blank","rel","noreferrer",3,"href","startIcon",4,"ngIf"],["bitLink","",3,"routerLink","startIcon"],["bitLink","","target","_blank","rel","noreferrer",3,"href","startIcon"]],template:function(e,t){1&e&&(c.j41(0,"bit-menu",1,0),c.nI1(2,"i18n"),c.DNE(3,W,4,5,"div",2),c.nI1(4,"async"),c.k0s()),2&e&&(c.Y8G("ariaLabel",c.bMT(2,2,"switchProducts")),c.R7$(3),c.Y8G("ngIf",c.bMT(4,4,t.products$)))},dependencies:[Q.YU,Q.Sq,Q.bT,Q.B3,C.Wk,G.g,w.Z,Q.Jj,k.$],encapsulation:2});class H{ngAfterViewInit(){this.changeDetector.detectChanges()}constructor(e,t){this.changeDetector=e,this.productSwitcherService=t,this.buttonType="secondary",this.products$=this.productSwitcherService.products$}}H.ɵfac=function(e){return new(e||H)(c.rXU(r.gRc),c.rXU(x.Y))},H.ɵcmp=c.VBU({type:H,selectors:[["product-switcher"]],inputs:{buttonType:"buttonType"},standalone:!1,decls:4,vars:3,consts:[["content",""],["type","button","bitIconButton","bwi-grid",3,"bitMenuTriggerFor","buttonType","label",4,"ngIf"],["type","button","bitIconButton","bwi-grid",3,"bitMenuTriggerFor","buttonType","label"]],template:function(e,t){1&e&&(c.DNE(0,Z,2,5,"button",1),c.nI1(1,"async"),c.nrm(2,"product-switcher-content",null,0)),2&e&&c.Y8G("ngIf",c.bMT(1,1,t.products$))},dependencies:[Q.bT,V.s,B.O,K,Q.Jj,k.$],encapsulation:2});const J=[[["","slot","breadcrumbs"]],"*",[["","slot","title-suffix"]],[["","slot","secondary"]],[["","slot","tabs"]]];function q(e,t){if(1&e&&(c.j41(0,"bit-header",0),c.nI1(1,"i18n"),c.qex(2,1),c.SdG(3),c.bVm(),c.SdG(4,1),c.nrm(5,"product-switcher")(6,"app-account-menu"),c.qex(7,2),c.SdG(8,2),c.bVm(),c.qex(9,3),c.SdG(10,3),c.bVm(),c.qex(11,4),c.SdG(12,4),c.bVm(),c.k0s()),2&e){const e=c.XpG(),t=c.r8f(0);c.Y8G("title",e.title()||c.bMT(1,2,t.titleId))("icon",e.icon())}}class ${constructor(){this.route=(0,n.WQX)(s.nX),this.title=(0,r.hFB)(),this.icon=(0,r.hFB)(),this.routeData$=this.route.data.pipe((0,o.T)(e=>({titleId:e.titleId})))}}$.ɵfac=function(e){return new(e||$)},$.ɵcmp=c.VBU({type:$,selectors:[["app-header"]],inputs:{title:[1,"title"],icon:[1,"icon"]},ngContentSelectors:["[slot=breadcrumbs]","*","[slot=title-suffix]","[slot=secondary]","[slot=tabs]"],decls:3,vars:4,consts:[[3,"title","icon"],["slot","breadcrumbs"],["slot","title-suffix"],["slot","secondary"],["slot","tabs"]],template:function(e,t){if(1&e&&(c.NAR(J),c.SS7(0),c.nI1(1,"async"),c.nVh(2,q,13,4,"bit-header",0)),2&e){const e=c.bH3(c.bMT(1,1,t.routeData$));c.R7$(2),c.vxM(e?2:-1)}},dependencies:[A.G,p.V,H,a.H,h,M,Q.Jj,k.$],encapsulation:2,changeDetection:0})},87916(e,t,i){"use strict";i.d(t,{V:()=>c});var n=i(70352),r=i(84522),s=i(24137),o=i(25065),a=i(14041),l=i(11217);class c{}c.ɵfac=function(e){return new(e||c)},c.ɵmod=a.$C({type:c}),c.ɵinj=l.G2t({imports:[o.G,n.Pd,r.iI,s.f]})},78867(e,t,i){"use strict";i.d(t,{Y:()=>w});var n=i(26983),r=i(39250),s=i(72135),o=i(83604),a=i(68711),l=i(69783),c=i(34949),d=i(191),u=i(67553),h=i(7356),A=i(3633),p=i(54596),g=i(11217),v=i(13417),m=i(35500),f=i(37115),y=i(18499),b=i(50700),C=i(58329),I=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class w{constructor(e,t,i,p,g,v,m,f,y,b){this.organizationService=e,this.providerService=t,this.route=i,this.router=p,this.syncService=g,this.accountService=v,this.platformUtilsService=m,this.policyService=f,this.i18nService=y,this.billingAccountProfileStateService=b,this.syncCompleted$=new r.m(1),this.triggerProductUpdate$=(0,s.z)([this.syncCompleted$,this.router.events.pipe((0,c.Z)(null),(0,a.p)(e=>e instanceof n.wF||e instanceof n.Z||null===e))]).pipe((0,l.T)(()=>null)),this.organizations$=this.accountService.activeAccount$.pipe((0,l.T)(e=>null==e?void 0:e.id),(0,d.n)(e=>this.organizationService.organizations$(e))),this.providers$=this.accountService.activeAccount$.pipe(A.F6,(0,d.n)(e=>this.providerService.providers$(e))),this.userHasSingleOrgPolicy$=this.accountService.activeAccount$.pipe(A.F6,(0,d.n)(e=>(0,u.UX)(e,this.policyService))),this.shouldShowPremiumUpgradeButton$=this.accountService.activeAccount$.pipe((0,d.n)(e=>e?this.billingAccountProfileStateService.hasPremiumFromAnySource$(e.id).pipe((0,l.T)(e=>!e)):(0,o.of)(!1))),this.products$=(0,s.z)([this.organizations$,this.providers$,this.userHasSingleOrgPolicy$,this.route.paramMap,this.triggerProductUpdate$]).pipe((0,l.T)(([e,t,i,n])=>{var r,s,o;e.sort((e,t)=>e.name.localeCompare(t.name));let a=e.find(e=>e.id===n.get("organizationId")),l=null;["/sm/","/organizations/"].some(e=>this.router.url.includes(e))&&(l=null!==(r=this.router.url.split("/")[2])&&void 0!==r?r:null),l&&!a&&(a=e.find(e=>e.id===l));const c=(null==a?void 0:a.canAccessSecretsManager)&&1==(null==a?void 0:a.enabled)?a:e.find(e=>e.canAccessSecretsManager&&1==e.enabled),d=null!=a&&(0,u.OV)(a)?a:e.find(e=>(0,u.OV)(e)),A=(null===(s=t[0])||void 0===s?void 0:s.providerType)===h.cp.BusinessUnit?"Business Unit Portal":"Provider Portal",p=this.platformUtilsService.isSelfHost()?{route:"https://bitwarden.com/products/business/",external:!0}:{route:"/create-organization",external:!1},g={pm:{name:"Password Manager",icon:"bwi-lock",appRoute:"/vault",marketingRoute:{route:"https://bitwarden.com/products/personal/",external:!0},isActive:!this.router.url.includes("/sm/")&&!this.router.url.includes("/organizations/")&&!this.router.url.includes("/providers/")},sm:{name:"Secrets Manager",icon:"bwi-cli",appRoute:["/sm",null==c?void 0:c.id],marketingRoute:{route:"/sm-landing",external:!1},isActive:this.router.url.includes("/sm/"),otherProductOverrides:{supportingText:this.i18nService.t("secureYourInfrastructure")}},ac:{name:"Admin Console",icon:"bwi-business",appRoute:["/organizations",null==d?void 0:d.id],marketingRoute:{route:"https://bitwarden.com/products/business/",external:!0},isActive:this.router.url.includes("/organizations/")},provider:{name:A,icon:"bwi-provider",appRoute:["/providers",null===(o=t[0])||void 0===o?void 0:o.id],isActive:this.router.url.includes("/providers/")},orgs:{name:"Organizations",icon:"bwi-business",marketingRoute:p,otherProductOverrides:{name:"Share your passwords",supportingText:this.i18nService.t("protectYourFamilyOrBusiness")}}},v=[g.pm],m=[];return c&&v.push(g.sm),d&&v.push(g.ac),t.length>0&&v.push(g.provider),{bento:v,other:m}})),this.pollUntilSynced()}pollUntilSynced(){const e=setInterval(()=>I(this,void 0,void 0,function*(){null!==(yield this.syncService.getLastSync())&&(clearInterval(e),this.syncCompleted$.next())}),200)}}w.ɵfac=function(e){return new(e||w)(g.KVO(u.PV),g.KVO(v.$),g.KVO(n.nX),g.KVO(n.Ix),g.KVO(p.H),g.KVO(m.D),g.KVO(f.y),g.KVO(y.m),g.KVO(b.W),g.KVO(C.Q))},w.ɵprov=g.jDH({token:w,factory:w.ɵfac,providedIn:"root"})},53021(e,t,i){"use strict";i.d(t,{s:()=>G});var n=i(46758),r=i(70352),s=i(38798),o=i(11217),a=i(24590),l=i(63477),c=i(14041),d=i(84522),u=i(36801),h=i(45635),A=i(66723),p=i(26477),g=i(21823),v=i(9396),m=i(76794),f=i(69672),y=i(57178);const b=["sideNavSlotFallback"],C=["container"],I=["main"],w=["drawerContainer"],B=["skipLink"],E=[[["bit-side-nav"],["","slot","side-nav"]],"*"],S=()=>[];function Q(e,t){1&e&&c.eu8(0,null,4)}function k(e,t){1&e&&c.nrm(0,"div",9)}function R(e,t){}function F(e,t){if(1&e){const e=c.RV6();c.j41(0,"div",16),c.bIt("click",function(){o.eBV(e);const t=c.XpG();return o.Njj(t.sideNavService.toggle())}),c.k0s()}}function T(e,t){}class D{constructor(){this.sideNavService=(0,o.WQX)(g.G),this.drawerService=(0,o.WQX)(A.d),this.drawerPortal=this.drawerService.portal,this.footerPortal=(0,o.WQX)(m.b).portal,this.sideNavSlotFallback=(0,a.ebz)("sideNavSlotFallback"),this.hasSideNav=(0,l.EW)(()=>null==this.sideNavSlotFallback()),this.drawerIsActive=(0,l.EW)(()=>null!=this.drawerPortal()),this.destroyRef=(0,o.WQX)(o.abz),this.container=a.ebz.required("container"),this.mainContent=a.ebz.required("main"),this.drawerContainer=a.ebz.required("drawerContainer"),this.containerWidthPx=(0,o.vPA)(0),this.siderailIsPushMode=(0,o.vPA)(!1),this.gridTemplateColumns=(0,l.EW)(()=>{const e=this.sideNavService.open(),t=this.sideNavService.isPushMode(),i=this.siderailIsPushMode(),n=this.drawerIsActive(),r=this.drawerService.pushWidthPx(),s=this.containerWidthPx(),o=(0,v.T)(),a=4*o,l=h.G.small*o,c=24*o;let d,u,A;d=!!n&&(r>0&&s>0?s-a-l>=c:this.drawerService.isPushMode()),u=this.hasSideNav()?e&&t?`${this.sideNavService.widthRem()}rem`:t||i?"auto":"0px":"0px",A=n?d?r>0?`minmax(0px, ${r}px)`:"auto":"1fr":"0px";return`${u} ${!n||d?`minmax(${c}px, 1fr)`:"0px"} ${A}`}),this.rounded=(0,a.hFB)(!1,Object.assign(Object.assign({},{}),{transform:a.L39})),this.skipLink=a.ebz.required("skipLink"),(0,c.mal)(()=>{const e=this.container().nativeElement,t=this.drawerContainer().nativeElement,i=new ResizeObserver(()=>{const t=(0,v.T)(),i=e.clientWidth,n=4*t,r=24*t,s=this.sideNavService.widthRem()*t,o=h.G.small*t;this.containerWidthPx.set(i);const a=this.drawerService.pushWidthPx(),l=a>0&&i-s-a>=r,c=a>0&&i-s-o>=r,d=l||a>0&&i-n-a>=r||c||a>0&&i-n-o>=r,u=d?l||c:i-s>=r&&0===a,A=d?Math.min(a,Math.max(0,i-n-r)):0,p=d?i-n-A>=r:i-n>=r,g=this.sideNavService.isPushMode();!u&&this.sideNavService.open()&&g&&this.sideNavService.open.set(!1),u&&!g&&"closed"!==this.sideNavService.userCollapsePreference()&&this.sideNavService.open.set(!0),this.sideNavService.isPushMode.set(u),this.siderailIsPushMode.set(p),this.drawerService.isPushMode.set(d)});i.observe(e),i.observe(t),this.destroyRef.onDestroy(()=>i.disconnect())})}focusMainContent(){this.mainContent().nativeElement.focus()}handleKeydown(e){P()&&(e.preventDefault(),this.skipLink().el.nativeElement.focus())}}D.ɵfac=function(e){return new(e||D)},D.ɵcmp=c.VBU({type:D,selectors:[["bit-layout"]],viewQuery:function(e,t){1&e&&c.wEZ(t.sideNavSlotFallback,b,5)(t.container,C,5)(t.mainContent,I,5)(t.drawerContainer,w,5)(t.skipLink,B,5),2&e&&c.NyB(5)},hostAttrs:[1,"tw-block","tw-h-screen"],hostBindings:function(e,t){1&e&&c.bIt("keydown.tab",function(e){return t.handleKeydown(e)},c.EBC)},inputs:{rounded:[1,"rounded"]},ngContentSelectors:["bit-side-nav, [slot=side-nav]","*"],decls:22,vars:22,consts:[["container",""],["skipLink",""],["main",""],["drawerContainer",""],["sideNavSlotFallback",""],["cdkTrapFocus","",1,"tw-grid","tw-relative","tw-size-full","tw-overflow-hidden","tw-grid-rows-[minmax(0,1fr)]"],[1,"tw-fixed","tw-z-50","tw-w-full","tw-flex","tw-justify-center","tw-opacity-0","focus-within:tw-opacity-100","tw-pointer-events-none","focus-within:tw-pointer-events-auto"],[1,"tw-bg-background-alt3","tw-rounded-md","tw-rounded-t-none","tw-py-2","tw-text-alt2"],["bitLink","","linkType","light",1,"tw-mx-6","focus-visible:before:!tw-ring-0",3,"click","fragment","routerLink"],["aria-hidden","true",1,"tw-pointer-events-none","tw-w-[3.75rem]","tw-mx-0.5","tw-col-start-1","tw-row-start-1"],["tabindex","-1","bitScrollLayoutHost","",1,"tw-col-start-2","tw-row-start-1","tw-overflow-auto","tw-max-h-full","tw-min-w-96","tw-bg-background","tw-p-8","tw-pt-6","tw-@container","has-[bit-page]:tw-p-0",3,"id"],[1,"tw-col-start-2","tw-row-start-1","tw-z-50","tw-contain-layout","tw-pointer-events-none"],[3,"cdkPortalOutlet"],[1,"tw-pointer-events-none","tw-fixed","tw-inset-0","tw-z-40","tw-bg-black","tw-bg-opacity-0","motion-safe:tw-transition-colors"],[1,"tw-pointer-events-auto","tw-size-full"],[1,"tw-col-start-3","tw-row-start-1","tw-relative","tw-z-30","tw-h-full"],[1,"tw-pointer-events-auto","tw-size-full",3,"click"]],template:function(e,t){if(1&e&&(c.NAR(E),c.j41(0,"div",5,0)(2,"div",6)(3,"nav",7),c.nI1(4,"i18n"),c.j41(5,"a",8,1),c.bIt("click",function(){return t.focusMainContent()}),c.EFF(7),c.nI1(8,"i18n"),c.k0s()()(),c.SdG(9,0,null,Q,2,0),c.nVh(11,k,1,0,"div",9),c.j41(12,"main",10,2),c.SdG(14,1),c.k0s(),c.j41(15,"div",11),c.DNE(16,R,0,0,"ng-template",12),c.k0s(),c.j41(17,"div",13),c.nVh(18,F,1,0,"div",14),c.k0s(),c.j41(19,"div",15,3),c.DNE(21,T,0,0,"ng-template",12),c.k0s()()),2&e){const e="main-content";c.xc7("grid-template-columns",t.gridTemplateColumns()),c.AVh("tw-bg-background-alt3",t.rounded()),c.R7$(3),c.BMQ("aria-label",c.bMT(4,17,"skipLink")),c.R7$(2),c.Y8G("fragment",e)("routerLink",c.lJ4(21,S)),c.R7$(2),c.SpI(" ",c.bMT(8,19,"skipToContent")," "),c.R7$(4),c.vxM(t.sideNavService.isOverlay()&&t.siderailIsPushMode()?11:-1),c.R7$(),c.AVh("tw-rounded-tl-2xl",t.rounded()),c.Y8G("id",e),c.R7$(4),c.Y8G("cdkPortalOutlet",t.footerPortal()),c.R7$(),c.AVh("tw-bg-opacity-30",t.sideNavService.isOverlay()),c.R7$(),c.vxM(t.sideNavService.isOverlay()?18:-1),c.R7$(3),c.Y8G("cdkPortalOutlet",t.drawerPortal())}},dependencies:[n.MD,p.V,y.g,d.iI,d.Wk,s.jc,s.I3,r.Pd,r.kB,f.TT,u.$Z],encapsulation:2});const P=()=>[document.documentElement,document.body,null].includes(document.activeElement);var M=i(87916);const x=[[["app-side-nav"],["","slot","side-nav"]],"*"],V=["slot","side-nav"];class G{constructor(){}}G.ɵfac=function(e){return new(e||G)},G.ɵcmp=c.VBU({type:G,selectors:[["app-layout"]],ngContentSelectors:["app-side-nav, [slot=side-nav]","*"],decls:3,vars:0,template:function(e,t){1&e&&(c.NAR(x),c.j41(0,"bit-layout"),c.SdG(1,0,V),c.SdG(2,1),c.k0s())},dependencies:[n.MD,D,M.V],encapsulation:2})},81740(e,t,i){"use strict";i.d(t,{P:()=>l});var n=i(24137),r=i(53021),s=i(4581),o=i(14041),a=i(11217);class l{}l.ɵfac=function(e){return new(e||l)},l.ɵmod=o.$C({type:l}),l.ɵinj=a.G2t({imports:[r.s,s.y,n.f]})},4581(e,t,i){"use strict";i.d(t,{y:()=>U});var n=i(24590),r=i(24137),s=i(87916),o=i(14041),a=i(42503),l=i(69783),c=i(78867),d=i(46758),u=i(84522),h=i(74269),A=i(65067),p=i(11217),g=i(26983),v=i(68108),m=i(73366),f=i(12012),y=i(35500),b=i(37115),C=i(39488),I=i(66316),w=i(36801),B=i(27485),E=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class S{constructor(){this.dialogService=(0,p.WQX)(I.o),this.accountService=(0,p.WQX)(y.D),this.syncService=(0,p.WQX)(C.H),this.apiService=(0,p.WQX)(f.G),this.router=(0,p.WQX)(g.Ix),this.platformUtilsService=(0,p.WQX)(b.y),this.upgrade=()=>E(this,void 0,void 0,function*(){this.platformUtilsService.isSelfHost()?yield this.navigateToSelfHostSubscriptionPage():yield this.openUpgradeDialog()})}navigateToSelfHostSubscriptionPage(){return E(this,void 0,void 0,function*(){yield this.router.navigate(["/settings/subscription/premium"])})}openUpgradeDialog(){return E(this,void 0,void 0,function*(){const e=yield(0,v._)(this.accountService.activeAccount$);if(!e)return;const t=B.gY.open(this.dialogService,{data:{account:e,planSelectionStepTitleOverride:"upgradeYourPlan",hideContinueWithoutUpgradingButton:!0}}),i=yield(0,m.s)(t.closed);if((null==i?void 0:i.status)===B.PD.UpgradedToPremium)yield this.syncService.fullSync(!0);else if((null==i?void 0:i.status)===B.PD.UpgradedToFamilies){const e=`/organizations/${i.organizationId}/vault`;yield this.router.navigate([e])}})}}S.ɵfac=function(e){return new(e||S)},S.ɵcmp=o.VBU({type:S,selectors:[["app-upgrade-nav-button"]],decls:6,vars:3,consts:[[1,"tw-px-2","tw-mt-3","tw-mb-2","tw-h-10"],[1,"tw-rounded-full","tw-bg-primary-100","tw-size-full"],["type","button",1,"tw-py-1.5","tw-px-4","tw-flex","tw-gap-2","tw-items-center","tw-size-full","focus-visible:tw-ring-2","focus-visible:tw-ring-offset-0","focus:tw-outline-none","focus-visible:tw-outline-none","focus-visible:tw-ring-text-alt2","focus-visible:tw-z-10","tw-font-medium","tw-rounded-full","tw-transition","tw-border","tw-border-solid","tw-text-left","tw-bg-primary-100","tw-text-primary-600","tw-border-primary-600","hover:tw-bg-hover-default","hover:tw-text-primary-700","hover:tw-border-primary-700",3,"click"],["aria-hidden","true",1,"bwi","bwi-premium"]],template:function(e,t){1&e&&(o.rj2(0,"div",0)(1,"div",1)(2,"button",2),o.VwU("click",function(){return t.upgrade()}),o.Hgh(3,"i",3),o.EFF(4),o.nI1(5,"i18n"),o.eux()()()),2&e&&(o.R7$(4),o.SpI(" ",o.bMT(5,1,"upgradeYourPlan")," "))},dependencies:[w.$Z],encapsulation:2});var Q=i(25740);function k(e,t){if(1&e&&o.nrm(0,"bit-nav-item",2),2&e){const e=t.$implicit;o.Y8G("icon",e.icon)("text",e.name)("route",e.appRoute)("forceActiveStyles",e.isActive),o.BMQ("icon",e.icon)}}function R(e,t){if(1&e&&(o.nrm(0,"bit-nav-divider"),o.DNE(1,k,1,5,"bit-nav-item",1)),2&e){o.XpG();const e=o.r8f(0);o.R7$(),o.Y8G("ngForOf",e)}}function F(e,t){1&e&&o.nrm(0,"app-upgrade-nav-button")}function T(e,t){if(1&e&&(o.j41(0,"div",10),o.EFF(1),o.k0s()),2&e){const e=o.XpG(2).$implicit;o.R7$(),o.SpI(" ",e.otherProductOverrides.supportingText," ")}}function D(e,t){var i;if(1&e&&(o.j41(0,"a",8),o.nrm(1,"i"),o.j41(2,"div"),o.EFF(3),o.DNE(4,T,2,1,"div",9),o.k0s()()),2&e){const e=o.XpG().$implicit;o.Y8G("href",e.marketingRoute.route,o.B4B),o.R7$(),o.HbH(o.VkB("bwi bwi-fw ",e.icon," tw-mt-1 tw-mx-1")),o.R7$(2),o.SpI(" ",null!==(i=null==e.otherProductOverrides?null:e.otherProductOverrides.name)&&void 0!==i?i:e.name," "),o.R7$(),o.Y8G("ngIf",null==e.otherProductOverrides?null:e.otherProductOverrides.supportingText)}}function P(e,t){if(1&e&&(o.j41(0,"div",10),o.EFF(1),o.k0s()),2&e){const e=o.XpG(2).$implicit;o.R7$(),o.SpI(" ",e.otherProductOverrides.supportingText," ")}}function M(e,t){var i;if(1&e&&(o.j41(0,"a",11),o.nrm(1,"i"),o.j41(2,"div"),o.EFF(3),o.DNE(4,P,2,1,"div",9),o.k0s()()),2&e){const e=o.XpG().$implicit;o.Y8G("routerLink",e.marketingRoute.route),o.R7$(),o.HbH(o.VkB("bwi bwi-fw ",e.icon," tw-mt-1 tw-mx-1")),o.R7$(2),o.SpI(" ",null!==(i=null==e.otherProductOverrides?null:e.otherProductOverrides.name)&&void 0!==i?i:e.name," "),o.R7$(),o.Y8G("ngIf",null==e.otherProductOverrides?null:e.otherProductOverrides.supportingText)}}function x(e,t){if(1&e&&(o.qex(0),o.j41(1,"div",5),o.DNE(2,D,5,6,"a",6)(3,M,5,6,"a",7),o.k0s(),o.bVm()),2&e){const e=t.$implicit;o.R7$(2),o.Y8G("ngIf",e.marketingRoute.external),o.R7$(),o.Y8G("ngIf",!e.marketingRoute.external)}}function V(e,t){if(1&e&&(o.j41(0,"section",0)(1,"span",3),o.EFF(2),o.nI1(3,"i18n"),o.k0s(),o.DNE(4,x,4,2,"ng-container",4),o.k0s()),2&e){o.XpG();const e=o.r8f(5);o.R7$(2),o.JRh(o.bMT(3,2,"moreFromBitwarden")),o.R7$(2),o.Y8G("ngForOf",e)}}class G{constructor(e){this.productSwitcherService=e,this.shouldShowPremiumUpgradeButton$=this.productSwitcherService.shouldShowPremiumUpgradeButton$,this.accessibleProducts$=this.productSwitcherService.products$.pipe((0,l.T)(e=>{var t;return null!==(t=e.bento)&&void 0!==t?t:[]})),this.moreProducts$=this.productSwitcherService.products$.pipe((0,l.T)(e=>{var t;return null!==(t=e.other)&&void 0!==t?t:[]}),(0,l.T)(e=>e.sort(e=>"Organizations"===e.name?-1:1)))}}G.ɵfac=function(e){return new(e||G)(o.rXU(c.Y))},G.ɵcmp=o.VBU({type:G,selectors:[["navigation-product-switcher"]],standalone:!1,decls:8,vars:11,consts:[[1,"tw-mt-2","tw-flex","tw-w-full","tw-flex-col","tw-gap-2","tw-border-0"],["focusAfterNavTarget","body",3,"icon","text","route","forceActiveStyles",4,"ngFor","ngForOf"],["focusAfterNavTarget","body",3,"icon","text","route","forceActiveStyles"],[1,"tw-text-xs","!tw-text-fg-nav","tw-p-2","tw-pb-0"],[4,"ngFor","ngForOf"],[1,"tw-ps-2","tw-pe-2"],["target","_blank","rel","noreferrer","class","tw-flex tw-px-3 tw-py-2 tw-rounded-md tw-font-medium !tw-text-fg-nav !tw-no-underline hover:tw-bg-hover-contrast [&>:not(.bwi)]:hover:tw-underline",3,"href",4,"ngIf"],["rel","noreferrer","class","tw-flex tw-px-3 tw-py-2 tw-rounded-md tw-font-medium !tw-text-fg-nav !tw-no-underline hover:tw-bg-hover-contrast [&>:not(.bwi)]:hover:tw-underline",3,"routerLink",4,"ngIf"],["target","_blank","rel","noreferrer",1,"tw-flex","tw-px-3","tw-py-2","tw-rounded-md","tw-font-medium","!tw-text-fg-nav","!tw-no-underline","hover:tw-bg-hover-contrast","[&>:not(.bwi)]:hover:tw-underline",3,"href"],["class","tw-text-xs tw-font-normal",4,"ngIf"],[1,"tw-text-xs","tw-font-normal"],["rel","noreferrer",1,"tw-flex","tw-px-3","tw-py-2","tw-rounded-md","tw-font-medium","!tw-text-fg-nav","!tw-no-underline","hover:tw-bg-hover-contrast","[&>:not(.bwi)]:hover:tw-underline",3,"routerLink"]],template:function(e,t){if(1&e&&(o.SS7(0),o.nI1(1,"async"),o.nVh(2,R,2,1),o.nVh(3,F,1,0,"app-upgrade-nav-button"),o.nI1(4,"async"),o.SS7(5),o.nI1(6,"async"),o.nVh(7,V,5,4,"section",0)),2&e){const e=o.bH3(o.bMT(1,3,t.accessibleProducts$));o.R7$(2),o.vxM(e&&e.length>1?2:-1),o.R7$(),o.vxM(o.bMT(4,6,t.shouldShowPremiumUpgradeButton$)?3:-1),o.R7$(2);const i=o.bH3(o.bMT(6,8,t.moreProducts$));o.R7$(2),o.vxM(i&&i.length>0?7:-1)}},dependencies:[d.Sq,d.bT,u.Wk,h.K,A.u,S,d.Jj,Q.$],encapsulation:2});class U{constructor(){this.variant=(0,n.hFB)("primary")}}U.ɵfac=function(e){return new(e||U)},U.ɵcmp=o.VBU({type:U,selectors:[["app-side-nav"]],inputs:{variant:[1,"variant"]},ngContentSelectors:["*"],decls:4,vars:1,consts:[[3,"variant"],["slot","product-switcher"]],template:function(e,t){1&e&&(o.NAR(),o.j41(0,"bit-side-nav",0),o.SdG(1),o.qex(2,1),o.nrm(3,"navigation-product-switcher"),o.bVm(),o.k0s()),2&e&&o.Y8G("variant",t.variant())},dependencies:[r.f,a.K,s.V,G],encapsulation:2,changeDetection:0})},25065(e,t,i){"use strict";i.d(t,{G:()=>n.G});var n=i(57768)},57768(e,t,i){"use strict";i.d(t,{G:()=>M});var n=i(49856),r=i(46758),s=i(84210),o=i(84522),a=i(94735),l=i(37579),c=i(79703),d=i(14041),u=i(11217);class h{}h.ɵfac=function(e){return new(e||h)},h.ɵmod=d.$C({type:h}),h.ɵinj=u.G2t({});var A=i(639),p=i(29029),g=i(80351),v=i(47135),m=i(81573),f=i(26411),y=i(22191),b=i(55807),C=i(45383),I=i(26477),w=i(90647),B=i(61465),E=i(59525),S=i(50060),Q=i(8297),k=i(88832),R=i(47659),F=i(39509),T=i(92697),D=i(75583),P=i(8433);class M{}M.ɵfac=function(e){return new(e||M)},M.ɵmod=d.$C({type:M}),M.ɵinj=u.G2t({providers:[r.vh],imports:[r.MD,n.ad,s.YN,s.X1,o.iI,a.p,l.C,c.m,h,A.E,p.t,g.j,v.q,m.P,f.L,y.Q,b.o,C.Z,I.V,w.M,B.i,E.s,S.a,Q.K,k.n,R.b,F.j,T.E,D.E,r.MD,n.ad,s.YN,s.X1,o.iI,a.p,l.C,c.m,h,A.E,p.t,g.j,v.q,m.P,f.L,y.Q,b.o,C.Z,I.V,w.M,B.i,E.s,Q.K,P.p,R.b,F.j,T.E,D.E]})},85071(e,t,i){"use strict";i.d(t,{_:()=>c});var n=i(11217),r=i(73366),s=i(66316),o=i(84330),a=i(65320),l=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class c{constructor(){this.dialogService=(0,n.WQX)(s.o)}open(e){return l(this,void 0,void 0,function*(){const t=a.G.open(this.dialogService,{data:e});return(yield(0,r.s)(t.closed))===o.f$.Saved?o.k1.Saved:o.k1.Canceled})}}c.ɵfac=function(e){return new(e||c)},c.ɵprov=n.jDH({token:c,factory:c.ɵfac})},65320(e,t,i){"use strict";i.d(t,{G:()=>v});var n=i(2096),r=i(88744),s=i(84330),o=i(25065),a=i(14041),l=i(44075),c=i(26657),d=i(56898),u=i(7730),h=i(45635),A=i(67311),p=i(25740),g=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class v{constructor(e,t){this.params=e,this.dialogRef=t}onCollectionAssign(e){return g(this,void 0,void 0,function*(){yield this.dialogRef.close(e)})}static open(e,t){return e.open(v,t)}}v.ɵfac=function(e){return new(e||v)(a.rXU(r.Qs),a.rXU(l.ce))},v.ɵcmp=a.VBU({type:v,selectors:[["ng-component"]],decls:19,vars:20,consts:[["assignSubmitButton",""],["dialogSize","large"],["bitDialogTitle",""],[1,"tw-text-sm","tw-normal-case","tw-text-muted"],["bitDialogContent",""],[3,"onCollectionAssign","editableItemCountChange","params","submitBtn"],["bitDialogFooter",""],["form","assign_collections_form","type","submit","bitButton","","bitFormButton","","buttonType","primary"],["type","button","bitButton","","buttonType","secondary","bitDialogClose",""]],template:function(e,t){if(1&e&&(a.j41(0,"bit-dialog",1)(1,"span",2),a.EFF(2),a.nI1(3,"i18n"),a.j41(4,"span",3),a.EFF(5),a.nI1(6,"i18n"),a.nI1(7,"i18n"),a.nI1(8,"pluralize"),a.k0s()(),a.j41(9,"div",4)(10,"assign-collections",5),a.bIt("onCollectionAssign",function(e){return t.onCollectionAssign(e)})("editableItemCountChange",function(e){return t.editableItemCount=e}),a.k0s()(),a.qex(11,6),a.j41(12,"button",7,0),a.EFF(14),a.nI1(15,"i18n"),a.k0s(),a.j41(16,"button",8),a.EFF(17),a.nI1(18,"i18n"),a.k0s(),a.bVm(),a.k0s()),2&e){const e=a.sdS(13);a.R7$(2),a.SpI(" ",a.bMT(3,6,"assignToCollections")," "),a.R7$(3),a.SpI(" ",a.brH(8,12,t.editableItemCount,a.bMT(6,8,"item"),a.bMT(7,10,"items"))," "),a.R7$(5),a.Y8G("params",t.params)("submitBtn",e),a.R7$(4),a.SpI(" ",a.bMT(15,16,"assign")," "),a.R7$(3),a.SpI(" ",a.bMT(18,18,"cancel")," ")}},dependencies:[o.G,c.$,d.Q,u.I,h.m,A.hJ,s.Gc,p.$,n.n],encapsulation:2})},9459(e,t,i){"use strict";i.d(t,{G:()=>n.G});var n=i(65320)},28209(e,t,i){"use strict";i.d(t,{Q:()=>n});const n=[{id:"importData",titleKey:"coachmarkImportTitle",descriptionKey:"coachmarkImportDescription",position:"right-center",learnMoreUrl:"https://bitwarden.com/help/import-data/",route:"/tools/import"},{id:"addItem",titleKey:"coachmarkAddItemTitle",descriptionKey:"coachmarkAddItemDescription",position:"below-center",learnMoreUrl:"https://bitwarden.com/help/managing-items/",route:"/vault"},{id:"shareWithCollections",titleKey:"coachmarkShareWithCollectionsTitle",descriptionKey:"coachmarkShareWithCollectionsDescription",position:"right-center",learnMoreUrl:"https://bitwarden.com/help/about-collections/",requiresOrganization:!0,route:"/vault"},{id:"monitorSecurity",titleKey:"coachmarkMonitorSecurityTitle",descriptionKey:"coachmarkMonitorSecurityDescription",position:"right-center",learnMoreUrl:"https://bitwarden.com/help/reports/",route:"/reports"}]},50046(e,t,i){"use strict";i.d(t,{n:()=>b});var n=i(46758),r=i(24590),s=i(11217),o=i(62044),a=i(29029),l=i(26477),c=i(79783),d=i(75583),u=i(36801),h=i(7243),A=i(14041),p=i(56898),g=i(57178);class v{}v.ɵfac=function(e){return new(e||v)},v.ɵcmp=A.VBU({type:v,selectors:[["bit-popover-footer"]],ngContentSelectors:["*"],decls:1,vars:0,template:function(e,t){1&e&&(A.NAR(),A.SdG(0))},encapsulation:2,changeDetection:0});var m=i(58806);function f(e,t){1&e&&(A.j41(0,"a",2),A.EFF(1),A.nI1(2,"i18n"),A.nrm(3,"i",8),A.k0s()),2&e&&(A.Y8G("href",t,A.B4B),A.R7$(),A.SpI(" ",A.bMT(2,2,"learnMore")," "))}function y(e,t){if(1&e){const e=A.RV6();A.j41(0,"button",9),A.bIt("click",function(){s.eBV(e);const t=A.XpG();return s.Njj(t.service.previousStep())}),A.EFF(1),A.nI1(2,"i18n"),A.k0s()}2&e&&(A.R7$(),A.SpI(" ",A.bMT(2,1,"back")," "))}class b{constructor(){this.stepId=r.hFB.required(),this.popover=r.ebz.required(o.r),this.service=(0,s.WQX)(h.T)}}b.ɵfac=function(e){return new(e||b)},b.ɵcmp=A.VBU({type:b,selectors:[["app-coachmark"]],viewQuery:function(e,t){1&e&&A.wEZ(t.popover,o.r,5),2&e&&A.NyB()},inputs:{stepId:[1,"stepId"]},exportAs:["coachmark"],decls:14,vars:14,consts:[[3,"closed","title"],["bitTypography","body2",1,"tw-mb-3","tw-text-fg-body"],["bitLink","","linkType","primary","target","_blank","rel","noopener noreferrer",1,"tw-mb-3","tw-flex","tw-items-center","tw-gap-1",3,"href"],[1,"tw-flex","tw-w-full","tw-items-center","tw-justify-between"],["bitTypography","body2",1,"tw-text-muted"],[1,"tw-flex","tw-gap-2"],["bitButton","","buttonType","secondary","type","button"],["bitButton","","buttonType","primary","type","button",3,"click"],["aria-hidden","true",1,"bwi","bwi-external-link","tw-text-sm"],["bitButton","","buttonType","secondary","type","button",3,"click"]],template:function(e,t){if(1&e&&(A.j41(0,"bit-popover",0),A.bIt("closed",function(){return t.service.completeTour()}),A.j41(1,"p",1),A.EFF(2),A.k0s(),A.nVh(3,f,4,4,"a",2),A.j41(4,"bit-popover-footer",3)(5,"span",4),A.EFF(6),A.nI1(7,"i18n"),A.k0s(),A.j41(8,"div",5),A.nVh(9,y,3,3,"button",6),A.j41(10,"button",7),A.bIt("click",function(){return t.service.nextStep()}),A.EFF(11),A.nI1(12,"i18n"),A.nI1(13,"i18n"),A.k0s()()()()),2&e){let e;A.Y8G("title",t.service.getStepTitle(t.stepId())),A.R7$(2),A.SpI(" ",t.service.getStepDescription(t.stepId())," "),A.R7$(),A.vxM((e=t.service.getStepLearnMoreUrl(t.stepId()))?3:-1,e),A.R7$(3),A.SpI(" ",A.brH(7,6,"coachmarkStepsIndicator",t.service.currentStepNumber(),t.service.totalSteps())," "),A.R7$(3),A.vxM(t.service.currentStepNumber()>1?9:-1),A.R7$(2),A.SpI(" ",t.service.currentStepNumber()===t.service.totalSteps()?A.bMT(12,10,"close"):A.bMT(13,12,"next")," ")}},dependencies:[n.MD,a.t,p.Q,l.V,g.g,c.k,o.r,v,d.E,m.r,u.$Z],encapsulation:2,changeDetection:0})},7243(e,t,i){"use strict";i.d(t,{T:()=>v});var n=i(11217),r=i(63477),s=i(68108),o=i(69783),a=i(67553),l=i(31066),c=i(28209),d=i(35500),u=i(50700),h=i(26983),A=i(1601),p=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const g=new l.Ok(l.b4,"coachmarkTourCompleted",{deserializer:e=>null!=e&&e,clearOn:[]});class v{constructor(e,t,i,s,o,a){this.accountService=e,this.organizationService=t,this.stateProvider=i,this.i18nService=s,this.router=o,this.configService=a,this.activeStepId=(0,n.vPA)(null),this.currentStepNumber=(0,r.EW)(()=>{const e=this.activeStepId();if(!e)return 0;const t=this.applicableSteps().findIndex(t=>t.id===e);return t>=0?t+1:0}),this.totalSteps=(0,r.EW)(()=>this.applicableSteps().length),this.isRunning=(0,r.EW)(()=>null!==this.activeStepId()),this.applicableSteps=(0,n.vPA)([])}getStepConfig(e){return c.Q.find(t=>t.id===e)}getStepTitle(e){const t=this.getStepConfig(e);return t?this.i18nService.t(t.titleKey):""}getStepDescription(e){const t=this.getStepConfig(e);return t?this.i18nService.t(t.descriptionKey):""}getStepLearnMoreUrl(e){const t=this.getStepConfig(e);return null==t?void 0:t.learnMoreUrl}getStepPosition(e){const t=this.getStepConfig(e);return null==t?void 0:t.position}startTour(){return p(this,void 0,void 0,function*(){if(this.isRunning())return;const e=yield(0,s._)(this.configService.serverSettings$);if(null==e?void 0:e.suppressOnboardingInterstitials)return;const t=yield(0,s._)(this.accountService.activeAccount$);if(!t)return;if(yield(0,s._)(this.stateProvider.getUserState$(g,t.id).pipe((0,o.T)(e=>null!=e&&e))))return;const i=yield(0,s._)(this.organizationService.hasOrganizations(t.id)),n=c.Q.filter(e=>!e.requiresOrganization||i);0!==n.length&&(this.applicableSteps.set(n),yield this.navigateToStep(n[0]))})}navigateToStep(e){return p(this,void 0,void 0,function*(){e.route&&(yield this.router.navigate([e.route]),yield new Promise(e=>setTimeout(e,100))),this.activeStepId.set(e.id)})}nextStep(){return p(this,void 0,void 0,function*(){if(!this.isRunning())return;const e=this.applicableSteps(),t=e.findIndex(e=>e.id===this.activeStepId());t>=e.length-1?yield this.completeTour():yield this.navigateToStep(e[t+1])})}previousStep(){return p(this,void 0,void 0,function*(){if(!this.isRunning())return;const e=this.applicableSteps(),t=e.findIndex(e=>e.id===this.activeStepId());t>0&&(yield this.navigateToStep(e[t-1]))})}completeTour(){return p(this,void 0,void 0,function*(){this.activeStepId.set(null),this.applicableSteps.set([]);const e=yield(0,s._)(this.accountService.activeAccount$);e&&(yield this.stateProvider.setUserState(g,!0,e.id)),yield this.router.navigate(["/vault"])})}}v.ɵfac=function(e){return new(e||v)(n.KVO(d.D),n.KVO(a.PV),n.KVO(l.v2),n.KVO(u.W),n.KVO(h.Ix),n.KVO(A.w))},v.ɵprov=n.jDH({token:v,factory:v.ɵfac,providedIn:"root"})},15661(e,t,i){"use strict";i.d(t,{Tu:()=>n.T,nk:()=>r.n});var n=i(7243),r=i(50046);i(28209)},85523(e,t,i){"use strict";i.d(t,{O6:()=>j,W_:()=>Y});var n=i(4807),r=i(11217),s=i(92128),o=i(72135),a=i(83604),l=i(16385),c=i(69783),d=i(34949),u=i(191),h=i(14848),A=i(82468),p=i(11979),g=i(66983),v=i(61325),m=i(55542),f=i(84330),y=i(45980),b=i(14041),C=i(1601);function I(e,t){if(1&e&&(b.j41(0,"th",14),b.EFF(1),b.nI1(2,"i18n"),b.k0s()),2&e){const e=b.XpG();b.HbH(e.showExtraColumn?"tw-w-3/5":"tw-w-full"),b.Y8G("fn",e.sortByName),b.R7$(),b.SpI(" ",b.bMT(2,4,"name")," ")}}function w(e,t){if(1&e&&(b.j41(0,"th",15),b.EFF(1),b.nI1(2,"i18n"),b.k0s()),2&e){const e=b.XpG();b.HbH(e.showExtraColumn?"tw-w-3/5":"tw-w-full"),b.R7$(),b.SpI(" ",b.bMT(2,3,"name")," ")}}function B(e,t){1&e&&(b.j41(0,"th",8),b.EFF(1),b.nI1(2,"i18n"),b.k0s()),2&e&&(b.R7$(),b.SpI(" ",b.bMT(2,1,"owner")," "))}function E(e,t){1&e&&(b.j41(0,"th",9),b.EFF(1),b.nI1(2,"i18n"),b.k0s()),2&e&&(b.R7$(),b.JRh(b.bMT(2,1,"collections")))}function S(e,t){if(1&e&&(b.j41(0,"th",10),b.EFF(1),b.nI1(2,"i18n"),b.k0s()),2&e){const e=b.XpG();b.Y8G("fn",e.sortByGroups),b.R7$(),b.SpI(" ",b.bMT(2,2,"groups")," ")}}function Q(e,t){if(1&e&&(b.j41(0,"th",11),b.EFF(1),b.nI1(2,"i18n"),b.k0s()),2&e){const e=b.XpG();b.Y8G("fn",e.sortByPermissions),b.R7$(),b.SpI(" ",b.bMT(2,2,"permission")," ")}}function k(e,t){if(1&e){const e=b.RV6();b.j41(0,"button",19),b.bIt("click",function(){r.eBV(e);const t=b.XpG(2);return r.Njj(t.bulkMoveToFolder())}),b.nrm(1,"i",20),b.EFF(2),b.nI1(3,"i18n"),b.k0s()}2&e&&(b.R7$(2),b.SpI(" ",b.bMT(3,1,"addToFolder")," "))}function R(e,t){if(1&e){const e=b.RV6();b.j41(0,"button",19),b.bIt("click",function(){r.eBV(e);const t=b.XpG(2);return r.Njj(t.bulkEditCollectionAccess())}),b.nrm(1,"i",21),b.EFF(2),b.nI1(3,"i18n"),b.k0s()}2&e&&(b.R7$(2),b.SpI(" ",b.bMT(3,1,"editAccess")," "))}function F(e,t){if(1&e){const e=b.RV6();b.j41(0,"button",19),b.bIt("click",function(){r.eBV(e);const t=b.XpG(2);return r.Njj(t.assignToCollections())}),b.nrm(1,"i",22),b.EFF(2),b.nI1(3,"i18n"),b.k0s()}2&e&&(b.R7$(2),b.SpI(" ",b.bMT(3,1,"assignToCollections")," "))}function T(e,t){if(1&e){const e=b.RV6();b.j41(0,"button",19),b.bIt("click",function(){r.eBV(e);const t=b.XpG(2);return r.Njj(t.bulkArchive())}),b.nrm(1,"i",23),b.EFF(2),b.nI1(3,"i18n"),b.k0s()}2&e&&(b.R7$(2),b.SpI(" ",b.bMT(3,1,"archiveVerb")," "))}function D(e,t){if(1&e){const e=b.RV6();b.j41(0,"button",19),b.bIt("click",function(){r.eBV(e);const t=b.XpG(2);return r.Njj(t.bulkUnarchive())}),b.nrm(1,"i",24),b.EFF(2),b.nI1(3,"i18n"),b.k0s()}2&e&&(b.R7$(2),b.SpI(" ",b.bMT(3,1,"unArchive")," "))}function P(e,t){if(1&e){const e=b.RV6();b.j41(0,"button",19),b.bIt("click",function(){r.eBV(e);const t=b.XpG(2);return r.Njj(t.bulkRestore())}),b.nrm(1,"i",25),b.EFF(2),b.nI1(3,"i18n"),b.k0s()}2&e&&(b.R7$(2),b.SpI(" ",b.bMT(3,1,"restoreSelected")," "))}function M(e,t){if(1&e){const e=b.RV6();b.j41(0,"button",26),b.bIt("click",function(){r.eBV(e);const t=b.XpG(2);return r.Njj(t.bulkDelete())}),b.nrm(1,"bit-icon",27),b.EFF(2),b.nI1(3,"i18n"),b.k0s()}if(2&e){const e=b.XpG(2);b.R7$(2),b.SpI(" ",b.bMT(3,1,e.showBulkTrashOptions?"permanentlyDeleteSelected":"delete")," ")}}function x(e,t){if(1&e&&(b.SS7(0),b.nI1(1,"async"),b.nrm(2,"button",16),b.nI1(3,"i18n"),b.nI1(4,"i18n"),b.j41(5,"bit-menu",null,0),b.nVh(7,k,4,3,"button",17),b.nVh(8,R,4,3,"button",17),b.nVh(9,F,4,3,"button",17),b.nVh(10,T,4,3,"button",17),b.nVh(11,D,4,3,"button",17),b.nVh(12,P,4,3,"button",17),b.nI1(13,"async"),b.nVh(14,M,4,3,"button",18),b.nI1(15,"async"),b.k0s()),2&e){const e=b.sdS(6),t=b.XpG(),i=b.bMT(1,12,t.disableMenu$);b.R7$(2),b.Y8G("label",b.mNQ(b.bMT(3,14,"options")))("disabled",t.disabled||t.isEmpty||i)("bitMenuTriggerFor",e),b.BMQ("title",i?b.bMT(4,16,"missingPermissions"):""),b.R7$(5),b.vxM(t.bulkMoveAllowed?7:-1),b.R7$(),b.vxM(t.showAdminActions&&t.showBulkEditCollectionAccess?8:-1),b.R7$(),b.vxM((t.showAdminActions||t.showAssignToCollections())&&t.bulkAssignToCollectionsAllowed?9:-1),b.R7$(),b.vxM(t.bulkArchiveAllowed?10:-1),b.R7$(),b.vxM(t.bulkUnarchiveAllowed?11:-1),b.R7$(),b.vxM(b.bMT(13,18,t.canRestoreSelected$)?12:-1),b.R7$(2),b.vxM(b.bMT(15,20,t.canDeleteSelected$)?14:-1)}}function V(e,t){1&e&&(b.EFF(0),b.nI1(1,"i18n")),2&e&&b.SpI(" ",b.bMT(1,1,"options")," ")}function G(e,t){if(1&e){const e=b.RV6();b.j41(0,"tr",31),b.bIt("checkedToggled",function(){r.eBV(e);const t=b.XpG().$implicit,i=b.XpG(2);return r.Njj(i.selection.toggle(t))})("onEvent",function(t){r.eBV(e);const i=b.XpG(3);return r.Njj(i.event(t))}),b.k0s()}if(2&e){const e=b.XpG().$implicit,t=b.XpG(2);b.Y8G("disabled",t.disabled)("collection",e.collection)("showOwner",t.showOwner)("showCollections",t.showCollections)("showGroups",t.showGroups)("organizations",t.allOrganizations)("showPermissionsColumn",t.showPermissionsColumn)("groups",t.allGroups)("canDeleteCollection",t.canDeleteCollection(e.collection))("canEditCollection",t.canEditCollection(e.collection))("canViewCollectionInfo",t.canViewCollectionInfo(e.collection))("checked",t.selection.isSelected(e))}}function U(e,t){if(1&e){const e=b.RV6();b.j41(0,"tr",32),b.nI1(1,"async"),b.nI1(2,"async"),b.nI1(3,"async"),b.bIt("checkedToggled",function(){r.eBV(e);const t=b.XpG().$implicit,i=b.XpG(2);return r.Njj(i.selection.toggle(t))})("onEvent",function(t){r.eBV(e);const i=b.XpG(3);return r.Njj(i.event(t))}),b.k0s()}if(2&e){const e=b.XpG().$implicit,t=b.XpG(2);b.Y8G("disabled",t.disabled)("cipher",e.cipher)("showOwner",t.showOwner)("showCollections",t.showCollections)("showGroups",t.showGroups)("showPremiumFeatures",t.showPremiumFeatures)("useEvents",t.useEvents)("viewingOrgVault",t.viewingOrgVault)("cloneable",b.bMT(1,19,t.canClone$(e)))("organizations",t.allOrganizations)("collections",t.allCollections)("checked",t.selection.isSelected(e))("canEditCipher",t.canEditCipher(e.cipher))("canAssignCollections",t.canAssignCollections(e.cipher))("canManageCollection",t.canManageCollection(e.cipher))("canDeleteCipher",b.bMT(2,21,t.cipherAuthorizationService.canDeleteCipher$(e.cipher,t.showAdminActions)))("canRestoreCipher",b.bMT(3,23,t.cipherAuthorizationService.canRestoreCipher$(e.cipher,t.showAdminActions)))("userCanArchive",t.userCanArchive)("enforceOrgDataOwnershipPolicy",t.enforceOrgDataOwnershipPolicy)}}function O(e,t){if(1&e&&(b.qex(0),b.nVh(1,G,1,12,"tr",29),b.nVh(2,U,4,25,"tr",30),b.bVm()),2&e){const e=t.$implicit,i=b.XpG(2);b.R7$(),b.vxM(e.collection?1:-1),b.R7$(),b.vxM(e.cipher&&(!i.addAccessToggle||i.addAccessToggle&&1!==i.addAccessStatus)?2:-1)}}function N(e,t){if(1&e&&b.DNE(0,O,3,2,"ng-container",28),2&e){const e=t.$implicit;b.Y8G("cdkVirtualForOf",e)("cdkVirtualForTemplateCacheSize",0)}}const j="tw-h-[76.5px]";class Y{get ciphers(){return this._ciphers}set ciphers(e){this._ciphers=null!=e?e:[],this.refreshItems()}get collections(){return this._collections}set collections(e){this._collections=null!=e?e:[],this.refreshItems()}get selection(){var e,t;return null!==(t=null===(e=this.batchBarService)||void 0===e?void 0:e.selection)&&void 0!==t?t:this._localSelection}constructor(e,t,i,p){this.cipherAuthorizationService=e,this.restrictedItemTypesService=t,this.routedVaultFilterService=i,this.configService=p,this.RowHeight=76.5,this.showAdminActions=!1,this.allOrganizations=[],this.allCollections=[],this.allGroups=[],this.showBulkEditCollectionAccess=!1,this.showBulkAddToCollections=!1,this.showPermissionsColumn=!1,this._ciphers=[],this._collections=[],this.onEvent=new r.bkB,this.batchBarService=(0,r.WQX)(f.pG,{optional:!0}),this.editableItems=[],this.dataSource=new m.s,this._localSelection=new n.C(!0,[],!0),this.restrictedTypes=[],this.sortByName=(e,t,i)=>{const n=this.prioritizeCollections(e,t);return 0!==n?n:this.compareNames(e,t)},this.sortByGroups=(e,t,i)=>{if(!(e.collection instanceof h.nb||t.collection instanceof h.nb))return 0;const n=e=>e.groups.length>0?e.groups.map(e=>this.getGroupName(e.id)||"").sort()[0]:null,r=this.prioritizeCollections(e,t);if(0!==r)return r;const s=n(e.collection),o=n(t.collection);return null===s?1:null===o?-1:s.localeCompare(o)},this.sortByPermissions=(e,t,i)=>{const n=e=>{var t;const i=e.collection?this.getCollectionPermission(e.collection):this.getCipherPermission(e.cipher);return null!==(t={[y.aF.Manage]:5,[y.aF.Edit]:4,[y.aF.EditExceptPass]:3,[y.aF.View]:2,[y.aF.ViewExceptPass]:1,NoAccess:0}[i])&&void 0!==t?t:-1},r=this.prioritizeCollections(e,t);if(0!==r)return r;const s=n(e),o=n(t);return s!==o?s-o:this.compareNames(e,t)},this.showCopyAndLaunchActions$=this.configService.getFeatureFlag$(A.TO.PM28091_AddCopyAndQuickLaunchActions),this.canDeleteSelected$=this.selection.changed.pipe((0,d.Z)(null),(0,u.n)(()=>{const t=this.selection.selected.filter(e=>e.cipher).map(e=>e.cipher);if(0===this.selection.selected.length)return(0,a.of)(!0);const i=t.map(t=>e.canDeleteCipher$(t,this.showAdminActions)),n=this.selection.selected.filter(e=>e.collection).every(e=>e.collection&&this.canDeleteCollection(e.collection));return(0,o.z)(i).pipe((0,c.T)(e=>e.every(e=>e)&&n))})),this.restrictedItemTypesService.restricted$.pipe((0,s.pQ)()).subscribe(e=>{this.restrictedTypes=e,this.refreshItems()}),this.canRestoreSelected$=this.selection.changed.pipe((0,d.Z)(null),(0,u.n)(()=>{const t=this.selection.selected.filter(e=>e.cipher).map(e=>e.cipher);if(0===this.selection.selected.length)return(0,a.of)(!0);const i=t.map(t=>e.canRestoreCipher$(t,this.showAdminActions));return(0,o.z)(i).pipe((0,c.T)(e=>e.every(e=>e)))}),(0,c.T)(e=>e&&this.showBulkTrashOptions)),this.disableMenu$=this.canDeleteSelected$.pipe((0,c.T)(e=>!(this.bulkMoveAllowed||this.showAssignToCollections()||e||this.showBulkEditCollectionAccess))),this.batchBarService||this.routedVaultFilterService.filter$.pipe((0,l.F)((e,t)=>e.organizationId===t.organizationId&&e.collectionId===t.collectionId&&e.folderId===t.folderId&&e.type===t.type&&e.organizationIdParamType===t.organizationIdParamType),(0,s.pQ)()).subscribe(()=>{this.clearSelection()})}clearSelection(){this.selection.clear()}get showExtraColumn(){return this.showCollections||this.showGroups||this.showOwner}get isAllSelected(){return this.getSortedEditableItems().slice(0,500).every(e=>this.selection.isSelected(e))}get isEmpty(){return 0===this.dataSource.data.length}get bulkMoveAllowed(){return this.showBulkMove&&0===this.selection.selected.filter(e=>e.collection).length}get bulkArchiveAllowed(){const e=this.selection.selected.filter(e=>void 0!==e.cipher);return!(0===e.length||!this.userCanArchive||this.showBulkTrashOptions)&&(this.userCanArchive&&!e.find(e=>e.cipher&&e.cipher.archivedDate))}get bulkUnarchiveAllowed(){return 0!==this.selection.selected.length&&!this.showBulkTrashOptions&&!this.selection.selected.find(e=>{var t;return!(null===(t=e.cipher)||void 0===t?void 0:t.archivedDate)})}get showDelete(){if(0===this.selection.selected.length)return!0;const e=this.hasPersonalItems(),t=this.getUniqueOrganizationIds(),i=this.selection.selected.filter(e=>e.cipher).every(({cipher:e})=>this.canManageCollection(e)),n=this.selection.selected.filter(e=>e.collection).every(e=>e.collection&&this.canDeleteCollection(e.collection)),r=i&&n;return!(!r&&(!e||t.size&&!r))}get bulkAssignToCollectionsAllowed(){return this.showBulkAddToCollections&&this.ciphers.length>0&&!this.anySelectedCiphersAreArchived}get anySelectedCiphersAreArchived(){return this.selection.selected.some(e=>e.cipher&&v.n.isArchived(e.cipher))}canEditCollection(e){if(e.id===h.I_)return!1;const t=this.allOrganizations.find(t=>t.id===e.organizationId);return e.canEdit(t)}canDeleteCollection(e){if(e.id===h.I_)return!1;const t=this.allOrganizations.find(t=>t.id===e.organizationId);return e.canDelete(t)}canViewCollectionInfo(e){const t=this.allOrganizations.find(t=>t.id===e.organizationId);return e.canViewCollectionInfo(t)}toggleAll(){if(this.isAllSelected)this.selection.clear();else{const e=this.getSortedEditableItems();this.selection.select(...e.slice(0,500))}}getSortedEditableItems(){const e=this.dataSource.sort,t=[...this.editableItems];if(!e||!e.fn)return t;const i="asc"===e.direction?1:-1;return t.sort((t,n)=>e.fn(t,n,e.direction)*i)}event(e){this.onEvent.emit(e)}bulkMoveToFolder(){this.event({type:"moveToFolder",items:this.selection.selected.filter(e=>void 0!==e.cipher).map(e=>e.cipher)})}bulkArchive(){this.event({type:"archive",items:this.selection.selected.filter(e=>void 0!==e.cipher).map(e=>e.cipher)})}bulkUnarchive(){this.event({type:"unarchive",items:this.selection.selected.filter(e=>void 0!==e.cipher).map(e=>e.cipher)})}bulkRestore(){this.event({type:"restore",items:this.selection.selected.filter(e=>void 0!==e.cipher).map(e=>e.cipher)})}bulkDelete(){this.event({type:"delete",items:this.selection.selected})}canClone$(e){return this.restrictedItemTypesService.restricted$.pipe((0,u.n)(t=>t.some(t=>t.cipherType===v.n.getType(e.cipher))?(0,a.of)(!1):this.cipherAuthorizationService.canCloneCipher$(e.cipher,this.showAdminActions)))}canEditCipher(e){if(null==e.organizationId)return!0;const t=this.allOrganizations.find(t=>t.id===e.organizationId);return(null==t?void 0:t.canEditAllCiphers)&&this.viewingOrgVault||e.edit}canAssignCollections(e){const t=this.allOrganizations.find(t=>t.id===e.organizationId),i=this.allCollections.filter(e=>!e.readOnly);return(null==t?void 0:t.canEditAllCiphers)&&this.viewingOrgVault||v.n.canAssignToCollections(e)&&i.length>0}canManageCollection(e){if(null==e.organizationId)return!0;if(this.showAdminActions){const t=this.allOrganizations.find(t=>t.id===e.organizationId);if(0===e.collectionIds.length)return!0===(null==t?void 0:t.canEditUnmanagedCollections);if((null==t?void 0:t.permissions.editAnyCollection)||(null==t?void 0:t.allowAdminAccessToAllCollectionItems)&&t.isAdmin)return!0}return this.activeCollection?!0===this.activeCollection.manage:this.allCollections.filter(t=>e.collectionIds.includes(t.id)).some(e=>e.manage)}refreshItems(){const e=this.collections.map(e=>({collection:e})),t=this.ciphers.filter(e=>!this.restrictedItemTypesService.isCipherRestricted(e,this.restrictedTypes)).map(e=>({cipher:e})),i=[].concat(e).concat(t);this.editableItems=i.filter(e=>void 0!==e.cipher&&this.canEditCipher(e.cipher)||void 0!==e.collection&&(this.canEditCollection(e.collection)||this.canDeleteCollection(e.collection))),this.dataSource.data=i}bulkEditCollectionAccess(){this.event({type:"bulkEditCollectionAccess",items:this.selection.selected.filter(e=>void 0!==e.collection).map(e=>e.collection)})}assignToCollections(){this.event({type:"assignToCollections",items:this.selection.selected.filter(e=>void 0!==e.cipher).map(e=>e.cipher)})}showAssignToCollections(){if(!this.showBulkMove)return!1;if(0===this.allOrganizations.length)return!1;if(0===this.selection.selected.length)return!1;const e=this.hasPersonalItems(),t=this.getUniqueOrganizationIds(),i=this.allCollections.some(e=>!e.readOnly);if(t.size>1)return!1;if(0===t.size&&i)return e;const[n]=t,r=this.allOrganizations.find(e=>e.id===n),s=(null==r?void 0:r.canEditAllCiphers)&&this.viewingOrgVault,o=0===this.selection.selected.filter(e=>e.collection).length;return(s||this.allCiphersHaveEditAccess())&&o&&i}compareNames(e,t){var i,n;const r=e=>{var t,i;return(null===(t=e.collection)||void 0===t?void 0:t.name)||(null===(i=e.cipher)||void 0===i?void 0:i.name)};return null!==(n=null===(i=r(e))||void 0===i?void 0:i.localeCompare(r(t)))&&void 0!==n?n:-1}prioritizeCollections(e,t){return e.collection&&!t.collection?-1:!e.collection&&t.collection?1:0}hasPersonalItems(){return this.selection.selected.some(({cipher:e})=>!(null==e?void 0:e.organizationId))}allCiphersHaveEditAccess(){return this.selection.selected.filter(({cipher:e})=>e).every(({cipher:e})=>(null==e?void 0:e.edit)&&(null==e?void 0:e.viewPassword))}getUniqueOrganizationIds(){return new Set(this.selection.selected.flatMap(e=>{var t,i;return null!==(i=null===(t=e.cipher)||void 0===t?void 0:t.organizationId)&&void 0!==i?i:[]}))}getGroupName(e){var t;return null===(t=this.allGroups.find(t=>t.id===e))||void 0===t?void 0:t.name}getCollectionPermission(e){const t=this.allOrganizations.find(t=>t.id===e.organizationId);return e.id==h.I_&&(null==t?void 0:t.canEditUnassignedCiphers)?y.aF.Edit:e.assigned?(0,y.Jh)(e):"NoAccess"}getCipherPermission(e){var t;if(!e.organizationId||0===e.collectionIds.length)return y.aF.Manage;const i=null===(t=this.allCollections)||void 0===t?void 0:t.filter(t=>{if(t.assigned)return e.collectionIds.find(e=>{if(t.id===e)return t})});if(1===(null==i?void 0:i.length))return(0,y.Jh)(i[0]);if((null==i?void 0:i.length)>0){const e=i.map(e=>(0,y.Jh)(e));return[y.aF.Manage,y.aF.Edit,y.aF.EditExceptPass,y.aF.View,y.aF.ViewExceptPass].find(t=>e.includes(t))}return"NoAccess"}}Y.ɵfac=function(e){return new(e||Y)(b.rXU(p.y),b.rXU(g.b),b.rXU(f.BR),b.rXU(C.w))},Y.ɵcmp=b.VBU({type:Y,selectors:[["app-vault-items"]],inputs:{disabled:"disabled",showOwner:"showOwner",showCollections:"showCollections",showGroups:"showGroups",useEvents:"useEvents",showPremiumFeatures:"showPremiumFeatures",showBulkMove:"showBulkMove",showBulkTrashOptions:"showBulkTrashOptions",showAdminActions:"showAdminActions",allOrganizations:"allOrganizations",allCollections:"allCollections",allGroups:"allGroups",showBulkEditCollectionAccess:"showBulkEditCollectionAccess",showBulkAddToCollections:"showBulkAddToCollections",showPermissionsColumn:"showPermissionsColumn",viewingOrgVault:"viewingOrgVault",addAccessStatus:"addAccessStatus",addAccessToggle:"addAccessToggle",activeCollection:"activeCollection",userCanArchive:"userCanArchive",enforceOrgDataOwnershipPolicy:"enforceOrgDataOwnershipPolicy",ciphers:"ciphers",collections:"collections"},outputs:{onEvent:"onEvent"},standalone:!1,decls:18,vars:17,consts:[["headerMenu",""],["bitScrollLayout","",1,"tw-transition-[padding-bottom]","tw-duration-300","tw-ease-in-out",3,"itemSize","ngClass"],["layout","fixed",3,"dataSource"],["header",""],["bitCell","","colspan","2",1,"tw-w-24","tw-whitespace-nowrap"],["type","checkbox","bitCheckbox","",3,"change","disabled","checked"],["bitCell","","bitSortable","name",3,"fn","class"],["bitCell","",3,"class"],["bitCell","",1,"tw-hidden","tw-w-2/5","lg:tw-table-cell"],["bitCell","",1,"tw-w-2/5","tw-hidden","xl:tw-table-cell"],["bitCell","","bitSortable","groups",1,"tw-hidden","tw-w-2/5","tw-pr-7","xl:tw-table-cell",3,"fn"],["bitCell","","bitSortable","permissions","default","desc",1,"tw-hidden","tw-w-2/5","tw-pr-7","lg:tw-table-cell",3,"fn"],["bitCell","",3,"ngClass"],["body",""],["bitCell","","bitSortable","name",3,"fn"],["bitCell",""],["bitIconButton","bwi-ellipsis-v","size","small","type","button",3,"disabled","bitMenuTriggerFor","label"],["type","button","bitMenuItem",""],["type","button","variant","danger","bitMenuItem",""],["type","button","bitMenuItem","",3,"click"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-folder"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-users"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-collection-shared"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-archive"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-unarchive"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-undo"],["type","button","variant","danger","bitMenuItem","",3,"click"],["fixedWidth","","name","bwi-trash","slot","start"],[4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTemplateCacheSize"],["bitRow","","appVaultCollectionRow","","alignContent","middle",3,"disabled","collection","showOwner","showCollections","showGroups","organizations","showPermissionsColumn","groups","canDeleteCollection","canEditCollection","canViewCollectionInfo","checked"],["bitRow","","appVaultCipherRow","","alignContent","middle",3,"disabled","cipher","showOwner","showCollections","showGroups","showPremiumFeatures","useEvents","viewingOrgVault","cloneable","organizations","collections","checked","canEditCipher","canAssignCollections","canManageCollection","canDeleteCipher","canRestoreCipher","userCanArchive","enforceOrgDataOwnershipPolicy"],["bitRow","","appVaultCollectionRow","","alignContent","middle",3,"checkedToggled","onEvent","disabled","collection","showOwner","showCollections","showGroups","organizations","showPermissionsColumn","groups","canDeleteCollection","canEditCollection","canViewCollectionInfo","checked"],["bitRow","","appVaultCipherRow","","alignContent","middle",3,"checkedToggled","onEvent","disabled","cipher","showOwner","showCollections","showGroups","showPremiumFeatures","useEvents","viewingOrgVault","cloneable","organizations","collections","checked","canEditCipher","canAssignCollections","canManageCollection","canDeleteCipher","canRestoreCipher","userCanArchive","enforceOrgDataOwnershipPolicy"]],template:function(e,t){1&e&&(b.j41(0,"cdk-virtual-scroll-viewport",1)(1,"bit-table",2),b.qex(2,3),b.j41(3,"tr")(4,"th",4)(5,"input",5),b.nI1(6,"i18n"),b.bIt("change",function(e){return e?t.toggleAll():null}),b.k0s()(),b.nVh(7,I,3,6,"th",6)(8,w,3,5,"th",7),b.nVh(9,B,3,3,"th",8),b.nVh(10,E,3,3,"th",9),b.nVh(11,S,3,4,"th",10),b.nVh(12,Q,3,4,"th",11),b.j41(13,"th",12),b.nI1(14,"async"),b.nVh(15,x,16,22)(16,V,2,3),b.k0s()(),b.bVm(),b.DNE(17,N,1,2,"ng-template",13),b.k0s()()),2&e&&(b.Y8G("itemSize",t.RowHeight)("ngClass",null!=t.batchBarService&&t.batchBarService.barVisible()?"tw-pb-[7.5rem]":"tw-pb-8"),b.R7$(),b.Y8G("dataSource",t.dataSource),b.R7$(4),b.Y8G("disabled",t.disabled||t.isEmpty)("checked",t.selection.hasValue()&&t.isAllSelected),b.BMQ("aria-label",b.bMT(6,13,"selectAll")),b.R7$(2),b.vxM(t.showAdminActions?7:8),b.R7$(2),b.vxM(t.showOwner?9:-1),b.R7$(),b.vxM(t.showCollections?10:-1),b.R7$(),b.vxM(t.showGroups?11:-1),b.R7$(),b.vxM(t.showPermissionsColumn?12:-1),b.R7$(),b.Y8G("ngClass",(b.bMT(14,15,t.showCopyAndLaunchActions$)?"tw-w-28":null!=t.batchBarService&&t.batchBarService.enabled()?"tw-w-24":"tw-w-12")+" tw-text-right"),b.R7$(2),b.vxM(null!=t.batchBarService&&t.batchBarService.enabled()?16:15))},encapsulation:2})},93817(e,t,i){"use strict";i.d(t,{l:()=>st});var n=i(15639),r=i(46758),s=i(84522),o=i(47659),a=i(55807),l=i(84330),c=i(20798),d=i(79303),u=i(57768),h=i(14092),A=i(10840),p=i(11217),g=i(68108),v=i(3633),m=i(82468),f=i(81356),y=i(61325),b=i(73848),C=i(45980),I=i(85523),w=i(14041),B=i(50700),E=i(35500),S=i(5556),Q=i(37115),k=i(1601),R=i(26333),F=i(47428),T=i(50352),D=i(69896),P=i(36288),M=i(58384),x=i(57178),V=i(13496),G=i(78952),U=i(32924),O=i(38410),N=i(5513),j=i(75697),Y=i(55393),X=i(69592),z=i(14551),L=i(37856),W=i(25740),K=i(55818),Z=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const H=()=>[],J=(e,t)=>({itemId:e,action:t}),q=()=>({focusAfterNav:!1});function $(e,t){if(1&e){const e=w.RV6();w.j41(0,"input",19),w.nI1(1,"i18n"),w.bIt("change",function(t){p.eBV(e);const i=w.XpG();return p.Njj(t?i.checkedToggled.next():null)}),w.k0s()}if(2&e){const e=w.XpG();w.Y8G("disabled",e.disabled||e.decryptionFailure)("checked",e.checked),w.BMQ("aria-label",w.bMT(1,3,"vaultItemSelect"))}}function _(e,t){1&e&&(w.qex(0),w.nrm(1,"i",22),w.nI1(2,"i18n"),w.j41(3,"span",21),w.EFF(4),w.nI1(5,"i18n"),w.k0s(),w.bVm()),2&e&&(w.R7$(),w.Y8G("title",w.mNQ(w.bMT(2,3,"attachmentsNeedFix"))),w.R7$(3),w.JRh(w.bMT(5,5,"attachmentsNeedFix")))}function ee(e,t){if(1&e&&(w.qex(0),w.nrm(1,"i",20),w.nI1(2,"i18n"),w.j41(3,"span",21),w.EFF(4),w.nI1(5,"i18n"),w.k0s(),w.nVh(6,_,6,7,"ng-container"),w.bVm()),2&e){const e=w.XpG();w.R7$(),w.Y8G("title",w.mNQ(w.bMT(2,4,"attachments"))),w.R7$(3),w.JRh(w.bMT(5,6,"attachments")),w.R7$(2),w.vxM(e.showFixOldAttachments?6:-1)}}function te(e,t){if(1&e&&(w.j41(0,"td",11),w.nrm(1,"app-org-badge",23),w.nI1(2,"orgNameFromId"),w.k0s()),2&e){const e=w.XpG();w.Y8G("ngClass",e.RowHeightClass),w.R7$(),w.Y8G("disabled",e.disabled)("organizationId",e.cipher.organizationId)("organizationName",w.i5U(2,4,e.cipher.organizationId,e.organizations))}}function ie(e,t){if(1&e&&w.nrm(0,"app-collection-badge",24),2&e){const e=w.XpG(2);w.Y8G("collectionIds",e.cipher.collectionIds)("collections",e.collections)}}function ne(e,t){if(1&e&&(w.j41(0,"td",12),w.nVh(1,ie,1,2,"app-collection-badge",24),w.k0s()),2&e){const e=w.XpG();w.Y8G("ngClass",e.RowHeightClass),w.R7$(),w.vxM(e.cipher.collectionIds?1:-1)}}function re(e,t){if(1&e&&w.nrm(0,"td",13),2&e){const e=w.XpG();w.Y8G("ngClass",e.RowHeightClass)}}function se(e,t){if(1&e&&(w.j41(0,"td",14)(1,"p",25),w.EFF(2),w.k0s()()),2&e){const e=w.XpG();w.Y8G("ngClass",e.RowHeightClass),w.R7$(),w.Y8G("bitTooltip",e.permissionTooltip)("title",e.permissionText),w.R7$(),w.SpI(" ",e.permissionText," ")}}function oe(e,t){if(1&e&&(w.nrm(0,"button",16),w.nI1(1,"i18n")),2&e){const e=w.XpG(),t=w.sdS(20);w.Y8G("label",w.mNQ(w.bMT(1,4,"options")))("disabled",e.disabled||!e.canManageCollection)("bitMenuTriggerFor",t)}}function ae(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",26),w.bIt("click",function(){p.eBV(e);const t=w.XpG();return p.Njj(t.deleteCipher())}),w.nrm(1,"bit-icon",27),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}if(2&e){const e=w.XpG();w.R7$(2),w.SpI(" ",w.bMT(3,1,e.isDeleted?"permanentlyDelete":"delete")," ")}}function le(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",32),w.nI1(1,"i18n"),w.bIt("click",function(){p.eBV(e);const t=w.XpG(3);return p.Njj(t.openUri(t.launchUri))}),w.k0s()}if(2&e){const e=w.XpG(3);w.Y8G("label",w.i5U(1,1,"launchWebsiteName",e.cipher.name))}}function ce(e,t){if(1&e&&(w.j41(0,"div",28),w.nVh(1,le,2,4,"button",31),w.nrm(2,"vault-item-copy-actions",6),w.k0s()),2&e){const e=w.XpG(2);w.R7$(),w.vxM(e.canLaunch?1:-1),w.R7$(),w.Y8G("cipher",e.cipher)}}function de(e,t){if(1&e&&(w.j41(0,"button",36),w.nrm(1,"i",35),w.EFF(2),w.nI1(3,"i18n"),w.k0s()),2&e){const e=w.XpG(4);w.Y8G("cipher",e.cipher),w.R7$(2),w.SpI(" ",w.bMT(3,2,"copyPassword")," ")}}function ue(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",39),w.bIt("click",function(){p.eBV(e);const t=w.XpG(4);return p.Njj(t.openUri(t.launchUri))}),w.nrm(1,"i",40),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"launch")," "))}function he(e,t){if(1&e&&(w.j41(0,"button",34),w.nrm(1,"i",35),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nVh(4,de,4,4,"button",36),w.j41(5,"button",37),w.nrm(6,"i",35),w.EFF(7),w.nI1(8,"i18n"),w.k0s(),w.nVh(9,ue,4,3,"button",38)),2&e){const e=w.XpG(3);w.Y8G("cipher",e.cipher),w.R7$(2),w.SpI(" ",w.bMT(3,6,"copyUsername")," "),w.R7$(2),w.vxM(e.cipher.viewPassword?4:-1),w.R7$(),w.Y8G("cipher",e.cipher),w.R7$(2),w.SpI(" ",w.bMT(8,8,"copyVerificationCode")," "),w.R7$(2),w.vxM(e.canLaunch?9:-1)}}function Ae(e,t){if(1&e&&(w.j41(0,"button",41),w.nrm(1,"i",35),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"button",42),w.nrm(5,"i",35),w.EFF(6),w.nI1(7,"i18n"),w.k0s()),2&e){const e=w.XpG(3);w.Y8G("cipher",e.cipher),w.R7$(2),w.SpI(" ",w.bMT(3,4,"copyNumber")," "),w.R7$(2),w.Y8G("cipher",e.cipher),w.R7$(2),w.SpI(" ",w.bMT(7,6,"copySecurityCode")," ")}}function pe(e,t){if(1&e&&(w.j41(0,"button",34),w.nrm(1,"i",35),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"button",43),w.nrm(5,"i",35),w.EFF(6),w.nI1(7,"i18n"),w.k0s(),w.j41(8,"button",44),w.nrm(9,"i",35),w.EFF(10),w.nI1(11,"i18n"),w.k0s(),w.j41(12,"button",45),w.nrm(13,"i",35),w.EFF(14),w.nI1(15,"i18n"),w.k0s()),2&e){const e=w.XpG(3);w.Y8G("cipher",e.cipher),w.R7$(2),w.SpI(" ",w.bMT(3,8,"copyUsername")," "),w.R7$(2),w.Y8G("cipher",e.cipher),w.R7$(2),w.SpI(" ",w.bMT(7,10,"copyEmail")," "),w.R7$(2),w.Y8G("cipher",e.cipher),w.R7$(2),w.SpI(" ",w.bMT(11,12,"copyPhone")," "),w.R7$(2),w.Y8G("cipher",e.cipher),w.R7$(2),w.SpI(" ",w.bMT(15,14,"copyAddress")," ")}}function ge(e,t){if(1&e&&(w.j41(0,"button",33),w.nrm(1,"i",35),w.EFF(2),w.nI1(3,"i18n"),w.k0s()),2&e){const e=w.XpG(3);w.Y8G("cipher",e.cipher),w.R7$(2),w.SpI(" ",w.bMT(3,2,"copyNote")," ")}}function ve(e,t){if(1&e&&(w.j41(0,"button",46),w.nrm(1,"bit-icon",47),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"button",48),w.nrm(5,"bit-icon",47),w.EFF(6),w.nI1(7,"i18n"),w.k0s(),w.j41(8,"button",49),w.nrm(9,"bit-icon",47),w.EFF(10),w.nI1(11,"i18n"),w.k0s(),w.j41(12,"button",50),w.nrm(13,"bit-icon",47),w.EFF(14),w.nI1(15,"i18n"),w.k0s(),w.j41(16,"button",51),w.nrm(17,"bit-icon",47),w.EFF(18),w.nI1(19,"i18n"),w.k0s(),w.j41(20,"button",52),w.nrm(21,"bit-icon",47),w.EFF(22),w.nI1(23,"i18n"),w.k0s(),w.j41(24,"button",53),w.nrm(25,"bit-icon",47),w.EFF(26),w.nI1(27,"i18n"),w.k0s()),2&e){const e=w.XpG(3);w.Y8G("cipher",e.cipher),w.R7$(2),w.SpI(" ",w.bMT(3,14,"copyNameOnAccount")," "),w.R7$(2),w.Y8G("cipher",e.cipher),w.R7$(2),w.SpI(" ",w.bMT(7,16,"copyAccountNumber")," "),w.R7$(2),w.Y8G("cipher",e.cipher),w.R7$(2),w.SpI(" ",w.bMT(11,18,"copyRoutingNumber")," "),w.R7$(2),w.Y8G("cipher",e.cipher),w.R7$(2),w.SpI(" ",w.bMT(15,20,"copyBranchNumber")," "),w.R7$(2),w.Y8G("cipher",e.cipher),w.R7$(2),w.SpI(" ",w.bMT(19,22,"copyPin")," "),w.R7$(2),w.Y8G("cipher",e.cipher),w.R7$(2),w.SpI(" ",w.bMT(23,24,"copyIban")," "),w.R7$(2),w.Y8G("cipher",e.cipher),w.R7$(2),w.SpI(" ",w.bMT(27,26,"copySwiftCode")," ")}}function me(e,t){if(1&e&&(w.j41(0,"button",54),w.nrm(1,"bit-icon",55),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"button",56),w.nrm(5,"bit-icon",55),w.EFF(6),w.nI1(7,"i18n"),w.k0s(),w.j41(8,"button",57),w.nrm(9,"bit-icon",55),w.EFF(10),w.nI1(11,"i18n"),w.k0s(),w.j41(12,"button",58),w.nrm(13,"bit-icon",55),w.EFF(14),w.nI1(15,"i18n"),w.k0s()),2&e){const e=w.XpG(3);w.Y8G("cipher",e.cipher),w.R7$(2),w.SpI(" ",w.bMT(3,8,"copyFirstName")," "),w.R7$(2),w.Y8G("cipher",e.cipher),w.R7$(2),w.SpI(" ",w.bMT(7,10,"copyLastName")," "),w.R7$(2),w.Y8G("cipher",e.cipher),w.R7$(2),w.SpI(" ",w.bMT(11,12,"copyPassportNumber")," "),w.R7$(2),w.Y8G("cipher",e.cipher),w.R7$(2),w.SpI(" ",w.bMT(15,14,"copyNationalIdentificationNumber")," ")}}function fe(e,t){if(1&e&&(w.j41(0,"button",59),w.nrm(1,"bit-icon",55),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"button",60),w.nrm(5,"bit-icon",55),w.EFF(6),w.nI1(7,"i18n"),w.k0s(),w.j41(8,"button",61),w.nrm(9,"bit-icon",55),w.EFF(10),w.nI1(11,"i18n"),w.k0s(),w.j41(12,"button",62),w.nrm(13,"bit-icon",55),w.EFF(14),w.nI1(15,"i18n"),w.k0s()),2&e){const e=w.XpG(3);w.Y8G("cipher",e.cipher),w.R7$(2),w.SpI(" ",w.bMT(3,8,"copyFirstName")," "),w.R7$(2),w.Y8G("cipher",e.cipher),w.R7$(2),w.SpI(" ",w.bMT(7,10,"copyMiddleName")," "),w.R7$(2),w.Y8G("cipher",e.cipher),w.R7$(2),w.SpI(" ",w.bMT(11,12,"copyLastName")," "),w.R7$(2),w.Y8G("cipher",e.cipher),w.R7$(2),w.SpI(" ",w.bMT(15,14,"copyLicenseNumber")," ")}}function ye(e,t){1&e&&w.nrm(0,"bit-menu-divider")}function be(e,t){if(1&e&&(w.nVh(0,he,10,10),w.nVh(1,Ae,8,8),w.nVh(2,pe,16,16),w.nVh(3,ge,4,4,"button",33),w.nVh(4,ve,28,28),w.nVh(5,me,16,16),w.nVh(6,fe,16,16),w.nVh(7,ye,1,0,"bit-menu-divider")),2&e){const e=w.XpG(2);w.vxM(e.isLoginCipher?0:-1),w.R7$(),w.vxM(e.isCardCipher?1:-1),w.R7$(),w.vxM(e.isIdentityCipher?2:-1),w.R7$(),w.vxM(e.isSecureNoteCipher?3:-1),w.R7$(),w.vxM(e.isBankAccountCipher?4:-1),w.R7$(),w.vxM(e.isPassportCipher?5:-1),w.R7$(),w.vxM(e.isDriversLicenseCipher?6:-1),w.R7$(),w.vxM(e.showMenuDivider?7:-1)}}function Ce(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",63),w.bIt("click",function(){p.eBV(e);const t=w.XpG(2);return p.Njj(t.toggleFavorite())}),w.nrm(1,"i",64),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}if(2&e){const e=w.XpG(2);w.R7$(2),w.SpI(" ",w.bMT(3,1,e.cipher.favorite?"unfavorite":"favorite")," ")}}function Ie(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",63),w.bIt("click",function(){p.eBV(e);const t=w.XpG(2);return p.Njj(t.editCipher())}),w.nrm(1,"i",65),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"edit")," "))}function we(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",63),w.bIt("click",function(){p.eBV(e);const t=w.XpG(2);return p.Njj(t.attachments())}),w.nrm(1,"i",66),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"attachments")," "))}function Be(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",63),w.bIt("click",function(){p.eBV(e);const t=w.XpG(2);return p.Njj(t.clone())}),w.nrm(1,"i",67),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"clone")," "))}function Ee(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",63),w.bIt("click",function(){p.eBV(e);const t=w.XpG(2);return p.Njj(t.assignToCollections())}),w.nrm(1,"i",68),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"assignToCollections")," "))}function Se(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",63),w.bIt("click",function(){p.eBV(e);const t=w.XpG(2);return p.Njj(t.events())}),w.nrm(1,"i",69),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"eventLogs")," "))}function Qe(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",63),w.bIt("click",function(){p.eBV(e);const t=w.XpG(3);return p.Njj(t.archive())}),w.nrm(1,"i",70),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"archiveVerb")," "))}function ke(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",63),w.bIt("click",function(t){p.eBV(e);const i=w.sdS(6);return p.Njj(i.promptForPremium(t))}),w.nrm(1,"i",70),w.EFF(2),w.nI1(3,"i18n"),w.j41(4,"div",71),w.nrm(5,"app-premium-badge",null,2),w.k0s()()}2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"archiveVerb")," "))}function Re(e,t){if(1&e&&(w.nVh(0,Qe,4,3,"button",30),w.nVh(1,ke,7,3,"button",30)),2&e){const e=w.XpG(2);w.vxM(e.userCanArchive?0:-1),w.R7$(),w.vxM(e.userCanArchive?-1:1)}}function Fe(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",63),w.bIt("click",function(){p.eBV(e);const t=w.XpG(2);return p.Njj(t.unarchive())}),w.nrm(1,"i",72),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"unArchive")," "))}function Te(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",63),w.bIt("click",function(){p.eBV(e);const t=w.XpG(2);return p.Njj(t.restore())}),w.nrm(1,"i",73),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"restore")," "))}function De(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",26),w.bIt("click",function(){p.eBV(e);const t=w.XpG(2);return p.Njj(t.deleteCipher())}),w.nrm(1,"bit-icon",27),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}if(2&e){const e=w.XpG(2);w.R7$(2),w.SpI(" ",w.bMT(3,1,e.isDeleted?"permanentlyDelete":"delete")," ")}}function Pe(e,t){if(1&e&&(w.j41(0,"span",18),w.nVh(1,ce,3,2,"div",28),w.nI1(2,"async"),w.nrm(3,"button",29),w.nI1(4,"i18n"),w.j41(5,"bit-menu",null,1),w.nVh(7,be,8,8),w.nI1(8,"async"),w.nVh(9,Ce,4,3,"button",30),w.nVh(10,Ie,4,3,"button",30),w.nVh(11,we,4,3,"button",30),w.nVh(12,Be,4,3,"button",30),w.nVh(13,Ee,4,3,"button",30),w.nVh(14,Se,4,3,"button",30),w.nVh(15,Re,2,2),w.nVh(16,Fe,4,3,"button",30),w.nVh(17,Te,4,3,"button",30),w.nVh(18,De,4,3,"button",17),w.k0s()()),2&e){const e=w.sdS(6),t=w.XpG();w.R7$(),w.vxM(w.bMT(2,16,t.showCopyAndLaunchActions$)?1:-1),w.R7$(2),w.Y8G("label",w.mNQ(w.bMT(4,18,"options")))("bitMenuTriggerFor",e)("disabled",t.disabled),w.R7$(4),w.vxM(w.bMT(8,20,t.showCopyAndLaunchActions$)?-1:7),w.R7$(2),w.vxM(t.showFavorite?9:-1),w.R7$(),w.vxM(!t.isDeleted&&t.canEditCipher?10:-1),w.R7$(),w.vxM(t.showAttachments?11:-1),w.R7$(),w.vxM(t.showClone?12:-1),w.R7$(),w.vxM(t.showAssignToCollections?13:-1),w.R7$(),w.vxM(t.showEventLogs?14:-1),w.R7$(),w.vxM(t.showArchiveButton?15:-1),w.R7$(),w.vxM(t.showUnArchiveButton?16:-1),w.R7$(),w.vxM(t.isDeleted&&t.canRestoreCipher?17:-1),w.R7$(),w.vxM(t.canDeleteCipher?18:-1)}}class Me{constructor(e,t,i,n,r){this.i18nService=e,this.accountService=t,this.cipherService=i,this.platformUtilsService=n,this.configService=r,this.RowHeightClass=I.O6,this.onEvent=new p.bkB,this.checkedToggled=new p.bkB,this.CipherType=f.gC,this.permissionList=(0,C.M3)(),this.permissionPriority=["manageCollection","editItems","editItemsHidePass","viewItems","viewItemsHidePass"],this.showCopyAndLaunchActions$=this.configService.getFeatureFlag$(m.TO.PM28091_AddCopyAndQuickLaunchActions)}ngOnInit(){return Z(this,void 0,void 0,function*(){null!=this.cipher.organizationId&&(this.organization=this.organizations.find(e=>e.id===this.cipher.organizationId))})}get showArchiveButton(){return!this.viewingOrgVault&&(!y.n.isArchived(this.cipher)&&!y.n.isDeleted(this.cipher))}get showUnArchiveButton(){return!this.viewingOrgVault&&(y.n.isArchived(this.cipher)&&!y.n.isDeleted(this.cipher))}get clickAction(){return this.decryptionFailure?"showFailedToDecrypt":"view"}get showTotpCopyButton(){var e;const t=y.n.getLogin(this.cipher);return null!==(e=null==t?void 0:t.totp)&&void 0!==e&&e&&(this.cipher.organizationUseTotp||this.showPremiumFeatures)}get showFixOldAttachments(){return this.cipher.hasOldAttachments&&null==this.cipher.organizationId}get hasAttachments(){return y.n.hasAttachments(this.cipher)}get showAttachments(){return!(y.n.isArchived(this.cipher)&&!this.userCanArchive||this.isDeleted)&&(this.canEditCipher||this.hasAttachments)}get canLaunch(){return y.n.canLaunch(this.cipher)}get launchUri(){return y.n.getLaunchUri(this.cipher)}get subtitle(){return y.n.subtitle(this.cipher,this.i18nService)}get isDeleted(){return y.n.isDeleted(this.cipher)}get decryptionFailure(){return y.n.decryptionFailure(this.cipher)}get showAssignToCollections(){var e;return(null===(e=this.organizations)||void 0===e?void 0:e.length)&&this.canAssignCollections&&!y.n.isDeleted(this.cipher)}get showClone(){return!(y.n.isArchived(this.cipher)&&(!this.userCanArchive||this.enforceOrgDataOwnershipPolicy))&&(this.cloneable&&!y.n.isDeleted(this.cipher))}get showEventLogs(){return this.useEvents&&this.cipher.organizationId}get isLoginCipher(){return y.n.getType(this.cipher)===this.CipherType.Login&&!y.n.isDeleted(this.cipher)&&!y.n.isArchived(this.cipher)}get permissionTooltip(){if(!this.cipher.organizationId||0===this.cipher.collectionIds.length)return;const e=this.collections.filter(e=>{if(e.assigned)return this.cipher.collectionIds.find(t=>e.id===t)});return e.length<=1?void 0:e.map(e=>{var t;const i=this.i18nService.t(null===(t=this.permissionList.find(t=>t.perm===(0,C.Jh)(e)))||void 0===t?void 0:t.labelId);return`${e.name}: ${i}`}).join("\n")}get permissionText(){var e;if(!this.cipher.organizationId||0===this.cipher.collectionIds.length)return this.i18nService.t("manageCollection");const t=this.collections.filter(e=>{if(e.assigned)return this.cipher.collectionIds.find(t=>{if(e.id===t)return e})});if(1===(null==t?void 0:t.length))return this.i18nService.t(null===(e=this.permissionList.find(e=>e.perm===(0,C.Jh)(t[0])))||void 0===e?void 0:e.labelId);if((null==t?void 0:t.length)>1){const e=t.map(e=>{var t;return null===(t=this.permissionList.find(t=>t.perm===(0,C.Jh)(e)))||void 0===t?void 0:t.labelId}),i=this.permissionPriority.find(t=>e.includes(t));return this.i18nService.t(i)}return this.i18nService.t("noAccess")}get hasVisibleLoginOptions(){return this.isLoginCipher&&(y.n.hasCopyableValue(this.cipher,"username")||this.cipher.viewPassword&&y.n.hasCopyableValue(this.cipher,"password")||this.showTotpCopyButton||this.canLaunch)}get isCardCipher(){return y.n.getType(this.cipher)===this.CipherType.Card&&!this.isDeleted}get hasVisibleCardOptions(){return this.isCardCipher&&(y.n.hasCopyableValue(this.cipher,"cardNumber")||y.n.hasCopyableValue(this.cipher,"securityCode"))}get isIdentityCipher(){return!(y.n.isArchived(this.cipher)&&!this.userCanArchive)&&(y.n.getType(this.cipher)===this.CipherType.Identity&&!this.isDeleted)}get hasVisibleIdentityOptions(){return this.isIdentityCipher&&(y.n.hasCopyableValue(this.cipher,"address")||y.n.hasCopyableValue(this.cipher,"email")||y.n.hasCopyableValue(this.cipher,"username")||y.n.hasCopyableValue(this.cipher,"phone"))}get isBankAccountCipher(){return y.n.getType(this.cipher)===this.CipherType.BankAccount&&!this.isDeleted}get isPassportCipher(){return y.n.getType(this.cipher)===this.CipherType.Passport&&!this.isDeleted}get isSecureNoteCipher(){return y.n.getType(this.cipher)===this.CipherType.SecureNote&&!(this.isDeleted&&this.canRestoreCipher)}get isDriversLicenseCipher(){return y.n.getType(this.cipher)===this.CipherType.DriversLicense&&!this.isDeleted}get hasVisibleSecureNoteOptions(){return this.isSecureNoteCipher&&y.n.hasCopyableValue(this.cipher,"secureNote")}get hasBankAccountOptions(){return this.isBankAccountCipher&&(y.n.hasCopyableValue(this.cipher,"accountNumber")||y.n.hasCopyableValue(this.cipher,"routingNumber")||y.n.hasCopyableValue(this.cipher,"pin")||y.n.hasCopyableValue(this.cipher,"iban"))}get hasPassportOptions(){return this.isPassportCipher&&y.n.hasCopyableValue(this.cipher,"passportNumber")}get hasVisibleDriversLicenseOptions(){return this.isDriversLicenseCipher&&(y.n.hasCopyableValue(this.cipher,"firstName")||y.n.hasCopyableValue(this.cipher,"middleName")||y.n.hasCopyableValue(this.cipher,"lastName")||y.n.hasCopyableValue(this.cipher,"licenseNumber"))}get showMenuDivider(){return this.hasVisibleLoginOptions||this.hasVisibleCardOptions||this.hasVisibleIdentityOptions||this.hasVisibleSecureNoteOptions||this.hasBankAccountOptions||this.hasVisibleDriversLicenseOptions||this.hasPassportOptions}clone(){this.onEvent.emit({type:"clone",item:this.cipher})}events(){this.onEvent.emit({type:"viewEvents",item:this.cipher})}archive(){this.onEvent.emit({type:"archive",items:[this.cipher]})}unarchive(){this.onEvent.emit({type:"unarchive",items:[this.cipher]})}restore(){this.onEvent.emit({type:"restore",items:[this.cipher]})}deleteCipher(){this.onEvent.emit({type:"delete",items:[{cipher:this.cipher}]})}attachments(){this.onEvent.emit({type:"viewAttachments",item:this.cipher})}assignToCollections(){this.onEvent.emit({type:"assignToCollections",items:[this.cipher]})}openUri(e){return Z(this,void 0,void 0,function*(){const t=yield(0,g._)(this.accountService.activeAccount$.pipe(v.F6));yield this.cipherService.updateLastLaunchedDate(this.cipher.id,t),this.platformUtilsService.launchUri(e)})}get showCheckbox(){return!this.viewingOrgVault||!this.organization||(this.organization.canEditAllCiphers||this.cipher.edit&&this.cipher.viewPassword)}get showFavorite(){return!(!this.viewingOrgVault&&y.n.isArchived(this.cipher)&&!this.userCanArchive||y.n.isDeleted(this.cipher))}toggleFavorite(){this.onEvent.emit({type:"toggleFavorite",item:this.cipher})}editCipher(){this.onEvent.emit({type:"editCipher",item:this.cipher})}onRightClick(e){e.shiftKey&&e.ctrlKey||!this.disabled&&this.menuTrigger&&this.menuTrigger.toggleMenuOnRightClick(e)}}Me.ɵfac=function(e){return new(e||Me)(w.rXU(B.W),w.rXU(E.D),w.rXU(S.p),w.rXU(Q.y),w.rXU(k.w))},Me.ɵcmp=w.VBU({type:Me,selectors:[["tr","appVaultCipherRow",""]],viewQuery:function(e,t){if(1&e&&w.GBs(b.O,5),2&e){let e;w.mGM(e=w.lsd())&&(t.menuTrigger=e.first)}},hostAttrs:[1,"tw-group/cipher-row"],hostBindings:function(e,t){1&e&&w.bIt("contextmenu",function(e){return t.onRightClick(e)})},inputs:{disabled:"disabled",cipher:"cipher",showOwner:"showOwner",showCollections:"showCollections",showGroups:"showGroups",showPremiumFeatures:"showPremiumFeatures",useEvents:"useEvents",cloneable:"cloneable",organizations:"organizations",collections:"collections",viewingOrgVault:"viewingOrgVault",canEditCipher:"canEditCipher",canAssignCollections:"canAssignCollections",canManageCollection:"canManageCollection",canDeleteCipher:"canDeleteCipher",canRestoreCipher:"canRestoreCipher",userCanArchive:"userCanArchive",enforceOrgDataOwnershipPolicy:"enforceOrgDataOwnershipPolicy",checked:"checked"},outputs:{onEvent:"onEvent",checkedToggled:"checkedToggled"},standalone:!1,attrs:["appVaultCipherRow",""],decls:23,vars:33,consts:[["corruptedCipherOptions",""],["cipherOptions",""],["badge",""],["bitCell","",1,"tw-min-w-fit",3,"ngClass"],["type","checkbox","bitCheckbox","","appStopProp","",3,"disabled","checked"],["bitCell","",1,"tw-min-w-fit","[&>*]:tw-flex","tw-flex",3,"ngClass"],[3,"cipher"],["bitCell","",1,"tw-truncate","tw-pr-7","lg:tw-pr-0",3,"ngClass"],[1,"tw-inline-flex","tw-w-full"],["bitLink","","queryParamsHandling","merge","type","button","appStopProp","","aria-haspopup","dialog",1,"tw-overflow-hidden","tw-text-ellipsis","tw-text-start","tw-leading-snug",3,"disabled","routerLink","queryParams","replaceUrl","title","id","state"],["appStopProp","",1,"tw-text-sm","tw-text-muted"],["bitCell","",1,"tw-hidden","lg:tw-table-cell",3,"ngClass"],["bitCell","",1,"tw-hidden","tw-pr-7","xl:tw-table-cell",3,"ngClass"],["bitCell","",1,"tw-hidden","tw-pr-7","xl:tw-table-cell","tw-text-sm",3,"ngClass"],["bitCell","",1,"tw-hidden","tw-pr-7","lg:tw-table-cell",3,"ngClass"],["bitCell","",1,"tw-text-right",3,"ngClass"],["size","small","bitIconButton","bwi-ellipsis-v","type","button","appStopProp","",3,"disabled","bitMenuTriggerFor","label"],["bitMenuItem","","variant","danger","type","button"],[1,"tw-relative","tw-inline-flex","tw-items-center"],["type","checkbox","bitCheckbox","","appStopProp","",3,"change","disabled","checked"],["appStopProp","","aria-hidden","true",1,"bwi","bwi-paperclip","tw-ml-2","tw-leading-normal","tw-hidden","lg:tw-table-cell",3,"title"],[1,"tw-sr-only"],["appStopProp","","aria-hidden","true",1,"bwi","bwi-exclamation-triangle","tw-ml-2","tw-leading-normal","tw-text-warning",3,"title"],["appStopProp","",3,"disabled","organizationId","organizationName"],[3,"collectionIds","collections"],[1,"tw-mb-0","tw-truncate","tw-text-sm","tw-text-muted",3,"bitTooltip","title"],["bitMenuItem","","variant","danger","type","button",3,"click"],["fixedWidth","","name","bwi-trash","slot","start"],[1,"tw-absolute","tw-right-full","tw-inset-y-0","tw-flex","tw-items-center","tw-gap-2","tw-pr-2","tw-opacity-0","tw-pointer-events-none","tw-transition-opacity","group-hover/cipher-row:tw-opacity-100","group-hover/cipher-row:tw-pointer-events-auto","group-has-[:focus-visible]/cipher-row:tw-opacity-100","group-has-[:focus-visible]/cipher-row:tw-pointer-events-auto","[&:has([aria-expanded='true'])]:tw-opacity-100","[&:has([aria-expanded='true'])]:tw-pointer-events-auto"],["size","small","bitIconButton","bwi-ellipsis-v","type","button","appStopProp","",3,"bitMenuTriggerFor","disabled","label"],["bitMenuItem","","type","button"],["bitIconButton","bwi-external-link","bitSuffix","","type","button","data-testid","launch-website",3,"label"],["bitIconButton","bwi-external-link","bitSuffix","","type","button","data-testid","launch-website",3,"click","label"],["type","button","bitMenuItem","","appCopyField","secureNote",3,"cipher"],["type","button","bitMenuItem","","appCopyField","username",3,"cipher"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-clone"],["bitMenuItem","","type","button","appCopyField","password",3,"cipher"],["bitMenuItem","","type","button","appCopyField","totp",3,"cipher"],["type","button","bitMenuItem",""],["type","button","bitMenuItem","",3,"click"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-external-link"],["type","button","bitMenuItem","","appCopyField","cardNumber",3,"cipher"],["type","button","bitMenuItem","","appCopyField","securityCode",3,"cipher"],["type","button","bitMenuItem","","appCopyField","email",3,"cipher"],["type","button","bitMenuItem","","appCopyField","phone",3,"cipher"],["type","button","bitMenuItem","","appCopyField","address",3,"cipher"],["type","button","bitMenuItem","","appCopyField","nameOnAccount",3,"cipher"],["name","bwi-clone"],["type","button","bitMenuItem","","appCopyField","accountNumber",3,"cipher"],["type","button","bitMenuItem","","appCopyField","routingNumber",3,"cipher"],["type","button","bitMenuItem","","appCopyField","branchNumber",3,"cipher"],["type","button","bitMenuItem","","appCopyField","pin",3,"cipher"],["type","button","bitMenuItem","","appCopyField","iban",3,"cipher"],["type","button","bitMenuItem","","appCopyField","swiftCode",3,"cipher"],["type","button","bitMenuItem","","appCopyField","givenName",3,"cipher"],["name","bwi-clone","fixedWidth",""],["type","button","bitMenuItem","","appCopyField","surname",3,"cipher"],["type","button","bitMenuItem","","appCopyField","passportNumber",3,"cipher"],["type","button","bitMenuItem","","appCopyField","nationalIdentificationNumber",3,"cipher"],["type","button","bitMenuItem","","appCopyField","firstNameLicense",3,"cipher"],["type","button","bitMenuItem","","appCopyField","middleNameLicense",3,"cipher"],["type","button","bitMenuItem","","appCopyField","lastNameLicense",3,"cipher"],["type","button","bitMenuItem","","appCopyField","licenseNumber",3,"cipher"],["bitMenuItem","","type","button",3,"click"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-star"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-pencil-square"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-paperclip"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-files"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-collection-shared"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-file-text"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-archive"],["slot","end","aria-hidden","",1,"-tw-mt-0.5"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-unarchive"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-undo"]],template:function(e,t){1&e&&(w.j41(0,"td",3),w.nVh(1,$,2,5,"input",4),w.k0s(),w.j41(2,"td",5),w.nrm(3,"app-vault-icon",6),w.k0s(),w.j41(4,"td",7)(5,"div",8)(6,"button",9),w.nI1(7,"i18n"),w.EFF(8),w.k0s(),w.nVh(9,ee,7,8,"ng-container"),w.k0s(),w.nrm(10,"br"),w.j41(11,"span",10),w.EFF(12),w.k0s()(),w.nVh(13,te,3,7,"td",11),w.nVh(14,ne,2,2,"td",12),w.nVh(15,re,1,1,"td",13),w.nVh(16,se,3,4,"td",14),w.j41(17,"td",15),w.nVh(18,oe,2,6,"button",16),w.j41(19,"bit-menu",null,0),w.nVh(21,ae,4,3,"button",17),w.k0s(),w.nVh(22,Pe,19,22,"span",18),w.k0s()),2&e&&(w.Y8G("ngClass",t.RowHeightClass),w.R7$(),w.vxM(t.showCheckbox?1:-1),w.R7$(),w.Y8G("ngClass",t.RowHeightClass),w.R7$(),w.Y8G("cipher",t.cipher),w.R7$(),w.Y8G("ngClass",t.RowHeightClass),w.R7$(2),w.Y8G("title",w.mNQ(w.i5U(7,25,"editItemWithName",t.cipher.name)))("id",w.VkB("cipher-btn-",t.cipher.id))("disabled",t.disabled)("routerLink",w.lJ4(28,H))("queryParams",w.l_i(29,J,t.cipher.id,t.clickAction))("replaceUrl",!0)("state",w.lJ4(32,q)),w.R7$(2),w.SpI(" ",t.cipher.name," "),w.R7$(),w.vxM(t.hasAttachments?9:-1),w.R7$(3),w.JRh(t.subtitle),w.R7$(),w.vxM(t.showOwner?13:-1),w.R7$(),w.vxM(t.showCollections?14:-1),w.R7$(),w.vxM(t.showGroups?15:-1),w.R7$(),w.vxM(t.viewingOrgVault?16:-1),w.R7$(),w.Y8G("ngClass",t.RowHeightClass),w.R7$(),w.vxM(t.decryptionFailure?18:-1),w.R7$(3),w.vxM(t.canDeleteCipher?21:-1),w.R7$(),w.vxM(t.decryptionFailure?-1:22))},dependencies:[r.YU,s.Wk,R.R,F.x,T.P,D.a,P.s,M.R,x.g,V.Z,b.O,G.S,U.M,O.Q,N.d,j.P,Y.K,X.w,z.T,L.a,r.Jj,W.$,K.t],encapsulation:2});var xe=i(14848),Ve=i(47696),Ge=i(24590),Ue=i(63477),Oe=i(94438);class Ne{constructor(e){this.i18nService=e,this.selectedGroups=(0,Ge.hFB)([]),this.allGroups=(0,Ge.hFB)([]),this.groupNames=(0,Ue.EW)(()=>{const e=this.allGroups();return e?this.selectedGroups().map(t=>{var i;return null===(i=e.find(e=>e.id===t.id))||void 0===i?void 0:i.name}).filter(e=>void 0!==e).sort(this.i18nService.collator.compare):[]})}}Ne.ɵfac=function(e){return new(e||Ne)(w.rXU(B.W))},Ne.ɵcmp=w.VBU({type:Ne,selectors:[["app-group-badge"]],inputs:{selectedGroups:[1,"selectedGroups"],allGroups:[1,"allGroups"]},standalone:!1,decls:1,vars:2,consts:[["variant","secondary",3,"items","maxItems"]],template:function(e,t){1&e&&w.nrm(0,"bit-badge-list",0),2&e&&w.Y8G("items",t.groupNames())("maxItems",3)},dependencies:[Oe.p],encapsulation:2,changeDetection:0});const je=()=>[],Ye=e=>({collectionId:e});function Xe(e,t){if(1&e){const e=w.RV6();w.j41(0,"input",15),w.nI1(1,"i18n"),w.bIt("change",function(t){p.eBV(e);const i=w.XpG();return p.Njj(t?i.checkedToggled.next():null)}),w.k0s()}if(2&e){const e=w.XpG();w.Y8G("disabled",e.disabled)("checked",e.checked),w.BMQ("aria-label",w.bMT(1,3,"collectionItemSelect"))}}function ze(e,t){if(1&e){const e=w.RV6();w.j41(0,"span",16),w.bIt("click",function(){p.eBV(e);const t=w.XpG();return p.Njj(t.addAccess(t.CollectionPermission.Manage))}),w.EFF(1),w.nI1(2,"i18n"),w.k0s()}2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,1,"addAccess")," "))}function Le(e,t){if(1&e&&(w.j41(0,"td",9),w.nrm(1,"app-org-badge",17),w.nI1(2,"orgNameFromId"),w.k0s()),2&e){const e=w.XpG();w.Y8G("ngClass",e.RowHeightClass),w.R7$(),w.Y8G("disabled",e.disabled)("organizationId",e.collection.organizationId)("organizationName",w.i5U(2,4,e.collection.organizationId,e.organizations))}}function We(e,t){if(1&e&&w.nrm(0,"td",4),2&e){const e=w.XpG();w.Y8G("ngClass",e.RowHeightClass)}}function Ke(e,t){if(1&e&&w.nrm(0,"app-group-badge",18),2&e){const e=w.XpG(2);w.Y8G("selectedGroups",e.collectionGroups)("allGroups",e.groups)}}function Ze(e,t){if(1&e&&(w.j41(0,"td",10),w.nVh(1,Ke,1,2,"app-group-badge",18),w.k0s()),2&e){const e=w.XpG();w.Y8G("ngClass",e.RowHeightClass),w.R7$(),w.vxM(e.collectionGroups?1:-1)}}function He(e,t){if(1&e&&(w.j41(0,"td",11)(1,"p",19),w.EFF(2),w.k0s()()),2&e){const e=w.XpG();w.Y8G("ngClass",e.RowHeightClass),w.R7$(),w.Y8G("bitTooltip",e.permissionTooltip)("title",e.permissionText),w.R7$(),w.SpI(" ",e.permissionText," ")}}function Je(e,t){if(1&e&&(w.nrm(0,"button",13),w.nI1(1,"i18n")),2&e){const e=w.XpG(),t=w.sdS(19);w.Y8G("label",w.mNQ(w.bMT(1,4,"options")))("disabled",e.disabled)("bitMenuTriggerFor",t)}}function qe(e,t){if(1&e){const e=w.RV6();w.qex(0),w.j41(1,"button",20),w.bIt("click",function(){p.eBV(e);const t=w.XpG();return p.Njj(t.edit(!1))}),w.nrm(2,"i",21),w.EFF(3),w.nI1(4,"i18n"),w.k0s(),w.j41(5,"button",20),w.bIt("click",function(){p.eBV(e);const t=w.XpG();return p.Njj(t.access(!1))}),w.nrm(6,"i",22),w.EFF(7),w.nI1(8,"i18n"),w.k0s(),w.bVm()}2&e&&(w.R7$(3),w.SpI(" ",w.bMT(4,2,"editInfo")," "),w.R7$(4),w.SpI(" ",w.bMT(8,4,"editAccess")," "))}function $e(e,t){if(1&e){const e=w.RV6();w.qex(0),w.j41(1,"button",20),w.bIt("click",function(){p.eBV(e);const t=w.XpG();return p.Njj(t.edit(!0))}),w.nrm(2,"i",21),w.EFF(3),w.nI1(4,"i18n"),w.k0s(),w.j41(5,"button",20),w.bIt("click",function(){p.eBV(e);const t=w.XpG();return p.Njj(t.access(!0))}),w.nrm(6,"i",22),w.EFF(7),w.nI1(8,"i18n"),w.k0s(),w.bVm()}2&e&&(w.R7$(3),w.SpI(" ",w.bMT(4,2,"viewInfo")," "),w.R7$(4),w.SpI(" ",w.bMT(8,4,"viewAccess")," "))}function _e(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",23),w.bIt("click",function(){p.eBV(e);const t=w.XpG();return p.Njj(t.deleteCollection())}),w.nrm(1,"bit-icon",24),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"delete")," "))}class et{constructor(e){this.i18nService=e,this.RowHeightClass=I.O6,this.Unassigned="unassigned",this.CollectionPermission=C.aF,this.DefaultCollectionType=xe.it.DefaultUserCollection,this.onEvent=new p.bkB,this.checkedToggled=new p.bkB}get collectionGroups(){return this.collection instanceof xe.nb?this.collection.groups:[]}get organization(){return this.organizations.find(e=>e.id===this.collection.organizationId)}get showAddAccess(){var e,t;return this.collection.id!=xe.I_&&(this.collection instanceof xe.nb&&(!(null===(e=this.organization)||void 0===e?void 0:e.allowAdminAccessToAllCollectionItems)&&this.collection.unmanaged&&(null===(t=this.organization)||void 0===t?void 0:t.canEditUnmanagedCollections)))}get permissionText(){var e,t;if(this.collection.id==xe.I_&&(null===(e=this.organization)||void 0===e?void 0:e.canEditUnassignedCiphers))return this.i18nService.t("editItems");if(this.collection.assigned){const e=(0,C.M3)();return this.i18nService.t(null===(t=e.find(e=>e.perm===(0,C.Jh)(this.collection)))||void 0===t?void 0:t.labelId)}return this.i18nService.t("noAccess")}get permissionTooltip(){return this.collection.id==xe.I_?this.i18nService.t("collectionAdminConsoleManaged"):""}edit(e){this.onEvent.next({type:"editCollection",item:this.collection,readonly:e})}access(e){this.onEvent.next({type:"viewCollectionAccess",item:this.collection,readonly:e})}addAccess(e){this.onEvent.next({type:"viewCollectionAccess",item:this.collection,readonly:!1,initialPermission:e})}deleteCollection(){this.onEvent.next({type:"delete",items:[{collection:this.collection}]})}onRightClick(e){e.shiftKey&&e.ctrlKey||!this.disabled&&this.menuTrigger&&this.menuTrigger.toggleMenuOnRightClick(e)}}et.ɵfac=function(e){return new(e||et)(w.rXU(B.W))},et.ɵcmp=w.VBU({type:et,selectors:[["tr","appVaultCollectionRow",""]],viewQuery:function(e,t){if(1&e&&w.GBs(b.O,5),2&e){let e;w.mGM(e=w.lsd())&&(t.menuTrigger=e.first)}},hostBindings:function(e,t){1&e&&w.bIt("contextmenu",function(e){return t.onRightClick(e)})},inputs:{disabled:"disabled",collection:"collection",showOwner:"showOwner",showCollections:"showCollections",showGroups:"showGroups",canEditCollection:"canEditCollection",canDeleteCollection:"canDeleteCollection",canViewCollectionInfo:"canViewCollectionInfo",organizations:"organizations",groups:"groups",showPermissionsColumn:"showPermissionsColumn",checked:"checked"},outputs:{onEvent:"onEvent",checkedToggled:"checkedToggled"},standalone:!1,attrs:["appVaultCollectionRow",""],decls:23,vars:28,consts:[["collectionOptions",""],["bitCell","",1,"tw-min-w-fit",3,"ngClass"],["type","checkbox","bitCheckbox","","appStopProp","",3,"disabled","checked"],["aria-hidden","true"],["bitCell","",3,"ngClass"],[1,"tw-flex"],["bitLink","","type","button","linkType","secondary","queryParamsHandling","merge","appStopProp","",1,"tw-flex","tw-text-start","tw-leading-snug","tw-max-w-56","tw-overflow-hidden",3,"disabled","title","routerLink","queryParams"],[1,"tw-truncate","tw-mr-1","tw-max-w-56"],["bitBadge","","role","button","variant","warning",1,"tw-cursor-pointer"],["bitCell","",1,"tw-hidden","lg:tw-table-cell",3,"ngClass"],["bitCell","",1,"tw-hidden","tw-overflow-hidden","tw-pr-7","xl:tw-table-cell","tw-text-sm",3,"ngClass"],["bitCell","",1,"tw-hidden","tw-pr-7","lg:tw-table-cell","tw-text-sm",3,"ngClass"],["bitCell","",1,"tw-text-right",3,"ngClass"],["size","small","bitIconButton","bwi-ellipsis-v","type","button","appStopProp","",3,"disabled","bitMenuTriggerFor","label"],["type","button","variant","danger","bitMenuItem",""],["type","checkbox","bitCheckbox","","appStopProp","",3,"change","disabled","checked"],["bitBadge","","role","button","variant","warning",1,"tw-cursor-pointer",3,"click"],["appStopProp","",3,"disabled","organizationId","organizationName"],[3,"selectedGroups","allGroups"],[1,"tw-mb-0","tw-truncate","tw-text-muted",3,"bitTooltip","title"],["type","button","bitMenuItem","",3,"click"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-pencil-square"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-users"],["type","button","variant","danger","bitMenuItem","",3,"click"],["fixedWidth","","name","bwi-trash","slot","start"]],template:function(e,t){1&e&&(w.j41(0,"td",1),w.nVh(1,Xe,2,5,"input",2),w.k0s(),w.j41(2,"td",1)(3,"div",3),w.nrm(4,"i"),w.k0s()(),w.j41(5,"td",4)(6,"div",5)(7,"button",6),w.nI1(8,"i18n"),w.j41(9,"div",7),w.EFF(10),w.k0s()(),w.nVh(11,ze,3,3,"span",8),w.k0s()(),w.nVh(12,Le,3,7,"td",9),w.nVh(13,We,1,1,"td",4),w.nVh(14,Ze,2,2,"td",10),w.nVh(15,He,3,4,"td",11),w.j41(16,"td",12),w.nVh(17,Je,2,6,"button",13),w.j41(18,"bit-menu",null,0),w.nVh(20,qe,9,6,"ng-container"),w.nVh(21,$e,9,6,"ng-container"),w.nVh(22,_e,4,3,"button",14),w.k0s()()),2&e&&(w.Y8G("ngClass",t.RowHeightClass),w.R7$(),w.vxM(t.canEditCollection||t.canDeleteCollection?1:-1),w.R7$(),w.Y8G("ngClass",t.RowHeightClass),w.R7$(2),w.HbH("bwi bwi-fw bwi-lg "+(t.collection.type===t.DefaultCollectionType?"bwi-user":"bwi-collection-shared")),w.R7$(),w.Y8G("ngClass",t.RowHeightClass),w.R7$(2),w.Y8G("title",w.mNQ(w.i5U(8,22,"viewCollectionWithName",t.collection.name)))("disabled",t.disabled)("routerLink",w.lJ4(25,je))("queryParams",w.eq3(26,Ye,t.collection.id)),w.R7$(3),w.JRh(t.collection.name),w.R7$(),w.vxM(t.showAddAccess?11:-1),w.R7$(),w.vxM(t.showOwner?12:-1),w.R7$(),w.vxM(t.showCollections?13:-1),w.R7$(),w.vxM(t.showGroups?14:-1),w.R7$(),w.vxM(t.showPermissionsColumn?15:-1),w.R7$(),w.Y8G("ngClass",t.RowHeightClass),w.R7$(),w.vxM(t.canEditCollection||t.canDeleteCollection||t.canViewCollectionInfo?17:-1),w.R7$(3),w.vxM(t.canEditCollection?20:-1),w.R7$(),w.vxM(!t.canEditCollection&&t.canViewCollectionInfo?21:-1),w.R7$(),w.vxM(t.canDeleteCollection?22:-1))},dependencies:[r.YU,s.Wk,F.x,Ve.n,T.P,P.s,M.R,x.g,V.Z,b.O,G.S,O.Q,N.d,j.P,Ne,W.$,K.t],encapsulation:2});var tt=i(22466),it=i(32316),nt=i(36572),rt=i(69672);class st{}st.ɵfac=function(e){return new(e||st)},st.ɵmod=w.$C({type:st}),st.ɵinj=p.G2t({imports:[r.MD,s.iI,n.E9,u.G,o.b,h.t,c.K,d.B,A.Y,l.T6,a.o]}),w.wjB(I.W_,[r.YU,n.yg,n.E$,n.d6,T.P,P.s,M.R,V.Z,b.O,G.S,O.Q,tt.Y,it.O,nt._,nt.O,rt.lp,Me,et],[r.Jj,W.$])},45392(e,t,i){"use strict";i.d(t,{d:()=>p});var n=i(11217),r=i(73366),s=i(69783),o=i(82468),a=i(1601),l=i(50700),c=i(69855),d=i(66316),u=i(84330),h=i(9083),A=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class p{constructor(){this.dialogService=(0,n.WQX)(d.o),this.configService=(0,n.WQX)(a.w),this.toastService=(0,n.WQX)(c.f),this.i18nService=(0,n.WQX)(l.W),this.bulkDelete=(0,n.WQX)(u.vj)}open(e){return A(this,void 0,void 0,function*(){if(yield this.configService.getFeatureFlag(o.TO.PM37785_VaultBatchBar)){if(this.hasItems(e)&&this.hasCollections(e))return this.confirmAndDeleteMixed(e);if(this.hasCollections(e))return this.confirmAndDeleteCollections(e);if(this.hasItems(e))return this.confirmAndDeleteItems(e)}const t=(0,h.Q0)(this.dialogService,{data:e});return(0,r.s)(t.closed.pipe((0,s.T)(e=>null!=e?e:u.vA.Canceled)))})}hasItems(e){var t,i,n,r;return(null!==(i=null===(t=e.cipherIds)||void 0===t?void 0:t.length)&&void 0!==i?i:0)+(null!==(r=null===(n=e.unassignedCiphers)||void 0===n?void 0:n.length)&&void 0!==r?r:0)>0}hasCollections(e){var t,i;return(null!==(i=null===(t=e.collections)||void 0===t?void 0:t.length)&&void 0!==i?i:0)>0}confirmAndDeleteItems(e){return A(this,void 0,void 0,function*(){var t,i,n;const r=null!==(t=e.cipherIds)&&void 0!==t?t:[],s=null!==(i=e.unassignedCiphers)&&void 0!==i?i:[],o=r.length+s.length,a=null!==(n=e.permanent)&&void 0!==n&&n;return(yield this.dialogService.openSimpleDialog({type:"danger",title:this.itemDeleteTitle(a,o),content:this.itemDeleteContent(a,o),acceptButtonText:{key:"delete"},cancelButtonText:{key:"cancel"}}))?(yield this.bulkDelete.deleteCiphers({cipherIds:r,unassignedCiphers:s,permanent:a,organization:e.organization}),this.toastService.showToast({variant:"success",message:this.i18nService.t(a?1===o?"permanentlyDeletedItem":"permanentlyDeletedItems":1===o?"deletedItem":"deletedItems")}),u.vA.Deleted):u.vA.Canceled})}confirmAndDeleteCollections(e){return A(this,void 0,void 0,function*(){var t;const i=null!==(t=e.collections)&&void 0!==t?t:[],n=i.length;return(yield this.dialogService.openSimpleDialog({type:"danger",title:1===n?{key:"deleteCollection"}:{key:"deleteCollectionsCount",placeholders:[n]},content:{key:1===n?"deleteCollectionDesc":"deleteCollectionsDesc"},acceptButtonText:{key:"delete"},cancelButtonText:{key:"cancel"}}))?(yield this.bulkDelete.deleteCollections(i),this.toastService.showToast({variant:"success",message:this.i18nService.t(1===n?"collectionDeleted":"collectionsDeleted")}),u.vA.Deleted):u.vA.Canceled})}confirmAndDeleteMixed(e){return A(this,void 0,void 0,function*(){var t,i,n;const r=null!==(t=e.cipherIds)&&void 0!==t?t:[],s=null!==(i=e.unassignedCiphers)&&void 0!==i?i:[],o=null!==(n=e.collections)&&void 0!==n?n:[];if(!(yield this.dialogService.openSimpleDialog({type:"danger",title:{key:"deleteSelection"},content:{key:"deleteItemsAndCollectionsDesc"},acceptButtonText:{key:"delete"},cancelButtonText:{key:"cancel"}})))return u.vA.Canceled;const a=r.length+s.length;return yield Promise.all([this.bulkDelete.deleteCiphers({cipherIds:r,unassignedCiphers:s,permanent:!1,organization:e.organization}),this.bulkDelete.deleteCollections(o)]),this.toastService.showToast({variant:"success",message:this.i18nService.t(1===a?"deletedItem":"deletedItems")}),this.toastService.showToast({variant:"success",message:this.i18nService.t(1===o.length?"collectionDeleted":"collectionsDeleted")}),u.vA.Deleted})}itemDeleteTitle(e,t){return 1===t?{key:e?"deleteItemPermanently":"deleteItem"}:{key:e?"deleteItemsPermanentlyCount":"deleteItemsCount",placeholders:[t]}}itemDeleteContent(e,t){return e?{key:1===t?"deleteItemPermanentlyDesc":"deleteItemsPermanentlyDesc"}:{key:1===t?"deleteItemDesc":"deleteItemsDesc"}}}p.ɵfac=function(e){return new(e||p)},p.ɵprov=n.jDH({token:p,factory:p.ɵfac})},9083(e,t,i){"use strict";i.d(t,{Q0:()=>b});var n=i(11217),r=i(66316),s=i(88744),o=i(84330),a=i(14041),l=i(69855),c=i(44075),d=i(50700),u=i(3892),h=i(56898),A=i(67311),p=i(25740),g=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function v(e,t){if(1&e&&(a.j41(0,"span"),a.EFF(1),a.nI1(2,"i18n"),a.k0s()),2&e){const e=a.XpG(2);a.R7$(),a.SpI(" ",a.i5U(2,1,"deleteSelectedItemsDesc",e.cipherIds.length+e.unassignedCiphers.length)," ")}}function m(e,t){if(1&e&&(a.j41(0,"span"),a.EFF(1),a.nI1(2,"i18n"),a.k0s()),2&e){const e=a.XpG(2);a.R7$(),a.SpI(" ",a.i5U(2,1,"deleteSelectedCollectionsDesc",e.collections.length)," ")}}function f(e,t){if(1&e&&(a.qex(0),a.nVh(1,v,3,4,"span"),a.nVh(2,m,3,4,"span"),a.EFF(3),a.nI1(4,"i18n"),a.bVm()),2&e){const e=a.XpG();a.R7$(),a.vxM(null!=e.cipherIds&&e.cipherIds.length||null!=e.unassignedCiphers&&e.unassignedCiphers.length?1:-1),a.R7$(),a.vxM(null!=e.collections&&e.collections.length?2:-1),a.R7$(),a.SpI(" ",a.bMT(4,3,"deleteSelectedConfirmation")," ")}}function y(e,t){if(1&e&&(a.qex(0),a.EFF(1),a.nI1(2,"i18n"),a.bVm()),2&e){const e=a.XpG();a.R7$(),a.SpI(" ",a.i5U(2,1,"permanentlyDeleteSelectedItemsDesc",e.cipherIds.length+e.unassignedCiphers.length)," ")}}const b=(e,t)=>e.open(C,Object.assign({positionStrategy:new r.u},t));class C{constructor(e,t,i,r){var s;this.dialogRef=t,this.i18nService=i,this.toastService=r,this.permanent=!1,this.bulkDelete=(0,n.WQX)(o.vj),this.submit=()=>g(this,void 0,void 0,function*(){const e=[];if((this.cipherIds.length||this.unassignedCiphers.length)&&e.push(this.bulkDelete.deleteCiphers({cipherIds:this.cipherIds,unassignedCiphers:this.unassignedCiphers,permanent:this.permanent,organization:this.organization})),this.collections.length&&e.push(this.deleteCollections()),yield Promise.all(e),this.cipherIds.length||this.unassignedCiphers.length){const e=this.cipherIds.length+this.unassignedCiphers.length;this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t(this.permanent?1===e?"permanentlyDeletedItem":"permanentlyDeletedItems":1===e?"deletedItem":"deletedItems")})}this.collections.length&&this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("deletedCollections")}),this.close(o.vA.Deleted)}),this.cipherIds=null!==(s=e.cipherIds)&&void 0!==s?s:[],this.permanent=e.permanent,this.organization=e.organization,this.organizations=e.organizations,this.collections=e.collections,this.unassignedCiphers=e.unassignedCiphers||[]}cancel(){return g(this,void 0,void 0,function*(){this.close(o.vA.Canceled)})}deleteCollections(){return g(this,void 0,void 0,function*(){if(this.organization){if(this.collections.some(e=>!e.canDelete(this.organization)))return void this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:this.i18nService.t("missingPermissions")})}else{if(!this.organizations||!this.collections)return;for(const e of this.organizations){if(this.collections.filter(t=>t.organizationId===e.id).some(t=>!t.canDelete(e)))return void this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:this.i18nService.t("missingPermissions")})}}yield this.bulkDelete.deleteCollections(this.collections)})}close(e){this.dialogRef.close(e)}}C.ɵfac=function(e){return new(e||C)(a.rXU(s.Qs),a.rXU(c.ce),a.rXU(d.W),a.rXU(l.f))},C.ɵcmp=a.VBU({type:C,selectors:[["ng-component"]],standalone:!1,decls:14,vars:12,consts:[["bitDialogTitle",""],["bitDialogContent",""],["bitDialogFooter",""],["bitButton","","type","submit","buttonType","danger",3,"bitAction"],["bitButton","","type","button",3,"click"]],template:function(e,t){1&e&&(a.j41(0,"bit-simple-dialog")(1,"span",0),a.EFF(2),a.nI1(3,"i18n"),a.k0s(),a.j41(4,"span",1),a.nVh(5,f,5,5,"ng-container"),a.nVh(6,y,3,4,"ng-container"),a.k0s(),a.qex(7,2),a.j41(8,"button",3),a.EFF(9),a.nI1(10,"i18n"),a.k0s(),a.j41(11,"button",4),a.bIt("click",function(){return t.cancel()}),a.EFF(12),a.nI1(13,"i18n"),a.k0s(),a.bVm(),a.k0s()),2&e&&(a.R7$(2),a.SpI(" ",a.bMT(3,6,t.permanent?"permanentlyDeleteSelected":"deleteSelected")," "),a.R7$(3),a.vxM(t.permanent?-1:5),a.R7$(),a.vxM(t.permanent?6:-1),a.R7$(2),a.Y8G("bitAction",t.submit),a.R7$(),a.SpI(" ",a.bMT(10,8,t.permanent?"permanentlyDelete":"delete")," "),a.R7$(3),a.JRh(a.bMT(13,10,"cancel")))},dependencies:[u.p,h.Q,A.hJ,A.o_,p.$],encapsulation:2})},14092(e,t,i){"use strict";i.d(t,{t:()=>a});var n=i(84330),r=i(57768),s=i(14041),o=i(11217);class a{}a.ɵfac=function(e){return new(e||a)},a.ɵmod=s.$C({type:a}),a.ɵinj=o.G2t({imports:[r.G,n.Pq]})},10840(e,t,i){"use strict";i.d(t,{Y:()=>s});var n=i(14041),r=i(11217);class s{}s.ɵfac=function(e){return new(e||s)},s.ɵmod=n.$C({type:s}),s.ɵinj=r.G2t({})},49492(e,t,i){"use strict";i.d(t,{H:()=>$,n:()=>_});var n=i(24590),r=i(11217),s=i(63477),o=i(92128),a=i(68108),l=i(69783),c=i(191),d=i(84488),u=i(3633),h=i(84330),A=i(15661),p=i(14041),g=i(35500),v=i(46758),m=i(84522),f=i(54471),y=i(37856),b=i(38411),C=i(50046),I=i(25740),w=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const B=e=>({active:e}),E=e=>({$implicit:e}),S=e=>({"disabled-organization":e}),Q=(e,t)=>({"bwi-angle-right":e,"bwi-angle-down":t});function k(e,t){if(1&e){const e=p.RV6();p.j41(0,"button",10),p.nI1(1,"i18n"),p.nI1(2,"i18n"),p.bIt("click",function(){r.eBV(e);const t=p.XpG(3);return r.Njj(t.onFilterSelect(t.headerNode()))}),p.j41(3,"h3",11),p.EFF(4),p.nI1(5,"i18n"),p.k0s()()}if(2&e){const e=p.XpG(3);p.Y8G("appA11yTitle",p.ai1("",p.bMT(1,5,e.isOrganizationFilter()?"vault":"filter"),": ",p.bMT(2,7,e.headerNode().node.name))),p.R7$(3),p.Y8G("ngClass",p.eq3(11,B,e.isAllVaultsSelected()||e.isNodeSelected(e.headerNode()))),p.R7$(),p.SpI(" ",p.bMT(5,9,e.headerNode().node.name)," ")}}function R(e,t){if(1&e&&(p.j41(0,"h3",9),p.EFF(1),p.nI1(2,"i18n"),p.k0s()),2&e){const e=p.XpG(3);p.R7$(),p.SpI(" ",p.bMT(2,1,e.headerNode().node.name))}}function F(e,t){if(1&e){const e=p.RV6();p.j41(0,"div",4)(1,"button",6),p.nI1(2,"i18n"),p.nI1(3,"i18n"),p.bIt("click",function(){r.eBV(e);const t=p.XpG(2);return r.Njj(t.toggleCollapse(t.headerNode().node))}),p.nrm(4,"i",7),p.k0s(),p.nVh(5,k,6,13,"button",8)(6,R,3,3,"h3",9),p.k0s()}if(2&e){p.XpG();const e=p.sdS(1),t=p.XpG();p.Y8G("bitPopoverAnchorFor",t.isCollectionFilter?e.popover():null)("popoverOpen",!!t.isCollectionFilter&&t.collectionsCoachmarkOpen())("spotlight",t.isCollectionFilter)("position",t.coachmarkService.getStepPosition("shareWithCollections"))("closeOnBackdropClick",!1),p.R7$(),p.Y8G("appA11yTitle",p.ai1("",p.bMT(2,11,"toggleCollapse"),": ",p.bMT(3,13,t.headerNode().node.name))),p.BMQ("aria-expanded",!t.isCollapsed(t.headerNode().node)),p.R7$(3),p.Y8G("ngClass",t.isCollapsed(t.headerNode().node)?"bwi-angle-right":"bwi-angle-down"),p.R7$(),p.vxM(t.headerInfo().isSelectable?5:6)}}function T(e,t){if(1&e){const e=p.RV6();p.j41(0,"button",22),p.nI1(1,"i18n"),p.bIt("click",function(){r.eBV(e);const t=p.XpG().$implicit,i=p.XpG(4);return r.Njj(i.toggleCollapse(t.node))}),p.nrm(2,"i",7),p.k0s()}if(2&e){const e=p.XpG().$implicit,t=p.XpG(4);p.Y8G("appA11yTitle",p.ai1("",p.bMT(1,6,"toggleCollapse"),": ",e.node.name)),p.BMQ("aria-expanded",!t.isCollapsed(e.node))("aria-controls",e.node.name+"_children"),p.R7$(2),p.Y8G("ngClass",p.l_i(8,Q,t.isCollapsed(e.node),!t.isCollapsed(e.node)))}}function D(e,t){if(1&e&&p.nrm(0,"i",23),2&e){const e=p.XpG().$implicit;p.HbH(p.VkB("bwi bwi-fw ",e.node.icon))}}function P(e,t){if(1&e){const e=p.RV6();p.j41(0,"button",24),p.nI1(1,"i18n"),p.bIt("click",function(){r.eBV(e);const t=p.XpG().$implicit,i=p.XpG(4);return r.Njj(i.onEdit(t))}),p.nrm(2,"i",25),p.k0s()}if(2&e){const e=p.XpG().$implicit,t=p.XpG(4);p.Y8G("appA11yTitle",p.mNQ(p.brH(1,2,"editWithName",t.editInfo().filterName,e.node.name)))}}function M(e,t){1&e&&(p.nrm(0,"i",20),p.nI1(1,"i18n"),p.nI1(2,"i18n")),2&e&&(p.Y8G("appA11yTitle",p.mNQ(p.bMT(1,3,"organizationIsDisabled"))),p.BMQ("aria-label",p.bMT(2,5,"organizationIsDisabled")))}function x(e,t){1&e&&p.eu8(0)}function V(e,t){if(1&e&&p.DNE(0,x,1,0,"ng-container",26),2&e){const e=p.XpG().$implicit,t=p.XpG(4);p.Y8G("ngComponentOutlet",t.optionsInfo().component)("ngComponentOutletInjector",t.createInjector(e.node))}}function G(e,t){1&e&&p.nrm(0,"app-premium-badge")}function U(e,t){1&e&&p.eu8(0)}function O(e,t){if(1&e&&(p.j41(0,"ul",21),p.DNE(1,U,1,0,"ng-container",12),p.k0s()),2&e){const e=p.XpG().$implicit;p.XpG(2);const t=p.sdS(2);p.Y8G("id",e.node.name+"_children"),p.R7$(),p.Y8G("ngTemplateOutlet",t)("ngTemplateOutletContext",p.eq3(3,E,e.children))}}function N(e,t){if(1&e){const e=p.RV6();p.j41(0,"li",13)(1,"span",14),p.nVh(2,T,3,11,"button",15),p.j41(3,"button",16),p.nI1(4,"i18n"),p.bIt("click",function(){const t=r.eBV(e).$implicit,i=p.XpG(4);return r.Njj(i.onFilterSelect(t))}),p.nVh(5,D,1,3,"i",17),p.EFF(6),p.k0s(),p.j41(7,"span",18),p.nVh(8,P,3,6,"button",19),p.nVh(9,M,3,7,"i",20),p.nVh(10,V,1,2,"ng-container"),p.nVh(11,G,1,0,"app-premium-badge"),p.k0s()(),p.nVh(12,O,2,5,"ul",21),p.k0s()}if(2&e){const e=t.$implicit,i=p.XpG(4);p.Y8G("ngClass",p.eq3(15,B,i.isNodeSelected(e))),p.R7$(2),p.vxM(e.children.length?2:-1),p.R7$(),p.Y8G("appA11yTitle",p.ai1("",i.isOrganizationFilter()?"vault":p.bMT(4,13,"filter"),": ",e.node.name))("ngClass",p.eq3(17,S,i.isOrganizationFilter()&&!e.node.enabled)),p.R7$(2),p.vxM(0===e.children.length?5:-1),p.R7$(),p.SpI(" ",e.node.name," "),p.R7$(2),p.vxM(i.editInfo()&&e.node.id?8:-1),p.R7$(),p.vxM(i.isOrganizationFilter()&&!e.node.enabled?9:-1),p.R7$(),p.vxM(i.optionsInfo()&&!e.node.hideOptions?10:-1),p.R7$(),p.vxM(i.premiumFeature()?11:-1),p.R7$(),p.vxM(e.children.length&&!i.isCollapsed(e.node)?12:-1)}}function j(e,t){if(1&e&&p.Z7z(0,N,13,19,"li",13,p.fX1),2&e){const e=t.$implicit;p.Dyx(e)}}function Y(e,t){1&e&&p.eu8(0)}function X(e,t){1&e&&p.eu8(0)}function z(e,t){if(1&e&&p.DNE(0,X,1,0,"ng-container",27),2&e){p.XpG(3);const e=p.sdS(3);p.Y8G("ngTemplateOutlet",e)}}function L(e,t){if(1&e&&(p.j41(0,"ul",5),p.DNE(1,j,2,0,"ng-template",null,2,p.C5r)(3,Y,1,0,"ng-container",12),p.nVh(4,z,1,1,"ng-container"),p.k0s()),2&e){const e=p.sdS(2),t=p.XpG(2);p.Y8G("id",p.VkB("",t.headerNode().node.name,"-filters")),p.R7$(3),p.Y8G("ngTemplateOutlet",e)("ngTemplateOutletContext",p.eq3(5,E,t.filters())),p.R7$(),p.vxM(t.showAddLink()?4:-1)}}function W(e,t){1&e&&p.nrm(0,"hr")}function K(e,t){if(1&e&&(p.nrm(0,"app-coachmark",3,1),p.nVh(2,F,7,15,"div",4),p.nVh(3,L,5,7,"ul",5),p.nVh(4,W,1,0,"hr")),2&e){const e=p.XpG();p.R7$(2),p.vxM(e.headerInfo().showHeader?2:-1),p.R7$(),p.vxM(e.isCollapsed(e.headerNode().node)?-1:3),p.R7$(),p.vxM(e.divider()?4:-1)}}function Z(e,t){1&e&&p.eu8(0)}function H(e,t){1&e&&p.nrm(0,"hr")}function J(e,t){if(1&e&&(p.j41(0,"ul",5),p.DNE(1,Z,1,0,"ng-container",27),p.k0s(),p.nVh(2,H,1,0,"hr")),2&e){const e=p.XpG(),t=p.sdS(3);p.Y8G("id",p.VkB("",e.headerNode().node.name,"-filters")),p.R7$(),p.Y8G("ngTemplateOutlet",t),p.R7$(),p.vxM(e.divider()?2:-1)}}function q(e,t){if(1&e&&(p.j41(0,"li",28)(1,"span",14)(2,"a",29),p.nrm(3,"i",30),p.EFF(4),p.nI1(5,"i18n"),p.k0s()()()),2&e){const e=p.XpG();p.R7$(2),p.Y8G("routerLink",p.mNQ(e.addInfo().route)),p.R7$(2),p.SpI(" ",p.bMT(5,3,e.addInfo().text)," ")}}class ${constructor(e,t,i){this.vaultFilterService=e,this.injector=t,this.accountService=i,this.activeUserId$=(0,u.F6)(this.accountService.activeAccount$),this.section=n.hFB.required(),this.isCollectionFilter=!1,this.coachmarkService=(0,r.WQX)(A.Tu),this.collectionsCoachmarkOpen=(0,s.EW)(()=>"shareWithCollections"===this.coachmarkService.activeStepId()),this.data=(0,o.ot)((0,o.br)(this.section).pipe((0,c.n)(e=>e.data$)),{initialValue:void 0}),this.collapsedFilterNodes=(0,o.ot)(this.vaultFilterService.collapsedFilterNodes$,{initialValue:new Set}),this.headerNode=(0,s.EW)(()=>this.data()),this.headerInfo=(0,s.EW)(()=>this.section().header),this.filters=(0,s.EW)(()=>{var e;return null===(e=this.data())||void 0===e?void 0:e.children}),this.isOrganizationFilter=(0,s.EW)(()=>{var e;return(null===(e=this.data())||void 0===e?void 0:e.node)instanceof d.y}),this.isAllVaultsSelected=(0,s.EW)(()=>this.isOrganizationFilter()&&!this.activeFilter.selectedOrganizationNode),this.editInfo=(0,s.EW)(()=>this.section().edit),this.addInfo=(0,s.EW)(()=>this.section().add),this.showAddLink=(0,s.EW)(()=>{var e;return!!(null===(e=this.section().add)||void 0===e?void 0:e.route)}),this.optionsInfo=(0,s.EW)(()=>this.section().options),this.premiumFeature=(0,s.EW)(()=>{var e;return null===(e=this.section().premiumOptions)||void 0===e?void 0:e.showBadgeForNonPremium}),this.divider=(0,s.EW)(()=>this.section().divider),this.injectors=new Map}isNodeSelected(e){const{organizationId:t,cipherTypeId:i,folderId:n,collectionId:r,isCollectionSelected:s}=this.activeFilter,o="AllCollections"===(null==e?void 0:e.node.id)&&(s||"AllCollections"===r);return t===(null==e?void 0:e.node.id)||i===(null==e?void 0:e.node.id)||n===(null==e?void 0:e.node.id)||o}onFilterSelect(e){return w(this,void 0,void 0,function*(){var t;(null===(t=this.section().premiumOptions)||void 0===t?void 0:t.blockFilterAction)?yield this.section().premiumOptions.blockFilterAction():yield this.section().action(e)})}onEdit(e){var t;null===(t=this.section().edit)||void 0===t||t.action(e.node)}onAdd(){return w(this,void 0,void 0,function*(){var e;null===(e=this.section().add)||void 0===e||e.action()})}get isCollectionTree(){var e,t;return"AllCollections"===(null===(t=null===(e=this.data())||void 0===e?void 0:e.node)||void 0===t?void 0:t.id)}isCollapsed(e){return this.isCollectionTree?"AllCollections"!==e.id&&!this.collapsedFilterNodes().has(e.id):this.collapsedFilterNodes().has(e.id)}toggleCollapse(e){return w(this,void 0,void 0,function*(){const t=this.collapsedFilterNodes();t.has(e.id)?t.delete(e.id):t.add(e.id);const i=yield(0,a._)(this.activeUserId$);yield this.vaultFilterService.setCollapsedFilterNodes(t,i)})}createInjector(e){let t=this.injectors.get(e.id);if(!t){const i=this.section().data$.pipe((0,l.T)(t=>{var i,n;return null===(n=null===(i=null==t?void 0:t.children)||void 0===i?void 0:i.find(t=>t.node.id===e.id))||void 0===n?void 0:n.node}));t=r.zZn.create({providers:[{provide:_,useValue:i}],parent:this.injector}),this.injectors.set(e.id,t)}return t}}$.ɵfac=function(e){return new(e||$)(p.rXU(h.cD),p.rXU(r.zZn),p.rXU(g.D))},$.ɵcmp=p.VBU({type:$,selectors:[["app-filter-section"]],inputs:{activeFilter:"activeFilter",section:[1,"section"],isCollectionFilter:"isCollectionFilter"},standalone:!1,decls:4,vars:1,consts:[["addLink",""],["collectionsCoachmark",""],["recursiveFilters",""],["stepId","shareWithCollections"],[1,"filter-heading",3,"bitPopoverAnchorFor","popoverOpen","spotlight","position","closeOnBackdropClick"],[1,"filter-options",3,"id"],["type","button","aria-controls","sub-filters",1,"toggle-button",3,"click","appA11yTitle"],["aria-hidden","true",1,"bwi","bwi-fw",3,"ngClass"],["type","button",1,"filter-button",3,"appA11yTitle"],[1,"filter-title"],["type","button",1,"filter-button",3,"click","appA11yTitle"],[3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"filter-option",3,"ngClass"],[1,"filter-buttons"],["type","button",1,"toggle-button",3,"appA11yTitle"],["type","button",1,"filter-button",3,"click","appA11yTitle","ngClass"],["aria-hidden","true",3,"class"],[1,"tw-ml-auto","tw-flex","tw-items-center"],["type","button",1,"edit-button",3,"appA11yTitle"],[1,"org-options","bwi","bwi-fw","bwi-exclamation-triangle","text-danger",3,"appA11yTitle"],[1,"nested-filter-options",3,"id"],["type","button",1,"toggle-button",3,"click","appA11yTitle"],["aria-hidden","true"],["type","button",1,"edit-button",3,"click","appA11yTitle"],["aria-hidden","true",1,"bwi","bwi-pencil","bwi-fw"],[4,"ngComponentOutlet","ngComponentOutletInjector"],[4,"ngTemplateOutlet"],[1,"filter-option"],["href","#",1,"filter-button","tw-truncate",3,"routerLink"],["aria-hidden","true",1,"bwi","bwi-plus","bwi-fw"]],template:function(e,t){1&e&&(p.nVh(0,K,5,3)(1,J,3,4),p.DNE(2,q,6,5,"ng-template",null,0,p.C5r)),2&e&&p.vxM(t.filters()&&t.filters().length?0:t.showAddLink()&&t.data()?1:-1)},dependencies:[v.YU,v.OI,v.T3,m.Wk,f.C,y.a,b.d,C.n,I.$],encapsulation:2});const _=new r.nKC("OptionsInput")},18990(e,t,i){"use strict";i.d(t,{m:()=>d});var n=i(84210),r=i(60893),s=i(79783),o=i(25065),a=i(15661),l=i(14041),c=i(11217);class d{}d.ɵfac=function(e){return new(e||d)},d.ɵmod=l.$C({type:d}),d.ɵinj=c.G2t({imports:[o.G,r.t,s.k,a.nk,n.YN,o.G,r.t]})},62819(e,t,i){"use strict";i.d(t,{l:()=>I});var n=i(11217),r=i(68108),s=i(72135),o=i(68711),a=i(69783),l=i(191),c=i(21571),d=i(12012),u=i(67553),h=i(18499),A=i(7356),p=i(35500),g=i(3633),v=i(5556),m=i(81356),f=i(50451),y=i(7025),b=i(84330),C=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class I{constructor(){this.policyService=(0,n.WQX)(h.m),this.organizationService=(0,n.WQX)(u.PV),this.routedVaultFilterService=(0,n.WQX)(b.BR),this.collectionAdminService=(0,n.WQX)(c.vE),this.cipherService=(0,n.WQX)(v.p),this.apiService=(0,n.WQX)(d.G),this.accountService=(0,n.WQX)(p.D),this.userId$=this.accountService.activeAccount$.pipe(g.F6),this.organizationDataOwnershipDisabled$=this.userId$.pipe((0,l.n)(e=>this.policyService.policyAppliesToUser$(A.tt.OrganizationDataOwnership,e)),(0,a.T)(e=>!e)),this.organizationId$=this.routedVaultFilterService.filter$.pipe((0,a.T)(e=>e.organizationId),(0,o.p)(e=>void 0!==e)),this.allOrganizations$=this.userId$.pipe((0,l.n)(e=>this.organizationService.organizations$(e).pipe((0,a.T)(e=>e.filter(e=>e.isMember&&e.status===A.Zx.Confirmed))))),this.organization$=(0,s.z)([this.allOrganizations$,this.organizationId$]).pipe((0,a.T)(([e,t])=>e.find(e=>e.id===t))),this.allCollections$=(0,s.z)([this.organization$,this.userId$]).pipe((0,l.n)(([e,t])=>this.collectionAdminService.collectionAdminViews$(e.id,t)))}buildConfig(e,t,i){return C(this,void 0,void 0,function*(){var n,o,a;const[l,c,d,u]=yield(0,r._)((0,s.z)([this.organization$,this.organizationDataOwnershipDisabled$,this.allOrganizations$,this.allCollections$])),h="clone"===e?d:[l],A="clone"===e&&c,p=yield this.getCipher(t,l);return{mode:e,cipherType:null!==(o=null!==(n=null==p?void 0:p.type)&&void 0!==n?n:i)&&void 0!==o?o:m.gC.Login,admin:null!==(a=l.canEditAllCiphers)&&void 0!==a&&a,organizationDataOwnershipDisabled:A,originalCipher:p,collections:u,organizations:h,folders:[],hideIndividualVaultFields:!0,isAdminConsole:!0}})}getCipher(e,t){return C(this,void 0,void 0,function*(){if(null==e)return null;const i=yield this.cipherService.get(e,t.userId);return t.canEditAllCiphers||null==i?yield this.getCipherFromAdminApi(e):i})}getCipherFromAdminApi(e){return C(this,void 0,void 0,function*(){const t=yield this.apiService.getCipherAdmin(e);t.edit=!0,t.viewPassword=!0;const i=new f.A(t);return new y.o(i)})}}I.ɵfac=function(e){return new(e||I)},I.ɵprov=n.jDH({token:I,factory:I.ɵfac})},84431(e,t,i){"use strict";i.d(t,{d:()=>Q});var n=i(84210),r=i(54596),s=i(88744),o=i(50866),a=i(25065),l=i(14041),c=i(69855),d=i(44075),u=i(12012),h=i(50700),A=i(37115),p=i(62166),g=i(26983),v=i(26657),m=i(38620),f=i(56898),y=i(44432),b=i(7730),C=i(45635),I=i(67311),w=i(58806),B=i(7855),E=i(25740),S=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Q{constructor(e,t,i,r,s,o,a,l,c){this.data=e,this.dialogRef=t,this.apiService=i,this.i18nService=r,this.platformUtilsService=s,this.userVerificationService=o,this.router=a,this.syncService=l,this.toastService=c,this.organizationId=null,this.formGroup=new n.gE({masterPassword:new n.MJ(null)}),this.submit=()=>S(this,void 0,void 0,function*(){const e=this.userVerificationService.buildRequest(this.formGroup.value.masterPassword).then(e=>this.apiService.postPurgeCiphers(e,this.organizationId));yield e,this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("vaultPurged")}),yield this.syncService.fullSync(!0),null!=this.organizationId?yield this.router.navigate(["organizations",this.organizationId,"vault"]):yield this.router.navigate(["vault"]),yield this.dialogRef.close()}),this.organizationId=e&&e.organizationId?e.organizationId:null}static open(e,t){return e.open(Q,t)}}Q.ɵfac=function(e){return new(e||Q)(l.rXU(s.Qs),l.rXU(d.ce),l.rXU(u.G),l.rXU(h.W),l.rXU(A.y),l.rXU(p.i),l.rXU(g.Ix),l.rXU(r.H),l.rXU(c.f))},Q.ɵcmp=l.VBU({type:Q,selectors:[["ng-component"]],decls:17,vars:17,consts:[["bit-dialog","","dialogSize","default",3,"formGroup","bitSubmit","title"],["bitDialogContent",""],["bitTypography","body1"],["type","warning"],["formControlName","masterPassword"],["bitDialogFooter",""],["bitButton","","bitFormButton","","type","submit","buttonType","danger"],["bitButton","","bitFormButton","","type","button","buttonType","secondary","bitDialogClose",""]],template:function(e,t){1&e&&(l.j41(0,"form",0),l.nI1(1,"i18n"),l.qex(2,1),l.j41(3,"p",2),l.EFF(4),l.nI1(5,"i18n"),l.k0s(),l.j41(6,"bit-callout",3),l.EFF(7),l.nI1(8,"i18n"),l.k0s(),l.nrm(9,"app-user-verification",4),l.bVm(),l.qex(10,5),l.j41(11,"button",6),l.EFF(12),l.nI1(13,"i18n"),l.k0s(),l.j41(14,"button",7),l.EFF(15),l.nI1(16,"i18n"),l.k0s(),l.bVm(),l.k0s()),2&e&&(l.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit)("title",l.bMT(1,7,"purgeVault")),l.R7$(4),l.SpI(" ",l.bMT(5,9,t.organizationId?"purgeOrgVaultDesc":"purgeVaultDesc")," "),l.R7$(3),l.JRh(l.bMT(8,11,"purgeVaultWarning")),l.R7$(5),l.SpI(" ",l.bMT(13,13,"purgeVault")," "),l.R7$(3),l.SpI(" ",l.bMT(16,15,"close")," "))},dependencies:[a.G,n.qT,n.BC,n.cb,n.j4,n.JD,v.$,m.L,f.Q,y.G,b.I,C.m,I.hJ,w.r,o.R6,B.q,E.$],encapsulation:2})},33559(e,t,i){"use strict";var n=i(18203),r=i(24590),s=i(49856),o=i(7130),a=i(84210),l=i(91922),c=i(92128),d=i(87806),u=i(68108),h=i(68711),A=i(6586),p=i(69783),g=i(28990),v=i(67553),m=i(84110),f=i(3633),y=i(7751),b=i(31066),C=i(31857),I=i(8916),w=i(14041),B=i(11217),E=i(52396),S=i(74526),Q=i(5556),k=i(68455),R=i(26983),F=i(69855),T=i(66316),D=i(78950),P=i(35284),M=i(49519),x=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class V{constructor(){this.router=(0,B.WQX)(R.Ix),this.ngZone=(0,B.WQX)(B.SKi),this.start$=this.router.events.pipe((0,c.pQ)(),(0,h.p)(e=>e instanceof R.wF),(0,D.i)(1),(0,p.T)(()=>{var e,t;const i=null===(e=this.router.currentNavigation())||void 0===e?void 0:e.extras;return null===(t=null==i?void 0:i.state)||void 0===t?void 0:t.focusAfterNav}),(0,h.p)(e=>!1!==e),(0,P.M)(e=>x(this,void 0,void 0,function*(){let t="main";"string"==typeof e&&e.length>0&&(t=e),this.ngZone.isStable||(yield(0,u._)(this.ngZone.onStable)),this.focusTargetEl(t)})))}focusTargetEl(e){const t=document.querySelector(e),i=document.querySelector("main");i&&(0,M.U)(i).length>0||(t?t.focus():console.warn(`RouterFocusManager: Could not find element with selector "${e}"`))}}V.ɵfac=function(e){return new(e||V)},V.ɵprov=B.jDH({token:V,factory:V.ɵfac,providedIn:"root"});var G=i(37115);class U{}var O=i(1601),N=i(35500);class j{}class Y{}class X{constructor(e,t){this.document=e,this.i18nService=t}start(){return this.i18nService.locale$.subscribe(e=>{this.document.documentElement.lang=e})}}var z=i(83078),L=i(46758),W=i(21371);class K{constructor(e){this.toastrService=e,this.toastContainer=(0,r.ebz)(W.kZ)}ngOnInit(){this.toastrService.overlayContainer=this.toastContainer()}}K.ɵfac=function(e){return new(e||K)(w.rXU(W.tw))},K.ɵcmp=w.VBU({type:K,selectors:[["bit-toast-container"]],viewQuery:function(e,t){1&e&&w.wEZ(t.toastContainer,W.kZ,5),2&e&&w.NyB()},decls:1,vars:0,consts:[["role","status","aria-live","polite","aria-atomic","true","toastContainer",""]],template:function(e,t){1&e&&w.nrm(0,"div",0)},dependencies:[W.kZ],encapsulation:2});var Z=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function H(e,t){1&e&&(w.j41(0,"div",2)(1,"div",3),w.nrm(2,"img",4),w.k0s(),w.j41(3,"div",5),w.nrm(4,"i",6),w.k0s(),w.j41(5,"div",7)(6,"div",8),B.qSk(),w.j41(7,"svg",9)(8,"g",10),w.nrm(9,"path",11)(10,"path",12)(11,"path",13)(12,"path",14)(13,"path",15)(14,"path",16)(15,"path",17)(16,"path",18)(17,"path",19)(18,"path",20)(19,"path",21)(20,"path",22)(21,"path",23)(22,"path",24)(23,"path",25)(24,"path",26)(25,"path",27)(26,"path",28),w.k0s(),w.j41(27,"defs")(28,"clipPath",29),w.nrm(29,"path",30),w.k0s()()(),w.EFF(30," `; "),w.k0s(),B.joV(),w.j41(31,"div",31),B.qSk(),w.j41(32,"svg",32)(33,"g",33),w.nrm(34,"path",34)(35,"path",35)(36,"path",36)(37,"circle",37)(38,"circle",38)(39,"path",39)(40,"path",40)(41,"path",41)(42,"path",42)(43,"path",43)(44,"path",44)(45,"path",45)(46,"path",46)(47,"path",47)(48,"path",48),w.k0s(),w.j41(49,"defs")(50,"clipPath",49),w.nrm(51,"path",50),w.k0s()()()()()())}function J(e,t){1&e&&(w.qex(0),w.nrm(1,"router-outlet"),w.bVm())}const q="AppComponent";class ${constructor(e,t,i,n,r,s,o,a,l,u,h,A,p,g,v,m,f,y,b,C,I,w,B,E,S){this.broadcasterService=e,this.folderService=t,this.cipherService=i,this.authService=n,this.router=r,this.toastService=s,this.platformUtilsService=o,this.ngZone=a,this.keyService=l,this.lockService=u,this.serverNotificationsService=h,this.stateService=A,this.eventUploadService=p,this.configService=g,this.dialogService=v,this.biometricStateService=m,this.stateEventRunnerService=f,this.organizationService=y,this.accountService=b,this.processReloadService=C,this.deviceTrustToastService=I,this.destroy=w,this.documentLangSetter=B,this.tokenService=E,this.routerFocusManager=S,this.lastActivity=null,this.idleTimer=null,this.isIdle=!1,this.destroy$=new d.B,this.loading=!1,this.deviceTrustToastService.setupListeners$.pipe((0,c.pQ)()).subscribe();const Q=this.documentLangSetter.start();this.routerFocusManager.start$.pipe((0,c.pQ)()).subscribe(),this.destroy.onDestroy(()=>{Q.unsubscribe()})}ngOnInit(){this.ngZone.runOutsideAngular(()=>{window.onmousemove=()=>this.recordActivity(),window.onmousedown=()=>this.recordActivity(),window.ontouchstart=()=>this.recordActivity(),window.onclick=()=>this.recordActivity(),window.onscroll=()=>this.recordActivity(),window.onkeypress=()=>this.recordActivity()}),this.broadcasterService.subscribe(q,e=>Z(this,void 0,void 0,function*(){this.ngZone.run(()=>Z(this,void 0,void 0,function*(){switch(e.command){case"authBlocked":this.router.navigate(["/"]);break;case"logout":yield this.logOut(e.redirect);break;case"lockVault":{const e=yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6));yield this.lockService.lock(e);break}case"locked":yield this.router.navigate(["/"]),yield this.processReloadService.startProcessReload();break;case"lockedUrl":case"syncStarted":default:break;case"syncCompleted":e.successfully&&(yield this.configService.ensureConfigFetched());break;case"upgradeOrganization":(yield this.dialogService.openSimpleDialog({title:{key:"upgradeOrganization"},content:{key:"upgradeOrganizationDesc"},acceptButtonText:{key:"upgradeOrganization"},type:"info"}))&&this.router.navigate(["organizations",e.organizationId,"billing","subscription"]);break;case"emailVerificationRequired":(yield this.dialogService.openSimpleDialog({title:{key:"emailVerificationRequired"},content:{key:"emailVerificationRequiredDesc"},acceptButtonText:{key:"learnMore"},type:"info"}))&&this.platformUtilsService.launchUri("https://bitwarden.com/help/create-bitwarden-account/");break;case"showToast":this.toastService._showToast(e);break;case"convertAccountToKeyConnector":this.router.navigate(["/remove-password"]);break;case"syncOrganizationStatusChanged":{const{organizationId:t,enabled:i}=e,n=yield(0,u._)((0,f.F6)(this.accountService.activeAccount$)),r=(yield(0,u._)(this.organizationService.organizations$(n))).find(e=>e.id===t);if(r){const e=Object.assign(Object.assign({},r),{enabled:i});yield this.organizationService.upsert(e,n)}break}case"syncOrganizationCollectionSettingChanged":{const{organizationId:t,limitCollectionCreation:i,limitCollectionDeletion:n}=e,r=yield(0,u._)((0,f.F6)(this.accountService.activeAccount$)),s=(yield(0,u._)(this.organizationService.organizations$(r))).find(e=>e.id===t);s&&(yield this.organizationService.upsert(Object.assign(Object.assign({},s),{limitCollectionCreation:i,limitCollectionDeletion:n}),r));break}}}))}))}ngOnDestroy(){this.broadcasterService.unsubscribe(q),this.destroy$.next(),this.destroy$.complete()}logOut(){return Z(this,arguments,void 0,function*(e=!0){this.ngZone.run(()=>{this.loading=!0,document.body.classList.add("layout_frontend")}),yield this.eventUploadService.uploadEvents();const t=yield(0,u._)((0,f.F6)(this.accountService.activeAccount$)),i=(0,u._)(this.authService.authStatusFor$(t).pipe((0,h.p)(e=>e===m.J.LoggedOut),(0,A.w)({first:5e3,with:()=>{throw new Error("The logout process did not complete in a reasonable amount of time.")}})));yield Promise.all([this.keyService.clearKeys(t),this.cipherService.clear(t),this.folderService.clear(t),this.biometricStateService.logout(t)]),yield this.stateEventRunnerService.handleEvent("logout",t),this.authService.logOut(()=>Z(this,void 0,void 0,function*(){yield this.stateService.clean({userId:t}),yield this.tokenService.clearTokens(t),yield this.accountService.clean(t),yield this.accountService.switchAccount(null),yield i,e&&(yield this.router.navigate(["/"])),yield this.processReloadService.startProcessReload()}),t)})}recordActivity(){return Z(this,void 0,void 0,function*(){const e=yield(0,u._)(this.accountService.activeAccount$.pipe((0,p.T)(e=>null==e?void 0:e.id))),t=new Date;null!=this.lastActivity&&t.getTime()-this.lastActivity.getTime()<250||(this.lastActivity=t,yield this.accountService.setAccountActivity(e,t),this.isIdle&&(this.isIdle=!1,this.idleStateChanged()),null!=this.idleTimer&&(window.clearTimeout(this.idleTimer),this.idleTimer=null),this.idleTimer=window.setTimeout(()=>{this.isIdle||(this.isIdle=!0,this.idleStateChanged())},6e5))})}idleStateChanged(){this.isIdle?this.serverNotificationsService.disconnectFromInactivity():this.serverNotificationsService.reconnectFromActivity()}}$.ɵfac=function(e){return new(e||$)(w.rXU(E.y),w.rXU(S.Z),w.rXU(Q.p),w.rXU(k.u),w.rXU(R.Ix),w.rXU(F.f),w.rXU(G.y),w.rXU(B.SKi),w.rXU(I.Lu),w.rXU(g.FQ),w.rXU(U),w.rXU(b.dw),w.rXU(y.fH),w.rXU(O.w),w.rXU(T.o),w.rXU(I.vB),w.rXU(C.lR),w.rXU(v.k4),w.rXU(N.D),w.rXU(j),w.rXU(Y),w.rXU(B.abz),w.rXU(X),w.rXU(z.B),w.rXU(V))},$.ɵcmp=w.VBU({type:$,selectors:[["app-root"]],standalone:!1,decls:4,vars:2,consts:[["loadingState",""],[4,"ngIf","ngIfElse"],[1,"tw-flex","tw-flex-col","tw-min-h-[100vh]"],[1,"tw-pt-5","tw-px-5","tw-fixed"],["alt","Vaultwarden",1,"new-logo-themed","!tw-w-[200px]"],[1,"spinner-container","tw-justify-center"],["title","Loading","aria-hidden","true",1,"bwi","bwi-spinner","bwi-spin","bwi-3x","tw-text-muted"],[1,"tw-relative","tw-grow"],[1,"tw-hidden","md:tw-block","[&_svg]:tw-absolute","[&_svg]:tw-z-[1]","tw-opacity-[.11]","[&_svg]:tw-bottom-0","[&_svg]:tw-start-0","[&_svg]:tw-w-[35%]","[&_svg]:tw-max-w-[450px]"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 501 226"],["clip-path","url(#left-a)"],["d","M-71.691 6.821a4 4 0 0 1 4-4h296.5a4 4 0 0 1 4 4v188a4 4 0 0 1-4 4h-296.5a4 4 0 0 1-4-4v-188Z",1,"tw-fill-illustration-bg-primary"],["d","M-48.941 25.821a2 2 0 0 1 2-2h127.5v154h-127.5a2 2 0 0 1-2-2v-150Z",1,"tw-fill-illustration-bg-primary"],["d","M80.559 25.82a2 2 0 0 1 2-2h125.5a2 2 0 0 1 2 2v150.001a2 2 0 0 1-2 2h-125.5a2 2 0 0 1-2-2v-150ZM45.871 89.854c0 17.155-13.96 31.062-31.182 31.062-17.221 0-31.182-13.907-31.182-31.062s13.96-31.062 31.182-31.062c17.221 0 31.182 13.907 31.182 31.062Z",1,"tw-fill-illustration-bg-tertiary"],["d","M72.396 153.443a57.243 57.243 0 0 1 4.663 22.604v1.222a2 2 0 0 1-2 2h-118.5a2 2 0 0 1-2-2v-1.222a57.243 57.243 0 0 1 4.662-22.604c3.078-7.167 7.59-13.678 13.277-19.163 5.688-5.485 12.44-9.836 19.871-12.805a63.228 63.228 0 0 1 23.44-4.496 63.227 63.227 0 0 1 23.439 4.496c7.431 2.969 14.183 7.32 19.87 12.805 5.688 5.485 10.2 11.996 13.278 19.163Z",1,"tw-fill-illustration-bg-tertiary"],["d","M161.629 57.193c0 9.182-7.579 16.625-16.927 16.625-9.349 0-16.928-7.443-16.928-16.625 0-9.181 7.579-16.625 16.928-16.625 9.348 0 16.927 7.444 16.927 16.625Z",1,"tw-fill-illustration-bg-secondary"],["d","M176.028 89.071a29.33 29.33 0 0 1 2.531 11.894c0 .937-.759 1.696-1.696 1.696h-63.109a1.695 1.695 0 0 1-1.695-1.696c0-4.081.86-8.123 2.531-11.894 1.671-3.77 4.12-7.197 7.207-10.083 3.088-2.886 6.753-5.176 10.787-6.738a35.275 35.275 0 0 1 12.725-2.366c4.366 0 8.69.804 12.724 2.366 4.034 1.562 7.699 3.852 10.787 6.738 3.087 2.886 5.537 6.312 7.208 10.083ZM161.629 134.193c0 9.182-7.579 16.625-16.927 16.625-9.349 0-16.928-7.443-16.928-16.625s7.579-16.625 16.928-16.625c9.348 0 16.927 7.443 16.927 16.625Z",1,"tw-fill-illustration-bg-secondary"],["d","M176.028 165.953a28.993 28.993 0 0 1 2.531 11.821c0 .93-.755 1.684-1.685 1.684h-63.131c-.93 0-1.684-.754-1.684-1.684 0-4.057.86-8.074 2.531-11.821 1.671-3.748 4.12-7.153 7.207-10.021 3.088-2.869 6.753-5.144 10.787-6.696a35.456 35.456 0 0 1 12.725-2.352c4.366 0 8.69.799 12.724 2.352 4.034 1.552 7.699 3.827 10.787 6.696 3.087 2.868 5.537 6.273 7.208 10.021ZM-87.441 199.521h332.5v14.5c0 5.523-4.478 10-10 10h-312.5c-5.523 0-10-4.477-10-10v-14.5Z",1,"tw-fill-illustration-bg-secondary"],["fill-rule","evenodd","d","M208.059 21.82a4 4 0 0 1 4 4v150.001a4 4 0 0 1-4 4l-255 .001a4 4 0 0 1-4-4v-150a4 4 0 0 1 4-4l255-.001Zm-255 154.002h1.5a57.23 57.23 0 0 1 4.378-21.706l.284-.673c2.982-6.943 7.31-13.27 12.748-18.646l.529-.517c5.688-5.485 12.44-9.836 19.871-12.805a62.937 62.937 0 0 1 10.036-3.065c-11.113-4.751-18.897-15.747-18.897-28.556 0-17.155 13.96-31.061 31.182-31.062 17.22 0 31.18 13.907 31.181 31.062 0 12.537-7.457 23.338-18.192 28.245a62.952 62.952 0 0 1 11.569 3.376c7.431 2.969 14.184 7.32 19.871 12.805 5.688 5.485 10.2 11.996 13.278 19.163a57.251 57.251 0 0 1 4.66 22.379h1.502v-150h-125.5v150Zm129.5-.001h29.568a29.02 29.02 0 0 1 2.159-9.161l.304-.706c1.671-3.748 4.12-7.154 7.207-10.022 2.894-2.689 6.297-4.857 10.035-6.396l.752-.299c.996-.383 2.01-.721 3.037-1.012-4.602-2.879-7.693-7.881-7.841-13.602l-.006-.429c0-9.182 7.579-16.625 16.928-16.625l.437.006c9.146.227 16.49 7.581 16.49 16.619l-.006.429c-.144 5.571-3.08 10.461-7.484 13.372 1.321.338 2.622.752 3.894 1.242 4.034 1.552 7.7 3.827 10.787 6.695 3.088 2.868 5.536 6.274 7.207 10.022a29.066 29.066 0 0 1 2.462 9.867h29.57v-73h-125.5v73Zm62.75-24.936c-3.881 0-7.718.71-11.288 2.084-3.571 1.374-6.797 3.382-9.501 5.894-2.704 2.511-4.831 5.478-6.277 8.72a25.125 25.125 0 0 0-2.074 7.876h58.279a25.125 25.125 0 0 0-2.074-7.876c-1.445-3.242-3.573-6.209-6.276-8.72-2.705-2.512-5.931-4.52-9.501-5.894a31.473 31.473 0 0 0-11.288-2.084Zm-129.5-29.906a59.215 59.215 0 0 0-21.955 4.211c-6.957 2.779-13.269 6.848-18.579 11.969-5.31 5.12-9.513 11.191-12.378 17.862a53.266 53.266 0 0 0-4.332 20.248H73.053a53.266 53.266 0 0 0-4.332-20.248c-2.866-6.671-7.07-12.742-12.38-17.862-5.31-5.121-11.621-9.19-18.577-11.969a59.215 59.215 0 0 0-21.955-4.211Zm128.893.59c-7.208 0-12.928 5.72-12.928 12.625.001 6.904 5.721 12.624 12.928 12.624 7.208 0 12.926-5.72 12.927-12.624 0-6.905-5.719-12.625-12.927-12.625ZM14.69 62.792c-15.027 0-27.182 12.13-27.182 27.062 0 14.931 12.155 27.062 27.181 27.063 15.027-.001 27.182-12.132 27.182-27.063S29.716 62.793 14.69 62.792Zm67.869 36.029h29.579c.229-3.094.952-6.141 2.148-9.04l.304-.71a30.936 30.936 0 0 1 6.636-9.536l.571-.547a33.416 33.416 0 0 1 10.035-6.437l.752-.3a34.78 34.78 0 0 1 3.047-1.021c-4.607-2.878-7.703-7.883-7.851-13.607l-.006-.43c0-9.18 7.579-16.624 16.928-16.624l.437.006c9.146.227 16.49 7.58 16.49 16.619l-.006.429c-.144 5.574-3.082 10.465-7.49 13.376 1.324.34 2.626.758 3.9 1.252 4.034 1.561 7.7 3.85 10.787 6.737 3.088 2.886 5.536 6.312 7.207 10.083a29.407 29.407 0 0 1 2.451 9.75h29.581v-73h-125.5v73Zm62.75-24.937c-3.878 0-7.712.714-11.281 2.096-3.568 1.382-6.795 3.401-9.5 5.93-2.704 2.528-4.833 5.515-6.281 8.782a25.432 25.432 0 0 0-2.08 7.969h58.283a25.432 25.432 0 0 0-2.08-7.97c-1.447-3.266-3.577-6.253-6.281-8.781-2.705-2.529-5.931-4.548-9.5-5.93a31.275 31.275 0 0 0-11.28-2.096Zm-.607-29.315c-7.208 0-12.928 5.72-12.928 12.625.001 6.904 5.721 12.624 12.928 12.624 7.208 0 12.926-5.72 12.927-12.624 0-6.905-5.719-12.625-12.927-12.625Z","clip-rule","evenodd",1,"tw-fill-illustration-outline"],["fill-rule","evenodd","d","M228.809.822a6 6 0 0 1 6 6v188a5.97 5.97 0 0 1-.643 2.699h12.893v16.5c0 6.627-5.373 12-12 12h-312.5c-6.628 0-12-5.373-12-12v-16.5h16.391a5.966 5.966 0 0 1-.634-2.391l-.007-.308v-188a6 6 0 0 1 6-6h296.5ZM-85.441 214.02a8 8 0 0 0 8 8h312.5a8 8 0 0 0 8-8v-12.5h-328.5v12.5Zm17.75-209.2a2 2 0 0 0-2 2v188.001l.01.204a2 2 0 0 0 1.99 1.796h296.5a2.001 2.001 0 0 0 2-2v-188a2 2 0 0 0-2-2h-296.5Z","clip-rule","evenodd",1,"tw-fill-illustration-outline"],["d","M378.821 114.003a1.997 1.997 0 0 0-.675 1.497v8.396c0 .583.254 1.136.697 1.515l11.455 9.825a2 2 0 0 1 .543 2.286l-4.203 10.056a1.998 1.998 0 0 1-1.936 1.224l-15.288-.717a1.997 1.997 0 0 0-1.501.579l-6.014 5.979a1.995 1.995 0 0 0-.583 1.569l1.145 14.942a1.997 1.997 0 0 1-1.22 1.995l-9.958 4.169a1.997 1.997 0 0 1-2.252-.503l-10.221-11.309a1.998 1.998 0 0 0-1.482-.658h-8.474c-.579 0-1.129.252-1.508.689l-9.889 11.4a1.998 1.998 0 0 1-2.28.534l-9.969-4.174a1.998 1.998 0 0 1-1.224-1.937l.721-15.182a2 2 0 0 0-.587-1.51l-6.014-5.98a1.996 1.996 0 0 0-1.559-.575l-15.049 1.14a1.997 1.997 0 0 1-1.993-1.221l-4.198-10.045a1.997 1.997 0 0 1 .512-2.258l11.363-10.155c.424-.379.666-.92.666-1.489v-8.403c0-.583-.254-1.136-.696-1.516l-11.456-9.824a1.997 1.997 0 0 1-.542-2.286L279.354 92a1.998 1.998 0 0 1 1.936-1.224l15.288.717a1.998 1.998 0 0 0 1.502-.579l6.007-5.974c.418-.415.631-.995.582-1.582l-1.292-15.419a1.995 1.995 0 0 1 1.218-2.008l9.942-4.163a1.996 1.996 0 0 1 2.258.51l10.552 11.786c.379.423.92.665 1.488.665h8.469c.579 0 1.129-.25 1.508-.688l9.889-11.4a1.996 1.996 0 0 1 2.279-.534l9.97 4.174a1.999 1.999 0 0 1 1.224 1.937l-.721 15.181a2 2 0 0 0 .587 1.51l6.014 5.98c.411.41.98.62 1.558.576l15.049-1.14a1.996 1.996 0 0 1 1.993 1.22l4.195 10.036c.33.79.12 1.702-.521 2.268l-11.507 10.154Z",1,"tw-fill-illustration-bg-primary"],["fill-rule","evenodd","d","M313.765 59.926a3.994 3.994 0 0 1 4.518 1.02l10.552 11.786h8.469l9.888-11.4a3.994 3.994 0 0 1 4.559-1.067l9.97 4.174a3.994 3.994 0 0 1 2.447 3.873l-.72 15.182 6.013 5.98 15.049-1.14a3.995 3.995 0 0 1 3.987 2.442l4.194 10.035a3.992 3.992 0 0 1-1.042 4.534L380.142 115.5v8.396l11.456 9.824a3.995 3.995 0 0 1 1.085 4.571l-4.203 10.056a3.993 3.993 0 0 1-3.872 2.449l-15.288-.717-6.013 5.98 1.145 14.943a3.994 3.994 0 0 1-2.44 3.988l-9.958 4.169a3.992 3.992 0 0 1-4.505-1.005l-10.221-11.309h-8.474l-9.889 11.4a3.993 3.993 0 0 1-4.559 1.067l-9.97-4.174a3.993 3.993 0 0 1-2.446-3.873l.72-15.181-6.014-5.98-15.049 1.14a3.993 3.993 0 0 1-3.986-2.442l-4.198-10.045a3.993 3.993 0 0 1 1.023-4.517l11.363-10.155v-8.403l-11.455-9.825a3.992 3.992 0 0 1-1.085-4.571l4.203-10.056a3.993 3.993 0 0 1 3.872-2.45l15.287.718 6.008-5.974-1.292-15.418a3.992 3.992 0 0 1 2.437-4.017l9.941-4.163Zm1.543 3.684-9.942 4.162 1.292 15.419a3.992 3.992 0 0 1-1.163 3.165l-6.008 5.974a3.994 3.994 0 0 1-3.003 1.157l-15.288-.717-4.202 10.056 11.455 9.824a3.993 3.993 0 0 1 1.394 3.032v8.403c0 1.137-.485 2.22-1.332 2.978l-11.364 10.154 4.198 10.045 15.049-1.14a3.994 3.994 0 0 1 3.118 1.15l6.014 5.98a3.996 3.996 0 0 1 1.173 3.021l-.72 15.181 9.969 4.175 9.889-11.401a3.994 3.994 0 0 1 3.017-1.377h8.474c1.129 0 2.206.478 2.963 1.316l10.221 11.309 9.958-4.169-1.145-14.943a3.996 3.996 0 0 1 1.166-3.137l6.013-5.979a3.997 3.997 0 0 1 3.003-1.158l15.288.717 4.203-10.056-11.456-9.824a3.995 3.995 0 0 1-1.393-3.031V115.5c0-1.146.492-2.236 1.351-2.994l11.506-10.155-4.194-10.035-15.049 1.14a3.991 3.991 0 0 1-3.117-1.15l-6.014-5.98a3.99 3.99 0 0 1-1.173-3.022l.72-15.181-9.97-4.174-9.889 11.4a3.992 3.992 0 0 1-3.016 1.377h-8.469a3.992 3.992 0 0 1-2.975-1.33L315.308 63.61Z","clip-rule","evenodd",1,"tw-fill-illustration-outline"],["d","M353.438 119.624c0 11.289-9.152 20.441-20.442 20.441-11.289 0-20.441-9.152-20.441-20.441 0-11.29 9.152-20.442 20.441-20.442 11.29 0 20.442 9.152 20.442 20.442Z",1,"tw-fill-illustration-logo"],["fill-rule","evenodd","d","M332.996 101.179c-10.186 0-18.444 8.258-18.444 18.444 0 10.187 8.258 18.445 18.444 18.445 10.187 0 18.445-8.258 18.445-18.445 0-10.186-8.258-18.444-18.445-18.444Zm-22.438 18.444c0-12.392 10.046-22.438 22.438-22.438 12.393 0 22.439 10.046 22.439 22.438 0 12.393-10.046 22.439-22.439 22.439-12.392 0-22.438-10.046-22.438-22.439Z","clip-rule","evenodd",1,"tw-fill-illustration-outline"],["d","m497.152 164.106-7.588-7.587a3.004 3.004 0 0 0-4.245-.003l-4.055 4.047 11.83 11.83 4.055-4.047a2.996 2.996 0 0 0 .003-4.24Z",1,"tw-fill-illustration-bg-tertiary"],["d","M500.922 194.274c0 22.644-18.356 41-41 41s-41-18.356-41-41 18.356-41 41-41 41 18.356 41 41Z",1,"tw-fill-illustration-bg-secondary"],["d","M459.03 177.416a2 2 0 1 1 4 0v18.469c0 .613-.282 1.192-.763 1.571l-12.032 9.48a2.001 2.001 0 0 1-2.809-.333 2.002 2.002 0 0 1 .334-2.809l11.27-8.881v-17.497Z",1,"tw-fill-illustration-outline"],["d","M450.936 144.041a2 2 0 0 1 2-2h13.972a2 2 0 0 1 2 2v3.863a2 2 0 0 1-2 2h-13.972a2 2 0 0 1-2-2v-3.863Z",1,"tw-fill-illustration-bg-tertiary"],["fill-rule","evenodd","d","M467.114 140.046a4 4 0 0 1 3.794 3.995v3.863a3.999 3.999 0 0 1-3.931 3.998v1.978a40.72 40.72 0 0 1 13.484 4.903l3.69-3.68a5.008 5.008 0 0 1 7.076.003l7.587 7.588.177.186a4.994 4.994 0 0 1-.181 6.881l-3.615 3.606a40.801 40.801 0 0 1 5.727 20.907c0 22.644-18.357 41-41 41-22.644 0-41-18.356-41-41 0-20.434 14.949-37.375 34.507-40.487v-1.883h-.493a4 4 0 0 1-4-4v-3.863a4 4 0 0 1 4-4h13.972l.206.005Zm-7.192 17.228c-20.435 0-37 16.566-37 37 0 20.435 16.565 37 37 37 20.434 0 37-16.565 37-37 0-20.434-16.566-37-37-37Zm28.473.658a1.002 1.002 0 0 0-1.416-.001l-2.638 2.633 9.001 9.002 2.639-2.633a1 1 0 0 0 .07-1.338l-.069-.075-7.587-7.588Zm-30.966-6.028v1.447a41.171 41.171 0 0 1 5.548.036v-1.483h-5.548Zm-4.493-4h13.972v-3.863h-13.972v3.863Z","clip-rule","evenodd",1,"tw-fill-illustration-outline"],["id","left-a"],["d","M0 0h501v226H0z",1,"tw-fill-illustration-bg-tertiary"],[1,"tw-hidden","md:tw-block","[&_svg]:tw-absolute","tw-z-[1]","tw-opacity-[.11]","[&_svg]:tw-bottom-0","[&_svg]:tw-end-0","[&_svg]:tw-w-[35%]","[&_svg]:tw-max-w-[450px]"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 506 297"],["clip-path","url(#right-a)"],["d","M45.673 294.742v-29.124l22.323 16.198-15.395 15.75a4.04 4.04 0 0 1-6.928-2.824Z",1,"tw-fill-illustration-bg-primary"],["d","m4.978 240.865 95.568-44.738c3.52-1.648 7.492 1.175 7.093 5.041l-9.608 93.173c-.395 3.823-4.774 5.79-7.893 3.547l-43.43-31.233-41.47-16.621c-4.06-1.627-4.221-7.315-.26-9.169Z",1,"tw-fill-illustration-bg-tertiary"],["d","M99.698 194.315c4.929-2.306 10.489 1.645 9.931 7.058l-9.608 93.174c-.552 5.351-6.683 8.105-11.05 4.965l-20.832-14.983-14.107 14.435a6.04 6.04 0 0 1-10.359-4.222v-27.151l-39.178-15.7c-5.684-2.278-5.91-10.242-.364-12.838l95.567-44.738Zm5.953 6.648c.239-2.32-2.144-4.013-4.256-3.025L5.827 242.676c-2.376 1.112-2.28 4.525.156 5.502l40.159 16.093 26.703-30.327a2.001 2.001 0 0 1 3.002 2.644l-26.178 29.731 41.637 29.945c1.872 1.346 4.5.165 4.736-2.128l9.609-93.173Zm-57.978 93.779a2.04 2.04 0 0 0 3.498 1.426l13.684-14.001-17.182-12.357v24.932Z",1,"tw-fill-illustration-outline"],["cx","86.719","cy","86.719","r","84.719","stroke","#020F66","stroke-linecap","round","stroke-linejoin","round","stroke-width","4","transform","scale(-1 1) rotate(45.035 -184.565 -565.488)",1,"tw-fill-illustration-bg-tertiary"],["cx","69.752","cy","69.752","r","69.752","transform","scale(-1 1) rotate(45.035 -213.255 -553.709)",1,"tw-fill-illustration-bg-secondary"],["d","m445.838 353.214 2.95-180.467 12.372-.007 3.078 180.465a4.64 4.64 0 0 1-4.637 4.72l-9.12.005a4.64 4.64 0 0 1-4.643-4.716ZM453.82 52.947a2 2 0 0 1 1.998-2.001l35.638-.023a2 2 0 0 1 2.001 2.015l-.268 35.637a2 2 0 1 1-4-.03l.252-33.62-33.62.02a1.999 1.999 0 0 1-2.001-1.998ZM415.689 86.49a2 2 0 0 1 4.001.03l-.254 33.62 33.622-.021a2 2 0 0 1 .003 4l-35.637.022a2 2 0 0 1-2.001-2.015l.266-35.636Zm25.457-19.997a2 2 0 0 1 3.461-2.006l23.124 39.885a2 2 0 0 1-3.461 2.006l-23.124-39.885Z",1,"tw-fill-illustration-outline"],["d","M259.264 277.271c21.107-4.293 34.791-24.62 30.565-45.402-4.227-20.782-24.764-34.15-45.871-29.857-21.107 4.293-34.791 24.62-30.565 45.402 4.227 20.783 24.764 34.15 45.871 29.857ZM299.993 173.472c7.793-1.585 12.826-9.188 11.241-16.981-1.585-7.793-9.187-12.826-16.981-11.241-7.793 1.585-12.826 9.187-11.241 16.981 1.585 7.793 9.188 12.826 16.981 11.241Z",1,"tw-fill-illustration-bg-primary"],["d","M329.869 242.094c7.793-1.585 12.826-9.187 11.241-16.981-1.585-7.793-9.188-12.826-16.981-11.241-7.794 1.585-12.827 9.188-11.241 16.981 1.585 7.794 9.187 12.827 16.981 11.241Z",1,"tw-fill-illustration-bg-secondary"],["d","M330.088 309.401c7.794-1.585 12.826-9.188 11.241-16.981-1.585-7.794-9.187-12.827-16.981-11.242-7.793 1.585-12.826 9.188-11.241 16.981 1.585 7.794 9.188 12.827 16.981 11.242Z",1,"tw-fill-illustration-bg-tertiary"],["d","M234.598 327.597c7.793-1.585 12.826-9.187 11.241-16.981-1.585-7.793-9.187-12.826-16.981-11.241-7.793 1.585-12.826 9.188-11.241 16.981 1.585 7.794 9.188 12.826 16.981 11.241Z",1,"tw-fill-illustration-bg-primary"],["d","M176.919 248.71c7.794-1.585 12.827-9.188 11.242-16.981-1.586-7.794-9.188-12.827-16.982-11.242-7.793 1.586-12.826 9.188-11.241 16.982 1.585 7.793 9.188 12.826 16.981 11.241Z",1,"tw-fill-illustration-bg-secondary"],["d","M206.836 185.071c7.794-1.585 12.827-9.188 11.242-16.981-1.586-7.793-9.188-12.826-16.982-11.241-7.793 1.585-12.826 9.188-11.241 16.981 1.585 7.793 9.188 12.826 16.981 11.241Z",1,"tw-fill-illustration-bg-tertiary"],["fill-rule","evenodd","d","M200.699 154.89c8.875-1.805 17.533 3.927 19.339 12.803 1.165 5.732-.814 11.372-4.752 15.135.131.223.29.502.489.845l14.805 21.386a41.483 41.483 0 0 1 12.979-5.007c9.276-1.886 18.455-.523 26.321 3.303.038-.221.111-.441.227-.648l17.035-30.333a16.337 16.337 0 0 1-6.09-9.744c-1.805-8.876 3.928-17.535 12.803-19.34 8.876-1.805 17.534 3.928 19.339 12.803 1.805 8.876-3.926 17.534-12.802 19.339-3.427.697-6.822.27-9.803-1.028l-16.994 30.262a1.98 1.98 0 0 1-.397.497c8.774 5.316 15.487 13.883 18.16 24.43l19.238-1.61c-.007-7.642 5.356-14.488 13.135-16.07 8.875-1.805 17.534 3.927 19.339 12.803 1.805 8.875-3.927 17.533-12.802 19.339-8.639 1.757-17.072-3.627-19.18-12.099l-18.935 1.585c1.474 9.839-.81 19.465-5.834 27.387l29.108 22.962a16.324 16.324 0 0 1 8.523-4.671c8.876-1.804 17.534 3.928 19.339 12.803 1.805 8.876-3.927 17.534-12.802 19.339-8.875 1.805-17.534-3.926-19.34-12.802a16.338 16.338 0 0 1 1.872-11.474l-29.007-22.882c-5.828 7.464-14.29 12.983-24.349 15.028a41.442 41.442 0 0 1-14.045.441l-6.224 19.317a16.365 16.365 0 0 1 8.405 11.229c1.805 8.876-3.927 17.534-12.802 19.339-8.876 1.805-17.535-3.926-19.34-12.802-1.805-8.875 3.927-17.534 12.803-19.34 2.461-.5 4.906-.42 7.192.145l6.007-18.641c-14.851-3.594-27.011-15.301-30.225-31.105a40.043 40.043 0 0 1-.808-8.184l-20.473-1.442c-.032-.002-.064-.008-.096-.011-1.37 6.114-6.201 11.162-12.739 12.492-8.875 1.805-17.534-3.926-19.339-12.802-1.805-8.875 3.927-17.534 12.802-19.34 8.876-1.804 17.534 3.928 19.339 12.803.196.962.302 1.921.327 2.869l20.401 1.436c1.206-11.333 7.247-21.627 16.399-28.363l-14.76-21.321a20.41 20.41 0 0 0-.435-.719 16.428 16.428 0 0 1-4.816 1.8c-8.876 1.805-17.535-3.927-19.34-12.802-1.805-8.876 3.927-17.535 12.803-19.34Zm124.048 128.249c-6.711 1.365-11.045 7.912-9.68 14.623 1.365 6.711 7.912 11.044 14.623 9.679 6.71-1.365 11.044-7.911 9.679-14.622-1.364-6.71-7.911-11.044-14.622-9.68Zm-95.49 18.196c-6.711 1.365-11.045 7.912-9.68 14.623 1.365 6.711 7.912 11.044 14.623 9.679 6.71-1.365 11.044-7.911 9.679-14.621-1.365-6.711-7.911-11.045-14.622-9.681Zm15.1-97.363c-20.054 4.079-33.004 23.373-29.004 43.044 4.001 19.672 23.459 32.374 43.513 28.296 9.593-1.951 17.558-7.386 22.822-14.676a1.986 1.986 0 0 1 .612-.873c5.306-7.813 7.58-17.606 5.569-27.495-4.001-19.671-23.459-32.374-43.512-28.296Zm80.171 11.861c-6.711 1.364-11.045 7.912-9.68 14.623 1.365 6.71 7.912 11.044 14.623 9.679 6.71-1.365 11.044-7.911 9.679-14.622-1.365-6.711-7.911-11.045-14.622-9.68Zm-152.949 6.614c-6.711 1.365-11.045 7.912-9.681 14.623 1.365 6.711 7.912 11.044 14.623 9.679 6.711-1.365 11.044-7.911 9.68-14.621-1.365-6.711-7.912-11.045-14.622-9.681Zm123.073-75.237c-6.71 1.365-11.044 7.912-9.68 14.623 1.365 6.711 7.912 11.044 14.623 9.679 6.711-1.365 11.044-7.911 9.68-14.622-1.365-6.71-7.912-11.045-14.623-9.68Zm-93.156 11.6c-6.711 1.364-11.045 7.912-9.68 14.623 1.365 6.71 7.912 11.044 14.622 9.679 6.711-1.365 11.044-7.912 9.68-14.622-1.365-6.711-7.911-11.045-14.622-9.68Z","clip-rule","evenodd",1,"tw-fill-illustration-outline"],["d","M272.266 232.544a1.998 1.998 0 0 0-.353 1.589l.554 2.725a2.002 2.002 0 0 0 1.002 1.357l4.786 2.611a2 2 0 0 1 1.003 2.15l-.667 3.313a1.998 1.998 0 0 1-1.647 1.58l-5.641.896a1.998 1.998 0 0 0-1.352.867l-1.524 2.291a2 2 0 0 0-.252 1.678l1.555 5.227a2 2 0 0 1-.794 2.224l-2.799 1.902a2 2 0 0 1-2.309-.043l-4.524-3.327a2 2 0 0 0-1.583-.348l-2.754.56a1.997 1.997 0 0 0-1.352.994l-2.638 4.785a2 2 0 0 1-2.14.996l-3.339-.661a2 2 0 0 1-1.587-1.649l-.886-5.597a2.003 2.003 0 0 0-.875-1.358l-2.298-1.514a2 2 0 0 0-1.669-.247l-5.272 1.563a2 2 0 0 1-2.22-.788l-1.897-2.774a2.001 2.001 0 0 1 .045-2.321l3.339-4.498a2.004 2.004 0 0 0 .354-1.591l-.557-2.736a2.001 2.001 0 0 0-.983-1.347l-4.848-2.715a2 2 0 0 1-.983-2.14l.669-3.329a2.001 2.001 0 0 1 1.648-1.581l5.641-.895a1.999 1.999 0 0 0 1.352-.868l1.526-2.293c.327-.493.42-1.105.253-1.673l-1.608-5.457a2 2 0 0 1 .794-2.22l2.793-1.897a2 2 0 0 1 2.322.053l4.676 3.5a1.999 1.999 0 0 0 1.597.359l2.744-.558a2.002 2.002 0 0 0 1.353-.995l2.637-4.784a1.997 1.997 0 0 1 2.14-.996l3.339.661a2 2 0 0 1 1.587 1.649l.886 5.597c.088.555.406 1.048.875 1.357l2.298 1.514a2.002 2.002 0 0 0 1.669.248l5.272-1.564a2 2 0 0 1 2.22.789l1.898 2.775a2 2 0 0 1-.044 2.319l-3.432 4.635Zm-24.977-.064c-4.049 2.702-5.078 8.076-2.395 11.991 2.705 4.028 8.1 5.044 12.035 2.365 3.936-2.678 5.078-8.076 2.395-11.991-2.592-4.051-7.986-5.067-12.035-2.365Z",1,"tw-fill-illustration-logo"],["d","m270.507 237.256-.554-2.724a4.004 4.004 0 0 1 .705-3.178l3.433-4.636-1.897-2.775-5.273 1.564a4 4 0 0 1-3.337-.494l-2.298-1.515a4 4 0 0 1-1.751-2.714l-.886-5.597-3.339-.661-2.637 4.784a4.001 4.001 0 0 1-2.706 1.989l-2.744.558a4 4 0 0 1-3.194-.718l-4.676-3.5-2.792 1.898 1.608 5.457a3.998 3.998 0 0 1-.507 3.345l-1.525 2.294c-.62.931-1.6 1.56-2.704 1.736l-5.642.895-.669 3.329 4.848 2.715a4 4 0 0 1 1.965 2.693l.557 2.737a3.999 3.999 0 0 1-.708 3.18l-3.338 4.499 1.897 2.774 5.272-1.563a3.998 3.998 0 0 1 3.338.494l2.298 1.514a4.001 4.001 0 0 1 1.75 2.715l.886 5.597 3.339.661 2.638-4.785a4 4 0 0 1 2.706-1.988l2.753-.56a4 4 0 0 1 3.166.697l4.524 3.327 2.8-1.902-1.555-5.227a4.002 4.002 0 0 1 .504-3.355l1.524-2.291a3.998 3.998 0 0 1 2.703-1.736l5.642-.895.667-3.313-4.787-2.611a4.004 4.004 0 0 1-2.004-2.714Zm-24.328-6.439c4.915-3.28 11.556-2.099 14.795 2.898h.001v.001l.034.051h-.001c3.294 4.868 1.835 11.464-2.953 14.723-4.855 3.304-11.499 2.043-14.821-2.903l.001-.001c-3.308-4.845-2.013-11.461 2.944-14.769Zm11.461 5.106c-1.959-3.06-6.075-3.891-9.24-1.779-3.036 2.026-3.85 5.957-2.039 8.913l.183.284.01.015c2.089 3.109 6.234 3.879 9.25 1.827 3.066-2.087 3.897-6.25 1.871-9.207a.97.97 0 0 1-.035-.053Zm16.787.536 4.787 2.611a4 4 0 0 1 2.005 4.3l-.666 3.313a4.001 4.001 0 0 1-3.295 3.161l-5.641.896-1.525 2.291 1.555 5.227a4.002 4.002 0 0 1-1.586 4.449l-2.8 1.901a4 4 0 0 1-4.618-.086l-4.523-3.326-2.753.56-2.638 4.784a4 4 0 0 1-4.279 1.993l-3.34-.661a4.002 4.002 0 0 1-3.174-3.298l-.886-5.598-2.298-1.514-5.273 1.564a3.999 3.999 0 0 1-4.438-1.577l-1.897-2.774a3.998 3.998 0 0 1 .09-4.641l3.338-4.499-.557-2.737-4.848-2.715a3.998 3.998 0 0 1-1.966-4.279l.669-3.329a4.002 4.002 0 0 1 3.294-3.162l5.642-.895 1.526-2.294-1.609-5.457a4.001 4.001 0 0 1 1.59-4.439l2.792-1.897a4 4 0 0 1 4.645.106l4.676 3.5 2.744-.558 2.636-4.785a4 4 0 0 1 4.281-1.992l3.339.661a4 4 0 0 1 3.174 3.298l.886 5.597 2.298 1.514 5.272-1.563a4 4 0 0 1 4.439 1.576l1.898 2.775a4.001 4.001 0 0 1-.087 4.639l-3.433 4.636.554 2.724Z",1,"tw-fill-illustration-outline"],["id","right-a"],["d","M0 0h506v297H0z",1,"tw-fill-illustration-bg-tertiary"]],template:function(e,t){if(1&e&&(w.DNE(0,H,52,0,"ng-template",null,0,w.C5r)(2,J,2,0,"ng-container",1),w.nrm(3,"bit-toast-container")),2&e){const e=w.sdS(1);w.R7$(2),w.Y8G("ngIf",!t.loading)("ngIfElse",e)}},dependencies:[L.bT,R.n3,K],encapsulation:2});var _=i(21571);class ee{}var te=i(82392);const ie=te.JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 80 73.33">
|
|
<path class="tw-fill-illustration-bg-primary" d="M11.667 31.666c0-5.523 3.805-10 8.5-10h39.666c4.695 0 8.5 4.477 8.5 10v31.667c0 5.523-3.805 10-8.5 10H20.167c-4.695 0-8.5-4.477-8.5-10V31.666Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M59.833 23.333H20.167c-3.912 0-7.084 3.73-7.084 8.333v31.667c0 4.602 3.172 8.333 7.084 8.333h39.666c3.912 0 7.084-3.73 7.084-8.333V31.666c0-4.602-3.172-8.333-7.084-8.333Zm-39.666-1.667c-4.695 0-8.5 4.477-8.5 10v31.667c0 5.523 3.805 10 8.5 10h39.666c4.695 0 8.5-4.477 8.5-10V31.666c0-5.523-3.805-10-8.5-10H20.167Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M55.833 22.5v-5.834C55.833 7.922 48.745.833 40 .833c-8.744 0-15.833 7.089-15.833 15.833V22.5h5v-5.834c0-5.983 4.85-10.833 10.833-10.833 5.983 0 10.833 4.85 10.833 10.833V22.5h5Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M23.333 16.667C23.333 7.462 30.795 0 40 0c9.205 0 16.667 7.462 16.667 16.667v6.666H50v-6.666c0-5.523-4.477-10-10-10s-10 4.477-10 10v6.666h-6.667v-6.666ZM40 1.667c-8.284 0-15 6.715-15 15v5h3.333v-5C28.333 10.223 33.557 5 40 5s11.667 5.223 11.667 11.667v5H55v-5c0-8.285-6.716-15-15-15Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-secondary" d="M13.333 55.833h53.334V62.5H13.333v-6.667Z"/>
|
|
<path class="tw-fill-illustration-bg-primary" d="M25 18.333h3.333v3.333H25v-3.333Zm26.667 0H55v3.333h-3.333v-3.333Z"/>
|
|
<path class="tw-fill-illustration-tertiary" d="M0 47.5c0-5.523 4.477-10 10-10h60c5.523 0 10 4.477 10 10s-4.477 10-10 10H10c-5.523 0-10-4.477-10-10Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M70 39.167H10a8.333 8.333 0 1 0 0 16.666h60a8.333 8.333 0 1 0 0-16.666ZM10 37.5c-5.523 0-10 4.477-10 10s4.477 10 10 10h60c5.523 0 10-4.477 10-10s-4.477-10-10-10H10Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M16.667 42.5c.46 0 .833.389.833.868v3.48l3.117-1.658c.424-.225.942-.078 1.158.328.216.407.048.919-.375 1.144l-3.365 1.789 2.69 2.885c.327.35.32.89-.017 1.203-.337.314-.875.284-1.202-.067l-2.84-3.045-2.839 3.045c-.327.351-.865.38-1.201.067-.337-.314-.345-.853-.018-1.203l2.69-2.885-3.364-1.79c-.423-.224-.591-.736-.375-1.143.216-.406.734-.553 1.157-.328l3.118 1.658v-3.48c0-.48.373-.868.833-.868ZM30 42.5c.46 0 .834.389.834.868v3.48l3.116-1.658c.424-.225.942-.078 1.158.328.216.407.048.919-.375 1.144l-3.365 1.789 2.69 2.885c.328.35.32.89-.017 1.203-.336.314-.874.284-1.201-.067L30 49.427l-2.84 3.045c-.326.351-.864.38-1.2.067-.338-.314-.345-.853-.018-1.203l2.69-2.885-3.365-1.79c-.423-.224-.591-.736-.375-1.143.216-.406.734-.553 1.158-.328l3.117 1.658v-3.48c0-.48.373-.868.833-.868Zm14.167.868c0-.48-.373-.868-.834-.868-.46 0-.833.389-.833.868v3.48l-3.117-1.658c-.423-.225-.942-.078-1.158.328-.216.407-.048.919.376 1.144l3.364 1.789-2.69 2.885c-.327.35-.32.89.017 1.203.337.314.875.284 1.202-.067l2.84-3.045 2.839 3.045c.327.351.865.38 1.202.067.336-.314.344-.853.017-1.203l-2.69-2.885 3.364-1.79c.424-.224.592-.736.376-1.143-.216-.406-.735-.553-1.158-.328l-3.117 1.657v-3.479Zm6.666 8.299c0-.46.374-.834.834-.834h6.666a.833.833 0 0 1 0 1.667h-6.666a.833.833 0 0 1-.834-.833Zm10.834-.834a.833.833 0 0 0 0 1.667h6.666a.833.833 0 0 0 0-1.667h-6.666Z" clip-rule="evenodd"/>
|
|
</svg>
|
|
`;var ne=i(64456),re=i(81441),se=i(56962),oe=i(83516),ae=i(44432),le=i(55807),ce=i(36801);class de extends Error{constructor(){super("The current password is invalid.")}}class ue{}var he=i(50700),Ae=i(83541),pe=i(1221);class ge{}var ve=i(58384),me=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const fe=()=>({key:"changeMasterPassword"});function ye(e,t){1&e&&(w.nrm(0,"bit-icon",0),w.nI1(1,"i18n")),2&e&&w.Y8G("ariaLabel",w.bMT(1,1,"loading"))}function be(e,t){1&e&&(w.j41(0,"bit-callout",3),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.JRh(w.bMT(2,1,"changePasswordWarning")))}function Ce(e,t){if(1&e){const e=w.RV6();w.DNE(0,be,3,3,"bit-callout",1),w.j41(1,"auth-input-password",2),w.bIt("onPasswordFormSubmit",function(t){B.eBV(e);const i=w.XpG();return B.Njj(i.handlePasswordFormSubmit(t))})("onSecondaryButtonClick",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.logOut())}),w.k0s()}if(2&e){const e=w.XpG();w.Y8G("ngIf",e.forceSetPasswordReason!==e.ForceSetPasswordReason.AdminForcePasswordReset),w.R7$(),w.Y8G("flow",e.inputPasswordFlow)("email",e.email)("userId",e.userId)("loading",e.submitting)("masterPasswordPolicyOptions",e.masterPasswordPolicyOptions)("inlineButtons",!0)("primaryButtonText",w.lJ4(9,fe))("secondaryButtonText",e.secondaryButtonText())}}class Ie{constructor(e,t,i,n,s,o,a,l,c,d,u,h){this.accountService=e,this.changePasswordService=t,this.i18nService=i,this.masterPasswordService=n,this.anonLayoutWrapperDataService=s,this.organizationInviteService=o,this.messagingService=a,this.toastService=l,this.dialogService=c,this.logService=d,this.logoutService=u,this.router=h,this.inputPasswordFlow=ne.m5.ChangePassword,this.passwordChanged=(0,r.CGW)(),this.activeAccount=null,this.initializing=!0,this.submitting=!1,this.forceSetPasswordReason=re.n.None,this.ForceSetPasswordReason=re.n}ngOnInit(){return me(this,void 0,void 0,function*(){if(this.activeAccount=yield(0,u._)(this.accountService.activeAccount$),!this.activeAccount)throw new Error("No active active account found while trying to change passwords.");if(this.userId=this.activeAccount.id,this.email=this.activeAccount.email,!this.userId)throw new Error("userId not found");this.masterPasswordPolicyOptions=yield this.changePasswordService.resolveMasterPasswordPolicyOptions(this.userId),this.forceSetPasswordReason=yield(0,u._)(this.masterPasswordService.forceSetPasswordReason$(this.userId)),this.forceSetPasswordReason===re.n.AdminForcePasswordReset?this.anonLayoutWrapperDataService.setAnonLayoutWrapperData({pageIcon:ie,pageTitle:{key:"updateMasterPassword"},pageSubtitle:{key:"accountRecoveryUpdateMasterPasswordSubtitle"}}):this.forceSetPasswordReason===re.n.WeakMasterPassword&&this.anonLayoutWrapperDataService.setAnonLayoutWrapperData({pageIcon:ie,pageTitle:{key:"updateMasterPassword"},pageSubtitle:{key:"updateMasterPasswordSubtitle"},maxWidth:"lg"}),this.initializing=!1})}logOut(){return me(this,void 0,void 0,function*(){(yield this.dialogService.openSimpleDialog({title:{key:"logOut"},content:{key:"logOutConfirmation"},acceptButtonText:{key:"logOut"},type:"warning"}))&&(yield this.organizationInviteService.clearOrganizationInvite(),this.changePasswordService.clearDeeplinkState&&(yield this.changePasswordService.clearDeeplinkState()),this.messagingService.send("logout"))})}handlePasswordFormSubmit(e){return me(this,void 0,void 0,function*(){var t,i;this.submitting=!0;try{if(e.rotateUserKey){if(null==this.activeAccount)throw new Error("activeAccount not found");yield this.changePasswordService.changePasswordAndRotateUserKey(e,this.activeAccount),this.passwordChanged.emit()}else{if(!this.userId)throw new Error("userId not found");this.forceSetPasswordReason===re.n.AdminForcePasswordReset?yield this.changePasswordService.changePasswordForAccountRecovery(e,this.userId):yield this.changePasswordService.changePassword(e,this.userId),this.toastService.showToast({variant:"success",message:this.i18nService.t("masterPasswordChanged")}),this.passwordChanged.emit(),yield this.logoutService.logout(this.userId);this.changePasswordService.shouldNavigateToRoot()&&(yield this.router.navigate(["/"])),null===(i=(t=this.changePasswordService).closeBrowserExtensionPopout)||void 0===i||i.call(t)}}catch(n){this.logService.error(n),n instanceof de?this.toastService.showToast({variant:"error",message:this.i18nService.t("invalidMasterPassword")}):this.toastService.showToast({variant:"error",message:this.i18nService.t("errorOccurred")})}finally{this.submitting=!1}})}secondaryButtonText(){return this.forceSetPasswordReason===re.n.AdminForcePasswordReset||this.forceSetPasswordReason===re.n.WeakMasterPassword?{key:"logOut"}:void 0}}Ie.ɵfac=function(e){return new(e||Ie)(w.rXU(N.D),w.rXU(ue),w.rXU(he.W),w.rXU(Ae.O),w.rXU(pe.f),w.rXU(ge),w.rXU(oe.U),w.rXU(F.f),w.rXU(T.o),w.rXU(se.K),w.rXU(g.k4),w.rXU(R.Ix))},Ie.ɵcmp=w.VBU({type:Ie,selectors:[["auth-change-password"]],inputs:{inputPasswordFlow:"inputPasswordFlow"},outputs:{passwordChanged:"passwordChanged"},decls:2,vars:1,consts:[["name","bwi-spinner",1,"bwi-spin","bwi-2x","tw-text-muted",3,"ariaLabel"],["type","warning",4,"ngIf"],[3,"onPasswordFormSubmit","onSecondaryButtonClick","flow","email","userId","loading","masterPasswordPolicyOptions","inlineButtons","primaryButtonText","secondaryButtonText"],["type","warning"]],template:function(e,t){1&e&&w.nVh(0,ye,2,3,"bit-icon",0)(1,Ce,2,10),2&e&&w.vxM(t.initializing?0:1)},dependencies:[ae.G,L.MD,L.bT,le.o,ve.R,ne.tu,ce.$Z],encapsulation:2});class we{constructor(e,t,i,n){this.masterPasswordHash=e,this.authenticationData=t,this.unlockData=i,this.masterPasswordHint=n}}class Be extends _.W7{static newConstructorWithHint(e,t,i){const n=new Be;return n.newMasterPasswordHash=e.masterPasswordAuthenticationHash,n.key=t.masterKeyWrappedUserKey,n.masterPasswordHint=i,n}}var Ee=i(33331),Se=i(60512),Qe=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})},ke=function(e,t,i){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,r;if(i){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],i&&(r=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");r&&(n=function(){try{r.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:i})}else i&&e.stack.push({async:!0});return t},Re=function(e){return function(t){function i(i){t.error=t.hasError?new e(i,t.error,"An error was suppressed during disposal."):i,t.hasError=!0}var n,r=0;return function e(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(e);if(n.dispose){var s=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(s).then(e,function(t){return i(t),e()})}else r|=1}catch(o){i(o)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}}("function"==typeof SuppressedError?SuppressedError:function(e,t,i){var n=new Error(i);return n.name="SuppressedError",n.error=e,n.suppressed=t,n});function Fe(e,t){return Qe(this,void 0,void 0,function*(){const i=yield(0,u._)(e);if(null==i)throw new Error(`Failed to get ${t}`);return i})}function Te(e,t,i){return Qe(this,void 0,void 0,function*(){return yield(0,u._)(t.userClient$(e).pipe((0,p.T)(e=>Qe(this,void 0,void 0,function*(){const t={stack:[],error:void 0,hasError:!1};try{const n=ke(t,e.take(),!1);return yield i(n.value)}catch(n){t.error=n,t.hasError=!0}finally{Re(t)}}))))})}function De(){return(e,t,i)=>{const n=i.value;return i.value=function(...e){for(let t=0;t<e.length;t++)(0,Se.x)(e[t],`parameter ${t}`);return n.apply(this,e)},i}}var Pe=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Me{constructor(e,t,i,n,r,s){this.keyService=e,this.masterPasswordApiService=t,this.masterPasswordService=i,this.masterPasswordUnlockService=n,this.policyService=r,this.organizationInviteService=s}changePasswordAndRotateUserKey(e,t){return Pe(this,void 0,void 0,function*(){throw new Error("changePasswordAndRotateUserKey() is only implemented in Web")})}changePassword(e,t){return Pe(this,void 0,void 0,function*(){const i="Could not change password.";(0,Ee.B)(e.currentPassword,"currentPassword",i),(0,Ee.B)(e.newPassword,"newPassword",i),(0,Se.x)(e.kdfConfig,"kdfConfig",i),(0,Ee.B)(e.salt,"salt",i),(0,Se.x)(e.newPasswordHint,"newPasswordHint",i);if(!(yield this.masterPasswordUnlockService.proofOfDecryption(e.currentPassword,t)))throw new de;const n=yield Fe(this.keyService.userKey$(t),"userKey"),r=yield this.masterPasswordService.makeMasterPasswordAuthenticationData(e.currentPassword,e.kdfConfig,e.salt),{newAuthenticationData:s,newUnlockData:o}=yield this.makeNewAuthAndUnlockData(e.newPassword,e.kdfConfig,e.salt,n),a=new we(r.masterPasswordAuthenticationHash,s,o,e.newPasswordHint);yield this.masterPasswordApiService.postPassword(a)})}changePasswordForAccountRecovery(e,t){return Pe(this,void 0,void 0,function*(){const i="Could not change password for account recovery.";(0,Ee.B)(e.currentPassword,"currentPassword",i),(0,Ee.B)(e.newPassword,"newPassword",i),(0,Se.x)(e.kdfConfig,"kdfConfig",i),(0,Ee.B)(e.salt,"salt",i),(0,Se.x)(e.newPasswordHint,"newPasswordHint",i);if(!(yield this.masterPasswordUnlockService.proofOfDecryption(e.currentPassword,t)))throw new de;const n=yield Fe(this.keyService.userKey$(t),"userKey"),{newAuthenticationData:r,newUnlockData:s}=yield this.makeNewAuthAndUnlockData(e.newPassword,e.kdfConfig,e.salt,n),o=Be.newConstructorWithHint(r,s,e.newPasswordHint);yield this.masterPasswordApiService.putUpdateTempPassword(o)})}makeNewAuthAndUnlockData(e,t,i,n){return Pe(this,void 0,void 0,function*(){return{newAuthenticationData:yield this.masterPasswordService.makeMasterPasswordAuthenticationData(e,t,i),newUnlockData:yield this.masterPasswordService.makeMasterPasswordUnlockData(e,t,i,n)}})}shouldNavigateToRoot(){return!1}resolveMasterPasswordPolicyOptions(e){return Pe(this,void 0,void 0,function*(){const t=yield(0,u._)(this.policyService.masterPasswordPolicyOptions$(e)),i=yield this.organizationInviteService.getOrganizationInvite(),n=i?yield this.organizationInviteService.getMasterPasswordPolicyOptionsForInvite(i):void 0;return null==t?n:null==n?t:this.policyService.combineMasterPasswordPolicyOptions(t,n)})}}const xe=Object.freeze({JIT_PROVISIONED_MP_ORG_USER:"jit_provisioned_mp_org_user",TDE_ORG_USER_RESET_PASSWORD_PERMISSION_REQUIRES_MP:"tde_org_user_reset_password_permission_requires_mp",OFFBOARDED_TDE_ORG_USER:"offboarded_tde_org_user",OFFBOARDED_TDE_ORG_USER_UNTRUSTED_DEVICE:"offboarded_tde_org_user_untrusted_device"});class Ve{}var Ge=i(71613),Ue=i(21495),Oe=i(2073),Ne=i(52892),je=i(12012),Ye=i(72331),Xe=i(11224),ze=i(4717);class Le{}class We extends Le{}var Ke=i(35631);class Ze{}var He=i(27866),Je=i(18499),qe=i(62316),$e=i(13417),_e=i(7356),et=i(84488),tt=i(52136);const it=C.Ok.record(C.nr,"organizations",{deserializer:e=>tt.o.fromJSON(e),clearOn:["logout"]});var nt=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function rt(){return(0,p.T)(e=>e.length>0)}var st=i(20702);class ot extends st.r{constructor(e){super(e),this.apiKey=this.getResponseProperty("ApiKey"),this.revisionDate=new Date(this.getResponseProperty("RevisionDate"))}}var at=i(85776);class lt extends st.r{static fromView(e,t=new lt){return t.configType=e.configType,t.memberDecryptionType=e.memberDecryptionType,t.keyConnectorUrl=e.keyConnectorUrl,t.configType===at.Ah.OpenIdConnect?(t.authority=e.openId.authority,t.clientId=e.openId.clientId,t.clientSecret=e.openId.clientSecret,t.metadataAddress=e.openId.metadataAddress,t.redirectBehavior=e.openId.redirectBehavior,t.getClaimsFromUserInfoEndpoint=e.openId.getClaimsFromUserInfoEndpoint,t.additionalScopes=e.openId.additionalScopes,t.additionalUserIdClaimTypes=e.openId.additionalUserIdClaimTypes,t.additionalEmailClaimTypes=e.openId.additionalEmailClaimTypes,t.additionalNameClaimTypes=e.openId.additionalNameClaimTypes,t.acrValues=e.openId.acrValues,t.expectedReturnAcrValue=e.openId.expectedReturnAcrValue):t.configType===at.Ah.Saml2&&(t.spUniqueEntityId=e.saml.spUniqueEntityId,t.spNameIdFormat=e.saml.spNameIdFormat,t.spOutboundSigningAlgorithm=e.saml.spOutboundSigningAlgorithm,t.spSigningBehavior=e.saml.spSigningBehavior,t.spMinIncomingSigningAlgorithm=e.saml.spMinIncomingSigningAlgorithm,t.spWantAssertionsSigned=e.saml.spWantAssertionsSigned,t.spValidateCertificates=e.saml.spValidateCertificates,t.idpEntityId=e.saml.idpEntityId,t.idpBindingType=e.saml.idpBindingType,t.idpSingleSignOnServiceUrl=e.saml.idpSingleSignOnServiceUrl,t.idpSingleLogoutServiceUrl=e.saml.idpSingleLogoutServiceUrl,t.idpX509PublicCert=e.saml.idpX509PublicCert,t.idpOutboundSigningAlgorithm=e.saml.idpOutboundSigningAlgorithm,t.idpAllowUnsolicitedAuthnResponse=e.saml.idpAllowUnsolicitedAuthnResponse,t.idpWantAuthnRequestsSigned=e.saml.idpWantAuthnRequestsSigned,t.idpDisableOutboundLogoutRequests=!e.saml.idpAllowOutboundLogoutRequests),t}constructor(e=null){super(e),null!=e&&(this.configType=this.getResponseProperty("ConfigType"),this.memberDecryptionType=this.getResponseProperty("MemberDecryptionType"),this.keyConnectorUrl=this.getResponseProperty("KeyConnectorUrl"),this.authority=this.getResponseProperty("Authority"),this.clientId=this.getResponseProperty("ClientId"),this.clientSecret=this.getResponseProperty("ClientSecret"),this.metadataAddress=this.getResponseProperty("MetadataAddress"),this.redirectBehavior=this.getResponseProperty("RedirectBehavior"),this.getClaimsFromUserInfoEndpoint=this.getResponseProperty("GetClaimsFromUserInfoEndpoint"),this.additionalScopes=this.getResponseProperty("AdditionalScopes"),this.additionalUserIdClaimTypes=this.getResponseProperty("AdditionalUserIdClaimTypes"),this.additionalEmailClaimTypes=this.getResponseProperty("AdditionalEmailClaimTypes"),this.additionalNameClaimTypes=this.getResponseProperty("AdditionalNameClaimTypes"),this.acrValues=this.getResponseProperty("AcrValues"),this.expectedReturnAcrValue=this.getResponseProperty("ExpectedReturnAcrValue"),this.spUniqueEntityId=this.getResponseProperty("SpUniqueEntityId"),this.spNameIdFormat=this.getResponseProperty("SpNameIdFormat"),this.spOutboundSigningAlgorithm=this.getResponseProperty("SpOutboundSigningAlgorithm"),this.spSigningBehavior=this.getResponseProperty("SpSigningBehavior"),this.spMinIncomingSigningAlgorithm=this.getResponseProperty("SpMinIncomingSigningAlgorithm"),this.spWantAssertionsSigned=this.getResponseProperty("SpWantAssertionsSigned"),this.spValidateCertificates=this.getResponseProperty("SpValidateCertificates"),this.idpEntityId=this.getResponseProperty("IdpEntityId"),this.idpBindingType=this.getResponseProperty("IdpBindingType"),this.idpSingleSignOnServiceUrl=this.getResponseProperty("IdpSingleSignOnServiceUrl"),this.idpSingleLogoutServiceUrl=this.getResponseProperty("IdpSingleLogoutServiceUrl"),this.idpX509PublicCert=this.getResponseProperty("IdpX509PublicCert"),this.idpOutboundSigningAlgorithm=this.getResponseProperty("IdpOutboundSigningAlgorithm"),this.idpAllowUnsolicitedAuthnResponse=this.getResponseProperty("IdpAllowUnsolicitedAuthnResponse"),this.idpDisableOutboundLogoutRequests=this.getResponseProperty("IdpDisableOutboundLogoutRequests"),this.idpWantAuthnRequestsSigned=this.getResponseProperty("IdpWantAuthnRequestsSigned"))}}class ct extends st.r{constructor(e){super(e),this.enabled=this.getResponseProperty("Enabled"),this.identifier=this.getResponseProperty("Identifier"),this.data=null!=this.getResponseProperty("Data")?new lt(this.getResponseProperty("Data")):null,this.urls=new dt(this.getResponseProperty("Urls"))}}class dt extends st.r{constructor(e){super(e),this.callbackPath=this.getResponseProperty("CallbackPath"),this.signedOutCallbackPath=this.getResponseProperty("SignedOutCallbackPath"),this.spEntityId=this.getResponseProperty("SpEntityId"),this.spEntityIdStatic=this.getResponseProperty("SpEntityIdStatic"),this.spMetadataUrl=this.getResponseProperty("SpMetadataUrl"),this.spAcsUrl=this.getResponseProperty("SpAcsUrl")}}class ut extends st.r{constructor(e){super(e),this.balance=this.getResponseProperty("Balance");const t=this.getResponseProperty("PaymentSource");this.paymentSource=null==t?null:new ht(t)}}class ht extends st.r{constructor(e){super(e),this.type=this.getResponseProperty("Type"),this.cardBrand=this.getResponseProperty("CardBrand"),this.description=this.getResponseProperty("Description"),this.needsVerification=this.getResponseProperty("NeedsVerification")}}class At extends st.r{constructor(e){super(e),this.id=this.getResponseProperty("Id"),this.url=this.getResponseProperty("Url"),this.pdfUrl=this.getResponseProperty("PdfUrl"),this.number=this.getResponseProperty("Number"),this.paid=this.getResponseProperty("Paid"),this.date=this.getResponseProperty("Date"),this.amount=this.getResponseProperty("Amount")}}class pt extends st.r{constructor(e){super(e),this.createdDate=this.getResponseProperty("CreatedDate"),this.amount=this.getResponseProperty("Amount"),this.refunded=this.getResponseProperty("Refunded"),this.partiallyRefunded=this.getResponseProperty("PartiallyRefunded"),this.refundedAmount=this.getResponseProperty("RefundedAmount"),this.type=this.getResponseProperty("Type"),this.paymentMethodType=this.getResponseProperty("PaymentMethodType"),this.details=this.getResponseProperty("Details")}}class gt extends st.r{constructor(e){super(e),this.invoices=[],this.transactions=[];const t=this.getResponseProperty("Transactions"),i=this.getResponseProperty("Invoices");null!=t&&(this.transactions=t.map(e=>new pt(e))),null!=i&&(this.invoices=i.map(e=>new At(e)))}get hasNoHistory(){return 0==this.invoices.length&&0==this.transactions.length}}var vt=i(69138),mt=i(16969);class ft extends st.r{constructor(e){super(e);const t=this.getResponseProperty("UserProfile");null!=t&&(this.userProfile=new mt.l(t)),this.paymentIntentClientSecret=this.getResponseProperty("PaymentIntentClientSecret"),this.success=this.getResponseProperty("Success")}}var yt=i(12277);class bt extends st.r{constructor(e){super(e),this.keyType=this.getResponseProperty("KeyType")}}class Ct extends st.r{constructor(e){super(e),this.id=this.getResponseProperty("Id"),this.resetPasswordEnabled=this.getResponseProperty("ResetPasswordEnabled")}}class It extends st.r{constructor(e){super(e),this.privateKey=this.getResponseProperty("PrivateKey"),this.publicKey=this.getResponseProperty("PublicKey")}}class wt extends It{constructor(e){super(e)}}var Bt=i(77788),Et=i(72868),St=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Qt extends st.r{constructor(e){super(e),this.id=this.getResponseProperty("id"),this.organizationId=this.getResponseProperty("organizationId"),this.txt=this.getResponseProperty("txt"),this.domainName=this.getResponseProperty("domainName"),this.creationDate=this.getResponseProperty("creationDate"),this.nextRunDate=this.getResponseProperty("nextRunDate"),this.jobRunCount=this.getResponseProperty("jobRunCount"),this.verifiedDate=this.getResponseProperty("verifiedDate"),this.lastCheckedDate=this.getResponseProperty("lastCheckedDate")}}class kt extends st.r{constructor(e){super(e),this.organizationName=this.getResponseProperty("organizationName"),this.organizationIdentifier=this.getResponseProperty("organizationIdentifier"),this.domainName=this.getResponseProperty("domainName")}}class Rt{constructor(e){this.email=e}}var Ft=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var Tt=i(67789);var Dt=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Pt=(Mt="autoConfirmFingerPrints",new C.Ok(C.ll,Mt,{deserializer:e=>e,clearOn:["logout"]}));var Mt;var xt=i(72135),Vt=i(38449),Gt=i(1153),Ut=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Ot{constructor(e,t,i){this.stateProvider=e,this.sdkService=t,this.organizationService=i}policiesByType$(e,t){return(0,xt.z)([this.organizationService.organizations$(t),this.organizationService.acceptedOrganizations$(t),this.policies$(t),this.sdkService().client$]).pipe((0,p.T)(([t,i,n,r])=>{if(!r)throw new Error("SDK not available");const s=n.map(e=>e.toSdkPolicyView()),o=t.concat(i).map(e=>Ot.toSdkOrganizationUserPolicyContext(e));return r.policies().filter_by_type(s,o,e).map(e=>Vt.P.fromSdkPolicyView(e))}))}policies$(e){return this.policyState(e).state$.pipe((0,p.T)(e=>Object.values(e||{}).map(e=>new Vt.P(e))))}policyState(e){return this.stateProvider.getUser(e,Gt._)}upsert(e,t){return Ut(this,void 0,void 0,function*(){yield this.policyState(t).update(t=>(null!=t||(t={}),t[e.id]=e,t))})}replace(e,t){return Ut(this,void 0,void 0,function*(){yield this.stateProvider.setUserState(Gt._,e,t)})}static toSdkOrganizationUserPolicyContext(e){return{id:e.id,status:e.status,role:e.type,enabled:e.enabled,usePolicies:e.usePolicies,isProviderUser:e.isProviderUser}}}var Nt=i(30285),jt=i(191),Yt=i(51151),Xt=i(7861),zt=i(78781),Lt=i(54967),Wt=i(25607),Kt=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Zt extends st.r{constructor(e){super(e),this.id=this.getResponseProperty("id"),this.plan=this.getResponseProperty("plan"),this.name=this.getResponseProperty("name"),this.seats=this.getResponseProperty("seats"),this.disabled=this.getResponseProperty("disabled")}}class Ht extends st.r{constructor(e){super(e),this.id=this.getResponseProperty("Id"),this.providerId=this.getResponseProperty("ProviderId"),this.organizationId=this.getResponseProperty("OrganizationId"),this.key=this.getResponseProperty("Key"),this.settings=this.getResponseProperty("Settings"),this.creationDate=this.getResponseProperty("CreationDate"),this.revisionDate=this.getResponseProperty("RevisionDate"),this.userCount=this.getResponseProperty("UserCount"),this.seats=this.getResponseProperty("Seats"),this.occupiedSeats=this.getResponseProperty("OccupiedSeats"),this.remainingSeats=this.getResponseProperty("RemainingSeats"),this.plan=this.getResponseProperty("Plan")}}class Jt extends Ht{constructor(e){super(e),this.organizationName=this.getResponseProperty("OrganizationName")}}class qt extends st.r{constructor(e){super(e),this.id=this.getResponseProperty("Id"),this.name=this.getResponseProperty("Name"),this.businessName=this.getResponseProperty("BusinessName"),this.billingEmail=this.getResponseProperty("BillingEmail"),this.creationDate=this.getResponseProperty("CreationDate"),this.type=this.getResponseProperty("Type")}}var $t=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var _t=i(38020);class ei{constructor(e){null!=e&&(this.id=e.id,this.name=e.name,this.status=e.status,this.type=e.type,this.enabled=e.enabled,this.userId=e.userId,this.useEvents=e.useEvents,this.providerStatus=e.providerStatus,this.providerType=e.providerType)}get canAccess(){return!!this.isProviderAdmin||this.enabled&&this.status===_e.PN.Confirmed}get canCreateOrganizations(){return this.enabled&&this.isProviderAdmin}get canManageUsers(){return this.isProviderAdmin}get canAccessEventLogs(){return this.isProviderAdmin}get isProviderAdmin(){return this.type===_e.pP.ProviderAdmin}}var ti=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const ii=C.Ok.record(C.L_,"providers",{deserializer:e=>e,clearOn:["logout"]});var ni=i(46357),ri=i(29744);class si{}var oi=i(86388);class ai{}var li=i(40271);class ci{}var di=i(45891),ui=i(86214);class hi{}var Ai=i(62166);class pi{}class gi{}class vi{}var mi=i(79334),fi=i(5076);class yi{constructor(e){this.email=e.email,this.initOrganization=e.initOrganization,this.orgSsoIdentifier=e.orgSsoIdentifier,this.orgUserHasExistingUser=e.orgUserHasExistingUser,this.organizationId=e.organizationId,this.organizationName=e.organizationName,this.organizationUserId=e.organizationUserId,this.token=e.token}static fromUrlParams(e){return null==e?null:(0,fi.e)(e.organizationId)&&(0,fi.e)(e.organizationUserId)&&null!=e.email&&null!=e.token&&null!=e.organizationName&&null!=e.initOrganization&&null!=e.orgUserHasExistingUser?new yi({email:e.email,organizationId:e.organizationId,organizationUserId:e.organizationUserId,organizationName:e.organizationName,token:e.token,initOrganization:"true"===e.initOrganization.toLowerCase(),orgUserHasExistingUser:"true"===e.orgUserHasExistingUser.toLowerCase(),orgSsoIdentifier:e.orgSsoIdentifier}):null}static fromJSON(e){return null==e?null:new yi(e)}}const bi=new C.Zs(C.fK,"organizationInvite",{deserializer:e=>e?yi.fromJSON(e):null});var Ci=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var Ii=i(38190);class wi{}class Bi{constructor(e,t){this.token=e,this.expiresAt=t}isExpired(e=5e3){return Date.now()>=this.expiresAt-e}timeUntilExpirySeconds(){return Math.max(0,Math.floor((this.expiresAt-Date.now())/1e3))}static fromJson(e){return new Bi(e.token,e.expiresAt)}static fromSendAccessTokenResponse(e){return new Bi(e.token,e.expiresAt)}}var Ei=i(95457),Si=i(98569);const Qi=b.Zs.record(b.Mc,"accessTokenDict",{deserializer:e=>Bi.fromJson(e)});var ki=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})},Ri=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i};var Fi=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var Ti=i(75607),Di=i(78624),Pi=i(55139);class Mi{constructor(e){this.id=e.id,this.priority=e.priority,this.title=e.title,this.body=e.body,this.date=e.date,this.taskId=e.taskId,this.readDate=e.readDate,this.deletedDate=e.deletedDate}}class xi{constructor(e){this.id=e.id,this.priority=e.priority,this.title=e.title,this.body=e.body,this.date=e.date,this.taskId=e.taskId,this.readDate=e.readDate,this.deletedDate=e.deletedDate}static fromJSON(e){return Object.assign(new xi({}),e,{id:e.id,priority:e.priority,title:e.title,body:e.body,date:new Date(e.date),taskId:e.taskId,readDate:e.readDate?new Date(e.readDate):null,deletedDate:e.deletedDate?new Date(e.deletedDate):null})}}class Vi extends st.r{constructor(e){super(e),this.id=this.getResponseProperty("Id"),this.priority=this.getResponseProperty("Priority"),this.title=this.getResponseProperty("Title"),this.body=this.getResponseProperty("Body"),this.date=this.getResponseProperty("Date"),this.taskId=this.getResponseProperty("TaskId"),this.readDate=this.getResponseProperty("ReadDate"),this.deletedDate=this.getResponseProperty("DeletedDate")}}class Gi extends st.r{constructor(e){super(e),this.contextId=this.getResponseProperty("ContextId"),this.type=this.getResponseProperty("Type");let t=this.getResponseProperty("Payload");if("string"==typeof t)try{t=JSON.parse(t)}catch(i){}switch(this.type){case Yt._n.SyncCipherCreate:case Yt._n.SyncCipherDelete:case Yt._n.SyncCipherUpdate:case Yt._n.SyncLoginDelete:this.payload=new Ui(t);break;case Yt._n.SyncFolderCreate:case Yt._n.SyncFolderDelete:case Yt._n.SyncFolderUpdate:this.payload=new Oi(t);break;case Yt._n.SyncVault:case Yt._n.SyncCiphers:case Yt._n.SyncOrganizations:case Yt._n.SyncOrgKeys:case Yt._n.SyncSettings:this.payload=new Ni(t);break;case Yt._n.LogOut:this.payload=new Ki(t);break;case Yt._n.SyncSendCreate:case Yt._n.SyncSendUpdate:case Yt._n.SyncSendDelete:this.payload=new ji(t);break;case Yt._n.AuthRequest:case Yt._n.AuthRequestResponse:this.payload=new Yi(t);break;case Yt._n.SyncOrganizationStatusChanged:this.payload=new Xi(t);break;case Yt._n.SyncOrganizationCollectionSettingChanged:this.payload=new zi(t);break;case Yt._n.Notification:case Yt._n.NotificationStatus:this.payload=new Vi(t);break;case Yt._n.OrganizationBankAccountVerified:this.payload=new Li(t);break;case Yt._n.ProviderBankAccountVerified:this.payload=new Wi(t);break;case Yt._n.AutoConfirmMember:this.payload=new Zi(t);break;case Yt._n.PremiumStatusChanged:this.payload=new Hi(t)}}}class Ui extends st.r{constructor(e){super(e),this.id=this.getResponseProperty("Id"),this.userId=this.getResponseProperty("UserId"),this.organizationId=this.getResponseProperty("OrganizationId"),this.collectionIds=this.getResponseProperty("CollectionIds"),this.revisionDate=new Date(this.getResponseProperty("RevisionDate"))}}class Oi extends st.r{constructor(e){super(e),this.id=this.getResponseProperty("Id"),this.userId=this.getResponseProperty("UserId"),this.revisionDate=new Date(this.getResponseProperty("RevisionDate"))}}class Ni extends st.r{constructor(e){super(e),this.userId=this.getResponseProperty("UserId"),this.date=new Date(this.getResponseProperty("Date"))}}class ji extends st.r{constructor(e){super(e),this.id=this.getResponseProperty("Id"),this.userId=this.getResponseProperty("UserId"),this.revisionDate=new Date(this.getResponseProperty("RevisionDate"))}}class Yi extends st.r{constructor(e){super(e),this.id=this.getResponseProperty("Id"),this.userId=this.getResponseProperty("UserId")}}class Xi extends st.r{constructor(e){super(e),this.organizationId=this.getResponseProperty("OrganizationId"),this.enabled=this.getResponseProperty("Enabled")}}class zi extends st.r{constructor(e){super(e),this.organizationId=this.getResponseProperty("OrganizationId"),this.limitCollectionCreation=this.getResponseProperty("LimitCollectionCreation"),this.limitCollectionDeletion=this.getResponseProperty("LimitCollectionDeletion")}}class Li extends st.r{constructor(e){super(e),this.organizationId=this.getResponseProperty("OrganizationId")}}class Wi extends st.r{constructor(e){super(e),this.providerId=this.getResponseProperty("ProviderId"),this.adminId=this.getResponseProperty("AdminId")}}class Ki extends st.r{constructor(e){super(e),this.userId=this.getResponseProperty("UserId"),this.reason=this.getResponseProperty("Reason")}}class Zi extends st.r{constructor(e){super(e),this.targetOrganizationUserId=this.getResponseProperty("TargetOrganizationUserId"),this.targetUserId=this.getResponseProperty("TargetUserId"),this.userId=this.getResponseProperty("UserId"),this.organizationId=this.getResponseProperty("OrganizationId")}}class Hi extends st.r{constructor(e){super(e),this.userId=this.getResponseProperty("UserId"),this.premium=this.getResponseProperty("Premium")}}class Ji extends Error{constructor(e){super(void 0===e?"Insecure URL not allowed. All URLs must use HTTPS.":`Insecure URL not allowed: ${e}. All URLs must use HTTPS.`)}}var qi=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var $i=i(16385),_i=i(5206),en=i(29236),tn=i(34949),nn=i(98905),rn=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var sn=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const on=C.Zs.array(C.dn,"pendingAuthRequests",{deserializer:e=>e});class an{constructor(e){this.stateProvider=e,this.state=this.stateProvider.getGlobal(on)}getAll$(){return this.state.state$}add(e){return sn(this,void 0,void 0,function*(){const t=Date.now();yield this.stateProvider.getGlobal(on).update(i=>[...(null!=i?i:[]).filter(t=>t.userId!==e),{userId:e,receivedAtMs:t}])})}pruneOlderThan(e){return sn(this,void 0,void 0,function*(){const t=Date.now()-e;yield this.stateProvider.getGlobal(on).update(e=>(null!=e?e:[]).filter(e=>e.receivedAtMs>=t))})}clear(e){return sn(this,void 0,void 0,function*(){yield this.stateProvider.getGlobal(on).update(t=>(null!=t?t:[]).filter(t=>t.userId!==e))})}}var ln=i(83604),cn=i(97432),dn=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class un{constructor(e){this.avatarColor=e}}var hn=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const An=new C.Ok(C.wt,"avatarColor",{deserializer:e=>e,clearOn:[]});class pn{constructor(e){Object.assign(this,e)}}var gn=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class vn extends st.r{constructor(e){super(e),this.id=this.getResponseProperty("Id"),this.userId=this.getResponseProperty("UserId"),this.name=this.getResponseProperty("Name"),this.identifier=this.getResponseProperty("Identifier"),this.type=this.getResponseProperty("Type"),this.creationDate=this.getResponseProperty("CreationDate"),this.revisionDate=this.getResponseProperty("RevisionDate"),this.isTrusted=this.getResponseProperty("IsTrusted"),this.encryptedUserKey=this.getResponseProperty("EncryptedUserKey"),this.encryptedPublicKey=this.getResponseProperty("EncryptedPublicKey"),this.devicePendingAuthRequest=this.getResponseProperty("DevicePendingAuthRequest"),this.lastActivityDate=this.getResponseProperty("LastActivityDate")}}class mn{constructor(e){this.devices=e}}var fn=i(39306);class yn{constructor(e,t,i){this.encapsulatedDownstreamKey=e,this.encryptedPublicKey=t,this.encryptedPrivateKey=i}}class bn extends st.r{constructor(e){super(e),this.id=this.getResponseProperty("id"),this.name=this.getResponseProperty("name"),this.identifier=this.getResponseProperty("identifier"),this.type=this.getResponseProperty("type"),this.creationDate=new Date(this.getResponseProperty("creationDate")),e.encryptedUserKey&&(this.encryptedUserKey=new fn.k(this.getResponseProperty("encryptedUserKey"))),e.encryptedPublicKey&&(this.encryptedPublicKey=new fn.k(this.getResponseProperty("encryptedPublicKey")))}getRotateableKeyset(){return new yn(this.encryptedUserKey,this.encryptedPublicKey)}isTrusted(){return null!=this.encryptedUserKey&&null!=this.encryptedPublicKey}}class Cn{constructor(e,t,i){this.encryptedUserKey=e,this.encryptedPublicKey=t,this.encryptedPrivateKey=i}}var In=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var wn=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var Bn=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const En=new b.Zs(b.iy,"ssoCodeVerifier",{deserializer:e=>e}),Sn=new b.Zs(b.iy,"ssoState",{deserializer:e=>e}),Qn=new b.Ok(b.iy,"organizationSsoIdentifier",{deserializer:e=>e,clearOn:["logout"]}),kn=new b.Zs(b.iy,"organizationSsoIdentifier",{deserializer:e=>e}),Rn=new b.Zs(b.iy,"ssoEmail",{deserializer:e=>e}),Fn=new b.Zs(b.aC,"ssoRequiredCache",{deserializer:e=>null==e||0===e.length?e:"string"==typeof e[0]?null:e});var Tn=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var Dn=i(16184),Pn=i(54428),Mn=i(43890);class xn{constructor(e,t,i){this.accessToken=e,this.refreshToken=t,this.clientIdSecretPair=i}}const Vn=new C.Ok(C.uv,"accessToken",{deserializer:e=>e,clearOn:[]}),Gn=new C.Ok(C.oR,"accessToken",{deserializer:e=>e,clearOn:[]}),Un=new C.Ok(C.uv,"refreshToken",{deserializer:e=>e,clearOn:[]}),On=new C.Ok(C.oR,"refreshToken",{deserializer:e=>e,clearOn:[]}),Nn=C.Zs.record(C.MC,"emailTwoFactorTokenRecord",{deserializer:e=>e}),jn=new C.Ok(C.uv,"apiKeyClientId",{deserializer:e=>e,clearOn:[]}),Yn=new C.Ok(C.oR,"apiKeyClientId",{deserializer:e=>e,clearOn:[]}),Xn=new C.Ok(C.uv,"apiKeyClientSecret",{deserializer:e=>e,clearOn:[]}),zn=new C.Ok(C.oR,"apiKeyClientSecret",{deserializer:e=>e,clearOn:[]}),Ln=new C.Ok(C.oR,"securityStamp",{deserializer:e=>e,clearOn:["logout"]});var Wn,Kn=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};!function(e){e.Disk="disk",e.SecureStorage="secureStorage",e.Memory="memory"}(Wn||(Wn={}));var Zn=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var Hn=i(68333),Jn=i(7248);class qn{constructor(e){this.OTP=e}}var $n=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class _n extends st.r{constructor(e){var t;super(e),this.allowCredentials=null===(t=this.getResponseProperty("allowCredentials"))||void 0===t?void 0:t.map(e=>Object.assign(Object.assign({},e),{id:zt.A.fromUrlB64ToArray(e.id).buffer})),this.challenge=zt.A.fromUrlB64ToArray(this.getResponseProperty("challenge")),this.extensions=this.getResponseProperty("extensions"),this.rpId=this.getResponseProperty("rpId"),this.timeout=this.getResponseProperty("timeout"),this.userVerification=this.getResponseProperty("userVerification")}}class er extends st.r{constructor(e){super(e),this.options=new _n(this.getResponseProperty("options")),this.token=this.getResponseProperty("token")}}var tr=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var ir=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class nr{constructor(e,t){this.options=e,this.token=t}}class rr{constructor(e,t,i){this.token=e,this.deviceResponse=t,this.prfKey=i}}var sr=i(97883),or=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var ar=i(37380),lr=i(70342),cr=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const dr=new C.Ok(C.O2,"enableBadgeCounter",{deserializer:e=>null==e||e,clearOn:[]});var ur=i(54473),hr=i(58605),Ar=i(48180),pr=i(2922),gr=i(58329),vr=i(41445),mr=i(71628),fr=i(304),yr=i(3160),br=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var Cr=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Ir=new b.Ok(b.Cg,"accountProfile",{deserializer:e=>e,clearOn:["logout"]});class wr extends st.r{constructor(e){super(e),this.invoices=[];const t=this.getResponseProperty("Invoices");t&&t.length&&(this.invoices=t.map(e=>new Br(e)))}}class Br extends st.r{constructor(e){super(e),this.id=this.getResponseProperty("Id"),this.date=this.getResponseProperty("Date"),this.number=this.getResponseProperty("Number"),this.total=this.getResponseProperty("Total"),this.status=this.getResponseProperty("Status"),this.dueDate=this.getResponseProperty("DueDate"),this.url=this.getResponseProperty("Url")}}class Er extends st.r{constructor(e){super(e),this.isOnSecretsManagerStandalone=this.getResponseProperty("IsOnSecretsManagerStandalone"),this.organizationOccupiedSeats=this.getResponseProperty("OrganizationOccupiedSeats")}}var Sr=i(69580);class Qr extends st.r{constructor(e){super(e),this.checkoutSessionUrl=this.getResponseProperty("CheckoutSessionUrl")}}class kr extends st.r{constructor(e){super(e);const t=this.getResponseProperty("Seat");if(!t||"object"!=typeof t)throw new Error("PremiumPlanResponse: Missing or invalid 'Seat' property");this.seat=new Rr(t);const i=this.getResponseProperty("Storage");if(!i||"object"!=typeof i)throw new Error("PremiumPlanResponse: Missing or invalid 'Storage' property");this.storage=new Rr(i)}}class Rr extends st.r{constructor(e){if(super(e),this.stripePriceId=this.getResponseProperty("StripePriceId"),!this.stripePriceId||"string"!=typeof this.stripePriceId)throw new Error("PurchasableResponse: Missing or invalid 'StripePriceId' property");if(this.price=this.getResponseProperty("Price"),"number"!=typeof this.price||isNaN(this.price))throw new Error("PurchasableResponse: Missing or invalid 'Price' property");if(this.provided=this.getResponseProperty("Provided"),"number"!=typeof this.provided||isNaN(this.provided))throw new Error("PurchasableResponse: Missing or invalid 'Provided' property")}}class Fr extends st.r{constructor(e){super(e),this.type=this.getResponseProperty("Type"),this.description=this.getResponseProperty("Description"),this.needsVerification=this.getResponseProperty("NeedsVerification")}}class Tr extends st.r{constructor(e){super(e),this.suspensionDate=this.getResponseProperty("suspensionDate"),this.unpaidPeriodEndDate=this.getResponseProperty("unpaidPeriodEndDate"),this.gracePeriod=this.getResponseProperty("gracePeriod")}}class Dr extends st.r{constructor(e){super(e),this.taxId=this.getResponseProperty("TaxIdNumber"),this.taxId||(this.taxId=this.getResponseProperty("TaxId")),this.taxIdType=this.getResponseProperty("TaxIdType"),this.line1=this.getResponseProperty("Line1"),this.line2=this.getResponseProperty("Line2"),this.city=this.getResponseProperty("City"),this.state=this.getResponseProperty("State"),this.postalCode=this.getResponseProperty("PostalCode"),this.country=this.getResponseProperty("Country")}}class Pr extends st.r{constructor(e){super(e),this.plans=[],this.status=this.getResponseProperty("status"),this.currentPeriodEndDate=this.getResponseProperty("currentPeriodEndDate"),this.discountPercentage=this.getResponseProperty("discountPercentage"),this.collectionMethod=this.getResponseProperty("collectionMethod");const t=this.getResponseProperty("plans");null!=t&&(this.plans=t.map(e=>new Mr(e))),this.accountCredit=this.getResponseProperty("accountCredit");const i=this.getResponseProperty("taxInformation");null!=i&&(this.taxInformation=new Dr(i)),this.cancelAt=this.getResponseProperty("cancelAt");const n=this.getResponseProperty("suspension");null!=n&&(this.suspension=new Tr(n)),this.providerType=this.getResponseProperty("providerType");const r=this.getResponseProperty("paymentSource");null!=r&&(this.paymentSource=new Fr(r))}}class Mr extends st.r{constructor(e){super(e),this.planName=this.getResponseProperty("PlanName"),this.seatMinimum=this.getResponseProperty("SeatMinimum"),this.assignedSeats=this.getResponseProperty("AssignedSeats"),this.purchasedSeats=this.getResponseProperty("PurchasedSeats"),this.cost=this.getResponseProperty("Cost"),this.cadence=this.getResponseProperty("Cadence"),this.type=this.getResponseProperty("Type"),this.productTier=this.getResponseProperty("ProductTier")}}var xr=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var Vr=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var Gr=i(6933),Ur=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var Or=i(97865),Nr=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var jr=i(77665),Yr=i(64447),Xr=i(55459),zr=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var Lr=i(92567),Wr=i(4958),Kr=i(82468),Zr=i(58412);var Hr=i(32782),Jr=i(75751),qr=i(45977),$r=i(51886),_r=i(64503),es=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var ts=i(94644),is=i(77867);class ns{}var rs=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class ss extends st.r{constructor(e){super(e),this.addedDate=this.getResponseProperty("AddedDate"),this.breachDate=this.getResponseProperty("BreachDate"),this.dataClasses=this.getResponseProperty("DataClasses"),this.description=this.getResponseProperty("Description"),this.domain=this.getResponseProperty("Domain"),this.isActive=this.getResponseProperty("IsActive"),this.isVerified=this.getResponseProperty("IsVerified"),this.logoPath=this.getResponseProperty("LogoPath"),this.modifiedDate=this.getResponseProperty("ModifiedDate"),this.name=this.getResponseProperty("Name"),this.pwnCount=this.getResponseProperty("PwnCount"),this.title=this.getResponseProperty("Title")}}var os=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class as{constructor(e){this.apiService=e}getHibpBreach(e){return os(this,void 0,void 0,function*(){const t=encodeURIComponent(e);return(yield this.apiService.send("GET","/hibp/breach?username="+t,null,!0,!0)).map(e=>new ss(e))})}}var ls=i(35770),cs=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const ds=new b.Ok(b.Gg,"accountCryptographicState",{deserializer:e=>e,clearOn:["logout"]});var us=i(8943),hs=i(45872),As=i(89105),ps=i(6632),gs=i(62870),vs=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const ms=16;class fs{constructor(e){this.buffer=e,this.encryptionType=null,this.dataBytes=null,this.ivBytes=null,this.macBytes=null;const t=e,i=t[0];switch(i){case Pn.Qd.AesCbc256_HmacSha256_B64:{const e=50;t.length<e&&this.throwDecryptionError(),this.ivBytes=t.slice(1,17),this.macBytes=t.slice(17,49),this.dataBytes=t.slice(49);break}case Pn.Qd.AesCbc256_B64:{const e=18;t.length<e&&this.throwDecryptionError(),this.ivBytes=t.slice(1,17),this.dataBytes=t.slice(17);break}default:this.throwDecryptionError()}this.encryptionType=i}throwDecryptionError(){throw new Error("Error parsing encrypted ArrayBuffer: data is corrupted or has an invalid format.")}static fromParts(e,t,i,n){if(null==e||null==t||null==i)throw new Error("encryptionType, iv, and data must be provided");switch(e){case Pn.Qd.AesCbc256_B64:case Pn.Qd.AesCbc256_HmacSha256_B64:fs.validateIvLength(t),fs.validateMacLength(e,n);break;default:throw new Error(`Unknown EncryptionType ${e} for EncArrayBuffer.fromParts`)}let r=0;null!=n&&(r=n.length);const s=new Uint8Array(1+t.byteLength+r+i.byteLength);return s.set([e],0),s.set(t,1),null!=n&&s.set(n,1+t.byteLength),s.set(i,1+t.byteLength+r),new fs(s)}static fromResponse(e){return vs(this,void 0,void 0,function*(){const t=yield e.arrayBuffer();if(null==t)throw new Error("Cannot create EncArrayBuffer from Response - Response is empty");return new fs(new Uint8Array(t))})}static fromB64(e){const t=zt.A.fromB64ToArray(e);return new fs(t)}static validateIvLength(e){if(null==e||e.length!==ms)throw new Error("Invalid IV length")}static validateMacLength(e,t){switch(e){case Pn.Qd.AesCbc256_B64:if(null!=t)throw new Error("mac must not be provided for AesCbc256_B64");break;case Pn.Qd.AesCbc256_HmacSha256_B64:if(null==t||32!==t.length)throw new Error("Invalid MAC length");break;default:throw new Error("Invalid encryption type and mac combination")}}}var ys=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var bs=i(36594),Cs=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var Is=i(39935);class ws extends Jn.V{}class Bs{}class Es extends Bs{}var Ss=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Qs=new C.Ok(C.eP,"deviceKey",{deserializer:e=>e?Mn.e.fromJSON(e):null,clearOn:[],cleanupDelayMs:0,debug:{enableRetrievalLogging:!0,enableUpdateLogging:!0}}),ks=new C.Ok(C.eP,"shouldTrustDevice",{deserializer:e=>e,clearOn:[]});var Rs=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Fs{constructor(e,t,i,n){this.keyService=e,this.biometricsService=t,this.biometricStateService=i,this.logService=n}needsMigration(e){return Rs(this,void 0,void 0,function*(){if(!(yield(0,u._)(this.biometricStateService.biometricUnlockEnabled$(e))))return"noMigrationNeeded";if(!(yield this.biometricsService.hasPersistentKey(e)))return"noMigrationNeeded";const t=yield(0,u._)(this.keyService.userKey$(e));if(null==t)return"noMigrationNeeded";yield gs.B.Ready;const i=ps.CryptoClient.get_key_id_for_symmetric_key(t.toEncoded()),n=yield this.biometricStateService.getBiometricEnrolledKeyId(e),r=null==n&&null!=i,s=null!=n&&null!=i&&n!==zt.A.fromBufferToB64(i);return r||s?"needsMigration":"noMigrationNeeded"})}runMigrations(e,t){return Rs(this,void 0,void 0,function*(){const t=yield(0,u._)(this.keyService.userKey$(e));if(null==t)throw new Error("User key is not available");this.logService.info(`[BiometricPersistentMigration] Re-enrolling biometric keys for user ${e}`),yield this.biometricsService.enrollPersistent(e,t),yield this.biometricsService.setBiometricProtectedUnlockKeyForUser(e,t)})}}var Ts=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Ds{constructor(e,t,i,n,r,s){this.kdfConfigService=e,this.changeKdfService=t,this.logService=i,this.configService=n,this.masterPasswordService=r,this.syncService=s}runMigrations(e,t){return Ts(this,void 0,void 0,function*(){(0,Se.x)(e,"userId"),(0,Se.x)(t,"masterPassword"),this.logService.info(`[MinimumKdfMigration] Updating user ${e} to minimum PBKDF2 iteration count ${I.n1.ITERATIONS.defaultValue}`),yield this.changeKdfService.updateUserKdfParams(t,new I.n1(I.n1.ITERATIONS.min),e),yield this.kdfConfigService.setKdfConfig(e,new I.n1(I.n1.ITERATIONS.min))})}needsMigration(e){return Ts(this,void 0,void 0,function*(){return(0,Se.x)(e,"userId"),(yield this.masterPasswordService.userHasMasterPassword(e))&&(yield this.localStateNeedsMigration(e))&&(yield this.configService.getFeatureFlag(Kr.TO.ForceUpdateKDFSettings))?(yield this.syncService.fullSync(!1),(yield this.localStateNeedsMigration(e))?"needsMigrationWithMasterPassword":(this.logService.info(`[MinimumKdfMigration] After syncing, user ${e} does not need migration anymore. This means the migration was likely already performed on another client!`),"noMigrationNeeded")):"noMigrationNeeded"})}localStateNeedsMigration(e){return Ts(this,void 0,void 0,function*(){const t=yield this.kdfConfigService.getKdfConfig(e);return t.kdfType===I.ao.PBKDF2_SHA256&&t.iterations<I.n1.ITERATIONS.min})}}var Ps=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Ms{constructor(e,t,i,n,r,s,o,a){this.keyService=e,this.userKeyRotationService=t,this.masterPasswordService=i,this.syncService=n,this.configService=r,this.logService=s,this.cipherService=o,this.sdkService=a}needsMigration(e){return Ps(this,void 0,void 0,function*(){return(0,Se.x)(e,"userId"),(yield this.configService.getFeatureFlag(Kr.TO.ForceUpgradeV2Encryption))&&(yield this.userKeyIsV1(e))?(yield this.syncService.fullSync(!1),(yield this.userHasV1Attachments(e))?(this.logService.info(`[V2KeyRotationMigration] User ${e} has v1 attachments. Skipping.`),"noMigrationNeeded"):(yield this.userHasCorruptedPrivateKey(e))?(this.logService.info(`[V2KeyRotationMigration] User ${e} has a missing or corrupted private key. Skipping.`),"noMigrationNeeded"):(yield this.userHasCorruptCiphers(e))?(this.logService.info(`[V2KeyRotationMigration] User ${e} has corrupt ciphers that cannot be decrypted. Skipping.`),"noMigrationNeeded"):(yield this.userKeyIsV1(e))?(yield this.masterPasswordService.userHasMasterPassword(e))?(yield this.userEnrolledInAccountRecovery(e))?(this.logService.info(`[V2KeyRotationMigration] User ${e} is enrolled in account recovery. Skipping.`),"noMigrationNeeded"):(yield this.userHasGrantedEmergencyAccess(e))?(this.logService.info(`[V2KeyRotationMigration] User ${e} has granted emergency access. Skipping.`),"noMigrationNeeded"):"needsMigrationWithMasterPassword":"noMigrationNeeded":(this.logService.info(`[V2KeyRotationMigration] After syncing, user ${e} is already on v2. Skipping.`),"noMigrationNeeded")):"noMigrationNeeded"})}runMigrations(e,t){return Ps(this,void 0,void 0,function*(){if((0,Se.x)(e,"userId"),this.logService.info(`[V2KeyRotationMigration] Rotating user key for user ${e}`),!(yield this.masterPasswordService.userHasMasterPassword(e)))throw new Error("[V2KeyRotationMigration] Rotation for users without master passwords is not currently supported.");(0,Se.x)(t,"masterPassword");if(!(yield this.userKeyRotationService.rotateUserKey({Password:{password:t}},"CreateIfNeeded",e)))throw new Error("[V2KeyRotationMigration] Rotation aborted by user trust prompt.");this.logService.info(`[V2KeyRotationMigration] Performing full sync after v2 upgrade for user ${e}`),yield this.syncService.fullSync(!0)})}userKeyIsV1(e){return Ps(this,void 0,void 0,function*(){const t=yield(0,u._)(this.keyService.userKey$(e));if(null==t)throw new Error(`[V2KeyRotationMigration] No user key found for user ${e}`);return t.inner().type===Pn.Qd.AesCbc256_HmacSha256_B64})}userEnrolledInAccountRecovery(e){return Ps(this,void 0,void 0,function*(){return yield Te(e,this.sdkService,e=>Ps(this,void 0,void 0,function*(){return(yield e.user_crypto_management().get_untrusted_organization_public_keys()).length>0}))})}userHasGrantedEmergencyAccess(e){return Ps(this,void 0,void 0,function*(){return yield Te(e,this.sdkService,e=>Ps(this,void 0,void 0,function*(){return(yield e.user_crypto_management().get_untrusted_emergency_access_public_keys()).length>0}))})}userHasCorruptedPrivateKey(e){return Ps(this,void 0,void 0,function*(){return yield Te(e,this.sdkService,e=>Ps(this,void 0,void 0,function*(){return yield e.user_crypto_management().should_regenerate_public_key_encryption_key_pair()}))})}userHasV1Attachments(e){return Ps(this,void 0,void 0,function*(){const t=yield(0,u._)(this.cipherService.cipherViews$(e));return null!=t&&t.filter(e=>e.isUserOwnedCipher).some(e=>e.hasOldAttachments)})}userHasCorruptCiphers(e){return Ps(this,void 0,void 0,function*(){yield(0,u._)(this.cipherService.cipherViews$(e));const t=yield(0,u._)(this.cipherService.failedToDecryptCiphers$(e));return null!=t&&t.length>0})}}var xs=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Vs{}var Gs=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Us{}var Os=i(10459);class Ns{constructor(e,t,i){this.masterPasswordHash=e,this.authenticationData=t,this.unlockData=i}}var js=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})},Ys=function(e,t,i){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,r;if(i){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],i&&(r=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");r&&(n=function(){try{r.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:i})}else i&&e.stack.push({async:!0});return t},Xs=function(e){return function(t){function i(i){t.error=t.hasError?new e(i,t.error,"An error was suppressed during disposal."):i,t.hasError=!0}var n,r=0;return function e(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(e);if(n.dispose){var s=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(s).then(e,function(t){return i(t),e()})}else r|=1}catch(o){i(o)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}}("function"==typeof SuppressedError?SuppressedError:function(e,t,i){var n=new Error(i);return n.name="SuppressedError",n.error=e,n.suppressed=t,n});class zs{}class Ls{}var Ws=i(52057);class Ks extends st.r{constructor(e){super(e),this.organizationName=this.getResponseProperty("OrganizationName")}}var Zs=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var Hs=i(48541);class Js{constructor(e){this.key=e}}class qs{constructor(e,t,i,n){this.key=e,this.kdf=t.kdfType,this.kdfIterations=t.iterations,t.kdfType===I.ao.Argon2id&&(this.kdfMemory=t.memory,this.kdfParallelism=t.parallelism),this.orgIdentifier=i,this.keys=n}}var $s=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})},_s=function(e,t,i){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,r;if(i){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],i&&(r=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");r&&(n=function(){try{r.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:i})}else i&&e.stack.push({async:!0});return t},eo=function(e){return function(t){function i(i){t.error=t.hasError?new e(i,t.error,"An error was suppressed during disposal."):i,t.hasError=!0}var n,r=0;return function e(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(e);if(n.dispose){var s=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(s).then(e,function(t){return i(t),e()})}else r|=1}catch(o){i(o)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}}("function"==typeof SuppressedError?SuppressedError:function(e,t,i){var n=new Error(i);return n.name="SuppressedError",n.error=e,n.suppressed=t,n});const to=new C.Ok(C._Q,"usesKeyConnector",{deserializer:e=>e,clearOn:["logout"],cleanupDelayMs:0}),io=new C.Ok(C._Q,"newSsoUserKeyConnectorConversion",{deserializer:e=>null==e?null:{kdfConfig:e.kdfConfig.kdfType===I.ao.PBKDF2_SHA256?I.n1.fromJSON(e.kdfConfig):I.hU.fromJSON(e.kdfConfig),keyConnectorUrl:e.keyConnectorUrl,organizationId:e.organizationId},clearOn:["logout"],cleanupDelayMs:0});class no{}class ro{constructor(e){if("object"!=typeof e||null==e)throw new TypeError("Response must be an object");if(!("publicKey"in e&&e.publicKey instanceof Uint8Array))throw new TypeError("Response must contain a valid publicKey");if(this.publicKey=e.publicKey,"verifyingKey"in e&&"string"==typeof e.verifyingKey?this.verifyingKey=e.verifyingKey:this.verifyingKey=null,"signedPublicKey"in e&&"string"==typeof e.signedPublicKey?this.signedPublicKey=e.signedPublicKey:this.signedPublicKey=null,null!==this.signedPublicKey&&null===this.verifyingKey||null===this.signedPublicKey&&null!==this.verifyingKey)throw new TypeError("Both signedPublicKey and verifyingKey must be present or absent together")}}var so=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var oo=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var ao=i(17898),lo=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var co,uo=i(8777),ho=i(39250),Ao=i(12055),po=i(76987),go=i(91254),vo=i(73140),mo=i(73700);!function(e){e[e.SignalR=0]="SignalR",e[e.WebPush=1]="WebPush"}(co||(co={}));class fo{constructor(e){var t,i;this.featureStates={},this.version=e.version,this.gitHash=e.gitHash,this.server=e.server,this.utcDate=new Date(e.utcDate),this.environment=e.environment,this.featureStates=e.featureStates,this.push=null==e.push?{pushTechnology:co.SignalR}:{pushTechnology:e.push.pushTechnology,vapidPublicKey:e.push.vapidPublicKey},this.settings=e.settings,null==(null===(t=this.server)||void 0===t?void 0:t.name)&&null==(null===(i=this.server)||void 0===i?void 0:i.url)&&(this.server=null)}getAgeInMilliseconds(){var e;return(new Date).getTime()-(null===(e=this.utcDate)||void 0===e?void 0:e.getTime())}isValid(){return this.getAgeInMilliseconds()<=864e5}static fromJSON(e){return null==e?null:new fo(e)}}var yo=i(29377);function bo(e){return"string"==typeof e?JSON.parse(e):e}function Co(e){var t;const i=null!==(t=bo({sdk:!0}))&&void 0!==t?t:{};return null==i[e]||!!i[e]}class Io{constructor(e){var t,i;this.disableUserRegistration=null!==(t=null==e?void 0:e.disableUserRegistration)&&void 0!==t&&t,this.suppressOnboardingInterstitials=null!==(i=null==e?void 0:e.suppressOnboardingInterstitials)&&void 0!==i&&i}}class wo{constructor(e){this.featureStates={},this.version=null==e?void 0:e.version,this.gitHash=null==e?void 0:e.gitHash,this.server=(null==e?void 0:e.server)?new Eo(e.server):null,this.utcDate=(new Date).toISOString(),this.environment=(null==e?void 0:e.environment)?new So(e.environment):null,this.featureStates=null==e?void 0:e.featureStates,this.settings=new Io(e.settings),this.push=(null==e?void 0:e.push)?new Bo(e.push):null}static fromJSON(e){return Object.assign(new wo({}),e,{server:(null==e?void 0:e.server)?Eo.fromJSON(e.server):null,environment:(null==e?void 0:e.environment)?So.fromJSON(e.environment):null})}}class Bo{constructor(e){this.pushTechnology=e.pushTechnology,this.vapidPublicKey=e.vapidPublicKey}static fromJSON(e){return Object.assign(new Bo({}),e)}}class Eo{constructor(e){this.name=e.name,this.url=e.url}static fromJSON(e){return Object.assign(new Eo({}),e)}}class So{constructor(e){this.cloudRegion=e.cloudRegion,this.vault=e.vault,this.api=e.api,this.identity=e.identity,this.notifications=e.notifications,this.sso=e.sso,this.fillAssistRules=e.fillAssistRules}static fromJSON(e){return Object.assign(new So({}),e)}}var Qo=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const ko=new C.Ok(C.Z6,"serverConfig",{deserializer:e=>null==e?null:fo.fromJSON(e),clearOn:["logout"]}),Ro=C.Zs.record(C.Z6,"byServer",{deserializer:e=>null==e?null:fo.fromJSON(e)}),Fo=C.Zs.record(C.Z6,"featureFlagOverrides",{deserializer:e=>e}),To=(e,t)=>e.getApiUrl()===t.getApiUrl();class Do{constructor(e,t,i,n,r){this.configApiService=e,this.environmentService=t,this.logService=i,this.stateProvider=n,this.authService=r,this.failedFetchFallbackSubject=new d.B,this.serverCommunicationConfigSubject=new ho.m(1),this.serverCommunicationConfig$=this.serverCommunicationConfigSubject.asObservable();const s=this.environmentService.globalEnvironment$.pipe((0,$i.F)(To),(0,jt.n)(e=>this.globalConfigFor$(e.getApiUrl()).pipe((0,p.T)(t=>[t,null,e,t]))));this.serverConfig$=this.stateProvider.activeUserId$.pipe((0,$i.F)(),(0,jt.n)(e=>null==e?s:this.authService.authStatusFor$(e).pipe((0,p.T)(e=>e===m.J.Unlocked),(0,$i.F)(),(0,jt.n)(t=>t?(0,xt.z)([this.environmentService.getEnvironment$(e).pipe((0,$i.F)(To)),this.userConfigFor$(e)]).pipe((0,jt.n)(([t,i])=>null==i?this.globalConfigFor$(t.getApiUrl()).pipe((0,p.T)(i=>[null,e,t,i])):(0,ln.of)([i,e,t,i]))):s))),(0,P.M)(e=>Qo(this,void 0,void 0,function*(){const[t,i,n,r]=e;t&&!this.olderThanRetrievalInterval(t.utcDate)||(yield this.renewConfig(t,i,n,r))})),(0,jt.n)(([e])=>!e||this.olderThanRetrievalInterval(e.utcDate)?Ao.t:(0,ln.of)(e)),(0,po.X)(this.failedFetchFallbackSubject),(0,go.u)({connector:()=>new ho.m(1),resetOnRefCountZero:()=>(0,vo.O)(1e3)})),this.cloudRegion$=this.serverConfig$.pipe((0,p.T)(e=>{var t,i;return null!==(i=null===(t=null==e?void 0:e.environment)||void 0===t?void 0:t.cloudRegion)&&void 0!==i?i:yo.T.US})),this.serverSettings$=this.serverConfig$.pipe((0,p.T)(e=>{var t;return null!==(t=null==e?void 0:e.settings)&&void 0!==t?t:new Io})),this.featureFlagOverrides$=this.stateProvider.getGlobal(Fo).state$}getFeatureFlag$(e){return(0,xt.z)([this.serverConfig$,this.featureFlagOverrides$]).pipe((0,p.T)(([t,i])=>this.resolveFlag(t,i,e)))}userCachedFeatureFlag$(e,t){return(0,xt.z)([this.stateProvider.getUser(t,ko).state$,this.featureFlagOverrides$]).pipe((0,p.T)(([t,i])=>this.resolveFlag(t,i,e)))}getFeatureFlag(e){return Qo(this,void 0,void 0,function*(){return yield(0,u._)(this.getFeatureFlag$(e))})}resolveFlag(e,t,i){return null!=t&&null!=t[i]?t[i]:(0,Kr.Y6)(e,i)}checkServerMeetsVersionRequirement$(e){return this.serverConfig$.pipe((0,p.T)(t=>{if(null==t)return!1;return new mo.SemVer(t.version).compare(e)>=0}))}ensureConfigFetched(){return Qo(this,void 0,void 0,function*(){yield(0,u._)(this.serverConfig$)})}olderThanRetrievalInterval(e){return(new Date).getTime()-e.getTime()>36e5}renewConfig(e,t,i,n){return Qo(this,void 0,void 0,function*(){var r,s,o;try{const a=setTimeout(()=>{this.logService.info("Environment did not respond in time, emitting previous config."),this.failedFetchFallbackSubject.next(n)},800),l=yield this.configApiService.get(t);clearTimeout(a);const c=new fo(new wo(l));this.parseBootstrapConfig(l),null!=(null===(r=null==c?void 0:c.environment)||void 0===r?void 0:r.cloudRegion)&&(null===(s=null==e?void 0:e.environment)||void 0===s?void 0:s.cloudRegion)!=c.environment.cloudRegion&&(yield this.environmentService.setCloudRegion(t,null===(o=null==c?void 0:c.environment)||void 0===o?void 0:o.cloudRegion)),null==t?yield this.stateProvider.getGlobal(Ro).update(e=>Object.assign(Object.assign({},e),{[i.getApiUrl()]:c})):yield this.stateProvider.setUserState(ko,c,t)}catch(a){this.logService.error(`Unable to fetch ServerConfig from ${i.getApiUrl()}`,a),this.failedFetchFallbackSubject.next(n)}})}globalConfigFor$(e){return this.stateProvider.getGlobal(Ro).state$.pipe((0,p.T)(t=>{var i;return null!==(i=null==t?void 0:t[e])&&void 0!==i?i:null}))}userConfigFor$(e){return this.stateProvider.getUser(e,ko).state$}parseBootstrapConfig(e){var t,i,n;const r=null!==(i=null===(t=e.communication)||void 0===t?void 0:t.bootstrap)&&void 0!==i?i:null,s=null===(n=e.environment)||void 0===n?void 0:n.vault,o="ssoCookieVendor"===(null==r?void 0:r.type)&&null!=s?{bootstrap:{type:"ssoCookieVendor",idpLoginUrl:r.idpLoginUrl,cookieName:r.cookieName,cookieDomain:r.cookieDomain,vaultUrl:s,cookieValue:void 0}}:{bootstrap:{type:"direct"}};this.serverCommunicationConfigSubject.next(o)}}var Po=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Mo=new C.Ok(C.Tf,"masterKey",{deserializer:e=>Mn.e.fromJSON(e),clearOn:["lock","logout"]}),xo=new C.Ok(C.Br,"masterKeyEncryptedUserKey",{deserializer:e=>e,clearOn:["logout"]}),Vo=new C.Ok(C.Br,"forceSetPasswordReason",{deserializer:e=>e,clearOn:["logout"]}),Go=new C.Ok(C.y7,"masterPasswordUnlockKey",{deserializer:e=>Os.k.fromJSON(e),clearOn:["logout"]});var Uo=i(84101),Oo=function(e,t,i,n){var r,s=arguments.length,o=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,i,o):r(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o},No=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},jo=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Yo{constructor(e){this.sdkService=e}getPinLockType(e){return jo(this,void 0,void 0,function*(){return yield this.withPinSettingsClient(e,e=>jo(this,void 0,void 0,function*(){return yield e.get_lock_type()}))})}isPinSet(e){return jo(this,void 0,void 0,function*(){return yield this.withPinSettingsClient(e,e=>jo(this,void 0,void 0,function*(){const t=yield e.get_status();return"Available"===t||"NeedsUnlock"===t}))})}logout(e){return jo(this,void 0,void 0,function*(){return yield this.withPinSettingsClient(e,e=>jo(this,void 0,void 0,function*(){return yield e.unset_pin()}))})}getPin(e){return jo(this,void 0,void 0,function*(){return yield this.withPinSettingsClient(e,e=>jo(this,void 0,void 0,function*(){return yield e.get_pin()}))})}setPin(e,t,i){return jo(this,void 0,void 0,function*(){return yield this.withPinSettingsClient(i,i=>jo(this,void 0,void 0,function*(){return yield i.set_pin(e,t)}))})}unsetPin(e){return jo(this,void 0,void 0,function*(){return yield this.withPinSettingsClient(e,e=>jo(this,void 0,void 0,function*(){return yield e.unset_pin()}))})}isPinDecryptionAvailable(e){return jo(this,void 0,void 0,function*(){return yield this.withPinSettingsClient(e,e=>jo(this,void 0,void 0,function*(){return"Available"===(yield e.get_status())}))})}validatePin(e,t){return jo(this,void 0,void 0,function*(){return yield this.withPinSettingsClient(t,t=>jo(this,void 0,void 0,function*(){return yield t.validate_pin(e)}))})}withPinSettingsClient(e,t){return jo(this,void 0,void 0,function*(){return yield Te(e,this.sdkService,e=>jo(this,void 0,void 0,function*(){return yield t(e.user_crypto_management().pin_settings())}))})}}Oo([De(),No("design:type",Function),No("design:paramtypes",[String]),No("design:returntype",Promise)],Yo.prototype,"getPinLockType",null),Oo([De(),No("design:type",Function),No("design:paramtypes",[String]),No("design:returntype",Promise)],Yo.prototype,"isPinSet",null),Oo([De(),No("design:type",Function),No("design:paramtypes",[String]),No("design:returntype",Promise)],Yo.prototype,"logout",null),Oo([De(),No("design:type",Function),No("design:paramtypes",[String]),No("design:returntype",Promise)],Yo.prototype,"getPin",null),Oo([De(),No("design:type",Function),No("design:paramtypes",[String,String,String]),No("design:returntype",Promise)],Yo.prototype,"setPin",null),Oo([De(),No("design:type",Function),No("design:paramtypes",[String]),No("design:returntype",Promise)],Yo.prototype,"unsetPin",null),Oo([De(),No("design:type",Function),No("design:paramtypes",[String]),No("design:returntype",Promise)],Yo.prototype,"isPinDecryptionAvailable",null),Oo([De(),No("design:type",Function),No("design:paramtypes",[String,String]),No("design:returntype",Promise)],Yo.prototype,"validatePin",null);var Xo=i(75633);class zo{}const Lo=1e5;var Wo=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Ko{}class Zo{}const Ho=new C.Ok(C.Gg,"v2UpgradeToken",{deserializer:e=>e,clearOn:["logout"],cleanupDelayMs:0});var Jo=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var qo=i(91059),$o=i(61515);class _o{}class ea{}var ta=i(33413);class ia{}var na=i(66523),ra=i(21551);class sa{}var oa=i(2471);class aa{}class la{openPopup(){throw new Error("Open Popup unsupported.")}}var ca=i(10760),da=i(5819);new C.Zs(C.g4,"subUsers",{deserializer:e=>{if(null==e)return{};const t={};for(const[i,n]of Object.entries(e))t[i]=Array.isArray(n)?n:[];return t}});var ua=i(41973),ha=i(18770),Aa=i(28046),pa=i(34414);const ga=12e4;class va{constructor(e){this.logService=e}redactMessage(e){const t="access_token=",i=e.indexOf(t);return-1!==i?e.substring(0,i+13)+"[REDACTED]":e}log(e,t){const i=`[SignalR] ${this.redactMessage(t)}`;switch(e){case ua.$.Critical:case ua.$.Error:this.logService.error(i);break;case ua.$.Warning:this.logService.warning(i);break;case ua.$.Information:this.logService.info(i);break;case ua.$.Debug:this.logService.debug(i)}}}class ma{constructor(e,t,i,n=()=>new Ti.$,r=globalThis){this.apiService=e,this.logService=t,this.platformUtilsService=i,this.hubConnectionBuilderFactory=n,this.timeoutManager=r}connect$(e,t){if(!t.startsWith("https://")&&!this.platformUtilsService.isDev())throw new Ji;return new Aa.c(i=>{const n=this.hubConnectionBuilderFactory().withUrl(t+"/hub",{accessTokenFactory:()=>this.apiService.getActiveBearerToken(e),skipNegotiation:!0,transport:Di.w.WebSockets}).withHubProtocol(new Pi.E).configureLogging(new va(this.logService)).build();n.on("ReceiveMessage",e=>{i.next({type:"ReceiveMessage",message:new Gi(e)})}),n.on("Heartbeat",()=>{i.next({type:"Heartbeat"})});let r=null;const s=()=>{if(null==n||n.state!==ha.j.Disconnected||null!=r&&!r.closed)return;if(i.closed)return;const e=this.randomReconnectTime(),t=this.timeoutManager.setTimeout(()=>{n.start().then(()=>{r=null}).catch(()=>{s()})},e);r=new pa.yU(()=>this.timeoutManager.clearTimeout(t))};return n.onclose(e=>{s()}),n.start().catch(()=>{s()}),()=>{null==r||r.unsubscribe(),null==n||n.stop().catch(e=>{this.logService.error("Error while stopping SignalR connection",e)})}})}randomReconnectTime(){return Math.floor(180001*Math.random())+ga}}var fa=i(71232),ya=i(73074);var ba=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Ca=new Set([Yt._n.AuthRequest,Yt._n.AutoConfirmMember]);class Ia{supportStatus$(e){return(0,ln.of)({type:"not-supported",reason:"client-not-supported"})}}class wa{}class Ba{static from(e){var t,i;const n=new Ba;return n.endpoint=e.endpoint,n.p256dh=null===(t=e.keys)||void 0===t?void 0:t.p256dh,n.auth=null===(i=e.keys)||void 0===i?void 0:i.auth,n}}var Ea=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Sa{constructor(e,t){this.apiService=e,this.appIdService=t}putSubscription(e,t){return Ea(this,void 0,void 0,function*(){const i=Ba.from(e);yield this.apiService.send("POST",`/devices/identifier/${yield this.appIdService.getAppId()}/web-push-auth`,i,t,!1)})}}var Qa=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class ka{constructor(e,t){this.storageService=e,this.logService=t}getAppId(){return Qa(this,void 0,void 0,function*(){return this.logService.info("Retrieving application id"),yield this.getEnsuredValue("global_applicationId_appId")})}getAnonymousAppId(){return Qa(this,void 0,void 0,function*(){return yield this.getEnsuredValue("global_applicationId_appId")})}getEnsuredValue(e){return Qa(this,void 0,void 0,function*(){let t=yield this.storageService.get(e);return null==t&&(t=zt.A.newGuid(),yield this.storageService.save(e,t)),t})}}class Ra extends st.r{constructor(e){super(e),this.featureStates={},null!=e&&(this.version=this.getResponseProperty("Version"),this.gitHash=this.getResponseProperty("GitHash"),this.server=new Pa(this.getResponseProperty("Server")),this.environment=new Da(this.getResponseProperty("Environment")),this.featureStates=this.getResponseProperty("FeatureStates"),this.push=new Ta(this.getResponseProperty("Push")),this.settings=new Fa(this.getResponseProperty("Settings")),this.communication=new Ma(this.getResponseProperty("Communication")))}}class Fa extends st.r{constructor(e){var t,i;super(e),this.disableUserRegistration=!1,this.suppressOnboardingInterstitials=!1,null!=e&&(this.disableUserRegistration=null!==(t=this.getResponseProperty("DisableUserRegistration"))&&void 0!==t&&t,this.suppressOnboardingInterstitials=null!==(i=this.getResponseProperty("SuppressOnboardingInterstitials"))&&void 0!==i&&i)}}class Ta extends st.r{constructor(e=null){super(e),null!=e&&(this.pushTechnology=this.getResponseProperty("PushTechnology"),this.vapidPublicKey=this.getResponseProperty("VapidPublicKey"))}}class Da extends st.r{constructor(e=null){super(e),null!=e&&(this.cloudRegion=this.getResponseProperty("CloudRegion"),this.vault=this.getResponseProperty("Vault"),this.api=this.getResponseProperty("Api"),this.identity=this.getResponseProperty("Identity"),this.notifications=this.getResponseProperty("Notifications"),this.sso=this.getResponseProperty("Sso"),this.fillAssistRules=this.getResponseProperty("FillAssistRules"))}}class Pa extends st.r{constructor(e=null){super(e),null!=e&&(this.name=this.getResponseProperty("Name"),this.url=this.getResponseProperty("Url"))}}class Ma extends st.r{constructor(e=null){super(e),null!=e&&(this.bootstrap=new xa(this.getResponseProperty("Bootstrap")))}}class xa extends st.r{constructor(e=null){super(e),null!=e&&(this.type=this.getResponseProperty("Type"),this.idpLoginUrl=this.getResponseProperty("IdpLoginUrl"),this.cookieName=this.getResponseProperty("CookieName"),this.cookieDomain=this.getResponseProperty("CookieDomain"))}}var Va=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var Ga=i(62627);var Ua=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Oa{static fromJSON(e){return Object.assign(new Oa,e)}}const Na=new C.Zs(C.ww,"environment",{deserializer:Oa.fromJSON}),ja=new C.Ok(C.ww,"environment",{deserializer:Oa.fromJSON,clearOn:["logout"]}),Ya=new C.Zs(C.Wm,"cloudRegion",{deserializer:e=>e}),Xa=new C.Ok(C.Wm,"cloudRegion",{deserializer:e=>e,clearOn:["logout"]}),za=[{key:yo.T.US,domain:"bitwarden.com",urls:{base:null,api:"https://api.bitwarden.com",identity:"https://identity.bitwarden.com",icons:"https://icons.bitwarden.net",webVault:"https://vault.bitwarden.com",notifications:"https://notifications.bitwarden.com",events:"https://events.bitwarden.com",scim:"https://scim.bitwarden.com",send:"https://send.bitwarden.com"}},{key:yo.T.EU,domain:"bitwarden.eu",urls:{base:null,api:"https://api.bitwarden.eu",identity:"https://identity.bitwarden.eu",icons:"https://icons.bitwarden.eu",webVault:"https://vault.bitwarden.eu",notifications:"https://notifications.bitwarden.eu",events:"https://events.bitwarden.eu",scim:"https://scim.bitwarden.eu",send:"https://vault.bitwarden.eu"}},{key:yo.T.Gov,domain:"bitwarden-gov.com",urls:{base:null,api:"https://api.bitwarden-gov.com",identity:"https://identity.bitwarden-gov.com",icons:"https://icons.bitwarden-gov.com",webVault:"https://vault.bitwarden-gov.com",notifications:"https://notifications.bitwarden-gov.com",events:"https://events.bitwarden-gov.com",scim:"https://scim.bitwarden-gov.com",send:"https://send.bitwarden-gov.com"}}],La=yo.T.US,Wa=za.find(e=>e.key===La);class Ka{constructor(e,t,i=[]){this.stateProvider=e,this.accountService=t,this.additionalRegionConfigs=i,this.activeAccountId$=this.accountService.activeAccount$.pipe((0,p.T)(e=>null==e?void 0:e.id)),this.globalState=this.stateProvider.getGlobal(Na),this.globalCloudRegionState=this.stateProvider.getGlobal(Ya);const n=this.activeAccountId$.pipe((0,$i.F)((e,t)=>e==t));this.globalEnvironment$=this.stateProvider.getGlobal(Na).state$.pipe((0,p.T)(e=>this.buildEnvironment(null==e?void 0:e.region,null==e?void 0:e.urls)));const r=this.stateProvider.getGlobal(Na).state$;this.environment$=n.pipe((0,jt.n)(e=>e?this.stateProvider.getUser(e,ja).state$.pipe((0,jt.n)(e=>null!=e?(0,ln.of)(e):r)):r),(0,p.T)(e=>this.buildEnvironment(null==e?void 0:e.region,null==e?void 0:e.urls)));const s=this.stateProvider.getGlobal(Ya).state$;this.cloudWebVaultUrl$=n.pipe((0,jt.n)(e=>e?this.stateProvider.getUser(e,Xa).state$.pipe((0,jt.n)(e=>null!=e?(0,ln.of)(e):s)):s),(0,p.T)(e=>{if(null!=e){const t=this.getRegionConfig(e);if(null!=t)return t.urls.webVault}return Wa.urls.webVault}))}availableRegions(){return za.concat(this.additionalRegionConfigs)}getRegionConfig(e){return this.availableRegions().find(t=>t.key===e)}setEnvironment(e,t){return Ua(this,void 0,void 0,function*(){return null==this.getRegionConfig(e)&&(e=yo.T.SelfHosted),e==yo.T.SelfHosted&&Ha(t)&&(e=La),e!=yo.T.SelfHosted?(yield this.globalState.update(()=>({region:e,urls:null})),null):(t.base=Za(t.base),t.webVault=Za(t.webVault),t.api=Za(t.api),t.identity=Za(t.identity),t.icons=Za(t.icons),t.notifications=Za(t.notifications),t.events=Za(t.events),t.keyConnector=Za(t.keyConnector),t.send=Za(t.send),t.scim=null,yield this.globalState.update(()=>({region:e,urls:{base:t.base,api:t.api,identity:t.identity,webVault:t.webVault,icons:t.icons,notifications:t.notifications,events:t.events,keyConnector:t.keyConnector,send:t.send}})),t)})}buildEnvironment(e,t){if(null==this.getRegionConfig(e)&&(e=yo.T.SelfHosted),e==yo.T.SelfHosted&&Ha(t)&&(e=La),e!=yo.T.SelfHosted){const t=this.getRegionConfig(e);if(null!=t)return new qa(t)}return new $a(t)}setCloudRegion(e,t){return Ua(this,void 0,void 0,function*(){null==e?yield this.globalCloudRegionState.update(()=>t):yield this.stateProvider.getUser(e,Xa).update(()=>t)})}getEnvironment$(e){return this.stateProvider.getUser(e,ja).state$.pipe((0,p.T)(e=>this.buildEnvironment(null==e?void 0:e.region,null==e?void 0:e.urls)))}getEnvironment(e){return Ua(this,void 0,void 0,function*(){const t=null!=e?e:yield(0,u._)(this.activeAccountId$);return(0,u._)(this.getEnvironment$(t))})}seedUserEnvironment(e){return Ua(this,void 0,void 0,function*(){const t=yield(0,u._)(this.globalState.state$);yield this.stateProvider.getUser(e,ja).update(()=>t)})}}function Za(e){return null==e||""===e?null:((e=e.replace(/\/+$/g,"")).startsWith("http://")||e.startsWith("https://")||(e="https://"+e),e.trim())}function Ha(e){return null==e||null==e.base&&null==e.webVault&&null==e.api&&null==e.identity&&null==e.icons&&null==e.notifications&&null==e.events}class Ja{constructor(e,t){this.region=e,this.urls=t,e==yo.T.SelfHosted&&(this.urls.scim=null)}getRegion(){return this.region}getUrls(){return{base:this.urls.base,webVault:this.urls.webVault,api:this.urls.api,identity:this.urls.identity,icons:this.urls.icons,notifications:this.urls.notifications,events:this.urls.events,keyConnector:this.urls.keyConnector,scim:this.urls.scim,send:this.urls.send}}hasBaseUrl(){return null!=this.urls.base}getWebVaultUrl(){return this.getUrl("webVault","")}getApiUrl(){return this.getUrl("api","/api")}getEventsUrl(){return this.getUrl("events","/events")}getIconsUrl(){return this.getUrl("icons","/icons")}getIdentityUrl(){return this.getUrl("identity","/identity")}getKeyConnectorUrl(){return this.urls.keyConnector}getNotificationsUrl(){return this.getUrl("notifications","/notifications")}getScimUrl(){return null!=this.urls.scim?this.urls.scim+"/v2":this.getWebVaultUrl()+"/scim/v2"}getSendUrl(){return null!=this.urls.send?"https://send.bitwarden.com"===this.urls.send?this.urls.send+"/#":this.urls.send.endsWith("/#/send/")?this.urls.send:this.urls.send+"/#/send/":this.getWebVaultUrl()+"/#/send/"}isCloud(){return this.region!==yo.T.SelfHosted}getUrl(e,t){return null!=this.urls[e]?this.urls[e]:this.urls.base?this.urls.base+t:this.region===yo.T.SelfHosted&&this.urls.webVault?this.urls.webVault+t:Wa.urls[e]}}class qa extends Ja{constructor(e){super(e.key,e.urls),this.config=e}getHostname(){return this.config.domain}}class $a extends Ja{constructor(e){super(yo.T.SelfHosted,e)}getHostname(){return zt.A.getHost(this.getWebVaultUrl())}}var _a=i(62602),el=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const tl=268435456;class il{constructor(e,t,i){this.logService=e,this.apiService=t,this.configService=i}upload(e,t,i,n){return el(this,void 0,void 0,function*(){return(yield this.configService.getFeatureFlag(Kr.TO.PM34410AttachmentUploadProgress))?t.buffer.byteLength<=tl?yield this.azureUploadBlob(e,t,n):yield this.azureUploadBlocks(e,t,i,n):t.buffer.byteLength<=tl?yield this.azureUploadBlob(e,t):yield this.legacyAzureUploadBlocks(e,t,i)})}azureUploadBlob(e,t,i){return el(this,void 0,void 0,function*(){const n=zt.A.getUrl(e),r=new Headers({"x-ms-date":(new Date).toUTCString(),"x-ms-version":n.searchParams.get("sv"),"Content-Length":t.buffer.byteLength.toString(),"x-ms-blob-type":"BlockBlob"}),s=new Request(e,{body:t.buffer,cache:"no-store",method:"PUT",headers:r}),o=zt.A.isBrowser&&(null==i?void 0:i.onProgress)?yield this.apiService.nativeXMLHttpRequest(s,i.onProgress):yield this.apiService.nativeFetch(s);if(201!==o.status)throw new Error(`Failed to create Azure blob: ${o.status}`)})}azureUploadBlocks(e,t,i,n){return el(this,void 0,void 0,function*(){e=yield this.renewUrlIfNecessary(e,i);const r=zt.A.getUrl(e),s=this.encodedBlockId(0);r.searchParams.append("comp","block"),r.searchParams.append("blockid",s);const o=new Headers({"x-ms-date":(new Date).toUTCString(),"x-ms-version":r.searchParams.get("sv"),"Content-Length":t.buffer.byteLength.toString()}),a=new Request(r.toString(),{body:t.buffer,cache:"no-store",method:"PUT",headers:o}),l=zt.A.isBrowser&&(null==n?void 0:n.onProgress)?yield this.apiService.nativeXMLHttpRequest(a,n.onProgress):yield this.apiService.nativeFetch(a);if(201!==l.status){const e=`Unsuccessful block PUT. Received status ${l.status}`;throw this.logService.error(e+"\n"+(yield l.json())),new Error(e)}e=yield this.renewUrlIfNecessary(e,i);const c=zt.A.getUrl(e),d=this.blockListXml([s]);c.searchParams.append("comp","blocklist");const u=new Headers({"x-ms-date":(new Date).toUTCString(),"x-ms-version":c.searchParams.get("sv"),"Content-Length":d.length.toString()}),h=new Request(c.toString(),{body:d,cache:"no-store",method:"PUT",headers:u}),A=yield this.apiService.nativeFetch(h);if(201!==A.status){const e=`Unsuccessful block list PUT. Received status ${A.status}`;throw this.logService.error(e+"\n"+(yield A.json())),new Error(e)}})}legacyAzureUploadBlocks(e,t,i){return el(this,void 0,void 0,function*(){const n=zt.A.getUrl(e),r=this.getMaxBlockSize(n.searchParams.get("sv"));let s=0;const o=Math.ceil(t.buffer.byteLength/r),a=[];if(o>5e4)throw new Error("Cannot upload file, exceeds maximum size of "+5e4*r);try{for(;s<o;){e=yield this.renewUrlIfNecessary(e,i);const n=zt.A.getUrl(e),o=this.encodedBlockId(s);n.searchParams.append("comp","block"),n.searchParams.append("blockid",o);const l=s*r,c=t.buffer.slice(l,l+r),d=new Headers({"x-ms-date":(new Date).toUTCString(),"x-ms-version":n.searchParams.get("sv"),"Content-Length":c.byteLength.toString()}),u=new Request(n.toString(),{body:c,cache:"no-store",method:"PUT",headers:d}),h=yield this.apiService.nativeFetch(u);if(201!==h.status){const e=`Unsuccessful block PUT. Received status ${h.status}`;throw this.logService.error(e+"\n"+(yield h.json())),new Error(e)}a.push(o),s++}e=yield this.renewUrlIfNecessary(e,i);const n=zt.A.getUrl(e),l=this.blockListXml(a);n.searchParams.append("comp","blocklist");const c=new Headers({"x-ms-date":(new Date).toUTCString(),"x-ms-version":n.searchParams.get("sv"),"Content-Length":l.length.toString()}),d=new Request(n.toString(),{body:l,cache:"no-store",method:"PUT",headers:c}),u=yield this.apiService.nativeFetch(d);if(201!==u.status){const e=`Unsuccessful block list PUT. Received status ${u.status}`;throw this.logService.error(e+"\n"+(yield u.json())),new Error(e)}}catch(l){throw l}})}renewUrlIfNecessary(e,t){return el(this,void 0,void 0,function*(){var i;const n=zt.A.getUrl(e),r=new Date(null!==(i=n.searchParams.get("se"))&&void 0!==i?i:"");return isNaN(r.getTime())&&r.setTime(Date.now()+36e5),r.getTime()<Date.now()+1e3?yield t():e})}encodedBlockId(e){const t=("000000000000000000000000000000000000000000000000"+e.toString()).slice(-48);return zt.A.fromUtf8ToB64(t)}blockListXml(e){let t='<?xml version="1.0" encoding="utf-8"?><BlockList>';return e.forEach(e=>{t+=`<Latest>${e}</Latest>`}),t+="</BlockList>",t}getMaxBlockSize(e){return nl.compare(e,"2019-12-12")>=0?4194304e3:nl.compare(e,"2016-05-31")>=0?104857600:4194304}}class nl{static compare(e,t){return"string"==typeof e&&(e=new nl(e)),"string"==typeof t&&(t=new nl(t)),e.year!==t.year?e.year-t.year:e.month!==t.month?e.month-t.month:e.day!==t.day?e.day-t.day:0}constructor(e){this.year=0,this.month=0,this.day=0;try{const t=e.split("-").map(e=>Number.parseInt(e,10));this.year=t[0],this.month=t[1],this.day=t[2]}catch(t){}}compare(e){return nl.compare(this,e)}}var rl=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class sl{upload(e,t,i){return rl(this,void 0,void 0,function*(){const n=new FormData;if(zt.A.isBrowser){const i=new Blob([t.buffer],{type:"application/octet-stream"});n.append("data",i,e)}else{if(!zt.A.isNode)throw new Error("Unsupported environment");n.append("data",Buffer.from(t.buffer),{filename:e,contentType:"application/octet-stream"})}yield i(n)})}}var ol=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class al{build(){var e;return null!==(e=this.migrationBuilderCache)&&void 0!==e?e:this.migrationBuilderCache=(0,b.yT)()}}var ll=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class cl{constructor(e,t,i,n){this.diskStorage=e,this.logService=t,this.migrationBuilderService=i,this.clientType=n}run(){return ll(this,void 0,void 0,function*(){const e=new b.Nb(yield(0,b.YO)(this.diskStorage,this.logService),this.diskStorage,this.logService,"general",this.clientType);if(e.currentVersion<0)return void(yield this.diskStorage.save("stateVersion",b.V_));const t=this.migrationBuilderService.build();yield t.migrate(e)})}waitForCompletion(){return ll(this,void 0,void 0,function*(){yield(0,b.GR)(this.diskStorage,this.logService)})}}var dl=i(62423),ul=i(62201),hl=i(56813),Al=i(369),pl=i(56401),gl=i(25208),vl=i(90586),ml=i(71464),fl=i(98881),yl=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function bl(e,t,i){return yl(this,void 0,void 0,function*(){return yield(0,u._)(e.getUserState$(i,t))})}function Cl(e,t,i,n){return yl(this,void 0,void 0,function*(){return(0,u._)((0,gl.O)(e.getUserState$(i,t).pipe((0,h.p)(e=>(0,vl.c)(e,n))),(0,vo.O)(1e3).pipe((0,p.T)(()=>null))))})}function Il(e,t,i,n){return yl(this,void 0,void 0,function*(){yield e.setUserState(i,n,t),yield Cl(e,t,i,n)})}function wl(e,t,i){return yl(this,void 0,void 0,function*(){yield e.setUserState(i,void 0,t),yield Cl(e,t,i,void 0)})}class Bl{constructor(e,t){this.stateProvider=e,this.userId=t}set_v2_upgrade_token(e){return yl(this,void 0,void 0,function*(){yield Il(this.stateProvider,this.userId,Ho,e)})}get_v2_upgrade_token(){return yl(this,void 0,void 0,function*(){return yield bl(this.stateProvider,this.userId,Ho)})}clear_v2_upgrade_token(){return yl(this,void 0,void 0,function*(){yield wl(this.stateProvider,this.userId,Ho)})}set_account_cryptographic_state(e){return yl(this,void 0,void 0,function*(){yield Il(this.stateProvider,this.userId,ds,e)})}get_account_cryptographic_state(){return yl(this,void 0,void 0,function*(){return yield bl(this.stateProvider,this.userId,ds)})}clear_account_cryptographic_state(){return yl(this,void 0,void 0,function*(){yield wl(this.stateProvider,this.userId,ds)})}set_masterpassword_unlock_data(e){return yl(this,void 0,void 0,function*(){yield Il(this.stateProvider,this.userId,Go,Os.k.fromSdk(e))})}get_masterpassword_unlock_data(){return yl(this,void 0,void 0,function*(){const e=yield bl(this.stateProvider,this.userId,Go);return null==e?null:e.toSdk()})}clear_masterpassword_unlock_data(){return yl(this,void 0,void 0,function*(){yield wl(this.stateProvider,this.userId,Go)})}set_user_key(e){return yl(this,void 0,void 0,function*(){yield Il(this.stateProvider,this.userId,ml.y,{"":Mn.e.fromSdk(e)})})}get_user_key(){return yl(this,void 0,void 0,function*(){const e=yield bl(this.stateProvider,this.userId,ml.y);return null!=e?e[""].toSdk():null})}clear_user_key(){return yl(this,void 0,void 0,function*(){yield wl(this.stateProvider,this.userId,ml.y)})}set_ephemeral_pin_envelope(e){return yl(this,void 0,void 0,function*(){yield Il(this.stateProvider,this.userId,fl.wK,{"":{pin_envelope:e}})})}get_ephemeral_pin_envelope(){return yl(this,void 0,void 0,function*(){var e,t;const i=yield bl(this.stateProvider,this.userId,fl.wK);return null!=i&&null!==(t=null===(e=i[""])||void 0===e?void 0:e.pin_envelope)&&void 0!==t?t:null})}clear_ephemeral_pin_envelope(){return yl(this,void 0,void 0,function*(){yield wl(this.stateProvider,this.userId,fl.wK)})}set_persistent_pin_envelope(e){return yl(this,void 0,void 0,function*(){yield Il(this.stateProvider,this.userId,fl.a$,e)})}get_persistent_pin_envelope(){return yl(this,void 0,void 0,function*(){return yield bl(this.stateProvider,this.userId,fl.a$)})}clear_persistent_pin_envelope(){return yl(this,void 0,void 0,function*(){yield wl(this.stateProvider,this.userId,fl.a$)})}set_encrypted_pin(e){return yl(this,void 0,void 0,function*(){yield Il(this.stateProvider,this.userId,fl.L5,e)})}get_encrypted_pin(){return yl(this,void 0,void 0,function*(){return yield bl(this.stateProvider,this.userId,fl.L5)})}clear_encrypted_pin(){return yl(this,void 0,void 0,function*(){yield wl(this.stateProvider,this.userId,fl.L5)})}}class El{constructor(e){this.markedForDisposal=!1,this.refCount=0,this.value=e}take(){if(this.markedForDisposal)throw new Error("Cannot take a reference to a value marked for disposal");return this.refCount++,new Sl(()=>this.release(),this.value)}markForDisposal(){this.markedForDisposal=!0,this.freeIfPossible()}get isMarkedForDisposal(){return this.markedForDisposal}release(){this.refCount--,this.freeIfPossible()}freeIfPossible(){0===this.refCount&&this.markedForDisposal&&this.value.free()}}class Sl{constructor(e,t){this.release=e,this.value=t}[Symbol.dispose](){this.release()}}class Ql{userKeyDefinition(){return fl.wK}toSdk(e){return e}fromSdk(e){return e}}const kl=C.Ok.record(C.Gg,"localUserDataKey",{deserializer:e=>e,clearOn:["logout"],cleanupDelayMs:0});class Rl{userKeyDefinition(){return kl}toSdk(e){return{wrapped_key:e}}fromSdk(e){return e.wrapped_key}}class Fl{userKeyDefinition(){return ml.y}toSdk(e){return{decrypted_user_key:e.toBase64()}}fromSdk(e){return Mn.e.fromString(e.decrypted_user_key)}}const Tl=C.Ok.record(C.bj,"sendUserEncrypted",{deserializer:e=>e,clearOn:["logout"]}),Dl=new C.Ok(C.$g,"sendUserDecrypted",{deserializer:e=>e,clearOn:["lock"]});var Pl=i(17989);const Ml=Object.freeze({Email:0,Password:1,None:2});var xl=i(15853);class Vl{constructor(e){null!=e&&(this.id=e.id,this.fileName=e.fileName,this.size=e.size,this.sizeName=e.sizeName)}}class Gl{constructor(e){null!=e&&(this.text=e.text,this.hidden=e.hidden)}}class Ul{constructor(e){if(null!=e)switch(this.id=e.id,this.accessId=e.accessId,this.type=e.type,this.authType=e.authType,this.name=e.name,this.notes=e.notes,this.key=e.key,this.maxAccessCount=e.maxAccessCount,this.accessCount=e.accessCount,this.revisionDate=e.revisionDate,this.expirationDate=e.expirationDate,this.deletionDate=e.deletionDate,this.password=e.password,this.emails=e.emails,this.disabled=e.disable,this.hideEmail=e.hideEmail,this.authType=e.authType,this.type){case xl.N.Text:this.text=new Gl(e.text);break;case xl.N.File:this.file=new Vl(e.file)}}}class Ol{constructor(e){this.id=null,this.size=null,this.sizeName=null,this.fileName=null,e&&(this.id=e.id,this.size=e.size,this.sizeName=e.sizeName)}get fileSize(){try{if(null!=this.size)return parseInt(this.size,null)}catch(e){}return 0}static fromJSON(e){return null==e?null:Object.assign(new Ol,e)}}class Nl{constructor(e){this.text=null,e&&(this.hidden=e.hidden)}get maskedText(){return null!=this.text?"••••••••":null}static fromJSON(e){return null==e?null:Object.assign(new Nl,e)}}class jl{constructor(e){this.id=null,this.accessId=null,this.name=null,this.notes=null,this.type=null,this.text=new Nl,this.file=new Ol,this.maxAccessCount=null,this.accessCount=0,this.revisionDate=null,this.deletionDate=null,this.expirationDate=null,this.password=null,this.emails=[],this.disabled=!1,this.hideEmail=!1,this.authType=null,e&&(this.id=e.id,this.accessId=e.accessId,this.type=e.type,this.authType=e.authType,this.maxAccessCount=e.maxAccessCount,this.accessCount=e.accessCount,this.revisionDate=e.revisionDate,this.deletionDate=e.deletionDate,this.expirationDate=e.expirationDate,this.disabled=e.disabled,this.password=e.password,this.hideEmail=e.hideEmail,this.authType=e.authType)}get urlB64Key(){return zt.A.fromArrayToUrlB64(this.key)}get maxAccessCountReached(){return null!=this.maxAccessCount&&this.accessCount>=this.maxAccessCount}get expired(){return null!=this.expirationDate&&this.expirationDate<=new Date}get pendingDelete(){return this.deletionDate<=new Date}toJSON(){return zt.A.merge(Object.assign({},this),{key:zt.A.fromBufferToB64(this.key)})}static fromJSON(e){return null==e?null:Object.assign(new jl,e,{key:zt.A.fromB64ToArray(e.key),cryptoKey:Mn.e.fromJSON(e.cryptoKey),text:Nl.fromJSON(e.text),file:Ol.fromJSON(e.file),revisionDate:null==e.revisionDate?null:new Date(e.revisionDate),deletionDate:null==e.deletionDate?null:new Date(e.deletionDate),expirationDate:null==e.expirationDate?null:new Date(e.expirationDate)})}}var Yl=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Xl extends Pl.A{constructor(e){super(),null!=e&&(this.size=e.size,this.buildDomainModel(this,e,{id:null,sizeName:null,fileName:null},["id","sizeName"]))}decrypt(e){return Yl(this,void 0,void 0,function*(){return yield this.decryptObj(this,new Ol(this),["fileName"],e)})}static fromJSON(e){return null==e?null:Object.assign(new Xl,e,{fileName:fn.k.fromJSON(e.fileName)})}toSdk(){var e,t,i,n;return{id:null!==(e=this.id)&&void 0!==e?e:void 0,fileName:null===(t=this.fileName)||void 0===t?void 0:t.toSdk(),size:null!==(i=this.size)&&void 0!==i?i:void 0,sizeName:null!==(n=this.sizeName)&&void 0!==n?n:void 0}}static fromSdk(e){var t,i,n;return null==e?null:Object.assign(new Xl,{id:null!==(t=e.id)&&void 0!==t?t:null,fileName:fn.k.fromJSON(e.fileName),size:null!==(i=e.size)&&void 0!==i?i:null,sizeName:null!==(n=e.sizeName)&&void 0!==n?n:null})}toSendData(){var e,t,i,n,r;return Object.assign(new Vl,{id:null!==(e=this.id)&&void 0!==e?e:null,fileName:null!==(i=null===(t=this.fileName)||void 0===t?void 0:t.toJSON())&&void 0!==i?i:null,size:null!==(n=this.size)&&void 0!==n?n:null,sizeName:null!==(r=this.sizeName)&&void 0!==r?r:null})}}class zl extends Pl.A{constructor(e){super(),null!=e&&(this.hidden=e.hidden,this.buildDomainModel(this,e,{text:null},[]))}decrypt(e){return this.decryptObj(this,new Nl(this),["text"],e)}static fromJSON(e){return null==e?null:Object.assign(new zl,e,{text:fn.k.fromJSON(e.text)})}toSdk(){var e;return{text:null===(e=this.text)||void 0===e?void 0:e.toSdk(),hidden:this.hidden}}static fromSdk(e){return null==e?null:Object.assign(new zl,{text:fn.k.fromJSON(e.text),hidden:e.hidden})}toSendData(){var e,t;return Object.assign(new Gl,{text:null!==(t=null===(e=this.text)||void 0===e?void 0:e.toJSON())&&void 0!==t?t:null,hidden:this.hidden})}}var Ll=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Wl={[xl.N.Text]:ps.SendType.Text,[xl.N.File]:ps.SendType.File},Kl={[ps.SendType.Text]:xl.N.Text,[ps.SendType.File]:xl.N.File},Zl={[Ml.Email]:ps.AuthType.Email,[Ml.Password]:ps.AuthType.Password,[Ml.None]:ps.AuthType.None},Hl={[ps.AuthType.Email]:Ml.Email,[ps.AuthType.Password]:Ml.Password,[ps.AuthType.None]:Ml.None};class Jl extends Pl.A{constructor(e){if(super(),null!=e)switch(this.buildDomainModel(this,e,{id:null,accessId:null,name:null,notes:null,key:null},["id","accessId"]),this.type=e.type,this.authType=e.authType,this.maxAccessCount=e.maxAccessCount,this.accessCount=e.accessCount,this.password=e.password,this.disabled=e.disabled,this.revisionDate=null!=e.revisionDate?new Date(e.revisionDate):null,this.deletionDate=null!=e.deletionDate?new Date(e.deletionDate):null,this.expirationDate=null!=e.expirationDate?new Date(e.expirationDate):null,this.hideEmail=e.hideEmail,this.authType=e.authType,this.emails=e.emails,this.type){case xl.N.Text:this.text=new zl(e.text);break;case xl.N.File:this.file=new Xl(e.file)}}decrypt(e){return Ll(this,void 0,void 0,function*(){if(!e)throw new Error("User ID must not be null or undefined");const t=new jl(this),i=zt.A.getContainerService().getKeyService(),n=zt.A.getContainerService().getEncryptService(),r=yield(0,u._)(i.userKey$(e));switch(t.key=yield n.decryptBytes(this.key,r),t.cryptoKey=yield i.makeSendKey(t.key),t.name=null!=this.name?yield n.decryptString(this.name,t.cryptoKey):null,t.notes=null!=this.notes?yield n.decryptString(this.notes,t.cryptoKey):null,null!=this.emails?t.emails=this.emails?this.emails.split(",").map(e=>e.trim()):[]:t.emails=[],this.type){case xl.N.File:t.file=yield this.file.decrypt(t.cryptoKey);break;case xl.N.Text:t.text=yield this.text.decrypt(t.cryptoKey)}return t})}static fromJSON(e){if(null==e)return null;const t=null==e.revisionDate?null:new Date(e.revisionDate),i=null==e.expirationDate?null:new Date(e.expirationDate),n=null==e.deletionDate?null:new Date(e.deletionDate);return Object.assign(new Jl,e,{key:fn.k.fromJSON(e.key),name:fn.k.fromJSON(e.name),notes:fn.k.fromJSON(e.notes),emails:e.emails,text:zl.fromJSON(e.text),file:Xl.fromJSON(e.file),revisionDate:t,expirationDate:i,deletionDate:n})}toSdkSend(){var e,t,i,n,r,s,o,a,l,c,d;return{id:this.id?(0,na.WD)(this.id):void 0,accessId:null!==(e=this.accessId)&&void 0!==e?e:void 0,name:null===(t=this.name)||void 0===t?void 0:t.toSdk(),notes:null===(i=this.notes)||void 0===i?void 0:i.toSdk(),key:null===(n=this.key)||void 0===n?void 0:n.toSdk(),password:null!==(r=this.password)&&void 0!==r?r:void 0,type:Wl[this.type],file:this.file?this.file.toSdk():void 0,text:this.text?this.text.toSdk():void 0,maxAccessCount:null!==(s=this.maxAccessCount)&&void 0!==s?s:void 0,accessCount:this.accessCount,disabled:this.disabled,hideEmail:this.hideEmail,revisionDate:null===(o=this.revisionDate)||void 0===o?void 0:o.toISOString(),deletionDate:null===(a=this.deletionDate)||void 0===a?void 0:a.toISOString(),expirationDate:null!==(c=null===(l=this.expirationDate)||void 0===l?void 0:l.toISOString())&&void 0!==c?c:void 0,emails:null!==(d=this.emails)&&void 0!==d?d:void 0,authType:Zl[this.authType]}}static fromSdkSend(e){var t,i,n,r;if(null==e)return null;const s=new Jl;return s.id=e.id?(0,na.zw)(e.id):null,s.accessId=null!==(t=e.accessId)&&void 0!==t?t:null,s.name=fn.k.fromJSON(e.name),s.notes=fn.k.fromJSON(e.notes),s.key=fn.k.fromJSON(e.key),s.password=null!==(i=e.password)&&void 0!==i?i:null,s.type=Kl[e.type],s.maxAccessCount=null!==(n=e.maxAccessCount)&&void 0!==n?n:void 0,s.accessCount=e.accessCount,s.disabled=e.disabled,s.hideEmail=e.hideEmail,s.revisionDate=null!=e.revisionDate?new Date(e.revisionDate):null,s.deletionDate=null!=e.deletionDate?new Date(e.deletionDate):null,s.expirationDate=null!=e.expirationDate?new Date(e.expirationDate):null,s.emails=null!==(r=e.emails)&&void 0!==r?r:null,s.authType=Hl[e.authType],s.text=null!=e.text?zl.fromSdk(e.text):null,s.file=null!=e.file?Xl.fromSdk(e.file):null,s}toSendData(){var e,t,i,n,r,s,o,a,l,c,d,u,h,A;const p=new Ul;switch(p.id=this.id,p.accessId=this.accessId,p.type=this.type,p.name=null!==(t=null===(e=this.name)||void 0===e?void 0:e.toJSON())&&void 0!==t?t:null,p.notes=null!==(n=null===(i=this.notes)||void 0===i?void 0:i.toJSON())&&void 0!==n?n:null,p.key=null!==(s=null===(r=this.key)||void 0===r?void 0:r.toJSON())&&void 0!==s?s:null,p.maxAccessCount=this.maxAccessCount,p.accessCount=this.accessCount,p.revisionDate=null!==(a=null===(o=this.revisionDate)||void 0===o?void 0:o.toISOString())&&void 0!==a?a:null,p.expirationDate=null!==(c=null===(l=this.expirationDate)||void 0===l?void 0:l.toISOString())&&void 0!==c?c:null,p.deletionDate=null!==(u=null===(d=this.deletionDate)||void 0===d?void 0:d.toISOString())&&void 0!==u?u:null,p.password=this.password,p.emails=this.emails,p.disabled=this.disabled,p.hideEmail=this.hideEmail,p.authType=this.authType,this.type){case xl.N.Text:p.text=null===(h=this.text)||void 0===h?void 0:h.toSendData();break;case xl.N.File:p.file=null===(A=this.file)||void 0===A?void 0:A.toSendData()}return p}}class ql{userKeyDefinition(){return Tl}toSdk(e){return new Jl(e).toSdkSend()}fromSdk(e){return Jl.fromSdkSend(e).toSendData()}}var $l=i(50451);const _l=C.Ok.record(C.fn,"ciphers",{deserializer:e=>$l.A.fromJSON(e),clearOn:["logout"]}),ec=C.Ok.record(C.Xk,"decryptedCiphers",{deserializer:e=>Jr.f.fromJSON(e),clearOn:["logout","lock"]}),tc=C.Ok.array(C.Xk,"failedDecryptedCiphers",{deserializer:e=>Jr.f.fromJSON(e),clearOn:["logout","lock"]}),ic=new C.Ok(C.HR,"localData",{deserializer:e=>e,clearOn:["logout"]}),nc=new C.Ok(C.Xk,"addEditCipherInfo",{deserializer:e=>{if(null==e)return null;return{cipher:null!=(null==e?void 0:e.cipher.toJSON)?e.cipher:Jr.f.fromJSON(null==e?void 0:e.cipher),collectionIds:e.collectionIds}},clearOn:["logout","lock"]});var rc=i(7025);class sc{userKeyDefinition(){return _l}toSdk(e){return new rc.o(e).toSdkCipher()}fromSdk(e){return rc.o.fromSdkCipher(e).toCipherData()}}var oc=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function ac(e,t,i){return oc(this,void 0,void 0,function*(){t.register_client_managed_repositories({cipher:new lc(e,i,new sc,!0),folder:null,user_key_state:new lc(e,i,new Fl),local_user_data_key_state:new lc(e,i,new Rl),ephemeral_pin_envelope_state:new lc(e,i,new Ql),organization_shared_key:null,send:new lc(e,i,new ql,!0)})})}class lc{constructor(e,t,i,n=!1){this.userId=e,this.stateProvider=t,this.mapper=i,this.optimisticWrite=n}get(e){return oc(this,void 0,void 0,function*(){const t=(yield this.getRecord())[e];return t?this.mapper.toSdk(t):null})}list(){return oc(this,void 0,void 0,function*(){const e=yield this.getRecord();return Object.values(e).map(e=>this.mapper.toSdk(e))})}set(e,t){return oc(this,void 0,void 0,function*(){const i=this.mapper.fromSdk(t);yield this.getUserState().update(t=>Object.assign(Object.assign({},null!=t?t:{}),{[e]:i}));const n=JSON.stringify(i);yield this.waitUntilChanged(t=>JSON.stringify(t[e])===n)})}setBulk(e){return oc(this,void 0,void 0,function*(){const t=Object.fromEntries(e.map(([e,t])=>[e,this.mapper.fromSdk(t)]));yield this.getUserState().update(e=>Object.assign(Object.assign({},null!=e?e:{}),t));const i=Object.entries(t).map(([e,t])=>[e,JSON.stringify(t)]);yield this.waitUntilChanged(e=>i.every(([t,i])=>JSON.stringify(e[t])===i))})}remove(e){return oc(this,void 0,void 0,function*(){yield this.getUserState().update(t=>t&&e in t?Object.fromEntries(Object.entries(t).filter(([t])=>t!==e)):t),yield this.waitUntilChanged(t=>!(e in t))})}removeBulk(e){return oc(this,void 0,void 0,function*(){const t=new Set(e);yield this.getUserState().update(i=>i&&e.some(e=>e in i)?Object.fromEntries(Object.entries(i).filter(([e])=>!t.has(e))):i),yield this.waitUntilChanged(t=>e.every(e=>!(e in t)))})}removeAll(){return oc(this,void 0,void 0,function*(){yield this.getUserState().update(()=>({})),yield this.waitUntilChanged(e=>0===Object.keys(e).length)})}getUserState(){return this.stateProvider.getUser(this.userId,this.mapper.userKeyDefinition())}getRecord(){return oc(this,void 0,void 0,function*(){return yield(0,u._)(this.getUserState().state$.pipe((0,p.T)(e=>null!=e?e:{})))})}waitUntilChanged(e){return oc(this,void 0,void 0,function*(){this.optimisticWrite||(yield(0,u._)((0,gl.O)(this.getUserState().state$.pipe((0,p.T)(e=>null!=e?e:{}),(0,h.p)(e)),(0,vo.O)(1e3))))})}}var cc=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const dc=Symbol("UnsetClient");class uc{constructor(e,t){this.apiService=e,this.userId=t}get_access_token(){return cc(this,void 0,void 0,function*(){if(null!=this.userId)return yield this.apiService.getActiveBearerToken(this.userId)})}}var hc=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Ac=Symbol("UnsetClient");class pc{constructor(e,t){this.apiService=e,this.userId=t}get_access_token(){return hc(this,void 0,void 0,function*(){if(null!=this.userId)return yield this.apiService.getActiveBearerToken(this.userId)})}}var gc=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class vc{constructor(e){this.keyService=e}setUserKeyInMemoryIfAutoUserKeySet(e){return gc(this,void 0,void 0,function*(){if(null==e)return!1;const t=yield this.keyService.getUserKeyFromStorage(Pn.hq.Auto,e);return null!=t&&(yield this.keyService.setUserKey(t,e),!0)})}}var mc=i(54596),fc=i(14848);class yc{constructor(e){this.id=e.id,this.name=e.name,this.status=e.status,this.type=e.type,this.enabled=e.enabled,this.userId=e.userId,this.useEvents=e.useEvents,this.providerStatus=e.providerStatus,this.providerType=e.providerType}}class bc{constructor(e){var t,i,n;this.name=null!==(t=e.name)&&void 0!==t?t:"",this.id=null!==(i=e.id)&&void 0!==i?i:"",this.revisionDate=null!==(n=e.revisionDate)&&void 0!==n?n:(new Date).toISOString()}static fromJSON(e){return null==e?null:new bc({id:e.id,name:e.name,revisionDate:e.revisionDate})}}var Cc=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Ic=new C.Ok(C.W$,"lastSync",{deserializer:e=>null!=e?new Date(e):null,clearOn:["logout"]});class wc{constructor(e,t,i,n,r,s,o,a,l,c,d,u,h){this.tokenService=e,this.folderService=t,this.folderApiService=i,this.messageSender=n,this.logService=r,this.cipherService=s,this.collectionService=o,this.apiService=a,this.accountService=l,this.authService=c,this.sendService=d,this.sendApiService=u,this.stateProvider=h,this.syncInProgress=!1}getLastSync(){return Cc(this,void 0,void 0,function*(){const e=yield(0,u._)(this.accountService.activeAccount$.pipe((0,p.T)(e=>null==e?void 0:e.id)));return null==e?null:yield(0,u._)(this.lastSync$(e))})}lastSync$(e){return this.stateProvider.getUser(e,Ic).state$}activeUserLastSync$(){return this.accountService.activeAccount$.pipe((0,jt.n)(e=>null==e?(0,ln.of)(null):this.lastSync$(e.id)))}setLastSync(e,t){return Cc(this,void 0,void 0,function*(){yield this.stateProvider.getUser(t,Ic).update(()=>e)})}syncUpsertFolder(e,t,i){return Cc(this,void 0,void 0,function*(){this.syncStarted();if((yield(0,u._)(this.authService.authStatusFor$(i)))>=m.J.Locked)try{const n=yield this.folderService.get(e.id,i);if(!t&&null==n||t&&null!=n&&n.revisionDate<e.revisionDate){const t=yield this.folderApiService.get(e.id);if(null!=t)return yield this.folderService.upsert(new bc(t),i),this.messageSender.send("syncedUpsertedFolder",{folderId:e.id}),this.syncCompleted(!0,i)}}catch(n){this.logService.error(n)}return this.syncCompleted(!1,i)})}syncDeleteFolder(e,t){return Cc(this,void 0,void 0,function*(){this.syncStarted();return(yield(0,u._)(this.authService.authStatusFor$(t)))>=m.J.Locked?(yield this.folderService.delete(e.id,t),this.messageSender.send("syncedDeletedFolder",{folderId:e.id}),this.syncCompleted(!0,t),!0):this.syncCompleted(!1,t)})}syncUpsertCipher(e,t,i){return Cc(this,void 0,void 0,function*(){this.syncStarted();if((yield(0,u._)(this.authService.authStatusFor$(i)))>=m.J.Locked)try{let n=!0;const r=yield this.cipherService.get(e.id,i);null!=r&&r.revisionDate>=e.revisionDate&&(n=!1);let s=!1;if(n&&(t?(n=null!=r,s=!0):null==e.collectionIds||null==e.organizationId?n=null==r:(n=!1,s=!0)),!n&&s&&null!=e.organizationId&&null!=e.collectionIds&&e.collectionIds.length>0){const t=yield(0,u._)(this.collectionService.encryptedCollections$(i).pipe((0,p.T)(e=>null!=e?e:[])));if(null!=t)for(let i=0;i<t.length;i++)if(e.collectionIds.indexOf(t[i].id)>-1){n=!0;break}}if(n){const t=yield this.apiService.getFullCipherDetails(e.id);if(null!=t)return yield this.cipherService.upsert(new $l.A(t)),this.messageSender.send("syncedUpsertedCipher",{cipherId:e.id}),this.syncCompleted(!0,i)}}catch(n){if(null!=n&&404===n.statusCode&&t)return yield this.cipherService.delete(e.id,i),this.messageSender.send("syncedDeletedCipher",{cipherId:e.id}),this.syncCompleted(!0,i)}return this.syncCompleted(!1,i)})}syncDeleteCipher(e,t){return Cc(this,void 0,void 0,function*(){this.syncStarted();return(yield(0,u._)(this.authService.authStatusFor$(t)))>=m.J.Locked?(yield this.cipherService.delete(e.id,t),this.messageSender.send("syncedDeletedCipher",{cipherId:e.id}),this.syncCompleted(!0,t)):this.syncCompleted(!1,t)})}syncUpsertSend(e,t){return Cc(this,void 0,void 0,function*(){this.syncStarted();const[i,n]=yield(0,u._)(this.accountService.activeAccount$.pipe((0,jt.n)(e=>(null==e&&(0,ln.of)([null,m.J.LoggedOut]),this.authService.authStatusFor$(e.id).pipe((0,p.T)(t=>[e.id,t]))))));if(i===e.userId&&n!==m.J.LoggedOut)try{const n=yield(0,u._)(this.sendService.get$(e.id));if(!t&&null==n||t&&null!=n&&n.revisionDate<e.revisionDate){const t=yield this.sendApiService.getSend(e.id);if(null!=t)return yield this.sendService.upsert(new Ul(t)),this.messageSender.send("syncedUpsertedSend",{sendId:e.id}),this.syncCompleted(!0,i)}}catch(r){this.logService.error(r)}return this.syncCompleted(!1,void 0)})}syncDeleteSend(e){return Cc(this,void 0,void 0,function*(){this.syncStarted();const t=yield(0,u._)(this.accountService.activeAccount$.pipe((0,p.T)(e=>null==e?void 0:e.id)));return null!=t&&(yield(0,u._)(this.tokenService.hasAccessToken$(t)))?(yield this.sendService.delete(e.id),this.messageSender.send("syncedDeletedSend",{sendId:e.id}),this.syncCompleted(!0,void 0),!0):this.syncCompleted(!1,void 0)})}syncStarted(){this.syncInProgress=!0,this.messageSender.send("syncStarted")}syncCompleted(e,t){return this.syncInProgress=!1,this.messageSender.send("syncCompleted",{successfully:e,userId:t}),e}}var Bc=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};Object.freeze({FirstOptionalButton:0,SecondOptionalButton:1,NotificationButton:2});var Ec=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var Sc=i(83234);class Qc{constructor(e){this.ids=null==e?[]:e}}class kc extends st.r{constructor(e,t){super(e),this.id=this.getResponseProperty("Id"),this.type=this.getResponseProperty("Type"),this.organizationId=this.getResponseProperty("OrganizationId"),this.enabled=this.getResponseProperty("Enabled");const i=this.getResponseProperty("Config");this.config=null==i?null:new t(i)}}class Rc extends st.r{constructor(e){super(e);const t=this.getResponseProperty("LastSyncDate");t&&(this.lastSyncDate=new Date(t))}}class Fc extends st.r{constructor(e){super(e),this.isTokenValid=this.getResponseProperty("IsTokenValid"),this.isFreeFamilyPolicyEnabled=this.getResponseProperty("IsFreeFamilyPolicyEnabled")}}class Tc extends _.IZ{}class Dc extends st.r{constructor(e){super(e),this.id=this.getResponseProperty("Id"),this.error=this.getResponseProperty("Error")}}var Pc=i(95919);class Mc extends st.r{constructor(e){super(e),this.id=this.getResponseProperty("Id"),this.userId=this.getResponseProperty("UserId"),this.type=this.getResponseProperty("Type"),this.status=this.getResponseProperty("Status"),this.permissions=new Pc.n(this.getResponseProperty("Permissions"))}}class xc extends Mc{constructor(e){super(e),this.name=this.getResponseProperty("Name"),this.email=this.getResponseProperty("Email")}}var Vc=i(73409),Gc=i(9997),Uc=i(68881),Oc=i(65485),Nc=i(1086),jc=i(78107),Yc=i(27790),Xc=i(62780),zc=i(82489);class Lc extends st.r{constructor(e){super(e),this.key=this.getResponseProperty("Key")}}class Wc extends st.r{constructor(e){super(e);const t=this.getResponseProperty("access_token");if(null==t||"string"!=typeof t)throw new Error("Refresh token response does not contain a valid access token");const i=this.getResponseProperty("token_type");if(null==i||"string"!=typeof i)throw new Error("Refresh token response does not contain a valid token type");this.accessToken=t,this.tokenType=i;const n=this.getResponseProperty("expires_in");null!=n&&"number"==typeof n&&(this.expiresIn=n);const r=this.getResponseProperty("refresh_token");null!=r&&"string"==typeof r&&(this.refreshToken=r)}}class Kc extends st.r{constructor(e){super(e),this.token=this.getResponseProperty("Token")}}var Zc=i(53674),Hc=i(88271),Jc=i(65791);class qc extends st.r{constructor(e){super(e),this.userId=this.getResponseProperty("UserId"),this.publicKey=this.getResponseProperty("PublicKey")}}var $c=i(42700);class _c extends st.r{constructor(e){super(e),this.url=null,this.attachmentId=this.getResponseProperty("AttachmentId"),this.fileUploadType=this.getResponseProperty("FileUploadType");const t=this.getResponseProperty("CipherResponse"),i=this.getResponseProperty("CipherMiniResponse");this.cipherResponse=null==t?null:new $c.N(t),this.cipherMiniResponse=null==i?null:new $c.N(i),this.url=this.getResponseProperty("Url")}}var ed=i(74865);class td extends st.r{constructor(e){super(e),this.cipher=new $c.N(this.getResponseProperty("Cipher"))}}class id extends st.r{constructor(e){super(e),this.unavailable=this.getResponseProperty("Unavailable"),this.cipher=new $c.N(this.getResponseProperty("Cipher"))}}var nd=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class rd{constructor(e,t,i,n,r,s,o,a,l,c,d=null){this.tokenService=e,this.platformUtilsService=t,this.environmentService=i,this.appIdService=n,this.refreshAccessTokenErrorCallback=r,this.logService=s,this.logoutCallback=o,this.vaultTimeoutSettingsService=a,this.accountService=l,this.httpOperations=c,this.customUserAgent=d,this.refreshTokenPromise={},this.middlewares=[],this.device=t.getDevice(),this.deviceType=this.device.toString()}postIdentityToken(e){return nd(this,void 0,void 0,function*(){var t;const i=new Headers({"Content-Type":"application/x-www-form-urlencoded; charset=utf-8",Accept:"application/json","Device-Type":this.deviceType});null!=this.customUserAgent&&i.set("User-Agent",this.customUserAgent);const n=e instanceof Oc.i?e.toIdentityToken():e.toIdentityToken(this.platformUtilsService.getClientType()),r=yield(0,u._)(this.environmentService.environment$),s=yield this.fetch(this.httpOperations.createRequest(r.getIdentityUrl()+"/connect/token",{body:this.qsStringify(n),credentials:yield this.getCredentials(r),cache:"no-store",headers:i,method:"POST"}));let o=null;if(this.isJsonResponse(s)&&(o=yield s.json()),null!=o){if(200===s.status)return new Xc.L(o);if(400===s.status&&o.TwoFactorProviders2&&Object.keys(o.TwoFactorProviders2).length)return new zc.x(o);if(400===s.status&&(null===(t=null==o?void 0:o.ErrorModel)||void 0===t?void 0:t.Message)===rd.NEW_DEVICE_VERIFICATION_REQUIRED_MESSAGE)return new jc.H(o);if(400===s.status&&(null==o?void 0:o.SsoOrganizationIdentifier))return new Yc.u(o)}return Promise.reject(new Xt._(o,s.status,!0))})}refreshIdentityToken(){return nd(this,arguments,void 0,function*(e=null){const t=null!=e?e:e=yield this.getActiveUser();if(null==t)throw new Error("No user provided and no active user, cannot refresh the identity token.");try{yield this.refreshToken(t)}catch(i){throw this.logService.error("Error refreshing access token: ",i),i}})}getAuthRequest(e){return nd(this,void 0,void 0,function*(){const t=`/auth-requests/${e}`,i=yield this.send("GET",t,null,!0,!0);return new Nc.B(i)})}putAuthRequest(e,t){return nd(this,void 0,void 0,function*(){const i=`/auth-requests/${e}`,n=yield this.send("PUT",i,t,!0,!0);return new Nc.B(n)})}getAuthRequests(){return nd(this,void 0,void 0,function*(){const e=yield this.send("GET","/auth-requests/",null,!0,!0);return new yt.s(e,Nc.B)})}getLastAuthRequest(){return nd(this,void 0,void 0,function*(){const e=(yield this.getAuthRequests()).data.filter(e=>!e.isAnswered&&!e.isExpired);return e.sort((e,t)=>e.creationDate.localeCompare(t.creationDate))[e.length-1]})}getProfile(){return nd(this,void 0,void 0,function*(){const e=yield this.send("GET","/accounts/profile",null,!0,!0);return new mt.l(e)})}getUserSubscription(){return nd(this,void 0,void 0,function*(){const e=yield this.send("GET","/accounts/subscription",null,!0,!0);return new Zc.X8(e)})}putProfile(e){return nd(this,void 0,void 0,function*(){const t=yield this.send("PUT","/accounts/profile",e,!0,!0);return new mt.l(t)})}putAvatar(e){return nd(this,void 0,void 0,function*(){const t=yield this.send("PUT","/accounts/avatar",e,!0,!0);return new mt.l(t)})}postSetKeyConnectorKey(e){return this.send("POST","/accounts/set-key-connector-key",e,!0,!1)}postSecurityStamp(e){return this.send("POST","/accounts/security-stamp",e,!0,!1)}getAccountRevisionDate(){return nd(this,void 0,void 0,function*(){return yield this.send("GET","/accounts/revision-date",null,!0,!0)})}postPasswordHint(e){return this.send("POST","/accounts/password-hint",e,!1,!1)}postPremium(e){return nd(this,void 0,void 0,function*(){const t=yield this.send("POST","/accounts/premium",e,!0,!0);return new ft(t)})}postAccountLicense(e){return this.send("POST","/accounts/license",e,!0,!1)}postAccountKeys(e){return this.send("POST","/accounts/keys",e,!0,!1)}postAccountVerifyEmail(){return this.send("POST","/accounts/verify-email",null,!0,!1)}postAccountVerifyEmailToken(e){return this.send("POST","/accounts/verify-email-token",e,!1,!1)}postAccountRecoverDelete(e){return this.send("POST","/accounts/delete-recover",e,!1,!1)}postAccountRecoverDeleteToken(e){return this.send("POST","/accounts/delete-recover-token",e,!1,!1)}deleteSsoUser(e){return nd(this,void 0,void 0,function*(){return this.send("DELETE","/accounts/sso/"+e,null,!0,!1)})}getSsoUserIdentifier(){return nd(this,void 0,void 0,function*(){return this.send("GET","/accounts/sso/user-identifier",null,!0,!0)})}postUserApiKey(e,t){return nd(this,void 0,void 0,function*(){const e=yield this.send("POST","/accounts/api-key",t,!0,!0);return new ot(e)})}postUserRotateApiKey(e,t){return nd(this,void 0,void 0,function*(){const e=yield this.send("POST","/accounts/rotate-api-key",t,!0,!0);return new ot(e)})}postConvertToKeyConnector(){return this.send("POST","/accounts/convert-to-key-connector",null,!0,!1)}getUserBillingHistory(){return nd(this,void 0,void 0,function*(){const e=yield this.send("GET","/accounts/billing/history",null,!0,!0);return new gt(e)})}getCipher(e){return nd(this,void 0,void 0,function*(){const t=yield this.send("GET","/ciphers/"+e,null,!0,!0);return new $c.N(t)})}getFullCipherDetails(e){return nd(this,void 0,void 0,function*(){const t=yield this.send("GET","/ciphers/"+e+"/details",null,!0,!0);return new $c.N(t)})}getCipherAdmin(e){return nd(this,void 0,void 0,function*(){const t=yield this.send("GET","/ciphers/"+e+"/admin",null,!0,!0);return new $c.N(t)})}getCiphersOrganization(e,t){return nd(this,void 0,void 0,function*(){let i="/ciphers/organization-details?organizationId="+e;t&&(i+=`&includeMemberItems=${t}`);const n=yield this.send("GET",i,null,!0,!0);return new yt.s(n,$c.N)})}postCipher(e){return nd(this,void 0,void 0,function*(){const t=yield this.send("POST","/ciphers",e,!0,!0);return new $c.N(t)})}postCipherCreate(e){return nd(this,void 0,void 0,function*(){const t=yield this.send("POST","/ciphers/create",e,!0,!0);return new $c.N(t)})}postCipherAdmin(e){return nd(this,void 0,void 0,function*(){const t=yield this.send("POST","/ciphers/admin",e,!0,!0);return new $c.N(t)})}putCipher(e,t){return nd(this,void 0,void 0,function*(){const i=yield this.send("PUT","/ciphers/"+e,t,!0,!0);return new $c.N(i)})}putPartialCipher(e,t){return nd(this,void 0,void 0,function*(){const i=yield this.send("PUT","/ciphers/"+e+"/partial",t,!0,!0);return new $c.N(i)})}putCipherAdmin(e,t){return nd(this,void 0,void 0,function*(){const i=yield this.send("PUT","/ciphers/"+e+"/admin",t,!0,!0);return new $c.N(i)})}deleteCipher(e){return this.send("DELETE","/ciphers/"+e,null,!0,!1)}deleteCipherAdmin(e){return this.send("DELETE","/ciphers/"+e+"/admin",null,!0,!1)}deleteManyCiphers(e){return this.send("DELETE","/ciphers",e,!0,!1)}deleteManyCiphersAdmin(e){return this.send("DELETE","/ciphers/admin",e,!0,!1)}putMoveCiphers(e){return this.send("PUT","/ciphers/move",e,!0,!1)}putShareCipher(e,t){return nd(this,void 0,void 0,function*(){const i=yield this.send("PUT","/ciphers/"+e+"/share",t,!0,!0);return new $c.N(i)})}putShareCiphers(e){return nd(this,void 0,void 0,function*(){const t=yield this.send("PUT","/ciphers/share",e,!0,!0);return new yt.s(t,$c.N)})}putCipherCollections(e,t){return nd(this,void 0,void 0,function*(){const i=yield this.send("PUT","/ciphers/"+e+"/collections_v2",t,!0,!0);return new id(i)})}putCipherCollectionsAdmin(e,t){return this.send("PUT","/ciphers/"+e+"/collections-admin",t,!0,!0)}postPurgeCiphers(e,t=null){let i="/ciphers/purge";return null!=t&&(i+="?organizationId="+t),this.send("POST",i,e,!0,!1)}putDeleteCipher(e){return this.send("PUT","/ciphers/"+e+"/delete",null,!0,!1)}putDeleteCipherAdmin(e){return this.send("PUT","/ciphers/"+e+"/delete-admin",null,!0,!1)}putDeleteManyCiphers(e){return this.send("PUT","/ciphers/delete",e,!0,!1)}putDeleteManyCiphersAdmin(e){return this.send("PUT","/ciphers/delete-admin",e,!0,!1)}putRestoreCipher(e){return nd(this,void 0,void 0,function*(){const t=yield this.send("PUT","/ciphers/"+e+"/restore",null,!0,!0);return new $c.N(t)})}putRestoreCipherAdmin(e){return nd(this,void 0,void 0,function*(){const t=yield this.send("PUT","/ciphers/"+e+"/restore-admin",null,!0,!0);return new $c.N(t)})}putRestoreManyCiphers(e){return nd(this,void 0,void 0,function*(){const t=yield this.send("PUT","/ciphers/restore",e,!0,!0);return new yt.s(t,$c.N)})}putRestoreManyCiphersAdmin(e){return nd(this,void 0,void 0,function*(){const t=yield this.send("PUT","/ciphers/restore-admin",e,!0,!0);return new yt.s(t,$c.N)})}getAttachmentData(e,t,i){return nd(this,void 0,void 0,function*(){const n=(null!=i?"/emergency-access/"+i+"/":"/ciphers/")+e+"/attachment/"+t,r=yield this.send("GET",n,null,!0,!0);return new ed.l(r)})}getAttachmentDataAdmin(e,t){return nd(this,void 0,void 0,function*(){const i="/ciphers/"+e+"/attachment/"+t+"/admin",n=yield this.send("GET",i,null,!0,!0);return new ed.l(n)})}postCipherAttachment(e,t){return nd(this,void 0,void 0,function*(){const i=yield this.send("POST","/ciphers/"+e+"/attachment/v2",t,!0,!0);return new _c(i)})}deleteCipherAttachment(e,t){return nd(this,void 0,void 0,function*(){const i=yield this.send("DELETE","/ciphers/"+e+"/attachment/"+t,null,!0,!0);return new td(i)})}deleteCipherAttachmentAdmin(e,t){return nd(this,void 0,void 0,function*(){const i=yield this.send("DELETE","/ciphers/"+e+"/attachment/"+t+"/admin",null,!0,!0);return new td(i)})}postShareCipherAttachment(e,t,i,n){return this.send("POST","/ciphers/"+e+"/attachment/"+t+"/share?organizationId="+n,i,!0,!1)}renewAttachmentUploadUrl(e,t){return nd(this,void 0,void 0,function*(){const i=yield this.send("GET","/ciphers/"+e+"/attachment/"+t+"/renew",null,!0,!0);return new _c(i)})}postAttachmentFile(e,t,i,n){return nd(this,void 0,void 0,function*(){if("undefined"!=typeof XMLHttpRequest&&(null==n?void 0:n.onProgress)){const r=yield this.getActiveUser(),s=(yield(0,u._)(this.environmentService.getEnvironment$(r))).getApiUrl(),o=yield this.buildRequestHeaders(),a=new Request(`${s}/ciphers/${e}/attachment/${t}`,{method:"POST",body:i,headers:o});return this.nativeXMLHttpRequest(a,n.onProgress)}return this.send("POST","/ciphers/"+e+"/attachment/"+t,i,!0,!1)})}getCollectionAccessDetails(e,t){return nd(this,void 0,void 0,function*(){const i=yield this.send("GET","/organizations/"+e+"/collections/"+t+"/details",null,!0,!0);return new fc.MH(i)})}getUserCollections(){return nd(this,void 0,void 0,function*(){const e=yield this.send("GET","/collections",null,!0,!0);return new yt.s(e,fc.uF)})}getCollections(e){return nd(this,void 0,void 0,function*(){const t=yield this.send("GET","/organizations/"+e+"/collections",null,!0,!0);return new yt.s(t,fc.uF)})}getManyCollectionsWithAccessDetails(e){return nd(this,void 0,void 0,function*(){const t=yield this.send("GET","/organizations/"+e+"/collections/details",null,!0,!0);return new yt.s(t,fc.MH)})}getCollectionUsers(e,t){return nd(this,void 0,void 0,function*(){return(yield this.send("GET","/organizations/"+e+"/collections/"+t+"/users",null,!0,!0)).map(e=>new Vc.U(e))})}postCollection(e,t){return nd(this,void 0,void 0,function*(){const i=yield this.send("POST","/organizations/"+e+"/collections",t,!0,!0);return new fc.MH(i)})}putCollection(e,t,i){return nd(this,void 0,void 0,function*(){const n=yield this.send("PUT","/organizations/"+e+"/collections/"+t,i,!0,!0);return new fc.MH(n)})}deleteCollection(e,t){return this.send("DELETE","/organizations/"+e+"/collections/"+t,null,!0,!1)}deleteManyCollections(e,t){return this.send("DELETE","/organizations/"+e+"/collections",new Qc(t),!0,!1)}getGroupUsers(e,t){return nd(this,void 0,void 0,function*(){return yield this.send("GET","/organizations/"+e+"/groups/"+t+"/users",null,!0,!0)})}deleteGroupUser(e,t,i){return this.send("DELETE","/organizations/"+e+"/groups/"+t+"/user/"+i,null,!0,!1)}getPlans(){return nd(this,void 0,void 0,function*(){const e=yield this.send("GET","/plans",null,!1,!0);return new yt.s(e,Sr.tQ)})}getSettingsDomains(){return nd(this,void 0,void 0,function*(){const e=yield this.send("GET","/settings/domains",null,!0,!0);return new Jc.X(e)})}putSettingsDomains(e){return nd(this,void 0,void 0,function*(){const t=yield this.send("PUT","/settings/domains",e,!0,!0);return new Jc.X(t)})}getSync(){return nd(this,void 0,void 0,function*(){const e=this.platformUtilsService.supportsAutofill()?"/sync":"/sync?excludeDomains=true",t=yield this.send("GET",e,null,!0,!0);return new mc.f(t)})}getCloudCommunicationsEnabled(){return nd(this,void 0,void 0,function*(){return yield this.send("GET","/organizations/connections/enabled",null,!0,!0)})}getOrganizationConnection(e,t,i){return nd(this,void 0,void 0,function*(){const n=yield this.send("GET",`/organizations/connections/${e}/${t}`,null,!0,!0);return new kc(n,i)})}createOrganizationConnection(e,t){return nd(this,void 0,void 0,function*(){const i=yield this.send("POST","/organizations/connections/",e,!0,!0);return new kc(i,t)})}updateOrganizationConnection(e,t,i){return nd(this,void 0,void 0,function*(){const n=yield this.send("PUT","/organizations/connections/"+i,e,!0,!0);return new kc(n,t)})}deleteOrganizationConnection(e){return nd(this,void 0,void 0,function*(){return this.send("DELETE","/organizations/connections/"+e,null,!0,!1)})}getProviderUsers(e){return nd(this,void 0,void 0,function*(){const t=yield this.send("GET","/providers/"+e+"/users",null,!0,!0);return new yt.s(t,xc)})}getProviderUser(e,t){return nd(this,void 0,void 0,function*(){const i=yield this.send("GET","/providers/"+e+"/users/"+t,null,!0,!0);return new Mc(i)})}postProviderUserInvite(e,t){return this.send("POST","/providers/"+e+"/users/invite",t,!0,!1)}postProviderUserReinvite(e,t){return this.send("POST","/providers/"+e+"/users/"+t+"/reinvite",null,!0,!1)}postManyProviderUserReinvite(e,t){return nd(this,void 0,void 0,function*(){const i=yield this.send("POST","/providers/"+e+"/users/reinvite",t,!0,!0);return new yt.s(i,Dc)})}postProviderUserBulkConfirm(e,t){return nd(this,void 0,void 0,function*(){const i=yield this.send("POST","/providers/"+e+"/users/confirm",t,!0,!0);return new yt.s(i,Dc)})}deleteManyProviderUsers(e,t){return nd(this,void 0,void 0,function*(){const i=yield this.send("DELETE","/providers/"+e+"/users",t,!0,!0);return new yt.s(i,Dc)})}postProviderUserAccept(e,t,i){return this.send("POST","/providers/"+e+"/users/"+t+"/accept",i,!0,!1)}postProviderUserConfirm(e,t,i){return this.send("POST","/providers/"+e+"/users/"+t+"/confirm",i,!0,!1)}postProviderUsersPublicKey(e,t){return nd(this,void 0,void 0,function*(){const i=yield this.send("POST","/providers/"+e+"/users/public-keys",t,!0,!0);return new yt.s(i,Tc)})}putProviderUser(e,t,i){return this.send("PUT","/providers/"+e+"/users/"+t,i,!0,!1)}deleteProviderUser(e,t){return this.send("DELETE","/providers/"+e+"/users/"+t,null,!0,!1)}getProviderClients(e){return nd(this,void 0,void 0,function*(){const t=yield this.send("GET","/providers/"+e+"/organizations",null,!0,!0);return new yt.s(t,Jt)})}postProviderAddOrganization(e,t){return this.send("POST","/providers/"+e+"/organizations/add",t,!0,!1)}postProviderCreateOrganization(e,t){return nd(this,void 0,void 0,function*(){const i=yield this.send("POST","/providers/"+e+"/organizations",t,!0,!0);return new Ht(i)})}deleteProviderOrganization(e,t){return this.send("DELETE","/providers/"+e+"/organizations/"+t,null,!0,!1)}getEvents(e,t,i){return nd(this,void 0,void 0,function*(){const n=yield this.send("GET",(0,Hc.o)("/events",e,t,i),null,!0,!0);return new yt.s(n,y.mm)})}getEventsCipher(e,t,i,n){return nd(this,void 0,void 0,function*(){const r=yield this.send("GET",(0,Hc.o)("/ciphers/"+e+"/events",t,i,n),null,!0,!0);return new yt.s(r,y.mm)})}getEventsSecret(e,t,i,n,r){return nd(this,void 0,void 0,function*(){const s=yield this.send("GET",(0,Hc.o)("/organization/"+e+"/secrets/"+t+"/events",i,n,r),null,!0,!0);return new yt.s(s,y.mm)})}getEventsServiceAccount(e,t,i,n,r){return nd(this,void 0,void 0,function*(){const s=yield this.send("GET",(0,Hc.o)("/organization/"+e+"/service-account/"+t+"/events",i,n,r),null,!0,!0);return new yt.s(s,y.mm)})}getEventsProject(e,t,i,n,r){return nd(this,void 0,void 0,function*(){const s=yield this.send("GET",(0,Hc.o)("/organization/"+e+"/projects/"+t+"/events",i,n,r),null,!0,!0);return new yt.s(s,y.mm)})}getEventsOrganization(e,t,i,n){return nd(this,void 0,void 0,function*(){const r=yield this.send("GET",(0,Hc.o)("/organizations/"+e+"/events",t,i,n),null,!0,!0);return new yt.s(r,y.mm)})}getEventsOrganizationUser(e,t,i,n,r){return nd(this,void 0,void 0,function*(){const s=yield this.send("GET",(0,Hc.o)("/organizations/"+e+"/users/"+t+"/events",i,n,r),null,!0,!0);return new yt.s(s,y.mm)})}getEventsProvider(e,t,i,n){return nd(this,void 0,void 0,function*(){const r=yield this.send("GET",(0,Hc.o)("/providers/"+e+"/events",t,i,n),null,!0,!0);return new yt.s(r,y.mm)})}getEventsProviderUser(e,t,i,n,r){return nd(this,void 0,void 0,function*(){const s=yield this.send("GET",(0,Hc.o)("/providers/"+e+"/users/"+t+"/events",i,n,r),null,!0,!0);return new yt.s(s,y.mm)})}postEventsCollect(e,t){return nd(this,void 0,void 0,function*(){const i=yield this.tokenService.getAccessToken(t),n=new Headers({"Device-Type":this.deviceType,Authorization:"Bearer "+i,"Content-Type":"application/json; charset=utf-8"});null!=this.customUserAgent&&n.set("User-Agent",this.customUserAgent);const r=yield(0,u._)(null==t?this.environmentService.environment$:this.environmentService.getEnvironment$(t));if(200!==(yield this.fetch(this.httpOperations.createRequest(r.getEventsUrl()+"/collect",{cache:"no-store",credentials:yield this.getCredentials(r),method:"POST",body:JSON.stringify(e),headers:n}))).status)return Promise.reject("Event post failed.")})}getUserPublicKey(e){return nd(this,void 0,void 0,function*(){const t=yield this.send("GET","/users/"+e+"/public-key",null,!0,!0);return new qc(t)})}postBitPayInvoice(e){return nd(this,void 0,void 0,function*(){return yield this.send("POST","/bitpay-invoice",e,!0,!0)})}postSetupPayment(){return nd(this,void 0,void 0,function*(){return yield this.send("POST","/setup-payment",null,!0,!0)})}getMasterKeyFromKeyConnector(e){return nd(this,void 0,void 0,function*(){const t=yield this.getActiveUser();if(null==t)throw new Error("No active user, cannot get master key from key connector.");const i=yield this.getActiveBearerToken(t),n=yield this.fetch(this.httpOperations.createRequest(e+"/user-keys",{cache:"no-store",method:"GET",headers:new Headers({Accept:"application/json",Authorization:"Bearer "+i})}));if(n.status!==Yt.kG.Ok){const e=yield this.handleApiRequestError(n,!0);return Promise.reject(e)}return new Lc(yield n.json())})}postUserKeyToKeyConnector(e,t){return nd(this,void 0,void 0,function*(){const i=yield this.getActiveUser();if(null==i)throw new Error("No active user, cannot post key to key connector.");const n=yield this.getActiveBearerToken(i),r=yield this.fetch(this.httpOperations.createRequest(e+"/user-keys",{cache:"no-store",method:"POST",headers:new Headers({Accept:"application/json",Authorization:"Bearer "+n,"Content-Type":"application/json; charset=utf-8"}),body:JSON.stringify(t)}));if(r.status!==Yt.kG.Ok){const e=yield this.handleApiRequestError(r,!0);return Promise.reject(e)}})}getKeyConnectorAlive(e){return nd(this,void 0,void 0,function*(){const t=yield this.fetch(this.httpOperations.createRequest(e+"/alive",{cache:"no-store",method:"GET",headers:new Headers({Accept:"application/json","Content-Type":"application/json; charset=utf-8"})}));if(t.status!==Yt.kG.Ok){const e=yield this.handleApiRequestError(t,!0);return Promise.reject(e)}})}getActiveBearerToken(e){return nd(this,void 0,void 0,function*(){let t=yield this.tokenService.getAccessToken(e);return(yield this.tokenService.tokenNeedsRefresh(e))&&(t=yield this.refreshToken(e)),t})}addMiddleware(e){this.middlewares.push(e)}fetch(e){return nd(this,void 0,void 0,function*(){if(!e.url.startsWith("https://")&&!this.platformUtilsService.isDev())throw new Ji;"GET"===e.method&&(e.headers.set("Cache-Control","no-store"),e.headers.set("Pragma","no-cache")),yield this.applyPlatformHeaders(e.headers);const t=(i=this.middlewares,n=e=>this.nativeFetch(e),i.reduceRight((e,t)=>i=>t(i,e),n));var i,n;return t(e)})}nativeFetch(e){return fetch(e)}nativeXMLHttpRequest(e,t){return new Promise((i,n)=>{const r=new XMLHttpRequest;r.open(e.method,e.url),e.headers.forEach((e,t)=>r.setRequestHeader(t,e)),r.responseType="arraybuffer",r.upload.onprogress=e=>{e.lengthComputable&&t(Math.round(e.loaded/e.total*100))},r.onload=()=>i(new Response(r.response,{status:r.status})),r.onerror=()=>n(new Error("Network error during upload")),e.arrayBuffer().then(e=>r.send(e)).catch(n)})}applyPlatformHeaders(e){return nd(this,void 0,void 0,function*(){e.set("Bitwarden-Client-Name",this.platformUtilsService.getClientType()),e.set("Bitwarden-Client-Version",yield this.platformUtilsService.getApplicationVersionNumber());const t=yield this.platformUtilsService.packageType();null!=t&&e.set("Bitwarden-Package-Type",t)})}buildRequestHeaders(){return nd(this,void 0,void 0,function*(){const e=yield this.getActiveUser(),t=yield this.getActiveBearerToken(e),i=new Headers({"Device-Type":this.deviceType,Authorization:"Bearer "+t});return null!=this.customUserAgent&&i.set("User-Agent",this.customUserAgent),Co("prereleaseBuild")&&i.set("Is-Prerelease","1"),yield this.applyPlatformHeaders(i),i})}preValidateSso(e){return nd(this,void 0,void 0,function*(){if(null==e||""===e)throw new Error("Organization Identifier was not provided.");const t=new Headers({Accept:"application/json","Device-Type":this.deviceType});null!=this.customUserAgent&&t.set("User-Agent",this.customUserAgent);const i=yield(0,u._)(this.environmentService.environment$),n=`/sso/prevalidate?domainHint=${encodeURIComponent(e)}`,r=yield this.fetch(this.httpOperations.createRequest(i.getIdentityUrl()+n,{cache:"no-store",credentials:yield this.getCredentials(i),headers:t,method:"GET"}));if(200===r.status){const e=yield r.json();return new Kc(e)}{const e=yield this.handleApiRequestError(r,!1);return Promise.reject(e)}})}postCreateSponsorship(e,t){return nd(this,void 0,void 0,function*(){return yield this.send("POST","/organization/sponsorship/"+(this.platformUtilsService.isSelfHost()?"self-hosted/":"")+e+"/families-for-enterprise",t,!0,!1)})}getSponsorshipSyncStatus(e){return nd(this,void 0,void 0,function*(){const t=yield this.send("GET","/organization/sponsorship/"+e+"/sync-status",null,!0,!0);return new Rc(t)})}deleteRemoveSponsorship(e){return nd(this,void 0,void 0,function*(){return yield this.send("DELETE","/organization/sponsorship/sponsored/"+e,null,!0,!1)})}postPreValidateSponsorshipToken(e){return nd(this,void 0,void 0,function*(){const t=yield this.send("POST","/organization/sponsorship/validate-token?sponsorshipToken="+encodeURIComponent(e),null,!0,!0);return new Fc(t)})}postRedeemSponsorship(e,t){return nd(this,void 0,void 0,function*(){return yield this.send("POST","/organization/sponsorship/redeem?sponsorshipToken="+encodeURIComponent(e),t,!0,!1)})}refreshToken(e){return void 0===this.refreshTokenPromise[e]&&(this.refreshTokenPromise[e]=this.internalRefreshToken(e),this.refreshTokenPromise[e].finally(()=>{delete this.refreshTokenPromise[e]})),this.refreshTokenPromise[e]}internalRefreshToken(e){return nd(this,void 0,void 0,function*(){const t=yield this.tokenService.getRefreshToken(e);if(null!=t&&""!==t)return yield this.refreshAccessToken(e);const i=yield this.tokenService.getClientId(e),n=yield this.tokenService.getClientSecret(e);if(!zt.A.isNullOrWhitespace(i)&&!zt.A.isNullOrWhitespace(n))return yield this.refreshApiToken(e);throw this.refreshAccessTokenErrorCallback(),new Error("Cannot refresh access token, no refresh token or api keys are stored.")})}refreshAccessToken(e){return nd(this,void 0,void 0,function*(){const t=yield this.tokenService.getRefreshToken(e);if(null==t||""===t)throw new Error;const i=new Headers({"Content-Type":"application/x-www-form-urlencoded; charset=utf-8",Accept:"application/json","Device-Type":this.deviceType});null!=this.customUserAgent&&i.set("User-Agent",this.customUserAgent);const n=yield(0,u._)(this.environmentService.getEnvironment$(e)),r=yield this.tokenService.decodeAccessToken(e),s=yield this.fetch(this.httpOperations.createRequest(n.getIdentityUrl()+"/connect/token",{body:this.qsStringify({grant_type:"refresh_token",client_id:r.client_id,refresh_token:t}),cache:"no-store",credentials:yield this.getCredentials(n),headers:i,method:"POST"}));if(200===s.status){const e=yield s.json(),t=new Wc(e),i=(yield this.tokenService.decodeAccessToken(t.accessToken)).sub,n=yield(0,u._)(this.vaultTimeoutSettingsService.getVaultTimeoutActionByUserId$(i)),r=yield(0,u._)(this.vaultTimeoutSettingsService.getVaultTimeoutByUserId$(i));return(yield this.tokenService.setTokens(t.accessToken,n,r,t.refreshToken)).accessToken}{const e=yield this.handleTokenRefreshRequestError(s);return Promise.reject(e)}})}refreshApiToken(e){return nd(this,void 0,void 0,function*(){const t=yield this.tokenService.getClientId(e),i=yield this.tokenService.getClientSecret(e),n=yield this.appIdService.getAppId(),r=new Gc.C(n,this.platformUtilsService),s=new Oc.i(t,i,new Uc.i,r),o=yield this.postIdentityToken(s);if(!(o instanceof Xc.L))throw new Error("Invalid response received when refreshing api token");const a=yield this.tokenService.decodeAccessToken(o.accessToken);if(a.sub!==e)throw new Error(`Token was supposed to be refreshed for ${e} but the token we got back was for ${a.sub}`);const l=yield(0,u._)(this.vaultTimeoutSettingsService.getVaultTimeoutActionByUserId$(e)),c=yield(0,u._)(this.vaultTimeoutSettingsService.getVaultTimeoutByUserId$(e));return yield this.tokenService.setAccessToken(o.accessToken,l,c)})}send(e,t,i,n,r,s,o){return nd(this,void 0,void 0,function*(){var a;const l=yield this.getUserIdMakingRequest(n),c=yield(0,u._)(null==l?this.environmentService.environment$:this.environmentService.getEnvironment$(l));s=zt.A.isNullOrWhitespace(s)?c.getApiUrl():s;const d=yield this.buildSafeApiRequestUrl(s,t);let h=yield this.buildRequest(e,l,c,r,i,o),A=yield this.fetch(this.httpOperations.createRequest(d,h));r&&null!=l&&A.status===Yt.kG.Unauthorized&&(this.logService.warning("Unauthorized response received for request to "+t+". Attempting request again."),h=yield this.buildRequest(e,l,c,r,i,o),A=yield this.fetch(this.httpOperations.createRequest(d,h)));const p=A.headers.get("content-type"),g=null!=p&&-1!==p.indexOf("application/json"),v=null!=p&&-1!==p.indexOf("text/csv"),m=null!=p&&-1!==p.indexOf("application/octet-stream"),f=A.status===Yt.kG.Ok||A.status===Yt.kG.Created;if(r&&f&&g){return yield A.json()}if(r&&f&&v)return yield A.text();if(r&&f&&m){const e=(null!==(a=A.headers.get("Content-Disposition"))&&void 0!==a?a:"").match(/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/),t=e?e[1].replace(/['"]/g,""):"download";return{blob:yield A.blob(),fileName:t}}if(!f&&A.status!==Yt.kG.NoContent){const e=yield this.handleApiRequestError(A,null!=l);return Promise.reject(e)}})}buildSafeApiRequestUrl(e,t){const i=t.split("?"),n=e+i[0]+(i.length>1?`?${i[1]}`:"");if(zt.A.containsTraversalIndicators(n))throw new Error("The request URL contains unexpected patterns.");return e+zt.A.normalizePath(i[0])+(i.length>1?`?${i[1]}`:"")}getUserIdMakingRequest(e){return nd(this,void 0,void 0,function*(){if(null==e)throw new Error("A user id was given but it was null, cannot complete API request.");let t=null;return"boolean"==typeof e&&e?t=yield this.getActiveUser():"string"==typeof e&&(t=e),t})}buildRequest(e,t,i,n,r,s){return nd(this,void 0,void 0,function*(){const[o,a]=yield this.buildHeadersAndBody(t,n,r,s),l={cache:"no-store",credentials:yield this.getCredentials(i),method:e};return l.headers=o,l.body=a,l})}buildHeadersAndBody(e,t,i,n){return nd(this,void 0,void 0,function*(){let r=null;const s=new Headers({"Device-Type":this.deviceType});if(Co("prereleaseBuild")&&s.set("Is-Prerelease","1"),null!=this.customUserAgent&&s.set("User-Agent",this.customUserAgent),t&&s.set("Accept","application/json"),null!=n&&n(s),null!=e){const t=yield this.getActiveBearerToken(e);s.set("Authorization","Bearer "+t)}else{const e=yield this.appIdService.getAppId();s.set("Device-Identifier",e)}return null!=i&&("string"==typeof i?(r=i,s.set("Content-Type","application/x-www-form-urlencoded; charset=utf-8")):"object"==typeof i&&(i instanceof FormData?r=i:(s.set("Content-Type","application/json; charset=utf-8"),r=JSON.stringify(i)))),[s,r]})}handleApiRequestError(e,t){return nd(this,void 0,void 0,function*(){!t||e.status!==Yt.kG.Unauthorized&&e.status!==Yt.kG.Forbidden||(yield this.logoutCallback("invalidAccessToken"));const i=yield this.getJsonResponse(e);return new Xt._(i,e.status)})}handleTokenRefreshRequestError(e){return nd(this,void 0,void 0,function*(){const t=yield this.getJsonResponse(e);return e.status===Yt.kG.BadRequest&&"invalid_grant"===(null==t?void 0:t.error)&&(yield this.logoutCallback("sessionExpired")),new Xt._(t,e.status,!0)})}getJsonResponse(e){return nd(this,void 0,void 0,function*(){let t=null;return this.isJsonResponse(e)?t=yield e.json():this.isTextPlainResponse(e)&&(t={Message:yield e.text()}),t})}qsStringify(e){return Object.keys(e).map(t=>encodeURIComponent(t)+"="+encodeURIComponent(e[t])).join("&")}getActiveUser(){return nd(this,void 0,void 0,function*(){return yield(0,u._)(this.accountService.activeAccount$.pipe((0,p.T)(e=>null==e?void 0:e.id)))})}getCredentials(e){return nd(this,void 0,void 0,function*(){if(this.platformUtilsService.getClientType()!==Yt.sK.Web||e.hasBaseUrl())return"include"})}isJsonResponse(e){const t=e.headers.get("content-type");return null!=t&&t.indexOf("application/json")>-1}isTextPlainResponse(e){const t=e.headers.get("content-type");return null!=t&&t.indexOf("text/plain")>-1}}rd.NEW_DEVICE_VERIFICATION_REQUIRED_MESSAGE="new device verification required";var sd=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var od=i(63457),ad=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var ld=i(41347),cd=i(62046);class dd{constructor(e,t){switch(this.type=e.type,this.fileLength=t,this.name=e.name?e.name.encryptedString:null,this.notes=e.notes?e.notes.encryptedString:null,this.maxAccessCount=e.maxAccessCount,this.expirationDate=null!=e.expirationDate?e.expirationDate.toISOString():null,this.deletionDate=null!=e.deletionDate?e.deletionDate.toISOString():null,this.key=null!=e.key?e.key.encryptedString:null,this.password=e.password,this.emails=e.emails,this.disabled=e.disabled,this.hideEmail=e.hideEmail,this.authType=e.authType,this.type){case xl.N.Text:this.text=new cd.Y,this.text.text=null!=e.text.text?e.text.text.encryptedString:null,this.text.hidden=e.text.hidden;break;case xl.N.File:this.file=new ld.h,this.file.fileName=null!=e.file.fileName?e.file.fileName.encryptedString:null}}}class ud extends st.r{constructor(e){super(e),this.id=this.getResponseProperty("Id"),this.type=this.getResponseProperty("Type"),this.name=this.getResponseProperty("Name");const t=this.getResponseProperty("Text");null!=t&&(this.text=new cd.Y(t));const i=this.getResponseProperty("File");null!=i&&(this.file=new ld.h(i)),this.expirationDate=this.getResponseProperty("ExpirationDate"),this.creatorIdentifier=this.getResponseProperty("CreatorIdentifier")}}class hd extends st.r{constructor(e){super(e),this.id=null,this.url=null,this.id=this.getResponseProperty("Id"),this.url=this.getResponseProperty("Url")}}var Ad=i(54306);class pd extends st.r{constructor(e){super(e),this.url=null,this.fileUploadType=this.getResponseProperty("FileUploadType");const t=this.getResponseProperty("SendResponse");this.sendResponse=null==t?null:new Ad.o(t),this.url=this.getResponseProperty("Url")}}var gd=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class vd{constructor(e,t,i){this.apiService=e,this.fileUploadService=t,this.sendService=i}getSend(e){return gd(this,void 0,void 0,function*(){const t=yield this.apiService.send("GET","/sends/"+e,null,!0,!0);return new Ad.o(t)})}postSendAccess(e,t,i){return gd(this,void 0,void 0,function*(){const n=yield this.apiService.send("POST","/sends/access/"+e,t,!1,!0,i,t=>{t.set("Send-Id",e)});return new ud(n)})}postSendAccessV2(e,t){return gd(this,void 0,void 0,function*(){const i=yield this.apiService.send("POST","/sends/access",null,!1,!0,t,t=>{t.set("Authorization","Bearer "+e.token)});return new ud(i)})}getSendFileDownloadData(e,t,i){return gd(this,void 0,void 0,function*(){const n=yield this.apiService.send("POST","/sends/"+e.id+"/access/file/"+e.file.id,t,!1,!0,i,t=>{t.set("Send-Id",e.id)});return new hd(n)})}getSendFileDownloadDataV2(e,t,i){return gd(this,void 0,void 0,function*(){const n=yield this.apiService.send("POST","/sends/access/file/"+e.file.id,null,!1,!0,i,e=>{e.set("Authorization","Bearer "+t.token)});return new hd(n)})}getSends(){return gd(this,void 0,void 0,function*(){const e=yield this.apiService.send("GET","/sends",null,!0,!0);return new yt.s(e,Ad.o)})}putSendRemovePassword(e){return gd(this,void 0,void 0,function*(){const t=yield this.apiService.send("PUT","/sends/"+e+"/remove-password",null,!0,!0);return new Ad.o(t)})}deleteSend(e){return this.apiService.send("DELETE","/sends/"+e,null,!0,!1)}save(e,t){return gd(this,void 0,void 0,function*(){const t=yield this.upload(e),i=new Ul(t);return yield this.sendService.upsert(i),new Jl(i)})}delete(e){return gd(this,void 0,void 0,function*(){yield this.deleteSend(e),yield this.sendService.delete(e)})}removePassword(e){return gd(this,void 0,void 0,function*(){const t=yield this.putSendRemovePassword(e),i=new Ul(t);yield this.sendService.upsert(i)})}postSend(e){return gd(this,void 0,void 0,function*(){const t=yield this.apiService.send("POST","/sends",e,!0,!0);return new Ad.o(t)})}postFileTypeSend(e){return gd(this,void 0,void 0,function*(){const t=yield this.apiService.send("POST","/sends/file/v2",e,!0,!0);return new pd(t)})}renewSendFileUploadUrl(e,t){return gd(this,void 0,void 0,function*(){const i=yield this.apiService.send("GET","/sends/"+e+"/file/"+t,null,!0,!0);return new pd(i)})}postSendFile(e,t,i){return this.apiService.send("POST","/sends/"+e+"/file/"+t,i,!0,!1)}putSend(e,t){return gd(this,void 0,void 0,function*(){const i=yield this.apiService.send("PUT","/sends/"+e,t,!0,!0);return new Ad.o(i)})}upload(e){return gd(this,void 0,void 0,function*(){var t;const i=new dd(e[0],null===(t=e[1])||void 0===t?void 0:t.buffer.byteLength);let n;if(null==e[0].id){if(e[0].type===xl.N.Text)n=yield this.postSend(i);else try{const t=yield this.postFileTypeSend(i);n=t.sendResponse,yield this.fileUploadService.upload(t,e[0].file.fileName,e[1],this.generateMethods(t,n))}catch(r){throw r instanceof Xt._?new Error(r.getSingleMessage()):r}e[0].id=n.id,e[0].accessId=n.accessId}else n=yield this.putSend(e[0].id,i);return n})}generateMethods(e,t){return{postDirect:this.generatePostDirectCallback(t),renewFileUploadUrl:this.generateRenewFileUploadUrlCallback(t.id,t.file.id),rollback:this.generateRollbackCallback(t.id)}}generatePostDirectCallback(e){return t=>this.postSendFile(e.id,e.file.id,t)}generateRenewFileUploadUrlCallback(e,t){return()=>gd(this,void 0,void 0,function*(){const i=yield this.renewSendFileUploadUrl(e,t);return null==i?void 0:i.url})}generateRollbackCallback(e){return()=>this.deleteSend(e)}}class md{}var fd=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})},yd=function(e,t,i){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,r;if(i){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],i&&(r=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");r&&(n=function(){try{r.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:i})}else i&&e.stack.push({async:!0});return t},bd=function(e){return function(t){function i(i){t.error=t.hasError?new e(i,t.error,"An error was suppressed during disposal."):i,t.hasError=!0}var n,r=0;return function e(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(e);if(n.dispose){var s=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(s).then(e,function(t){return i(t),e()})}else r|=1}catch(o){i(o)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}}("function"==typeof SuppressedError?SuppressedError:function(e,t,i){var n=new Error(i);return n.name="SuppressedError",n.error=e,n.suppressed=t,n});class Cd{constructor(e,t,i,n,r){this.sdkService=e,this.legacySendApiService=t,this.sendService=i,this.accountService=n,this.logService=r}save(e,t){return fd(this,void 0,void 0,function*(){var i;const n=yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6)),[r]=e;if(null==r.id&&r.type===xl.N.File)throw new Error("SendSdkApiService.save: file send creation requires SendApiService.");const s=yield r.decrypt(n),o=null!=r.id&&r.authType===Ml.Password&&null==t?null===(i=yield this.sendService.getFromState(r.id))||void 0===i?void 0:i.password:void 0,a=yield this.mutateSend(s,n,t,o),l=a.id;null==r.id&&(r.id=l,r.accessId=a.accessId);try{return yield this.refreshSendFromServer(l)}catch(c){return this.logService.error(`Send refresh failed after successful mutation: ${c}`),r}})}delete(e){return fd(this,void 0,void 0,function*(){const t=yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6));yield(0,u._)(this.sdkService.userClient$(t).pipe((0,jt.n)(t=>fd(this,void 0,void 0,function*(){const i={stack:[],error:void 0,hasError:!1};try{if(!t)throw new Error("SDK not available");const n=yd(i,t.take(),!1);return yield n.value.sends().delete((0,na.WD)(e))}catch(n){i.error=n,i.hasError=!0}finally{bd(i)}})),(0,Wr.W)(e=>{throw this.logService.error(`Failed to delete send: ${e}`),e}))),yield this.sendService.delete(e)})}removePassword(e){return fd(this,void 0,void 0,function*(){const t=yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6));yield(0,u._)(this.sdkService.userClient$(t).pipe((0,jt.n)(t=>fd(this,void 0,void 0,function*(){const i={stack:[],error:void 0,hasError:!1};try{if(!t)throw new Error("SDK not available");const n=yd(i,t.take(),!1);return yield n.value.sends().remove_password((0,na.WD)(e))}catch(n){i.error=n,i.hasError=!0}finally{bd(i)}})),(0,Wr.W)(e=>{throw this.logService.error(`Failed to remove send auth: ${e}`),e}))),yield this.refreshSendFromServer(e)})}getSend(e){return Promise.reject(new Error("SendSdkApiService.getSend: use SendApiService."))}postSendAccess(e,t){return fd(this,void 0,void 0,function*(){var i;const n=yield(0,u._)(this.sdkService.client$),r=yield n.sends().access_send_v1(e,null!==(i=t.password)&&void 0!==i?i:void 0);return new ud(r)})}postSendAccessV2(e){return fd(this,void 0,void 0,function*(){const t=yield(0,u._)(this.sdkService.client$),i=yield t.sends().access_send(e.token);return new ud(i)})}getSends(){return Promise.reject(new Error("SendSdkApiService.getSends: use SendApiService."))}putSendRemovePassword(e){return Promise.reject(new Error("SendSdkApiService.putSendRemovePassword: use SendApiService."))}deleteSend(e){return fd(this,void 0,void 0,function*(){const t=yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6));return(0,u._)(this.sdkService.userClient$(t).pipe((0,jt.n)(t=>fd(this,void 0,void 0,function*(){const i={stack:[],error:void 0,hasError:!1};try{if(!t)throw new Error("SDK not available");const n=yd(i,t.take(),!1);return yield n.value.sends().delete((0,na.WD)(e))}catch(n){i.error=n,i.hasError=!0}finally{bd(i)}})),(0,Wr.W)(e=>{throw this.logService.error(`Failed to delete send: ${e}`),e})))})}getSendFileDownloadData(e,t){return fd(this,void 0,void 0,function*(){var i;const n=yield(0,u._)(this.sdkService.client$),r=yield n.sends().get_file_download_data_v1(e.id,e.file.id,null!==(i=t.password)&&void 0!==i?i:void 0);return new hd(r)})}getSendFileDownloadDataV2(e,t){return fd(this,void 0,void 0,function*(){const i=yield(0,u._)(this.sdkService.client$),n=yield i.sends().get_file_download_data(t.token,e.file.id);return new hd(n)})}mutateSend(e,t,i,n){return fd(this,void 0,void 0,function*(){return yield(0,u._)(this.sdkService.userClient$(t).pipe((0,jt.n)(t=>fd(this,void 0,void 0,function*(){const r={stack:[],error:void 0,hasError:!1};try{if(!t)throw new Error("SDK not available");const s=yd(r,t.take(),!1).value.sends();return null==e.id?yield s.create(this.buildSendAddRequest(e,i)):yield s.edit((0,na.WD)(e.id),this.buildSendEditRequest(e,i,n))}catch(s){r.error=s,r.hasError=!0}finally{bd(r)}})),(0,Wr.W)(e=>{throw this.logService.error(`Failed to upload send: ${e}`),e})))})}refreshSendFromServer(e){return fd(this,void 0,void 0,function*(){const t=yield this.legacySendApiService.getSend(e),i=new Ul(t);return yield this.sendService.upsert(i),new Jl(i)})}buildSendAddRequest(e,t){var i,n,r,s;return{name:e.name,notes:null!==(i=e.notes)&&void 0!==i?i:void 0,viewType:this.buildSendViewType(e),maxAccessCount:null!==(n=e.maxAccessCount)&&void 0!==n?n:void 0,disabled:e.disabled,hideEmail:e.hideEmail,deletionDate:this.requireDeletionDate(e).toISOString(),expirationDate:null!==(s=null===(r=e.expirationDate)||void 0===r?void 0:r.toISOString())&&void 0!==s?s:void 0,auth:this.buildSendAuth(e,t,void 0)}}buildSendEditRequest(e,t,i){var n,r,s,o;return{name:e.name,notes:null!==(n=e.notes)&&void 0!==n?n:void 0,viewType:this.buildSendViewType(e),maxAccessCount:null!==(r=e.maxAccessCount)&&void 0!==r?r:void 0,disabled:e.disabled,hideEmail:e.hideEmail,deletionDate:this.requireDeletionDate(e).toISOString(),expirationDate:null!==(o=null===(s=e.expirationDate)||void 0===s?void 0:s.toISOString())&&void 0!==o?o:void 0,auth:this.buildSendAuth(e,t,i)}}requireDeletionDate(e){if(null==e.deletionDate)throw new Error("Send is missing a deletion date.");return e.deletionDate}buildSendViewType(e){var t,i,n,r,s,o,a,l;if(e.type===xl.N.File){if(null==e.file||!e.file.fileName)throw new Error("File send is missing a file name.");return{File:{id:null!==(t=e.file.id)&&void 0!==t?t:void 0,fileName:e.file.fileName,size:null!==(n=null===(i=e.file.size)||void 0===i?void 0:i.toString())&&void 0!==n?n:void 0,sizeName:null!==(r=e.file.sizeName)&&void 0!==r?r:void 0}}}return{Text:{text:null!==(o=null===(s=e.text)||void 0===s?void 0:s.text)&&void 0!==o?o:void 0,hidden:null!==(l=null===(a=e.text)||void 0===a?void 0:a.hidden)&&void 0!==l&&l}}}buildSendAuth(e,t,i){switch(e.authType){case Ml.Email:if(null==e.emails||0===e.emails.length)throw new Error("Email-protected send is missing recipient emails.");return{type:"emails",emails:e.emails};case Ml.Password:if(null!=t)return{type:"password",password:t};if(null!=i)return{type:"hashedPassword",keyB64:i};throw new Error("Password-protected send is missing its password.");case Ml.None:default:return{type:"none"}}}}var Id=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class wd{}class Bd extends dd{constructor(e){super(e),this.id=e.id}}var Ed=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Sd{}class Qd extends Sd{}var kd=i(88947),Rd=i(92411);class Fd{}var Td=i(97212),Dd=i(46033);class Pd{}var Md=i(41103),xd=i(54351),Vd=i(63098),Gd=i(4532);const Ud=C.Ok.array(C.i9,"notifications",{deserializer:e=>xi.fromJSON(e),clearOn:["logout","lock"]});var Od=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Nd=(0,p.T)(e=>Object.entries(null!=e?e:{}).filter(([,e])=>e>=m.J.Locked).map(([e])=>e));var jd=i(11979),Yd=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})},Xd=function(e,t,i){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,r;if(i){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],i&&(r=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");r&&(n=function(){try{r.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:i})}else i&&e.stack.push({async:!0});return t},zd=function(e){return function(t){function i(i){t.error=t.hasError?new e(i,t.error,"An error was suppressed during disposal."):i,t.hasError=!0}var n,r=0;return function e(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(e);if(n.dispose){var s=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(s).then(e,function(t){return i(t),e()})}else r|=1}catch(o){i(o)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}}("function"==typeof SuppressedError?SuppressedError:function(e,t,i){var n=new Error(i);return n.name="SuppressedError",n.error=e,n.suppressed=t,n});var Ld=i(81356),Wd=i(7919);class Kd{constructor(e){this.comparator=e,this.sortedCiphersByUrl=new Map,this.timeouts=new Map}isCached(e){return this.sortedCiphersByUrl.has(e)}addCiphers(e,t){t.sort(this.comparator),this.sortedCiphersByUrl.set(e,new Zd(t)),this.resetTimer(e)}getLastUsed(e){return this.resetTimer(e),this.isCached(e)?this.sortedCiphersByUrl.get(e).getLastUsed():null}getLastLaunched(e){return this.isCached(e)?this.sortedCiphersByUrl.get(e).getLastLaunched():null}getNext(e){return this.resetTimer(e),this.isCached(e)?this.sortedCiphersByUrl.get(e).getNext():null}updateLastUsedIndex(e){this.isCached(e)&&this.sortedCiphersByUrl.get(e).updateLastUsedIndex()}clear(){this.sortedCiphersByUrl.clear(),this.timeouts.clear()}resetTimer(e){clearTimeout(this.timeouts.get(e)),this.timeouts.set(e,setTimeout(()=>{this.sortedCiphersByUrl.delete(e),this.timeouts.delete(e)},3e3))}}class Zd{constructor(e){this.ciphers=e,this.lastUsedIndex=-1}getLastUsed(){return this.lastUsedIndex=Math.max(this.lastUsedIndex,0),this.ciphers[this.lastUsedIndex]}getLastLaunched(){return this.ciphers.filter(e=>{var t;return null===(t=e.localData)||void 0===t?void 0:t.lastLaunched}).sort((e,t)=>t.localData.lastLaunched.valueOf()-e.localData.lastLaunched.valueOf())[0]}getNextIndex(){return(this.lastUsedIndex+1)%this.ciphers.length}getNext(){return this.ciphers[this.getNextIndex()]}updateLastUsedIndex(){this.lastUsedIndex=this.getNextIndex()}}class Hd{constructor(e,t){this.ids=null==e?[]:e,this.organizationId=t}}class Jd{constructor(e,t){this.ids=null==e?[]:e,this.folderId=t}}class qd{constructor(e,t){this.ids=null==e?[]:e,this.organizationId=t}}var $d=i(45113);class _d extends $d.P{constructor({cipher:e,encryptedFor:t}){super({cipher:e,encryptedFor:t}),this.id=e.id}}class eu{constructor(e,t,i){this.encryptedFor=i,null!=e&&(this.ciphers=[],e.forEach(e=>{this.ciphers.push(new _d({cipher:e,encryptedFor:i}))})),this.collectionIds=t}}class tu{constructor(e,t,i,n=!1){this.organizationId=e,this.cipherIds=t,this.collectionIds=i,this.removeCollections=n}}class iu{constructor(e){this.collectionIds=null==e?[]:e}}class nu{constructor({cipher:e,encryptedFor:t}){this.cipher=new $d.P({cipher:e,encryptedFor:t}),this.collectionIds=e.collectionIds}}class ru{constructor(e){this.folderId=e.folderId,this.favorite=e.favorite}}class su{constructor({cipher:e,encryptedFor:t}){this.cipher=new $d.P({cipher:e,encryptedFor:t}),this.collectionIds=e.collectionIds}}var ou=i(12022),au=i(61325),lu=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class cu{constructor(e,t,i,n,r,s,o,a,l,c,u,A,g,v){this.keyService=e,this.domainSettingsService=t,this.apiService=i,this.i18nService=n,this.autofillSettingsService=r,this.encryptService=s,this.cipherFileUploadService=o,this.configService=a,this.stateProvider=l,this.accountService=c,this.logService=u,this.cipherEncryptionService=A,this.messageSender=g,this.cipherSdkService=v,this.sortedCiphersCache=new Kd(this.sortCiphersByLastUsed),this.clearCipherViewsForUser$=new d.B,this.sdkCipherCrudEnabled$=this.configService.getFeatureFlag$(Kr.TO.PM27632_SdkCipherCrudOperations),this.sdkCipherShareEnabled$=this.configService.getFeatureFlag$(Kr.TO.PM28190CipherSharingOpsToSdk),this.sdkCipherAdminOpsEnabled$=this.configService.getFeatureFlag$(Kr.TO.PM28191CipherAdminOpsToSdk),this.sdkCipherAttachmentOpsEnabled$=this.configService.getFeatureFlag$(Kr.TO.PM28192_CipherAttachmentOpsToSdk),this.cipherListViews$=(0,cn.j)(e=>{let t;return this.configService.getFeatureFlag$(Kr.TO.PM22134SdkCipherListView).pipe((0,jt.n)(i=>i?(0,xt.z)([this.encryptedCiphersState(e).state$,this.localData$(e),this.keyService.cipherDecryptionKeys$(e,!0)]).pipe((0,h.p)(([e,t,i])=>null!=e&&null!=i),(0,p.T)(([e,t])=>Object.values(e).map(e=>new rc.o(e,null==t?void 0:t[e.id]))),(0,P.M)(()=>{t=performance.now()}),(0,jt.n)(t=>lu(this,void 0,void 0,function*(){return yield this.decryptCiphersWithSdk(t,e,!1)})),(0,P.M)(([i,n])=>{Promise.all([this.setFailedDecryptedCiphers(n,e)]),this.logService.measure(t,"Vault","CipherService","listView decrypt complete",[["Items",i.length]])}),(0,p.T)(([e])=>e)):this.cipherViews$(e)))},this.clearCipherViewsForUser$),this.cipherViews$=(0,cn.j)(e=>(0,xt.z)([this.encryptedCiphersState(e).state$,this.localData$(e),this.keyService.cipherDecryptionKeys$(e)]).pipe((0,h.p)(([e,t,i])=>null!=e&&null!=i),(0,jt.n)(()=>this.getAllDecrypted(e)),(0,P.M)(()=>{this.messageSender.send("updateOverlayCiphers")})),this.clearCipherViewsForUser$),this.failedToDecryptCiphers$=(0,cn.j)(e=>this.failedToDecryptCiphersState(e).state$.pipe((0,h.p)(e=>null!=e)),this.clearCipherViewsForUser$)}localData$(e){return this.localDataState(e).state$.pipe((0,p.T)(e=>null!=e?e:{}))}ciphers$(e){return this.encryptedCiphersState(e).state$.pipe((0,p.T)(e=>null!=e?e:{}))}cipherView$(e,t){return this.cipherViews$(e).pipe((0,cn.w)(),(0,p.T)(e=>e.find(e=>e.id===t)))}addEditCipherInfo$(e){return this.addEditCipherInfoState(e).state$}setDecryptedCipherCache(e,t){return lu(this,void 0,void 0,function*(){null!=e&&0===e.length||(yield this.setDecryptedCiphers(e,t))})}setFailedDecryptedCiphers(e,t){return lu(this,void 0,void 0,function*(){yield this.stateProvider.setUserState(tc,e,t)})}setDecryptedCiphers(e,t){return lu(this,void 0,void 0,function*(){const i={};null==e||e.forEach(e=>{i[e.id]=e}),yield this.stateProvider.setUserState(ec,i,t)})}clearCache(e){return lu(this,void 0,void 0,function*(){const t=yield(0,u._)(this.stateProvider.activeUserId$);null!=e||(e=t),yield this.clearDecryptedCiphersState(e),this.clearCipherViewsForUser$.next(e)})}adjustCipherHistory(e,t,i){return lu(this,void 0,void 0,function*(){null!=e.id&&(null==i&&(i=yield this.get(e.id,t)),null!=i&&(yield this.updateModelfromExistingCipher(e,i,t)),this.adjustPasswordHistoryLength(e))})}encrypt(e,t){return lu(this,arguments,void 0,function*(e,t,i=null){return yield this.adjustCipherHistory(e,t,i),yield this.cipherEncryptionService.encrypt(e,t)})}encryptMany(e,t){return lu(this,void 0,void 0,function*(){return yield this.cipherEncryptionService.encryptMany(e,t)})}get(e,t){return lu(this,void 0,void 0,function*(){const i=yield(0,u._)(this.ciphers$(t));if(null==i||!i.hasOwnProperty(e))return null;const n=yield(0,u._)(this.localData$(t)),r=e;return new rc.o(i[r],n?n[r]:null)})}getAll(e){return lu(this,void 0,void 0,function*(){const t=yield(0,u._)(this.localData$(e)),i=yield(0,u._)(this.ciphers$(e)),n=[];for(const e in i)if(i.hasOwnProperty(e)){const r=e;n.push(new rc.o(i[r],t?t[r]:null))}return n})}getAllDecrypted(e){return lu(this,void 0,void 0,function*(){if(yield(0,u._)(this.sdkCipherCrudEnabled$))return this.getAllDecryptedUsingSdk(e);const t=yield this.getDecryptedCiphers(e);if(null!=t&&0!==t.length)return t;const i=yield this.decryptCiphers(yield this.getAll(e),e);if(null==i)return[];const[n,r]=i;return yield this.setDecryptedCipherCache(n,e),yield this.setFailedDecryptedCiphers(r,e),n})}getAllDecryptedUsingSdk(e){return lu(this,void 0,void 0,function*(){try{const t=yield this.cipherSdkService.getAllDecrypted(e),i=t.successes.sort(this.getLocaleSortingFunction());return yield this.setDecryptedCipherCache(i,e),yield this.setFailedDecryptedCiphers(t.failures,e),i}catch(t){return[]}})}getDecryptedCiphers(e){return lu(this,void 0,void 0,function*(){return Object.values(yield(0,u._)(this.decryptedCiphersState(e).state$.pipe((0,p.T)(e=>null!=e?e:{}))))})}decryptCiphers(e,t){return lu(this,void 0,void 0,function*(){if(0===e.length)return[[],[]];const i=performance.now(),n=yield this.decryptCiphersWithSdk(e,t,!0);return this.logService.measure(i,"Vault","CipherService","decrypt complete",[["Items",e.length]]),n})}decrypt(e,t){return lu(this,void 0,void 0,function*(){return yield this.cipherEncryptionService.decrypt(e,t)})}getAllDecryptedForGrouping(e,t){return lu(this,arguments,void 0,function*(e,t,i=!0){return(yield this.getAllDecrypted(t)).filter(t=>!t.isDeleted&&(!(!i||t.folderId!==e)||!i&&null!=t.collectionIds&&t.collectionIds.indexOf(e)>-1))})}getAllDecryptedForUrl(e,t,i){return lu(this,arguments,void 0,function*(e,t,i,n=null,r){return yield(0,u._)(this.cipherViews$(t).pipe((0,h.p)(e=>null!=e),(0,jt.n)(t=>lu(this,void 0,void 0,function*(){return yield this.filterCiphersForUrl(t,e,i,n,r)}))))})}getAllDecryptedForIds(e,t){return lu(this,void 0,void 0,function*(){return(0,u._)(this.cipherViews$(e).pipe((0,h.p)(e=>null!=e),(0,p.T)(e=>e.filter(e=>t.includes(e.id)))))})}filterCiphersForUrl(e,t,i){return lu(this,arguments,void 0,function*(e,t,i,n=null,r){if(null==t&&null==i)return[];const s=yield(0,u._)(this.domainSettingsService.getUrlEquivalentDomains(t));return null!=n||(n=yield(0,u._)(this.domainSettingsService.resolvedDefaultUriMatchStrategy$)),e.filter(e=>{const o=au.n.getType(e),a=null!==au.n.getLogin(e);return!au.n.isDeleted(e)&&(!au.n.isArchived(e)&&(!(!Array.isArray(i)||!i.includes(o)||a)||!!a&&au.n.matchesUri(e,t,s,n,r)))})})}getAllDecryptedCiphersOfType(e,t){return lu(this,void 0,void 0,function*(){return(yield this.getAllDecrypted(t)).filter(t=>null==t.deletedDate&&!t.isArchived&&e.includes(t.type)).sort((e,t)=>this.sortCiphersByLastUsedThenName(e,t))})}getAllFromApiForOrganization(e,t){return lu(this,void 0,void 0,function*(){if(yield(0,u._)(this.sdkCipherCrudEnabled$))return this.getAllFromApiForOrganizationUsingSdk(e,null!=t&&t);const i=yield this.apiService.getCiphersOrganization(e,t);return yield this.decryptOrganizationCiphersResponse(i,e)})}getAllFromApiForOrganizationUsingSdk(e,t){return lu(this,void 0,void 0,function*(){const i=yield(0,u._)(this.accountService.activeAccount$.pipe((0,p.T)(e=>null==e?void 0:e.id)));if(!i)throw new Error("User ID is required");try{const[n]=yield this.cipherSdkService.getAllFromApiForOrganization(e,i,t),[r]=yield this.cipherEncryptionService.decryptManyLegacy(n,i);return r.sort(this.getLocaleSortingFunction()),r}catch(n){return[]}})}getManyFromApiForOrganization(e){return lu(this,void 0,void 0,function*(){if(yield(0,u._)(this.sdkCipherAdminOpsEnabled$))return this.getManyFromApiForOrganizationUsingSdk(e);const t=yield this.apiService.send("GET","/ciphers/organization-details/assigned?organizationId="+e,null,!0,!0),i=new yt.s(t,$c.N);return this.decryptOrganizationCiphersResponse(i,e)})}getManyFromApiForOrganizationUsingSdk(e){return lu(this,void 0,void 0,function*(){const t=yield(0,u._)(this.accountService.activeAccount$.pipe((0,p.T)(e=>null==e?void 0:e.id)));if(!t)throw new Error("User ID is required");try{const[i]=yield this.cipherSdkService.getManyFromApiForOrganization(e,t),[n]=yield this.cipherEncryptionService.decryptManyLegacy(i,t);return n.sort(this.getLocaleSortingFunction()),n}catch(i){return[]}})}decryptOrganizationCiphersResponse(e,t){return lu(this,void 0,void 0,function*(){if(null==(null==e?void 0:e.data)||e.data.length<1)return[];const i=e.data.map(e=>new rc.o(new $l.A(e))),n=yield this.keyService.getOrgKey(t),r=yield Promise.all(i.map(e=>lu(this,void 0,void 0,function*(){return yield e.decrypt(n)})));return r.sort(this.getLocaleSortingFunction()),r})}getLastUsedForUrl(e,t){return lu(this,arguments,void 0,function*(e,t,i=!1){return this.getCipherForUrl(e,t,!0,!1,i)})}getLastLaunchedForUrl(e,t){return lu(this,arguments,void 0,function*(e,t,i=!1){return this.getCipherForUrl(e,t,!1,!0,i)})}getNextCipherForUrl(e,t){return lu(this,void 0,void 0,function*(){return this.getCipherForUrl(e,t,!1,!1,!1)})}getNextCardCipher(e){return lu(this,void 0,void 0,function*(){const t="cardCiphers";if(!this.sortedCiphersCache.isCached(t)){const i=yield this.getAllDecryptedCiphersOfType([Wd.gC.Card],e);if(!(null==i?void 0:i.length))return null;this.sortedCiphersCache.addCiphers(t,i)}return this.sortedCiphersCache.getNext(t)})}getNextIdentityCipher(e){return lu(this,void 0,void 0,function*(){const t="identityCiphers";if(!this.sortedCiphersCache.isCached(t)){const i=yield this.getAllDecryptedCiphersOfType([Wd.gC.Identity],e);if(!(null==i?void 0:i.length))return null;this.sortedCiphersCache.addCiphers(t,i)}return this.sortedCiphersCache.getNext(t)})}updateLastUsedIndexForUrl(e){this.sortedCiphersCache.updateLastUsedIndex(e)}updateLastUsedDate(e,t){return lu(this,void 0,void 0,function*(){let i=yield(0,u._)(this.localData$(t));i||(i={});const n=e;i[n]?i[n].lastUsedDate=(new Date).getTime():i[n]={lastUsedDate:(new Date).getTime()},yield this.localDataState(t).update(()=>i);const r=yield this.getDecryptedCiphers(t);if(r){for(let t=0;t<r.length;t++){const n=r[t];if(n.id===e){n.localData=i[e];break}}yield this.setDecryptedCiphers(r,t)}})}updateLastLaunchedDate(e,t){return lu(this,void 0,void 0,function*(){let i=yield(0,u._)(this.localData$(t));i||(i={});const n=(new Date).getTime();i[e]={lastLaunched:n,lastUsedDate:n},yield this.localDataState(t).update(()=>i);const r=yield this.getDecryptedCiphers(t);if(r){for(let t=0;t<r.length;t++){const n=r[t];if(n.id===e){n.localData=i[e];break}}yield this.setDecryptedCiphers(r,t)}})}saveNeverDomain(e){return lu(this,void 0,void 0,function*(){if(null==e)return;let t=yield(0,u._)(this.domainSettingsService.neverDomains$);t||(t={}),t[e]=null,yield this.domainSettingsService.setNeverDomains(t)})}createWithServer(e,t,i){return lu(this,void 0,void 0,function*(){if(yield(0,u._)(this.sdkCipherCrudEnabled$))return(yield this.createWithServerUsingSdk(e,t,i))||new Jr.f;const n=yield this.encrypt(e,t),r=yield this.createWithServerLegacy(n,i);return yield this.decrypt(r,t)})}createWithServerUsingSdk(e,t,i){return lu(this,void 0,void 0,function*(){yield this.clearCache(t);return yield this.cipherSdkService.createWithServer(e,t,i)})}createWithServerLegacy(e,t){return lu(this,arguments,void 0,function*({cipher:e,encryptedFor:t},i){let n;if(i&&null!=e.organizationId){const i=new nu({cipher:e,encryptedFor:t});n=yield this.apiService.postCipherAdmin(i);const r=new $l.A(n,e.collectionIds);return new rc.o(r)}if(null!=e.collectionIds&&e.collectionIds.length>0){const i=new nu({cipher:e,encryptedFor:t});n=yield this.apiService.postCipherCreate(i)}else{const i=new $d.P({cipher:e,encryptedFor:t});n=yield this.apiService.postCipher(i)}e.id=n.id;const r=new $l.A(n,e.collectionIds),s=yield this.upsert(r);return new rc.o(s[e.id])})}updateWithServer(e,t,i,n){return lu(this,void 0,void 0,function*(){if(yield(0,u._)(this.sdkCipherCrudEnabled$))return yield this.updateWithServerUsingSdk(e,t,i,n);const r=yield this.encrypt(e,t),s=yield this.updateWithServerLegacy(r,n);return yield this.decrypt(s,t)})}updateWithServerUsingSdk(e,t,i,n){return lu(this,void 0,void 0,function*(){yield this.clearCache(t);return yield this.cipherSdkService.updateWithServer(e,t,i,n)})}updateWithServerLegacy(e,t){return lu(this,arguments,void 0,function*({cipher:e,encryptedFor:t},i){let n;if(i){const i=new $d.P({cipher:e,encryptedFor:t});n=yield this.apiService.putCipherAdmin(e.id,i);const r=new $l.A(n,e.collectionIds);return new rc.o(r,e.localData)}if(e.edit){const i=new $d.P({cipher:e,encryptedFor:t});n=yield this.apiService.putCipher(e.id,i)}else{const t=new ru(e);n=yield this.apiService.putPartialCipher(e.id,t)}const r=new $l.A(n,e.collectionIds),s=yield this.upsert(r);return new rc.o(s[e.id],e.localData)})}shareWithServer(e,t,i,n,r){return lu(this,void 0,void 0,function*(){if(yield(0,u._)(this.sdkCipherShareEnabled$))return this.shareWithServerUsingSdk(e,t,i,n,r);let s;if(r){const e=yield this.cipherEncryptionService.encrypt(r,n);s=null==e?void 0:e.cipher}if(yield this.adjustCipherHistory(e,n,s),null!=e.organizationId)throw new Error("Cipher is already associated with an organization.");const o=yield this.cipherEncryptionService.moveToOrganization(e,t,n);o.cipher.collectionIds=i;const a=new su(o),l=yield this.apiService.putShareCipher(e.id,a),c=new $l.A(l,i);return yield this.upsert(c),new rc.o(c,e.localData)})}shareManyWithServer(e,t,i,n){return lu(this,void 0,void 0,function*(){if(yield(0,u._)(this.sdkCipherShareEnabled$))return this.shareManyWithServerUsingSdk(e,t,i,n);const r=[],s=[];for(const l of e){if(null!=l.organizationId)throw new Error("Cipher is already associated with an organization.");r.push(this.cipherEncryptionService.moveToOrganization(l,t,n).then(e=>{e.cipher.collectionIds=i,s.push(e.cipher)}))}yield Promise.all(r);const o=new eu(s,i,n);try{const e=yield this.apiService.putShareCiphers(o),t=new Map(e.data.map(e=>[e.id,e]));s.forEach(e=>{const i=t.get(e.id);i&&(e.revisionDate=new Date(i.revisionDate))}),yield this.upsert(s.map(e=>e.toCipherData()))}catch(a){for(const t of e)t.organizationId=null,t.collectionIds=null;throw a}})}shareWithServerUsingSdk(e,t,i,n,r){return lu(this,void 0,void 0,function*(){if(null!=e.organizationId)throw new Error("Cipher is already associated with an organization.");yield this.clearCache(n);const s=yield this.cipherSdkService.shareWithServer(e,t,i,n,r);if(null==s)throw new Error("Failed to share cipher: no result returned from SDK");return(yield this.cipherEncryptionService.encrypt(s,n)).cipher})}shareManyWithServerUsingSdk(e,t,i,n){return lu(this,void 0,void 0,function*(){for(const t of e)if(null!=t.organizationId)throw new Error("Cipher is already associated with an organization.");yield this.clearCache(n),yield this.cipherSdkService.shareManyWithServer(e,t,i,n)})}saveAttachmentWithServer(e,t,i,n=!1,r){return new Promise((s,o)=>{const a=new FileReader;a.readAsArrayBuffer(t),a.onload=a=>lu(this,void 0,void 0,function*(){try{const o=yield this.saveAttachmentRawWithServer(e,t.name,a.target.result,i,n,r);s(o)}catch(l){o(l)}}),a.onerror=()=>{o("Error reading file.")}})}saveAttachmentRawWithServer(e,t,i,n){return lu(this,arguments,void 0,function*(e,t,i,n,r=!1,s){var o;const a=yield(0,u._)(this.sdkCipherAttachmentOpsEnabled$),l=yield this.getKeyForCipherKeyDecryption(e,n),c=null!=e.key?yield this.encryptService.unwrapSymmetricKey(e.key,l):l,d=yield this.encryptService.encryptString(t,c),h=yield this.keyService.makeDataEncKey(c),A=yield this.encryptService.encryptFileData(new Uint8Array(i),h[0]);if(a){yield this.clearCache(n);const t=yield this.cipherSdkService.createAttachment(e.id,{key:h[1].encryptedString,fileName:d.encryptedString,fileSize:A.buffer.byteLength,lastKnownRevisionDate:e.revisionDate.toISOString(),asAdmin:r},n);return yield this.cipherFileUploadService.uploadPrepared(e.id,t.attachmentId,t.uploadUrl,"Direct"===t.fileUploadType?Pn.K9.Direct:Pn.K9.Azure,d,A,n,r,s),r?null!==(o=rc.o.fromSdkCipher(t.cipher))&&void 0!==o?o:e:yield this.get(e.id,n)}const p=yield this.cipherFileUploadService.upload(e,d,A,r,h,n,s),g=new $l.A(p,e.collectionIds);return r||(yield this.upsert(g)),new rc.o(g)})}saveCollectionsWithServer(e,t){return lu(this,void 0,void 0,function*(){if(yield(0,u._)(this.sdkCipherAdminOpsEnabled$)){yield this.clearCache(t);const i=yield this.cipherSdkService.saveCollectionsWithServer(e.id,e.collectionIds,t);return(yield this.cipherEncryptionService.encrypt(i,t)).cipher}const i=new iu(e.collectionIds),n=yield this.apiService.putCipherCollections(e.id,i);if(n.unavailable)return void(yield this.delete(e.id,t));const r=new $l.A(n.cipher),s=yield this.upsert(r);return new rc.o(s[e.id],e.localData)})}saveCollectionsWithServerAdmin(e){return lu(this,void 0,void 0,function*(){if(yield(0,u._)(this.sdkCipherAdminOpsEnabled$)){const t=yield(0,u._)(this.stateProvider.activeUserId$);yield this.clearCache(t);const i=yield this.cipherSdkService.saveCollectionsWithServerAdmin(e.id,e.collectionIds,t);return(yield this.cipherEncryptionService.encrypt(i,t)).cipher}const t=new iu(e.collectionIds),i=yield this.apiService.putCipherCollectionsAdmin(e.id,t),n=new $c.N(i);n.edit=!0,n.viewPassword=!0,n.favorite=!1;const r=new $l.A(n);return new rc.o(r)})}bulkUpdateCollectionsWithServer(e,t,i,n){return lu(this,arguments,void 0,function*(e,t,i,n,r=!1){var s,o;if(yield(0,u._)(this.sdkCipherAdminOpsEnabled$))return yield this.clearCache(t),void(yield this.cipherSdkService.bulkUpdateCollectionsWithServer(e,t,i,n,r));const a=new tu(e,i,n,r);yield this.apiService.send("POST","/ciphers/bulk-collections",a,!0,!1);const l=yield(0,u._)(this.ciphers$(t));for(const c of i){const e=l[c];e&&(e.collectionIds=r?null===(s=e.collectionIds)||void 0===s?void 0:s.filter(e=>!n.includes(e)):[...new Set([...null!==(o=e.collectionIds)&&void 0!==o?o:[],...n])])}yield this.clearCache(),yield this.encryptedCiphersState(t).update(()=>l)})}upsert(e,t){return lu(this,void 0,void 0,function*(){const i=e instanceof $l.A?[e]:e,n=yield this.updateEncryptedCipherState(e=>(i.forEach(t=>e[t.id]=t),e),t);return yield new Promise(e=>setTimeout(e,0)),n})}replace(e,t){return lu(this,void 0,void 0,function*(){var i;const n=null!==(i=yield(0,u._)(this.encryptedCiphersState(t).state$))&&void 0!==i?i:{};Object.keys(n).length>0&&JSON.stringify(n)===JSON.stringify(e)||(yield this.updateEncryptedCipherState(()=>e,t))})}updateEncryptedCipherState(e){return lu(this,arguments,void 0,function*(e,t=null){t||(t=yield(0,u._)(this.stateProvider.activeUserId$)),yield this.clearCache(t);const i=yield this.stateProvider.getUser(t,_l).update(t=>e(null!=t?t:{}));return yield new Promise(e=>setTimeout(e,0)),i})}clear(e){return lu(this,void 0,void 0,function*(){null!=e||(e=yield(0,u._)(this.stateProvider.activeUserId$)),yield this.clearEncryptedCiphersState(e),yield this.clearCache(e)})}moveManyWithServer(e,t,i){return lu(this,void 0,void 0,function*(){if(yield(0,u._)(this.sdkCipherAdminOpsEnabled$))return yield this.clearCache(i),void(yield this.cipherSdkService.moveManyWithServer(e,t,i));yield this.apiService.putMoveCiphers(new Jd(e,t));let n=yield(0,u._)(this.ciphers$(i));null==n&&(n={}),e.forEach(e=>{n.hasOwnProperty(e)&&(n[e].folderId=t)}),yield this.clearCache(),yield this.encryptedCiphersState(i).update(()=>n)})}delete(e,t){return lu(this,void 0,void 0,function*(){const i=yield(0,u._)(this.ciphers$(t));if(null!=i){if("string"==typeof e){const t=e;if(null==i[t])return;delete i[t]}else e.forEach(e=>{delete i[e]});yield this.clearCache(),yield this.encryptedCiphersState(t).update(()=>i)}})}deleteWithServer(e,t){return lu(this,arguments,void 0,function*(e,t,i=!1){if(yield(0,u._)(this.sdkCipherCrudEnabled$))return yield this.clearCache(t),void(yield this.cipherSdkService.deleteWithServer(e,t,i));i?yield this.apiService.deleteCipherAdmin(e):yield this.apiService.deleteCipher(e),yield this.delete(e,t)})}deleteManyWithServer(e,t){return lu(this,arguments,void 0,function*(e,t,i=!1,n){if(yield(0,u._)(this.sdkCipherCrudEnabled$))return yield this.clearCache(t),void(yield this.cipherSdkService.deleteManyWithServer(e,t,i,n));const r=new Hd(e,n);i?yield this.apiService.deleteManyCiphersAdmin(r):yield this.apiService.deleteManyCiphers(r),yield this.delete(e,t)})}deleteAttachment(e,t,i,n){return lu(this,void 0,void 0,function*(){let r=yield(0,u._)(this.ciphers$(n));const s=e;if(null!=r&&r.hasOwnProperty(e)&&null!=r[s].attachments){for(let e=0;e<r[s].attachments.length;e++)r[s].attachments[e].id===i&&r[s].attachments.splice(e,1);return r[s].revisionDate=t,yield this.clearCache(),yield this.encryptedCiphersState(n).update(()=>(null==r&&(r={}),r)),r[s]}})}deleteAttachmentWithServer(e,t,i){return lu(this,arguments,void 0,function*(e,t,i,n=!1){if(yield(0,u._)(this.sdkCipherAttachmentOpsEnabled$)){yield this.clearCache(i);const r=yield this.cipherSdkService.deleteAttachmentWithServer(e,t,i,n);return null==r?void 0:r.toCipherData()}let r;try{r=n?yield this.apiService.deleteCipherAttachmentAdmin(e,t):yield this.apiService.deleteCipherAttachment(e,t)}catch(o){return Promise.reject(o.getSingleMessage())}const s=new $l.A(r.cipher);return yield this.deleteAttachment(e,s.revisionDate,t,i)})}sortCiphersByLastUsed(e,t){const i=e.localData&&e.localData.lastUsedDate?e.localData.lastUsedDate:null,n=t.localData&&t.localData.lastUsedDate?t.localData.lastUsedDate:null,r=null!=i&&null!=n;return r&&i<n?1:null!=i&&null==n||r&&i>n?-1:null!=n&&null==i?1:0}sortCiphersByLastUsedThenName(e,t){const i=this.sortCiphersByLastUsed(e,t);return 0!==i?i:this.getLocaleSortingFunction()(e,t)}getLocaleSortingFunction(){return(e,t)=>{let i=e.name,n=t.name;if(null==i&&null!=n)return-1;if(null!=i&&null==n)return 1;if(null==i&&null==n)return 0;const r=this.i18nService.collator?this.i18nService.collator.compare(i,n):i.localeCompare(n),s=au.n.getType(e),o=au.n.getType(t);if(0!==r||s!==Wd.gC.Login||o!==Wd.gC.Login)return r;const a=au.n.getLogin(e),l=au.n.getLogin(t);return null!=a.username&&(i+=a.username),null!=l.username&&(n+=l.username),this.i18nService.collator?this.i18nService.collator.compare(i,n):i.localeCompare(n)}}softDelete(e,t){return lu(this,void 0,void 0,function*(){let i=yield(0,u._)(this.ciphers$(t));if(null==i)return;const n=e=>{null!=i[e]&&(i[e].deletedDate=(new Date).toISOString())};"string"==typeof e?n(e):e.forEach(n),yield this.clearCache(),yield this.encryptedCiphersState(t).update(()=>(null==i&&(i={}),i))})}softDeleteWithServer(e,t){return lu(this,arguments,void 0,function*(e,t,i=!1){if(yield(0,u._)(this.sdkCipherCrudEnabled$))return yield this.clearCache(t),void(yield this.cipherSdkService.softDeleteWithServer(e,t,i));i?yield this.apiService.putDeleteCipherAdmin(e):yield this.apiService.putDeleteCipher(e),yield this.softDelete(e,t)})}softDeleteManyWithServer(e,t){return lu(this,arguments,void 0,function*(e,t,i=!1,n){if(yield(0,u._)(this.sdkCipherCrudEnabled$))return yield this.clearCache(t),void(yield this.cipherSdkService.softDeleteManyWithServer(e,t,i,n));const r=new Hd(e,n);i?yield this.apiService.putDeleteManyCiphersAdmin(r):yield this.apiService.putDeleteManyCiphers(r),yield this.softDelete(e,t)})}restore(e,t){return lu(this,void 0,void 0,function*(){let i=yield(0,u._)(this.ciphers$(t));if(null==i)return;const n=e=>{const t=e.id;null!=i[t]&&(i[t].deletedDate=null,i[t].revisionDate=e.revisionDate)};e.constructor.name===Array.name?e.forEach(n):n(e),yield this.clearCache(),yield this.encryptedCiphersState(t).update(()=>(null==i&&(i={}),i))})}restoreWithServer(e,t){return lu(this,arguments,void 0,function*(e,t,i=!1){if(yield(0,u._)(this.sdkCipherCrudEnabled$))return yield this.clearCache(t),void(yield this.cipherSdkService.restoreWithServer(e,t,i));let n;n=i?yield this.apiService.putRestoreCipherAdmin(e):yield this.apiService.putRestoreCipher(e),yield this.restore({id:e,revisionDate:n.revisionDate},t)})}restoreManyWithServer(e,t,i){return lu(this,void 0,void 0,function*(){if(yield(0,u._)(this.sdkCipherCrudEnabled$))return yield this.clearCache(t),void(yield this.cipherSdkService.restoreManyWithServer(e,t,i));let n;if(i){const t=new qd(e,i);n=yield this.apiService.putRestoreManyCiphersAdmin(t)}else{const t=new qd(e);n=yield this.apiService.putRestoreManyCiphers(t)}const r=[];for(const e of n.data)r.push({id:e.id,revisionDate:e.revisionDate});yield this.restore(r,t)})}getKeyForCipherKeyDecryption(e,t){return lu(this,void 0,void 0,function*(){return null==e.organizationId?yield(0,u._)(this.keyService.userKey$(t)):yield(0,u._)(this.keyService.orgKeys$(t).pipe((0,p.T)(t=>t[e.organizationId])))})}setAddEditCipherInfo(e,t){return lu(this,void 0,void 0,function*(){yield this.addEditCipherInfoState(t).update(()=>e,{shouldUpdate:t=>!(null==t&&null==e)})})}getRotatedData(e,t,i){return lu(this,void 0,void 0,function*(){if(null==e)throw new Error("Original user key is required to rotate ciphers");if(null==t)throw new Error("New user key is required to rotate ciphers");let n=[];const r=yield(0,u._)(this.cipherViews$(i)),s=yield(0,u._)(this.failedToDecryptCiphers$(i));if(!r)return n;if(s.length>0)throw new Error("Cannot rotate ciphers when decryption failures are present");const o=r.filter(e=>null==e.organizationId);return 0===o.length||(n=yield Promise.all(o.map(e=>lu(this,void 0,void 0,function*(){const n=yield this.cipherEncryptionService.encryptCipherForRotation(e,i,t);return new _d(n)})))),n})}getDecryptedAttachmentBuffer(e,t,i,n,r){return lu(this,void 0,void 0,function*(){const s=yield(0,u._)(this.ciphers$(n).pipe((0,p.T)(t=>new rc.o(t[e]))));if(!r){const e=yield i.arrayBuffer();return this.cipherEncryptionService.decryptAttachmentContent(s,t,new Uint8Array(e),n)}const o=yield fs.fromResponse(i),a=null!=t.key?t.key:s.organizationId?yield(0,u._)(this.keyService.orgKeys$(n).pipe((0,cn.w)(),(0,p.T)(e=>e[s.organizationId]))):yield(0,u._)(this.keyService.userKey$(n).pipe((0,cn.w)()));return yield this.encryptService.decryptFileData(o,a)})}localDataState(e){return this.stateProvider.getUser(e,ic)}encryptedCiphersState(e){return this.stateProvider.getUser(e,_l)}decryptedCiphersState(e){return this.stateProvider.getUser(e,ec)}addEditCipherInfoState(e){return this.stateProvider.getUser(e,nc)}failedToDecryptCiphersState(e){return this.stateProvider.getUser(e,tc)}updateModelfromExistingCipher(e,t,i){return lu(this,void 0,void 0,function*(){const n=yield this.decrypt(t,i);if(e.passwordHistory=n.passwordHistory||[],e.type===Wd.gC.Login&&n.type===Wd.gC.Login)if(null!=n.login.password&&""!==n.login.password&&n.login.password!==e.login.password){const t=new ou.j;t.password=n.login.password,t.lastUsedDate=e.login.passwordRevisionDate=new Date,e.passwordHistory.splice(0,0,t)}else e.login.passwordRevisionDate=n.login.passwordRevisionDate;if(n.hasFields){const t=n.fields.filter(e=>e.type===Ld.PU.Hidden&&null!=e.name&&""!==e.name&&null!=e.value&&""!==e.value),i=null==e.fields?[]:e.fields.filter(e=>e.type===Ld.PU.Hidden&&null!=e.name&&""!==e.name);t.forEach(t=>{const n=i.find(e=>e.name===t.name);if(null==n||n.value!==t.value){const i=new ou.j;i.password=t.name+": "+t.value,i.lastUsedDate=new Date,e.passwordHistory.splice(0,0,i)}})}})}adjustPasswordHistoryLength(e){null!=e.passwordHistory&&0===e.passwordHistory.length?e.passwordHistory=null:null!=e.passwordHistory&&e.passwordHistory.length>5&&(e.passwordHistory=e.passwordHistory.slice(0,5))}upgradeOldCipherAttachments(e,t,i){return lu(this,void 0,void 0,function*(){if(!e.hasOldAttachments)return e;const n=yield(0,u._)(this.sdkCipherAttachmentOpsEnabled$);let r,s=yield this.get(e.id,t);for(const a of e.attachments)if(null==a.key&&(null==i||a.id===i))try{if(n)r=yield this.upgradeOldAttachmentViaSdk(e.id,a.id,t);else{const i=yield this.getAttachmentDownloadUrl(e.id,a),n=yield this.apiService.nativeFetch(new Request(i,{cache:"no-store"}));if(200!==n.status)throw new Error(`Failed to download attachment. Status: ${n.status}`);const r=yield this.getDecryptedAttachmentBuffer(e.id,a,n,t);yield this.saveAttachmentRawWithServer(s,a.fileName,r,t);const o=yield this.deleteAttachmentWithServer(e.id,a.id,t);s=new rc.o(o)}}catch(o){throw this.logService.error(`Failed to upgrade attachment ${a.id}`,o),o}return null!=r?r:yield this.decrypt(s,t)})}upgradeOldAttachmentViaSdk(e,t,i){return lu(this,void 0,void 0,function*(){return yield this.clearCache(i),yield this.cipherSdkService.upgradeAttachment(e,t,i)})}getAttachmentDownloadUrl(e,t){return lu(this,void 0,void 0,function*(){try{return(yield this.apiService.getAttachmentData(e,t.id)).url}catch(i){if(i instanceof Xt._&&404===i.statusCode&&t.url)return t.url;throw new Error(`Failed to get download URL for attachment ${t.id}`)}})}encryptObjProperty(e,t,i,n){return lu(this,void 0,void 0,function*(){const r=[],s=this;for(const o in i)i.hasOwnProperty(o)&&function(t,o){const a=Promise.resolve().then(()=>{const r=e[i[t]||t];return r&&""!==r?s.encryptService.encryptString(r,n):null}).then(e=>{o[t]=e});r.push(a)}(o,t);yield Promise.all(r)})}getAutofillOnPageLoadDefault(){return lu(this,void 0,void 0,function*(){return yield(0,u._)(this.autofillSettingsService.autofillOnPageLoadDefault$)})}getCipherForUrl(e,t,i,n,r){return lu(this,void 0,void 0,function*(){const s=r?"autofillOnPageLoad-"+e:e;if(!this.sortedCiphersCache.isCached(s)){let i=yield this.getAllDecryptedForUrl(e,t);if(!(null==i?void 0:i.length))return null;const n=yield(0,u._)(this.localData$(t));if(n)for(const e of i){const t=n[e.id];t&&(e.localData=t)}if(r){const e=yield this.getAutofillOnPageLoadDefault();if(i=i.filter(t=>t.login.autofillOnPageLoad||null==t.login.autofillOnPageLoad&&!1!==e),0===i.length)return null}this.sortedCiphersCache.addCiphers(s,i)}return n?this.sortedCiphersCache.getLastLaunched(s):i?this.sortedCiphersCache.getLastUsed(s):this.sortedCiphersCache.getNext(s)})}clearEncryptedCiphersState(e){return lu(this,void 0,void 0,function*(){yield this.stateProvider.setUserState(_l,null,e)})}clearDecryptedCiphersState(e){return lu(this,void 0,void 0,function*(){yield this.setDecryptedCiphers(null,e),yield this.setFailedDecryptedCiphers(null,e),this.clearSortedCiphers()})}clearSortedCiphers(){this.sortedCiphersCache.clear()}decryptCiphersWithSdk(e,t){return lu(this,arguments,void 0,function*(e,t,i=!0){if(0===e.length)return[[],[]];if(i){const[i,n]=yield this.cipherEncryptionService.decryptManyLegacy(e,t);return[i.sort(this.getLocaleSortingFunction()),n]}const[n,r]=yield this.cipherEncryptionService.decryptManyWithFailures(e,t),s=r.map(e=>{const t=new Jr.f(e);return t.name="[error: cannot decrypt]",t.decryptionFailure=!0,t});return[n.sort(this.getLocaleSortingFunction()),s]})}getFullCipherView(e){return lu(this,void 0,void 0,function*(){if(au.n.isCipherListView(e)){const t=yield(0,u._)(this.accountService.activeAccount$.pipe((0,p.T)(e=>null==e?void 0:e.id))),i=yield this.get((0,na.zw)(e.id),t);return this.decrypt(i,t)}return Promise.resolve(e)})}}class du extends st.r{constructor(e){super(e),this.uri=this.getResponseProperty("uri")}}var uu=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class hu{constructor(e){this.ids=null==e?[]:e}}class Au{constructor(e){this.ids=null==e?[]:e}}var pu=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var gu=i(65918),vu=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})},mu=function(e,t,i){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,r;if(i){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],i&&(r=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");r&&(n=function(){try{r.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:i})}else i&&e.stack.push({async:!0});return t},fu=function(e){return function(t){function i(i){t.error=t.hasError?new e(i,t.error,"An error was suppressed during disposal."):i,t.hasError=!0}var n,r=0;return function e(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(e);if(n.dispose){var s=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(s).then(e,function(t){return i(t),e()})}else r|=1}catch(o){i(o)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}}("function"==typeof SuppressedError?SuppressedError:function(e,t,i){var n=new Error(i);return n.name="SuppressedError",n.error=e,n.suppressed=t,n});var yu=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})},bu=function(e,t,i){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,r;if(i){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],i&&(r=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");r&&(n=function(){try{r.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:i})}else i&&e.stack.push({async:!0});return t},Cu=function(e){return function(t){function i(i){t.error=t.hasError?new e(i,t.error,"An error was suppressed during disposal."):i,t.hasError=!0}var n,r=0;return function e(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(e);if(n.dispose){var s=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(s).then(e,function(t){return i(t),e()})}else r|=1}catch(o){i(o)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}}("function"==typeof SuppressedError?SuppressedError:function(e,t,i){var n=new Error(i);return n.name="SuppressedError",n.error=e,n.suppressed=t,n});var Iu=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var wu=i(52793),Bu=i(98850),Eu=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var Su=i(61065),Qu=i(84274),ku=i(78078);class Ru extends wu.O{constructor(e){super(e),this.id=e.id}}const Fu=C.Ok.record(C.Rv,"folders",{deserializer:e=>bc.fromJSON(e),clearOn:["logout"]}),Tu=new C.Ok(C.jx,"decryptedFolders",{deserializer:e=>{var t;return null!==(t=null==e?void 0:e.map(e=>ku.u.fromJSON(e)))&&void 0!==t?t:[]},clearOn:["logout","lock"]});var Du=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var Pu=i(66983),Mu=i(1332),xu=i(59777),Vu=i(92543),Gu=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Uu{constructor(e){this.logService=e,this.isIndexing=!1,this.lunrIndices=new Map,Uu.registeredPipeline||(Uu.registeredPipeline=!0,Mu.Pipeline.registerFunction(Ou,"normalizeAccents"))}searchCiphers(e,t,i,n){return Gu(this,void 0,void 0,function*(){const r=[],s=performance.now(),o=yield this.getOrCreateIndex(function(e,t){return`${e}${t?`-${t}`:""}`}(e,t),n),a=new Map;n.forEach(e=>a.set((0,na.zw)(e.id),e));try{o.search(i.substring(1).trim()).forEach(e=>{const t=a.get(e.ref);null!=t&&r.push(t)})}catch(l){this.logService.error(l)}return this.logService.measure(s,"Vault","LunrSearchService","search complete"),r})}getOrCreateIndex(e,t){return Gu(this,void 0,void 0,function*(){if(this.isIndexUpToDate(e,t))return this.lunrIndices.get(e).lunrIndex;{const i=performance.now();let n;this.logService.info("Starting Lunr index build"),yield this.acquireIndexLock();try{n=yield function(e){return Gu(this,void 0,void 0,function*(){const t=new Mu.Builder;t.pipeline.add(Ou),t.ref("id"),t.field("shortid",{boost:100,extractor:e=>(0,na.zw)(e.id).substring(0,8)}),t.field("name",{boost:10,extractor:e=>{var t;return null!==(t=e.name)&&void 0!==t?t:""}}),t.field("subtitle",{boost:5,extractor:e=>{const t=e,i=au.n.subtitle(t);return null!=i&&au.n.getType(t)===Wd.gC.Card?i.replace(/\*/g,""):null!=i?i:""}}),t.field("notes",{extractor:e=>{var t;return null!==(t=au.n.getNotes(e))&&void 0!==t?t:""}}),t.field("login.username",{extractor:e=>{var t;const i=e,n=au.n.getLogin(i);return null!==(t=null==n?void 0:n.username)&&void 0!==t?t:""}}),t.field("login.uris",{boost:2,extractor:e=>function(e){var t;if(au.n.getType(e)!==Wd.gC.Login)return[];const i=au.n.getLogin(e);if(!(null===(t=null==i?void 0:i.uris)||void 0===t?void 0:t.length))return[];const n=[];return i.uris.forEach(e=>{if(null==e.uri||""===e.uri)return;const t=e.uri.match(/:(\d+)(?:[/?#]|$)/),i=null==t?void 0:t[1],r=au.n.getUriHostname(e);void 0!==r&&(n.push(r),i&&(n.push(`${r}:${i}`),n.push(i)));let s=e.uri;if(e.match!==xu.L.RegularExpression){const e=s.indexOf("://");e>-1&&(s=s.substring(e+3));const t=s.search(/\?|&|#/);t>-1&&(s=s.substring(0,t))}n.push(s)}),n}(e)}),t.field("fields",{extractor:e=>Nu(e,!1)}),t.field("fields_joined",{extractor:e=>Nu(e,!0)}),t.field("attachments",{extractor:e=>ju(e,!1)}),t.field("attachments_joined",{extractor:e=>ju(e,!0)}),t.field("organizationid",{extractor:e=>{var t;return String(null!==(t=e.organizationId)&&void 0!==t?t:"")}}),(e=e||[]).forEach(e=>t.add(e));return t.build()})}(t),this.lunrIndices.set(e,{lunrIndex:n,numberOfCiphers:t.length,revisionDate:new Date})}finally{yield this.releaseIndexLock()}return this.logService.info("Lunr index build complete"),this.logService.measure(i,"Vault","LunrSearchService","index build complete",[["Items Indexed",t.length]]),n}})}isIndexUpToDate(e,t){const i=this.lunrIndices.get(e);if(!i)return!1;if(i.numberOfCiphers!==t.length)return!1;const n=t.reduce((e,t)=>{const i=t.revisionDate?new Date(t.revisionDate):new Date(0);return i>e?i:e},new Date(0));return i.revisionDate>=n}acquireIndexLock(){return Gu(this,void 0,void 0,function*(){const e=performance.now();for(;this.isIndexing;){if(performance.now()-e>=Uu.indexLockForceAcquireTimeoutMs){this.logService.info("Lunr index lock acquisition timed out after 10 seconds, forcing lock acquisition");break}yield new Promise(e=>setTimeout(e,Uu.indexLockPollIntervalMs))}return this.isIndexing=!0,!0})}releaseIndexLock(){return Gu(this,void 0,void 0,function*(){this.isIndexing=!1})}}function Ou(e){const t=["name","login.username","subtitle","notes"],i=e.metadata,n=null==i?void 0:i.fields;return Array.isArray(n)&&n.every(e=>t.includes(String(e)))?Xu(e.toString()):e}function Nu(e,t){const i=au.n.getFields(e);if(!i||0===i.length)return t?"":[];let n=[];return i.forEach(e=>{if(null!=e.name&&n.push(e.name),null!=e.value){const t=e.type;void 0!==t&&t!==Vu.P.Text||n.push(e.value)}}),n=n.filter(e=>""!==e.trim()),0===n.length?t?"":[]:t?n.join(" "):n}function ju(e,t){const i=au.n.getAttachmentNames(e);if(!i||0===i.length)return t?"":[];let n=[];return i.forEach(e=>{null!=e&&(t&&e.indexOf(".")>-1?n.push(e.substring(0,e.lastIndexOf("."))):n.push(e))}),n=n.filter(e=>""!==e.trim()),0===n.length?t?"":[]:t?n.join(" "):n}Uu.registeredPipeline=!1,Uu.indexLockPollIntervalMs=20,Uu.indexLockForceAcquireTimeoutMs=1e4;var Yu=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function Xu(e){return null==e?void 0:e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}const zu=new C.Zs(C.Jb,"enablePasskeys",{deserializer:e=>e}),Lu=new C.Ok(C.Jb,"showCardsCurrentTab",{deserializer:e=>e,clearOn:[]}),Wu=new C.Ok(C.Jb,"showIdentitiesCurrentTab",{deserializer:e=>e,clearOn:[]}),Ku=new C.Ok(C.Jb,"clickItemsToAutofillOnVaultView",{deserializer:e=>e,clearOn:[]}),Zu=new C.Ok(C.Jb,"showAtRiskPasswordNotifications",{deserializer:e=>e,clearOn:[]});var Hu=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var Ju=i(47269),qu=i(24512);var $u=i(192),_u=i(71373),eh=i(66905),th=i(93173);class ih{}var nh=i(2738),rh=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})},sh=function(e,t,i){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,r;if(i){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],i&&(r=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");r&&(n=function(){try{r.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:i})}else i&&e.stack.push({async:!0});return t},oh=function(e){return function(t){function i(i){t.error=t.hasError?new e(i,t.error,"An error was suppressed during disposal."):i,t.hasError=!0}var n,r=0;return function e(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(e);if(n.dispose){var s=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(s).then(e,function(t){return i(t),e()})}else r|=1}catch(o){i(o)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}}("function"==typeof SuppressedError?SuppressedError:function(e,t,i){var n=new Error(i);return n.name="SuppressedError",n.error=e,n.suppressed=t,n});var ah=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class lh{}class ch{}var dh=i(84330),uh=i(87673),hh=i(73366),Ah=i(29029),ph=i(81573),gh=i(80351),vh=i(37579),mh=i(44075),fh=i(56898),yh=i(7730),bh=i(45635),Ch=i(67311),Ih=i(26657),wh=i(38620),Bh=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Eh{constructor(e,t,i,n,r){this.i18nService=e,this.formBuilder=t,this.accountApiService=i,this.dialogRef=n,this.toastService=r,this.deleteForm=this.formBuilder.group({verification:void 0}),this.invalidSecret=!1,this.submit=()=>Bh(this,void 0,void 0,function*(){try{const e=this.deleteForm.get("verification").value;yield this.accountApiService.deleteAccount(e),yield this.dialogRef.close(),this.toastService.showToast({variant:"success",title:this.i18nService.t("accountDeleted"),message:this.i18nService.t("accountDeletedDesc")})}catch(e){throw e instanceof Xt._&&400===e.statusCode&&(this.invalidSecret=!0),e}})}static open(e){return e.open(Eh)}}Eh.ɵfac=function(e){return new(e||Eh)(w.rXU(he.W),w.rXU(a.ok),w.rXU(ni.T),w.rXU(mh.ce),w.rXU(F.f))},Eh.ɵcmp=w.VBU({type:Eh,selectors:[["ng-component"]],decls:17,vars:18,consts:[["bit-dialog","","dialogSize","default",3,"formGroup","bitSubmit","title"],["bitDialogContent",""],["bitTypography","body1"],["type","warning"],["formControlName","verification","name","verification",3,"invalidSecretChange","invalidSecret"],["bitDialogFooter",""],["bitButton","","bitFormButton","","type","submit","buttonType","danger"],["bitButton","","bitFormButton","","type","button","buttonType","secondary","bitDialogClose",""]],template:function(e,t){1&e&&(w.j41(0,"form",0),w.nI1(1,"i18n"),w.qex(2,1),w.j41(3,"p",2),w.EFF(4),w.nI1(5,"i18n"),w.k0s(),w.j41(6,"bit-callout",3),w.EFF(7),w.nI1(8,"i18n"),w.k0s(),w.j41(9,"app-user-verification-form-input",4),w.mxI("invalidSecretChange",function(e){return w.DH7(t.invalidSecret,e)||(t.invalidSecret=e),e}),w.k0s(),w.bVm(),w.qex(10,5),w.j41(11,"button",6),w.EFF(12),w.nI1(13,"i18n"),w.k0s(),w.j41(14,"button",7),w.EFF(15),w.nI1(16,"i18n"),w.k0s(),w.bVm(),w.k0s()),2&e&&(w.Y8G("formGroup",t.deleteForm)("bitSubmit",t.submit)("title",w.bMT(1,8,"deleteAccount")),w.R7$(4),w.JRh(w.bMT(5,10,"deleteAccountDesc")),w.R7$(3),w.JRh(w.bMT(8,12,"deleteAccountWarning")),w.R7$(2),w.R50("invalidSecret",t.invalidSecret),w.R7$(3),w.SpI(" ",w.bMT(13,14,"deleteAccount")," "),w.R7$(3),w.SpI(" ",w.bMT(16,16,"close")," "))},dependencies:[L.MD,a.X1,a.qT,a.BC,a.cb,a.j4,a.JD,Ah.t,fh.Q,ph.P,yh.I,bh.m,Ch.hJ,gh.j,ae.G,ne.wV,vh.C,Ih.$,wh.L,ce.$Z],encapsulation:2});var Sh=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Qh{constructor(e,t,i){this.accountService=e,this.organizationService=t,this.dialogService=i}openDeleteAccountFlow(){return Sh(this,void 0,void 0,function*(){const e=yield(0,u._)((0,f.F6)(this.accountService.activeAccount$)),t=yield(0,u._)(this.organizationService.organizations$(e));if(t.some(e=>!0===e.userIsClaimedByOrganization))return void(yield this.dialogService.openSimpleDialog({title:{key:"cannotDeleteAccount"},content:{key:"cannotDeleteAccountDesc"},acceptButtonText:{key:"close"},cancelButtonText:null,type:"danger"}));const i=t.filter(e=>e.isOwner&&e.isMember&&e.status===_e.Zx.Confirmed);if(i.some(e=>e.productTierType!==Yr.K_.Free))return void(yield this.dialogService.openSimpleDialog({title:{key:"cannotDeleteAccount"},content:{key:"cannotDeleteAccountOrganizationOwnerDesc"},acceptButtonText:{key:"close"},cancelButtonText:null,type:"danger"}));if(i.some(e=>e.productTierType===Yr.K_.Free)){if(!(yield this.dialogService.openSimpleDialog({title:{key:"deleteAccount"},content:{key:"deleteAccountOrganizationOwnerWarning"},acceptButtonText:{key:"deleteAccount"},cancelButtonText:{key:"cancel"},type:"warning"})))return}const n=Eh.open(this.dialogService);yield(0,hh.s)(n.closed)})}}Qh.ɵfac=function(e){return new(e||Qh)(B.KVO(N.D),B.KVO(v.PV),B.KVO(T.o))},Qh.ɵprov=B.jDH({token:Qh,factory:Qh.ɵfac});class kh{}class Rh{constructor(e,t,i,n,r,s){if(this.masterPasswordHash=e,this.key=t,this.masterPasswordHint=i,this.orgIdentifier=n,this.keys=r,s.kdfType===I.ao.PBKDF2_SHA256)this.kdf=I.ao.PBKDF2_SHA256,this.kdfIterations=s.iterations;else{if(s.kdfType!==I.ao.Argon2id)throw new Error(`Unsupported KDF type: ${s}`);this.kdf=I.ao.Argon2id,this.kdfIterations=s.iterations,this.kdfMemory=s.memory,this.kdfParallelism=s.parallelism}}static newConstructor(e,t,i,n,r){return new Rh(e.masterPasswordAuthenticationHash,t.masterKeyWrappedUserKey,i,n,r,t.kdf)}}class Fh extends _.W7{static newConstructorWithHint(e,t,i){const n=new Fh;return n.newMasterPasswordHash=e.masterPasswordAuthenticationHash,n.key=t.masterKeyWrappedUserKey,n.masterPasswordHint=i,n}}var Th=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})},Dh=function(e,t,i){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,r;if(i){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],i&&(r=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");r&&(n=function(){try{r.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:i})}else i&&e.stack.push({async:!0});return t},Ph=function(e){return function(t){function i(i){t.error=t.hasError?new e(i,t.error,"An error was suppressed during disposal."):i,t.hasError=!0}var n,r=0;return function e(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(e);if(n.dispose){var s=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(s).then(e,function(t){return i(t),e()})}else r|=1}catch(o){i(o)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}}("function"==typeof SuppressedError?SuppressedError:function(e,t,i){var n=new Error(i);return n.name="SuppressedError",n.error=e,n.suppressed=t,n});class Mh{constructor(e,t,i,n,r,s,o,a,l,c,d,u){this.apiService=e,this.encryptService=t,this.i18nService=i,this.kdfConfigService=n,this.keyService=r,this.masterPasswordApiService=s,this.masterPasswordService=o,this.organizationApiService=a,this.organizationUserApiService=l,this.userDecryptionOptionsService=c,this.accountCryptographicStateService=d,this.registerSdkService=u}setInitialPassword(e,t,i){return Th(this,void 0,void 0,function*(){const{newMasterKey:n,newServerMasterKeyHash:r,newPasswordHint:s,kdfConfig:o,orgSsoIdentifier:a,orgId:l,resetPasswordAutoEnroll:c,newPassword:d,salt:h}=e;for(const[t,i]of Object.entries(e))if(null==i)throw new Error(`${t} not found. Could not set password.`);if(null==i)throw new Error("userId not found. Could not set password.");if(null==t)throw new Error("userType not found. Could not set password.");const A=yield this.makeMasterKeyEncryptedUserKey(n,i);if(null==A||!A[1].encryptedString)throw new Error("masterKeyEncryptedUserKey not found. Could not set password.");let p=null,g=null;if(t===xe.JIT_PROVISIONED_MP_ORG_USER){const e=yield(0,u._)(this.keyService.userPrivateKey$(i)),t=yield(0,u._)(this.keyService.userPublicKey$(i));if(null!=e&&null!=t){p=[zt.A.fromBufferToB64(t),yield this.encryptService.wrapDecapsulationKey(e,A[0])]}else p=yield this.keyService.makeKeyPair(A[0]);if(null==p)throw new Error("keyPair not found. Could not set password.");if(!p[1].encryptedString)throw new Error("encrypted private key not found. Could not set password.");g=new Hs.G(p[0],p[1].encryptedString)}const v=new Rh(r,A[1].encryptedString,s,a,g,o);if(yield this.masterPasswordApiService.setPassword(v),yield this.masterPasswordService.setForceSetPasswordReason(re.n.None,i),yield this.updateAccountDecryptionProperties(n,o,A,i),yield this.setMasterPasswordUnlockData(d,h,o,A[0],i),null!=p&&t===xe.JIT_PROVISIONED_MP_ORG_USER){if(!p[1].encryptedString)throw new Error("encrypted private key not found. Could not set private key in state.");yield this.accountCryptographicStateService.setAccountCryptographicState({V1:{private_key:p[1].encryptedString}},i)}c&&(yield this.handleResetPasswordAutoEnrollOld(r,l,i))})}setInitialPasswordTdeOffboarding(e,t){return Th(this,void 0,void 0,function*(){const i="Could not set initial password.";if((0,Ee.B)(e.newPassword,"newPassword",i),(0,Ee.B)(e.salt,"salt",i),(0,Se.x)(e.kdfConfig,"kdfConfig",i),(0,Se.x)(e.newPasswordHint,"newPasswordHint",i),null==t)throw new Error("userId not found. Could not set password.");const{newPassword:n,salt:r,kdfConfig:s,newPasswordHint:o}=e,a=yield(0,u._)(this.keyService.userKey$(t));if(null==a)throw new Error("userKey not found. Could not set password.");const l=yield this.masterPasswordService.makeMasterPasswordAuthenticationData(n,s,r),c=yield this.masterPasswordService.makeMasterPasswordUnlockData(n,s,r,a),d=Fh.newConstructorWithHint(l,c,o);yield this.masterPasswordApiService.putUpdateTdeOffboardingPassword(d),yield this.masterPasswordService.setForceSetPasswordReason(re.n.None,t)})}initializePasswordJitPasswordUserV2Encryption(e,t){return Th(this,void 0,void 0,function*(){if(null==t)throw new Error("User ID is required.");for(const[t,u]of Object.entries(e))if(null==u)throw new Error(`${t} is required.`);const{newPasswordHint:i,orgSsoIdentifier:n,orgId:r,resetPasswordAutoEnroll:s,newPassword:o,salt:a}=e,l=yield this.organizationApiService.getKeys(r);if(null==l)throw new Error("Organization keys response is null.");const c=yield(0,u._)(this.registerSdkService.registerClient$(t).pipe((0,dl.H)(e=>Th(this,void 0,void 0,function*(){const c={stack:[],error:void 0,hasError:!1};try{if(!e)throw new Error("SDK not available");const d=Dh(c,e.take(),!1);return yield d.value.auth().registration().post_keys_for_jit_password_registration({org_id:(0,na.WD)(r),org_public_key:l.publicKey,master_password:o,master_password_hint:i,salt:a,organization_sso_identifier:n,user_id:(0,na.WD)(t),reset_password_enroll:s})}catch(d){c.error=d,c.hasError=!0}finally{Ph(c)}}))));if(!("V2"in c.account_cryptographic_state))throw new Error("Unexpected V2 account cryptographic state");yield this.accountCryptographicStateService.setAccountCryptographicState(c.account_cryptographic_state,t),yield this.masterPasswordService.setForceSetPasswordReason(re.n.None,t);const d=Os.k.fromSdk(c.master_password_unlock);yield this.masterPasswordService.setMasterPasswordUnlockData(d,t),yield this.keyService.setUserKey(Mn.e.fromString(c.user_key),t),yield this.updateLegacyState(o,(0,I.E$)(c.master_password_unlock.kdf),new fn.k(c.master_password_unlock.masterKeyWrappedUserKey),t,d)})}setInitialPasswordTdeUserWithPermission(e,t){return Th(this,void 0,void 0,function*(){const i="Could not set initial password for TDE user with Manage Account Recovery permission.";(0,Ee.B)(e.newPassword,"newPassword",i),(0,Ee.B)(e.salt,"salt",i),(0,Se.x)(e.kdfConfig,"kdfConfig",i),(0,Se.x)(e.newPasswordHint,"newPasswordHint",i),(0,Ee.B)(e.orgSsoIdentifier,"orgSsoIdentifier",i),(0,Ee.B)(e.orgId,"orgId",i),(0,Se.x)(e.resetPasswordAutoEnroll,"resetPasswordAutoEnroll",i),(0,Ee.B)(t,"userId",i);const{newPassword:n,salt:r,kdfConfig:s,newPasswordHint:o,orgSsoIdentifier:a,orgId:l,resetPasswordAutoEnroll:c}=e,d=yield(0,u._)(this.keyService.userKey$(t));if(!d)throw new Error("userKey not found.");const h=yield this.masterPasswordService.makeMasterPasswordAuthenticationData(n,s,r),A=yield this.masterPasswordService.makeMasterPasswordUnlockData(n,s,r,d),p=Rh.newConstructor(h,A,o,a,null);yield this.masterPasswordApiService.setPassword(p),yield this.masterPasswordService.setForceSetPasswordReason(re.n.None,t),yield this.masterPasswordService.setMasterPasswordUnlockData(A,t),yield this.updateLegacyState(n,A.kdf,new fn.k(A.masterKeyWrappedUserKey),t,A),c&&(yield this.handleResetPasswordAutoEnroll(h.masterPasswordAuthenticationHash,l,t,d))})}makeMasterKeyEncryptedUserKey(e,t){return Th(this,void 0,void 0,function*(){let i=null;const n=yield(0,u._)(this.keyService.userKey$(t));return i=null==n?yield this.keyService.makeUserKey(e):yield this.keyService.encryptUserKeyWithMasterKey(e,n),i})}updateAccountDecryptionProperties(e,t,i,n){return Th(this,void 0,void 0,function*(){const r=yield(0,u._)(this.userDecryptionOptionsService.userDecryptionOptionsById$(n));r.hasMasterPassword=!0,yield this.userDecryptionOptionsService.setUserDecryptionOptionsById(n,r),yield this.kdfConfigService.setKdfConfig(n,t),yield this.masterPasswordService.setMasterKey(e,n),yield this.masterPasswordService.setMasterKeyEncryptedUserKey(i[1],n),yield this.keyService.setUserKey(i[0],n)})}updateLegacyState(e,t,i,n,r){return Th(this,void 0,void 0,function*(){const s=yield(0,u._)(this.userDecryptionOptionsService.userDecryptionOptionsById$(n));s.hasMasterPassword=!0,yield this.userDecryptionOptionsService.setUserDecryptionOptionsById(n,s),yield this.kdfConfigService.setKdfConfig(n,t),yield this.masterPasswordService.setMasterKeyEncryptedUserKey(i,n),yield this.masterPasswordService.setLegacyMasterKeyFromUnlockData(e,r,n)})}setMasterPasswordUnlockData(e,t,i,n,r){return Th(this,void 0,void 0,function*(){const s=yield this.masterPasswordService.makeMasterPasswordUnlockData(e,i,t,n);yield this.masterPasswordService.setMasterPasswordUnlockData(s,r)})}handleResetPasswordAutoEnrollOld(e,t,i){return Th(this,void 0,void 0,function*(){const n=yield this.organizationApiService.getKeys(t);if(null==n)throw new Error("Organization keys response is null. Could not handle reset password auto enroll.");const r=zt.A.fromB64ToArray(n.publicKey),s=yield(0,u._)(this.keyService.userKey$(i));if(null==s)throw new Error("userKey not found. Could not handle reset password auto enroll.");const o=yield this.encryptService.encapsulateKeyUnsigned(s,r);if(null==o||!o.encryptedString)throw new Error("orgPublicKeyEncryptedUserKey not found. Could not handle reset password auto enroll.");const a=new _.Wt;a.masterPasswordHash=e,a.resetPasswordKey=o.encryptedString,yield this.organizationUserApiService.putOrganizationUserResetPasswordEnrollment(t,i,a)})}handleResetPasswordAutoEnroll(e,t,i,n){return Th(this,void 0,void 0,function*(){const r=yield this.organizationApiService.getKeys(t);if(null==r)throw new Error("Organization keys response is null. Could not handle reset password auto enroll.");const s=zt.A.fromB64ToArray(r.publicKey),o=yield this.encryptService.encapsulateKeyUnsigned(n,s);if(null==o||!o.encryptedString)throw new Error("orgPublicKeyEncryptedUserKey not found. Could not handle reset password auto enroll.");const a=new _.Wt;a.masterPasswordHash=e,a.resetPasswordKey=o.encryptedString,yield this.organizationUserApiService.putOrganizationUserResetPasswordEnrollment(t,i,a)})}}var xh=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Vh{getPremiumInterest(e){return xh(this,void 0,void 0,function*(){return null})}setPremiumInterest(e,t){return xh(this,void 0,void 0,function*(){})}clearPremiumInterest(e){return xh(this,void 0,void 0,function*(){})}}Vh.ɵfac=function(e){return new(e||Vh)},Vh.ɵprov=B.jDH({token:Vh,factory:Vh.ɵfac});var Gh=i(26477),Uh=i(22191),Oh=i(26411),Nh=i(94735),jh=i(57178),Yh=i(36288),Xh=i(86226),zh=i(93199),Lh=i(19934),Wh=i(43759),Kh=i(76356),Zh=i(69896),Hh=i(25740),Jh=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class qh{constructor(){this.dialogRef=(0,B.WQX)(mh.ce),this.formBuilder=(0,B.WQX)(a.ok),this.masterPasswordUnlockService=(0,B.WQX)(ao.b),this.accountService=(0,B.WQX)(N.D),this.toastService=(0,B.WQX)(F.f),this.i18nService=(0,B.WQX)(he.W),this.migrationPasswordForm=this.formBuilder.group({masterPassword:["",[a.k0.required]]}),this.submit=()=>Jh(this,void 0,void 0,function*(){const e=this.migrationPasswordForm.controls.masterPassword;if(!e.value||e.invalid)return;const{userId:t}=yield(0,u._)(this.accountService.activeAccount$.pipe((0,h.p)(e=>null!=e),(0,p.T)(e=>({userId:e.id}))));(yield this.masterPasswordUnlockService.proofOfDecryption(e.value,t))?yield this.dialogRef.close(e.value):this.toastService.showToast({variant:"error",message:this.i18nService.t("incorrectPassword")})})}static open(e){return e.open(qh)}}qh.ɵfac=function(e){return new(e||qh)},qh.ɵcmp=w.VBU({type:qh,selectors:[["ng-component"]],decls:31,vars:33,consts:[["bit-dialog","",3,"bitSubmit","formGroup"],["bitDialogTitle","",1,"tw-font-semibold"],["bitDialogContent",""],["bitLink","","href","https://bitwarden.com/help/kdf-algorithms/","target","_blank","rel","noreferrer","aria-label","external link","endIcon","bwi-external-link"],["bitInput","","type","password","formControlName","masterPassword",1,"tw-font-mono"],["type","button","bitIconButton","","bitSuffix","","bitPasswordInputToggle",""],["bitDialogFooter",""],["type","submit","bitButton","","bitFormButton","","buttonType","primary",3,"disabled"],["type","button","bitButton","","bitFormButton","","buttonType","secondary","bitDialogClose",""]],template:function(e,t){1&e&&(w.j41(0,"form",0)(1,"div",1),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"div",2)(5,"p"),w.EFF(6),w.nI1(7,"i18n"),w.j41(8,"a",3),w.EFF(9),w.nI1(10,"i18n"),w.k0s()(),w.j41(11,"bit-form-field")(12,"bit-label"),w.EFF(13),w.nI1(14,"i18n"),w.k0s(),w.j41(15,"bit-hint"),w.EFF(16),w.nI1(17,"i18n"),w.k0s(),w.nrm(18,"input",4),w.nI1(19,"i18n"),w.nrm(20,"button",5),w.nI1(21,"i18n"),w.nI1(22,"i18n"),w.k0s()(),w.qex(23,6),w.j41(24,"button",7)(25,"span"),w.EFF(26),w.nI1(27,"i18n"),w.k0s()(),w.j41(28,"button",8),w.EFF(29),w.nI1(30,"i18n"),w.k0s(),w.bVm(),w.k0s()),2&e&&(w.Y8G("bitSubmit",t.submit)("formGroup",t.migrationPasswordForm),w.R7$(2),w.SpI(" ",w.bMT(3,13,"updateEncryptionSettingsTitle")," "),w.R7$(4),w.SpI(" ",w.bMT(7,15,"updateEncryptionSettingsDesc")," "),w.R7$(3),w.SpI(" ",w.bMT(10,17,"learnMore")," "),w.R7$(4),w.JRh(w.bMT(14,19,"masterPass")),w.R7$(3),w.JRh(w.bMT(17,21,"confirmIdentityToContinue")),w.R7$(2),w.BMQ("title",w.bMT(19,23,"masterPass")),w.R7$(2),w.BMQ("title",w.bMT(21,25,"toggleVisibility"))("aria-label",w.bMT(22,27,"toggleVisibility")),w.R7$(4),w.Y8G("disabled",t.migrationPasswordForm.invalid),w.R7$(2),w.JRh(w.bMT(27,29,"updateSettings")),w.R7$(3),w.SpI(" ",w.bMT(30,31,"later")," "))},dependencies:[ph.P,yh.I,bh.m,Ch.hJ,Gh.V,jh.g,L.MD,Nh.p,Ah.t,fh.Q,Uh.Q,Yh.s,a.X1,a.qT,a.me,a.BC,a.cb,a.j4,a.JD,vh.C,Ih.$,wh.L,Oh.L,Xh.j,zh.I,Lh.J,Wh.h,Kh.e,Zh.a,Hh.$],encapsulation:2,changeDetection:0});var $h=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const _h=new C.Ok(C.K8,"encryptedMigrationDismissed",{deserializer:e=>null!=e?new Date(e):null,clearOn:[]}),eA=["/new-vault","/vault","/tabs/vault","/tabs/current"];class tA{}class iA extends B.zcH{constructor(){super(...arguments),this.injector=(0,B.WQX)(B.zZn)}handleError(e){try{this.injector.get(se.K,null).error("Unhandled error in angular",e)}catch(t){super.handleError(e)}}}iA.ɵfac=(()=>{let e;return function(t){return(e||(e=w.xGo(iA)))(t||iA)}})(),iA.ɵprov=B.jDH({token:iA,factory:iA.ɵfac});var nA=i(82129);class rA{static createSystemThemeFromWindow(e){return(0,Su.h)((0,ln.of)(rA.getSystemThemeFromWindow(e)),(0,nA.R)(e.matchMedia("(prefers-color-scheme: dark)"),"change").pipe((0,p.T)(e=>e.matches?Pn.NJ.Dark:Pn.NJ.Light)))}static getSystemThemeFromWindow(e){return e.matchMedia("(prefers-color-scheme: dark)").matches?Pn.NJ.Dark:Pn.NJ.Light}constructor(e,t){this.themeStateService=e,this.systemTheme$=t,this.theme$=this.themeStateService.selectedTheme$.pipe((0,jt.n)(e=>e===Pn.NJ.System?this.systemTheme$:(0,ln.of)(e)))}applyThemeChangesTo(e){return this.theme$.subscribe(t=>{e.documentElement.classList.remove("theme_"+Pn.NJ.Light,"theme_"+Pn.NJ.Dark),e.documentElement.classList.add("theme_"+t)})}}rA.ɵfac=function(e){return new(e||rA)(B.KVO(Sc.oO),B.KVO(Oe.eL))},rA.ɵprov=B.jDH({token:rA,factory:rA.ɵfac});class sA{}var oA=i(47836);class aA{signal(e){return(0,B.vPA)(e.initialValue)}formGroup(e){return e.control}}aA.ɵfac=function(e){return new(e||aA)},aA.ɵprov=B.jDH({token:aA,factory:aA.ɵfac,providedIn:"root"});var lA=i(36219),cA=i(57042);class dA{constructor(){this._onCreated=new d.B,this._onClose=new d.B,this._onClosed=new d.B,this._onShow=new d.B,this._onShown=new d.B,this.onCreated=this._onCreated.asObservable(),this.onClose=this._onClose.asObservable(),this.onClosed=this._onClosed.asObservable(),this.onShow=this._onShow.asObservable(),this.onShown=this._onShow.asObservable()}show(){this._onShow.next()}shown(){this._onShown.next()}close(e){this.lastResult=e,this._onClose.next(e)}closed(){this._onClosed.next(this.lastResult)}created(e){this._onCreated.next(e)}onClosedPromise(){return this.onClosed.pipe((0,lA.$)()).toPromise()}}const uA=["modalContent"];function hA(e,t){}class AA{constructor(e,t,i,n){this.cd=e,this.el=t,this.focusTrapFactory=i,this.modalRef=n}ngAfterViewInit(){this.loadChildComponent(this.childComponentType),null!=this.setComponentParameters&&this.setComponentParameters(this.componentRef.instance),this.cd.detectChanges(),this.modalRef.created(this.el.nativeElement),this.focusTrap=this.focusTrapFactory.create(this.el.nativeElement.querySelector(".modal-dialog")),null==this.el.nativeElement.querySelector("[appAutoFocus]")&&this.focusTrap.focusFirstTabbableElementWhenReady()}loadChildComponent(e){this.modalContentRef.clear(),this.componentRef=this.modalContentRef.createComponent(e)}ngOnDestroy(){this.componentRef&&this.componentRef.destroy(),this.focusTrap.destroy()}close(){this.modalRef.close()}getFocus(){const e=this.el.nativeElement.querySelector("[appAutoFocus]");null==e||e.focus()}}AA.ɵfac=function(e){return new(e||AA)(w.rXU(r.gRc),w.rXU(w.aKT),w.rXU(cA.Fp),w.rXU(dA))},AA.ɵcmp=w.VBU({type:AA,selectors:[["app-modal"]],viewQuery:function(e,t){if(1&e&&w.GBs(uA,7,w.c1b),2&e){let e;w.mGM(e=w.lsd())&&(t.modalContentRef=e.first)}},standalone:!1,decls:2,vars:0,consts:[["modalContent",""]],template:function(e,t){1&e&&w.DNE(0,hA,0,0,"ng-template",null,0,w.C5r)},encapsulation:2});class pA{constructor(e,t){this._parentInjector=e,this._additionalTokens=t}get(e,t,i){var n;return null!==(n=this._additionalTokens.get(e))&&void 0!==n?n:this._parentInjector.get(e,t)}}var gA=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class vA{constructor(e){this.injector=e,this.modalList=[],document.addEventListener("keyup",e=>{"Escape"===e.key&&this.modalCount>0&&this.topModal.instance.close()})}get modalCount(){return this.modalList.length}get topModal(){return this.modalList[this.modalCount-1]}openViewRef(e,t){return gA(this,arguments,void 0,function*(e,t,i=null){const[n,r]=this.openInternal(t,e);return r.instance.setComponentParameters=i,t.insert(r.hostView),yield n.onCreated.pipe((0,lA.$)()).toPromise(),[n,r.instance.componentRef.instance]})}closeAll(){this.modalList.forEach(e=>e.instance.close())}openInternal(e,t){const[i,n]=this.createModalComponent(e);return n.instance.childComponentType=t,i.onClosed.pipe((0,lA.$)()).subscribe(()=>{n.destroy(),this.modalList.pop(),this.modalCount>0&&this.topModal.instance.getFocus()}),this.setupHandlers(i),this.modalList.push(n),[i,n]}setupHandlers(e){let t=null;e.onCreated.pipe((0,lA.$)()).subscribe(i=>{document.body.classList.add("modal-open");const n=i.querySelector(".modal"),r=n.querySelector(".modal-dialog");t=document.createElement("div"),t.className="modal-backdrop fade",t.style.zIndex=`${this.modalCount}040`,n.prepend(t),r.addEventListener("click",e=>{e.stopPropagation()}),r.style.zIndex=`${this.modalCount}050`;const s=Array.from(i.querySelectorAll('.modal-backdrop, .modal *[data-dismiss="modal"]'));for(const t of s)t.addEventListener("click",()=>{e.close()})}),e.onClose.pipe((0,lA.$)()).subscribe(()=>{e.closed(),0===this.modalCount&&document.body.classList.remove("modal-open")})}createModalComponent(e){const t=new dA,i=new WeakMap;i.set(dA,t);const n=new pA(this.injector,i);return[t,e.createComponent(AA,{injector:n})]}}vA.ɵfac=function(e){return new(e||vA)(B.KVO(B.zZn))},vA.ɵprov=B.jDH({token:vA,factory:vA.ɵfac});var mA=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const fA=[(0,Ue.F)(vA),(0,Ue.F)(dh.qX),(0,Ue.F)({provide:Oe.jf,useValue:window}),(0,Ue.F)({provide:Oe.qQ,useValue:document}),(0,Ue.F)({provide:w.xe9,useFactory:e=>e.translationLocale,deps:[he.W]}),(0,Ue.F)({provide:Oe.Vc,useFactory:e=>e.supportsSecureStorage(),deps:[G.y]}),(0,Ue.F)({provide:Oe.U1,useValue:"./locales"}),(0,Ue.F)({provide:Oe.Xk,useFactory:e=>e.navigator.language,deps:[Oe.jf]}),(0,Ue.F)({provide:Oe.dZ,useFactory:e=>(t,i)=>mA(void 0,void 0,void 0,function*(){return Promise.resolve(e.send("logout",{logoutReason:t,userId:i}))}),deps:[oe.U]}),(0,Ue.F)({provide:Oe.Pn,useValue:!0}),(0,Ue.F)({provide:Oe.eL,useFactory:e=>rA.createSystemThemeFromWindow(e),deps:[Oe.jf]}),(0,Ue.F)({provide:Sc.oO,useClass:Sc.T2,deps:[b.Y2]}),(0,Ue.F)({provide:sA,useClass:rA,deps:[Sc.oO,Oe.eL]}),(0,Ue.F)({provide:qo.Y,useClass:ka,deps:[Oe.ml,se.K]}),(0,Ue.F)({provide:Ye.d,useClass:class{constructor(e,t,i,n=100){this.cryptoFunctionService=e,this.apiService=t,this.hibpApiService=i,this.maxConcurrent=n,this.passwordLeakedSubject=new d.B,this.maxConcurrent=n,this.passwordLeakedSubject.pipe((0,ya.Z)(e=>sd(this,void 0,void 0,function*(){try{const t=yield this.fetchLeakedPasswordCount(e.password);e.resolve(t)}catch(t){e.reject(t)}}),this.maxConcurrent)).subscribe()}passwordLeaked(e){return sd(this,void 0,void 0,function*(){return new Promise((t,i)=>{this.passwordLeakedSubject.next({password:e,resolve:t,reject:i})})})}fetchLeakedPasswordCount(e){return sd(this,void 0,void 0,function*(){const t=yield this.cryptoFunctionService.hash(e,"sha1"),i=zt.A.fromArrayToHex(t).toUpperCase(),n=i.substr(0,5),r=i.substr(5),s=new Request("https://api.pwnedpasswords.com/range/"+n,{headers:{"Add-Padding":"true"}}),o=yield this.apiService.nativeFetch(s),a=(yield o.text()).split(/\r?\n/).find(e=>e.split(":")[0]===r);return null!=a?parseInt(a.split(":")[1],10):0})}breachedAccounts(e){return sd(this,void 0,void 0,function*(){return this.hibpApiService.getHibpBreach(e)})}},deps:[hs.R,je.G,as]}),(0,Ue.F)({provide:as,useClass:as,deps:[je.G]}),(0,Ue.F)({provide:ts.A,useClass:ts.A,deps:[je.G]}),(0,Ue.F)({provide:k.u,useClass:class{constructor(e,t,i,n,r,s){this.accountService=e,this.messageSender=t,this.keyService=i,this.apiService=n,this.stateService=r,this.tokenService=s,this.authStatusFor$=(0,cn.j)(e=>zt.A.isGuid(e)?(0,xt.z)([this.keyService.getInMemoryUserKeyFor$(e),this.tokenService.hasAccessToken$(e)]).pipe((0,p.T)(([e,t])=>t?e?m.J.Unlocked:m.J.Locked:m.J.LoggedOut),(0,$i.F)()):(0,ln.of)(m.J.LoggedOut)),this.activeAccountStatus$=this.accountService.activeAccount$.pipe((0,p.T)(e=>null==e?void 0:e.id),(0,jt.n)(e=>this.authStatusFor$(e))),this.authStatuses$=this.accountService.accounts$.pipe((0,p.T)(e=>Object.keys(e)),(0,jt.n)(e=>0===e.length?(0,ln.of)([]):(0,xt.z)(e.map(e=>this.authStatusFor$(e).pipe((0,p.T)(t=>({userId:e,status:t})))))),(0,p.T)(e=>e.reduce((e,{userId:t,status:i})=>(e[t]=i,e),{})))}getAuthStatus(e){return dn(this,void 0,void 0,function*(){return null!=e||(e=yield(0,u._)(this.accountService.activeAccount$.pipe((0,p.T)(e=>null==e?void 0:e.id)))),yield(0,u._)(this.authStatusFor$(e))})}logOut(e,t){e(),this.messageSender.send("loggedOut",{userId:t})}},deps:[N.D,oe.U,I.Lu,je.G,b.dw,z.B]}),(0,Ue.F)({provide:Vs,useClass:class{constructor(e,t,i,n,r,s,o,a,l,c,d,u,h){this.logService=i,this.syncService=s,this.migrations=[],this.isRunningMigration=!1,this.migrations.push({name:"Minimum PBKDF2 Iteration Count Migration",migration:new Ds(e,t,i,n,r,s)}),c.getClientType()===Yt.sK.Desktop&&this.migrations.push({name:"Biometric V2 Encryption Migration",migration:new Fs(o,a,l,i)}),c.getClientType()!==Yt.sK.Cli&&this.migrations.push({name:"V2 User Key Rotation Migration",migration:new Ms(o,d,r,s,n,i,u,h)})}runMigrations(e,t){return xs(this,void 0,void 0,function*(){(0,Se.x)(e,"userId");const i=yield this.needsMigrations(e);if("noMigrationNeeded"!==i&&("needsMigrationWithMasterPassword"!==i||null!=t))try{if(this.isRunningMigration)return;this.isRunningMigration=!0,this.logService.mark("[Encrypted Migrator] Start"),this.logService.info(`[Encrypted Migrator] Starting migrations for user: ${e}`);let i=!1;for(const{name:n,migration:r}of this.migrations)if("noMigrationNeeded"!==(yield r.needsMigration(e))){this.logService.info(`[Encrypted Migrator] Running migration: ${n}`);const s=performance.now();yield r.runMigrations(e,t),this.logService.measure(s,"[Encrypted Migrator]",n,"ExecutionTime"),i=!0}this.logService.mark("[Encrypted Migrator] Finish"),this.logService.info(`[Encrypted Migrator] Completed migrations for user: ${e}`),i&&(yield this.syncService.fullSync(!0))}catch(n){throw this.logService.error(`[Encrypted Migrator] Error running migrations for user: ${e}`,n),n}finally{this.isRunningMigration=!1}})}needsMigrations(e){return xs(this,void 0,void 0,function*(){(0,Se.x)(e,"userId");const t=yield Promise.all(this.migrations.map(t=>xs(this,[t],void 0,function*({migration:t}){return t.needsMigration(e)})));return t.includes("needsMigrationWithMasterPassword")?"needsMigrationWithMasterPassword":t.includes("needsMigration")?"needsMigration":"noMigrationNeeded"})}isRunningMigrations(){return this.isRunningMigration}},deps:[I.zZ,zs,se.K,O.w,Ae.L,mc.H,I.Lu,I.Zm,I.vB,G.y,lh,Q.p,na.K5]}),(0,Ue.F)({provide:g.kA,useClass:g.ve,deps:[b.Y2]}),(0,Ue.F)({provide:g.T2,useClass:g.WY,deps:[is.Cc,g.kA,se.K,ca.D$,ca.qk]}),(0,Ue.F)({provide:g.sg,useClass:g.CL,deps:[N.D,Ae.O,I.Lu,je.G,z.B,qo.Y,G.y,oe.U,se.K,Ws.K,yo.v,b.dw,ar.fz,he.W,As.N,od.Q,Je.m,Is.M,g.XF,g.bj,b.Y2,gr.Q,Dn.ep,I.zZ,O.w,ls.h,Ii.Ld,ih,g.kA,g.T2]}),(0,Ue.F)({provide:ea,useClass:class{constructor(e,t,i){this.logService=e,this.azureFileUploadService=new il(e,t,i),this.bitwardenFileUploadService=new sl}upload(e,t,i,n,r){return ol(this,void 0,void 0,function*(){try{switch(e.fileUploadType){case Pn.K9.Direct:yield this.bitwardenFileUploadService.upload(t.encryptedString,i,e=>n.postDirect(e));break;case Pn.K9.Azure:yield this.azureFileUploadService.upload(e.url,i,n.renewFileUploadUrl,r);break;default:throw new Error("Unknown file upload type")}}catch(s){throw yield n.rollback(),s}})}},deps:[se.K,je.G,O.w]}),(0,Ue.F)({provide:Pd,useClass:class{constructor(e,t,i,n){this.apiService=e,this.fileUploadService=t,this.configService=i,this.cipherSdkService=n}upload(e,t,i,n,r,s,o){return Iu(this,void 0,void 0,function*(){const a={key:r[1].encryptedString,fileName:t.encryptedString,fileSize:i.buffer.byteLength,adminRequest:n,lastKnownRevisionDate:e.revisionDate},l=(yield this.configService.getFeatureFlag(Kr.TO.PM34410AttachmentUploadProgress))?o:void 0;let c;try{const r=yield this.apiService.postCipherAttachment(e.id,a);c=n?r.cipherMiniResponse:r.cipherResponse,yield this.fileUploadService.upload(r,t,i,this.generateMethods(r,c,a.adminRequest,s,l),l)}catch(d){throw d instanceof Xt._?new Error(d.getSingleMessage()):d}return c})}uploadPrepared(e,t,i,n,r,s,o,a,l){return Iu(this,void 0,void 0,function*(){const c=(yield this.configService.getFeatureFlag(Kr.TO.PM34410AttachmentUploadProgress))?l:void 0;try{yield this.fileUploadService.upload({url:i,fileUploadType:n},r,s,{postDirect:i=>this.apiService.postAttachmentFile(e,t,i,c),renewFileUploadUrl:()=>Iu(this,void 0,void 0,function*(){return yield this.cipherSdkService.renewAttachmentUploadUrl(e,t,o)}),rollback:()=>Iu(this,void 0,void 0,function*(){yield this.cipherSdkService.deleteAttachmentWithServer(e,t,o,a)})},c)}catch(d){throw d instanceof Xt._?new Error(d.getSingleMessage()):d}})}generateMethods(e,t,i,n,r){return{postDirect:this.generatePostDirectCallback(e,i,r),renewFileUploadUrl:this.generateRenewFileUploadUrlCallback(e,t),rollback:this.generateRollbackCallback(t,e,i,n)}}generatePostDirectCallback(e,t,i){return n=>{const r=t?e.cipherMiniResponse:e.cipherResponse;return this.apiService.postAttachmentFile(r.id,e.attachmentId,n,i)}}generateRenewFileUploadUrlCallback(e,t){return()=>Iu(this,void 0,void 0,function*(){const i=yield this.apiService.renewAttachmentUploadUrl(t.id,e.attachmentId);return null==i?void 0:i.url})}generateRollbackCallback(e,t,i,n){return()=>Iu(this,void 0,void 0,function*(){(yield this.configService.getFeatureFlag(Kr.TO.PM28192_CipherAttachmentOpsToSdk))?yield this.cipherSdkService.deleteAttachmentWithServer(e.id,t.attachmentId,n,i):i?yield this.apiService.deleteCipherAttachmentAdmin(e.id,t.attachmentId):yield this.apiService.deleteCipherAttachment(e.id,t.attachmentId)})}},deps:[je.G,ea,O.w,Dd.F]}),(0,Ue.F)({provide:ur.V,useClass:ur.G,deps:[b.v2,Je.m,N.D,O.w,yo.v,k.u]}),(0,Ue.F)({provide:Dd.F,useClass:class{constructor(e,t){this.sdkService=e,this.logService=t}createWithServer(e,t,i){return Yd(this,void 0,void 0,function*(){return yield(0,u._)(this.sdkService.userClient$(t).pipe((0,jt.n)(t=>Yd(this,void 0,void 0,function*(){const n={stack:[],error:void 0,hasError:!1};try{const r=Xd(n,t.take(),!1).value.vault().ciphers(),s=e.toSdkCreateCipherRequest(r);let o;return o=i?yield r.admin().create(s):yield r.create(s),Jr.f.fromSdkCipherView(o,r)}catch(r){n.error=r,n.hasError=!0}finally{zd(n)}})),(0,Wr.W)(e=>{throw this.logService.error(`Failed to create cipher: ${e}`),e})))})}updateWithServer(e,t,i,n){return Yd(this,void 0,void 0,function*(){return yield(0,u._)(this.sdkService.userClient$(t).pipe((0,jt.n)(t=>Yd(this,void 0,void 0,function*(){const r={stack:[],error:void 0,hasError:!1};try{const s=Xd(r,t.take(),!1).value.vault().ciphers(),o=e.toSdkUpdateCipherRequest(s);let a;if(n)a=yield s.admin().edit(o,(null==i?void 0:i.toSdkCipherView(s))||(new Jr.f).toSdkCipherView(s));else if(e.edit)a=yield s.edit(o);else{const t=e.toSdkPartialUpdateCipherRequest();a=yield s.edit_partial(t)}return Jr.f.fromSdkCipherView(a,s)}catch(s){r.error=s,r.hasError=!0}finally{zd(r)}})),(0,Wr.W)(e=>{throw this.logService.error(`Failed to update cipher: ${e}`),e})))})}deleteWithServer(e,t){return Yd(this,arguments,void 0,function*(e,t,i=!1){return yield(0,u._)(this.sdkService.userClient$(t).pipe((0,jt.n)(t=>Yd(this,void 0,void 0,function*(){const n={stack:[],error:void 0,hasError:!1};try{const r=Xd(n,t.take(),!1);i?yield r.value.vault().ciphers().admin().delete((0,na.WD)(e)):yield r.value.vault().ciphers().delete((0,na.WD)(e))}catch(r){n.error=r,n.hasError=!0}finally{zd(n)}})),(0,Wr.W)(e=>{throw this.logService.error(`Failed to delete cipher: ${e}`),e})))})}deleteManyWithServer(e,t){return Yd(this,arguments,void 0,function*(e,t,i=!1,n){return yield(0,u._)(this.sdkService.userClient$(t).pipe((0,jt.n)(t=>Yd(this,void 0,void 0,function*(){const r={stack:[],error:void 0,hasError:!1};try{const s=Xd(r,t.take(),!1);if(i){if(null==n)throw new Error("Organization ID is required for admin delete.");yield s.value.vault().ciphers().admin().delete_many(e.map(e=>(0,na.WD)(e)),(0,na.WD)(n))}else yield s.value.vault().ciphers().delete_many(e.map(e=>(0,na.WD)(e)))}catch(s){r.error=s,r.hasError=!0}finally{zd(r)}})),(0,Wr.W)(e=>{throw this.logService.error(`Failed to delete multiple ciphers: ${e}`),e})))})}softDeleteWithServer(e,t){return Yd(this,arguments,void 0,function*(e,t,i=!1){return yield(0,u._)(this.sdkService.userClient$(t).pipe((0,jt.n)(t=>Yd(this,void 0,void 0,function*(){const n={stack:[],error:void 0,hasError:!1};try{const r=Xd(n,t.take(),!1);i?yield r.value.vault().ciphers().admin().soft_delete((0,na.WD)(e)):yield r.value.vault().ciphers().soft_delete((0,na.WD)(e))}catch(r){n.error=r,n.hasError=!0}finally{zd(n)}})),(0,Wr.W)(e=>{throw this.logService.error(`Failed to soft delete cipher: ${e}`),e})))})}softDeleteManyWithServer(e,t){return Yd(this,arguments,void 0,function*(e,t,i=!1,n){return yield(0,u._)(this.sdkService.userClient$(t).pipe((0,jt.n)(t=>Yd(this,void 0,void 0,function*(){const r={stack:[],error:void 0,hasError:!1};try{const s=Xd(r,t.take(),!1);if(i){if(null==n)throw new Error("Organization ID is required for admin soft delete.");yield s.value.vault().ciphers().admin().soft_delete_many(e.map(e=>(0,na.WD)(e)),(0,na.WD)(n))}else yield s.value.vault().ciphers().soft_delete_many(e.map(e=>(0,na.WD)(e)))}catch(s){r.error=s,r.hasError=!0}finally{zd(r)}})),(0,Wr.W)(e=>{throw this.logService.error(`Failed to soft delete multiple ciphers: ${e}`),e})))})}restoreWithServer(e,t){return Yd(this,arguments,void 0,function*(e,t,i=!1){return yield(0,u._)(this.sdkService.userClient$(t).pipe((0,jt.n)(t=>Yd(this,void 0,void 0,function*(){const n={stack:[],error:void 0,hasError:!1};try{const r=Xd(n,t.take(),!1);i?yield r.value.vault().ciphers().admin().restore((0,na.WD)(e)):yield r.value.vault().ciphers().restore((0,na.WD)(e))}catch(r){n.error=r,n.hasError=!0}finally{zd(n)}})),(0,Wr.W)(e=>{throw this.logService.error(`Failed to restore cipher: ${e}`),e})))})}restoreManyWithServer(e,t,i){return Yd(this,void 0,void 0,function*(){return yield(0,u._)(this.sdkService.userClient$(t).pipe((0,jt.n)(t=>Yd(this,void 0,void 0,function*(){const n={stack:[],error:void 0,hasError:!1};try{const r=Xd(n,t.take(),!1);i?yield r.value.vault().ciphers().admin().restore_many(e.map(e=>(0,na.WD)(e)),(0,na.WD)(i)):yield r.value.vault().ciphers().restore_many(e.map(e=>(0,na.WD)(e)))}catch(r){n.error=r,n.hasError=!0}finally{zd(n)}})),(0,Wr.W)(e=>{throw this.logService.error(`Failed to restore multiple ciphers: ${e}`),e})))})}shareWithServer(e,t,i,n,r){return Yd(this,void 0,void 0,function*(){return yield(0,u._)(this.sdkService.userClient$(n).pipe((0,jt.n)(n=>Yd(this,void 0,void 0,function*(){const s={stack:[],error:void 0,hasError:!1};try{const o=Xd(s,n.take(),!1).value.vault().ciphers(),a=e.toSdkCipherView(o),l=yield o.share_cipher(a,(0,na.WD)(t),i.map(e=>(0,na.WD)(e)),null==r?void 0:r.toSdkCipherView(o));return Jr.f.fromSdkCipherView(l,o)}catch(o){s.error=o,s.hasError=!0}finally{zd(s)}})),(0,Wr.W)(e=>{throw this.logService.error(`Failed to share cipher: ${e}`),e})))})}shareManyWithServer(e,t,i,n){return Yd(this,void 0,void 0,function*(){return yield(0,u._)(this.sdkService.userClient$(n).pipe((0,jt.n)(n=>Yd(this,void 0,void 0,function*(){const r={stack:[],error:void 0,hasError:!1};try{const s=Xd(r,n.take(),!1).value.vault().ciphers(),o=e.map(e=>e.toSdkCipherView(s)),a=yield s.share_ciphers_bulk(o,(0,na.WD)(t),i.map(e=>(0,na.WD)(e)));return a.map(e=>Jr.f.fromSdkCipherView(e,s)).filter(e=>void 0!==e)}catch(s){r.error=s,r.hasError=!0}finally{zd(r)}})),(0,Wr.W)(e=>{throw this.logService.error(`Failed to share multiple ciphers: ${e}`),e})))})}deleteAttachmentWithServer(e,t,i){return Yd(this,arguments,void 0,function*(e,t,i,n=!1){return yield(0,u._)(this.sdkService.userClient$(i).pipe((0,jt.n)(i=>Yd(this,void 0,void 0,function*(){const r={stack:[],error:void 0,hasError:!1};try{const s=Xd(r,i.take(),!1),o=n?yield s.value.vault().attachments().admin().delete_attachment((0,na.WD)(e),t):yield s.value.vault().attachments().delete_attachment((0,na.WD)(e),t);return rc.o.fromSdkCipher(o)}catch(s){r.error=s,r.hasError=!0}finally{zd(r)}})),(0,Wr.W)(e=>{throw this.logService.error(`Failed to delete cipher attachment: ${e}`),e})))})}getAttachmentDownloadUrl(e,t,i,n){return Yd(this,void 0,void 0,function*(){if((null==n?void 0:n.asAdmin)&&(null==n?void 0:n.emergencyAccessId))throw new Error("asAdmin and emergencyAccessId are mutually exclusive");return yield(0,u._)(this.sdkService.userClient$(i).pipe((0,jt.n)(i=>Yd(this,void 0,void 0,function*(){const r={stack:[],error:void 0,hasError:!1};try{const s=Xd(r,i.take(),!1).value.vault().attachments();return(null==n?void 0:n.asAdmin)?yield s.admin().get_attachment_download_url((0,na.WD)(e),t):yield s.get_attachment_download_url((0,na.WD)(e),t,null==n?void 0:n.emergencyAccessId)}catch(s){r.error=s,r.hasError=!0}finally{zd(r)}})),(0,Wr.W)(e=>{throw this.logService.error(`Failed to get attachment download URL: ${e}`),e})))})}createAttachment(e,t,i){return Yd(this,void 0,void 0,function*(){return yield(0,u._)(this.sdkService.userClient$(i).pipe((0,jt.n)(i=>Yd(this,void 0,void 0,function*(){const n={stack:[],error:void 0,hasError:!1};try{const r=Xd(n,i.take(),!1);return yield r.value.vault().attachments().create_attachment((0,na.WD)(e),t)}catch(r){n.error=r,n.hasError=!0}finally{zd(n)}})),(0,Wr.W)(e=>{throw this.logService.error(`Failed to create attachment: ${e}`),e})))})}renewAttachmentUploadUrl(e,t,i){return Yd(this,void 0,void 0,function*(){return yield(0,u._)(this.sdkService.userClient$(i).pipe((0,jt.n)(i=>Yd(this,void 0,void 0,function*(){const n={stack:[],error:void 0,hasError:!1};try{const r=Xd(n,i.take(),!1);return yield r.value.vault().attachments().renew_file_upload_url((0,na.WD)(e),t)}catch(r){n.error=r,n.hasError=!0}finally{zd(n)}})),(0,Wr.W)(e=>{throw this.logService.error(`Failed to renew attachment upload URL: ${e}`),e})))})}upgradeAttachment(e,t,i){return Yd(this,void 0,void 0,function*(){return yield(0,u._)(this.sdkService.userClient$(i).pipe((0,jt.n)(i=>Yd(this,void 0,void 0,function*(){const n={stack:[],error:void 0,hasError:!1};try{const r=Xd(n,i.take(),!1),s=r.value.vault().ciphers(),o=yield r.value.vault().attachments().upgrade_attachment((0,na.WD)(e),t);return Jr.f.fromSdkCipherView(o,s)}catch(r){n.error=r,n.hasError=!0}finally{zd(n)}})),(0,Wr.W)(e=>{throw this.logService.error(`Failed to upgrade attachment: ${e}`),e})))})}getAllDecrypted(e){return Yd(this,void 0,void 0,function*(){return yield(0,u._)(this.sdkService.userClient$(e).pipe((0,jt.n)(e=>Yd(this,void 0,void 0,function*(){var t,i;const n={stack:[],error:void 0,hasError:!1};try{const r=Xd(n,e.take(),!1).value.vault().ciphers(),s=yield r.get_all(),o=[...null!==(t=s.successes)&&void 0!==t?t:[]].map(e=>Jr.f.fromSdkCipherView(e,r)).filter(e=>void 0!==e);return{successes:o,failures:[...null!==(i=s.failures)&&void 0!==i?i:[]].map(e=>{const t=new Jr.f(rc.o.fromSdkCipher(e));return t.name=fn.h,t.decryptionFailure=!0,t})}}catch(r){n.error=r,n.hasError=!0}finally{zd(n)}})),(0,Wr.W)(e=>{throw this.logService.error(`Failed to list and decrypt ciphers: ${e}`),e})))})}getAllFromApiForOrganization(e,t,i){return Yd(this,void 0,void 0,function*(){return yield(0,u._)(this.sdkService.userClient$(t).pipe((0,jt.n)(t=>Yd(this,void 0,void 0,function*(){const n={stack:[],error:void 0,hasError:!1};try{const r=Xd(n,t.take(),!1),s=yield r.value.vault().ciphers().admin().list_org_ciphers((0,na.WD)(e),i);return[s.ciphers.map(e=>rc.o.fromSdkCipher(e)).filter(e=>void 0!==e),s.listViews]}catch(r){n.error=r,n.hasError=!0}finally{zd(n)}})),(0,Wr.W)(e=>{throw this.logService.error(`Failed to list organization ciphers: ${e}`),e})))})}getManyFromApiForOrganization(e,t){return Yd(this,void 0,void 0,function*(){return yield(0,u._)(this.sdkService.userClient$(t).pipe((0,jt.n)(t=>Yd(this,void 0,void 0,function*(){const i={stack:[],error:void 0,hasError:!1};try{const n=Xd(i,t.take(),!1),r=yield n.value.vault().ciphers().admin().list_assigned_org_ciphers((0,na.WD)(e));return[r.ciphers.map(e=>rc.o.fromSdkCipher(e)).filter(e=>void 0!==e),r.listViews]}catch(n){i.error=n,i.hasError=!0}finally{zd(i)}})),(0,Wr.W)(e=>{throw this.logService.error(`Failed to list assigned organization ciphers: ${e}`),e})))})}bulkUpdateCollectionsWithServer(e,t,i,n,r){return Yd(this,void 0,void 0,function*(){return yield(0,u._)(this.sdkService.userClient$(t).pipe((0,jt.n)(t=>Yd(this,void 0,void 0,function*(){const s={stack:[],error:void 0,hasError:!1};try{const o=Xd(s,t.take(),!1);yield o.value.vault().ciphers().bulk_update_collections((0,na.WD)(e),i.map(e=>(0,na.WD)(e)),n.map(e=>(0,na.WD)(e)),r)}catch(o){s.error=o,s.hasError=!0}finally{zd(s)}})),(0,Wr.W)(e=>{throw this.logService.error(`Failed to bulk update cipher collections: ${e}`),e})))})}moveManyWithServer(e,t,i){return Yd(this,void 0,void 0,function*(){return yield(0,u._)(this.sdkService.userClient$(i).pipe((0,jt.n)(i=>Yd(this,void 0,void 0,function*(){const n={stack:[],error:void 0,hasError:!1};try{const r=Xd(n,i.take(),!1);yield r.value.vault().ciphers().move_many(e.map(e=>(0,na.WD)(e)),null==t?void 0:(0,na.WD)(t))}catch(r){n.error=r,n.hasError=!0}finally{zd(n)}})),(0,Wr.W)(e=>{throw this.logService.error(`Failed to move multiple ciphers: ${e}`),e})))})}saveCollectionsWithServerAdmin(e,t,i){return Yd(this,void 0,void 0,function*(){return yield(0,u._)(this.sdkService.userClient$(i).pipe((0,jt.n)(i=>Yd(this,void 0,void 0,function*(){const n={stack:[],error:void 0,hasError:!1};try{const r=Xd(n,i.take(),!1).value.vault().ciphers(),s=yield r.admin().update_collection((0,na.WD)(e),t.map(e=>(0,na.WD)(e)));return Jr.f.fromSdkCipherView(s,r)}catch(r){n.error=r,n.hasError=!0}finally{zd(n)}})),(0,Wr.W)(e=>{throw this.logService.error(`Failed to update cipher collections as admin: ${e}`),e})))})}saveCollectionsWithServer(e,t,i){return Yd(this,void 0,void 0,function*(){return yield(0,u._)(this.sdkService.userClient$(i).pipe((0,jt.n)(i=>Yd(this,void 0,void 0,function*(){const n={stack:[],error:void 0,hasError:!1};try{const r=Xd(n,i.take(),!1).value.vault().ciphers(),s=yield r.update_collection((0,na.WD)(e),t.map(e=>(0,na.WD)(e)),!1);return Jr.f.fromSdkCipherView(s,r)}catch(r){n.error=r,n.hasError=!0}finally{zd(n)}})),(0,Wr.W)(e=>{throw this.logService.error(`Failed to update cipher collections: ${e}`),e})))})}},deps:[na.K5,se.K]}),(0,Ue.F)({provide:lh,useClass:class{constructor(e,t,i){this.sdkService=e,this.logService=t,this.userCryptoDialogService=i}changePasswordAndRotateUserKey(e,t,i,n){return ah(this,void 0,void 0,function*(){const{wasTrustDenied:r,trustedOrganizationPublicKeys:s,trustedEmergencyAccessUserPublicKeys:o}=yield this.verifyTrust(n);return r?(this.logService.info("[Userkey rotation] Trust was denied by user. Aborting!"),!1):yield Te(n,this.sdkService,n=>ah(this,void 0,void 0,function*(){this.logService.info("[UserKey Rotation] Re-encrypting user data with new user key...");try{return yield n.user_crypto_management().password_change_and_rotate_user_keys({old_password:e,password:t,hint:i,trusted_emergency_access_public_keys:o,trusted_organization_public_keys:s}),!0}catch(r){return this.logService.error(`Failed to rotate user keys: ${r}`),!1}}))})}rotateUserKey(e,t,i){return ah(this,void 0,void 0,function*(){const{wasTrustDenied:n,trustedOrganizationPublicKeys:r,trustedEmergencyAccessUserPublicKeys:s}=yield this.verifyTrust(i);return n?(this.logService.info("[UserKeyRotationService] Trust was denied by user. Aborting!"),!1):yield Te(i,this.sdkService,i=>ah(this,void 0,void 0,function*(){return this.logService.info("[UserKeyRotationService] Re-encrypting user data with new user key..."),yield i.user_crypto_management().rotate_user_keys({key_rotation_method:e,trusted_emergency_access_public_keys:s,trusted_organization_public_keys:r,upgrade_token_action:t}),!0}))})}verifyTrust(e){return ah(this,void 0,void 0,function*(){this.logService.info("[Userkey rotation] Verifying trust...");const[t,i]=yield Te(e,this.sdkService,e=>ah(this,void 0,void 0,function*(){const t=yield e.user_crypto_management().get_untrusted_memberships();return[t.emergency_access_memberships,t.organization_memberships]}));return this.logService.info("result",{emergencyAccessV1Memberships:t,organizationV1Memberships:i}),this.userCryptoDialogService.verifyTrust(i,t)})}},deps:[na.K5,se.K,ch]}),(0,Ue.F)({provide:Q.p,useFactory:(e,t,i,n,r,s,o,a,l,c,d,u,h,A)=>new cu(e,t,i,n,r,s,o,a,l,c,d,u,h,A),deps:[I.Lu,ur.V,je.G,he.W,lr.h,As.N,Pd,O.w,b.v2,N.D,se.K,Fd,oe.U,Dd.F]}),(0,Ue.F)({provide:Td.A,useClass:class{constructor(e,t){this.sdkService=e,this.cipherService=t}computeRiskForCiphers(e,t,i){return yu(this,void 0,void 0,function*(){const n=this.mapToLoginDetails(e);return 0===n.length?[]:yield(0,u._)(this.sdkService.userClient$(t).pipe((0,jt.n)(e=>yu(this,void 0,void 0,function*(){const t={stack:[],error:void 0,hasError:!1};try{const r=bu(t,e.take(),!1).value.vault().cipher_risk();return yield r.compute_risk(n,null!=i?i:{checkExposed:!1})}catch(r){t.error=r,t.hasError=!0}finally{Cu(t)}}))))})}computeCipherRiskForUser(e,t){return yu(this,arguments,void 0,function*(e,t,i=!0){const n=yield(0,u._)(this.cipherService.cipherViews$(t).pipe((0,cn.w)())),r=null==n?void 0:n.find(t=>(0,na.WD)(t.id)===e);if(!r)throw new Error(`Cipher with id ${e} not found`);const s=yield this.buildPasswordReuseMap(n,t);return(yield this.computeRiskForCiphers([r],t,{passwordMap:s,checkExposed:i}))[0]})}buildPasswordReuseMap(e,t){return yu(this,void 0,void 0,function*(){const i=this.mapToLoginDetails(e);return 0===i.length?{}:yield(0,u._)(this.sdkService.userClient$(t).pipe((0,jt.n)(e=>yu(this,void 0,void 0,function*(){const t={stack:[],error:void 0,hasError:!1};try{const n=bu(t,e.take(),!1);return n.value.vault().cipher_risk().password_reuse_map(i)}catch(n){t.error=n,t.hasError=!0}finally{Cu(t)}}))))})}mapToLoginDetails(e){return e.filter(e=>{var t;return e.type===Wd.gC.Login&&null!=(null===(t=e.login)||void 0===t?void 0:t.password)&&""!==e.login.password&&!e.isDeleted}).map(e=>({id:(0,na.WD)(e.id),password:e.login.password,username:e.login.username}))}},deps:[na.K5,Q.p]}),(0,Ue.F)({provide:S.Z,useClass:class{constructor(e,t,i,n,r){this.keyService=e,this.encryptService=t,this.i18nService=i,this.cipherService=n,this.stateProvider=r,this.folderViewCache=new Map,this.forceFolderViews={}}folders$(e){return this.encryptedFoldersState(e).state$.pipe((0,p.T)(e=>null==e?[]:Object.values(e).map(e=>new Qu.v(e))))}folderViews$(e){if(!this.folderViewCache.has(e)){this.forceFolderViews[e]||(this.forceFolderViews[e]=new d.B);const t=(0,Su.h)(this.forceFolderViews[e],(0,xt.z)([this.encryptedFoldersState(e).state$,this.keyService.userKey$(e)]).pipe((0,h.p)(([e,t])=>null!=e&&null!=t),(0,jt.n)(([t,i])=>this.decryptFolders(e,t)))).pipe((0,Gr.t)({refCount:!1,bufferSize:1}));this.folderViewCache.set(e,t)}return this.folderViewCache.get(e)}encrypt(e,t){return Du(this,void 0,void 0,function*(){const i=new Qu.v;return i.id=e.id,i.name=yield this.encryptService.encryptString(e.name,t),i})}get(e,t){return Du(this,void 0,void 0,function*(){return(yield(0,u._)(this.folders$(t))).find(t=>t.id===e)})}getDecrypted$(e,t){return this.folderViews$(t).pipe((0,p.T)(t=>t.find(t=>t.id===e)),(0,Gr.t)({refCount:!0,bufferSize:1}))}getAllFromState(e){return Du(this,void 0,void 0,function*(){return yield(0,u._)(this.folders$(e))})}getFromState(e,t){return Du(this,void 0,void 0,function*(){const i=yield this.get(e,t);return i||null})}getAllDecryptedFromState(e){return Du(this,void 0,void 0,function*(){return yield(0,u._)(this.folderViews$(e))})}upsert(e,t){return Du(this,void 0,void 0,function*(){yield this.clearDecryptedFolderState(t),yield this.encryptedFoldersState(t).update(t=>{if(null==t&&(t={}),e instanceof bc){const i=e;t[i.id]=i}else e.forEach(e=>{t[e.id]=e});return t})})}replace(e,t){return Du(this,void 0,void 0,function*(){e&&(yield this.clearDecryptedFolderState(t),yield this.stateProvider.getUser(t,Fu).update(()=>Object.assign({},e)))})}clearDecryptedFolderState(e){return Du(this,void 0,void 0,function*(){if(null==e)throw new Error("User ID is required.");yield this.setDecryptedFolders([],e)})}clear(e){return Du(this,void 0,void 0,function*(){var t;null===(t=this.forceFolderViews[e])||void 0===t||t.next([]),yield this.encryptedFoldersState(e).update(()=>({})),yield this.clearDecryptedFolderState(e)})}delete(e,t){return Du(this,void 0,void 0,function*(){yield this.clearDecryptedFolderState(t),yield this.encryptedFoldersState(t).update(t=>{if(null==t)return;return(Array.isArray(e)?e:[e]).forEach(e=>{null!=t[e]&&delete t[e]}),t});const i=yield this.cipherService.getAll(t);if(null!=i){const t=[];for(const n in i)i[n].folderId===e&&(i[n].folderId=null,t.push(i[n]));t.length>0&&(yield this.cipherService.upsert(t.map(e=>e.toCipherData())))}})}getRotatedData(e,t,i){return Du(this,void 0,void 0,function*(){if(null==t)throw new Error("New user key is required for rotation.");let e=[];const n=yield(0,u._)(this.folderViews$(i));return n?(e=yield Promise.all(n.filter(e=>!zt.A.isNullOrEmpty(e.id)).map(e=>Du(this,void 0,void 0,function*(){const i=yield this.encrypt(e,t);return new Ru(i)}))),e):e})}decryptFolders(e,t){return Du(this,void 0,void 0,function*(){const i=yield(0,u._)(this.stateProvider.getUser(e,Tu).state$);if(null==i?void 0:i.length)return i;if(null==t)return[];const n=Object.values(t).map(e=>new Qu.v(e)),r=yield(0,u._)(this.keyService.userKey$(e));if(!r)return[];const s=n.map(e=>Du(this,void 0,void 0,function*(){try{return yield e.decryptWithKey(r,this.encryptService)}catch(t){return null}})),o=(yield Promise.all(s)).filter(e=>null!==e).sort(zt.A.getSortFunction(this.i18nService,"name")),a=new ku.u;return a.name=this.i18nService.t("noneFolder"),o.push(a),yield this.setDecryptedFolders(o,e),o})}encryptedFoldersState(e){return this.stateProvider.getUser(e,Fu)}setDecryptedFolders(e,t){return Du(this,void 0,void 0,function*(){yield this.stateProvider.setUserState(Tu,e,t)})}},deps:[I.Lu,As.N,he.W,Q.p,b.v2]}),(0,Ue.F)({provide:S.k,useExisting:S.Z}),(0,Ue.F)({provide:Md.w,useClass:class{constructor(e,t){this.folderService=e,this.apiService=t}save(e,t){return Eu(this,void 0,void 0,function*(){const i=new wu.O(e);let n;e.id?n=yield this.putFolder(e.id,i):(n=yield this.postFolder(i),e.id=n.id);const r=new bc(n);return yield this.folderService.upsert(r,t),r})}delete(e,t){return Eu(this,void 0,void 0,function*(){yield this.deleteFolder(e),yield this.folderService.delete(e,t)})}deleteAll(e){return Eu(this,void 0,void 0,function*(){yield this.apiService.send("DELETE","/folders/all",null,!0,!1),yield this.folderService.clear(e)})}get(e){return Eu(this,void 0,void 0,function*(){const t=yield this.apiService.send("GET","/folders/"+e,null,!0,!0);return new Bu.s(t)})}postFolder(e){return Eu(this,void 0,void 0,function*(){const t=yield this.apiService.send("POST","/folders",e,!0,!0);return new Bu.s(t)})}putFolder(e,t){return Eu(this,void 0,void 0,function*(){const i=yield this.apiService.send("PUT","/folders/"+e,t,!0,!0);return new Bu.s(i)})}deleteFolder(e){return this.apiService.send("DELETE","/folders/"+e,null,!0,!1)}},deps:[S.Z,je.G]}),(0,Ue.F)({provide:ni.T,useClass:class{constructor(e,t,i,n,r){this.apiService=e,this.userVerificationService=t,this.logService=i,this.accountService=n,this.environmentService=r}deleteAccount(e){return Fi(this,void 0,void 0,function*(){try{const t=yield this.userVerificationService.buildRequest(e);yield this.apiService.send("DELETE","/accounts",t,!0,!1),this.accountService.delete()}catch(t){throw this.logService.error(t),t}})}registerSendVerificationEmail(e){return Fi(this,void 0,void 0,function*(){const t=yield(0,u._)(this.environmentService.environment$);try{return yield this.apiService.send("POST","/accounts/register/send-verification-email",e,!1,!0,t.getIdentityUrl())}catch(i){if(i instanceof Xt._&&204===i.statusCode)return null;throw this.logService.error(i),i}})}registerVerificationEmailClicked(e){return Fi(this,void 0,void 0,function*(){const t=yield(0,u._)(this.environmentService.environment$);try{return yield this.apiService.send("POST","/accounts/register/verification-email-clicked",e,!1,!1,t.getIdentityUrl())}catch(i){throw this.logService.error(i),i}})}registerFinish(e){return Fi(this,void 0,void 0,function*(){const t=yield(0,u._)(this.environmentService.environment$);try{return yield this.apiService.send("POST","/accounts/register/finish",e,!1,!0,t.getIdentityUrl())}catch(i){throw this.logService.error(i),i}})}setVerifyDevices(e){return Fi(this,void 0,void 0,function*(){try{return yield this.apiService.send("POST","/accounts/verify-devices",e,!0,!0)}catch(t){throw this.logService.error(t),t}})}},deps:[je.G,Ai.i,se.K,N.A,yo.v]}),(0,Ue.F)({provide:N.A,useClass:f.xy,deps:[oe.U,se.K,b.Y2,b.Ys]}),(0,Ue.F)({provide:N.D,useExisting:N.A}),(0,Ue.F)({provide:oi.v,useClass:class{constructor(e,t){this.apiService=e,this.stateProvider=t,this.avatarColor$=this.stateProvider.getActive(An).state$}setAvatarColor(e){return hn(this,void 0,void 0,function*(){const{avatarColor:t}=yield this.apiService.putAvatar(new un(e));yield this.stateProvider.setUserState(An,t)})}setSyncAvatarColor(e,t){return hn(this,void 0,void 0,function*(){yield this.stateProvider.getUser(e,An).update(()=>t)})}getUserAvatarColor$(e){return this.stateProvider.getUser(e,An).state$}},deps:[je.G,b.v2]}),(0,Ue.F)({provide:se.K,useFactory:()=>new Ga.V(!1),deps:[]}),(0,Ue.F)({provide:_.X8,useClass:_.e5,deps:[na.K5,se.K]}),(0,Ue.F)({provide:_.YD,useClass:_.dw,deps:[I.Lu,As.N,he.W,b.v2,O.w,_.X8]}),(0,Ue.F)({provide:Oe.oq,useValue:[]}),(0,Ue.F)({provide:yo.v,useClass:Ka,deps:[b.v2,N.D,Oe.oq]}),(0,Ue.F)({provide:$o.s,useClass:class{constructor(e,t){this.environmentService=e,this.configService=t,this.availableRegions$=this.configService.getFeatureFlag$(Kr.TO.FedRampGovRegion).pipe((0,tn.Z)(!1),(0,p.T)(e=>this.environmentService.availableRegions().filter(t=>t.key!==yo.T.Gov||e)))}},deps:[yo.v,O.w]}),(0,Ue.F)({provide:class{},useClass:class{constructor(e){this.environmentService=e,this.globalIsGovMode$=this.environmentService.globalEnvironment$.pipe((0,p.T)(e=>e.getRegion()===yo.T.Gov))}isGovMode$(e){return this.environmentService.getEnvironment$(e).pipe((0,p.T)(e=>e.getRegion()===yo.T.Gov))}},deps:[yo.v]}),(0,Ue.F)({provide:g.bj,useClass:g.GX,deps:[b.Ys]}),(0,Ue.F)({provide:g.Ym,useExisting:g.bj}),(0,Ue.F)({provide:Vd.R,useClass:class{constructor(e){this.sdkService=e}getCode$(e){return(0,vo.O)(0,1e3).pipe((0,jt.n)(()=>this.sdkService.client$.pipe((0,p.T)(t=>t.vault().totp().generate_totp(e)))),(0,Gr.t)({refCount:!0,bufferSize:1}))}},deps:[na.K5]}),(0,Ue.F)({provide:z.B,useClass:class{constructor(e,t,i,n,r,s,o,a){this.singleUserStateProvider=e,this.globalStateProvider=t,this.platformSupportsSecureStorage=i,this.secureStorageService=n,this.keyGenerationService=r,this.encryptService=s,this.logService=o,this.logoutCallback=a,this.accessTokenKeySecureStorageKey="_accessTokenKey",this.refreshTokenSecureStorageKey="_refreshToken",this.initializeState()}hasAccessToken$(e){return(0,xt.z)([this.singleUserStateProvider.get(e,Vn).state$,this.singleUserStateProvider.get(e,Gn).state$]).pipe((0,p.T)(([e,t])=>Boolean(e||t)))}initializeState(){this.emailTwoFactorTokenRecordGlobalState=this.globalStateProvider.get(Nn),this.activeUserIdGlobalState=this.globalStateProvider.get(f.xU)}setTokens(e,t,i,n,r){return Kn(this,void 0,void 0,function*(){if(!e)throw new Error("Access token is required.");if(null==i)throw new Error("Vault Timeout is required.");if(null==t)throw new Error("Vault Timeout Action is required.");const s=yield this.getUserIdFromAccessToken(e);if(!s)throw new Error("User id not found. Cannot set tokens.");const o=yield this._setAccessToken(e,t,i,s),a=new xn(o);if(n&&(a.refreshToken=yield this.setRefreshToken(n,t,i,s)),null!=r){const e=yield this.setClientId(r[0],t,i,s),n=yield this.setClientSecret(r[1],t,i,s);a.clientIdSecretPair=[e,n]}return a})}getAccessTokenKey(e){return Kn(this,void 0,void 0,function*(){const t=yield this.secureStorageService.get(`${e}${this.accessTokenKeySecureStorageKey}`,this.getSecureStorageOptions(e));if(!t)return null;return Mn.e.fromJSON(t)})}createAndSaveAccessTokenKey(e){return Kn(this,void 0,void 0,function*(){const t=yield this.keyGenerationService.createKey(512);yield this.secureStorageService.save(`${e}${this.accessTokenKeySecureStorageKey}`,t,this.getSecureStorageOptions(e));if(!(yield this.getAccessTokenKey(e)))throw new Error("New Access token key unable to be retrieved from secure storage.");return t})}clearAccessTokenKey(e){return Kn(this,void 0,void 0,function*(){yield this.secureStorageService.remove(`${e}${this.accessTokenKeySecureStorageKey}`,this.getSecureStorageOptions(e))})}getOrCreateAccessTokenKey(e){return Kn(this,void 0,void 0,function*(){if(!this.platformSupportsSecureStorage)throw new Error("Platform does not support secure storage. Cannot obtain access token key.");if(!e)throw new Error("User id not found. Cannot obtain access token key.");let t=yield this.getAccessTokenKey(e);return t||(t=yield this.createAndSaveAccessTokenKey(e)),t})}encryptAccessToken(e,t){return Kn(this,void 0,void 0,function*(){const i=yield this.getOrCreateAccessTokenKey(t);return yield this.encryptService.encryptString(e,i)})}decryptAccessToken(e,t){return Kn(this,void 0,void 0,function*(){if(!e)throw new Error("decryptAccessToken: Access token key required. Cannot decrypt access token.");try{return yield this.encryptService.decryptString(t,e)}catch(i){throw this.logService.error("[TokenService] Error decrypting access token",i),i}})}_setAccessToken(e,t,i,n){return Kn(this,void 0,void 0,function*(){switch(yield this.determineStorageLocation(t,i,!0)){case Wn.SecureStorage:{let t=null;try{const i=yield this.encryptAccessToken(e,n);yield this.singleUserStateProvider.get(n,Vn).update(e=>i.encryptedString,{shouldUpdate:e=>e!==i.encryptedString}),t=e,yield this.clearAccessTokenMemoryLocation(n)}catch(r){this.logService.error("SetAccessToken: storing encrypted access token in secure storage failed. Falling back to disk storage.",r),t=yield this.singleUserStateProvider.get(n,Vn).update(t=>e,{shouldUpdate:t=>t!==e}),yield this.clearAccessTokenMemoryLocation(n)}return t}case Wn.Disk:{const t=yield this.singleUserStateProvider.get(n,Vn).update(t=>e,{shouldUpdate:t=>t!==e});return yield this.clearAccessTokenMemoryLocation(n),t}case Wn.Memory:{const t=yield this.singleUserStateProvider.get(n,Gn).update(t=>e);return yield this.clearAccessTokenDiskLocation(n),t}}})}setAccessToken(e,t,i){return Kn(this,void 0,void 0,function*(){if(!e)throw new Error("Access token is required.");const n=yield this.getUserIdFromAccessToken(e);if(!n)throw new Error("User id not found. Cannot save access token.");if(null==i)throw new Error("Vault Timeout is required.");if(null==t)throw new Error("Vault Timeout Action is required.");return yield this._setAccessToken(e,t,i,n)})}clearAccessToken(e){return Kn(this,void 0,void 0,function*(){if(null!=e||(e=yield(0,u._)(this.activeUserIdGlobalState.state$)),!e)throw new Error("User id not found. Cannot clear access token.");this.platformSupportsSecureStorage&&(yield this.clearAccessTokenKey(e)),yield this.clearAccessTokenDiskLocation(e),yield this.clearAccessTokenMemoryLocation(e)})}clearAccessTokenMemoryLocation(e){return Kn(this,void 0,void 0,function*(){yield this.singleUserStateProvider.get(e,Gn).update(e=>null)})}clearAccessTokenDiskLocation(e){return Kn(this,void 0,void 0,function*(){yield this.singleUserStateProvider.get(e,Vn).update(e=>null,{shouldUpdate:e=>null!==e})})}getAccessToken(e){return Kn(this,void 0,void 0,function*(){if(!e)return null;const t=yield this.getStateValueByUserIdAndKeyDef(e,Gn);if(null!=t)return t;const i=yield this.getStateValueByUserIdAndKeyDef(e,Vn);if(!i)return null;if(this.platformSupportsSecureStorage){let t;try{t=yield this.getAccessTokenKey(e)}catch(n){return fn.k.isSerializedEncString(i)?(this.logService.error("Access token key retrieval failed. Unable to decrypt encrypted access token. Logging user out.",n),yield this.logoutCallback("accessTokenUnableToBeDecrypted",e),null):i}if(!t)return fn.k.isSerializedEncString(i)?(this.logService.error("Access token key not found to decrypt encrypted access token. Logging user out."),yield this.logoutCallback("accessTokenUnableToBeDecrypted",e),null):i;try{const e=new fn.k(i);return yield this.decryptAccessToken(t,e)}catch(n){return this.logService.error("Failed to decrypt access token",n),yield this.logoutCallback("accessTokenUnableToBeDecrypted",e),null}}return i})}setRefreshToken(e,t,i,n){return Kn(this,void 0,void 0,function*(){if(!n)throw new Error("User id not found. Cannot save refresh token.");if(null==i)throw new Error("Vault Timeout is required.");if(null==t)throw new Error("Vault Timeout Action is required.");switch(yield this.determineStorageLocation(t,i,!0)){case Wn.SecureStorage:{let t=null;try{yield this.saveStringToSecureStorage(n,this.refreshTokenSecureStorageKey,e);const i=yield this.getStringFromSecureStorage(n,this.refreshTokenSecureStorageKey);if(null!==e&&!i)throw new Error("Refresh token failed to save to secure storage.");t=e,yield this.clearRefreshTokenDiskLocation(n),yield this.clearRefreshTokenMemoryLocation(n)}catch(r){this.logService.error("SetRefreshToken: storing refresh token in secure storage failed. Falling back to disk storage.",r),t=yield this.singleUserStateProvider.get(n,Un).update(t=>e,{shouldUpdate:t=>t!==e}),yield this.clearRefreshTokenMemoryLocation(n)}return t}case Wn.Disk:{const t=yield this.singleUserStateProvider.get(n,Un).update(t=>e,{shouldUpdate:t=>t!==e});return yield this.clearRefreshTokenMemoryLocation(n),t}case Wn.Memory:{const t=yield this.singleUserStateProvider.get(n,On).update(t=>e);return yield this.clearRefreshTokenDiskLocation(n),t}}})}getRefreshToken(e){return Kn(this,void 0,void 0,function*(){if(!e)return null;const t=yield this.getStateValueByUserIdAndKeyDef(e,On);if(null!=t)return t;const i=yield this.getStateValueByUserIdAndKeyDef(e,Un);if(null!=i)return i;if(this.platformSupportsSecureStorage)try{const t=yield this.getStringFromSecureStorage(e,this.refreshTokenSecureStorageKey);if(null!=t)return t;this.logService.error("Refresh token not found in secure storage. Access token will fail to refresh upon expiration or manual refresh.")}catch(n){this.logService.error("Failed to retrieve refresh token from secure storage",n),yield this.logoutCallback("refreshTokenSecureStorageRetrievalFailure",e)}return null})}clearRefreshToken(e){return Kn(this,void 0,void 0,function*(){if(!e)throw new Error("User id not found. Cannot clear refresh token.");this.platformSupportsSecureStorage&&(yield this.secureStorageService.remove(`${e}${this.refreshTokenSecureStorageKey}`,this.getSecureStorageOptions(e))),yield this.clearRefreshTokenMemoryLocation(e),yield this.clearRefreshTokenDiskLocation(e)})}clearRefreshTokenMemoryLocation(e){return Kn(this,void 0,void 0,function*(){yield this.singleUserStateProvider.get(e,On).update(e=>null)})}clearRefreshTokenDiskLocation(e){return Kn(this,void 0,void 0,function*(){yield this.singleUserStateProvider.get(e,Un).update(e=>null,{shouldUpdate:e=>null!==e})})}setClientId(e,t,i,n){return Kn(this,void 0,void 0,function*(){if(null!=n||(n=yield(0,u._)(this.activeUserIdGlobalState.state$)),!n)throw new Error("User id not found. Cannot save client id.");if(null==i)throw new Error("Vault Timeout is required.");if(null==t)throw new Error("Vault Timeout Action is required.");const r=yield this.determineStorageLocation(t,i,!1);if(r===Wn.Disk){const t=yield this.singleUserStateProvider.get(n,jn).update(t=>e);return yield this.clearClientIdMemoryLocation(n),t}if(r===Wn.Memory){const t=yield this.singleUserStateProvider.get(n,Yn).update(t=>e);return yield this.clearClientIdDiskLocation(n),t}})}getClientId(e){return Kn(this,void 0,void 0,function*(){if(!e)return;const t=yield this.getStateValueByUserIdAndKeyDef(e,Yn);return null!=t?t:yield this.getStateValueByUserIdAndKeyDef(e,jn)})}clearClientId(e){return Kn(this,void 0,void 0,function*(){if(null!=e||(e=yield(0,u._)(this.activeUserIdGlobalState.state$)),!e)throw new Error("User id not found. Cannot clear client id.");yield this.clearClientIdMemoryLocation(e),yield this.clearClientIdDiskLocation(e)})}clearClientIdMemoryLocation(e){return Kn(this,void 0,void 0,function*(){yield this.singleUserStateProvider.get(e,Yn).update(e=>null)})}clearClientIdDiskLocation(e){return Kn(this,void 0,void 0,function*(){yield this.singleUserStateProvider.get(e,jn).update(e=>null)})}setClientSecret(e,t,i,n){return Kn(this,void 0,void 0,function*(){if(null!=n||(n=yield(0,u._)(this.activeUserIdGlobalState.state$)),!n)throw new Error("User id not found. Cannot save client secret.");if(null==i)throw new Error("Vault Timeout is required.");if(null==t)throw new Error("Vault Timeout Action is required.");const r=yield this.determineStorageLocation(t,i,!1);if(r===Wn.Disk){const t=yield this.singleUserStateProvider.get(n,Xn).update(t=>e);return yield this.clearClientSecretMemoryLocation(n),t}if(r===Wn.Memory){const t=yield this.singleUserStateProvider.get(n,zn).update(t=>e);return yield this.clearClientSecretDiskLocation(n),t}})}getClientSecret(e){return Kn(this,void 0,void 0,function*(){if(!e)return;const t=yield this.getStateValueByUserIdAndKeyDef(e,zn);return null!=t?t:yield this.getStateValueByUserIdAndKeyDef(e,Xn)})}clearClientSecret(e){return Kn(this,void 0,void 0,function*(){if(null!=e||(e=yield(0,u._)(this.activeUserIdGlobalState.state$)),!e)throw new Error("User id not found. Cannot clear client secret.");yield this.clearClientSecretMemoryLocation(e),yield this.clearClientSecretDiskLocation(e)})}clearClientSecretMemoryLocation(e){return Kn(this,void 0,void 0,function*(){yield this.singleUserStateProvider.get(e,zn).update(e=>null)})}clearClientSecretDiskLocation(e){return Kn(this,void 0,void 0,function*(){yield this.singleUserStateProvider.get(e,Xn).update(e=>null)})}setTwoFactorToken(e,t){return Kn(this,void 0,void 0,function*(){yield this.emailTwoFactorTokenRecordGlobalState.update(i=>(null!=i||(i={}),i[e]=t,i))})}getTwoFactorToken(e){return Kn(this,void 0,void 0,function*(){const t=yield(0,u._)(this.emailTwoFactorTokenRecordGlobalState.state$);return t?t[e]:null})}clearTwoFactorToken(e){return Kn(this,void 0,void 0,function*(){yield this.emailTwoFactorTokenRecordGlobalState.update(t=>(null!=t||(t={}),delete t[e],t))})}clearTokens(e){return Kn(this,void 0,void 0,function*(){if(null!=e||(e=yield(0,u._)(this.activeUserIdGlobalState.state$)),!e)throw new Error("User id not found. Cannot clear tokens.");yield Promise.all([this.clearAccessToken(e),this.clearRefreshToken(e),this.clearClientId(e),this.clearClientSecret(e)])})}cleanupTokenStorage(e){return Kn(this,void 0,void 0,function*(){for(const t of e){null==(yield this.getAccessToken(t))&&(yield this.clearTokens(t))}})}decodeAccessToken(e){return Kn(this,void 0,void 0,function*(){let t=e;if(zt.A.isGuid(e)?t=yield this.getAccessToken(e):null!=t||(t=yield this.getAccessToken(yield(0,u._)(this.activeUserIdGlobalState.state$))),null==t)throw new Error("Access token not found.");return(0,g.iD)(t)})}getTokenExpirationDate(e){return Kn(this,void 0,void 0,function*(){let t;try{t=yield this.decodeAccessToken(e)}catch(n){throw new Error("Failed to decode access token: "+n.message)}if(!t||"number"!=typeof t.exp)return null;const i=new Date(0);return i.setUTCSeconds(t.exp),i})}tokenSecondsRemaining(e){return Kn(this,arguments,void 0,function*(e,t=0){const i=yield this.getTokenExpirationDate(e);if(null==i)return 0;const n=i.valueOf()-((new Date).valueOf()+1e3*t);return Math.round(n/1e3)})}tokenNeedsRefresh(e){return Kn(this,arguments,void 0,function*(e,t=5){return(yield this.tokenSecondsRemaining(e))<60*t})}getUserId(){return Kn(this,void 0,void 0,function*(){let e;try{e=yield this.decodeAccessToken()}catch(t){throw new Error("Failed to decode access token: "+t.message)}if(!e||"string"!=typeof e.sub)throw new Error("No user id found");return e.sub})}getUserIdFromAccessToken(e){return Kn(this,void 0,void 0,function*(){let t;try{t=yield this.decodeAccessToken(e)}catch(i){throw new Error("Failed to decode access token: "+i.message)}if(!t||"string"!=typeof t.sub)throw new Error("No user id found");return t.sub})}getEmail(){return Kn(this,void 0,void 0,function*(){let e;try{e=yield this.decodeAccessToken()}catch(t){throw new Error("Failed to decode access token: "+t.message)}if(!e||"string"!=typeof e.email)throw new Error("No email found");return e.email})}getEmailVerified(){return Kn(this,void 0,void 0,function*(){let e;try{e=yield this.decodeAccessToken()}catch(t){throw new Error("Failed to decode access token: "+t.message)}if(!e||"boolean"!=typeof e.email_verified)throw new Error("No email verification found");return e.email_verified})}getName(){return Kn(this,void 0,void 0,function*(){let e;try{e=yield this.decodeAccessToken()}catch(t){throw new Error("Failed to decode access token: "+t.message)}return e&&"string"==typeof e.name?e.name:null})}getIssuer(){return Kn(this,void 0,void 0,function*(){let e;try{e=yield this.decodeAccessToken()}catch(t){throw new Error("Failed to decode access token: "+t.message)}if(!e||"string"!=typeof e.iss)throw new Error("No issuer found");return e.iss})}getIsExternal(e){return Kn(this,void 0,void 0,function*(){let t;try{t=yield this.decodeAccessToken(e)}catch(i){throw new Error("Failed to decode access token: "+i.message)}return Array.isArray(t.amr)&&t.amr.includes("external")})}getSecurityStamp(e){return Kn(this,void 0,void 0,function*(){if(null!=e||(e=yield(0,u._)(this.activeUserIdGlobalState.state$)),!e)throw new Error("User id not found. Cannot get security stamp.");return yield this.getStateValueByUserIdAndKeyDef(e,Ln)})}setSecurityStamp(e,t){return Kn(this,void 0,void 0,function*(){if(null!=t||(t=yield(0,u._)(this.activeUserIdGlobalState.state$)),!t)throw new Error("User id not found. Cannot set security stamp.");yield this.singleUserStateProvider.get(t,Ln).update(t=>e)})}getStateValueByUserIdAndKeyDef(e,t){return Kn(this,void 0,void 0,function*(){return yield(0,u._)(this.singleUserStateProvider.get(e,t).state$)})}determineStorageLocation(e,t,i){return Kn(this,void 0,void 0,function*(){if(null==e)throw new Error("TokenService - determineStorageLocation: We expect the vault timeout action to always exist at this point.");if(null==t)throw new Error("TokenService - determineStorageLocation: We expect the vault timeout to always exist at this point.");return e===Dn.W4.LogOut&&t!==Dn.Lw.Never?Wn.Memory:i&&this.platformSupportsSecureStorage?Wn.SecureStorage:Wn.Disk})}saveStringToSecureStorage(e,t,i){return Kn(this,void 0,void 0,function*(){yield this.secureStorageService.save(`${e}${t}`,i,this.getSecureStorageOptions(e))})}getStringFromSecureStorage(e,t){return Kn(this,void 0,void 0,function*(){return yield this.secureStorageService.get(`${e}${t}`,this.getSecureStorageOptions(e))})}getSecureStorageOptions(e){return{storageLocation:Pn.$B.Disk,useSecureStorage:!0,userId:e}}},deps:[b.Ys,b.Y2,Oe.Vc,Oe.G$,us.$9,As.N,se.K,Oe.dZ]}),(0,Ue.F)({provide:us.$9,useClass:us.Gn,deps:[hs.R]}),(0,Ue.F)({provide:I.Lu,useClass:I.gX,deps:[Ae.O,us.$9,hs.R,As.N,G.y,se.K,b.dw,N.D,b.v2,I.zZ,ls.h]}),(0,Ue.F)({provide:Xo.p,useClass:class{constructor(e){this.accountCryptographicStateService=e}accountSecurityState$(e){return this.accountCryptographicStateService.accountCryptographicState$(e).pipe((0,p.T)(e=>null==e?null:"V2"in e?e.V2.security_state:null))}},deps:[ls.h]}),(0,Ue.F)({provide:Pu.b,useClass:Pu.b,deps:[N.D,v.PV,Je.m]}),(0,Ue.F)({provide:od.Q,useClass:od.y,deps:[]}),(0,Ue.F)({provide:_u.JJ,useFactory:_u.Im,deps:[Je.m,N.D,b.v2,na.K5]}),(0,Ue.F)({provide:$u.ZS,useClass:$u.Kt,deps:[b.v2,na.K5]}),(0,Ue.F)({provide:_u.GL,useFactory:_u.pV,deps:[je.G,he.W,I.Lu,na.K5,Je.m,N.D,b.v2]}),(0,Ue.F)({provide:Oe.Ug,useFactory:(e,t)=>()=>{e.showToast({variant:"error",title:t.t("errorRefreshingAccessToken"),message:t.t("errorRefreshingAccessTokenDesc")})},deps:[F.f,he.W]}),(0,Ue.F)({provide:Oe.Kk,useValue:{createRequest:(e,t)=>new Request(e,t)}}),(0,Ue.F)({provide:je.G,useClass:rd,deps:[z.B,G.y,yo.v,qo.Y,Oe.Ug,se.K,Oe.dZ,Dn.ep,N.D,Oe.Kk]}),(0,Ue.F)({provide:Sd,useExisting:Qd}),(0,Ue.F)({provide:Qd,useClass:class{constructor(e,t,i,n,r,s,o){this.accountService=e,this.keyService=t,this.i18nService=i,this.keyGenerationService=n,this.stateProvider=r,this.encryptService=s,this.configService=o,this.sendKeySalt="bitwarden-send",this.sendKeyPurpose="send",this.sends$=this.stateProvider.encryptedState$.pipe((0,p.T)(([,e])=>Object.values(e||{}).map(e=>new Jl(e)))),this.sendViews$=this.stateProvider.encryptedState$.pipe((0,dl.H)(([e,t])=>this.decryptSends(Object.values(t||{}).map(e=>new Jl(e)),e)))}encrypt(e,t,i,n){return Ed(this,void 0,void 0,function*(){var r,s;let o=null;const a=new Jl;if(a.id=e.id,a.type=e.type,a.disabled=e.disabled,a.hideEmail=e.hideEmail,a.maxAccessCount=e.maxAccessCount,a.deletionDate=e.deletionDate,a.expirationDate=e.expirationDate,null==e.key){const t=yield this.keyGenerationService.createKeyWithPurpose(128,this.sendKeyPurpose,this.sendKeySalt);e.key=t.material,e.cryptoKey=t.derivedKey}if((null!==(s=null===(r=e.emails)||void 0===r?void 0:r.length)&&void 0!==s?s:0)>0)a.emails=e.emails.map(e=>e.trim()).join(",").toLocaleLowerCase(),a.password=null;else if(a.emails=null,null!=i){const t=yield this.keyGenerationService.deriveKeyFromPassword(i,e.key,new I.n1(Lo));a.password=t.keyB64}const l=(yield(0,u._)(this.accountService.activeAccount$)).id;if(null==n&&(n=yield(0,u._)(this.keyService.userKey$(l))),a.key=yield this.encryptService.encryptBytes(e.key,n),a.name=null!=e.name?yield this.encryptService.encryptString(e.name,e.cryptoKey):null,a.notes=null!=e.notes?yield this.encryptService.encryptString(e.notes,e.cryptoKey):null,a.type===xl.N.Text)a.text=new zl,a.text.text=yield this.encryptService.encryptString(e.text.text,e.cryptoKey),a.text.hidden=e.text.hidden;else if(a.type===xl.N.File&&(a.file=new Xl,null!=t))if(t instanceof ArrayBuffer){const[i,n]=yield this.encryptFileData(e.file.fileName,t,e.cryptoKey,l);a.file.fileName=i,o=n}else o=yield this.parseFile(a,t,e.cryptoKey,l);return a.authType=e.authType,[a,o]})}get$(e){return this.sends$.pipe((0,$i.F)((t,i)=>{const n=t.find(t=>t.id===e),r=i.find(t=>t.id===e);if(!n||!r)return!1;const s=Object.keys(r).every(e=>{if(null!=n[e]&&null===r[e]||null===n[e]&&null!=r[e])return!1;switch(e){case"name":case"notes":case"key":return null===n[e]&&null===r[e]||n[e].encryptedString===r[e].encryptedString;case"text":return null==n[e].text&&null==r[e].text||!(null!=n[e].text&&null==r[e].text||null==n[e].text&&null!=r[e].text)&&n[e].text.encryptedString===r[e].text.encryptedString;case"file":return!0;case"revisionDate":case"expirationDate":case"deletionDate":return null===n[e]&&null===r[e]||n[e].getTime()===r[e].getTime();default:return n[e]===r[e]}});return s}),(0,p.T)(t=>t.find(t=>t.id===e)))}getFromState(e){return Ed(this,void 0,void 0,function*(){const[,t]=yield this.stateProvider.getEncryptedSends();return null!=t&&t.hasOwnProperty(e)?new Jl(t[e]):null})}getAll(){return Ed(this,void 0,void 0,function*(){const[,e]=yield this.stateProvider.getEncryptedSends(),t=[];for(const i in e)e.hasOwnProperty(i)&&t.push(new Jl(e[i]));return t})}getAllDecryptedFromState(e){return Ed(this,void 0,void 0,function*(){if(!e)throw new Error("User ID must not be null or undefined");let t=yield this.stateProvider.getDecryptedSends();if(null!=t)return t;t=[];if(!(yield this.keyService.hasUserKey(e)))throw new Error("No user key found.");const i=[];return(yield this.getAll()).forEach(n=>{i.push(n.decrypt(e).then(e=>t.push(e)))}),yield Promise.all(i),t.sort(zt.A.getSortFunction(this.i18nService,"name")),yield this.stateProvider.setDecryptedSends(t),t})}upsert(e){return Ed(this,void 0,void 0,function*(){const[t,i]=yield this.stateProvider.getEncryptedSends();let n=i;if(null==n&&(n={}),e instanceof Ul){const t=e;n[t.id]=t}else e.forEach(e=>{n[e.id]=e});yield this.replace(n,t)})}delete(e){return Ed(this,void 0,void 0,function*(){const[t,i]=yield this.stateProvider.getEncryptedSends();if(null!=i){if("string"==typeof e){if(null==i[e])return;delete i[e]}else e.forEach(e=>{delete i[e]});yield this.replace(i,t)}})}replace(e,t){return Ed(this,void 0,void 0,function*(){yield this.stateProvider.setEncryptedSends(e,t)})}getRotatedData(e,t,i){return Ed(this,void 0,void 0,function*(){if(null==t)throw new Error("New user key is required for rotation.");if(null==e)throw new Error("Original user key is required for rotation.");return yield(0,u._)(this.sends$.pipe((0,dl.H)(i=>Ed(this,void 0,void 0,function*(){return this.toRotatedKeyRequestMap(i,e,t)}))))})}toRotatedKeyRequestMap(e,t,i){return Ed(this,void 0,void 0,function*(){return yield Promise.all(e.map(e=>Ed(this,void 0,void 0,function*(){const n=yield this.encryptService.decryptBytes(e.key,t);return e.key=yield this.encryptService.encryptBytes(n,i),new Bd(e)})))})}parseFile(e,t,i,n){return new Promise((r,s)=>{const o=new FileReader;o.readAsArrayBuffer(t),o.onload=o=>Ed(this,void 0,void 0,function*(){try{const[s,a]=yield this.encryptFileData(t.name,o.target.result,i,n);e.file.fileName=s,r(a)}catch(a){s(a)}}),o.onerror=()=>{s("Error reading file.")}})}encryptFileData(e,t,i,n){return Ed(this,void 0,void 0,function*(){null==i&&(i=yield(0,u._)(this.keyService.userKey$(n)));return[yield this.encryptService.encryptString(e,i),yield this.encryptService.encryptFileData(new Uint8Array(t),i)]})}decryptSends(e,t){return Ed(this,void 0,void 0,function*(){const i=e.map(e=>e.decrypt(t)),n=yield Promise.all(i);return n.sort(zt.A.getSortFunction(this.i18nService,"name")),n})}},deps:[N.D,I.Lu,he.W,us.$9,wd,As.N,O.w]}),(0,Ue.F)({provide:wd,useClass:class{constructor(e){this.stateProvider=e,this.activeUserEncryptedState=this.stateProvider.getActive(Tl),this.encryptedState$=this.activeUserEncryptedState.combinedState$,this.activeUserDecryptedState=this.stateProvider.getActive(Dl),this.decryptedState$=this.activeUserDecryptedState.state$}getEncryptedSends(){return Id(this,void 0,void 0,function*(){return yield(0,u._)(this.encryptedState$)})}setEncryptedSends(e,t){return Id(this,void 0,void 0,function*(){yield this.stateProvider.getUser(t,Tl).update(()=>e)})}getDecryptedSends(){return Id(this,void 0,void 0,function*(){return yield(0,u._)(this.decryptedState$)})}setDecryptedSends(e){return Id(this,void 0,void 0,function*(){yield this.activeUserDecryptedState.update(()=>e)})}},deps:[b.v2]}),(0,Ue.F)({provide:vd,useClass:vd,deps:[je.G,ea,Qd]}),(0,Ue.F)({provide:Cd,useClass:Cd,deps:[na.K5,vd,Qd,N.D,se.K]}),(0,Ue.F)({provide:md,useClass:class{constructor(e,t,i){this.sendApiService=t,this.sendSdkApiService=i,this.service$=e.getFeatureFlag$(Kr.TO.Pm30110SdkSendsApi).pipe((0,p.T)(e=>e?this.sendSdkApiService:this.sendApiService),(0,Gr.t)({bufferSize:1,refCount:!1}))}getService(){return(0,u._)(this.service$)}save(e,t){return ad(this,void 0,void 0,function*(){const[i]=e;return null==i.id&&i.type===xl.N.File?this.sendApiService.save(e,t):(yield this.getService()).save(e,t)})}delete(e){return ad(this,void 0,void 0,function*(){return(yield this.getService()).delete(e)})}removePassword(e){return ad(this,void 0,void 0,function*(){return(yield this.getService()).removePassword(e)})}getSend(e){return ad(this,void 0,void 0,function*(){return this.sendApiService.getSend(e)})}postSendAccess(e,t,i){return ad(this,void 0,void 0,function*(){return null!=i?this.sendApiService.postSendAccess(e,t,i):(yield this.getService()).postSendAccess(e,t)})}postSendAccessV2(e,t){return ad(this,void 0,void 0,function*(){return null!=t?this.sendApiService.postSendAccessV2(e,t):(yield this.getService()).postSendAccessV2(e)})}getSends(){return ad(this,void 0,void 0,function*(){return this.sendApiService.getSends()})}putSendRemovePassword(e){return ad(this,void 0,void 0,function*(){return this.sendApiService.putSendRemovePassword(e)})}deleteSend(e){return ad(this,void 0,void 0,function*(){return(yield this.getService()).deleteSend(e)})}getSendFileDownloadData(e,t,i){return ad(this,void 0,void 0,function*(){return null!=i?this.sendApiService.getSendFileDownloadData(e,t,i):(yield this.getService()).getSendFileDownloadData(e,t)})}getSendFileDownloadDataV2(e,t,i){return ad(this,void 0,void 0,function*(){return null!=i?this.sendApiService.getSendFileDownloadDataV2(e,t,i):(yield this.getService()).getSendFileDownloadDataV2(e,t)})}},deps:[O.w,vd,Cd]}),(0,Ue.F)({provide:class{},useClass:class{constructor(e){this.apiService=e}getUserPublicKeys(e){return so(this,void 0,void 0,function*(){const t=yield this.apiService.send("GET","/users/"+e+"/keys",null,!0,!0);return new ro(t)})}},deps:[je.G]}),(0,Ue.F)({provide:mc.H,useClass:class extends wc{constructor(e,t,i,n,r,s,o,a,l,c,d,u,h,A,p,g,v,m,f,y,b,C,I,w,B,E,S,Q,k){super(I,r,g,l,h,s,a,i,t,w,u,m,B),this.masterPasswordService=e,this.domainSettingsService=n,this.keyService=o,this.policyService=c,this.newPolicyService=d,this.keyConnectorService=A,this.providerService=p,this.organizationService=v,this.userDecryptionOptionsService=f,this.avatarService=y,this.logoutCallback=b,this.billingAccountProfileStateService=C,this.securityStateService=E,this.kdfConfigService=S,this.accountCryptographicStateService=Q,this.v2UpgradeTokenStateService=k,this.syncInProgress=!1,this.inFlightApiCalls={refreshToken:null,sync:null}}fullSync(e,t){return Bc(this,void 0,void 0,function*(){const{allowThrowOnError:i=!1,skipTokenRefresh:n=!1}="boolean"==typeof t?{allowThrowOnError:t}:null!=t?t:{},r=yield(0,u._)(this.accountService.activeAccount$.pipe((0,p.T)(e=>null==e?void 0:e.id)));this.syncStarted();if((yield(0,u._)(this.authService.authStatusFor$(r)))===m.J.LoggedOut)return this.syncCompleted(!1,r);const s=new Date;let o=!1,a=!0;try{o=yield this.needsSyncing(e)}catch(l){if(a=!1,i)throw this.syncCompleted(!1,r),l}if(!o)return a&&(yield this.setLastSync(s,r)),this.syncCompleted(!1,r);try{n||(null===this.inFlightApiCalls.refreshToken&&(this.inFlightApiCalls.refreshToken=this.apiService.refreshIdentityToken()),yield this.inFlightApiCalls.refreshToken),null===this.inFlightApiCalls.sync?this.inFlightApiCalls.sync=this.apiService.getSync():this.logService.debug("Sync: Sync network call already in progress, returning existing promise");const e=yield this.inFlightApiCalls.sync;return yield this.cipherService.clear(e.profile.id),yield this.syncUserDecryption(e.profile.id,e.userDecryption),yield this.syncProfile(e.profile),yield this.syncFolders(e.folders,e.profile.id),yield this.syncCollections(e.collections,e.profile.id),yield this.syncCiphers(e.ciphers,e.profile.id),yield this.syncSends(e.sends,e.profile.id),yield this.syncSettings(e.domains,e.profile.id),yield this.syncPolicies(e.policies,e.profile.id),yield this.syncNewPolicies(e.policiesNew,e.policies,e.profile.id),yield this.setLastSync(s,r),this.syncCompleted(!0,r)}catch(l){if(i)throw this.syncCompleted(!1,r),l;return this.syncCompleted(!1,r)}finally{this.inFlightApiCalls.refreshToken=null,this.inFlightApiCalls.sync=null}})}needsSyncing(e){return Bc(this,void 0,void 0,function*(){if(e)return!0;const t=yield this.getLastSync();if(null==t||0===t.getTime())return!0;const i=yield this.apiService.getAccountRevisionDate();return i<0&&this.logoutCallback&&(yield this.logoutCallback("accountDeleted")),!(new Date(i)<=t)})}syncProfile(e){return Bc(this,void 0,void 0,function*(){const t=yield this.tokenService.getSecurityStamp(e.id);if(null!=t&&t!==e.securityStamp)throw null!=this.logoutCallback&&(yield this.logoutCallback("invalidSecurityStamp")),new Error("Stamp has changed");(null==e?void 0:e.key)&&(yield this.masterPasswordService.setMasterKeyEncryptedUserKey(e.key,e.id)),null!=e.accountKeys?yield this.accountCryptographicStateService.setAccountCryptographicState(e.accountKeys.toWrappedAccountCryptographicState(),e.id):yield this.accountCryptographicStateService.setAccountCryptographicState({V1:{private_key:e.privateKey}},e.id),yield this.keyService.setProviderKeys(e.providers,e.id),yield this.keyService.setOrgKeys(e.organizations,e.providerOrganizations,e.id),yield this.avatarService.setSyncAvatarColor(e.id,e.avatarColor),yield this.tokenService.setSecurityStamp(e.securityStamp,e.id),yield this.accountService.setAccountEmailVerified(e.id,e.emailVerified),yield this.accountService.setAccountCreationDate(e.id,new Date(e.creationDate)),yield this.accountService.setAccountVerifyNewDeviceLogin(e.id,e.verifyDevices),yield this.billingAccountProfileStateService.setHasPremium(e.premiumPersonally,e.premiumFromOrganization,e.id),yield this.keyConnectorService.setUsesKeyConnector(e.usesKeyConnector,e.id),yield this.setForceSetPasswordReasonIfNeeded(e);const i={};e.providers.forEach(e=>{i[e.id]=new yc(e)}),yield this.providerService.save(i,e.id),yield this.syncProfileOrganizations(e,e.id),(yield(0,u._)(this.keyConnectorService.convertAccountRequired$))&&this.messageSender.send("convertAccountToKeyConnector")})}setForceSetPasswordReasonIfNeeded(e){return Bc(this,void 0,void 0,function*(){var t;e.forcePasswordReset&&(yield this.masterPasswordService.setForceSetPasswordReason(re.n.AdminForcePasswordReset,e.id));const i=yield(0,u._)(this.userDecryptionOptionsService.userDecryptionOptionsById$(e.id));null==i&&this.logService.error("Sync: Account decryption options are null or undefined.");let n=!1;for(const r of e.organizations){const e=r.type===_e.D7.Admin,t=r.type===_e.D7.Owner;if(e||t||r.permissions&&r.permissions.manageResetPassword){n=!0;break}}if(void 0!==i.trustedDeviceOption&&!i.hasMasterPassword&&n){const e=null===(t=yield(0,u._)(this.accountService.activeAccount$))||void 0===t?void 0:t.id;yield this.masterPasswordService.setForceSetPasswordReason(re.n.TdeUserWithoutPasswordHasPasswordResetPermission,e)}})}syncProfileOrganizations(e,t){return Bc(this,void 0,void 0,function*(){var i,n;const r={};(null!==(n=null!==(i=e.organizationsNew)&&void 0!==i?i:e.organizations)&&void 0!==n?n:[]).forEach(e=>{r[e.id]=new tt.o(e,{isMember:!0,isProviderUser:!1})}),e.providerOrganizations.forEach(e=>{null==r[e.id]?r[e.id]=new tt.o(e,{isMember:!1,isProviderUser:!0}):r[e.id].isProviderUser=!0}),yield this.organizationService.replace(r,t)})}syncFolders(e,t){return Bc(this,void 0,void 0,function*(){const i={};return e.forEach(e=>{i[e.id]=new bc(e)}),yield this.folderService.replace(i,t)})}syncCollections(e,t){return Bc(this,void 0,void 0,function*(){const i={};return e.forEach(e=>{i[e.id]=new fc.Fw(e)}),yield this.collectionService.replace(i,t)})}syncCiphers(e,t){return Bc(this,void 0,void 0,function*(){const i={};return e.forEach(e=>{i[e.id]=new $l.A(e)}),yield this.cipherService.replace(i,t)})}syncSends(e,t){return Bc(this,void 0,void 0,function*(){const i={};return e.forEach(e=>{i[e.id]=new Ul(e)}),yield this.sendService.replace(i,t)})}syncSettings(e,t){return Bc(this,void 0,void 0,function*(){let i=[];return null!=e&&null!=e.equivalentDomains&&(i=i.concat(e.equivalentDomains)),null!=e&&null!=e.globalEquivalentDomains&&e.globalEquivalentDomains.forEach(e=>{e.domains.length>0&&i.push(e.domains)}),this.domainSettingsService.setEquivalentDomains(i,t)})}syncPolicies(e,t){return Bc(this,void 0,void 0,function*(){const i={};return null!=e&&e.forEach(e=>{i[e.id]=new Lt.L(e)}),yield this.policyService.replace(i,t)})}syncNewPolicies(e,t,i){return Bc(this,void 0,void 0,function*(){const n=null!=e&&e.length>0?e:t;if(null==n||0===n.length)return;const r={};return n.forEach(e=>{r[e.id]=new Lt.L(e)}),yield this.newPolicyService.replace(r,i)})}syncUserDecryption(e,t){return Bc(this,void 0,void 0,function*(){if(null!=t){if(null!=t.masterPasswordUnlock){const i=t.masterPasswordUnlock.toMasterPasswordUnlockData();yield this.masterPasswordService.setMasterPasswordUnlockData(i,e),yield this.kdfConfigService.setKdfConfig(e,i.kdf)}if(null!=t.webAuthnPrfOptions&&t.webAuthnPrfOptions.length>0)try{const i=yield(0,u._)(this.accountService.activeAccount$);if((null==i?void 0:i.id)!==e)return;const n=yield(0,u._)(this.userDecryptionOptionsService.userDecryptionOptionsById$(e)).catch(()=>null);if(null!=n){const e=Object.assign(new g.Xc,n);e.webAuthnPrfOptions=t.webAuthnPrfOptions.map(e=>g._p.fromResponse(e)).filter(e=>void 0!==e),yield this.userDecryptionOptionsService.setUserDecryptionOptionsById(i.id,e)}}catch(i){this.logService.error("[Sync] Failed to update WebAuthn PRF options:",i)}null!=t.v2UpgradeToken?yield this.v2UpgradeTokenStateService.setV2UpgradeToken(t.v2UpgradeToken.toV2UpgradeToken(),e):yield this.v2UpgradeTokenStateService.clearV2UpgradeToken(e)}})}},deps:[Ae.O,N.D,je.G,ur.V,S.Z,Q.p,I.Lu,_.YD,oe.U,Je.N,Ze,Qd,se.K,Ws.K,$e.$,Md.w,v.k4,md,g.bj,oi.v,Oe.dZ,gr.Q,z.B,k.u,b.v2,Xo.p,I.zZ,ls.h,Zo]}),(0,Ue.F)({provide:ls.h,useClass:class{constructor(e){this.stateProvider=e}accountCryptographicState$(e){return this.stateProvider.getUserState$(ds,e)}setAccountCryptographicState(e,t){return cs(this,void 0,void 0,function*(){yield this.stateProvider.setUserState(ds,e,t)})}clearAccountCryptographicState(e){return cs(this,void 0,void 0,function*(){yield this.stateProvider.setUserState(ds,null,e)})}},deps:[b.v2]}),(0,Ue.F)({provide:ih,useClass:class{constructor(e,t,i,n,r,s,o,a,l,c,d,u){this.registerSdkService=e,this.accountCryptographicStateService=t,this.kdfService=i,this.accountService=n,this.masterPasswordService=r,this.stateProvider=s,this.logService=o,this.biometricsService=a,this.platformUtilsService=l,this.stateService=c,this.biometricStateService=d,this.v2UpgradeTokenStateService=u,this.onUnlockActions=[]}registerOnUnlockAction(e){this.onUnlockActions.push(e)}unlockWithPin(e,t){return rh(this,void 0,void 0,function*(){const i=performance.now();yield this.unlockWithMethod(e,{pinState:{pin:t}}),this.logService.measure(i,"Unlock","DefaultUnlockService","unlockWithPin")})}unlockWithMasterPassword(e,t){return rh(this,void 0,void 0,function*(){const i=performance.now();yield this.unlockWithMethod(e,{masterPasswordUnlock:{password:t,master_password_unlock:yield this.getMasterPasswordUnlockData(e)}}),yield this.setLegacyMasterKeyFromUnlockData(t,yield this.getMasterPasswordUnlockData(e),e),this.logService.measure(i,"Unlock","DefaultUnlockService","unlockWithMasterPassword")})}unlockWithBiometrics(e){return rh(this,void 0,void 0,function*(){const t=yield this.biometricsService.unlockWithBiometricsForUser(e);if(!t)throw new Error("Failed to unlock with biometrics");const i=performance.now();yield this.unlockWithMethod(e,{decryptedKey:{decrypted_user_key:t.toSdk()}}),this.logService.measure(i,"Unlock","DefaultUnlockService","unlockWithBiometrics")})}unlockWithKeyConnector(e,t){return rh(this,void 0,void 0,function*(){const i=performance.now();yield this.unlockWithMethod(e,{keyConnectorUrl:{url:t.url,key_connector_key_wrapped_user_key:t.keyConnectorKeyWrappedUserKey}}),this.logService.measure(i,"Unlock","DefaultUnlockService","unlockWithKeyConnector")})}unlockWithDecryptedUserKey(e,t){return rh(this,void 0,void 0,function*(){const i=performance.now();yield this.unlockWithMethod(e,{decryptedKey:{decrypted_user_key:t.toSdk()}}),this.logService.measure(i,"Unlock","DefaultUnlockService","unlockWithDecryptedUserKey")})}unlockWithMethod(e,t){return rh(this,void 0,void 0,function*(){yield(0,u._)(this.registerSdkService.registerClient$(e).pipe((0,p.T)(i=>rh(this,void 0,void 0,function*(){const n={stack:[],error:void 0,hasError:!1};try{if(!i)throw new Error("SDK not available");const r=sh(n,i.take(),!1);yield r.value.crypto().initialize_user_crypto({userId:(0,na.WD)(e),kdfParams:yield this.getKdfParams(e),email:yield this.getEmail(e),accountCryptographicState:yield this.getAccountCryptographicState(e),method:t,upgradeToken:yield this.getV2UpgradeToken(e)}),yield this.runOnUnlockSideEffects(e,r)}catch(r){n.error=r,n.hasError=!0}finally{oh(n)}}))))})}getAccountCryptographicState(e){return rh(this,void 0,void 0,function*(){const t=yield(0,u._)(this.accountCryptographicStateService.accountCryptographicState$(e));return(0,Se.x)(t,"Account cryptographic state is required"),t})}getKdfParams(e){return rh(this,void 0,void 0,function*(){const t=yield(0,u._)(this.kdfService.getKdfConfig$(e).pipe((0,p.T)(e=>null==e?void 0:e.toSdkConfig())));return(0,Se.x)(t,"KDF parameters are required"),t})}getEmail(e){return rh(this,void 0,void 0,function*(){const t=(yield(0,u._)(this.accountService.accounts$))[e].email;return(0,Se.x)(t,"Email is required"),t})}getMasterPasswordUnlockData(e){return rh(this,void 0,void 0,function*(){const t=yield(0,u._)(this.masterPasswordService.masterPasswordUnlockData$(e));return(0,Se.x)(t,"Master password unlock data is required"),t.toSdk()})}getV2UpgradeToken(e){return rh(this,void 0,void 0,function*(){var t;return null!==(t=yield(0,u._)(this.v2UpgradeTokenStateService.v2UpgradeToken$(e)))&&void 0!==t?t:void 0})}setLegacyMasterKeyFromUnlockData(e,t,i){return rh(this,void 0,void 0,function*(){(0,Se.x)(e,"password"),(0,Se.x)(t,"masterPasswordUnlockData"),(0,Se.x)(i,"userId"),this.logService.info("[DefaultUnlockService] Setting legacy master key from unlock data"),yield gs.B.Ready;const n=(new TextEncoder).encode(e),r=(new TextEncoder).encode(t.salt),s=ps.PureCrypto.derive_kdf_material(n,r,t.kdf);yield this.stateProvider.getUser(i,Mo).update(e=>new Mn.e(s))})}runOnUnlockSideEffects(e,t){return rh(this,void 0,void 0,function*(){const i=Mn.e.fromString(yield t.value.crypto().get_user_encryption_key());(yield(0,u._)(this.biometricStateService.biometricUnlockEnabled$(e)))&&(yield this.biometricsService.setBiometricProtectedUnlockKeyForUser(e,i)),(yield this.shouldStoreUserKeyAutoUnlock(e))&&(yield this.stateService.setUserKeyAutoUnlock(i.toBase64(),{userId:e})),yield this.stateProvider.setUserState(ml.T,!0,e);for(const t of this.onUnlockActions)yield t(e,i)})}shouldStoreUserKeyAutoUnlock(e){return rh(this,void 0,void 0,function*(){if(this.platformUtilsService.getClientType()===nh.s.Cli)return!0;const t=yield(0,u._)(this.stateProvider.getUserState$(Dn.z4,e).pipe((0,h.p)(e=>null!=e)));return t==Dn.Lw.Never})}},deps:[ta.vW,ls.h,I.zZ,N.D,Ae.O,b.v2,se.K,I.Zm,G.y,b.dw,I.vB,Zo]}),(0,Ue.F)({provide:E.y,useClass:class{constructor(e){this.messageListener=e,this.subscriptions=new Map}subscribe(e,t){this.subscriptions.set(e,this.messageListener.allMessages$.subscribe(e=>{t(e)}))}unsubscribe(e){const t=this.subscriptions.get(e);null==t||t.unsubscribe(),this.subscriptions.delete(e)}},deps:[ca.qk]}),(0,Ue.F)({provide:Dn.ep,useClass:Dn.rq,deps:[N.D,g.Ym,I.Lu,z.B,Je.m,I.vB,b.v2,se.K,Oe.de,Ko]}),(0,Ue.F)({provide:Dn.a6,useClass:Dn.a6,deps:[N.D,G.y,k.u,Dn.ep,is.Cc,se.K,g.FQ,g.k4]}),(0,Ue.F)({provide:Dn.nv,useExisting:Dn.a6}),(0,Ue.F)({provide:ui._,useClass:class{constructor(e,t,i,n){this.stateProvider=e,this.logService=t,this.policyService=i,this.environmentService=n,this.codeVerifierState=this.stateProvider.getGlobal(En),this.ssoState=this.stateProvider.getGlobal(Sn),this.orgSsoIdentifierState=this.stateProvider.getGlobal(kn),this.ssoEmailState=this.stateProvider.getGlobal(Rn),this.ssoRequiredCacheState=this.stateProvider.getGlobal(Fn),this.ssoRequiredCache$=this.ssoRequiredCacheState.state$}getCodeVerifier(){return(0,u._)(this.codeVerifierState.state$)}setCodeVerifier(e){return Tn(this,void 0,void 0,function*(){yield this.codeVerifierState.update(t=>e)})}getSsoState(){return(0,u._)(this.ssoState.state$)}setSsoState(e){return Tn(this,void 0,void 0,function*(){yield this.ssoState.update(t=>e)})}getOrganizationSsoIdentifier(){return(0,u._)(this.orgSsoIdentifierState.state$)}setOrganizationSsoIdentifier(e){return Tn(this,void 0,void 0,function*(){yield this.orgSsoIdentifierState.update(t=>e)})}getSsoEmail(){return(0,u._)(this.ssoEmailState.state$)}setSsoEmail(e){return Tn(this,void 0,void 0,function*(){yield this.ssoEmailState.update(t=>e)})}clearSsoEmail(){return Tn(this,void 0,void 0,function*(){yield this.ssoEmailState.update(e=>null)})}getActiveUserOrganizationSsoIdentifier(e){return(0,u._)(this.userOrgSsoIdentifierState(e).state$)}setActiveUserOrganizationSsoIdentifier(e,t){return Tn(this,void 0,void 0,function*(){void 0!==t?yield this.userOrgSsoIdentifierState(t).update(t=>e):this.logService.error("Tried to set a user organization sso identifier with an undefined user id.")})}userOrgSsoIdentifierState(e){return this.stateProvider.getUser(e,Qn)}addToSsoRequiredCache(e,t){return Tn(this,void 0,void 0,function*(){const i=yield this.makeEntry(e,t);yield this.ssoRequiredCacheState.update(e=>null==e?[i]:[...e,i],{shouldUpdate:e=>null==e||!e.some(e=>this.entriesMatch(e,i))})})}removeFromSsoRequiredCacheIfPresent(e,t){return Tn(this,void 0,void 0,function*(){const i=yield this.makeEntry(e,t);yield this.ssoRequiredCacheState.update(e=>{var t;return null!==(t=null==e?void 0:e.filter(e=>!this.entriesMatch(e,i)))&&void 0!==t?t:e},{shouldUpdate:e=>null!=e&&e.some(e=>this.entriesMatch(e,i))})})}updateSsoRequiredCache(e,t){return Tn(this,void 0,void 0,function*(){(yield(0,u._)(this.policyService.policyAppliesToUser$(_e.tt.RequireSso,t)))?yield this.addToSsoRequiredCache(e,t):yield this.removeFromSsoRequiredCacheIfPresent(e,t)})}makeEntry(e,t){return Tn(this,void 0,void 0,function*(){const i=(yield(0,u._)(this.environmentService.getEnvironment$(t))).getWebVaultUrl();return{email:e.toLowerCase(),webVaultUrl:i}})}entriesMatch(e,t){return e.email===t.email&&e.webVaultUrl===t.webVaultUrl}},deps:[b.v2,se.K,Je.m,yo.v]}),(0,Ue.F)({provide:b.dw,useClass:th.mH,deps:[ra.zq,Oe.G$,th.Bz]}),(0,Ue.F)({provide:uh.DX,useClass:uh.n_,deps:[S.k,Q.p,us.$9,I.Lu,As.N,I.zZ,je.G,Pu.b,se.K]}),(0,Ue.F)({provide:uh.SF,useClass:uh.Rf,deps:[je.G]}),(0,Ue.F)({provide:uh.to,useClass:uh.zo,deps:[Q.p,uh.SF,us.$9,I.Lu,As.N,_.YD,I.zZ,Pu.b]}),(0,Ue.F)({provide:uh.Os,useClass:uh.C8,deps:[uh.DX,uh.to,N.D]}),(0,Ue.F)({provide:xd.S,useClass:class{constructor(e,t){this.logService=e,this.i18nService=t,this.immediateSearchLocales=["zh-CN","zh-TW","ja","ko","vi"],this.immediateSearchQueryRegex=/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}]/u,this.defaultSearchableMinLength=2,this.searchableMinLength=this.defaultSearchableMinLength,this._isCipherSearching$=new Tt.t(!1),this.isCipherSearching$=this._isCipherSearching$.asObservable(),this._isSendSearching$=new Tt.t(!1),this.isSendSearching$=this._isSendSearching$.asObservable(),this.lunrSearchService=new Uu(this.logService),this.i18nService.locale$.subscribe(e=>{-1!==this.immediateSearchLocales.indexOf(e)?this.searchableMinLength=1:this.searchableMinLength=this.defaultSearchableMinLength})}isSearchable(e){return Yu(this,void 0,void 0,function*(){return null!=e&&""!==e.trim()&&(e=Xu(e),!!this.immediateSearchQueryRegex.test(e)||e.length>=this.searchableMinLength)})}isLunrQuery(e){return null!=e&&e.length>1&&0===e.indexOf(">")}searchCiphers(e,t,i,n){return Yu(this,void 0,void 0,function*(){if(null==i||""===i.trim())return n;this._isCipherSearching$.next(!0);const r=performance.now();if(i=Xu(i.trim().toLowerCase()),!(yield this.isSearchable(i)))return this._isCipherSearching$.next(!1),n;if(this.isLunrQuery(i)){const r=yield this.lunrSearchService.searchCiphers(e,t,i,n);return this._isCipherSearching$.next(!1),r}{const e=this.searchCiphersBasic(n,i);return this.logService.measure(r,"Vault","SearchService","basic search complete"),this._isCipherSearching$.next(!1),e}})}searchCiphersBasic(e,t){const i=Xu(t.trim().toLowerCase()).split(/\s+/).filter(Boolean);return e.filter(e=>i.every(t=>{var i,n;if(null!=e.name&&Xu(e.name.toLowerCase()).indexOf(t)>-1)return!0;if(t.length>=8&&(0,na.zw)(e.id).startsWith(t))return!0;const r=au.n.subtitle(e);if(null!=r&&Xu(r.toLowerCase()).indexOf(t)>-1)return!0;const s=au.n.getLogin(e);if(s&&(null===(i=s.uris)||void 0===i?void 0:i.length)&&(null===(n=s.uris)||void 0===n?void 0:n.some(e=>{if(!(null==e?void 0:e.uri))return!1;const i=au.n.getUriHostname(e);return void 0!==i&&Xu(i.toLowerCase()).indexOf(t)>-1})))return!0;const o=au.n.getNotes(e);return!!(o&&Xu(o.toLowerCase()).indexOf(t)>-1)}))}searchSends(e,t){if(this._isSendSearching$.next(!0),null===(t=Xu(t.trim().toLocaleLowerCase())))return this._isSendSearching$.next(!1),e;const i=[],n=[];return e.forEach(e=>{var r,s,o;null!=e.name&&e.name.toLowerCase().indexOf(t)>-1?i.push(e):(t.length>=8&&(e.id.startsWith(t)||e.accessId.toLocaleLowerCase().startsWith(t)||null!=(null===(r=e.file)||void 0===r?void 0:r.id)&&e.file.id.startsWith(t))||null!=e.notes&&e.notes.toLowerCase().indexOf(t)>-1||null!=(null===(s=e.text)||void 0===s?void 0:s.text)&&e.text.text.toLowerCase().indexOf(t)>-1||null!=(null===(o=e.file)||void 0===o?void 0:o.fileName)&&e.file.fileName.toLowerCase().indexOf(t)>-1)&&n.push(e)}),this._isSendSearching$.next(!1),i.concat(n)}},deps:[se.K,he.W]}),(0,Ue.F)({provide:Sa,useClass:Sa,deps:[je.G,qo.Y]}),(0,Ue.F)({provide:ma,useClass:ma,deps:[je.G,se.K,G.y]}),(0,Ue.F)({provide:wa,useClass:Ia,deps:[]}),(0,Ue.F)({provide:aa,useClass:la,deps:[]}),(0,Ue.F)({provide:aa,useClass:la,deps:[]}),(0,Ue.F)({provide:class{},useClass:class{constructor(){this.notificationClicked$=(0,Lr.$)(()=>new Error("Notification clicked is not supported."))}create(e){return Ec(this,void 0,void 0,function*(){throw new Error("Create OS Notification unsupported.")})}clear(e){throw new Error("Clear OS Notification unsupported.")}isSupported(){return!1}},deps:[]}),(0,Ue.F)({provide:an,useClass:an,deps:[b.v2]}),(0,Ue.F)({provide:si,useClass:class{constructor(e,t,i,n,r){this.accountService=e,this.authService=t,this.masterPasswordService=i,this.messagingService=n,this.pendingAuthRequestsState=r}activeUserMeetsConditionsToShowApprovalDialog(e){return rn(this,void 0,void 0,function*(){if((yield(0,u._)(this.accountService.activeAccount$.pipe(f.bB)))!==e)return!1;if((yield(0,u._)(this.authService.activeAccountStatus$))!==m.J.Unlocked)return!1;return(yield(0,u._)(this.masterPasswordService.forceSetPasswordReason$(e)))===re.n.None})}setupUnlockListenersForProcessingAuthRequests(e){this.accountService.activeAccount$.pipe((0,p.T)(e=>null==e?void 0:e.id),(0,$i.F)(),(0,h.p)(e=>null!=e),(0,jt.n)(e=>this.authService.authStatusFor$(e).pipe((0,_i.s)(1))),(0,h.p)(e=>e===m.J.Unlocked),(0,P.M)(()=>{this.processPendingAuthRequests()}),(0,en.Q)(e)).subscribe(),this.authService.activeAccountStatus$.pipe((0,tn.Z)(null),(0,nn.J)(),(0,h.p)(([e,t])=>e!==m.J.Unlocked&&t===m.J.Unlocked),(0,en.Q)(e)).subscribe(()=>{this.processPendingAuthRequests()})}processPendingAuthRequests(){return rn(this,void 0,void 0,function*(){var e;const t=yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6));if((yield(0,u._)(this.masterPasswordService.forceSetPasswordReason$(t)))!==re.n.None)return;yield this.pendingAuthRequestsState.pruneOlderThan(9e5);const i=null!==(e=yield(0,u._)(this.pendingAuthRequestsState.getAll$()))&&void 0!==e?e:[];if(i.length>0){i.some(e=>e.userId===t)&&this.messagingService.send("openLoginApproval")}})}handleAuthRequestNotificationClicked(e){return rn(this,void 0,void 0,function*(){throw new Error("handleAuthRequestNotificationClicked() not implemented for this client")})}},deps:[N.D,k.u,Ae.L,oe.U,an]}),(0,Ue.F)({provide:Ne.zh,useClass:Ne.wG,deps:[je.G,_.Ki,b.v2,v.k4,_.uB,Je.N,k.u,N.D]}),(0,Ue.F)({provide:U,useClass:class{constructor(e,t,i,n,r,s,o,a,l,c,d,u,h,A){this.logService=e,this.syncService=t,this.appIdService=i,this.environmentService=n,this.logoutCallback=r,this.messagingService=s,this.accountService=o,this.signalRConnectionService=a,this.authService=l,this.webPushConnectionService=c,this.authRequestAnsweringService=d,this.configService=u,this.autoConfirmService=h,this.billingAccountProfileStateService=A,this.activitySubject=new Tt.t("active"),this.notifications$=this.accountService.accounts$.pipe((0,p.T)(e=>{const t=Object.entries(e).filter(([e,t])=>""!==t.email||t.emailVerified).map(([e,t])=>e);return new Set(t)}),(0,_t.pn)(e=>this.userNotifications$(e).pipe((0,p.T)(t=>[t,e]))),(0,go.u)())}userNotifications$(e){return this.environmentService.getEnvironment$(e).pipe((0,p.T)(e=>e.getNotificationsUrl()),(0,$i.F)(),(0,jt.n)(t=>"http://-"===t?fa.w:this.userNotificationsHelper$(e,t)))}userNotificationsHelper$(e,t){return this.hasAccessToken$(e).pipe((0,jt.n)(e=>e?this.activitySubject:fa.w),(0,jt.n)(t=>"inactive"===t?fa.w:this.webPushConnectionService.supportStatus$(e)),(i={supported:i=>(this.logService.info("Using WebPush for server notifications"),i.notifications$.pipe((0,Wr.W)(i=>(this.logService.warning("Issue with web push, falling back to SignalR",i),this.connectSignalR$(e,t))))),notSupported:()=>(this.logService.info("Using SignalR for server notifications"),this.connectSignalR$(e,t))},(0,jt.n)((e,t)=>"supported"===e.type?i.supported(e.service,t):i.notSupported(e.reason,t))));var i}connectSignalR$(e,t){return this.signalRConnectionService.connect$(e,t).pipe((0,h.p)(e=>"ReceiveMessage"===e.type),(0,p.T)(e=>e.message))}hasAccessToken$(e){return this.authService.authStatusFor$(e).pipe((0,p.T)(e=>e===m.J.Locked||e===m.J.Unlocked),(0,$i.F)())}processNotification(e,t){return ba(this,void 0,void 0,function*(){var i,n;const r=yield this.appIdService.getAppId();if(null==e||e.contextId===r)return;const s=(null===(i=e.payload)||void 0===i?void 0:i.userId)||(null===(n=e.payload)||void 0===n?void 0:n.UserId);if(null!=s&&s!==t)return;if((yield(0,u._)(this.accountService.activeAccount$.pipe((0,p.T)(e=>null==e?void 0:e.id))))===t||Ca.has(e.type))switch(e.type){case Yt._n.SyncCipherCreate:case Yt._n.SyncCipherUpdate:yield this.syncService.syncUpsertCipher(e.payload,e.type===Yt._n.SyncCipherUpdate,t);break;case Yt._n.SyncCipherDelete:case Yt._n.SyncLoginDelete:yield this.syncService.syncDeleteCipher(e.payload,t);break;case Yt._n.SyncFolderCreate:case Yt._n.SyncFolderUpdate:yield this.syncService.syncUpsertFolder(e.payload,e.type===Yt._n.SyncFolderUpdate,t);break;case Yt._n.SyncFolderDelete:yield this.syncService.syncDeleteFolder(e.payload,t);break;case Yt._n.SyncVault:case Yt._n.SyncCiphers:case Yt._n.SyncSettings:yield this.syncService.fullSync(!1);break;case Yt._n.SyncOrganizations:yield this.syncService.fullSync(!0);break;case Yt._n.SyncOrgKeys:yield this.syncService.fullSync(!0),this.activitySubject.next("inactive"),this.activitySubject.next("active");break;case Yt._n.LogOut:{this.logService.info("[Notifications Service] Received logout notification");const i=e.payload,n=yield(0,u._)(this.configService.getFeatureFlag$(Kr.TO.NoLogoutOnKdfChange)),r=yield(0,u._)(this.configService.getFeatureFlag$(Kr.TO.NoLogoutOnKeyUpgradeRotation));n&&i.reason===Yt.Oc.KdfChange?this.logService.info("[Notifications Service] Skipping logout due to no logout KDF change"):r&&i.reason===Yt.Oc.KeyRotation?(this.logService.info("[Notifications Service] Skipping logout due to no logout key rotation. Performing full sync."),yield this.syncService.fullSync(!0)):yield this.logoutCallback("logoutNotification",t);break}case Yt._n.SyncSendCreate:case Yt._n.SyncSendUpdate:yield this.syncService.syncUpsertSend(e.payload,e.type===Yt._n.SyncSendUpdate);break;case Yt._n.SyncSendDelete:yield this.syncService.syncDeleteSend(e.payload);break;case Yt._n.AuthRequest:if(this.authRequestAnsweringService.receivedPendingAuthRequest)try{yield this.authRequestAnsweringService.receivedPendingAuthRequest(e.payload.userId,e.payload.id)}catch(o){this.logService.error(`Failed to process auth request notification: ${o}`)}else this.messagingService.send("openLoginApproval",{notificationId:e.payload.id});break;case Yt._n.SyncOrganizationStatusChanged:case Yt._n.SyncOrganizationCollectionSettingChanged:yield this.syncService.fullSync(!0);break;case Yt._n.OrganizationBankAccountVerified:this.messagingService.send("organizationBankAccountVerified",{organizationId:e.payload.organizationId});break;case Yt._n.ProviderBankAccountVerified:this.messagingService.send("providerBankAccountVerified",{providerId:e.payload.providerId,adminId:e.payload.adminId});break;case Yt._n.SyncPolicy:yield this.syncService.fullSync(!0);break;case Yt._n.AutoConfirmMember:yield this.autoConfirmService.autoConfirmUser(e.payload.userId,e.payload.targetUserId,e.payload.targetOrganizationUserId,e.payload.organizationId);break;case Yt._n.PremiumStatusChanged:{const t=e.payload,i=yield(0,u._)(this.billingAccountProfileStateService.hasPremiumFromAnyOrganization$(t.userId));yield this.billingAccountProfileStateService.setHasPremium(t.premium,i,t.userId);break}}})}startListening(){return this.notifications$.pipe((0,ya.Z)(e=>ba(this,[e],void 0,function*([e,t]){try{yield this.processNotification(e,t)}catch(i){this.logService.error(`Problem processing notification of type ${e.type}`,i)}}))).subscribe({error:e=>this.logService.error("Fatal error in server notifications$ observable, notifications won't be recieved anymore.",e)})}reconnectFromActivity(){this.activitySubject.next("active")}disconnectFromInactivity(){this.activitySubject.next("inactive")}},deps:[se.K,mc.H,qo.Y,yo.v,Oe.dZ,oe.U,N.D,ma,k.u,wa,si,O.w,Ne.zh,gr.Q]}),(0,Ue.F)({provide:hs.R,useClass:class{constructor(e){var t;if(null==(null===(t=null==e?void 0:e.crypto)||void 0===t?void 0:t.subtle)){const e=document.createElement("div");e.setAttribute("role","alert"),e.appendChild(document.createTextNode("You are not using a secure context which is required for the Subtle Crypto API to work. "));const t=document.createElement("a");t.appendChild(document.createTextNode("You need to enable HTTPS!")),t.href="https://github.com/dani-garcia/vaultwarden/wiki/Enabling-HTTPS",e.appendChild(t);const i=document.getElementsByClassName("spinner-container")[0];throw i.setAttribute("class","toast-center-center tw-fixed tw-w-full tw-max-w-md tw-mx-auto tw-p-2 tw-ps-4 tw-text-main tw-bg-warning-100 tw-border-solid tw-border-2 tw-border-warning-700 tw-rounded-2xl"),i.replaceChild(e,i.firstChild),new Error("Could not instantiate WebCryptoFunctionService. Could not locate Subtle crypto.")}this.crypto=e.crypto,this.subtle=this.crypto.subtle}pbkdf2(e,t,i,n){return Cs(this,void 0,void 0,function*(){const r="sha256"===i?256:512,s=this.toBuf(e),o={name:"PBKDF2",salt:this.toBuf(t),iterations:n,hash:{name:this.toWebCryptoAlgorithm(i)}},a=yield this.subtle.importKey("raw",s,{name:"PBKDF2"},!1,["deriveBits"]),l=yield this.subtle.deriveBits(o,a,r);return new Uint8Array(l)})}hkdf(e,t,i,n,r){return Cs(this,void 0,void 0,function*(){const s={name:"HKDF",salt:this.toBuf(t),info:this.toBuf(i),hash:{name:this.toWebCryptoAlgorithm(r)}},o=yield this.subtle.importKey("raw",this.toBuf(e),{name:"HKDF"},!1,["deriveBits"]),a=yield this.subtle.deriveBits(s,o,8*n);return new Uint8Array(a)})}hkdfExpand(e,t,i,n){return Cs(this,void 0,void 0,function*(){const r="sha256"===n?32:64;if(i>255*r)throw new Error("outputByteSize is too large.");if(new Uint8Array(e).length<r)throw new Error("prk is too small.");const s=this.toBuf(t),o=new Uint8Array(s);let a=0,l=new Uint8Array(0);const c=Math.ceil(i/r),d=new Uint8Array(c*r);for(let t=0;t<c;t++){const r=new Uint8Array(l.length+o.length+1);if(r.set(l),r.set(o,l.length),r.set([t+1],r.length-1),l=new Uint8Array(yield this.hmac(r,e,n)),d.set(l,a),a+=l.length,a>=i)break}return d.slice(0,i)})}hash(e,t){return Cs(this,void 0,void 0,function*(){if("md5"===t){const t=bs.md.md5.create(),i=this.toByteString(e);return t.update(i,"raw"),zt.A.fromByteStringToArray(t.digest().data)}const i=this.toBuf(e),n=yield this.subtle.digest({name:this.toWebCryptoAlgorithm(t)},i);return new Uint8Array(n)})}rsaEncrypt(e,t,i){return Cs(this,void 0,void 0,function*(){return yield gs.B.Ready,ps.PureCrypto.rsa_encrypt_data(e,t)})}rsaDecrypt(e,t,i){return Cs(this,void 0,void 0,function*(){return yield gs.B.Ready,ps.PureCrypto.rsa_decrypt_data(e,t)})}rsaExtractPublicKey(e){return Cs(this,void 0,void 0,function*(){return yield gs.B.Ready,ps.PureCrypto.rsa_extract_public_key(e)})}rsaGenerateKeyPair(e){return Cs(this,void 0,void 0,function*(){yield gs.B.Ready;const e=ps.PureCrypto.rsa_generate_keypair();return[yield this.rsaExtractPublicKey(e),e]})}aesGenerateKey(){return Cs(this,arguments,void 0,function*(e=960){if(512===e){const e=yield this.aesGenerateKey(256),t=yield this.aesGenerateKey(256);return new Uint8Array([...e,...t])}const t={name:"AES-CBC",length:e},i=yield this.subtle.generateKey(t,!0,["encrypt","decrypt"]),n=yield this.subtle.exportKey("raw",i);return new Uint8Array(n)})}randomBytes(e){const t=new Uint8Array(e);return this.crypto.getRandomValues(t),Promise.resolve(t)}toBuf(e){let t;return t="string"==typeof e?zt.A.fromUtf8ToArray(e):e,t}toByteString(e){let t;return t="string"==typeof e?bs.util.encodeUtf8(e):zt.A.fromArrayToByteString(this.toBuf(e)),t}toWebCryptoAlgorithm(e){if("md5"===e)throw new Error("MD5 is not supported in WebCrypto.");return"sha1"===e?"SHA-1":"sha256"===e?"SHA-256":"SHA-512"}hmac(e,t,i){return Cs(this,void 0,void 0,function*(){const n={name:"HMAC",hash:{name:this.toWebCryptoAlgorithm(i)}},r=yield this.subtle.importKey("raw",this.toBuf(t),n,!1,["sign"]),s=yield this.subtle.sign(n,r,this.toBuf(e));return new Uint8Array(s)})}},deps:[Oe.jf]}),(0,Ue.F)({provide:As.N,useClass:class{constructor(e,t,i){this.cryptoFunctionService=e,this.logService=t,this.logMacFailures=i}encryptString(e,t){return ys(this,void 0,void 0,function*(){return null==e?(this.logService.warning("[EncryptService] WARNING: encryptString called with null value. Returning null, but this behavior is deprecated and will be removed."),null):(yield gs.B.Ready,new fn.k(ps.PureCrypto.symmetric_encrypt_string(e,t.toEncoded())))})}encryptBytes(e,t){return ys(this,void 0,void 0,function*(){return yield gs.B.Ready,new fn.k(ps.PureCrypto.symmetric_encrypt_bytes(e,t.toEncoded()))})}encryptFileData(e,t){return ys(this,void 0,void 0,function*(){return yield gs.B.Ready,new fs(ps.PureCrypto.symmetric_encrypt_filedata(e,t.toEncoded()))})}decryptString(e,t){return ys(this,void 0,void 0,function*(){if(e.encryptionType===Pn.Qd.AesCbc256_B64)throw new Error("Decryption of AesCbc256_B64 encrypted data is disabled.");return yield gs.B.Ready,ps.PureCrypto.symmetric_decrypt_string(e.encryptedString,t.toEncoded())})}decryptBytes(e,t){return ys(this,void 0,void 0,function*(){if(e.encryptionType===Pn.Qd.AesCbc256_B64)throw new Error("Decryption of AesCbc256_B64 encrypted data is disabled.");return yield gs.B.Ready,ps.PureCrypto.symmetric_decrypt_bytes(e.encryptedString,t.toEncoded())})}decryptFileData(e,t){return ys(this,void 0,void 0,function*(){if(e.encryptionType===Pn.Qd.AesCbc256_B64)throw new Error("Decryption of AesCbc256_B64 encrypted data is disabled.");return yield gs.B.Ready,ps.PureCrypto.symmetric_decrypt_filedata(e.buffer,t.toEncoded())})}wrapDecapsulationKey(e,t){return ys(this,void 0,void 0,function*(){if(null==e)throw new Error("No decapsulation key provided for wrapping.");if(null==t)throw new Error("No wrappingKey provided for wrapping.");return yield gs.B.Ready,new fn.k(ps.PureCrypto.wrap_decapsulation_key(e,t.toEncoded()))})}wrapEncapsulationKey(e,t){return ys(this,void 0,void 0,function*(){if(null==e)throw new Error("No encapsulation key provided for wrapping.");if(null==t)throw new Error("No wrappingKey provided for wrapping.");return yield gs.B.Ready,new fn.k(ps.PureCrypto.wrap_encapsulation_key(e,t.toEncoded()))})}wrapSymmetricKey(e,t){return ys(this,void 0,void 0,function*(){if(null==e)throw new Error("No keyToBeWrapped provided for wrapping.");if(null==t)throw new Error("No wrappingKey provided for wrapping.");return yield gs.B.Ready,new fn.k(ps.PureCrypto.wrap_symmetric_key(e.toEncoded(),t.toEncoded()))})}unwrapDecapsulationKey(e,t){return ys(this,void 0,void 0,function*(){if(null==e)throw new Error("No wrappedDecapsulationKey provided for unwrapping.");if(null==t)throw new Error("No wrappingKey provided for unwrapping.");if(e.encryptionType===Pn.Qd.AesCbc256_B64)throw new Error("Decryption of AesCbc256_B64 encrypted data is disabled.");return yield gs.B.Ready,ps.PureCrypto.unwrap_decapsulation_key(e.encryptedString,t.toEncoded())})}unwrapEncapsulationKey(e,t){return ys(this,void 0,void 0,function*(){if(null==e)throw new Error("No wrappedEncapsulationKey provided for unwrapping.");if(null==t)throw new Error("No wrappingKey provided for unwrapping.");if(e.encryptionType===Pn.Qd.AesCbc256_B64)throw new Error("Decryption of AesCbc256_B64 encrypted data is disabled.");return yield gs.B.Ready,ps.PureCrypto.unwrap_encapsulation_key(e.encryptedString,t.toEncoded())})}unwrapSymmetricKey(e,t){return ys(this,void 0,void 0,function*(){if(null==e)throw new Error("No keyToBeUnwrapped provided for unwrapping.");if(null==t)throw new Error("No wrappingKey provided for unwrapping.");if(e.encryptionType===Pn.Qd.AesCbc256_B64)throw new Error("Decryption of AesCbc256_B64 encrypted data is disabled.");return yield gs.B.Ready,new Mn.e(ps.PureCrypto.unwrap_symmetric_key(e.encryptedString,t.toEncoded()))})}hash(e,t){return ys(this,void 0,void 0,function*(){const i=yield this.cryptoFunctionService.hash(e,t);return zt.A.fromBufferToB64(i)})}encapsulateKeyUnsigned(e,t){return ys(this,void 0,void 0,function*(){if(null==e)throw new Error("No sharedKey provided for encapsulation");if(null==t)throw new Error("No encapsulationKey provided for encapsulation");return yield gs.B.Ready,new fn.k(ps.PureCrypto.encapsulate_key_unsigned(e.toEncoded(),t))})}decapsulateKeyUnsigned(e,t){return ys(this,void 0,void 0,function*(){if(null==e)throw new Error("No encryptedSharedKey provided for decapsulation");if(null==t)throw new Error("No decapsulationKey provided for decapsulation");yield gs.B.Ready;const i=ps.PureCrypto.decapsulate_key_unsigned(e.encryptedString,t);return new Mn.e(i)})}},deps:[hs.R,se.K,Oe.Pn]}),(0,Ue.F)({provide:y.fH,useClass:class{constructor(e,t,i,n,r){this.apiService=e,this.stateProvider=t,this.logService=i,this.authService=n,this.taskSchedulerService=r,this.inited=!1}init(e){this.inited||(this.inited=!0,this.taskSchedulerService.registerTaskHandler(is.fq.eventUploadsInterval,()=>this.uploadEvents()),e&&(this.uploadEvents(),this.taskSchedulerService.setInterval(is.fq.eventUploadsInterval,6e4)))}uploadEvents(e){return rs(this,void 0,void 0,function*(){if(e||(e=yield(0,u._)(this.stateProvider.activeUserId$)),!e)return;if(!(yield(0,u._)(this.authService.authStatusFor$(e).pipe((0,p.T)(e=>e===m.J.Unlocked)))))return;const t=yield this.takeEvents(e);if(null==t||0===t.length)return;const i=t.map(e=>{const t=new ns;return t.type=e.type,t.cipherId=e.cipherId,t.date=e.date,t.organizationId=e.organizationId,t});try{yield this.apiService.postEventsCollect(i,e)}catch(n){this.logService.error(n),yield this.stateProvider.setUserState(_r.k,t,e)}})}takeEvents(e){return rs(this,void 0,void 0,function*(){let t=null;return yield this.stateProvider.getUser(e,_r.k).update(e=>(t=null!=e?e:[],[])),t})}},deps:[je.G,b.v2,se.K,k.u,is.Cc]}),(0,Ue.F)({provide:y.c_,useClass:class{constructor(e,t,i,n,r,s){this.cipherService=e,this.stateProvider=t,this.organizationService=i,this.eventUploadService=n,this.authService=r,this.accountService=s,this.getOrgIds=e=>{var t,i;return null!==(i=null===(t=null==e?void 0:e.filter(e=>e.useEvents))||void 0===t?void 0:t.map(e=>e.id))&&void 0!==i?i:[]}}collectMany(e,t){return es(this,arguments,void 0,function*(e,t,i=!1){const n=yield(0,u._)((0,f.F6)(this.accountService.activeAccount$)),r=this.stateProvider.getUser(n,_r.k);if(!(yield this.shouldUpdate(n,null,e,t)))return;const s=this.organizationService.organizations$(n).pipe((0,p.T)(e=>this.getOrgIds(e)),(0,p.T)(i=>t.filter(e=>i.includes(e.organizationId)).map(t=>({type:e,cipherId:t.id,date:(new Date).toISOString(),organizationId:t.organizationId}))));yield r.update((e,t)=>[...null!=e?e:[],...t],{combineLatestWith:s}),i&&(yield this.eventUploadService.uploadEvents())})}collect(e){return es(this,arguments,void 0,function*(e,t=null,i=!1,n=null){const r=yield(0,u._)((0,f.F6)(this.accountService.activeAccount$)),s=this.stateProvider.getUser(r,_r.k);if(!(yield this.shouldUpdate(r,n,e,void 0,t)))return;const o=new $r.R;o.type=e,o.cipherId=t,o.date=(new Date).toISOString(),o.organizationId=n,yield s.update(e=>((e=null!=e?e:[]).push(o),e)),i&&(yield this.eventUploadService.uploadEvents())})}shouldUpdate(e){return es(this,arguments,void 0,function*(e,t=null,i=null,n=[],r){const s=(0,Si.H)(this.cipherService.get(r,e)),o=this.organizationService.organizations$(e).pipe((0,p.T)(e=>this.getOrgIds(e))),[a,l,c]=yield(0,u._)((0,Hr.y)(this.authService.activeAccountStatus$,o,s));if(a!=m.J.Unlocked)return!1;if(null==l||0==l.length)return!1;if(i==qr.B.User_ClientExportedVault)return!0;if(null!=c&&n.push(new Jr.f(c)),(null==n||0==n.length)&&null==t)return!1;if(null!=n&&n.length>0){return n.filter(e=>l.includes(e.organizationId)).length>0}return!(null!=t&&!l.includes(t))})}},deps:[Q.p,b.v2,v.PV,y.fH,k.u,N.D]}),(0,Ue.F)({provide:Je.N,useFactory:(e,t,i,n,r)=>new Nt.XS(e,t,i,n,()=>r.get(O.w)),deps:[b.v2,v.PV,N.D,Ze,B.zZn]}),(0,Ue.F)({provide:Je.m,useExisting:Je.N}),(0,Ue.F)({provide:Ze,useFactory:(e,t,i)=>new Ot(e,()=>i.get(na.K5),t),deps:[b.v2,v.PV,B.zZn]}),(0,Ue.F)({provide:He.m,useClass:class{constructor(e,t,i,n){this.policyService=e,this.newPolicyService=t,this.apiService=i,this.accountService=n}getPolicy(e,t){return Kt(this,void 0,void 0,function*(){const i=yield this.apiService.send("GET","/organizations/"+e+"/policies/"+t,null,!0,!0);return new Wt.i(i)})}getPolicies(e){return Kt(this,void 0,void 0,function*(){const t=yield this.apiService.send("GET","/organizations/"+e+"/policies",null,!0,!0);return new yt.s(t,Wt.i)})}getPoliciesByToken(e,t,i,n){return Kt(this,void 0,void 0,function*(){const r=yield this.apiService.send("GET","/organizations/"+e+"/policies/token?token="+encodeURIComponent(t)+"&email="+zt.A.encodeRFC3986URIComponent(i)+"&organizationUserId="+n,null,!1,!0);return Vt.P.fromListResponse(new yt.s(r,Wt.i))})}getPoliciesByInviteLinkCode(e){return Kt(this,void 0,void 0,function*(){const t=yield this.apiService.send("POST","/organizations/invite-link/policies",{code:e},!1,!0);return Vt.P.fromListResponse(new yt.s(t,Wt.i))})}getMasterPasswordPolicyResponseForOrgUser(e){return Kt(this,void 0,void 0,function*(){const t=yield this.apiService.send("GET","/organizations/"+e+"/policies/master-password",null,!0,!0);return new Wt.i(t)})}getMasterPasswordPolicyOptsForOrgUser(e){return Kt(this,void 0,void 0,function*(){try{const t=yield this.getMasterPasswordPolicyResponseForOrgUser(e),i=Vt.P.fromResponse(t);return i?(0,u._)(this.accountService.activeAccount$.pipe(f.F6,(0,jt.n)(e=>this.policyService.masterPasswordPolicyOptions$(e,[i])),(0,p.T)(e=>null!=e?e:null))):null}catch(t){if(t instanceof Xt._&&t.statusCode===Yt.kG.NotFound)return null;throw t}})}putPolicy(e,t,i){return Kt(this,void 0,void 0,function*(){const n=yield this.apiService.send("PUT",`/organizations/${e}/policies/${t}`,i,!0,!0);yield this.handleResponse(n)})}handleResponse(e){return Kt(this,void 0,void 0,function*(){const t=yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6)),i=new Wt.i(e),n=new Lt.L(i);yield this.policyService.upsert(n,t),yield this.newPolicyService.upsert(n,t)})}},deps:[Je.N,Ze,je.G,N.D]}),(0,Ue.F)({provide:Ae.O,useClass:class{constructor(e,t,i,n,r){this.stateProvider=e,this.keyGenerationService=t,this.logService=i,this.cryptoFunctionService=n,this.accountService=r}userHasMasterPassword(e){return Po(this,void 0,void 0,function*(){(0,Se.x)(e,"userId");const t=yield(0,u._)(this.stateProvider.getUser(e,to).state$);return(yield(0,u._)(this.stateProvider.getUser(e,xo).state$))&&!t})}saltForUser$(e){return(0,Se.x)(e,"userId"),this.stateProvider.getUser(e,ko).state$.pipe((0,p.T)(e=>(0,Kr.Y6)(e,Kr.TO.PM31088_MasterPasswordServiceEmitSalt)),(0,jt.n)(t=>(0,uo.T)(()=>t,this.masterPasswordUnlockData$(e).pipe((0,jt.n)(t=>null!=t?(0,ln.of)(t.salt):(0,Si.H)(this.userHasMasterPassword(e)).pipe((0,jt.n)(t=>{if(t)throw new Error("Master password unlock data not found for user.");return this.accountService.accounts$.pipe((0,p.T)(t=>t[e].email),(0,p.T)(e=>this.emailToSalt(e)))})))),this.accountService.accounts$.pipe((0,p.T)(t=>t[e].email),(0,p.T)(e=>this.emailToSalt(e))))))}masterKey$(e){if(null==e)throw new Error("User ID is required.");return this.stateProvider.getUser(e,Mo).state$}forceSetPasswordReason$(e){if(null==e)throw new Error("User ID is required.");return this.stateProvider.getUser(e,Vo).state$.pipe((0,p.T)(e=>null!=e?e:re.n.None))}getMasterKeyEncryptedUserKey(e){return Po(this,void 0,void 0,function*(){if(null==e)throw new Error("User ID is required.");const t=yield(0,u._)(this.stateProvider.getUser(e,xo).state$);return fn.k.fromJSON(t)})}emailToSalt(e){return e.toLowerCase().trim()}setMasterKey(e,t){return Po(this,void 0,void 0,function*(){if(null==e)throw new Error("Master key is required.");if(null==t)throw new Error("User ID is required.");yield this.stateProvider.getUser(t,Mo).update(t=>e)})}clearMasterKey(e){return Po(this,void 0,void 0,function*(){if(null==e)throw new Error("User ID is required.");yield this.stateProvider.getUser(e,Mo).update(e=>null)})}setMasterKeyEncryptedUserKey(e,t){return Po(this,void 0,void 0,function*(){if(null==e||null==e.encryptedString)throw new Error("Encrypted Key is required.");if(null==t)throw new Error("User ID is required.");yield this.stateProvider.getUser(t,xo).update(t=>e.toJSON())})}setForceSetPasswordReason(e,t){return Po(this,void 0,void 0,function*(){if(null==e)throw new Error("Reason is required.");if(null==t)throw new Error("User ID is required.");(yield(0,u._)(this.forceSetPasswordReason$(t)))===re.n.AdminForcePasswordReset&&e!==re.n.None||(yield this.stateProvider.getUser(t,Vo).update(t=>e))})}decryptUserKeyWithMasterKey(e,t,i){return Po(this,void 0,void 0,function*(){if(null!=i||(i=yield this.getMasterKeyEncryptedUserKey(t)),null!=e||(e=yield(0,u._)(this.masterKey$(t))),null==e)throw new Error("No master key found.");yield gs.B.Ready;try{return new Mn.e(ps.PureCrypto.decrypt_user_key_with_master_key(i.toSdk(),e.toEncoded()))}catch(n){return this.logService.warning("Failed to decrypt user key with master key."),null}})}makeMasterPasswordAuthenticationData(e,t,i){return Po(this,void 0,void 0,function*(){if((0,Se.x)(e,"password"),(0,Se.x)(t,"kdf"),(0,Se.x)(i,"salt"),""===e)throw new Error("Master password cannot be empty.");i=i.toLowerCase().trim();const n=yield this.keyGenerationService.deriveKeyFromPassword(e,i,t),r=zt.A.fromBufferToB64(yield this.cryptoFunctionService.pbkdf2(n.toEncoded(),e,"sha256",1));return{salt:i,kdf:t,masterPasswordAuthenticationHash:r}})}makeMasterPasswordUnlockData(e,t,i,n){return Po(this,void 0,void 0,function*(){if((0,Se.x)(e,"password"),(0,Se.x)(t,"kdf"),(0,Se.x)(i,"salt"),(0,Se.x)(n,"userKey"),""===e)throw new Error("Master password cannot be empty.");i=i.toLowerCase().trim(),yield gs.B.Ready;const r=ps.PureCrypto.encrypt_user_key_with_master_password(n.toEncoded(),e,i,t.toSdkConfig());return new Os.k(i,t,r)})}unwrapUserKeyFromMasterPasswordUnlockData(e,t){return Po(this,void 0,void 0,function*(){(0,Se.x)(e,"password"),(0,Se.x)(t,"masterPasswordUnlockData"),yield gs.B.Ready;return new Mn.e(ps.PureCrypto.decrypt_user_key_with_master_password(t.masterKeyWrappedUserKey,e,t.salt,t.kdf.toSdkConfig()))})}setMasterPasswordUnlockData(e,t){return Po(this,void 0,void 0,function*(){(0,Se.x)(e,"masterPasswordUnlockData"),(0,Se.x)(t,"userId"),yield this.stateProvider.getUser(t,Go).update(()=>e.toJSON())})}clearMasterPasswordUnlockData(e){return Po(this,void 0,void 0,function*(){(0,Se.x)(e,"userId"),yield this.stateProvider.getUser(e,Go).update(()=>null)})}masterPasswordUnlockData$(e){return(0,Se.x)(e,"userId"),this.stateProvider.getUser(e,Go).state$}setLegacyMasterKeyFromUnlockData(e,t,i){return Po(this,void 0,void 0,function*(){(0,Se.x)(e,"password"),(0,Se.x)(t,"masterPasswordUnlockData"),(0,Se.x)(i,"userId");const n=yield this.keyGenerationService.deriveKeyFromPassword(e,t.salt,t.kdf);yield this.setMasterKey(n,i)})}},deps:[b.v2,us.$9,se.K,hs.R,N.D]}),(0,Ue.F)({provide:Ae.L,useExisting:Ae.O}),(0,Ue.F)({provide:Zo,useClass:class{constructor(e){this.stateProvider=e}v2UpgradeToken$(e){return(0,Se.x)(e,"userId"),this.stateProvider.getUser(e,Ho).state$}setV2UpgradeToken(e,t){return Jo(this,void 0,void 0,function*(){(0,Se.x)(e,"token"),(0,Se.x)(t,"userId"),yield this.stateProvider.getUser(t,Ho).update(()=>e)})}clearV2UpgradeToken(e){return Jo(this,void 0,void 0,function*(){(0,Se.x)(e,"userId"),yield this.stateProvider.getUser(e,Ho).update(()=>null,{shouldUpdate:e=>null!==e})})}},deps:[b.v2]}),(0,Ue.F)({provide:ao.b,useClass:class{constructor(e,t,i){this.masterPasswordService=e,this.keyService=t,this.logService=i}unlockWithMasterPassword(e,t){return lo(this,void 0,void 0,function*(){this.validateInput(e,t);const i=yield(0,u._)(this.masterPasswordService.masterPasswordUnlockData$(t));if(null==i)throw new Error("Master password unlock data was not found for the user "+t);const n=yield this.masterPasswordService.unwrapUserKeyFromMasterPasswordUnlockData(e,i);return yield this.setLegacyState(e,i,t),n})}proofOfDecryption(e,t){return lo(this,void 0,void 0,function*(){this.validateInput(e,t);try{const i=yield(0,u._)(this.masterPasswordService.masterPasswordUnlockData$(t));if(null==i)return this.logService.warning(`[DefaultMasterPasswordUnlockService] No master password unlock data found for user ${t} returning false.`),!1;return null!=(yield this.masterPasswordService.unwrapUserKeyFromMasterPasswordUnlockData(e,i))}catch(i){return(0,ps.isCryptoError)(i)&&"InvalidKey"===i.variant?this.logService.debug(`[DefaultMasterPasswordUnlockService] Error during proof of decryption for user ${t} returning false: ${i}`):this.logService.error(`[DefaultMasterPasswordUnlockService] Unexpected error during proof of decryption for user ${t} returning false: ${i}`),!1}})}validateInput(e,t){if(null==e||""===e)throw new Error("Master password is required");if(null==t)throw new Error("User ID is required")}setLegacyState(e,t,i){return lo(this,void 0,void 0,function*(){const n=yield this.keyService.makeMasterKey(e,t.salt,t.kdf);if(!n)throw new Error("Master key could not be created to set legacy master password state.");yield this.masterPasswordService.setMasterKey(n,i)})}},deps:[Ae.O,I.Lu,se.K]}),(0,Ue.F)({provide:Ws.K,useClass:class{constructor(e,t,i,n,r,s,o,a,l,c,d,u,A,p){this.masterPasswordService=t,this.keyService=i,this.apiService=n,this.tokenService=r,this.logService=s,this.organizationService=o,this.logoutCallback=a,this.stateProvider=l,this.configService=c,this.registerSdkService=d,this.accountCryptographicStateService=u,this.sdkService=A,this.userDecryptionOptionsService=p,this.convertAccountRequired$=e.activeAccount$.pipe((0,h.p)(e=>null!=e),(0,jt.n)(e=>(0,xt.z)([(0,ln.of)(e.id),this.organizationService.organizations$(e.id).pipe((0,h.p)(e=>null!=e)),this.stateProvider.getUserState$(to,e.id).pipe((0,h.p)(e=>null!=e)),r.hasAccessToken$(e.id).pipe((0,h.p)(e=>e))])),(0,jt.n)(e=>$s(this,[e],void 0,function*([e,t,i]){const n=yield this.tokenService.getIsExternal(e),r=null!=this.findManagingOrganization(t);return n&&r&&!i})))}setUsesKeyConnector(e,t){return $s(this,void 0,void 0,function*(){yield this.stateProvider.getUser(t,to).update(()=>e)})}getUsesKeyConnector(e){return $s(this,void 0,void 0,function*(){var t;return null!==(t=yield(0,u._)(this.stateProvider.getUserState$(to,e)))&&void 0!==t&&t})}migrateUser(e,t){return $s(this,void 0,void 0,function*(){if(yield(0,u._)(this.configService.getFeatureFlag$(Kr.TO.SdkKeyConnectorMigration)))try{yield(0,u._)(this.sdkService.userClient$(t).pipe((0,p.T)(t=>$s(this,void 0,void 0,function*(){const i={stack:[],error:void 0,hasError:!1};try{if(!t)throw new Error("SDK not available");const n=_s(i,t.take(),!1);return yield n.value.user_crypto_management().migrate_to_key_connector(e)}catch(n){i.error=n,i.hasError=!0}finally{eo(i)}}))))}catch(n){this.handleKeyConnectorError(n)}else{const i=yield(0,u._)(this.masterPasswordService.masterKey$(t)),r=new Js(zt.A.fromBufferToB64(i.inner().encryptionKey));try{yield this.apiService.postUserKeyToKeyConnector(e,r)}catch(n){this.handleKeyConnectorError(n)}yield this.apiService.postConvertToKeyConnector()}yield this.setUsesKeyConnector(!0,t),yield this.masterPasswordService.clearMasterPasswordUnlockData(t);const i=yield(0,u._)(this.userDecryptionOptionsService.userDecryptionOptionsById$(t));i.hasMasterPassword=!1,i.keyConnectorOption={keyConnectorUrl:e},yield this.userDecryptionOptionsService.setUserDecryptionOptionsById(t,i)})}setMasterKeyFromUrl(e,t){return $s(this,void 0,void 0,function*(){try{const i=yield this.apiService.getMasterKeyFromKeyConnector(e),n=zt.A.fromB64ToArray(i.key),r=new Mn.e(n);yield this.masterPasswordService.setMasterKey(r,t)}catch(i){this.handleKeyConnectorError(i)}})}getManagingOrganization(e){return $s(this,void 0,void 0,function*(){const t=yield(0,u._)(this.organizationService.organizations$(e));return this.findManagingOrganization(t)})}convertNewSsoUserToKeyConnector(e){return $s(this,void 0,void 0,function*(){const t=yield(0,u._)(this.stateProvider.getUserState$(io,e));if(null==t)throw new Error("Key Connector conversion not found");const{kdfConfig:i,keyConnectorUrl:n,organizationId:r}=t;(yield(0,u._)(this.configService.getFeatureFlag$(Kr.TO.EnableAccountEncryptionV2KeyConnectorRegistration)))?yield this.convertNewSsoUserToKeyConnectorV2(e,n,r):yield this.convertNewSsoUserToKeyConnectorV1(e,i,n,r),yield this.stateProvider.getUser(e,io).update(()=>null)})}convertNewSsoUserToKeyConnectorV2(e,t,i){return $s(this,void 0,void 0,function*(){const n=yield(0,u._)(this.registerSdkService.registerClient$(e).pipe((0,p.T)(e=>$s(this,void 0,void 0,function*(){const n={stack:[],error:void 0,hasError:!1};try{if(!e)throw new Error("SDK not available");const r=_s(n,e.take(),!1);return yield r.value.auth().registration().post_keys_for_key_connector_registration(t,i)}catch(r){n.error=r,n.hasError=!0}finally{eo(n)}}))));if(!("V2"in n.account_cryptographic_state)){const e=Object.keys(n.account_cryptographic_state);throw new Error(`Unexpected account cryptographic state version ${e}`)}yield this.masterPasswordService.setMasterKey(Mn.e.fromString(n.key_connector_key),e),yield this.keyService.setUserKey(Mn.e.fromString(n.user_key),e),yield this.masterPasswordService.setMasterKeyEncryptedUserKey(new fn.k(n.key_connector_key_wrapped_user_key),e),yield this.accountCryptographicStateService.setAccountCryptographicState(n.account_cryptographic_state,e)})}convertNewSsoUserToKeyConnectorV1(e,t,i,n){return $s(this,void 0,void 0,function*(){yield gs.B.Ready;const r=Mn.e.fromSdk(ps.PureCrypto.make_aes256_cbc_hmac_key()),s=yield this.keyService.makeMasterKey(r.keyB64,yield this.tokenService.getEmail(),t),o=new Js(zt.A.fromBufferToB64(s.inner().encryptionKey));yield this.masterPasswordService.setMasterKey(s,e);const a=yield this.keyService.makeUserKey(s);yield this.keyService.setUserKey(a[0],e),yield this.masterPasswordService.setMasterKeyEncryptedUserKey(a[1],e);const[l,c]=yield this.keyService.makeKeyPair(a[0]);try{yield this.apiService.postUserKeyToKeyConnector(i,o)}catch(h){this.handleKeyConnectorError(h)}const d=new Hs.G(l,c.encryptedString),u=new qs(a[1].encryptedString,t,n,d);yield this.apiService.postSetKeyConnectorKey(u)})}setNewSsoUserKeyConnectorConversionData(e,t){return $s(this,void 0,void 0,function*(){yield this.stateProvider.getUser(t,io).update(()=>e)})}requiresDomainConfirmation$(e){return this.stateProvider.getUserState$(io,e).pipe((0,p.T)(e=>null!=e?{keyConnectorUrl:e.keyConnectorUrl,organizationSsoIdentifier:e.organizationId}:null))}handleKeyConnectorError(e){throw this.logService.error(e),null!=this.logoutCallback&&this.logoutCallback("keyConnectorError"),new Error("Key Connector error")}findManagingOrganization(e){return e.find(e=>e.keyConnectorEnabled&&e.type!==_e.D7.Admin&&e.type!==_e.D7.Owner&&!e.isProviderUser)}},deps:[N.D,Ae.O,I.Lu,je.G,z.B,se.K,v.PV,Oe.dZ,b.v2,O.w,ta.vW,ls.h,na.K5,g.bj]}),(0,Ue.F)({provide:Ai.i,useClass:class{constructor(e,t,i,n,r,s,o,a,l,c){this.keyService=e,this.accountService=t,this.masterPasswordService=i,this.i18nService=n,this.userVerificationApiService=r,this.userDecryptionOptionsService=s,this.pinService=o,this.kdfConfigService=a,this.biometricsService=l,this.masterPasswordUnlockService=c}getAvailableVerificationOptions(e){return $n(this,void 0,void 0,function*(){var t;const i=null===(t=yield(0,u._)(this.accountService.activeAccount$))||void 0===t?void 0:t.id;if("client"===e){const[e,t,n]=yield Promise.all([this.hasMasterPassword(i),this.pinService.isPinDecryptionAvailable(i),this.biometricsService.getBiometricsStatus()]);return{client:{masterPassword:e,pin:t,biometrics:n===I.cR.Available},server:{masterPassword:!1,otp:!1}}}{const e=yield this.hasMasterPassword(i);return{client:{masterPassword:!1,pin:!1,biometrics:!1},server:{masterPassword:e,otp:!e}}}})}buildRequest(e,t){return $n(this,void 0,void 0,function*(){this.validateSecretInput(e);const i=null!=t?new t:new Jn.V;if(e.type===Hn.k.OTP)i.otp=e.secret;else{const t=yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6)),n=yield this.kdfConfigService.getKdfConfig(t),r=yield(0,u._)(this.masterPasswordService.saltForUser$(t)),s=yield this.masterPasswordService.makeMasterPasswordAuthenticationData(e.secret,n,r);i.authenticateWith(s)}return i})}verifyUser(e){return $n(this,void 0,void 0,function*(){if(null==e)throw new Error("Verification is required.");const[t,i]=yield(0,u._)(this.accountService.activeAccount$.pipe((0,p.T)(e=>[null==e?void 0:e.id,null==e?void 0:e.email])));switch(function(e){return"secret"in e}(e)&&this.validateSecretInput(e),e.type){case Hn.k.OTP:return this.verifyUserByOTP(e);case Hn.k.MasterPassword:return yield this.verifyUserByMasterPassword(e,t,i),!0;case Hn.k.PIN:return this.verifyUserByPIN(e,t);case Hn.k.Biometrics:return this.verifyUserByBiometrics();default:return e}})}verifyUserByOTP(e){return $n(this,void 0,void 0,function*(){const t=new qn(e.secret);try{yield this.userVerificationApiService.postAccountVerifyOTP(t)}catch(i){throw new Error(this.i18nService.t("invalidVerificationCode"))}return!0})}verifyUserByMasterPassword(e,t,i){return $n(this,void 0,void 0,function*(){if(!e.secret)throw new Error("Master Password is required. Cannot verify user without a master password.");if(!t)throw new Error("User ID is required. Cannot verify user by master password.");if(!i)throw new Error("Email is required. Cannot verify user by master password.");const n=yield this.kdfConfigService.getKdfConfig(t);if(!n)throw new Error("KDF config is required. Cannot verify user by master password.");let r;if(yield this.hasMasterPassword(t)){if(!(yield this.masterPasswordUnlockService.proofOfDecryption(e.secret,t)))throw new Error(this.i18nService.t("invalidMasterPassword"));r=null}else{const i=new Jn.V,o=yield this.masterPasswordService.makeMasterPasswordAuthenticationData(e.secret,n,yield(0,u._)(this.masterPasswordService.saltForUser$(t)));i.authenticateWith(o);try{r=yield this.userVerificationApiService.postAccountVerifyPassword(i)}catch(s){throw new Error(this.i18nService.t("invalidMasterPassword"))}}return{policyOptions:r,email:i}})}verifyUserByPIN(e,t){return $n(this,void 0,void 0,function*(){if(!t)throw new Error("User ID is required. Cannot verify user by PIN.");return yield this.pinService.validatePin(e.secret,t)})}verifyUserByBiometrics(){return $n(this,void 0,void 0,function*(){return this.biometricsService.authenticateWithBiometrics()})}requestOTP(){return $n(this,void 0,void 0,function*(){yield this.userVerificationApiService.postAccountRequestOTP()})}hasMasterPassword(e){return $n(this,void 0,void 0,function*(){var t;const i=null!=e?e:null===(t=yield(0,u._)(this.accountService.activeAccount$))||void 0===t?void 0:t.id;return!!i&&(yield(0,u._)(this.userDecryptionOptionsService.hasMasterPasswordById$(i)))})}validateSecretInput(e){if(null==(null==e?void 0:e.secret)||""===e.secret)switch(e.type){case Hn.k.OTP:throw new Error(this.i18nService.t("verificationCodeRequired"));case Hn.k.MasterPassword:throw new Error(this.i18nService.t("masterPasswordRequired"));case Hn.k.PIN:throw new Error(this.i18nService.t("pinRequired"))}}},deps:[I.Lu,N.D,Ae.O,he.W,hi,g.Ym,Uo.t,I.zZ,I.Zm,ao.b]}),(0,Ue.F)({provide:v.k4,useClass:class{memberOrganizations$(e){return this.organizations$(e).pipe((0,p.T)(e=>e.filter(e=>e.isMember)))}constructor(e){this.stateProvider=e}canManageSponsorships$(e){return this.organizations$(e).pipe((0,p.T)(e=>e.filter(e=>e.canManageSponsorships)),rt())}familySponsorshipAvailable$(e){return this.organizations$(e).pipe((0,p.T)(e=>e.some(e=>e.familySponsorshipAvailable)))}hasOrganizations(e){return this.organizations$(e).pipe(rt())}upsert(e,t){return nt(this,void 0,void 0,function*(){yield this.organizationState(t).update(t=>{const i=null!=t?t:{};return i[e.id]=e,i})})}replace(e,t){return nt(this,void 0,void 0,function*(){yield this.organizationState(t).update(()=>e)})}organizations$(e){return this.organizationState(e).state$.pipe(this.mapOrganizationRecordToArray(),(0,p.T)(e=>e.filter(e=>e.status===_e.Zx.Confirmed||e.isProviderUser)))}acceptedOrganizations$(e){return this.organizationState(e).state$.pipe(this.mapOrganizationRecordToArray()).pipe((0,p.T)(e=>e.filter(e=>e.status===_e.Zx.Accepted)))}organizationState(e){return this.stateProvider.getUser(e,it)}mapOrganizationRecordToArray(){return(0,p.T)(e=>{var t;return null===(t=Object.values(null!=e?e:{}))||void 0===t?void 0:t.map(e=>new et.y(e))})}},deps:[b.v2]}),(0,Ue.F)({provide:_.Ki,useClass:_.tc,deps:[I.Lu,As.N,_.uB,N.D,he.W]}),(0,Ue.F)({provide:v.PV,useExisting:v.k4}),(0,Ue.F)({provide:_.uB,useClass:_.Lf,deps:[je.G]}),(0,Ue.F)({provide:eh.GA,useClass:eh.fq,deps:[je.G]}),(0,Ue.F)({provide:eh.s_,useClass:eh.HQ,deps:[eh.GA,b.v2,yo.v,na.K5]}),(0,Ue.F)({provide:di._,useClass:class{constructor(e,t,i,n,r,s){this.organizationApiService=e,this.accountService=t,this.keyService=i,this.encryptService=n,this.organizationUserApiService=r,this.i18nService=s}enrollIfRequired(e){return Bn(this,void 0,void 0,function*(){const t=yield this.organizationApiService.getAutoEnrollStatus(e);t.resetPasswordEnabled||(yield this.enroll(t.id,null,null))})}enroll(e,t,i){return Bn(this,void 0,void 0,function*(){const n=yield this.organizationApiService.getKeys(e);if(null==n)throw new Error(this.i18nService.t("resetPasswordOrgKeysError"));const r=zt.A.fromB64ToArray(n.publicKey);if(null==(t=null!=t?t:yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6))))throw new Error("User ID is required");i=null!=i?i:yield(0,u._)(this.keyService.userKey$(t));const s=yield this.encryptService.encapsulateKeyUnsigned(i,r),o=new _.Wt;o.resetPasswordKey=s.encryptedString,yield this.organizationUserApiService.putOrganizationUserResetPasswordEnrollment(e,t,o)})}},deps:[Xe.X,N.D,I.Lu,As.N,_.uB,he.W]}),(0,Ue.F)({provide:$e.$,useClass:class{constructor(e){this.stateProvider=e}providers$(e){return this.stateProvider.getUser(e,ii).state$.pipe(this.mapProviderRecordToArray())}mapProviderRecordToArray(){return(0,p.T)(e=>Object.values(null!=e?e:{}).map(e=>new ei(e)))}get$(e,t){return this.providers$(t).pipe((0,_t.Hc)(e))}save(e,t){return ti(this,void 0,void 0,function*(){yield this.stateProvider.setUserState(ii,e,t)})}},deps:[b.v2]}),(0,Ue.F)({provide:ar.fz,useClass:ar.q9,deps:[he.W,G.y,b.Y2,ar.tE]}),(0,Ue.F)({provide:class{},useClass:class{getFormValidationErrors(e){let t=[];return Object.keys(e).forEach(i=>{const n=e[i];n instanceof a.J3&&(t=t.concat(this.getFormValidationErrors(n.controls)));const r=e[i].errors;null!==r&&Object.keys(r).forEach(e=>{t.push({controlName:i,errorName:e})})}),t}},deps:[]}),(0,Ue.F)({provide:hi,useClass:class{constructor(e){this.apiService=e}postAccountVerifyOTP(e){return this.apiService.send("POST","/accounts/verify-otp",e,!0,!1)}postAccountRequestOTP(){return Zn(this,void 0,void 0,function*(){return this.apiService.send("POST","/accounts/request-otp",null,!0,!1)})}postAccountVerifyPassword(e){return this.apiService.send("POST","/accounts/verify-password",e,!0,!0)}},deps:[je.G]}),(0,Ue.F)({provide:Xe.X,useClass:class{constructor(e,t){this.apiService=e,this.syncService=t}get(e){return St(this,void 0,void 0,function*(){const t=yield this.apiService.send("GET","/organizations/"+e,null,!0,!0);return new Bt.t(t)})}getBilling(e){return St(this,void 0,void 0,function*(){const t=yield this.apiService.send("GET","/organizations/"+e+"/billing",null,!0,!0);return new ut(t)})}getBillingHistory(e){return St(this,void 0,void 0,function*(){const t=yield this.apiService.send("GET","/organizations/"+e+"/billing/history",null,!0,!0);return new gt(t)})}getSubscription(e){return St(this,void 0,void 0,function*(){const t=yield this.apiService.send("GET","/organizations/"+e+"/subscription",null,!0,!0);return new vt._(t)})}getLicense(e,t){return St(this,void 0,void 0,function*(){return this.apiService.send("GET","/organizations/"+e+"/license?installationId="+t,null,!0,!0)})}getAutoEnrollStatus(e){return St(this,void 0,void 0,function*(){const t=yield this.apiService.send("GET","/organizations/"+e+"/auto-enroll-status",null,!0,!0);return new Ct(t)})}create(e){return St(this,void 0,void 0,function*(){const t=yield this.apiService.send("POST","/organizations",e,!0,!0);return yield this.syncService.fullSync(!0),new Bt.t(t)})}createWithoutPayment(e){return St(this,void 0,void 0,function*(){const t=yield this.apiService.send("POST","/organizations/create-without-payment",e,!0,!0);return yield this.syncService.fullSync(!0),new Bt.t(t)})}createLicense(e){return St(this,void 0,void 0,function*(){const t=yield this.apiService.send("POST","/organizations/licenses/self-hosted",e,!0,!0);return new Bt.t(t)})}save(e,t){return St(this,void 0,void 0,function*(){const i=yield this.apiService.send("PUT","/organizations/"+e,t,!0,!0),n=new Bt.t(i);return yield this.syncService.fullSync(!0),n})}upgrade(e,t){return St(this,void 0,void 0,function*(){const i=yield this.apiService.send("POST","/organizations/"+e+"/upgrade",t,!0,!0);return new ft(i)})}updatePasswordManagerSeats(e,t){return St(this,void 0,void 0,function*(){const i=yield this.apiService.send("POST","/organizations/"+e+"/subscription",t,!0,!0);return new Et.C(i)})}updateSecretsManagerSubscription(e,t){return St(this,void 0,void 0,function*(){const i=yield this.apiService.send("POST","/organizations/"+e+"/sm-subscription",t,!0,!0);return new Et.C(i)})}updateSeats(e,t){return St(this,void 0,void 0,function*(){const i=yield this.apiService.send("POST","/organizations/"+e+"/seat",t,!0,!0);return new ft(i)})}updateStorage(e,t){return St(this,void 0,void 0,function*(){const i=yield this.apiService.send("POST","/organizations/"+e+"/storage",t,!0,!0);return new ft(i)})}reinstate(e){return St(this,void 0,void 0,function*(){return this.apiService.send("POST","/organizations/"+e+"/reinstate",null,!0,!1)})}leave(e){return St(this,void 0,void 0,function*(){yield this.apiService.send("POST","/organizations/"+e+"/leave",null,!0,!1),yield this.syncService.fullSync(!0)})}delete(e,t){return St(this,void 0,void 0,function*(){yield this.apiService.send("DELETE","/organizations/"+e,t,!0,!1),yield this.syncService.fullSync(!0)})}deleteUsingToken(e,t){return this.apiService.send("POST","/organizations/"+e+"/delete-recover-token",t,!1,!1)}updateLicense(e,t){return St(this,void 0,void 0,function*(){yield this.apiService.send("POST","/organizations/licenses/self-hosted/"+e,t,!0,!1)})}importDirectory(e,t){return St(this,void 0,void 0,function*(){return this.apiService.send("POST","/organizations/"+e+"/import",t,!0,!1)})}getOrCreateApiKey(e,t){return St(this,void 0,void 0,function*(){const i=yield this.apiService.send("POST","/organizations/"+e+"/api-key",t,!0,!0);return new ot(i)})}getApiKeyInformation(e){return St(this,arguments,void 0,function*(e,t=null){const i=null===t?"/organizations/"+e+"/api-key-information":"/organizations/"+e+"/api-key-information/"+t,n=yield this.apiService.send("GET",i,null,!0,!0);return new yt.s(n,bt)})}rotateApiKey(e,t){return St(this,void 0,void 0,function*(){const i=yield this.apiService.send("POST","/organizations/"+e+"/rotate-api-key",t,!0,!0);return new ot(i)})}getKeys(e){return St(this,void 0,void 0,function*(){const t=yield this.apiService.send("GET","/organizations/"+e+"/keys",null,!0,!0);return new wt(t)})}updateKeys(e,t){return St(this,void 0,void 0,function*(){const i=yield this.apiService.send("POST","/organizations/"+e+"/keys",t,!0,!0);return new wt(i)})}getSso(e){return St(this,void 0,void 0,function*(){const t=yield this.apiService.send("GET","/organizations/"+e+"/sso",null,!0,!0);return new ct(t)})}updateSso(e,t){return St(this,void 0,void 0,function*(){const i=yield this.apiService.send("POST","/organizations/"+e+"/sso",t,!0,!0);return new ct(i)})}selfHostedSyncLicense(e){return St(this,void 0,void 0,function*(){yield this.apiService.send("POST","/organizations/licenses/self-hosted/"+e+"/sync/",null,!0,!1)})}subscribeToSecretsManager(e,t){return St(this,void 0,void 0,function*(){const i=yield this.apiService.send("POST","/organizations/"+e+"/subscribe-secrets-manager",t,!0,!0);return new Et.C(i)})}updateCollectionManagement(e,t){return St(this,void 0,void 0,function*(){const i=yield this.apiService.send("PUT","/organizations/"+e+"/collection-management",t,!0,!0),n=new Bt.t(i);return yield this.syncService.fullSync(!0),n})}},deps:[je.G,mc.H]}),(0,Ue.F)({provide:fr.l,useClass:class{constructor(e,t){this.apiService=e,this.platformUtilsService=t}getOrganizationSponsorship(e){return Nr(this,void 0,void 0,function*(){const t=yield this.apiService.send("GET","/organization/sponsorship/"+(this.platformUtilsService.isSelfHost()?"self-hosted/":"")+e+"/sponsored",null,!0,!0);return new yt.s(t,Or.B)})}postResendSponsorshipOffer(e,t){return Nr(this,void 0,void 0,function*(){let i="/organization/sponsorship/"+e+"/families-for-enterprise/resend";return t&&(i+=`?sponsoredFriendlyName=${encodeURIComponent(t)}`),yield this.apiService.send("POST",i,null,!0,!1)})}deleteRevokeSponsorship(e){return Nr(this,arguments,void 0,function*(e,t=!1){const i=this.platformUtilsService.isSelfHost()?"self-hosted/":"";return yield this.apiService.send("DELETE","/organization/sponsorship/"+i+e,null,!0,!1)})}deleteAdminInitiatedRevokeSponsorship(e,t){return Nr(this,void 0,void 0,function*(){const i=this.platformUtilsService.isSelfHost()?"self-hosted/":"";return yield this.apiService.send("DELETE","/organization/sponsorship/"+i+e+"/"+encodeURIComponent(t)+"/revoke",null,!0,!1)})}},deps:[je.G,G.y]}),(0,Ue.F)({provide:mr.C,useClass:class{constructor(e){this.apiService=e}getBillingInvoices(e,t,i){return Vr(this,void 0,void 0,function*(){const n=new URLSearchParams;t&&n.append("status",t),i&&n.append("startAfter",i);const r=`?${n.toString()}`,s=yield this.apiService.send("GET",`/organizations/${e}/billing/invoices${r}`,null,!0,!0);return(null==s?void 0:s.map(e=>new At(e)))||[]})}getBillingTransactions(e,t){return Vr(this,void 0,void 0,function*(){const i=t?`?startAfter=${t}`:"",n=yield this.apiService.send("GET",`/organizations/${e}/billing/transactions${i}`,null,!0,!0);return(null==n?void 0:n.map(e=>new pt(e)))||[]})}setupBusinessUnit(e,t){return Vr(this,void 0,void 0,function*(){return yield this.apiService.send("POST",`/organizations/${e}/billing/setup-business-unit`,t,!0,!0)})}changeSubscriptionFrequency(e,t){return Vr(this,void 0,void 0,function*(){return yield this.apiService.send("POST","/organizations/"+e+"/billing/change-frequency",t,!0,!1)})}},deps:[je.G]}),(0,Ue.F)({provide:pr.k,useClass:class{constructor(e){this.apiService=e}getBillingInvoices(e,t){return br(this,void 0,void 0,function*(){const i=new URLSearchParams;e&&i.append("status",e),t&&i.append("startAfter",t);const n=`?${i.toString()}`,r=yield this.apiService.send("GET",`/accounts/billing/invoices${n}`,null,!0,!0);return(null==r?void 0:r.map(e=>new At(e)))||[]})}getBillingTransactions(e){return br(this,void 0,void 0,function*(){const t=e?`?startAfter=${e}`:"",i=yield this.apiService.send("GET",`/accounts/billing/transactions${t}`,null,!0,!0);return(null==i?void 0:i.map(e=>new pt(e)))||[]})}},deps:[je.G]}),(0,Ue.F)({provide:Do,useClass:Do,deps:[_o,yo.v,se.K,b.v2,k.u]}),(0,Ue.F)({provide:O.w,useExisting:Do}),(0,Ue.F)({provide:_o,useClass:class{constructor(e){this.apiService=e}get(e){return Va(this,void 0,void 0,function*(){let t;return t=null==e?yield this.apiService.send("GET","/config",null,!1,!0):yield this.apiService.send("GET","/config",null,e,!0),new Ra(t)})}},deps:[je.G]}),(0,Ue.F)({provide:ri.k,useClass:class{constructor(e,t,i){this.environmentService=e,this.authRequestService=t,this.platformUtilsService=i}createHubConnection(e){return qi(this,void 0,void 0,function*(){if(this.url=(yield(0,u._)(this.environmentService.environment$)).getNotificationsUrl(),!this.url.startsWith("https://")&&!this.platformUtilsService.isDev())throw new Ji;this.anonHubConnection=(new Ti.$).withUrl(this.url+"/anonymous-hub?Token="+e,{skipNegotiation:!0,transport:Di.w.WebSockets}).withHubProtocol(new Pi.E).build(),yield this.anonHubConnection.start(),this.anonHubConnection.on("AuthRequestResponseRecieved",e=>{this.ProcessNotification(new Gi(e))})})}stopHubConnection(){return qi(this,void 0,void 0,function*(){this.anonHubConnection&&(yield this.anonHubConnection.stop())})}ProcessNotification(e){if(e.type===Yt._n.AuthRequestResponse)this.authRequestService.sendAuthRequestPushNotification(e.payload)}},deps:[yo.v,g.XF,G.y]}),(0,Ue.F)({provide:oa.B,useClass:class{constructor(e,t){this.i18nService=e,this.platformUtilsService=t}showError(e){const t=this.i18nService.t("unexpectedError");let i=[];if(null!=e&&"string"==typeof e)i.push(e);else if(null==e||"object"!=typeof e)i.push(t);else if(null!=e.validationErrors)i=i.concat(e.getAllMessages());else{const n=this.extractErrorMessagesFromMessage(e.message);n.length>0?i=i.concat(n):i.push(e.message?e.message:t)}return 1===i.length?this.platformUtilsService.showToast("error",this.i18nService.t("errorOccurred"),i[0]):i.length>1&&this.platformUtilsService.showToast("error",this.i18nService.t("errorOccurred"),i,{timeout:5e3*i.length}),i}extractErrorMessagesFromMessage(e){if(!e)return[];const t=e.indexOf("{");if(-1===t)return[];try{const i=JSON.parse(e.substring(t)),n=new Xt._(i,0);if(null!=n.validationErrors)return n.getAllMessages();if(n.message)return[n.message]}catch(i){}return[]}},deps:[he.W,G.y]}),(0,Ue.F)({provide:g.DS,useClass:g.pi,deps:[N.D,k.u,b.v2]}),(0,Ue.F)({provide:We,useClass:class{constructor(e,t){this.platformUtilsService=e,this.i18nService=t,this._orgDomains$=new Tt.t([]),this.orgDomains$=this._orgDomains$.asObservable()}get(e){return this._orgDomains$.getValue().find(t=>t.id===e)}copyDnsTxt(e){this.platformUtilsService.copyToClipboard(e)}upsert(e){const t=this._orgDomains$.getValue();e.forEach(e=>{const i=t.findIndex(t=>t.id===e.id);-1!==i?t[i]=e:t.push(e)}),this._orgDomains$.next(t)}replace(e){this._orgDomains$.next(e)}clearCache(){this._orgDomains$.next([])}delete(e){const t=this._orgDomains$.getValue();e.forEach(e=>{const i=t.findIndex(t=>t.id===e);-1!==i&&t.splice(i,1)}),this._orgDomains$.next(t)}},deps:[G.y,he.W]}),(0,Ue.F)({provide:Le,useExisting:We}),(0,Ue.F)({provide:ze.o,useClass:class{constructor(e,t){this.orgDomainService=e,this.apiService=t}getAllByOrgId(e){return Ft(this,void 0,void 0,function*(){const t=(yield this.apiService.send("GET",`/organizations/${e}/domain`,null,!0,!0)).data.map(e=>new Qt(e));return this.orgDomainService.replace(t),t})}getByOrgIdAndOrgDomainId(e,t){return Ft(this,void 0,void 0,function*(){const i=yield this.apiService.send("GET",`/organizations/${e}/domain/${t}`,null,!0,!0),n=new Qt(i);return this.orgDomainService.upsert([n]),n})}post(e,t){return Ft(this,void 0,void 0,function*(){const i=yield this.apiService.send("POST",`/organizations/${e}/domain`,t,!0,!0),n=new Qt(i);return this.orgDomainService.upsert([n]),n})}verify(e,t){return Ft(this,void 0,void 0,function*(){const i=yield this.apiService.send("POST",`/organizations/${e}/domain/${t}/verify`,null,!0,!0),n=new Qt(i);return this.orgDomainService.upsert([n]),n})}delete(e,t){return Ft(this,void 0,void 0,function*(){yield this.apiService.send("DELETE",`/organizations/${e}/domain/${t}`,null,!0,!1),this.orgDomainService.delete([t])})}getVerifiedOrgDomainsByEmail(e){return Ft(this,void 0,void 0,function*(){const t=yield this.apiService.send("POST","/organizations/domain/sso/verified",new Rt(e),!1,!0);return new yt.s(t,kt)})}},deps:[We,je.G]}),(0,Ue.F)({provide:li.T,useClass:class{constructor(e){this.apiService=e}getKnownDevice(e,t){return In(this,void 0,void 0,function*(){return yield this.apiService.send("GET","/devices/knowndevice",null,!1,!0,null,i=>{i.set("X-Device-Identifier",t),i.set("X-Request-Email",zt.A.fromUtf8ToUrlB64(e))})})}getDeviceByIdentifier(e){return In(this,void 0,void 0,function*(){const t=yield this.apiService.send("GET",`/devices/identifier/${e}`,null,!0,!0);return new vn(t)})}getDevices(){return In(this,void 0,void 0,function*(){const e=yield this.apiService.send("GET","/devices",null,!0,!0,null);return new yt.s(e,vn)})}updateTrustedDeviceKeys(e,t,i,n){return In(this,void 0,void 0,function*(){const r=new Cn(t,i,n),s=yield this.apiService.send("PUT",`/devices/${e}/keys`,r,!0,!0);return new vn(s)})}updateTrust(e,t){return In(this,void 0,void 0,function*(){yield this.apiService.send("POST","/devices/update-trust",e,!0,!1,null,e=>{e.set("Device-Identifier",t)})})}getDeviceKeys(e){return In(this,void 0,void 0,function*(){const t=yield this.apiService.send("POST",`/devices/${e}/retrieve-keys`,null,!0,!0);return new bn(t)})}postDeviceTrustLoss(e){return In(this,void 0,void 0,function*(){yield this.apiService.send("POST","/devices/lost-trust",null,!0,!1,null,t=>{t.set("Device-Identifier",e)})})}deactivateDevice(e){return In(this,void 0,void 0,function*(){yield this.apiService.send("POST",`/devices/${e}/deactivate`,null,!0,!1)})}untrustDevices(e){return In(this,void 0,void 0,function*(){yield this.apiService.send("POST","/devices/untrust",new mn(e),!0,!1)})}},deps:[je.G]}),(0,Ue.F)({provide:ai,useClass:class{constructor(e,t,i){this.appIdService=e,this.devicesApiService=t,this.i18nService=i}getDevices$(){return(0,Ei.v)(()=>this.devicesApiService.getDevices()).pipe((0,p.T)(e=>e.data.map(e=>new pn(e))))}getDeviceByIdentifier$(e){return(0,Ei.v)(()=>this.devicesApiService.getDeviceByIdentifier(e)).pipe((0,p.T)(e=>new pn(e)))}isDeviceKnownForUser$(e,t){return(0,Ei.v)(()=>this.devicesApiService.getKnownDevice(e,t))}updateTrustedDeviceKeys$(e,t,i,n){return(0,Ei.v)(()=>this.devicesApiService.updateTrustedDeviceKeys(e,t,i,n)).pipe((0,p.T)(e=>new pn(e)))}deactivateDevice$(e){return(0,Ei.v)(()=>this.devicesApiService.deactivateDevice(e))}getCurrentDevice$(){return(0,Ei.v)(()=>gn(this,void 0,void 0,function*(){const e=yield this.appIdService.getAppId();return this.devicesApiService.getDeviceByIdentifier(e)}))}getReadableDeviceTypeName(e){if(void 0===e)return this.i18nService.t("unknownDevice");const t=Yt.mz[e];if(!t)return this.i18nService.t("unknownDevice");const i="Unknown"===t.platform?this.i18nService.t("unknown"):t.platform,n=this.i18nService.t(t.category);return i?`${n} - ${i}`:n}},deps:[qo.Y,li.T,he.W]}),(0,Ue.F)({provide:g.d8,useClass:g._l,deps:[je.G,se.K]}),(0,Ue.F)({provide:Is.M,useClass:class{constructor(e,t,i,n,r,s,o,a,l,c,u,h,A){this.cryptoFunctionService=e,this.keyService=t,this.encryptService=i,this.appIdService=n,this.devicesApiService=r,this.i18nService=s,this.platformUtilsService=o,this.stateProvider=a,this.secureStorageService=l,this.userDecryptionOptionsService=c,this.logService=u,this.configService=h,this.accountService=A,this.platformSupportsSecureStorage=this.platformUtilsService.supportsSecureStorage(),this.deviceKeySecureStorageKey="_deviceKey",this.deviceTrustedSubject=new d.B,this.deviceTrusted$=this.deviceTrustedSubject.asObservable(),this.supportsDeviceTrust$=this.accountService.activeAccount$.pipe((0,jt.n)(e=>null==e?[!1]:this.userDecryptionOptionsService.userDecryptionOptionsById$(e.id).pipe((0,p.T)(e=>null!=(null==e?void 0:e.trustedDeviceOption)))))}supportsDeviceTrustByUserId$(e){return this.userDecryptionOptionsService.userDecryptionOptionsById$(e).pipe((0,p.T)(e=>null!=(null==e?void 0:e.trustedDeviceOption)))}getShouldTrustDevice(e){return Ss(this,void 0,void 0,function*(){if(!e)throw new Error("UserId is required. Cannot get should trust device.");return yield(0,u._)(this.stateProvider.getUserState$(ks,e))})}setShouldTrustDevice(e,t){return Ss(this,void 0,void 0,function*(){if(!e)throw new Error("UserId is required. Cannot set should trust device.");yield this.stateProvider.setUserState(ks,t,e)})}trustDeviceIfRequired(e){return Ss(this,void 0,void 0,function*(){if(!e)throw new Error("UserId is required. Cannot trust device if required.");(yield this.getShouldTrustDevice(e))&&(yield this.trustDevice(e),yield this.setShouldTrustDevice(e,null))})}trustDevice(e){return Ss(this,void 0,void 0,function*(){if(!e)throw new Error("UserId is required. Cannot trust device.");const t=yield(0,u._)(this.keyService.userKey$(e));if(!t)throw new Error("User symmetric key not found");const i=yield this.makeDeviceKey(),[n,r]=yield this.cryptoFunctionService.rsaGenerateKeyPair(2048),[s,o,a]=yield Promise.all([this.encryptService.encapsulateKeyUnsigned(t,n),this.encryptService.wrapEncapsulationKey(n,t),this.encryptService.wrapDecapsulationKey(r,i)]),l=yield this.appIdService.getAppId(),c=yield this.devicesApiService.updateTrustedDeviceKeys(l,s.encryptedString,o.encryptedString,a.encryptedString);return yield this.setDeviceKey(e,i),this.deviceTrustedSubject.next(),c})}getRotatedData(e,t,i){return Ss(this,void 0,void 0,function*(){if(!i)throw new Error("UserId is required. Cannot get rotated data.");if(!e)throw new Error("Old user key is required. Cannot get rotated data.");if(!t)throw new Error("New user key is required. Cannot get rotated data.");const n=yield this.devicesApiService.getDevices(),r=[],s=yield Promise.all(n.data.filter(e=>e.isTrusted).map(i=>Ss(this,void 0,void 0,function*(){const n=yield this.encryptService.unwrapEncapsulationKey(new fn.k(i.encryptedPublicKey),e);if(!n)return r.push(i.id),null;const s=yield this.encryptService.wrapEncapsulationKey(n,t),o=yield this.encryptService.encapsulateKeyUnsigned(t,n),a=new yn(o,s),l=new Es;return l.encryptedPublicKey=a.encryptedPublicKey.encryptedString,l.encryptedUserKey=a.encapsulatedDownstreamKey.encryptedString,l.deviceId=i.id,l})).filter(e=>null!=e));return s.length>0&&(this.logService.info("[Device trust rotation] Distrusting devices that failed to decrypt."),yield this.devicesApiService.untrustDevices(r)),s})}rotateDevicesTrust(e,t,i){return Ss(this,void 0,void 0,function*(){if(this.logService.info("[Device trust rotation] Rotating device trust..."),!e)throw new Error("UserId is required. Cannot rotate device's trust.");if(null==(yield this.getDeviceKey(e)))return void this.logService.info("[Device trust rotation] No device key available to rotate trust!");const n=yield(0,u._)(this.keyService.userKey$(e));n==t&&this.logService.info("[Device trust rotation] Old user key is the same as the new user key.");const r=yield this.appIdService.getAppId();(new Jn.V).masterPasswordHash=i;const s=yield this.devicesApiService.getDeviceKeys(r),o=yield this.encryptService.unwrapEncapsulationKey(s.encryptedPublicKey,n),a=yield this.encryptService.encapsulateKeyUnsigned(t,o),l=yield this.encryptService.wrapEncapsulationKey(o,t),c=new Bs;c.encryptedUserKey=a.encryptedString,c.encryptedPublicKey=l.encryptedString;const d=new ws;d.masterPasswordHash=i,d.currentDevice=c,d.otherDevices=[],this.logService.info("[Device trust rotation] Posting device trust update with current device:",r),yield this.devicesApiService.updateTrust(d,r),this.logService.info("[Device trust rotation] Device trust update posted successfully.")})}getDeviceKey(e){return Ss(this,void 0,void 0,function*(){if(!e)throw new Error("UserId is required. Cannot get device key.");try{if(this.platformSupportsSecureStorage){const t=yield this.secureStorageService.get(`${e}${this.deviceKeySecureStorageKey}`,this.getSecureStorageOptions(e));return Mn.e.fromJSON(t)}return yield(0,u._)(this.stateProvider.getUserState$(Qs,e))}catch(t){this.logService.error("Failed to get device key",t)}})}setDeviceKey(e,t){return Ss(this,void 0,void 0,function*(){if(!e)throw new Error("UserId is required. Cannot set device key.");try{if(this.platformSupportsSecureStorage)return void(yield this.secureStorageService.save(`${e}${this.deviceKeySecureStorageKey}`,t,this.getSecureStorageOptions(e)));yield this.stateProvider.setUserState(Qs,null==t?void 0:t.toJSON(),e)}catch(i){this.logService.error("Failed to set device key",i)}})}makeDeviceKey(){return Ss(this,void 0,void 0,function*(){yield gs.B.Ready;return Mn.e.fromSdk(ps.PureCrypto.make_aes256_cbc_hmac_key())})}decryptUserKeyWithDeviceKey(e,t,i,n){return Ss(this,void 0,void 0,function*(){if(!e)throw new Error("UserId is required. Cannot decrypt user key with device key.");if(!t)throw new Error("Encrypted device private key is required. Cannot decrypt user key with device key.");if(!i)throw new Error("Encrypted user key is required. Cannot decrypt user key with device key.");if(!n)return null;try{const e=yield this.encryptService.unwrapDecapsulationKey(t,n);return yield this.encryptService.decapsulateKeyUnsigned(new fn.k(i.encryptedString),e)}catch(r){return this.logService.error("Failed to decrypt using device key. Removing device key."),yield this.setDeviceKey(e,null),null}})}recordDeviceTrustLoss(){return Ss(this,void 0,void 0,function*(){const e=yield this.appIdService.getAppId();yield this.devicesApiService.postDeviceTrustLoss(e)})}getSecureStorageOptions(e){return{storageLocation:Pn.$B.Disk,useSecureStorage:!0,userId:e}}},deps:[hs.R,I.Lu,As.N,qo.Y,li.T,he.W,G.y,b.v2,Oe.G$,g.Ym,se.K,O.w,N.D]}),(0,Ue.F)({provide:Us,useClass:class{constructor(e){this.apiService=e}updateUserKdfParams(e){return Gs(this,void 0,void 0,function*(){return this.apiService.send("POST","/accounts/kdf",e,!0,!1)})}},deps:[je.G]}),(0,Ue.F)({provide:zs,useClass:class{constructor(e,t,i,n,r){this.changeKdfApiService=e,this.sdkService=t,this.keyService=i,this.masterPasswordService=n,this.kdfConfigService=r}updateUserKdfParams(e,t,i){return js(this,void 0,void 0,function*(){(0,Se.x)(e,"masterPassword"),(0,Se.x)(t,"kdf"),(0,Se.x)(i,"userId");const n=yield(0,u._)(this.sdkService.userClient$(i).pipe((0,p.T)(i=>js(this,void 0,void 0,function*(){const n={stack:[],error:void 0,hasError:!1};try{if(!i)throw new Error("SDK not available");const r=Ys(n,i.take(),!1).value.crypto().make_update_kdf(e,t.toSdkConfig());return yield r}catch(r){n.error=r,n.hasError=!0}finally{Xs(n)}})))),r=(0,Os.P)(n.masterPasswordAuthenticationData),s=Os.k.fromSdk(n.masterPasswordUnlockData),o=(0,Os.P)(n.oldMasterPasswordAuthenticationData),a=new Ns(o.masterPasswordAuthenticationHash,r,s);yield this.changeKdfApiService.updateUserKdfParams(a);const l=yield this.keyService.makeMasterKey(e,s.salt,s.kdf);yield this.masterPasswordService.setMasterKey(l,i),yield this.masterPasswordService.setMasterPasswordUnlockData(s,i),yield this.masterPasswordService.setMasterKeyEncryptedUserKey(new fn.k(s.masterKeyWrappedUserKey),i),yield this.kdfConfigService.setKdfConfig(i,t)})}},deps:[Us,na.K5,I.Lu,Ae.O,I.zZ]}),(0,Ue.F)({provide:g.XF,useClass:g.H8,deps:[qo.Y,Ae.O,I.Lu,As.N,je.G,b.v2,g.d8,N.D]}),(0,Ue.F)({provide:Uo.t,useClass:Yo,deps:[na.K5]}),(0,Ue.F)({provide:gi,useClass:class{constructor(e){this.cryptoFunctionService=e}getLoginWithPrfSalt(){return ir(this,void 0,void 0,function*(){return yield this.cryptoFunctionService.hash("passwordless-login","sha256")})}createSymmetricKeyFromPrf(e){return ir(this,void 0,void 0,function*(){return yield this.stretchKey(new Uint8Array(e))})}stretchKey(e){return ir(this,void 0,void 0,function*(){const t=new Uint8Array(64),i=yield this.cryptoFunctionService.hkdfExpand(e,"enc",32,"sha256"),n=yield this.cryptoFunctionService.hkdfExpand(e,"mac",32,"sha256");return t.set(new Uint8Array(i)),t.set(new Uint8Array(n),32),new Mn.e(t)})}},deps:[hs.R]}),(0,Ue.F)({provide:pi,useClass:class{constructor(e,t){this.apiService=e,this.environmentService=t}getCredentialAssertionOptions(){return tr(this,void 0,void 0,function*(){const e=yield(0,u._)(this.environmentService.environment$),t=yield this.apiService.send("GET","/accounts/webauthn/assertion-options",null,!1,!0,e.getIdentityUrl());return new er(t)})}},deps:[je.G,yo.v]}),(0,Ue.F)({provide:vi,useClass:class{constructor(e,t,i,n,r){this.webAuthnLoginApiService=e,this.loginStrategyService=t,this.webAuthnLoginPrfKeyService=i,this.window=n,this.logService=r,this.navigatorCredentials=this.window.navigator.credentials}getCredentialAssertionOptions(){return or(this,void 0,void 0,function*(){const e=yield this.webAuthnLoginApiService.getCredentialAssertionOptions();return new nr(e.options,e.token)})}assertCredential(e){return or(this,void 0,void 0,function*(){var t,i,n;const r={publicKey:e.options};r.publicKey.extensions={prf:{eval:{first:yield this.webAuthnLoginPrfKeyService.getLoginWithPrfSalt()}}};try{const n=yield this.navigatorCredentials.get(r);if(!(n instanceof PublicKeyCredential))return;const s=null===(i=null===(t=n.getClientExtensionResults().prf)||void 0===t?void 0:t.results)||void 0===i?void 0:i.first;let o;null!=s&&(o=yield this.webAuthnLoginPrfKeyService.createSymmetricKeyFromPrf(s));const a=new sr.c(n);if("prf"in a.extensions)throw new Error("PRF information is not allowed to be sent to the server.");return new rr(e.token,a,o)}catch(s){return void(null===(n=this.logService)||void 0===n||n.error(s))}})}logIn(e){return or(this,void 0,void 0,function*(){const t=new g.Gz(e.token,e.deviceResponse,e.prfKey);return yield this.loginStrategyService.logIn(t)})}},deps:[pi,g.sg,gi,Oe.jf,se.K]}),(0,Ue.F)({provide:ra.wH,useClass:ra.wH,deps:[Oe.ml,Oe.ye]}),(0,Ue.F)({provide:b.iO,useClass:th.df,deps:[b.Y2,ra.wH]}),(0,Ue.F)({provide:b.lR,useClass:th.ep,deps:[b.Y2,ra.wH]}),(0,Ue.F)({provide:b.Y2,useClass:th.dR,deps:[ra.wH,se.K]}),(0,Ue.F)({provide:th.Bz,useClass:class{constructor(e){this.accountService=e,this.activeUserId$=this.accountService.activeAccount$.pipe((0,p.T)(e=>null!=e?e.id:null))}},deps:[N.D]}),(0,Ue.F)({provide:b.Md,useClass:th.$5,deps:[th.Bz,b.Ys]}),(0,Ue.F)({provide:b.Ys,useClass:th.Bh,deps:[ra.wH,b.iO,se.K]}),(0,Ue.F)({provide:b.w8,useClass:th.jx,deps:[]}),(0,Ue.F)({provide:b.v2,useClass:th.Cp,deps:[b.Md,b.Ys,b.Y2,b.w8]}),(0,Ue.F)({provide:hr.Y,useClass:class{constructor(e,t,i,n,r,s,o){this.apiService=e,this.billingApiService=t,this.keyService=i,this.encryptService=n,this.i18nService=r,this.organizationApiService=s,this.syncService=o}purchaseSubscription(e,t){return zr(this,void 0,void 0,function*(){var i;const n=yield this.makeOrganizationKeys(t),{key:r,keysRequest:s,collectionName:o}=this.makeOrganizationKeysRequest(n),a=new jr.L(r,s,o);this.setOrganizationInformation(a,e.organization),this.setPlanInformation(a,e.plan),this.setPaymentInformation(a,e.payment),(null===(i=e.coupons)||void 0===i?void 0:i.length)&&(a.coupons=e.coupons);const l=yield this.organizationApiService.create(a);return yield this.apiService.refreshIdentityToken(),yield this.syncService.fullSync(!0),l})}purchaseSubscriptionNoPaymentMethod(e,t,i){return zr(this,void 0,void 0,function*(){const n=yield this.makeOrganizationKeys(t),{key:r,keysRequest:s,collectionName:o}=this.makeOrganizationKeysRequest(n),a=new Xr.J(r,s,o);this.setOrganizationInformation(a,e.organization),this.setPlanInformation(a,e.plan),a.trialLength=i;const l=yield this.organizationApiService.createWithoutPayment(a);return yield this.apiService.refreshIdentityToken(),yield this.syncService.fullSync(!0),l})}startFree(e,t){return zr(this,void 0,void 0,function*(){const i=yield this.makeOrganizationKeys(t),{key:n,keysRequest:r,collectionName:s}=this.makeOrganizationKeysRequest(i),o=new jr.L(n,r,s);this.setOrganizationInformation(o,e.organization),this.setPlanInformation(o,e.plan);const a=yield this.organizationApiService.create(o);return yield this.apiService.refreshIdentityToken(),yield this.syncService.fullSync(!0),a})}makeOrganizationKeys(e){return zr(this,void 0,void 0,function*(){const[t,i]=yield this.keyService.makeOrgKey(e),[n,r]=yield this.keyService.makeKeyPair(i);return{encryptedKey:t,publicKey:n,encryptedPrivateKey:r,encryptedCollectionName:yield this.encryptService.encryptString(this.i18nService.t("defaultCollection"),i)}})}prohibitsAdditionalSeats(e){switch(e){case Yr.OL.Free:case Yr.OL.FamiliesAnnually:case Yr.OL.FamiliesAnnually2019:case Yr.OL.FamiliesAnnually2025:case Yr.OL.TeamsStarter2023:case Yr.OL.TeamsStarter:return!0;default:return!1}}setOrganizationInformation(e,t){e.name=t.name,e.businessName=t.businessName,e.billingEmail=t.billingEmail,e.initiationPath=t.initiationPath}makeOrganizationKeysRequest(e){return{key:e.encryptedKey.encryptedString,keysRequest:new mi.B(e.publicKey,e.encryptedPrivateKey.encryptedString),collectionName:e.encryptedCollectionName.encryptedString}}setPaymentInformation(e,t){const[i,n]=t.paymentMethod;e.paymentToken=i,e.paymentMethodType=n,e.skipTrial=t.skipTrial,e.trialLength=t.trialLength;const r=t.billing;e.billingAddressPostalCode=r.postalCode,e.billingAddressCountry=r.country,r.taxId&&(e.taxIdNumber=r.taxId,e.billingAddressLine1=r.addressLine1,e.billingAddressLine2=r.addressLine2,e.billingAddressCity=r.city,e.billingAddressState=r.state)}setPlanInformation(e,t){if(e.planType=t.type,this.prohibitsAdditionalSeats(e.planType))return e.useSecretsManager=t.subscribeToSecretsManager,void(e.isFromSecretsManagerTrial=t.isFromSecretsManagerTrial);e.additionalSeats=t.passwordManagerSeats,t.subscribeToSecretsManager&&(e.useSecretsManager=!0,e.isFromSecretsManagerTrial=t.isFromSecretsManagerTrial,e.additionalSmSeats=t.secretsManagerSeats,e.additionalServiceAccounts=t.secretsManagerServiceAccounts),t.storage&&(e.additionalStorageGb=t.storage)}restartSubscription(e,t,i){return zr(this,void 0,void 0,function*(){const n=yield this.makeOrganizationKeys(i),{key:r,keysRequest:s,collectionName:o}=this.makeOrganizationKeysRequest(n),a=new jr.L(r,s,o);this.setOrganizationInformation(a,t.organization),this.setPlanInformation(a,t.plan),this.setPaymentInformation(a,t.payment),yield this.billingApiService.restartSubscription(e,a)})}},deps:[je.G,Ar.P,I.Lu,As.N,he.W,Xe.X,mc.H]}),(0,Ue.F)({provide:lr.h,useClass:lr.N,deps:[b.v2,Je.m,N.D,Pu.b]}),(0,Ue.F)({provide:class{},useClass:class{constructor(e){this.stateProvider=e,this.enableBadgeCounterState=this.stateProvider.getActive(dr),this.enableBadgeCounter$=this.enableBadgeCounterState.state$.pipe((0,p.T)(e=>null==e||e))}setEnableBadgeCounter(e){return cr(this,void 0,void 0,function*(){yield this.enableBadgeCounterState.update(()=>e)})}},deps:[b.v2]}),(0,Ue.F)({provide:I.vB,useClass:I.QH,deps:[b.v2]}),(0,Ue.F)({provide:Gd.d,useClass:class{constructor(e,t){this.stateProvider=e,this.restrictedItemTypesService=t,this.enablePasskeysState=this.stateProvider.getGlobal(zu),this.enablePasskeys$=this.enablePasskeysState.state$.pipe((0,p.T)(e=>null==e||e)),this.showCardsCurrentTabState=this.stateProvider.getActive(Lu),this.showCardsCurrentTab$=(0,xt.z)([this.showCardsCurrentTabState.state$.pipe((0,p.T)(e=>null==e||e)),this.restrictedItemTypesService.restricted$]).pipe((0,p.T)(([e,t])=>e&&!t.some(e=>e.cipherType===Ld.gC.Card))),this.showIdentitiesCurrentTabState=this.stateProvider.getActive(Wu),this.showIdentitiesCurrentTab$=this.showIdentitiesCurrentTabState.state$.pipe((0,p.T)(e=>null==e||e)),this.clickItemsToAutofillVaultViewState=this.stateProvider.getActive(Ku),this.clickItemsToAutofillVaultView$=this.clickItemsToAutofillVaultViewState.state$.pipe((0,p.T)(e=>null!=e&&e),(0,Gr.t)({bufferSize:1,refCount:!1})),this.showAtRiskPasswordNotificationsState=this.stateProvider.getActive(Zu),this.showAtRiskPasswordNotifications$=this.showAtRiskPasswordNotificationsState.state$.pipe((0,p.T)(e=>null==e||e))}setShowCardsCurrentTab(e){return Hu(this,void 0,void 0,function*(){yield this.showCardsCurrentTabState.update(()=>e)})}setShowIdentitiesCurrentTab(e){return Hu(this,void 0,void 0,function*(){yield this.showIdentitiesCurrentTabState.update(()=>e)})}setClickItemsToAutofillVaultView(e){return Hu(this,void 0,void 0,function*(){yield this.clickItemsToAutofillVaultViewState.update(()=>e)})}setEnablePasskeys(e){return Hu(this,void 0,void 0,function*(){yield this.enablePasskeysState.update(()=>e)})}setShowAtRiskPasswordNotifications(e){return Hu(this,void 0,void 0,function*(){yield this.showAtRiskPasswordNotificationsState.update(()=>e)})}},deps:[b.v2,Pu.b]}),(0,Ue.F)({provide:cl,useClass:cl,deps:[ra.zq,se.K,al,Oe.Hq]}),(0,Ue.F)({provide:al,useClass:al,deps:[]}),(0,Ue.F)({provide:Ar.P,useClass:class{constructor(e){this.apiService=e}cancelOrganizationSubscription(e,t){return this.apiService.send("POST","/organizations/"+e+"/cancel",t,!0,!1)}cancelPremiumUserSubscription(e){return this.apiService.send("POST","/accounts/cancel",e,!0,!1)}createPremiumCheckoutSession(e){return xr(this,void 0,void 0,function*(){const t=yield this.apiService.send("POST","/account/billing/vnext/premium/checkout",e,!0,!0);return new Qr(t)})}getOrganizationBillingMetadata(e){return xr(this,void 0,void 0,function*(){const t=yield this.apiService.send("GET","/organizations/"+e+"/billing/vnext/metadata",null,!0,!0);return new Er(t)})}getOrganizationBillingMetadataSelfHost(e){return xr(this,void 0,void 0,function*(){const t=yield this.apiService.send("GET","/organizations/"+e+"/billing/vnext/self-host/metadata",null,!0,!0);return new Er(t)})}getPlans(){return xr(this,void 0,void 0,function*(){const e=yield this.apiService.send("GET","/plans",null,!0,!0);return new yt.s(e,Sr.tQ)})}getPremiumPlan(){return xr(this,void 0,void 0,function*(){const e=yield this.apiService.send("GET","/plans/premium",null,!0,!0);return new kr(e)})}getProviderClientInvoiceReport(e,t){return xr(this,void 0,void 0,function*(){return yield this.apiService.send("GET","/providers/"+e+"/billing/invoices/"+t,null,!0,!0)})}getProviderInvoices(e){return xr(this,void 0,void 0,function*(){const t=yield this.apiService.send("GET","/providers/"+e+"/billing/invoices",null,!0,!0);return new wr(t)})}getProviderSubscription(e){return xr(this,void 0,void 0,function*(){const t=yield this.apiService.send("GET","/providers/"+e+"/billing/subscription",null,!0,!0);return new Pr(t)})}restartSubscription(e,t){return xr(this,void 0,void 0,function*(){return yield this.apiService.send("POST","/organizations/"+e+"/billing/restart-subscription",t,!0,!1)})}},deps:[je.G]}),(0,Ue.F)({provide:vr.Q,useClass:class{constructor(e,t){this.billingApiService=e,this.platformUtilsService=t,this.metadataCache=new Map,this.refreshMetadataTrigger=new Tt.t(void 0),this.refreshMetadataCache=()=>{this.metadataCache.clear(),this.refreshMetadataTrigger.next()}}getOrganizationMetadata$(e){return this.refreshMetadataTrigger.pipe((0,jt.n)(()=>{const t=this.metadataCache.get(e);if(t)return t;const i=(0,Si.H)(this.fetchMetadata(e)).pipe((0,Gr.t)({bufferSize:1,refCount:!1}));return this.metadataCache.set(e,i),i}))}fetchMetadata(e){return Ur(this,void 0,void 0,function*(){return this.platformUtilsService.isSelfHost()?yield this.billingApiService.getOrganizationBillingMetadataSelfHost(e):yield this.billingApiService.getOrganizationBillingMetadata(e)})}},deps:[Ar.P,G.y]}),(0,Ue.F)({provide:gr.Q,useClass:class{constructor(e){this.stateProvider=e}hasPremiumFromAnyOrganization$(e){return this.stateProvider.getUser(e,Ir).state$.pipe((0,p.T)(e=>!!(null==e?void 0:e.hasPremiumFromAnyOrganization)))}hasPremiumPersonally$(e){return this.stateProvider.getUser(e,Ir).state$.pipe((0,p.T)(e=>!!(null==e?void 0:e.hasPremiumPersonally)))}hasPremiumFromAnySource$(e){return this.stateProvider.getUser(e,Ir).state$.pipe((0,p.T)(e=>!0===(null==e?void 0:e.hasPremiumFromAnyOrganization)||!0===(null==e?void 0:e.hasPremiumPersonally)))}setHasPremium(e,t,i){return Cr(this,void 0,void 0,function*(){yield this.stateProvider.getUser(i,Ir).update(i=>({hasPremiumPersonally:e,hasPremiumFromAnyOrganization:t}),{shouldUpdate:i=>null==i||i.hasPremiumFromAnyOrganization!==t||i.hasPremiumPersonally!==e})})}},deps:[b.v2]}),(0,Ue.F)({provide:yr.z,useClass:class{constructor(e,t,i,n,r){this.billingApiService=e,this.configService=t,this.i18nService=i,this.logService=n,this.environmentService=r,this.getPersonalSubscriptionPricingTiers$=()=>(0,xt.z)([this.premium$,this.families$]).pipe((0,Wr.W)(e=>(this.logService.error("Failed to load personal subscription pricing tiers",e),(0,Lr.$)(()=>e)))),this.getBusinessSubscriptionPricingTiers$=()=>(0,xt.z)([this.teams$,this.enterprise$,this.custom$]).pipe((0,Wr.W)(e=>(this.logService.error("Failed to load business subscription pricing tiers",e),(0,Lr.$)(()=>e)))),this.getDeveloperSubscriptionPricingTiers$=()=>(0,xt.z)([this.free$,this.teams$,this.enterprise$]).pipe((0,Wr.W)(e=>(this.logService.error("Failed to load developer subscription pricing tiers",e),(0,Lr.$)(()=>e)))),this.bypassSelfHostPremiumCheck$=this.configService.getFeatureFlag$(Kr.TO.DebugDisableSelfHostPremiumCheck),this.organizationPlansResponse$=(0,xt.z)([this.environmentService.environment$,this.bypassSelfHostPremiumCheck$]).pipe((0,_i.s)(1),(0,jt.n)(([e,t])=>e.isCloud()||t?(0,Si.H)(this.billingApiService.getPlans()):(0,ln.of)({data:[]})),(0,Gr.t)({bufferSize:1,refCount:!1})),this.premiumPlanResponse$=(0,xt.z)([this.environmentService.environment$,this.bypassSelfHostPremiumCheck$]).pipe((0,_i.s)(1),(0,jt.n)(([e,t])=>e.isCloud()||t?(0,Si.H)(this.billingApiService.getPremiumPlan()).pipe((0,Wr.W)(e=>(this.logService.error("Failed to fetch premium plan from API",e),(0,Lr.$)(()=>e)))):(0,ln.of)({seat:void 0,storage:void 0})),(0,Gr.t)({bufferSize:1,refCount:!1})),this.premium$=this.premiumPlanResponse$.pipe((0,p.T)(e=>{var t,i,n;return{id:Zr.OU.Premium,name:this.i18nService.t("premium"),description:this.i18nService.t("advancedOnlineSecurity"),availableCadences:[Zr.fQ.Annually],passwordManager:{type:"standalone",annualPrice:null===(t=e.seat)||void 0===t?void 0:t.price,annualPricePerAdditionalStorageGB:null===(i=e.storage)||void 0===i?void 0:i.price,providedStorageGB:null===(n=e.storage)||void 0===n?void 0:n.provided,features:[this.featureTranslations.builtInAuthenticator(),this.featureTranslations.secureFileStorage(),this.featureTranslations.emergencyAccess(),this.featureTranslations.breachMonitoring(),this.featureTranslations.andMoreFeatures()]}}})),this.families$=this.organizationPlansResponse$.pipe((0,p.T)(e=>{var t,i,n,r;const s=e.data.find(e=>e.type===Yr.OL.FamiliesAnnually);return{id:Zr.OU.Families,name:this.i18nService.t("planNameFamilies"),description:this.i18nService.t("planDescFamiliesV2"),availableCadences:[Zr.fQ.Annually],passwordManager:{type:"packaged",users:null===(t=null==s?void 0:s.PasswordManager)||void 0===t?void 0:t.baseSeats,annualPrice:null===(i=null==s?void 0:s.PasswordManager)||void 0===i?void 0:i.basePrice,annualPricePerAdditionalStorageGB:null===(n=null==s?void 0:s.PasswordManager)||void 0===n?void 0:n.additionalStoragePricePerGb,providedStorageGB:null===(r=null==s?void 0:s.PasswordManager)||void 0===r?void 0:r.baseStorageGb,features:[this.featureTranslations.premiumAccounts(),this.featureTranslations.familiesUnlimitedSharing(),this.featureTranslations.familiesUnlimitedCollections(),this.featureTranslations.familiesSharedStorage()]}}})),this.free$=this.organizationPlansResponse$.pipe((0,p.T)(e=>{var t,i,n;const r=e.data.find(e=>e.type===Yr.OL.Free);return{id:Zr.ql.Free,name:this.i18nService.t("planNameFree"),description:this.i18nService.t("planDescFreeV2","1"),availableCadences:[],passwordManager:{type:"free",features:[this.featureTranslations.limitedUsersV2(null===(t=null==r?void 0:r.PasswordManager)||void 0===t?void 0:t.maxSeats),this.featureTranslations.limitedCollectionsV2(null===(i=null==r?void 0:r.PasswordManager)||void 0===i?void 0:i.maxCollections),this.featureTranslations.alwaysFree()]},secretsManager:{type:"free",features:[this.featureTranslations.twoSecretsIncluded(),this.featureTranslations.projectsIncludedV2(null===(n=null==r?void 0:r.SecretsManager)||void 0===n?void 0:n.maxProjects)]}}})),this.teams$=this.organizationPlansResponse$.pipe((0,p.T)(e=>{var t,i,n,r,s,o;const a=e.data.find(e=>e.type===Yr.OL.TeamsAnnually);return{id:Zr.ql.Teams,name:this.i18nService.t("planNameTeams"),description:this.i18nService.t("teamsPlanUpgradeMessage"),availableCadences:[Zr.fQ.Annually,Zr.fQ.Monthly],passwordManager:{type:"scalable",annualPricePerUser:null===(t=null==a?void 0:a.PasswordManager)||void 0===t?void 0:t.seatPrice,annualPricePerAdditionalStorageGB:null===(i=null==a?void 0:a.PasswordManager)||void 0===i?void 0:i.additionalStoragePricePerGb,providedStorageGB:null===(n=null==a?void 0:a.PasswordManager)||void 0===n?void 0:n.baseStorageGb,features:[this.featureTranslations.secureItemSharing(),this.featureTranslations.eventLogMonitoring(),this.featureTranslations.directoryIntegration(),this.featureTranslations.scimSupport()]},secretsManager:{type:"scalable",annualPricePerUser:null===(r=null==a?void 0:a.SecretsManager)||void 0===r?void 0:r.seatPrice,annualPricePerAdditionalServiceAccount:null===(s=null==a?void 0:a.SecretsManager)||void 0===s?void 0:s.additionalPricePerServiceAccount,features:[this.featureTranslations.unlimitedSecretsAndProjects(),this.featureTranslations.includedMachineAccountsV2(null===(o=null==a?void 0:a.SecretsManager)||void 0===o?void 0:o.baseServiceAccount)]}}})),this.enterprise$=this.organizationPlansResponse$.pipe((0,p.T)(e=>{var t,i,n,r,s,o;const a=e.data.find(e=>e.type===Yr.OL.EnterpriseAnnually);return{id:Zr.ql.Enterprise,name:this.i18nService.t("planNameEnterprise"),description:this.i18nService.t("planDescEnterpriseV2"),availableCadences:[Zr.fQ.Annually,Zr.fQ.Monthly],passwordManager:{type:"scalable",annualPricePerUser:null===(t=null==a?void 0:a.PasswordManager)||void 0===t?void 0:t.seatPrice,annualPricePerAdditionalStorageGB:null===(i=null==a?void 0:a.PasswordManager)||void 0===i?void 0:i.additionalStoragePricePerGb,providedStorageGB:null===(n=null==a?void 0:a.PasswordManager)||void 0===n?void 0:n.baseStorageGb,features:[this.featureTranslations.enterpriseSecurityPolicies(),this.featureTranslations.passwordLessSso(),this.featureTranslations.accountRecovery(),this.featureTranslations.selfHostOption(),this.featureTranslations.complimentaryFamiliesPlan()]},secretsManager:{type:"scalable",annualPricePerUser:null===(r=null==a?void 0:a.SecretsManager)||void 0===r?void 0:r.seatPrice,annualPricePerAdditionalServiceAccount:null===(s=null==a?void 0:a.SecretsManager)||void 0===s?void 0:s.additionalPricePerServiceAccount,features:[this.featureTranslations.unlimitedUsers(),this.featureTranslations.includedMachineAccountsV2(null===(o=null==a?void 0:a.SecretsManager)||void 0===o?void 0:o.baseServiceAccount)]}}})),this.custom$=this.organizationPlansResponse$.pipe((0,p.T)(()=>({id:Zr.ql.Custom,name:this.i18nService.t("planNameCustom"),description:this.i18nService.t("planDescCustom"),availableCadences:[],passwordManager:{type:"custom",features:[this.featureTranslations.strengthenCybersecurity(),this.featureTranslations.boostProductivity(),this.featureTranslations.seamlessIntegration()]}}))),this.featureTranslations={builtInAuthenticator:()=>({key:"builtInAuthenticator",value:this.i18nService.t("builtInAuthenticator")}),emergencyAccess:()=>({key:"emergencyAccess",value:this.i18nService.t("emergencyAccess")}),breachMonitoring:()=>({key:"breachMonitoring",value:this.i18nService.t("breachMonitoring")}),andMoreFeatures:()=>({key:"andMoreFeatures",value:this.i18nService.t("andMoreFeatures")}),premiumAccounts:()=>({key:"premiumAccounts",value:this.i18nService.t("premiumAccounts")}),secureFileStorage:()=>({key:"secureFileStorage",value:this.i18nService.t("secureFileStorage")}),familiesUnlimitedSharing:()=>({key:"familiesUnlimitedSharing",value:this.i18nService.t("familiesUnlimitedSharing")}),familiesUnlimitedCollections:()=>({key:"familiesUnlimitedCollections",value:this.i18nService.t("familiesUnlimitedCollections")}),familiesSharedStorage:()=>({key:"familiesSharedStorage",value:this.i18nService.t("familiesSharedStorage")}),limitedUsersV2:e=>({key:"limitedUsersV2",value:this.i18nService.t("limitedUsersV2",e)}),limitedCollectionsV2:e=>({key:"limitedCollectionsV2",value:this.i18nService.t("limitedCollectionsV2",e)}),alwaysFree:()=>({key:"alwaysFree",value:this.i18nService.t("alwaysFree")}),twoSecretsIncluded:()=>({key:"twoSecretsIncluded",value:this.i18nService.t("twoSecretsIncluded")}),projectsIncludedV2:e=>({key:"projectsIncludedV2",value:this.i18nService.t("projectsIncludedV2",e)}),secureItemSharing:()=>({key:"secureItemSharing",value:this.i18nService.t("secureItemSharing")}),eventLogMonitoring:()=>({key:"eventLogMonitoring",value:this.i18nService.t("eventLogMonitoring")}),directoryIntegration:()=>({key:"directoryIntegration",value:this.i18nService.t("directoryIntegration")}),scimSupport:()=>({key:"scimSupport",value:this.i18nService.t("scimSupport")}),unlimitedSecretsAndProjects:()=>({key:"unlimitedSecretsAndProjects",value:this.i18nService.t("unlimitedSecretsAndProjects")}),includedMachineAccountsV2:e=>({key:"includedMachineAccountsV2",value:this.i18nService.t("includedMachineAccountsV2",e)}),enterpriseSecurityPolicies:()=>({key:"enterpriseSecurityPolicies",value:this.i18nService.t("enterpriseSecurityPolicies")}),passwordLessSso:()=>({key:"passwordLessSso",value:this.i18nService.t("passwordLessSso")}),accountRecovery:()=>({key:"accountRecovery",value:this.i18nService.t("accountRecovery")}),selfHostOption:()=>({key:"selfHostOption",value:this.i18nService.t("selfHostOption")}),complimentaryFamiliesPlan:()=>({key:"complimentaryFamiliesPlan",value:this.i18nService.t("complimentaryFamiliesPlan")}),unlimitedUsers:()=>({key:"unlimitedUsers",value:this.i18nService.t("unlimitedUsers")}),strengthenCybersecurity:()=>({key:"strengthenCybersecurity",value:this.i18nService.t("strengthenCybersecurity")}),boostProductivity:()=>({key:"boostProductivity",value:this.i18nService.t("boostProductivity")}),seamlessIntegration:()=>({key:"seamlessIntegration",value:this.i18nService.t("seamlessIntegration")})}}},deps:[Ar.P,O.w,he.W,se.K,yo.v]}),(0,Ue.F)({provide:Ke.y,useClass:class{constructor(e){this.stateProvider=e,this.autoConfirmFingerPrints=this.buildOrganizationManagementPreference(Pt,!1)}buildOrganizationManagementPreference(e,t){return new Ke.i(this.getKeyFromState(e).state$.pipe((0,p.T)(e=>null!=e?e:t)),this.setKeyInStateFn(e))}getKeyFromState(e){return this.stateProvider.getActive(e)}setKeyInStateFn(e){return t=>Dt(this,void 0,void 0,function*(){yield this.getKeyFromState(e).update(()=>t)})}},deps:[b.v2]}),(0,Ue.F)({provide:vc,useClass:vc,deps:[I.Lu]}),(0,Ue.F)({provide:B.zcH,useClass:iA,deps:[]}),(0,Ue.F)({provide:Oe.mq,useFactory:()=>new d.B,deps:[]}),(0,Ue.F)({provide:ca.qk,useFactory:e=>new ca.qk(e.asObservable()),deps:[Oe.mq]}),(0,Ue.F)({provide:ca.D$,useFactory:e=>new da.fg(e),deps:[Oe.mq]}),(0,Ue.F)({provide:is.Cc,useClass:is.P8,deps:[se.K]}),(0,Ue.F)({provide:qe.J,useClass:class{constructor(e){this.apiService=e}postProviderSetup(e,t){return $t(this,void 0,void 0,function*(){const i=yield this.apiService.send("POST","/providers/"+e+"/setup",t,!0,!0);return new qt(i)})}getProvider(e){return $t(this,void 0,void 0,function*(){const t=yield this.apiService.send("GET","/providers/"+e,null,!0,!0);return new qt(t)})}putProvider(e,t){return $t(this,void 0,void 0,function*(){const i=yield this.apiService.send("PUT","/providers/"+e,t,!0,!0);return new qt(i)})}providerRecoverDeleteToken(e,t){return this.apiService.send("POST","/providers/"+e+"/delete-recover-token",t,!1,!1)}deleteProvider(e){return $t(this,void 0,void 0,function*(){yield this.apiService.send("DELETE","/providers/"+e,null,!0,!1)})}getProviderOrganizations(e){return $t(this,void 0,void 0,function*(){const t=yield this.apiService.send("GET","/providers/"+e+"/organizations",null,!0,!0);return new yt.s(t,Jt)})}getProviderAddableOrganizations(e){return $t(this,void 0,void 0,function*(){return(yield this.apiService.send("GET","/providers/"+e+"/clients/addable",null,!0,!0)).map(e=>new Zt(e))})}addOrganizationToProvider(e,t){return this.apiService.send("POST","/providers/"+e+"/clients/existing",t,!0,!1)}updateProviderOrganization(e,t,i){return $t(this,void 0,void 0,function*(){return yield this.apiService.send("PUT","/providers/"+e+"/clients/"+t,i,!0,!1)})}createProviderOrganization(e,t){return this.apiService.send("POST","/providers/"+e+"/clients",t,!0,!1)}},deps:[je.G]}),(0,Ue.F)({provide:I.zZ,useClass:I.aT,deps:[b.v2]}),(0,Ue.F)({provide:ge,useClass:class{constructor(e,t,i,n,r,s,o,a,l,c,d){this.apiService=e,this.authService=t,this.keyService=i,this.encryptService=n,this.policyApiService=r,this.policyService=s,this.logService=o,this.organizationApiService=a,this.organizationUserApiService=l,this.i18nService=c,this.globalStateProvider=d,this.policyCache=new Map,this.organizationInviteState=this.globalStateProvider.get(bi)}getOrganizationInvite(){return Ci(this,void 0,void 0,function*(){return yield(0,u._)(this.organizationInviteState.state$)})}setOrganizationInvite(e){return Ci(this,void 0,void 0,function*(){yield this.organizationInviteState.update(()=>e),this.policyCache.clear()})}clearOrganizationInvite(){return Ci(this,void 0,void 0,function*(){yield this.organizationInviteState.update(()=>null),this.policyCache.clear()})}validateAndAcceptInvite(e,t){return Ci(this,void 0,void 0,function*(){return e.initOrganization?(yield this.acceptAndInitOrganization(e,t),!0):(yield this.masterPasswordPolicyCheckRequired(e))?(yield this.setOrganizationInvite(e),this.authService.logOut(()=>{}),!1):(yield this.accept(e,t),!0)})}getInvitePolicies(e){return Ci(this,void 0,void 0,function*(){const t=this.policyCache.get(e.token);if(null!=t)return t;try{const t=yield this.policyApiService.getPoliciesByToken(e.organizationId,e.token,e.email,e.organizationUserId);return null!=t&&this.policyCache.set(e.token,t),t}catch(i){return void this.logService.error(i)}})}getMasterPasswordPolicyOptionsForInvite(e){return Ci(this,void 0,void 0,function*(){const t=yield this.getInvitePolicies(e);if(null!=t)return this.policyService.combinePoliciesIntoMasterPasswordPolicyOptions(t)})}acceptAndInitOrganization(e,t){return Ci(this,void 0,void 0,function*(){yield this.prepareAcceptAndInitRequest(e,t).then(t=>this.organizationUserApiService.postOrganizationUserAcceptInit(e.organizationId,e.organizationUserId,t)),yield this.apiService.refreshIdentityToken(),yield this.clearOrganizationInvite()})}prepareAcceptAndInitRequest(e,t){return Ci(this,void 0,void 0,function*(){const[i,n]=yield this.keyService.makeOrgKey(t),[r,s]=yield this.keyService.makeKeyPair(n),o=yield this.encryptService.encryptString(this.i18nService.t("defaultCollection"),n);if(null==i.encryptedString||null==s.encryptedString||null==o.encryptedString)throw new Error("Failed to encrypt organization init data.");return new _.i0(e.token,i.encryptedString,new mi.B(r,s.encryptedString),o.encryptedString)})}accept(e,t){return Ci(this,void 0,void 0,function*(){yield this.prepareAcceptRequest(e,t).then(t=>this.organizationUserApiService.postOrganizationUserAccept(e.organizationId,e.organizationUserId,t)),yield this.apiService.refreshIdentityToken(),yield this.clearOrganizationInvite()})}prepareAcceptRequest(e,t){return Ci(this,void 0,void 0,function*(){const i=new _.I;if(i.token=e.token,yield this.resetPasswordEnrollRequired(e)){const n=yield this.organizationApiService.getKeys(e.organizationId);if(null==n)throw new Error(this.i18nService.t("resetPasswordOrgKeysError"));const r=zt.A.fromB64ToArray(n.publicKey),s=yield(0,u._)(this.keyService.userKey$(t));if(null==s)throw new Error("User key is required to enroll in password reset.");const o=yield this.encryptService.encapsulateKeyUnsigned(s,r);if(null==o.encryptedString)throw new Error("Failed to encrypt user key for password reset enrollment.");i.resetPasswordKey=o.encryptedString}return i})}resetPasswordEnrollRequired(e){return Ci(this,void 0,void 0,function*(){const t=yield this.getInvitePolicies(e);if(null==t||0===t.length)return!1;const i=this.policyService.getResetPasswordPolicyOptions(t,e.organizationId);return i[1]&&i[0].autoEnrollEnabled})}masterPasswordPolicyCheckRequired(e){return Ci(this,void 0,void 0,function*(){const t=yield this.getInvitePolicies(e);if(null==t||0===t.length)return!1;const i=t.some(e=>e.type===_e.tt.MasterPassword&&e.enabled);let n=yield this.getOrganizationInvite();null!=n&&n.email!==e.email&&(yield this.clearOrganizationInvite(),n=null);return i&&null==n})}},deps:[je.G,k.u,I.Lu,As.N,He.m,Je.N,se.K,Xe.X,_.uB,he.W,b.Y2]}),(0,Ue.F)({provide:Ve,useClass:Mh,deps:[je.G,As.N,he.W,I.zZ,I.Lu,ci,Ae.O,Xe.X,_.uB,g.bj,ls.h,ta.vW]}),(0,Ue.F)({provide:_a.t,useClass:_a.t,deps:[O.w]}),(0,Ue.F)({provide:pe.f,useClass:class{constructor(){this.anonLayoutWrapperDataSubject=new d.B,this.cachedRouteData={}}setAnonLayoutWrapperData(e){this.anonLayoutWrapperDataSubject.next(e)}anonLayoutWrapperData$(){return this.anonLayoutWrapperDataSubject.asObservable()}cacheRouteData(e){this.cachedRouteData=e}resetToCachedRouteData(){this.anonLayoutWrapperDataSubject.next(Object.assign(Object.assign({},qu.J),this.cachedRouteData))}},deps:[]}),(0,Ue.F)({provide:ne.mZ,useClass:ne.v2,deps:[I.Lu,ni.T,Ae.L,O.w,na.K5]}),(0,Ue.F)({provide:ne.yX,useClass:ne.NH,deps:[]}),(0,Ue.F)({provide:ne.ag,useClass:ne.jr,deps:[]}),(0,Ue.F)({provide:ar.tE,useClass:ar.Ap,deps:[je.G]}),(0,Ue.F)({provide:oA.Z,useExisting:aA,deps:[]}),(0,Ue.F)({provide:ne.qG,useClass:ne.nF,deps:[hs.R,yo.v,_u.JJ,G.y,ui._]}),(0,Ue.F)({provide:ta.vW,useClass:class{constructor(e,t,i,n,r,s,o,a=null){this.sdkClientFactory=e,this.environmentService=t,this.platformUtilsService=i,this.accountService=n,this.apiService=r,this.stateProvider=s,this.configService=o,this.userAgent=a,this.sdkClientOverrides=new Tt.t({}),this.sdkClientCache=new Map,this.client$=this.environmentService.environment$.pipe((0,dl.H)(e=>hc(this,void 0,void 0,function*(){yield gs.B.Ready;const t=yield this.toSettings(e),i=yield this.sdkClientFactory.createSdkClient(new pc(this.apiService),t);return yield this.loadFeatureFlags(i),i})),(0,Gr.t)({refCount:!0,bufferSize:1}))}registerClient$(e){return this.sdkClientOverrides.pipe((0,ul.v)(t=>t[e]!==Ac,!1),(0,p.T)(t=>{if(t[e]===Ac)throw new Error("Encountered UnsetClient even though it should have been filtered out");return t[e]}),(0,$i.F)(),(0,jt.n)(t=>t?(0,ln.of)(t):this.internalClient$(e)),(0,ul.v)(e=>void 0!==e,!1),(0,hl.v)(()=>new na.m8(e)))}internalClient$(e){const t=this.sdkClientCache.get(e);if(void 0!==t)return t;const i=this.accountService.accounts$.pipe((0,p.T)(t=>t[e]),(0,$i.F)()),n=(0,xt.z)([this.environmentService.getEnvironment$(e),i,gs.B.Ready]).pipe((0,jt.n)(([t,i])=>new Aa.c(n=>{let r;return(()=>hc(this,void 0,void 0,function*(){if(null==t||null==i)return;const n=yield this.toSettings(t),r=yield this.sdkClientFactory.createSdkClient(new pc(this.apiService,e),n);return yield ac(e,r.platform().state(),this.stateProvider),r.km_state_bridge().register_bridge_impl(new Bl(this.stateProvider,e)),yield this.loadFeatureFlags(r),r}))().then(e=>{r=void 0===e?void 0:new El(e),n.next(r)}).catch(e=>{n.error(e)}),()=>null==r?void 0:r.markForDisposal()})),(0,P.M)({finalize:()=>this.sdkClientCache.delete(e)}),(0,Gr.t)({refCount:!0,bufferSize:1}));return this.sdkClientCache.set(e,n),n}loadFeatureFlags(e){return hc(this,void 0,void 0,function*(){var t;const i=yield(0,u._)(this.configService.serverConfig$),n=new Map(Object.entries(null!==(t=null==i?void 0:i.featureStates)&&void 0!==t?t:{}).filter(([,e])=>"boolean"==typeof e).map(([e,t])=>[e,t]));yield e.platform().load_flags(n)})}toSettings(e){return hc(this,void 0,void 0,function*(){var t;return{apiUrl:e.getApiUrl(),identityUrl:e.getIdentityUrl(),deviceType:(0,na.yL)(this.platformUtilsService.getDevice()),userAgent:null!==(t=this.userAgent)&&void 0!==t?t:navigator.userAgent,bitwardenClientVersion:yield this.platformUtilsService.getApplicationVersionNumber()}})}},deps:[ia,yo.v,G.y,N.D,je.G,b.v2,O.w]}),(0,Ue.F)({provide:na.K5,useClass:class{constructor(e,t,i,n,r,s,o,a,l,c,d,u=null){this.sdkClientFactory=e,this.environmentService=t,this.platformUtilsService=i,this.accountService=n,this.kdfConfigService=r,this.keyService=s,this.accountCryptographyStateService=o,this.apiService=a,this.stateProvider=l,this.configService=c,this.v2UpgradeTokenStateService=d,this.userAgent=u,this.sdkClientOverrides=new Tt.t({}),this.sdkClientCache=new Map,this.client$=this.environmentService.environment$.pipe((0,dl.H)(e=>cc(this,void 0,void 0,function*(){yield gs.B.Ready;const t=yield this.toSettings(e),i=yield this.sdkClientFactory.createSdkClient(new uc(this.apiService),t);return yield this.loadFeatureFlags(i),i})),(0,Gr.t)({refCount:!0,bufferSize:1})),this.version$=this.client$.pipe((0,p.T)(e=>e.version()),(0,Wr.W)(()=>"Unsupported"))}userClient$(e){return this.sdkClientOverrides.pipe((0,ul.v)(t=>t[e]!==dc,!1),(0,p.T)(t=>{if(t[e]===dc)throw new Error("Encountered UnsetClient even though it should have been filtered out");return t[e]}),(0,$i.F)(),(0,jt.n)(t=>t?(0,ln.of)(t):this.internalClient$(e)),(0,ul.v)(e=>void 0!==e,!1),(0,h.p)(e=>!e.isMarkedForDisposal),(0,hl.v)(()=>new na.m8(e)))}setClient(e,t){const i=this.sdkClientOverrides.value[e];this.sdkClientOverrides.next(Object.assign(Object.assign({},this.sdkClientOverrides.value),{[e]:t?new El(t):dc})),i!==dc&&void 0!==i&&i.markForDisposal()}internalClient$(e){const t=this.sdkClientCache.get(e);if(void 0!==t)return t;const i=this.accountService.accounts$.pipe((0,p.T)(t=>t[e]),(0,$i.F)()),n=this.kdfConfigService.getKdfConfig$(e).pipe((0,$i.F)()),r=this.accountCryptographyStateService.accountCryptographicState$(e).pipe((0,$i.F)()),s=this.keyService.userKey$(e).pipe((0,$i.F)()),o=this.keyService.encryptedOrgKeys$(e).pipe((0,$i.F)(vl.c)),a=this.v2UpgradeTokenStateService.v2UpgradeToken$(e).pipe((0,$i.F)()),l=(0,xt.z)([this.environmentService.getEnvironment$(e),i,n,r,s,o,a,gs.B.Ready]).pipe((0,Al.c)(20,pl.E,{leading:!0,trailing:!0}),(0,jt.n)(([t,i,n,r,s,o,a])=>new Aa.c(l=>{let c;return(()=>cc(this,void 0,void 0,function*(){if(null==t)return;const l=yield this.toSettings(t),c=yield this.sdkClientFactory.createSdkClient(new uc(this.apiService,e),l);return yield this.initializeClient(e,c),null==n||null==r||null==s||(yield this.initializeClientCrypto(e,c,i,n.toSdkConfig(),r,o,a)),c}))().then(e=>{c=void 0===e?void 0:new El(e),l.next(c)}).catch(e=>{l.error(e)}),()=>null==c?void 0:c.markForDisposal()})),(0,P.M)({finalize:()=>this.sdkClientCache.delete(e)}),(0,go.u)({connector:()=>new ho.m(1),resetOnRefCountZero:()=>(0,vo.O)(1e3)}));return this.sdkClientCache.set(e,l),l}initializeClient(e,t){return cc(this,void 0,void 0,function*(){yield ac(e,t.platform().state(),this.stateProvider),t.km_state_bridge().register_bridge_impl(new Bl(this.stateProvider,e)),yield this.loadFeatureFlags(t)})}initializeClientCrypto(e,t,i,n,r,s,o){return cc(this,void 0,void 0,function*(){yield t.crypto().initialize_user_crypto({userId:(0,na.WD)(e),email:i.email,method:{clientManagedState:{}},kdfParams:n,accountCryptographicState:r,upgradeToken:null!=o?o:void 0}),yield t.crypto().initialize_org_crypto({organizationKeys:new Map(Object.entries(s).map(([e,t])=>[(0,na.WD)(e),t.toJSON()]))})})}loadFeatureFlags(e){return cc(this,void 0,void 0,function*(){var t;const i=yield(0,u._)(this.configService.serverConfig$),n=new Map(Object.entries(null!==(t=null==i?void 0:i.featureStates)&&void 0!==t?t:{}).filter(([,e])=>"boolean"==typeof e).map(([e,t])=>[e,t]));yield e.platform().load_flags(n)})}toSettings(e){return cc(this,void 0,void 0,function*(){var t;return{apiUrl:e.getApiUrl(),identityUrl:e.getIdentityUrl(),deviceType:(0,na.yL)(this.platformUtilsService.getDevice()),bitwardenClientVersion:yield this.platformUtilsService.getApplicationVersionNumber(),userAgent:null!==(t=this.userAgent)&&void 0!==t?t:navigator.userAgent}})}},deps:[ia,yo.v,G.y,N.D,I.zZ,I.Lu,ls.h,je.G,b.v2,O.w,Zo]}),(0,Ue.F)({provide:jd.y,useClass:jd.H,deps:[_.YD,v.PV,N.D]}),(0,Ue.F)({provide:zo,useClass:class{constructor(e){this.cryptoFunctionService=e}hashPassword(e,t){return Wo(this,void 0,void 0,function*(){if(!e||!t)throw new Error("Password and key material are required.");return yield this.cryptoFunctionService.pbkdf2(e,t,"sha256",Lo)})}},deps:[hs.R]}),(0,Ue.F)({provide:ne.Ak,useClass:ne.dl,deps:[oe.U]}),(0,Ue.F)({provide:I.ox,useClass:I.PA,deps:[je.G]}),(0,Ue.F)({provide:I.wM,useClass:I.xP,deps:[I.Lu,Q.p,I.ox,se.K,na.K5,je.G,O.w,ls.h]}),(0,Ue.F)({provide:g.aJ,useClass:g.L7,deps:[g.pi,ui._,mc.H,I.wM,Vs]}),(0,Ue.F)({provide:Ju.RB,useClass:Ju.Sb,deps:[b.v2,je.G,v.PV,k.u,U,ca.qk]}),(0,Ue.F)({provide:wi,useClass:class{constructor(e,t,i){this.globalStateProvider=e,this.sdkService=t,this.sendPasswordService=i,this.initializeState()}initializeState(){this.sendAccessTokenDictGlobalState=this.globalStateProvider.get(Qi)}tryGetSendAccessToken$(e){return(0,Ei.v)(()=>(0,Si.H)(this._tryGetSendAccessToken(e)))}_tryGetSendAccessToken(e){return ki(this,void 0,void 0,function*(){this.validateSendId(e);const t=yield this.getSendAccessTokenFromStorage(e);if(null!=t)return t.isExpired()?(yield this.clearSendAccessTokenFromStorage(e),{kind:"expired"}):t;const i={sendId:e},n=yield(0,u._)(this.sdkService.client$);try{const t=yield n.auth().send_access().request_send_access_token(i),r=Bi.fromSendAccessTokenResponse(t);return yield this.setSendAccessTokenInStorage(e,r),r}catch(r){return this.normalizeSendAccessTokenError(r)}})}getSendAccessToken$(e,t){return(0,Ei.v)(()=>(0,Si.H)(this._getSendAccessToken(e,t)))}_getSendAccessToken(e,t){return ki(this,void 0,void 0,function*(){this.validateCredentialsRequest(e,t);const i={sendId:e,sendAccessCredentials:this.convertDomainCredentialsToSdkCredentials(t)},n=yield(0,u._)(this.sdkService.client$);try{const t=yield n.auth().send_access().request_send_access_token(i),r=Bi.fromSendAccessTokenResponse(t);return yield this.setSendAccessTokenInStorage(e,r),r}catch(r){return this.normalizeSendAccessTokenError(r)}})}invalidateSendAccessToken(e){return ki(this,void 0,void 0,function*(){yield this.clearSendAccessTokenFromStorage(e)})}hashSendPassword(e,t){return ki(this,void 0,void 0,function*(){if(null==e||""===e.trim())throw new Error("Password must be provided.");if(null==t||""===t.trim())throw new Error("KeyMaterialUrlB64 must be provided.");const i=zt.A.fromUrlB64ToArray(t),n=yield this.sendPasswordService.hashPassword(e,i);return zt.A.fromBufferToB64(n)})}getSendAccessTokenFromStorage(e){return ki(this,void 0,void 0,function*(){if(null!=this.sendAccessTokenDictGlobalState){const t=yield(0,u._)(this.sendAccessTokenDictGlobalState.state$);return null==t?void 0:t[e]}})}setSendAccessTokenInStorage(e,t){return ki(this,void 0,void 0,function*(){null!=this.sendAccessTokenDictGlobalState&&(yield this.sendAccessTokenDictGlobalState.update(i=>(null!=i||(i={}),i[e]=t,i),{shouldUpdate:i=>{const n=null==i?void 0:i[e];return(null==n?void 0:n.token)!==t.token||(null==n?void 0:n.expiresAt)!==t.expiresAt}}))})}clearSendAccessTokenFromStorage(e){return ki(this,void 0,void 0,function*(){null!=this.sendAccessTokenDictGlobalState&&(yield this.sendAccessTokenDictGlobalState.update(t=>{if(!t)return t;if(null==t[e])return t;const i=t,n=e;i[n];return Ri(i,["symbol"==typeof n?n:n+""])},{shouldUpdate:t=>null!=(null==t?void 0:t[e])}))})}normalizeSendAccessTokenError(e){if(this.isSendAccessTokenError(e))return"unexpected"===e.kind?{kind:"unexpected_server",error:e.data}:{kind:"expected_server",error:e.data};if(e instanceof Error)return{kind:"unknown",error:e.message};try{return{kind:"unknown",error:JSON.stringify(e)}}catch(t){return{kind:"unknown",error:"error cannot be stringified"}}}isSendAccessTokenError(e){return"object"==typeof e&&null!==e&&"kind"in e&&("expected"===e.kind||"unexpected"===e.kind)}validateSendId(e){if(null==e||""===e.trim())throw new Error("sendId must be provided.")}validateCredentialsRequest(e,t){if(this.validateSendId(e),null==t)throw new Error("sendAccessCredentials must be provided.");if("password"===t.kind&&!t.passwordHashB64)throw new Error("passwordHashB64 must be provided for password credentials.");if("email"===t.kind&&!t.email)throw new Error("email must be provided for email credentials.");if(!("email_otp"!==t.kind||t.email&&t.otp))throw new Error("email and otp must be provided for email_otp credentials.")}convertDomainCredentialsToSdkCredentials(e){switch(e.kind){case"password":return{passwordHashB64:e.passwordHashB64};case"email":return{email:e.email};case"email_otp":return{email:e.email,otp:e.otp}}}},deps:[b.Y2,na.K5,zo]}),(0,Ue.F)({provide:class{},useClass:class{constructor(e,t,i,n,r){this.stateProvider=e,this.apiService=t,this.notificationService=i,this.authService=n,this.logService=r,this.notifications$=(0,cn.j)(e=>this.notificationState(e).state$.pipe((0,jt.n)(t=>Od(this,void 0,void 0,function*(){return null==t?(yield this.fetchNotificationsFromApi(e),null):t})),(0,cn.w)(),(0,p.T)(e=>e.map(e=>new Mi(e))))),this.unreadNotifications$=(0,cn.j)(e=>this.notifications$(e).pipe((0,p.T)(e=>e.filter(e=>null==e.readDate))))}markAsRead(e,t){return Od(this,void 0,void 0,function*(){yield this.apiService.send("PATCH",`/notifications/${e}/read`,null,!0,!1),yield this.notificationState(t).update(t=>{const i=null==t?void 0:t.find(t=>t.id===e);return i&&(i.readDate=new Date),t})})}markAsDeleted(e,t){return Od(this,void 0,void 0,function*(){yield this.apiService.send("DELETE",`/notifications/${e}/delete`,null,!0,!1),yield this.notificationState(t).update(t=>{const i=null==t?void 0:t.find(t=>t.id===e);return i&&(i.deletedDate=new Date),t})})}clearState(e){return Od(this,void 0,void 0,function*(){yield this.replaceNotificationState(e,[])})}refreshNotifications(e){return Od(this,void 0,void 0,function*(){yield this.fetchNotificationsFromApi(e)})}filteredEndUserNotifications$(e){return 0==e.length?fa.w:this.notificationService.notifications$.pipe((0,h.p)(([{type:t},i])=>(t===Yt._n.Notification||t===Yt._n.NotificationStatus)&&e.includes(i)))}listenForEndUserNotifications(){return this.authService.authStatuses$.pipe(Nd,(0,jt.n)(e=>this.filteredEndUserNotifications$(e)),(0,dl.H)(([e,t])=>this.upsertNotification(t,new xi(e.payload)))).subscribe()}fetchNotificationsFromApi(e){return Od(this,void 0,void 0,function*(){const t=yield this.apiService.send("GET","/notifications?pageSize=50",null,!0,!0),i=new yt.s(t,Vi);null!=i.continuationToken&&this.logService.warning("More notifications available, but not fetched. Consider increasing the page size from 50");const n=i.data.map(e=>new xi(e));yield this.replaceNotificationState(e,n)})}replaceNotificationState(e,t){return this.notificationState(e).update(()=>t)}upsertNotification(e,t){return Od(this,void 0,void 0,function*(){return this.notificationState(e).update(e=>{null!=e||(e=[]);const i=e.findIndex(e=>e.id===t.id);return-1===i?e.push(t):e[i]=t,e})})}notificationState(e){return this.stateProvider.getUser(e,Ud)}},deps:[b.v2,je.G,U,k.u,se.K]}),(0,Ue.F)({provide:Qh,useClass:Qh,deps:[N.D,v.PV,T.o]}),(0,Ue.F)({provide:Y,useClass:class{constructor(e,t,i,n){this.authRequestService=e,this.deviceTrustService=t,this.i18nService=i,this.toastService=n,this.adminLoginApproved$=this.authRequestService.adminLoginApproved$.pipe((0,P.M)(()=>{this.toastService.showToast({variant:"success",title:"",message:this.i18nService.t("loginApproved")})})),this.deviceTrusted$=this.deviceTrustService.deviceTrusted$.pipe((0,P.M)(()=>{this.toastService.showToast({variant:"success",title:"",message:this.i18nService.t("deviceTrusted")})})),this.setupListeners$=(0,Su.h)(this.adminLoginApproved$,this.deviceTrusted$)}},deps:[g.XF,Is.M,he.W,F.f]}),(0,Ue.F)({provide:ci,useClass:class{constructor(e,t){this.apiService=e,this.logService=t}setPassword(e){return wn(this,void 0,void 0,function*(){try{return yield this.apiService.send("POST","/accounts/set-password",e,!0,!1)}catch(t){throw this.logService.error(t),t}})}postPassword(e){return wn(this,void 0,void 0,function*(){try{return yield this.apiService.send("POST","/accounts/password",e,!0,!1)}catch(t){throw this.logService.error(t),t}})}putUpdateTempPassword(e){return wn(this,void 0,void 0,function*(){try{return yield this.apiService.send("PUT","/accounts/update-temp-password",e,!0,!1)}catch(t){throw this.logService.error(t),t}})}putUpdateTdeOffboardingPassword(e){return wn(this,void 0,void 0,function*(){try{return yield this.apiService.send("PUT","/accounts/update-tde-offboarding-password",e,!0,!1)}catch(t){throw this.logService.error(t),t}})}},deps:[je.G,se.K]}),(0,Ue.F)({provide:g.k4,useClass:g.$c,deps:[oe.U]}),(0,Ue.F)({provide:X,useClass:X,deps:[Oe.qQ,he.W]}),(0,Ue.F)({provide:Fd,useClass:class{constructor(e,t){this.sdkService=e,this.logService=t}encrypt(e,t){return vu(this,void 0,void 0,function*(){return(0,u._)(this.sdkService.userClient$(t).pipe((0,dl.H)(t=>vu(this,void 0,void 0,function*(){const i={stack:[],error:void 0,hasError:!1};try{const n=mu(i,t.take(),!1),r=e.toSdkCipherView(n.value.vault().ciphers()),s=yield n.value.vault().ciphers().encrypt(r);return{cipher:rc.o.fromSdkCipher(s.cipher),encryptedFor:(0,na.zw)(s.encryptedFor)}}catch(n){i.error=n,i.hasError=!0}finally{fu(i)}})),(0,Wr.W)(e=>(this.logService.error(`Failed to encrypt cipher: ${e}`),fa.w))))})}encryptMany(e,t){return vu(this,void 0,void 0,function*(){return e&&0!==e.length?(0,u._)(this.sdkService.userClient$(t).pipe((0,dl.H)(t=>vu(this,void 0,void 0,function*(){const i={stack:[],error:void 0,hasError:!1};try{const n=mu(i,t.take(),!1);return(yield n.value.vault().ciphers().encrypt_list(e.map(e=>e.toSdkCipherView(n.value.vault().ciphers())))).map(e=>({cipher:rc.o.fromSdkCipher(e.cipher),encryptedFor:(0,na.zw)(e.encryptedFor)}))}catch(n){i.error=n,i.hasError=!0}finally{fu(i)}})),(0,Wr.W)(e=>(this.logService.error(`Failed to encrypt ciphers in batch: ${e}`),(0,Lr.$)(()=>e instanceof Error?e:new Error(String(e))))))):[]})}moveToOrganization(e,t,i){return vu(this,void 0,void 0,function*(){return(0,u._)(this.sdkService.userClient$(i).pipe((0,dl.H)(i=>vu(this,void 0,void 0,function*(){const n={stack:[],error:void 0,hasError:!1};try{const r=mu(n,i.take(),!1),s=e.toSdkCipherView(r.value.vault().ciphers()),o=r.value.vault().ciphers().move_to_organization(s,(0,na.WD)(t)),a=yield r.value.vault().ciphers().encrypt(o);return{cipher:rc.o.fromSdkCipher(a.cipher),encryptedFor:(0,na.zw)(a.encryptedFor)}}catch(r){n.error=r,n.hasError=!0}finally{fu(n)}})),(0,Wr.W)(e=>(this.logService.error(`Failed to move cipher to organization: ${e}`),fa.w))))})}encryptCipherForRotation(e,t,i){return vu(this,void 0,void 0,function*(){return(0,u._)(this.sdkService.userClient$(t).pipe((0,dl.H)(t=>vu(this,void 0,void 0,function*(){const n={stack:[],error:void 0,hasError:!1};try{const r=mu(n,t.take(),!1),s=e.toSdkCipherView(r.value.vault().ciphers()),o=yield r.value.vault().ciphers().encrypt_cipher_for_rotation(s,i.toBase64());return{cipher:rc.o.fromSdkCipher(o.cipher),encryptedFor:(0,na.zw)(o.encryptedFor)}}catch(r){n.error=r,n.hasError=!0}finally{fu(n)}})),(0,Wr.W)(e=>(this.logService.error(`Failed to rotate cipher data: ${e}`),fa.w))))})}decrypt(e,t){return vu(this,void 0,void 0,function*(){return(0,u._)(this.sdkService.userClient$(t).pipe((0,dl.H)(t=>vu(this,void 0,void 0,function*(){var i,n;const r={stack:[],error:void 0,hasError:!1};try{const s=mu(r,t.take(),!1),o=yield s.value.vault().ciphers().decrypt(e.toSdkCipher()),a=Jr.f.fromSdkCipherView(o);if(a.type===Ld.gC.Login&&(null===(n=null===(i=o.login)||void 0===i?void 0:i.fido2Credentials)||void 0===n?void 0:n.length)){const e=s.value.vault().ciphers().decrypt_fido2_credentials(o),t=s.value.vault().ciphers().decrypt_fido2_private_key(o);a.login.fido2Credentials=e.map(e=>{const i=gu.X.fromSdkFido2CredentialView(e);return i.keyValue=t,i}).filter(e=>void 0!==e)}return a}catch(s){r.error=s,r.hasError=!0}finally{fu(r)}})),(0,Wr.W)(e=>(this.logService.error(`Failed to decrypt cipher ${e}`),fa.w))))})}decryptManyLegacy(e,t){return(0,u._)(this.sdkService.userClient$(t).pipe((0,dl.H)(t=>vu(this,void 0,void 0,function*(){var i,n;const r={stack:[],error:void 0,hasError:!1};try{const o=mu(r,t.take(),!1),a=[],l=[];for(const t of e)try{const e=yield o.value.vault().ciphers().decrypt(t.toSdkCipher()),r=Jr.f.fromSdkCipherView(e);if(r.type===Ld.gC.Login&&(null===(n=null===(i=e.login)||void 0===i?void 0:i.fido2Credentials)||void 0===n?void 0:n.length)){const t=o.value.vault().ciphers().decrypt_fido2_credentials(e),i=o.value.vault().ciphers().decrypt_fido2_private_key(e);r.login.fido2Credentials=t.map(e=>{const t=gu.X.fromSdkFido2CredentialView(e);return t.keyValue=i,t}).filter(e=>void 0!==e)}a.push(r)}catch(s){this.logService.error(`Failed to decrypt cipher ${t.id}: ${s}`);const e=new Jr.f(t);e.name="[error: cannot decrypt]",e.decryptionFailure=!0,l.push(e)}return[a,l]}catch(o){r.error=o,r.hasError=!0}finally{fu(r)}})),(0,Wr.W)(e=>(this.logService.error(`Failed to decrypt ciphers: ${e}`),fa.w))))}decryptManyWithFailures(e,t){return vu(this,void 0,void 0,function*(){return(0,u._)(this.sdkService.userClient$(t).pipe((0,dl.H)(t=>vu(this,void 0,void 0,function*(){const i={stack:[],error:void 0,hasError:!1};try{const n=mu(i,t.take(),!1),r=yield n.value.vault().ciphers().decrypt_list_with_failures(e.map(e=>e.toSdkCipher())),s=r.successes;return[s,r.failures.map(e=>rc.o.fromSdkCipher(e)).filter(e=>void 0!==e)]}catch(n){i.error=n,i.hasError=!0}finally{fu(i)}}))))})}decryptAttachmentContent(e,t,i,n){return vu(this,void 0,void 0,function*(){return(0,u._)(this.sdkService.userClient$(n).pipe((0,p.T)(n=>{const r={stack:[],error:void 0,hasError:!1};try{return mu(r,n.take(),!1).value.vault().attachments().decrypt_buffer(e.toSdkCipher(),t.toSdkAttachmentView(),i)}catch(s){r.error=s,r.hasError=!0}finally{fu(r)}}),(0,Wr.W)(e=>(this.logService.error(`Failed to decrypt cipher buffer: ${e}`),fa.w))))})}},deps:[na.K5,se.K]}),(0,Ue.F)({provide:kh,useClass:class{showHeaderInformation(){return!0}},deps:[]}),(0,Ue.F)({provide:ue,useClass:Me,deps:[I.Lu,ci,Ae.O,ao.b,Je.N,ge]}),(0,Ue.F)({provide:Ii.vP,useClass:Ii.vP,deps:[je.G,yo.v]}),(0,Ue.F)({provide:Ii.Ld,useClass:Ii.Sw,deps:[Ii.vP]}),(0,Ue.F)({provide:tA,useClass:class{constructor(e,t,i,n,r,s,o,a,l,c){this.syncService=e,this.accountService=t,this.stateProvider=i,this.encryptedMigrator=n,this.authService=r,this.logService=s,this.dialogService=o,this.toastService=a,this.i18nService=l,this.router=c,this.isMigrating=!1,this.url$=this.router.events.pipe((0,h.p)(e=>e instanceof R.wF),(0,p.T)(e=>e.url)),this.accountService.accounts$.pipe((0,jt.n)(e=>{const t=Object.keys(e);return 0===t.length?(0,ln.of)([]):(0,xt.z)(t.map(e=>(0,xt.z)([this.authService.authStatusFor$(e),this.syncService.lastSync$(e).pipe((0,h.p)(e=>null!=e)),this.url$]).pipe((0,h.p)(([e,t,i])=>e===m.J.Unlocked&&eA.includes(i)),(0,dl.H)(()=>this.runMigrationsIfNeeded(e)))))})).subscribe()}runMigrationsIfNeeded(e){return $h(this,void 0,void 0,function*(){if((yield(0,u._)(this.authService.authStatusFor$(e)))===m.J.Unlocked)if(this.isMigrating||this.encryptedMigrator.isRunningMigrations())this.logService.info(`[EncryptedMigrationsScheduler] Skipping migration check for user ${e} because migrations are already in progress`);else{switch(this.isMigrating=!0,yield this.encryptedMigrator.needsMigrations(e)){case"noMigrationNeeded":this.logService.info(`[EncryptedMigrationsScheduler] No migrations needed for user ${e}`);break;case"needsMigrationWithMasterPassword":this.logService.info(`[EncryptedMigrationsScheduler] User ${e} needs migrations with master password`),yield this.runMigrationsWithInteraction(e);break;case"needsMigration":this.logService.info(`[EncryptedMigrationsScheduler] User ${e} needs migrations with master password`),yield this.runMigrationsWithoutInteraction(e)}this.isMigrating=!1}})}runMigrationsWithoutInteraction(e){return $h(this,void 0,void 0,function*(){try{yield this.encryptedMigrator.runMigrations(e,null)}catch(t){this.logService.error("[EncryptedMigrationsScheduler] Error during migration without interaction",t)}})}runMigrationsWithInteraction(e){return $h(this,void 0,void 0,function*(){const t=yield(0,u._)(this.stateProvider.getUser(e,_h).state$);if(null!=t){if(((new Date).getTime()-t.getTime())/36e5<24)return void this.logService.info("[EncryptedMigrationsScheduler] Migration prompt dismissed recently, skipping for now.")}try{const t=qh.open(this.dialogService),i=yield(0,u._)(t.closed);zt.A.isNullOrWhitespace(i)?yield this.stateProvider.setUserState(_h,new Date,e):yield this.encryptedMigrator.runMigrations(e,void 0===i?null:i)}catch(i){this.logService.error("[EncryptedMigrationsScheduler] Error during migration prompt",i),this.toastService.showToast({variant:"error",message:this.i18nService.t("migrationsFailed")})}})}},deps:[mc.H,N.D,b.v2,Vs,k.u,se.K,T.o,F.f,he.W,R.Ix]}),(0,Ue.F)({provide:w.hnV,useFactory:e=>()=>{},deps:[tA],multi:!0}),(0,Ue.F)({provide:g.FQ,useClass:g.uU,deps:[N.D,I.Zm,Dn.ep,g.k4,oe.U,xd.S,S.k,Ae.O,b.lR,Q.p,k.u,sa,j,se.K,I.Lu]}),(0,Ue.F)({provide:Rd.J,useClass:class{constructor(e,t,i){this.cipherService=e,this.apiService=t,this.billingAccountProfileStateService=i}archivedCiphers$(e){return this.cipherService.cipherListViews$(e).pipe((0,h.p)(e=>null!=e),(0,p.T)(e=>e.filter(e=>au.n.isArchived(e)&&!au.n.isDeleted(e))))}userCanArchive$(e){return this.billingAccountProfileStateService.hasPremiumFromAnySource$(e).pipe((0,Gr.t)({refCount:!0,bufferSize:1}))}userHasPremium$(e){return this.billingAccountProfileStateService.hasPremiumFromAnySource$(e).pipe((0,Gr.t)({refCount:!0,bufferSize:1}))}showSubscriptionEndedMessaging$(e){return(0,xt.z)([this.archivedCiphers$(e),this.userHasPremium$(e)]).pipe((0,p.T)(([e,t])=>e.length>0&&!t),(0,Gr.t)({refCount:!0,bufferSize:1}))}archiveWithServer(e,t){return pu(this,void 0,void 0,function*(){const i=new hu(Array.isArray(e)?e:[e]),n=yield this.apiService.send("PUT","/ciphers/archive",i,!0,!0),r=new yt.s(n,$c.N),s=yield(0,u._)(this.cipherService.ciphers$(t)),o=r.data.map(e=>{var t;return new $l.A(e,null===(t=s[e.id])||void 0===t?void 0:t.collectionIds)});return yield this.cipherService.upsert(o,t),o[0]})}unarchiveWithServer(e,t){return pu(this,void 0,void 0,function*(){const i=new Au(Array.isArray(e)?e:[e]),n=yield this.apiService.send("PUT","/ciphers/unarchive",i,!0,!0),r=new yt.s(n,$c.N),s=yield(0,u._)(this.cipherService.ciphers$(t)),o=r.data.map(e=>{var t;return new $l.A(e,null===(t=s[e.id])||void 0===t?void 0:t.collectionIds)});return yield this.cipherService.upsert(o,t),o[0]})}},deps:[Q.p,je.G,gr.Q]}),(0,Ue.F)({provide:no,useClass:class{constructor(e,t){this.keyService=e,this.encryptService=t}createKeySet(e,t){return oo(this,void 0,void 0,function*(){if(!e)throw new Error("failed to create key set: upstreamKey is required");if(!t)throw new Error("failed to create key set: downstreamKey is required");const[i,n]=yield this.keyService.makeKeyPair(e),r=zt.A.fromB64ToArray(i),s=yield this.encryptService.encapsulateKeyUnsigned(t,r),o=yield this.encryptService.wrapEncapsulationKey(r,t);return new yn(s,o,n)})}rotateKeySet(e,t,i){return oo(this,void 0,void 0,function*(){if(!e)throw new Error("failed to rotate key set: keySet is required");if(!t)throw new Error("failed to rotate key set: oldDownstreamKey is required");if(!i)throw new Error("failed to rotate key set: newDownstreamKey is required");const n=yield this.encryptService.unwrapEncapsulationKey(e.encryptedPublicKey,t);if(null==n)throw new Error("failed to rotate key set: could not decrypt public key");const r=yield this.encryptService.wrapEncapsulationKey(n,i),s=yield this.encryptService.encapsulateKeyUnsigned(i,n);return new yn(s,r,e.encryptedPrivateKey)})}},deps:[I.Lu,As.N]}),(0,Ue.F)({provide:ne.o,useClass:ne.$w,deps:[]}),(0,Ue.F)({provide:Ls,useClass:class{constructor(e){this.apiService=e}getConfirmationDetails(e){return Zs(this,void 0,void 0,function*(){const t=yield this.apiService.send("GET","/accounts/key-connector/confirmation-details/"+encodeURIComponent(e),null,!0,!0);return new Ks(t)})}},deps:[je.G]}),(0,Ue.F)({provide:Ge.a,useClass:Vh,deps:[]}),(0,Ue.F)({provide:kd.e,useClass:class{constructor(e,t,i){this.apiService=e,this.environmentService=t,this.domainSettingsService=i}getChangePasswordUrl(e){return uu(this,void 0,void 0,function*(){if(e.type!==Ld.gC.Login||null==e.login||!e.login.hasUris)return null;const t=e.login.uris.map(e=>zt.A.getUrl(e.uri)).filter(e=>null!=e&&("http:"===e.protocol||"https:"===e.protocol));if(0===t.length)return null;if(!(yield(0,u._)(this.domainSettingsService.showFavicons$)))return t[0].href;for(const e of t){const t=yield this.fetchWellKnownChangePasswordUri(e.href);if(t)return t}return t[0].href})}fetchWellKnownChangePasswordUri(e){return uu(this,void 0,void 0,function*(){const t=yield this.buildChangePasswordUriRequest(e),i=yield this.apiService.fetch(t);if(!i.ok)return null;const n=yield i.json(),{uri:r}=new du(n);return r})}buildChangePasswordUriRequest(e){return uu(this,void 0,void 0,function*(){const t=new URLSearchParams;t.set("uri",e);const i=(yield(0,u._)(this.environmentService.environment$)).getIconsUrl(),n=new URL(`${i}/change-password-uri?${t.toString()}`);return new Request(n,{method:"GET"})})}},deps:[je.G,yo.v,ur.V]})];class yA{}yA.ɵfac=function(e){return new(e||yA)},yA.ɵmod=w.$C({type:yA}),yA.ɵinj=B.G2t({providers:fA});var bA=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class CA{}class IA extends Jn.V{static forNewEmail(e,t){const i=new IA;return i.newEmail=t,i.authenticateWith(e),i}}class wA extends IA{static newConstructor(e,t){const i=new wA;return i.newMasterPasswordHash=e.masterPasswordAuthenticationHash,i.key=t.masterKeyWrappedUserKey,i}}var BA=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class EA{}class SA{}var QA=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const kA=new C.Ok(C.FC,"allowSharingUnlockStateWithDesktop",{deserializer:e=>e,clearOn:["logout"]}),RA=new C.Ok(C.FC,"allowSharingUnlockStateWithWeb",{deserializer:e=>e,clearOn:["logout"]});var FA=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function TA(e){return(0,na.zw)(e)}class DA{constructor(e,t,i,n,r,s,o,a,l){this.accountService=e,this.lockService=t,this.unlockService=i,this.keyService=n,this.platformUtilsService=r,this.vaultTimeoutSettingsService=s,this.environmentService=o,this.isEnabled=a,this.onExternalUnlock=l}lock_user(e){return FA(this,void 0,void 0,function*(){(yield this.isEnabled(TA(e)))&&(yield this.lockService.lock(TA(e)))})}unlock_user(e,t){return FA(this,void 0,void 0,function*(){var i;(yield this.isEnabled(TA(e)))&&(yield this.unlockService.unlockWithDecryptedUserKey(TA(e),Mn.e.fromSdk(t)),null===(i=this.onExternalUnlock)||void 0===i||i.call(this,TA(e)))})}get_user_key(e){return FA(this,void 0,void 0,function*(){var t;const i=TA(e);return null===(t=yield(0,u._)(this.keyService.userKey$(i)))||void 0===t?void 0:t.toSdk()})}list_users(){return FA(this,void 0,void 0,function*(){const e=yield(0,u._)(this.accountService.accounts$);return Object.keys(e).map(na.WD)})}suppress_vault_timeout(e,t){return FA(this,void 0,void 0,function*(){const i=Date.now()+t;yield this.vaultTimeoutSettingsService.suppressVaultTimeout(i,TA(e))})}get_client_name(){return FA(this,void 0,void 0,function*(){return this.platformUtilsService.getClientType()})}get_vault_url(e){return FA(this,void 0,void 0,function*(){return(yield(0,u._)(this.environmentService.getEnvironment$(TA(e)))).getWebVaultUrl()})}}var PA=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class MA{constructor(e,t,i){this.keyService=e,this.accountService=t,this.onUnlock=i,this.previousUserKeys=new Map}poll(){return PA(this,void 0,void 0,function*(){var e;const t=yield(0,u._)(this.accountService.accounts$),i=Object.keys(t);for(const n of i){const t=yield(0,u._)(this.keyService.userKey$(n));null==(null!==(e=this.previousUserKeys.get(n))&&void 0!==e?e:null)&&null!=t&&(yield this.onUnlock(n,t)),this.previousUserKeys.set(n,t)}for(const n of this.previousUserKeys.keys())i.includes(n)||this.previousUserKeys.delete(n)})}}var xA=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var VA=i(8365);var GA=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class UA{get client(){if(!this._client)throw new Error("IpcService not initialized. Call init() first.");return this._client}get messages$(){if(!this._messages$)throw new Error("IpcService not initialized. Call init() first.");return this._messages$}initWithClient(e){return GA(this,void 0,void 0,function*(){this._client=e,yield this._client.start(),this._messages$=new Aa.c(e=>{let t=!0;return(()=>{GA(this,void 0,void 0,function*(){const i=yield this.client.subscribe();for(;t;)try{const t=yield i.receive();e.next(t)}catch(n){e.error(n);break}})})(),()=>{t=!1}}).pipe((0,Gr.t)({bufferSize:0,refCount:!0}))})}send(e){return GA(this,void 0,void 0,function*(){yield this.client.send(e)})}}C.Zs.record(C.hs,"ipcSessions",{deserializer:e=>e});var OA=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var NA=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class jA extends gs.B{load(){return NA(this,void 0,void 0,function*(){throw new Error("SDK not available in this environment")})}}var YA=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class XA{constructor(e){this.storage=e,this.updatesSubject=new d.B,this.updates$=this.updatesSubject.asObservable()}get valuesRequireDeserialization(){return!0}get(e,t){const i=this.storage.getItem(e);return null!=i?Promise.resolve(JSON.parse(i)):Promise.resolve(null)}has(e,t){return YA(this,void 0,void 0,function*(){return null!=(yield this.get(e,t))})}save(e,t,i){if(null==t)return this.remove(e,i);t instanceof Set&&(t=Array.from(t)),this.storage.setItem(e,JSON.stringify(t)),this.updatesSubject.next({key:e,updateType:"save"})}remove(e,t){return this.storage.removeItem(e),this.updatesSubject.next({key:e,updateType:"remove"}),Promise.resolve()}getKeys(){return Object.keys(this.storage)}}var zA=i(11009),LA=i(43090),WA=i(27545),KA=i(5513);const ZA=Object.freeze({MasterPassword:"masterPassword",Pin:"pin",Biometrics:"biometrics",Prf:"prf"});class HA{}var JA=i(63477),qA=i(81216);class $A{}var _A=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function ep(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",2),w.bIt("click",function(){B.eBV(e);const t=w.XpG(2);return B.Njj(t.unlockViaPrf())}),w.nrm(1,"i",3),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}if(2&e){const e=w.XpG(2);w.Y8G("disabled",e.unlocking)("loading",e.unlocking),w.R7$(2),w.SpI(" ",w.bMT(3,3,"unlockWithPasskey")," ")}}function tp(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",4),w.bIt("click",function(){B.eBV(e);const t=w.XpG(2);return B.Njj(t.unlockViaPrf())}),w.nrm(1,"i",3),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}if(2&e){const e=w.XpG(2);w.Y8G("disabled",e.unlocking)("loading",e.unlocking),w.R7$(2),w.SpI(" ",w.bMT(3,3,"unlockWithPasskey")," ")}}function ip(e,t){if(1&e&&(w.nVh(0,ep,4,5,"button",0),w.nVh(1,tp,4,5,"button",1)),2&e){const e=w.XpG();w.vxM(e.formButton()?0:-1),w.R7$(),w.vxM(e.formButton()?-1:1)}}class np{constructor(e,t,i,n,s){this.accountService=e,this.webAuthnPrfUnlockService=t,this.dialogService=i,this.i18nService=n,this.logService=s,this.formButton=(0,r.hFB)(!1),this.unlockSuccess=(0,r.CGW)(),this.unlocking=!1,this.isAvailable=!1,this.userId=null}ngOnInit(){return _A(this,void 0,void 0,function*(){const e=yield(0,u._)(this.accountService.activeAccount$);(null==e?void 0:e.id)&&(this.userId=e.id,this.isAvailable=yield this.webAuthnPrfUnlockService.isPrfUnlockAvailable(this.userId))})}unlockViaPrf(){return _A(this,void 0,void 0,function*(){if(this.userId&&this.isAvailable){this.unlocking=!0;try{const e=yield this.webAuthnPrfUnlockService.unlockVaultWithPrf(this.userId);this.unlockSuccess.emit(e)}catch(e){this.logService.error("[UnlockViaPrfComponent] Failed to unlock via PRF:",e);let t=this.i18nService.t("unexpectedError");if(e instanceof Error)if(e.message.includes("No PRF credentials"))t=this.i18nService.t("noPrfCredentialsAvailable");else if(e.message.includes("canceled"))return void(this.unlocking=!1);yield this.dialogService.openSimpleDialog({title:{key:"error"},content:t,acceptButtonText:{key:"ok"},type:"danger"})}finally{this.unlocking=!1}}})}}np.ɵfac=function(e){return new(e||np)(w.rXU(N.D),w.rXU($A),w.rXU(T.o),w.rXU(he.W),w.rXU(se.K))},np.ɵcmp=w.VBU({type:np,selectors:[["bit-unlock-via-prf"]],inputs:{formButton:[1,"formButton"]},outputs:{unlockSuccess:"unlockSuccess"},decls:1,vars:1,consts:[["type","button","bitButton","","bitFormButton","","buttonType","secondary","block","",3,"disabled","loading"],["type","button","bitButton","","buttonType","secondary","block","",3,"disabled","loading"],["type","button","bitButton","","bitFormButton","","buttonType","secondary","block","",3,"click","disabled","loading"],["aria-hidden","true",1,"bwi","bwi-passkey","tw-mr-1"],["type","button","bitButton","","buttonType","secondary","block","",3,"click","disabled","loading"]],template:function(e,t){1&e&&w.nVh(0,ip,2,2),2&e&&w.vxM(t.isAvailable?0:-1)},dependencies:[L.MD,Nh.p,Ah.t,fh.Q,vh.C,Ih.$,Hh.$],encapsulation:2});var rp=i(57083),sp=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function op(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",10),w.bIt("click",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.swapToBiometrics.emit())}),w.j41(1,"span"),w.EFF(2),w.nI1(3,"i18n"),w.k0s()()}if(2&e){const e=w.XpG();w.Y8G("disabled",!e.biometricsAvailable()),w.R7$(2),w.SpI(" ",w.bMT(3,2,e.biometricUnlockBtnText()))}}function ap(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",11),w.bIt("click",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.swapToPin.emit())}),w.EFF(1),w.nI1(2,"i18n"),w.k0s()}2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,1,"unlockWithPin")," "))}class lp{constructor(){this.accountService=(0,B.WQX)(N.D),this.i18nService=(0,B.WQX)(he.W),this.toastService=(0,B.WQX)(F.f),this.logService=(0,B.WQX)(qA.Kc),this.platformUtilsService=(0,B.WQX)(G.y),this.messageListener=(0,B.WQX)(da.qk),this.unlockService=(0,B.WQX)(ih),this.keyService=(0,B.WQX)(I.Lu),this.unlockOptions=r.hFB.required(),this.biometricUnlockBtnText=r.hFB.required(),this.showPinSwap=(0,JA.EW)(()=>{var e;return null!==(e=this.unlockOptions().pin.enabled)&&void 0!==e&&e}),this.biometricsAvailable=(0,JA.EW)(()=>{var e;return null!==(e=this.unlockOptions().biometrics.enabled)&&void 0!==e&&e}),this.showBiometricsSwap=(0,JA.EW)(()=>{const e=this.unlockOptions().biometrics.biometricsStatus;return e!==I.cR.PlatformUnsupported&&e!==I.cR.NotEnabledLocally}),this.successfulUnlock=(0,r.CGW)(),this.swapToBiometrics=(0,r.CGW)(),this.swapToPin=(0,r.CGW)(),this.prfUnlockSuccess=(0,r.CGW)(),this.logOut=(0,r.CGW)(),this.showPassword=!1,this.destroy$=new d.B,this.formGroup=new a.gE({masterPassword:new a.MJ("",{validators:[a.k0.required],updateOn:"submit"})}),this.submit=()=>sp(this,void 0,void 0,function*(){this.formGroup.markAllAsTouched();const e=this.formGroup.controls.masterPassword.value;if(this.formGroup.invalid||!e)return void this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:this.i18nService.t("masterPasswordRequired")});const t=yield(0,u._)((0,f.F6)(this.accountService.activeAccount$));yield this.unlockViaMasterPassword(e,t)})}ngOnInit(){return sp(this,void 0,void 0,function*(){this.platformUtilsService.getClientType()===nh.s.Desktop&&this.messageListener.messages$(new da.Lg("windowHidden")).pipe((0,en.Q)(this.destroy$)).subscribe(()=>{this.showPassword=!1})})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}unlockViaMasterPassword(e,t){return sp(this,void 0,void 0,function*(){try{yield this.unlockService.unlockWithMasterPassword(t,e);const i=yield(0,u._)(this.keyService.userKey$(t));if(!i)throw this.logService.error("[MasterPasswordLockComponent] Failed to retrieve user key after master password unlock"),Error("Failed to retrieve user key");this.successfulUnlock.emit({userKey:i,masterPassword:e})}catch(i){this.logService.error("[MasterPasswordLockComponent] Failed to unlock via master password",i),this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:this.i18nService.t("invalidMasterPassword")})}})}onPrfUnlockSuccess(e){this.prfUnlockSuccess.emit(e)}}lp.ɵfac=function(e){return new(e||lp)},lp.ɵcmp=w.VBU({type:lp,selectors:[["bit-master-password-lock"]],inputs:{unlockOptions:[1,"unlockOptions"],biometricUnlockBtnText:[1,"biometricUnlockBtnText"]},outputs:{successfulUnlock:"successfulUnlock",swapToBiometrics:"swapToBiometrics",swapToPin:"swapToPin",prfUnlockSuccess:"prfUnlockSuccess",logOut:"logOut"},decls:20,vars:18,consts:[[3,"formGroup","bitSubmit"],["type","password","formControlName","masterPassword","bitInput","","appAutofocus","","name","masterPassword","required","","appInputVerbatim","",1,"tw-font-mono"],["type","button","bitIconButton","","bitSuffix","","bitPasswordInputToggle","",3,"toggledChange","toggled"],[1,"tw-flex","tw-flex-col","tw-space-y-3"],["type","submit","bitButton","","bitFormButton","","buttonType","primary","block",""],[1,"tw-text-center"],["type","button","bitButton","","bitFormButton","","buttonType","secondary","block","",3,"disabled"],["type","button","bitButton","","bitFormButton","","buttonType","secondary","block",""],[3,"unlockSuccess","formButton"],["type","button","bitButton","","bitFormButton","","block","",3,"click"],["type","button","bitButton","","bitFormButton","","buttonType","secondary","block","",3,"click","disabled"],["type","button","bitButton","","bitFormButton","","buttonType","secondary","block","",3,"click"]],template:function(e,t){1&e&&(w.j41(0,"form",0)(1,"bit-form-field")(2,"bit-label"),w.EFF(3),w.nI1(4,"i18n"),w.k0s(),w.nrm(5,"input",1),w.j41(6,"button",2),w.mxI("toggledChange",function(e){return w.DH7(t.showPassword,e)||(t.showPassword=e),e}),w.k0s()(),w.j41(7,"div",3)(8,"button",4),w.EFF(9),w.nI1(10,"i18n"),w.k0s(),w.j41(11,"p",5),w.EFF(12),w.nI1(13,"i18n"),w.k0s(),w.nVh(14,op,4,4,"button",6),w.nVh(15,ap,3,3,"button",7),w.j41(16,"bit-unlock-via-prf",8),w.bIt("unlockSuccess",function(e){return t.onPrfUnlockSuccess(e)}),w.k0s(),w.j41(17,"button",9),w.bIt("click",function(){return t.logOut.emit()}),w.EFF(18),w.nI1(19,"i18n"),w.k0s()()()),2&e&&(w.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit),w.R7$(3),w.JRh(w.bMT(4,10,"masterPass")),w.R7$(3),w.R50("toggled",t.showPassword),w.R7$(3),w.SpI(" ",w.bMT(10,12,"unlock")," "),w.R7$(3),w.JRh(w.bMT(13,14,"or")),w.R7$(2),w.vxM(t.showBiometricsSwap()?14:-1),w.R7$(),w.vxM(t.showPinSwap()?15:-1),w.R7$(),w.Y8G("formButton",!0),w.R7$(2),w.SpI(" ",w.bMT(19,16,"logOut")," "))},dependencies:[Nh.p,M.B,rp.q,a.X1,a.qT,a.me,a.BC,a.cb,a.YS,a.j4,a.JD,Ah.t,fh.Q,Oh.L,Xh.j,Lh.J,Wh.h,Kh.e,Zh.a,vh.C,Ih.$,wh.L,Uh.Q,Yh.s,np,Hh.$],encapsulation:2});var cp=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function dp(e,t){1&e&&(w.j41(0,"div",2),w.nrm(1,"i",3),w.k0s())}function up(e,t){if(1&e){const e=w.RV6();w.qex(0),w.j41(1,"button",11),w.bIt("click",function(){B.eBV(e);const t=w.XpG(3);return B.Njj(t.swapUnlockOption(t.UnlockOption.Pin))}),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.bVm()}2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"unlockWithPin")," "))}function hp(e,t){if(1&e){const e=w.RV6();w.qex(0),w.j41(1,"button",11),w.bIt("click",function(){B.eBV(e);const t=w.XpG(3);return B.Njj(t.swapUnlockOption(t.UnlockOption.MasterPassword))}),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.bVm()}2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"unlockWithMasterPassword")," "))}function Ap(e,t){if(1&e){const e=w.RV6();w.qex(0),w.j41(1,"button",6),w.bIt("click",function(){B.eBV(e);const t=w.XpG(2);return B.Njj(t.unlockViaBiometrics())}),w.j41(2,"span"),w.EFF(3),w.nI1(4,"i18n"),w.k0s()(),w.j41(5,"div",7)(6,"p",8),w.EFF(7),w.nI1(8,"i18n"),w.k0s(),w.DNE(9,up,4,3,"ng-container",4)(10,hp,4,3,"ng-container",4),w.j41(11,"bit-unlock-via-prf",9),w.bIt("unlockSuccess",function(t){B.eBV(e);const i=w.XpG(2);return B.Njj(i.onPrfUnlockSuccess(t))}),w.k0s(),w.j41(12,"button",10),w.bIt("click",function(){B.eBV(e);const t=w.XpG(2);return B.Njj(t.logOut())}),w.EFF(13),w.nI1(14,"i18n"),w.k0s()(),w.bVm()}if(2&e){const e=w.XpG(2);w.R7$(),w.Y8G("disabled",e.unlockingViaBiometrics||!e.biometricsAvailable)("loading",e.unlockingViaBiometrics)("bitTooltip",e.biometricUnavailabilityReason),w.R7$(2),w.SpI(" ",w.bMT(4,8,e.biometricUnlockBtnText)),w.R7$(4),w.JRh(w.bMT(8,10,"or")),w.R7$(2),w.Y8G("ngIf",e.unlockOptions.pin.enabled),w.R7$(),w.Y8G("ngIf",e.unlockOptions.masterPassword.enabled),w.R7$(3),w.SpI(" ",w.bMT(14,12,"logOut")," ")}}function pp(e,t){if(1&e){const e=w.RV6();w.qex(0),w.j41(1,"button",19),w.bIt("click",function(){B.eBV(e);const t=w.XpG(3);return B.Njj(t.swapUnlockOption(t.UnlockOption.Biometrics))}),w.j41(2,"span"),w.EFF(3),w.nI1(4,"i18n"),w.k0s()(),w.bVm()}if(2&e){const e=w.XpG(3);w.R7$(),w.Y8G("disabled",!e.biometricsAvailable),w.R7$(2),w.SpI(" ",w.bMT(4,2,e.biometricUnlockBtnText))}}function gp(e,t){if(1&e){const e=w.RV6();w.qex(0),w.j41(1,"button",20),w.bIt("click",function(){B.eBV(e);const t=w.XpG(3);return B.Njj(t.swapUnlockOption(t.UnlockOption.MasterPassword))}),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.bVm()}2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"unlockWithMasterPassword")," "))}function vp(e,t){if(1&e){const e=w.RV6();w.qex(0),w.j41(1,"form",12)(2,"bit-form-field")(3,"bit-label"),w.EFF(4),w.nI1(5,"i18n"),w.k0s(),w.nrm(6,"input",13),w.j41(7,"button",14),w.mxI("toggledChange",function(t){B.eBV(e);const i=w.XpG(2);return w.DH7(i.showPassword,t)||(i.showPassword=t),B.Njj(t)}),w.k0s()(),w.j41(8,"div",7)(9,"button",15),w.EFF(10),w.nI1(11,"i18n"),w.k0s(),w.j41(12,"p",16),w.EFF(13),w.nI1(14,"i18n"),w.k0s(),w.DNE(15,pp,5,4,"ng-container",4)(16,gp,4,3,"ng-container",4),w.j41(17,"bit-unlock-via-prf",17),w.bIt("unlockSuccess",function(t){B.eBV(e);const i=w.XpG(2);return B.Njj(i.onPrfUnlockSuccess(t))}),w.k0s(),w.j41(18,"button",18),w.bIt("click",function(){B.eBV(e);const t=w.XpG(2);return B.Njj(t.logOut())}),w.EFF(19),w.nI1(20,"i18n"),w.k0s()()(),w.bVm()}if(2&e){const e=w.XpG(2);w.R7$(),w.Y8G("bitSubmit",e.submit)("formGroup",e.formGroup),w.R7$(3),w.JRh(w.bMT(5,10,"pin")),w.R7$(3),w.R50("toggled",e.showPassword),w.R7$(3),w.SpI(" ",w.bMT(11,12,"unlock")," "),w.R7$(3),w.JRh(w.bMT(14,14,"or")),w.R7$(2),w.Y8G("ngIf",e.showBiometrics),w.R7$(),w.Y8G("ngIf",e.unlockOptions.masterPassword.enabled),w.R7$(),w.Y8G("formButton",!0),w.R7$(2),w.SpI(" ",w.bMT(20,16,"logOut")," ")}}function mp(e,t){if(1&e){const e=w.RV6();w.j41(0,"bit-master-password-lock",21),w.bIt("successfulUnlock",function(t){B.eBV(e);const i=w.XpG(2);return B.Njj(i.successfulMasterPasswordUnlock(t))})("swapToBiometrics",function(){B.eBV(e);const t=w.XpG(2);return B.Njj(t.swapUnlockOption(t.UnlockOption.Biometrics))})("swapToPin",function(){B.eBV(e);const t=w.XpG(2);return B.Njj(t.swapUnlockOption(t.UnlockOption.Pin))})("prfUnlockSuccess",function(t){B.eBV(e);const i=w.XpG(2);return B.Njj(i.onPrfUnlockSuccess(t))})("logOut",function(){B.eBV(e);const t=w.XpG(2);return B.Njj(t.logOut())}),w.k0s()}if(2&e){const e=w.XpG(2);w.Y8G("unlockOptions",e.unlockOptions)("biometricUnlockBtnText",e.biometricUnlockBtnText)}}function fp(e,t){if(1&e&&(w.qex(0),w.DNE(1,Ap,15,14,"ng-container",4)(2,vp,21,18,"ng-container",4),w.nVh(3,mp,1,2,"bit-master-password-lock",5),w.bVm()),2&e){const e=w.XpG();w.R7$(),w.Y8G("ngIf",e.activeUnlockOption===e.UnlockOption.Biometrics),w.R7$(),w.Y8G("ngIf",e.unlockOptions.pin.enabled&&e.activeUnlockOption===e.UnlockOption.Pin),w.R7$(),w.vxM(e.unlockOptions.masterPassword.enabled&&e.activeUnlockOption===e.UnlockOption.MasterPassword?3:-1)}}const yp="LockComponent",bp={[Yt.sK.Web]:"vault",[Yt.sK.Desktop]:"vault",[Yt.sK.Browser]:"/tabs/current"},Cp=[I.cR.HardwareUnavailable,I.cR.DesktopDisconnected,I.cR.NotEnabledInConnectedDesktopApp];class Ip{set activeUnlockOption(e){this._activeUnlockOptionBSubject.next(e)}get activeUnlockOption(){return this._activeUnlockOptionBSubject.value}constructor(e,t,i,n,r,s,o,a,l,c,u,h,A,p,g,v,m,f,y,b,C,I,w,B,E,S){this.accountService=e,this.keyService=t,this.platformUtilsService=i,this.router=n,this.activatedRoute=r,this.dialogService=s,this.messagingService=o,this.biometricStateService=a,this.ngZone=l,this.i18nService=c,this.masterPasswordService=u,this.logService=h,this.deviceTrustService=A,this.syncService=p,this.policyService=g,this.passwordStrengthService=v,this.formBuilder=m,this.toastService=f,this.userAsymmetricKeysRegenerationService=y,this.biometricService=b,this.logoutService=C,this.lockComponentService=I,this.anonLayoutWrapperDataService=w,this.encryptedMigrator=B,this.broadcasterService=E,this.unlockService=S,this.destroy$=new d.B,this.activeAccountChange$=new d.B,this.loading=!0,this.activeAccount=null,this.unlockOptions=null,this.UnlockOption=ZA,this._activeUnlockOptionBSubject=new Tt.t(null),this.activeUnlockOption$=this._activeUnlockOptionBSubject.asObservable(),this.invalidPinAttempts=0,this.showPassword=!1,this.enforcedMasterPasswordOptions=void 0,this.formGroup=null,this.shouldClosePopout=!1,this.deferFocus=null,this.biometricAsked=!1,this.defaultUnlockOptionSetForUser=!1,this.unlockingViaBiometrics=!1,this.submit=()=>cp(this,void 0,void 0,function*(){if(this.activeUnlockOption===ZA.Pin)return yield this.unlockViaPin()})}ngOnInit(){return cp(this,void 0,void 0,function*(){this.listenForActiveUnlockOptionChanges(),this.listenForActiveAccountChanges(),this.listenForUnlockOptionsChanges(),this.clientType=this.platformUtilsService.getClientType(),this.clientType===Yt.sK.Desktop?yield this.desktopOnInit():this.clientType===Yt.sK.Browser&&(this.biometricUnlockBtnText=this.lockComponentService.getBiometricsUnlockBtnText())})}listenForUnlockOptionsChanges(){(0,vo.O)(0,1e3).pipe((0,ya.Z)(()=>cp(this,void 0,void 0,function*(){var e,t,i;if(!1===this.loading&&null!=(null===(e=this.activeAccount)||void 0===e?void 0:e.id)){const e=null===(t=this.unlockOptions)||void 0===t?void 0:t.biometrics.enabled;this.unlockOptions=yield(0,u._)(this.lockComponentService.getAvailableUnlockOptions$(this.activeAccount.id)),null==this.activeUnlockOption?yield this.setDefaultActiveUnlockOption(this.unlockOptions):!e&&(null===(i=this.unlockOptions)||void 0===i?void 0:i.biometrics.enabled)&&(yield this.setDefaultActiveUnlockOption(this.unlockOptions),this.activeUnlockOption===ZA.Biometrics&&(yield this.handleBiometricsUnlockEnabled(this.activeAccount.id)))}})),(0,en.Q)(this.destroy$)).subscribe()}listenForActiveUnlockOptionChanges(){this.activeUnlockOption$.pipe((0,en.Q)(this.destroy$)).subscribe(e=>{e===ZA.Pin&&this.buildPinForm()})}buildPinForm(){this.formGroup=this.formBuilder.group({pin:["",[a.k0.required]]},{updateOn:"submit"})}listenForActiveAccountChanges(){this.accountService.activeAccount$.pipe((0,P.M)(e=>{this.loading=!0,this.activeAccount=e,this.resetDataOnActiveAccountChange()}),(0,h.p)(e=>null!=e),(0,jt.n)(e=>cp(this,void 0,void 0,function*(){yield this.handleActiveAccountChange(e),this.loading=!1})),(0,en.Q)(this.destroy$)).subscribe()}handleActiveAccountChange(e){return cp(this,void 0,void 0,function*(){var t,i,n;if(!(yield this.keyService.hasUserKey(e.id))){if(this.setEmailAsPageSubtitle(e.email),this.unlockOptions=yield(0,u._)(this.lockComponentService.getAvailableUnlockOptions$(e.id)),!(null===(t=this.unlockOptions)||void 0===t?void 0:t.masterPassword.enabled)&&!(null===(i=this.unlockOptions)||void 0===i?void 0:i.pin.enabled)){if(![I.cR.Available,...Cp].includes(yield this.biometricService.getBiometricsStatusForUser(e.id)))return this.logService.warning("[LockComponent] User cannot unlock again. Logging out!"),void(yield this.logoutService.logout(e.id))}yield this.setDefaultActiveUnlockOption(this.unlockOptions),(null===(n=this.unlockOptions)||void 0===n?void 0:n.biometrics.enabled)&&(yield this.handleBiometricsUnlockEnabled(e.id)),this.lockComponentService.getExternalUnlock$(e.id).pipe((0,_i.s)(1),(0,en.Q)(this.activeAccountChange$),(0,en.Q)(this.destroy$)).subscribe(()=>{this.ngZone.run(()=>{this.doContinue({})})})}})}resetDataOnActiveAccountChange(){this.activeAccountChange$.next(),this.defaultUnlockOptionSetForUser=!1,this.unlockOptions=null,this.activeUnlockOption=null,this.formGroup=null,this.biometricAsked=!1}setEmailAsPageSubtitle(e){this.anonLayoutWrapperDataService.setAnonLayoutWrapperData({pageSubtitle:e})}setDefaultActiveUnlockOption(e){return cp(this,void 0,void 0,function*(){(null==e?void 0:e.biometrics.enabled)?this.activeUnlockOption=ZA.Biometrics:(null==e?void 0:e.pin.enabled)?this.activeUnlockOption=ZA.Pin:(null==e?void 0:e.masterPassword.enabled)?this.activeUnlockOption=ZA.MasterPassword:null!=e&&Cp.includes(e.biometrics.biometricsStatus)&&(this.activeUnlockOption=ZA.Biometrics)})}handleBiometricsUnlockEnabled(e){return cp(this,void 0,void 0,function*(){var t;this.biometricUnlockBtnText=this.lockComponentService.getBiometricsUnlockBtnText();const i=yield(0,u._)(this.biometricStateService.promptAutomatically$(e));if("desktop"===this.clientType&&i&&(this.loading=!1,yield this.desktopAutoPromptBiometrics(e)),"browser"===this.clientType&&(null===(t=this.unlockOptions)||void 0===t?void 0:t.biometrics.enabled)&&i&&(yield this.biometricService.getShouldAutopromptNow())){yield this.biometricService.setShouldAutopromptNow(!1);const e=yield this.biometricStateService.getLastProcessReload();(null==e||isNaN(e.getTime())||Date.now()-e.getTime()>5e3)&&(this.platformUtilsService.getDevice()===Yt.bq.FirefoxExtension&&(yield this.lockComponentService.popOutBrowserExtension(),this.shouldClosePopout=!0),this.loading=!1,yield this.unlockViaBiometrics())}})}swapUnlockOption(e){return cp(this,void 0,void 0,function*(){this.activeUnlockOption=e,e===ZA.Biometrics&&(yield this.unlockViaBiometrics())})}logOut(){return cp(this,void 0,void 0,function*(){(yield this.dialogService.openSimpleDialog({title:{key:"logOut"},content:{key:"logOutConfirmation"},acceptButtonText:{key:"logOut"},type:"warning"}))&&null!=this.activeAccount&&(yield this.logoutService.logout(this.activeAccount.id),yield this.router.navigate(["/"]))})}unlockViaBiometrics(){return cp(this,void 0,void 0,function*(){if(!this.unlockingViaBiometrics){this.unlockingViaBiometrics=!0;try{if(null==this.unlockOptions||!this.unlockOptions.biometrics.enabled||null==this.activeAccount)return;yield this.biometricStateService.setUserPromptCancelled(this.activeAccount.id),yield this.unlockService.unlockWithBiometrics(this.activeAccount.id);const e=yield(0,u._)(this.keyService.userKey$(this.activeAccount.id));e&&(yield this.setUserKeyAndContinue(e))}catch(e){this.logService.info("[LockComponent] Failed to unlock via biometrics.",e)}finally{this.unlockingViaBiometrics=!1}}})}onPrfUnlockSuccess(e){return cp(this,void 0,void 0,function*(){yield this.setUserKeyAndContinue(e)})}togglePassword(){this.showPassword=!this.showPassword}validatePin(){var e;return!(null===(e=this.formGroup)||void 0===e?void 0:e.invalid)||(this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:this.i18nService.t("pinRequired")}),!1)}unlockViaPin(){return cp(this,void 0,void 0,function*(){if(!this.validatePin()||null==this.formGroup||null==this.activeAccount)return;const e=this.formGroup.controls.pin.value;try{yield this.unlockService.unlockWithPin(this.activeAccount.id,e);const t=yield this.keyService.getUserKey(this.activeAccount.id);yield this.setUserKeyAndContinue(t)}catch(t){if(this.invalidPinAttempts++,this.invalidPinAttempts>=5)return this.toastService.showToast({variant:"error",message:this.i18nService.t("tooManyInvalidPinEntryAttemptsLoggingOut")}),void this.messagingService.send("logout");this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:this.i18nService.t("invalidPin")})}})}successfulMasterPasswordUnlock(e){return cp(this,void 0,void 0,function*(){null!=e.userKey&&e.masterPassword?yield this.setUserKeyAndContinue(e.userKey,{passwordEvaluation:{masterPassword:e.masterPassword}}):this.logService.error("[LockComponent] successfulMasterPasswordUnlock called with invalid data.")})}setUserKeyAndContinue(e){return cp(this,arguments,void 0,function*(e,t={}){if(null==this.activeAccount)throw new Error("No active user.");this.logService.mark("Vault unlocked"),yield this.keyService.setUserKey(e,this.activeAccount.id),yield this.deviceTrustService.trustDeviceIfRequired(this.activeAccount.id),yield this.doContinue(t)})}doContinue(e){return cp(this,void 0,void 0,function*(){var t,i,n;if(null==this.activeAccount)throw new Error("No active user.");yield this.biometricStateService.resetUserPromptCancelled(this.activeAccount.id);try{yield this.encryptedMigrator.runMigrations(this.activeAccount.id,null!==(i=null===(t=e.passwordEvaluation)||void 0===t?void 0:t.masterPassword)&&void 0!==i?i:null)}catch(s){}if(this.messagingService.send("unlocked"),e.passwordEvaluation){const t=null===(n=yield(0,u._)(this.accountService.activeAccount$))||void 0===n?void 0:n.id;if(null==t)throw new Error("No active user.");try{null==this.enforcedMasterPasswordOptions&&(this.enforcedMasterPasswordOptions=yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6,(0,jt.n)(e=>this.policyService.masterPasswordPolicyOptions$(e))))),this.requirePasswordChange(e.passwordEvaluation.masterPassword)&&(yield this.masterPasswordService.setForceSetPasswordReason(re.n.WeakMasterPassword,t))}catch(o){this.logService.error(o)}}if(this.platformUtilsService.getClientType()==Yt.sK.Web){const e=performance.now();yield this.syncService.fullSync(!0),this.logService.measure(e,"KeyManagement","LockComponent","sync complete")}else this.syncService.fullSync(!1);const r=(new Date).getTime();if(yield this.userAsymmetricKeysRegenerationService.regenerateIfNeeded(this.activeAccount.id),this.logService.info(`[LockComponent] Private key regeneration took ${(new Date).getTime()-r}ms`),"browser"===this.clientType){const e=this.lockComponentService.getPreviousUrl();if(e)return void(yield this.router.navigateByUrl(e))}if(null!=this.clientType&&null===this.activatedRoute.snapshot.paramMap.get("disable-redirect")){const e=bp[this.clientType];yield this.router.navigate([e])}this.shouldClosePopout&&this.platformUtilsService.getDevice()===Yt.bq.FirefoxExtension&&this.lockComponentService.closeBrowserExtensionPopout()})}requirePasswordChange(e){var t;if(null==this.enforcedMasterPasswordOptions||!this.enforcedMasterPasswordOptions.enforceOnLogin||null==this.activeAccount)return!1;const i=null===(t=this.passwordStrengthService.getPasswordStrength(e,this.activeAccount.email))||void 0===t?void 0:t.score;return!this.policyService.evaluateMasterPassword(i,e,this.enforcedMasterPasswordOptions)}desktopOnInit(){return cp(this,void 0,void 0,function*(){this.biometricUnlockBtnText=this.lockComponentService.getBiometricsUnlockBtnText(),this.broadcasterService.subscribe(yp,e=>cp(this,void 0,void 0,function*(){this.ngZone.run(()=>{switch(e.command){case"windowHidden":this.onWindowHidden();break;case"windowIsFocused":null===this.deferFocus?(this.deferFocus=!e.windowIsFocused,this.deferFocus||this.focusInput()):this.deferFocus&&e.windowIsFocused&&(this.focusInput(),this.deferFocus=!1)}})})),this.messagingService.send("getWindowIsFocused")})}desktopAutoPromptBiometrics(e){return cp(this,void 0,void 0,function*(){var t,i;if(!(null===(i=null===(t=this.unlockOptions)||void 0===t?void 0:t.biometrics)||void 0===i?void 0:i.enabled)||this.biometricAsked)return;if(!(yield this.biometricService.getShouldAutopromptNow()))return;if(yield(0,u._)(this.biometricStateService.promptCancelled$(e)))return;(yield this.lockComponentService.isWindowVisible())&&(this.biometricAsked=!0,yield this.unlockViaBiometrics())})}onWindowHidden(){this.showPassword=!1}focusInput(){var e;this.unlockOptions&&(null===(e=document.getElementById(this.unlockOptions.pin.enabled?"pin":"masterPassword"))||void 0===e||e.focus())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),"desktop"===this.clientType&&this.broadcasterService.unsubscribe(yp)}get biometricsAvailable(){var e,t;return null!==(t=null===(e=this.unlockOptions)||void 0===e?void 0:e.biometrics.enabled)&&void 0!==t&&t}get showBiometrics(){return null!=this.unlockOptions&&(this.unlockOptions.biometrics.biometricsStatus!==I.cR.PlatformUnsupported&&this.unlockOptions.biometrics.biometricsStatus!==I.cR.NotEnabledLocally)}get biometricUnavailabilityReason(){var e,t,i,n;switch(null===(e=this.unlockOptions)||void 0===e?void 0:e.biometrics.biometricsStatus){case I.cR.Available:return"";case I.cR.UnlockNeeded:return this.i18nService.t("biometricsStatusHelptextUnlockNeeded");case I.cR.HardwareUnavailable:return this.i18nService.t("biometricsStatusHelptextHardwareUnavailable");case I.cR.AutoSetupNeeded:return this.i18nService.t("biometricsStatusHelptextAutoSetupNeeded");case I.cR.ManualSetupNeeded:return this.i18nService.t("biometricsStatusHelptextManualSetupNeeded");case I.cR.NotEnabledInConnectedDesktopApp:return this.i18nService.t("biometricsStatusHelptextNotEnabledInDesktop",null===(t=this.activeAccount)||void 0===t?void 0:t.email);case I.cR.NotEnabledLocally:return this.i18nService.t("biometricsStatusHelptextNotEnabledInDesktop",null===(i=this.activeAccount)||void 0===i?void 0:i.email);case I.cR.DesktopDisconnected:return this.i18nService.t("biometricsStatusHelptextDesktopDisconnected");default:return this.i18nService.t("biometricsStatusHelptextUnavailableReasonUnknown")+(null===(n=this.unlockOptions)||void 0===n?void 0:n.biometrics.biometricsStatus)}}}Ip.ɵfac=function(e){return new(e||Ip)(w.rXU(N.D),w.rXU(I.Lu),w.rXU(G.y),w.rXU(R.Ix),w.rXU(R.nX),w.rXU(T.o),w.rXU(oe.U),w.rXU(I.vB),w.rXU(B.SKi),w.rXU(he.W),w.rXU(Ae.O),w.rXU(se.K),w.rXU(Is.M),w.rXU(mc.H),w.rXU(Je.N),w.rXU(od.Q),w.rXU(a.ok),w.rXU(F.f),w.rXU(I.wM),w.rXU(I.Zm),w.rXU(g.k4),w.rXU(HA),w.rXU(pe.f),w.rXU(Vs),w.rXU(E.y),w.rXU(ih))},Ip.ɵcmp=w.VBU({type:Ip,selectors:[["bit-lock"]],decls:3,vars:2,consts:[["spinner",""],[4,"ngIf","ngIfElse"],[1,"tw-flex","tw-items-center","tw-justify-center"],["aria-hidden","true",1,"bwi","bwi-spinner","bwi-spin","bwi-3x"],[4,"ngIf"],[3,"unlockOptions","biometricUnlockBtnText"],["type","button","bitButton","","appAutofocus","","buttonType","primary","block","",1,"tw-mb-3",3,"click","disabled","loading","bitTooltip"],[1,"tw-flex","tw-flex-col","tw-space-y-3"],[1,"tw-text-center","tw-mb-0"],[3,"unlockSuccess"],["type","button","bitButton","","block","",3,"click"],["type","button","bitButton","","buttonType","secondary","block","",3,"click"],[3,"bitSubmit","formGroup"],["type","password","formControlName","pin","bitInput","","appAutofocus","","name","pin","required","","appInputVerbatim","",1,"tw-font-mono"],["type","button","bitIconButton","","bitSuffix","","bitPasswordInputToggle","",3,"toggledChange","toggled"],["type","submit","bitButton","","bitFormButton","","buttonType","primary","block",""],[1,"tw-text-center"],[3,"unlockSuccess","formButton"],["type","button","bitButton","","bitFormButton","","block","",3,"click"],["type","button","bitButton","","bitFormButton","","buttonType","secondary","block","",3,"click","disabled"],["type","button","bitButton","","bitFormButton","","buttonType","secondary","block","",3,"click"],[3,"successfulUnlock","swapToBiometrics","swapToPin","prfUnlockSuccess","logOut","unlockOptions","biometricUnlockBtnText"]],template:function(e,t){if(1&e&&w.DNE(0,dp,2,0,"ng-template",null,0,w.C5r)(2,fp,4,3,"ng-container",1),2&e){const e=w.sdS(1);w.R7$(2),w.Y8G("ngIf",t.unlockOptions&&!t.loading)("ngIfElse",e)}},dependencies:[L.MD,L.bT,Nh.p,M.B,rp.q,a.X1,a.qT,a.me,a.BC,a.cb,a.YS,a.j4,a.JD,Ah.t,fh.Q,Oh.L,Xh.j,Lh.J,Wh.h,Kh.e,Zh.a,vh.C,Ih.$,wh.L,Uh.Q,Yh.s,np,lp,KA.d,Hh.$],encapsulation:2});class wp{static createResultToJson(e){return{id:e.credentialId,rawId:e.credentialId,response:{clientDataJSON:e.clientDataJSON,authenticatorData:e.authData,transports:e.transports,publicKey:e.publicKey,publicKeyAlgorithm:e.publicKeyAlgorithm,attestationObject:e.attestationObject},authenticatorAttachment:"platform",clientExtensionResults:e.extensions,type:"public-key"}}static getResultToJson(e){return{id:e.credentialId,rawId:e.credentialId,response:{clientDataJSON:e.clientDataJSON,authenticatorData:e.authenticatorData,signature:e.signature,userHandle:e.userHandle},authenticatorAttachment:"platform",clientExtensionResults:{},type:"public-key"}}static arrayToString(e){return wp.fromBufferToB64(wp.bufferSourceToUint8Array(e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}static stringToArray(e){return wp.fromB64ToArray(wp.fromUrlB64ToB64(e))}static bufferSourceToUint8Array(e){return wp.isArrayBuffer(e)?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}static isArrayBuffer(e){return e instanceof ArrayBuffer||void 0===e.buffer}static fromB64toUrlB64(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}static fromBufferToB64(e){if(null==e)return null;let t="";const i=new Uint8Array(e);for(let n=0;n<i.byteLength;n++)t+=String.fromCharCode(i[n]);return globalThis.btoa(t)}static fromB64ToArray(e){if(null==e)return null;const t=globalThis.atob(e),i=new Uint8Array(t.length);for(let n=0;n<t.length;n++)i[n]=t.charCodeAt(n);return i}static fromUrlB64ToB64(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("Illegal base64url string!")}return t}static cipherHasNoOtherPasskeys(e,t){return null==e.login.fido2Credentials||0===e.login.fido2Credentials.length||e.login.fido2Credentials.some(e=>e.userHandle===t)}}var Bp=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var Ep=i(88744),Sp=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function Qp(e,t){if(1&e&&(w.j41(0,"li"),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e){const e=w.XpG();w.R7$(),w.SpI(" ",w.i5U(2,1,"userkeyRotationDisclaimerAccountRecoveryOrgsText",e.params.orgName)," ")}}function kp(e,t){if(1&e&&(w.j41(0,"li"),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e){const e=w.XpG();w.R7$(),w.SpI(" ",w.i5U(2,1,"userkeyRotationDisclaimerEmergencyAccessText",e.params.numberOfEmergencyAccessUsers)," ")}}class Rp{constructor(e,t,i){this.params=e,this.logService=t,this.dialogRef=i}submit(){return Sp(this,void 0,void 0,function*(){try{this.dialogRef.close(!0)}catch(e){this.logService.error(e)}})}static open(e,t){return e.open(Rp,{data:t})}}Rp.ɵfac=function(e){return new(e||Rp)(w.rXU(Ep.Qs),w.rXU(se.K),w.rXU(Ep.ce))},Rp.ɵcmp=w.VBU({type:Rp,selectors:[["key-rotation-trust-info"]],decls:18,vars:14,consts:[["dialogSize","large"],["bitDialogTitle",""],["bitDialogContent",""],[1,"tw-mt-2","tw-mb-0","tw-pl-4"],[4,"ngIf"],["bitDialogFooter",""],["bitButton","","target","_blank","rel","noreferrer","buttonType","primary",3,"click"],["bitButton","","type","button","buttonType","secondary","bitDialogClose",""]],template:function(e,t){1&e&&(w.j41(0,"bit-dialog",0)(1,"span",1)(2,"strong"),w.EFF(3),w.nI1(4,"i18n"),w.k0s()(),w.j41(5,"span",2),w.EFF(6),w.nI1(7,"i18n"),w.j41(8,"ul",3),w.DNE(9,Qp,3,4,"li",4)(10,kp,3,4,"li",4),w.k0s()(),w.qex(11,5),w.j41(12,"a",6),w.bIt("click",function(){return t.submit()}),w.EFF(13),w.nI1(14,"i18n"),w.k0s(),w.j41(15,"button",7),w.EFF(16),w.nI1(17,"i18n"),w.k0s(),w.bVm(),w.k0s()),2&e&&(w.R7$(3),w.SpI(" ",w.bMT(4,6,"userkeyRotationDisclaimerTitle")," "),w.R7$(3),w.SpI(" ",w.bMT(7,8,"userkeyRotationDisclaimerDescription")," "),w.R7$(3),w.Y8G("ngIf",null!=t.params.orgName),w.R7$(),w.Y8G("ngIf",t.params.numberOfEmergencyAccessUsers>0),w.R7$(3),w.SpI(" ",w.bMT(14,10,"continue")," "),w.R7$(3),w.SpI(" ",w.bMT(17,12,"close")," "))},dependencies:[L.MD,L.bT,Nh.p,ph.P,yh.I,bh.m,Ch.hJ,Ah.t,fh.Q,a.X1,vh.C,a.YN,Hh.$],encapsulation:2});var Fp=i(75583),Tp=i(58806),Dp=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Pp{constructor(e,t,i,n,r){this.params=e,this.formBuilder=t,this.keyService=i,this.logService=n,this.dialogRef=r,this.loading=!0,this.fingerprint="",this.confirmForm=this.formBuilder.group({})}ngOnInit(){return Dp(this,void 0,void 0,function*(){try{const e=yield this.keyService.getFingerprint(this.params.orgId,this.params.publicKey);null!=e&&(this.fingerprint=e.join("-"))}catch(e){this.logService.error(e)}this.loading=!1})}submit(){return Dp(this,void 0,void 0,function*(){this.loading||this.dialogRef.close(!0)})}static open(e,t){return e.open(Pp,{data:t})}}Pp.ɵfac=function(e){return new(e||Pp)(w.rXU(Ep.Qs),w.rXU(a.ok),w.rXU(I.Lu),w.rXU(se.K),w.rXU(Ep.ce))},Pp.ɵcmp=w.VBU({type:Pp,selectors:[["account-recovery-trust"]],decls:20,vars:18,consts:[["dialogSize","large",3,"loading","title","subtitle"],["bitDialogContent",""],["bitTypography","body1"],["bitDialogFooter",""],["buttonType","primary","bitButton","","bitFormButton","","type","button",3,"click"],["bitButton","","bitFormButton","","buttonType","secondary","type","button","bitDialogClose",""]],template:function(e,t){1&e&&(w.j41(0,"bit-dialog",0),w.nI1(1,"i18n"),w.qex(2,1),w.j41(3,"p",2),w.EFF(4),w.nI1(5,"i18n"),w.nrm(6,"br")(7,"br"),w.EFF(8),w.nI1(9,"i18n"),w.j41(10,"code"),w.EFF(11),w.k0s()(),w.bVm(),w.qex(12,3),w.j41(13,"button",4),w.bIt("click",function(){return t.submit()}),w.j41(14,"span"),w.EFF(15),w.nI1(16,"i18n"),w.k0s()(),w.j41(17,"button",5),w.EFF(18),w.nI1(19,"i18n"),w.k0s(),w.bVm(),w.k0s()),2&e&&(w.Y8G("loading",t.loading)("title",w.bMT(1,8,"trustOrganization"))("subtitle",t.params.name),w.R7$(4),w.SpI(" ",w.bMT(5,10,"orgTrustWarning1")," "),w.R7$(4),w.SpI(" ",w.bMT(9,12,"fingerprintPhrase")," "),w.R7$(3),w.JRh(t.fingerprint),w.R7$(4),w.JRh(w.bMT(16,14,"trust")),w.R7$(3),w.SpI(" ",w.bMT(19,16,"doNotTrust")," "))},dependencies:[L.MD,Nh.p,ph.P,yh.I,bh.m,Ch.hJ,Ah.t,fh.Q,Gh.V,Fp.E,Tp.r,a.X1,Oh.L,vh.C,Ih.$,a.YN,gh.j,Hh.$],encapsulation:2});var Mp=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class xp{constructor(e,t,i,n,r){this.params=e,this.formBuilder=t,this.keyService=i,this.logService=n,this.dialogRef=r,this.loading=!0,this.fingerprint="",this.confirmForm=this.formBuilder.group({})}ngOnInit(){return Mp(this,void 0,void 0,function*(){try{const e=yield this.keyService.getFingerprint(this.params.userId,this.params.publicKey);null!=e&&(this.fingerprint=e.join("-"))}catch(e){this.logService.error(e)}this.loading=!1})}submit(){return Mp(this,void 0,void 0,function*(){this.loading||this.dialogRef.close(!0)})}static open(e,t){return e.open(xp,{data:t})}}xp.ɵfac=function(e){return new(e||xp)(w.rXU(Ep.Qs),w.rXU(a.ok),w.rXU(I.Lu),w.rXU(se.K),w.rXU(Ep.ce))},xp.ɵcmp=w.VBU({type:xp,selectors:[["emergency-access-trust"]],decls:23,vars:21,consts:[["dialogSize","large",3,"loading","title","subtitle"],["bitDialogContent",""],["type","warning"],["bitTypography","body1"],["bitLink","","href","https://bitwarden.com/help/fingerprint-phrase/","target","_blank","rel","noopener"],["bitDialogFooter",""],["buttonType","primary","bitButton","","bitFormButton","","type","button",3,"click"],["bitButton","","bitFormButton","","buttonType","secondary","type","button","bitDialogClose",""]],template:function(e,t){1&e&&(w.j41(0,"bit-dialog",0),w.nI1(1,"i18n"),w.qex(2,1),w.j41(3,"bit-callout",2),w.EFF(4),w.nI1(5,"i18n"),w.k0s(),w.j41(6,"p",3),w.EFF(7),w.nI1(8,"i18n"),w.j41(9,"a",4),w.EFF(10),w.nI1(11,"i18n"),w.k0s()(),w.j41(12,"p",3)(13,"code"),w.EFF(14),w.k0s()(),w.bVm(),w.qex(15,5),w.j41(16,"button",6),w.bIt("click",function(){return t.submit()}),w.j41(17,"span"),w.EFF(18),w.nI1(19,"i18n"),w.k0s()(),w.j41(20,"button",7),w.EFF(21),w.nI1(22,"i18n"),w.k0s(),w.bVm(),w.k0s()),2&e&&(w.Y8G("loading",t.loading)("title",w.bMT(1,9,"trustUser"))("subtitle",t.params.name),w.R7$(4),w.JRh(w.bMT(5,11,"emergencyAccessTrustWarning")),w.R7$(3),w.SpI(" ",w.bMT(8,13,"fingerprintEnsureIntegrityVerify")," "),w.R7$(3),w.SpI(" ",w.bMT(11,15,"learnMore")),w.R7$(4),w.JRh(t.fingerprint),w.R7$(4),w.JRh(w.bMT(19,17,"trust")),w.R7$(3),w.SpI(" ",w.bMT(22,19,"doNotTrust")," "))},dependencies:[L.MD,Nh.p,ph.P,yh.I,bh.m,Ch.hJ,Ah.t,fh.Q,Gh.V,jh.g,Fp.E,Tp.r,a.X1,Oh.L,vh.C,Ih.$,a.YN,gh.j,ae.G,Hh.$],encapsulation:2});var Vp=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var Gp=i(39488),Up=i(3892),Op=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function Np(e,t){1&e&&(w.j41(0,"div",0),w.nrm(1,"i",1),w.nI1(2,"i18n"),w.j41(3,"span",2),w.EFF(4),w.nI1(5,"i18n"),w.k0s()()),2&e&&(w.R7$(),w.Y8G("title",w.mNQ(w.bMT(2,3,"loading"))),w.R7$(3),w.JRh(w.bMT(5,5,"loading")))}function jp(e,t){if(1&e&&(w.j41(0,"p"),w.EFF(1),w.nI1(2,"i18n"),w.k0s(),w.j41(3,"p",3),w.EFF(4),w.nI1(5,"i18n"),w.k0s(),w.j41(6,"p",4),w.EFF(7),w.k0s(),w.j41(8,"p",5),w.EFF(9),w.nI1(10,"i18n"),w.nrm(11,"button",6),w.nI1(12,"i18n"),w.k0s(),w.j41(13,"p",7),w.EFF(14),w.k0s(),w.j41(15,"div",8)(16,"button",9),w.EFF(17),w.nI1(18,"i18n"),w.k0s(),w.j41(19,"button",10),w.EFF(20),w.nI1(21,"i18n"),w.k0s()()),2&e){const e=w.XpG();w.R7$(),w.JRh(w.bMT(2,12,"removeMasterPasswordForOrgUserKeyConnector")),w.R7$(3),w.JRh(w.bMT(5,14,"organization")),w.R7$(3),w.JRh(e.organization.name),w.R7$(2),w.SpI(" ",w.bMT(10,16,"domain")," "),w.R7$(2),w.Y8G("label",w.bMT(12,18,"keyConnectorDomainTooltip")),w.R7$(3),w.JRh(e.keyConnectorHostName),w.R7$(2),w.Y8G("block",!0)("bitAction",e.convert),w.R7$(),w.SpI(" ",w.bMT(18,20,"continueWithLogIn")," "),w.R7$(2),w.Y8G("block",!0)("bitAction",e.leave),w.R7$(),w.SpI(" ",w.bMT(21,22,"doNotContinue")," ")}}class Yp{constructor(e,t,i,n,r,s,o,a,l){this.logService=e,this.router=t,this.accountService=i,this.syncService=n,this.i18nService=r,this.keyConnectorService=s,this.organizationApiService=o,this.dialogService=a,this.toastService=l,this.continuing=!1,this.leaving=!1,this.loading=!0,this.convert=()=>Op(this,void 0,void 0,function*(){this.continuing=!0;try{yield this.keyConnectorService.migrateUser(this.organization.keyConnectorUrl,this.activeUserId),this.toastService.showToast({variant:"success",message:this.i18nService.t("organizationVerified")}),yield this.router.navigate(["/"])}catch(e){this.continuing=!1,this.handleActionError(e)}}),this.leave=()=>Op(this,void 0,void 0,function*(){if(!(yield this.dialogService.openSimpleDialog({title:{key:"leaveOrganization"},content:{key:"leaveOrganizationContent"},type:"warning",acceptButtonText:{key:"leaveNow"},cancelButtonText:{key:"cancel"}})))return!1;this.leaving=!0;try{yield this.organizationApiService.leave(this.organization.id),this.toastService.showToast({variant:"success",message:this.i18nService.t("leftOrganization")}),yield this.router.navigate(["/"])}catch(e){this.leaving=!1,this.handleActionError(e)}})}ngOnInit(){return Op(this,void 0,void 0,function*(){const e=yield(0,u._)(this.accountService.activeAccount$);return null==e?(this.logService.info("[Key Connector remove password] No active account found, redirecting to login."),void(yield this.router.navigate(["/"]))):(this.activeUserId=e.id,yield this.syncService.fullSync(!1),this.organization=yield this.keyConnectorService.getManagingOrganization(this.activeUserId),null==this.organization?(this.logService.info("[Key Connector remove password] No organization found, redirecting to login."),void(yield this.router.navigate(["/"]))):(this.keyConnectorHostName=zt.A.getHostname(this.organization.keyConnectorUrl),void(this.loading=!1)))})}get action(){return this.continuing||this.leaving}handleActionError(e){let t="";(e instanceof Xt._||e instanceof Error)&&(t=e.message),this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:t})}}Yp.ɵfac=function(e){return new(e||Yp)(w.rXU(se.K),w.rXU(R.Ix),w.rXU(N.D),w.rXU(Gp.H),w.rXU(he.W),w.rXU(Ws.K),w.rXU(Xe.X),w.rXU(T.o),w.rXU(F.f))},Yp.ɵcmp=w.VBU({type:Yp,selectors:[["km-ui-remove-password"]],decls:2,vars:1,consts:[[1,"tw-text-center"],["aria-hidden","true",1,"bwi","bwi-spinner","bwi-spin","bwi-2x","tw-text-muted",3,"title"],[1,"tw-sr-only"],[1,"tw-mb-0","tw-font-bold"],[1,"tw-mb-6"],[1,"tw-mb-0","tw-font-bold","tw-inline-flex","tw-items-center"],["type","button","tooltipPosition","above-center","bitIconButton","bwi-info-circle","size","small",3,"label"],[1,"tw-mb-6","tw-font-mono"],[1,"tw-flex","tw-flex-col","tw-gap-2"],["bitButton","","type","button","buttonType","primary",3,"block","bitAction"],["bitButton","","type","button","buttonType","secondary",3,"block","bitAction"]],template:function(e,t){1&e&&w.nVh(0,Np,6,7,"div",0)(1,jp,22,24),2&e&&w.vxM(t.loading?0:1)},dependencies:[L.MD,Ah.t,fh.Q,Up.p,Uh.Q,Yh.s,ce.$Z],encapsulation:2});var Xp=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function zp(e,t){1&e&&(w.j41(0,"div",0),w.nrm(1,"i",1),w.nI1(2,"i18n"),w.j41(3,"span",2),w.EFF(4),w.nI1(5,"i18n"),w.k0s()()),2&e&&(w.R7$(),w.Y8G("title",w.mNQ(w.bMT(2,3,"loading"))),w.R7$(3),w.JRh(w.bMT(5,5,"loading")))}function Lp(e,t){if(1&e&&(w.j41(0,"p"),w.EFF(1),w.nI1(2,"i18n"),w.k0s(),w.j41(3,"p",9),w.EFF(4),w.nI1(5,"i18n"),w.k0s(),w.j41(6,"p",10),w.EFF(7),w.k0s()),2&e){const e=w.XpG(2);w.R7$(),w.JRh(w.bMT(2,3,"confirmKeyConnectorOrganizationUserDescription")),w.R7$(3),w.JRh(w.bMT(5,5,"organization")),w.R7$(3),w.JRh(e.organizationName)}}function Wp(e,t){1&e&&(w.j41(0,"p"),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.JRh(w.bMT(2,1,"verifyYourDomainDescription")))}function Kp(e,t){if(1&e&&(w.nVh(0,Lp,8,7)(1,Wp,3,3,"p"),w.j41(2,"p",3),w.EFF(3),w.nI1(4,"i18n"),w.nrm(5,"button",4),w.nI1(6,"i18n"),w.k0s(),w.j41(7,"p",5),w.EFF(8),w.k0s(),w.j41(9,"div",6)(10,"button",7),w.EFF(11),w.nI1(12,"i18n"),w.k0s(),w.j41(13,"button",8),w.EFF(14),w.nI1(15,"i18n"),w.k0s()()),2&e){const e=w.XpG();w.vxM(e.organizationName?0:1),w.R7$(3),w.SpI(" ",w.bMT(4,10,"domain")," "),w.R7$(2),w.Y8G("label",w.bMT(6,12,"keyConnectorDomainTooltip")),w.R7$(3),w.JRh(e.keyConnectorHostName),w.R7$(2),w.Y8G("bitAction",e.confirm)("block",!0),w.R7$(),w.SpI(" ",w.bMT(12,14,"continueWithLogIn")," "),w.R7$(2),w.Y8G("bitAction",e.cancel)("block",!0),w.R7$(),w.SpI(" ",w.bMT(15,16,"doNotContinue")," ")}}class Zp{constructor(e,t,i,n,r,s,o,a,l,c){this.router=e,this.logService=t,this.keyConnectorService=i,this.messagingService=n,this.syncService=r,this.accountService=s,this.keyConnectorApiService=o,this.toastService=a,this.i18nService=l,this.anonLayoutWrapperDataService=c,this.loading=!0,this.onBeforeNavigation=()=>Xp(this,void 0,void 0,function*(){}),this.confirm=()=>Xp(this,void 0,void 0,function*(){yield this.keyConnectorService.convertNewSsoUserToKeyConnector(this.userId),this.organizationName?this.toastService.showToast({variant:"success",message:this.i18nService.t("organizationVerified")}):this.toastService.showToast({variant:"success",message:this.i18nService.t("domainVerified")}),yield this.syncService.fullSync(!0),this.messagingService.send("loggedIn"),yield this.onBeforeNavigation(),yield this.router.navigate(["/"])}),this.cancel=()=>Xp(this,void 0,void 0,function*(){this.messagingService.send("logout")})}ngOnInit(){return Xp(this,void 0,void 0,function*(){try{this.userId=yield(0,u._)((0,f.F6)(this.accountService.activeAccount$))}catch(t){return this.logService.info("[confirm-key-connector-domain] no active account"),void this.messagingService.send("logout")}const e=yield(0,u._)(this.keyConnectorService.requiresDomainConfirmation$(this.userId));if(null==e)return this.logService.info("[confirm-key-connector-domain] missing required parameters"),void this.messagingService.send("logout");this.organizationName=yield this.getOrganizationName(e.organizationSsoIdentifier),null==this.organizationName&&this.anonLayoutWrapperDataService.setAnonLayoutWrapperData({pageTitle:{key:"verifyYourDomainToLogin"}}),this.keyConnectorUrl=e.keyConnectorUrl,this.keyConnectorHostName=zt.A.getHostname(e.keyConnectorUrl),this.loading=!1})}getOrganizationName(e){return Xp(this,void 0,void 0,function*(){try{return(yield this.keyConnectorApiService.getConfirmationDetails(e)).organizationName}catch(t){return void this.logService.warning(`[ConfirmKeyConnectorDomainComponent] Unable to get key connector confirmation details for organizationSsoIdentifier ${e}:`,t)}})}}Zp.ɵfac=function(e){return new(e||Zp)(w.rXU(R.Ix),w.rXU(se.K),w.rXU(Ws.K),w.rXU(oe.U),w.rXU(mc.H),w.rXU(N.D),w.rXU(Ls),w.rXU(F.f),w.rXU(he.W),w.rXU(pe.f))},Zp.ɵcmp=w.VBU({type:Zp,selectors:[["confirm-key-connector-domain"]],inputs:{onBeforeNavigation:"onBeforeNavigation"},decls:2,vars:1,consts:[[1,"tw-text-center"],["aria-hidden","true",1,"bwi","bwi-spinner","bwi-spin","bwi-2x","tw-text-muted",3,"title"],[1,"tw-sr-only"],[1,"tw-mb-0","tw-font-bold","tw-inline-flex","tw-items-center"],["type","button","tooltipPosition","above-center","bitIconButton","bwi-info-circle","size","small",3,"label"],[1,"tw-mb-6","tw-font-mono"],[1,"tw-flex","tw-flex-col","tw-gap-2"],["bitButton","","type","button","buttonType","primary",3,"bitAction","block"],["bitButton","","type","button","buttonType","secondary",3,"bitAction","block"],[1,"tw-mb-0","tw-font-bold"],[1,"tw-mb-6"]],template:function(e,t){1&e&&w.nVh(0,zp,6,7,"div",0)(1,Kp,16,18),2&e&&w.vxM(t.loading?0:1)},dependencies:[L.MD,Ah.t,fh.Q,Up.p,Uh.Q,Yh.s,ce.$Z],encapsulation:2});var Hp=i(84522),Jp=i(47135),qp=i(98403),$p=i(8433),_p=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class eg{constructor(e,t,i){this.i18nService=e,this.sessionTimeoutTypeService=t,this.policyService=i,this.availableTimeoutOptions$=(0,Ei.v)(()=>_p(this,void 0,void 0,function*(){const e=this.getAllTimeoutOptions();return(yield Promise.all(e.map(e=>_p(this,void 0,void 0,function*(){return{option:e,available:yield this.sessionTimeoutTypeService.isAvailable(e.value)}})))).filter(e=>e.available).map(e=>e.option)}))}onTimeoutSave(e){}policyFilteredTimeoutOptions$(e){const t=this.policyService.policiesByType$(_e.tt.MaximumVaultTimeout,e).pipe(Nt.Zc,(0,p.T)(e=>{var t;return null!==(t=null==e?void 0:e.data)&&void 0!==t?t:null}));return(0,xt.z)([this.availableTimeoutOptions$,t,t.pipe((0,dl.H)(e=>_p(this,void 0,void 0,function*(){if(null==e)return null;switch(e.type){case"immediately":return yield this.sessionTimeoutTypeService.getOrPromoteToAvailable(Dn.BF.Immediately);case"onSystemLock":return yield this.sessionTimeoutTypeService.getOrPromoteToAvailable(Dn.Lw.OnLocked)}return null})))]).pipe((0,dl.H)(e=>_p(this,[e],void 0,function*([e,t,i]){return null==t?e:e.filter(e=>{switch(t.type){case"immediately":return e.value===i;case"onSystemLock":return!(e.value!==Dn.BF.Immediately&&!(0,Dn.ft)(e.value)&&e.value!==Dn.Lw.Custom&&e.value!==Dn.Lw.OnLocked&&e.value!==Dn.Lw.OnIdle&&e.value!==Dn.Lw.OnSleep)||e.value===i;case"onAppRestart":return e.value===Dn.BF.Immediately||(0,Dn.ft)(e.value)||e.value===Dn.Lw.Custom||e.value===Dn.Lw.OnRestart;case"custom":case null:case void 0:return e.value===Dn.BF.Immediately||e.value===Dn.Lw.Custom||(0,Dn.ft)(e.value)&&e.value<=t.minutes;case"never":return!0;default:throw Error(`Unsupported policy type: ${t.type}`)}})})))}getAllTimeoutOptions(){return[{name:"immediately",value:Dn.BF.Immediately},{name:"oneMinute",value:Dn.BF.OnMinute},{name:"fiveMinutes",value:5},{name:"fifteenMinutes",value:15},{name:"thirtyMinutes",value:30},{name:"oneHour",value:60},{name:"fourHours",value:240},{name:"onIdle",value:Dn.Lw.OnIdle},{name:"onSleep",value:Dn.Lw.OnSleep},{name:"onLocked",value:Dn.Lw.OnLocked},{name:"sessionTimeoutOnRestart",value:Dn.Lw.OnRestart},{name:"never",value:Dn.Lw.Never},{name:"custom",value:Dn.Lw.Custom}]}}var tg=i(33886),ig=i(68923),ng=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const rg=(e,t)=>t.value;function sg(e,t){if(1&e&&(w.nrm(0,"bit-option",3),w.nI1(1,"i18n")),2&e){const e=t.$implicit;w.Y8G("value",e.value)("label",w.bMT(1,2,e.name))}}function og(e,t){if(1&e&&(w.j41(0,"div",4)(1,"bit-form-field",6),w.nrm(2,"input",7),w.j41(3,"bit-label"),w.EFF(4),w.nI1(5,"i18n"),w.k0s()(),w.j41(6,"bit-form-field",8),w.nrm(7,"input",9),w.j41(8,"bit-label"),w.EFF(9),w.nI1(10,"i18n"),w.k0s()()()),2&e){const e=w.XpG();w.R7$(4),w.JRh(w.bMT(5,3,"hours")),w.R7$(3),w.Y8G("min",e.customMinutesMin),w.R7$(2),w.JRh(w.bMT(10,5,"minutes"))}}function ag(e,t){if(1&e&&(w.j41(0,"div",5),w.nrm(1,"i",10),w.EFF(2),w.nI1(3,"i18n"),w.k0s()),2&e){const e=w.XpG();w.R7$(2),w.SpI(" ",w.brH(3,1,"sessionTimeoutSettingsPolicyMaximumError",e.maxSessionTimeoutPolicyHours,e.maxSessionTimeoutPolicyMinutes)," ")}}function lg(e,t){if(1&e&&(w.j41(0,"bit-hint",11),w.EFF(1),w.k0s()),2&e){w.XpG();const e=w.r8f(0);w.R7$(),w.SpI(" ",e," ")}}function cg(e,t){if(1&e&&(w.SS7(0),w.nI1(1,"async"),w.nVh(2,lg,2,1,"bit-hint",11)),2&e){const e=w.bH3(w.bMT(1,1,w.XpG().policyTimeoutMessage$));w.R7$(2),w.vxM(null!=e?2:-1)}}class dg{constructor(){this.formBuilder=(0,B.WQX)(a.ok),this.policyService=(0,B.WQX)(Je.m),this.i18nService=(0,B.WQX)(he.W),this.accountService=(0,B.WQX)(N.D),this.destroyRef=(0,B.WQX)(B.abz),this.sessionTimeoutTypeService=(0,B.WQX)(Ko),this.logService=(0,B.WQX)(qA.Kc),this.availableTimeoutOptions=r.hFB.required(),this.maxSessionTimeoutPolicyData=null,this.form=this.formBuilder.group({vaultTimeout:[null],custom:this.formBuilder.group({hours:[0,[a.k0.required,a.k0.min(0)]],minutes:[0,[a.k0.required,a.k0.min(0),a.k0.max(59)]]})},{validators:[this.formValidator.bind(this)]}),this.onChange=null,this.validatorChange=null}get isCustomTimeoutType(){return this.form.controls.vaultTimeout.value===Dn.Lw.Custom}get customMinutesMin(){return 0===this.form.controls.custom.controls.hours.value?1:0}get exceedsPolicyMaximumTimeout(){var e;return(null===(e=this.maxSessionTimeoutPolicyData)||void 0===e?void 0:e.type)===Dn.Lw.Custom&&this.isCustomTimeoutType&&this.getTotalMinutesFromCustomValue(this.form.value.custom)>this.maxSessionTimeoutPolicyMinutes+60*this.maxSessionTimeoutPolicyHours}ngOnInit(){const e=this.accountService.activeAccount$.pipe(f.F6,(0,jt.n)(e=>this.policyService.policiesByType$(_e.tt.MaximumVaultTimeout,e)),Nt.Zc,(0,h.p)(e=>null!=e),(0,p.T)(e=>e.data));this.policyTimeoutMessage$=e.pipe((0,jt.n)(e=>this.getPolicyTimeoutMessage(e))),e.pipe((0,c.pQ)(this.destroyRef)).subscribe(e=>{this.maxSessionTimeoutPolicyData=e,this.form.controls.custom.updateValueAndValidity(),this.validatorChange&&this.validatorChange()}),this.form.valueChanges.pipe((0,c.pQ)(this.destroyRef)).subscribe(e=>{if(this.onChange){const t=this.getVaultTimeout(e);if(null!=t){(!this.isCustomTimeoutType||this.form.controls.custom.valid)&&this.onChange(t)}}}),this.form.controls.vaultTimeout.valueChanges.pipe((0,h.p)(e=>null!=e&&e!==Dn.Lw.Custom),(0,c.pQ)(this.destroyRef)).subscribe(e=>{const t=(0,Dn.ft)(e)?e:Dn.BF.EightHours;this.form.patchValue({custom:{hours:Math.floor(t/60),minutes:t%60}},{emitEvent:!1}),this.form.controls.custom.markAllAsTouched()})}get maxSessionTimeoutPolicyHours(){var e,t;return Math.floor((null!==(t=null===(e=this.maxSessionTimeoutPolicyData)||void 0===e?void 0:e.minutes)&&void 0!==t?t:0)/60)}get maxSessionTimeoutPolicyMinutes(){var e,t;return(null!==(t=null===(e=this.maxSessionTimeoutPolicyData)||void 0===e?void 0:e.minutes)&&void 0!==t?t:0)%60}writeValue(e){if(null==e)return;if(!this.availableTimeoutOptions().some(t=>t.value===e))return this.logService.debug(`[SessionTimeoutInputComponent] form control write value as custom ${e}`),void this.form.setValue({vaultTimeout:Dn.Lw.Custom,custom:{hours:Math.floor(e/60),minutes:e%60}});this.logService.debug(`[SessionTimeoutInputComponent] form control write value as preset ${e}`),this.form.patchValue({vaultTimeout:e})}registerOnChange(e){this.onChange=e}registerOnTouched(e){}setDisabledState(e){e?this.form.disable({emitEvent:!1}):this.form.enable({emitEvent:!1})}validate(e){return this.form.errors}registerOnValidatorChange(e){this.validatorChange=e}getTotalMinutesFromCustomValue(e){var t,i;return 60*(null!==(t=null==e?void 0:e.hours)&&void 0!==t?t:0)+(null!==(i=null==e?void 0:e.minutes)&&void 0!==i?i:0)}formValidator(e){var t,i;const n=e.value;if(!(n.vaultTimeout===Dn.Lw.Custom))return null;const r=null===(t=n.custom)||void 0===t?void 0:t.hours,s=null===(i=n.custom)||void 0===i?void 0:i.minutes;if(null==r||null==s)return{required:!0};return 0===this.getTotalMinutesFromCustomValue(n.custom)?{minTimeoutError:!0}:this.exceedsPolicyMaximumTimeout?{maxTimeoutError:!0}:null}getVaultTimeout(e){var t;return e.vaultTimeout!==Dn.Lw.Custom?null!==(t=e.vaultTimeout)&&void 0!==t?t:null:this.getTotalMinutesFromCustomValue(e.custom)}getPolicyTimeoutMessage(e){return ng(this,void 0,void 0,function*(){const t=yield this.getPolicyAppliedTimeout(e);switch(t){case null:return null;case Dn.BF.Immediately:return this.i18nService.t("sessionTimeoutSettingsPolicySetDefaultTimeoutToImmediately");case Dn.Lw.OnLocked:return this.i18nService.t("sessionTimeoutSettingsPolicySetDefaultTimeoutToOnLocked");case Dn.Lw.OnRestart:return this.i18nService.t("sessionTimeoutSettingsPolicySetDefaultTimeoutToOnRestart");default:if((0,Dn.ft)(t)){const e=Math.floor(t/60),i=t%60;return this.i18nService.t("sessionTimeoutSettingsPolicySetMaximumTimeoutToHoursMinutes",e,i)}throw new Error("Invalid timeout parameter")}})}getPolicyAppliedTimeout(e){return ng(this,void 0,void 0,function*(){switch(e.type){case"immediately":return yield this.sessionTimeoutTypeService.getOrPromoteToAvailable(Dn.BF.Immediately);case"onSystemLock":return yield this.sessionTimeoutTypeService.getOrPromoteToAvailable(Dn.Lw.OnLocked);case"onAppRestart":return Dn.Lw.OnRestart;case"never":{const e=yield this.sessionTimeoutTypeService.getOrPromoteToAvailable(Dn.Lw.Never);return e==Dn.Lw.Never?null:e}default:return e.minutes}})}}dg.MIN_CUSTOM_MINUTES=0,dg.ɵfac=function(e){return new(e||dg)},dg.ɵcmp=w.VBU({type:dg,selectors:[["bit-session-timeout-input"]],inputs:{availableTimeoutOptions:[1,"availableTimeoutOptions"]},features:[w.Jv_([{provide:a.kq,multi:!0,useExisting:dg},{provide:a.cz,multi:!0,useExisting:dg}])],decls:11,vars:7,consts:[[1,"tw-mb-4",3,"formGroup"],[3,"disableMargin"],["formControlName","vaultTimeout"],[3,"value","label"],["formGroupName","custom",1,"tw-grid","tw-grid-cols-12","tw-gap-4"],["id","session-timeout-maximum-error",1,"tw-mt-1","tw-text-danger","tw-text-xs"],["disableMargin","",1,"tw-col-span-6"],["bitInput","","type","number","min","0","formControlName","hours","aria-describedby","session-timeout-maximum-error"],["disableMargin","",1,"tw-col-span-6","tw-self-start"],["bitInput","","type","number","max","59","formControlName","minutes","aria-describedby","session-timeout-maximum-error",3,"min"],["aria-hidden","true",1,"bwi","bwi-error"],["id","session-timeout-maximum-error",1,"tw-mb-1"]],template:function(e,t){1&e&&(w.j41(0,"div",0)(1,"bit-form-field",1)(2,"bit-label"),w.EFF(3),w.nI1(4,"i18n"),w.k0s(),w.j41(5,"bit-select",2),w.Z7z(6,sg,2,4,"bit-option",3,rg),w.k0s()(),w.nVh(8,og,11,7,"div",4),w.nVh(9,ag,4,5,"div",5)(10,cg,3,4),w.k0s()),2&e&&(w.Y8G("formGroup",t.form),w.R7$(),w.Y8G("disableMargin",!t.isCustomTimeoutType),w.R7$(2),w.JRh(w.bMT(4,5,"vaultTimeout1")),w.R7$(3),w.Dyx(t.availableTimeoutOptions()),w.R7$(2),w.vxM(t.isCustomTimeoutType?8:-1),w.R7$(),w.vxM(t.form.hasError("maxTimeoutError")?9:null!=t.maxSessionTimeoutPolicyData?10:-1))},dependencies:[L.MD,Nh.p,a.X1,a.me,a.Q0,a.BC,a.cb,a.VZ,a.zX,a.j4,a.JD,a.$R,Oh.L,Xh.j,zh.I,Lh.J,Wh.h,$p.p,tg.w,ig.P,L.Jj,Hh.$],encapsulation:2,changeDetection:0});var ug=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function hg(e,t){if(1&e&&w.nrm(0,"bit-session-timeout-input",1),2&e){const e=w.XpG();w.Y8G("availableTimeoutOptions",t)("formControl",e.formGroup.controls.timeout)}}function Ag(e,t){if(1&e&&(w.nrm(0,"bit-option",4),w.nI1(1,"i18n")),2&e){const e=t.$implicit;w.Y8G("value",e)("label",w.bMT(1,2,e))}}function pg(e,t){1&e&&(w.j41(0,"bit-hint"),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.JRh(w.bMT(2,1,"sessionTimeoutSuppressedByConnectedDevice")))}function gg(e,t){1&e&&(w.j41(0,"bit-hint"),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.JRh(w.bMT(2,1,"sessionTimeoutSettingsSetUnlockMethodToChangeTimeoutAction")))}function vg(e,t){1&e&&(w.j41(0,"bit-hint"),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.JRh(w.bMT(2,1,"sessionTimeoutSettingsManagedByOrganization")))}class mg{constructor(){this.refreshTimeoutActionSettings=(0,r.hFB)(new Tt.t(void 0)),this.vaultTimeoutSettingsService=(0,B.WQX)(Dn.ep),this.sessionTimeoutSettingsComponentService=(0,B.WQX)(eg),this.i18nService=(0,B.WQX)(he.W),this.toastService=(0,B.WQX)(F.f),this.policyService=(0,B.WQX)(Je.m),this.accountService=(0,B.WQX)(N.D),this.dialogService=(0,B.WQX)(T.o),this.logService=(0,B.WQX)(qA.Kc),this.destroyRef=(0,B.WQX)(B.abz),this.platformUtilsService=(0,B.WQX)(G.y),this.formGroup=new a.gE({timeout:new a.MJ(null,[a.k0.required]),timeoutAction:new a.MJ(Dn.W4.Lock,[a.k0.required])}),this.availableTimeoutActions=(0,B.vPA)([]),this.availableTimeoutOptions$=this.accountService.activeAccount$.pipe(f.F6,(0,jt.n)(e=>this.sessionTimeoutSettingsComponentService.policyFilteredTimeoutOptions$(e)),(0,P.M)(e=>{this.logService.debug("[SessionTimeoutSettings] Available timeout options",e)})),this.sessionTimeoutActionFromPolicy$=this.accountService.activeAccount$.pipe(f.F6,(0,jt.n)(e=>this.policyService.policiesByType$(_e.tt.MaximumVaultTimeout,e)),Nt.Zc,(0,p.T)(e=>null==e?void 0:e.data),(0,p.T)(e=>{var t;return null!==(t=null==e?void 0:e.action)&&void 0!==t?t:null})),this.sessionTimeoutActionFromPolicy=(0,c.ot)(this.sessionTimeoutActionFromPolicy$),this.isTimeoutSuppressed=(0,c.ot)(this.accountService.activeAccount$.pipe(f.F6,(0,jt.n)(e=>this.vaultTimeoutSettingsService.isVaultTimeoutSuppressed$(e))),{initialValue:!1})}get canLock(){return this.availableTimeoutActions().includes(Dn.W4.Lock)}get supportsLock(){return this.platformUtilsService.getClientType()!==nh.s.Web&&"logOut"!==this.sessionTimeoutActionFromPolicy()}ngOnInit(){return ug(this,void 0,void 0,function*(){this.userId=yield(0,u._)((0,f.F6)(this.accountService.activeAccount$));const e=yield(0,u._)(this.vaultTimeoutSettingsService.getVaultTimeoutByUserId$(this.userId));this.formGroup.patchValue({timeout:e,timeoutAction:yield(0,u._)(this.vaultTimeoutSettingsService.getVaultTimeoutActionByUserId$(this.userId))},{emitEvent:!1}),this.vaultTimeoutSettingsService.getVaultTimeoutByUserId$(this.userId).pipe((0,h.p)(e=>this.formGroup.controls.timeout.value!==e),(0,P.M)(e=>this.logService.debug(`[SessionTimeoutSettings] Updating initial form timeout from ${this.formGroup.controls.timeout.value} to ${e}`)),(0,c.pQ)(this.destroyRef)).subscribe(e=>{this.formGroup.controls.timeout.setValue(e,{emitEvent:!1})}),this.refreshTimeoutActionSettings().pipe((0,tn.Z)(void 0),(0,jt.n)(()=>(0,xt.z)([this.vaultTimeoutSettingsService.availableVaultTimeoutActions$(this.userId),this.vaultTimeoutSettingsService.getVaultTimeoutActionByUserId$(this.userId),this.sessionTimeoutActionFromPolicy$,this.vaultTimeoutSettingsService.isVaultTimeoutSuppressed$(this.userId)])),(0,c.pQ)(this.destroyRef)).subscribe(([e,t,i,n])=>{this.availableTimeoutActions.set(e),this.formGroup.controls.timeoutAction.setValue(t,{emitEvent:!1}),n?this.formGroup.disable({emitEvent:!1}):(this.formGroup.enable({emitEvent:!1}),(null!=i||e.length<=1)&&this.formGroup.controls.timeoutAction.disable({emitEvent:!1}))}),this.formGroup.controls.timeout.valueChanges.pipe((0,tn.Z)(e),(0,h.p)(e=>null!=e),(0,$i.F)(),(0,nn.J)(),(0,dl.H)(e=>ug(this,[e],void 0,function*([e,t]){yield this.saveTimeout(e,t)})),(0,c.pQ)(this.destroyRef)).subscribe(),this.formGroup.controls.timeoutAction.valueChanges.pipe((0,h.p)(e=>null!=e),(0,p.T)(e=>ug(this,void 0,void 0,function*(){yield this.saveTimeoutAction(e)})),(0,c.pQ)(this.destroyRef)).subscribe()})}saveTimeout(e,t){return ug(this,void 0,void 0,function*(){if(this.formGroup.controls.timeout.markAllAsTouched(),this.formGroup.controls.timeout.invalid)return;if(this.logService.debug("[SessionTimeoutSettings] Saving timeout",{previousValue:e,newValue:t}),t===Dn.Lw.Never){if(!(yield this.dialogService.openSimpleDialog({title:{key:"warning"},content:{key:"neverLockWarning"},type:"warning"})))return void this.formGroup.controls.timeout.setValue(e,{emitEvent:!1})}const i=yield(0,u._)(this.vaultTimeoutSettingsService.getVaultTimeoutActionByUserId$(this.userId));yield this.vaultTimeoutSettingsService.setVaultTimeoutOptions(this.userId,t,i),this.sessionTimeoutSettingsComponentService.onTimeoutSave(t)})}saveTimeoutAction(e){return ug(this,void 0,void 0,function*(){if(this.logService.debug("[SessionTimeoutSettings] Saving timeout action",e),e===Dn.W4.LogOut){if(!(yield this.dialogService.openSimpleDialog({title:{key:"vaultTimeoutLogOutConfirmationTitle"},content:{key:"vaultTimeoutLogOutConfirmation"},type:"warning"})))return void this.formGroup.controls.timeoutAction.setValue(Dn.W4.Lock,{emitEvent:!1})}this.formGroup.controls.timeout.hasError("policyError")?this.toastService.showToast({variant:"error",message:this.i18nService.t("vaultTimeoutTooLarge")}):yield this.vaultTimeoutSettingsService.setVaultTimeoutOptions(this.userId,this.formGroup.controls.timeout.value,e)})}}mg.ɵfac=function(e){return new(e||mg)},mg.ɵcmp=w.VBU({type:mg,selectors:[["bit-session-timeout-settings"]],inputs:{refreshTimeoutActionSettings:[1,"refreshTimeoutActionSettings"]},decls:14,vars:13,consts:[[3,"formGroup"],[3,"availableTimeoutOptions","formControl"],[3,"disableMargin"],["id","timeoutAction",3,"formControl","required"],[3,"value","label"]],template:function(e,t){if(1&e&&(w.j41(0,"div",0),w.nVh(1,hg,1,2,"bit-session-timeout-input",1),w.nI1(2,"async"),w.j41(3,"bit-form-field",2)(4,"bit-label"),w.EFF(5),w.nI1(6,"i18n"),w.k0s(),w.j41(7,"bit-select",3),w.Z7z(8,Ag,2,4,"bit-option",4,w.fX1),w.k0s(),w.nVh(10,pg,3,3,"bit-hint"),w.nI1(11,"async"),w.vZN(12,gg,3,3,"bit-hint")(13,vg,3,3,"bit-hint"),w.k0s()()),2&e){let e;w.Y8G("formGroup",t.formGroup),w.R7$(),w.vxM((e=w.bMT(2,7,t.availableTimeoutOptions$))?1:-1,e),w.R7$(2),w.Y8G("disableMargin",!0),w.R7$(2),w.JRh(w.bMT(6,9,"sessionTimeoutSettingsAction")),w.R7$(2),w.Y8G("formControl",t.formGroup.controls.timeoutAction)("required",!1),w.R7$(),w.Dyx(t.availableTimeoutActions()),w.R7$(2),w.vxM(t.isTimeoutSuppressed()?10:!t.canLock&&t.supportsLock?12:null!=w.bMT(11,11,t.sessionTimeoutActionFromPolicy$)?13:-1)}},dependencies:[Jp.q,L.MD,Oh.L,Xh.j,zh.I,Wh.h,a.YN,a.BC,a.cb,a.YS,a.X1,a.l_,a.j4,Uh.Q,qp.k,Nh.p,Gh.V,Hp.iI,$p.p,tg.w,ig.P,Fp.E,dg,L.Jj,Hh.$],encapsulation:2});var fg=i(79161),yg=i(83632),bg=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Cg{constructor(){this.cipherService=(0,B.WQX)(Q.p),this.userKeyRotationService=(0,B.WQX)(lh),this.toastService=(0,B.WQX)(F.f),this.i18nService=(0,B.WQX)(he.W),this.logoutService=(0,B.WQX)(g.k4),this.masterPasswordUnlockService=(0,B.WQX)(ao.b),this.userDecryptionOptionsService=(0,B.WQX)(g.Ym)}rotateKeys(e,t){return bg(this,void 0,void 0,function*(){if(!(yield this.masterPasswordUnlockService.proofOfDecryption(e,t)))return this.toastService.showToast({variant:"error",message:this.i18nService.t("incorrectPassword")}),!1;return!!(yield this.userKeyRotationService.rotateUserKey({Password:{password:e}},"Skip",t))&&(this.toastService.showToast({variant:"success",title:"",message:this.i18nService.t("accountEncryptionKeyRotated"),timeout:15e3}),yield this.logoutService.logout(t),!0)})}rotateKeysForKeyConnector(e){return bg(this,void 0,void 0,function*(){var t;const i=null===(t=(yield(0,u._)(this.userDecryptionOptionsService.userDecryptionOptionsById$(e))).keyConnectorOption)||void 0===t?void 0:t.keyConnectorUrl;if(null==i)throw new Error("Key Connector URL not found in user decryption options");return!!(yield this.userKeyRotationService.rotateUserKey({KeyConnector:{key_connector_url:i}},"Skip",e))&&(this.toastService.showToast({variant:"success",title:"",message:this.i18nService.t("accountEncryptionKeyRotated"),timeout:15e3}),yield this.logoutService.logout(e),!0)})}rotateKeysForTDE(e){return bg(this,void 0,void 0,function*(){return!!(yield this.userKeyRotationService.rotateUserKey("Tde","Skip",e))&&(this.toastService.showToast({variant:"success",title:"",message:this.i18nService.t("accountEncryptionKeyRotated"),timeout:15e3}),yield this.logoutService.logout(e),!0)})}hasLegacyCipherAttachments(e){return bg(this,void 0,void 0,function*(){var t;const i=yield this.cipherService.getAllDecrypted(e);return null!==(t=null==i?void 0:i.some(e=>null==e.organizationId&&e.hasOldAttachments))&&void 0!==t&&t})}}Cg.ɵfac=function(e){return new(e||Cg)},Cg.ɵprov=B.jDH({token:Cg,factory:Cg.ɵfac,providedIn:"root"});var Ig=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function wg(e,t){1&e&&(w.j41(0,"div",3),w.nrm(1,"bit-spinner"),w.k0s())}function Bg(e,t){1&e&&(w.j41(0,"bit-form-field",9)(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",10)(5,"button",11),w.k0s()),2&e&&(w.R7$(2),w.JRh(w.bMT(3,1,"masterPass")))}function Eg(e,t){if(1&e&&(w.j41(0,"p",7),w.EFF(1),w.nI1(2,"i18n"),w.k0s(),w.j41(3,"bit-callout",8),w.EFF(4),w.nI1(5,"i18n"),w.k0s(),w.nVh(6,Bg,6,3,"bit-form-field",9)),2&e){const e=w.XpG();w.R7$(),w.SpI(" ",w.bMT(2,3,"rotateAccountEncryptionDialogDescription")," "),w.R7$(3),w.JRh(w.bMT(5,5,"rotateAccountEncryptionCallout")),w.R7$(2),w.vxM("masterPassword"===e.userPrimaryEncryptionType()?6:-1)}}class Sg{constructor(){this.form=new a.gE({masterPassword:new a.MJ("",{validators:[a.k0.required],updateOn:"submit"})}),this.keyRotationDialogService=(0,B.WQX)(Cg),this.accountService=(0,B.WQX)(N.D),this.dialogService=(0,B.WQX)(T.o),this.platformUtilsService=(0,B.WQX)(G.y),this.dialogRef=(0,B.WQX)(Ep.ce),this.validationService=(0,B.WQX)(oa.B),this.logService=(0,B.WQX)(qA.Kc),this.keyConnectorService=(0,B.WQX)(Ws.K),this.userDecryptionOptionsService=(0,B.WQX)(g.Ym),this.deviceTrustService=(0,B.WQX)(Is.M),this.userPrimaryEncryptionType=(0,c.ot)(this.accountService.activeAccount$.pipe(f.F6,(0,jt.n)(e=>(0,fg.p)([(0,u._)(this.userDecryptionOptionsService.hasMasterPasswordById$(e)),this.keyConnectorService.getUsesKeyConnector(e),this.keyConnectorService.getManagingOrganization(e),(0,u._)(this.deviceTrustService.supportsDeviceTrustByUserId$(e))]).pipe((0,p.T)(([e,t,i,n])=>e?"masterPassword":t&&null!=i?"keyConnector":n?"TDE":void 0))))),this.loading=(0,JA.EW)(()=>null==this.userPrimaryEncryptionType()),this.submit=()=>Ig(this,void 0,void 0,function*(){if(this.loading())return;const e=this.userPrimaryEncryptionType();if("masterPassword"===e&&(this.form.markAllAsTouched(),this.form.invalid||!this.form.value.masterPassword))return;const t=yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6));this.dialogRef.disableClose=!0;try{if(yield this.keyRotationDialogService.hasLegacyCipherAttachments(t))return this.dialogRef.close(),void(yield this.displayLegacyAttachmentWarning());(yield this.performKeyRotation(e,t))&&this.dialogRef.close()}catch(i){this.logService.error(i),this.validationService.showError(i)}finally{this.dialogRef.disableClose=!1}})}performKeyRotation(e,t){return Ig(this,void 0,void 0,function*(){switch(e){case"masterPassword":return this.keyRotationDialogService.rotateKeys(this.form.value.masterPassword,t);case"keyConnector":return this.keyRotationDialogService.rotateKeysForKeyConnector(t);case"TDE":return this.keyRotationDialogService.rotateKeysForTDE(t)}})}displayLegacyAttachmentWarning(){return Ig(this,void 0,void 0,function*(){(yield this.dialogService.openSimpleDialog({title:{key:"warning"},content:{key:"oldAttachmentsNeedFixDesc"},acceptButtonText:{key:"learnMore"},cancelButtonText:{key:"close"},type:"warning"}))&&this.platformUtilsService.launchUri("https://bitwarden.com/help/attachments/#fixing-old-attachments")})}static open(e){return e.open(Sg)}}Sg.ɵfac=function(e){return new(e||Sg)},Sg.ɵcmp=w.VBU({type:Sg,selectors:[["key-rotation-dialog"]],decls:14,vars:13,consts:[["bit-dialog","",3,"formGroup","bitSubmit"],["bitDialogTitle",""],["bitDialogContent",""],[1,"tw-text-center"],["bitDialogFooter",""],["type","submit","bitButton","","bitFormButton","","buttonType","primary",3,"disabled"],["type","button","bitButton","","bitFormButton","","buttonType","secondary","bitDialogClose",""],["bitTypography","body1"],["type","info"],[1,"tw-mt-2"],["type","password","formControlName","masterPassword","bitInput","","name","masterPassword","required","","appInputVerbatim","",1,"tw-font-mono"],["type","button","bitIconButton","","bitSuffix","","bitPasswordInputToggle",""]],template:function(e,t){1&e&&(w.j41(0,"form",0),w.qex(1,1),w.EFF(2),w.nI1(3,"i18n"),w.bVm(),w.qex(4,2),w.nVh(5,wg,2,0,"div",3)(6,Eg,7,7),w.bVm(),w.qex(7,4),w.j41(8,"button",5),w.EFF(9),w.nI1(10,"i18n"),w.k0s(),w.j41(11,"button",6),w.EFF(12),w.nI1(13,"i18n"),w.k0s(),w.bVm(),w.k0s()),2&e&&(w.Y8G("formGroup",t.form)("bitSubmit",t.submit),w.R7$(2),w.SpI(" ",w.bMT(3,7,"rotateAccountEncryptionKey")," "),w.R7$(3),w.vxM(t.loading()?5:6),w.R7$(3),w.Y8G("disabled",t.loading()),w.R7$(),w.SpI(" ",w.bMT(10,9,"rotateKey")," "),w.R7$(3),w.SpI(" ",w.bMT(13,11,"cancel")," "))},dependencies:[ph.P,yh.I,bh.m,Ch.hJ,Ah.t,fh.Q,Oh.L,Xh.j,Lh.J,Wh.h,Kh.e,Zh.a,a.X1,a.qT,a.me,a.BC,a.cb,a.YS,a.j4,a.JD,vh.C,Ih.$,wh.L,gh.j,ae.G,Yh.s,rp.q,Fp.E,Tp.r,yg.t,ce.$Z],encapsulation:2,changeDetection:0});class Qg{}Qg.ɵfac=function(e){return new(e||Qg)},Qg.ɵmod=w.$C({type:Qg}),Qg.ɵinj=B.G2t({providers:[(0,ce.F)({provide:ch,useClass:class{constructor(e){this.dialogService=e}verifyTrust(e,t){return Vp(this,void 0,void 0,function*(){if(e.length>0||t.length>0){const i=Rp.open(this.dialogService,{numberOfEmergencyAccessUsers:t.length,orgName:e.length>0?e[0].name:void 0});if(!(yield(0,u._)(i.closed)))return{wasTrustDenied:!0,trustedOrganizationPublicKeys:[],trustedEmergencyAccessUserPublicKeys:[]}}for(const t of e){const e=Pp.open(this.dialogService,{name:t.name,orgId:t.organization_id,publicKey:zt.A.fromB64ToArray(t.public_key)});if(!(yield(0,u._)(e.closed)))return{wasTrustDenied:!0,trustedOrganizationPublicKeys:[],trustedEmergencyAccessUserPublicKeys:[]}}for(const e of t){const t=xp.open(this.dialogService,{name:e.name,userId:e.grantee_id,publicKey:zt.A.fromB64ToArray(e.public_key)});if(!(yield(0,u._)(t.closed)))return{wasTrustDenied:!0,trustedOrganizationPublicKeys:[],trustedEmergencyAccessUserPublicKeys:[]}}return{wasTrustDenied:!1,trustedOrganizationPublicKeys:e.map(e=>e.public_key),trustedEmergencyAccessUserPublicKeys:t.map(e=>e.public_key)}})}},deps:[T.o]})]});var kg=i(27485),Rg=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Fg{constructor(e,t,i,n,r,s,o){this.dialogService=e,this.accountService=t,this.syncService=i,this.billingAccountProfileStateService=n,this.platformUtilsService=r,this.router=s,this.dialog=o,this._upgradeConfirmed$=new d.B,this.upgradeConfirmed$=this._upgradeConfirmed$.asObservable(),this.subscriptionPageRoute="settings/subscription/premium"}promptForPremium(e){return Rg(this,void 0,void 0,function*(){const t=yield(0,u._)(this.accountService.activeAccount$);if(!t)return;if(yield(0,u._)(this.billingAccountProfileStateService.hasPremiumFromAnySource$(t.id)))return;if(!e)return void(yield this.promptForPremiumVNext(t));let i=!1,n=null;e?(i=yield this.dialogService.openSimpleDialog({title:{key:"upgradeOrganization"},content:{key:"upgradeOrganizationDesc"},acceptButtonText:{key:"upgradeOrganization"},type:"info"}),i&&(n=["organizations",e,"billing","subscription"])):(i=yield this.dialogService.openSimpleDialog({title:{key:"premiumRequired"},content:{key:"premiumRequiredDesc"},acceptButtonText:{key:"upgrade"},type:"success"}),i&&(n=[this.subscriptionPageRoute])),this._upgradeConfirmed$.next(i),n&&(yield this.router.navigate(n)),i&&this.dialog&&(yield this.dialog.close(dh.rd.PremiumUpgrade))})}promptForPremiumVNext(e){return Rg(this,void 0,void 0,function*(){yield this.platformUtilsService.isSelfHost()?this.redirectToSubscriptionPage():this.openUpgradeDialog(e)})}redirectToSubscriptionPage(){return Rg(this,void 0,void 0,function*(){yield this.router.navigate([this.subscriptionPageRoute]),this.dialog&&(yield this.dialog.close(dh.rd.PremiumUpgrade))})}openUpgradeDialog(e){return Rg(this,void 0,void 0,function*(){const t=kg.gY.open(this.dialogService,{data:{account:e,planSelectionStepTitleOverride:"upgradeYourPlan",hideContinueWithoutUpgradingButton:!0}}),i=yield(0,hh.s)(t.closed);(null==i?void 0:i.status)!==kg.PD.UpgradedToPremium&&(null==i?void 0:i.status)!==kg.PD.UpgradedToFamilies||(yield this.syncService.fullSync(!0))})}}Fg.ɵfac=function(e){return new(e||Fg)(B.KVO(T.o),B.KVO(N.D),B.KVO(mc.H),B.KVO(gr.Q),B.KVO(G.y),B.KVO(R.Ix),B.KVO(mh.ce,8))},Fg.ɵprov=B.jDH({token:Fg,factory:Fg.ɵfac});const Tg="selected",Dg="canceled";class Pg{get isPassword(){return"password"===this.params.type}constructor(e,t,i){this.params=e,this.dialogRef=t,this.i18nService=i,this.titleKey=this.isPassword?"passwordGenerator":"usernameGenerator",this.generatedValue="",this.close=()=>{this.dialogRef.close({action:Dg})},this.selectValue=()=>{this.dialogRef.close({action:Tg,generatedValue:this.generatedValue})},this.onAlgorithmSelected=e=>{this.buttonLabel=e?e.useGeneratedValue:this.i18nService.t("useThisEmail"),this.generatedValue=void 0},this.uri=e.uri}onValueGenerated(e){this.generatedValue=e}static open(e,t){return e.open(Pg,Object.assign({},t))}}Pg.ɵfac=function(e){return new(e||Pg)(w.rXU(Ep.Qs),w.rXU(mh.ce),w.rXU(he.W))},Pg.ɵcmp=w.VBU({type:Pg,selectors:[["web-vault-generator-dialog"]],decls:9,vars:7,consts:[["dialogSize","default","background","alt"],["bitDialogTitle",""],["bitDialogContent",""],["disableMargin","",3,"valueGenerated","algorithmSelected","type","uri"],["bitDialogFooter",""],["type","button","bitButton","","buttonType","primary","data-testid","select-button",3,"click","disabled"]],template:function(e,t){1&e&&(w.j41(0,"bit-dialog",0)(1,"span",1),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.qex(4,2),w.j41(5,"vault-cipher-form-generator",3),w.bIt("valueGenerated",function(e){return t.onValueGenerated(e)})("algorithmSelected",function(e){return t.onAlgorithmSelected(e)}),w.k0s(),w.bVm(),w.qex(6,4),w.j41(7,"button",5),w.bIt("click",function(){return t.selectValue()}),w.EFF(8),w.k0s(),w.bVm(),w.k0s()),2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,5,t.titleKey)," "),w.R7$(3),w.Y8G("type",t.params.type)("uri",t.uri),w.R7$(2),w.Y8G("disabled",!(t.buttonLabel&&t.generatedValue)),w.R7$(),w.SpI(" ",t.buttonLabel," "))},dependencies:[L.MD,dh.Wg,Ah.t,fh.Q,ph.P,bh.m,Ch.hJ,ce.$Z],encapsulation:2});var Mg=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class xg{constructor(){this.dialogService=(0,B.WQX)(T.o)}generatePassword(){return Mg(this,void 0,void 0,function*(){const e=Pg.open(this.dialogService,{data:{type:"password"}}),t=yield(0,u._)(e.closed);return null==t||"canceled"===t.action?null:t.generatedValue})}generateUsername(e){return Mg(this,void 0,void 0,function*(){const t=Pg.open(this.dialogService,{data:{type:"username",uri:e}}),i=yield(0,u._)(t.closed);return null==i||"canceled"===i.action?null:i.generatedValue})}}function Vg(e){return Co(e)}xg.ɵfac=function(e){return new(e||xg)},xg.ɵprov=B.jDH({token:xg,factory:xg.ɵfac});var Gg=i(94249);class Ug{constructor(){this.apiService=(0,B.WQX)(je.G)}postUserKeyUpdate(e){return this.apiService.send("POST","/accounts/key-management/rotate-user-account-keys",e,!0,!1)}}Ug.ɵfac=function(e){return new(e||Ug)},Ug.ɵprov=B.jDH({token:Ug,factory:Ug.ɵfac});var Og=i(45151),Ng=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var jg=i(51971),Yg=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Xg=Object.freeze({InviteAcceptanceRequired:"ssoOrgInviteAcceptanceRequired",OrgMembershipRequired:"ssoOrgMembershipRequired"});class zg extends ne.nF{constructor(e,t,i,n,r,s,o,a,l,c,d,u,h,A){super(r,s,o,a,l),this.organizationInviteService=e,this.logService=t,this.policyService=i,this.routerService=n,this.router=c,this.accountService=d,this.configService=u,this.toastService=h,this.i18nService=A}redirectToSso(e,t,i,n){return Yg(this,void 0,void 0,function*(){yield this.router.navigate(["/sso"],{queryParams:{identifier:n}})})}handleQueryParamErrors(e){return Yg(this,void 0,void 0,function*(){var t;if(!e.organizationName||!e.organizationId||!e.email)return{autoSubmit:!1};switch(e.error){case Xg.InviteAcceptanceRequired:case Xg.OrgMembershipRequired:{const i=yield this.organizationInviteService.getOrganizationInvite();return(null==i?void 0:i.organizationId)===e.organizationId&&(null===(t=null==i?void 0:i.email)||void 0===t?void 0:t.toLowerCase())===e.email.toLowerCase()?{autoSubmit:!0,mpEntryLayoutOverride:{pageTitle:{key:"joinOrganizationName",placeholders:[e.organizationName]},pageSubtitle:{key:"acceptInviteWithMasterPassword"},pageIcon:ie}}:(this.toastService.showToast({variant:"warning",title:null,message:this.i18nService.t("ssoLoginRequiresInviteAcceptance",e.organizationName),timeout:1e4}),{autoSubmit:!1})}default:return{autoSubmit:!1}}})}getOrgPoliciesFromOrgInvite(e){return Yg(this,void 0,void 0,function*(){const t=yield this.organizationInviteService.getOrganizationInvite();if(null==t)return;if(t.email!==e.toLowerCase())return yield this.routerService.getAndClearLoginRedirectUrl(),yield this.organizationInviteService.clearOrganizationInvite(),void this.logService.error(`WebLoginComponentService.getOrgPoliciesFromOrgInvite: Email mismatch. Expected: ${t.email}, Received: ${e}`);const i=yield this.organizationInviteService.getInvitePolicies(t);if(null==i)return;const n=this.policyService.getResetPasswordPolicyOptions(i,t.organizationId);return{policies:i,isPolicyAndAutoEnrollEnabled:n[1]&&n[0].autoEnrollEnabled,enforcedPasswordPolicyOptions:this.policyService.combinePoliciesIntoMasterPasswordPolicyOptions(i)}})}}zg.ɵfac=function(e){return new(e||zg)(B.KVO(ge),B.KVO(se.K),B.KVO(Je.N),B.KVO(jg.H),B.KVO(hs.R),B.KVO(yo.v),B.KVO(_u.JJ),B.KVO(G.y),B.KVO(ui._),B.KVO(R.Ix),B.KVO(N.D),B.KVO(O.w),B.KVO(F.f),B.KVO(he.W))},zg.ɵprov=B.jDH({token:zg,factory:zg.ɵfac});var Lg=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Wg extends ne.dl{constructor(e,t,i){super(e),this.messagingService=e,this.routerService=t,this.organizationInviteService=i}handleCreateUserSuccess(){return Lg(this,void 0,void 0,function*(){try{yield this.routerService.getAndClearLoginRedirectUrl(),yield this.organizationInviteService.clearOrganizationInvite()}catch(e){throw new Error(e)}})}}class Kg{constructor(e,t,i){this.id=e,this.encryptedPublicKey=t,this.encryptedUserKey=i}static fromRotateableKeyset(e,t){return new Kg(e,t.encryptedPublicKey,t.encryptedPrivateKey)}}class Zg{constructor(e,t){this.options=e,this.token=t}}class Hg{constructor(e,t,i){this.createOptions=e,this.deviceResponse=t,this.supportsPrf=i}}class Jg{constructor(e,t,i){this.id=e,this.name=t,this.prfStatus=i}}class qg{}class $g{}class _g{constructor(e){this.id=e.id,this.rawId=zt.A.fromBufferToB64(e.rawId),this.type=e.type,this.extensions={}}}class ev extends _g{constructor(e){if(super(e),!(e.response instanceof AuthenticatorAttestationResponse))throw new Error("Invalid authenticator response");this.response={attestationObject:zt.A.fromBufferToUrlB64(e.response.attestationObject),clientDataJson:zt.A.fromBufferToUrlB64(e.response.clientDataJSON)}}}var tv,iv=i(73556);class nv extends st.r{constructor(e){super(e),this.options=new iv.Jq(this.getResponseProperty("options")),this.token=this.getResponseProperty("token")}}!function(e){e[e.Enabled=0]="Enabled",e[e.Supported=1]="Supported",e[e.Unsupported=2]="Unsupported"}(tv||(tv={}));class rv extends st.r{constructor(e){super(e),this.id=this.getResponseProperty("Id"),this.name=this.getResponseProperty("Name"),this.prfStatus=this.getResponseProperty("PrfStatus"),this.encryptedPublicKey=this.getResponseProperty("EncryptedPublicKey"),this.encryptedUserKey=this.getResponseProperty("EncryptedUserKey")}getRotateableKeyset(){if(!fn.k.isSerializedEncString(this.encryptedUserKey))throw new Error("Invalid encrypted user key");if(!fn.k.isSerializedEncString(this.encryptedPublicKey))throw new Error("Invalid encrypted public key");return new yn(new fn.k(this.encryptedUserKey),new fn.k(this.encryptedPublicKey))}hasPrfKeyset(){return this.prfStatus===tv.Enabled}}var sv=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class ov{constructor(e){this.apiService=e}getCredentialCreateOptions(e){return sv(this,void 0,void 0,function*(){const t=yield this.apiService.send("POST","/webauthn/attestation-options",e,!0,!0);return new nv(t)})}getCredentialAssertionOptions(e){return sv(this,void 0,void 0,function*(){const t=yield this.apiService.send("POST","/webauthn/assertion-options",e,!0,!0);return new er(t)})}saveCredential(e){return sv(this,void 0,void 0,function*(){return yield this.apiService.send("POST","/webauthn",e,!0,!0),!0})}getCredentials(){return sv(this,void 0,void 0,function*(){const e=yield this.apiService.send("GET","/webauthn",null,!0,!0);return new yt.s(e,rv)})}deleteCredential(e,t){return sv(this,void 0,void 0,function*(){yield this.apiService.send("POST",`/webauthn/${e}/delete`,t,!0,!0)})}updateCredential(e){return sv(this,void 0,void 0,function*(){yield this.apiService.send("PUT","/webauthn",e,!0,!0)})}}ov.ɵfac=function(e){return new(e||ov)(B.KVO(je.G))},ov.ɵprov=B.jDH({token:ov,factory:ov.ɵfac,providedIn:"root"});var av=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class lv{constructor(e,t,i,n,r,s,o){this.apiService=e,this.userVerificationService=t,this.rotateableKeySetService=i,this.webAuthnLoginPrfKeyService=n,this.keyService=r,this.logService=o,this._refresh$=new Tt.t(void 0),this._loading$=new Tt.t(!0),this.credentials$=this._refresh$.pipe((0,P.M)(()=>this._loading$.next(!0)),(0,jt.n)(()=>this.fetchCredentials$()),(0,P.M)(()=>this._loading$.next(!1)),(0,Gr.t)({bufferSize:1,refCount:!0})),this.loading$=this._loading$.asObservable(),this.navigatorCredentials=null!=s?s:navigator.credentials}getCredentialAssertOptions(e){return av(this,void 0,void 0,function*(){const t=yield this.userVerificationService.buildRequest(e),i=yield this.apiService.getCredentialAssertionOptions(t);return new nr(i.options,i.token)})}getCredentialAttestationOptions(e){return av(this,void 0,void 0,function*(){const t=yield this.userVerificationService.buildRequest(e),i=yield this.apiService.getCredentialCreateOptions(t);return new Zg(i.options,i.token)})}createCredential(e){return av(this,void 0,void 0,function*(){var t,i;const n={publicKey:e.options};n.publicKey.extensions={prf:{}};try{const i=yield this.navigatorCredentials.create(n);if(!(i instanceof PublicKeyCredential))return;const r=Boolean(null===(t=i.getClientExtensionResults().prf)||void 0===t?void 0:t.enabled);return new Hg(e,i,r)}catch(r){return void(null===(i=this.logService)||void 0===i||i.error(r))}})}createKeySet(e,t){return av(this,void 0,void 0,function*(){var i,n,r;const s={publicKey:{challenge:e.createOptions.options.challenge,allowCredentials:[{id:e.deviceResponse.rawId,type:"public-key"}],rpId:e.createOptions.options.rp.id,timeout:e.createOptions.options.timeout,userVerification:e.createOptions.options.authenticatorSelection.userVerification,extensions:{prf:{eval:{first:yield this.webAuthnLoginPrfKeyService.getLoginWithPrfSalt()}}}}};try{const e=yield this.navigatorCredentials.get(s);if(!(e instanceof PublicKeyCredential))return;const r=null===(n=null===(i=e.getClientExtensionResults().prf)||void 0===i?void 0:i.results)||void 0===n?void 0:n.first;if(void 0===r)return;const o=yield this.webAuthnLoginPrfKeyService.createSymmetricKeyFromPrf(r),a=yield(0,u._)(this.keyService.userKey$(t));return yield this.rotateableKeySetService.createKeySet(o,a)}catch(o){return void(null===(r=this.logService)||void 0===r||r.error(o))}})}saveCredential(e,t,i){return av(this,void 0,void 0,function*(){const n=new $g;n.deviceResponse=new ev(t.deviceResponse),n.token=t.createOptions.token,n.name=e,n.supportsPrf=t.supportsPrf,n.encryptedUserKey=null==i?void 0:i.encapsulatedDownstreamKey.encryptedString,n.encryptedPublicKey=null==i?void 0:i.encryptedPublicKey.encryptedString,n.encryptedPrivateKey=null==i?void 0:i.encryptedPrivateKey.encryptedString,yield this.apiService.saveCredential(n),this.refresh()})}enableCredentialEncryption(e,t){return av(this,void 0,void 0,function*(){if(void 0===e||void 0===(null==e?void 0:e.prfKey))throw new Error("invalid credential");if(!t)throw new Error("userId is required");const i=yield(0,u._)(this.keyService.userKey$(t)),n=yield this.rotateableKeySetService.createKeySet(e.prfKey,i),r=new qg;r.token=e.token,r.deviceResponse=e.deviceResponse,r.encryptedUserKey=n.encapsulatedDownstreamKey.encryptedString,r.encryptedPublicKey=n.encryptedPublicKey.encryptedString,r.encryptedPrivateKey=n.encryptedPrivateKey.encryptedString,yield this.apiService.updateCredential(r),this.refresh()})}getCredentials$(){return this.credentials$}getCredential$(e){return this.credentials$.pipe((0,p.T)(t=>t.find(t=>t.id===e)),(0,h.p)(e=>void 0!==e))}deleteCredential(e,t){return av(this,void 0,void 0,function*(){const i=yield this.userVerificationService.buildRequest(t);yield this.apiService.deleteCredential(e,i),this.refresh()})}fetchCredentials$(){return(0,Si.H)(this.apiService.getCredentials()).pipe((0,p.T)(e=>e.data.map(e=>new Jg(e.id,e.name,e.prfStatus))))}refresh(){this._refresh$.next()}getRotatedData(e,t,i){return av(this,void 0,void 0,function*(){if(!e)throw new Error("oldUserKey is required");if(!t)throw new Error("newUserKey is required");return Promise.all((yield this.apiService.getCredentials()).data.filter(e=>e.hasPrfKeyset()).map(i=>av(this,void 0,void 0,function*(){const n=i.getRotateableKeyset(),r=yield this.rotateableKeySetService.rotateKeySet(n,e,t);return new Kg(i.id,r.encryptedPublicKey,r.encapsulatedDownstreamKey)})))})}}lv.MaxCredentialCount=5,lv.ɵfac=function(e){return new(e||lv)(B.KVO(ov),B.KVO(Ai.i),B.KVO(no),B.KVO(gi),B.KVO(I.Lu),B.KVO(CredentialsContainer,8),B.KVO(se.K,8))},lv.ɵprov=B.jDH({token:lv,factory:lv.ɵfac,providedIn:"root"});var cv=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var dv=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class uv extends ne.v2{constructor(e,t,i,n,r,s,o){super(e,t,i,n,r),this.keyService=e,this.accountApiService=t,this.masterPasswordService=i,this.configService=n,this.sdkService=r,this.organizationInviteService=s,this.policyService=o}getOrgNameFromOrgInvite(){return dv(this,void 0,void 0,function*(){const e=yield this.organizationInviteService.getOrganizationInvite();return null==e?null:e.organizationName})}getMasterPasswordPolicyOptsFromOrgInvite(){return dv(this,void 0,void 0,function*(){const e=yield this.organizationInviteService.getOrganizationInvite();if(null==e)return null;const t=yield this.organizationInviteService.getInvitePolicies(e);if(null==t)return null;return yield(0,u._)(this.policyService.masterPasswordPolicyOptions$(null,t))})}buildSdkRegisterRequest(e,t,i,n,r,s,o,a,l,c){const d=Object.create(null,{buildSdkRegisterRequest:{get:()=>super.buildSdkRegisterRequest},toOptionalSdkUserId:{get:()=>super.toOptionalSdkUserId}});return dv(this,void 0,void 0,function*(){const u=yield d.buildSdkRegisterRequest.call(this,e,t,i,n,r),h=yield this.organizationInviteService.getOrganizationInvite();if(null!=h&&(u.organization_user_id=this.toOptionalSdkOrganizationId(h.organizationUserId),u.org_invite_token=h.token),s&&(u.org_sponsored_free_family_plan_token=s),o&&a&&(u.accept_emergency_access_invite_token=o,u.accept_emergency_access_id=d.toOptionalSdkUserId.call(this,a)),l&&c&&(u.provider_invite_token=l,u.provider_user_id=d.toOptionalSdkUserId.call(this,c)),r&&(u.org_invite_token||u.org_sponsored_free_family_plan_token||u.accept_emergency_access_invite_token||u.provider_invite_token))throw new Error("emailVerificationToken and alternative invite token simultaneously detected. Could not finish registration.");return u})}buildRegisterRequest(e,t,i,n,r,s,o,a,l,c){const d=Object.create(null,{buildRegisterRequest:{get:()=>super.buildRegisterRequest}});return dv(this,void 0,void 0,function*(){const u=yield d.buildRegisterRequest.call(this,e,t,i,n,r),h=yield this.organizationInviteService.getOrganizationInvite();if(null!=h&&(u.organizationUserId=h.organizationUserId,u.orgInviteToken=h.token),s&&(u.orgSponsoredFreeFamilyPlanToken=s),o&&a&&(u.acceptEmergencyAccessInviteToken=o,u.acceptEmergencyAccessId=a),l&&c&&(u.providerInviteToken=l,u.providerUserId=c),r&&(u.orgInviteToken||u.orgSponsoredFreeFamilyPlanToken||u.acceptEmergencyAccessInviteToken||u.providerInviteToken))throw new Error("emailVerificationToken and alternative invite token simultaneously detected. Could not finish registration.");return u})}}var hv=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var Av=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class pv{constructor(e,t,i,n,r,s){this.ssoLoginService=e,this.apiService=t,this.cryptoFunctionService=i,this.environmentService=n,this.passwordGenerationService=r,this.platformUtilsService=s}linkSso(e){return Av(this,void 0,void 0,function*(){if(null==e||""===e)throw new Error("SSO identifier is required");const t=window.location.origin+"/sso-connector.html",i=yield this.apiService.preValidateSso(e),n={type:"password",length:64,uppercase:!0,lowercase:!0,number:!0,special:!1},r=yield this.passwordGenerationService.generatePassword(n),s=yield this.cryptoFunctionService.hash(r,"sha256"),o=zt.A.fromArrayToUrlB64(s);yield this.ssoLoginService.setCodeVerifier(r);let a=yield this.passwordGenerationService.generatePassword(n);a+="_returnUri='/settings/organizations'",a+=`_identifier=${e}`,yield this.ssoLoginService.setSsoState(a);let l=(yield(0,u._)(this.environmentService.environment$)).getIdentityUrl()+"/connect/authorize?client_id=web&redirect_uri="+encodeURIComponent(t)+"&response_type=code&scope=api offline_access&state="+a+"&code_challenge="+o+"&code_challenge_method=S256&response_mode=query&domain_hint="+encodeURIComponent(e)+"&ssoToken="+encodeURIComponent(i.token);const c=yield this.apiService.getSsoUserIdentifier();l+=`&user_identifier=${encodeURIComponent(c)}`,this.platformUtilsService.launchUri(l,{sameWindow:!0})})}}var gv=i(9413),vv=i(80755);class mv{constructor(e,t){this.securityState=e,this.securityVersion=t}}class fv{constructor(e,t,i){this.wrappedPrivateKey=e,this.publicKey=zt.A.fromBufferToB64(t),this.signedPublicKey=i}}class yv{constructor(e,t,i){this.signatureAlgorithm=i,this.wrappedSigningKey=e,this.verifyingKey=t}}var bv=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Cv{constructor(){this.userKeyEncryptedAccountPrivateKey=null,this.accountPublicKey=null,this.publicKeyEncryptionKeyPair=null,this.signatureKeyPair=null,this.securityState=null}static fromV1CryptographicState(e){const t=new Cv;return t.userKeyEncryptedAccountPrivateKey=e.publicKeyEncryptionKeyPair.wrappedPrivateKey,t.accountPublicKey=zt.A.fromBufferToB64(e.publicKeyEncryptionKeyPair.publicKey),t.publicKeyEncryptionKeyPair=new fv(e.publicKeyEncryptionKeyPair.wrappedPrivateKey,e.publicKeyEncryptionKeyPair.publicKey,null),t}static fromV2CryptographicState(e){return bv(this,void 0,void 0,function*(){yield gs.B.Ready;const t=new Cv;return t.userKeyEncryptedAccountPrivateKey=e.publicKeyEncryptionKeyPair.wrappedPrivateKey,t.accountPublicKey=zt.A.fromBufferToB64(e.publicKeyEncryptionKeyPair.publicKey),t.publicKeyEncryptionKeyPair=new fv(e.publicKeyEncryptionKeyPair.wrappedPrivateKey,e.publicKeyEncryptionKeyPair.publicKey,e.publicKeyEncryptionKeyPair.signedPublicKey),t.signatureKeyPair=new yv(e.signatureKeyPair.wrappedSigningKey,e.signatureKeyPair.verifyingKey,ps.PureCrypto.key_algorithm_for_verifying_key(zt.A.fromB64ToArray(e.signatureKeyPair.verifyingKey))),t.securityState=new mv(e.securityState.securityState,e.securityState.securityStateVersion),t})}}class Iv{constructor(e,t,i,n,r){this.kdfType=I.ao.PBKDF2_SHA256,this.kdfIterations=0,this.kdfType=e.kdfType,this.kdfIterations=e.iterations,e.kdfType===I.ao.Argon2id&&(this.kdfMemory=e.memory,this.kdfParallelism=e.parallelism),this.email=t,this.masterKeyAuthenticationHash=i,this.masterKeyEncryptedUserKey=n,this.masterPasswordHint=r}}class wv{constructor(e,t,i,n){this.accountUnlockData=e,this.accountKeys=t,this.accountData=i,this.oldMasterKeyAuthenticationHash=n}}class Bv{constructor(e,t,i,n,r){this.masterPasswordUnlockData=e,this.emergencyAccessUnlockData=t,this.organizationAccountRecoveryUnlockData=i,this.passkeyUnlockData=n,this.deviceKeyUnlockData=r}}class Ev{constructor(e,t,i){this.ciphers=e,this.folders=t,this.sends=i}}function Sv(e){return{userKey:Mn.e.fromString(e.userKey),publicKeyEncryptionKeyPair:{wrappedPrivateKey:e.privateKey,publicKey:zt.A.fromB64ToArray(e.publicKey),signedPublicKey:e.signedPublicKey},signatureKeyPair:{wrappedSigningKey:e.signingKey,verifyingKey:e.verifyingKey},securityState:{securityState:e.securityState,securityStateVersion:e.securityVersion}}}var Qv=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class kv{constructor(){}get_access_token(){return Qv(this,void 0,void 0,function*(){})}}class Rv{constructor(e,t,i,n,r,s,o,a,l,c,d,u,h,A,p,g,v,m,f,y,b,C,I){this.apiService=e,this.cipherService=t,this.folderService=i,this.sendService=n,this.emergencyAccessService=r,this.resetPasswordService=s,this.deviceTrustService=o,this.keyService=a,this.encryptService=l,this.syncService=c,this.webauthnLoginAdminService=d,this.logService=u,this.logoutService=h,this.toastService=A,this.i18nService=p,this.dialogService=g,this.configService=v,this.cryptoFunctionService=m,this.kdfConfigService=f,this.sdkClientFactory=y,this.securityStateService=b,this.masterPasswordService=C,this.sdkUserKeyRotationService=I}rotateUserKeyMasterPasswordAndEncryptedData(e,t,i,n){return Qv(this,void 0,void 0,function*(){if(yield this.configService.getFeatureFlag(Kr.TO.SdkKeyRotation)){this.logService.info("[UserKey Rotation] Using SDK-based key rotation service from user-crypto-management");return void((yield this.sdkUserKeyRotationService.changePasswordAndRotateUserKey(e,t,n,(0,na.WD)(i.id)))&&(this.toastService.showToast({variant:"success",title:this.i18nService.t("rotationCompletedTitle"),message:this.i18nService.t("rotationCompletedDesc"),timeout:15e3}),yield this.logoutService.logout(i.id)))}yield gs.B.Ready;const r=yield this.configService.getFeatureFlag(Kr.TO.EnrollAeadOnKeyRotation);this.logService.info("[UserKey Rotation] Starting user key rotation..."),yield this.ensureIsAllowedToRotateUserKey();const{wasTrustDenied:s,trustedOrganizationPublicKeys:o,trustedEmergencyAccessUserPublicKeys:a}=yield this.verifyTrust(i);if(s)return void this.logService.info("[Userkey rotation] Trust was denied by user. Aborting!");const{masterKeyKdfConfig:l,masterKeySalt:c,cryptographicStateParameters:d}=yield this.getCryptographicStateForUser(i),{userKey:u,accountKeysRequest:h}=yield this.getRotatedAccountKeysFlagged(i.id,l,c,d,r),A=new wv(yield this.getAccountUnlockDataRequest(i.id,d.userKey,u,{masterPassword:t,masterKeyKdfConfig:l,masterKeySalt:c,masterPasswordHint:n},a,o),h,yield this.getAccountDataRequest(d.userKey,u,i),yield this.makeServerMasterKeyAuthenticationHash(e,l,c));this.logService.info("[Userkey rotation] Posting user key rotation request to server"),yield this.apiService.postUserKeyUpdate(A),this.logService.info("[Userkey rotation] Userkey rotation request posted to server"),this.toastService.showToast({variant:"success",title:this.i18nService.t("rotationCompletedTitle"),message:this.i18nService.t("rotationCompletedDesc"),timeout:15e3}),yield this.logoutService.logout(i.id)})}ensureIsAllowedToRotateUserKey(){return Qv(this,void 0,void 0,function*(){if(null===(yield this.syncService.getLastSync()))throw this.logService.info("[Userkey rotation] Client was never synced. Aborting!"),new Error("The local vault is de-synced and the keys cannot be rotated. Please log out and log back in to resolve this issue.")})}getRotatedAccountKeysFlagged(e,t,i,n,r){return Qv(this,void 0,void 0,function*(){if(r||2===n.version){const r=yield this.getNewAccountKeysV2(e,t,i,n);return{userKey:r.userKey,accountKeysRequest:yield Cv.fromV2CryptographicState(r)}}{const e=yield this.getNewAccountKeysV1(n);return{userKey:e.userKey,accountKeysRequest:Cv.fromV1CryptographicState(e)}}})}getNewAccountKeysV1(e){return Qv(this,void 0,void 0,function*(){const t=new Mn.e(ps.PureCrypto.make_user_key_aes256_cbc_hmac()),i=yield this.encryptService.unwrapDecapsulationKey(new fn.k(e.publicKeyEncryptionKeyPair.wrappedPrivateKey),e.userKey);return{userKey:t,publicKeyEncryptionKeyPair:{wrappedPrivateKey:(yield this.encryptService.wrapDecapsulationKey(i,t)).encryptedString,publicKey:yield this.cryptoFunctionService.rsaExtractPublicKey(i)}}})}getNewAccountKeysV2(e,t,i,n){return Qv(this,void 0,void 0,function*(){return 1===n.version?this.upgradeV1UserToV2UserAccountKeys(e,t,i,n):this.rotateV2UserAccountKeys(e,t,i,n)})}upgradeV1UserToV2UserAccountKeys(e,t,i,n){return Qv(this,void 0,void 0,function*(){const r=yield this.sdkClientFactory.createSdkClient(new kv);return yield r.crypto().initialize_user_crypto({userId:(0,na.WD)(e),kdfParams:t.toSdkConfig(),email:i,accountCryptographicState:{V1:{private_key:n.publicKeyEncryptionKeyPair.wrappedPrivateKey}},method:{decryptedKey:{decrypted_user_key:n.userKey.toBase64()}}}),Sv(r.crypto().make_keys_for_user_crypto_v2())})}rotateV2UserAccountKeys(e,t,i,n){return Qv(this,void 0,void 0,function*(){const r=yield this.sdkClientFactory.createSdkClient(new kv);return yield r.crypto().initialize_user_crypto({userId:(0,na.WD)(e),kdfParams:t.toSdkConfig(),email:i,accountCryptographicState:{V2:{private_key:n.publicKeyEncryptionKeyPair.wrappedPrivateKey,signing_key:n.signingKey,security_state:n.securityState,signed_public_key:n.publicKeyEncryptionKeyPair.signedPublicKey}},method:{decryptedKey:{decrypted_user_key:n.userKey.toBase64()}}}),Sv(r.crypto().get_v2_rotated_account_keys())})}createMasterPasswordUnlockDataRequest(e,t){return Qv(this,void 0,void 0,function*(){const i=new fn.k(ps.PureCrypto.encrypt_user_key_with_master_password(e.toEncoded(),t.masterPassword,t.masterKeySalt,t.masterKeyKdfConfig.toSdkConfig())),n=yield this.makeServerMasterKeyAuthenticationHash(t.masterPassword,t.masterKeyKdfConfig,t.masterKeySalt);return new Iv(t.masterKeyKdfConfig,t.masterKeySalt,n,i.encryptedString,t.masterPasswordHint)})}getAccountUnlockDataRequest(e,t,i,n,r,s){return Qv(this,void 0,void 0,function*(){let o;this.isUserWithMasterPassword(e)&&(o=yield this.createMasterPasswordUnlockDataRequest(i,n));const a=yield this.webauthnLoginAdminService.getRotatedData(t,i,e),l=yield this.deviceTrustService.getRotatedData(t,i,e),c=yield this.emergencyAccessService.getRotatedData(i,r,e),d=yield this.resetPasswordService.getRotatedData(i,s,e);return new Bv(o,c,d,a,l)})}verifyTrust(e){return Qv(this,void 0,void 0,function*(){this.logService.info("[Userkey rotation] Verifying trust...");const t=yield this.emergencyAccessService.getPublicKeys(),i=yield this.resetPasswordService.getPublicKeys(e.id);if(i.length>0||t.length>0){const e=Rp.open(this.dialogService,{numberOfEmergencyAccessUsers:t.length,orgName:i.length>0?i[0].orgName:void 0});if(!(yield(0,u._)(e.closed)))return{wasTrustDenied:!0,trustedOrganizationPublicKeys:[],trustedEmergencyAccessUserPublicKeys:[]}}for(const e of i){const t=Pp.open(this.dialogService,{name:e.orgName,orgId:e.orgId,publicKey:e.publicKey});if(!(yield(0,u._)(t.closed)))return{wasTrustDenied:!0,trustedOrganizationPublicKeys:[],trustedEmergencyAccessUserPublicKeys:[]}}for(const e of t){const t=xp.open(this.dialogService,{name:e.name,userId:e.granteeId,publicKey:e.publicKey});if(!(yield(0,u._)(t.closed)))return{wasTrustDenied:!0,trustedOrganizationPublicKeys:[],trustedEmergencyAccessUserPublicKeys:[]}}return this.logService.info("[Userkey rotation] Trust verified for all organizations and emergency access users"),{wasTrustDenied:!1,trustedOrganizationPublicKeys:i.map(e=>e.publicKey),trustedEmergencyAccessUserPublicKeys:t.map(e=>e.publicKey)}})}getAccountDataRequest(e,t,i){return Qv(this,void 0,void 0,function*(){const n=yield this.cipherService.getRotatedData(e,t,i.id),r=yield this.folderService.getRotatedData(e,t,i.id),s=yield this.sendService.getRotatedData(e,t,i.id);if(null==n||null==r||null==s)throw this.logService.info("[Userkey rotation] ciphers, folders, or sends are null. Aborting!"),new Error("ciphers, folders, or sends are null");return new Ev(n,r,s)})}isV1User(e){return e.inner().type===Pn.Qd.AesCbc256_HmacSha256_B64}isUserWithMasterPassword(e){return!0}makeServerMasterKeyAuthenticationHash(e,t,i){return Qv(this,void 0,void 0,function*(){const n=yield this.keyService.makeMasterKey(e,i,t);return this.keyService.hashMasterKey(e,n)})}getCryptographicStateForUser(e){return Qv(this,void 0,void 0,function*(){const t=yield this.firstValueFromOrThrow(this.kdfConfigService.getKdfConfig$(e.id),"KDF config"),i=yield this.firstValueFromOrThrow(this.masterPasswordService.saltForUser$(e.id),"Master key salt"),n=yield this.firstValueFromOrThrow(this.keyService.userKey$(e.id),"User key"),r=new fn.k(yield this.firstValueFromOrThrow(this.keyService.userEncryptedPrivateKey$(e.id),"Private key")).encryptedString,s=yield this.cryptoFunctionService.rsaExtractPublicKey(yield this.encryptService.unwrapDecapsulationKey(new fn.k(r),n));if(this.isV1User(n))return{masterKeyKdfConfig:t,masterKeySalt:i,cryptographicStateParameters:{version:1,userKey:n,publicKeyEncryptionKeyPair:{wrappedPrivateKey:r,publicKey:s}}};if(n.inner().type===Pn.Qd.CoseEncrypt0){const o=yield this.firstValueFromOrThrow(this.keyService.userSigningKey$(e.id),"User signing key"),a=yield this.firstValueFromOrThrow(this.securityStateService.accountSecurityState$(e.id),"User security state");return{masterKeyKdfConfig:t,masterKeySalt:i,cryptographicStateParameters:{version:2,userKey:n,publicKeyEncryptionKeyPair:{wrappedPrivateKey:r,publicKey:s,signedPublicKey:yield this.firstValueFromOrThrow(this.keyService.userSignedPublicKey$(e.id),"User signed public key")},signingKey:o,securityState:a}}}throw new Error(`Unsupported user key type: ${n.inner().type}. Expected AesCbc256_HmacSha256_B64 or XChaCha20_Poly1305_B64.`)})}firstValueFromOrThrow(e,t){return Qv(this,void 0,void 0,function*(){const i=yield(0,u._)(e);if(null==i)throw new Error(`Failed to get ${t}`);return i})}}Rv.ɵfac=function(e){return new(e||Rv)(B.KVO(Ug),B.KVO(Q.p),B.KVO(S.k),B.KVO(Sd),B.KVO(vv.p),B.KVO(Og.w),B.KVO(Is.M),B.KVO(I.Lu),B.KVO(As.N),B.KVO(Gp.H),B.KVO(lv),B.KVO(se.K),B.KVO(g.k4),B.KVO(F.f),B.KVO(he.W),B.KVO(T.o),B.KVO(O.w),B.KVO(hs.R),B.KVO(I.zZ),B.KVO(ia),B.KVO(Xo.p),B.KVO(Ae.L),B.KVO(lh))},Rv.ɵprov=B.jDH({token:Rv,factory:Rv.ɵfac,providedIn:"root"});class Fv{}Fv.ɵfac=function(e){return new(e||Fv)},Fv.ɵmod=w.$C({type:Fv}),Fv.ɵinj=B.G2t({providers:[Rv,Ug]});var Tv=i(25065),Dv=i(57768),Pv=i(50866);class Mv{}Mv.ɵfac=function(e){return new(e||Mv)},Mv.ɵmod=w.$C({type:Mv}),Mv.ɵinj=B.G2t({imports:[Dv.G,a.YN,a.X1,Pv.R6,Jp.q]});class xv{}xv.ɵfac=function(e){return new(e||xv)},xv.ɵmod=w.$C({type:xv}),xv.ɵinj=B.G2t({imports:[Tv.G,Mv,gv.S,ne.Rz,Fv]});class Vv{}Vv.ɵfac=function(e){return new(e||Vv)},Vv.ɵmod=w.$C({type:Vv}),Vv.ɵinj=B.G2t({imports:[xv,xv]});class Gv extends ne.FX{constructor(e){super(),this.i18nService=e}setDocumentCookies(){document.cookie=`ssoHandOffMessage=${this.i18nService.t("ssoHandOff")};SameSite=strict`}}Gv.ɵfac=function(e){return new(e||Gv)(B.KVO(he.W))},Gv.ɵprov=B.jDH({token:Gv,factory:Gv.ɵfac});var Uv=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Ov=new b.Ok(b.g,"premiumInterest",{deserializer:e=>e,clearOn:["lock","logout"]});class Nv{constructor(e){this.stateProvider=e}getPremiumInterest(e){return Uv(this,void 0,void 0,function*(){if(!e)throw new Error("UserId is required. Cannot get 'premiumInterest'.");return yield(0,u._)(this.stateProvider.getUserState$(Ov,e))})}setPremiumInterest(e,t){return Uv(this,void 0,void 0,function*(){if(!e)throw new Error("UserId is required. Cannot set 'premiumInterest'.");yield this.stateProvider.setUserState(Ov,t,e)})}clearPremiumInterest(e){return Uv(this,void 0,void 0,function*(){if(!e)throw new Error("UserId is required. Cannot clear 'premiumInterest'.");yield this.stateProvider.setUserState(Ov,null,e)})}}Nv.ɵfac=function(e){return new(e||Nv)(B.KVO(b.v2))},Nv.ɵprov=B.jDH({token:Nv,factory:Nv.ɵfac});var jv=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Yv{get defaultOptions(){return{htmlStorageLocation:Pn.EO.Session}}get valuesRequireDeserialization(){return!0}constructor(){this.updatesSubject=new d.B,this.updates$=this.updatesSubject.asObservable()}get(e,t=this.defaultOptions){let i=null;switch(t.htmlStorageLocation){case Pn.EO.Local:i=window.localStorage.getItem(e);break;case Pn.EO.Session:default:i=window.sessionStorage.getItem(e)}if(null!=i){const e=JSON.parse(i);return Promise.resolve(e)}return Promise.resolve(null)}has(e){return jv(this,arguments,void 0,function*(e,t=this.defaultOptions){return null!=(yield this.get(e,t))})}save(e,t,i=this.defaultOptions){if(null==t)return this.remove(e,i);t instanceof Set&&(t=Array.from(t));const n=JSON.stringify(t);switch(i.htmlStorageLocation){case Pn.EO.Local:window.localStorage.setItem(e,n);break;case Pn.EO.Session:default:window.sessionStorage.setItem(e,n)}return this.updatesSubject.next({key:e,updateType:"save"}),Promise.resolve()}remove(e,t=this.defaultOptions){switch(t.htmlStorageLocation){case Pn.EO.Local:window.localStorage.removeItem(e);break;case Pn.EO.Session:default:window.sessionStorage.removeItem(e)}return this.updatesSubject.next({key:e,updateType:"remove"}),Promise.resolve()}}Yv.ɵfac=function(e){return new(e||Yv)},Yv.ɵprov=B.jDH({token:Yv,factory:Yv.ɵfac});var Xv=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class zv{constructor(e,t,i){this.systemLanguage=e,this.localesDirectory=t,this.getLocalesJson=i,this.supportedTranslationLocales=["en"],this.defaultLocale="en",this.localeNames=new Map([["af","Afrikaans"],["ar","العربية الفصحى"],["az","Azərbaycanca"],["be","Беларуская"],["bg","български"],["bn","বাংলা"],["bs","bosanski jezik"],["ca","català"],["cs","čeština"],["cy","Cymraeg, y Gymraeg"],["da","dansk"],["de","Deutsch"],["el","Ελληνικά"],["en","English"],["en-GB","English (British)"],["en-IN","English (India)"],["eo","Esperanto"],["es","español"],["et","eesti"],["eu","euskara"],["fa","فارسی"],["fi","suomi"],["fil","Wikang Filipino"],["fr","français"],["gl","galego"],["he","עברית"],["hi","हिन्दी"],["hr","hrvatski"],["hu","magyar"],["id","Bahasa Indonesia"],["it","italiano"],["ja","日本語"],["ka","ქართული"],["km","ខ្មែរ, ខេមរភាសា, ភាសាខ្មែរ"],["kn","ಕನ್ನಡ"],["ko","한국어"],["lt","lietuvių kalba"],["lv","Latvietis"],["me","црногорски"],["ml","മലയാളം"],["mr","मराठी"],["my","ဗမာစကား"],["nb","norsk (bokmål)"],["ne","नेपाली"],["nl","Nederlands"],["nn","Norsk Nynorsk"],["or","ଓଡ଼ିଆ"],["pl","polski"],["pt-BR","português do Brasil"],["pt-PT","português"],["ro","română"],["ru","русский"],["si","සිංහල"],["sk","slovenčina"],["sl","Slovenski jezik, Slovenščina"],["sr","Српски"],["sv","svenska"],["ta","தமிழ்"],["te","తెలుగు"],["th","ไทย"],["tr","Türkçe"],["uk","українська"],["vi","Tiếng Việt"],["zh-CN","中文(中国大陆)"],["zh-TW","中文(台灣)"]]),this.defaultMessages={},this.localeMessages={},this.systemLanguage=e.replace("_","-")}init(e){return Xv(this,void 0,void 0,function*(){if(this.inited)throw new Error("i18n already initialized.");if(null==this.supportedTranslationLocales||0===this.supportedTranslationLocales.length)throw new Error("supportedTranslationLocales not set.");this.inited=!0,this.translationLocale=null!=e?e:this.systemLanguage;try{this.collator=new Intl.Collator(this.translationLocale,{numeric:!0,sensitivity:"base"})}catch(t){this.collator=null}-1===this.supportedTranslationLocales.indexOf(this.translationLocale)&&(this.translationLocale=this.translationLocale.slice(0,2),-1===this.supportedTranslationLocales.indexOf(this.translationLocale)&&(this.translationLocale=this.defaultLocale)),null!=this.localesDirectory&&(yield this.loadMessages(this.translationLocale,this.localeMessages),this.translationLocale!==this.defaultLocale&&(yield this.loadMessages(this.defaultLocale,this.defaultMessages)))})}t(e,t,i,n){return this.translate(e,t,i,n)}translate(e,t,i,n){let r;return r=this.localeMessages.hasOwnProperty(e)&&this.localeMessages[e]?this.localeMessages[e]:this.defaultMessages.hasOwnProperty(e)&&this.defaultMessages[e]?this.defaultMessages[e]:"",""!==r&&(null!=t&&(r=r.split("__$1__").join(t.toString())),null!=i&&(r=r.split("__$2__").join(i.toString())),null!=n&&(r=r.split("__$3__").join(n.toString()))),r}loadMessages(e,t){return Xv(this,void 0,void 0,function*(){const i=e.replace("-","_"),n=yield this.getLocalesJson(i);for(const e in n)if(n.hasOwnProperty(e)&&(t[e]=n[e].message,n[e].placeholders))for(const i in n[e].placeholders){if(!n[e].placeholders.hasOwnProperty(i)||!n[e].placeholders[i].content)continue;const r="\\$"+i.toUpperCase()+"\\$";let s=n[e].placeholders[i].content;"$1"!==s&&"$2"!==s&&"$3"!==s||(s="__$"+s+"__"),t[e]=t[e].replace(new RegExp(r,"g"),s)}})}}var Lv=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Wv=new C.Zs(C.Ud,"locale",{deserializer:e=>e});class Kv extends zv{constructor(e,t,i,n){super(e,t,i),this.systemLanguage=e,this.localesDirectory=t,this.getLocalesJson=i,this.translationLocaleState=n.get(Wv),this.userSetLocale$=this.translationLocaleState.state$,this.locale$=this.userSetLocale$.pipe((0,p.T)(e=>null!=e?e:this.translationLocale))}setLocale(e){return Lv(this,void 0,void 0,function*(){yield this.translationLocaleState.update(()=>e)})}init(){const e=Object.create(null,{init:{get:()=>super.init}});return Lv(this,void 0,void 0,function*(){const t=yield(0,u._)(this.translationLocaleState.state$);yield e.init.call(this,t)})}}const Zv=["en","af","ar","az","be","bg","bn","bs","ca","cs","cy","da","de","el","en-GB","en-IN","eo","es","et","eu","fa","fi","fil","fr","gl","he","hi","hr","hu","id","it","ja","ka","km","kn","ko","lv","ml","mr","my","nb","ne","nl","nn","or","pl","pt-PT","pt-BR","ro","ru","si","sk","sl","sr","sv","ta","te","th","tr","uk","vi","zh-CN","zh-TW"];var Hv=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Jv{get blobOptions(){var e;const t=null!==(e=this._request.blobOptions)&&void 0!==e?e:{};return null==t.type&&(t.type=this.fileType),t}get blob(){return null!=this.blobOptions?new Blob([this._request.blobData],this.blobOptions):new Blob([this._request.blobData])}get downloadMethod(){return null!=this._request.downloadMethod?this._request.downloadMethod:"application/pdf"!=this.fileType?"save":"open"}get fileType(){const e=this._request.fileName.toLowerCase();return e.endsWith(".pdf")?"application/pdf":e.endsWith(".xlsx")?"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":e.endsWith(".docx")?"application/vnd.openxmlformats-officedocument.wordprocessingml.document":e.endsWith(".pptx")?"application/vnd.openxmlformats-officedocument.presentationml.presentation":e.endsWith(".csv")?"text/csv":e.endsWith(".png")?"image/png":e.endsWith(".jpg")||e.endsWith(".jpeg")?"image/jpeg":e.endsWith(".gif")?"image/gif":"application/octet-stream"}constructor(e){this._request=e}}class qv{constructor(e){this.platformUtilsService=e}download(e){const t=new Jv(e),i=window.document.createElement("a");this.platformUtilsService.supportsFileDownloads()||(i.rel="noreferrer",i.target="_blank"),i.href=URL.createObjectURL(t.blob),i.download=e.fileName,window.document.body.appendChild(i),i.click(),window.document.body.removeChild(i)}}qv.ɵfac=function(e){return new(e||qv)(B.KVO(G.y))},qv.ɵprov=B.jDH({token:qv,factory:qv.ɵfac});var $v=i(17594),_v=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var em=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var tm=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var im=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class nm extends I.Zm{authenticateWithBiometrics(){return im(this,void 0,void 0,function*(){return!1})}getBiometricsStatus(){return im(this,void 0,void 0,function*(){return I.cR.PlatformUnsupported})}unlockWithBiometricsForUser(e){return im(this,void 0,void 0,function*(){return null})}getBiometricsStatusForUser(e){return im(this,void 0,void 0,function*(){return I.cR.PlatformUnsupported})}getShouldAutopromptNow(){return im(this,void 0,void 0,function*(){return!1})}setShouldAutopromptNow(e){return im(this,void 0,void 0,function*(){})}canEnableBiometricUnlock(){return im(this,void 0,void 0,function*(){return!1})}setBiometricProtectedUnlockKeyForUser(e,t){return im(this,void 0,void 0,function*(){})}enrollPersistent(e,t){return im(this,void 0,void 0,function*(){})}hasPersistentKey(e){return im(this,void 0,void 0,function*(){return!1})}}var rm=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};var sm=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class om extends qa{constructor(e,t){super(e),this.urls=t}}var am=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class lm extends b.Nb{constructor(e,t,i){super(e,t,i,"web-disk-local",Yt.sK.Web),this.diskLocalStorageService=t}getAccounts(){return am(this,void 0,void 0,function*(){const e=this.diskLocalStorageService.getKeys(),t=[];for(const i of e){if(!zt.A.isGuid(i))continue;const e=yield this.diskLocalStorageService.get(i);null!=e&&("object"==typeof e&&t.push({userId:i,account:e}))}return t})}}var cm=i(34969),dm=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const um=(()=>{try{if("object"==typeof WebAssembly&&"function"==typeof WebAssembly.instantiate){const e=new WebAssembly.Module(Uint8Array.of(0,97,115,109,1,0,0,0));if(e instanceof WebAssembly.Module)return new WebAssembly.Instance(e)instanceof WebAssembly.Instance}}catch(e){}return!1})();class hm extends gs.B{load(){return dm(this,void 0,void 0,function*(){let e;e=um?yield i.e(368).then(i.bind(i,12368)):yield i.e(981).then(i.bind(i,95981)),cm.TsN(e)})}}class Am extends ra.wH{constructor(e,t,i){super(e,t),this.diskLocalStorageService=i}get(e,t){var i;const n=null!==(i=t.web)&&void 0!==i?i:e;return"disk-local"===n?["disk-local",this.diskLocalStorageService]:super.get(n,t)}}var pm=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class gm{constructor(e,t){this.keyService=e,this.encryptService=t}attachToGlobal(e){e.bitwardenContainerService||(e.bitwardenContainerService=this)}getKeyService(){if(null==this.keyService)throw new Error("ContainerService.keyService not initialized.");return this.keyService}getEncryptService(){if(null==this.encryptService)throw new Error("ContainerService.encryptService not initialized.");return this.encryptService}}var vm=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class mm{constructor(e,t){this.platformUtilsService=e,this.sdkService=t}applyVersionToWindow(){window.__version=()=>vm(this,void 0,void 0,function*(){return{client:yield this.platformUtilsService.getApplicationVersion(),sdk:yield(0,u._)(this.sdkService.client$.pipe((0,p.T)(e=>e.version()),(0,Wr.W)(()=>"Unsupported")))}})}}mm.ɵfac=function(e){return new(e||mm)(B.KVO(G.y),B.KVO(na.K5))},mm.ɵprov=B.jDH({token:mm,factory:mm.ɵfac,providedIn:"root"});var fm=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class ym{constructor(e,t,i,n,r,s,o,a,l,c,d,u,h,A,p,g,v,m,f,y){this.win=e,this.serverNotificationsService=t,this.vaultTimeoutService=i,this.i18nService=n,this.eventUploadService=r,this.twoFactorService=s,this.keyService=o,this.themingService=a,this.encryptService=l,this.userAutoUnlockKeyService=c,this.accountService=d,this.tokenService=u,this.versionService=h,this.ipcService=A,this.sdkLoadService=p,this.taskService=g,this.migrationRunner=v,this.document=m,this.configService=f,this.sharedUnlockFollowerService=y}init(){return()=>fm(this,void 0,void 0,function*(){yield this.sdkLoadService.loadAndInit(),yield this.migrationRunner.run();const e=yield(0,u._)(this.accountService.accounts$);yield this.tokenService.cleanupTokenStorage(Object.keys(e));const t=yield(0,u._)(this.accountService.activeAccount$);t&&(yield this.userAutoUnlockKeyService.setUserKeyInMemoryIfAutoUserKeySet(t.id)),this.serverNotificationsService.startListening(),yield this.vaultTimeoutService.init(!0),yield this.i18nService.init(),this.eventUploadService.init(!0),this.twoFactorService.init();this.win.document.documentElement.classList.add("locale_"+this.i18nService.translationLocale),this.themingService.applyThemeChangesTo(this.document),this.versionService.applyVersionToWindow(),yield this.ipcService.init(),(yield this.configService.getFeatureFlag(Kr.TO.SharedUnlockPart2))&&(yield this.sharedUnlockFollowerService.start()),this.taskService.listenForTaskNotifications();new gm(this.keyService,this.encryptService).attachToGlobal(this.win)})}}ym.ɵfac=function(e){return new(e||ym)(B.KVO(Oe.jf),B.KVO(U),B.KVO(Dn.a6),B.KVO(he.W),B.KVO(y.fH),B.KVO(ar.fz),B.KVO(I.Lu),B.KVO(sA),B.KVO(As.N),B.KVO(vc),B.KVO(N.D),B.KVO(z.B),B.KVO(mm),B.KVO(UA),B.KVO(gs.B),B.KVO(Ju.RB),B.KVO(cl),B.KVO(B.qQL),B.KVO(O.w),B.KVO(EA))},ym.ɵprov=B.jDH({token:ym,factory:ym.ɵfac});const bm=new Oe.aZ("ENV_URLS");var Cm=i(83724);const Im=[(0,Ue.F)(ym),(0,Ue.F)(jg.H),(0,Ue.F)($v.US),(0,Ue.F)({provide:Gg.WM,useValue:Gg.bS}),(0,Ue.F)({provide:Oe.de,deps:[G.y],useFactory:e=>e.isDev()?Dn.Lw.Never:15}),(0,Ue.F)({provide:w.hnV,useFactory:e=>e.init(),deps:[ym],multi:!0}),(0,Ue.F)({provide:he.W,useClass:class extends Kv{constructor(e,t,i){super(e||"en-US",t,e=>Hv(this,void 0,void 0,function*(){const t=this.localesDirectory+"/"+e+"/messages.json?cache=r5ktz",i=yield fetch(t);return yield i.json()}),i),this.supportedTranslationLocales=Zv}},deps:[Oe.Xk,Oe.U1,C.Y2]}),(0,Ue.F)({provide:ra.zq,useClass:Yv,deps:[]}),(0,Ue.F)({provide:Oe.G$,useClass:ra.g2,deps:[]}),(0,Ue.F)({provide:Oe.A5,useClass:ra.g2,deps:[]}),(0,Ue.F)({provide:Oe.ye,useClass:ra.Cc,deps:[]}),(0,Ue.F)({provide:Oe.ml,useFactory:()=>new XA(window.sessionStorage),deps:[]}),(0,Ue.F)({provide:G.y,useClass:Cm._,useAngularDecorators:!0}),(0,Ue.F)({provide:VA.y,useClass:qv,useAngularDecorators:!0}),(0,Ue.F)({provide:XA,useFactory:()=>new XA(window.localStorage),deps:[]}),(0,Ue.F)({provide:Oe.e$,useExisting:XA}),(0,Ue.F)({provide:ra.wH,useClass:Am,deps:[Oe.ml,Oe.ye,Oe.e$]}),(0,Ue.F)({provide:cl,useClass:class extends cl{constructor(e,t,i,n){super(e,t,i,Yt.sK.Web),this.diskLocalStorage=n}run(){const e=Object.create(null,{run:{get:()=>super.run}});return am(this,void 0,void 0,function*(){yield e.run.call(this);const t=this.migrationBuilderService.build();let i=yield this.diskLocalStorage.get("stateVersion");null==i&&(i=12);const n=new lm(i,this.diskLocalStorage,this.logService);yield t.migrate(n)})}},deps:[ra.zq,se.K,al,XA]}),(0,Ue.F)({provide:bm,useValue:{}}),(0,Ue.F)({provide:yo.v,useClass:class extends Ka{constructor(e,t,i,n=[],r,s){var o,a;super(t,i,n),this.win=e,this.router=r,this.envUrls=s;let l=this.win.location.href;l=l.replace(/(\/+|\/*#.*|\/*\?.*)$/,""),null!==(o=s.base)&&void 0!==o||(s.base=l);const c=new URL(this.win.location.href).hostname,d=this.availableRegions().find(e=>new URL(e.urls.webVault).hostname===c);let u;d?(s.send=null!==(a=s.send)&&void 0!==a?a:d.urls.send,u=new om(d,s)):u=new $a(s);const h=new ho.m(1);h.next(u),this._environmentSubject=h,this.environment$=h.asObservable(),this.globalEnvironment$=h.asObservable()}setEnvironment(e,t){return sm(this,void 0,void 0,function*(){if(e===yo.T.SelfHosted)throw new Error("setEnvironment does not work in web for self-hosted.");const t=new URL(this.win.location.href).hostname;if(this.availableRegions().find(e=>new URL(e.urls.webVault).hostname===t).key===e){return(yield(0,u._)(this.environment$)).getUrls()}const i=this.availableRegions().find(t=>t.key===e);if(null==i)throw new Error("The selected region is not known as an available region.");const n=`/#${this.router.url}`;return this.win.location.href=i.urls.webVault+n,i.urls})}getEnvironment$(e){return this._environmentSubject.asObservable()}},deps:[Oe.jf,C.v2,N.D,Oe.oq,R.Ix,bm]}),(0,Ue.F)({provide:I.Zm,useClass:nm,deps:[]}),(0,Ue.F)({provide:Sc.oO,useClass:Sc.T2,deps:[C.Y2]}),(0,Ue.F)({provide:Oe.Hq,useValue:Yt.sK.Web}),(0,Ue.F)({provide:ne.mZ,useClass:uv,deps:[I.Lu,ni.T,Ae.L,O.w,na.K5,ge,Je.m]}),(0,Ue.F)({provide:wa,useClass:Ia,deps:[]}),(0,Ue.F)({provide:HA,useClass:class{constructor(){this.userDecryptionOptionsService=(0,B.WQX)(g.Ym),this.webAuthnPrfUnlockService=(0,B.WQX)($A),this.sharedUnlockFollowerService=(0,B.WQX)(EA)}getBiometricsError(e){throw new Error("Biometric unlock is not supported in the web app. See getAvailableUnlockOptions$")}getPreviousUrl(){return null}popOutBrowserExtension(){throw new Error("Method not supported on this platform.")}closeBrowserExtensionPopout(){throw new Error("Method not supported on this platform.")}isWindowVisible(){return _v(this,void 0,void 0,function*(){throw new Error("Method not implemented.")})}getBiometricsUnlockBtnText(){throw new Error("Biometric unlock is not supported in the web app. See getAvailableUnlockOptions$")}getExternalUnlock$(e){return this.sharedUnlockFollowerService.externalUnlock$.pipe((0,h.p)(t=>t===e),(0,p.T)(()=>{}))}getAvailableUnlockOptions$(e){return(0,xt.z)([this.userDecryptionOptionsService.userDecryptionOptionsById$(e),(0,Ei.v)(()=>_v(this,void 0,void 0,function*(){return{available:yield this.webAuthnPrfUnlockService.isPrfUnlockAvailable(e)}}))]).pipe((0,p.T)(([e,t])=>({masterPassword:{enabled:e.hasMasterPassword},pin:{enabled:!1},biometrics:{enabled:!1,biometricsStatus:I.cR.PlatformUnsupported},prf:{enabled:t.available}})))}},deps:[]}),(0,Ue.F)({provide:Ve,useClass:class extends Mh{constructor(e,t,i,n,r,s,o,a,l,c,d,u,h,A){super(e,t,i,n,r,s,o,a,l,c,h,A),this.apiService=e,this.encryptService=t,this.i18nService=i,this.kdfConfigService=n,this.keyService=r,this.masterPasswordApiService=s,this.masterPasswordService=o,this.organizationApiService=a,this.organizationUserApiService=l,this.userDecryptionOptionsService=c,this.organizationInviteService=d,this.routerService=u,this.accountCryptographicStateService=h,this.registerSdkService=A}setInitialPassword(e,t,i){const n=Object.create(null,{setInitialPassword:{get:()=>super.setInitialPassword}});return cv(this,void 0,void 0,function*(){yield n.setInitialPassword.call(this,e,t,i),yield this.routerService.getAndClearLoginRedirectUrl(),yield this.organizationInviteService.clearOrganizationInvite()})}initializePasswordJitPasswordUserV2Encryption(e,t){const i=Object.create(null,{initializePasswordJitPasswordUserV2Encryption:{get:()=>super.initializePasswordJitPasswordUserV2Encryption}});return cv(this,void 0,void 0,function*(){yield i.initializePasswordJitPasswordUserV2Encryption.call(this,e,t),yield this.routerService.getAndClearLoginRedirectUrl(),yield this.organizationInviteService.clearOrganizationInvite()})}},deps:[je.G,As.N,he.W,I.zZ,I.Lu,ci,Ae.O,Xe.X,_.uB,g.bj,ge,jg.H,ls.h,ta.vW]}),(0,Ue.F)({provide:qo.Y,useClass:ka,deps:[Oe.e$,se.K]}),(0,Ue.F)({provide:ee,useClass:class{constructor(){this.showTroubleLoggingInText=!0,this.leftAlignDescription=!1}},deps:[]}),(0,Ue.F)({provide:ne.qG,useClass:zg,deps:[ge,se.K,Je.N,jg.H,hs.R,yo.v,_u.JJ,G.y,ui._,R.Ix,N.D,O.w,F.f,he.W]}),(0,Ue.F)({provide:_.vE,useClass:_.Qd,deps:[je.G,I.Lu,As.N,_.YD,v.PV]}),(0,Ue.F)({provide:_.Ki,useClass:_.tc,deps:[I.Lu,As.N,_.uB,N.D,he.W]}),(0,Ue.F)({provide:gs.B,useClass:Vg("sdk")?hm:jA,deps:[]}),(0,Ue.F)({provide:ia,useClass:Vg("sdk")?class{createSdkClient(...e){return OA(this,void 0,void 0,function*(){return Promise.resolve(new ps.PasswordManagerClient(...e))})}}:class{createSdkClient(...e){return Promise.reject(new Error("SDK not available"))}},deps:[]}),(0,Ue.F)({provide:j,useClass:class{constructor(e){this.window=e}startProcessReload(){return em(this,void 0,void 0,function*(){this.window.location.reload()})}cancelProcessReload(){}},deps:[Oe.jf]}),(0,Ue.F)({provide:g.pi,useClass:g.pi,deps:[N.D,k.u,C.v2]}),(0,Ue.F)({provide:ne.C5,useClass:Gv,deps:[he.W]}),(0,Ue.F)({provide:pv,useClass:pv,deps:[ui._,je.G,hs.R,yo.v,_u.JJ,G.y]}),(0,Ue.F)({provide:ne.Ms,useClass:class{constructor(e){this.platformUtilsService=e;const t=new BroadcastChannel("duoResult");this.duo2faResult$=(0,nA.R)(t,"message").pipe((0,p.T)(e=>({code:e.data.code,state:e.data.state,token:`${e.data.code}|${e.data.state}`})),(0,go.u)())}listenForDuo2faResult$(){return this.duo2faResult$}launchDuoFrameless(e){return hv(this,void 0,void 0,function*(){this.platformUtilsService.launchUri(e)})}},deps:[G.y]}),(0,Ue.F)({provide:ne.Ak,useClass:Wg,deps:[oe.U,jg.H,ge]}),(0,Ue.F)({provide:UA,useClass:class extends UA{constructor(){super(...arguments),this.logService=(0,B.WQX)(se.K),this.platformUtilsService=(0,B.WQX)(G.y)}init(){const e=Object.create(null,{initWithClient:{get:()=>super.initWithClient}});return rm(this,void 0,void 0,function*(){try{yield gs.B.Ready,this.communicationBackend=new ps.IpcCommunicationBackend({send(e){return rm(this,void 0,void 0,function*(){if("object"!=typeof e.destination||!("BrowserBackground"in e.destination))throw new Error(`Destination not supported: ${JSON.stringify(e.destination)}`);window.postMessage({type:"bitwarden-ipc-message",message:{destination:e.destination,payload:[...e.payload],topic:e.topic}},window.location.origin)})}}),window.addEventListener("message",e=>rm(this,void 0,void 0,function*(){var t;if(e.origin!==window.origin)return;const i=e.data;(function(e){return null!=e&&"bitwarden-ipc-message"===e.type})(i)&&"object"==typeof i.message.destination&&"Web"in i.message.destination&&(null===(t=this.communicationBackend)||void 0===t||t.receive(new ps.IncomingMessage(new Uint8Array(i.message.payload),i.message.destination,{BrowserBackground:{id:"Own"}},i.message.topic)))})),yield e.initWithClient.call(this,ps.IpcClient.newWithSdkInMemorySessions(this.communicationBackend)),yield(0,ps.ipcRegisterDiscoverHandler)(this.client,{version:yield this.platformUtilsService.getApplicationVersion()})}catch(t){this.logService.error("[IPC] Initialization failed",t)}})}},deps:[]}),(0,Ue.F)({provide:SA,useClass:class extends SA{constructor(e){super(),this.stateProvider=e}allowSharingUnlockStateWithDesktop$(e){return this.stateProvider.getUserState$(kA,e).pipe((0,p.T)(e=>null!=e&&e))}setAllowSharingUnlockStateWithDesktop(e,t){return QA(this,void 0,void 0,function*(){yield this.stateProvider.getUser(t,kA).update(()=>e)})}allowSharingUnlockStateWithWeb$(e){return this.stateProvider.getUserState$(RA,e).pipe((0,p.T)(e=>null==e||e))}setAllowSharingUnlockStateWithWeb(e,t){return QA(this,void 0,void 0,function*(){yield this.stateProvider.getUser(t,RA).update(()=>e)})}},deps:[C.v2]}),(0,Ue.F)({provide:EA,useClass:class{constructor(e,t,i,n,r,s,o,a,l){this.ipcService=e,this.accountService=t,this.lockService=i,this.keyService=n,this.platformUtilsService=r,this.vaultTimeoutSettingsService=s,this.environmentService=o,this.sharedUnlockSettingsService=a,this.unlockService=l,this.follower=null,this._externalUnlock$=new d.B,this.externalUnlock$=this._externalUnlock$.asObservable()}start(){return xA(this,void 0,void 0,function*(){const e=new DA(this.accountService,this.lockService,this.unlockService,this.keyService,this.platformUtilsService,this.vaultTimeoutSettingsService,this.environmentService,e=>this.enabled(e),e=>this._externalUnlock$.next(e));this.follower=ps.SharedUnlockFollower.try_new(this.ipcService.client,e),yield this.follower.start(),this.lockService.registerOnLockAction(e=>xA(this,void 0,void 0,function*(){(yield this.enabled(e))&&(yield this.follower.handle_device_event({ManualLock:{user_id:(0,na.WD)(e)}}))})),this.unlockService.registerOnUnlockAction((e,t)=>xA(this,void 0,void 0,function*(){return this.onUnlock(e,t)})),function(e,t,i){const n=new MA(e,t,i),r=setInterval(()=>PA(this,void 0,void 0,function*(){yield n.poll()}),100)}(this.keyService,this.accountService,(e,t)=>xA(this,void 0,void 0,function*(){return this.onUnlock(e,t)}))})}enabled(e){return xA(this,void 0,void 0,function*(){return this.platformUtilsService.getClientType()!==nh.s.Browser||(yield(0,u._)(this.sharedUnlockSettingsService.allowSharingUnlockStateWithDesktop$(e)))})}onUnlock(e,t){return xA(this,void 0,void 0,function*(){(yield this.enabled(e))&&(yield this.follower.handle_device_event({ManualUnlock:{user_id:(0,na.WD)(e),user_key:t.toSdk()}}))})}},deps:[UA,N.D,g.FQ,I.Lu,G.y,Dn.ep,yo.v,SA,ih]}),(0,Ue.F)({provide:dh.Vi,useClass:dh.cM,deps:[T.o,F.f,G.y,he.W,O.w,se.K]}),(0,Ue.F)({provide:ue,useClass:class extends Me{constructor(e,t,i,n,r,s,o,a,l){super(e,t,i,n,r,s),this.keyService=e,this.masterPasswordApiService=t,this.masterPasswordService=i,this.masterPasswordUnlockService=n,this.policyService=r,this.organizationInviteService=s,this.syncService=o,this.userKeyRotationService=a,this.routerService=l}changePasswordAndRotateUserKey(e,t){return Ng(this,void 0,void 0,function*(){const i="Could not change password and rotate user key.";(0,Ee.B)(e.currentPassword,"currentPassword",i),(0,Ee.B)(e.newPassword,"newPassword",i),(0,Se.x)(e.newPasswordHint,"newPasswordHint",i);if(!(yield this.masterPasswordUnlockService.proofOfDecryption(e.currentPassword,t.id)))throw new de;yield this.syncService.fullSync(!0),yield this.userKeyRotationService.rotateUserKeyMasterPasswordAndEncryptedData(e.currentPassword,e.newPassword,t,e.newPasswordHint)})}clearDeeplinkState(){return Ng(this,void 0,void 0,function*(){yield this.routerService.getAndClearLoginRedirectUrl()})}},deps:[I.Lu,ci,Ae.O,ao.b,Je.N,ge,zA.H,Rv,jg.H]}),(0,Ue.F)({provide:dh.vv,useClass:xg,deps:[]}),(0,Ue.F)({provide:LA.l,useClass:Fg,deps:[T.o,N.D,zA.H,gr.Q,G.y,R.Ix]}),(0,Ue.F)({provide:Ge.a,useClass:Nv,deps:[C.v2]}),(0,Ue.F)({provide:sa,useClass:class extends sa{clearClipboard(e,t){return pm(this,void 0,void 0,function*(){})}clearPendingClipboard(){return pm(this,void 0,void 0,function*(){})}},deps:[]}),(0,Ue.F)({provide:Ko,useClass:class{constructor(e){this.platformUtilsService=e}isAvailable(e){return tm(this,void 0,void 0,function*(){switch(e){case Dn.BF.Immediately:return!1;case Dn.Lw.OnRestart:case Dn.Lw.Custom:return!0;case Dn.Lw.Never:return this.platformUtilsService.isDev();default:if((0,Dn.ft)(e))return!0}return!1})}getOrPromoteToAvailable(e){return tm(this,void 0,void 0,function*(){return(yield this.isAvailable(e))?e:e===Dn.BF.Immediately?Dn.BF.OnMinute:Dn.Lw.OnRestart})}},deps:[G.y]}),(0,Ue.F)({provide:eg,useClass:eg,deps:[he.W,Ko,Je.m]}),(0,Ue.F)({provide:si,useClass:class{activeUserMeetsConditionsToShowApprovalDialog(e){return bA(this,void 0,void 0,function*(){throw new Error("activeUserMeetsConditionsToShowApprovalDialog() not implemented for this client")})}setupUnlockListenersForProcessingAuthRequests(){throw new Error("setupUnlockListenersForProcessingAuthRequests() not implemented for this client")}handleAuthRequestNotificationClicked(e){return bA(this,void 0,void 0,function*(){throw new Error("handleAuthRequestNotificationClicked() not implemented for this client")})}},deps:[]}),(0,Ue.F)({provide:$A,useClass:class{constructor(e,t,i,n,r,s,o){this.webAuthnLoginPrfKeyService=e,this.userDecryptionOptionsService=t,this.encryptService=i,this.environmentService=n,this.platformUtilsService=r,this.window=s,this.logService=o,this.navigatorCredentials=this.window.navigator.credentials}isPrfUnlockAvailable(e){return Bp(this,void 0,void 0,function*(){try{if(!this.navigatorCredentials||!this.navigatorCredentials.get)return!1;const t=this.platformUtilsService.getClientType();if(t===Yt.sK.Browser&&!this.platformUtilsService.isChromium())return!1;if(t!==Yt.sK.Web&&t!==Yt.sK.Browser)return!1;return 0!==(yield this.getPrfUnlockCredentials(e)).length}catch(t){return this.logService.error("Error checking PRF unlock availability:",t),!1}})}getPrfUnlockCredentials(e){return Bp(this,void 0,void 0,function*(){try{const t=yield this.getUserDecryptionOptions(e);return(null==t?void 0:t.webAuthnPrfOptions)?t.webAuthnPrfOptions.map(e=>({credentialId:e.credentialId,transports:e.transports})):[]}catch(t){return this.logService.error("Error getting PRF unlock credentials:",t),[]}})}unlockVaultWithPrf(e){return Bp(this,void 0,void 0,function*(){const t=yield this.getPrfUnlockCredentials(e);if(0===t.length)throw new Error("No PRF credentials available for unlock");const i=yield this.performWebAuthnGetWithPrf(t,e),n=yield this.createPrfKeyFromResponse(i),r=yield this.getPrfOptionForCredential(i.id,e),s=yield this.encryptService.unwrapDecapsulationKey(new fn.k(r.encryptedPrivateKey),n),o=yield this.encryptService.decapsulateKeyUnsigned(new fn.k(r.encryptedUserKey),s);if(!o)throw new Error("Failed to decrypt user key from private key");return o})}performWebAuthnGetWithPrf(e,t){return Bp(this,void 0,void 0,function*(){const i=yield this.getRpIdForUser(t),n=yield this.getUnlockWithPrfSalt(),r={publicKey:{challenge:new Uint8Array(32),allowCredentials:e.map(({credentialId:e,transports:t})=>({type:"public-key",id:wp.stringToArray(e),transports:t||[]})),rpId:i,userVerification:"preferred",extensions:{prf:{eval:{first:n}}}}},s=yield this.navigatorCredentials.get(r);if(!s)throw new Error("WebAuthn get() returned null/undefined");if(!(s instanceof PublicKeyCredential))throw new Error("Failed to get PRF credential for unlock");return s})}createPrfKeyFromResponse(e){return Bp(this,void 0,void 0,function*(){var t,i;const n=null===(i=null===(t=e.getClientExtensionResults().prf)||void 0===t?void 0:t.results)||void 0===i?void 0:i.first;if(!n)throw new Error("No PRF result received from authenticator");try{return yield this.webAuthnLoginPrfKeyService.createSymmetricKeyFromPrf(n)}catch(r){throw this.logService.error("Failed to create unlock key from PRF:",r),r}})}getPrfOptionForCredential(e,t){return Bp(this,void 0,void 0,function*(){const i=yield this.getUserDecryptionOptions(t);if(!(null==i?void 0:i.webAuthnPrfOptions)||0===i.webAuthnPrfOptions.length)throw new Error("No WebAuthn PRF option found for user - cannot perform PRF unlock");const n=i.webAuthnPrfOptions.find(t=>t.credentialId===e);if(!n)throw new Error("No matching WebAuthn PRF option found for this credential");return n})}getUnlockWithPrfSalt(){return Bp(this,void 0,void 0,function*(){try{return yield this.webAuthnLoginPrfKeyService.getLoginWithPrfSalt()}catch(e){throw this.logService.error("Error getting unlock PRF salt:",e),e}})}getUserDecryptionOptions(e){return Bp(this,void 0,void 0,function*(){try{return yield(0,u._)(this.userDecryptionOptionsService.userDecryptionOptionsById$(e))}catch(t){return this.logService.error("Error getting user decryption options:",t),null}})}getRpIdForUser(e){return Bp(this,void 0,void 0,function*(){try{const t=yield(0,u._)(this.environmentService.getEnvironment$(e)),i=zt.A.getHost(t.getWebVaultUrl());if(!i)return;const n=new URL(`https://${i}`);return n.hostname}catch(t){return void this.logService.error("Error getting rpId",t)}})}},deps:[gi,g.bj,As.N,yo.v,G.y,Oe.jf,se.K]}),(0,Ue.F)({provide:CA,useClass:class{constructor(e,t,i,n,r){this.configService=e,this.masterPasswordService=t,this.kdfConfigService=i,this.apiService=n,this.keyService=r}requestEmailToken(e,t,i){return BA(this,void 0,void 0,function*(){let n;if(yield this.configService.getFeatureFlag(Kr.TO.PM30811_ChangeEmailNewAuthenticationApis)){const r=yield(0,u._)(this.masterPasswordService.saltForUser$(i));(0,Se.x)(r,"salt");const s=yield(0,u._)(this.kdfConfigService.getKdfConfig$(i));(0,Se.x)(s,"kdf");const o=yield this.masterPasswordService.makeMasterPasswordAuthenticationData(e,s,r);n=IA.forNewEmail(o,t)}else n=new IA,n.newEmail=t,n.masterPasswordHash=yield this.keyService.hashMasterKey(e,yield this.keyService.getOrDeriveMasterKey(e,i));yield this.apiService.send("POST","/accounts/email-token",n,i,!1)})}confirmEmailChange(e,t,i,n){return BA(this,void 0,void 0,function*(){var r;let s,o=null;if(yield this.configService.getFeatureFlag(Kr.TO.PM30811_ChangeEmailNewAuthenticationApis)){const r=yield(0,u._)(this.kdfConfigService.getKdfConfig$(n));(0,Se.x)(r,"kdf");const a=yield(0,u._)(this.keyService.userKey$(n));(0,Se.x)(a,"userKey");const l=yield(0,u._)(this.masterPasswordService.saltForUser$(n));(0,Se.x)(l,"salt");const c=yield this.masterPasswordService.makeMasterPasswordAuthenticationData(e,r,l),d=this.masterPasswordService.emailToSalt(t),h=yield this.masterPasswordService.makeMasterPasswordAuthenticationData(e,r,d),A=yield this.masterPasswordService.makeMasterPasswordUnlockData(e,r,d,a);s=wA.newConstructor(h,A),s.newEmail=t,s.token=i,s.authenticateWith(c),o=A}else{s=new wA,s.token=i,s.newEmail=t,s.masterPasswordHash=yield this.keyService.hashMasterKey(e,yield this.keyService.getOrDeriveMasterKey(e,n));const o=yield(0,u._)(this.kdfConfigService.getKdfConfig$(n));if(null==o)throw new Error("Missing kdf config");const a=yield this.keyService.makeMasterKey(e,t,o);s.newMasterPasswordHash=yield this.keyService.hashMasterKey(e,a);const l=yield(0,u._)(this.keyService.userKey$(n));if(null==l)throw new Error("Can't find UserKey");const c=null===(r=(yield this.keyService.encryptUserKeyWithMasterKey(a,l))[1])||void 0===r?void 0:r.encryptedString;if(null==c)throw new Error("Missing Encrypted User Key");s.key=c}yield this.apiService.send("POST","/accounts/email",s,n,!1),null!=o&&(yield this.masterPasswordService.setLegacyMasterKeyFromUnlockData(e,o,n))})}},deps:[O.w,Ae.O,I.zZ,je.G,I.Lu]})];class wm{constructor(e){if(e)throw new Error("CoreModule is already loaded. Import it in the AppModule only")}}wm.ɵfac=function(e){return new(e||wm)(B.KVO(wm,12))},wm.ɵmod=w.$C({type:wm}),wm.ɵinj=B.G2t({providers:Im,imports:[L.MD,yA,Qg,WA._h]});var Bm=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function Em(e){return()=>Bm(this,void 0,void 0,function*(){const t=(0,B.WQX)(R.Ix),i=(0,B.WQX)(F.f),n=(0,B.WQX)(he.W),r=(0,B.WQX)(N.D),s=(0,B.WQX)(Je.m),o=(0,B.WQX)(O.w),a=(0,B.WQX)(mc.H);null==(yield(0,u._)(r.activeAccount$.pipe(f.F6,(0,jt.n)(e=>a.lastSync$(e)))))&&(yield a.fullSync(!1));const l=yield(0,u._)(r.activeAccount$.pipe(f.F6,(0,jt.n)(t=>e(t,s,o)),(0,P.M)(e=>{if("boolean"!=typeof e)throw new Error("Feature callback must return a boolean.")})));return l||(i.showToast({variant:"error",message:n.t("noPageAccess")}),t.createUrlTree(["/"]))})}class Sm{}Sm.ɵfac=function(e){return new(e||Sm)},Sm.ɵcmp=w.VBU({type:Sm,selectors:[["app-authentication-timeout"]],decls:6,vars:6,consts:[[1,"tw-text-center"],["routerLink","/login","bitButton","","block","","buttonType","primary"]],template:function(e,t){1&e&&(w.j41(0,"p",0),w.EFF(1),w.nI1(2,"i18n"),w.k0s(),w.j41(3,"a",1),w.EFF(4),w.nI1(5,"i18n"),w.k0s()),2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,2,"authenticationSessionTimedOut")," "),w.R7$(3),w.SpI(" ",w.bMT(5,4,"logIn")," "))},dependencies:[L.MD,Nh.p,Ah.t,fh.Q,Hp.iI,Hp.Wk,Hh.$],encapsulation:2});const Qm=Object.freeze({SignUp:"signup",FinishSignUp:"finish-signup",Login:"login",LoginWithDevice:"login-with-device",AdminApprovalRequested:"admin-approval-requested",PasswordHint:"hint",LoginInitiated:"login-initiated",SetInitialPassword:"set-initial-password",ChangePassword:"change-password",Sso:"sso",TwoFactor:"2fa",AuthenticationTimeout:"authentication-timeout",NewDeviceVerification:"device-verification",LoginWithPasskey:"login-with-passkey"});var km=i(31539),Rm=i(26061),Fm=i(90005),Tm=i(45383),Dm=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function Pm(e,t){if(1&e&&(w.qex(0),w.j41(1,"p",4),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"button",5),w.EFF(5),w.nI1(6,"i18n"),w.k0s(),w.bVm()),2&e){const e=w.XpG();w.R7$(),w.AVh("tw-self-start",e.leftAlignDescription)("tw-text-center",!e.leftAlignDescription),w.R7$(),w.SpI(" ",w.bMT(3,7,"readingPasskeyLoading")," "),w.R7$(2),w.Y8G("loading",!0),w.R7$(),w.SpI(" ",w.bMT(6,9,"loading")," ")}}function Mm(e,t){if(1&e){const e=w.RV6();w.qex(0),w.j41(1,"p",4),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"button",6),w.bIt("click",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.retry())}),w.EFF(5),w.nI1(6,"i18n"),w.k0s(),w.bVm()}if(2&e){const e=w.XpG();w.R7$(),w.AVh("tw-self-start",e.leftAlignDescription)("tw-text-center",!e.leftAlignDescription),w.R7$(),w.SpI(" ",w.bMT(3,6,"passkeyAuthenticationFailed")," "),w.R7$(3),w.SpI(" ",w.bMT(6,8,"tryAgain")," ")}}function xm(e,t){1&e&&(w.EFF(0),w.nI1(1,"i18n"),w.nrm(2,"br")),2&e&&w.SpI(" ",w.bMT(1,1,"troubleLoggingIn"))}class Vm{get successRoute(){const e=this.platformUtilsService.getClientType();return this.successRoutes[e]||"/vault"}constructor(e,t,i,n,r,s,o,a,l,c,d,u){this.webAuthnLoginService=e,this.router=t,this.route=i,this.logService=n,this.validationService=r,this.i18nService=s,this.loginSuccessHandlerService=o,this.keyService=a,this.platformUtilsService=l,this.anonLayoutWrapperDataService=c,this.messagingService=d,this.loginViaWebAuthnComponentService=u,this.currentState="assert",this.shouldAutoClosePopout=!1,this.Icons={TwoFactorAuthSecurityKeyIcon:Rm.s,TwoFactorAuthSecurityKeyFailedIcon:Fm.f},this.successRoutes={[Yt.sK.Web]:"/vault",[Yt.sK.Browser]:"/tabs/vault",[Yt.sK.Desktop]:"/vault",[Yt.sK.Cli]:"/vault"},this.showTroubleLoggingInText=this.loginViaWebAuthnComponentService.showTroubleLoggingInText,this.leftAlignDescription=this.loginViaWebAuthnComponentService.leftAlignDescription}ngOnInit(){this.shouldAutoClosePopout="true"===this.route.snapshot.queryParamMap.get("autoClosePopout"),this.authenticate()}retry(){this.currentState="assert",this.setDefaultIcon(),this.authenticate()}authenticate(){return Dm(this,void 0,void 0,function*(){let e;try{const t=yield this.webAuthnLoginService.getCredentialAssertionOptions();e=yield this.webAuthnLoginService.assertCredential(t)}catch(t){return this.validationService.showError(t),this.currentState="assertFailed",void this.setFailureIcon()}try{const t=yield this.webAuthnLoginService.logIn(e);if(t.requiresTwoFactor)return this.validationService.showError(this.i18nService.t("twoFactorForPasskeysNotSupportedOnClientUpdateToLogIn")),this.currentState="assertFailed",void this.setFailureIcon();if((yield(0,u._)(this.keyService.userKey$(t.userId)))&&(yield this.loginSuccessHandlerService.run(t.userId,null)),this.shouldAutoClosePopout&&this.platformUtilsService.getClientType()===Yt.sK.Browser)return this.messagingService.send("openPopup"),void window.close();yield this.router.navigate([this.successRoute])}catch(t){t instanceof Xt._&&this.validationService.showError(this.i18nService.t("invalidPasskeyPleaseTryAgain")),this.logService.error(t),this.currentState="assertFailed",this.setFailureIcon()}})}setDefaultIcon(){this.anonLayoutWrapperDataService.setAnonLayoutWrapperData({pageIcon:this.Icons.TwoFactorAuthSecurityKeyIcon})}setFailureIcon(){this.anonLayoutWrapperDataService.setAnonLayoutWrapperData({pageIcon:this.Icons.TwoFactorAuthSecurityKeyFailedIcon})}}Vm.ɵfac=function(e){return new(e||Vm)(w.rXU(vi),w.rXU(R.Ix),w.rXU(R.nX),w.rXU(se.K),w.rXU(oa.B),w.rXU(he.W),w.rXU(g.aJ),w.rXU(I.Lu),w.rXU(G.y),w.rXU(pe.f),w.rXU(oe.U),w.rXU(ee))},Vm.ɵcmp=w.VBU({type:Vm,selectors:[["app-login-via-webauthn"]],decls:8,vars:6,consts:[[1,"tw-flex","tw-flex-col","tw-items-center"],[4,"ngIf"],["bitTypography","body1",1,"tw-mb-0","tw-text-center"],["bitLink","","routerLink","/login"],["bitTypography","body1"],["type","button","bitButton","","block","","buttonType","primary",1,"tw-mb-4",3,"loading"],["type","button","bitButton","","block","","buttonType","primary",1,"tw-mb-4",3,"click"]],template:function(e,t){1&e&&(w.j41(0,"div",0),w.DNE(1,Pm,7,11,"ng-container",1)(2,Mm,7,10,"ng-container",1),w.j41(3,"p",2),w.nVh(4,xm,3,3),w.j41(5,"a",3),w.EFF(6),w.nI1(7,"i18n"),w.k0s()()()),2&e&&(w.R7$(),w.Y8G("ngIf","assert"===t.currentState),w.R7$(),w.Y8G("ngIf","assertFailed"===t.currentState),w.R7$(2),w.vxM(t.showTroubleLoggingInText?4:-1),w.R7$(2),w.JRh(w.bMT(7,4,"useDifferentLoginMethod")))},dependencies:[L.MD,L.bT,Hp.iI,Hp.Wk,Nh.p,Ah.t,fh.Q,Tm.Z,Gh.V,jh.g,Fp.E,Tp.r,Hh.$],encapsulation:2});const Gm=te.JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="4 0.5 90.32 96">
|
|
<path class="tw-fill-illustration-bg-secondary" d="M54 8.5a8 8 0 0 1 8-8h8a8 8 0 0 1 8 8v4H54v-4Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M70 2.5h-8a6 6 0 0 0-6 6v2h20v-2a6 6 0 0 0-6-6Zm-8-2a8 8 0 0 0-8 8v4h24v-4a8 8 0 0 0-8-8h-8Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-secondary" d="M47 16.5a8 8 0 0 1 8-8h22a8 8 0 0 1 8 8v6H47v-6Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M77 10.5H55a6 6 0 0 0-6 6v4h34v-4a6 6 0 0 0-6-6Zm-22-2a8 8 0 0 0-8 8v6h38v-6a8 8 0 0 0-8-8H55Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-secondary" d="M40 26.5a8 8 0 0 1 8-8h36a8 8 0 0 1 8 8v66H40v-66Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M84 20.5H48a6 6 0 0 0-6 6v64h48v-64a6 6 0 0 0-6-6Zm-36-2a8 8 0 0 0-8 8v66h52v-66a8 8 0 0 0-8-8H48Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-primary" d="M4 44.5a8 8 0 0 1 8-8h38a8 8 0 0 1 8 8v48H4v-48Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M50 38.5H12a6 6 0 0 0-6 6v46h50v-46a6 6 0 0 0-6-6Zm-38-2a8 8 0 0 0-8 8v48h54v-48a8 8 0 0 0-8-8H12Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-tertiary" d="M68.677 60.935c1.928-3.316 6.718-3.316 8.645 0l16.31 28.052c1.938 3.334-.467 7.513-4.323 7.513H56.691c-3.856 0-6.26-4.18-4.323-7.513l16.31-28.052Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M91.903 89.993 75.593 61.94c-1.156-1.99-4.03-1.99-5.187 0L54.097 89.993c-1.163 2 .28 4.507 2.594 4.507h32.618c2.314 0 3.757-2.507 2.594-4.507Zm-14.58-29.058c-1.928-3.316-6.718-3.316-8.645 0l-16.31 28.052c-1.938 3.334.467 7.513 4.323 7.513h32.618c3.856 0 6.26-4.18 4.323-7.513l-16.31-28.052Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" d="M75 88.5a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM70.06 71.053a.5.5 0 0 1 .496-.553h4.887a.5.5 0 0 1 .498.553l-1.393 13a.5.5 0 0 1-.498.447h-2.1a.5.5 0 0 1-.498-.447l-1.393-13Z"/>
|
|
<path class="tw-fill-illustration-bg-secondary" d="M21 80.5a8 8 0 0 1 8-8h4a8 8 0 0 1 8 8v12H21v-12Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M33 74.5h-4a6 6 0 0 0-6 6v10h16v-10a6 6 0 0 0-6-6Zm-4-2a8 8 0 0 0-8 8v12h20v-12a8 8 0 0 0-8-8h-4Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M13 46.5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-8Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M15 47.5v6h6v-6h-6Zm-1-2a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-8a1 1 0 0 0-1-1h-8Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M13 59.5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-8Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M15 60.5v6h6v-6h-6Zm-1-2a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-8a1 1 0 0 0-1-1h-8Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M26 46.5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-8Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M28 47.5v6h6v-6h-6Zm-1-2a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-8a1 1 0 0 0-1-1h-8Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M26 59.5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-8Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M28 60.5v6h6v-6h-6Zm-1-2a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-8a1 1 0 0 0-1-1h-8Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M39 59.5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 0 1 0 0 2h6a1 1 0 1 0 0-2h-6Zm-11 1a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2h-6a1 1 0 0 1-1-1Zm11 5a1 1 0 1 0 0 2h6a1 1 0 1 0 0-2h-6Zm-1 7a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2h-6a1 1 0 0 1-1-1Zm1 5a1 1 0 1 0 0 2h6a1 1 0 1 0 0-2h-6Z" clip-rule="evenodd"/>
|
|
</svg>
|
|
`;var Um=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Om=e=>({key:e}),Nm=()=>({key:"logOut"});function jm(e,t){1&e&&(w.j41(0,"div",0),w.nrm(1,"bit-icon",1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.Y8G("ariaLabel",w.bMT(2,1,"loading")))}function Ym(e,t){if(1&e){const e=w.RV6();w.nrm(0,"div",2),w.j41(1,"bit-callout",3),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"button",4),w.bIt("click",function(){B.eBV(e);const t=w.XpG(2);return B.Njj(t.logout())}),w.EFF(5),w.nI1(6,"i18n"),w.k0s()}2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,2,"loginOnTrustedDeviceOrAskAdminToAssignPassword")," "),w.R7$(3),w.SpI(" ",w.bMT(6,4,"logOut")," "))}function Xm(e,t){1&e&&(w.j41(0,"bit-callout",7),w.nI1(1,"i18n"),w.EFF(2),w.nI1(3,"i18n"),w.k0s()),2&e&&(w.Y8G("title",w.mNQ(w.bMT(1,3,"resetPasswordPolicyAutoEnroll"))),w.R7$(2),w.SpI(" ",w.bMT(3,5,"resetPasswordAutoEnrollInviteWarning")," "))}function zm(e,t){if(1&e){const e=w.RV6();w.DNE(0,Xm,4,7,"bit-callout",5),w.j41(1,"auth-input-password",6),w.bIt("onPasswordFormSubmit",function(t){B.eBV(e);const i=w.XpG(2);return B.Njj(i.handlePasswordFormSubmit(t))})("onSecondaryButtonClick",function(){B.eBV(e);const t=w.XpG(2);return B.Njj(t.logout())}),w.k0s()}if(2&e){const e=w.XpG(2);w.Y8G("ngIf",e.resetPasswordAutoEnroll),w.R7$(),w.Y8G("flow",e.inputPasswordFlow)("email",e.email)("userId",e.userId)("loading",e.submitting)("masterPasswordPolicyOptions",e.masterPasswordPolicyOptions)("primaryButtonText",w.eq3(8,Om,e.userType===e.SetInitialPasswordUserType.OFFBOARDED_TDE_ORG_USER?"setPassword":"createAccount"))("secondaryButtonText",w.lJ4(10,Nm))}}function Lm(e,t){if(1&e&&w.nVh(0,Ym,7,6)(1,zm,2,11),2&e){const e=w.XpG();w.vxM(e.userType===e.SetInitialPasswordUserType.OFFBOARDED_TDE_ORG_USER_UNTRUSTED_DEVICE?0:1)}}class Wm{constructor(e,t,i,n,r,s,o,a,l,c,d,u,h,A,p,g,v,m,f,y){this.accountService=e,this.activatedRoute=t,this.anonLayoutWrapperDataService=i,this.dialogService=n,this.i18nService=r,this.keyService=s,this.logoutService=o,this.logService=a,this.masterPasswordService=l,this.messagingService=c,this.organizationApiService=d,this.policyApiService=u,this.policyService=h,this.router=A,this.setInitialPasswordService=p,this.ssoLoginService=g,this.syncService=v,this.toastService=m,this.validationService=f,this.configService=y,this.inputPasswordFlow=ne.m5.SetInitialPasswordAuthedUser,this.initializing=!0,this.masterPasswordPolicyOptions=null,this.submitting=!1,this.SetInitialPasswordUserType=xe}ngOnInit(){return Um(this,void 0,void 0,function*(){yield this.syncService.fullSync(!0);const e=yield(0,u._)(this.accountService.activeAccount$);this.userId=null==e?void 0:e.id,this.email=null==e?void 0:e.email,yield this.establishUserType(),yield this.getOrgInfo(),this.initializing=!1})}handlePasswordFormSubmit(e){return Um(this,void 0,void 0,function*(){switch(this.submitting=!0,this.userType){case xe.JIT_PROVISIONED_MP_ORG_USER:{if(yield this.configService.getFeatureFlag(Kr.TO.EnableAccountEncryptionV2JitPasswordRegistration))return void(yield this.setInitialPasswordJitMPUserV2Encryption(e));const t="Could not set initial password.";(0,Ee.B)(e.newPassword,"newPassword",t),(0,Se.x)(e.kdfConfig,"kdfConfig",t),(0,Ee.B)(this.email,"email",t);const i=yield this.keyService.makeMasterKey(e.newPassword,this.email.trim().toLowerCase(),e.kdfConfig),n=yield this.keyService.hashMasterKey(e.newPassword,i);e.newMasterKey=i,e.newServerMasterKeyHash=n,yield this.setInitialPassword(e);break}case xe.TDE_ORG_USER_RESET_PASSWORD_PERMISSION_REQUIRES_MP:yield this.setInitialPasswordTdeUserWithPermission(e);break;case xe.OFFBOARDED_TDE_ORG_USER:yield this.setInitialPasswordTdeOffboarding(e);break;default:this.logService.error(`Unexpected user type: ${this.userType}. Could not set initial password.`),this.validationService.showError("Unexpected user type. Could not set initial password.")}})}logout(){return Um(this,void 0,void 0,function*(){(yield this.dialogService.openSimpleDialog({title:{key:"logOut"},content:{key:"logOutConfirmation"},acceptButtonText:{key:"logOut"},type:"warning"}))&&this.messagingService.send("logout")})}establishUserType(){return Um(this,void 0,void 0,function*(){if(!this.userId)throw new Error("userId not found. Could not determine user type.");this.forceSetPasswordReason=yield(0,u._)(this.masterPasswordService.forceSetPasswordReason$(this.userId)),this.forceSetPasswordReason===re.n.TdeOffboardingUntrustedDevice&&(this.userType=xe.OFFBOARDED_TDE_ORG_USER_UNTRUSTED_DEVICE,this.anonLayoutWrapperDataService.setAnonLayoutWrapperData({pageTitle:{key:"unableToCompleteLogin"},pageIcon:Gm})),this.forceSetPasswordReason===re.n.SsoNewJitProvisionedUser&&(this.userType=xe.JIT_PROVISIONED_MP_ORG_USER,this.anonLayoutWrapperDataService.setAnonLayoutWrapperData({pageTitle:{key:"joinOrganization"},pageSubtitle:{key:"finishJoiningThisOrganizationBySettingAMasterPassword"}})),this.forceSetPasswordReason===re.n.TdeUserWithoutPasswordHasPasswordResetPermission&&(this.userType=xe.TDE_ORG_USER_RESET_PASSWORD_PERMISSION_REQUIRES_MP,this.anonLayoutWrapperDataService.setAnonLayoutWrapperData({pageTitle:{key:"setMasterPassword"},pageSubtitle:{key:"orgPermissionsUpdatedMustSetPassword"}})),this.forceSetPasswordReason===re.n.TdeOffboarding&&(this.userType=xe.OFFBOARDED_TDE_ORG_USER,this.anonLayoutWrapperDataService.setAnonLayoutWrapperData({pageTitle:{key:"setMasterPassword"},pageSubtitle:{key:"tdeDisabledMasterPasswordRequired"}})),this.forceSetPasswordReason===re.n.None&&(yield this.router.navigate(["/"]))})}getOrgInfo(){return Um(this,void 0,void 0,function*(){var e,t;if(!this.userId)throw new Error("userId not found. Could not handle query params.");if(this.userType===xe.OFFBOARDED_TDE_ORG_USER)return void(this.masterPasswordPolicyOptions=null!==(e=yield(0,u._)(this.policyService.masterPasswordPolicyOptions$(this.userId)))&&void 0!==e?e:null);const i=yield(0,u._)(this.activatedRoute.queryParams);if(this.orgSsoIdentifier=null!==(t=i.identifier)&&void 0!==t?t:yield this.ssoLoginService.getActiveUserOrganizationSsoIdentifier(this.userId),null!=this.orgSsoIdentifier)try{const e=yield this.organizationApiService.getAutoEnrollStatus(this.orgSsoIdentifier);this.orgId=e.id,this.resetPasswordAutoEnroll=e.resetPasswordEnabled,this.masterPasswordPolicyOptions=yield this.policyApiService.getMasterPasswordPolicyOptsForOrgUser(this.orgId)}catch(n){this.toastService.showToast({variant:"error",title:"",message:this.i18nService.t("errorOccurred")})}})}setInitialPasswordJitMPUserV2Encryption(e){return Um(this,void 0,void 0,function*(){const t="Could not set initial password for SSO JIT master password encryption user.";(0,Ee.B)(e.newPassword,"newPassword",t),(0,Ee.B)(e.salt,"salt",t),(0,Ee.B)(this.orgSsoIdentifier,"orgSsoIdentifier",t),(0,Ee.B)(this.orgId,"orgId",t),(0,Ee.B)(this.userId,"userId",t),(0,Se.x)(e.newPasswordHint,"newPasswordHint",t),(0,Se.x)(this.resetPasswordAutoEnroll,"resetPasswordAutoEnroll",t);try{const t={newPasswordHint:e.newPasswordHint,orgSsoIdentifier:this.orgSsoIdentifier,orgId:this.orgId,resetPasswordAutoEnroll:this.resetPasswordAutoEnroll,newPassword:e.newPassword,salt:e.salt};yield this.setInitialPasswordService.initializePasswordJitPasswordUserV2Encryption(t,this.userId),this.showSuccessToastByUserType(),this.submitting=!1,yield this.router.navigate(["vault"])}catch(i){this.logService.error("Error setting initial password",i),this.validationService.showError(i),this.submitting=!1}})}setInitialPassword(e){return Um(this,void 0,void 0,function*(){const t="Could not set initial password.";(0,Ee.B)(e.newMasterKey,"newMasterKey",t),(0,Ee.B)(e.newServerMasterKeyHash,"newServerMasterKeyHash",t),(0,Ee.B)(e.kdfConfig,"kdfConfig",t),(0,Ee.B)(e.newPassword,"newPassword",t),(0,Ee.B)(e.salt,"salt",t),(0,Ee.B)(this.orgSsoIdentifier,"orgSsoIdentifier",t),(0,Ee.B)(this.orgId,"orgId",t),(0,Ee.B)(this.userType,"userType",t),(0,Ee.B)(this.userId,"userId",t),(0,Se.x)(e.newPasswordHint,"newPasswordHint",t),(0,Se.x)(this.resetPasswordAutoEnroll,"resetPasswordAutoEnroll",t);try{const t={newMasterKey:e.newMasterKey,newServerMasterKeyHash:e.newServerMasterKeyHash,newPasswordHint:e.newPasswordHint,kdfConfig:e.kdfConfig,orgSsoIdentifier:this.orgSsoIdentifier,orgId:this.orgId,resetPasswordAutoEnroll:this.resetPasswordAutoEnroll,newPassword:e.newPassword,salt:e.salt};yield this.setInitialPasswordService.setInitialPassword(t,this.userType,this.userId),this.showSuccessToastByUserType(),this.submitting=!1,yield this.router.navigate(["vault"])}catch(i){this.logService.error("Error setting initial password",i),this.validationService.showError(i),this.submitting=!1}})}setInitialPasswordTdeUserWithPermission(e){return Um(this,void 0,void 0,function*(){const t="Could not set initial password for TDE user with Manage Account Recovery permission.";(0,Ee.B)(e.newPassword,"newPassword",t),(0,Ee.B)(e.salt,"salt",t),(0,Se.x)(e.kdfConfig,"kdfConfig",t),(0,Se.x)(e.newPasswordHint,"newPasswordHint",t),(0,Ee.B)(this.orgSsoIdentifier,"orgSsoIdentifier",t),(0,Ee.B)(this.orgId,"orgId",t),(0,Se.x)(this.resetPasswordAutoEnroll,"resetPasswordAutoEnroll",t),(0,Ee.B)(this.userId,"userId",t);try{const t={newPassword:e.newPassword,salt:e.salt,kdfConfig:e.kdfConfig,newPasswordHint:e.newPasswordHint,orgSsoIdentifier:this.orgSsoIdentifier,orgId:this.orgId,resetPasswordAutoEnroll:this.resetPasswordAutoEnroll};yield this.setInitialPasswordService.setInitialPasswordTdeUserWithPermission(t,this.userId),this.showSuccessToastByUserType(),this.submitting=!1,yield this.router.navigate(["vault"])}catch(i){this.logService.error("Error setting initial password",i),this.validationService.showError(i),this.submitting=!1}})}setInitialPasswordTdeOffboarding(e){return Um(this,void 0,void 0,function*(){const t="Could not set initial password.";(0,Ee.B)(e.newPassword,"newPassword",t),(0,Ee.B)(e.salt,"salt",t),(0,Se.x)(e.kdfConfig,"kdfConfig",t),(0,Se.x)(e.newPasswordHint,"newPasswordHint",t),(0,Ee.B)(this.userId,"userId",t);try{const t={newPassword:e.newPassword,salt:e.salt,kdfConfig:e.kdfConfig,newPasswordHint:e.newPasswordHint};yield this.setInitialPasswordService.setInitialPasswordTdeOffboarding(t,this.userId),this.showSuccessToastByUserType(),yield this.logoutService.logout(this.userId),yield this.router.navigate(["/"])}catch(i){this.logService.error("Error setting initial password during TDE offboarding",i),this.validationService.showError(i)}finally{this.submitting=!1}})}showSuccessToastByUserType(){this.userType===xe.JIT_PROVISIONED_MP_ORG_USER?(this.toastService.showToast({variant:"success",title:"",message:this.i18nService.t("accountSuccessfullyCreated")}),this.toastService.showToast({variant:"success",title:"",message:this.i18nService.t("inviteAccepted")})):this.toastService.showToast({variant:"success",title:"",message:this.i18nService.t("masterPasswordSuccessfullySet")})}}Wm.ɵfac=function(e){return new(e||Wm)(w.rXU(N.D),w.rXU(R.nX),w.rXU(pe.f),w.rXU(T.o),w.rXU(he.W),w.rXU(I.Lu),w.rXU(g.k4),w.rXU(se.K),w.rXU(Ae.O),w.rXU(oe.U),w.rXU(Xe.X),w.rXU(He.m),w.rXU(Je.m),w.rXU(R.Ix),w.rXU(Ve),w.rXU(ui._),w.rXU(mc.H),w.rXU(F.f),w.rXU(oa.B),w.rXU(O.w))},Wm.ɵcmp=w.VBU({type:Wm,selectors:[["ng-component"]],decls:2,vars:1,consts:[[1,"tw-flex","tw-items-center","tw-justify-center"],["name","bwi-spinner",1,"bwi-spin","bwi-3x",3,"ariaLabel"],[1,"tw-mt-4"],["type","warning"],["type","button","bitButton","","block","","buttonType","secondary",3,"click"],["type","warning",3,"title",4,"ngIf"],[3,"onPasswordFormSubmit","onSecondaryButtonClick","flow","email","userId","loading","masterPasswordPolicyOptions","primaryButtonText","secondaryButtonText"],["type","warning",3,"title"]],template:function(e,t){1&e&&w.nVh(0,jm,3,3,"div",0)(1,Lm,2,1),2&e&&w.vxM(t.initializing?0:1)},dependencies:[Ah.t,fh.Q,ae.G,L.MD,L.bT,le.o,ve.R,ne.tu,ce.$Z],encapsulation:2});const Km=te.JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 10 80 60">
|
|
<path class="tw-fill-illustration-bg-primary" d="M0 14.8A4.8 4.8 0 0 1 4.8 10h45.4a4.8 4.8 0 0 1 4.8 4.8v32.067a4.8 4.8 0 0 1-4.8 4.8H4.8a4.8 4.8 0 0 1-4.8-4.8V14.8Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M50.2 11.6H4.8a3.2 3.2 0 0 0-3.2 3.2v32.067a3.2 3.2 0 0 0 3.2 3.2h45.4a3.2 3.2 0 0 0 3.2-3.2V14.8a3.2 3.2 0 0 0-3.2-3.2ZM4.8 10A4.8 4.8 0 0 0 0 14.8v32.067a4.8 4.8 0 0 0 4.8 4.8h45.4a4.8 4.8 0 0 0 4.8-4.8V14.8a4.8 4.8 0 0 0-4.8-4.8H4.8Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M54.167 19.966H.834v-1.6h53.333v1.6Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" d="M51.667 15a1.667 1.667 0 1 1-3.333 0 1.667 1.667 0 0 1 3.333 0ZM46.667 15a1.667 1.667 0 1 1-3.333 0 1.667 1.667 0 0 1 3.333 0ZM41.667 15a1.667 1.667 0 1 1-3.333 0 1.667 1.667 0 0 1 3.333 0Z"/>
|
|
<path class="tw-fill-illustration-bg-secondary" d="M33.6 50.4c0 7.29-5.91 13.2-13.2 13.2-7.29 0-13.2-5.91-13.2-13.2 0-7.29 5.91-13.2 13.2-13.2 7.29 0 13.2 5.91 13.2 13.2Z"/>
|
|
<path class="tw-fill-illustration-tertiary" d="M30.3 50.4c0 5.468-4.432 9.9-9.9 9.9-5.467 0-9.9-4.432-9.9-9.9s4.433-9.9 9.9-9.9c5.468 0 9.9 4.432 9.9 9.9Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M20.4 58.716a8.316 8.316 0 1 0 0-16.632 8.316 8.316 0 0 0 0 16.632Zm0 1.584c5.468 0 9.9-4.432 9.9-9.9s-4.432-9.9-9.9-9.9c-5.467 0-9.9 4.432-9.9 9.9s4.433 9.9 9.9 9.9Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" d="M19.575 46.275a.825.825 0 1 1 1.65 0v8.25a.825.825 0 0 1-1.65 0v-8.25Z"/>
|
|
<path class="tw-fill-illustration-outline" d="M24.525 49.575a.825.825 0 1 1 0 1.65h-8.25a.825.825 0 0 1 0-1.65h8.25Z"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M68.333 35c0 6.443-5.223 11.666-11.666 11.666C50.223 46.666 45 41.443 45 35c0-6.444 5.223-11.667 11.667-11.667 6.443 0 11.666 5.223 11.666 11.667Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M56.667 45.066c5.56 0 10.066-4.507 10.066-10.066 0-5.56-4.507-10.067-10.066-10.067C51.107 24.933 46.6 29.44 46.6 35c0 5.56 4.507 10.066 10.067 10.066Zm0 1.6c6.443 0 11.666-5.223 11.666-11.666 0-6.444-5.223-11.667-11.666-11.667C50.223 23.333 45 28.556 45 35c0 6.443 5.223 11.666 11.667 11.666Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M78.255 59.98A22.916 22.916 0 0 1 80 68.75c0 .69-.56 1.25-1.25 1.25H35.417c-.69 0-1.25-.56-1.25-1.25a22.916 22.916 0 0 1 44.088-8.77Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M78.397 68.4a21.317 21.317 0 0 0-42.628 0h42.628Zm1.603.35a22.916 22.916 0 0 0-45.833 0c0 .69.56 1.25 1.25 1.25H78.75c.69 0 1.25-.56 1.25-1.25Z" clip-rule="evenodd"/>
|
|
</svg>
|
|
`;var Zm=i(9045);const Hm=te.JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 10 80 60">
|
|
<path class="tw-fill-illustration-bg-primary" d="M7.5 15a5 5 0 0 1 5-5h55a5 5 0 0 1 5 5v35a5 5 0 0 1-5 5h-55a5 5 0 0 1-5-5V15Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M67.5 11.667h-55A3.333 3.333 0 0 0 9.167 15v35a3.333 3.333 0 0 0 3.333 3.333h55A3.333 3.333 0 0 0 70.833 50V15a3.333 3.333 0 0 0-3.333-3.333ZM12.5 10a5 5 0 0 0-5 5v35a5 5 0 0 0 5 5h55a5 5 0 0 0 5-5V15a5 5 0 0 0-5-5h-55Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-secondary" d="M7.5 15h65v35h-65V15Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M70.833 16.667H9.167v31.666h61.666V16.667ZM7.5 15v35h65V15h-65Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-primary" d="M32.5 54.167h15v15h-15v-15Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M31.667 53.334h16.666v15H55a.833.833 0 0 1 0 1.667H25a.833.833 0 0 1 0-1.667h6.667v-15Zm1.666 15h13.334V55.001H33.333v13.333Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M0 40a3.333 3.333 0 0 1 3.333-3.333h15A3.333 3.333 0 0 1 21.667 40v26.667A3.333 3.333 0 0 1 18.333 70h-15A3.333 3.333 0 0 1 0 66.667V40Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M18.333 38.334h-15c-.92 0-1.666.746-1.666 1.666v26.667c0 .92.746 1.667 1.666 1.667h15c.92 0 1.667-.746 1.667-1.667V40c0-.92-.746-1.666-1.667-1.666Zm-15-1.667A3.333 3.333 0 0 0 0 40v26.667A3.333 3.333 0 0 0 3.333 70h15a3.333 3.333 0 0 0 3.334-3.333V40a3.333 3.333 0 0 0-3.334-3.333h-15Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M8.333 40.833c0-.46.373-.833.834-.833H12.5a.833.833 0 0 1 0 1.667H9.167a.833.833 0 0 1-.834-.834Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-primary" fill-rule="evenodd" d="M40 45.834c7.364 0 13.333-5.97 13.333-13.334 0-7.363-5.97-13.333-13.333-13.333-7.364 0-13.333 5.97-13.333 13.333 0 7.364 5.97 13.334 13.333 13.334ZM34.167 27.5a2.5 2.5 0 0 0-2.5 2.5v8.334a2.5 2.5 0 0 0 2.5 2.5h11.666a2.5 2.5 0 0 0 2.5-2.5V30a2.5 2.5 0 0 0-2.5-2.5H34.167Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-tertiary" d="M31.667 30a2.5 2.5 0 0 1 2.5-2.5h11.666a2.5 2.5 0 0 1 2.5 2.5v8.333a2.5 2.5 0 0 1-2.5 2.5H34.167a2.5 2.5 0 0 1-2.5-2.5V30Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M45.833 29.167H34.167a.833.833 0 0 0-.834.833v8.333c0 .46.373.834.834.834h11.666c.46 0 .834-.373.834-.834V30a.833.833 0 0 0-.834-.833ZM34.167 27.5a2.5 2.5 0 0 0-2.5 2.5v8.333a2.5 2.5 0 0 0 2.5 2.5h11.666a2.5 2.5 0 0 0 2.5-2.5V30a2.5 2.5 0 0 0-2.5-2.5H34.167Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" d="M39.167 32.5a.833.833 0 0 1 1.666 0v3.334a.833.833 0 0 1-1.666 0V32.5Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M35.833 26.667a4.167 4.167 0 0 1 8.334 0v.833H42.5v-.833a2.5 2.5 0 0 0-5 0v.833h-1.667v-.833Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M50 33.333A3.333 3.333 0 0 1 53.333 30h23.334A3.333 3.333 0 0 1 80 33.333v33.334A3.333 3.333 0 0 1 76.667 70H53.333A3.333 3.333 0 0 1 50 66.667V33.333Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M76.667 31.667H53.333c-.92 0-1.666.746-1.666 1.666v33.334c0 .92.746 1.666 1.666 1.666h23.334c.92 0 1.666-.746 1.666-1.666V33.333c0-.92-.746-1.666-1.666-1.666ZM53.333 30A3.333 3.333 0 0 0 50 33.333v33.334A3.333 3.333 0 0 0 53.333 70h23.334A3.333 3.333 0 0 0 80 66.667V33.333A3.333 3.333 0 0 0 76.667 30H53.333Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-secondary" d="M67.5 63.334a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M65 64.167a.833.833 0 1 0 0-1.666.833.833 0 0 0 0 1.666Zm0 1.667a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-secondary" d="M33.333 55h13.334v5H33.333v-5Z"/>
|
|
</svg>
|
|
`;var Jm=i(54006);const qm=te.JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="5 4 87 87">
|
|
<path class="tw-fill-illustration-bg-primary" d="M90 48c0 23.196-18.804 42-42 42S6 71.196 6 48 24.804 6 48 6s42 18.804 42 42Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M48 7C25.356 7 7 25.356 7 48s18.356 41 41 41 41-18.356 41-41S70.644 7 48 7ZM5 48C5 24.252 24.252 5 48 5s43 19.252 43 43-19.252 43-43 43S5 71.748 5 48Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-secondary" d="M11 72a3 3 0 0 1 3-3h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H14a3 3 0 0 1-3-3V72Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M28 71H14a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V72a1 1 0 0 0-1-1Zm-14-2a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V72a3 3 0 0 0-3-3H14Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" d="M20 75a1 1 0 1 1 2 0v4a1 1 0 1 1-2 0v-4Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M16 68a5 5 0 0 1 10 0v1h-2v-1a3 3 0 1 0-6 0v1h-2v-1Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-tertiary" d="M92 16c0 6.627-5.373 12-12 12s-12-5.373-12-12S73.373 4 80 4s12 5.373 12 12Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M80 26c5.523 0 10-4.477 10-10S85.523 6 80 6s-10 4.477-10 10 4.477 10 10 10Zm0 2c6.627 0 12-5.373 12-12S86.627 4 80 4 68 9.373 68 16s5.373 12 12 12Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M85.707 12.293a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414 0l-3-3a1 1 0 0 1 1.414-1.414L78 18.586l6.293-6.293a1 1 0 0 1 1.414 0Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-secondary" d="M43 60.883V52l7 4-5.052 5.63A1.117 1.117 0 0 1 43 60.882Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="m42 50.276 9.571 5.47-5.878 6.55A2.117 2.117 0 0 1 42 60.884V50.276Zm2 3.447v7.16a.117.117 0 0 0 .204.078l4.225-4.708L44 53.723Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M31.186 44.957 58.6 32.123a1.5 1.5 0 0 1 2.128 1.513l-2.763 26.793a1.5 1.5 0 0 1-2.366 1.066L42.3 51.965l-11.018-4.25c-1.233-.476-1.293-2.198-.096-2.758Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M59.733 33.533a.5.5 0 0 0-.709-.504L31.61 45.862a.5.5 0 0 0 .032.92l10.42 4.02 8.341-8.106a1 1 0 1 1 1.394 1.434l-7.942 7.719 12.327 8.833a.5.5 0 0 0 .788-.356l2.764-26.793Zm-17.912 19.32-10.899-4.206c-2.054-.793-2.154-3.663-.16-4.596l27.414-12.834c1.76-.824 3.746.588 3.547 2.521L58.96 60.532c-.197 1.909-2.383 2.893-3.943 1.775l-13.196-9.455Z" clip-rule="evenodd"/>
|
|
</svg>
|
|
`;var $m=i(32415);const _m=te.JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 12.12 96 76">
|
|
<path class="tw-fill-illustration-bg-secondary" fill-rule="evenodd" d="M77 43.121h2c9.389 0 17 7.611 17 17s-7.611 17-17 17H21v-.086C9.234 76.022 0 66.15 0 54.121c0-10.663 7.256-19.63 17.099-22.236C21.599 20.32 32.842 12.121 46 12.121c17.12 0 31 13.88 31 31Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-primary" fill-rule="evenodd" d="M56 53.121c2.903 0 5.707-.427 8.352-1.22 3.427 4.966 9.157 8.22 15.648 8.22 5.856 0 11.094-2.65 14.579-6.815C91.952 47.31 85.965 43.121 79 43.121h-2c0-17.12-13.88-31-31-31a30.861 30.861 0 0 0-18.387 6.039A29.12 29.12 0 0 0 27 24.121c0 16.016 12.984 29 29 29Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M75 45.121v-2c0-16.016-12.984-29-29-29-12.306 0-22.826 7.666-27.037 18.49l-.369.947-.983.26C8.623 36.199 2 44.389 2 54.121c0 10.982 8.43 19.997 19.172 20.922l.91.078H79c8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15h-4ZM21 77.035C9.234 76.022 0 66.15 0 54.121c0-10.663 7.256-19.63 17.099-22.236C21.599 20.32 32.842 12.121 46 12.121c17.12 0 31 13.88 31 31h2c9.389 0 17 7.611 17 17s-7.611 17-17 17H21v-.086Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-tertiary" fill-rule="evenodd" d="M31 88.121c6.326 0 11.795-3.671 14.392-9h7.002a2 2 0 0 0 1.11-.336L56 77.121l1.895 1.516a1 1 0 0 0 1.225.02l1.38-1.036 1.38 1.035a1 1 0 0 0 1.225-.019L65 77.121l3.578 1.789a2 2 0 0 0 .894.211h3.608a2 2 0 0 0 1.519-.698l4.843-5.651a1 1 0 0 0 0-1.302L74.6 65.82a2 2 0 0 0-1.519-.699H45.392c-2.597-5.328-8.066-9-14.392-9-8.837 0-16 7.163-16 16s7.163 16 16 16Zm-6-13a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M44.141 77.121h8.253l3.713-2.475 2.432 1.945 1.961-1.47 1.96 1.47 2.29-1.831 4.722 2.361h3.608l4.286-5-4.286-5H44.141l-.547-1.124C41.319 61.33 36.532 58.121 31 58.121c-7.732 0-14 6.268-14 14s6.268 14 14 14c5.532 0 10.32-3.209 12.594-7.876l.547-1.124Zm33.783-4.35h-.001Zm-.002-1.3h.002-.002ZM74.6 65.82a2 2 0 0 0-1.519-.699H45.392c-2.597-5.328-8.066-9-14.392-9-8.837 0-16 7.163-16 16s7.163 16 16 16c6.326 0 11.795-3.671 14.392-9h7.002a2 2 0 0 0 1.11-.336L56 77.121l1.895 1.516a1 1 0 0 0 1.225.02l1.38-1.036 1.38 1.035a1 1 0 0 0 1.225-.019L65 77.121l3.578 1.789a2 2 0 0 0 .894.211h3.608a2 2 0 0 0 1.519-.698l4.843-5.651a1 1 0 0 0 0-1.302L74.6 65.82ZM30 72.12a5 5 0 1 1-10 0 5 5 0 0 1 10 0Zm-2 0a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z" clip-rule="evenodd"/>
|
|
</svg>
|
|
`;var ef=i(20266),tf=i(36951);const nf=te.JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 12.75 96 72">
|
|
<path class="tw-fill-illustration-bg-primary" d="M0 18.512a5.76 5.76 0 0 1 5.76-5.76h54.48a5.76 5.76 0 0 1 5.76 5.76v38.48a5.76 5.76 0 0 1-5.76 5.76H5.76A5.76 5.76 0 0 1 0 56.992v-38.48Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M60.24 14.672H5.76a3.84 3.84 0 0 0-3.84 3.84v38.48a3.84 3.84 0 0 0 3.84 3.84h54.48a3.84 3.84 0 0 0 3.84-3.84v-38.48a3.84 3.84 0 0 0-3.84-3.84Zm-54.48-1.92A5.76 5.76 0 0 0 0 18.512v38.48a5.76 5.76 0 0 0 5.76 5.76h54.48a5.76 5.76 0 0 0 5.76-5.76v-38.48a5.76 5.76 0 0 0-5.76-5.76H5.76Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M65 24.712H1v-1.92h64v1.92Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" d="M62 18.752a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM56 18.752a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM50 18.752a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"/>
|
|
<path class="tw-fill-illustration-tertiary" d="M21.099 48.635c1.515-2.606 5.28-2.606 6.795 0l10.053 17.29c1.523 2.62-.367 5.906-3.398 5.906H14.444c-3.03 0-4.92-3.285-3.398-5.905L21.1 48.636Z"/>
|
|
<path class="tw-fill-illustration-outline" d="M20.373 48.213c1.839-3.163 6.408-3.163 8.247 0l10.053 17.29c1.849 3.18-.446 7.168-4.124 7.168H14.444c-3.678 0-5.973-3.987-4.124-7.167l10.053-17.29Zm6.795.844c-1.192-2.049-4.152-2.049-5.343 0L11.773 66.349c-1.198 2.06.288 4.643 2.671 4.643h20.105c2.383 0 3.869-2.583 2.671-4.643l-10.052-17.29Z"/>
|
|
<circle class="tw-fill-illustration-outline" cx="24.496" cy="66.428" r="1.351" />
|
|
<path class="tw-fill-illustration-outline" d="M22.517 54.707a.393.393 0 0 1 .39-.434h3.178c.234 0 .416.202.391.434l-.929 8.67a.393.393 0 0 1-.39.35h-1.32c-.201 0-.37-.151-.391-.35L22.977 59l-.46-4.293Z"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M82 42.752c0 7.732-6.268 14-14 14s-14-6.268-14-14 6.268-14 14-14 14 6.268 14 14Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M68 54.832c6.671 0 12.08-5.408 12.08-12.08S74.67 30.672 68 30.672c-6.672 0-12.08 5.408-12.08 12.08s5.408 12.08 12.08 12.08Zm0 1.92c7.732 0 14-6.268 14-14s-6.268-14-14-14-14 6.268-14 14 6.268 14 14 14Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M93.907 72.728A27.5 27.5 0 0 1 96 83.252a1.5 1.5 0 0 1-1.5 1.5h-52a1.5 1.5 0 0 1-1.5-1.5 27.5 27.5 0 0 1 52.907-10.524Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M94.076 82.832a25.58 25.58 0 0 0-51.153 0h51.153Zm1.924.42a27.5 27.5 0 1 0-55 0 1.5 1.5 0 0 0 1.5 1.5h52a1.5 1.5 0 0 0 1.5-1.5Z" clip-rule="evenodd"/>
|
|
</svg>
|
|
`,rf=te.JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0.52 0.12 120 120">
|
|
<path class="tw-fill-illustration-bg-primary" d="M120.518 60.121c0 33.137-26.863 60-60 60s-60-26.863-60-60 26.863-60 60-60 60 26.863 60 60Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M60.518 117.621c31.756 0 57.5-25.743 57.5-57.5 0-31.756-25.744-57.5-57.5-57.5s-57.5 25.744-57.5 57.5 25.744 57.5 57.5 57.5Zm0 2.5c33.137 0 60-26.863 60-60s-26.863-60-60-60-60 26.863-60 60 26.863 60 60 60Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M51.088.858c12.675 9.633 22.026 23.414 26.03 39.32 16.502.649 31.563 6.91 43.326 16.93.049.998.074 2.003.074 3.014l-.001.38c-11.422-10.39-26.357-16.986-42.813-17.796a71.535 71.535 0 0 1 1.564 14.916c0 16.114-5.35 30.978-14.37 42.915a68.918 68.918 0 0 0 16.87 2.085 68.566 68.566 0 0 0 25.496-4.883 60.441 60.441 0 0 1-3.429 3.9 71.193 71.193 0 0 1-22.067 3.483 71.36 71.36 0 0 1-18.555-2.44A71.615 71.615 0 0 1 45.5 118.227a59.379 59.379 0 0 1-3.288-.949 69.075 69.075 0 0 0 18.38-15.355C43.27 96.538 28.78 84.721 19.918 69.265A68.568 68.568 0 0 0 8.75 90.475a59.868 59.868 0 0 1-1.636-2.974 71.13 71.13 0 0 1 11.496-20.618c-5.17-9.868-8.093-21.098-8.093-33.011 0-2.536.132-5.041.39-7.509a60.255 60.255 0 0 1 3.093-4.141 69.204 69.204 0 0 0-.983 11.65c0 11.122 2.641 21.627 7.33 30.923 13.065-15.111 32.376-24.673 53.92-24.673h.253C70.367 24.294 60.712 10.694 47.723 1.49a59.73 59.73 0 0 1 3.365-.63Zm25.68 56.764c0-5.15-.566-10.168-1.64-14.995a70.333 70.333 0 0 0-.86-.005c-21.139 0-40.05 9.54-52.661 24.55 8.663 15.617 23.23 27.506 40.687 32.653 9.071-11.65 14.474-26.295 14.474-42.203Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-tertiary" d="M84.268 40.121a7.5 7.5 0 1 1-15 0 7.5 7.5 0 0 1 15 0Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M76.768 45.121a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0 2.5a7.5 7.5 0 1 0 0-15 7.5 7.5 0 0 0 0 15Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M70.518 100.121a7.5 7.5 0 1 1-15 0 7.5 7.5 0 0 1 15 0Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M63.018 105.121a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0 2.5a7.5 7.5 0 1 0 0-15 7.5 7.5 0 0 0 0 15Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-secondary" d="M28.018 65.121a7.5 7.5 0 1 1-15 0 7.5 7.5 0 0 1 15 0Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M20.518 70.121a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0 2.5a7.5 7.5 0 1 0 0-15 7.5 7.5 0 0 0 0 15Z" clip-rule="evenodd"/>
|
|
</svg>
|
|
`,sf=te.JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="4.17 0.75 91.67 95.83">
|
|
<path class="tw-fill-illustration-bg-secondary" d="M56.25 9.085A8.333 8.333 0 0 1 64.583.752h8.334a8.333 8.333 0 0 1 8.333 8.333v4.167h-25V9.085Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M72.917 2.835h-8.334a6.25 6.25 0 0 0-6.25 6.25v2.084h20.834V9.085a6.25 6.25 0 0 0-6.25-6.25ZM64.583.752a8.333 8.333 0 0 0-8.333 8.333v4.167h25V9.085A8.333 8.333 0 0 0 72.917.752h-8.334Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-secondary" d="M48.959 17.418a8.333 8.333 0 0 1 8.333-8.333h22.916a8.333 8.333 0 0 1 8.334 8.333v6.25H48.958v-6.25Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M80.209 11.168H57.291a6.25 6.25 0 0 0-6.25 6.25v4.167h35.416v-4.167a6.25 6.25 0 0 0-6.25-6.25ZM57.291 9.085a8.333 8.333 0 0 0-8.334 8.333v6.25h39.584v-6.25a8.333 8.333 0 0 0-8.334-8.333H57.293Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-secondary" d="M41.666 27.835A8.333 8.333 0 0 1 50 19.502h37.5a8.333 8.333 0 0 1 8.333 8.333v66.667c0 1.15-.933 2.083-2.083 2.083H41.666v-68.75Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M87.5 21.585H50a6.25 6.25 0 0 0-6.25 6.25v66.667h50V27.835a6.25 6.25 0 0 0-6.25-6.25ZM50 19.502a8.333 8.333 0 0 0-8.334 8.333v68.75H93.75c1.15 0 2.083-.932 2.083-2.083V27.835a8.333 8.333 0 0 0-8.333-8.333H50Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-primary"" d="M4.167 46.585a8.333 8.333 0 0 1 8.333-8.333h39.583a8.333 8.333 0 0 1 8.334 8.333v47.917c0 1.15-.933 2.083-2.084 2.083H6.25a2.083 2.083 0 0 1-2.083-2.083V46.585Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M52.083 40.335H12.5a6.25 6.25 0 0 0-6.25 6.25v47.917h52.083V46.585a6.25 6.25 0 0 0-6.25-6.25ZM12.5 38.252a8.333 8.333 0 0 0-8.334 8.333v47.917c0 1.15.933 2.083 2.084 2.083h52.083c1.15 0 2.084-.932 2.084-2.083V46.585a8.333 8.333 0 0 0-8.334-8.333H12.5Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-tertiary" d="M21.875 84.085a8.333 8.333 0 0 1 8.333-8.333h4.167a8.333 8.333 0 0 1 8.333 8.333v12.5H21.875v-12.5Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M34.375 77.835h-4.167a6.25 6.25 0 0 0-6.25 6.25v10.417h16.667V84.085a6.25 6.25 0 0 0-6.25-6.25Zm-4.167-2.083a8.333 8.333 0 0 0-8.333 8.333v12.5h20.833v-12.5a8.333 8.333 0 0 0-8.333-8.333h-4.167Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M23.959 85.127a8.333 8.333 0 0 0-8.334-8.333h-1.041c-.576 0-1.042.466-1.042 1.042v18.75h10.417V85.127Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M15.625 94.502V78.877a6.25 6.25 0 0 1 6.25 6.25v9.375h-6.25Zm0-17.708a8.333 8.333 0 0 1 8.334 8.333v11.459H13.542v-18.75c0-.576.466-1.042 1.042-1.042h1.041Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M40.625 85.127a8.333 8.333 0 0 1 8.333-8.333H50c.575 0 1.042.466 1.042 1.042v18.75H40.625V85.127Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M48.958 94.502V78.877a6.25 6.25 0 0 0-6.25 6.25v9.375h6.25Zm0-17.708a8.333 8.333 0 0 0-8.333 8.333v11.459h10.417v-18.75c0-.576-.467-1.042-1.042-1.042h-1.042Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M13.541 48.669c0-.576.467-1.042 1.042-1.042h8.333c.576 0 1.042.466 1.042 1.042v8.333c0 .575-.466 1.042-1.041 1.042h-8.334a1.042 1.042 0 0 1-1.042-1.042v-8.333Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M15.625 49.71v6.25h6.25v-6.25h-6.25Zm-1.042-2.083c-.575 0-1.042.466-1.042 1.042v8.333c0 .575.467 1.042 1.042 1.042h8.333c.576 0 1.042-.467 1.042-1.042v-8.333c0-.576-.466-1.042-1.041-1.042h-8.334Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M13.541 62.21c0-.575.467-1.041 1.042-1.041h8.333c.576 0 1.042.466 1.042 1.042v8.333c0 .575-.466 1.042-1.041 1.042h-8.334a1.042 1.042 0 0 1-1.042-1.042V62.21Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M15.625 63.252v6.25h6.25v-6.25h-6.25Zm-1.042-2.083c-.575 0-1.042.466-1.042 1.042v8.333c0 .575.467 1.042 1.042 1.042h8.333c.576 0 1.042-.467 1.042-1.042V62.21c0-.576-.466-1.042-1.041-1.042h-8.334Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M27.084 48.669c0-.576.466-1.042 1.041-1.042h8.334c.575 0 1.041.466 1.041 1.042v8.333c0 .575-.466 1.042-1.041 1.042h-8.334a1.042 1.042 0 0 1-1.041-1.042v-8.333Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M29.167 49.71v6.25h6.25v-6.25h-6.25Zm-1.042-2.083c-.575 0-1.041.466-1.041 1.042v8.333c0 .575.466 1.042 1.041 1.042h8.334c.575 0 1.041-.467 1.041-1.042v-8.333c0-.576-.466-1.042-1.041-1.042h-8.334Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M27.084 62.21c0-.575.466-1.041 1.041-1.041h8.334c.575 0 1.041.466 1.041 1.042v8.333c0 .575-.466 1.042-1.041 1.042h-8.334a1.042 1.042 0 0 1-1.041-1.042V62.21Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M29.167 63.252v6.25h6.25v-6.25h-6.25Zm-1.042-2.083c-.575 0-1.041.466-1.041 1.042v8.333c0 .575.466 1.042 1.041 1.042h8.334c.575 0 1.041-.467 1.041-1.042V62.21c0-.576-.466-1.042-1.041-1.042h-8.334Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M40.625 48.669c0-.576.466-1.042 1.042-1.042H50c.575 0 1.042.466 1.042 1.042v8.333c0 .575-.467 1.042-1.042 1.042h-8.333a1.042 1.042 0 0 1-1.042-1.042v-8.333Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M42.708 49.71v6.25h6.25v-6.25h-6.25Zm-1.041-2.083c-.576 0-1.042.466-1.042 1.042v8.333c0 .575.466 1.042 1.042 1.042H50c.575 0 1.042-.467 1.042-1.042v-8.333c0-.576-.467-1.042-1.042-1.042h-8.333ZM48.959 28.877c0-.576.466-1.042 1.041-1.042h6.25a1.042 1.042 0 1 1 0 2.083H50a1.042 1.042 0 0 1-1.041-1.041Zm11.458-1.042a1.042 1.042 0 1 0 0 2.083h6.25a1.042 1.042 0 0 0 0-2.083h-6.25Zm9.375 1.042c0-.576.466-1.042 1.041-1.042h6.25a1.042 1.042 0 1 1 0 2.083h-6.25a1.042 1.042 0 0 1-1.041-1.041Zm10.416 0c0-.576.467-1.042 1.042-1.042h6.25a1.042 1.042 0 1 1 0 2.083h-6.25a1.042 1.042 0 0 1-1.041-1.041Zm0 6.25c0-.576.467-1.042 1.042-1.042h6.25a1.042 1.042 0 1 1 0 2.083h-6.25a1.042 1.042 0 0 1-1.041-1.041Zm1.042 5.208a1.042 1.042 0 1 0 0 2.083h6.25a1.042 1.042 0 0 0 0-2.083h-6.25Zm-1.041 7.292c0-.576.466-1.042 1.041-1.042h6.25a1.042 1.042 0 1 1 0 2.083h-6.25a1.042 1.042 0 0 1-1.041-1.041Zm1.041 5.208a1.042 1.042 0 1 0 0 2.083h6.25a1.042 1.042 0 0 0 0-2.083h-6.25Zm-10.416-18.75a1.042 1.042 0 1 0 0 2.083h6.25a1.042 1.042 0 0 0 0-2.083h-6.25Zm-1.042 7.292c0-.576.466-1.042 1.041-1.042h6.25a1.042 1.042 0 1 1 0 2.083h-6.25a1.042 1.042 0 0 1-1.041-1.041Zm1.041 5.208a1.042 1.042 0 1 0 0 2.083h6.25a1.042 1.042 0 0 0 0-2.083h-6.25Zm-1.041 7.292c0-.576.466-1.042 1.041-1.042h6.25a1.042 1.042 0 1 1 0 2.083h-6.25a1.042 1.042 0 0 1-1.041-1.041Zm-9.375-19.792a1.042 1.042 0 1 0 0 2.083h6.25a1.042 1.042 0 0 0 0-2.083h-6.25Zm-11.459 1.042c0-.576.467-1.042 1.042-1.042h6.25a1.042 1.042 0 1 1 0 2.083H50a1.042 1.042 0 0 1-1.041-1.041Zm11.459 5.208a1.042 1.042 0 1 0 0 2.083h6.25a1.042 1.042 0 0 0 0-2.083h-6.25Zm-1.042 7.292c0-.576.467-1.042 1.042-1.042h6.25a1.042 1.042 0 1 1 0 2.083h-6.25a1.042 1.042 0 0 1-1.042-1.041Zm1.042 5.208a1.042 1.042 0 1 0 0 2.083h6.25a1.042 1.042 0 0 0 0-2.083h-6.25Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M40.625 62.21c0-.575.466-1.041 1.042-1.041H50c.575 0 1.042.466 1.042 1.042v8.333c0 .575-.467 1.042-1.042 1.042h-8.333a1.042 1.042 0 0 1-1.042-1.042V62.21Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M42.708 63.252v6.25h6.25v-6.25h-6.25Zm-1.041-2.083c-.576 0-1.042.466-1.042 1.042v8.333c0 .575.466 1.042 1.042 1.042H50c.575 0 1.042-.467 1.042-1.042V62.21c0-.576-.467-1.042-1.042-1.042h-8.333Z" clip-rule="evenodd"/>
|
|
</svg>
|
|
`,of=te.JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 14.58 100 75">
|
|
<path class="tw-fill-illustration-bg-secondary" d="M0 20.833a6.25 6.25 0 0 1 6.25-6.25h87.5a6.25 6.25 0 0 1 6.25 6.25v62.5a6.25 6.25 0 0 1-6.25 6.25H6.25A6.25 6.25 0 0 1 0 83.333v-62.5Z"/>
|
|
<path class="tw-fill-illustration-tertiary" d="M14.583 52.084a4.167 4.167 0 0 1 4.167-4.167h65.625a4.167 4.167 0 0 1 4.166 4.167v6.25a4.167 4.167 0 0 1-4.166 4.166H18.75a4.167 4.167 0 0 1-4.167-4.166v-6.25Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M84.375 50H18.75c-1.15 0-2.084.933-2.084 2.084v6.25c0 1.15.933 2.083 2.084 2.083h65.625c1.15 0 2.083-.933 2.083-2.083v-6.25c0-1.15-.933-2.084-2.083-2.084ZM18.75 47.917a4.167 4.167 0 0 0-4.167 4.167v6.25A4.167 4.167 0 0 0 18.75 62.5h65.625a4.167 4.167 0 0 0 4.166-4.166v-6.25a4.167 4.167 0 0 0-4.166-4.167H18.75Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M33.339 51.638c.575 0 1.041.466 1.041 1.041v1.458l1.366-.447a1.042 1.042 0 0 1 .649 1.98l-1.385.453.868 1.215a1.042 1.042 0 0 1-1.696 1.211l-.843-1.182-.844 1.182a1.042 1.042 0 1 1-1.696-1.21l.868-1.216-1.386-.453a1.042 1.042 0 0 1 .649-1.98l1.367.447V52.68c0-.575.466-1.041 1.042-1.041ZM22.922 51.638c.575 0 1.041.466 1.041 1.041v1.458l1.366-.447a1.042 1.042 0 0 1 .649 1.98l-1.385.453.868 1.215a1.042 1.042 0 0 1-1.695 1.211l-.844-1.182-.844 1.182a1.042 1.042 0 1 1-1.696-1.21l.868-1.216-1.386-.453a1.042 1.042 0 0 1 .649-1.98l1.367.447V52.68c0-.575.466-1.041 1.042-1.041ZM54.172 51.638c.575 0 1.041.466 1.041 1.041v1.458l1.366-.447a1.042 1.042 0 0 1 .649 1.98l-1.385.453.868 1.215a1.042 1.042 0 0 1-1.695 1.211l-.844-1.182-.844 1.182a1.042 1.042 0 1 1-1.696-1.21l.868-1.216-1.386-.453a1.042 1.042 0 0 1 .649-1.98l1.367.447V52.68c0-.575.466-1.041 1.041-1.041ZM43.755 51.638c.575 0 1.041.466 1.041 1.041v1.458l1.366-.447a1.042 1.042 0 0 1 .649 1.98l-1.385.453.868 1.215a1.042 1.042 0 0 1-1.695 1.211l-.844-1.182-.844 1.182a1.042 1.042 0 1 1-1.696-1.21l.868-1.216-1.386-.453a1.042 1.042 0 0 1 .649-1.98l1.367.447V52.68c0-.575.466-1.041 1.041-1.041Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M0 20.833a6.25 6.25 0 0 1 6.25-6.25h87.5a6.25 6.25 0 0 1 6.25 6.25v62.5a6.25 6.25 0 0 1-6.25 6.25H6.25A6.25 6.25 0 0 1 0 83.333v-62.5Zm6.25-4.167h87.5a4.167 4.167 0 0 1 4.167 4.167v2.083H2.083v-2.083a4.167 4.167 0 0 1 4.167-4.167ZM2.083 25v58.333A4.167 4.167 0 0 0 6.25 87.5h87.5a4.167 4.167 0 0 0 4.167-4.167V25H2.083Z" clip-rule="evenodd"/>
|
|
<circle class="tw-fill-illustration-outline" cx="6.771" cy="19.885" r="1.563"/>
|
|
<circle class="tw-fill-illustration-outline" cx="11.423" cy="19.885" r="1.563"/>
|
|
<circle class="tw-fill-illustration-outline" cx="16.145" cy="19.885" r="1.563"/>
|
|
<path class="tw-fill-illustration-bg-primary" d="M62.108 33.334a4.167 4.167 0 0 1 4.167-4.167h23.282a4.167 4.167 0 0 1 4.166 4.167v39.583a4.167 4.167 0 0 1-4.166 4.167H66.275a4.167 4.167 0 0 1-4.167-4.167V33.334Z"/>
|
|
<path class="tw-fill-illustration-bg-secondary" d="M88.942 44.86c0 .575-.467 1.042-1.042 1.042H67.872a1.042 1.042 0 0 1 0-2.084H87.9c.575 0 1.042.467 1.042 1.042ZM88.942 51.062c0 .576-.467 1.042-1.042 1.042H67.872a1.042 1.042 0 0 1 0-2.083H87.9c.575 0 1.042.466 1.042 1.041ZM87.9 58.306a1.042 1.042 0 0 0 0-2.083H67.872a1.042 1.042 0 0 0 0 2.083H87.9ZM88.942 63.542c0 .576-.467 1.042-1.042 1.042H67.872a1.042 1.042 0 0 1 0-2.083H87.9c.575 0 1.042.466 1.042 1.041ZM87.9 70.975a1.042 1.042 0 1 0 0-2.083H67.872a1.042 1.042 0 0 0 0 2.083H87.9Z"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M62.135 33.334a4.167 4.167 0 0 1 4.166-4.167h23.282a4.167 4.167 0 0 1 4.167 4.167v2.083H62.135v-2.083Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M66.275 27.084a6.25 6.25 0 0 0-6.25 6.25v39.583a6.25 6.25 0 0 0 6.25 6.25h23.282a6.25 6.25 0 0 0 6.25-6.25V37.501h.026v-4.167a6.25 6.25 0 0 0-6.25-6.25H66.275ZM62.11 37.501v35.416a4.167 4.167 0 0 0 4.166 4.167h23.282a4.167 4.167 0 0 0 4.167-4.167V37.501H62.109Zm27.448-8.334a4.167 4.167 0 0 1 4.167 4.167v2.083h-31.59v-2.083a4.167 4.167 0 0 1 4.167-4.167h23.256Z" clip-rule="evenodd"/>
|
|
</svg>
|
|
`,af=te.JW`
|
|
<svg version="1.1" viewBox="0 0 290 60" xmlns="http://www.w3.org/2000/svg">
|
|
<title>Vaultwarden</title>
|
|
<path class="tw-fill-marketing-logo" d="m166 46-4.2-13q-.4-1.2-1.5-5.6h-.17q-.83 3.6-1.5 5.6l-4.3 13h-4l-6.2-23h3.6q2.2 8.6 3.3 13 1.2 4.5 1.3 6.1h.17q.23-1.2.73-3.1.52-1.9.89-3l4.2-13h3.7l4.1 13q1.2 3.6 1.6 6h.17q.083-.75.44-2.3.37-1.6 4.3-17h3.6l-6.3 23zm29 0-.69-3.2h-.17q-1.7 2.1-3.4 2.9-1.7.75-4.2.75-3.4 0-5.3-1.7-1.9-1.7-1.9-5 0-6.9 11-7.2l3.9-.12v-1.4q0-2.7-1.2-4-1.1-1.3-3.7-1.3-2.8 0-6.4 1.7l-1.1-2.6q1.7-.92 3.7-1.4 2-.52 4-.52 4.1 0 6 1.8 2 1.8 2 5.8v16zm-7.8-2.4q3.2 0 5.1-1.8 1.9-1.8 1.9-4.9v-2.1l-3.5.15q-4.1.15-5.9 1.3-1.8 1.1-1.8 3.5 0 1.9 1.1 2.8 1.1.98 3.2.98zm28-21q1.5 0 2.7.25l-.48 3.2q-1.4-.31-2.5-.31-2.8 0-4.7 2.2-2 2.2-2 5.6v12h-3.5v-23h2.8l.4 4.2h.17q1.3-2.2 3.1-3.4 1.8-1.2 3.9-1.2zm22 20h-.19q-2.4 3.5-7.2 3.5-4.5 0-7-3.1-2.5-3.1-2.5-8.7 0-5.6 2.5-8.8 2.5-3.1 6.9-3.1 4.6 0 7.1 3.4h.27l-.15-1.6-.083-1.6v-9.3h3.5v32h-2.8zm-6.9.58q3.5 0 5.1-1.9 1.6-1.9 1.6-6.2v-.73q0-4.8-1.6-6.9-1.6-2.1-5.1-2.1-3 0-4.7 2.4-1.6 2.3-1.6 6.7 0 4.4 1.6 6.6 1.6 2.2 4.7 2.2zm27 2.9q-5.1 0-8-3.1-2.9-3.1-2.9-8.5 0-5.5 2.7-8.8 2.7-3.2 7.3-3.2 4.3 0 6.8 2.8 2.5 2.8 2.5 7.4v2.2h-16q.1 4 2 6.1 1.9 2.1 5.4 2.1 3.7 0 7.3-1.5v3.1q-1.8.79-3.5 1.1-1.6.35-3.9.35zm-.94-21q-2.7 0-4.4 1.8-1.6 1.8-1.9 4.9h12q0-3.3-1.5-5-1.5-1.7-4.2-1.7zm31 20v-15q0-2.8-1.3-4.2-1.3-1.4-4-1.4-3.6 0-5.2 1.9-1.7 1.9-1.7 6.4v12h-3.5v-23h2.8l.56 3.1h.17q1.1-1.7 3-2.6 1.9-.94 4.3-.94 4.1 0 6.2 2 2.1 2 2.1 6.3v15z"/>
|
|
<path class="tw-fill-marketing-logo" d="m77 46-1.2-3.2h-.17q-1.6 2-3.3 2.8-1.7.77-4.4.77-3.3 0-5.3-1.9-1.9-1.9-1.9-5.4 0-3.7 2.6-5.4 2.6-1.8 7.8-2l4-.12v-1q0-3.5-3.6-3.5-2.8 0-6.6 1.7l-2.1-4.3q4-2.1 8.9-2.1 4.7 0 7.2 2 2.5 2 2.5 6.2v15zm-1.9-11-2.5.083q-2.8.083-4.1 1-1.4.92-1.4 2.8 0 2.7 3.1 2.7 2.2 0 3.5-1.3 1.3-1.3 1.3-3.4zm29 11-.85-3h-.33q-1 1.6-2.9 2.5-1.9.87-4.3.87-4.1 0-6.2-2.2-2.1-2.2-2.1-6.3v-15h6.3v14q0 2.5.89 3.8.89 1.2 2.8 1.2 2.7 0 3.8-1.8 1.2-1.8 1.2-5.9v-11h6.3v23zm18 0h-6.3v-32h6.3zm16-4.6q1.7 0 4-.73v4.7q-2.4 1.1-5.8 1.1-3.8 0-5.6-1.9-1.7-1.9-1.7-5.8v-11h-3v-2.7l3.5-2.1 1.8-4.9h4.1v4.9h6.5v4.8h-6.5v11q0 1.4.75 2 .77.64 2 .64z"/>
|
|
<path class="tw-fill-marketing-logo" d="m18 11-5.6.00073 15 42h5.3l15-42h-5.6l-9.5 27c-.63 1.7-1.2 3.4-1.6 4.9-.43 1.5-.79 2.9-1.1 4.3-.28-1.4-.63-2.8-1.1-4.4-.43-1.5-.97-3.2-1.6-5l-9.5-27z"/>
|
|
<path class="tw-fill-marketing-logo" d="m30 .05a.85.85 0 00-.44.37l-1.5 2.5c-.27.022-.53.046-.8.076l-2-2.2a.85.85 0 00-1.4.29l-1 2.8c-.26.074-.51.15-.77.23l-2.4-1.8a.85.85 0 00-1.4.56l-.44 2.9c-.23.12-.47.24-.7.37l-2.7-1.3a.85.85 0 00-1.2.81l.14 3c-.2.16-.4.33-.6.49l-2.9-.72a.85.85 0 00-1 1l.72 2.9c-.17.2-.33.4-.49.6l-3-.14a.85.85 0 00-.81 1.2l1.3 2.7c-.13.23-.25.46-.37.7l-2.9.44a.85.85 0 00-.56 1.4l1.8 2.4c-.081.25-.16.51-.23.77l-2.8 1a.85.85 0 00-.29 1.4l2.2 2c-.03.26-.054.53-.076.8l-2.5 1.5a.85.85 0 000 1.5l2.5 1.5c.022.27.046.53.076.8l-2.2 2a.85.85 0 00.29 1.4l2.8 1c.074.26.15.51.23.77l-1.8 2.4a.85.85 0 00.56 1.4l2.9.44c.12.23.24.47.37.7l-1.3 2.7a.85.85 0 00.81 1.2l3-.14c.16.2.33.4.49.6l-.72 2.9a.85.85 0 001 1l2.9-.72c.2.17.4.33.6.49l-.14 3a.85.85 0 001.2.81l2.7-1.3c.23.13.46.25.7.37l.44 2.9a.85.85 0 001.4.56l2.4-1.8c.25.081.51.16.77.23l1 2.8a.85.85 0 001.4.29l2-2.2c.26.03.53.054.8.076l1.5 2.5a.85.85 0 001.5 0l1.5-2.5c.27-.022.53-.046.8-.076l2 2.2a.85.85 0 001.4-.29l1-2.8c.26-.074.51-.15.77-.23l2.4 1.8a.85.85 0 001.4-.56l.44-2.9c.23-.12.47-.24.7-.37l2.7 1.3a.85.85 0 001.2-.81l-.14-3c.2-.16.4-.33.6-.49l2.9.72a.85.85 0 001-1l-.72-2.9c.17-.2.33-.4.49-.6l3 .14a.85.85 0 00.81-1.2l-1.3-2.7c.13-.23.25-.46.37-.7l2.9-.44a.85.85 0 00.56-1.4l-1.8-2.4c.081-.25.16-.51.23-.77l2.8-1a.85.85 0 00.29-1.4l-2.2-2c.03-.26.054-.53.076-.8l2.5-1.5a.85.85 0 000-1.5l-2.5-1.5c-.022-.27-.046-.53-.076-.8l2.2-2a.85.85 0 00-.29-1.4l-2.8-1c-.074-.26-.15-.51-.23-.77l1.8-2.4a.85.85 0 00-.56-1.4l-2.9-.44c-.12-.23-.24-.47-.37-.7l1.3-2.7a.85.85 0 00-.81-1.2l-3 .14c-.16-.2-.33-.4-.49-.6l.72-2.9a.85.85 0 00-1-1l-2.9.72c-.2-.17-.4-.33-.6-.49l.14-3a.85.85 0 00-1.2-.81l-2.7 1.3c-.23-.13-.46-.25-.7-.37l-.44-2.9a.85.85 0 00-1.4-.56l-2.4 1.8c-.25-.081-.51-.16-.77-.23l-1-2.8a.85.85 0 00-1.4-.29l-2 2.2c-.26-.03-.53-.054-.8-.076l-1.5-2.5a.85.85 0 00-1-.37zm.29 5.4a1.7 1.7 0 011.7 1.7 1.7 1.7 0 01-1.7 1.7 1.7 1.7 0 01-1.7-1.7 1.7 1.7 0 011.7-1.7zm-4 2.9 2.8 2.8a1.7 1.7 0 002.4 0l2.8-2.8c6.6 1.2 12 5.4 15 11l-1.8 3.6a1.7 1.7 0 00.75 2.3l3.6 1.8c.12.92.18 1.9.18 2.8 0 5.8-2.3 11-6 15l-4-.63a1.7 1.7 0 00-2 1.4l-.63 4c-2.8 1.3-6 2.1-9.4 2.1-3.4 0-6.5-.76-9.4-2.1l-.63-4a1.7 1.7 0 00-2-1.4l-4 .63c-3.7-3.9-6-9.2-6-15 0-.96.064-1.9.18-2.8l3.6-1.8a1.7 1.7 0 00.75-2.3l-1.8-3.6c3.1-5.7 8.6-9.8 15-11zm-18 13a1.7 1.7 0 01.48.083 1.7 1.7 0 011.1 2.2 1.7 1.7 0 01-2.2 1.1 1.7 1.7 0 01-1.1-2.2 1.7 1.7 0 011.7-1.2zm43 0a1.7 1.7 0 011.7 1.2 1.7 1.7 0 01-1.1 2.2 1.7 1.7 0 01-2.2-1.1 1.7 1.7 0 011.1-2.2 1.7 1.7 0 01.48-.083zm-35 25a1.7 1.7 0 01.91.32 1.7 1.7 0 01.38 2.4 1.7 1.7 0 01-2.4.38 1.7 1.7 0 01-.38-2.4 1.7 1.7 0 011.5-.7zm27 0a1.7 1.7 0 011.5.7 1.7 1.7 0 01-.38 2.4 1.7 1.7 0 01-2.4-.38 1.7 1.7 0 01.38-2.4 1.7 1.7 0 01.91-.32z"/>
|
|
</svg>
|
|
`;var lf=i(8168);const cf=()=>["/"];function df(e,t){if(1&e&&(w.j41(0,"a",1),w.nrm(1,"bit-svg",3),w.nI1(2,"i18n"),w.k0s()),2&e){const e=w.XpG();w.Y8G("routerLink",w.lJ4(5,cf)),w.R7$(),w.Y8G("content",e.logo)("ariaLabel",w.bMT(2,3,"appLogoLabel"))}}class uf{constructor(){this.hideLogo=(0,r.hFB)(!1),this.logo=af}}uf.ɵfac=function(e){return new(e||uf)},uf.ɵcmp=w.VBU({type:uf,selectors:[["bit-landing-header"]],inputs:{hideLogo:[1,"hideLogo"]},ngContentSelectors:["*"],decls:4,vars:1,consts:[[1,"tw-flex","tw-w-full","tw-bg-background-alt","tw-px-5"],[1,"tw-w-32","tw-py-5","sm:tw-w-[200px]","tw-self-center","sm:tw-self-start","tw-block","[&>*]:tw-align-top",3,"routerLink"],[1,"[&:has(*)]:tw-ms-auto","[&:has(*)]:tw-py-5"],[3,"content","ariaLabel"]],template:function(e,t){1&e&&(w.NAR(),w.j41(0,"header",0),w.nVh(1,df,3,6,"a",1),w.j41(2,"div",2),w.SdG(3),w.k0s()()),2&e&&(w.R7$(),w.vxM(t.hideLogo()?-1:1))},dependencies:[Hp.iI,Hp.Wk,Tm.Z,lf.k,ce.$Z],encapsulation:2,changeDetection:0});class hf{}hf.ɵfac=function(e){return new(e||hf)},hf.ɵmod=w.$C({type:hf}),hf.ɵinj=B.G2t({imports:[uf]});const Af=te.JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 501 226"><g clip-path="url(#left-bg-illustration-clip)"><path class="tw-fill-illustration-bg-primary" d="M-71.691 6.821a4 4 0 0 1 4-4h296.5a4 4 0 0 1 4 4v188a4 4 0 0 1-4 4h-296.5a4 4 0 0 1-4-4v-188Z"/><path class="tw-fill-illustration-bg-primary" d="M-48.941 25.821a2 2 0 0 1 2-2h127.5v154h-127.5a2 2 0 0 1-2-2v-150Z"/><path class="tw-fill-illustration-bg-tertiary" d="M80.559 25.82a2 2 0 0 1 2-2h125.5a2 2 0 0 1 2 2v150.001a2 2 0 0 1-2 2h-125.5a2 2 0 0 1-2-2v-150ZM45.871 89.854c0 17.155-13.96 31.062-31.182 31.062-17.221 0-31.182-13.907-31.182-31.062s13.96-31.062 31.182-31.062c17.221 0 31.182 13.907 31.182 31.062Z"/><path class="tw-fill-illustration-bg-tertiary" d="M72.396 153.443a57.243 57.243 0 0 1 4.663 22.604v1.222a2 2 0 0 1-2 2h-118.5a2 2 0 0 1-2-2v-1.222a57.243 57.243 0 0 1 4.662-22.604c3.078-7.167 7.59-13.678 13.277-19.163 5.688-5.485 12.44-9.836 19.871-12.805a63.228 63.228 0 0 1 23.44-4.496 63.227 63.227 0 0 1 23.439 4.496c7.431 2.969 14.183 7.32 19.87 12.805 5.688 5.485 10.2 11.996 13.278 19.163Z"/><path class="tw-fill-illustration-bg-secondary" d="M161.629 57.193c0 9.182-7.579 16.625-16.927 16.625-9.349 0-16.928-7.443-16.928-16.625 0-9.181 7.579-16.625 16.928-16.625 9.348 0 16.927 7.444 16.927 16.625Z"/><path class="tw-fill-illustration-bg-secondary" d="M176.028 89.071a29.33 29.33 0 0 1 2.531 11.894c0 .937-.759 1.696-1.696 1.696h-63.109a1.695 1.695 0 0 1-1.695-1.696c0-4.081.86-8.123 2.531-11.894 1.671-3.77 4.12-7.197 7.207-10.083 3.088-2.886 6.753-5.176 10.787-6.738a35.275 35.275 0 0 1 12.725-2.366c4.366 0 8.69.804 12.724 2.366 4.034 1.562 7.699 3.852 10.787 6.738 3.087 2.886 5.537 6.312 7.208 10.083ZM161.629 134.193c0 9.182-7.579 16.625-16.927 16.625-9.349 0-16.928-7.443-16.928-16.625s7.579-16.625 16.928-16.625c9.348 0 16.927 7.443 16.927 16.625Z"/><path class="tw-fill-illustration-bg-secondary" d="M176.028 165.953a28.993 28.993 0 0 1 2.531 11.821c0 .93-.755 1.684-1.685 1.684h-63.131c-.93 0-1.684-.754-1.684-1.684 0-4.057.86-8.074 2.531-11.821 1.671-3.748 4.12-7.153 7.207-10.021 3.088-2.869 6.753-5.144 10.787-6.696a35.456 35.456 0 0 1 12.725-2.352c4.366 0 8.69.799 12.724 2.352 4.034 1.552 7.699 3.827 10.787 6.696 3.087 2.868 5.537 6.273 7.208 10.021ZM-87.441 199.521h332.5v14.5c0 5.523-4.478 10-10 10h-312.5c-5.523 0-10-4.477-10-10v-14.5Z"/><path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M208.059 21.82a4 4 0 0 1 4 4v150.001a4 4 0 0 1-4 4l-255 .001a4 4 0 0 1-4-4v-150a4 4 0 0 1 4-4l255-.001Zm-255 154.002h1.5a57.23 57.23 0 0 1 4.378-21.706l.284-.673c2.982-6.943 7.31-13.27 12.748-18.646l.529-.517c5.688-5.485 12.44-9.836 19.871-12.805a62.937 62.937 0 0 1 10.036-3.065c-11.113-4.751-18.897-15.747-18.897-28.556 0-17.155 13.96-31.061 31.182-31.062 17.22 0 31.18 13.907 31.181 31.062 0 12.537-7.457 23.338-18.192 28.245a62.952 62.952 0 0 1 11.569 3.376c7.431 2.969 14.184 7.32 19.871 12.805 5.688 5.485 10.2 11.996 13.278 19.163a57.251 57.251 0 0 1 4.66 22.379h1.502v-150h-125.5v150Zm129.5-.001h29.568a29.02 29.02 0 0 1 2.159-9.161l.304-.706c1.671-3.748 4.12-7.154 7.207-10.022 2.894-2.689 6.297-4.857 10.035-6.396l.752-.299c.996-.383 2.01-.721 3.037-1.012-4.602-2.879-7.693-7.881-7.841-13.602l-.006-.429c0-9.182 7.579-16.625 16.928-16.625l.437.006c9.146.227 16.49 7.581 16.49 16.619l-.006.429c-.144 5.571-3.08 10.461-7.484 13.372 1.321.338 2.622.752 3.894 1.242 4.034 1.552 7.7 3.827 10.787 6.695 3.088 2.868 5.536 6.274 7.207 10.022a29.066 29.066 0 0 1 2.462 9.867h29.57v-73h-125.5v73Zm62.75-24.936c-3.881 0-7.718.71-11.288 2.084-3.571 1.374-6.797 3.382-9.501 5.894-2.704 2.511-4.831 5.478-6.277 8.72a25.125 25.125 0 0 0-2.074 7.876h58.279a25.125 25.125 0 0 0-2.074-7.876c-1.445-3.242-3.573-6.209-6.276-8.72-2.705-2.512-5.931-4.52-9.501-5.894a31.473 31.473 0 0 0-11.288-2.084Zm-129.5-29.906a59.215 59.215 0 0 0-21.955 4.211c-6.957 2.779-13.269 6.848-18.579 11.969-5.31 5.12-9.513 11.191-12.378 17.862a53.266 53.266 0 0 0-4.332 20.248H73.053a53.266 53.266 0 0 0-4.332-20.248c-2.866-6.671-7.07-12.742-12.38-17.862-5.31-5.121-11.621-9.19-18.577-11.969a59.215 59.215 0 0 0-21.955-4.211Zm128.893.59c-7.208 0-12.928 5.72-12.928 12.625.001 6.904 5.721 12.624 12.928 12.624 7.208 0 12.926-5.72 12.927-12.624 0-6.905-5.719-12.625-12.927-12.625ZM14.69 62.792c-15.027 0-27.182 12.13-27.182 27.062 0 14.931 12.155 27.062 27.181 27.063 15.027-.001 27.182-12.132 27.182-27.063S29.716 62.793 14.69 62.792Zm67.869 36.029h29.579c.229-3.094.952-6.141 2.148-9.04l.304-.71a30.936 30.936 0 0 1 6.636-9.536l.571-.547a33.416 33.416 0 0 1 10.035-6.437l.752-.3a34.78 34.78 0 0 1 3.047-1.021c-4.607-2.878-7.703-7.883-7.851-13.607l-.006-.43c0-9.18 7.579-16.624 16.928-16.624l.437.006c9.146.227 16.49 7.58 16.49 16.619l-.006.429c-.144 5.574-3.082 10.465-7.49 13.376 1.324.34 2.626.758 3.9 1.252 4.034 1.561 7.7 3.85 10.787 6.737 3.088 2.886 5.536 6.312 7.207 10.083a29.407 29.407 0 0 1 2.451 9.75h29.581v-73h-125.5v73Zm62.75-24.937c-3.878 0-7.712.714-11.281 2.096-3.568 1.382-6.795 3.401-9.5 5.93-2.704 2.528-4.833 5.515-6.281 8.782a25.432 25.432 0 0 0-2.08 7.969h58.283a25.432 25.432 0 0 0-2.08-7.97c-1.447-3.266-3.577-6.253-6.281-8.781-2.705-2.529-5.931-4.548-9.5-5.93a31.275 31.275 0 0 0-11.28-2.096Zm-.607-29.315c-7.208 0-12.928 5.72-12.928 12.625.001 6.904 5.721 12.624 12.928 12.624 7.208 0 12.926-5.72 12.927-12.624 0-6.905-5.719-12.625-12.927-12.625Z" clip-rule="evenodd"/><path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M228.809.822a6 6 0 0 1 6 6v188a5.97 5.97 0 0 1-.643 2.699h12.893v16.5c0 6.627-5.373 12-12 12h-312.5c-6.628 0-12-5.373-12-12v-16.5h16.391a5.966 5.966 0 0 1-.634-2.391l-.007-.308v-188a6 6 0 0 1 6-6h296.5ZM-85.441 214.02a8 8 0 0 0 8 8h312.5a8 8 0 0 0 8-8v-12.5h-328.5v12.5Zm17.75-209.2a2 2 0 0 0-2 2v188.001l.01.204a2 2 0 0 0 1.99 1.796h296.5a2.001 2.001 0 0 0 2-2v-188a2 2 0 0 0-2-2h-296.5Z" clip-rule="evenodd"/><path class="tw-fill-illustration-bg-primary" d="M378.821 114.003a1.997 1.997 0 0 0-.675 1.497v8.396c0 .583.254 1.136.697 1.515l11.455 9.825a2 2 0 0 1 .543 2.286l-4.203 10.056a1.998 1.998 0 0 1-1.936 1.224l-15.288-.717a1.997 1.997 0 0 0-1.501.579l-6.014 5.979a1.995 1.995 0 0 0-.583 1.569l1.145 14.942a1.997 1.997 0 0 1-1.22 1.995l-9.958 4.169a1.997 1.997 0 0 1-2.252-.503l-10.221-11.309a1.998 1.998 0 0 0-1.482-.658h-8.474c-.579 0-1.129.252-1.508.689l-9.889 11.4a1.998 1.998 0 0 1-2.28.534l-9.969-4.174a1.998 1.998 0 0 1-1.224-1.937l.721-15.182a2 2 0 0 0-.587-1.51l-6.014-5.98a1.996 1.996 0 0 0-1.559-.575l-15.049 1.14a1.997 1.997 0 0 1-1.993-1.221l-4.198-10.045a1.997 1.997 0 0 1 .512-2.258l11.363-10.155c.424-.379.666-.92.666-1.489v-8.403c0-.583-.254-1.136-.696-1.516l-11.456-9.824a1.997 1.997 0 0 1-.542-2.286L279.354 92a1.998 1.998 0 0 1 1.936-1.224l15.288.717a1.998 1.998 0 0 0 1.502-.579l6.007-5.974c.418-.415.631-.995.582-1.582l-1.292-15.419a1.995 1.995 0 0 1 1.218-2.008l9.942-4.163a1.996 1.996 0 0 1 2.258.51l10.552 11.786c.379.423.92.665 1.488.665h8.469c.579 0 1.129-.25 1.508-.688l9.889-11.4a1.996 1.996 0 0 1 2.279-.534l9.97 4.174a1.999 1.999 0 0 1 1.224 1.937l-.721 15.181a2 2 0 0 0 .587 1.51l6.014 5.98c.411.41.98.62 1.558.576l15.049-1.14a1.996 1.996 0 0 1 1.993 1.22l4.195 10.036c.33.79.12 1.702-.521 2.268l-11.507 10.154Z"/><path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M313.765 59.926a3.994 3.994 0 0 1 4.518 1.02l10.552 11.786h8.469l9.888-11.4a3.994 3.994 0 0 1 4.559-1.067l9.97 4.174a3.994 3.994 0 0 1 2.447 3.873l-.72 15.182 6.013 5.98 15.049-1.14a3.995 3.995 0 0 1 3.987 2.442l4.194 10.035a3.992 3.992 0 0 1-1.042 4.534L380.142 115.5v8.396l11.456 9.824a3.995 3.995 0 0 1 1.085 4.571l-4.203 10.056a3.993 3.993 0 0 1-3.872 2.449l-15.288-.717-6.013 5.98 1.145 14.943a3.994 3.994 0 0 1-2.44 3.988l-9.958 4.169a3.992 3.992 0 0 1-4.505-1.005l-10.221-11.309h-8.474l-9.889 11.4a3.993 3.993 0 0 1-4.559 1.067l-9.97-4.174a3.993 3.993 0 0 1-2.446-3.873l.72-15.181-6.014-5.98-15.049 1.14a3.993 3.993 0 0 1-3.986-2.442l-4.198-10.045a3.993 3.993 0 0 1 1.023-4.517l11.363-10.155v-8.403l-11.455-9.825a3.992 3.992 0 0 1-1.085-4.571l4.203-10.056a3.993 3.993 0 0 1 3.872-2.45l15.287.718 6.008-5.974-1.292-15.418a3.992 3.992 0 0 1 2.437-4.017l9.941-4.163Zm1.543 3.684-9.942 4.162 1.292 15.419a3.992 3.992 0 0 1-1.163 3.165l-6.008 5.974a3.994 3.994 0 0 1-3.003 1.157l-15.288-.717-4.202 10.056 11.455 9.824a3.993 3.993 0 0 1 1.394 3.032v8.403c0 1.137-.485 2.22-1.332 2.978l-11.364 10.154 4.198 10.045 15.049-1.14a3.994 3.994 0 0 1 3.118 1.15l6.014 5.98a3.996 3.996 0 0 1 1.173 3.021l-.72 15.181 9.969 4.175 9.889-11.401a3.994 3.994 0 0 1 3.017-1.377h8.474c1.129 0 2.206.478 2.963 1.316l10.221 11.309 9.958-4.169-1.145-14.943a3.996 3.996 0 0 1 1.166-3.137l6.013-5.979a3.997 3.997 0 0 1 3.003-1.158l15.288.717 4.203-10.056-11.456-9.824a3.995 3.995 0 0 1-1.393-3.031V115.5c0-1.146.492-2.236 1.351-2.994l11.506-10.155-4.194-10.035-15.049 1.14a3.991 3.991 0 0 1-3.117-1.15l-6.014-5.98a3.99 3.99 0 0 1-1.173-3.022l.72-15.181-9.97-4.174-9.889 11.4a3.992 3.992 0 0 1-3.016 1.377h-8.469a3.992 3.992 0 0 1-2.975-1.33L315.308 63.61Z" clip-rule="evenodd"/><path class="tw-fill-illustration-logo" d="M353.438 119.624c0 11.289-9.152 20.441-20.442 20.441-11.289 0-20.441-9.152-20.441-20.441 0-11.29 9.152-20.442 20.441-20.442 11.29 0 20.442 9.152 20.442 20.442Z"/><path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M332.996 101.179c-10.186 0-18.444 8.258-18.444 18.444 0 10.187 8.258 18.445 18.444 18.445 10.187 0 18.445-8.258 18.445-18.445 0-10.186-8.258-18.444-18.445-18.444Zm-22.438 18.444c0-12.392 10.046-22.438 22.438-22.438 12.393 0 22.439 10.046 22.439 22.438 0 12.393-10.046 22.439-22.439 22.439-12.392 0-22.438-10.046-22.438-22.439Z" clip-rule="evenodd"/><path class="tw-fill-illustration-bg-tertiary" d="m497.152 164.106-7.588-7.587a3.004 3.004 0 0 0-4.245-.003l-4.055 4.047 11.83 11.83 4.055-4.047a2.996 2.996 0 0 0 .003-4.24Z"/><path class="tw-fill-illustration-bg-secondary" d="M500.922 194.274c0 22.644-18.356 41-41 41s-41-18.356-41-41 18.356-41 41-41 41 18.356 41 41Z"/><path class="tw-fill-illustration-outline" d="M459.03 177.416a2 2 0 1 1 4 0v18.469c0 .613-.282 1.192-.763 1.571l-12.032 9.48a2.001 2.001 0 0 1-2.809-.333 2.002 2.002 0 0 1 .334-2.809l11.27-8.881v-17.497Z"/><path class="tw-fill-illustration-bg-tertiary" d="M450.936 144.041a2 2 0 0 1 2-2h13.972a2 2 0 0 1 2 2v3.863a2 2 0 0 1-2 2h-13.972a2 2 0 0 1-2-2v-3.863Z"/><path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M467.114 140.046a4 4 0 0 1 3.794 3.995v3.863a3.999 3.999 0 0 1-3.931 3.998v1.978a40.72 40.72 0 0 1 13.484 4.903l3.69-3.68a5.008 5.008 0 0 1 7.076.003l7.587 7.588.177.186a4.994 4.994 0 0 1-.181 6.881l-3.615 3.606a40.801 40.801 0 0 1 5.727 20.907c0 22.644-18.357 41-41 41-22.644 0-41-18.356-41-41 0-20.434 14.949-37.375 34.507-40.487v-1.883h-.493a4 4 0 0 1-4-4v-3.863a4 4 0 0 1 4-4h13.972l.206.005Zm-7.192 17.228c-20.435 0-37 16.566-37 37 0 20.435 16.565 37 37 37 20.434 0 37-16.565 37-37 0-20.434-16.566-37-37-37Zm28.473.658a1.002 1.002 0 0 0-1.416-.001l-2.638 2.633 9.001 9.002 2.639-2.633a1 1 0 0 0 .07-1.338l-.069-.075-7.587-7.588Zm-30.966-6.028v1.447a41.171 41.171 0 0 1 5.548.036v-1.483h-5.548Zm-4.493-4h13.972v-3.863h-13.972v3.863Z" clip-rule="evenodd"/></g><defs><clipPath id="left-bg-illustration-clip"><path class="tw-fill-illustration-bg-tertiary" d="M0 0h501v226H0z"/></clipPath></defs></svg>
|
|
`,pf=te.JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 506 297">
|
|
<g clip-path="url(#right-bg-illustration-clip)">
|
|
<path class="tw-fill-illustration-bg-primary" d="M45.673 294.742v-29.124l22.323 16.198-15.395 15.75a4.04 4.04 0 0 1-6.928-2.824Z"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="m4.978 240.865 95.568-44.738c3.52-1.648 7.492 1.175 7.093 5.041l-9.608 93.173c-.395 3.823-4.774 5.79-7.893 3.547l-43.43-31.233-41.47-16.621c-4.06-1.627-4.221-7.315-.26-9.169Z"/>
|
|
<path class="tw-fill-illustration-outline" d="M99.698 194.315c4.929-2.306 10.489 1.645 9.931 7.058l-9.608 93.174c-.552 5.351-6.683 8.105-11.05 4.965l-20.832-14.983-14.107 14.435a6.04 6.04 0 0 1-10.359-4.222v-27.151l-39.178-15.7c-5.684-2.278-5.91-10.242-.364-12.838l95.567-44.738Zm5.953 6.648c.239-2.32-2.144-4.013-4.256-3.025L5.827 242.676c-2.376 1.112-2.28 4.525.156 5.502l40.159 16.093 26.703-30.327a2.001 2.001 0 0 1 3.002 2.644l-26.178 29.731 41.637 29.945c1.872 1.346 4.5.165 4.736-2.128l9.609-93.173Zm-57.978 93.779a2.04 2.04 0 0 0 3.498 1.426l13.684-14.001-17.182-12.357v24.932Z"/>
|
|
<circle cx="86.719" cy="86.719" r="84.719" class="tw-fill-illustration-bg-tertiary tw-stroke-illustration-outline" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" transform="scale(-1 1) rotate(45.035 -184.565 -565.488)"/>
|
|
<circle cx="69.752" cy="69.752" r="69.752" class="tw-fill-illustration-bg-secondary" transform="scale(-1 1) rotate(45.035 -213.255 -553.709)"/>
|
|
<path class="tw-fill-illustration-outline" d="m445.838 353.214 2.95-180.467 12.372-.007 3.078 180.465a4.64 4.64 0 0 1-4.637 4.72l-9.12.005a4.64 4.64 0 0 1-4.643-4.716ZM453.82 52.947a2 2 0 0 1 1.998-2.001l35.638-.023a2 2 0 0 1 2.001 2.015l-.268 35.637a2 2 0 1 1-4-.03l.252-33.62-33.62.02a1.999 1.999 0 0 1-2.001-1.998ZM415.689 86.49a2 2 0 0 1 4.001.03l-.254 33.62 33.622-.021a2 2 0 0 1 .003 4l-35.637.022a2 2 0 0 1-2.001-2.015l.266-35.636Zm25.457-19.997a2 2 0 0 1 3.461-2.006l23.124 39.885a2 2 0 0 1-3.461 2.006l-23.124-39.885Z"/>
|
|
<path class="tw-fill-illustration-bg-primary" d="M259.264 277.271c21.107-4.293 34.791-24.62 30.565-45.402-4.227-20.782-24.764-34.15-45.871-29.857-21.107 4.293-34.791 24.62-30.565 45.402 4.227 20.783 24.764 34.15 45.871 29.857ZM299.993 173.472c7.793-1.585 12.826-9.188 11.241-16.981-1.585-7.793-9.187-12.826-16.981-11.241-7.793 1.585-12.826 9.187-11.241 16.981 1.585 7.793 9.188 12.826 16.981 11.241Z"/>
|
|
<path class="tw-fill-illustration-bg-secondary" d="M329.869 242.094c7.793-1.585 12.826-9.187 11.241-16.981-1.585-7.793-9.188-12.826-16.981-11.241-7.794 1.585-12.827 9.188-11.241 16.981 1.585 7.794 9.187 12.827 16.981 11.241Z"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M330.088 309.401c7.794-1.585 12.826-9.188 11.241-16.981-1.585-7.794-9.187-12.827-16.981-11.242-7.793 1.585-12.826 9.188-11.241 16.981 1.585 7.794 9.188 12.827 16.981 11.242Z"/>
|
|
<path class="tw-fill-illustration-bg-primary" d="M234.598 327.597c7.793-1.585 12.826-9.187 11.241-16.981-1.585-7.793-9.187-12.826-16.981-11.241-7.793 1.585-12.826 9.188-11.241 16.981 1.585 7.794 9.188 12.826 16.981 11.241Z"/>
|
|
<path class="tw-fill-illustration-bg-secondary" d="M176.919 248.71c7.794-1.585 12.827-9.188 11.242-16.981-1.586-7.794-9.188-12.827-16.982-11.242-7.793 1.586-12.826 9.188-11.241 16.982 1.585 7.793 9.188 12.826 16.981 11.241Z"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M206.836 185.071c7.794-1.585 12.827-9.188 11.242-16.981-1.586-7.793-9.188-12.826-16.982-11.241-7.793 1.585-12.826 9.188-11.241 16.981 1.585 7.793 9.188 12.826 16.981 11.241Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M200.699 154.89c8.875-1.805 17.533 3.927 19.339 12.803 1.165 5.732-.814 11.372-4.752 15.135.131.223.29.502.489.845l14.805 21.386a41.483 41.483 0 0 1 12.979-5.007c9.276-1.886 18.455-.523 26.321 3.303.038-.221.111-.441.227-.648l17.035-30.333a16.337 16.337 0 0 1-6.09-9.744c-1.805-8.876 3.928-17.535 12.803-19.34 8.876-1.805 17.534 3.928 19.339 12.803 1.805 8.876-3.926 17.534-12.802 19.339-3.427.697-6.822.27-9.803-1.028l-16.994 30.262a1.98 1.98 0 0 1-.397.497c8.774 5.316 15.487 13.883 18.16 24.43l19.238-1.61c-.007-7.642 5.356-14.488 13.135-16.07 8.875-1.805 17.534 3.927 19.339 12.803 1.805 8.875-3.927 17.533-12.802 19.339-8.639 1.757-17.072-3.627-19.18-12.099l-18.935 1.585c1.474 9.839-.81 19.465-5.834 27.387l29.108 22.962a16.324 16.324 0 0 1 8.523-4.671c8.876-1.804 17.534 3.928 19.339 12.803 1.805 8.876-3.927 17.534-12.802 19.339-8.875 1.805-17.534-3.926-19.34-12.802a16.338 16.338 0 0 1 1.872-11.474l-29.007-22.882c-5.828 7.464-14.29 12.983-24.349 15.028a41.442 41.442 0 0 1-14.045.441l-6.224 19.317a16.365 16.365 0 0 1 8.405 11.229c1.805 8.876-3.927 17.534-12.802 19.339-8.876 1.805-17.535-3.926-19.34-12.802-1.805-8.875 3.927-17.534 12.803-19.34 2.461-.5 4.906-.42 7.192.145l6.007-18.641c-14.851-3.594-27.011-15.301-30.225-31.105a40.043 40.043 0 0 1-.808-8.184l-20.473-1.442c-.032-.002-.064-.008-.096-.011-1.37 6.114-6.201 11.162-12.739 12.492-8.875 1.805-17.534-3.926-19.339-12.802-1.805-8.875 3.927-17.534 12.802-19.34 8.876-1.804 17.534 3.928 19.339 12.803.196.962.302 1.921.327 2.869l20.401 1.436c1.206-11.333 7.247-21.627 16.399-28.363l-14.76-21.321a20.41 20.41 0 0 0-.435-.719 16.428 16.428 0 0 1-4.816 1.8c-8.876 1.805-17.535-3.927-19.34-12.802-1.805-8.876 3.927-17.535 12.803-19.34Zm124.048 128.249c-6.711 1.365-11.045 7.912-9.68 14.623 1.365 6.711 7.912 11.044 14.623 9.679 6.71-1.365 11.044-7.911 9.679-14.622-1.364-6.71-7.911-11.044-14.622-9.68Zm-95.49 18.196c-6.711 1.365-11.045 7.912-9.68 14.623 1.365 6.711 7.912 11.044 14.623 9.679 6.71-1.365 11.044-7.911 9.679-14.621-1.365-6.711-7.911-11.045-14.622-9.681Zm15.1-97.363c-20.054 4.079-33.004 23.373-29.004 43.044 4.001 19.672 23.459 32.374 43.513 28.296 9.593-1.951 17.558-7.386 22.822-14.676a1.986 1.986 0 0 1 .612-.873c5.306-7.813 7.58-17.606 5.569-27.495-4.001-19.671-23.459-32.374-43.512-28.296Zm80.171 11.861c-6.711 1.364-11.045 7.912-9.68 14.623 1.365 6.71 7.912 11.044 14.623 9.679 6.71-1.365 11.044-7.911 9.679-14.622-1.365-6.711-7.911-11.045-14.622-9.68Zm-152.949 6.614c-6.711 1.365-11.045 7.912-9.681 14.623 1.365 6.711 7.912 11.044 14.623 9.679 6.711-1.365 11.044-7.911 9.68-14.621-1.365-6.711-7.912-11.045-14.622-9.681Zm123.073-75.237c-6.71 1.365-11.044 7.912-9.68 14.623 1.365 6.711 7.912 11.044 14.623 9.679 6.711-1.365 11.044-7.911 9.68-14.622-1.365-6.71-7.912-11.045-14.623-9.68Zm-93.156 11.6c-6.711 1.364-11.045 7.912-9.68 14.623 1.365 6.71 7.912 11.044 14.622 9.679 6.711-1.365 11.044-7.912 9.68-14.622-1.365-6.711-7.911-11.045-14.622-9.68Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-logo" d="M272.266 232.544a1.998 1.998 0 0 0-.353 1.589l.554 2.725a2.002 2.002 0 0 0 1.002 1.357l4.786 2.611a2 2 0 0 1 1.003 2.15l-.667 3.313a1.998 1.998 0 0 1-1.647 1.58l-5.641.896a1.998 1.998 0 0 0-1.352.867l-1.524 2.291a2 2 0 0 0-.252 1.678l1.555 5.227a2 2 0 0 1-.794 2.224l-2.799 1.902a2 2 0 0 1-2.309-.043l-4.524-3.327a2 2 0 0 0-1.583-.348l-2.754.56a1.997 1.997 0 0 0-1.352.994l-2.638 4.785a2 2 0 0 1-2.14.996l-3.339-.661a2 2 0 0 1-1.587-1.649l-.886-5.597a2.003 2.003 0 0 0-.875-1.358l-2.298-1.514a2 2 0 0 0-1.669-.247l-5.272 1.563a2 2 0 0 1-2.22-.788l-1.897-2.774a2.001 2.001 0 0 1 .045-2.321l3.339-4.498a2.004 2.004 0 0 0 .354-1.591l-.557-2.736a2.001 2.001 0 0 0-.983-1.347l-4.848-2.715a2 2 0 0 1-.983-2.14l.669-3.329a2.001 2.001 0 0 1 1.648-1.581l5.641-.895a1.999 1.999 0 0 0 1.352-.868l1.526-2.293c.327-.493.42-1.105.253-1.673l-1.608-5.457a2 2 0 0 1 .794-2.22l2.793-1.897a2 2 0 0 1 2.322.053l4.676 3.5a1.999 1.999 0 0 0 1.597.359l2.744-.558a2.002 2.002 0 0 0 1.353-.995l2.637-4.784a1.997 1.997 0 0 1 2.14-.996l3.339.661a2 2 0 0 1 1.587 1.649l.886 5.597c.088.555.406 1.048.875 1.357l2.298 1.514a2.002 2.002 0 0 0 1.669.248l5.272-1.564a2 2 0 0 1 2.22.789l1.898 2.775a2 2 0 0 1-.044 2.319l-3.432 4.635Zm-24.977-.064c-4.049 2.702-5.078 8.076-2.395 11.991 2.705 4.028 8.1 5.044 12.035 2.365 3.936-2.678 5.078-8.076 2.395-11.991-2.592-4.051-7.986-5.067-12.035-2.365Z"/>
|
|
<path class="tw-fill-illustration-outline" d="m270.507 237.256-.554-2.724a4.004 4.004 0 0 1 .705-3.178l3.433-4.636-1.897-2.775-5.273 1.564a4 4 0 0 1-3.337-.494l-2.298-1.515a4 4 0 0 1-1.751-2.714l-.886-5.597-3.339-.661-2.637 4.784a4.001 4.001 0 0 1-2.706 1.989l-2.744.558a4 4 0 0 1-3.194-.718l-4.676-3.5-2.792 1.898 1.608 5.457a3.998 3.998 0 0 1-.507 3.345l-1.525 2.294c-.62.931-1.6 1.56-2.704 1.736l-5.642.895-.669 3.329 4.848 2.715a4 4 0 0 1 1.965 2.693l.557 2.737a3.999 3.999 0 0 1-.708 3.18l-3.338 4.499 1.897 2.774 5.272-1.563a3.998 3.998 0 0 1 3.338.494l2.298 1.514a4.001 4.001 0 0 1 1.75 2.715l.886 5.597 3.339.661 2.638-4.785a4 4 0 0 1 2.706-1.988l2.753-.56a4 4 0 0 1 3.166.697l4.524 3.327 2.8-1.902-1.555-5.227a4.002 4.002 0 0 1 .504-3.355l1.524-2.291a3.998 3.998 0 0 1 2.703-1.736l5.642-.895.667-3.313-4.787-2.611a4.004 4.004 0 0 1-2.004-2.714Zm-24.328-6.439c4.915-3.28 11.556-2.099 14.795 2.898h.001v.001l.034.051h-.001c3.294 4.868 1.835 11.464-2.953 14.723-4.855 3.304-11.499 2.043-14.821-2.903l.001-.001c-3.308-4.845-2.013-11.461 2.944-14.769Zm11.461 5.106c-1.959-3.06-6.075-3.891-9.24-1.779-3.036 2.026-3.85 5.957-2.039 8.913l.183.284.01.015c2.089 3.109 6.234 3.879 9.25 1.827 3.066-2.087 3.897-6.25 1.871-9.207a.97.97 0 0 1-.035-.053Zm16.787.536 4.787 2.611a4 4 0 0 1 2.005 4.3l-.666 3.313a4.001 4.001 0 0 1-3.295 3.161l-5.641.896-1.525 2.291 1.555 5.227a4.002 4.002 0 0 1-1.586 4.449l-2.8 1.901a4 4 0 0 1-4.618-.086l-4.523-3.326-2.753.56-2.638 4.784a4 4 0 0 1-4.279 1.993l-3.34-.661a4.002 4.002 0 0 1-3.174-3.298l-.886-5.598-2.298-1.514-5.273 1.564a3.999 3.999 0 0 1-4.438-1.577l-1.897-2.774a3.998 3.998 0 0 1 .09-4.641l3.338-4.499-.557-2.737-4.848-2.715a3.998 3.998 0 0 1-1.966-4.279l.669-3.329a4.002 4.002 0 0 1 3.294-3.162l5.642-.895 1.526-2.294-1.609-5.457a4.001 4.001 0 0 1 1.59-4.439l2.792-1.897a4 4 0 0 1 4.645.106l4.676 3.5 2.744-.558 2.636-4.785a4 4 0 0 1 4.281-1.992l3.339.661a4 4 0 0 1 3.174 3.298l.886 5.597 2.298 1.514 5.272-1.563a4 4 0 0 1 4.439 1.576l1.898 2.775a4.001 4.001 0 0 1-.087 4.639l-3.433 4.636.554 2.724Z"/>
|
|
</g>
|
|
<defs>
|
|
<clipPath id="right-bg-illustration-clip">
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M0 0h506v297H0z"/>
|
|
</clipPath>
|
|
</defs>
|
|
</svg>
|
|
`,gf=[[["bit-landing-header"]],"*",[["bit-landing-footer"]]],vf=(e,t)=>({"tw-min-h-screen":e,"tw-min-h-full":t});function mf(e,t){if(1&e&&(w.j41(0,"div",2),w.nrm(1,"bit-svg",3),w.k0s(),w.j41(2,"div",4),w.nrm(3,"bit-svg",3),w.k0s()),2&e){const e=w.XpG();w.R7$(),w.Y8G("content",e.leftIllustration),w.R7$(2),w.Y8G("content",e.rightIllustration)}}class ff{constructor(){this.hideBackgroundIllustration=(0,r.hFB)(!1),this.leftIllustration=Af,this.rightIllustration=pf,this.platformUtilsService=(0,B.WQX)(G.y),this.clientType=this.platformUtilsService.getClientType()}}ff.ɵfac=function(e){return new(e||ff)},ff.ɵcmp=w.VBU({type:ff,selectors:[["bit-landing-layout"]],inputs:{hideBackgroundIllustration:[1,"hideBackgroundIllustration"]},ngContentSelectors:["bit-landing-header","*","bit-landing-footer"],decls:6,vars:6,consts:[[1,"tw-relative","tw-flex","tw-size-full","tw-mx-auto","tw-flex-col"],[1,"tw-relative","tw-flex","tw-flex-1","tw-size-full","tw-mx-auto","tw-flex-col"],[1,"tw-hidden","md:tw-block","[&_svg]:tw-absolute","tw-z-[1]","tw-opacity-[.11]","[&_svg]:tw-bottom-0","[&_svg]:tw-start-0","[&_svg]:tw-w-[35%]","[&_svg]:tw-max-w-[450px]"],[3,"content"],[1,"tw-hidden","md:tw-block","[&_svg]:tw-absolute","tw-z-[1]","tw-opacity-[.11]","[&_svg]:tw-bottom-0","[&_svg]:tw-end-0","[&_svg]:tw-w-[35%]","[&_svg]:tw-max-w-[450px]"]],template:function(e,t){1&e&&(w.NAR(gf),w.j41(0,"div",0),w.SdG(1),w.j41(2,"main",1),w.SdG(3,1),w.k0s(),w.nVh(4,mf,4,2),w.SdG(5,2),w.k0s()),2&e&&(w.HbH(w.l_i(3,vf,"web"===t.clientType,"browser"===t.clientType||"desktop"===t.clientType)),w.R7$(4),w.vxM(t.hideBackgroundIllustration()?-1:4))},dependencies:[Tm.Z,lf.k],encapsulation:2,changeDetection:0});var yf=i(13259);function bf(e,t){if(1&e&&(w.j41(0,"div",2),w.nrm(1,"bit-svg",4),w.k0s()),2&e){const e=w.XpG(2);w.R7$(),w.Y8G("content",e.icon())}}function Cf(e,t){if(1&e&&(w.j41(0,"h1",5),w.EFF(1),w.k0s(),w.j41(2,"h1",6),w.EFF(3),w.k0s()),2&e){const e=w.XpG(2);w.R7$(),w.SpI(" ",e.title()," "),w.R7$(2),w.SpI(" ",e.title()," ")}}function If(e,t){if(1&e&&(w.j41(0,"div",3),w.EFF(1),w.k0s()),2&e){const e=w.XpG(2);w.R7$(),w.SpI(" ",e.subtitle()," ")}}function wf(e,t){if(1&e&&(w.j41(0,"div",1),w.nVh(1,bf,2,1,"div",2),w.nVh(2,Cf,4,2),w.nVh(3,If,2,1,"div",3),w.k0s()),2&e){const e=w.XpG();w.HbH(e.alignmentClasses()),w.R7$(),w.vxM(e.icon()?1:-1),w.R7$(),w.vxM(e.title()?2:-1),w.R7$(),w.vxM(e.subtitle()?3:-1)}}class Bf{constructor(){this.icon=(0,r.hFB)(null),this.title=(0,r.hFB)(),this.subtitle=(0,r.hFB)(),this.heroTextAlignment=(0,r.hFB)(yf.bx),this.alignmentClasses=(0,JA.EW)(()=>"left"===this.heroTextAlignment()?"tw-text-left":"tw-text-center tw-mx-auto")}}Bf.ɵfac=function(e){return new(e||Bf)},Bf.ɵcmp=w.VBU({type:Bf,selectors:[["bit-landing-hero"]],inputs:{icon:[1,"icon"],title:[1,"title"],subtitle:[1,"subtitle"],heroTextAlignment:[1,"heroTextAlignment"]},decls:1,vars:1,consts:[[1,"tw-mb-4","sm:tw-mb-6",3,"class"],[1,"tw-mb-4","sm:tw-mb-6"],[1,"tw-size-20","sm:tw-size-24","[&_svg]:tw-w-full","[&_svg]:tw-max-w-24","tw-mx-auto","tw-content-center"],[1,"tw-text-sm","tw-mt-4","sm:tw-mt-0","sm:tw-text-base"],[3,"content"],["bitTypography","h2",1,"tw-mt-2","sm:tw-hidden"],["bitTypography","h1",1,"tw-mt-2","tw-hidden","sm:tw-block"]],template:function(e,t){1&e&&w.nVh(0,wf,4,5,"div",0),2&e&&w.vxM(t.icon()||t.title()||t.subtitle()?0:-1)},dependencies:[Tm.Z,lf.k,Fp.E,Tp.r],encapsulation:2,changeDetection:0});class Ef{constructor(){this.footerVerticalPadding=(0,r.hFB)(yf.LZ),this.paddingClasses=(0,JA.EW)(()=>"compact"===this.footerVerticalPadding()?"tw-py-3":"tw-pb-5 tw-pt-4 sm:tw-pt-6")}}Ef.ɵfac=function(e){return new(e||Ef)},Ef.ɵcmp=w.VBU({type:Ef,selectors:[["bit-landing-footer"]],inputs:{footerVerticalPadding:[1,"footerVerticalPadding"]},ngContentSelectors:["*"],decls:2,vars:2,consts:[[1,"tw-bg-background-alt","tw-text-center","tw-px-5"]],template:function(e,t){1&e&&(w.NAR(),w.rj2(0,"footer",0),w.SdG(1),w.eux()),2&e&&w.HbH(t.paddingClasses())},encapsulation:2,changeDetection:0});const Sf=[[["bit-landing-hero"]],"*"];class Qf{constructor(){this.maxWidth=(0,r.hFB)("md"),this.contentVerticalPadding=(0,r.hFB)(yf.$R),this.maxWidthClassMap={md:"tw-max-w-md",lg:"tw-max-w-lg",xl:"tw-max-w-xl","2xl":"tw-max-w-2xl","3xl":"tw-max-w-3xl","4xl":"tw-max-w-4xl"},this.maxWidthClasses=(0,JA.EW)(()=>`tw-flex tw-flex-col tw-w-full ${this.maxWidthClassMap[this.maxWidth()]}`)}}Qf.ɵfac=function(e){return new(e||Qf)},Qf.ɵcmp=w.VBU({type:Qf,selectors:[["bit-landing-content"]],hostAttrs:[1,"tw-grow","tw-flex","tw-flex-col"],inputs:{maxWidth:[1,"maxWidth"],contentVerticalPadding:[1,"contentVerticalPadding"]},ngContentSelectors:["bit-landing-hero","*"],decls:4,vars:6,consts:[[1,"tw-flex","tw-flex-col","tw-flex-1","tw-items-center","tw-bg-background-alt","tw-p-5","tw-text-main"]],template:function(e,t){1&e&&(w.NAR(Sf),w.rj2(0,"div",0)(1,"div"),w.SdG(2),w.SdG(3,1),w.eux()()),2&e&&(w.AVh("tw-py-3","compact"===t.contentVerticalPadding())("tw-pt-12","default"===t.contentVerticalPadding()),w.R7$(),w.HbH(t.maxWidthClasses()))},encapsulation:2,changeDetection:0});var kf=i(67379);class Rf{}Rf.ɵfac=function(e){return new(e||Rf)},Rf.ɵcmp=w.VBU({type:Rf,selectors:[["bit-landing-card"]],ngContentSelectors:["*"],decls:2,vars:0,consts:[[1,"tw-z-[2]","tw-relative","!tw-rounded-2xl","tw-mb-6","sm:tw-mb-10","tw-mx-auto","tw-w-full","tw-bg-transparent","tw-border-none","tw-shadow-none","sm:tw-bg-background","sm:tw-border","sm:tw-border-solid","sm:tw-border-secondary-100","sm:tw-shadow","sm:tw-p-8"]],template:function(e,t){1&e&&(w.NAR(),w.j41(0,"bit-base-card",0),w.SdG(1),w.k0s())},dependencies:[kf.f],encapsulation:2,changeDetection:0});var Ff=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Tf=[[["","slot","header-actions"]],[["","slot","secondary"]],[["","slot","footer-secondary"]],[["","slot","environment-selector"]],"*"];function Df(e,t){1&e&&w.eu8(0)}function Pf(e,t){if(1&e&&(w.j41(0,"div",5),w.DNE(1,Df,1,0,"ng-container",8),w.k0s()),2&e){w.XpG();const e=w.sdS(11);w.R7$(),w.Y8G("ngTemplateOutlet",e)}}function Mf(e,t){1&e&&w.eu8(0)}function xf(e,t){if(1&e&&(w.j41(0,"bit-landing-card"),w.DNE(1,Mf,1,0,"ng-container",8),w.k0s()),2&e){w.XpG();const e=w.sdS(11);w.R7$(),w.Y8G("ngTemplateOutlet",e)}}function Vf(e,t){if(1&e&&(w.j41(0,"div",9),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e){const e=w.XpG(2);w.R7$(),w.Lme("",w.bMT(2,2,"accessing")," ",e.hostname)}}function Gf(e,t){1&e&&w.SdG(0,3)}function Uf(e,t){if(1&e&&(w.j41(0,"div",9),w.EFF(1,"Vaultwarden Web"),w.k0s(),w.j41(2,"div",9),w.EFF(3),w.k0s(),w.nrm(4,"br"),w.j41(5,"div",10),w.EFF(6," A modified version of the Bitwarden® Web Vault for Vaultwarden (an unofficial rewrite of the Bitwarden® server)."),w.nrm(7,"br"),w.EFF(8," Vaultwarden is not associated with the Bitwarden® project nor Bitwarden Inc. "),w.k0s()),2&e){const e=w.XpG(2);w.R7$(3),w.JRh(e.version)}}function Of(e,t){if(1&e&&(w.j41(0,"bit-landing-footer",7)(1,"div"),w.SdG(2,2),w.nVh(3,Vf,3,4,"div",9)(4,Gf,1,0),w.k0s(),w.nVh(5,Uf,9,1),w.k0s()),2&e){const e=w.XpG();w.Y8G("footerVerticalPadding",e.footerVerticalPadding()),w.R7$(),w.HbH(e.footerLayoutClasses()),w.R7$(2),w.vxM(e.showReadonlyHostname()?3:4),w.R7$(2),w.vxM(e.hideYearAndVersion?-1:5)}}function Nf(e,t){1&e&&w.SdG(0,4)}class jf{get classList(){return["tw-h-full"]}constructor(e,t){this.environmentService=e,this.platformUtilsService=t,this.title=(0,r.hFB)(),this.subtitle=(0,r.hFB)(),this.icon=r.geq.required(),this.showReadonlyHostname=(0,r.hFB)(qu.J.showReadonlyHostname),this.hideLogo=(0,r.hFB)(!1),this.hideFooter=(0,r.hFB)(!1),this.hideCardWrapper=(0,r.hFB)(qu.J.hideCardWrapper),this.hideBackgroundIllustration=(0,r.hFB)(qu.J.hideBackgroundIllustration),this.hidePageIcon=(0,r.hFB)(qu.J.hidePageIcon),this.contentVerticalPadding=(0,r.hFB)(qu.J.contentVerticalPadding),this.footerVerticalPadding=(0,r.hFB)(qu.J.footerVerticalPadding),this.heroTextAlignment=(0,r.hFB)(qu.J.heroTextAlignment),this.secondaryContentLocation=(0,r.hFB)(qu.J.secondaryContentLocation),this.footerLayoutClasses=(0,JA.EW)(()=>"footer"===this.secondaryContentLocation()?"tw-grid tw-gap-6":""),this.maxWidth=(0,r.geq)(qu.J.maxWidth),this.logo=af,this.hideYearAndVersion=!1,this.year=(new Date).getFullYear().toString(),this.clientType=this.platformUtilsService.getClientType(),this.hideYearAndVersion=this.clientType!==Yt.sK.Web}ngOnInit(){return Ff(this,void 0,void 0,function*(){var e;this.maxWidth.set(null!==(e=this.maxWidth())&&void 0!==e?e:qu.J.maxWidth),this.hostname=(yield(0,u._)(this.environmentService.environment$)).getHostname(),this.version=yield this.platformUtilsService.getApplicationVersion()})}ngOnChanges(e){return Ff(this,void 0,void 0,function*(){var t;e.maxWidth&&this.maxWidth.set(null!==(t=e.maxWidth.currentValue)&&void 0!==t?t:qu.J.maxWidth)})}}function Yf(e,t){1&e&&w.nrm(0,"router-outlet",2)}function Xf(e,t){1&e&&w.nrm(0,"router-outlet",3)}jf.ɵfac=function(e){return new(e||jf)(w.rXU(yo.v),w.rXU(G.y))},jf.ɵcmp=w.VBU({type:jf,selectors:[["auth-anon-layout"]],hostVars:2,hostBindings:function(e,t){2&e&&w.HbH(t.classList)},inputs:{title:[1,"title"],subtitle:[1,"subtitle"],icon:[1,"icon"],showReadonlyHostname:[1,"showReadonlyHostname"],hideLogo:[1,"hideLogo"],hideFooter:[1,"hideFooter"],hideCardWrapper:[1,"hideCardWrapper"],hideBackgroundIllustration:[1,"hideBackgroundIllustration"],hidePageIcon:[1,"hidePageIcon"],contentVerticalPadding:[1,"contentVerticalPadding"],footerVerticalPadding:[1,"footerVerticalPadding"],heroTextAlignment:[1,"heroTextAlignment"],secondaryContentLocation:[1,"secondaryContentLocation"],maxWidth:[1,"maxWidth"]},outputs:{icon:"iconChange",maxWidth:"maxWidthChange"},features:[w.OA$],ngContentSelectors:["[slot=header-actions]","[slot=secondary]","[slot=footer-secondary]","[slot=environment-selector]","*"],decls:12,vars:10,consts:[["defaultContent",""],[3,"hideBackgroundIllustration"],[3,"hideLogo"],[3,"maxWidth","contentVerticalPadding"],[3,"icon","title","subtitle","heroTextAlignment"],[1,"tw-mb-6","sm:tw-mb-10"],[1,"tw-flex","tw-flex-col","tw-items-center"],[3,"footerVerticalPadding"],[4,"ngTemplateOutlet"],["bitTypography","body2"],["bitTypography","helper","id","vw-disclaimer"]],template:function(e,t){1&e&&(w.NAR(Tf),w.j41(0,"bit-landing-layout",1)(1,"bit-landing-header",2),w.SdG(2),w.k0s(),w.j41(3,"bit-landing-content",3),w.nrm(4,"bit-landing-hero",4),w.nVh(5,Pf,2,1,"div",5)(6,xf,2,1,"bit-landing-card"),w.j41(7,"div",6),w.SdG(8,1),w.k0s()(),w.nVh(9,Of,6,5,"bit-landing-footer",7),w.k0s(),w.DNE(10,Nf,1,0,"ng-template",null,0,w.C5r)),2&e&&(w.Y8G("hideBackgroundIllustration",t.hideBackgroundIllustration()),w.R7$(),w.Y8G("hideLogo",t.hideLogo()),w.R7$(2),w.Y8G("maxWidth",t.maxWidth())("contentVerticalPadding",t.contentVerticalPadding()),w.R7$(),w.Y8G("icon",t.hidePageIcon()?null:t.icon())("title",t.title())("subtitle",t.subtitle())("heroTextAlignment",t.heroTextAlignment()),w.R7$(),w.vxM(t.hideCardWrapper()?5:6),w.R7$(4),w.vxM(t.hideFooter()?-1:9))},dependencies:[L.MD,L.T3,Tm.Z,Fp.E,Tp.r,Hp.iI,hf,ff,uf,Bf,Ef,Qf,Rf,ce.$Z],encapsulation:2});class zf{constructor(e,t,i,n,r){this.router=e,this.route=t,this.i18nService=i,this.anonLayoutWrapperDataService=n,this.changeDetectorRef=r,this.destroy$=new d.B,this.pageIcon=null,this.destroyRef=(0,B.WQX)(B.abz)}ngOnInit(){var e;this.setAnonLayoutWrapperDataFromRouteData(null===(e=this.route.snapshot.firstChild)||void 0===e?void 0:e.data),this.listenForPageDataChanges(),this.listenForServiceDataChanges()}listenForPageDataChanges(){this.router.events.pipe((0,h.p)(e=>e instanceof R.wF),(0,P.M)(()=>this.resetPageData()),(0,jt.n)(()=>{var e;return(null===(e=this.route.firstChild)||void 0===e?void 0:e.data)||(0,ln.of)(null)}),(0,c.pQ)(this.destroyRef)).subscribe(e=>{this.setAnonLayoutWrapperDataFromRouteData(e)})}setAnonLayoutWrapperDataFromRouteData(e){var t,i,n,r,s,o,a,l,c;e&&(void 0!==e.pageTitle&&(this.pageTitle=this.handleStringOrTranslation(e.pageTitle)),void 0!==e.pageSubtitle&&(this.pageSubtitle=this.handleStringOrTranslation(e.pageSubtitle)),void 0!==e.pageIcon&&(this.pageIcon=e.pageIcon),this.showReadonlyHostname=null!==(t=e.showReadonlyHostname)&&void 0!==t?t:qu.J.showReadonlyHostname,this.maxWidth=null!==(i=e.maxWidth)&&void 0!==i?i:qu.J.maxWidth,this.hideCardWrapper=null!==(n=e.hideCardWrapper)&&void 0!==n?n:qu.J.hideCardWrapper,this.hideBackgroundIllustration=null!==(r=e.hideBackgroundIllustration)&&void 0!==r?r:qu.J.hideBackgroundIllustration,this.hidePageIcon=null!==(s=e.hidePageIcon)&&void 0!==s?s:qu.J.hidePageIcon,this.contentVerticalPadding=null!==(o=e.contentVerticalPadding)&&void 0!==o?o:qu.J.contentVerticalPadding,this.footerVerticalPadding=null!==(a=e.footerVerticalPadding)&&void 0!==a?a:qu.J.footerVerticalPadding,this.heroTextAlignment=null!==(l=e.heroTextAlignment)&&void 0!==l?l:qu.J.heroTextAlignment,this.secondaryContentLocation=null!==(c=e.secondaryContentLocation)&&void 0!==c?c:qu.J.secondaryContentLocation,this.anonLayoutWrapperDataService.cacheRouteData(e))}listenForServiceDataChanges(){this.anonLayoutWrapperDataService.anonLayoutWrapperData$().pipe((0,c.pQ)(this.destroyRef)).subscribe(e=>{this.setAnonLayoutWrapperDataFromService(e)})}setAnonLayoutWrapperDataFromService(e){e&&(void 0!==e.pageTitle&&(this.pageTitle=null!==e.pageTitle?this.handleStringOrTranslation(e.pageTitle):null),void 0!==e.pageSubtitle&&(this.pageSubtitle=null!==e.pageSubtitle?this.handleStringOrTranslation(e.pageSubtitle):null),void 0!==e.pageIcon&&(this.pageIcon=null!==e.pageIcon?e.pageIcon:null),void 0!==e.showReadonlyHostname&&(this.showReadonlyHostname=e.showReadonlyHostname),void 0!==e.hideCardWrapper&&(this.hideCardWrapper=e.hideCardWrapper),void 0!==e.hideBackgroundIllustration&&(this.hideBackgroundIllustration=e.hideBackgroundIllustration),void 0!==e.maxWidth&&(this.maxWidth=e.maxWidth),void 0!==e.hidePageIcon&&(this.hidePageIcon=e.hidePageIcon),void 0!==e.contentVerticalPadding&&(this.contentVerticalPadding=e.contentVerticalPadding),void 0!==e.footerVerticalPadding&&(this.footerVerticalPadding=e.footerVerticalPadding),void 0!==e.heroTextAlignment&&(this.heroTextAlignment=e.heroTextAlignment),void 0!==e.secondaryContentLocation&&(this.secondaryContentLocation=e.secondaryContentLocation),this.changeDetectorRef.detectChanges())}handleStringOrTranslation(e){var t;return"string"==typeof e?e:this.i18nService.t(e.key,...null!==(t=e.placeholders)&&void 0!==t?t:[])}resetPageData(){this.pageTitle=null,this.pageSubtitle=null,this.pageIcon=null,this.showReadonlyHostname=null,this.maxWidth=null,this.hideCardWrapper=null,this.hideBackgroundIllustration=null,this.hidePageIcon=void 0,this.contentVerticalPadding=void 0,this.footerVerticalPadding=void 0,this.heroTextAlignment=void 0,this.secondaryContentLocation=void 0}}zf.ɵfac=function(e){return new(e||zf)(w.rXU(R.Ix),w.rXU(R.nX),w.rXU(he.W),w.rXU(pe.f),w.rXU(r.gRc))},zf.ɵcmp=w.VBU({type:zf,selectors:[["ng-component"]],decls:6,vars:13,consts:[[3,"title","subtitle","icon","showReadonlyHostname","maxWidth","hideCardWrapper","hideBackgroundIllustration","hidePageIcon","contentVerticalPadding","footerVerticalPadding","heroTextAlignment","secondaryContentLocation"],["slot","header-actions","name","header-actions"],["slot","footer-secondary","name","secondary"],["slot","secondary","name","secondary"],["slot","environment-selector","name","environment-selector"]],template:function(e,t){1&e&&(w.j41(0,"auth-anon-layout",0),w.nrm(1,"router-outlet",1)(2,"router-outlet"),w.nVh(3,Yf,1,0,"router-outlet",2)(4,Xf,1,0,"router-outlet",3),w.nrm(5,"router-outlet",4),w.k0s()),2&e&&(w.Y8G("title",t.pageTitle)("subtitle",t.pageSubtitle)("icon",t.pageIcon)("showReadonlyHostname",t.showReadonlyHostname)("maxWidth",t.maxWidth)("hideCardWrapper",t.hideCardWrapper)("hideBackgroundIllustration",t.hideBackgroundIllustration)("hidePageIcon",t.hidePageIcon)("contentVerticalPadding",t.contentVerticalPadding)("footerVerticalPadding",t.footerVerticalPadding)("heroTextAlignment",t.heroTextAlignment)("secondaryContentLocation",t.secondaryContentLocation),w.R7$(3),w.vxM("footer"===t.secondaryContentLocation?3:4))},dependencies:[jf,Hp.iI,R.n3],encapsulation:2});var Lf=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Wf{constructor(e){this.token=e}}var Kf=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Zf{constructor(e,t,i,n,r,s){this.router=e,this.apiService=t,this.platformUtilsService=i,this.i18nService=n,this.route=r,this.toastService=s,this.loading=!0,this.submit=()=>Kf(this,void 0,void 0,function*(){const e=new Wf(this.token);yield this.apiService.deleteUsingToken(this.orgId,e),this.toastService.showToast({variant:"success",title:this.i18nService.t("organizationDeleted"),message:this.i18nService.t("organizationDeletedDesc")}),yield this.router.navigate(["/"])})}ngOnInit(){return Kf(this,void 0,void 0,function*(){const e=yield(0,u._)(this.route.queryParams);null!=e.orgId&&null!=e.token&&null!=e.name?(this.orgId=e.orgId,this.token=e.token,this.name=e.name,this.loading=!1):yield this.router.navigate(["/"])})}}Zf.ɵfac=function(e){return new(e||Zf)(w.rXU(R.Ix),w.rXU(Xe.X),w.rXU(G.y),w.rXU(he.W),w.rXU(R.nX),w.rXU(F.f))},Zf.ɵcmp=w.VBU({type:Zf,selectors:[["ng-component"]],decls:27,vars:24,consts:[[1,"tw-flex","tw-flex-row","tw-justify-center","tw-mt-5"],[1,"tw-w-1/4"],[1,"tw-text-xl","tw-text-center","tw-mb-4"],[1,"tw-rounded-md","tw-border","tw-border-solid","tw-border-secondary-300","tw-bg-background"],[1,"tw-p-5"],["type","warning"],[1,"tw-text-center"],[1,"tw-flex"],["type","button","bitButton","","buttonType","danger",3,"bitAction","disabled","block"],["routerLink","/login","bitButton","","buttonType","secondary",1,"tw-ml-2","tw-mt-0",3,"block"]],template:function(e,t){1&e&&(w.j41(0,"div",0)(1,"div",1)(2,"p",2),w.EFF(3),w.nI1(4,"i18n"),w.k0s(),w.j41(5,"div",3)(6,"div",4)(7,"bit-callout",5),w.EFF(8),w.nI1(9,"i18n"),w.k0s(),w.j41(10,"p",6)(11,"strong"),w.EFF(12),w.k0s()(),w.j41(13,"p"),w.EFF(14),w.nI1(15,"i18n"),w.k0s(),w.j41(16,"p"),w.EFF(17),w.nI1(18,"i18n"),w.k0s(),w.nrm(19,"hr"),w.j41(20,"div",7)(21,"button",8),w.EFF(22),w.nI1(23,"i18n"),w.k0s(),w.j41(24,"a",9),w.EFF(25),w.nI1(26,"i18n"),w.k0s()()()()()()),2&e&&(w.R7$(3),w.JRh(w.bMT(4,11,"deleteOrganization")),w.R7$(5),w.SpI(" ",w.i5U(9,13,"deletingOrganizationIsPermanentWarning",t.name)," "),w.R7$(4),w.JRh(t.name),w.R7$(2),w.JRh(w.bMT(15,16,"deleteRecoverOrgConfirmDesc")),w.R7$(3),w.JRh(w.bMT(18,18,"deletingOrganizationActiveUserAccountsWarning")),w.R7$(4),w.Y8G("bitAction",t.submit)("disabled",t.loading)("block",!0),w.R7$(),w.SpI(" ",w.bMT(23,20,"deleteOrganization")," "),w.R7$(2),w.Y8G("block",!0),w.R7$(),w.SpI(" ",w.bMT(26,22,"cancel")," "))},dependencies:[Dv.G,Hp.Wk,Up.p,fh.Q,ae.G,Hh.$],encapsulation:2});var Hf=i(80885),Jf=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function qf(e,t){if(1&e&&(w.j41(0,"div",1)(1,"div"),w.nrm(2,"bit-svg",2),w.nI1(3,"i18n"),w.j41(4,"div",3),w.nrm(5,"i",4),w.nI1(6,"i18n"),w.j41(7,"span",5),w.EFF(8),w.nI1(9,"i18n"),w.k0s()()()()),2&e){const e=w.XpG();w.R7$(2),w.Y8G("content",e.logo)("ariaLabel",w.bMT(3,5,"appLogoLabel")),w.R7$(3),w.Y8G("title",w.mNQ(w.bMT(6,7,"loading"))),w.R7$(3),w.JRh(w.bMT(9,9,"loading"))}}class $f extends Hf.X{constructor(){super(...arguments),this.logo=af,this.failedShortMessage="inviteAcceptFailedShort",this.failedMessage="inviteAcceptFailed",this.requiredParameters=["email","token"],this.policyApiService=(0,B.WQX)(He.m),this.configService=(0,B.WQX)(O.w),this.toastService=(0,B.WQX)(F.f)}authedHandler(e){return Jf(this,void 0,void 0,function*(){yield this.router.navigate(["/setup/families-for-enterprise"],{queryParams:e})})}unauthedHandler(e){return Jf(this,void 0,void 0,function*(){e.register?yield this.router.navigate(["/finish-signup"],{queryParams:{email:e.email,orgSponsoredFreeFamilyPlanToken:e.token}}):yield this.router.navigate(["/login"],{queryParams:{email:e.email}})})}}$f.ɵfac=(()=>{let e;return function(t){return(e||(e=w.xGo($f)))(t||$f)}})(),$f.ɵcmp=w.VBU({type:$f,selectors:[["ng-component"]],features:[w.Vt3],decls:1,vars:1,consts:[["class","tw-mt-10 tw-flex tw-justify-center",4,"ngIf"],[1,"tw-mt-10","tw-flex","tw-justify-center"],[1,"tw-w-72","tw-block","tw-mb-4",3,"content","ariaLabel"],[1,"tw-flex","tw-justify-center"],["aria-hidden","true",1,"bwi","bwi-spinner","bwi-spin","bwi-2x","tw-text-muted",3,"title"],[1,"tw-sr-only"]],template:function(e,t){1&e&&w.DNE(0,qf,10,11,"div",0),2&e&&w.Y8G("ngIf",t.loading)},dependencies:[L.MD,L.bT,Tm.Z,lf.k,ce.$Z],encapsulation:2});class _f{}var ey=i(67372),ty=i(71901),iy=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function ny(e,t){1&e&&(w.j41(0,"div",4),w.nrm(1,"i",5),w.nI1(2,"i18n"),w.j41(3,"span",6),w.EFF(4),w.nI1(5,"i18n"),w.k0s()()),2&e&&(w.R7$(),w.Y8G("title",w.mNQ(w.bMT(2,3,"loading"))),w.R7$(3),w.JRh(w.bMT(5,5,"loading")))}function ry(e,t){1&e&&(w.j41(0,"div",4)(1,"span"),w.EFF(2),w.nI1(3,"i18n"),w.k0s()()),2&e&&(w.R7$(2),w.JRh(w.bMT(3,1,"badToken")))}function sy(e,t){if(1&e&&w.nrm(0,"bit-option",16),2&e){const e=t.$implicit;w.Y8G("label",e.name)("value",e.id)}}function oy(e,t){if(1&e){const e=w.RV6();w.j41(0,"div")(1,"app-organization-plans",17),w.bIt("onSuccess",function(t){B.eBV(e);const i=w.XpG(2);return B.Njj(i.onOrganizationCreateSuccess(t))}),w.k0s()()}if(2&e){const e=w.XpG(2);w.R7$(),w.Y8G("initialPlan",e.familyPlan)("initialProductTier",e.familyProductTier)("acceptingSponsorship",!0)("planSponsorshipType",e.planSponsorshipType)}}function ay(e,t){1&e&&(w.j41(0,"div",9)(1,"button",18),w.EFF(2),w.nI1(3,"i18n"),w.k0s()()),2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"acceptOffer")," "))}function ly(e,t){if(1&e&&(w.j41(0,"form",7)(1,"p",8),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"bit-form-field",9)(5,"bit-label"),w.EFF(6),w.nI1(7,"i18n"),w.k0s(),w.j41(8,"bit-select",10),w.nrm(9,"bit-option",11),w.nI1(10,"i18n"),w.nrm(11,"bit-option",12),w.nI1(12,"i18n"),w.DNE(13,sy,1,2,"bit-option",13),w.nI1(14,"async"),w.k0s()(),w.DNE(15,oy,2,4,"div",14)(16,ay,4,3,"div",15),w.k0s()),2&e){const e=w.XpG();w.Y8G("bitSubmit",e.submit)("formGroup",e.formGroup),w.R7$(2),w.JRh(w.bMT(3,11,"acceptBitwardenFamiliesHelp")),w.R7$(4),w.JRh(w.bMT(7,13,"sponsoredFamiliesSelectOffer")),w.R7$(3),w.Y8G("label",w.VkB("-- ",w.bMT(10,15,"select")," --")),w.R7$(2),w.Y8G("label",w.mNQ(w.bMT(12,17,"newFamiliesOrganization"))),w.R7$(2),w.Y8G("ngForOf",w.bMT(14,19,e.existingFamilyOrganizations$)),w.R7$(2),w.Y8G("ngIf",e.showNewOrganization),w.R7$(),w.Y8G("ngIf",!e.showNewOrganization)}}class cy{constructor(e,t,i,n,r,s,o,l,c,u,h,A){this.router=e,this.i18nService=t,this.route=i,this.apiService=n,this.syncService=r,this.validationService=s,this.organizationService=o,this.accountService=l,this.dialogService=c,this.formBuilder=u,this.toastService=h,this.logService=A,this.loading=!0,this.badToken=!1,this.showNewOrganization=!1,this._selectedFamilyOrganizationId="",this._destroy=new d.B,this.familyProductTier=Yr.K_.Families,this.planSponsorshipType=Yr.MM.FamiliesForEnterprise,this.formGroup=this.formBuilder.group({selectedFamilyOrganizationId:["",a.k0.required]}),this.submit=()=>iy(this,void 0,void 0,function*(){yield this.doSubmit(this._selectedFamilyOrganizationId)})}ngOnInit(){return iy(this,void 0,void 0,function*(){document.body.classList.remove("layout_frontend"),this.route.queryParams.pipe((0,lA.$)()).subscribe(e=>iy(this,void 0,void 0,function*(){return null==e.token?(this.logService.warning("[Sponsorship] No token found in query params"),this.toastService.showToast({variant:"error",title:null,message:this.i18nService.t("sponsoredFamiliesAcceptFailed"),timeout:1e4}),void this.router.navigate(["/"])):(this.token=e.token,this.logService.info(`[Sponsorship] Token present (length=${this.token.length}), starting validation`),yield this.syncService.fullSync(!0),this.preValidateSponsorshipResponse=yield this.apiService.postPreValidateSponsorshipToken(this.token),this.logService.info(`[Sponsorship] Pre-validation result: isTokenValid=${this.preValidateSponsorshipResponse.isTokenValid}, isFreeFamilyPolicyEnabled=${this.preValidateSponsorshipResponse.isFreeFamilyPolicyEnabled}`),this.preValidateSponsorshipResponse.isFreeFamilyPolicyEnabled?(this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccured"),message:this.i18nService.t("offerNoLongerValid")}),void(yield this.router.navigate(["/"]))):(this.badToken=!this.preValidateSponsorshipResponse.isTokenValid,this.familyPlan=Yr.OL.FamiliesAnnually,void(this.loading=!1)))}));const e=yield(0,u._)((0,f.F6)(this.accountService.activeAccount$));this.existingFamilyOrganizations$=this.organizationService.organizations$(e).pipe((0,p.T)(e=>e.filter(e=>e.productTierType===Yr.K_.Families&&e.type===_e.D7.Owner))),this.existingFamilyOrganizations$.pipe((0,en.Q)(this._destroy)).subscribe(e=>{0===e.length&&(this.selectedFamilyOrganizationId="createNew")}),this.formGroup.valueChanges.pipe((0,en.Q)(this._destroy)).subscribe(e=>{this.selectedFamilyOrganizationId=e.selectedFamilyOrganizationId})})}ngOnDestroy(){this._destroy.next(),this._destroy.complete()}get selectedFamilyOrganizationId(){return this._selectedFamilyOrganizationId}set selectedFamilyOrganizationId(e){this._selectedFamilyOrganizationId=e,this.showNewOrganization="createNew"===e}doSubmit(e){return iy(this,void 0,void 0,function*(){var t;this.logService.info(`[Sponsorship] Redeem started: organizationId=${e}, showNewOrganization=${this.showNewOrganization}, tokenLength=${null===(t=this.token)||void 0===t?void 0:t.length}`);try{const t=new _f;t.planSponsorshipType=Yr.MM.FamiliesForEnterprise,t.sponsoredOrganizationId=e,yield this.apiService.postRedeemSponsorship(this.token,t),this.logService.info("[Sponsorship] Redeem succeeded"),this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("sponsoredFamiliesOfferRedeemed")}),yield this.syncService.fullSync(!0),this.router.navigate(["/"])}catch(i){if(i instanceof Xt._?this.logService.error(`[Sponsorship] Redeem failed: statusCode=${i.statusCode}, message="${i.message}", validationErrors=${JSON.stringify(i.validationErrors)}`):this.logService.error(`[Sponsorship] Redeem failed with unexpected error: ${i}`),this.showNewOrganization){this.logService.warning(`[Sponsorship] Opening delete dialog for newly created org: organizationId=${e}`);const t=(0,ty.f$)(this.dialogService,{data:{organizationId:e,requestType:"InvalidFamiliesForEnterprise"}});(yield(0,hh.s)(t.closed))===ty.ay.Deleted&&this.router.navigate(["/"])}this.validationService.showError(this.i18nService.t("sponsorshipTokenHasExpired"))}})}onOrganizationCreateSuccess(e){return iy(this,void 0,void 0,function*(){this.logService.info(`[Sponsorship] Organization created successfully: organizationId=${null==e?void 0:e.organizationId}`),yield this.doSubmit(e.organizationId)})}}cy.ɵfac=function(e){return new(e||cy)(w.rXU(R.Ix),w.rXU(he.W),w.rXU(R.nX),w.rXU(je.G),w.rXU(Gp.H),w.rXU(oa.B),w.rXU(v.PV),w.rXU(N.D),w.rXU(T.o),w.rXU(a.ok),w.rXU(F.f),w.rXU(se.K))},cy.ɵcmp=w.VBU({type:cy,selectors:[["ng-component"]],decls:7,vars:6,consts:[[1,"tw-container"],["bitTypography","h1"],["class","tw-mt-5 tw-flex tw-justify-center",4,"ngIf"],[3,"bitSubmit","formGroup",4,"ngIf"],[1,"tw-mt-5","tw-flex","tw-justify-center"],["aria-hidden","true",1,"bwi","bwi-spinner","bwi-spin","bwi-2x","tw-text-muted",3,"title"],[1,"tw-sr-only"],[3,"bitSubmit","formGroup"],["bitTypography","body1"],[1,"tw-w-1/2"],["formControlName","selectedFamilyOrganizationId"],["value","","disabled","",3,"label"],["value","createNew",3,"label"],[3,"label","value",4,"ngFor","ngForOf"],[4,"ngIf"],["class","tw-w-1/2",4,"ngIf"],[3,"label","value"],[3,"onSuccess","initialPlan","initialProductTier","acceptingSponsorship","planSponsorshipType"],["bitButton","","buttonType","primary","bitFormButton","","type","submit"]],template:function(e,t){1&e&&(w.j41(0,"div",0)(1,"h1",1),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.DNE(4,ny,6,7,"div",2)(5,ry,4,3,"div",2)(6,ly,17,21,"form",3),w.k0s()),2&e&&(w.R7$(2),w.JRh(w.bMT(3,4,"sponsoredFamiliesOffer")),w.R7$(2),w.Y8G("ngIf",t.loading),w.R7$(),w.Y8G("ngIf",!t.loading&&t.badToken),w.R7$(),w.Y8G("ngIf",!t.loading&&!t.badToken))},dependencies:[Tv.G,L.Sq,L.bT,a.qT,a.BC,a.cb,a.j4,a.JD,Ih.$,wh.L,fh.Q,Xh.j,Wh.h,tg.w,ig.P,Tp.r,ey.v,L.Jj,Hh.$],encapsulation:2});var dy=i(72932),uy=i(10672),hy=i(49112);class Ay{constructor(e){this.route=e,this.secretsManager=!1,this.plan=Yr.OL.Free,this.productTier=Yr.K_.Free,this.destroy$=new d.B}ngOnInit(){this.route.queryParams.pipe((0,lA.$)(),(0,en.Q)(this.destroy$)).subscribe(e=>{"families"===e.plan||e.productTier==Yr.K_.Families?(this.plan=Yr.OL.FamiliesAnnually,this.productTier=Yr.K_.Families):"teams"===e.plan||e.productTier==Yr.K_.Teams?(this.plan=Yr.OL.TeamsAnnually,this.productTier=Yr.K_.Teams):"teamsStarter"===e.plan||e.productTier==Yr.K_.TeamsStarter?(this.plan=Yr.OL.TeamsStarter,this.productTier=Yr.K_.TeamsStarter):"enterprise"!==e.plan&&e.productTier!=Yr.K_.Enterprise||(this.plan=Yr.OL.EnterpriseAnnually,this.productTier=Yr.K_.Enterprise),this.secretsManager=e.product==Yr.ch.SecretsManager,this.trialLength=e.trialLength?parseInt(e.trialLength):void 0})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}Ay.ɵfac=function(e){return new(e||Ay)(w.rXU(R.nX))},Ay.ɵcmp=w.VBU({type:Ay,selectors:[["ng-component"]],decls:6,vars:7,consts:[[3,"enableSecretsManagerByDefault","initialPlan","initialProductTier","trialLength"]],template:function(e,t){1&e&&(w.nrm(0,"app-header"),w.j41(1,"bit-container")(2,"p"),w.EFF(3),w.nI1(4,"i18n"),w.k0s(),w.nrm(5,"app-organization-plans",0),w.k0s()),2&e&&(w.R7$(3),w.JRh(w.bMT(4,5,"newOrganizationDesc")),w.R7$(2),w.Y8G("enableSecretsManagerByDefault",t.secretsManager)("initialPlan",t.plan)("initialProductTier",t.productTier)("trialLength",t.trialLength))},dependencies:[Tv.G,uy.H,ey.v,dy.G,hy.f,Hh.$],encapsulation:2});const py=Object.freeze({Account:"account",EmergencyAccess:"emergency-access",Password:"password",TwoFactor:"two-factor",SecurityKeys:"security-keys",DeviceManagement:"device-management"}),gy=Object.freeze({SignUpLinkExpired:"signup-link-expired",RecoverTwoFactor:"recover-2fa",AcceptEmergencyAccessInvite:"accept-emergency",RecoverDeleteAccount:"recover-delete",VerifyRecoverDeleteAccount:"verify-recover-delete",AcceptOrgDirectInvite:"accept-organization",AccountSettings:`settings/${py.Account}`,EmergencyAccessSettings:`settings/${py.EmergencyAccess}`,PasswordSettings:`settings/security/${py.Password}`,TwoFactorSettings:`settings/security/${py.TwoFactor}`,SecurityKeysSettings:`settings/security/${py.SecurityKeys}`,DeviceManagement:`settings/security/${py.DeviceManagement}`});var vy=i(63629),my=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class fy{constructor(e,t,i,n){this.authService=e,this.router=t,this.i18nService=i,this.toastService=n}run(e,t){return my(this,void 0,void 0,function*(){const i=t.parse(e);if(null==i)return void(yield this.handleError(null,t));const n=(yield(0,u._)(this.authService.activeAccountStatus$))!==m.J.LoggedOut?t.authedHandler:t.unauthedHandler;try{yield n(i)}catch(r){const e=r instanceof Xt._||r instanceof Error?r.message:null;yield this.handleError(e,t)}})}handleError(e,t){return my(this,void 0,void 0,function*(){t.onError&&(yield t.onError());const i=t.getErrorMessage?t.getErrorMessage(e):this.defaultErrorMessage(e,t);this.toastService.showToast({message:i,variant:"error",timeout:1e4}),yield this.router.navigate(["/"])})}defaultErrorMessage(e,t){var i;const n=null!==(i=t.failedShortMessage)&&void 0!==i?i:"inviteAcceptFailedShort";return null!=e?this.i18nService.t(n,e):this.i18nService.t(t.failedMessage)}}fy.ɵfac=function(e){return new(e||fy)(B.KVO(k.u),B.KVO(R.Ix),B.KVO(he.W),B.KVO(F.f))},fy.ɵprov=B.jDH({token:fy,factory:fy.ɵfac,providedIn:"root"});var yy=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class by{constructor(e,t,i,n,r,s,o){this.router=e,this.i18nService=t,this.route=i,this.acceptFlowService=n,this.organizationInviteService=r,this.accountService=s,this.toastService=o,this.loading=!0,this.failedMessage="inviteAcceptFailed"}ngOnInit(){return yy(this,void 0,void 0,function*(){const e=yield(0,u._)(this.route.queryParams);yield this.acceptFlowService.run(e,{failedMessage:this.failedMessage,parse:e=>yi.fromUrlParams(null!=e?e:{}),authedHandler:e=>this.authedHandler(e),unauthedHandler:e=>this.unauthedHandler(e),getErrorMessage:e=>this.getErrorMessage(e),onError:()=>this.organizationInviteService.clearOrganizationInvite()}),this.loading=!1})}authedHandler(e){return yy(this,void 0,void 0,function*(){const t=yield(0,u._)((0,f.F6)(this.accountService.activeAccount$));(yield this.organizationInviteService.validateAndAcceptInvite(e,t))&&(this.toastService.showToast({message:e.initOrganization?this.i18nService.t("inviteInitAcceptedDesc"):this.i18nService.t("invitationAcceptedDesc"),variant:"success",timeout:1e4}),yield this.router.navigate(["/"]))})}unauthedHandler(e){return yy(this,void 0,void 0,function*(){yield this.organizationInviteService.setOrganizationInvite(e),yield this.navigateInviteAcceptance(e)})}getErrorMessage(e){return"Expired token."===e?this.i18nService.t(this.failedMessage):null!=e?this.i18nService.t("inviteAcceptFailedShort",e):this.i18nService.t(this.failedMessage)}navigateInviteAcceptance(e){return yy(this,void 0,void 0,function*(){e.orgUserHasExistingUser?yield this.router.navigate(["/login"],{queryParams:{email:e.email}}):e.orgSsoIdentifier?yield this.router.navigate(["/sso"],{queryParams:{email:e.email,identifier:e.orgSsoIdentifier}}):yield this.router.navigate(["/finish-signup"],{queryParams:{email:e.email}})})}}by.ɵfac=function(e){return new(e||by)(w.rXU(R.Ix),w.rXU(he.W),w.rXU(R.nX),w.rXU(fy),w.rXU(ge),w.rXU(N.D),w.rXU(F.f))},by.ɵcmp=w.VBU({type:by,selectors:[["ng-component"]],decls:6,vars:3,consts:[[1,"tw-mt-5","tw-flex","tw-justify-center"],["src","../../images/logo-dark@2x.png","alt","Bitwarden",1,"logo"],[1,"tw-text-center","tw-my-4"],["name","bwi-spinner",1,"bwi-spin","bwi-2x","tw-text-muted",3,"ariaLabel"]],template:function(e,t){1&e&&(w.j41(0,"div",0)(1,"div"),w.nrm(2,"img",1),w.j41(3,"p",2),w.nrm(4,"bit-icon",3),w.nI1(5,"i18n"),w.k0s()()()),2&e&&(w.R7$(4),w.Y8G("ariaLabel",w.bMT(5,1,"loading")))},dependencies:[le.o,ve.R,ce.$Z],encapsulation:2});class Cy{}var Iy=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class wy{get email(){return this.recoverDeleteForm.controls.email}constructor(e,t,i,n){this.router=e,this.apiService=t,this.i18nService=i,this.toastService=n,this.recoverDeleteForm=new a.gE({email:new a.MJ("",[a.k0.required])}),this.submit=()=>Iy(this,void 0,void 0,function*(){if(this.recoverDeleteForm.invalid)return;const e=new Cy;e.email=this.email.value.trim().toLowerCase(),yield this.apiService.postAccountRecoverDelete(e),this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("deleteRecoverEmailSent")}),yield this.router.navigate(["/"])})}}wy.ɵfac=function(e){return new(e||wy)(w.rXU(R.Ix),w.rXU(je.G),w.rXU(he.W),w.rXU(F.f))},wy.ɵcmp=w.VBU({type:wy,selectors:[["app-recover-delete"]],decls:17,vars:16,consts:[[3,"formGroup","bitSubmit"],["bitTypography","body1"],["bitInput","","appAutofocus","","appInputVerbatim","false","type","email","formControlName","email"],[1,"tw-flex","tw-gap-2"],["type","submit","bitButton","","bitFormButton","","buttonType","primary",3,"block"],["bitButton","","buttonType","secondary","routerLink","/login",3,"block"]],template:function(e,t){1&e&&(w.j41(0,"form",0)(1,"p",1),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"bit-form-field")(5,"bit-label"),w.EFF(6),w.nI1(7,"i18n"),w.k0s(),w.nrm(8,"input",2),w.k0s(),w.nrm(9,"hr"),w.j41(10,"div",3)(11,"button",4),w.EFF(12),w.nI1(13,"i18n"),w.k0s(),w.j41(14,"a",5),w.EFF(15),w.nI1(16,"i18n"),w.k0s()()()),2&e&&(w.Y8G("formGroup",t.recoverDeleteForm)("bitSubmit",t.submit),w.R7$(2),w.JRh(w.bMT(3,8,"deleteRecoverDesc")),w.R7$(4),w.JRh(w.bMT(7,10,"emailAddress")),w.R7$(5),w.Y8G("block",!0),w.R7$(),w.SpI(" ",w.bMT(13,12,"submit")," "),w.R7$(2),w.Y8G("block",!0),w.R7$(),w.SpI(" ",w.bMT(16,14,"cancel")," "))},dependencies:[a.X1,a.qT,a.me,a.BC,a.cb,a.j4,a.JD,Hp.Wk,Nh.p,M.B,rp.q,vh.C,Ih.$,wh.L,Ah.t,fh.Q,Oh.L,Xh.j,Lh.J,Wh.h,Fp.E,Tp.r,Hh.$],encapsulation:2});var By=i(71804),Ey=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Sy{constructor(e,t,i,n,r,s,o,l){this.destroyRef=e,this.router=t,this.i18nService=i,this.loginStrategyService=n,this.toastService=r,this.loginSuccessHandlerService=s,this.logService=o,this.validationService=l,this.formGroup=new a.gE({email:new a.MJ("",[a.k0.required]),masterPassword:new a.MJ("",[a.k0.required]),recoveryCode:new a.MJ("",[a.k0.required])}),this.recoveryCodeMessage="",this.submit=()=>Ey(this,void 0,void 0,function*(){if(this.formGroup.markAllAsTouched(),this.formGroup.invalid)return;const e=this.email.trim().toLowerCase(),t=this.recoveryCode.replace(/\s/g,"").toLowerCase();yield this.loginWithRecoveryCode(e,t)})}ngOnInit(){return Ey(this,void 0,void 0,function*(){this.recoveryCodeMessage=this.i18nService.t("logInBelowUsingYourSingleUseRecoveryCode"),this.formGroup.valueChanges.pipe((0,c.pQ)(this.destroyRef)).subscribe(()=>{var e;null===(e=this.formGroup.get("recoveryCode"))||void 0===e||e.setErrors(null)})})}get email(){var e,t;return null!==(t=null===(e=this.formGroup.get("email"))||void 0===e?void 0:e.value)&&void 0!==t?t:""}get masterPassword(){var e,t;return null!==(t=null===(e=this.formGroup.get("masterPassword"))||void 0===e?void 0:e.value)&&void 0!==t?t:""}get recoveryCode(){var e,t;return null!==(t=null===(e=this.formGroup.get("recoveryCode"))||void 0===e?void 0:e.value)&&void 0!==t?t:""}loginWithRecoveryCode(e,t){return Ey(this,void 0,void 0,function*(){var i;const n={provider:By.R.RecoveryCode,token:t,remember:!1},r=new g.F2(e,this.masterPassword,n);try{const e=yield this.loginStrategyService.logIn(r);this.toastService.showToast({variant:"success",title:"",message:this.i18nService.t("youHaveBeenLoggedIn")}),this.toastService.showToast({variant:"success",title:"",message:this.i18nService.t("twoStepRecoverDisabled")}),yield this.loginSuccessHandlerService.run(e.userId,this.masterPassword),yield this.router.navigate(["/settings/security/two-factor"])}catch(s){s instanceof Xt._?s.message.includes("Two-factor recovery has been performed. SSO authentication is required.")?(this.toastService.showToast({variant:"success",title:"",message:this.i18nService.t("twoStepRecoverDisabled")}),this.toastService.showToast({variant:"error",title:"",message:this.i18nService.t("ssoLoginIsRequired")}),yield this.router.navigate(["/login"])):(this.logService.error("Error logging in automatically: ",s.message),s.message.includes("Two-step token is invalid")?null===(i=this.formGroup.get("recoveryCode"))||void 0===i||i.setErrors({invalidRecoveryCode:{message:this.i18nService.t("invalidRecoveryCode")}}):this.validationService.showError(s.message)):(this.logService.error("Error logging in automatically: ",s),this.validationService.showError(s))}})}}Sy.ɵfac=function(e){return new(e||Sy)(w.rXU(B.abz),w.rXU(R.Ix),w.rXU(he.W),w.rXU(g.sg),w.rXU(F.f),w.rXU(g.aJ),w.rXU(se.K),w.rXU(oa.B))},Sy.ɵcmp=w.VBU({type:Sy,selectors:[["app-recover-two-factor"]],decls:28,vars:23,consts:[[3,"formGroup","bitSubmit"],["bitTypography","body1"],["bitLink","","href","https://bitwarden.com/help/lost-two-step-device/","target","_blank","rel","noreferrer"],["bitInput","","type","text","formControlName","email","appAutofocus","","inputmode","email","appInputVerbatim","false"],["bitInput","","type","password","formControlName","masterPassword","appInputVerbatim",""],["bitInput","","type","text","formControlName","recoveryCode","appInputVerbatim",""],[1,"tw-flex","tw-gap-2"],["type","submit","bitButton","","bitFormButton","","buttonType","primary",3,"block"],["bitButton","","buttonType","secondary","routerLink","/login",3,"block"]],template:function(e,t){1&e&&(w.j41(0,"form",0)(1,"p",1),w.EFF(2),w.j41(3,"a",2),w.EFF(4),w.nI1(5,"i18n"),w.k0s()(),w.j41(6,"bit-form-field")(7,"bit-label"),w.EFF(8),w.nI1(9,"i18n"),w.k0s(),w.nrm(10,"input",3),w.k0s(),w.j41(11,"bit-form-field")(12,"bit-label"),w.EFF(13),w.nI1(14,"i18n"),w.k0s(),w.nrm(15,"input",4),w.k0s(),w.j41(16,"bit-form-field")(17,"bit-label"),w.EFF(18),w.nI1(19,"i18n"),w.k0s(),w.nrm(20,"input",5),w.k0s(),w.j41(21,"div",6)(22,"button",7),w.EFF(23),w.nI1(24,"i18n"),w.k0s(),w.j41(25,"a",8),w.EFF(26),w.nI1(27,"i18n"),w.k0s()()()),2&e&&(w.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit),w.R7$(2),w.SpI(" ",t.recoveryCodeMessage," "),w.R7$(2),w.JRh(w.bMT(5,11,"learnMore")),w.R7$(4),w.JRh(w.bMT(9,13,"emailAddress")),w.R7$(5),w.JRh(w.bMT(14,15,"masterPass")),w.R7$(5),w.JRh(w.bMT(19,17,"recoveryCodeTitle")),w.R7$(4),w.Y8G("block",!0),w.R7$(),w.SpI(" ",w.bMT(24,19,"submit")," "),w.R7$(2),w.Y8G("block",!0),w.R7$(),w.SpI(" ",w.bMT(27,21,"cancel")," "))},dependencies:[a.X1,a.qT,a.me,a.BC,a.cb,a.j4,a.JD,Hp.Wk,Nh.p,M.B,rp.q,vh.C,Ih.$,wh.L,Ah.t,fh.Q,Oh.L,Xh.j,Lh.J,Wh.h,Gh.V,jh.g,Fp.E,Tp.r,Hh.$],encapsulation:2});var Qy=i(84431),ky=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function Ry(e,t){1&e&&(w.j41(0,"bit-callout",10),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,1,"changeEmailTwoFactorWarning")," "))}function Fy(e,t){if(1&e&&(w.qex(0),w.nrm(1,"hr"),w.j41(2,"p"),w.EFF(3),w.nI1(4,"i18n"),w.k0s(),w.j41(5,"bit-callout",10),w.EFF(6),w.nI1(7,"i18n"),w.k0s(),w.j41(8,"div",11)(9,"bit-form-field")(10,"bit-label"),w.EFF(11),w.nI1(12,"i18n"),w.k0s(),w.nrm(13,"input",12),w.k0s()(),w.bVm()),2&e){const e=w.XpG();w.R7$(3),w.JRh(w.i5U(4,3,"changeEmailDesc",e.formGroup.controls.step1.value.newEmail)),w.R7$(3),w.JRh(w.bMT(7,6,"loggedOutWarning")),w.R7$(5),w.JRh(w.bMT(12,8,"code"))}}function Ty(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",13),w.bIt("click",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.reset())}),w.EFF(1),w.nI1(2,"i18n"),w.k0s()}2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,1,"cancel")," "))}class Dy{constructor(e,t,i,n,r,s,o){this.accountService=e,this.twoFactorService=t,this.i18nService=i,this.messagingService=n,this.formBuilder=r,this.toastService=s,this.changeEmailService=o,this.tokenSent=!1,this.showTwoFactorEmailWarning=!1,this.formGroup=this.formBuilder.group({step1:this.formBuilder.group({masterPassword:["",[a.k0.required]],newEmail:["",[a.k0.required,a.k0.email]]}),token:[{value:"",disabled:!0},[a.k0.required]]}),this.submit=()=>ky(this,void 0,void 0,function*(){var e;if(null==this.userId)throw new Error("Can't find user");if(this.formGroup.controls.step1.markAllAsTouched(),this.tokenSent&&this.formGroup.controls.token.markAllAsTouched(),this.formGroup.invalid)return;const t=this.formGroup.controls.step1.value,i=null===(e=t.newEmail)||void 0===e?void 0:e.trim().toLowerCase(),n=t.masterPassword,r="Could not update email.";if((0,Se.x)(i,"email",r),(0,Se.x)(n,"password",r),this.tokenSent){const e=this.formGroup.value.token;if(null==e)throw new Error("Missing token");yield this.changeEmailService.confirmEmailChange(n,i,e,this.userId),this.reset(),this.toastService.showToast({variant:"success",title:this.i18nService.t("emailChanged"),message:this.i18nService.t("logBackIn")}),this.messagingService.send("logout")}else yield this.changeEmailService.requestEmailToken(n,i,this.userId),this.activateStep2()})}ngOnInit(){return ky(this,void 0,void 0,function*(){this.userId=yield(0,u._)((0,f.F6)(this.accountService.activeAccount$));const e=yield this.twoFactorService.getEnabledTwoFactorProviders();this.showTwoFactorEmailWarning=e.data.some(e=>e.type===By.R.Email&&e.enabled)})}activateStep2(){this.formGroup.controls.step1.disable(),this.formGroup.controls.token.enable(),this.tokenSent=!0}reset(){this.formGroup.reset(),this.formGroup.controls.step1.enable(),this.formGroup.controls.token.disable(),this.tokenSent=!1}}Dy.ɵfac=function(e){return new(e||Dy)(w.rXU(N.D),w.rXU(ar.fz),w.rXU(he.W),w.rXU(oe.U),w.rXU(a.ok),w.rXU(F.f),w.rXU(CA))},Dy.ɵcmp=w.VBU({type:Dy,selectors:[["app-change-email"]],decls:20,vars:14,consts:[[3,"formGroup","bitSubmit"],["type","warning",4,"ngIf"],["formGroupName","step1",1,"@3xl:tw-w-1/2","tw-pr-2"],["id","change-email_input_masterPassword","bitInput","","type","password","formControlName","masterPassword"],["type","button","bitIconButton","","bitSuffix","","bitPasswordInputToggle",""],["id","change-email_input_newEmail","bitInput","","type","email","formControlName","newEmail","inputmode","email"],[4,"ngIf"],[1,"tw-flex","tw-gap-2"],["type","submit","bitButton","","buttonType","primary","bitFormButton",""],["type","button","bitButton","",3,"click",4,"ngIf"],["type","warning"],[1,"tw-w-1/2","tw-pr-2"],["id","change-email_input_token","bitInput","","type","text","formControlName","token"],["type","button","bitButton","",3,"click"]],template:function(e,t){1&e&&(w.j41(0,"form",0),w.DNE(1,Ry,3,3,"bit-callout",1),w.j41(2,"div",2)(3,"bit-form-field")(4,"bit-label"),w.EFF(5),w.nI1(6,"i18n"),w.k0s(),w.nrm(7,"input",3)(8,"button",4),w.k0s(),w.j41(9,"bit-form-field")(10,"bit-label"),w.EFF(11),w.nI1(12,"i18n"),w.k0s(),w.nrm(13,"input",5),w.k0s()(),w.DNE(14,Fy,14,10,"ng-container",6),w.j41(15,"div",7)(16,"button",8),w.EFF(17),w.nI1(18,"i18n"),w.k0s(),w.DNE(19,Ty,3,3,"button",9),w.k0s()()),2&e&&(w.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit),w.R7$(),w.Y8G("ngIf",t.showTwoFactorEmailWarning),w.R7$(4),w.JRh(w.bMT(6,8,"masterPass")),w.R7$(6),w.JRh(w.bMT(12,10,"newEmail")),w.R7$(3),w.Y8G("ngIf",t.tokenSent),w.R7$(3),w.SpI(" ",w.bMT(18,12,t.tokenSent?"changeEmail":"continue")," "),w.R7$(2),w.Y8G("ngIf",t.tokenSent))},dependencies:[Tv.G,L.bT,a.qT,a.me,a.BC,a.cb,a.j4,a.JD,a.$R,Ih.$,wh.L,fh.Q,ae.G,Xh.j,Lh.J,Wh.h,Kh.e,Zh.a,Yh.s,Hh.$],encapsulation:2});var Py=i(46131),My=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class xy{constructor(e,t,i,n,r,s,o){this.apiService=e,this.i18nService=t,this.formBuilder=i,this.userVerificationService=n,this.messagingService=r,this.logService=s,this.toastService=o,this.deauthForm=this.formBuilder.group({verification:void 0}),this.invalidSecret=!1,this.submit=()=>My(this,void 0,void 0,function*(){try{const e=this.deauthForm.value.verification,t=yield this.userVerificationService.buildRequest(e);yield this.apiService.postSecurityStamp(t),this.toastService.showToast({variant:"success",title:this.i18nService.t("sessionsDeauthorized"),message:this.i18nService.t("logBackIn")}),this.messagingService.send("logout")}catch(e){this.logService.error(e)}})}static open(e){return e.open(xy)}}xy.ɵfac=function(e){return new(e||xy)(w.rXU(je.G),w.rXU(he.W),w.rXU(a.ok),w.rXU(Ai.i),w.rXU(oe.U),w.rXU(se.K),w.rXU(F.f))},xy.ɵcmp=w.VBU({type:xy,selectors:[["ng-component"]],decls:17,vars:18,consts:[["bit-dialog","","dialogSize","default",3,"formGroup","bitSubmit","title"],["bitDialogContent",""],["bitTypography","body1"],["type","warning"],["formControlName","verification","name","verification",3,"invalidSecretChange","invalidSecret"],["bitDialogFooter",""],["bitButton","","bitFormButton","","type","submit","buttonType","danger"],["bitButton","","bitFormButton","","type","button","buttonType","secondary","bitDialogClose",""]],template:function(e,t){1&e&&(w.j41(0,"form",0),w.nI1(1,"i18n"),w.qex(2,1),w.j41(3,"p",2),w.EFF(4),w.nI1(5,"i18n"),w.k0s(),w.j41(6,"bit-callout",3),w.EFF(7),w.nI1(8,"i18n"),w.k0s(),w.j41(9,"app-user-verification-form-input",4),w.mxI("invalidSecretChange",function(e){return w.DH7(t.invalidSecret,e)||(t.invalidSecret=e),e}),w.k0s(),w.bVm(),w.qex(10,5),w.j41(11,"button",6),w.EFF(12),w.nI1(13,"i18n"),w.k0s(),w.j41(14,"button",7),w.EFF(15),w.nI1(16,"i18n"),w.k0s(),w.bVm(),w.k0s()),2&e&&(w.Y8G("formGroup",t.deauthForm)("bitSubmit",t.submit)("title",w.bMT(1,8,"deauthorizeSessions")),w.R7$(4),w.JRh(w.bMT(5,10,"deauthorizeSessionsDesc")),w.R7$(3),w.JRh(w.bMT(8,12,"deauthorizeSessionsWarning")),w.R7$(2),w.R50("invalidSecret",t.invalidSecret),w.R7$(3),w.SpI(" ",w.bMT(13,14,"deauthorizeSessions")," "),w.R7$(3),w.SpI(" ",w.bMT(16,16,"close")," "))},dependencies:[Tv.G,a.qT,a.BC,a.cb,a.j4,a.JD,Ih.$,wh.L,fh.Q,ae.G,yh.I,bh.m,Ch.hJ,Tp.r,ne.wV,Hh.$],encapsulation:2});class Vy{constructor(e){this.culture="en-US",this.name=e}}var Gy=i(23490),Uy=i(77243),Oy=i(14679),Ny=i(57144),jy=i(79703);class Yy{constructor(){this.selected=!1,this.select=new B.bkB}onFire(){this.select.emit(this.color)}get classList(){return["tw-rounded-full tw-inline-block"].concat(["tw-cursor-pointer","tw-outline","tw-outline-solid","tw-outline-offset-1"]).concat(this.selected?["tw-outline-[3px]","tw-outline-primary-600"]:["tw-outline-0","hover:tw-outline-1","hover:tw-outline-primary-300","focus:tw-outline-2","focus:tw-outline-primary-600"])}}Yy.ɵfac=function(e){return new(e||Yy)},Yy.ɵcmp=w.VBU({type:Yy,selectors:[["selectable-avatar"]],inputs:{id:"id",text:"text",title:"title",color:"color",selected:"selected"},outputs:{select:"select"},decls:2,vars:7,consts:[["tabindex","0",3,"click","keyup.enter","title","ngClass"],["appStopClick","","size","2xl",3,"text","color","id","title"]],template:function(e,t){1&e&&(w.j41(0,"span",0),w.bIt("click",function(){return t.onFire()})("keyup.enter",function(){return t.onFire()}),w.nrm(1,"bit-avatar",1),w.k0s()),2&e&&(w.Y8G("title",t.title)("ngClass",t.classList),w.R7$(),w.Y8G("text",t.text)("text",t.text)("color",t.color)("id",t.id)("title",t.title))},dependencies:[L.YU,jy.m,Ny.fw],encapsulation:2});var Xy=i(93103),zy=i(90171),Ly=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const Wy=["colorPicker"],Ky=e=>({"!tw-outline-[3px] tw-outline-primary-600 hover:tw-outline-[3px] hover:tw-outline-primary-600":e});function Zy(e,t){1&e&&(w.j41(0,"div",13),w.nrm(1,"bit-icon",14),w.nI1(2,"i18n"),w.EFF(3),w.nI1(4,"i18n"),w.k0s()),2&e&&(w.R7$(),w.Y8G("ariaLabel",w.bMT(2,2,"loading")),w.R7$(2),w.SpI(" ",w.bMT(4,4,"loading")," "))}function Hy(e,t){if(1&e){const e=w.RV6();w.qex(0),w.j41(1,"selectable-avatar",15),w.nI1(2,"userName"),w.bIt("select",function(){const t=B.eBV(e).$implicit,i=w.XpG();return B.Njj(i.setSelection(t.color))}),w.k0s(),w.bVm()}if(2&e){const e=t.$implicit,i=w.XpG();w.R7$(),w.Y8G("text",w.mNQ(w.bMT(2,5,i.profile)))("selected",e.selected)("title",e.name)("color",e.color)}}class Jy{constructor(e,t,i,n,r,s){this.data=e,this.i18nService=t,this.platformUtilsService=i,this.avatarService=n,this.dialogRef=r,this.toastService=s,this.loading=!1,this.defaultColorPalette=Ny.ls.map(e=>({color:Ny.BF[e],name:this.i18nService.t("brand"===e?"blue":e)})),this.customColorSelected=!1,this.customColor$=new Tt.t(null),this.customTextColor$=new Tt.t("#000000"),this.destroy$=new d.B,this.submit=()=>Ly(this,void 0,void 0,function*(){const e=zt.A.validateHexColor(this.currentSelection);null==this.currentSelection||e?(yield this.avatarService.setAvatarColor(this.currentSelection),yield this.dialogRef.close(),this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("avatarUpdated")})):this.toastService.showToast({variant:"error",title:null,message:this.i18nService.t("errorOccurred")})}),this.profile=e.profile}ngOnInit(){return Ly(this,void 0,void 0,function*(){this.customColor$.pipe((0,Oy.B)(200),(0,en.Q)(this.destroy$)).subscribe(e=>{null!=e&&(this.customTextColor$.next(zt.A.pickTextColorBasedOnBgColor(e)),this.customColorSelected=!0,this.currentSelection=e)}),yield this.setSelection(yield(0,u._)(this.avatarService.avatarColor$))})}showCustomPicker(){return Ly(this,void 0,void 0,function*(){this.customColorSelected=!0,this.colorPickerElement.nativeElement.click(),this.setSelection(this.customColor$.value)})}ngOnDestroy(){return Ly(this,void 0,void 0,function*(){this.destroy$.next(),this.destroy$.complete()})}setSelection(e){return Ly(this,void 0,void 0,function*(){if(this.defaultColorPalette.filter(e=>e.selected).forEach(e=>e.selected=!1),null!=e)if(e=e.toLowerCase(),this.customColorSelected=!1,this.currentSelection===e)this.currentSelection=null;else{const t=this.defaultColorPalette.findIndex(t=>t.color===e);-1!==t?(this.defaultColorPalette[t].selected=!0,this.currentSelection=e):this.customColor$.next(e)}})}static open(e,t){return e.open(Jy,t)}}Jy.ɵfac=function(e){return new(e||Jy)(w.rXU(Ep.Qs),w.rXU(he.W),w.rXU(G.y),w.rXU(oi.v),w.rXU(mh.ce),w.rXU(F.f))},Jy.ɵcmp=w.VBU({type:Jy,selectors:[["ng-component"]],viewQuery:function(e,t){if(1&e&&w.GBs(Wy,5),2&e){let e;w.mGM(e=w.lsd())&&(t.colorPickerElement=e.first)}},decls:25,vars:35,consts:[["colorPicker",""],["dialogSize","large",3,"title"],["bitDialogContent",""],["class","tw-text-center",4,"ngIf"],[1,"tw-text-lg"],[1,"tw-flex","tw-flex-wrap","tw-justify-center","tw-gap-8"],[4,"ngFor","ngForOf"],[1,"tw-relative","tw-flex","tw-size-16","tw-cursor-pointer","tw-place-content-center","tw-rounded-full","tw-border","tw-border-solid","tw-border-secondary-600","tw-outline","tw-outline-0","tw-outline-offset-1","hover:tw-outline-1","hover:tw-outline-primary-300","focus:tw-outline-2","focus:tw-outline-primary-600",3,"keyup.enter","click","tabIndex","title","ngClass"],["name","bwi-pencil",1,"!tw-text-muted","tw-m-auto","tw-text-3xl"],["tabindex","-1","type","color",1,"tw-absolute","tw-bottom-0","tw-right-0","tw-size-px","tw-border-none","tw-bg-transparent","tw-opacity-0",3,"ngModelChange","ngModel"],["bitDialogFooter",""],["bitButton","","type","submit","buttonType","primary",3,"disabled","bitAction"],["bitButton","","type","button","buttonType","secondary","bitDialogClose",""],[1,"tw-text-center"],["name","bwi-spinner",1,"bwi-spin",3,"ariaLabel"],["appStopClick","",3,"select","selected","title","text","color"]],template:function(e,t){1&e&&(w.j41(0,"bit-dialog",1),w.nI1(1,"i18n"),w.qex(2,2),w.DNE(3,Zy,5,6,"div",3),w.j41(4,"p",4),w.EFF(5),w.nI1(6,"i18n"),w.k0s(),w.j41(7,"div",5),w.DNE(8,Hy,3,7,"ng-container",6),w.j41(9,"span")(10,"span",7),w.nI1(11,"async"),w.nI1(12,"i18n"),w.bIt("keyup.enter",function(){return t.showCustomPicker()})("click",function(){return t.showCustomPicker()}),w.nrm(13,"bit-icon",8),w.nI1(14,"async"),w.j41(15,"input",9,0),w.nI1(17,"async"),w.bIt("ngModelChange",function(e){return t.customColor$.next(e)}),w.k0s()()()(),w.bVm(),w.qex(18,10),w.j41(19,"button",11),w.EFF(20),w.nI1(21,"i18n"),w.k0s(),w.j41(22,"button",12),w.EFF(23),w.nI1(24,"i18n"),w.k0s(),w.bVm(),w.k0s()),2&e&&(w.Y8G("title",w.bMT(1,17,"customizeAvatar")),w.R7$(3),w.Y8G("ngIf",t.loading),w.R7$(2),w.JRh(w.bMT(6,19,"pickAnAvatarColor")),w.R7$(3),w.Y8G("ngForOf",t.defaultColorPalette),w.R7$(2),w.xc7("background-color",w.bMT(11,21,t.customColor$)),w.Y8G("title",w.mNQ(w.bMT(12,23,"customColor")))("tabIndex",0)("ngClass",w.eq3(33,Ky,t.customColorSelected)),w.R7$(3),w.xc7("color",w.bMT(14,25,t.customTextColor$)),w.R7$(2),w.Y8G("ngModel",w.bMT(17,27,t.customColor$)),w.R7$(4),w.Y8G("disabled",t.loading)("bitAction",t.submit),w.R7$(),w.SpI(" ",w.bMT(21,29,"save")," "),w.R7$(3),w.SpI(" ",w.bMT(24,31,"close")," "))},dependencies:[Tv.G,L.YU,L.Sq,L.bT,a.me,a.BC,a.vS,Xy.Y,Up.p,fh.Q,yh.I,bh.m,Ch.hJ,ve.R,Yy,L.Jj,Hh.$,zy.b],encapsulation:2});var qy=i(47428),$y=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function _y(e,t){1&e&&(w.j41(0,"div"),w.nrm(1,"bit-icon",2),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.Y8G("ariaLabel",w.bMT(2,1,"loading")))}function eb(e,t){if(1&e&&(w.j41(0,"div"),w.EFF(1),w.nI1(2,"i18n"),w.j41(3,"a",15),w.nrm(4,"bit-icon",16),w.k0s()()),2&e){const e=t.ngIf;w.R7$(),w.SpI(" ",w.i5U(2,1,"accountIsOwnedMessage",null==e?null:e.name)," ")}}function tb(e,t){if(1&e&&(w.nrm(0,"app-account-fingerprint",13),w.nI1(1,"i18n")),2&e){const e=w.XpG(2);w.Y8G("fingerprintLabel",w.mNQ(w.bMT(1,4,"yourAccountsFingerprint")))("fingerprintMaterial",e.fingerprintMaterial)("publicKeyBuffer",e.userPublicKey)}}function ib(e,t){if(1&e&&(w.j41(0,"form",3)(1,"div",4)(2,"div",5)(3,"bit-form-field")(4,"bit-label"),w.EFF(5),w.nI1(6,"i18n"),w.k0s(),w.nrm(7,"input",6),w.k0s(),w.j41(8,"bit-form-field")(9,"bit-label"),w.EFF(10),w.nI1(11,"i18n"),w.k0s(),w.nrm(12,"input",7),w.k0s()(),w.j41(13,"div",8)(14,"div",9),w.nrm(15,"dynamic-avatar",10),w.nI1(16,"userName"),w.j41(17,"button",11),w.nrm(18,"bit-icon",12),w.EFF(19),w.nI1(20,"i18n"),w.k0s()(),w.DNE(21,eb,5,4,"div",0),w.nI1(22,"async"),w.nVh(23,tb,2,6,"app-account-fingerprint",13),w.k0s()(),w.j41(24,"button",14),w.EFF(25),w.nI1(26,"i18n"),w.k0s()()),2&e){const e=w.XpG();w.Y8G("formGroup",e.formGroup)("bitSubmit",e.submit),w.R7$(5),w.JRh(w.bMT(6,12,"name")),w.R7$(5),w.JRh(w.bMT(11,14,"email")),w.R7$(5),w.Y8G("text",w.mNQ(w.bMT(16,16,e.profile)))("id",e.profile.id),w.R7$(2),w.Y8G("bitAction",e.openChangeAvatar),w.R7$(2),w.SpI(" ",w.bMT(20,18,"customize")," "),w.R7$(2),w.Y8G("ngIf",w.bMT(22,20,e.managingOrganization$)),w.R7$(2),w.vxM(e.fingerprintMaterial&&e.userPublicKey?23:-1),w.R7$(2),w.JRh(w.bMT(26,22,"save"))}}class nb{constructor(e,t,i,n,r,s,o,l){this.apiService=e,this.i18nService=t,this.accountService=i,this.dialogService=n,this.toastService=r,this.organizationService=s,this.keyService=o,this.logService=l,this.loading=!0,this.destroy$=new d.B,this.formGroup=new a.gE({name:new a.MJ(null),email:new a.MJ(null)}),this.openChangeAvatar=()=>$y(this,void 0,void 0,function*(){Jy.open(this.dialogService,{data:{profile:this.profile}})}),this.submit=()=>$y(this,void 0,void 0,function*(){const e=new Vy(this.formGroup.get("name").value);yield this.apiService.putProfile(e),this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("accountUpdated")})})}ngOnInit(){return $y(this,void 0,void 0,function*(){this.profile=yield this.apiService.getProfile();const e=yield(0,u._)((0,f.F6)(this.accountService.activeAccount$));this.fingerprintMaterial=e;const t=yield(0,u._)(this.keyService.userPublicKey$(e));null==t?this.logService.error("[ProfileComponent] No public key available for the user: "+e+" fingerprint can't be displayed."):this.userPublicKey=t,this.managingOrganization$=this.organizationService.organizations$(e).pipe((0,p.T)(e=>e.find(e=>!0===e.userIsClaimedByOrganization))),this.formGroup.get("name").setValue(this.profile.name),this.formGroup.get("email").setValue(this.profile.email),this.formGroup.get("name").valueChanges.pipe((0,en.Q)(this.destroy$)).subscribe(e=>{this.profile.name=e}),this.loading=!1})}ngOnDestroy(){return $y(this,void 0,void 0,function*(){this.destroy$.next(),this.destroy$.complete()})}}nb.ɵfac=function(e){return new(e||nb)(w.rXU(je.G),w.rXU(he.W),w.rXU(N.D),w.rXU(T.o),w.rXU(F.f),w.rXU(v.PV),w.rXU(I.Lu),w.rXU(se.K))},nb.ɵcmp=w.VBU({type:nb,selectors:[["app-profile"]],decls:2,vars:2,consts:[[4,"ngIf"],[3,"formGroup","bitSubmit",4,"ngIf"],["name","bwi-spinner",1,"bwi-spin","tw-text-muted",3,"ariaLabel"],[3,"formGroup","bitSubmit"],[1,"tw-grid","tw-grid-cols-12","tw-gap-6"],[1,"tw-col-span-12","@3xl:tw-col-span-6"],["bitInput","","formControlName","name"],["bitInput","","formControlName","email","readonly",""],[1,"tw-col-span-12","@3xl:tw-col-span-6","tw-row-start-1","@3xl:tw-row-start-auto"],[1,"tw-mb-3","tw-flex","tw-align-middle","tw-items-center"],["size","2xl",3,"text","id"],["type","button","buttonType","secondary","bitButton","","bitFormButton","","appStopClick","","appStopProp","",1,"tw-ml-3",3,"bitAction"],["name","bwi-pencil-square",1,"bwi-lg"],[3,"fingerprintMaterial","publicKeyBuffer","fingerprintLabel"],["bitButton","","bitFormButton","","type","submit","buttonType","primary"],["target","_blank","rel","noopener noreferrer","href","https://bitwarden.com/help/claimed-accounts"],["name","bwi-question-circle"]],template:function(e,t){1&e&&w.DNE(0,_y,3,3,"div",0)(1,ib,27,24,"form",1),2&e&&(w.Y8G("ngIf",t.loading),w.R7$(),w.Y8G("ngIf",t.profile&&!t.loading))},dependencies:[Tv.G,L.bT,a.qT,a.me,a.BC,a.cb,a.j4,a.JD,Xy.Y,qy.x,Up.p,Ih.$,wh.L,fh.Q,Xh.j,Lh.J,Wh.h,ve.R,Gy.O,Uy.l,L.Jj,Hh.$,zy.b],encapsulation:2});class rb extends Jn.V{}var sb=i(8297),ob=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function ab(e,t){1&e&&(w.j41(0,"p",9),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,1,"turnOffNewDeviceLoginProtectionModalDesc")," "))}function lb(e,t){1&e&&(w.j41(0,"p",9),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,1,"turnOnNewDeviceLoginProtectionModalDesc")," "))}function cb(e,t){1&e&&(w.j41(0,"bit-callout",10),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.JRh(w.bMT(2,1,"turnOffNewDeviceLoginProtectionWarning")))}function db(e,t){1&e&&(w.j41(0,"button",11),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,1,"disable")," "))}function ub(e,t){1&e&&(w.j41(0,"button",12),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,1,"enable")," "))}class hb{constructor(e,t,i,n,r,s,o,a){this.i18nService=e,this.formBuilder=t,this.accountApiService=i,this.accountService=n,this.userVerificationService=r,this.dialogRef=s,this.toastService=o,this.twoFactorService=a,this.destroy$=new d.B,this.verifyNewDeviceLogin=!0,this.has2faConfigured=!1,this.setVerifyDevicesForm=this.formBuilder.group({verification:void 0}),this.invalidSecret=!1,this.submit=()=>ob(this,void 0,void 0,function*(){try{const e=yield(0,u._)(this.accountService.activeAccount$.pipe((0,en.Q)(this.destroy$))),t=this.setVerifyDevicesForm.value.verification,i=yield this.userVerificationService.buildRequest(t,rb);i.verifyDevices=!this.verifyNewDeviceLogin,yield this.accountApiService.setVerifyDevices(i),yield this.accountService.setAccountVerifyNewDeviceLogin(e.id,i.verifyDevices),yield this.dialogRef.close(),this.toastService.showToast({variant:"success",title:"",message:this.i18nService.t("accountNewDeviceLoginProtectionSaved")})}catch(e){throw e instanceof Xt._&&400===e.statusCode&&(this.invalidSecret=!0),e}}),this.accountService.accountVerifyNewDeviceLogin$.pipe((0,en.Q)(this.destroy$)).subscribe(e=>{this.verifyNewDeviceLogin=e})}ngOnInit(){return ob(this,void 0,void 0,function*(){const e=yield this.twoFactorService.getEnabledTwoFactorProviders();this.has2faConfigured=e.data.length>0})}static open(e){return e.open(hb)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}hb.ɵfac=function(e){return new(e||hb)(w.rXU(he.W),w.rXU(a.ok),w.rXU(ni.T),w.rXU(N.D),w.rXU(Ai.i),w.rXU(mh.ce),w.rXU(F.f),w.rXU(ar.fz))},hb.ɵcmp=w.VBU({type:hb,selectors:[["ng-component"]],decls:13,vars:14,consts:[["bit-dialog","","dialogSize","default",3,"formGroup","bitSubmit","title"],["bitDialogContent",""],["bitTypography","body1",4,"ngIf"],["type","warning",4,"ngIf"],["formControlName","verification","name","verification",3,"invalidSecretChange","invalidSecret"],["bitDialogFooter",""],["bitButton","","bitFormButton","","type","submit","buttonType","danger",4,"ngIf"],["bitButton","","bitFormButton","","type","submit","buttonType","primary",4,"ngIf"],["bitButton","","bitFormButton","","type","button","buttonType","secondary","bitDialogClose",""],["bitTypography","body1"],["type","warning"],["bitButton","","bitFormButton","","type","submit","buttonType","danger"],["bitButton","","bitFormButton","","type","submit","buttonType","primary"]],template:function(e,t){1&e&&(w.j41(0,"form",0),w.nI1(1,"i18n"),w.qex(2,1),w.DNE(3,ab,3,3,"p",2)(4,lb,3,3,"p",2)(5,cb,3,3,"bit-callout",3),w.j41(6,"app-user-verification-form-input",4),w.mxI("invalidSecretChange",function(e){return w.DH7(t.invalidSecret,e)||(t.invalidSecret=e),e}),w.k0s(),w.bVm(),w.qex(7,5),w.DNE(8,db,3,3,"button",6)(9,ub,3,3,"button",7),w.j41(10,"button",8),w.EFF(11),w.nI1(12,"i18n"),w.k0s(),w.bVm(),w.k0s()),2&e&&(w.Y8G("formGroup",t.setVerifyDevicesForm)("bitSubmit",t.submit)("title",w.bMT(1,10,"newDeviceLoginProtection")),w.R7$(3),w.Y8G("ngIf",t.verifyNewDeviceLogin),w.R7$(),w.Y8G("ngIf",!t.verifyNewDeviceLogin),w.R7$(),w.Y8G("ngIf",t.verifyNewDeviceLogin&&!t.has2faConfigured),w.R7$(),w.R50("invalidSecret",t.invalidSecret),w.R7$(2),w.Y8G("ngIf",t.verifyNewDeviceLogin),w.R7$(),w.Y8G("ngIf",!t.verifyNewDeviceLogin),w.R7$(2),w.SpI(" ",w.bMT(12,12,"close")," "))},dependencies:[L.MD,L.bT,a.X1,a.qT,a.BC,a.cb,a.j4,a.JD,Nh.p,Oh.L,vh.C,Ih.$,wh.L,Ah.t,fh.Q,Uh.Q,$p.p,gh.j,ae.G,sb.K,ph.P,yh.I,bh.m,Ch.hJ,ne.wV,Hh.$],encapsulation:2});var Ab=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function pb(e,t){1&e&&(w.j41(0,"div",4)(1,"h1",5),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"app-change-email"),w.k0s()),2&e&&(w.R7$(2),w.JRh(w.bMT(3,1,"changeEmail")))}function gb(e,t){if(1&e&&(w.j41(0,"button",6),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e){const e=w.XpG();w.Y8G("bitAction",e.setNewDeviceLoginProtection),w.R7$(),w.SpI(" ",w.bMT(2,2,"turnOffNewDeviceLoginProtection")," ")}}function vb(e,t){if(1&e&&(w.j41(0,"button",7),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e){const e=w.XpG();w.Y8G("bitAction",e.setNewDeviceLoginProtection),w.R7$(),w.SpI(" ",w.bMT(2,2,"turnOnNewDeviceLoginProtection")," ")}}function mb(e,t){if(1&e&&(w.j41(0,"button",6),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e){const e=w.XpG();w.Y8G("bitAction",e.purgeVault),w.R7$(),w.SpI(" ",w.bMT(2,2,"purgeVault")," ")}}function fb(e,t){if(1&e&&(w.j41(0,"button",6),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e){const e=w.XpG();w.Y8G("bitAction",e.deleteAccount),w.R7$(),w.SpI(" ",w.bMT(2,2,"deleteAccount")," ")}}class yb{constructor(e,t,i,n,r){this.accountService=e,this.dialogService=t,this.userDecryptionOptionsService=i,this.organizationService=n,this.accountDeletionService=r,this.destroy$=new d.B,this.showChangeEmail$=new Aa.c,this.showPurgeVault$=new Aa.c,this.showDeleteAccount$=new Aa.c,this.verifyNewDeviceLogin=!0,this.deauthorizeSessions=()=>Ab(this,void 0,void 0,function*(){const e=xy.open(this.dialogService);yield(0,hh.s)(e.closed)}),this.purgeVault=()=>Ab(this,void 0,void 0,function*(){const e=Qy.d.open(this.dialogService);yield(0,hh.s)(e.closed)}),this.deleteAccount=()=>Ab(this,void 0,void 0,function*(){yield this.accountDeletionService.openDeleteAccountFlow()}),this.setNewDeviceLoginProtection=()=>Ab(this,void 0,void 0,function*(){const e=hb.open(this.dialogService);yield(0,hh.s)(e.closed)})}ngOnInit(){return Ab(this,void 0,void 0,function*(){const e=yield(0,u._)((0,f.F6)(this.accountService.activeAccount$)),t=this.organizationService.organizations$(e).pipe((0,p.T)(e=>e.some(e=>!0===e.userIsClaimedByOrganization))),i=this.userDecryptionOptionsService.hasMasterPasswordById$(e);this.showChangeEmail$=i,this.showPurgeVault$=t.pipe((0,p.T)(e=>!e)),this.showDeleteAccount$=t.pipe((0,p.T)(e=>!e)),this.accountService.accountVerifyNewDeviceLogin$.pipe((0,en.Q)(this.destroy$)).subscribe(e=>{this.verifyNewDeviceLogin=e})})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}yb.ɵfac=function(e){return new(e||yb)(w.rXU(N.D),w.rXU(T.o),w.rXU(g.Ym),w.rXU(v.PV),w.rXU(Qh))},yb.ɵcmp=w.VBU({type:yb,selectors:[["ng-component"]],decls:16,vars:14,consts:[["class","tw-mt-16",4,"ngIf"],["type","button","bitButton","","buttonType","danger",3,"bitAction",4,"ngIf"],["type","button","bitButton","","buttonType","secondary",3,"bitAction",4,"ngIf"],["type","button","bitButton","","buttonType","danger",3,"click"],[1,"tw-mt-16"],["bitTypography","h1"],["type","button","bitButton","","buttonType","danger",3,"bitAction"],["type","button","bitButton","","buttonType","secondary",3,"bitAction"]],template:function(e,t){1&e&&(w.nrm(0,"app-header"),w.j41(1,"bit-container"),w.nrm(2,"app-profile"),w.DNE(3,pb,5,3,"div",0),w.nI1(4,"async"),w.j41(5,"app-danger-zone"),w.qex(6),w.DNE(7,gb,3,4,"button",1)(8,vb,3,4,"button",2),w.bVm(),w.j41(9,"button",3),w.bIt("click",function(){return t.deauthorizeSessions()}),w.EFF(10),w.nI1(11,"i18n"),w.k0s(),w.DNE(12,mb,3,4,"button",1),w.nI1(13,"async"),w.DNE(14,fb,3,4,"button",1),w.nI1(15,"async"),w.k0s()()),2&e&&(w.R7$(3),w.Y8G("ngIf",w.bMT(4,6,t.showChangeEmail$)),w.R7$(4),w.Y8G("ngIf",t.verifyNewDeviceLogin),w.R7$(),w.Y8G("ngIf",!t.verifyNewDeviceLogin),w.R7$(2),w.SpI(" ",w.bMT(11,8,"deauthorizeSessions")," "),w.R7$(2),w.Y8G("ngIf",w.bMT(13,10,t.showPurgeVault$)),w.R7$(2),w.Y8G("ngIf",w.bMT(15,12,t.showDeleteAccount$)))},dependencies:[Tv.G,L.bT,Up.p,fh.Q,uy.H,Tp.r,dy.G,hy.f,nb,Dy,Py.t,L.Jj,Hh.$],encapsulation:2});var bb,Cb=i(30675),Ib=i(15740);!function(e){e[e.View=0]="View",e[e.Takeover=1]="Takeover"}(bb||(bb={}));var wb,Bb=i(57396),Eb=i(50352),Sb=i(90246),Qb=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};!function(e){e.Confirmed="confirmed"}(wb||(wb={}));class kb{constructor(e,t,i,n,r,s){this.params=e,this.formBuilder=t,this.keyService=i,this.organizationManagementPreferencesService=n,this.logService=r,this.dialogRef=s,this.loading=!0,this.confirmForm=this.formBuilder.group({dontAskAgain:[!1]}),this.submit=()=>Qb(this,void 0,void 0,function*(){if(!this.loading){this.confirmForm.get("dontAskAgain").value&&(yield this.organizationManagementPreferencesService.autoConfirmFingerPrints.set(!0));try{yield this.dialogRef.close(wb.Confirmed)}catch(e){this.logService.error(e)}}})}ngOnInit(){return Qb(this,void 0,void 0,function*(){try{const e=yield this.keyService.getFingerprint(this.params.userId,this.params.publicKey);null!=e&&(this.fingerprint=e.join("-"))}catch(e){this.logService.error(e)}this.loading=!1})}static open(e,t){return e.open(kb,t)}}kb.ɵfac=function(e){return new(e||kb)(w.rXU(Ep.Qs),w.rXU(a.ok),w.rXU(I.Lu),w.rXU(Ke.y),w.rXU(se.K),w.rXU(mh.ce))},kb.ɵcmp=w.VBU({type:kb,selectors:[["ng-component"]],decls:29,vars:23,consts:[["bit-dialog","","dialogSize","large",3,"formGroup","bitSubmit","loading"],["bitDialogTitle",""],[1,"tw-text-muted"],["bitDialogContent",""],["bitTypography","body1"],["bitLink","","href","https://bitwarden.com/help/fingerprint-phrase/","target","_blank","rel","noreferrer"],["type","checkbox","bitCheckbox","","formControlName","dontAskAgain"],["bitDialogFooter",""],["type","submit","buttonType","primary","bitButton","","bitFormButton",""],["bitButton","","bitFormButton","","buttonType","secondary","type","button","bitDialogClose",""]],template:function(e,t){1&e&&(w.j41(0,"form",0)(1,"span",1),w.EFF(2),w.nI1(3,"i18n"),w.j41(4,"small",2),w.EFF(5),w.k0s()(),w.j41(6,"div",3)(7,"p",4),w.EFF(8),w.nI1(9,"i18n"),w.j41(10,"a",5),w.EFF(11),w.nI1(12,"i18n"),w.k0s()(),w.j41(13,"p",4)(14,"code"),w.EFF(15),w.k0s()(),w.j41(16,"bit-form-control"),w.nrm(17,"input",6),w.j41(18,"bit-label"),w.EFF(19),w.nI1(20,"i18n"),w.k0s()()(),w.qex(21,7),w.j41(22,"button",8)(23,"span"),w.EFF(24),w.nI1(25,"i18n"),w.k0s()(),w.j41(26,"button",9),w.EFF(27),w.nI1(28,"i18n"),w.k0s(),w.bVm(),w.k0s()),2&e&&(w.Y8G("formGroup",t.confirmForm)("bitSubmit",t.submit)("loading",t.loading),w.R7$(2),w.SpI(" ",w.bMT(3,11,"confirmUser")," "),w.R7$(3),w.JRh(t.params.name),w.R7$(3),w.SpI(" ",w.bMT(9,13,"fingerprintEnsureIntegrityVerify")," "),w.R7$(3),w.SpI(" ",w.bMT(12,15,"learnMore")),w.R7$(4),w.JRh(t.fingerprint),w.R7$(4),w.SpI(" ",w.bMT(20,17,"dontAskFingerprintAgain")),w.R7$(5),w.JRh(w.bMT(25,19,"confirm")),w.R7$(3),w.SpI(" ",w.bMT(28,21,"cancel")," "))},dependencies:[Tv.G,a.qT,a.Zm,a.BC,a.cb,a.j4,a.JD,Ih.$,wh.L,fh.Q,Eb.P,yh.I,bh.m,Ch.hJ,Sb.f,Xh.j,jh.g,Tp.r,Hh.$],encapsulation:2});var Rb,Fb=i(54471),Tb=i(42016),Db=i(24374),Pb=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function Mb(e,t){1&e&&w.nrm(0,"app-premium-badge")}function xb(e,t){if(1&e&&(w.j41(0,"small",18),w.EFF(1),w.k0s()),2&e){const e=w.XpG();w.R7$(),w.JRh(e.params.name)}}function Vb(e,t){1&e&&(w.qex(0),w.j41(1,"p",19),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"bit-form-field")(5,"bit-label"),w.EFF(6),w.nI1(7,"i18n"),w.k0s(),w.nrm(8,"input",20),w.k0s(),w.bVm()),2&e&&(w.R7$(2),w.JRh(w.bMT(3,2,"inviteEmergencyContactDesc")),w.R7$(4),w.JRh(w.bMT(7,4,"email")))}function Gb(e,t){if(1&e&&w.nrm(0,"bit-option",21),2&e){const e=t.$implicit;w.Y8G("value",e.value)("label",e.name)}}function Ub(e,t){if(1&e&&(w.nrm(0,"button",22),w.nI1(1,"i18n")),2&e){const e=w.XpG();w.Y8G("label",w.mNQ(w.bMT(1,3,"delete")))("bitAction",e.delete)}}!function(e){e.Saved="saved",e.Canceled="canceled",e.Deleted="deleted"}(Rb||(Rb={}));class Ob{constructor(e,t,i,n,r,s,o){this.params=e,this.formBuilder=t,this.emergencyAccessService=i,this.i18nService=n,this.logService=r,this.dialogRef=s,this.toastService=o,this.loading=!0,this.readOnly=!1,this.editMode=!1,this.type=bb.View,this.emergencyAccessType=bb,this.addEditForm=this.formBuilder.group({email:["",[a.k0.email,a.k0.required]],emergencyAccessType:[this.emergencyAccessType.View],waitTime:[{value:null,disabled:this.readOnly},[a.k0.required]]}),this.submit=()=>Pb(this,void 0,void 0,function*(){this.addEditForm.invalid?this.addEditForm.markAllAsTouched():(this.editMode?yield this.emergencyAccessService.update(this.params.emergencyAccessId,this.addEditForm.value.emergencyAccessType,this.addEditForm.value.waitTime):yield this.emergencyAccessService.invite(this.addEditForm.value.email,this.addEditForm.value.emergencyAccessType,this.addEditForm.value.waitTime),this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t(this.editMode?"editedUserId":"invitedUsers",this.params.name)}),yield this.dialogRef.close(Rb.Saved))}),this.delete=()=>Pb(this,void 0,void 0,function*(){yield this.dialogRef.close(Rb.Deleted)})}ngOnInit(){return Pb(this,void 0,void 0,function*(){if(this.editMode=this.loading=null!=this.params.emergencyAccessId,this.waitTimes=[{name:this.i18nService.t("oneDay"),value:1},{name:this.i18nService.t("days","2"),value:2},{name:this.i18nService.t("days","7"),value:7},{name:this.i18nService.t("days","14"),value:14},{name:this.i18nService.t("days","30"),value:30},{name:this.i18nService.t("days","90"),value:90}],this.editMode){this.title=this.i18nService.t("editEmergencyContact");try{const e=yield this.emergencyAccessService.getEmergencyAccess(this.params.emergencyAccessId);this.addEditForm.patchValue({email:e.email,waitTime:e.waitTimeDays,emergencyAccessType:e.type})}catch(e){this.logService.error(e)}}else this.title=this.i18nService.t("inviteEmergencyContact"),this.addEditForm.patchValue({waitTime:this.waitTimes[2].value});this.loading=!1})}}Ob.open=(e,t)=>e.open(Ob,t),Ob.ɵfac=function(e){return new(e||Ob)(w.rXU(Ep.Qs),w.rXU(a.ok),w.rXU(vv.p),w.rXU(he.W),w.rXU(se.K),w.rXU(mh.ce),w.rXU(F.f))},Ob.ɵcmp=w.VBU({type:Ob,selectors:[["ng-component"]],decls:45,vars:44,consts:[["bit-dialog","","dialogSize","large",3,"formGroup","bitSubmit","loading"],["bitDialogTitle",""],[4,"ngIf"],["class","tw-text-muted",4,"ngIf"],["bitDialogContent",""],["formControlName","emergencyAccessType",3,"block"],["target","_blank","rel","noreferrer","bitLink","","linkType","primary","href","https://bitwarden.com/help/emergency-access/#user-access","slot","end",3,"appA11yTitle"],["name","bwi-question-circle"],["id","emergencyTypeView",3,"value"],["id","emergencyTypeTakeover",3,"value"],[1,"tw-w-1/2","tw-relative","tw-px-2.5"],["formControlName","waitTime"],[3,"value","label",4,"ngFor","ngForOf"],[1,"tw-text-sm"],["bitDialogFooter",""],["type","submit","buttonType","primary","bitButton","","bitFormButton","",3,"disabled"],["bitButton","","bitFormButton","","buttonType","secondary","type","button","bitDialogClose",""],["type","button","bitFormButton","","class","tw-ml-auto","bitIconButton","bwi-trash","buttonType","dangerGhost",3,"bitAction","label",4,"ngIf"],[1,"tw-text-muted"],["bitTypography","body1"],["bitInput","","formControlName","email"],[3,"value","label"],["type","button","bitFormButton","","bitIconButton","bwi-trash","buttonType","dangerGhost",1,"tw-ml-auto",3,"bitAction","label"]],template:function(e,t){1&e&&(w.j41(0,"form",0)(1,"span",1),w.DNE(2,Mb,1,0,"app-premium-badge",2),w.EFF(3),w.DNE(4,xb,2,1,"small",3),w.k0s(),w.qex(5,4),w.DNE(6,Vb,9,6,"ng-container",2),w.j41(7,"bit-radio-group",5)(8,"bit-label"),w.EFF(9),w.nI1(10,"i18n"),w.j41(11,"a",6),w.nI1(12,"i18n"),w.nrm(13,"bit-icon",7),w.k0s()(),w.j41(14,"bit-radio-button",8)(15,"bit-label"),w.EFF(16),w.nI1(17,"i18n"),w.k0s(),w.j41(18,"bit-hint"),w.EFF(19),w.nI1(20,"i18n"),w.k0s()(),w.j41(21,"bit-radio-button",9)(22,"bit-label"),w.EFF(23),w.nI1(24,"i18n"),w.k0s(),w.j41(25,"bit-hint"),w.EFF(26),w.nI1(27,"i18n"),w.k0s()()(),w.j41(28,"bit-form-field",10)(29,"bit-label"),w.EFF(30),w.nI1(31,"i18n"),w.k0s(),w.j41(32,"bit-select",11),w.DNE(33,Gb,1,2,"bit-option",12),w.k0s(),w.j41(34,"bit-hint",13),w.EFF(35),w.nI1(36,"i18n"),w.k0s()(),w.bVm(),w.qex(37,14),w.j41(38,"button",15),w.EFF(39),w.nI1(40,"i18n"),w.k0s(),w.j41(41,"button",16),w.EFF(42),w.nI1(43,"i18n"),w.k0s(),w.DNE(44,Ub,2,5,"button",17),w.bVm(),w.k0s()),2&e&&(w.Y8G("formGroup",t.addEditForm)("bitSubmit",t.submit)("loading",t.loading),w.R7$(2),w.Y8G("ngIf",t.readOnly),w.R7$(),w.SpI(" ",t.title," "),w.R7$(),w.Y8G("ngIf",t.params.name),w.R7$(2),w.Y8G("ngIf",!t.editMode),w.R7$(),w.Y8G("block",!0),w.R7$(2),w.SpI(" ",w.bMT(10,24,"userAccess")," "),w.R7$(2),w.Y8G("appA11yTitle",w.mNQ(w.bMT(12,26,"learnMoreAboutUserAccess"))),w.R7$(3),w.Y8G("value",t.emergencyAccessType.View),w.R7$(2),w.JRh(w.bMT(17,28,"view")),w.R7$(3),w.JRh(w.bMT(20,30,"viewDesc")),w.R7$(2),w.Y8G("value",t.emergencyAccessType.Takeover),w.R7$(2),w.JRh(w.bMT(24,32,"takeover")),w.R7$(3),w.JRh(w.bMT(27,34,"takeoverDesc")),w.R7$(4),w.JRh(w.bMT(31,36,"waitTime")),w.R7$(3),w.Y8G("ngForOf",t.waitTimes),w.R7$(2),w.JRh(w.bMT(36,38,"waitTimeDesc")),w.R7$(3),w.Y8G("disabled",t.readOnly),w.R7$(),w.SpI(" ",w.bMT(40,40,"save")," "),w.R7$(3),w.SpI(" ",w.bMT(43,42,"cancel")," "),w.R7$(2),w.Y8G("ngIf",t.editMode))},dependencies:[Dv.G,L.Sq,L.bT,a.qT,a.me,a.BC,a.cb,a.j4,a.JD,Fb.C,Up.p,Ih.$,wh.L,fh.Q,yh.I,bh.m,Ch.hJ,Xh.j,zh.I,Tb.W,Lh.J,Wh.h,Yh.s,ve.R,jh.g,Db.d,tg.w,ig.P,Tp.r,Cb.a,Hh.$],encapsulation:2});var Nb=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function jb(e,t){if(1&e&&(w.j41(0,"small",8),w.EFF(1),w.k0s()),2&e){const e=w.XpG();w.R7$(),w.JRh(e.dialogData.grantorName)}}function Yb(e,t){1&e&&(w.j41(0,"div",3),w.nrm(1,"bit-icon",9),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.Y8G("ariaLabel",w.bMT(2,1,"loading")))}function Xb(e,t){if(1&e){const e=w.RV6();w.j41(0,"auth-input-password",10),w.bIt("onPasswordFormSubmit",function(t){B.eBV(e);const i=w.XpG();return B.Njj(i.handlePasswordFormSubmit(t))})("isSubmitting",function(t){B.eBV(e);const i=w.XpG();return B.Njj(i.handleIsSubmittingChange(t))}),w.k0s()}if(2&e){const e=w.XpG();w.Y8G("flow",e.inputPasswordFlow)("masterPasswordPolicyOptions",e.masterPasswordPolicyOptions)}}const zb="done";class Lb{constructor(e,t,i,n,r,s,o,a){this.dialogData=e,this.accountService=t,this.dialogRef=i,this.emergencyAccessService=n,this.i18nService=r,this.logService=s,this.policyService=o,this.toastService=a,this.inputPasswordComponent=void 0,this.parentSubmittingBehaviorSubject=new Tt.t(!1),this.parentSubmitting$=this.parentSubmittingBehaviorSubject.asObservable(),this.childSubmittingBehaviorSubject=new Tt.t(!1),this.childSubmitting$=this.childSubmittingBehaviorSubject.asObservable(),this.submitting$=(0,xt.z)([this.parentSubmitting$,this.childSubmitting$]).pipe((0,p.T)(([e,t])=>e||t)),this.initializing=!0,this.inputPasswordFlow=ne.m5.ChangePasswordDelegation,this.handlePrimaryButtonClick=()=>Nb(this,void 0,void 0,function*(){if(!this.inputPasswordComponent)throw new Error("InputPasswordComponent is not initialized");yield this.inputPasswordComponent.submit()})}ngOnInit(){return Nb(this,void 0,void 0,function*(){const e=yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6)),t=yield this.emergencyAccessService.getGrantorPolicies(this.dialogData.emergencyAccessId);this.masterPasswordPolicyOptions=yield(0,u._)(this.policyService.masterPasswordPolicyOptions$(e,t)),this.initializing=!1})}handlePasswordFormSubmit(e){return Nb(this,void 0,void 0,function*(){this.parentSubmittingBehaviorSubject.next(!0);try{const t=yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6));yield this.emergencyAccessService.takeover(this.dialogData.emergencyAccessId,e.newPassword,this.dialogData.grantorEmail,t)}catch(t){this.logService.error(t),this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:this.i18nService.t("unexpectedError")})}finally{this.parentSubmittingBehaviorSubject.next(!1)}yield this.dialogRef.close(zb)})}handleIsSubmittingChange(e){this.childSubmittingBehaviorSubject.next(e)}}Lb.open=(e,t)=>e.open(Lb,t),Lb.ɵfac=function(e){return new(e||Lb)(w.rXU(Ep.Qs),w.rXU(N.D),w.rXU(mh.ce),w.rXU(vv.p),w.rXU(he.W),w.rXU(se.K),w.rXU(Je.m),w.rXU(F.f))},Lb.ɵcmp=w.VBU({type:Lb,selectors:[["auth-emergency-access-takeover-dialog"]],viewQuery:function(e,t){if(1&e&&w.GBs(ne.tu,5),2&e){let e;w.mGM(e=w.lsd())&&(t.inputPasswordComponent=e.first)}},decls:16,vars:14,consts:[["bitDialogTitle",""],["class","tw-text-muted",4,"ngIf"],["bitDialogContent",""],[1,"tw-flex","tw-items-center","tw-justify-center"],[3,"flow","masterPasswordPolicyOptions"],["bitDialogFooter",""],["type","button","bitButton","","buttonType","primary",3,"click","disabled"],["type","button","bitButton","","buttonType","secondary","bitDialogClose",""],[1,"tw-text-muted"],["name","bwi-spinner",1,"bwi-spin","bwi-2x","tw-text-muted",3,"ariaLabel"],[3,"onPasswordFormSubmit","isSubmitting","flow","masterPasswordPolicyOptions"]],template:function(e,t){1&e&&(w.j41(0,"bit-dialog")(1,"span",0),w.EFF(2),w.nI1(3,"i18n"),w.DNE(4,jb,2,1,"small",1),w.k0s(),w.j41(5,"div",2),w.nVh(6,Yb,3,3,"div",3)(7,Xb,1,2,"auth-input-password",4),w.k0s(),w.qex(8,5),w.j41(9,"button",6),w.nI1(10,"async"),w.bIt("click",function(){return t.handlePrimaryButtonClick()}),w.EFF(11),w.nI1(12,"i18n"),w.k0s(),w.j41(13,"button",7),w.EFF(14),w.nI1(15,"i18n"),w.k0s(),w.bVm(),w.k0s()),2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,6,"takeover")," "),w.R7$(2),w.Y8G("ngIf",t.dialogData.grantorName),w.R7$(2),w.vxM(t.initializing?6:7),w.R7$(3),w.Y8G("disabled",w.bMT(10,8,t.submitting$)),w.R7$(2),w.SpI(" ",w.bMT(12,10,"save")," "),w.R7$(3),w.SpI(" ",w.bMT(15,12,"cancel")," "))},dependencies:[Ah.t,fh.Q,gh.j,L.MD,L.bT,ph.P,yh.I,bh.m,Ch.hJ,le.o,ve.R,ne.tu,L.Jj,ce.$Z],encapsulation:2});var Wb=i(47696),Kb=i(13496),Zb=i(73848),Hb=i(78952),Jb=i(88832),qb=i(38410),$b=i(22466),_b=i(36572),eC=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function tC(e,t){1&e&&(w.j41(0,"bit-callout",13),w.nI1(1,"i18n"),w.EFF(2),w.nI1(3,"i18n"),w.k0s()),2&e&&(w.Y8G("title",w.mNQ(w.bMT(1,3,"warning"))),w.R7$(2),w.JRh(w.bMT(3,5,"emergencyAccessOwnerWarning")))}function iC(e,t){1&e&&(w.j41(0,"span",32),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.JRh(w.bMT(2,1,"invited")))}function nC(e,t){1&e&&(w.j41(0,"span",33),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.JRh(w.bMT(2,1,"needsConfirmation")))}function rC(e,t){1&e&&(w.j41(0,"span",33),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.JRh(w.bMT(2,1,"emergencyAccessRecoveryInitiated")))}function sC(e,t){1&e&&(w.j41(0,"span",34),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.JRh(w.bMT(2,1,"emergencyAccessRecoveryApproved")))}function oC(e,t){if(1&e&&(w.j41(0,"small",35),w.EFF(1),w.k0s()),2&e){const e=w.XpG().$implicit;w.R7$(),w.JRh(e.name)}}function aC(e,t){1&e&&(w.j41(0,"span",34),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.JRh(w.bMT(2,1,"view")))}function lC(e,t){1&e&&(w.j41(0,"span",34),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.JRh(w.bMT(2,1,"takeover")))}function cC(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",30),w.bIt("click",function(){B.eBV(e);const t=w.XpG().$implicit,i=w.XpG(3);return B.Njj(i.reinvite(t))}),w.nrm(1,"bit-icon",36),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"resendInvitation")," "))}function dC(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",30),w.bIt("click",function(){B.eBV(e);const t=w.XpG().$implicit,i=w.XpG(3);return B.Njj(i.confirm(t))}),w.nrm(1,"bit-icon",37),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"confirm")," "))}function uC(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",30),w.bIt("click",function(){B.eBV(e);const t=w.XpG().$implicit,i=w.XpG(3);return B.Njj(i.approve(t))}),w.nrm(1,"bit-icon",37),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"approve")," "))}function hC(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",30),w.bIt("click",function(){B.eBV(e);const t=w.XpG().$implicit,i=w.XpG(3);return B.Njj(i.reject(t))}),w.nrm(1,"bit-icon",31),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"reject")," "))}function AC(e,t){if(1&e){const e=w.RV6();w.j41(0,"tr",19)(1,"td",20),w.nrm(2,"bit-avatar",21),w.nI1(3,"userName"),w.j41(4,"span",22)(5,"a",23),w.bIt("click",function(){const t=B.eBV(e).$implicit,i=w.XpG(3);return B.Njj(i.edit(t))}),w.EFF(6),w.k0s(),w.DNE(7,iC,3,3,"span",24)(8,nC,3,3,"span",25)(9,rC,3,3,"span",25)(10,sC,3,3,"span",26)(11,oC,2,1,"small",27),w.k0s()(),w.j41(12,"td",15),w.DNE(13,aC,3,3,"span",26)(14,lC,3,3,"span",26),w.k0s(),w.j41(15,"td",16),w.nrm(16,"button",28),w.nI1(17,"i18n"),w.j41(18,"bit-menu",null,0),w.DNE(20,cC,4,3,"button",29)(21,dC,4,3,"button",29)(22,uC,4,3,"button",29)(23,hC,4,3,"button",29),w.j41(24,"button",30),w.bIt("click",function(){const t=B.eBV(e).$implicit,i=w.XpG(3);return B.Njj(i.remove(t))}),w.nrm(25,"bit-icon",31),w.EFF(26),w.nI1(27,"i18n"),w.k0s()()()()}if(2&e){const e=t.$implicit,i=w.sdS(19),n=w.XpG(3);w.R7$(2),w.Y8G("text",w.bMT(3,19,e))("id",e.granteeId)("color",e.avatarColor),w.R7$(4),w.JRh(e.email),w.R7$(),w.Y8G("ngIf",e.status===n.emergencyAccessStatusType.Invited),w.R7$(),w.Y8G("ngIf",e.status===n.emergencyAccessStatusType.Accepted),w.R7$(),w.Y8G("ngIf",e.status===n.emergencyAccessStatusType.RecoveryInitiated),w.R7$(),w.Y8G("ngIf",e.status===n.emergencyAccessStatusType.RecoveryApproved),w.R7$(),w.Y8G("ngIf",e.name),w.R7$(2),w.Y8G("ngIf",e.type===n.emergencyAccessType.View),w.R7$(),w.Y8G("ngIf",e.type===n.emergencyAccessType.Takeover),w.R7$(2),w.Y8G("label",w.mNQ(w.bMT(17,21,"options")))("bitMenuTriggerFor",i),w.R7$(4),w.Y8G("ngIf",e.status===n.emergencyAccessStatusType.Invited),w.R7$(),w.Y8G("ngIf",e.status===n.emergencyAccessStatusType.Accepted),w.R7$(),w.Y8G("ngIf",e.status===n.emergencyAccessStatusType.RecoveryInitiated),w.R7$(),w.Y8G("ngIf",e.status===n.emergencyAccessStatusType.RecoveryInitiated||e.status===n.emergencyAccessStatusType.RecoveryApproved),w.R7$(3),w.SpI(" ",w.bMT(27,23,"remove")," ")}}function pC(e,t){if(1&e&&w.DNE(0,AC,28,25,"tr",18),2&e){const e=w.XpG(2);w.Y8G("ngForOf",e.trustedContacts)}}function gC(e,t){1&e&&(w.j41(0,"bit-table"),w.qex(1,14),w.j41(2,"tr")(3,"th",15),w.EFF(4),w.nI1(5,"i18n"),w.k0s(),w.j41(6,"th",15),w.EFF(7),w.nI1(8,"i18n"),w.k0s(),w.j41(9,"th",16),w.EFF(10),w.nI1(11,"i18n"),w.k0s()(),w.bVm(),w.DNE(12,pC,1,1,"ng-template",17),w.k0s()),2&e&&(w.R7$(4),w.JRh(w.bMT(5,3,"name")),w.R7$(3),w.JRh(w.bMT(8,5,"accessLevel")),w.R7$(3),w.JRh(w.bMT(11,7,"options")))}function vC(e,t){1&e&&(w.j41(0,"p",39),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.JRh(w.bMT(2,1,"noTrustedContacts")))}function mC(e,t){1&e&&(w.qex(0),w.nrm(1,"bit-icon",40),w.nI1(2,"i18n"),w.bVm()),2&e&&(w.R7$(),w.Y8G("ariaLabel",w.bMT(2,1,"loading")))}function fC(e,t){if(1&e&&(w.qex(0),w.DNE(1,vC,3,3,"p",38)(2,mC,3,3,"ng-container",11),w.bVm()),2&e){const e=w.XpG();w.R7$(),w.Y8G("ngIf",e.loaded),w.R7$(),w.Y8G("ngIf",!e.loaded)}}function yC(e,t){1&e&&(w.j41(0,"span",34),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.JRh(w.bMT(2,1,"invited")))}function bC(e,t){1&e&&(w.j41(0,"span",33),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.JRh(w.bMT(2,1,"needsConfirmation")))}function CC(e,t){1&e&&(w.j41(0,"span",33),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.JRh(w.bMT(2,1,"emergencyAccessRecoveryInitiated")))}function IC(e,t){1&e&&(w.j41(0,"span",43),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.JRh(w.bMT(2,1,"emergencyAccessRecoveryApproved")))}function wC(e,t){if(1&e&&(w.j41(0,"small",35),w.EFF(1),w.k0s()),2&e){const e=w.XpG().$implicit;w.R7$(),w.JRh(e.name)}}function BC(e,t){1&e&&(w.j41(0,"span",34),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.JRh(w.bMT(2,1,"view")))}function EC(e,t){1&e&&(w.j41(0,"span",34),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.JRh(w.bMT(2,1,"takeover")))}function SC(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",30),w.bIt("click",function(){B.eBV(e);const t=w.XpG().$implicit,i=w.XpG(3);return B.Njj(i.requestAccess(t))}),w.nrm(1,"bit-icon",36),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"requestAccess")," "))}function QC(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",30),w.bIt("click",function(){B.eBV(e);const t=w.XpG().$implicit,i=w.XpG(3);return B.Njj(i.takeover(t))}),w.nrm(1,"bit-icon",44),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"takeover")," "))}function kC(e,t){if(1&e&&(w.j41(0,"button",45),w.nrm(1,"bit-icon",46),w.EFF(2),w.nI1(3,"i18n"),w.k0s()),2&e){const e=w.XpG().$implicit;w.Y8G("routerLink",e.id),w.R7$(2),w.SpI(" ",w.bMT(3,2,"view")," ")}}function RC(e,t){if(1&e){const e=w.RV6();w.j41(0,"tr",19)(1,"td",20),w.nrm(2,"bit-avatar",21),w.nI1(3,"userName"),w.j41(4,"span",22)(5,"span"),w.EFF(6),w.k0s(),w.DNE(7,yC,3,3,"span",26)(8,bC,3,3,"span",25)(9,CC,3,3,"span",25)(10,IC,3,3,"span",41)(11,wC,2,1,"small",27),w.k0s()(),w.j41(12,"td",15),w.DNE(13,BC,3,3,"span",26)(14,EC,3,3,"span",26),w.k0s(),w.j41(15,"td",16),w.nrm(16,"button",28),w.nI1(17,"i18n"),w.j41(18,"bit-menu",null,1),w.DNE(20,SC,4,3,"button",29)(21,QC,4,3,"button",29)(22,kC,4,4,"button",42),w.j41(23,"button",30),w.bIt("click",function(){const t=B.eBV(e).$implicit,i=w.XpG(3);return B.Njj(i.remove(t))}),w.nrm(24,"bit-icon",31),w.EFF(25),w.nI1(26,"i18n"),w.k0s()()()()}if(2&e){const e=t.$implicit,i=w.sdS(19),n=w.XpG(3);w.R7$(2),w.Y8G("text",w.bMT(3,18,e))("id",e.grantorId)("color",e.avatarColor),w.R7$(4),w.JRh(e.email),w.R7$(),w.Y8G("ngIf",e.status===n.emergencyAccessStatusType.Invited),w.R7$(),w.Y8G("ngIf",e.status===n.emergencyAccessStatusType.Accepted),w.R7$(),w.Y8G("ngIf",e.status===n.emergencyAccessStatusType.RecoveryInitiated),w.R7$(),w.Y8G("ngIf",e.status===n.emergencyAccessStatusType.RecoveryApproved),w.R7$(),w.Y8G("ngIf",e.name),w.R7$(2),w.Y8G("ngIf",e.type===n.emergencyAccessType.View),w.R7$(),w.Y8G("ngIf",e.type===n.emergencyAccessType.Takeover),w.R7$(2),w.Y8G("label",w.mNQ(w.bMT(17,20,"options")))("bitMenuTriggerFor",i),w.R7$(4),w.Y8G("ngIf",e.status===n.emergencyAccessStatusType.Confirmed),w.R7$(),w.Y8G("ngIf",e.status===n.emergencyAccessStatusType.RecoveryApproved&&e.type===n.emergencyAccessType.Takeover),w.R7$(),w.Y8G("ngIf",e.status===n.emergencyAccessStatusType.RecoveryApproved&&e.type===n.emergencyAccessType.View),w.R7$(3),w.SpI(" ",w.bMT(26,22,"remove")," ")}}function FC(e,t){if(1&e&&w.DNE(0,RC,27,24,"tr",18),2&e){const e=w.XpG(2);w.Y8G("ngForOf",e.grantedContacts)}}function TC(e,t){1&e&&(w.j41(0,"bit-table"),w.qex(1,14),w.j41(2,"tr")(3,"th",15),w.EFF(4),w.nI1(5,"i18n"),w.k0s(),w.j41(6,"th",15),w.EFF(7),w.nI1(8,"i18n"),w.k0s(),w.j41(9,"th",16),w.EFF(10),w.nI1(11,"i18n"),w.k0s()(),w.bVm(),w.DNE(12,FC,1,1,"ng-template",17),w.k0s()),2&e&&(w.R7$(4),w.JRh(w.bMT(5,3,"name")),w.R7$(3),w.JRh(w.bMT(8,5,"accessLevel")),w.R7$(3),w.JRh(w.bMT(11,7,"options")))}function DC(e,t){1&e&&(w.j41(0,"p",2),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.JRh(w.bMT(2,1,"noGrantedAccess")))}function PC(e,t){1&e&&(w.qex(0),w.nrm(1,"bit-icon",40),w.nI1(2,"i18n"),w.bVm()),2&e&&(w.R7$(),w.Y8G("ariaLabel",w.bMT(2,1,"loading")))}function MC(e,t){if(1&e&&(w.qex(0),w.DNE(1,DC,3,3,"p",47)(2,PC,3,3,"ng-container",11),w.bVm()),2&e){const e=w.XpG();w.R7$(),w.Y8G("ngIf",e.loaded),w.R7$(),w.Y8G("ngIf",!e.loaded)}}class xC{constructor(e,t,i,n,r,s,o,a,l,c,d,h,A,p){this.emergencyAccessService=e,this.i18nService=t,this.platformUtilsService=i,this.messagingService=n,this.userNamePipe=r,this.logService=s,this.stateService=o,this.organizationService=a,this.dialogService=l,this.organizationManagementPreferencesService=d,this.toastService=h,this.apiService=A,this.accountService=p,this.loaded=!1,this.emergencyAccessType=bb,this.emergencyAccessStatusType=Ib.c,this.edit=e=>eC(this,void 0,void 0,function*(){const t=yield(0,u._)(this.canAccessPremium$),i=Ob.open(this.dialogService,{data:{name:this.userNamePipe.transform(e),emergencyAccessId:null==e?void 0:e.id,readOnly:!t}}),n=yield(0,hh.s)(i.closed);n===Rb.Saved?yield this.load():n===Rb.Deleted&&(yield this.remove(e))}),this.invite=()=>eC(this,void 0,void 0,function*(){yield this.edit(null)}),this.takeover=e=>eC(this,void 0,void 0,function*(){if(!e||!e.email||!e.id)return this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:this.i18nService.t("grantorDetailsNotFound")}),void this.logService.error("Grantor details not found when attempting emergency access takeover");const t=this.userNamePipe.transform(e),i=Lb.open(this.dialogService,{data:{grantorName:t,grantorEmail:e.email,emergencyAccessId:e.id}});(yield(0,hh.s)(i.closed))===zb&&this.toastService.showToast({variant:"success",title:"",message:this.i18nService.t("passwordResetFor",t)})}),this.canAccessPremium$=this.accountService.activeAccount$.pipe((0,jt.n)(e=>c.hasPremiumFromAnySource$(e.id)))}ngOnInit(){return eC(this,void 0,void 0,function*(){const e=yield(0,u._)((0,f.F6)(this.accountService.activeAccount$)),t=yield(0,u._)(this.organizationService.organizations$(e));this.isOrganizationOwner=t.some(e=>e.isOwner),this.load()})}load(){return eC(this,void 0,void 0,function*(){this.trustedContacts=yield this.emergencyAccessService.getEmergencyAccessTrusted(),this.grantedContacts=yield this.emergencyAccessService.getEmergencyAccessGranted(),this.loaded=!0})}reinvite(e){return eC(this,void 0,void 0,function*(){null==this.actionPromise&&(this.actionPromise=this.emergencyAccessService.reinvite(e.id),yield this.actionPromise,this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("hasBeenReinvited",e.email)}),this.actionPromise=null)})}confirm(e){return eC(this,void 0,void 0,function*(){function t(){e.status=Ib.c.Confirmed}if(null!=this.actionPromise)return;const i=yield this.apiService.getUserPublicKey(e.granteeId),n=zt.A.fromB64ToArray(i.publicKey),r=yield(0,u._)(this.organizationManagementPreferencesService.autoConfirmFingerPrints.state$);if(null==r||!r){const i=kb.open(this.dialogService,{data:{name:this.userNamePipe.transform(e),emergencyAccessId:e.id,userId:null==e?void 0:e.granteeId,publicKey:n}});if((yield(0,hh.s)(i.closed))===wb.Confirmed){const i=yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6));yield this.emergencyAccessService.confirm(e.id,e.granteeId,n,i),t(),this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("hasBeenConfirmed",this.userNamePipe.transform(e))})}return}const s=yield(0,u._)(this.accountService.activeAccount$.pipe((0,p.T)(e=>null==e?void 0:e.id)));this.actionPromise=this.emergencyAccessService.confirm(e.id,e.granteeId,n,s),yield this.actionPromise,t(),this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("hasBeenConfirmed",this.userNamePipe.transform(e))}),this.actionPromise=null})}remove(e){return eC(this,void 0,void 0,function*(){if(!(yield this.dialogService.openSimpleDialog({title:this.userNamePipe.transform(e),content:{key:"removeUserConfirmation"},type:"warning"})))return!1;try{yield this.emergencyAccessService.delete(e.id),this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("removedUserId",this.userNamePipe.transform(e))}),e instanceof Bb.cY?this.removeGrantee(e):this.removeGrantor(e)}catch(t){this.logService.error(t)}})}requestAccess(e){return eC(this,void 0,void 0,function*(){if(!(yield this.dialogService.openSimpleDialog({title:this.userNamePipe.transform(e),content:{key:"requestAccessConfirmation",placeholders:[e.waitTimeDays.toString()]},acceptButtonText:{key:"requestAccess"},type:"warning"})))return!1;yield this.emergencyAccessService.requestAccess(e.id),e.status=Ib.c.RecoveryInitiated,this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("requestSent",this.userNamePipe.transform(e))})})}approve(e){return eC(this,void 0,void 0,function*(){const t=this.i18nService.t(e.type===bb.View?"view":"takeover");if(!(yield this.dialogService.openSimpleDialog({title:this.userNamePipe.transform(e),content:{key:"approveAccessConfirmation",placeholders:[this.userNamePipe.transform(e),t]},acceptButtonText:{key:"approve"},type:"warning"})))return!1;yield this.emergencyAccessService.approve(e.id),e.status=Ib.c.RecoveryApproved,this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("emergencyApproved",this.userNamePipe.transform(e))})})}reject(e){return eC(this,void 0,void 0,function*(){yield this.emergencyAccessService.reject(e.id),e.status=Ib.c.Confirmed,this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("emergencyRejected",this.userNamePipe.transform(e))})})}removeGrantee(e){const t=this.trustedContacts.indexOf(e);t>-1&&this.trustedContacts.splice(t,1)}removeGrantor(e){const t=this.grantedContacts.indexOf(e);t>-1&&this.grantedContacts.splice(t,1)}}xC.ɵfac=function(e){return new(e||xC)(w.rXU(vv.p),w.rXU(he.W),w.rXU(G.y),w.rXU(oe.U),w.rXU(zy.b),w.rXU(se.K),w.rXU(b.dw),w.rXU(v.PV),w.rXU(T.o),w.rXU(gr.Q),w.rXU(Ke.y),w.rXU(F.f),w.rXU(je.G),w.rXU(N.D))},xC.ɵcmp=w.VBU({type:xC,selectors:[["ng-component"]],decls:31,vars:24,consts:[["trustedContactOptions",""],["grantedContactOptions",""],["bitTypography","body1"],[1,"tw-text-main"],["bitLink","","href","https://bitwarden.com/help/emergency-access/","target","_blank","rel","noreferrer"],["type","warning",3,"title",4,"ngIf"],[1,"tw-flex","tw-items-center","tw-gap-2","tw-mb-2"],["bitTypography","h2","noMargin","",1,"tw-mb-0"],[1,"tw-ml-auto","tw-flex"],["type","button","bitButton","","buttonType","primary",3,"bitAction","disabled"],["name","bwi-plus",1,"bwi-fw"],[4,"ngIf"],["bitTypography","h2"],["type","warning",3,"title"],["header",""],["bitCell",""],["bitCell","",1,"tw-text-right"],["body",""],["bitRow","",4,"ngFor","ngForOf"],["bitRow",""],["bitCell","",1,"tw-flex","tw-items-center","tw-gap-4"],[3,"text","id","color"],[1,"tw-inline-flex","tw-gap-2"],["bitLink","","href","#","appStopClick","",3,"click"],["bitBadge","","variant","secondary",4,"ngIf"],["bitBadge","","variant","warning",4,"ngIf"],["bitBadge","",4,"ngIf"],["class","tw-text-muted tw-block",4,"ngIf"],["type","button","bitIconButton","bwi-ellipsis-v","buttonType","primaryGhost",3,"bitMenuTriggerFor","label"],["type","button","bitMenuItem","",3,"click",4,"ngIf"],["type","button","bitMenuItem","",3,"click"],["name","bwi-close",1,"bwi-fw"],["bitBadge","","variant","secondary"],["bitBadge","","variant","warning"],["bitBadge",""],[1,"tw-text-muted","tw-block"],["name","bwi-envelope",1,"bwi-fw"],["name","bwi-check",1,"bwi-fw"],["bitTypography","body1","class","tw-mt-2",4,"ngIf"],["bitTypography","body1",1,"tw-mt-2"],["name","bwi-spinner",1,"bwi-spin","tw-text-muted",3,"ariaLabel"],["bitBadge","","variant","success",4,"ngIf"],["type","button","bitMenuItem","",3,"routerLink",4,"ngIf"],["bitBadge","","variant","success"],["name","bwi-key",1,"bwi-fw"],["type","button","bitMenuItem","",3,"routerLink"],["name","bwi-eye",1,"bwi-fw"],["bitTypography","body1",4,"ngIf"]],template:function(e,t){1&e&&(w.nrm(0,"app-header"),w.j41(1,"bit-container")(2,"bit-section")(3,"p",2)(4,"span",3),w.EFF(5),w.nI1(6,"i18n"),w.k0s(),w.j41(7,"a",4),w.EFF(8),w.nI1(9,"i18n"),w.k0s()(),w.DNE(10,tC,4,7,"bit-callout",5),w.k0s(),w.j41(11,"bit-section")(12,"div",6)(13,"h2",7),w.EFF(14),w.nI1(15,"i18n"),w.k0s(),w.nrm(16,"app-premium-badge"),w.j41(17,"div",8)(18,"button",9),w.nI1(19,"async"),w.nrm(20,"bit-icon",10),w.EFF(21),w.nI1(22,"i18n"),w.k0s()()(),w.DNE(23,gC,13,9,"bit-table",11)(24,fC,3,2,"ng-container",11),w.k0s(),w.j41(25,"bit-section")(26,"h2",12),w.EFF(27),w.nI1(28,"i18n"),w.k0s(),w.DNE(29,TC,13,9,"bit-table",11)(30,MC,3,2,"ng-container",11),w.k0s()()),2&e&&(w.R7$(5),w.JRh(w.bMT(6,12,"emergencyAccessDesc")),w.R7$(3),w.SpI(" ",w.bMT(9,14,"learnMoreAboutEmergencyAccess")," "),w.R7$(2),w.Y8G("ngIf",t.isOrganizationOwner),w.R7$(4),w.SpI(" ",w.bMT(15,16,"trustedEmergencyContacts")," "),w.R7$(4),w.Y8G("bitAction",t.invite)("disabled",!w.bMT(19,18,t.canAccessPremium$)),w.R7$(3),w.SpI(" ",w.bMT(22,20,"addEmergencyContact")," "),w.R7$(2),w.Y8G("ngIf",t.trustedContacts&&t.trustedContacts.length),w.R7$(),w.Y8G("ngIf",!t.trustedContacts||!t.trustedContacts.length),w.R7$(3),w.JRh(w.bMT(28,22,"designatedEmergencyContacts")),w.R7$(2),w.Y8G("ngIf",t.grantedContacts&&t.grantedContacts.length),w.R7$(),w.Y8G("ngIf",!t.grantedContacts||!t.grantedContacts.length))},dependencies:[Dv.G,L.Sq,L.bT,Hp.Wk,Xy.Y,Up.p,Ny.fw,Wb.n,fh.Q,ae.G,uy.H,Yh.s,ve.R,jh.g,Kb.Z,Zb.O,Hb.S,Jb.n,qb.Q,$b.Y,_b._,_b.O,Tp.r,dy.G,hy.f,Cb.a,L.Jj,Hh.$,zy.b],encapsulation:2});var VC=i(50790),GC=i(75421),UC=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class OC{constructor(e,t,i,n){this.params=e,this.dialogRef=t,this.i18nService=i,this.configService=n,this.title="",this.cancel=()=>{this.dialogRef.close()},this.updateTitle(),this.configService.getFeatureFlag$(Kr.TO.PM32009NewItemTypes).pipe((0,c.pQ)()).subscribe(e=>{this.updateTitle(e)})}get cipher(){return this.params.cipher}get emergencyAccessId(){return this.params.emergencyAccessId}updateTitle(e){switch(this.cipher.type){case Ld.gC.Login:this.title=this.i18nService.t("viewItemHeaderLogin");break;case Ld.gC.Card:this.title=this.i18nService.t("viewItemHeaderCard");break;case Ld.gC.Identity:this.title=this.i18nService.t("viewItemHeaderIdentity");break;case Ld.gC.SecureNote:this.title=this.i18nService.t(e?"viewItemHeaderSecureNote":"viewItemHeaderNote");break;case Ld.gC.SshKey:this.title=this.i18nService.t("viewItemHeaderSshKey");break;case Ld.gC.BankAccount:this.title=this.i18nService.t("viewItemHeaderBankAccount");break;case Ld.gC.Passport:this.title=this.i18nService.t("viewItemHeaderPassport");break;case Ld.gC.DriversLicense:this.title=this.i18nService.t("viewItemHeaderLicense")}}static open(e,t){return e.open(OC,{data:t})}}OC.ɵfac=function(e){return new(e||OC)(w.rXU(Ep.Qs),w.rXU(mh.ce),w.rXU(he.W),w.rXU(O.w))},OC.ɵcmp=w.VBU({type:OC,selectors:[["app-emergency-view-dialog"]],features:[w.Jv_([{provide:GC.Q,useClass:VC.I},{provide:LA.l,useClass:class{constructor(){this.upgradeConfirmed$=fa.w}promptForPremium(){return UC(this,void 0,void 0,function*(){return Promise.resolve()})}}}])],decls:11,vars:6,consts:[["dialog",""],["dialogContent",""],["dialogSize","large","background","alt"],["bitDialogTitle","","aria-live","polite"],["bitDialogContent",""],[3,"emergencyAccessId","cipher"],["bitDialogFooter",""],["bitButton","","type","button","buttonType","secondary",3,"click"]],template:function(e,t){1&e&&(w.j41(0,"bit-dialog",2,0)(2,"span",3),w.EFF(3),w.k0s(),w.j41(4,"div",4,1),w.nrm(6,"app-cipher-view",5),w.k0s(),w.qex(7,6),w.j41(8,"button",7),w.bIt("click",function(){return t.cancel()}),w.EFF(9),w.nI1(10,"i18n"),w.k0s(),w.bVm(),w.k0s()),2&e&&(w.R7$(3),w.SpI(" ",t.title," "),w.R7$(3),w.Y8G("emergencyAccessId",t.emergencyAccessId)("cipher",t.cipher),w.R7$(3),w.SpI(" ",w.bMT(10,4,"cancel")," "))},dependencies:[Ah.t,fh.Q,dh.k,ph.P,bh.m,Ch.hJ,L.MD,Nh.p,Hh.$],encapsulation:2});var NC=i(26333),jC=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function YC(e,t){1&e&&(w.qex(0),w.nrm(1,"bit-icon",11),w.nI1(2,"i18n"),w.bVm()),2&e&&(w.R7$(),w.Y8G("ariaLabel",w.bMT(2,1,"shared")))}function XC(e,t){1&e&&(w.qex(0),w.nrm(1,"bit-icon",12),w.nI1(2,"i18n"),w.bVm()),2&e&&(w.R7$(),w.Y8G("ariaLabel",w.bMT(2,1,"attachments")))}function zC(e,t){if(1&e){const e=w.RV6();w.j41(0,"tr",5)(1,"td",6),w.nrm(2,"app-vault-icon",7),w.k0s(),w.j41(3,"td",8)(4,"a",9),w.nI1(5,"i18n"),w.bIt("click",function(){const t=B.eBV(e).$implicit,i=w.XpG(3);return B.Njj(i.selectCipher(t))}),w.EFF(6),w.k0s(),w.DNE(7,YC,3,3,"ng-container",2)(8,XC,3,3,"ng-container",2),w.nrm(9,"br"),w.j41(10,"small",10),w.EFF(11),w.k0s()()()}if(2&e){const e=t.$implicit;w.R7$(2),w.Y8G("cipher",e),w.R7$(2),w.Y8G("title",w.mNQ(w.bMT(5,7,"editItem"))),w.R7$(2),w.JRh(e.name),w.R7$(),w.Y8G("ngIf",e.organizationId),w.R7$(),w.Y8G("ngIf",e.hasAttachments),w.R7$(3),w.JRh(e.subTitle)}}function LC(e,t){if(1&e&&w.DNE(0,zC,12,9,"tr",4),2&e){const e=w.XpG(2);w.Y8G("ngForOf",e.ciphers)}}function WC(e,t){1&e&&(w.qex(0),w.j41(1,"bit-table"),w.DNE(2,LC,1,1,"ng-template",3),w.k0s(),w.bVm())}function KC(e,t){1&e&&(w.qex(0),w.nrm(1,"bit-icon",13),w.nI1(2,"i18n"),w.bVm()),2&e&&(w.R7$(),w.Y8G("ariaLabel",w.bMT(2,1,"loading")))}class ZC{constructor(e,t,i,n,r){this.router=e,this.route=t,this.emergencyAccessService=i,this.dialogService=n,this.accountService=r,this.id=null,this.ciphers=[],this.loaded=!1}ngOnInit(){return jC(this,void 0,void 0,function*(){const e=yield(0,u._)(this.route.params);if(null==e.id)return void(yield this.router.navigate(["settings/emergency-access"]));this.id=e.id;const t=yield(0,u._)((0,f.F6)(this.accountService.activeAccount$));this.ciphers=yield this.emergencyAccessService.getViewOnlyCiphers(e.id,t),this.loaded=!0})}selectCipher(e){return jC(this,void 0,void 0,function*(){OC.open(this.dialogService,{cipher:e,emergencyAccessId:this.id})})}}ZC.ɵfac=function(e){return new(e||ZC)(w.rXU(R.Ix),w.rXU(R.nX),w.rXU(vv.p),w.rXU(T.o),w.rXU(N.D))},ZC.ɵcmp=w.VBU({type:ZC,selectors:[["ng-component"]],features:[w.Jv_([{provide:dh.hI,useClass:dh.Ws}])],decls:6,vars:5,consts:[["bitTypography","h1"],[1,"tw-mt-6"],[4,"ngIf"],["body",""],["bitRow","",4,"ngFor","ngForOf"],["bitRow",""],["bitCell",""],[3,"cipher"],["bitCell","",1,"tw-w-full"],["bitLink","","href","#","appStopClick","",3,"click","title"],[1,"tw-text-xs"],["name","bwi-collection-shared","appStopProp","",1,"tw-ml-1",3,"ariaLabel"],["name","bwi-paperclip","appStopProp","",1,"tw-ml-1",3,"ariaLabel"],["name","bwi-spinner",1,"bwi-spin","tw-text-muted",3,"ariaLabel"]],template:function(e,t){1&e&&(w.j41(0,"h1",0),w.EFF(1),w.nI1(2,"i18n"),w.k0s(),w.j41(3,"div",1),w.DNE(4,WC,3,0,"ng-container",2)(5,KC,3,3,"ng-container",2),w.k0s()),2&e&&(w.R7$(),w.JRh(w.bMT(2,3,"vault")),w.R7$(3),w.Y8G("ngIf",t.ciphers.length),w.R7$(),w.Y8G("ngIf",!t.loaded))},dependencies:[Dv.G,L.Sq,L.bT,NC.R,Xy.Y,qy.x,ve.R,jh.g,qb.Q,$b.Y,_b._,_b.O,Tp.r,Hh.$],encapsulation:2});var HC=i(79783),JC=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function qC(e,t){1&e&&(w.j41(0,"div",7),w.nrm(1,"bit-icon",8),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.Y8G("ariaLabel",w.bMT(2,1,"loading")))}function $C(e,t){if(1&e&&(w.qex(0),w.DNE(1,qC,3,3,"div",6),w.bVm()),2&e){const e=w.XpG();w.R7$(),w.Y8G("ngIf",e.loading)}}function _C(e,t){if(1&e&&(w.qex(0),w.j41(1,"p"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"div")(5,"span",9),w.EFF(6),w.nI1(7,"i18n"),w.k0s(),w.j41(8,"p",10),w.EFF(9),w.k0s()(),w.j41(10,"div")(11,"span",9),w.EFF(12),w.nI1(13,"i18n"),w.k0s(),w.j41(14,"p"),w.EFF(15),w.k0s()(),w.j41(16,"div")(17,"span",9),w.EFF(18),w.nI1(19,"i18n"),w.k0s(),w.j41(20,"p")(21,"span",11),w.EFF(22),w.k0s(),w.EFF(23),w.k0s()(),w.j41(24,"div")(25,"span",9),w.EFF(26),w.nI1(27,"i18n"),w.k0s(),w.j41(28,"p"),w.EFF(29),w.k0s()(),w.bVm()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.i5U(3,10,"accessAttemptBy",e.email)),w.R7$(4),w.JRh(w.bMT(7,13,"fingerprintPhraseHeader")),w.R7$(3),w.JRh(e.fingerprintPhrase),w.R7$(3),w.JRh(w.bMT(13,15,"deviceType")),w.R7$(3),w.JRh(e.readableDeviceTypeName),w.R7$(3),w.JRh(w.bMT(19,17,"location")),w.R7$(4),w.SpI("",null==e.authRequestResponse?null:e.authRequestResponse.requestCountryName," "),w.R7$(),w.SpI(" (",null==e.authRequestResponse?null:e.authRequestResponse.requestIpAddress,") "),w.R7$(3),w.JRh(w.bMT(27,19,"time")),w.R7$(3),w.JRh(e.requestTimeText)}}const eI=3e5;class tI{constructor(e,t,i,n,r,s,o,a,l,c){this.params=e,this.accountService=t,this.apiService=i,this.authRequestService=n,this.devicesService=r,this.dialogRef=s,this.i18nService=o,this.logService=a,this.toastService=l,this.validationService=c,this.loading=!0,this.denyLogin=()=>JC(this,void 0,void 0,function*(){yield this.retrieveAuthRequestAndRespond(!1)}),this.approveLogin=()=>JC(this,void 0,void 0,function*(){yield this.retrieveAuthRequestAndRespond(!0)}),this.authRequestId=e.notificationId}ngOnDestroy(){return JC(this,void 0,void 0,function*(){clearInterval(this.interval)})}ngOnInit(){return JC(this,void 0,void 0,function*(){if(null==this.authRequestId)return void this.logService.error("LoginApprovalDialogComponent: authRequestId is null");try{this.authRequestResponse=yield this.apiService.getAuthRequest(this.authRequestId)}catch(t){this.validationService.showError(t),this.logService.error("LoginApprovalDialogComponent: getAuthRequest error",t)}if(null==this.authRequestResponse)return void this.logService.error("LoginApprovalDialogComponent: authRequestResponse not found");const e=zt.A.fromB64ToArray(this.authRequestResponse.publicKey);this.email=yield(0,u._)(this.accountService.activeAccount$.pipe((0,p.T)(e=>null==e?void 0:e.email))),this.email?(this.fingerprintPhrase=yield this.authRequestService.getFingerprintPhrase(this.email,e),this.readableDeviceTypeName=this.devicesService.getReadableDeviceTypeName(this.authRequestResponse.requestDeviceTypeValue),this.updateTimeText(),this.interval=setInterval(()=>{this.updateTimeText()},eI),this.loading=!1):this.logService.error("LoginApprovalDialogComponent: email not found")})}static open(e,t){return e.open(tI,{data:t})}retrieveAuthRequestAndRespond(e){return JC(this,void 0,void 0,function*(){if(this.authRequestResponse=yield this.apiService.getAuthRequest(this.authRequestId),this.authRequestResponse.requestApproved||null!=this.authRequestResponse.responseDate)this.toastService.showToast({variant:"info",message:this.i18nService.t("thisRequestIsNoLongerValid")});else{const t=yield this.authRequestService.approveOrDenyAuthRequest(e,this.authRequestResponse);this.showResultToast(t)}yield this.dialogRef.close(e)})}showResultToast(e){e.requestApproved?this.toastService.showToast({variant:"success",message:this.i18nService.t("loginRequestApprovedForEmailOnDevice",this.email,this.devicesService.getReadableDeviceTypeName(e.requestDeviceTypeValue))}):this.toastService.showToast({variant:"info",message:this.i18nService.t("youDeniedLoginAttemptFromAnotherDevice")})}updateTimeText(){if(null==this.authRequestResponse)return void this.logService.error("LoginApprovalDialogComponent: authRequestResponse not found");const e=new Date(this.authRequestResponse.creationDate),t=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),i=new Date(Date.now()),n=Date.UTC(i.getUTCFullYear(),i.getUTCMonth(),i.getDate(),i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds())-t;n<=eI?this.requestTimeText=this.i18nService.t("justNow"):n<9e5?this.requestTimeText=this.i18nService.t("requestedXMinutesAgo",(n/6e4).toFixed()):(clearInterval(this.interval),this.dialogRef.close(),this.toastService.showToast({variant:"info",message:this.i18nService.t("loginRequestHasAlreadyExpired")}))}}tI.ɵfac=function(e){return new(e||tI)(w.rXU(Ep.Qs),w.rXU(N.D),w.rXU(je.G),w.rXU(g.XF),w.rXU(ai),w.rXU(mh.ce),w.rXU(he.W),w.rXU(qA.Kc),w.rXU(F.f),w.rXU(oa.B))},tI.ɵcmp=w.VBU({type:tI,selectors:[["ng-component"]],decls:14,vars:15,consts:[["bitDialogTitle",""],["bitDialogContent",""],[4,"ngIf"],["bitDialogFooter",""],["bitButton","","type","button","buttonType","primary",3,"bitAction","disabled"],["bitButton","","type","button","buttonType","secondary",3,"bitAction","disabled"],["class","tw-flex tw-items-center tw-justify-center",4,"ngIf"],[1,"tw-flex","tw-items-center","tw-justify-center"],["name","bwi-spinner",1,"bwi-spin","bwi-3x",3,"ariaLabel"],[1,"tw-font-medium"],[1,"tw-text-code"],[1,"tw-capitalize"]],template:function(e,t){1&e&&(w.j41(0,"bit-dialog")(1,"span",0),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.qex(4,1),w.DNE(5,$C,2,1,"ng-container",2)(6,_C,30,21,"ng-container",2),w.bVm(),w.qex(7,3),w.j41(8,"button",4),w.EFF(9),w.nI1(10,"i18n"),w.k0s(),w.j41(11,"button",5),w.EFF(12),w.nI1(13,"i18n"),w.k0s(),w.bVm(),w.k0s()),2&e&&(w.R7$(2),w.JRh(w.bMT(3,9,"loginRequest")),w.R7$(3),w.Y8G("ngIf",t.loading),w.R7$(),w.Y8G("ngIf",!t.loading),w.R7$(2),w.Y8G("bitAction",t.approveLogin)("disabled",t.loading),w.R7$(),w.SpI(" ",w.bMT(10,11,"confirmAccess")," "),w.R7$(2),w.Y8G("bitAction",t.denyLogin)("disabled",t.loading),w.R7$(),w.SpI(" ",w.bMT(13,13,"denyAccess")," "))},dependencies:[vh.C,Up.p,Ah.t,fh.Q,L.MD,L.bT,ph.P,bh.m,Ch.hJ,le.o,ve.R,Nh.p,Hh.$],encapsulation:2});var iI=i(639),nI=i(75556),rI=i(90300),sI=i(91962);function oI(e,t){1&e&&(w.j41(0,"span"),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.JRh(w.bMT(2,1,"trusted")))}function aI(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",2),w.bIt("click",function(){B.eBV(e);const t=w.XpG().$implicit,i=w.XpG(2);return B.Njj(i.answerAuthRequest(t.pendingAuthRequest))}),w.j41(1,"span",3),w.EFF(2),w.k0s(),w.j41(3,"div",4)(4,"div")(5,"span",5),w.EFF(6),w.nI1(7,"i18n"),w.k0s()(),w.nVh(8,oI,3,3,"span"),w.j41(9,"div")(10,"span",6),w.EFF(11),w.nI1(12,"i18n"),w.k0s(),w.j41(13,"span"),w.EFF(14),w.nI1(15,"date"),w.k0s()()()()}if(2&e){const e=w.XpG().$implicit;w.BMQ("tabindex",null!=e.pendingAuthRequest?0:null),w.R7$(2),w.JRh(e.displayName),w.R7$(4),w.JRh(w.bMT(7,6,"requestPending")),w.R7$(2),w.vxM(e.isTrusted?8:-1),w.R7$(3),w.SpI("",w.bMT(12,8,"firstLogin"),": "),w.R7$(3),w.JRh(w.i5U(15,10,e.firstLogin,"medium"))}}function lI(e,t){1&e&&(w.j41(0,"span"),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.JRh(w.bMT(2,1,"trusted")))}function cI(e,t){1&e&&(w.j41(0,"div")(1,"span",8),w.EFF(2),w.nI1(3,"i18n"),w.k0s()()),2&e&&(w.R7$(2),w.JRh(w.bMT(3,1,"currentSession")))}function dI(e,t){if(1&e&&(w.j41(0,"div")(1,"span",6),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"span"),w.EFF(5),w.k0s()()),2&e){const e=w.XpG(2).$implicit;w.R7$(2),w.SpI("",w.bMT(3,2,"recentlyActive"),": "),w.R7$(3),w.JRh(e.recentlyActiveText)}}function uI(e,t){if(1&e&&(w.j41(0,"bit-item-content")(1,"span",3),w.EFF(2),w.k0s(),w.j41(3,"div",4),w.nVh(4,lI,3,3,"span"),w.DNE(5,cI,4,3,"div",7)(6,dI,6,4,"div",7),w.j41(7,"div")(8,"span",6),w.EFF(9),w.nI1(10,"i18n"),w.k0s(),w.j41(11,"span"),w.EFF(12),w.nI1(13,"date"),w.k0s()()()()),2&e){const e=w.XpG().$implicit;w.R7$(2),w.JRh(e.displayName),w.R7$(2),w.vxM(e.isTrusted?4:-1),w.R7$(),w.Y8G("ngIf",e.isCurrentDevice),w.R7$(),w.Y8G("ngIf",!e.isCurrentDevice&&e.recentlyActiveText),w.R7$(3),w.SpI("",w.bMT(10,6,"firstLogin"),": "),w.R7$(3),w.JRh(w.i5U(13,8,e.firstLogin,"medium"))}}function hI(e,t){if(1&e&&(w.j41(0,"bit-item"),w.nVh(1,aI,16,13,"button",1)(2,uI,14,11,"bit-item-content"),w.k0s()),2&e){const e=t.$implicit;w.R7$(),w.vxM(e.pendingAuthRequest?1:2)}}function AI(e,t){if(1&e&&(w.j41(0,"bit-item-group"),w.DNE(1,hI,3,1,"bit-item",0),w.k0s()),2&e){const e=w.XpG();w.R7$(),w.Y8G("ngForOf",e.devices)}}function pI(e,t){1&e&&(w.j41(0,"span"),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.JRh(w.bMT(2,1,"trusted")))}function gI(e,t){1&e&&w.nrm(0,"br")}function vI(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",11),w.bIt("click",function(){B.eBV(e);const t=w.XpG().$implicit,i=w.XpG(2);return B.Njj(i.answerAuthRequest(t.pendingAuthRequest))}),w.j41(1,"span",3),w.EFF(2),w.k0s(),w.j41(3,"span",12)(4,"span",5),w.EFF(5),w.nI1(6,"i18n"),w.k0s()(),w.j41(7,"span",13),w.nVh(8,pI,3,3,"span")(9,gI,1,0,"br"),w.j41(10,"div")(11,"span",6),w.EFF(12),w.nI1(13,"i18n"),w.k0s(),w.j41(14,"span"),w.EFF(15),w.nI1(16,"date"),w.k0s()()()()}if(2&e){const e=w.XpG().$implicit;w.BMQ("tabindex",null!=e.pendingAuthRequest?0:null),w.R7$(2),w.JRh(e.displayName),w.R7$(3),w.SpI(" ",w.bMT(6,6,"requestPending")," "),w.R7$(3),w.vxM(e.isTrusted?8:9),w.R7$(4),w.SpI(" ",w.bMT(13,8,"firstLogin"),": "),w.R7$(3),w.JRh(w.i5U(16,10,e.firstLogin,"medium"))}}function mI(e,t){1&e&&(w.j41(0,"div",12)(1,"span",8),w.EFF(2),w.nI1(3,"i18n"),w.k0s()()),2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"currentSession")," "))}function fI(e,t){1&e&&(w.j41(0,"span"),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.JRh(w.bMT(2,1,"trusted")))}function yI(e,t){1&e&&w.nrm(0,"br")}function bI(e,t){if(1&e&&(w.j41(0,"bit-item-content",10)(1,"span",3),w.EFF(2),w.k0s(),w.DNE(3,mI,4,3,"div",14),w.j41(4,"div",13),w.nVh(5,fI,3,3,"span")(6,yI,1,0,"br"),w.j41(7,"div")(8,"span",6),w.EFF(9),w.nI1(10,"i18n"),w.k0s(),w.j41(11,"span"),w.EFF(12),w.nI1(13,"date"),w.k0s()()()()),2&e){const e=w.XpG().$implicit;w.R7$(2),w.JRh(e.displayName),w.R7$(),w.Y8G("ngIf",e.isCurrentDevice),w.R7$(2),w.vxM(e.isTrusted?5:6),w.R7$(4),w.SpI("",w.bMT(10,5,"firstLogin"),": "),w.R7$(3),w.JRh(w.i5U(13,7,e.firstLogin,"medium"))}}function CI(e,t){if(1&e&&(w.j41(0,"bit-item"),w.nVh(1,vI,17,13,"button",9)(2,bI,14,10,"bit-item-content",10),w.k0s()),2&e){const e=t.$implicit;w.R7$(),w.vxM(e.pendingAuthRequest?1:2)}}function II(e,t){if(1&e&&(w.j41(0,"bit-item-group"),w.DNE(1,CI,3,1,"bit-item",0),w.k0s()),2&e){const e=w.XpG();w.R7$(),w.Y8G("ngForOf",e.devices)}}class wI{constructor(){this.devices=[],this.showRecentlyActive=!1,this.onAuthRequestAnswered=new B.bkB}answerAuthRequest(e){null!=e&&this.onAuthRequestAnswered.emit(e)}}wI.ɵfac=function(e){return new(e||wI)},wI.ɵcmp=w.VBU({type:wI,selectors:[["auth-device-management-item-group"]],inputs:{devices:"devices",showRecentlyActive:"showRecentlyActive"},outputs:{onAuthRequestAnswered:"onAuthRequestAnswered"},decls:2,vars:1,consts:[[4,"ngFor","ngForOf"],["bit-item-content","","type","button"],["bit-item-content","","type","button",3,"click"],[1,"tw-text-base"],["slot","secondary",1,"tw-flex","tw-flex-col","tw-gap-1","tw-mt-1"],["bitBadge","","variant","warning"],[1,"tw-font-medium"],[4,"ngIf"],["bitBadge","","variant","primary"],["bit-item-content","","type","button",1,"tw-relative"],["ngClass","tw-relative"],["bit-item-content","","type","button",1,"tw-relative",3,"click"],["slot","default-trailing",1,"tw-absolute","tw-top-[6px]","tw-right-3"],["slot","secondary",1,"tw-text-sm"],["class","tw-absolute tw-top-[6px] tw-right-3","slot","default-trailing",4,"ngIf"]],template:function(e,t){1&e&&w.nVh(0,AI,2,1,"bit-item-group")(1,II,2,1,"bit-item-group"),2&e&&w.vxM(t.showRecentlyActive?0:1)},dependencies:[iI.E,Wb.n,L.MD,L.YU,L.Sq,L.bT,qp.k,nI.J,rI.g,sI._,L.vh,ce.$Z],encapsulation:2});var BI=i(55542),EI=i(47659);const SI=(e,t,i="asc")=>{var n,r,s,o;if("desc"===i){if(e.isCurrentDevice)return 1;if(t.isCurrentDevice)return-1}return(null!==(r=null===(n=e.lastActivityDate)||void 0===n?void 0:n.getTime())&&void 0!==r?r:0)-(null!==(o=null===(s=t.lastActivityDate)||void 0===s?void 0:s.getTime())&&void 0!==o?o:0)};function QI(e,t){return e.pendingAuthRequest?-1:t.pendingAuthRequest?1:e.isCurrentDevice?-1:t.isCurrentDevice?1:e.creationDate>t.creationDate?-1:e.creationDate<t.creationDate?1:0}function kI(e,t){return e.isCurrentDevice?-1:t.isCurrentDevice?1:e.pendingAuthRequest?-1:t.pendingAuthRequest?1:e.lastActivityDate&&t.lastActivityDate?t.lastActivityDate.getTime()-e.lastActivityDate.getTime():e.lastActivityDate?-1:t.lastActivityDate?1:t.firstLogin.getTime()-e.firstLogin.getTime()}var RI=i(30930),FI=i(32316);function TI(e,t){if(1&e&&(w.j41(0,"th",4),w.EFF(1),w.k0s()),2&e){const e=t.$implicit;w.HbH(e.headerClass),w.Y8G("bitSortable",e.sortable?e.name:"")("fn",e.sortFn),w.R7$(),w.SpI(" ",e.title," ")}}function DI(e,t){1&e&&(w.j41(0,"div",15),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,1,"trusted")," "))}function PI(e,t){if(1&e){const e=w.RV6();w.j41(0,"a",13),w.bIt("click",function(){B.eBV(e);const t=w.XpG().$implicit,i=w.XpG();return B.Njj(i.answerAuthRequest(t.pendingAuthRequest))}),w.EFF(1),w.k0s(),w.DNE(2,DI,3,3,"div",14)}if(2&e){const e=w.XpG().$implicit;w.R7$(),w.SpI(" ",e.displayName," "),w.R7$(),w.Y8G("ngIf",e.isTrusted)}}function MI(e,t){1&e&&(w.j41(0,"div",15),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,1,"trusted")," "))}function xI(e,t){if(1&e&&(w.j41(0,"span"),w.EFF(1),w.k0s(),w.DNE(2,MI,3,3,"div",14)),2&e){const e=w.XpG().$implicit;w.R7$(),w.JRh(e.displayName),w.R7$(),w.Y8G("ngIf",e.isTrusted)}}function VI(e,t){1&e&&(w.j41(0,"span",16),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,1,"currentSession")," "))}function GI(e,t){1&e&&(w.j41(0,"span",17),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,1,"requestPending")," "))}function UI(e,t){if(1&e&&(w.j41(0,"span"),w.EFF(1),w.k0s()),2&e){const e=w.XpG().$implicit;w.R7$(),w.SpI(" ",e.recentlyActiveText," ")}}function OI(e,t){if(1&e&&(w.j41(0,"td",5)(1,"div",6),w.nrm(2,"bit-icon",7),w.k0s(),w.j41(3,"div"),w.nVh(4,PI,3,2)(5,xI,3,2),w.k0s()(),w.j41(6,"td",8)(7,"div",9),w.DNE(8,VI,3,3,"span",10)(9,GI,3,3,"span",11)(10,UI,2,1,"span",12),w.k0s()(),w.j41(11,"td",8),w.EFF(12),w.nI1(13,"date"),w.k0s()),2&e){const e=t.$implicit,i=w.XpG();w.R7$(2),w.Y8G("name",e.icon),w.R7$(2),w.vxM(e.pendingAuthRequest?4:5),w.R7$(4),w.Y8G("ngIf",e.isCurrentDevice),w.R7$(),w.Y8G("ngIf",e.pendingAuthRequest),w.R7$(),w.Y8G("ngIf",i.showRecentlyActive&&!e.isCurrentDevice&&!e.pendingAuthRequest),w.R7$(2),w.JRh(w.i5U(13,6,e.firstLogin,"medium"))}}class NI{constructor(e){this.i18nService=e,this.devices=[],this.showRecentlyActive=!1,this.onAuthRequestAnswered=new B.bkB,this.tableDataSource=new BI.s,this.columnConfig=[]}ngOnInit(){this.columnConfig=[{name:"displayName",title:this.i18nService.t("device"),headerClass:"tw-w-1/3",sortable:!0},{name:this.showRecentlyActive?"recentlyActiveText":"loginStatus",title:this.i18nService.t(this.showRecentlyActive?"recentlyActive":"loginStatus"),headerClass:"tw-w-1/3",sortable:!0,sortFn:this.showRecentlyActive?SI:void 0},{name:"firstLogin",title:this.i18nService.t("firstLogin"),headerClass:"tw-w-1/3",sortable:!0}]}ngOnChanges(e){e.devices&&(this.tableDataSource.data=this.devices)}resetSort(){this.tableDataSource.sort={direction:"asc"}}answerAuthRequest(e){null!=e&&this.onAuthRequestAnswered.emit(e)}}function jI(e,t=new Date){if(!e)return null;const i=function(e,t){const i=new Date(t.getFullYear(),t.getMonth(),t.getDate()),n=new Date(e.getFullYear(),e.getMonth(),e.getDate());return Math.round((i.getTime()-n.getTime())/864e5)}(e,t);return i<=0?"recentlyActiveToday":i<7?"recentlyActivePast7Days":i<14?"recentlyActivePast14Days":i<30?"recentlyActivePast30Days":"recentlyActiveOver30Days"}NI.ɵfac=function(e){return new(e||NI)(w.rXU(he.W))},NI.ɵcmp=w.VBU({type:NI,selectors:[["auth-device-management-table"]],inputs:{devices:"devices",showRecentlyActive:"showRecentlyActive"},outputs:{onAuthRequestAnswered:"onAuthRequestAnswered"},features:[w.OA$],decls:4,vars:3,consts:[[3,"dataSource","rowSize"],["header",""],["bitCell","","scope","col","role","columnheader",3,"class","bitSortable","fn",4,"ngFor","ngForOf"],["bitRowDef",""],["bitCell","","scope","col","role","columnheader",3,"bitSortable","fn"],["bitCell","",1,"tw-flex","tw-gap-2","tw-items-center","tw-h-16"],[1,"tw-flex","tw-items-center","tw-justify-center","tw-w-10"],[1,"bwi-lg",3,"name"],["bitCell",""],[1,"tw-flex","tw-gap-1"],["bitBadge","","variant","primary",4,"ngIf"],["bitBadge","","variant","warning",4,"ngIf"],[4,"ngIf"],["bitLink","","href","#","appStopClick","",3,"click"],["class","tw-text-sm tw-text-muted",4,"ngIf"],[1,"tw-text-sm","tw-text-muted"],["bitBadge","","variant","primary"],["bitBadge","","variant","warning"]],template:function(e,t){1&e&&(w.j41(0,"bit-table-scroll",0),w.qex(1,1),w.DNE(2,TI,2,5,"th",2),w.bVm(),w.DNE(3,OI,14,9,"ng-template",3),w.k0s()),2&e&&(w.Y8G("dataSource",t.tableDataSource)("rowSize",64),w.R7$(2),w.Y8G("ngForOf",t.columnConfig))},dependencies:[iI.E,Wb.n,Ah.t,L.MD,L.Sq,L.bT,le.o,ve.R,Nh.p,Xy.Y,Gh.V,jh.g,EI.b,RI.a,qb.Q,FI.O,RI.N,L.vh,Hh.$],encapsulation:2});var YI=i(62044),XI=i(63581),zI=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function LI(e,t){if(1&e&&(w.j41(0,"div",3)(1,"div",4)(2,"h1",5),w.EFF(3),w.nI1(4,"i18n"),w.k0s(),w.j41(5,"button",6),w.nrm(6,"bit-icon",7),w.k0s(),w.j41(7,"bit-popover",8,0),w.nI1(9,"i18n"),w.j41(10,"p",9),w.EFF(11),w.nI1(12,"i18n"),w.k0s()()(),w.j41(13,"p"),w.EFF(14),w.nI1(15,"i18n"),w.k0s()()),2&e){const e=w.sdS(8);w.R7$(3),w.JRh(w.bMT(4,5,"devices")),w.R7$(2),w.Y8G("bitPopoverTriggerFor",e),w.R7$(2),w.Y8G("title",w.bMT(9,7,"whatIsADevice")),w.R7$(4),w.JRh(w.bMT(12,9,"aDeviceIs")),w.R7$(3),w.SpI(" ",w.bMT(15,11,"deviceListDescriptionTemp")," ")}}function WI(e,t){1&e&&(w.j41(0,"div",2),w.nrm(1,"bit-icon",10),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.Y8G("ariaLabel",w.bMT(2,1,"loading")))}function KI(e,t){if(1&e){const e=w.RV6();w.j41(0,"auth-device-management-table",11),w.bIt("onAuthRequestAnswered",function(t){B.eBV(e);const i=w.XpG();return B.Njj(i.handleAuthRequestAnswered(t))}),w.k0s(),w.j41(1,"auth-device-management-item-group",12),w.bIt("onAuthRequestAnswered",function(t){B.eBV(e);const i=w.XpG();return B.Njj(i.handleAuthRequestAnswered(t))}),w.k0s()}if(2&e){const e=w.XpG();w.Y8G("devices",e.devices)("showRecentlyActive",e.showRecentlyActive),w.R7$(),w.Y8G("devices",e.devices)("showRecentlyActive",e.showRecentlyActive)}}class ZI{constructor(e,t,i,n,s,o,a,l,c,d,u){this.accountService=e,this.authRequestApiService=t,this.configService=i,this.destroyRef=n,this.deviceManagementComponentService=s,this.devicesService=o,this.dialogService=a,this.i18nService=l,this.messageListener=c,this.pendingAuthRequestStateService=d,this.validationService=u,this.tableComponent=(0,r.ebz)(NI),this.devices=[],this.initializing=!0,this.showHeaderInfo=!1,this.showRecentlyActive=!1,this.showHeaderInfo=this.deviceManagementComponentService.showHeaderInformation()}ngOnInit(){return zI(this,void 0,void 0,function*(){this.showRecentlyActive=yield this.configService.getFeatureFlag(Kr.TO.PM4516_DevicesLastActivityDate),yield this.loadDevices(),this.messageListener.allMessages$.pipe((0,c.pQ)(this.destroyRef)).subscribe(e=>{"openLoginApproval"===e.command&&e.notificationId&&"string"==typeof e.notificationId&&this.upsertDeviceWithPendingAuthRequest(e.notificationId)})})}loadDevices(){return zI(this,void 0,void 0,function*(){try{const e=yield(0,u._)(this.devicesService.getDevices$()),t=yield(0,u._)(this.devicesService.getCurrentDevice$());if(!e||!t)return;this.devices=this.mapDevicesToDisplayData(e,t)}catch(e){this.validationService.showError(e)}finally{this.initializing=!1}})}mapDevicesToDisplayData(e,t){return e.map(e=>{var i,n,r;if(!e.id)return this.validationService.showError(new Error(this.i18nService.t("deviceIdMissing"))),null;if(null==e.type)return this.validationService.showError(new Error(this.i18nService.t("deviceTypeMissing"))),null;if(!e.creationDate)return this.validationService.showError(new Error(this.i18nService.t("deviceCreationDateMissing"))),null;const s=e.lastActivityDate?new Date(e.lastActivityDate):null;return{creationDate:e.creationDate,displayName:this.devicesService.getReadableDeviceTypeName(e.type),firstLogin:e.creationDate?new Date(e.creationDate):new Date,icon:this.getDeviceIcon(e.type),id:e.id||"",identifier:null!==(i=e.identifier)&&void 0!==i?i:"",isCurrentDevice:this.isCurrentDevice(e,t),isTrusted:null!==(n=e.isTrusted)&&void 0!==n&&n,lastActivityDate:s,loginStatus:this.getLoginStatus(e,t),pendingAuthRequest:null!==(r=e.devicePendingAuthRequest)&&void 0!==r?r:null,recentlyActiveText:this.getRecentlyActiveText(s)}}).filter(e=>null!==e).sort(this.showRecentlyActive?kI:QI)}upsertDeviceWithPendingAuthRequest(e){return zI(this,void 0,void 0,function*(){var t,i;const n=yield this.authRequestApiService.getAuthRequest(e);if(!n)return;const r={creationDate:"",displayName:this.devicesService.getReadableDeviceTypeName(n.requestDeviceTypeValue),firstLogin:new Date(n.creationDate),icon:this.getDeviceIcon(n.requestDeviceTypeValue),id:"",identifier:n.requestDeviceIdentifier,isCurrentDevice:!1,isTrusted:!1,lastActivityDate:null,loginStatus:this.i18nService.t("requestPending"),pendingAuthRequest:{id:n.id,creationDate:n.creationDate},recentlyActiveText:""};if(n.requestDeviceIdentifier){const e=yield(0,u._)(this.devicesService.getDeviceByIdentifier$(n.requestDeviceIdentifier));if((null==e?void 0:e.id)&&e.creationDate&&(r.creationDate=e.creationDate,r.firstLogin=new Date(e.creationDate),r.id=e.id,r.isTrusted=null!==(t=null==e?void 0:e.isTrusted)&&void 0!==t&&t,this.showRecentlyActive)){const t=e.lastActivityDate?new Date(e.lastActivityDate):null;r.lastActivityDate=t,r.recentlyActiveText=this.getRecentlyActiveText(t)}}const s=this.devices.findIndex(e=>e.identifier===r.identifier);this.showRecentlyActive&&(null===(i=this.tableComponent())||void 0===i||i.resetSort()),s>=0?(this.devices[s]=r,this.devices=[...this.devices].sort(this.showRecentlyActive?kI:QI)):this.devices=[r,...this.devices].sort(this.showRecentlyActive?kI:QI)})}getLoginStatus(e,t){return this.isCurrentDevice(e,t)?this.i18nService.t("currentSession"):this.hasPendingAuthRequest(e)?this.i18nService.t("requestPending"):""}isCurrentDevice(e,t){return e.id===t.id}hasPendingAuthRequest(e){return null!=e.devicePendingAuthRequest}getRecentlyActiveText(e){const t=jI(e);return t?this.i18nService.t(t):""}getDeviceIcon(e){var t;const i="bwi-desktop",n=Yt.mz[e];return n&&null!==(t={webApp:"bwi-browser",desktop:"bwi-desktop",mobile:"bwi-mobile",cli:"bwi-cli",extension:"bwi-puzzle",sdk:"bwi-desktop"}[n.category])&&void 0!==t?t:i}handleAuthRequestAnswered(e){return zI(this,void 0,void 0,function*(){const t=tI.open(this.dialogService,{notificationId:e.id}),i=yield(0,u._)(t.closed);void 0!==i&&"boolean"==typeof i&&(this.devices=function(e,t,i=QI){return e.map(e=>{var i;return(null===(i=e.pendingAuthRequest)||void 0===i?void 0:i.id)===t.id&&(e.pendingAuthRequest=null,e.loginStatus=""),e}).sort(i)}(this.devices,e,this.showRecentlyActive?kI:QI),yield this.pendingAuthRequestStateService.clear(yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6))))})}}ZI.ɵfac=function(e){return new(e||ZI)(w.rXU(N.D),w.rXU(g.d8),w.rXU(O.w),w.rXU(B.abz),w.rXU(kh),w.rXU(ai),w.rXU(T.o),w.rXU(he.W),w.rXU(ca.qk),w.rXU(an),w.rXU(oa.B))},ZI.ɵcmp=w.VBU({type:ZI,selectors:[["auth-device-management"]],viewQuery:function(e,t){1&e&&w.wEZ(t.tableComponent,NI,5),2&e&&w.NyB()},decls:3,vars:2,consts:[["infoPopover",""],["class","tw-mt-6 tw-mb-2 tw-pb-2.5",4,"ngIf"],[1,"tw-flex","tw-justify-center","tw-items-center","tw-p-4"],[1,"tw-mt-6","tw-mb-2","tw-pb-2.5"],[1,"tw-flex","tw-items-center","tw-gap-2","tw-mb-5"],[1,"tw-m-0"],["type","button","position","right-start",1,"tw-border-none","tw-bg-transparent","tw-text-primary-600","tw-flex","tw-items-center","tw-size-4",3,"bitPopoverTriggerFor"],["name","bwi-question-circle"],[3,"title"],[1,"tw-mb-0"],["name","bwi-spinner",1,"bwi-spin","tw-text-2xl",3,"ariaLabel"],["ngClass","tw-hidden md:tw-block",3,"onAuthRequestAnswered","devices","showRecentlyActive"],["ngClass","md:tw-hidden",3,"onAuthRequestAnswered","devices","showRecentlyActive"]],template:function(e,t){1&e&&(w.DNE(0,LI,16,13,"div",1),w.nVh(1,WI,3,3,"div",2)(2,KI,2,4)),2&e&&(w.Y8G("ngIf",t.showHeaderInfo),w.R7$(),w.vxM(t.initializing?1:2))},dependencies:[Ah.t,L.MD,L.YU,L.bT,wI,NI,le.o,ve.R,HC.k,YI.r,XI.k,ce.$Z],encapsulation:2});class HI{}HI.ɵfac=function(e){return new(e||HI)},HI.ɵcmp=w.VBU({type:HI,selectors:[["ng-component"]],decls:5,vars:3,consts:[[1,"tw-mt-6","tw-mb-2","tw-pb-2.5"],[1,"tw-max-w-lg"]],template:function(e,t){1&e&&(w.j41(0,"h2",0),w.EFF(1),w.nI1(2,"i18n"),w.k0s(),w.j41(3,"div",1),w.nrm(4,"bit-session-timeout-settings"),w.k0s()),2&e&&(w.R7$(),w.JRh(w.bMT(2,1,"sessionTimeoutHeader")))},dependencies:[mg,Nh.p,Hh.$],encapsulation:2,changeDetection:0});var JI,qI=i(43600),$I=i(7855),_I=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function ew(e,t){if(1&e){const e=w.RV6();w.qex(0)(1,10),w.j41(2,"app-user-verification",11),w.mxI("invalidSecretChange",function(t){B.eBV(e);const i=w.XpG();return w.DH7(i.invalidSecret,t)||(i.invalidSecret=t),B.Njj(t)}),w.k0s(),w.bVm()()}if(2&e){const e=w.XpG();w.R7$(2),w.R50("invalidSecret",e.invalidSecret)}}function tw(e,t){if(1&e&&(w.j41(0,"div",12)(1,"div",13),w.nrm(2,"bit-svg",14),w.k0s(),w.j41(3,"h3",15),w.EFF(4),w.nI1(5,"i18n"),w.k0s(),w.j41(6,"p",16),w.EFF(7),w.nI1(8,"i18n"),w.k0s()()),2&e){const e=w.XpG();w.R7$(2),w.Y8G("content",e.Icons.TwoFactorAuthSecurityKeyIcon),w.R7$(2),w.JRh(w.bMT(5,3,"creatingPasskeyLoading")),w.R7$(3),w.JRh(w.bMT(8,5,"creatingPasskeyLoadingInfo"))}}function iw(e,t){if(1&e&&(w.j41(0,"div",12)(1,"div",13),w.nrm(2,"bit-svg",14),w.k0s(),w.j41(3,"h3",15),w.EFF(4),w.nI1(5,"i18n"),w.k0s(),w.j41(6,"p",16),w.EFF(7),w.nI1(8,"i18n"),w.k0s()()),2&e){const e=w.XpG();w.R7$(2),w.Y8G("content",e.Icons.TwoFactorAuthSecurityKeyFailedIcon),w.R7$(2),w.JRh(w.bMT(5,3,"errorCreatingPasskey")),w.R7$(3),w.JRh(w.bMT(8,5,"errorCreatingPasskeyInfo"))}}function nw(e,t){1&e&&(w.j41(0,"bit-form-control",21),w.nrm(1,"input",22),w.j41(2,"bit-label"),w.EFF(3),w.nI1(4,"i18n"),w.k0s(),w.j41(5,"bit-hint"),w.EFF(6),w.nI1(7,"i18n"),w.k0s()()),2&e&&(w.R7$(3),w.JRh(w.bMT(4,2,"useForVaultEncryption")),w.R7$(3),w.JRh(w.bMT(7,4,"useForVaultEncryptionInfo")))}function rw(e,t){if(1&e&&(w.j41(0,"div",17)(1,"h3",15),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"p",16),w.EFF(5),w.nI1(6,"i18n"),w.k0s(),w.j41(7,"bit-form-field",18)(8,"bit-label"),w.EFF(9),w.nI1(10,"i18n"),w.k0s(),w.nrm(11,"input",19),w.j41(12,"bit-hint"),w.EFF(13),w.nI1(14,"i18n"),w.k0s()(),w.DNE(15,nw,8,6,"bit-form-control",20),w.k0s()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,5,"passkeySuccessfullyCreated")),w.R7$(3),w.SpI(" ",w.bMT(6,7,"customPasskeyNameInfo")," "),w.R7$(4),w.JRh(w.bMT(10,9,"name")),w.R7$(4),w.JRh(w.brH(14,11,"charactersCurrentAndMaximum",e.formGroup.value.credentialNaming.name.length,e.NameMaxCharacters)),w.R7$(2),w.Y8G("ngIf",null==e.pendingCredential?null:e.pendingCredential.supportsPrf)}}function sw(e,t){1&e&&(w.qex(0),w.EFF(1),w.nI1(2,"i18n"),w.bVm()),2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,1,"continue")," "))}function ow(e,t){1&e&&(w.qex(0),w.EFF(1),w.nI1(2,"i18n"),w.bVm()),2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,1,"continue")," "))}function aw(e,t){1&e&&(w.qex(0),w.EFF(1),w.nI1(2,"i18n"),w.bVm()),2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,1,"tryAgain")," "))}function lw(e,t){if(1&e&&(w.qex(0),w.EFF(1),w.nI1(2,"async"),w.nI1(3,"i18n"),w.bVm()),2&e){const e=w.XpG();w.R7$(),w.SpI(" ",w.bMT(3,3,w.bMT(2,1,e.hasPasskeys$)?"save":"enable")," ")}}!function(e){e[e.Success=0]="Success"}(JI||(JI={}));class cw{constructor(e,t,i,n,r,s,o){this.formBuilder=e,this.dialogRef=t,this.webauthnService=i,this.i18nService=n,this.logService=r,this.toastService=s,this.accountService=o,this.NameMaxCharacters=50,this.CreateCredentialDialogResult=JI,this.Icons={TwoFactorAuthSecurityKeyIcon:Rm.s,TwoFactorAuthSecurityKeyFailedIcon:Fm.f},this.currentStep="userVerification",this.invalidSecret=!1,this.formGroup=this.formBuilder.group({userVerification:this.formBuilder.group({secret:[null,a.k0.required]}),credentialNaming:this.formBuilder.group({name:["",a.k0.maxLength(50)],useForEncryption:[!0]})}),this.loading$=this.webauthnService.loading$,this.submit=()=>_I(this,void 0,void 0,function*(){this.dialogRef.disableClose=!0;try{switch(this.currentStep){case"userVerification":return yield this.submitUserVerification();case"credentialCreationFailed":return yield this.submitCredentialCreationFailed();case"credentialCreation":return yield this.submitCredentialCreation();case"credentialNaming":return yield this.submitCredentialNaming()}}finally{this.dialogRef.disableClose=!1}})}ngOnInit(){this.hasPasskeys$=this.webauthnService.getCredentials$().pipe((0,p.T)(e=>e.length>0))}submitUserVerification(){return _I(this,void 0,void 0,function*(){var e;if(this.formGroup.controls.userVerification.markAllAsTouched(),!this.formGroup.controls.userVerification.invalid){try{this.credentialOptions=yield this.webauthnService.getCredentialAttestationOptions(this.formGroup.value.userVerification.secret)}catch(t){return void(t instanceof Xt._&&400===t.statusCode?this.invalidSecret=!0:(null===(e=this.logService)||void 0===e||e.error(t),this.toastService.showToast({variant:"error",title:this.i18nService.t("unexpectedError"),message:t.message})))}this.currentStep="credentialCreation",yield this.submitCredentialCreation()}})}submitCredentialCreation(){return _I(this,void 0,void 0,function*(){this.pendingCredential=yield this.webauthnService.createCredential(this.credentialOptions),void 0!==this.pendingCredential?this.currentStep="credentialNaming":this.currentStep="credentialCreationFailed"})}submitCredentialCreationFailed(){return _I(this,void 0,void 0,function*(){this.currentStep="credentialCreation",yield this.submitCredentialCreation()})}submitCredentialNaming(){return _I(this,void 0,void 0,function*(){var e;if(this.formGroup.controls.credentialNaming.markAllAsTouched(),this.formGroup.controls.credentialNaming.controls.name.invalid)return;const t=yield(0,u._)((0,f.F6)(this.accountService.activeAccount$));let i;if(this.pendingCredential.supportsPrf&&this.formGroup.value.credentialNaming.useForEncryption&&(i=yield this.webauthnService.createKeySet(this.pendingCredential,t),void 0===i))return void(null===(e=this.formGroup.controls.credentialNaming.controls.useForEncryption)||void 0===e||e.setErrors({error:{message:this.i18nService.t("useForVaultEncryptionErrorReadingPasskey")}}));const n=this.formGroup.value.credentialNaming.name;yield this.webauthnService.saveCredential(this.formGroup.value.credentialNaming.name,this.pendingCredential,i),(yield(0,u._)(this.hasPasskeys$))?this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("passkeySaved",n)}):this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("loginWithPasskeyEnabled")}),yield this.dialogRef.close(JI.Success)})}}cw.ɵfac=function(e){return new(e||cw)(w.rXU(a.ok),w.rXU(mh.ce),w.rXU(lv),w.rXU(he.W),w.rXU(se.K),w.rXU(F.f),w.rXU(N.D))},cw.ɵcmp=w.VBU({type:cw,selectors:[["ng-component"]],standalone:!1,decls:22,vars:22,consts:[["bit-dialog","","dialogSize","large",3,"formGroup","bitSubmit","loading"],["bitDialogTitle",""],[1,"tw-text-sm","tw-normal-case","tw-text-muted"],["bitDialogContent",""],[4,"ngIf"],["class","tw-flex tw-flex-col tw-items-center",4,"ngIf"],["formGroupName","credentialNaming",4,"ngIf"],["bitDialogFooter",""],["type","submit","bitButton","","bitFormButton","","buttonType","primary"],["type","button","bitButton","","bitFormButton","","buttonType","secondary","bitDialogClose",""],["formGroupName","userVerification"],["formControlName","secret",3,"invalidSecretChange","invalidSecret"],[1,"tw-flex","tw-flex-col","tw-items-center"],[1,"tw-size-24","tw-content-center","tw-mb-6"],[3,"content"],["bitTypography","h3"],["bitTypography","body1"],["formGroupName","credentialNaming"],[1,"!tw-mb-0"],["type","text","bitInput","","formControlName","name","appAutofocus",""],["class","!tw-mb-0 tw-mt-6",4,"ngIf"],[1,"!tw-mb-0","tw-mt-6"],["type","checkbox","bitCheckbox","","formControlName","useForEncryption"]],template:function(e,t){1&e&&(w.j41(0,"form",0),w.nI1(1,"async"),w.j41(2,"span",1),w.EFF(3),w.nI1(4,"i18n"),w.j41(5,"span",2),w.EFF(6),w.nI1(7,"i18n"),w.k0s()(),w.qex(8,3),w.DNE(9,ew,3,1,"ng-container",4)(10,tw,9,7,"div",5)(11,iw,9,7,"div",5)(12,rw,16,15,"div",6),w.bVm(),w.qex(13,7),w.j41(14,"button",8),w.DNE(15,sw,3,3,"ng-container",4)(16,ow,3,3,"ng-container",4)(17,aw,3,3,"ng-container",4)(18,lw,4,5,"ng-container",4),w.k0s(),w.j41(19,"button",9),w.EFF(20),w.nI1(21,"i18n"),w.k0s(),w.bVm(),w.k0s()),2&e&&(w.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit)("loading",w.bMT(1,14,t.loading$)),w.R7$(3),w.SpI("",w.bMT(4,16,"logInWithPasskey")," "),w.R7$(3),w.JRh(w.bMT(7,18,"newPasskey")),w.R7$(3),w.Y8G("ngIf","userVerification"===t.currentStep),w.R7$(),w.Y8G("ngIf","credentialCreation"===t.currentStep),w.R7$(),w.Y8G("ngIf","credentialCreationFailed"===t.currentStep),w.R7$(),w.Y8G("ngIf","credentialNaming"===t.currentStep),w.R7$(3),w.Y8G("ngIf","userVerification"===t.currentStep),w.R7$(),w.Y8G("ngIf","credentialCreation"===t.currentStep),w.R7$(),w.Y8G("ngIf","credentialCreationFailed"===t.currentStep),w.R7$(),w.Y8G("ngIf","credentialNaming"===t.currentStep),w.R7$(2),w.SpI(" ",w.bMT(21,20,"cancel")," "))},dependencies:[L.bT,a.qT,a.me,a.Zm,a.BC,a.cb,a.j4,a.JD,a.$R,M.B,Ih.$,wh.L,fh.Q,Eb.P,yh.I,bh.m,Ch.hJ,Sb.f,Xh.j,zh.I,Lh.J,Wh.h,lf.k,Tp.r,$I.q,L.Jj,Hh.$],encapsulation:2});var dw=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function uw(e,t){if(1&e&&(w.j41(0,"span",8),w.EFF(1),w.k0s()),2&e){const e=w.XpG();w.R7$(),w.JRh(e.credential.name)}}function hw(e,t){1&e&&(w.qex(0),w.nrm(1,"bit-icon",9),w.nI1(2,"i18n"),w.bVm()),2&e&&(w.R7$(),w.Y8G("ariaLabel",w.bMT(2,1,"loading")))}function Aw(e,t){if(1&e){const e=w.RV6();w.qex(0),w.j41(1,"p",10),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"app-user-verification",11),w.mxI("invalidSecretChange",function(t){B.eBV(e);const i=w.XpG();return w.DH7(i.invalidSecret,t)||(i.invalidSecret=t),B.Njj(t)}),w.k0s(),w.bVm()}if(2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,2,"removePasskeyInfo")),w.R7$(2),w.R50("invalidSecret",e.invalidSecret)}}class pw{constructor(e,t,i,n,r,s,o,a){this.params=e,this.formBuilder=t,this.dialogRef=i,this.webauthnService=n,this.platformUtilsService=r,this.i18nService=s,this.logService=o,this.toastService=a,this.destroy$=new d.B,this.invalidSecret=!1,this.formGroup=this.formBuilder.group({secret:null}),this.loading$=this.webauthnService.loading$,this.submit=()=>dw(this,void 0,void 0,function*(){var e;if(void 0!==this.credential){this.dialogRef.disableClose=!0;try{yield this.webauthnService.deleteCredential(this.credential.id,this.formGroup.value.secret),this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("passkeyRemoved")})}catch(t){return t instanceof Xt._&&400===t.statusCode?this.invalidSecret=!0:(null===(e=this.logService)||void 0===e||e.error(t),this.toastService.showToast({variant:"error",title:this.i18nService.t("unexpectedError"),message:t.message})),!1}finally{this.dialogRef.disableClose=!1}yield this.dialogRef.close()}})}ngOnInit(){this.webauthnService.getCredential$(this.params.credentialId).pipe((0,en.Q)(this.destroy$)).subscribe(e=>this.credential=e)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}pw.ɵfac=function(e){return new(e||pw)(w.rXU(Ep.Qs),w.rXU(a.ok),w.rXU(mh.ce),w.rXU(lv),w.rXU(G.y),w.rXU(he.W),w.rXU(se.K),w.rXU(F.f))},pw.ɵcmp=w.VBU({type:pw,selectors:[["ng-component"]],standalone:!1,decls:16,vars:17,consts:[["bit-dialog","","dialogSize","large",3,"formGroup","bitSubmit","loading"],["bitDialogTitle",""],["class","tw-text-sm tw-normal-case tw-text-muted",4,"ngIf"],["bitDialogContent",""],[4,"ngIf"],["bitDialogFooter",""],["type","submit","bitButton","","bitFormButton","","buttonType","danger"],["type","button","bitButton","","bitFormButton","","buttonType","secondary","bitDialogClose",""],[1,"tw-text-sm","tw-normal-case","tw-text-muted"],["name","bwi-spinner",1,"bwi-spin","tw-ml-1",3,"ariaLabel"],["bitTypography","body1"],["formControlName","secret",3,"invalidSecretChange","invalidSecret"]],template:function(e,t){1&e&&(w.j41(0,"form",0),w.nI1(1,"async"),w.j41(2,"span",1),w.EFF(3),w.nI1(4,"i18n"),w.DNE(5,uw,2,1,"span",2),w.k0s(),w.qex(6,3),w.DNE(7,hw,3,3,"ng-container",4)(8,Aw,5,4,"ng-container",4),w.bVm(),w.qex(9,5),w.j41(10,"button",6),w.EFF(11),w.nI1(12,"i18n"),w.k0s(),w.j41(13,"button",7),w.EFF(14),w.nI1(15,"i18n"),w.k0s(),w.bVm(),w.k0s()),2&e&&(w.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit)("loading",w.bMT(1,9,t.loading$)),w.R7$(3),w.SpI("",w.bMT(4,11,"removePasskey")," "),w.R7$(2),w.Y8G("ngIf",t.credential),w.R7$(2),w.Y8G("ngIf",!t.credential),w.R7$(),w.Y8G("ngIf",t.credential),w.R7$(3),w.SpI(" ",w.bMT(12,13,"remove")," "),w.R7$(3),w.SpI(" ",w.bMT(15,15,"cancel")," "))},dependencies:[L.bT,a.qT,a.BC,a.cb,a.j4,a.JD,Ih.$,wh.L,fh.Q,yh.I,bh.m,Ch.hJ,ve.R,Tp.r,$I.q,L.Jj,Hh.$],encapsulation:2});var gw=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function vw(e,t){if(1&e&&(w.j41(0,"span",8),w.EFF(1),w.k0s()),2&e){const e=w.XpG();w.R7$(),w.JRh(e.credential.name)}}function mw(e,t){1&e&&(w.qex(0),w.nrm(1,"bit-icon",9),w.nI1(2,"i18n"),w.bVm()),2&e&&(w.R7$(),w.Y8G("ariaLabel",w.bMT(2,1,"loading")))}function fw(e,t){if(1&e){const e=w.RV6();w.qex(0),w.j41(1,"p",10),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.qex(4,11),w.j41(5,"app-user-verification",12),w.mxI("invalidSecretChange",function(t){B.eBV(e);const i=w.XpG();return w.DH7(i.invalidSecret,t)||(i.invalidSecret=t),B.Njj(t)}),w.k0s(),w.bVm()()}if(2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,2,"useForVaultEncryptionInfo")),w.R7$(3),w.R50("invalidSecret",e.invalidSecret)}}class yw{constructor(e,t,i,n,r,s){this.params=e,this.formBuilder=t,this.dialogRef=i,this.webauthnService=n,this.webauthnLoginService=r,this.accountService=s,this.destroy$=new d.B,this.invalidSecret=!1,this.formGroup=this.formBuilder.group({userVerification:this.formBuilder.group({secret:[null,a.k0.required]})}),this.loading$=this.webauthnService.loading$,this.submit=()=>gw(this,void 0,void 0,function*(){if(void 0===this.credential)return;const e=yield(0,u._)((0,f.F6)(this.accountService.activeAccount$));this.dialogRef.disableClose=!0;try{this.credentialOptions=yield this.webauthnService.getCredentialAssertOptions(this.formGroup.value.userVerification.secret),yield this.webauthnService.enableCredentialEncryption(yield this.webauthnLoginService.assertCredential(this.credentialOptions),e)}catch(t){throw t instanceof Xt._&&400===t.statusCode&&(this.invalidSecret=!0),t}yield this.dialogRef.close()})}ngOnInit(){this.webauthnService.getCredential$(this.params.credentialId).pipe((0,en.Q)(this.destroy$)).subscribe(e=>this.credential=e)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}yw.ɵfac=function(e){return new(e||yw)(w.rXU(Ep.Qs),w.rXU(a.ok),w.rXU(mh.ce),w.rXU(lv),w.rXU(vi),w.rXU(N.D))},yw.ɵcmp=w.VBU({type:yw,selectors:[["ng-component"]],standalone:!1,decls:16,vars:17,consts:[["bit-dialog","","dialogSize","large",3,"formGroup","bitSubmit","loading"],["bitDialogTitle",""],["class","tw-text-sm tw-normal-case tw-text-muted",4,"ngIf"],["bitDialogContent",""],[4,"ngIf"],["bitDialogFooter",""],["type","submit","bitButton","","bitFormButton","","buttonType","primary"],["type","button","bitButton","","bitFormButton","","buttonType","secondary","bitDialogClose",""],[1,"tw-text-sm","tw-normal-case","tw-text-muted"],["name","bwi-spinner",1,"bwi-spin","tw-ml-1",3,"ariaLabel"],["bitTypography","body1"],["formGroupName","userVerification"],["formControlName","secret",3,"invalidSecretChange","invalidSecret"]],template:function(e,t){1&e&&(w.j41(0,"form",0),w.nI1(1,"async"),w.j41(2,"span",1),w.EFF(3),w.nI1(4,"i18n"),w.DNE(5,vw,2,1,"span",2),w.k0s(),w.qex(6,3),w.DNE(7,mw,3,3,"ng-container",4)(8,fw,6,4,"ng-container",4),w.bVm(),w.qex(9,5),w.j41(10,"button",6),w.EFF(11),w.nI1(12,"i18n"),w.k0s(),w.j41(13,"button",7),w.EFF(14),w.nI1(15,"i18n"),w.k0s(),w.bVm(),w.k0s()),2&e&&(w.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit)("loading",w.bMT(1,9,t.loading$)),w.R7$(3),w.SpI("",w.bMT(4,11,"enablePasskeyEncryption")," "),w.R7$(2),w.Y8G("ngIf",t.credential),w.R7$(2),w.Y8G("ngIf",!t.credential),w.R7$(),w.Y8G("ngIf",t.credential),w.R7$(3),w.SpI(" ",w.bMT(12,13,"submit")," "),w.R7$(3),w.SpI(" ",w.bMT(15,15,"cancel")," "))},dependencies:[L.bT,a.qT,a.BC,a.cb,a.j4,a.JD,a.$R,Ih.$,wh.L,fh.Q,yh.I,bh.m,Ch.hJ,ve.R,Tp.r,$I.q,L.Jj,Hh.$],encapsulation:2});function bw(e,t){1&e&&(w.j41(0,"span",8),w.EFF(1),w.nI1(2,"i18n"),w.nI1(3,"i18n"),w.k0s()),2&e&&(w.R7$(),w.Lme(" ",w.bMT(2,2,"off")," - ",w.bMT(3,4,"ssoLoginIsRequired")," "))}function Cw(e,t){1&e&&(w.j41(0,"span",11),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,1,"on")," "))}function Iw(e,t){1&e&&(w.j41(0,"span",12),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,1,"off")," "))}function ww(e,t){if(1&e&&(w.qex(0),w.DNE(1,Cw,3,3,"span",9)(2,Iw,3,3,"span",10),w.bVm()),2&e){const e=w.XpG(2);w.R7$(),w.Y8G("ngIf",e.hasCredentials),w.R7$(),w.Y8G("ngIf",!e.hasCredentials)}}function Bw(e,t){if(1&e&&(w.qex(0),w.DNE(1,bw,4,6,"span",7)(2,ww,3,2,"ng-container",2),w.bVm()),2&e){const e=w.XpG();w.R7$(),w.Y8G("ngIf",e.requireSsoPolicyEnabled),w.R7$(),w.Y8G("ngIf",!e.requireSsoPolicyEnabled)}}function Ew(e,t){1&e&&(w.qex(0),w.nrm(1,"bit-icon",13),w.nI1(2,"i18n"),w.bVm()),2&e&&(w.R7$(),w.Y8G("ariaLabel",w.bMT(2,1,"loading")))}function Sw(e,t){1&e&&(w.qex(0),w.nrm(1,"bit-icon",21),w.j41(2,"span",22),w.EFF(3),w.nI1(4,"i18n"),w.k0s(),w.bVm()),2&e&&(w.R7$(3),w.JRh(w.bMT(4,1,"usedForEncryption")))}function Qw(e,t){if(1&e){const e=w.RV6();w.qex(0),w.j41(1,"button",20),w.nI1(2,"i18n"),w.bIt("click",function(){B.eBV(e);const t=w.XpG().$implicit,i=w.XpG(2);return B.Njj(i.enableEncryption(t.id))}),w.nrm(3,"bit-icon",21),w.EFF(4),w.nI1(5,"i18n"),w.k0s(),w.bVm()}if(2&e){const e=w.XpG().$implicit,t=w.XpG(2);w.R7$(),w.Y8G("disabled",t.loading),w.BMQ("aria-label",w.bMT(2,3,"enablePasskeyEncryption")+" "+e.name),w.R7$(3),w.SpI(" ",w.bMT(5,5,"enablePasskeyEncryption")," ")}}function kw(e,t){1&e&&(w.j41(0,"span",22),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,1,"encryptionNotSupported")," "))}function Rw(e,t){if(1&e){const e=w.RV6();w.j41(0,"tr")(1,"td",16),w.EFF(2),w.k0s(),w.j41(3,"td",17),w.DNE(4,Sw,5,3,"ng-container",2)(5,Qw,6,7,"ng-container",2)(6,kw,3,3,"span",18),w.k0s(),w.j41(7,"td",19)(8,"button",20),w.nI1(9,"i18n"),w.bIt("click",function(){const t=B.eBV(e).$implicit,i=w.XpG(2);return B.Njj(i.deleteCredential(t.id))}),w.EFF(10),w.nI1(11,"i18n"),w.k0s()()()}if(2&e){const e=t.$implicit,i=w.XpG(2);w.R7$(2),w.JRh(e.name),w.R7$(2),w.Y8G("ngIf",e.prfStatus===i.WebauthnLoginCredentialPrfStatus.Enabled),w.R7$(),w.Y8G("ngIf",e.prfStatus===i.WebauthnLoginCredentialPrfStatus.Supported),w.R7$(),w.Y8G("ngIf",e.prfStatus===i.WebauthnLoginCredentialPrfStatus.Unsupported),w.R7$(2),w.Y8G("disabled",i.loading),w.BMQ("aria-label",w.bMT(9,7,"remove")+" "+e.name),w.R7$(2),w.SpI(" ",w.bMT(11,9,"remove")," ")}}function Fw(e,t){if(1&e&&(w.j41(0,"table",14),w.DNE(1,Rw,12,11,"tr",15),w.k0s()),2&e){const e=w.XpG();w.R7$(),w.Y8G("ngForOf",e.credentials)}}function Tw(e,t){1&e&&(w.j41(0,"p",23),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.JRh(w.bMT(2,1,"passkeyLimitReachedInfo")))}function Dw(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",25),w.bIt("click",function(){B.eBV(e);const t=w.XpG(2);return B.Njj(t.createCredential())}),w.EFF(1),w.nI1(2,"i18n"),w.k0s()}if(2&e){const e=w.XpG(2);w.Y8G("disabled",e.loading),w.R7$(),w.SpI(" ",w.bMT(2,2,"newPasskey")," ")}}function Pw(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",25),w.nI1(1,"i18n"),w.nI1(2,"i18n"),w.bIt("click",function(){B.eBV(e);const t=w.XpG(2);return B.Njj(t.createCredential())}),w.EFF(3),w.nI1(4,"i18n"),w.k0s()}if(2&e){const e=w.XpG(2);w.Y8G("disabled",e.loading),w.BMQ("aria-label",w.bMT(1,3,"enable")+" "+w.bMT(2,5,"logInWithPasskey")),w.R7$(3),w.SpI(" ",w.bMT(4,7,"enable")," ")}}function Mw(e,t){if(1&e&&(w.qex(0),w.DNE(1,Dw,3,4,"button",24)(2,Pw,5,9,"button",24),w.bVm()),2&e){const e=w.XpG();w.R7$(),w.Y8G("ngIf",e.hasCredentials),w.R7$(),w.Y8G("ngIf",!e.hasCredentials)}}class xw{constructor(e,t,i,n){this.webauthnService=e,this.dialogService=t,this.policyService=i,this.accountService=n,this.destroy$=new d.B,this.MaxCredentialCount=lv.MaxCredentialCount,this.WebauthnLoginCredentialPrfStatus=tv,this.loading=!0,this.requireSsoPolicyEnabled=!1}ngOnInit(){this.accountService.activeAccount$.pipe(f.F6,(0,jt.n)(e=>this.policyService.policyAppliesToUser$(_e.tt.RequireSso,e)),(0,en.Q)(this.destroy$)).subscribe(e=>{this.requireSsoPolicyEnabled=e}),this.webauthnService.getCredentials$().pipe((0,en.Q)(this.destroy$)).subscribe(e=>this.credentials=e),this.webauthnService.loading$.pipe((0,en.Q)(this.destroy$)).subscribe(e=>this.loading=e)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}get ariaBusy(){return this.loading?"true":"false"}get hasCredentials(){var e,t;return(null!==(t=null===(e=this.credentials)||void 0===e?void 0:e.length)&&void 0!==t?t:0)>0}get hasData(){return void 0!==this.credentials}get limitReached(){var e,t;return(null!==(t=null===(e=this.credentials)||void 0===e?void 0:e.length)&&void 0!==t?t:0)>=this.MaxCredentialCount}createCredential(){var e,t;e=this.dialogService,t={},e.open(cw,t)}deleteCredential(e){var t,i;t=this.dialogService,i={data:{credentialId:e}},t.open(pw,i)}enableEncryption(e){var t,i;t=this.dialogService,i={data:{credentialId:e}},t.open(yw,i)}}xw.ɵfac=function(e){return new(e||xw)(w.rXU(lv),w.rXU(T.o),w.rXU(Je.m),w.rXU(N.D))},xw.ɵcmp=w.VBU({type:xw,selectors:[["app-webauthn-login-settings"]],hostAttrs:["aria-live","polite"],hostVars:1,hostBindings:function(e,t){2&e&&w.BMQ("aria-busy",t.ariaBusy)},standalone:!1,decls:15,vars:14,consts:[["bitTypography","h2"],[1,"tw-inline-flex","tw-gap-1","tw-align-middle"],[4,"ngIf"],["bitTypography","body1"],["bitLink","","href","https://bitwarden.com/help/login-with-passkeys"],["class","tw-mb-5",4,"ngIf"],["bitTypography","body2",4,"ngIf"],["bitBadge","","variant","secondary","class","tw-max-w-full !tw-align-middle",4,"ngIf"],["bitBadge","","variant","secondary",1,"tw-max-w-full","!tw-align-middle"],["bitBadge","","variant","success","class","!tw-align-middle",4,"ngIf"],["bitBadge","","variant","secondary","class","!tw-align-middle",4,"ngIf"],["bitBadge","","variant","success",1,"!tw-align-middle"],["bitBadge","","variant","secondary",1,"!tw-align-middle"],["name","bwi-spinner",1,"bwi-spin","tw-ml-1",3,"ariaLabel"],[1,"tw-mb-5"],[4,"ngFor","ngForOf"],[1,"tw-p-2","tw-pl-0","tw-font-medium"],[1,"tw-p-2","tw-pr-10","tw-text-left"],["bitTypography","body1","class","tw-text-muted",4,"ngIf"],[1,"tw-py-2"],["type","button","bitLink","",3,"click","disabled"],["name","bwi-lock-encrypted"],["bitTypography","body1",1,"tw-text-muted"],["bitTypography","body2"],["type","button","bitButton","",3,"disabled","click",4,"ngIf"],["type","button","bitButton","",3,"click","disabled"]],template:function(e,t){1&e&&(w.j41(0,"h2",0),w.EFF(1),w.nI1(2,"i18n"),w.j41(3,"span",1),w.DNE(4,Bw,3,2,"ng-container",2),w.k0s(),w.DNE(5,Ew,3,3,"ng-container",2),w.k0s(),w.j41(6,"p",3),w.EFF(7),w.nI1(8,"i18n"),w.j41(9,"a",4),w.EFF(10),w.nI1(11,"i18n"),w.k0s()(),w.DNE(12,Fw,2,1,"table",5)(13,Tw,3,3,"p",6)(14,Mw,3,2,"ng-container",2)),2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,8,"logInWithPasskey")," "),w.R7$(3),w.Y8G("ngIf",t.hasData),w.R7$(),w.Y8G("ngIf",t.loading),w.R7$(2),w.SpI(" ",w.bMT(8,10,"loginWithPasskeyInfo")," "),w.R7$(3),w.JRh(w.bMT(11,12,"learnMoreAboutPasswordless")),w.R7$(2),w.Y8G("ngIf",t.hasCredentials),w.R7$(),w.Y8G("ngIf",t.limitReached),w.R7$(),w.Y8G("ngIf",t.hasData&&!t.limitReached&&!t.requireSsoPolicyEnabled))},dependencies:[L.Sq,L.bT,Wb.n,fh.Q,ve.R,jh.g,Tp.r,Hh.$],encapsulation:2});var Vw=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class Gw{constructor(e,t,i){this.router=e,this.userDecryptionOptionsService=t,this.accountService=i,this.inputPasswordFlow=ne.m5.ChangePasswordWithOptionalUserKeyRotation,this.changePasswordFeatureFlag=!1}ngOnInit(){return Vw(this,void 0,void 0,function*(){const e=yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6));(yield(0,u._)(this.userDecryptionOptionsService.hasMasterPasswordById$(e)))||(yield this.router.navigate(["/settings/security/two-factor"]))})}}Gw.ɵfac=function(e){return new(e||Gw)(w.rXU(R.Ix),w.rXU(g.Ym),w.rXU(N.D))},Gw.ɵcmp=w.VBU({type:Gw,selectors:[["app-password-settings"]],decls:6,vars:4,consts:[[1,"tw-mt-6","tw-mb-2","tw-pb-2.5"],[1,"tw-max-w-lg","tw-mb-12"],[3,"inputPasswordFlow"]],template:function(e,t){1&e&&(w.j41(0,"h1",0),w.EFF(1),w.nI1(2,"i18n"),w.k0s(),w.j41(3,"div",1),w.nrm(4,"auth-change-password",2),w.k0s(),w.nrm(5,"app-webauthn-login-settings")),2&e&&(w.R7$(),w.JRh(w.bMT(2,2,"changeMasterPassword")),w.R7$(3),w.Y8G("inputPasswordFlow",t.inputPasswordFlow))},dependencies:[gh.j,Ie,Mv,xw,ce.$Z],encapsulation:2});class Uw{}Uw.ɵfac=function(e){return new(e||Uw)},Uw.ɵmod=w.$C({type:Uw}),Uw.ɵinj=B.G2t({imports:[L.MD,Tv.G,HC.k]});class Ow{constructor(){this.dialogService=(0,B.WQX)(T.o)}openKeyRotationDialog(){Sg.open(this.dialogService)}}Ow.ɵfac=function(e){return new(e||Ow)},Ow.ɵcmp=w.VBU({type:Ow,selectors:[["app-user-key-rotation"]],decls:10,vars:9,consts:[["bitTypography","h2"],["bitTypography","body1"],[1,"tw-flex","tw-gap-2"],["type","button","bitButton","","buttonType","primary",3,"click"]],template:function(e,t){1&e&&(w.j41(0,"h2",0),w.EFF(1),w.nI1(2,"i18n"),w.k0s(),w.j41(3,"p",1),w.EFF(4),w.nI1(5,"i18n"),w.k0s(),w.j41(6,"div",2)(7,"button",3),w.bIt("click",function(){return t.openKeyRotationDialog()}),w.EFF(8),w.nI1(9,"i18n"),w.k0s()()),2&e&&(w.R7$(),w.JRh(w.bMT(2,3,"rotateAccountEncryptionKey")),w.R7$(3),w.SpI(" ",w.bMT(5,5,"rotateAccountEncryptionKeyDescription"),"\n"),w.R7$(4),w.SpI(" ",w.bMT(9,7,"rotateKey")," "))},dependencies:[Ah.t,fh.Q,ce.$Z],encapsulation:2,changeDetection:0});var Nw=i(50342),jw=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function Yw(e,t){1&e&&(w.j41(0,"bit-callout",3),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.JRh(w.bMT(2,1,"kdfSettingsChangeLogoutWarning")))}class Xw{constructor(e,t,i,n,r,s,o,l){this.i18nService=e,this.messagingService=t,this.accountService=n,this.toastService=r,this.changeKdfService=s,this.dialogRef=o,this.form=new a.gE({masterPassword:new a.MJ(null,a.k0.required)}),this.showPassword=!1,this.loading=!1,this.submit=()=>jw(this,void 0,void 0,function*(){this.form.invalid||(this.loading=!0,yield this.makeKeyAndSave(),(yield(0,u._)(this.noLogoutOnKdfChangeFeatureFlag$))?(this.toastService.showToast({variant:"success",message:this.i18nService.t("encKeySettingsChanged")}),yield this.dialogRef.close()):(this.toastService.showToast({variant:"success",title:this.i18nService.t("encKeySettingsChanged"),message:this.i18nService.t("logBackIn")}),this.messagingService.send("logout")),this.loading=!1)}),this.kdfConfig=i.kdfConfig,this.noLogoutOnKdfChangeFeatureFlag$=l.getFeatureFlag$(Kr.TO.NoLogoutOnKdfChange)}makeKeyAndSave(){return jw(this,void 0,void 0,function*(){const e=yield(0,u._)((0,f.F6)(this.accountService.activeAccount$)),t=this.form.value.masterPassword;this.kdfConfig.validateKdfConfigForSetting(),yield this.changeKdfService.updateUserKdfParams(t,this.kdfConfig,e)})}}Xw.ɵfac=function(e){return new(e||Xw)(w.rXU(he.W),w.rXU(oe.U),w.rXU(Ep.Qs),w.rXU(N.D),w.rXU(F.f),w.rXU(zs),w.rXU(mh.ce),w.rXU(O.w))},Xw.ɵcmp=w.VBU({type:Xw,selectors:[["app-change-kdf-confirmation"]],standalone:!1,decls:24,vars:21,consts:[["autocomplete","off","bit-dialog","",3,"formGroup","bitSubmit"],["bitDialogTitle",""],["bitDialogContent",""],["type","warning"],["disableMargin",""],["bitInput","","type","password","formControlName","masterPassword","appAutofocus",""],["type","button","bitIconButton","","bitSuffix","","bitPasswordInputToggle","",3,"toggledChange","toggled"],["bitDialogFooter",""],["bitButton","","buttonType","primary","type","submit","bitFormButton",""],["bitButton","","buttonType","secondary","type","button","bitFormButton","","bitDialogClose",""]],template:function(e,t){1&e&&(w.j41(0,"form",0)(1,"span",1),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"span",2),w.nVh(5,Yw,3,3,"bit-callout",3),w.nI1(6,"async"),w.j41(7,"bit-form-field",4)(8,"bit-label"),w.EFF(9),w.nI1(10,"i18n"),w.k0s(),w.nrm(11,"input",5),w.j41(12,"button",6),w.mxI("toggledChange",function(e){return w.DH7(t.showPassword,e)||(t.showPassword=e),e}),w.k0s(),w.j41(13,"bit-hint"),w.EFF(14),w.nI1(15,"i18n"),w.k0s()()(),w.qex(16,7),w.j41(17,"button",8)(18,"span"),w.EFF(19),w.nI1(20,"i18n"),w.k0s()(),w.j41(21,"button",9),w.EFF(22),w.nI1(23,"i18n"),w.k0s(),w.bVm(),w.k0s()),2&e&&(w.Y8G("formGroup",t.form)("bitSubmit",t.submit),w.R7$(2),w.SpI(" ",w.bMT(3,9,"updateYourEncryptionSettings")," "),w.R7$(3),w.vxM(w.bMT(6,11,t.noLogoutOnKdfChangeFeatureFlag$)?-1:5),w.R7$(4),w.JRh(w.bMT(10,13,"masterPass")),w.R7$(3),w.R50("toggled",t.showPassword),w.R7$(2),w.SpI(" ",w.bMT(15,15,"confirmIdentity")," "),w.R7$(5),w.JRh(w.bMT(20,17,"updateSettings")),w.R7$(3),w.SpI(" ",w.bMT(23,19,"cancel")," "))},dependencies:[a.qT,a.me,a.BC,a.cb,a.j4,a.JD,M.B,Ih.$,wh.L,fh.Q,ae.G,yh.I,bh.m,Ch.hJ,Xh.j,zh.I,Lh.J,Wh.h,Kh.e,Zh.a,Yh.s,L.Jj,Hh.$],encapsulation:2});var zw=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function Lw(e,t){1&e&&(w.j41(0,"bit-callout",2),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.JRh(w.bMT(2,1,"kdfSettingsChangeLogoutWarning")))}function Ww(e,t){if(1&e&&w.nrm(0,"bit-option",18),2&e){const e=t.$implicit;w.Y8G("value",e.value)("label",e.name)}}function Kw(e,t){if(1&e&&(w.j41(0,"bit-form-field",11)(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",19),w.j41(5,"bit-hint"),w.EFF(6),w.nI1(7,"i18n"),w.k0s()()),2&e){const e=w.XpG();w.R7$(2),w.SpI(" ",w.bMT(3,4,"kdfIterations")," "),w.R7$(2),w.Y8G("min",e.PBKDF2_ITERATIONS.min)("max",e.PBKDF2_ITERATIONS.max),w.R7$(2),w.JRh(w.bMT(7,6,"kdfIterationRecommends"))}}function Zw(e,t){if(1&e&&(w.j41(0,"bit-form-field",11)(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",20),w.k0s()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,3,"kdfMemory")),w.R7$(2),w.Y8G("min",e.ARGON2_MEMORY.min)("max",e.ARGON2_MEMORY.max)}}function Hw(e,t){if(1&e&&(w.j41(0,"div",7)(1,"bit-form-field",11)(2,"bit-label"),w.EFF(3),w.nI1(4,"i18n"),w.k0s(),w.nrm(5,"input",19),w.k0s()(),w.j41(6,"div",7)(7,"bit-form-field",11)(8,"bit-label"),w.EFF(9),w.nI1(10,"i18n"),w.k0s(),w.nrm(11,"input",21),w.k0s()()),2&e){const e=w.XpG();w.R7$(3),w.SpI(" ",w.bMT(4,6,"kdfIterations")," "),w.R7$(2),w.Y8G("min",e.ARGON2_ITERATIONS.min)("max",e.ARGON2_ITERATIONS.max),w.R7$(4),w.SpI(" ",w.bMT(10,8,"kdfParallelism")," "),w.R7$(2),w.Y8G("min",e.ARGON2_PARALLELISM.min)("max",e.ARGON2_PARALLELISM.max)}}class Jw{constructor(e,t,i,n,r){this.dialogService=e,this.kdfConfigService=t,this.accountService=i,this.formBuilder=n,this.kdfConfig=I.n1.createDefault(),this.kdfOptions=[],this.destroy$=new d.B,this.formGroup=this.formBuilder.group({kdf:new a.MJ(I.ao.PBKDF2_SHA256,[a.k0.required]),kdfConfig:this.formBuilder.group({iterations:new a.MJ(null),memory:new a.MJ(null),parallelism:new a.MJ(null)})}),this.PBKDF2_ITERATIONS=I.n1.ITERATIONS,this.ARGON2_ITERATIONS=I.hU.ITERATIONS,this.ARGON2_MEMORY=I.hU.MEMORY,this.ARGON2_PARALLELISM=I.hU.PARALLELISM,this.kdfOptions=[{name:"PBKDF2 SHA-256",value:I.ao.PBKDF2_SHA256},{name:"Argon2id",value:I.ao.Argon2id}],this.noLogoutOnKdfChangeFeatureFlag$=r.getFeatureFlag$(Kr.TO.NoLogoutOnKdfChange)}ngOnInit(){return zw(this,void 0,void 0,function*(){const e=yield(0,u._)((0,f.F6)(this.accountService.activeAccount$));this.kdfConfig=yield this.kdfConfigService.getKdfConfig(e),this.formGroup.controls.kdf.setValue(this.kdfConfig.kdfType),this.setFormControlValues(this.kdfConfig),this.setFormValidators(this.kdfConfig.kdfType),this.formGroup.controls.kdf.valueChanges.pipe((0,en.Q)(this.destroy$)).subscribe(e=>{this.updateKdfConfig(e)})})}updateKdfConfig(e){let t;switch(e){case I.ao.PBKDF2_SHA256:t=I.n1.createDefault();break;case I.ao.Argon2id:t=I.hU.createDefault();break;default:throw new Error("Unknown KDF type.")}this.kdfConfig=t,this.setFormValidators(e),this.setFormControlValues(this.kdfConfig)}setFormValidators(e){const t=this.formGroup.controls.kdfConfig;switch(e){case I.ao.PBKDF2_SHA256:t.controls.iterations.setValidators([a.k0.required,a.k0.min(I.n1.ITERATIONS.min),a.k0.max(I.n1.ITERATIONS.max)]),t.controls.memory.setValidators([]),t.controls.parallelism.setValidators([]);break;case I.ao.Argon2id:t.controls.iterations.setValidators([a.k0.required,a.k0.min(I.hU.ITERATIONS.min),a.k0.max(I.hU.ITERATIONS.max)]),t.controls.memory.setValidators([a.k0.required,a.k0.min(I.hU.MEMORY.min),a.k0.max(I.hU.MEMORY.max)]),t.controls.parallelism.setValidators([a.k0.required,a.k0.min(I.hU.PARALLELISM.min),a.k0.max(I.hU.PARALLELISM.max)]);break;default:throw new Error("Unknown KDF type.")}t.controls.iterations.updateValueAndValidity(),t.controls.memory.updateValueAndValidity(),t.controls.parallelism.updateValueAndValidity()}setFormControlValues(e){const t=this.formGroup.controls.kdfConfig;t.reset(),e.kdfType===I.ao.PBKDF2_SHA256?t.controls.iterations.setValue(e.iterations):e.kdfType===I.ao.Argon2id&&(t.controls.iterations.setValue(e.iterations),t.controls.memory.setValue(e.memory),t.controls.parallelism.setValue(e.parallelism))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}isPBKDF2(e){return e instanceof I.n1}isArgon2(e){return e instanceof I.hU}openConfirmationModal(){return zw(this,void 0,void 0,function*(){if(this.formGroup.markAllAsTouched(),this.formGroup.invalid)return;const e=this.formGroup.controls.kdfConfig;this.kdfConfig.kdfType===I.ao.PBKDF2_SHA256?this.kdfConfig=new I.n1(e.controls.iterations.value):this.kdfConfig.kdfType===I.ao.Argon2id&&(this.kdfConfig=new I.hU(e.controls.iterations.value,e.controls.memory.value,e.controls.parallelism.value)),this.dialogService.open(Xw,{data:{kdfConfig:this.kdfConfig}})})}}Jw.ɵfac=function(e){return new(e||Jw)(w.rXU(T.o),w.rXU(I.zZ),w.rXU(N.D),w.rXU(a.ok),w.rXU(O.w))},Jw.ɵcmp=w.VBU({type:Jw,selectors:[["app-change-kdf"]],standalone:!1,decls:44,vars:43,consts:[["algorithmPopover",""],["bitTypography","h2"],["type","warning"],["bitTypography","body1",1,"tw-mt-4"],["bitTypography","body1"],["autocomplete","off",3,"formGroup"],[1,"tw-grid","tw-grid-cols-12","tw-gap-x-4"],[1,"tw-col-span-6"],["type","button","bitLink","","startIcon","bwi-question-circle",1,"tw-border-none","tw-bg-transparent","tw-text-primary-600","tw-p-0",3,"bitPopoverTriggerFor","appA11yTitle"],["formControlName","kdf"],[3,"value","label",4,"ngFor","ngForOf"],["formGroupName","kdfConfig"],["type","button","buttonType","primary","bitButton","","bitFormButton","",1,"tw-mt-2",3,"click"],[3,"title"],[1,"tw-mt-2","tw-mb-0","tw-ps-4"],[1,"tw-mb-2"],[1,"tw-mt-4","tw-mb-1"],["href","https://bitwarden.com/help/kdf-algorithms/","bitLink","","target","_blank","rel","noreferrer","endIcon","bwi-external-link",3,"appA11yTitle"],[3,"value","label"],["bitInput","","type","number","formControlName","iterations",3,"min","max"],["bitInput","","formControlName","memory","type","number",3,"min","max"],["bitInput","","type","number","formControlName","parallelism",3,"min","max"]],template:function(e,t){if(1&e&&(w.j41(0,"h2",1),w.EFF(1),w.nI1(2,"i18n"),w.k0s(),w.nVh(3,Lw,3,3,"bit-callout",2),w.nI1(4,"async"),w.j41(5,"p",3),w.EFF(6),w.nI1(7,"i18n"),w.k0s(),w.j41(8,"p",4),w.EFF(9),w.nI1(10,"i18n"),w.k0s(),w.j41(11,"form",5)(12,"div",6)(13,"div",7)(14,"bit-form-field")(15,"bit-label"),w.EFF(16),w.nI1(17,"i18n"),w.nrm(18,"button",8),w.nI1(19,"i18n"),w.k0s(),w.j41(20,"bit-select",9),w.DNE(21,Ww,1,2,"bit-option",10),w.k0s()()(),w.j41(22,"div",7),w.nVh(23,Kw,8,8,"bit-form-field",11)(24,Zw,5,5,"bit-form-field",11),w.k0s(),w.nVh(25,Hw,12,10),w.k0s(),w.j41(26,"button",12),w.bIt("click",function(){return t.openConfirmationModal()}),w.EFF(27),w.nI1(28,"i18n"),w.k0s()(),w.j41(29,"bit-popover",13,0),w.nI1(31,"i18n"),w.j41(32,"ul",14)(33,"li",15),w.EFF(34),w.nI1(35,"i18n"),w.k0s(),w.j41(36,"li"),w.EFF(37),w.nI1(38,"i18n"),w.k0s()(),w.j41(39,"div",16)(40,"a",17),w.nI1(41,"i18n"),w.EFF(42),w.nI1(43,"i18n"),w.k0s()()()),2&e){const e=w.sdS(30);w.R7$(),w.SpI(" ",w.bMT(2,19,"encKeySettings"),"\n"),w.R7$(2),w.vxM(w.bMT(4,21,t.noLogoutOnKdfChangeFeatureFlag$)?-1:3),w.R7$(3),w.SpI(" ",w.bMT(7,23,"encryptionKeySettingsHowShouldWeEncryptYourData"),"\n"),w.R7$(3),w.SpI(" ",w.bMT(10,25,"encryptionKeySettingsIncreaseImproveSecurity"),"\n"),w.R7$(2),w.Y8G("formGroup",t.formGroup),w.R7$(5),w.SpI(" ",w.bMT(17,27,"algorithm")," "),w.R7$(2),w.Y8G("appA11yTitle",w.mNQ(w.bMT(19,29,"encryptionKeySettingsAlgorithmPopoverTitle")))("bitPopoverTriggerFor",e),w.R7$(3),w.Y8G("ngForOf",t.kdfOptions),w.R7$(2),w.vxM(t.isPBKDF2(t.kdfConfig)?23:t.isArgon2(t.kdfConfig)?24:-1),w.R7$(2),w.vxM(t.isArgon2(t.kdfConfig)?25:-1),w.R7$(2),w.SpI(" ",w.bMT(28,31,"updateEncryptionSettings")," "),w.R7$(2),w.Y8G("title",w.bMT(31,33,"encryptionKeySettingsAlgorithmPopoverTitle")),w.R7$(5),w.JRh(w.bMT(35,35,"encryptionKeySettingsAlgorithmPopoverPBKDF2")),w.R7$(3),w.JRh(w.bMT(38,37,"encryptionKeySettingsAlgorithmPopoverArgon2Id")),w.R7$(3),w.Y8G("appA11yTitle",w.mNQ(w.bMT(41,39,"learnMoreAboutEncryptionAlgorithms"))),w.R7$(2),w.SpI(" ",w.bMT(43,41,"learnMore")," ")}},dependencies:[L.Sq,a.qT,a.me,a.Q0,a.BC,a.cb,a.VZ,a.zX,a.j4,a.JD,a.$R,Fb.C,Ih.$,fh.Q,ae.G,Xh.j,zh.I,Lh.J,Wh.h,jh.g,tg.w,ig.P,Tp.r,YI.r,XI.k,L.Jj,Hh.$],encapsulation:2});var qw=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function $w(e,t){1&e&&w.nrm(0,"app-change-kdf")}function _w(e,t){1&e&&w.nrm(0,"app-user-key-rotation")}class eB{constructor(e,t,i,n,r,s,o){this.userDecryptionOptionsService=e,this.accountService=t,this.apiService=i,this.dialogService=n,this.configService=r,this.keyConnectorService=s,this.deviceTrustService=o,this.showChangeKdf=!0,this.showKeyRotation=!0,this.sdkKeyRotationFlag$=this.configService.getFeatureFlag$(Kr.TO.SdkKeyRotation)}ngOnInit(){return qw(this,void 0,void 0,function*(){const e=yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6)),t=yield(0,u._)(this.userDecryptionOptionsService.hasMasterPasswordById$(e)),i=!!(yield this.keyConnectorService.getUsesKeyConnector(e))&&null!=(yield this.keyConnectorService.getManagingOrganization(e)),n=yield(0,u._)(this.deviceTrustService.supportsDeviceTrustByUserId$(e));this.showChangeKdf=t,this.showKeyRotation=t||i||n})}viewUserApiKey(){return qw(this,void 0,void 0,function*(){const e=yield(0,u._)(this.accountService.activeAccount$.pipe((0,p.T)(e=>null==e?void 0:e.id)));if(!e)throw new Error("Active account not found");yield Nw.V.open(this.dialogService,{data:{keyType:"user",entityId:e,postKey:this.apiService.postUserApiKey.bind(this.apiService),scope:"api",grantType:"client_credentials",apiKeyTitle:"apiKey",apiKeyWarning:"userApiKeyWarning",apiKeyDescription:"userApiKeyDesc"}})})}rotateUserApiKey(){return qw(this,void 0,void 0,function*(){const e=yield(0,u._)(this.accountService.activeAccount$.pipe((0,p.T)(e=>null==e?void 0:e.id)));if(!e)throw new Error("Active account not found");yield Nw.V.open(this.dialogService,{data:{keyType:"user",isRotation:!0,entityId:e,postKey:this.apiService.postUserRotateApiKey.bind(this.apiService),scope:"api",grantType:"client_credentials",apiKeyTitle:"apiKey",apiKeyWarning:"userApiKeyWarning",apiKeyDescription:"apiKeyRotateDesc"}})})}}eB.ɵfac=function(e){return new(e||eB)(w.rXU(g.Ym),w.rXU(N.D),w.rXU(je.G),w.rXU(T.o),w.rXU(O.w),w.rXU(Ws.K),w.rXU(Is.M))},eB.ɵcmp=w.VBU({type:eB,selectors:[["ng-component"]],decls:18,vars:16,consts:[[1,"tw-grid","tw-gap-16","tw-mt-6"],["bitTypography","h2"],["bitTypography","body1"],[1,"tw-flex","tw-gap-2"],["type","button","bitButton","","buttonType","secondary",3,"click"]],template:function(e,t){1&e&&(w.j41(0,"div",0),w.nVh(1,$w,1,0,"app-change-kdf"),w.nVh(2,_w,1,0,"app-user-key-rotation"),w.nI1(3,"async"),w.j41(4,"div")(5,"h2",1),w.EFF(6),w.nI1(7,"i18n"),w.k0s(),w.j41(8,"p",2),w.EFF(9),w.nI1(10,"i18n"),w.k0s(),w.j41(11,"div",3)(12,"button",4),w.bIt("click",function(){return t.viewUserApiKey()}),w.EFF(13),w.nI1(14,"i18n"),w.k0s(),w.j41(15,"button",4),w.bIt("click",function(){return t.rotateUserApiKey()}),w.EFF(16),w.nI1(17,"i18n"),w.k0s()()()()),2&e&&(w.R7$(),w.vxM(t.showChangeKdf?1:-1),w.R7$(),w.vxM(w.bMT(3,6,t.showKeyRotation&&t.sdkKeyRotationFlag$)?2:-1),w.R7$(4),w.JRh(w.bMT(7,8,"apiKey")),w.R7$(3),w.SpI(" ",w.bMT(10,10,"userApiKeyDesc")," "),w.R7$(4),w.SpI(" ",w.bMT(14,12,"viewApiKey")," "),w.R7$(3),w.SpI(" ",w.bMT(17,14,"rotateApiKey")," "))},dependencies:[Tv.G,fh.Q,Tp.r,Uw,Jw,Ow,L.Jj,Hh.$],encapsulation:2});var tB=i(39805),iB=i(52798),nB=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function rB(e,t){if(1&e&&(w.j41(0,"bit-tab-link",2),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e){const e=w.XpG();w.Y8G("route",e.changePasswordRoute),w.R7$(),w.JRh(w.bMT(2,2,"masterPassword"))}}class sB{constructor(e,t){this.userDecryptionOptionsService=e,this.accountService=t,this.showChangePassword=!0,this.changePasswordRoute="password"}ngOnInit(){return nB(this,void 0,void 0,function*(){const e=yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6));this.showChangePassword=!!e&&(yield(0,u._)(this.userDecryptionOptionsService.hasMasterPasswordById$(e)))})}}sB.ɵfac=function(e){return new(e||sB)(w.rXU(g.Ym),w.rXU(N.D))},sB.ɵcmp=w.VBU({type:sB,selectors:[["ng-component"]],decls:17,vars:13,consts:[["slot","tabs"],["route","session-timeout"],[3,"route"],["route","two-factor"],["route","device-management"],["route","security-keys"]],template:function(e,t){1&e&&(w.j41(0,"app-header")(1,"bit-tab-nav-bar",0)(2,"bit-tab-link",1),w.EFF(3),w.nI1(4,"i18n"),w.k0s(),w.nVh(5,rB,3,4,"bit-tab-link",2),w.j41(6,"bit-tab-link",3),w.EFF(7),w.nI1(8,"i18n"),w.k0s(),w.j41(9,"bit-tab-link",4),w.EFF(10),w.nI1(11,"i18n"),w.k0s(),w.j41(12,"bit-tab-link",5),w.EFF(13),w.nI1(14,"i18n"),w.k0s()()(),w.j41(15,"bit-container"),w.nrm(16,"router-outlet"),w.k0s()),2&e&&(w.R7$(3),w.JRh(w.bMT(4,5,"sessionTimeoutHeader")),w.R7$(2),w.vxM(t.showChangePassword?5:-1),w.R7$(2),w.JRh(w.bMT(8,7,"twoStepLogin")),w.R7$(3),w.JRh(w.bMT(11,9,"devices")),w.R7$(3),w.JRh(w.bMT(14,11,"keys")))},dependencies:[Tv.G,R.n3,uy.H,tB.J,iB.T,dy.G,hy.f,Hh.$],encapsulation:2});const oB=[{path:"",component:sB,data:{titleId:"security"},children:[{path:"",pathMatch:"full",redirectTo:"session-timeout"},{path:"session-timeout",component:HI,data:{titleId:"sessionTimeoutHeader"}},{path:"password",component:Gw,data:{titleId:"masterPassword"}},{path:"two-factor",component:qI.q,data:{titleId:"twoStepLogin"}},{path:"security-keys",component:eB,data:{titleId:"keys"}},{path:"device-management",component:ZI,data:{titleId:"devices"}}]}];class aB{}aB.ɵfac=function(e){return new(e||aB)},aB.ɵmod=w.$C({type:aB}),aB.ɵinj=B.G2t({imports:[Hp.iI.forChild(oB),Hp.iI]});class lB{constructor(e,t){this.userId=e,this.token=t}}var cB=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class dB{constructor(e,t,i,n,r,s,o){this.router=e,this.i18nService=t,this.route=i,this.apiService=n,this.logService=r,this.tokenService=s,this.toastService=o}ngOnInit(){this.route.queryParams.pipe((0,lA.$)()).subscribe(e=>cB(this,void 0,void 0,function*(){if(null!=e.userId&&null!=e.token)try{return yield this.apiService.postAccountVerifyEmailToken(new lB(e.userId,e.token)),(yield(0,u._)(this.tokenService.hasAccessToken$(e.userId)))&&(yield this.apiService.refreshIdentityToken()),this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("emailVerified")}),void this.router.navigate(["/"])}catch(t){this.logService.error(t)}this.toastService.showToast({variant:"error",title:null,message:this.i18nService.t("emailVerifiedFailed")}),this.router.navigate(["/"])}))}}dB.ɵfac=function(e){return new(e||dB)(w.rXU(R.Ix),w.rXU(he.W),w.rXU(R.nX),w.rXU(je.G),w.rXU(se.K),w.rXU(z.B),w.rXU(F.f))},dB.ɵcmp=w.VBU({type:dB,selectors:[["app-verify-email-token"]],decls:5,vars:3,consts:[[1,"tw-p-8","tw-flex"],["alt","Bitwarden",1,"new-logo-themed"],[1,"spinner-container","tw-justify-center"],["name","bwi-spinner",1,"bwi-spin","bwi-3x","tw-text-muted",3,"ariaLabel"]],template:function(e,t){1&e&&(w.j41(0,"div",0),w.nrm(1,"img",1),w.j41(2,"div",2),w.nrm(3,"bit-icon",3),w.nI1(4,"i18n"),w.k0s()()),2&e&&(w.R7$(3),w.Y8G("ariaLabel",w.bMT(4,1,"loading")))},dependencies:[Dv.G,ve.R,Hh.$],encapsulation:2});class uB{constructor(e,t){this.userId=e,this.token=t}}var hB=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class AB{constructor(e,t,i,n,r){this.router=e,this.apiService=t,this.i18nService=i,this.route=n,this.toastService=r,this.formGroup=new a.gE({}),this.submit=()=>hB(this,void 0,void 0,function*(){const e=new uB(this.userId,this.token);yield this.apiService.postAccountRecoverDeleteToken(e),this.toastService.showToast({variant:"success",title:this.i18nService.t("accountDeleted"),message:this.i18nService.t("accountDeletedDesc")}),yield this.router.navigate(["/"])})}ngOnInit(){this.route.queryParams.pipe((0,lA.$)()).subscribe(e=>hB(this,void 0,void 0,function*(){null!=e.userId&&null!=e.token&&null!=e.email?(this.userId=e.userId,this.token=e.token,this.email=e.email):yield this.router.navigate(["/"])}))}}AB.ɵfac=function(e){return new(e||AB)(w.rXU(R.Ix),w.rXU(je.G),w.rXU(he.W),w.rXU(R.nX),w.rXU(F.f))},AB.ɵcmp=w.VBU({type:AB,selectors:[["app-verify-recover-delete"]],decls:18,vars:17,consts:[[3,"bitSubmit","formGroup"],["type","warning"],["bitTypography","body1",1,"tw-text-center"],["bitTypography","body1"],[1,"tw-flex","tw-gap-2"],["type","submit","bitButton","","bitFormButton","","buttonType","danger",3,"block"],["bitButton","","buttonType","secondary","routerLink","/login",3,"block"]],template:function(e,t){1&e&&(w.j41(0,"form",0)(1,"bit-callout",1),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"p",2)(5,"strong"),w.EFF(6),w.k0s()(),w.j41(7,"p",3),w.EFF(8),w.nI1(9,"i18n"),w.k0s(),w.nrm(10,"hr"),w.j41(11,"div",4)(12,"button",5),w.EFF(13),w.nI1(14,"i18n"),w.k0s(),w.j41(15,"a",6),w.EFF(16),w.nI1(17,"i18n"),w.k0s()()()),2&e&&(w.Y8G("bitSubmit",t.submit)("formGroup",t.formGroup),w.R7$(2),w.JRh(w.bMT(3,9,"deleteAccountWarning")),w.R7$(4),w.JRh(t.email),w.R7$(2),w.JRh(w.bMT(9,11,"deleteRecoverConfirmDesc")),w.R7$(4),w.Y8G("block",!0),w.R7$(),w.SpI(" ",w.bMT(14,13,"deleteAccount")," "),w.R7$(2),w.Y8G("block",!0),w.R7$(),w.SpI(" ",w.bMT(17,15,"cancel")," "))},dependencies:[a.X1,a.qT,a.cb,a.j4,Hp.Wk,Nh.p,vh.C,Ih.$,wh.L,Ah.t,fh.Q,ae.G,Fp.E,Tp.r,Hh.$],encapsulation:2});var pB=i(89684);class gB{constructor(){this.planNameKey="premium",this.startDate=new Date,this.renewalDate=(()=>{const e=new Date(this.startDate);return e.setFullYear(e.getFullYear()+1),e})(),this.managePlanRoute="/settings/subscription/premium"}}gB.ɵfac=function(e){return new(e||gB)},gB.ɵcmp=w.VBU({type:gB,selectors:[["ng-component"]],decls:43,vars:40,consts:[[1,"tw-flex","tw-flex-col","tw-items-center","tw-gap-8","tw-text-center","tw-w-full"],["icon","bwi-check-circle","variant","success","size","xl",3,"ariaLabel"],[1,"tw-w-full"],["bitTypography","h1",1,"tw-mb-4"],["bitTypography","body1",1,"tw-m-0","tw-text-fg-body"],[1,"tw-m-0","tw-flex","tw-w-full","tw-flex-col","tw-gap-4","tw-rounded-xl","tw-border","tw-border-solid","tw-border-secondary-300","tw-p-4","tw-text-left"],[1,"tw-flex","tw-items-center","tw-justify-between","tw-gap-3"],["bitTypography","body1",1,"tw-m-0","tw-text-fg-body-subtle","tw-font-normal"],["bitTypography","body1",1,"tw-m-0","tw-font-medium","tw-text-main"],[1,"tw-m-0"],["bitBadge","","variant","info","startIcon","bwi-clock","size","small","data-testid","upgrade-status-badge"],["bitButton","","buttonType","primary","endIcon","bwi-external-link","data-testid","manage-plan-button",3,"routerLink"]],template:function(e,t){1&e&&(w.j41(0,"div",0),w.nrm(1,"bit-icon-tile",1),w.nI1(2,"i18n"),w.j41(3,"div",2)(4,"h1",3),w.EFF(5),w.nI1(6,"i18n"),w.k0s(),w.j41(7,"p",4),w.EFF(8),w.nI1(9,"i18n"),w.k0s()(),w.j41(10,"dl",5)(11,"div",6)(12,"dt",7),w.EFF(13),w.nI1(14,"i18n"),w.k0s(),w.j41(15,"dd",8),w.EFF(16),w.nI1(17,"i18n"),w.k0s()(),w.j41(18,"div",6)(19,"dt",7),w.EFF(20),w.nI1(21,"i18n"),w.k0s(),w.j41(22,"dd",8),w.EFF(23),w.nI1(24,"date"),w.k0s()(),w.j41(25,"div",6)(26,"dt",7),w.EFF(27),w.nI1(28,"i18n"),w.k0s(),w.j41(29,"dd",8),w.EFF(30),w.nI1(31,"date"),w.k0s()(),w.j41(32,"div",6)(33,"dt",7),w.EFF(34),w.nI1(35,"i18n"),w.k0s(),w.j41(36,"dd",9)(37,"span",10),w.EFF(38),w.nI1(39,"i18n"),w.k0s()()()(),w.j41(40,"a",11),w.EFF(41),w.nI1(42,"i18n"),w.k0s()()),2&e&&(w.R7$(),w.Y8G("ariaLabel",w.mNQ(w.bMT(2,14,"paymentSuccessful"))),w.R7$(4),w.JRh(w.bMT(6,16,"paymentSuccessful")),w.R7$(3),w.SpI(" ",w.bMT(9,18,"paymentSuccessfulProcessingMessage")," "),w.R7$(5),w.SpI(" ",w.bMT(14,20,"planPurchased")," "),w.R7$(3),w.SpI(" ",w.bMT(17,22,t.planNameKey)," "),w.R7$(4),w.SpI(" ",w.bMT(21,24,"startDate")," "),w.R7$(3),w.SpI(" ",w.i5U(24,26,t.startDate,"MMMM d, y")," "),w.R7$(4),w.SpI(" ",w.bMT(28,29,"renewalDate")," "),w.R7$(3),w.SpI(" ",w.i5U(31,31,t.renewalDate,"MMMM d, y")," "),w.R7$(4),w.SpI(" ",w.bMT(35,34,"upgradeStatus")," "),w.R7$(4),w.SpI(" ",w.bMT(39,36,"processing")," "),w.R7$(2),w.Y8G("routerLink",t.managePlanRoute),w.R7$(),w.SpI(" ",w.bMT(42,38,"managePlanInWebApp")," "))},dependencies:[L.MD,Hp.Wk,iI.E,Wb.n,Ah.t,fh.Q,le.o,pB.F,Fp.E,Tp.r,L.vh,ce.$Z],encapsulation:2,changeDetection:0});var vB=i(33189),mB=i(90647),fB=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function yB(e,t){if(1&e&&(w.nrm(0,"button",2),w.nI1(1,"i18n")),2&e){w.XpG();const e=w.sdS(10);w.Y8G("label",w.mNQ(w.bMT(1,3,"options")))("bitMenuTriggerFor",e)}}function bB(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",5),w.nI1(1,"i18n"),w.bIt("click",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.resendEmail())}),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}if(2&e){const e=w.XpG();w.BMQ("aria-label",w.i5U(1,2,"resendEmailLabel",e.sponsoringOrg().familySponsorshipFriendlyName)),w.R7$(2),w.SpI(" ",w.bMT(3,5,"resendEmail")," ")}}class CB{constructor(){this.i18nService=(0,B.WQX)(he.W),this.logService=(0,B.WQX)(se.K),this.dialogService=(0,B.WQX)(T.o),this.toastService=(0,B.WQX)(F.f),this.policyService=(0,B.WQX)(Je.m),this.accountService=(0,B.WQX)(N.D),this.organizationSponsorshipApiService=(0,B.WQX)(fr.l),this.subscriptionPricingService=(0,B.WQX)(yr.z),this.currencyPipe=(0,B.WQX)(L.oe),this.sponsoringOrg=r.hFB.required(),this.isSelfHosted=(0,r.hFB)(!1),this.sponsorshipRemoved=(0,r.CGW)(),this.locale=(0,c.ot)(this.i18nService.locale$,{initialValue:""}),this.isFreeFamilyPolicyEnabled$=this.accountService.activeAccount$.pipe(f.F6,(0,jt.n)(e=>this.policyService.policiesByType$(_e.tt.FreeFamiliesSponsorship,e)),(0,p.T)(e=>Array.isArray(e)&&e.some(e=>e.organizationId===this.sponsoringOrg().id&&e.enabled))),this.statusMessage=(0,JA.EW)(()=>{const{familySponsorshipToDelete:e,familySponsorshipValidUntil:t,familySponsorshipLastSyncDate:i}=this.sponsoringOrg(),n=this.locale();return e?t?this.i18nService.t("revokeWhenExpired",(0,L.Yq)(t,"MM/dd/yyyy",n)):this.i18nService.t("requestRemoved"):t?this.i18nService.t("active"):!this.isSelfHosted()||i?this.i18nService.t("sent"):this.i18nService.t("requested")}),this.statusClass=(0,JA.EW)(()=>this.sponsoringOrg().familySponsorshipToDelete?"tw-text-danger":"tw-text-success")}revokeSponsorship(){return fB(this,void 0,void 0,function*(){try{yield this.doRevokeSponsorship()}catch(e){this.logService.error(e)}})}resendEmail(){return fB(this,void 0,void 0,function*(){yield this.organizationSponsorshipApiService.postResendSponsorshipOffer(this.sponsoringOrg().id,this.sponsoringOrg().familySponsorshipFriendlyName),this.toastService.showToast({variant:"success",title:void 0,message:this.i18nService.t("emailSent")})})}doRevokeSponsorship(){return fB(this,void 0,void 0,function*(){var e,t;const i=(yield(0,u._)(this.subscriptionPricingService.getPersonalSubscriptionPricingTiers$())).find(e=>e.id===Zr.OU.Families),n=null!==(e=null==i?void 0:i.passwordManager.annualPrice)&&void 0!==e?e:0,r=Number.isInteger(n)?"1.0-0":"1.2-2",s=null!==(t=this.currencyPipe.transform(n,"USD","symbol",r))&&void 0!==t?t:`$${n}`,o=this.sponsoringOrg(),a=o.familySponsorshipValidUntil?this.i18nService.t("revokeSponsorshipAcceptedWithPriceConfirmation",o.familySponsorshipFriendlyName,s,(0,L.Yq)(o.familySponsorshipValidUntil,"MM/dd/yyyy",this.locale())):this.i18nService.t("updatedRevokeSponsorshipConfirmationForSentSponsorship",o.familySponsorshipFriendlyName);(yield this.dialogService.openSimpleDialog({title:`${this.i18nService.t("removeSponsorship")}?`,content:a,acceptButtonText:{key:"remove"},type:"warning"}))&&(yield this.organizationSponsorshipApiService.deleteRevokeSponsorship(this.sponsoringOrg().id),this.toastService.showToast({variant:"success",title:void 0,message:this.i18nService.t("reclaimedFreePlan")}),this.sponsorshipRemoved.emit())})}}CB.ɵfac=function(e){return new(e||CB)},CB.ɵcmp=w.VBU({type:CB,selectors:[["","sponsoring-org-row",""]],inputs:{sponsoringOrg:[1,"sponsoringOrg"],isSelfHosted:[1,"isSelfHosted"]},outputs:{sponsorshipRemoved:"sponsorshipRemoved"},features:[w.Jv_([L.oe])],attrs:["sponsoring-org-row",""],decls:17,vars:16,consts:[["appListDropdown",""],["bitCell",""],["type","button","bitIconButton","bwi-ellipsis-v","buttonType","primaryGhost",3,"bitMenuTriggerFor","label"],["type","button","bitMenuItem",""],["type","button","bitMenuItem","","variant","danger",3,"click"],["type","button","bitMenuItem","",3,"click"]],template:function(e,t){1&e&&(w.j41(0,"td",1),w.EFF(1),w.k0s(),w.j41(2,"td",1),w.EFF(3),w.k0s(),w.j41(4,"td",1)(5,"span"),w.EFF(6),w.k0s()(),w.j41(7,"td",1),w.nVh(8,yB,2,5,"button",2),w.j41(9,"bit-menu",null,0),w.nVh(11,bB,4,7,"button",3),w.nI1(12,"async"),w.j41(13,"button",4),w.nI1(14,"i18n"),w.bIt("click",function(){return t.revokeSponsorship()}),w.EFF(15),w.nI1(16,"i18n"),w.k0s()()()),2&e&&(w.R7$(),w.SpI(" ",t.sponsoringOrg().familySponsorshipFriendlyName,"\n"),w.R7$(2),w.JRh(t.sponsoringOrg().name),w.R7$(2),w.HbH(t.statusClass()),w.R7$(),w.JRh(t.statusMessage()),w.R7$(2),w.vxM(t.sponsoringOrg().familySponsorshipToDelete?-1:8),w.R7$(3),w.vxM(t.isSelfHosted()||t.sponsoringOrg().familySponsorshipValidUntil||w.bMT(12,9,t.isFreeFamilyPolicyEnabled$)?-1:11),w.R7$(2),w.BMQ("aria-label",w.i5U(14,11,"revokeAccountMessage",t.sponsoringOrg().familySponsorshipFriendlyName)),w.R7$(2),w.SpI(" ",w.bMT(16,14,"remove")," "))},dependencies:[L.MD,EI.b,qb.Q,Uh.Q,Yh.s,mB.M,Kb.Z,Zb.O,Hb.S,le.o,L.Jj,ce.$Z],encapsulation:2,changeDetection:0});var IB=i(65963),wB=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function BB(e,t){1&e&&(w.qex(0),w.nrm(1,"i",1),w.nI1(2,"i18n"),w.j41(3,"span",2),w.EFF(4),w.nI1(5,"i18n"),w.k0s(),w.bVm()),2&e&&(w.R7$(),w.Y8G("title",w.mNQ(w.bMT(2,3,"loading"))),w.R7$(3),w.JRh(w.bMT(5,5,"loading")))}function EB(e,t){if(1&e&&w.nrm(0,"bit-option",14),2&e){const e=t.$implicit;w.Y8G("value",e.id)("label",e.name)}}function SB(e,t){if(1&e&&(w.j41(0,"form",6)(1,"div",7)(2,"div",8)(3,"bit-form-field")(4,"bit-label"),w.EFF(5),w.nI1(6,"i18n"),w.k0s(),w.j41(7,"bit-select",9),w.nrm(8,"bit-option",10),w.nI1(9,"i18n"),w.DNE(10,EB,1,2,"bit-option",11),w.nI1(11,"async"),w.k0s()()(),w.j41(12,"div",8)(13,"bit-form-field")(14,"bit-label"),w.EFF(15),w.nI1(16,"i18n"),w.k0s(),w.nrm(17,"input",12),w.k0s()(),w.j41(18,"div",8)(19,"button",13),w.EFF(20),w.nI1(21,"i18n"),w.k0s()()()()),2&e){const e=w.XpG(2);w.Y8G("formGroup",e.sponsorshipForm)("bitSubmit",e.submit),w.R7$(5),w.JRh(w.bMT(6,10,"familiesSponsoringOrgSelect")),w.R7$(3),w.Y8G("disabled",!0)("value",null)("label","--"+w.bMT(9,12,"select")+"--"),w.R7$(2),w.Y8G("ngForOf",w.bMT(11,14,e.availableSponsorshipOrgs$)),w.R7$(5),w.SpI("",w.bMT(16,16,"sponsoredFamiliesEmail"),":"),w.R7$(2),w.BMQ("aria-invalid",e.sponsorshipEmailControl.invalid),w.R7$(3),w.SpI(" ",w.bMT(21,18,"redeem")," ")}}function QB(e,t){if(1&e){const e=w.RV6();w.qex(0),w.j41(1,"tr",20),w.bIt("sponsorshipRemoved",function(){B.eBV(e);const t=w.XpG(4);return B.Njj(t.forceReload())}),w.nrm(2,"hr"),w.k0s(),w.bVm()}if(2&e){const e=t.$implicit,i=w.XpG(4);w.R7$(),w.Y8G("sponsoringOrg",e)("isSelfHosted",i.isSelfHosted)}}function kB(e,t){if(1&e&&(w.DNE(0,QB,3,2,"ng-container",19),w.nI1(1,"async")),2&e){const e=w.XpG(3);w.Y8G("ngForOf",w.bMT(1,1,e.activeSponsorshipOrgs$))}}function RB(e,t){1&e&&(w.qex(0),w.j41(1,"bit-table"),w.qex(2,15),w.j41(3,"tr")(4,"th",16),w.EFF(5),w.nI1(6,"i18n"),w.k0s(),w.j41(7,"th",16),w.EFF(8),w.nI1(9,"i18n"),w.k0s(),w.j41(10,"th",16),w.EFF(11),w.nI1(12,"i18n"),w.k0s(),w.nrm(13,"th",16),w.k0s(),w.bVm(),w.DNE(14,kB,2,3,"ng-template",17),w.k0s(),w.nrm(15,"hr"),w.j41(16,"p",18),w.EFF(17),w.nI1(18,"i18n"),w.k0s(),w.bVm()),2&e&&(w.R7$(5),w.JRh(w.bMT(6,4,"recipient")),w.R7$(3),w.JRh(w.bMT(9,6,"sponsoringOrg")),w.R7$(3),w.JRh(w.bMT(12,8,"status")),w.R7$(6),w.JRh(w.bMT(18,10,"sponsoredFamiliesLeaveCopy")))}function FB(e,t){if(1&e&&(w.qex(0),w.j41(1,"p",3),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"div",3),w.EFF(5),w.nI1(6,"i18n"),w.j41(7,"ul",4)(8,"li"),w.EFF(9),w.nI1(10,"i18n"),w.k0s(),w.j41(11,"li"),w.EFF(12),w.nI1(13,"i18n"),w.k0s()()(),w.DNE(14,SB,22,20,"form",5),w.nI1(15,"async"),w.DNE(16,RB,19,12,"ng-container",0),w.nI1(17,"async"),w.bVm()),2&e){const e=w.XpG();w.R7$(2),w.SpI(" ",w.bMT(3,6,"sponsoredFamiliesEligible")," "),w.R7$(3),w.SpI(" ",w.bMT(6,8,"sponsoredFamiliesIncludeMessage"),": "),w.R7$(4),w.JRh(w.bMT(10,10,"sponsoredFamiliesPremiumAccess")),w.R7$(3),w.JRh(w.bMT(13,12,"sponsoredFamiliesSharedCollectionsForFamilyMembers")),w.R7$(2),w.Y8G("ngIf",w.bMT(15,14,e.anyOrgsAvailable$)),w.R7$(2),w.Y8G("ngIf",w.bMT(17,16,e.anyActiveSponsorships$))}}class TB{constructor(e,t,i,n,r,s,o,l,c,h,A){this.apiService=e,this.i18nService=t,this.platformUtilsService=i,this.syncService=n,this.organizationService=r,this.formBuilder=s,this.accountService=o,this.toastService=l,this.policyService=c,this.freeFamiliesPolicyService=h,this.router=A,this.loading=!1,this._destroy=new d.B,this.submit=()=>wB(this,void 0,void 0,function*(){this.formPromise=this.apiService.postCreateSponsorship(this.sponsorshipForm.value.selectedSponsorshipOrgId,{sponsoredEmail:this.sponsorshipForm.value.sponsorshipEmail,planSponsorshipType:Yr.MM.FamiliesForEnterprise,friendlyName:this.sponsorshipForm.value.sponsorshipEmail}),yield this.formPromise,this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("sponsorshipCreated")}),this.formPromise=null,this.resetForm(),yield this.forceReload()}),this.sponsorshipForm=this.formBuilder.group({selectedSponsorshipOrgId:new a.MJ("",{validators:[a.k0.required]}),sponsorshipEmail:new a.MJ("",{validators:[a.k0.email,a.k0.required],asyncValidators:[this.notAllowedValueAsync(()=>(0,u._)(this.accountService.activeAccount$.pipe((0,p.T)(e=>null==e?void 0:e.email))),!0)],updateOn:"change"})})}ngOnInit(){return wB(this,void 0,void 0,function*(){const e=yield(0,u._)((0,f.F6)(this.accountService.activeAccount$));yield this.preventAccessToFreeFamiliesPage(),this.availableSponsorshipOrgs$=(0,xt.z)([this.organizationService.organizations$(e),this.policyService.policiesByType$(_e.tt.FreeFamiliesSponsorship,e)]).pipe((0,p.T)(([e,t])=>e.filter(e=>e.familySponsorshipAvailable).map(e=>({organization:e,isPolicyEnabled:t.some(t=>t.organizationId===e.id&&t.enabled)})).filter(({isPolicyEnabled:e})=>!e).map(({organization:e})=>e))),this.availableSponsorshipOrgs$.pipe((0,en.Q)(this._destroy)).subscribe(e=>{1===e.length&&this.sponsorshipForm.patchValue({selectedSponsorshipOrgId:e[0].id})}),this.anyOrgsAvailable$=this.availableSponsorshipOrgs$.pipe((0,p.T)(e=>e.length>0)),this.activeSponsorshipOrgs$=this.organizationService.organizations$(e).pipe((0,p.T)(e=>e.filter(e=>null!==e.familySponsorshipFriendlyName&&!e.isAdminInitiated))),this.anyActiveSponsorships$=this.activeSponsorshipOrgs$.pipe((0,p.T)(e=>e.length>0)),this.loading=!1,this.sponsorshipForm.get("sponsorshipEmail").valueChanges.pipe((0,en.Q)(this._destroy)).subscribe(e=>{this.sponsorshipEmailControl.hasError("email")&&this.sponsorshipEmailControl.setErrors([{message:this.i18nService.t("invalidEmail")}])})})}ngOnDestroy(){this._destroy.next(),this._destroy.complete()}preventAccessToFreeFamiliesPage(){return wB(this,void 0,void 0,function*(){(yield(0,u._)(this.freeFamiliesPolicyService.showFreeFamilies$))||(yield this.router.navigate(["/"]))})}forceReload(){return wB(this,void 0,void 0,function*(){this.loading=!0,yield this.syncService.fullSync(!0),this.loading=!1})}get sponsorshipEmailControl(){return this.sponsorshipForm.controls.sponsorshipEmail}resetForm(){return wB(this,void 0,void 0,function*(){this.sponsorshipForm.reset()})}get isSelfHosted(){return this.platformUtilsService.isSelfHost()}notAllowedValueAsync(e,t=!1){return i=>wB(this,void 0,void 0,function*(){let n=yield e(),r=i.value;if(t&&(n=n.toLowerCase(),r=r.toLowerCase()),r===n)return{errors:{message:this.i18nService.t("cannotSponsorSelf")}}})}}TB.ɵfac=function(e){return new(e||TB)(w.rXU(je.G),w.rXU(he.W),w.rXU(G.y),w.rXU(Gp.H),w.rXU(v.PV),w.rXU(a.ok),w.rXU(N.D),w.rXU(F.f),w.rXU(Je.m),w.rXU(vB.A),w.rXU(R.Ix))},TB.ɵcmp=w.VBU({type:TB,selectors:[["app-sponsored-families"]],decls:4,vars:2,consts:[[4,"ngIf"],[1,"bwi","bwi-spinner","bwi-spin","tw-text-muted",3,"title"],[1,"tw-sr-only"],["bitTypography","body1"],[1,"tw-list-outside"],[3,"formGroup","bitSubmit",4,"ngIf"],[3,"formGroup","bitSubmit"],[1,"tw-grid","tw-grid-cols-12","tw-gap-4"],[1,"tw-col-span-7"],["id","availableSponsorshipOrg","name","Available Sponsorship Organization","formControlName","selectedSponsorshipOrgId"],[3,"disabled","value","label"],[3,"value","label",4,"ngFor","ngForOf"],["bitInput","","inputmode","email","formControlName","sponsorshipEmail","appInputStripSpaces",""],["bitButton","","bitFormButton","","buttonType","primary","type","submit"],[3,"value","label"],["header",""],["bitCell",""],["body","","alignContent","middle"],["bitTypography","body2"],[4,"ngFor","ngForOf"],["bitRow","","sponsoring-org-row","",3,"sponsorshipRemoved","sponsoringOrg","isSelfHosted"]],template:function(e,t){1&e&&(w.nrm(0,"app-header"),w.j41(1,"bit-container"),w.DNE(2,BB,6,7,"ng-container",0)(3,FB,18,18,"ng-container",0),w.k0s()),2&e&&(w.R7$(2),w.Y8G("ngIf",t.loading),w.R7$(),w.Y8G("ngIf",!t.loading))},dependencies:[Nh.p,IB.J,vh.C,Ih.$,wh.L,Ah.t,fh.Q,L.MD,L.Sq,L.bT,uy.H,Oh.L,Xh.j,Lh.J,Wh.h,dy.G,hy.f,a.X1,a.qT,a.me,a.BC,a.cb,a.j4,a.JD,$p.p,tg.w,ig.P,CB,EI.b,qb.Q,$b.Y,_b._,_b.O,Fp.E,Tp.r,Hh.$,L.Jj],encapsulation:2});var DB=i(88977),PB=i(95387);const MB=(e,t)=>({"tw-border-0 tw-border-l tw-border-solid tw-border-secondary-300":e,"tw-pt-6":t});function xB(e,t){if(1&e&&(w.j41(0,"div",0),w.SdG(1),w.k0s()),2&e){const e=w.XpG();w.Y8G("ngClass",w.l_i(1,MB,e.applyBorder,e.addSubLabelSpacing))}}class VB extends PB.VI{constructor(){super(...arguments),this.subLabel="",this.applyBorder=!0,this.addSubLabelSpacing=!1}}VB.ɵfac=(()=>{let e;return function(t){return(e||(e=w.xGo(VB)))(t||VB)}})(),VB.ɵcmp=w.VBU({type:VB,selectors:[["app-vertical-step"]],inputs:{subLabel:"subLabel",applyBorder:"applyBorder",addSubLabelSpacing:"addSubLabelSpacing"},standalone:!1,features:[w.Jv_([{provide:PB.VI,useExisting:VB}]),w.Vt3],ngContentSelectors:["*"],decls:1,vars:0,consts:[[1,"tw-inline-block","tw-w-11/12","tw-pl-7",3,"ngClass"]],template:function(e,t){1&e&&(w.NAR(),w.DNE(0,xB,2,4,"ng-template"))},dependencies:[L.YU],encapsulation:2});const GB=e=>({"hover:tw-bg-secondary-100":e}),UB=e=>({"tw-font-medium":e}),OB=e=>({"tw-mt-1":e}),NB=(e,t,i)=>({"tw-bg-primary-600 tw-text-contrast":e,"tw-bg-secondary-300 tw-text-main":t,"tw-bg-transparent tw-text-muted":i});function jB(e,t){if(1&e&&(w.j41(0,"span",7),w.EFF(1),w.k0s()),2&e){const e=w.XpG();w.Y8G("ngClass",w.sMw(2,NB,e.selected,!e.selected&&!e.disabled&&e.step.editable,e.disabled)),w.R7$(),w.SpI(" ",e.stepNumber," ")}}function YB(e,t){1&e&&(w.j41(0,"span",8),w.nrm(1,"i",9),w.k0s())}class XB{constructor(){this.onSelectStep=new B.bkB,this.disabled=!1,this.selected=!1}selectStep(){this.onSelectStep.emit()}}function zB(e,t){if(1&e&&w.nrm(0,"div",5),2&e){const e=w.XpG(2);w.Y8G("ngTemplateOutlet",e.selected?e.selected.content:null)}}function LB(e,t){1&e&&w.nrm(0,"div",6)}function WB(e,t){if(1&e){const e=w.RV6();w.j41(0,"li")(1,"app-vertical-step-content",2),w.bIt("onSelectStep",function(){const t=B.eBV(e).index,i=w.XpG();return B.Njj(i.selectStepByIndex(t))}),w.k0s(),w.DNE(2,zB,1,1,"div",3)(3,LB,1,0,"div",4),w.k0s()}if(2&e){const e=t.$implicit,i=t.index,n=t.last,r=w.XpG();w.R7$(),w.Y8G("disabled",r.isStepDisabled(i))("selected",r.selectedIndex===i)("step",e)("stepNumber",i+1),w.R7$(),w.Y8G("ngIf",r.selectedIndex===i),w.R7$(),w.Y8G("ngIf",!(n||r.selectedIndex===i))}}XB.ɵfac=function(e){return new(e||XB)},XB.ɵcmp=w.VBU({type:XB,selectors:[["app-vertical-step-content"]],inputs:{disabled:"disabled",selected:"selected",step:"step",stepNumber:"stepNumber"},outputs:{onSelectStep:"onSelectStep"},standalone:!1,decls:9,vars:15,consts:[[1,"tw-m-2.5","tw-h-16","tw-text-center"],["type","button",1,"tw-flex","tw-w-full","tw-items-center","tw-border-none","tw-bg-transparent",3,"click","disabled","ngClass"],["class","tw-mr-3.5 tw-w-9 tw-rounded-full tw-font-medium tw-leading-9",3,"ngClass",4,"ngIf"],["class","tw-mr-3.5 tw-w-9 tw-rounded-full tw-bg-primary-600 tw-font-medium tw-leading-9 tw-text-contrast",4,"ngIf"],[1,"tw-txt-main","tw-mt-3.5","tw-h-12","tw-text-left","tw-leading-snug",3,"ngClass"],[1,"main-label","text","tw-mb-1","tw-text-main",3,"ngClass"],[1,"sub-label","small","tw-text-muted"],[1,"tw-mr-3.5","tw-w-9","tw-rounded-full","tw-font-medium","tw-leading-9",3,"ngClass"],[1,"tw-mr-3.5","tw-w-9","tw-rounded-full","tw-bg-primary-600","tw-font-medium","tw-leading-9","tw-text-contrast"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-check","tw-p-1"]],template:function(e,t){1&e&&(w.j41(0,"div",0)(1,"button",1),w.bIt("click",function(){return t.selectStep()}),w.DNE(2,jB,2,6,"span",2)(3,YB,2,0,"span",3),w.j41(4,"div",4)(5,"p",5),w.EFF(6),w.k0s(),w.j41(7,"p",6),w.EFF(8),w.k0s()()()()),2&e&&(w.R7$(),w.Y8G("disabled",t.disabled)("ngClass",w.eq3(9,GB,!t.disabled&&t.step.editable)),w.BMQ("aria-expanded",t.selected),w.R7$(),w.Y8G("ngIf",!t.step.completed),w.R7$(),w.Y8G("ngIf",t.step.completed),w.R7$(),w.Y8G("ngClass",w.eq3(11,UB,t.selected)),w.R7$(),w.Y8G("ngClass",w.eq3(13,OB,!t.step.subLabel)),w.R7$(),w.SpI(" ",t.step.label," "),w.R7$(2),w.JRh(t.step.subLabel))},dependencies:[L.YU,L.bT],encapsulation:2});class KB extends PB.Up{constructor(){super(...arguments),this.activeClass="active"}isNextButtonHidden(){return!(this.steps.length===this.selectedIndex+1)}isStepDisabled(e){var t;return this.selectedIndex!==e&&(this.selectedIndex!==e-1||!(null===(t=this.steps.find((t,i)=>i==e-1))||void 0===t?void 0:t.completed))}selectStepByIndex(e){this.selectedIndex=e}}KB.ɵfac=(()=>{let e;return function(t){return(e||(e=w.xGo(KB)))(t||KB)}})(),KB.ɵcmp=w.VBU({type:KB,selectors:[["app-vertical-stepper"]],inputs:{activeClass:"activeClass"},standalone:!1,features:[w.Jv_([{provide:PB.Up,useExisting:KB}]),w.Vt3],decls:3,vars:1,consts:[[1,"tw-flex","tw-list-none","tw-flex-col","tw-flex-wrap","tw-p-5"],[4,"ngFor","ngForOf"],[3,"onSelectStep","disabled","selected","step","stepNumber"],["class","tw-inline-block tw-pl-7",3,"ngTemplateOutlet",4,"ngIf"],["class","tw-ml-8 tw-h-6 tw-border-0 tw-border-l tw-border-solid tw-border-secondary-300",4,"ngIf"],[1,"tw-inline-block","tw-pl-7",3,"ngTemplateOutlet"],[1,"tw-ml-8","tw-h-6","tw-border-0","tw-border-l","tw-border-solid","tw-border-secondary-300"]],template:function(e,t){1&e&&(w.j41(0,"div")(1,"ul",0),w.DNE(2,WB,4,6,"li",1),w.k0s()()),2&e&&(w.R7$(2),w.Y8G("ngForOf",t.steps))},dependencies:[L.Sq,L.bT,L.T3,XB],encapsulation:2});var ZB=i(58688),HB=i(32706),JB=i(92954),qB=i(81098),$B=i(69022),_B=i(9327),eE=i(14055),tE=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const iE="annually",nE="monthly";class rE{constructor(e,t,i,n){this.accountService=e,this.apiService=t,this.organizationBillingService=i,this.previewInvoiceClient=n,this.plans$=(0,Si.H)(this.apiService.getPlans()).pipe((0,Gr.t)({bufferSize:1,refCount:!0})),this.getPrices$=(e,t)=>this.plans$.pipe((0,p.T)(i=>{switch(t){case"families":return{annually:i.data.find(e=>e.type===Yr.OL.FamiliesAnnually).PasswordManager.basePrice};case"teams":case"enterprise":{const n=i.data.find(e=>e.type===("teams"===t?Yr.OL.TeamsAnnually:Yr.OL.EnterpriseAnnually)),r=i.data.find(e=>e.type===("teams"===t?Yr.OL.TeamsMonthly:Yr.OL.EnterpriseMonthly));switch(e){case"passwordManager":return{annually:n.PasswordManager.seatPrice,monthly:r.PasswordManager.seatPrice};case"secretsManager":return{annually:n.SecretsManager.seatPrice,monthly:r.SecretsManager.seatPrice}}}}})),this.getCosts=(e,t,i,n,r)=>tE(this,void 0,void 0,function*(){const s=(0,qB.kx)(n);return yield this.previewInvoiceClient.previewTaxForOrganizationSubscriptionPurchase({tier:t,cadence:i,passwordManager:{seats:1,additionalStorage:0,sponsored:!1},secretsManager:"secretsManager"===e?{seats:1,additionalServiceAccounts:0,standalone:!0}:void 0},s,r)}),this.startTrial=(e,t,i,n,r)=>tE(this,void 0,void 0,function*(){var s;const o=[n.token,(0,eE.x$)(n.type)],a=yield((e,t)=>tE(this,void 0,void 0,function*(){const i=yield(0,u._)(this.plans$);switch(e){case"families":return i.data.find(e=>e.type===Yr.OL.FamiliesAnnually).type;case"teams":return i.data.find(e=>e.type===("annually"===t?Yr.OL.TeamsAnnually:Yr.OL.TeamsMonthly)).type;case"enterprise":return i.data.find(e=>e.type===("annually"===t?Yr.OL.EnterpriseAnnually:Yr.OL.EnterpriseMonthly)).type}}))(e.tier,t),l=Object.assign({organization:{name:e.organization.name,billingEmail:e.organization.email,initiationPath:"passwordManager"===e.product?"Password Manager trial from marketing website":"Secrets Manager trial from marketing website"},plan:"passwordManager"===e.product?{type:a,passwordManagerSeats:1}:{type:a,passwordManagerSeats:1,subscribeToSecretsManager:!0,isFromSecretsManagerTrial:!0,secretsManagerSeats:1},payment:{paymentMethod:o,billing:{country:i.country,postalCode:i.postalCode,taxId:null!==(s=i.taxId)&&void 0!==s?s:void 0},skipTrial:0===e.length,trialLength:e.length}},(null==r?void 0:r.length)?{coupons:r}:{}),c=yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6));return yield this.organizationBillingService.purchaseSubscription(l,c)})}}rE.ɵfac=function(e){return new(e||rE)(B.KVO(N.D),B.KVO(je.G),B.KVO(hr.Y),B.KVO(_B.dA))},rE.ɵprov=B.jDH({token:rE,factory:rE.ɵfac,providedIn:"root"});var sE=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const oE=e=>({type:"checkout",supportsTaxId:e});function aE(e,t){1&e&&w.eu8(0)}function lE(e,t){if(1&e&&w.DNE(0,aE,1,0,"ng-container",2),2&e){w.XpG();const e=w.sdS(4);w.Y8G("ngTemplateOutlet",e)}}function cE(e,t){if(1&e&&w.nrm(0,"billing-discount-badge",8),2&e){const e=t.$implicit;w.Y8G("discount",e)}}function dE(e,t){if(1&e&&(w.j41(0,"div",10)(1,"bit-radio-button",20)(2,"bit-label"),w.EFF(3),w.nI1(4,"i18n"),w.nI1(5,"currency"),w.nI1(6,"i18n"),w.k0s()()()),2&e){w.XpG();const e=w.r8f(0);w.R7$(),w.Y8G("value","monthly"),w.R7$(2),w.E5c(" ",w.bMT(4,4,"monthly")," - ",w.i5U(5,6,e.monthly,"$")," /",w.bMT(6,9,"monthAbbr")," ")}}function uE(e,t){if(1&e&&(w.j41(0,"div",16),w.SS7(1),w.nI1(2,"async"),w.j41(3,"div",21),w.EFF(4),w.nI1(5,"i18n"),w.nI1(6,"async"),w.nI1(7,"currency"),w.j41(8,"div"),w.EFF(9),w.nI1(10,"i18n"),w.nI1(11,"currency"),w.k0s()(),w.nrm(12,"hr",22),w.j41(13,"p",23)(14,"strong"),w.EFF(15),w.nI1(16,"i18n"),w.k0s(),w.EFF(17),w.nI1(18,"currency"),w.nI1(19,"i18n"),w.k0s()()),2&e){const e=w.XpG(2),t="passwordManager"===e.trial().product?"passwordManagerPlanPrice":"secretsManagerPlanPrice",i=w.bMT(2,7,e.selectionCosts$);w.R7$(4),w.Lme(" ",w.bMT(5,9,t),": ",w.i5U(7,13,w.bMT(6,11,e.selectionPrice$),"USD $")," "),w.R7$(5),w.Lme(" ",w.bMT(10,16,"estimatedTax"),": ",w.i5U(11,18,i.tax,"USD $")," "),w.R7$(6),w.SpI("",w.bMT(16,21,"total"),": ");const n="annually"===e.formGroup.value.cadence?"year":"month";w.R7$(2),w.Lme(" ",w.i5U(18,23,i.total,"USD $"),"/",w.bMT(19,26,n)," ")}}function hE(e,t){if(1&e){const e=w.RV6();w.SS7(0),w.nI1(1,"async"),w.j41(2,"form",1)(3,"div",3)(4,"div",4)(5,"div",5)(6,"h2",6),w.EFF(7),w.nI1(8,"i18n"),w.k0s(),w.j41(9,"div",7),w.Z7z(10,cE,1,1,"billing-discount-badge",8,w.fX1),w.k0s()(),w.j41(12,"bit-radio-group",9)(13,"div",10)(14,"bit-radio-button",11)(15,"bit-label"),w.EFF(16),w.nI1(17,"i18n"),w.nI1(18,"currency"),w.nI1(19,"i18n"),w.k0s()()(),w.nVh(20,dE,7,11,"div",10),w.k0s()(),w.j41(21,"div",12)(22,"h2",13),w.EFF(23),w.nI1(24,"i18n"),w.k0s(),w.nrm(25,"app-enter-payment-method",14)(26,"app-enter-billing-address",15),w.nVh(27,uE,20,28,"div",16),w.k0s(),w.j41(28,"div",17)(29,"button",18),w.EFF(30),w.nI1(31,"i18n"),w.k0s(),w.j41(32,"button",19),w.bIt("click",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.stepBack())}),w.EFF(33),w.nI1(34,"i18n"),w.k0s()()()()}if(2&e){const e=w.XpG(),t=w.bH3(w.bMT(1,16,e.prices$));w.R7$(2),w.Y8G("formGroup",e.formGroup)("bitSubmit",e.submit),w.R7$(5),w.JRh(w.bMT(8,19,"billingPlanLabel")),w.R7$(3),w.Dyx(e.cartDiscounts()),w.R7$(2),w.Y8G("formControl",e.formGroup.controls.cadence),w.R7$(2),w.Y8G("value","annually"),w.R7$(2),w.E5c(" ",w.bMT(17,21,"annual")," - ",w.i5U(18,23,t.annually,"$")," /",w.bMT(19,26,"yr")," "),w.R7$(4),w.vxM(t.monthly?20:-1),w.R7$(3),w.JRh(w.bMT(24,28,"paymentType")),w.R7$(2),w.Y8G("group",e.formGroup.controls.paymentMethod),w.R7$(),w.Y8G("group",e.formGroup.controls.billingAddress)("scenario",w.eq3(34,oE,"families"!==e.trial().tier)),w.R7$(),w.vxM(0===e.trial().length?27:-1),w.R7$(3),w.SpI(" ",w.bMT(31,30,e.trial().length>0?"startTrial":"submit")," "),w.R7$(3),w.SpI(" ",w.bMT(34,32,"back")," ")}}function AE(e,t){1&e&&(w.nrm(0,"i",24),w.nI1(1,"i18n"),w.j41(2,"span",25),w.EFF(3),w.nI1(4,"i18n"),w.k0s()),2&e&&(w.Y8G("title",w.mNQ(w.bMT(1,3,"loading"))),w.R7$(3),w.JRh(w.bMT(4,5,"loading")))}class pE{constructor(e,t,i,n){this.i18nService=e,this.toastService=t,this.trialBillingStepService=i,this.subscriptionDiscountService=n,this.trial=r.hFB.required(),this.steppedBack=(0,r.CGW)(),this.organizationCreated=(0,r.CGW)(),this.destroy$=new d.B,this.formGroup=new a.gE({cadence:new a.MJ(iE,{nonNullable:!0}),paymentMethod:qB.Pu.getFormGroup(),billingAddress:qB.vU.getFormGroup()}),this.discountTierType=(0,JA.EW)(()=>"families"===this.trial().tier?HB.A.Families:null),this.eligibleDiscounts=(0,c.ot)((0,c.br)(this.discountTierType).pipe((0,jt.n)(e=>e?this.subscriptionDiscountService.getEligibleDiscountsForTier$(e).pipe((0,Wr.W)(()=>(0,ln.of)([]))):(0,ln.of)([]))),{initialValue:[]}),this.cartDiscounts=(0,JA.EW)(()=>this.eligibleDiscounts().map(e=>this.subscriptionDiscountService.mapToCartDiscount(e)).filter(e=>null!==e)),this.eligibleCouponIds=(0,JA.EW)(()=>this.eligibleDiscounts().map(e=>e.stripeCouponId)),this.eligibleDiscounts$=(0,c.br)(this.eligibleDiscounts),this.submit=()=>sE(this,void 0,void 0,function*(){if(this.formGroup.markAllAsTouched(),this.formGroup.invalid)return;const e=yield this.enterPaymentMethodComponent.tokenize();if(!e)return;const t=this.formGroup.controls.billingAddress.getRawValue();try{const i=yield this.trialBillingStepService.startTrial(this.trial(),this.formGroup.value.cadence,t,e,this.eligibleCouponIds());this.toastService.showToast({variant:"success",title:this.i18nService.t("organizationCreated"),message:this.i18nService.t("organizationReadyToGo")}),this.organizationCreated.emit({organizationId:i.id,planDescription:yield(0,u._)(this.selectionDescription$)})}catch(i){if(!this.subscriptionDiscountService.isDiscountExpiredError(i))throw i;this.subscriptionDiscountService.refresh(),this.toastService.showToast({variant:"warning",title:"",message:this.i18nService.t("discountExpiredOnPurchase")})}}),this.stepBack=()=>this.steppedBack.emit()}ngOnInit(){return sE(this,void 0,void 0,function*(){const{product:e,tier:t}=this.trial();this.prices$=this.trialBillingStepService.getPrices$(e,t);const i=this.formGroup.controls.cadence.valueChanges.pipe((0,tn.Z)(iE));this.selectionPrice$=(0,xt.z)([this.prices$,i]).pipe((0,p.T)(([e,t])=>e[t]),(0,h.p)(e=>!!e)),this.selectionCosts$=(0,xt.z)([i,this.formGroup.controls.billingAddress.valueChanges.pipe((0,tn.Z)(this.formGroup.controls.billingAddress.value),(0,h.p)(e=>!!e.country&&!!e.postalCode)),this.eligibleDiscounts$]).pipe((0,Oy.B)(500),(0,jt.n)(([i,n])=>this.trialBillingStepService.getCosts(e,t,i,n,this.eligibleCouponIds())),(0,tn.Z)({tax:0,total:0}),(0,Gr.t)({bufferSize:1,refCount:!0})),this.selectionDescription$=(0,xt.z)([this.selectionPrice$,i]).pipe((0,p.T)(([e,t])=>{switch(t){case iE:return`${this.i18nService.t("annual")} ($${e}/${this.i18nService.t("yr")})`;case nE:return`${this.i18nService.t("monthly")} ($${e}/${this.i18nService.t("monthAbbr")})`}}))})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}pE.ɵfac=function(e){return new(e||pE)(w.rXU(he.W),w.rXU(F.f),w.rXU(rE),w.rXU($B.s))},pE.ɵcmp=w.VBU({type:pE,selectors:[["app-trial-billing-step"]],viewQuery:function(e,t){if(1&e&&w.GBs(qB.Pu,5),2&e){let e;w.mGM(e=w.lsd())&&(t.enterPaymentMethodComponent=e.first)}},inputs:{trial:[1,"trial"]},outputs:{steppedBack:"steppedBack",organizationCreated:"organizationCreated"},decls:5,vars:3,consts:[["loadingSpinner",""],[3,"formGroup","bitSubmit"],[4,"ngTemplateOutlet"],[1,"tw-container","tw-mb-3"],[1,"tw-mb-6"],[1,"tw-mb-3","tw-flex","tw-items-center"],[1,"!tw-m-0","tw-text-base","tw-font-medium"],[1,"tw-flex","tw-gap-1","tw-ml-2"],[3,"discount"],[3,"formControl"],[1,"tw-mb-1","tw-items-center"],["id","annual-cadence-button",3,"value"],[1,"tw-mb-4"],[1,"tw-mb-3","tw-text-base","tw-font-medium"],[3,"group"],[3,"group","scenario"],["id","price",1,"tw-my-4"],[1,"tw-flex","tw-space-x-2"],["bitButton","","bitFormButton","","buttonType","primary","type","submit"],["bitButton","","type","button","buttonType","secondary",3,"click"],["id","monthly-cadence-button",3,"value"],[1,"tw-text-muted","tw-text-base"],[1,"tw-my-1","tw-grid","tw-grid-cols-3","tw-ml-0"],[1,"tw-text-lg"],["aria-hidden","true",1,"bwi","bwi-spinner","bwi-spin","tw-text-muted",3,"title"],[1,"tw-sr-only"]],template:function(e,t){1&e&&(w.nVh(0,lE,1,1,"ng-container"),w.nI1(1,"async"),w.vZN(2,hE,35,36,"form",1),w.DNE(3,AE,5,7,"ng-template",null,0,w.C5r)),2&e&&w.vxM(w.bMT(1,1,t.prices$)?2:0)},dependencies:[qB.Pu,qB.vU,Tv.G,L.T3,a.qT,a.BC,a.cb,a.l_,a.j4,Ih.$,wh.L,fh.Q,Xh.j,Tb.W,Db.d,JB.UJ,L.Jj,L.oe,Hh.$],encapsulation:2});var gE=i(54873);function vE(e,t){if(1&e&&(w.j41(0,"p",5),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e){const e=w.XpG();w.R7$(),w.SpI(" ",w.i5U(2,1,"trialThankYou",e.orgLabel)," ")}}function mE(e,t){1&e&&(w.j41(0,"p",5),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,1,"smFreeTrialThankYou")," "))}function fE(e,t){if(1&e&&(w.j41(0,"li")(1,"p"),w.EFF(2),w.nI1(3,"i18n"),w.k0s()()),2&e){const e=w.XpG();w.R7$(2),w.SpI(" ",w.brH(3,1,"trialPaidInfoMessageSpecificTrialLength",e.orgLabel,e.trialLength)," ")}}class yE{constructor(){this.product=Yr.ch.PasswordManager,this.Product=Yr.ch}}yE.ɵfac=function(e){return new(e||yE)},yE.ɵcmp=w.VBU({type:yE,selectors:[["app-trial-confirmation-details"]],inputs:{email:"email",orgLabel:"orgLabel",product:"product",trialLength:"trialLength"},standalone:!1,decls:12,vars:7,consts:[[1,"tw-pb-6","tw-pl-6"],["class","tw-text-xl",4,"ngIf"],[1,"tw-list-disc"],[1,"tw-font-medium"],[4,"ngIf"],[1,"tw-text-xl"]],template:function(e,t){1&e&&(w.j41(0,"div",0),w.DNE(1,vE,3,4,"p",1)(2,mE,3,3,"p",1),w.j41(3,"ul",2)(4,"li")(5,"p"),w.EFF(6),w.nI1(7,"i18n"),w.j41(8,"span",3),w.EFF(9),w.k0s(),w.EFF(10,". "),w.k0s()(),w.DNE(11,fE,4,5,"li",4),w.k0s()()),2&e&&(w.R7$(),w.Y8G("ngIf",t.product===t.Product.PasswordManager),w.R7$(),w.Y8G("ngIf",t.product===t.Product.SecretsManager),w.R7$(4),w.SpI(" ",w.bMT(7,5,"trialConfirmationEmail")," "),w.R7$(3),w.JRh(t.email),w.R7$(2),w.Y8G("ngIf",t.trialLength>0))},dependencies:[L.bT,Hh.$],encapsulation:2});var bE=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const CE=["stepper"],IE=()=>({key:"createAccount"}),wE=e=>["/sm",e],BE=e=>["/organizations",e,"vault"],EE=e=>["/organizations",e,"members"];function SE(e,t){1&e&&(w.j41(0,"div",1),w.nrm(1,"i",2),w.nI1(2,"i18n"),w.j41(3,"span",3),w.EFF(4),w.nI1(5,"i18n"),w.k0s()()),2&e&&(w.R7$(),w.Y8G("title",w.mNQ(w.bMT(2,3,"loading"))),w.R7$(3),w.JRh(w.bMT(5,5,"loading")))}function QE(e,t){if(1&e){const e=w.RV6();w.j41(0,"div")(1,"auth-input-password",5),w.bIt("onPasswordFormSubmit",function(t){B.eBV(e);const i=w.XpG(2);return B.Njj(i.handlePasswordSubmit(t))}),w.k0s()()}if(2&e){const e=w.XpG(2);w.R7$(),w.Y8G("flow",e.inputPasswordFlow)("email",e.email)("loading",e.submitting)("primaryButtonText",w.lJ4(4,IE))}}function kE(e,t){if(1&e){const e=w.RV6();w.j41(0,"app-trial-billing-step",19),w.bIt("steppedBack",function(){B.eBV(e);const t=w.XpG(4);return B.Njj(t.previousStep())})("organizationCreated",function(t){B.eBV(e);const i=w.XpG(4);return B.Njj(i.createdOrganization(t))}),w.k0s()}if(2&e){const e=w.XpG(4);w.Y8G("trial",e.trial)}}function RE(e,t){if(1&e&&(w.j41(0,"app-vertical-step",17),w.DNE(1,kE,1,1,"app-trial-billing-step",18),w.k0s()),2&e){w.XpG();const e=w.sdS(2),t=w.XpG(2);w.Y8G("subLabel",t.billingSubLabel),w.R7$(),w.Y8G("ngIf",2===e.selectedIndex)}}function FE(e,t){if(1&e){const e=w.RV6();w.j41(0,"div")(1,"app-vertical-stepper",6,0),w.bIt("selectionChange",function(t){B.eBV(e);const i=w.XpG(2);return B.Njj(i.verticalStepChange(t))}),w.j41(3,"app-vertical-step",7)(4,"auth-input-password",5),w.bIt("onPasswordFormSubmit",function(t){B.eBV(e);const i=w.XpG(2);return B.Njj(i.handlePasswordSubmit(t))}),w.k0s()(),w.j41(5,"app-vertical-step",8),w.nrm(6,"app-org-info",9),w.j41(7,"button",10),w.bIt("click",function(){B.eBV(e);const t=w.XpG(2);return B.Njj(t.orgNameEntrySubmit())}),w.EFF(8),w.nI1(9,"i18n"),w.nI1(10,"i18n"),w.k0s()(),w.DNE(11,RE,2,2,"app-vertical-step",11),w.j41(12,"app-vertical-step",12),w.nrm(13,"app-trial-confirmation-details",13),w.j41(14,"div",14)(15,"a",15),w.EFF(16),w.nI1(17,"i18n"),w.nI1(18,"titlecase"),w.k0s(),w.j41(19,"a",16),w.EFF(20),w.nI1(21,"i18n"),w.k0s()()()()()}if(2&e){const e=w.XpG(2);w.R7$(3),w.Y8G("editable",!1)("subLabel",e.email),w.R7$(),w.Y8G("flow",e.inputPasswordFlow)("email",e.email)("loading",e.submitting)("primaryButtonText",w.lJ4(32,IE)),w.R7$(),w.Y8G("subLabel",e.orgInfoSubLabel),w.R7$(),w.Y8G("nameOnly",!0)("formGroup",e.orgInfoFormGroup),w.R7$(),w.Y8G("disabled",e.orgInfoFormGroup.controls.name.invalid)("loading",e.loading),w.R7$(),w.SpI(" ",e.paymentOptional&&e.trialLength>0?w.bMT(9,22,"startTrial"):w.bMT(10,24,"next")," "),w.R7$(3),w.Y8G("ngIf",e.showBillingStep),w.R7$(),w.Y8G("applyBorder",!1),w.R7$(),w.Y8G("email",e.email)("orgLabel",e.orgLabel)("product",e.product)("trialLength",e.trialLength),w.R7$(2),w.Y8G("routerLink",e.product===e.ProductType.SecretsManager?w.eq3(33,wE,e.orgId):w.eq3(35,BE,e.orgId)),w.R7$(),w.SpI(" ",w.bMT(18,28,w.bMT(17,26,"getStarted"))," "),w.R7$(3),w.Y8G("routerLink",w.eq3(37,EE,e.orgId)),w.R7$(),w.SpI(" ",w.bMT(21,30,"inviteUsers")," ")}}function TE(e,t){if(1&e&&w.DNE(0,QE,2,5,"div",4)(1,FE,22,39,"div",4),2&e){const e=w.XpG();w.Y8G("ngIf",!e.useTrialStepper),w.R7$(),w.Y8G("ngIf",e.useTrialStepper)}}class DE{constructor(e,t,i,n,r,s,o,l,c,u,h,A){this.router=e,this.route=t,this.formBuilder=i,this.i18nService=n,this.routerService=r,this.organizationBillingService=s,this.toastService=o,this.registrationFinishService=l,this.validationService=c,this.loginStrategyService=u,this.configService=h,this.accountService=A,this.inputPasswordFlow=ne.m5.SetInitialPasswordAccountRegistration,this.initializing=!0,this.stepperProductTypes=[Yr.K_.Teams,Yr.K_.Enterprise,Yr.K_.Families],this.useTrialStepper=!1,this.submitting=!1,this.validProducts=[Yr.ch.PasswordManager,Yr.ch.SecretsManager],this.orgInfoSubLabel="",this.orgId="",this.orgLabel="",this.billingSubLabel="",this.email="",this.loading=!1,this.paymentOptional=!1,this.orgInfoFormGroup=this.formBuilder.group({name:["",{validators:[a.k0.required,a.k0.maxLength(50)],updateOn:"change"}],billingEmail:[""]}),this.destroy$=new d.B,this.ProductType=Yr.ch}ngOnInit(){return bE(this,void 0,void 0,function*(){this.route.queryParams.pipe((0,en.Q)(this.destroy$)).subscribe(e=>{null!=e.email&&e.email.indexOf("@")>-1&&(this.email=e.email,this.orgInfoFormGroup.controls.billingEmail.setValue(e.email)),e.fromEmail&&"true"===e.fromEmail&&this.toastService.showToast({title:"",message:this.i18nService.t("emailVerifiedV2"),variant:"success"}),null!=e.token&&(this.emailVerificationToken=e.token);const t=parseInt(e.product);this.product=this.validProducts.includes(t)?t:Yr.ch.PasswordManager;const i=parseInt(e.productTier);this.productTierValue=i;const n=this.stepperProductTypes.includes(i),r=this.product===Yr.ch.SecretsManager;!n&&!r||isNaN(i)||(this.productTier=i,this.orgLabel=this.planTypeDisplay,this.useTrialStepper=!0),this.trialLength=e.trialLength?parseInt(e.trialLength):DB.O,this.paymentOptional="true"===e.paymentOptional,this.setupFamilySponsorship(e.sponsorshipToken)}),this.orgInfoFormGroup.controls.name.valueChanges.pipe((0,en.Q)(this.destroy$)).subscribe(()=>{this.orgInfoFormGroup.controls.name.markAsTouched()}),this.initializing=!1})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}verticalStepChange(e){1===e.selectedIndex&&""===this.orgInfoFormGroup.controls.name.value?this.orgInfoSubLabel=this.planInfoLabel:1===e.previouslySelectedIndex&&(this.orgInfoSubLabel=this.orgInfoFormGroup.controls.name.value)}orgNameEntrySubmit(){return bE(this,void 0,void 0,function*(){const e=yield(0,u._)((0,f.F6)(this.accountService.activeAccount$));this.paymentOptional&&this.trialLength>0?yield this.createOrganizationOnTrial(e):yield this.conditionallyCreateOrganization(e)})}createdOrganization(e){this.orgId=e.organizationId,this.billingSubLabel=e.planDescription,this.verticalStepper.next()}createOrganizationOnTrial(e){return bE(this,void 0,void 0,function*(){this.loading=!0;let t="Password Manager trial from marketing website",i={type:yield this.getPlanType(),passwordManagerSeats:1};this.product===Yr.ch.SecretsManager&&(t="Secrets Manager trial from marketing website",i=Object.assign(Object.assign({},i),{subscribeToSecretsManager:!0,isFromSecretsManagerTrial:!0,secretsManagerSeats:1}));const n={name:null==this.orgInfoFormGroup.value.name?"":this.orgInfoFormGroup.value.name,billingEmail:null==this.orgInfoFormGroup.value.billingEmail?"":this.orgInfoFormGroup.value.billingEmail,initiationPath:t},r=yield this.organizationBillingService.purchaseSubscriptionNoPaymentMethod({organization:n,plan:i},e,this.trialLength);this.orgId=null==r?void 0:r.id,this.billingSubLabel=r.name.toString(),this.loading=!1,this.verticalStepper.next()})}previousStep(){this.verticalStepper.previous()}getPlanType(){switch(this.productTier){case Yr.K_.Teams:return Yr.OL.TeamsAnnually;case Yr.K_.Enterprise:return Yr.OL.EnterpriseAnnually;case Yr.K_.Families:return Yr.OL.FamiliesAnnually;case Yr.K_.Free:return Yr.OL.Free;default:return Yr.OL.EnterpriseAnnually}}get isSecretsManagerFree(){return this.product===Yr.ch.SecretsManager&&this.productTier===Yr.K_.Free}get planTypeDisplay(){switch(this.productTier){case Yr.K_.Teams:return"Teams";case Yr.K_.Enterprise:return"Enterprise";case Yr.K_.Families:return"Families";default:return""}}get planInfoLabel(){switch(this.productTier){case Yr.K_.Teams:return this.i18nService.t("enterTeamsOrgInfo");case Yr.K_.Enterprise:return this.i18nService.t("enterEnterpriseOrgInfo");case Yr.K_.Families:return this.i18nService.t("enterFamiliesOrgInfo");default:return""}}get showBillingStep(){return!this.paymentOptional&&!this.isSecretsManagerFree}conditionallyCreateOrganization(e){return bE(this,void 0,void 0,function*(){if(!this.isSecretsManagerFree)return void this.verticalStepper.next();const t=yield this.organizationBillingService.startFree({organization:{name:null==this.orgInfoFormGroup.value.name?"":this.orgInfoFormGroup.value.name,billingEmail:null==this.orgInfoFormGroup.value.billingEmail?"":this.orgInfoFormGroup.value.billingEmail,initiationPath:"Password Manager trial from marketing website"},plan:{type:0,subscribeToSecretsManager:!0,isFromSecretsManagerTrial:!0}},e);this.orgId=t.id,this.verticalStepper.next()})}handlePasswordSubmit(e){return bE(this,void 0,void 0,function*(){if(!this.useTrialStepper)return yield this.finishRegistration(e),this.submitting=!1,void(yield this.router.navigate(["/login"],{queryParams:{email:this.email}}));yield this.finishRegistration(e),yield this.logIn(e.newPassword),this.submitting=!1,this.verticalStepper.next()})}setupFamilySponsorship(e){if(null!=e){const t=this.router.createUrlTree(["setup/families-for-enterprise"],{queryParams:{plan:e}});this.routerService.setPreviousUrl(t.toString())}}logIn(e){return bE(this,void 0,void 0,function*(){const t=new g.F2(this.email,e);yield this.loginStrategyService.logIn(t)})}finishRegistration(e){return bE(this,void 0,void 0,function*(){return this.submitting=!0,this.registrationFinishService.finishRegistration(this.email,e,this.emailVerificationToken).catch(e=>(this.validationService.showError(e),this.submitting=!1,null))})}get trial(){const e=this.product===Yr.ch.PasswordManager?"passwordManager":"secretsManager",t=this.productTier===Yr.K_.Families?"families":this.productTier===Yr.K_.Teams?"teams":"enterprise";return{organization:{name:this.orgInfoFormGroup.value.name,email:this.orgInfoFormGroup.value.billingEmail},product:e,tier:t,length:this.trialLength}}}DE.ɵfac=function(e){return new(e||DE)(w.rXU(R.Ix),w.rXU(R.nX),w.rXU(a.ok),w.rXU(he.W),w.rXU(jg.H),w.rXU(hr.Y),w.rXU(F.f),w.rXU(ne.mZ),w.rXU(oa.B),w.rXU(g.sg),w.rXU(O.w),w.rXU(N.D))},DE.ɵcmp=w.VBU({type:DE,selectors:[["app-complete-trial-initiation"]],viewQuery:function(e,t){if(1&e&&w.GBs(CE,5),2&e){let e;w.mGM(e=w.lsd())&&(t.verticalStepper=e.first)}},standalone:!1,decls:2,vars:1,consts:[["stepper",""],[1,"tw-flex","tw-items-center","tw-justify-center"],["aria-hidden","true",1,"bwi","bwi-spinner","bwi-spin","bwi-3x","tw-text-muted",3,"title"],[1,"tw-sr-only"],[4,"ngIf"],[3,"onPasswordFormSubmit","flow","email","loading","primaryButtonText"],["linear","",3,"selectionChange"],["label","Create Account",3,"editable","subLabel"],["label","Organization Information",3,"subLabel"],[3,"nameOnly","formGroup"],["type","button","bitButton","","buttonType","primary",3,"click","disabled","loading"],["label","Billing",3,"subLabel",4,"ngIf"],["label","Confirmation Details",3,"applyBorder"],[3,"email","orgLabel","product","trialLength"],[1,"tw-mb-3","tw-flex"],["type","button","bitButton","","buttonType","primary",3,"routerLink"],["type","button","bitButton","","buttonType","secondary",1,"tw-ml-3","tw-inline-flex","tw-items-center","tw-px-3",3,"routerLink"],["label","Billing",3,"subLabel"],[3,"trial","steppedBack","organizationCreated",4,"ngIf"],[3,"steppedBack","organizationCreated","trial"]],template:function(e,t){1&e&&w.nVh(0,SE,6,7,"div",1)(1,TE,2,2),2&e&&w.vxM(t.initializing?0:1)},dependencies:[L.bT,a.cb,a.j4,Hp.Wk,fh.Q,KB,VB,ZB.T,pE,gE.t,yE,L.PV,Hh.$],encapsulation:2});const PE=e=>{const{product:t}=e.queryParams,i=(null!=t?t:"").split(",").map(e=>parseInt(e)),n=e.queryParams.trialLength?parseInt(e.queryParams.trialLength):DB.O,r=1===i.length&&i[0]===Yr.ch.PasswordManager,s=1===i.length&&i[0]===Yr.ch.SecretsManager;switch(!0){case r:return{key:n>0?"continueSettingUpFreeTrialPasswordManager":"continueSettingUpPasswordManager"};case s:return{key:n>0?"continueSettingUpFreeTrialSecretsManager":"continueSettingUpSecretsManager"};default:return{key:n>0?"continueSettingUpFreeTrial":"continueSettingUp"}}};var ME=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const xE=()=>[];function VE(e,t){if(1&e&&(w.j41(0,"a",8),w.nrm(1,"bit-icon",9),w.EFF(2),w.k0s()),2&e){const e=t.$implicit,i=w.XpG(2);w.BMQ("href",e==i.currentRegion?"javascript:void(0)":e.urls.webVault+i.routeAndParams,w.B4B),w.R7$(),w.xc7("visibility",e==i.currentRegion?"visible":"hidden"),w.R7$(),w.SpI(" ",e.domain," ")}}function GE(e,t){if(1&e&&(w.j41(0,"div",2)(1,"bit-menu",null,0),w.DNE(3,VE,3,4,"a",3),w.nI1(4,"async"),w.k0s(),w.j41(5,"div",4),w.EFF(6),w.nI1(7,"i18n"),w.j41(8,"a",5)(9,"b",6),w.EFF(10),w.k0s(),w.nrm(11,"bit-icon",7),w.k0s()()()),2&e){const e=w.sdS(2),t=w.XpG();w.R7$(3),w.Y8G("ngForOf",w.bMT(4,5,t.availableRegions$)),w.R7$(3),w.SpI(" ",w.bMT(7,7,"accessing"),": "),w.R7$(2),w.Y8G("routerLink",w.lJ4(9,xE))("bitMenuTriggerFor",e),w.R7$(2),w.JRh(null==t.currentRegion?null:t.currentRegion.domain)}}class UE{constructor(e,t,i,n){this.platformUtilsService=e,this.environmentService=t,this.availableRegionsService=i,this.router=n,this.availableRegions$=this.availableRegionsService.availableRegions$,this.showRegionSelector=!1}ngOnInit(){return ME(this,void 0,void 0,function*(){this.showRegionSelector=!this.platformUtilsService.isSelfHost(),this.routeAndParams=`/#${this.router.url}`;const e=zt.A.getHost(window.location.href);this.currentRegion=this.environmentService.availableRegions().find(t=>zt.A.getHost(t.urls.webVault)===e)})}}UE.ɵfac=function(e){return new(e||UE)(w.rXU(G.y),w.rXU(yo.v),w.rXU($o.s),w.rXU(R.Ix))},UE.ɵcmp=w.VBU({type:UE,selectors:[["environment-selector"]],decls:1,vars:1,consts:[["environmentOptions",""],["class","tw-mb-1",4,"ngIf"],[1,"tw-mb-1"],["bitMenuItem","",4,"ngFor","ngForOf"],["bitTypography","body2"],[3,"routerLink","bitMenuTriggerFor"],[1,"tw-text-primary-600","tw-font-medium"],["name","bwi-angle-down",1,"bwi-fw","bwi-sm"],["bitMenuItem",""],["name","bwi-check",1,"bwi-fw","bwi-sm"]],template:function(e,t){1&e&&w.DNE(0,GE,12,10,"div",1),2&e&&w.Y8G("ngIf",t.showRegionSelector)},dependencies:[Tv.G,L.Sq,L.bT,Hp.Wk,ve.R,Kb.Z,Zb.O,Hb.S,Tp.r,L.Jj,Hh.$],encapsulation:2});var OE=i(80504);class NE extends qA.FO{constructor(){super(gs.B.Ready)}}NE.ɵfac=function(e){return new(e||NE)},NE.ɵprov=B.jDH({token:NE,factory:NE.ɵfac,providedIn:"root"});var jE=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class YE{constructor(){this.dialogRef=(0,B.WQX)(mh.ce),this.flightRecorder=(0,B.WQX)(NE),this.fileDownloadService=(0,B.WQX)(VA.y),this.download=()=>jE(this,void 0,void 0,function*(){const e=yield this.flightRecorder.read();this.fileDownloadService.download((0,qA.Vf)(e)),yield this.dialogRef.close()})}static open(e){return e.open(YE,{positionStrategy:new T.u})}}YE.ɵfac=function(e){return new(e||YE)},YE.ɵcmp=w.VBU({type:YE,selectors:[["ng-component"]],decls:18,vars:15,consts:[["bitDialogIcon","","name","bwi-info-circle",1,"tw-text-info","tw-text-3xl"],["bitDialogTitle",""],["bitDialogContent",""],["bitLink","","href","https://bitwarden.com/contact/","target","_blank","rel","noopener noreferrer","endIcon","bwi-external-link"],["bitDialogFooter",""],["bitButton","","type","button","buttonType","primary",3,"click"],["bitButton","","type","button","buttonType","secondary","bitDialogClose",""]],template:function(e,t){1&e&&(w.j41(0,"bit-simple-dialog"),w.nrm(1,"bit-icon",0),w.j41(2,"span",1),w.EFF(3),w.nI1(4,"i18n"),w.k0s(),w.j41(5,"span",2),w.EFF(6),w.nI1(7,"i18n"),w.j41(8,"a",3),w.EFF(9),w.nI1(10,"i18n"),w.k0s()(),w.qex(11,4),w.j41(12,"button",5),w.bIt("click",function(){return t.download()}),w.EFF(13),w.nI1(14,"i18n"),w.k0s(),w.j41(15,"button",6),w.EFF(16),w.nI1(17,"i18n"),w.k0s(),w.bVm(),w.k0s()),2&e&&(w.R7$(3),w.SpI(" ",w.bMT(4,5,"experiencingAnIssue")," "),w.R7$(3),w.SpI(" ",w.bMT(7,7,"downloadDiagnosticReportWith")," "),w.R7$(3),w.SpI(" ",w.bMT(10,9,"bitwardenSupport")," "),w.R7$(4),w.SpI(" ",w.bMT(14,11,"download")," "),w.R7$(3),w.SpI(" ",w.bMT(17,13,"close")," "))},dependencies:[ph.P,yh.I,Ch.LJ,Ch.hJ,Ch.o_,Ah.t,fh.Q,le.o,ve.R,Gh.V,jh.g,ce.$Z],encapsulation:2,changeDetection:0});var XE=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class zE{constructor(){this.flightRecorder=(0,B.WQX)(NE),this.fileDownloadService=(0,B.WQX)(VA.y),this.download=()=>XE(this,void 0,void 0,function*(){const e=yield this.flightRecorder.read();this.fileDownloadService.download((0,qA.Vf)(e))})}}zE.ɵfac=function(e){return new(e||zE)},zE.ɵcmp=w.VBU({type:zE,selectors:[["app-download-event-logs"]],decls:9,vars:9,consts:[["bitTypography","body1"],["bitLink","","href","https://bitwarden.com/contact/","target","_blank","rel","noopener noreferrer","endIcon","bwi-external-link"],["bitButton","","type","button","buttonType","primary",3,"click"]],template:function(e,t){1&e&&(w.j41(0,"p",0),w.EFF(1),w.nI1(2,"i18n"),w.j41(3,"a",1),w.EFF(4),w.nI1(5,"i18n"),w.k0s()(),w.j41(6,"button",2),w.bIt("click",function(){return t.download()}),w.EFF(7),w.nI1(8,"i18n"),w.k0s()),2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,3,"troubleshootingDiagnosticReport")," "),w.R7$(3),w.SpI(" ",w.bMT(5,5,"bitwardenSupport")," "),w.R7$(3),w.SpI(" ",w.bMT(8,7,"download"),"\n"))},dependencies:[Ah.t,fh.Q,Gh.V,jh.g,Fp.E,Tp.r,ce.$Z],encapsulation:2,changeDetection:0});class LE{constructor(e){this.logService=e,this.logs=[]}record(e){this.logs.push(e),this.logService.info(`[DataRecovery] ${e}`)}getLogs(){return[...this.logs]}}var WE=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class KE{constructor(e){this.apiService=e,this.title="recoveryStepSyncTitle"}runDiagnostics(e,t){return WE(this,void 0,void 0,function*(){var i,n,r,s,o,a;const l=yield this.apiService.getSync();return e.ciphers=l.ciphers.map(e=>new rc.o(new $l.A(e))),t.record(`Fetched ${e.ciphers.length} ciphers from server`),e.folders=l.folders.map(e=>new Qu.v(new bc(e))),t.record(`Fetched ${e.folders.length} folders from server`),e.encryptedPrivateKey=null!==(s=null===(r=null===(n=null===(i=l.profile)||void 0===i?void 0:i.accountKeys)||void 0===n?void 0:n.publicKeyEncryptionKeyPair)||void 0===r?void 0:r.wrappedPrivateKey)&&void 0!==s?s:null,t.record(`Fetched encrypted private key of length ${null!==(a=null===(o=e.encryptedPrivateKey)||void 0===o?void 0:o.length)&&void 0!==a?a:0} from server`),!0})}canRecover(e){return!1}runRecovery(e,t){return Promise.resolve()}}var ZE=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class HE{constructor(e,t){this.accountService=e,this.keyService=t,this.title="recoveryStepUserInfoTitle"}runDiagnostics(e,t){return ZE(this,void 0,void 0,function*(){const i=yield(0,u._)(this.accountService.activeAccount$);if(!i)return t.record("No active account found"),!1;const n=i.id;e.userId=n,t.record(`User ID: ${n}`);const r=yield(0,u._)(this.keyService.userKey$(n));return r?(e.userKey=r,t.record("User encryption type: "+(r.inner().type===Pn.Qd.AesCbc256_HmacSha256_B64?"V1":r.inner().type===Pn.Qd.CoseEncrypt0?"Cose":"Unknown")),!0):(t.record("No user key found"),!1)})}canRecover(e){return!1}runRecovery(e,t){return Promise.resolve()}}var JE=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class qE{constructor(e,t,i){this.privateKeyRegenerationService=e,this.dialogService=t,this.cryptoFunctionService=i,this.title="recoveryStepPrivateKeyTitle"}runDiagnostics(e,t){return JE(this,void 0,void 0,function*(){if(!e.userId||!e.userKey)return t.record("Missing user ID or user key"),!1;const i=e.encryptedPrivateKey;if(!i)return t.record("No encrypted private key found"),!1;let n;t.record("Private key length: "+i.length);try{yield gs.B.Ready,n=ps.PureCrypto.unwrap_decapsulation_key(i,e.userKey.toEncoded())}catch(r){return t.record("Private key was un-decryptable"),e.isPrivateKeyCorrupt=!0,!1}try{const e=yield this.cryptoFunctionService.rsaExtractPublicKey(n);t.record("Public key length: "+e.length)}catch(s){return t.record("Public key could not be derived; private key is corrupt"),e.isPrivateKeyCorrupt=!0,!1}return!0})}canRecover(e){return e.isPrivateKeyCorrupt&&null!==e.userKey&&e.userKey.inner().type===Pn.Qd.AesCbc256_HmacSha256_B64}runRecovery(e,t){return JE(this,void 0,void 0,function*(){t.record("Showing confirmation dialog for private key replacement");if(!(yield this.dialogService.openSimpleDialog({title:{key:"recoveryReplacePrivateKeyTitle"},content:{key:"recoveryReplacePrivateKeyDesc"},acceptButtonText:{key:"ok"},cancelButtonText:{key:"cancel"},type:"danger"})))throw t.record("User cancelled private key replacement"),new Error("Private key recovery cancelled by user");t.record("Replacing private key");(yield this.privateKeyRegenerationService.regenerateUserPublicKeyEncryptionKeyPair(e.userId))?t.record("Private key replacement replaced successfully"):t.record("Private key replacement could not be performed")})}}var $E=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class _E{constructor(e,t){this.folderService=e,this.dialogService=t,this.title="recoveryStepFoldersTitle",this.undecryptableFolderIds=[],this.decryptableFolderIds=[]}runDiagnostics(e,t){return $E(this,void 0,void 0,function*(){var i;if(!e.userKey)return t.record("Missing user key"),!1;this.undecryptableFolderIds=[],this.decryptableFolderIds=[];for(const r of e.folders)if(null===(i=r.name)||void 0===i?void 0:i.encryptedString)try{yield gs.B.Ready,ps.PureCrypto.symmetric_decrypt_string(r.name.encryptedString,e.userKey.toEncoded()),this.decryptableFolderIds.push(r.id)}catch(n){t.record(`Folder name for folder ID ${r.id} was undecryptable`),this.undecryptableFolderIds.push(r.id)}else t.record(`Folder ID ${r.id} has no name`),this.undecryptableFolderIds.push(r.id);return t.record(`Found ${this.undecryptableFolderIds.length} undecryptable folders`),t.record(`Found ${this.decryptableFolderIds.length} decryptable folders`),0==this.undecryptableFolderIds.length})}canRecover(e){return this.undecryptableFolderIds.length>0&&this.decryptableFolderIds.length>0}runRecovery(e,t){return $E(this,void 0,void 0,function*(){if(0===this.undecryptableFolderIds.length)return void t.record("No undecryptable folders to recover");if(!e.userId)throw t.record("Missing user ID"),new Error("Missing user ID");t.record(`Showing confirmation dialog for ${this.undecryptableFolderIds.length} folders`);if(!(yield this.dialogService.openSimpleDialog({title:{key:"recoveryDeleteFoldersTitle"},content:{key:"recoveryDeleteFoldersDesc"},acceptButtonText:{key:"ok"},cancelButtonText:{key:"cancel"},type:"danger"})))throw t.record("User cancelled folder deletion"),new Error("Folder recovery cancelled by user");t.record(`Deleting ${this.undecryptableFolderIds.length} folders`);for(const n of this.undecryptableFolderIds)try{yield this.folderService.delete(n,e.userId),t.record(`Deleted folder ${n}`)}catch(i){t.record(`Failed to delete folder ${n}: ${i}`)}t.record(`Successfully deleted ${this.undecryptableFolderIds.length} folders`)})}getUndecryptableFolderIds(){return this.undecryptableFolderIds}}var eS=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class tS{constructor(e,t,i){this.apiService=e,this.cipherService=t,this.dialogService=i,this.title="recoveryStepCipherTitle",this.undecryptableCipherIds=[],this.decryptableCipherIds=[]}runDiagnostics(e,t){return eS(this,void 0,void 0,function*(){if(!e.userId)return t.record("Missing user ID"),!1;this.undecryptableCipherIds=[],this.decryptableCipherIds=[];const i=e.ciphers.filter(e=>null==e.organizationId);for(const r of i)try{yield this.cipherService.decrypt(r,e.userId),this.decryptableCipherIds.push(r.id)}catch(n){t.record(`Cipher ID ${r.id} was undecryptable`),this.undecryptableCipherIds.push(r.id)}return t.record(`Found ${this.undecryptableCipherIds.length} undecryptable ciphers`),t.record(`Found ${this.decryptableCipherIds.length} decryptable ciphers`),0==this.undecryptableCipherIds.length})}canRecover(e){return this.undecryptableCipherIds.length>0&&this.decryptableCipherIds.length>0}runRecovery(e,t){return eS(this,void 0,void 0,function*(){if(0===this.undecryptableCipherIds.length)return void t.record("No undecryptable ciphers to recover");t.record(`Showing confirmation dialog for ${this.undecryptableCipherIds.length} ciphers`);if(!(yield this.dialogService.openSimpleDialog({title:{key:"recoveryDeleteCiphersTitle"},content:{key:"recoveryDeleteCiphersDesc"},acceptButtonText:{key:"ok"},cancelButtonText:{key:"cancel"},type:"danger"})))throw t.record("User cancelled cipher deletion"),new Error("Cipher recovery cancelled by user");t.record(`Deleting ${this.undecryptableCipherIds.length} ciphers`);for(const i of this.undecryptableCipherIds)try{yield this.apiService.deleteCipher(i),t.record(`Deleted cipher ${i}`)}catch(e){const n=e instanceof Error?e.message:String(e);throw t.record(`Failed to delete cipher ${i}: ${n}`),e}t.record(`Successfully deleted ${this.undecryptableCipherIds.length} ciphers`)})}}var iS=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function nS(e,t){if(1&e&&(w.j41(0,"button",4),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e){const e=w.XpG();w.Y8G("bitAction",e.runDiagnostics),w.R7$(),w.SpI(" ",w.bMT(2,2,"runDiagnostics")," ")}}function rS(e,t){1&e&&w.nrm(0,"i",9)}function sS(e,t){1&e&&w.nrm(0,"i",10)}function oS(e,t){1&e&&w.nrm(0,"i",11)}function aS(e,t){1&e&&w.nrm(0,"i",12)}function lS(e,t){if(1&e&&(w.j41(0,"div",7)(1,"div",8),w.nVh(2,rS,1,0,"i",9)(3,sS,1,0,"i",10)(4,oS,1,0,"i",11)(5,aS,1,0,"i",12),w.k0s(),w.j41(6,"div")(7,"span"),w.EFF(8),w.k0s()()()),2&e){const e=w.XpG().$implicit,t=w.XpG();w.R7$(2),w.vxM(e.status===t.StepStatus.Failed?2:e.status===t.StepStatus.Completed?3:e.status===t.StepStatus.InProgress?4:5),w.R7$(5),w.AVh("tw-text-danger",e.status===t.StepStatus.Failed)("tw-text-success",e.status===t.StepStatus.Completed)("tw-text-primary-600",e.status===t.StepStatus.InProgress)("tw-font-semibold",e.status===t.StepStatus.InProgress)("tw-text-secondary-500",e.status===t.StepStatus.NotStarted),w.R7$(),w.SpI(" ",e.title," ")}}function cS(e,t){if(1&e&&w.nVh(0,lS,9,12,"div",7),2&e){const e=t.$index,i=w.XpG();w.vxM(0===e&&i.hasStarted()||e>0&&(i.steps()[e-1].status===i.StepStatus.Completed||i.steps()[e-1].status===i.StepStatus.Failed)?0:-1)}}function dS(e,t){if(1&e&&(w.j41(0,"button",13),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e){const e=w.XpG(2);w.Y8G("disabled",e.status()===e.StepStatus.InProgress)("bitAction",e.runRecovery),w.R7$(),w.SpI(" ",w.bMT(2,3,"repairIssues")," ")}}function uS(e,t){if(1&e&&(w.j41(0,"div",6),w.nVh(1,dS,3,5,"button",13),w.j41(2,"button",14),w.EFF(3),w.nI1(4,"i18n"),w.k0s()()),2&e){const e=w.XpG();w.R7$(),w.vxM(e.hasIssues()&&!e.recoveryCompleted()?1:-1),w.R7$(),w.Y8G("bitAction",e.saveDiagnosticLogs),w.R7$(),w.SpI(" ",w.bMT(4,3,"saveDiagnosticLogs")," ")}}const hS=Object.freeze({NotStarted:0,InProgress:1,Completed:2,Failed:3});class AS{constructor(){this.StepStatus=hS,this.i18nService=(0,B.WQX)(he.W),this.apiService=(0,B.WQX)(je.G),this.accountService=(0,B.WQX)(N.D),this.keyService=(0,B.WQX)(I.Lu),this.folderApiService=(0,B.WQX)(Md.w),this.cipherEncryptService=(0,B.WQX)(Fd),this.dialogService=(0,B.WQX)(T.o),this.privateKeyRegenerationService=(0,B.WQX)(I.wM),this.cryptoFunctionService=(0,B.WQX)(hs.R),this.logService=(0,B.WQX)(qA.Kc),this.fileDownloadService=(0,B.WQX)(VA.y),this.logger=new LE(this.logService),this.recoverySteps=[new HE(this.accountService,this.keyService),new KE(this.apiService),new qE(this.privateKeyRegenerationService,this.dialogService,this.cryptoFunctionService),new _E(this.folderApiService,this.dialogService),new tS(this.apiService,this.cipherEncryptService,this.dialogService)],this.workingData=null,this.status=(0,B.vPA)(hS.NotStarted),this.hasStarted=(0,B.vPA)(!1),this.diagnosticsCompleted=(0,B.vPA)(!1),this.recoveryCompleted=(0,B.vPA)(!1),this.steps=(0,B.vPA)(this.recoverySteps.map(e=>({title:this.i18nService.t(e.title),status:hS.NotStarted}))),this.hasIssues=(0,B.vPA)(!1),this.runDiagnostics=()=>iS(this,void 0,void 0,function*(){this.status()!==hS.InProgress&&(this.hasStarted.set(!0),this.status.set(hS.InProgress),this.diagnosticsCompleted.set(!1),this.logger.record("Starting diagnostics..."),this.workingData={userId:null,userKey:null,isPrivateKeyCorrupt:!1,encryptedPrivateKey:null,ciphers:[],folders:[]},yield this.runDiagnosticsInternal(),this.status.set(hS.Completed),this.diagnosticsCompleted.set(!0))}),this.runRecovery=()=>iS(this,void 0,void 0,function*(){if(this.status()!==hS.InProgress&&this.workingData){this.status.set(hS.InProgress),this.recoveryCompleted.set(!1),this.logger.record("Starting recovery process...");try{for(let e=0;e<this.recoverySteps.length;e++){const t=this.recoverySteps[e];t.canRecover(this.workingData)&&(this.logger.record(`Running recovery for step: ${t.title}`),yield t.runRecovery(this.workingData,this.logger))}this.logger.record("Recovery process completed"),this.recoveryCompleted.set(!0),this.logger.record("Re-running diagnostics to verify recovery..."),yield this.runDiagnosticsInternal(),this.status.set(hS.Completed)}catch(e){this.logger.record(`Recovery process cancelled or failed: ${e.message}`),this.status.set(hS.Failed)}}}),this.saveDiagnosticLogs=()=>{const e=this.logger.getLogs(),t=`data-recovery-logs-${(new Date).toISOString().replace(/[:.]/g,"-")}.txt`,i=e.join("\n");this.fileDownloadService.download({fileName:t,blobData:i,blobOptions:{type:"text/plain"}}),this.logger.record("Diagnostic logs saved")}}runDiagnosticsInternal(){return iS(this,void 0,void 0,function*(){if(!this.workingData)return void this.logger.record("No working data available");const e=this.steps();let t=!1;for(let r=0;r<this.recoverySteps.length;r++){const i=this.recoverySteps[r];e[r].status=hS.InProgress,this.steps.set([...e]),this.logger.record(`Running diagnostics for step: ${i.title}`);try{const n=yield i.runDiagnostics(this.workingData,this.logger);e[r].status=n?hS.Completed:hS.Failed,n||(t=!0),this.steps.set([...e]),this.logger.record(`Diagnostics completed for step: ${i.title}`)}catch(n){e[r].status=hS.Failed,e[r].message=n.message,this.steps.set([...e]),this.logger.record(`Diagnostics failed for step: ${i.title} with error: ${n.message}`),t=!0}}t?this.logger.record("Diagnostics completed with errors"):this.logger.record("Diagnostics completed successfully");const i=this.recoverySteps.some(e=>e.canRecover(this.workingData));this.hasIssues.set(i)})}}AS.ɵfac=function(e){return new(e||AS)},AS.ɵcmp=w.VBU({type:AS,selectors:[["app-data-recovery"]],decls:16,vars:11,consts:[["bitTypography","h1",1,"tw-mt-6"],[1,"tw-mt-16","tw-mb-2","tw-pb-2.5"],[1,"tw-max-w-lg"],["bitTypography","body1",1,"tw-mb-4"],["type","button","bitButton","","buttonType","primary",1,"tw-mb-6",3,"bitAction"],[1,"tw-space-y-3","tw-mb-6"],[1,"tw-flex","tw-gap-3"],[1,"tw-flex","tw-items-start","tw-gap-3"],[1,"tw-mt-1"],["aria-hidden","true",1,"bwi","bwi-close","tw-text-danger"],["aria-hidden","true",1,"bwi","bwi-check","tw-text-success"],["aria-hidden","true",1,"bwi","bwi-spinner","bwi-spin","tw-text-primary-600"],["aria-hidden","true",1,"bwi","bwi-circle","tw-text-secondary-300"],["type","button","bitButton","","buttonType","primary",3,"disabled","bitAction"],["type","button","bitButton","","buttonType","secondary","startIcon","bwi-download",3,"bitAction"]],template:function(e,t){1&e&&(w.j41(0,"h1",0),w.EFF(1),w.nI1(2,"i18n"),w.k0s(),w.nrm(3,"app-download-event-logs"),w.j41(4,"h2",1),w.EFF(5),w.nI1(6,"i18n"),w.k0s(),w.j41(7,"div",2)(8,"p",3),w.EFF(9),w.nI1(10,"i18n"),w.k0s(),w.nVh(11,nS,3,4,"button",4),w.j41(12,"div",5),w.Z7z(13,cS,1,1,null,null,w.Vm6),w.k0s(),w.nVh(15,uS,5,5,"div",6),w.k0s()),2&e&&(w.R7$(),w.JRh(w.bMT(2,5,"troubleshooting")),w.R7$(4),w.JRh(w.bMT(6,7,"dataRecoveryTitle")),w.R7$(4),w.SpI(" ",w.bMT(10,9,"dataRecoveryDescription")," "),w.R7$(2),w.vxM(t.diagnosticsCompleted()||t.recoveryCompleted()?-1:11),w.R7$(2),w.Dyx(t.steps()),w.R7$(2),w.vxM(t.diagnosticsCompleted()?15:-1))},dependencies:[Nh.p,Ah.t,fh.Q,L.MD,Tv.G,Up.p,Tp.r,zE,Hh.$],encapsulation:2,changeDetection:0});var pS=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class gS{constructor(e){this.routerService=e,this.onBeforeNavigation=()=>pS(this,void 0,void 0,function*(){yield this.routerService.getAndClearLoginRedirectUrl()})}}gS.ɵfac=function(e){return new(e||gS)(w.rXU(jg.H))},gS.ɵcmp=w.VBU({type:gS,selectors:[["app-confirm-key-connector-domain"]],decls:1,vars:1,consts:[[3,"onBeforeNavigation"]],template:function(e,t){1&e&&w.nrm(0,"confirm-key-connector-domain",0),2&e&&w.Y8G("onBeforeNavigation",t.onBeforeNavigation)},dependencies:[Zp],encapsulation:2});var vS=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class mS{constructor(e){this.platformUtilsService=e,this.year="2015"}ngOnInit(){return vS(this,void 0,void 0,function*(){this.year=(new Date).getFullYear().toString(),this.version=yield this.platformUtilsService.getApplicationVersion(),document.body.classList.add("layout_frontend")})}ngOnDestroy(){document.body.classList.remove("layout_frontend")}}mS.ɵfac=function(e){return new(e||mS)(w.rXU(G.y))},mS.ɵcmp=w.VBU({type:mS,selectors:[["app-frontend-layout"]],decls:12,vars:1,consts:[[1,"tw-text-center","tw-my-12"],["bitTypography","body2"],["bitTypography","helper","id","vw-disclaimer"]],template:function(e,t){1&e&&(w.nrm(0,"router-outlet"),w.j41(1,"footer",0),w.nrm(2,"environment-selector"),w.j41(3,"div",1),w.EFF(4,"Vaultwarden Web"),w.k0s(),w.j41(5,"div",1),w.EFF(6),w.k0s(),w.nrm(7,"br"),w.j41(8,"div",2),w.EFF(9," A modified version of the Bitwarden® Web Vault for Vaultwarden (an unofficial rewrite of the Bitwarden® server)."),w.nrm(10,"br"),w.EFF(11," Vaultwarden is not associated with the Bitwarden® project nor Bitwarden Inc. "),w.k0s()()),2&e&&(w.R7$(6),w.JRh(t.version))},dependencies:[Tv.G,R.n3,Tp.r,UE],encapsulation:2});const fS=te.JW`
|
|
<svg version="1.1" viewBox="0 0 800 200" xmlns="http://www.w3.org/2000/svg">
|
|
<g class="tw-fill-fg-nav" clip-path="url(#password-manager-logo-clip)">
|
|
<path d="m457.16 129.39-11.407-36.49q-1.0783-3.3482-4.0292-15.209h-.454q-2.27 9.9313-3.9725 15.322l-11.747 36.377h-10.896l-16.968-62.197h9.8744q6.0158 23.438 9.137 35.696 3.178 12.258 3.632 16.514h.454q.62424-3.2347 1.9863-8.342 1.4188-5.1642 2.4402-8.1717l11.407-35.696h10.215l11.123 35.696q3.178 9.7611 4.313 16.401h.454q.227-2.043 1.1918-6.2993 1.0215-4.2562 11.861-45.797h9.7611l-17.195 62.197zm77.858 0-1.8727-8.8528h-.454q-4.6535 5.8455-9.3072 7.9451-4.5968 2.043-11.52 2.043-9.2503 0-14.528-4.767-5.221-4.767-5.221-13.563 0-18.841 30.134-19.749l10.555-.3405v-3.859q0-7.3209-3.178-10.783-3.1212-3.5185-10.045-3.5185-7.7748 0-17.592 4.767l-2.8943-7.207q4.5968-2.497 10.045-3.9158 5.5048-1.4187 11.009-1.4187 11.123 0 16.457 4.9373 5.3912 4.9373 5.3912 15.833v42.449zm-21.281-6.6399q8.7964 0 13.79-4.8238 5.0508-4.8238 5.0508-13.506v-5.6183l-9.4205.39725q-11.237.39725-16.231 3.5185-4.9372 3.0645-4.9372 9.5908 0 5.1075 3.0645 7.7748 3.1212 2.6672 8.6825 2.6672zm76.045-56.693q4.1428 0 7.4343.68101l-1.3053 8.7395q-3.859-.85122-6.8101-.85122-7.5476 0-12.939 6.1291-5.3345 6.1291-5.3345 15.266v33.369h-9.4205v-62.197h7.7748l1.0783 11.52h.454q3.4617-6.0721 8.3425-9.3636 4.8805-3.2915 10.726-3.2915zm59.077 54.991h-.51081q-6.526 9.4775-19.522 9.4775-12.201 0-19.011-8.342-6.7532-8.342-6.7532-23.721t6.8102-23.892q6.8101-8.5122 18.954-8.5122 12.655 0 19.408 9.1933h.73779l-.39725-4.4832-.22704-4.3697v-25.311h9.4205v88.301h-7.6615zm-18.841 1.589q9.6478 0 13.96-5.221 4.3697-5.2777 4.3697-16.968v-1.9863q0-13.223-4.4264-18.841-4.3698-5.675-14.017-5.675-8.2856 0-12.712 6.4696-4.3698 6.4127-4.3698 18.16 0 11.918 4.3698 17.99 4.3697 6.0721 12.825 6.0721zm74 7.8881q-13.79 0-21.792-8.3989-7.9451-8.3989-7.9451-23.324 0-15.039 7.3773-23.892 7.4343-8.8528 19.919-8.8528 11.69 0 18.501 7.7179 6.8101 7.6615 6.8101 20.26v5.9588h-42.846q.28376 10.953 5.5048 16.628 5.2777 5.675 14.812 5.675 10.045 0 19.863-4.1995v8.3989q-4.994 2.1565-9.4775 3.0645-4.4265.96478-10.726.96478zm-2.5537-56.58q-7.4912 0-11.975 4.8805-4.4265 4.8805-5.221 13.506h32.518q0-8.9097-3.9725-13.62-3.9725-4.767-11.35-4.767zm84.047 55.445v-40.236q0-7.6045-3.4617-11.35-3.4618-3.7455-10.839-3.7455-9.7611 0-14.301 5.2777t-4.54 17.422v32.631h-9.4205v-62.197h7.6615l1.5322 8.5122h.45403q2.8942-4.5968 8.1153-7.0937 5.221-2.5537 11.634-2.5537 11.237 0 16.912 5.448 5.675 5.3912 5.675 17.309v40.576z"/>
|
|
<path d="m213.24 129.39-3.3482-8.6261h-.454q-4.3697 5.5048-9.023 7.6615-4.5968 2.0998-12.031 2.0998-9.137 0-14.415-5.221-5.221-5.221-5.221-14.869 0-10.102 7.0368-14.869 7.0937-4.8238 21.338-5.3345l11.009-.3405v-2.7808q0-9.6478-9.8744-9.6478-7.6045 0-17.876 4.5968l-5.7318-11.69q10.953-5.7318 24.289-5.7318 12.769 0 19.579 5.5615 6.8102 5.5615 6.8102 16.912v42.279zm-5.1075-29.397-6.6962.227q-7.5476.227-11.237 2.724-3.6888 2.497-3.6888 7.6045 0 7.321 8.3989 7.321 6.0158 0 9.5908-3.4617 3.632-3.4617 3.632-9.1933zm79.962 29.397-2.3268-8.1153h-.908q-2.7808 4.4265-7.8881 6.8665-5.1075 2.3835-11.634 2.3835-11.18 0-16.855-5.9588-5.675-6.0158-5.675-17.252v-41.371h17.309v37.058q0 6.8665 2.4402 10.328 2.4402 3.405 7.7748 3.405 7.264 0 10.499-4.8238 3.2348-4.8805 3.2348-16.117v-29.85h17.309v63.447zm48.748 0h-17.309v-88.301h17.309zm44.889-12.655q4.54 0 10.896-1.9863v12.882q-6.4696 2.8943-15.89 2.8943-10.385 0-15.152-5.221-4.7103-5.2777-4.7103-15.776v-30.588h-8.2856v-7.321l9.5338-5.7885 4.994-13.393h11.066v13.506h17.763v12.996h-17.763v30.588q0 3.6887 2.043 5.448 2.0998 1.7592 5.5047 1.7592z"/>
|
|
<path d="m51.982 33.947-15.322.002 41.131 115.17h14.518l41.131-115.17h-15.162l-25.971 73.872c-1.7205 4.7315-3.1706 9.1927-4.3535 13.387-1.1829 4.086-2.1516 8.0119-2.9043 11.775-.75272-3.7636-1.7195-7.7417-2.9023-11.936-1.1829-4.1938-2.635-8.7098-4.3555-13.549l-25.809-73.552z"/>
|
|
<path d="m84.264 5.0749a2.3288 2.3288 0 00-1.2122.99654l-4.145 6.9077c-.72599.06029-1.4502.12529-2.1701.20657l-5.406-5.9599a2.3288 2.3288 0 00-3.9203.77975l-2.7161 7.5796c-.7008.20184-1.4008.40458-2.0929.62653l-6.4616-4.7875a2.3288 2.3288 0 00-3.691 1.53l-1.1884 7.9871c-.63834.33084-1.2749.66363-1.9023 1.0124l-7.297-3.4482a2.3288 2.3288 0 00-3.3222 2.2201l.39272 8.0937c-.55229.44111-1.0997.8874-1.639 1.3438l-7.8588-1.9647a2.3288 2.3288 0 00-2.825 2.825l1.9647 7.8588c-.45646.53923-.90273 1.0867-1.3439 1.639l-8.0937-.39271a2.3288 2.3288 0 00-2.2201 3.3222l3.4482 7.297c-.3488.62737-.68158 1.2639-1.0124 1.9023l-7.9871 1.1884a2.3288 2.3288 0 00-1.53 3.6911l4.7875 6.4616c-.22196.69217-.4247 1.3921-.62653 2.093l-7.5796 2.7161a2.3288 2.3288 0 00-.77976 3.9203l5.9599 5.4061c-.08128.71995-.14628 1.4442-.20657 2.1701l-6.9077 4.1451a2.3288 2.3288 0 000 3.9952l6.9077 4.1439c.06028.72636.12524 1.451.20657 2.1713l-5.9599 5.4061a2.3288 2.3288 0 00.77976 3.9192l7.5796 2.7161c.20188.70099.4045 1.4017.62653 2.0941l-4.7875 6.4605a2.3288 2.3288 0 001.53 3.6922l7.9871 1.1884c.33079.63822.6637 1.275 1.0124 1.9023l-3.4482 7.297a2.3288 2.3288 0 002.2201 3.3222l8.0937-.39272c.44117.55235.88734 1.0997 1.3439 1.639l-1.9647 7.8588a2.3288 2.3288 0 002.825 2.825l7.8588-1.9647c.53923.45647 1.0867.90273 1.639 1.3438l-.39272 8.0926a2.3288 2.3288 0 003.3222 2.2201l7.297-3.447c.62736.34881 1.2639.68158 1.9023 1.0124l1.1884 7.987a2.3288 2.3288 0 003.691 1.5289l6.4616-4.7864c.69217.22197 1.3921.4247 2.0929.62654l2.7161 7.5796a2.3288 2.3288 0 003.9203.7786l5.4049-5.9588c.72031.0813 1.4449.14624 2.1713.20656l4.145 6.9077a2.3288 2.3288 0 003.9952 0l4.1439-6.9077c.72674-.0603 1.4517-.12518 2.1724-.20656l5.4049 5.9588a2.3288 2.3288 0 003.9192-.7786l2.7161-7.5796c.70103-.20189 1.4017-.4045 2.0941-.62654l6.4605 4.7864a2.3288 2.3288 0 003.6922-1.5289l1.1884-7.987c.63823-.33079 1.275-.6637 1.9023-1.0124l7.297 3.447a2.3288 2.3288 0 003.3222-2.2201l-.39271-8.0926c.55234-.44117 1.0997-.88734 1.639-1.3438l7.8588 1.9647a2.3288 2.3288 0 002.825-2.825l-1.9647-7.8588c.4565-.53928.90269-1.0866 1.3438-1.639l8.0926.39272a2.3288 2.3288 0 002.2201-3.3222l-3.447-7.297c.34872-.62723.68163-1.264 1.0124-1.9023l7.987-1.1884a2.3288 2.3288 0 001.5289-3.6922l-4.7863-6.4605c.22202-.69235.42462-1.3931.62652-2.0941l7.5796-2.7161a2.3288 2.3288 0 00.77862-3.9192l-5.9588-5.4049c.0814-.72069.14623-1.4457.20658-2.1724l6.9077-4.1439a2.3288 2.3288 0 000-3.9952l-6.9077-4.1451c-.0603-.72635-.12524-1.451-.20658-2.1713l5.9588-5.4049a2.3288 2.3288 0 00-.77862-3.9203l-7.5796-2.7161c-.20184-.70082-.40457-1.4008-.62652-2.093l4.7863-6.4616a2.3288 2.3288 0 00-1.5289-3.6911l-7.987-1.1884c-.33084-.63836-.66362-1.2749-1.0124-1.9023l3.447-7.297a2.3288 2.3288 0 00-2.2201-3.3222l-8.0926.39271c-.44112-.55229-.8874-1.0997-1.3438-1.639l1.9647-7.8588a2.3288 2.3288 0 00-2.825-2.825l-7.8588 1.9647c-.53927-.4565-1.0866-.9027-1.639-1.3438l.39271-8.0937a2.3288 2.3288 0 00-3.3222-2.2201l-7.297 3.4482c-.62726-.34873-1.264-.68165-1.9023-1.0124l-1.1884-7.9871a2.3288 2.3288 0 00-3.6922-1.53l-6.4605 4.7875c-.69236-.22201-1.3931-.42463-2.0941-.62653l-2.7161-7.5796a2.3288 2.3288 0 00-3.9192-.77975l-5.406 5.9599c-.72032-.08133-1.4449-.14626-2.1713-.20657l-4.1439-6.9077a2.3288 2.3288 0 00-2.783-.99654zm.78543 14.613a4.657 4.657 0 014.6569 4.6569 4.657 4.657 0 01-4.6569 4.6569 4.657 4.657 0 01-4.6569-4.6569 4.657 4.657 0 014.6569-4.6569zm-10.998 8.0064 7.7056 7.7056a4.6575 4.6575 0 006.5853 0l7.7056-7.7056c17.959 3.3214 33.023 14.65 41.468 30.141l-4.943 9.6998a4.6575 4.6575 0 002.0351 6.263l9.7123 4.9486c.32157 2.5182.49487 5.0839.49487 7.692 0 15.934-6.1974 30.369-16.306 41.066l-10.796-1.7093a4.6575 4.6575 0 00-5.3277 3.8704l-1.7116 10.804c-7.7603 3.6739-16.443 5.734-25.624 5.734-9.1812 0-17.864-2.0608-25.625-5.7352l-1.7116-10.803a4.6575 4.6575 0 00-5.3277-3.8715l-10.795 1.7105c-10.108-10.697-16.306-25.132-16.306-41.066 0-2.608.1733-5.1738.49487-7.692l9.7111-4.9486a4.6575 4.6575 0 002.0351-6.263l-4.9418-9.6986c8.4449-15.492 23.508-26.821 41.468-30.142zm-47.923 34.902a4.657 4.657 0 011.3064.22587 4.657 4.657 0 012.9896 5.868 4.657 4.657 0 01-5.868 2.9907 4.657 4.657 0 01-2.9907-5.8691 4.657 4.657 0 014.5627-3.2155zm117.84 0a4.657 4.657 0 014.5616 3.2155 4.657 4.657 0 01-2.9896 5.8691 4.657 4.657 0 01-5.868-2.9907 4.657 4.657 0 012.9896-5.868 4.657 4.657 0 011.3064-.22587zm-95.153 69.428a4.657 4.657 0 012.4709.88189 4.657 4.657 0 011.0306 6.5047 4.657 4.657 0 01-6.5047 1.0306 4.657 4.657 0 01-1.0306-6.5047 4.657 4.657 0 014.0338-1.9125zm72.463 0a4.657 4.657 0 014.0338 1.9125 4.657 4.657 0 01-1.0306 6.5047 4.657 4.657 0 01-6.5047-1.0306 4.657 4.657 0 011.0306-6.5047 4.657 4.657 0 012.4709-.88189z"/>
|
|
<path d="m304.87 145.51q7.8436 0 11.429 3.0814t3.5857 8.684q0 3.3055-1.5127 6.2189-1.4567 2.8573-4.9863 4.6502-3.4736 1.7928-9.4684 1.7928h-4.5941v15.575h-5.0423v-40.003zm-.44821 4.314h-5.0984v15.799h4.0339q5.7147 0 8.516-1.8489 2.8013-1.8488 2.8013-6.2749 0-3.8658-2.4652-5.7707-2.4651-1.9049-7.7876-1.9049zm34.456 5.1544q5.4906 0 8.1238 2.4091t2.6332 7.6756v20.449h-3.5857l-.95244-4.258h-.2241q-1.9609 2.4651-4.1459 3.6417-2.129 1.1765-5.9388 1.1765-4.0899 0-6.7792-2.129-2.6892-2.185-2.6892-6.7791 0-4.4821 3.5296-6.8912 3.5296-2.4651 10.869-2.6892l5.0984-.16808v-1.7928q0-3.7537-1.6248-5.2104t-4.5941-1.4567q-2.3531 0-4.4821.72834-2.129.67231-3.9778 1.5687l-1.5127-3.6977q1.9609-1.0645 4.6502-1.7928 2.6892-.78437 5.6026-.78437zm1.4567 16.023q-5.6026.2241-7.7876 1.7928-2.129 1.5687-2.129 4.426 0 2.5212 1.5127 3.6977 1.5687 1.1766 3.9778 1.1766 3.8098 0 6.3309-2.073 2.5212-2.129 2.5212-6.499v-2.6892zm38.154 6.2189q0 4.37-3.2495 6.6111-3.2495 2.241-8.7401 2.241-3.1375 0-5.4345-.50423-2.241-.50424-3.9778-1.4006v-4.4821q1.7928.89641 4.314 1.6808 2.5772.72834 5.2104.72834 3.7537 0 5.4345-1.1766 1.6808-1.2326 1.6808-3.2495 0-1.1205-.61628-2.0169-.61629-.89642-2.241-1.7928-1.5687-.89641-4.5381-2.0169-2.9134-1.1205-4.9863-2.241t-3.1935-2.6892-1.1205-4.0339q0-3.8098 3.0814-5.8827 3.1374-2.073 8.1798-2.073 2.7453 0 5.0984.56026 2.4091.50423 4.4821 1.4567l-1.6808 3.9218q-1.9049-.78436-3.9778-1.3446t-4.258-.56026q-3.0254 0-4.6502 1.0085-1.5687.95244-1.5687 2.6332 0 1.2326.72834 2.129.72834.84039 2.4091 1.6808 1.7368.78436 4.5941 1.9049 2.8573 1.0645 4.8743 2.185t3.0814 2.7453q1.0645 1.5687 1.0645 3.9778zm26.836 0q0 4.37-3.2495 6.6111t-8.74 2.241q-3.1375 0-5.4345-.50423-2.241-.50424-3.9778-1.4006v-4.4821q1.7928.89641 4.314 1.6808 2.5772.72834 5.2104.72834 3.7537 0 5.4345-1.1766 1.6808-1.2326 1.6808-3.2495 0-1.1205-.61629-2.0169-.61628-.89642-2.241-1.7928-1.5687-.89641-4.5381-2.0169-2.9134-1.1205-4.9863-2.241-2.073-1.1205-3.1935-2.6892t-1.1205-4.0339q0-3.8098 3.0814-5.8827 3.1375-2.073 8.1798-2.073 2.7453 0 5.0984.56026 2.4091.50423 4.4821 1.4567l-1.6808 3.9218q-1.9049-.78436-3.9778-1.3446t-4.258-.56026q-3.0254 0-4.6502 1.0085-1.5687.95244-1.5687 2.6332 0 1.2326.72833 2.129.72834.84039 2.4091 1.6808 1.7368.78436 4.5941 1.9049 2.8573 1.0645 4.8743 2.185 2.0169 1.1205 3.0814 2.7453 1.0645 1.5687 1.0645 3.9778zm26.668-8.684q-.72834-2.2971-1.2886-4.4821-.50424-2.241-.78437-3.4736h-.2241q-.2241 1.2326-.72834 3.4736-.50423 2.185-1.2886 4.5381l-5.3785 16.864h-5.6026l-8.2358-30.03h5.0984l4.1459 16.023q.61628 2.4091 1.1765 4.8743.56026 2.4651.78437 4.0899h.2241q.2241-.95245.50423-2.3531.33616-1.4006.72834-2.9134.39218-1.5687.78437-2.8013l5.3225-16.92h5.3785l5.1544 16.92q.61629 1.9049 1.1766 4.1459.61629 2.241.84039 3.8658h.2241q.16808-1.4006.72834-3.8658.61629-2.4652 1.2886-5.0423l4.202-16.023h5.0423l-8.3479 30.03h-5.7707zm50.76 1.9049q0 7.4515-3.8098 11.541-3.7537 4.0899-10.197 4.0899-3.9778 0-7.1153-1.7928-3.0814-1.8489-4.8743-5.3225-1.7928-3.5296-1.7928-8.516 0-7.4515 3.7537-11.485t10.197-4.0339q4.0899 0 7.1713 1.8488 3.1375 1.7928 4.8743 5.2664 1.7928 3.4176 1.7928 8.4039zm-22.691 0q0 5.3225 2.073 8.4599 2.129 3.0814 6.7231 3.0814 4.5381 0 6.6671-3.0814 2.129-3.1374 2.129-8.4599t-2.129-8.3479q-2.129-3.0254-6.7231-3.0254t-6.6671 3.0254q-2.073 3.0254-2.073 8.3479zm44.485-15.519q.84039 0 1.7928.11205 1.0085.056 1.7368.2241l-.61628 4.5381q-.72834-.16808-1.6248-.28013-.84039-.11205-1.6248-.11205-2.2971 0-4.314 1.2886-2.0169 1.2326-3.2495 3.5296-1.1766 2.241-1.1766 5.2664v16.023h-4.9303v-30.03h4.0339l.56026 5.4905h.2241q1.4567-2.4651 3.7537-4.258 2.2971-1.7928 5.4345-1.7928zm18.657 31.15q-5.6026 0-8.9642-3.8658-3.3616-3.9218-3.3616-11.653t3.3616-11.653q3.4176-3.9778 9.0202-3.9778 3.4736 0 5.6586 1.2886 2.241 1.2886 3.6417 3.1375h.33615q-.056-.72834-.2241-2.129-.11205-1.4567-.11205-2.2971v-11.99h4.9303v42.58h-3.9778l-.72834-4.0339h-.2241q-1.3446 1.9049-3.5857 3.2495-2.241 1.3446-5.7707 1.3446zm.78437-4.0899q4.7622 0 6.6671-2.5772 1.9609-2.6332 1.9609-7.8997v-.89641q0-5.6026-1.8488-8.572-1.8489-3.0254-6.8352-3.0254-3.9778 0-5.9948 3.1935-1.9609 3.1374-1.9609 8.4599 0 5.3785 1.9609 8.3479 2.0169 2.9694 6.0508 2.9694zm55.914 3.5296-13.166-35.072h-.2241q.16808 1.7368.28013 4.7062.11205 2.9134.11205 6.1068v24.259h-4.6502v-40.003h7.4515l12.326 32.775h.22411l12.55-32.775h7.3954v40.003h-4.9863v-24.595q0-2.9134.11205-5.7707.16808-2.8573.28013-4.6502h-.2241l-13.334 35.016zm43.868-30.534q5.4906 0 8.1238 2.4091t2.6332 7.6756v20.449h-3.5857l-.95244-4.258h-.22411q-1.9609 2.4651-4.1459 3.6417-2.129 1.1765-5.9388 1.1765-4.0899 0-6.7791-2.129-2.6892-2.185-2.6892-6.7791 0-4.4821 3.5296-6.8912 3.5296-2.4651 10.869-2.6892l5.0984-.16808v-1.7928q0-3.7537-1.6248-5.2104t-4.5941-1.4567q-2.3531 0-4.4821.72834-2.129.67231-3.9778 1.5687l-1.5127-3.6977q1.9609-1.0645 4.6502-1.7928 2.6892-.78437 5.6026-.78437zm1.4567 16.023q-5.6026.2241-7.7876 1.7928-2.129 1.5687-2.129 4.426 0 2.5212 1.5127 3.6977 1.5687 1.1766 3.9778 1.1766 3.8098 0 6.3309-2.073 2.5212-2.129 2.5212-6.499v-2.6892zm33.055-16.079q5.3785 0 8.1238 2.6332 2.7453 2.5772 2.7453 8.4039v19.553h-4.8743v-19.217q0-7.2274-6.7231-7.2274-4.9863 0-6.8912 2.8013t-1.9049 8.0677v15.575h-4.9303v-30.03h3.9778l.72834 4.0899h.28013q1.4567-2.3531 4.0339-3.4736 2.5772-1.1765 5.4345-1.1765zm31.543.056q5.4906 0 8.1238 2.4091t2.6332 7.6756v20.449h-3.5857l-.95245-4.258h-.2241q-1.9609 2.4651-4.1459 3.6417-2.129 1.1765-5.9388 1.1765-4.0899 0-6.7792-2.129-2.6892-2.185-2.6892-6.7791 0-4.4821 3.5296-6.8912 3.5296-2.4651 10.869-2.6892l5.0984-.16808v-1.7928q0-3.7537-1.6248-5.2104t-4.5941-1.4567q-2.3531 0-4.4821.72834-2.129.67231-3.9778 1.5687l-1.5127-3.6977q1.9609-1.0645 4.6502-1.7928 2.6892-.78437 5.6026-.78437zm1.4567 16.023q-5.6026.2241-7.7876 1.7928-2.129 1.5687-2.129 4.426 0 2.5212 1.5127 3.6977 1.5687 1.1766 3.9778 1.1766 3.8098 0 6.3309-2.073 2.5212-2.129 2.5212-6.499v-2.6892zm29.246-16.079q2.9694 0 5.3225 1.1205 2.4091 1.1205 4.0899 3.4176h.28013l.67231-3.9778h3.9218v30.534q0 6.443-3.3055 9.6925-3.2495 3.2495-10.141 3.2495-6.6111 0-10.813-1.9049v-4.5381q4.426 2.3531 11.093 2.3531 3.8658 0 6.0508-2.2971 2.241-2.241 2.241-6.1629v-1.1766q0-.67231.056-1.9049.056-1.2886.11205-1.7928h-.2241q-3.0254 4.5381-9.3003 4.5381-5.8267 0-9.1322-4.0899-3.2495-4.0899-3.2495-11.429 0-7.1713 3.2495-11.373 3.3055-4.258 9.0762-4.258zm.67232 4.1459q-3.7538 0-5.8267 3.0254-2.073 2.9694-2.073 8.516t2.0169 8.516q2.073 2.9134 5.9948 2.9134 4.5381 0 6.6111-2.4091 2.073-2.4651 2.073-7.8997v-1.1766q0-6.1629-2.129-8.7961-2.129-2.6892-6.6671-2.6892zm34.736-4.1459q3.8658 0 6.6111 1.6808 2.8013 1.6808 4.258 4.7622 1.5127 3.0254 1.5127 7.1153v2.9694h-20.562q.11206 5.0984 2.5772 7.7876 2.5212 2.6332 7.0032 2.6332 2.8573 0 5.0423-.50423 2.241-.56026 4.5941-1.5687v4.314q-2.2971 1.0085-4.5381 1.4567-2.241.50423-5.3225.50423-4.258 0-7.5635-1.7368-3.2495-1.7368-5.0984-5.1544-1.7928-3.4736-1.7928-8.4599 0-4.9303 1.6248-8.4599 1.6808-3.5296 4.6502-5.4345 3.0254-1.9049 7.0032-1.9049zm-.056 4.0339q-3.5296 0-5.6026 2.2971-2.0169 2.241-2.4091 6.2749h15.295q-.056-3.8098-1.7928-6.1629-1.7368-2.4091-5.4906-2.4091zm34.064-4.0339q.84039 0 1.7928.11205 1.0085.056 1.7368.2241l-.61629 4.5381q-.72834-.16808-1.6248-.28013-.84039-.11205-1.6248-.11205-2.2971 0-4.314 1.2886-2.0169 1.2326-3.2495 3.5296-1.1765 2.241-1.1765 5.2664v16.023h-4.9303v-30.03h4.0339l.56026 5.4905h.22411q1.4567-2.4651 3.7537-4.258 2.2971-1.7928 5.4345-1.7928z"/>
|
|
</g>
|
|
<defs>
|
|
<clipPath id="password-manager-logo-clip">
|
|
<path class="tw-fill-fg-nav" d="M0 0h800v200H0z"/>
|
|
</clipPath>
|
|
</defs>
|
|
</svg>
|
|
`;var yS=i(21823),bS=i(14318),CS=i(47524),IS=i(54600),wS=i(58950),BS=i(25024);class ES{constructor(){this.originalSendView=(0,B.vPA)(null),this.updatedSendView=(0,B.vPA)(null),this.originalSendView=(0,B.vPA)(null)}}function SS(e,t){1&e&&(w.j41(0,"bit-hint"),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.JRh(w.bMT(2,1,"limitSendViewsHint")))}function QS(e,t){if(1&e&&(w.j41(0,"bit-hint"),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e){const e=w.XpG(3);w.R7$(),w.SpI(" ",w.i5U(2,1,"limitSendViewsCount",e.viewsLeft()))}}function kS(e,t){if(1&e&&(w.j41(0,"bit-form-field",2)(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",5),w.nVh(5,SS,3,3,"bit-hint"),w.nVh(6,QS,3,4,"bit-hint"),w.k0s()),2&e){const e=w.XpG(2);w.Y8G("disableMargin",!e.hideEmailVisible()&&!e.privateNoteVisible()),w.R7$(2),w.JRh(w.bMT(3,5,"maxAccessCount")),w.R7$(2),w.Y8G("readonly",!e.editing()),w.R7$(),w.vxM(e.editing()?5:-1),w.R7$(),w.vxM(e.showAccessCount()?6:-1)}}function RS(e,t){if(1&e&&(w.j41(0,"bit-form-control",3),w.nrm(1,"input",6),w.j41(2,"bit-label"),w.EFF(3),w.nI1(4,"i18n"),w.k0s()()),2&e){const e=w.XpG(2);w.Y8G("disableMargin",!e.privateNoteVisible()),w.R7$(3),w.JRh(w.bMT(4,2,"hideMyEmail"))}}function FS(e,t){if(1&e&&(w.j41(0,"bit-form-field",4)(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"textarea",7),w.k0s()),2&e){const e=w.XpG(2);w.R7$(2),w.JRh(w.bMT(3,2,"privateNote")),w.R7$(2),w.Y8G("readonly",!e.editing())}}function TS(e,t){if(1&e&&(w.j41(0,"bit-section-header")(1,"h2",1),w.EFF(2),w.nI1(3,"i18n"),w.k0s()(),w.j41(4,"bit-card"),w.nVh(5,kS,7,7,"bit-form-field",2),w.nVh(6,RS,5,4,"bit-form-control",3),w.nVh(7,FS,5,4,"bit-form-field",4),w.k0s()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,4,"additionalOptions")),w.R7$(3),w.vxM(e.maxAccessCountVisible()?5:-1),w.R7$(),w.vxM(e.hideEmailVisible()?6:-1),w.R7$(),w.vxM(e.privateNoteVisible()?7:-1)}}class DS{get shouldShowCount(){return"edit"===this.sendFormService.sendFormConfig.mode&&null!==this.sendOptionsForm.value.maxAccessCount}constructor(){var e,t,i,n,s,o,l,d,u;this.sendFormService=(0,B.WQX)(ES),this.sendPolicyService=(0,B.WQX)(yQ),this.i18nService=(0,B.WQX)(he.W),this.editing=(0,r.hFB)(!1),this.sendOptionsForm=new a.gE({maxAccessCount:new a.MJ(null!==(i=null===(t=null===(e=this.sendFormService.updatedSendView())||void 0===e?void 0:e.maxAccessCount)||void 0===t?void 0:t.toString())&&void 0!==i?i:"",[this.isIntegerValidator(),a.k0.min(1)]),accessCount:new a.MJ(null!==(s=null===(n=this.sendFormService.updatedSendView())||void 0===n?void 0:n.accessCount)&&void 0!==s?s:null),notes:new a.MJ(null!==(l=null===(o=this.sendFormService.updatedSendView())||void 0===o?void 0:o.notes)&&void 0!==l?l:null),hideEmail:new a.MJ(null!==(u=null===(d=this.sendFormService.updatedSendView())||void 0===d?void 0:d.hideEmail)&&void 0!==u?u:null)}),this.anyOptionFieldVisible=(0,JA.EW)(()=>this.maxAccessCountVisible()||this.hideEmailVisible()||this.privateNoteVisible()),this.maxAccessCountVisible=(0,JA.EW)(()=>{var e;return this.editing()||null!=(null===(e=this.sendFormService.originalSendView())||void 0===e?void 0:e.maxAccessCount)}),this.showAccessCount=(0,JA.EW)(()=>{var e;return null!=(null===(e=this.sendFormService.originalSendView())||void 0===e?void 0:e.maxAccessCount)}),this.viewsLeft=(0,JA.EW)(()=>{var e,t,i,n;return((null!==(t=null===(e=this.sendFormService.originalSendView())||void 0===e?void 0:e.maxAccessCount)&&void 0!==t?t:0)-(null!==(n=null===(i=this.sendFormService.originalSendView())||void 0===i?void 0:i.accessCount)&&void 0!==n?n:0)).toString()}),this._hideEmailDisabledByPolicy=(0,c.ot)(this.sendPolicyService.disableHideEmail$),this.hideEmailVisible=(0,JA.EW)(()=>{var e;return!this._hideEmailDisabledByPolicy()&&(this.editing()||(null===(e=this.sendFormService.originalSendView())||void 0===e?void 0:e.hideEmail))}),this.hideEmailDisabled=(0,JA.EW)(()=>!this.editing()),this.privateNoteVisible=(0,JA.EW)(()=>{var e,t;return this.editing()||(null===(t=null===(e=this.sendFormService.originalSendView())||void 0===e?void 0:e.notes)||void 0===t?void 0:t.length)>0}),this.sendFormService.registerChildForm("sendOptionsForm",this.sendOptionsForm),(0,B.QZP)(()=>{var e,t,i,n,r,s;!this.editing()&&this.sendFormService.originalSendView()&&this.sendOptionsForm.patchValue({maxAccessCount:null!==(i=null===(t=null===(e=this.sendFormService.originalSendView())||void 0===e?void 0:e.maxAccessCount)||void 0===t?void 0:t.toString())&&void 0!==i?i:"",accessCount:null===(n=this.sendFormService.originalSendView())||void 0===n?void 0:n.accessCount,hideEmail:null===(r=this.sendFormService.originalSendView())||void 0===r?void 0:r.hideEmail,notes:null===(s=this.sendFormService.originalSendView())||void 0===s?void 0:s.notes})}),(0,B.QZP)(()=>{this.hideEmailDisabled()?this.sendOptionsForm.get("hideEmail").disable({emitEvent:!1}):this.sendOptionsForm.get("hideEmail").enable({emitEvent:!1})}),this.sendOptionsForm.valueChanges.pipe((0,c.pQ)()).subscribe(()=>{const e=this.sendOptionsForm.getRawValue();this.sendFormService.patchSend(t=>Object.assign(t,{maxAccessCount:null==e.maxAccessCount||""===e.maxAccessCount?null:Number(e.maxAccessCount),accessCount:e.accessCount,hideEmail:e.hideEmail,notes:e.notes}))})}isIntegerValidator(){return e=>{if(null==e.value||""==e.value)return null;const t=Number.parseFloat(e.value);if(isNaN(t))return{numberValidation:{message:this.i18nService.t("numericInputError")}};return t!==Number.parseInt(e.value)?{numberValidation:{message:this.i18nService.t("integerInputError")}}:null}}}function PS(e,t){if(1&e&&(w.j41(0,"div")(1,"div",3),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"div",4),w.EFF(5),w.k0s(),w.j41(6,"div",5),w.EFF(7),w.k0s()()),2&e){let e,t;const i=w.XpG();w.HbH(i.editing()?"":"tw-border-secondary-300/50 tw-border-b tw-border-0 tw-border-solid tw-pb-[2px]"),w.R7$(2),w.JRh(w.bMT(3,5,"file")),w.R7$(3),w.SpI(" ",null==(e=i.sendFormService.originalSendView())?null:e.file.fileName," "),w.R7$(2),w.SpI(" ",null==(t=i.sendFormService.originalSendView())?null:t.file.sizeName," ")}}function MS(e,t){if(1&e){const e=w.RV6();w.j41(0,"bit-form-field")(1,"bit-label",6),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"div",7)(5,"button",8),w.bIt("click",function(){B.eBV(e);const t=w.sdS(12);return B.Njj(t.click())}),w.EFF(6),w.nI1(7,"i18n"),w.k0s(),w.j41(8,"span",9),w.EFF(9),w.nI1(10,"i18n"),w.k0s()(),w.j41(11,"input",10,0),w.bIt("change",function(t){B.eBV(e);const i=w.XpG();return B.Njj(i.onFileSelected(t))}),w.k0s(),w.j41(13,"bit-hint"),w.EFF(14),w.nI1(15,"i18n"),w.k0s()()}if(2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,8,"fileToShare")),w.R7$(4),w.SpI(" ",w.bMT(7,10,"chooseFile")," "),w.R7$(2),w.AVh("tw-text-main",e.fileName())("tw-text-muted",!e.fileName()),w.R7$(),w.SpI(" ",e.fileName()||w.bMT(10,12,"noFileChosen")),w.R7$(5),w.SpI(" ",w.bMT(15,14,"maxFileSize")," ")}}DS.ɵfac=function(e){return new(e||DS)},DS.ɵcmp=w.VBU({type:DS,selectors:[["tools-send-options"]],inputs:{editing:[1,"editing"]},decls:2,vars:2,consts:[["disableMargin","",3,"formGroup"],["bitTypography","h6",1,"tw-mt-4"],[3,"disableMargin"],[1,"tw-flex","tw-align-middle",3,"disableMargin"],["disableMargin",""],["bitInput","","formControlName","maxAccessCount","id","maxAccessCountInput",3,"readonly"],["bitCheckbox","","type","checkbox","formControlName","hideEmail"],["bitInput","","rows","3","formControlName","notes",3,"readonly"]],template:function(e,t){1&e&&(w.j41(0,"bit-section",0),w.nVh(1,TS,8,6),w.k0s()),2&e&&(w.Y8G("formGroup",t.sendOptionsForm),w.R7$(),w.vxM(t.anyOptionFieldVisible()?1:-1))},dependencies:[vh.C,Ah.t,bS.i,Jp.q,Eb.P,L.MD,Oh.L,Sb.f,Xh.j,zh.I,Lh.J,Wh.h,Uh.Q,a.X1,a.me,a.Zm,a.BC,a.cb,a.j4,a.JD,Jb.n,wS.U,$p.p,Fp.E,Tp.r,ce.$Z],encapsulation:2,changeDetection:0});class xS{constructor(){this.sendFormService=(0,B.WQX)(ES),this.formBuilder=(0,B.WQX)(a.ok),this.editing=(0,r.hFB)(),this.sendFileDetailsForm=this.formBuilder.group({file:this.formBuilder.control(null,a.k0.required)}),this.fileName=(0,B.vPA)(""),this.sendFormService.registerChildForm("sendFileDetailsForm",this.sendFileDetailsForm),this.sendFileDetailsForm.valueChanges.pipe((0,c.pQ)()).subscribe(e=>{this.sendFormService.patchSend(t=>Object.assign(t,{file:e.file}))})}onFileSelected(e){var t;const i=null===(t=e.target.files)||void 0===t?void 0:t[0];i&&(this.fileName.set(i.name),this.sendFormService.setFile(i))}ngOnInit(){var e,t;this.sendFormService.originalSendView()&&this.sendFileDetailsForm.patchValue({file:null===(e=this.sendFormService.originalSendView())||void 0===e?void 0:e.file}),(null===(t=this.sendFormService.sendFormConfig)||void 0===t?void 0:t.areSendsAllowed)||this.sendFileDetailsForm.disable()}}xS.ɵfac=function(e){return new(e||xS)},xS.ɵcmp=w.VBU({type:xS,selectors:[["tools-send-file-details"]],inputs:{editing:[1,"editing"]},decls:3,vars:2,consts:[["fileSelector",""],[3,"formGroup"],[3,"class"],["bitTypography","body2",1,"tw-text-muted"],["data-testid","file-name",1,"tw-text-wrap","tw-break-all"],["data-testid","file-size",1,"tw-text-muted"],["for","file"],[1,"tw-flex","tw-mt-2","tw-mb-1"],["bitButton","","type","button","buttonType","secondary",3,"click"],[1,"tw-flex","tw-items-center","tw-pl-3"],["bitInput","","type","file","formControlName","file","hidden","",3,"change"]],template:function(e,t){1&e&&(w.j41(0,"bit-section",1),w.nVh(1,PS,8,7,"div",2)(2,MS,16,16,"bit-form-field"),w.k0s()),2&e&&(w.Y8G("formGroup",t.sendFileDetailsForm),w.R7$(),w.vxM("edit"===t.sendFormService.sendFormConfig.mode?1:2))},dependencies:[Ah.t,fh.Q,a.X1,a.me,a.BC,a.cb,a.j4,a.JD,Oh.L,Xh.j,zh.I,Lh.J,Wh.h,Jb.n,a.YN,Fp.E,Tp.r,ce.$Z],encapsulation:2,changeDetection:0});var VS=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function GS(e,t){1&e&&(w.j41(0,"bit-form-control"),w.nrm(1,"input",2),w.j41(2,"bit-label"),w.EFF(3),w.nI1(4,"i18n"),w.k0s()()),2&e&&(w.R7$(3),w.JRh(w.bMT(4,1,"hideTextByDefault")))}class US{constructor(){var e,t,i,n;this.formBuilder=(0,B.WQX)(a.ok),this.sendFormService=(0,B.WQX)(ES),this.editing=(0,r.hFB)(!1),this.sendTextDetailsForm=this.formBuilder.group({text:new a.MJ(null!==(t=null===(e=this.sendFormService.updatedSendView())||void 0===e?void 0:e.text.text)&&void 0!==t?t:"",a.k0.required),hidden:new a.MJ(null!==(n=null===(i=this.sendFormService.updatedSendView())||void 0===i?void 0:i.text.hidden)&&void 0!==n&&n)}),this.formDisabled=(0,JA.EW)(()=>{var e;return!this.editing()||!(null===(e=this.sendFormService.sendFormConfig)||void 0===e?void 0:e.areSendsAllowed)}),this.showHiddenCheckbox=(0,JA.EW)(()=>{var e,t,i;return this.editing()||(null===(i=null===(t=null===(e=this.sendFormService.sendFormConfig)||void 0===e?void 0:e.originalSend)||void 0===t?void 0:t.text)||void 0===i?void 0:i.hidden)}),this.sendFormService.registerChildForm("sendTextDetailsForm",this.sendTextDetailsForm),(0,B.QZP)(()=>{this.formDisabled()?this.sendTextDetailsForm.controls.hidden.disable({emitEvent:!1}):this.sendTextDetailsForm.controls.hidden.enable({emitEvent:!1})}),(0,B.QZP)(()=>{var e,t,i,n;this.editing()||this.sendTextDetailsForm.patchValue({text:(null===(t=null===(e=this.sendFormService.originalSendView())||void 0===e?void 0:e.text)||void 0===t?void 0:t.text)||"",hidden:(null===(n=null===(i=this.sendFormService.originalSendView())||void 0===i?void 0:i.text)||void 0===n?void 0:n.hidden)||!1})}),this.sendTextDetailsForm.valueChanges.pipe((0,c.pQ)()).subscribe(()=>{const e=this.sendTextDetailsForm.getRawValue();this.sendFormService.patchSend(t=>Object.assign(t,{text:{text:e.text,hidden:e.hidden}}))})}ngOnInit(){return VS(this,void 0,void 0,function*(){var e;(null===(e=this.sendFormService.sendFormConfig)||void 0===e?void 0:e.areSendsAllowed)||this.sendTextDetailsForm.disable()})}}US.ɵfac=function(e){return new(e||US)},US.ɵcmp=w.VBU({type:US,selectors:[["tools-send-text-details"]],inputs:{editing:[1,"editing"]},decls:7,vars:6,consts:[["disableMargin","",3,"formGroup"],["bitInput","","id","text","rows","3","formControlName","text",3,"readonly"],["bitCheckbox","","type","checkbox","formControlName","hidden"]],template:function(e,t){1&e&&(w.j41(0,"bit-section",0)(1,"bit-form-field")(2,"bit-label"),w.EFF(3),w.nI1(4,"i18n"),w.k0s(),w.nrm(5,"textarea",1),w.k0s(),w.nVh(6,GS,5,3,"bit-form-control"),w.k0s()),2&e&&(w.Y8G("formGroup",t.sendTextDetailsForm),w.R7$(3),w.JRh(w.bMT(4,4,"sendTypeTextToShare")),w.R7$(2),w.Y8G("readonly",t.formDisabled()),w.R7$(),w.vxM(t.showHiddenCheckbox()?6:-1))},dependencies:[Jp.q,Eb.P,a.X1,a.me,a.Zm,a.BC,a.cb,a.j4,a.JD,Oh.L,Sb.f,Xh.j,Lh.J,Wh.h,Jb.n,ce.$Z],encapsulation:2,changeDetection:0});var OS=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const NS=(e,t)=>t.label,jS=(e,t)=>t.value;function YS(e,t){if(1&e&&w.nrm(0,"tools-send-text-details",4),2&e){const e=w.XpG();w.Y8G("editing",e.editing())}}function XS(e,t){if(1&e&&w.nrm(0,"tools-send-file-details",4),2&e){const e=w.XpG();w.Y8G("editing",e.editing())}}function zS(e,t){if(1&e&&(w.nrm(0,"input",5),w.nI1(1,"date")),2&e){let e;const t=w.XpG();w.Y8G("value",w.i5U(1,1,null==(e=t.sendFormService.originalSendView())?null:e.deletionDate,"short"))}}function LS(e,t){if(1&e&&w.nrm(0,"bit-option",11),2&e){const e=t.$implicit;w.Y8G("value",e.value)("label",e.label)}}function WS(e,t){if(1&e&&(w.j41(0,"bit-select",6),w.Z7z(1,LS,1,2,"bit-option",11,NS),w.k0s()),2&e){const e=w.XpG();w.R7$(),w.Dyx(e.datePresetOptions)}}function KS(e,t){1&e&&(w.j41(0,"bit-hint"),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.JRh(w.bMT(2,1,"deletionDateDescV2")))}function ZS(e,t){if(1&e&&(w.j41(0,"bit-hint"),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e){const e=w.XpG();w.R7$(),w.JRh(w.i5U(2,1,"sendDeletionDateSetByOrg",e.policyDeletionHoursOrgName))}}function HS(e,t){if(1&e&&(w.nrm(0,"input",5),w.nI1(1,"AuthTypeName")),2&e){let e;const t=w.XpG();w.Y8G("value",w.bMT(1,1,null==(e=t.sendFormService.originalSendView())?null:e.authType))}}function JS(e,t){if(1&e&&(w.nrm(0,"bit-option",11),w.nI1(1,"i18n")),2&e){const e=t.$implicit;w.Y8G("value",e.value)("label",w.bMT(1,2,e.nameKey))}}function qS(e,t){if(1&e&&(w.j41(0,"bit-select",8),w.Z7z(1,JS,2,4,"bit-option",11,jS),w.nI1(3,"async"),w.k0s()),2&e){const e=w.XpG();w.R7$(),w.Dyx(w.bMT(3,0,e.availableAuthTypes$))}}function $S(e,t){if(1&e&&(w.j41(0,"bit-hint",1),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e){w.XpG();const e=w.r8f(29);w.R7$(),w.JRh(w.bMT(2,1,e))}}function _S(e,t){if(1&e){const e=w.RV6();w.nrm(0,"button",14),w.j41(1,"button",15),w.nI1(2,"i18n"),w.bIt("click",function(){B.eBV(e);const t=w.XpG(2);return B.Njj(t.generatePassword())}),w.k0s(),w.nrm(3,"button",16),w.nI1(4,"i18n"),w.nI1(5,"i18n")}if(2&e){const e=w.XpG(2);w.R7$(),w.Y8G("label",w.bMT(2,6,"generatePassword"))("disabled",!e.sendFormService.sendFormConfig.areSendsAllowed),w.R7$(2),w.Y8G("label",w.bMT(4,8,"copyPassword"))("disabled",!e.sendFormService.sendFormConfig.areSendsAllowed||!e.sendDetailsForm.get("password").value)("valueLabel",w.bMT(5,10,"password"))("appCopyClick",e.sendDetailsForm.get("password").value)}}function eQ(e,t){if(1&e&&(w.nrm(0,"button",17),w.nI1(1,"i18n")),2&e){const e=w.XpG(3);w.Y8G("label",w.bMT(1,3,"removePassword"))("bitAction",e.removePassword)("disabled",!e.sendFormService.sendFormConfig.areSendsAllowed)}}function tQ(e,t){if(1&e&&w.nVh(0,eQ,2,5,"button",17),2&e){const e=w.XpG(2);w.vxM(e.editing()?0:-1)}}function iQ(e,t){if(1&e&&(w.j41(0,"bit-form-field",9)(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",12),w.j41(5,"div",13),w.nVh(6,_S,6,12)(7,tQ,1,1),w.k0s()()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,3,e.passwordRemoved?"newPassword":"password")),w.R7$(2),w.Y8G("readonly",!e.editing()),w.R7$(2),w.vxM(e.originalHadPassword?7:6)}}function nQ(e,t){1&e&&(w.j41(0,"bit-hint"),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.JRh(w.bMT(2,1,"enterMultipleEmailsSeparatedByComma")))}function rQ(e,t){if(1&e&&(w.j41(0,"bit-form-field",10)(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"textarea",18),w.nI1(5,"i18n"),w.nVh(6,nQ,3,3,"bit-hint"),w.k0s()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,4,"emails")),w.R7$(2),w.Y8G("placeholder",w.bMT(5,6,"emailPlaceholderMultiple"))("readonly",!e.editing()),w.R7$(2),w.vxM(e.editing()?6:-1)}}const sQ=Object.freeze([{nameKey:"noAuth",value:Ml.None},{nameKey:"specificPeople",value:Ml.Email},{nameKey:"anyOneWithPassword",value:Ml.Password}]);class oQ{constructor(e){this.i18nSvc=e}transform(e){const t=sQ.find(t=>t.value===e);return t?this.i18nSvc.t(t.nameKey):this.i18nSvc.t("unknown")}}oQ.ɵfac=function(e){return new(e||oQ)(w.rXU(he.W,16))},oQ.ɵpipe=w.EJ8({name:"AuthTypeName",type:oQ,pure:!0});class aQ{get originalHadPassword(){var e;return null!=(null===(e=this.sendFormService.originalSendView())||void 0===e?void 0:e.password)}constructor(e,t,i,n,s,o,l){var d,u,h,A,g,m,y,b,C,I,w,E;this.formBuilder=e,this.i18nService=t,this.datePipe=i,this.environmentService=n,this.accountService=s,this.billingAccountProfileStateService=o,this.sendFormService=l,this.SendType=xl.N,this.AuthType=Ml,this.editing=(0,r.hFB)(!1),this.openPasswordGenerator=(0,r.CGW)(),this.datePresetOptions=[{label:this.i18nService.t("oneHour"),value:CS.u9.OneHour},{label:this.i18nService.t("oneDay"),value:CS.u9.OneDay},{label:this.i18nService.t("days","2"),value:CS.u9.TwoDays},{label:this.i18nService.t("days","3"),value:CS.u9.ThreeDays},{label:this.i18nService.t("days","7"),value:CS.u9.SevenDays},{label:this.i18nService.t("days","14"),value:CS.u9.FourteenDays},{label:this.i18nService.t("days","30"),value:CS.u9.ThirtyDays}],this.passwordRemoved=!1,this.policyAllowedDomains=null,this.policyDeletionHoursOrgName=null,this.hasPremium$=this.accountService.activeAccount$.pipe((0,jt.n)(e=>this.billingAccountProfileStateService.hasPremiumFromAnySource$(e.id))),this.sendPolicyService=(0,B.WQX)(yQ),this.orgService=(0,B.WQX)(v.PV),this.availableAuthTypes$=(0,xt.z)([this.hasPremium$,this.sendPolicyService.whoCanAccess$]).pipe((0,p.T)(([e,t])=>{const i=t===IS.b.Any||null===t,n=this.sendFormService.originalSendView(),r=e&&(t===IS.b.SpecificPeople||i||(null==n?void 0:n.authType)===Ml.Email),s=t===IS.b.PasswordProtected||i||(null==n?void 0:n.authType)===Ml.Password,o=i||(null==n?void 0:n.authType)===Ml.None;return sQ.filter(e=>r&&e.value===Ml.Email||s&&e.value===Ml.Password||o&&e.value===Ml.None)})),this.sendDetailsForm=this.formBuilder.group({name:new a.MJ(null!==(u=null===(d=this.sendFormService.updatedSendView())||void 0===d?void 0:d.name)&&void 0!==u?u:"",a.k0.required),selectedDeletionDatePreset:new a.MJ(null!==(g=null===(A=null===(h=this.sendFormService.updatedSendView())||void 0===h?void 0:h.deletionDate)||void 0===A?void 0:A.toString())&&void 0!==g?g:CS.u9.SevenDays,a.k0.required),authType:new a.MJ(null!==(y=null===(m=this.sendFormService.updatedSendView())||void 0===m?void 0:m.authType)&&void 0!==y?y:Ml.None),password:new a.MJ(this.originalHadPassword?"************":null),emails:new a.MJ(null!==(I=null===(C=null===(b=this.sendFormService.updatedSendView())||void 0===b?void 0:b.emails)||void 0===C?void 0:C.join(", "))&&void 0!==I?I:null)}),this.generatePassword=()=>{this.openPasswordGenerator.emit()},this.removePassword=()=>OS(this,void 0,void 0,function*(){(yield this.sendFormService.removeSendPassword())&&(this.passwordRemoved=!0,this.sendDetailsForm.patchValue({authType:Ml.None,password:null}))}),(0,B.QZP)(()=>{this.editing()&&this.originalHadPassword?this.sendDetailsForm.get("password").disable():this.sendDetailsForm.get("password").enable()}),this.sendDetailsForm.valueChanges.pipe((0,P.M)(e=>{zt.A.isNullOrWhitespace(e.password)&&(e.password=null)}),(0,c.pQ)()).subscribe(e=>{this.sendFormService.patchSend(t=>Object.assign(t,{name:e.name,deletionDate:new Date(this.formattedDeletionDate),expirationDate:new Date(this.formattedDeletionDate),password:e.password,authType:e.authType,emails:e.emails?e.emails.split(",").map(e=>e.trim()).filter(e=>e.length>0):[]}))}),this.sendDetailsForm.get("authType").valueChanges.pipe((0,tn.Z)(null!==(E=null===(w=this.sendFormService.updatedSendView())||void 0===w?void 0:w.authType)&&void 0!==E?E:Ml.None),(0,c.pQ)()).subscribe(e=>{const t=this.sendDetailsForm.get("emails"),i=this.sendDetailsForm.get("password");e===Ml.Password?(t.setValue(null),t.clearValidators(),this.originalHadPassword&&i.setValue("************"),i.setValidators([a.k0.required]),this.editing()&&this.originalHadPassword&&i.disable()):e===Ml.Email?(i.setValue(null),i.clearValidators(),t.setValidators([a.k0.required,this.emailsMaxLengthValidator(),this.emailListValidator()])):(t.setValue(null),t.clearValidators(),i.setValue(null),i.clearValidators()),t.updateValueAndValidity(),i.updateValueAndValidity()}),this.sendPolicyService.allowedDomains$.pipe((0,c.pQ)()).subscribe(e=>{const t=this.sendDetailsForm.get("emails");e&&e.length>0?this.policyAllowedDomains=e:this.policyAllowedDomains=null,t.updateValueAndValidity()});const S=this.sendDetailsForm.get("emails");S.valueChanges.pipe((0,c.pQ)()).subscribe(e=>{"string"==typeof e&&e.length>=2500&&setTimeout(()=>S.markAsTouched(),0)}),(0,xt.z)([this.sendPolicyService.deletionDatePolicyInfo$,this.accountService.activeAccount$.pipe(f.F6,(0,jt.n)(e=>this.orgService.organizations$(e)))]).pipe((0,c.pQ)()).subscribe(([e,t])=>{var i,n;const r=this.sendDetailsForm.get("selectedDeletionDatePreset");if(null!=(null==e?void 0:e.deletionHours)){"add"===(null===(i=this.sendFormService.sendFormConfig)||void 0===i?void 0:i.mode)&&r.patchValue(e.deletionHours),r.disable();const n=t.find(t=>t.id===e.orgId);n&&(this.policyDeletionHoursOrgName=n.name)}else"add"===(null===(n=this.sendFormService.sendFormConfig)||void 0===n?void 0:n.mode)&&r.patchValue(CS.u9.SevenDays),r.enable(),this.policyDeletionHoursOrgName=null}),(0,B.QZP)(()=>{this.editing()||this.sendFormService.originalSendView()&&this.initializeFormFromOriginal(this.sendFormService.originalSendView())}),this.sendFormService.registerChildForm("sendDetailsForm",this.sendDetailsForm)}ngOnInit(){return OS(this,void 0,void 0,function*(){var e,t;const i=this.sendFormService.updatedSendView();this.originalHadPassword&&(null===(e=this.sendDetailsForm.get("password"))||void 0===e||e.disable()),i.deletionDate&&"add"!==(null===(t=this.sendFormService.sendFormConfig)||void 0===t?void 0:t.mode)&&this.datePresetOptions.unshift({label:this.datePipe.transform(i.deletionDate,"short"),value:i.deletionDate.toString()}),this.sendFormService.sendFormConfig.areSendsAllowed||this.sendDetailsForm.disable()})}initializeFormFromOriginal(e){var t,i;this.sendDetailsForm.patchValue({name:e.name,selectedDeletionDatePreset:e.deletionDate.toString(),password:this.originalHadPassword?"************":null,authType:e.authType,emails:null!==(i=null===(t=e.emails)||void 0===t?void 0:t.join(", "))&&void 0!==i?i:null})}get formattedDeletionDate(){const e=new Date,t=this.sendDetailsForm.controls.selectedDeletionDatePreset.value;if("string"==typeof t)return t;const i=(0,CS.KR)(t);if(!(0,CS.kg)(i))return new Date(e).toString();const n=e.setTime(e.getTime()+60*i*60*1e3);return new Date(n).toString()}emailListValidator(){return e=>{if(!e.value)return null;const t=e.value.split(",").map(e=>e.trim()).filter(e=>e.length>0);if(0===t.length)return{required:!0};const i=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;if(t.filter(e=>!i.test(e)).length>0)return{multipleEmails:!0};if(this.policyAllowedDomains&&this.policyAllowedDomains.length>0){if(t.filter(e=>{var t;const i=null===(t=e.split("@")[1])||void 0===t?void 0:t.toLowerCase();return!this.policyAllowedDomains.includes(i)}).length>0)return{domainNotAllowed:{value:e.value,domains:this.policyAllowedDomains.join(", "),message:this.i18nService.t("domainNotAllowed",this.policyAllowedDomains.join(", "))}}}return null}}emailsMaxLengthValidator(){return e=>"string"!=typeof e.value||e.value.length<2500?null:{emailsMaxLength:{message:this.i18nService.t("sendEmailsCharacterLimitReached")}}}setGeneratedPassword(e){this.sendDetailsForm.patchValue({password:e})}}aQ.ɵfac=function(e){return new(e||aQ)(w.rXU(a.ok),w.rXU(he.W),w.rXU(L.vh),w.rXU(yo.v),w.rXU(N.D),w.rXU(gr.Q),w.rXU(ES))},aQ.ɵcmp=w.VBU({type:aQ,selectors:[["tools-send-details"]],inputs:{editing:[1,"editing"]},outputs:{openPasswordGenerator:"openPasswordGenerator"},decls:34,vars:31,consts:[["disableMargin","",3,"formGroup"],[1,"tw-mt-2"],["bitTypography","h6"],["bitInput","","type","text","formControlName","name",3,"readonly"],[3,"editing"],["bitInput","","type","text","readonly","",3,"value"],["id","deletionDate","name","SelectedDeletionDatePreset","formControlName","selectedDeletionDatePreset"],[3,"disableMargin","hidden"],["formControlName","authType"],["disableMargin",""],["disableMargin","",1,"tw-mt-4"],[3,"value","label"],["bitInput","","type","password","formControlName","password",3,"readonly"],["bitSuffix","","ngProjectAs","[bitSuffix]",5,["","bitSuffix",""],1,"tw-flex","tw-items-center"],["data-testid","toggle-visibility-for-password","type","button","bitIconButton","","size","small","bitPasswordInputToggle",""],["type","button","bitIconButton","bwi-generate","size","small","data-testid","generate-password",3,"click","label","disabled"],["type","button","bitIconButton","bwi-clone","size","small","showToast","",3,"label","disabled","valueLabel","appCopyClick"],["type","button","buttonType","dangerGhost","bitIconButton","bwi-minus-circle","size","small","showToast","",1,"tw-border-l-0","last:tw-rounded-r","focus-visible:tw-border-l","focus-visible:tw-ml-[-1px]",3,"label","bitAction","disabled"],["bitInput","","formControlName","emails","rows","3","maxlength","2500",3,"placeholder","readonly"]],template:function(e,t){if(1&e&&(w.j41(0,"bit-section",0)(1,"bit-section-header",1)(2,"h2",2),w.EFF(3),w.nI1(4,"i18n"),w.k0s()(),w.j41(5,"bit-card")(6,"bit-form-field")(7,"bit-label"),w.EFF(8),w.nI1(9,"i18n"),w.nI1(10,"lowercase"),w.k0s(),w.nrm(11,"input",3),w.k0s(),w.nVh(12,YS,1,1,"tools-send-text-details",4),w.nVh(13,XS,1,1,"tools-send-file-details",4),w.j41(14,"bit-form-field")(15,"bit-label"),w.EFF(16),w.nI1(17,"i18n"),w.k0s(),w.nVh(18,zS,2,4,"input",5)(19,WS,3,0,"bit-select",6),w.nVh(20,KS,3,3,"bit-hint"),w.nVh(21,ZS,3,4,"bit-hint"),w.k0s(),w.j41(22,"bit-form-field",7),w.nI1(23,"async"),w.j41(24,"bit-label"),w.EFF(25),w.nI1(26,"i18n"),w.k0s(),w.nVh(27,HS,2,3,"input",5)(28,qS,4,2,"bit-select",8),w.SS7(29),w.nVh(30,$S,3,3,"bit-hint",1),w.k0s(),w.nVh(31,iQ,8,5,"bit-form-field",9),w.nVh(32,rQ,7,8,"bit-form-field",10),w.k0s(),w.nrm(33,"tools-send-options",4),w.k0s()),2&e){w.Y8G("formGroup",t.sendDetailsForm),w.R7$(3),w.JRh(w.bMT(4,18,"sendDetails")),w.R7$(5),w.SpI("Send ",w.bMT(10,22,w.bMT(9,20,"name"))),w.R7$(3),w.Y8G("readonly",!t.editing()),w.R7$(),w.vxM(t.sendFormService.sendFormConfig.sendType===t.SendType.Text?12:-1),w.R7$(),w.vxM(t.sendFormService.sendFormConfig.sendType===t.SendType.File?13:-1),w.R7$(3),w.JRh(w.bMT(17,24,"deletionDate")),w.R7$(2),w.vxM(t.editing()?19:18),w.R7$(2),w.vxM(t.editing()&&!t.policyDeletionHoursOrgName?20:-1),w.R7$(),w.vxM(t.editing()&&t.policyDeletionHoursOrgName?21:-1),w.R7$(),w.Y8G("disableMargin",t.sendDetailsForm.get("authType").value===t.AuthType.None)("hidden",1===w.bMT(23,26,t.availableAuthTypes$).length),w.R7$(3),w.JRh(w.bMT(26,28,"whoCanView")),w.R7$(2),w.vxM(t.editing()?28:27),w.R7$(2);const e=w.bH3(t.sendDetailsForm.controls.authType.value===t.AuthType.Password?"sendPasswordHelperText":t.sendDetailsForm.controls.authType.value===t.AuthType.Email?"emailVerificationDesc":"");w.R7$(),w.vxM(t.editing()&&""!==e?30:-1),w.R7$(),w.vxM(t.sendDetailsForm.get("authType").value===t.AuthType.Password?31:-1),w.R7$(),w.vxM(t.sendDetailsForm.get("authType").value===t.AuthType.Email?32:-1),w.R7$(),w.Y8G("editing",t.editing())}},dependencies:[Jb.n,wS.U,Fp.E,Tp.r,BS.D,bS.i,Oh.L,Xh.j,zh.I,Lh.J,Wh.h,Kh.e,Zh.a,a.X1,a.me,a.BC,a.cb,a.tU,a.j4,a.JD,US,xS,DS,Uh.Q,Yh.s,Jp.q,L.MD,$p.p,tg.w,ig.P,vh.C,Up.p,Ah.t,oQ,ce.$Z,L.Jj,L.GH,L.vh],encapsulation:2});var lQ=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function cQ(e,t){if(1&e&&(w.j41(0,"bit-card")(1,"div",2),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"div",3),w.EFF(5),w.k0s(),w.j41(6,"button",4),w.nI1(7,"i18n"),w.EFF(8),w.nI1(9,"i18n"),w.k0s()()),2&e){const e=w.XpG(2);w.R7$(2),w.JRh(w.bMT(3,5,"sendLink")),w.R7$(3),w.SpI(" ",e.sendLink()," "),w.R7$(),w.Y8G("appCopyClick",e.sendLink())("valueLabel",w.bMT(7,7,"sendLink")),w.R7$(2),w.SpI(" ",w.bMT(9,9,"copy")," ")}}function dQ(e,t){if(1&e){const e=w.RV6();w.nVh(0,cQ,10,11,"bit-card"),w.j41(1,"tools-send-details",1),w.bIt("openPasswordGenerator",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.openPasswordGenerator.emit())}),w.k0s()}if(2&e){const e=w.XpG();w.vxM(e.sendDisabled()||e.editing()?-1:0),w.R7$(),w.Y8G("editing",e.editing())}}class uQ{constructor(e,t,i,n,s){this.sendFormService=e,this.toastService=t,this.i18nService=i,this.destroyRef=n,this.envService=s,this.bitSubmit=r.ebz.required(wh.L),this.formId=r.hFB.required(),this.config=r.hFB.required(),this.submitBtn=(0,r.hFB)(),this.editing=(0,r.hFB)(),this.environment=(0,c.ot)(this.envService.environment$),this.sendLink=(0,JA.EW)(()=>{var e,t;return this.environment().getSendUrl()+(null===(e=this.sendFormService.originalSendView())||void 0===e?void 0:e.accessId)+"/"+(null===(t=this.sendFormService.originalSendView())||void 0===t?void 0:t.urlB64Key)}),this.onSendCreated=(0,r.CGW)(),this.onSendUpdated=(0,r.CGW)(),this.openPasswordGenerator=(0,r.CGW)(),this.sendDetailsComponent=(0,r.ebz)(aQ),this.loading=!0,this.SendType=xl.N,this.sendDisabled=(0,JA.EW)(()=>{var e,t;return null!==(t=null===(e=this.sendFormService.originalSendView())||void 0===e?void 0:e.disabled)&&void 0!==t&&t}),this.submit=()=>lQ(this,void 0,void 0,function*(){const e=yield this.sendFormService.submitSendForm();e&&("add"!==this.config().mode?(this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("editedItem")}),this.onSendUpdated.emit(e)):this.onSendCreated.emit(e))}),(0,B.QZP)(()=>{this.config()&&this.init()})}ngAfterViewInit(){this.bitSubmit().loading$.pipe((0,c.pQ)(this.destroyRef)).subscribe(e=>{var t;null===(t=this.submitBtn())||void 0===t||t.loading.set(e)}),this.bitSubmit().disabled$.pipe((0,c.pQ)(this.destroyRef)).subscribe(e=>{var t;null===(t=this.submitBtn())||void 0===t||t.disabled.set(e)})}init(){return lQ(this,void 0,void 0,function*(){this.loading=!0,yield this.sendFormService.initializeSendForm(this.config()),this.loading=!1})}}uQ.ɵfac=function(e){return new(e||uQ)(w.rXU(ES),w.rXU(F.f),w.rXU(he.W),w.rXU(B.abz),w.rXU(yo.v))},uQ.ɵcmp=w.VBU({type:uQ,selectors:[["tools-send-form"]],viewQuery:function(e,t){1&e&&w.wEZ(t.bitSubmit,wh.L,5)(t.sendDetailsComponent,aQ,5),2&e&&w.NyB(2)},inputs:{formId:[1,"formId"],config:[1,"config"],submitBtn:[1,"submitBtn"],editing:[1,"editing"]},outputs:{onSendCreated:"onSendCreated",onSendUpdated:"onSendUpdated",openPasswordGenerator:"openPasswordGenerator"},features:[w.Jv_([])],decls:2,vars:4,consts:[[3,"id","formGroup","bitSubmit"],[3,"openPasswordGenerator","editing"],["bitTypography","h4"],["bitTypography","body2","aria-hidden","true",1,"tw-text-muted","tw-mt-2","tw-mb-4","tw-truncate"],["bitButton","","type","button","showToast","","buttonType","primary","startIcon","bwi-clone",1,"tw-w-full",3,"appCopyClick","valueLabel"]],template:function(e,t){1&e&&(w.j41(0,"form",0),w.nVh(1,dQ,2,2),w.k0s()),2&e&&(w.Y8G("id",t.formId())("formGroup",t.sendFormService.sendForm())("bitSubmit",t.submit),w.R7$(),w.vxM(t.loading?-1:1))},dependencies:[vh.C,wh.L,Nh.p,BS.D,Fp.E,Tp.r,qp.k,Oh.L,a.X1,a.qT,a.cb,a.j4,$p.p,aQ,Ah.t,fh.Q,bS.i,Hh.$],encapsulation:2});const hQ="selected",AQ="canceled";class pQ{get isPassword(){return"password"===this.params.type}constructor(e,t,i){this.params=e,this.dialogRef=t,this.i18nService=i,this.titleKey=this.isPassword?"passwordGenerator":"usernameGenerator",this.buttonLabel=(0,B.vPA)(void 0),this.generatedValue=(0,B.vPA)(""),this.close=()=>{this.dialogRef.close({action:AQ})},this.selectValue=()=>{this.dialogRef.close({action:hQ,generatedValue:this.generatedValue()})},this.onValueGenerated=e=>{this.generatedValue.set(e)},this.onAlgorithmSelected=e=>{e?this.buttonLabel.set(e.useGeneratedValue):this.buttonLabel.set(this.i18nService.t("useThisEmail")),this.generatedValue.set("")},this.uri=e.uri}}pQ.ɵfac=function(e){return new(e||pQ)(w.rXU(Ep.Qs),w.rXU(mh.ce),w.rXU(he.W))},pQ.ɵcmp=w.VBU({type:pQ,selectors:[["tools-send-generator-dialog"]],decls:9,vars:7,consts:[["dialogSize","default","background","alt"],["bitDialogTitle",""],["bitDialogContent",""],["disableMargin","",3,"valueGenerated","algorithmSelected","type","uri"],["bitDialogFooter",""],["type","button","bitButton","","buttonType","primary","data-testid","select-button",3,"click","disabled"]],template:function(e,t){1&e&&(w.j41(0,"bit-dialog",0)(1,"span",1),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.qex(4,2),w.j41(5,"vault-cipher-form-generator",3),w.bIt("valueGenerated",function(e){return t.onValueGenerated(e)})("algorithmSelected",function(e){return t.onAlgorithmSelected(e)}),w.k0s(),w.bVm(),w.qex(6,4),w.j41(7,"button",5),w.bIt("click",function(){return t.selectValue()}),w.EFF(8),w.k0s(),w.bVm(),w.k0s()),2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,5,t.titleKey)," "),w.R7$(3),w.Y8G("type",t.params.type)("uri",t.uri),w.R7$(2),w.Y8G("disabled",!(t.buttonLabel()&&t.generatedValue())),w.R7$(),w.SpI(" ",t.buttonLabel()," "))},dependencies:[L.MD,dh.Wg,Ah.t,fh.Q,ph.P,bh.m,Ch.hJ,ce.$Z],encapsulation:2,changeDetection:0});var gQ=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class vQ{constructor(e){this.dialogService=e}generatePassword(){return gQ(this,void 0,void 0,function*(){const e=this.dialogService.open(pQ,{data:{type:"password"}}),t=yield(0,u._)(e.closed);return t&&"selected"===t.action&&t.generatedValue?t.generatedValue:null})}}vQ.ɵfac=function(e){return new(e||vQ)(B.KVO(T.o))},vQ.ɵprov=B.jDH({token:vQ,factory:vQ.ɵfac});const mQ=Object.freeze({None:0,Other:1,RestrictedType:2});var fQ=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class yQ{constructor(){this.policyService=(0,B.WQX)(Je.m),this.accountService=(0,B.WQX)(N.D),this.configService=(0,B.WQX)(O.w),this.flagAndUser$=(0,xt.z)([this.configService.getFeatureFlag$(Kr.TO.SendControls),this.accountService.activeAccount$.pipe(f.F6)]),this.disableSend$=this.flagAndUser$.pipe((0,jt.n)(([e,t])=>e?(0,xt.z)([this.policyService.policiesByType$(_e.tt.SendControls,t).pipe((0,p.T)(e=>{var t;return null!==(t=null==e?void 0:e.some(e=>{var t;return!0===(null===(t=e.data)||void 0===t?void 0:t.disableSend)}))&&void 0!==t&&t})),this.policyService.policyAppliesToUser$(_e.tt.DisableSend,t)]).pipe((0,p.T)(([e,t])=>e||t)):this.policyService.policyAppliesToUser$(_e.tt.DisableSend,t)),(0,Gr.t)({bufferSize:1,refCount:!0})),this.disableHideEmail$=this.flagAndUser$.pipe((0,jt.n)(([e,t])=>e?(0,xt.z)([this.policyService.policiesByType$(_e.tt.SendControls,t).pipe((0,p.T)(e=>{var t;return null!==(t=null==e?void 0:e.some(e=>{var t;return!0===(null===(t=e.data)||void 0===t?void 0:t.disableHideEmail)}))&&void 0!==t&&t})),this.policyService.policiesByType$(_e.tt.SendOptions,t).pipe((0,p.T)(e=>{var t;return null!==(t=null==e?void 0:e.some(e=>{var t;return null===(t=e.data)||void 0===t?void 0:t.disableHideEmail}))&&void 0!==t&&t}))]).pipe((0,p.T)(([e,t])=>e||t)):this.policyService.policiesByType$(_e.tt.SendOptions,t).pipe((0,p.T)(e=>{var t;return null!==(t=null==e?void 0:e.some(e=>{var t;return null===(t=e.data)||void 0===t?void 0:t.disableHideEmail}))&&void 0!==t&&t}))),(0,Gr.t)({bufferSize:1,refCount:!0})),this.whoCanAccess$=this.flagAndUser$.pipe((0,jt.n)(([e,t])=>e?this.policyService.policiesByType$(_e.tt.SendControls,t).pipe((0,p.T)(e=>{var t,i;const n=null==e?void 0:e.find(e=>{var t;return null!=(null===(t=e.data)||void 0===t?void 0:t.whoCanAccess)});return null!==(i=null===(t=null==n?void 0:n.data)||void 0===t?void 0:t.whoCanAccess)&&void 0!==i?i:null})):(0,ln.of)(null)),(0,Gr.t)({bufferSize:1,refCount:!0})),this.allowedDomains$=this.flagAndUser$.pipe((0,jt.n)(([e,t])=>e?this.policyService.policiesByType$(_e.tt.SendControls,t).pipe((0,p.T)(e=>{var t;const i=null==e?void 0:e.find(e=>{var t;return null===(t=e.data)||void 0===t?void 0:t.allowedDomains}),n=null===(t=null==i?void 0:i.data)||void 0===t?void 0:t.allowedDomains;return n?n.split(",").map(e=>e.trim().toLowerCase()).filter(e=>e.length>0):null})):(0,ln.of)(null)),(0,Gr.t)({bufferSize:1,refCount:!0})),this.deletionDatePolicyInfo$=this.flagAndUser$.pipe((0,jt.n)(([e,t])=>e?this.policyService.policiesByType$(_e.tt.SendControls,t).pipe((0,p.T)(e=>{var t,i,n;const r=null==e?void 0:e.find(e=>{var t;return null!=(null===(t=e.data)||void 0===t?void 0:t.deletionHours)});return{deletionHours:null!==(i=null===(t=null==r?void 0:r.data)||void 0===t?void 0:t.deletionHours)&&void 0!==i?i:null,orgId:null!==(n=null==r?void 0:r.organizationId)&&void 0!==n?n:null}})):(0,ln.of)(null)),(0,Gr.t)({bufferSize:1,refCount:!0})),this.allowedSendTypes$=this.flagAndUser$.pipe((0,jt.n)(([e,t])=>e?this.policyService.policiesByType$(_e.tt.SendControls,t).pipe((0,p.T)(e=>{const t=e.flatMap(e=>{var t;return null!==(t=e.data.allowedSendTypes)&&void 0!==t?t:[]}),i=[...new Set(t)];return 0===i.length?[xl.N.Text,xl.N.File]:i})):(0,ln.of)([xl.N.Text,xl.N.File])),(0,Gr.t)({bufferSize:1,refCount:!0}))}sendDisabledReason(e){return fQ(this,void 0,void 0,function*(){if(!e.disabled)return mQ.None;const t=yield(0,u._)(this.allowedSendTypes$);return t&&!t.includes(e.type)?mQ.RestrictedType:mQ.Other})}}yQ.ɵfac=function(e){return new(e||yQ)},yQ.ɵprov=B.jDH({token:yQ,factory:yQ.ɵfac,providedIn:"root"});const bQ=Object.freeze({Discard:"discard",Back:"back"});class CQ{constructor(e){this.dialogRef=e}discardEdits(){this.dialogRef.close({result:bQ.Discard})}backToEditing(){this.dialogRef.close({result:bQ.Back})}}CQ.ɵfac=function(e){return new(e||CQ)(w.rXU(mh.ce))},CQ.ɵcmp=w.VBU({type:CQ,selectors:[["tools-unsaved-edits-dialog"]],features:[w.Jv_([])],decls:14,vars:12,consts:[["hideIcon",""],["bitDialogTitle",""],["bitDialogContent",""],["bitDialogFooter",""],["type","button","bitButton","","buttonType","danger",3,"click"],["type","button","bitButton","","buttonType","secondary",3,"click"]],template:function(e,t){1&e&&(w.j41(0,"bit-simple-dialog",0)(1,"span",1),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"span",2),w.EFF(5),w.nI1(6,"i18n"),w.k0s(),w.qex(7,3),w.j41(8,"button",4),w.bIt("click",function(){return t.discardEdits()}),w.EFF(9),w.nI1(10,"i18n"),w.k0s(),w.j41(11,"button",5),w.bIt("click",function(){return t.backToEditing()}),w.EFF(12),w.nI1(13,"i18n"),w.k0s(),w.bVm(),w.k0s()),2&e&&(w.R7$(2),w.JRh(w.bMT(3,4,"discardEditsTitle")),w.R7$(3),w.JRh(w.bMT(6,6,"discardEditsConfirmation")),w.R7$(4),w.SpI(" ",w.bMT(10,8,"discardEdits")," "),w.R7$(3),w.SpI(" ",w.bMT(13,10,"keepEditing")," "))},dependencies:[ph.P,Ch.hJ,Ch.o_,Ah.t,fh.Q,ce.$Z],encapsulation:2,changeDetection:0});var IQ=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class wQ{constructor(){this.dialogService=(0,B.WQX)(T.o),this.toastService=(0,B.WQX)(F.f),this.formBuilder=(0,B.WQX)(a.ok),this.accountService=(0,B.WQX)(N.D),this.sendApiService=(0,B.WQX)(md),this.sendService=(0,B.WQX)(Sd),this.i18nService=(0,B.WQX)(he.W),this.sendPolicyService=(0,B.WQX)(yQ),this._sendForm=this.formBuilder.group({}),this.sendForm=(0,B.vPA)(this._sendForm).asReadonly(),this._submitting=(0,B.vPA)(!1),this.submitting=(0,c.br)(this._submitting),this.sendFormConfig=null,this._originalSendView=(0,B.vPA)(null),this.originalSendView=this._originalSendView.asReadonly(),this._updatedSendView=(0,B.vPA)(null),this.updatedSendView=this._updatedSendView.asReadonly(),this.file=null}decryptSend(e){return IQ(this,void 0,void 0,function*(){const t=yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6));return yield e.decrypt(t)})}registerChildForm(e,t){this._sendForm.setControl(e,t)}patchSend(e){this._updatedSendView.set(e(this._updatedSendView()))}setFile(e){this.file=e}initializeSendForm(e){return IQ(this,void 0,void 0,function*(){var t;this.sendFormConfig=e,Object.keys(this._sendForm.controls).forEach(e=>{this._sendForm.removeControl(e)}),this._sendForm.reset(),this.file=void 0;let i=null,n=new jl;if("add"===this.sendFormConfig.mode){n.type=this.sendFormConfig.sendType;const e=yield(0,u._)(this.sendPolicyService.whoCanAccess$);e===IS.b.PasswordProtected?n.authType=Ml.Password:e===IS.b.SpecificPeople&&(n.authType=Ml.Email),n=Object.assign(n,null!==(t=this.sendFormConfig.presetSendFields)&&void 0!==t?t:{})}else{if(!this.sendFormConfig.originalSend)throw new Error("Original send is required for edit or clone mode");i=yield this.decryptSend(this.sendFormConfig.originalSend),n=Object.assign(n,i)}this._originalSendView.set(i),this._updatedSendView.set(n)})}submitSendForm(){return IQ(this,void 0,void 0,function*(){var e;if(this._submitting.set(!0),this._sendForm.invalid)return this._sendForm.markAllAsTouched(),void this._submitting.set(!1);if(!0===(null===(e=this._updatedSendView())||void 0===e?void 0:e.hideEmail)){if(yield(0,u._)(this.sendPolicyService.disableHideEmail$))return this.toastService.showToast({message:this.i18nService.t("hideEmailPolicyInEffect",this.i18nService.t("hideYourEmail")),variant:"error"}),void this._submitting.set(!1)}try{const e=this._updatedSendView().password,t=yield this.sendService.encrypt(this._updatedSendView(),this.file,e,null),i=yield this.sendApiService.save(t,e),n=yield this.decryptSend(i);return this._originalSendView.set(null),this._updatedSendView.set(null),this._submitting.set(!1),n}catch(t){throw this._submitting.set(!1),t}})}sendFormHasEdits(){const e=(e,t)=>"password"===e?void 0:t;return this.sendForm().touched&&JSON.stringify(this._originalSendView(),e)!==JSON.stringify(this._updatedSendView(),e)}promptForUnsavedEdits(e){return IQ(this,void 0,void 0,function*(){if(null==e?void 0:e.result)return!0;if(this.sendFormHasEdits()){const e=this.dialogService.open(CQ),t=yield(0,hh.s)(e.closed);return(null==t?void 0:t.result)===bQ.Discard&&(this._sendForm.markAsUntouched(),!0)}return!0})}removeSendPassword(){return IQ(this,void 0,void 0,function*(){var e;const t=null===(e=this.originalSendView())||void 0===e?void 0:e.id;if(!t)return!1;if(!(yield this.dialogService.openSimpleDialog({title:{key:"removePassword"},content:{key:"removePasswordConfirmation"},type:"warning"})))return!1;yield this.sendApiService.removePassword(t),this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("removedPassword")});const i=yield(0,u._)(this.sendService.get$(this._originalSendView().id)),n=yield this.decryptSend(i);return this._originalSendView.set(n),!0})}}wQ.ɵfac=function(e){return new(e||wQ)},wQ.ɵprov=B.jDH({token:wQ,factory:wQ.ɵfac});class BQ{}BQ.ɵfac=function(e){return new(e||BQ)},BQ.ɵmod=w.$C({type:BQ}),BQ.ɵinj=B.G2t({providers:[{provide:ES,useClass:wQ},{provide:class{},useClass:vQ}],imports:[uQ,WA._h]});var EQ=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class SQ{constructor(){this.sendService=(0,B.WQX)(Sd),this.sendPolicyService=(0,B.WQX)(yQ),this.areSendsEnabled$=this.sendPolicyService.disableSend$.pipe((0,p.T)(e=>!e))}buildConfig(e,t,i){return EQ(this,void 0,void 0,function*(){var n,r;const[s,o]=yield(0,u._)((0,xt.z)([this.areSendsEnabled$,this.getSend(t)]));return{mode:e,sendType:null!==(r=null!==(n=null==o?void 0:o.type)&&void 0!==n?n:i)&&void 0!==r?r:xl.N.Text,areSendsAllowed:s,originalSend:o}})}getSend(e){return null==e?Promise.resolve(null):this.sendService.get$(e)}}SQ.ɵfac=function(e){return new(e||SQ)},SQ.ɵprov=B.jDH({token:SQ,factory:SQ.ɵfac});var QQ=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function kQ(e,t){1&e&&w.nrm(0,"bit-icon",3)}function RQ(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",2),w.bIt("click",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.onRestrictedClick())}),w.nVh(1,kQ,1,0,"bit-icon",3),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}if(2&e){const e=w.XpG();w.Y8G("buttonType",e.buttonType),w.R7$(),w.vxM(e.hideIcon?-1:1),w.R7$(),w.SpI(" ",w.bMT(3,3,e.hideIcon?"createSend":"new")," ")}}function FQ(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",4),w.EFF(1),w.nI1(2,"i18n"),w.k0s(),w.j41(3,"bit-menu",null,0)(5,"a",5),w.nrm(6,"bit-icon",6),w.EFF(7),w.nI1(8,"i18n"),w.k0s(),w.j41(9,"a",7),w.nI1(10,"i18n"),w.bIt("click",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.sendFileClick())}),w.j41(11,"div",8),w.nrm(12,"bit-icon",9),w.EFF(13),w.nI1(14,"i18n"),w.nrm(15,"app-premium-badge"),w.k0s(),w.j41(16,"span",10),w.EFF(17),w.nI1(18,"i18n"),w.k0s(),w.nrm(19,"bit-icon",11),w.k0s()()}if(2&e){const e=w.sdS(4),t=w.XpG();w.Y8G("bitMenuTriggerFor",e)("buttonType",t.buttonType)("startIcon",t.hideIcon?void 0:"bwi-plus"),w.R7$(),w.SpI(" ",w.bMT(2,10,t.hideIcon?"createSend":"new")," "),w.R7$(4),w.Y8G("routerLink",t.buildRouterLink())("queryParams",t.buildQueryParams(t.sendType.Text)),w.R7$(2),w.SpI(" ",w.bMT(8,12,"sendTypeText")," "),w.R7$(2),w.Y8G("title",w.bMT(10,14,"popOutNewWindow")),w.R7$(4),w.SpI(" ",w.bMT(14,16,"sendTypeFile")," "),w.R7$(4),w.JRh(w.bMT(18,18,"popOutNewWindow"))}}class TQ{constructor(e,t,i,n,r){this.billingAccountProfileStateService=e,this.accountService=t,this.router=i,this.premiumUpgradePromptService=n,this.sendPolicyService=r,this.hideIcon=!1,this.buttonType="primary",this.sendType=xl.N,this.hasNoPremium=!1,this.allowedSendTypes=(0,c.ot)(this.sendPolicyService.allowedSendTypes$,{initialValue:[xl.N.Text,xl.N.File]})}ngOnInit(){return QQ(this,void 0,void 0,function*(){const e=yield(0,u._)(this.accountService.activeAccount$);this.hasNoPremium=!e||!(yield(0,u._)(this.billingAccountProfileStateService.hasPremiumFromAnySource$(e.id)))})}buildRouterLink(){return"/add-send"}buildQueryParams(e){return{type:e,isNew:!0}}sendFileClick(){return QQ(this,void 0,void 0,function*(){this.hasNoPremium?yield this.premiumUpgradePromptService.promptForPremium():yield this.router.navigate([this.buildRouterLink()],{queryParams:this.buildQueryParams(xl.N.File)})})}onRestrictedClick(){return QQ(this,void 0,void 0,function*(){const e=this.allowedSendTypes();e[0]===xl.N.File?yield this.sendFileClick():e[0]===xl.N.Text&&(yield this.router.navigate([this.buildRouterLink()],{queryParams:this.buildQueryParams(xl.N.Text)}))})}}TQ.ɵfac=function(e){return new(e||TQ)(w.rXU(gr.Q),w.rXU(N.D),w.rXU(R.Ix),w.rXU(LA.l),w.rXU(yQ))},TQ.ɵcmp=w.VBU({type:TQ,selectors:[["tools-new-send-dropdown"]],inputs:{hideIcon:"hideIcon",buttonType:"buttonType"},decls:2,vars:1,consts:[["itemOptions",""],["bitButton","","type","button",3,"buttonType"],["bitButton","","type","button",3,"click","buttonType"],["name","bwi-plus",1,"tw-me-2"],["bitButton","","type","button",3,"bitMenuTriggerFor","buttonType","startIcon"],["bitMenuItem","",3,"routerLink","queryParams"],["name","bwi-file-text","slot","start"],["bitMenuItem","",3,"click","title"],[1,"tw-flex","tw-items-center","tw-gap-2"],["name","bwi-file","slot","start"],[1,"tw-sr-only"],["name","bwi-popout","slot","end",1,"tw-text-muted"]],template:function(e,t){1&e&&w.nVh(0,RQ,4,5,"button",1)(1,FQ,20,20),2&e&&w.vxM(1===t.allowedSendTypes().length?0:1)},dependencies:[Nh.p,L.MD,Ah.t,fh.Q,Hp.Wk,mB.M,Kb.Z,Zb.O,Hb.S,Cb.a,le.o,ve.R,Hh.$],encapsulation:2});var DQ=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function PQ(e,t){1&e&&w.nrm(0,"i",3)}function MQ(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",2),w.bIt("click",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.onRestrictedClick())}),w.nVh(1,PQ,1,0,"i",3),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}if(2&e){const e=w.XpG();w.Y8G("buttonType",e.buttonType()),w.R7$(),w.vxM(e.hideIcon()?-1:1),w.R7$(),w.SpI(" ",w.bMT(3,3,e.hideIcon()?"createSend":"new")," ")}}function xQ(e,t){1&e&&w.nrm(0,"i",3)}function VQ(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",4),w.nVh(1,xQ,1,0,"i",3),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"bit-menu",null,0)(6,"button",5),w.bIt("click",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.onTextSendClick())}),w.nrm(7,"i",6),w.EFF(8),w.nI1(9,"i18n"),w.k0s(),w.j41(10,"button",5),w.bIt("click",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.onFileSendClick())}),w.j41(11,"div",7),w.nrm(12,"i",8),w.EFF(13),w.nI1(14,"i18n"),w.nrm(15,"app-premium-badge"),w.k0s()()()}if(2&e){const e=w.sdS(5),t=w.XpG();w.Y8G("bitMenuTriggerFor",e)("buttonType",t.buttonType()),w.R7$(),w.vxM(t.hideIcon()?-1:1),w.R7$(),w.SpI(" ",w.bMT(3,6,t.hideIcon()?"createSend":"new")," "),w.R7$(6),w.SpI(" ",w.bMT(9,8,"sendTypeText")," "),w.R7$(5),w.SpI(" ",w.bMT(14,10,"sendTypeFile")," ")}}class GQ{constructor(){this.hideIcon=(0,r.hFB)(!1),this.buttonType=(0,r.hFB)("primary"),this.addSend=(0,r.CGW)(),this.sendType=xl.N,this.billingAccountProfileStateService=(0,B.WQX)(gr.Q),this.accountService=(0,B.WQX)(N.D),this.sendPolicyService=(0,B.WQX)(yQ),this.premiumUpgradePromptService=(0,B.WQX)(LA.l),this.allowedSendTypes=(0,c.ot)(this.sendPolicyService.allowedSendTypes$,{initialValue:[xl.N.Text,xl.N.File]}),this.hasNoPremium=(0,c.ot)(this.accountService.activeAccount$.pipe((0,jt.n)(e=>e?this.billingAccountProfileStateService.hasPremiumFromAnySource$(e.id).pipe((0,p.T)(e=>!e)):(0,ln.of)(!0))),{initialValue:!0})}onTextSendClick(){this.addSend.emit(xl.N.Text)}onFileSendClick(){return DQ(this,void 0,void 0,function*(){this.hasNoPremium()?yield this.premiumUpgradePromptService.promptForPremium():this.addSend.emit(xl.N.File)})}onRestrictedClick(){return DQ(this,void 0,void 0,function*(){const e=this.allowedSendTypes();e[0]===xl.N.File?yield this.onFileSendClick():e[0]===xl.N.Text&&this.onTextSendClick()})}}GQ.ɵfac=function(e){return new(e||GQ)},GQ.ɵcmp=w.VBU({type:GQ,selectors:[["tools-new-send-dropdown-v2"]],inputs:{hideIcon:[1,"hideIcon"],buttonType:[1,"buttonType"]},outputs:{addSend:"addSend"},decls:2,vars:1,consts:[["itemOptions",""],["bitButton","","type","button",3,"buttonType"],["bitButton","","type","button",3,"click","buttonType"],["aria-hidden","true",1,"bwi","bwi-plus","tw-me-2"],["bitButton","","type","button",3,"bitMenuTriggerFor","buttonType"],["bitMenuItem","","type","button",3,"click"],["slot","start","aria-hidden","true",1,"bwi","bwi-file-text"],[1,"tw-flex","tw-items-center","tw-gap-2"],["slot","start","aria-hidden","true",1,"bwi","bwi-file"]],template:function(e,t){1&e&&w.nVh(0,MQ,4,5,"button",1)(1,VQ,16,12),2&e&&w.vxM(1===t.allowedSendTypes().length?0:1)},dependencies:[Ah.t,fh.Q,mB.M,Kb.Z,Zb.O,Hb.S,Cb.a,ce.$Z],encapsulation:2,changeDetection:0});var UQ=i(60893),OQ=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const NQ=["submitBtn"];function jQ(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",11),w.nI1(1,"i18n"),w.bIt("click",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.closeGenerator())}),w.k0s()}2&e&&w.Y8G("label",w.bMT(1,1,"close"))}function YQ(e,t){if(1&e){const e=w.RV6();w.j41(0,"vault-cipher-form-generator",12),w.bIt("valueGenerated",function(t){B.eBV(e);const i=w.XpG();return B.Njj(i.onValueGenerated(t))})("algorithmSelected",function(t){B.eBV(e);const i=w.XpG();return B.Njj(i.onAlgorithmSelected(t))}),w.k0s()}}function XQ(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",14),w.bIt("click",function(){B.eBV(e);const t=w.XpG(2);return B.Njj(t.makeCopy())}),w.EFF(1),w.nI1(2,"i18n"),w.k0s()}2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,1,"makeACopy")," "))}function zQ(e,t){if(1&e&&(w.j41(0,"bit-callout",8),w.nI1(1,"i18n"),w.j41(2,"div"),w.EFF(3),w.nI1(4,"i18n"),w.k0s(),w.nVh(5,XQ,3,3,"button",13),w.k0s()),2&e){const e=w.XpG();w.Y8G("title",w.bMT(1,3,e.disabledSendConfig().title)),w.R7$(3),w.JRh(w.bMT(4,5,e.disabledSendConfig().message)),w.R7$(2),w.vxM(e.disabledSendConfig().showMakeCopyButton?5:-1)}}function LQ(e,t){if(1&e){const e=w.RV6();w.j41(0,"tools-send-form",15),w.bIt("onSendCreated",function(t){B.eBV(e);const i=w.XpG();return B.Njj(i.onSendCreated(t))})("onSendUpdated",function(t){B.eBV(e);const i=w.XpG();return B.Njj(i.onSendUpdated(t))})("openPasswordGenerator",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.openGenerator())}),w.k0s()}if(2&e){const e=w.XpG();w.Y8G("config",e.config)("editing",e.editing())("submitBtn",e.submitBtn())}}function WQ(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",16),w.bIt("click",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.useGeneratedPassword())}),w.EFF(1),w.k0s(),w.j41(2,"button",17),w.bIt("click",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.closeGenerator())}),w.EFF(3),w.nI1(4,"i18n"),w.k0s()}if(2&e){const e=w.XpG();w.Y8G("disabled",!(e.generatorButtonLabel()&&e.generatedValue())),w.R7$(),w.SpI(" ",e.generatorButtonLabel()," "),w.R7$(2),w.SpI(" ",w.bMT(4,3,"cancel")," ")}}function KQ(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",19),w.bIt("click",function(){B.eBV(e);const t=w.XpG(3);return B.Njj(t.makeCopy())}),w.EFF(1),w.nI1(2,"i18n"),w.k0s(),w.j41(3,"div",20),w.nrm(4,"button",21),w.nI1(5,"i18n"),w.k0s()}if(2&e){const e=w.XpG(3);w.R7$(),w.SpI(" ",w.bMT(2,4,"makeACopy")," "),w.R7$(3),w.Y8G("label",w.mNQ(w.bMT(5,6,"delete")))("bitAction",e.deleteSend)}}function ZQ(e,t){if(1&e&&(w.j41(0,"button",18),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e){const e=w.XpG(3);w.Y8G("bitAction",e.deleteSend),w.R7$(),w.SpI(" ",w.bMT(2,2,"delete")," ")}}function HQ(e,t){if(1&e&&w.nVh(0,KQ,6,8)(1,ZQ,3,4,"button",18),2&e){const e=w.XpG(2);w.vxM(e.disabledSendConfig().showMakeCopyButton?0:1)}}function JQ(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",23,1),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"button",17),w.bIt("click",function(){B.eBV(e);const t=w.XpG(3);return B.Njj(t.cancelEditSend())}),w.EFF(5),w.nI1(6,"i18n"),w.k0s()}2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,2,"save")," "),w.R7$(3),w.SpI(" ",w.bMT(6,4,"cancel")," "))}function qQ(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",17),w.bIt("click",function(){B.eBV(e);const t=w.XpG(3);return B.Njj(t.editSend())}),w.EFF(1),w.nI1(2,"i18n"),w.k0s()}2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,1,"edit")," "))}function $Q(e,t){if(1&e&&(w.j41(0,"div",20),w.nrm(1,"button",24),w.nI1(2,"i18n"),w.k0s()),2&e){const e=w.XpG(3);w.R7$(),w.Y8G("label",w.mNQ(w.bMT(2,3,"delete")))("bitAction",e.deleteSend)}}function _Q(e,t){if(1&e&&(w.nVh(0,JQ,7,6)(1,qQ,3,3,"button",22),w.nVh(2,$Q,3,5,"div",20)),2&e){const e=w.XpG(2);w.vxM(e.editing()?0:1),w.R7$(2),w.vxM("add"!==(null==e.config?null:e.config.mode)?2:-1)}}function ek(e,t){if(1&e&&w.nVh(0,HQ,2,1)(1,_Q,3,2),2&e){const e=w.XpG();w.vxM(e.disabledSendConfig()?0:1)}}const tk=Object.freeze({Created:"created",Updated:"updated",Deleted:"deleted"});class ik{constructor(e,t,i,n,s,o,a,l){this.params=e,this.dialogRef=t,this.i18nService=i,this.sendApiService=n,this.toastService=s,this.dialogService=o,this.sendFormService=a,this.sendPolicyService=l,this.SendDisabledReason=mQ,this.disabledSendConfig=(0,B.vPA)(null),this.sendFormComponent=(0,r.ebz)(uQ),this.submitBtn=(0,r.ebz)("submitBtn"),this.headerText=(0,JA.EW)(()=>{if(this.showGenerator())return"passwordGenerator";let e="add";this.editing()?"edit"!==this.config.mode&&"partial-edit"!==this.config.mode||(e="edit"):e="view";return{[xl.N.Text]:{view:"viewTextSendHeader",edit:"editItemHeaderTextSendV2",add:"newItemHeaderTextSendV2"},[xl.N.File]:{view:"viewFileSendHeader",edit:"editItemHeaderFileSendV2",add:"newItemHeaderFileSendV2"}}[this.config.sendType][e]}),this.disableForm=!1,this.editing=(0,B.vPA)(!1),this.showGenerator=(0,B.vPA)(!1),this.generatedValue=(0,B.vPA)(""),this.generatorButtonLabel=(0,B.vPA)(void 0),this.showCopyButton=(0,B.vPA)(!1),this.showTrashIconButton=(0,B.vPA)(!1),this.deleteSend=()=>OQ(this,void 0,void 0,function*(){var e;if(yield this.dialogService.openSimpleDialog({title:{key:"deleteSend"},content:{key:"deleteSendPermanentConfirmation"},type:"warning"})){try{yield this.sendApiService.delete(null===(e=this.config.originalSend)||void 0===e?void 0:e.id)}catch(t){return void this.toastService.showToast({variant:"error",title:null,message:t.message})}yield this.onSendDeleted()}}),this.init()}init(){return OQ(this,void 0,void 0,function*(){var e,t,i,n;if(this.config=this.params.formConfig,this.config.originalSend){const e=yield this.sendPolicyService.sendDisabledReason(this.config.originalSend);e===mQ.RestrictedType?this.disabledSendConfig.set({title:this.config.originalSend.type===xl.N.Text?"orgDoesNotAllowTextSends":"orgDoesNotAllowFileSends",message:"sendWillAutomaticallyExpire",showMakeCopyButton:!1}):e===mQ.Other?this.disabledSendConfig.set({title:"sendNotCompliantWithYourOrgsPolicy",message:"sendDisabledNonCompliantBannerMessage",showMakeCopyButton:!0}):this.disabledSendConfig.set(null)}this.editing.set("add"===this.config.mode),this.showCopyButton.set((null===(e=this.config.originalSend)||void 0===e?void 0:e.disabled)&&(null===(t=this.config.originalSend)||void 0===t?void 0:t.type)===xl.N.Text),this.showTrashIconButton.set(this.showCopyButton()||!(null===(i=this.config.originalSend)||void 0===i?void 0:i.disabled)&&"add"!==(null===(n=this.config)||void 0===n?void 0:n.mode))})}openGenerator(){this.showGenerator.set(!0),this.dialogRef.disableClose=!0}useGeneratedPassword(){var e,t;const i=this.generatedValue();i&&(null===(t=null===(e=this.sendFormComponent())||void 0===e?void 0:e.sendDetailsComponent())||void 0===t||t.setGeneratedPassword(i)),this.showGenerator.set(!1),this.generatedValue.set(""),this.dialogRef.disableClose=!1}closeGenerator(){this.showGenerator.set(!1),this.generatedValue.set(""),this.dialogRef.disableClose=!1}onValueGenerated(e){this.generatedValue.set(e)}onAlgorithmSelected(e){e?this.generatorButtonLabel.set(e.useGeneratedValue):this.generatorButtonLabel.set(this.i18nService.t("useThisPassword")),this.generatedValue.set("")}onSendCreated(e){return OQ(this,void 0,void 0,function*(){yield this.dialogRef.close({result:tk.Created,send:e})})}onSendUpdated(e){return OQ(this,void 0,void 0,function*(){yield this.dialogRef.close({result:tk.Updated,send:e})})}onSendDeleted(){return OQ(this,void 0,void 0,function*(){yield this.dialogRef.close({result:tk.Deleted}),this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("deletedSend")})})}editSend(){this.editing.set(!0)}cancelEditSend(){return OQ(this,void 0,void 0,function*(){if("add"===this.config.mode)this.dialogRef.close();else{if(!(yield this.sendFormService.promptForUnsavedEdits()))return;this.editing.set(!1)}})}static open(e,t){return e.open(ik,{data:t,closePredicate:t.closePredicate})}static openDrawer(e,t){return e.openDrawer(ik,{data:t,closePredicate:t.closePredicate})}makeCopy(){return OQ(this,void 0,void 0,function*(){const e=this.sendFormService.originalSendView();if(!e)return;const t=yield(0,u._)(this.sendPolicyService.disableHideEmail$),i=yield(0,u._)(this.sendPolicyService.whoCanAccess$);this.config={areSendsAllowed:!0,mode:"add",sendType:e.type,originalSend:null,presetSendFields:{name:e.name,text:e.text,maxAccessCount:e.maxAccessCount,hideEmail:!t&&e.hideEmail,notes:e.notes,authType:i===IS.b.SpecificPeople?Ml.Email:i===IS.b.PasswordProtected?Ml.Password:Ml.None}},yield this.init()})}}ik.ɵfac=function(e){return new(e||ik)(w.rXU(Ep.Qs),w.rXU(mh.ce),w.rXU(he.W),w.rXU(md),w.rXU(F.f),w.rXU(T.o),w.rXU(ES),w.rXU(yQ))},ik.ɵcmp=w.VBU({type:ik,selectors:[["ng-component"]],viewQuery:function(e,t){1&e&&w.wEZ(t.sendFormComponent,uQ,5)(t.submitBtn,NQ,5),2&e&&w.NyB(2)},decls:14,vars:9,consts:[["dialog",""],["submitBtn",""],["dialogSize","large","background","alt"],["bitDialogTitle",""],["bitDialogHeaderEnd","","type","button","bitIconButton","bwi-close","buttonType","primaryGhost","size","default",3,"label"],["bitDialogContent",""],["type","password","disableMargin",""],[3,"hidden"],["type","info",3,"title"],["formId","sendForm",3,"config","editing","submitBtn"],["bitDialogFooter",""],["bitDialogHeaderEnd","","type","button","bitIconButton","bwi-close","buttonType","primaryGhost","size","default",3,"click","label"],["type","password","disableMargin","",3,"valueGenerated","algorithmSelected"],["type","button","bitButton","","buttonType","primary",1,"tw-mt-4"],["type","button","bitButton","","buttonType","primary",1,"tw-mt-4",3,"click"],["formId","sendForm",3,"onSendCreated","onSendUpdated","openPasswordGenerator","config","editing","submitBtn"],["type","button","bitButton","","buttonType","primary",3,"click","disabled"],["bitButton","","type","button","buttonType","secondary",3,"click"],["type","button","bitButton","","buttonType","danger",3,"bitAction"],["type","button","bitButton","","buttonType","primary",3,"click"],[1,"tw-ml-auto"],["type","button","buttonType","dangerGhost","bitIconButton","bwi-trash",3,"bitAction","label"],["bitButton","","type","button","buttonType","secondary"],["bitButton","","type","submit","form","sendForm","buttonType","primary"],["type","button","buttonType","dangerGhost","slot","end","bitIconButton","bwi-trash",3,"bitAction","label"]],template:function(e,t){1&e&&(w.j41(0,"bit-dialog",2,0)(2,"span",3),w.EFF(3),w.nI1(4,"i18n"),w.k0s(),w.nVh(5,jQ,2,3,"button",4),w.j41(6,"span",5),w.nVh(7,YQ,1,0,"vault-cipher-form-generator",6),w.j41(8,"div",7),w.nVh(9,zQ,6,7,"bit-callout",8),w.nVh(10,LQ,1,3,"tools-send-form",9),w.k0s()(),w.qex(11,10),w.nVh(12,WQ,5,5)(13,ek,2,1),w.bVm(),w.k0s()),2&e&&(w.R7$(3),w.SpI(" ",w.bMT(4,7,t.headerText())," "),w.R7$(2),w.vxM(t.showGenerator()?5:-1),w.R7$(2),w.vxM(t.showGenerator()?7:-1),w.R7$(),w.Y8G("hidden",t.showGenerator()),w.R7$(),w.vxM(t.disabledSendConfig()?9:-1),w.R7$(),w.vxM(t.config?10:-1),w.R7$(2),w.vxM(t.showGenerator()?12:13))},dependencies:[L.MD,UQ.t,a.YN,Ah.t,fh.Q,Uh.Q,Yh.s,BQ,uQ,vh.C,Up.p,ph.P,bh.m,Ch.hJ,dh.Wg,ae.G,ce.$Z],encapsulation:2});var nk=i(4017),rk=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const sk=(e,t)=>({sendId:e,type:t});function ok(e,t){1&e&&w.nrm(0,"bit-icon",7)}function ak(e,t){1&e&&w.nrm(0,"bit-icon",8)}function lk(e,t){if(1&e&&(w.nrm(0,"bit-icon",10),w.nI1(1,"i18n")),2&e){const e=w.XpG().$implicit,t=w.XpG(2);w.Y8G("bitTooltip",w.bMT(1,1,e.authType===t.authType.Email?"emailProtected":"passwordProtected"))}}function ck(e,t){1&e&&(w.nrm(0,"bit-icon",11),w.nI1(1,"i18n")),2&e&&w.Y8G("bitTooltip",w.bMT(1,1,"sendNotCompliantWithYourOrgsPolicy"))}function dk(e,t){1&e&&(w.nrm(0,"bit-icon",12),w.nI1(1,"i18n")),2&e&&w.Y8G("bitTooltip",w.bMT(1,1,"expired"))}function uk(e,t){1&e&&(w.nrm(0,"bit-icon",11),w.nI1(1,"i18n")),2&e&&w.Y8G("bitTooltip",w.bMT(1,1,"maxAccessCountReached"))}function hk(e,t){if(1&e){const e=w.RV6();w.j41(0,"bit-item")(1,"button",5),w.nI1(2,"i18n"),w.j41(3,"div",6),w.nVh(4,ok,1,0,"bit-icon",7),w.nVh(5,ak,1,0,"bit-icon",8),w.k0s(),w.EFF(6),w.j41(7,"div",9),w.nVh(8,lk,2,3,"bit-icon",10),w.nVh(9,ck,2,3,"bit-icon",11),w.nVh(10,dk,2,3,"bit-icon",12),w.nVh(11,uk,2,3,"bit-icon",11),w.k0s(),w.j41(12,"span",13),w.EFF(13),w.nI1(14,"i18n"),w.nI1(15,"date"),w.k0s()(),w.qex(16,14),w.j41(17,"bit-item-action")(18,"button",15),w.nI1(19,"i18n"),w.bIt("click",function(){const t=B.eBV(e).$implicit,i=w.XpG(2);return B.Njj(i.copySendLink(t))}),w.k0s()(),w.j41(20,"bit-item-action")(21,"button",16),w.nI1(22,"i18n"),w.bIt("click",function(){const t=B.eBV(e).$implicit,i=w.XpG(2);return B.Njj(i.deleteSend(t))}),w.k0s()(),w.bVm(),w.k0s()}if(2&e){const e=t.$implicit,i=w.XpG(2);w.R7$(),w.Y8G("appA11yTitle",w.ai1("",w.bMT(2,19,"edit")," - ",e.name))("queryParams",w.l_i(30,sk,e.id,e.type)),w.R7$(3),w.vxM(e.type===i.sendType.Text?4:-1),w.R7$(),w.vxM(e.type===i.sendType.File?5:-1),w.R7$(),w.SpI(" ",e.name," "),w.R7$(2),w.vxM(e.authType!==i.authType.None?8:-1),w.R7$(),w.vxM(e.disabled?9:-1),w.R7$(),w.vxM(e.expired?10:-1),w.R7$(),w.vxM(e.maxAccessCountReached?11:-1),w.R7$(2),w.Lme(" ",w.bMT(14,21,"deletionDate"),": ",w.i5U(15,23,e.deletionDate,"mediumDate")," "),w.R7$(5),w.Y8G("label",w.ai1("",w.bMT(19,26,"copyLink")," - ",e.name)),w.R7$(3),w.Y8G("label",w.ai1("",w.bMT(22,28,"delete")," - ",e.name))}}function Ak(e,t){if(1&e&&(w.j41(0,"bit-section",1)(1,"bit-section-header")(2,"h2",2),w.EFF(3),w.k0s(),w.j41(4,"span",3),w.EFF(5),w.k0s()(),w.j41(6,"bit-item-group"),w.DNE(7,hk,23,33,"bit-item",4),w.k0s()()),2&e){const e=w.XpG();w.R7$(3),w.SpI(" ",e.headerText," "),w.R7$(2),w.JRh(e.sends.length),w.R7$(2),w.Y8G("ngForOf",e.sends)}}class pk{constructor(e,t,i,n,r,s,o){this.dialogService=e,this.environmentService=t,this.i18nService=i,this.logService=n,this.platformUtilsService=r,this.sendApiService=s,this.toastService=o,this.sendType=xl.N,this.authType=Ml,this.sends=[]}deleteSend(e){return rk(this,void 0,void 0,function*(){if(!(yield this.dialogService.openSimpleDialog({title:{key:"deleteSend"},content:{key:"deleteSendPermanentConfirmation"},type:"warning"})))return!1;yield this.sendApiService.delete(e.id);try{this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("deletedSend")})}catch(t){this.logService.error(t)}})}copySendLink(e){return rk(this,void 0,void 0,function*(){const t=(yield(0,u._)(this.environmentService.environment$)).getSendUrl()+e.accessId+"/"+e.urlB64Key;this.platformUtilsService.copyToClipboard(t),this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("valueCopied",this.i18nService.t("sendLink"))})})}}pk.ɵfac=function(e){return new(e||pk)(w.rXU(T.o),w.rXU(yo.v),w.rXU(he.W),w.rXU(se.K),w.rXU(G.y),w.rXU(md),w.rXU(F.f))},pk.ɵcmp=w.VBU({type:pk,selectors:[["app-send-list-items-container"]],inputs:{sends:"sends",headerText:"headerText"},decls:1,vars:1,consts:[["disableMargin","",4,"ngIf"],["disableMargin",""],["bitTypography","h6",1,"tw-font-medium"],["bitTypography","body1","slot","end"],[4,"ngFor","ngForOf"],["bit-item-content","","routerLink","/edit-send","appStopClick","","type","button",3,"appA11yTitle","queryParams"],["slot","start",1,"tw-justify-start"],["name","bwi-file-text",1,"bwi-lg","tw-text-muted","tw-w-6"],["name","bwi-file",1,"bwi-lg","tw-text-muted","tw-w-6"],["slot","default-trailing",1,"tw-flex","tw-gap-2","tw-relative","tw-z-10"],["name","bwi-lock",3,"bitTooltip"],["name","bwi-exclamation-triangle",3,"bitTooltip"],["name","bwi-clock",3,"bitTooltip"],["slot","secondary"],["slot","end"],["bitIconButton","bwi-clone","size","small","type","button",1,"tw-p-1",3,"click","label"],["bitIconButton","bwi-trash","size","small","type","button",3,"click","label"]],template:function(e,t){1&e&&w.DNE(0,Ak,8,3,"bit-section",0),2&e&&w.Y8G("ngIf",(null==t.sends?null:t.sends.length)>0)},dependencies:[L.MD,L.Sq,L.bT,qp.k,nI.J,rI.g,nk.D,sI._,Ah.t,iI.E,Uh.Q,Yh.s,Jb.n,Fp.E,Tp.r,Nh.p,Fb.C,Xy.Y,wS.U,Hp.Wk,ve.R,KA.d,L.vh,Hh.$],encapsulation:2});const gk={sendType:null};class vk{constructor(e,t){this.i18nService=e,this.formBuilder=t,this.filterForm=this.formBuilder.group(gk),this.filters$=this.filterForm.valueChanges.pipe((0,tn.Z)(gk)),this.filterFunction$=this.filters$.pipe((0,p.T)(e=>t=>t.filter(t=>null===e.sendType||t.type===e.sendType))),this.sendTypes=[{value:xl.N.File,label:this.i18nService.t("sendTypeFile"),icon:"bwi-file"},{value:xl.N.Text,label:this.i18nService.t("sendTypeText"),icon:"bwi-file-text"}]}resetFilterForm(){this.filterForm.reset(gk)}convertToChipFilterOption(e,t){return{value:e.node,label:e.node.name,icon:t,children:e.children?e.children.map(e=>this.convertToChipFilterOption(e,t)):void 0}}}vk.ɵfac=function(e){return new(e||vk)(B.KVO(he.W),B.KVO(a.ok))},vk.ɵprov=B.jDH({token:vk,factory:vk.ɵfac,providedIn:"root"});class mk{constructor(e,t,i,n){this.sendService=e,this.sendListFiltersService=t,this.searchService=i,this.accountService=n,this._searchText$=new Tt.t(""),this._sendsLoading$=new d.B,this.latestSearchText$=this._searchText$.asObservable(),this._sendList$=this.sendService.sendViews$,this.filteredAndSortedSends$=(0,xt.z)([this._sendList$,this._searchText$,this.sendListFiltersService.filterFunction$]).pipe((0,P.M)(()=>{this._sendsLoading$.next()}),(0,p.T)(([e,t,i])=>[i(e),t]),(0,p.T)(([e,t])=>this.searchService.searchSends(e,t)),(0,p.T)(e=>e.sort((e,t)=>e.name.localeCompare(t.name))),(0,Gr.t)({refCount:!0,bufferSize:1})),this.loading$=(0,Su.h)(this._sendsLoading$.pipe((0,p.T)(()=>!0)),this.filteredAndSortedSends$.pipe((0,p.T)(()=>!1))).pipe((0,tn.Z)(!0),(0,$i.F)(),(0,Gr.t)({refCount:!1,bufferSize:1})),this.hasFilterApplied$=(0,xt.z)([this._searchText$,this.sendListFiltersService.filters$,(0,f.F6)(this.accountService.activeAccount$)]).pipe((0,jt.n)(([e,t,i])=>(0,Si.H)(this.searchService.isSearchable(e)).pipe((0,p.T)(e=>e||Object.values(t).some(e=>null!==e))))),this.emptyList$=this._sendList$.pipe((0,p.T)(e=>!e.length)),this.noFilteredResults$=this.filteredAndSortedSends$.pipe((0,p.T)(e=>!e.length))}applyFilter(e){this._searchText$.next(e)}}mk.ɵfac=function(e){return new(e||mk)(B.KVO(Sd),B.KVO(vk),B.KVO(xd.S),B.KVO(N.D))},mk.ɵprov=B.jDH({token:mk,factory:mk.ɵfac,providedIn:"root"});var fk=i(5520);class yk{constructor(){this.sendListItemService=(0,B.WQX)(mk),this.searchText=(0,r.geq)(""),this.subscribeToLatestSearchText(),this.subscribeToApplyFilter()}subscribeToLatestSearchText(){this.sendListItemService.latestSearchText$.pipe((0,c.pQ)(),(0,h.p)(e=>!!e)).subscribe(e=>{this.searchText.set(e)})}subscribeToApplyFilter(){(0,c.br)(this.searchText).pipe((0,Oy.B)(200),(0,c.pQ)()).subscribe(e=>{this.sendListItemService.applyFilter(e)})}}yk.ɵfac=function(e){return new(e||yk)},yk.ɵcmp=w.VBU({type:yk,selectors:[["tools-send-search"]],inputs:{searchText:[1,"searchText"]},outputs:{searchText:"searchTextChange"},decls:2,vars:4,consts:[["appAutofocus","",3,"ngModelChange","placeholder","ngModel"]],template:function(e,t){1&e&&(w.j41(0,"bit-search",0),w.nI1(1,"i18n"),w.mxI("ngModelChange",function(e){return w.DH7(t.searchText,e)||(t.searchText=e),e}),w.k0s()),2&e&&(w.Y8G("placeholder",w.bMT(1,2,"search")),w.R50("ngModel",t.searchText))},dependencies:[a.YN,a.BC,a.vS,UQ.t,fk.S,ce.$Z],encapsulation:2,changeDetection:0});var bk=i(5884);function Ck(e,t){if(1&e&&(w.j41(0,"div",0),w.nI1(1,"i18n"),w.j41(2,"form",1),w.nrm(3,"bit-chip-filter",2),w.nI1(4,"i18n"),w.k0s()()),2&e){const e=w.XpG();w.BMQ("aria-label",w.bMT(1,4,"filters")),w.R7$(2),w.Y8G("formGroup",e.filterForm),w.R7$(),w.Y8G("placeholderText",w.bMT(4,6,"type"))("options",e.sendTypes)}}class Ik{constructor(e,t){this.sendListFiltersService=e,this.sendPolicyService=t,this.filterForm=this.sendListFiltersService.filterForm,this.sendTypes=this.sendListFiltersService.sendTypes,this.allowedSendTypes=(0,c.ot)(this.sendPolicyService.allowedSendTypes$,{initialValue:[xl.N.Text,xl.N.File]})}ngOnDestroy(){this.sendListFiltersService.resetFilterForm()}}function wk(e,t){1&e&&w.nrm(0,"bit-icon",13)}function Bk(e,t){1&e&&w.nrm(0,"bit-icon",14)}function Ek(e,t){if(1&e&&(w.j41(0,"span",16),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e){const e=w.XpG().$implicit,t=w.XpG(2);w.R7$(),w.SpI(", ",w.bMT(2,1,e.authType===t.authType.Email?"emailProtected":"passwordProtected"))}}function Sk(e,t){1&e&&(w.j41(0,"span",16),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.SpI(", ",w.bMT(2,1,"sendNotCompliantWithYourOrgsPolicy")))}function Qk(e,t){1&e&&(w.j41(0,"span",16),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.SpI(", ",w.bMT(2,1,"expired")))}function kk(e,t){1&e&&(w.j41(0,"span",16),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.SpI(", ",w.bMT(2,1,"maxAccessCountReached")))}function Rk(e,t){1&e&&(w.j41(0,"span",16),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.SpI(", ",w.bMT(2,1,"pendingDeletion")))}function Fk(e,t){if(1&e&&(w.nrm(0,"bit-icon",17),w.nI1(1,"i18n")),2&e){const e=w.XpG().$implicit,t=w.XpG(2);w.Y8G("bitTooltip",w.bMT(1,1,e.authType===t.authType.Email?"emailProtected":"passwordProtected"))}}function Tk(e,t){1&e&&(w.nrm(0,"bit-icon",18),w.nI1(1,"i18n")),2&e&&w.Y8G("bitTooltip",w.bMT(1,1,"sendNotCompliantWithYourOrgsPolicy"))}function Dk(e,t){1&e&&(w.nrm(0,"bit-icon",19),w.nI1(1,"i18n")),2&e&&w.Y8G("bitTooltip",w.bMT(1,1,"expired"))}function Pk(e,t){1&e&&(w.nrm(0,"bit-icon",18),w.nI1(1,"i18n")),2&e&&w.Y8G("bitTooltip",w.bMT(1,1,"maxAccessCountReached"))}function Mk(e,t){1&e&&(w.nrm(0,"bit-icon",20),w.nI1(1,"i18n")),2&e&&w.Y8G("bitTooltip",w.bMT(1,1,"pendingDeletion"))}function xk(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",25),w.bIt("click",function(){B.eBV(e);const t=w.XpG().$implicit,i=w.XpG(2);return B.Njj(i.onRemovePassword(t))}),w.nrm(1,"bit-icon",30),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"removePassword")," "))}function Vk(e,t){if(1&e){const e=w.RV6();w.j41(0,"tr",9)(1,"td",10),w.bIt("click",function(){const t=B.eBV(e).$implicit,i=w.XpG(2);return B.Njj(i.onEditSend(t))}),w.j41(2,"div",11)(3,"span",12),w.nVh(4,wk,1,0,"bit-icon",13),w.nVh(5,Bk,1,0,"bit-icon",14),w.k0s(),w.j41(6,"button",15),w.EFF(7),w.nVh(8,Ek,3,3,"span",16),w.nVh(9,Sk,3,3,"span",16),w.nVh(10,Qk,3,3,"span",16),w.nVh(11,kk,3,3,"span",16),w.nVh(12,Rk,3,3,"span",16),w.k0s(),w.nVh(13,Fk,2,3,"bit-icon",17),w.nVh(14,Tk,2,3,"bit-icon",18),w.nVh(15,Dk,2,3,"bit-icon",19),w.nVh(16,Pk,2,3,"bit-icon",18),w.nVh(17,Mk,2,3,"bit-icon",20),w.k0s()(),w.j41(18,"td",21),w.bIt("click",function(){const t=B.eBV(e).$implicit,i=w.XpG(2);return B.Njj(i.onEditSend(t))}),w.j41(19,"small",22),w.EFF(20),w.nI1(21,"date"),w.k0s()(),w.j41(22,"td",23),w.nrm(23,"button",24),w.nI1(24,"i18n"),w.j41(25,"bit-menu",null,0)(27,"button",25),w.bIt("click",function(){const t=B.eBV(e).$implicit,i=w.XpG(2);return B.Njj(i.onCopy(t))}),w.nrm(28,"bit-icon",26),w.EFF(29),w.nI1(30,"i18n"),w.k0s(),w.nVh(31,xk,4,3,"button",27),w.j41(32,"button",28),w.bIt("click",function(){const t=B.eBV(e).$implicit,i=w.XpG(2);return B.Njj(i.onDelete(t))}),w.nrm(33,"bit-icon",29),w.EFF(34),w.nI1(35,"i18n"),w.k0s()()()()}if(2&e){const e=t.$implicit,i=w.sdS(26),n=w.XpG(2);w.R7$(4),w.vxM(e.type==n.sendType.File?4:-1),w.R7$(),w.vxM(e.type==n.sendType.Text?5:-1),w.R7$(2),w.SpI(" ",e.name," "),w.R7$(),w.vxM(e.authType!==n.authType.None?8:-1),w.R7$(),w.vxM(e.disabled?9:-1),w.R7$(),w.vxM(e.expired?10:-1),w.R7$(),w.vxM(e.maxAccessCountReached?11:-1),w.R7$(),w.vxM(e.pendingDelete?12:-1),w.R7$(),w.vxM(e.authType!==n.authType.None?13:-1),w.R7$(),w.vxM(e.disabled?14:-1),w.R7$(),w.vxM(e.expired?15:-1),w.R7$(),w.vxM(e.maxAccessCountReached?16:-1),w.R7$(),w.vxM(e.pendingDelete?17:-1),w.R7$(3),w.SpI(" ",w.i5U(21,20,e.deletionDate,"medium")," "),w.R7$(3),w.Y8G("label",w.mNQ(w.bMT(24,23,"options")))("bitMenuTriggerFor",i),w.R7$(6),w.SpI(" ",w.bMT(30,25,"copySendLink")," "),w.R7$(2),w.vxM(e.password&&!n.disableSend()?31:-1),w.R7$(3),w.SpI(" ",w.bMT(35,27,"delete")," ")}}function Gk(e,t){if(1&e&&(w.DNE(0,Vk,36,29,"tr",8),w.nI1(1,"async")),2&e){const e=t.$implicit;w.Y8G("ngForOf",w.bMT(1,1,e))}}Ik.ɵfac=function(e){return new(e||Ik)(w.rXU(vk),w.rXU(yQ))},Ik.ɵcmp=w.VBU({type:Ik,selectors:[["app-send-list-filters"]],decls:1,vars:1,consts:[["role","toolbar"],[1,"tw-flex","tw-flex-wrap","tw-gap-2","tw-mt-2",3,"formGroup"],["formControlName","sendType","placeholderIcon","bwi-list",3,"placeholderText","options"]],template:function(e,t){1&e&&w.nVh(0,Ck,5,8,"div",0),2&e&&w.vxM(t.allowedSendTypes().length>1?0:-1)},dependencies:[L.MD,bk.W,a.X1,a.qT,a.BC,a.cb,a.j4,a.JD,ce.$Z],encapsulation:2});class Uk{constructor(){this.sendType=xl.N,this.authType=Ml,this.dataSource=(0,r.hFB)(),this.disableSend=(0,r.hFB)(!1),this.editSend=(0,r.CGW)(),this.copySend=(0,r.CGW)(),this.removePassword=(0,r.CGW)(),this.deleteSend=(0,r.CGW)()}onEditSend(e){this.editSend.emit(e)}onCopy(e){this.copySend.emit(e)}onRemovePassword(e){this.removePassword.emit(e)}onDelete(e){this.deleteSend.emit(e)}}Uk.ɵfac=function(e){return new(e||Uk)},Uk.ɵcmp=w.VBU({type:Uk,selectors:[["tools-send-table"]],inputs:{dataSource:[1,"dataSource"],disableSend:[1,"disableSend"]},outputs:{editSend:"editSend",copySend:"copySend",removePassword:"removePassword",deleteSend:"deleteSend"},decls:14,vars:10,consts:[["sendOptions",""],[1,"tw-@container/send-table"],[3,"dataSource"],["header",""],["bitCell","","bitSortable","name","default",""],["bitCell","","bitSortable","deletionDate",1,"@lg/send-table:tw-table-cell","tw-hidden"],["bitCell",""],["body",""],["bitRow","",4,"ngFor","ngForOf"],["bitRow",""],["bitCell","",1,"tw-cursor-pointer",3,"click"],[1,"tw-flex","tw-gap-2","tw-items-center"],["aria-hidden","true"],["name","bwi-file",1,"bwi-lg","tw-text-muted"],["name","bwi-file-text",1,"bwi-lg","tw-text-muted"],["type","button","bitLink",""],[1,"tw-sr-only"],["name","bwi-lock","appStopProp","",3,"bitTooltip"],["name","bwi-exclamation-triangle","appStopProp","",3,"bitTooltip"],["name","bwi-clock","appStopProp","",3,"bitTooltip"],["name","bwi-trash","appStopProp","",3,"bitTooltip"],["bitCell","",1,"tw-text-muted","tw-cursor-pointer","@lg/send-table:tw-table-cell","tw-hidden",3,"click"],["bitTypography","body2","appStopProp",""],["bitCell","",1,"tw-w-0","tw-text-right"],["type","button","size","small","bitIconButton","bwi-ellipsis-v",3,"bitMenuTriggerFor","label"],["type","button","bitMenuItem","",3,"click"],["name","bwi-clone","fixedWidth",""],["type","button","bitMenuItem",""],["type","button","bitMenuItem","","variant","danger",3,"click"],["fixedWidth","","name","bwi-trash","slot","start"],["name","bwi-close","fixedWidth",""]],template:function(e,t){1&e&&(w.j41(0,"div",1)(1,"bit-table",2),w.qex(2,3),w.j41(3,"tr")(4,"th",4),w.EFF(5),w.nI1(6,"i18n"),w.k0s(),w.j41(7,"th",5),w.EFF(8),w.nI1(9,"i18n"),w.k0s(),w.j41(10,"th",6),w.EFF(11),w.nI1(12,"i18n"),w.k0s()(),w.bVm(),w.DNE(13,Gk,2,3,"ng-template",7),w.k0s()()),2&e&&(w.R7$(),w.Y8G("dataSource",t.dataSource()),w.R7$(4),w.JRh(w.bMT(6,4,"name")),w.R7$(3),w.SpI(" ",w.bMT(9,6,"deletionDate")," "),w.R7$(3),w.JRh(w.bMT(12,8,"options")))},dependencies:[L.MD,L.Sq,Nh.p,qy.x,EI.b,qb.Q,$b.Y,FI.O,_b._,_b.O,Ah.t,Gh.V,jh.g,le.o,ve.R,Uh.Q,Yh.s,mB.M,Kb.Z,Zb.O,Hb.S,iI.E,Fp.E,Tp.r,KA.d,L.Jj,L.vh,Hh.$],encapsulation:2,changeDetection:0});const Ok=te.JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="9 4 83.89 91">
|
|
<path class="tw-fill-illustration-bg-secondary" d="M67 12a2 2 0 0 1 2 2v76a2 2 0 0 1-2 2H11a2 2 0 0 1-2-2V14a2 2 0 0 1 2-2h56Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M67 90V14H11v76h56Zm2-76a2 2 0 0 0-2-2H11a2 2 0 0 0-2 2v76a2 2 0 0 0 2 2h56a2 2 0 0 0 2-2V14Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-primary" d="M77 82V6a2 2 0 0 0-2-2H32.328c-.53 0-1.034.206-1.41.581L17.585 17.916A1.993 1.993 0 0 0 17 19.328V82a2 2 0 0 0 2 2h56a2 2 0 0 0 2-2Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M75 82V6H32.328L19 19.328V82h56ZM32.333 5.995ZM77 6v76a2 2 0 0 1-2 2H19a2 2 0 0 1-2-2V19.328c0-.53.209-1.037.584-1.412L30.919 4.581c.375-.375.879-.581 1.41-.581H75a2 2 0 0 1 2 2Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M33 5a1 1 0 0 1 1 1v15H19a1 1 0 1 1 0-2h13V6a1 1 0 0 1 1-1Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-tertiary" d="M37 35a3 3 0 0 1 3-3h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H40a3 3 0 0 1-3-3V35Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M54 34H40a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V35a1 1 0 0 0-1-1Zm-14-2a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V35a3 3 0 0 0-3-3H40Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" d="M46 38a1 1 0 1 1 2 0v4a1 1 0 1 1-2 0v-4Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M42 31a5 5 0 0 1 10 0v1h-2v-1a3 3 0 1 0-6 0v1h-2v-1Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-primary" d="M62 92.058V78l12 6.4-8.658 9.004A1.942 1.942 0 0 1 62 92.058Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="m61 76.333 14.637 7.807-9.574 9.957A2.942 2.942 0 0 1 61 92.057V76.333Zm2 3.333v12.391a.942.942 0 0 0 1.621.653l7.742-8.05L63 79.666Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M42.55 65.971 88.334 44.54c1.76-.824 3.746.587 3.546 2.52l-4.604 44.648c-.197 1.91-2.386 2.895-3.946 1.773L62.5 78.5l-19.82-7.944c-2.03-.813-2.11-3.657-.13-4.585Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M90.886 46.957a1.5 1.5 0 0 0-2.128-1.512L42.974 66.878c-1.188.556-1.14 2.262.078 2.75l19.164 7.681 12.867-14.613a1 1 0 1 1 1.501 1.321L63.98 78.333l19.934 14.336a1.5 1.5 0 0 0 2.367-1.064l4.605-44.648ZM62.015 79.383l-19.707-7.898c-2.842-1.139-2.955-5.12-.182-6.419L87.91 43.634c2.464-1.154 5.244.822 4.965 3.529L88.271 91.81c-.276 2.675-3.341 4.053-5.525 2.482L62.015 79.383Z" clip-rule="evenodd"/>
|
|
</svg>
|
|
`;var Nk=i(78510),jk=i(59525),Yk=i(22690);const Xk=[[["","slot","filters"]],[["","slot","empty-button"]]],zk=["slot","button"];function Lk(e,t){1&e&&w.nrm(0,"bit-spinner")}function Wk(e,t){1&e&&w.nrm(0,"tools-send-search")}function Kk(e,t){if(1&e&&(w.j41(0,"bit-no-items",1),w.qex(1,2),w.EFF(2),w.nI1(3,"i18n"),w.bVm(),w.qex(4,3),w.EFF(5),w.nI1(6,"i18n"),w.bVm(),w.k0s()),2&e){const e=w.XpG(2);w.Y8G("icon",e.noItemIcon),w.R7$(2),w.JRh(w.bMT(3,3,"sendsTitleNoSearchResults")),w.R7$(3),w.JRh(w.bMT(6,5,"sendsBodyNoSearchResults"))}}function Zk(e,t){if(1&e&&(w.j41(0,"bit-no-items",1),w.qex(1,2),w.EFF(2),w.nI1(3,"i18n"),w.bVm(),w.qex(4,3),w.EFF(5),w.nI1(6,"i18n"),w.bVm(),w.SdG(7,1,zk),w.k0s()),2&e){const e=w.XpG(2);w.Y8G("icon",e.noItemIcon),w.R7$(2),w.JRh(w.bMT(3,3,"sendsTitleNoItems")),w.R7$(3),w.JRh(w.bMT(6,5,"sendsBodyNoItems"))}}function Hk(e,t){if(1&e){const e=w.RV6();w.nVh(0,Wk,1,0,"tools-send-search"),w.SdG(1),w.j41(2,"tools-send-table",0),w.bIt("editSend",function(t){B.eBV(e);const i=w.XpG();return B.Njj(i.onEditSend(t))})("copySend",function(t){B.eBV(e);const i=w.XpG();return B.Njj(i.onCopySend(t))})("removePassword",function(t){B.eBV(e);const i=w.XpG();return B.Njj(i.onRemovePassword(t))})("deleteSend",function(t){B.eBV(e);const i=w.XpG();return B.Njj(i.onDeleteSend(t))}),w.k0s(),w.nVh(3,Kk,7,7,"bit-no-items",1)(4,Zk,8,7,"bit-no-items",1)}if(2&e){const e=w.XpG();w.vxM(e.showSearchBar()?0:-1),w.R7$(2),w.Y8G("dataSource",e.dataSource)("disableSend",e.disableSend()),w.R7$(),w.vxM(e.noSearchResults()?3:e.listState()===e.sendListState.NoResults||e.listState()===e.sendListState.Empty?4:-1)}}const Jk=Object.freeze({Empty:"Empty",NoResults:"NoResults"});class qk{constructor(){this.noItemIcon=Ok,this.noResultsIcon=Nk.a,this.sendListState=Jk,this.sends=r.hFB.required(),this.loading=(0,r.hFB)(!1),this.disableSend=(0,r.hFB)(!1),this.listState=(0,r.hFB)(null),this.searchText=(0,r.hFB)(""),this.hideSearchBar=(0,r.hFB)(!1),this.showSearchBar=(0,JA.EW)(()=>(this.sends().length>0||this.searchText().length>0)&&!this.hideSearchBar()),this.noSearchResults=(0,JA.EW)(()=>this.showSearchBar()&&0===this.sends().length),this.dataSource=new BI.s,this.editSend=(0,r.CGW)(),this.copySend=(0,r.CGW)(),this.removePassword=(0,r.CGW)(),this.deleteSend=(0,r.CGW)(),(0,B.QZP)(()=>{this.dataSource.data=this.sends()})}onEditSend(e){this.editSend.emit(e)}onCopySend(e){this.copySend.emit(e)}onRemovePassword(e){this.removePassword.emit(e)}onDeleteSend(e){this.deleteSend.emit(e)}}qk.ɵfac=function(e){return new(e||qk)},qk.ɵcmp=w.VBU({type:qk,selectors:[["tools-send-list"]],inputs:{sends:[1,"sends"],loading:[1,"loading"],disableSend:[1,"disableSend"],listState:[1,"listState"],searchText:[1,"searchText"],hideSearchBar:[1,"hideSearchBar"]},outputs:{editSend:"editSend",copySend:"copySend",removePassword:"removePassword",deleteSend:"deleteSend"},ngContentSelectors:["[slot='filters']","[slot='empty-button']"],decls:2,vars:1,consts:[[3,"editSend","copySend","removePassword","deleteSend","dataSource","disableSend"],[3,"icon"],["slot","title"],["slot","description"]],template:function(e,t){1&e&&(w.NAR(Xk),w.nVh(0,Lk,1,0,"bit-spinner")(1,Hk,5,4)),2&e&&w.vxM(t.loading()?0:1)},dependencies:[L.MD,Nh.p,Ah.t,jk.s,Yk.D,yg.t,yk,Uk,Hh.$],encapsulation:2,changeDetection:0});class $k{constructor(e,t,i,n,r){this.accountService=e,this.billingAccountProfileStateService=t,this.logService=i,this.platformUtilsService=n,this.accountBillingClient=r}getSubscriptionRoute$(){return null}ifAccountExistsCheck(e){return this.accountService.activeAccount$.pipe((0,jt.n)(t=>t?e(t.id):(0,ln.of)(!1)))}}$k.ɵfac=function(e){return new(e||$k)(B.KVO(N.D),B.KVO(gr.Q),B.KVO(se.K),B.KVO(G.y),B.KVO(_B.cH))},$k.ɵprov=B.jDH({token:$k,factory:$k.ɵfac,providedIn:"root"});var _k=i(24137),eR=i(37806),tR=i(65067);function iR(e,t){1&e&&(w.nrm(0,"bit-nav-item",1),w.nI1(1,"i18n")),2&e&&w.Y8G("text",w.bMT(1,1,"sponsoredFamilies"))}class nR{constructor(e){this.freeFamiliesPolicyService=e,this.showFreeFamilies$=this.freeFamiliesPolicyService.showFreeFamilies$}}nR.ɵfac=function(e){return new(e||nR)(w.rXU(vB.A))},nR.ɵcmp=w.VBU({type:nR,selectors:[["billing-free-families-nav-item"]],decls:2,vars:3,consts:[["route","settings/sponsored-families",3,"text",4,"ngIf"],["route","settings/sponsored-families",3,"text"]],template:function(e,t){1&e&&(w.DNE(0,iR,2,3,"bit-nav-item",0),w.nI1(1,"async")),2&e&&w.Y8G("ngIf",w.bMT(1,1,t.showFreeFamilies$))},dependencies:[_k.f,tR.u,eR.r,L.bT,L.Jj,Hh.$],encapsulation:2});var rR=i(15661),sR=i(81740),oR=i(44087),aR=i(59557),lR=i(53021),cR=i(4581),dR=i(38411),uR=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function hR(e,t){1&e&&(w.nrm(0,"bit-nav-item",4),w.nI1(1,"i18n")),2&e&&w.Y8G("text",w.bMT(1,1,"send"))}function AR(e,t){if(1&e&&(w.nrm(0,"bit-nav-item",16),w.nI1(1,"i18n")),2&e){w.XpG();const e=w.r8f(30);w.Y8G("text",w.bMT(1,2,"subscription"))("route",e)}}function pR(e,t){1&e&&(w.nrm(0,"bit-nav-item",18),w.nI1(1,"i18n")),2&e&&w.Y8G("text",w.bMT(1,1,"emergencyAccess"))}class gR{constructor(e,t,i,n,r){this.syncService=e,this.accountService=t,this.policyService=i,this.sendPolicyService=n,this.premiumSubscriptionRoutingService=r,this.logo=fS,this.sendEnabled$=this.sendPolicyService.disableSend$.pipe((0,p.T)(e=>!e)),this.coachmarkService=(0,B.WQX)(rR.Tu),this.sideNavService=(0,B.WQX)(yS.G),this.importCoachmarkOpen=(0,JA.EW)(()=>"importData"===this.coachmarkService.activeStepId()),this.reportsCoachmarkOpen=(0,JA.EW)(()=>"monitorSecurity"===this.coachmarkService.activeStepId()),this.toolsNavGroupOpen=(0,JA.EW)(()=>"importData"===this.coachmarkService.activeStepId()),this.showEmergencyAccess=(0,c.ot)(this.accountService.activeAccount$.pipe(f.F6,(0,jt.n)(e=>(0,v.KP)(e,this.policyService)))),this.subscriptionRoute$=this.premiumSubscriptionRoutingService.getSubscriptionRoute$()}ngOnInit(){return uR(this,void 0,void 0,function*(){document.body.classList.remove("layout_frontend"),yield this.syncService.fullSync(!1)})}}gR.ɵfac=function(e){return new(e||gR)(w.rXU(mc.H),w.rXU(N.D),w.rXU(Je.m),w.rXU(yQ),w.rXU($k))},gR.ɵcmp=w.VBU({type:gR,selectors:[["app-user-layout"]],decls:38,vars:61,consts:[["importCoachmark",""],["reportsCoachmark",""],["route",".",3,"openIcon","label"],["icon","bwi-vault","route","vault",3,"text"],["icon","bwi-send","route","sends",3,"text"],["icon","bwi-wrench","route","tools",3,"text","open","bitPopoverAnchorFor","popoverOpen","position","closeOnBackdropClick","spotlight"],["route","tools/generator",3,"text"],["route","tools/import",3,"text","bitPopoverAnchorFor","popoverOpen","position","closeOnBackdropClick","spotlight"],["stepId","importData"],["route","tools/export",3,"text"],["icon","bwi-sliders","route","reports",3,"text","bitPopoverAnchorFor","popoverOpen","position","closeOnBackdropClick","spotlight"],["stepId","monitorSecurity"],["icon","bwi-cog","route","settings",3,"text"],["route","settings/account",3,"text"],["route","settings/security",3,"text"],["route","settings/appearance",3,"text"],[3,"text","route"],["route","settings/domain-rules",3,"text"],["route","settings/emergency-access",3,"text"]],template:function(e,t){if(1&e&&(w.j41(0,"app-layout")(1,"app-side-nav"),w.nrm(2,"bit-nav-logo",2),w.nI1(3,"i18n"),w.nrm(4,"bit-nav-item",3),w.nI1(5,"i18n"),w.nVh(6,hR,2,3,"bit-nav-item",4),w.nI1(7,"async"),w.j41(8,"bit-nav-group",5),w.nI1(9,"i18n"),w.nrm(10,"bit-nav-item",6),w.nI1(11,"i18n"),w.nrm(12,"bit-nav-item",7),w.nI1(13,"i18n"),w.nrm(14,"app-coachmark",8,0)(16,"bit-nav-item",9),w.nI1(17,"i18n"),w.k0s(),w.nrm(18,"bit-nav-item",10),w.nI1(19,"i18n"),w.nrm(20,"app-coachmark",11,1),w.j41(22,"bit-nav-group",12),w.nI1(23,"i18n"),w.nrm(24,"bit-nav-item",13),w.nI1(25,"i18n"),w.nrm(26,"bit-nav-item",14),w.nI1(27,"i18n"),w.nrm(28,"bit-nav-item",15),w.nI1(29,"i18n"),w.SS7(30),w.nI1(31,"async"),w.nVh(32,AR,2,4,"bit-nav-item",16),w.nrm(33,"bit-nav-item",17),w.nI1(34,"i18n"),w.nVh(35,pR,2,3,"bit-nav-item",18),w.nrm(36,"billing-free-families-nav-item"),w.k0s()(),w.nrm(37,"router-outlet"),w.k0s()),2&e){const e=w.sdS(15),i=w.sdS(21);w.R7$(2),w.Y8G("openIcon",t.logo)("label",w.bMT(3,32,"passwordManager")),w.R7$(2),w.Y8G("text",w.bMT(5,34,"vaults")),w.R7$(2),w.vxM(w.bMT(7,36,t.sendEnabled$)?6:-1),w.R7$(2),w.Y8G("text",w.bMT(9,38,"tools"))("open",t.toolsNavGroupOpen())("bitPopoverAnchorFor",e.popover())("popoverOpen",t.importCoachmarkOpen()&&!t.sideNavService.open())("position",t.coachmarkService.getStepPosition("importData"))("closeOnBackdropClick",!1)("spotlight",!0),w.R7$(2),w.Y8G("text",w.bMT(11,40,"generator")),w.R7$(2),w.Y8G("text",w.bMT(13,42,"importNoun"))("bitPopoverAnchorFor",e.popover())("popoverOpen",t.importCoachmarkOpen()&&t.sideNavService.open())("position",t.coachmarkService.getStepPosition("importData"))("closeOnBackdropClick",!1)("spotlight",!0),w.R7$(4),w.Y8G("text",w.bMT(17,44,"exportNoun")),w.R7$(2),w.Y8G("text",w.bMT(19,46,"reports"))("bitPopoverAnchorFor",i.popover())("popoverOpen",t.reportsCoachmarkOpen())("position",t.coachmarkService.getStepPosition("monitorSecurity"))("closeOnBackdropClick",!1)("spotlight",!0),w.R7$(4),w.Y8G("text",w.bMT(23,48,"settings")),w.R7$(2),w.Y8G("text",w.bMT(25,50,"myAccount")),w.R7$(2),w.Y8G("text",w.bMT(27,52,"security")),w.R7$(2),w.Y8G("text",w.bMT(29,54,"appearance")),w.R7$(2);const n=w.bH3(w.bMT(31,56,t.subscriptionRoute$));w.R7$(2),w.vxM(n?32:-1),w.R7$(),w.Y8G("text",w.bMT(34,59,"domainRules")),w.R7$(2),w.vxM(t.showEmergencyAccess()?35:-1)}},dependencies:[L.MD,Hp.iI,R.n3,Nh.p,sR.P,oR.O,tR.u,aR.K,lR.s,cR.y,Tm.Z,nR,HC.k,dR.d,rR.nk,L.Jj,Hh.$],encapsulation:2});var vR=i(84653),mR=i(32501);class fR{}fR.ɵfac=function(e){return new(e||fR)},fR.ɵmod=w.$C({type:fR}),fR.ɵinj=B.G2t({imports:[Tv.G]});class yR{}yR.ɵfac=function(e){return new(e||yR)},yR.ɵmod=w.$C({type:yR}),yR.ɵinj=B.G2t({providers:[L.PV],imports:[Tv.G,PB.uY,fR,Oh.L,mR.Y,pE,ne.tu]});class bR{}function CR(e,t){if(1&e&&(w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",0),w.k0s(),w.j41(5,"div",1)(6,"button",2)(7,"span"),w.EFF(8),w.nI1(9,"i18n"),w.k0s()()()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,6,"email")),w.R7$(2),w.Y8G("formControl",e.email),w.R7$(2),w.Y8G("loading",e.loading())("disabled",!e.validateEmail())("block",!0),w.R7$(2),w.SpI("",w.bMT(9,8,"sendCode")," ")}}function IR(e,t){if(1&e){const e=w.RV6();w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",3),w.j41(5,"bit-hint"),w.EFF(6),w.nI1(7,"i18n"),w.j41(8,"a",4),w.bIt("click",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.onResendCode())}),w.EFF(9),w.nI1(10,"i18n"),w.nI1(11,"lowercase"),w.k0s()()(),w.j41(12,"button",5)(13,"span"),w.EFF(14),w.nI1(15,"i18n"),w.k0s()(),w.j41(16,"button",6),w.bIt("click",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.onBackClick())}),w.j41(17,"span"),w.EFF(18),w.nI1(19,"i18n"),w.k0s()()}if(2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,9,"verificationCode")),w.R7$(2),w.Y8G("formControl",e.otp),w.R7$(2),w.SpI(" ",w.bMT(7,11,"didNotReceiveCodeContactSenderOr")),w.R7$(3),w.JRh(w.bMT(11,15,w.bMT(10,13,"resendCode"))),w.R7$(3),w.Y8G("loading",e.loading())("block",!0),w.R7$(2),w.SpI("",w.bMT(15,17,"viewSend")," "),w.R7$(2),w.Y8G("block",!0),w.R7$(2),w.JRh(w.bMT(19,19,"back"))}}class wR{constructor(){this.formGroup=r.hFB.required(),this.enterOtp=r.hFB.required(),this.resendCode=(0,r.CGW)(),this.loading=r.hFB.required(),this.backToEmail=(0,r.CGW)()}ngOnInit(){this.email=new a.MJ("",[a.k0.required,a.k0.email]),this.otp=new a.MJ(""),this.formGroup().addControl("email",this.email),this.formGroup().addControl("otp",this.otp),(0,B.QZP)(()=>{this.enterOtp()?this.email.clearValidators():this.email.setValidators([a.k0.required,a.k0.email]),this.email.updateValueAndValidity()})}ngOnDestroy(){this.formGroup().removeControl("email"),this.formGroup().removeControl("otp")}onResendCode(){this.resendCode.emit()}onBackClick(){this.backToEmail.emit(),this.otp&&(this.otp.setValue(""),this.otp.setErrors(null),this.otp.markAsUntouched(),this.otp.markAsPristine())}validateEmail(){var e,t;const i=null!==(t=null===(e=this.email.value)||void 0===e?void 0:e.trim())&&void 0!==t?t:"";if(!i||i.length>254)return!1;const[n,...r]=i.split("@");return!(1!==r.length||n.length>64)&&/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*\.[a-zA-Z]{2,}$/.test(i)}}wR.ɵfac=function(e){return new(e||wR)},wR.ɵcmp=w.VBU({type:wR,selectors:[["app-send-access-email"]],inputs:{formGroup:[1,"formGroup"],enterOtp:[1,"enterOtp"],loading:[1,"loading"]},outputs:{resendCode:"resendCode",backToEmail:"backToEmail"},decls:2,vars:1,consts:[["bitInput","","type","text","required","","appInputVerbatim","","appAutofocus","",3,"formControl"],[1,"tw-flex"],["bitButton","","bitFormButton","","type","submit","buttonType","primary",3,"loading","disabled","block"],["bitInput","","type","text","appInputVerbatim","","appAutofocus","",3,"formControl"],["bitLink","","type","button",3,"click"],["bitButton","","bitFormButton","","type","submit","buttonType","primary",1,"tw-mb-3",3,"loading","block"],["bitButton","","type","button","buttonType","secondary",3,"click","block"]],template:function(e,t){1&e&&w.nVh(0,CR,10,10)(1,IR,20,21),2&e&&w.vxM(t.enterOtp()?1:0)},dependencies:[Tv.G,a.me,a.BC,a.YS,a.l_,M.B,rp.q,Ih.$,fh.Q,Xh.j,zh.I,Lh.J,Wh.h,jh.g,L.GH,Hh.$],encapsulation:2,changeDetection:0});class BR{constructor(){this.formGroup=r.hFB.required(),this.loading=r.hFB.required()}ngOnInit(){this.password=new a.MJ("",a.k0.required),this.formGroup().addControl("password",this.password)}ngOnDestroy(){this.formGroup().removeControl("password")}}BR.ɵfac=function(e){return new(e||BR)},BR.ɵcmp=w.VBU({type:BR,selectors:[["app-send-access-password"]],inputs:{formGroup:[1,"formGroup"],loading:[1,"loading"]},decls:13,vars:12,consts:[["bitInput","","type","password","required","","appInputVerbatim","","appAutofocus","",3,"formControl"],["type","button","bitIconButton","","bitSuffix","","bitPasswordInputToggle",""],[1,"tw-flex"],["bitButton","","bitFormButton","","type","submit","buttonType","primary","startIcon","bwi-sign-in",3,"loading","block"]],template:function(e,t){1&e&&(w.j41(0,"bit-form-field")(1,"bit-label"),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.nrm(4,"input",0),w.j41(5,"bit-hint"),w.EFF(6),w.nI1(7,"i18n"),w.k0s(),w.nrm(8,"button",1),w.k0s(),w.j41(9,"div",2)(10,"button",3),w.EFF(11),w.nI1(12,"i18n"),w.k0s()()),2&e&&(w.R7$(2),w.JRh(w.bMT(3,6,"password")),w.R7$(2),w.Y8G("formControl",t.password),w.R7$(2),w.JRh(w.bMT(7,8,"sendProtectedPasswordDontKnow")),w.R7$(4),w.Y8G("loading",t.loading())("block",!0),w.R7$(),w.SpI(" ",w.bMT(12,10,"continue")," "))},dependencies:[Tv.G,a.me,a.BC,a.YS,a.l_,M.B,rp.q,Ih.$,fh.Q,Xh.j,zh.I,Lh.J,Wh.h,Kh.e,Zh.a,Yh.s,Hh.$],encapsulation:2,changeDetection:0});var ER=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function SR(e,t){1&e&&(w.j41(0,"div",1)(1,"p",2),w.EFF(2),w.nI1(3,"i18n"),w.k0s()()),2&e&&(w.R7$(2),w.JRh(w.bMT(3,1,"unexpectedErrorSend")))}function QR(e,t){1&e&&(w.j41(0,"div",1)(1,"p",2),w.EFF(2),w.nI1(3,"i18n"),w.k0s()()),2&e&&(w.R7$(2),w.JRh(w.bMT(3,1,"sendAccessUnavailable")))}function kR(e,t){if(1&e&&w.nrm(0,"app-send-access-password",3),2&e){const e=w.XpG(2);w.Y8G("loading",e.loading())("formGroup",e.sendAccessForm)}}function RR(e,t){if(1&e){const e=w.RV6();w.j41(0,"app-send-access-email",5),w.bIt("resendCode",function(){B.eBV(e);const t=w.XpG(2);return B.Njj(t.onResendCode())})("backToEmail",function(){B.eBV(e);const t=w.XpG(2);return B.Njj(t.onBackToEmail())}),w.k0s()}if(2&e){const e=w.XpG(2);w.Y8G("formGroup",e.sendAccessForm)("enterOtp",e.enterOtp())("loading",e.loading())}}function FR(e,t){if(1&e&&w.nVh(0,kR,1,2,"app-send-access-password",3)(1,RR,1,3,"app-send-access-email",4),2&e){let e;const t=w.XpG();w.vxM((e=t.sendAuthType())===t.authType.Password?0:e===t.authType.Email?1:-1)}}class TR{constructor(e,t,i,n,s,o){this.cryptoFunctionService=e,this.toastService=t,this.i18nService=i,this.formBuilder=n,this.sendTokenService=s,this.anonLayoutWrapperDataService=o,this.id=r.hFB.required(),this.key=r.hFB.required(),this.accessGranted=(0,r.CGW)(),this.authType=Ml,this.expiredAuthAttempts=0,this.otpSubmitted=!1,this.loading=(0,B.vPA)(!1),this.error=(0,B.vPA)(!1),this.unavailable=(0,B.vPA)(!1),this.sendAuthType=(0,B.vPA)(Ml.None),this.enterOtp=(0,B.vPA)(!1),this.sendAccessForm=this.formBuilder.group({})}ngOnInit(){this.onSubmit()}onSubmit(){return ER(this,void 0,void 0,function*(){this.loading.set(!0),this.unavailable.set(!1),this.error.set(!1);try{yield this.attemptAccess()}finally{this.loading.set(!1)}})}onBackToEmail(){this.enterOtp.set(!1),this.otpSubmitted=!1,this.updatePageTitle()}attemptAccess(){return ER(this,void 0,void 0,function*(){const e=this.sendAuthType();e!==Ml.None?e===Ml.Email?yield this.handleEmailOtpAuth():e===Ml.Password&&(yield this.handlePasswordAuth()):yield this.getTokenWithRetry(null)})}getTokenWithRetry(e){return ER(this,void 0,void 0,function*(){var t,i,n;const r=e?yield(0,u._)(this.sendTokenService.getSendAccessToken$(this.id(),e)):yield(0,u._)(this.sendTokenService.tryGetSendAccessToken$(this.id()));if(r instanceof Bi)this.expiredAuthAttempts=0,this.accessGranted.emit({accessToken:r});else if("expired"===r.kind){if(this.expiredAuthAttempts>2)return;this.expiredAuthAttempts++,yield this.getTokenWithRetry(e)}else"expected_server"===r.kind?(this.expiredAuthAttempts=0,"invalid_request"===(s=r.error).error&&"email_required"===s.send_access_error_type?(this.sendAuthType.set(Ml.Email),this.updatePageTitle()):!function(e){return"invalid_request"===e.error&&"email_and_otp_required"===e.send_access_error_type}(r.error)?!function(e){return"invalid_request"===e.error&&"password_hash_b64_required"===e.send_access_error_type}(r.error)?!function(e){return"invalid_grant"===e.error&&"password_hash_b64_invalid"===e.send_access_error_type}(r.error)?!function(e){return"invalid_grant"===e.error&&"send_id_invalid"===e.send_access_error_type}(r.error)?(this.error.set(!0),this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:null!==(n=r.error.error_description)&&void 0!==n?n:""})):this.unavailable.set(!0):(null===(t=this.sendAccessForm.controls.password)||void 0===t||t.setErrors({invalidPassword:{message:this.i18nService.t("sendPasswordInvalidAskOwner")}}),null===(i=this.sendAccessForm.controls.password)||void 0===i||i.markAsTouched()):(this.sendAuthType.set(Ml.Password),this.updatePageTitle()):(e&&"email"===e.kind&&this.enterOtp()?this.toastService.showToast({variant:"success",title:void 0,message:this.i18nService.t("codeResent")}):(this.otpSubmitted&&this.toastService.showToast({variant:"error",title:void 0,message:this.i18nService.t("invalidVerificationCode")}),this.otpSubmitted=!0),this.enterOtp.set(!0),this.updatePageTitle())):(this.expiredAuthAttempts=0,this.error.set(!0),this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:r.error}));var s})}handleEmailOtpAuth(){return ER(this,void 0,void 0,function*(){const e=this.sendAccessForm.value.email;if(null==e)return;let t;if(this.enterOtp()){const i=this.sendAccessForm.value.otp;if(null==i||""===i.trim())return void this.toastService.showToast({variant:"error",title:void 0,message:this.i18nService.t("invalidVerificationCode")});t={kind:"email_otp",email:e,otp:i}}else t={kind:"email",email:e};yield this.getTokenWithRetry(t)})}handlePasswordAuth(){return ER(this,void 0,void 0,function*(){const e=this.sendAccessForm.value.password;if(null==e)return;const t={kind:"password",passwordHashB64:yield this.getPasswordHashB64(e,this.key())};yield this.getTokenWithRetry(t)})}onResendCode(){return ER(this,void 0,void 0,function*(){this.unavailable.set(!1),this.error.set(!1);const e=this.sendAccessForm.value.email;if(null==e)return;const t={kind:"email",email:e};yield this.getTokenWithRetry(t)})}getPasswordHashB64(e,t){return ER(this,void 0,void 0,function*(){const i=zt.A.fromUrlB64ToArray(t),n=yield this.cryptoFunctionService.pbkdf2(e,i,"sha256",Lo);return zt.A.fromBufferToB64(n)})}updatePageTitle(){var e;const t=this.sendAuthType();t===Ml.Email?this.enterOtp()?this.anonLayoutWrapperDataService.setAnonLayoutWrapperData({pageTitle:{key:"enterTheCodeSentToYourEmail"},pageSubtitle:null!==(e=this.sendAccessForm.value.email)&&void 0!==e?e:null}):this.anonLayoutWrapperDataService.setAnonLayoutWrapperData({pageTitle:{key:"verifyYourEmailToViewThisSend"},pageSubtitle:null}):t===Ml.Password&&this.anonLayoutWrapperDataService.setAnonLayoutWrapperData({pageTitle:{key:"sendAccessPasswordTitle"}})}}TR.ɵfac=function(e){return new(e||TR)(w.rXU(hs.R),w.rXU(F.f),w.rXU(he.W),w.rXU(a.ok),w.rXU(wi),w.rXU(pe.f))},TR.ɵcmp=w.VBU({type:TR,selectors:[["app-send-auth"]],inputs:{id:[1,"id"],key:[1,"key"]},outputs:{accessGranted:"accessGranted"},decls:4,vars:3,consts:[[3,"ngSubmit","formGroup"],[1,"tw-text-main","tw-text-center"],["bitTypography","body1"],[3,"loading","formGroup"],[3,"formGroup","enterOtp","loading"],[3,"resendCode","backToEmail","formGroup","enterOtp","loading"]],template:function(e,t){1&e&&(w.j41(0,"form",0),w.bIt("ngSubmit",function(){return t.onSubmit()}),w.nVh(1,SR,4,3,"div",1),w.nVh(2,QR,4,3,"div",1)(3,FR,2,1),w.k0s()),2&e&&(w.Y8G("formGroup",t.sendAccessForm),w.R7$(),w.vxM(t.error()?1:-1),w.R7$(),w.vxM(t.unavailable()?2:3))},dependencies:[BR,wR,Tv.G,a.qT,a.cb,a.j4,Tp.r,Hh.$],encapsulation:2,changeDetection:0});class DR{constructor(e){this.id=null,this.name=null,this.type=null,this.text=new Nl,this.file=new Ol,this.expirationDate=null,this.creatorIdentifier=null,e&&(this.id=e.id,this.type=e.type,this.expirationDate=e.expirationDate,this.creatorIdentifier=e.creatorIdentifier)}}var PR=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class MR extends Pl.A{constructor(e){if(super(),null!=e)switch(this.buildDomainModel(this,e,{id:null,name:null,expirationDate:null,creatorIdentifier:null},["id","expirationDate","creatorIdentifier"]),this.type=e.type,this.type){case xl.N.Text:this.text=new zl(e.text);break;case xl.N.File:this.file=new Xl(e.file)}}decrypt(e){return PR(this,void 0,void 0,function*(){const t=new DR(this);switch(yield this.decryptObj(this,t,["name"],e),this.type){case xl.N.File:t.file=yield this.file.decrypt(e);break;case xl.N.Text:t.text=yield this.text.decrypt(e)}return t})}}var xR=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class VR{constructor(e,t,i,n,s){this.i18nService=e,this.toastService=t,this.encryptService=i,this.fileDownloadService=n,this.sendApiService=s,this.send=(0,r.hFB)(null),this.decKey=(0,r.hFB)(null),this.accessToken=(0,r.hFB)(null),this.download=()=>xR(this,void 0,void 0,function*(){const e=this.accessToken();if(null==this.send()||null==this.decKey()||!e)return;const t=yield this.sendApiService.getSendFileDownloadDataV2(this.send(),e);if(zt.A.isNullOrWhitespace(t.url))return void this.toastService.showToast({variant:"error",title:null,message:this.i18nService.t("missingSendFile")});const i=yield fetch(new Request(t.url,{cache:"no-store"}));if(200===i.status)try{const e=yield fs.fromResponse(i),t=yield this.encryptService.decryptFileData(e,this.decKey());this.fileDownloadService.download({fileName:this.send().file.fileName,blobData:t,downloadMethod:"save"})}catch(n){this.toastService.showToast({variant:"error",title:null,message:this.i18nService.t("errorOccurred")})}else this.toastService.showToast({variant:"error",title:null,message:this.i18nService.t("errorOccurred")})})}}function GR(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",5),w.bIt("click",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.toggleText())}),w.nrm(1,"bit-icon",6),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}if(2&e){const e=w.XpG();w.Y8G("block",!0),w.R7$(),w.Y8G("name",e.showText?"bwi-eye":"bwi-eye-slash"),w.R7$(),w.SpI(" ",w.bMT(3,3,"toggleVisibility")," ")}}VR.ɵfac=function(e){return new(e||VR)(w.rXU(he.W),w.rXU(F.f),w.rXU(As.N),w.rXU(VA.y),w.rXU(md))},VR.ɵcmp=w.VBU({type:VR,selectors:[["app-send-access-file"]],inputs:{send:[1,"send"],decKey:[1,"decKey"],accessToken:[1,"accessToken"]},decls:5,vars:7,consts:[[1,"tw-text-wrap","tw-break-all"],["bitButton","","type","button","buttonType","primary","startIcon","bwi-download",3,"bitAction","block"]],template:function(e,t){1&e&&(w.j41(0,"p",0),w.EFF(1),w.k0s(),w.j41(2,"button",1),w.EFF(3),w.nI1(4,"i18n"),w.k0s()),2&e&&(w.R7$(),w.JRh(t.send().file.fileName),w.R7$(),w.Y8G("bitAction",t.download)("block",!0),w.R7$(),w.Lme(" ",w.bMT(4,5,"downloadAttachments")," (",t.send().file.sizeName,")\n"))},dependencies:[Tv.G,Up.p,fh.Q,Hh.$],encapsulation:2,changeDetection:0});class UR{constructor(e,t,i,n){this.i18nService=e,this.platformUtilsService=t,this.formBuilder=i,this.toastService=n,this._send=null,this.showText=!1,this.formGroup=this.formBuilder.group({sendText:[""]})}get send(){return this._send}set send(e){this._send=e,this.showText=null==this.send.text||!this.send.text.hidden,null!=this.send&&null!=this.send.text&&this.formGroup.controls.sendText.patchValue(this.showText?this.send.text.text:this.send.text.maskedText)}copyText(){this.platformUtilsService.copyToClipboard(this.send.text.text),this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("valueCopied",this.i18nService.t("sendTypeText"))})}toggleText(){this.showText=!this.showText,this.formGroup.controls.sendText.patchValue(this.showText?this.send.text.text:this.send.text.maskedText)}}UR.ɵfac=function(e){return new(e||UR)(w.rXU(he.W),w.rXU(G.y),w.rXU(a.ok),w.rXU(F.f))},UR.ɵcmp=w.VBU({type:UR,selectors:[["app-send-access-text"]],inputs:{send:"send"},decls:8,vars:6,consts:[[3,"formGroup"],["id","text","bitInput","","rows","8","name","Text","formControlName","sendText","readonly",""],[1,"tw-mb-3"],["bitButton","","type","button","buttonType","secondary",3,"block"],["bitButton","","type","button","buttonType","primary","startIcon","bwi-clone",3,"click","block"],["bitButton","","type","button","buttonType","secondary",3,"click","block"],[1,"bwi-lg",3,"name"]],template:function(e,t){1&e&&(w.j41(0,"bit-form-field",0),w.nrm(1,"textarea",1),w.k0s(),w.j41(2,"div",2),w.nVh(3,GR,4,5,"button",3),w.k0s(),w.j41(4,"div",2)(5,"button",4),w.bIt("click",function(){return t.copyText()}),w.EFF(6),w.nI1(7,"i18n"),w.k0s()()),2&e&&(w.Y8G("formGroup",t.formGroup),w.R7$(3),w.vxM(t.send.text.hidden?3:-1),w.R7$(2),w.Y8G("block",!0),w.R7$(),w.SpI(" ",w.bMT(7,4,"copyValue")," "))},dependencies:[Tv.G,a.me,a.BC,a.cb,a.j4,a.JD,fh.Q,Lh.J,Wh.h,ve.R,le.o,Hh.$],encapsulation:2});var OR=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function NR(e,t){1&e&&(w.j41(0,"bit-callout",0),w.nI1(1,"i18n"),w.EFF(2),w.nI1(3,"i18n"),w.j41(4,"a",2),w.EFF(5),w.nI1(6,"i18n"),w.k0s()()),2&e&&(w.Y8G("title",w.mNQ(w.bMT(1,4,"warning"))),w.R7$(2),w.SpI(" ",w.bMT(3,6,"viewSendHiddenEmailWarning")," "),w.R7$(3),w.JRh(w.bMT(6,8,"learnMore")))}function jR(e,t){1&e&&(w.j41(0,"div",1),w.nrm(1,"bit-spinner"),w.k0s())}function YR(e,t){1&e&&(w.j41(0,"div",3)(1,"p",4),w.EFF(2),w.nI1(3,"i18n"),w.k0s()()),2&e&&(w.R7$(2),w.JRh(w.bMT(3,1,"sendAccessUnavailable")))}function XR(e,t){1&e&&(w.j41(0,"div",3)(1,"p",4),w.EFF(2),w.nI1(3,"i18n"),w.k0s()()),2&e&&(w.R7$(2),w.JRh(w.bMT(3,1,"unexpectedErrorSend")))}function zR(e,t){if(1&e&&w.nrm(0,"app-send-access-text",5),2&e){const e=w.XpG(3);w.Y8G("send",e.send())}}function LR(e,t){if(1&e&&w.nrm(0,"app-send-access-file",6),2&e){const e=w.XpG(3);w.Y8G("send",e.send())("decKey",e.decKey)("accessToken",e.accessToken())}}function WR(e,t){if(1&e&&(w.SS7(0),w.nI1(1,"date"),w.SS7(2),w.nI1(3,"date"),w.j41(4,"p",7),w.EFF(5),w.nI1(6,"i18n"),w.k0s()),2&e){const e=w.XpG(3),t=w.i5U(1,1,e.expirationDate(),"shortTime"),i=w.i5U(3,4,e.expirationDate(),"mediumDate");w.R7$(5),w.SpI(" ",w.brH(6,7,"sendExpiresOn",t,i)," ")}}function KR(e,t){if(1&e&&(w.j41(0,"div")(1,"p",1)(2,"b"),w.EFF(3),w.k0s()(),w.nrm(4,"hr"),w.nVh(5,zR,1,1,"app-send-access-text",5)(6,LR,1,3,"app-send-access-file",6),w.nVh(7,WR,7,11,"p",7),w.k0s()),2&e){let e;const t=w.XpG(2);w.R7$(3),w.JRh(t.send().name),w.R7$(2),w.vxM((e=t.send().type)===t.sendType.Text?5:e===t.sendType.File?6:-1),w.R7$(2),w.vxM(t.expirationDate()?7:-1)}}function ZR(e,t){if(1&e&&(w.nVh(0,YR,4,3,"div",3),w.nVh(1,XR,4,3,"div",3),w.nVh(2,KR,8,3,"div")),2&e){const e=w.XpG();w.vxM(e.unavailable()?0:-1),w.R7$(),w.vxM(e.error()?1:-1),w.R7$(),w.vxM(e.send()?2:-1)}}class HR{constructor(e,t,i,n,s){this.keyService=e,this.sendApiService=t,this.toastService=i,this.i18nService=n,this.layoutWrapperDataService=s,this.id=r.hFB.required(),this.key=r.hFB.required(),this.accessToken=(0,r.hFB)(null),this.authRequired=(0,r.CGW)(),this.send=(0,B.vPA)(null),this.expirationDate=(0,JA.EW)(()=>{var e,t;return null!==(t=null===(e=this.send())||void 0===e?void 0:e.expirationDate)&&void 0!==t?t:null}),this.creatorIdentifier=(0,JA.EW)(()=>{var e,t;return null!==(t=null===(e=this.send())||void 0===e?void 0:e.creatorIdentifier)&&void 0!==t?t:null}),this.hideEmail=(0,JA.EW)(()=>null!=this.send()&&null==this.creatorIdentifier()),this.loading=(0,B.vPA)(!1),this.unavailable=(0,B.vPA)(!1),this.error=(0,B.vPA)(!1),this.sendType=xl.N}ngOnInit(){this.layoutWrapperDataService.setAnonLayoutWrapperData({pageTitle:{key:"sendAccessContentTitle"}}),this.load()}load(){return OR(this,void 0,void 0,function*(){this.loading.set(!0),this.unavailable.set(!1),this.error.set(!1);try{const e=this.accessToken();if(!e)return void this.authRequired.emit();const t=yield this.sendApiService.postSendAccessV2(e),i=zt.A.fromUrlB64ToArray(this.key()),n=new MR(t);this.decKey=yield this.keyService.makeSendKey(i);const r=yield n.decrypt(this.decKey);this.send.set(r)}catch(t){this.send.set(null),t instanceof Xt._?401===t.statusCode?this.authRequired.emit():404===t.statusCode?this.unavailable.set(!0):400===t.statusCode?this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:t.message}):this.error.set(!0):this.error.set(!0)}finally{this.loading.set(!1)}const e=this.creatorIdentifier();null!=e&&this.layoutWrapperDataService.setAnonLayoutWrapperData({pageSubtitle:{key:"sendAccessCreatorIdentifier",placeholders:[e]}})})}}function JR(e,t){if(1&e){const e=w.RV6();w.j41(0,"app-send-auth",2),w.bIt("accessGranted",function(t){B.eBV(e);const i=w.XpG();return B.Njj(i.onAccessGranted(t))}),w.k0s()}if(2&e){const e=w.XpG();w.Y8G("id",e.id)("key",e.key)}}function qR(e,t){if(1&e){const e=w.RV6();w.j41(0,"app-send-view",3),w.bIt("authRequired",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.onAuthRequired())}),w.k0s()}if(2&e){const e=w.XpG();w.Y8G("id",e.id)("key",e.key)("accessToken",e.sendAccessToken)}}HR.ɵfac=function(e){return new(e||HR)(w.rXU(I.Lu),w.rXU(md),w.rXU(F.f),w.rXU(he.W),w.rXU(pe.f))},HR.ɵcmp=w.VBU({type:HR,selectors:[["app-send-view"]],inputs:{id:[1,"id"],key:[1,"key"],accessToken:[1,"accessToken"]},outputs:{authRequired:"authRequired"},decls:3,vars:2,consts:[["type","warning",3,"title"],[1,"tw-text-center"],["bitLink","","href","https://bitwarden.com/help/receive-send/","target","_blank","rel","noreferrer"],[1,"tw-text-main","tw-text-center"],["bitTypography","body1"],[3,"send"],[3,"send","decKey","accessToken"],[1,"tw-text-center","tw-text-muted","tw-text-sm"]],template:function(e,t){1&e&&(w.nVh(0,NR,7,10,"bit-callout",0),w.nVh(1,jR,2,0,"div",1)(2,ZR,3,3)),2&e&&(w.vxM(t.hideEmail()?0:-1),w.R7$(),w.vxM(t.loading()?1:2))},dependencies:[VR,UR,Tv.G,ae.G,jh.g,Tp.r,yg.t,L.vh,Hh.$],encapsulation:2,changeDetection:0});const $R=Object.freeze({View:"view",Auth:"auth"});class _R{constructor(e,t){this.route=e,this.destroyRef=t,this.viewState=(0,B.vPA)($R.Auth),this.sendAccessToken=null,this.sendAccessResponse=null,this.sendAccessRequest=new bR}ngOnInit(){this.route.params.pipe((0,c.pQ)(this.destroyRef)).subscribe(e=>{this.id=e.sendId,this.key=e.key,this.sendAccessResponse=null,this.sendAccessToken=null,this.sendAccessRequest=new bR,this.viewState.set(null),setTimeout(()=>this.viewState.set($R.Auth))})}onAuthRequired(){this.viewState.set($R.Auth)}onAccessGranted(e){this.sendAccessResponse=e.response,this.sendAccessRequest=e.request,this.sendAccessToken=e.accessToken,this.viewState.set($R.View)}}_R.ɵfac=function(e){return new(e||_R)(w.rXU(R.nX),w.rXU(B.abz))},_R.ɵcmp=w.VBU({type:_R,selectors:[["app-send-access"]],decls:2,vars:1,consts:[[3,"id","key"],[3,"id","key","accessToken"],[3,"accessGranted","id","key"],[3,"authRequired","id","key","accessToken"]],template:function(e,t){if(1&e&&w.nVh(0,JR,1,2,"app-send-auth",0)(1,qR,1,3,"app-send-view",1),2&e){let e;w.vxM("auth"===(e=t.viewState())?0:"view"===e?1:-1)}},dependencies:[TR,HR,Tv.G],encapsulation:2,changeDetection:0});var eF=i(14092),tF=i(18990);class iF{}iF.ɵfac=function(e){return new(e||iF)},iF.ɵmod=w.$C({type:iF}),iF.ɵinj=B.G2t({providers:[{provide:dh.cD,useClass:dh.ug}],imports:[tF.m,UQ.t,le.o]});var nF=i(11614),rF=i(14730),sF=i(10886),oF=i(13870),aF=i(34296),lF=i(29698),cF=i(90473),dF=i(83966),uF=i(72733),hF=i(26571),AF=i(68933),pF=i(17886),gF=i(10098),vF=i(87164),mF=i(84742),fF=i(44572),yF=i(16901),bF=i(54273),CF=i(43028),IF=i(90971),wF=i(76340),BF=i(33488),EF=i(52792),SF=i(35550),QF=i(80761),kF=i(99134),RF=i(6089),FF=i(63685),TF=i(75207),DF=i(98054),PF=i(12232),MF=i(23288),xF=i(18924),VF=i(9349),GF=i(41969),UF=i(50936),OF=i(14095),NF=i(48567),jF=i(9300),YF=i(80090),XF=i(48015),zF=i(90865),LF=i(60740),WF=i(49283),KF=i(74597),ZF=i(39032),HF=i(53205),JF=i(813),qF=i(45634),$F=i(76810),_F=i(27864),eT=i(79173),tT=i(70211),iT=i(92698),nT=i(19028),rT=i(86408),sT=i(9134),oT=i(50562),aT=i(8069),lT=i(24667),cT=i(34233),dT=i(71432),uT=i(89232),hT=i(54501);(0,nF.EO)(rF.A,"af"),(0,nF.EO)(sF.A,"ar"),(0,nF.EO)(oF.A,"az"),(0,nF.EO)(aF.A,"be"),(0,nF.EO)(lF.A,"bg"),(0,nF.EO)(cF.A,"bn"),(0,nF.EO)(dF.A,"bs"),(0,nF.EO)(uF.A,"ca"),(0,nF.EO)(hF.A,"cs"),(0,nF.EO)(AF.A,"cy"),(0,nF.EO)(pF.A,"da"),(0,nF.EO)(gF.A,"de"),(0,nF.EO)(vF.A,"el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mod=w.$C({type:AT}),AT.ɵinj=B.G2t({providers:[{provide:vR.ao,useValue:{usePopover:!1}}],imports:[Tv.G,dy.G,yR,iF,eF.t,Vv,_R,Tv.G,dy.G,yR,iF,eF.t]});class pT{}var gT=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class vT{constructor(e){this.apiService=e}requestSMAccessFromAdmins(e){return gT(this,void 0,void 0,function*(){yield this.apiService.send("POST","/request-access/request-sm-access",e,!0,!1)})}}vT.ɵfac=function(e){return new(e||vT)(B.KVO(je.G))},vT.ɵprov=B.jDH({token:vT,factory:vT.ɵfac,providedIn:"root"});var mT=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function fT(e,t){if(1&e&&w.nrm(0,"bit-option",10),2&e){const e=t.$implicit;w.Y8G("value",e)("label",e.name)}}class yT{constructor(e,t,i,n,r,s){this.router=e,this.i18nService=t,this.organizationService=i,this.smLandingApiService=n,this.toastService=r,this.accountService=s,this.requestAccessForm=new a.gE({requestAccessEmailContents:new a.MJ(this.i18nService.t("requestAccessSMDefaultEmailContent"),[a.k0.required]),selectedOrganization:new a.MJ(null,[a.k0.required])}),this.organizations=[],this.submit=()=>mT(this,void 0,void 0,function*(){if(this.requestAccessForm.markAllAsTouched(),this.requestAccessForm.invalid)return;const e=this.requestAccessForm.value,t=new pT;t.OrganizationId=e.selectedOrganization.id,t.EmailContent=e.requestAccessEmailContents,yield this.smLandingApiService.requestSMAccessFromAdmins(t),this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("smAccessRequestEmailSent")}),yield this.router.navigate(["/"])})}ngOnInit(){return mT(this,void 0,void 0,function*(){const e=yield(0,u._)((0,f.F6)(this.accountService.activeAccount$));this.organizations=(yield(0,u._)(this.organizationService.organizations$(e))).filter(e=>e.enabled).sort((e,t)=>e.name.localeCompare(t.name)),(null===this.organizations||this.organizations.length<1)&&(yield this.navigateToCreateOrganizationPage())})}navigateToCreateOrganizationPage(){return mT(this,void 0,void 0,function*(){yield this.router.navigate(["/create-organization"])})}}yT.ɵfac=function(e){return new(e||yT)(w.rXU(R.Ix),w.rXU(he.W),w.rXU(v.PV),w.rXU(vT),w.rXU(F.f),w.rXU(N.D))},yT.ɵcmp=w.VBU({type:yT,selectors:[["app-request-sm-access"]],decls:26,vars:19,consts:[[3,"formGroup","bitSubmit"],[1,"tw-grid","tw-grid-cols-12","tw-gap-4"],[1,"tw-col-span-9"],["bitTypography","body1"],["rows","20","id","request_access_textarea","bitInput","","formControlName","requestAccessEmailContents"],["formControlName","selectedOrganization"],["required","",3,"value","label",4,"ngFor","ngForOf"],[1,"tw-flex","tw-gap-x-4","tw-mt-4"],["bitButton","","bitFormButton","","type","submit","buttonType","primary"],["type","button","bitButton","","buttonType","secondary",3,"routerLink"],["required","",3,"value","label"]],template:function(e,t){1&e&&(w.nrm(0,"app-header"),w.j41(1,"bit-container")(2,"form",0)(3,"div",1)(4,"div",2)(5,"p",3),w.EFF(6),w.nI1(7,"i18n"),w.k0s(),w.j41(8,"bit-form-field")(9,"bit-label"),w.EFF(10),w.nI1(11,"i18n"),w.k0s(),w.nrm(12,"textarea",4),w.k0s(),w.j41(13,"bit-form-field")(14,"bit-label"),w.EFF(15),w.nI1(16,"i18n"),w.k0s(),w.j41(17,"bit-select",5),w.DNE(18,fT,1,2,"bit-option",6),w.k0s()(),w.j41(19,"div",7)(20,"button",8),w.EFF(21),w.nI1(22,"i18n"),w.k0s(),w.j41(23,"button",9),w.EFF(24),w.nI1(25,"i18n"),w.k0s()()()()()()),2&e&&(w.R7$(2),w.Y8G("formGroup",t.requestAccessForm)("bitSubmit",t.submit),w.R7$(4),w.JRh(w.bMT(7,9,"youNeedApprovalFromYourAdminToTrySecretsManager")),w.R7$(4),w.JRh(w.bMT(11,11,"addANote")),w.R7$(5),w.JRh(w.bMT(16,13,"organization")),w.R7$(3),w.Y8G("ngForOf",t.organizations),w.R7$(3),w.SpI(" ",w.bMT(22,15,"sendRequest")," "),w.R7$(2),w.Y8G("routerLink","/sm-landing"),w.R7$(),w.SpI(" ",w.bMT(25,17,"cancel")," "))},dependencies:[Dv.G,L.Sq,a.qT,a.me,a.BC,a.cb,a.j4,a.JD,Hp.Wk,Ih.$,wh.L,fh.Q,uy.H,Xh.j,Lh.J,Wh.h,tg.w,ig.P,Tp.r,UQ.t,jk.s,dy.G,hy.f,AT,Hh.$],encapsulation:2});var bT=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function CT(e,t){1&e&&(w.j41(0,"bit-container")(1,"p",8),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"ul",9)(5,"li",10)(6,"b"),w.EFF(7),w.nI1(8,"i18n"),w.k0s(),w.EFF(9),w.nI1(10,"i18n"),w.k0s(),w.j41(11,"li",10)(12,"b"),w.EFF(13),w.nI1(14,"i18n"),w.k0s(),w.EFF(15),w.nI1(16,"i18n"),w.k0s(),w.j41(17,"li",10)(18,"b"),w.EFF(19),w.nI1(20,"i18n"),w.k0s(),w.EFF(21),w.nI1(22,"i18n"),w.k0s(),w.j41(23,"li",10)(24,"b"),w.EFF(25),w.nI1(26,"i18n"),w.k0s(),w.EFF(27),w.nI1(28,"i18n"),w.k0s()()()),2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,9,"developmentDevOpsAndITTeamsChooseBWSecret")," "),w.R7$(5),w.JRh(w.bMT(8,11,"centralizeSecretsManagement")),w.R7$(2),w.SpI(" ",w.bMT(10,13,"centralizeSecretsManagementDescription")," "),w.R7$(4),w.JRh(w.bMT(14,15,"preventSecretLeaks")),w.R7$(2),w.SpI(" ",w.bMT(16,17,"preventSecretLeaksDescription")," "),w.R7$(4),w.JRh(w.bMT(20,19,"enhanceDeveloperProductivity")),w.R7$(2),w.SpI(" ",w.bMT(22,21,"enhanceDeveloperProductivityDescription")," "),w.R7$(4),w.JRh(w.bMT(26,23,"strengthenBusinessSecurity")),w.R7$(2),w.SpI(" ",w.bMT(28,25,"strengthenBusinessSecurityDescription")," "))}function IT(e,t){1&e&&(w.j41(0,"bit-container")(1,"p",8),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"ul",9)(5,"li",10),w.EFF(6),w.nI1(7,"i18n"),w.j41(8,"b"),w.EFF(9),w.nI1(10,"i18n"),w.k0s(),w.EFF(11),w.nI1(12,"i18n"),w.k0s(),w.j41(13,"li",10),w.EFF(14),w.nI1(15,"i18n"),w.j41(16,"b"),w.EFF(17),w.nI1(18,"i18n"),w.k0s(),w.EFF(19),w.nI1(20,"i18n"),w.k0s()()()),2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,7,"giveMembersAccess")," "),w.R7$(4),w.SpI(" ",w.bMT(7,9,"openYourOrganizations")," "),w.R7$(3),w.JRh(w.bMT(10,11,"members")),w.R7$(2),w.SpI(" ",w.bMT(12,13,"viewAndSelectTheMembers")," "),w.R7$(3),w.SpI(" ",w.bMT(15,15,"usingTheMenuSelect")," "),w.R7$(3),w.JRh(w.bMT(18,17,"activateSecretsManager")),w.R7$(2),w.SpI(" ",w.bMT(20,19,"toGrantAccessToSelectedMembers")," "))}class wT{constructor(e,t){this.organizationService=e,this.accountService=t,this.learnMoreUrl="https://bitwarden.com/help/secrets-manager-overview/",this.imageSrc="../images/sm.webp",this.showSecretsManagerInformation=!0,this.showGiveMembersAccessInstructions=!1}ngOnInit(){return bT(this,void 0,void 0,function*(){const e=yield(0,u._)((0,f.F6)(this.accountService.activeAccount$)),t=(yield(0,u._)(this.organizationService.organizations$(e))).filter(e=>e.enabled);t.length>0?this.handleEnabledOrganizations(t):this.tryItNowUrl="/create-organization"})}handleEnabledOrganizations(e){const t=e.find(e=>e.isAdmin&&e.useSecretsManager),i=e.find(e=>e.isOwner&&!e.useSecretsManager);null!=t?this.showHowToEnableSMForMembers(t.id):this.tryItNowUrl=null!=i?`/organizations/${i.id}/billing/subscription`:"/request-sm-access"}showHowToEnableSMForMembers(e){this.showGiveMembersAccessInstructions=!0,this.showSecretsManagerInformation=!1,this.learnMoreUrl="https://bitwarden.com/help/secrets-manager-quick-start/#give-members-access",this.imageSrc="../images/sm-give-access.png",this.tryItNowUrl=`/organizations/${e}/members`}}wT.ɵfac=function(e){return new(e||wT)(w.rXU(v.PV),w.rXU(N.D))},wT.ɵcmp=w.VBU({type:wT,selectors:[["app-sm-landing"]],decls:16,vars:14,consts:[[1,"tw-grid","tw-grid-cols-12","tw-gap-4"],[1,"tw-col-span-6"],["alt","Bitwarden","aria-hidden","true",1,"tw-max-w-full",3,"src"],[1,"tw-col-span-6","tw-mx-4"],["bitTypography","h1"],[4,"ngIf"],["type","button","bitButton","","buttonType","primary",3,"routerLink"],["bitLink","","linkType","primary","target","_blank",1,"tw-m-5",3,"href"],["bitTypography","body1"],[1,"tw-list-outside"],["bitTypography","body1",1,"tw-mb-2"]],template:function(e,t){1&e&&(w.nrm(0,"app-header"),w.j41(1,"div",0)(2,"div",1),w.nrm(3,"img",2),w.k0s(),w.j41(4,"div",3)(5,"h1",4),w.EFF(6),w.nI1(7,"i18n"),w.k0s(),w.DNE(8,CT,29,27,"bit-container",5)(9,IT,21,21,"bit-container",5),w.j41(10,"button",6),w.EFF(11),w.nI1(12,"i18n"),w.k0s(),w.j41(13,"a",7),w.EFF(14),w.nI1(15,"i18n"),w.k0s()()()),2&e&&(w.R7$(3),w.Y8G("src",t.imageSrc,w.B4B),w.R7$(3),w.JRh(w.bMT(7,8,"bitwardenSecretsManager")),w.R7$(2),w.Y8G("ngIf",t.showSecretsManagerInformation),w.R7$(),w.Y8G("ngIf",t.showGiveMembersAccessInstructions),w.R7$(),w.Y8G("routerLink",t.tryItNowUrl),w.R7$(),w.SpI(" ",w.bMT(12,10,"tryItNow")," "),w.R7$(2),w.Y8G("href",t.learnMoreUrl,w.B4B),w.R7$(),w.SpI(" ",w.bMT(15,12,"learnMore")," "))},dependencies:[Dv.G,L.bT,Hp.Wk,fh.Q,uy.H,jh.g,Tp.r,UQ.t,jk.s,dy.G,hy.f,Hh.$],encapsulation:2});var BT=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const ET=(e,t)=>t.value;function ST(e,t){if(1&e&&w.nrm(0,"bit-option",2),2&e){const e=t.$implicit;w.Y8G("value",e.value)("label",e.name)}}function QT(e,t){if(1&e&&w.nrm(0,"bit-option",2),2&e){const e=t.$implicit;w.Y8G("value",e.value)("label",e.name)}}class kT{constructor(e,t,i,n,r){this.formBuilder=e,this.i18nService=t,this.themeStateService=i,this.domainSettingsService=n,this.destroyRef=r,this.form=this.formBuilder.group({enableFavicons:!0,theme:[Pn.NJ.Light],locale:[null]});const s=[];t.supportedTranslationLocales.forEach(e=>{let i=e;t.localeNames.has(e)&&(i+=" - "+t.localeNames.get(e)),s.push({name:i,value:e})}),s.sort(zt.A.getSortFunction(t,"name")),s.splice(0,0,{name:t.t("default"),value:null}),this.localeOptions=s,this.themeOptions=[{name:t.t("themeLight"),value:Pn.NJ.Light},{name:t.t("themeDark"),value:Pn.NJ.Dark},{name:t.t("themeSystem"),value:Pn.NJ.System}]}ngOnInit(){return BT(this,void 0,void 0,function*(){var e;this.form.setValue({enableFavicons:yield(0,u._)(this.domainSettingsService.showFavicons$),theme:yield(0,u._)(this.themeStateService.selectedTheme$),locale:null!==(e=yield(0,u._)(this.i18nService.userSetLocale$))&&void 0!==e?e:null},{emitEvent:!1}),this.form.controls.enableFavicons.valueChanges.pipe((0,h.p)(e=>null!=e),(0,jt.n)(e=>BT(this,void 0,void 0,function*(){yield this.domainSettingsService.setShowFavicons(e)})),(0,c.pQ)(this.destroyRef)).subscribe(),this.form.controls.theme.valueChanges.pipe((0,h.p)(e=>null!=e),(0,jt.n)(e=>BT(this,void 0,void 0,function*(){yield this.themeStateService.setSelectedTheme(e)})),(0,c.pQ)(this.destroyRef)).subscribe(),this.form.controls.locale.valueChanges.pipe((0,jt.n)(e=>BT(this,void 0,void 0,function*(){yield this.i18nService.setLocale(e),window.location.reload()})),(0,c.pQ)(this.destroyRef)).subscribe()})}}kT.ɵfac=function(e){return new(e||kT)(w.rXU(a.ok),w.rXU(he.W),w.rXU(Sc.oO),w.rXU(ur.V),w.rXU(B.abz))},kT.ɵcmp=w.VBU({type:kT,selectors:[["app-appearance"]],decls:33,vars:20,consts:[[1,"tw-w-full","tw-max-w-md",3,"formGroup"],["formControlName","theme","id","theme"],[3,"value","label"],["bitLink","","href","https://bitwarden.com/help/localization/","target","_blank","rel","noreferrer","slot","end","startIcon","bwi-question-circle",1,"tw-float-right",3,"appA11yTitle"],["formControlName","locale","id","locale"],[1,"tw-flex","tw-items-start","tw-gap-1.5"],["type","checkbox","bitCheckbox","","formControlName","enableFavicons"],[1,"-tw-mt-0.5"]],template:function(e,t){1&e&&(w.nrm(0,"app-header"),w.j41(1,"bit-container")(2,"form",0)(3,"bit-form-field")(4,"bit-label"),w.EFF(5),w.nI1(6,"i18n"),w.k0s(),w.j41(7,"bit-select",1),w.Z7z(8,ST,1,2,"bit-option",2,ET),w.k0s(),w.j41(10,"bit-hint"),w.EFF(11),w.nI1(12,"i18n"),w.k0s()(),w.j41(13,"bit-form-field")(14,"bit-label"),w.EFF(15),w.nI1(16,"i18n"),w.nrm(17,"a",3),w.nI1(18,"i18n"),w.k0s(),w.j41(19,"bit-select",4),w.Z7z(20,QT,1,2,"bit-option",2,ET),w.k0s(),w.j41(22,"bit-hint"),w.EFF(23),w.nI1(24,"i18n"),w.k0s()(),w.j41(25,"div",5)(26,"bit-form-control"),w.nrm(27,"input",6),w.j41(28,"bit-label"),w.EFF(29),w.nI1(30,"i18n"),w.k0s()(),w.j41(31,"div",7),w.nrm(32,"vault-permit-cipher-details-popover"),w.k0s()()()()),2&e&&(w.R7$(2),w.Y8G("formGroup",t.form),w.R7$(3),w.JRh(w.bMT(6,8,"theme")),w.R7$(3),w.Dyx(t.themeOptions),w.R7$(3),w.JRh(w.bMT(12,10,"themeDesc")),w.R7$(4),w.SpI(" ",w.bMT(16,12,"language")," "),w.R7$(2),w.Y8G("appA11yTitle",w.mNQ(w.bMT(18,14,"learnMoreAboutLocalization"))),w.R7$(3),w.Dyx(t.localeOptions),w.R7$(3),w.JRh(w.bMT(24,16,"languageDesc")),w.R7$(6),w.SpI(" ",w.bMT(30,18,"showIconsChangePasswordUrls")," "))},dependencies:[Tv.G,a.qT,a.Zm,a.BC,a.cb,a.j4,a.JD,Fb.C,Eb.P,uy.H,Sb.f,Xh.j,zh.I,Wh.h,jh.g,tg.w,ig.P,dy.G,hy.f,dh.tW,Hh.$],encapsulation:2,changeDetection:0});class RT{}var FT=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const TT=e=>({"table-list-strike":e});function DT(e,t){1&e&&(w.j41(0,"p",1),w.nrm(1,"i",10),w.nI1(2,"i18n"),w.j41(3,"span",11),w.EFF(4),w.nI1(5,"i18n"),w.k0s()()),2&e&&(w.R7$(),w.Y8G("title",w.mNQ(w.bMT(2,3,"loading"))),w.R7$(3),w.JRh(w.bMT(5,5,"loading")))}function PT(e,t){if(1&e){const e=w.RV6();w.j41(0,"div",16)(1,"bit-form-field",17)(2,"bit-label"),w.EFF(3),w.nI1(4,"i18n"),w.k0s(),w.nrm(5,"textarea",18),w.nI1(6,"i18n"),w.k0s(),w.j41(7,"button",19),w.nI1(8,"i18n"),w.bIt("click",function(){const t=B.eBV(e).index,i=w.XpG(2);return B.Njj(i.remove(t))}),w.k0s()()}if(2&e){const e=t.$implicit,i=t.index;w.R7$(),w.Y8G("formGroupName",w.mNQ(i)),w.R7$(2),w.SpI("",w.i5U(4,8,"customDomainX",i+1)," "),w.R7$(2),w.Y8G("placeholder",w.VkB("",w.bMT(6,11,"ex")," google.com, gmail.com"))("value",e),w.R7$(2),w.Y8G("label",w.mNQ(w.bMT(8,13,"remove")))}}function MT(e,t){if(1&e){const e=w.RV6();w.qex(0,12),w.DNE(1,PT,9,15,"div",13),w.j41(2,"button",14),w.bIt("click",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.add())}),w.EFF(3),w.nI1(4,"i18n"),w.k0s(),w.j41(5,"small",15),w.EFF(6),w.nI1(7,"i18n"),w.k0s(),w.bVm()}if(2&e){const e=w.XpG();w.R7$(),w.Y8G("ngForOf",e.custom)("ngForTrackBy",e.indexTrackBy),w.R7$(),w.Y8G("startIcon",e.btnTextAddCreateFeatureFlag()?null:"bwi-plus"),w.R7$(),w.SpI(" ",w.bMT(4,5,e.btnTextAddCreateFeatureFlag()?"addCustomDomain":"newCustomDomain")," "),w.R7$(3),w.JRh(w.bMT(7,7,"newCustomDomainDesc"))}}function xT(e,t){1&e&&(w.j41(0,"p",1),w.nrm(1,"i",10),w.nI1(2,"i18n"),w.j41(3,"span",11),w.EFF(4),w.nI1(5,"i18n"),w.k0s()()),2&e&&(w.R7$(),w.Y8G("title",w.mNQ(w.bMT(2,3,"loading"))),w.R7$(3),w.JRh(w.bMT(5,5,"loading")))}function VT(e,t){if(1&e){const e=w.RV6();w.j41(0,"a",27),w.bIt("click",function(){B.eBV(e);const t=w.XpG().$implicit,i=w.XpG(3);return B.Njj(i.toggleExcluded(t))}),w.nrm(1,"i",29),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"exclude")," "))}function GT(e,t){if(1&e){const e=w.RV6();w.j41(0,"a",27),w.bIt("click",function(){B.eBV(e);const t=w.XpG().$implicit,i=w.XpG(3);return B.Njj(i.toggleExcluded(t))}),w.nrm(1,"i",30),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"include")," "))}function UT(e,t){if(1&e){const e=w.RV6();w.j41(0,"tr",22)(1,"td",23),w.EFF(2),w.k0s(),w.j41(3,"td",24),w.nrm(4,"button",25),w.nI1(5,"i18n"),w.j41(6,"bit-menu",null,0),w.DNE(8,VT,4,3,"a",26)(9,GT,4,3,"a",26),w.j41(10,"a",27),w.bIt("click",function(){const t=B.eBV(e).$implicit,i=w.XpG(3);return B.Njj(i.customize(t))}),w.nrm(11,"i",28),w.EFF(12),w.nI1(13,"i18n"),w.k0s()()()()}if(2&e){const e=t.$implicit,i=w.sdS(7);w.R7$(),w.Y8G("ngClass",w.eq3(11,TT,e.excluded)),w.R7$(),w.JRh(e.domains),w.R7$(2),w.Y8G("bitMenuTriggerFor",i)("label",w.bMT(5,7,"editDomain")),w.R7$(4),w.Y8G("ngIf",!e.excluded),w.R7$(),w.Y8G("ngIf",e.excluded),w.R7$(3),w.SpI(" ",w.bMT(13,9,"customize")," ")}}function OT(e,t){if(1&e&&w.DNE(0,UT,14,13,"tr",21),2&e){const e=w.XpG(2);w.Y8G("ngForOf",e.global)}}function NT(e,t){1&e&&(w.j41(0,"bit-table"),w.DNE(1,OT,1,1,"ng-template",20),w.k0s())}class jT{constructor(e,t,i,n,r){this.apiService=e,this.i18nService=t,this.platformUtilsService=i,this.logService=n,this.formBuilder=r,this.configService=(0,B.WQX)(O.w),this.btnTextAddCreateFeatureFlag=(0,c.ot)(this.configService.getFeatureFlag$(Kr.TO.PM32380_BtnTextAddCreate)),this.loading=!0,this.custom=[],this.global=[],this.formGroup=this.formBuilder.group({customDomain:this.formBuilder.array([])}),this.submit=()=>FT(this,void 0,void 0,function*(){const e=this.formGroup.get("customDomain").value;this.custom=e.map(e=>e.domain);const t=new RT;t.excludedGlobalEquivalentDomains=this.global.filter(e=>e.excluded).map(e=>e.key),0===t.excludedGlobalEquivalentDomains.length&&(t.excludedGlobalEquivalentDomains=null),t.equivalentDomains=this.custom.filter(e=>null!=e&&""!==e.trim()).map(e=>e.split(",").map(e=>e.trim())),0===t.equivalentDomains.length&&(t.equivalentDomains=null),yield this.apiService.putSettingsDomains(t),this.platformUtilsService.showToast("success",null,this.i18nService.t("domainsUpdated"))})}ngOnInit(){return FT(this,void 0,void 0,function*(){const e=yield this.apiService.getSettingsDomains();this.loading=!1,null!=e.equivalentDomains&&(this.custom=e.equivalentDomains.map(e=>e.join(", "))),null!=e.globalEquivalentDomains&&(this.global=e.globalEquivalentDomains.map(e=>({domains:e.domains.join(", "),excluded:e.excluded,key:e.type}))),this.patch()})}patch(){const e=this.formGroup.get("customDomain");e.clear(),this.custom.forEach((t,i)=>{e.insert(i,this.patchValues(t))}),this.formGroup.updateValueAndValidity()}patchValues(e){return this.formBuilder.group({domain:[e]})}toggleExcluded(e){e.excluded=!e.excluded}customize(e){e.excluded=!0,this.custom.push(e.domains),this.patch()}remove(e){this.custom.splice(e,1),this.patch()}add(){this.custom.push(""),this.patch()}indexTrackBy(e,t){return e}}jT.ɵfac=function(e){return new(e||jT)(w.rXU(je.G),w.rXU(he.W),w.rXU(G.y),w.rXU(se.K),w.rXU(a.ok))},jT.ɵcmp=w.VBU({type:jT,selectors:[["app-domain-rules"]],decls:22,vars:21,consts:[["appListDropdown",""],["bitTypography","body1"],[3,"formGroup","bitSubmit"],["bitTypography","h2"],["bitTypography","body1",4,"ngIf"],["formArrayName","customDomain",4,"ngIf"],["type","submit","bitButton","","bitFormButton","","buttonType","primary"],["bitTypography","h2",1,"tw-mt-16"],[4,"ngIf"],["type","submit","bitButton","","buttonType","primary"],["aria-hidden","true",1,"bwi","bwi-spinner","bwi-spin","tw-text-muted",3,"title"],[1,"tw-sr-only"],["formArrayName","customDomain"],["class","tw-flex tw-items-center tw-gap-2 tw-mb-6",4,"ngFor","ngForOf","ngForTrackBy"],["bitButton","","type","button","buttonType","secondary",1,"tw-mb-2",3,"click","startIcon"],[1,"tw-text-muted","tw-block","tw-mb-3"],[1,"tw-flex","tw-items-center","tw-gap-2","tw-mb-6"],[1,"tw-flex-1","!tw-mb-0",3,"formGroupName"],["rows","2","bitInput","","formControlName","domain",3,"value","placeholder"],["bitIconButton","bwi-minus-circle","type","button","buttonType","dangerGhost",3,"click","label"],["body",""],["bitRow","",4,"ngFor","ngForOf"],["bitRow",""],["bitCell","",3,"ngClass"],["bitCell",""],["type","button","bitIconButton","bwi-ellipsis-v",1,"tw-border-0","tw-bg-transparent","tw-p-0",3,"bitMenuTriggerFor","label"],["href","#","bitMenuItem","","appStopClick","",3,"click",4,"ngIf"],["href","#","bitMenuItem","","appStopClick","",3,"click"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-pencil-square"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-minus-circle"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-plus-circle"]],template:function(e,t){1&e&&(w.nrm(0,"app-header"),w.j41(1,"bit-container")(2,"p",1),w.EFF(3),w.nI1(4,"i18n"),w.k0s(),w.j41(5,"form",2)(6,"h2",3),w.EFF(7),w.nI1(8,"i18n"),w.k0s(),w.DNE(9,DT,6,7,"p",4)(10,MT,8,9,"ng-container",5),w.j41(11,"button",6),w.EFF(12),w.nI1(13,"i18n"),w.k0s(),w.j41(14,"h2",7),w.EFF(15),w.nI1(16,"i18n"),w.k0s(),w.DNE(17,xT,6,7,"p",4)(18,NT,2,0,"bit-table",8),w.j41(19,"button",9),w.EFF(20),w.nI1(21,"i18n"),w.k0s()()()),2&e&&(w.R7$(3),w.JRh(w.bMT(4,11,"domainRulesDesc")),w.R7$(2),w.Y8G("formGroup",t.formGroup)("bitSubmit",t.submit),w.R7$(2),w.JRh(w.bMT(8,13,"customEqDomains")),w.R7$(2),w.Y8G("ngIf",t.loading),w.R7$(),w.Y8G("ngIf",!t.loading),w.R7$(2),w.SpI(" ",w.bMT(13,15,"save")," "),w.R7$(3),w.JRh(w.bMT(16,17,"globalEqDomains")),w.R7$(2),w.Y8G("ngIf",t.loading),w.R7$(),w.Y8G("ngIf",!t.loading&&t.global.length>0),w.R7$(2),w.SpI(" ",w.bMT(21,19,"save")," "))},dependencies:[Tv.G,L.YU,L.Sq,L.bT,a.qT,a.me,a.BC,a.cb,a.j4,a.JD,a.$R,a.v8,Xy.Y,Ih.$,wh.L,fh.Q,uy.H,Xh.j,Lh.J,Wh.h,Yh.s,Kb.Z,Zb.O,Hb.S,qb.Q,$b.Y,_b._,_b.O,Tp.r,dy.G,hy.f,Hh.$],encapsulation:2});var YT=i(286);class XT{constructor(e){this.dialogService=e,this.openHistoryDialog=()=>{this.dialogService.open(WA.gA)}}}XT.ɵfac=function(e){return new(e||XT)(w.rXU(T.o))},XT.ɵcmp=w.VBU({type:XT,selectors:[["credential-generator"]],decls:6,vars:3,consts:[["bitLink","","type","button","linkType","primary","aria-haspopup","dialog",3,"click"]],template:function(e,t){1&e&&(w.nrm(0,"app-header"),w.j41(1,"bit-container"),w.nrm(2,"tools-credential-generator"),w.j41(3,"button",0),w.bIt("click",function(){return t.openHistoryDialog()}),w.EFF(4),w.nI1(5,"i18n"),w.k0s()()),2&e&&(w.R7$(4),w.SpI(" ",w.bMT(5,1,"generatorHistory")," "))},dependencies:[Tv.G,uy.H,jh.g,dy.G,hy.f,WA.Im,YT.y,Ah.t,Gh.V,Hh.$],encapsulation:2});var zT=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class LT{constructor(){}}LT.ɵfac=function(e){return new(e||LT)},LT.ɵcmp=w.VBU({type:LT,selectors:[["app-send-access-explainer"]],decls:2,vars:0,consts:[[1,"tw-text-center","tw-text-muted"],["bitTypography","body2",1,"tw-mb-0"]],template:function(e,t){1&e&&(w.j41(0,"div",0),w.nrm(1,"p",1),w.k0s())},dependencies:[Tv.G,Tp.r],encapsulation:2});const WT=Object.freeze({All:"all",Text:"text",File:"file"});var KT=i(92697),ZT=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class HT{get dialogTitle(){return this.send.type===xl.N.Text?"newTextSend":"newFileSend"}constructor(e,t,i,n,r){this.send=e,this.environmentService=t,this.i18nService=i,this.platformUtilsService=n,this.toastService=r,this.AuthType=Ml,this.sendLink=(0,B.vPA)(""),this.activeSendIcon=qm,this.initLink()}initLink(){return ZT(this,void 0,void 0,function*(){const e=yield(0,u._)(this.environmentService.environment$);this.sendLink.set(e.getSendUrl()+this.send.accessId+"/"+this.send.urlB64Key)})}get formattedExpirationTime(){if(!this.send.deletionDate)return"";const e=this.getHoursAvailable(this.send);if(e<24)return 1===e?this.i18nService.t("oneHour").toLowerCase():this.i18nService.t("durationTimeHours",String(e)).toLowerCase();const t=Math.ceil(e/24);return 1===t?this.i18nService.t("oneDay").toLowerCase():this.i18nService.t("days",String(t)).toLowerCase()}getHoursAvailable(e){const t=(new Date).getTime(),i=new Date(e.deletionDate).getTime();return Math.max(0,Math.ceil((i-t)/36e5))}copyLink(){const e=this.sendLink();e&&(this.platformUtilsService.copyToClipboard(e),this.toastService.showToast({variant:"success",message:this.i18nService.t("valueCopied",this.i18nService.t("sendLink"))}))}}HT.ɵfac=function(e){return new(e||HT)(w.rXU(Ep.Qs),w.rXU(yo.v),w.rXU(he.W),w.rXU(G.y),w.rXU(F.f))},HT.ɵcmp=w.VBU({type:HT,selectors:[["ng-component"]],decls:30,vars:24,consts:[["dialogSize","large","background","alt"],["bitDialogTitle",""],["bitDialogContent",""],[1,"tw-flex","tw-flex-col","tw-items-center","tw-justify-center","tw-text-center","tw-h-full","tw-px-4","tw-pt-20"],[1,"tw-mb-6","tw-mt-8"],[1,"tw-size-[95px]","tw-content-center"],[3,"content"],["bitTypography","h3",1,"tw-mb-2","tw-font-bold"],["bitTypography","body1",1,"tw-mb-6","tw-max-w-sm"],[1,"tw-w-full","tw-max-w-sm","tw-mb-4"],["bitInput","","readonly","","type","text",3,"value"],["type","button","bitIconButton","bwi-clone","bitSuffix","",3,"click","label"],["bitDialogFooter",""],["type","button","bitButton","","buttonType","primary",3,"click"],["type","button","bitButton","","buttonType","secondary","bitDialogClose",""]],template:function(e,t){if(1&e&&(w.j41(0,"bit-dialog",0),w.qex(1,1),w.j41(2,"span"),w.EFF(3),w.nI1(4,"i18n"),w.k0s(),w.bVm(),w.qex(5,2),w.j41(6,"div",3)(7,"div",4)(8,"div",5),w.nrm(9,"bit-svg",6),w.k0s()(),w.j41(10,"h3",7),w.EFF(11),w.nI1(12,"i18n"),w.k0s(),w.j41(13,"p",8),w.EFF(14),w.nI1(15,"i18n"),w.k0s(),w.j41(16,"bit-form-field",9)(17,"bit-label"),w.EFF(18),w.nI1(19,"i18n"),w.k0s(),w.nrm(20,"input",10),w.j41(21,"button",11),w.nI1(22,"i18n"),w.bIt("click",function(){return t.copyLink()}),w.k0s()()(),w.bVm(),w.qex(23,12),w.j41(24,"button",13),w.bIt("click",function(){return t.copyLink()}),w.EFF(25),w.nI1(26,"i18n"),w.k0s(),w.j41(27,"button",14),w.EFF(28),w.nI1(29,"i18n"),w.k0s(),w.bVm(),w.k0s()),2&e){w.R7$(3),w.JRh(w.bMT(4,9,"sendCreated")),w.R7$(6),w.Y8G("content",t.activeSendIcon),w.R7$(2),w.SpI(" ",w.bMT(12,11,"sendCreatedSuccessfully")," ");const e=t.send.authType===t.AuthType.Email?"sendCreatedDescriptionEmail":t.send.authType===t.AuthType.Password?"sendCreatedDescriptionPassword":"sendCreatedDescriptionV2";w.R7$(3),w.SpI(" ",w.i5U(15,13,e,t.formattedExpirationTime)," "),w.R7$(4),w.JRh(w.bMT(19,16,"sendLink")),w.R7$(2),w.Y8G("value",t.sendLink()),w.R7$(),w.Y8G("label",w.bMT(22,18,"copyLink")),w.R7$(4),w.SpI(" ",w.bMT(26,20,"copyLink")," "),w.R7$(3),w.SpI(" ",w.bMT(29,22,"close")," ")}},dependencies:[Tv.G,fh.Q,yh.I,bh.m,Ch.hJ,Xh.j,Lh.J,Wh.h,Zh.a,Yh.s,lf.k,Tp.r,ph.P,Fp.E,Hh.$],encapsulation:2,changeDetection:0});var JT=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function qT(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",2),w.bIt("click",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.onRestrictedClick())}),w.EFF(1),w.nI1(2,"i18n"),w.k0s()}if(2&e){const e=w.XpG();w.Y8G("buttonType",e.hideIcon&&e.btnTextAddCreateFeatureFlag()?"secondary":"primary")("startIcon",e.hideIcon?null:"bwi-plus"),w.R7$(),w.SpI(" ",w.bMT(2,3,e.title)," ")}}function $T(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",3),w.EFF(1),w.nI1(2,"i18n"),w.k0s(),w.j41(3,"bit-menu",null,0)(5,"button",4),w.bIt("click",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.createSend(t.sendType.Text))}),w.nrm(6,"bit-icon",5),w.EFF(7),w.nI1(8,"i18n"),w.k0s(),w.j41(9,"button",4),w.bIt("click",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.createSend(t.sendType.File))}),w.nrm(10,"bit-icon",6),w.j41(11,"div",7),w.EFF(12),w.nI1(13,"i18n"),w.nrm(14,"app-premium-badge"),w.k0s()()()}if(2&e){const e=w.sdS(4),t=w.XpG();w.Y8G("bitMenuTriggerFor",e)("buttonType",t.hideIcon&&t.btnTextAddCreateFeatureFlag()?"secondary":"primary")("startIcon",t.hideIcon?null:"bwi-plus"),w.R7$(),w.SpI(" ",w.bMT(2,6,t.title)," "),w.R7$(6),w.SpI(" ",w.bMT(8,8,"sendTypeText")," "),w.R7$(5),w.SpI(" ",w.bMT(13,10,"sendTypeFile")," ")}}class _T{constructor(e,t,i,n,r){this.billingAccountProfileStateService=e,this.accountService=t,this.dialogService=i,this.addEditFormConfigService=n,this.sendFormService=r,this.hideIcon=!1,this.configService=(0,B.WQX)(O.w),this.btnTextAddCreateFeatureFlag=(0,c.ot)(this.configService.getFeatureFlag$(Kr.TO.PM32380_BtnTextAddCreate),{initialValue:!1}),this.sendType=xl.N,this.sendPolicyService=(0,B.WQX)(yQ),this.allowedSendTypes=(0,c.ot)(this.sendPolicyService.allowedSendTypes$,{initialValue:[xl.N.Text,xl.N.File]}),this.canAccessPremium$=this.accountService.activeAccount$.pipe((0,jt.n)(e=>e?this.billingAccountProfileStateService.hasPremiumFromAnySource$(e.id):(0,ln.of)(!1)))}get title(){return this.hideIcon?this.btnTextAddCreateFeatureFlag()?"createSendV2":"createSend":this.btnTextAddCreateFeatureFlag()?"create":"new"}createSend(e){return JT(this,void 0,void 0,function*(){if(!(yield(0,u._)(this.canAccessPremium$))&&e===xl.N.File)return;const t=yield this.addEditFormConfigService.buildConfig("add",void 0,e),i=yield ik.openDrawer(this.dialogService,{formConfig:t,closePredicate:this.sendFormService.promptForUnsavedEdits.bind(this.sendFormService)});if(i){this.sendFormDialogRef=i;const e=yield(0,hh.s)(this.sendFormDialogRef.closed);this.sendFormDialogRef=void 0,(null==e?void 0:e.result)===tk.Created&&(null==e?void 0:e.send)&&(yield this.dialogService.openDrawer(HT,{data:e.send}))}})}saveUnsavedSendEdits(){return JT(this,void 0,void 0,function*(){if(this.sendFormDialogRef){return(yield this.sendFormDialogRef.close()).closed}return!0})}onRestrictedClick(){return JT(this,void 0,void 0,function*(){const e=this.allowedSendTypes();yield this.createSend(e[0])})}}_T.ɵfac=function(e){return new(e||_T)(w.rXU(gr.Q),w.rXU(N.D),w.rXU(T.o),w.rXU(SQ),w.rXU(ES))},_T.ɵcmp=w.VBU({type:_T,selectors:[["tools-new-send-dropdown"]],inputs:{hideIcon:"hideIcon"},features:[w.Jv_([SQ])],decls:2,vars:1,consts:[["itemOptions",""],["bitButton","","type","button",3,"buttonType","startIcon"],["bitButton","","type","button",3,"click","buttonType","startIcon"],["bitButton","","type","button",3,"bitMenuTriggerFor","buttonType","startIcon"],["type","button","bitMenuItem","",3,"click"],["name","bwi-file-text","slot","start"],["name","bwi-file","slot","start"],[1,"tw-flex","tw-items-center","tw-gap-2"]],template:function(e,t){1&e&&w.nVh(0,qT,3,5,"button",1)(1,$T,15,12),2&e&&w.vxM(1===t.allowedSendTypes().length?0:1)},dependencies:[Ah.t,fh.Q,mB.M,Kb.Z,Zb.O,Hb.S,Cb.a,ve.R,ce.$Z],encapsulation:2});var eD=i(12694),tD=i(16496),iD=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function nD(e,t){1&e&&w.nrm(0,"tools-new-send-dropdown")}function rD(e,t){1&e&&(w.j41(0,"bit-callout",0),w.nI1(1,"i18n"),w.EFF(2),w.nI1(3,"i18n"),w.k0s()),2&e&&(w.Y8G("title",w.mNQ(w.bMT(1,3,"sendDisabled"))),w.R7$(2),w.SpI(" ",w.bMT(3,5,"sendDisabledWarning")," "))}function sD(e,t){if(1&e){const e=w.RV6();w.j41(0,"div",2)(1,"bit-toggle-group",4),w.nI1(2,"i18n"),w.bIt("selectedChange",function(t){B.eBV(e);const i=w.XpG();return B.Njj(i.onToggleChange(t))}),w.j41(3,"bit-toggle",5),w.EFF(4),w.nI1(5,"i18n"),w.k0s(),w.j41(6,"bit-toggle",5),w.EFF(7),w.nI1(8,"i18n"),w.k0s(),w.j41(9,"bit-toggle",5),w.EFF(10),w.nI1(11,"i18n"),w.k0s()()()}if(2&e){const e=w.XpG();w.R7$(),w.Y8G("selected",e.selectedToggleValue)("label",w.bMT(2,8,"filterSends")),w.R7$(2),w.Y8G("value","all"),w.R7$(),w.JRh(w.bMT(5,10,"allSends")),w.R7$(2),w.Y8G("value","text"),w.R7$(),w.JRh(w.bMT(8,12,"sendTypeText")),w.R7$(2),w.Y8G("value","file"),w.R7$(),w.JRh(w.bMT(11,14,"sendTypeFile"))}}function oD(e,t){1&e&&w.nrm(0,"tools-new-send-dropdown",3),2&e&&w.Y8G("hideIcon",!0)}class aD{constructor(e,t,i,n,s,o,a,l,d,u,h,A,g,v,y,b,C,I,w){this.i18nService=e,this.platformUtilsService=t,this.environmentService=i,this.policyService=n,this.logService=s,this.sendApiService=o,this.dialogService=a,this.toastService=l,this.sendFormConfigService=d,this.accountService=u,this.route=h,this.router=A,this.configService=g,this.sendFormService=v,this.sendItemsService=y,this.sendItemsFiltersService=b,this.validationService=C,this.sendPolicyService=I,this.lockOrLogoutInFlight=!1,this.handleBeforeUnloadEvent=e=>{if(!this.lockOrLogoutInFlight&&this.sendFormService.sendFormHasEdits()){e.preventDefault();const t=this.i18nService.t("sendHasUnsavedEdits");return e.returnValue=t,t}},this.noItemIcon=Ok,this.filteredSends=(0,c.ot)(this.sendItemsService.filteredAndSortedSends$,{initialValue:[]}),this.disableSend=(0,c.ot)(this.accountService.activeAccount$.pipe(f.F6,(0,jt.n)(e=>this.policyService.policyAppliesToUser$(_e.tt.DisableSend,e))),{initialValue:!1}),this.loading=(0,c.ot)(this.sendItemsService.loading$,{initialValue:!0}),this.listState=(0,c.ot)((0,xt.z)([this.sendItemsService.emptyList$,this.sendItemsService.noFilteredResults$]).pipe((0,p.T)(([e,t])=>e?Jk.Empty:t?Jk.NoResults:null)),{initialValue:null}),this.currentSearchText=(0,c.ot)(this.sendItemsService.latestSearchText$,{initialValue:""}),this.SendFilterType=WT,this.SendType=xl.N,this.newSendDropdowns=(0,r.dtW)(_T),this.allowedSendTypes=(0,c.ot)(this.sendPolicyService.allowedSendTypes$,{initialValue:[xl.N.Text,xl.N.File]}),w.activeAccountStatus$.pipe((0,c.pQ)()).subscribe(e=>{e!==m.J.Unlocked&&(this.lockOrLogoutInFlight=!0)}),this.route.queryParamMap.pipe((0,c.pQ)()).subscribe(e=>{const t=e.get("type");let i=WT.All,n=null;t===WT.Text&&(i=WT.Text,n=xl.N.Text),t===WT.File&&(i=WT.File,n=xl.N.File),this.selectedToggleValue=i,this.sendItemsFiltersService.filterForm.patchValue({sendType:n})})}ngOnDestroy(){this.dialogService.closeAll()}addSend(){return iD(this,void 0,void 0,function*(){if(this.disableSend())return;const e=yield this.sendFormConfigService.buildConfig("add",null,xl.N.Text);yield this.openSendItemDialog(e)})}editSend(e){return iD(this,void 0,void 0,function*(){const t=yield this.sendFormConfigService.buildConfig(null==e?"add":"edit",null==e?null:e.id,e.type);yield this.openSendItemDialog(t)})}openSendItemDialog(e){return iD(this,void 0,void 0,function*(){const t=yield ik.openDrawer(this.dialogService,{formConfig:e,closePredicate:this.sendFormService.promptForUnsavedEdits.bind(this.sendFormService)});if(!t)return;this.sendItemDialogRef=t;const i=yield(0,hh.s)(this.sendItemDialogRef.closed);if(this.sendItemDialogRef=void 0,(null==i?void 0:i.result)===tk.Created&&(null==i?void 0:i.send)&&(yield this.dialogService.openDrawer(HT,{data:i.send})),(null==i?void 0:i.result)===tk.Updated&&(null==i?void 0:i.send)){const t=yield this.sendFormConfigService.buildConfig(e.mode,i.send.id,i.send.type);yield this.openSendItemDialog(t)}})}onToggleChange(e){const t=e===WT.All?{type:null}:{type:e};this.router.navigate([],{relativeTo:this.route,queryParams:t,queryParamsHandling:"merge"}).catch(e=>{this.logService.error("Failed to update route query params:",e)})}saveUnsavedSendEdits(){return iD(this,void 0,void 0,function*(){if(this.sendItemDialogRef){return(yield this.sendItemDialogRef.close()).closed}for(const e of this.newSendDropdowns()){if(!(yield e.saveUnsavedSendEdits()))return!1}return!0})}deleteSend(e){return iD(this,void 0,void 0,function*(){if(!(yield this.dialogService.openSimpleDialog({title:{key:"deleteSend"},content:{key:"deleteSendConfirmation"},type:"warning"})))return!1;try{yield this.sendApiService.delete(e.id),this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("deletedSend")})}catch(t){return this.validationService.showError(t),this.logService.error(t),!1}return!0})}onRemovePassword(e){return iD(this,void 0,void 0,function*(){if(this.disableSend())return;if(yield this.dialogService.openSimpleDialog({title:{key:"removePassword"},content:{key:"removePasswordConfirmation"},type:"warning"}))try{yield this.sendApiService.removePassword(e.id),this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("removedPassword")})}catch(t){this.validationService.showError(t),this.logService.error(t)}})}onCopySend(e){return iD(this,void 0,void 0,function*(){const t=yield(0,u._)(this.accountService.activeAccount$.pipe((0,p.T)(e=>null==e?void 0:e.id))),i=(yield(0,u._)(this.environmentService.getEnvironment$(t))).getSendUrl()+e.accessId+"/"+e.urlB64Key;this.platformUtilsService.copyToClipboard(i),this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("valueCopied",this.i18nService.t("sendLink"))})})}searchTextChanged(e){this.sendItemsService.applyFilter(e)}}aD.ɵfac=function(e){return new(e||aD)(w.rXU(he.W),w.rXU(G.y),w.rXU(yo.v),w.rXU(Je.m),w.rXU(se.K),w.rXU(md),w.rXU(T.o),w.rXU(F.f),w.rXU(SQ),w.rXU(N.D),w.rXU(R.nX),w.rXU(R.Ix),w.rXU(O.w),w.rXU(ES),w.rXU(mk),w.rXU(vk),w.rXU(oa.B),w.rXU(yQ),w.rXU(k.u))},aD.ɵcmp=w.VBU({type:aD,selectors:[["app-send"]],viewQuery:function(e,t){1&e&&w.wEZ(t.newSendDropdowns,_T,5),2&e&&w.NyB()},hostBindings:function(e,t){1&e&&w.bIt("beforeunload",function(e){return t.handleBeforeUnloadEvent(e)},w.tSv)},features:[w.Jv_([SQ])],decls:7,vars:9,consts:[["type","warning",3,"title"],[3,"editSend","copySend","deleteSend","removePassword","sends","loading","disableSend","listState","searchText"],["slot","filters",1,"tw-mt-4"],["slot","empty-button",3,"hideIcon"],[3,"selectedChange","selected","label"],[3,"value"]],template:function(e,t){1&e&&(w.j41(0,"app-header"),w.nVh(1,nD,1,0,"tools-new-send-dropdown"),w.k0s(),w.nVh(2,rD,4,7,"bit-callout",0),w.j41(3,"div")(4,"tools-send-list",1),w.bIt("editSend",function(e){return t.editSend(e)})("copySend",function(e){return t.onCopySend(e)})("deleteSend",function(e){return t.deleteSend(e)})("removePassword",function(e){return t.onRemovePassword(e)}),w.nVh(5,sD,12,16,"div",2),w.nVh(6,oD,1,1,"tools-new-send-dropdown",3),w.k0s()()),2&e&&(w.R7$(),w.vxM(t.disableSend()?-1:1),w.R7$(),w.vxM(t.disableSend()?2:-1),w.R7$(2),w.Y8G("sends",t.filteredSends())("loading",t.loading())("disableSend",t.disableSend())("listState",t.listState())("searchText",t.currentSearchText()),w.R7$(),w.vxM(1!==t.allowedSendTypes().length?5:-1),w.R7$(),w.vxM(t.disableSend()?-1:6))},dependencies:[ae.G,L.MD,vh.C,a.YN,UQ.t,jk.s,dy.G,hy.f,_T,KT.E,eD.H,tD.a,BQ,qk,ce.$Z],encapsulation:2});const lD={HasBwInstalled:"hasBwInstalled",checkBwInstalled:"checkIfBWExtensionInstalled",OpenAtRiskPasswords:"openAtRiskPasswords",OpenBrowserExtensionToUrl:"openBrowserExtensionToUrl",PopupOpened:"popupOpened"};var cD=i(64087),dD=i(64608);class uD{constructor(){this.destroyRef=(0,B.WQX)(B.abz),this.messages$=(0,nA.R)(window,"message").pipe((0,c.pQ)(this.destroyRef)),this.extensionInstalled$=this.checkForExtension().pipe((0,jt.n)(e=>e?(0,ln.of)(!0):(0,cD.x)((0,ln.of)(!1),(0,dD.Y)(2500).pipe((0,jt.n)(()=>this.checkForExtension()),(0,ul.v)(e=>!e,!0),(0,h.p)(e=>e)))),(0,Gr.t)({bufferSize:1,refCount:!0})),this.openExtension=e=>new Promise((t,i)=>{(0,gl.O)(this.messages$.pipe((0,h.p)(e=>e.data.command===lD.PopupOpened),(0,p.T)(()=>!0)),(0,vo.O)(2e3).pipe((0,p.T)(()=>!1))).pipe((0,_i.s)(1)).subscribe(e=>{if(!e)return i("Failed to open the extension");t()}),window.postMessage({command:lD.OpenBrowserExtensionToUrl,url:e})})}checkForExtension(){return(0,gl.O)(this.messages$.pipe((0,h.p)(e=>e.data.command===lD.HasBwInstalled),(0,p.T)(()=>!0)),(0,vo.O)(25).pipe((0,p.T)(()=>!1))).pipe((0,P.M)({subscribe:()=>{window.postMessage({command:lD.checkBwInstalled})}}),(0,_i.s)(1))}}uD.ɵfac=function(e){return new(e||uD)},uD.ɵprov=B.jDH({token:uD,factory:uD.ɵfac,providedIn:"root"});var hD=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const AD={Loading:"loading",Error:"error",Success:"success",ManualOpen:"manualOpen",MobileBrowser:"mobileBrowser"};class pD{constructor(e,t,i){this.anonLayoutWrapperDataService=e,this.destroyRef=t,this.webBrowserInteractionService=i,this._pageState$=new Tt.t(AD.Loading),this.pageState$=this._pageState$.asObservable()}start(){zt.A.isMobileBrowser&&this.setMobileState()}registerPopupUrl(e){this.checkForBrowserExtension(e)}openExtension(e){return hD(this,arguments,void 0,function*(e,t=!1){e==lD.OpenAtRiskPasswords?window.postMessage({command:e}):yield this.webBrowserInteractionService.openExtension(Ld.XS[e]),t&&(this.clearExtensionCheckTimeout(),this.extensionCheckTimeout=window.setTimeout(()=>{this.setErrorState(AD.ManualOpen)},1500))})}checkForBrowserExtension(e){(0,nA.R)(window,"message").pipe((0,c.pQ)(this.destroyRef)).subscribe(t=>{this.getMessages(t,e)}),window.postMessage({command:lD.checkBwInstalled}),this.extensionCheckTimeout=window.setTimeout(()=>{this.setErrorState()},1e3)}getMessages(e,t){return hD(this,void 0,void 0,function*(){e.data.command===lD.HasBwInstalled&&(yield this.openExtension(t)),e.data.command===lD.PopupOpened&&this.setSuccessState()})}setMobileState(){this.clearExtensionCheckTimeout(),this._pageState$.next(AD.MobileBrowser),this.anonLayoutWrapperDataService.setAnonLayoutWrapperData({pageTitle:{key:"desktopRequired"}})}setSuccessState(){this.clearExtensionCheckTimeout(),this._pageState$.next(AD.Success),this.anonLayoutWrapperDataService.setAnonLayoutWrapperData({pageTitle:{key:"openedExtension"}})}setErrorState(e){this.clearExtensionCheckTimeout(),this._pageState$.next(null!=e?e:AD.Error),this.anonLayoutWrapperDataService.setAnonLayoutWrapperData({pageTitle:{key:"somethingWentWrong"}})}clearExtensionCheckTimeout(){window.clearTimeout(this.extensionCheckTimeout),this.extensionCheckTimeout=void 0}}function gD(e,t){if(1&e&&(w.j41(0,"div",0)(1,"p",1),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"a",2),w.EFF(5),w.nI1(6,"i18n"),w.k0s()()),2&e){const e=w.XpG();w.R7$(2),w.JRh(w.bMT(3,3,"doNotHaveExtension")),w.R7$(2),w.Y8G("href",e.webStoreUrl,w.B4B),w.R7$(),w.SpI(" ",w.bMT(6,5,"installExtension")," ")}}pD.ɵfac=function(e){return new(e||pD)(B.KVO(pe.f),B.KVO(B.abz),B.KVO(uD))},pD.ɵprov=B.jDH({token:pD,factory:pD.ɵfac,providedIn:"root"});const vD={[Yt.bq.ChromeBrowser]:"https://chrome.google.com/webstore/detail/bitwarden-password-manage/nngceckbapebfimnlniiiahkandclblb",[Yt.bq.FirefoxBrowser]:"https://addons.mozilla.org/en-US/firefox/addon/bitwarden-password-manager/",[Yt.bq.SafariBrowser]:"https://apps.apple.com/us/app/bitwarden/id1352778147?mt=12",[Yt.bq.OperaBrowser]:"https://addons.opera.com/extensions/details/bitwarden-free-password-manager/",[Yt.bq.EdgeBrowser]:"https://microsoftedge.microsoft.com/addons/detail/jbkfoedolllekgbhcbcoahefnbanhhlh"};class mD{constructor(e,t){this.browserExtensionPromptService=e,this.platformService=t,this.shouldShow$=this.browserExtensionPromptService.pageState$.pipe((0,p.T)(e=>e===AD.Error||e===AD.ManualOpen)),this.BrowserPromptState=AD,this.webStoreUrl="https://bitwarden.com/download/#downloads-web-browser"}ngOnInit(){this.setBrowserStoreLink()}setBrowserStoreLink(){const e=this.platformService.getDevice(),t=vD[e];t&&(this.webStoreUrl=t)}}mD.ɵfac=function(e){return new(e||mD)(w.rXU(pD),w.rXU(G.y))},mD.ɵcmp=w.VBU({type:mD,selectors:[["vault-browser-extension-prompt-install"]],decls:2,vars:3,consts:[[1,"tw-text-center"],[1,"tw-mb-0"],["bitLink","","target","_blank","rel","noreferrer",3,"href"]],template:function(e,t){1&e&&(w.nVh(0,gD,7,7,"div",0),w.nI1(1,"async")),2&e&&w.vxM(w.bMT(1,1,t.shouldShow$)?0:-1)},dependencies:[L.MD,Gh.V,jh.g,L.Jj,ce.$Z],encapsulation:2});const fD=te.JW`
|
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<g clip-path="url(#clip0_11934_25684)">
|
|
<path d="M17.3333 0H2.66667C1.19391 0 0 1.19391 0 2.66667V17.3333C0 18.8061 1.19391 20 2.66667 20H17.3333C18.8061 20 20 18.8061 20 17.3333V2.66667C20 1.19391 18.8061 0 17.3333 0Z" class="tw-fill-bw-blue" />
|
|
<mask id="mask0_11934_25684" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="3" y="3" width="14" height="14">
|
|
<path d="M17 3H3V17H17V3Z" class="tw-fill-text-alt2"/>
|
|
</mask>
|
|
<g mask="url(#mask0_11934_25684)">
|
|
<path d="M15.6599 3.17501C15.607 3.11944 15.5435 3.07526 15.4731 3.04507C15.4027 3.01489 15.327 2.99958 15.2504 3.00001H4.75052C4.67396 2.99958 4.59784 3.01489 4.5274 3.04507C4.45696 3.07526 4.39352 3.11944 4.34102 3.17501C4.28546 3.22751 4.24127 3.29138 4.21109 3.36182C4.1809 3.43226 4.16559 3.50794 4.16602 3.58451V10.5844C4.16821 11.1173 4.27146 11.6449 4.47052 12.1393C4.65996 12.6271 4.91458 13.0874 5.22739 13.5069C5.54895 13.9274 5.90901 14.3163 6.30276 14.6698C6.66807 15.0049 7.05306 15.3186 7.4551 15.6086C7.8051 15.8571 8.1726 16.0925 8.5576 16.3148C8.9426 16.537 9.21431 16.6871 9.3731 16.7654C9.53322 16.8441 9.66272 16.9063 9.75897 16.9474C9.83422 16.9837 9.91694 17.0016 10.0005 16.9999C10.0827 17.0012 10.1641 16.982 10.2376 16.9448C10.3356 16.9019 10.4633 16.8415 10.6252 16.7628C10.7871 16.684 11.0627 16.5335 11.4407 16.3121C11.8187 16.0908 12.1906 15.8545 12.5432 15.606C12.9457 15.3155 13.3311 15.0023 13.6973 14.6671C14.0915 14.3141 14.4515 13.9247 14.7727 13.5043C15.085 13.0843 15.3397 12.6245 15.5295 12.1367C15.729 11.6423 15.8323 11.1147 15.834 10.5818V3.58188C15.8345 3.50576 15.8192 3.43051 15.789 3.36051C15.7588 3.29051 15.715 3.22751 15.6599 3.17501ZM14.3063 10.6483C14.3063 13.1858 10.0005 15.3654 10.0005 15.3654V4.49975H14.3063V10.6483Z" class="tw-fill-text-alt2"/>
|
|
</g>
|
|
</g>
|
|
<defs>
|
|
<clipPath id="clip0_11934_25684">
|
|
<rect width="20" height="20" class="tw-fill-text-alt2"/>
|
|
</clipPath>
|
|
</defs>
|
|
</svg>
|
|
`;class yD{constructor(){this.BitwardenIcon=fD}}yD.ɵfac=function(e){return new(e||yD)},yD.ɵcmp=w.VBU({type:yD,selectors:[["vault-manually-open-extension"]],decls:6,vars:7,consts:[["bitTypography","body1",1,"tw-mb-0"],[1,"!tw-inline-block","[&>svg]:tw-align-baseline","[&>svg]:-tw-mb-[0.25rem]",3,"content"]],template:function(e,t){1&e&&(w.j41(0,"p",0),w.EFF(1),w.nI1(2,"i18n"),w.nrm(3,"bit-svg",1),w.EFF(4),w.nI1(5,"i18n"),w.k0s()),2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,3,"openExtensionFromToolbarPart1")," "),w.R7$(2),w.Y8G("content",t.BitwardenIcon),w.R7$(),w.SpI(" ",w.bMT(5,5,"openExtensionFromToolbarPart2"),"\n"))},dependencies:[Tm.Z,lf.k,ce.$Z],encapsulation:2,changeDetection:0});var bD=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function CD(e,t){1&e&&(w.qex(0),w.nrm(1,"i",1),w.j41(2,"p",2),w.EFF(3),w.nI1(4,"i18n"),w.k0s(),w.bVm()),2&e&&(w.R7$(3),w.JRh(w.bMT(4,1,"openingExtension")))}function ID(e,t){if(1&e){const e=w.RV6();w.qex(0),w.j41(1,"p",3),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"button",4),w.bIt("click",function(){B.eBV(e),w.XpG();const t=w.r8f(2),i=w.XpG();return B.Njj(i.openExtension(t))}),w.EFF(5),w.nI1(6,"i18n"),w.k0s(),w.bVm()}2&e&&(w.R7$(2),w.JRh(w.bMT(3,2,"openingExtensionError")),w.R7$(3),w.SpI(" ",w.bMT(6,4,"openExtension")," "))}function wD(e,t){if(1&e&&(w.qex(0),w.nrm(1,"i",5),w.j41(2,"p",3),w.EFF(3),w.nI1(4,"i18n"),w.k0s(),w.bVm()),2&e){w.XpG();const e=w.r8f(2),t=w.XpG();w.R7$(3),w.SpI(" ",w.bMT(4,1,t.pageToI18nKeyMap[e])," ")}}function BD(e,t){1&e&&(w.qex(0),w.nrm(1,"vault-manually-open-extension"),w.bVm())}function ED(e,t){1&e&&(w.qex(0),w.j41(1,"p",6),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.bVm()),2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"reopenLinkOnDesktop")," "))}function SD(e,t){if(1&e&&(w.j41(0,"div",0),w.nVh(1,CD,5,3,"ng-container"),w.SS7(2),w.nI1(3,"async"),w.nVh(4,ID,7,6,"ng-container"),w.nVh(5,wD,5,3,"ng-container"),w.nVh(6,BD,2,0,"ng-container"),w.nVh(7,ED,4,3,"ng-container"),w.k0s()),2&e){const e=t,i=w.XpG();w.R7$(),w.vxM(e===i.BrowserPromptState.Loading?1:-1),w.R7$(),w.bH3(w.bMT(3,5,i.extensionPage$)),w.R7$(2),w.vxM(e===i.BrowserPromptState.Error?4:-1),w.R7$(),w.vxM(e===i.BrowserPromptState.Success?5:-1),w.R7$(),w.vxM(e===i.BrowserPromptState.ManualOpen?6:-1),w.R7$(),w.vxM(e===i.BrowserPromptState.MobileBrowser?7:-1)}}class QD{constructor(e,t,i){this.browserExtensionPromptService=e,this.route=t,this.document=i,this.VaultMessages=lD,this.pageState$=this.browserExtensionPromptService.pageState$,this.BrowserPromptState=AD,this.viewportContent=null,this.pageToI18nKeyMap={[lD.OpenAtRiskPasswords]:"openedExtensionViewAtRiskPasswords",AutoConfirm:"autoConfirmExtensionOpened"},this.extensionPage$=(0,ln.of)(lD.OpenAtRiskPasswords),this.extensionPage$=this.route.queryParamMap.pipe((0,p.T)(e=>{var t;return null!==(t=e.get("url"))&&void 0!==t?t:lD.OpenAtRiskPasswords})),this.extensionPage$.pipe((0,P.M)(e=>this.browserExtensionPromptService.registerPopupUrl(e)),(0,c.pQ)()).subscribe()}ngOnInit(){var e;this.browserExtensionPromptService.start(),this.document.body.style.minWidth="auto";const t=this.document.querySelector('meta[name="viewport"]');this.viewportContent=null!==(e=null==t?void 0:t.getAttribute("content"))&&void 0!==e?e:null,null==t||t.setAttribute("content","width=device-width, initial-scale=1.0")}ngOnDestroy(){var e;this.document.body.style.minWidth="",null!==this.viewportContent&&(null===(e=this.document.querySelector('meta[name="viewport"]'))||void 0===e||e.setAttribute("content",this.viewportContent))}openExtension(e){return bD(this,void 0,void 0,function*(){yield this.browserExtensionPromptService.openExtension(e,!0)})}}QD.ɵfac=function(e){return new(e||QD)(w.rXU(pD),w.rXU(R.nX),w.rXU(B.qQL))},QD.ɵcmp=w.VBU({type:QD,selectors:[["vault-browser-extension-prompt"]],decls:2,vars:3,consts:[[1,"tw-text-center"],["aria-hidden","true",1,"bwi","bwi-spinner","bwi-spin","bwi-3x","tw-text-primary-600"],["bitTypography","body1",1,"tw-mb-0","tw-mt-2"],["bitTypography","body1",1,"tw-mb-4","tw-text-xl"],["bitButton","","buttonType","primary","type","button","id","bw-extension-prompt-button","endIcon","bwi-external-link",3,"click"],["aria-hidden","true",1,"bwi","tw-text-2xl","bwi-check-circle","tw-text-success-700"],["bitTypography","body1",1,"tw-mb-0","tw-text-xl"]],template:function(e,t){if(1&e&&(w.nVh(0,SD,8,8,"div",0),w.nI1(1,"async")),2&e){let e;w.vxM((e=w.bMT(1,1,t.pageState$))?0:-1,e)}},dependencies:[L.MD,fh.Q,Tm.Z,yD,L.Jj,ce.$Z],encapsulation:2,changeDetection:0});const kD=te.JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="3.76 4 88.24 88.24">
|
|
<path class="tw-fill-illustration-tertiary" d="M61.342 69.774 10.61 90.912a4.223 4.223 0 0 1-5.523-5.523l21.138-50.73a8 8 0 0 1 9.683-4.586l1.43.428a42 42 0 0 1 28.16 28.16l.428 1.43a8 8 0 0 1-4.585 9.683Z"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" fill-rule="evenodd" d="M29.603 82.999a87.777 87.777 0 0 1-8.85-7.751A87.763 87.763 0 0 1 13 66.397l.893-2.143a85.302 85.302 0 0 0 8.273 9.58c3.099 3.099 6.32 5.863 9.579 8.272l-2.143.893Zm-8.438 3.516a104.44 104.44 0 0 1-6.07-5.61 104.496 104.496 0 0 1-5.61-6.07l-.86 2.066a106.756 106.756 0 0 0 5.056 5.418 106.754 106.754 0 0 0 5.418 5.056l2.066-.86Zm19.768-8.237c-4.415-2.637-8.845-6.073-12.991-10.22-4.147-4.147-7.583-8.576-10.22-12.991l.967-2.321c2.625 4.678 6.212 9.443 10.667 13.898s9.22 8.042 13.898 10.667l-2.32.967Zm-17.882-36c1.659 6.049 5.736 12.863 11.772 18.899 6.036 6.036 12.85 10.113 18.9 11.772l3.242-1.351a23.334 23.334 0 0 1-3.26-.734c-5.523-1.644-11.815-5.448-17.468-11.101-5.653-5.654-9.458-11.945-11.101-17.469a23.344 23.344 0 0 1-.734-3.259l-1.351 3.243Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-secondary" d="M52.657 43.343c8.2 8.201 12.316 17.382 9.192 20.506-3.124 3.124-12.305-.991-20.506-9.192-8.2-8.201-12.316-17.382-9.192-20.506 3.124-3.124 12.305.991 20.506 9.192Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M59.675 56.318c-1.54-3.437-4.459-7.587-8.432-11.56-3.974-3.974-8.124-6.892-11.561-8.433-1.726-.773-3.171-1.155-4.267-1.212-1.096-.057-1.61.212-1.85.452-.24.24-.51.754-.452 1.85.057 1.096.439 2.541 1.212 4.267 1.54 3.437 4.459 7.587 8.432 11.56 3.974 3.974 8.124 6.892 11.561 8.433 1.726.773 3.171 1.155 4.267 1.212 1.096.057 1.61-.212 1.85-.452.24-.24.51-.754.452-1.85-.057-1.096-.439-2.541-1.212-4.267Zm2.174 7.531c3.124-3.124-.991-12.305-9.192-20.506-8.201-8.2-17.382-12.316-20.506-9.192-3.124 3.124.991 12.305 9.192 20.506 8.201 8.2 17.382 12.316 20.506 9.192Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M35.622 31.03a7 7 0 0 0-8.473 4.013L6.01 85.773a3.223 3.223 0 0 0 4.215 4.216l50.731-21.138a7 7 0 0 0 4.012-8.473l-.428-1.429a41 41 0 0 0-27.49-27.49l-1.43-.428Zm-10.32 3.244a9 9 0 0 1 10.894-5.16l1.43.43a43 43 0 0 1 28.83 28.83l.43 1.43a9 9 0 0 1-5.16 10.894l-50.73 21.137a5.224 5.224 0 0 1-6.831-6.83l21.138-50.731Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" d="M47.264 4.584a.756.756 0 0 1 1.472 0l.038.16a6 6 0 0 0 4.481 4.482l.16.038a.756.756 0 0 1 0 1.472l-.16.037a6 6 0 0 0-4.482 4.482l-.037.16a.756.756 0 0 1-1.472 0l-.038-.16a6 6 0 0 0-4.481-4.482l-.16-.037a.756.756 0 0 1 0-1.472l.16-.038a6 6 0 0 0 4.482-4.481l.037-.16ZM85.264 19.584a.756.756 0 0 1 1.472 0l.037.16a6 6 0 0 0 4.482 4.483l.16.037a.756.756 0 0 1 0 1.472l-.16.037a6 6 0 0 0-4.481 4.482l-.038.16a.756.756 0 0 1-1.472 0l-.037-.16a6 6 0 0 0-4.482-4.482l-.16-.037a.756.756 0 0 1 0-1.472l.16-.037a6 6 0 0 0 4.481-4.482l.038-.16ZM72.264 80.584a.756.756 0 0 1 1.472 0l.037.16a6 6 0 0 0 4.482 4.483l.16.037a.756.756 0 0 1 0 1.472l-.16.037a6 6 0 0 0-4.481 4.482l-.038.16a.756.756 0 0 1-1.472 0l-.037-.16a6 6 0 0 0-4.482-4.481l-.16-.038a.756.756 0 0 1 0-1.472l.16-.037a6 6 0 0 0 4.481-4.482l.038-.16Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M80.607 52.364a7 7 0 0 0-9.9 0 1 1 0 0 1-1.414-1.414 9 9 0 0 1 12.728 0 1 1 0 0 1-1.414 1.414ZM85.125 42.317c-5.693-3.286-12.972-1.336-16.259 4.357a1 1 0 1 1-1.732-1c3.839-6.65 12.342-8.928 18.991-5.089a1 1 0 1 1-1 1.732ZM24 18a7 7 0 0 1 7 7 1 1 0 1 0 2 0 9 9 0 0 0-9-9 1 1 0 1 0 0 2ZM29.445 9.937a7 7 0 0 1 4.114 9.004 1 1 0 1 0 1.874.699 9 9 0 0 0-5.29-11.577 1 1 0 0 0-.698 1.874Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-secondary" d="M65 21a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M61 23a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm0 2a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-primary" d="M71 33a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M68 34a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 2a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-primary" d="M60 82a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M57 83a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 2a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-tertiary" d="M88 64a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M83 67a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0 2a5 5 0 1 0 0-10 5 5 0 0 0 0 10Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-tertiary" d="M55 27.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M51.5 29a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm0 2a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M84 11a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M77 16a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0 2a7 7 0 1 0 0-14 7 7 0 0 0 0 14Z" clip-rule="evenodd"/>
|
|
</svg>
|
|
`,RD=e=>{switch(e){case Yt.bq.ChromeBrowser:return"https://chromewebstore.google.com/detail/bitwarden-password-manage/nngceckbapebfimnlniiiahkandclblb";case Yt.bq.FirefoxBrowser:return"https://addons.mozilla.org/en-US/firefox/addon/bitwarden-password-manager/";case Yt.bq.SafariBrowser:return"https://apps.apple.com/us/app/bitwarden/id1352778147?mt=12";case Yt.bq.OperaBrowser:return"https://addons.opera.com/extensions/details/bitwarden-free-password-manager/";case Yt.bq.EdgeBrowser:return"https://microsoftedge.microsoft.com/addons/detail/jbkfoedolllekgbhcbcoahefnbanhhlh";default:return"https://bitwarden.com/download/#downloads-web-browser"}};var FD=i(11451),TD=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const DD=new C.Ok(C.q9,"setupExtensionDismissed",{deserializer:e=>e,clearOn:[]});var PD=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class MD{constructor(){this.platformUtilsService=(0,B.WQX)(G.y),this.data=(0,B.WQX)(Ep.Qs),this.webStoreUrl=""}ngOnInit(){this.webStoreUrl=RD(this.platformUtilsService.getDevice())}dismissExtensionPage(){return PD(this,void 0,void 0,function*(){this.data.onDismiss()})}}MD.ɵfac=function(e){return new(e||MD)},MD.ɵcmp=w.VBU({type:MD,selectors:[["vault-add-extension-later-dialog"]],decls:17,vars:13,consts:[["bitDialogIcon",""],["aria-hidden","true",1,"bwi","bwi-info-circle","bwi-2x","tw-text-info"],["bitDialogContent",""],["bitTypography","h3"],["bitTypography","body1"],["bitDialogFooter",""],["bitButton","","buttonType","primary","target","_blank","rel","noopener noreferrer",3,"href"],["bitButton","","buttonType","secondary","routerLink","/vault","bitDialogClose","",3,"click"]],template:function(e,t){1&e&&(w.j41(0,"bit-simple-dialog")(1,"div",0),w.nrm(2,"i",1),w.k0s(),w.qex(3,2),w.j41(4,"div",3),w.EFF(5),w.nI1(6,"i18n"),w.k0s(),w.j41(7,"div",4),w.EFF(8),w.nI1(9,"i18n"),w.k0s(),w.bVm(),w.qex(10,5),w.j41(11,"a",6),w.EFF(12),w.nI1(13,"i18n"),w.k0s(),w.j41(14,"a",7),w.bIt("click",function(){return t.dismissExtensionPage()}),w.EFF(15),w.nI1(16,"i18n"),w.k0s(),w.bVm(),w.k0s()),2&e&&(w.R7$(5),w.SpI(" ",w.bMT(6,5,"cannotAutofillPasswordsWithoutExtensionTitle")," "),w.R7$(3),w.JRh(w.bMT(9,7,"cannotAutofillPasswordsWithoutExtensionDesc")),w.R7$(3),w.Y8G("href",t.webStoreUrl,w.B4B),w.R7$(),w.SpI(" ",w.bMT(13,9,"getTheExtension")," "),w.R7$(3),w.SpI(" ",w.bMT(16,11,"skipToWebApp")," "))},dependencies:[ph.P,yh.I,Ch.LJ,Ch.hJ,Ch.o_,Nh.p,Fp.E,Tp.r,fh.Q,Hp.iI,Hp.Wk,Hh.$],encapsulation:2});var xD=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const VD=["video"],GD=e=>({"tw-opacity-0":e});function UD(e,t){if(1&e){const e=w.RV6();w.j41(0,"video",9,3),w.bIt("loadeddata",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.onVideoLoad())}),w.k0s()}if(2&e){const e=w.XpG();w.Y8G("ngClass",w.eq3(2,GD,!e.allVideosLoaded)),w.BMQ("aria-hidden",!e.allVideosLoaded)}}function OD(e,t){if(1&e){const e=w.RV6();w.j41(0,"video",10,3),w.bIt("loadeddata",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.onVideoLoad())}),w.k0s()}if(2&e){const e=w.XpG();w.Y8G("ngClass",w.eq3(2,GD,!e.allVideosLoaded)),w.BMQ("aria-hidden",!e.allVideosLoaded)}}function ND(e,t){if(1&e){const e=w.RV6();w.j41(0,"video",11,3),w.bIt("loadeddata",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.onVideoLoad())}),w.k0s()}if(2&e){const e=w.XpG();w.Y8G("ngClass",w.eq3(2,GD,!e.allVideosLoaded)),w.BMQ("aria-hidden",!e.allVideosLoaded)}}function jD(e,t){1&e&&w.nrm(0,"div",6)}function YD(e,t){1&e&&w.eu8(0)}function XD(e,t){1&e&&w.nrm(0,"div",6)}function zD(e,t){1&e&&w.eu8(0)}function LD(e,t){1&e&&w.nrm(0,"div",6)}function WD(e,t){1&e&&w.eu8(0)}class KD{get allVideosLoaded(){return this.numberOfLoadedVideos>=3}constructor(){this.document=(0,B.WQX)(B.qQL),this.cssOverlayVariable="--overlay-opacity",this.cssBorderVariable="--border-opacity",this.variant="desktop",this.numberOfLoadedVideos=0,this.prefersReducedMotion=window.matchMedia("(prefers-reduced-motion: reduce)").matches,this.videoContainerClass=["tw-absolute tw-left-0 tw-top-0 tw-w-[15rem] tw-opacity-0 md:tw-opacity-100 md:tw-relative lg:tw-w-[17rem] tw-max-w-full tw-aspect-[0.807]","[--overlay-opacity:0.7] after:tw-absolute after:tw-top-0 after:tw-left-0 after:tw-size-full after:tw-bg-primary-100 after:tw-content-[''] after:tw-rounded-lg after:tw-opacity-[--overlay-opacity]","[--border-opacity:0] before:tw-absolute before:tw-top-0 before:tw-left-0 before:tw-w-full before:tw-h-2 before:tw-bg-primary-600 before:tw-content-[''] before:tw-rounded-t-lg before:tw-opacity-[--border-opacity]","after:tw-transition-opacity after:tw-duration-400 after:tw-ease-linear","before:tw-transition-opacity before:tw-duration-400 before:tw-ease-linear"].join(" "),(0,nA.R)(window,"resize").pipe((0,c.pQ)(),(0,Oy.B)(25)).subscribe(()=>this.onResize())}onResize(){const e=this.variant;this.variant=this.document.documentElement.clientWidth<768?"mobile":"desktop",this.variant!==e&&"mobile"===this.variant&&this.videoElements.forEach(e=>{e.nativeElement.paused?this.hideElement(e.nativeElement.parentElement):this.showElement(e.nativeElement.parentElement)}),this.variant!==e&&"desktop"===this.variant&&this.videoElements.forEach(e=>{this.showElement(e.nativeElement.parentElement)})}onVideoLoad(){this.numberOfLoadedVideos=this.numberOfLoadedVideos+1,this.allVideosLoaded&&this.startVideoSequence(0)}startVideoSequence(e){return xD(this,void 0,void 0,function*(){let t=e;const i=t>=this.videoElements.length;if(i&&this.prefersReducedMotion)return;i&&(this.videoElements.forEach(e=>{e.nativeElement.currentTime=0}),t=0);const n=this.videoElements.toArray()[t].nativeElement;n.onended=()=>{this.startVideoSequence(t+1),this.addPausedStyles(n)},this.mobileTransitionIn(t),n.muted=!0,this.addPlayingStyles(n),yield n.play()})}mobileTransitionIn(e){if(this.isAboveTabletBreakpoint())return;const t=this.videoElements.toArray()[e].nativeElement.parentElement,i=0===e?this.videoElements.length-1:e-1,n=this.videoElements.toArray()[i].nativeElement.parentElement;this.hideElement(n,!0),this.showElement(t,!0)}isAboveTabletBreakpoint(){return this.document.documentElement.clientWidth>=768}hideElement(e,t=!1){e.style.transition=t?"opacity 0.5s linear":"",e.style.opacity="0"}showElement(e,t=!1){e.style.transition=t?"opacity 0.5s linear":"",e.style.opacity="1"}addPausedStyles(e){const t=e.parentElement;t&&(t.style.setProperty(this.cssBorderVariable,"0"),t.style.setProperty(this.cssOverlayVariable,"0.7"))}addPlayingStyles(e){const t=e.parentElement;t&&(t.style.setProperty(this.cssBorderVariable,"1"),t.style.setProperty(this.cssOverlayVariable,"0"))}}KD.ɵfac=function(e){return new(e||KD)},KD.ɵcmp=w.VBU({type:KD,selectors:[["vault-add-extension-videos"]],viewQuery:function(e,t){if(1&e&&w.GBs(VD,5,w.aKT),2&e){let e;w.mGM(e=w.lsd())&&(t.videoElements=e)}},decls:17,vars:12,consts:[["newLoginItem",""],["browserExtensionEasyAccess",""],["onboardingAutofill",""],["video",""],[1,"tw-mx-auto","tw-w-[15rem]","tw-mb-8","tw-relative","md:tw-grid","md:tw-gap-10","md:tw-w-auto","md:tw-grid-rows-1","md:tw-grid-cols-3","md:tw-justify-center","md:tw-justify-items-center","xl:tw-gap-12"],[3,"ngClass"],["data-testid","video-pulse",1,"tw-animate-pulse","tw-bg-secondary-300","tw-size-full","tw-absolute","tw-left-0","tw-top-0","tw-rounded-lg"],[4,"ngTemplateOutlet"],[1,"tw-relative",3,"ngClass"],["muted","","src","videos/new-login-item.mp4","appDarkImgSrc","videos/new-login-item-dark.mp4","aria-hidden","",1,"tw-block","tw-max-w-full","tw-shadow-md","tw-rounded-lg",3,"loadeddata","ngClass"],["muted","","src","videos/browser-extension-easy-access.mp4","appDarkImgSrc","videos/browser-extension-easy-access-dark.mp4","aria-hidden","",1,"tw-block","tw-max-w-full","tw-shadow-md","tw-rounded-lg",3,"loadeddata","ngClass"],["muted","","src","videos/onboarding-autofill.mp4","appDarkImgSrc","videos/onboarding-autofill-dark.mp4","aria-hidden","",1,"tw-block","tw-max-w-full","tw-shadow-md","tw-rounded-lg",3,"loadeddata","ngClass"]],template:function(e,t){if(1&e&&(w.DNE(0,UD,2,4,"ng-template",null,0,w.C5r)(2,OD,2,4,"ng-template",null,1,w.C5r)(4,ND,2,4,"ng-template",null,2,w.C5r),w.j41(6,"div",4),w.nI1(7,"i18n"),w.j41(8,"div",5),w.nVh(9,jD,1,0,"div",6),w.DNE(10,YD,1,0,"ng-container",7),w.k0s(),w.j41(11,"div",8),w.nVh(12,XD,1,0,"div",6),w.DNE(13,zD,1,0,"ng-container",7),w.k0s(),w.j41(14,"div",5),w.nVh(15,LD,1,0,"div",6),w.DNE(16,WD,1,0,"ng-container",7),w.k0s()()),2&e){const e=w.sdS(1),i=w.sdS(3),n=w.sdS(5);w.R7$(6),w.BMQ("aria-label",w.bMT(7,10,"setupExtensionContentAlt")),w.R7$(2),w.Y8G("ngClass",t.videoContainerClass),w.R7$(),w.vxM(t.allVideosLoaded?-1:9),w.R7$(),w.Y8G("ngTemplateOutlet",e),w.R7$(),w.Y8G("ngClass",t.videoContainerClass),w.R7$(),w.vxM(t.allVideosLoaded?-1:12),w.R7$(),w.Y8G("ngTemplateOutlet",i),w.R7$(),w.Y8G("ngClass",t.videoContainerClass),w.R7$(),w.vxM(t.allVideosLoaded?-1:15),w.R7$(),w.Y8G("ngTemplateOutlet",n)}},dependencies:[L.MD,L.YU,L.T3,Nh.p,dh.Mr,Hh.$],encapsulation:2});var ZD=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function HD(e,t){1&e&&(w.nrm(0,"i",0),w.nI1(1,"i18n")),2&e&&w.Y8G("appA11yTitle",w.bMT(1,1,"loading"))}function JD(e,t){if(1&e){const e=w.RV6();w.j41(0,"section",1)(1,"h1",3),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"h2",4),w.EFF(5),w.nI1(6,"i18n"),w.k0s(),w.nrm(7,"vault-add-extension-videos"),w.j41(8,"div",5)(9,"a",6),w.EFF(10),w.nI1(11,"i18n"),w.k0s(),w.j41(12,"button",7),w.bIt("click",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.addItLater())}),w.EFF(13),w.nI1(14,"i18n"),w.k0s()()()}if(2&e){const e=w.XpG();w.R7$(2),w.SpI(" ",w.bMT(3,5,"setupExtensionPageTitle")," "),w.R7$(3),w.SpI(" ",w.bMT(6,7,"setupExtensionPageDescription")," "),w.R7$(4),w.Y8G("href",e.webStoreUrl,w.B4B),w.R7$(),w.SpI(" ",w.bMT(11,9,"getTheExtension")," "),w.R7$(3),w.SpI(" ",w.bMT(14,11,"addItLater")," ")}}function qD(e,t){1&e&&(w.j41(0,"div",14),w.nrm(1,"vault-manually-open-extension"),w.k0s())}function $D(e,t){if(1&e){const e=w.RV6();w.j41(0,"section",2)(1,"div",8),w.nrm(2,"bit-svg",9),w.k0s(),w.j41(3,"h1",10),w.EFF(4),w.nI1(5,"i18n"),w.k0s(),w.j41(6,"div",11)(7,"p"),w.EFF(8),w.nI1(9,"i18n"),w.k0s(),w.j41(10,"button",12),w.bIt("click",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.openExtension())}),w.EFF(11),w.nI1(12,"i18n"),w.k0s(),w.j41(13,"a",13),w.EFF(14),w.nI1(15,"i18n"),w.k0s(),w.nVh(16,qD,2,0,"div",14),w.k0s(),w.j41(17,"p",15),w.EFF(18),w.nI1(19,"i18n"),w.j41(20,"a",16),w.EFF(21),w.nI1(22,"i18n"),w.k0s(),w.EFF(23),w.nI1(24,"i18n"),w.j41(25,"a",17),w.EFF(26),w.nI1(27,"i18n"),w.k0s()()()}if(2&e){const e=w.XpG();w.R7$(2),w.Y8G("content",e.PartyIcon),w.R7$(2),w.SpI(" ",w.bMT(5,10,e.state===e.SetupExtensionState.Success?"bitwardenExtensionInstalled":"bitwardenExtensionIsInstalled")," "),w.R7$(4),w.SpI(" ",w.bMT(9,12,"openExtensionToAutofill")," "),w.R7$(3),w.SpI(" ",w.bMT(12,14,"openBitwardenExtension")," "),w.R7$(3),w.SpI(" ",w.bMT(15,16,"skipToWebApp")," "),w.R7$(2),w.vxM(e.state===e.SetupExtensionState.ManualOpen?16:-1),w.R7$(2),w.SpI(" ",w.bMT(19,18,"gettingStartedWithBitwardenPart1")," "),w.R7$(3),w.SpI(" ",w.bMT(22,20,"gettingStartedWithBitwardenPart2")," "),w.R7$(2),w.SpI(" ",w.bMT(24,22,"and")," "),w.R7$(3),w.SpI(" ",w.bMT(27,24,"gettingStartedWithBitwardenPart3")," ")}}const _D={Loading:"loading",NeedsExtension:"needs-extension",Success:"success",AlreadyInstalled:"already-installed",ManualOpen:"manual-open"};class eP{constructor(){this.webBrowserExtensionInteractionService=(0,B.WQX)(uD),this.router=(0,B.WQX)(R.Ix),this.destroyRef=(0,B.WQX)(B.abz),this.platformUtilsService=(0,B.WQX)(G.y),this.dialogService=(0,B.WQX)(T.o),this.stateProvider=(0,B.WQX)(C.v2),this.accountService=(0,B.WQX)(N.D),this.document=(0,B.WQX)(B.qQL),this.SetupExtensionState=_D,this.PartyIcon=kD,this.state=_D.Loading,this.webStoreUrl="",this.dialogRef=null,this.viewportContent=null}ngOnInit(){return ZD(this,void 0,void 0,function*(){var e;this.document.body.style.minWidth="auto";const t=this.document.querySelector('meta[name="viewport"]');this.viewportContent=null!==(e=null==t?void 0:t.getAttribute("content"))&&void 0!==e?e:null,null==t||t.setAttribute("content","width=device-width, initial-scale=1.0"),yield this.conditionallyRedirectUser(),this.webStoreUrl=RD(this.platformUtilsService.getDevice()),this.webBrowserExtensionInteractionService.extensionInstalled$.pipe((0,c.pQ)(this.destroyRef),(0,tn.Z)(null),(0,nn.J)()).subscribe(([e,t])=>{var i;null===e&&t&&(this.dismissExtensionPage(),this.state=_D.AlreadyInstalled),!1===e&&t&&(null===(i=this.dialogRef)||void 0===i||i.close(),this.dismissExtensionPage(),this.state=_D.Success),!1===t&&(this.state=_D.NeedsExtension)})})}ngOnDestroy(){var e;this.document.body.style.minWidth="",null!==this.viewportContent&&(null===(e=this.document.querySelector('meta[name="viewport"]'))||void 0===e||e.setAttribute("content",this.viewportContent))}conditionallyRedirectUser(){return ZD(this,void 0,void 0,function*(){zt.A.isMobileBrowser&&(yield this.dismissExtensionPage(),yield this.router.navigate(["/vault"]))})}get showSuccessUI(){return[_D.Success,_D.AlreadyInstalled,_D.ManualOpen].includes(this.state)}addItLater(){this.dialogRef=this.dialogService.open(MD,{data:{onDismiss:this.dismissExtensionPage.bind(this)},positionStrategy:new T.u})}openExtension(){return ZD(this,void 0,void 0,function*(){yield this.webBrowserExtensionInteractionService.openExtension().catch(()=>{this.state=_D.ManualOpen})})}dismissExtensionPage(){return ZD(this,void 0,void 0,function*(){const e=yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6));this.stateProvider.getUser(e,DD).update(()=>!0)})}}eP.ɵfac=function(e){return new(e||eP)},eP.ɵcmp=w.VBU({type:eP,selectors:[["vault-setup-extension"]],decls:3,vars:3,consts:[["aria-hidden","true",1,"bwi","bwi-spinner","bwi-spin","bwi-3x","tw-text-muted",3,"appA11yTitle"],[1,"tw-text-center","tw-mt-4"],[1,"tw-flex","tw-flex-col","tw-items-center"],[1,"tw-text-xl","tw-font-medium","tw-text-main","sm:tw-text-2xl"],[1,"tw-text-sm","tw-text-main","tw-mb-6","tw-font-normal","sm:tw-text-base"],[1,"tw-flex","tw-flex-col","tw-gap-4","tw-items-center"],["bitButton","","buttonType","primary","target","_blank","rel","noopener noreferrer",3,"href"],["type","button","bitLink","",3,"click"],[1,"tw-size-[90px]"],[3,"content"],["bitTypography","h2",1,"tw-mb-6","tw-mt-4","tw-text-center"],[1,"tw-flex","tw-flex-col","tw-rounded-2xl","tw-bg-background","tw-border","tw-border-solid","tw-border-secondary-300","tw-p-8","tw-max-w-md","md:tw-w-[28rem]","tw-text-center"],["type","button","bitButton","","buttonType","primary",1,"tw-mb-2",3,"click"],["bitButton","","buttonType","secondary","routerLink","/vault"],["aria-live","polite",1,"tw-text-center","tw-mt-4"],[1,"tw-mt-4","tw-max-w-96","tw-text-center"],["target","_blank","bitLink","","href","https://bitwarden.com/help/learning-center/"],["target","_blank","bitLink","","href","https://bitwarden.com/help"]],template:function(e,t){1&e&&(w.nVh(0,HD,2,3,"i",0),w.nVh(1,JD,15,13,"section",1),w.nVh(2,$D,28,26,"section",2)),2&e&&(w.vxM(t.state===t.SetupExtensionState.Loading?0:-1),w.R7$(),w.vxM(t.state===t.SetupExtensionState.NeedsExtension?1:-1),w.R7$(),w.vxM(t.showSuccessUI?2:-1))},dependencies:[Nh.p,Fb.C,fh.Q,Gh.V,jh.g,Tm.Z,lf.k,Hp.iI,Hp.Wk,KD,yD,Hh.$],encapsulation:2});var tP=i(20798),iP=i(79303),nP=i(2195);class rP{}rP.ɵfac=function(e){return new(e||rP)},rP.ɵmod=w.$C({type:rP}),rP.ɵinj=B.G2t({imports:[Tv.G]});var sP=i(10840),oP=i(34530);const aP=te.JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0.22 7 95.71 88">
|
|
<path class="tw-fill-illustration-bg-primary" d="M.232 9.21A2 2 0 0 1 2.222 7h67.556a2 2 0 0 1 1.99 2.21l-7.014 66.627A8 8 0 0 1 56.798 83H15.202a8 8 0 0 1-7.956-7.162L.232 9.209Z"/>
|
|
<path class="tw-fill-illustration-bg-secondary" d="M60.283 80.99C63.59 80.76 61.313 77 58 77H14c-3.314 0-5.59 3.759-2.284 3.99.094.007.189.01.284.01h48c.095 0 .19-.003.283-.01Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M69.778 9H2.221l7.014 66.628A6 6 0 0 0 15.202 81h41.596a6 6 0 0 0 5.967-5.372L69.778 9ZM2.221 7A2 2 0 0 0 .232 9.21l7.014 66.627A8 8 0 0 0 15.202 83h41.596a8 8 0 0 0 7.956-7.162l7.013-66.629A2 2 0 0 0 69.778 7H2.221Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M36 25a1 1 0 0 1 1 1v38a1 1 0 1 1-2 0V26a1 1 0 0 1 1-1ZM27.079 64.997a1 1 0 0 1-1.076-.918l-3-38a1 1 0 1 1 1.994-.158l3 38a1 1 0 0 1-.918 1.076ZM44.921 64.997a1 1 0 0 0 1.076-.918l3-38a1 1 0 1 0-1.994-.158l-3 38a1 1 0 0 0 .918 1.076ZM80.91 29.443a1 1 0 0 0 .688 1.236l5.522 1.573a3 3 0 0 1 2.09 2.168l4.63 18.795a3 3 0 0 1-.844 2.891l-4.159 3.958a1 1 0 1 0 1.379 1.449l4.158-3.958a5 5 0 0 0 1.408-4.818l-4.63-18.795a5 5 0 0 0-3.484-3.613l-5.522-1.573a1 1 0 0 0-1.235.687Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-primary" d="M73.248 10.117c-1.526-.79-3.272.586-2.861 2.254l17.026 69.12c.411 1.668 2.596 2.075 3.581.667l1.486-2.124a8 8 0 0 0 1.213-6.5L79.643 16.5a8 8 0 0 0-4.093-5.192l-2.302-1.191Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M89.355 81.012 72.33 11.893l2.303 1.191a6 6 0 0 1 3.07 3.894L91.75 74.013a6 6 0 0 1-.91 4.875l-1.486 2.124Zm-18.968-68.64c-.411-1.669 1.335-3.045 2.86-2.255l2.303 1.19a8 8 0 0 1 4.093 5.193l14.05 57.035a8 8 0 0 1-1.213 6.5l-1.486 2.123c-.985 1.408-3.17 1-3.58-.668L70.386 12.372Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-tertiary" d="M48 83c0 6.627-5.373 12-12 12s-12-5.373-12-12 5.373-12 12-12 12 5.373 12 12Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M36 93c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10Zm0 2c6.627 0 12-5.373 12-12s-5.373-12-12-12-12 5.373-12 12 5.373 12 12 12Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M41.707 79.293a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414 0l-3-3a1 1 0 0 1 1.414-1.414L34 85.586l6.293-6.293a1 1 0 0 1 1.414 0Z" clip-rule="evenodd"/>
|
|
</svg>
|
|
`,lP=te.JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="5.29 4.98 86.89 90.19">
|
|
<g clip-path="url(#clip0_2211_2391)">
|
|
<path class="tw-stroke-illustration-outline tw-fill-illustration-bg-primary" d="M45.7322 7.73645C46.8425 5.06767 50.6228 5.06767 51.7332 7.73645L60.8269 29.5929C61.511 31.2373 63.0575 32.3607 64.8328 32.5031L88.4343 34.3947C91.316 34.6257 92.4843 38.2221 90.2888 40.1027L72.3083 55.5001C70.9554 56.6589 70.3647 58.4773 70.7781 60.2101L76.2712 83.2335C76.9419 86.0452 73.8838 88.2672 71.4167 86.7609L51.2078 74.422C49.688 73.4941 47.7773 73.4941 46.2576 74.422L26.0486 86.7609C23.5815 88.2672 20.5234 86.0452 21.1941 83.2335L26.6873 60.2101C27.1007 58.4773 26.51 56.6589 25.157 55.5001L7.17651 40.1027C4.98107 38.2221 6.14942 34.6258 9.03101 34.3947L32.6326 32.5031C34.4079 32.3607 35.9543 31.2373 36.6384 29.5929L45.7322 7.73645Z" stroke-width="1.5"/>
|
|
<path class="tw-stroke-illustration-outline tw-fill-illustration-bg-tertiary" d="M86.5363 75.5456L67.0229 86.8083L64.3035 82.0996C63.2768 82.3932 60.0282 82.2577 55.7085 78.0915C51.1997 73.7429 53.1 69.4322 54.8897 67.3528L51.1991 60.9624C51.1991 60.9624 49.0085 57.1701 47.5085 54.572C46.5871 52.9761 46.8445 50.4707 48.594 49.461C50.3435 48.4512 52.9064 49.1601 53.9008 50.8825C56.3862 55.1873 60.6993 62.6543 60.6993 62.6543L60.3136 61.9865C59.0344 59.7715 57.8733 56.6618 60.0887 55.3831C60.1803 55.3302 60.2715 55.2816 60.3624 55.2371C62.6556 54.1121 64.7529 56.4687 66.0303 58.6805C65.81 57.9107 65.7395 56.1576 67.2199 55.3032C69.5661 53.949 71.7744 56.9755 73.1292 59.3214L72.6308 58.4584C72.1365 57.4731 71.6772 55.4212 73.4319 54.4084C75.2982 53.3313 76.7992 54.9314 77.3409 55.7398C78.3682 57.3892 80.6222 61.1108 81.42 62.8029C82.2178 64.495 82.7029 67.7429 82.8457 69.1553L86.5363 75.5456Z"/>
|
|
<path class="tw-stroke-illustration-outline" d="M66.0303 58.6805C65.81 57.9107 65.7395 56.1576 67.2199 55.3032V55.3032C69.5661 53.949 71.7744 56.9755 73.1292 59.3214L73.9905 60.8128L72.6308 58.4584C72.1365 57.4731 71.6772 55.4212 73.4319 54.4084C75.2982 53.3313 76.7992 54.9314 77.3409 55.7398C78.3682 57.3892 80.6222 61.1108 81.42 62.8029C82.2178 64.495 82.7029 67.7429 82.8457 69.1553L86.5363 75.5456L67.0229 86.8083L64.3035 82.0996C63.2768 82.3932 60.0282 82.2577 55.7085 78.0915C51.1997 73.7429 53.1 69.4322 54.8897 67.3528M66.0303 58.6805L67.9727 62.0439M66.0303 58.6805V58.6805C64.7529 56.4687 62.6556 54.1121 60.3624 55.2371C60.2715 55.2816 60.1803 55.3302 60.0887 55.3831V55.3831C57.8733 56.6618 59.0344 59.7715 60.3136 61.9865L60.6993 62.6543C60.6993 62.6543 56.3862 55.1873 53.9008 50.8825C52.9064 49.1601 50.3435 48.4512 48.594 49.461C46.8445 50.4707 46.5871 52.9761 47.5085 54.572C49.0085 57.1701 51.1991 60.9624 51.1991 60.9624L54.8897 67.3528M57.6091 72.0616L54.8897 67.3528" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
<path class="tw-stroke-illustration-outline tw-fill-illustration-bg-secondary" d="M70.9905 93.6786L67.5232 87.6748C67.247 87.1965 67.4108 86.585 67.8892 86.309L85.6704 76.046C86.1487 75.7699 86.7604 75.9338 87.0366 76.4121L90.5039 82.4159C90.7802 82.8942 90.6163 83.5057 90.138 83.7818L72.3567 94.0447C71.8784 94.3208 71.2667 94.1569 70.9905 93.6786Z" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
<g clip-path="url(#clip1_2211_2391)">
|
|
<path class="tw-stroke-illustration-tertiary" d="M41.5571 37.1704L45.0496 43.2177" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round"/>
|
|
<path class="tw-stroke-illustration-tertiary" d="M54.9774 35.4178L53.187 42.1557" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round"/>
|
|
<path class="tw-stroke-illustration-tertiary" d="M65.7288 43.6858L59.6986 47.1663" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round"/>
|
|
<path class="tw-stroke-illustration-tertiary" d="M35.1155 61.3549L41.1457 57.8744" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round"/>
|
|
<path class="tw-stroke-illustration-tertiary" d="M33.329 47.9126L40.0662 49.7286" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round"/>
|
|
</g>
|
|
</g>
|
|
<defs>
|
|
<clipPath id="clip0_2211_2391">
|
|
<rect width="96" height="96" class="tw-fill-bg-tertiary" transform="translate(0.5 0.400024)"/>
|
|
</clipPath>
|
|
<clipPath id="clip1_2211_2391">
|
|
<rect width="37.6674" height="20.0537" class="tw-fill-bg-tertiary" transform="matrix(0.86609 -0.499888 0.500112 0.86596 25.2179 45.5771)"/>
|
|
</clipPath>
|
|
</defs>
|
|
</svg>`,cP=te.JW`
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 18.75 150 112.5">
|
|
<path class="tw-fill-illustration-bg-secondary" d="M0 28.125a9.375 9.375 0 0 1 9.375-9.375h50a9.375 9.375 0 0 1 9.375 9.375v31.25a9.375 9.375 0 0 1-9.375 9.375h-50A9.375 9.375 0 0 1 0 59.375v-31.25Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M59.375 21.875h-50a6.25 6.25 0 0 0-6.25 6.25v31.25a6.25 6.25 0 0 0 6.25 6.25h50a6.25 6.25 0 0 0 6.25-6.25v-31.25a6.25 6.25 0 0 0-6.25-6.25Zm-50-3.125A9.375 9.375 0 0 0 0 28.125v31.25a9.375 9.375 0 0 0 9.375 9.375h50a9.375 9.375 0 0 0 9.375-9.375v-31.25a9.375 9.375 0 0 0-9.375-9.375h-50Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-primary" d="M0 90.625a9.375 9.375 0 0 1 9.375-9.375h50a9.375 9.375 0 0 1 9.375 9.375v31.25a9.375 9.375 0 0 1-9.375 9.375h-50A9.375 9.375 0 0 1 0 121.875v-31.25Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M59.375 84.375h-50a6.25 6.25 0 0 0-6.25 6.25v31.25a6.25 6.25 0 0 0 6.25 6.25h50a6.25 6.25 0 0 0 6.25-6.25v-31.25a6.25 6.25 0 0 0-6.25-6.25Zm-50-3.125A9.375 9.375 0 0 0 0 90.625v31.25a9.375 9.375 0 0 0 9.375 9.375h50a9.375 9.375 0 0 0 9.375-9.375v-31.25a9.375 9.375 0 0 0-9.375-9.375h-50Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-primary" d="M81.25 28.125a9.375 9.375 0 0 1 9.375-9.375h50A9.375 9.375 0 0 1 150 28.125v31.25a9.375 9.375 0 0 1-9.375 9.375h-50a9.375 9.375 0 0 1-9.375-9.375v-31.25Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M140.625 21.875h-50a6.25 6.25 0 0 0-6.25 6.25v31.25a6.25 6.25 0 0 0 6.25 6.25h50a6.25 6.25 0 0 0 6.25-6.25v-31.25a6.25 6.25 0 0 0-6.25-6.25Zm-50-3.125a9.375 9.375 0 0 0-9.375 9.375v31.25a9.375 9.375 0 0 0 9.375 9.375h50A9.375 9.375 0 0 0 150 59.375v-31.25a9.375 9.375 0 0 0-9.375-9.375h-50Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-secondary" d="M81.25 90.625a9.375 9.375 0 0 1 9.375-9.375h50A9.375 9.375 0 0 1 150 90.625v31.25a9.375 9.375 0 0 1-9.375 9.375h-50a9.375 9.375 0 0 1-9.375-9.375v-31.25Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M140.625 84.375h-50a6.25 6.25 0 0 0-6.25 6.25v31.25a6.25 6.25 0 0 0 6.25 6.25h50a6.25 6.25 0 0 0 6.25-6.25v-31.25a6.25 6.25 0 0 0-6.25-6.25Zm-50-3.125a9.375 9.375 0 0 0-9.375 9.375v31.25a9.375 9.375 0 0 0 9.375 9.375h50a9.375 9.375 0 0 0 9.375-9.375v-31.25a9.375 9.375 0 0 0-9.375-9.375h-50Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-secondary" d="M84.375 31.25h62.5v6.25h-62.5v-6.25ZM90.625 54.688c0-.863.7-1.563 1.563-1.563h9.374a1.563 1.563 0 1 1 0 3.125h-9.374c-.863 0-1.563-.7-1.563-1.563Z"/>
|
|
<path class="tw-fill-illustration-outline" d="M92.188 95.313c0-.863.7-1.563 1.562-1.563h43.75a1.562 1.562 0 0 1 0 3.125H93.75c-.863 0-1.563-.7-1.563-1.563ZM92.188 106.25c0-.863.7-1.562 1.562-1.562h43.75a1.562 1.562 0 1 1 0 3.124H93.75a1.562 1.562 0 0 1-1.563-1.562ZM92.188 117.188c0-.863.7-1.563 1.562-1.563h20.312a1.563 1.563 0 0 1 0 3.125H93.75c-.863 0-1.563-.7-1.563-1.562ZM39.063 95.313c0-.863.7-1.563 1.562-1.563h18.75a1.563 1.563 0 0 1 0 3.125h-18.75c-.863 0-1.563-.7-1.563-1.563ZM39.063 101.562c0-.862.7-1.562 1.562-1.562h7.813a1.563 1.563 0 0 1 0 3.125h-7.813c-.863 0-1.563-.7-1.563-1.563Z"/>
|
|
<path class="tw-fill-illustration-bg-secondary" d="M107.812 54.688c0-.863.7-1.563 1.563-1.563h14.063a1.563 1.563 0 0 1 0 3.125h-14.063c-.863 0-1.563-.7-1.563-1.563Z"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M32.813 97.656a8.594 8.594 0 1 1-17.189 0 8.594 8.594 0 0 1 17.188 0Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M24.219 103.125a5.468 5.468 0 1 0 0-10.937 5.468 5.468 0 0 0 0 10.937Zm0 3.125a8.594 8.594 0 1 0 0-17.188 8.594 8.594 0 0 0 0 17.188Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-bg-tertiary" d="M40.82 115.663c.903 2.158 1.367 3.877 1.367 6.212 0 .863-.7 1.563-1.562 1.563H7.812c-.862 0-1.562-.7-1.562-1.563 0-2.335.465-4.054 1.368-6.212a17.77 17.77 0 0 1 3.895-5.768 17.974 17.974 0 0 1 5.83-3.854 18.125 18.125 0 0 1 6.876-1.353c2.36 0 4.696.459 6.876 1.353 2.18.893 4.161 2.203 5.83 3.854a17.77 17.77 0 0 1 3.895 5.768Z"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M38.964 120.312c-.15-1.105-.478-2.131-1.027-3.442a14.634 14.634 0 0 0-3.21-4.753 14.865 14.865 0 0 0-4.817-3.185 15.012 15.012 0 0 0-11.382 0 14.865 14.865 0 0 0-4.817 3.185 14.634 14.634 0 0 0-3.21 4.753c-.55 1.311-.877 2.337-1.027 3.442h29.49Zm3.224 1.563c0-2.335-.465-4.054-1.368-6.212a17.77 17.77 0 0 0-3.895-5.768 17.974 17.974 0 0 0-5.83-3.854 18.125 18.125 0 0 0-6.876-1.353c-2.36 0-4.697.459-6.877 1.353a17.974 17.974 0 0 0-5.83 3.854 17.77 17.77 0 0 0-3.894 5.768c-.903 2.158-1.368 3.877-1.368 6.212 0 .863.7 1.563 1.563 1.563h32.812c.863 0 1.563-.7 1.563-1.563Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-tertiary" fill-rule="evenodd" d="M21.875 59.375c5.784 0 10.833-3.142 13.535-7.813h2.358c.829 0 1.624-.329 2.21-.915l2.21-2.21 2.93 2.345c.57.456 1.381.456 1.952 0L50 48.438l2.21 2.21c.586.585 1.38.914 2.21.914h1.89c.95 0 1.848-.431 2.44-1.172l4.532-5.664a1.562 1.562 0 0 0 0-1.952L58.75 37.11a3.125 3.125 0 0 0-2.44-1.172H35.41c-2.702-4.67-7.751-7.813-13.535-7.813-8.63 0-15.625 6.996-15.625 15.625 0 8.63 6.996 15.625 15.625 15.625Zm-3.125-12.5a3.125 3.125 0 1 0 0-6.25 3.125 3.125 0 0 0 0 6.25Z" clip-rule="evenodd"/>
|
|
<path class="tw-fill-illustration-outline" fill-rule="evenodd" d="M33.607 48.438h4.161l4.188-4.188 4.138 3.31 4.138-3.31 4.187 4.188h1.892l3.75-4.688-3.75-4.688H33.606l-.902-1.56a12.494 12.494 0 0 0-10.83-6.252c-6.904 0-12.5 5.596-12.5 12.5s5.596 12.5 12.5 12.5c4.623 0 8.664-2.508 10.83-6.252l.902-1.56Zm27.234-5.664-.001.002.001-.002ZM25 43.75a6.25 6.25 0 1 1-12.5 0 6.25 6.25 0 0 1 12.5 0Zm10.41 7.813c-2.702 4.67-7.751 7.812-13.535 7.812-8.63 0-15.625-6.996-15.625-15.625 0-8.63 6.996-15.625 15.625-15.625 5.784 0 10.833 3.142 13.535 7.813h20.9c.95 0 1.848.431 2.44 1.172l4.532 5.664c.456.57.456 1.381 0 1.952L58.75 50.39a3.125 3.125 0 0 1-2.44 1.172h-1.892c-.828 0-1.623-.329-2.21-.915L50 48.437l-2.93 2.345a1.562 1.562 0 0 1-1.952 0l-2.93-2.344-2.21 2.21a3.125 3.125 0 0 1-2.21.914H35.41ZM21.875 43.75a3.125 3.125 0 1 1-6.25 0 3.125 3.125 0 0 1 6.25 0Z" clip-rule="evenodd"/>
|
|
</svg>
|
|
`;var dP=i(91461),uP=i(36501),hP=i(23567),AP=i(27760),pP=i(9459),gP=i(85071),vP=i(85523),mP=i(93817),fP=i(406),yP=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const bP=new b.Ok(b.Q5,"premiumModalDismissed",{deserializer:e=>e,clearOn:[]});class CP{constructor(e,t,i,n,r,s,o,a,l){this.accountService=e,this.syncService=t,this.dialogService=i,this.organizationService=n,this.platformUtilsService=r,this.stateProvider=s,this.logService=o,this.premiumUpsellService=a,this.configService=l,this.unifiedUpgradeDialogRef=null,this.shouldShowPrompt$=this.accountService.activeAccount$.pipe((0,jt.n)(e=>this.platformUtilsService.isSelfHost()?(0,ln.of)(!1):e?(0,xt.z)([this.hasDismissedModal$(e.id),this.hasOrganizations(e.id),(0,ln.of)(this.premiumUpsellService.showUpsell())]).pipe((0,p.T)(([e,t,i])=>!e&&!t&&i)):(0,ln.of)(!1)),(0,_i.s)(1))}displayUpgradePromptConditionally(){return yP(this,void 0,void 0,function*(){const e=yield(0,u._)(this.configService.serverSettings$);if(null==e?void 0:e.suppressOnboardingInterstitials)return null;return(yield(0,u._)(this.shouldShowPrompt$))?this.launchUpgradeDialog():null})}launchUpgradeDialog(){return yP(this,void 0,void 0,function*(){const e=yield(0,u._)(this.accountService.activeAccount$);if(!e)return null;this.unifiedUpgradeDialogRef=kg.gY.open(this.dialogService,{data:{account:e}});const t=yield(0,u._)(this.unifiedUpgradeDialogRef.closed);if(this.unifiedUpgradeDialogRef=null,(null==t?void 0:t.status)===kg.PD.Closed)try{yield this.stateProvider.setUserState(bP,!0,e.id)}catch(i){this.logService.error("Failed to save premium modal dismissal state:",i)}return t||null})}hasOrganizations(e){return yP(this,void 0,void 0,function*(){yield this.syncService.fullSync(!1),yield(0,u._)(this.syncService.lastSync$(e).pipe((0,h.p)(e=>null!==e),(0,_i.s)(1),(0,A.w)(3e4)));return(yield(0,u._)(this.organizationService.memberOrganizations$(e))).length>0})}hasDismissedModal$(e){return this.stateProvider.getUserState$(bP,e).pipe((0,p.T)(e=>null!=e&&e))}}CP.ɵfac=function(e){return new(e||CP)(B.KVO(N.D),B.KVO(zA.H),B.KVO(T.o),B.KVO(v.PV),B.KVO(G.y),B.KVO(b.v2),B.KVO(se.K),B.KVO(fP.aX),B.KVO(O.w))},CP.ɵprov=B.jDH({token:CP,factory:CP.ɵfac,providedIn:"root"});const IP=te.JW`<svg
|
|
width="684"
|
|
height="291"
|
|
viewBox="0 0 684 291"
|
|
fill="none"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
>
|
|
<rect width="684" height="291" fill="#175DDC" />
|
|
<g clip-path="url(#clip0_4955_16369)">
|
|
<path
|
|
d="M85 28C85 23.5817 88.5817 20 93 20H591C595.418 20 599 23.5817 599 28V291H85V28Z"
|
|
fill="white"
|
|
/>
|
|
<path
|
|
d="M85 28C85 23.5817 88.5817 20 93 20H591C595.418 20 599 23.5817 599 28V36H85V28Z"
|
|
fill="#D8E2EB"
|
|
fill-opacity="0.75"
|
|
/>
|
|
<path d="M85 36H599V52H85V36Z" fill="#F3F6F9" />
|
|
<circle cx="95" cy="28" r="3" fill="#FF6550" />
|
|
<circle cx="104" cy="28" r="3" fill="#FDC700" />
|
|
<circle cx="113" cy="28" r="3" fill="#7BF1A8" />
|
|
<rect x="98" y="40" width="395" height="8" rx="4" fill="#D8E2EB" />
|
|
<g filter="url(#filter0_d_4955_16369)">
|
|
<path
|
|
d="M499 42.25C499 41.0074 500.007 40 501.25 40H505C506.243 40 507.25 41.0074 507.25 42.25V46C507.25 47.2426 506.243 48.25 505 48.25H501.25C500.007 48.25 499 47.2426 499 46V42.25Z"
|
|
fill="#175DDC"
|
|
/>
|
|
<g clip-path="url(#clip1_4955_16369)">
|
|
<g clip-path="url(#clip2_4955_16369)">
|
|
<path
|
|
d="M505.451 41.2834C505.403 41.2354 505.347 41.2107 505.283 41.2107H500.967C500.902 41.2107 500.847 41.2354 500.799 41.2834C500.752 41.3315 500.728 41.3873 500.728 41.4536V44.3678C500.728 44.5847 500.77 44.8016 500.853 45.0146C500.937 45.2289 501.04 45.4185 501.165 45.5834C501.288 45.7497 501.435 45.9107 501.607 46.0665C501.778 46.2237 501.937 46.3536 502.081 46.4574C502.226 46.5613 502.378 46.6587 502.535 46.751C502.693 46.8432 502.804 46.9055 502.871 46.9393C502.938 46.9717 502.99 46.9977 503.03 47.0146C503.06 47.0302 503.093 47.038 503.128 47.038C503.162 47.038 503.195 47.0302 503.225 47.0146C503.265 46.9964 503.319 46.9717 503.384 46.9393C503.451 46.9068 503.562 46.8432 503.72 46.751C503.878 46.6587 504.029 46.56 504.174 46.4574C504.319 46.3536 504.476 46.2237 504.648 46.0665C504.819 45.9094 504.966 45.7484 505.09 45.5834C505.213 45.4172 505.317 45.2276 505.401 45.0146C505.484 44.8003 505.526 44.5847 505.526 44.3678V41.4536C505.522 41.3873 505.498 41.3315 505.451 41.2834ZM504.894 44.3951C504.894 45.4497 503.125 46.3587 503.125 46.3587V41.8341H504.894C504.894 41.8341 504.894 43.3406 504.894 44.3951Z"
|
|
fill="white"
|
|
/>
|
|
</g>
|
|
</g>
|
|
</g>
|
|
<g filter="url(#filter1_d_4955_16369)">
|
|
<path
|
|
d="M511 42.25C511 41.0074 512.007 40 513.25 40H517C518.243 40 519.25 41.0074 519.25 42.25V46C519.25 47.2426 518.243 48.25 517 48.25H513.25C512.007 48.25 511 47.2426 511 46V42.25Z"
|
|
fill="#DBE5F6"
|
|
/>
|
|
</g>
|
|
<g filter="url(#filter2_d_4955_16369)">
|
|
<path
|
|
d="M522 42.25C522 41.0074 523.007 40 524.25 40H528C529.243 40 530.25 41.0074 530.25 42.25V46C530.25 47.2426 529.243 48.25 528 48.25H524.25C523.007 48.25 522 47.2426 522 46V42.25Z"
|
|
fill="#DBE5F6"
|
|
/>
|
|
</g>
|
|
<mask
|
|
id="mask0_4955_16369"
|
|
style="mask-type: luminance"
|
|
maskUnits="userSpaceOnUse"
|
|
x="77"
|
|
y="-1"
|
|
width="523"
|
|
height="327"
|
|
>
|
|
<path
|
|
d="M586.925 -1H90.075C82.8539 -1 77 4.85388 77 12.075V312.8C77 320.021 82.8539 325.875 90.075 325.875H586.925C594.146 325.875 600 320.021 600 312.8V12.075C600 4.85388 594.146 -1 586.925 -1Z"
|
|
fill="white"
|
|
/>
|
|
</mask>
|
|
<g mask="url(#mask0_4955_16369)">
|
|
<g opacity="0.68">
|
|
<path
|
|
opacity="0.1"
|
|
d="M586.925 57.8375H90.0752V110.138H586.925V57.8375Z"
|
|
fill="#175DDC"
|
|
/>
|
|
<path
|
|
opacity="0.4"
|
|
d="M201.213 77.4501H116.225C112.614 77.4501 109.688 80.377 109.688 83.9876C109.688 87.5981 112.614 90.5251 116.225 90.5251H201.213C204.823 90.5251 207.75 87.5981 207.75 83.9876C207.75 80.377 204.823 77.4501 201.213 77.4501Z"
|
|
fill="#175DDC"
|
|
/>
|
|
<path
|
|
opacity="0.3"
|
|
d="M292.738 77.4501H227.363C223.752 77.4501 220.825 80.377 220.825 83.9876C220.825 87.5981 223.752 90.5251 227.363 90.5251H292.738C296.348 90.5251 299.275 87.5981 299.275 83.9876C299.275 80.377 296.348 77.4501 292.738 77.4501Z"
|
|
fill="#175DDC"
|
|
/>
|
|
<path
|
|
opacity="0.3"
|
|
d="M397.338 77.4501H318.888C315.278 77.4501 312.351 80.377 312.351 83.9876C312.351 87.5981 315.278 90.5251 318.888 90.5251H397.338C400.949 90.5251 403.876 87.5981 403.876 83.9876C403.876 80.377 400.949 77.4501 397.338 77.4501Z"
|
|
fill="#175DDC"
|
|
/>
|
|
<path
|
|
opacity="0.15"
|
|
d="M286.2 136.287H116.225C109.004 136.287 103.15 142.141 103.15 149.362V253.962C103.15 261.184 109.004 267.037 116.225 267.037H286.2C293.422 267.037 299.275 261.184 299.275 253.962V149.362C299.275 142.141 293.422 136.287 286.2 136.287Z"
|
|
fill="#3B82F6"
|
|
/>
|
|
<path
|
|
opacity="0.3"
|
|
d="M181.6 155.9H129.3C125.69 155.9 122.763 158.827 122.763 162.438C122.763 166.048 125.69 168.975 129.3 168.975H181.6C185.211 168.975 188.138 166.048 188.138 162.438C188.138 158.827 185.211 155.9 181.6 155.9Z"
|
|
fill="#175DDC"
|
|
/>
|
|
<path
|
|
opacity="0.3"
|
|
d="M274.76 182.05H127.666C124.958 182.05 122.763 184.245 122.763 186.953C122.763 189.661 124.958 191.856 127.666 191.856H274.76C277.467 191.856 279.663 189.661 279.663 186.953C279.663 184.245 277.467 182.05 274.76 182.05Z"
|
|
fill="#6B7280"
|
|
/>
|
|
<path
|
|
opacity="0.25"
|
|
d="M261.685 201.663H127.666C124.958 201.663 122.763 203.858 122.763 206.566C122.763 209.274 124.958 211.469 127.666 211.469H261.685C264.392 211.469 266.588 209.274 266.588 206.566C266.588 203.858 264.392 201.663 261.685 201.663Z"
|
|
fill="#6B7280"
|
|
/>
|
|
<path
|
|
opacity="0.25"
|
|
d="M235.535 221.275H127.666C124.958 221.275 122.763 223.47 122.763 226.178C122.763 228.886 124.958 231.081 127.666 231.081H235.535C238.243 231.081 240.438 228.886 240.438 226.178C240.438 223.47 238.243 221.275 235.535 221.275Z"
|
|
fill="#6B7280"
|
|
/>
|
|
<path
|
|
d="M560.775 136.287H338.5C331.279 136.287 325.425 142.141 325.425 149.362V293.187C325.425 300.409 331.279 306.262 338.5 306.262H560.775C567.996 306.262 573.85 300.409 573.85 293.187V149.362C573.85 142.141 567.996 136.287 560.775 136.287Z"
|
|
fill="#F3F4F6"
|
|
/>
|
|
<path
|
|
opacity="0.25"
|
|
d="M547.701 155.9H351.576C347.965 155.9 345.038 158.827 345.038 162.438C345.038 166.048 347.965 168.975 351.576 168.975H547.701C551.311 168.975 554.238 166.048 554.238 162.438C554.238 158.827 551.311 155.9 547.701 155.9Z"
|
|
fill="#175DDC"
|
|
/>
|
|
<path
|
|
opacity="0.2"
|
|
d="M521.551 188.588H351.576C347.965 188.588 345.038 191.514 345.038 195.125C345.038 198.736 347.965 201.663 351.576 201.663H521.551C525.161 201.663 528.088 198.736 528.088 195.125C528.088 191.514 525.161 188.588 521.551 188.588Z"
|
|
fill="#6B7280"
|
|
/>
|
|
<path
|
|
opacity="0.2"
|
|
d="M534.626 221.275H351.576C347.965 221.275 345.038 224.202 345.038 227.813C345.038 231.423 347.965 234.35 351.576 234.35H534.626C538.236 234.35 541.163 231.423 541.163 227.813C541.163 224.202 538.236 221.275 534.626 221.275Z"
|
|
fill="#6B7280"
|
|
/>
|
|
<path
|
|
opacity="0.2"
|
|
d="M508.476 253.963H351.576C347.965 253.963 345.038 256.889 345.038 260.5C345.038 264.111 347.965 267.038 351.576 267.038H508.476C512.086 267.038 515.013 264.111 515.013 260.5C515.013 256.889 512.086 253.963 508.476 253.963Z"
|
|
fill="#6B7280"
|
|
/>
|
|
</g>
|
|
</g>
|
|
<g filter="url(#filter3_d_4955_16369)">
|
|
<g clip-path="url(#clip3_4955_16369)">
|
|
<rect width="168" height="230" transform="translate(339 52)" fill="#F3F6F9" />
|
|
<mask id="path-27-inside-1_4955_16369" fill="white">
|
|
<path d="M339 52H506.833V76.7333H339V52Z" />
|
|
</mask>
|
|
<path d="M339 52H506.833V76.7333H339V52Z" fill="white" />
|
|
<path
|
|
d="M506.833 76.7333V76.2917H339V76.7333V77.175H506.833V76.7333Z"
|
|
fill="#D5DDE8"
|
|
mask="url(#path-27-inside-1_4955_16369)"
|
|
/>
|
|
<path
|
|
d="M347.207 61.0849L348.816 65.7939H348.881L350.49 61.0849H351.433L349.353 66.8667H348.345L346.264 61.0849H347.207ZM353.035 66.9627C352.761 66.9627 352.512 66.9119 352.29 66.8102C352.068 66.7067 351.892 66.5571 351.762 66.3614C351.634 66.1656 351.57 65.9256 351.57 65.6415C351.57 65.3968 351.617 65.1954 351.711 65.0373C351.805 64.8792 351.932 64.754 352.092 64.6618C352.252 64.5696 352.431 64.5 352.629 64.4529C352.826 64.4059 353.028 64.3701 353.233 64.3456C353.493 64.3155 353.704 64.291 353.865 64.2722C354.027 64.2515 354.145 64.2186 354.218 64.1734C354.292 64.1282 354.328 64.0548 354.328 63.9532V63.9334C354.328 63.6869 354.259 63.4959 354.119 63.3603C353.982 63.2248 353.777 63.1571 353.504 63.1571C353.22 63.1571 352.996 63.2201 352.832 63.3462C352.67 63.4704 352.558 63.6088 352.496 63.7612L351.703 63.5805C351.797 63.3171 351.934 63.1044 352.115 62.9425C352.298 62.7788 352.507 62.6602 352.745 62.5868C352.982 62.5115 353.231 62.4739 353.493 62.4739C353.666 62.4739 353.849 62.4946 354.043 62.536C354.239 62.5755 354.422 62.6489 354.591 62.7562C354.762 62.8635 354.902 63.0169 355.012 63.2164C355.121 63.414 355.175 63.6709 355.175 63.9871V66.8667H354.351V66.2738H354.317C354.262 66.383 354.181 66.4903 354.071 66.5957C353.962 66.7011 353.822 66.7886 353.651 66.8582C353.48 66.9279 353.274 66.9627 353.035 66.9627ZM353.219 66.2851C353.452 66.2851 353.652 66.239 353.817 66.1468C353.985 66.0546 354.112 65.9341 354.198 65.7854C354.287 65.6349 354.331 65.4739 354.331 65.3027V64.7437C354.301 64.7738 354.243 64.802 354.156 64.8284C354.071 64.8528 353.975 64.8745 353.865 64.8933C353.756 64.9103 353.65 64.9263 353.546 64.9413C353.443 64.9545 353.356 64.9658 353.287 64.9752C353.123 64.9959 352.973 65.0307 352.838 65.0796C352.704 65.1286 352.597 65.1992 352.516 65.2914C352.437 65.3817 352.397 65.5022 352.397 65.6527C352.397 65.8617 352.474 66.0198 352.629 66.127C352.783 66.2324 352.98 66.2851 353.219 66.2851ZM359.047 65.0684V62.5303H359.894V66.8667H359.063V66.1157H359.018C358.919 66.3472 358.759 66.5402 358.538 66.6945C358.32 66.8469 358.048 66.9232 357.723 66.9232C357.444 66.9232 357.197 66.862 356.983 66.7397C356.77 66.6154 356.603 66.4319 356.48 66.1891C356.36 65.9464 356.3 65.6462 356.3 65.2886V62.5303H357.144V65.1869C357.144 65.4824 357.226 65.7177 357.389 65.8927C357.553 66.0677 357.766 66.1553 358.027 66.1553C358.185 66.1553 358.343 66.1157 358.499 66.0367C358.657 65.9576 358.788 65.8381 358.891 65.6782C358.997 65.5182 359.048 65.3149 359.047 65.0684ZM361.872 61.0849V66.8667H361.028V61.0849H361.872ZM365.032 62.5303V63.2079H362.663V62.5303H365.032ZM363.298 61.4914H364.142V65.5935C364.142 65.7572 364.167 65.8805 364.216 65.9633C364.265 66.0442 364.328 66.0997 364.405 66.1299C364.484 66.1581 364.57 66.1722 364.662 66.1722C364.73 66.1722 364.789 66.1675 364.84 66.1581C364.89 66.1487 364.93 66.1411 364.958 66.1355L365.111 66.8328C365.062 66.8516 364.992 66.8705 364.902 66.8893C364.811 66.91 364.699 66.9213 364.563 66.9232C364.341 66.9269 364.134 66.8874 363.942 66.8046C363.75 66.7218 363.595 66.5938 363.476 66.4206C363.358 66.2475 363.298 66.0301 363.298 65.7685V61.4914Z"
|
|
fill="#0F172B"
|
|
/>
|
|
<g filter="url(#filter4_d_4955_16369)">
|
|
<path
|
|
d="M432.116 62.1334C432.116 59.2063 434.489 56.8334 437.416 56.8334H459.133C462.06 56.8334 464.433 59.2063 464.433 62.1334V66.6C464.433 69.5272 462.06 71.9 459.133 71.9H437.416C434.489 71.9 432.116 69.5271 432.116 66.6V62.1334Z"
|
|
fill="#175DDC"
|
|
/>
|
|
<path
|
|
d="M440.507 66.6855C440.434 66.6855 440.373 66.6608 440.324 66.6114C440.274 66.562 440.25 66.5008 440.25 66.4278V64.6244H438.446C438.373 64.6244 438.312 64.5997 438.263 64.5503C438.213 64.5009 438.188 64.4397 438.188 64.3667C438.188 64.2937 438.213 64.2325 438.263 64.1832C438.312 64.1338 438.373 64.1091 438.446 64.1091H440.25V62.3056C440.25 62.2326 440.274 62.1714 440.324 62.122C440.373 62.0727 440.434 62.048 440.507 62.048C440.58 62.048 440.641 62.0727 440.691 62.122C440.74 62.1714 440.765 62.2326 440.765 62.3056V64.1091H442.568C442.641 64.1091 442.703 64.1338 442.752 64.1832C442.801 64.2325 442.826 64.2937 442.826 64.3667C442.826 64.4397 442.801 64.5009 442.752 64.5503C442.703 64.5997 442.641 64.6244 442.568 64.6244H440.765V66.4278C440.765 66.5008 440.74 66.562 440.691 66.6114C440.641 66.6608 440.58 66.6855 440.507 66.6855Z"
|
|
fill="white"
|
|
/>
|
|
<path
|
|
d="M450.667 61.5122V65.3667H450.133L448.174 62.5398H448.138V65.3667H447.556V61.5122H448.095L450.056 64.3428H450.091V61.5122H450.667ZM452.717 65.425C452.432 65.425 452.186 65.3642 451.981 65.2425C451.776 65.1195 451.618 64.947 451.506 64.7249C451.396 64.5016 451.341 64.2399 451.341 63.9401C451.341 63.6439 451.396 63.383 451.506 63.1571C451.618 62.9313 451.774 62.755 451.973 62.6282C452.174 62.5015 452.409 62.4381 452.677 62.4381C452.84 62.4381 452.998 62.4651 453.151 62.5191C453.304 62.573 453.442 62.6577 453.563 62.7732C453.685 62.8886 453.781 63.0385 453.851 63.223C453.922 63.4062 453.957 63.6289 453.957 63.8911V64.0906H451.659V63.669H453.405C453.405 63.521 453.375 63.3899 453.315 63.2757C453.255 63.1602 453.17 63.0693 453.061 63.0028C452.953 62.9363 452.826 62.903 452.681 62.903C452.523 62.903 452.385 62.9419 452.267 63.0197C452.15 63.0963 452.06 63.1966 451.996 63.3209C451.933 63.4438 451.902 63.5774 451.902 63.7217V64.0511C451.902 64.2443 451.935 64.4087 452.003 64.5442C452.072 64.6797 452.168 64.7832 452.291 64.8548C452.414 64.925 452.558 64.9602 452.722 64.9602C452.829 64.9602 452.926 64.9451 453.014 64.915C453.102 64.8836 453.178 64.8372 453.242 64.7757C453.306 64.7142 453.355 64.6383 453.388 64.548L453.921 64.644C453.878 64.8008 453.802 64.9382 453.691 65.0562C453.582 65.1728 453.445 65.2638 453.279 65.3291C453.115 65.393 452.927 65.425 452.717 65.425ZM455.203 65.3667L454.352 62.4758H454.934L455.5 64.5988H455.528L456.097 62.4758H456.678L457.243 64.5894H457.271L457.834 62.4758H458.416L457.567 65.3667H456.993L456.405 63.2794H456.362L455.775 65.3667H455.203Z"
|
|
fill="white"
|
|
/>
|
|
</g>
|
|
<path
|
|
d="M474.223 67.6792C474.021 67.6792 473.848 67.6071 473.704 67.463C473.559 67.3188 473.487 67.1455 473.487 66.9431V61.7903C473.487 61.5879 473.559 61.4146 473.704 61.2704C473.848 61.1263 474.021 61.0542 474.223 61.0542H476.064C476.168 61.0542 476.255 61.0895 476.326 61.16C476.396 61.2306 476.432 61.318 476.432 61.4223C476.432 61.5265 476.396 61.614 476.326 61.6845C476.255 61.755 476.168 61.7903 476.064 61.7903H474.223V66.9431H479.376V65.1028C479.376 64.9985 479.411 64.9111 479.482 64.8406C479.553 64.77 479.64 64.7348 479.744 64.7348C479.849 64.7348 479.936 64.77 480.006 64.8406C480.077 64.9111 480.112 64.9985 480.112 65.1028V66.9431C480.112 67.1455 480.04 67.3188 479.896 67.463C479.752 67.6071 479.579 67.6792 479.376 67.6792H474.223ZM478.272 62.8945H477.536C477.432 62.8945 477.344 62.8592 477.274 62.7887C477.203 62.7181 477.168 62.6307 477.168 62.5264C477.168 62.4221 477.203 62.3347 477.274 62.2642C477.344 62.1936 477.432 62.1584 477.536 62.1584H478.272V61.4223C478.272 61.318 478.307 61.2306 478.378 61.16C478.448 61.0895 478.536 61.0542 478.64 61.0542C478.744 61.0542 478.832 61.0895 478.902 61.16C478.973 61.2306 479.008 61.318 479.008 61.4223V62.1584H479.744C479.849 62.1584 479.936 62.1936 480.006 62.2642C480.077 62.3347 480.112 62.4221 480.112 62.5264C480.112 62.6307 480.077 62.7181 480.006 62.7887C479.936 62.8592 479.849 62.8945 479.744 62.8945H479.008V63.6306C479.008 63.7349 478.973 63.8223 478.902 63.8928C478.832 63.9634 478.744 63.9986 478.64 63.9986C478.536 63.9986 478.448 63.9634 478.378 63.8928C478.307 63.8223 478.272 63.7349 478.272 63.6306V62.8945Z"
|
|
fill="#0F172B"
|
|
/>
|
|
<rect x="489.166" y="59.0667" width="10.6" height="10.6" rx="5.3" fill="#007C95" />
|
|
<path
|
|
d="M491.26 65.3667L490.535 62.797H491.035L491.498 64.6854H491.522L492.017 62.797H492.472L492.968 64.6866H492.99L493.453 62.797H493.954L493.229 65.3667H492.77L492.255 63.5636H492.235L491.719 65.3667H491.26ZM494.818 65.3667L494.092 62.797H494.593L495.056 64.6854H495.08L495.574 62.797H496.03L496.525 64.6866H496.548L497.011 62.797H497.511L496.786 65.3667H496.327L495.813 63.5636H495.792L495.277 65.3667H494.818Z"
|
|
fill="white"
|
|
/>
|
|
<path
|
|
d="M346.94 131.35H346.22L347.838 126.853H348.622L350.241 131.35H349.52L348.249 127.67H348.214L346.94 131.35ZM347.061 129.589H349.397V130.16H347.061V129.589ZM352.974 129.951V127.977H353.633V131.35H352.987V130.766H352.952C352.874 130.946 352.75 131.096 352.579 131.216C352.409 131.335 352.197 131.394 351.944 131.394C351.727 131.394 351.536 131.346 351.369 131.251C351.203 131.155 351.073 131.012 350.978 130.823C350.884 130.634 350.837 130.401 350.837 130.123V127.977H351.494V130.043C351.494 130.273 351.558 130.456 351.685 130.592C351.812 130.729 351.978 130.797 352.181 130.797C352.304 130.797 352.426 130.766 352.548 130.704C352.671 130.643 352.773 130.55 352.853 130.426C352.935 130.301 352.975 130.143 352.974 129.951ZM356.089 127.977V128.504H354.247V127.977H356.089ZM354.741 127.169H355.397V130.36C355.397 130.487 355.416 130.583 355.454 130.647C355.493 130.71 355.542 130.753 355.602 130.777C355.663 130.799 355.73 130.81 355.801 130.81C355.854 130.81 355.9 130.806 355.94 130.799C355.979 130.792 356.01 130.786 356.032 130.781L356.151 131.324C356.112 131.338 356.058 131.353 355.988 131.368C355.918 131.384 355.83 131.392 355.725 131.394C355.552 131.397 355.391 131.366 355.241 131.302C355.092 131.237 354.971 131.138 354.879 131.003C354.787 130.868 354.741 130.699 354.741 130.496V127.169ZM358.2 131.418C357.884 131.418 357.608 131.346 357.372 131.201C357.136 131.056 356.953 130.853 356.823 130.592C356.693 130.332 356.628 130.027 356.628 129.679C356.628 129.329 356.693 129.023 356.823 128.761C356.953 128.499 357.136 128.296 357.372 128.151C357.608 128.006 357.884 127.933 358.2 127.933C358.516 127.933 358.792 128.006 359.028 128.151C359.263 128.296 359.446 128.499 359.577 128.761C359.707 129.023 359.772 129.329 359.772 129.679C359.772 130.027 359.707 130.332 359.577 130.592C359.446 130.853 359.263 131.056 359.028 131.201C358.792 131.346 358.516 131.418 358.2 131.418ZM358.202 130.867C358.407 130.867 358.577 130.813 358.711 130.704C358.846 130.596 358.946 130.452 359.01 130.272C359.076 130.092 359.109 129.893 359.109 129.677C359.109 129.462 359.076 129.264 359.01 129.084C358.946 128.902 358.846 128.757 358.711 128.647C358.577 128.537 358.407 128.482 358.202 128.482C357.996 128.482 357.824 128.537 357.688 128.647C357.553 128.757 357.453 128.902 357.387 129.084C357.323 129.264 357.291 129.462 357.291 129.677C357.291 129.893 357.323 130.092 357.387 130.272C357.453 130.452 357.553 130.596 357.688 130.704C357.824 130.813 357.996 130.867 358.202 130.867ZM362.11 127.977V128.504H360.204V127.977H362.11ZM360.727 131.35V127.586C360.727 127.376 360.773 127.201 360.865 127.062C360.957 126.921 361.079 126.816 361.232 126.748C361.384 126.677 361.549 126.642 361.728 126.642C361.86 126.642 361.972 126.653 362.066 126.675C362.16 126.696 362.229 126.715 362.275 126.732L362.121 127.264C362.09 127.255 362.051 127.245 362.002 127.233C361.954 127.22 361.895 127.213 361.827 127.213C361.667 127.213 361.553 127.253 361.484 127.332C361.417 127.411 361.383 127.525 361.383 127.674V131.35H360.727ZM362.787 131.35V127.977H363.444V131.35H362.787ZM363.119 127.457C363.005 127.457 362.907 127.419 362.825 127.343C362.744 127.265 362.704 127.173 362.704 127.066C362.704 126.958 362.744 126.865 362.825 126.789C362.907 126.712 363.005 126.673 363.119 126.673C363.233 126.673 363.33 126.712 363.411 126.789C363.493 126.865 363.534 126.958 363.534 127.066C363.534 127.173 363.493 127.265 363.411 127.343C363.33 127.419 363.233 127.457 363.119 127.457ZM364.984 126.853V131.35H364.327V126.853H364.984ZM366.523 126.853V131.35H365.867V126.853H366.523ZM371.57 128.801L370.975 128.906C370.951 128.83 370.911 128.757 370.857 128.689C370.804 128.62 370.732 128.564 370.642 128.52C370.551 128.476 370.437 128.454 370.301 128.454C370.115 128.454 369.96 128.495 369.836 128.579C369.711 128.661 369.649 128.767 369.649 128.897C369.649 129.01 369.691 129.101 369.774 129.17C369.858 129.238 369.992 129.295 370.178 129.339L370.714 129.462C371.024 129.533 371.256 129.644 371.408 129.793C371.56 129.942 371.636 130.136 371.636 130.375C371.636 130.577 371.578 130.757 371.461 130.915C371.345 131.072 371.183 131.195 370.975 131.284C370.769 131.373 370.53 131.418 370.257 131.418C369.88 131.418 369.572 131.338 369.333 131.177C369.094 131.014 368.948 130.783 368.894 130.485L369.528 130.388C369.568 130.554 369.649 130.679 369.772 130.764C369.895 130.847 370.055 130.889 370.253 130.889C370.468 130.889 370.64 130.844 370.769 130.755C370.898 130.664 370.962 130.554 370.962 130.423C370.962 130.318 370.923 130.229 370.844 130.158C370.766 130.086 370.647 130.032 370.486 129.995L369.915 129.87C369.6 129.798 369.367 129.684 369.217 129.527C369.067 129.371 368.993 129.172 368.993 128.932C368.993 128.733 369.048 128.559 369.159 128.41C369.271 128.261 369.424 128.144 369.621 128.061C369.817 127.976 370.041 127.933 370.295 127.933C370.659 127.933 370.946 128.012 371.155 128.17C371.365 128.327 371.503 128.537 371.57 128.801ZM374.495 129.951V127.977H375.153V131.35H374.508V130.766H374.473C374.395 130.946 374.271 131.096 374.099 131.216C373.93 131.335 373.718 131.394 373.465 131.394C373.248 131.394 373.056 131.346 372.89 131.251C372.724 131.155 372.594 131.012 372.499 130.823C372.405 130.634 372.358 130.401 372.358 130.123V127.977H373.015V130.043C373.015 130.273 373.078 130.456 373.206 130.592C373.333 130.729 373.499 130.797 373.702 130.797C373.825 130.797 373.947 130.766 374.069 130.704C374.192 130.643 374.293 130.55 374.374 130.426C374.456 130.301 374.496 130.143 374.495 129.951ZM377.45 132.685C377.182 132.685 376.951 132.65 376.758 132.58C376.566 132.509 376.41 132.416 376.288 132.301C376.167 132.185 376.076 132.058 376.016 131.921L376.58 131.688C376.62 131.753 376.672 131.821 376.738 131.892C376.806 131.966 376.896 132.028 377.011 132.079C377.126 132.13 377.275 132.156 377.456 132.156C377.705 132.156 377.911 132.095 378.073 131.974C378.236 131.854 378.317 131.662 378.317 131.398V130.735H378.275C378.236 130.807 378.179 130.887 378.104 130.974C378.031 131.062 377.93 131.138 377.801 131.203C377.672 131.267 377.505 131.299 377.298 131.299C377.032 131.299 376.792 131.237 376.578 131.113C376.366 130.987 376.197 130.802 376.073 130.557C375.95 130.311 375.888 130.009 375.888 129.65C375.888 129.292 375.949 128.984 376.071 128.728C376.194 128.472 376.362 128.276 376.576 128.14C376.789 128.002 377.032 127.933 377.303 127.933C377.512 127.933 377.681 127.968 377.81 128.039C377.939 128.108 378.039 128.188 378.111 128.28C378.184 128.372 378.24 128.454 378.28 128.524H378.328V127.977H378.971V131.425C378.971 131.714 378.904 131.952 378.769 132.138C378.635 132.324 378.452 132.462 378.223 132.551C377.994 132.64 377.737 132.685 377.45 132.685ZM377.443 130.755C377.632 130.755 377.791 130.711 377.922 130.623C378.054 130.534 378.153 130.407 378.22 130.241C378.289 130.074 378.324 129.874 378.324 129.642C378.324 129.415 378.29 129.215 378.223 129.042C378.155 128.869 378.056 128.735 377.926 128.638C377.796 128.54 377.635 128.491 377.443 128.491C377.245 128.491 377.081 128.542 376.949 128.645C376.817 128.746 376.718 128.883 376.65 129.058C376.585 129.232 376.552 129.426 376.552 129.642C376.552 129.863 376.585 130.057 376.653 130.224C376.72 130.39 376.819 130.521 376.951 130.614C377.084 130.708 377.248 130.755 377.443 130.755ZM381.266 132.685C380.998 132.685 380.768 132.65 380.574 132.58C380.383 132.509 380.226 132.416 380.104 132.301C379.983 132.185 379.892 132.058 379.832 131.921L380.396 131.688C380.436 131.753 380.489 131.821 380.555 131.892C380.622 131.966 380.713 132.028 380.827 132.079C380.942 132.13 381.091 132.156 381.273 132.156C381.521 132.156 381.727 132.095 381.89 131.974C382.052 131.854 382.133 131.662 382.133 131.398V130.735H382.092C382.052 130.807 381.995 130.887 381.92 130.974C381.847 131.062 381.746 131.138 381.617 131.203C381.488 131.267 381.321 131.299 381.114 131.299C380.848 131.299 380.608 131.237 380.394 131.113C380.182 130.987 380.014 130.802 379.889 130.557C379.766 130.311 379.705 130.009 379.705 129.65C379.705 129.292 379.766 128.984 379.887 128.728C380.01 128.472 380.178 128.276 380.392 128.14C380.606 128.002 380.848 127.933 381.119 127.933C381.328 127.933 381.497 127.968 381.626 128.039C381.755 128.108 381.855 128.188 381.927 128.28C382 128.372 382.056 128.454 382.096 128.524H382.144V127.977H382.788V131.425C382.788 131.714 382.72 131.952 382.586 132.138C382.451 132.324 382.269 132.462 382.039 132.551C381.811 132.64 381.553 132.685 381.266 132.685ZM381.259 130.755C381.448 130.755 381.608 130.711 381.738 130.623C381.87 130.534 381.969 130.407 382.037 130.241C382.105 130.074 382.14 129.874 382.14 129.642C382.14 129.415 382.106 129.215 382.039 129.042C381.972 128.869 381.873 128.735 381.742 128.638C381.612 128.54 381.451 128.491 381.259 128.491C381.062 128.491 380.897 128.542 380.765 128.645C380.634 128.746 380.534 128.883 380.467 129.058C380.401 129.232 380.368 129.426 380.368 129.642C380.368 129.863 380.402 130.057 380.469 130.224C380.536 130.39 380.636 130.521 380.768 130.614C380.901 130.708 381.065 130.755 381.259 130.755ZM385.122 131.418C384.789 131.418 384.503 131.347 384.263 131.205C384.025 131.062 383.84 130.86 383.71 130.601C383.581 130.341 383.517 130.035 383.517 129.686C383.517 129.34 383.581 129.036 383.71 128.772C383.84 128.509 384.022 128.303 384.254 128.155C384.489 128.007 384.762 127.933 385.076 127.933C385.266 127.933 385.45 127.965 385.629 128.028C385.808 128.091 385.968 128.19 386.11 128.324C386.252 128.459 386.364 128.634 386.446 128.849C386.528 129.063 386.569 129.323 386.569 129.628V129.861H383.888V129.369H385.925C385.925 129.197 385.89 129.044 385.82 128.91C385.75 128.776 385.651 128.67 385.524 128.592C385.398 128.514 385.25 128.476 385.08 128.476C384.896 128.476 384.735 128.521 384.597 128.612C384.461 128.701 384.355 128.818 384.281 128.963C384.208 129.107 384.171 129.263 384.171 129.431V129.815C384.171 130.041 384.211 130.232 384.29 130.39C384.37 130.549 384.482 130.669 384.626 130.753C384.769 130.835 384.937 130.876 385.128 130.876C385.253 130.876 385.366 130.858 385.469 130.823C385.571 130.786 385.66 130.732 385.734 130.66C385.809 130.589 385.866 130.5 385.906 130.395L386.527 130.507C386.477 130.69 386.388 130.85 386.259 130.988C386.132 131.124 385.972 131.23 385.778 131.306C385.587 131.381 385.368 131.418 385.122 131.418ZM389.825 128.801L389.23 128.906C389.205 128.83 389.165 128.757 389.111 128.689C389.058 128.62 388.987 128.564 388.896 128.52C388.805 128.476 388.692 128.454 388.555 128.454C388.37 128.454 388.214 128.495 388.09 128.579C387.965 128.661 387.903 128.767 387.903 128.897C387.903 129.01 387.945 129.101 388.028 129.17C388.112 129.238 388.247 129.295 388.432 129.339L388.968 129.462C389.279 129.533 389.51 129.644 389.662 129.793C389.814 129.942 389.89 130.136 389.89 130.375C389.89 130.577 389.832 130.757 389.715 130.915C389.599 131.072 389.437 131.195 389.23 131.284C389.023 131.373 388.784 131.418 388.511 131.418C388.134 131.418 387.826 131.338 387.587 131.177C387.348 131.014 387.202 130.783 387.148 130.485L387.782 130.388C387.822 130.554 387.903 130.679 388.026 130.764C388.149 130.847 388.309 130.889 388.507 130.889C388.722 130.889 388.894 130.844 389.023 130.755C389.152 130.664 389.216 130.554 389.216 130.423C389.216 130.318 389.177 130.229 389.098 130.158C389.02 130.086 388.901 130.032 388.74 129.995L388.169 129.87C387.854 129.798 387.621 129.684 387.471 129.527C387.321 129.371 387.247 129.172 387.247 128.932C387.247 128.733 387.302 128.559 387.414 128.41C387.525 128.261 387.679 128.144 387.875 128.061C388.071 127.976 388.296 127.933 388.549 127.933C388.913 127.933 389.2 128.012 389.41 128.17C389.619 128.327 389.757 128.537 389.825 128.801ZM392.187 127.977V128.504H390.344V127.977H392.187ZM390.838 127.169H391.495V130.36C391.495 130.487 391.514 130.583 391.552 130.647C391.59 130.71 391.639 130.753 391.699 130.777C391.761 130.799 391.827 130.81 391.899 130.81C391.952 130.81 391.998 130.806 392.037 130.799C392.077 130.792 392.108 130.786 392.13 130.781L392.248 131.324C392.21 131.338 392.156 131.353 392.086 131.368C392.015 131.384 391.928 131.392 391.822 131.394C391.649 131.397 391.488 131.366 391.339 131.302C391.19 131.237 391.069 131.138 390.977 131.003C390.885 130.868 390.838 130.699 390.838 130.496V127.169ZM392.913 131.35V127.977H393.569V131.35H392.913ZM393.245 127.457C393.13 127.457 393.032 127.419 392.95 127.343C392.87 127.265 392.83 127.173 392.83 127.066C392.83 126.958 392.87 126.865 392.95 126.789C393.032 126.712 393.13 126.673 393.245 126.673C393.359 126.673 393.456 126.712 393.537 126.789C393.619 126.865 393.66 126.958 393.66 127.066C393.66 127.173 393.619 127.265 393.537 127.343C393.456 127.419 393.359 127.457 393.245 127.457ZM395.873 131.418C395.557 131.418 395.281 131.346 395.046 131.201C394.81 131.056 394.627 130.853 394.497 130.592C394.366 130.332 394.301 130.027 394.301 129.679C394.301 129.329 394.366 129.023 394.497 128.761C394.627 128.499 394.81 128.296 395.046 128.151C395.281 128.006 395.557 127.933 395.873 127.933C396.19 127.933 396.466 128.006 396.701 128.151C396.937 128.296 397.12 128.499 397.25 128.761C397.38 129.023 397.446 129.329 397.446 129.679C397.446 130.027 397.38 130.332 397.25 130.592C397.12 130.853 396.937 131.056 396.701 131.201C396.466 131.346 396.19 131.418 395.873 131.418ZM395.876 130.867C396.081 130.867 396.25 130.813 396.385 130.704C396.52 130.596 396.619 130.452 396.684 130.272C396.75 130.092 396.782 129.893 396.782 129.677C396.782 129.462 396.75 129.264 396.684 129.084C396.619 128.902 396.52 128.757 396.385 128.647C396.25 128.537 396.081 128.482 395.876 128.482C395.669 128.482 395.498 128.537 395.362 128.647C395.227 128.757 395.127 128.902 395.061 129.084C394.997 129.264 394.964 129.462 394.964 129.677C394.964 129.893 394.997 130.092 395.061 130.272C395.127 130.452 395.227 130.596 395.362 130.704C395.498 130.813 395.669 130.867 395.876 130.867ZM398.835 129.347V131.35H398.178V127.977H398.809V128.526H398.85C398.928 128.348 399.049 128.204 399.215 128.096C399.382 127.987 399.592 127.933 399.845 127.933C400.075 127.933 400.276 127.982 400.449 128.078C400.622 128.173 400.756 128.315 400.851 128.504C400.946 128.693 400.993 128.927 400.993 129.205V131.35H400.337V129.284C400.337 129.039 400.273 128.848 400.146 128.711C400.019 128.572 399.844 128.502 399.621 128.502C399.469 128.502 399.333 128.535 399.215 128.601C399.098 128.667 399.005 128.763 398.936 128.891C398.869 129.017 398.835 129.169 398.835 129.347ZM404.401 128.801L403.806 128.906C403.781 128.83 403.742 128.757 403.688 128.689C403.635 128.62 403.563 128.564 403.472 128.52C403.382 128.476 403.268 128.454 403.132 128.454C402.946 128.454 402.791 128.495 402.667 128.579C402.542 128.661 402.48 128.767 402.48 128.897C402.48 129.01 402.522 129.101 402.605 129.17C402.689 129.238 402.823 129.295 403.009 129.339L403.545 129.462C403.855 129.533 404.087 129.644 404.239 129.793C404.391 129.942 404.467 130.136 404.467 130.375C404.467 130.577 404.409 130.757 404.292 130.915C404.176 131.072 404.014 131.195 403.806 131.284C403.6 131.373 403.361 131.418 403.088 131.418C402.711 131.418 402.402 131.338 402.164 131.177C401.925 131.014 401.779 130.783 401.725 130.485L402.359 130.388C402.399 130.554 402.48 130.679 402.603 130.764C402.726 130.847 402.886 130.889 403.084 130.889C403.299 130.889 403.471 130.844 403.6 130.755C403.729 130.664 403.793 130.554 403.793 130.423C403.793 130.318 403.754 130.229 403.674 130.158C403.597 130.086 403.478 130.032 403.317 129.995L402.746 129.87C402.431 129.798 402.198 129.684 402.047 129.527C401.898 129.371 401.823 129.172 401.823 128.932C401.823 128.733 401.879 128.559 401.99 128.41C402.102 128.261 402.255 128.144 402.451 128.061C402.648 127.976 402.872 127.933 403.126 127.933C403.49 127.933 403.777 128.012 403.986 128.17C404.196 128.327 404.334 128.537 404.401 128.801Z"
|
|
fill="#1B2029"
|
|
/>
|
|
<path
|
|
d="M492.955 131.35V130.955L494.439 129.33C494.614 129.14 494.757 128.974 494.87 128.834C494.983 128.692 495.066 128.558 495.12 128.434C495.176 128.308 495.204 128.176 495.204 128.039C495.204 127.881 495.166 127.744 495.089 127.628C495.015 127.512 494.912 127.423 494.782 127.36C494.652 127.297 494.505 127.266 494.343 127.266C494.17 127.266 494.019 127.302 493.89 127.373C493.763 127.444 493.664 127.542 493.594 127.67C493.525 127.797 493.491 127.947 493.491 128.118H492.973C492.973 127.854 493.033 127.623 493.155 127.424C493.276 127.225 493.442 127.07 493.651 126.958C493.862 126.847 494.098 126.792 494.36 126.792C494.624 126.792 494.857 126.847 495.061 126.958C495.264 127.07 495.424 127.22 495.54 127.409C495.655 127.597 495.713 127.807 495.713 128.039C495.713 128.204 495.683 128.366 495.623 128.524C495.564 128.681 495.462 128.856 495.316 129.049C495.171 129.241 494.969 129.475 494.712 129.751L493.702 130.832V130.867H495.792V131.35H492.955Z"
|
|
fill="#5A6D91"
|
|
/>
|
|
<mask id="path-39-inside-2_4955_16369" fill="white">
|
|
<path
|
|
d="M344.3 138.567C344.3 136.615 345.882 135.033 347.833 135.033H494.466C496.418 135.033 498 136.615 498 138.567V155.567C498 157.518 496.418 159.1 494.466 159.1H347.833C345.882 159.1 344.3 157.518 344.3 155.567V138.567Z"
|
|
/>
|
|
</mask>
|
|
<path
|
|
d="M344.3 138.567C344.3 136.615 345.882 135.033 347.833 135.033H494.466C496.418 135.033 498 136.615 498 138.567V155.567C498 157.518 496.418 159.1 494.466 159.1H347.833C345.882 159.1 344.3 157.518 344.3 155.567V138.567Z"
|
|
fill="white"
|
|
/>
|
|
<path
|
|
d="M344.3 135.033H498H344.3M498 155.567C498 157.64 496.319 159.321 494.246 159.321H348.054C345.981 159.321 344.3 157.64 344.3 155.567V155.567C344.3 157.396 345.882 158.879 347.833 158.879H494.466C496.418 158.879 498 157.396 498 155.567V155.567ZM498 155.567M344.3 159.1V135.033V159.1M344.3 159.1M498 135.033V159.1V135.033"
|
|
fill="#A8B3C8"
|
|
mask="url(#path-39-inside-2_4955_16369)"
|
|
/>
|
|
<g clip-path="url(#clip4_4955_16369)">
|
|
<rect
|
|
x="345.478"
|
|
y="141.767"
|
|
width="18.8445"
|
|
height="10.6"
|
|
fill="url(#pattern0_4955_16369)"
|
|
/>
|
|
</g>
|
|
<path
|
|
d="M365.108 145.567L363.861 141.07H364.574L365.451 144.552H365.492L366.403 141.07H367.111L368.022 144.554H368.063L368.937 141.07H369.653L368.404 145.567H367.721L366.775 142.198H366.739L365.793 145.567H365.108ZM371.308 145.635C370.992 145.635 370.716 145.562 370.48 145.417C370.244 145.272 370.061 145.07 369.931 144.809C369.801 144.549 369.736 144.244 369.736 143.896C369.736 143.546 369.801 143.24 369.931 142.978C370.061 142.716 370.244 142.512 370.48 142.367C370.716 142.222 370.992 142.15 371.308 142.15C371.624 142.15 371.9 142.222 372.136 142.367C372.371 142.512 372.554 142.716 372.685 142.978C372.815 143.24 372.88 143.546 372.88 143.896C372.88 144.244 372.815 144.549 372.685 144.809C372.554 145.07 372.371 145.272 372.136 145.417C371.9 145.562 371.624 145.635 371.308 145.635ZM371.31 145.084C371.515 145.084 371.685 145.029 371.819 144.921C371.954 144.813 372.054 144.669 372.118 144.489C372.184 144.308 372.217 144.11 372.217 143.893C372.217 143.678 372.184 143.481 372.118 143.301C372.054 143.119 371.954 142.973 371.819 142.864C371.685 142.754 371.515 142.699 371.31 142.699C371.104 142.699 370.932 142.754 370.796 142.864C370.661 142.973 370.561 143.119 370.495 143.301C370.431 143.481 370.399 143.678 370.399 143.893C370.399 144.11 370.431 144.308 370.495 144.489C370.561 144.669 370.661 144.813 370.796 144.921C370.932 145.029 371.104 145.084 371.31 145.084ZM373.613 145.567V142.194H374.247V142.73H374.283C374.344 142.548 374.452 142.405 374.607 142.302C374.764 142.196 374.941 142.143 375.139 142.143C375.18 142.143 375.228 142.145 375.284 142.148C375.341 142.151 375.386 142.154 375.418 142.159V142.787C375.391 142.779 375.345 142.771 375.277 142.763C375.21 142.752 375.143 142.747 375.075 142.747C374.92 142.747 374.782 142.78 374.66 142.846C374.54 142.91 374.445 143.001 374.375 143.116C374.304 143.23 374.269 143.361 374.269 143.507V145.567H373.613ZM376.59 144.423L376.585 143.621H376.7L378.043 142.194H378.829L377.297 143.819H377.194L376.59 144.423ZM375.986 145.567V141.07H376.642V145.567H375.986ZM378.116 145.567L376.908 143.964L377.36 143.505L378.922 145.567H378.116ZM384.16 142.49C384.118 142.357 384.061 142.238 383.989 142.132C383.919 142.026 383.835 141.935 383.736 141.86C383.638 141.784 383.526 141.726 383.401 141.687C383.276 141.647 383.139 141.627 382.99 141.627C382.737 141.627 382.508 141.693 382.305 141.823C382.101 141.953 381.94 142.144 381.822 142.396C381.705 142.646 381.646 142.953 381.646 143.316C381.646 143.68 381.705 143.989 381.824 144.24C381.943 144.492 382.105 144.683 382.311 144.813C382.518 144.944 382.753 145.009 383.016 145.009C383.261 145.009 383.474 144.959 383.655 144.86C383.838 144.76 383.979 144.62 384.079 144.438C384.18 144.255 384.231 144.04 384.231 143.792L384.406 143.825H383.119V143.265H384.887V143.777C384.887 144.155 384.807 144.483 384.646 144.761C384.486 145.037 384.265 145.251 383.982 145.402C383.701 145.553 383.379 145.628 383.016 145.628C382.609 145.628 382.252 145.534 381.945 145.347C381.639 145.16 381.4 144.894 381.229 144.55C381.058 144.205 380.972 143.795 380.972 143.32C380.972 142.962 381.022 142.64 381.121 142.354C381.221 142.069 381.361 141.826 381.541 141.627C381.722 141.427 381.935 141.274 382.18 141.168C382.426 141.062 382.694 141.008 382.986 141.008C383.229 141.008 383.455 141.044 383.664 141.116C383.875 141.188 384.062 141.289 384.226 141.421C384.392 141.553 384.528 141.709 384.637 141.891C384.745 142.071 384.818 142.271 384.856 142.49H384.16ZM385.696 145.567V142.194H386.326V142.743H386.368C386.438 142.557 386.553 142.412 386.712 142.308C386.872 142.203 387.063 142.15 387.285 142.15C387.511 142.15 387.7 142.203 387.852 142.308C388.006 142.414 388.119 142.558 388.192 142.743H388.227C388.308 142.563 388.436 142.419 388.612 142.312C388.787 142.204 388.997 142.15 389.24 142.15C389.546 142.15 389.795 142.246 389.988 142.438C390.183 142.629 390.28 142.919 390.28 143.305V145.567H389.624V143.366C389.624 143.138 389.562 142.973 389.437 142.87C389.313 142.768 389.164 142.717 388.992 142.717C388.778 142.717 388.612 142.782 388.493 142.914C388.375 143.044 388.315 143.212 388.315 143.417V145.567H387.661V143.325C387.661 143.142 387.604 142.995 387.49 142.883C387.375 142.772 387.227 142.717 387.044 142.717C386.919 142.717 386.805 142.749 386.699 142.815C386.595 142.88 386.511 142.97 386.447 143.085C386.384 143.201 386.352 143.335 386.352 143.487V145.567H385.696ZM392.142 145.641C391.928 145.641 391.735 145.602 391.562 145.523C391.39 145.442 391.253 145.326 391.152 145.174C391.052 145.021 391.002 144.835 391.002 144.614C391.002 144.423 391.039 144.267 391.112 144.144C391.185 144.021 391.284 143.923 391.409 143.852C391.533 143.78 391.672 143.726 391.826 143.689C391.979 143.653 392.136 143.625 392.296 143.606C392.498 143.582 392.662 143.563 392.787 143.549C392.913 143.533 393.005 143.507 393.062 143.472C393.119 143.437 393.148 143.38 393.148 143.301V143.285C393.148 143.093 393.093 142.945 392.985 142.839C392.878 142.734 392.719 142.681 392.506 142.681C392.285 142.681 392.111 142.73 391.984 142.829C391.858 142.925 391.771 143.033 391.723 143.151L391.106 143.011C391.179 142.806 391.286 142.64 391.426 142.515C391.568 142.387 391.731 142.295 391.916 142.238C392.1 142.179 392.294 142.15 392.498 142.15C392.632 142.15 392.775 142.166 392.926 142.198C393.078 142.229 393.22 142.286 393.352 142.37C393.485 142.453 393.594 142.572 393.679 142.727C393.764 142.881 393.806 143.081 393.806 143.327V145.567H393.165V145.106H393.139C393.096 145.19 393.033 145.274 392.948 145.356C392.863 145.438 392.754 145.506 392.621 145.56C392.487 145.614 392.328 145.641 392.142 145.641ZM392.285 145.114C392.466 145.114 392.621 145.078 392.75 145.007C392.88 144.935 392.979 144.841 393.047 144.726C393.115 144.609 393.15 144.483 393.15 144.35V143.915C393.126 143.939 393.081 143.961 393.014 143.981C392.948 144 392.872 144.017 392.787 144.032C392.703 144.045 392.62 144.057 392.539 144.069C392.459 144.079 392.392 144.088 392.337 144.095C392.21 144.112 392.094 144.139 391.988 144.177C391.884 144.215 391.801 144.27 391.738 144.341C391.676 144.412 391.646 144.505 391.646 144.622C391.646 144.785 391.706 144.908 391.826 144.991C391.946 145.073 392.099 145.114 392.285 145.114ZM394.681 145.567V142.194H395.337V145.567H394.681ZM395.012 141.674C394.898 141.674 394.8 141.635 394.718 141.559C394.638 141.482 394.597 141.39 394.597 141.283C394.597 141.174 394.638 141.082 394.718 141.006C394.8 140.928 394.898 140.89 395.012 140.89C395.127 140.89 395.224 140.928 395.304 141.006C395.386 141.082 395.427 141.174 395.427 141.283C395.427 141.39 395.386 141.482 395.304 141.559C395.224 141.635 395.127 141.674 395.012 141.674ZM396.877 141.07V145.567H396.221V141.07H396.877Z"
|
|
fill="#1B2029"
|
|
/>
|
|
<path
|
|
d="M366.73 148.712H367.196V151.264C367.196 151.528 367.134 151.763 367.01 151.97C366.887 152.176 366.713 152.338 366.489 152.457C366.264 152.575 366.001 152.634 365.698 152.634C365.396 152.634 365.132 152.575 364.908 152.457C364.683 152.338 364.509 152.176 364.385 151.97C364.262 151.763 364.2 151.528 364.2 151.264V148.712H364.667V151.227C364.667 151.415 364.708 151.582 364.791 151.729C364.874 151.875 364.992 151.989 365.145 152.074C365.299 152.156 365.484 152.198 365.698 152.198C365.913 152.198 366.097 152.156 366.252 152.074C366.406 151.989 366.524 151.875 366.605 151.729C366.688 151.582 366.73 151.415 366.73 151.227V148.712ZM370.116 150.323L369.717 150.436C369.692 150.37 369.655 150.305 369.606 150.242C369.558 150.178 369.493 150.126 369.41 150.084C369.327 150.043 369.221 150.022 369.092 150.022C368.915 150.022 368.768 150.063 368.65 150.144C368.533 150.225 368.475 150.327 368.475 150.451C368.475 150.562 368.515 150.649 368.595 150.713C368.676 150.777 368.801 150.83 368.972 150.873L369.401 150.978C369.659 151.041 369.852 151.137 369.979 151.266C370.105 151.394 370.169 151.559 370.169 151.761C370.169 151.927 370.121 152.075 370.026 152.205C369.932 152.336 369.8 152.439 369.63 152.514C369.461 152.589 369.264 152.627 369.04 152.627C368.745 152.627 368.501 152.563 368.307 152.435C368.114 152.307 367.992 152.12 367.94 151.874L368.362 151.769C368.402 151.924 368.478 152.041 368.59 152.119C368.703 152.197 368.85 152.235 369.032 152.235C369.239 152.235 369.403 152.191 369.525 152.104C369.648 152.015 369.71 151.908 369.71 151.784C369.71 151.683 369.674 151.599 369.604 151.531C369.534 151.462 369.426 151.411 369.28 151.377L368.799 151.264C368.534 151.201 368.339 151.104 368.215 150.973C368.092 150.84 368.031 150.673 368.031 150.474C368.031 150.311 368.077 150.166 368.168 150.041C368.261 149.915 368.387 149.817 368.546 149.745C368.707 149.674 368.889 149.638 369.092 149.638C369.378 149.638 369.603 149.701 369.766 149.826C369.93 149.952 370.047 150.117 370.116 150.323ZM372.049 152.627C371.771 152.627 371.531 152.565 371.329 152.442C371.128 152.318 370.973 152.145 370.864 151.923C370.756 151.7 370.702 151.44 370.702 151.144C370.702 150.848 370.756 150.587 370.864 150.361C370.973 150.134 371.125 149.957 371.319 149.83C371.515 149.702 371.743 149.638 372.004 149.638C372.155 149.638 372.304 149.663 372.45 149.713C372.597 149.764 372.731 149.845 372.851 149.958C372.972 150.07 373.068 150.218 373.139 150.402C373.211 150.587 373.246 150.814 373.246 151.084V151.272H371.018V150.888H372.795C372.795 150.725 372.762 150.579 372.697 150.451C372.633 150.323 372.541 150.222 372.422 150.148C372.304 150.074 372.165 150.037 372.004 150.037C371.827 150.037 371.674 150.081 371.545 150.169C371.417 150.255 371.319 150.368 371.25 150.508C371.181 150.647 371.146 150.796 371.146 150.956V151.212C371.146 151.43 371.184 151.615 371.259 151.767C371.336 151.917 371.442 152.032 371.577 152.111C371.713 152.189 371.87 152.228 372.049 152.228C372.166 152.228 372.272 152.212 372.366 152.179C372.461 152.145 372.543 152.095 372.612 152.028C372.681 151.961 372.735 151.877 372.772 151.776L373.201 151.897C373.156 152.042 373.08 152.17 372.974 152.281C372.867 152.39 372.735 152.475 372.578 152.537C372.421 152.597 372.245 152.627 372.049 152.627ZM373.922 152.567V149.676H374.351V150.112H374.381C374.434 149.969 374.529 149.853 374.667 149.764C374.805 149.675 374.961 149.631 375.134 149.631C375.167 149.631 375.208 149.631 375.257 149.632C375.306 149.634 375.343 149.636 375.368 149.638V150.09C375.353 150.086 375.318 150.08 375.264 150.073C375.211 150.064 375.156 150.06 375.097 150.06C374.956 150.06 374.831 150.089 374.72 150.148C374.611 150.206 374.524 150.286 374.46 150.389C374.398 150.491 374.366 150.607 374.366 150.737V152.567H373.922ZM376.338 150.828V152.567H375.894V149.676H376.323V150.127H376.361C376.429 149.981 376.532 149.863 376.67 149.774C376.808 149.683 376.986 149.638 377.204 149.638C377.4 149.638 377.571 149.678 377.718 149.759C377.865 149.838 377.979 149.958 378.06 150.12C378.142 150.281 378.183 150.484 378.183 150.73V152.567H377.739V150.76C377.739 150.533 377.68 150.356 377.562 150.229C377.444 150.101 377.282 150.037 377.076 150.037C376.934 150.037 376.808 150.068 376.696 150.129C376.585 150.191 376.498 150.281 376.434 150.398C376.37 150.516 376.338 150.659 376.338 150.828ZM379.845 152.634C379.662 152.634 379.496 152.6 379.346 152.531C379.197 152.461 379.078 152.36 378.991 152.228C378.903 152.095 378.859 151.934 378.859 151.746C378.859 151.58 378.892 151.446 378.957 151.343C379.022 151.239 379.109 151.158 379.218 151.099C379.328 151.04 379.448 150.996 379.58 150.967C379.713 150.937 379.846 150.913 379.981 150.895C380.156 150.873 380.299 150.856 380.408 150.845C380.518 150.832 380.599 150.811 380.649 150.782C380.7 150.754 380.726 150.703 380.726 150.632V150.617C380.726 150.431 380.675 150.287 380.574 150.184C380.473 150.081 380.321 150.03 380.116 150.03C379.904 150.03 379.738 150.076 379.617 150.169C379.497 150.262 379.412 150.361 379.363 150.466L378.942 150.316C379.017 150.14 379.117 150.003 379.243 149.905C379.37 149.806 379.508 149.737 379.657 149.698C379.807 149.658 379.956 149.638 380.101 149.638C380.194 149.638 380.301 149.649 380.421 149.672C380.543 149.693 380.66 149.738 380.773 149.806C380.887 149.873 380.982 149.976 381.057 150.112C381.132 150.249 381.17 150.432 381.17 150.662V152.567H380.726V152.175H380.703C380.673 152.238 380.623 152.305 380.553 152.377C380.483 152.448 380.389 152.509 380.272 152.559C380.156 152.609 380.013 152.634 379.845 152.634ZM379.913 152.235C380.089 152.235 380.237 152.201 380.357 152.132C380.479 152.063 380.57 151.974 380.632 151.865C380.695 151.755 380.726 151.641 380.726 151.52V151.114C380.707 151.136 380.666 151.157 380.602 151.176C380.539 151.193 380.466 151.209 380.383 151.223C380.302 151.235 380.222 151.247 380.144 151.257C380.068 151.265 380.006 151.273 379.958 151.279C379.843 151.294 379.735 151.319 379.634 151.353C379.535 151.385 379.455 151.435 379.393 151.501C379.333 151.567 379.303 151.656 379.303 151.769C379.303 151.923 379.36 152.04 379.474 152.119C379.59 152.197 379.736 152.235 379.913 152.235ZM381.981 152.567V149.676H382.41V150.127H382.448C382.508 149.973 382.605 149.853 382.739 149.768C382.874 149.681 383.035 149.638 383.223 149.638C383.414 149.638 383.572 149.681 383.699 149.768C383.827 149.853 383.927 149.973 383.998 150.127H384.029C384.103 149.978 384.214 149.86 384.362 149.772C384.51 149.683 384.687 149.638 384.894 149.638C385.153 149.638 385.364 149.719 385.529 149.881C385.693 150.041 385.775 150.292 385.775 150.632V152.567H385.331V150.632C385.331 150.419 385.273 150.266 385.156 150.174C385.039 150.083 384.902 150.037 384.744 150.037C384.541 150.037 384.383 150.099 384.271 150.222C384.16 150.343 384.104 150.498 384.104 150.685V152.567H383.652V150.587C383.652 150.422 383.599 150.29 383.492 150.19C383.386 150.088 383.248 150.037 383.08 150.037C382.965 150.037 382.857 150.068 382.756 150.129C382.657 150.191 382.577 150.276 382.515 150.385C382.455 150.493 382.425 150.618 382.425 150.76V152.567H381.981ZM387.799 152.627C387.521 152.627 387.281 152.565 387.079 152.442C386.878 152.318 386.723 152.145 386.614 151.923C386.506 151.7 386.452 151.44 386.452 151.144C386.452 150.848 386.506 150.587 386.614 150.361C386.723 150.134 386.875 149.957 387.069 149.83C387.265 149.702 387.493 149.638 387.754 149.638C387.905 149.638 388.053 149.663 388.2 149.713C388.347 149.764 388.481 149.845 388.601 149.958C388.722 150.07 388.818 150.218 388.889 150.402C388.961 150.587 388.996 150.814 388.996 151.084V151.272H386.768V150.888H388.545C388.545 150.725 388.512 150.579 388.447 150.451C388.383 150.323 388.291 150.222 388.172 150.148C388.054 150.074 387.915 150.037 387.754 150.037C387.577 150.037 387.424 150.081 387.295 150.169C387.167 150.255 387.068 150.368 386.999 150.508C386.93 150.647 386.896 150.796 386.896 150.956V151.212C386.896 151.43 386.934 151.615 387.009 151.767C387.085 151.917 387.191 152.032 387.327 152.111C387.462 152.189 387.62 152.228 387.799 152.228C387.916 152.228 388.021 152.212 388.116 152.179C388.211 152.145 388.293 152.095 388.362 152.028C388.431 151.961 388.484 151.877 388.522 151.776L388.951 151.897C388.906 152.042 388.83 152.17 388.723 152.281C388.617 152.39 388.485 152.475 388.328 152.537C388.171 152.597 387.995 152.627 387.799 152.627Z"
|
|
fill="#5A6D91"
|
|
/>
|
|
<g clip-path="url(#clip5_4955_16369)">
|
|
<path
|
|
fill-rule="evenodd"
|
|
clip-rule="evenodd"
|
|
d="M473.708 144.858C473.708 144.37 474.104 143.975 474.591 143.975H477.241C477.729 143.975 478.125 144.37 478.125 144.858V147.508C478.125 147.996 477.729 148.392 477.241 148.392H476.358V149.275C476.358 149.763 475.963 150.158 475.475 150.158H472.825C472.337 150.158 471.941 149.763 471.941 149.275V146.625C471.941 146.137 472.337 145.742 472.825 145.742H473.708V144.858ZM474.591 144.637H477.241C477.363 144.637 477.462 144.736 477.462 144.858V147.508C477.462 147.63 477.363 147.729 477.241 147.729H474.591C474.469 147.729 474.371 147.63 474.371 147.508V144.858C474.371 144.736 474.469 144.637 474.591 144.637ZM473.708 146.404H472.825C472.703 146.404 472.604 146.503 472.604 146.625V149.275C472.604 149.397 472.703 149.496 472.825 149.496H475.475C475.597 149.496 475.696 149.397 475.696 149.275V148.392H474.591C474.104 148.392 473.708 147.996 473.708 147.508V146.404Z"
|
|
fill="#1B2029"
|
|
/>
|
|
</g>
|
|
<path
|
|
d="M488.284 144.417C488.284 144.905 488.68 145.3 489.168 145.3C489.655 145.3 490.051 144.905 490.051 144.417C490.051 143.929 489.655 143.533 489.168 143.533C488.68 143.533 488.284 143.929 488.284 144.417Z"
|
|
fill="#1B2029"
|
|
/>
|
|
<path
|
|
d="M489.168 147.95C488.68 147.95 488.284 147.555 488.284 147.067C488.284 146.579 488.68 146.183 489.168 146.183C489.655 146.183 490.051 146.579 490.051 147.067C490.051 147.555 489.655 147.95 489.168 147.95Z"
|
|
fill="#1B2029"
|
|
/>
|
|
<path
|
|
d="M489.168 150.6C488.68 150.6 488.284 150.205 488.284 149.717C488.284 149.229 488.68 148.833 489.168 148.833C489.655 148.833 490.051 149.229 490.051 149.717C490.051 150.205 489.655 150.6 489.168 150.6Z"
|
|
fill="#1B2029"
|
|
/>
|
|
<mask id="path-50-inside-3_4955_16369" fill="white">
|
|
<path
|
|
d="M344.3 165.283C344.3 163.332 345.882 161.75 347.833 161.75H494.466C496.418 161.75 498 163.332 498 165.283V182.283C498 184.235 496.418 185.817 494.466 185.817H347.833C345.882 185.817 344.3 184.235 344.3 182.283V165.283Z"
|
|
/>
|
|
</mask>
|
|
<path
|
|
d="M344.3 165.283C344.3 163.332 345.882 161.75 347.833 161.75H494.466C496.418 161.75 498 163.332 498 165.283V182.283C498 184.235 496.418 185.817 494.466 185.817H347.833C345.882 185.817 344.3 184.235 344.3 182.283V165.283Z"
|
|
fill="white"
|
|
/>
|
|
<path
|
|
d="M344.3 161.75H498H344.3M498 182.283C498 184.357 496.319 186.037 494.246 186.037H348.054C345.981 186.037 344.3 184.357 344.3 182.283V182.283C344.3 184.113 345.882 185.596 347.833 185.596H494.466C496.418 185.596 498 184.113 498 182.283V182.283ZM498 182.283M344.3 185.817V161.75V185.817M344.3 185.817M498 161.75V185.817V161.75"
|
|
fill="#A8B3C8"
|
|
mask="url(#path-50-inside-3_4955_16369)"
|
|
/>
|
|
<g clip-path="url(#clip6_4955_16369)">
|
|
<rect
|
|
x="345.478"
|
|
y="168.483"
|
|
width="18.8445"
|
|
height="10.6"
|
|
fill="url(#pattern1_4955_16369)"
|
|
/>
|
|
</g>
|
|
<path
|
|
d="M364.227 172.283V167.786H365.83C366.18 167.786 366.47 167.85 366.7 167.977C366.93 168.105 367.102 168.279 367.216 168.5C367.33 168.72 367.387 168.967 367.387 169.242C367.387 169.519 367.329 169.768 367.214 169.989C367.1 170.208 366.927 170.383 366.696 170.511C366.466 170.639 366.177 170.702 365.828 170.702H364.726V170.127H365.767C365.988 170.127 366.167 170.089 366.305 170.013C366.442 169.935 366.543 169.83 366.608 169.697C366.672 169.563 366.704 169.412 366.704 169.242C366.704 169.072 366.672 168.922 366.608 168.79C366.543 168.658 366.442 168.555 366.302 168.48C366.165 168.406 365.983 168.368 365.758 168.368H364.906V172.283H364.227ZM369.541 172.351C369.209 172.351 368.923 172.28 368.683 172.138C368.444 171.995 368.26 171.794 368.129 171.535C368.001 171.274 367.936 170.969 367.936 170.619C367.936 170.273 368.001 169.969 368.129 169.705C368.26 169.442 368.441 169.236 368.674 169.088C368.908 168.941 369.182 168.867 369.495 168.867C369.685 168.867 369.87 168.898 370.048 168.961C370.227 169.024 370.387 169.123 370.529 169.258C370.671 169.392 370.783 169.567 370.865 169.782C370.947 169.996 370.988 170.256 370.988 170.562V170.795H368.307V170.303H370.345C370.345 170.13 370.31 169.977 370.24 169.844C370.169 169.709 370.07 169.603 369.943 169.525C369.817 169.448 369.669 169.409 369.5 169.409C369.315 169.409 369.154 169.454 369.016 169.545C368.88 169.634 368.775 169.752 368.7 169.897C368.627 170.04 368.59 170.196 368.59 170.364V170.748C368.59 170.974 368.63 171.166 368.709 171.324C368.79 171.482 368.902 171.603 369.045 171.686C369.188 171.768 369.356 171.809 369.548 171.809C369.672 171.809 369.786 171.791 369.888 171.756C369.991 171.72 370.079 171.666 370.154 171.594C370.229 171.522 370.286 171.434 370.325 171.328L370.947 171.44C370.897 171.623 370.807 171.783 370.679 171.921C370.551 172.057 370.391 172.163 370.198 172.239C370.006 172.314 369.787 172.351 369.541 172.351ZM371.717 172.283V168.911H372.351V169.446H372.386C372.448 169.265 372.556 169.122 372.711 169.018C372.868 168.913 373.045 168.86 373.243 168.86C373.284 168.86 373.332 168.862 373.388 168.864C373.445 168.867 373.489 168.871 373.522 168.875V169.503C373.495 169.496 373.448 169.488 373.381 169.479C373.314 169.469 373.246 169.464 373.179 169.464C373.024 169.464 372.886 169.497 372.764 169.563C372.644 169.627 372.549 169.717 372.479 169.833C372.408 169.947 372.373 170.077 372.373 170.224V172.283H371.717ZM376.617 169.734L376.022 169.839C375.997 169.763 375.958 169.691 375.904 169.622C375.851 169.553 375.779 169.497 375.688 169.453C375.598 169.409 375.484 169.387 375.348 169.387C375.162 169.387 375.007 169.429 374.883 169.512C374.758 169.594 374.696 169.7 374.696 169.831C374.696 169.943 374.738 170.034 374.821 170.103C374.904 170.172 375.039 170.228 375.225 170.272L375.761 170.395C376.071 170.467 376.302 170.577 376.455 170.727C376.607 170.876 376.683 171.07 376.683 171.308C376.683 171.51 376.624 171.69 376.507 171.849C376.392 172.005 376.23 172.128 376.022 172.217C375.816 172.307 375.576 172.351 375.304 172.351C374.926 172.351 374.618 172.271 374.38 172.11C374.141 171.947 373.995 171.717 373.941 171.418L374.575 171.322C374.615 171.487 374.696 171.612 374.819 171.697C374.942 171.78 375.102 171.822 375.3 171.822C375.515 171.822 375.687 171.778 375.816 171.688C375.945 171.598 376.009 171.487 376.009 171.357C376.009 171.251 375.969 171.163 375.89 171.091C375.813 171.019 375.693 170.965 375.532 170.929L374.962 170.803C374.647 170.732 374.414 170.617 374.263 170.461C374.114 170.304 374.039 170.106 374.039 169.866C374.039 169.667 374.095 169.492 374.206 169.343C374.317 169.194 374.471 169.077 374.667 168.994C374.863 168.909 375.088 168.867 375.341 168.867C375.706 168.867 375.993 168.946 376.202 169.104C376.412 169.26 376.55 169.471 376.617 169.734ZM378.826 172.351C378.509 172.351 378.233 172.279 377.998 172.134C377.762 171.989 377.579 171.786 377.449 171.526C377.319 171.265 377.253 170.961 377.253 170.612C377.253 170.262 377.319 169.957 377.449 169.694C377.579 169.432 377.762 169.229 377.998 169.084C378.233 168.939 378.509 168.867 378.826 168.867C379.142 168.867 379.418 168.939 379.653 169.084C379.889 169.229 380.072 169.432 380.202 169.694C380.333 169.957 380.398 170.262 380.398 170.612C380.398 170.961 380.333 171.265 380.202 171.526C380.072 171.786 379.889 171.989 379.653 172.134C379.418 172.279 379.142 172.351 378.826 172.351ZM378.828 171.8C379.033 171.8 379.203 171.746 379.337 171.638C379.472 171.529 379.571 171.385 379.636 171.205C379.702 171.025 379.735 170.827 379.735 170.61C379.735 170.395 379.702 170.197 379.636 170.017C379.571 169.836 379.472 169.69 379.337 169.58C379.203 169.471 379.033 169.416 378.828 169.416C378.621 169.416 378.45 169.471 378.314 169.58C378.179 169.69 378.079 169.836 378.013 170.017C377.949 170.197 377.917 170.395 377.917 170.61C377.917 170.827 377.949 171.025 378.013 171.205C378.079 171.385 378.179 171.529 378.314 171.638C378.45 171.746 378.621 171.8 378.828 171.8ZM381.787 170.281V172.283H381.131V168.911H381.761V169.46H381.803C381.88 169.281 382.002 169.137 382.167 169.029C382.334 168.921 382.544 168.867 382.797 168.867C383.027 168.867 383.228 168.915 383.401 169.012C383.574 169.107 383.708 169.249 383.803 169.438C383.898 169.626 383.946 169.86 383.946 170.138V172.283H383.289V170.217C383.289 169.973 383.225 169.782 383.098 169.644C382.971 169.505 382.796 169.435 382.573 169.435C382.421 169.435 382.286 169.468 382.167 169.534C382.05 169.6 381.957 169.697 381.888 169.824C381.821 169.95 381.787 170.102 381.787 170.281ZM385.808 172.358C385.594 172.358 385.401 172.318 385.228 172.239C385.055 172.159 384.918 172.043 384.817 171.89C384.718 171.738 384.668 171.551 384.668 171.33C384.668 171.14 384.705 170.983 384.778 170.86C384.851 170.737 384.95 170.64 385.074 170.568C385.199 170.497 385.338 170.443 385.491 170.406C385.645 170.369 385.802 170.342 385.961 170.322C386.163 170.299 386.327 170.28 386.453 170.265C386.579 170.249 386.671 170.224 386.728 170.189C386.785 170.153 386.813 170.096 386.813 170.017V170.002C386.813 169.81 386.759 169.662 386.651 169.556C386.544 169.451 386.384 169.398 386.172 169.398C385.951 169.398 385.777 169.447 385.65 169.545C385.524 169.642 385.437 169.749 385.388 169.868L384.771 169.727C384.844 169.522 384.951 169.357 385.092 169.231C385.234 169.104 385.397 169.012 385.581 168.955C385.766 168.896 385.96 168.867 386.163 168.867C386.298 168.867 386.441 168.883 386.592 168.915C386.744 168.946 386.886 169.003 387.018 169.086C387.151 169.17 387.26 169.289 387.345 169.444C387.43 169.598 387.472 169.798 387.472 170.044V172.283H386.831V171.822H386.805C386.762 171.907 386.698 171.991 386.613 172.073C386.529 172.155 386.42 172.223 386.286 172.277C386.153 172.331 385.994 172.358 385.808 172.358ZM385.95 171.831C386.132 171.831 386.287 171.795 386.416 171.723C386.546 171.652 386.645 171.558 386.712 171.442C386.781 171.325 386.816 171.2 386.816 171.067V170.632C386.792 170.656 386.747 170.677 386.679 170.698C386.613 170.717 386.538 170.734 386.453 170.748C386.368 170.762 386.286 170.774 386.205 170.786C386.125 170.796 386.057 170.805 386.003 170.812C385.876 170.828 385.759 170.855 385.654 170.893C385.55 170.931 385.467 170.986 385.404 171.058C385.342 171.128 385.311 171.222 385.311 171.339C385.311 171.502 385.371 171.625 385.491 171.708C385.611 171.79 385.764 171.831 385.95 171.831ZM389.003 167.786V172.283H388.347V167.786H389.003ZM394.619 169.207C394.576 169.074 394.519 168.955 394.448 168.849C394.377 168.742 394.293 168.651 394.195 168.577C394.097 168.501 393.985 168.443 393.859 168.403C393.735 168.364 393.598 168.344 393.448 168.344C393.195 168.344 392.967 168.409 392.763 168.54C392.56 168.67 392.399 168.861 392.28 169.113C392.163 169.363 392.105 169.67 392.105 170.033C392.105 170.397 392.164 170.705 392.282 170.957C392.401 171.209 392.564 171.4 392.77 171.53C392.976 171.66 393.211 171.726 393.475 171.726C393.719 171.726 393.932 171.676 394.114 171.576C394.297 171.477 394.438 171.336 394.538 171.155C394.639 170.972 394.689 170.757 394.689 170.509L394.865 170.542H393.578V169.982H395.346V170.494C395.346 170.871 395.265 171.199 395.104 171.477C394.944 171.754 394.723 171.968 394.441 172.119C394.16 172.269 393.838 172.345 393.475 172.345C393.068 172.345 392.711 172.251 392.403 172.064C392.097 171.876 391.859 171.611 391.687 171.267C391.516 170.921 391.43 170.511 391.43 170.037C391.43 169.678 391.48 169.356 391.58 169.071C391.679 168.785 391.819 168.543 391.999 168.344C392.181 168.144 392.394 167.991 392.638 167.885C392.884 167.778 393.153 167.725 393.444 167.725C393.687 167.725 393.913 167.761 394.123 167.832C394.333 167.904 394.521 168.006 394.685 168.138C394.85 168.269 394.987 168.426 395.095 168.608C395.204 168.788 395.277 168.987 395.315 169.207H394.619ZM396.154 172.283V168.911H396.784V169.46H396.826C396.896 169.274 397.011 169.129 397.171 169.025C397.33 168.919 397.521 168.867 397.744 168.867C397.969 168.867 398.158 168.919 398.31 169.025C398.464 169.13 398.578 169.275 398.651 169.46H398.686C398.766 169.279 398.895 169.136 399.07 169.029C399.246 168.921 399.455 168.867 399.698 168.867C400.004 168.867 400.254 168.963 400.447 169.154C400.642 169.346 400.739 169.635 400.739 170.022V172.283H400.082V170.083C400.082 169.855 400.02 169.689 399.896 169.587C399.771 169.484 399.623 169.433 399.45 169.433C399.236 169.433 399.07 169.499 398.952 169.631C398.833 169.761 398.774 169.929 398.774 170.134V172.283H398.119V170.041C398.119 169.858 398.062 169.711 397.948 169.6C397.834 169.489 397.685 169.433 397.502 169.433C397.378 169.433 397.263 169.466 397.158 169.532C397.054 169.596 396.97 169.686 396.905 169.802C396.842 169.918 396.811 170.052 396.811 170.204V172.283H396.154ZM402.6 172.358C402.387 172.358 402.194 172.318 402.021 172.239C401.848 172.159 401.711 172.043 401.61 171.89C401.511 171.738 401.461 171.551 401.461 171.33C401.461 171.14 401.497 170.983 401.571 170.86C401.644 170.737 401.743 170.64 401.867 170.568C401.991 170.497 402.131 170.443 402.284 170.406C402.438 170.369 402.595 170.342 402.754 170.322C402.956 170.299 403.12 170.28 403.246 170.265C403.372 170.249 403.463 170.224 403.52 170.189C403.578 170.153 403.606 170.096 403.606 170.017V170.002C403.606 169.81 403.552 169.662 403.444 169.556C403.337 169.451 403.177 169.398 402.965 169.398C402.744 169.398 402.57 169.447 402.442 169.545C402.316 169.642 402.229 169.749 402.181 169.868L401.564 169.727C401.637 169.522 401.744 169.357 401.885 169.231C402.027 169.104 402.19 169.012 402.374 168.955C402.559 168.896 402.753 168.867 402.956 168.867C403.091 168.867 403.234 168.883 403.384 168.915C403.537 168.946 403.679 169.003 403.81 169.086C403.944 169.17 404.053 169.289 404.138 169.444C404.222 169.598 404.265 169.798 404.265 170.044V172.283H403.624V171.822H403.597C403.555 171.907 403.491 171.991 403.406 172.073C403.321 172.155 403.212 172.223 403.079 172.277C402.946 172.331 402.786 172.358 402.6 172.358ZM402.743 171.831C402.925 171.831 403.08 171.795 403.209 171.723C403.339 171.652 403.438 171.558 403.505 171.442C403.574 171.325 403.608 171.2 403.608 171.067V170.632C403.585 170.656 403.54 170.677 403.472 170.698C403.406 170.717 403.331 170.734 403.246 170.748C403.161 170.762 403.078 170.774 402.998 170.786C402.917 170.796 402.85 170.805 402.796 170.812C402.669 170.828 402.552 170.855 402.447 170.893C402.343 170.931 402.259 170.986 402.196 171.058C402.135 171.128 402.104 171.222 402.104 171.339C402.104 171.502 402.164 171.625 402.284 171.708C402.404 171.79 402.557 171.831 402.743 171.831ZM405.139 172.283V168.911H405.796V172.283H405.139ZM405.471 168.39C405.357 168.39 405.259 168.352 405.177 168.276C405.096 168.198 405.056 168.106 405.056 167.999C405.056 167.891 405.096 167.799 405.177 167.723C405.259 167.645 405.357 167.606 405.471 167.606C405.585 167.606 405.682 167.645 405.763 167.723C405.845 167.799 405.886 167.891 405.886 167.999C405.886 168.106 405.845 168.198 405.763 168.276C405.682 168.352 405.585 168.39 405.471 168.39ZM407.336 167.786V172.283H406.679V167.786H407.336Z"
|
|
fill="#1B2029"
|
|
/>
|
|
<path
|
|
d="M366.73 175.429H367.196V177.981C367.196 178.244 367.134 178.48 367.01 178.687C366.887 178.892 366.713 179.055 366.489 179.174C366.264 179.292 366.001 179.351 365.698 179.351C365.396 179.351 365.132 179.292 364.908 179.174C364.683 179.055 364.509 178.892 364.385 178.687C364.262 178.48 364.2 178.244 364.2 177.981V175.429H364.667V177.943C364.667 178.131 364.708 178.299 364.791 178.446C364.874 178.591 364.992 178.706 365.145 178.79C365.299 178.873 365.484 178.914 365.698 178.914C365.913 178.914 366.097 178.873 366.252 178.79C366.406 178.706 366.524 178.591 366.605 178.446C366.688 178.299 366.73 178.131 366.73 177.943V175.429ZM370.116 177.04L369.717 177.153C369.692 177.086 369.655 177.022 369.606 176.959C369.558 176.895 369.493 176.842 369.41 176.801C369.327 176.759 369.221 176.739 369.092 176.739C368.915 176.739 368.768 176.78 368.65 176.861C368.533 176.941 368.475 177.044 368.475 177.168C368.475 177.278 368.515 177.365 368.595 177.429C368.676 177.493 368.801 177.547 368.972 177.589L369.401 177.695C369.659 177.758 369.852 177.854 369.979 177.983C370.105 178.111 370.169 178.276 370.169 178.478C370.169 178.643 370.121 178.791 370.026 178.922C369.932 179.052 369.8 179.155 369.63 179.231C369.461 179.306 369.264 179.344 369.04 179.344C368.745 179.344 368.501 179.28 368.307 179.152C368.114 179.024 367.992 178.837 367.94 178.591L368.362 178.485C368.402 178.641 368.478 178.758 368.59 178.835C368.703 178.913 368.85 178.952 369.032 178.952C369.239 178.952 369.403 178.908 369.525 178.82C369.648 178.731 369.71 178.625 369.71 178.5C369.71 178.4 369.674 178.316 369.604 178.248C369.534 178.179 369.426 178.128 369.28 178.094L368.799 177.981C368.534 177.918 368.339 177.821 368.215 177.689C368.092 177.556 368.031 177.39 368.031 177.19C368.031 177.027 368.077 176.883 368.168 176.758C368.261 176.632 368.387 176.534 368.546 176.462C368.707 176.391 368.889 176.355 369.092 176.355C369.378 176.355 369.603 176.418 369.766 176.543C369.93 176.668 370.047 176.834 370.116 177.04ZM372.049 179.344C371.771 179.344 371.531 179.282 371.329 179.159C371.128 179.035 370.973 178.862 370.864 178.64C370.756 178.416 370.702 178.157 370.702 177.86C370.702 177.564 370.756 177.303 370.864 177.078C370.973 176.85 371.125 176.673 371.319 176.547C371.515 176.419 371.743 176.355 372.004 176.355C372.155 176.355 372.304 176.38 372.45 176.43C372.597 176.48 372.731 176.562 372.851 176.675C372.972 176.786 373.068 176.934 373.139 177.119C373.211 177.303 373.246 177.53 373.246 177.8V177.988H371.018V177.604H372.795C372.795 177.441 372.762 177.296 372.697 177.168C372.633 177.04 372.541 176.939 372.422 176.865C372.304 176.791 372.165 176.754 372.004 176.754C371.827 176.754 371.674 176.798 371.545 176.886C371.417 176.972 371.319 177.085 371.25 177.224C371.181 177.364 371.146 177.513 371.146 177.672V177.928C371.146 178.147 371.184 178.332 371.259 178.483C371.336 178.634 371.442 178.749 371.577 178.828C371.713 178.906 371.87 178.945 372.049 178.945C372.166 178.945 372.272 178.928 372.366 178.896C372.461 178.862 372.543 178.812 372.612 178.745C372.681 178.677 372.735 178.593 372.772 178.493L373.201 178.613C373.156 178.759 373.08 178.887 372.974 178.997C372.867 179.106 372.735 179.192 372.578 179.253C372.421 179.313 372.245 179.344 372.049 179.344ZM373.922 179.283V176.392H374.351V176.829H374.381C374.434 176.686 374.529 176.57 374.667 176.481C374.805 176.392 374.961 176.347 375.134 176.347C375.167 176.347 375.208 176.348 375.257 176.349C375.306 176.35 375.343 176.352 375.368 176.355V176.806C375.353 176.803 375.318 176.797 375.264 176.79C375.211 176.781 375.156 176.776 375.097 176.776C374.956 176.776 374.831 176.806 374.72 176.865C374.611 176.923 374.524 177.003 374.46 177.106C374.398 177.207 374.366 177.323 374.366 177.454V179.283H373.922ZM376.338 177.544V179.283H375.894V176.392H376.323V176.844H376.361C376.429 176.697 376.532 176.579 376.67 176.49C376.808 176.4 376.986 176.355 377.204 176.355C377.4 176.355 377.571 176.395 377.718 176.475C377.865 176.554 377.979 176.675 378.06 176.837C378.142 176.997 378.183 177.2 378.183 177.446V179.283H377.739V177.477C377.739 177.249 377.68 177.072 377.562 176.946C377.444 176.818 377.282 176.754 377.076 176.754C376.934 176.754 376.808 176.785 376.696 176.846C376.585 176.907 376.498 176.997 376.434 177.115C376.37 177.233 376.338 177.376 376.338 177.544ZM379.845 179.351C379.662 179.351 379.496 179.317 379.346 179.248C379.197 179.177 379.078 179.076 378.991 178.945C378.903 178.812 378.859 178.651 378.859 178.463C378.859 178.297 378.892 178.163 378.957 178.06C379.022 177.956 379.109 177.874 379.218 177.815C379.328 177.756 379.448 177.712 379.58 177.684C379.713 177.653 379.846 177.63 379.981 177.612C380.156 177.589 380.299 177.572 380.408 177.561C380.518 177.549 380.599 177.528 380.649 177.499C380.7 177.47 380.726 177.42 380.726 177.349V177.333C380.726 177.148 380.675 177.003 380.574 176.901C380.473 176.798 380.321 176.746 380.116 176.746C379.904 176.746 379.738 176.793 379.617 176.886C379.497 176.978 379.412 177.078 379.363 177.183L378.942 177.032C379.017 176.857 379.117 176.72 379.243 176.622C379.37 176.523 379.508 176.454 379.657 176.415C379.807 176.375 379.956 176.355 380.101 176.355C380.194 176.355 380.301 176.366 380.421 176.389C380.543 176.41 380.66 176.455 380.773 176.522C380.887 176.59 380.982 176.692 381.057 176.829C381.132 176.966 381.17 177.149 381.17 177.379V179.283H380.726V178.892H380.703C380.673 178.955 380.623 179.022 380.553 179.093C380.483 179.165 380.389 179.226 380.272 179.276C380.156 179.326 380.013 179.351 379.845 179.351ZM379.913 178.952C380.089 178.952 380.237 178.918 380.357 178.849C380.479 178.78 380.57 178.69 380.632 178.581C380.695 178.472 380.726 178.357 380.726 178.237V177.83C380.707 177.853 380.666 177.874 380.602 177.892C380.539 177.91 380.466 177.926 380.383 177.94C380.302 177.952 380.222 177.963 380.144 177.973C380.068 177.982 380.006 177.99 379.958 177.996C379.843 178.011 379.735 178.035 379.634 178.069C379.535 178.102 379.455 178.152 379.393 178.218C379.333 178.283 379.303 178.372 379.303 178.485C379.303 178.64 379.36 178.756 379.474 178.835C379.59 178.913 379.736 178.952 379.913 178.952ZM381.981 179.283V176.392H382.41V176.844H382.448C382.508 176.69 382.605 176.57 382.739 176.485C382.874 176.398 383.035 176.355 383.223 176.355C383.414 176.355 383.572 176.398 383.699 176.485C383.827 176.57 383.927 176.69 383.998 176.844H384.029C384.103 176.695 384.214 176.576 384.362 176.488C384.51 176.399 384.687 176.355 384.894 176.355C385.153 176.355 385.364 176.436 385.529 176.598C385.693 176.758 385.775 177.008 385.775 177.349V179.283H385.331V177.349C385.331 177.135 385.273 176.983 385.156 176.891C385.039 176.8 384.902 176.754 384.744 176.754C384.541 176.754 384.383 176.815 384.271 176.938C384.16 177.06 384.104 177.214 384.104 177.401V179.283H383.652V177.303C383.652 177.139 383.599 177.007 383.492 176.906C383.386 176.805 383.248 176.754 383.08 176.754C382.965 176.754 382.857 176.785 382.756 176.846C382.657 176.907 382.577 176.993 382.515 177.102C382.455 177.21 382.425 177.335 382.425 177.477V179.283H381.981ZM387.799 179.344C387.521 179.344 387.281 179.282 387.079 179.159C386.878 179.035 386.723 178.862 386.614 178.64C386.506 178.416 386.452 178.157 386.452 177.86C386.452 177.564 386.506 177.303 386.614 177.078C386.723 176.85 386.875 176.673 387.069 176.547C387.265 176.419 387.493 176.355 387.754 176.355C387.905 176.355 388.053 176.38 388.2 176.43C388.347 176.48 388.481 176.562 388.601 176.675C388.722 176.786 388.818 176.934 388.889 177.119C388.961 177.303 388.996 177.53 388.996 177.8V177.988H386.768V177.604H388.545C388.545 177.441 388.512 177.296 388.447 177.168C388.383 177.04 388.291 176.939 388.172 176.865C388.054 176.791 387.915 176.754 387.754 176.754C387.577 176.754 387.424 176.798 387.295 176.886C387.167 176.972 387.068 177.085 386.999 177.224C386.93 177.364 386.896 177.513 386.896 177.672V177.928C386.896 178.147 386.934 178.332 387.009 178.483C387.085 178.634 387.191 178.749 387.327 178.828C387.462 178.906 387.62 178.945 387.799 178.945C387.916 178.945 388.021 178.928 388.116 178.896C388.211 178.862 388.293 178.812 388.362 178.745C388.431 178.677 388.484 178.593 388.522 178.493L388.951 178.613C388.906 178.759 388.83 178.887 388.723 178.997C388.617 179.106 388.485 179.192 388.328 179.253C388.171 179.313 387.995 179.344 387.799 179.344Z"
|
|
fill="#5A6D91"
|
|
/>
|
|
<g clip-path="url(#clip7_4955_16369)">
|
|
<path
|
|
fill-rule="evenodd"
|
|
clip-rule="evenodd"
|
|
d="M473.708 171.575C473.708 171.087 474.104 170.692 474.591 170.692H477.241C477.729 170.692 478.125 171.087 478.125 171.575V174.225C478.125 174.713 477.729 175.108 477.241 175.108H476.358V175.992C476.358 176.48 475.963 176.875 475.475 176.875H472.825C472.337 176.875 471.941 176.48 471.941 175.992V173.342C471.941 172.854 472.337 172.458 472.825 172.458H473.708V171.575ZM474.591 171.354H477.241C477.363 171.354 477.462 171.453 477.462 171.575V174.225C477.462 174.347 477.363 174.446 477.241 174.446H474.591C474.469 174.446 474.371 174.347 474.371 174.225V171.575C474.371 171.453 474.469 171.354 474.591 171.354ZM473.708 173.121H472.825C472.703 173.121 472.604 173.22 472.604 173.342V175.992C472.604 176.114 472.703 176.212 472.825 176.212H475.475C475.597 176.212 475.696 176.114 475.696 175.992V175.108H474.591C474.104 175.108 473.708 174.713 473.708 174.225V173.121Z"
|
|
fill="#1B2029"
|
|
/>
|
|
</g>
|
|
<path
|
|
d="M488.284 171.133C488.284 171.621 488.68 172.017 489.168 172.017C489.655 172.017 490.051 171.621 490.051 171.133C490.051 170.645 489.655 170.25 489.168 170.25C488.68 170.25 488.284 170.645 488.284 171.133Z"
|
|
fill="#1B2029"
|
|
/>
|
|
<path
|
|
d="M489.168 174.667C488.68 174.667 488.284 174.271 488.284 173.783C488.284 173.295 488.68 172.9 489.168 172.9C489.655 172.9 490.051 173.295 490.051 173.783C490.051 174.271 489.655 174.667 489.168 174.667Z"
|
|
fill="#1B2029"
|
|
/>
|
|
<path
|
|
d="M489.168 177.317C488.68 177.317 488.284 176.921 488.284 176.433C488.284 175.945 488.68 175.55 489.168 175.55C489.655 175.55 490.051 175.945 490.051 176.433C490.051 176.921 489.655 177.317 489.168 177.317Z"
|
|
fill="#1B2029"
|
|
/>
|
|
<path
|
|
d="M346.56 201.567V197.07H349.349V197.654H347.239V199.024H349.149V199.606H347.239V201.567H346.56ZM351.1 201.641C350.887 201.641 350.693 201.602 350.521 201.523C350.348 201.442 350.211 201.326 350.11 201.174C350.01 201.021 349.961 200.835 349.961 200.614C349.961 200.423 349.997 200.267 350.07 200.144C350.144 200.021 350.242 199.923 350.367 199.852C350.491 199.78 350.63 199.726 350.784 199.689C350.938 199.653 351.094 199.625 351.254 199.606C351.456 199.582 351.62 199.563 351.746 199.549C351.872 199.533 351.963 199.507 352.02 199.472C352.077 199.437 352.106 199.38 352.106 199.301V199.285C352.106 199.093 352.052 198.945 351.943 198.839C351.837 198.734 351.677 198.681 351.465 198.681C351.244 198.681 351.07 198.73 350.942 198.829C350.816 198.925 350.729 199.033 350.681 199.151L350.064 199.011C350.137 198.806 350.244 198.64 350.384 198.515C350.526 198.387 350.69 198.295 350.874 198.238C351.059 198.179 351.252 198.15 351.456 198.15C351.591 198.15 351.733 198.166 351.884 198.198C352.036 198.229 352.178 198.286 352.31 198.37C352.443 198.453 352.552 198.572 352.637 198.727C352.722 198.881 352.765 199.081 352.765 199.327V201.567H352.123V201.106H352.097C352.055 201.19 351.991 201.274 351.906 201.356C351.821 201.438 351.712 201.506 351.579 201.56C351.446 201.614 351.286 201.641 351.1 201.641ZM351.243 201.114C351.424 201.114 351.58 201.078 351.708 201.007C351.839 200.935 351.938 200.841 352.005 200.726C352.074 200.609 352.108 200.483 352.108 200.35V199.915C352.085 199.939 352.039 199.961 351.972 199.981C351.906 200 351.831 200.017 351.746 200.032C351.661 200.045 351.578 200.057 351.498 200.069C351.417 200.079 351.35 200.088 351.296 200.095C351.168 200.112 351.052 200.139 350.947 200.177C350.843 200.215 350.759 200.27 350.696 200.341C350.635 200.412 350.604 200.505 350.604 200.622C350.604 200.785 350.664 200.908 350.784 200.991C350.904 201.073 351.057 201.114 351.243 201.114ZM356.404 198.194L355.181 201.567H354.478L353.253 198.194H353.958L354.812 200.789H354.847L355.699 198.194H356.404ZM358.327 201.635C358.01 201.635 357.734 201.562 357.499 201.417C357.263 201.272 357.08 201.07 356.95 200.809C356.82 200.549 356.754 200.244 356.754 199.896C356.754 199.546 356.82 199.24 356.95 198.978C357.08 198.716 357.263 198.512 357.499 198.367C357.734 198.222 358.01 198.15 358.327 198.15C358.643 198.15 358.919 198.222 359.154 198.367C359.39 198.512 359.573 198.716 359.703 198.978C359.834 199.24 359.899 199.546 359.899 199.896C359.899 200.244 359.834 200.549 359.703 200.809C359.573 201.07 359.39 201.272 359.154 201.417C358.919 201.562 358.643 201.635 358.327 201.635ZM358.329 201.084C358.534 201.084 358.704 201.029 358.838 200.921C358.973 200.813 359.072 200.669 359.137 200.489C359.203 200.308 359.236 200.11 359.236 199.893C359.236 199.678 359.203 199.481 359.137 199.301C359.072 199.119 358.973 198.973 358.838 198.864C358.704 198.754 358.534 198.699 358.329 198.699C358.122 198.699 357.951 198.754 357.815 198.864C357.68 198.973 357.58 199.119 357.514 199.301C357.45 199.481 357.418 199.678 357.418 199.893C357.418 200.11 357.45 200.308 357.514 200.489C357.58 200.669 357.68 200.813 357.815 200.921C357.951 201.029 358.122 201.084 358.329 201.084ZM360.632 201.567V198.194H361.266V198.73H361.301C361.363 198.548 361.471 198.405 361.626 198.302C361.783 198.196 361.96 198.143 362.158 198.143C362.199 198.143 362.247 198.145 362.303 198.148C362.36 198.151 362.404 198.154 362.437 198.159V198.787C362.41 198.779 362.363 198.771 362.296 198.763C362.229 198.752 362.161 198.747 362.094 198.747C361.939 198.747 361.8 198.78 361.679 198.846C361.559 198.91 361.464 199.001 361.394 199.116C361.323 199.23 361.288 199.361 361.288 199.507V201.567H360.632ZM363.005 201.567V198.194H363.661V201.567H363.005ZM363.336 197.674C363.222 197.674 363.124 197.635 363.042 197.559C362.962 197.482 362.921 197.39 362.921 197.283C362.921 197.174 362.962 197.082 363.042 197.006C363.124 196.928 363.222 196.89 363.336 196.89C363.45 196.89 363.548 196.928 363.628 197.006C363.71 197.082 363.751 197.174 363.751 197.283C363.751 197.39 363.71 197.482 363.628 197.559C363.548 197.635 363.45 197.674 363.336 197.674ZM366.119 198.194V198.721H364.277V198.194H366.119ZM364.771 197.386H365.427V200.576C365.427 200.704 365.446 200.8 365.484 200.864C365.522 200.927 365.571 200.97 365.631 200.994C365.693 201.016 365.759 201.026 365.831 201.026C365.884 201.026 365.93 201.023 365.97 201.016C366.009 201.008 366.04 201.002 366.062 200.998L366.18 201.54C366.142 201.555 366.088 201.57 366.018 201.584C365.948 201.6 365.86 201.609 365.754 201.611C365.582 201.613 365.421 201.583 365.271 201.518C365.122 201.454 365.001 201.354 364.909 201.22C364.817 201.085 364.771 200.916 364.771 200.712V197.386ZM368.263 201.635C367.93 201.635 367.644 201.564 367.404 201.422C367.165 201.278 366.981 201.077 366.851 200.818C366.722 200.557 366.657 200.252 366.657 199.902C366.657 199.557 366.722 199.252 366.851 198.989C366.981 198.725 367.162 198.52 367.395 198.372C367.629 198.224 367.903 198.15 368.216 198.15C368.407 198.15 368.591 198.181 368.77 198.244C368.948 198.307 369.109 198.406 369.251 198.541C369.393 198.676 369.505 198.85 369.587 199.066C369.669 199.279 369.71 199.539 369.71 199.845V200.078H367.028V199.586H369.066C369.066 199.413 369.031 199.26 368.961 199.127C368.891 198.992 368.792 198.886 368.664 198.809C368.538 198.731 368.391 198.692 368.221 198.692C368.036 198.692 367.875 198.738 367.738 198.829C367.602 198.918 367.496 199.035 367.422 199.18C367.348 199.323 367.312 199.479 367.312 199.648V200.032C367.312 200.257 367.351 200.449 367.43 200.607C367.511 200.765 367.623 200.886 367.766 200.969C367.91 201.051 368.077 201.092 368.269 201.092C368.394 201.092 368.507 201.075 368.609 201.04C368.712 201.003 368.8 200.949 368.875 200.877C368.95 200.805 369.007 200.717 369.046 200.611L369.668 200.723C369.618 200.906 369.529 201.067 369.4 201.204C369.273 201.34 369.112 201.447 368.919 201.523C368.727 201.597 368.508 201.635 368.263 201.635ZM372.965 199.017L372.37 199.123C372.345 199.047 372.306 198.974 372.252 198.905C372.199 198.837 372.127 198.78 372.037 198.736C371.946 198.692 371.832 198.67 371.696 198.67C371.51 198.67 371.355 198.712 371.231 198.796C371.106 198.878 371.044 198.984 371.044 199.114C371.044 199.227 371.086 199.317 371.169 199.386C371.253 199.455 371.387 199.511 371.573 199.555L372.109 199.678C372.419 199.75 372.651 199.861 372.803 200.01C372.955 200.159 373.031 200.353 373.031 200.592C373.031 200.794 372.973 200.974 372.856 201.132C372.74 201.289 372.578 201.411 372.37 201.501C372.164 201.59 371.925 201.635 371.652 201.635C371.275 201.635 370.966 201.554 370.728 201.393C370.489 201.231 370.343 201 370.289 200.702L370.923 200.605C370.963 200.77 371.044 200.895 371.167 200.98C371.29 201.064 371.45 201.106 371.648 201.106C371.863 201.106 372.035 201.061 372.164 200.972C372.293 200.881 372.357 200.77 372.357 200.64C372.357 200.535 372.318 200.446 372.239 200.374C372.161 200.303 372.042 200.248 371.881 200.212L371.31 200.087C370.995 200.015 370.762 199.901 370.611 199.744C370.462 199.588 370.387 199.389 370.387 199.149C370.387 198.95 370.443 198.776 370.554 198.626C370.666 198.477 370.819 198.361 371.015 198.277C371.212 198.192 371.436 198.15 371.69 198.15C372.054 198.15 372.341 198.229 372.55 198.387C372.76 198.544 372.898 198.754 372.965 199.017Z"
|
|
fill="#1B2029"
|
|
/>
|
|
<path
|
|
d="M492.955 201.567V201.171L494.439 199.547C494.614 199.356 494.757 199.191 494.87 199.05C494.983 198.908 495.066 198.775 495.12 198.651C495.176 198.525 495.204 198.393 495.204 198.255C495.204 198.097 495.166 197.96 495.089 197.845C495.015 197.729 494.912 197.64 494.782 197.577C494.652 197.514 494.505 197.482 494.343 197.482C494.17 197.482 494.019 197.518 493.89 197.59C493.763 197.66 493.664 197.759 493.594 197.887C493.525 198.014 493.491 198.163 493.491 198.334H492.973C492.973 198.071 493.033 197.84 493.155 197.641C493.276 197.442 493.442 197.286 493.651 197.175C493.862 197.064 494.098 197.008 494.36 197.008C494.624 197.008 494.857 197.064 495.061 197.175C495.264 197.286 495.424 197.436 495.54 197.625C495.655 197.814 495.713 198.024 495.713 198.255C495.713 198.421 495.683 198.583 495.623 198.741C495.564 198.897 495.462 199.072 495.316 199.265C495.171 199.457 494.969 199.691 494.712 199.968L493.702 201.048V201.084H495.792V201.567H492.955Z"
|
|
fill="#5A6D91"
|
|
/>
|
|
<mask id="path-63-inside-4_4955_16369" fill="white">
|
|
<path
|
|
d="M344.3 208.783C344.3 206.832 345.882 205.25 347.833 205.25H494.466C496.418 205.25 498 206.832 498 208.783V225.783C498 227.735 496.418 229.317 494.466 229.317H347.833C345.882 229.317 344.3 227.735 344.3 225.783V208.783Z"
|
|
/>
|
|
</mask>
|
|
<path
|
|
d="M344.3 208.783C344.3 206.832 345.882 205.25 347.833 205.25H494.466C496.418 205.25 498 206.832 498 208.783V225.783C498 227.735 496.418 229.317 494.466 229.317H347.833C345.882 229.317 344.3 227.735 344.3 225.783V208.783Z"
|
|
fill="white"
|
|
/>
|
|
<path
|
|
d="M344.3 205.25H498H344.3M498 225.783C498 227.857 496.319 229.537 494.246 229.537H348.054C345.981 229.537 344.3 227.857 344.3 225.783V225.783C344.3 227.613 345.882 229.096 347.833 229.096H494.466C496.418 229.096 498 227.613 498 225.783V225.783ZM498 225.783M344.3 229.317V205.25V229.317M344.3 229.317M498 205.25V229.317V205.25"
|
|
fill="#A8B3C8"
|
|
mask="url(#path-63-inside-4_4955_16369)"
|
|
/>
|
|
<rect
|
|
x="350.706"
|
|
y="213.081"
|
|
width="7.94004"
|
|
height="7.95729"
|
|
rx="0.883333"
|
|
fill="url(#pattern2_4955_16369)"
|
|
/>
|
|
<path
|
|
d="M364.607 215.783H363.887L365.505 211.286H366.289L367.908 215.783H367.187L365.916 212.103H365.881L364.607 215.783ZM364.728 214.022H367.064V214.593H364.728V214.022ZM368.504 215.783V212.411H369.134V212.96H369.176C369.246 212.774 369.361 212.629 369.521 212.525C369.681 212.419 369.872 212.367 370.094 212.367C370.319 212.367 370.508 212.419 370.661 212.525C370.814 212.63 370.928 212.775 371.001 212.96H371.036C371.117 212.779 371.245 212.636 371.42 212.529C371.596 212.421 371.805 212.367 372.048 212.367C372.354 212.367 372.604 212.463 372.797 212.654C372.992 212.846 373.089 213.135 373.089 213.522V215.783H372.433V213.583C372.433 213.355 372.37 213.189 372.246 213.087C372.121 212.984 371.973 212.933 371.8 212.933C371.586 212.933 371.42 212.999 371.302 213.131C371.183 213.261 371.124 213.429 371.124 213.634V215.783H370.47V213.541C370.47 213.358 370.412 213.211 370.298 213.1C370.184 212.989 370.035 212.933 369.853 212.933C369.728 212.933 369.613 212.966 369.508 213.032C369.404 213.096 369.32 213.186 369.255 213.302C369.192 213.418 369.161 213.552 369.161 213.704V215.783H368.504ZM374.951 215.858C374.737 215.858 374.544 215.818 374.371 215.739C374.198 215.659 374.061 215.543 373.96 215.39C373.861 215.238 373.811 215.051 373.811 214.83C373.811 214.64 373.848 214.483 373.921 214.36C373.994 214.237 374.093 214.14 374.217 214.068C374.342 213.997 374.481 213.943 374.634 213.906C374.788 213.869 374.945 213.842 375.104 213.822C375.306 213.799 375.47 213.78 375.596 213.765C375.722 213.749 375.814 213.724 375.871 213.689C375.928 213.653 375.956 213.596 375.956 213.517V213.502C375.956 213.31 375.902 213.162 375.794 213.056C375.687 212.951 375.527 212.898 375.315 212.898C375.094 212.898 374.92 212.947 374.792 213.045C374.667 213.142 374.579 213.249 374.531 213.368L373.914 213.227C373.987 213.022 374.094 212.857 374.235 212.731C374.377 212.604 374.54 212.512 374.724 212.455C374.909 212.396 375.103 212.367 375.306 212.367C375.441 212.367 375.584 212.383 375.734 212.415C375.887 212.446 376.029 212.503 376.16 212.586C376.294 212.67 376.403 212.789 376.488 212.944C376.573 213.098 376.615 213.298 376.615 213.544V215.783H375.974V215.322H375.947C375.905 215.407 375.841 215.491 375.756 215.573C375.672 215.655 375.562 215.723 375.429 215.777C375.296 215.831 375.136 215.858 374.951 215.858ZM375.093 215.331C375.275 215.331 375.43 215.295 375.559 215.223C375.689 215.152 375.788 215.058 375.855 214.942C375.924 214.825 375.958 214.7 375.958 214.567V214.132C375.935 214.156 375.89 214.177 375.822 214.198C375.756 214.217 375.681 214.234 375.596 214.248C375.511 214.262 375.429 214.274 375.348 214.286C375.267 214.296 375.2 214.305 375.146 214.312C375.019 214.328 374.902 214.355 374.797 214.393C374.693 214.431 374.609 214.486 374.547 214.558C374.485 214.628 374.454 214.722 374.454 214.839C374.454 215.002 374.514 215.125 374.634 215.208C374.754 215.29 374.907 215.331 375.093 215.331ZM377.419 215.783V215.333L379.246 213.012V212.982H377.478V212.411H380.065V212.889L378.308 215.182V215.212H380.127V215.783H377.419ZM382.225 215.851C381.909 215.851 381.633 215.779 381.397 215.634C381.162 215.489 380.979 215.286 380.848 215.026C380.718 214.765 380.653 214.461 380.653 214.112C380.653 213.762 380.718 213.457 380.848 213.194C380.979 212.932 381.162 212.729 381.397 212.584C381.633 212.439 381.909 212.367 382.225 212.367C382.541 212.367 382.817 212.439 383.053 212.584C383.289 212.729 383.472 212.932 383.602 213.194C383.732 213.457 383.797 213.762 383.797 214.112C383.797 214.461 383.732 214.765 383.602 215.026C383.472 215.286 383.289 215.489 383.053 215.634C382.817 215.779 382.541 215.851 382.225 215.851ZM382.227 215.3C382.432 215.3 382.602 215.246 382.737 215.138C382.872 215.029 382.971 214.885 383.035 214.705C383.101 214.525 383.134 214.327 383.134 214.11C383.134 213.895 383.101 213.697 383.035 213.517C382.971 213.336 382.872 213.19 382.737 213.08C382.602 212.971 382.432 212.916 382.227 212.916C382.021 212.916 381.85 212.971 381.714 213.08C381.579 213.19 381.479 213.336 381.413 213.517C381.348 213.697 381.316 213.895 381.316 214.11C381.316 214.327 381.348 214.525 381.413 214.705C381.479 214.885 381.579 215.029 381.714 215.138C381.85 215.246 382.021 215.3 382.227 215.3ZM385.187 213.781V215.783H384.53V212.411H385.16V212.96H385.202C385.28 212.781 385.401 212.637 385.567 212.529C385.734 212.421 385.944 212.367 386.197 212.367C386.427 212.367 386.628 212.415 386.801 212.512C386.973 212.607 387.107 212.749 387.203 212.938C387.298 213.126 387.345 213.36 387.345 213.638V215.783H386.689V213.717C386.689 213.473 386.625 213.282 386.498 213.144C386.37 213.005 386.195 212.935 385.973 212.935C385.821 212.935 385.685 212.968 385.567 213.034C385.45 213.1 385.357 213.197 385.288 213.324C385.22 213.45 385.187 213.602 385.187 213.781Z"
|
|
fill="#1B2029"
|
|
/>
|
|
<path
|
|
d="M366.73 218.929H367.196V221.481C367.196 221.744 367.134 221.98 367.01 222.187C366.887 222.392 366.713 222.555 366.489 222.674C366.264 222.792 366.001 222.851 365.698 222.851C365.396 222.851 365.132 222.792 364.908 222.674C364.683 222.555 364.509 222.392 364.385 222.187C364.262 221.98 364.2 221.744 364.2 221.481V218.929H364.667V221.443C364.667 221.631 364.708 221.799 364.791 221.946C364.874 222.091 364.992 222.206 365.145 222.29C365.299 222.373 365.484 222.414 365.698 222.414C365.913 222.414 366.097 222.373 366.252 222.29C366.406 222.206 366.524 222.091 366.605 221.946C366.688 221.799 366.73 221.631 366.73 221.443V218.929ZM370.116 220.54L369.717 220.653C369.692 220.586 369.655 220.522 369.606 220.459C369.558 220.395 369.493 220.342 369.41 220.301C369.327 220.259 369.221 220.239 369.092 220.239C368.915 220.239 368.768 220.28 368.65 220.361C368.533 220.441 368.475 220.544 368.475 220.668C368.475 220.778 368.515 220.865 368.595 220.929C368.676 220.993 368.801 221.047 368.972 221.089L369.401 221.195C369.659 221.258 369.852 221.354 369.979 221.483C370.105 221.611 370.169 221.776 370.169 221.978C370.169 222.143 370.121 222.291 370.026 222.422C369.932 222.552 369.8 222.655 369.63 222.731C369.461 222.806 369.264 222.844 369.04 222.844C368.745 222.844 368.501 222.78 368.307 222.652C368.114 222.524 367.992 222.337 367.94 222.091L368.362 221.985C368.402 222.141 368.478 222.258 368.59 222.335C368.703 222.413 368.85 222.452 369.032 222.452C369.239 222.452 369.403 222.408 369.525 222.32C369.648 222.231 369.71 222.125 369.71 222C369.71 221.9 369.674 221.816 369.604 221.748C369.534 221.679 369.426 221.628 369.28 221.594L368.799 221.481C368.534 221.418 368.339 221.321 368.215 221.189C368.092 221.056 368.031 220.89 368.031 220.69C368.031 220.527 368.077 220.383 368.168 220.258C368.261 220.132 368.387 220.034 368.546 219.962C368.707 219.891 368.889 219.855 369.092 219.855C369.378 219.855 369.603 219.918 369.766 220.043C369.93 220.168 370.047 220.334 370.116 220.54ZM372.049 222.844C371.771 222.844 371.531 222.782 371.329 222.659C371.128 222.535 370.973 222.362 370.864 222.14C370.756 221.916 370.702 221.657 370.702 221.36C370.702 221.064 370.756 220.803 370.864 220.578C370.973 220.35 371.125 220.173 371.319 220.047C371.515 219.919 371.743 219.855 372.004 219.855C372.155 219.855 372.304 219.88 372.45 219.93C372.597 219.98 372.731 220.062 372.851 220.175C372.972 220.286 373.068 220.434 373.139 220.619C373.211 220.803 373.246 221.03 373.246 221.3V221.488H371.018V221.104H372.795C372.795 220.941 372.762 220.796 372.697 220.668C372.633 220.54 372.541 220.439 372.422 220.365C372.304 220.291 372.165 220.254 372.004 220.254C371.827 220.254 371.674 220.298 371.545 220.386C371.417 220.472 371.319 220.585 371.25 220.724C371.181 220.864 371.146 221.013 371.146 221.172V221.428C371.146 221.647 371.184 221.832 371.259 221.983C371.336 222.134 371.442 222.249 371.577 222.328C371.713 222.406 371.87 222.445 372.049 222.445C372.166 222.445 372.272 222.428 372.366 222.396C372.461 222.362 372.543 222.312 372.612 222.245C372.681 222.177 372.735 222.093 372.772 221.993L373.201 222.113C373.156 222.259 373.08 222.387 372.974 222.497C372.867 222.606 372.735 222.692 372.578 222.753C372.421 222.813 372.245 222.844 372.049 222.844ZM373.922 222.783V219.892H374.351V220.329H374.381C374.434 220.186 374.529 220.07 374.667 219.981C374.805 219.892 374.961 219.847 375.134 219.847C375.167 219.847 375.208 219.848 375.257 219.849C375.306 219.85 375.343 219.852 375.368 219.855V220.306C375.353 220.303 375.318 220.297 375.264 220.29C375.211 220.281 375.156 220.276 375.097 220.276C374.956 220.276 374.831 220.306 374.72 220.365C374.611 220.423 374.524 220.503 374.46 220.606C374.398 220.707 374.366 220.823 374.366 220.954V222.783H373.922ZM376.338 221.044V222.783H375.894V219.892H376.323V220.344H376.361C376.429 220.197 376.532 220.079 376.67 219.99C376.808 219.9 376.986 219.855 377.204 219.855C377.4 219.855 377.571 219.895 377.718 219.975C377.865 220.054 377.979 220.175 378.06 220.337C378.142 220.497 378.183 220.7 378.183 220.946V222.783H377.739V220.977C377.739 220.749 377.68 220.572 377.562 220.446C377.444 220.318 377.282 220.254 377.076 220.254C376.934 220.254 376.808 220.285 376.696 220.346C376.585 220.407 376.498 220.497 376.434 220.615C376.37 220.733 376.338 220.876 376.338 221.044ZM379.845 222.851C379.662 222.851 379.496 222.817 379.346 222.748C379.197 222.677 379.078 222.576 378.991 222.445C378.903 222.312 378.859 222.151 378.859 221.963C378.859 221.797 378.892 221.663 378.957 221.56C379.022 221.456 379.109 221.374 379.218 221.315C379.328 221.256 379.448 221.212 379.58 221.184C379.713 221.153 379.846 221.13 379.981 221.112C380.156 221.089 380.299 221.072 380.408 221.061C380.518 221.049 380.599 221.028 380.649 220.999C380.7 220.97 380.726 220.92 380.726 220.849V220.833C380.726 220.648 380.675 220.503 380.574 220.401C380.473 220.298 380.321 220.246 380.116 220.246C379.904 220.246 379.738 220.293 379.617 220.386C379.497 220.478 379.412 220.578 379.363 220.683L378.942 220.532C379.017 220.357 379.117 220.22 379.243 220.122C379.37 220.023 379.508 219.954 379.657 219.915C379.807 219.875 379.956 219.855 380.101 219.855C380.194 219.855 380.301 219.866 380.421 219.889C380.543 219.91 380.66 219.955 380.773 220.022C380.887 220.09 380.982 220.192 381.057 220.329C381.132 220.466 381.17 220.649 381.17 220.879V222.783H380.726V222.392H380.703C380.673 222.455 380.623 222.522 380.553 222.593C380.483 222.665 380.389 222.726 380.272 222.776C380.156 222.826 380.013 222.851 379.845 222.851ZM379.913 222.452C380.089 222.452 380.237 222.418 380.357 222.349C380.479 222.28 380.57 222.19 380.632 222.081C380.695 221.972 380.726 221.857 380.726 221.737V221.33C380.707 221.353 380.666 221.374 380.602 221.392C380.539 221.41 380.466 221.426 380.383 221.44C380.302 221.452 380.222 221.463 380.144 221.473C380.068 221.482 380.006 221.49 379.958 221.496C379.843 221.511 379.735 221.535 379.634 221.569C379.535 221.602 379.455 221.652 379.393 221.718C379.333 221.783 379.303 221.872 379.303 221.985C379.303 222.14 379.36 222.256 379.474 222.335C379.59 222.413 379.736 222.452 379.913 222.452ZM381.981 222.783V219.892H382.41V220.344H382.448C382.508 220.19 382.605 220.07 382.739 219.985C382.874 219.898 383.035 219.855 383.223 219.855C383.414 219.855 383.572 219.898 383.699 219.985C383.827 220.07 383.927 220.19 383.998 220.344H384.029C384.103 220.195 384.214 220.076 384.362 219.988C384.51 219.899 384.687 219.855 384.894 219.855C385.153 219.855 385.364 219.936 385.529 220.098C385.693 220.258 385.775 220.508 385.775 220.849V222.783H385.331V220.849C385.331 220.635 385.273 220.483 385.156 220.391C385.039 220.3 384.902 220.254 384.744 220.254C384.541 220.254 384.383 220.315 384.271 220.438C384.16 220.56 384.104 220.714 384.104 220.901V222.783H383.652V220.803C383.652 220.639 383.599 220.507 383.492 220.406C383.386 220.305 383.248 220.254 383.08 220.254C382.965 220.254 382.857 220.285 382.756 220.346C382.657 220.407 382.577 220.493 382.515 220.602C382.455 220.71 382.425 220.835 382.425 220.977V222.783H381.981ZM387.799 222.844C387.521 222.844 387.281 222.782 387.079 222.659C386.878 222.535 386.723 222.362 386.614 222.14C386.506 221.916 386.452 221.657 386.452 221.36C386.452 221.064 386.506 220.803 386.614 220.578C386.723 220.35 386.875 220.173 387.069 220.047C387.265 219.919 387.493 219.855 387.754 219.855C387.905 219.855 388.053 219.88 388.2 219.93C388.347 219.98 388.481 220.062 388.601 220.175C388.722 220.286 388.818 220.434 388.889 220.619C388.961 220.803 388.996 221.03 388.996 221.3V221.488H386.768V221.104H388.545C388.545 220.941 388.512 220.796 388.447 220.668C388.383 220.54 388.291 220.439 388.172 220.365C388.054 220.291 387.915 220.254 387.754 220.254C387.577 220.254 387.424 220.298 387.295 220.386C387.167 220.472 387.068 220.585 386.999 220.724C386.93 220.864 386.896 221.013 386.896 221.172V221.428C386.896 221.647 386.934 221.832 387.009 221.983C387.085 222.134 387.191 222.249 387.327 222.328C387.462 222.406 387.62 222.445 387.799 222.445C387.916 222.445 388.021 222.428 388.116 222.396C388.211 222.362 388.293 222.312 388.362 222.245C388.431 222.177 388.484 222.093 388.522 221.993L388.951 222.113C388.906 222.259 388.83 222.387 388.723 222.497C388.617 222.606 388.485 222.692 388.328 222.753C388.171 222.813 387.995 222.844 387.799 222.844Z"
|
|
fill="#5A6D91"
|
|
/>
|
|
<g clip-path="url(#clip8_4955_16369)">
|
|
<path
|
|
d="M458.47 215.406C458.47 215.101 458.717 214.854 459.022 214.854H460.568C460.751 214.854 460.899 214.706 460.899 214.523C460.899 214.34 460.751 214.192 460.568 214.192H459.022C458.351 214.192 457.808 214.735 457.808 215.406V219.16C457.808 219.831 458.351 220.375 459.022 220.375H462.776C463.447 220.375 463.991 219.831 463.991 219.16V217.615C463.991 217.432 463.843 217.283 463.66 217.283C463.477 217.283 463.328 217.432 463.328 217.615V219.16C463.328 219.465 463.081 219.712 462.776 219.712H459.022C458.717 219.712 458.47 219.465 458.47 219.16V215.406Z"
|
|
fill="#1B2029"
|
|
/>
|
|
<path
|
|
d="M462.114 214.192C461.931 214.192 461.783 214.34 461.783 214.523C461.783 214.706 461.931 214.854 462.114 214.854H462.86L460.996 216.718C460.867 216.847 460.867 217.057 460.996 217.186C461.126 217.316 461.335 217.316 461.465 217.186L463.328 215.323V216.069C463.328 216.252 463.477 216.4 463.66 216.4C463.843 216.4 463.991 216.252 463.991 216.069V214.523C463.991 214.34 463.843 214.192 463.66 214.192H462.114Z"
|
|
fill="#1B2029"
|
|
/>
|
|
</g>
|
|
<g clip-path="url(#clip9_4955_16369)">
|
|
<path
|
|
fill-rule="evenodd"
|
|
clip-rule="evenodd"
|
|
d="M473.708 215.075C473.708 214.587 474.104 214.192 474.591 214.192H477.241C477.729 214.192 478.125 214.587 478.125 215.075V217.725C478.125 218.213 477.729 218.608 477.241 218.608H476.358V219.492C476.358 219.98 475.963 220.375 475.475 220.375H472.825C472.337 220.375 471.941 219.98 471.941 219.492V216.842C471.941 216.354 472.337 215.958 472.825 215.958H473.708V215.075ZM474.591 214.854H477.241C477.363 214.854 477.462 214.953 477.462 215.075V217.725C477.462 217.847 477.363 217.946 477.241 217.946H474.591C474.469 217.946 474.371 217.847 474.371 217.725V215.075C474.371 214.953 474.469 214.854 474.591 214.854ZM473.708 216.621H472.825C472.703 216.621 472.604 216.72 472.604 216.842V219.492C472.604 219.614 472.703 219.712 472.825 219.712H475.475C475.597 219.712 475.696 219.614 475.696 219.492V218.608H474.591C474.104 218.608 473.708 218.213 473.708 217.725V216.621Z"
|
|
fill="#1B2029"
|
|
/>
|
|
</g>
|
|
<path
|
|
d="M488.283 214.633C488.283 215.121 488.679 215.517 489.167 215.517C489.654 215.517 490.05 215.121 490.05 214.633C490.05 214.145 489.654 213.75 489.167 213.75C488.679 213.75 488.283 214.145 488.283 214.633Z"
|
|
fill="#1B2029"
|
|
/>
|
|
<path
|
|
d="M489.167 218.167C488.679 218.167 488.283 217.771 488.283 217.283C488.283 216.795 488.679 216.4 489.167 216.4C489.654 216.4 490.05 216.795 490.05 217.283C490.05 217.771 489.654 218.167 489.167 218.167Z"
|
|
fill="#1B2029"
|
|
/>
|
|
<path
|
|
d="M489.167 220.817C488.679 220.817 488.283 220.421 488.283 219.933C488.283 219.445 488.679 219.05 489.167 219.05C489.654 219.05 490.05 219.445 490.05 219.933C490.05 220.421 489.654 220.817 489.167 220.817Z"
|
|
fill="#1B2029"
|
|
/>
|
|
<mask id="path-77-inside-5_4955_16369" fill="white">
|
|
<path
|
|
d="M344.3 235.5C344.3 233.549 345.882 231.967 347.833 231.967H494.466C496.418 231.967 498 233.549 498 235.5V252.5C498 254.451 496.418 256.033 494.466 256.033H347.833C345.882 256.033 344.3 254.451 344.3 252.5V235.5Z"
|
|
/>
|
|
</mask>
|
|
<path
|
|
d="M344.3 235.5C344.3 233.549 345.882 231.967 347.833 231.967H494.466C496.418 231.967 498 233.549 498 235.5V252.5C498 254.451 496.418 256.033 494.466 256.033H347.833C345.882 256.033 344.3 254.451 344.3 252.5V235.5Z"
|
|
fill="white"
|
|
/>
|
|
<path
|
|
d="M344.3 231.967H498H344.3M498 252.5C498 254.573 496.319 256.254 494.246 256.254H348.054C345.981 256.254 344.3 254.573 344.3 252.5V252.5C344.3 254.329 345.882 255.813 347.833 255.813H494.466C496.418 255.813 498 254.329 498 252.5V252.5ZM498 252.5M344.3 256.033V231.967V256.033M344.3 256.033M498 231.967V256.033V231.967"
|
|
fill="#A8B3C8"
|
|
mask="url(#path-77-inside-5_4955_16369)"
|
|
/>
|
|
<g clip-path="url(#clip10_4955_16369)">
|
|
<rect
|
|
x="349.772"
|
|
y="238.844"
|
|
width="10.1893"
|
|
height="10.2093"
|
|
rx="5.09464"
|
|
fill="url(#pattern3_4955_16369)"
|
|
/>
|
|
</g>
|
|
<path
|
|
d="M364.906 238.003V242.5H364.227V238.003H364.906ZM366.498 240.497V242.5H365.841V239.127H366.472V239.676H366.513C366.591 239.498 366.712 239.354 366.878 239.246C367.045 239.138 367.255 239.083 367.508 239.083C367.738 239.083 367.939 239.132 368.112 239.228C368.285 239.323 368.418 239.465 368.514 239.654C368.609 239.843 368.656 240.077 368.656 240.355V242.5H368V240.434C368 240.189 367.936 239.998 367.809 239.861C367.681 239.722 367.506 239.652 367.284 239.652C367.132 239.652 366.996 239.685 366.878 239.751C366.761 239.817 366.668 239.913 366.599 240.041C366.532 240.167 366.498 240.319 366.498 240.497ZM372.064 239.951L371.469 240.056C371.444 239.98 371.405 239.908 371.351 239.839C371.298 239.77 371.226 239.714 371.135 239.67C371.045 239.626 370.931 239.604 370.795 239.604C370.609 239.604 370.454 239.645 370.33 239.729C370.205 239.811 370.143 239.917 370.143 240.047C370.143 240.16 370.185 240.251 370.268 240.32C370.351 240.388 370.486 240.445 370.672 240.489L371.208 240.612C371.518 240.683 371.749 240.794 371.902 240.943C372.054 241.093 372.13 241.286 372.13 241.525C372.13 241.727 372.072 241.907 371.954 242.065C371.839 242.222 371.677 242.345 371.469 242.434C371.263 242.523 371.023 242.568 370.751 242.568C370.373 242.568 370.065 242.488 369.827 242.327C369.588 242.164 369.442 241.933 369.388 241.635L370.022 241.538C370.062 241.704 370.143 241.829 370.266 241.914C370.389 241.997 370.549 242.039 370.747 242.039C370.962 242.039 371.134 241.994 371.263 241.905C371.392 241.814 371.456 241.704 371.456 241.573C371.456 241.468 371.416 241.379 371.337 241.308C371.26 241.236 371.141 241.182 370.979 241.145L370.409 241.02C370.094 240.948 369.861 240.834 369.71 240.677C369.561 240.521 369.486 240.323 369.486 240.082C369.486 239.883 369.542 239.709 369.653 239.56C369.764 239.411 369.918 239.294 370.114 239.211C370.311 239.126 370.535 239.083 370.788 239.083C371.153 239.083 371.44 239.162 371.649 239.321C371.859 239.477 371.997 239.687 372.064 239.951ZM374.426 239.127V239.654H372.584V239.127H374.426ZM373.078 238.319H373.735V241.51C373.735 241.637 373.754 241.733 373.792 241.797C373.83 241.86 373.879 241.903 373.939 241.927C374 241.949 374.067 241.96 374.139 241.96C374.191 241.96 374.237 241.956 374.277 241.949C374.317 241.942 374.347 241.936 374.369 241.931L374.488 242.474C374.45 242.488 374.396 242.503 374.325 242.518C374.255 242.534 374.167 242.542 374.062 242.544C373.889 242.547 373.728 242.516 373.579 242.452C373.429 242.387 373.309 242.288 373.216 242.153C373.124 242.018 373.078 241.849 373.078 241.646V238.319ZM376.134 242.575C375.92 242.575 375.727 242.535 375.554 242.456C375.382 242.376 375.245 242.259 375.144 242.107C375.044 241.955 374.994 241.768 374.994 241.547C374.994 241.357 375.031 241.2 375.104 241.077C375.177 240.954 375.276 240.857 375.401 240.785C375.525 240.713 375.664 240.659 375.818 240.623C375.972 240.586 376.128 240.558 376.288 240.539C376.49 240.516 376.654 240.497 376.78 240.482C376.906 240.466 376.997 240.44 377.054 240.405C377.111 240.37 377.14 240.313 377.14 240.234V240.219C377.14 240.027 377.086 239.878 376.977 239.773C376.87 239.667 376.711 239.615 376.499 239.615C376.278 239.615 376.103 239.664 375.976 239.762C375.85 239.858 375.763 239.966 375.715 240.085L375.098 239.944C375.171 239.739 375.278 239.574 375.418 239.448C375.56 239.321 375.723 239.228 375.908 239.171C376.092 239.113 376.286 239.083 376.49 239.083C376.624 239.083 376.767 239.099 376.918 239.132C377.07 239.162 377.212 239.219 377.344 239.303C377.477 239.386 377.586 239.506 377.671 239.661C377.756 239.815 377.799 240.014 377.799 240.26V242.5H377.157V242.039H377.131C377.089 242.124 377.025 242.207 376.94 242.289C376.855 242.371 376.746 242.439 376.613 242.493C376.48 242.548 376.32 242.575 376.134 242.575ZM376.277 242.048C376.458 242.048 376.614 242.012 376.742 241.94C376.873 241.868 376.971 241.775 377.039 241.659C377.108 241.542 377.142 241.417 377.142 241.284V240.849C377.119 240.872 377.073 240.894 377.006 240.915C376.94 240.934 376.865 240.951 376.78 240.965C376.695 240.978 376.612 240.991 376.532 241.002C376.451 241.013 376.384 241.022 376.33 241.029C376.202 241.045 376.086 241.072 375.98 241.11C375.876 241.148 375.793 241.203 375.73 241.275C375.669 241.345 375.638 241.439 375.638 241.556C375.638 241.718 375.698 241.841 375.818 241.925C375.938 242.007 376.091 242.048 376.277 242.048ZM380.087 243.835C379.819 243.835 379.589 243.8 379.395 243.73C379.204 243.659 379.047 243.566 378.925 243.451C378.804 243.335 378.713 243.209 378.653 243.071L379.218 242.838C379.257 242.903 379.31 242.971 379.376 243.042C379.443 243.116 379.534 243.178 379.648 243.229C379.764 243.28 379.912 243.306 380.094 243.306C380.343 243.306 380.548 243.245 380.711 243.124C380.873 243.004 380.954 242.812 380.954 242.548V241.885H380.913C380.873 241.957 380.816 242.037 380.741 242.125C380.668 242.212 380.567 242.288 380.438 242.353C380.31 242.417 380.142 242.449 379.936 242.449C379.669 242.449 379.429 242.387 379.215 242.263C379.003 242.137 378.835 241.952 378.71 241.707C378.587 241.461 378.526 241.159 378.526 240.8C378.526 240.442 378.587 240.134 378.708 239.878C378.831 239.622 378.999 239.426 379.213 239.29C379.427 239.152 379.669 239.083 379.94 239.083C380.149 239.083 380.318 239.118 380.447 239.189C380.576 239.258 380.676 239.338 380.748 239.43C380.821 239.523 380.878 239.604 380.917 239.674H380.965V239.127H381.609V242.575C381.609 242.865 381.541 243.102 381.407 243.288C381.272 243.474 381.09 243.612 380.86 243.701C380.632 243.79 380.374 243.835 380.087 243.835ZM380.08 241.905C380.269 241.905 380.429 241.861 380.559 241.773C380.691 241.684 380.79 241.557 380.858 241.391C380.927 241.224 380.961 241.024 380.961 240.792C380.961 240.565 380.927 240.365 380.86 240.192C380.793 240.019 380.694 239.885 380.564 239.788C380.433 239.69 380.272 239.641 380.08 239.641C379.883 239.641 379.718 239.692 379.586 239.795C379.455 239.896 379.355 240.033 379.288 240.208C379.222 240.382 379.189 240.576 379.189 240.792C379.189 241.013 379.223 241.207 379.29 241.374C379.357 241.54 379.457 241.671 379.589 241.764C379.722 241.858 379.886 241.905 380.08 241.905ZM382.489 242.5V239.127H383.124V239.663H383.159C383.22 239.482 383.329 239.339 383.484 239.235C383.641 239.129 383.818 239.077 384.015 239.077C384.056 239.077 384.105 239.078 384.16 239.081C384.217 239.084 384.262 239.088 384.294 239.092V239.72C384.268 239.713 384.221 239.705 384.154 239.696C384.086 239.686 384.019 239.681 383.952 239.681C383.796 239.681 383.658 239.714 383.537 239.779C383.417 239.844 383.321 239.934 383.251 240.05C383.181 240.164 383.146 240.294 383.146 240.44V242.5H382.489ZM385.814 242.575C385.6 242.575 385.407 242.535 385.234 242.456C385.061 242.376 384.924 242.259 384.823 242.107C384.724 241.955 384.674 241.768 384.674 241.547C384.674 241.357 384.711 241.2 384.784 241.077C384.857 240.954 384.956 240.857 385.08 240.785C385.205 240.713 385.344 240.659 385.497 240.623C385.651 240.586 385.808 240.558 385.967 240.539C386.169 240.516 386.333 240.497 386.459 240.482C386.585 240.466 386.677 240.44 386.734 240.405C386.791 240.37 386.819 240.313 386.819 240.234V240.219C386.819 240.027 386.765 239.878 386.657 239.773C386.55 239.667 386.39 239.615 386.178 239.615C385.957 239.615 385.783 239.664 385.656 239.762C385.53 239.858 385.443 239.966 385.394 240.085L384.777 239.944C384.85 239.739 384.957 239.574 385.098 239.448C385.24 239.321 385.403 239.228 385.588 239.171C385.772 239.113 385.966 239.083 386.169 239.083C386.304 239.083 386.447 239.099 386.598 239.132C386.75 239.162 386.892 239.219 387.024 239.303C387.157 239.386 387.266 239.506 387.351 239.661C387.436 239.815 387.478 240.014 387.478 240.26V242.5H386.837V242.039H386.811C386.768 242.124 386.704 242.207 386.62 242.289C386.535 242.371 386.426 242.439 386.292 242.493C386.159 242.548 386 242.575 385.814 242.575ZM385.956 242.048C386.138 242.048 386.293 242.012 386.422 241.94C386.552 241.868 386.651 241.775 386.718 241.659C386.787 241.542 386.822 241.417 386.822 241.284V240.849C386.798 240.872 386.753 240.894 386.685 240.915C386.62 240.934 386.544 240.951 386.459 240.965C386.374 240.978 386.292 240.991 386.211 241.002C386.131 241.013 386.063 241.022 386.009 241.029C385.882 241.045 385.765 241.072 385.66 241.11C385.556 241.148 385.473 241.203 385.41 241.275C385.348 241.345 385.317 241.439 385.317 241.556C385.317 241.718 385.377 241.841 385.497 241.925C385.618 242.007 385.77 242.048 385.956 242.048ZM388.353 242.5V239.127H388.983V239.676H389.024C389.095 239.49 389.21 239.345 389.369 239.241C389.529 239.136 389.72 239.083 389.942 239.083C390.168 239.083 390.357 239.136 390.509 239.241C390.663 239.347 390.776 239.492 390.849 239.676H390.884C390.965 239.496 391.093 239.353 391.269 239.246C391.444 239.138 391.654 239.083 391.897 239.083C392.202 239.083 392.452 239.179 392.645 239.371C392.84 239.563 392.937 239.852 392.937 240.238V242.5H392.281V240.3C392.281 240.071 392.219 239.906 392.094 239.804C391.97 239.701 391.821 239.65 391.648 239.65C391.435 239.65 391.269 239.716 391.15 239.847C391.031 239.978 390.972 240.145 390.972 240.35V242.5H390.318V240.258C390.318 240.075 390.261 239.928 390.147 239.817C390.032 239.705 389.884 239.65 389.701 239.65C389.576 239.65 389.461 239.683 389.356 239.749C389.252 239.813 389.168 239.903 389.104 240.019C389.041 240.134 389.009 240.268 389.009 240.421V242.5H388.353Z"
|
|
fill="#1B2029"
|
|
/>
|
|
<path
|
|
d="M366.73 245.645H367.196V248.198C367.196 248.461 367.134 248.696 367.01 248.903C366.887 249.109 366.713 249.272 366.489 249.391C366.264 249.509 366.001 249.568 365.698 249.568C365.396 249.568 365.132 249.509 364.908 249.391C364.683 249.272 364.509 249.109 364.385 248.903C364.262 248.696 364.2 248.461 364.2 248.198V245.645H364.667V248.16C364.667 248.348 364.708 248.516 364.791 248.662C364.874 248.808 364.992 248.923 365.145 249.007C365.299 249.09 365.484 249.131 365.698 249.131C365.913 249.131 366.097 249.09 366.252 249.007C366.406 248.923 366.524 248.808 366.605 248.662C366.688 248.516 366.73 248.348 366.73 248.16V245.645ZM370.116 247.257L369.717 247.369C369.692 247.303 369.655 247.238 369.606 247.176C369.558 247.112 369.493 247.059 369.41 247.018C369.327 246.976 369.221 246.955 369.092 246.955C368.915 246.955 368.768 246.996 368.65 247.078C368.533 247.158 368.475 247.26 368.475 247.385C368.475 247.495 368.515 247.582 368.595 247.646C368.676 247.71 368.801 247.763 368.972 247.806L369.401 247.912C369.659 247.974 369.852 248.07 369.979 248.199C370.105 248.327 370.169 248.492 370.169 248.694C370.169 248.86 370.121 249.008 370.026 249.139C369.932 249.269 369.8 249.372 369.63 249.447C369.461 249.523 369.264 249.56 369.04 249.56C368.745 249.56 368.501 249.496 368.307 249.368C368.114 249.24 367.992 249.053 367.94 248.807L368.362 248.702C368.402 248.858 368.478 248.974 368.59 249.052C368.703 249.13 368.85 249.169 369.032 249.169C369.239 249.169 369.403 249.125 369.525 249.037C369.648 248.948 369.71 248.841 369.71 248.717C369.71 248.617 369.674 248.533 369.604 248.465C369.534 248.396 369.426 248.344 369.28 248.311L368.799 248.198C368.534 248.135 368.339 248.038 368.215 247.906C368.092 247.773 368.031 247.607 368.031 247.407C368.031 247.244 368.077 247.1 368.168 246.974C368.261 246.849 368.387 246.75 368.546 246.679C368.707 246.607 368.889 246.571 369.092 246.571C369.378 246.571 369.603 246.634 369.766 246.76C369.93 246.885 370.047 247.051 370.116 247.257ZM372.049 249.56C371.771 249.56 371.531 249.499 371.329 249.376C371.128 249.252 370.973 249.078 370.864 248.856C370.756 248.633 370.702 248.373 370.702 248.077C370.702 247.781 370.756 247.52 370.864 247.294C370.973 247.067 371.125 246.89 371.319 246.763C371.515 246.635 371.743 246.571 372.004 246.571C372.155 246.571 372.304 246.597 372.45 246.647C372.597 246.697 372.731 246.778 372.851 246.891C372.972 247.003 373.068 247.151 373.139 247.336C373.211 247.52 373.246 247.747 373.246 248.017V248.205H371.018V247.821H372.795C372.795 247.658 372.762 247.512 372.697 247.385C372.633 247.257 372.541 247.156 372.422 247.081C372.304 247.007 372.165 246.97 372.004 246.97C371.827 246.97 371.674 247.014 371.545 247.102C371.417 247.189 371.319 247.302 371.25 247.441C371.181 247.58 371.146 247.73 371.146 247.889V248.145C371.146 248.363 371.184 248.548 371.259 248.7C371.336 248.851 371.442 248.965 371.577 249.045C371.713 249.122 371.87 249.161 372.049 249.161C372.166 249.161 372.272 249.145 372.366 249.112C372.461 249.078 372.543 249.028 372.612 248.962C372.681 248.894 372.735 248.81 372.772 248.71L373.201 248.83C373.156 248.976 373.08 249.104 372.974 249.214C372.867 249.323 372.735 249.408 372.578 249.47C372.421 249.53 372.245 249.56 372.049 249.56ZM373.922 249.5V246.609H374.351V247.046H374.381C374.434 246.903 374.529 246.787 374.667 246.698C374.805 246.608 374.961 246.564 375.134 246.564C375.167 246.564 375.208 246.565 375.257 246.566C375.306 246.567 375.343 246.569 375.368 246.571V247.023C375.353 247.019 375.318 247.014 375.264 247.006C375.211 246.997 375.156 246.993 375.097 246.993C374.956 246.993 374.831 247.023 374.72 247.081C374.611 247.139 374.524 247.22 374.46 247.322C374.398 247.424 374.366 247.54 374.366 247.671V249.5H373.922ZM376.338 247.761V249.5H375.894V246.609H376.323V247.061H376.361C376.429 246.914 376.532 246.796 376.67 246.707C376.808 246.617 376.986 246.571 377.204 246.571C377.4 246.571 377.571 246.612 377.718 246.692C377.865 246.771 377.979 246.891 378.06 247.053C378.142 247.214 378.183 247.417 378.183 247.663V249.5H377.739V247.693C377.739 247.466 377.68 247.289 377.562 247.162C377.444 247.034 377.282 246.97 377.076 246.97C376.934 246.97 376.808 247.001 376.696 247.063C376.585 247.124 376.498 247.214 376.434 247.332C376.37 247.45 376.338 247.593 376.338 247.761ZM379.845 249.568C379.662 249.568 379.496 249.533 379.346 249.464C379.197 249.394 379.078 249.293 378.991 249.161C378.903 249.028 378.859 248.868 378.859 248.679C378.859 248.514 378.892 248.38 378.957 248.277C379.022 248.172 379.109 248.091 379.218 248.032C379.328 247.973 379.448 247.929 379.58 247.9C379.713 247.87 379.846 247.846 379.981 247.829C380.156 247.806 380.299 247.789 380.408 247.778C380.518 247.765 380.599 247.745 380.649 247.716C380.7 247.687 380.726 247.637 380.726 247.565V247.55C380.726 247.364 380.675 247.22 380.574 247.117C380.473 247.014 380.321 246.963 380.116 246.963C379.904 246.963 379.738 247.009 379.617 247.102C379.497 247.195 379.412 247.294 379.363 247.4L378.942 247.249C379.017 247.073 379.117 246.937 379.243 246.839C379.37 246.74 379.508 246.671 379.657 246.632C379.807 246.592 379.956 246.571 380.101 246.571C380.194 246.571 380.301 246.583 380.421 246.605C380.543 246.627 380.66 246.671 380.773 246.739C380.887 246.807 380.982 246.909 381.057 247.046C381.132 247.183 381.17 247.366 381.17 247.595V249.5H380.726V249.109H380.703C380.673 249.171 380.623 249.238 380.553 249.31C380.483 249.381 380.389 249.442 380.272 249.492C380.156 249.543 380.013 249.568 379.845 249.568ZM379.913 249.169C380.089 249.169 380.237 249.134 380.357 249.065C380.479 248.996 380.57 248.907 380.632 248.798C380.695 248.689 380.726 248.574 380.726 248.454V248.047C380.707 248.07 380.666 248.09 380.602 248.109C380.539 248.127 380.466 248.142 380.383 248.156C380.302 248.169 380.222 248.18 380.144 248.19C380.068 248.199 380.006 248.206 379.958 248.213C379.843 248.228 379.735 248.252 379.634 248.286C379.535 248.319 379.455 248.368 379.393 248.435C379.333 248.5 379.303 248.589 379.303 248.702C379.303 248.856 379.36 248.973 379.474 249.052C379.59 249.13 379.736 249.169 379.913 249.169ZM381.981 249.5V246.609H382.41V247.061H382.448C382.508 246.906 382.605 246.787 382.739 246.701C382.874 246.615 383.035 246.571 383.223 246.571C383.414 246.571 383.572 246.615 383.699 246.701C383.827 246.787 383.927 246.906 383.998 247.061H384.029C384.103 246.911 384.214 246.793 384.362 246.705C384.51 246.616 384.687 246.571 384.894 246.571C385.153 246.571 385.364 246.652 385.529 246.814C385.693 246.975 385.775 247.225 385.775 247.565V249.5H385.331V247.565C385.331 247.352 385.273 247.199 385.156 247.108C385.039 247.016 384.902 246.97 384.744 246.97C384.541 246.97 384.383 247.032 384.271 247.155C384.16 247.277 384.104 247.431 384.104 247.618V249.5H383.652V247.52C383.652 247.356 383.599 247.223 383.492 247.123C383.386 247.021 383.248 246.97 383.08 246.97C382.965 246.97 382.857 247.001 382.756 247.063C382.657 247.124 382.577 247.209 382.515 247.319C382.455 247.427 382.425 247.551 382.425 247.693V249.5H381.981ZM387.799 249.56C387.521 249.56 387.281 249.499 387.079 249.376C386.878 249.252 386.723 249.078 386.614 248.856C386.506 248.633 386.452 248.373 386.452 248.077C386.452 247.781 386.506 247.52 386.614 247.294C386.723 247.067 386.875 246.89 387.069 246.763C387.265 246.635 387.493 246.571 387.754 246.571C387.905 246.571 388.053 246.597 388.2 246.647C388.347 246.697 388.481 246.778 388.601 246.891C388.722 247.003 388.818 247.151 388.889 247.336C388.961 247.52 388.996 247.747 388.996 248.017V248.205H386.768V247.821H388.545C388.545 247.658 388.512 247.512 388.447 247.385C388.383 247.257 388.291 247.156 388.172 247.081C388.054 247.007 387.915 246.97 387.754 246.97C387.577 246.97 387.424 247.014 387.295 247.102C387.167 247.189 387.068 247.302 386.999 247.441C386.93 247.58 386.896 247.73 386.896 247.889V248.145C386.896 248.363 386.934 248.548 387.009 248.7C387.085 248.851 387.191 248.965 387.327 249.045C387.462 249.122 387.62 249.161 387.799 249.161C387.916 249.161 388.021 249.145 388.116 249.112C388.211 249.078 388.293 249.028 388.362 248.962C388.431 248.894 388.484 248.81 388.522 248.71L388.951 248.83C388.906 248.976 388.83 249.104 388.723 249.214C388.617 249.323 388.485 249.408 388.328 249.47C388.171 249.53 387.995 249.56 387.799 249.56Z"
|
|
fill="#5A6D91"
|
|
/>
|
|
<g clip-path="url(#clip11_4955_16369)">
|
|
<path
|
|
d="M458.47 242.123C458.47 241.818 458.717 241.571 459.022 241.571H460.568C460.751 241.571 460.899 241.423 460.899 241.24C460.899 241.057 460.751 240.908 460.568 240.908H459.022C458.351 240.908 457.808 241.452 457.808 242.123V245.877C457.808 246.548 458.351 247.092 459.022 247.092H462.776C463.447 247.092 463.991 246.548 463.991 245.877V244.331C463.991 244.148 463.843 244 463.66 244C463.477 244 463.328 244.148 463.328 244.331V245.877C463.328 246.182 463.081 246.429 462.776 246.429H459.022C458.717 246.429 458.47 246.182 458.47 245.877V242.123Z"
|
|
fill="#1B2029"
|
|
/>
|
|
<path
|
|
d="M462.114 240.908C461.931 240.908 461.783 241.057 461.783 241.24C461.783 241.423 461.931 241.571 462.114 241.571H462.86L460.996 243.435C460.867 243.564 460.867 243.774 460.996 243.903C461.126 244.032 461.335 244.032 461.465 243.903L463.328 242.039V242.785C463.328 242.968 463.477 243.117 463.66 243.117C463.843 243.117 463.991 242.968 463.991 242.785V241.24C463.991 241.057 463.843 240.908 463.66 240.908H462.114Z"
|
|
fill="#1B2029"
|
|
/>
|
|
</g>
|
|
<g clip-path="url(#clip12_4955_16369)">
|
|
<path
|
|
fill-rule="evenodd"
|
|
clip-rule="evenodd"
|
|
d="M473.708 241.792C473.708 241.304 474.104 240.908 474.591 240.908H477.241C477.729 240.908 478.125 241.304 478.125 241.792V244.442C478.125 244.93 477.729 245.325 477.241 245.325H476.358V246.208C476.358 246.696 475.963 247.092 475.475 247.092H472.825C472.337 247.092 471.941 246.696 471.941 246.208V243.558C471.941 243.07 472.337 242.675 472.825 242.675H473.708V241.792ZM474.591 241.571H477.241C477.363 241.571 477.462 241.67 477.462 241.792V244.442C477.462 244.564 477.363 244.662 477.241 244.662H474.591C474.469 244.662 474.371 244.564 474.371 244.442V241.792C474.371 241.67 474.469 241.571 474.591 241.571ZM473.708 243.337H472.825C472.703 243.337 472.604 243.436 472.604 243.558V246.208C472.604 246.33 472.703 246.429 472.825 246.429H475.475C475.597 246.429 475.696 246.33 475.696 246.208V245.325H474.591C474.104 245.325 473.708 244.93 473.708 244.442V243.337Z"
|
|
fill="#1B2029"
|
|
/>
|
|
</g>
|
|
<path
|
|
d="M488.283 241.35C488.283 241.838 488.679 242.233 489.167 242.233C489.654 242.233 490.05 241.838 490.05 241.35C490.05 240.862 489.654 240.467 489.167 240.467C488.679 240.467 488.283 240.862 488.283 241.35Z"
|
|
fill="#1B2029"
|
|
/>
|
|
<path
|
|
d="M489.167 244.883C488.679 244.883 488.283 244.488 488.283 244C488.283 243.512 488.679 243.117 489.167 243.117C489.654 243.117 490.05 243.512 490.05 244C490.05 244.488 489.654 244.883 489.167 244.883Z"
|
|
fill="#1B2029"
|
|
/>
|
|
<path
|
|
d="M489.167 247.533C488.679 247.533 488.283 247.138 488.283 246.65C488.283 246.162 488.679 245.767 489.167 245.767C489.654 245.767 490.05 246.162 490.05 246.65C490.05 247.138 489.654 247.533 489.167 247.533Z"
|
|
fill="#1B2029"
|
|
/>
|
|
<path
|
|
d="M346.94 271.783H346.22L347.838 267.286H348.622L350.241 271.783H349.52L348.249 268.103H348.214L346.94 271.783ZM347.061 270.022H349.397V270.593H347.061V270.022ZM351.494 267.286V271.783H350.837V267.286H351.494ZM353.034 267.286V271.783H352.377V267.286H353.034ZM355.553 271.783V268.411H356.21V271.783H355.553ZM355.885 267.89C355.771 267.89 355.673 267.852 355.591 267.776C355.51 267.698 355.47 267.606 355.47 267.499C355.47 267.391 355.51 267.299 355.591 267.223C355.673 267.145 355.771 267.106 355.885 267.106C355.999 267.106 356.096 267.145 356.177 267.223C356.259 267.299 356.3 267.391 356.3 267.499C356.3 267.606 356.259 267.698 356.177 267.776C356.096 267.852 355.999 267.89 355.885 267.89ZM358.667 268.411V268.938H356.825V268.411H358.667ZM357.319 267.603H357.976V270.793C357.976 270.92 357.995 271.016 358.033 271.081C358.071 271.144 358.12 271.187 358.18 271.21C358.241 271.232 358.308 271.243 358.38 271.243C358.433 271.243 358.479 271.24 358.518 271.232C358.558 271.225 358.588 271.219 358.61 271.215L358.729 271.757C358.691 271.772 358.637 271.786 358.566 271.801C358.496 271.817 358.408 271.826 358.303 271.827C358.13 271.83 357.969 271.799 357.82 271.735C357.671 271.671 357.55 271.571 357.458 271.436C357.365 271.302 357.319 271.133 357.319 270.929V267.603ZM360.811 271.851C360.479 271.851 360.193 271.78 359.953 271.638C359.714 271.495 359.53 271.294 359.399 271.035C359.27 270.774 359.206 270.469 359.206 270.119C359.206 269.773 359.27 269.469 359.399 269.205C359.53 268.942 359.711 268.736 359.944 268.588C360.178 268.441 360.452 268.367 360.765 268.367C360.955 268.367 361.14 268.398 361.318 268.461C361.497 268.524 361.657 268.623 361.799 268.758C361.941 268.892 362.053 269.067 362.135 269.282C362.217 269.496 362.258 269.756 362.258 270.062V270.295H359.577V269.803H361.615C361.615 269.63 361.58 269.477 361.509 269.344C361.439 269.209 361.34 269.103 361.213 269.025C361.087 268.948 360.939 268.909 360.769 268.909C360.585 268.909 360.424 268.954 360.286 269.045C360.15 269.134 360.045 269.252 359.97 269.397C359.897 269.54 359.86 269.696 359.86 269.864V270.248C359.86 270.474 359.9 270.666 359.979 270.824C360.059 270.982 360.171 271.103 360.315 271.186C360.458 271.268 360.626 271.309 360.818 271.309C360.942 271.309 361.056 271.291 361.158 271.256C361.261 271.22 361.349 271.166 361.424 271.094C361.498 271.022 361.555 270.934 361.595 270.828L362.216 270.94C362.167 271.123 362.077 271.283 361.949 271.421C361.821 271.557 361.661 271.663 361.468 271.739C361.276 271.814 361.057 271.851 360.811 271.851ZM362.987 271.783V268.411H363.617V268.96H363.658C363.729 268.774 363.844 268.629 364.003 268.525C364.163 268.419 364.354 268.367 364.576 268.367C364.802 268.367 364.991 268.419 365.143 268.525C365.297 268.63 365.41 268.775 365.483 268.96H365.518C365.599 268.779 365.727 268.636 365.903 268.529C366.078 268.421 366.288 268.367 366.531 268.367C366.837 268.367 367.086 268.463 367.279 268.654C367.474 268.846 367.571 269.135 367.571 269.522V271.783H366.915V269.583C366.915 269.355 366.853 269.189 366.728 269.087C366.604 268.984 366.455 268.933 366.282 268.933C366.069 268.933 365.903 268.999 365.784 269.131C365.665 269.261 365.606 269.429 365.606 269.634V271.783H364.952V269.541C364.952 269.358 364.895 269.211 364.781 269.1C364.666 268.989 364.518 268.933 364.335 268.933C364.21 268.933 364.095 268.966 363.99 269.032C363.886 269.096 363.802 269.186 363.738 269.302C363.675 269.418 363.643 269.552 363.643 269.704V271.783H362.987ZM370.979 269.234L370.384 269.339C370.359 269.263 370.319 269.191 370.265 269.122C370.212 269.053 370.141 268.997 370.05 268.953C369.959 268.909 369.846 268.887 369.71 268.887C369.524 268.887 369.368 268.929 369.244 269.012C369.12 269.094 369.057 269.2 369.057 269.331C369.057 269.443 369.099 269.534 369.183 269.603C369.266 269.672 369.401 269.728 369.587 269.772L370.122 269.895C370.433 269.967 370.664 270.077 370.816 270.227C370.968 270.376 371.045 270.57 371.045 270.808C371.045 271.01 370.986 271.19 370.869 271.349C370.753 271.505 370.592 271.628 370.384 271.717C370.177 271.807 369.938 271.851 369.666 271.851C369.288 271.851 368.98 271.771 368.741 271.61C368.503 271.447 368.356 271.217 368.302 270.918L368.937 270.822C368.976 270.987 369.057 271.112 369.18 271.197C369.303 271.28 369.464 271.322 369.661 271.322C369.876 271.322 370.048 271.278 370.177 271.188C370.306 271.098 370.37 270.987 370.37 270.857C370.37 270.751 370.331 270.663 370.252 270.591C370.174 270.519 370.055 270.465 369.894 270.429L369.323 270.303C369.008 270.232 368.776 270.117 368.625 269.961C368.476 269.804 368.401 269.606 368.401 269.366C368.401 269.167 368.456 268.992 368.568 268.843C368.679 268.694 368.833 268.577 369.029 268.494C369.225 268.409 369.45 268.367 369.703 268.367C370.067 268.367 370.354 268.446 370.564 268.604C370.773 268.76 370.911 268.971 370.979 269.234Z"
|
|
fill="#1B2029"
|
|
/>
|
|
<path
|
|
d="M494.333 271.845C494.149 271.842 493.965 271.807 493.78 271.739C493.596 271.672 493.427 271.559 493.275 271.399C493.123 271.238 493.001 271.021 492.908 270.747C492.816 270.472 492.77 270.126 492.77 269.711C492.77 269.312 492.807 268.96 492.882 268.652C492.957 268.343 493.065 268.083 493.207 267.873C493.349 267.66 493.52 267.499 493.721 267.39C493.923 267.28 494.151 267.225 494.404 267.225C494.656 267.225 494.88 267.275 495.076 267.376C495.273 267.476 495.434 267.615 495.559 267.794C495.683 267.972 495.764 268.178 495.8 268.411H495.265C495.215 268.209 495.118 268.041 494.975 267.908C494.831 267.775 494.641 267.708 494.404 267.708C494.055 267.708 493.781 267.859 493.58 268.162C493.381 268.465 493.281 268.891 493.28 269.438H493.315C493.397 269.314 493.494 269.208 493.607 269.12C493.721 269.031 493.847 268.962 493.984 268.913C494.122 268.865 494.268 268.841 494.421 268.841C494.679 268.841 494.915 268.905 495.128 269.034C495.342 269.162 495.513 269.338 495.642 269.563C495.771 269.787 495.835 270.044 495.835 270.334C495.835 270.612 495.773 270.867 495.649 271.098C495.524 271.328 495.349 271.511 495.124 271.647C494.9 271.782 494.637 271.848 494.333 271.845ZM494.333 271.362C494.518 271.362 494.683 271.316 494.83 271.223C494.978 271.131 495.094 271.007 495.179 270.852C495.265 270.697 495.308 270.524 495.308 270.334C495.308 270.148 495.267 269.979 495.183 269.827C495.101 269.673 494.988 269.551 494.843 269.46C494.699 269.369 494.536 269.324 494.351 269.324C494.212 269.324 494.082 269.352 493.962 269.407C493.842 269.462 493.737 269.536 493.646 269.631C493.557 269.727 493.487 269.836 493.435 269.959C493.384 270.08 493.359 270.208 493.359 270.343C493.359 270.521 493.4 270.688 493.484 270.844C493.569 270.999 493.684 271.124 493.831 271.219C493.979 271.314 494.146 271.362 494.333 271.362Z"
|
|
fill="#5A6D91"
|
|
/>
|
|
<mask id="path-93-inside-6_4955_16369" fill="white">
|
|
<path
|
|
d="M344.3 279C344.3 277.049 345.882 275.467 347.833 275.467H494.466C496.418 275.467 498 277.049 498 279V296C498 297.951 496.418 299.533 494.466 299.533H347.833C345.882 299.533 344.3 297.951 344.3 296V279Z"
|
|
/>
|
|
</mask>
|
|
<path
|
|
d="M344.3 279C344.3 277.049 345.882 275.467 347.833 275.467H494.466C496.418 275.467 498 277.049 498 279V296C498 297.951 496.418 299.533 494.466 299.533H347.833C345.882 299.533 344.3 297.951 344.3 296V279Z"
|
|
fill="white"
|
|
/>
|
|
<path
|
|
d="M344.3 275.467H498H344.3M498 296C498 298.073 496.319 299.754 494.246 299.754H348.054C345.981 299.754 344.3 298.073 344.3 296V296C344.3 297.829 345.882 299.313 347.833 299.313H494.466C496.418 299.313 498 297.829 498 296V296ZM498 296M344.3 299.533V275.467V299.533M344.3 299.533M498 275.467V299.533V275.467"
|
|
fill="#A8B3C8"
|
|
mask="url(#path-93-inside-6_4955_16369)"
|
|
/>
|
|
<path
|
|
d="M364.227 286V281.503H367.016V282.087H364.906V283.457H366.816V284.039H364.906V286H364.227ZM368.767 286.075C368.554 286.075 368.36 286.035 368.188 285.956C368.015 285.876 367.878 285.759 367.777 285.607C367.677 285.455 367.628 285.268 367.628 285.047C367.628 284.857 367.664 284.7 367.737 284.577C367.811 284.454 367.909 284.357 368.034 284.285C368.158 284.213 368.297 284.159 368.451 284.123C368.605 284.086 368.761 284.058 368.921 284.039C369.123 284.016 369.287 283.997 369.413 283.982C369.539 283.966 369.63 283.94 369.687 283.905C369.744 283.87 369.773 283.813 369.773 283.734V283.719C369.773 283.527 369.719 283.378 369.61 283.273C369.504 283.167 369.344 283.115 369.132 283.115C368.911 283.115 368.736 283.164 368.609 283.262C368.483 283.358 368.396 283.466 368.348 283.585L367.731 283.444C367.804 283.239 367.911 283.074 368.051 282.948C368.193 282.821 368.357 282.728 368.541 282.671C368.726 282.613 368.919 282.583 369.123 282.583C369.258 282.583 369.4 282.599 369.551 282.632C369.703 282.662 369.845 282.719 369.977 282.803C370.11 282.886 370.219 283.006 370.304 283.161C370.389 283.315 370.432 283.514 370.432 283.76V286H369.79V285.539H369.764C369.722 285.624 369.658 285.707 369.573 285.789C369.488 285.871 369.379 285.939 369.246 285.993C369.113 286.048 368.953 286.075 368.767 286.075ZM368.91 285.548C369.091 285.548 369.247 285.512 369.375 285.44C369.506 285.368 369.605 285.275 369.672 285.159C369.741 285.042 369.775 284.917 369.775 284.784V284.349C369.752 284.372 369.706 284.394 369.639 284.415C369.573 284.434 369.498 284.451 369.413 284.465C369.328 284.478 369.245 284.491 369.165 284.502C369.084 284.513 369.017 284.522 368.963 284.529C368.835 284.545 368.719 284.572 368.614 284.61C368.51 284.648 368.426 284.703 368.363 284.775C368.302 284.845 368.271 284.939 368.271 285.056C368.271 285.218 368.331 285.341 368.451 285.425C368.571 285.507 368.724 285.548 368.91 285.548ZM372.727 286.068C372.4 286.068 372.119 285.994 371.884 285.846C371.649 285.697 371.469 285.491 371.343 285.229C371.218 284.967 371.155 284.667 371.155 284.329C371.155 283.986 371.219 283.684 371.348 283.422C371.477 283.159 371.658 282.953 371.892 282.805C372.127 282.657 372.403 282.583 372.72 282.583C372.976 282.583 373.205 282.631 373.405 282.726C373.606 282.82 373.768 282.952 373.891 283.121C374.015 283.291 374.089 283.489 374.112 283.716H373.473C373.438 283.558 373.358 283.422 373.232 283.308C373.107 283.194 372.941 283.137 372.731 283.137C372.548 283.137 372.388 283.185 372.25 283.282C372.114 283.377 372.008 283.513 371.932 283.69C371.856 283.866 371.818 284.074 371.818 284.314C371.818 284.56 371.855 284.772 371.93 284.95C372.004 285.129 372.11 285.267 372.246 285.365C372.384 285.463 372.545 285.513 372.731 285.513C372.856 285.513 372.968 285.49 373.069 285.444C373.172 285.398 373.257 285.331 373.326 285.245C373.397 285.158 373.446 285.054 373.473 284.933H374.112C374.089 285.151 374.018 285.346 373.899 285.517C373.781 285.688 373.622 285.823 373.423 285.921C373.225 286.019 372.993 286.068 372.727 286.068ZM376.268 286.068C375.936 286.068 375.65 285.997 375.409 285.855C375.171 285.712 374.986 285.51 374.856 285.251C374.727 284.991 374.663 284.685 374.663 284.336C374.663 283.99 374.727 283.686 374.856 283.422C374.986 283.159 375.168 282.953 375.401 282.805C375.635 282.657 375.909 282.583 376.222 282.583C376.412 282.583 376.597 282.615 376.775 282.678C376.954 282.741 377.114 282.84 377.256 282.974C377.398 283.109 377.51 283.284 377.592 283.499C377.674 283.713 377.715 283.973 377.715 284.279V284.511H375.034V284.019H377.072C377.072 283.847 377.037 283.694 376.966 283.56C376.896 283.426 376.797 283.32 376.67 283.242C376.544 283.165 376.396 283.126 376.226 283.126C376.042 283.126 375.881 283.171 375.743 283.262C375.607 283.351 375.502 283.468 375.427 283.613C375.354 283.757 375.317 283.913 375.317 284.081V284.465C375.317 284.691 375.357 284.882 375.436 285.04C375.516 285.199 375.628 285.319 375.772 285.403C375.915 285.485 376.083 285.526 376.275 285.526C376.399 285.526 376.513 285.508 376.615 285.473C376.717 285.436 376.806 285.382 376.881 285.311C376.955 285.239 377.012 285.15 377.052 285.045L377.673 285.157C377.624 285.34 377.534 285.5 377.405 285.638C377.278 285.774 377.118 285.88 376.925 285.956C376.733 286.031 376.514 286.068 376.268 286.068ZM378.496 286V281.503H379.153V283.174H379.192C379.23 283.104 379.285 283.023 379.357 282.93C379.429 282.838 379.528 282.758 379.656 282.689C379.783 282.618 379.951 282.583 380.161 282.583C380.433 282.583 380.676 282.652 380.89 282.79C381.103 282.927 381.271 283.126 381.392 283.385C381.515 283.644 381.577 283.956 381.577 284.32C381.577 284.685 381.516 284.997 381.395 285.258C381.273 285.517 381.106 285.717 380.894 285.857C380.682 285.996 380.439 286.066 380.167 286.066C379.962 286.066 379.795 286.031 379.664 285.963C379.536 285.894 379.435 285.813 379.361 285.721C379.288 285.629 379.232 285.547 379.192 285.475H379.137V286H378.496ZM379.14 284.314C379.14 284.551 379.174 284.759 379.243 284.937C379.312 285.116 379.411 285.256 379.541 285.357C379.672 285.456 379.831 285.506 380.02 285.506C380.216 285.506 380.38 285.454 380.512 285.35C380.644 285.245 380.743 285.102 380.811 284.922C380.879 284.742 380.914 284.539 380.914 284.314C380.914 284.091 380.88 283.891 380.813 283.714C380.747 283.537 380.647 283.397 380.514 283.295C380.382 283.192 380.218 283.141 380.02 283.141C379.83 283.141 379.669 283.19 379.537 283.288C379.407 283.386 379.308 283.523 379.241 283.699C379.173 283.874 379.14 284.079 379.14 284.314ZM383.735 286.068C383.419 286.068 383.143 285.996 382.907 285.851C382.671 285.706 382.488 285.503 382.358 285.242C382.228 284.982 382.163 284.677 382.163 284.329C382.163 283.979 382.228 283.673 382.358 283.411C382.488 283.149 382.671 282.946 382.907 282.801C383.143 282.656 383.419 282.583 383.735 282.583C384.051 282.583 384.327 282.656 384.563 282.801C384.798 282.946 384.981 283.149 385.112 283.411C385.242 283.673 385.307 283.979 385.307 284.329C385.307 284.677 385.242 284.982 385.112 285.242C384.981 285.503 384.798 285.706 384.563 285.851C384.327 285.996 384.051 286.068 383.735 286.068ZM383.737 285.517C383.942 285.517 384.112 285.463 384.246 285.354C384.381 285.246 384.481 285.102 384.545 284.922C384.611 284.742 384.644 284.543 384.644 284.327C384.644 284.112 384.611 283.914 384.545 283.734C384.481 283.552 384.381 283.407 384.246 283.297C384.112 283.187 383.942 283.132 383.737 283.132C383.531 283.132 383.359 283.187 383.223 283.297C383.089 283.407 382.988 283.552 382.922 283.734C382.858 283.914 382.826 284.112 382.826 284.327C382.826 284.543 382.858 284.742 382.922 284.922C382.988 285.102 383.089 285.246 383.223 285.354C383.359 285.463 383.531 285.517 383.737 285.517ZM387.461 286.068C387.144 286.068 386.868 285.996 386.633 285.851C386.397 285.706 386.214 285.503 386.084 285.242C385.953 284.982 385.888 284.677 385.888 284.329C385.888 283.979 385.953 283.673 386.084 283.411C386.214 283.149 386.397 282.946 386.633 282.801C386.868 282.656 387.144 282.583 387.461 282.583C387.777 282.583 388.053 282.656 388.288 282.801C388.524 282.946 388.707 283.149 388.837 283.411C388.968 283.673 389.033 283.979 389.033 284.329C389.033 284.677 388.968 284.982 388.837 285.242C388.707 285.503 388.524 285.706 388.288 285.851C388.053 285.996 387.777 286.068 387.461 286.068ZM387.463 285.517C387.668 285.517 387.837 285.463 387.972 285.354C388.107 285.246 388.206 285.102 388.271 284.922C388.337 284.742 388.37 284.543 388.37 284.327C388.37 284.112 388.337 283.914 388.271 283.734C388.206 283.552 388.107 283.407 387.972 283.297C387.837 283.187 387.668 283.132 387.463 283.132C387.256 283.132 387.085 283.187 386.949 283.297C386.814 283.407 386.714 283.552 386.648 283.734C386.584 283.914 386.551 284.112 386.551 284.327C386.551 284.543 386.584 284.742 386.648 284.922C386.714 285.102 386.814 285.246 386.949 285.354C387.085 285.463 387.256 285.517 387.463 285.517ZM390.369 284.856L390.365 284.055H390.479L391.823 282.627H392.609L391.076 284.252H390.973L390.369 284.856ZM389.766 286V281.503H390.422V286H389.766ZM391.895 286L390.688 284.397L391.14 283.938L392.701 286H391.895Z"
|
|
fill="#1B2029"
|
|
/>
|
|
<rect
|
|
x="503.3"
|
|
y="119.133"
|
|
width="3.53333"
|
|
height="78.6167"
|
|
rx="1.76667"
|
|
fill="#5A6D91"
|
|
/>
|
|
<mask
|
|
id="path-97-outside-7_4955_16369"
|
|
maskUnits="userSpaceOnUse"
|
|
x="339"
|
|
y="251.85"
|
|
width="168"
|
|
height="31"
|
|
fill="black"
|
|
>
|
|
<rect fill="white" x="339" y="251.85" width="168" height="31" />
|
|
<path d="M339 252.85H506.833V282.167H339V252.85Z" />
|
|
</mask>
|
|
<path d="M339 252.85H506.833V282.167H339V252.85Z" fill="white" />
|
|
<path
|
|
d="M339 252.85V253.292H506.833V252.85V252.408H339V252.85Z"
|
|
fill="#A8B3C8"
|
|
mask="url(#path-97-outside-7_4955_16369)"
|
|
/>
|
|
<path
|
|
d="M363.318 265.008H355.81L358.537 263.163C358.841 263.12 359.022 262.962 359.107 262.78L363.318 259.709V265.008Z"
|
|
fill="#DBE5F6"
|
|
/>
|
|
<path
|
|
fill-rule="evenodd"
|
|
clip-rule="evenodd"
|
|
d="M357.425 263.345C357.609 263.555 357.852 263.709 358.127 263.78V264.159C358.127 264.342 358.275 264.49 358.458 264.49C358.641 264.49 358.789 264.342 358.789 264.159V263.784C359.068 263.716 359.315 263.563 359.502 263.352L359.845 263.55C360.004 263.642 360.206 263.587 360.298 263.429C360.389 263.271 360.335 263.068 360.177 262.977L359.818 262.77C359.853 262.643 359.872 262.509 359.872 262.371C359.872 262.23 359.853 262.094 359.816 261.966L360.177 261.758C360.336 261.666 360.39 261.464 360.299 261.305C360.207 261.147 360.004 261.093 359.846 261.184L359.498 261.385C359.311 261.176 359.066 261.025 358.789 260.958V260.575C358.789 260.392 358.641 260.244 358.458 260.244C358.275 260.244 358.127 260.392 358.127 260.575V260.962C357.854 261.032 357.613 261.184 357.429 261.392L357.069 261.184C356.911 261.093 356.708 261.147 356.617 261.305C356.525 261.464 356.579 261.666 356.738 261.758L357.114 261.975C357.08 262.101 357.061 262.233 357.061 262.371C357.061 262.506 357.079 262.637 357.113 262.761L356.738 262.977C356.58 263.068 356.526 263.271 356.617 263.429C356.709 263.587 356.912 263.642 357.07 263.55L357.425 263.345ZM357.724 262.371C357.724 262.827 358.076 263.16 358.467 263.16C358.857 263.16 359.209 262.827 359.209 262.371C359.209 261.914 358.857 261.582 358.467 261.582C358.076 261.582 357.724 261.914 357.724 262.371Z"
|
|
fill="#175DDC"
|
|
/>
|
|
<path
|
|
fill-rule="evenodd"
|
|
clip-rule="evenodd"
|
|
d="M363.405 259.058C363.722 259.058 363.979 259.315 363.979 259.633V265.102C363.979 265.419 363.722 265.676 363.405 265.676H362.791V265.814C362.791 265.997 362.643 266.145 362.46 266.145C362.277 266.145 362.128 265.997 362.128 265.814V265.676H356.994V265.814C356.994 265.997 356.846 266.145 356.663 266.145C356.48 266.145 356.332 265.997 356.332 265.814V265.676H355.72C355.403 265.676 355.146 265.419 355.146 265.102V259.633C355.146 259.315 355.403 259.058 355.72 259.058H363.405ZM363.316 263.939V265.014H355.808V259.721H363.316V260.795H362.737C362.554 260.795 362.405 260.943 362.405 261.126C362.405 261.309 362.554 261.457 362.737 261.457H363.316V263.277H362.737C362.554 263.277 362.405 263.425 362.405 263.608C362.405 263.791 362.554 263.939 362.737 263.939H363.316Z"
|
|
fill="#175DDC"
|
|
/>
|
|
<path
|
|
fill-rule="evenodd"
|
|
clip-rule="evenodd"
|
|
d="M357.425 263.345C357.609 263.555 357.852 263.709 358.127 263.78V264.159C358.127 264.342 358.275 264.49 358.458 264.49C358.641 264.49 358.789 264.342 358.789 264.159V263.784C359.068 263.716 359.315 263.563 359.502 263.352L359.845 263.55C360.004 263.642 360.206 263.587 360.298 263.429C360.389 263.271 360.335 263.068 360.177 262.977L359.818 262.77C359.853 262.643 359.872 262.509 359.872 262.371C359.872 262.23 359.853 262.094 359.816 261.966L360.177 261.758C360.336 261.666 360.39 261.464 360.299 261.305C360.207 261.147 360.004 261.093 359.846 261.184L359.498 261.385C359.311 261.176 359.066 261.025 358.789 260.958V260.575C358.789 260.392 358.641 260.244 358.458 260.244C358.275 260.244 358.127 260.392 358.127 260.575V260.962C357.854 261.032 357.613 261.184 357.429 261.392L357.069 261.184C356.911 261.093 356.708 261.147 356.617 261.305C356.525 261.464 356.579 261.666 356.738 261.758L357.114 261.975C357.08 262.101 357.061 262.233 357.061 262.371C357.061 262.506 357.079 262.637 357.113 262.761L356.738 262.977C356.58 263.068 356.526 263.271 356.617 263.429C356.709 263.587 356.912 263.642 357.07 263.55L357.425 263.345ZM357.724 262.371C357.724 262.827 358.076 263.16 358.467 263.16C358.857 263.16 359.209 262.827 359.209 262.371C359.209 261.914 358.857 261.582 358.467 261.582C358.076 261.582 357.724 261.914 357.724 262.371Z"
|
|
stroke="#175DDC"
|
|
/>
|
|
<path
|
|
fill-rule="evenodd"
|
|
clip-rule="evenodd"
|
|
d="M363.405 259.058C363.722 259.058 363.979 259.315 363.979 259.633V265.102C363.979 265.419 363.722 265.676 363.405 265.676H362.791V265.814C362.791 265.997 362.643 266.145 362.46 266.145C362.277 266.145 362.128 265.997 362.128 265.814V265.676H356.994V265.814C356.994 265.997 356.846 266.145 356.663 266.145C356.48 266.145 356.332 265.997 356.332 265.814V265.676H355.72C355.403 265.676 355.146 265.419 355.146 265.102V259.633C355.146 259.315 355.403 259.058 355.72 259.058H363.405ZM363.316 263.939V265.014H355.808V259.721H363.316V260.795H362.737C362.554 260.795 362.405 260.943 362.405 261.126C362.405 261.309 362.554 261.457 362.737 261.457H363.316V263.277H362.737C362.554 263.277 362.405 263.425 362.405 263.608C362.405 263.791 362.554 263.939 362.737 263.939H363.316Z"
|
|
stroke="#175DDC"
|
|
/>
|
|
<path
|
|
d="M353.025 270.37L354.195 273.909H354.241L355.409 270.37H356.305L354.72 274.867H353.714L352.131 270.37H353.025ZM357.483 274.935C357.269 274.935 357.076 274.897 356.905 274.821C356.735 274.743 356.601 274.629 356.501 274.478C356.403 274.327 356.354 274.141 356.354 273.92C356.354 273.73 356.389 273.573 356.459 273.448C356.53 273.324 356.626 273.224 356.747 273.15C356.869 273.075 357.005 273.019 357.158 272.981C357.311 272.941 357.47 272.912 357.634 272.895C357.832 272.874 357.992 272.856 358.115 272.84C358.238 272.822 358.327 272.796 358.383 272.761C358.44 272.724 358.469 272.668 358.469 272.592V272.579C358.469 272.413 358.42 272.285 358.321 272.194C358.223 272.104 358.082 272.058 357.898 272.058C357.703 272.058 357.549 272.101 357.434 272.186C357.322 272.271 357.246 272.371 357.206 272.486L356.464 272.381C356.522 272.176 356.619 272.005 356.754 271.867C356.888 271.728 357.053 271.624 357.248 271.555C357.442 271.485 357.658 271.45 357.893 271.45C358.056 271.45 358.218 271.469 358.379 271.507C358.54 271.545 358.687 271.608 358.82 271.696C358.953 271.782 359.06 271.9 359.14 272.05C359.222 272.199 359.263 272.385 359.263 272.609V274.867H358.499V274.403H358.473C358.425 274.497 358.357 274.585 358.269 274.667C358.182 274.747 358.073 274.813 357.942 274.862C357.811 274.911 357.658 274.935 357.483 274.935ZM357.689 274.351C357.849 274.351 357.987 274.319 358.104 274.256C358.221 274.192 358.311 274.107 358.374 274.002C358.439 273.896 358.471 273.781 358.471 273.657V273.259C358.446 273.28 358.403 273.299 358.343 273.316C358.285 273.334 358.219 273.349 358.146 273.363C358.073 273.376 358 273.387 357.928 273.398C357.857 273.408 357.794 273.417 357.742 273.424C357.623 273.44 357.517 273.467 357.423 273.503C357.33 273.54 357.256 273.591 357.202 273.657C357.147 273.721 357.12 273.805 357.12 273.907C357.12 274.054 357.174 274.164 357.281 274.239C357.388 274.313 357.524 274.351 357.689 274.351ZM362.212 273.448V271.494H363.007V274.867H362.237V274.267H362.201C362.125 274.456 362 274.611 361.826 274.731C361.653 274.851 361.44 274.911 361.187 274.911C360.966 274.911 360.771 274.862 360.601 274.763C360.432 274.664 360.301 274.52 360.205 274.331C360.11 274.141 360.063 273.911 360.063 273.641V271.494H360.858V273.518C360.858 273.732 360.916 273.902 361.033 274.028C361.15 274.154 361.304 274.217 361.494 274.217C361.611 274.217 361.725 274.188 361.835 274.131C361.945 274.074 362.035 273.989 362.105 273.876C362.177 273.762 362.212 273.619 362.212 273.448ZM364.62 270.37V274.867H363.825V270.37H364.62ZM367.121 271.494V272.109H365.182V271.494H367.121ZM365.661 270.686H366.456V273.852C366.456 273.959 366.472 274.041 366.504 274.098C366.538 274.154 366.582 274.192 366.636 274.212C366.69 274.233 366.75 274.243 366.816 274.243C366.866 274.243 366.911 274.239 366.952 274.232C366.994 274.225 367.027 274.218 367.049 274.212L367.183 274.834C367.14 274.848 367.079 274.865 367 274.882C366.923 274.9 366.828 274.91 366.715 274.913C366.516 274.919 366.336 274.889 366.177 274.823C366.017 274.755 365.891 274.652 365.797 274.511C365.705 274.37 365.659 274.195 365.661 273.984V270.686Z"
|
|
fill="#175DDC"
|
|
/>
|
|
<g clip-path="url(#clip13_4955_16369)">
|
|
<path
|
|
fill-rule="evenodd"
|
|
clip-rule="evenodd"
|
|
d="M405.176 262.323C405.358 262.342 405.489 262.506 405.47 262.688C405.259 264.624 403.591 266.123 401.574 266.123C400.143 266.123 398.89 265.368 398.206 264.238V265.29C398.206 265.473 398.058 265.621 397.875 265.621C397.692 265.621 397.544 265.473 397.544 265.29V263.532C397.544 263.349 397.692 263.201 397.875 263.201H399.634C399.817 263.201 399.965 263.349 399.965 263.532C399.965 263.714 399.816 263.863 399.634 263.863H398.754C399.315 264.816 400.366 265.461 401.574 265.461C403.259 265.461 404.637 264.21 404.811 262.616C404.83 262.434 404.994 262.303 405.176 262.323ZM401.521 260.687C401.704 260.687 401.852 260.835 401.853 261.018V261.721L402.513 261.505C402.686 261.448 402.874 261.543 402.931 261.717C402.987 261.891 402.893 262.078 402.72 262.135L402.053 262.353L402.469 262.936C402.575 263.085 402.54 263.291 402.392 263.398C402.243 263.504 402.036 263.47 401.93 263.321L401.521 262.748L401.112 263.321C401.006 263.469 400.799 263.504 400.65 263.398C400.502 263.292 400.467 263.085 400.573 262.936L400.989 262.353L400.322 262.135C400.149 262.078 400.055 261.891 400.111 261.717C400.168 261.543 400.355 261.448 400.529 261.505L401.189 261.721V261.018C401.19 260.835 401.339 260.687 401.521 260.687ZM401.463 258.174C402.896 258.174 404.15 258.931 404.833 260.063V259.007C404.833 258.824 404.981 258.676 405.164 258.676C405.347 258.676 405.495 258.824 405.495 259.007V260.766C405.495 260.949 405.347 261.097 405.164 261.097H403.405C403.222 261.097 403.074 260.949 403.074 260.766C403.074 260.583 403.222 260.435 403.405 260.435H404.283C403.722 259.481 402.671 258.836 401.463 258.836C399.778 258.836 398.4 260.088 398.227 261.682C398.206 261.863 398.043 261.995 397.861 261.975C397.68 261.955 397.548 261.791 397.567 261.61C397.778 259.673 399.447 258.174 401.463 258.174Z"
|
|
fill="#5A6D91"
|
|
/>
|
|
</g>
|
|
<path
|
|
d="M390.556 271.775C390.508 271.627 390.444 271.495 390.365 271.378C390.288 271.259 390.195 271.158 390.086 271.075C389.979 270.991 389.858 270.927 389.722 270.884C389.586 270.84 389.436 270.818 389.274 270.818C389.007 270.818 388.765 270.886 388.547 271.024C388.329 271.162 388.155 271.364 388.027 271.632C387.898 271.9 387.833 272.229 387.833 272.618C387.833 273.008 387.899 273.336 388.029 273.604C388.159 273.872 388.335 274.075 388.558 274.212C388.78 274.35 389.031 274.419 389.309 274.419C389.567 274.419 389.793 274.364 389.99 274.254C390.187 274.143 390.341 273.986 390.451 273.784C390.562 273.581 390.618 273.341 390.618 273.066L390.785 273.101H389.432V272.618H391.145V273.101C391.145 273.472 391.066 273.794 390.907 274.067C390.751 274.341 390.534 274.553 390.258 274.704C389.982 274.854 389.666 274.928 389.309 274.928C388.911 274.928 388.561 274.834 388.259 274.647C387.959 274.46 387.725 274.193 387.557 273.848C387.39 273.502 387.306 273.093 387.306 272.618C387.306 272.262 387.354 271.943 387.449 271.659C387.546 271.373 387.682 271.13 387.858 270.93C388.033 270.729 388.241 270.575 388.481 270.469C388.721 270.362 388.985 270.308 389.274 270.308C389.511 270.308 389.732 270.344 389.937 270.416C390.143 270.486 390.327 270.586 390.488 270.717C390.651 270.845 390.786 271 390.894 271.18C391.003 271.359 391.077 271.557 391.118 271.775H390.556ZM393.421 274.937C393.096 274.937 392.816 274.865 392.58 274.722C392.346 274.577 392.165 274.375 392.038 274.116C391.912 273.855 391.849 273.552 391.849 273.207C391.849 272.861 391.912 272.557 392.038 272.293C392.165 272.028 392.342 271.822 392.569 271.674C392.798 271.525 393.064 271.45 393.368 271.45C393.544 271.45 393.718 271.479 393.889 271.538C394.06 271.596 394.216 271.692 394.357 271.823C394.497 271.954 394.609 272.126 394.692 272.342C394.776 272.557 394.818 272.822 394.818 273.136V273.356H392.218V272.908H394.291C394.291 272.718 394.253 272.548 394.176 272.399C394.102 272.249 393.995 272.131 393.856 272.045C393.718 271.959 393.556 271.916 393.368 271.916C393.162 271.916 392.983 271.967 392.833 272.069C392.683 272.17 392.568 272.302 392.488 272.465C392.407 272.627 392.367 272.801 392.367 272.987V273.286C392.367 273.54 392.411 273.756 392.499 273.933C392.588 274.109 392.712 274.243 392.87 274.335C393.028 274.426 393.212 274.471 393.421 274.471C393.557 274.471 393.68 274.452 393.79 274.414C393.901 274.375 393.997 274.316 394.078 274.239C394.158 274.16 394.22 274.062 394.264 273.944L394.765 274.085C394.712 274.255 394.624 274.404 394.499 274.533C394.375 274.66 394.221 274.76 394.038 274.832C393.855 274.902 393.649 274.937 393.421 274.937ZM396.124 272.838V274.867H395.606V271.494H396.107V272.021H396.15C396.23 271.85 396.35 271.712 396.511 271.608C396.672 271.503 396.879 271.45 397.134 271.45C397.363 271.45 397.562 271.497 397.734 271.591C397.905 271.683 398.038 271.823 398.133 272.012C398.228 272.2 398.276 272.437 398.276 272.724V274.867H397.758V272.759C397.758 272.494 397.689 272.287 397.551 272.14C397.414 271.99 397.225 271.916 396.985 271.916C396.819 271.916 396.672 271.951 396.541 272.023C396.412 272.095 396.311 272.2 396.236 272.337C396.161 272.475 396.124 272.642 396.124 272.838ZM400.637 274.937C400.312 274.937 400.032 274.865 399.796 274.722C399.562 274.577 399.381 274.375 399.254 274.116C399.128 273.855 399.065 273.552 399.065 273.207C399.065 272.861 399.128 272.557 399.254 272.293C399.381 272.028 399.558 271.822 399.785 271.674C400.013 271.525 400.28 271.45 400.584 271.45C400.76 271.45 400.933 271.479 401.105 271.538C401.276 271.596 401.432 271.692 401.572 271.823C401.713 271.954 401.825 272.126 401.908 272.342C401.992 272.557 402.034 272.822 402.034 273.136V273.356H399.434V272.908H401.507C401.507 272.718 401.468 272.548 401.392 272.399C401.318 272.249 401.211 272.131 401.072 272.045C400.934 271.959 400.772 271.916 400.584 271.916C400.378 271.916 400.199 271.967 400.049 272.069C399.899 272.17 399.784 272.302 399.704 272.465C399.623 272.627 399.583 272.801 399.583 272.987V273.286C399.583 273.54 399.627 273.756 399.715 273.933C399.804 274.109 399.928 274.243 400.086 274.335C400.244 274.426 400.428 274.471 400.637 274.471C400.773 274.471 400.896 274.452 401.006 274.414C401.117 274.375 401.213 274.316 401.294 274.239C401.374 274.16 401.436 274.062 401.48 273.944L401.981 274.085C401.928 274.255 401.84 274.404 401.715 274.533C401.591 274.66 401.437 274.76 401.254 274.832C401.071 274.902 400.865 274.937 400.637 274.937ZM402.822 274.867V271.494H403.322V272.003H403.358C403.419 271.837 403.53 271.701 403.691 271.597C403.852 271.493 404.034 271.441 404.236 271.441C404.274 271.441 404.322 271.442 404.379 271.443C404.436 271.445 404.479 271.447 404.508 271.45V271.977C404.491 271.973 404.45 271.966 404.387 271.957C404.326 271.947 404.261 271.942 404.192 271.942C404.028 271.942 403.882 271.976 403.753 272.045C403.625 272.112 403.524 272.206 403.45 272.326C403.377 272.445 403.34 272.58 403.34 272.732V274.867H402.822ZM406.115 274.946C405.901 274.946 405.707 274.905 405.533 274.825C405.359 274.743 405.221 274.625 405.118 274.471C405.016 274.316 404.964 274.129 404.964 273.909C404.964 273.716 405.002 273.559 405.079 273.439C405.155 273.318 405.256 273.223 405.384 273.154C405.511 273.085 405.652 273.034 405.805 273C405.961 272.965 406.116 272.937 406.273 272.917C406.478 272.89 406.644 272.871 406.771 272.858C406.9 272.843 406.994 272.819 407.053 272.785C407.113 272.751 407.143 272.693 407.143 272.609V272.592C407.143 272.375 407.083 272.207 406.965 272.087C406.848 271.967 406.67 271.907 406.431 271.907C406.184 271.907 405.99 271.961 405.849 272.069C405.709 272.178 405.61 272.293 405.553 272.416L405.061 272.241C405.149 272.036 405.266 271.876 405.412 271.762C405.56 271.646 405.721 271.566 405.895 271.52C406.071 271.473 406.244 271.45 406.414 271.45C406.522 271.45 406.646 271.463 406.787 271.49C406.929 271.514 407.066 271.566 407.197 271.645C407.331 271.725 407.441 271.844 407.529 272.003C407.617 272.163 407.661 272.377 407.661 272.645V274.867H407.143V274.41H407.116C407.081 274.483 407.023 274.561 406.941 274.645C406.859 274.728 406.75 274.799 406.613 274.858C406.477 274.916 406.311 274.946 406.115 274.946ZM406.194 274.48C406.399 274.48 406.572 274.44 406.712 274.359C406.854 274.279 406.961 274.175 407.033 274.048C407.106 273.92 407.143 273.786 407.143 273.646V273.172C407.121 273.198 407.072 273.222 406.998 273.244C406.924 273.265 406.84 273.283 406.743 273.299C406.648 273.314 406.555 273.327 406.464 273.338C406.375 273.349 406.302 273.357 406.247 273.365C406.112 273.382 405.986 273.411 405.869 273.45C405.753 273.488 405.66 273.546 405.588 273.624C405.518 273.7 405.483 273.804 405.483 273.936C405.483 274.116 405.549 274.252 405.682 274.344C405.817 274.435 405.988 274.48 406.194 274.48ZM410.073 271.494V271.933H408.326V271.494H410.073ZM408.835 270.686H409.353V273.901C409.353 274.047 409.374 274.157 409.417 274.23C409.461 274.302 409.516 274.35 409.584 274.375C409.653 274.398 409.725 274.41 409.801 274.41C409.858 274.41 409.905 274.407 409.942 274.401C409.978 274.394 410.008 274.388 410.029 274.384L410.135 274.849C410.1 274.862 410.051 274.875 409.988 274.889C409.925 274.903 409.845 274.911 409.748 274.911C409.602 274.911 409.459 274.879 409.318 274.816C409.179 274.753 409.063 274.657 408.971 274.529C408.88 274.4 408.835 274.237 408.835 274.041V270.686ZM412.187 274.937C411.882 274.937 411.615 274.865 411.385 274.72C411.157 274.575 410.978 274.372 410.85 274.111C410.722 273.851 410.659 273.546 410.659 273.198C410.659 272.847 410.722 272.54 410.85 272.278C410.978 272.016 411.157 271.812 411.385 271.667C411.615 271.523 411.882 271.45 412.187 271.45C412.491 271.45 412.758 271.523 412.986 271.667C413.216 271.812 413.395 272.016 413.522 272.278C413.651 272.54 413.715 272.847 413.715 273.198C413.715 273.546 413.651 273.851 413.522 274.111C413.395 274.372 413.216 274.575 412.986 274.72C412.758 274.865 412.491 274.937 412.187 274.937ZM412.187 274.471C412.418 274.471 412.608 274.412 412.758 274.294C412.907 274.175 413.018 274.019 413.089 273.826C413.161 273.633 413.197 273.423 413.197 273.198C413.197 272.972 413.161 272.762 413.089 272.568C413.018 272.373 412.907 272.216 412.758 272.096C412.608 271.976 412.418 271.916 412.187 271.916C411.956 271.916 411.765 271.976 411.616 272.096C411.467 272.216 411.356 272.373 411.284 272.568C411.213 272.762 411.177 272.972 411.177 273.198C411.177 273.423 411.213 273.633 411.284 273.826C411.356 274.019 411.467 274.175 411.616 274.294C411.765 274.412 411.956 274.471 412.187 274.471ZM414.506 274.867V271.494H415.007V272.003H415.042C415.103 271.837 415.215 271.701 415.376 271.597C415.537 271.493 415.718 271.441 415.92 271.441C415.958 271.441 416.006 271.442 416.063 271.443C416.12 271.445 416.163 271.447 416.193 271.45V271.977C416.175 271.973 416.135 271.966 416.072 271.957C416.01 271.947 415.945 271.942 415.876 271.942C415.712 271.942 415.566 271.976 415.437 272.045C415.31 272.112 415.209 272.206 415.134 272.326C415.061 272.445 415.024 272.58 415.024 272.732V274.867H414.506Z"
|
|
fill="#5A6D91"
|
|
/>
|
|
<g clip-path="url(#clip14_4955_16369)">
|
|
<path
|
|
fill-rule="evenodd"
|
|
clip-rule="evenodd"
|
|
d="M442.888 263.972L440.704 262.994C440.306 262.816 440.296 262.254 440.687 262.062L446.648 259.124C447.029 258.937 447.46 259.264 447.382 259.682L446.314 265.365C446.246 265.726 445.832 265.902 445.525 265.7L444.674 265.142L443.789 265.927C443.69 266.015 443.562 266.063 443.43 266.063C443.131 266.063 442.888 265.821 442.888 265.521V263.972ZM441.001 262.522L446.826 259.652L445.782 265.209L443.484 263.699L445.189 262.071C445.299 261.966 445.303 261.791 445.198 261.681C445.093 261.571 444.918 261.567 444.808 261.672L442.986 263.411L441.001 262.522ZM444.197 264.828L443.44 264.331V265.499L444.197 264.828Z"
|
|
fill="#5A6D91"
|
|
/>
|
|
</g>
|
|
<path
|
|
d="M439.4 271.494C439.374 271.271 439.267 271.099 439.08 270.976C438.892 270.853 438.663 270.791 438.39 270.791C438.191 270.791 438.017 270.824 437.868 270.888C437.72 270.952 437.604 271.041 437.521 271.154C437.439 271.266 437.398 271.394 437.398 271.538C437.398 271.658 437.426 271.761 437.483 271.847C437.542 271.932 437.617 272.003 437.707 272.06C437.798 272.116 437.893 272.162 437.993 272.199C438.092 272.234 438.184 272.262 438.267 272.284L438.724 272.407C438.841 272.438 438.971 272.481 439.115 272.535C439.26 272.589 439.398 272.663 439.53 272.757C439.663 272.849 439.773 272.967 439.859 273.112C439.946 273.257 439.989 273.435 439.989 273.646C439.989 273.889 439.925 274.108 439.798 274.305C439.672 274.501 439.487 274.657 439.244 274.772C439.003 274.888 438.709 274.946 438.364 274.946C438.042 274.946 437.763 274.894 437.527 274.79C437.293 274.686 437.109 274.541 436.974 274.355C436.841 274.169 436.765 273.953 436.748 273.707H437.31C437.325 273.877 437.382 274.018 437.481 274.129C437.582 274.239 437.71 274.321 437.863 274.375C438.018 274.428 438.185 274.454 438.364 274.454C438.572 274.454 438.758 274.42 438.924 274.353C439.089 274.284 439.22 274.189 439.317 274.067C439.413 273.944 439.462 273.801 439.462 273.637C439.462 273.488 439.42 273.366 439.337 273.273C439.253 273.179 439.143 273.103 439.007 273.044C438.871 272.986 438.724 272.934 438.566 272.89L438.013 272.732C437.661 272.631 437.383 272.487 437.178 272.3C436.973 272.112 436.871 271.867 436.871 271.564C436.871 271.312 436.939 271.093 437.075 270.906C437.213 270.717 437.397 270.57 437.628 270.466C437.861 270.361 438.121 270.308 438.408 270.308C438.698 270.308 438.955 270.36 439.181 270.464C439.406 270.567 439.585 270.707 439.717 270.886C439.85 271.064 439.92 271.267 439.927 271.494H439.4ZM442.228 274.937C441.903 274.937 441.623 274.865 441.387 274.722C441.153 274.577 440.972 274.375 440.845 274.116C440.719 273.855 440.656 273.552 440.656 273.207C440.656 272.861 440.719 272.557 440.845 272.293C440.972 272.028 441.149 271.822 441.376 271.674C441.604 271.525 441.871 271.45 442.175 271.45C442.351 271.45 442.524 271.479 442.696 271.538C442.867 271.596 443.023 271.692 443.163 271.823C443.304 271.954 443.416 272.126 443.499 272.342C443.583 272.557 443.624 272.822 443.624 273.136V273.356H441.025V272.908H443.097C443.097 272.718 443.059 272.548 442.983 272.399C442.909 272.249 442.802 272.131 442.663 272.045C442.525 271.959 442.363 271.916 442.175 271.916C441.969 271.916 441.79 271.967 441.639 272.069C441.49 272.17 441.375 272.302 441.295 272.465C441.214 272.627 441.174 272.801 441.174 272.987V273.286C441.174 273.54 441.218 273.756 441.306 273.933C441.395 274.109 441.519 274.243 441.677 274.335C441.835 274.426 442.019 274.471 442.228 274.471C442.364 274.471 442.487 274.452 442.597 274.414C442.708 274.375 442.804 274.316 442.884 274.239C442.965 274.16 443.027 274.062 443.071 273.944L443.572 274.085C443.519 274.255 443.431 274.404 443.306 274.533C443.182 274.66 443.028 274.76 442.845 274.832C442.662 274.902 442.456 274.937 442.228 274.937ZM444.931 272.838V274.867H444.413V271.494H444.913V272.021H444.957C445.036 271.85 445.156 271.712 445.317 271.608C445.478 271.503 445.686 271.45 445.941 271.45C446.169 271.45 446.369 271.497 446.54 271.591C446.712 271.683 446.845 271.823 446.94 272.012C447.035 272.2 447.083 272.437 447.083 272.724V274.867H446.565V272.759C446.565 272.494 446.496 272.287 446.358 272.14C446.221 271.99 446.032 271.916 445.792 271.916C445.626 271.916 445.478 271.951 445.348 272.023C445.219 272.095 445.118 272.2 445.043 272.337C444.968 272.475 444.931 272.642 444.931 272.838ZM449.303 274.937C449.022 274.937 448.774 274.866 448.559 274.724C448.344 274.581 448.175 274.379 448.054 274.118C447.932 273.856 447.872 273.546 447.872 273.189C447.872 272.835 447.932 272.527 448.054 272.267C448.175 272.006 448.344 271.805 448.561 271.663C448.778 271.521 449.028 271.45 449.312 271.45C449.532 271.45 449.705 271.487 449.832 271.56C449.961 271.632 450.059 271.714 450.127 271.806C450.196 271.897 450.249 271.971 450.287 272.03H450.331V270.37H450.849V274.867H450.349V274.348H450.287C450.249 274.41 450.195 274.488 450.125 274.581C450.054 274.673 449.954 274.756 449.824 274.829C449.693 274.901 449.52 274.937 449.303 274.937ZM449.374 274.471C449.581 274.471 449.757 274.417 449.901 274.309C450.044 274.199 450.153 274.048 450.228 273.854C450.302 273.66 450.34 273.435 450.34 273.18C450.34 272.929 450.303 272.708 450.23 272.519C450.157 272.329 450.048 272.181 449.905 272.076C449.762 271.969 449.584 271.916 449.374 271.916C449.154 271.916 448.971 271.972 448.825 272.085C448.68 272.196 448.571 272.347 448.497 272.539C448.426 272.729 448.39 272.943 448.39 273.18C448.39 273.42 448.426 273.639 448.5 273.835C448.574 274.029 448.684 274.185 448.829 274.3C448.975 274.414 449.157 274.471 449.374 274.471Z"
|
|
fill="#5A6D91"
|
|
/>
|
|
<g clip-path="url(#clip15_4955_16369)">
|
|
<path
|
|
d="M485.44 263.475C486.166 263.475 486.754 262.882 486.754 262.15C486.754 261.418 486.166 260.825 485.44 260.825C484.715 260.825 484.127 261.418 484.127 262.15C484.127 262.882 484.715 263.475 485.44 263.475Z"
|
|
fill="#5A6D91"
|
|
/>
|
|
<path
|
|
fill-rule="evenodd"
|
|
clip-rule="evenodd"
|
|
d="M488.819 259.107L489.794 260.777C489.9 260.958 489.863 261.188 489.705 261.325L489.057 261.888C489.063 261.975 489.067 262.062 489.067 262.15C489.067 262.239 489.063 262.327 489.057 262.414L489.702 262.975C489.86 263.112 489.898 263.342 489.792 263.524L488.817 265.193C488.711 265.375 488.491 265.458 488.292 265.391L487.477 265.119C487.331 265.217 487.178 265.305 487.019 265.381L486.85 266.213C486.809 266.419 486.629 266.567 486.421 266.567H484.457C484.249 266.567 484.069 266.419 484.028 266.213L483.86 265.382C483.699 265.306 483.545 265.217 483.398 265.119L482.583 265.391C482.384 265.458 482.164 265.375 482.058 265.193L481.083 263.524C480.977 263.342 481.014 263.112 481.172 262.975L481.818 262.413C481.812 262.326 481.809 262.239 481.809 262.15C481.809 262.062 481.812 261.975 481.818 261.889L481.17 261.325C481.012 261.188 480.974 260.958 481.081 260.777L482.055 259.107C482.162 258.925 482.381 258.842 482.581 258.909L483.397 259.182C483.544 259.083 483.698 258.995 483.86 258.918L484.028 258.087C484.069 257.881 484.249 257.733 484.457 257.733H486.421C486.629 257.733 486.809 257.881 486.85 258.087L487.019 258.919C487.179 258.996 487.332 259.084 487.478 259.182L488.294 258.909C488.493 258.842 488.713 258.925 488.819 259.107ZM484.141 259.516L484.438 259.374L484.636 258.396H486.242L486.441 259.375L486.737 259.517C486.868 259.58 486.994 259.652 487.113 259.733L487.38 259.913L488.34 259.592L489.132 260.949L488.378 261.604L488.402 261.937C488.407 262.007 488.41 262.078 488.41 262.15C488.41 262.222 488.407 262.294 488.402 262.365L488.377 262.698L489.13 263.352L488.337 264.709L487.379 264.388L487.112 264.568C486.993 264.648 486.868 264.72 486.737 264.783L486.441 264.925L486.242 265.904H484.636L484.438 264.926L484.141 264.784C484.009 264.721 483.883 264.648 483.763 264.568L483.496 264.388L482.537 264.709L481.745 263.352L482.498 262.697L482.473 262.364C482.468 262.294 482.466 262.222 482.466 262.15C482.466 262.078 482.468 262.007 482.473 261.937L482.498 261.605L481.743 260.949L482.535 259.592L483.495 259.913L483.762 259.733C483.882 259.652 484.009 259.579 484.141 259.516Z"
|
|
fill="#5A6D91"
|
|
/>
|
|
</g>
|
|
<path
|
|
d="M476.358 271.494C476.332 271.271 476.225 271.099 476.038 270.976C475.85 270.853 475.621 270.791 475.348 270.791C475.149 270.791 474.975 270.824 474.826 270.888C474.678 270.952 474.562 271.041 474.479 271.154C474.397 271.266 474.356 271.394 474.356 271.538C474.356 271.658 474.384 271.761 474.441 271.847C474.5 271.932 474.575 272.003 474.665 272.06C474.756 272.116 474.851 272.162 474.951 272.199C475.05 272.234 475.142 272.262 475.225 272.284L475.682 272.407C475.799 272.438 475.929 272.481 476.073 272.535C476.218 272.589 476.356 272.663 476.488 272.757C476.621 272.849 476.731 272.967 476.817 273.112C476.904 273.257 476.947 273.435 476.947 273.646C476.947 273.889 476.883 274.108 476.756 274.305C476.63 274.501 476.445 274.657 476.202 274.772C475.961 274.888 475.667 274.946 475.322 274.946C475 274.946 474.721 274.894 474.485 274.79C474.251 274.686 474.067 274.541 473.932 274.355C473.799 274.169 473.723 273.953 473.706 273.707H474.268C474.283 273.877 474.34 274.018 474.439 274.129C474.54 274.239 474.668 274.321 474.821 274.375C474.976 274.428 475.143 274.454 475.322 274.454C475.53 274.454 475.716 274.42 475.882 274.353C476.047 274.284 476.178 274.189 476.275 274.067C476.372 273.944 476.42 273.801 476.42 273.637C476.42 273.488 476.378 273.366 476.295 273.273C476.211 273.179 476.101 273.103 475.965 273.044C475.829 272.986 475.682 272.934 475.524 272.89L474.971 272.732C474.619 272.631 474.341 272.487 474.136 272.3C473.931 272.112 473.829 271.867 473.829 271.564C473.829 271.312 473.897 271.093 474.033 270.906C474.171 270.717 474.355 270.57 474.586 270.466C474.819 270.361 475.079 270.308 475.366 270.308C475.656 270.308 475.913 270.36 476.139 270.464C476.364 270.567 476.543 270.707 476.675 270.886C476.808 271.064 476.878 271.267 476.885 271.494H476.358ZM479.186 274.937C478.861 274.937 478.581 274.865 478.345 274.722C478.111 274.577 477.93 274.375 477.803 274.116C477.677 273.855 477.614 273.552 477.614 273.207C477.614 272.861 477.677 272.557 477.803 272.293C477.93 272.028 478.107 271.822 478.334 271.674C478.562 271.525 478.829 271.45 479.133 271.45C479.309 271.45 479.482 271.479 479.654 271.538C479.825 271.596 479.981 271.692 480.121 271.823C480.262 271.954 480.374 272.126 480.457 272.342C480.541 272.557 480.582 272.822 480.582 273.136V273.356H477.983V272.908H480.055C480.055 272.718 480.017 272.548 479.941 272.399C479.867 272.249 479.76 272.131 479.621 272.045C479.483 271.959 479.321 271.916 479.133 271.916C478.927 271.916 478.748 271.967 478.597 272.069C478.448 272.17 478.333 272.302 478.253 272.465C478.172 272.627 478.132 272.801 478.132 272.987V273.286C478.132 273.54 478.176 273.756 478.264 273.933C478.353 274.109 478.477 274.243 478.635 274.335C478.793 274.426 478.977 274.471 479.186 274.471C479.322 274.471 479.445 274.452 479.555 274.414C479.666 274.375 479.762 274.316 479.842 274.239C479.923 274.16 479.985 274.062 480.029 273.944L480.53 274.085C480.477 274.255 480.389 274.404 480.264 274.533C480.14 274.66 479.986 274.76 479.803 274.832C479.62 274.902 479.414 274.937 479.186 274.937ZM482.838 271.494V271.933H481.09V271.494H482.838ZM481.599 270.686H482.117V273.901C482.117 274.047 482.139 274.157 482.181 274.23C482.225 274.302 482.281 274.35 482.348 274.375C482.417 274.398 482.489 274.41 482.565 274.41C482.622 274.41 482.669 274.407 482.706 274.401C482.742 274.394 482.772 274.388 482.794 274.384L482.899 274.849C482.864 274.862 482.815 274.875 482.752 274.889C482.689 274.903 482.609 274.911 482.513 274.911C482.366 274.911 482.223 274.879 482.082 274.816C481.943 274.753 481.827 274.657 481.735 274.529C481.644 274.4 481.599 274.237 481.599 274.041V270.686ZM485.084 271.494V271.933H483.336V271.494H485.084ZM483.845 270.686H484.364V273.901C484.364 274.047 484.385 274.157 484.427 274.23C484.471 274.302 484.527 274.35 484.594 274.375C484.663 274.398 484.735 274.41 484.812 274.41C484.869 274.41 484.915 274.407 484.952 274.401C484.989 274.394 485.018 274.388 485.04 274.384L485.145 274.849C485.11 274.862 485.061 274.875 484.998 274.889C484.935 274.903 484.855 274.911 484.759 274.911C484.612 274.911 484.469 274.879 484.328 274.816C484.189 274.753 484.074 274.657 483.982 274.529C483.891 274.4 483.845 274.237 483.845 274.041V270.686ZM485.863 274.867V271.494H486.382V274.867H485.863ZM486.127 270.932C486.026 270.932 485.939 270.897 485.866 270.829C485.794 270.76 485.758 270.677 485.758 270.581C485.758 270.484 485.794 270.401 485.866 270.332C485.939 270.264 486.026 270.229 486.127 270.229C486.228 270.229 486.314 270.264 486.386 270.332C486.459 270.401 486.496 270.484 486.496 270.581C486.496 270.677 486.459 270.76 486.386 270.829C486.314 270.897 486.228 270.932 486.127 270.932ZM487.849 272.838V274.867H487.331V271.494H487.831V272.021H487.875C487.954 271.85 488.074 271.712 488.235 271.608C488.396 271.503 488.604 271.45 488.859 271.45C489.087 271.45 489.287 271.497 489.458 271.591C489.63 271.683 489.763 271.823 489.858 272.012C489.953 272.2 490.001 272.437 490.001 272.724V274.867H489.483V272.759C489.483 272.494 489.414 272.287 489.276 272.14C489.139 271.99 488.95 271.916 488.71 271.916C488.544 271.916 488.396 271.951 488.266 272.023C488.137 272.095 488.036 272.2 487.961 272.337C487.886 272.475 487.849 272.642 487.849 272.838ZM492.309 276.202C492.059 276.202 491.844 276.17 491.664 276.105C491.483 276.042 491.333 275.959 491.213 275.855C491.095 275.752 491 275.643 490.93 275.525L491.343 275.236C491.39 275.297 491.449 275.367 491.521 275.446C491.593 275.527 491.691 275.596 491.815 275.655C491.941 275.715 492.106 275.745 492.309 275.745C492.581 275.745 492.806 275.679 492.983 275.547C493.16 275.416 493.249 275.209 493.249 274.928V274.243H493.205C493.167 274.305 493.113 274.381 493.042 274.471C492.974 274.561 492.874 274.641 492.744 274.711C492.615 274.78 492.441 274.814 492.221 274.814C491.949 274.814 491.704 274.75 491.488 274.621C491.273 274.492 491.102 274.305 490.976 274.059C490.852 273.813 490.79 273.514 490.79 273.163C490.79 272.817 490.85 272.516 490.972 272.26C491.093 272.003 491.262 271.804 491.479 271.663C491.696 271.521 491.946 271.45 492.23 271.45C492.45 271.45 492.624 271.487 492.753 271.56C492.883 271.632 492.982 271.714 493.051 271.806C493.122 271.897 493.176 271.971 493.214 272.03H493.266V271.494H493.767V274.963C493.767 275.253 493.701 275.489 493.569 275.67C493.439 275.853 493.264 275.987 493.042 276.072C492.823 276.159 492.578 276.202 492.309 276.202ZM492.291 274.348C492.499 274.348 492.675 274.301 492.818 274.206C492.962 274.111 493.071 273.974 493.146 273.795C493.22 273.617 493.258 273.403 493.258 273.154C493.258 272.911 493.221 272.697 493.148 272.511C493.075 272.325 492.966 272.179 492.823 272.074C492.679 271.968 492.502 271.916 492.291 271.916C492.072 271.916 491.889 271.971 491.743 272.082C491.598 272.194 491.489 272.343 491.415 272.53C491.344 272.718 491.308 272.926 491.308 273.154C491.308 273.388 491.344 273.595 491.418 273.775C491.492 273.954 491.602 274.095 491.747 274.197C491.893 274.298 492.075 274.348 492.291 274.348ZM497.105 272.249L496.639 272.381C496.61 272.303 496.567 272.228 496.51 272.155C496.454 272.08 496.378 272.019 496.281 271.97C496.185 271.922 496.061 271.898 495.91 271.898C495.704 271.898 495.532 271.946 495.394 272.041C495.258 272.134 495.19 272.254 495.19 272.399C495.19 272.527 495.237 272.629 495.33 272.704C495.424 272.779 495.571 272.841 495.77 272.89L496.27 273.013C496.572 273.087 496.797 273.199 496.944 273.349C497.092 273.499 497.166 273.691 497.166 273.927C497.166 274.12 497.111 274.293 496.999 274.445C496.889 274.597 496.736 274.717 496.538 274.805C496.341 274.893 496.111 274.937 495.849 274.937C495.505 274.937 495.22 274.862 494.995 274.713C494.769 274.564 494.626 274.346 494.566 274.059L495.058 273.936C495.105 274.117 495.194 274.253 495.324 274.344C495.456 274.435 495.628 274.48 495.84 274.48C496.081 274.48 496.273 274.429 496.415 274.327C496.559 274.223 496.63 274.098 496.63 273.953C496.63 273.836 496.589 273.738 496.507 273.659C496.425 273.579 496.3 273.518 496.13 273.479L495.568 273.347C495.259 273.274 495.032 273.161 494.887 273.007C494.743 272.852 494.672 272.658 494.672 272.425C494.672 272.235 494.725 272.066 494.832 271.92C494.94 271.774 495.087 271.659 495.273 271.575C495.461 271.492 495.673 271.45 495.91 271.45C496.244 271.45 496.506 271.523 496.696 271.67C496.888 271.816 497.024 272.009 497.105 272.249Z"
|
|
fill="#5A6D91"
|
|
/>
|
|
<rect
|
|
width="167.833"
|
|
height="42.5667"
|
|
transform="translate(339 76.7333)"
|
|
fill="#F3F6F9"
|
|
/>
|
|
<g clip-path="url(#clip16_4955_16369)">
|
|
<path
|
|
d="M347.833 82.254H478.566C480.396 82.254 481.879 83.7371 481.879 85.5665V94.3995C481.879 96.229 480.396 97.712 478.566 97.712H347.833C346.004 97.712 344.521 96.2289 344.521 94.3995V85.5665C344.521 83.7372 346.004 82.2541 347.833 82.254Z"
|
|
fill="white"
|
|
/>
|
|
<path
|
|
d="M347.833 82.254H478.566C480.396 82.254 481.879 83.7371 481.879 85.5665V94.3995C481.879 96.229 480.396 97.712 478.566 97.712H347.833C346.004 97.712 344.521 96.2289 344.521 94.3995V85.5665C344.521 83.7372 346.004 82.2541 347.833 82.254Z"
|
|
stroke="#5A6D91"
|
|
stroke-width="0.441667"
|
|
/>
|
|
<g clip-path="url(#clip17_4955_16369)">
|
|
<path
|
|
fill-rule="evenodd"
|
|
clip-rule="evenodd"
|
|
d="M354.633 91.9472C354.103 92.3763 353.427 92.6333 352.691 92.6333C350.984 92.6333 349.6 91.2491 349.6 89.5416C349.6 87.8341 350.984 86.45 352.691 86.45C354.399 86.45 355.783 87.8341 355.783 89.5416C355.783 90.2773 355.526 90.953 355.097 91.4838C355.11 91.4934 355.122 91.504 355.134 91.5157L356.459 92.8407C356.588 92.9701 356.588 93.1798 356.459 93.3092C356.329 93.4385 356.12 93.4385 355.99 93.3092L354.665 91.9842C354.654 91.9725 354.643 91.9601 354.633 91.9472ZM355.12 89.5416C355.12 90.8832 354.033 91.9708 352.691 91.9708C351.35 91.9708 350.262 90.8832 350.262 89.5416C350.262 88.2 351.35 87.1125 352.691 87.1125C354.033 87.1125 355.12 88.2 355.12 89.5416Z"
|
|
fill="#5A6D91"
|
|
/>
|
|
</g>
|
|
<path
|
|
d="M363.053 91.3722C363.053 91.2696 363.037 91.179 363.005 91.1005C362.975 91.02 362.92 90.9475 362.842 90.8831C362.766 90.8187 362.659 90.7573 362.522 90.6989C362.387 90.6406 362.216 90.5812 362.009 90.5208C361.791 90.4564 361.595 90.3849 361.42 90.3064C361.245 90.2259 361.095 90.1343 360.97 90.0317C360.845 89.929 360.75 89.8113 360.683 89.6784C360.617 89.5456 360.584 89.3936 360.584 89.2225C360.584 89.0514 360.619 88.8934 360.689 88.7485C360.76 88.6036 360.86 88.4778 360.991 88.3711C361.124 88.2624 361.282 88.1779 361.465 88.1175C361.648 88.0571 361.853 88.0269 362.078 88.0269C362.408 88.0269 362.688 88.0903 362.917 88.2171C363.149 88.3419 363.325 88.506 363.446 88.7093C363.567 88.9105 363.627 89.1259 363.627 89.3554H363.047C363.047 89.1903 363.012 89.0444 362.942 88.9176C362.871 88.7888 362.765 88.6881 362.622 88.6157C362.479 88.5412 362.298 88.504 362.078 88.504C361.871 88.504 361.7 88.5352 361.565 88.5976C361.43 88.66 361.329 88.7445 361.263 88.8512C361.199 88.9579 361.166 89.0796 361.166 89.2165C361.166 89.3091 361.185 89.3936 361.224 89.4701C361.264 89.5446 361.325 89.614 361.408 89.6784C361.492 89.7428 361.599 89.8022 361.728 89.8566C361.859 89.9109 362.015 89.9632 362.196 90.0136C362.445 90.084 362.661 90.1625 362.842 90.2491C363.023 90.3356 363.172 90.4332 363.289 90.5419C363.408 90.6486 363.495 90.7704 363.552 90.9073C363.61 91.0421 363.639 91.1951 363.639 91.3662C363.639 91.5453 363.603 91.7073 363.53 91.8523C363.458 91.9972 363.354 92.121 363.219 92.2236C363.085 92.3263 362.923 92.4058 362.733 92.4621C362.546 92.5165 362.337 92.5437 362.105 92.5437C361.902 92.5437 361.702 92.5155 361.504 92.4591C361.309 92.4028 361.131 92.3182 360.97 92.2055C360.811 92.0928 360.683 91.9539 360.587 91.7889C360.492 91.6218 360.445 91.4286 360.445 91.2092H361.024C361.024 91.3601 361.054 91.49 361.112 91.5986C361.17 91.7053 361.25 91.7939 361.351 91.8643C361.453 91.9348 361.569 91.9871 361.698 92.0213C361.829 92.0535 361.964 92.0696 362.105 92.0696C362.309 92.0696 362.481 92.0415 362.622 91.9851C362.762 91.9287 362.869 91.8482 362.942 91.7436C363.016 91.6389 363.053 91.5151 363.053 91.3722ZM365.653 92.5437C365.425 92.5437 365.219 92.5054 365.034 92.4289C364.851 92.3504 364.693 92.2407 364.56 92.0998C364.429 91.9589 364.328 91.7919 364.258 91.5986C364.188 91.4054 364.152 91.1941 364.152 90.9646V90.8378C364.152 90.5721 364.192 90.3356 364.27 90.1283C364.349 89.919 364.455 89.7418 364.59 89.5969C364.725 89.452 364.878 89.3423 365.049 89.2678C365.22 89.1933 365.397 89.1561 365.58 89.1561C365.814 89.1561 366.015 89.1964 366.184 89.2769C366.355 89.3574 366.495 89.4701 366.604 89.615C366.713 89.7579 366.793 89.927 366.845 90.1223C366.898 90.3155 366.924 90.5268 366.924 90.7563V91.0069H364.484V90.551H366.365V90.5087C366.357 90.3638 366.327 90.2229 366.275 90.086C366.225 89.9492 366.144 89.8364 366.033 89.7479C365.923 89.6593 365.772 89.615 365.58 89.615C365.454 89.615 365.337 89.6422 365.23 89.6965C365.124 89.7489 365.032 89.8274 364.955 89.932C364.879 90.0367 364.82 90.1645 364.777 90.3155C364.735 90.4664 364.714 90.6406 364.714 90.8378V90.9646C364.714 91.1196 364.735 91.2655 364.777 91.4024C364.822 91.5373 364.885 91.656 364.968 91.7587C365.052 91.8613 365.154 91.9418 365.272 92.0002C365.393 92.0586 365.53 92.0878 365.683 92.0878C365.88 92.0878 366.047 92.0475 366.184 91.967C366.321 91.8865 366.441 91.7788 366.544 91.6439L366.882 91.9126C366.811 92.0193 366.722 92.121 366.613 92.2176C366.504 92.3142 366.37 92.3927 366.211 92.4531C366.054 92.5135 365.868 92.5437 365.653 92.5437ZM369.502 91.9247V90.243C369.502 90.1142 369.476 90.0025 369.424 89.9079C369.374 89.8113 369.297 89.7368 369.194 89.6845C369.092 89.6321 368.965 89.606 368.814 89.606C368.673 89.606 368.549 89.6301 368.443 89.6784C368.338 89.7267 368.255 89.7901 368.195 89.8686C368.137 89.9471 368.107 90.0317 368.107 90.1223H367.549C367.549 90.0055 367.579 89.8898 367.64 89.775C367.7 89.6603 367.786 89.5567 367.899 89.4641C368.014 89.3695 368.151 89.295 368.31 89.2406C368.471 89.1843 368.65 89.1561 368.847 89.1561C369.085 89.1561 369.294 89.1964 369.475 89.2769C369.658 89.3574 369.801 89.4792 369.904 89.6422C370.009 89.8032 370.061 90.0055 370.061 90.2491V91.7707C370.061 91.8794 370.07 91.9952 370.088 92.118C370.108 92.2407 370.137 92.3464 370.176 92.435V92.4833H369.593C369.565 92.4189 369.543 92.3333 369.527 92.2266C369.51 92.118 369.502 92.0173 369.502 91.9247ZM369.599 90.5027L369.605 90.8952H369.04C368.881 90.8952 368.74 90.9083 368.615 90.9344C368.49 90.9586 368.385 90.9958 368.301 91.0461C368.216 91.0965 368.152 91.1599 368.107 91.2363C368.063 91.3108 368.041 91.3984 368.041 91.499C368.041 91.6017 368.064 91.6953 368.111 91.7798C368.157 91.8643 368.226 91.9318 368.319 91.9821C368.413 92.0304 368.529 92.0545 368.666 92.0545C368.837 92.0545 368.988 92.0183 369.119 91.9459C369.25 91.8734 369.353 91.7848 369.43 91.6802C369.508 91.5755 369.551 91.4739 369.557 91.3752L369.795 91.6439C369.781 91.7285 369.743 91.8221 369.681 91.9247C369.618 92.0274 369.535 92.126 369.43 92.2206C369.327 92.3132 369.204 92.3907 369.062 92.4531C368.921 92.5135 368.762 92.5437 368.585 92.5437C368.363 92.5437 368.169 92.5004 368.002 92.4138C367.837 92.3273 367.708 92.2115 367.615 92.0666C367.525 91.9197 367.48 91.7556 367.48 91.5745C367.48 91.3994 367.514 91.2454 367.582 91.1126C367.651 90.9777 367.749 90.866 367.878 90.7774C368.007 90.6868 368.162 90.6184 368.343 90.5721C368.524 90.5258 368.726 90.5027 368.95 90.5027H369.599ZM371.498 89.7298V92.4833H370.94V89.2165H371.483L371.498 89.7298ZM372.519 89.1984L372.516 89.7177C372.469 89.7076 372.425 89.7016 372.383 89.6996C372.342 89.6955 372.296 89.6935 372.244 89.6935C372.115 89.6935 372.001 89.7137 371.903 89.7539C371.804 89.7942 371.72 89.8505 371.652 89.923C371.584 89.9955 371.529 90.082 371.489 90.1826C371.451 90.2813 371.426 90.39 371.414 90.5087L371.257 90.5993C371.257 90.402 371.276 90.2169 371.314 90.0438C371.354 89.8707 371.416 89.7177 371.498 89.5848C371.581 89.45 371.685 89.3453 371.812 89.2708C371.941 89.1944 372.094 89.1561 372.271 89.1561C372.311 89.1561 372.358 89.1611 372.41 89.1712C372.462 89.1793 372.498 89.1883 372.519 89.1984ZM374.282 92.0847C374.415 92.0847 374.537 92.0576 374.65 92.0032C374.763 91.9489 374.855 91.8744 374.928 91.7798C375 91.6832 375.042 91.5735 375.052 91.4507H375.583C375.573 91.6439 375.508 91.8241 375.387 91.9911C375.268 92.1562 375.112 92.29 374.919 92.3927C374.726 92.4933 374.513 92.5437 374.282 92.5437C374.036 92.5437 373.822 92.5004 373.639 92.4138C373.458 92.3273 373.307 92.2085 373.186 92.0576C373.067 91.9066 372.977 91.7335 372.917 91.5383C372.859 91.341 372.83 91.1327 372.83 90.9133V90.7865C372.83 90.5671 372.859 90.3598 372.917 90.1645C372.977 89.9673 373.067 89.7932 373.186 89.6422C373.307 89.4912 373.458 89.3725 373.639 89.2859C373.822 89.1994 374.036 89.1561 374.282 89.1561C374.537 89.1561 374.761 89.2084 374.952 89.3131C375.143 89.4158 375.293 89.5567 375.402 89.7358C375.513 89.9129 375.573 90.1142 375.583 90.3396H375.052C375.042 90.2048 375.003 90.083 374.937 89.9743C374.873 89.8656 374.784 89.7791 374.671 89.7147C374.561 89.6482 374.431 89.615 374.282 89.615C374.111 89.615 373.967 89.6492 373.85 89.7177C373.735 89.7841 373.644 89.8747 373.575 89.9894C373.509 90.1021 373.461 90.2279 373.43 90.3668C373.402 90.5037 373.388 90.6436 373.388 90.7865V90.9133C373.388 91.0562 373.402 91.1971 373.43 91.336C373.459 91.4749 373.506 91.6007 373.572 91.7134C373.641 91.8261 373.732 91.9167 373.847 91.9851C373.964 92.0515 374.109 92.0847 374.282 92.0847ZM376.77 87.8458V92.4833H376.211V87.8458H376.77ZM376.637 90.7261L376.404 90.717C376.406 90.4936 376.439 90.2873 376.504 90.0981C376.568 89.9069 376.659 89.7408 376.776 89.5999C376.892 89.459 377.031 89.3503 377.192 89.2739C377.355 89.1954 377.535 89.1561 377.733 89.1561C377.894 89.1561 378.039 89.1783 378.167 89.2225C378.296 89.2648 378.406 89.3332 378.497 89.4278C378.589 89.5224 378.66 89.6452 378.708 89.7962C378.756 89.9451 378.78 90.1273 378.78 90.3427V92.4833H378.219V90.3366C378.219 90.1655 378.194 90.0287 378.143 89.926C378.093 89.8213 378.02 89.7459 377.923 89.6996C377.826 89.6513 377.708 89.6271 377.567 89.6271C377.428 89.6271 377.301 89.6563 377.186 89.7147C377.074 89.773 376.976 89.8535 376.893 89.9562C376.813 90.0589 376.749 90.1766 376.703 90.3094C376.659 90.4403 376.637 90.5792 376.637 90.7261Z"
|
|
fill="#5A6D91"
|
|
/>
|
|
<path
|
|
d="M485.633 85.5667C485.633 83.6153 487.215 82.0333 489.166 82.0333H497.999C499.951 82.0333 501.533 83.6153 501.533 85.5667V94.4C501.533 96.3514 499.951 97.9333 497.999 97.9333H489.166C487.215 97.9333 485.633 96.3514 485.633 94.4V85.5667Z"
|
|
fill="#5A6D91"
|
|
/>
|
|
<g clip-path="url(#clip18_4955_16369)">
|
|
<path
|
|
fill-rule="evenodd"
|
|
clip-rule="evenodd"
|
|
d="M489.58 86.8089H490.35C490.514 86.4042 490.911 86.1188 491.374 86.1188C491.838 86.1188 492.234 86.4042 492.398 86.8089H497.585C497.814 86.8089 497.999 86.9943 497.999 87.2229C497.999 87.4516 497.814 87.637 497.585 87.637H492.398C492.234 88.0417 491.838 88.3271 491.374 88.3271C490.911 88.3271 490.514 88.0417 490.35 87.637H489.58C489.351 87.637 489.166 87.4516 489.166 87.2229C489.166 86.9943 489.351 86.8089 489.58 86.8089ZM491.65 87.2229C491.65 87.3754 491.527 87.499 491.374 87.499C491.222 87.499 491.098 87.3754 491.098 87.2229C491.098 87.0705 491.222 86.9469 491.374 86.9469C491.527 86.9469 491.65 87.0705 491.65 87.2229Z"
|
|
fill="white"
|
|
/>
|
|
<path
|
|
fill-rule="evenodd"
|
|
clip-rule="evenodd"
|
|
d="M490.35 92.3297H489.58C489.351 92.3297 489.166 92.5151 489.166 92.7438C489.166 92.9725 489.351 93.1578 489.58 93.1578H490.35C490.514 93.5625 490.911 93.8479 491.374 93.8479C491.838 93.8479 492.234 93.5625 492.398 93.1578H497.585C497.814 93.1578 497.999 92.9725 497.999 92.7438C497.999 92.5151 497.814 92.3297 497.585 92.3297H492.398C492.234 91.9251 491.838 91.6396 491.374 91.6396C490.911 91.6396 490.514 91.9251 490.35 92.3297ZM491.65 92.7438C491.65 92.8962 491.527 93.0198 491.374 93.0198C491.222 93.0198 491.098 92.8962 491.098 92.7438C491.098 92.5913 491.222 92.4677 491.374 92.4677C491.527 92.4677 491.65 92.5913 491.65 92.7438Z"
|
|
fill="white"
|
|
/>
|
|
<path
|
|
fill-rule="evenodd"
|
|
clip-rule="evenodd"
|
|
d="M496.815 89.5693C496.651 89.1646 496.254 88.8792 495.791 88.8792C495.328 88.8792 494.931 89.1646 494.767 89.5693H489.58C489.351 89.5693 489.166 89.7547 489.166 89.9834C489.166 90.212 489.351 90.3974 489.58 90.3974H494.767C494.931 90.8021 495.328 91.0875 495.791 91.0875C496.254 91.0875 496.651 90.8021 496.815 90.3974H497.585C497.814 90.3974 497.999 90.212 497.999 89.9834C497.999 89.7547 497.814 89.5693 497.585 89.5693H496.815ZM495.791 90.2594C495.639 90.2594 495.515 90.1358 495.515 89.9834C495.515 89.8309 495.639 89.7073 495.791 89.7073C495.943 89.7073 496.067 89.8309 496.067 89.9834C496.067 90.1358 495.943 90.2594 495.791 90.2594Z"
|
|
fill="white"
|
|
/>
|
|
</g>
|
|
<path
|
|
d="M350.566 101.687H414.883C418.222 101.687 420.929 104.394 420.929 107.733C420.929 111.072 418.222 113.779 414.883 113.779H350.566C347.227 113.779 344.521 111.072 344.521 107.733C344.521 104.394 347.227 101.687 350.566 101.687Z"
|
|
stroke="#5A6D91"
|
|
stroke-width="0.441667"
|
|
/>
|
|
<g clip-path="url(#clip19_4955_16369)">
|
|
<path
|
|
fill-rule="evenodd"
|
|
clip-rule="evenodd"
|
|
d="M350.373 105.028C349.946 105.028 349.6 105.374 349.6 105.801V109.279C349.6 109.706 349.946 110.052 350.373 110.052H355.01C355.437 110.052 355.783 109.706 355.783 109.279V106.574C355.783 106.147 355.437 105.801 355.01 105.801H352.691L352.145 105.255C352 105.11 351.803 105.028 351.598 105.028H350.373ZM352.451 106.381L351.735 105.664C351.699 105.628 351.649 105.608 351.598 105.608H350.373C350.266 105.608 350.179 105.694 350.179 105.801V109.279C350.179 109.386 350.266 109.472 350.373 109.472H355.01C355.117 109.472 355.203 109.386 355.203 109.279V106.574C355.203 106.467 355.117 106.381 355.01 106.381H352.451Z"
|
|
fill="#5A6D91"
|
|
/>
|
|
</g>
|
|
<path
|
|
d="M359.526 105.837V110.233H358.943V105.837H359.526ZM361.367 107.815V108.292H359.399V107.815H361.367ZM361.666 105.837V106.314H359.399V105.837H361.666ZM362.062 108.636V108.567C362.062 108.331 362.096 108.113 362.164 107.912C362.233 107.708 362.331 107.532 362.46 107.383C362.589 107.232 362.745 107.116 362.928 107.033C363.111 106.949 363.317 106.906 363.544 106.906C363.774 106.906 363.98 106.949 364.163 107.033C364.348 107.116 364.505 107.232 364.634 107.383C364.765 107.532 364.865 107.708 364.933 107.912C365.001 108.113 365.036 108.331 365.036 108.567V108.636C365.036 108.872 365.001 109.09 364.933 109.291C364.865 109.493 364.765 109.669 364.634 109.82C364.505 109.969 364.349 110.085 364.166 110.17C363.985 110.253 363.78 110.294 363.55 110.294C363.321 110.294 363.114 110.253 362.931 110.17C362.748 110.085 362.591 109.969 362.46 109.82C362.331 109.669 362.233 109.493 362.164 109.291C362.096 109.09 362.062 108.872 362.062 108.636ZM362.62 108.567V108.636C362.62 108.799 362.639 108.953 362.678 109.098C362.716 109.241 362.773 109.368 362.85 109.479C362.928 109.589 363.026 109.677 363.143 109.741C363.259 109.804 363.395 109.835 363.55 109.835C363.703 109.835 363.837 109.804 363.952 109.741C364.068 109.677 364.165 109.589 364.242 109.479C364.318 109.368 364.375 109.241 364.414 109.098C364.454 108.953 364.474 108.799 364.474 108.636V108.567C364.474 108.406 364.454 108.254 364.414 108.111C364.375 107.966 364.317 107.838 364.239 107.727C364.162 107.615 364.065 107.526 363.949 107.462C363.834 107.397 363.699 107.365 363.544 107.365C363.391 107.365 363.256 107.397 363.14 107.462C363.025 107.526 362.928 107.615 362.85 107.727C362.773 107.838 362.716 107.966 362.678 108.111C362.639 108.254 362.62 108.406 362.62 108.567ZM366.343 105.596V110.233H365.781V105.596H366.343ZM369.299 109.599V105.596H369.86V110.233H369.347L369.299 109.599ZM367.101 108.636V108.573C367.101 108.323 367.131 108.097 367.191 107.894C367.254 107.688 367.341 107.512 367.454 107.365C367.569 107.218 367.705 107.106 367.862 107.027C368.021 106.946 368.198 106.906 368.393 106.906C368.598 106.906 368.777 106.942 368.93 107.015C369.085 107.085 369.216 107.189 369.323 107.326C369.432 107.461 369.517 107.624 369.58 107.815C369.642 108.006 369.685 108.223 369.709 108.464V108.742C369.687 108.981 369.644 109.197 369.58 109.388C369.517 109.579 369.432 109.742 369.323 109.877C369.216 110.012 369.085 110.116 368.93 110.188C368.775 110.259 368.594 110.294 368.387 110.294C368.196 110.294 368.021 110.253 367.862 110.17C367.705 110.087 367.569 109.972 367.454 109.823C367.341 109.674 367.254 109.499 367.191 109.297C367.131 109.094 367.101 108.874 367.101 108.636ZM367.662 108.573V108.636C367.662 108.799 367.678 108.952 367.711 109.095C367.745 109.238 367.797 109.364 367.868 109.473C367.938 109.581 368.028 109.667 368.136 109.729C368.245 109.79 368.375 109.82 368.526 109.82C368.711 109.82 368.863 109.781 368.982 109.702C369.102 109.624 369.199 109.52 369.272 109.391C369.344 109.262 369.4 109.122 369.441 108.971V108.244C369.416 108.133 369.381 108.026 369.335 107.924C369.291 107.819 369.232 107.726 369.16 107.646C369.089 107.563 369.002 107.498 368.897 107.45C368.795 107.401 368.673 107.377 368.532 107.377C368.379 107.377 368.247 107.409 368.136 107.474C368.028 107.536 367.938 107.623 367.868 107.733C367.797 107.842 367.745 107.969 367.711 108.114C367.678 108.257 367.662 108.41 367.662 108.573ZM372.085 110.294C371.858 110.294 371.652 110.256 371.467 110.179C371.283 110.101 371.125 109.991 370.993 109.85C370.862 109.709 370.761 109.542 370.691 109.349C370.62 109.156 370.585 108.944 370.585 108.715V108.588C370.585 108.322 370.624 108.086 370.703 107.878C370.781 107.669 370.888 107.492 371.023 107.347C371.158 107.202 371.311 107.092 371.482 107.018C371.653 106.943 371.83 106.906 372.013 106.906C372.246 106.906 372.448 106.946 372.617 107.027C372.788 107.108 372.928 107.22 373.037 107.365C373.145 107.508 373.226 107.677 373.278 107.872C373.33 108.066 373.357 108.277 373.357 108.506V108.757H370.917V108.301H372.798V108.259C372.79 108.114 372.76 107.973 372.707 107.836C372.657 107.699 372.577 107.587 372.466 107.498C372.355 107.409 372.204 107.365 372.013 107.365C371.886 107.365 371.769 107.392 371.663 107.447C371.556 107.499 371.465 107.578 371.388 107.682C371.312 107.787 371.252 107.915 371.21 108.066C371.168 108.217 371.146 108.391 371.146 108.588V108.715C371.146 108.87 371.168 109.016 371.21 109.153C371.254 109.287 371.318 109.406 371.4 109.509C371.485 109.611 371.586 109.692 371.705 109.75C371.826 109.809 371.963 109.838 372.116 109.838C372.313 109.838 372.48 109.798 372.617 109.717C372.754 109.637 372.873 109.529 372.976 109.394L373.314 109.663C373.244 109.769 373.154 109.871 373.046 109.968C372.937 110.064 372.803 110.143 372.644 110.203C372.487 110.264 372.301 110.294 372.085 110.294ZM374.567 107.48V110.233H374.009V106.967H374.552L374.567 107.48ZM375.588 106.949L375.585 107.468C375.538 107.458 375.494 107.452 375.452 107.45C375.412 107.446 375.365 107.444 375.313 107.444C375.184 107.444 375.07 107.464 374.972 107.504C374.873 107.544 374.79 107.601 374.721 107.673C374.653 107.746 374.598 107.832 374.558 107.933C374.52 108.031 374.495 108.14 374.483 108.259L374.326 108.349C374.326 108.152 374.345 107.967 374.383 107.794C374.423 107.621 374.485 107.468 374.567 107.335C374.65 107.2 374.754 107.095 374.881 107.021C375.01 106.944 375.163 106.906 375.34 106.906C375.38 106.906 375.427 106.911 375.479 106.921C375.531 106.929 375.568 106.938 375.588 106.949Z"
|
|
fill="#5A6D91"
|
|
/>
|
|
<g clip-path="url(#clip20_4955_16369)">
|
|
<path
|
|
d="M415.282 106.756C415.169 106.642 414.985 106.642 414.872 106.756L412.758 108.869L410.644 106.756C410.531 106.642 410.347 106.642 410.234 106.756C410.121 106.869 410.121 107.052 410.234 107.165L412.553 109.484C412.607 109.539 412.681 109.569 412.758 109.569C412.835 109.569 412.909 109.539 412.963 109.484L415.282 107.165C415.395 107.052 415.395 106.869 415.282 106.756Z"
|
|
fill="#5A6D91"
|
|
/>
|
|
</g>
|
|
<path
|
|
d="M430.95 101.687H495.267C498.606 101.687 501.312 104.394 501.312 107.733C501.312 111.072 498.606 113.779 495.267 113.779H430.95C427.611 113.779 424.904 111.072 424.904 107.733C424.904 104.394 427.611 101.687 430.95 101.687Z"
|
|
stroke="#5A6D91"
|
|
stroke-width="0.441667"
|
|
/>
|
|
<path
|
|
d="M431.142 106.381C430.929 106.381 430.756 106.208 430.756 105.994C430.756 105.781 430.929 105.608 431.142 105.608C431.356 105.608 431.529 105.781 431.529 105.994C431.529 106.208 431.356 106.381 431.142 106.381Z"
|
|
fill="#5A6D91"
|
|
/>
|
|
<path
|
|
d="M430.756 107.733C430.756 107.947 430.929 108.12 431.142 108.12C431.356 108.12 431.529 107.947 431.529 107.733C431.529 107.52 431.356 107.347 431.142 107.347C430.929 107.347 430.756 107.52 430.756 107.733Z"
|
|
fill="#5A6D91"
|
|
/>
|
|
<path
|
|
d="M430.756 109.472C430.756 109.686 430.929 109.859 431.142 109.859C431.356 109.859 431.529 109.686 431.529 109.472C431.529 109.259 431.356 109.086 431.142 109.086C430.929 109.086 430.756 109.259 430.756 109.472Z"
|
|
fill="#5A6D91"
|
|
/>
|
|
<path
|
|
d="M432.592 105.705C432.431 105.705 432.302 105.834 432.302 105.994C432.302 106.154 432.431 106.284 432.592 106.284H435.49C435.65 106.284 435.78 106.154 435.78 105.994C435.78 105.834 435.65 105.705 435.49 105.705H432.592Z"
|
|
fill="#5A6D91"
|
|
/>
|
|
<path
|
|
d="M432.592 107.444C432.431 107.444 432.302 107.573 432.302 107.733C432.302 107.894 432.431 108.023 432.592 108.023H435.49C435.65 108.023 435.78 107.894 435.78 107.733C435.78 107.573 435.65 107.444 435.49 107.444H432.592Z"
|
|
fill="#5A6D91"
|
|
/>
|
|
<path
|
|
d="M432.302 109.472C432.302 109.312 432.431 109.183 432.592 109.183H435.49C435.65 109.183 435.78 109.312 435.78 109.472C435.78 109.633 435.65 109.762 435.49 109.762H432.592C432.431 109.762 432.302 109.633 432.302 109.472Z"
|
|
fill="#5A6D91"
|
|
/>
|
|
<path
|
|
d="M440.951 105.837V110.233H440.377V105.837H440.951ZM442.364 105.837V106.314H438.967V105.837H442.364ZM443.632 109.895L444.541 106.967H445.139L443.828 110.738C443.798 110.818 443.758 110.905 443.708 110.997C443.659 111.092 443.597 111.181 443.52 111.266C443.444 111.351 443.351 111.419 443.243 111.471C443.136 111.526 443.008 111.553 442.859 111.553C442.815 111.553 442.758 111.547 442.69 111.535C442.622 111.523 442.573 111.513 442.545 111.504L442.542 111.052C442.558 111.054 442.583 111.056 442.618 111.058C442.654 111.062 442.679 111.064 442.693 111.064C442.82 111.064 442.928 111.047 443.016 111.012C443.105 110.98 443.179 110.925 443.24 110.846C443.302 110.77 443.355 110.664 443.4 110.529L443.632 109.895ZM442.965 106.967L443.813 109.503L443.958 110.091L443.557 110.297L442.355 106.967H442.965ZM446.201 107.595V111.489H445.64V106.967H446.153L446.201 107.595ZM448.402 108.573V108.636C448.402 108.874 448.374 109.094 448.318 109.297C448.261 109.499 448.179 109.674 448.07 109.823C447.964 109.972 447.832 110.087 447.675 110.17C447.518 110.253 447.338 110.294 447.134 110.294C446.927 110.294 446.744 110.26 446.585 110.191C446.426 110.123 446.291 110.023 446.18 109.892C446.07 109.761 445.981 109.604 445.915 109.421C445.85 109.238 445.806 109.032 445.782 108.802V108.464C445.806 108.223 445.851 108.006 445.918 107.815C445.984 107.624 446.072 107.461 446.18 107.326C446.291 107.189 446.425 107.085 446.582 107.015C446.739 106.942 446.92 106.906 447.125 106.906C447.331 106.906 447.513 106.946 447.672 107.027C447.831 107.106 447.965 107.218 448.073 107.365C448.182 107.512 448.264 107.688 448.318 107.894C448.374 108.097 448.402 108.323 448.402 108.573ZM447.841 108.636V108.573C447.841 108.41 447.824 108.257 447.789 108.114C447.755 107.969 447.702 107.842 447.629 107.733C447.559 107.623 447.468 107.536 447.358 107.474C447.247 107.409 447.115 107.377 446.962 107.377C446.821 107.377 446.699 107.401 446.594 107.45C446.491 107.498 446.404 107.563 446.331 107.646C446.259 107.726 446.199 107.819 446.153 107.924C446.109 108.026 446.076 108.133 446.053 108.244V109.026C446.094 109.167 446.15 109.299 446.223 109.424C446.295 109.547 446.392 109.647 446.512 109.723C446.633 109.798 446.785 109.835 446.968 109.835C447.119 109.835 447.249 109.804 447.358 109.741C447.468 109.677 447.559 109.589 447.629 109.479C447.702 109.368 447.755 109.241 447.789 109.098C447.824 108.953 447.841 108.799 447.841 108.636ZM450.471 110.294C450.243 110.294 450.037 110.256 449.852 110.179C449.668 110.101 449.51 109.991 449.378 109.85C449.247 109.709 449.146 109.542 449.076 109.349C449.005 109.156 448.97 108.944 448.97 108.715V108.588C448.97 108.322 449.009 108.086 449.088 107.878C449.166 107.669 449.273 107.492 449.408 107.347C449.543 107.202 449.696 107.092 449.867 107.018C450.038 106.943 450.215 106.906 450.398 106.906C450.632 106.906 450.833 106.946 451.002 107.027C451.173 107.108 451.313 107.22 451.422 107.365C451.53 107.508 451.611 107.677 451.663 107.872C451.715 108.066 451.742 108.277 451.742 108.506V108.757H449.302V108.301H451.183V108.259C451.175 108.114 451.145 107.973 451.092 107.836C451.042 107.699 450.962 107.587 450.851 107.498C450.74 107.409 450.589 107.365 450.398 107.365C450.271 107.365 450.155 107.392 450.048 107.447C449.941 107.499 449.85 107.578 449.773 107.682C449.697 107.787 449.637 107.915 449.595 108.066C449.553 108.217 449.532 108.391 449.532 108.588V108.715C449.532 108.87 449.553 109.016 449.595 109.153C449.639 109.287 449.703 109.406 449.785 109.509C449.87 109.611 449.971 109.692 450.09 109.75C450.211 109.809 450.348 109.838 450.501 109.838C450.698 109.838 450.865 109.798 451.002 109.717C451.139 109.637 451.259 109.529 451.361 109.394L451.699 109.663C451.629 109.769 451.539 109.871 451.431 109.968C451.322 110.064 451.188 110.143 451.029 110.203C450.872 110.264 450.686 110.294 450.471 110.294Z"
|
|
fill="#5A6D91"
|
|
/>
|
|
<g clip-path="url(#clip21_4955_16369)">
|
|
<path
|
|
d="M495.665 106.756C495.552 106.642 495.369 106.642 495.256 106.756L493.142 108.869L491.028 106.756C490.915 106.642 490.731 106.642 490.618 106.756C490.505 106.869 490.505 107.052 490.618 107.165L492.937 109.484C492.991 109.539 493.065 109.569 493.142 109.569C493.219 109.569 493.292 109.539 493.347 109.484L495.665 107.165C495.779 107.052 495.779 106.869 495.665 106.756Z"
|
|
fill="#5A6D91"
|
|
/>
|
|
</g>
|
|
</g>
|
|
</g>
|
|
</g>
|
|
</g>
|
|
<defs>
|
|
<filter
|
|
id="filter0_d_4955_16369"
|
|
x="498.906"
|
|
y="40"
|
|
width="8.4375"
|
|
height="8.53125"
|
|
filterUnits="userSpaceOnUse"
|
|
color-interpolation-filters="sRGB"
|
|
>
|
|
<feFlood flood-opacity="0" result="BackgroundImageFix" />
|
|
<feColorMatrix
|
|
in="SourceAlpha"
|
|
type="matrix"
|
|
values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
result="hardAlpha"
|
|
/>
|
|
<feOffset dy="0.1875" />
|
|
<feGaussianBlur stdDeviation="0.046875" />
|
|
<feColorMatrix
|
|
type="matrix"
|
|
values="0 0 0 0 0.113725 0 0 0 0 0.160784 0 0 0 0 0.239216 0 0 0 0.02 0"
|
|
/>
|
|
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_4955_16369" />
|
|
<feBlend
|
|
mode="normal"
|
|
in="SourceGraphic"
|
|
in2="effect1_dropShadow_4955_16369"
|
|
result="shape"
|
|
/>
|
|
</filter>
|
|
<filter
|
|
id="filter1_d_4955_16369"
|
|
x="510.906"
|
|
y="40"
|
|
width="8.4375"
|
|
height="8.53125"
|
|
filterUnits="userSpaceOnUse"
|
|
color-interpolation-filters="sRGB"
|
|
>
|
|
<feFlood flood-opacity="0" result="BackgroundImageFix" />
|
|
<feColorMatrix
|
|
in="SourceAlpha"
|
|
type="matrix"
|
|
values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
result="hardAlpha"
|
|
/>
|
|
<feOffset dy="0.1875" />
|
|
<feGaussianBlur stdDeviation="0.046875" />
|
|
<feColorMatrix
|
|
type="matrix"
|
|
values="0 0 0 0 0.113725 0 0 0 0 0.160784 0 0 0 0 0.239216 0 0 0 0.02 0"
|
|
/>
|
|
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_4955_16369" />
|
|
<feBlend
|
|
mode="normal"
|
|
in="SourceGraphic"
|
|
in2="effect1_dropShadow_4955_16369"
|
|
result="shape"
|
|
/>
|
|
</filter>
|
|
<filter
|
|
id="filter2_d_4955_16369"
|
|
x="521.906"
|
|
y="40"
|
|
width="8.4375"
|
|
height="8.53125"
|
|
filterUnits="userSpaceOnUse"
|
|
color-interpolation-filters="sRGB"
|
|
>
|
|
<feFlood flood-opacity="0" result="BackgroundImageFix" />
|
|
<feColorMatrix
|
|
in="SourceAlpha"
|
|
type="matrix"
|
|
values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
result="hardAlpha"
|
|
/>
|
|
<feOffset dy="0.1875" />
|
|
<feGaussianBlur stdDeviation="0.046875" />
|
|
<feColorMatrix
|
|
type="matrix"
|
|
values="0 0 0 0 0.113725 0 0 0 0 0.160784 0 0 0 0 0.239216 0 0 0 0.02 0"
|
|
/>
|
|
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_4955_16369" />
|
|
<feBlend
|
|
mode="normal"
|
|
in="SourceGraphic"
|
|
in2="effect1_dropShadow_4955_16369"
|
|
result="shape"
|
|
/>
|
|
</filter>
|
|
<filter
|
|
id="filter3_d_4955_16369"
|
|
x="333.47"
|
|
y="48"
|
|
width="183.06"
|
|
height="245.06"
|
|
filterUnits="userSpaceOnUse"
|
|
color-interpolation-filters="sRGB"
|
|
>
|
|
<feFlood flood-opacity="0" result="BackgroundImageFix" />
|
|
<feColorMatrix
|
|
in="SourceAlpha"
|
|
type="matrix"
|
|
values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
result="hardAlpha"
|
|
/>
|
|
<feOffset dx="2" dy="3.53" />
|
|
<feGaussianBlur stdDeviation="3.765" />
|
|
<feComposite in2="hardAlpha" operator="out" />
|
|
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0" />
|
|
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_4955_16369" />
|
|
<feBlend
|
|
mode="normal"
|
|
in="SourceGraphic"
|
|
in2="effect1_dropShadow_4955_16369"
|
|
result="shape"
|
|
/>
|
|
</filter>
|
|
<filter
|
|
id="filter4_d_4955_16369"
|
|
x="431.895"
|
|
y="56.8334"
|
|
width="32.7581"
|
|
height="15.7292"
|
|
filterUnits="userSpaceOnUse"
|
|
color-interpolation-filters="sRGB"
|
|
>
|
|
<feFlood flood-opacity="0" result="BackgroundImageFix" />
|
|
<feColorMatrix
|
|
in="SourceAlpha"
|
|
type="matrix"
|
|
values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
result="hardAlpha"
|
|
/>
|
|
<feOffset dy="0.441667" />
|
|
<feGaussianBlur stdDeviation="0.110417" />
|
|
<feColorMatrix
|
|
type="matrix"
|
|
values="0 0 0 0 0.113725 0 0 0 0 0.160784 0 0 0 0 0.239216 0 0 0 0.02 0"
|
|
/>
|
|
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_4955_16369" />
|
|
<feBlend
|
|
mode="normal"
|
|
in="SourceGraphic"
|
|
in2="effect1_dropShadow_4955_16369"
|
|
result="shape"
|
|
/>
|
|
</filter>
|
|
<pattern
|
|
id="pattern0_4955_16369"
|
|
patternContentUnits="objectBoundingBox"
|
|
width="1"
|
|
height="1"
|
|
>
|
|
<use xlink:href="#image0_4955_16369" transform="scale(0.000260417 0.000462964)" />
|
|
</pattern>
|
|
<pattern
|
|
id="pattern1_4955_16369"
|
|
patternContentUnits="objectBoundingBox"
|
|
width="1"
|
|
height="1"
|
|
>
|
|
<use xlink:href="#image0_4955_16369" transform="scale(0.000260417 0.000462964)" />
|
|
</pattern>
|
|
<pattern
|
|
id="pattern2_4955_16369"
|
|
patternContentUnits="objectBoundingBox"
|
|
width="1"
|
|
height="1"
|
|
>
|
|
<use
|
|
xlink:href="#image1_4955_16369"
|
|
transform="matrix(0.0203294 0 0 0.0202854 -0.574228 -0.665918)"
|
|
/>
|
|
</pattern>
|
|
<pattern
|
|
id="pattern3_4955_16369"
|
|
patternContentUnits="objectBoundingBox"
|
|
width="1"
|
|
height="1"
|
|
>
|
|
<use
|
|
xlink:href="#image2_4955_16369"
|
|
transform="matrix(0.00332268 0 0 0.00331616 -0.176344 -0.0951699)"
|
|
/>
|
|
</pattern>
|
|
<clipPath id="clip0_4955_16369">
|
|
<path
|
|
d="M85 28C85 23.5817 88.5817 20 93 20H591C595.418 20 599 23.5817 599 28V291H85V28Z"
|
|
fill="white"
|
|
/>
|
|
</clipPath>
|
|
<clipPath id="clip1_4955_16369">
|
|
<rect width="6" height="6" fill="white" transform="translate(500.125 41.125)" />
|
|
</clipPath>
|
|
<clipPath id="clip2_4955_16369">
|
|
<rect width="5" height="6" fill="white" transform="translate(500.625 41.125)" />
|
|
</clipPath>
|
|
<clipPath id="clip3_4955_16369">
|
|
<rect width="168" height="230" fill="white" transform="translate(339 52)" />
|
|
</clipPath>
|
|
<clipPath id="clip4_4955_16369">
|
|
<rect width="10.6" height="10.6" fill="white" transform="translate(349.6 141.767)" />
|
|
</clipPath>
|
|
<clipPath id="clip5_4955_16369">
|
|
<rect width="7.06667" height="7.06667" fill="white" transform="translate(471.5 143.533)" />
|
|
</clipPath>
|
|
<clipPath id="clip6_4955_16369">
|
|
<rect width="10.6" height="10.6" fill="white" transform="translate(349.6 168.483)" />
|
|
</clipPath>
|
|
<clipPath id="clip7_4955_16369">
|
|
<rect width="7.06667" height="7.06667" fill="white" transform="translate(471.5 170.25)" />
|
|
</clipPath>
|
|
<clipPath id="clip8_4955_16369">
|
|
<rect width="7.06667" height="7.06667" fill="white" transform="translate(457.366 213.75)" />
|
|
</clipPath>
|
|
<clipPath id="clip9_4955_16369">
|
|
<rect width="7.06667" height="7.06667" fill="white" transform="translate(471.5 213.75)" />
|
|
</clipPath>
|
|
<clipPath id="clip10_4955_16369">
|
|
<rect width="10.6" height="10.6" fill="white" transform="translate(349.6 238.7)" />
|
|
</clipPath>
|
|
<clipPath id="clip11_4955_16369">
|
|
<rect
|
|
width="7.06667"
|
|
height="7.06667"
|
|
fill="white"
|
|
transform="translate(457.366 240.467)"
|
|
/>
|
|
</clipPath>
|
|
<clipPath id="clip12_4955_16369">
|
|
<rect width="7.06667" height="7.06667" fill="white" transform="translate(471.5 240.467)" />
|
|
</clipPath>
|
|
<clipPath id="clip13_4955_16369">
|
|
<rect width="8.83333" height="8.83333" fill="white" transform="translate(397.521 258.15)" />
|
|
</clipPath>
|
|
<clipPath id="clip14_4955_16369">
|
|
<rect width="8.83333" height="8.83333" fill="white" transform="translate(439.479 258.15)" />
|
|
</clipPath>
|
|
<clipPath id="clip15_4955_16369">
|
|
<rect width="8.83333" height="8.83333" fill="white" transform="translate(481.438 258.15)" />
|
|
</clipPath>
|
|
<clipPath id="clip16_4955_16369">
|
|
<rect width="157.233" height="37.2667" fill="white" transform="translate(344.3 82.0333)" />
|
|
</clipPath>
|
|
<clipPath id="clip17_4955_16369">
|
|
<rect width="7.06667" height="7.06667" fill="white" transform="translate(349.6 86.45)" />
|
|
</clipPath>
|
|
<clipPath id="clip18_4955_16369">
|
|
<rect
|
|
width="8.83333"
|
|
height="8.83333"
|
|
fill="white"
|
|
transform="translate(489.166 85.5667)"
|
|
/>
|
|
</clipPath>
|
|
<clipPath id="clip19_4955_16369">
|
|
<rect width="6.18333" height="6.18333" fill="white" transform="translate(349.6 104.642)" />
|
|
</clipPath>
|
|
<clipPath id="clip20_4955_16369">
|
|
<rect
|
|
width="6.18333"
|
|
height="6.18333"
|
|
fill="white"
|
|
transform="translate(409.666 104.642)"
|
|
/>
|
|
</clipPath>
|
|
<clipPath id="clip21_4955_16369">
|
|
<rect width="6.18333" height="6.18333" fill="white" transform="translate(490.05 104.642)" />
|
|
</clipPath>
|
|
<image
|
|
id="image0_4955_16369"
|
|
width="3840"
|
|
height="2160"
|
|
preserveAspectRatio="none"
|
|
xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAADwAAAAhwCAYAAACQvstyAAAKrWlDQ1BJQ0MgUHJvZmlsZQAASImVlwdUU9kWhs+96SGhJURASuhNkE4AKSG0AArSwUZIAoQSQiCoiIrK4AiOKCIiWNGhKjgWQMaKKBYGAUWxTpBBRBkHCzZU3gUWwZm33nvr7bX2Ol929vnPPmfdc9e+AJAVOSJRMqwIQIowQxzs40GPjIqm44YABLSBErAH2hxuuogZFBQAEJsZ/27v7yLZiN02n9T69///qynx+OlcAKAghGN56dwUhE8h/oIrEmcAgDqIxPVWZogmuQ1hqhgpEOG+SY6f5pFJjp1iNJjKCQ1mIUwFAE/icMTxAJDoSJyeyY1HdEjuCFsKeQIhwiKEXVNSUnkIH0fYGMlBYqRJfUbsdzrxf9OMlWlyOPEynt7LlOE9BemiZM7q//M4/relJEtm1jBEnJQg9g1GRmXkzPqSUv1lLIxdFDjDAt5U/hQnSHzDZpibz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AAAAIPSm/0AAEAASURBVHgB7N0/a1zZGQdgZVAWVBjDblgXDrYxJhAWpw+sISBw8h1iFpwPYFxt4cbjxoUrs1/AsDifIM1iMIRku5QptjFC6+BCBgccFYIghuQn8+LD7EiWJc2fe+8zzT137p255zxn1BzOT+/amhcBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEOinwM/6OSyjIkCAAAECBAgQIECAAAECBAgQ6IvAj3+4+uVJx3L5u63v6/PVXp+sbe6P1p7POj/pc3yOAAECBAgQIECAAAECBAgQIECAAAECBIYlkLXnWevNF59tPYjEq5tX7x+2Fn3Utfre+p5hqRotAQIECBAgQIAAAQIECBAgQIBAKyAA3GpoEyBAgAABAgQIECBAgAABAgQIzF2gArntgxLGzfmsa9lA1d57VDubqdr72/O089m6Xtcmuxubo3N7z+v6rL5UWDifn27nPS8CBAgQIECAAAECBAgQIECAAAECBAgQ6KZA1qVnrfvWenV7rR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QIECBAgQGBlBeq/+2fz1PaL/XF1dGhVfWvc8z7GtcLV9axUW047cyEMXCqOBAgQIECAAAECBAgQIECAAAECBAgMTaBdI63w73Tgd2gmix5vQsKpFGytetHynkeAAAECBAgQIECAAAECBAgQWFsTAPYrIECAAAECBAgQIECAAAECBAgMSODVzav3a7hthYSqQJvQb1Wnreq+db/jfAUqYJ1jntSGgmt+qgc2WpWEIwECBAgQIECAAAECBAgQIECAAAECfRCof0zZjiXr1Qn7ViXatFOptr1He3ECFQTOE6v6cq1dv7kzeiokvLi58CQCBAgQIECAAAECBAgQIEBgOAICwMOZayMlQIAAAQIECBAgQIAAAQIEBiLQVkTIkGvjVIV7E+ytqrMJ+9Z57hX6jcJqvdpAcOargsGpEjw916vVc70hQIAAAQIECBAgQIAAAQIECBAgQIDA4QK1vpljBUor8NuGfRM8Ffw93HGRVzIXCWR//vXLcZ77+tGlcc3VdEA44eD2n1nWfC+yv55FgAABAgQIECBAgAABAgQIEOi6gABw12dQ/wkQIECAAAECBAgQIECAAAECjUAq/NZ/3K+3K/ibcwHfUun2MaHgyfm9e7UpLmHgbo9I7wkQIECAAAECBAgQIECAAAECBAgQGJJAhX5//9UXP//20x9uZexCvt3/BSQE3I6iqgLXfE+Hgtt7tQkQIECAAAECBAgQIECAAAECBH4qIAD8UxPvECBAgAABAgQIECBAgAABAgQ6J1CbZ9Lxtkps2nlP8DcK/XpVZeCMKlWBs3EqgeDpAHiut1UWcu5FgAABAgQIECBAgAABAgQIECBAgACBeQpkzXrW99c/NUzV2Pa68G+r0Z92KgTX2nVVd641bOvW/ZlnIyFAgAABAgQIECBAgAABAgTmJyAAPD9b30yAAAECBAgQIECAAAECBAgQWJjAv377xd/ahwn8thrDa88KB9tMNbzfgRETIECAAAECBAgQIECAAAECBAgQWJbAq5tX71fI98LjyZO0Z4V8UzF21vvL6rfnzl8gc57fhCDw/K09gQABAgQIECBAgAABAgQIEOi+gABw9+fQCAgQIECAAAECBAgQIECAAIEBCVTVhKr0WtU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gQIAAAQIECBAYu4AC4LGTGpAAAQIECBAgQIAAAQIECBCYhsDR4t9pzGcOAgTyF1AEnP8ayoAAAQIECBAgQIAAAQIECBAgkLJAXLeOjr9vvb+7FnFWhX4pxyw2AgRmK/DFny+s/clPfnjhV+u/3lAIPNu1MDsBAgQIECBAgAABAgQIEEhRoJViUGIiQIAAAQIECBAgQIAAAQIECJwmEJuotgedf087zusECBCoBLYfHawNioCLwUbMwkaqSsVHAgQIECBAgAABAgQIECBAgACBcQk8vV2uH+32e/TxuOYwDgEC9RLo3ilvfVr8phj83uv3g8w265WdbAgQIECAAAECBAgQIECAAIHzCigAPq+g8wkQIECAAAECBAgQIECAAIGpCTy5vnw3Juv32qv9Xjw6/E888IcAAQJDCcT3j9bcviLgobQcRIAAAQIECBAgQIAAAQIECBAgMIxAdP6N4t9hjnUMAQIEjgrEjQKiW3gUAj8plouDsui4geVRIY8JECBAgAABAgQIECBAgECzBd5odvqyJ0CAAAECBAgQIECAAAECBHIQiM1TEWe51763q+tvDksmRgLJCww6Aa/ZSJX8MgmQAAECBAgQIECAAAECBAgQIJC8QFy/HnTuXH3r/d215IMVIAECyQtEMfDlj/s3I1CFwMkvlwAJECBAgAABAgQIECBAgMDEBRQAT5zYBAQIECBAgAABAgQIECBAgMCoAtXGqTg/unYq/h1V0nkECBwnsDA/d7+c2+8oBD5Ox3MECBAgQIAAAQIECBAgQIAAAQInCTy5vnw3Xo+undHB86RjvUaAAIGzCEQRcBwfhcCKgM8i51gCBAgQIECAAAECBAgQIFA/AQXA9VtTGREgQIAAAQIECBAgQIAAgVoIVMW/Cn9rsZySIJC0gG7ASS+P4AgQIECAAAECBAgQIECAAAECSQnEtesI6Ontcl3hb1JLIxgCtROougErAq7d0kqIAAECBAgQIECAAAECBAgMLVAOfaQDCRAgQIAAAQIECBAgQIAAAQJTElD8OyVo0xAgcCiw/ehgrdUvVqvNm1gIECBAgAABAgQIECBAgAABAgQInCSg+PckHa8RIDAugbjJwPf/4+59167HJWocAgQ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ECBAgAABAgQIECBAgAABAgSmKKD4d4rYpiJA4NwCD54t7VSDzH/U/8S160rDRwIECBAgQIAAAQIECBAgUB8BBcD1WUuZECBAgAABAgQIECBAgACB5AWiAFjhb/LLJEACBE4QqIqAD8qioxPwCVBeIkCAAAECBAgQIECAAAECBAhkJqD4N7MFEy4BAt8IVIXAUQTs2vU3LB4QIECAAAECBAgQIECAAIFaCCgArsUySoIAAQIECBAgQIAAAQIECOQhEAXA5V77nq6/eayXKAkQOF5AEfDxLp4lQIAAAQIECBAgQIAAAQIECOQqENeuv/8fd+/nGr+4CRAgEAJRCPyTv/3D9T/47V9sbP7s+5tUCBAgQIAAAQIECBAgQIAAgfwFFADnv4YyIECAAAECBAgQIECAAAECyQvo/Jv8EgmQAIEzClRFwHHa259tfXjG0x1OgAABAgQIECBAgAABAgQIECAwY4HqunWE0b1T3rp2cXtxxiGZngABAucWUAR8bkIDECBAgAABAgQIECBAgACBpAQUACe1HIIhQIAAAQIECBAgQIAAAQL1E6g2UW0/OlirX3YyIkCAQFH84B+0VhY3tnRT8MVAgAABAgQIECBAgAABAgQIEMhEIK5bP71driv6zWTBhEmAwJkEogj49l//j5u6AJ+JzcEECBAgQIAAAQIECBAgQCBJgTLJqARFgAABAgQIECBAgAABAgQI1Eqg32uv1iohyRAgQOCIQLnXvvfk+vLdI095SIAAAQIECBAgQIAAAQIECBAgkKiA4t9EF0ZYBAiMTSBubvCv/+pX93+0fuPn7/7i83fHNrCBCBAgQIAAAQIECBAgQIAAgakL6AA8dXITEiBAgAABAgQIECBAgACBZgjEJqrItNUvVqMAeLfbW2lG5rIkQKCpAkvvtNbe/mzrw6bmL28CBAgQIECAAAECBAgQIECAQOoCin9TXyHxESAwToF//H9v/PXBwcFf/mr91xuLG1ub4xzbWAQIECBAgAABAgQIECBAgMB0BBQAT8fZLAQIECBAgAABAgQIECBAoBECrxb9RtIKfxux9JIkQGAgsDA/d7+c2+8oAvblQIAAAQIECBAgQIAAAQIECBBIT6Aq/o3Iojt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RBgEAWAnGjhOiUHtesswhYkAQIECBAgAABAgQIECBAoKECrYbmLW0CBAgQIECAAAECBAgQIEBgRIFXC9f6e+3BxoDeiKM5jQABAs0S2H50sLb0TqsYfC8tdAJu1trLlgABAgQIECBAgAABAgQIEJicgOLfydkamQCBegtEEfBOudyJLF2zrvday44AAQIECBAgQIAAAQIE8hR4I8+wRU2AAAECBAgQIECAAAECBAhMW6Aq/I07gfd7UfT79R/dfysJHwkQIDC8wML83P3+m/sf2FA1vJkjCRAgQIAAAQIECBAgQIAAAQLHCSj+PU7FcwQIEBhe4MGzpZ04ev6j/icHZdFx3Xp4O0cSIECAAAECBAgQIECAAIFJCygAnrSw8QkQIECAAAECBAgQIECAQE0EYhNVude+p+C3JgsqDQIEZi4w6AS8ZjPVzJdBAAQIECBAgAABAgQIECBAgEDGAop/M148oRMgkJxAFAIrAk5uWQREgAABAgQIECBAgAABAg0XKBuev/QJECBAgAABAgQIECBAgAABAgQIECAwE4HtRwdr0VW96rA+kyBMSoAAAQIECBAgQIAAAQIECBDIVEDxb6YLJ2wCBJIVuHZxezHZ4ARGgAABAgQIECBAgAABAgQaKqADcEMXXtoECBAgQIAAAQIECBAgQGBYgdhEFQVqcXwUqw17nuMIECBAYDiBqhNwHL24sbU53FmOIkCAAAECBAgQIECAAAECBAg0U6C6mdrT2+W6YrVmfg3ImgCByQp88ecLazHDQVl0XLOerLXRCRAgQIAAAQIECBAgQIDAaQIKgE8T8joBAgQIECBAgAABAgQIEGiwQFX8q/C3wV8EUidAYCoCC/Nz98u5/Y4NVVPhNgkBAgQIECBAgAABAgQIECCQoUBV+Bs3rOzeKW8p/s1wEYVMgEBWAg+eLe38o3/+aCmroAVLgAABAgQIECBAgAABAgRqJlDWLB/pECBAgAABAgQIECBAgAABAmMW6Pfah91/xzys4QgQIEDgiMBut7cSN1so99r3qs2sR172kAABAgQIECBAgAABAgQIECBAYCAQXX8V//pSIECAwPQEXK+enrWZCBAgQIAAAQIECBAgQIDAcQIKgI9T8RwBAgQIECBAgAABAgQIECBQVN1/oygNBwECBAhMRyC+5yoCno61WQgQIECAAAECBAgQIECAAIG8BKL4N7r+6vyb17qJlgCBvAWi67oi4LzXUPQECBAgQIAAAQIECBAgkLfAG3mHL3oCBAgQIECAAAECBAgQIEBgEgLxi/woQFP8OwldYxIgQOB0gYX5ufv9N/c/WNzY2jz9aEcQIECAAAECBAgQIECAAAECBOorENerq+Lf+mYpMwIECKQr8MWfL6wdlEXH9ep010hkBAgQIECAAAECBAgQIFBfAR2A67u2MiNAgAABAgQIECBAgAABAiMJ6Pw7EpuTCBAgMFYBnYDHymkwAgQIECBAgAABAgQIECBAIFMBxb+ZLpywCRColcBb7++u6QRcqyWVDAECBAgQIECAAAECBAhkJKADcEaLJVQCBAgQIECAAAECBAgQIDBpAZ1/Jy1sfAIECJxNQCfgs3k5mgABAgQIECBAgAABAgQIEKiPgOLf+qylTAgQqIeATsD1WEdZECBAgAABAgQIECBAgEBeAgqA81ov0RIgQIAAAQIECBAgQIAAgYkKPLm+fHf70cHaRCcxOAECBAicSaAqAo6TFje2Ns90soMJECBAgAABAgQIECBAgAABApkJROFvhPz0drl+7eL2YmbhC5cAAQK1FXjwbGln/qP+Jwdl0XGturbLLDECBAgQIECAAAECBAgQSEyglVg8wiFAgAABAgQIECBAgAABAgSmLFBtpjqctj/lyU1HgAABAqcK7HZ7KwvF3L1ybr8z+J6tCPhUMQcQIECAAAECBAgQIECAAAECuQrE9epWv1jt3ilvKf7NdRXFTYBAXQXi+/IXxUIR36ddq67rKsuLAAECBAgQIECAAAECBFIT0AE4tRURDwECBAgQIECAAAECBAgQmLJAtaGq32uvRpHZlKc3HQECBAgMKRCdgOPQKAR++7OtD4c8zWEECBAgQIAAAQIECBAgQIAAgSwEnlxfvhuFvxGs4t8slkyQBAg0VKDqBOw6dUO/AKRNgAABAgQIECBAgAABAlMVKKc6m8kIECBAgAABAgQIECBAgACBJAUU/ya5LIIiQIDASwJxk4b4G9+z4+YNL73oEwIECBAgQIA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fF5B5xMgQIAAAQIECBAgQIAAgYwEYqNVFIdlFLJQCRAgQOAMAtEJOA4v99r3Bt2A757hVIcSIECAAAECBAgQIECAAAECBMYuUBX/VoW/in/HTmxAAgQIJCXQarVu/Gj9xs+TCkowBAgQIECAAAECBAgQIEAgYwEFwBkvntAJECBAgAABAgQIECBAgMBZBGKjVRSEVcVhZznXsQQIECCQl0B8r48bPigCzmvdREuAAAECBAgQIECAAAECBOok8Grxb51ykwsBAgQIfFuguslDFAHHz4BvH+EZAgQIECBAgAABAgQIECBA4KwCrbOe4HgCBAgQIECAAAECBAgQIEAgP4EoAOvvtVcV/+a3diImQIDAqALxPX+hmCsGPwOKtz/b+nDUcZxHgAABAgQIECBAgAABAgQIEDirgOLfs4o5ngABAvUQ+J9//y//4YNnSzv1yEYWBAgQIECAAAECBAgQIEBg9gJvzD4EERAgQIAAAQIECBAgQIAAAQKTFND5d5K6xiZAgEAeAkvvtNYOyqKzuLG1mUfEoiRAgAABAgQIECBAgAABAgRyFVD8m+vKiZsAAQLjE4gi4Msf92+6Jj0+UyMRIECAAAECBAgQIECAQDMFymamLWsCBAgQIECAAAECBAgQINAcAb9Yb85ay5QAAQKvE+j32qutfrH6utc9T4AAAQIECBAgQIAAAQIECBAYh4Di33EoGoMAAQL1EHBNuh7rKAsCBAgQIECAAAECBAgQmK1Aa7bTm50AAQIECBAgQIAAAQIECBCYlEBstIqx45fr2496K5Oax7gECBAgkL7Abre3slDMFU+uLxc6Aae/XiIkQIAAAQIECBAgQIAAAQI5Cij+zXHVxEyAAIHJCXTvlLeeFK5JT07YyAQIECBAgAABAgQIECDQBIE3mpCkHAkQIECAAAECBAgQIECAQNMEYqNVude+FwVfTctdvgQIECBwssDSO621tz/b+vDko7xKgAABAgQIECBAgAABAgQIEBheQPHv8FaOJECAQNME/vhv/vTP/uC3f7Gx+bPvbzYtd/kSIECAAAECBAgQIECAAIHzCugAfF5B5xMgQIAAAQIECBAgQIAAgcQEBt0d7xb9othW/JvYygiHAAEC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AABAgROF1AAfLqRIwgQIECAAAECBAgQIECAQBICsQmr3Gvf0/U3ieUQBAECBBovsPROa00RcOO/DAAQIECAAAECBAgQIECAQOYCin8zX0DhEyBAoGYCf/w3f/pn/+vmX/6nmqUlHQIECBAgQIAAAQIECBAgMLJAa+QznUiAAAECBAgQIECAAAECBAgQIECAAAECjRXYfnSwNugGvDroTq8bcGO/CiROgAABAgQIECBAgAABAjkKRNFvxN3qF6vd2+Wtaxe3F3PMQ8wECBAgUD+BVqt1491ffL6x+bPvb9YvOxkRIECAAAECBAgQIECAAIGzC5RnP8UZBAgQIECAAAECBAgQIECAAAECBAgQIECgKKIrfRQCR4f6avMwFwIECBAgQIAAAQIECBAgQCBtgSj8fXq7XH/r/d01xb9pr5XoCBAg0ESB3/3gp++53tzElZczAQIECBAgQIAAAQIECBwnoAD4OBXPESBAgAABAgQIECBAgACBxATil9yxKSuxsIRDgAABAgQOBaIQWBGwLwYCBAgQIECAAAECBAgQIJC+wJPry3e7d3T9TX+lREiAAIFmCvzyuw/ejC7Azcxe1gQIECBAgAABAgQIECBA4NsCb3z7Kc8QIECAAAECBAgQIECAAAECKQlUxb/RYTGluMRCgAABAgReFViYn7vff3P/g8WNrc1XX/M5AQIECBAgQIAAAQIECBAgMDuBqpNidP7V9Xd262BmAgQIEDhd4MGzpZ35j/qfHJRFx7Xm070cQYAAAQIECBAgQIAAAQL1FtABuN7rKzsCBAgQIECAAAECBAgQqIFA/GK732vr/luDtZQCAQIE6i6gE3DdV1h+BAgQIECAAAECBAgQIJCzgOLfnFdP7AQIEGiOQNyoIrrVNydjmRIgQIAAAQIECBAgQIAAgdcLKAB+vY1XCBAgQIAAAQIECBAgQIBAEgLRmSEKqpIIRhAECBAgQOAUAUXApwB5mQABAgQIECBAgAABAgQITFEgri8/ub58V/HvFNFNRYAAAQJjEWj1CzdIHoukQQgQIECAAAECBAgQIEAgZwEFwDmvntgJECBAgAABAgQIECBAoPYCsTnLL7drv8wSJECAQO0EFAHXbkklRIAA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Lrsceg6gB8DIqnCBAgQIDAkALx7wzXYofEchgBAgQIECBAgAABAgQITF1AAfDUyU1IgAABAgQIECBAgAABAnUR+Lr7b12ykQcBAgQIEJi8wNUr85OfJPMZYjN79dfGs8wXU/gECBAgQIAAAQIECJxbIIp/4zrsheeX1xT/vp5TB+DX23iFAAECBAicJHDt4vZidAE+6RivESBAgAABAgQIECBAgACBWQooAJ6lvrkJECBAgAABAgQIECBAIGuBcm6/k3UCgidAgAABAgSSFogN7oqAk14iwREgQIAAAQIECBAgMEGBqvhX4e/pyDoAn27kCAIECBAgQIAAAQIECBAgQIAAAQIECOQooAA4x1UTMwECBAgQIECAAAECBAgkIaADcBLLIAgCBAgQIFBrAUXAtV5eyREgQIAAAQIECBAg8BoBxb+vgXnN0zoAvwbG0wQIECBAgAABAgQIECBAgAABAgQIEMhcQAFw5gsofAIECBAgQIAAAQIECBCYnYAOwLOzNzMBAgQIEGiSQBQBl3vtezvvLb/bpLzlSoAAAQIECBAgQIBAMwUU/5593XUAPruZMwgQIECAQCUw/1H/k+qxjwQIECBAgAABAgQIECBAIDUBBcCprYh4CBAgQIAAAQIECBAgQIAAAQIECBAgUFOBh4+7Nc1s8ml959KllVa/WFUEPHlrMxAgQIAAAQIECBAgMBuBeL8Tf/u99mq8B5pNFHnOqgNwnusmagIECBBIQ6B7p7yVRiSiIECAAAECBAgQIECAAAEC3xZQAPxtE88QIECAAAECBAgQIECAAIGhBGIj2lAHOogAAQIECBA4FLh6ZZ7EOQR0Aj4HnlMJECBAgAABAgQIEMhCoNxr31P8e/al0gH47GbOIECAAAEClYAOwJWEjwQIECBAgAABAgQIECCQokArxaDERIAAAQIECBAgQIAAAQIEUhc47L63l3qU4iNAgAABAgTqKBAb4p9cX+5Ebgdl0Vnc2NqsY55yIkCAAAECBAgQIECgGQKD9zd3I9P+ns6/o664DsCjyjmPAAECBAgURXQAvvxx//B6Kw8CBAgQIECAAAECBAgQIJCagALg1FZEPAQIECBAgAABAgQIECCQvEAU/7b6xep2t7eSfLACJECAAAECBGolEJ2worNT/4tLK199+eX91tx+5KcAuFarLBkCBAgQIECAAAECzRCorrP2e39X+HupGXlPIksdgCehakwCBAgQaIrAtYvbi1/0F1YH+brO2pRFlycBAgQIECBAgAABAgQyEigzilWoBAgQIECAAAECBAgQIEAgGYHYlJZMMAIhQIAAAQIEGiVQdXaKYuD4N0nVLatRCJIlQIAAAQIECBAgQCB7gbjJ4jfFv9lnM9sEqveJs43C7AQIECBAgAABAgQIECBAgAABAgQIECAwbgEdgMctajwCBAgQIECAAAECBAgQqL2A7r+1X2IJEiBAgMCEBB4+7hZXr8xPaPRmDhtFwF/1imJQBFwclEVncWNLl4pmfinImgABAgQIECBAgEA2At/q/JtN5OkGqgNwumsjMgIECBDIQ6B7p7xVfFZ8mEe0oiRAgAABAgQIECBAgACBJgnoANyk1ZYrAQIECBAgQIAAAQIECIxFIIprxjKQQQgQIECAQMMEFP9ObsGja1bcpGRyMxiZAAECBAgQIECAAAEC4xHQ+Xc8jkdH0QH4qIbHBAgQIEDg7ALzH/U/OftZziBAgAABAgQIECBAgAABApMXUAA8eWMzECBAgAABAgQIECBAgEDNBGKD2sL83P2apSUdAgQIECBAIFOB9tJ3VqITcBQBDzoB3800DWETIECAAAECBAgQIFBzgej8G+9Z4r1LvIepebpTTU8H4Klym4wAAQIEaihw2AG4hnlJiQABAgQIECBAgAABAgTyF1AAnP8ayoAAAQIECBAgQIAAAQIECBAgQIAAAQIEGixQdXqqioBjU32DOaROgAABAgQIECBAgECiAjr/Tm5hqveFk5vByAQIECBAoN4COgDXe31lR4AAAQIECBAgQIAAgZwFWjkHL3YCBAgQIECAAAECBAgQIDArgd1uT4eKWeGblwABAgSyFXj4uFtcvTKfbfw5BB5FwF/tFfcGXbU6B2XRiZgXN7Y2c4hdjAQIECBAgAABAgQI1FMgblKk+Heya6sD8GR9jU6AAAEC9Rc47AD8WfFh/TOVIQECBAgQIECAAAECBAjkJqAAOLcVEy8BAgQIECBAgAABAgQIzFTgsK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MRECBAgEA9BNwMuh7rKAsCBAgQIECAAAECBAjUSaBVp2TkQoAAAQIECBAgQIAAAQIEJi3Q77V1AJ40svEJECBAoLYCDx93i6tX5mubX06JRRHwV72iaM3tFzvvLR+GvrixtZlTDmIlQIAAAQIECBAgQGB2AoP3Ee9WBTKH10wvzS4WMxeFDsC+CggQIECAwPkFrl3cXvy8XOicfyQjECBAgAABAgQIECBAgACB8QkoAB6fpZEIECBAgAABAgQIECBAoAEC5dx+RxFwAxZaigQIECAwEQHFvxNhHXnQKAIunl9a6fe+XI1/40QhsCLgkTmdSIAAAQIECBAgQKAxAlXxb1wnPXxfofh35muvA/DMl0AABAgQIECAAAECBAgQIECAAAECBAgQmIiAAuCJsBqUAAECBAgQIECAAAECBAgQIECAAAECBAjkIXC0G/AgYl2A81g2URIgQIAAAQIECBCYicC3in9nEoVJXxXQAfhVEZ8TIECAAAECBAgQIECAAAECBAgQIECgHgIKgOuxjrIgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIjC1RFwE+uLxcHZdHRCXhkSicSIECAAAECBAgQqK1AVfx74fnltULX36TWWQfgpJZDMAQIECCQqcCDZ0s7l4t+ptELmwABAgQIECBAgAABAgTqKqAAuK4rKy8CBAgQIECAAAECBAgQmIhAv9dencjABiVAgAABAgQIzFigKgJuze1HJDoBz3g9TE+AAAECBAgQIEAgJYEo/i332vcuXLq0klJcYvlaQAdgXwkECBAgQOD8Atcubi9+XiycfyAjECBAgAABAgQIECBAgACBMQqUYxzLUAQIECBAgAABAgQIECBAoPYC5dx+p/ZJSpAAAQIECExI4OHj7oRGNuy4BKIIOG54MugEfDc2+I9rXOMQIECAAAECBAgQIJCvQNX5N94v5JtFvSPXAbje6ys7AgQIECBAgAABAgQIECBAgAABAgSaK6ADcHPXXuYECBAgQIAAAQIECBAgQIAAAQIECBCYqsDVK/NTnc9kowkcbup/Hhv7n8YAOgGPxugsAgQIECBAgAABArUQqIp/Lzy/vFaLhGqahA7ANV1YaREgQIAAAQIECBAgQIA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QABAgQIECBAgAABAgQIECBAgAABAjUK7Az3atzNVlUJlIGA7qgYmARclbJ1CRAgQIAAAQIECNQnED7gp5z6K0han/sidyr//7RFrmktAgQIECCQq8Dqfxz9p1x71zcBAgQIECBAgAABAgQIxCcgABzfmaiIAAECBAgQIECAAAECBAgQIECAAAECrRTYWF9tZV+5NRUCASEcsHS0cl8IOLfT1y8BAgQIECBAgECbBE5P/m1TXzn2Irid46nrmQABAgSqEtj7ZedvqlrbugQIECBAgAABAgQIECBAYFoBAeBpxVxPgAABAgQIECBAgAABAgQIECBAgAABAgQIHAuEEHCYFmYSsDcEAQIECBAgQIAAgbQEhH/TOq9PVWsC8KeEvE6AAAECBCYTePZ27bkJwJNZuYoAAQIECBAgQIAAAQIE6hG4VM82diFAgAABAgQIECBAgAABAu0Q+H+u/fRdOzrRBQECBAgQqF/ABOD6zeva8Y+Xv78f9jrsFNv9h7uP6trXPgQIECBAgAABAgQITCcQgr/dUTEYHfQGV5aXb013t6tjFvin/+FJzOWpjQABAgQIJCMQQsB//r/+f2vJFKxQAgQIECBAgAABAgQIEGi1QLfV3WmOAAECBAgQIECAAAECBAgQIECAAAECBAgQqFwgTAJ+8+rVN52iGLy4fW37J7/f/XXlm9qAAAECBAgQIECAAIGpBMqpv0sh+Ls81a0ujlzABODID0h5BAgQIJCUgAnASR2XYgkQIECAAAECBAgQINB6gfF/i+NBgAABAgQIECBAgAABAgQIECBAgAABAgSqF9gZ7lW/iR0aEyinh4VJYiFY0FghNiZAgAABAgQIECBA4COBMvxb/t7+0QWeSFpg9I+Xk65f8QQIECBAICaBvV92/iametRCgAABAgQIECBAgAABAnkLCADnff66J0CAAAECBAgQIECAAAECBAgQIECAQG0CG+urte1lo2YEQpggfHX2e1tCwM2cgV0JECBAgAABAgQIfCgg/PuhSPt+NgG4fWeqIwIECBBoRuDZ27XnJgA3Y29XAgQIECBAgAABAgQIEDhbQAD4bBfPEiBAgAABAgQIECBAgAABAgQIECBAgAABAjMKCAHPCOc2AgQI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DeFr6WjlfndUmAgc40GpiQABAgQIECBAoFKBk/DvQW8QfjcOvydXuqHFkxYwATjp41M8AQIECEQk8Ozt2vN/+a9+thRRSUohQIAAAQIECBAgQIAAgcwFBIAzfwNonwABAgQIECBAgAABAgSmFxACnt7MHQQIECBAIAjsDPdAEPikwIeTq0bjwEMIAX/yRhcQIECAAAECBAgQaInAh+Hf0NaHvye3pFVtLEjA+2NBkJYhQIAAgewF/vXLz/ezRwBAgAABAgQIECBAgAABAlEJdKOqRjEECBAgQIAAAQIECBAgQCBygc7V19shhBJ5mcojQIAAAQJRCmysr0ZZl6LiFgjTzt4cFMWL29eKw06x3X+4+yjuilVHgAABAgQIECBAYHaBs8K/s6/mzlwETADO5aT1SYAAAQJVCoTpv1Wub20CBAgQIECAAAECBAgQIDCLgAnAs6i5hwABAgQIECBAgAABAgQIECBAgAABAgQIEKhNIISAl45W7psEXBu5jQgQIECAAAECBBoQEP5tAL0lW5oA3JKD1AYBAgQINCrw+Wff9RstwOYECBAgQIAAAQIECBAgQOAMAROAz0DxFAECBAgQIECAAAECBAgQIECAAAECBAgQIBCfwOigNzAJOL5zUREBAgQIECBAgMD8AsK/8xvmvIIJwDmfvt4JECBAYFECJgAvStI6BAgQIECAAAECBAgQILBIAROAF6lpLQIECBAgQIAAAQIECBBovUAInbS+SQ0SIECAAAECBCIVCJOAw+9jJgFHekDKIkCAAAECBAgQmElA+HcmNjedEjAB+BSGbwkQIECAwIwCJgDPCOc2AgQIECBAgAABAgQIEKhUwATgSnktToAAAQIECBAgQIAAAQJtE+hcfb0tBNy2U9UPAQIECNQlsDPcKzbWV+vazj4tFQgh4DcHRfEPX/xsEH43O+wU2/2Hu49a2q62CBAgQIAAAQIEWixwEvzd7w1G4z7D77otbldrFQqYAFwhrqUJECBAIBsBE4CzOWqNEiBAgAABAgQIECBAICkBAeCkjkuxBAgQIECAAAECBAgQIECAAAECBAgQSFdA+Dfds4ut8pNgxFEISHxfjIMThRBwbKekHgIECBAgQIAAgYsEQ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CJPaXty+dtzEYafY7j/cFQZO+0hVT4AAAQIECBCoXCCEfsMmxx8SuG/yb+XgNphIwATgiZhcRIAAAQIEzhX4zZ99+/xf7P+5EPC5Ql4gQIAAAQIECBAgQIAAgaYEBICbkrcvAQIECBAgQIAAAQIECCQrEMIhP129OhACTvYIFU6AAAECBAgQOBY4ngR8tPzDB7t8X4zDHIUQsDcHAQIECBAgQIDARQLHwd/xB8mMxhcd/z550cVeI1CTgAnANUHbhgABAgRaK2ACcGuPVmMECBAgQIAAAQIECBBIXqCTfAcaIECAAAECBAgQIECAAAECNQv89f/8qPg//vkvTQCu2d12BAgQIJC+wM5wL/0mdNBagaWjlfud/d5WOdGttY1qjAABAgQIECBAYCaB8Hvii9vX7o3G4d8Q/BX+nYnRTRUJmABcEaxlCRAgQIAAAQIECBAgQIAAAQIECBAg0LCAAHDDB2B7AgQIECBAgAABAgQIEEhT4HfX//ffPLl5N83iVU2AAAECBBoS2FhfbWhn2xKYTCCEOISAJ7NyFQECBAgQIEAgN4Fy8q/gb24nn0a/JgCncU6qJECAAIE4BZ69XXseZ2WqIkCAAAECBAgQIECAAAECRSEA7F1AgAABAgQIECBAgAABAgQIECBAgAABAgQIEPhBQAjYW4EAAQIECBAgQOC0wIeTf0+/5nsCsQiYABzLSaiDAAECBAgQIECAAAECBAgQIECAAAECixUQAF6sp9UIECBAgAABAgQIECBAgAABAgQIECBAgACBxAWEgBM/QOUTIECAAAECBBYocHryr5DlAmEttVABE4AXymkxAgQIECBAgAABAgQIECBAgAABAgQIRCMgABzNUSiEAAECBAgQIECAAAECBAgQIECAAAEC7RbYGe61u0HdtUpACLhVx6kZAgQIECBAgMDUAmdN/hWynJrRDTUJCKfXBG0bAgQIECBAgAABAgQIECBAgAABAgQI1CwgAFwzuO0IECBAgAABAgQIECBAgAABAgQIECCQq8DG+mqures7UQEh4EQPTtkECBAgQIAAgQUInJ78u4DlLEGgUgHh9Ep5LU6AAJMKU1sAAEAASURBVAECBAgQIECAAAECBAgQIEC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AECBAgQIECAAAECBAgQIECAAIEPBDbWVz94xo8ECAQBIWDvAwIECBAgQIDA5AJnTf41/XRyP1e2U8D/Btp5rroiQIAAAQIECBAgQIAAAQIECBAgQICAALD3AAECBAgQIECAAAECBAgQIECAAAECBAgQIECgYYHRQW/QHRWDEGhpuBTbEyBAgAABAgSiFfhw8m+0hSqMQM0CJgDXDG47AgQIEEhS4Nnbted3Xm72y+LXLx2V3/qTAAECBAgQIECAAAECBAhEK9CNtjKFESBAgAABAgQIECBAgACBBAW+2vzyuOobjx8kWL2SCRAgQIAAAQIEmhK4srx8qzgafxXfF+MQcNF/uPuoqVrsS4AAAQIECBCIUeB48u9+b3D8e1OMBaqJQIMCJgA3iG9rAgQIEEhGIIR/h+8uH9cr/JvMsSmUAAECBAgQIECAAAEC2QuYAJz9WwAAAQIECBAgQIAAAQIECCxaIISAn9y8u+hlrUeAAAECBAgQIJCBwNLRyn2TgDM4aC0SIECAAAECUwmE8G9nv7cl/DsVm4szEjABOKPD1ioBAgQIECBAgAABAgQIECBAgAABAlkJCABnddyaJUCAAAECBAgQIECAAAECBAgQIECAQHMCO8O95ja3M4GEBISAEzospRIgQIAAAQKVCoTgr/BvpcQWb4mACcAtOUhtECBAgEBlAs/erj2vbHELEyBAgAABAgQIECBAgACBCgW6Fa5taQIECBAgQIAAAQIECBAgQIAAAQIECBAgcCKwsb568r1vCBC4WGB00BuMP8V18OL2te3DTrHdf7j76OI7vEqAAAECBAgQaJfA+Pege6P93iB0ZfJvu85WN4sXMAF48aZWJECAAIF2Cdx5udkvO1q/dFR+608CBAgQIECAAAECBAgQIBC9gABw9EekQAIECBAgQIAAAQIECBAgQIAAAQIECBAgQCA3gZOQy9HyrdHBq8F48t2vhIBzexfolwABAgQI5CkQJv6GzkP49+R3ojwpdE1gYgETgCemciEBAgQIZCgQpv/+5s++LUIIWPg3wzeAlgkQIECAAAECBAgQIJC4wPjD4z0IECBAgAABAgQIECBAgAABAgQIECBAgAABAgRiFQjBl85+b6sMw8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88rv3G4wfJ9qBwAgQIECBAgACBdggcB3eOxkHgV6++6V59XYyDPYUQcDvOVhcECBAgQGCRAuMPDLlXjIoiBH+XQvB3eZGrW4sAgXkETACeR8+9BAgQIJC6wLO3a8/HPfRT70P9BAgQIECAAAECBAgQIEDgLIHOWU96jgABAgQIECBAgAABAgQIECBAgAABAgQIECBAIC+BEAQOgZ4w0a+c7peXgG4JECBAgACB8wTK3w2Wjlbun3eN5wkQaE7ABODm7O1MgAABAs0K/BD+bbYIuxMgQIAAAQIECBAgQIAAgQoFBIArxLU0AQIECBAgQIAAAQIECBC4SCBMAX5y8+5Fl3iNAAECBAi0SmBnuNeqfjRDoI0CIQQcgj1CwG08XT0RIECAAIHZBEL4N/xuED4oJKwQfl+YbSV3ESBQlYAJwFXJWpcAAQIEUhC483LzePrv+qWjInx5ECBAgAABAgQIECBAgACBNgkIALfpNPVCgAABAgQIECBAgAABAgQIECBAgACBiAU21lcjrk5pBAicFhACPq3hewIECBAgkK9AGf4NvxsI/ub7PtB5/AImAMd/RiokQIAAgeoEhu8uF+HLgwABAgQIECBAgAABAgQItFFAALiNp6onAgQIECBAgAABAgQIEEhGwBTgZI5KoQQIECBAgACB7ASEgLM7cg0TIECAAIEfCZTh33Ly749e9AMBAlEJmAAc1XEohgABAgRqEnj2du15Of23pi1tQ4AAAQIECBAgQIAAAQIEahfo1r6jDQkQIECAAAECBAgQIECAAAECBAgQIECAAAECBJIQCIGf7tXXxTgAVPQf7j5KomhFEiBAgAABAnMLlOHf8IEgxfLcy1mAAIGKBUwArhjY8gQIECAQpUAI/4bJv+uXjqKsT1EECBAgQIAAAQIECBAgQGARAiYAL0LRGgQIECBAgAABAgQIECBAYA4BU4DnwHMrAQIECCQlsDPcS6pexRIgUBRXlpdvmQTsnUCAAAECBPISKMO/Jv/mde66TVvABOC0z0/1BAgQIDC9QJj+O/1d7iBAgAABAgQIECBAgAABAukJCACnd2YqJkCAAAECBAgQIECAAAECBAgQIECAQJICG+urSdataAIEikII2Lu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QIECBCYTuC/7//j/40ByOnudheBdAV++Ne7vxH+Tff8VE6AAIGmBUwAblrcfgQItEHgYvi3DTWpIX2BbuhspN+FDggQIECAAAECBAgQIEAgJwETgHM6Tb0QIECAAAECBAgQIECAAAECyQmYBJzckSmYAIEZBI56x2F9bWWGFdxKgAABAiUJLN356psYZnl3GsIwCBn6nbAX+1999vJ5SQ56LUsgBn9jx91B2B6cLm2b/FvW+euWAAEC0wqYADytnPsIEEhV4GL419TfVE+yfXX3w+CwfVWpiAABAgQIECBAgAABAgRKFhAALvn09U6AAAECBAgQIECAAAECBAi0RqAKAm/u77amJoUQIEBg3gLCv/MWtR4BAgTyFqgm2cUAZAwBd0LY7nz9NoaABYDzPvpiu4vh3yr4OxgqCP8W+1XQOAECBCYWqP5308Q3uoEAAQIJCgj/JnhoSiZAgAABAgQIECBAgAABAgSmFhAAnprOjQQIECBAgAABAgQIECBAgACB+QscbO0EIeD5u1qRAAECBAgQIEAgbYEqCDk6Ddgk4LTPVPWfCoyGf6vv+6dX+I0AAQIECHxZwATgL9v4hACBvASEf/M6T90QIECAAAECBAgQIECAAAEC1wsIAF9v5AoCBAgQIECAAAECBAgQIECAQCMC1RTguJkQcCPkNiFAgAABAgQIEEhMoJoG3P36bazcJODEzk+5lwsI/17u4l0CBAgQGF/ABODxrVxJgEC6AsK/6Z5dSpV3Q2ejH8LTlGpWKwECBAgQIECAAAECBAjkLSAAnPf56o4AAQIECBAgQIAAAQIECBBIUKAKAgsBJ3h4SiZA4EqBo95xWF9bufIaHxIgQIAAgesEqhDwqwd3Q78T9kwCvk7M520WEP5t8+mojQABAukImACczlmplACB6QSEf6dzc9fkAv0wOJz8LncQIECAAAECBAgQIECAAIH6BASA67O1MgECBAgQIECAAAECBAgQIEBgaoEYAo7P3/71T6YBT63oRgIE2iYg/Nu2E1EPAQIE0hWoQsAmAad7hioPQfjXt4AAAQIE5iVgAvC8JK1DgEDbBGLwN9b06M291d77m+flrd04a1uZ6iFAgAABAgQIECBAgAABA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QIAAAQIECBAgQGBRAgLAi5K3LwECBAgQIECAAAECBAgQIECAQHICVQg4Fr65v5tc/QomsGiBo95xWF9bWXQZ9idAgAABAgQIECBAgAABAlkJmACc1XFqZoECv4R/F1iBrQkQIECAAAECBAgQIECAAAECBAh8KiAA/KmH3wgQIECAAAECBAgQIECAAAECBAhcKSAEfCWPDwlcKSD8eyWPDwkQIECAAAECBAgQIECAwFQCJgBPxeYmAucC3/9854f44tGbe6ujJCb/jmp4TaAcgW7obPRDeFpOxzolQIAAAQIECBAgQIAAgbYLCAC3/YTUR4AAAQIECBAgQIAAAQIECBAg0EqBGASOz9/+9U+mAbfyhBRFgAABAgQIECBAgAABAgQIEChDwATgMs5Zl/UIVMHf3vub5xsI/tbjbFUCqQj0w+AwlVrVSYAAAQIECBAgQIAAAQJlCHTKaFOXBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQyE/ABOD8zlRHzQjcf/3wfCPh32a87UKAAAECBAgQIECAAAECBAgQIDC5gADw5GbuIECAAAECBAgQIECAAAECBAgQIPBBIE4BPtja+fC7FwQIECBAgAABAgQIECBAgAABAgSaFDABuElte+Ug8P3Pd34Q/s3hJPVAgAABAgQIECBAgAABAgQIEMhfoJt/izokQIAAAQIECBAgQIAAAQIECBAgUK9ADAFXj8393eqlnwQIXBA46h2H9bWVC+/6lQABAgQIECBAgAABAgQIEJhFwATgWfTcW5pADP9WPcfJv2s3zqpf/SRAgEDohs5GP4SnKAgQIECAAAECBAgQIECAQFsETABuy0mogwABAgQIECBAgAABAgQIECBAIGmBKgRsGnDSx6j4mgWEf2sGtjwBAgQIECBAgAABAgQIFClgAnCRx67pKQUevbm3Gp8x/OtBgACBiwL9MDi8+J7fCRAgQIAAAQIECBAgQIDAIgUEgBepb28CBAgQIECAAAECBAgQIECAAIGsBKoQcFZNaYYAAQIECBAgQIAAAQIECBAgQKDVAiYAt/p4FNcSgTj5t5r+W4V/Tf9tyeEogwABAgQIECBAgAABAgQIECBA4Is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0tTF0ECBAgQIAAAQIECBAgQIAAAQIEchW4OAV4c38311b1RYAAAQIECBAgQIAAAQIECBAgULOACcA1A1u+1QIx/Gvyb6uPSHEECBAgQIAAAQIECBAgQIAAAQIzCJgAPAOeWwkQIECAAAECBAgQIECAAAECBAjMIlAFgU0DnkXRvQQIECBAgAABAgQIECBAgACBsgVMAC77/Evtvpr6Oxr+LdVC3wQIzE+gGzob81vNSgQIECBAgAABAgQIECBAYHYBE4BnN7QCAQIECBAgQIAAAQIECBAgQIAAgakFqhBwXMAk4KkZ3ZiIwFHvOKyvrSRSrTIJECBAgAABAgQIECBAgEAaAiYAp3FOqpyfwMWpv3HltRtn89vASgQIFCvQD4PDYpvXOAECBAgQIECAAAECBAi0UsAE4FYei6IIECBAgAABAgQIECBAgAABAgRKE4hBYJOASzv18voV/i3vzHVMgAABAgQIECBAgAABAvULmABcv7Ed2iNQhX9jRVXot/rZnipVQoAAAQIECBAgQIAAAQIECBAgQGA+AgLA83G0CgECBAgQIECAAAECBAgQIECAAIGZBYSAZya0AAECBAgQIECAAAECBAgQIECgOAETgIs78mIbrsK/vfc3Q3zGh/BvsV8HjRMgQIAAAQIECBAgQIAAAQIEihAQAC7imDVJgAABAgQIECBAgAABAgQIECCQioAQcConpU4CBAgQIECAAAECBAgQIECAQDsETABuxzmool6BKvxb7SL4W0n4SYDAPAW6obMxz/WsRYAAAQIECBAgQIAAAQIEZhUQAJ5V0P0ECBAgQIAAAQIECBAgQIAAAQIE5iwgBDxnUMsRIECAAAECBAgQIECAAAECBDIWMAE448PV2rmA8K8vAgECTQn0w+Cwqb3sQ4AAAQIECBAgQIAAAQIExhEQAB5HyTUECBAgQIAAAQIECBAgQIAAAQIEGhYQAm4Y3HaNCBz1jhvZxyYECBAgQIAAAQIECBAgQKAkAROASzrt8nqtwr+99zdDfHoQIECAAAECBAgQIECAAAECBAgQKElAALik09YrAQIECBAgQIAAAQIECBAgQIBAUgJCwEkdl2LHEFhfWxnjKpcQIECAAAECBAgQIECAAAECkwiYADyJlmtTEhgN/8a6126cpVS+WgkQIECAAAECBAgQIECAAAECBAjMLNCdeQULECBAgAABAgQIECBAgAABAgQIECBQm0AMAVePzf3d6qWfBAgQIECAAAECBAgQIECAAAECBM4FTAD2RchNoAr+Dvtajb0J/uZ2wvoh0F6Bbuhs9EN42t4KVUaAAAECBAgQIECAAAECpQkIAJd24volQIAAAQIECBAgQIAAAQIECBBITkAIOLkjUzABAgQIECBAgAABAgQIECBAoDEBE4Abo7ZRAwIj4d8GdrMFAQIEPhXoh8Hhp+/4jQABAgQIECBAgAABAgQILFags9jt7U6AAAECBAgQIECAAAECBAgQIECAwLgCMQh8sLUz7uWuI0CAAAECBAgQIECAAAECBAgQKEDABOACDrmQFqvwb+/9zRCfHgQIECBAgAABAgQIECBAgAABAgRKFxAALv0boH8CBAgQIECAAAECBAgQIECAAIGkBISAkzouxV4QOOodX3jHrwQIECBAgAABAgQIECBAgMCsAiYAzyro/jYIjIZ/Yz1rN87aUJYaCBAgQIAAAQIECBAgQIAAAQIECCxUQAB4ofw2J0CAAAECBAgQIECAAAECBAgQIDC5gBDw5GbuaIfA+tpKOwpRBQECBAgQIECAAAECBAgQyEjABOCMDrPQVoR/Cz14bRNooUA3dDZaWJaSCBAgQIAAAQIECBAgQKBgAQHggg9f6wQIECBAgAABAgQIECBAgAABAukKCAGne3YqJ0CAAAECBAgQIECAAAECBAjMU8AE4HlqWqtpAeHfpsXtR4DAVQL9MDi86nOfESBAgAABAgQIECBAgACBpgUEgJsWtx8BAgQIECBAgAABAgQIECBAgACBOQkIAc8J0jIECBAgQIAAAQIECBAgQIAAgYQFTABO+PAKL/1i+LdwDu0TIECAAAECBAgQIECAAAECBAgQ+ExAAPgzEm8QIECAAAECBAgQIECAAAECBAgQSEcghoB3vn0RDrZ20ilapcUKHPWOi+1d4wQIECBAgAABAgQIECBAoC4BE4DrkrVuXQIx+Hsx/Lt24yzEpwcBAgQIECBAgAABAgQIECBAgAABAh8Fuh9fekWAAAECBAg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QIECBAIFUBAeBUT0ZdBAgQIECAAAECBAgQIECAAAECBGoUiCHg+CWgWSO6rQgQIECAAAECBAgQIECAAAECCxAwAXgBiJY4lkA5+be8eG3pZfnUdwIECBAgQIAAAQIECBAgQIAAAQIEKhAQAK4A1ZIECBAgQIAAAQIECBAgQIAAAQIEchX4m7/8+2AScK6np24CBAgQIECAAAECBAgQIECgiwImAHfx1OvtOQZ/41c5+Xdnf7neAuxGgACBmgR6oejXtJVtCBAgQIAAAQIECBAgQIDAsQR6x7rKRQQIECBAgAABAgQIECBAgAABAgQIdEagnAb81//wd+H8vRud6VujBAgQIECAAAECBAgQIECAAIEcBUwAzvHU8ql5PPhbVm3ybynhOwECbRMYhtGgbT3phwABAgQIECBAgAABAgTyFjABOO/zUz0BAgQIECBAgAABAgQIECBAgACBSgVMA66Ut3OLb+/sdq5nDRMgQIAAAQIECBAgQIAAgaoFTACuWri765fhXxN/u/sZ0DkBAgQIECBAgAABAgQIECBAgECzAiYAN+tvdwIECBAgQIAAAQIECBAgQIAAAQLJCsRJwOXDJOBSwvd5BNbXVua53b0ECBAgQIAAAQIECBAgQIDABAETgCegeGlugYPh3xgCNvl3blYLECBAgAABAgQIECBAgAABAgQIEJhKwATgqbhcTIAAAQIECBAgQIAAAQIECBAgQKCbAiYBd/PcdU2AAAECBAgQIECAAAECBAikL2ACcPpnlGOFV56eWy0n/8bgr/BvjqeoZgIEphXohaI/7T2uJ0CAAAECBAgQIECAAAECVQqYAFylrrUJECBAgAABAgQIECBAgAABAgQItEDAJOAWHKIWCBAgQIAAAQIECBAgQIAAgdYKmADc2qNtpLGDk38bKcKmBAgQaEhgGEaDhra2LQECBAgQIECAAAECBAgQmCggADyRxYsECBAgQIAAAQIECBAgQIAAAQIECBwUKIPA5+/dOPiWnwkQIECAAAECBAgQIECAAAECBBoSMAG4IfgWbnsw/GvqbwsPWUsECBAgQIAAAQIECBAgQIAAAQJZCRRZVatYAgQIECBAgAABAgQIECBAgAABAgQaF7h/YbPxGhSQp8D2zm6ehauaAAECBAgQIECAAAECBAgkLGACcMKHk1FpB8O/GZWuVAIECBAgQIAAAQIECBAgQIAAAQKtFRAAbu3RaowAAQIECBAgQIAAAQIECBAgQIDA4gXKKcBCwIu37cKK62srXWhTjwQIECBAgAABAgQIECBAoFYBE4Br5W7lZgfDv3Hyr+m/rTxqTREgcIRALxT9Iy7xNgECBAgQIECAAAECBAgQqFWgV+tuNiNAgAABAgQIECBAgAABAgQIECBAIHuBMgRcNnL+3o3yqe8ECBAgQIAAAQIECBAgQIAAAQI1C5gAXDN4i7Yrg7+vWlqNbcXQ787+cos61AoBAgSmExiG0WC6O1xNgAABAgQIECBAgAABAgSqFRAArtbX6gQIECBAgAABAgQIECBAgAABAgRaKzAeBBYCbu0xa4wAAQIECBAgQIAAAQIECBBIXMAE4MQPKNHyyvDveODX5N9ED0tZBAgQIECAAAECBAgQIECAAAECnRUoOtu5xgkQIECAAAECBAgQIECAAAECBAgQWIhADALfv7C5kLUs0m6B7Z3ddjeoOwIECBAgQIAAAQIECBAg0ICACcANoGe+5cHwr+Bv5geqfAIECBAgQIAAAQIECBAgQIAAgdYKCAC39mg1RoAAAQIECBAgQIAAAQIECBAgQKBeASHger1z3G19bSXHstVMgAABAgQIECBAgAABAgSSFjABOOnjSa64SeHf5IpUEAECBBoS6IWi39DWtiVAgAABAgQIECBAgAABAhMFehNf9SIBAgQIECBAgAABAgQIECBAgAABAgSmEIhTgMvH+Xs3yqe+EyBAgAABAgQIECBAgAABAgQIVCxgAnDFwC1aXvi3RYepFQIEKhEYhtGgkoUtSoAAAQIECBAgQIAAAQIEZhQwAXhGOLcRIECAAAECBAgQIECAAAECBAgQIPChQAwCmwT8oYtXCBAgQIAAAQIECBAgQIAAAQJVCZgAXJVsu9YV/m3XeeqGAAECBAgQIECAAAECBAgQIECgGwICwN04Z10SIECAAAECBAgQIECAAAECBAgQqE1ACLg2ahsRIECAAAECBAgQIECAAAECBIIJwD4ERwkI/x4l5H0CBAgQIECAAAECBAgQIECAAAECaQr00ixLVQQIECBAgAABAgQIECBAgAABAgQI5C5QTgI+f+9G7q2of0EC2zu7YX1tZUGrWYYAAQIECBAgQIAAAQIECBCIAiYA+xx8TODzH78s31otn6wtvSyf+k6AAAECBwR6oegPQ7h14GU/EiBAgAABAgQIECBAgACBxgQEgBujtzEBAgQIECBAgAABAgQIECBAgACB9grEKcDjDyHgcY3uPhf+7e7Z65wAAQIECBAgQIAAAQIEqhMwAbg625xXjuHfnf3ldy3E4K/w7zsOTwgQIDBRYBhGg4lveJEAAQIECBAgQIAAAQIECDQkUDS0r20JECBAgAABAgQIECBAgAABAgQIEOiIQAwDl9OAO9KyNgkQIECAAAECBAgQIECAAAECtQmYAFwbdTYbfffzZw/HixX8HdfwnAABAgQIECBAgAABAgQIECBAgEA+AiYA53NWKiVAgAABAgQIECBAgAABAgQIECCQrUA5Edgk4GyPUOEECBAgQIAAAQIECBAgQIBAogImACd6MA2VFSf/vnqsxum/gr8NHYJtCRAgQIAAAQIECBAgQIAAAQIECCxIwATgBUFahgABAgQIECBAgAABAgQIECBAgACBwwVMAj7cx7sECBAgQIAAAQIECBAgQIAAgVkETACeRa2d98Twbwz+xofwbzvPWFcECFQr0AtFv9odrE6AAAECBAgQIECAAAECBKYTEACezsvVBAgQIECAAAECBAgQIECAAAECBAjMISAEPAdeC27d3tltQRdaIECAAAECBAgQIECAAAECaQmYAJzWeTRVzXc/f/aw3LsMAZc/+06AAAECxxMYhtHgeFe6igABAgQIECBAgAABAgQI1CMgAFyPs10IECBAgAABAgQIECBAgAABAgQIEHgrIATc3Y/C+tpKd5vXOQECBAgQIECAAAECBAgQqEjABOCKYDNaNoZ/rzw9t1qWbPpvKeE7AQIECBAgQIAAAQIECBAgQIAAgbwFenmXr3oCBAgQIECAAAECBAgQIECAAAECBHIUiCHg+Dh/70aO5auZAAECBAgQIECAAAECBAgQIJCMgAnAyRxFI4V8/uOXcd/VOPU3Bn+Ffxs5BpsSIECAAAECBAgQIECAAAECBAgQqERAALgSVosSIECAAAECBAgQIECAAAECBAgQIHCUQBkCjtcJAh+l5X0CBAgQIECAAAECBAgQIECAwGQBE4Anu7T91Tj1922P78K/be9ZfwQIEKhaoBeK/jCEW1XvY30CBAgQIECAAAECBAgQIHBcAQHg40q5jgABAgQIECBAgAABAgQIECBAgACBhQuMh4Dj4oLACydOasHtnd2wvraSVE2KIUCAAAECBAgQIECAAAECuQuYAJz7CU5ffzn1N95ZTv6dfhV3ECBAgMBBgWEYDQ6+5mcCBAgQIECAAAECBAgQINCkQNHk5vYmQIAAAQIECBAgQIAAAQIECBAgQIBAFDgYBKbSTgHh33aeq64IECBAgAABAgQIECBAoFkBE4Cb9a9797fh39fBX+HfuvXtR4AAAQIECBAgQIAAAQIECBAgQKBeAQHger3tRoAAAQIECBAgQIAAAQIECBAgQIDARwRiCHjzq+9NiP2Ij5cJECBAgAABAgQIECBAgAABApMETACepNLO18bDv7HDtaWX7WxUVwQIECBAgAABAgQIECBAgAABAgQIvBYQAPZBIECAAAECBAgQIECAAAECBAgQIEAgKYHf//pKuH9hM6maFEOAAAECBAgQIECAAAECBAgQSFXABOBUT2axdQn/LtbTagQIEJgk0AtFf9LrXiNAgAABAgQIECBAgAABAk0JCAA3JW9fAgQIECBAgAABAgQIECBAgAABAgQmCsRJwPGxvrYy8X0vEiBAgAABAgQIECBAgAABAgQI/CJgAvAvFm19Jvzb1pPVFwECqQkMw2iQWk3qIUCAAAECBAgQIECAAIFuCwgAd/v8dU+AAAECBAgQIECAAAECBAgQIEAgSYEYAo6TgD3aJbC9s9uuhnRDgAABAgQIECBAgAABAgQSEDABOIFDqLAE4d8KcS1NgAABAgQIECBAgAABAgQIECBAIHEBAeDED0h5BAgQIECAAAECBAgQIECAAAECBLoqEEPAm19939X2W9m3qc6tPFZNESBAgAABAgQIECBAgEDDAiYAN3wAFW4v/FshrqUJECBAgAABAgQIECBAgAABAgQIZCDQy6BGJRIgQIAAAQIECBAgQIAAAQIECBAg0GGB+xc2X3d//t6NDitonQABAgQIECBAgAABAgQIECAwWcAE4MkuOb/63c+fPXxb/+rO/vLrp2tLL3NuSe0ECBDIQqAXiv4whFtZFKtIAgQIECBAgAABAgQIEOiEgABwJ45ZkwQIECBAgAABAgQIECBAgAABAgTyFYiTgMcfgsDjGp4TIECAAAECBAgQIECAAAECXRcwAbg9n4Ay+Hvl6bnV2JXwb3vOVicECOQhMAyjQR6VqpIAAQIECBAgQIAAAQIEuiIgANyVk9YnAQIECBAgQIAAAQIECBAgQIAAgcwFyiCwAHDmB6l8AgQIECBAgAABAgQIECBAYKECJgAvlLPRxcrg73gRJv+Oa3hOgAABAgQIECBAgAABAgQIECBAoFsCRbfa1S0BAgQIECBAgAABAgQIECBAgAABArkL3L+wmXsLna1/e2e3s71rnAABAgQIECBAgAABAgQIVCVgAnBVsvWtGyf/fv7jl68n/sapvyb/1mdvJwIECBAgQIAAAQIECBAgQIAAAQIpC5gAnPLpqI0AAQIECBAgQIAAAQIECBAgQIAAgQ8EyknA8Q3TgD/gSfqF9bWVpOtTHAECBAgQIECAAAECBAgQyFHABOAcT+39muPkX6Hf9038RIAAgSYEeqHoD0O41cTe9iRAgAABAgQIECBAgAABApMETACepOI1AgQIECBAgAABAgQIECBAgAABAgSSFogh4PEgcNLFKo4AAQIECBAgQIAAAQIECBAgUKGACcAV4la89Pjk34q3sjwBAgQIHENgGEaDY1zmEgIECBAgQIAAAQIECBAgUJuAAHBt1DYiQIAAAQIECBAgQIAAAQIECBAgQGDRAptffb/oJa1HgAABAgQIECBAgAABAgQIEMhKwATgrI7rvWIPTv5dW3r53vt+IECAAAECBAgQIECAAAECBAgQIECg2wICwN0+f90TIECAAAECBAgQIECAAAECBAgQyF7g/oXNEL880hfY3tlNv0gVEiBAgAABAgQIECBAgACBzARMAM7swF6Va/JvfmemYgIECBAgQIAAAQIECBAgQIAAAQJNCAgAN6FuTwIECBAgQIAAAQIECBAgQIAAAQIEFibwh3O/fb2WEPDCSCtbaH1tpbK1LUyAAAECBAgQIECAAAECB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ECBKoWMAG4amHrEyBAgAABAgQIECBAgAABAgQIECCQhMD4JOBYkGnA9R/L9s5uWF9bqX9jOxIgQIAAAQIECBAgQIAAgRYLmADc/OHG4G+s4srTc6sm/zZ/HiogQIDArALDMBrMeq/7CBAgQIAAAQIECBAgQIBAFQICwFWoWpMAAQIECBAgQIAAAQIECBAgQIAAgWQFxoPAQsD1HpPwb73ediNAgAABAgQIECBAgACBbgiYANzsOY9P/S3Dv81WZHcCBAgQIECAAAECBAgQIECAAAECBNoiIADclpPUBwECBAgQIECAAAECBAgQIECAAAECUwmUQWAh4KnYXEyAAAECBAgQIECAAAECBAgkJmACcHMHUoZ/Y/DXgwABAgQIECBAgAABAgQIECBAgAABAosWKBa9oPUIECBAgAABAgQIECBAgAABAgQIECCQi0AMAd+/sJlLueokQIAAAQIECBAgQIAAAQIECHwgYALwByS1vHAw/Lu29DLELw8CBAgQyFegF4p+vtWrnAABAgQIECBAgAABAgTaKCAA3MZT1RMBAgQIECBAgAABAgQIECBAgAABAscWEAI+NtXcF27v7M69hgUIECBAgAABAgQIECBAgACB9wVMAH7fo46fJoV/69jXHgQIECBQrcAwjAbV7mB1AgQIECBAgAABAgQIECAwnYAA8HReriZAgAABAgQIECBAgAABAgQIECBAoIUCQsD1HOr62ko9G9mFAAECBAgQIECAAAECBAh0SMAE4HoPW/i3Xm+7ESBAgAABAgQIECBAgAABAgQIEOiygABwl09f7wQIECBAgAABAgQIECBAgAABAgQIvBMQAn5H4QkBAgQIECBAgAABAgQIECCQkYAJwPUdlvBvfdZ2IkCAAAECBAgQIECAAAECBAgQIEAgBAFgnwICBAgQIECAAAECBAgQIECAAAECBAi8FRAC9lEgQIAAAQIECBAgQIAAAQIEchMwAbieExP+rcfZLgQIEGhSoBeKfpP725sAAQIECBAgQIAAAQIECBwU6B18wc8ECBAgQIAAAQIECBAgQIAAAQIECBDoskAMAZeP8/dulE99J0CAAAECBAgQIECAAAECBAgkKWACcLXHEoO/cYcrT8+t7uwvv95sbelltZtanQABAgQaERiG0aCRjW1KgAABAgQIECBAgAABAgQ+IiAA/BEYLxMgQIAAAQIECBAgQIAAAQIECBAg0F0BIeBqzn57Zzesr61Us7hVCRAgQIAAAQIECBAgQIBARwVMAK7m4MeDv+M7CP+Oa3hOgAABAgQIECBAgAABAgQIECBAgECVAkWVi1ubAAECBAgQIECAAAECBAgQIECAAAECOQvEIPD9C5s5t5BU7cK/SR2HYggQIECAAAECBAgQIECgJQImAFd3kONTf+Muwr/VWVuZAAECBAgQIECAAAECBAgQIECAAIEPBQSAPzTxCgECBAgQIECAAAECBAgQIECAAAECBN4JCAG/o/CEAAECBAgQIECAAAECBAgQSFDABODFHkqc/Bu/xsO/O/vLi93EagQIECCQpEAvFP0kC1MUAQIECBAgQIAAAQIECHRWoNfZzjVOgAABAgQIECBAgAABAgQIECBAgACBYwrEEHB8nL9345h3uIwAAQIECBAgQIAAAQIECBAgUI+ACcCLdy7Dvyb+Lt7WigQIEEhZYBhGg5TrUxsBAgQIECBAgAABAgQIdE9AALh7Z65jAgQIECBAgAABAgQIECBAgAABAgRmEBACngHNLQQIECBAgAABAgQIECBAgEDlAiYAL4Y4Tv2NK5Xh38WsahUCBAgQIECAAAECBAgQIECAAAECBAjMLlDMfqs7CRAgQIAAAQIECBAgQIAAAQIECBAg0C2BGAK+f2GzW00vsNvtnd0FrmYpAgQIECBAgAABAgQIECBAIAqYALy4z8F4+Nf038W5WokAAQIECBAgQIAAAQIECBAgQIAAgdkETACezc1dBAgQIECAAAECBAgQIECAAAECBAh0VMAk4NkPfn1tZfab3UmAAAECBAgQIECAAAECBAhMFDABeCLLVC9+/uOX8frVnf3l1/cJ/07F52ICBAi0RqAXiv4whFutaUgjBAgQIECAAAECBAgQIJC9gABw9keoAQIECBAgQIAAAQIECBAgQIAAAQIE6hYQAq5b3H4ECBAgQIAAAQIECBAgQIDAxwRMAP6YzNGvf/fzZw/fXiX8ezSXKwgQINB6gWEYDVrfpAYJECBAgAABAgQIECBAICsBAeCsjkuxBAgQIECAAAECBAgQIECAAAECBAikIlCGgGM95+/dSKUsdRAgQIAAAQIECBAgQIAAAQIdEzABeLYDL6f+jt9t8u+4hucECBAgQIAAAQIECBAgQIAAAQIECDQtUDRdgP0JECBAgAABAgQIECBAgAABAgQIECCQq0AMAcevza++z7WFWuve3tmtdT+bESBAgAABAgQIECBAgACBLgiYADzdKcepvzH8u7O//O4rriD8O52jqwkQIECAAAECBAgQIECAAAECBAgQqF5AALh6YzsQIECAAAECBAgQIECAAAECBAgQINABASHgow95fW3l6ItcQYAAAQIECBAgQIAAAQIECEwlYALwVFzhytNzq+N3CP6Oa3hOgACBbgv0QtHvtoDuCRAgQIAAAQIECBAgQCA1AQHg1E5EPQQIECBAgAABAgQIECBAgAABAgQIZCtw/8JmtrUrnAABAgQIECBAgAABAgQIEMhTwATg451bOfk3Xh2n/8bgr/Dv8excRYAAga4IDMNo0JVe9UmAAAECBAgQIECAAAECeQgIAOdxTqokQIAAAQIECBAgQIAAAQIECBAgQCADgT+c+20wCTiDg1IiAQIECBAgQIAAAQIECBBokYAJwMc7zDj5NwZ/y/Dv8e5yFQECBAgQIECAAAECBAgQIECAAAECBJoTEABuzt7OBAgQIECAAAECBAgQIECAAAECBAi0VMAk4JYerLYIECBAgAABAgQIECBAgECCAiYAH34o5eTfGPz1IECAAAECBAgQIECAAAECBAgQIECAQE4CAsA5nZZaCRAgQIAAAQIECBAgQIAAAQIECBDIQsAk4MnHtL2zO/kNrxIgQIAAAQIECBAgQIAAAQIzC5gAfDhdOfk3XrW29PL11+F3eJcAAQIEuirQC0W/q73rmwABAgQIECBAgAABAgTSFBAATvNcVEWAAAECBAgQIECAAAECBAgQIECAQAsENr/6PpgG/MtBrq+t/PKDZwQIECBAgAABAgQIECBAgMBCBEwA/pAxTv0tJ//Gd2Pw14MAAQIECBwlMAyjwVHXeJ8AAQIECBAgQIAAAQIECNQp0KtzM3sRIECAAAECBAgQIECAAAECBAgQIECgawJxGnD8+ut/+Ltw/t6NrrWvXwIECBAgQIAAAQIECBAgQKBiAROAPwSOU38PvioEfFDEzwQIECBAgAABAgQIECBAgAABAgQIpC5gAnDqJ6Q+AgQIECBAgAABAgQIECBAgAABAgRaIRBDwKYBt+IoNUGAAAECBAgQIECAAAECBJISMAH4l+MYn/q7s7/8yxueESBAgAABAgQIECBAgAABAgQIECBAIEMBAeAMD03JBAgQIECAAAECBAgQIECAAAECBAjkKyAEnO/ZqZwAAQIECBAgQIAAAQIECKQoYALwm1OJ4d9y8q/wb4qfVDURIEAgfYFeKPrpV6lCAgQIECBAgAABAgQIEOiSQK9LzeqVAAECBAgQIECAAAECBAgQIECAAAECTQrEKcDl4/y9G+XTznzf3tkN62srnelXowQIECBAgAABAgQIECBAoA4BE4BDGA//RvO1pZd10NuDAAECBFomMAyjQcta0g4BAgQIECBAgAABAgQIZC4gAJz5ASqfAAECBAgQIECAAAECBAgQIECAAIH8BMogcNdCwMK/+X1WVUyAAAECBAgQIECAAAEC6QuYABxCnPw7PvVXADj9z60KCRAgQIAAAQIECBAgQIAAAQIECBA4WqA4+hJXECBAgAABAgQIECBAgAABAgQIECBAgMCiBWIIWCB20arWI0CAAAECBAgQIECAAAEC3RPo8gTgOPn38x+/fH3oMfRbfnXvU6BjAgQIECBAgAABAgQIECBAgAABAgTaKCAA3MZT1RPwyV0AAEAASURBVBMBAgQIECBAgAABAgQIECBAgAABAlkI/P7XV8L9C5tZ1KpIAgQIECBAgAABAgQIECBAIE2Brk4AjuHfOPk3nkqc/js+ATjNk1IVAQIECKQu0AtFP/Ua1UeAAAECBAgQIECAAAEC3RLodatd3RIgQIAAAQIECBAgQIAAAQIECBAgQCAdgTgFuHycv3ejfNra79s7u6Yet/Z0NUaAAAECBAgQIECAAAECTQl0cQJwGf6Nod849Tc+yu9NnYN9CRAgQCB/gWEYDfLvQgcECBAgQIAAAQIECBAg0CYBAeA2naZeCBAgQIAAAQIECBAgQIAAAQIECBDIUqArQeD1tZUsz0fRBAgQIECAAAECBAgQIEAgZYEuTQAug7+vzuP15N8y9Ft+T/mc1EaAAAECBAgQIECAAAECBAgQIECAAIFpBQSApxVzPQECBAgQIECAAAECBAgQIECAAAECBCoQ6EoIuAI6SxIgQIAAAQIECBAgQIAAgU4LdGUCcBn+jVN/y4fgbynhOwECBAgQIECAAAECBAgQIECAAAECbRQo2tiUnggQIECAAAECBAgQIECAAAECBAgQIJCrQAwC37+wmWv56iZAgAABAgQIECBAgAABAgRqFujCBOCD4d8Y/BX+rfmDZjsCBAh0QKAXin4H2tQiAQIECBAgQIAAAQIECGQkIACc0WEplQABAgQIECBAgAABAgQIECBAgACB7ggIAXfnrHVKgAABAgQIECBAgAABAgTmEWj7BOCD4d95rNxLgAABAgQOExiG0eCw971HgAABAgQIECBAgAABAgTqFujVvaH9CBAgQIAAAQIECBAgQIAAAQIECBAgQOBwgTgFuHycv3ejfJr99+2d3bC+tpJ9HxogQIAAAQIECBAgQIAAAQIpCbR5AvDB8K+pvyl98tRCgAABAgQIECBAgAABAgQIECBAgEDVAiYAVy1sfQIECBAgQIAAAQIECBAgQIAAAQIECMwoEIPAbZoELPw74wfBbQQIECBAgAABAgQIECBA4BCBtk4APhj+PYTAWwQIECBAgAABAgQIECBAgAABAgQIEGilgABwK49VUwQIECBAgAABAgQIECBAgAABAgQItEWgbSHgtpyLPggQIECAAAECBAgQIECAQCoCbZwAfDD8Gyf/mv6byidOHQQIEGivQC8U/fZ2pzMCBAgQIECAAAECBAgQyFFAADjHU1MzAQIECBAgQIAAAQIECBAgQIAAAQKdE2jTJODOHZ6GCRAgQIAAAQIECBAgQIBAhQJtmwB8MPxbIZ2lCRAgQIDAewLDMBq894IfCBAgQIAAAQIECBAgQIBAwwK9hve3PQECBAgQIECAAAECBAgQIECAAAECBAgcIRCnAI8/zt+7Mf6j5wQIECBAgAABAgQIECBAgECHBdoyATgGf+MxXnl6bnVnf/n1iZr62+EPttYJECBAgAABAgQIECBAgAABAgQIEAgCwD4EBAgQIECAAAECBAgQIECAAAECBAgQyERgPAicYwh4e2c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+xIOFfH0wCBAgQIECAAAECBAgQIECAAAECBAgsRkAAeDGOViFAgAABAgQIECBAgAABAgQIECBAgEB2AmUIOLvCFUyAAAECBAgQIECAAAECBAi8E2hqAnAM/8bHzv7y6693BXlCgAABAgQyFeiFop9p6comQIAAAQIECBAgQIAAgZYKCAC39GC1RYAAAQIECBAgQIAAAQIECBAgQIAAgeMIxBDw5lffh/sXNo9zuWsIECBAgAABAgQIECBAgACBxATqngD83c+fPYzh3zL4a+JvYh8I5RAgQIDAzALDMBrMfLMbCRAgQIAAAQIECBAgQIBABQICwBWgWpIAAQIECBAgQIAAAQIECBAgQIAAAQI5CggB53hqaiZAgAABAgQIECBAgACBrgvUPQH4ytNzqwfNhYAPiviZAAECBAgQIECAAAECBAgQIECAAAEC8wsIAM9vaAUCBAgQIECAAAECBAgQIECAAAECBAhkLxAnAVf92N7ZrXoL6xMgQIAAAQIECBAgQIAAgc4J1DkB+ODkX8Hfzn3cNEyAAAECBAgQIECAAAECBAgQIECAQI0CvRr3shUBAgQIECBAgAABAgQIECBAgAABAgQIJCwwHgI+f+/GwitdX1tZ+JoWJECAAAECBAgQIECAAAECXReoawJwDP96ECBAgACBNgv0QtEfhnCrzT3qjQABAgQIECBAgAABAgTyEjABOK/zUi0BAgQIECBAgAABAgQIECBAgAABAgQqFYgh4PEgcKWbWZwAAQIECBAgQIAAAQIECBCYW6DqCcDf/fzZw/HJv7Fgk3/nPjYLECBAgECCAsMwGiRYlpIIECBAgAABAgQIECBAoMMCJgB3+PC1ToAAAQIECBAgQIAAAQIECBAgQIAAgY8J3L+w+e6tKqYBv1vcEwIECBAgQIAAAQIECBAgQGAugaonAF95em51Z3/5XY3Cv+8oPCFAgAABAgQIECBAgAABAgQIECBAgEClAiYAV8prcQIECBAgQIAAAQIECBAgQIAAAQIECOQpMD4JeDwMnGc3qiZAgAABAgQIECBAgAABAu0VqGICcDn1N07+HX8I/45reE6AAAECBAgQIECAAAECBAgQIECAAIFqBQSAq/W1OgECBAgQIECAAAECBAgQIECAAAECBLIWiEHg+FhECHh7ZzdrC8UTIECAAAECBAgQIECAAIEUBRY9ATiGfydN/RX+TfH01USAAAECixTohaK/yPWsRYAAAQIECBAgQIAAAQIE5hXozbuA+wkQIECAAAECBAgQIECAAAECBAgQIECg3QJlCDh2ef7ejZmbXV9bmfleNxIgQIAAAQIECBAgQIAAAQKTBRY5Afhg+HdnfzkI/k529yoBAgQItE9gGEaD9nWlIwIECBAgQIAAAQIECBDIWcAE4JxPT+0ECBAgQIAAAQIECBAgQIAAAQIECBCoWWARk4BrLtl2BAgQIECAAAECBAgQIECg1QKLmgB8MPwbg7/Cv63+6GiOAAECBAgQIECAAAECBAgQIECAAIHEBUwATvyAlEeAAAECBAgQIECAAAECBAgQIECAAIFUBBY1CTiVftRBgAABAgQIECBAgAABAgTaILCICcCTwr9tsNEDAQIECBAgQIAAAQIECBAgQIAAAQIEchYwATjn01M7AQIECBAgQIAAAQIECBAgQIAAAQIEGhIwCbgheNsSIECAAAECBAgQIECAAIEDAvNOABb+PQDqRwIECBDorEAvFP3ONq9xAgQIECBAgAABAgQIEEhSwATgJI9FUQQIECBAgAABAgQIECBAgAABAgQIEEhXYNZJwNs7u2F9bSXdxlRGgAABAgQIECBAgAABAgQyFJhnArDwb4YHrmQCBAgQqExgGEaDyha3MAECBAgQIECAAAECBAgQmEHABOAZ0NxCgAABAgQIECBAgAABAgQIECBAgAABAm8EppkELPzrU0OAAAECBAgQIECAAAECBBYvMM8E4CtPz63u7C+/Lmpt6eXii7MiAQIECBAgQIAAAQIECBAgQIAAAQIECMwsYALwzHRuJECAAAECBAgQIECAAAECBAgQIECAQLcFxicBR4nz9250G0T3BAgQIECAAAECBAgQIECgAYFpJwCXU3/LUgV/SwnfCRAgQIAAAQIECBAgQIAAAQIECBAgkJaAAHBa56EaAgQIECBAgAABAgQIECBAgAABAgQIZCcwHgQWAs7u+BRMgAABAgQIECBAgAABApkLTDMBuAz/xqm/gr+ZH7zyCRAgQGDhAr1Q9Ich3Fr4whYkQIAAAQIECBAgQIAAAQIzChQz3uc2AgQIECBAgAABAgQIECBAgAABAgQIECDwnkAMAt+/sPnea34gQIAAAQIECBAgQIAAAQIEqhU47gTgMvxbbTVWJ0CAAAEC+QoMw2iQb/UqJ0CAAAECBAgQIECAAIE2CpgA3MZT1RMBAgQIECBAgAABAgQIECBAgAABAgQaEiinAZsE3NAB2JYAAQIECBAgQIAAAQIEOidwnAnAZfg3Tv6ND9N/O/cx0TABAgQIECBAgAABAgQIECBAgAABAhkKCABneGhKJkCAAAECBAgQIECAAAECBAgQIECAQMoCQsApn47aCBAgQIAAAQIECBAgQKBtAkdNAB4P/wr+tu309UOAAAECBAgQIECAAAECBAgQIECAQJsFijY3pzcCBAgQIECAAAECBAgQIECAAAECBAgQaEYghoDvX9h8b/Ptnd33fvYDAQIECBAgQIAAAQIECBAgML/AYROAx8O/8+9kBQIECBAg0G6BXij67e5QdwQIECBAgAABAgQIECCQm4AJwLmdmHoJECBAgAABAgQIECBAgAABAgQIECCQicDBScDrayuZVK5MAgQIECBAgAABAgQIECCQj8DHJgCPh39N/s3nPFVKgAABAs0JDMNo0NzudiZAgAABAgQIECBAgAABAh8KCAB/aOIVAgQIECBAgAABAgQIECBAgAABAgQIEFiQQBkCjsutP/7bBa1qGQIECBAgQIAAAQIECBAgQKAUODgBOAZ/43tXnp5bLa/xnQABAgQIECBAgAABAgQIECBAgAABAgTyExAAzu/MVEyAAAECBAgQIECAAAECBAgQIECAAIGsBGIIeLRf7IRBWPvyf//nbz85ceJiVg0olgABAgQIECBAgAABAgQIJCwwPgG4nPo7Xq7pv+ManhMgQIAAAQIECBAgQIAAAQIECBAgQCAfgSKfUlVKgAABAgQIECBAgAABAgQIECBAgAABArkKjML+nd/3/83fFif3tnLtQd0ECBAgQIAAAQIECBAgQCBVgT/9l34ow787+8uplqkuAgQIECCQtEAvFP2kC1QcAQIECBAgQIAAAQIECHROQAC4c0euYQIECBAgQIAAAQIECBAgQIAAAQIECNQvUISly6P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qf2vjYNuG59+xEgQIAAAQIECBAgQIBAFQIx/BuDv/F33Vkm/1ZRkzUJECBAgEBXBXqh6He1d30TIECAAAECBAgQIECAQJoC/tnHNM9FVQQIECBAgAABAgQIECBAgAABAgQIECAwQcA04AkoXiJAgAABAgQIECBAgACBLAXK8O+n3zy4nmUDiiZAgAABAi0TGIbRoGUtaYcAAQIECBAgQIAAAQIEMhcwATjzA1Q+AQIECBAgQIAAAQIECBAgQIAAAQIEchAYhf07i6wzBoHjH0jHKUmLXNdaBAgQIECAAAECBAgQIECgDoEY/o1TfxcV/j396ObtOuq2BwECBAgQIECAAAECBAgQIECAAAECBAjUJyAAXJ+1nQgQIECAAAECBAgQIECAAAECBAgQINBZgSIsXa6i+WERtl4sP74W/3C6ivWtSYAAAQIECBAgQIAAAQIEFi1QTv6N/7jVotZ+cubqxqLWsg4BAgQIECBAgAABAgQIECBAgAABAgQIpCHQS6MMVRAgQIAAAQIECBAgQIAAAQIECBAgQIBAmwUWPQG4tHr7x9J3f/jibAgvT1wsX/edAAECBAgQIECAAAECBAikKFCGfxc1+TfFHtVEgAABAgRyFeiFoj8M4Vau9aubAAECBAgQIECAAAECBNonYAJw+85URwQIECBAgAABAgQIECBAgAABAgQIEEhOoKoJwGWjJgGXEr4TIECAAAECBAgQIECAQKoCZfg3/g6bao3qIkCAAAECXRYYhtGgy/3rnQABAgQIECBAgAABAgTSExAATu9MVESAAAECBAgQIECAAAECBAgQIECAAIHWCVQ1AbiEipOA4x9QFyf3tuIfVJev+06AAAECBAgQIECAAAECBFIQKMO/cfJv/B120TWdfnTz9qLXtB4BAgQIECBAgAABAgQIECBAgAABAgQINCsgANysv90JECBAgAABAgQIECBAgAABAgQIECDQCYGqJwBHRCHgTnyUNEmAAAECBAgQIECAAIHsBMrwb5WTf5+cubqRHYyCCRAgQIAAAQIECBAgQIAAAQIECBAgQOBQgd6h73qTAAECBAgQIECAAAECBAgQIECAAAECBAgsQKDqCcBliTEE/HDjbOid3AvPn7159ZMTJy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blLf3gQIECBAgAABAgQIECBAgAABAgQIECDQiEAMAsdJwMXJva34B9uNFGFTAgQIECBAgAABAgQIEMhWIP4uGX+vjFN/mw7/ZouocAIECBAgkJhALxT9xEpSDgECBAgQIECAAAECBAh0XMA/+9jxD4D2CRAgQIAAAQIECBAgQIAAAQIECBAg0FWBt9OA776aBrz1/E/hP5oE3NVPgr4JECBAgAABAgQIECAwncCL5cfXRqfC1tvfK6e72dUECBAgQIBAsgLDMBokW5zCCBAgQIAAAQIECBAgQKCTAiYAd/LYNU2AAAECBAgQIECAAAECBAgQIECAAIF6BUZh/069O063W5zaZBLwdGauJkCAAAECBAgQIECAQBcF4u+OcepvauHf049u3u7ieeiZAAECBAgQIECAAAECBAgQIECAAAECbRYwAbjNp6s3AgQIECBAgAABAgQIECBAgAABAgQIJCJQhKXLqYaAyz/a/uGLV5OAn4VgEnAiHxplECBAgAABAgQIECBAIDGBlCf/PjlzdaMX/ClYYh8Z5RAgQIAAAQIECBAgQIAAAQIECBAgQGAuAROA5+JzMwECBAgQIECAAAECBAgQIECAAAECBAi0ReDTbx5cNwm4LaepDwIECBAgQIAAAQIECCxWINXJv4vt0moECBAgQKDbAr1Q9LstoHsCBAgQIECAAAECBAgQSE1AADi1E1EPAQIECBAgQIAAAQIECBAgQIAAAQIECDQqIATcKL/NCRAgQIAAAQIECBAgkJzAm8m/e1+v3n5wN7niFESAAAECBAgsTGAYRoOFLWYhAgQIECBAgAABAgQIECCwAAEB4AUgWoIAAQIECBAgQIAAAQIECBAgQIAAAQIEDhcYhf07h1+RxrvlH3MLAadxHqogQIAAAQIECBAgQIBAkwJx6m8uk39PP7p5u0krexMgQIAAAQIECBAgQIAAAQIECBAgQIDA4gV6i1/SigQIECBAgAABAgQIECBAgAABAgQIECBA4H2BIixdzi0E/MMXZ7eeP3vTxycnTlx8vyM/ESBAgAABAgQIECBAgEDbBYqTe1vDImyV/1hUyv0+OXN1oxf8KVjKZ6Q2AgQIECBAgAABAgQIECBAgAABAgQITCv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BA4CsC8b814gcPmfz7FShPEyBAgAABAskKLEN5nmxxCiNAgAABAgQIECBAgACBQQoIAA/y2DVNgAABAgQIECBAgAABAgQIECBAgACBdgXKcHfW7o52+5xAfEO+EPDndDxOgAABAgQIECBAgMAqAsK/q6jVe8/O5em03hWtRoAAAQIECBAgQIAAAQIECBAgQIAAAQJdCwgAd30C9idAgAABAgQIECBAgAABAgQIECBAgMAABIqwcTiANpNvMU7iqqZxxTfo37x790vyRSuQAAECBAgQIECAAIGkBYR/0zie+e7RJI1KVEGAAAECBAgQIECAAAECBAgQIECAAAECdQkIANclaR0CBAgQIECAAAECBAgQIECAAAECBAgQINATgeevL17GScDF1mImBNyTQ1MmAQIECBAgQIAAgYQE4n9HxC/h34QORSkECBAgQIDA2gKjUOyvvYgFCBAgQIAAAQIECBAgQIBAjQKjGteyFAECBAgQIECAAAECBAgQIECAAAECBAgQINATgTgJ+O1kL4Ttxey2XLz4n/f/e9KT0pVJgAABAgQIECBAgECHAjH4W24vjmMJ393/d0WHpdiaAAECBAgQIFCrwDKU57UuaDECBAgQIECAAAECBAgQILCmgADwmoBuJ0CAAAECBAgQIECAAAECBAgQIECAAIGvC5Th7uzrV7mibYEYAo57/hEEDlehvP7mxeZ4fNB2HfYjQIAAAQIECBAgQKAfAjH8W2wtZoK/6Z3XzuXp9Pfvf/oxvcpURIAAAQIECBAgQIAAAQIECBAgQIAAAQKrChSr3ug+AgQIECBAgAABAgQIECBAgAABAgQIECDwWIEibBw+9lrXtS8Qg8DLIsziG/nb392OBAgQIECAAAECBAj0QaCa/Pv89cXLPtQ7tBrnu0eTofWsXwIECBAgQIAAAQIECBAgQIAAAQIECOQuIACc+wnrjwABAgQIECBAgAABAgQIECBAgAABAgkImACcwCF8pYQqBHz77OokvrH/K5d7mgABAgQIECBAgACBAQlUk3/jfzcMqG2tEiBAgAABAgMTGIVif2Ata5cAAQIECBAgQIAAAQIEEhcQAE78gJRHgAABAgQIECBAgAABAgQIECBAgACBHARMAO7HKVYh4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upaQAi46xOwPwECBAgQIECAAIF6BB6Gf/9l+m89qFYhQIAAAQIEeiuwDOV5b4tXOAECBAgQIECAAAECBAhkKSAAnOWxaooAAQIECBAgQIAAAQIECBAgQIAAAQIECDREncPrAABAAElEQVQrIATcrK/VCRAgQIAAAQIECDQtEMO/5fbiOL62F/5tWrv59XcuT6fN72IHAgQIECBAgAABAgQIECBAgAABAgQIEGhTQAC4TW17ESBAgAABAgQIECBAgAABAgQIECBAgACBjASEgDM6TK0QIECAAAECBAgMSqCa/Cv4m8+xz3ePJvl0oxMCBAgQIECAAAECBAgQIECAAAECBAgQiAICwH4OCBAgQIAAAQIECBAgQIAAAQIECBAgQKBxgTLcnTW+iQ06ERAC7oTdpgQIECBAgAABAgRWFqjCv/G1/MqLuJEAAQIECBAgkKHAKBT7GbalJQIECBAgQIAAAQIECBDoscCox7UrnQABAgQIECBAgAABAgQIECBAgAABAgR6IlCEjUMh4J4c1gplLoswG20twm1YzMrrb15sjscHKyzjFgIECBAgQIAAAQIEGhSIwd+4fLG1mMXX8A1uZWkCBAgQIECAQC8FlqE872XhiiZAgAABAgQIECBAgACBbAUEgLM9Wo0RIECAAAECBAgQIECAAAECBAgQIECAAIF2BP41vXhzv9Obt5O9f8cg8M11CELA7djbhQABAgQIECBAgMBjBG6fXZ0UWyHE4G95f8OH1/CPudU1PRHYuTyd/v79Tz/2pFxlEiBAgAABAgQIECBAgAABAgQIECBAgMAjBASAH4HkEgIECBAgQIAAAQIECBAgQIAAAQIECBAgQODrAg+CwLOb38LPQsBfN3MFAQIECBAgQIAAgaYF4uTfcjvMhH6blu52/fnu0WQUvBWs21OwOwECBAgQIECAAAECBAgQIECAAAECBOoVKOpdzmoECBAgQIAAAQIECBAgQIAAAQIECBAgQOCfAmW4O/vnox7JVSAGC8rtxXEMGuTao74IECBAgAABAgQI9EHgz/Dv4lj4tw+npUYCBAgQIECga4FRKPa7rsH+BAgQIECAAAECBAgQIEDgoYAA8EMNfyZAgAABAgQIECBAgAABAgQIECBAgACBRgSKsHHYyMIWTVpACDjp41EcAQIECBAgQIBA5gLCv5kfsPYIECBAgACB2gWWoTyvfVELEiBAgAABAgQIECBAgACBNQQEgNfAcysBAgQIECBAgAABAgQIECBAgAABAgQIECDwaYFqwpgQ8Kd9PEqAAAECBAgQIECgKYHi2/dB+Lcp3XTX3bk8naZbncoIECBAgAABAgQIECBAgAABAgQIECBAYBUBAeBV1NxDgAABAgQIECBAgAABAgQIECBAgAABAgQIfFUghoDjlxDwV6lcQIAAAQIECBAgQKA2gZur+Ul8DV59KE9tC1soaYH57tEk6QIVR4AAAQIECBAgQIAAAQIECBAgQIAAAQJPFhAAfjKZGwgQIECAAAECBAgQIECAAAECBAgQIEDgqQJluDt76j2uz0cgBg+KrcUsTiHLpyudECBAgAABAgQIEEhPIL7mXhZhJvyb3tmoiAABAgQIEEhfYBSK/fSrVCEBAgQIECBAgAABAgQIDElgNKRm9UqAAAECBAgQIECAAAECBAgQIECAAAEC3QgUYeNQCLgb+1R2ff764uWvP+yFm+s/K9ocjw9SqU0dBAgQIECAAAECBPosUHz7Piz+c/NL/NCdclv4t89nqXYCBAgQIECgW4FlKM+7rcDuBAgQIECAAAECBAgQIEDg7wImAP/dw3cECBAgQIAAAQIECBAgQIAAAQIECBAg0ICA8G8DqD1cMoaAy+3FcfwyDbiHB6hkAgQIECBAgACBJAVuruYn8TV2fL2dZIGKakVg5/J02spGNiFAgAABAgQIECBAgAABAgQIECBAgACB1gQEgFujthEBAgQIECBAgAABAgQIECBAgAABAgSGKxAnAA+3e50/FPjX9OJN/BICfqjizwQIECBAgAABAgSeLhA/VOf22dXJsvhr6m98rf30ldyRg8B892iSQx96IECAAAECBAgQIECAAAECBAgQIECAAIG/BASA/7LwJwIECBAgQIAAAQIECBAgQIAAAQIECBBoSMAE4IZge7ysEHCPD0/pBAgQIECAAAECSQgUW4tZnPor9JvEcSiCAAECBAgQyEBgFIr9DNrQAgECBAgQIECAAAECBAhkJCAAnNFhaoUAAQIECBAgQIAAAQIECBAgQIAAAQKpCpgAnOrJdFuXEHC3/nYnQIAAAQIECBDor0A1+be/HaicAAECBAgQIJCewDKU5+lVpSICBAgQIECAAAECBAgQGLKAAPCQT1/vBAgQIECAAAECBAgQIECAAAECBAgQaEnABOCWoHu4jRBwDw9NyQQIECBAgAABAp0KxPCvyb+dHkGSm+9cnk6TLExRBAgQIECAAAECBAgQIECAAAECBAgQILCygADwynRuJECAAAECBAgQIECAAAECBAgQIECAAIHHCpgA/Fip4V5Xbi+Ob969+2W4AjonQIAAAQIECBAg8HUBk3+/bjTUK+a7R5Oh9q5vAgQIECBAgAABAgQIECBAgAABAgQI5CogAJzryeqLAAECBAgQIECAAAECBAgQIECAAAECCQmYAJzQYSRYSpwCbBJwggejJAIECBAgQIAAgaQEqvBvfO2cVGGKIUCAAAECBAhkIjAKxX4mrWiDAAECBAgQIECAAAECBDIREADO5CC1QYAAAQIECBAgQIAAAQIECBAgQIAAgZQFTABO+XTSqU0IOJ2zUAkBAgQIECBAgEBaAsK/aZ2HaggQIECAAIE8BZahPM+zM10RIECAAAECBAgQIECAQF8FBID7enLqJkCAAAECBAgQIECAAAECBAgQIECAAAECGQoIAWd4qFoiQIAAAQIECBBYWeDm3btfhH9X5hvUjTuXp9NBNaxZAgQIECBAgAABAgQIECBAgAABAgQIDEBAAHgAh6xFAgQIECBAgAABAgQIECBAgAABAgQIECDQJwEh4D6dlloJECBAgAABAgSaFCi2FrPnry9extfITe5j7f4LzHePJv3vQgcECBAgQIAAAQIECBAgQIAAAQIECBAg8FBAAPihhj8TIECAAAECBAgQIECAAAECBAgQIECAQCMCZbg7a2Rhi2YrIASc7dFqjAABAgQIECBA4CsC1dTfavLvVy73NAECBAgQIECAQE0Co1Ds17SUZQgQIECAAAECBAgQIECAQC0Co1pWsQgBAgQIECBAgAABAgQIECBAgAABAgQIEPiCQBE2DoWAvwDkqU8KxBDw28ne8c1v4efN8fjgkxd5kAABAgQIECBAgEBGAjH8W039zagtrRAgQIAAAQIEeiG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IECBAgAABAgQIECBAgAABAgQIfEmgCBuHQsBfEvJcCgImAadwCmogQIAAAQIECKQncPvs6qTcDrMPHxyTXoEqIkCAAAECBAgQqEVgGcrzWhayCAECBAgQIECAAAECBAgQqEmgqGkdyxAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEei0QAx3PX1+8LLYWs5t3737pdTOKJ0CAAAECBAgQqEUgvi6MHxQj/FsLp0UaFNi5PJ02uLylCRAgQIAAAQIECBAgQIAAAQIECBAgQKADAROAO0C3JQECBAgQIECAAAECBAgQIECAAAECBAgQIJCuwMNJwLHKzfH4IN1qVUaAAAECBAgQINCUgMm/TclatwmB+e7RZBS8FawJW2sSIECAAAECBAgQIECAAAECBAgQIECgKwH/6tuVvH0JECBAgAABAgQIECBAgAABAgQIECAwIIEy3J0NqF2t9lzgw3S3N28ne7NRGV7cXAsB9/xIlU+AAAECBAgQeJJAnPobbyi3Tf59EpyLCRAgQIAAAQI9FxiFYn8Zwquet6F8AgQIECBAgAABAgQIEMhIoMioF60QIECAAAECBAgQIECAAAECBAgQIECAQKICRdg4TLQ0ZRH4okCcBlxuL46rEMgXL/YkAQIECBAgQIBAFgLF1uKP14AfPhgmi540QYAAAQIECBAg8HWBZSjPv36VKwgQIECAAAECBAgQIECAQHsCAsDtWduJAAECBAgQIECAAAECBAgQIECAAAECBAgQ6JFADHxUX0LAPTo4pRIgQIAAAQIEVhSIH/oSv+KHwAj/rojots4Edi5Pp51tbmMCBAgQIECAAAECBAgQIECAAAECBAgQaERAALgRVosSIECAAAECBAgQIECAAAECBAgQIECAAAECOQnEAIgQcE4nqhcCBAgQIECAwKcF4ms+4d9P23g0bYH57tEk7QpVR4AAAQIECBAgQIAAAQIECBAgQIAAAQJPFRAAfqqY6wkQIECAAAECBAgQIECAAAECBAgQIEDgyQJluDt78k1uIJCYgBBwYgeiHAIECBAgQIBADQLV1N/bZ1cnwr81gFqCAAECBAgQINBjgVEo9ntcvtIJECBAgAABAgQIECBAIEOBUYY9aYkAAQ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IECAAAECBAgQIECAAAECBOoRMAG4HkerECBAgAABAgQIECBAgAABAgQIECBAgAABAgSSFHj++uKlScBJHo2iCBAgQIBAlgLCv1keq6YIECBAgAABAoMQGIVifxCNapIAAQIECBAgQIAAAQIEeiPgYx97c1QKJUCAAAECBAgQIECAAAECBAgQIECAAAECBAisLvBHCPi38LNJwKsbupMAAQIECBD4tEA19Tc+a/Lvp408SoAAAQIECBAgkL7AMpTn6VepQgIECBAgQIAAAQIECBAYkoAA8JBOW68ECBAgQIAAAQIECBAgQIAAAQIECBDoSKAMd2cdbW1bAgTuBf41vXgTId5O9o5vhID9TBAgQIAAAQI1C8Spv89fX7yseVnLESDwBIGdy9Pp79//9OMTbnEpAQIECBAgQIAAAQIECBAgQIAAAQIECCQuUCRen/IIECBAgAABAgQIECBAgAABAgQIECBAIAOBImwcZtCGFghkIRAnAS/+5+rg9tnVSRYNaYIAAQIECBDoTCBO/o2vKeLU386KsDEBAn8IzHePJigIECBAgAABAgQIECBAgAABAgQIECBAIC8BE4DzOk/dECBAgAABAgQIECBAgAABAgQIECBAgAABAgQ+K1BNAo4X3E8DDuX1uxeb4/HBZ2/wBAECBAgQIEDgCwIm/34Bx1MECBAgQIAAAQK9ExiFYn8ZwqveFa5gAgQIECBAgAABAgQIEMhWwATgbI9WYwQIECBAgAABAgQIECBAgAABAgQIECBAgACBzwvEMHCcBmwS8OeNPEOAAAECBAh8WsDk30+7eJQAAQIECBAgQKDfAstQnve7A9UTIECAAAECBAgQIECAQG4CAsC5nah+CBAgQIAAAQIECBAgQIAAAQIECBAgkKBAGe7OEixLSQQGLxBDwMsizGKIJ34NHgQAAQIECBAg8FWB+JohTv6NryHia4mv3uACAgRaEdi5PJ22spFNCBAgQIAAAQIECBAgQIAAAQIECBAgQKA1gVFrO9mIAAECBAgQIECAAAECBAgQIECAAAECBAYrUISNQyHgwR6/xhMXiMGdt5O941EZXoT344PEy1UeAQIECBAg0KFADP+W24vj7wR/OzwFWxP4tMB892gyCt4K9mkdjxIgQIAAAQIECBAgQIAAAQIECBAgQKCfAiYA9/PcVE2AAAECBAgQIECAAAECBAgQIECAAAECBAgQqE2gmgR8++zqpLZFLUSAAAECBAhkJVBN/jX1N6tj1QwBAgQIECBAgMADgVEo9h98648ECBAgQIAAAQIECBAgQKBzAQHgzo9AAQQIECBAgAABAgQIECBAgAABAgQIECBAgACB7gWqEHAM93RfjQoIECBAgACBVATia4P4ISHF1mK2LMIslbrUQYAAAQIECBAgQKBugWUoz+te03oECBAgQIAAAQIECBAgQGAdAQHgdfTcS4AAAQIECBAgQIAAAQIECBAgQIAAAQKPEijD3dmjLnQRAQKdCsQQcLm9ODYJuNNjsDkBAgQIEEhGoJr6G4O/8cv032SORiEE/iGwc3k6/ceDHiBAgAABAgQIECBAgAABAgQIECBAgACBXguMel294gkQIECAAAECBAgQIECAAAECBAgQIECgFwJF2DgUAu7FUSmSQIjBnreTvXuJq1Bef/MikmyOxwdoCBAgQIAAgWEJPAz/Cv4O6+x120+B+e7RZBS8Fayfp6dqAgQIECBAgAABAgQIECBAgAABAgQIfFrABOBPu3iUAAECBAgQIECAAAECBAgQIECAAAECBGoUEP6tEdNSBFoQiCGfOOUvTgMuthazFra0BQECBAgQIJCQgPBvQoehFAIECBAgQIAAgdYERqHYb20zGxEgQIAAAQIECBAgQIAAgUcI+NjHRyC5hAABAgQIECBAgAABAgQIECBAgAABAgTWEzABeD0/dxPoQqCa9PdwGrBJwF2chD0JECBAgEC7AsK/7XrbjQABAgQIECBAIB2BZSjP06lGJQQIECBAgAABAgQIECBAIAQTgP0UECBAgAABAgQIECBAgAABAgQIECBAgEDjAiYAN05sAwKNCTycBhwDQY1tZGECBAgQIECgcwHh386PQAEEVhbYuTydrnyzGwkQIECAAAECBAgQIECAAAECBAgQIEAgSQEB4CSPRVEECBAgQIAAAQIECBAgQIAAAQIECBDISyBOAM6rI90QGJZADAHHr2JrMRMCHtbZ65YAAQIEhiMg/Ducs9ZpngLz3aNJnp3pigABAgQIECBAgAABAgQ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gQIECBAgAABAlULLEM5rfpM5xEgQIAAAQIECBAgQIAAgbsEirve9B4BAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAtUJxHBbebh4XRwsJjHwVt3JTiJAgEAzBVbh378mpTezRlURIECgCQLd2WjchDrUQIAAAQIECBAgQIAAAQIECBAgQIAAAQLbEzABeHuWdiJAgAABAgQIECBAgAABAgQIECBAgAABAgQIECCwscDX04BNAt6Y1AYECLRUYBX+Nfm3pReobAIEKhWY94aDTvCjYJWiO4wAAQIECBAgQIAAAQIECBAgQIAAAQI7FjABeMfAtidAgAABAgQIECBAgAABAgQIECBAgACBEMpwfcqBAAECBB4nEKddmgT8ODNPEyCQjoDwbzp3qRMCBAgQIECAAAECbRHohKLfllrVSYAAAQIECBAgQIAAAQJ5CAgA53HPuiRAgAABAgQIECBAgAABAgQIECBAgECtAkXYO661AIcTIECghQJxErAQcAsvTskECGwssAr/xj8DN97MBgQIECBAgAABAgQIEHigwDKU0wc+6jECBAgQIECAAAECBAgQIFCJQKeSUxxCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgMCjBWII+POi9x9fHYXLixCe7u+/ePQmFhAgQKBFAqvw7/N3Z29aVLZSCRAgULtAdzYa//7TLz/XXogCCBAgQIAAAQIECBAgQIAAAQIECBAgQGBrAgLAW6O0EQECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIHdCMQpmJ2DhRDwbnjtSoBAQwRW4V+TfxtyIcogQKBVAvPecNAJfhSsVZemWAIECBAgQIAAAQIECBAgQIAAAQIECNwj4G997wHyNgECBAgQIECAAAECBAgQIECAAAECBAhsLlCG69PNd7EDAQIE8hWIk4A/DI5CDAFfhcWkvHj20jTgfD8POieQkkDxw6ew+O3y19hTcbCYmPyb0u3qhQABAgQIECBAgEC7BDqh6C9DeNuuqlVLgAABAgQIECBAgAABAikLCACnfLt6I0CAAAECBAgQIECAAAECBAgQIECAQEMEirB3LATckMtQBgECrRVYhYBjA6YBt/YaFU6AwFcCl+fzk/IwTOLLP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2FIgh4A+Do8lVuXhZXjx7aRrwhqCWEyCwtkAM/wr+rs1nIQECBAgQIECAAAECFQssQzmt+EjHESBAgAABAgQIECBAgACBOwWKO9/1JgECBAgQIECAAAECBAgQIECAAAECBAgQ2IKACcBbQLQFAQIEHiEQp2zG0F15uHh9+ccfvz5iqUcJECCwFQHh360w2oQAAQIPFujORuMHP+xBAgQIECBAgAABAgQIECBAgAABAgQIEGiFgABwK65JkQQIECBAgAABAgQIECBAgAABAgQIEGi3QJwA3O4OVE+AAIH2CcQQcPwlBNy+u1MxgTYLxH90QPi3zTeodgIE2iow7w0Hba1d3QQIECBAgAABAgQIECBAgAABAgQIECBwu4AA8O0uXiVAgAABAgQIECBAgAABAgQIECBAgACBLQqYALxFTFsRIEDgkQJCwI8E8zgBAhsLxAnk8c+ejTeyAQECBAgQIECAAAECBCoU6ISiX+FxjiJAgAABAgQIECBAgAABAvcKCADfS+QBAgQIECBAgAABAgQIECBAgAABAgQIENhUwATgTQWtJ0CAwGYCQsCb+VlNgMD9AqvJv3HquPDv/V6eIECAAAECBAgQIECgeQLLUE6bV5WKCBAgQIAAAQIECBAgQCBnAQHgnG9f7wQIECBAgAABAgQIECBAgAABAgQIECBAgAABAtkICAFnc9UaJVCLQHGwmDx/d/ZG+LcWfocSIEAgdGejMQYCBAgQIECAAAECBAgQIECAAAECBAgQSEtAADit+9QNAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAge8KCAF/l8YbBAisKRAn/8ZfyyJM1tzCMgIECBDYgsC8NxxsYRtbECBAgAABAgQIECBAgAABAgQIECBAgECDBASAG3QZSiFAgAABAgQIECBAgAABAgQIECBAgECqAmW4Pk21N30RIECgbQJfh4CLHz61rQX1EiDQEIGrJ+cncfJvebh4bfJvQy5FGQQIECBAgAABAgQIrC3QCUV/7cUWEiBAgAABAgQIECBAgACBHQgIAO8A1ZYECBAgQIAAAQIECBAgQIAAAQIECBAg8E+BIuwd//MV3xEgQIBAnQKrEPDiP85f/L//O38Rp3fW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hcBTC4WLSKcPLywsh4DvRvEkgEYGbU39//PJnQSKtaYMAAQIECBAgQIAAAQJ3CixDOb3zAW8SIECAAAECBAgQIECAAIGKBYqKz3McAQIECBAgQIAAAQIECBAgQIAAAQIECGQoIPyb4aVrmQCBJARiEDj+itOA4yTQP6eCJtGZJggQuE3gZvh39Q8B3Pac1wgQIECgeQLd2WjcvKpURIAAAQIECBAgQIAAAQIECBAgQIAAAQKbCJgAvImetQQIECBAgAABAgQIECBAgAABAgQIECDwIAETgB/E5CECBAg0ViAGAeM04M7BIpgE3NhrUhiBjQRW4d/n787ebLSRxQQIECBQi8C8Nxx0gh8FqwXfoQQIECBAgAABAgQIECBAgAABAgQIENiRgAnAO4K1LQECBAgQIECAAAECBAgQIECAAAECBAj8LWAC8N8WviJAgEBbBW5OAm5rD+omQOB2AeHf2128SoAAAQIECBAgQIBAXgKdUPTz6li3BAgQIECAAAECBAgQINB0AQHgpt+Q+ggQIECAAAECBAgQIECAAAECBAgQIJCAQJwAnEAbWiBAgED2AqsQ8NWT85MYGMweBACBBASEfxO4RC0QIECAAAECBAgQILAVgWUop1vZyCYECBAgQIAAAQIECBAgQGBLAgLAW4K0DQECBAgQIECAAAECBAgQIECAAAECBAh8X8AE4O/beIcAAQJtE1iFgIuDxUQIuG23p14C/xQQ/v2nh+8IECDQZoHubDRuc/1qJ0CAAAECBAgQIECAAAECBAgQIECAAIFvBQSAvzXxCgECBAgQIECAAAECBAgQIECAAAECBAhsWcAE4C2D2o4AAQI1C9wMAddciuMJEFhTYBX+XRZhsuYWlhEgQIBAgwTmveGgQeUohQABAgQIECBAgAABAgQIECBAgAABAgS2INDZwh62IECAAAECBAgQIECAAAECBAgQIECAAAECdwqYAHwnjzcJECDQSoEYAv4wOPpc+3koL569fLq//6KVjSiaQIYCq/Dv83dnbzJsX8sECBAgQIAAAQIECBC4VaATiv4yhLe3vulFAgQIECBAgAABAgQIECBQg4AAcA3ojiRAgAABAgQIECBAgAABAgQIECBAgEBuAnECsBBw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QIECBAgQIAAAQIECNQiUIS9YyHgWugdSoAAgUYI/BUCPgqXF3+VIwjciGtRRGICq6m/yyKY/JvY3WqHAAECBAgQIECAAIFqBJahnFZzklMIECBAgAABAgQIECBAgMDDBIqHPeYpAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIrC8QQ8Dl4eJ1cbCYxKDi+jtZSYDA1wLCv1+L+J4AAQL5CXRno3F+XeuYAAECBAgQIECAAAECBAgQIECAAAECaQuYAJz2/eqOAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQGME/jU+e/+5mPcfX5kG3JhLUUirBYofPoXL8/lJeRgmP/71/1er+1E8AQIECKwvMO8NB53gR8HWF7SSAAECBAgQIECAAAECBAgQIECAAAECzRMwAbh5d6IiAgQIECBAgAABAgQIECBAgAABAgQIJCdQhuvT5JrSEAECBAisLXBzGvDam1hIgEBY/Hb567IIky/heiIECBAgQIAAAQIECBAgsIFAJxT9DZZbSoAAAQIECBAgQIAAAQIEti4gALx1UhsSIECAAAECBAgQIECAAAECBAgQIECAwNcCRdg7/vo13xMgQIBA3gIxsBiDi5d//PFr3hK6J7CewNWT88+TfxevhX/X87OKAAECBAgQIECAAAECXwssQzn9+jXfEyBAgAABAgQIECBAgACBOgUEgOvUdzYBAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBjAVicLE4WAgBZ/wZ0Pp6AjE4b/LvenZWESBAIFWB7mw0TrU3fREgQIAAAQIECBAgQIAAAQIECBAgQCBXAQHgXG9e3wQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQaIPD83dmbOMU0TjNtQDlKINB4AZN/G39FCiRAgEAtAvPecFDLwQ4lQIAAAQIECBAgQIAAAQIECBAgQIAAgZ0JCADvjNbGBAgQIECAAAECBAgQIECAAAECBAgQILASKMP16eprvxMgQIAAga8F4iTgOM1UCPhrGd8T+KeAyb//9PAdAQIECBAgQIAAAQIEtinQCUV/m/vZiwABAgQIECBAgAABAgQIbCogALypoPUECBAgQIAAAQIECBAgQIAAA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/sv4u/+I9BWgVWovTwMk9XnvK29qJsAAQIECBAgQIAAAQJtFliGctrm+tVOgAABAgQIECBAgAABAukJmACc3p3qiAABAgQIECBAgAABAgQIECBAgAABAo0TEP5t3JUoiAABAq0WWBZhEqcBFweLSasbUXz2AjH8Gz/H8fMs/Jv9xwEAAQIENhLozkbjjTawmAABAgQIECBAgAABAgQIECBAgAABAgQaJ2ACcOOuREEECBAgQIAAAQIECBAgQIAAAQIECBBIT8AE4PTuVEcECBCoS+BmSPLzNODPZZyHOA3YJOC6bsS56wj8HfwNkx+/TLdeZx9rCBAgQIDASmDeGw46wY+CrTz8ToAAAQIECBAgQIAAAQIECBAgQIAAgRQETABO4Rb1QIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQCBDgRgGjtOATQLO8PJb3HIM/8aJv8/fnb1pcRtKJ0CAAAECBAgQIECAQHICnVD0k2tKQwQIECBAgAABAgQIECDQagEB4FZfn+IJECBAgAABAgQIECBAgAABAgQIECBAgAABAgQI5C2wCgFfPTk/icHKvDV033SB1eTf1STr1e9Nr1t9BAgQIECAAAECBAgQyEFgGcppDn3qkQABAgQIECBAgAABAgTaIyAA3J67UikBAgQIECBAgAABAgQIECBAgAABAgRaK1CG69PWFq9wAgQIEGi8wCoEbBJw468q+wLjZzROrc4eAgABAgQIbF2gOxuNt76pDQkQIECAAAECBAgQIECAAAECBAgQIECgVgEB4Fr5HU6AAAECBAgQIECAAAECBAgQIECAAIE8BIqwd5xHp7okQIAAgboEViFgk4DrugHn3iUQJ//Gz2YM/5r6e5eU9wgQIEBgXYF5bzhYd611BAgQIECAAAECBAgQIECAAAECBAgQINBMgU4zy1IVAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEHicQg5UfBkehc7AI4dP+i8et9jSB3QmUh4vXP37+fO7uBDsTIECAAAECBAgQIECAwKYCnVD0lyG83XQf6wkQIECAAAECBAgQIECAwLYEBIC3JWkfAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRqF1i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7u+/2NLWtslEoPjhU1j8dvlrDJIvizD58pnKpHttEiBAgAABAgQIECBAIE2BZSinaXamKwIECBAgQIAAAQIECBBoq4AAcFtvTt0ECBAgQIAAAQIECBAgQIAAAQIECBBokUAZrk9bVK5SCRAgQCATgRjc7BwswlVYTMqLZy8FgTO5+A3b/HPq7/nnz8xhmJSf9xL+3RDUcgIECBDYikB3Nhr//tMvP29lM5sQIECAAAECBAgQIECAAAECBAgQIECAQCMEBIAbcQ2KIECAAAECBAgQIECAAAECBAgQIECAQNoCRdg7FgJO+451R4AAgTYKrCYBfxgc/Y8YBDYNuI23WG3Nf4Z/Tf2tFt1pBAgQIPAggXlvOOgEPwr2ICwPESBAgAABAgQIECBAgAABAgQIECBAoCUC/ta3JRelTAIECBAgQIAAAQIECBAgQIAAAQIECLRZQPi3zbendgIECKQvsAoCf3x1JASc/nWv3WEM/5aHi9c/js/er72JhQQIECBAgAABAgQIECDQWIFOKPrLEN42tkCFESBAgAABAgQIECBAgEB2AkV2HWuYAAECBAgQIECAAAECBAgQIECAAAECBCoXiBOAKz/UgQQIECBA4JECyyJMis/TXWPQ85FLPZ64wGry75eweOLdao8AAQIECBAgQIAAAQJ5CixDOc2zc10TIECAAAECBAgQIECAQFMFBICbejPqIkCAAAECBAgQIECAAAECBAgQIECAQEICJgAndJlaIUCAQMICMdz5/N3ZGyHghC95jdZWk3/jZ2ON5ZYQIECAAIFKBLqz0biSgxxCgAABAgQIECBAgAABAgQIECBAgAABApUJCABXRu0gAgQIECBAgAABAgQIECBAgAABAgQI5CtgAnC+d69zAgQItFHAJOA23tpual6Ff03+3Y2vXQkQIEBgewLz3nCwvd3sRIAAAQIECBAgQIAAAQIECBAgQIAAAQJNEOg0oQg1ECBAgAABAgQIECBAgAABAgQIECBAgEDaAiYAp32/uiNAgEBqAl/Cnu8/vjoKlxchPN3ff5Faj/q5X0D4934jTxAgQIAAAQIECBAgQCAlgU4o+ssQ3qbUk14IECBAgAABAgQIECBAoN0CAsDtvj/VEyBAgAABAgQIECBAgAABAgQIECBAoBUCcQKwEHArrkqRBAgQIHBDIE4C7hws/gwBx5cFgW/gJP6l8G/iF6w9AgQIECBAgAABAgQI3CKwDOX0lpe9RIAAAQIECBAgQIAAAQIEahMoajvZwQQIECBAgAABAgQIECBAgAABAgQIECCQjYDwbzZXrVECBAgkJRAnAT9/d/amPFy8Lg4WkxgKTapBzfxDoPjhU4h3LPz7DxbfECBAgEBLBLqz0bglpSqTAAECBAgQIECAAAECBAgQIECAAAECBB4oIAD8QCiPESBAgAABAgQIECBAgAABAgQIECBAgMD6AnEC8PqrrSRAgAABAvULrILAQsD138WuKrg8n5/EsHf8FcPfuzrHvgQIECBAYBcC895wsIt97UmAAAECBAgQIECAAAECBAgQIECAAAEC9QkIANdn72QCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBFogsAqDxt9jOFQIuAWX9sgSr56cnyyLMIl3vLrvR27hcQIECBAgQIAAAQIECBBouUAnFP2Wt6B8AgQIECBAgAABAgQIEEhMQAA4sQvVDgECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECuxMQAt6dbV07x0D3KvxbVw3OJUCAAAECBAgQIECAAIH6BZahnNZfhQoIECBAgAABAgQIECBAgMDfAgLAf1v4igABAgQIECBAgAABAgQIECBAgAABAgR2JFCG69MdbW1bAgQIECBQi4BJwLWwb/XQGPyNk3/jXZr6u1VamxEgQIBADQLd2Whcw7GOJECAAAECBAgQIECAAAECBAgQIECAAIEdCnR2uLetCRAgQIAAAQIECBAgQIAAAQIECBAgQIDAnwJF2DsWAvZhIECAAIFUBFZh0Q+Do9eX/x3+6+n+/otUesupj+JgMXn+7uxNTj3rlQABAgTSFZj3hoNO8KNg6d6wzggQIECAAAECBAgQIECAAAECBAgQyFHABOAcb13PBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAhsLBCDwCYBb8xYywZx+u+yCJNaDncoAQIECBAgQIAAAQIECDRSoBOKfiMLUxQBAgQIECBAgAABAgQIZCvgn33M9uo1ToAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIDApgIxBPzx1dHk8uKvnZ799PRF+X+ebLqt9TsUuHpyflIehslqkvMOj7I1AQIECBAgQIAAAQIECLRIYBnKaYvKVSoBAgQIECBAgAABAgQIZCBgAnAGl6xFAgQIECBAgAABAgQIECBAgAABAgQI1C1QhuvTumtwPgECBAgQ2JXA83dnb+Ik4D+nAZ/PT3Z1jn03E4hTf2P4N07+Ff7dzNJqAgQIEGieQHc2GjevKhURIECAAAECBAgQIECAAAECBAgQIECAwCYCJgBvomctAQIECBAgQIAAAQIECBAgQIAAAQIECDxIoAh7x0LAD6LyEAECBAi0VGAVKP0wOPrcwXn4j0//edLSVpIrOwZ/Y1PFwWISw9rJNaghAgQIECDwWWDeGw46wY+C+TAQIECAAAECBAgQIECAAAECBAgQIEAgJQETgFO6Tb0QIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIFCrQAwCxwmzq9BprcU4/E+BGPyN05mFf30gCBAgQIAAAQIECBAgQOAugU4o+ne97z0CBAgQIECAAAECBAgQIFC1gABw1eLOI0CAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEAgaYEYAo6B06sn5yeCwPVddbSPdxAD2asJzfVV42QCBAgQIECAAAECBAgQaLrAMpTTpteoPgIECBAgQIAAAQIECBDIS0AAOK/71i0BAgQIECBAgAABAgQIECBAgAABAgRqESjD9WktBzuUAAECBAjUJBADp3HibJw+W1MJ2R8b7YV/s/8YACBAgEA2At3ZaJxNsxolQIAAAQIECBAgQIAAAQIECBAgQIBAJgICwJlctDYJECBAgAABAgQIECBAgAABAgQIECBQp0AR9o7rPN/ZBAgQIECgLoEYQDUFuFp9k3+r9XYaAQIECDRDYN4bDppRiSoIECBAgAABAgQIECBAgAABAgQIECBAYFsCAsDbkrQPAQIECBAgQIAAAQIECBAgQIAAAQIECHxXwATg79J4gwABAgQSF4iTgMvDxWsh4Oou2uTf6qydRIAAAQIECBAgQIAAgZQEOqHop9SPXggQIECAAAECBAgQIECg/QICwO2/Qx0QIECAAAECBAgQIECAAAECBAgQIECg8QImADf+ihRIgAABAjsUWIWAr56cn+zwmOy3Nvk3+48AAAIECBAgQIAAAQIECGwksAzldKMNLCZAgAABAgQIECBAgAABAlsWEADeMqjtCBAgQIAAAQIECBAgQIAAAQIECBAgQOBbAROAvzXxCgECBAjkJRBDwM/fnb2JIWDTgHdz9yb/7sbVrgQIECDQDoHubDRuR6WqJECAAAECBAgQIECAAAECBAgQIECAAIGHCnQe+qDnCBAgQIAAAQIECBAgQIAAAQIECBAgQIDAugJxArAQ8Lp61hEgQIBASgLLIkzC4WJyVS5elhfPXj7d33+RUn919BID1cK/dcg7kwABAgSaJDDvDQed4EfBmnQnaiFAgAABAgQIECBAgAABAgQIECBAgMCmAv7Wd1NB6wkQIECAAAECBAgQIECAAAECBAgQIEDgXgHh33uJPECAAAECmQjEScCx1Q+Do9A5WITLixCEgNe7/FXwtzgIIQarV7br7WYVAQIECBAgQIAAAQIECOQu0AlFfxnC29wd9E+AAAECBAgQIECAAAECzREQAG7OXaiEAAECBAgQIECAAAECBAgQIECAAAECyQqYAJzs1WqMAAECBNYUiGFVIeA18b4si1N/n787e7PZLlYTIECAAAECBAgQIECAAIG/BJahnLIgQIAAAQIECBAgQIAAAQJNEiiaVIxaCBAgQIAAAQIECBAgQIAAAQIECBAgQCBNAROA07xXXREgQIDAZgIxBBwn18Yga5xmu9lu+ayOVldPzk+iXT5d65QAAQIECNwt0J2Nxnc/4V0CBAgQIECAAAECBAgQIECAAAECBAgQaJuACcBtuzH1EiBAgAABAgQIECBAgAABAgQIECBAoIUCJgC38NKUTIAAAQKVCJgE/Hhmk38fb2YFAQIECKQvMO8NB53gR8HSv2kdEiBAgAABAgQIECBAgAABAgQIECCQk4AJwDndtl4JECBAgAABAgQIECBAgAABAgQIECBQk4AJwDXBO5YAAQIEWiFgEvDDrsnk34c5eYoAAQIECBAgQIAAAQIE1hPohKK/3kqrCBAgQIAAAQIECBAgQIDAbgT8s4+7cbUrAQIECBAgQIAAAQIECBAgQIAAAQIECNwQMAH4BoYvCRAgQIDALQImAd+CcuOlGP41+fcGiC8JECBAgAABAgQIECBAYOsCy1BOt76pDQkQIECAAAECBAgQIECAwAYCJgBvgGcpAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEtiWwmgRcHi5eXz05P4mh123t3eZ9VuHfZREmbe5D7QQIECBAYJcC3dlovMv97U2AAAECBAgQIECAAAECBAgQIECAAAEC1QuYAFy9uRMJECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBwq0AMAcc3PgyOQudgES4vQni6v//i1oczePFm+Hdlk0HbWiRAgAABAo8WmPeGg07wo2CPhrOAAAECBAgQIECAAAECBAgQIECAAAECDRbwt74NvhylESBAgAABAgQIECBAgAABAgQIECBAIBWBMlyfptKLPggQIECAQBUCX8Ku7z++OgrhU74B4OJgMXn+7uxNFebOIECAAAECBAgQIECAAIG8BTqh6C9DeJu3gu4JECBAgAABAgQIECBAoEkCAsBNug21ECBAgAABAgQIECBAgAABAgQIECBAIFGBIuwdCwEnernaIkCAAIGdCiyLMAnhPJQXz17mMgl4NfU3wv7V/06JbU6AAAECBAgQIECAAAECBP4UWIZyioIAAQIECBAgQIAAAQIECDRJQAC4SbehFgIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECNwQuDkJ+PIihNRDwDH8Wx4uXv84Pnt/g8GXBAgQIECAwD0C3dlo/PtPv/x8z2PeJkCAAAECBAgQIECAAAECBAgQIECAAIEWCQgAt+iylEqAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQJ4CcRJu52ARUg4Bryb/Cv/m+RnXNQECBAhsJjDvDQed4EfBNlO0mgABAgQIECBAgAABAgQIECBAgAABAs0SKJpVjmoIECBAgAABAgQIECBAgAABAgQIECBAIEWBMlyfptiXnggQIECAQFUCcRJwDAEXB8jujQUAAEAASURBVItJDMpWdW5V56zCv8/fnb2p6kznECBAgAABAgQIECBAgACBmwKdUPRvfu9rAgQIECBAgAABAgQIECBQt4B/9rHuG3A+AQIECBAgQIAAAQIECBAgQIAAAQIEMhAowt6xEHAGF61FAgQIENipQAwBfxgchdQmAV89OT8pD8Ok3KmezQkQIECAAAECBAgQIECAwN0Cy1BO737CuwQIECBAgAABAgQIECBAoFoBAeBqvZ1GgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBtQViCPjz4vcfXx2Fy4u/tnm6v/9i7Q1rXhgn/8bw75e+aq7G8QQIECBAoL0C3dlo/PtPv/zc3g5UToAAAQIECBAgQIAAAQIECBAgQIAAAQJfCwgAfy3iewIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECDRcYFmESThcTGKZl/8d/quNIeAY/i0OFpMf/wo1N1xceQQIECBAoNkC895w0Al+FKzZt6Q6AgQIECBAgAABAgQIECBAgAABAgQIPE7A3/o+zsvTBAgQIECAAAECBAgQIECAAAECBAgQILCGQBmuT9dYZgkBAgQIECDwHYGbE3M/TwOexGnAbQkBFz98CovfLv8M/z5/d/bmOy16mQABAgQIECBAgAABAgQIVCrQCUV/GcLbSg91GAECBAgQIECAAAECBAgQuEOguOM9bxEgQIAAAQIECBAgQIAAAQIECBAgQIAAga0IFGHveCsb2YQAAQIECBD4RiCGaMvDxes4UfebNxv4Qgz/xnqFfxt4OUoiQIAAAQIECBAgQIBAxgLLUE4zbl/rBAgQIECAAAECBAgQINBAAQHgBl6KkggQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIPAYgTgRuOkh4BhQvnpyfhLrvDnB+DF9epYAAQIECBC4XaA7G41vf8erBAgQIECAAAECBAgQIECAAAECBAgQINBWAQHgtt6cugkQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIHBDoMkh4Bj+XU39Ff69cWm+JECAAAECWxKY94aDLW1lGwIECBAgQIAAAQIECBAgQIAAAQIECBBoiIAAcEMuQhkECBAgQIAAAQIECBAgQIAAAQIECBBIWaAM16cp96c3AgQIECDQJIGmTQKOU3+Lg8VE8LdJnxK1ECBAgAABAgQIECBAgM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AAQIECBAgQIAAgcQFOqHoJ96i9ggQIECAAAECBAgQIECgZQICwC27MOUSIECAAAECBAgQIECAAAECBAgQIECgjQJxAnAb61YzAQIECBBIVSCGdGNoN07ujb/W7TOuvXpyfrIK/667j3UECBAgQIAAAQIECBAgQKBugWUop3XX4HwCBAgQIECAAAECBAgQIHBTQAD4poavCRAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgkInAahLwKgj82LZj+DeujfuY+vtYPc8TIECAAIHtCnRno/F2d7QbAQIECBAgQIAAAQIECBAgQIAAAQIECNQt0Km7AOcTIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQH0CcXpvOFxMrsrFy//49J8nD6kkTv0tD8OkfMjDniFAgAABAgR2LjDvDQed4EfBdg7tAAIECBAgQIAAAQIECBAgQIAAAQIECFQo4G99K8R2FAECBAgQIECAAAECBAgQIECAAAECBHIVKMP1aa6965sAAQIECDRZ4Obk3g+Do1Be/PEy1vt0f//FbXWvpv7G0PDNtbc96zUCBAgQIECAAAECBAgQINAmgU4o+ssQ3rapZrUSIECAAAECBAgQIECAQNoCRdrt6Y4AAQIECBAgQIAAAQIECBAgQIAAAQIEmiBQhL3jJtShBgIECBAgQOD7AjHQWx4uXhcHi8ltTwn/3qbiNQIECBAgQIAAAQIECBBIRWAZymkqveiDAAECBAgQIECAAAECBNIQEABO4x51QYAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgY0FYgg4Tve9enJ+EgO/ccP4e/w+hoNN/t2Y2AYECBAgQGAnAt3ZaLyTjW1KgAABAgQIECBAgAABAgQIECBAgAABArUJdGo72cEECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAg0DiBGAL+MDgKnYNFuLwIIU4EFvxt3DUpiAABAgQI/ENg3hsOOsGPgv0DxTcECBAgQIAAAQIECBAgQIAAAQIECBBouYAJwC2/QOUTIECAAAECBAgQIECAAAECBAgQIECgDQJluD5tQ51qJECAAAECBP4SWE0CNvXXJ4IAAQIECBAgQIAAAQIEchHohKKfS6/6JECAAAECBAgQIECAAIF2CPhnH9txT6okQIAAAQIECBAgQIAAAQIECBAgQIBAqwWKsHcsBNzqK1Q8AQIECGQoEEPAGbatZQIECBAgQIAAAQIECBDIVGAZymmmrWubAAECBAgQIECAAAECBBoqYAJwQy9GWQQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHiIQHc2Gj/kOc8QIECAAAECBAgQIECAAAECBAgQIECAQHsEBIDbc1cqJUCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAwDcC895w8M2LXiBAgAABAgQIECBAgAABAgQIECBAgACBVgsIALf6+hRPgAABAgQIECBAgAABAgQIECBAgACBdgiU4fq0HZWqkgABAgQIECBAgAABAgQIECBAgAABAgRyFOiEop9j33omQIAAAQIECBAgQIAAgeYKCAA3925URoAAAQIECBAgQIAAAQIECBAgQIAAgWQEirB3nEwzGiFAgAABAgQIECBAgAABAgQIECBAgACB5ASWoZwm15SGCBAgQIAAAQIECBAgQKDVAgLArb4+xRMgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgkLtAdzYa526gfwIECBAgQIAAAQIECBAgQIAAAQIECKQmIACc2o3qhwABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBrATmveEgq4Y1S4AAAQIECBAgQIAAAQIECBAgQIAAgQwEBIAzuGQtEiBAgAABAgQIECBAgAABAgQIECBAoG6BMlyf1l2D8wkQIECAAAECBAgQIECAAAECBAgQIECAwPcEOqHof+89rxMgQIAAAQIECBAgQIAAgToEBIDrUHcmAQIECBAgQIAAAQIECBAgQIAAAQIEMhMowt5xZi1rlwABAgQIECBAgAABAgQIECBAgAABAgRaJLAM5bRF5SqVAAECBAgQIECAAAECBDIQEADO4JK1SIAAAQIECBAgQIAAAQIECBAgQIAAgboFTACu+wacT4AAAQIECBAgQIAAAQIpC3Rno3HK/emNAAECBAgQIECAAAECBAgQIECAAAECOQoIAOd463omQIAAAQIECBAgQIAAAQIECBAgQIBAxQImAFcM7jgCBAgQIECAAAECBAgQyEpg3hsOsmpYswQIECBAgAABAgQIECBAgAABAgQIEMhAQAA4g0vWIgECBAgQIECAAAECBAgQIECAAAECBOoWMAG47htwPgECBAgQIECAAAECBAgQIECAAAECBAjcJdAJRf+u971HgAABAgQIECBAgAABAgSqFhAArlrceQQIECBAgAABAgQIECBAgAABAgQIEMhQwATgDC9dywQIECBAgAABAgQIECBAgAABAgQIEGiRwDKU0xaVq1QCBAgQIECAAAECBAgQyEBAADiDS9YiAQIECBAgQIAAAQIECBAgQIAAAQIE6hYwAbjuG3A+AQIECBAgQIAAAQIECKQs0J2Nxin3pzcCBAgQIECAAAECBAgQIECAAAECBAjkKCAAnOOt65kAAQIECBAgQIAAAQIECBAgQIAAAQIVC5gAXDG44wgQIECAAAECBAgQIEAgK4F5bzjIqmHNEiBAgAABAgQIECBAgAABAgQIECBAIAMBAeAMLlmLBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAh8X6ATiv733/UOAQIECBAgQIAAAQIECBCoXkAAuHpzJxIgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAg0CCBZSinDSpHKQQIECBAgAABAgQIECBAIAgA+xAQIECAAAECBAgQIECAAAECBAgQIECAwM4FynB9uvNDHECAAAECBAgQIECAAAECBDIV6M5G40xb1zYBAgQIECBAgAABAgQIECBAgAABAgSSFRAATvZqNUaAAAECBAgQIECAAAECBAgQIECAAIHmCBRh77g51aiEAAECBAgQIECAAAECBAikJTDvDQdpdaQbAgQIECBAgAABAgQIECBAgAABAgQIEBAA9hkgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQCBrgU4o+lkDaJ4AAQIECBAgQIAAAQIEGicgANy4K1EQAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQJVCixDOa3yPGcRIECAAAECBAgQIECAAIH7BASA7xPyPgECBAgQIECAAAECBAgQIECAAAECBAhsLFCG69ONN7EBAQIECBAgQIAAAQIECBAgcKtAdzYa3/qGFwkQIECAAAECBAgQIECAAAECBAgQIECgtQICwK29OoUTIECAAAECBAgQIECAAAECBAgQIECgPQJF2DtuT7UqJUCAAAECBAgQIECAAAEC7RKY94aDdlWsWgIECBAgQIAAAQIECBAgQIAAAQIECBC4T0AA+D4h7xMgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgkLRAJxT9pBvUHAECBAgQIECAAAECBAi0TkAAuHVXpmACBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBLYpsAzldJv72YsAAQIECBAgQIAAAQIECGwqIAC8qaD1BAgQIECAAAECBAgQIECAAAECBAgQIHCvQBmuT+99yAMECBAgQIAAAQIECBAgQIDAWgLd2Wi81kKLCBAgQIAAAQIECBAgQIAAAQIECBAgQKCxAgLAjb0ahREgQIAAAQIECBAgQIAAAQIECBAgQCAdgSLsHafTjU4IECBAgAABAgQIECBAgECzBOa94aBZFamGAAECBAgQIECAAAECBAgQIECAAAECBDYVEADeVNB6AgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRaLdAJRb/VDSieAAECBAgQIECAAAECBJITEABO7ko1RIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIDAYwSWoZw+5nnPEiBAgAABAgQIECBAgACBXQsIAO9a2P4ECBAgQIAAAQIECBAgQIAAAQIECBAgEMpwfYqBAAECBAgQIECAAAECBAgQ2I1AdzYa72ZnuxIgQIAAAQIECBAgQIAAAQIECBAgQIBAXQICwHXJO5cAAQIECBAgQIAAAQIECBAgQIAAAQIZCRRh7zijdrVKgAABAgQIECBAgAABAgQqFZj3hoNKD3QYAQIECBAgQIAAAQIECBAgQIAAAQIECOxcQAB458QOIECAAAECBAgQIECAAAECBAgQIECAAAETgH0GCBAgQIAAAQIECBAgQIAAAQIECBAgQKDJAp1Q9Jtcn9oIECBAgAABAgQIECBAID8BAeD87lzHBAgQIECAAAECBAgQIECAAAECBAgQqFzABODKyR1IgAABAgQIECBAgAABAgQIECBAgAABAo8QWIZy+ojHPUqAAAECBAgQIECAAAECBHYuIAC8c2IHECBAgAABAgQIECBAgAABAgQIECBAgIAJwD4DBAgQIECAAAECBAgQIEBgdwLd2Wi8u93tTIAAAQIECBAgQIAAAQIECBAgQIAAAQJ1CAgA16HuTAIECBAgQIAAAQIECBAgQIAAAQIECGQmYAJwZheuXQIECBAgQIAAAQIECBCoVGDeGw4qPdBhBAgQIECAAAECBAgQIECAAAECBAgQILBzAQHgnRM7gAABAgQIECBAgAABAgQIECBAgAABAgRMAPYZIECAAAECBAgQIECAAAECBAgQIECAAIEmC3RC0W9yfWojQIAAAQIECBAgQIAAgfwEBIDzu3MdEyBAgAABAgQIECBAgAABAgQIECBAoHIBE4ArJ3cgAQIECBAgQIAAAQIECBAgQIAAAQIECDxCYBnK6SMe9ygBAgQIECBAgAABAgQIENi5gADwzokdQIAAAQIECBAgQIAAAQIECBAgQIAAAQImAPsMECBAgAABAgQIECBAgACB3Ql0Z6Px7na3MwECBAgQIECAAAECBAgQIECAAAECBAjUISAAXIe6MwkQIECAAAECBAgQIECAAAECBAgQIJCZgAnAmV24dgkQIECAAAECBAgQIECgUoF5bzio9ECHESBAgAABAgQIECBAgAABAgQIECBAgMDOBQSAd07sAAIECBAgQIAAAQIECBAgQIAAAQIECBAwAdhngAABAgQIECBAgAABAgQIECBAgAABAgSaLNAJRb/J9amNAAECBAgQIECAAAECBPITEADO7851TIAAAQIECBAgQIAAAQIECBAgQIAAgcoFTACunNyBBAgQIECAAAECBAgQIECAAAECBAgQIPAIgWUop4943KMECBAgQIAAAQIECBAgQGDnAgLAOyd2AAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBHYn0J2Nxrvb3c4ECBAgQIAAAQIECBAgQIAAAQIECBAgUIeAAHAd6s4kQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIDAlgTmveFgS1vZhgABAgQIECBAgAABAgQIECBAgAABAgQaIiAA3JCLUAYBAgQIECBAgAABAgQIECBAgAABAgRSFijD9WnK/emNAAECBAgQIECAAAECBAgQIECAAAECBNot0AlFv90dqJ4AAQIECBAgQIAAAQIEUhMQAE7tRvVDgAABAgQIECBAgAABAgQIECBAgACBBgoUYe+4gWUpiQABAgQIECBAgAABAgQIECBAgAABAgQI/CmwDOUUBQECBAgQIECAAAECBAgQaJKAAHCTbkMtBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQeKRAdzYaP3KJxwkQIECAAAECBAgQIECAAAECBAgQIECg4QICwA2/IOURIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEDgLoF5bzi4633vESBAgAABAgQIECBAgAABAgQIECBAgED7BASA23dnKiZAgAABAgQIECBAgAABAgQIECBAgEDrBMpwfdq6ohVMgAABAgQIECBAgAABAgQIECBAgAABAtkIdELRz6ZZjRIgQIAAAQIECBAgQIBAKwQEgFtxTYokQIAAAQIECBAgQIAAAQIECBAgQIBAuwWKsHfc7g5UT4AAAQIECBAgQIAAAQIECBAgQIAAAQIpCyxDOU25P70RIECAAAECBAgQIECAQPsEBIDbd2cqJkCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAwL8FurPR+N/f+IIAAQIECBAgQIAAAQIECBAgQIAAAQIEkhAQAE7iGjVBgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgECuAvPecJBr7/omQIAAAQIECBAgQIAAAQIECBAgQIBAqgICwKnerL4IECBAgAABAgQIECBAgAABAgQIECDQIIEyXJ82qBylECBAgAABAgQIECBAgAABAgQIECBAgACBfwh0QtH/xwu+IUCAAAECBAgQIECAAAECNQsIANd8AY4nQIAAAQIECBAgQIAAAQIECBAgQIBADgJF2DvOoU89EiBAgAABAgQIECBAgAABAgQIECBAgEA7BZahnLazclUTIECAAAECBAgQIECAQKoCAsCp3qy+CBAgQIAAAQIECBAgQIAAAQIECBAg0CABE4AbdBlKIUCAAAECBAgQIECAAIHkBLqz0Ti5pjREgAABAgQIECBAgAABAgQIECBAgACBzAUEgDP/AGifAAECBAgQIECAAAECBAgQIECAAAECVQiYAFyFsjMIECBAgAABAgQIECBAIFeBeW84yLV3fRMgQIAAAQIECBAgQIAAAQIECBAgQCBVAQHgVG9WXwQIECBAgAABAgQIECBAgAABAgQIEGiQgAnADboMpRAgQIAAAQIECBAgQIAAAQIECBAgQIDANwKdUPS/edELBAgQIECAAAECBAgQIECgRgEB4BrxHU2AAAECBAgQIECAAAECBAgQIECAAIFcBEwAzuWm9UmAAAECBAgQIECAAAECBAgQIECAAIF2CixDOW1n5aomQIAAAQIECBAgQIAAgVQFBIBTvVl9ESBAgAABAgQIECBAgAABAgQIECBAoEECJgA36DKUQoAAAQIECBAgQIAAAQLJCXRno3FyTWmIAAECBAgQIECAAAECBAgQIECAAAECmQsIAGf+AdA+AQIECBAgQIAAAQIECBAgQIAAAQIEqhAwAbgKZWcQIECAAAECBAgQIECAQK4C895wkGvv+iZAgAABAgQIECBAgAABAgQIECBAgECqAgLAqd6svggQIECAAAECBAgQIECAAAECBAgQINAgAROAG3QZSiFAgAABAgQIECBAgAABAgQIECBAgACBbwQ6oeh/86IXCBAgQIAAAQIECBAgQIBAjQICwDXiO5oAAQIECBAgQIAAAQIECBAgQIAAAQK5CJgAnMtN65MAAQIECBAgQIAAAQIECBAgQIAAAQLtFFiGctrOylVNgAABAgQIECBAgAABAqkKCACnerP6IkCAAAECBAgQIECAAAECBAgQIECAQIMETABu0GUohQABAgQIECBAgAABAgSSE+jORuPkmtIQAQIECBAgQIAAAQIECBAgQIAAAQIEMhcQAM78A6B9AgQIECBAgAABAgQIECBAgAABAgQIVCFgAnAVys4gQIAAAQIECBAgQIAAgVwF5r3hINfe9U2AAAECBAgQIECAAAECBAgQIECAAIFUBQSAU71ZfREgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAg8CCBTij6D3rQQwQIECBAgAABAgQIECBAoCIBAeCKoB1DgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEAzBZahnDazMlURIECAAAECBAgQIECAQK4CAsC53ry+CRAgQIAAAQIECBAgQIAAAQIECBAgUKFAGa5PKzzOUQQIECBAgAABAgQIECBAICuB7mw0zqphzRIgQIAAAQIECBAgQIAAAQIECBAgQCADAQHgDC5ZiwQIECBAgAABAgQIECBAgAABAgQIEKhboAh7x3XX4HwCBAgQIECAAAECBAj8f/buHseR5FoDaDCR5gNEe0BnNsAVjEsgHe1Asmm8DYyhBWgDz6DdSxiHAN1eASF/ZBCys/1E8qlG6kZ1dzWLZP7Fz7FEMjMivntuAWMIt4MAgVwF2s2+ybU2dREgQIAAAQIECBAgQIAAAQIECBAgQKBUAQPApXZe3QQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQI/CFQh2qLggABAgQIECBAgAABAgQIxCRgADimbshCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgMDsAl3oz7Mf6kACBAgQIECAAAECBAgQIHBDwADwDRyPCBAgQIAAAQIECBAgQIAAAQIECBAgQGAcgT5cT+PsZBcCBAgQIECAAAECBAgQIEDgW4H15XD89jffCRAgQIAAAQIECBAgQIAAAQIECBAgQCBtAQPAafdPegIECBAgQIAAAQIECBAgQIAAAQIECCQhUIXVLomgQhIgQIAAAQIECBAgQIAAgQQF2s2+STC2yAQIECBAgAABAgQIECBAgAABAgQIECBwQ8AA8A0cjwgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQyF+gDtU2/ypVSIAAAQIECBAgQIAAAQIpCRgATqlbshIgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgMLpAF/rz6JvakAABAgQIECBAgAABAgQIDBAwADwAz1ICBAgQIECAAAECBAgQIECAAAECBAgQuE+gD9fTfW96iwABAgQIECBAgAABAgQIEHhUYH05HB9d430CBAgQIECAAAECBAgQIECAAAECBAgQiFvAAHDc/ZGOAAECBAgQIECAAAECBAgQIECAAAECWQhUYbXLohBFECBAgAABAgQIECBAgACBCAXazb6JMJZIBAgQIECAAAECBAgQIECAAAECBAgQIDBAwADwADxLCRAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBBIX6AO1Tb9KlRAgAABAgQIECBAgAABAjkJGADOqZtqIUCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEDgYYEu9OeHF1lAgAABAgQIECBAgAABAgQmFDAAPCGurQkQIECAAAECBAgQIECAAAECBAgQIEDgPwJ9uJ5YECBAgAABAgQIECBAgAABAtMIrC+H4zQ725UAAQIECBAgQIAAAQIECBAgQIAAAQIElhIwALyUvHMJECBAgAABAgQIECBAgAABAgQIECBQkEAVVruCylUqAQIECBAgQIAAAQIECBCYVaDd7JtZD3QYAQIECBAgQIAAAQIECBAgQIAAAQIECEwuYAB4cmIHECBAgAABAgQIECBAgAABAgQIECBAgIAbgP0NECBAgAABAgQIECBAgAABAgQIECBAgEDMAnWotjHnk40AAQIECBAgQIAAAQIEyhMwAFxez1VMgAABAgQIECBAgAABAgQIECBAgACB2QXcADw7uQMJECBAgAABAgQIECBAgAABAgQIECBA4AGBLvTnB173KgECBAgQIECAAAECBAgQmFzAAPDkxA4gQIAAAQIECBAgQIAAAQIECBAgQIAAATcA+xsgQIAAAQIECBAgQIAAAQLTCawvh+N0u9uZAAECBAgQIECAAAECBAgQIECAAAECBJYQMAC8hLozCRAgQIAAAQIECBAgQIAAAQIECBAgUJiAG4ALa7hyCRAgQIAAAQIECBAgQGBWgXazb2Y90GEECBAgQIAAAQIECBAgQIAAAQIECBAgMLmAAeDJiR1AgAABAgQIECBAgAABAgQIECBAgAABAm4A9jdAgAABAgQIECBAgAABAgQIECBAgAABAjEL1KHaxpxPNgIECBAgQIAAAQIECBAoT8AAcHk9VzEBAgQIECBAgAABAgQIECBAgAABAgRmF3AD8OzkDiRAgAABAgQIECBAgAABAgQIECBAgACBBwS60J8feN2rBAgQIECAAAECBAgQIEBgcgEDwJMTO4AAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQLTCawvh+N0u9uZAAECBAgQIECAAAECBAgQIECAAAECBJYQMAC8hLozCRAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgMJJAu9k3I21lGwIECBAgQIAAAQIECBAgQIAAAQIECBCIRMAAcCSNEIMAAQIECBAgQIAAAQIECBAgQIAAAQI5C/Thesq5PrURIECAAAECBAgQIECAAAECBAgQIECAQNoCdai2aVcgPQECBAgQIECAAAECBAjkJmAAOLeOqocAAQIECBAgQIAAAQIECBAgQIAAAQIRClRhtYswlkgECBAgQIAAAQIECBAgQIAAAQIECBAgQOAPgS70ZxQECBAgQIAAAQIECBAgQCAmAQPAMXVDFgIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECDwosL4cjg8u8ToBAgQIECBAgAABAgQIECBAgAABAgQIRC5gADjyBolHgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBWwLtZt/ceu4ZAQIECBAgQIAAAQIECBAgQIAAAQIECKQnYAA4vZ5JTIAAAQIECBAgQIAAAQIECBAgQIAAgeQE+nA9JRdaYAIECBAgQIAAAQIECBAgQIAAAQIECBAoRqAO1baYYhVKgAABAgQIECBAgAABAkkIGABOok1CEiBAgAABAgQIECBAgAABAgQIECBAIG2BKqx2aVcgPQECBAgQIECAAAECBAgQIECAAAECBAjkLNCF/pxzfWojQIAAAQIECBA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BAgAABAgQIECBAgACBWQTcADwLs0MIECBAgAABAgQIECBAgAABAgQIECBA4EmBOlTbJ5daRoAAAQIECBAgQIAAAQIEJhEwADwJq00JECBAgAABAgQIECBAgAABAgQIECBA4LWAG4Bfa/hMgAABAgQIECBAgAABAgQIECBAgAABArEJdKE/x5ZJHgIECBAgQIAAAQIECBAoW8AAcNn9Vz0BAgQIECBAgAABAgQIECBAgAABAgRmEXAD8CzMDiFAgAABAgQIECBAgACBQgXWl8Ox0NKVTYAAAQIECBAgQIAAAQIECBAgQIAAgWwFDABn21qFESBAgAABAgQIECBAgAABAgQIECBAIB4BNwDH0wtJCBAgQIAAAQIECBAgQCA/gXazb/KrSkUECBAgQIAAAQIECBAgQIAAAQIECBAoW8AAcNn9Vz0BAgQIECBAgAABAgQIECBAgAABAgRmEXAD8CzMDiFAgAABAgQIECBAgAABAgQIECBAgACBJwXqUG2fXGoZAQIECBAgQIAAAQIECBCYRMAA8CSsNiVAgAABAgQIECBAgAABAgQIECBAgACB1wJuAH6t4TMBAgQIECBAgAABAgQIECBAgAABAgQIxCbQhf4cWyZ5CBAgQIAAAQIECBAgQKBsAQPAZfdf9QQIECBAgAABAgQIECBAgAABAgQIEJhFwA3AszA7hAABAgQIECBAgAABAgQKFVhfDsdCS1c2AQIECBAgQIAAAQIECBAgQIAAAQIEshUwAJxtaxVGgAABAgQIECBAgAABAgQIECBAgACBeATcABxPLyQhQIAAAQIECBAgQIAAgfwE2s2+ya8qFREgQIAAAQIECBAgQIAAAQIECBAgQKBsAQPAZfdf9QQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgSKF6hDtS0eAQABAgQIECBAgAABAgQIRCVgADiqdghDgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgMDcAl3oz3Of6TwCBAgQIECAAAECBAgQIHBLwADwLR3PCBAgQIAAAQIECBAgQIAAAQIECBAgQGAUgT5cT6NsZBMCBAgQIECAAAECBAgQIEDgO4H15XD87kc/ECBAgAABAgQIECBAgAABAgQIECBAgEDSAgaAk26f8AQIECBAgAABAgQIECBAgAABAgQIEEhDoAqrXRpJpSRAgAABAgQIECBAgAABAukJtJt9k15qiQkQIECAAAECBAgQIECAAAECBAgQIEDgloAB4Fs6nhEgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgkL1AHapt9kUqkAABAgQIECBAgAABAgSSEjAAnFS7hCVAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYGyBLvTnsfe0HwECBAgQIECAAAECBAgQGCJgAHiInrUECBAgQIAAAQIECBAgQIAAAQIECBAgcJdAH66nu170EgECBAgQIECAAAECBAgQIPCwwPpyOD68yAICBAgQIECAAAECBAgQIECAAAECBAgQiFrAAHDU7RGOAAECBAgQIECAAAECBAgQIECAAAECeQhUYbXLoxJVECBAgAABAgQIECBAgACB+ATazb6JL5VEBAgQIECAAAECBAgQIECAAAECBAgQIDBEwADwED1rCRAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBBIXqAO1Tb5IhRAgAABAgQIECBAgAABAlkJGADOqp2KIUCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEDgUYEu9OdH13ifAAECBAgQIECAAAECBAhMKWAAeEpdexMgQIAAAQIECBAgQIAAAQIECBAgQIDAHwJ9uJ5QECBAgAABAgQIECBAgAABAtMIrC+H4zQ725UAAQIECBAgQIAAAQIECBAgQIAAAQIElhIwALyUvHMJECBAgAABAgQIECBAgAABAgQIECBQkEAVVruCylUqAQIECBAgQIAAAQIECBCYVaDd7JtZD3QYAQIECBAgQIAAAQIECBAgQIAAAQIECEwuYAB4cmIHECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECAQs0Adqm3M+WQjQIAAAQIECBAgQIAAgfIEDACX13MVEyBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECDwSqAL/fnVVx8JECBAgAABAgQIECBAgMDiAgaAF2+BAAQIECBAgAABAgQIECBAgAABAgQIEMhfoA/XU/5VqpAAAQIECBAgQIAAAQIECCwjsL4cjsuc7FQCBAgQIECAAAECBAgQIECAAAECBAgQmErAAPBUsvYlQIAAAQIECBAgQIAAAQIECBAgQIAAgS8CVVjtvnzxgQABAgQIECBAgAABAgQIEBhVoN3sm1E3tBkBAgQIECBAgAABAgQIECBAgAABAgQILC5gAHjxFghAgAABAgQIECBAgAABAgQIECBAgACB/AXcAJx/j1VIgAABAgQIECBAgAABAgQIECBAgACBlAXqUG1Tzi87AQIECBAgQIAAAQIECOQnYAA4v56qiAABAgQIECBAgAABAgQIECBAgAABAtEJuAE4upYIRIAAAQIECBAgQIAAAQIECBAgQIAAAQKvBLrQn1999ZEAAQIECBAgQIAAAQIECCwuYAB48RYIQIAAAQIECBAgQIAAAQIECBAgQIAAgfwF3ACcf49VSIAAAQIECBAgQIAAAQLLCawvh+NypzuZAAECBAgQIECAAAECBAgQIECAAAECBKYQMAA8hao9CRAgQIAAAQIECBAgQIAAAQIECBAgQOArATcAf8XhCwECBAgQIECAAAECBAgQGFWg3eybUTe0GQECBAgQIECAAAECBAgQIECAAAECBAgsLmAAePEWCECAAAECBAgQIECAAAECBAgQIECAAIH8BdwAnH+PVUiAAAECBAgQIECAAAECBAgQIECAAIGUBepQbVPOLzsBAgQIECBAgAABAgQI5CdgADi/nqqIAAECBAgQIECAAAECBAgQIECAAAEC0Qm4ATi6lghEgAABAgQIECBAgAABAgQIECBAgAABAq8EutCfX331kQABAgQIECBAgAABAgQILC5gAHjxFghAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACB5wXWl8Px+dVWEiBAgAABAgQIECBAgAABAgQIECBAgECMAgaAY+yKTAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIELhToN3smztf9RoBAgQIECBAgAABAgQIECBAgAABAgQIJCJgADiRRolJgAABAgQIECBAgAABAgQIECBAgACBlAX6cD2lnF92AgQIECBAgAABAgQIECBAgAABAgQIEMhboA7VNu8KVUeAAAECBAgQIECAAAECqQkYAE6tY/ISIECAAAECBAgQIECAAAECBAgQIEAgQYEqrHYJxhaZAAECBAgQIECAAAECBAgQIECAAAECBAoR6EJ/LqRUZRIgQIAAAQIECBAgQIBAIgIGgBNplJgECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBB4S2B9ORzf+t1vBAgQIECAAAECBAgQIECAAAECBAgQIJCugAHgdHsnOQECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBEK72TcYCBAgQIAAAQIECBAgQIAAAQIECBAgQCAvAQPAefVTNQQIECBAgAABAgQIECBAgAABAgQIEIhSoA/XU5TBhCJAgAABAgQIECBAgAABAgQIECBAgAABAv8WqEO1BUGAAAECBAgQIECAAAECBGISMAAcUzdkIUCAAAECBAgQIECAAAECBAgQIECAQKYCVVjtMi1NWQQIECBAgAABAgQIECBAgAABAgQIECCQgUAX+nMGZSiBAAECBAgQIECAAAECBDISMACcUTOVQoAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIBAeQLry+FYXtUqJkCAAAECBAgQIECAAAECBAgQIECAQN4CBoDz7q/qCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBDIXKDd7JvMS1QeAQIECBAgQIAAAQIECBAgQIAAAQIEihMwAFxcyxVMgAABAgQIECBAgAABAgQIECBAgACB+QX6cD3Nf6oTCRAgQIAAAQIECBAgQIAAAQIECBAgQIDAfQJ1qLb3vektAgQIECBAgAABAgQIECAwj4AB4HmcnUKAAAECBAgQIECAAAECBAgQIECAAIGiBaqw2hUNoHgCBAgQIECAAAECBAgQIECAAAECBAgQiFqgC/056oDCESBAgAABAgQIECBAgEBxAgaAi2u5ggkQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQyElgfTkcc6pHLQQIECBAgAABAgQIECBAgAABAgQIECAQggFgfwUECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBBIWKDd7JuE44tOgAABAgQIECBAgAABAgQIECBAgAABAm8IGAB+A8VPBAgQIECAAAECBAgQIECAAAECBAgQIDCuQB+up3F3tBsBAgQIECBAgAABAgQIECBAgAABAgQIEBhPoA7Vdrzd7ESAAAECBAgQIECAAAECBIYLGAAebmgHAgQIECBAgAABAgQIECBAgAABAgQIEHhHoAqr3TuveEyAAAECBAgQIECAAAECBAgQIECAAAECBBYT6EJ/XuxwBxMgQIAAAQIECBAgQIAAgTcEDAC/geInAgQIECBAgAABAgQIECBAgAABAgQIEBhXwA3A43rajQABAgQIECBAgAABAgQIvBZYXw7H1999JkCAAAECBAgQIECAAAECBAgQIECAAIH0BQwAp99DFRAgQIAAAQIECBAgQIAAAQIECBAgQCB6ATcAR98iAQkQIECAAAECBAgQIEAgYYF2s28Sji86AQIECBAgQIAAAQIECBAgQIAAAQIECLwhYAD4DRQ/ESBAgAABAgQIECBAgAABAgQIECBAgMC4Am4AHtfTbgQIECBAgAABAgQIECBAgAABAgQIECAwrkAdqu24O9qNAAECBAgQIECAAAECBAgMEzAAPMzPagIECBAgQIAAAQIECBAgQIAAAQIECBC4Q8ANwHcgeYUAAQIECBAgQIAAAQIECBAgQIAAAQIEFhPoQn9e7HAHEyBAgAABAgQIECBAgACBNwQMAL+B4icCBAgQIECAAAECBAgQIECAAAECBAgQGFfADcDjetqNAAECBAgQIECAAAECBAi8FlhfDsfX330mQIAAAQIECBAgQIAAAQIECBAgQIAAgfQFDACn30MVECBAgAABAgQIECBAgAABAgQIECBAIHoBNwBH3yIBCRAgQIAAAQIECBAgQCBhgXazbxKOLzoBAgQIECBAgAABAgQIECBAgAABAgQIvCFgAPgNFD8RIECAAAECBAgQIECAAAECBAgQIECAwLgCbgAe19NuBAgQIECAAAECBAgQIECAAAECBAgQIDCuQB2q7bg72o0AAQIECBAgQIAAAQIECAwTMAA8zM9qAgQIECBAgAABAgQIECBAgAABAgQIELhDwA3AdyB5hQABAgQIECBAgAABAgQIECBAgAABAgQWE+hCf17scAcTIECAAAECBAgQIECAAIE3BAwAv4HiJwIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECKQisL4cjqlklZMAAQIECBAgQIAAAQIECBAgQIAAAQIE7hMwAHyfk7cIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECAQpUC72TdRBhOKAAECBAgQIECAAAECBAgQIECAAAECBJ4WMAD8NJ2FBAgQIECAAAECBAgQIECAAAECBAgQIHCvQB+up3vf9R4BAgQIECBAgAABAgQIECBAgAABAgQIEJhboA7Vdu4znUeAAAECBAgQIECAAAECBG4JGAC+peMZAQIECBAgQIAAAQIECBAgQIAAAQIECIwiUIXVbpSNbEKAAAECBAgQIECAAAECBAgQIECAAAECBCYQ6EJ/nmBbWxIgQIAAAQIECBAgQIAAgacFDAA/TWchAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIElhdYXw7H5VNIQIAAAQIECBAgQIAAAQIECBAgQIAAAQJjChgAHlPTXgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEJhZoN3sm5mPdBwBAgQIECBAgAABAgQIECBAgAABAgQITCxgAHhiYNsTIECAAAECBAgQIECAAAECBAgQIECAQAh9uJ44ECBAgAABAgQIECBAgAABAgQIECBAgACBWAXqUG1jzSYXAQIECBAgQIAAAQIECJQpYAC4zL6rmgABAgQIECBAgAABAgQIECBAgAABArMKVGG1m/VAhxEgQIAAAQIECBAgQIAAAQIECBAgQIAAgQcEutCfH3jdqwQIECBAgAABAgQIECBAYHIBA8CTEzuAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEC0wmsL4fjdLvbmQABAgQIECBAgAABAgQIECBAgAABAgSWEDAAvIS6MwlxewgUAABAAElEQVQQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIDCSQLvZNyNtZRsCBAgQIECAAAECBAgQIECAAAECBAgQiETAAHAkjRCDAAECBAgQIECAAAECBAgQIECAAAECOQv04XrKuT61ESBAgAABAgQIECBAgAABAgQIECBAgEDaAnWotmlXID0BAgQIECBAgAABAgQI5CZgADi3jqqHAAECBAgQIECAAAECBAgQIECAAAECEQpUYbWLMJZIBAgQIECAAAECBAgQIECAAAECBAgQIEDgD4Eu9GcUBAgQIECAAAECBAgQIEAgJgEDwDF1QxYCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAg8KLC+HI4PLvE6AQIECBAgQIAAAQIECBAgQIAAAQIECEQuYAA48gaJR4AAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgVsC7Wbf3HruGQECBAgQIECAAAECBAgQIECAAAECBAikJ2AAOL2eSUyAAAECBAgQIECAAAECBAgQIECAAIHkBPpwPSUXWmACBAgQIECAAAECBAgQIECAAAECBAgQKEagDtW2mGIVSoAAAQIECBAgQIAAAQJJCBgATqJNQhIgQIAAAQIECBAgQIAAAQIECBAgQCBtgSqsdmlXID0BAgQIECBAgAABAgQIECBAgAABAgQI5CzQhf6cc31qI0CAAAECBAgQIECAAIH0BAwAp9cziQkQIECAAAECBAgQIECAAAECBAgQIJCcgBuAk2uZwAQIECBAgAABAgQIECCQkMD6cjgmFFdUAgQIECBAgAABAgQIECBAgAABAgQIELhDwADwHUheIUCAAAECBAgQIECAAAECBAgQIECAAIFhAm4AHuZnNQECBAgQIECAAAECBAgQuCXQbvbNreeeESBAgAABAgQIECBAgAABAgQIECBAgEB6AgaA0+uZxAQIECBAgAABAgQIECBAgAABAgQIEEhOwA3AybVMYAIECBAgQIAAAQIECBAgQIAAAQIECBQlUIdqW1TBiiVAgAABAgQIECBAgACB6AUMAEffIgEJECBAgAABAgQIECBAgAABAgQIECCQvoAbgNPvoQoIECBAgAABAgQIECBAgAABAgQIECCQs0AX+nPO9amNAAECBAgQIECAAAECBNITMACcXs8kJkCAAAECBAgQIECAAAECBAgQIECAQHICbgBOrmUCEyBAgAABAgQIECBAgEBCAuvL4ZhQXFEJECBAgAABAgQIECBAgAABAgQIECBA4A4BA8B3IHmFAAECBAgQIECAAAECBAgQIECAAAECBIYJuAF4mJ/VBAgQIECAAAECBAgQIEDglkC72Te3nntGgAABAgQIECBAgAABAgQIECBAgAABAukJGABOr2cSEyBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECAwokAdqu2I29mKAAECBAgQIECAAAECBAgMFjAAPJjQBgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIpCzQhf6ccn7ZCRAgQIAAAQIECBAgQCA/AQPA+fVURQQIECBAgAABAgQIECBAgAABAgQIEIhOoA/XU3ShBCJAgAABAgQIECBAgAABApkIrC+HYyalKIMAAQIECBAgQIAAAQIECBAgQIAAAQIE/itgANifAgECBAgQIECAAAECBAgQIECAAAECBAhMLlCF1W7yQxxAgAABAgQIECBAgAABAgQKFWg3+6bQ0pVNgAABAgQIECBAgAABAgQIECBAgACBbAUMAGfbWoURIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIHCPQB2q7T3veYcAAQIECBAgQIAAAQIECMwlYAB4LmnnECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECAQpUAX+nOUwYQiQIAAAQIECBAgQIAAgWIFDAAX23qFEyBAgAABAgQIECBAgAABAgQIECBAYD6BPlxP853mJAIECBAgQIAAAQIECBAgUJbA+nI4llWxagkQIECAAAECBAgQIECAAAECBAgQIJC/gAHg/HusQgIECBAgQIAAAQIECBAgQIAAAQIECCwuUIXVbvEQAhAgQIAAAQIECBAgQIAAgUwF2s2+ybQ0ZREgQIAAAQIECBAgQIAAAQIECBAgQKBYAQPAxbZe4QQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIvAjUodqSIECAAAECBAgQIECAAAECMQkYAI6pG7IQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIDC7QBf68+yHOpAAAQIECBAgQIAAAQIECNwQMAB8A8cjAgQIECBAgAABAgQIECBAgAABAgQIEBhHoA/X0zg72YUAAQIECBAgQIAAAQIECBD4VmB9ORy//c13AgQIECBAgAABAgQIECBAgAABAgQIEEhbwABw2v2TngABAgQIECBAgAABAgQIECBAgAABAkkIVGG1SyKokAQIECBAgAABAgQIECBAIEGBdrNvEowtMgECBAgQIECAAAECBAgQIECAAAECBAjcEDAAfAPHIwIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIE8heoQ7XNv0oVEiBAgAABAgQIECBAgEBKAgaAU+qWrAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIjC7Qhf48+qY2JECAAAECBAgQIECAAAECAwQMAA/As5QAAQIECBAgQIAAAQIECBAgQIAAAQIE7hPow/V035veIkCAAAECBAgQIECAAAECBB4VWF8Ox0fXeJ8AAQIECBAgQIAAAQIECBAgQIAAAQIE4hYwABx3f6QjQIAAAQIECBAgQIAAAQIECBAgQIBAFgJVWO2yKEQRBAgQIECAAAECBAgQIEAgQoF2s28ijCUSAQIECBAgQIAAAQIECBAgQIAAAQIECAwQMAA8AM9SAgQIECBAgAABAgQIECBAgAABAgQIELhPwA3A9zl5iwABAgQIECBAgAABAgQIECBAgAABAgSWEahDtV3mZKcSIECAAAECBAgQIECAAIG3BQwAv+3iVwIECBAgQIAAAQIECBAgQIAAAQIECBAYUcANwCNi2ooAAQIECBAgQIAAAQIECBAgQIAAAQIERhfoQn8efVMbEiBAgAABAgQIECBAgACBAQIGgAfgWUqAAAECBAgQIECAAAECBAgQIECAAAEC9wm4Afg+J28RIECAAAECBAgQIECAAIFnBNaXw/GZddYQIECAAAECBAgQIECAAAECBAgQIECAQLwCBoDj7Y1kBAgQIECAAAECBAgQIECAAAECBAgQyEbADcDZtFIhBAgQIECAAAECBAgQIBChQLvZNxHGEokAAQIECBAgQIAAAQIECBAgQIAAAQIEBggYAB6AZykBAgQIECBAgAABAgQIECBAgAABAgQI3CfgBuD7nLxFgAABAgQIECBAgAABAgQIECBAgAABAssI1KHaLnOyUwkQIECAAAECBAgQIECAwNsCBoDfdvErAQIECBAgQIAAAQIECBAgQIAAAQIECIwo4AbgETFtRYAAAQIECBAgQIAAAQIECBAgQIAAAQKjC3ShP4++qQ0JECBAgAABAgQIECBAgMAAAQPAA/AsJUCAAAECBAgQIECAAAECBAgQIECAAIH7BNwAfJ+TtwgQIECAAAECBAgQIECAwDMC68vh+Mw6awgQIECAAAECBAgQIECAAAECBAgQIEAgXgEDwPH2RjICBAgQIECAAAECBAgQIECAAAECBAhkI+AG4GxaqRACBAgQIECAAAECBAgQiFCg3eybCGOJRIAAAQIECBAgQIAAAQIECBAgQIAAAQIDBAwAD8CzlAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACB9AXqUG3Tr0IFBAgQIECAAAECBAgQIJCTgAHgnLqpFgIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEHhboQn9+eJEFBAgQIECAAAECBAgQIEBgQgEDwBPi2poAAQIECBAgQIAAAQIECBAgQIAAAQIE/iPQh+uJBQECBAgQIECAAAECBAgQIDCNwPpyOE6zs10JECBAgAABAgQIECBAgAABAgQIECBAYCkBA8BLyTuXAAECBAgQIECAAAECBAgQIECAAAECBQlUYbUrqFylEiBAgAABAgQIECBAgACBWQXazb6Z9UCHESBAgAABAgQIECBAgAABAgQIECBAgMDkAgaAJyd2AAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECMQvUodrGnE82AgQIECBAgAABAgQIEChPwABweT1XMQECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECrwS60J9fffWRAAECBAgQIECAAAECBAgsLmAAePEWCECAAAECBAgQIECAAAECBAgQIECAAIH8BfpwPeVfpQoJECBAgAABAgQIECBAgMAyAuvL4bjMyU4lQIAAAQIECBAgQIAAAQIECBAgQIAAgakEDABPJWtfAgQIECBAgAABAgQIECBAgAABAgQIEPgiUIXV7ssXHwgQIECAAAECBAgQIECAAIFRBdrNvhl1Q5sRIECAAAECBAgQIECAAAECBAgQIECAwOICBoAXb4EABAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgsKVCHarvk+c4mQIAAAQIECBAgQIAAAQLfChgA/lbEdwIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEihLoQn8uqmDFEiBAgAABAgQIECBAgED0AgaAo2+RgAQIECBAgAABAgQIECBAgAABAgQIEEhfoA/XU/pVqIAAAQIECBAgQIAAAQIECMQpsL4cjnEmk4oAAQIECBAgQIAAAQIECBAgQIAAAQIEnhUwAPysnHUECBAgQIAAAQIECBAgQIAAAQIECBAgcLdAFVa7u1/2IgECBAgQIECAAAECBAgQIPCQQLvZNw8t8DIBAgQIECBAgAABAgQIECBAgAABAgQIRC9gADj6FglIgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgMCUAnWotlPub28CBAgQIECAAAECBAgQIPCogAHgR8W8T4AAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIBAVgJd6M9ZFaQYAgQIECBAgAABAgQIEEhewABw8i1UAAECBAgQIECAAAECBAgQIECAAAECBOIX6MP1FH9KCQkQIECAAAECBAgQIECAQJoC68vhmGZyqQkQIECAAAECBAgQIECAAAECBAgQIEDgRwIGgH8k43cCBAgQIECAAAECBAgQIECAAAECBAgQGE2gCqvdaJvZiAABAgQIECBAgAABAgQIEPhKoN3sm69+8IUAAQIECBAgQIAAAQIECBAgQIAAAQIEkhcwAJx8CxVAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgMAQgTpU2yHrrSVAgAABAgQIECBAgAABAmMLGAAeW9R+BAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgkJdCF/pxUYGEJECBAgAABAgQIECBAIHsBA8DZt1iBBAgQIECAAAECBAgQIECAAAECBAgQWF6gD9fT8ikkIECAAAECBAgQIECAAAECeQqsL4djnpWpigABAgQIECBAgAABAgQIECBAgAABAuUKGAAut/cqJ0CAAAECBAgQIECAAAECBAgQIECAwGwCVVjtZjvMQQQIECBAgAABAgQIECBAoDCBdrNvCitZuQQIECBAgAABAgQIECBAgAABAgQIEMhewABw9i1WIAECBAgQIECAAAECBAgQIECAAAECBJYXcAPw8j2QgAABAgQIECBAgAABAgQIECBAgAABAgR+LFCHavvjp54QIECAAAECBAgQIECAAIH5BQwAz2/uRAIECBAgQIAAAQIECBAgQIAAAQIECBQn4Abg4lquYAIECBAgQIAAAQIECBAgQIAAAQIECCQl0IX+nFRgYQkQIECAAAECBAgQIEAgewEDwNm3WIEECBAgQIAAAQIECBAgQIAAAQIECBBYXsANwMv3QAICBAgQIECAAAECBAgQyFdgfTkc861OZQQIECBAgAABAgQIECBAgAABAgQIEChTwABwmX1XNQECBAgQIECAAAECBAgQIECAAAECBGYVcAPwrNwOI0CAAAECBAgQIECAAIHCBNrNvimsZOUSIECAAAECBAgQIECAAAECBAgQIEAgewEDwNm3WIEECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECNwSqEO1vfXcMwIECBAgQIAAAQIECBAgMLeAAeC5xZ1HgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEBUAl3oz1EFEoYAAQIECBAgQIAAAQIEihcwAFz8nwAAAgQIECBAgAABAgQIECBAgAABAgQITC/Qh+tp+lOcQIAAAQIECBAgQIAAAQIEyhRYXw7HMitXNQECBAgQIECAAAECBAgQIECAAAECBPIVMACcb29VRoAAAQIECBAgQIAAAQIECBAgQIAAgWgEqrDaRRNGEAIECBAgQIAAAQIECBAgkJlAu9k3mZWkHAIECBAgQIAAAQIECBAgQIAAAQIECBQvYAC4+D8BAAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgTKFqhDtS1bQPUECBAgQIAAAQIECBAgEJuAAeDYOiIPAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQKzCnShP896oMMIECBAgAABAgQIECBAgMA7AgaA3wHymAABAgQIECBAgAABAgQIECBAgAABAgSGC/Thehq+ix0IECBAgAABAgQIECBAgACBtwTWl8Pxrd/9RoAAAQIECBAgQIAAAQIECBAgQIAAAQLpChgATrd3khMgQIAAAQIECBAgQIAAAQIECBAgQCAZgSqsdsmEFZQAAQIECBAgQIAAAQIECCQm0G72TWKRxSVAgAABAgQIECBAgAABAgQIECBAgACBdwQMAL8D5DEBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAnkL1KHa5l2h6ggQIECAAAECBAgQIEAgNQEDwKl1TF4CBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBEYV6EJ/HnVDmxEgQIAAAQIECBAgQIAAgYECBoAHAlpOgAABAgQIECBAgAABAgQIECBAgAABAu8L9OF6ev8tbxAgQIAAAQIECBAgQIAAAQLPCKwvh+Mz66whQIAAAQIECBAgQIAAAQIECBAgQIAAgXgFDADH2xvJCBAgQIAAAQIECBAgQIAAAQIECBAgkI1AFVa7bIpRCAECBAgQIECAAAECBAgQiEyg3eybyCKJQ4AAAQIECBAgQIAAAQIECBAgQIAAAQIDBQwADwS0nAABAgQIECBAgAABAgQIECBAgAABAgTeF3AD8PtG3iBAgAABAgQIECBAgAABAgQIECBAgACB5QTqUG2XO93JBAgQIECAAAECBAgQIEDgewEDwN+b+IUAAQIECBAgQIAAAQIECBAgQIAAAQIERhZwA/DIoLYjQIAAAQIECBAgQIAAAQIECBAgQIAAgVEFutCfR93QZgQIECBAgAABAgQIECBAYKCAAeCBgJYTIECAAAECBAgQIECAAAECBAgQIECAwPsCbgB+38gbBAgQIECAAAECBAgQIEDgWYH15XB8dq11BAgQIECAAAECBAgQIECAAAECBAgQIBCngAHgOPsiFQECBAgQIECAAAECBAgQIECAAAECBLIScANwVu1UDAECBAgQIECAAAECBAhEJtBu9k1kkcQhQIAAAQIECBAgQIAAAQIECBAgQIAAgYECBoAHAlpOgAABAgQIECBAgAABAgQIECBAgAABAu8LuAH4fSNvECBAgAABAgQIECBAgAABAgQIECBAgMByAnWotsud7mQCBAgQIECAAAECBAgQIPC9gAHg7038QoAAAQIECBAgQIAAAQIECBAgQIAAAQIjC7gBeGRQ2xEgQIAAAQIECBAgQIAAAQIECBAgQIDAqAJd6M+jbmgzAgQIECBAgAABAgQIECAwUMAA8EBAywkQIECAAAECBAgQIECAAAECBAgQIEDgfQE3AL9v5A0CBAgQIECAAAECBAgQIPCswPpyOD671joCBAgQIECAAAECBAgQIECAAAECBAgQiFPAAHCcfZGKAAECBAgQIECAAAECBAgQIECAAAECWQm4ATirdiqGAAECBAgQIECAAAECBCITaDf7JrJI4hAgQIAAAQIECBAgQIAAAQIECBAgQIDAQAEDwAMBLSdAgAABAgQIECBAgAABAgQIECBAgACB9wXcAPy+kTcIECBAgAABAgQIECBAgAABAgQIECBAYDmBOlTb5U53MgECBAgQIECAAAECBAgQ+F7AAPD3Jn4hQIAAAQIECBAgQIAAAQIECBAgQIAAgZEF3AA8MqjtCBAgQIAAAQIECBAgQIAAAQIECBAgQGBUgS7051E3tBkBAgQIECBAgAABAgQIEBgoYAB4IKDlBAgQIECAAAECBAgQIECAAAECBAgQIPC+gBuA3zfyBgECBAgQIECAAAECBAgQeFZgfTkcn11rHQECBAgQIECAAAECBAgQIECAAAECBAjEKWAAOM6+SEWAAAECBAgQIECAAAECBAgQIECAAIGsBNwAnFU7FUOAAAECBAgQIECAAAECkQm0m30TWSRxCBAgQIAAAQIECBAgQIAAAQIECBAgQGCggAHggYCWEyBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECCQtkAdqm3aFUhPgAABAgQIECBAgAABArkJGADOraPqIUCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEDgIYEu9OeHFniZAAECBAgQIECAAAECBAhMLGAAeGJg2xMgQIAAAQIECBAgQIAAAQIECBAgQIBACH24njgQIECAAAECBAgQIECAAAEC0wisL4fjNDvblQABAgQIECBAgAABAgQIECBAgAABAgSWEjAAvJS8cwkQIECAAAECBAgQIECAAAECBAgQIFCQQBVWu4LKVSoBAgQIECBAgAABAgQIEJhVoN3sm1kPdBgBAgQIECBAgAABAgQIECBAgAABAgQITC5gAHhyYgcQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIBCzQB2qbcz5ZCNAgAABAgQIECBAgACB8gQMAJfXcxUTIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIPBKoAv9+dVXHwkQIECAAAECBAgQIECAwOICBoAXb4EABAgQIECAAAECBAgQIECAAAECBAgQyF+gD9dT/lWqkAABAgQIECBAgAABAgQILCOwvhyOy5zsVAIECBAgQIAAAQIECBAgQIAAAQIECBCYSsAA8FSy9iVAgAABAgQIECBAgAABAgQIECBAgACBLwJVWO2+fPGBAAECBAgQIECAAAECBAgQGFWg3eybUTe0GQECBAgQIECAAAECBAgQIECAAAECBAgsLmAAePEWCECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAwJICdai2S57vbAIECBAgQIAAAQIECBAg8K2AAeBvRXwnQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQKAogS7056IKViwBAgQIECBAgAABAgQIRC9gADj6FglIgAABAgQIECBAgAABAgQIECBAgACB9AX6cD2lX4UKCBAgQIAAAQIECBAgQIBAnALry+EYZzKpCBAgQIAAAQIECBAgQIAAAQIECBAgQOBZAQPAz8pZR4AAAQIECBAgQIAAAQIECBAgQIAAAQJ3C1Rhtbv7ZS8SIECAAAECBAgQIECAAAECDwm0m33z0AIvEyBAgAABAgQIECBAgAABAgQIECBAgED0AgaAo2+RgAQIECBAgAABAgQIECBAgAABAgQIEEhfwA3A6fdQBQQIECBAgAABAgQIECBAgAABAgQIEMhZoA7VNuf61EaAAAECBAgQIECAAAEC6QkYAE6vZxITIECAAAECBAgQIECAAAECBAgQIEAgOQE3ACfXMoEJECBAgAABAgQIECBAgAABAgQIECBQlEAX+nNRBSuWAAECBAgQIECAAAECBKIXMAAcfYsEJECAAAECBAgQIECAAAECBAgQIECAQPoCbgBOv4cqIECAAAECBAgQIECAAIF4BdaXwzHedJIRIECAAAECBAgQIECAAAECBAgQIECAwDMCBoCfUbOGAAECBAgQIECAAAECBAgQIECAAAECBB4ScAPwQ1xeJkCAAAECBAgQIECAAAECDwm0m33z0AIvEyBAgAABAgQIECBAgAABAgQIECBAgED0AgaAo2+RgAQIECBAgAABAgQIECBAgAABAgQIEEhfwA3A6fdQBQQIECBAgAABAgQIECBAgAABAgQIEMhZoA7VNuf61EaAAAECBAgQIECAAAEC6QkYAE6vZxITIECAAAECBAgQIECAAAECBAgQIEAgOQE3ACfXMoEJECBAgAABAgQIECBAgAABAgQIECBQlEAX+nNRBSuWAAECBAgQIECAAAECBKIXMAAcfYsEJECAAAECBAgQIECAAAECBAgQIECAQPoCbgBOv4cqIECAAAECBAgQIECAAIF4BdaXwzHedJIRIECAAAECBAgQIECAAAECBAgQIECAwDMCBoCfUbOGAAECBAgQIECAAAECBAgQIECAAAECBB4ScAPwQ1xeJkCAAAECBAgQIECAAAECDwm0m33z0AIvEyBAgAABAgQIECBAgAABAgQIECBAgED0AgaAo2+RgAQIECBAgAABAgQIECBAgAABAgQIEEhf4PMNwB9//elj+tWogAABAgQIECBAgAABAgQIECBAgAABAgRyE6hDtc2tJvUQIECAAAECBAgQIECAQNoCBoDT7p/0BAgQIECAAAECBAgQIECAAAECBAgQSELg5Qbgvv70IYmwQhIgQIAAAQIECBAgQIAAAQIECBAgQIBAcQJd6M/FFa1gAgQIECBAgAABAgQIEIhawABw1O0RjgABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABArcF1pfD8fYbnhIgQIAAAQIECBAgQIAAAQIECBAgQIBAagIGgFPrmLwECBAgQIAAAQIECBAgQIAAAQIECBBIUKAP11OCsUUmQIAAAQIECBAgQIAAAQJJCLSbfZNEUCEJECBAgAABAgQIECBAgAABAgQIECBA4G4BA8B3U3mRAAECBAgQIECAAAECBAgQIECAAAECBJ4VqMJq9+xa6wgQIECAAAECBAgQIECAAAECBAgQIECAwNQCdai2U59hfwIECBAgQIAAAQIECBAg8IiAAeBHtLxLgAABAgQIECBAgAABAgQIECBAgAABAk8JuAH4KTaLCBAgQIAAAQIECBAgQIAAAQIECBAgQGAmgS7055mOcgwBAgQIECBAgAABAgQIELhLwADwXUxeIkCAAAECBAgQIECAAAECBAgQIECAAIEhAm4AHqJnLQECBAgQIECAAAECBAgQuC2wvhyOt9/wlAABAgQIECBAgAABAgQIECBAgAABAgRSEzAAnFrH5CVAgAABAgQIECBAgAABAgQIECBAgEBiAv21+t0NwIk1TVwCBAgQIECAAAECBAgQSEqg3eybpAILS4AAAQIECBAgQIAAAQIECBAgQIAAAQLvChgAfpfICwQIECBAgAABAgQIECBA4GuBj7/+9PHrX3wjQIAAAQIE3hNwA/B7Qp4TIECAAAECBAgQIECAAAECBAgQIECAwJICdai2S57vbAIECBAgQIAAAQIECBAg8K2AAeBvRXwnQIAAAQIECBAgQIAAAQLvCPzy93/98s4rHhMgQIAAAQKvBKpV/7MbgF+B+EiAAAECBAgQIECAAAECBAgQIECAAAEC0Ql0oT/Xdf3n6IIJRIAAAQIECBAgQIAAAQLFChgALrb1CidAgAABAgQIECBAgACBZwXcAPysnHUECBAgQIAAAQIECBAgQIAAAQIECBAgMIXA+nI4TrGvPQkQIECAQGkCXdf9VlrN6iVAgAABAgQIECBAgACBeAUMAMfbG8kIECBAgAABAgQIECBAIFKBlxuA+/rTh0jjiUWAAAECBKIT6K/V79GFEogAAQIECBAgQIAAAQIECGQk0G72TUblKIUAAQIECMwu8HL778vwr39UY3Z6BxIgQIAAAQIECBAgQIDADQEDwDdwPCJAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAIH+Bl+Hfj7/+9DH/SlVIgAABAgQIECBAgAABAqkIGABOpVNyEiBAgAABAgQIECBAgEA0Ap//T98+XE/RhBKEAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBJ4WaDf75unFFhIgQIAAAQIECBAgQIAAgQkEDABPgGpLAgQIECBAgAABAgQIEMhfoOr+9Nf8q1QhAQIECBAgQIAAAQIECBAgQIAAAQIECKQg8HJjYQo5ZSRAgAABAgQIECBAgAABAgQIECBAgACB+wUMAN9v5U0CBAgQIECAAAECBAgQIPBFoK8/ffjyxQcCBAgQIECAAAECBAgQIECAAAECBAgQILCggBsLF8R3NAECBAgQIECAAAECBAgQIECAAAECBCYSMAA8EaxtCRAgQIAAAQIECBAgQIAAAQIECBAgQCCE/lr9/tnh468/ffz82f8SIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAwI8FDAD/2MYTAgQIECBAgAABAgQIECBAgAABAgQIEBgoUK36nwduYTkBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgSKEzAAXFzLFUyAAAECBAgQIECAAAECYwi4wXAMRXsQIECAQCkCfbieSqlVnQQIECBAgAABAgQIECBAYAmB9eVwXOJcZxIgQIAAAQIECBAgQIAAAQIECBAgQIDAdAIGgKeztTMBAgQIECBAgAABAgQIFCDQX6vfCyhTiQQIECBAYJBAFVa7vv70YdAmFhMgQIAAAQIECBAgQIAAAQI/FGg3++aHDz0gQIAAAQIECBAgQIAAAQIECBAgQIAAgSQFDAAn2TahCRAgQIAAAQIECBAgQIAAAQIECBAgkIaAfywjjT5JSYAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIBAXAIGgOPqhzQECBAgQIAAAQIECBAgkJCAmwwTapaoBAgQILCoQB+up0UDOJwAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQKJCRgATqxh4hIgQIAAAQIECBAgQIBAPAJV96e/xpNGEgIECBAgEKdAtep/jjOZVAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEIhXwABwvL2RjAABAgQIECBAgAABAgQiF3ADcOQNEo8AAQIEohDor9XvUQQRggABAgQIECBAgAABAgQIZCywvhyOGZenNAIECBAgQIAAAQIECBAgQIAAAQIECBQpYAC4yLYrmgABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBXATazb7puu63LvTnXGpSBwECBAgQmEvg838//YMac4k7hwABAgQIECBAgAABAgTuFTAAfK+U9wgQIECAAAECBAgQIECAwDcCVfenv7785GbDb2B8JUCAAAECBAgQIECAAAECBAgQIECAAIFZBf7xl9/+NuuBDiNAgAABApkJ/M8//+9/P/7608fMylIOAQIECBAgQIAAAQIECCQuYAA48QaKT4AAAQIECBAgQIAAAQLLCfT1pw99uJ6WS+BkAgQIECBAgAABAgQIECBAgAABAgQIECDwH4GXIeCXW4B5ECBAgAABAo8JvPz30/DvY2beJkCAAAECBAgQIECAAIF5BAwAz+PsFAIECBAgQIAAAQIECBAgQIAAAQIECBQp4B/LKLLtiiZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYKCAAeCBgJYTIECAAAECBAgQIECAAAECBAgQIECAwI8FqrDa9fWnD25P+LGRJwQIECBAgAABAgQIECBAYAyBX/7+r1/G2MceBAgQIECAAAECBAgQIECAAAECBAgQIBCHgAHgOPogBQECBAgQIECAAAECBAgQIECAAAECBLIT6K/V724Azq6tCiJAgAABAgQIECBAgACBSAVe/vGtuq7/HGk8sQgQIECAAAECBAgQIECAAAECBAgQIEDgQQEDwA+CeZ0AAQIECBAgQIAAAQIECBAgQIAAAQIE7hOoVv3P973pLQIECBAgQIAAAQIECBAgQGAMga7rfhtjH3sQIECAAAECBAgQIECAAAECBAgQIECAwPICBoCX74EEBAgQIECAAAECBAgQIECAAAECBAgQyFLg5QbgLAtTFAECBAgQIECAAAECBAgQiFTADcCRNkYsAgQIECBAgAABAgQIECBAgAABAgQIPCFgAPgJNEsIECBAgAABAgQIECBAgMCLwMdff/pIggABAgQIECBAgAABAgQIECBAgAABAgQIxCLgBuBYOiEHAQIECBAgQIAAAQIECBAgQIAAAQIEhgsYAB5uaAcCBAgQIECAAAECBAgQKFTgl7//65e+/vShD9dToQTKJkCAAAECBAgQIECAAAECBAgQIECAAIHIBLrQnyOLJA4BAgQIEIhWwH83o22NYAQIECBAgAABAgQIECDwbwEDwP4MCBAgQIAAAQIECBAgQIDAkwKvbwDur9XvT25jGQECBAgQyFbAP5KRbWsVRoAAAQIECBAgQIAAAQKRCvzjL7/97eUWYMNMkTZILAIECBCISuDzfy/Xl8MxqmDCECBAgAABAgQIECBAgACB/woYAPanQIAAAQIECBAgQIAAAQIECBAgQIAAAQKTCFRhtevrTx8m2dymBAgQIECAAAECBAgQIECAAAECBAgQIEBgoMDLP5wxcAvLCRAgQIAAAQIECBAgQIDAZAIGgCejtTEBAgQIECBAgAABAgQIECBAgAABAgTKFvh/9u7nNa403Q/4UaXoNEyDlWwCjUOPZ5HNNV5mJYbeOBgGb7NIq+8yXjh/QENraUP/A16oVyFyrwKBS8FFIAhm0D8Qo1UW7R4QDcnKghkw5qQqesp+e47lklUlnarznvN+BH2rVHV+PM/nratiyvU9T5oAfPzdl8dlS+ieAAECBAgQIECAAAECBAgQIECAAAECBHITGFeje7nVpB4CBAgQIECAAAECBAgQINAUEABuarhPgAABAgQIECBAgAABAgRWFBBoWhHM5gQIECBQjMB0NnpVTLMaJUCAAAECBAgQIECAAAECBAgQIECAAIHeCdTV9GXvilYwAQIECBAgQIAAAQIECBQlIABc1HJrlgABAgQIECBAgAABAgTWITAdnx2s47iOSYAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQLrEYgJwOPx+OF6ju6oBAgQIECAAAECBAgQIEDg5gICwDc3dAQCBAgQIECAAAECBAgQIFBNq9kRBgIECBAgQOBjgePvvjz++FGPECBAgAABAgQIECBAgAABAusQ2Pnh1511HNcxCRAgQIDAEAViAnBd15Mh9qYnAgQIECBAgAABAgQIEBiGgADwMNZRFwQIECBAgAABAgQIECDQkUDzy1TT2ehVR2U4LQECBAgQyFJgOj47yLIwRREgQIAAAQIECBAgQIAAgYEKxIW4TnYnewNtT1sECBAgQGAtAi5kuRZWByVAgAABAgQIECBAgACBFgQEgFtAdAgCBAgQIECAAAECBAgQKFfAPwaXu/Y6J0CAAAECBAgQIECAAAECBAgQIECAQI4CceFK0wxzXBk1ESBAgEBuAvF+uX26f5hbXeohQIAAAQIECBAgQIAAAQJJQAA4SbglQIAAAQIECBAgQIAAAQLXFBACviac3QgQIEBgsALT2ejVtJodDbZBjREgQIAAAQIECBAgQIAAgYwF0mfWdTV9mXGZSiNAgAABAlkIpPfNLIpRBAECBAgQIECAAAECBAgQuCAgAHwBxK8ECBAgQIAAAQIECBAgQOA6AtPx2YGg03Xk7EOAAAECBAgQIECAAAECBAgQIECAAAECbQrEBOA2j+dYBAgQIECAAAECBAgQIECAAAECBAgQINCNgABwN+7OSoAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgdYFTDJsndQBCRAgQIAAAQIECBAgQIAAAQIECBAg0ImAAHAn7E5KgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACB9gVMAG7f1BEJECBAgAABAgQIECBAgAABAgQIECDQhYAAcBfqzkmAAAECBAgQIECAAAECgxNIExWms9GrwTWnIQIECBAgsKLAtJodTcdnByvuZnMCBAgQIECAAAECBAgQIECgBYH0eXULh3IIAgQIECBAgAABAgQIECBAgAABAgQIEOhQQAC4Q3ynJkCAAAECBAgQIECAAIHhCJioMJy11AkBAgQItCfgC8ftWToSAQIECBAgQIAAAQIECBBYReBkd7JX1/WkrqYvV9nPtgQIECBAoBQB75GlrLQ+CRAgQIAAAQIECBAg0G8BAeB+r5/qCRAgQIAAAQIECBAgQCATAQGnTBZCGQQIECDQucB0NnrVeREKIECAAAECBAgQIECAAAECBKrt0/1DDAQIECBAgMDHAhH+jQtleK/82MYjBAgQIECAAAECBAgQIJCXgABwXuuhGgIECBAgQIAAAQIECBDoscB0fHYwrWZHgk89XkSlEyBAgAABAgQIECBAgAABAgQIECBAYCACr28/ejCQVrRBgAABAgRaF4jwr4s8t87qgAQIECBAgAABAgQIECDQsoAAcMugDkeAAAECBAgQIECAAAECZQrs/PDrTpmd65oAAQIECPxdIF0EIy6K4YtTf3dxjwABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAqsKCACvKmZ7AgQIECBAgAABAgQIECCwQEDIaQGKhwgQIECgSIFpNTsqsnFNEyBAgAABAgQIECBAgACBzARismFmJSmHAAECBAgQIECAAAECBAgQIECAAAECBFYQEABeAcumBAgQIECAAAECBAgQIEDgUwJCwJ/S8RwBAgQIECBAgAABAgQIECBAgAABAgQIbFLgpxc7VV3Xk7qavtzkeZ2LAAECBAjkLhDvj7nXqD4CBAgQIECAAAECBAgQIBACAsBeBwQIECBAgAABAgQIECBAoEWB6fjsICYfTmejVy0e1qEIECBAgAABAgQIECBAgAABAgQIECBAgMBKAl8d/nxsCvBKZDYmQIAAgQIE0oUxXNy5gMXWIgECBAgQIECAAAECBAYgIAA8gEXUAgECBAgQIECAAAECBAgQIECAAAECBHIRiIth+OJULquhDgIECBAgQIAAAQIECBAoXSD+N7oph6W/CvRPgAABAgQIECBAgAABAgQIECBAgEBfBQSA+7py6iZAgAABAgQIECBAgAABAgQIECBAgEBmAtNqdpRZScohQIAAAQIECBAgQIAAAQIECBAgQIAAAQJzgZj+GxfG2D7dP0RCgAABAgQIECBAgAABAgT6ICAA3IdVUiMBAgQIECBAgAABAgQI9EbAxMPeLJVCCRAgQKBlgels9KrlQzocAQIECBAgQIAAAQIECBAgQIAAAQIECBBoXcC/6bZO6oAECBAgQIAAAQIECBAgsCYBAeA1wTosAQIECBAgQIAAAQIECJQpsPPDrzvT8dmBCYhlrr+uCRAgQKCqfHHKq4AAAQIECBAgQIAAAQIECOQnEBMP86tKRQQIECBAgAABAgQIECBAgAABAgQIECDwKQEB4E/peI4AAQIECBAgQIAAAQIECKwo0Aw9mYS4Ip7NCRAgQKDXAi5+0evlUzwBAgQIECBAgAABAgQIDFhg+3T/sK7riRDwgBdZawQIECCwtEC8Ly69sQ0JECBAgAABAgQIECBAgEDHAgLAHS+A0xMgQIAAAQIECBAgQIDA8ASaIeDhdacjAgQIECDwsUC66MV0fHbw8bMeIUCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIFVBQSAVxWzPQECBAgQIECAAAECBAgQWEJAAGoJJJsQIECAAAECBAgQIECAAAECBAgQIECAwNoFfnqxU43H44fjanRv7SdzAgIECBAgQIAAAQIECBAgQIAAAQIECBBoTUAAuDVKByJAgAABAgQIECBAgAABAh8KTKvZUZqI+OEzfiNAgAABAgQIECBAgAABAgQIECBAgAABApsR+Obr46qu60ldTV9u5ozOQoAAAQIECBAgQIAAAQIECBAgQIAAAQJtCAgAt6HoGAQIECBAgAABAgQIECBAgAABAgQIEChYYH7Ri/HZwfF3Xx4XzKB1AgQIECBAgAABAgQIECBAgAABAgQIEMhUIC6EERfEyLQ8ZREgQIAAAQIECBAgQIAAgYUC44WPepAAAQIECBAgQIAAAQIECBAgQIAAAQIECCwh8G7a/WyJLW1CgAABAgQIECBAgAABAgQIdCHw/oJdx3efP6zG48/udVGDcxIgQIAAga4FIvx7sjvZqyoZ4K7XwvkJECBAgAABAgQIECBAYHkBE4CXt7IlAQIECBAgQIAAAQIECBBYSWB6PgkxJiKutJONCRAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAoXkAAuPiXAAACBAgQIECAAAECBAgQWIfA+4kK80O/m4y4jrM4JgECBAgQ6F4gLnYRF71ovvd1X5UKCBAgQIAAAQIECBAgQIAAgUUCdTV9uehxjxEgQIAAAQIECBAgQIAAAQIECBAgQIBAfgICwPmtiYoIECBAgAABAgQIECBAYCACglADWUhtECBAgAABAgQIECBAgAABAgQIECBAYAAC26f7h3VdT4SAB7CYWiBAgACBpQXifS/+i/fBpXeyIQECBAgQIECAAAECBAgQyERAADiThVAGAQIECBAgQIAAAQIECAxTICYiRmemAA9zfXVFgACB0gXS+5uLXpT+StA/AQIECBAgQIAAAQIECPRBIP73+8nuZK8PtaqRAAECBAi0KRAXwPA5dpuijkWAAAECBAgQIECAAAECmxIQAN6UtPMQIECAAAECBAgQIECAQHECOz/8uhNNT6vZUXHNa5gAAQIEihFIF7sopmGNEiBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYAMCAsAbQHYKAgQIECBAgAABAgQIEChTwFWky1x3XRMgQKAkARe5KGm19UqAAAECBAgQIECAAAECQxBIF64cQi96IECAAAECBAgQIECAAAECBAgQIECAwNAFBICHvsL6I0CAAAECBAgQIECAAIFOBYSAO+V3cgIECBBYo8B0Nnq1xsM7NAECBAgQIECAAAECBAgQILAGgfjMuq7rSV1NX67h8A5JgAABAgSyEoj3u3jfO9md7GVVmGIIECBAgAABAgQIECBAgMCSAgLAS0LZjAABAgQIECBAgAABAgQIXFdgOj47iAmJglLXFbQfAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgbIEBIDLWm/dEiBAgAABAgQIECBAgAABAgQIEC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QIECAAAECBAg0BLZP9w9NAW6AuEuAAAECvRfwvtb7JdQAAQIECBAgQIAAAQIECDQEBIAbGO4SIECAAAECBAgQIECAAIF1C5gCvG5hsismiQAAQABJREFUxydAgACBdQrERSzWeXzHJkCAAAECBAgQIECAAAECBDYr8NOLnSqmAAtLbdbd2QgQIEBgfQLxvhYXuIh/l13fWRyZAAECBAgQIECAAAECBAhsRkAAeDPOzkKAAAECBAgQIECAAAECBD4QMAX4Aw6/ECBAgAABAgQIECBAgAABAgQIECBAgEAHAl8d/nwcIakOTu2UBAgQIECgdYF0QQvh39ZpHZAAAQIECBAgQIAAAQIEOhIQAO4I3mkJECBAgAABAgQIECBAgAABAgQIECDQF4HpbPRqfvGK8dmBL071ZdXUSYAAAQIECBAgQIAAAQIElhNIU4CX29pWBAgQIEAgX4E0/TffClVGgAABAgQIECBAgAABAgRWExAAXs3L1gQIECBAgAABAgQIECBA4MYCEZyangeoIkh144M5AAECBAgQIECAAAECBAgQIECAAAECBAgQuIFATAG+we52JUCAAAECWQm4iGVWy6EYAgQIECBAgAABAgQIELihgADwDQHtToAAAQIECBAgQIAAAQIEbiIQExVvsr99CRAgQIDAugVM/123sOMTIECAAAECBAgQIECAAIE8BOpq+jKPSlRBgAABAgRWF/A+trqZPQgQIECAAAECBAgQIEAgfwEB4PzXSIUECBAgQIAAAQIECBAgMECBNAV4gK1piQABAgQIECBAgAABAgQIECBAgAABAgR6JrB9un9Y1/VEeKpnC6dcAgQIEJgLpPeveD9DQoAAAQIECBAgQIAAAQIEhiQgADyk1dQLAQIECBAgQIAAAQIECPROYFrNjkwB7t2yKZgAAQLFCUzHZwdx8YriGtcwAQIECBAgQIAAAQIECBAoRMD/7i9kobVJgACBAQvEhSy8nw14gbVGgAABAgQIECBAgACBQgUEgAtdeG0TIECAAAECBAgQIECAAAECBAgQIEDgKoG4SEVcrOKq7TxPgAABAgQIECBAgAABAgQI9F/gZHeyF+Gp/neiAwIECBAoTSDev0z/LW3V9UuAAAECBAgQIECAAIEyBASAy1hnXRIgQIAAAQIECBAgQIBAhgJxBeqYqChYleHiKIkAAQIECBAgQIAAAQIECBAgQIAAAQKFCtTV9GWhrWubAAECBHookN63TP/t4eIpmQABAgQIECBAgAABAgSuFBAAvpLIBgQIECBAgAABAgQIECBAYP0CMWFx/WdxBgIECBAgsLxAem+Ki1X44tTybrYkQIAAAQIECBAgQIAAAQJ9FojpiaYA93kF1U6AAIGyBFL4t6yudUuAAAECBAgQIECAAAECJQkIAJe02nolQIAAAQIECBAgQIAAgewETAHObkkURIAAAQINAVPqGxjuEiBAgAABAgQIECBAgACBAgRe3370oIA2tUiAAAECAxEYV6N7A2lFGwQIECBAgAABAgQIECBAYKGAAPBCFg8SIECAAAECBAgQIECAAIHNC6RJi5s/szMSIECAAIEPBdJ7kum/H7r4jQABAgQIECBAgAABAgQIDF0gJgBHjyYqDn2l9UeAAIFhCMT7VUyuT+9fw+hKFwQIECBAgAABAgQIECBA4O8CAsB/t3CPAAECBAgQIECAAAECBAh0IpCmAHdyciclQIAAAQKXCJj+ewmMhwkQIECAAAECBAgQIECAwIAF4vPqAbenNQIECBAYoECEf71/DXBhtUSAAAECBAgQIECAAAECcwEBYC8EAgQIECBAgAABAgQIECCQiUAErdLExUxKUgYBAgQIFCog/FvowmubAAECBAgQIECAAAECBAicC5zsTvZimqIpwF4OBAgQIJCzQJr+K/yb8yqpjQABAgQIECBAgAABAgRuKiAAfFNB+xMgQIAAAQIECBAgQIAAAQIECBAgQGCAAtPx2YEvTg1wYbVEgAABAgQIECBAgAABAgSWEEgh4CU2tQkBAgQIEOhEIC5WEdN/Ozm5kxIgQIAAAQIECBAgQIAAgQ0JCABvCNppCBAgQIAAAQIECBAgQIDApwQiYBVBK1OAP6XkOQIECBDYhEA92/oxziP8uwlt5yBAgAABAgQIECBAgAABAvkKRKjKFOB810dlBAgQKFkg3p/ifcrn2CW/CvROgAABAgQIECBAgACBMgQEgMtYZ10SIECAAAECBAgQIECAAAECBAgQIEDgSoHpbPQqNoqLUly5sQ0IECBAgAABAgQIECBAgACBQQv89GJn0P1pjgABAgQIECBAgAABAgQIECBAgAABArkLCADnvkLqI0CAAAECBAgQIECAAIFiBEwBLmapNUqAAAECBAgQIECAAAECBAgQIECAAIHsBb75+riq63piCnD2S6VAAgQIFCcQ70+m/xa37BomQIAAAQIECBAgQIBAkQICwEUuu6YJECBAgAABAgQIECBAgAABAgQIECDwoUBM/51Ws6OY/uuLUx/a+I0AAQIECBAgQIAAAQIECJQoEJ8PbJ/uH5bYu54JECBAIF8BF6bId21URoAAAQIECBAgQIAAAQLtCwgAt2/qiAQIECBAgAABAgQIECBA4NoC8YWqP+/97lEEsK59EDsSIECAAAECBAgQIECAAAECBAgQIECAAIEWBOIza1OAW4B0CAIECBBoTSDel1ygojVOByJAgAABAgQIECBAgACBzAUEgDNfIOURIECAAAECBAgQIECAQJkCMX0xJjGW2b2uCRAgQGDTAqb/blrc+QgQIECAAAECBAgQIECAQH8EhKz6s1YqJUCAwNAFYvpvvC/FBSqG3qv+CBAgQIAAAQIECBAgQIBACAgAex0QIECAAAECBAgQIECAAIFMBWIKsBBwpoujLAIECBAgQIAAAQIECBAgQIAAAQIECBQiYApwIQutTQIECGQuEOHfmP4r/Jv5QimPAAECBAgQIECAAAECBFoVEABuldPBCBAgQIAAAQIECBAgQIAAAQIECBAg0C8B03/7tV6qJUCAAAECBAgQIECAAAECXQic7E72InTVxbmdkwABAgQIhEC8D8X7EQ0CBAgQIECAAAECBAgQIFCSgABwSautVwIECBAgQIAAAQIECBDojUBcuXo6PjswBbg3S6ZQAgQIECBAgAABAgQIECBAgAABAgQIDFpgPB4/HHSDmiNAgAABAgQIECBAgAABAgQIECBAgEBmAgLAmS2IcggQIECAAAECBAgQIECAAAECBAgQILApAdN/NyXtPAQIECBAgAABAgQIECBAoP8CMXmxrqYv+9+JDggQIECgbwLef/q2YuolQIAAAQIECBAgQIAAgbYEBIDbknQcAgQIECBAgAABAgQIECDQsoApwC2DOhwBAgQIfCAQ4d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GvsN4IECCweYF4X4npv/Ees/mzOyMBAgQIECBAgAABAgQIEMhLQAA4r/VQDQECBAgQIECAAAECBAgQ+KRAhIAjuCUE/EkmTxIgQIDAJQKm/14C42ECBAgQIECAAAECBAgQIEDgWgI/vdipIqQlBHwtPjsRIECAwCUCEf5NF0e+ZBMPEyBAgAABAgQIECBAgACBIgQEgItYZk0SIECAAAECBAgQIECAAAECBAgQIFCyQEz/nV884vwiEr40VfIrQe8ECBAgQIAAAQIECBAgQKBdga8Ofz6eTwE+DwG3e2RHI0CAAIESBdL0X59jl7j6eiZAgAABAgQIECBAgACBRQICwItUPEaAAAECBAgQIECAAAECBDIWMAU448VRGgECBDIWiAnyvjSV8QIpjQABAgQIECBAgAABAgQI9FQgfd5gCnBPF1DZBAgQyEggpsrHhSUyKkkpBAgQIECAAAECBAgQIECgUwEB4E75nZwAAQIECBAgQIAAAQIECFxPIH2haj7N8Xyq4/WOYi8CBAgQKEEgTf8toVc9EiBAgAABAgQIECBAgAABAt0InOxO9r745dljIeBu/J2VAAECQxB4U799Gn2kfwcdQk96IECAAAECBAgQIECAAAECNxUQAL6poP0JECBAgAABAgQIECBAgEBHAjHJsaNTOy0BAgQI9EQghX9N/+3JgimTAAECBAgQIECAAAECBAj0WCACWzG5scctKJ0AAQIEOhJIF5CIC0p0VILTEiBAgAABAgQIECBAgACBLAUEgLNcFkURIECAAAECBAgQIECAAIGrBeLLVBHoMgX4aitbECBAoESBCP+W2LeeCRAgQIAAAQIECBAgQIAAAQIECBAgQKBfAi4g0a/1Ui0BAgQIECBAgAABAgQIbE5AAHhz1s5EgAABAgQIECBAgAABAgRaF4gQcOsHdUACBAgQGIzA/CIR5xeL8H4xmCXVCAECBAgQIECAAAECBAgQyF7gTf32aZrkmH2xCiRAgACBTgXi/SLeN6II0387XQonJ0CAAAECBAgQIECAAIFMBf5FpnUpiwABAgQIECBAgAABAgQIEFhS4N/+h//yupr+yy+qavSvt7Zm/2rJ3WxGgAABAgMX+H9V9d9jUrzw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UDECBAgAABAgQIECBAgEDhAgLAhb8AtE+AAAECBAgQIECAAAEC5Qikf2CfB4Fno1fldK5TAgQIDENA+HcY66gLAgQIECBAgAABAgQIECBA4J1AfGYdk4DravqSCQECBAgMRyD+rsff95j4PpyudEKAAAECBAgQIECAAAECBLoREADuxt1ZCRAgQIAAAQIECBAgQIBAJwK/hYCr2VEEyTopwkkJECBA4FoC0/jbfT7JPf0tv9ZB7ESAAAECBAgQIECAAAECBAgQyEjgpxc7VX0+ITKjkpRCgAABAjcUiL/rPse+IaLdCRAgQIAAAQIECBAgQIDAewEBYC8FAgQIECBAgAABAgQIECBQoMB8CrAQcIErr2UCBPooMJ/8+/6iDb401ccVVDMBAgQIECBAgAABAgQIECBwmcBXhz8fx3OmAF8m5HECBAj0S8Df836tl2oJECBAgAABAgQIECBAIH8BAeD810iFBAgQIECAAAECBAgQIECgVYEUHhMCbpXVwQgQILBWgTT9d60ncXACBAgQIECAAAECBAgQIECAQAcCJ7uTvZgW+aZ++7SD0zslAQIECLQkEOHf+Hsef9dbOqTDECBAgAABAgQIECBAgACB4gUEgIt/CQAgQIAAAQIECBAgQIAAgRIFIgT8WxD4fBJwiQZ6JkCAQB8E5tN/Y2L7+Owg/d3uQ91qJECAAAECBAgQIECAAAECBAisIpDCYiZHrqJmWwIECOQjkMK/26f7h/lUpRICBAgQIECAAAECBAgQINB/AQHg/q+hDggQIECAAAECBAgQIECAwLUFIlAWO0fA7NoHsSMBAgQIrEWgGf5dywkclAABAgQIECBAgAABAgQIECCQkYDQWEaLoRQCBAhcU8CFLK8JZzcCBAgQIECAAAECBAgQIHCJgADwJTAeJkCAAAECBAgQIECAAAECJQjEP8JHCHga0yWFgEtYcj0SINAjgfjbnMr1pakk4ZYAAQIECBAgQIAAAQIECBAYqkB8/lHX9cQU4KGusL4IEBiiwHzybzV9GX+/XchhiCusJwIECBAgQIAAAQIECBDoWmCr6wKcnwABAgQIECBAgAABAgQIEOheYOeHX3dG9a1vR9XW/dHW9E73FamAA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K2AAHC3/s5OgAABAgQIECBAgAABAgQIEChOoBkIji8QNX8PjEWPbQrp4rnT783zx2PN390nQIAAAQIECBAgQIAAAQIECBAgQIAAgfwE4rPnn17sVN98fVylgGtUme7HbfweU4TTpOAUkI3Hl7kf263zJ9WQbuNcy96fb1vXkxTsXXQb2/jMOxT8ECBAgAABAgQIECBAgAABAgTyFBAAznNdVEWAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAisUSBNEI5TRBA4JuKm0138/eLj8fx8vwVThVNI9ya3q9SSapvX0+jjZHey13zOfQIECBAgQIAAAQIECBAgQIAAgX4JjPtVrmoJECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAjcXSAHZmBZ8Pgl3rzk1OP0eZ0mThGNa7vk2h/HY+QThuInkcDUP67Z8GxN735/vt9ridKmWuB81/uXBH3ZiynH8vH9uvt/8Af+HAAECBAgQIECAAAECBAgQIECg1wImAPd6+RRPgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIbFoggrd/2v2HB+s6bwonr+v4jkuAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIPD/26FjAQAAAIBB/tbT2FEIGTBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDB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IABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwIABAwYMGDBgwMBqIJo6i8i3R6VOAAAAAElFTkSuQmCC"
|
|
/>
|
|
<image
|
|
id="image1_4955_16369"
|
|
width="730"
|
|
height="116"
|
|
preserveAsp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9uPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+NzMwPC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6VXNlckNvbW1lbnQ+U2NyZWVuc2hvdDwvZXhpZjpVc2VyQ29tbWVudD4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CuIfX/4AAAAcaURPVAAAAAIAAAAAAAAAOgAAACgAAAA6AAAAOgAAHm4eFlogAAAeOklEQVR4AeydB5wUVbbGDwzMkEEkiKCAoCKSFgURUTFnfAYUTLjooggqigkDCorLyqq7IkkRw1tFFANhdcV1MawSFAwoGYYcBhwGJsf7znfHKrt7unuqp7snve/+fi3VVTec+69Cvjp97rk10tLSjLCQAAmQAAmQAAmQAAmQAAnElEANCu2Y8mRnJEACJEACJEACJEACJGAJUGjzQSABEiABEiABEiABEiCBOBCg0I4DVHZJAiRAAiRAAiRAAiRAAhTafAZIgARIgARIgARIgARIIA4EKLTjAJVdkgAJkAAJkAAJkAAJkACFNp8BEiABEiABEiABEiABEogDAQrtOEBllyRAAiRAAiRAAiRAAiQQE6Fds2ZNqV27ttSqVUsSEhKkRo0aJEsCJEACJEACJEACJEACVYaAMUYKCwuloKBA8vPzpaioKGrboxLaENh16tSxIjtqS9gBCZAACZAACZAACZAACVQSAhDbOTk5UQnuMgvtxMREqVu3biVBQTNIgARIgARIgARIgARIIPYEsrOzJS8vr0wdl0loJyUlWU92mUZkIxIgARIgARIgARIgARKoQgTg2c7NzY3Y4oiFNj3ZETNmAxIgARIgARIgARIggSpOoCye7YiENmKyGzZsWMUx0XwSIAESIAESIAESIAESiJxAenp6RDHbEQntevXqceFj5PeELUiABEiABEiABEiABKoBASyQzMrK8jwTz0Kb3mzPTFmRBEiABEiABEiABEigmhKIxKvtWWhzAWQ1fVo4LRIgARIgARIgARIgAc8EIlkY6Vlo169f325I49kKViQBEiABEiABEiABEiCBakYAG9pkZmZ6mpVnod2oUSPu+OgJKSuRAAmQAAmQAAmQAAlUVwLYQfLQoUOepudZaDdu3NhTh6xEAiRAAiRAAiRAAiRAAtWZwMGDBz1Nj0LbEyZWIgESIAESIAESIAESIIFiAhTafBJIgARIgARIgARIgARIIA4EKLTjAJVdkgAJkAAJkAAJkAAJkACFNp8BEiABEiABEiABEiABEogDAQrtOEBllyRAAiRAAiRAAiRAAiRAoc1ngARIgARIgARIgARIgATiQIBCOw5Q2SUJkAAJkAAJkAAJkAAJUGjzGSABEiABEiABEiABEiCBOBCg0I4DVHZJAiRAAiRAAiRAAiRAAhTafAZIgARIgARIgARIgARIIA4EKLTjAJVdkgAJkAAJkAAJkAAJkACFNp8BEiABEiABEiABEiABEogDAQrtOEBllyRAAiRAAiRAAiRAAiRAoc1ngARIgARIgARIgARIgATiQIBCOw5Q2SUJkAAJkAAJkAAJkAAJUGjzGSABEiABEiABEiABEiCBOBCg0I4D1Fh2mZ2dLVu2bJGioiJp166d1K9fP+Lu8/Pz5eeff5ajjz5aDj/88JDt9+7dK9u3b5cOHTrIYYcdFrJesAt79uyRXbt2ScuWLaVVq1ZSs2bNYNViei4zM1PWrFljxzzqqKPK3LfDp169etK+fXtJTEwsc1/BGm7btk127txpuRx55JGe+o/V3HBPfv31V+ncubMkJCQEM08KCgpk1apV0rBhQ/uM1apVK2g9niQBEiABEiABEoiMgFehLWlpacbLx7BETWDt2rXm/vvvNyqMTY0aNYzeUvejgsm8//77QcdQsWtUTJkuXbrY6ytXrjT9+/c3devWddsfe+yxZvTo0aawsNDWUUFnhg8fbjp27OjWwXidOnUyn376adBxcDInJ8fMnj3bnHvuuX79o21SUpK5/fbbDewJLPrSYG2EnaV99CUjsLlRUWwef/xxoy8Dfmz0xcAMGDDAoP9QZc6cOXbMESNG2Coff/yx6du3r6lTp447d31BMJdcconBPYimfP/99+ass84yjRo1cvsGG4x1+eWXm6ysrBLdRzO3O+64w87tnXfesff2oYceMvrS4I7doEEDa8+yZcvccT/66CNzzjnnGH15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01asdMq5aUBFQBBQBRUARUAQUAUWgjCEQjjeboYdFtKmQkJAg5cuX56OaIqAIKAKKgCKgCCgCioAicEggkJKSIvv27QtrrGETbVrXwMiwMNbCioAioAgoAoqAIqAIKAIHMQLhBEB6h1kook0D6tn2wqifFQFFQBFQBBQBRUARUATKIgKF8WQ7HApNtGkAzXZSUpIGSDo09V0RUAQUAUVAEVAEFAFFoEwgQOAjnuxQM4wEGnRERNs1COEmGwkb2sTFxekOkg4YfVcEFAFFQBFQBBQBRUAROCgQYMfHzMxMYUMaSHYkBNsNuEiItmtM3xUBRUARUAQUAUVAEVAEFAFFIAcBJdo6ExQBRUARUAQUAUVAEVAEFIFiQECJdjGAqk0qAoqAIqAIKAKKgCKgCCgCSrR1DigCioAioAgoAoqAIqAIKALFgIAS7WIAVZtUBBQBRUARUAQUAUVAEVAElGjrHFAEFAFFQBFQBBQBRUARUASKAQEl2sUAqjapCCgCioAioAgoAoqAIqAIKNHWOaAIKAKKgCKgCCgCioAioAgUAwJKtIsBVG1SEVAEFAFFQBFQBBQBRUARUKKtc0ARUAQUAUVAEVAEFAFFQBEoBgT+H6iIOe9KC8FYAAAAAElFTkSuQmCC"
|
|
/>
|
|
<image
|
|
id="image2_4955_16369"
|
|
width="1260"
|
|
height="360"
|
|
preserveAspectRatio="none"
|
|
xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABOwAAAFoCAIAAABrPvO7AAAKrWlDQ1BJQ0MgUHJvZmlsZQAASImVlwdUU9kWhs+96SGhJURASuhNkE4AKSG0AArSwUZIAoQSQiCoiIrK4AiOKCIiWNGhKjgWQMaKKBYGAUWxTpBBRBkHCzZU3gUWwZm33nvr7bX2Ol929vnPPmfdc9e+AJAVOSJRMqwIQIowQxzs40GPjIqm44YABLSBErAH2hxuuogZFBQAEJsZ/27v7yLZiN02n9T69///qynx+OlcAKAghGN56dwUhE8h/oIrEmcAgDqIxPVWZogmuQ1hqhgpEOG+SY6f5pFJjp1iNJjKCQ1mIUw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DAH0UZ8siUKdQewjY3MZ3rfqT590rDIF8tBz0m6v3NZDviHTffw39X9zxFMqtqCf47/AgSHB0juuUXRAAAAOGVYSWZNTQAqAAAACAABh2kABAAAAAEAAAAaAAAAAAACoAIABAAAAAEAAATsoAMABAAAAAEAAAFoAAAAAFXrka8AAEAASURBVHgB7L0JsyXHld9Xe93lbb0DaACNlSSGizibNByOTIU0kmU7JEfYX8ARtvU59DHsCCscDlthy9ZYmpFnhjPDITnDITFchgRIEASIrYFuNHp/611q9+9/su59D72QANgN9OvO7Nv1qrKyTmaeqjp1/nlOngy7rgt88hzwHPAc8BzwHPAc8BzwHPAc8BzwHPAc8Bw4DByIDkMjfRs9BzwHPAc8BzwHPAc8BzwHPAc8BzwHPAc8B8QBD2L9c+A54DngOeA54DngOeA54DngOeA54DngOXBoOOBB7KG5Vb6hngOeA54DngOeA54DngOeA54DngOeA54DHsT6Z8BzwHPAc8BzwHPAc8BzwHPAc8BzwHPAc+DQcMCD2ENzq3xDPQc8BzwHPAc8BzwHPAc8BzwHPAc8BzwHPIj1z4DngOeA54DngOeA54DngOeA54DngOeA58Ch4YAHsYfmVvmGeg54DngOeA54DngOeA54DngOeA54DngOeBDrnwHPAc8BzwHPAc8BzwHPAc8BzwHPAc8Bz4FDwwEPYg/NrfIN9RzwHPAc8BzwHPAc8BzwHPAc8BzwHPAc8CDWPwOeA54DngOeA54DngOeA54DngOeA54DngOHhgMexB6aW+Ub6jngOeA54DngOeA54DngOeA54DngOeA54EGsfwY8BzwHPAc8BzwHPAc8BzwHPAc8BzwHPAcODQc8iD00t8o31HPAc8BzwHPAc8BzwHPAc8BzwHPAc8BzwINY/wx4DngOeA54DngOeA54DngOeA54DngOeA4cGg54EHtobpVvqOeA54DngOeA54DngOeA54DngOeA54DngAex/hnwHPAc8BzwHPAc8BzwHPAc8BzwHPAc8Bw4NBzwIPbQ3CrfUM8BzwHPAc8BzwHPAc8BzwHPAc8BzwHPAQ9i/TPgOeA54DngOeA54DngOeA54DngO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YASNgBIyAETACRsAIGIE+ImAlto9v1WMyAkbACBgBI2AEjIARMAJGwAj0FAErsT19sR6WETACRsAIGAEjYASMgBEwAkagjwhYie3jW/WYjIARMAJGwAgYASNgBIyAETACPUXASmxPX6yHZQSMgBEwAkbACBgBI2AEjIAR6CMCVmL7+FY9JiNgBIyAETACRsAIGAEjYASMQE8RsBLb0xfrYRkBI2AEjIARMAJGwAgYASNgBPqIgJXYPr5Vj8kIGAEjYASMgBEwAkbACBgBI9BTBKzE9vTFelhGwAgYASNgBIyAETACRsAIGIE+ImAlto9v1WMyAkbACBgBI2AEjIARMAJGwAj0FAErsT19sR6WETACRsAIGAEjYASMgBEwAkagjwj8H1YcUTavogQtAAAAAElFTkSuQmCC"
|
|
/>
|
|
</defs>
|
|
</svg>`;var wP=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class BP{constructor(e,t,i,n){this.platformUtilsService=e,this.accountService=t,this.dialogRef=i,this.webVaultExtensionPromptService=n,this.webStoreUrl="",this.extensionMockLogin=IP}ngOnInit(){this.webStoreUrl=RD(this.platformUtilsService.getDevice())}dismissPrompt(){return wP(this,void 0,void 0,function*(){const e=yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6));yield this.webVaultExtensionPromptService.getDialogDismissedState(e).update(()=>!0),yield this.dialogRef.close()})}static open(e){return e.open(BP)}}BP.ɵfac=function(e){return new(e||BP)(w.rXU(G.y),w.rXU(N.D),w.rXU(mh.ce),w.rXU(QP))},BP.ɵcmp=w.VBU({type:BP,selectors:[["web-vault-extension-prompt-dialog"]],decls:18,vars:17,consts:[[1,"tw-max-w-3xl","tw-p-9","tw-border","tw-border-solid","tw-border-border-base","tw-rounded-xl","tw-bg-background","tw-text-center"],[1,"tw-mb-[1.875rem]",3,"content","ariaLabel"],[1,"tw-flex","tw-flex-col","tw-gap-[1.6875rem]"],[1,"tw-mb-0"],[1,"tw-flex","tw-gap-[1.125rem]","tw-justify-center"],["bitButton","secondary","type","button",3,"click"],["bitButton","","buttonType","primary","target","_blank","rel","noopener noreferrer",3,"click","href"],["name","bwi-external-link",1,"tw-ml-[0.42rem]"]],template:function(e,t){1&e&&(w.j41(0,"div",0),w.nrm(1,"bit-svg",1),w.nI1(2,"i18n"),w.j41(3,"div",2)(4,"h2",3),w.EFF(5),w.nI1(6,"i18n"),w.k0s(),w.j41(7,"p",3),w.EFF(8),w.nI1(9,"i18n"),w.k0s(),w.j41(10,"div",4)(11,"button",5),w.bIt("click",function(){return t.dismissPrompt()}),w.EFF(12),w.nI1(13,"i18n"),w.k0s(),w.j41(14,"a",6),w.bIt("click",function(){return t.dismissPrompt()}),w.EFF(15),w.nI1(16,"i18n"),w.nrm(17,"bit-icon",7),w.k0s()()()()),2&e&&(w.R7$(),w.Y8G("content",t.extensionMockLogin)("ariaLabel",w.bMT(2,7,"extensionPromptImageAlt")),w.R7$(4),w.SpI(" ",w.bMT(6,9,"extensionPromptHeading")," "),w.R7$(3),w.SpI(" ",w.bMT(9,11,"extensionPromptBody")," "),w.R7$(4),w.SpI(" ",w.bMT(13,13,"skip")," "),w.R7$(2),w.Y8G("href",t.webStoreUrl,w.B4B),w.R7$(),w.SpI(" ",w.bMT(16,15,"downloadExtension")," "))},dependencies:[L.MD,Ah.t,fh.Q,ph.P,ve.R,lf.k,ce.$Z],encapsulation:2,changeDetection:0});var EP=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const SP=new b.Ok(b.yh,"vaultWelcomeExtensionDialogDismissed",{deserializer:e=>e,clearOn:[]});class QP{constructor(){this.stateProvider=(0,B.WQX)(b.v2),this.webBrowserInteractionService=(0,B.WQX)(uD),this.accountService=(0,B.WQX)(N.D),this.configService=(0,B.WQX)(O.w),this.dialogService=(0,B.WQX)(T.o)}conditionallyPromptUserForExtension(e){return EP(this,void 0,void 0,function*(){const t=(0,u._)(this.webBrowserInteractionService.extensionInstalled$);if(yield(0,u._)(this.getDialogDismissedState(e).state$.pipe((0,p.T)(e=>null!=e&&e))))return!1;if(!(yield this.profileIsWithinThresholds()))return!1;if(yield t)return!1;const i=BP.open(this.dialogService);return yield(0,u._)(i.closed),!0})}getDialogDismissedState(e){return this.stateProvider.getUser(e,SP)}profileIsWithinThresholds(){return EP(this,void 0,void 0,function*(){const e=yield(0,u._)(this.accountService.activeAccount$.pipe((0,p.T)(e=>null==e?void 0:e.creationDate)));if(!e)return!1;const t=yield this.configService.getFeatureFlag(Kr.TO.PM29438_DialogWithExtensionPromptAccountAge),i=new Date,n=(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate())-Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()))/864e5;return n>=(null!=t?t:0)&&n<30})}}QP.ɵfac=function(e){return new(e||QP)},QP.ɵprov=B.jDH({token:QP,factory:QP.ɵfac,providedIn:"root"});var kP=i(7243),RP=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const FP="dismissed",TP="getStarted",DP=new b.Ok(b.b4,"vaultWelcomeDialogAcknowledged",{deserializer:e=>e,clearOn:[]});class PP{constructor(e){this.dialogRef=e,this.accountService=(0,B.WQX)(N.D),this.stateProvider=(0,B.WQX)(b.v2),this.coachmarkService=(0,B.WQX)(kP.T)}onDismiss(){return RP(this,void 0,void 0,function*(){yield this.setAcknowledged(),yield this.dialogRef.close(FP)})}onPrimaryCta(){return RP(this,void 0,void 0,function*(){yield this.setAcknowledged(),yield this.dialogRef.close(TP),yield this.coachmarkService.startTour()})}setAcknowledged(){return RP(this,void 0,void 0,function*(){const e=yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6));yield this.stateProvider.setUserState(DP,!0,e)})}static open(e){return e.open(PP,{disableClose:!0,positionStrategy:new T.u})}}PP.ɵfac=function(e){return new(e||PP)(w.rXU(mh.ce))},PP.ɵcmp=w.VBU({type:PP,selectors:[["app-vault-welcome-dialog"]],decls:19,vars:15,consts:[["dialogSize","large",1,"tw-p-0"],["bitDialogContent","",1,"tw-p-2","tw-pb-0"],["src","../../../../images/welcome-dialog-graphic.png",1,"tw-max-w-full",3,"alt"],[1,"tw-px-12","tw-pt-6","tw-text-center"],[1,"tw-px-12"],["bitTypography","h2",1,"tw-mb-4"],["bitTypography","body1",1,"tw-mb-0","tw-text-muted"],["bitDialogFooter","",1,"tw-w-full","tw-flex","tw-justify-center","tw-gap-4","tw-pb-3"],["bitButton","","buttonType","secondary","type","button",3,"click"],["bitButton","","buttonType","primary","type","button",3,"click"]],template:function(e,t){1&e&&(w.j41(0,"bit-dialog",0)(1,"div",1),w.nrm(2,"img",2),w.nI1(3,"i18n"),w.j41(4,"div",3)(5,"div",4)(6,"h2",5),w.EFF(7),w.nI1(8,"i18n"),w.k0s(),w.j41(9,"p",6),w.EFF(10),w.nI1(11,"i18n"),w.k0s()()()(),w.j41(12,"div",7)(13,"button",8),w.bIt("click",function(){return t.onDismiss()}),w.EFF(14),w.nI1(15,"i18n"),w.k0s(),w.j41(16,"button",9),w.bIt("click",function(){return t.onPrimaryCta()}),w.EFF(17),w.nI1(18,"i18n"),w.k0s()()()),2&e&&(w.R7$(2),w.Y8G("alt",w.bMT(3,5,"welcomeDialogGraphicAlt")),w.R7$(5),w.SpI(" ",w.bMT(8,7,"vaultWelcomeDialogTitle")," "),w.R7$(3),w.SpI(" ",w.bMT(11,9,"vaultWelcomeDialogDescription")," "),w.R7$(4),w.SpI(" ",w.bMT(15,11,"vaultWelcomeDialogDismissCta")," "),w.R7$(3),w.SpI(" ",w.bMT(18,13,"vaultWelcomeDialogPrimaryCta")," "))},dependencies:[L.MD,ph.P,bh.m,Ch.hJ,Ah.t,fh.Q,Fp.E,Tp.r,Nh.p,Hh.$],encapsulation:2,changeDetection:0});var MP=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const xP=new b.Ok(b.b4,"vaultWelcomeDialogAcknowledged",{deserializer:e=>e,clearOn:[]});class VP{constructor(){this.accountService=(0,B.WQX)(N.D),this.dialogService=(0,B.WQX)(T.o),this.stateProvider=(0,B.WQX)(b.v2)}conditionallyShowWelcomeDialog(){return MP(this,void 0,void 0,function*(){const e=yield(0,u._)(this.accountService.activeAccount$);if(!e)return;const t=e.creationDate;if(!t)return;const i=Date.now()-t.getTime();if(!(i>=0&&i<=2592e6))return;if(yield(0,u._)(this.stateProvider.getUserState$(xP,e.id).pipe((0,p.T)(e=>null!=e&&e))))return;const n=PP.open(this.dialogService);yield(0,u._)(n.closed)})}}VP.ɵfac=function(e){return new(e||VP)},VP.ɵprov=B.jDH({token:VP,factory:VP.ɵfac,providedIn:"root"});var GP=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class UP{constructor(){this.unifiedUpgradePromptService=(0,B.WQX)(CP),this.vaultItemTransferService=(0,B.WQX)(dh.DL),this.policyService=(0,B.WQX)(Je.m),this.accountService=(0,B.WQX)(N.D),this.configService=(0,B.WQX)(O.w),this.autoConfirmService=(0,B.WQX)(Ne.zh),this.organizationService=(0,B.WQX)(v.PV),this.dialogService=(0,B.WQX)(T.o),this.logService=(0,B.WQX)(qA.Kc),this.webVaultExtensionPromptService=(0,B.WQX)(QP),this.welcomeDialogService=(0,B.WQX)(VP),this.userId$=this.accountService.activeAccount$.pipe(f.F6),this.organizations$=this.userId$.pipe((0,jt.n)(e=>this.organizationService.organizations$(e)))}conditionallyPromptUser(){return GP(this,void 0,void 0,function*(){const e=yield(0,u._)(this.userId$);yield this.vaultItemTransferService.enforceOrganizationDataOwnership(e),this.checkForAutoConfirm();const t=yield(0,u._)(this.configService.serverSettings$);(null==t?void 0:t.suppressOnboardingInterstitials)||(yield this.unifiedUpgradePromptService.displayUpgradePromptConditionally())||(yield this.welcomeDialogService.conditionallyShowWelcomeDialog(),yield this.webVaultExtensionPromptService.conditionallyPromptUserForExtension(e))})}openAutoConfirmFeatureDialog(e){Gg.ZQ.open(this.dialogService,{data:{policy:new Gg.WS(!0),organization:e}})}checkForAutoConfirm(){const e=this.organizations$.pipe((0,p.T)(e=>e[0])),t=this.userId$.pipe((0,jt.n)(e=>this.autoConfirmService.configuration$(e))),i=(0,xt.z)([this.userId$.pipe((0,jt.n)(e=>this.policyService.policies$(e)),(0,p.T)(e=>e.find(e=>e.type===_e.tt.AutomaticUserConfirmation&&e.enabled))),e]).pipe((0,p.T)(([e,t])=>{var i;return null!==(i=e&&e.organizationId===(null==t?void 0:t.id))&&void 0!==i&&i}));(0,Hr.y)([e,t,i,this.userId$]).pipe((0,lA.$)(),(0,jt.n)(e=>GP(this,[e],void 0,function*([e,t,i,n]){!i&&t.showSetupDialog&&!!e&&e.canEnableAutoConfirmPolicy&&(this.openAutoConfirmFeatureDialog(e),yield this.autoConfirmService.upsert(n,Object.assign(Object.assign({},t),{showSetupDialog:!1})))}))).subscribe({error:e=>this.logService.error("Failed to update auto-confirm state",e)})}}UP.ɵfac=function(e){return new(e||UP)},UP.ɵprov=B.jDH({token:UP,factory:UP.ɵfac});var OP=i(9083),NP=i(45392),jP=i(90097),YP=i(1094),XP=i(91326),zP=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class LP{constructor(e,t,i,n,r){this.apiService=e,this.i18nService=t,this.platformUtilsService=i,this.tokenService=n,this.toastService=r,this.onVerified=new B.bkB,this.onDismiss=new B.bkB,this.send=()=>zP(this,void 0,void 0,function*(){yield this.verifyEmail()})}verifyEmail(){return zP(this,void 0,void 0,function*(){if(yield this.apiService.refreshIdentityToken(),yield this.tokenService.getEmailVerified())return this.onVerified.emit(!0),void this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("emailVerified")});yield this.apiService.postAccountVerifyEmail(),this.toastService.showToast({variant:"success",title:null,message:this.i18nService.t("checkInboxForVerification")})})}}LP.ɵfac=function(e){return new(e||LP)(w.rXU(je.G),w.rXU(he.W),w.rXU(G.y),w.rXU(z.B),w.rXU(F.f))},LP.ɵcmp=w.VBU({type:LP,selectors:[["app-verify-email"]],outputs:{onVerified:"onVerified",onDismiss:"onDismiss"},decls:6,vars:6,consts:[["variant","warning",3,"dismiss"],["id","sendBtn","bitLink","","linkType","secondary","type","button","buttonType","unstyled",3,"click"]],template:function(e,t){1&e&&(w.j41(0,"bit-banner",0),w.bIt("dismiss",function(){return t.onDismiss.emit()}),w.EFF(1),w.nI1(2,"i18n"),w.j41(3,"button",1),w.bIt("click",function(){return t.send()}),w.EFF(4),w.nI1(5,"i18n"),w.k0s()()),2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,2,"verifyEmailDesc")," "),w.R7$(3),w.SpI(" ",w.bMT(5,4,"sendEmail")," "))},dependencies:[vh.C,jP.H,XP.K,Ah.t,L.MD,Nh.p,Gh.V,jh.g,Hh.$],encapsulation:2});var WP=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const KP={OutdatedBrowser:"outdated-browser",VerifyEmail:"verify-email",PendingAuthRequest:"pending-auth-request"},ZP=new C.Ok(C.Iw,"bannersDismissed",{deserializer:e=>e,clearOn:[]});class HP{constructor(e,t,i,n,r,s){this.accountService=e,this.stateProvider=t,this.billingAccountProfileStateService=i,this.platformUtilsService=n,this.syncService=r,this.authRequestService=s}shouldShowPendingAuthRequestBanner(e){return WP(this,void 0,void 0,function*(){const t=(yield this.getBannerDismissedState(e)).includes(KP.PendingAuthRequest);return(yield(0,u._)(this.authRequestService.getPendingAuthRequests$())).length>0&&!t})}shouldShowUpdateBrowserBanner(e){return WP(this,void 0,void 0,function*(){const t=-1!==window.navigator.userAgent.indexOf("MSIE"),i=(yield this.getBannerDismissedState(e)).includes(KP.OutdatedBrowser);return t&&!i})}shouldShowVerifyEmailBanner(e){return WP(this,void 0,void 0,function*(){var t;const i=!(null===(t=yield(0,u._)(this.accountService.accounts$.pipe((0,p.T)(t=>t[e]))))||void 0===t?void 0:t.emailVerified),n=(yield this.getBannerDismissedState(e)).includes(KP.VerifyEmail);return i&&!n})}dismissBanner(e,t){return WP(this,void 0,void 0,function*(){yield this.sessionBannerState(e).update(e=>[...null!=e?e:[],t])})}sessionBannerState(e){return this.stateProvider.getUser(e,ZP)}getBannerDismissedState(e){return WP(this,void 0,void 0,function*(){var t;return null!==(t=yield(0,u._)(this.sessionBannerState(e).state$))&&void 0!==t?t:[]})}}HP.ɵfac=function(e){return new(e||HP)(B.KVO(N.D),B.KVO(C.v2),B.KVO(gr.Q),B.KVO(G.y),B.KVO(Gp.H),B.KVO(g.XF))},HP.ɵprov=B.jDH({token:HP,factory:HP.ɵfac});var JP=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const qP=(e,t)=>t.id;function $P(e,t){if(1&e){const e=w.RV6();w.j41(0,"app-organization-free-trial-warning",4),w.bIt("clicked",function(){const t=B.eBV(e).$implicit,i=w.XpG();return B.Njj(i.navigateToPaymentMethod(t.id))}),w.k0s()}if(2&e){const e=t.$implicit;w.Y8G("organization",e)("includeOrganizationNameInMessaging",!0)}}function _P(e,t){if(1&e){const e=w.RV6();w.j41(0,"bit-banner",5),w.bIt("dismiss",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.dismissBanner(t.VisibleVaultBanner.OutdatedBrowser))}),w.EFF(1),w.nI1(2,"i18n"),w.j41(3,"a",6),w.EFF(4),w.nI1(5,"i18n"),w.k0s()()}2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,2,"updateBrowserDesc")," "),w.R7$(3),w.SpI(" ",w.bMT(5,4,"updateBrowser")," "))}function eM(e,t){if(1&e){const e=w.RV6();w.j41(0,"bit-banner",7),w.bIt("dismiss",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.dismissBanner(t.VisibleVaultBanner.PendingAuthRequest))}),w.EFF(1),w.nI1(2,"i18n"),w.j41(3,"a",8),w.EFF(4),w.nI1(5,"i18n"),w.k0s()()}2&e&&(w.R7$(),w.SpI(" ",w.bMT(2,2,"youHaveAPendingLoginRequest")," "),w.R7$(3),w.SpI(" ",w.bMT(5,4,"reviewLoginRequest")," "))}function tM(e,t){if(1&e){const e=w.RV6();w.j41(0,"app-verify-email",9),w.bIt("onDismiss",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.dismissBanner(t.VisibleVaultBanner.VerifyEmail))})("onVerified",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.dismissBanner(t.VisibleVaultBanner.VerifyEmail))}),w.k0s()}}class iM{constructor(e,t,i,n){this.vaultBannerService=e,this.router=t,this.accountService=i,this.messageListener=n,this.visibleBanners=[],this.VisibleVaultBanner=KP,this.organizations=[],this.activeUserId$=this.accountService.activeAccount$.pipe((0,p.T)(e=>null==e?void 0:e.id)),this.messageListener.allMessages$.pipe((0,h.p)(e=>"openLoginApproval"===e.command),(0,c.pQ)()).subscribe(()=>{this.visibleBanners.includes(KP.PendingAuthRequest)||(this.visibleBanners=[...this.visibleBanners,KP.PendingAuthRequest])})}ngOnInit(){return JP(this,void 0,void 0,function*(){yield this.determineVisibleBanners()})}dismissBanner(e){return JP(this,void 0,void 0,function*(){const t=yield(0,u._)(this.activeUserId$);t&&(yield this.vaultBannerService.dismissBanner(t,e),yield this.determineVisibleBanners())})}navigateToPaymentMethod(e){return JP(this,void 0,void 0,function*(){yield this.router.navigate(["organizations",e,"billing","payment-details"],{state:{launchPaymentModalAutomatically:!0}})})}determineVisibleBanners(){return JP(this,void 0,void 0,function*(){const e=yield(0,u._)(this.activeUserId$);if(!e)return;const t=yield this.vaultBannerService.shouldShowUpdateBrowserBanner(e),i=yield this.vaultBannerService.shouldShowVerifyEmailBanner(e),n=yield this.vaultBannerService.shouldShowPendingAuthRequestBanner(e);this.visibleBanners=[t?KP.OutdatedBrowser:null,i?KP.VerifyEmail:null,n?KP.PendingAuthRequest:null].filter(e=>null!==e)})}}iM.ɵfac=function(e){return new(e||iM)(w.rXU(HP),w.rXU(R.Ix),w.rXU(N.D),w.rXU(ca.qk))},iM.ɵcmp=w.VBU({type:iM,selectors:[["app-vault-banners"]],inputs:{organizations:"organizations"},features:[w.Jv_([HP])],decls:5,vars:3,consts:[[3,"organization","includeOrganizationNameInMessaging"],["id","update-browser-banner","variant","warning"],["id","pending-auth-request-banner","variant","primary","icon","bwi-info-circle"],["id","verify-email-banner"],[3,"clicked","organization","includeOrganizationNameInMessaging"],["id","update-browser-banner","variant","warning",3,"dismiss"],["bitLink","","linkType","secondary","target","_blank","href","https://browser-update.org/update-browser.html","rel","noreferrer noopener"],["id","pending-auth-request-banner","variant","primary","icon","bwi-info-circle",3,"dismiss"],["bitLink","","linkType","secondary","routerLink","/settings/security/device-management"],["id","verify-email-banner",3,"onDismiss","onVerified"]],template:function(e,t){1&e&&(w.Z7z(0,$P,1,2,"app-organization-free-trial-warning",0,qP),w.nVh(2,_P,6,6,"bit-banner",1),w.nVh(3,eM,6,6,"bit-banner",2),w.nVh(4,tM,1,0,"app-verify-email",3)),2&e&&(w.Dyx(t.organizations),w.R7$(2),w.vxM(t.visibleBanners.includes(t.VisibleVaultBanner.OutdatedBrowser)?2:-1),w.R7$(),w.vxM(t.visibleBanners.includes(t.VisibleVaultBanner.PendingAuthRequest)?3:-1),w.R7$(),w.vxM(t.visibleBanners.includes(t.VisibleVaultBanner.VerifyEmail)?4:-1))},dependencies:[LP,Tv.G,Hp.Wk,jh.g,jP.H,XP.K,YP.zU,Hh.$],encapsulation:2});var nM=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};class rM{constructor(){}static open(e,t,i,n,r,s,o,a,l,c,d,h){return nM(this,void 0,void 0,function*(){const A=yield ne.GA.open(e,{title:"enrollAccountRecovery",calloutOptions:{text:"resetPasswordEnrollmentWarning",type:"warning"},verificationType:{type:"custom",verificationFn:r=>nM(this,void 0,void 0,function*(){const s=(yield(0,u._)(d.activeAccount$)).id,o=zt.A.fromB64ToArray((yield h.getKeys(t.organization.id)).publicKey),l=yield a.buildRequest(r),A=Pp.open(e,{name:t.organization.name,orgId:t.organization.id,publicKey:o});if(!0!==(yield(0,hh.s)(A.closed)))throw new Error("Organization not trusted, aborting user key rotation");const p=[o],g=yield(0,u._)(c.userKey$(s));return l.resetPasswordKey=yield i.buildRecoveryKey(t.organization.id,g,p),yield n.putOrganizationUserResetPasswordEnrollment(t.organization.id,t.organization.userId,l),!0})}});if("cancel"!==A.userAction&&A.verificationSuccess)try{l.showToast({variant:"success",title:null,message:r.t("enrollPasswordResetSuccess")}),yield s.fullSync(!0)}catch(p){o.error(p)}})}}var sM=i(49492),oM=i(5771),aM=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function lM(e,t){1&e&&(w.qex(0),w.nrm(1,"i",5),w.nI1(2,"i18n"),w.j41(3,"span",6),w.EFF(4),w.nI1(5,"i18n"),w.k0s(),w.bVm()),2&e&&(w.R7$(),w.Y8G("title",w.mNQ(w.bMT(2,3,"loading"))),w.R7$(3),w.JRh(w.bMT(5,5,"loading")))}function cM(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",9),w.bIt("click",function(){B.eBV(e);const t=w.XpG(3);return B.Njj(t.toggleResetPasswordEnrollment(t.organization))}),w.nrm(1,"i",10),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"enrollAccountRecovery")," "))}function dM(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",9),w.bIt("click",function(){B.eBV(e);const t=w.XpG(3);return B.Njj(t.toggleResetPasswordEnrollment(t.organization))}),w.nrm(1,"i",11),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"withdrawAccountRecovery")," "))}function uM(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",9),w.bIt("click",function(){B.eBV(e);const t=w.XpG(4);return B.Njj(t.unlinkSso(t.organization))}),w.nrm(1,"i",12),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"unlinkSso")," "))}function hM(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",9),w.bIt("click",function(){B.eBV(e);const t=w.XpG(4);return B.Njj(t.handleLinkSso(t.organization))}),w.nrm(1,"i",13),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"linkSso")," "))}function AM(e,t){if(1&e&&(w.qex(0),w.nVh(1,uM,4,3,"button",7)(2,hM,4,3,"button",7),w.bVm()),2&e){const e=w.XpG(3);w.R7$(),w.vxM(e.organization.ssoBound?1:2)}}function pM(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",14),w.bIt("click",function(){B.eBV(e);const t=w.XpG(3);return B.Njj(t.leave(t.organization))}),w.nrm(1,"bit-icon",15),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"leave")," "))}function gM(e,t){if(1&e&&(w.j41(0,"div",4),w.nVh(1,cM,4,3,"button",7),w.nVh(2,dM,4,3,"button",7),w.nVh(3,AM,3,1,"ng-container"),w.nVh(4,pM,4,3,"button",8),w.k0s()),2&e){const e=w.XpG(2);w.Y8G("appApiAction",e.actionPromise),w.R7$(),w.vxM(e.allowEnrollmentChanges(e.organization)&&!e.organization.resetPasswordEnrolled?1:-1),w.R7$(),w.vxM(e.allowEnrollmentChanges(e.organization)&&e.organization.resetPasswordEnrolled?2:-1),w.R7$(),w.vxM(e.showSsoOptions(e.organization)?3:-1),w.R7$(),w.vxM(e.showLeaveOrgOption?4:-1)}}function vM(e,t){if(1&e&&(w.qex(0),w.j41(1,"button",1),w.nI1(2,"i18n"),w.nrm(3,"i",2),w.k0s(),w.j41(4,"bit-menu",3,0),w.nVh(6,lM,6,7,"ng-container")(7,gM,5,5,"div",4),w.k0s(),w.bVm()),2&e){const e=w.sdS(5),t=w.XpG();w.R7$(),w.Y8G("bitMenuTriggerFor",e),w.BMQ("aria-label",w.bMT(2,3,"organizationOptionsMenu")),w.R7$(5),w.vxM(t.loaded?7:6)}}class mM{constructor(e,t,i,n,r,s,o,a,l,c,u,h,A,p,g,v,m,f,y,b){this.organization$=e,this.platformUtilsService=t,this.i18nService=i,this.apiService=n,this.syncService=r,this.policyService=s,this.logService=o,this.organizationApiService=a,this.organizationUserApiService=l,this.userDecryptionOptionsService=c,this.dialogService=u,this.resetPasswordService=h,this.userVerificationService=A,this.toastService=p,this.configService=g,this.organizationService=v,this.keyService=m,this.accountService=f,this.linkSsoService=y,this.ssoLoginService=b,this.loaded=!1,this.hideMenu=!1,this.showLeaveOrgOption=!1,this.destroy$=new d.B}ngOnInit(){return aM(this,void 0,void 0,function*(){const e=this.accountService.activeAccount$.pipe(f.F6,(0,jt.n)(e=>this.policyService.policies$(e)),(0,p.T)(e=>e.filter(e=>e.type==_e.tt.ResetPassword))),t=this.accountService.activeAccount$.pipe(f.F6,(0,jt.n)(e=>this.organizationService.organizations$(e)),(0,p.T)(e=>e.find(e=>!0===e.userIsClaimedByOrganization)));(0,xt.z)([this.organization$,e,this.accountService.activeAccount$.pipe(f.F6,(0,jt.n)(e=>this.userDecryptionOptionsService.userDecryptionOptionsById$(e))),t]).pipe((0,en.Q)(this.destroy$)).subscribe(([e,t,i,n])=>{this.organization=e,this.resetPasswordPolicy=t.find(t=>t.organizationId===e.id),this.showLeaveOrgOption=(null==n?void 0:n.id)!==e.id&&(null==i.trustedDeviceOption&&null==i.keyConnectorOption||i.hasMasterPassword),this.hideMenu=!this.showLeaveOrgOption&&!this.showSsoOptions(this.organization)&&!this.allowEnrollmentChanges(this.organization),this.loaded=!0})})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}allowEnrollmentChanges(e){return!!((null==e?void 0:e.usePolicies)&&(null==e?void 0:e.useResetPassword)&&(null==e?void 0:e.hasPublicAndPrivateKeys)&&null!=this.resetPasswordPolicy&&this.resetPasswordPolicy.enabled)&&!((null==e?void 0:e.resetPasswordEnrolled)&&this.resetPasswordPolicy.data.autoEnrollEnabled)}showSsoOptions(e){return(null==e?void 0:e.useSso)&&(null==e?void 0:e.identifier)}handleLinkSso(e){return aM(this,void 0,void 0,function*(){try{yield this.linkSsoService.linkSso(e.identifier)}catch(t){this.logService.error(t),this.toastService.showToast({variant:"error",title:"",message:this.i18nService.t("errorOccurred")})}})}unlinkSso(e){return aM(this,void 0,void 0,function*(){if(!(yield this.dialogService.openSimpleDialog({title:e.name,content:{key:"unlinkSsoConfirmation"},type:"warning"})))return!1;try{this.actionPromise=this.apiService.deleteSsoUser(e.id).then(()=>this.syncService.fullSync(!0)),yield this.actionPromise,this.toastService.showToast({variant:"success",title:"",message:this.i18nService.t("unlinkedSso")}),yield this.removeUserFromSsoRequiredCacheIfPresent()}catch(t){this.logService.error(t)}})}leave(e){return aM(this,void 0,void 0,function*(){if(!(yield this.dialogService.openSimpleDialog({title:e.name,content:{key:"leaveOrganizationConfirmation"},type:"warning"})))return!1;try{this.actionPromise=this.organizationApiService.leave(e.id),yield this.actionPromise,this.toastService.showToast({variant:"success",title:"",message:this.i18nService.t("leftOrganization")}),yield this.removeUserFromSsoRequiredCacheIfPresent()}catch(t){this.logService.error(t)}})}removeUserFromSsoRequiredCacheIfPresent(){return aM(this,void 0,void 0,function*(){const e=yield(0,u._)(this.accountService.activeAccount$);e?yield this.ssoLoginService.removeFromSsoRequiredCacheIfPresent(e.email,e.id):this.logService.error("Active account not found.")})}toggleResetPasswordEnrollment(e){return aM(this,void 0,void 0,function*(){if(this.organization.resetPasswordEnrolled){const e=new _.Wt;e.masterPasswordHash="ignored",e.resetPasswordKey="",this.actionPromise=this.organizationUserApiService.putOrganizationUserResetPasswordEnrollment(this.organization.id,this.organization.userId,e);try{yield this.actionPromise,this.toastService.showToast({variant:"success",title:"",message:this.i18nService.t("withdrawPasswordResetSuccess")}),yield this.syncService.fullSync(!0)}catch(t){this.logService.error(t)}}else yield rM.open(this.dialogService,{organization:e},this.resetPasswordService,this.organizationUserApiService,this.i18nService,this.syncService,this.logService,this.userVerificationService,this.toastService,this.keyService,this.accountService,this.organizationApiService)})}}function fM(e,t){if(1&e){const e=w.RV6();w.j41(0,"div",4)(1,"div",5)(2,"h4",6),w.EFF(3),w.nI1(4,"i18n"),w.k0s(),w.j41(5,"button",7),w.bIt("click",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.closePopup())}),w.nrm(6,"i",8),w.k0s()(),w.j41(7,"div",9)(8,"label",10)(9,"input",11),w.mxI("ngModelChange",function(t){B.eBV(e);const i=w.XpG();return w.DH7(i.matchType,t)||(i.matchType=t),B.Njj(t)}),w.bIt("change",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.onFormChange())}),w.k0s(),w.EFF(10),w.nI1(11,"i18n"),w.k0s(),w.j41(12,"label",10)(13,"input",12),w.mxI("ngModelChange",function(t){B.eBV(e);const i=w.XpG();return w.DH7(i.matchType,t)||(i.matchType=t),B.Njj(t)}),w.bIt("change",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.onFormChange())}),w.k0s(),w.EFF(14),w.nI1(15,"i18n"),w.k0s()(),w.j41(16,"div",13)(17,"label",14),w.EFF(18),w.nI1(19,"i18n"),w.k0s(),w.j41(20,"input",15),w.nI1(21,"i18n"),w.mxI("ngModelChange",function(t){B.eBV(e);const i=w.XpG();return w.DH7(i.nameInclude,t)||(i.nameInclude=t),B.Njj(t)}),w.bIt("input",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.onFormChange())}),w.k0s(),w.j41(22,"input",16),w.nI1(23,"i18n"),w.mxI("ngModelChange",function(t){B.eBV(e);const i=w.XpG();return w.DH7(i.nameExclude,t)||(i.nameExclude=t),B.Njj(t)}),w.bIt("input",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.onFormChange())}),w.k0s()(),w.j41(24,"div",13)(25,"label",14),w.EFF(26),w.nI1(27,"i18n"),w.k0s(),w.j41(28,"input",15),w.nI1(29,"i18n"),w.mxI("ngModelChange",function(t){B.eBV(e);const i=w.XpG();return w.DH7(i.usernameInclude,t)||(i.usernameInclude=t),B.Njj(t)}),w.bIt("input",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.onFormChange())}),w.k0s(),w.j41(30,"input",16),w.nI1(31,"i18n"),w.mxI("ngModelChange",function(t){B.eBV(e);const i=w.XpG();return w.DH7(i.usernameExclude,t)||(i.usernameExclude=t),B.Njj(t)}),w.bIt("input",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.onFormChange())}),w.k0s()(),w.j41(32,"div",13)(33,"label",14),w.EFF(34),w.nI1(35,"i18n"),w.k0s(),w.j41(36,"input",15),w.nI1(37,"i18n"),w.mxI("ngModelChange",function(t){B.eBV(e);const i=w.XpG();return w.DH7(i.notesInclude,t)||(i.notesInclude=t),B.Njj(t)}),w.bIt("input",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.onFormChange())}),w.k0s(),w.j41(38,"input",16),w.nI1(39,"i18n"),w.mxI("ngModelChange",function(t){B.eBV(e);const i=w.XpG();return w.DH7(i.notesExclude,t)||(i.notesExclude=t),B.Njj(t)}),w.bIt("input",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.onFormChange())}),w.k0s()()()}if(2&e){const e=w.XpG();w.R7$(3),w.JRh(w.bMT(4,20,"advancedSearch")),w.R7$(6),w.R50("ngModel",e.matchType),w.R7$(),w.SpI(" ",w.bMT(11,22,"matchAllTerms")," "),w.R7$(3),w.R50("ngModel",e.matchType),w.R7$(),w.SpI(" ",w.bMT(15,24,"matchAnyTerm")," "),w.R7$(4),w.JRh(w.bMT(19,26,"itemName")),w.R7$(2),w.Y8G("placeholder",w.bMT(21,28,"include")),w.R50("ngModel",e.nameInclude),w.R7$(2),w.Y8G("placeholder",w.bMT(23,30,"exclude")),w.R50("ngModel",e.nameExclude),w.R7$(4),w.JRh(w.bMT(27,32,"username")),w.R7$(2),w.Y8G("placeholder",w.bMT(29,34,"include")),w.R50("ngModel",e.usernameInclude),w.R7$(2),w.Y8G("placeholder",w.bMT(31,36,"exclude")),w.R50("ngModel",e.usernameExclude),w.R7$(4),w.JRh(w.bMT(35,38,"notes")),w.R7$(2),w.Y8G("placeholder",w.bMT(37,40,"include")),w.R50("ngModel",e.notesInclude),w.R7$(2),w.Y8G("placeholder",w.bMT(39,42,"exclude")),w.R50("ngModel",e.notesExclude)}}mM.ɵfac=function(e){return new(e||mM)(w.rXU(sM.n),w.rXU(G.y),w.rXU(he.W),w.rXU(je.G),w.rXU(mc.H),w.rXU(Je.m),w.rXU(se.K),w.rXU(Xe.X),w.rXU(_.uB),w.rXU(g.Ym),w.rXU(T.o),w.rXU(Og.w),w.rXU(Ai.i),w.rXU(F.f),w.rXU(O.w),w.rXU(v.PV),w.rXU(I.Lu),w.rXU(N.D),w.rXU(pv),w.rXU(ui._))},mM.ɵcmp=w.VBU({type:mM,selectors:[["app-organization-options"]],standalone:!1,decls:1,vars:1,consts:[["optionsMenu",""],["type","button",1,"filter-options-icon",3,"bitMenuTriggerFor"],["aria-hidden","true",1,"bwi","bwi-ellipsis-v"],[1,"filter-organization-options"],[1,"tw-flex","tw-min-w-[200px]","tw-max-w-[300px]","tw-flex-col",3,"appApiAction"],["aria-hidden","true",1,"bwi","bwi-spinner","bwi-spin","tw-m-2","tw-text-muted",3,"title"],[1,"tw-sr-only"],["type","button","bitMenuItem",""],["type","button","variant","danger","bitMenuItem",""],["type","button","bitMenuItem","",3,"click"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-key"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-undo"],[1,"bwi","bwi-fw","bwi-minus-circle"],[1,"bwi","bwi-fw","bwi-plus-circle"],["type","button","variant","danger","bitMenuItem","",3,"click"],["fixedWidth","","name","bwi-sign-out","slot","start"]],template:function(e,t){1&e&&w.nVh(0,vM,8,5,"ng-container"),2&e&&w.vxM(t.hideMenu?-1:0)},dependencies:[oM.k,ve.R,Kb.Z,Zb.O,Hb.S,Hh.$],encapsulation:2});class yM{constructor(){this.searchText="",this.searchTextChange=new B.bkB,this.isOpen=!1,this.matchType="and",this.nameInclude="",this.nameExclude="",this.usernameInclude="",this.usernameExclude="",this.notesInclude="",this.notesExclude=""}ngOnChanges(e){e.searchText&&(this.isOpen&&this.searchText===this.getSerializedSearchText()||this.parseSearchText(this.searchText))}togglePopup(){this.isOpen=!this.isOpen,this.isOpen&&this.searchText!==this.getSerializedSearchText()&&this.parseSearchText(this.searchText)}closePopup(){this.isOpen=!1}onFormChange(){this.serializeSearchText()}parseSearchText(e){if(this.matchType="or",this.nameInclude="",this.nameExclude="",this.usernameInclude="",this.usernameExclude="",this.notesInclude="",this.notesExclude="",!e)return;const t=(e.startsWith(">")?e.substring(1):e).split(/\s+/).filter(e=>e.length>0);let i=!1,n=!1;const r=(e,t)=>e.startsWith(t)?e.substring(t.length):null;t.forEach(e=>{let t=!0,s=!1,o=!1,a=e;e.startsWith("+")?(o=!0,a=e.substring(1),i=!0):e.startsWith("-")?(s=!0,t=!1,a=e.substring(1)):n=!0;const l=r(a,"name:");if(null!==l)return void(s?this.nameExclude=this.appendTerm(this.nameExclude,l):this.nameInclude=this.appendTerm(this.nameInclude,l));const c=r(a,"login.username:");if(null!==c)return void(s?this.usernameExclude=this.appendTerm(this.usernameExclude,c):this.usernameInclude=this.appendTerm(this.usernameInclude,c));const d=r(a,"notes:");null===d?s?this.nameExclude=this.appendTerm(this.nameExclude,a):this.nameInclude=this.appendTerm(this.nameInclude,a):s?this.notesExclude=this.appendTerm(this.notesExclude,d):this.notesInclude=this.appendTerm(this.notesInclude,d)}),this.matchType=i&&!n?"and":"or"}appendTerm(e,t){return e?e+" "+t:t}getSerializedSearchText(){let e=[];const t="and"===this.matchType?"+":"",i=(i,n,r)=>{if(n){n.split(/\s+/).filter(e=>e.length>0).forEach(n=>e.push(`${t}${i}:${n}`))}if(r){r.split(/\s+/).filter(e=>e.length>0).forEach(t=>e.push(`-${i}:${t}`))}};return i("name",this.nameInclude,this.nameExclude),i("login.username",this.usernameInclude,this.usernameExclude),i("notes",this.notesInclude,this.notesExclude),e.length>0?">"+e.join(" "):""}serializeSearchText(){this.searchTextChange.emit(this.getSerializedSearchText())}}yM.ɵfac=function(e){return new(e||yM)},yM.ɵcmp=w.VBU({type:yM,selectors:[["app-advanced-search"]],inputs:{searchText:"searchText"},outputs:{searchTextChange:"searchTextChange"},standalone:!1,features:[w.OA$],decls:5,vars:4,consts:[[1,"tw-relative","tw-inline-block"],["type","button",1,"tw-p-2","tw-text-secondary-100","hover:tw-text-primary-100","tw-transition-colors",3,"click","appA11yTitle"],["aria-hidden","true",1,"bwi","bwi-filter","bwi-fw"],["class","tw-absolute tw-top-0 tw-left-full tw-ml-2 tw-z-50 tw-bg-background tw-border tw-border-solid tw-border-secondary-300 tw-rounded tw-shadow-lg tw-p-4 tw-w-80",4,"ngIf"],[1,"tw-absolute","tw-top-0","tw-left-full","tw-ml-2","tw-z-50","tw-bg-background","tw-border","tw-border-solid","tw-border-secondary-300","tw-rounded","tw-shadow-lg","tw-p-4","tw-w-80"],[1,"tw-flex","tw-justify-between","tw-items-center","tw-mb-3"],[1,"tw-m-0","tw-font-bold"],[1,"tw-text-secondary-100",3,"click"],["aria-hidden","true",1,"bwi","bwi-times"],[1,"tw-mb-4","tw-flex","tw-gap-2"],[1,"tw-flex","tw-items-center","tw-gap-2"],["type","radio","name","matchType","value","and",3,"ngModelChange","change","ngModel"],["type","radio","name","matchType","value","or",3,"ngModelChange","change","ngModel"],[1,"tw-mb-3"],[1,"tw-block","tw-text-sm","tw-font-bold","tw-mb-1","tw-whitespace-normal"],["type","text",1,"tw-w-full","tw-p-2","tw-border","tw-border-secondary-300","tw-rounded","tw-mb-2",3,"ngModelChange","input","placeholder","ngModel"],["type","text",1,"tw-w-full","tw-p-2","tw-border","tw-border-secondary-300","tw-rounded","tw-bg-danger-100",3,"ngModelChange","input","placeholder","ngModel"]],template:function(e,t){1&e&&(w.j41(0,"div",0)(1,"button",1),w.nI1(2,"i18n"),w.bIt("click",function(){return t.togglePopup()}),w.nrm(3,"i",2),w.k0s(),w.DNE(4,fM,40,44,"div",3),w.k0s()),2&e&&(w.R7$(),w.Y8G("appA11yTitle",w.bMT(2,2,"advancedSearch")),w.R7$(3),w.Y8G("ngIf",t.isOpen))},dependencies:[L.bT,a.me,a.Fm,a.BC,a.vS,Fb.C,Hh.$],encapsulation:2});var bM=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function CM(e,t){1&e&&(w.j41(0,"div",1),w.nrm(1,"i",2),w.k0s())}function IM(e,t){if(1&e&&(w.j41(0,"div",11),w.nrm(1,"app-filter-section",12),w.k0s()),2&e){const e=t.$implicit,i=w.XpG(2);w.R7$(),w.Y8G("activeFilter",i.activeFilter)("section",e)("isCollectionFilter",e===(null==i.filters?null:i.filters.collectionFilter))}}function wM(e,t){if(1&e){const e=w.RV6();w.j41(0,"div")(1,"div",3),w.EFF(2),w.nI1(3,"i18n"),w.nrm(4,"a",4),w.nI1(5,"i18n"),w.k0s(),w.j41(6,"div",5)(7,"div",6)(8,"div",7)(9,"bit-search",8),w.nI1(10,"i18n"),w.mxI("ngModelChange",function(t){B.eBV(e);const i=w.XpG();return w.DH7(i.searchText,t)||(i.searchText=t),B.Njj(t)}),w.bIt("ngModelChange",function(t){B.eBV(e);const i=w.XpG();return B.Njj(i.onSearchTextChanged(t))}),w.k0s()(),w.j41(11,"app-advanced-search",9),w.mxI("searchTextChange",function(t){B.eBV(e);const i=w.XpG();return w.DH7(i.searchText,t)||(i.searchText=t),B.Njj(t)}),w.bIt("searchTextChange",function(t){B.eBV(e);const i=w.XpG();return B.Njj(i.onSearchTextChanged(t))}),w.k0s()(),w.j41(12,"div",10),w.Z7z(13,IM,2,3,"div",11,w.fX1),w.k0s()()()}if(2&e){const e=w.XpG();w.R7$(2),w.SpI(" ",w.bMT(3,7,"filters")," "),w.R7$(2),w.Y8G("appA11yTitle",w.mNQ(w.bMT(5,9,"learnMoreAboutSearchingYourVault"))),w.R7$(5),w.Y8G("placeholder",w.mNQ(w.bMT(10,11,e.searchPlaceholder))),w.R50("ngModel",e.searchText),w.R7$(2),w.R50("searchText",e.searchText),w.R7$(2),w.Dyx(e.filtersList)}}class BM{get filtersList(){return this.filters?Object.values(this.filters):[]}get searchPlaceholder(){var e,t;return this.activeFilter.isFavorites?"searchFavorites":this.activeFilter.isDeleted?"searchTrash":this.activeFilter.isArchived?"searchArchive":this.activeFilter.cipherType===Ld.gC.Login?"searchLogin":this.activeFilter.cipherType===Ld.gC.Card?"searchCard":this.activeFilter.cipherType===Ld.gC.Identity?"searchIdentity":this.activeFilter.cipherType===Ld.gC.SecureNote?"searchSecureNote":this.activeFilter.cipherType===Ld.gC.SshKey?"searchSshKey":this.activeFilter.cipherType===Ld.gC.BankAccount?"searchBankAccount":this.activeFilter.cipherType===Ld.gC.Passport?"searchPassport":this.activeFilter.cipherType===Ld.gC.DriversLicense?"searchDriversLicense":(null===(e=this.activeFilter.selectedFolderNode)||void 0===e?void 0:e.node)?"searchFolder":(null===(t=this.activeFilter.selectedCollectionNode)||void 0===t?void 0:t.node)?"searchCollection":"MyVault"===this.activeFilter.organizationId?"searchMyVault":this.activeFilter.organizationId?"searchOrganization":"searchVault"}constructor(e,t,i,n,r,s,o,a,l,c,h,A){this.vaultFilterService=e,this.policyService=t,this.i18nService=i,this.platformUtilsService=n,this.toastService=r,this.billingApiService=s,this.dialogService=o,this.accountService=a,this.restrictedItemTypesService=l,this.cipherService=c,this.cipherArchiveService=h,this.premiumUpgradePromptService=A,this.activeFilter=new dh.$5,this.onEditFolder=new B.bkB,this.searchText="",this.searchTextChanged=new B.bkB,this.isLoaded=!1,this.destroy$=new d.B,this.organizationWarningsService=(0,B.WQX)(AP.S),this.activeUserId$=this.accountService.activeAccount$.pipe(f.F6),this.applyOrganizationFilter=e=>bM(this,void 0,void 0,function*(){const t=this.activeFilter;"AllVaults"===(null==e?void 0:e.node.id)?t.resetOrganization():t.selectedOrganizationNode=e,this.vaultFilterService.setOrganizationFilter(e.node);const i=yield(0,u._)(this.activeUserId$);yield this.vaultFilterService.expandOrgFilter(i)}),this.applyTypeFilter=e=>bM(this,void 0,void 0,function*(){const t=this.activeFilter;t.resetFilter(),t.selectedCipherTypeNode=e}),this.applyFolderFilter=e=>bM(this,void 0,void 0,function*(){const t=this.activeFilter;t.resetFilter(),t.selectedFolderNode=e}),this.applyCollectionFilter=e=>bM(this,void 0,void 0,function*(){const t=this.activeFilter;t.resetFilter(),t.selectedCollectionNode=e}),this.editFolder=e=>bM(this,void 0,void 0,function*(){this.onEditFolder.emit(e)})}ngOnInit(){return bM(this,void 0,void 0,function*(){var e,t,i;this.filters=yield this.buildAllFilters(),(null===(t=null===(e=this.filters)||void 0===e?void 0:e.typeFilter)||void 0===t?void 0:t.data$)&&(this.activeFilter.selectedCipherTypeNode=yield(0,u._)(null===(i=this.filters)||void 0===i?void 0:i.typeFilter.data$)),this.isLoaded=!0,this.accountService.activeAccount$.pipe(f.F6,(0,jt.n)(e=>(0,Su.h)(this.policyService.policiesByType$(_e.tt.SingleOrg,e).pipe(Nt.Zc),this.policyService.policiesByType$(_e.tt.AutomaticUserConfirmation,e).pipe(Nt.Zc),this.policyService.policiesByType$(_e.tt.OrganizationDataOwnership,e).pipe(Nt.Zc)))).pipe((0,jt.n)(()=>this.addOrganizationFilter()),(0,en.Q)(this.destroy$)).subscribe(e=>{this.filters&&(this.filters.organizationFilter=e)})})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onSearchTextChanged(e){this.searchText=e,this.searchTextChanged.emit(e)}buildAllFilters(){return bM(this,void 0,void 0,function*(){const e=yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6)),t={};return t.organizationFilter=yield this.addOrganizationFilter(),t.typeFilter=yield this.addTypeFilter(),t.folderFilter=yield this.addFolderFilter(),t.collectionFilter=yield this.addCollectionFilter(),t.archiveFilter=yield this.addArchiveFilter(e),t.trashFilter=yield this.addTrashFilter(),t})}addOrganizationFilter(){return bM(this,void 0,void 0,function*(){const e=yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6,(0,jt.n)(e=>(0,v.UX)(e,this.policyService)))),t=yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6,(0,jt.n)(e=>this.policyService.policyAppliesToUser$(_e.tt.OrganizationDataOwnership,e)))),i=e?void 0:{text:"newOrganization",route:"/create-organization"};return{data$:this.vaultFilterService.organizationTree$,header:{showHeader:!(e&&t),isSelectable:!0},action:this.applyOrganizationFilter,options:{component:mM},add:i,divider:!0}})}addTypeFilter(){return bM(this,arguments,void 0,function*(e=[],t){const i={id:"AllItems",name:"allItems",type:"all"},n=yield(0,u._)(this.activeUserId$);return{data$:(0,xt.z)([this.restrictedItemTypesService.restricted$,this.cipherService.cipherListViews$(n),this.vaultFilterService.cipherTypeFilters$]).pipe((0,p.T)(([i,n,r])=>{const s=i.filter(e=>0===e.allowViewOrgIds.length||!(null==n?void 0:n.some(i=>!i.deletedDate&&au.n.getType(i)===e.cipherType&&(!!i.organizationId&&((!t||i.organizationId===t)&&e.allowViewOrgIds.includes((0,na.zw)(i.organizationId))))))).map(e=>e.cipherType),o=[...e,...s];return r.filter(e=>!o.includes(e.type))}),(0,jt.n)(e=>this.vaultFilterService.buildTypeTree(i,e)),(0,$i.F)(),(0,Gr.t)({bufferSize:1,refCount:!0})),header:{showHeader:!0,isSelectable:!0},action:this.applyTypeFilter}})}addFolderFilter(){return bM(this,void 0,void 0,function*(){return{data$:this.vaultFilterService.folderTree$,header:{showHeader:!0,isSelectable:!1},action:this.applyFolderFilter,edit:{filterName:this.i18nService.t("folder"),action:this.editFolder}}})}addCollectionFilter(){return bM(this,void 0,void 0,function*(){return{data$:this.vaultFilterService.collectionTree$,header:{showHeader:!0,isSelectable:!0},action:this.applyCollectionFilter}})}addTrashFilter(){return bM(this,void 0,void 0,function*(){return{data$:this.vaultFilterService.buildTypeTree({id:"headTrash",name:"HeadTrash",type:"trash",icon:"bwi-trash"},[{id:"trash",name:this.i18nService.t("trash"),type:"trash",icon:"bwi-trash"}]),header:{showHeader:!1,isSelectable:!0},action:this.applyTypeFilter}})}addArchiveFilter(e){return bM(this,void 0,void 0,function*(){const[t,i]=yield(0,u._)((0,xt.z)([this.cipherArchiveService.archivedCiphers$(e).pipe((0,p.T)(e=>e.length>0)),this.cipherArchiveService.userHasPremium$(e)])),n=!i&&!t;return{data$:this.vaultFilterService.buildTypeTree({id:"headArchive",name:"HeadArchive",type:"archive",icon:"bwi-archive"},[{id:"archive",name:this.i18nService.t("archiveNoun"),type:"archive",icon:"bwi-archive"}]),header:{showHeader:!1,isSelectable:!0},action:this.applyTypeFilter,premiumOptions:{showBadgeForNonPremium:!0,blockFilterAction:n?()=>bM(this,void 0,void 0,function*(){return yield this.premiumUpgradePromptService.promptForPremium()}):void 0}}})}}BM.ɵfac=function(e){return new(e||BM)(w.rXU(dh.cD),w.rXU(Je.m),w.rXU(he.W),w.rXU(G.y),w.rXU(F.f),w.rXU(Ar.P),w.rXU(T.o),w.rXU(N.D),w.rXU(Pu.b),w.rXU(Q.p),w.rXU(Rd.J),w.rXU(LA.l))},BM.ɵcmp=w.VBU({type:BM,selectors:[["app-vault-filter"]],inputs:{activeFilter:"activeFilter",searchText:"searchText"},outputs:{onEditFolder:"onEditFolder",searchTextChanged:"searchTextChanged"},standalone:!1,decls:3,vars:1,consts:[["data-testid","filters",1,"tw-border","tw-border-solid","tw-border-secondary-300","tw-rounded","tw-sticky","tw-top-4","tw-z-40"],[1,"tw-text-center","tw-p-5"],["aria-hidden","true",1,"bwi","bwi-spinner","bwi-spin"],["data-testid","filters-header",1,"tw-bg-background-alt","tw-border-0","tw-border-b","tw-border-solid","tw-border-secondary-100","tw-rounded-t","tw-px-5","tw-py-2.5","tw-font-medium","tw-uppercase"],["bitLink","","href","https://bitwarden.com/help/searching-vault/","target","_blank","rel","noreferrer","startIcon","bwi-question-circle",1,"tw-float-right",3,"appA11yTitle"],["data-testid","filters-body",1,"tw-p-5"],[1,"tw-mb-4","tw-flex","tw-items-center","tw-gap-2"],[1,"tw-flex-1"],["id","search","autocomplete","off","appAutofocus","",3,"ngModelChange","placeholder","ngModel"],[3,"searchTextChange","searchText"],[1,"tw-overflow-y-auto","tw-pr-2",2,"max-height","calc(100vh - 220px)"],[1,"filter"],[3,"activeFilter","section","isCollectionFilter"]],template:function(e,t){1&e&&(w.j41(0,"div",0),w.nVh(1,CM,2,0,"div",1)(2,wM,15,13,"div"),w.k0s()),2&e&&(w.R7$(),w.vxM(t.isLoaded?2:1))},dependencies:[a.BC,a.vS,Fb.C,M.B,jh.g,sM.H,fk.S,yM,Hh.$],encapsulation:2});var EM=i(56615),SM=i(1576),QM=i(88547),kM=i(55818),RM=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const FM=()=>[],TM=(e,t)=>({organizationId:e,collectionId:t}),DM=e=>({collectionId:e}),PM=(e,t)=>t.id;function MM(e,t){if(1&e&&(w.j41(0,"bit-breadcrumb",6),w.EFF(1),w.nI1(2,"orgNameFromId"),w.nI1(3,"i18n"),w.nI1(4,"lowercase"),w.k0s()),2&e){const e=w.XpG(2);w.Y8G("route",w.lJ4(11,FM))("queryParams",w.l_i(12,TM,e.activeOrganizationId,e.All)),w.R7$(),w.Lme(" ",w.i5U(2,4,e.activeOrganizationId,e.organizations)," ",w.bMT(4,9,w.bMT(3,7,"vault"))," ")}}function xM(e,t){if(1&e&&(w.j41(0,"bit-breadcrumb",7),w.EFF(1),w.k0s()),2&e){const e=t.$implicit;w.Y8G("route",w.lJ4(3,FM))("queryParams",w.eq3(4,DM,e.id)),w.R7$(),w.SpI(" ",e.name," ")}}function VM(e,t){if(1&e&&(w.j41(0,"bit-breadcrumbs",3),w.nVh(1,MM,5,15,"bit-breadcrumb",6),w.qex(2),w.Z7z(3,xM,2,6,"bit-breadcrumb",7,PM),w.bVm(),w.k0s()),2&e){const e=w.XpG();w.R7$(),w.vxM(e.activeOrganizationId?1:-1),w.R7$(2),w.Dyx(e.collections)}}function GM(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",10),w.bIt("click",function(){B.eBV(e);const t=w.XpG(2);return B.Njj(t.editCollection(t.CollectionDialogTabType.Info))}),w.nrm(1,"i",11),w.EFF(2),w.nI1(3,"i18n"),w.k0s(),w.j41(4,"button",10),w.bIt("click",function(){B.eBV(e);const t=w.XpG(2);return B.Njj(t.editCollection(t.CollectionDialogTabType.Access))}),w.nrm(5,"i",12),w.EFF(6),w.nI1(7,"i18n"),w.k0s()}2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,2,"editInfo")," "),w.R7$(4),w.SpI(" ",w.bMT(7,4,"access")," "))}function UM(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",13),w.bIt("click",function(){B.eBV(e);const t=w.XpG(2);return B.Njj(t.deleteCollection())}),w.nrm(1,"bit-icon",14),w.EFF(2),w.nI1(3,"i18n"),w.k0s()}2&e&&(w.R7$(2),w.SpI(" ",w.bMT(3,1,"delete")," "))}function OM(e,t){if(1&e&&(w.qex(0),w.nrm(1,"button",8),w.nI1(2,"i18n"),w.j41(3,"bit-menu",null,0),w.nVh(5,GM,8,6),w.nVh(6,UM,4,3,"button",9),w.k0s(),w.bVm()),2&e){const e=w.sdS(4),t=w.XpG();w.R7$(),w.Y8G("bitMenuTriggerFor",e)("label",w.bMT(2,4,"editCollection")),w.R7$(4),w.vxM(t.canEditCollection?5:-1),w.R7$(),w.vxM(t.canDeleteCollection?6:-1)}}function NM(e,t){1&e&&(w.j41(0,"small"),w.nrm(1,"i",15),w.nI1(2,"i18n"),w.j41(3,"span",16),w.EFF(4),w.nI1(5,"i18n"),w.k0s()()),2&e&&(w.R7$(),w.Y8G("title",w.mNQ(w.bMT(2,3,"loading"))),w.R7$(3),w.JRh(w.bMT(5,5,"loading")))}function jM(e,t){if(1&e){const e=w.RV6();w.j41(0,"div",5)(1,"vault-new-cipher-menu",17),w.bIt("cipherAdded",function(t){B.eBV(e);const i=w.XpG();return B.Njj(i.addCipher(t))})("folderAdded",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.addFolder())})("collectionAdded",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.addCollection())})("onAddItemDialog",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.openAddItemDialog())}),w.k0s(),w.nrm(2,"app-coachmark",18,1),w.k0s()}if(2&e){const e=w.sdS(3),t=w.XpG();w.R7$(),w.Y8G("canCreateCipher",t.canCreateCipher)("canCreateFolder",!0)("canCreateSshKey",!0)("canCreateCollection",t.canCreateCollections)("coachmarkPopover",e.popover())("coachmarkPopoverOpen",t.addItemCoachmarkOpen())("coachmarkPosition",t.coachmarkService.getStepPosition("addItem"))}}class YM{constructor(e,t,i,n,s){this.i18nService=e,this.collectionAdminService=t,this.dialogService=i,this.router=n,this.accountService=s,this.Unassigned=fc.I_,this.All=dh.u8,this.CollectionDialogTabType=nP._K,this.CipherType=Ld.gC,this.coachmarkService=(0,B.WQX)(rR.Tu),this.addItemCoachmarkOpen=(0,JA.EW)(()=>"addItem"===this.coachmarkService.activeStepId()),this.loading=!0,this.organizations=[],this.canCreateCollections=!1,this.onAddCipher=new B.bkB,this.onAddCollection=new B.bkB,this.onAddFolder=new B.bkB,this.onEditCollection=new B.bkB,this.onDeleteCollection=new B.bkB,this.onOpenAddItemDialog=(0,r.CGW)()}get activeOrganizationId(){var e;return null!=this.collection?this.collection.node.organizationId:void 0!==(null===(e=this.filter)||void 0===e?void 0:e.organizationId)?this.filter.organizationId:void 0}get activeOrganization(){var e;const t=this.activeOrganizationId;return null===(e=this.organizations)||void 0===e?void 0:e.find(e=>e.id===t)}get showBreadcrumbs(){var e;return void 0!==(null===(e=this.filter)||void 0===e?void 0:e.collectionId)&&this.filter.collectionId!==dh.u8}get title(){if(void 0===this.filter)return"";if(this.filter.collectionId===fc.I_)return this.i18nService.t("unassigned");if(this.collection)return this.collection.node.name;if(this.filter.organizationId===fc.I_)return this.i18nService.t("myVault");if("archive"===this.filter.type)return this.i18nService.t("archiveNoun");const e=this.activeOrganization;return e?`${e.name} ${this.i18nService.t("vault").toLowerCase()}`:this.i18nService.t("allVaults")}get icon(){var e,t;return(null===(e=this.filter)||void 0===e?void 0:e.collectionId)&&this.filter.collectionId!==dh.u8?(null===(t=this.collection)||void 0===t?void 0:t.node.type)===fc.it.DefaultUserCollection?"bwi-user":"bwi-collection-shared":""}get collections(){if(null==this.collection)return[];const e=[this.collection];for(;null!=e[e.length-1].parent;)e.push(e[e.length-1].parent);return e.slice(1).reverse().map(e=>e.node)}get canEditCollection(){if(null==this.collection)return!1;const e=this.organizations.find(e=>{var t;return e.id===(null===(t=this.collection)||void 0===t?void 0:t.node.organizationId)});return this.collection.node.canEdit(e)}editCollection(e){return RM(this,void 0,void 0,function*(){this.onEditCollection.emit({tab:e})})}get canDeleteCollection(){if(void 0===this.collection)return!1;const e=this.organizations.find(e=>{var t;return e.id===(null===(t=this.collection)||void 0===t?void 0:t.node.organizationId)});return this.collection.node.canDelete(e)}get canCreateCipher(){var e,t;return!(null===(e=this.activeOrganization)||void 0===e?void 0:e.isProviderUser)||(null===(t=this.activeOrganization)||void 0===t?void 0:t.isMember)}deleteCollection(){this.onDeleteCollection.emit()}addCipher(e){this.onAddCipher.emit(e)}openAddItemDialog(){this.onOpenAddItemDialog.emit()}addFolder(){return RM(this,void 0,void 0,function*(){this.onAddFolder.emit()})}addCollection(){return RM(this,void 0,void 0,function*(){var e,t;const i=null===(e=this.organizations)||void 0===e?void 0:e.find(e=>e.productTierType===Yr.K_.Free);if(1==(null===(t=this.organizations)||void 0===t?void 0:t.length)&&i){if((yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6,(0,jt.n)(e=>this.collectionAdminService.collectionAdminViews$(i.id,e))))).length===i.maxCollections)return void(yield this.showFreeOrgUpgradeDialog(i))}this.onAddCollection.emit()})}showFreeOrgUpgradeDialog(e){return RM(this,void 0,void 0,function*(){const t={title:this.i18nService.t("upgradeOrganization"),content:this.i18nService.t(e.canEditSubscription?"freeOrgMaxCollectionReachedManageBilling":"freeOrgMaxCollectionReachedNoManageBilling",e.maxCollections),type:"primary"};e.canEditSubscription?t.acceptButtonText=this.i18nService.t("upgrade"):(t.acceptButtonText=this.i18nService.t("ok"),t.cancelButtonText=null);const i=this.dialogService.openSimpleDialogRef(t);(yield(0,u._)(i.closed))&&e.canEditSubscription&&(yield this.router.navigate(["/organizations",e.id,"billing","subscription"],{queryParams:{upgrade:!0}}))})}}YM.ɵfac=function(e){return new(e||YM)(w.rXU(he.W),w.rXU(_.vE),w.rXU(T.o),w.rXU(R.Ix),w.rXU(N.D))},YM.ɵcmp=w.VBU({type:YM,selectors:[["app-vault-header"]],inputs:{loading:"loading",filter:"filter",organizations:"organizations",collection:"collection",canCreateCollections:"canCreateCollections"},outputs:{onAddCipher:"onAddCipher",onAddCollection:"onAddCollection",onAddFolder:"onAddFolder",onEditCollection:"onEditCollection",onDeleteCollection:"onDeleteCollection",onOpenAddItemDialog:"onOpenAddItemDialog"},decls:6,vars:6,consts:[["editCollectionMenu",""],["addItemCoachmark",""],[3,"title","icon"],["slot","breadcrumbs","showTrailingArrow",""],["slot","title-suffix"],[1,"tw-shrink-0"],["queryParamsHandling","merge",3,"route","queryParams"],["icon","bwi-collection-shared","queryParamsHandling","merge",3,"route","queryParams"],["bitIconButton","bwi-angle-down","size","small","type","button",3,"bitMenuTriggerFor","label"],["type","button","bitMenuItem","","variant","danger"],["type","button","bitMenuItem","",3,"click"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-pencil-square"],["aria-hidden","true",1,"bwi","bwi-fw","bwi-users"],["type","button","bitMenuItem","","variant","danger",3,"click"],["fixedWidth","","name","bwi-trash","slot","start"],["aria-hidden","true",1,"bwi","bwi-spinner","bwi-spin","tw-text-muted",3,"title"],[1,"tw-sr-only"],[3,"cipherAdded","folderAdded","collectionAdded","onAddItemDialog","canCreateCipher","canCreateFolder","canCreateSshKey","canCreateCollection","coachmarkPopover","coachmarkPopoverOpen","coachmarkPosition"],["stepId","addItem"]],template:function(e,t){1&e&&(w.j41(0,"app-header",2),w.nVh(1,VM,5,1,"bit-breadcrumbs",3),w.qex(2,4),w.nVh(3,OM,7,6,"ng-container"),w.nVh(4,NM,6,7,"small"),w.bVm(),w.nVh(5,jM,4,7,"div",5),w.k0s()),2&e&&(w.Y8G("title",t.title)("icon",t.icon),w.R7$(),w.vxM(t.showBreadcrumbs?1:-1),w.R7$(2),w.vxM(null!=t.collection&&(t.canEditCollection||t.canDeleteCollection)?3:-1),w.R7$(),w.vxM(t.loading?4:-1),w.R7$(),w.vxM("trash"!==t.filter.type?5:-1))},dependencies:[L.MD,mB.M,Kb.Z,Zb.O,Hb.S,Tv.G,Yh.s,ve.R,EM.V,SM.m,QM.D,dy.G,hy.f,sP.Y,Nh.p,dh.eG,rR.nk,le.o,L.GH,Hh.$,kM.t],encapsulation:2,changeDetection:0});function XM(e,t){if(1&e&&(w.j41(0,"div",3),w.EFF(1),w.k0s()),2&e){const e=w.XpG();w.R7$(),w.JRh(e.subtitle())}}function zM(e,t){1&e&&(w.j41(0,"div",3),w.SdG(1),w.k0s())}function LM(e,t){1&e&&(w.j41(0,"span",5),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e&&(w.R7$(),w.JRh(w.bMT(2,1,"completed")))}function WM(e,t){if(1&e&&w.nrm(0,"i",9),2&e){const e=w.XpG(3);w.HbH(w.VkB("bwi bwi-fw ",e.ctaIcon()))}}function KM(e,t){if(1&e&&(w.j41(0,"a",6),w.nVh(1,WM,1,3,"i",8),w.EFF(2),w.k0s()),2&e){const e=w.XpG(2);w.Y8G("routerLink",e.route()),w.R7$(),w.vxM(e.ctaIcon()?1:-1),w.R7$(),w.SpI(" ",e.ctaText()," ")}}function ZM(e,t){if(1&e&&w.nrm(0,"i",9),2&e){const e=w.XpG(3);w.HbH(w.VkB("bwi bwi-fw ",e.ctaIcon()))}}function HM(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",10),w.bIt("click",function(){B.eBV(e);const t=w.XpG(2);return B.Njj(t.ctaClick.emit())}),w.nVh(1,ZM,1,3,"i",8),w.EFF(2),w.k0s()}if(2&e){const e=w.XpG(2);w.Y8G("disabled",e.isDisabled()),w.R7$(),w.vxM(e.ctaIcon()?1:-1),w.R7$(),w.SpI(" ",e.ctaText()," ")}}function JM(e,t){if(1&e&&w.nVh(0,KM,3,3,"a",6)(1,HM,3,3,"button",7),2&e){const e=w.XpG();w.vxM(e.route()?0:1)}}class qM{constructor(){this.completed=(0,r.hFB)(!1),this.title=r.hFB.required(),this.subtitle=(0,r.hFB)(),this.route=(0,r.hFB)(),this.ctaText=(0,r.hFB)(),this.ctaIcon=(0,r.hFB)(),this.isDisabled=(0,r.hFB)(!1),this.ctaClick=(0,r.CGW)()}}qM.ɵfac=function(e){return new(e||qM)},qM.ɵcmp=w.VBU({type:qM,selectors:[["app-onboarding-task"]],hostAttrs:["role","listitem",1,"tw-block","tw-py-4","-tw-mx-4","tw-px-4","tw-border-b","tw-border-solid","tw-border-border-base","first:tw-pt-0"],inputs:{completed:[1,"completed"],title:[1,"title"],subtitle:[1,"subtitle"],route:[1,"route"],ctaText:[1,"ctaText"],ctaIcon:[1,"ctaIcon"],isDisabled:[1,"isDisabled"]},outputs:{ctaClick:"ctaClick"},ngContentSelectors:["*"],decls:9,vars:5,consts:[[1,"tw-flex","tw-items-start","tw-gap-4"],[1,"tw-flex-1","tw-min-w-0"],[1,"tw-text-base","tw-font-medium",3,"ngClass"],[1,"tw-text-sm","tw-text-fg-body"],[1,"tw-shrink-0"],["bitBadge","","variant","success"],["bitButton","","buttonType","primary",3,"routerLink"],["bitButton","","buttonType","primary","type","button",3,"disabled"],["aria-hidden","true",3,"class"],["aria-hidden","true"],["bitButton","","buttonType","primary","type","button",3,"click","disabled"]],template:function(e,t){1&e&&(w.NAR(),w.j41(0,"div",0)(1,"div",1)(2,"div",2),w.EFF(3),w.k0s(),w.nVh(4,XM,2,1,"div",3),w.nVh(5,zM,2,0,"div",3),w.k0s(),w.j41(6,"div",4),w.nVh(7,LM,3,3,"span",5)(8,JM,2,1),w.k0s()()),2&e&&(w.R7$(2),w.Y8G("ngClass",t.completed()?"tw-text-fg-inactive":"tw-text-fg-heading"),w.R7$(),w.SpI(" ",t.title()," "),w.R7$(),w.vxM(t.subtitle()&&!t.completed()?4:-1),w.R7$(),w.vxM(t.completed()?-1:5),w.R7$(2),w.vxM(t.completed()?7:t.ctaText()?8:-1))},dependencies:[L.MD,L.YU,Hp.iI,Hp.Wk,Wb.n,fh.Q,ce.$Z],encapsulation:2,changeDetection:0});class $M{constructor(){this.singleSelect=(0,r.hFB)(!1,Object.assign(Object.assign({},{}),{transform:r.L39})),this.variant=(0,r.hFB)("default"),this.activeAccordionId=(0,B.vPA)(null)}notifyOpened(e){this.singleSelect()&&this.activeAccordionId.set(e)}}$M.ɵfac=function(e){return new(e||$M)},$M.ɵcmp=w.VBU({type:$M,selectors:[["bit-accordion-group"]],inputs:{singleSelect:[1,"singleSelect"],variant:[1,"variant"]},ngContentSelectors:["*"],decls:1,vars:0,template:function(e,t){1&e&&(w.NAR(),w.SdG(0))},encapsulation:2,changeDetection:0});const _M=[[["","slot","end"]],"*"];function ex(e,t){if(1&e&&w.nrm(0,"bit-icon-tile",1),2&e){const e=w.XpG();w.Y8G("icon",e.startIcon())("size",e.iconTileSize())}}function tx(e,t){if(1&e&&(w.j41(0,"span"),w.EFF(1),w.k0s()),2&e){const e=w.XpG();w.HbH(e.subtitleClassList()),w.R7$(),w.JRh(e.subtitle())}}let ix=0;class nx{constructor(){this.group=(0,B.WQX)($M,{optional:!0}),this.title=r.hFB.required(),this.subtitle=(0,r.hFB)(),this.open=(0,r.geq)(!1),this.startIcon=(0,r.hFB)(),this.disabled=(0,r.hFB)(!1,Object.assign(Object.assign({},{}),{transform:r.L39})),this.size=(0,r.hFB)("default"),this.variant=(0,r.hFB)("default"),this.resolvedVariant=(0,JA.EW)(()=>{var e,t;return null!==(t=null===(e=this.group)||void 0===e?void 0:e.variant())&&void 0!==t?t:this.variant()}),this._baseId="bit-accordion-"+ix++,this.triggerId=`${this._baseId}-trigger`,this.contentId=`${this._baseId}-content`,this.hostClassList=(0,JA.EW)(()=>["tw-block","tw-border","tw-border-solid","tw-border-border-base","tw-rounded-xl",...this.group?["[&:not(:first-of-type)]:tw-rounded-t-none","[&:not(:last-of-type)]:tw-rounded-b-none","[&:not(:last-of-type)]:tw-border-b-0","[&:not(:first-of-type)>[data-accordion-trigger]]:tw-rounded-t-none","[&:not(:last-of-type)>[data-accordion-trigger]]:tw-rounded-b-none","[&:not(:last-of-type)>[data-accordion-content]]:tw-rounded-b-none"]:[]].join(" ")),this.triggerClassList=(0,JA.EW)(()=>["tw-flex","tw-items-center","tw-gap-3","tw-w-full","tw-border-0","tw-text-start","tw-cursor-pointer","[transition:background-color_150ms_ease]","tw-rounded-t-xl",this.open()?"":"tw-rounded-b-xl","default"===this.resolvedVariant()?"tw-bg-bg-secondary":"tw-bg-bg-primary","enabled:hover:tw-bg-bg-hover","focus-visible:tw-outline-none","focus-visible:tw-ring-2","focus-visible:tw-ring-inset","focus-visible:tw-ring-border-focus","focus-visible:tw-border-border-focus","disabled:tw-cursor-not-allowed","disabled:tw-text-fg-inactive","sm"===this.size()?"tw-p-3":"tw-p-4"].join(" ")),this.iconTileSize=(0,JA.EW)(()=>"sm"===this.size()?"base":"lg"),this.headingClassList=(0,JA.EW)(()=>["tw-font-medium","tw-leading-6","sm"===this.size()?"tw-text-base":"tw-text-lg",this.disabled()?"tw-text-fg-inactive":"tw-text-fg-heading"].join(" ")),this.subtitleClassList=(0,JA.EW)(()=>["tw-text-sm/5",this.disabled()?"tw-text-fg-inactive":"tw-text-fg-body"].join(" ")),this.chevronClasses=(0,JA.EW)(()=>["tw-text-xl","tw-shrink-0",this.disabled()?"tw-text-fg-inactive":"tw-text-fg-heading"].join(" ")),this.contentClassList=(0,JA.EW)(()=>["tw-grid","tw-rounded-b-xl","tw-overflow-hidden","tw-transition-[grid-template-rows,padding] tw-duration-150","subtle"===this.resolvedVariant()&&this.open()?"tw-border-t tw-border-solid tw-border-border-base":"",this.open()?"tw-grid-rows-[1fr] tw-py-4":"tw-grid-rows-[0fr] tw-py-0"].join(" ")),(0,B.QZP)(()=>{var e;this.open()&&(null===(e=this.group)||void 0===e||e.notifyOpened(this._baseId))}),(0,B.QZP)(()=>{var e;const t=null===(e=this.group)||void 0===e?void 0:e.activeAccordionId();null!=t&&t!==this._baseId&&(0,JA.O8)(()=>this.open.set(!1))})}toggle(){this.disabled()||this.open.update(e=>!e)}}nx.ɵfac=function(e){return new(e||nx)},nx.ɵcmp=w.VBU({type:nx,selectors:[["bit-accordion"]],hostVars:2,hostBindings:function(e,t){2&e&&w.HbH(t.hostClassList())},inputs:{title:[1,"title"],subtitle:[1,"subtitle"],open:[1,"open"],startIcon:[1,"startIcon"],disabled:[1,"disabled"],size:[1,"size"],variant:[1,"variant"]},outputs:{open:"openChange"},ngContentSelectors:["[slot=end]","*"],decls:11,vars:20,consts:[["type","button","data-accordion-trigger","",3,"click","id","disabled"],["variant","contrast",3,"icon","size"],[1,"tw-flex","tw-flex-col","tw-flex-1","tw-min-w-0","tw-gap-1","tw-items-start"],[3,"class"],[3,"name"],["data-accordion-content","","role","region",3,"id"],[1,"tw-min-h-0","tw-max-h-80","tw-overflow-y-auto","tw-px-4"]],template:function(e,t){1&e&&(w.NAR(_M),w.j41(0,"button",0),w.bIt("click",function(){return t.toggle()}),w.nVh(1,ex,1,2,"bit-icon-tile",1),w.j41(2,"div",2)(3,"span"),w.EFF(4),w.k0s(),w.nVh(5,tx,2,3,"span",3),w.k0s(),w.SdG(6),w.nrm(7,"bit-icon",4),w.k0s(),w.j41(8,"div",5)(9,"div",6),w.SdG(10,1),w.k0s()()),2&e&&(w.HbH(t.triggerClassList()),w.Y8G("id",t.triggerId)("disabled",t.disabled()||null),w.BMQ("aria-expanded",t.open())("aria-controls",t.contentId),w.R7$(),w.vxM(t.startIcon()?1:-1),w.R7$(2),w.HbH(t.headingClassList()),w.R7$(),w.JRh(t.title()),w.R7$(),w.vxM("default"===t.size()&&t.subtitle()?5:-1),w.R7$(2),w.HbH(t.chevronClasses()),w.Y8G("name",t.open()?"bwi-angle-up":"bwi-angle-down"),w.R7$(),w.HbH(t.contentClassList()),w.Y8G("id",t.contentId),w.BMQ("aria-labelledby",t.triggerId)("aria-hidden",!t.open())("inert",t.open()?null:""))},dependencies:[ve.R,pB.F],encapsulation:2,changeDetection:0});function rx(e,t){if(1&e&&(w.j41(0,"bit-badge",1),w.EFF(1),w.nI1(2,"i18n"),w.k0s()),2&e){const e=w.XpG();w.R7$(),w.SpI(" ",w.brH(2,1,"onboardingTasksComplete",e.amountCompleted(),e.tasks().length)," ")}}function sx(e,t){1&e&&w.nrm(0,"bit-icon",2)}class ox{constructor(){this.tasks=(0,r.tEk)(qM),this.title=r.hFB.required(),this.subtitle=(0,r.hFB)(),this.startIcon=(0,r.hFB)(),this.dismiss=(0,r.CGW)(),this.open=(0,B.vPA)(!0),this.amountCompleted=(0,JA.EW)(()=>this.tasks().filter(e=>e.completed()).length)}ngAfterContentInit(){this.open.set(this.amountCompleted()<=1)}}ox.ɵfac=function(e){return new(e||ox)},ox.ɵcmp=w.VBU({type:ox,selectors:[["app-onboarding"]],contentQueries:function(e,t,i){1&e&&w.C6U(i,t.tasks,qM,4),2&e&&w.NyB()},inputs:{title:[1,"title"],subtitle:[1,"subtitle"],startIcon:[1,"startIcon"]},outputs:{dismiss:"dismiss"},ngContentSelectors:["*"],decls:9,vars:8,consts:[[3,"openChange","title","subtitle","startIcon","open"],["variant","primary","startIcon","bwi-clock","slot","end"],["name","bwi-spinner","slot","end",1,"bwi-spin"],["role","list",1,"tw-flex","tw-flex-col"],[1,"tw-pt-4","tw-text-center"],["bitButton","","buttonType","subtleGhost","size","small","type","button",3,"click"]],template:function(e,t){1&e&&(w.NAR(),w.j41(0,"bit-accordion",0),w.mxI("openChange",function(e){return w.DH7(t.open,e)||(t.open=e),e}),w.nVh(1,rx,3,5,"bit-badge",1)(2,sx,1,0,"bit-icon",2),w.j41(3,"div",3),w.SdG(4),w.k0s(),w.j41(5,"div",4)(6,"button",5),w.bIt("click",function(){return t.dismiss.emit()}),w.EFF(7),w.nI1(8,"i18n"),w.k0s()()()),2&e&&(w.Y8G("title",t.title())("subtitle",t.subtitle())("startIcon",t.startIcon()),w.R50("open",t.open),w.R7$(),w.vxM(t.tasks().length>0?1:2),w.R7$(6),w.SpI(" ",w.bMT(8,6,"dismissThisChecklist")," "))},dependencies:[nx,Wb.n,fh.Q,ve.R,ce.$Z],encapsulation:2,changeDetection:0});class ax{}var lx=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const cx=new C.Ok(C.iK,"tasks",{deserializer:e=>e,clearOn:[]});class dx{constructor(e){this.stateProvider=e}vaultOnboardingState(e){return this.stateProvider.getUser(e,cx)}vaultOnboardingState$(e){return this.vaultOnboardingState(e).state$}setVaultOnboardingTasks(e,t){return lx(this,void 0,void 0,function*(){const i=this.vaultOnboardingState(e);yield i.update(()=>Object.assign({},t))})}}dx.ɵfac=function(e){return new(e||dx)(B.KVO(C.v2))},dx.ɵprov=B.jDH({token:dx,factory:dx.ɵfac});var ux=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};const hx=()=>["/tools/import"];function Ax(e,t){if(1&e){const e=w.RV6();w.j41(0,"div",0)(1,"app-onboarding",1),w.nI1(2,"i18n"),w.nI1(3,"i18n"),w.bIt("dismiss",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.hideOnboarding())}),w.nrm(4,"app-onboarding-task",2),w.nI1(5,"i18n"),w.nrm(6,"app-onboarding-task",3),w.nI1(7,"i18n"),w.nI1(8,"i18n"),w.nI1(9,"i18n"),w.j41(10,"app-onboarding-task",4),w.nI1(11,"i18n"),w.nI1(12,"i18n"),w.nI1(13,"i18n"),w.bIt("ctaClick",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.navigateToExtension())}),w.k0s()()()}if(2&e){const e=t;w.R7$(),w.Y8G("title",w.bMT(2,14,"getStartedWithYourVault"))("subtitle",w.bMT(3,16,"onboardingChecklistSubtitle")),w.R7$(3),w.Y8G("title",w.bMT(5,18,"onboardingCreateYourAccountTitle"))("completed",e.createAccount)("isDisabled",!0),w.R7$(2),w.Y8G("title",w.bMT(7,20,"onboardingImportYourPasswordsTitle"))("subtitle",w.bMT(8,22,"onboardingImportDataSubtitle"))("ctaText",w.bMT(9,24,"onboardingImportCta"))("route",w.lJ4(32,hx))("completed",e.importData),w.R7$(4),w.Y8G("title",w.bMT(11,26,"onboardingInstallTheBrowserExtensionTitle"))("subtitle",w.bMT(12,28,"onboardingInstallExtensionSubtitle"))("ctaText",w.bMT(13,30,"onboardingInstallExtensionCta"))("completed",e.installExtension)}}class px{constructor(){this.platformUtilsService=(0,B.WQX)(G.y),this.apiService=(0,B.WQX)(je.G),this.vaultOnboardingService=(0,B.WQX)(ax),this.accountService=(0,B.WQX)(N.D),this.ciphers=(0,r.hFB)(),this.extensionUrl=(0,B.vPA)(""),this.destroy$=new d.B,this.isNewAccount=(0,B.vPA)(!1),this.onboardingReleaseDate=new Date("2024-04-02"),this.activeId$=this.accountService.activeAccount$.pipe(f.F6),this.onboardingTasks$=this.activeId$.pipe((0,jt.n)(e=>this.vaultOnboardingService.vaultOnboardingState$(e))),this.showOnboarding=(0,B.vPA)(!1),(0,B.QZP)(()=>{const e=this.ciphers();this.showOnboarding()&&void 0!==e&&(0,JA.O8)(()=>{this.syncImportData(e)})})}ngOnInit(){return ux(this,void 0,void 0,function*(){yield this.setOnboardingTasks(),this.setInstallExtLink(),this.checkForBrowserExtension()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}syncImportData(e){return ux(this,void 0,void 0,function*(){const t=yield(0,u._)(this.onboardingTasks$);null!=t&&(yield this.saveCompletedTasks({createAccount:!0,importData:e.length>0,installExtension:t.installExtension}))})}checkForBrowserExtension(){this.showOnboarding()&&((0,nA.R)(window,"message").pipe((0,en.Q)(this.destroy$)).subscribe(e=>{this.getMessages(e)}),window.postMessage({command:lD.checkBwInstalled}))}getMessages(e){return ux(this,void 0,void 0,function*(){if(e.data.command===lD.HasBwInstalled&&this.showOnboarding()){const e=yield(0,u._)(this.onboardingTasks$);if(null==e)return;yield this.saveCompletedTasks({createAccount:e.createAccount,importData:e.importData,installExtension:!0})}})}checkCreationDate(){return ux(this,void 0,void 0,function*(){const e=yield this.apiService.getProfile(),t=new Date(e.creationDate);this.isNewAccount.set(this.onboardingReleaseDate<t),this.isNewAccount()||(yield this.hideOnboarding())})}hideOnboarding(){return ux(this,void 0,void 0,function*(){yield this.saveCompletedTasks({createAccount:!0,importData:!0,installExtension:!0})})}setOnboardingTasks(){return ux(this,void 0,void 0,function*(){var e,t;const i=yield(0,u._)(this.onboardingTasks$);null==i?yield this.saveCompletedTasks({createAccount:!0,importData:(null!==(t=null===(e=this.ciphers())||void 0===e?void 0:e.length)&&void 0!==t?t:0)>0,installExtension:!1}):this.showOnboarding.set(Object.values(i).includes(!1)),this.showOnboarding()&&(yield this.checkCreationDate())})}saveCompletedTasks(e){return ux(this,void 0,void 0,function*(){this.showOnboarding.set(Object.values(e).includes(!1));const t=yield(0,u._)(this.activeId$);yield this.vaultOnboardingService.setVaultOnboardingTasks(t,e)})}setInstallExtLink(){this.platformUtilsService.isChrome()?this.extensionUrl.set("https://chromewebstore.google.com/detail/bitwarden-password-manager/nngceckbapebfimnlniiiahkandclblb"):this.platformUtilsService.isFirefox()?this.extensionUrl.set("https://addons.mozilla.org/en-US/firefox/addon/bitwarden-password-manager/"):this.platformUtilsService.isSafari()?this.extensionUrl.set("https://apps.apple.com/us/app/bitwarden/id1352778147?mt=12"):this.platformUtilsService.isOpera()?this.extensionUrl.set("https://addons.opera.com/extensions/details/bitwarden-free-password-manager/"):this.platformUtilsService.isEdge()?this.extensionUrl.set("https://microsoftedge.microsoft.com/addons/detail/jbkfoedolllekgbhcbcoahefnbanhhlh"):this.extensionUrl.set("https://bitwarden.com/download/#downloads-web-browser")}navigateToExtension(){window.open(this.extensionUrl(),"_blank")}}px.ɵfac=function(e){return new(e||px)},px.ɵcmp=w.VBU({type:px,selectors:[["app-vault-onboarding"]],inputs:{ciphers:[1,"ciphers"]},features:[w.Jv_([{provide:ax,useClass:dx}])],decls:2,vars:3,consts:[[1,"tw-mb-6"],["startIcon","bwi-bitwarden-shield",3,"dismiss","title","subtitle"],[3,"title","completed","isDisabled"],["ctaIcon","bwi-download",3,"title","subtitle","ctaText","route","completed"],["ctaIcon","bwi-puzzle",3,"ctaClick","title","subtitle","ctaText","completed"]],template:function(e,t){if(1&e&&(w.nVh(0,Ax,14,33,"div",0),w.nI1(1,"async")),2&e){let e;w.vxM((e=w.bMT(1,1,t.isNewAccount()&&t.showOnboarding()&&t.onboardingTasks$))?0:-1,e)}},dependencies:[ox,qM,L.MD,L.Jj,ce.$Z],encapsulation:2,changeDetection:0});var gx=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};function vx(e,t){if(1&e&&(w.j41(0,"bit-callout",9),w.EFF(1),w.k0s()),2&e){const e=w.XpG();w.R7$(),w.SpI(" ",e.trashCleanupWarning," ")}}function mx(e,t){if(1&e){const e=w.RV6();w.j41(0,"bit-callout",10),w.nI1(1,"i18n"),w.qex(2),w.j41(3,"div"),w.EFF(4),w.nI1(5,"i18n"),w.k0s(),w.j41(6,"a",14),w.bIt("click",function(){B.eBV(e);const t=w.XpG();return B.Njj(t.navigateToGetPremium())}),w.EFF(7),w.nI1(8,"i18n"),w.k0s(),w.bVm(),w.k0s()}2&e&&(w.Y8G("title",w.bMT(1,3,"premiumSubscriptionEnded")),w.R7$(4),w.SpI(" ",w.bMT(5,5,"premiumSubscriptionEndedDesc")," "),w.R7$(3),w.SpI(" ",w.bMT(8,7,"restartPremium")," "))}function fx(e,t){1&e&&(w.j41(0,"div",12),w.nrm(1,"i",15),w.nI1(2,"i18n"),w.j41(3,"span",16),w.EFF(4),w.nI1(5,"i18n"),w.k0s()()),2&e&&(w.R7$(),w.Y8G("title",w.mNQ(w.bMT(2,3,"loading"))),w.R7$(3),w.JRh(w.bMT(5,5,"loading")))}function yx(e,t){if(1&e){const e=w.RV6();w.j41(0,"button",21),w.bIt("click",function(){B.eBV(e);const t=w.XpG(2);return B.Njj(t.addCipher())}),w.EFF(1),w.nI1(2,"i18n"),w.k0s()}if(2&e){const e=w.XpG(2);w.Y8G("buttonType",e.btnTextAddCreateFeatureFlag()?"secondary":"primary")("startIcon",e.btnTextAddCreateFeatureFlag()?null:"bwi-plus"),w.R7$(),w.SpI(" ",w.bMT(2,3,e.btnTextAddCreateFeatureFlag()?"addItem":"newItem")," ")}}function bx(e,t){if(1&e&&(w.j41(0,"div",13)(1,"bit-no-items",17),w.nI1(2,"async"),w.j41(3,"div",18),w.EFF(4),w.nI1(5,"async"),w.nI1(6,"i18n"),w.k0s(),w.j41(7,"p",19),w.EFF(8),w.nI1(9,"async"),w.nI1(10,"i18n"),w.k0s(),w.nVh(11,yx,3,5,"button",20),w.k0s()()),2&e){let e,t,i;const n=w.XpG();w.R7$(),w.Y8G("icon",null==(e=w.bMT(2,4,n.emptyState$))?null:e.icon),w.R7$(3),w.SpI(" ",w.bMT(6,8,null==(t=w.bMT(5,6,n.emptyState$))?null:t.title)," "),w.R7$(4),w.SpI(" ",w.bMT(10,12,null==(i=w.bMT(9,10,n.emptyState$))?null:i.description)," "),w.R7$(3),w.vxM(n.showAddCipherBtn?11:-1)}}function Cx(e,t){1&e&&w.nrm(0,"bit-vault-batch-action")}const Ix="VaultComponent";class wx{constructor(e,t,i,n,s,o,a,l,h,A,g,v,m,y,b,C,I,w,B,E,S,Q,k,R,F,T,D,P,M,x,V,G,U,O,N,j){this.syncService=e,this.route=t,this.router=i,this.changeDetectorRef=n,this.i18nService=s,this.dialogService=o,this.messagingService=a,this.platformUtilsService=l,this.broadcasterService=h,this.ngZone=A,this.organizationService=g,this.vaultFilterService=v,this.routedVaultFilterService=m,this.routedVaultFilterBridgeService=y,this.cipherService=b,this.passwordRepromptService=C,this.collectionService=I,this.logService=w,this.totpService=B,this.eventCollectionService=E,this.searchService=S,this.searchPipe=Q,this.apiService=k,this.billingAccountProfileStateService=R,this.toastService=F,this.accountService=T,this.cipherFormConfigService=D,this.billingApiService=P,this.restrictedItemTypesService=M,this.cipherArchiveService=x,this.organizationWarningsService=V,this.policyService=G,this.premiumUpgradePromptService=U,this.webVaultPromptService=O,this.vaultBatchBarService=N,this.configService=j,this.filterComponent=(0,r.ebz)(BM),this.vaultItemsComponent=(0,r.ebz)(vP.W_),this.trashCleanupWarning="",this.activeFilter=new dh.$5,this.deactivatedOrgIcon=Gm,this.emptyTrashIcon=aP,this.favoritesIcon=lP,this.itemTypesIcon=cP,this.noResultsIcon=Nk.a,this.performingInitialLoad=!0,this.refreshing=!1,this.processingEvent=!1,this.filter={},this.showBulkMove=!1,this.canAccessPremium=!1,this.allCollections=[],this.allOrganizations=[],this.ciphers=[],this.collections=[],this.isEmpty=!1,this.canCreateCollections=!1,this.currentSearchText$=this.route.queryParams.pipe((0,p.T)(e=>e.search)),this.searchText$=new d.B,this.refresh$=new d.B,this.destroy$=new d.B,this.showAddCipherBtn=!1,this.vaultBatchBarFeatureFlag=(0,c.ot)(this.configService.getFeatureFlag$(Kr.TO.PM37785_VaultBatchBar),{initialValue:!1}),this.btnTextAddCreateFeatureFlag=(0,c.ot)(this.configService.getFeatureFlag$(Kr.TO.PM32380_BtnTextAddCreate),{initialValue:!1}),this.organizations$=this.accountService.activeAccount$.pipe((0,p.T)(e=>null==e?void 0:e.id)).pipe((0,jt.n)(e=>e?this.organizationService.organizations$(e):(0,ln.of)([]))),this.emptyState$=(0,xt.z)([this.currentSearchText$,this.routedVaultFilterService.filter$,this.organizations$]).pipe((0,p.T)(([e,t,i])=>{const n=i.find(e=>e.id===t.organizationId);if(n&&!n.enabled)return this.showAddCipherBtn=!1,{title:"organizationIsSuspended",description:"organizationIsSuspendedDesc",icon:this.deactivatedOrgIcon};if(e)return{title:"noSearchResults",description:"clearFiltersOrTryAnother",icon:this.noResultsIcon};const r={trash:{title:"noItemsInTrash",description:"noItemsInTrashDesc",icon:this.emptyTrashIcon},favorites:{title:"emptyFavorites",description:"emptyFavoritesDesc",icon:this.favoritesIcon},archive:{title:"noItemsInArchive",description:"noItemsInArchiveDesc",icon:this.itemTypesIcon}};return(null==t?void 0:t.type)&&t.type in r?(this.showAddCipherBtn=!1,r[t.type]):(this.showAddCipherBtn=!0,{title:"noItemsInVault",description:"emptyVaultDescription",icon:this.itemTypesIcon})})),this.userId$=this.accountService.activeAccount$.pipe(f.F6),this.enforceOrgDataOwnershipPolicy$=this.userId$.pipe((0,jt.n)(e=>this.policyService.policyAppliesToUser$(_e.tt.OrganizationDataOwnership,e))),this.userCanArchive$=this.userId$.pipe((0,jt.n)(e=>this.cipherArchiveService.userCanArchive$(e))),this.showSubscriptionEndedMessaging$=this.userId$.pipe((0,jt.n)(e=>(0,xt.z)([this.routedVaultFilterBridgeService.activeFilter$,this.cipherArchiveService.showSubscriptionEndedMessaging$(e)]).pipe((0,p.T)(([e,t])=>e.isArchived&&t)))),this.addFolder=()=>{dh.px.open(this.dialogService)},this.editFolder=e=>gx(this,void 0,void 0,function*(){var t;const i=dh.px.open(this.dialogService,{editFolderConfig:{folder:Object.assign(Object.assign({},e),{name:null!==(t=e.fullName)&&void 0!==t?t:e.name})}});(yield(0,hh.s)(i.closed))===dh.np.Deleted&&(yield this.router.navigate([],{queryParams:{folderId:null},queryParamsHandling:"merge",replaceUrl:!0}))}),this.restore=e=>gx(this,void 0,void 0,function*(){let t;if(au.n.isDeleted(e))if(e.edit){if(yield this.repromptCipher([e])){t=au.n.isArchived(e)?this.i18nService.t("archivedItemRestored"):this.i18nService.t("restoredItem");try{const i=yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6));yield this.cipherService.restoreWithServer((0,na.zw)(e.id),i),this.toastService.showToast({variant:"success",message:t}),this.refresh()}catch(i){return void this.logService.error(i)}}}else this.showMissingPermissionsError()})}ngOnInit(){return gx(this,void 0,void 0,function*(){this.trashCleanupWarning=this.i18nService.t(this.platformUtilsService.isSelfHost()?"trashCleanupWarningSelfHosted":"trashCleanupWarning");const e=yield(0,u._)((0,f.F6)(this.accountService.activeAccount$)),t=this.route.queryParams.pipe((0,lA.$)(),(0,jt.n)(e=>gx(this,void 0,void 0,function*(){yield this.syncService.fullSync(!1);const t=Bx(e);if(!t)return;const i=new Jr.f;i.id=t,"clone"===e.action?yield this.cloneCipher(i):"view"===e.action?yield this.viewCipher(i):"edit"===e.action&&(yield this.editCipher(i))})),(0,Gr.t)({refCount:!0,bufferSize:1}));this.broadcasterService.subscribe(Ix,e=>{this.ngZone.run(()=>gx(this,void 0,void 0,function*(){if("syncCompleted"===e.command)e.successfully&&(this.refresh(),this.changeDetectorRef.detectChanges())}))}),this.routedVaultFilterBridgeService.activeFilter$.pipe((0,en.Q)(this.destroy$)).subscribe(e=>{this.activeFilter=e});const i=this.routedVaultFilterService.filter$,n=this.collectionService.decryptedCollections$(e),r=n.pipe((0,p.T)(e=>(0,dP.mw)(e)));this.searchText$.pipe((0,Oy.B)(100),(0,$i.F)(),(0,en.Q)(this.destroy$)).subscribe(e=>this.router.navigate([],{queryParams:{search:zt.A.isNullOrEmpty(e)?null:e},queryParamsHandling:"merge",replaceUrl:!0,state:{focusAfterNav:!1}}));const s=this.cipherService.cipherListViews$(e).pipe((0,h.p)(e=>null!==e)),o=(0,xt.z)([s,this.restrictedItemTypesService.restricted$]).pipe((0,p.T)(([e,t])=>e.filter(e=>!this.restrictedItemTypesService.isCipherRestricted(e,t)))),a=(0,xt.z)([o,i,this.currentSearchText$,r]).pipe((0,h.p)(([e,t])=>null!=e&&null!=t),(0,dl.H)(t=>gx(this,[t],void 0,function*([t,i,n,r]){var s;const o=null!==(s=yield(0,u._)(this.cipherService.failedToDecryptCiphers$(e)))&&void 0!==s?s:[];if(i.collectionId&&i.collectionId!==dh.u8&&i.collectionId!==fc.I_&&r){const e=hP.F.getTreeNodeObjectFromList(r,i.collectionId);if(e){const t=[],n=e=>{var i;e.node.id&&t.push(e.node.id),null===(i=e.children)||void 0===i||i.forEach(e=>n(e))};n(e),i.collectionIds=t}}const a=(0,dh.Jp)(i),l=[...o,...t];if(yield this.searchService.isSearchable(n)){return(yield this.searchService.searchCiphers(e,null,n,l)).filter(a)}return l.filter(a)})),(0,Gr.t)({refCount:!0,bufferSize:1})),l=(0,xt.z)([r,i,this.currentSearchText$]).pipe((0,h.p)(([e,t])=>null!=e&&null!=t),(0,dl.H)(e=>gx(this,[e],void 0,function*([e,t,i]){var n;if(void 0===t.collectionId||t.collectionId===fc.I_)return[];let r=[];if(void 0!==t.organizationId&&t.collectionId===dh.u8)r=e.filter(e=>e.node.organizationId===t.organizationId);else if(t.collectionId===dh.u8)r=e;else{const i=hP.F.getTreeNodeObjectFromList(e,t.collectionId);r=null!==(n=null==i?void 0:i.children)&&void 0!==n?n:[]}if(yield this.searchService.isSearchable(i)){const e=(0,dP.eO)(r);return this.searchPipe.transform(e,i,e=>e.name,e=>e.id)}return r.map(e=>e.node)})),(0,Gr.t)({refCount:!0,bufferSize:1})),c=(0,xt.z)([r,i]).pipe((0,h.p)(([e,t])=>null!=e&&null!=t),(0,p.T)(([e,t])=>{if(void 0!==t.collectionId&&t.collectionId!==dh.u8&&t.collectionId!==fc.I_)return hP.F.getTreeNodeObjectFromList(e,t.collectionId)}),(0,Gr.t)({refCount:!0,bufferSize:1}));t.pipe((0,jt.n)(()=>this.route.queryParams),(0,h.p)(()=>null==this.vaultItemDialogRef),(0,jt.n)(t=>gx(this,void 0,void 0,function*(){const i=Bx(t);if(i)if(yield this.cipherService.get(i,e)){let e=t.action;if(null==e&&(e="view"),"showFailedToDecrypt"==e)return dh.Tp.open(this.dialogService,{cipherIds:[i]}),void(yield this.router.navigate([],{queryParams:{itemId:null,cipherId:null,action:null},queryParamsHandling:"merge",replaceUrl:!0}));"view"===e?yield this.viewCipherById(i):yield this.editCipherId(i)}else yield this.handleUnknownCipher()})),(0,en.Q)(this.destroy$)).subscribe(),t.pipe((0,jt.n)(()=>this.cipherService.failedToDecryptCiphers$(e)),(0,cn.w)(),(0,p.T)(e=>e.filter(e=>!e.isDeleted)),(0,h.p)(e=>e.length>0),(0,_i.s)(1),(0,en.Q)(this.destroy$)).subscribe(e=>{dh.Tp.open(this.dialogService,{cipherIds:e.map(e=>e.id)})}),this.organizations$.pipe((0,h.p)(e=>1===e.length),(0,p.T)(e=>e[0]),(0,jt.n)(e=>this.organizationWarningsService.showInactiveSubscriptionDialog$(e)),(0,en.Q)(this.destroy$)).subscribe(),t.pipe((0,jt.n)(()=>this.refresh$.pipe((0,tn.Z)(void 0))),(0,P.M)(()=>this.refreshing=!0),(0,jt.n)(()=>(0,xt.z)([i,this.billingAccountProfileStateService.hasPremiumFromAnySource$(e),n,this.organizations$,a,l,c,this.currentSearchText$])),(0,en.Q)(this.destroy$)).subscribe(([e,t,i,n,r,s,o,a])=>{this.filter=e,this.canAccessPremium=t,this.allCollections=i,this.allOrganizations=n,this.ciphers=r,this.collections=s,this.selectedCollection=o,this.canCreateCollections=null==n?void 0:n.some(e=>e.canCreateNewCollections&&!e.isProviderUser),this.showBulkMove="trash"!==e.type,this.isEmpty=0===(null==s?void 0:s.length)&&0===(null==r?void 0:r.length),this.performingInitialLoad=!1,this.refreshing=!1,this.changeDetectorRef.markForCheck()}),this.webVaultPromptService.conditionallyPromptUser(),this.vaultBatchBarService.completed$.pipe((0,en.Q)(this.destroy$)).subscribe(()=>this.refresh()),(0,xt.z)([n,a.pipe((0,p.T)(e=>e.length>0))]).pipe((0,en.Q)(this.destroy$)).subscribe(([e,t])=>this.vaultBatchBarService.setConfig({isOrgVault:!1,allCollections:e,hasCiphers:t}))})}ngOnDestroy(){this.broadcasterService.unsubscribe(Ix),this.destroy$.next(),this.destroy$.complete(),this.vaultFilterService.clearOrganizationFilter()}navigateToGetPremium(){return gx(this,void 0,void 0,function*(){yield this.router.navigate(["/settings/subscription/premium"])})}onVaultItemsEvent(e){return gx(this,void 0,void 0,function*(){this.processingEvent=!0;try{switch(e.type){case"viewAttachments":yield this.editCipherAttachments(e.item);break;case"clone":yield this.cloneCipher(e.item);break;case"restore":1===e.items.length?yield this.restore(e.items[0]):yield this.bulkRestore(e.items);break;case"delete":yield this.handleDeleteEvent(e.items);break;case"moveToFolder":yield this.bulkMove(e.items);break;case"copyField":yield this.copy(e.item,e.field);break;case"editCollection":yield this.editCollection(e.item,nP._K.Info);break;case"viewCollectionAccess":yield this.editCollection(e.item,nP._K.Access);break;case"assignToCollections":yield this.bulkAssignToCollections(e.items);break;case"archive":1===e.items.length?yield this.archive(e.items[0]):yield this.bulkArchive(e.items);break;case"unarchive":1===e.items.length?yield this.unarchive(e.items[0]):yield this.bulkUnarchive(e.items);break;case"toggleFavorite":yield this.handleFavoriteEvent(e.item);break;case"editCipher":yield this.editCipher(e.item)}}finally{this.processingEvent=!1}})}handleUnknownCipher(){return gx(this,void 0,void 0,function*(){this.toastService.showToast({variant:"error",message:this.i18nService.t("unknownCipher")}),yield this.router.navigate([],{queryParams:{itemId:null,cipherId:null},queryParamsHandling:"merge"})})}archive(e){return gx(this,void 0,void 0,function*(){if(!(yield this.passwordRepromptService.passwordRepromptCheck(e)))return;if(!(yield this.dialogService.openSimpleDialog({title:{key:"archiveItem"},content:{key:"archiveItemDialogContent"},acceptButtonText:{key:"archiveVerb"},type:"info"})))return;const t=yield(0,u._)(this.userId$);try{yield this.cipherArchiveService.archiveWithServer(e.id,t),this.toastService.showToast({variant:"success",message:this.i18nService.t("itemArchiveToast")}),this.refresh()}catch(i){this.logService.error("Error archiving cipher",i),this.toastService.showToast({variant:"error",message:this.i18nService.t("errorOccurred")})}})}bulkArchive(e){return gx(this,void 0,void 0,function*(){if(!(yield this.repromptCipher(e)))return;if(!(yield this.dialogService.openSimpleDialog({title:{key:"archiveBulkItems"},content:{key:"archiveBulkItemsConfirmDesc"},type:"info"})))return;const t=yield(0,u._)(this.userId$),i=e.map(e=>e.id);try{yield this.cipherArchiveService.archiveWithServer(i,t),this.toastService.showToast({variant:"success",message:this.i18nService.t("bulkArchiveItems")}),this.refresh()}catch(n){this.logService.error("Error archiving ciphers",n),this.toastService.showToast({variant:"error",message:this.i18nService.t("errorOccurred")})}})}unarchive(e){return gx(this,void 0,void 0,function*(){if(!(yield this.passwordRepromptService.passwordRepromptCheck(e)))return;const t=yield(0,u._)(this.userId$);try{yield this.cipherArchiveService.unarchiveWithServer(e.id,t),this.toastService.showToast({variant:"success",message:this.i18nService.t("itemUnarchivedToast")}),this.refresh()}catch(i){this.logService.error("Error unarchiving cipher",i),this.toastService.showToast({variant:"error",message:this.i18nService.t("errorOccurred")})}})}bulkUnarchive(e){return gx(this,void 0,void 0,function*(){if(!(yield this.repromptCipher(e)))return;const t=yield(0,u._)(this.userId$),i=e.map(e=>e.id);try{yield this.cipherArchiveService.unarchiveWithServer(i,t),this.toastService.showToast({variant:"success",message:this.i18nService.t("bulkUnarchiveItems")}),this.refresh()}catch(n){this.logService.error("Error unarchiving ciphers",n),this.toastService.showToast({variant:"error",message:this.i18nService.t("errorOccurred")})}})}applyOrganizationFilter(e){return gx(this,void 0,void 0,function*(){var t,i,n,r,s,o;null==e&&(e="MyVault");const a=null===(n=null===(i=null===(t=this.filterComponent())||void 0===t?void 0:t.filters)||void 0===i?void 0:i.organizationFilter)||void 0===n?void 0:n.data$;if(null==a)return;const l=yield(0,u._)(a),c=hP.F.getTreeNodeObject(l,e);yield null===(o=null===(s=null===(r=this.filterComponent())||void 0===r?void 0:r.filters)||void 0===s?void 0:s.organizationFilter)||void 0===o?void 0:o.action(c)})}filterSearchText(e){this.searchText$.next(e)}editCipherAttachments(e){return gx(this,void 0,void 0,function*(){if(0!==(null==e?void 0:e.reprompt)&&!(yield this.passwordRepromptService.showPasswordPrompt()))return void(yield this.go({cipherId:null,itemId:null},this.configureRouterFocusToCipher("string"==typeof(null==e?void 0:e.id)?e.id:void 0)));if(null==e.organizationId&&!this.canAccessPremium)return void(yield this.premiumUpgradePromptService.promptForPremium());if(null!=e.organizationId){const t=yield(0,u._)(this.organizations$.pipe((0,v.Sw)((0,na.zw)(e.organizationId))));if(null!=t&&(null==t.maxStorageGb||0===t.maxStorageGb))return void this.messagingService.send("upgradeOrganization",{organizationId:e.organizationId})}const t=dh._A.open(this.dialogService,{cipherId:e.id,organizationId:e.organizationId,canEditCipher:e.edit}),i=yield(0,hh.s)(t.closed);void 0!==i&&(i.action!==dh.NY.Uploaded&&i.action!==dh.NY.Removed||this.refresh())})}openVaultItemDialog(e,t,i){return gx(this,void 0,void 0,function*(){var n;this.vaultItemDialogRef=dh.VH.open(this.dialogService,{mode:e,formConfig:t,activeCollectionId:i,restore:this.restore});const r=yield(0,hh.s)(this.vaultItemDialogRef.closed);this.vaultItemDialogRef=void 0,r!==dh.rd.PremiumUpgrade&&(r!==dh.rd.Deleted&&r!==dh.rd.Saved||this.refresh(),yield this.go({cipherId:null,itemId:null,action:null},this.configureRouterFocusToCipher(null===(n=t.originalCipher)||void 0===n?void 0:n.id)))})}openAddItemDialog(){return gx(this,void 0,void 0,function*(){const e=dh._J.open(this.dialogService,{canCreateFolder:!0,canCreateCollection:this.canCreateCollections,canCreateSshKey:!0}),t=yield(0,u._)(e.closed);t&&(t.result===dh.iJ.Cipher?yield this.addCipher(t.cipherType):t.result===dh.iJ.Folder?this.addFolder():yield this.addCollection())})}addCipher(e){return gx(this,void 0,void 0,function*(){var t;const i=null!=e?e:this.activeFilter.cipherType,n=yield this.cipherFormConfigService.buildConfig("add",void 0,i),r="AllCollections"!==this.activeFilter.collectionId&&null!=this.activeFilter.collectionId?this.activeFilter.collectionId:null;let s="MyVault"!==this.activeFilter.organizationId&&null!=this.activeFilter.organizationId?this.activeFilter.organizationId:null;if(r){const e=null===(t=(yield(0,u._)(this.vaultFilterService.filteredCollections$)).find(e=>e.id===this.activeFilter.collectionId))||void 0===t?void 0:t.organizationId;e&&(s=e)}n.initialValues={organizationId:s,collectionIds:[r],folderId:this.activeFilter.folderId},yield this.openVaultItemDialog("form",n)})}editCipher(e,t){return gx(this,void 0,void 0,function*(){return this.editCipherId((0,na.zw)(e.id),t)})}editCipherId(e,t){return gx(this,void 0,void 0,function*(){const i=yield(0,u._)((0,f.F6)(this.accountService.activeAccount$)),n=yield this.cipherService.get(e,i);if(!n)return void(yield this.handleUnknownCipher());if(n&&0!==n.reprompt&&!(yield this.passwordRepromptService.showPasswordPrompt()))return void(yield this.go({cipherId:null,itemId:null,action:null},this.configureRouterFocusToCipher(n.id)));const r=yield this.cipherFormConfigService.buildConfig(t?"clone":"edit",n.id,n.type);yield this.openVaultItemDialog("form",r)})}viewCipher(e){return this.viewCipherById(e.id)}viewCipherById(e){return gx(this,void 0,void 0,function*(){var t;const i=yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6)),n=yield this.cipherService.get(e,i);if(!n)return void(yield this.handleUnknownCipher());if(n&&0!==n.reprompt&&!(yield this.passwordRepromptService.showPasswordPrompt()))return void(yield this.go({cipherId:null,itemId:null,action:null},this.configureRouterFocusToCipher(n.id)));const r=yield this.cipherFormConfigService.buildConfig(n.edit?"edit":"partial-edit",n.id,n.type);yield this.openVaultItemDialog("view",r,null===(t=this.selectedCollection)||void 0===t?void 0:t.node.id)})}addCollection(){return gx(this,void 0,void 0,function*(){var e,t,i;const n=this.allOrganizations.filter(e=>e.canCreateNewCollections&&!e.isProviderUser).sort(zt.A.getSortFunction(this.i18nService,"name"));let r="MyVault"!==this.activeFilter.organizationId&&null!=this.activeFilter.organizationId?this.activeFilter.organizationId:null;if(!r&&null!=this.activeFilter.collectionId){const t=null===(e=this.allCollections.find(e=>e.id===this.activeFilter.collectionId))||void 0===e?void 0:e.organizationId;t&&(r=t)}const s=null!==(i=null===(t=n.find(e=>e.id===r))||void 0===t?void 0:t.id)&&void 0!==i?i:n[0].id,o=(0,nP.jN)(this.dialogService,{data:{organizationId:s,parentCollectionId:this.filter.collectionId,showOrgSelector:!0,limitNestedCollections:!0}}),a=yield(0,hh.s)(o.closed);if(void 0!==a&&a.action===nP.RZ.Saved){if(a.collection){const e=new fc.Fw(a.collection),t=yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6));yield this.collectionService.upsert(e,t)}this.refresh()}})}editCollection(e,t){return gx(this,void 0,void 0,function*(){var i,n,r;const s=(0,nP.jN)(this.dialogService,{data:{collectionId:e.id,organizationId:e.organizationId,initialTab:t,limitNestedCollections:!0}}),o=yield(0,hh.s)(s.closed);if(void 0===o)return;const a=yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6));if(o.action===nP.RZ.Saved){if(o.collection){const e=new fc.Fw(o.collection);yield this.collectionService.upsert(e,a)}this.refresh()}else if(o.action===nP.RZ.Deleted){const t=null===(i=this.selectedCollection)||void 0===i?void 0:i.parent,s=this.selectedCollection&&this.selectedCollection.node.id===e.id;yield this.collectionService.delete([null===(n=o.collection)||void 0===n?void 0:n.id],a),this.refresh(),s&&(yield this.router.navigate([],{queryParams:{collectionId:null!==(r=null==t?void 0:t.node.id)&&void 0!==r?r:null},queryParamsHandling:"merge",replaceUrl:!0}))}})}deleteCollection(e){return gx(this,void 0,void 0,function*(){var t,i;const n=yield(0,u._)(this.organizations$.pipe((0,v.Sw)(e.organizationId)));if(!e.canDelete(n))return void this.showMissingPermissionsError();if(yield this.dialogService.openSimpleDialog({title:e.name,content:{key:"deleteCollectionConfirmation"},type:"warning"}))try{const n=null===(t=this.selectedCollection)||void 0===t?void 0:t.parent,r=this.selectedCollection&&this.selectedCollection.node.id===e.id;yield this.apiService.deleteCollection(e.organizationId,e.id);const s=yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6));yield this.collectionService.delete([e.id],s),yield this.syncService.fullSync(!0),this.toastService.showToast({variant:"success",message:this.i18nService.t("deletedCollectionId",e.name)}),r&&(yield this.router.navigate([],{queryParams:{collectionId:null!==(i=null==n?void 0:n.node.id)&&void 0!==i?i:null},queryParamsHandling:"merge",replaceUrl:!0})),this.refresh()}catch(r){this.logService.error(r)}})}bulkAssignToCollections(e){return gx(this,void 0,void 0,function*(){var t,i;if(!(yield this.repromptCipher(e)))return;if(0===e.length)return void this.toastService.showToast({variant:"error",title:this.i18nService.t("errorOccurred"),message:this.i18nService.t("nothingSelected")});let n=[];const r=this.activeFilter.organizationId||(null===(t=e.find(e=>!!e.organizationId))||void 0===t?void 0:t.organizationId);if(r&&"MyVault"!==r){const e=this.allOrganizations.find(e=>e.id===r);n=this.allCollections.filter(t=>t.organizationId===(null==e?void 0:e.id))}let s;if(e.some(au.n.isCipherListView)){const t=yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6));s=yield(0,u._)(this.cipherService.cipherViews$(t).pipe((0,p.T)(t=>t.filter(t=>e.some(e=>e.id===t.id)))))}else s=e;const o=pP.G.open(this.dialogService,{data:{ciphers:s,organizationId:r,availableCollections:n,activeCollection:null===(i=this.activeFilter.selectedCollectionNode)||void 0===i?void 0:i.node}});(yield(0,hh.s)(o.closed))===dh.f$.Saved&&this.refresh()})}cloneCipher(e){return gx(this,void 0,void 0,function*(){if(au.n.hasFido2Credentials(e)){if(!(yield this.dialogService.openSimpleDialog({title:{key:"passkeyNotCopied"},content:{key:"passkeyNotCopiedAlert"},type:"info"})))return!1}yield this.editCipher(e,!0)})}bulkRestore(e){return gx(this,void 0,void 0,function*(){let t;if(e.some(e=>!e.edit))return void this.showMissingPermissionsError();if(t=e.some(e=>!au.n.isArchived(e))?this.i18nService.t("restoredItems"):this.i18nService.t("archivedItemsRestored"),!(yield this.repromptCipher(e)))return;const i=e.map(e=>(0,na.zw)(e.id));if(0===i.length)return void this.toastService.showToast({variant:"error",message:this.i18nService.t("nothingSelected")});const n=yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6));yield this.cipherService.restoreManyWithServer(i,n),this.toastService.showToast({variant:"success",message:t}),this.refresh()})}handleDeleteEvent(e){return gx(this,void 0,void 0,function*(){const t=e.filter(e=>void 0===e.collection&&void 0!==e.cipher).map(e=>e.cipher),i=e.filter(e=>void 0!==e.collection).map(e=>e.collection);if(1===t.length&&0===i.length)yield this.deleteCipher(t[0]);else if(0===t.length&&1===i.length)yield this.deleteCollection(i[0]);else{const e=i.map(e=>e.organizationId),n=yield(0,u._)(this.organizations$.pipe((0,p.T)(t=>t.filter(t=>e.includes(t.id)))));yield this.bulkDelete(t,i,n)}})}deleteCipher(e){return gx(this,void 0,void 0,function*(){if(!(yield this.repromptCipher([e])))return;if(!e.edit)return void this.showMissingPermissionsError();const t=au.n.isDeleted(e);if(yield this.dialogService.openSimpleDialog({title:{key:t?"permanentlyDeleteItem":"deleteItem"},content:{key:t?"permanentlyDeleteItemConfirmation":"deleteItemConfirmation"},type:"warning"}))try{const i=yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6));yield this.deleteCipherWithServer((0,na.zw)(e.id),i,t),this.toastService.showToast({variant:"success",message:this.i18nService.t(t?"permanentlyDeletedItem":"deletedItem")}),this.refresh()}catch(i){this.logService.error(i)}})}bulkDelete(e,t,i){return gx(this,void 0,void 0,function*(){if(!(yield this.repromptCipher(e)))return;if(0===e.length&&0===t.length)return void this.toastService.showToast({variant:"error",message:this.i18nService.t("nothingSelected")});const n=null==t||t.every(e=>e.canDelete(i.find(t=>t.id==e.organizationId))),r=null==e||e.every(e=>e.edit);if(!n||!r)return void this.showMissingPermissionsError();const s=(0,OP.Q0)(this.dialogService,{data:{permanent:"trash"===this.filter.type,cipherIds:e.map(e=>(0,na.zw)(e.id)),organizations:i,collections:t}});(yield(0,hh.s)(s.closed))===dh.vA.Deleted&&this.refresh()})}bulkMove(e){return gx(this,void 0,void 0,function*(){if(!(yield this.repromptCipher(e)))return;const t=e.map(e=>(0,na.zw)(e.id));if(0===t.length)return void this.toastService.showToast({variant:"error",message:this.i18nService.t("nothingSelected")});const i=(0,dh.im)(this.dialogService,{data:{cipherIds:t}});(yield(0,hh.s)(i.closed))===dh.vx.Moved&&this.refresh()})}copy(e,t){return gx(this,void 0,void 0,function*(){let i,n,r;const s=au.n.getLogin(e);if(s){if("username"===t)i="Username",n=s.username,r="username";else if("password"===t)i="Password",n=yield this.getPasswordFromCipherViewLike(e),r="password";else{if("totp"!==t)return void this.showErrorToast();if(i="TOTP",!s.totp)return void this.showErrorToast();n=(yield(0,u._)(this.totpService.getCode$(s.totp))).code,r="verificationCodeTotp"}this.passwordRepromptService.protectedFields().includes(i)&&!(yield this.repromptCipher([e]))||e.viewPassword&&(n?(this.platformUtilsService.copyToClipboard(n,{window}),this.toastService.showToast({variant:"info",message:this.i18nService.t("valueCopied",this.i18nService.t(r))}),"password"===t?yield this.eventCollectionService.collect(y.Bx.Cipher_ClientCopiedPassword,(0,na.zw)(e.id)):"totp"===t&&(yield this.eventCollectionService.collect(y.Bx.Cipher_ClientCopiedHiddenField,(0,na.zw)(e.id)))):this.showErrorToast())}else this.showErrorToast()})}showErrorToast(){this.toastService.showToast({variant:"error",message:this.i18nService.t("unexpectedError")})}handleFavoriteEvent(e){return gx(this,void 0,void 0,function*(){const t=yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6)),i=yield this.cipherService.getFullCipherView(e);i.favorite=!i.favorite,yield this.cipherService.updateWithServer(i,t),this.toastService.showToast({variant:"success",message:this.i18nService.t(i.favorite?"itemAddedToFavorites":"itemRemovedFromFavorites")}),this.refresh()})}deleteCipherWithServer(e,t,i){return i?this.cipherService.deleteWithServer(e,t):this.cipherService.softDeleteWithServer(e,t)}repromptCipher(e){return gx(this,void 0,void 0,function*(){return!e.find(e=>e.reprompt!==uP.b.None)||(yield this.passwordRepromptService.showPasswordPrompt())})}refresh(){var e;this.refresh$.next(void 0),null===(e=this.vaultItemsComponent())||void 0===e||e.clearSelection()}configureRouterFocusToCipher(e){if(e)return{state:{focusAfterNav:`#cipher-btn-${e}`}}}go(){return gx(this,arguments,void 0,function*(e=null,t){null==e&&(e={favorites:this.activeFilter.isFavorites||null,type:this.activeFilter.cipherType,folderId:this.activeFilter.folderId,collectionId:this.activeFilter.collectionId,deleted:this.activeFilter.isDeleted||null}),yield this.router.navigate([],Object.assign({relativeTo:this.route,queryParams:e,queryParamsHandling:"merge",replaceUrl:!0},t))})}showMissingPermissionsError(){this.toastService.showToast({variant:"error",message:this.i18nService.t("missingPermissions")})}getPasswordFromCipherViewLike(e){return gx(this,void 0,void 0,function*(){var t;if(!au.n.isCipherListView(e))return Promise.resolve(null===(t=null==e?void 0:e.login)||void 0===t?void 0:t.password);const i=yield(0,u._)(this.accountService.activeAccount$.pipe(f.F6)),n=yield(0,u._)(this.cipherService.cipherView$(i,(0,na.zw)(e.id)));return null==n?void 0:n.login.password})}}wx.ɵfac=function(e){return new(e||wx)(w.rXU(mc.H),w.rXU(R.nX),w.rXU(R.Ix),w.rXU(r.gRc),w.rXU(he.W),w.rXU(T.o),w.rXU(oe.U),w.rXU(G.y),w.rXU(E.y),w.rXU(B.SKi),w.rXU(v.PV),w.rXU(dh.cD),w.rXU(dh.BR),w.rXU(dh.aC),w.rXU(Q.p),w.rXU(dh.qX),w.rXU(_.YD),w.rXU(se.K),w.rXU(Vd.R),w.rXU(y.c_),w.rXU(xd.S),w.rXU(oP.R),w.rXU(je.G),w.rXU(gr.Q),w.rXU(F.f),w.rXU(N.D),w.rXU(dh.Ws),w.rXU(Ar.P),w.rXU(Pu.b),w.rXU(Rd.J),w.rXU(AP.S),w.rXU(Je.m),w.rXU(LA.l),w.rXU(UP),w.rXU(dh.pG),w.rXU(O.w))},wx.ɵcmp=w.VBU({type:wx,selectors:[["app-vault"]],viewQuery:function(e,t){1&e&&w.wEZ(t.filterComponent,BM,5)(t.vaultItemsComponent,vP.W_,5),2&e&&w.NyB(2)},features:[w.Jv_([dh.BR,dh.aC,dh.Ws,UP,{provide:dh.DL,useClass:dh._8},dh.pG,{provide:dh.nw,useClass:gP._},{provide:dh.iH,useClass:NP.d}])],decls:21,vars:40,consts:[["vaultFilter",""],["vaultItems",""],[3,"organizations"],[3,"onAddCipher","onAddCollection","onAddFolder","onEditCollection","onDeleteCollection","onOpenAddItemDialog","filter","loading","organizations","canCreateCollections","collection"],[3,"ciphers"],[1,"tw-flex","tw-flex-row","-tw-mx-2.5"],[1,"tw-basis-1/4","tw-max-w-1/4","tw-px-2.5","tw-relative","tw-z-50"],[3,"searchTextChanged","onEditFolder","activeFilter","searchText"],[1,"tw-basis-3/4","tw-max-w-3/4","tw-px-2.5"],["type","warning"],["type","subtle",3,"title"],[3,"onEvent","ciphers","collections","allCollections","allOrganizations","disabled","showOwner","showCollections","showGroups","showPremiumFeatures","showBulkMove","showBulkTrashOptions","useEvents","showAdminActions","showBulkAddToCollections","userCanArchive","enforceOrgDataOwnershipPolicy"],[1,"tw-mt-6","tw-flex","tw-h-full","tw-flex-col","tw-items-center","tw-justify-start"],[1,"tw-mt-6","tw-flex","tw-h-full","tw-flex-col","tw-items-center","tw-justify-start","tw-flex-1"],["bitLink","","href","#","appStopClick","",3,"click"],["aria-hidden","true",1,"bwi","bwi-spinner","bwi-spin","tw-text-muted",3,"title"],[1,"tw-sr-only"],[3,"icon"],["slot","title"],["slot","description","bitTypography","body2",1,"tw-max-w-md","tw-text-center"],["type","button","bitButton","","slot","button",3,"buttonType","startIcon"],["type","button","bitButton","","slot","button",3,"click","buttonType","startIcon"]],template:function(e,t){1&e&&(w.nrm(0,"vault-organization-user-notifications")(1,"app-vault-banners",2),w.nI1(2,"async"),w.j41(3,"app-vault-header",3),w.bIt("onAddCipher",function(e){return t.addCipher(e)})("onAddCollection",function(){return t.addCollection()})("onAddFolder",function(){return t.addFolder()})("onEditCollection",function(e){return t.editCollection(t.selectedCollection.node,e.tab)})("onDeleteCollection",function(){return t.deleteCollection(t.selectedCollection.node)})("onOpenAddItemDialog",function(){return t.openAddItemDialog()}),w.k0s(),w.nrm(4,"app-vault-onboarding",4),w.j41(5,"div",5)(6,"div",6)(7,"app-vault-filter",7,0),w.nI1(9,"async"),w.bIt("searchTextChanged",function(e){return t.filterSearchText(e)})("onEditFolder",function(e){return t.editFolder(e)}),w.k0s()(),w.j41(10,"div",8),w.nVh(11,vx,2,1,"bit-callout",9),w.nVh(12,mx,9,9,"bit-callout",10),w.nI1(13,"async"),w.j41(14,"app-vault-items",11,1),w.nI1(16,"async"),w.nI1(17,"async"),w.bIt("onEvent",function(e){return t.onVaultItemsEvent(e)}),w.k0s(),w.nVh(18,fx,6,7,"div",12),w.nVh(19,bx,12,14,"div",13),w.k0s()(),w.nVh(20,Cx,1,0,"bit-vault-batch-action")),2&e&&(w.R7$(),w.Y8G("organizations",w.bMT(2,30,t.organizations$)),w.R7$(2),w.Y8G("filter",t.filter)("loading",t.refreshing&&!t.performingInitialLoad)("organizations",t.allOrganizations)("canCreateCollections",t.canCreateCollections)("collection",t.selectedCollection),w.R7$(),w.Y8G("ciphers",t.ciphers),w.R7$(3),w.Y8G("activeFilter",t.activeFilter)("searchText",w.bMT(9,32,t.currentSearchText$)),w.R7$(4),w.vxM(t.activeFilter.isDeleted?11:-1),w.R7$(),w.vxM(w.bMT(13,34,t.showSubscriptionEndedMessaging$)?12:-1),w.R7$(2),w.Y8G("ciphers",t.ciphers)("collections",t.collections)("allCollections",t.allCollections)("allOrganizations",t.allOrganizations)("disabled",t.refreshing)("showOwner",!0)("showCollections",!1)("showGroups",!1)("showPremiumFeatures",t.canAccessPremium)("showBulkMove",t.showBulkMove)("showBulkTrashOptions","trash"===t.filter.type)("useEvents",!1)("showAdminActions",!1)("showBulkAddToCollections",!0)("userCanArchive",w.bMT(16,36,t.userCanArchive$))("enforceOrgDataOwnershipPolicy",w.bMT(17,38,t.enforceOrgDataOwnershipPolicy$)),w.R7$(4),w.vxM(t.performingInitialLoad?18:-1),w.R7$(),w.vxM(t.isEmpty&&!t.performingInitialLoad?19:-1),w.R7$(),w.vxM(t.vaultBatchBarFeatureFlag()?20:-1))},dependencies:[dh.Qn,YM,px,iM,iF,BM,mP.l,vP.W_,Dv.G,Xy.Y,fh.Q,ae.G,jh.g,Yk.D,Tp.r,dh.Gh,L.Jj,Hh.$],encapsulation:2});const Bx=e=>e.itemId||e.cipherId,Ex=[{path:"",component:wx,data:{titleId:"vaults"}}];class Sx{}Sx.ɵfac=function(e){return new(e||Sx)},Sx.ɵmod=w.$C({type:Sx}),Sx.ɵinj=B.G2t({imports:[Hp.iI.forChild(Ex),Hp.iI]});class Qx{}Qx.ɵfac=function(e){return new(e||Qx)},Qx.ɵmod=w.$C({type:Qx}),Qx.ɵinj=B.G2t({imports:[Sx,eF.t,iP.B,tP.K,sP.Y,Tv.G,dh.E8,rP,nP.GW,wx]});const kx=[{path:"register",redirectTo:Qm.SignUp,pathMatch:"full"},{path:"trial",redirectTo:Qm.SignUp,pathMatch:"full"},{path:"",component:mS,data:{doNotSaveUrl:!0},children:[{path:"",pathMatch:"full",children:[],canActivate:[(0,km.EO)()]},{path:"verify-email",component:dB},{path:gy.AcceptOrgDirectInvite,canActivate:[(0,vy.i)()],component:by,data:{titleId:"joinOrganization",doNotSaveUrl:!1}},{path:"accept-families-for-enterprise",component:$f,canActivate:[(0,vy.i)()],data:{titleId:"acceptFamilySponsorship",doNotSaveUrl:!1}},{path:"recover",pathMatch:"full",redirectTo:gy.RecoverTwoFactor},{path:"verify-recover-delete-org",component:Zf,canActivate:[(0,km.Z6)()],data:{titleId:"deleteOrganization"}}]},{path:"",component:zf,children:[{path:Qm.LoginWithPasskey,canActivate:[(0,km.Z6)()],data:{pageIcon:Rm.s,titleId:"logInWithPasskey",pageTitle:{key:"logInWithPasskey"},pageSubtitle:{key:"readingPasskeyLoadingInfo"}},children:[{path:"",component:Vm},{path:"",component:UE,outlet:"environment-selector"}]},{path:Qm.SignUp,canActivate:[(0,km.Z6)()],data:{pageIcon:Km,pageTitle:{key:"createAccount"},titleId:"createAccount"},children:[{path:"",component:ne.dz},{path:"",component:ne.Xj,outlet:"secondary",data:{loginRoute:"/login"}}]},{path:Qm.FinishSignUp,canActivate:[(0,km.Z6)()],data:{pageIcon:ie,titleId:"setAStrongPassword"},children:[{path:"",component:ne.el}]},{path:Qm.Login,canActivate:[(0,km.Z6)()],data:{pageTitle:{key:"logIn"},pageIcon:Zm.E},children:[{path:"",component:ne.XJ},{path:"",component:ne.O_,outlet:"secondary"},{path:"",component:UE,outlet:"environment-selector"}]},{path:Qm.LoginWithDevice,data:{pageIcon:Hm,pageTitle:{key:"logInRequestSent"},pageSubtitle:{key:"aNotificationWasSentToYourDevice"},titleId:"loginInitiated"},children:[{path:"",component:ne.Mf},{path:"",component:UE,outlet:"environment-selector"}]},{path:Qm.AdminApprovalRequested,data:{pageIcon:Hm,pageTitle:{key:"adminApprovalRequested"},pageSubtitle:{key:"adminApprovalRequestSentToAdmins"},titleId:"adminApprovalRequested"},children:[{path:"",component:ne.Mf}]},{path:Qm.PasswordHint,canActivate:[(0,km.Z6)()],data:{pageTitle:{key:"requestPasswordHint"},pageSubtitle:{key:"enterYourAccountEmailAddressAndYourPasswordHintWillBeSentToYou"},pageIcon:Jm.u,state:"hint"},children:[{path:"",component:ne.s7},{path:"",component:UE,outlet:"environment-selector"}]},{path:Qm.LoginInitiated,canActivate:[(0,km.Xt)()],data:{pageIcon:Hm},children:[{path:"",component:ne.K3}]},{path:"send/:sendId/:key",data:{pageTitle:{key:"viewSend"},showReadonlyHostname:!0,pageIcon:qm},children:[{path:"",component:_R},{path:"",outlet:"secondary",component:LT}]},{path:Qm.SetInitialPassword,canActivate:[km.W_],component:Wm,data:{maxWidth:"lg",pageIcon:ie}},{path:gy.SignUpLinkExpired,canActivate:[(0,km.Z6)()],data:{pageIcon:$m.c,pageTitle:{key:"expiredLink"}},children:[{path:"",component:ne.MP,data:{loginRoute:`/${Qm.Login}`}}]},{path:Qm.Sso,canActivate:[(0,km.Z6)()],data:{pageTitle:{key:"singleSignOn"},titleId:"enterpriseSingleSignOn",pageSubtitle:{key:"singleSignOnEnterOrgIdentifierText"},pageIcon:_m},children:[{path:"",component:ne.r0},{path:"",component:UE,outlet:"environment-selector"}]},{path:Qm.TwoFactor,component:ne.Yi,canActivate:[(0,km.Z6)(),ne.lA],children:[{path:"",component:ne.Yi},{path:"",component:UE,outlet:"environment-selector"}],data:{pageTitle:{key:"verifyYourIdentity"},pageIcon:null}},{path:"lock",canActivate:[(0,vy.i)(),(0,km.HG)()],children:[{path:"",component:Ip}],data:{pageTitle:{key:"yourVaultIsLockedV2"},pageIcon:ie,showReadonlyHostname:!0}},{path:Qm.AuthenticationTimeout,canActivate:[(0,km.Z6)()],children:[{path:"",component:Sm},{path:"",component:UE,outlet:"environment-selector"}],data:{pageIcon:$m.c,pageTitle:{key:"authenticationTimeout"},titleId:"authenticationTimeout"}},{path:gy.RecoverTwoFactor,canActivate:[(0,km.Z6)()],children:[{path:"",component:Sy},{path:"",component:UE,outlet:"environment-selector"}],data:{pageTitle:{key:"recoverAccountTwoStep"},titleId:"recoverAccountTwoStep",pageIcon:ef.m}},{path:Qm.NewDeviceVerification,canActivate:[(0,km.Z6)(),(0,km.CV)()],children:[{path:"",component:ne.l$}],data:{pageIcon:tf.f,pageTitle:{key:"verifyYourIdentity"},pageSubtitle:{key:"weDontRecognizeThisDevice"}}},{path:gy.AcceptEmergencyAccessInvite,canActivate:[(0,vy.i)()],data:{pageTitle:{key:"emergencyAccess"},titleId:"acceptEmergency",doNotSaveUrl:!1,pageIcon:Zm.E},children:[{path:"",loadComponent:()=>i.e(825).then(i.bind(i,33825)).then(e=>e.AcceptEmergencyComponent)}]},{path:gy.RecoverDeleteAccount,canActivate:[(0,km.Z6)()],data:{pageTitle:{key:"deleteAccount"},titleId:"deleteAccount",pageIcon:nf},children:[{path:"",component:wy},{path:"",component:UE,outlet:"environment-selector"}]},{path:gy.VerifyRecoverDeleteAccount,canActivate:[(0,km.Z6)()],data:{pageTitle:{key:"deleteAccount"},titleId:"deleteAccount",pageIcon:nf},children:[{path:"",component:AB}]},{path:"remove-password",component:Yp,canActivate:[km.W_],data:{pageTitle:{key:"verifyYourOrganization"},titleId:"verifyYourOrganization",pageIcon:ie}},{path:"confirm-key-connector-domain",component:gS,canActivate:[],data:{pageTitle:{key:"verifyYourOrganization"},titleId:"verifyYourOrganization",pageIcon:rf}},{path:"trial-initiation",canActivate:[(0,km.Z6)()],component:DE,resolve:{pageTitle:PE},data:{maxWidth:"3xl",pageIcon:sf}},{path:"secrets-manager-trial-initiation",canActivate:[(0,km.Z6)()],component:DE,resolve:{pageTitle:PE},data:{maxWidth:"3xl",pageIcon:sf}},{path:"browser-extension-prompt",data:{pageIcon:of},children:[{path:"",component:QD},{path:"",component:mD,outlet:"secondary"}]},{path:"premium/checkout/success",data:{titleId:"paymentSuccessful",pageIcon:null,doNotSaveUrl:!0,maxWidth:"lg"},children:[{path:"",component:gB}]},{path:Qm.ChangePassword,component:Ie,canActivate:[km.W_],data:{pageIcon:ie}},{path:"setup-extension",data:{hideCardWrapper:!0,pageIcon:null,maxWidth:"4xl"},children:[{path:"",component:eP}]}]},{path:"",component:gR,canActivate:[(0,vy.i)(),km.W_],children:[{path:"vault",canActivate:[()=>Lf(void 0,void 0,void 0,function*(){const e=(0,B.WQX)(R.Ix),t=(0,B.WQX)(N.D),i=(0,B.WQX)(Ge.a),n=(0,B.WQX)(se.K);try{const n=yield(0,u._)(t.activeAccount$);if(!n)return e.createUrlTree(["/login"]);return!(yield i.getPremiumInterest(n.id))||e.createUrlTree(["/settings/subscription/premium"],{queryParams:{callToAction:"upgradeToPremium"}})}catch(r){return n.error("Error in premiumInterestRedirectGuard",r),!0}}),()=>TD(void 0,void 0,void 0,function*(){const e=(0,B.WQX)(R.Ix),t=(0,B.WQX)(N.D),i=(0,B.WQX)(O.w),n=(0,B.WQX)(FD.r),r=(0,B.WQX)(C.v2);if(zt.A.isMobileBrowser)return!0;const s=yield(0,u._)(i.serverSettings$);if(null==s?void 0:s.suppressOnboardingInterstitials)return!0;const o=yield(0,u._)(t.activeAccount$);if(!o)return e.createUrlTree(["/login"]);const a=yield(0,u._)(r.getUser(o.id,DD).state$.pipe((0,p.T)(e=>null!=e&&e))),l=yield function(e,t){return TD(this,void 0,void 0,function*(){return function(e){if(!e)return!1;const t=new Date(e).getTime(),i=(new Date).getTime()-t,n=864e5;return Math.round(i/n)>30}(yield e.getProfileCreationDate(t))})}(n,o.id).catch(()=>!0);return!(!a&&!l)||e.createUrlTree(["/setup-extension"])})],loadChildren:()=>Qx},{path:"sends",component:aD,data:{titleId:"send"},canActivate:[Em((e,t,i)=>i.getFeatureFlag$(Kr.TO.SendControls).pipe((0,jt.n)(i=>i?t.policiesByType$(_e.tt.SendControls,e).pipe((0,p.T)(e=>!(null==e?void 0:e.some(e=>{var t;return!0===(null===(t=e.data)||void 0===t?void 0:t.disableSend)})))):t.policyAppliesToUser$(_e.tt.DisableSend,e).pipe((0,p.T)(e=>!e)))))],canDeactivate:[e=>zT(void 0,void 0,void 0,function*(){return null==e||e.saveUnsavedSendEdits()})]},{path:"sm-landing",component:wT,data:{titleId:"moreProductsFromBitwarden"}},{path:"request-sm-access",component:yT,data:{titleId:"requestAccessToSecretsManager"}},{path:"create-organization",component:Ay,data:{titleId:"newOrganization"}},{path:"settings",children:[{path:"",pathMatch:"full",redirectTo:py.Account},{path:py.Account,component:yb,data:{titleId:"myAccount"}},{path:"appearance",component:kT,data:{titleId:"appearance"}},{path:"security",loadChildren:()=>aB},{path:"data-recovery",component:AS,data:{titleId:"troubleshooting"}},{path:"domain-rules",component:jT,data:{titleId:"domainRules"}},{path:"subscription",loadChildren:()=>Promise.all([i.e(979),i.e(405)]).then(i.bind(i,8405)).then(e=>e.IndividualBillingModule)},{path:py.EmergencyAccess,children:[{path:"",component:xC,canActivate:[Em(v.KP)],data:{titleId:"emergencyAccess"}},{path:":id",component:ZC,canActivate:[Em(v.KP)],data:{titleId:"emergencyAccess"}}]},{path:"sponsored-families",component:TB,data:{titleId:"sponsoredFamilies"}}]},{path:"tools",canActivate:[km.W_],children:[{path:"",pathMatch:"full",redirectTo:"generator"},{path:"import",loadComponent:()=>i.e(782).then(i.bind(i,74782)).then(e=>e.ImportWebComponent),data:{titleId:"importNoun"}},{path:"export",loadComponent:()=>Promise.all([i.e(40),i.e(677)]).then(i.bind(i,47677)).then(e=>e.ExportWebComponent),data:{titleId:"exportNoun"}},{path:"generator",component:XT,data:{titleId:"generator"}}]},{path:"reports",loadChildren:()=>OE.AX},{path:"setup/families-for-enterprise",component:cy}]},{path:"organizations",loadChildren:()=>i.e(848).then(i.bind(i,16848)).then(e=>e.OrganizationModule)}];class Rx{}Rx.ɵfac=function(e){return new(e||Rx)},Rx.ɵmod=w.$C({type:Rx}),Rx.ɵinj=B.G2t({imports:[Hp.iI.forRoot(kx,{useHash:!0,paramsInheritanceStrategy:"always"}),Hp.iI]});class Fx{}Fx.ɵfac=function(e){return new(e||Fx)},Fx.ɵmod=w.$C({type:Fx}),Fx.ɵinj=B.G2t({imports:[Hp.iI.forChild([{path:"**",redirectTo:""}]),Hp.iI]});class Tx{}Tx.ɵfac=function(e){return new(e||Tx)},Tx.ɵmod=w.$C({type:Tx,bootstrap:[$]}),Tx.ɵinj=B.G2t({imports:[AT,l.wb,a.YN,wm,s.ad,o.RH,Rx,Fx]}),(0,r.SmG)(),n.sG().bootstrapModule(Tx,{applicationProviders:[(0,r.Jn2)()]})},49701(){},86973(){}},r={};function s(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(i.exports,i,i.exports,s),i.loaded=!0,i.exports}s.m=n,e=[],s.O=(t,i,n,r)=>{if(!i){var o=1/0;for(d=0;d<e.length;d++){for(var[i,n,r]=e[d],a=!0,l=0;l<i.length;l++)(!1&r||o>=r)&&Object.keys(s.O).every(e=>s.O[e](i[l]))?i.splice(l--,1):(a=!1,r<o&&(o=r));if(a){e.splice(d--,1);var c=n();void 0!==c&&(t=c)}}return t}r=r||0;for(var d=e.length;d>0&&e[d-1][2]>r;d--)e[d]=e[d-1];e[d]=[i,n,r]},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,i)=>(s.f[i](e,t),t),[])),s.u=e=>e+"."+{40:"4f177a25d1122df7258c",281:"d0a3f7a4ec45dbad0e29",368:"e3376518108805292230",405:"4fbc5e7bc6fd53dbc60c",449:"c93b0794cf8da7e0cb0e",677:"c700d752d82440a05a97",680:"c43b5dd1efbedb4fa11d",712:"bdaf453f9231e32b4fe5",767:"ebd16e950a7c6a1c7706",782:"ecb0878b527b2995b5d8",825:"a77cba01e3c01f59739e",848:"150540f69b06c47750ea",922:"e5c11039e5e4c1258f68",979:"99ef509bf16a2fbe191b",981:"24d02170363ea0cfc1a9"}[e]+".js",s.miniCssF=e=>{},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),t={},i="@bitwarden/web-vault:",s.l=(e,n,r,o)=>{if(t[e])t[e].push(n);else{var a,l;if(void 0!==r)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var u=c[d];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==i+r){a=u;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",s.nc&&a.setAttribute("nonce",s.nc),a.setAttribute("data-webpack",i+r),a.src=e),t[e]=[n];var h=(i,n)=>{a.onerror=a.onload=null,clearTimeout(A);var r=t[e];if(delete t[e],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach(e=>e(n)),i)return i(n)},A=setTimeout(h.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=h.bind(null,a.onerror),a.onload=h.bind(null,a.onload),l&&document.head.appendChild(a)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),s.v=(e,t,i,n)=>{var r=fetch(s.p+""+i+".module.wasm"),o=()=>r.then(e=>e.arrayBuffer()).then(e=>WebAssembly.instantiate(e,n)).then(t=>Object.assign(e,t.instance.exports));return r.then(t=>"function"==typeof WebAssembly.instantiateStreaming?WebAssembly.instantiateStreaming(t,n).then(t=>Object.assign(e,t.instance.exports),e=>{if("application/wasm"!==t.headers.get("Content-Type"))return console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",e),o();throw e}):o())},(()=>{var e;s.g.importScripts&&(e=s.g.location+"");var t=s.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var i=t.getElementsByTagName("script");if(i.length)for(var n=i.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=i[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e+"../"})(),(()=>{var e={84:0};s.f.j=(t,i)=>{var n=s.o(e,t)?e[t]:void 0;if(0!==n)if(n)i.push(n[2]);else{var r=new Promise((i,r)=>n=e[t]=[i,r]);i.push(n[2]=r);var o=s.p+s.u(t),a=new Error;s.l(o,i=>{if(s.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var r=i&&("load"===i.type?"missing":i.type),o=i&&i.target&&i.target.src;a.message="Loading chunk "+t+" failed.\n("+r+": "+o+")",a.name="ChunkLoadError",a.type=r,a.request=o,n[1](a)}},"chunk-"+t,t)}},s.O.j=t=>0===e[t];var t=(t,i)=>{var n,r,[o,a,l]=i,c=0;if(o.some(t=>0!==e[t])){for(n in a)s.o(a,n)&&(s.m[n]=a[n]);if(l)var d=l(s)}for(t&&t(i);c<o.length;c++)r=o[c],s.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return s.O(d)},i=self.webpackChunk_bitwarden_web_vault=self.webpackChunk_bitwarden_web_vault||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var o=s.O(void 0,[245],()=>s(33559));o=s.O(o)})();
|
|
//# sourceMappingURL=main.92b6979af427f5dcff15.js.map
|