@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
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-auth-client-edit-account-info.command-DulLUfWs.mjs","sources":["../../../../libs/modules/auth/client/src/lib/commands/edit-account-info.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 {RootConfig as SecurityManagementRootConfig} from '@acorex-platform/module-security-management-client/contracts'\nimport {AXMSecurityManagementUsersEntityModel} from '@acorex-platform/module-security-management-client/contracts';\nimport { AXPSessionService, AXPUserProfileIdentityService } from '@acorex-platform/framework-client/auth';\nimport { AXPRuntimeCommandResult } from '@acorex-platform/framework-shared/core';\nimport { axpEndCommandSubFlowNavigation } from '@acorex-platform/framework-client/common';\nimport { AXPLayoutBuilderService } from '@acorex-platform/framework-client/layout/builder';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\n\nimport { inject, Injectable } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { defaultTo, isEmpty, isNil, trim } from 'lodash';\n\nimport {\n captureCommandReturnUrl,\n isWelcomeOnboardingRouterUrl,\n restoreCommandReturnUrlAfterSubFlow,\n restoreWelcomeOnboardingAfterSubFlow,\n} from '../shared/command-return-url.util';\n\n//#region ---- Edit account info command ----\n\nexport type AXPEditAccountInfoCommandInput = {\n /** Explicit return URL for sub-flow restore (welcome onboarding passes its route). */\n subFlowReturnUrl?: string;\n};\n\n/** Opens a self-service dialog for users without an employee record (display name editable; username read-only). */\n@Injectable({ providedIn: 'root' })\nexport class AXPEditAccountInfoCommand implements AXPCommand<AXPEditAccountInfoCommandInput, void> {\n //#region ---- Services & Dependencies ----\n\n private readonly layoutBuilder = inject(AXPLayoutBuilderService);\n private readonly entityService = inject(AXPEntityService);\n private readonly sessionService = inject(AXPSessionService);\n private readonly identityService = inject(AXPUserProfileIdentityService);\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: AXPEditAccountInfoCommandInput = {}): AXPCommandExecuteResultPromise<void> {\n const userId = this.sessionService.user?.id;\n if (isNil(userId)) {\n return {\n success: false,\n message: {\n text: await this.translateService.translateAsync(\n '@auth:profile-page.commands.edit-account-info.messages.not-signed-in',\n ),\n },\n };\n }\n\n const returnUrl = captureCommandReturnUrl(this.router, input.subFlowReturnUrl);\n\n try {\n return await this.executeDialog(userId, returnUrl);\n } finally {\n axpEndCommandSubFlowNavigation();\n }\n }\n\n private async executeDialog(\n userId: string,\n returnUrl: string,\n ): AXPCommandExecuteResultPromise<void> {\n const userData = this.entityService\n .withEntity(\n SecurityManagementRootConfig.module.name,\n SecurityManagementRootConfig.entities.users.name,\n )\n .data<string, AXMSecurityManagementUsersEntityModel>();\n\n const user = await userData.byKey(userId);\n if (isNil(user)) {\n return {\n success: false,\n message: {\n text: await this.translateService.translateAsync(\n '@auth:profile-page.commands.edit-account-info.messages.user-not-found',\n ),\n },\n };\n }\n\n const dialogTitle = await this.translateService.translateAsync(\n '@auth:profile-page.commands.edit-account-info.dialog.title',\n );\n\n const result = await this.layoutBuilder\n .create()\n .dialog<AXPRuntimeCommandResult<void>>((dialog) => {\n dialog\n .setTitle(dialogTitle)\n .setSize('md')\n .setCloseButton(true)\n .setContext({\n username: defaultTo(user.username, ''),\n displayName: defaultTo(user.displayName, ''),\n })\n .content((layout) => {\n layout.flex((flex) => {\n flex\n .setDirection('column')\n .setGap('1rem')\n .formField('@general:terms.contact.username', (field) => {\n field.path('username');\n field.disabled(true);\n field.textBox({\n placeholder: '@general:terms.contact.username',\n });\n })\n .formField('@general:terms.common.display-name', (field) => {\n field.path('displayName');\n field.textBox({\n placeholder: '@general:terms.common.display-name',\n validations: [{ rule: 'required' }],\n });\n });\n });\n })\n .setActions((actions) => {\n actions.cancel('@general:actions.cancel.title');\n actions.submit('@general:actions.save.title');\n })\n .onAction(async (dialogRef) => {\n if (dialogRef.action() === 'cancel') {\n return { success: false };\n }\n\n const form = dialogRef.context() as { username?: string; displayName?: string };\n const displayName = trim(defaultTo(form.displayName, ''));\n\n if (isEmpty(displayName)) {\n await this.showError('@auth:profile-page.commands.edit-account-info.messages.required-fields');\n throw new Error('Display name is required');\n }\n\n dialogRef.setLoading(true);\n try {\n await userData.update(userId, { displayName });\n\n await this.identityService.applySessionPatch({\n title: displayName,\n });\n\n const successTitle = await this.translateService.translateAsync(\n '@auth:profile-page.commands.edit-account-info.messages.success',\n );\n this.toastService.show({ color: 'success', title: successTitle });\n dialogRef.close();\n return { success: true, kind: 'object', data: undefined };\n } finally {\n dialogRef.setLoading(false);\n }\n });\n })\n .show();\n\n const outcome = result ?? { success: false };\n if (outcome.success) {\n if (isWelcomeOnboardingRouterUrl(returnUrl)) {\n await restoreWelcomeOnboardingAfterSubFlow(this.router, returnUrl);\n } else {\n await restoreCommandReturnUrlAfterSubFlow(this.router, returnUrl);\n }\n }\n return outcome;\n }\n\n //#endregion\n\n //#region ---- Utility Methods ----\n\n private async showError(messageKey: string): Promise<void> {\n const content = await this.translateService.translateAsync(messageKey);\n const title = await this.translateService.translateAsync('@general:messages.generic.error.title');\n this.toastService.show({ color: 'danger', title, content, closeButton: true });\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":["SecurityManagementRootConfig"],"mappings":";;;;;;;;;;;;;AA6BA;MAEa,yBAAyB,CAAA;AADtC,IAAA,WAAA,GAAA;;AAImB,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,uBAAuB,CAAC;AAC/C,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACxC,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,6BAA6B,CAAC;AACvD,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC;AACrC,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,oBAAoB,CAAC;AAC/C,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,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OAAO,EAAE,KAAK,EAAE;AAC5C,QAAA,IAAI,OAAO,CAAC,OAAO,EAAE;AACnB,YAAA,IAAI,4BAA4B,CAAC,SAAS,CAAC,EAAE;gBAC3C,MAAM,oCAAoC,CAAC,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC;YACpE;iBAAO;gBACL,MAAM,mCAAmC,CAAC,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC;YACnE;QACF;AACA,QAAA,OAAO,OAAO;IAChB;;;IAMQ,MAAM,SAAS,CAAC,UAAkB,EAAA;QACxC,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,UAAU,CAAC;QACtE,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,uCAAuC,CAAC;AACjG,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;IAChF;8GAzJW,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAzB,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,yBAAyB,cADZ,MAAM,EAAA,CAAA,CAAA;;2FACnB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBADrC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
1
+ {"version":3,"file":"acorex-platform-module-auth-client-edit-account-info.command-DlHMUCaC.mjs","sources":["../../../../libs/modules/auth/client/src/lib/commands/edit-account-info.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 {RootConfig as SecurityManagementRootConfig} from '@acorex-platform/module-security-management-client/contracts'\nimport {AXMSecurityManagementUsersEntityModel} from '@acorex-platform/module-security-management-client/contracts';\nimport { AXPSessionService, AXPUserProfileIdentityService } from '@acorex-platform/framework-client/auth';\nimport { AXPRuntimeCommandResult } from '@acorex-platform/framework-shared/core';\nimport { axpEndCommandSubFlowNavigation } from '@acorex-platform/framework-client/common';\nimport { AXPLayoutBuilderService } from '@acorex-platform/framework-client/layout/builder';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\n\nimport { inject, Injectable } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { defaultTo, isEmpty, isNil, trim } from 'lodash';\n\nimport {\n captureCommandReturnUrl,\n isWelcomeOnboardingRouterUrl,\n restoreCommandReturnUrlAfterSubFlow,\n restoreWelcomeOnboardingAfterSubFlow,\n} from '../shared/command-return-url.util';\n\n//#region ---- Edit account info command ----\n\nexport type AXPEditAccountInfoCommandInput = {\n /** Explicit return URL for sub-flow restore (welcome onboarding passes its route). */\n subFlowReturnUrl?: string;\n};\n\n/** Opens a self-service dialog for users without an employee record (display name editable; username read-only). */\n@Injectable({ providedIn: 'root' })\nexport class AXPEditAccountInfoCommand implements AXPCommand<AXPEditAccountInfoCommandInput, void> {\n //#region ---- Services & Dependencies ----\n\n private readonly layoutBuilder = inject(AXPLayoutBuilderService);\n private readonly entityService = inject(AXPEntityService);\n private readonly sessionService = inject(AXPSessionService);\n private readonly identityService = inject(AXPUserProfileIdentityService);\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: AXPEditAccountInfoCommandInput = {}): AXPCommandExecuteResultPromise<void> {\n const userId = this.sessionService.user?.id;\n if (isNil(userId)) {\n return {\n success: false,\n message: {\n text: await this.translateService.translateAsync(\n '@auth:profile-page.commands.edit-account-info.messages.not-signed-in',\n ),\n },\n };\n }\n\n const returnUrl = captureCommandReturnUrl(this.router, input.subFlowReturnUrl);\n\n try {\n return await this.executeDialog(userId, returnUrl);\n } finally {\n axpEndCommandSubFlowNavigation();\n }\n }\n\n private async executeDialog(\n userId: string,\n returnUrl: string,\n ): AXPCommandExecuteResultPromise<void> {\n const userData = this.entityService\n .withEntity(\n SecurityManagementRootConfig.module.name,\n SecurityManagementRootConfig.entities.users.name,\n )\n .data<string, AXMSecurityManagementUsersEntityModel>();\n\n const user = await userData.byKey(userId);\n if (isNil(user)) {\n return {\n success: false,\n message: {\n text: await this.translateService.translateAsync(\n '@auth:profile-page.commands.edit-account-info.messages.user-not-found',\n ),\n },\n };\n }\n\n const dialogTitle = await this.translateService.translateAsync(\n '@auth:profile-page.commands.edit-account-info.dialog.title',\n );\n\n const result = await this.layoutBuilder\n .create()\n .dialog<AXPRuntimeCommandResult<void>>((dialog) => {\n dialog\n .setTitle(dialogTitle)\n .setSize('md')\n .setCloseButton(true)\n .setContext({\n username: defaultTo(user.username, ''),\n displayName: defaultTo(user.displayName, ''),\n })\n .content((layout) => {\n layout.flex((flex) => {\n flex\n .setDirection('column')\n .setGap('1rem')\n .formField('@general:terms.contact.username', (field) => {\n field.path('username');\n field.disabled(true);\n field.textBox({\n placeholder: '@general:terms.contact.username',\n });\n })\n .formField('@general:terms.common.display-name', (field) => {\n field.path('displayName');\n field.textBox({\n placeholder: '@general:terms.common.display-name',\n validations: [{ rule: 'required' }],\n });\n });\n });\n })\n .setActions((actions) => {\n actions.cancel('@general:actions.cancel.title');\n actions.submit('@general:actions.save.title');\n })\n .onAction(async (dialogRef) => {\n if (dialogRef.action() === 'cancel') {\n return { success: false };\n }\n\n const form = dialogRef.context() as { username?: string; displayName?: string };\n const displayName = trim(defaultTo(form.displayName, ''));\n\n if (isEmpty(displayName)) {\n await this.showError('@auth:profile-page.commands.edit-account-info.messages.required-fields');\n throw new Error('Display name is required');\n }\n\n dialogRef.setLoading(true);\n try {\n await userData.update(userId, { displayName }, user);\n\n await this.identityService.applySessionPatch({\n title: displayName,\n });\n\n const successTitle = await this.translateService.translateAsync(\n '@auth:profile-page.commands.edit-account-info.messages.success',\n );\n this.toastService.show({ color: 'success', title: successTitle });\n dialogRef.close();\n return { success: true, kind: 'object', data: undefined };\n } finally {\n dialogRef.setLoading(false);\n }\n });\n })\n .show();\n\n const outcome = result ?? { success: false };\n if (outcome.success) {\n if (isWelcomeOnboardingRouterUrl(returnUrl)) {\n await restoreWelcomeOnboardingAfterSubFlow(this.router, returnUrl);\n } else {\n await restoreCommandReturnUrlAfterSubFlow(this.router, returnUrl);\n }\n }\n return outcome;\n }\n\n //#endregion\n\n //#region ---- Utility Methods ----\n\n private async showError(messageKey: string): Promise<void> {\n const content = await this.translateService.translateAsync(messageKey);\n const title = await this.translateService.translateAsync('@general:messages.generic.error.title');\n this.toastService.show({ color: 'danger', title, content, closeButton: true });\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":["SecurityManagementRootConfig"],"mappings":";;;;;;;;;;;;;AA6BA;MAEa,yBAAyB,CAAA;AADtC,IAAA,WAAA,GAAA;;AAImB,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,uBAAuB,CAAC;AAC/C,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACxC,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,6BAA6B,CAAC;AACvD,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC;AACrC,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,oBAAoB,CAAC;AAC/C,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AAmJzC,IAAA;;;AA7IC,IAAA,MAAM,OAAO,CAAC,KAAA,GAAwC,EAAE,EAAA;QACtD,MAAM,MAA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A,IAAI,4BAA4B,CAAC,SAAS,CAAC,EAAE;gBAC3C,MAAM,oCAAoC,CAAC,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC;YACpE;iBAAO;gBACL,MAAM,mCAAmC,CAAC,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC;YACnE;QACF;AACA,QAAA,OAAO,OAAO;IAChB;;;IAMQ,MAAM,SAAS,CAAC,UAAkB,EAAA;QACxC,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,UAAU,CAAC;QACtE,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,uCAAuC,CAAC;AACjG,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;IAChF;8GAzJW,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAzB,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,yBAAyB,cADZ,MAAM,EAAA,CAAA,CAAA;;2FACnB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBADrC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
@@ -29,4 +29,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
29
29
  }] });
30
30
 
31
31
  export { AXPEditSignatureCommand };
32
- //# sourceMappingURL=acorex-platform-module-auth-client-edit-signature.command-TjOLhvKL.mjs.map
32
+ //# sourceMappingURL=acorex-platform-module-auth-client-edit-signature.command-ZEGATkZs.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-auth-client-edit-signature.command-TjOLhvKL.mjs","sources":["../../../../libs/modules/auth/client/src/lib/commands/edit-signature.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 { AXPRuntimeCommandResult } from '@acorex-platform/framework-shared/core';\n\nimport { inject, Injectable } from '@angular/core';\n\n//#region ---- Edit signature command (stub) ----\n\n/**\n * Opens the signature editor for the current user. Full flow will be added in a follow-up iteration.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXPEditSignatureCommand implements AXPCommand {\n //#region ---- Services & Dependencies ----\n\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 text = await this.translateService.translateAsync('@auth:profile-page.commands.edit-signature.coming-soon');\n this.toastService.show({ color: 'primary', title: text });\n return { success: true, kind: 'object', data: undefined };\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;AAOA;AAEA;;AAEG;MAEU,uBAAuB,CAAA;AADpC,IAAA,WAAA,GAAA;;AAImB,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC;AACrC,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,oBAAoB,CAAC;AAajE,IAAA;;;AAPC,IAAA,MAAM,OAAO,GAAA;QACX,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,wDAAwD,CAAC;AACjH,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AACzD,QAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;IAC3D;8GAdW,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAvB,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,uBAAuB,cADV,MAAM,EAAA,CAAA,CAAA;;2FACnB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBADnC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
1
+ {"version":3,"file":"acorex-platform-module-auth-client-edit-signature.command-ZEGATkZs.mjs","sources":["../../../../libs/modules/auth/client/src/lib/commands/edit-signature.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 { AXPRuntimeCommandResult } from '@acorex-platform/framework-shared/core';\n\nimport { inject, Injectable } from '@angular/core';\n\n//#region ---- Edit signature command (stub) ----\n\n/**\n * Opens the signature editor for the current user. Full flow will be added in a follow-up iteration.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXPEditSignatureCommand implements AXPCommand {\n //#region ---- Services & Dependencies ----\n\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 text = await this.translateService.translateAsync('@auth:profile-page.commands.edit-signature.coming-soon');\n this.toastService.show({ color: 'primary', title: text });\n return { success: true, kind: 'object', data: undefined };\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;AAOA;AAEA;;AAEG;MAEU,uBAAuB,CAAA;AADpC,IAAA,WAAA,GAAA;;AAImB,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC;AACrC,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,oBAAoB,CAAC;AAajE,IAAA;;;AAPC,IAAA,MAAM,OAAO,GAAA;QACX,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,wDAAwD,CAAC;AACjH,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AACzD,QAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;IAC3D;8GAdW,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAvB,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,uBAAuB,cADV,MAAM,EAAA,CAAA,CAAA;;2FACnB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBADnC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
@@ -4,7 +4,7 @@ import { AXPEntityService } from '@acorex-platform/framework-client/layout/entit
4
4
  import * as i0 from '@angular/core';
5
5
  import { inject, Injectable } from '@angular/core';
6
6
  import { isEmpty } from 'lodash';
7
- import { g as resolveDefaultUserActivityDateRange, h as resolveSmartUserActivityDateRange, i as buildUserActivityDataSourceItem } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-CBRlR1xT.mjs';
7
+ import { g as resolveDefaultUserActivityDateRange, h as resolveSmartUserActivityDateRange, i as buildUserActivityDataSourceItem } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-DnctDd1m.mjs';
8
8
 
9
9
  //#endregion
10
10
  //#region ---- Helpers ----
@@ -87,4 +87,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
87
87
  }] });
88
88
 
89
89
  export { AXMGetUserActivityQuery };
90
- //# sourceMappingURL=acorex-platform-module-auth-client-get-user-activity.query-BxoUkan6.mjs.map
90
+ //# sourceMappingURL=acorex-platform-module-auth-client-get-user-activity.query-CLkKuRb2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-auth-client-get-user-activity.query-BxoUkan6.mjs","sources":["../../../../libs/modules/auth/client/src/lib/features/queries/get-user-activity.query.ts"],"sourcesContent":["import {\n runtimeQueryFailure,\n runtimeQuerySuccessObject,\n} from '@acorex-platform/framework-shared/core';\nimport type { AXPQuery, AXPQueryFetchResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { AXDataSourceFilterOption } from '@acorex/cdk/common';\nimport {\n AXMSecurityManagementDeviceSessionsEntityModel,\n RootConfig as SecurityManagementRootConfig,\n} from '@acorex-platform/module-security-management-client/contracts';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\n\nimport { Injectable, inject } from '@angular/core';\nimport { isEmpty } from 'lodash';\n\nimport {\n AXPUserActivityDataSourceItem,\n AXPUserActivityLoadParams,\n} from '../../shared/datasources/user-activity/user-activity.types';\nimport {\n buildUserActivityDataSourceItem,\n resolveDefaultUserActivityDateRange,\n resolveSmartUserActivityDateRange,\n} from '../../shared/datasources/user-activity/user-activity.utils';\n\n//#region ---- Types ----\n\nexport interface AXMGetUserActivityQueryInput {\n userId: string;\n startDate?: string | Date;\n endDate?: string | Date;\n}\n\n//#endregion\n\n//#region ---- Helpers ----\n\nfunction coerceDate(value: string | Date | undefined, fallback: Date): Date {\n if (value instanceof Date && !Number.isNaN(value.getTime())) {\n return value;\n }\n if (typeof value === 'string' && value.trim()) {\n const parsed = new Date(value);\n if (!Number.isNaN(parsed.getTime())) {\n return parsed;\n }\n }\n return fallback;\n}\n\n//#endregion\n\n//#region ---- Query ----\n\n/**\n * User activity heatmap — replaces the `auth-user-activity` DI data source.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMGetUserActivityQuery\n implements AXPQuery<AXMGetUserActivityQueryInput, AXPUserActivityDataSourceItem | null>\n{\n //#region ---- Services & Dependencies ----\n\n private readonly entityService = inject(AXPEntityService);\n\n //#endregion\n\n //#region ---- Query Execution ----\n\n async fetch(\n input?: AXMGetUserActivityQueryInput | null,\n ): AXPQueryFetchResultPromise<AXPUserActivityDataSourceItem | null> {\n try {\n if (isEmpty(input?.userId)) {\n return runtimeQuerySuccessObject(null);\n }\n\n const sessions = await this.loadUserSessions(input!.userId);\n let range: { startDate: Date; endDate: Date };\n if (input?.startDate != null && input?.endDate != null) {\n const fallback = resolveDefaultUserActivityDateRange();\n range = {\n startDate: coerceDate(input.startDate, fallback.startDate),\n endDate: coerceDate(input.endDate, fallback.endDate),\n };\n } else {\n range = resolveSmartUserActivityDateRange(sessions, input!.userId);\n }\n const params: AXPUserActivityLoadParams = {\n userId: input!.userId,\n startDate: range.startDate,\n endDate: range.endDate,\n };\n\n const item = buildUserActivityDataSourceItem(params, sessions);\n return runtimeQuerySuccessObject(item);\n } catch (error) {\n return runtimeQueryFailure(\n error instanceof Error ? error.message : 'Unknown error occurred',\n );\n }\n }\n\n //#endregion\n\n //#region ---- Private Methods ----\n\n private async loadUserSessions(\n userId: string,\n ): Promise<AXMSecurityManagementDeviceSessionsEntityModel[]> {\n const response = await this.entityService\n .withEntity(\n SecurityManagementRootConfig.module.name,\n SecurityManagementRootConfig.entities.deviceSessions.name,\n )\n .data<string, AXMSecurityManagementDeviceSessionsEntityModel>()\n .query({\n skip: 0,\n take: 1000,\n filter: {\n field: 'userId',\n operator: { type: 'equal' },\n value: userId,\n } as AXDataSourceFilterOption,\n });\n\n return response.items ?? [];\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":["SecurityManagementRootConfig"],"mappings":";;;;;;;;AAiCA;AAEA;AAEA,SAA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,EAAA,EAAA,IAAA,EAAA,uBAAuB,cADV,MAAM,EAAA,CAAA,CAAA;;2FACnB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBADnC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
1
+ {"version":3,"file":"acorex-platform-module-auth-client-get-user-activity.query-CLkKuRb2.mjs","sources":["../../../../libs/modules/auth/client/src/lib/features/queries/get-user-activity.query.ts"],"sourcesContent":["import {\n runtimeQueryFailure,\n runtimeQuerySuccessObject,\n} from '@acorex-platform/framework-shared/core';\nimport type { AXPQuery, AXPQueryFetchResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { AXDataSourceFilterOption } from '@acorex/cdk/common';\nimport {\n AXMSecurityManagementDeviceSessionsEntityModel,\n RootConfig as SecurityManagementRootConfig,\n} from '@acorex-platform/module-security-management-client/contracts';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\n\nimport { Injectable, inject } from '@angular/core';\nimport { isEmpty } from 'lodash';\n\nimport {\n AXPUserActivityDataSourceItem,\n AXPUserActivityLoadParams,\n} from '../../shared/datasources/user-activity/user-activity.types';\nimport {\n buildUserActivityDataSourceItem,\n resolveDefaultUserActivityDateRange,\n resolveSmartUserActivityDateRange,\n} from '../../shared/datasources/user-activity/user-activity.utils';\n\n//#region ---- Types ----\n\nexport interface AXMGetUserActivityQueryInput {\n userId: string;\n startDate?: string | Date;\n endDate?: string | Date;\n}\n\n//#endregion\n\n//#region ---- Helpers ----\n\nfunction coerceDate(value: string | Date | undefined, fallback: Date): Date {\n if (value instanceof Date && !Number.isNaN(value.getTime())) {\n return value;\n }\n if (typeof value === 'string' && value.trim()) {\n const parsed = new Date(value);\n if (!Number.isNaN(parsed.getTime())) {\n return parsed;\n }\n }\n return fallback;\n}\n\n//#endregion\n\n//#region ---- Query ----\n\n/**\n * User activity heatmap — replaces the `auth-user-activity` DI data source.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMGetUserActivityQuery\n implements AXPQuery<AXMGetUserActivityQueryInput, AXPUserActivityDataSourceItem | null>\n{\n //#region ---- Services & Dependencies ----\n\n private readonly entityService = inject(AXPEntityService);\n\n //#endregion\n\n //#region ---- Query Execution ----\n\n async fetch(\n input?: AXMGetUserActivityQueryInput | null,\n ): AXPQueryFetchResultPromise<AXPUserActivityDataSourceItem | null> {\n try {\n if (isEmpty(input?.userId)) {\n return runtimeQuerySuccessObject(null);\n }\n\n const sessions = await this.loadUserSessions(input!.userId);\n let range: { startDate: Date; endDate: Date };\n if (input?.startDate != null && input?.endDate != null) {\n const fallback = resolveDefaultUserActivityDateRange();\n range = {\n startDate: coerceDate(input.startDate, fallback.startDate),\n endDate: coerceDate(input.endDate, fallback.endDate),\n };\n } else {\n range = resolveSmartUserActivityDateRange(sessions, input!.userId);\n }\n const params: AXPUserActivityLoadParams = {\n userId: input!.userId,\n startDate: range.startDate,\n endDate: range.endDate,\n };\n\n const item = buildUserActivityDataSourceItem(params, sessions);\n return runtimeQuerySuccessObject(item);\n } catch (error) {\n return runtimeQueryFailure(\n error instanceof Error ? error.message : 'Unknown error occurred',\n );\n }\n }\n\n //#endregion\n\n //#region ---- Private Methods ----\n\n private async loadUserSessions(\n userId: string,\n ): Promise<AXMSecurityManagementDeviceSessionsEntityModel[]> {\n const response = await this.entityService\n .withEntity(\n SecurityManagementRootConfig.module.name,\n SecurityManagementRootConfig.entities.deviceSessions.name,\n )\n .data<string, AXMSecurityManagementDeviceSessionsEntityModel>()\n .query({\n skip: 0,\n take: 1000,\n filter: {\n field: 'userId',\n operator: { type: 'equal' },\n value: userId,\n } as AXDataSourceFilterOption,\n });\n\n return response.items ?? [];\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":["SecurityManagementRootConfig"],"mappings":";;;;;;;;AAiCA;AAEA;AAEA,SAAS,UAAU,CAAC,KAAgC,EAAE,QAAc,EAAA;AAClE,IAAA,IAAI,KAAK,YAAY,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,C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AAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { inject, Injectable } from '@angular/core';
3
- import { j as AXPIdleLockService } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-CBRlR1xT.mjs';
3
+ import { j as AXPIdleLockService } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-DnctDd1m.mjs';
4
4
 
5
5
  //#region ---- Lock screen command ----
6
6
  /** Locks the session overlay when Lock When Idle is enabled. */
@@ -27,4 +27,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
27
27
  }] });
28
28
 
29
29
  export { AXPLockScreenCommand };
30
- //# sourceMappingURL=acorex-platform-module-auth-client-lock-screen.command-QXW3UCik.mjs.map
30
+ //# sourceMappingURL=acorex-platform-module-auth-client-lock-screen.command-CC96Y_Dw.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-auth-client-lock-screen.command-QXW3UCik.mjs","sources":["../../../../libs/modules/auth/client/src/lib/commands/lock-screen.command.ts"],"sourcesContent":["import { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { AXPRuntimeCommandResult } from '@acorex-platform/framework-shared/core';\n\nimport { inject, Injectable } from '@angular/core';\nimport { AXPIdleLockService } from '../shared/services/idle-lock.service';\n\n//#region ---- Lock screen command ----\n\n/** Locks the session overlay when Lock When Idle is enabled. */\n@Injectable({ providedIn: 'root' })\nexport class AXPLockScreenCommand implements AXPCommand {\n //#region ---- Services & Dependencies ----\n\n private readonly idleLockService = inject(AXPIdleLockService);\n\n //#endregion\n\n //#region ---- Command ----\n\n async execute(): AXPCommandExecuteResultPromise<void> {\n await this.idleLockService.refreshLockState();\n\n if (this.idleLockService.canLock()) {\n this.idleLockService.lockScreen();\n }\n\n return { success: true, kind: 'object', data: undefined };\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAMA;AAEA;MAEa,oBAAoB,CAAA;AADjC,IAAA,WAAA,GAAA;;AAImB,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAiB9D,IAAA;;;AAXC,IAAA,MAAM,OAAO,GAAA;AACX,QAAA,MAAM,IAAI,CAAC,eAAe,CAAC,gBAAgB,EAAE;AAE7C,QAAA,IAAI,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,EAAE;AAClC,YAAA,IAAI,CAAC,eAAe,CAAC,UAAU,EAAE;QACnC;AAEA,QAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;IAC3D;8GAjBW,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAApB,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,oBAAoB,cADP,MAAM,EAAA,CAAA,CAAA;;2FACnB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBADhC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
1
+ {"version":3,"file":"acorex-platform-module-auth-client-lock-screen.command-CC96Y_Dw.mjs","sources":["../../../../libs/modules/auth/client/src/lib/commands/lock-screen.command.ts"],"sourcesContent":["import { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { AXPRuntimeCommandResult } from '@acorex-platform/framework-shared/core';\n\nimport { inject, Injectable } from '@angular/core';\nimport { AXPIdleLockService } from '../shared/services/idle-lock.service';\n\n//#region ---- Lock screen command ----\n\n/** Locks the session overlay when Lock When Idle is enabled. */\n@Injectable({ providedIn: 'root' })\nexport class AXPLockScreenCommand implements AXPCommand {\n //#region ---- Services & Dependencies ----\n\n private readonly idleLockService = inject(AXPIdleLockService);\n\n //#endregion\n\n //#region ---- Command ----\n\n async execute(): AXPCommandExecuteResultPromise<void> {\n await this.idleLockService.refreshLockState();\n\n if (this.idleLockService.canLock()) {\n this.idleLockService.lockScreen();\n }\n\n return { success: true, kind: 'object', data: undefined };\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAMA;AAEA;MAEa,oBAAoB,CAAA;AADjC,IAAA,WAAA,GAAA;;AAImB,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAiB9D,IAAA;;;AAXC,IAAA,MAAM,OAAO,GAAA;AACX,QAAA,MAAM,IAAI,CAAC,eAAe,CAAC,gBAAgB,EAAE;AAE7C,QAAA,IAAI,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,EAAE;AAClC,YAAA,IAAI,CAAC,eAAe,CAAC,UAAU,EAAE;QACnC;AAEA,QAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;IAC3D;8GAjBW,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAApB,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,oBAAoB,cADP,MAAM,EAAA,CAAA,CAAA;;2FACnB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBADhC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { inject, NgModule } from '@angular/core';
3
3
  import { ROUTES } from '@angular/router';
4
- import { w as AXM_LOGIN_GUARD_TOKEN } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-CBRlR1xT.mjs';
4
+ import { w as AXM_LOGIN_GUARD_TOKEN } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-DnctDd1m.mjs';
5
5
 
6
6
  function routesFacory() {
7
7
  const loginGuard = inject(AXM_LOGIN_GUARD_TOKEN);
@@ -9,7 +9,7 @@ function routesFacory() {
9
9
  {
10
10
  path: 'login',
11
11
  canActivate: [loginGuard],
12
- loadComponent: () => import('./acorex-platform-module-auth-client-password.component-D0pwQEaB.mjs').then((c) => c.AXPLoginPasswordComponent),
12
+ loadComponent: () => import('./acorex-platform-module-auth-client-password.component-mswOB-df.mjs').then((c) => c.AXPLoginPasswordComponent),
13
13
  },
14
14
  ];
15
15
  return routes;
@@ -41,4 +41,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
41
41
  }] });
42
42
 
43
43
  export { AXPSignInModule };
44
- //# sourceMappingURL=acorex-platform-module-auth-client-login.module-dy4_aiwN.mjs.map
44
+ //# sourceMappingURL=acorex-platform-module-auth-client-login.module-CeG5lRCF.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-auth-client-login.module-dy4_aiwN.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/login/login.module.ts"],"sourcesContent":["import { NgModule, inject } from '@angular/core';\nimport { ROUTES, Routes } from '@angular/router';\nimport { AXM_LOGIN_GUARD_TOKEN } from '../../auth.config';\n\nfunction routesFacory() {\n const loginGuard = inject(AXM_LOGIN_GUARD_TOKEN);\n const routes: Routes = [\n {\n path: 'login',\n canActivate: [loginGuard],\n loadComponent: () =>\n import('./password/password.component').then((c) => c.AXPLoginPasswordComponent),\n },\n ];\n return routes;\n}\n\n@NgModule({\n imports: [],\n exports: [],\n providers: [\n {\n provide: ROUTES,\n multi: true,\n useFactory: routesFacory,\n },\n ],\n})\nexport class AXPSignInModule {}\n"],"names":[],"mappings":";;;;;AAIA,SAAS,YAAY,GAAA;AACnB,IAAA,MAAM,UAAU,GAAG,MAAM,CAAC,qBAAqB,CAAC;AAChD,IAAA,MAAM,MAAM,GAAW;AACrB,QAAA;AACE,YAAA,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,CAAC,UAAU,CAAC;AACzB,YAAA,aAAa,EAAE,MACb,OAAO,sEAA+B,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,yBAAyB,CAAC;AACnF,SAAA;KACF;AACD,IAAA,OAAO,MAAM;AACf;MAaa,eAAe,CAAA;8GAAf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAf,eAAe,EAAA,CAAA,CAAA;AAAf,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,EAAA,SAAA,EARf;AACT,YAAA;AACE,gBAAA,OAAO,EAAE,MAAM;AACf,gBAAA,KAAK,EAAE,IAAI;AACX,gBAAA,UAAU,EAAE,YAAY;AACzB,aAAA;AACF,SAAA,EAAA,CAAA,CAAA;;2FAEU,eAAe,EAAA,UAAA,EAAA,CAAA;kBAX3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,SAAS,EAAE;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,MAAM;AACf,4BAAA,KAAK,EAAE,IAAI;AACX,4BAAA,UAAU,EAAE,YAAY;AACzB,yBAAA;AACF,qBAAA;AACF,iBAAA;;;"}
1
+ {"version":3,"file":"acorex-platform-module-auth-client-login.module-CeG5lRCF.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/login/login.module.ts"],"sourcesContent":["import { NgModule, inject } from '@angular/core';\nimport { ROUTES, Routes } from '@angular/router';\nimport { AXM_LOGIN_GUARD_TOKEN } from '../../auth.config';\n\nfunction routesFacory() {\n const loginGuard = inject(AXM_LOGIN_GUARD_TOKEN);\n const routes: Routes = [\n {\n path: 'login',\n canActivate: [loginGuard],\n loadComponent: () =>\n import('./password/password.component').then((c) => c.AXPLoginPasswordComponent),\n },\n ];\n return routes;\n}\n\n@NgModule({\n imports: [],\n exports: [],\n providers: [\n {\n provide: ROUTES,\n multi: true,\n useFactory: routesFacory,\n },\n ],\n})\nexport class AXPSignInModule {}\n"],"names":[],"mappings":";;;;;AAIA,SAAS,YAAY,GAAA;AACnB,IAAA,MAAM,UAAU,GAAG,MAAM,CAAC,qBAAqB,CAAC;AAChD,IAAA,MAAM,MAAM,GAAW;AACrB,QAAA;AACE,YAAA,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,CAAC,UAAU,CAAC;AACzB,YAAA,aAAa,EAAE,MACb,OAAO,sEAA+B,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,yBAAyB,CAAC;AACnF,SAAA;KACF;AACD,IAAA,OAAO,MAAM;AACf;MAaa,eAAe,CAAA;8GAAf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAf,eAAe,EAAA,CAAA,CAAA;AAAf,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,EAAA,SAAA,EARf;AACT,YAAA;AACE,gBAAA,OAAO,EAAE,MAAM;AACf,gBAAA,KAAK,EAAE,IAAI;AACX,gBAAA,UAAU,EAAE,YAAY;AACzB,aAAA;AACF,SAAA,EAAA,CAAA,CAAA;;2FAEU,eAAe,EAAA,UAAA,EAAA,CAAA;kBAX3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,SAAS,EAAE;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,MAAM;AACf,4BAAA,KAAK,EAAE,IAAI;AACX,4BAAA,UAAU,EAAE,YAAY;AACzB,yBAAA;AACF,qBAAA;AACF,iBAAA;;;"}
@@ -8,7 +8,7 @@ import { runtimeCommandPayloadData } from '@acorex-platform/framework-shared/cor
8
8
  import { AXM_TWO_FACTOR_ERROR_CODES, AXMSecurityManagementServerCommands } from '@acorex-platform/module-security-management-client/contracts';
9
9
  import * as i0 from '@angular/core';
10
10
  import { inject, Injectable } from '@angular/core';
11
- import { T as TWO_FACTOR_SECTION_ID, d as PROFILE_SECTION_INSIGHTS_PATCH_METADATA_KEY, s as buildTwoFactorStatusInsights } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-CBRlR1xT.mjs';
11
+ import { T as TWO_FACTOR_SECTION_ID, d as PROFILE_SECTION_INSIGHTS_PATCH_METADATA_KEY, s as buildTwoFactorStatusInsights } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-DnctDd1m.mjs';
12
12
 
13
13
  //#region ----- Constants -----
14
14
  const I18N = '@auth:profile-page.commands.manage-two-factor';
@@ -442,4 +442,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
442
442
  }] });
443
443
 
444
444
  export { AXPManageTwoFactorCommand };
445
- //# sourceMappingURL=acorex-platform-module-auth-client-manage-two-factor.command-Cal6EJe0.mjs.map
445
+ //# sourceMappingURL=acorex-platform-module-auth-client-manage-two-factor.command-b_Fnx3CM.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-auth-client-manage-two-factor.command-Cal6EJe0.mjs","sources":["../../../../libs/modules/auth/client/src/lib/commands/manage-two-factor.command.ts"],"sourcesContent":["import { AXDialogService } from '@acorex/components/dialog';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport {\n AXPLayoutBuilderService,\n resolveLayoutBuilderDialogResult,\n} from '@acorex-platform/framework-client/layout/builder';\nimport { AXPCommandService } from '@acorex-platform/framework-client/runtime';\nimport { AXPRuntimeCommandResult, runtimeCommandPayloadData } from '@acorex-platform/framework-shared/core';\nimport { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport {\n AXM_TWO_FACTOR_ERROR_CODES,\n AXMSecurityManagementServerCommands,\n type AXMConfirmTwoFactorEnrollmentResult,\n type AXMGenerateTwoFactorRecoveryCodesResult,\n type AXMGetTwoFactorStatusResult,\n type AXMStartTwoFactorEnrollmentResult,\n} from '@acorex-platform/module-security-management-client/contracts';\nimport { inject, Injectable } from '@angular/core';\n\nimport {\n PROFILE_SECTION_INSIGHTS_PATCH_METADATA_KEY,\n} from '../pages/account/profile-page/profile-password-insight.util';\nimport {\n TWO_FACTOR_SECTION_ID,\n buildTwoFactorStatusInsights,\n} from '../pages/account/profile-page/profile-two-factor-insight.util';\n\n//#region ----- Constants -----\n\nconst I18N = '@auth:profile-page.commands.manage-two-factor';\n\nconst TWO_FACTOR_ERROR_I18N: Record<string, string> = {\n [AXM_TWO_FACTOR_ERROR_CODES.NotSignedIn]: `${I18N}.messages.not-signed-in`,\n [AXM_TWO_FACTOR_ERROR_CODES.InvalidInput]: `${I18N}.messages.invalid-input`,\n [AXM_TWO_FACTOR_ERROR_CODES.IncorrectPassword]: `${I18N}.messages.incorrect-password`,\n [AXM_TWO_FACTOR_ERROR_CODES.IncorrectCode]: `${I18N}.messages.incorrect-code`,\n [AXM_TWO_FACTOR_ERROR_CODES.AlreadyEnabled]: `${I18N}.messages.already-enabled`,\n [AXM_TWO_FACTOR_ERROR_CODES.NotEnabled]: `${I18N}.messages.not-enabled`,\n [AXM_TWO_FACTOR_ERROR_CODES.EnrollmentExpired]: `${I18N}.messages.enrollment-expired`,\n [AXM_TWO_FACTOR_ERROR_CODES.RateLimited]: `${I18N}.messages.rate-limited`,\n [AXM_TWO_FACTOR_ERROR_CODES.InvalidConfiguration]: `${I18N}.messages.invalid-configuration`,\n [AXM_TWO_FACTOR_ERROR_CODES.ProofRequired]: `${I18N}.messages.proof-required`,\n};\n\n//#endregion\n\n//#region ----- Types -----\n\ntype TwoFactorProofForm = {\n password?: string;\n totpCode?: string;\n};\n\n//#endregion\n\n//#region ----- Helpers -----\n\n/** Groups Base32 secret in fours for Authenticator manual-entry UX (apps ignore spaces). */\nfunction formatTotpManualSecret(secretBase32: string): string {\n const cleaned = String(secretBase32 ?? '')\n .replace(/\\s+/g, '')\n .toUpperCase();\n return cleaned.replace(/(.{4})(?=.)/g, '$1 ');\n}\n\n//#endregion\n\n//#region ----- Manage two-factor command -----\n\n/** Opens profile dialogs to enroll, disable, or regenerate recovery codes for 2FA. */\n@Injectable({ providedIn: 'root' })\nexport class AXPManageTwoFactorCommand 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 dialogService = inject(AXDialogService);\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 if (!this.sessionService.user?.id) {\n await this.showErrorToast(`${I18N}.messages.not-signed-in`);\n return { success: false };\n }\n\n const status = await this.loadStatus();\n if (!status) {\n return { success: false };\n }\n\n // Prefer manage/disable whenever enrollment exists (even if setting briefly drifted).\n if (status.enabled || status.enrolled) {\n return this.runEnabledFlow(status);\n }\n\n return this.runEnrollmentFlow();\n }\n\n //#endregion\n\n //#region ----- Enrollment -----\n\n private async runEnrollmentFlow(): AXPCommandExecuteResultPromise<void> {\n const enrollment = await this.promptStartEnrollment();\n if (!enrollment) {\n return { success: false };\n }\n\n // Let the password dialog finish teardown before opening the QR dialog\n // (avoids RxJS ObjectUnsubscribedError on overlapping popup subjects).\n await this.waitForDialogTeardown();\n\n const confirmed = await this.promptConfirmEnrollment(enrollment);\n if (!confirmed) {\n return { success: false };\n }\n\n // Success feedback comes from the realtime security alert (avoid duplicate toasts).\n\n await this.waitForDialogTeardown();\n\n const generateCodes = await this.dialogService.confirm(\n await this.translateService.translateAsync(`${I18N}.recovery.offer-title`),\n await this.translateService.translateAsync(`${I18N}.recovery.offer-message`),\n 'primary',\n 'horizontal',\n );\n\n if (generateCodes.result) {\n await this.generateAndShowRecoveryCodes({ password: enrollment.password });\n }\n\n return this.successWithStatusInsights(true);\n }\n\n /**\n * Password re-auth + start enrollment in one dialog (same pattern as change-password).\n * Returns enrollment payload plus the password for optional recovery generation.\n */\n private async promptStartEnrollment(): Promise<\n (AXMStartTwoFactorEnrollmentResult & { password: string }) | null\n > {\n const result = await this.layoutBuilder\n .create()\n .dialog<(AXMStartTwoFactorEnrollmentResult & { password: string }) | null>((dialog) => {\n dialog\n .setTitle(`${I18N}.enable.password-dialog.title`)\n .setSize('sm')\n .setCloseButton(true)\n .setContext({ password: '' })\n .content((layout) => {\n layout.flex((flex) => {\n flex\n .setDirection('column')\n .setGap('1rem')\n .formField(`${I18N}.fields.password.title`, (field) => {\n field.setOptions({\n hint: `${I18N}.fields.password.hint`,\n hintDisplayMode: 'note',\n });\n field.path('password');\n field.passwordBox({\n revealToggle: true,\n placeholder: `${I18N}.fields.password.placeholder`,\n validations: [{ rule: 'required' }],\n });\n });\n });\n })\n .setActions((actions) => {\n actions.cancel('@general:actions.cancel.title');\n actions.submit(`${I18N}.actions.continue`);\n })\n .onAction(async (dialogRef) => {\n if (dialogRef.action() === 'cancel') {\n return null;\n }\n\n const form = dialogRef.context() as { password?: string };\n const password = String(form.password ?? '');\n if (!password) {\n throw new Error(`${I18N}.messages.incorrect-password`);\n }\n\n dialogRef.setLoading(true);\n try {\n const startResult = await this.commandService.execute(\n AXMSecurityManagementServerCommands.StartTwoFactorEnrollment,\n { password },\n );\n if (!startResult?.success) {\n throw new Error(this.resolveServerErrorKey(startResult?.message?.code));\n }\n\n const enrollment = runtimeCommandPayloadData(startResult) as\n | AXMStartTwoFactorEnrollmentResult\n | undefined;\n if (!enrollment?.enrollmentId || !enrollment.otpauthUri) {\n throw new Error(`${I18N}.messages.save-failed`);\n }\n\n // Do not call dialogRef.close() here — the layout-builder closes after onAction returns.\n // A second close throws ObjectUnsubscribedError and surfaces as \"object unsubscribed\".\n return { ...enrollment, password };\n } catch (error) {\n dialogRef.setLoading(false);\n throw error;\n }\n });\n })\n .show();\n\n return resolveLayoutBuilderDialogResult<AXMStartTwoFactorEnrollmentResult & { password: string }>(\n result,\n );\n }\n\n private async promptConfirmEnrollment(\n enrollment: AXMStartTwoFactorEnrollmentResult,\n ): Promise<boolean> {\n const result = await this.layoutBuilder\n .create()\n .dialog<boolean | null>((dialog) => {\n dialog\n .setTitle(`${I18N}.enable.confirm-dialog.title`)\n .setSize('md')\n .setCloseButton(true)\n .setContext({\n otpauthUri: enrollment.otpauthUri,\n // Authenticator apps expect Base32; spaced groups are easier to enter and widely accepted.\n secretBase32: formatTotpManualSecret(enrollment.secretBase32),\n code: '',\n })\n .content((layout) => {\n layout.flex((flex) => {\n flex\n .setDirection('column')\n .setGap('0.75rem')\n .setAlignItems('center')\n .customWidget('text-block-layout', {\n content: `${I18N}.enable.confirm-dialog.instructions`,\n })\n .customWidget('qrcode', {\n path: 'otpauthUri',\n size: 160,\n readonly: true,\n showContent: false,\n })\n .formField(`${I18N}.enable.confirm-dialog.fields.manual-secret.title`, (field) => {\n field.path('secretBase32');\n field.readonly(true);\n field.textBox({});\n })\n .formField(`${I18N}.enable.confirm-dialog.fields.code.title`, (field) => {\n field.path('code');\n field.textBox({\n placeholder: `${I18N}.enable.confirm-dialog.fields.code.placeholder`,\n validations: [{ rule: 'required' }],\n });\n });\n });\n })\n .setActions((actions) => {\n actions.cancel('@general:actions.cancel.title');\n actions.submit(`${I18N}.enable.confirm-dialog.actions.confirm`);\n })\n .onAction(async (dialogRef) => {\n if (dialogRef.action() === 'cancel') {\n return null;\n }\n\n const form = dialogRef.context() as { code?: string };\n const code = String(form.code ?? '').trim();\n if (!code) {\n throw new Error(`${I18N}.messages.incorrect-code`);\n }\n\n dialogRef.setLoading(true);\n try {\n const confirmResult = await this.commandService.execute(\n AXMSecurityManagementServerCommands.ConfirmTwoFactorEnrollment,\n { enrollmentId: enrollment.enrollmentId, code },\n );\n if (!confirmResult?.success) {\n throw new Error(this.resolveServerErrorKey(confirmResult?.message?.code));\n }\n\n const payload = runtimeCommandPayloadData(confirmResult) as\n | AXMConfirmTwoFactorEnrollmentResult\n | undefined;\n if (!payload?.enabled) {\n throw new Error(`${I18N}.messages.save-failed`);\n }\n\n return true;\n } catch (error) {\n dialogRef.setLoading(false);\n throw error;\n }\n });\n })\n .show();\n\n return resolveLayoutBuilderDialogResult<boolean>(result) === true;\n }\n\n //#endregion\n\n //#region ----- Enabled management -----\n\n private async runEnabledFlow(\n status: AXMGetTwoFactorStatusResult,\n ): AXPCommandExecuteResultPromise<void> {\n const choice = await this.dialogService.show({\n title: `${I18N}.manage.dialog.title`,\n content: await this.translateService.translateAsync(`${I18N}.manage.dialog.description`, {\n params: {\n recoveryCount: status.unusedRecoveryCodeCount ?? 0,\n },\n }),\n type: 'primary',\n orientation: 'vertical',\n buttons: [\n {\n name: 'regenerate',\n text: `${I18N}.manage.actions.regenerate-recovery`,\n color: 'primary',\n autofocus: true,\n },\n {\n name: 'disable',\n text: `${I18N}.manage.actions.disable`,\n color: 'danger',\n },\n {\n name: 'cancel',\n text: '@general:actions.cancel.title',\n color: 'default',\n },\n ],\n });\n\n if (choice?.name === 'disable') {\n const proof = await this.promptProof(`${I18N}.disable.dialog.title`);\n if (!proof) {\n return { success: false };\n }\n\n const disableResult = await this.commandService.execute(\n AXMSecurityManagementServerCommands.DisableTwoFactor,\n proof,\n );\n if (!disableResult?.success) {\n await this.showErrorToast(this.resolveServerErrorKey(disableResult?.message?.code));\n return { success: false };\n }\n\n // Success feedback comes from the realtime security alert (avoid duplicate toasts).\n return this.successWithStatusInsights(false);\n }\n\n if (choice?.name === 'regenerate') {\n const proof = await this.promptProof(`${I18N}.recovery.regenerate-dialog.title`);\n if (!proof) {\n return { success: false };\n }\n\n const shown = await this.generateAndShowRecoveryCodes(proof);\n if (!shown) {\n return { success: false };\n }\n\n return this.successWithStatusInsights(true);\n }\n\n return { success: false };\n }\n\n //#endregion\n\n //#region ----- Shared dialogs -----\n\n /** Yields so popup teardown can finish before opening another dialog. */\n private async waitForDialogTeardown(): Promise<void> {\n await new Promise<void>((resolve) => setTimeout(resolve, 50));\n }\n\n private async promptProof(titleKey: string): Promise<TwoFactorProofForm | null> {\n const result = await this.layoutBuilder\n .create()\n .dialog<TwoFactorProofForm | null>((dialog) => {\n dialog\n .setTitle(titleKey)\n .setSize('sm')\n .setCloseButton(true)\n .setContext({ password: '', totpCode: '' })\n .content((layout) => {\n layout.flex((flex) => {\n flex\n .setDirection('column')\n .setGap('1rem')\n .customWidget('text-block-layout', {\n content: `${I18N}.fields.proof.hint`,\n })\n .formField(`${I18N}.fields.password.title`, (field) => {\n field.path('password');\n field.passwordBox({\n revealToggle: true,\n placeholder: `${I18N}.fields.password.placeholder`,\n });\n })\n .formField(`${I18N}.fields.totp-code.title`, (field) => {\n field.path('totpCode');\n field.textBox({\n placeholder: `${I18N}.fields.totp-code.placeholder`,\n });\n });\n });\n })\n .setActions((actions) => {\n actions.cancel('@general:actions.cancel.title');\n actions.submit(`${I18N}.actions.continue`);\n })\n .onAction(async (dialogRef) => {\n if (dialogRef.action() === 'cancel') {\n return null;\n }\n\n const form = dialogRef.context() as TwoFactorProofForm;\n const password = String(form.password ?? '').trim();\n const totpCode = String(form.totpCode ?? '').trim();\n if (!password && !totpCode) {\n throw new Error(`${I18N}.messages.proof-required`);\n }\n\n return {\n ...(password ? { password } : {}),\n ...(totpCode ? { totpCode } : {}),\n };\n });\n })\n .show();\n\n return resolveLayoutBuilderDialogResult<TwoFactorProofForm>(result) ?? null;\n }\n\n private async generateAndShowRecoveryCodes(proof: TwoFactorProofForm): Promise<boolean> {\n const generateResult = await this.commandService.execute(\n AXMSecurityManagementServerCommands.GenerateTwoFactorRecoveryCodes,\n proof,\n );\n if (!generateResult?.success) {\n await this.showErrorToast(this.resolveServerErrorKey(generateResult?.message?.code));\n return false;\n }\n\n const payload = runtimeCommandPayloadData(generateResult) as\n | AXMGenerateTwoFactorRecoveryCodesResult\n | undefined;\n const codes = payload?.codes ?? [];\n if (!codes.length) {\n await this.showErrorToast(`${I18N}.messages.save-failed`);\n return false;\n }\n\n const codesText = codes.join('\\n');\n await this.layoutBuilder\n .create()\n .dialog<null>((dialog) => {\n dialog\n .setTitle(`${I18N}.recovery.codes-dialog.title`)\n .setSize('md')\n .setCloseButton(true)\n .setContext({ codesText })\n .content((layout) => {\n layout.flex((flex) => {\n flex\n .setDirection('column')\n .setGap('1rem')\n .customWidget('text-block-layout', {\n content: `${I18N}.recovery.codes-dialog.warning`,\n })\n .formField(`${I18N}.recovery.codes-dialog.fields.codes.title`, (field) => {\n field.path('codesText');\n field.readonly(true);\n field.largeTextBox({\n rows: Math.min(codes.length + 1, 12),\n });\n });\n });\n })\n .setActions((actions) => {\n actions.submit(`${I18N}.recovery.codes-dialog.actions.done`);\n })\n .onAction(async () => null);\n })\n .show();\n\n return true;\n }\n\n //#endregion\n\n //#region ----- Status & messaging -----\n\n private async loadStatus(): Promise<AXMGetTwoFactorStatusResult | null> {\n const result = await this.commandService.execute(\n AXMSecurityManagementServerCommands.GetTwoFactorStatus,\n {},\n );\n if (!result?.success) {\n await this.showErrorToast(this.resolveServerErrorKey(result?.message?.code));\n return null;\n }\n\n return (runtimeCommandPayloadData(result) as AXMGetTwoFactorStatusResult | undefined) ?? {\n enabled: false,\n enrolled: false,\n hasRecoveryCodes: false,\n unusedRecoveryCodeCount: 0,\n };\n }\n\n private successWithStatusInsights(enabled: boolean): AXPRuntimeCommandResult<void> {\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: TWO_FACTOR_SECTION_ID,\n insights: buildTwoFactorStatusInsights(enabled),\n },\n },\n };\n }\n\n private resolveServerErrorKey(code: string | undefined): string {\n if (code && TWO_FACTOR_ERROR_I18N[code]) {\n return TWO_FACTOR_ERROR_I18N[code];\n }\n\n return `${I18N}.messages.save-failed`;\n }\n\n private async showErrorToast(key: string): Promise<void> {\n const content = await this.translateService.translateAsync(key);\n this.toastService.show({ color: 'danger', content, timeOut: 4000 });\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;;;;;;;AA6BA;AAEA,MAAM,IAAI,GAAG,+CAA+C;AAE5D,MAAM,qBAAqB,GAA2B;AACpD,IAAA,CAAC,0BAA0B,CAAC,WAAW,GAAG,CAAA,EAAG,IAAI,CAAA,uBAAA,CAAyB;AAC1E,IAAA,CAAC,0BAA0B,CAAC,YAAY,GAAG,CAAA,EAAG,IAAI,CAAA,uBAAA,CAAyB;AAC3E,IAAA,CAAC,0BAA0B,CAAC,iBAAiB,GAAG,CAAA,EAAG,IAAI,CAAA,4BAAA,CAA8B;AACrF,IAAA,CAAC,0BAA0B,CAAC,aAAa,GAAG,CAAA,EAAG,IAAI,CAAA,wBAAA,CAA0B;AAC7E,IAAA,CAAC,0BAA0B,CAAC,cAAc,GAAG,CAAA,EAAG,IAAI,CAAA,yBAAA,CAA2B;AAC/E,IAAA,CAAC,0BAA0B,CAAC,UAAU,GAAG,CAAA,EAAG,IAAI,CAAA,qBAAA,CAAuB;AACvE,IAAA,CAAC,0BAA0B,CAAC,iBAAiB,GAAG,CAAA,EAAG,IAAI,CAAA,4BAAA,CAA8B;AACrF,IAAA,CAAC,0BAA0B,CAAC,WAAW,GAAG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AAA;AACF,aAAA;SACF;IACH;AAEQ,IAAA,qBAAqB,CAAC,IAAwB,EAAA;AACpD,QAAA,IAAI,IAAI,IAAI,qBAAqB,CAAC,IAAI,CAAC,EAAE;AACvC,YAAA,OAAO,qBAAqB,CAAC,IAAI,CAAC;QACpC;QAEA,OAAO,CAAA,EAAG,IAAI,CAAA,qBAAA,CAAuB;IACvC;IAEQ,MAAM,cAAc,CAAC,GAAW,EAAA;QACtC,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,GAAG,CAAC;AAC/D,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IACrE;8GApeW,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAzB,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,yBAAyB,cADZ,MAAM,EAAA,CAAA,CAAA;;2FACnB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBADrC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
1
+ {"version":3,"file":"acorex-platform-module-auth-client-manage-two-factor.command-b_Fnx3CM.mjs","sources":["../../../../libs/modules/auth/client/src/lib/commands/manage-two-factor.command.ts"],"sourcesContent":["import { AXDialogService } from '@acorex/components/dialog';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport {\n AXPLayoutBuilderService,\n resolveLayoutBuilderDialogResult,\n} from '@acorex-platform/framework-client/layout/builder';\nimport { AXPCommandService } from '@acorex-platform/framework-client/runtime';\nimport { AXPRuntimeCommandResult, runtimeCommandPayloadData } from '@acorex-platform/framework-shared/core';\nimport { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport {\n AXM_TWO_FACTOR_ERROR_CODES,\n AXMSecurityManagementServerCommands,\n type AXMConfirmTwoFactorEnrollmentResult,\n type AXMGenerateTwoFactorRecoveryCodesResult,\n type AXMGetTwoFactorStatusResult,\n type AXMStartTwoFactorEnrollmentResult,\n} from '@acorex-platform/module-security-management-client/contracts';\nimport { inject, Injectable } from '@angular/core';\n\nimport {\n PROFILE_SECTION_INSIGHTS_PATCH_METADATA_KEY,\n} from '../pages/account/profile-page/profile-password-insight.util';\nimport {\n TWO_FACTOR_SECTION_ID,\n buildTwoFactorStatusInsights,\n} from '../pages/account/profile-page/profile-two-factor-insight.util';\n\n//#region ----- Constants -----\n\nconst I18N = '@auth:profile-page.commands.manage-two-factor';\n\nconst TWO_FACTOR_ERROR_I18N: Record<string, string> = {\n [AXM_TWO_FACTOR_ERROR_CODES.NotSignedIn]: `${I18N}.messages.not-signed-in`,\n [AXM_TWO_FACTOR_ERROR_CODES.InvalidInput]: `${I18N}.messages.invalid-input`,\n [AXM_TWO_FACTOR_ERROR_CODES.IncorrectPassword]: `${I18N}.messages.incorrect-password`,\n [AXM_TWO_FACTOR_ERROR_CODES.IncorrectCode]: `${I18N}.messages.incorrect-code`,\n [AXM_TWO_FACTOR_ERROR_CODES.AlreadyEnabled]: `${I18N}.messages.already-enabled`,\n [AXM_TWO_FACTOR_ERROR_CODES.NotEnabled]: `${I18N}.messages.not-enabled`,\n [AXM_TWO_FACTOR_ERROR_CODES.EnrollmentExpired]: `${I18N}.messages.enrollment-expired`,\n [AXM_TWO_FACTOR_ERROR_CODES.RateLimited]: `${I18N}.messages.rate-limited`,\n [AXM_TWO_FACTOR_ERROR_CODES.InvalidConfiguration]: `${I18N}.messages.invalid-configuration`,\n [AXM_TWO_FACTOR_ERROR_CODES.ProofRequired]: `${I18N}.messages.proof-required`,\n};\n\n//#endregion\n\n//#region ----- Types -----\n\ntype TwoFactorProofForm = {\n password?: string;\n totpCode?: string;\n};\n\n//#endregion\n\n//#region ----- Helpers -----\n\n/** Groups Base32 secret in fours for Authenticator manual-entry UX (apps ignore spaces). */\nfunction formatTotpManualSecret(secretBase32: string): string {\n const cleaned = String(secretBase32 ?? '')\n .replace(/\\s+/g, '')\n .toUpperCase();\n return cleaned.replace(/(.{4})(?=.)/g, '$1 ');\n}\n\n//#endregion\n\n//#region ----- Manage two-factor command -----\n\n/** Opens profile dialogs to enroll, disable, or regenerate recovery codes for 2FA. */\n@Injectable({ providedIn: 'root' })\nexport class AXPManageTwoFactorCommand 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 dialogService = inject(AXDialogService);\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 if (!this.sessionService.user?.id) {\n await this.showErrorToast(`${I18N}.messages.not-signed-in`);\n return { success: false };\n }\n\n const status = await this.loadStatus();\n if (!status) {\n return { success: false };\n }\n\n // Prefer manage/disable whenever enrollment exists (even if setting briefly drifted).\n if (status.enabled || status.enrolled) {\n return this.runEnabledFlow(status);\n }\n\n return this.runEnrollmentFlow();\n }\n\n //#endregion\n\n //#region ----- Enrollment -----\n\n private async runEnrollmentFlow(): AXPCommandExecuteResultPromise<void> {\n const enrollment = await this.promptStartEnrollment();\n if (!enrollment) {\n return { success: false };\n }\n\n // Let the password dialog finish teardown before opening the QR dialog\n // (avoids RxJS ObjectUnsubscribedError on overlapping popup subjects).\n await this.waitForDialogTeardown();\n\n const confirmed = await this.promptConfirmEnrollment(enrollment);\n if (!confirmed) {\n return { success: false };\n }\n\n // Success feedback comes from the realtime security alert (avoid duplicate toasts).\n\n await this.waitForDialogTeardown();\n\n const generateCodes = await this.dialogService.confirm(\n await this.translateService.translateAsync(`${I18N}.recovery.offer-title`),\n await this.translateService.translateAsync(`${I18N}.recovery.offer-message`),\n 'primary',\n 'horizontal',\n );\n\n if (generateCodes.result) {\n await this.generateAndShowRecoveryCodes({ password: enrollment.password });\n }\n\n return this.successWithStatusInsights(true);\n }\n\n /**\n * Password re-auth + start enrollment in one dialog (same pattern as change-password).\n * Returns enrollment payload plus the password for optional recovery generation.\n */\n private async promptStartEnrollment(): Promise<\n (AXMStartTwoFactorEnrollmentResult & { password: string }) | null\n > {\n const result = await this.layoutBuilder\n .create()\n .dialog<(AXMStartTwoFactorEnrollmentResult & { password: string }) | null>((dialog) => {\n dialog\n .setTitle(`${I18N}.enable.password-dialog.title`)\n .setSize('sm')\n .setCloseButton(true)\n .setContext({ password: '' })\n .content((layout) => {\n layout.flex((flex) => {\n flex\n .setDirection('column')\n .setGap('1rem')\n .formField(`${I18N}.fields.password.title`, (field) => {\n field.setOptions({\n hint: `${I18N}.fields.password.hint`,\n hintDisplayMode: 'note',\n });\n field.path('password');\n field.passwordBox({\n revealToggle: true,\n placeholder: `${I18N}.fields.password.placeholder`,\n validations: [{ rule: 'required' }],\n });\n });\n });\n })\n .setActions((actions) => {\n actions.cancel('@general:actions.cancel.title');\n actions.submit(`${I18N}.actions.continue`);\n })\n .onAction(async (dialogRef) => {\n if (dialogRef.action() === 'cancel') {\n return null;\n }\n\n const form = dialogRef.context() as { password?: string };\n const password = String(form.password ?? '');\n if (!password) {\n throw new Error(`${I18N}.messages.incorrect-password`);\n }\n\n dialogRef.setLoading(true);\n try {\n const startResult = await this.commandService.execute(\n AXMSecurityManagementServerCommands.StartTwoFactorEnrollment,\n { password },\n );\n if (!startResult?.success) {\n throw new Error(this.resolveServerErrorKey(startResult?.message?.code));\n }\n\n const enrollment = runtimeCommandPayloadData(startResult) as\n | AXMStartTwoFactorEnrollmentResult\n | undefined;\n if (!enrollment?.enrollmentId || !enrollment.otpauthUri) {\n throw new Error(`${I18N}.messages.save-failed`);\n }\n\n // Do not call dialogRef.close() here — the layout-builder closes after onAction returns.\n // A second close throws ObjectUnsubscribedError and surfaces as \"object unsubscribed\".\n return { ...enrollment, password };\n } catch (error) {\n dialogRef.setLoading(false);\n throw error;\n }\n });\n })\n .show();\n\n return resolveLayoutBuilderDialogResult<AXMStartTwoFactorEnrollmentResult & { password: string }>(\n result,\n );\n }\n\n private async promptConfirmEnrollment(\n enrollment: AXMStartTwoFactorEnrollmentResult,\n ): Promise<boolean> {\n const result = await this.layoutBuilder\n .create()\n .dialog<boolean | null>((dialog) => {\n dialog\n .setTitle(`${I18N}.enable.confirm-dialog.title`)\n .setSize('md')\n .setCloseButton(true)\n .setContext({\n otpauthUri: enrollment.otpauthUri,\n // Authenticator apps expect Base32; spaced groups are easier to enter and widely accepted.\n secretBase32: formatTotpManualSecret(enrollment.secretBase32),\n code: '',\n })\n .content((layout) => {\n layout.flex((flex) => {\n flex\n .setDirection('column')\n .setGap('0.75rem')\n .setAlignItems('center')\n .customWidget('text-block-layout', {\n content: `${I18N}.enable.confirm-dialog.instructions`,\n })\n .customWidget('qrcode', {\n path: 'otpauthUri',\n size: 160,\n readonly: true,\n showContent: false,\n })\n .formField(`${I18N}.enable.confirm-dialog.fields.manual-secret.title`, (field) => {\n field.path('secretBase32');\n field.readonly(true);\n field.textBox({});\n })\n .formField(`${I18N}.enable.confirm-dialog.fields.code.title`, (field) => {\n field.path('code');\n field.textBox({\n placeholder: `${I18N}.enable.confirm-dialog.fields.code.placeholder`,\n validations: [{ rule: 'required' }],\n });\n });\n });\n })\n .setActions((actions) => {\n actions.cancel('@general:actions.cancel.title');\n actions.submit(`${I18N}.enable.confirm-dialog.actions.confirm`);\n })\n .onAction(async (dialogRef) => {\n if (dialogRef.action() === 'cancel') {\n return null;\n }\n\n const form = dialogRef.context() as { code?: string };\n const code = String(form.code ?? '').trim();\n if (!code) {\n throw new Error(`${I18N}.messages.incorrect-code`);\n }\n\n dialogRef.setLoading(true);\n try {\n const confirmResult = await this.commandService.execute(\n AXMSecurityManagementServerCommands.ConfirmTwoFactorEnrollment,\n { enrollmentId: enrollment.enrollmentId, code },\n );\n if (!confirmResult?.success) {\n throw new Error(this.resolveServerErrorKey(confirmResult?.message?.code));\n }\n\n const payload = runtimeCommandPayloadData(confirmResult) as\n | AXMConfirmTwoFactorEnrollmentResult\n | undefined;\n if (!payload?.enabled) {\n throw new Error(`${I18N}.messages.save-failed`);\n }\n\n return true;\n } catch (error) {\n dialogRef.setLoading(false);\n throw error;\n }\n });\n })\n .show();\n\n return resolveLayoutBuilderDialogResult<boolean>(result) === true;\n }\n\n //#endregion\n\n //#region ----- Enabled management -----\n\n private async runEnabledFlow(\n status: AXMGetTwoFactorStatusResult,\n ): AXPCommandExecuteResultPromise<void> {\n const choice = await this.dialogService.show({\n title: `${I18N}.manage.dialog.title`,\n content: await this.translateService.translateAsync(`${I18N}.manage.dialog.description`, {\n params: {\n recoveryCount: status.unusedRecoveryCodeCount ?? 0,\n },\n }),\n type: 'primary',\n orientation: 'vertical',\n buttons: [\n {\n name: 'regenerate',\n text: `${I18N}.manage.actions.regenerate-recovery`,\n color: 'primary',\n autofocus: true,\n },\n {\n name: 'disable',\n text: `${I18N}.manage.actions.disable`,\n color: 'danger',\n },\n {\n name: 'cancel',\n text: '@general:actions.cancel.title',\n color: 'default',\n },\n ],\n });\n\n if (choice?.name === 'disable') {\n const proof = await this.promptProof(`${I18N}.disable.dialog.title`);\n if (!proof) {\n return { success: false };\n }\n\n const disableResult = await this.commandService.execute(\n AXMSecurityManagementServerCommands.DisableTwoFactor,\n proof,\n );\n if (!disableResult?.success) {\n await this.showErrorToast(this.resolveServerErrorKey(disableResult?.message?.code));\n return { success: false };\n }\n\n // Success feedback comes from the realtime security alert (avoid duplicate toasts).\n return this.successWithStatusInsights(false);\n }\n\n if (choice?.name === 'regenerate') {\n const proof = await this.promptProof(`${I18N}.recovery.regenerate-dialog.title`);\n if (!proof) {\n return { success: false };\n }\n\n const shown = await this.generateAndShowRecoveryCodes(proof);\n if (!shown) {\n return { success: false };\n }\n\n return this.successWithStatusInsights(true);\n }\n\n return { success: false };\n }\n\n //#endregion\n\n //#region ----- Shared dialogs -----\n\n /** Yields so popup teardown can finish before opening another dialog. */\n private async waitForDialogTeardown(): Promise<void> {\n await new Promise<void>((resolve) => setTimeout(resolve, 50));\n }\n\n private async promptProof(titleKey: string): Promise<TwoFactorProofForm | null> {\n const result = await this.layoutBuilder\n .create()\n .dialog<TwoFactorProofForm | null>((dialog) => {\n dialog\n .setTitle(titleKey)\n .setSize('sm')\n .setCloseButton(true)\n .setContext({ password: '', totpCode: '' })\n .content((layout) => {\n layout.flex((flex) => {\n flex\n .setDirection('column')\n .setGap('1rem')\n .customWidget('text-block-layout', {\n content: `${I18N}.fields.proof.hint`,\n })\n .formField(`${I18N}.fields.password.title`, (field) => {\n field.path('password');\n field.passwordBox({\n revealToggle: true,\n placeholder: `${I18N}.fields.password.placeholder`,\n });\n })\n .formField(`${I18N}.fields.totp-code.title`, (field) => {\n field.path('totpCode');\n field.textBox({\n placeholder: `${I18N}.fields.totp-code.placeholder`,\n });\n });\n });\n })\n .setActions((actions) => {\n actions.cancel('@general:actions.cancel.title');\n actions.submit(`${I18N}.actions.continue`);\n })\n .onAction(async (dialogRef) => {\n if (dialogRef.action() === 'cancel') {\n return null;\n }\n\n const form = dialogRef.context() as TwoFactorProofForm;\n const password = String(form.password ?? '').trim();\n const totpCode = String(form.totpCode ?? '').trim();\n if (!password && !totpCode) {\n throw new Error(`${I18N}.messages.proof-required`);\n }\n\n return {\n ...(password ? { password } : {}),\n ...(totpCode ? { totpCode } : {}),\n };\n });\n })\n .show();\n\n return resolveLayoutBuilderDialogResult<TwoFactorProofForm>(result) ?? null;\n }\n\n private async generateAndShowRecoveryCodes(proof: TwoFactorProofForm): Promise<boolean> {\n const generateResult = await this.commandService.execute(\n AXMSecurityManagementServerCommands.GenerateTwoFactorRecoveryCodes,\n proof,\n );\n if (!generateResult?.success) {\n await this.showErrorToast(this.resolveServerErrorKey(generateResult?.message?.code));\n return false;\n }\n\n const payload = runtimeCommandPayloadData(generateResult) as\n | AXMGenerateTwoFactorRecoveryCodesResult\n | undefined;\n const codes = payload?.codes ?? [];\n if (!codes.length) {\n await this.showErrorToast(`${I18N}.messages.save-failed`);\n return false;\n }\n\n const codesText = codes.join('\\n');\n await this.layoutBuilder\n .create()\n .dialog<null>((dialog) => {\n dialog\n .setTitle(`${I18N}.recovery.codes-dialog.title`)\n .setSize('md')\n .setCloseButton(true)\n .setContext({ codesText })\n .content((layout) => {\n layout.flex((flex) => {\n flex\n .setDirection('column')\n .setGap('1rem')\n .customWidget('text-block-layout', {\n content: `${I18N}.recovery.codes-dialog.warning`,\n })\n .formField(`${I18N}.recovery.codes-dialog.fields.codes.title`, (field) => {\n field.path('codesText');\n field.readonly(true);\n field.largeTextBox({\n rows: Math.min(codes.length + 1, 12),\n });\n });\n });\n })\n .setActions((actions) => {\n actions.submit(`${I18N}.recovery.codes-dialog.actions.done`);\n })\n .onAction(async () => null);\n })\n .show();\n\n return true;\n }\n\n //#endregion\n\n //#region ----- Status & messaging -----\n\n private async loadStatus(): Promise<AXMGetTwoFactorStatusResult | null> {\n const result = await this.commandService.execute(\n AXMSecurityManagementServerCommands.GetTwoFactorStatus,\n {},\n );\n if (!result?.success) {\n await this.showErrorToast(this.resolveServerErrorKey(result?.message?.code));\n return null;\n }\n\n return (runtimeCommandPayloadData(result) as AXMGetTwoFactorStatusResult | undefined) ?? {\n enabled: false,\n enrolled: false,\n hasRecoveryCodes: false,\n unusedRecoveryCodeCount: 0,\n };\n }\n\n private successWithStatusInsights(enabled: boolean): AXPRuntimeCommandResult<void> {\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: TWO_FACTOR_SECTION_ID,\n insights: buildTwoFactorStatusInsights(enabled),\n },\n },\n };\n }\n\n private resolveServerErrorKey(code: string | undefined): string {\n if (code && TWO_FACTOR_ERROR_I18N[code]) {\n return TWO_FACTOR_ERROR_I18N[code];\n }\n\n return `${I18N}.messages.save-failed`;\n }\n\n private async showErrorToast(key: string): Promise<void> {\n const content = await this.translateService.translateAsync(key);\n this.toastService.show({ color: 'danger', content, timeOut: 4000 });\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;;;;;;;AA6BA;AAEA,MAAM,IAAI,GAAG,+CAA+C;AAE5D,MAAM,qBAAqB,GAA2B;AACpD,IAAA,CAAC,0BAA0B,CAAC,WAAW,GAAG,CAAA,EAAG,IAAI,CAAA,uBAAA,CAAyB;AAC1E,IAAA,CAAC,0BAA0B,CAAC,YAAY,GAAG,CAAA,EAAG,IAAI,CAAA,uBAAA,CAAyB;AAC3E,IAAA,CAAC,0BAA0B,CAAC,iBAAiB,GAAG,CAAA,EAAG,IAAI,CAAA,4BAAA,CAA8B;AACrF,IAAA,CAAC,0BAA0B,CAAC,aAAa,GAAG,CAAA,EAAG,IAAI,CAAA,wBAAA,CAA0B;AAC7E,IAAA,CAAC,0BAA0B,CAAC,cAAc,GAAG,CAAA,EAAG,IAAI,CAAA,yBAAA,CAA2B;AAC/E,IAAA,CAAC,0BAA0B,CAAC,UAAU,GAAG,CAAA,EAAG,IAAI,CAAA,qBAAA,CAAuB;AACvE,IAAA,CAAC,0BAA0B,CAAC,iBAAiB,GAAG,CAAA,EAAG,IAAI,CAAA,4BAAA,CAA8B;AACrF,IAAA,CAAC,0BAA0B,CAAC,WAAW,GAAG,CAAA,EAAG,IAAI,CAAA,sBAAA,CAAwB;AACzE,IAAA,CAAC,0BAA0B,CAAC,oBAAoB,GAAG,CAAA,EAAG,IAAI,CAAA,+BAAA,CAAiC;AAC3F,IAAA,CAAC,0BAA0B,CAAC,aAAa,GAAG,CAAA,EAAG,IAAI,CAAA,wBAAA,CAA0B;CAC9E;AAWD;AAEA;AA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ACvC;IAEQ,MAAM,cAAc,CAAC,GAAW,EAAA;QACtC,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,GAAG,CAAC;AAC/D,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IACrE;8GApeW,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAzB,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,yBAAyB,cADZ,MAAM,EAAA,CAAA,CAAA;;2FACnB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBADrC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
@@ -16,4 +16,4 @@ class AXMSecurityManagementModuleMenuProvider {
16
16
  }
17
17
 
18
18
  export { AXMSecurityManagementModuleMenuProvider };
19
- //# sourceMappingURL=acorex-platform-module-auth-client-menu.provider-Bz-kRip4.mjs.map
19
+ //# sourceMappingURL=acorex-platform-module-auth-client-menu.provider-BrnaQ1ed.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-auth-client-menu.provider-Bz-kRip4.mjs","sources":["../../../../libs/modules/auth/client/src/lib/menu.provider.ts"],"sourcesContent":["import { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPMenuProvider, AXPMenuProviderContext } from '@acorex-platform/framework-client/common';\nimport { inject } from '@angular/core';\nimport { firstValueFrom } from 'rxjs';\n\nexport class AXMSecurityManagementModuleMenuProvider implements AXPMenuProvider {\n private sessionService = inject(AXPSessionService);\n\n async provide(context: AXPMenuProviderContext): Promise<void> {\n const isAuthorized = await firstValueFrom(this.sessionService.isAuthorized$);\n if (!isAuthorized) {\n return;\n }\n // user:profile menu removed - profile actions are in header popover\n }\n}\n"],"names":[],"mappings":";;;;MAKa,uCAAuC,CAAA;AAApD,IAAA,WAAA,GAAA;AACU,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;IASpD;IAPE,MAAM,OAAO,CAAC,OAA+B,EAAA;QAC3C,MAAM,YAAY,GAAG,MAAM,cAAc,CAAC,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC;QAC5E,IAAI,CAAC,YAAY,EAAE;YACjB;QACF;;IAEF;AACD;;"}
1
+ {"version":3,"file":"acorex-platform-module-auth-client-menu.provider-BrnaQ1ed.mjs","sources":["../../../../libs/modules/auth/client/src/lib/menu.provider.ts"],"sourcesContent":["import { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPMenuProvider, AXPMenuProviderContext } from '@acorex-platform/framework-client/common';\nimport { inject } from '@angular/core';\nimport { firstValueFrom } from 'rxjs';\n\nexport class AXMSecurityManagementModuleMenuProvider implements AXPMenuProvider {\n private sessionService = inject(AXPSessionService);\n\n async provide(context: AXPMenuProviderContext): Promise<void> {\n const isAuthorized = await firstValueFrom(this.sessionService.isAuthorized$);\n if (!isAuthorized) {\n return;\n }\n // user:profile menu removed - profile actions are in header popover\n }\n}\n"],"names":[],"mappings":";;;;MAKa,uCAAuC,CAAA;AAApD,IAAA,WAAA,GAAA;AACU,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;IASpD;IAPE,MAAM,OAAO,CAAC,OAA+B,EAAA;QAC3C,MAAM,YAAY,GAAG,MAAM,cAAc,CAAC,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC;QAC5E,IAAI,CAAC,YAAY,EAAE;YACjB;QACF;;IAEF;AACD;;"}
@@ -98,4 +98,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
98
98
  }] });
99
99
 
100
100
  export { AXPOAuthCallbackComponent };
101
- //# sourceMappingURL=acorex-platform-module-auth-client-oauth-callback.component-DLrIDQXn.mjs.map
101
+ //# sourceMappingURL=acorex-platform-module-auth-client-oauth-callback.component-WEoRB-N-.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-auth-client-oauth-callback.component-DLrIDQXn.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/callback/oauth-callback.component.ts","../../../../libs/modules/auth/client/src/lib/pages/callback/oauth-callback.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPSessionService, resolvePlatformOAuthRedirectUri } from '@acorex-platform/framework-client/auth';\nimport { AXPHomePageService } from '@acorex-platform/framework-client/common';\nimport { AXPStateMessageComponent } from '@acorex-platform/framework-client/layout/components';\nimport { CommonModule } from '@angular/common';\nimport { Component, OnInit, inject, ChangeDetectionStrategy } from '@angular/core';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport { BehaviorSubject } from 'rxjs';\n@Component({\n selector: 'axp-oauth-callback',\n templateUrl: './oauth-callback.component.html',\n imports: [CommonModule, AXButtonModule, AXLoadingModule, AXTranslationModule, AXPStateMessageComponent],\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: true,\n})\nexport class AXPOAuthCallbackComponent implements OnInit {\n //#region ---- Services & Dependencies ----\n\n private sessionService = inject(AXPSessionService);\n private router = inject(Router);\n private route = inject(ActivatedRoute);\n private homePageService = inject(AXPHomePageService);\n\n //#endregion\n\n //#region ---- Properties ----\n\n protected isLoading$ = new BehaviorSubject<boolean>(true);\n protected error$ = new BehaviorSubject<string | null>(null);\n protected status$ = new BehaviorSubject<string>('Processing authorization...');\n private exchangeStarted = false;\n // Removed: @Input() flow\n\n //#endregion\n\n //#region ---- Lifecycle Methods ----\n\n async ngOnInit(): Promise<void> {\n if (this.exchangeStarted) {\n return;\n }\n this.exchangeStarted = true;\n\n try {\n const queryParams = this.route.snapshot.queryParams;\n const code = queryParams['code'];\n const error = queryParams['error'];\n // Removed: flowParam and its assignment\n if (error) {\n throw new Error(`OAuth error: ${error} - ${queryParams['error_description'] || 'Unknown error'}`);\n }\n if (!code) {\n throw new Error('No authorization code received from OAuth provider');\n }\n this.status$.next('Exchanging authorization code for tokens...');\n\n const redirectUri = resolvePlatformOAuthRedirectUri();\n // Strategy is resolved inside updateToken (session + pending OAuth key).\n await this.sessionService.updateToken({ code, redirectUri });\n this.status$.next('Authentication successful! Redirecting...');\n await this.navigateAfterSuccess();\n } catch (error) {\n console.error('OAuth callback error:', error);\n const message =\n error instanceof Error && error.message.trim()\n ? error.message\n : 'Authentication failed. Please try again.';\n this.error$.next(message);\n await this.sessionService.signout();\n this.isLoading$.next(false);\n } finally {\n this.isLoading$.next(false);\n }\n }\n\n //#endregion\n\n //#region ---- Navigation ----\n\n private async navigateAfterSuccess(): Promise<void> {\n // Use await with router.navigate to ensure navigation completes\n if (this.sessionService.tenant?.id == null) {\n await this.router.navigate(['/auth/account/tenant-chooser']);\n return;\n }\n if (this.sessionService.application?.id == null) {\n await this.router.navigate(['/auth/account/app-chooser']);\n return;\n }\n // Navigate to home page\n await this.homePageService.navigateTo();\n }\n\n //#endregion\n\n //#region ---- UI Handlers ----\n\n protected handleRetry(): void {\n this.router.navigate(['/auth/login']);\n }\n\n protected handleGoHome(): void {\n this.router.navigate(['/']);\n }\n\n //#endregion\n}\n","<ng-container *translate=\"let t\">\n <div class=\"h-full flex flex-col items-center justify-center p-8\">\n <div class=\"w-96 text-center\">\n <!-- Loading State -->\n @if (isLoading$ | async) {\n <axp-state-message\n mode=\"loading\"\n icon=\"fa-solid fa-spinner fa-spin\"\n [title]=\"(status$ | async) || '@auth:state-message.loading.title'\"\n [description]=\"'@auth:state-message.loading.description'\"\n >\n </axp-state-message>\n }\n\n <!-- Error State -->\n @if ((error$ | async) && !(isLoading$ | async)) {\n <axp-state-message\n mode=\"error\"\n icon=\"fa-solid fa-exclamation-triangle\"\n [title]=\"'@auth:state-message.error.title'\"\n [description]=\"(error$ | async) || '@auth:state-message.error.description'\"\n >\n <div slot=\"actions\" class=\"flex flex-col gap-2 sm:flex-row sm:justify-center\">\n <ax-button\n color=\"primary\"\n [text]=\"('@auth:startup-error.retry' | translate | async) ?? ''\"\n (onClick)=\"handleRetry()\"\n class=\"w-full sm:w-auto\"\n >\n </ax-button>\n <ax-button\n color=\"default\"\n [text]=\"('@general:errors.404.actions.go-home.title' | translate | async) ?? ''\"\n (onClick)=\"handleGoHome()\"\n class=\"w-full sm:w-auto\"\n >\n </ax-button>\n </div>\n </axp-state-message>\n }\n\n <!-- Success State (briefly shown before redirect) -->\n @if (!(isLoading$ | async) && !(error$ | async)) {\n <axp-state-message\n mode=\"success\"\n icon=\"fa-solid fa-check\"\n [title]=\"'@auth:state-message.success.title'\"\n [description]=\"'@auth:state-message.success.description'\"\n >\n </axp-state-message>\n }\n </div>\n </div>\n</ng-container>\n"],"names":["i2","i3"],"mappings":";;;;;;;;;;;;;;;MAiBa,yBAAyB,CAAA;AAPtC,IAAA,WAAA,GAAA;;AAUU,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACvB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC;AAC9B,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,kBAAkB,CAAC;;;AAM1C,QAAA,IAAA,CAAA,UAAU,GAAG,IAAI,eAAe,CAAU,IAAI,CAAC;AAC/C,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,eAAe,CAAgB,IAAI,CAAC;AACjD,QAAA,IAAA,CAAA,OAAO,GAAG,IAAI,eAAe,CAAS,6BAA6B,CAAC;QACtE,IAAA,CAAA,eAAe,GAAG,KAAK;AA4EhC,IAAA;;;;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auth-callback.component-WEoRB-N-.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/callback/oauth-callback.component.ts","../../../../libs/modules/auth/client/src/lib/pages/callback/oauth-callback.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPSessionService, resolvePlatformOAuthRedirectUri } from '@acorex-platform/framework-client/auth';\nimport { AXPHomePageService } from '@acorex-platform/framework-client/common';\nimport { AXPStateMessageComponent } from '@acorex-platform/framework-client/layout/components';\nimport { CommonModule } from '@angular/common';\nimport { Component, OnInit, inject, ChangeDetectionStrategy } from '@angular/core';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport { BehaviorSubject } from 'rxjs';\n@Component({\n selector: 'axp-oauth-callback',\n templateUrl: './oauth-callback.component.html',\n imports: [CommonModule, AXButtonModule, AXLoadingModule, AXTranslationModule, AXPStateMessageComponent],\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: true,\n})\nexport class AXPOAuthCallbackComponent implements OnInit {\n //#region ---- Services & Dependencies ----\n\n private sessionService = inject(AXPSessionService);\n private router = inject(Router);\n private route = inject(ActivatedRoute);\n private homePageService = inject(AXPHomePageService);\n\n //#endregion\n\n //#region ---- Properties ----\n\n protected isLoading$ = new BehaviorSubject<boolean>(true);\n protected error$ = new BehaviorSubject<string | null>(null);\n protected status$ = new BehaviorSubject<string>('Processing authorization...');\n private exchangeStarted = false;\n // Removed: @Input() flow\n\n //#endregion\n\n //#region ---- Lifecycle Methods ----\n\n async ngOnInit(): Promise<void> {\n if (this.exchangeStarted) {\n return;\n }\n this.exchangeStarted = true;\n\n try {\n const queryParams = this.route.snapshot.queryParams;\n const code = queryParams['code'];\n const error = queryParams['error'];\n // Removed: flowParam and its assignment\n if (error) {\n throw new Error(`OAuth error: ${error} - ${queryParams['error_description'] || 'Unknown error'}`);\n }\n if (!code) {\n throw new Error('No authorization code received from OAuth provider');\n }\n this.status$.next('Exchanging authorization code for tokens...');\n\n const redirectUri = resolvePlatformOAuthRedirectUri();\n // Strategy is resolved inside updateToken (session + pending OAuth key).\n await this.sessionService.updateToken({ code, redirectUri });\n this.status$.next('Authentication successful! Redirecting...');\n await this.navigateAfterSuccess();\n } catch (error) {\n console.error('OAuth callback error:', error);\n const message =\n error instanceof Error && error.message.trim()\n ? error.message\n : 'Authentication failed. Please try again.';\n this.error$.next(message);\n await this.sessionService.signout();\n this.isLoading$.next(false);\n } finally {\n this.isLoading$.next(false);\n }\n }\n\n //#endregion\n\n //#region ---- Navigation ----\n\n private async navigateAfterSuccess(): Promise<void> {\n // Use await with router.navigate to ensure navigation completes\n if (this.sessionService.tenant?.id == null) {\n await this.router.navigate(['/auth/account/tenant-chooser']);\n return;\n }\n if (this.sessionService.application?.id == null) {\n await this.router.navigate(['/auth/account/app-chooser']);\n return;\n }\n // Navigate to home page\n await this.homePageService.navigateTo();\n }\n\n //#endregion\n\n //#region ---- UI Handlers ----\n\n protected handleRetry(): void {\n this.router.navigate(['/auth/login']);\n }\n\n protected handleGoHome(): void {\n this.router.navigate(['/']);\n }\n\n //#endregion\n}\n","<ng-container *translate=\"let t\">\n <div class=\"h-full flex flex-col items-center justify-center p-8\">\n <div class=\"w-96 text-center\">\n <!-- Loading State -->\n @if (isLoading$ | async) {\n <axp-state-message\n mode=\"loading\"\n icon=\"fa-solid fa-spinner fa-spin\"\n [title]=\"(status$ | async) || '@auth:state-message.loading.title'\"\n [description]=\"'@auth:state-message.loading.description'\"\n >\n </axp-state-message>\n }\n\n <!-- Error State -->\n @if ((error$ | async) && !(isLoading$ | async)) {\n <axp-state-message\n mode=\"error\"\n icon=\"fa-solid fa-exclamation-triangle\"\n [title]=\"'@auth:state-message.error.title'\"\n [description]=\"(error$ | async) || '@auth:state-message.error.description'\"\n >\n <div slot=\"actions\" class=\"flex flex-col gap-2 sm:flex-row sm:justify-center\">\n <ax-button\n color=\"primary\"\n [text]=\"('@auth:startup-error.retry' | translate | async) ?? ''\"\n (onClick)=\"handleRetry()\"\n class=\"w-full sm:w-auto\"\n >\n </ax-button>\n <ax-button\n color=\"default\"\n [text]=\"('@general:errors.404.actions.go-home.title' | translate | async) ?? ''\"\n (onClick)=\"handleGoHome()\"\n class=\"w-full sm:w-auto\"\n >\n </ax-button>\n </div>\n </axp-state-message>\n }\n\n <!-- Success State (briefly shown before redirect) -->\n @if (!(isLoading$ | async) && !(error$ | async)) {\n <axp-state-message\n mode=\"success\"\n icon=\"fa-solid fa-check\"\n [title]=\"'@auth:state-message.success.title'\"\n [description]=\"'@auth:state-message.success.description'\"\n >\n </axp-state-message>\n }\n </div>\n </div>\n</ng-container>\n"],"names":["i2","i3"],"mappings":";;;;;;;;;;;;;;;MAiBa,yBAAyB,CAAA;AAPtC,IAAA,WAAA,GAAA;;AAUU,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACvB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC;AAC9B,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,kBAAkB,CAAC;;;AAM1C,QAAA,IAAA,CAAA,UAAU,GAAG,IAAI,eAAe,CAAU,IAAI,CAAC;AAC/C,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,eAAe,CAAgB,IAAI,CAAC;AACjD,QAAA,IAAA,CAAA,OAAO,GAAG,IAAI,eAAe,CAAS,6BAA6B,CAAC;QACtE,IAAA,CAAA,eAAe,GAAG,KAAK;AA4EhC,IAAA;;;;AArEC,IAAA,MAAM,QAAQ,GAAA;AACZ,QAAA,IAAI,IAAI,CAAC,eAAe,EAAE;YACxB;QACF;AACA,QAAA,IAAI,CAAC,eAAe,GAAG,IAAI;AAE3B,QAAA,IAAI;YACF,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,WAAW;AACn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AAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,eAAe,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,qBAAA,EAAA,QAAA,EAAA,aAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,wBAAwB,EAAA,QAAA,EAAA,mBAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,EAAA,OAAA,EAAA,aAAA,EAAA,aAAA,EAAA,mBAAA,EAAA,MAAA,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,CAAA,CAAA;;2FAI3F,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAPrC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,oBAAoB,WAErB,CAAC,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,mBAAmB,EAAE,wBAAwB,CAAC,EAAA,eAAA,EACtF,uBAAuB,CAAC,KAAK,cAClC,IAAI,EAAA,QAAA,EAAA,w9DAAA,EAAA;;;"}
@@ -22,7 +22,7 @@ import { CommonModule } from '@angular/common';
22
22
  import * as i1$1 from '@angular/forms';
23
23
  import { FormsModule } from '@angular/forms';
24
24
  import { AXP_AUTH_INACTIVE_SESSION_TERMINATION_OPTION_DEFINITIONS, AXPAuthSettings, isAuthInactiveSessionTerminationValue } from '@acorex-platform/module-auth-client/contracts';
25
- import { A as AXMUserDeviceSessionsService } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-CBRlR1xT.mjs';
25
+ import { A as AXMUserDeviceSessionsService } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-DnctDd1m.mjs';
26
26
 
27
27
  //#endregion
28
28
  //#region ----- Constants -----
@@ -220,7 +220,7 @@ class AXMUserSessionsComponent extends AXBasePageComponent {
220
220
  }
221
221
  }
222
222
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMUserSessionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
223
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXMUserSessionsComponent, isStandalone: true, selector: "axm-user-sessions", host: { classAttribute: "axm-user-sessions" }, usesInheritance: true, ngImport: i0, template: "<ax-content>\n <div class=\"axm-user-sessions__content flex flex-col gap-4 p-6 w-full min-w-0\">\n <!-- ----- This device (current session) ----- -->\n <p class=\"font-semibold text-base text-on-lightest text-start m-0\">\n {{ '@auth:sessions.this-device.title' | translate | async }}\n </p>\n <div class=\"axm-user-sessions__row\">\n <div class=\"axm-user-sessions__icon axm-user-sessions__icon--primary\">\n <i class=\"{{ getSessionIcon(activeSessionView()?.session) }}\"></i>\n </div>\n <!--->\n <!-- ----- Current session details when available ----- -->\n @if (activeSessionView(); as current) {\n <div class=\"flex min-w-0 flex-1 flex-col text-start\">\n <div class=\"font-medium text-base\">{{ current.title }}</div>\n @if (current.subtitle) {\n <div class=\"font-normal text-sm\">{{ current.subtitle }}</div>\n }\n <p class=\"axm-user-sessions__meta m-0 font-normal text-xs\">{{ current.metaLabel }}</p>\n </div>\n }\n </div>\n\n <!--->\n <!-- ----- Other sessions: terminate-all + device list ----- -->\n @if (items().length > 0) {\n <!-- ----- Terminate all other sessions (never current) ----- -->\n <div\n class=\"axm-user-sessions__row cursor-pointer\"\n role=\"button\"\n tabindex=\"0\"\n (click)=\"onTerminateAll()\"\n (keydown.enter)=\"onTerminateAll()\"\n >\n <div class=\"axm-user-sessions__icon axm-user-sessions__icon--danger\">\n <i class=\"ax-icon ax-icon-clear\"></i>\n </div>\n <div class=\"flex min-w-0 flex-1 flex-col text-start\">\n <div class=\"font-medium text-base\">\n {{ '@auth:sessions.terminate-all.title' | translate | async }}\n </div>\n <p class=\"axm-user-sessions__meta m-0 font-normal text-sm\">\n {{ '@auth:sessions.terminate-all.description' | translate | async }}\n </p>\n </div>\n </div>\n\n <!-- ----- Other active devices ----- -->\n <p class=\"font-semibold text-base text-on-lightest text-start m-0\">\n {{ '@auth:sessions.active-devices.title' | translate | async }}\n </p>\n @for (item of items(); track item.id) {\n <div class=\"axm-user-sessions__row\">\n <div class=\"axm-user-sessions__icon\">\n <i class=\"{{ item.icon }}\"></i>\n </div>\n <div class=\"flex min-w-0 flex-1 flex-col text-start\">\n <div class=\"font-medium text-base\">{{ item.title }}</div>\n @if (item.subtitle) {\n <div class=\"font-normal text-sm\">{{ item.subtitle }}</div>\n }\n <p class=\"axm-user-sessions__meta m-0 font-normal text-xs\">{{ item.metaLabel }}</p>\n </div>\n <ax-button\n class=\"axm-user-sessions__action\"\n look=\"blank\"\n color=\"danger\"\n [attr.aria-label]=\"('@general:actions.remove.title' | translate | async) ?? ''\"\n (onClick)=\"onTerminate(item.id)\"\n >\n <ax-icon icon=\"fa-light fa-xmark\"></ax-icon>\n </ax-button>\n </div>\n }\n }\n </div>\n</ax-content>\n<ax-footer>\n <ax-suffix>\n <div class=\"axm-user-sessions__footer flex w-full min-w-0 flex-col gap-1 px-4 py-2\">\n <p class=\"m-0 text-start font-medium text-base text-danger-500\">\n {{ '@auth:sessions.terminate-old.title' | translate | async }}\n </p>\n <div class=\"axm-user-sessions__footer-setting\">\n <div class=\"axm-user-sessions__footer-label font-normal text-base text-on-lightest text-start\">\n {{ '@auth:sessions.terminate-old.inactive-for' | translate | async }}\n </div>\n <div class=\"axm-user-sessions__footer-select\">\n <ax-select-box\n [ngModel]=\"expireTime()\"\n (onValueChanged)=\"onChangeSessionExpireTime($event)\"\n [dataSource]=\"dataSource\"\n textField=\"name\"\n valueField=\"id\"\n [placeholder]=\"('@auth:sessions.terminate-old.placeholder' | translate | async) ?? ''\"\n >\n </ax-select-box>\n </div>\n </div>\n </div>\n </ax-suffix>\n</ax-footer>\n", styles: ["@layer properties;.axm-user-sessions__content,.axm-user-sessions__footer{box-sizing:border-box}.axm-user-sessions__row{display:flex;width:100%;min-width:0px;align-items:center;gap:calc(var(--spacing, .25rem) * 3);border-radius:var(--radius-lg, .5rem);border-style:var(--tw-border-style);border-width:1px;border-color:rgba(var(--ax-sys-color-lightest-surface));background-color:rgba(var(--ax-sys-color-lightest-surface));padding:calc(var(--spacing, .25rem) * 3);color:rgba(var(--ax-sys-color-on-lightest-surface))}.axm-user-sessions__icon{display:grid;width:calc(var(--spacing, .25rem) * 12);height:calc(var(--spacing, .25rem) * 12);flex-shrink:0;place-items:center;border-radius:var(--radius-lg, .5rem);border-style:var(--tw-border-style);border-width:1px}.axm-user-sessions__icon--primary{border-color:rgba(var(--ax-sys-color-primary-200));background-color:rgba(var(--ax-sys-color-primary-50));color:rgba(var(--ax-sys-color-primary-500))}.axm-user-sessions__icon--danger{border-color:rgba(var(--ax-sys-color-danger-200));background-color:rgba(var(--ax-sys-color-danger-50));color:rgba(var(--ax-sys-color-danger-500))}.axm-user-sessions__icon i{margin:0;font-size:var(--text-xl, 1.25rem);line-height:var(--tw-leading, var(--text-xl--line-height, calc(1.75 / 1.25)));--tw-leading: 1;line-height:1}.axm-user-sessions__meta{color:rgb(var(--ax-sys-color-on-lighter-surface))}.axm-user-sessions__action{pointer-events:auto;position:relative;z-index:10;flex-shrink:0;cursor:pointer}.axm-user-sessions__footer-setting{display:flex;width:100%;min-width:0px;align-items:center;gap:calc(var(--spacing, .25rem) * 3)}.axm-user-sessions__footer-label{flex-shrink:0}.axm-user-sessions__footer-select{margin-inline-start:auto;min-width:calc(var(--spacing, .25rem) * 48);flex:0 1 18rem}@media(max-width:640px){.axm-user-sessions__footer-setting{flex-wrap:wrap}.axm-user-sessions__footer-select{margin-inline-start:0px;max-width:none;flex:1 1 100%}}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-leading{syntax: \"*\"; inherits: false;}@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-leading: initial}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXFormatModule }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "component", type: i4.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "disabledField", "textTemplate", "selectedItems", "isItemTruncated", "showItemTooltip", "itemHeight", "maxVisibleItems", "dataSource", "minRecordsForSearch", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth", "dropdownAnchor", "searchBoxAutoFocus"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed", "onItemSelected", "onItemClick"] }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "ngmodule", type: AXPopoverModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }, { kind: "pipe", type: i5$1.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
223
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXMUserSessionsComponent, isStandalone: true, selector: "axm-user-sessions", host: { classAttribute: "axm-user-sessions" }, usesInheritance: true, ngImport: i0, template: "<ax-content>\n <div class=\"axm-user-sessions__content flex flex-col gap-4 p-6 w-full min-w-0\">\n <!-- ----- This device (current session) ----- -->\n <p class=\"font-semibold text-base text-on-lightest text-start m-0\">\n {{ '@auth:sessions.this-device.title' | translate | async }}\n </p>\n <div class=\"axm-user-sessions__row\">\n <div class=\"axm-user-sessions__icon axm-user-sessions__icon--primary\">\n <i class=\"{{ getSessionIcon(activeSessionView()?.session) }}\"></i>\n </div>\n <!--->\n <!-- ----- Current session details when available ----- -->\n @if (activeSessionView(); as current) {\n <div class=\"flex min-w-0 flex-1 flex-col text-start\">\n <div class=\"font-medium text-base\">{{ current.title }}</div>\n @if (current.subtitle) {\n <div class=\"font-normal text-sm\">{{ current.subtitle }}</div>\n }\n <p class=\"axm-user-sessions__meta m-0 font-normal text-xs\">{{ current.metaLabel }}</p>\n </div>\n }\n </div>\n\n <!--->\n <!-- ----- Other sessions: terminate-all + device list ----- -->\n @if (items().length > 0) {\n <!-- ----- Terminate all other sessions (never current) ----- -->\n <div\n class=\"axm-user-sessions__row cursor-pointer\"\n role=\"button\"\n tabindex=\"0\"\n (click)=\"onTerminateAll()\"\n (keydown.enter)=\"onTerminateAll()\"\n >\n <div class=\"axm-user-sessions__icon axm-user-sessions__icon--danger\">\n <i class=\"ax-icon ax-icon-clear\"></i>\n </div>\n <div class=\"flex min-w-0 flex-1 flex-col text-start\">\n <div class=\"font-medium text-base\">\n {{ '@auth:sessions.terminate-all.title' | translate | async }}\n </div>\n <p class=\"axm-user-sessions__meta m-0 font-normal text-sm\">\n {{ '@auth:sessions.terminate-all.description' | translate | async }}\n </p>\n </div>\n </div>\n\n <!-- ----- Other active devices ----- -->\n <p class=\"font-semibold text-base text-on-lightest text-start m-0\">\n {{ '@auth:sessions.active-devices.title' | translate | async }}\n </p>\n @for (item of items(); track item.id) {\n <div class=\"axm-user-sessions__row\">\n <div class=\"axm-user-sessions__icon\">\n <i class=\"{{ item.icon }}\"></i>\n </div>\n <div class=\"flex min-w-0 flex-1 flex-col text-start\">\n <div class=\"font-medium text-base\">{{ item.title }}</div>\n @if (item.subtitle) {\n <div class=\"font-normal text-sm\">{{ item.subtitle }}</div>\n }\n <p class=\"axm-user-sessions__meta m-0 font-normal text-xs\">{{ item.metaLabel }}</p>\n </div>\n <ax-button\n class=\"axm-user-sessions__action\"\n look=\"blank\"\n color=\"danger\"\n [attr.aria-label]=\"('@general:actions.remove.title' | translate | async) ?? ''\"\n (onClick)=\"onTerminate(item.id)\"\n >\n <ax-icon icon=\"fa-light fa-xmark\"></ax-icon>\n </ax-button>\n </div>\n }\n }\n </div>\n</ax-content>\n<ax-footer>\n <ax-suffix>\n <div class=\"axm-user-sessions__footer flex w-full min-w-0 flex-col gap-1 px-4 py-2\">\n <p class=\"m-0 text-start font-medium text-base text-danger-500\">\n {{ '@auth:sessions.terminate-old.title' | translate | async }}\n </p>\n <div class=\"axm-user-sessions__footer-setting\">\n <div class=\"axm-user-sessions__footer-label font-normal text-base text-on-lightest text-start\">\n {{ '@auth:sessions.terminate-old.inactive-for' | translate | async }}\n </div>\n <div class=\"axm-user-sessions__footer-select\">\n <ax-select-box\n [ngModel]=\"expireTime()\"\n (onValueChanged)=\"onChangeSessionExpireTime($event)\"\n [dataSource]=\"dataSource\"\n textField=\"name\"\n valueField=\"id\"\n [placeholder]=\"('@auth:sessions.terminate-old.placeholder' | translate | async) ?? ''\"\n >\n </ax-select-box>\n </div>\n </div>\n </div>\n </ax-suffix>\n</ax-footer>\n", styles: ["@layer properties;.axm-user-sessions__content,.axm-user-sessions__footer{box-sizing:border-box}.axm-user-sessions__row{display:flex;width:100%;min-width:0px;align-items:center;gap:calc(var(--spacing, .25rem) * 3);border-radius:var(--radius-lg, .5rem);border-style:var(--tw-border-style);border-width:1px;border-color:rgba(var(--ax-sys-color-lightest-surface));background-color:rgba(var(--ax-sys-color-lightest-surface));padding:calc(var(--spacing, .25rem) * 3);color:rgba(var(--ax-sys-color-on-lightest-surface))}.axm-user-sessions__icon{display:grid;width:calc(var(--spacing, .25rem) * 12);height:calc(var(--spacing, .25rem) * 12);flex-shrink:0;place-items:center;border-radius:var(--radius-lg, .5rem);border-style:var(--tw-border-style);border-width:1px}.axm-user-sessions__icon--primary{border-color:rgba(var(--ax-sys-color-primary-200));background-color:rgba(var(--ax-sys-color-primary-50));color:rgba(var(--ax-sys-color-primary-500))}.axm-user-sessions__icon--danger{border-color:rgba(var(--ax-sys-color-danger-200));background-color:rgba(var(--ax-sys-color-danger-50));color:rgba(var(--ax-sys-color-danger-500))}.axm-user-sessions__icon i{margin:0;font-size:var(--text-xl, 1.25rem);line-height:var(--tw-leading, var(--text-xl--line-height, calc(1.75 / 1.25)));--tw-leading: 1;line-height:1}.axm-user-sessions__meta{color:rgb(var(--ax-sys-color-on-lighter-surface))}.axm-user-sessions__action{pointer-events:auto;position:relative;z-index:10;flex-shrink:0;cursor:pointer}.axm-user-sessions__footer-setting{display:flex;width:100%;min-width:0px;align-items:center;gap:calc(var(--spacing, .25rem) * 3)}.axm-user-sessions__footer-label{flex-shrink:0}.axm-user-sessions__footer-select{margin-inline-start:auto;min-width:calc(var(--spacing, .25rem) * 48);flex:0 1 18rem}@media(max-width:640px){.axm-user-sessions__footer-setting{flex-wrap:wrap}.axm-user-sessions__footer-select{margin-inline-start:0px;max-width:none;flex:1 1 100%}}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-leading{syntax: \"*\"; inherits: false;}@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-leading: initial}}}\n/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXFormatModule }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "component", type: i4.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "disabledField", "textTemplate", "selectedItems", "isItemTruncated", "showItemTooltip", "itemHeight", "maxVisibleItems", "dataSource", "minRecordsForSearch", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth", "dropdownAnchor", "searchBoxAutoFocus"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed", "onItemSelected", "onItemClick"] }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "ngmodule", type: AXPopoverModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }, { kind: "pipe", type: i5$1.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
224
224
  }
225
225
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMUserSessionsComponent, decorators: [{
226
226
  type: Component,
@@ -234,7 +234,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
234
234
  AXDropdownModule,
235
235
  AXPopoverModule,
236
236
  AXTranslationModule,
237
- ], template: "<ax-content>\n <div class=\"axm-user-sessions__content flex flex-col gap-4 p-6 w-full min-w-0\">\n <!-- ----- This device (current session) ----- -->\n <p class=\"font-semibold text-base text-on-lightest text-start m-0\">\n {{ '@auth:sessions.this-device.title' | translate | async }}\n </p>\n <div class=\"axm-user-sessions__row\">\n <div class=\"axm-user-sessions__icon axm-user-sessions__icon--primary\">\n <i class=\"{{ getSessionIcon(activeSessionView()?.session) }}\"></i>\n </div>\n <!--->\n <!-- ----- Current session details when available ----- -->\n @if (activeSessionView(); as current) {\n <div class=\"flex min-w-0 flex-1 flex-col text-start\">\n <div class=\"font-medium text-base\">{{ current.title }}</div>\n @if (current.subtitle) {\n <div class=\"font-normal text-sm\">{{ current.subtitle }}</div>\n }\n <p class=\"axm-user-sessions__meta m-0 font-normal text-xs\">{{ current.metaLabel }}</p>\n </div>\n }\n </div>\n\n <!--->\n <!-- ----- Other sessions: terminate-all + device list ----- -->\n @if (items().length > 0) {\n <!-- ----- Terminate all other sessions (never current) ----- -->\n <div\n class=\"axm-user-sessions__row cursor-pointer\"\n role=\"button\"\n tabindex=\"0\"\n (click)=\"onTerminateAll()\"\n (keydown.enter)=\"onTerminateAll()\"\n >\n <div class=\"axm-user-sessions__icon axm-user-sessions__icon--danger\">\n <i class=\"ax-icon ax-icon-clear\"></i>\n </div>\n <div class=\"flex min-w-0 flex-1 flex-col text-start\">\n <div class=\"font-medium text-base\">\n {{ '@auth:sessions.terminate-all.title' | translate | async }}\n </div>\n <p class=\"axm-user-sessions__meta m-0 font-normal text-sm\">\n {{ '@auth:sessions.terminate-all.description' | translate | async }}\n </p>\n </div>\n </div>\n\n <!-- ----- Other active devices ----- -->\n <p class=\"font-semibold text-base text-on-lightest text-start m-0\">\n {{ '@auth:sessions.active-devices.title' | translate | async }}\n </p>\n @for (item of items(); track item.id) {\n <div class=\"axm-user-sessions__row\">\n <div class=\"axm-user-sessions__icon\">\n <i class=\"{{ item.icon }}\"></i>\n </div>\n <div class=\"flex min-w-0 flex-1 flex-col text-start\">\n <div class=\"font-medium text-base\">{{ item.title }}</div>\n @if (item.subtitle) {\n <div class=\"font-normal text-sm\">{{ item.subtitle }}</div>\n }\n <p class=\"axm-user-sessions__meta m-0 font-normal text-xs\">{{ item.metaLabel }}</p>\n </div>\n <ax-button\n class=\"axm-user-sessions__action\"\n look=\"blank\"\n color=\"danger\"\n [attr.aria-label]=\"('@general:actions.remove.title' | translate | async) ?? ''\"\n (onClick)=\"onTerminate(item.id)\"\n >\n <ax-icon icon=\"fa-light fa-xmark\"></ax-icon>\n </ax-button>\n </div>\n }\n }\n </div>\n</ax-content>\n<ax-footer>\n <ax-suffix>\n <div class=\"axm-user-sessions__footer flex w-full min-w-0 flex-col gap-1 px-4 py-2\">\n <p class=\"m-0 text-start font-medium text-base text-danger-500\">\n {{ '@auth:sessions.terminate-old.title' | translate | async }}\n </p>\n <div class=\"axm-user-sessions__footer-setting\">\n <div class=\"axm-user-sessions__footer-label font-normal text-base text-on-lightest text-start\">\n {{ '@auth:sessions.terminate-old.inactive-for' | translate | async }}\n </div>\n <div class=\"axm-user-sessions__footer-select\">\n <ax-select-box\n [ngModel]=\"expireTime()\"\n (onValueChanged)=\"onChangeSessionExpireTime($event)\"\n [dataSource]=\"dataSource\"\n textField=\"name\"\n valueField=\"id\"\n [placeholder]=\"('@auth:sessions.terminate-old.placeholder' | translate | async) ?? ''\"\n >\n </ax-select-box>\n </div>\n </div>\n </div>\n </ax-suffix>\n</ax-footer>\n", styles: ["@layer properties;.axm-user-sessions__content,.axm-user-sessions__footer{box-sizing:border-box}.axm-user-sessions__row{display:flex;width:100%;min-width:0px;align-items:center;gap:calc(var(--spacing, .25rem) * 3);border-radius:var(--radius-lg, .5rem);border-style:var(--tw-border-style);border-width:1px;border-color:rgba(var(--ax-sys-color-lightest-surface));background-color:rgba(var(--ax-sys-color-lightest-surface));padding:calc(var(--spacing, .25rem) * 3);color:rgba(var(--ax-sys-color-on-lightest-surface))}.axm-user-sessions__icon{display:grid;width:calc(var(--spacing, .25rem) * 12);height:calc(var(--spacing, .25rem) * 12);flex-shrink:0;place-items:center;border-radius:var(--radius-lg, .5rem);border-style:var(--tw-border-style);border-width:1px}.axm-user-sessions__icon--primary{border-color:rgba(var(--ax-sys-color-primary-200));background-color:rgba(var(--ax-sys-color-primary-50));color:rgba(var(--ax-sys-color-primary-500))}.axm-user-sessions__icon--danger{border-color:rgba(var(--ax-sys-color-danger-200));background-color:rgba(var(--ax-sys-color-danger-50));color:rgba(var(--ax-sys-color-danger-500))}.axm-user-sessions__icon i{margin:0;font-size:var(--text-xl, 1.25rem);line-height:var(--tw-leading, var(--text-xl--line-height, calc(1.75 / 1.25)));--tw-leading: 1;line-height:1}.axm-user-sessions__meta{color:rgb(var(--ax-sys-color-on-lighter-surface))}.axm-user-sessions__action{pointer-events:auto;position:relative;z-index:10;flex-shrink:0;cursor:pointer}.axm-user-sessions__footer-setting{display:flex;width:100%;min-width:0px;align-items:center;gap:calc(var(--spacing, .25rem) * 3)}.axm-user-sessions__footer-label{flex-shrink:0}.axm-user-sessions__footer-select{margin-inline-start:auto;min-width:calc(var(--spacing, .25rem) * 48);flex:0 1 18rem}@media(max-width:640px){.axm-user-sessions__footer-setting{flex-wrap:wrap}.axm-user-sessions__footer-select{margin-inline-start:0px;max-width:none;flex:1 1 100%}}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-leading{syntax: \"*\"; inherits: false;}@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-leading: initial}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
237
+ ], template: "<ax-content>\n <div class=\"axm-user-sessions__content flex flex-col gap-4 p-6 w-full min-w-0\">\n <!-- ----- This device (current session) ----- -->\n <p class=\"font-semibold text-base text-on-lightest text-start m-0\">\n {{ '@auth:sessions.this-device.title' | translate | async }}\n </p>\n <div class=\"axm-user-sessions__row\">\n <div class=\"axm-user-sessions__icon axm-user-sessions__icon--primary\">\n <i class=\"{{ getSessionIcon(activeSessionView()?.session) }}\"></i>\n </div>\n <!--->\n <!-- ----- Current session details when available ----- -->\n @if (activeSessionView(); as current) {\n <div class=\"flex min-w-0 flex-1 flex-col text-start\">\n <div class=\"font-medium text-base\">{{ current.title }}</div>\n @if (current.subtitle) {\n <div class=\"font-normal text-sm\">{{ current.subtitle }}</div>\n }\n <p class=\"axm-user-sessions__meta m-0 font-normal text-xs\">{{ current.metaLabel }}</p>\n </div>\n }\n </div>\n\n <!--->\n <!-- ----- Other sessions: terminate-all + device list ----- -->\n @if (items().length > 0) {\n <!-- ----- Terminate all other sessions (never current) ----- -->\n <div\n class=\"axm-user-sessions__row cursor-pointer\"\n role=\"button\"\n tabindex=\"0\"\n (click)=\"onTerminateAll()\"\n (keydown.enter)=\"onTerminateAll()\"\n >\n <div class=\"axm-user-sessions__icon axm-user-sessions__icon--danger\">\n <i class=\"ax-icon ax-icon-clear\"></i>\n </div>\n <div class=\"flex min-w-0 flex-1 flex-col text-start\">\n <div class=\"font-medium text-base\">\n {{ '@auth:sessions.terminate-all.title' | translate | async }}\n </div>\n <p class=\"axm-user-sessions__meta m-0 font-normal text-sm\">\n {{ '@auth:sessions.terminate-all.description' | translate | async }}\n </p>\n </div>\n </div>\n\n <!-- ----- Other active devices ----- -->\n <p class=\"font-semibold text-base text-on-lightest text-start m-0\">\n {{ '@auth:sessions.active-devices.title' | translate | async }}\n </p>\n @for (item of items(); track item.id) {\n <div class=\"axm-user-sessions__row\">\n <div class=\"axm-user-sessions__icon\">\n <i class=\"{{ item.icon }}\"></i>\n </div>\n <div class=\"flex min-w-0 flex-1 flex-col text-start\">\n <div class=\"font-medium text-base\">{{ item.title }}</div>\n @if (item.subtitle) {\n <div class=\"font-normal text-sm\">{{ item.subtitle }}</div>\n }\n <p class=\"axm-user-sessions__meta m-0 font-normal text-xs\">{{ item.metaLabel }}</p>\n </div>\n <ax-button\n class=\"axm-user-sessions__action\"\n look=\"blank\"\n color=\"danger\"\n [attr.aria-label]=\"('@general:actions.remove.title' | translate | async) ?? ''\"\n (onClick)=\"onTerminate(item.id)\"\n >\n <ax-icon icon=\"fa-light fa-xmark\"></ax-icon>\n </ax-button>\n </div>\n }\n }\n </div>\n</ax-content>\n<ax-footer>\n <ax-suffix>\n <div class=\"axm-user-sessions__footer flex w-full min-w-0 flex-col gap-1 px-4 py-2\">\n <p class=\"m-0 text-start font-medium text-base text-danger-500\">\n {{ '@auth:sessions.terminate-old.title' | translate | async }}\n </p>\n <div class=\"axm-user-sessions__footer-setting\">\n <div class=\"axm-user-sessions__footer-label font-normal text-base text-on-lightest text-start\">\n {{ '@auth:sessions.terminate-old.inactive-for' | translate | async }}\n </div>\n <div class=\"axm-user-sessions__footer-select\">\n <ax-select-box\n [ngModel]=\"expireTime()\"\n (onValueChanged)=\"onChangeSessionExpireTime($event)\"\n [dataSource]=\"dataSource\"\n textField=\"name\"\n valueField=\"id\"\n [placeholder]=\"('@auth:sessions.terminate-old.placeholder' | translate | async) ?? ''\"\n >\n </ax-select-box>\n </div>\n </div>\n </div>\n </ax-suffix>\n</ax-footer>\n", styles: ["@layer properties;.axm-user-sessions__content,.axm-user-sessions__footer{box-sizing:border-box}.axm-user-sessions__row{display:flex;width:100%;min-width:0px;align-items:center;gap:calc(var(--spacing, .25rem) * 3);border-radius:var(--radius-lg, .5rem);border-style:var(--tw-border-style);border-width:1px;border-color:rgba(var(--ax-sys-color-lightest-surface));background-color:rgba(var(--ax-sys-color-lightest-surface));padding:calc(var(--spacing, .25rem) * 3);color:rgba(var(--ax-sys-color-on-lightest-surface))}.axm-user-sessions__icon{display:grid;width:calc(var(--spacing, .25rem) * 12);height:calc(var(--spacing, .25rem) * 12);flex-shrink:0;place-items:center;border-radius:var(--radius-lg, .5rem);border-style:var(--tw-border-style);border-width:1px}.axm-user-sessions__icon--primary{border-color:rgba(var(--ax-sys-color-primary-200));background-color:rgba(var(--ax-sys-color-primary-50));color:rgba(var(--ax-sys-color-primary-500))}.axm-user-sessions__icon--danger{border-color:rgba(var(--ax-sys-color-danger-200));background-color:rgba(var(--ax-sys-color-danger-50));color:rgba(var(--ax-sys-color-danger-500))}.axm-user-sessions__icon i{margin:0;font-size:var(--text-xl, 1.25rem);line-height:var(--tw-leading, var(--text-xl--line-height, calc(1.75 / 1.25)));--tw-leading: 1;line-height:1}.axm-user-sessions__meta{color:rgb(var(--ax-sys-color-on-lighter-surface))}.axm-user-sessions__action{pointer-events:auto;position:relative;z-index:10;flex-shrink:0;cursor:pointer}.axm-user-sessions__footer-setting{display:flex;width:100%;min-width:0px;align-items:center;gap:calc(var(--spacing, .25rem) * 3)}.axm-user-sessions__footer-label{flex-shrink:0}.axm-user-sessions__footer-select{margin-inline-start:auto;min-width:calc(var(--spacing, .25rem) * 48);flex:0 1 18rem}@media(max-width:640px){.axm-user-sessions__footer-setting{flex-wrap:wrap}.axm-user-sessions__footer-select{margin-inline-start:0px;max-width:none;flex:1 1 100%}}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-leading{syntax: \"*\"; inherits: false;}@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-leading: initial}}}\n/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */\n"] }]
238
238
  }], ctorParameters: () => [] });
239
239
 
240
240
  //#region ---- Open sessions command ----
@@ -271,4 +271,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
271
271
  }] });
272
272
 
273
273
  export { AXPOpenSessionsCommand };
274
- //# sourceMappingURL=acorex-platform-module-auth-client-open-sessions.command-ZG33hlfh.mjs.map
274
+ //# sourceMappingURL=acorex-platform-module-auth-client-open-sessions.command-yVv0xHKN.mjs.map