cozy-keys-lib 3.11.0 → 3.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) hide show
  1. package/package.json +4 -2
  2. package/src/components/UnlockForm.jsx +27 -1
  3. package/transpiled/@bitwarden/jslib/angular/components/add-edit.component.js +11 -33
  4. package/transpiled/@bitwarden/jslib/angular/components/attachments.component.js +8 -24
  5. package/transpiled/@bitwarden/jslib/angular/components/callout.component.js +1 -3
  6. package/transpiled/@bitwarden/jslib/angular/components/change-password.component.js +6 -18
  7. package/transpiled/@bitwarden/jslib/angular/components/ciphers.component.js +8 -24
  8. package/transpiled/@bitwarden/jslib/angular/components/collections.component.js +5 -15
  9. package/transpiled/@bitwarden/jslib/angular/components/environment.component.js +2 -6
  10. package/transpiled/@bitwarden/jslib/angular/components/export.component.js +3 -9
  11. package/transpiled/@bitwarden/jslib/angular/components/folder-add-edit.component.js +5 -15
  12. package/transpiled/@bitwarden/jslib/angular/components/groupings.component.js +4 -12
  13. package/transpiled/@bitwarden/jslib/angular/components/hint.component.js +2 -6
  14. package/transpiled/@bitwarden/jslib/angular/components/icon.component.js +2 -6
  15. package/transpiled/@bitwarden/jslib/angular/components/lock.component.js +7 -21
  16. package/transpiled/@bitwarden/jslib/angular/components/login.component.js +4 -12
  17. package/transpiled/@bitwarden/jslib/angular/components/modal.component.js +1 -3
  18. package/transpiled/@bitwarden/jslib/angular/components/password-generator-history.component.js +2 -6
  19. package/transpiled/@bitwarden/jslib/angular/components/password-generator.component.js +6 -18
  20. package/transpiled/@bitwarden/jslib/angular/components/password-history.component.js +3 -9
  21. package/transpiled/@bitwarden/jslib/angular/components/premium.component.js +5 -15
  22. package/transpiled/@bitwarden/jslib/angular/components/register.component.js +2 -6
  23. package/transpiled/@bitwarden/jslib/angular/components/set-password.component.js +5 -15
  24. package/transpiled/@bitwarden/jslib/angular/components/share.component.js +5 -15
  25. package/transpiled/@bitwarden/jslib/angular/components/sso.component.js +7 -21
  26. package/transpiled/@bitwarden/jslib/angular/components/two-factor-options.component.js +1 -3
  27. package/transpiled/@bitwarden/jslib/angular/components/two-factor.component.js +7 -21
  28. package/transpiled/@bitwarden/jslib/angular/components/view.component.js +10 -30
  29. package/transpiled/@bitwarden/jslib/angular/directives/a11y-title.directive.js +1 -3
  30. package/transpiled/@bitwarden/jslib/angular/directives/api-action.directive.js +1 -3
  31. package/transpiled/@bitwarden/jslib/angular/directives/autofocus.directive.js +1 -3
  32. package/transpiled/@bitwarden/jslib/angular/directives/blur-click.directive.js +1 -3
  33. package/transpiled/@bitwarden/jslib/angular/directives/box-row.directive.js +1 -3
  34. package/transpiled/@bitwarden/jslib/angular/directives/fallback-src.directive.js +1 -3
  35. package/transpiled/@bitwarden/jslib/angular/directives/input-verbatim.directive.js +1 -3
  36. package/transpiled/@bitwarden/jslib/angular/directives/select-copy.directive.js +1 -3
  37. package/transpiled/@bitwarden/jslib/angular/directives/stop-click.directive.js +1 -3
  38. package/transpiled/@bitwarden/jslib/angular/directives/stop-prop.directive.js +1 -3
  39. package/transpiled/@bitwarden/jslib/angular/directives/true-false-value.directive.js +1 -3
  40. package/transpiled/@bitwarden/jslib/angular/pipes/color-password.pipe.js +1 -3
  41. package/transpiled/@bitwarden/jslib/angular/pipes/i18n.pipe.js +1 -3
  42. package/transpiled/@bitwarden/jslib/angular/pipes/search-ciphers.pipe.js +1 -3
  43. package/transpiled/@bitwarden/jslib/angular/pipes/search.pipe.js +1 -3
  44. package/transpiled/@bitwarden/jslib/angular/services/auth-guard.service.js +2 -6
  45. package/transpiled/@bitwarden/jslib/angular/services/broadcaster.service.js +1 -3
  46. package/transpiled/@bitwarden/jslib/angular/services/validation.service.js +1 -3
  47. package/transpiled/@bitwarden/jslib/cli/baseProgram.js +3 -9
  48. package/transpiled/@bitwarden/jslib/cli/commands/login.command.js +3 -9
  49. package/transpiled/@bitwarden/jslib/cli/commands/logout.command.js +2 -6
  50. package/transpiled/@bitwarden/jslib/cli/commands/update.command.js +2 -6
  51. package/transpiled/@bitwarden/jslib/cli/models/response.js +1 -3
  52. package/transpiled/@bitwarden/jslib/cli/services/cliPlatformUtils.service.js +1 -3
  53. package/transpiled/@bitwarden/jslib/cli/services/consoleLog.service.js +1 -3
  54. package/transpiled/@bitwarden/jslib/electron/baseMenu.js +1 -3
  55. package/transpiled/@bitwarden/jslib/electron/biometric.darwin.main.js +4 -12
  56. package/transpiled/@bitwarden/jslib/electron/biometric.windows.main.js +7 -21
  57. package/transpiled/@bitwarden/jslib/electron/keytarStorageListener.js +2 -6
  58. package/transpiled/@bitwarden/jslib/electron/services/electronLog.service.js +1 -3
  59. package/transpiled/@bitwarden/jslib/electron/services/electronMainMessaging.service.js +1 -3
  60. package/transpiled/@bitwarden/jslib/electron/services/electronPlatformUtils.service.js +2 -6
  61. package/transpiled/@bitwarden/jslib/electron/services/electronRendererMessaging.service.js +2 -6
  62. package/transpiled/@bitwarden/jslib/electron/services/electronRendererSecureStorage.service.js +4 -12
  63. package/transpiled/@bitwarden/jslib/electron/services/electronStorage.service.js +1 -3
  64. package/transpiled/@bitwarden/jslib/electron/tray.main.js +5 -15
  65. package/transpiled/@bitwarden/jslib/electron/updater.main.js +7 -21
  66. package/transpiled/@bitwarden/jslib/electron/window.main.js +12 -36
  67. package/transpiled/@bitwarden/jslib/importers/ascendoCsvImporter.js +1 -3
  68. package/transpiled/@bitwarden/jslib/importers/avastCsvImporter.js +1 -3
  69. package/transpiled/@bitwarden/jslib/importers/avastJsonImporter.js +1 -3
  70. package/transpiled/@bitwarden/jslib/importers/aviraCsvImporter.js +1 -3
  71. package/transpiled/@bitwarden/jslib/importers/baseImporter.js +1 -3
  72. package/transpiled/@bitwarden/jslib/importers/bitwardenCsvImporter.js +1 -3
  73. package/transpiled/@bitwarden/jslib/importers/bitwardenJsonImporter.js +1 -3
  74. package/transpiled/@bitwarden/jslib/importers/blackBerryCsvImporter.js +1 -3
  75. package/transpiled/@bitwarden/jslib/importers/blurCsvImporter.js +1 -3
  76. package/transpiled/@bitwarden/jslib/importers/buttercupCsvImporter.js +1 -3
  77. package/transpiled/@bitwarden/jslib/importers/chromeCsvImporter.js +1 -3
  78. package/transpiled/@bitwarden/jslib/importers/clipperzHtmlImporter.js +1 -3
  79. package/transpiled/@bitwarden/jslib/importers/codebookCsvImporter.js +1 -3
  80. package/transpiled/@bitwarden/jslib/importers/dashlaneJsonImporter.js +1 -3
  81. package/transpiled/@bitwarden/jslib/importers/encryptrCsvImporter.js +1 -3
  82. package/transpiled/@bitwarden/jslib/importers/enpassCsvImporter.js +1 -3
  83. package/transpiled/@bitwarden/jslib/importers/enpassJsonImporter.js +1 -3
  84. package/transpiled/@bitwarden/jslib/importers/firefoxCsvImporter.js +1 -3
  85. package/transpiled/@bitwarden/jslib/importers/fsecureFskImporter.js +1 -3
  86. package/transpiled/@bitwarden/jslib/importers/gnomeJsonImporter.js +1 -3
  87. package/transpiled/@bitwarden/jslib/importers/kasperskyTxtImporter.js +1 -3
  88. package/transpiled/@bitwarden/jslib/importers/keepass2XmlImporter.js +1 -3
  89. package/transpiled/@bitwarden/jslib/importers/keepassxCsvImporter.js +1 -3
  90. package/transpiled/@bitwarden/jslib/importers/keeperCsvImporter.js +1 -3
  91. package/transpiled/@bitwarden/jslib/importers/lastpassCsvImporter.js +1 -3
  92. package/transpiled/@bitwarden/jslib/importers/logMeOnceCsvImporter.js +1 -3
  93. package/transpiled/@bitwarden/jslib/importers/meldiumCsvImporter.js +1 -3
  94. package/transpiled/@bitwarden/jslib/importers/msecureCsvImporter.js +1 -3
  95. package/transpiled/@bitwarden/jslib/importers/mykiCsvImporter.js +1 -3
  96. package/transpiled/@bitwarden/jslib/importers/onepassword1PifImporter.js +1 -3
  97. package/transpiled/@bitwarden/jslib/importers/onepasswordWinCsvImporter.js +1 -3
  98. package/transpiled/@bitwarden/jslib/importers/padlockCsvImporter.js +1 -3
  99. package/transpiled/@bitwarden/jslib/importers/passkeepCsvImporter.js +1 -3
  100. package/transpiled/@bitwarden/jslib/importers/passmanJsonImporter.js +1 -3
  101. package/transpiled/@bitwarden/jslib/importers/passpackCsvImporter.js +1 -3
  102. package/transpiled/@bitwarden/jslib/importers/passwordAgentCsvImporter.js +1 -3
  103. package/transpiled/@bitwarden/jslib/importers/passwordBossJsonImporter.js +1 -3
  104. package/transpiled/@bitwarden/jslib/importers/passwordDragonXmlImporter.js +1 -3
  105. package/transpiled/@bitwarden/jslib/importers/passwordSafeXmlImporter.js +1 -3
  106. package/transpiled/@bitwarden/jslib/importers/passwordWalletTxtImporter.js +1 -3
  107. package/transpiled/@bitwarden/jslib/importers/rememBearCsvImporter.js +1 -3
  108. package/transpiled/@bitwarden/jslib/importers/roboformCsvImporter.js +1 -3
  109. package/transpiled/@bitwarden/jslib/importers/safeInCloudXmlImporter.js +1 -3
  110. package/transpiled/@bitwarden/jslib/importers/saferpassCsvImport.js +1 -3
  111. package/transpiled/@bitwarden/jslib/importers/secureSafeCsvImporter.js +1 -3
  112. package/transpiled/@bitwarden/jslib/importers/splashIdCsvImporter.js +1 -3
  113. package/transpiled/@bitwarden/jslib/importers/stickyPasswordXmlImporter.js +1 -3
  114. package/transpiled/@bitwarden/jslib/importers/truekeyCsvImporter.js +1 -3
  115. package/transpiled/@bitwarden/jslib/importers/upmCsvImporter.js +1 -3
  116. package/transpiled/@bitwarden/jslib/importers/yotiCsvImporter.js +1 -3
  117. package/transpiled/@bitwarden/jslib/importers/zohoVaultCsvImporter.js +1 -3
  118. package/transpiled/@bitwarden/jslib/misc/analytics.js +3 -9
  119. package/transpiled/@bitwarden/jslib/misc/nodeUtils.js +1 -3
  120. package/transpiled/@bitwarden/jslib/misc/serviceUtils.js +1 -3
  121. package/transpiled/@bitwarden/jslib/misc/u2f.js +1 -3
  122. package/transpiled/@bitwarden/jslib/misc/utils.js +1 -3
  123. package/transpiled/@bitwarden/jslib/models/api/cardApi.js +1 -3
  124. package/transpiled/@bitwarden/jslib/models/api/fieldApi.js +1 -3
  125. package/transpiled/@bitwarden/jslib/models/api/identityApi.js +1 -3
  126. package/transpiled/@bitwarden/jslib/models/api/loginApi.js +1 -3
  127. package/transpiled/@bitwarden/jslib/models/api/loginUriApi.js +1 -3
  128. package/transpiled/@bitwarden/jslib/models/api/secureNoteApi.js +1 -3
  129. package/transpiled/@bitwarden/jslib/models/api/sendFileApi.js +1 -3
  130. package/transpiled/@bitwarden/jslib/models/api/sendTextApi.js +1 -3
  131. package/transpiled/@bitwarden/jslib/models/domain/attachment.js +2 -6
  132. package/transpiled/@bitwarden/jslib/models/domain/card.js +1 -3
  133. package/transpiled/@bitwarden/jslib/models/domain/cipher.js +2 -6
  134. package/transpiled/@bitwarden/jslib/models/domain/cipherString.js +2 -6
  135. package/transpiled/@bitwarden/jslib/models/domain/collection.js +1 -3
  136. package/transpiled/@bitwarden/jslib/models/domain/domainBase.js +2 -6
  137. package/transpiled/@bitwarden/jslib/models/domain/field.js +1 -3
  138. package/transpiled/@bitwarden/jslib/models/domain/folder.js +1 -3
  139. package/transpiled/@bitwarden/jslib/models/domain/identity.js +1 -3
  140. package/transpiled/@bitwarden/jslib/models/domain/login.js +2 -6
  141. package/transpiled/@bitwarden/jslib/models/domain/loginUri.js +1 -3
  142. package/transpiled/@bitwarden/jslib/models/domain/masterPasswordPolicyOptions.js +1 -3
  143. package/transpiled/@bitwarden/jslib/models/domain/organization.js +1 -3
  144. package/transpiled/@bitwarden/jslib/models/domain/password.js +1 -3
  145. package/transpiled/@bitwarden/jslib/models/domain/passwordGeneratorPolicyOptions.js +1 -3
  146. package/transpiled/@bitwarden/jslib/models/domain/policy.js +1 -3
  147. package/transpiled/@bitwarden/jslib/models/domain/secureNote.js +1 -3
  148. package/transpiled/@bitwarden/jslib/models/domain/send.js +2 -6
  149. package/transpiled/@bitwarden/jslib/models/domain/sendAccess.js +2 -6
  150. package/transpiled/@bitwarden/jslib/models/domain/sendFile.js +2 -6
  151. package/transpiled/@bitwarden/jslib/models/domain/sendText.js +1 -3
  152. package/transpiled/@bitwarden/jslib/models/domain/sortedCiphersCache.js +2 -6
  153. package/transpiled/@bitwarden/jslib/models/export/card.js +1 -3
  154. package/transpiled/@bitwarden/jslib/models/export/cipher.js +1 -3
  155. package/transpiled/@bitwarden/jslib/models/export/cipherWithIds.js +1 -3
  156. package/transpiled/@bitwarden/jslib/models/export/collection.js +1 -3
  157. package/transpiled/@bitwarden/jslib/models/export/collectionWithId.js +1 -3
  158. package/transpiled/@bitwarden/jslib/models/export/field.js +1 -3
  159. package/transpiled/@bitwarden/jslib/models/export/folder.js +1 -3
  160. package/transpiled/@bitwarden/jslib/models/export/folderWithId.js +1 -3
  161. package/transpiled/@bitwarden/jslib/models/export/identity.js +1 -3
  162. package/transpiled/@bitwarden/jslib/models/export/login.js +1 -3
  163. package/transpiled/@bitwarden/jslib/models/export/loginUri.js +1 -3
  164. package/transpiled/@bitwarden/jslib/models/export/secureNote.js +1 -3
  165. package/transpiled/@bitwarden/jslib/models/request/cipherWithIdRequest.js +1 -3
  166. package/transpiled/@bitwarden/jslib/models/request/emailRequest.js +1 -3
  167. package/transpiled/@bitwarden/jslib/models/request/emailTokenRequest.js +1 -3
  168. package/transpiled/@bitwarden/jslib/models/request/folderWithIdRequest.js +1 -3
  169. package/transpiled/@bitwarden/jslib/models/request/kdfRequest.js +1 -3
  170. package/transpiled/@bitwarden/jslib/models/request/organizationTaxInfoUpdateRequest.js +1 -3
  171. package/transpiled/@bitwarden/jslib/models/request/passwordRequest.js +1 -3
  172. package/transpiled/@bitwarden/jslib/models/request/paymentRequest.js +1 -3
  173. package/transpiled/@bitwarden/jslib/models/request/tokenRequest.js +1 -3
  174. package/transpiled/@bitwarden/jslib/models/request/twoFactorEmailRequest.js +1 -3
  175. package/transpiled/@bitwarden/jslib/models/request/twoFactorProviderRequest.js +1 -3
  176. package/transpiled/@bitwarden/jslib/models/request/twoFactorRecoveryRequest.js +1 -3
  177. package/transpiled/@bitwarden/jslib/models/request/updateTwoFactorAuthenticatorRequest.js +1 -3
  178. package/transpiled/@bitwarden/jslib/models/request/updateTwoFactorDuoRequest.js +1 -3
  179. package/transpiled/@bitwarden/jslib/models/request/updateTwoFactorEmailRequest.js +1 -3
  180. package/transpiled/@bitwarden/jslib/models/request/updateTwoFactorU2fDeleteRequest.js +1 -3
  181. package/transpiled/@bitwarden/jslib/models/request/updateTwoFactorU2fRequest.js +1 -3
  182. package/transpiled/@bitwarden/jslib/models/request/updateTwoFactorYubioOtpRequest.js +1 -3
  183. package/transpiled/@bitwarden/jslib/models/response/apiKeyResponse.js +1 -3
  184. package/transpiled/@bitwarden/jslib/models/response/attachmentResponse.js +1 -3
  185. package/transpiled/@bitwarden/jslib/models/response/baseResponse.js +1 -3
  186. package/transpiled/@bitwarden/jslib/models/response/billingResponse.js +4 -12
  187. package/transpiled/@bitwarden/jslib/models/response/breachAccountResponse.js +1 -3
  188. package/transpiled/@bitwarden/jslib/models/response/cipherResponse.js +1 -3
  189. package/transpiled/@bitwarden/jslib/models/response/collectionResponse.js +3 -9
  190. package/transpiled/@bitwarden/jslib/models/response/deviceResponse.js +1 -3
  191. package/transpiled/@bitwarden/jslib/models/response/domainsResponse.js +1 -3
  192. package/transpiled/@bitwarden/jslib/models/response/errorResponse.js +1 -3
  193. package/transpiled/@bitwarden/jslib/models/response/eventResponse.js +1 -3
  194. package/transpiled/@bitwarden/jslib/models/response/folderResponse.js +1 -3
  195. package/transpiled/@bitwarden/jslib/models/response/globalDomainResponse.js +1 -3
  196. package/transpiled/@bitwarden/jslib/models/response/groupResponse.js +2 -6
  197. package/transpiled/@bitwarden/jslib/models/response/identityTokenResponse.js +1 -3
  198. package/transpiled/@bitwarden/jslib/models/response/identityTwoFactorResponse.js +1 -3
  199. package/transpiled/@bitwarden/jslib/models/response/keysResponse.js +1 -3
  200. package/transpiled/@bitwarden/jslib/models/response/listResponse.js +1 -3
  201. package/transpiled/@bitwarden/jslib/models/response/notificationResponse.js +4 -12
  202. package/transpiled/@bitwarden/jslib/models/response/organizationResponse.js +1 -3
  203. package/transpiled/@bitwarden/jslib/models/response/organizationSubscriptionResponse.js +1 -3
  204. package/transpiled/@bitwarden/jslib/models/response/organizationUserResponse.js +3 -9
  205. package/transpiled/@bitwarden/jslib/models/response/passwordHistoryResponse.js +1 -3
  206. package/transpiled/@bitwarden/jslib/models/response/paymentResponse.js +1 -3
  207. package/transpiled/@bitwarden/jslib/models/response/planResponse.js +1 -3
  208. package/transpiled/@bitwarden/jslib/models/response/policyResponse.js +1 -3
  209. package/transpiled/@bitwarden/jslib/models/response/preloginResponse.js +1 -3
  210. package/transpiled/@bitwarden/jslib/models/response/profileOrganizationResponse.js +1 -3
  211. package/transpiled/@bitwarden/jslib/models/response/profileResponse.js +1 -3
  212. package/transpiled/@bitwarden/jslib/models/response/selectionReadOnlyResponse.js +1 -3
  213. package/transpiled/@bitwarden/jslib/models/response/sendAccessResponse.js +1 -3
  214. package/transpiled/@bitwarden/jslib/models/response/sendResponse.js +1 -3
  215. package/transpiled/@bitwarden/jslib/models/response/subscriptionResponse.js +4 -12
  216. package/transpiled/@bitwarden/jslib/models/response/syncResponse.js +1 -3
  217. package/transpiled/@bitwarden/jslib/models/response/taxInfoResponse.js +1 -3
  218. package/transpiled/@bitwarden/jslib/models/response/twoFactorAuthenticatorResponse.js +1 -3
  219. package/transpiled/@bitwarden/jslib/models/response/twoFactorDuoResponse.js +1 -3
  220. package/transpiled/@bitwarden/jslib/models/response/twoFactorEmailResponse.js +1 -3
  221. package/transpiled/@bitwarden/jslib/models/response/twoFactorProviderResponse.js +1 -3
  222. package/transpiled/@bitwarden/jslib/models/response/twoFactorRescoverResponse.js +1 -3
  223. package/transpiled/@bitwarden/jslib/models/response/twoFactorU2fResponse.js +3 -9
  224. package/transpiled/@bitwarden/jslib/models/response/twoFactorYubiKeyResponse.js +1 -3
  225. package/transpiled/@bitwarden/jslib/models/response/userKeyResponse.js +1 -3
  226. package/transpiled/@bitwarden/jslib/models/view/attachmentView.js +1 -3
  227. package/transpiled/@bitwarden/jslib/models/view/cardView.js +1 -3
  228. package/transpiled/@bitwarden/jslib/models/view/cipherView.js +1 -3
  229. package/transpiled/@bitwarden/jslib/models/view/fieldView.js +1 -3
  230. package/transpiled/@bitwarden/jslib/models/view/identityView.js +1 -3
  231. package/transpiled/@bitwarden/jslib/models/view/loginUriView.js +1 -3
  232. package/transpiled/@bitwarden/jslib/models/view/loginView.js +1 -3
  233. package/transpiled/@bitwarden/jslib/models/view/secureNoteView.js +1 -3
  234. package/transpiled/@bitwarden/jslib/models/view/sendFileView.js +1 -3
  235. package/transpiled/@bitwarden/jslib/models/view/sendTextView.js +1 -3
  236. package/transpiled/@bitwarden/jslib/models/view/sendView.js +1 -3
  237. package/transpiled/@bitwarden/jslib/services/api.service.js +112 -336
  238. package/transpiled/@bitwarden/jslib/services/appId.service.js +2 -6
  239. package/transpiled/@bitwarden/jslib/services/audit.service.js +3 -9
  240. package/transpiled/@bitwarden/jslib/services/auth.service.js +10 -30
  241. package/transpiled/@bitwarden/jslib/services/broadcaster.service.js +1 -3
  242. package/transpiled/@bitwarden/jslib/services/cipher.service.js +46 -138
  243. package/transpiled/@bitwarden/jslib/services/collection.service.js +12 -36
  244. package/transpiled/@bitwarden/jslib/services/container.service.js +1 -3
  245. package/transpiled/@bitwarden/jslib/services/crypto.service.js +39 -117
  246. package/transpiled/@bitwarden/jslib/services/environment.service.js +3 -9
  247. package/transpiled/@bitwarden/jslib/services/event.service.js +4 -12
  248. package/transpiled/@bitwarden/jslib/services/export.service.js +7 -21
  249. package/transpiled/@bitwarden/jslib/services/folder.service.js +13 -39
  250. package/transpiled/@bitwarden/jslib/services/i18n.service.js +3 -9
  251. package/transpiled/@bitwarden/jslib/services/import.service.js +3 -9
  252. package/transpiled/@bitwarden/jslib/services/lowdbStorage.service.js +1 -3
  253. package/transpiled/@bitwarden/jslib/services/nodeApi.service.js +1 -3
  254. package/transpiled/@bitwarden/jslib/services/nodeCryptoFunction.service.js +6 -18
  255. package/transpiled/@bitwarden/jslib/services/noopMessaging.service.js +1 -3
  256. package/transpiled/@bitwarden/jslib/services/notifications.service.js +8 -24
  257. package/transpiled/@bitwarden/jslib/services/passwordGeneration.service.js +16 -48
  258. package/transpiled/@bitwarden/jslib/services/policy.service.js +5 -15
  259. package/transpiled/@bitwarden/jslib/services/search.service.js +3 -9
  260. package/transpiled/@bitwarden/jslib/services/send.service.js +12 -36
  261. package/transpiled/@bitwarden/jslib/services/settings.service.js +6 -18
  262. package/transpiled/@bitwarden/jslib/services/state.service.js +1 -3
  263. package/transpiled/@bitwarden/jslib/services/sync.service.js +16 -48
  264. package/transpiled/@bitwarden/jslib/services/system.service.js +5 -15
  265. package/transpiled/@bitwarden/jslib/services/token.service.js +7 -21
  266. package/transpiled/@bitwarden/jslib/services/totp.service.js +4 -12
  267. package/transpiled/@bitwarden/jslib/services/user.service.js +13 -39
  268. package/transpiled/@bitwarden/jslib/services/vaultTimeout.service.js +8 -24
  269. package/transpiled/@bitwarden/jslib/services/webCryptoFunction.service.js +14 -42
  270. package/transpiled/CozyUtils.js +12 -22
  271. package/transpiled/CozyUtils.spec.js +6 -30
  272. package/transpiled/HtmlStorageService.js +2 -6
  273. package/transpiled/MemoryStorageService.js +1 -3
  274. package/transpiled/NodeEnvSecureStorageService.js +5 -15
  275. package/transpiled/NodeVaultClient.js +1 -3
  276. package/transpiled/StrippedWebPlatformUtilsService.js +1 -3
  277. package/transpiled/WebPlatformUtilsService.js +2 -6
  278. package/transpiled/WebVaultClient.js +66 -156
  279. package/transpiled/WebVaultClient.spec.js +6 -30
  280. package/transpiled/__mocks__/WebVaultClient.js +1 -3
  281. package/transpiled/components/UnlockForm.js +16 -6
  282. package/transpiled/components/UnlockForm.spec.js +3 -15
  283. package/transpiled/components/VaultContext.js +39 -18
  284. package/transpiled/components/VaultContext.spec.js +3 -7
  285. package/transpiled/components/VaultUnlocker.js +7 -13
  286. package/transpiled/components/defaults.js +17 -27
  287. package/transpiled/components/defaults.spec.js +82 -0
  288. package/transpiled/components/vaultUnlockContext.js +5 -14
  289. package/transpiled/components/vaultUnlockContext.spec.js +20 -76
  290. package/transpiled/index.js +1 -2
  291. package/transpiled/logger.js +1 -1
@@ -43,9 +43,7 @@ import { CollectionData } from '../models/data/collectionData';
43
43
  import { CipherWithIds as CipherExport } from '../models/export/cipherWithIds';
44
44
  import { CollectionWithId as CollectionExport } from '../models/export/collectionWithId';
45
45
  import { FolderWithId as FolderExport } from '../models/export/folderWithId';
46
- export var ExportService =
47
- /*#__PURE__*/
48
- function () {
46
+ export var ExportService = /*#__PURE__*/function () {
49
47
  function ExportService(folderService, cipherService, apiService) {
50
48
  _classCallCheck(this, ExportService);
51
49
 
@@ -58,9 +56,7 @@ function () {
58
56
  key: "getExport",
59
57
  value: function getExport() {
60
58
  var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'csv';
61
- return __awaiter(this, void 0, void 0,
62
- /*#__PURE__*/
63
- _regeneratorRuntime.mark(function _callee() {
59
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
64
60
  return _regeneratorRuntime.wrap(function _callee$(_context) {
65
61
  while (1) {
66
62
  switch (_context.prev = _context.next) {
@@ -87,9 +83,7 @@ function () {
87
83
  key: "getOrganizationExport",
88
84
  value: function getOrganizationExport(organizationId) {
89
85
  var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'csv';
90
- return __awaiter(this, void 0, void 0,
91
- /*#__PURE__*/
92
- _regeneratorRuntime.mark(function _callee2() {
86
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
93
87
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
94
88
  while (1) {
95
89
  switch (_context2.prev = _context2.next) {
@@ -124,9 +118,7 @@ function () {
124
118
  }, {
125
119
  key: "getDecryptedExport",
126
120
  value: function getDecryptedExport(format) {
127
- return __awaiter(this, void 0, void 0,
128
- /*#__PURE__*/
129
- _regeneratorRuntime.mark(function _callee3() {
121
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
130
122
  var _this = this;
131
123
 
132
124
  var decFolders, decCiphers, promises, foldersMap, exportCiphers, jsonDoc;
@@ -216,9 +208,7 @@ function () {
216
208
  }, {
217
209
  key: "getEncryptedExport",
218
210
  value: function getEncryptedExport() {
219
- return __awaiter(this, void 0, void 0,
220
- /*#__PURE__*/
221
- _regeneratorRuntime.mark(function _callee4() {
211
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
222
212
  var folders, ciphers, jsonDoc;
223
213
  return _regeneratorRuntime.wrap(function _callee4$(_context4) {
224
214
  while (1) {
@@ -270,9 +260,7 @@ function () {
270
260
  }, {
271
261
  key: "getOrganizationDecryptedExport",
272
262
  value: function getOrganizationDecryptedExport(organizationId, format) {
273
- return __awaiter(this, void 0, void 0,
274
- /*#__PURE__*/
275
- _regeneratorRuntime.mark(function _callee5() {
263
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {
276
264
  var _this2 = this;
277
265
 
278
266
  var decCollections, decCiphers, promises, collectionsMap, exportCiphers, jsonDoc;
@@ -376,9 +364,7 @@ function () {
376
364
  }, {
377
365
  key: "getOrganizationEncryptedExport",
378
366
  value: function getOrganizationEncryptedExport(organizationId) {
379
- return __awaiter(this, void 0, void 0,
380
- /*#__PURE__*/
381
- _regeneratorRuntime.mark(function _callee6() {
367
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee6() {
382
368
  var collections, ciphers, promises, jsonDoc;
383
369
  return _regeneratorRuntime.wrap(function _callee6$(_context6) {
384
370
  while (1) {
@@ -45,9 +45,7 @@ var Keys = {
45
45
  ciphersPrefix: 'ciphers_'
46
46
  };
47
47
  var NestingDelimiter = '/';
48
- export var FolderService =
49
- /*#__PURE__*/
50
- function () {
48
+ export var FolderService = /*#__PURE__*/function () {
51
49
  function FolderService(cryptoService, userService, apiService, storageService, i18nService, cipherService) {
52
50
  _classCallCheck(this, FolderService);
53
51
 
@@ -67,9 +65,7 @@ function () {
67
65
  }, {
68
66
  key: "encrypt",
69
67
  value: function encrypt(model, key) {
70
- return __awaiter(this, void 0, void 0,
71
- /*#__PURE__*/
72
- _regeneratorRuntime.mark(function _callee() {
68
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
73
69
  var folder;
74
70
  return _regeneratorRuntime.wrap(function _callee$(_context) {
75
71
  while (1) {
@@ -95,9 +91,7 @@ function () {
95
91
  }, {
96
92
  key: "get",
97
93
  value: function get(id) {
98
- return __awaiter(this, void 0, void 0,
99
- /*#__PURE__*/
100
- _regeneratorRuntime.mark(function _callee2() {
94
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
101
95
  var userId, folders;
102
96
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
103
97
  while (1) {
@@ -135,9 +129,7 @@ function () {
135
129
  }, {
136
130
  key: "getAll",
137
131
  value: function getAll() {
138
- return __awaiter(this, void 0, void 0,
139
- /*#__PURE__*/
140
- _regeneratorRuntime.mark(function _callee3() {
132
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
141
133
  var userId, folders, response, id;
142
134
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
143
135
  while (1) {
@@ -174,9 +166,7 @@ function () {
174
166
  }, {
175
167
  key: "getAllDecrypted",
176
168
  value: function getAllDecrypted() {
177
- return __awaiter(this, void 0, void 0,
178
- /*#__PURE__*/
179
- _regeneratorRuntime.mark(function _callee4() {
169
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
180
170
  var hasKey, decFolders, promises, folders, noneFolder;
181
171
  return _regeneratorRuntime.wrap(function _callee4$(_context4) {
182
172
  while (1) {
@@ -238,9 +228,7 @@ function () {
238
228
  }, {
239
229
  key: "getAllNested",
240
230
  value: function getAllNested() {
241
- return __awaiter(this, void 0, void 0,
242
- /*#__PURE__*/
243
- _regeneratorRuntime.mark(function _callee5() {
231
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {
244
232
  var folders, nodes;
245
233
  return _regeneratorRuntime.wrap(function _callee5$(_context5) {
246
234
  while (1) {
@@ -272,9 +260,7 @@ function () {
272
260
  }, {
273
261
  key: "getNested",
274
262
  value: function getNested(id) {
275
- return __awaiter(this, void 0, void 0,
276
- /*#__PURE__*/
277
- _regeneratorRuntime.mark(function _callee6() {
263
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee6() {
278
264
  var folders;
279
265
  return _regeneratorRuntime.wrap(function _callee6$(_context6) {
280
266
  while (1) {
@@ -298,9 +284,7 @@ function () {
298
284
  }, {
299
285
  key: "saveWithServer",
300
286
  value: function saveWithServer(folder) {
301
- return __awaiter(this, void 0, void 0,
302
- /*#__PURE__*/
303
- _regeneratorRuntime.mark(function _callee7() {
287
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee7() {
304
288
  var request, response, userId, data;
305
289
  return _regeneratorRuntime.wrap(function _callee7$(_context7) {
306
290
  while (1) {
@@ -350,9 +334,7 @@ function () {
350
334
  }, {
351
335
  key: "upsert",
352
336
  value: function upsert(folder) {
353
- return __awaiter(this, void 0, void 0,
354
- /*#__PURE__*/
355
- _regeneratorRuntime.mark(function _callee8() {
337
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee8() {
356
338
  var userId, folders, f;
357
339
  return _regeneratorRuntime.wrap(function _callee8$(_context8) {
358
340
  while (1) {
@@ -399,9 +381,7 @@ function () {
399
381
  }, {
400
382
  key: "replace",
401
383
  value: function replace(folders) {
402
- return __awaiter(this, void 0, void 0,
403
- /*#__PURE__*/
404
- _regeneratorRuntime.mark(function _callee9() {
384
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee9() {
405
385
  var userId;
406
386
  return _regeneratorRuntime.wrap(function _callee9$(_context9) {
407
387
  while (1) {
@@ -429,9 +409,7 @@ function () {
429
409
  }, {
430
410
  key: "clear",
431
411
  value: function clear(userId) {
432
- return __awaiter(this, void 0, void 0,
433
- /*#__PURE__*/
434
- _regeneratorRuntime.mark(function _callee10() {
412
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee10() {
435
413
  return _regeneratorRuntime.wrap(function _callee10$(_context10) {
436
414
  while (1) {
437
415
  switch (_context10.prev = _context10.next) {
@@ -453,9 +431,7 @@ function () {
453
431
  }, {
454
432
  key: "delete",
455
433
  value: function _delete(id) {
456
- return __awaiter(this, void 0, void 0,
457
- /*#__PURE__*/
458
- _regeneratorRuntime.mark(function _callee11() {
434
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee11() {
459
435
  var userId, folders, ciphers, updates, cId;
460
436
  return _regeneratorRuntime.wrap(function _callee11$(_context11) {
461
437
  while (1) {
@@ -541,9 +517,7 @@ function () {
541
517
  }, {
542
518
  key: "deleteWithServer",
543
519
  value: function deleteWithServer(id) {
544
- return __awaiter(this, void 0, void 0,
545
- /*#__PURE__*/
546
- _regeneratorRuntime.mark(function _callee12() {
520
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee12() {
547
521
  return _regeneratorRuntime.wrap(function _callee12$(_context12) {
548
522
  while (1) {
549
523
  switch (_context12.prev = _context12.next) {
@@ -34,9 +34,7 @@ var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, gene
34
34
  });
35
35
  };
36
36
 
37
- export var I18nService =
38
- /*#__PURE__*/
39
- function () {
37
+ export var I18nService = /*#__PURE__*/function () {
40
38
  function I18nService(systemLanguage, localesDirectory, getLocalesJson) {
41
39
  _classCallCheck(this, I18nService);
42
40
 
@@ -54,9 +52,7 @@ function () {
54
52
  _createClass(I18nService, [{
55
53
  key: "init",
56
54
  value: function init(locale) {
57
- return __awaiter(this, void 0, void 0,
58
- /*#__PURE__*/
59
- _regeneratorRuntime.mark(function _callee() {
55
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
60
56
  return _regeneratorRuntime.wrap(function _callee$(_context) {
61
57
  while (1) {
62
58
  switch (_context.prev = _context.next) {
@@ -159,9 +155,7 @@ function () {
159
155
  }, {
160
156
  key: "loadMessages",
161
157
  value: function loadMessages(locale, messagesObj) {
162
- return __awaiter(this, void 0, void 0,
163
- /*#__PURE__*/
164
- _regeneratorRuntime.mark(function _callee2() {
158
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
165
159
  var formattedLocale, locales, prop, placeProp, replaceToken, replaceContent;
166
160
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
167
161
  while (1) {
@@ -92,9 +92,7 @@ import { TrueKeyCsvImporter } from '../importers/truekeyCsvImporter';
92
92
  import { UpmCsvImporter } from '../importers/upmCsvImporter';
93
93
  import { YotiCsvImporter } from '../importers/yotiCsvImporter';
94
94
  import { ZohoVaultCsvImporter } from '../importers/zohoVaultCsvImporter';
95
- export var ImportService =
96
- /*#__PURE__*/
97
- function () {
95
+ export var ImportService = /*#__PURE__*/function () {
98
96
  function ImportService(cipherService, folderService, apiService, i18nService, collectionService) {
99
97
  _classCallCheck(this, ImportService);
100
98
 
@@ -275,9 +273,7 @@ function () {
275
273
  key: "import",
276
274
  value: function _import(importer, fileContents) {
277
275
  var organizationId = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
278
- return __awaiter(this, void 0, void 0,
279
- /*#__PURE__*/
280
- _regeneratorRuntime.mark(function _callee() {
276
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
281
277
  var importResult, halfway, last;
282
278
  return _regeneratorRuntime.wrap(function _callee$(_context) {
283
279
  while (1) {
@@ -517,9 +513,7 @@ function () {
517
513
  key: "postImport",
518
514
  value: function postImport(importResult) {
519
515
  var organizationId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
520
- return __awaiter(this, void 0, void 0,
521
- /*#__PURE__*/
522
- _regeneratorRuntime.mark(function _callee2() {
516
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
523
517
  var request, i, c, _i, f, _request, _i2, _c, _i3, _c2;
524
518
 
525
519
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
@@ -6,9 +6,7 @@ import * as FileSync from 'lowdb/adapters/FileSync';
6
6
  import * as path from 'path';
7
7
  import { NodeUtils } from '../misc/nodeUtils';
8
8
  import { Utils } from '../misc/utils';
9
- export var LowdbStorageService =
10
- /*#__PURE__*/
11
- function () {
9
+ export var LowdbStorageService = /*#__PURE__*/function () {
12
10
  function LowdbStorageService(logService, defaults, dir) {
13
11
  var allowCache = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
14
12
 
@@ -12,9 +12,7 @@ global.Request = fe.Request;
12
12
  global.Response = fe.Response;
13
13
  global.Headers = fe.Headers;
14
14
  global.FormData = FormData;
15
- export var NodeApiService =
16
- /*#__PURE__*/
17
- function (_ApiService) {
15
+ export var NodeApiService = /*#__PURE__*/function (_ApiService) {
18
16
  _inherits(NodeApiService, _ApiService);
19
17
 
20
18
  function NodeApiService(tokenService, platformUtilsService, logoutCallback) {
@@ -38,9 +38,7 @@ import * as crypto from 'crypto';
38
38
  import * as forge from "../../../stubs/node-forge.js";
39
39
  import { Utils } from '../misc/utils';
40
40
  import { DecryptParameters } from '../models/domain/decryptParameters';
41
- export var NodeCryptoFunctionService =
42
- /*#__PURE__*/
43
- function () {
41
+ export var NodeCryptoFunctionService = /*#__PURE__*/function () {
44
42
  function NodeCryptoFunctionService() {
45
43
  _classCallCheck(this, NodeCryptoFunctionService);
46
44
  }
@@ -67,9 +65,7 @@ function () {
67
65
  }, {
68
66
  key: "hkdf",
69
67
  value: function hkdf(ikm, salt, info, outputByteSize, algorithm) {
70
- return __awaiter(this, void 0, void 0,
71
- /*#__PURE__*/
72
- _regeneratorRuntime.mark(function _callee() {
68
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
73
69
  var saltBuf, prk;
74
70
  return _regeneratorRuntime.wrap(function _callee$(_context) {
75
71
  while (1) {
@@ -95,9 +91,7 @@ function () {
95
91
  }, {
96
92
  key: "hkdfExpand",
97
93
  value: function hkdfExpand(prk, info, outputByteSize, algorithm) {
98
- return __awaiter(this, void 0, void 0,
99
- /*#__PURE__*/
100
- _regeneratorRuntime.mark(function _callee2() {
94
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
101
95
  var hashLen, prkArr, infoBuf, infoArr, runningOkmLength, previousT, n, okm, i, t;
102
96
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
103
97
  while (1) {
@@ -194,9 +188,7 @@ function () {
194
188
  }, {
195
189
  key: "compare",
196
190
  value: function compare(a, b) {
197
- return __awaiter(this, void 0, void 0,
198
- /*#__PURE__*/
199
- _regeneratorRuntime.mark(function _callee3() {
191
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
200
192
  var key, mac1, mac2, arr1, arr2, i;
201
193
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
202
194
  while (1) {
@@ -304,9 +296,7 @@ function () {
304
296
  }, {
305
297
  key: "aesDecryptFast",
306
298
  value: function aesDecryptFast(parameters) {
307
- return __awaiter(this, void 0, void 0,
308
- /*#__PURE__*/
309
- _regeneratorRuntime.mark(function _callee4() {
299
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
310
300
  var decBuf;
311
301
  return _regeneratorRuntime.wrap(function _callee4$(_context4) {
312
302
  while (1) {
@@ -374,9 +364,7 @@ function () {
374
364
  }, {
375
365
  key: "rsaGenerateKeyPair",
376
366
  value: function rsaGenerateKeyPair(length) {
377
- return __awaiter(this, void 0, void 0,
378
- /*#__PURE__*/
379
- _regeneratorRuntime.mark(function _callee5() {
367
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {
380
368
  return _regeneratorRuntime.wrap(function _callee5$(_context5) {
381
369
  while (1) {
382
370
  switch (_context5.prev = _context5.next) {
@@ -1,8 +1,6 @@
1
1
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/createClass";
3
- export var NoopMessagingService =
4
- /*#__PURE__*/
5
- function () {
3
+ export var NoopMessagingService = /*#__PURE__*/function () {
6
4
  function NoopMessagingService() {
7
5
  _classCallCheck(this, NoopMessagingService);
8
6
  }
@@ -38,9 +38,7 @@ import * as signalR from '@microsoft/signalr';
38
38
  import * as signalRMsgPack from '@microsoft/signalr-protocol-msgpack';
39
39
  import { NotificationType } from '../enums/notificationType';
40
40
  import { NotificationResponse } from '../models/response/notificationResponse';
41
- export var NotificationsService =
42
- /*#__PURE__*/
43
- function () {
41
+ export var NotificationsService = /*#__PURE__*/function () {
44
42
  function NotificationsService(userService, syncService, appIdService, apiService, vaultTimeoutService, logoutCallback) {
45
43
  _classCallCheck(this, NotificationsService);
46
44
 
@@ -59,9 +57,7 @@ function () {
59
57
  _createClass(NotificationsService, [{
60
58
  key: "init",
61
59
  value: function init(environmentService) {
62
- return __awaiter(this, void 0, void 0,
63
- /*#__PURE__*/
64
- _regeneratorRuntime.mark(function _callee() {
60
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
65
61
  var _this = this;
66
62
 
67
63
  return _regeneratorRuntime.wrap(function _callee$(_context) {
@@ -144,9 +140,7 @@ function () {
144
140
  key: "updateConnection",
145
141
  value: function updateConnection() {
146
142
  var sync = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
147
- return __awaiter(this, void 0, void 0,
148
- /*#__PURE__*/
149
- _regeneratorRuntime.mark(function _callee2() {
143
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
150
144
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
151
145
  while (1) {
152
146
  switch (_context2.prev = _context2.next) {
@@ -201,9 +195,7 @@ function () {
201
195
  }, {
202
196
  key: "reconnectFromActivity",
203
197
  value: function reconnectFromActivity() {
204
- return __awaiter(this, void 0, void 0,
205
- /*#__PURE__*/
206
- _regeneratorRuntime.mark(function _callee3() {
198
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
207
199
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
208
200
  while (1) {
209
201
  switch (_context3.prev = _context3.next) {
@@ -229,9 +221,7 @@ function () {
229
221
  }, {
230
222
  key: "disconnectFromInactivity",
231
223
  value: function disconnectFromInactivity() {
232
- return __awaiter(this, void 0, void 0,
233
- /*#__PURE__*/
234
- _regeneratorRuntime.mark(function _callee4() {
224
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
235
225
  return _regeneratorRuntime.wrap(function _callee4$(_context4) {
236
226
  while (1) {
237
227
  switch (_context4.prev = _context4.next) {
@@ -257,9 +247,7 @@ function () {
257
247
  }, {
258
248
  key: "processNotification",
259
249
  value: function processNotification(notification) {
260
- return __awaiter(this, void 0, void 0,
261
- /*#__PURE__*/
262
- _regeneratorRuntime.mark(function _callee5() {
250
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {
263
251
  var appId, isAuthenticated, payloadUserId, myUserId;
264
252
  return _regeneratorRuntime.wrap(function _callee5$(_context5) {
265
253
  while (1) {
@@ -384,9 +372,7 @@ function () {
384
372
  }, {
385
373
  key: "reconnect",
386
374
  value: function reconnect(sync) {
387
- return __awaiter(this, void 0, void 0,
388
- /*#__PURE__*/
389
- _regeneratorRuntime.mark(function _callee6() {
375
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee6() {
390
376
  var _this2 = this;
391
377
 
392
378
  var authedAndUnlocked;
@@ -462,9 +448,7 @@ function () {
462
448
  }, {
463
449
  key: "isAuthedAndUnlocked",
464
450
  value: function isAuthedAndUnlocked() {
465
- return __awaiter(this, void 0, void 0,
466
- /*#__PURE__*/
467
- _regeneratorRuntime.mark(function _callee7() {
451
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee7() {
468
452
  var locked;
469
453
  return _regeneratorRuntime.wrap(function _callee7$(_context7) {
470
454
  while (1) {
@@ -62,9 +62,7 @@ var Keys = {
62
62
  history: 'generatedPasswordHistory'
63
63
  };
64
64
  var MaxPasswordsInHistory = 100;
65
- export var PasswordGenerationService =
66
- /*#__PURE__*/
67
- function () {
65
+ export var PasswordGenerationService = /*#__PURE__*/function () {
68
66
  function PasswordGenerationService(cryptoService, storageService, policyService) {
69
67
  _classCallCheck(this, PasswordGenerationService);
70
68
 
@@ -76,9 +74,7 @@ function () {
76
74
  _createClass(PasswordGenerationService, [{
77
75
  key: "generatePassword",
78
76
  value: function generatePassword(options) {
79
- return __awaiter(this, void 0, void 0,
80
- /*#__PURE__*/
81
- _regeneratorRuntime.mark(function _callee() {
77
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
82
78
  var o, minLength, positions, i, _i, _i2, _i3, allCharSet, lowercaseCharSet, uppercaseCharSet, numberCharSet, specialCharSet, password, _i4, positionChars, randomCharIndex;
83
79
 
84
80
  return _regeneratorRuntime.wrap(function _callee$(_context) {
@@ -241,9 +237,7 @@ function () {
241
237
  }, {
242
238
  key: "generatePassphrase",
243
239
  value: function generatePassphrase(options) {
244
- return __awaiter(this, void 0, void 0,
245
- /*#__PURE__*/
246
- _regeneratorRuntime.mark(function _callee2() {
240
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
247
241
  var o, listLength, wordList, i, wordIndex;
248
242
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
249
243
  while (1) {
@@ -317,9 +311,7 @@ function () {
317
311
  }, {
318
312
  key: "getOptions",
319
313
  value: function getOptions() {
320
- return __awaiter(this, void 0, void 0,
321
- /*#__PURE__*/
322
- _regeneratorRuntime.mark(function _callee3() {
314
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
323
315
  var options, enforcedOptions;
324
316
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
325
317
  while (1) {
@@ -362,9 +354,7 @@ function () {
362
354
  }, {
363
355
  key: "enforcePasswordGeneratorPoliciesOnOptions",
364
356
  value: function enforcePasswordGeneratorPoliciesOnOptions(options) {
365
- return __awaiter(this, void 0, void 0,
366
- /*#__PURE__*/
367
- _regeneratorRuntime.mark(function _callee4() {
357
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
368
358
  var enforcedPolicyOptions;
369
359
  return _regeneratorRuntime.wrap(function _callee4$(_context4) {
370
360
  while (1) {
@@ -444,9 +434,7 @@ function () {
444
434
  }, {
445
435
  key: "getPasswordGeneratorPolicyOptions",
446
436
  value: function getPasswordGeneratorPolicyOptions() {
447
- return __awaiter(this, void 0, void 0,
448
- /*#__PURE__*/
449
- _regeneratorRuntime.mark(function _callee5() {
437
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {
450
438
  var policies, enforcedOptions;
451
439
  return _regeneratorRuntime.wrap(function _callee5$(_context5) {
452
440
  while (1) {
@@ -547,9 +535,7 @@ function () {
547
535
  }, {
548
536
  key: "saveOptions",
549
537
  value: function saveOptions(options) {
550
- return __awaiter(this, void 0, void 0,
551
- /*#__PURE__*/
552
- _regeneratorRuntime.mark(function _callee6() {
538
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee6() {
553
539
  return _regeneratorRuntime.wrap(function _callee6$(_context6) {
554
540
  while (1) {
555
541
  switch (_context6.prev = _context6.next) {
@@ -571,9 +557,7 @@ function () {
571
557
  }, {
572
558
  key: "getHistory",
573
559
  value: function getHistory() {
574
- return __awaiter(this, void 0, void 0,
575
- /*#__PURE__*/
576
- _regeneratorRuntime.mark(function _callee7() {
560
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee7() {
577
561
  var hasKey, encrypted;
578
562
  return _regeneratorRuntime.wrap(function _callee7$(_context7) {
579
563
  while (1) {
@@ -623,9 +607,7 @@ function () {
623
607
  }, {
624
608
  key: "addHistory",
625
609
  value: function addHistory(password) {
626
- return __awaiter(this, void 0, void 0,
627
- /*#__PURE__*/
628
- _regeneratorRuntime.mark(function _callee8() {
610
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee8() {
629
611
  var hasKey, currentHistory, newHistory;
630
612
  return _regeneratorRuntime.wrap(function _callee8$(_context8) {
631
613
  while (1) {
@@ -687,9 +669,7 @@ function () {
687
669
  }, {
688
670
  key: "clear",
689
671
  value: function clear() {
690
- return __awaiter(this, void 0, void 0,
691
- /*#__PURE__*/
692
- _regeneratorRuntime.mark(function _callee9() {
672
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee9() {
693
673
  return _regeneratorRuntime.wrap(function _callee9$(_context9) {
694
674
  while (1) {
695
675
  switch (_context9.prev = _context9.next) {
@@ -797,9 +777,7 @@ function () {
797
777
  }, {
798
778
  key: "appendRandomNumberToRandomWord",
799
779
  value: function appendRandomNumberToRandomWord(wordList) {
800
- return __awaiter(this, void 0, void 0,
801
- /*#__PURE__*/
802
- _regeneratorRuntime.mark(function _callee10() {
780
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee10() {
803
781
  var index, num;
804
782
  return _regeneratorRuntime.wrap(function _callee10$(_context10) {
805
783
  while (1) {
@@ -836,9 +814,7 @@ function () {
836
814
  }, {
837
815
  key: "encryptHistory",
838
816
  value: function encryptHistory(history) {
839
- return __awaiter(this, void 0, void 0,
840
- /*#__PURE__*/
841
- _regeneratorRuntime.mark(function _callee12() {
817
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee12() {
842
818
  var _this = this;
843
819
 
844
820
  var promises;
@@ -855,9 +831,7 @@ function () {
855
831
 
856
832
  case 2:
857
833
  promises = history.map(function (item) {
858
- return __awaiter(_this, void 0, void 0,
859
- /*#__PURE__*/
860
- _regeneratorRuntime.mark(function _callee11() {
834
+ return __awaiter(_this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee11() {
861
835
  var encrypted;
862
836
  return _regeneratorRuntime.wrap(function _callee11$(_context11) {
863
837
  while (1) {
@@ -895,9 +869,7 @@ function () {
895
869
  }, {
896
870
  key: "decryptHistory",
897
871
  value: function decryptHistory(history) {
898
- return __awaiter(this, void 0, void 0,
899
- /*#__PURE__*/
900
- _regeneratorRuntime.mark(function _callee14() {
872
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee14() {
901
873
  var _this2 = this;
902
874
 
903
875
  var promises;
@@ -914,9 +886,7 @@ function () {
914
886
 
915
887
  case 2:
916
888
  promises = history.map(function (item) {
917
- return __awaiter(_this2, void 0, void 0,
918
- /*#__PURE__*/
919
- _regeneratorRuntime.mark(function _callee13() {
889
+ return __awaiter(_this2, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee13() {
920
890
  var decrypted;
921
891
  return _regeneratorRuntime.wrap(function _callee13$(_context13) {
922
892
  while (1) {
@@ -964,9 +934,7 @@ function () {
964
934
  }, {
965
935
  key: "shuffleArray",
966
936
  value: function shuffleArray(array) {
967
- return __awaiter(this, void 0, void 0,
968
- /*#__PURE__*/
969
- _regeneratorRuntime.mark(function _callee15() {
937
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee15() {
970
938
  var i, j, _ref;
971
939
 
972
940
  return _regeneratorRuntime.wrap(function _callee15$(_context15) {