@acorex-platform/module-auth-client 1.0.2 → 2.0.0-beta.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 (111) hide show
  1. package/fesm2022/{acorex-platform-module-auth-client-accept-invitation.component-Bq49K_8F.mjs → acorex-platform-module-auth-client-accept-invitation.component-DJ9xVuLR.mjs} +3 -3
  2. package/fesm2022/{acorex-platform-module-auth-client-accept-invitation.component-Bq49K_8F.mjs.map → acorex-platform-module-auth-client-accept-invitation.component-DJ9xVuLR.mjs.map} +1 -1
  3. package/fesm2022/{acorex-platform-module-auth-client-acorex-platform-module-auth-client-CBRlR1xT.mjs → acorex-platform-module-auth-client-acorex-platform-module-auth-client-DnctDd1m.mjs} +92 -72
  4. package/fesm2022/acorex-platform-module-auth-client-acorex-platform-module-auth-client-DnctDd1m.mjs.map +1 -0
  5. package/fesm2022/{acorex-platform-module-auth-client-app-chooser.component-DpGdObrH.mjs → acorex-platform-module-auth-client-app-chooser.component-BMId7M51.mjs} +4 -4
  6. package/fesm2022/{acorex-platform-module-auth-client-app-chooser.component-DpGdObrH.mjs.map → acorex-platform-module-auth-client-app-chooser.component-BMId7M51.mjs.map} +1 -1
  7. package/fesm2022/{acorex-platform-module-auth-client-blank.layout-xSXPWxyw.mjs → acorex-platform-module-auth-client-blank.layout-Br0_-TxC.mjs} +1 -1
  8. package/fesm2022/{acorex-platform-module-auth-client-blank.layout-xSXPWxyw.mjs.map → acorex-platform-module-auth-client-blank.layout-Br0_-TxC.mjs.map} +1 -1
  9. package/fesm2022/{acorex-platform-module-auth-client-change-password.command-Bt4yOMMt.mjs → acorex-platform-module-auth-client-change-password.command-BFhAG0M1.mjs} +2 -2
  10. package/fesm2022/{acorex-platform-module-auth-client-change-password.command-Bt4yOMMt.mjs.map → acorex-platform-module-auth-client-change-password.command-BFhAG0M1.mjs.map} +1 -1
  11. package/fesm2022/{acorex-platform-module-auth-client-change-photo.command-tZ3TnzBz.mjs → acorex-platform-module-auth-client-change-photo.command-G-Ucvk0Q.mjs} +6 -5
  12. package/fesm2022/acorex-platform-module-auth-client-change-photo.command-G-Ucvk0Q.mjs.map +1 -0
  13. package/fesm2022/{acorex-platform-module-auth-client-command-return-url.util-mBmtJ7T2.mjs → acorex-platform-module-auth-client-command-return-url.util-D2zy8M1F.mjs} +1 -1
  14. package/fesm2022/{acorex-platform-module-auth-client-command-return-url.util-mBmtJ7T2.mjs.map → acorex-platform-module-auth-client-command-return-url.util-D2zy8M1F.mjs.map} +1 -1
  15. package/fesm2022/acorex-platform-module-auth-client-contracts.mjs +17 -2
  16. package/fesm2022/acorex-platform-module-auth-client-contracts.mjs.map +1 -1
  17. package/fesm2022/{acorex-platform-module-auth-client-edit-account-info.command-DulLUfWs.mjs → acorex-platform-module-auth-client-edit-account-info.command-DlHMUCaC.mjs} +3 -3
  18. package/fesm2022/{acorex-platform-module-auth-client-edit-account-info.command-DulLUfWs.mjs.map → acorex-platform-module-auth-client-edit-account-info.command-DlHMUCaC.mjs.map} +1 -1
  19. package/fesm2022/{acorex-platform-module-auth-client-edit-signature.command-TjOLhvKL.mjs → acorex-platform-module-auth-client-edit-signature.command-ZEGATkZs.mjs} +1 -1
  20. package/fesm2022/{acorex-platform-module-auth-client-edit-signature.command-TjOLhvKL.mjs.map → acorex-platform-module-auth-client-edit-signature.command-ZEGATkZs.mjs.map} +1 -1
  21. package/fesm2022/{acorex-platform-module-auth-client-get-user-activity.query-BxoUkan6.mjs → acorex-platform-module-auth-client-get-user-activity.query-CLkKuRb2.mjs} +2 -2
  22. package/fesm2022/{acorex-platform-module-auth-client-get-user-activity.query-BxoUkan6.mjs.map → acorex-platform-module-auth-client-get-user-activity.query-CLkKuRb2.mjs.map} +1 -1
  23. package/fesm2022/{acorex-platform-module-auth-client-lock-screen.command-QXW3UCik.mjs → acorex-platform-module-auth-client-lock-screen.command-CC96Y_Dw.mjs} +2 -2
  24. package/fesm2022/{acorex-platform-module-auth-client-lock-screen.command-QXW3UCik.mjs.map → acorex-platform-module-auth-client-lock-screen.command-CC96Y_Dw.mjs.map} +1 -1
  25. package/fesm2022/{acorex-platform-module-auth-client-login.module-dy4_aiwN.mjs → acorex-platform-module-auth-client-login.module-CeG5lRCF.mjs} +3 -3
  26. package/fesm2022/{acorex-platform-module-auth-client-login.module-dy4_aiwN.mjs.map → acorex-platform-module-auth-client-login.module-CeG5lRCF.mjs.map} +1 -1
  27. package/fesm2022/{acorex-platform-module-auth-client-manage-two-factor.command-Cal6EJe0.mjs → acorex-platform-module-auth-client-manage-two-factor.command-b_Fnx3CM.mjs} +2 -2
  28. package/fesm2022/{acorex-platform-module-auth-client-manage-two-factor.command-Cal6EJe0.mjs.map → acorex-platform-module-auth-client-manage-two-factor.command-b_Fnx3CM.mjs.map} +1 -1
  29. package/fesm2022/{acorex-platform-module-auth-client-menu.provider-Bz-kRip4.mjs → acorex-platform-module-auth-client-menu.provider-BrnaQ1ed.mjs} +1 -1
  30. package/fesm2022/{acorex-platform-module-auth-client-menu.provider-Bz-kRip4.mjs.map → acorex-platform-module-auth-client-menu.provider-BrnaQ1ed.mjs.map} +1 -1
  31. package/fesm2022/{acorex-platform-module-auth-client-oauth-callback.component-DLrIDQXn.mjs → acorex-platform-module-auth-client-oauth-callback.component-WEoRB-N-.mjs} +1 -1
  32. package/fesm2022/{acorex-platform-module-auth-client-oauth-callback.component-DLrIDQXn.mjs.map → acorex-platform-module-auth-client-oauth-callback.component-WEoRB-N-.mjs.map} +1 -1
  33. package/fesm2022/{acorex-platform-module-auth-client-open-sessions.command-ZG33hlfh.mjs → acorex-platform-module-auth-client-open-sessions.command-yVv0xHKN.mjs} +4 -4
  34. package/fesm2022/{acorex-platform-module-auth-client-open-sessions.command-ZG33hlfh.mjs.map → acorex-platform-module-auth-client-open-sessions.command-yVv0xHKN.mjs.map} +1 -1
  35. package/fesm2022/{acorex-platform-module-auth-client-open-waiting-room.command-CR-_ppYd.mjs → acorex-platform-module-auth-client-open-waiting-room.command-C7FwVYLd.mjs} +1 -1
  36. package/fesm2022/{acorex-platform-module-auth-client-open-waiting-room.command-CR-_ppYd.mjs.map → acorex-platform-module-auth-client-open-waiting-room.command-C7FwVYLd.mjs.map} +1 -1
  37. package/fesm2022/{acorex-platform-module-auth-client-password.component-CE2nXYCz.mjs → acorex-platform-module-auth-client-password.component-BRnmcVUL.mjs} +3 -3
  38. package/fesm2022/{acorex-platform-module-auth-client-password.component-CE2nXYCz.mjs.map → acorex-platform-module-auth-client-password.component-BRnmcVUL.mjs.map} +1 -1
  39. package/fesm2022/{acorex-platform-module-auth-client-password.component-D0pwQEaB.mjs → acorex-platform-module-auth-client-password.component-mswOB-df.mjs} +33 -17
  40. package/fesm2022/acorex-platform-module-auth-client-password.component-mswOB-df.mjs.map +1 -0
  41. package/fesm2022/{acorex-platform-module-auth-client-pin-code.constants-CRsFG7fg.mjs → acorex-platform-module-auth-client-pin-code.constants-Cf4Ktvwz.mjs} +1 -1
  42. package/fesm2022/{acorex-platform-module-auth-client-pin-code.constants-CRsFG7fg.mjs.map → acorex-platform-module-auth-client-pin-code.constants-Cf4Ktvwz.mjs.map} +1 -1
  43. package/fesm2022/{acorex-platform-module-auth-client-platform-settings-unavailable.component-BJMtsa99.mjs → acorex-platform-module-auth-client-platform-settings-unavailable.component-CM8Lk6EC.mjs} +1 -1
  44. package/fesm2022/{acorex-platform-module-auth-client-platform-settings-unavailable.component-BJMtsa99.mjs.map → acorex-platform-module-auth-client-platform-settings-unavailable.component-CM8Lk6EC.mjs.map} +1 -1
  45. package/fesm2022/{acorex-platform-module-auth-client-profile-activity-chart.component-DJKJdwUC.mjs → acorex-platform-module-auth-client-profile-activity-chart.component-49Wyy2wR.mjs} +4 -4
  46. package/fesm2022/{acorex-platform-module-auth-client-profile-activity-chart.component-DJKJdwUC.mjs.map → acorex-platform-module-auth-client-profile-activity-chart.component-49Wyy2wR.mjs.map} +1 -1
  47. package/fesm2022/{acorex-platform-module-auth-client-profile-coming-soon.command-Crh2GsRA.mjs → acorex-platform-module-auth-client-profile-coming-soon.command-BwcWdaYV.mjs} +1 -1
  48. package/fesm2022/{acorex-platform-module-auth-client-profile-coming-soon.command-Crh2GsRA.mjs.map → acorex-platform-module-auth-client-profile-coming-soon.command-BwcWdaYV.mjs.map} +1 -1
  49. package/fesm2022/{acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-Dx2-o9XL.mjs → acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-BahADIHf.mjs} +3 -3
  50. package/fesm2022/{acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-Dx2-o9XL.mjs.map → acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-BahADIHf.mjs.map} +1 -1
  51. package/fesm2022/{acorex-platform-module-auth-client-profile-page-component.provider-CSNCpJTo.mjs → acorex-platform-module-auth-client-profile-page-component.provider-DdEaGL4l.mjs} +4 -4
  52. package/fesm2022/{acorex-platform-module-auth-client-profile-page-component.provider-CSNCpJTo.mjs.map → acorex-platform-module-auth-client-profile-page-component.provider-DdEaGL4l.mjs.map} +1 -1
  53. package/fesm2022/{acorex-platform-module-auth-client-profile-page.component-BM6a4K1A.mjs → acorex-platform-module-auth-client-profile-page.component-DPNc1m34.mjs} +19 -4
  54. package/fesm2022/acorex-platform-module-auth-client-profile-page.component-DPNc1m34.mjs.map +1 -0
  55. package/fesm2022/{acorex-platform-module-auth-client-register-password.component-BxQNY-Nh.mjs → acorex-platform-module-auth-client-register-password.component-DLDUk6D-.mjs} +2 -2
  56. package/fesm2022/{acorex-platform-module-auth-client-register-password.component-BxQNY-Nh.mjs.map → acorex-platform-module-auth-client-register-password.component-DLDUk6D-.mjs.map} +1 -1
  57. package/fesm2022/{acorex-platform-module-auth-client-register.module-BLQWaJky.mjs → acorex-platform-module-auth-client-register.module-JXimTWBS.mjs} +4 -4
  58. package/fesm2022/{acorex-platform-module-auth-client-register.module-BLQWaJky.mjs.map → acorex-platform-module-auth-client-register.module-JXimTWBS.mjs.map} +1 -1
  59. package/fesm2022/{acorex-platform-module-auth-client-remove-pin-code.command-DyO4Oj2C.mjs → acorex-platform-module-auth-client-remove-pin-code.command-HhU7kcHv.mjs} +2 -2
  60. package/fesm2022/{acorex-platform-module-auth-client-remove-pin-code.command-DyO4Oj2C.mjs.map → acorex-platform-module-auth-client-remove-pin-code.command-HhU7kcHv.mjs.map} +1 -1
  61. package/fesm2022/{acorex-platform-module-auth-client-reset-password.component-Cz4UePgF.mjs → acorex-platform-module-auth-client-reset-password.component-COsy6HUr.mjs} +3 -3
  62. package/fesm2022/{acorex-platform-module-auth-client-reset-password.component-Cz4UePgF.mjs.map → acorex-platform-module-auth-client-reset-password.component-COsy6HUr.mjs.map} +1 -1
  63. package/fesm2022/{acorex-platform-module-auth-client-result.component-BS5uizi6.mjs → acorex-platform-module-auth-client-result.component-755aGMyK.mjs} +1 -1
  64. package/fesm2022/{acorex-platform-module-auth-client-result.component-BS5uizi6.mjs.map → acorex-platform-module-auth-client-result.component-755aGMyK.mjs.map} +1 -1
  65. package/fesm2022/{acorex-platform-module-auth-client-routes-DAwpb1Ca.mjs → acorex-platform-module-auth-client-routes-BNr55xqd.mjs} +5 -5
  66. package/fesm2022/{acorex-platform-module-auth-client-routes-DAwpb1Ca.mjs.map → acorex-platform-module-auth-client-routes-BNr55xqd.mjs.map} +1 -1
  67. package/fesm2022/{acorex-platform-module-auth-client-session-limit.component-DH58dRba.mjs → acorex-platform-module-auth-client-session-limit.component-DonVNqDf.mjs} +3 -3
  68. package/fesm2022/{acorex-platform-module-auth-client-session-limit.component-DH58dRba.mjs.map → acorex-platform-module-auth-client-session-limit.component-DonVNqDf.mjs.map} +1 -1
  69. package/fesm2022/{acorex-platform-module-auth-client-session-lock-overlay.component-5opoeMsk.mjs → acorex-platform-module-auth-client-session-lock-overlay.component-BOTFA08T.mjs} +5 -5
  70. package/fesm2022/{acorex-platform-module-auth-client-session-lock-overlay.component-5opoeMsk.mjs.map → acorex-platform-module-auth-client-session-lock-overlay.component-BOTFA08T.mjs.map} +1 -1
  71. package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.command-CRb8NATb.mjs → acorex-platform-module-auth-client-set-pin-code.command-DMQ_HQ1s.mjs} +3 -3
  72. package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.command-CRb8NATb.mjs.map → acorex-platform-module-auth-client-set-pin-code.command-DMQ_HQ1s.mjs.map} +1 -1
  73. package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.component-6NqaEKMs.mjs → acorex-platform-module-auth-client-set-pin-code.component-6TKld7Ij.mjs} +6 -6
  74. package/fesm2022/acorex-platform-module-auth-client-set-pin-code.component-6TKld7Ij.mjs.map +1 -0
  75. package/fesm2022/{acorex-platform-module-auth-client-settings.provider-DsKsZrOC.mjs → acorex-platform-module-auth-client-settings.provider-DEI1iy0_.mjs} +37 -3
  76. package/fesm2022/acorex-platform-module-auth-client-settings.provider-DEI1iy0_.mjs.map +1 -0
  77. package/fesm2022/{acorex-platform-module-auth-client-show-profile-command-BWoDxIdx.mjs → acorex-platform-module-auth-client-show-profile-command-BprKlX1F.mjs} +1 -1
  78. package/fesm2022/{acorex-platform-module-auth-client-show-profile-command-BWoDxIdx.mjs.map → acorex-platform-module-auth-client-show-profile-command-BprKlX1F.mjs.map} +1 -1
  79. package/fesm2022/{acorex-platform-module-auth-client-signout-command-D4Qgv7q2.mjs → acorex-platform-module-auth-client-signout-command-Be5bQi8S.mjs} +1 -1
  80. package/fesm2022/{acorex-platform-module-auth-client-signout-command-D4Qgv7q2.mjs.map → acorex-platform-module-auth-client-signout-command-Be5bQi8S.mjs.map} +1 -1
  81. package/fesm2022/{acorex-platform-module-auth-client-tenant-chooser.component-C8AopfZ4.mjs → acorex-platform-module-auth-client-tenant-chooser.component-CRTqOU_Q.mjs} +4 -4
  82. package/fesm2022/{acorex-platform-module-auth-client-tenant-chooser.component-C8AopfZ4.mjs.map → acorex-platform-module-auth-client-tenant-chooser.component-CRTqOU_Q.mjs.map} +1 -1
  83. package/fesm2022/{acorex-platform-module-auth-client-tenant-request.component-CG74dqMX.mjs → acorex-platform-module-auth-client-tenant-request.component-DGmq6I9N.mjs} +3 -3
  84. package/fesm2022/{acorex-platform-module-auth-client-tenant-request.component-CG74dqMX.mjs.map → acorex-platform-module-auth-client-tenant-request.component-DGmq6I9N.mjs.map} +1 -1
  85. package/fesm2022/{acorex-platform-module-auth-client-two-factor-challenge.storage-mi0UD7Sc.mjs → acorex-platform-module-auth-client-two-factor-challenge.storage-CRxxIWr4.mjs} +1 -1
  86. package/fesm2022/{acorex-platform-module-auth-client-two-factor-challenge.storage-mi0UD7Sc.mjs.map → acorex-platform-module-auth-client-two-factor-challenge.storage-CRxxIWr4.mjs.map} +1 -1
  87. package/fesm2022/{acorex-platform-module-auth-client-two-factor-code.component-DAMphXPJ.mjs → acorex-platform-module-auth-client-two-factor-code.component-EzgdY8gk.mjs} +3 -3
  88. package/fesm2022/{acorex-platform-module-auth-client-two-factor-code.component-DAMphXPJ.mjs.map → acorex-platform-module-auth-client-two-factor-code.component-EzgdY8gk.mjs.map} +1 -1
  89. package/fesm2022/{acorex-platform-module-auth-client-two-factor.module-xzAzTU4n.mjs → acorex-platform-module-auth-client-two-factor.module-BagKn247.mjs} +2 -2
  90. package/fesm2022/{acorex-platform-module-auth-client-two-factor.module-xzAzTU4n.mjs.map → acorex-platform-module-auth-client-two-factor.module-BagKn247.mjs.map} +1 -1
  91. package/fesm2022/{acorex-platform-module-auth-client-view-login-history.command-CLWGDmsI.mjs → acorex-platform-module-auth-client-view-login-history.command-BEooTMcO.mjs} +2 -2
  92. package/fesm2022/{acorex-platform-module-auth-client-view-login-history.command-CLWGDmsI.mjs.map → acorex-platform-module-auth-client-view-login-history.command-BEooTMcO.mjs.map} +1 -1
  93. package/fesm2022/{acorex-platform-module-auth-client-waiting-room.component-C0VyZQdV.mjs → acorex-platform-module-auth-client-waiting-room.component-BCBZEvJi.mjs} +3 -3
  94. package/fesm2022/{acorex-platform-module-auth-client-waiting-room.component-C0VyZQdV.mjs.map → acorex-platform-module-auth-client-waiting-room.component-BCBZEvJi.mjs.map} +1 -1
  95. package/fesm2022/{acorex-platform-module-auth-client-welcome-onboarding-page.component-CdgoC07Q.mjs → acorex-platform-module-auth-client-welcome-onboarding-page.component-NrNTyMSV.mjs} +4 -4
  96. package/fesm2022/{acorex-platform-module-auth-client-welcome-onboarding-page.component-CdgoC07Q.mjs.map → acorex-platform-module-auth-client-welcome-onboarding-page.component-NrNTyMSV.mjs.map} +1 -1
  97. package/fesm2022/{acorex-platform-module-auth-client-welcome-onboarding.command-BNOEiB5l.mjs → acorex-platform-module-auth-client-welcome-onboarding.command-CP6lD4eO.mjs} +2 -2
  98. package/fesm2022/{acorex-platform-module-auth-client-welcome-onboarding.command-BNOEiB5l.mjs.map → acorex-platform-module-auth-client-welcome-onboarding.command-CP6lD4eO.mjs.map} +1 -1
  99. package/fesm2022/acorex-platform-module-auth-client.mjs +1 -1
  100. package/i18n/en-AU/auth.json +21 -1
  101. package/i18n/en-US/auth.json +21 -1
  102. package/i18n/fa-IR/auth.json +21 -1
  103. package/package.json +3 -3
  104. package/types/acorex-platform-module-auth-client-contracts.d.ts +15 -2
  105. package/types/acorex-platform-module-auth-client.d.ts +2 -0
  106. package/fesm2022/acorex-platform-module-auth-client-acorex-platform-module-auth-client-CBRlR1xT.mjs.map +0 -1
  107. package/fesm2022/acorex-platform-module-auth-client-change-photo.command-tZ3TnzBz.mjs.map +0 -1
  108. package/fesm2022/acorex-platform-module-auth-client-password.component-D0pwQEaB.mjs.map +0 -1
  109. package/fesm2022/acorex-platform-module-auth-client-profile-page.component-BM6a4K1A.mjs.map +0 -1
  110. package/fesm2022/acorex-platform-module-auth-client-set-pin-code.component-6NqaEKMs.mjs.map +0 -1
  111. package/fesm2022/acorex-platform-module-auth-client-settings.provider-DsKsZrOC.mjs.map +0 -1
@@ -144,7 +144,7 @@ class AXPAcceptInvitationComponent {
144
144
  }
145
145
  }
146
146
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPAcceptInvitationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
147
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPAcceptInvitationComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<ng-container *translate=\"let t\">\n <div class=\"axp-auth-form\">\n <!-- ----- Checking the token before any password fields are shown ----- -->\n @if (phase() === 'checking') {\n <div class=\"text-center mb-3 lg:mb-5\">\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:accept-invitation.checking' | translate | async }}\n </p>\n </div>\n }\n <!-- ----- Used, unknown, or expired link: message and login, no password form ----- -->\n @else if (phase() === 'unusable') {\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:accept-invitation.unavailable.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:accept-invitation.unavailable.description' | translate | async }}\n </p>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:accept-invitation.unavailable.go-to-login' | translate | async\"\n (onClick)=\"goToLogin()\"\n ></ax-button>\n }\n <!-- ----- Open invitation: set a password ----- -->\n @else {\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:accept-invitation.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:accept-invitation.hint' | translate | async }}\n </p>\n </div>\n <ax-form>\n <div class=\"flex flex-col gap-4 lg:gap-6\">\n <ax-form-field>\n <ax-label>{{\n '@auth:accept-invitation.new-password' | translate | async\n }}</ax-label>\n <ax-password-box\n name=\"newPassword\"\n [(value)]=\"newPassword\"\n [disabled]=\"submitting\"\n ></ax-password-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{\n '@auth:accept-invitation.confirm-password' | translate | async\n }}</ax-label>\n <ax-password-box\n name=\"confirmPassword\"\n [(value)]=\"confirmPassword\"\n [disabled]=\"submitting\"\n ></ax-password-box>\n </ax-form-field>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:accept-invitation.submit' | translate | async\"\n [disabled]=\"submitting\"\n (onClick)=\"submit()\"\n ></ax-button>\n <p class=\"text-center mt-6 text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a\n [routerLink]=\"['/auth/login']\"\n class=\"text-primary font-medium cursor-pointer hover:underline\"\n >\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </ax-form>\n }\n </div>\n</ng-container>\n", styles: [":host{display:block;width:100%}.axp-auth-form{width:100%;margin-inline:auto}@media(min-width:768px){.axp-auth-form{width:24rem;max-width:100%}}.axp-auth-form ax-form,.axp-auth-form ax-form-field,.axp-auth-form ax-password-box{display:block;width:100%}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i1.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "component", type: i1.AXFormComponent, selector: "ax-form", inputs: ["disabled", "readonly", "labelMode", "look", "messageStyle", "updateOn", "inUserInteractionActive"], outputs: ["onValidate", "updateOnChange"] }, { kind: "ngmodule", type: AXPasswordBoxModule }, { kind: "component", type: i2.AXPasswordBoxComponent, selector: "ax-password-box", inputs: ["readonly", "disabled", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "autoComplete", "showToggleButton", "class"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1$1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i4.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i5.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i6.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "pipe", type: i5$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
147
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPAcceptInvitationComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<ng-container *translate=\"let t\">\n <div class=\"axp-auth-form\">\n <!-- ----- Checking the token before any password fields are shown ----- -->\n @if (phase() === 'checking') {\n <div class=\"text-center mb-3 lg:mb-5\">\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:accept-invitation.checking' | translate | async }}\n </p>\n </div>\n }\n <!-- ----- Used, unknown, or expired link: message and login, no password form ----- -->\n @else if (phase() === 'unusable') {\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:accept-invitation.unavailable.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:accept-invitation.unavailable.description' | translate | async }}\n </p>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:accept-invitation.unavailable.go-to-login' | translate | async\"\n (onClick)=\"goToLogin()\"\n ></ax-button>\n }\n <!-- ----- Open invitation: set a password ----- -->\n @else {\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:accept-invitation.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:accept-invitation.hint' | translate | async }}\n </p>\n </div>\n <ax-form>\n <div class=\"flex flex-col gap-4 lg:gap-6\">\n <ax-form-field>\n <ax-label>{{\n '@auth:accept-invitation.new-password' | translate | async\n }}</ax-label>\n <ax-password-box\n name=\"newPassword\"\n [(value)]=\"newPassword\"\n [disabled]=\"submitting\"\n ></ax-password-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{\n '@auth:accept-invitation.confirm-password' | translate | async\n }}</ax-label>\n <ax-password-box\n name=\"confirmPassword\"\n [(value)]=\"confirmPassword\"\n [disabled]=\"submitting\"\n ></ax-password-box>\n </ax-form-field>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:accept-invitation.submit' | translate | async\"\n [disabled]=\"submitting\"\n (onClick)=\"submit()\"\n ></ax-button>\n <p class=\"text-center mt-6 text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a\n [routerLink]=\"['/auth/login']\"\n class=\"text-primary font-medium cursor-pointer hover:underline\"\n >\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </ax-form>\n }\n </div>\n</ng-container>\n", styles: [":host{display:block;width:100%}.axp-auth-form{width:100%;margin-inline:auto}@media(min-width:768px){.axp-auth-form{width:24rem;max-width:100%}}.axp-auth-form ax-form,.axp-auth-form ax-form-field,.axp-auth-form ax-password-box{display:block;width:100%}\n/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i1.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "component", type: i1.AXFormComponent, selector: "ax-form", inputs: ["disabled", "readonly", "labelMode", "look", "messageStyle", "updateOn", "inUserInteractionActive"], outputs: ["onValidate", "updateOnChange"] }, { kind: "ngmodule", type: AXPasswordBoxModule }, { kind: "component", type: i2.AXPasswordBoxComponent, selector: "ax-password-box", inputs: ["readonly", "disabled", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "autoComplete", "showToggleButton", "class"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1$1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i4.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i5.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i6.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "pipe", type: i5$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
148
148
  }
149
149
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPAcceptInvitationComponent, decorators: [{
150
150
  type: Component,
@@ -156,7 +156,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
156
156
  AXLabelModule,
157
157
  AXTranslationModule,
158
158
  RouterModule,
159
- ], template: "<ng-container *translate=\"let t\">\n <div class=\"axp-auth-form\">\n <!-- ----- Checking the token before any password fields are shown ----- -->\n @if (phase() === 'checking') {\n <div class=\"text-center mb-3 lg:mb-5\">\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:accept-invitation.checking' | translate | async }}\n </p>\n </div>\n }\n <!-- ----- Used, unknown, or expired link: message and login, no password form ----- -->\n @else if (phase() === 'unusable') {\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:accept-invitation.unavailable.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:accept-invitation.unavailable.description' | translate | async }}\n </p>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:accept-invitation.unavailable.go-to-login' | translate | async\"\n (onClick)=\"goToLogin()\"\n ></ax-button>\n }\n <!-- ----- Open invitation: set a password ----- -->\n @else {\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:accept-invitation.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:accept-invitation.hint' | translate | async }}\n </p>\n </div>\n <ax-form>\n <div class=\"flex flex-col gap-4 lg:gap-6\">\n <ax-form-field>\n <ax-label>{{\n '@auth:accept-invitation.new-password' | translate | async\n }}</ax-label>\n <ax-password-box\n name=\"newPassword\"\n [(value)]=\"newPassword\"\n [disabled]=\"submitting\"\n ></ax-password-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{\n '@auth:accept-invitation.confirm-password' | translate | async\n }}</ax-label>\n <ax-password-box\n name=\"confirmPassword\"\n [(value)]=\"confirmPassword\"\n [disabled]=\"submitting\"\n ></ax-password-box>\n </ax-form-field>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:accept-invitation.submit' | translate | async\"\n [disabled]=\"submitting\"\n (onClick)=\"submit()\"\n ></ax-button>\n <p class=\"text-center mt-6 text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a\n [routerLink]=\"['/auth/login']\"\n class=\"text-primary font-medium cursor-pointer hover:underline\"\n >\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </ax-form>\n }\n </div>\n</ng-container>\n", styles: [":host{display:block;width:100%}.axp-auth-form{width:100%;margin-inline:auto}@media(min-width:768px){.axp-auth-form{width:24rem;max-width:100%}}.axp-auth-form ax-form,.axp-auth-form ax-form-field,.axp-auth-form ax-password-box{display:block;width:100%}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
159
+ ], template: "<ng-container *translate=\"let t\">\n <div class=\"axp-auth-form\">\n <!-- ----- Checking the token before any password fields are shown ----- -->\n @if (phase() === 'checking') {\n <div class=\"text-center mb-3 lg:mb-5\">\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:accept-invitation.checking' | translate | async }}\n </p>\n </div>\n }\n <!-- ----- Used, unknown, or expired link: message and login, no password form ----- -->\n @else if (phase() === 'unusable') {\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:accept-invitation.unavailable.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:accept-invitation.unavailable.description' | translate | async }}\n </p>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:accept-invitation.unavailable.go-to-login' | translate | async\"\n (onClick)=\"goToLogin()\"\n ></ax-button>\n }\n <!-- ----- Open invitation: set a password ----- -->\n @else {\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:accept-invitation.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:accept-invitation.hint' | translate | async }}\n </p>\n </div>\n <ax-form>\n <div class=\"flex flex-col gap-4 lg:gap-6\">\n <ax-form-field>\n <ax-label>{{\n '@auth:accept-invitation.new-password' | translate | async\n }}</ax-label>\n <ax-password-box\n name=\"newPassword\"\n [(value)]=\"newPassword\"\n [disabled]=\"submitting\"\n ></ax-password-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{\n '@auth:accept-invitation.confirm-password' | translate | async\n }}</ax-label>\n <ax-password-box\n name=\"confirmPassword\"\n [(value)]=\"confirmPassword\"\n [disabled]=\"submitting\"\n ></ax-password-box>\n </ax-form-field>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:accept-invitation.submit' | translate | async\"\n [disabled]=\"submitting\"\n (onClick)=\"submit()\"\n ></ax-button>\n <p class=\"text-center mt-6 text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a\n [routerLink]=\"['/auth/login']\"\n class=\"text-primary font-medium cursor-pointer hover:underline\"\n >\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </ax-form>\n }\n </div>\n</ng-container>\n", styles: [":host{display:block;width:100%}.axp-auth-form{width:100%;margin-inline:auto}@media(min-width:768px){.axp-auth-form{width:24rem;max-width:100%}}.axp-auth-form ax-form,.axp-auth-form ax-form-field,.axp-auth-form ax-password-box{display:block;width:100%}\n/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */\n"] }]
160
160
  }] });
161
161
  //#endregion
162
162
  //#region ----- Helpers -----
@@ -176,4 +176,4 @@ function isPasswordRequired(code, text) {
176
176
  }
177
177
 
178
178
  export { AXPAcceptInvitationComponent };
179
- //# sourceMappingURL=acorex-platform-module-auth-client-accept-invitation.component-Bq49K_8F.mjs.map
179
+ //# sourceMappingURL=acorex-platform-module-auth-client-accept-invitation.component-DJ9xVuLR.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-auth-client-accept-invitation.component-Bq49K_8F.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/accept-invitation/accept-invitation.component.ts","../../../../libs/modules/auth/client/src/lib/pages/accept-invitation/accept-invitation.component.html"],"sourcesContent":["import { commandMessageTextForError } from '@acorex-platform/framework-client/common';\nimport { AXPCommandService } from '@acorex-platform/framework-client/runtime';\nimport {\n AXM_ACCEPT_INVITATION_ERROR_CODES,\n AXMSecurityManagementServerCommands,\n type AXMAcceptInvitationPreviewResult,\n} from '@acorex-platform/module-security-management-client/contracts';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXPasswordBoxModule } from '@acorex/components/password-box';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationModule, AXTranslationService } from '@acorex/core/translation';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, OnInit, inject, signal } from '@angular/core';\nimport { ActivatedRoute, Router, RouterModule } from '@angular/router';\n\n//#region ----- Types -----\n\ntype AcceptInvitationPhase = 'checking' | 'form' | 'unusable';\n\n//#endregion\n\n//#region ----- Component -----\n\n@Component({\n templateUrl: './accept-invitation.component.html',\n styleUrls: ['./accept-invitation.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n AXFormModule,\n AXPasswordBoxModule,\n AXButtonModule,\n AXLabelModule,\n AXTranslationModule,\n RouterModule,\n ],\n})\nexport class AXPAcceptInvitationComponent implements OnInit {\n //#region ----- Services & Dependencies -----\n\n private readonly route = inject(ActivatedRoute);\n private readonly router = inject(Router);\n private readonly commandService = inject(AXPCommandService);\n private readonly toast = inject(AXToastService);\n private readonly translation = inject(AXTranslationService);\n\n //#endregion\n\n //#region ----- State Signals -----\n\n /** `unusable` hides the password form and shows the used/invalid message. */\n protected readonly phase = signal<AcceptInvitationPhase>('checking');\n\n //#endregion\n\n //#region ----- Form State -----\n\n protected token = '';\n protected newPassword = '';\n protected confirmPassword = '';\n protected submitting = false;\n\n //#endregion\n\n //#region ----- Lifecycle -----\n\n ngOnInit(): void {\n this.token = this.route.snapshot.queryParamMap.get('token') ?? '';\n void this.loadPreview();\n }\n\n //#endregion\n\n //#region ----- Event Handlers -----\n\n protected goToLogin(): void {\n void this.router.navigate(['/auth/login']);\n }\n\n protected async submit(): Promise<void> {\n if (this.submitting || this.phase() !== 'form') {\n return;\n }\n\n const token = this.token.trim();\n if (!token) {\n this.phase.set('unusable');\n return;\n }\n\n if (this.newPassword && this.newPassword.length < 6) {\n const msg = await this.translation\n .translateAsync('@auth:accept-invitation.password-too-short')\n .catch(() => 'Password must be at least 6 characters.');\n this.toast.show({ color: 'warning', title: msg, content: msg });\n return;\n }\n\n if (this.newPassword !== this.confirmPassword) {\n const msg = await this.translation\n .translateAsync('@auth:accept-invitation.password-mismatch')\n .catch(() => 'Passwords do not match.');\n this.toast.show({ color: 'warning', title: msg, content: msg });\n return;\n }\n\n this.submitting = true;\n try {\n const result = await this.commandService.executeRemote(\n AXMSecurityManagementServerCommands.AcceptInvitation,\n {\n token,\n newPassword: this.newPassword || undefined,\n },\n );\n\n if (!result?.success) {\n const messageText = commandMessageTextForError(result?.message?.text);\n if (isInvitationLinkUnusable(result?.message?.code, messageText)) {\n this.phase.set('unusable');\n return;\n }\n throw new Error(messageText || 'Accept failed');\n }\n\n const [title, content] = await Promise.all([\n this.translation\n .translateAsync('@auth:accept-invitation.success.title')\n .catch(() => 'Invitation Accepted'),\n this.translation\n .translateAsync('@auth:accept-invitation.success.description')\n .catch(() => 'Your invitation was accepted. You can sign in now.'),\n ]);\n this.toast.show({ color: 'success', title, content, timeOut: 4000 });\n await this.router.navigate(['/auth/login']);\n } catch (error) {\n const [title, fallbackContent] = await Promise.all([\n this.translation\n .translateAsync('@auth:accept-invitation.error.title')\n .catch(() => 'Accept Failed'),\n this.translation\n .translateAsync('@auth:accept-invitation.error.description')\n .catch(() => 'Unable to accept the invitation. The link may have expired.'),\n ]);\n const content =\n error instanceof Error && error.message ? error.message : fallbackContent;\n this.toast.show({ color: 'danger', title, content, timeOut: 5000 });\n } finally {\n this.submitting = false;\n }\n }\n\n //#endregion\n\n //#region ----- Preview -----\n\n private async loadPreview(): Promise<void> {\n const token = this.token.trim();\n if (!token) {\n this.phase.set('unusable');\n return;\n }\n\n try {\n const result = await this.commandService.executeRemote(\n AXMSecurityManagementServerCommands.AcceptInvitation,\n { token, preview: true },\n );\n\n if (!result?.success) {\n // Older API ignores `preview` and rejects a missing password — still show the form.\n const messageText = commandMessageTextForError(result?.message?.text);\n if (isPasswordRequired(result?.message?.code, messageText)) {\n this.phase.set('form');\n return;\n }\n this.phase.set('unusable');\n return;\n }\n\n const preview = result.data as AXMAcceptInvitationPreviewResult | undefined;\n this.phase.set(preview?.usable === false ? 'unusable' : 'form');\n } catch {\n this.phase.set('unusable');\n }\n }\n\n //#endregion\n}\n\n//#endregion\n\n//#region ----- Helpers -----\n\nfunction isInvitationLinkUnusable(code: string | undefined, text: string | undefined): boolean {\n if (\n code === AXM_ACCEPT_INVITATION_ERROR_CODES.Invalid ||\n code === AXM_ACCEPT_INVITATION_ERROR_CODES.Expired\n ) {\n return true;\n }\n const normalized = (text ?? '').toLowerCase();\n return normalized.includes('invalid') || normalized.includes('expired') || normalized.includes('token is required');\n}\n\nfunction isPasswordRequired(code: string | undefined, text: string | undefined): boolean {\n if (code === AXM_ACCEPT_INVITATION_ERROR_CODES.PasswordRequired) {\n return true;\n }\n return (text ?? '').toLowerCase().includes('password');\n}\n\n//#endregion\n","<ng-container *translate=\"let t\">\n <div class=\"axp-auth-form\">\n <!-- ----- Checking the token before any password fields are shown ----- -->\n @if (phase() === 'checking') {\n <div class=\"text-center mb-3 lg:mb-5\">\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:accept-invitation.checking' | translate | async }}\n </p>\n </div>\n }\n <!-- ----- Used, unknown, or expired link: message and login, no password form ----- -->\n @else if (phase() === 'unusable') {\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:accept-invitation.unavailable.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:accept-invitation.unavailable.description' | translate | async }}\n </p>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:accept-invitation.unavailable.go-to-login' | translate | async\"\n (onClick)=\"goToLogin()\"\n ></ax-button>\n }\n <!-- ----- Open invitation: set a password ----- -->\n @else {\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:accept-invitation.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:accept-invitation.hint' | translate | async }}\n </p>\n </div>\n <ax-form>\n <div class=\"flex flex-col gap-4 lg:gap-6\">\n <ax-form-field>\n <ax-label>{{\n '@auth:accept-invitation.new-password' | translate | async\n }}</ax-label>\n <ax-password-box\n name=\"newPassword\"\n [(value)]=\"newPassword\"\n [disabled]=\"submitting\"\n ></ax-password-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{\n '@auth:accept-invitation.confirm-password' | translate | async\n }}</ax-label>\n <ax-password-box\n name=\"confirmPassword\"\n [(value)]=\"confirmPassword\"\n [disabled]=\"submitting\"\n ></ax-password-box>\n </ax-form-field>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:accept-invitation.submit' | translate | async\"\n [disabled]=\"submitting\"\n (onClick)=\"submit()\"\n ></ax-button>\n <p class=\"text-center mt-6 text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a\n [routerLink]=\"['/auth/login']\"\n class=\"text-primary font-medium cursor-pointer hover:underline\"\n >\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </ax-form>\n }\n </div>\n</ng-container>\n"],"names":["i3","i7"],"mappings":";;;;;;;;;;;;;;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AA,EAAA,QAAA,EAAA,k+FAAA,EAAA,MAAA,EAAA,CAAA,kUAAA,CAAA,EAAA;;AA2JH;AAEA;AAEA,SAAS,wBAAwB,CAAC,IAAwB,EAAE,IAAwB,EAAA;AAClF,IAAA,IACE,IAAI,KAAK,iCAAiC,CAAC,OAAO;AAClD,QAAA,IAAI,KAAK,iCAAiC,CAAC,OAAO,EAClD;AACA,QAAA,OAAO,IAAI;IACb;IACA,MAAM,UAAU,GAAG,CAAC,IAAI,IAAI,EAAE,EAAE,WAAW,EAAE;IAC7C,OAAO,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,UAAU,CAAC,QAAQ,CAAC,mBAAmB,CAAC;AACrH;AAEA,SAAS,kBAAkB,CAAC,IAAwB,EAAE,IAAwB,EAAA;AAC5E,IAAA,IAAI,IAAI,KAAK,iCAAiC,CAAC,gBAAgB,EAAE;AAC/D,QAAA,OAAO,IAAI;IACb;AACA,IAAA,OAAO,CAAC,IAAI,IAAI,EAAE,EAAE,WAAW,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC;AACxD;;"}
1
+ {"version":3,"file":"acorex-platform-module-auth-client-accept-invitation.component-DJ9xVuLR.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/accept-invitation/accept-invitation.component.ts","../../../../libs/modules/auth/client/src/lib/pages/accept-invitation/accept-invitation.component.html"],"sourcesContent":["import { commandMessageTextForError } from '@acorex-platform/framework-client/common';\nimport { AXPCommandService } from '@acorex-platform/framework-client/runtime';\nimport {\n AXM_ACCEPT_INVITATION_ERROR_CODES,\n AXMSecurityManagementServerCommands,\n type AXMAcceptInvitationPreviewResult,\n} from '@acorex-platform/module-security-management-client/contracts';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXPasswordBoxModule } from '@acorex/components/password-box';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationModule, AXTranslationService } from '@acorex/core/translation';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, OnInit, inject, signal } from '@angular/core';\nimport { ActivatedRoute, Router, RouterModule } from '@angular/router';\n\n//#region ----- Types -----\n\ntype AcceptInvitationPhase = 'checking' | 'form' | 'unusable';\n\n//#endregion\n\n//#region ----- Component -----\n\n@Component({\n templateUrl: './accept-invitation.component.html',\n styleUrls: ['./accept-invitation.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n AXFormModule,\n AXPasswordBoxModule,\n AXButtonModule,\n AXLabelModule,\n AXTranslationModule,\n RouterModule,\n ],\n})\nexport class AXPAcceptInvitationComponent implements OnInit {\n //#region ----- Services & Dependencies -----\n\n private readonly route = inject(ActivatedRoute);\n private readonly router = inject(Router);\n private readonly commandService = inject(AXPCommandService);\n private readonly toast = inject(AXToastService);\n private readonly translation = inject(AXTranslationService);\n\n //#endregion\n\n //#region ----- State Signals -----\n\n /** `unusable` hides the password form and shows the used/invalid message. */\n protected readonly phase = signal<AcceptInvitationPhase>('checking');\n\n //#endregion\n\n //#region ----- Form State -----\n\n protected token = '';\n protected newPassword = '';\n protected confirmPassword = '';\n protected submitting = false;\n\n //#endregion\n\n //#region ----- Lifecycle -----\n\n ngOnInit(): void {\n this.token = this.route.snapshot.queryParamMap.get('token') ?? '';\n void this.loadPreview();\n }\n\n //#endregion\n\n //#region ----- Event Handlers -----\n\n protected goToLogin(): void {\n void this.router.navigate(['/auth/login']);\n }\n\n protected async submit(): Promise<void> {\n if (this.submitting || this.phase() !== 'form') {\n return;\n }\n\n const token = this.token.trim();\n if (!token) {\n this.phase.set('unusable');\n return;\n }\n\n if (this.newPassword && this.newPassword.length < 6) {\n const msg = await this.translation\n .translateAsync('@auth:accept-invitation.password-too-short')\n .catch(() => 'Password must be at least 6 characters.');\n this.toast.show({ color: 'warning', title: msg, content: msg });\n return;\n }\n\n if (this.newPassword !== this.confirmPassword) {\n const msg = await this.translation\n .translateAsync('@auth:accept-invitation.password-mismatch')\n .catch(() => 'Passwords do not match.');\n this.toast.show({ color: 'warning', title: msg, content: msg });\n return;\n }\n\n this.submitting = true;\n try {\n const result = await this.commandService.executeRemote(\n AXMSecurityManagementServerCommands.AcceptInvitation,\n {\n token,\n newPassword: this.newPassword || undefined,\n },\n );\n\n if (!result?.success) {\n const messageText = commandMessageTextForError(result?.message?.text);\n if (isInvitationLinkUnusable(result?.message?.code, messageText)) {\n this.phase.set('unusable');\n return;\n }\n throw new Error(messageText || 'Accept failed');\n }\n\n const [title, content] = await Promise.all([\n this.translation\n .translateAsync('@auth:accept-invitation.success.title')\n .catch(() => 'Invitation Accepted'),\n this.translation\n .translateAsync('@auth:accept-invitation.success.description')\n .catch(() => 'Your invitation was accepted. You can sign in now.'),\n ]);\n this.toast.show({ color: 'success', title, content, timeOut: 4000 });\n await this.router.navigate(['/auth/login']);\n } catch (error) {\n const [title, fallbackContent] = await Promise.all([\n this.translation\n .translateAsync('@auth:accept-invitation.error.title')\n .catch(() => 'Accept Failed'),\n this.translation\n .translateAsync('@auth:accept-invitation.error.description')\n .catch(() => 'Unable to accept the invitation. The link may have expired.'),\n ]);\n const content =\n error instanceof Error && error.message ? error.message : fallbackContent;\n this.toast.show({ color: 'danger', title, content, timeOut: 5000 });\n } finally {\n this.submitting = false;\n }\n }\n\n //#endregion\n\n //#region ----- Preview -----\n\n private async loadPreview(): Promise<void> {\n const token = this.token.trim();\n if (!token) {\n this.phase.set('unusable');\n return;\n }\n\n try {\n const result = await this.commandService.executeRemote(\n AXMSecurityManagementServerCommands.AcceptInvitation,\n { token, preview: true },\n );\n\n if (!result?.success) {\n // Older API ignores `preview` and rejects a missing password — still show the form.\n const messageText = commandMessageTextForError(result?.message?.text);\n if (isPasswordRequired(result?.message?.code, messageText)) {\n this.phase.set('form');\n return;\n }\n this.phase.set('unusable');\n return;\n }\n\n const preview = result.data as AXMAcceptInvitationPreviewResult | undefined;\n this.phase.set(preview?.usable === false ? 'unusable' : 'form');\n } catch {\n this.phase.set('unusable');\n }\n }\n\n //#endregion\n}\n\n//#endregion\n\n//#region ----- Helpers -----\n\nfunction isInvitationLinkUnusable(code: string | undefined, text: string | undefined): boolean {\n if (\n code === AXM_ACCEPT_INVITATION_ERROR_CODES.Invalid ||\n code === AXM_ACCEPT_INVITATION_ERROR_CODES.Expired\n ) {\n return true;\n }\n const normalized = (text ?? '').toLowerCase();\n return normalized.includes('invalid') || normalized.includes('expired') || normalized.includes('token is required');\n}\n\nfunction isPasswordRequired(code: string | undefined, text: string | undefined): boolean {\n if (code === AXM_ACCEPT_INVITATION_ERROR_CODES.PasswordRequired) {\n return true;\n }\n return (text ?? '').toLowerCase().includes('password');\n}\n\n//#endregion\n","<ng-container *translate=\"let t\">\n <div class=\"axp-auth-form\">\n <!-- ----- Checking the token before any password fields are shown ----- -->\n @if (phase() === 'checking') {\n <div class=\"text-center mb-3 lg:mb-5\">\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:accept-invitation.checking' | translate | async }}\n </p>\n </div>\n }\n <!-- ----- Used, unknown, or expired link: message and login, no password form ----- -->\n @else if (phase() === 'unusable') {\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:accept-invitation.unavailable.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:accept-invitation.unavailable.description' | translate | async }}\n </p>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:accept-invitation.unavailable.go-to-login' | translate | async\"\n (onClick)=\"goToLogin()\"\n ></ax-button>\n }\n <!-- ----- Open invitation: set a password ----- -->\n @else {\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:accept-invitation.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:accept-invitation.hint' | translate | async }}\n </p>\n </div>\n <ax-form>\n <div class=\"flex flex-col gap-4 lg:gap-6\">\n <ax-form-field>\n <ax-label>{{\n '@auth:accept-invitation.new-password' | translate | async\n }}</ax-label>\n <ax-password-box\n name=\"newPassword\"\n [(value)]=\"newPassword\"\n [disabled]=\"submitting\"\n ></ax-password-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{\n '@auth:accept-invitation.confirm-password' | translate | async\n }}</ax-label>\n <ax-password-box\n name=\"confirmPassword\"\n [(value)]=\"confirmPassword\"\n [disabled]=\"submitting\"\n ></ax-password-box>\n </ax-form-field>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:accept-invitation.submit' | translate | async\"\n [disabled]=\"submitting\"\n (onClick)=\"submit()\"\n ></ax-button>\n <p class=\"text-center mt-6 text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a\n [routerLink]=\"['/auth/login']\"\n class=\"text-primary font-medium cursor-pointer hover:underline\"\n >\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </ax-form>\n }\n </div>\n</ng-container>\n"],"names":["i3","i7"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA;AAEA;MAgBa,4BAA4B,CAAA;AAdzC,IAAA,WAAA,GAAA;;AAiBmB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC;AAC9B,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACvB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC;AAC9B,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,oBAAoB,CAAC;;;;QAOxC,IAAA,CAAA,KAAK,GAAG,MAAM,CAAwB,UAAU;kFAAC;;;QAM1D,IAAA,CAAA,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