@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
@@ -19,7 +19,7 @@ import { AXPUserAvatarComponent } from '@acorex-platform/framework-client/layout
19
19
  import * as i5$1 from '@angular/common';
20
20
  import { CommonModule } from '@angular/common';
21
21
  import { Router } from '@angular/router';
22
- import { z as AXPTenantChooserDropdownComponent, B as AXPAppChooserListComponent } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-CBRlR1xT.mjs';
22
+ import { z as AXPTenantChooserDropdownComponent, B as AXPAppChooserListComponent } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-DnctDd1m.mjs';
23
23
 
24
24
  class AXPAuthAppChooserComponent {
25
25
  constructor() {
@@ -48,7 +48,7 @@ class AXPAuthAppChooserComponent {
48
48
  this.router.navigate(['/auth/login']);
49
49
  }
50
50
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPAuthAppChooserComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
51
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPAuthAppChooserComponent, isStandalone: true, selector: "axp-auth-app-chooser", ngImport: i0, template: "<main *translate=\"let t\" class=\"axp-auth-chooser\">\n <div class=\"axp-auth-chooser__inner\">\n <!-- ----- Platform branding ----- -->\n <section class=\"axp-auth-chooser__brand\">\n <axp-logo\n logoKey=\"platform\"\n appearance=\"onLight\"\n format=\"full\"\n [size]=\"260\"\n [attr.alt]=\"platformTitle()\"\n ></axp-logo>\n </section>\n <!-- ----- Application selection card ----- -->\n <section class=\"axp-auth-chooser__card-wrap\">\n <div class=\"axp-auth-chooser__card\">\n <!-- ----- Profile header while catalog loads ----- -->\n @if (catalogLoading()) {\n <ax-skeleton [animated]=\"true\" class=\"size-[72px] rounded-full shrink-0\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-6 w-56 max-w-full\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-5 w-32 max-w-full\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-4 w-64 max-w-full\"></ax-skeleton>\n } @else {\n <axp-user-avatar\n [size]=\"72\"\n [userId]=\"$safeNavigationMigration(user?.id)!\"\n [showPresence]=\"false\"\n ></axp-user-avatar>\n <h2 class=\"md:text-lg font-medium\">\n {{ '@auth:welcome.message' | translate | async }}, {{ user?.title }}\n </h2>\n <axp-tenant-chooser-dropdown></axp-tenant-chooser-dropdown>\n <p class=\"text-neutral-500 text-sm md:text-base font-medium\">\n {{ '@auth:application-chooser.description' | translate | async }}\n </p>\n }\n <div class=\"mt-3 w-full overflow-auto max-h-[300px]\">\n <axp-app-chooser-list (loadingChange)=\"handleCatalogLoading($event)\"></axp-app-chooser-list>\n </div>\n </div>\n </section>\n <!-- ----- Navigation footer ----- -->\n <section class=\"axp-auth-chooser__footer\">\n <p class=\"text-neutral-400 text-sm\">\n {{ '@auth:application-chooser.footer' | translate | async }}\n @if (tenants$ | async; as tenants) {\n @if (tenants.length > 1) {\n <a\n (click)=\"tenantChooser()\"\n class=\"text-primary-500 cursor-pointer font-medium hover:underline\"\n >\n {{ '@auth:application-chooser.backCompany' | translate | async }}\n </a>\n }\n <!-- ----- Single-tenant users return to login ----- -->\n @else {\n <a\n (click)=\"handleSignout()\"\n class=\"text-primary-500 font-medium cursor-pointer hover:underline\"\n >\n {{ '@auth:backLogin' | translate | async }}\n </a>\n }\n }\n </p>\n </section>\n </div>\n</main>\n", styles: ["@layer properties;.axp-auth-chooser{display:flex;width:100%;flex-direction:column;align-items:center;overflow-y:auto;background-color:rgba(var(--ax-sys-color-lightest-surface));height:100vh;height:100dvh;-webkit-overflow-scrolling:touch}.axp-auth-chooser__inner{display:flex;width:100%;flex-grow:1;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--spacing, .25rem) * 6);padding-inline:calc(var(--spacing, .25rem) * 4);min-height:100%;box-sizing:border-box;padding-top:max(2.75rem,calc(env(safe-area-inset-top,0px) + 1.75rem));padding-bottom:max(1.5rem,env(safe-area-inset-bottom,0px))}.axp-auth-chooser__brand{display:flex;width:100%;flex-shrink:0;justify-content:center}.axp-auth-chooser__brand axp-logo{width:min(16.25rem,85vw);max-width:100%}.axp-auth-chooser__card-wrap{display:flex;width:100%;flex-shrink:0;justify-content:center}.axp-auth-chooser__card{display:flex;width:100%;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--spacing, .25rem) * 4);border-radius:var(--radius-lg, .5rem);border-style:var(--tw-border-style);border-width:0px;padding:calc(var(--spacing, .25rem) * 5);text-align:center;--tw-shadow: 0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);max-width:28rem}.axp-auth-chooser__footer{flex-shrink:0;padding-inline:var(--spacing, .25rem);text-align:center}@media(min-width:640px){.axp-auth-chooser__inner{gap:calc(var(--spacing, .25rem) * 8);padding-inline:calc(var(--spacing, .25rem) * 6);padding-top:max(3rem,calc(env(safe-area-inset-top,0px) + 2rem))}.axp-auth-chooser__brand axp-logo{width:min(16.25rem,90vw)}}@media(min-width:768px){.axp-auth-chooser{background-color:var(--color-bg-default)}.axp-auth-chooser__inner{gap:calc(var(--spacing, .25rem) * 10);padding-inline:calc(var(--spacing, .25rem) * 6);padding-top:3.5rem;padding-bottom:2.5rem}.axp-auth-chooser__card{gap:calc(var(--spacing, .25rem) * 2);border-style:var(--tw-border-style);border-width:1px;padding:calc(var(--spacing, .25rem) * 6);--tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / .1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);width:min(90vw,28rem);max-width:28rem}}@media(min-width:1024px){.axp-auth-chooser__inner{padding-inline:0px;padding-top:3.5rem;padding-bottom:2.5rem}.axp-auth-chooser__card{width:min(90vw,28rem)}}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n", ".gradient{background:-webkit-linear-gradient(var(--ax-current-v1),var(--ax-current-v2));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "ngmodule", type: AXLabelModule }, { kind: "ngmodule", type: AXCheckBoxModule }, { kind: "ngmodule", type: AXImageModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: AXPLogoComponent, selector: "axp-logo", inputs: ["logoKey", "appearance", "size", "format"] }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "ngmodule", type: AXSkeletonModule }, { kind: "component", type: i3.AXSkeletonComponent, selector: "ax-skeleton", inputs: ["animated"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i5.AXTranslatorDirective, selector: "[translate]" }, { kind: "component", type: AXPTenantChooserDropdownComponent, selector: "axp-tenant-chooser-dropdown", inputs: ["inline"] }, { kind: "component", type: AXPAppChooserListComponent, selector: "axp-app-chooser-list", inputs: ["simple"], outputs: ["applicationChosen", "loadingChange"] }, { kind: "component", type: AXPUserAvatarComponent, selector: "axp-user-avatar", inputs: ["size", "userId", "showPresence", "displayName", "displayAvatar"] }, { kind: "pipe", type: i5$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager, encapsulation: i0.ViewEncapsulation.None }); }
51
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPAuthAppChooserComponent, isStandalone: true, selector: "axp-auth-app-chooser", ngImport: i0, template: "<main *translate=\"let t\" class=\"axp-auth-chooser\">\n <div class=\"axp-auth-chooser__inner\">\n <!-- ----- Platform branding ----- -->\n <section class=\"axp-auth-chooser__brand\">\n <axp-logo\n logoKey=\"platform\"\n appearance=\"onLight\"\n format=\"full\"\n [size]=\"260\"\n [attr.alt]=\"platformTitle()\"\n ></axp-logo>\n </section>\n <!-- ----- Application selection card ----- -->\n <section class=\"axp-auth-chooser__card-wrap\">\n <div class=\"axp-auth-chooser__card\">\n <!-- ----- Profile header while catalog loads ----- -->\n @if (catalogLoading()) {\n <ax-skeleton [animated]=\"true\" class=\"size-[72px] rounded-full shrink-0\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-6 w-56 max-w-full\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-5 w-32 max-w-full\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-4 w-64 max-w-full\"></ax-skeleton>\n } @else {\n <axp-user-avatar\n [size]=\"72\"\n [userId]=\"$safeNavigationMigration(user?.id)!\"\n [showPresence]=\"false\"\n ></axp-user-avatar>\n <h2 class=\"md:text-lg font-medium\">\n {{ '@auth:welcome.message' | translate | async }}, {{ user?.title }}\n </h2>\n <axp-tenant-chooser-dropdown></axp-tenant-chooser-dropdown>\n <p class=\"text-neutral-500 text-sm md:text-base font-medium\">\n {{ '@auth:application-chooser.description' | translate | async }}\n </p>\n }\n <div class=\"mt-3 w-full overflow-auto max-h-[300px]\">\n <axp-app-chooser-list (loadingChange)=\"handleCatalogLoading($event)\"></axp-app-chooser-list>\n </div>\n </div>\n </section>\n <!-- ----- Navigation footer ----- -->\n <section class=\"axp-auth-chooser__footer\">\n <p class=\"text-neutral-400 text-sm\">\n {{ '@auth:application-chooser.footer' | translate | async }}\n @if (tenants$ | async; as tenants) {\n @if (tenants.length > 1) {\n <a\n (click)=\"tenantChooser()\"\n class=\"text-primary-500 cursor-pointer font-medium hover:underline\"\n >\n {{ '@auth:application-chooser.backCompany' | translate | async }}\n </a>\n }\n <!-- ----- Single-tenant users return to login ----- -->\n @else {\n <a\n (click)=\"handleSignout()\"\n class=\"text-primary-500 font-medium cursor-pointer hover:underline\"\n >\n {{ '@auth:backLogin' | translate | async }}\n </a>\n }\n }\n </p>\n </section>\n </div>\n</main>\n", styles: ["@layer properties;.axp-auth-chooser{display:flex;width:100%;flex-direction:column;align-items:center;overflow-y:auto;background-color:rgba(var(--ax-sys-color-lightest-surface));height:100vh;height:100dvh;-webkit-overflow-scrolling:touch}.axp-auth-chooser__inner{display:flex;width:100%;flex-grow:1;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--spacing, .25rem) * 6);padding-inline:calc(var(--spacing, .25rem) * 4);min-height:100%;box-sizing:border-box;padding-top:max(2.75rem,calc(env(safe-area-inset-top,0px) + 1.75rem));padding-bottom:max(1.5rem,env(safe-area-inset-bottom,0px))}.axp-auth-chooser__brand{display:flex;width:100%;flex-shrink:0;justify-content:center}.axp-auth-chooser__brand axp-logo{width:min(16.25rem,85vw);max-width:100%}.axp-auth-chooser__card-wrap{display:flex;width:100%;flex-shrink:0;justify-content:center}.axp-auth-chooser__card{display:flex;width:100%;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--spacing, .25rem) * 4);border-radius:var(--radius-lg, .5rem);border-style:var(--tw-border-style);border-width:0px;padding:calc(var(--spacing, .25rem) * 5);text-align:center;--tw-shadow: 0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);max-width:28rem}.axp-auth-chooser__footer{flex-shrink:0;padding-inline:var(--spacing, .25rem);text-align:center}@media(min-width:640px){.axp-auth-chooser__inner{gap:calc(var(--spacing, .25rem) * 8);padding-inline:calc(var(--spacing, .25rem) * 6);padding-top:max(3rem,calc(env(safe-area-inset-top,0px) + 2rem))}.axp-auth-chooser__brand axp-logo{width:min(16.25rem,90vw)}}@media(min-width:768px){.axp-auth-chooser{background-color:var(--color-bg-default)}.axp-auth-chooser__inner{gap:calc(var(--spacing, .25rem) * 10);padding-inline:calc(var(--spacing, .25rem) * 6);padding-top:3.5rem;padding-bottom:2.5rem}.axp-auth-chooser__card{gap:calc(var(--spacing, .25rem) * 2);border-style:var(--tw-border-style);border-width:1px;padding:calc(var(--spacing, .25rem) * 6);--tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / .1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);width:min(90vw,28rem);max-width:28rem}}@media(min-width:1024px){.axp-auth-chooser__inner{padding-inline:0px;padding-top:3.5rem;padding-bottom:2.5rem}.axp-auth-chooser__card{width:min(90vw,28rem)}}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000}}}\n/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */\n", ".gradient{background:-webkit-linear-gradient(var(--ax-current-v1),var(--ax-current-v2));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}\n/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "ngmodule", type: AXLabelModule }, { kind: "ngmodule", type: AXCheckBoxModule }, { kind: "ngmodule", type: AXImageModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: AXPLogoComponent, selector: "axp-logo", inputs: ["logoKey", "appearance", "size", "format"] }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "ngmodule", type: AXSkeletonModule }, { kind: "component", type: i3.AXSkeletonComponent, selector: "ax-skeleton", inputs: ["animated"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i5.AXTranslatorDirective, selector: "[translate]" }, { kind: "component", type: AXPTenantChooserDropdownComponent, selector: "axp-tenant-chooser-dropdown", inputs: ["inline"] }, { kind: "component", type: AXPAppChooserListComponent, selector: "axp-app-chooser-list", inputs: ["simple"], outputs: ["applicationChosen", "loadingChange"] }, { kind: "component", type: AXPUserAvatarComponent, selector: "axp-user-avatar", inputs: ["size", "userId", "showPresence", "displayName", "displayAvatar"] }, { kind: "pipe", type: i5$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager, encapsulation: i0.ViewEncapsulation.None }); }
52
52
  }
53
53
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPAuthAppChooserComponent, decorators: [{
54
54
  type: Component,
@@ -68,8 +68,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
68
68
  AXPTenantChooserDropdownComponent,
69
69
  AXPAppChooserListComponent,
70
70
  AXPUserAvatarComponent,
71
- ], changeDetection: ChangeDetectionStrategy.Eager, encapsulation: ViewEncapsulation.None, template: "<main *translate=\"let t\" class=\"axp-auth-chooser\">\n <div class=\"axp-auth-chooser__inner\">\n <!-- ----- Platform branding ----- -->\n <section class=\"axp-auth-chooser__brand\">\n <axp-logo\n logoKey=\"platform\"\n appearance=\"onLight\"\n format=\"full\"\n [size]=\"260\"\n [attr.alt]=\"platformTitle()\"\n ></axp-logo>\n </section>\n <!-- ----- Application selection card ----- -->\n <section class=\"axp-auth-chooser__card-wrap\">\n <div class=\"axp-auth-chooser__card\">\n <!-- ----- Profile header while catalog loads ----- -->\n @if (catalogLoading()) {\n <ax-skeleton [animated]=\"true\" class=\"size-[72px] rounded-full shrink-0\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-6 w-56 max-w-full\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-5 w-32 max-w-full\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-4 w-64 max-w-full\"></ax-skeleton>\n } @else {\n <axp-user-avatar\n [size]=\"72\"\n [userId]=\"$safeNavigationMigration(user?.id)!\"\n [showPresence]=\"false\"\n ></axp-user-avatar>\n <h2 class=\"md:text-lg font-medium\">\n {{ '@auth:welcome.message' | translate | async }}, {{ user?.title }}\n </h2>\n <axp-tenant-chooser-dropdown></axp-tenant-chooser-dropdown>\n <p class=\"text-neutral-500 text-sm md:text-base font-medium\">\n {{ '@auth:application-chooser.description' | translate | async }}\n </p>\n }\n <div class=\"mt-3 w-full overflow-auto max-h-[300px]\">\n <axp-app-chooser-list (loadingChange)=\"handleCatalogLoading($event)\"></axp-app-chooser-list>\n </div>\n </div>\n </section>\n <!-- ----- Navigation footer ----- -->\n <section class=\"axp-auth-chooser__footer\">\n <p class=\"text-neutral-400 text-sm\">\n {{ '@auth:application-chooser.footer' | translate | async }}\n @if (tenants$ | async; as tenants) {\n @if (tenants.length > 1) {\n <a\n (click)=\"tenantChooser()\"\n class=\"text-primary-500 cursor-pointer font-medium hover:underline\"\n >\n {{ '@auth:application-chooser.backCompany' | translate | async }}\n </a>\n }\n <!-- ----- Single-tenant users return to login ----- -->\n @else {\n <a\n (click)=\"handleSignout()\"\n class=\"text-primary-500 font-medium cursor-pointer hover:underline\"\n >\n {{ '@auth:backLogin' | translate | async }}\n </a>\n }\n }\n </p>\n </section>\n </div>\n</main>\n", styles: ["@layer properties;.axp-auth-chooser{display:flex;width:100%;flex-direction:column;align-items:center;overflow-y:auto;background-color:rgba(var(--ax-sys-color-lightest-surface));height:100vh;height:100dvh;-webkit-overflow-scrolling:touch}.axp-auth-chooser__inner{display:flex;width:100%;flex-grow:1;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--spacing, .25rem) * 6);padding-inline:calc(var(--spacing, .25rem) * 4);min-height:100%;box-sizing:border-box;padding-top:max(2.75rem,calc(env(safe-area-inset-top,0px) + 1.75rem));padding-bottom:max(1.5rem,env(safe-area-inset-bottom,0px))}.axp-auth-chooser__brand{display:flex;width:100%;flex-shrink:0;justify-content:center}.axp-auth-chooser__brand axp-logo{width:min(16.25rem,85vw);max-width:100%}.axp-auth-chooser__card-wrap{display:flex;width:100%;flex-shrink:0;justify-content:center}.axp-auth-chooser__card{display:flex;width:100%;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--spacing, .25rem) * 4);border-radius:var(--radius-lg, .5rem);border-style:var(--tw-border-style);border-width:0px;padding:calc(var(--spacing, .25rem) * 5);text-align:center;--tw-shadow: 0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);max-width:28rem}.axp-auth-chooser__footer{flex-shrink:0;padding-inline:var(--spacing, .25rem);text-align:center}@media(min-width:640px){.axp-auth-chooser__inner{gap:calc(var(--spacing, .25rem) * 8);padding-inline:calc(var(--spacing, .25rem) * 6);padding-top:max(3rem,calc(env(safe-area-inset-top,0px) + 2rem))}.axp-auth-chooser__brand axp-logo{width:min(16.25rem,90vw)}}@media(min-width:768px){.axp-auth-chooser{background-color:var(--color-bg-default)}.axp-auth-chooser__inner{gap:calc(var(--spacing, .25rem) * 10);padding-inline:calc(var(--spacing, .25rem) * 6);padding-top:3.5rem;padding-bottom:2.5rem}.axp-auth-chooser__card{gap:calc(var(--spacing, .25rem) * 2);border-style:var(--tw-border-style);border-width:1px;padding:calc(var(--spacing, .25rem) * 6);--tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / .1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);width:min(90vw,28rem);max-width:28rem}}@media(min-width:1024px){.axp-auth-chooser__inner{padding-inline:0px;padding-top:3.5rem;padding-bottom:2.5rem}.axp-auth-chooser__card{width:min(90vw,28rem)}}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n", ".gradient{background:-webkit-linear-gradient(var(--ax-current-v1),var(--ax-current-v2));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
71
+ ], changeDetection: ChangeDetectionStrategy.Eager, encapsulation: ViewEncapsulation.None, template: "<main *translate=\"let t\" class=\"axp-auth-chooser\">\n <div class=\"axp-auth-chooser__inner\">\n <!-- ----- Platform branding ----- -->\n <section class=\"axp-auth-chooser__brand\">\n <axp-logo\n logoKey=\"platform\"\n appearance=\"onLight\"\n format=\"full\"\n [size]=\"260\"\n [attr.alt]=\"platformTitle()\"\n ></axp-logo>\n </section>\n <!-- ----- Application selection card ----- -->\n <section class=\"axp-auth-chooser__card-wrap\">\n <div class=\"axp-auth-chooser__card\">\n <!-- ----- Profile header while catalog loads ----- -->\n @if (catalogLoading()) {\n <ax-skeleton [animated]=\"true\" class=\"size-[72px] rounded-full shrink-0\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-6 w-56 max-w-full\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-5 w-32 max-w-full\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-4 w-64 max-w-full\"></ax-skeleton>\n } @else {\n <axp-user-avatar\n [size]=\"72\"\n [userId]=\"$safeNavigationMigration(user?.id)!\"\n [showPresence]=\"false\"\n ></axp-user-avatar>\n <h2 class=\"md:text-lg font-medium\">\n {{ '@auth:welcome.message' | translate | async }}, {{ user?.title }}\n </h2>\n <axp-tenant-chooser-dropdown></axp-tenant-chooser-dropdown>\n <p class=\"text-neutral-500 text-sm md:text-base font-medium\">\n {{ '@auth:application-chooser.description' | translate | async }}\n </p>\n }\n <div class=\"mt-3 w-full overflow-auto max-h-[300px]\">\n <axp-app-chooser-list (loadingChange)=\"handleCatalogLoading($event)\"></axp-app-chooser-list>\n </div>\n </div>\n </section>\n <!-- ----- Navigation footer ----- -->\n <section class=\"axp-auth-chooser__footer\">\n <p class=\"text-neutral-400 text-sm\">\n {{ '@auth:application-chooser.footer' | translate | async }}\n @if (tenants$ | async; as tenants) {\n @if (tenants.length > 1) {\n <a\n (click)=\"tenantChooser()\"\n class=\"text-primary-500 cursor-pointer font-medium hover:underline\"\n >\n {{ '@auth:application-chooser.backCompany' | translate | async }}\n </a>\n }\n <!-- ----- Single-tenant users return to login ----- -->\n @else {\n <a\n (click)=\"handleSignout()\"\n class=\"text-primary-500 font-medium cursor-pointer hover:underline\"\n >\n {{ '@auth:backLogin' | translate | async }}\n </a>\n }\n }\n </p>\n </section>\n </div>\n</main>\n", styles: ["@layer properties;.axp-auth-chooser{display:flex;width:100%;flex-direction:column;align-items:center;overflow-y:auto;background-color:rgba(var(--ax-sys-color-lightest-surface));height:100vh;height:100dvh;-webkit-overflow-scrolling:touch}.axp-auth-chooser__inner{display:flex;width:100%;flex-grow:1;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--spacing, .25rem) * 6);padding-inline:calc(var(--spacing, .25rem) * 4);min-height:100%;box-sizing:border-box;padding-top:max(2.75rem,calc(env(safe-area-inset-top,0px) + 1.75rem));padding-bottom:max(1.5rem,env(safe-area-inset-bottom,0px))}.axp-auth-chooser__brand{display:flex;width:100%;flex-shrink:0;justify-content:center}.axp-auth-chooser__brand axp-logo{width:min(16.25rem,85vw);max-width:100%}.axp-auth-chooser__card-wrap{display:flex;width:100%;flex-shrink:0;justify-content:center}.axp-auth-chooser__card{display:flex;width:100%;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--spacing, .25rem) * 4);border-radius:var(--radius-lg, .5rem);border-style:var(--tw-border-style);border-width:0px;padding:calc(var(--spacing, .25rem) * 5);text-align:center;--tw-shadow: 0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);max-width:28rem}.axp-auth-chooser__footer{flex-shrink:0;padding-inline:var(--spacing, .25rem);text-align:center}@media(min-width:640px){.axp-auth-chooser__inner{gap:calc(var(--spacing, .25rem) * 8);padding-inline:calc(var(--spacing, .25rem) * 6);padding-top:max(3rem,calc(env(safe-area-inset-top,0px) + 2rem))}.axp-auth-chooser__brand axp-logo{width:min(16.25rem,90vw)}}@media(min-width:768px){.axp-auth-chooser{background-color:var(--color-bg-default)}.axp-auth-chooser__inner{gap:calc(var(--spacing, .25rem) * 10);padding-inline:calc(var(--spacing, .25rem) * 6);padding-top:3.5rem;padding-bottom:2.5rem}.axp-auth-chooser__card{gap:calc(var(--spacing, .25rem) * 2);border-style:var(--tw-border-style);border-width:1px;padding:calc(var(--spacing, .25rem) * 6);--tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / .1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);width:min(90vw,28rem);max-width:28rem}}@media(min-width:1024px){.axp-auth-chooser__inner{padding-inline:0px;padding-top:3.5rem;padding-bottom:2.5rem}.axp-auth-chooser__card{width:min(90vw,28rem)}}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000}}}\n/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */\n", ".gradient{background:-webkit-linear-gradient(var(--ax-current-v1),var(--ax-current-v2));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}\n/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */\n"] }]
72
72
  }] });
73
73
 
74
74
  export { AXPAuthAppChooserComponent };
75
- //# sourceMappingURL=acorex-platform-module-auth-client-app-chooser.component-DpGdObrH.mjs.map
75
+ //# sourceMappingURL=acorex-platform-module-auth-client-app-chooser.component-BMId7M51.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-auth-client-app-chooser.component-DpGdObrH.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/account/app-chooser/app-chooser.component.ts","../../../../libs/modules/auth/client/src/lib/pages/account/app-chooser/app-chooser.component.html"],"sourcesContent":["import { Component, OnInit, ViewEncapsulation, inject, ChangeDetectionStrategy, signal } from '@angular/core';\n\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXCheckBoxModule } from '@acorex/components/check-box';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXImageModule } from '@acorex/components/image';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXSkeletonModule } from '@acorex/components/skeleton';\nimport { AXTextBoxModule } from '@acorex/components/text-box';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPPlatformBrandingService } from '@acorex-platform/framework-client/common';\nimport { AXPLogoComponent } from '@acorex-platform/framework-client/core';\nimport { AXPUserAvatarComponent } from '@acorex-platform/framework-client/layout/components';\nimport { CommonModule } from '@angular/common';\nimport { Router } from '@angular/router';\nimport { AXPTenantChooserDropdownComponent } from '../tenant-chooser/tenant-chooser-dropdown.component';\nimport { AXPAppChooserListComponent } from './app-chooser-list.component';\n\n@Component({\n selector: 'axp-auth-app-chooser',\n templateUrl: './app-chooser.component.html',\n styleUrls: ['../shared/auth-chooser.layout.css', './app-chooser.component.css'],\n imports: [\n CommonModule,\n AXFormModule,\n AXTextBoxModule,\n AXButtonModule,\n AXLabelModule,\n AXCheckBoxModule,\n AXImageModule,\n AXDecoratorModule,\n AXPLogoComponent,\n AXLoadingModule,\n AXSkeletonModule,\n AXTranslationModule,\n AXPTenantChooserDropdownComponent,\n AXPAppChooserListComponent,\n AXPUserAvatarComponent,\n ],\n changeDetection: ChangeDetectionStrategy.Eager,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXPAuthAppChooserComponent implements OnInit {\n ngOnInit(): void {\n void this.platformBranding.resolvePlatformTitle().then((title) => this.platformTitle.set(title));\n }\n private router = inject(Router);\n private readonly platformBranding = inject(AXPPlatformBrandingService);\n protected readonly platformTitle = signal('');\n private sessionService = inject(AXPSessionService);\n\n protected user = this.sessionService.user;\n protected tenants$ = this.sessionService.tenants$;\n protected tenant = this.sessionService.tenant;\n protected catalogLoading = signal(true);\n\n handleCatalogLoading(loading: boolean): void {\n this.catalogLoading.set(loading);\n }\n\n tenantChooser() {\n this.router.navigate(['/auth/account/tenant-chooser']);\n }\n\n async handleSignout() {\n await this.sessionService.signout();\n this.router.navigate(['/auth/login']);\n }\n}\n","<main *translate=\"let t\" class=\"axp-auth-chooser\">\n <div class=\"axp-auth-chooser__inner\">\n <!-- ----- Platform branding ----- -->\n <section class=\"axp-auth-chooser__brand\">\n <axp-logo\n logoKey=\"platform\"\n appearance=\"onLight\"\n format=\"full\"\n [size]=\"260\"\n [attr.alt]=\"platformTitle()\"\n ></axp-logo>\n </section>\n <!-- ----- Application selection card ----- -->\n <section class=\"axp-auth-chooser__card-wrap\">\n <div class=\"axp-auth-chooser__card\">\n <!-- ----- Profile header while catalog loads ----- -->\n @if (catalogLoading()) {\n <ax-skeleton [animated]=\"true\" class=\"size-[72px] rounded-full shrink-0\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-6 w-56 max-w-full\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-5 w-32 max-w-full\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-4 w-64 max-w-full\"></ax-skeleton>\n } @else {\n <axp-user-avatar\n [size]=\"72\"\n [userId]=\"$safeNavigationMigration(user?.id)!\"\n [showPresence]=\"false\"\n ></axp-user-avatar>\n <h2 class=\"md:text-lg font-medium\">\n {{ '@auth:welcome.message' | translate | async }}, {{ user?.title }}\n </h2>\n <axp-tenant-chooser-dropdown></axp-tenant-chooser-dropdown>\n <p class=\"text-neutral-500 text-sm md:text-base font-medium\">\n {{ '@auth:application-chooser.description' | translate | async }}\n </p>\n }\n <div class=\"mt-3 w-full overflow-auto max-h-[300px]\">\n <axp-app-chooser-list (loadingChange)=\"handleCatalogLoading($event)\"></axp-app-chooser-list>\n </div>\n </div>\n </section>\n <!-- ----- Navigation footer ----- -->\n <section class=\"axp-auth-chooser__footer\">\n <p class=\"text-neutral-400 text-sm\">\n {{ '@auth:application-chooser.footer' | translate | async }}\n @if (tenants$ | async; as tenants) {\n @if (tenants.length > 1) {\n <a\n (click)=\"tenantChooser()\"\n class=\"text-primary-500 cursor-pointer font-medium hover:underline\"\n >\n {{ '@auth:application-chooser.backCompany' | translate | async }}\n </a>\n }\n <!-- ----- Single-tenant users return to login ----- -->\n @else {\n <a\n (click)=\"handleSignout()\"\n class=\"text-primary-500 font-medium cursor-pointer hover:underline\"\n >\n {{ '@auth:backLogin' | translate | async }}\n </a>\n }\n }\n </p>\n </section>\n </div>\n</main>\n"],"names":["i1","i2","i3"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;MA6Ca,0BAA0B,CAAA;AAxBvC,IAAA,WAAA,GAAA;AA4BU,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACd,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,0BAA0B,CAAC;QACnD,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,EA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IAAA,EACjC,0BAA0B,sIAC1B,sBAAsB,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,QAAA,EAAA,cAAA,EAAA,aAAA,EAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,IAAA,CAAA,SAAA,EAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAD,EAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,KAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAKb,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAxBtC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,sBAAsB,EAAA,OAAA,EAGvB;wBACP,YAAY;wBACZ,YAAY;wBACZ,eAAe;wBACf,cAAc;wBACd,aAAa;wBACb,gBAAgB;wBAChB,aAAa;wBACb,iBAAiB;wBACjB,gBAAgB;wBAChB,eAAe;wBACf,gBAAgB;wBAChB,mBAAmB;wBACnB,iCAAiC;wBACjC,0BAA0B;wBAC1B,sBAAsB;AACvB,qBAAA,EAAA,eAAA,EACgB,uBAAuB,CAAC,KAAK,EAAA,aAAA,EAC/B,iBAAiB,CAAC,IAAI,EAAA,QAAA,EAAA,gvFAAA,EAAA,MAAA,EAAA,CAAA,4yIAAA,EAAA,qPAAA,CAAA,EAAA;;;"}
1
+ {"version":3,"file":"acorex-platform-module-auth-client-app-chooser.component-BMId7M51.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/account/app-chooser/app-chooser.component.ts","../../../../libs/modules/auth/client/src/lib/pages/account/app-chooser/app-chooser.component.html"],"sourcesContent":["import { Component, OnInit, ViewEncapsulation, inject, ChangeDetectionStrategy, signal } from '@angular/core';\n\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXCheckBoxModule } from '@acorex/components/check-box';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXImageModule } from '@acorex/components/image';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXSkeletonModule } from '@acorex/components/skeleton';\nimport { AXTextBoxModule } from '@acorex/components/text-box';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPPlatformBrandingService } from '@acorex-platform/framework-client/common';\nimport { AXPLogoComponent } from '@acorex-platform/framework-client/core';\nimport { AXPUserAvatarComponent } from '@acorex-platform/framework-client/layout/components';\nimport { CommonModule } from '@angular/common';\nimport { Router } from '@angular/router';\nimport { AXPTenantChooserDropdownComponent } from '../tenant-chooser/tenant-chooser-dropdown.component';\nimport { AXPAppChooserListComponent } from './app-chooser-list.component';\n\n@Component({\n selector: 'axp-auth-app-chooser',\n templateUrl: './app-chooser.component.html',\n styleUrls: ['../shared/auth-chooser.layout.css', './app-chooser.component.css'],\n imports: [\n CommonModule,\n AXFormModule,\n AXTextBoxModule,\n AXButtonModule,\n AXLabelModule,\n AXCheckBoxModule,\n AXImageModule,\n AXDecoratorModule,\n AXPLogoComponent,\n AXLoadingModule,\n AXSkeletonModule,\n AXTranslationModule,\n AXPTenantChooserDropdownComponent,\n AXPAppChooserListComponent,\n AXPUserAvatarComponent,\n ],\n changeDetection: ChangeDetectionStrategy.Eager,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXPAuthAppChooserComponent implements OnInit {\n ngOnInit(): void {\n void this.platformBranding.resolvePlatformTitle().then((title) => this.platformTitle.set(title));\n }\n private router = inject(Router);\n private readonly platformBranding = inject(AXPPlatformBrandingService);\n protected readonly platformTitle = signal('');\n private sessionService = inject(AXPSessionService);\n\n protected user = this.sessionService.user;\n protected tenants$ = this.sessionService.tenants$;\n protected tenant = this.sessionService.tenant;\n protected catalogLoading = signal(true);\n\n handleCatalogLoading(loading: boolean): void {\n this.catalogLoading.set(loading);\n }\n\n tenantChooser() {\n this.router.navigate(['/auth/account/tenant-chooser']);\n }\n\n async handleSignout() {\n await this.sessionService.signout();\n this.router.navigate(['/auth/login']);\n }\n}\n","<main *translate=\"let t\" class=\"axp-auth-chooser\">\n <div class=\"axp-auth-chooser__inner\">\n <!-- ----- Platform branding ----- -->\n <section class=\"axp-auth-chooser__brand\">\n <axp-logo\n logoKey=\"platform\"\n appearance=\"onLight\"\n format=\"full\"\n [size]=\"260\"\n [attr.alt]=\"platformTitle()\"\n ></axp-logo>\n </section>\n <!-- ----- Application selection card ----- -->\n <section class=\"axp-auth-chooser__card-wrap\">\n <div class=\"axp-auth-chooser__card\">\n <!-- ----- Profile header while catalog loads ----- -->\n @if (catalogLoading()) {\n <ax-skeleton [animated]=\"true\" class=\"size-[72px] rounded-full shrink-0\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-6 w-56 max-w-full\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-5 w-32 max-w-full\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-4 w-64 max-w-full\"></ax-skeleton>\n } @else {\n <axp-user-avatar\n [size]=\"72\"\n [userId]=\"$safeNavigationMigration(user?.id)!\"\n [showPresence]=\"false\"\n ></axp-user-avatar>\n <h2 class=\"md:text-lg font-medium\">\n {{ '@auth:welcome.message' | translate | async }}, {{ user?.title }}\n </h2>\n <axp-tenant-chooser-dropdown></axp-tenant-chooser-dropdown>\n <p class=\"text-neutral-500 text-sm md:text-base font-medium\">\n {{ '@auth:application-chooser.description' | translate | async }}\n </p>\n }\n <div class=\"mt-3 w-full overflow-auto max-h-[300px]\">\n <axp-app-chooser-list (loadingChange)=\"handleCatalogLoading($event)\"></axp-app-chooser-list>\n </div>\n </div>\n </section>\n <!-- ----- Navigation footer ----- -->\n <section class=\"axp-auth-chooser__footer\">\n <p class=\"text-neutral-400 text-sm\">\n {{ '@auth:application-chooser.footer' | translate | async }}\n @if (tenants$ | async; as tenants) {\n @if (tenants.length > 1) {\n <a\n (click)=\"tenantChooser()\"\n class=\"text-primary-500 cursor-pointer font-medium hover:underline\"\n >\n {{ '@auth:application-chooser.backCompany' | translate | async }}\n </a>\n }\n <!-- ----- Single-tenant users return to login ----- -->\n @else {\n <a\n (click)=\"handleSignout()\"\n class=\"text-primary-500 font-medium cursor-pointer hover:underline\"\n >\n {{ '@auth:backLogin' | translate | async }}\n </a>\n }\n }\n </p>\n </section>\n </div>\n</main>\n"],"names":["i1","i2","i3"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;MA6Ca,0BAA0B,CAAA;AAxBvC,IAAA,WAAA,GAAA;AA4BU,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACd,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,0BAA0B,CAAC;QACnD,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,EAAE;0FAAC;AACrC,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAExC,QAAA,IAAA,CAAA,IAAI,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI;AAC/B,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,CAAC,cAAc,CAAC,QAAQ;AACvC,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,CAAC,cAAc,CAAC,MAAM;QACnC,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,IAAI;2FAAC;AAcxC,IAAA;IAzBC,QAAQ,GAAA;QACN,KAAK,IAAI,CAAC,gBAAgB,CAAC,oBAAoB,EAAE,CAAC,IAAI,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAClG;AAWA,IAAA,oBAAoB,CAAC,OAAgB,EAAA;AACnC,QAAA,IAAI,CAAC,cAAc,CAA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AA,OAAA,EAGvB;wBACP,YAAY;wBACZ,YAAY;wBACZ,eAAe;wBACf,cAAc;wBACd,aAAa;wBACb,gBAAgB;wBAChB,aAAa;wBACb,iBAAiB;wBACjB,gBAAgB;wBAChB,eAAe;wBACf,gBAAgB;wBAChB,mBAAmB;wBACnB,iCAAiC;wBACjC,0BAA0B;wBAC1B,sBAAsB;AACvB,qBAAA,EAAA,eAAA,EACgB,uBAAuB,CAAC,KAAK,EAAA,aAAA,EAC/B,iBAAiB,CAAC,IAAI,EAAA,QAAA,EAAA,gvFAAA,EAAA,MAAA,EAAA,CAAA,2yIAAA,EAAA,qPAAA,CAAA,EAAA;;;"}
@@ -15,4 +15,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
15
15
  }], ctorParameters: () => [] });
16
16
 
17
17
  export { AXPAuthBlankLayoutComponent };
18
- //# sourceMappingURL=acorex-platform-module-auth-client-blank.layout-xSXPWxyw.mjs.map
18
+ //# sourceMappingURL=acorex-platform-module-auth-client-blank.layout-Br0_-TxC.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-auth-client-blank.layout-xSXPWxyw.mjs","sources":["../../../../libs/modules/auth/client/src/lib/shared/layouts/blank/blank.layout.ts","../../../../libs/modules/auth/client/src/lib/shared/layouts/blank/blank.layout.html"],"sourcesContent":["import { Component, OnInit, ChangeDetectionStrategy } from '@angular/core';\nimport { RouterModule } from '@angular/router';\n\n@Component({\n templateUrl: 'blank.layout.html',\n changeDetection: ChangeDetectionStrategy.Eager,\n imports: [RouterModule]\n})\nexport class AXPAuthBlankLayoutComponent implements OnInit {\n constructor() { }\n\n ngOnInit() { }\n}\n","<router-outlet></router-outlet>"],"names":["i1"],"mappings":";;;;;MAQa,2BAA2B,CAAA;AACtC,IAAA,WAAA,GAAA,EAAgB;AAEhB,IAAA,QAAQ,KAAK;8GAHF,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECRxC,iCAA+B,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDMjB,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,YAAA,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,kBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,UAAA,EAAA,YAAA,EAAA,QAAA,EAAA,QAAA,CAAA,EAAA,QAAA,EAAA,CAAA,QAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,KAAA,EAAA,CAAA,CAAA;;2FAEb,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBALvC,SAAS;AAEW,YAAA,IAAA,EAAA,CAAA,EAAA,eAAA,EAAA,uBAAuB,CAAC,KAAK,EAAA,OAAA,EACrC,CAAC,YAAY,CAAC,EAAA,QAAA,EAAA,iCAAA,EAAA;;;"}
1
+ {"version":3,"file":"acorex-platform-module-auth-client-blank.layout-Br0_-TxC.mjs","sources":["../../../../libs/modules/auth/client/src/lib/shared/layouts/blank/blank.layout.ts","../../../../libs/modules/auth/client/src/lib/shared/layouts/blank/blank.layout.html"],"sourcesContent":["import { Component, OnInit, ChangeDetectionStrategy } from '@angular/core';\nimport { RouterModule } from '@angular/router';\n\n@Component({\n templateUrl: 'blank.layout.html',\n changeDetection: ChangeDetectionStrategy.Eager,\n imports: [RouterModule]\n})\nexport class AXPAuthBlankLayoutComponent implements OnInit {\n constructor() { }\n\n ngOnInit() { }\n}\n","<router-outlet></router-outlet>"],"names":["i1"],"mappings":";;;;;MAQa,2BAA2B,CAAA;AACtC,IAAA,WAAA,GAAA,EAAgB;AAEhB,IAAA,QAAQ,KAAK;8GAHF,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECRxC,iCAA+B,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDMjB,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,YAAA,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,kBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,UAAA,EAAA,YAAA,EAAA,QAAA,EAAA,QAAA,CAAA,EAAA,QAAA,EAAA,CAAA,QAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,KAAA,EAAA,CAAA,CAAA;;2FAEb,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBALvC,SAAS;AAEW,YAAA,IAAA,EAAA,CAAA,EAAA,eAAA,EAAA,uBAAuB,CAAC,KAAK,EAAA,OAAA,EACrC,CAAC,YAAY,CAAC,EAAA,QAAA,EAAA,iCAAA,EAAA;;;"}
@@ -7,7 +7,7 @@ import { runtimeCommandPayloadData } from '@acorex-platform/framework-shared/cor
7
7
  import { AXPLayoutBuilderService, resolveLayoutBuilderDialogResult } from '@acorex-platform/framework-client/layout/builder';
8
8
  import * as i0 from '@angular/core';
9
9
  import { inject, Injectable } from '@angular/core';
10
- import { l as AXPAuthPasswordComplexityService, m as AXPAuthPasswordChangeTrackingService, n as getPasswordComplexityHintKey, o as getPasswordComplexityValidationMessageKey, p as validatePasswordAgainstComplexity, C as CHANGE_PASSWORD_SECTION_ID, d as PROFILE_SECTION_INSIGHTS_PATCH_METADATA_KEY, q as buildPasswordLastChangedInsights } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-CBRlR1xT.mjs';
10
+ import { l as AXPAuthPasswordComplexityService, m as AXPAuthPasswordChangeTrackingService, n as getPasswordComplexityHintKey, o as getPasswordComplexityValidationMessageKey, p as validatePasswordAgainstComplexity, C as CHANGE_PASSWORD_SECTION_ID, d as PROFILE_SECTION_INSIGHTS_PATCH_METADATA_KEY, q as buildPasswordLastChangedInsights } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-DnctDd1m.mjs';
11
11
 
12
12
  //#region ---- Constants ----
13
13
  const CHANGE_OWN_PASSWORD_ERROR_I18N = {
@@ -201,4 +201,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
201
201
  }] });
202
202
 
203
203
  export { AXPChangePasswordCommand };
204
- //# sourceMappingURL=acorex-platform-module-auth-client-change-password.command-Bt4yOMMt.mjs.map
204
+ //# sourceMappingURL=acorex-platform-module-auth-client-change-password.command-BFhAG0M1.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-auth-client-change-password.command-Bt4yOMMt.mjs","sources":["../../../../libs/modules/auth/client/src/lib/commands/change-password.command.ts"],"sourcesContent":["import { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport {\n AXM_CHANGE_OWN_PASSWORD_ERROR_CODES,\n AXMSecurityManagementServerCommands,\n type AXMChangeOwnPasswordResult,\n type AXMGetOwnPasswordStatusResult,\n} from '@acorex-platform/module-security-management-client/contracts';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPCommandService } from '@acorex-platform/framework-client/runtime';\nimport { AXPRuntimeCommandResult, runtimeCommandPayloadData } from '@acorex-platform/framework-shared/core';\nimport {\n AXPLayoutBuilderService,\n resolveLayoutBuilderDialogResult,\n} from '@acorex-platform/framework-client/layout/builder';\n\nimport { inject, Injectable } from '@angular/core';\nimport {\n getPasswordComplexityHintKey,\n getPasswordComplexityValidationMessageKey,\n validatePasswordAgainstComplexity,\n} from '../shared/utils/password-complexity.utils';\nimport { AXPAuthPasswordComplexityService } from '../shared/services/password-complexity.service';\nimport { AXPAuthPasswordChangeTrackingService } from '../shared/services/password-change-tracking.service';\nimport {\n CHANGE_PASSWORD_SECTION_ID,\n PROFILE_SECTION_INSIGHTS_PATCH_METADATA_KEY,\n buildPasswordLastChangedInsights,\n} from '../pages/account/profile-page/profile-password-insight.util';\n\n//#region ---- Constants ----\n\nconst CHANGE_OWN_PASSWORD_ERROR_I18N: Record<string, string> = {\n [AXM_CHANGE_OWN_PASSWORD_ERROR_CODES.NotSignedIn]:\n '@auth:profile-page.commands.change-password.messages.not-signed-in',\n [AXM_CHANGE_OWN_PASSWORD_ERROR_CODES.IncorrectCurrent]:\n '@auth:profile-page.commands.change-password.messages.incorrect-current',\n [AXM_CHANGE_OWN_PASSWORD_ERROR_CODES.SameAsCurrent]:\n '@auth:profile-page.commands.change-password.messages.same-as-current',\n [AXM_CHANGE_OWN_PASSWORD_ERROR_CODES.InvalidInput]:\n '@auth:profile-page.commands.change-password.messages.save-failed',\n};\n\n//#endregion\n\n//#region ---- Change password command ----\n\n/** Opens a dialog to change or set the signed-in user's password. */\n@Injectable({ providedIn: 'root' })\nexport class AXPChangePasswordCommand implements AXPCommand {\n //#region ---- Services & Dependencies ----\n\n private readonly layoutBuilder = inject(AXPLayoutBuilderService);\n private readonly commandService = inject(AXPCommandService);\n private readonly sessionService = inject(AXPSessionService);\n private readonly passwordComplexityService = inject(AXPAuthPasswordComplexityService);\n private readonly passwordChangeTrackingService = inject(AXPAuthPasswordChangeTrackingService);\n private readonly toastService = inject(AXToastService);\n private readonly translateService = inject(AXTranslationService);\n\n //#endregion\n\n //#region ---- Command ----\n\n async execute(): AXPCommandExecuteResultPromise<void> {\n const [passwordComplexity, hasPassword] = await Promise.all([\n this.passwordComplexityService.getLevel(),\n this.loadHasPassword(),\n ]);\n const complexityHintKey = getPasswordComplexityHintKey(passwordComplexity);\n const complexityValidationMessageKey = getPasswordComplexityValidationMessageKey(passwordComplexity);\n const complexityValidationMessage = await this.translateService.translateAsync(complexityValidationMessageKey);\n\n const dialogTitle = await this.translateService.translateAsync(\n hasPassword\n ? '@auth:profile-page.commands.change-password.dialog.title'\n : '@auth:profile-page.commands.change-password.dialog.set-title',\n );\n const submitLabel = hasPassword\n ? '@auth:profile-page.commands.change-password.actions.submit'\n : '@auth:profile-page.commands.change-password.actions.set-submit';\n\n const result = await this.layoutBuilder\n .create()\n .dialog<AXPRuntimeCommandResult<void> | null>((dialog) => {\n dialog\n .setTitle(dialogTitle)\n .setSize('md')\n .setCloseButton(true)\n .setContext({\n currentPassword: '',\n newPassword: '',\n confirmPassword: '',\n })\n .content((layout) => {\n layout.flex((flex) => {\n flex.setDirection('column').setGap('1rem');\n\n if (hasPassword) {\n flex.formField(\n '@auth:profile-page.commands.change-password.fields.current-password.title',\n (field) => {\n field.setOptions({\n hint: '@auth:profile-page.commands.change-password.fields.current-password.hint',\n hintDisplayMode: 'note',\n });\n field.path('currentPassword');\n field.passwordBox({\n revealToggle: true,\n placeholder:\n '@auth:profile-page.commands.change-password.fields.current-password.placeholder',\n validations: [{ rule: 'required' }],\n });\n },\n );\n }\n\n flex\n .formField('@auth:profile-page.commands.change-password.fields.new-password.title', (field) => {\n field.setOptions({ hint: complexityHintKey, hintDisplayMode: 'note' });\n field.path('newPassword');\n field.passwordBox({\n revealToggle: true,\n placeholder: '@auth:profile-page.commands.change-password.fields.new-password.placeholder',\n validations: [\n { rule: 'required' },\n {\n rule: 'password-complexity',\n options: {\n message: complexityValidationMessage,\n },\n },\n ],\n });\n })\n .formField('@auth:profile-page.commands.change-password.fields.confirm-password.title', (field) => {\n field.setOptions({\n hint: '@auth:profile-page.commands.change-password.fields.confirm-password.hint',\n hintDisplayMode: 'note',\n });\n field.path('confirmPassword');\n field.passwordBox({\n revealToggle: true,\n placeholder:\n '@auth:profile-page.commands.change-password.fields.confirm-password.placeholder',\n validations: [{ rule: 'required' }],\n });\n });\n });\n })\n .setActions((actions) => {\n actions.cancel('@general:actions.cancel.title');\n actions.submit(submitLabel);\n })\n .onAction(async (dialogRef) => {\n if (dialogRef.action() === 'cancel') {\n return null;\n }\n\n const form = dialogRef.context() as {\n currentPassword?: string;\n newPassword?: string;\n confirmPassword?: string;\n };\n\n const currentPassword = form.currentPassword ?? '';\n const newPassword = form.newPassword ?? '';\n const confirmPassword = form.confirmPassword ?? '';\n\n if (newPassword !== confirmPassword) {\n throw new Error('@auth:profile-page.commands.change-password.messages.mismatch');\n }\n\n if (hasPassword && newPassword === currentPassword) {\n throw new Error('@auth:profile-page.commands.change-password.messages.same-as-current');\n }\n\n const submitComplexity = await this.passwordComplexityService.getLevel();\n const submitValidationMessageKey = getPasswordComplexityValidationMessageKey(submitComplexity);\n\n if (!validatePasswordAgainstComplexity(newPassword, submitComplexity)) {\n throw new Error(submitValidationMessageKey);\n }\n\n dialogRef.setLoading(true);\n try {\n const serverResult = await this.commandService.execute(\n AXMSecurityManagementServerCommands.ChangeOwnPassword,\n hasPassword ? { currentPassword, newPassword } : { newPassword },\n );\n\n if (!serverResult?.success) {\n throw new Error(this.resolveServerErrorKey(serverResult?.message?.code));\n }\n\n const payload = runtimeCommandPayloadData(serverResult) as AXMChangeOwnPasswordResult | undefined;\n const passwordChangedAt = payload?.passwordChangedAt\n ? new Date(payload.passwordChangedAt)\n : new Date();\n const userId = this.sessionService.user?.id;\n if (userId) {\n this.passwordChangeTrackingService.recordChange(userId, passwordChangedAt);\n }\n\n const successTitle = await this.translateService.translateAsync(\n hasPassword\n ? '@auth:profile-page.commands.change-password.messages.success'\n : '@auth:profile-page.commands.change-password.messages.set-success',\n );\n this.toastService.show({ color: 'success', title: successTitle });\n dialogRef.close();\n return {\n success: true,\n kind: 'object',\n data: undefined,\n metadata: {\n refresh: false,\n [PROFILE_SECTION_INSIGHTS_PATCH_METADATA_KEY]: {\n sectionId: CHANGE_PASSWORD_SECTION_ID,\n insights: buildPasswordLastChangedInsights(passwordChangedAt),\n },\n },\n };\n } finally {\n dialogRef.setLoading(false);\n }\n });\n })\n .show();\n\n return resolveLayoutBuilderDialogResult<AXPRuntimeCommandResult<void>>(result) ?? { success: false };\n }\n\n //#endregion\n\n //#region ---- Utility Methods ----\n\n private async loadHasPassword(): Promise<boolean> {\n try {\n const result = await this.commandService.execute(\n AXMSecurityManagementServerCommands.GetOwnPasswordStatus,\n {},\n );\n if (!result?.success) {\n // Fail closed: keep current-password field when status is unknown.\n return true;\n }\n const payload = runtimeCommandPayloadData(result) as AXMGetOwnPasswordStatusResult | undefined;\n return payload?.hasPassword === true;\n } catch {\n return true;\n }\n }\n\n private resolveServerErrorKey(code: string | undefined): string {\n if (code && CHANGE_OWN_PASSWORD_ERROR_I18N[code]) {\n return CHANGE_OWN_PASSWORD_ERROR_I18N[code];\n }\n\n return '@auth:profile-page.commands.change-password.messages.save-failed';\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;;;;;;AA+BA;AAEA,MAAM,8BAA8B,GAA2B;AAC7D,IAAA,CAAC,mCAAmC,CAAC,WAAW,GAC9C,oEAAoE;AACtE,IAAA,CAAC,mCAAmC,CAAC,gBAAgB,GACnD,wEAAwE;AAC1E,IAAA,CAAC,mCAAmC,CAAC,aAAa,GAChD,sEAAsE;AACxE,IAAA,CAAC,mCAAmC,CAAC,YAAY,GAC/C,kEAAkE;CACrE;AAED;AAEA;AAEA;MAEa,wBAAwB,CAAA;AADrC,IAAA,WAAA,GAAA;;AAImB,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,uBAAuB,CAAC;AAC/C,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,yBAAyB,GAAG,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QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,wBAAwB,cADX,MAAM,EAAA,CAAA,CAAA;;2FACnB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBADpC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
1
+ {"version":3,"file":"acorex-platform-module-auth-client-change-password.command-BFhAG0M1.mjs","sources":["../../../../libs/modules/auth/client/src/lib/commands/change-password.command.ts"],"sourcesContent":["import { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport {\n AXM_CHANGE_OWN_PASSWORD_ERROR_CODES,\n AXMSecurityManagementServerCommands,\n type AXMChangeOwnPasswordResult,\n type AXMGetOwnPasswordStatusResult,\n} from '@acorex-platform/module-security-management-client/contracts';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPCommandService } from '@acorex-platform/framework-client/runtime';\nimport { AXPRuntimeCommandResult, runtimeCommandPayloadData } from '@acorex-platform/framework-shared/core';\nimport {\n AXPLayoutBuilderService,\n resolveLayoutBuilderDialogResult,\n} from '@acorex-platform/framework-client/layout/builder';\n\nimport { inject, Injectable } from '@angular/core';\nimport {\n getPasswordComplexityHintKey,\n getPasswordComplexityValidationMessageKey,\n validatePasswordAgainstComplexity,\n} from '../shared/utils/password-complexity.utils';\nimport { AXPAuthPasswordComplexityService } from '../shared/services/password-complexity.service';\nimport { AXPAuthPasswordChangeTrackingService } from '../shared/services/password-change-tracking.service';\nimport {\n CHANGE_PASSWORD_SECTION_ID,\n PROFILE_SECTION_INSIGHTS_PATCH_METADATA_KEY,\n buildPasswordLastChangedInsights,\n} from '../pages/account/profile-page/profile-password-insight.util';\n\n//#region ---- Constants ----\n\nconst CHANGE_OWN_PASSWORD_ERROR_I18N: Record<string, string> = {\n [AXM_CHANGE_OWN_PASSWORD_ERROR_CODES.NotSignedIn]:\n '@auth:profile-page.commands.change-password.messages.not-signed-in',\n [AXM_CHANGE_OWN_PASSWORD_ERROR_CODES.IncorrectCurrent]:\n '@auth:profile-page.commands.change-password.messages.incorrect-current',\n [AXM_CHANGE_OWN_PASSWORD_ERROR_CODES.SameAsCurrent]:\n '@auth:profile-page.commands.change-password.messages.same-as-current',\n [AXM_CHANGE_OWN_PASSWORD_ERROR_CODES.InvalidInput]:\n '@auth:profile-page.commands.change-password.messages.save-failed',\n};\n\n//#endregion\n\n//#region ---- Change password command ----\n\n/** Opens a dialog to change or set the signed-in user's password. */\n@Injectable({ providedIn: 'root' })\nexport class AXPChangePasswordCommand implements AXPCommand {\n //#region ---- Services & Dependencies ----\n\n private readonly layoutBuilder = inject(AXPLayoutBuilderService);\n private readonly commandService = inject(AXPCommandService);\n private readonly sessionService = inject(AXPSessionService);\n private readonly passwordComplexityService = inject(AXPAuthPasswordComplexityService);\n private readonly passwordChangeTrackingService = inject(AXPAuthPasswordChangeTrackingService);\n private readonly toastService = inject(AXToastService);\n private readonly translateService = inject(AXTranslationService);\n\n //#endregion\n\n //#region ---- Command ----\n\n async execute(): AXPCommandExecuteResultPromise<void> {\n const [passwordComplexity, hasPassword] = await Promise.all([\n this.passwordComplexityService.getLevel(),\n this.loadHasPassword(),\n ]);\n const complexityHintKey = getPasswordComplexityHintKey(passwordComplexity);\n const complexityValidationMessageKey = getPasswordComplexityValidationMessageKey(passwordComplexity);\n const complexityValidationMessage = await this.translateService.translateAsync(complexityValidationMessageKey);\n\n const dialogTitle = await this.translateService.translateAsync(\n hasPassword\n ? '@auth:profile-page.commands.change-password.dialog.title'\n : '@auth:profile-page.commands.change-password.dialog.set-title',\n );\n const submitLabel = hasPassword\n ? '@auth:profile-page.commands.change-password.actions.submit'\n : '@auth:profile-page.commands.change-password.actions.set-submit';\n\n const result = await this.layoutBuilder\n .create()\n .dialog<AXPRuntimeCommandResult<void> | null>((dialog) => {\n dialog\n .setTitle(dialogTitle)\n .setSize('md')\n .setCloseButton(true)\n .setContext({\n currentPassword: '',\n newPassword: '',\n confirmPassword: '',\n })\n .content((layout) => {\n layout.flex((flex) => {\n flex.setDirection('column').setGap('1rem');\n\n if (hasPassword) {\n flex.formField(\n '@auth:profile-page.commands.change-password.fields.current-password.title',\n (field) => {\n field.setOptions({\n hint: '@auth:profile-page.commands.change-password.fields.current-password.hint',\n hintDisplayMode: 'note',\n });\n field.path('currentPassword');\n field.passwordBox({\n revealToggle: true,\n placeholder:\n '@auth:profile-page.commands.change-password.fields.current-password.placeholder',\n validations: [{ rule: 'required' }],\n });\n },\n );\n }\n\n flex\n .formField('@auth:profile-page.commands.change-password.fields.new-password.title', (field) => {\n field.setOptions({ hint: complexityHintKey, hintDisplayMode: 'note' });\n field.path('newPassword');\n field.passwordBox({\n revealToggle: true,\n placeholder: '@auth:profile-page.commands.change-password.fields.new-password.placeholder',\n validations: [\n { rule: 'required' },\n {\n rule: 'password-complexity',\n options: {\n message: complexityValidationMessage,\n },\n },\n ],\n });\n })\n .formField('@auth:profile-page.commands.change-password.fields.confirm-password.title', (field) => {\n field.setOptions({\n hint: '@auth:profile-page.commands.change-password.fields.confirm-password.hint',\n hintDisplayMode: 'note',\n });\n field.path('confirmPassword');\n field.passwordBox({\n revealToggle: true,\n placeholder:\n '@auth:profile-page.commands.change-password.fields.confirm-password.placeholder',\n validations: [{ rule: 'required' }],\n });\n });\n });\n })\n .setActions((actions) => {\n actions.cancel('@general:actions.cancel.title');\n actions.submit(submitLabel);\n })\n .onAction(async (dialogRef) => {\n if (dialogRef.action() === 'cancel') {\n return null;\n }\n\n const form = dialogRef.context() as {\n currentPassword?: string;\n newPassword?: string;\n confirmPassword?: string;\n };\n\n const currentPassword = form.currentPassword ?? '';\n const newPassword = form.newPassword ?? '';\n const confirmPassword = form.confirmPassword ?? '';\n\n if (newPassword !== confirmPassword) {\n throw new Error('@auth:profile-page.commands.change-password.messages.mismatch');\n }\n\n if (hasPassword && newPassword === currentPassword) {\n throw new Error('@auth:profile-page.commands.change-password.messages.same-as-current');\n }\n\n const submitComplexity = await this.passwordComplexityService.getLevel();\n const submitValidationMessageKey = getPasswordComplexityValidationMessageKey(submitComplexity);\n\n if (!validatePasswordAgainstComplexity(newPassword, submitComplexity)) {\n throw new Error(submitValidationMessageKey);\n }\n\n dialogRef.setLoading(true);\n try {\n const serverResult = await this.commandService.execute(\n AXMSecurityManagementServerCommands.ChangeOwnPassword,\n hasPassword ? { currentPassword, newPassword } : { newPassword },\n );\n\n if (!serverResult?.success) {\n throw new Error(this.resolveServerErrorKey(serverResult?.message?.code));\n }\n\n const payload = runtimeCommandPayloadData(serverResult) as AXMChangeOwnPasswordResult | undefined;\n const passwordChangedAt = payload?.passwordChangedAt\n ? new Date(payload.passwordChangedAt)\n : new Date();\n const userId = this.sessionService.user?.id;\n if (userId) {\n this.passwordChangeTrackingService.recordChange(userId, passwordChangedAt);\n }\n\n const successTitle = await this.translateService.translateAsync(\n hasPassword\n ? '@auth:profile-page.commands.change-password.messages.success'\n : '@auth:profile-page.commands.change-password.messages.set-success',\n );\n this.toastService.show({ color: 'success', title: successTitle });\n dialogRef.close();\n return {\n success: true,\n kind: 'object',\n data: undefined,\n metadata: {\n refresh: false,\n [PROFILE_SECTION_INSIGHTS_PATCH_METADATA_KEY]: {\n sectionId: CHANGE_PASSWORD_SECTION_ID,\n insights: buildPasswordLastChangedInsights(passwordChangedAt),\n },\n },\n };\n } finally {\n dialogRef.setLoading(false);\n }\n });\n })\n .show();\n\n return resolveLayoutBuilderDialogResult<AXPRuntimeCommandResult<void>>(result) ?? { success: false };\n }\n\n //#endregion\n\n //#region ---- Utility Methods ----\n\n private async loadHasPassword(): Promise<boolean> {\n try {\n const result = await this.commandService.execute(\n AXMSecurityManagementServerCommands.GetOwnPasswordStatus,\n {},\n );\n if (!result?.success) {\n // Fail closed: keep current-password field when status is unknown.\n return true;\n }\n const payload = runtimeCommandPayloadData(result) as AXMGetOwnPasswordStatusResult | undefined;\n return payload?.hasPassword === true;\n } catch {\n return true;\n }\n }\n\n private resolveServerErrorKey(code: string | undefined): string {\n if (code && CHANGE_OWN_PASSWORD_ERROR_I18N[code]) {\n return CHANGE_OWN_PASSWORD_ERROR_I18N[code];\n }\n\n return '@auth:profile-page.commands.change-password.messages.save-failed';\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;;;;;;AA+BA;AAEA,MAAM,8BAA8B,GAA2B;AAC7D,IAAA,CAAC,mCAAmC,CAAC,WAAW,GAC9C,oEAAoE;AACtE,IAAA,CAAC,mCAAmC,CAAC,gBAAgB,GACnD,wEAAwE;AAC1E,IAAA,CAAC,mCAAmC,CAAC,aAAa,GAChD,sEAAsE;AACxE,IAAA,CAAC,mCAAmC,CAAC,YAAY,GAC/C,kEAAkE;CACrE;AAED;AAEA;AAEA;MAEa,wBAAwB,CAAA;AADrC,IAAA,WAAA,GAAA;;AAImB,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,uBAAuB,CAAC;AAC/C,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,yBAAyB,GAAG,MAAM,CAAC,gCAAgC,CAAC;AACpE,QAAA,IAAA,CAAA,6BAA6B,GAAG,MAAM,CAAC,oCAAoC,CAAC;AAC5E,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC;AACrC,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,oBAAoB,CAAC;AA6MjE,IAAA;;;AAvMC,IAAA,MAAM,OAAO,GAAA;QACX,MAAM,CAAC,kBAAkB,EAAE,WAAW,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;AAC1D,YAAA,IAAI,CAAC,yBAAyB,CAAC,QAAQ,EAAE;YACzC,IAAI,CAAC,eAAe,EAAE;AACvB,SAAA,CAAC;AACF,QAAA,MAAM,iBAAiB,GA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M,MAAM,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAC9C,mCAAmC,CAAC,oBAAoB,EACxD,EAAE,CACH;AACD,YAAA,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE;;AAEpB,gBAAA,OAAO,IAAI;YACb;AACA,YAAA,MAAM,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAA8C;AAC9F,YAAA,OAAO,OAAO,EAAE,WAAW,KAAK,IAAI;QACtC;AAAE,QAAA,MAAM;AACN,YAAA,OAAO,IAAI;QACb;IACF;AAEQ,IAAA,qBAAqB,CAAC,IAAwB,EAAA;AACpD,QAAA,IAAI,IAAI,IAAI,8BAA8B,CAAC,IAAI,CAAC,EAAE;AAChD,YAAA,OAAO,8BAA8B,CAAC,IAAI,CAAC;QAC7C;AAEA,QAAA,OAAO,kEAAkE;IAC3E;8GAnNW,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAxB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,wBAAwB,cADX,MAAM,EAAA,CAAA,CAAA;;2FACnB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBADpC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
@@ -1,6 +1,7 @@
1
+ import { axpEndCommandSubFlowNavigation, extractRequestErrorInfo, platformErrorI18nKey, prepareImageFile } from '@acorex-platform/framework-client/common';
2
+ import { AXP_AVATAR_FILE_TYPE } from '@acorex-platform/framework-shared/core';
1
3
  import { AXToastService } from '@acorex/components/toast';
2
4
  import { AXTranslationService } from '@acorex/core/translation';
3
- import { axpEndCommandSubFlowNavigation, extractRequestErrorInfo, platformErrorI18nKey } from '@acorex-platform/framework-client/common';
4
5
  import { AXPSessionService } from '@acorex-platform/framework-client/auth';
5
6
  import { AXPFileChooserService, AXPImageEditorService } from '@acorex-platform/framework-client/layout/components';
6
7
  import { AXPLayoutBuilderService } from '@acorex-platform/framework-client/layout/builder';
@@ -10,8 +11,8 @@ import * as i0 from '@angular/core';
10
11
  import { inject, Injectable } from '@angular/core';
11
12
  import { Router } from '@angular/router';
12
13
  import { isNil } from 'lodash';
13
- import { c as captureCommandReturnUrl, i as isWelcomeOnboardingRouterUrl, r as restoreWelcomeOnboardingAfterSubFlow, a as restoreCommandReturnUrlAfterSubFlow } from './acorex-platform-module-auth-client-command-return-url.util-mBmtJ7T2.mjs';
14
- import { k as AXPUserAvatarSyncService } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-CBRlR1xT.mjs';
14
+ import { c as captureCommandReturnUrl, i as isWelcomeOnboardingRouterUrl, r as restoreWelcomeOnboardingAfterSubFlow, a as restoreCommandReturnUrlAfterSubFlow } from './acorex-platform-module-auth-client-command-return-url.util-D2zy8M1F.mjs';
15
+ import { k as AXPUserAvatarSyncService } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-DnctDd1m.mjs';
15
16
 
16
17
  const PROFILE_PHOTO_DIALOG_PREVIEW_SIZE = {
17
18
  small: { width: '100%', height: 'auto' },
@@ -270,7 +271,7 @@ class AXPChangePhotoCommand {
270
271
  return picked;
271
272
  }
272
273
  const editedBlob = await this.imageEditor.open({
273
- image: picked,
274
+ image: await prepareImageFile(picked, AXP_AVATAR_FILE_TYPE, true),
274
275
  title: '@auth:profile-page.commands.change-photo.dialog.editor-title',
275
276
  look: 'blank',
276
277
  square: true,
@@ -304,4 +305,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
304
305
  }] });
305
306
 
306
307
  export { AXPChangePhotoCommand };
307
- //# sourceMappingURL=acorex-platform-module-auth-client-change-photo.command-tZ3TnzBz.mjs.map
308
+ //# sourceMappingURL=acorex-platform-module-auth-client-change-photo.command-G-Ucvk0Q.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-auth-client-change-photo.command-G-Ucvk0Q.mjs","sources":["../../../../libs/modules/auth/client/src/lib/commands/change-photo.command.ts"],"sourcesContent":["import { prepareImageFile } from '@acorex-platform/framework-client/common';\nimport { AXP_AVATAR_FILE_TYPE } from '@acorex-platform/framework-shared/core';\nimport { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport {\n AXPRuntimeCommandResult,\n type AXPRuntimeMessage,\n} from '@acorex-platform/framework-shared/core';\nimport {\n axpEndCommandSubFlowNavigation,\n extractRequestErrorInfo,\n platformErrorI18nKey,\n} from '@acorex-platform/framework-client/common';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport {\n AXPFileChooserService,\n AXPImageEditorService,\n} from '@acorex-platform/framework-client/layout/components';\nimport { AXPLayoutBuilderService } from '@acorex-platform/framework-client/layout/builder';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\nimport { RootConfig as SecurityManagementRootConfig } from '@acorex-platform/module-security-management-client/contracts';\nimport type { AXMSecurityManagementUsersEntityModel } from '@acorex-platform/module-security-management-client/contracts';\n\nimport { inject, Injectable } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { isNil } from 'lodash';\n\nimport {\n captureCommandReturnUrl,\n isWelcomeOnboardingRouterUrl,\n restoreCommandReturnUrlAfterSubFlow,\n restoreWelcomeOnboardingAfterSubFlow,\n} from '../shared/command-return-url.util';\nimport { AXPUserAvatarSyncService } from '../shared/services/user-avatar-sync.service';\n\n//#region ---- Change photo command ----\n\nexport type AXPChangePhotoCommandMode = 'upload' | 'manage';\n\nexport type AXPChangePhotoCommandInput = {\n mode?: AXPChangePhotoCommandMode;\n /** Explicit return URL for sub-flow restore (welcome onboarding passes its route). */\n subFlowReturnUrl?: string;\n};\n\nconst PROFILE_PHOTO_DIALOG_PREVIEW_SIZE = {\n small: { width: '100%', height: 'auto' },\n large: { width: '100%', height: 'auto' },\n} as const;\n\n/** Self-service profile photo upload, replace, and removal backed by file storage. */\n@Injectable({ providedIn: 'root' })\nexport class AXPChangePhotoCommand implements AXPCommand<AXPChangePhotoCommandInput, void> {\n //#region ---- Services & Dependencies ----\n\n private readonly layoutBuilder = inject(AXPLayoutBuilderService);\n private readonly entityService = inject(AXPEntityService);\n private readonly fileChooser = inject(AXPFileChooserService);\n private readonly imageEditor = inject(AXPImageEditorService);\n private readonly avatarSync = inject(AXPUserAvatarSyncService);\n private readonly sessionService = inject(AXPSessionService);\n private readonly toastService = inject(AXToastService);\n private readonly translateService = inject(AXTranslationService);\n private readonly router = inject(Router);\n\n //#endregion\n\n //#region ---- Command ----\n\n async execute(input: AXPChangePhotoCommandInput = {}): AXPCommandExecuteResultPromise<void> {\n const userId = this.sessionService.user?.id;\n if (isNil(userId)) {\n return {\n success: false,\n message: {\n text: '@auth:profile-page.commands.change-photo.messages.not-signed-in',\n },\n };\n }\n\n const returnUrl = captureCommandReturnUrl(this.router, input.subFlowReturnUrl);\n\n try {\n const mode = input.mode;\n if (mode === 'upload') {\n return await this.executeUploadFlow(userId, returnUrl);\n }\n\n return await this.executeManageFlow(userId, returnUrl);\n } finally {\n axpEndCommandSubFlowNavigation();\n }\n }\n\n private async restoreAfterSuccessfulSubFlow(returnUrl: string): Promise<void> {\n if (isWelcomeOnboardingRouterUrl(returnUrl)) {\n await restoreWelcomeOnboardingAfterSubFlow(this.router, returnUrl);\n return;\n }\n await restoreCommandReturnUrlAfterSubFlow(this.router, returnUrl);\n }\n\n private async executeUploadFlow(\n userId: string,\n returnUrl: string,\n ): AXPCommandExecuteResultPromise<void> {\n const editedFile = await this.pickAndEditPhoto(userId);\n if (!editedFile) {\n return { success: false };\n }\n\n const result = await this.uploadAvatarAndNotify(userId, editedFile);\n if (result.success) {\n await this.restoreAfterSuccessfulSubFlow(returnUrl);\n }\n return result;\n }\n\n private async executeManageFlow(\n userId: string,\n returnUrl: string,\n ): AXPCommandExecuteResultPromise<void> {\n const previewUrl = await this.resolveDialogPreviewUrl(userId);\n if (!previewUrl) {\n return this.executeUploadFlow(userId, returnUrl);\n }\n\n try {\n const result = await this.layoutBuilder\n .create()\n .dialog<AXPRuntimeCommandResult<void>>((dialog) => {\n dialog\n .setTitle('@auth:profile-page.commands.change-photo.dialog.title')\n .setSize('sm')\n .setCloseButton(true)\n .setContext({ previewUrl })\n .content((layout) => {\n layout.flex((flex) => {\n flex\n .setDirection('column')\n .setGap('1rem')\n .setAlignItems('center')\n .setJustifyContent('center')\n .setOptions({ width: '100%', maxWidth: '100%', overflowX: 'hidden' });\n flex.customWidget('image', {\n path: 'previewUrl',\n type: 'profile-photo',\n readonly: true,\n enablePreviewClick: false,\n responsiveSize: PROFILE_PHOTO_DIALOG_PREVIEW_SIZE,\n });\n });\n })\n .setActions((actions) => {\n actions.custom({\n title: '@auth:profile-page.commands.change-photo.actions.remove',\n color: 'danger',\n position: 'prefix',\n command: { name: 'remove' },\n });\n actions.custom({\n title: '@auth:profile-page.commands.change-photo.actions.change',\n color: 'primary',\n command: { name: 'change' },\n });\n })\n .onAction(async (dialogRef) => {\n const action = dialogRef.action();\n\n if (action === 'remove') {\n dialogRef.setLoading(true);\n try {\n await this.avatarSync.removeAvatar(userId);\n return {\n success: true,\n kind: 'object',\n data: undefined,\n message: {\n type: 'success',\n text: '@auth:profile-page.commands.change-photo.messages.removed',\n },\n };\n } catch (error) {\n const info = extractRequestErrorInfo(error);\n return {\n success: false,\n keepDialogOpen: true,\n message: {\n type: 'error',\n code: info?.code,\n text:\n platformErrorI18nKey(info?.code) ??\n '@auth:profile-page.commands.change-photo.messages.failed',\n details: info?.details,\n },\n };\n } finally {\n dialogRef.setLoading(false);\n }\n }\n\n if (action === 'change') {\n const editedFile = await this.pickAndEditPhoto(userId);\n if (!editedFile) {\n return { success: false, keepDialogOpen: true };\n }\n\n dialogRef.setLoading(true);\n try {\n const uploadResult = await this.uploadAvatarAndNotify(userId, editedFile);\n if (!uploadResult.success) {\n // Dialog stays open — toast middleware has not finished execute yet.\n await this.toastCommandMessage(uploadResult.message);\n return { ...uploadResult, keepDialogOpen: true };\n }\n return uploadResult;\n } finally {\n dialogRef.setLoading(false);\n }\n }\n\n return { success: false, keepDialogOpen: true };\n });\n })\n .show();\n\n const outcome = result ?? { success: false };\n if (outcome.success) {\n await this.restoreAfterSuccessfulSubFlow(returnUrl);\n }\n return outcome;\n } finally {\n if (previewUrl?.startsWith('blob:')) {\n URL.revokeObjectURL(previewUrl);\n }\n }\n }\n\n private async resolveDialogPreviewUrl(userId: string): Promise<string | null> {\n try {\n const blob = await this.avatarSync.getCurrentAvatarBlob(userId);\n if (!blob) {\n return null;\n }\n return URL.createObjectURL(blob);\n } catch {\n return null;\n }\n }\n\n //#endregion\n\n //#region ---- Utility Methods ----\n\n private async uploadAvatarAndNotify(\n userId: string,\n file: File,\n ): AXPCommandExecuteResultPromise<void> {\n try {\n await this.avatarSync.uploadAndSetAvatar(userId, file);\n return { success: true, kind: 'object', data: undefined, message: {\n type: 'success',\n text: '@auth:profile-page.commands.change-photo.messages.success',\n },\n };\n } catch (error) {\n const info = extractRequestErrorInfo(error);\n return {\n success: false,\n message: {\n type: 'error',\n code: info?.code,\n text:\n platformErrorI18nKey(info?.code) ??\n '@auth:profile-page.commands.change-photo.messages.failed',\n details: info?.details,\n },\n };\n }\n }\n\n private async toastCommandMessage(message: AXPRuntimeMessage | undefined): Promise<void> {\n const text = message?.text;\n let content: string | null = null;\n if (typeof text === 'string' && text.trim()) {\n content = text.startsWith('@')\n ? await this.translateService.translateAsync(text)\n : text;\n } else if (text && typeof text === 'object') {\n content = this.translateService.resolve(text);\n } else {\n const codeKey = platformErrorI18nKey(message?.code);\n if (codeKey) {\n content = await this.translateService.translateAsync(codeKey);\n }\n }\n if (!content) {\n return;\n }\n const title = await this.translateService.translateAsync(\n message?.type === 'success'\n ? '@general:messages.generic.success.title'\n : '@general:messages.generic.error.title',\n );\n this.toastService.show({\n color: message?.type === 'success' ? 'success' : 'danger',\n title,\n content,\n });\n }\n\n private async pickAndEditPhoto(userId: string): Promise<File | null> {\n const gravatarEmail = await this.resolveUserEmail(userId);\n const pickResult = await this.fileChooser.pickProfilePhotoImage({ gravatarEmail });\n if (pickResult.gravatarNotFound) {\n await this.toastCommandMessage({\n type: 'error',\n text: '@auth:profile-page.commands.change-photo.messages.gravatar-not-found',\n });\n return null;\n }\n const picked = pickResult.file;\n if (!picked) {\n return null;\n }\n\n if (pickResult.fromGravatar) {\n return picked;\n }\n\n const editedBlob = await this.imageEditor.open({\n image: await prepareImageFile(picked, AXP_AVATAR_FILE_TYPE, true),\n title: '@auth:profile-page.commands.change-photo.dialog.editor-title',\n look: 'blank',\n square: true,\n });\n\n if (!editedBlob) {\n return null;\n }\n\n return new File([editedBlob], picked.name || 'profile-photo.png', {\n type: editedBlob.type || 'image/png',\n });\n }\n\n private async resolveUserEmail(userId: string): Promise<string | null> {\n try {\n const user = await this.entityService\n .withEntity(\n SecurityManagementRootConfig.module.name,\n SecurityManagementRootConfig.entities.users.name,\n )\n .data<string, AXMSecurityManagementUsersEntityModel>()\n .byKey(userId);\n const email = user?.email?.trim();\n return email ? email : null;\n } catch {\n return null;\n }\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":["SecurityManagementRootConfig"],"mappings":";;;;;;;;;;;;;;;;AA8CA,MAAM,iCAAiC,GAAG;IACxC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE;IACxC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE;CAChC;AAEV;MAEa,qBAAqB,CAAA;AADlC,IAAA,WAAA,GAAA;;AAImB,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,uBAAuB,CAAC;AAC/C,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CA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B,CAAC,MAAM,CAAC,IAAI,EACxCA,UAA4B,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI;AAEjD,iBAAA,IAAI;iBACJ,KAAK,CAAC,MAAM,CAAC;YAChB,MAAM,KAAK,GAAG,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE;YACjC,OAAO,KAAK,GAAG,KAAK,GAAG,IAAI;QAC7B;AAAE,QAAA,MAAM;AACN,YAAA,OAAO,IAAI;QACb;IACF;8GApTW,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAArB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,cADR,MAAM,EAAA,CAAA,CAAA;;2FACnB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBADjC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
@@ -66,4 +66,4 @@ async function restoreWelcomeOnboardingAfterSubFlow(router, returnUrl) {
66
66
  //#endregion
67
67
 
68
68
  export { restoreCommandReturnUrlAfterSubFlow as a, captureCommandReturnUrl as c, isWelcomeOnboardingRouterUrl as i, restoreWelcomeOnboardingAfterSubFlow as r };
69
- //# sourceMappingURL=acorex-platform-module-auth-client-command-return-url.util-mBmtJ7T2.mjs.map
69
+ //# sourceMappingURL=acorex-platform-module-auth-client-command-return-url.util-D2zy8M1F.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-auth-client-command-return-url.util-mBmtJ7T2.mjs","sources":["../../../../libs/modules/auth/client/src/lib/shared/command-return-url.util.ts"],"sourcesContent":["import {\n axpBeginCommandSubFlowNavigation,\n axpPeekCommandSubFlowReturnUrl,\n normalizeRouterUrl,\n} from '@acorex-platform/framework-client/common';\nimport type { Router } from '@angular/router';\n\n//#region ----- Command return URL -----\n\n/** Captures the active router URL when a long-running command (dialogs, file picker, crop) starts. */\nexport function captureCommandReturnUrl(router: Router, returnUrlOverride?: string): string {\n const override = returnUrlOverride?.trim();\n const url = override?.length ? override : router.url;\n axpBeginCommandSubFlowNavigation(url);\n return url;\n}\n\n/** True when the URL is the full-page welcome onboarding route (not in-app profile). */\nexport function isWelcomeOnboardingRouterUrl(url: string): boolean {\n const normalized = normalizeRouterUrl(url);\n return normalized.includes('/auth/account/welcome-onboarding');\n}\n\n/** Returns the user to the URL they were on when the command started, if navigation changed mid-flow. */\nexport async function restoreCommandReturnUrlIfChanged(\n router: Router,\n returnUrl: string,\n): Promise<void> {\n const target = axpPeekCommandSubFlowReturnUrl() ?? returnUrl;\n const trimmed = target.trim();\n if (!trimmed.length) {\n return;\n }\n\n if (normalizeRouterUrl(router.url) === normalizeRouterUrl(trimmed)) {\n return;\n }\n\n await router.navigateByUrl(trimmed);\n}\n\n/**\n * Restores the return URL immediately and after session/tab side-effects (e.g. avatar `setSession`).\n */\nexport async function restoreCommandReturnUrlAfterSubFlow(\n router: Router,\n returnUrl: string,\n): Promise<void> {\n const delaysMs = [0, 50, 200];\n for (const delay of delaysMs) {\n if (delay === 0) {\n await restoreCommandReturnUrlIfChanged(router, returnUrl);\n continue;\n }\n\n await new Promise<void>((resolve) => {\n setTimeout(() => {\n void restoreCommandReturnUrlIfChanged(router, returnUrl).finally(() => resolve());\n }, delay);\n });\n }\n}\n\n/**\n * Restores the welcome onboarding route after avatar/account sub-flows.\n * Tab session restore can still redirect to profile after `setSession`; re-assert welcome briefly.\n */\nexport async function restoreWelcomeOnboardingAfterSubFlow(\n router: Router,\n returnUrl: string,\n): Promise<void> {\n await restoreCommandReturnUrlAfterSubFlow(router, returnUrl);\n\n if (!isWelcomeOnboardingRouterUrl(returnUrl)) {\n return;\n }\n\n const target = normalizeRouterUrl(returnUrl);\n const followUpDelaysMs = [100, 300, 500];\n for (const delay of followUpDelaysMs) {\n await new Promise<void>((resolve) => {\n setTimeout(() => resolve(), delay);\n });\n if (isWelcomeOnboardingRouterUrl(router.url)) {\n continue;\n }\n await router.navigateByUrl(target);\n }\n}\n\n//#endregion\n"],"names":[],"mappings":";;AAOA;AAEA;AACM,SAAU,uBAAuB,CAAC,MAAc,EAAE,iBAA0B,EAAA;AAChF,IAAA,MAAM,QAAQ,GAAG,iBAAiB,EAAE,IAAI,EAAE;AAC1C,IAAA,MAAM,GAAG,GAAG,QAAQ,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC,GAAG;IACpD,gCAAgC,CAAC,GAAG,CAAC;AACrC,IAAA,OAAO,GAAG;AACZ;AAEA;AACM,SAAU,4BAA4B,CAAC,GAAW,EAAA;AACtD,IAAA,MAAM,UAAU,GAAG,kBAAkB,CAAC,GAAG,CAAC;AAC1C,IAAA,OAAO,UAAU,CAAC,QAAQ,CAAC,kCAAkC,CAAC;AAChE;AAEA;AACO,eAAe,gCAAgC,CACpD,MAAc,EACd,SAAiB,EAAA;AAEjB,IAAA,MAAM,MAAM,GAAG,8BAA8B,EAAE,IAAI,SAAS;AAC5D,IAAA,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,EAAE;AAC7B,IAAA,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;QACnB;IACF;AAEA,IAAA,IAAI,kBAAkB,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,kBAAkB,CAAC,OAAO,CAAC,EAAE;QAClE;IACF;AAEA,IAAA,MAAM,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC;AACrC;AAEA;;AAEG;AACI,eAAe,mCAAmC,CACvD,MAAc,EACd,SAAiB,EAAA;IAEjB,MAAM,QAAQ,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,GAAG,CAAC;AAC7B,IAAA,KAAK,MAAM,KAAK,IAAI,QAAQ,EAAE;AAC5B,QAAA,IAAI,KAAK,KAAK,CAAC,EAAE;AACf,YAAA,MAAM,gCAAgC,CAAC,MAAM,EAAE,SAAS,CAAC;YACzD;QACF;AAEA,QAAA,MAAM,IAAI,OAAO,CAAO,CAAC,OAAO,KAAI;YAClC,UAAU,CAAC,MAAK;AACd,gBAAA,KAAK,gCAAgC,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,OAAO,CAAC,MAAM,OAAO,EAAE,CAAC;YACnF,CAAC,EAAE,KAAK,CAAC;AACX,QAAA,CAAC,CAAC;IACJ;AACF;AAEA;;;AAGG;AACI,eAAe,oCAAoC,CACxD,MAAc,EACd,SAAiB,EAAA;AAEjB,IAAA,MAAM,mCAAmC,CAAC,MAAM,EAAE,SAAS,CAAC;AAE5D,IAAA,IAAI,CAAC,4BAA4B,CAAC,SAAS,CAAC,EAAE;QAC5C;IACF;AAEA,IAAA,MAAM,MAAM,GAAG,kBAAkB,CAAC,SAAS,CAAC;IAC5C,MAAM,gBAAgB,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;AACxC,IAAA,KAAK,MAAM,KAAK,IAAI,gBAAgB,EAAE;AACpC,QAAA,MAAM,IAAI,OAAO,CAAO,CAAC,OAAO,KAAI;YAClC,UAAU,CAAC,MAAM,OAAO,EAAE,EAAE,KAAK,CAAC;AACpC,QAAA,CAAC,CAAC;AACF,QAAA,IAAI,4BAA4B,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE;YAC5C;QACF;AACA,QAAA,MAAM,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC;IACpC;AACF;AAEA;;"}
1
+ {"version":3,"file":"acorex-platform-module-auth-client-command-return-url.util-D2zy8M1F.mjs","sources":["../../../../libs/modules/auth/client/src/lib/shared/command-return-url.util.ts"],"sourcesContent":["import {\n axpBeginCommandSubFlowNavigation,\n axpPeekCommandSubFlowReturnUrl,\n normalizeRouterUrl,\n} from '@acorex-platform/framework-client/common';\nimport type { Router } from '@angular/router';\n\n//#region ----- Command return URL -----\n\n/** Captures the active router URL when a long-running command (dialogs, file picker, crop) starts. */\nexport function captureCommandReturnUrl(router: Router, returnUrlOverride?: string): string {\n const override = returnUrlOverride?.trim();\n const url = override?.length ? override : router.url;\n axpBeginCommandSubFlowNavigation(url);\n return url;\n}\n\n/** True when the URL is the full-page welcome onboarding route (not in-app profile). */\nexport function isWelcomeOnboardingRouterUrl(url: string): boolean {\n const normalized = normalizeRouterUrl(url);\n return normalized.includes('/auth/account/welcome-onboarding');\n}\n\n/** Returns the user to the URL they were on when the command started, if navigation changed mid-flow. */\nexport async function restoreCommandReturnUrlIfChanged(\n router: Router,\n returnUrl: string,\n): Promise<void> {\n const target = axpPeekCommandSubFlowReturnUrl() ?? returnUrl;\n const trimmed = target.trim();\n if (!trimmed.length) {\n return;\n }\n\n if (normalizeRouterUrl(router.url) === normalizeRouterUrl(trimmed)) {\n return;\n }\n\n await router.navigateByUrl(trimmed);\n}\n\n/**\n * Restores the return URL immediately and after session/tab side-effects (e.g. avatar `setSession`).\n */\nexport async function restoreCommandReturnUrlAfterSubFlow(\n router: Router,\n returnUrl: string,\n): Promise<void> {\n const delaysMs = [0, 50, 200];\n for (const delay of delaysMs) {\n if (delay === 0) {\n await restoreCommandReturnUrlIfChanged(router, returnUrl);\n continue;\n }\n\n await new Promise<void>((resolve) => {\n setTimeout(() => {\n void restoreCommandReturnUrlIfChanged(router, returnUrl).finally(() => resolve());\n }, delay);\n });\n }\n}\n\n/**\n * Restores the welcome onboarding route after avatar/account sub-flows.\n * Tab session restore can still redirect to profile after `setSession`; re-assert welcome briefly.\n */\nexport async function restoreWelcomeOnboardingAfterSubFlow(\n router: Router,\n returnUrl: string,\n): Promise<void> {\n await restoreCommandReturnUrlAfterSubFlow(router, returnUrl);\n\n if (!isWelcomeOnboardingRouterUrl(returnUrl)) {\n return;\n }\n\n const target = normalizeRouterUrl(returnUrl);\n const followUpDelaysMs = [100, 300, 500];\n for (const delay of followUpDelaysMs) {\n await new Promise<void>((resolve) => {\n setTimeout(() => resolve(), delay);\n });\n if (isWelcomeOnboardingRouterUrl(router.url)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OAAO,KAAI;YAClC,UAAU,CAAC,MAAK;AACd,gBAAA,KAAK,gCAAgC,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,OAAO,CAAC,MAAM,OAAO,EAAE,CAAC;YACnF,CAAC,EAAE,KAAK,CAAC;AACX,QAAA,CAAC,CAAC;IACJ;AACF;AAEA;;;AAGG;AACI,eAAe,oCAAoC,CACxD,MAAc,EACd,SAAiB,EAAA;AAEjB,IAAA,MAAM,mCAAmC,CAAC,MAAM,EAAE,SAAS,CAAC;AAE5D,IAAA,IAAI,CAAC,4BAA4B,CAAC,SAAS,CAAC,EAAE;QAC5C;IACF;AAEA,IAAA,MAAM,MAAM,GAAG,kBAAkB,CAAC,SAAS,CAAC;IAC5C,MAAM,gBAAgB,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;AACxC,IAAA,KAAK,MAAM,KAAK,IAAI,gBAAgB,EAAE;AACpC,QAAA,MAAM,IAAI,OAAO,CAAO,CAAC,OAAO,KAAI;YAClC,UAAU,CAAC,MAAM,OAAO,EAAE,EAAE,KAAK,CAAC;AACpC,QAAA,CAAC,CAAC;AACF,QAAA,IAAI,4BAA4B,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE;YAC5C;QACF;AACA,QAAA,MAAM,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC;IACpC;AACF;AAEA;;"}
@@ -49,6 +49,15 @@ const AXMPermissionsKeys = {
49
49
  },
50
50
  };
51
51
 
52
+ //#region ---- Query keys ----
53
+ const AXMAuthQueryKeys = {
54
+ Captcha: {
55
+ /** Connected captcha IntegrationConnections for platform Default Captcha Provider select. */
56
+ ListConnectedProviders: 'Auth:Query:Captcha.ListConnectedProviders',
57
+ },
58
+ };
59
+ //#endregion
60
+
52
61
  const config = {
53
62
  i18n: 'auth',
54
63
  module: 'Auth',
@@ -82,6 +91,11 @@ var AXPAuthSettings;
82
91
  AXPAuthSettings["MaxLoginAttempts"] = "Auth:Setting:Authentication.MaxLoginAttempts";
83
92
  AXPAuthSettings["LockoutDuration"] = "Auth:Setting:Authentication.LockoutDuration";
84
93
  AXPAuthSettings["CaptchaAttemptThreshold"] = "Auth:Setting:Authentication.CaptchaAttemptThreshold";
94
+ /**
95
+ * Platform: Integration provider id used for login captcha
96
+ * (e.g. `google-recaptcha`). Empty = captcha disabled until selected.
97
+ */
98
+ AXPAuthSettings["DefaultCaptchaProvider"] = "Auth:Setting:Authentication.DefaultCaptchaProvider";
85
99
  /** Platform sign-in page branding (multi-language string). */
86
100
  AXPAuthSettings["SignInPageSlogan"] = "Auth:Setting:SignInPage.Slogan";
87
101
  AXPAuthSettings["SignInPageDescription"] = "Auth:Setting:SignInPage.Description";
@@ -157,7 +171,8 @@ const AXPAuthCredentialTypeOptions = {
157
171
  const AXP_AUTH_LOCKOUT_SETTING_DEFAULTS = {
158
172
  [AXPAuthSettings.MaxLoginAttempts]: 5,
159
173
  [AXPAuthSettings.LockoutDuration]: 3,
160
- [AXPAuthSettings.CaptchaAttemptThreshold]: 3,
174
+ [AXPAuthSettings.CaptchaAttemptThreshold]: 1,
175
+ [AXPAuthSettings.DefaultCaptchaProvider]: '',
161
176
  };
162
177
  const AXP_AUTH_MAX_ACTIVE_DEVICE_SESSIONS_SETTING_DEFAULTS = {
163
178
  [AXPAuthSettings.MaxActiveDeviceSessions]: 0,
@@ -179,5 +194,5 @@ const AXP_AUTH_SIGN_IN_PAGE_DESCRIPTION_DEFAULT = {
179
194
  * Generated bundle index. Do not edit.
180
195
  */
181
196
 
182
- export { AXMAuthCommandKeys, AXMPermissionsKeys, AXM_AUTH_INACTIVE_SESSION_TERMINATION_PURGE_COMMAND_KEY, AXPAdministrationPermissionKeys, AXPAuthCredentialTypeOptions, AXPAuthInactiveSessionTerminationOptions, AXPAuthMenuKeys, AXPAuthSettings, AXP_AUTH_INACTIVE_SESSION_TERMINATION_DURATION_MS, AXP_AUTH_INACTIVE_SESSION_TERMINATION_OPTION_DEFINITIONS, AXP_AUTH_INACTIVE_SESSION_TERMINATION_SETTING_DEFAULTS, AXP_AUTH_LOCKOUT_SETTING_DEFAULTS, AXP_AUTH_MAX_ACTIVE_DEVICE_SESSIONS_SETTING_DEFAULTS, AXP_AUTH_SIGN_IN_PAGE_DESCRIPTION_DEFAULT, AXP_AUTH_SIGN_IN_PAGE_SLOGAN_DEFAULT, RootConfig, isAuthInactiveSessionTerminationValue, resolveAuthInactiveSessionTerminationDurationMs };
197
+ export { AXMAuthCommandKeys, AXMAuthQueryKeys, AXMPermissionsKeys, AXM_AUTH_INACTIVE_SESSION_TERMINATION_PURGE_COMMAND_KEY, AXPAdministrationPermissionKeys, AXPAuthCredentialTypeOptions, AXPAuthInactiveSessionTerminationOptions, AXPAuthMenuKeys, AXPAuthSettings, AXP_AUTH_INACTIVE_SESSION_TERMINATION_DURATION_MS, AXP_AUTH_INACTIVE_SESSION_TERMINATION_OPTION_DEFINITIONS, AXP_AUTH_INACTIVE_SESSION_TERMINATION_SETTING_DEFAULTS, AXP_AUTH_LOCKOUT_SETTING_DEFAULTS, AXP_AUTH_MAX_ACTIVE_DEVICE_SESSIONS_SETTING_DEFAULTS, AXP_AUTH_SIGN_IN_PAGE_DESCRIPTION_DEFAULT, AXP_AUTH_SIGN_IN_PAGE_SLOGAN_DEFAULT, RootConfig, isAuthInactiveSessionTerminationValue, resolveAuthInactiveSessionTerminationDurationMs };
183
198
  //# sourceMappingURL=acorex-platform-module-auth-client-contracts.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-auth-client-contracts.mjs","sources":["../../../../libs/modules/auth/contracts/src/commands.keys.ts","../../../../libs/modules/auth/contracts/src/menu.keys.ts","../../../../libs/modules/auth/contracts/src/permission.keys.ts","../../../../libs/modules/auth/contracts/src/root-config.ts","../../../../libs/modules/auth/contracts/src/settings.keys.ts","../../../../libs/modules/auth/contracts/src/index.ts","../../../../libs/modules/auth/contracts/src/acorex-platform-module-auth-client-contracts.ts"],"sourcesContent":["//#region ---- Command keys ----\n\nexport const AXMAuthCommandKeys = {\n Profile: {\n Show: 'auth:profile',\n ChangePhoto: 'auth:change-photo',\n EditAccountInfo: 'auth:edit-account-info',\n ComingSoon: 'auth:profile-coming-soon',\n },\n Session: {\n Signout: 'auth:signout',\n OpenSessions: 'auth:open-sessions',\n LockScreen: 'auth:lock-screen',\n },\n Security: {\n ChangePassword: 'auth:change-password',\n ManageTwoFactor: 'auth:manage-two-factor',\n SetPinCode: 'auth:set-pin-code',\n RemovePinCode: 'auth:remove-pin-code',\n ViewLoginHistory: 'auth:view-login-history',\n EditSignature: 'auth:edit-signature',\n },\n Onboarding: {\n Welcome: 'auth:welcome-onboarding',\n },\n Account: {\n /** Opens `/auth/account/waiting-room` (e.g. from membership-invite inbox action). */\n OpenWaitingRoom: 'auth:open-waiting-room',\n },\n} as const;\n\n/** Scheduled purge of DeviceSessions idle past the InactiveSessionTermination setting. */\nexport const AXM_AUTH_INACTIVE_SESSION_TERMINATION_PURGE_COMMAND_KEY =\n 'auth.inactive-session.terminate' as const;\n\n//#endregion\n","export const AXPAuthMenuKeys = {} as const;\n\n","/**\n * Auth stub — maps legacy Management to Administration Access.\n * Prefer {@link AXPAdministrationPermissionKeys} from security-management contracts when wiring real checks.\n */\nexport const AXPAdministrationPermissionKeys = {\n Access: 'Administration:Permission:Access',\n} as const;\n\n/**\n * @deprecated Prefer Administration Access / conceptual keys.\n */\nexport const AXMPermissionsKeys = {\n Auth: {\n Management: AXPAdministrationPermissionKeys.Access,\n },\n} as const;\n","const config = {\n i18n: 'auth',\n module: 'Auth',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'auth',\n name: config.module,\n title: '@auth:module.title',\n icon: 'fa-light fa-shield-keyhole',\n },\n /**\n * Platform schedule: revoke DeviceSessions idle longer than\n * {@link AXPAuthSettings.InactiveSessionTermination} (user override → tenant default).\n * Cron every minute so the 1-minute option is testable.\n */\n inactiveSessionTermination: {\n providerKey: 'auth',\n defaultCron: '* * * * *',\n },\n} as const;\n","import type { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\n\n//#region ----- Auth setting keys -----\n\nexport enum AXPAuthSettings {\n /** User-scoped: login requires verified authenticator enrollment when true. */\n UserTwoFactorEnabled = 'Auth:Setting:User.TwoFactor.Enabled',\n PasswordComplexity = 'Auth:Setting:Authentication.PasswordComplexity',\n PasswordExpiryDays = 'Auth:Setting:Authentication.PasswordExpiryDays',\n MaxLoginAttempts = 'Auth:Setting:Authentication.MaxLoginAttempts',\n LockoutDuration = 'Auth:Setting:Authentication.LockoutDuration',\n CaptchaAttemptThreshold = 'Auth:Setting:Authentication.CaptchaAttemptThreshold',\n\n /** Platform sign-in page branding (multi-language string). */\n SignInPageSlogan = 'Auth:Setting:SignInPage.Slogan',\n SignInPageDescription = 'Auth:Setting:SignInPage.Description',\n\n /** Platform sign-up policy. */\n SignUpEnabled = 'Auth:Setting:SignUp.Enabled',\n SignUpUrl = 'Auth:Setting:SignUp.Url',\n\n /** Platform sign-in credential UX + default strategy. */\n SignInCredentialType = 'Auth:Setting:SignIn.CredentialType',\n SignInDefaultStrategy = 'Auth:Setting:SignIn.DefaultStrategy',\n\n LockWhenIdleEnabled = 'Auth:Setting:SessionManagement.LockWhenIdleEnabled',\n LockWhenIdleMinutes = 'Auth:Setting:SessionManagement.LockWhenIdleMinutes',\n InactiveSessionTermination = 'Auth:Setting:SessionManagement.InactiveSessionTermination',\n MaxActiveDeviceSessions = 'Auth:Setting:SessionManagement.MaxActiveDeviceSessions',\n\n /** User-scoped welcome onboarding progress blob. */\n OnboardingWelcome = 'Auth:Setting:Onboarding.Welcome',\n}\n\nexport const AXPAuthInactiveSessionTerminationOptions = {\n OneWeek: 'oneWeek',\n OneMonth: 'oneMonth',\n ThreeMonths: 'threeMonths',\n SixMonths: 'sixMonths',\n} as const;\n\nexport type AXPAuthInactiveSessionTerminationValue =\n (typeof AXPAuthInactiveSessionTerminationOptions)[keyof typeof AXPAuthInactiveSessionTerminationOptions];\n\n/** Shared select options for settings UI + Active Sessions modal (i18n title keys). */\nexport const AXP_AUTH_INACTIVE_SESSION_TERMINATION_OPTION_DEFINITIONS: ReadonlyArray<{\n id: AXPAuthInactiveSessionTerminationValue;\n titleKey: string;\n}> = [\n {\n id: AXPAuthInactiveSessionTerminationOptions.OneWeek,\n titleKey: '@auth:settings.session.terminate-old-sessions.options.one-week',\n },\n {\n id: AXPAuthInactiveSessionTerminationOptions.OneMonth,\n titleKey: '@auth:settings.session.terminate-old-sessions.options.one-month',\n },\n {\n id: AXPAuthInactiveSessionTerminationOptions.ThreeMonths,\n titleKey: '@auth:settings.session.terminate-old-sessions.options.three-months',\n },\n {\n id: AXPAuthInactiveSessionTerminationOptions.SixMonths,\n titleKey: '@auth:settings.session.terminate-old-sessions.options.six-months',\n },\n];\n\nconst MS_MINUTE = 60_000;\nconst MS_DAY = 24 * 60 * MS_MINUTE;\n\n/** Inactivity window for each stored termination option. */\nexport const AXP_AUTH_INACTIVE_SESSION_TERMINATION_DURATION_MS: Record<\n AXPAuthInactiveSessionTerminationValue,\n number\n> = {\n [AXPAuthInactiveSessionTerminationOptions.OneWeek]: 7 * MS_DAY,\n [AXPAuthInactiveSessionTerminationOptions.OneMonth]: 30 * MS_DAY,\n [AXPAuthInactiveSessionTerminationOptions.ThreeMonths]: 90 * MS_DAY,\n [AXPAuthInactiveSessionTerminationOptions.SixMonths]: 180 * MS_DAY,\n};\n\nexport const AXP_AUTH_INACTIVE_SESSION_TERMINATION_SETTING_DEFAULTS = {\n [AXPAuthSettings.InactiveSessionTermination]: AXPAuthInactiveSessionTerminationOptions.OneMonth,\n} as const;\n\nexport function isAuthInactiveSessionTerminationValue(\n value: unknown,\n): value is AXPAuthInactiveSessionTerminationValue {\n return (\n typeof value === 'string' &&\n (Object.values(AXPAuthInactiveSessionTerminationOptions) as string[]).includes(value)\n );\n}\n\nexport function resolveAuthInactiveSessionTerminationDurationMs(\n value: unknown,\n): number {\n if (isAuthInactiveSessionTerminationValue(value)) {\n return AXP_AUTH_INACTIVE_SESSION_TERMINATION_DURATION_MS[value];\n }\n return AXP_AUTH_INACTIVE_SESSION_TERMINATION_DURATION_MS[\n AXP_AUTH_INACTIVE_SESSION_TERMINATION_SETTING_DEFAULTS[AXPAuthSettings.InactiveSessionTermination]\n ];\n}\n\n/** Stored values for {@link AXPAuthSettings.SignInCredentialType}. */\nexport const AXPAuthCredentialTypeOptions = {\n UsernamePassword: 'UsernamePassword',\n UsernameEmailPassword: 'UsernameEmailPassword',\n EmailPassword: 'EmailPassword',\n MobilePassword: 'MobilePassword',\n EmailCode: 'EmailCode',\n MobileCode: 'MobileCode',\n} as const;\n\nexport type AXPAuthCredentialTypeValue =\n (typeof AXPAuthCredentialTypeOptions)[keyof typeof AXPAuthCredentialTypeOptions];\n\nexport const AXP_AUTH_LOCKOUT_SETTING_DEFAULTS = {\n [AXPAuthSettings.MaxLoginAttempts]: 5,\n [AXPAuthSettings.LockoutDuration]: 3,\n [AXPAuthSettings.CaptchaAttemptThreshold]: 3,\n} as const;\n\nexport const AXP_AUTH_MAX_ACTIVE_DEVICE_SESSIONS_SETTING_DEFAULTS = {\n [AXPAuthSettings.MaxActiveDeviceSessions]: 0,\n} as const;\n\nexport const AXP_AUTH_SIGN_IN_PAGE_SLOGAN_DEFAULT: AXPMultiLanguageString = {\n 'en-US': 'Welcome',\n 'fa-IR': 'خوش آمدید',\n};\n\nexport const AXP_AUTH_SIGN_IN_PAGE_DESCRIPTION_DEFAULT: AXPMultiLanguageString = {\n 'en-US': 'Sign in to continue to your applications.',\n 'fa-IR': 'برای ادامه به برنامه‌های خود وارد شوید.',\n};\n\n//#endregion\n","//#region ---- Contracts barrel ----\n\nexport * from './commands.keys';\nexport * from './menu.keys';\nexport * from './permission.keys';\nexport * from './root-config';\nexport * from './settings.keys';\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;AAEO,MAAM,kBAAkB,GAAG;AAChC,IAAA,OAAO,EAAE;AACP,QAAA,IAAI,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nG;AACH;AAEA;AACO,MAAM,4BAA4B,GAAG;AAC1C,IAAA,gBAAgB,EAAE,kBAAkB;AACpC,IAAA,qBAAqB,EAAE,uBAAuB;AAC9C,IAAA,aAAa,EAAE,eAAe;AAC9B,IAAA,cAAc,EAAE,gBAAgB;AAChC,IAAA,SAAS,EAAE,WAAW;AACtB,IAAA,UAAU,EAAE,YAAY;;AAMnB,MAAM,iCAAiC,GAAG;AAC/C,IAAA,CAAC,eAAe,CAAC,gBAAgB,GAAG,CAAC;AACrC,IAAA,CAAC,eAAe,CAAC,eAAe,GAAG,CAAC;AACpC,IAAA,CAAC,eAAe,CAAC,uBAAuB,GAAG,CAAC;;AAGvC,MAAM,oDAAoD,GAAG;AAClE,IAAA,CAAC,eAAe,CAAC,uBAAuB,GAAG,CAAC;;AAGvC,MAAM,oCAAoC,GAA2B;AAC1E,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,OAAO,EAAE,WAAW;;AAGf,MAAM,yCAAyC,GAA2B;AAC/E,IAAA,OAAO,EAAE,2CAA2C;AACpD,IAAA,OAAO,EAAE,yCAAyC;;AAGpD;;AC1IA;AAQA;;ACRA;;AAEG;;"}
1
+ {"version":3,"file":"acorex-platform-module-auth-client-contracts.mjs","sources":["../../../../libs/modules/auth/contracts/src/commands.keys.ts","../../../../libs/modules/auth/contracts/src/menu.keys.ts","../../../../libs/modules/auth/contracts/src/permission.keys.ts","../../../../libs/modules/auth/contracts/src/queries.keys.ts","../../../../libs/modules/auth/contracts/src/root-config.ts","../../../../libs/modules/auth/contracts/src/settings.keys.ts","../../../../libs/modules/auth/contracts/src/index.ts","../../../../libs/modules/auth/contracts/src/acorex-platform-module-auth-client-contracts.ts"],"sourcesContent":["//#region ---- Command keys ----\n\nexport const AXMAuthCommandKeys = {\n Profile: {\n Show: 'auth:profile',\n ChangePhoto: 'auth:change-photo',\n EditAccountInfo: 'auth:edit-account-info',\n ComingSoon: 'auth:profile-coming-soon',\n },\n Session: {\n Signout: 'auth:signout',\n OpenSessions: 'auth:open-sessions',\n LockScreen: 'auth:lock-screen',\n },\n Security: {\n ChangePassword: 'auth:change-password',\n ManageTwoFactor: 'auth:manage-two-factor',\n SetPinCode: 'auth:set-pin-code',\n RemovePinCode: 'auth:remove-pin-code',\n ViewLoginHistory: 'auth:view-login-history',\n EditSignature: 'auth:edit-signature',\n },\n Onboarding: {\n Welcome: 'auth:welcome-onboarding',\n },\n Account: {\n /** Opens `/auth/account/waiting-room` (e.g. from membership-invite inbox action). */\n OpenWaitingRoom: 'auth:open-waiting-room',\n },\n} as const;\n\n/** Scheduled purge of DeviceSessions idle past the InactiveSessionTermination setting. */\nexport const AXM_AUTH_INACTIVE_SESSION_TERMINATION_PURGE_COMMAND_KEY =\n 'auth.inactive-session.terminate' as const;\n\n//#endregion\n","export const AXPAuthMenuKeys = {} as const;\n\n","/**\n * Auth stub — maps legacy Management to Administration Access.\n * Prefer {@link AXPAdministrationPermissionKeys} from security-management contracts when wiring real checks.\n */\nexport const AXPAdministrationPermissionKeys = {\n Access: 'Administration:Permission:Access',\n} as const;\n\n/**\n * @deprecated Prefer Administration Access / conceptual keys.\n */\nexport const AXMPermissionsKeys = {\n Auth: {\n Management: AXPAdministrationPermissionKeys.Access,\n },\n} as const;\n","//#region ---- Query keys ----\n\nexport const AXMAuthQueryKeys = {\n Captcha: {\n /** Connected captcha IntegrationConnections for platform Default Captcha Provider select. */\n ListConnectedProviders: 'Auth:Query:Captcha.ListConnectedProviders',\n },\n} as const;\n\n//#endregion\n","const config = {\n i18n: 'auth',\n module: 'Auth',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'auth',\n name: config.module,\n title: '@auth:module.title',\n icon: 'fa-light fa-shield-keyhole',\n },\n /**\n * Platform schedule: revoke DeviceSessions idle longer than\n * {@link AXPAuthSettings.InactiveSessionTermination} (user override → tenant default).\n * Cron every minute so the 1-minute option is testable.\n */\n inactiveSessionTermination: {\n providerKey: 'auth',\n defaultCron: '* * * * *',\n },\n} as const;\n","import type { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\n\n//#region ----- Auth setting keys -----\n\nexport enum AXPAuthSettings {\n /** User-scoped: login requires verified authenticator enrollment when true. */\n UserTwoFactorEnabled = 'Auth:Setting:User.TwoFactor.Enabled',\n PasswordComplexity = 'Auth:Setting:Authentication.PasswordComplexity',\n PasswordExpiryDays = 'Auth:Setting:Authentication.PasswordExpiryDays',\n MaxLoginAttempts = 'Auth:Setting:Authentication.MaxLoginAttempts',\n LockoutDuration = 'Auth:Setting:Authentication.LockoutDuration',\n CaptchaAttemptThreshold = 'Auth:Setting:Authentication.CaptchaAttemptThreshold',\n /**\n * Platform: Integration provider id used for login captcha\n * (e.g. `google-recaptcha`). Empty = captcha disabled until selected.\n */\n DefaultCaptchaProvider = 'Auth:Setting:Authentication.DefaultCaptchaProvider',\n\n /** Platform sign-in page branding (multi-language string). */\n SignInPageSlogan = 'Auth:Setting:SignInPage.Slogan',\n SignInPageDescription = 'Auth:Setting:SignInPage.Description',\n\n /** Platform sign-up policy. */\n SignUpEnabled = 'Auth:Setting:SignUp.Enabled',\n SignUpUrl = 'Auth:Setting:SignUp.Url',\n\n /** Platform sign-in credential UX + default strategy. */\n SignInCredentialType = 'Auth:Setting:SignIn.CredentialType',\n SignInDefaultStrategy = 'Auth:Setting:SignIn.DefaultStrategy',\n\n LockWhenIdleEnabled = 'Auth:Setting:SessionManagement.LockWhenIdleEnabled',\n LockWhenIdleMinutes = 'Auth:Setting:SessionManagement.LockWhenIdleMinutes',\n InactiveSessionTermination = 'Auth:Setting:SessionManagement.InactiveSessionTermination',\n MaxActiveDeviceSessions = 'Auth:Setting:SessionManagement.MaxActiveDeviceSessions',\n\n /** User-scoped welcome onboarding progress blob. */\n OnboardingWelcome = 'Auth:Setting:Onboarding.Welcome',\n}\n\nexport const AXPAuthInactiveSessionTerminationOptions = {\n OneWeek: 'oneWeek',\n OneMonth: 'oneMonth',\n ThreeMonths: 'threeMonths',\n SixMonths: 'sixMonths',\n} as const;\n\nexport type AXPAuthInactiveSessionTerminationValue =\n (typeof AXPAuthInactiveSessionTerminationOptions)[keyof typeof AXPAuthInactiveSessionTerminationOptions];\n\n/** Shared select options for settings UI + Active Sessions modal (i18n title keys). */\nexport const AXP_AUTH_INACTIVE_SESSION_TERMINATION_OPTION_DEFINITIONS: ReadonlyArray<{\n id: AXPAuthInactiveSessionTerminationValue;\n titleKey: string;\n}> = [\n {\n id: AXPAuthInactiveSessionTerminationOptions.OneWeek,\n titleKey: '@auth:settings.session.terminate-old-sessions.options.one-week',\n },\n {\n id: AXPAuthInactiveSessionTerminationOptions.OneMonth,\n titleKey: '@auth:settings.session.terminate-old-sessions.options.one-month',\n },\n {\n id: AXPAuthInactiveSessionTerminationOptions.ThreeMonths,\n titleKey: '@auth:settings.session.terminate-old-sessions.options.three-months',\n },\n {\n id: AXPAuthInactiveSessionTerminationOptions.SixMonths,\n titleKey: '@auth:settings.session.terminate-old-sessions.options.six-months',\n },\n];\n\nconst MS_MINUTE = 60_000;\nconst MS_DAY = 24 * 60 * MS_MINUTE;\n\n/** Inactivity window for each stored termination option. */\nexport const AXP_AUTH_INACTIVE_SESSION_TERMINATION_DURATION_MS: Record<\n AXPAuthInactiveSessionTerminationValue,\n number\n> = {\n [AXPAuthInactiveSessionTerminationOptions.OneWeek]: 7 * MS_DAY,\n [AXPAuthInactiveSessionTerminationOptions.OneMonth]: 30 * MS_DAY,\n [AXPAuthInactiveSessionTerminationOptions.ThreeMonths]: 90 * MS_DAY,\n [AXPAuthInactiveSessionTerminationOptions.SixMonths]: 180 * MS_DAY,\n};\n\nexport const AXP_AUTH_INACTIVE_SESSION_TERMINATION_SETTING_DEFAULTS = {\n [AXPAuthSettings.InactiveSessionTermination]: AXPAuthInactiveSessionTerminationOptions.OneMonth,\n} as const;\n\nexport function isAuthInactiveSessionTerminationValue(\n value: unknown,\n): value is AXPAuthInactiveSessionTerminationValue {\n return (\n typeof value === 'string' &&\n (Object.values(AXPAuthInactiveSessionTerminationOptions) as string[]).includes(value)\n );\n}\n\nexport function resolveAuthInactiveSessionTerminationDurationMs(\n value: unknown,\n): number {\n if (isAuthInactiveSessionTerminationValue(value)) {\n return AXP_AUTH_INACTIVE_SESSION_TERMINATION_DURATION_MS[value];\n }\n return AXP_AUTH_INACTIVE_SESSION_TERMINATION_DURATION_MS[\n AXP_AUTH_INACTIVE_SESSION_TERMINATION_SETTING_DEFAULTS[AXPAuthSettings.InactiveSessionTermination]\n ];\n}\n\n/** Stored values for {@link AXPAuthSettings.SignInCredentialType}. */\nexport const AXPAuthCredentialTypeOptions = {\n UsernamePassword: 'UsernamePassword',\n UsernameEmailPassword: 'UsernameEmailPassword',\n EmailPassword: 'EmailPassword',\n MobilePassword: 'MobilePassword',\n EmailCode: 'EmailCode',\n MobileCode: 'MobileCode',\n} as const;\n\nexport type AXPAuthCredentialTypeValue =\n (typeof AXPAuthCredentialTypeOptions)[keyof typeof AXPAuthCredentialTypeOptions];\n\nexport const AXP_AUTH_LOCKOUT_SETTING_DEFAULTS = {\n [AXPAuthSettings.MaxLoginAttempts]: 5,\n [AXPAuthSettings.LockoutDuration]: 3,\n [AXPAuthSettings.CaptchaAttemptThreshold]: 1,\n [AXPAuthSettings.DefaultCaptchaProvider]: '',\n} as const;\n\nexport const AXP_AUTH_MAX_ACTIVE_DEVICE_SESSIONS_SETTING_DEFAULTS = {\n [AXPAuthSettings.MaxActiveDeviceSessions]: 0,\n} as const;\n\nexport const AXP_AUTH_SIGN_IN_PAGE_SLOGAN_DEFAULT: AXPMultiLanguageString = {\n 'en-US': 'Welcome',\n 'fa-IR': 'خوش آمدید',\n};\n\nexport const AXP_AUTH_SIGN_IN_PAGE_DESCRIPTION_DEFAULT: AXPMultiLanguageString = {\n 'en-US': 'Sign in to continue to your applications.',\n 'fa-IR': 'برای ادامه به برنامه‌های خود وارد شوید.',\n};\n\n//#endregion\n","//#region ---- Contracts barrel ----\n\nexport * from './commands.keys';\nexport * from './menu.keys';\nexport * from './permission.keys';\nexport * from './queries.keys';\nexport * from './root-config';\nexport * from './settings.keys';\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;AAEO,MAAM,kBAAkB,GAAG;AAChC,IAAA,OAAO,EAAE;AACP,QAAA,IAAI,EAAE,cAAc;AACpB,QAAA,WAAW,EAAE,mBAAmB;AAChC,QAAA,eAAe,EAAE,wBAAwB;AACzC,QAAA,UAAU,EAAE,0BAA0B;AACvC,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,OAAO,EAAE,cAAc;AACvB,QAAA,YAAY,EAAE,oBAAoB;AAClC,QAAA,UAAU,EAAE,kBAAkB;AAC/B,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,cAAc,EAAE,sBAAsB;AACtC,QAAA,eAAe,EAAE,wBAAwB;AACzC,QAAA,UAAU,EAAE,mBAAmB;AAC/B,QAAA,aAAa,EAAE,sBAAsB;AACrC,QAAA,gBAAgB,EAAE,yBAAyB;AAC3C,QAAA,aAAa,EAAE,qBAAqB;AACrC,KAAA;AACD,IAAA,UAAU,EAAE;AACV,QAAA,OAAO,EAAE,yBAAyB;AACnC,KAAA;AACD,IAAA,OAAO,EAAE;;AAEP,QAAA,eAAe,EAAE,wBAAwB;AAC1C,KAAA;;AAGH;AACO,MAAM,uDAAuD,GAClE;AAEF;;ACnCO,MAAM,eAAe,GAAG;;ACA/B;;;AAGG;AACI,MAAM,+BAA+B,GAAG;AAC7C,IAAA,MAAM,EAAE,kCAAkC;;AAG5C;;AAEG;AACI,MAAM,kBAAkB,GAAG;AAChC,IAAA,IAAI,EAAE;QACJ,UAAU,EAAE,+BAA+B,CAAC,MAAM;AACnD,KAAA;;;ACdH;AAEO,MAAM,gBAAgB,GAAG;AAC9B,IAAA,OAAO,EAAE;;AAEP,QAAA,sBAAsB,EAAE,2CAA2C;AACpE,KAAA;;AAGH;;ACTA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,MAAM;A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U,qCAAqC,CACnD,KAAc,EAAA;AAEd,IAAA,QACE,OAAO,KAAK,KAAK,QAAQ;QACxB,MAAM,CAAC,MAAM,CAAC,wCAAwC,CAAc,CAAC,QAAQ,CAAC,KAAK,CAAC;AAEzF;AAEM,SAAU,+CAA+C,CAC7D,KAAc,EAAA;AAEd,IAAA,IAAI,qCAAqC,CAAC,KAAK,CAAC,EAAE;AAChD,QAAA,OAAO,iDAAiD,CAAC,KAAK,CAAC;IACjE;IACA,OAAO,iDAAiD,CACtD,sDAAsD,CAAC,eAAe,CAAC,0BAA0B,CAAC,CACnG;AACH;AAEA;AACO,MAAM,4BAA4B,GAAG;AAC1C,IAAA,gBAAgB,EAAE,kBAAkB;AACpC,IAAA,qBAAqB,EAAE,uBAAuB;AAC9C,IAAA,aAAa,EAAE,eAAe;AAC9B,IAAA,cAAc,EAAE,gBAAgB;AAChC,IAAA,SAAS,EAAE,WAAW;AACtB,IAAA,UAAU,EAAE,YAAY;;AAMnB,MAAM,iCAAiC,GAAG;AAC/C,IAAA,CAAC,eAAe,CAAC,gBAAgB,GAAG,CAAC;AACrC,IAAA,CAAC,eAAe,CAAC,eAAe,GAAG,CAAC;AACpC,IAAA,CAAC,eAAe,CAAC,uBAAuB,GAAG,CAAC;AAC5C,IAAA,CAAC,eAAe,CAAC,sBAAsB,GAAG,EAAE;;AAGvC,MAAM,oDAAoD,GAAG;AAClE,IAAA,CAAC,eAAe,CAAC,uBAAuB,GAAG,CAAC;;AAGvC,MAAM,oCAAoC,GAA2B;AAC1E,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,OAAO,EAAE,WAAW;;AAGf,MAAM,yCAAyC,GAA2B;AAC/E,IAAA,OAAO,EAAE,2CAA2C;AACpD,IAAA,OAAO,EAAE,yCAAyC;;AAGpD;;AChJA;AASA;;ACTA;;AAEG;;"}
@@ -9,7 +9,7 @@ import * as i0 from '@angular/core';
9
9
  import { inject, Injectable } from '@angular/core';
10
10
  import { Router } from '@angular/router';
11
11
  import { isNil, defaultTo, trim, isEmpty } from 'lodash';
12
- import { c as captureCommandReturnUrl, i as isWelcomeOnboardingRouterUrl, r as restoreWelcomeOnboardingAfterSubFlow, a as restoreCommandReturnUrlAfterSubFlow } from './acorex-platform-module-auth-client-command-return-url.util-mBmtJ7T2.mjs';
12
+ import { c as captureCommandReturnUrl, i as isWelcomeOnboardingRouterUrl, r as restoreWelcomeOnboardingAfterSubFlow, a as restoreCommandReturnUrlAfterSubFlow } from './acorex-platform-module-auth-client-command-return-url.util-D2zy8M1F.mjs';
13
13
 
14
14
  /** Opens a self-service dialog for users without an employee record (display name editable; username read-only). */
15
15
  class AXPEditAccountInfoCommand {
@@ -105,7 +105,7 @@ class AXPEditAccountInfoCommand {
105
105
  }
106
106
  dialogRef.setLoading(true);
107
107
  try {
108
- await userData.update(userId, { displayName });
108
+ await userData.update(userId, { displayName }, user);
109
109
  await this.identityService.applySessionPatch({
110
110
  title: displayName,
111
111
  });
@@ -147,4 +147,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
147
147
  }] });
148
148
 
149
149
  export { AXPEditAccountInfoCommand };
150
- //# sourceMappingURL=acorex-platform-module-auth-client-edit-account-info.command-DulLUfWs.mjs.map
150
+ //# sourceMappingURL=acorex-platform-module-auth-client-edit-account-info.command-DlHMUCaC.mjs.map