@acorex-platform/module-auth-client 1.0.2 → 2.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/fesm2022/{acorex-platform-module-auth-client-accept-invitation.component-Bq49K_8F.mjs → acorex-platform-module-auth-client-accept-invitation.component-DJ9xVuLR.mjs} +3 -3
  2. package/fesm2022/{acorex-platform-module-auth-client-accept-invitation.component-Bq49K_8F.mjs.map → acorex-platform-module-auth-client-accept-invitation.component-DJ9xVuLR.mjs.map} +1 -1
  3. package/fesm2022/{acorex-platform-module-auth-client-acorex-platform-module-auth-client-CBRlR1xT.mjs → acorex-platform-module-auth-client-acorex-platform-module-auth-client-DnctDd1m.mjs} +92 -72
  4. package/fesm2022/acorex-platform-module-auth-client-acorex-platform-module-auth-client-DnctDd1m.mjs.map +1 -0
  5. package/fesm2022/{acorex-platform-module-auth-client-app-chooser.component-DpGdObrH.mjs → acorex-platform-module-auth-client-app-chooser.component-BMId7M51.mjs} +4 -4
  6. package/fesm2022/{acorex-platform-module-auth-client-app-chooser.component-DpGdObrH.mjs.map → acorex-platform-module-auth-client-app-chooser.component-BMId7M51.mjs.map} +1 -1
  7. package/fesm2022/{acorex-platform-module-auth-client-blank.layout-xSXPWxyw.mjs → acorex-platform-module-auth-client-blank.layout-Br0_-TxC.mjs} +1 -1
  8. package/fesm2022/{acorex-platform-module-auth-client-blank.layout-xSXPWxyw.mjs.map → acorex-platform-module-auth-client-blank.layout-Br0_-TxC.mjs.map} +1 -1
  9. package/fesm2022/{acorex-platform-module-auth-client-change-password.command-Bt4yOMMt.mjs → acorex-platform-module-auth-client-change-password.command-BFhAG0M1.mjs} +2 -2
  10. package/fesm2022/{acorex-platform-module-auth-client-change-password.command-Bt4yOMMt.mjs.map → acorex-platform-module-auth-client-change-password.command-BFhAG0M1.mjs.map} +1 -1
  11. package/fesm2022/{acorex-platform-module-auth-client-change-photo.command-tZ3TnzBz.mjs → acorex-platform-module-auth-client-change-photo.command-G-Ucvk0Q.mjs} +6 -5
  12. package/fesm2022/acorex-platform-module-auth-client-change-photo.command-G-Ucvk0Q.mjs.map +1 -0
  13. package/fesm2022/{acorex-platform-module-auth-client-command-return-url.util-mBmtJ7T2.mjs → acorex-platform-module-auth-client-command-return-url.util-D2zy8M1F.mjs} +1 -1
  14. package/fesm2022/{acorex-platform-module-auth-client-command-return-url.util-mBmtJ7T2.mjs.map → acorex-platform-module-auth-client-command-return-url.util-D2zy8M1F.mjs.map} +1 -1
  15. package/fesm2022/acorex-platform-module-auth-client-contracts.mjs +17 -2
  16. package/fesm2022/acorex-platform-module-auth-client-contracts.mjs.map +1 -1
  17. package/fesm2022/{acorex-platform-module-auth-client-edit-account-info.command-DulLUfWs.mjs → acorex-platform-module-auth-client-edit-account-info.command-DlHMUCaC.mjs} +3 -3
  18. package/fesm2022/{acorex-platform-module-auth-client-edit-account-info.command-DulLUfWs.mjs.map → acorex-platform-module-auth-client-edit-account-info.command-DlHMUCaC.mjs.map} +1 -1
  19. package/fesm2022/{acorex-platform-module-auth-client-edit-signature.command-TjOLhvKL.mjs → acorex-platform-module-auth-client-edit-signature.command-ZEGATkZs.mjs} +1 -1
  20. package/fesm2022/{acorex-platform-module-auth-client-edit-signature.command-TjOLhvKL.mjs.map → acorex-platform-module-auth-client-edit-signature.command-ZEGATkZs.mjs.map} +1 -1
  21. package/fesm2022/{acorex-platform-module-auth-client-get-user-activity.query-BxoUkan6.mjs → acorex-platform-module-auth-client-get-user-activity.query-CLkKuRb2.mjs} +2 -2
  22. package/fesm2022/{acorex-platform-module-auth-client-get-user-activity.query-BxoUkan6.mjs.map → acorex-platform-module-auth-client-get-user-activity.query-CLkKuRb2.mjs.map} +1 -1
  23. package/fesm2022/{acorex-platform-module-auth-client-lock-screen.command-QXW3UCik.mjs → acorex-platform-module-auth-client-lock-screen.command-CC96Y_Dw.mjs} +2 -2
  24. package/fesm2022/{acorex-platform-module-auth-client-lock-screen.command-QXW3UCik.mjs.map → acorex-platform-module-auth-client-lock-screen.command-CC96Y_Dw.mjs.map} +1 -1
  25. package/fesm2022/{acorex-platform-module-auth-client-login.module-dy4_aiwN.mjs → acorex-platform-module-auth-client-login.module-CeG5lRCF.mjs} +3 -3
  26. package/fesm2022/{acorex-platform-module-auth-client-login.module-dy4_aiwN.mjs.map → acorex-platform-module-auth-client-login.module-CeG5lRCF.mjs.map} +1 -1
  27. package/fesm2022/{acorex-platform-module-auth-client-manage-two-factor.command-Cal6EJe0.mjs → acorex-platform-module-auth-client-manage-two-factor.command-b_Fnx3CM.mjs} +2 -2
  28. package/fesm2022/{acorex-platform-module-auth-client-manage-two-factor.command-Cal6EJe0.mjs.map → acorex-platform-module-auth-client-manage-two-factor.command-b_Fnx3CM.mjs.map} +1 -1
  29. package/fesm2022/{acorex-platform-module-auth-client-menu.provider-Bz-kRip4.mjs → acorex-platform-module-auth-client-menu.provider-BrnaQ1ed.mjs} +1 -1
  30. package/fesm2022/{acorex-platform-module-auth-client-menu.provider-Bz-kRip4.mjs.map → acorex-platform-module-auth-client-menu.provider-BrnaQ1ed.mjs.map} +1 -1
  31. package/fesm2022/{acorex-platform-module-auth-client-oauth-callback.component-DLrIDQXn.mjs → acorex-platform-module-auth-client-oauth-callback.component-WEoRB-N-.mjs} +1 -1
  32. package/fesm2022/{acorex-platform-module-auth-client-oauth-callback.component-DLrIDQXn.mjs.map → acorex-platform-module-auth-client-oauth-callback.component-WEoRB-N-.mjs.map} +1 -1
  33. package/fesm2022/{acorex-platform-module-auth-client-open-sessions.command-ZG33hlfh.mjs → acorex-platform-module-auth-client-open-sessions.command-yVv0xHKN.mjs} +4 -4
  34. package/fesm2022/{acorex-platform-module-auth-client-open-sessions.command-ZG33hlfh.mjs.map → acorex-platform-module-auth-client-open-sessions.command-yVv0xHKN.mjs.map} +1 -1
  35. package/fesm2022/{acorex-platform-module-auth-client-open-waiting-room.command-CR-_ppYd.mjs → acorex-platform-module-auth-client-open-waiting-room.command-C7FwVYLd.mjs} +1 -1
  36. package/fesm2022/{acorex-platform-module-auth-client-open-waiting-room.command-CR-_ppYd.mjs.map → acorex-platform-module-auth-client-open-waiting-room.command-C7FwVYLd.mjs.map} +1 -1
  37. package/fesm2022/{acorex-platform-module-auth-client-password.component-CE2nXYCz.mjs → acorex-platform-module-auth-client-password.component-BRnmcVUL.mjs} +3 -3
  38. package/fesm2022/{acorex-platform-module-auth-client-password.component-CE2nXYCz.mjs.map → acorex-platform-module-auth-client-password.component-BRnmcVUL.mjs.map} +1 -1
  39. package/fesm2022/{acorex-platform-module-auth-client-password.component-D0pwQEaB.mjs → acorex-platform-module-auth-client-password.component-mswOB-df.mjs} +33 -17
  40. package/fesm2022/acorex-platform-module-auth-client-password.component-mswOB-df.mjs.map +1 -0
  41. package/fesm2022/{acorex-platform-module-auth-client-pin-code.constants-CRsFG7fg.mjs → acorex-platform-module-auth-client-pin-code.constants-Cf4Ktvwz.mjs} +1 -1
  42. package/fesm2022/{acorex-platform-module-auth-client-pin-code.constants-CRsFG7fg.mjs.map → acorex-platform-module-auth-client-pin-code.constants-Cf4Ktvwz.mjs.map} +1 -1
  43. package/fesm2022/{acorex-platform-module-auth-client-platform-settings-unavailable.component-BJMtsa99.mjs → acorex-platform-module-auth-client-platform-settings-unavailable.component-CM8Lk6EC.mjs} +1 -1
  44. package/fesm2022/{acorex-platform-module-auth-client-platform-settings-unavailable.component-BJMtsa99.mjs.map → acorex-platform-module-auth-client-platform-settings-unavailable.component-CM8Lk6EC.mjs.map} +1 -1
  45. package/fesm2022/{acorex-platform-module-auth-client-profile-activity-chart.component-DJKJdwUC.mjs → acorex-platform-module-auth-client-profile-activity-chart.component-49Wyy2wR.mjs} +4 -4
  46. package/fesm2022/{acorex-platform-module-auth-client-profile-activity-chart.component-DJKJdwUC.mjs.map → acorex-platform-module-auth-client-profile-activity-chart.component-49Wyy2wR.mjs.map} +1 -1
  47. package/fesm2022/{acorex-platform-module-auth-client-profile-coming-soon.command-Crh2GsRA.mjs → acorex-platform-module-auth-client-profile-coming-soon.command-BwcWdaYV.mjs} +1 -1
  48. package/fesm2022/{acorex-platform-module-auth-client-profile-coming-soon.command-Crh2GsRA.mjs.map → acorex-platform-module-auth-client-profile-coming-soon.command-BwcWdaYV.mjs.map} +1 -1
  49. package/fesm2022/{acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-Dx2-o9XL.mjs → acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-BahADIHf.mjs} +3 -3
  50. package/fesm2022/{acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-Dx2-o9XL.mjs.map → acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-BahADIHf.mjs.map} +1 -1
  51. package/fesm2022/{acorex-platform-module-auth-client-profile-page-component.provider-CSNCpJTo.mjs → acorex-platform-module-auth-client-profile-page-component.provider-DdEaGL4l.mjs} +4 -4
  52. package/fesm2022/{acorex-platform-module-auth-client-profile-page-component.provider-CSNCpJTo.mjs.map → acorex-platform-module-auth-client-profile-page-component.provider-DdEaGL4l.mjs.map} +1 -1
  53. package/fesm2022/{acorex-platform-module-auth-client-profile-page.component-BM6a4K1A.mjs → acorex-platform-module-auth-client-profile-page.component-DPNc1m34.mjs} +19 -4
  54. package/fesm2022/acorex-platform-module-auth-client-profile-page.component-DPNc1m34.mjs.map +1 -0
  55. package/fesm2022/{acorex-platform-module-auth-client-register-password.component-BxQNY-Nh.mjs → acorex-platform-module-auth-client-register-password.component-DLDUk6D-.mjs} +2 -2
  56. package/fesm2022/{acorex-platform-module-auth-client-register-password.component-BxQNY-Nh.mjs.map → acorex-platform-module-auth-client-register-password.component-DLDUk6D-.mjs.map} +1 -1
  57. package/fesm2022/{acorex-platform-module-auth-client-register.module-BLQWaJky.mjs → acorex-platform-module-auth-client-register.module-JXimTWBS.mjs} +4 -4
  58. package/fesm2022/{acorex-platform-module-auth-client-register.module-BLQWaJky.mjs.map → acorex-platform-module-auth-client-register.module-JXimTWBS.mjs.map} +1 -1
  59. package/fesm2022/{acorex-platform-module-auth-client-remove-pin-code.command-DyO4Oj2C.mjs → acorex-platform-module-auth-client-remove-pin-code.command-HhU7kcHv.mjs} +2 -2
  60. package/fesm2022/{acorex-platform-module-auth-client-remove-pin-code.command-DyO4Oj2C.mjs.map → acorex-platform-module-auth-client-remove-pin-code.command-HhU7kcHv.mjs.map} +1 -1
  61. package/fesm2022/{acorex-platform-module-auth-client-reset-password.component-Cz4UePgF.mjs → acorex-platform-module-auth-client-reset-password.component-COsy6HUr.mjs} +3 -3
  62. package/fesm2022/{acorex-platform-module-auth-client-reset-password.component-Cz4UePgF.mjs.map → acorex-platform-module-auth-client-reset-password.component-COsy6HUr.mjs.map} +1 -1
  63. package/fesm2022/{acorex-platform-module-auth-client-result.component-BS5uizi6.mjs → acorex-platform-module-auth-client-result.component-755aGMyK.mjs} +1 -1
  64. package/fesm2022/{acorex-platform-module-auth-client-result.component-BS5uizi6.mjs.map → acorex-platform-module-auth-client-result.component-755aGMyK.mjs.map} +1 -1
  65. package/fesm2022/{acorex-platform-module-auth-client-routes-DAwpb1Ca.mjs → acorex-platform-module-auth-client-routes-BNr55xqd.mjs} +5 -5
  66. package/fesm2022/{acorex-platform-module-auth-client-routes-DAwpb1Ca.mjs.map → acorex-platform-module-auth-client-routes-BNr55xqd.mjs.map} +1 -1
  67. package/fesm2022/{acorex-platform-module-auth-client-session-limit.component-DH58dRba.mjs → acorex-platform-module-auth-client-session-limit.component-DonVNqDf.mjs} +3 -3
  68. package/fesm2022/{acorex-platform-module-auth-client-session-limit.component-DH58dRba.mjs.map → acorex-platform-module-auth-client-session-limit.component-DonVNqDf.mjs.map} +1 -1
  69. package/fesm2022/{acorex-platform-module-auth-client-session-lock-overlay.component-5opoeMsk.mjs → acorex-platform-module-auth-client-session-lock-overlay.component-BOTFA08T.mjs} +5 -5
  70. package/fesm2022/{acorex-platform-module-auth-client-session-lock-overlay.component-5opoeMsk.mjs.map → acorex-platform-module-auth-client-session-lock-overlay.component-BOTFA08T.mjs.map} +1 -1
  71. package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.command-CRb8NATb.mjs → acorex-platform-module-auth-client-set-pin-code.command-DMQ_HQ1s.mjs} +3 -3
  72. package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.command-CRb8NATb.mjs.map → acorex-platform-module-auth-client-set-pin-code.command-DMQ_HQ1s.mjs.map} +1 -1
  73. package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.component-6NqaEKMs.mjs → acorex-platform-module-auth-client-set-pin-code.component-6TKld7Ij.mjs} +6 -6
  74. package/fesm2022/acorex-platform-module-auth-client-set-pin-code.component-6TKld7Ij.mjs.map +1 -0
  75. package/fesm2022/{acorex-platform-module-auth-client-settings.provider-DsKsZrOC.mjs → acorex-platform-module-auth-client-settings.provider-DEI1iy0_.mjs} +37 -3
  76. package/fesm2022/acorex-platform-module-auth-client-settings.provider-DEI1iy0_.mjs.map +1 -0
  77. package/fesm2022/{acorex-platform-module-auth-client-show-profile-command-BWoDxIdx.mjs → acorex-platform-module-auth-client-show-profile-command-BprKlX1F.mjs} +1 -1
  78. package/fesm2022/{acorex-platform-module-auth-client-show-profile-command-BWoDxIdx.mjs.map → acorex-platform-module-auth-client-show-profile-command-BprKlX1F.mjs.map} +1 -1
  79. package/fesm2022/{acorex-platform-module-auth-client-signout-command-D4Qgv7q2.mjs → acorex-platform-module-auth-client-signout-command-Be5bQi8S.mjs} +1 -1
  80. package/fesm2022/{acorex-platform-module-auth-client-signout-command-D4Qgv7q2.mjs.map → acorex-platform-module-auth-client-signout-command-Be5bQi8S.mjs.map} +1 -1
  81. package/fesm2022/{acorex-platform-module-auth-client-tenant-chooser.component-C8AopfZ4.mjs → acorex-platform-module-auth-client-tenant-chooser.component-CRTqOU_Q.mjs} +4 -4
  82. package/fesm2022/{acorex-platform-module-auth-client-tenant-chooser.component-C8AopfZ4.mjs.map → acorex-platform-module-auth-client-tenant-chooser.component-CRTqOU_Q.mjs.map} +1 -1
  83. package/fesm2022/{acorex-platform-module-auth-client-tenant-request.component-CG74dqMX.mjs → acorex-platform-module-auth-client-tenant-request.component-DGmq6I9N.mjs} +3 -3
  84. package/fesm2022/{acorex-platform-module-auth-client-tenant-request.component-CG74dqMX.mjs.map → acorex-platform-module-auth-client-tenant-request.component-DGmq6I9N.mjs.map} +1 -1
  85. package/fesm2022/{acorex-platform-module-auth-client-two-factor-challenge.storage-mi0UD7Sc.mjs → acorex-platform-module-auth-client-two-factor-challenge.storage-CRxxIWr4.mjs} +1 -1
  86. package/fesm2022/{acorex-platform-module-auth-client-two-factor-challenge.storage-mi0UD7Sc.mjs.map → acorex-platform-module-auth-client-two-factor-challenge.storage-CRxxIWr4.mjs.map} +1 -1
  87. package/fesm2022/{acorex-platform-module-auth-client-two-factor-code.component-DAMphXPJ.mjs → acorex-platform-module-auth-client-two-factor-code.component-EzgdY8gk.mjs} +3 -3
  88. package/fesm2022/{acorex-platform-module-auth-client-two-factor-code.component-DAMphXPJ.mjs.map → acorex-platform-module-auth-client-two-factor-code.component-EzgdY8gk.mjs.map} +1 -1
  89. package/fesm2022/{acorex-platform-module-auth-client-two-factor.module-xzAzTU4n.mjs → acorex-platform-module-auth-client-two-factor.module-BagKn247.mjs} +2 -2
  90. package/fesm2022/{acorex-platform-module-auth-client-two-factor.module-xzAzTU4n.mjs.map → acorex-platform-module-auth-client-two-factor.module-BagKn247.mjs.map} +1 -1
  91. package/fesm2022/{acorex-platform-module-auth-client-view-login-history.command-CLWGDmsI.mjs → acorex-platform-module-auth-client-view-login-history.command-BEooTMcO.mjs} +2 -2
  92. package/fesm2022/{acorex-platform-module-auth-client-view-login-history.command-CLWGDmsI.mjs.map → acorex-platform-module-auth-client-view-login-history.command-BEooTMcO.mjs.map} +1 -1
  93. package/fesm2022/{acorex-platform-module-auth-client-waiting-room.component-C0VyZQdV.mjs → acorex-platform-module-auth-client-waiting-room.component-BCBZEvJi.mjs} +3 -3
  94. package/fesm2022/{acorex-platform-module-auth-client-waiting-room.component-C0VyZQdV.mjs.map → acorex-platform-module-auth-client-waiting-room.component-BCBZEvJi.mjs.map} +1 -1
  95. package/fesm2022/{acorex-platform-module-auth-client-welcome-onboarding-page.component-CdgoC07Q.mjs → acorex-platform-module-auth-client-welcome-onboarding-page.component-NrNTyMSV.mjs} +4 -4
  96. package/fesm2022/{acorex-platform-module-auth-client-welcome-onboarding-page.component-CdgoC07Q.mjs.map → acorex-platform-module-auth-client-welcome-onboarding-page.component-NrNTyMSV.mjs.map} +1 -1
  97. package/fesm2022/{acorex-platform-module-auth-client-welcome-onboarding.command-BNOEiB5l.mjs → acorex-platform-module-auth-client-welcome-onboarding.command-CP6lD4eO.mjs} +2 -2
  98. package/fesm2022/{acorex-platform-module-auth-client-welcome-onboarding.command-BNOEiB5l.mjs.map → acorex-platform-module-auth-client-welcome-onboarding.command-CP6lD4eO.mjs.map} +1 -1
  99. package/fesm2022/acorex-platform-module-auth-client.mjs +1 -1
  100. package/i18n/en-AU/auth.json +21 -1
  101. package/i18n/en-US/auth.json +21 -1
  102. package/i18n/fa-IR/auth.json +21 -1
  103. package/package.json +3 -3
  104. package/types/acorex-platform-module-auth-client-contracts.d.ts +15 -2
  105. package/types/acorex-platform-module-auth-client.d.ts +2 -0
  106. package/fesm2022/acorex-platform-module-auth-client-acorex-platform-module-auth-client-CBRlR1xT.mjs.map +0 -1
  107. package/fesm2022/acorex-platform-module-auth-client-change-photo.command-tZ3TnzBz.mjs.map +0 -1
  108. package/fesm2022/acorex-platform-module-auth-client-password.component-D0pwQEaB.mjs.map +0 -1
  109. package/fesm2022/acorex-platform-module-auth-client-profile-page.component-BM6a4K1A.mjs.map +0 -1
  110. package/fesm2022/acorex-platform-module-auth-client-set-pin-code.component-6NqaEKMs.mjs.map +0 -1
  111. package/fesm2022/acorex-platform-module-auth-client-settings.provider-DsKsZrOC.mjs.map +0 -1
@@ -19,7 +19,7 @@ import { AXPUserAvatarComponent } from '@acorex-platform/framework-client/layout
19
19
  import * as i5$1 from '@angular/common';
20
20
  import { CommonModule } from '@angular/common';
21
21
  import { Router } from '@angular/router';
22
- import { y as AXPTenantChooserListComponent } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-CBRlR1xT.mjs';
22
+ import { y as AXPTenantChooserListComponent } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-DnctDd1m.mjs';
23
23
 
24
24
  class AXPAuthTenantChooserComponent {
25
25
  constructor() {
@@ -41,7 +41,7 @@ class AXPAuthTenantChooserComponent {
41
41
  this.router.navigate(['/auth/login']);
42
42
  }
43
43
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPAuthTenantChooserComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
44
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPAuthTenantChooserComponent, isStandalone: true, selector: "axp-auth-tenant-chooser", ngImport: i0, template: "<main *translate=\"let t\" class=\"axp-auth-chooser\">\n <div class=\"axp-auth-chooser__inner\">\n <!-- ----- Platform branding ----- -->\n <section class=\"axp-auth-chooser__brand\">\n <axp-logo\n logoKey=\"platform\"\n appearance=\"colored\"\n format=\"full\"\n [size]=\"260\"\n [attr.alt]=\"platformTitle()\"\n ></axp-logo>\n </section>\n <!-- ----- Tenant selection card ----- -->\n <section class=\"axp-auth-chooser__card-wrap\">\n <div class=\"axp-auth-chooser__card\">\n <!-- ----- Profile header while catalog loads ----- -->\n @if (catalogLoading()) {\n <ax-skeleton [animated]=\"true\" class=\"size-[72px] rounded-full shrink-0\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-6 w-56 max-w-full\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-4 w-64 max-w-full\"></ax-skeleton>\n } @else {\n <axp-user-avatar\n [size]=\"72\"\n [userId]=\"$safeNavigationMigration(user?.id)!\"\n [showPresence]=\"false\"\n ></axp-user-avatar>\n <h2 class=\"md:text-lg font-medium\">\n {{ '@auth:welcome.message' | translate | async }}, {{ user?.title }}\n </h2>\n <p class=\"text-neutral-500 text-sm md:text-base font-medium\">\n {{ '@auth:tenant-chooser.description' | translate | async }}\n </p>\n }\n <div class=\"mt-3 w-full\">\n <axp-tenant-chooser-list (loadingChange)=\"handleCatalogLoading($event)\"></axp-tenant-chooser-list>\n </div>\n </div>\n </section>\n <!-- ----- Sign-out footer ----- -->\n <section class=\"axp-auth-chooser__footer\">\n <p class=\"text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a (click)=\"handleSignout()\" class=\"text-primary cursor-pointer hover:underline font-medium\">\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </section>\n </div>\n</main>\n", styles: ["@layer properties;.axp-auth-chooser{display:flex;width:100%;flex-direction:column;align-items:center;overflow-y:auto;background-color:rgba(var(--ax-sys-color-lightest-surface));height:100vh;height:100dvh;-webkit-overflow-scrolling:touch}.axp-auth-chooser__inner{display:flex;width:100%;flex-grow:1;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--spacing, .25rem) * 6);padding-inline:calc(var(--spacing, .25rem) * 4);min-height:100%;box-sizing:border-box;padding-top:max(2.75rem,calc(env(safe-area-inset-top,0px) + 1.75rem));padding-bottom:max(1.5rem,env(safe-area-inset-bottom,0px))}.axp-auth-chooser__brand{display:flex;width:100%;flex-shrink:0;justify-content:center}.axp-auth-chooser__brand axp-logo{width:min(16.25rem,85vw);max-width:100%}.axp-auth-chooser__card-wrap{display:flex;width:100%;flex-shrink:0;justify-content:center}.axp-auth-chooser__card{display:flex;width:100%;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--spacing, .25rem) * 4);border-radius:var(--radius-lg, .5rem);border-style:var(--tw-border-style);border-width:0px;padding:calc(var(--spacing, .25rem) * 5);text-align:center;--tw-shadow: 0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);max-width:28rem}.axp-auth-chooser__footer{flex-shrink:0;padding-inline:var(--spacing, .25rem);text-align:center}@media(min-width:640px){.axp-auth-chooser__inner{gap:calc(var(--spacing, .25rem) * 8);padding-inline:calc(var(--spacing, .25rem) * 6);padding-top:max(3rem,calc(env(safe-area-inset-top,0px) + 2rem))}.axp-auth-chooser__brand axp-logo{width:min(16.25rem,90vw)}}@media(min-width:768px){.axp-auth-chooser{background-color:var(--color-bg-default)}.axp-auth-chooser__inner{gap:calc(var(--spacing, .25rem) * 10);padding-inline:calc(var(--spacing, .25rem) * 6);padding-top:3.5rem;padding-bottom:2.5rem}.axp-auth-chooser__card{gap:calc(var(--spacing, .25rem) * 2);border-style:var(--tw-border-style);border-width:1px;padding:calc(var(--spacing, .25rem) * 6);--tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / .1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);width:min(90vw,28rem);max-width:28rem}}@media(min-width:1024px){.axp-auth-chooser__inner{padding-inline:0px;padding-top:3.5rem;padding-bottom:2.5rem}.axp-auth-chooser__card{width:min(90vw,28rem)}}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n", ":host{display:contents}.gradient{background:-webkit-linear-gradient(var(--ax-current-v1),var(--ax-current-v2));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "ngmodule", type: AXLabelModule }, { kind: "ngmodule", type: AXCheckBoxModule }, { kind: "ngmodule", type: AXImageModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: AXPLogoComponent, selector: "axp-logo", inputs: ["logoKey", "appearance", "size", "format"] }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "ngmodule", type: AXSkeletonModule }, { kind: "component", type: i3.AXSkeletonComponent, selector: "ax-skeleton", inputs: ["animated"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i5.AXTranslatorDirective, selector: "[translate]" }, { kind: "component", type: AXPUserAvatarComponent, selector: "axp-user-avatar", inputs: ["size", "userId", "showPresence", "displayName", "displayAvatar"] }, { kind: "component", type: AXPTenantChooserListComponent, selector: "axp-tenant-chooser-list", inputs: ["simple"], outputs: ["tenantChosen", "loadingChange"] }, { kind: "pipe", type: i5$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager, encapsulation: i0.ViewEncapsulation.None }); }
44
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPAuthTenantChooserComponent, isStandalone: true, selector: "axp-auth-tenant-chooser", ngImport: i0, template: "<main *translate=\"let t\" class=\"axp-auth-chooser\">\n <div class=\"axp-auth-chooser__inner\">\n <!-- ----- Platform branding ----- -->\n <section class=\"axp-auth-chooser__brand\">\n <axp-logo\n logoKey=\"platform\"\n appearance=\"colored\"\n format=\"full\"\n [size]=\"260\"\n [attr.alt]=\"platformTitle()\"\n ></axp-logo>\n </section>\n <!-- ----- Tenant selection card ----- -->\n <section class=\"axp-auth-chooser__card-wrap\">\n <div class=\"axp-auth-chooser__card\">\n <!-- ----- Profile header while catalog loads ----- -->\n @if (catalogLoading()) {\n <ax-skeleton [animated]=\"true\" class=\"size-[72px] rounded-full shrink-0\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-6 w-56 max-w-full\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-4 w-64 max-w-full\"></ax-skeleton>\n } @else {\n <axp-user-avatar\n [size]=\"72\"\n [userId]=\"$safeNavigationMigration(user?.id)!\"\n [showPresence]=\"false\"\n ></axp-user-avatar>\n <h2 class=\"md:text-lg font-medium\">\n {{ '@auth:welcome.message' | translate | async }}, {{ user?.title }}\n </h2>\n <p class=\"text-neutral-500 text-sm md:text-base font-medium\">\n {{ '@auth:tenant-chooser.description' | translate | async }}\n </p>\n }\n <div class=\"mt-3 w-full\">\n <axp-tenant-chooser-list (loadingChange)=\"handleCatalogLoading($event)\"></axp-tenant-chooser-list>\n </div>\n </div>\n </section>\n <!-- ----- Sign-out footer ----- -->\n <section class=\"axp-auth-chooser__footer\">\n <p class=\"text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a (click)=\"handleSignout()\" class=\"text-primary cursor-pointer hover:underline font-medium\">\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </section>\n </div>\n</main>\n", styles: ["@layer properties;.axp-auth-chooser{display:flex;width:100%;flex-direction:column;align-items:center;overflow-y:auto;background-color:rgba(var(--ax-sys-color-lightest-surface));height:100vh;height:100dvh;-webkit-overflow-scrolling:touch}.axp-auth-chooser__inner{display:flex;width:100%;flex-grow:1;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--spacing, .25rem) * 6);padding-inline:calc(var(--spacing, .25rem) * 4);min-height:100%;box-sizing:border-box;padding-top:max(2.75rem,calc(env(safe-area-inset-top,0px) + 1.75rem));padding-bottom:max(1.5rem,env(safe-area-inset-bottom,0px))}.axp-auth-chooser__brand{display:flex;width:100%;flex-shrink:0;justify-content:center}.axp-auth-chooser__brand axp-logo{width:min(16.25rem,85vw);max-width:100%}.axp-auth-chooser__card-wrap{display:flex;width:100%;flex-shrink:0;justify-content:center}.axp-auth-chooser__card{display:flex;width:100%;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--spacing, .25rem) * 4);border-radius:var(--radius-lg, .5rem);border-style:var(--tw-border-style);border-width:0px;padding:calc(var(--spacing, .25rem) * 5);text-align:center;--tw-shadow: 0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);max-width:28rem}.axp-auth-chooser__footer{flex-shrink:0;padding-inline:var(--spacing, .25rem);text-align:center}@media(min-width:640px){.axp-auth-chooser__inner{gap:calc(var(--spacing, .25rem) * 8);padding-inline:calc(var(--spacing, .25rem) * 6);padding-top:max(3rem,calc(env(safe-area-inset-top,0px) + 2rem))}.axp-auth-chooser__brand axp-logo{width:min(16.25rem,90vw)}}@media(min-width:768px){.axp-auth-chooser{background-color:var(--color-bg-default)}.axp-auth-chooser__inner{gap:calc(var(--spacing, .25rem) * 10);padding-inline:calc(var(--spacing, .25rem) * 6);padding-top:3.5rem;padding-bottom:2.5rem}.axp-auth-chooser__card{gap:calc(var(--spacing, .25rem) * 2);border-style:var(--tw-border-style);border-width:1px;padding:calc(var(--spacing, .25rem) * 6);--tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / .1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);width:min(90vw,28rem);max-width:28rem}}@media(min-width:1024px){.axp-auth-chooser__inner{padding-inline:0px;padding-top:3.5rem;padding-bottom:2.5rem}.axp-auth-chooser__card{width:min(90vw,28rem)}}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000}}}\n/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */\n", ":host{display:contents}.gradient{background:-webkit-linear-gradient(var(--ax-current-v1),var(--ax-current-v2));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}\n/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "ngmodule", type: AXLabelModule }, { kind: "ngmodule", type: AXCheckBoxModule }, { kind: "ngmodule", type: AXImageModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: AXPLogoComponent, selector: "axp-logo", inputs: ["logoKey", "appearance", "size", "format"] }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "ngmodule", type: AXSkeletonModule }, { kind: "component", type: i3.AXSkeletonComponent, selector: "ax-skeleton", inputs: ["animated"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i5.AXTranslatorDirective, selector: "[translate]" }, { kind: "component", type: AXPUserAvatarComponent, selector: "axp-user-avatar", inputs: ["size", "userId", "showPresence", "displayName", "displayAvatar"] }, { kind: "component", type: AXPTenantChooserListComponent, selector: "axp-tenant-chooser-list", inputs: ["simple"], outputs: ["tenantChosen", "loadingChange"] }, { kind: "pipe", type: i5$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager, encapsulation: i0.ViewEncapsulation.None }); }
45
45
  }
46
46
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPAuthTenantChooserComponent, decorators: [{
47
47
  type: Component,
@@ -60,8 +60,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
60
60
  AXTranslationModule,
61
61
  AXPUserAvatarComponent,
62
62
  AXPTenantChooserListComponent,
63
- ], changeDetection: ChangeDetectionStrategy.Eager, encapsulation: ViewEncapsulation.None, template: "<main *translate=\"let t\" class=\"axp-auth-chooser\">\n <div class=\"axp-auth-chooser__inner\">\n <!-- ----- Platform branding ----- -->\n <section class=\"axp-auth-chooser__brand\">\n <axp-logo\n logoKey=\"platform\"\n appearance=\"colored\"\n format=\"full\"\n [size]=\"260\"\n [attr.alt]=\"platformTitle()\"\n ></axp-logo>\n </section>\n <!-- ----- Tenant selection card ----- -->\n <section class=\"axp-auth-chooser__card-wrap\">\n <div class=\"axp-auth-chooser__card\">\n <!-- ----- Profile header while catalog loads ----- -->\n @if (catalogLoading()) {\n <ax-skeleton [animated]=\"true\" class=\"size-[72px] rounded-full shrink-0\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-6 w-56 max-w-full\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-4 w-64 max-w-full\"></ax-skeleton>\n } @else {\n <axp-user-avatar\n [size]=\"72\"\n [userId]=\"$safeNavigationMigration(user?.id)!\"\n [showPresence]=\"false\"\n ></axp-user-avatar>\n <h2 class=\"md:text-lg font-medium\">\n {{ '@auth:welcome.message' | translate | async }}, {{ user?.title }}\n </h2>\n <p class=\"text-neutral-500 text-sm md:text-base font-medium\">\n {{ '@auth:tenant-chooser.description' | translate | async }}\n </p>\n }\n <div class=\"mt-3 w-full\">\n <axp-tenant-chooser-list (loadingChange)=\"handleCatalogLoading($event)\"></axp-tenant-chooser-list>\n </div>\n </div>\n </section>\n <!-- ----- Sign-out footer ----- -->\n <section class=\"axp-auth-chooser__footer\">\n <p class=\"text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a (click)=\"handleSignout()\" class=\"text-primary cursor-pointer hover:underline font-medium\">\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </section>\n </div>\n</main>\n", styles: ["@layer properties;.axp-auth-chooser{display:flex;width:100%;flex-direction:column;align-items:center;overflow-y:auto;background-color:rgba(var(--ax-sys-color-lightest-surface));height:100vh;height:100dvh;-webkit-overflow-scrolling:touch}.axp-auth-chooser__inner{display:flex;width:100%;flex-grow:1;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--spacing, .25rem) * 6);padding-inline:calc(var(--spacing, .25rem) * 4);min-height:100%;box-sizing:border-box;padding-top:max(2.75rem,calc(env(safe-area-inset-top,0px) + 1.75rem));padding-bottom:max(1.5rem,env(safe-area-inset-bottom,0px))}.axp-auth-chooser__brand{display:flex;width:100%;flex-shrink:0;justify-content:center}.axp-auth-chooser__brand axp-logo{width:min(16.25rem,85vw);max-width:100%}.axp-auth-chooser__card-wrap{display:flex;width:100%;flex-shrink:0;justify-content:center}.axp-auth-chooser__card{display:flex;width:100%;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--spacing, .25rem) * 4);border-radius:var(--radius-lg, .5rem);border-style:var(--tw-border-style);border-width:0px;padding:calc(var(--spacing, .25rem) * 5);text-align:center;--tw-shadow: 0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);max-width:28rem}.axp-auth-chooser__footer{flex-shrink:0;padding-inline:var(--spacing, .25rem);text-align:center}@media(min-width:640px){.axp-auth-chooser__inner{gap:calc(var(--spacing, .25rem) * 8);padding-inline:calc(var(--spacing, .25rem) * 6);padding-top:max(3rem,calc(env(safe-area-inset-top,0px) + 2rem))}.axp-auth-chooser__brand axp-logo{width:min(16.25rem,90vw)}}@media(min-width:768px){.axp-auth-chooser{background-color:var(--color-bg-default)}.axp-auth-chooser__inner{gap:calc(var(--spacing, .25rem) * 10);padding-inline:calc(var(--spacing, .25rem) * 6);padding-top:3.5rem;padding-bottom:2.5rem}.axp-auth-chooser__card{gap:calc(var(--spacing, .25rem) * 2);border-style:var(--tw-border-style);border-width:1px;padding:calc(var(--spacing, .25rem) * 6);--tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / .1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);width:min(90vw,28rem);max-width:28rem}}@media(min-width:1024px){.axp-auth-chooser__inner{padding-inline:0px;padding-top:3.5rem;padding-bottom:2.5rem}.axp-auth-chooser__card{width:min(90vw,28rem)}}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n", ":host{display:contents}.gradient{background:-webkit-linear-gradient(var(--ax-current-v1),var(--ax-current-v2));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
63
+ ], changeDetection: ChangeDetectionStrategy.Eager, encapsulation: ViewEncapsulation.None, template: "<main *translate=\"let t\" class=\"axp-auth-chooser\">\n <div class=\"axp-auth-chooser__inner\">\n <!-- ----- Platform branding ----- -->\n <section class=\"axp-auth-chooser__brand\">\n <axp-logo\n logoKey=\"platform\"\n appearance=\"colored\"\n format=\"full\"\n [size]=\"260\"\n [attr.alt]=\"platformTitle()\"\n ></axp-logo>\n </section>\n <!-- ----- Tenant selection card ----- -->\n <section class=\"axp-auth-chooser__card-wrap\">\n <div class=\"axp-auth-chooser__card\">\n <!-- ----- Profile header while catalog loads ----- -->\n @if (catalogLoading()) {\n <ax-skeleton [animated]=\"true\" class=\"size-[72px] rounded-full shrink-0\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-6 w-56 max-w-full\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-4 w-64 max-w-full\"></ax-skeleton>\n } @else {\n <axp-user-avatar\n [size]=\"72\"\n [userId]=\"$safeNavigationMigration(user?.id)!\"\n [showPresence]=\"false\"\n ></axp-user-avatar>\n <h2 class=\"md:text-lg font-medium\">\n {{ '@auth:welcome.message' | translate | async }}, {{ user?.title }}\n </h2>\n <p class=\"text-neutral-500 text-sm md:text-base font-medium\">\n {{ '@auth:tenant-chooser.description' | translate | async }}\n </p>\n }\n <div class=\"mt-3 w-full\">\n <axp-tenant-chooser-list (loadingChange)=\"handleCatalogLoading($event)\"></axp-tenant-chooser-list>\n </div>\n </div>\n </section>\n <!-- ----- Sign-out footer ----- -->\n <section class=\"axp-auth-chooser__footer\">\n <p class=\"text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a (click)=\"handleSignout()\" class=\"text-primary cursor-pointer hover:underline font-medium\">\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </section>\n </div>\n</main>\n", styles: ["@layer properties;.axp-auth-chooser{display:flex;width:100%;flex-direction:column;align-items:center;overflow-y:auto;background-color:rgba(var(--ax-sys-color-lightest-surface));height:100vh;height:100dvh;-webkit-overflow-scrolling:touch}.axp-auth-chooser__inner{display:flex;width:100%;flex-grow:1;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--spacing, .25rem) * 6);padding-inline:calc(var(--spacing, .25rem) * 4);min-height:100%;box-sizing:border-box;padding-top:max(2.75rem,calc(env(safe-area-inset-top,0px) + 1.75rem));padding-bottom:max(1.5rem,env(safe-area-inset-bottom,0px))}.axp-auth-chooser__brand{display:flex;width:100%;flex-shrink:0;justify-content:center}.axp-auth-chooser__brand axp-logo{width:min(16.25rem,85vw);max-width:100%}.axp-auth-chooser__card-wrap{display:flex;width:100%;flex-shrink:0;justify-content:center}.axp-auth-chooser__card{display:flex;width:100%;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--spacing, .25rem) * 4);border-radius:var(--radius-lg, .5rem);border-style:var(--tw-border-style);border-width:0px;padding:calc(var(--spacing, .25rem) * 5);text-align:center;--tw-shadow: 0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);max-width:28rem}.axp-auth-chooser__footer{flex-shrink:0;padding-inline:var(--spacing, .25rem);text-align:center}@media(min-width:640px){.axp-auth-chooser__inner{gap:calc(var(--spacing, .25rem) * 8);padding-inline:calc(var(--spacing, .25rem) * 6);padding-top:max(3rem,calc(env(safe-area-inset-top,0px) + 2rem))}.axp-auth-chooser__brand axp-logo{width:min(16.25rem,90vw)}}@media(min-width:768px){.axp-auth-chooser{background-color:var(--color-bg-default)}.axp-auth-chooser__inner{gap:calc(var(--spacing, .25rem) * 10);padding-inline:calc(var(--spacing, .25rem) * 6);padding-top:3.5rem;padding-bottom:2.5rem}.axp-auth-chooser__card{gap:calc(var(--spacing, .25rem) * 2);border-style:var(--tw-border-style);border-width:1px;padding:calc(var(--spacing, .25rem) * 6);--tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / .1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);width:min(90vw,28rem);max-width:28rem}}@media(min-width:1024px){.axp-auth-chooser__inner{padding-inline:0px;padding-top:3.5rem;padding-bottom:2.5rem}.axp-auth-chooser__card{width:min(90vw,28rem)}}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000}}}\n/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */\n", ":host{display:contents}.gradient{background:-webkit-linear-gradient(var(--ax-current-v1),var(--ax-current-v2));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}\n/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */\n"] }]
64
64
  }], ctorParameters: () => [] });
65
65
 
66
66
  export { AXPAuthTenantChooserComponent };
67
- //# sourceMappingURL=acorex-platform-module-auth-client-tenant-chooser.component-C8AopfZ4.mjs.map
67
+ //# sourceMappingURL=acorex-platform-module-auth-client-tenant-chooser.component-CRTqOU_Q.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-auth-client-tenant-chooser.component-C8AopfZ4.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/account/tenant-chooser/tenant-chooser.component.ts","../../../../libs/modules/auth/client/src/lib/pages/account/tenant-chooser/tenant-chooser.component.html"],"sourcesContent":["import { Component, ViewEncapsulation, inject, ChangeDetectionStrategy, signal } from '@angular/core';\n\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXCheckBoxModule } from '@acorex/components/check-box';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXImageModule } from '@acorex/components/image';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXSkeletonModule } from '@acorex/components/skeleton';\nimport { AXTextBoxModule } from '@acorex/components/text-box';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPPlatformBrandingService } from '@acorex-platform/framework-client/common';\nimport { AXPLogoComponent } from '@acorex-platform/framework-client/core';\nimport { AXPUserAvatarComponent } from '@acorex-platform/framework-client/layout/components';\nimport { CommonModule } from '@angular/common';\nimport { Router } from '@angular/router';\nimport { AXPTenantChooserListComponent } from './tenant-chooser-list.component';\n\n@Component({\n selector: 'axp-auth-tenant-chooser',\n templateUrl: './tenant-chooser.component.html',\n styleUrls: ['../shared/auth-chooser.layout.css', './tenant-chooser.component.css'],\n imports: [\n CommonModule,\n AXFormModule,\n AXTextBoxModule,\n AXButtonModule,\n AXLabelModule,\n AXCheckBoxModule,\n AXImageModule,\n AXDecoratorModule,\n AXPLogoComponent,\n AXLoadingModule,\n AXSkeletonModule,\n AXTranslationModule,\n AXPUserAvatarComponent,\n AXPTenantChooserListComponent,\n ],\n changeDetection: ChangeDetectionStrategy.Eager,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXPAuthTenantChooserComponent {\n private router = inject(Router);\n private readonly platformBranding = inject(AXPPlatformBrandingService);\n protected readonly platformTitle = signal('');\n private sessionService = inject(AXPSessionService);\n\n constructor() {\n void this.platformBranding.resolvePlatformTitle().then((title) => this.platformTitle.set(title));\n }\n\n protected user = this.sessionService.user;\n protected catalogLoading = signal(true);\n\n handleCatalogLoading(loading: boolean): void {\n this.catalogLoading.set(loading);\n }\n\n async handleSignout() {\n await this.sessionService.signout();\n this.router.navigate(['/auth/login']);\n }\n}\n","<main *translate=\"let t\" class=\"axp-auth-chooser\">\n <div class=\"axp-auth-chooser__inner\">\n <!-- ----- Platform branding ----- -->\n <section class=\"axp-auth-chooser__brand\">\n <axp-logo\n logoKey=\"platform\"\n appearance=\"colored\"\n format=\"full\"\n [size]=\"260\"\n [attr.alt]=\"platformTitle()\"\n ></axp-logo>\n </section>\n <!-- ----- Tenant selection card ----- -->\n <section class=\"axp-auth-chooser__card-wrap\">\n <div class=\"axp-auth-chooser__card\">\n <!-- ----- Profile header while catalog loads ----- -->\n @if (catalogLoading()) {\n <ax-skeleton [animated]=\"true\" class=\"size-[72px] rounded-full shrink-0\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-6 w-56 max-w-full\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-4 w-64 max-w-full\"></ax-skeleton>\n } @else {\n <axp-user-avatar\n [size]=\"72\"\n [userId]=\"$safeNavigationMigration(user?.id)!\"\n [showPresence]=\"false\"\n ></axp-user-avatar>\n <h2 class=\"md:text-lg font-medium\">\n {{ '@auth:welcome.message' | translate | async }}, {{ user?.title }}\n </h2>\n <p class=\"text-neutral-500 text-sm md:text-base font-medium\">\n {{ '@auth:tenant-chooser.description' | translate | async }}\n </p>\n }\n <div class=\"mt-3 w-full\">\n <axp-tenant-chooser-list (loadingChange)=\"handleCatalogLoading($event)\"></axp-tenant-chooser-list>\n </div>\n </div>\n </section>\n <!-- ----- Sign-out footer ----- -->\n <section class=\"axp-auth-chooser__footer\">\n <p class=\"text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a (click)=\"handleSignout()\" class=\"text-primary cursor-pointer hover:underline font-medium\">\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </section>\n </div>\n</main>\n"],"names":["i1","i2","i3"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;MA2Ca,6BAA6B,CAAA;AAMxC,IAAA,WAAA,GAAA;AALQ,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACd,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,0BAA0B,CAAC;QACnD,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,EAAE;0FAAC;AACrC,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAMxC,QAAA,IAAA,CAAA,IAAI,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI;QAC/B,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,IAAI;2FAAC;QAJrC,KAAK,IAAI,CAAC,gBAAgB,CAAC,oBAAoB,EAAE,CAAC,IAAI,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAClG;AAKA,IAAA,oBAAoB,CAAC,OAAgB,EAAA;AACnC,QAAA,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC;IAClC;AAEA,IAAA,MAAM,aAAa,GAAA;AACjB,QAAA,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE;QACnC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,aAAa,CA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AA,CAAA,4yIAAA,EAAA,4QAAA,CAAA,EAAA;;;"}
1
+ {"version":3,"file":"acorex-platform-module-auth-client-tenant-chooser.component-CRTqOU_Q.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/account/tenant-chooser/tenant-chooser.component.ts","../../../../libs/modules/auth/client/src/lib/pages/account/tenant-chooser/tenant-chooser.component.html"],"sourcesContent":["import { Component, ViewEncapsulation, inject, ChangeDetectionStrategy, signal } from '@angular/core';\n\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXCheckBoxModule } from '@acorex/components/check-box';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXImageModule } from '@acorex/components/image';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXSkeletonModule } from '@acorex/components/skeleton';\nimport { AXTextBoxModule } from '@acorex/components/text-box';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPPlatformBrandingService } from '@acorex-platform/framework-client/common';\nimport { AXPLogoComponent } from '@acorex-platform/framework-client/core';\nimport { AXPUserAvatarComponent } from '@acorex-platform/framework-client/layout/components';\nimport { CommonModule } from '@angular/common';\nimport { Router } from '@angular/router';\nimport { AXPTenantChooserListComponent } from './tenant-chooser-list.component';\n\n@Component({\n selector: 'axp-auth-tenant-chooser',\n templateUrl: './tenant-chooser.component.html',\n styleUrls: ['../shared/auth-chooser.layout.css', './tenant-chooser.component.css'],\n imports: [\n CommonModule,\n AXFormModule,\n AXTextBoxModule,\n AXButtonModule,\n AXLabelModule,\n AXCheckBoxModule,\n AXImageModule,\n AXDecoratorModule,\n AXPLogoComponent,\n AXLoadingModule,\n AXSkeletonModule,\n AXTranslationModule,\n AXPUserAvatarComponent,\n AXPTenantChooserListComponent,\n ],\n changeDetection: ChangeDetectionStrategy.Eager,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXPAuthTenantChooserComponent {\n private router = inject(Router);\n private readonly platformBranding = inject(AXPPlatformBrandingService);\n protected readonly platformTitle = signal('');\n private sessionService = inject(AXPSessionService);\n\n constructor() {\n void this.platformBranding.resolvePlatformTitle().then((title) => this.platformTitle.set(title));\n }\n\n protected user = this.sessionService.user;\n protected catalogLoading = signal(true);\n\n handleCatalogLoading(loading: boolean): void {\n this.catalogLoading.set(loading);\n }\n\n async handleSignout() {\n await this.sessionService.signout();\n this.router.navigate(['/auth/login']);\n }\n}\n","<main *translate=\"let t\" class=\"axp-auth-chooser\">\n <div class=\"axp-auth-chooser__inner\">\n <!-- ----- Platform branding ----- -->\n <section class=\"axp-auth-chooser__brand\">\n <axp-logo\n logoKey=\"platform\"\n appearance=\"colored\"\n format=\"full\"\n [size]=\"260\"\n [attr.alt]=\"platformTitle()\"\n ></axp-logo>\n </section>\n <!-- ----- Tenant selection card ----- -->\n <section class=\"axp-auth-chooser__card-wrap\">\n <div class=\"axp-auth-chooser__card\">\n <!-- ----- Profile header while catalog loads ----- -->\n @if (catalogLoading()) {\n <ax-skeleton [animated]=\"true\" class=\"size-[72px] rounded-full shrink-0\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-6 w-56 max-w-full\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-4 w-64 max-w-full\"></ax-skeleton>\n } @else {\n <axp-user-avatar\n [size]=\"72\"\n [userId]=\"$safeNavigationMigration(user?.id)!\"\n [showPresence]=\"false\"\n ></axp-user-avatar>\n <h2 class=\"md:text-lg font-medium\">\n {{ '@auth:welcome.message' | translate | async }}, {{ user?.title }}\n </h2>\n <p class=\"text-neutral-500 text-sm md:text-base font-medium\">\n {{ '@auth:tenant-chooser.description' | translate | async }}\n </p>\n }\n <div class=\"mt-3 w-full\">\n <axp-tenant-chooser-list (loadingChange)=\"handleCatalogLoading($event)\"></axp-tenant-chooser-list>\n </div>\n </div>\n </section>\n <!-- ----- Sign-out footer ----- -->\n <section class=\"axp-auth-chooser__footer\">\n <p class=\"text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a (click)=\"handleSignout()\" class=\"text-primary cursor-pointer hover:underline font-medium\">\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </section>\n </div>\n</main>\n"],"names":["i1","i2","i3"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;MA2Ca,6BAA6B,CAAA;AAMxC,IAAA,WAAA,GAAA;AALQ,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACd,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,0BAA0B,CAAC;QACnD,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,EAAE;0FAAC;AACrC,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAMxC,QAAA,IAAA,CAAA,IAAI,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI;QAC/B,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,IAAI;2FAAC;QAJrC,KAAK,IAAI,CAAC,gBAAgB,CAAC,oBAAoB,EAAE,CAAC,IAAI,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAClG;AAKA,IAAA,oBAAoB,CAAC,OAAgB,EAAA;AACnC,QAAA,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC;IAClC;AAEA,IAAA,MAAM,aAAa,GAAA;AACjB,QAAA,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE;QACnC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,aAAa,CAAC,CAAC;IACvC;8GApBW,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA7B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,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EAAA,WAAA,EAAA,IAAA,EAAAC,EAAA,CAAA,qBAAA,EAAA,QAAA,EAAA,aAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACnB,sBAAsB,wIACtB,6BAA6B,EAAA,QAAA,EAAA,yBAAA,EAAA,MAAA,EAAA,CAAA,QAAA,CAAA,EAAA,OAAA,EAAA,CAAA,cAAA,EAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,IAAA,CAAA,SAAA,EAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAD,EAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,KAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAKpB,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAvBzC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,yBAAyB,EAAA,OAAA,EAG1B;wBACP,YAAY;wBACZ,YAAY;wBACZ,eAAe;wBACf,cAAc;wBACd,aAAa;wBACb,gBAAgB;wBAChB,aAAa;wBACb,iBAAiB;wBACjB,gBAAgB;wBAChB,eAAe;wBACf,gBAAgB;wBAChB,mBAAmB;wBACnB,sBAAsB;wBACtB,6BAA6B;AAC9B,qBAAA,EAAA,eAAA,EACgB,uBAAuB,CAAC,KAAK,EAAA,aAAA,EAC/B,iBAAiB,CAAC,IAAI,EAAA,QAAA,EAAA,2hEAAA,EAAA,MAAA,EAAA,CAAA,2yIAAA,EAAA,4QAAA,CAAA,EAAA;;;"}
@@ -234,7 +234,7 @@ class AXPTenantRequestComponent {
234
234
  this.toast.show({ color, title: toastTitle, content, timeOut });
235
235
  }
236
236
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPTenantRequestComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
237
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPTenantRequestComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<ng-container *translate=\"let t\">\n <div class=\"axp-auth-form axp-tenant-request-form\">\n <!-- ----- Success state after request is submitted ----- -->\n @if (submitted()) {\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:tenant-request.success.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:tenant-request.success.description' | translate | async }}\n </p>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:backLogin' | translate | async\"\n (onClick)=\"goToLogin()\"\n ></ax-button>\n }\n <!-- ----- Request form ----- -->\n @else {\n <div class=\"mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:tenant-request.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:tenant-request.hint' | translate | async }}\n </p>\n </div>\n <ax-form>\n <div class=\"axp-tenant-request-grid\">\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Company Name (title + name slug) ----- -->\n <ax-form-field class=\"axp-span-full\">\n <ax-label>{{ '@auth:tenant-request.fields.company-name' | translate | async }}</ax-label>\n <ax-text-box\n name=\"organization\"\n id=\"tenant-request-organization\"\n [autoComplete]=\"'organization'\"\n [(value)]=\"title\"\n [disabled]=\"submitting()\"\n (onBlur)=\"onCompanyNameBlur()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n <p class=\"mt-1 text-xs text-danger-600\">\n {{ '@auth:tenant-request.fields.company-name-hint' | translate | async }}\n </p>\n <!-- ----- Inline hint when the unique name is already taken ----- -->\n @if (nameAvailable() === false) {\n <p class=\"mt-1 text-xs text-danger-600\">\n {{ '@auth:tenant-request.error.name-taken' | translate | async }}\n </p>\n }\n <!-- ----- Inline hint while availability is being checked ----- -->\n @if (checkingName()) {\n <p class=\"mt-1 text-xs text-neutral-400\">\n {{ '@auth:tenant-request.checking-name' | translate | async }}\n </p>\n }\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Email ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.email' | translate | async }}</ax-label>\n <ax-text-box\n name=\"email\"\n id=\"tenant-request-email\"\n [autoComplete]=\"'email'\"\n [(value)]=\"email\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n <ax-validation-rule rule=\"email\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Confirm Email (form-only, not stored) ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.confirm-email' | translate | async }}</ax-label>\n <ax-text-box\n name=\"confirmEmail\"\n id=\"tenant-request-confirm-email\"\n [autoComplete]=\"'off'\"\n [(value)]=\"confirmEmail\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n <ax-validation-rule rule=\"email\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Business Phone ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.phone' | translate | async }}</ax-label>\n <ax-text-box\n name=\"tel\"\n id=\"tenant-request-phone\"\n [autoComplete]=\"'tel'\"\n [(value)]=\"phone\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: First Name ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.first-name' | translate | async }}</ax-label>\n <ax-text-box\n name=\"given-name\"\n id=\"tenant-request-first-name\"\n [autoComplete]=\"'given-name'\"\n [(value)]=\"firstName\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Last Name ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.last-name' | translate | async }}</ax-label>\n <ax-text-box\n name=\"family-name\"\n id=\"tenant-request-last-name\"\n [autoComplete]=\"'family-name'\"\n [(value)]=\"lastName\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Mobile Phone ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.mobile-phone' | translate | async }}</ax-label>\n <ax-text-box\n name=\"mobile\"\n id=\"tenant-request-mobile\"\n [autoComplete]=\"'tel-national'\"\n [(value)]=\"mobilePhone\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Street Address ----- -->\n <ax-form-field class=\"axp-span-full\">\n <ax-label>{{ '@auth:tenant-request.fields.street1' | translate | async }}</ax-label>\n <ax-text-box\n name=\"street-address\"\n id=\"tenant-request-street\"\n [autoComplete]=\"'street-address'\"\n [(value)]=\"street1\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Suburb ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.suburb' | translate | async }}</ax-label>\n <ax-text-box\n name=\"address-level2\"\n id=\"tenant-request-suburb\"\n [autoComplete]=\"'address-level2'\"\n [(value)]=\"suburb\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: State ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.state' | translate | async }}</ax-label>\n <ax-text-box\n name=\"address-level1\"\n id=\"tenant-request-state\"\n [autoComplete]=\"'address-level1'\"\n [(value)]=\"state\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Post Code ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.postal-code' | translate | async }}</ax-label>\n <ax-text-box\n name=\"postal-code\"\n id=\"tenant-request-postal-code\"\n [autoComplete]=\"'postal-code'\"\n [(value)]=\"postalCode\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Country ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.country' | translate | async }}</ax-label>\n <ax-select-box\n name=\"country\"\n [(value)]=\"country\"\n [dataSource]=\"countryOptions()\"\n textField=\"title\"\n valueField=\"id\"\n [disabled]=\"submitting()\"\n ></ax-select-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Referral Code ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.referral-code' | translate | async }}</ax-label>\n <ax-text-box\n name=\"referral-code\"\n id=\"tenant-request-referral\"\n [autoComplete]=\"'off'\"\n [(value)]=\"referralCode\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Subscription Plan (required by request flow) ----- -->\n <ax-form-field class=\"axp-span-full\">\n <ax-label>{{ '@auth:tenant-request.fields.plan' | translate | async }}</ax-label>\n <ax-select-box\n name=\"planId\"\n [(value)]=\"planId\"\n [dataSource]=\"planOptions()\"\n textField=\"title\"\n valueField=\"id\"\n [disabled]=\"submitting()\"\n [placeholder]=\"('@auth:tenant-request.fields.plan-placeholder' | translate | async) ?? ''\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-select-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Terms ----- -->\n <div class=\"axp-span-full flex items-start gap-2 mt-1\">\n <ax-check-box [(ngModel)]=\"termsAccepted\" [disabled]=\"submitting()\"></ax-check-box>\n <ax-label class=\"mb-0 text-sm leading-snug\">\n {{ '@auth:tenant-request.extra.terms-label' | translate | async }}\n </ax-label>\n </div>\n </div>\n\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:tenant-request.submit' | translate | async\"\n [disabled]=\"\n submitting() ||\n !title.trim() ||\n !planId.trim() ||\n !email.trim() ||\n !confirmEmail.trim() ||\n !firstName.trim() ||\n !lastName.trim() ||\n !termsAccepted ||\n nameAvailable() === false\n \"\n (onClick)=\"submit()\"\n ></ax-button>\n\n <p class=\"text-center mt-6 text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a\n [routerLink]=\"['/auth/login']\"\n class=\"text-primary font-medium cursor-pointer hover:underline\"\n >\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </ax-form>\n }\n </div>\n</ng-container>\n", styles: [":host{display:block;width:100%}.axp-auth-form{width:100%;margin-inline:auto}@media(min-width:768px){.axp-tenant-request-form{width:min(48rem,100%);max-width:100%}}.axp-auth-form ax-form,.axp-auth-form ax-form-field,.axp-auth-form ax-text-box,.axp-auth-form ax-select-box{display:block;width:100%}.axp-tenant-request-grid{display:grid;grid-template-columns:1fr;gap:1rem}@media(min-width:768px){.axp-tenant-request-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem 1.25rem}.axp-span-full{grid-column:1 / -1}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i1$1.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "component", type: i1$1.AXFormComponent, selector: "ax-form", inputs: ["disabled", "readonly", "labelMode", "look", "messageStyle", "updateOn", "inUserInteractionActive"], outputs: ["onValidate", "updateOnChange"] }, { kind: "directive", type: i1$1.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message", "disabled"] }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "component", type: i2.AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "maskPattern", "customTokens", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress", "onMaskChanged"] }, { 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: AXCheckBoxModule }, { kind: "component", type: i7.AXCheckBoxComponent, selector: "ax-check-box", inputs: ["disabled", "tabIndex", "readonly", "color", "value", "name", "id", "isLoading", "indeterminate"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1$2.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i4$1.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i5.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i6.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "pipe", type: i5$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
237
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPTenantRequestComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<ng-container *translate=\"let t\">\n <div class=\"axp-auth-form axp-tenant-request-form\">\n <!-- ----- Success state after request is submitted ----- -->\n @if (submitted()) {\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:tenant-request.success.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:tenant-request.success.description' | translate | async }}\n </p>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:backLogin' | translate | async\"\n (onClick)=\"goToLogin()\"\n ></ax-button>\n }\n <!-- ----- Request form ----- -->\n @else {\n <div class=\"mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:tenant-request.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:tenant-request.hint' | translate | async }}\n </p>\n </div>\n <ax-form>\n <div class=\"axp-tenant-request-grid\">\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Company Name (title + name slug) ----- -->\n <ax-form-field class=\"axp-span-full\">\n <ax-label>{{ '@auth:tenant-request.fields.company-name' | translate | async }}</ax-label>\n <ax-text-box\n name=\"organization\"\n id=\"tenant-request-organization\"\n [autoComplete]=\"'organization'\"\n [(value)]=\"title\"\n [disabled]=\"submitting()\"\n (onBlur)=\"onCompanyNameBlur()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n <p class=\"mt-1 text-xs text-danger-600\">\n {{ '@auth:tenant-request.fields.company-name-hint' | translate | async }}\n </p>\n <!-- ----- Inline hint when the unique name is already taken ----- -->\n @if (nameAvailable() === false) {\n <p class=\"mt-1 text-xs text-danger-600\">\n {{ '@auth:tenant-request.error.name-taken' | translate | async }}\n </p>\n }\n <!-- ----- Inline hint while availability is being checked ----- -->\n @if (checkingName()) {\n <p class=\"mt-1 text-xs text-neutral-400\">\n {{ '@auth:tenant-request.checking-name' | translate | async }}\n </p>\n }\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Email ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.email' | translate | async }}</ax-label>\n <ax-text-box\n name=\"email\"\n id=\"tenant-request-email\"\n [autoComplete]=\"'email'\"\n [(value)]=\"email\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n <ax-validation-rule rule=\"email\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Confirm Email (form-only, not stored) ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.confirm-email' | translate | async }}</ax-label>\n <ax-text-box\n name=\"confirmEmail\"\n id=\"tenant-request-confirm-email\"\n [autoComplete]=\"'off'\"\n [(value)]=\"confirmEmail\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n <ax-validation-rule rule=\"email\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Business Phone ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.phone' | translate | async }}</ax-label>\n <ax-text-box\n name=\"tel\"\n id=\"tenant-request-phone\"\n [autoComplete]=\"'tel'\"\n [(value)]=\"phone\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: First Name ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.first-name' | translate | async }}</ax-label>\n <ax-text-box\n name=\"given-name\"\n id=\"tenant-request-first-name\"\n [autoComplete]=\"'given-name'\"\n [(value)]=\"firstName\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Last Name ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.last-name' | translate | async }}</ax-label>\n <ax-text-box\n name=\"family-name\"\n id=\"tenant-request-last-name\"\n [autoComplete]=\"'family-name'\"\n [(value)]=\"lastName\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Mobile Phone ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.mobile-phone' | translate | async }}</ax-label>\n <ax-text-box\n name=\"mobile\"\n id=\"tenant-request-mobile\"\n [autoComplete]=\"'tel-national'\"\n [(value)]=\"mobilePhone\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Street Address ----- -->\n <ax-form-field class=\"axp-span-full\">\n <ax-label>{{ '@auth:tenant-request.fields.street1' | translate | async }}</ax-label>\n <ax-text-box\n name=\"street-address\"\n id=\"tenant-request-street\"\n [autoComplete]=\"'street-address'\"\n [(value)]=\"street1\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Suburb ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.suburb' | translate | async }}</ax-label>\n <ax-text-box\n name=\"address-level2\"\n id=\"tenant-request-suburb\"\n [autoComplete]=\"'address-level2'\"\n [(value)]=\"suburb\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: State ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.state' | translate | async }}</ax-label>\n <ax-text-box\n name=\"address-level1\"\n id=\"tenant-request-state\"\n [autoComplete]=\"'address-level1'\"\n [(value)]=\"state\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Post Code ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.postal-code' | translate | async }}</ax-label>\n <ax-text-box\n name=\"postal-code\"\n id=\"tenant-request-postal-code\"\n [autoComplete]=\"'postal-code'\"\n [(value)]=\"postalCode\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Country ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.country' | translate | async }}</ax-label>\n <ax-select-box\n name=\"country\"\n [(value)]=\"country\"\n [dataSource]=\"countryOptions()\"\n textField=\"title\"\n valueField=\"id\"\n [disabled]=\"submitting()\"\n ></ax-select-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Referral Code ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.referral-code' | translate | async }}</ax-label>\n <ax-text-box\n name=\"referral-code\"\n id=\"tenant-request-referral\"\n [autoComplete]=\"'off'\"\n [(value)]=\"referralCode\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Subscription Plan (required by request flow) ----- -->\n <ax-form-field class=\"axp-span-full\">\n <ax-label>{{ '@auth:tenant-request.fields.plan' | translate | async }}</ax-label>\n <ax-select-box\n name=\"planId\"\n [(value)]=\"planId\"\n [dataSource]=\"planOptions()\"\n textField=\"title\"\n valueField=\"id\"\n [disabled]=\"submitting()\"\n [placeholder]=\"('@auth:tenant-request.fields.plan-placeholder' | translate | async) ?? ''\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-select-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Terms ----- -->\n <div class=\"axp-span-full flex items-start gap-2 mt-1\">\n <ax-check-box [(ngModel)]=\"termsAccepted\" [disabled]=\"submitting()\"></ax-check-box>\n <ax-label class=\"mb-0 text-sm leading-snug\">\n {{ '@auth:tenant-request.extra.terms-label' | translate | async }}\n </ax-label>\n </div>\n </div>\n\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:tenant-request.submit' | translate | async\"\n [disabled]=\"\n submitting() ||\n !title.trim() ||\n !planId.trim() ||\n !email.trim() ||\n !confirmEmail.trim() ||\n !firstName.trim() ||\n !lastName.trim() ||\n !termsAccepted ||\n nameAvailable() === false\n \"\n (onClick)=\"submit()\"\n ></ax-button>\n\n <p class=\"text-center mt-6 text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a\n [routerLink]=\"['/auth/login']\"\n class=\"text-primary font-medium cursor-pointer hover:underline\"\n >\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </ax-form>\n }\n </div>\n</ng-container>\n", styles: [":host{display:block;width:100%}.axp-auth-form{width:100%;margin-inline:auto}@media(min-width:768px){.axp-tenant-request-form{width:min(48rem,100%);max-width:100%}}.axp-auth-form ax-form,.axp-auth-form ax-form-field,.axp-auth-form ax-text-box,.axp-auth-form ax-select-box{display:block;width:100%}.axp-tenant-request-grid{display:grid;grid-template-columns:1fr;gap:1rem}@media(min-width:768px){.axp-tenant-request-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem 1.25rem}.axp-span-full{grid-column:1 / -1}}\n/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i1$1.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "component", type: i1$1.AXFormComponent, selector: "ax-form", inputs: ["disabled", "readonly", "labelMode", "look", "messageStyle", "updateOn", "inUserInteractionActive"], outputs: ["onValidate", "updateOnChange"] }, { kind: "directive", type: i1$1.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message", "disabled"] }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "component", type: i2.AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "maskPattern", "customTokens", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress", "onMaskChanged"] }, { 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: AXCheckBoxModule }, { kind: "component", type: i7.AXCheckBoxComponent, selector: "ax-check-box", inputs: ["disabled", "tabIndex", "readonly", "color", "value", "name", "id", "isLoading", "indeterminate"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1$2.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i4$1.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i5.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i6.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "pipe", type: i5$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
238
238
  }
239
239
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPTenantRequestComponent, decorators: [{
240
240
  type: Component,
@@ -249,8 +249,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
249
249
  AXLabelModule,
250
250
  AXTranslationModule,
251
251
  RouterModule,
252
- ], template: "<ng-container *translate=\"let t\">\n <div class=\"axp-auth-form axp-tenant-request-form\">\n <!-- ----- Success state after request is submitted ----- -->\n @if (submitted()) {\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:tenant-request.success.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:tenant-request.success.description' | translate | async }}\n </p>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:backLogin' | translate | async\"\n (onClick)=\"goToLogin()\"\n ></ax-button>\n }\n <!-- ----- Request form ----- -->\n @else {\n <div class=\"mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:tenant-request.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:tenant-request.hint' | translate | async }}\n </p>\n </div>\n <ax-form>\n <div class=\"axp-tenant-request-grid\">\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Company Name (title + name slug) ----- -->\n <ax-form-field class=\"axp-span-full\">\n <ax-label>{{ '@auth:tenant-request.fields.company-name' | translate | async }}</ax-label>\n <ax-text-box\n name=\"organization\"\n id=\"tenant-request-organization\"\n [autoComplete]=\"'organization'\"\n [(value)]=\"title\"\n [disabled]=\"submitting()\"\n (onBlur)=\"onCompanyNameBlur()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n <p class=\"mt-1 text-xs text-danger-600\">\n {{ '@auth:tenant-request.fields.company-name-hint' | translate | async }}\n </p>\n <!-- ----- Inline hint when the unique name is already taken ----- -->\n @if (nameAvailable() === false) {\n <p class=\"mt-1 text-xs text-danger-600\">\n {{ '@auth:tenant-request.error.name-taken' | translate | async }}\n </p>\n }\n <!-- ----- Inline hint while availability is being checked ----- -->\n @if (checkingName()) {\n <p class=\"mt-1 text-xs text-neutral-400\">\n {{ '@auth:tenant-request.checking-name' | translate | async }}\n </p>\n }\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Email ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.email' | translate | async }}</ax-label>\n <ax-text-box\n name=\"email\"\n id=\"tenant-request-email\"\n [autoComplete]=\"'email'\"\n [(value)]=\"email\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n <ax-validation-rule rule=\"email\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Confirm Email (form-only, not stored) ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.confirm-email' | translate | async }}</ax-label>\n <ax-text-box\n name=\"confirmEmail\"\n id=\"tenant-request-confirm-email\"\n [autoComplete]=\"'off'\"\n [(value)]=\"confirmEmail\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n <ax-validation-rule rule=\"email\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Business Phone ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.phone' | translate | async }}</ax-label>\n <ax-text-box\n name=\"tel\"\n id=\"tenant-request-phone\"\n [autoComplete]=\"'tel'\"\n [(value)]=\"phone\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: First Name ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.first-name' | translate | async }}</ax-label>\n <ax-text-box\n name=\"given-name\"\n id=\"tenant-request-first-name\"\n [autoComplete]=\"'given-name'\"\n [(value)]=\"firstName\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Last Name ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.last-name' | translate | async }}</ax-label>\n <ax-text-box\n name=\"family-name\"\n id=\"tenant-request-last-name\"\n [autoComplete]=\"'family-name'\"\n [(value)]=\"lastName\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Mobile Phone ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.mobile-phone' | translate | async }}</ax-label>\n <ax-text-box\n name=\"mobile\"\n id=\"tenant-request-mobile\"\n [autoComplete]=\"'tel-national'\"\n [(value)]=\"mobilePhone\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Street Address ----- -->\n <ax-form-field class=\"axp-span-full\">\n <ax-label>{{ '@auth:tenant-request.fields.street1' | translate | async }}</ax-label>\n <ax-text-box\n name=\"street-address\"\n id=\"tenant-request-street\"\n [autoComplete]=\"'street-address'\"\n [(value)]=\"street1\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Suburb ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.suburb' | translate | async }}</ax-label>\n <ax-text-box\n name=\"address-level2\"\n id=\"tenant-request-suburb\"\n [autoComplete]=\"'address-level2'\"\n [(value)]=\"suburb\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: State ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.state' | translate | async }}</ax-label>\n <ax-text-box\n name=\"address-level1\"\n id=\"tenant-request-state\"\n [autoComplete]=\"'address-level1'\"\n [(value)]=\"state\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Post Code ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.postal-code' | translate | async }}</ax-label>\n <ax-text-box\n name=\"postal-code\"\n id=\"tenant-request-postal-code\"\n [autoComplete]=\"'postal-code'\"\n [(value)]=\"postalCode\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Country ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.country' | translate | async }}</ax-label>\n <ax-select-box\n name=\"country\"\n [(value)]=\"country\"\n [dataSource]=\"countryOptions()\"\n textField=\"title\"\n valueField=\"id\"\n [disabled]=\"submitting()\"\n ></ax-select-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Referral Code ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.referral-code' | translate | async }}</ax-label>\n <ax-text-box\n name=\"referral-code\"\n id=\"tenant-request-referral\"\n [autoComplete]=\"'off'\"\n [(value)]=\"referralCode\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Subscription Plan (required by request flow) ----- -->\n <ax-form-field class=\"axp-span-full\">\n <ax-label>{{ '@auth:tenant-request.fields.plan' | translate | async }}</ax-label>\n <ax-select-box\n name=\"planId\"\n [(value)]=\"planId\"\n [dataSource]=\"planOptions()\"\n textField=\"title\"\n valueField=\"id\"\n [disabled]=\"submitting()\"\n [placeholder]=\"('@auth:tenant-request.fields.plan-placeholder' | translate | async) ?? ''\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-select-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Terms ----- -->\n <div class=\"axp-span-full flex items-start gap-2 mt-1\">\n <ax-check-box [(ngModel)]=\"termsAccepted\" [disabled]=\"submitting()\"></ax-check-box>\n <ax-label class=\"mb-0 text-sm leading-snug\">\n {{ '@auth:tenant-request.extra.terms-label' | translate | async }}\n </ax-label>\n </div>\n </div>\n\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:tenant-request.submit' | translate | async\"\n [disabled]=\"\n submitting() ||\n !title.trim() ||\n !planId.trim() ||\n !email.trim() ||\n !confirmEmail.trim() ||\n !firstName.trim() ||\n !lastName.trim() ||\n !termsAccepted ||\n nameAvailable() === false\n \"\n (onClick)=\"submit()\"\n ></ax-button>\n\n <p class=\"text-center mt-6 text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a\n [routerLink]=\"['/auth/login']\"\n class=\"text-primary font-medium cursor-pointer hover:underline\"\n >\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </ax-form>\n }\n </div>\n</ng-container>\n", styles: [":host{display:block;width:100%}.axp-auth-form{width:100%;margin-inline:auto}@media(min-width:768px){.axp-tenant-request-form{width:min(48rem,100%);max-width:100%}}.axp-auth-form ax-form,.axp-auth-form ax-form-field,.axp-auth-form ax-text-box,.axp-auth-form ax-select-box{display:block;width:100%}.axp-tenant-request-grid{display:grid;grid-template-columns:1fr;gap:1rem}@media(min-width:768px){.axp-tenant-request-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem 1.25rem}.axp-span-full{grid-column:1 / -1}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
252
+ ], template: "<ng-container *translate=\"let t\">\n <div class=\"axp-auth-form axp-tenant-request-form\">\n <!-- ----- Success state after request is submitted ----- -->\n @if (submitted()) {\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:tenant-request.success.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:tenant-request.success.description' | translate | async }}\n </p>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:backLogin' | translate | async\"\n (onClick)=\"goToLogin()\"\n ></ax-button>\n }\n <!-- ----- Request form ----- -->\n @else {\n <div class=\"mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:tenant-request.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:tenant-request.hint' | translate | async }}\n </p>\n </div>\n <ax-form>\n <div class=\"axp-tenant-request-grid\">\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Company Name (title + name slug) ----- -->\n <ax-form-field class=\"axp-span-full\">\n <ax-label>{{ '@auth:tenant-request.fields.company-name' | translate | async }}</ax-label>\n <ax-text-box\n name=\"organization\"\n id=\"tenant-request-organization\"\n [autoComplete]=\"'organization'\"\n [(value)]=\"title\"\n [disabled]=\"submitting()\"\n (onBlur)=\"onCompanyNameBlur()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n <p class=\"mt-1 text-xs text-danger-600\">\n {{ '@auth:tenant-request.fields.company-name-hint' | translate | async }}\n </p>\n <!-- ----- Inline hint when the unique name is already taken ----- -->\n @if (nameAvailable() === false) {\n <p class=\"mt-1 text-xs text-danger-600\">\n {{ '@auth:tenant-request.error.name-taken' | translate | async }}\n </p>\n }\n <!-- ----- Inline hint while availability is being checked ----- -->\n @if (checkingName()) {\n <p class=\"mt-1 text-xs text-neutral-400\">\n {{ '@auth:tenant-request.checking-name' | translate | async }}\n </p>\n }\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Email ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.email' | translate | async }}</ax-label>\n <ax-text-box\n name=\"email\"\n id=\"tenant-request-email\"\n [autoComplete]=\"'email'\"\n [(value)]=\"email\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n <ax-validation-rule rule=\"email\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Confirm Email (form-only, not stored) ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.confirm-email' | translate | async }}</ax-label>\n <ax-text-box\n name=\"confirmEmail\"\n id=\"tenant-request-confirm-email\"\n [autoComplete]=\"'off'\"\n [(value)]=\"confirmEmail\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n <ax-validation-rule rule=\"email\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Business Phone ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.phone' | translate | async }}</ax-label>\n <ax-text-box\n name=\"tel\"\n id=\"tenant-request-phone\"\n [autoComplete]=\"'tel'\"\n [(value)]=\"phone\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: First Name ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.first-name' | translate | async }}</ax-label>\n <ax-text-box\n name=\"given-name\"\n id=\"tenant-request-first-name\"\n [autoComplete]=\"'given-name'\"\n [(value)]=\"firstName\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Last Name ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.last-name' | translate | async }}</ax-label>\n <ax-text-box\n name=\"family-name\"\n id=\"tenant-request-last-name\"\n [autoComplete]=\"'family-name'\"\n [(value)]=\"lastName\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Mobile Phone ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.mobile-phone' | translate | async }}</ax-label>\n <ax-text-box\n name=\"mobile\"\n id=\"tenant-request-mobile\"\n [autoComplete]=\"'tel-national'\"\n [(value)]=\"mobilePhone\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Street Address ----- -->\n <ax-form-field class=\"axp-span-full\">\n <ax-label>{{ '@auth:tenant-request.fields.street1' | translate | async }}</ax-label>\n <ax-text-box\n name=\"street-address\"\n id=\"tenant-request-street\"\n [autoComplete]=\"'street-address'\"\n [(value)]=\"street1\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Suburb ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.suburb' | translate | async }}</ax-label>\n <ax-text-box\n name=\"address-level2\"\n id=\"tenant-request-suburb\"\n [autoComplete]=\"'address-level2'\"\n [(value)]=\"suburb\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: State ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.state' | translate | async }}</ax-label>\n <ax-text-box\n name=\"address-level1\"\n id=\"tenant-request-state\"\n [autoComplete]=\"'address-level1'\"\n [(value)]=\"state\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Post Code ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.postal-code' | translate | async }}</ax-label>\n <ax-text-box\n name=\"postal-code\"\n id=\"tenant-request-postal-code\"\n [autoComplete]=\"'postal-code'\"\n [(value)]=\"postalCode\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Country ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.country' | translate | async }}</ax-label>\n <ax-select-box\n name=\"country\"\n [(value)]=\"country\"\n [dataSource]=\"countryOptions()\"\n textField=\"title\"\n valueField=\"id\"\n [disabled]=\"submitting()\"\n ></ax-select-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Referral Code ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.referral-code' | translate | async }}</ax-label>\n <ax-text-box\n name=\"referral-code\"\n id=\"tenant-request-referral\"\n [autoComplete]=\"'off'\"\n [(value)]=\"referralCode\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Subscription Plan (required by request flow) ----- -->\n <ax-form-field class=\"axp-span-full\">\n <ax-label>{{ '@auth:tenant-request.fields.plan' | translate | async }}</ax-label>\n <ax-select-box\n name=\"planId\"\n [(value)]=\"planId\"\n [dataSource]=\"planOptions()\"\n textField=\"title\"\n valueField=\"id\"\n [disabled]=\"submitting()\"\n [placeholder]=\"('@auth:tenant-request.fields.plan-placeholder' | translate | async) ?? ''\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-select-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Terms ----- -->\n <div class=\"axp-span-full flex items-start gap-2 mt-1\">\n <ax-check-box [(ngModel)]=\"termsAccepted\" [disabled]=\"submitting()\"></ax-check-box>\n <ax-label class=\"mb-0 text-sm leading-snug\">\n {{ '@auth:tenant-request.extra.terms-label' | translate | async }}\n </ax-label>\n </div>\n </div>\n\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:tenant-request.submit' | translate | async\"\n [disabled]=\"\n submitting() ||\n !title.trim() ||\n !planId.trim() ||\n !email.trim() ||\n !confirmEmail.trim() ||\n !firstName.trim() ||\n !lastName.trim() ||\n !termsAccepted ||\n nameAvailable() === false\n \"\n (onClick)=\"submit()\"\n ></ax-button>\n\n <p class=\"text-center mt-6 text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a\n [routerLink]=\"['/auth/login']\"\n class=\"text-primary font-medium cursor-pointer hover:underline\"\n >\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </ax-form>\n }\n </div>\n</ng-container>\n", styles: [":host{display:block;width:100%}.axp-auth-form{width:100%;margin-inline:auto}@media(min-width:768px){.axp-tenant-request-form{width:min(48rem,100%);max-width:100%}}.axp-auth-form ax-form,.axp-auth-form ax-form-field,.axp-auth-form ax-text-box,.axp-auth-form ax-select-box{display:block;width:100%}.axp-tenant-request-grid{display:grid;grid-template-columns:1fr;gap:1rem}@media(min-width:768px){.axp-tenant-request-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem 1.25rem}.axp-span-full{grid-column:1 / -1}}\n/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */\n"] }]
253
253
  }] });
254
254
 
255
255
  export { AXPTenantRequestComponent };
256
- //# sourceMappingURL=acorex-platform-module-auth-client-tenant-request.component-CG74dqMX.mjs.map
256
+ //# sourceMappingURL=acorex-platform-module-auth-client-tenant-request.component-DGmq6I9N.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-auth-client-tenant-request.component-CG74dqMX.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/tenant-request/tenant-request.component.ts","../../../../libs/modules/auth/client/src/lib/pages/tenant-request/tenant-request.component.html"],"sourcesContent":["import { AXPCommandService } from '@acorex-platform/framework-client/runtime';\nimport {\n AXMTenantManagementServerCommands,\n type AXMCheckTenantNameAvailableResult,\n type AXMListPublicSubscriptionPlansResult,\n type AXMPublicSubscriptionPlanItem,\n} from '@acorex-platform/module-tenant-management-client/contracts';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXCheckBoxModule } from '@acorex/components/check-box';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXSelectBoxModule } from '@acorex/components/select-box';\nimport { AXTextBoxModule } from '@acorex/components/text-box';\nimport { AXToastService } from '@acorex/components/toast';\nimport {\n AXTranslationModule,\n AXTranslationService,\n resolveMultiLanguageString,\n} from '@acorex/core/translation';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject, OnInit, signal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { Router, RouterModule } from '@angular/router';\n\n//#region ----- Types -----\n\ninterface PlanOption {\n id: string;\n title: string;\n}\n\ninterface CountryOption {\n id: string;\n title: string;\n}\n\n//#endregion\n\n//#region ----- Helpers -----\n\n/** Slug for Tenant.name from company title (letters/digits/hyphens only). */\nfunction slugifyTenantName(companyName: string): string {\n return companyName\n .trim()\n .toLowerCase()\n .replace(/[^a-z0-9]+/g, '-')\n .replace(/^-+|-+$/g, '')\n .slice(0, 64);\n}\n\n//#endregion\n\n//#region ----- Component -----\n\n@Component({\n templateUrl: './tenant-request.component.html',\n styleUrls: ['./tenant-request.component.css'],\n changeDetection: ChangeDetectionStrategy.Eager,\n imports: [\n CommonModule,\n FormsModule,\n AXFormModule,\n AXTextBoxModule,\n AXSelectBoxModule,\n AXCheckBoxModule,\n AXButtonModule,\n AXLabelModule,\n AXTranslationModule,\n RouterModule,\n ],\n})\nexport class AXPTenantRequestComponent implements OnInit {\n //#region ----- Services & Dependencies -----\n\n private readonly commandService = inject(AXPCommandService);\n private readonly toast = inject(AXToastService);\n private readonly translation = inject(AXTranslationService);\n private readonly router = inject(Router);\n\n //#endregion\n\n //#region ----- State Signals -----\n\n protected readonly submitting = signal(false);\n protected readonly submitted = signal(false);\n protected readonly checkingName = signal(false);\n protected readonly nameAvailable = signal<boolean | null>(null);\n protected readonly planOptions = signal<PlanOption[]>([]);\n protected readonly countryOptions = signal<CountryOption[]>([]);\n\n //#endregion\n\n //#region ----- Form model (Tenant static + Extra) -----\n\n /** Company Name → Tenant.title; also drives Tenant.name slug. */\n protected title = '';\n protected planId = '';\n protected email = '';\n protected confirmEmail = '';\n protected phone = '';\n protected street1 = '';\n protected postalCode = '';\n\n /** Extra bag fields (Safetyminder). */\n protected firstName = '';\n protected lastName = '';\n protected mobilePhone = '';\n protected suburb = '';\n protected state = '';\n protected country = 'Australia';\n protected referralCode = '';\n protected termsAccepted = false;\n\n //#endregion\n\n //#region ----- Lifecycle -----\n\n async ngOnInit(): Promise<void> {\n await Promise.all([this.loadPlans(), this.loadCountryOptions()]);\n }\n\n //#endregion\n\n //#region ----- Event Handlers -----\n\n protected goToLogin(): void {\n void this.router.navigate(['/auth/login']);\n }\n\n protected async onCompanyNameBlur(): Promise<void> {\n const name = slugifyTenantName(this.title);\n if (!name) {\n this.nameAvailable.set(null);\n return;\n }\n this.checkingName.set(true);\n try {\n const result = await this.commandService.execute(\n AXMTenantManagementServerCommands.CheckTenantNameAvailable,\n { name },\n );\n if (!result?.success) {\n this.nameAvailable.set(null);\n return;\n }\n const data = (result as { data?: AXMCheckTenantNameAvailableResult }).data;\n this.nameAvailable.set(data?.available === true);\n } catch {\n this.nameAvailable.set(null);\n } finally {\n this.checkingName.set(false);\n }\n }\n\n protected async submit(): Promise<void> {\n const title = this.title.trim();\n const name = slugifyTenantName(title);\n const planId = this.planId.trim();\n const email = this.email.trim().toLowerCase();\n const confirmEmail = this.confirmEmail.trim().toLowerCase();\n const phone = this.phone.trim();\n const street1 = this.street1.trim();\n const postalCode = this.postalCode.trim();\n\n if (!name || !title || !planId || !email || this.submitting() || this.submitted()) {\n return;\n }\n if (email !== confirmEmail) {\n await this.showToast(\n '@auth:tenant-request.error.title',\n '@auth:tenant-request.error.email-mismatch',\n 'Request Failed',\n 'Email and confirm email do not match.',\n );\n return;\n }\n if (!this.termsAccepted) {\n await this.showToast(\n '@auth:tenant-request.error.title',\n '@auth:tenant-request.error.terms-required',\n 'Request Failed',\n 'Please accept the terms to continue.',\n );\n return;\n }\n if (this.nameAvailable() === false) {\n await this.showNameTakenToast();\n return;\n }\n\n const extra: Record<string, unknown> = {\n firstName: this.firstName.trim(),\n lastName: this.lastName.trim(),\n mobilePhone: this.mobilePhone.trim(),\n suburb: this.suburb.trim(),\n state: this.state.trim(),\n country: String(this.country ?? '').trim(),\n referralCode: this.referralCode.trim(),\n termsAccepted: this.termsAccepted === true,\n };\n\n this.submitting.set(true);\n try {\n const result = await this.commandService.execute(\n AXMTenantManagementServerCommands.RequestTenantCreation,\n {\n name,\n title,\n planId,\n email,\n ...(phone ? { phone } : {}),\n ...(street1 ? { street1 } : {}),\n ...(postalCode ? { postalCode } : {}),\n extra,\n webOrigin: typeof window !== 'undefined' ? window.location.origin : undefined,\n },\n );\n if (!result?.success) {\n const code = typeof result?.message?.code === 'string' ? result.message.code : '';\n if (code === 'TENANT_REQUEST_NAME_TAKEN') {\n this.nameAvailable.set(false);\n await this.showNameTakenToast();\n return;\n }\n throw new Error('request failed');\n }\n this.submitted.set(true);\n await this.showToast(\n '@auth:tenant-request.success.title',\n '@auth:tenant-request.success.description',\n 'Request Submitted',\n 'We received your request. You will get an email when it is reviewed.',\n 'success',\n 5000,\n );\n } catch {\n await this.showToast(\n '@auth:tenant-request.error.title',\n '@auth:tenant-request.error.description',\n 'Request Failed',\n 'Unable to submit your request. Please try again later.',\n );\n } finally {\n this.submitting.set(false);\n }\n }\n\n //#endregion\n\n //#region ----- Data Loading -----\n\n private async loadPlans(): Promise<void> {\n try {\n const result = await this.commandService.execute(\n AXMTenantManagementServerCommands.ListPublicSubscriptionPlans,\n {},\n );\n if (!result?.success) {\n this.planOptions.set([]);\n return;\n }\n const payload = (result as { data?: AXMListPublicSubscriptionPlansResult }).data;\n const items = Array.isArray(payload?.items) ? payload.items : [];\n const locale = this.translation.getActiveLang?.() ?? 'en-US';\n this.planOptions.set(\n items\n .map((item: AXMPublicSubscriptionPlanItem) => {\n const id = String(item?.id ?? '').trim();\n if (!id) {\n return null;\n }\n const planTitle =\n resolveMultiLanguageString(item.title as never, locale).trim() ||\n String(item.code ?? id);\n return { id, title: planTitle };\n })\n .filter((row): row is PlanOption => row != null),\n );\n } catch {\n this.planOptions.set([]);\n }\n }\n\n private async loadCountryOptions(): Promise<void> {\n const [australia, newZealand, other] = await Promise.all([\n this.translation\n .translateAsync('@auth:tenant-request.extra.country-options.australia')\n .catch(() => 'Australia'),\n this.translation\n .translateAsync('@auth:tenant-request.extra.country-options.new-zealand')\n .catch(() => 'New Zealand'),\n this.translation\n .translateAsync('@auth:tenant-request.extra.country-options.other')\n .catch(() => 'Other'),\n ]);\n this.countryOptions.set([\n { id: 'Australia', title: australia },\n { id: 'New Zealand', title: newZealand },\n { id: 'Other', title: other },\n ]);\n }\n\n private async showNameTakenToast(): Promise<void> {\n await this.showToast(\n '@auth:tenant-request.error.title',\n '@auth:tenant-request.error.name-taken',\n 'Request Failed',\n 'This organization name is already taken. Please choose another.',\n );\n }\n\n private async showToast(\n titleKey: string,\n contentKey: string,\n titleFallback: string,\n contentFallback: string,\n color: 'success' | 'danger' = 'danger',\n timeOut = 4000,\n ): Promise<void> {\n const [toastTitle, content] = await Promise.all([\n this.translation.translateAsync(titleKey).catch(() => titleFallback),\n this.translation.translateAsync(contentKey).catch(() => contentFallback),\n ]);\n this.toast.show({ color, title: toastTitle, content, timeOut });\n }\n\n //#endregion\n}\n\n//#endregion\n","<ng-container *translate=\"let t\">\n <div class=\"axp-auth-form axp-tenant-request-form\">\n <!-- ----- Success state after request is submitted ----- -->\n @if (submitted()) {\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:tenant-request.success.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:tenant-request.success.description' | translate | async }}\n </p>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:backLogin' | translate | async\"\n (onClick)=\"goToLogin()\"\n ></ax-button>\n }\n <!-- ----- Request form ----- -->\n @else {\n <div class=\"mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:tenant-request.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:tenant-request.hint' | translate | async }}\n </p>\n </div>\n <ax-form>\n <div class=\"axp-tenant-request-grid\">\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Company Name (title + name slug) ----- -->\n <ax-form-field class=\"axp-span-full\">\n <ax-label>{{ '@auth:tenant-request.fields.company-name' | translate | async }}</ax-label>\n <ax-text-box\n name=\"organization\"\n id=\"tenant-request-organization\"\n [autoComplete]=\"'organization'\"\n [(value)]=\"title\"\n [disabled]=\"submitting()\"\n (onBlur)=\"onCompanyNameBlur()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n <p class=\"mt-1 text-xs text-danger-600\">\n {{ '@auth:tenant-request.fields.company-name-hint' | translate | async }}\n </p>\n <!-- ----- Inline hint when the unique name is already taken ----- -->\n @if (nameAvailable() === false) {\n <p class=\"mt-1 text-xs text-danger-600\">\n {{ '@auth:tenant-request.error.name-taken' | translate | async }}\n </p>\n }\n <!-- ----- Inline hint while availability is being checked ----- -->\n @if (checkingName()) {\n <p class=\"mt-1 text-xs text-neutral-400\">\n {{ '@auth:tenant-request.checking-name' | translate | async }}\n </p>\n }\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Email ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.email' | translate | async }}</ax-label>\n <ax-text-box\n name=\"email\"\n id=\"tenant-request-email\"\n [autoComplete]=\"'email'\"\n [(value)]=\"email\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n <ax-validation-rule rule=\"email\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Confirm Email (form-only, not stored) ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.confirm-email' | translate | async }}</ax-label>\n <ax-text-box\n name=\"confirmEmail\"\n id=\"tenant-request-confirm-email\"\n [autoComplete]=\"'off'\"\n [(value)]=\"confirmEmail\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n <ax-validation-rule rule=\"email\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Business Phone ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.phone' | translate | async }}</ax-label>\n <ax-text-box\n name=\"tel\"\n id=\"tenant-request-phone\"\n [autoComplete]=\"'tel'\"\n [(value)]=\"phone\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: First Name ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.first-name' | translate | async }}</ax-label>\n <ax-text-box\n name=\"given-name\"\n id=\"tenant-request-first-name\"\n [autoComplete]=\"'given-name'\"\n [(value)]=\"firstName\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Last Name ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.last-name' | translate | async }}</ax-label>\n <ax-text-box\n name=\"family-name\"\n id=\"tenant-request-last-name\"\n [autoComplete]=\"'family-name'\"\n [(value)]=\"lastName\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Mobile Phone ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.mobile-phone' | translate | async }}</ax-label>\n <ax-text-box\n name=\"mobile\"\n id=\"tenant-request-mobile\"\n [autoComplete]=\"'tel-national'\"\n [(value)]=\"mobilePhone\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Street Address ----- -->\n <ax-form-field class=\"axp-span-full\">\n <ax-label>{{ '@auth:tenant-request.fields.street1' | translate | async }}</ax-label>\n <ax-text-box\n name=\"street-address\"\n id=\"tenant-request-street\"\n [autoComplete]=\"'street-address'\"\n [(value)]=\"street1\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Suburb ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.suburb' | translate | async }}</ax-label>\n <ax-text-box\n name=\"address-level2\"\n id=\"tenant-request-suburb\"\n [autoComplete]=\"'address-level2'\"\n [(value)]=\"suburb\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: State ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.state' | translate | async }}</ax-label>\n <ax-text-box\n name=\"address-level1\"\n id=\"tenant-request-state\"\n [autoComplete]=\"'address-level1'\"\n [(value)]=\"state\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Post Code ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.postal-code' | translate | async }}</ax-label>\n <ax-text-box\n name=\"postal-code\"\n id=\"tenant-request-postal-code\"\n [autoComplete]=\"'postal-code'\"\n [(value)]=\"postalCode\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Country ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.country' | translate | async }}</ax-label>\n <ax-select-box\n name=\"country\"\n [(value)]=\"country\"\n [dataSource]=\"countryOptions()\"\n textField=\"title\"\n valueField=\"id\"\n [disabled]=\"submitting()\"\n ></ax-select-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Referral Code ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.referral-code' | translate | async }}</ax-label>\n <ax-text-box\n name=\"referral-code\"\n id=\"tenant-request-referral\"\n [autoComplete]=\"'off'\"\n [(value)]=\"referralCode\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Subscription Plan (required by request flow) ----- -->\n <ax-form-field class=\"axp-span-full\">\n <ax-label>{{ '@auth:tenant-request.fields.plan' | translate | async }}</ax-label>\n <ax-select-box\n name=\"planId\"\n [(value)]=\"planId\"\n [dataSource]=\"planOptions()\"\n textField=\"title\"\n valueField=\"id\"\n [disabled]=\"submitting()\"\n [placeholder]=\"('@auth:tenant-request.fields.plan-placeholder' | translate | async) ?? ''\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-select-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Terms ----- -->\n <div class=\"axp-span-full flex items-start gap-2 mt-1\">\n <ax-check-box [(ngModel)]=\"termsAccepted\" [disabled]=\"submitting()\"></ax-check-box>\n <ax-label class=\"mb-0 text-sm leading-snug\">\n {{ '@auth:tenant-request.extra.terms-label' | translate | async }}\n </ax-label>\n </div>\n </div>\n\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:tenant-request.submit' | translate | async\"\n [disabled]=\"\n submitting() ||\n !title.trim() ||\n !planId.trim() ||\n !email.trim() ||\n !confirmEmail.trim() ||\n !firstName.trim() ||\n !lastName.trim() ||\n !termsAccepted ||\n nameAvailable() === false\n \"\n (onClick)=\"submit()\"\n ></ax-button>\n\n <p class=\"text-center mt-6 text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a\n [routerLink]=\"['/auth/login']\"\n class=\"text-primary font-medium cursor-pointer hover:underline\"\n >\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </ax-form>\n }\n </div>\n</ng-container>\n"],"names":["i2","i5","i7","i8","i9","i10"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA;AAEA;AAEA;AACA,SAAS,iBAAiB,CAAC,WAAmB,EAAA;AAC5C,IAAA,OAAO;AACJ,SAAA,IAAI;AACJ,SAAA,WAAW;AACX,SAAA,OAAO,CAAC,aAAa,EAAE,GAAG;AAC1B,SAAA,OAAO,CAAC,UAAU,EAAE,EAAE;AACtB,SAAA,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC;AACjB;AAEA;AAEA;MAmBa,yBAAyB,CAAA;AAjBtC,IAAA,WAAA,GAAA;;AAoBmB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC;AAC9B,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,oBAAoB,CAAC;AAC1C,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;;;QAMrB,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,KAAK;uFAAC;QAC1B,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,KAAK;sFAAC;QACzB,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,KAAK;yFAAC;QAC5B,IAAA,CAAA,aAAa,GAAG,MAAM,CAAiB,IAAI;0FAAC;QAC5C,IAAA,CAAA,WAAW,GAAG,MAAM,CAAe,EAAE;wFAAC;QACtC,IAAA,CAAA,cAAc,GAAG,MAAM,CAAkB,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pages/tenant-request/tenant-request.component.ts","../../../../libs/modules/auth/client/src/lib/pages/tenant-request/tenant-request.component.html"],"sourcesContent":["import { AXPCommandService } from '@acorex-platform/framework-client/runtime';\nimport {\n AXMTenantManagementServerCommands,\n type AXMCheckTenantNameAvailableResult,\n type AXMListPublicSubscriptionPlansResult,\n type AXMPublicSubscriptionPlanItem,\n} from '@acorex-platform/module-tenant-management-client/contracts';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXCheckBoxModule } from '@acorex/components/check-box';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXSelectBoxModule } from '@acorex/components/select-box';\nimport { AXTextBoxModule } from '@acorex/components/text-box';\nimport { AXToastService } from '@acorex/components/toast';\nimport {\n AXTranslationModule,\n AXTranslationService,\n resolveMultiLanguageString,\n} from '@acorex/core/translation';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject, OnInit, signal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { Router, RouterModule } from '@angular/router';\n\n//#region ----- Types -----\n\ninterface PlanOption {\n id: string;\n title: string;\n}\n\ninterface CountryOption {\n id: string;\n title: string;\n}\n\n//#endregion\n\n//#region ----- Helpers -----\n\n/** Slug for Tenant.name from company title (letters/digits/hyphens only). */\nfunction slugifyTenantName(companyName: string): string {\n return companyName\n .trim()\n .toLowerCase()\n .replace(/[^a-z0-9]+/g, '-')\n .replace(/^-+|-+$/g, '')\n .slice(0, 64);\n}\n\n//#endregion\n\n//#region ----- Component -----\n\n@Component({\n templateUrl: './tenant-request.component.html',\n styleUrls: ['./tenant-request.component.css'],\n changeDetection: ChangeDetectionStrategy.Eager,\n imports: [\n CommonModule,\n FormsModule,\n AXFormModule,\n AXTextBoxModule,\n AXSelectBoxModule,\n AXCheckBoxModule,\n AXButtonModule,\n AXLabelModule,\n AXTranslationModule,\n RouterModule,\n ],\n})\nexport class AXPTenantRequestComponent implements OnInit {\n //#region ----- Services & Dependencies -----\n\n private readonly commandService = inject(AXPCommandService);\n private readonly toast = inject(AXToastService);\n private readonly translation = inject(AXTranslationService);\n private readonly router = inject(Router);\n\n //#endregion\n\n //#region ----- State Signals -----\n\n protected readonly submitting = signal(false);\n protected readonly submitted = signal(false);\n protected readonly checkingName = signal(false);\n protected readonly nameAvailable = signal<boolean | null>(null);\n protected readonly planOptions = signal<PlanOption[]>([]);\n protected readonly countryOptions = signal<CountryOption[]>([]);\n\n //#endregion\n\n //#region ----- Form model (Tenant static + Extra) -----\n\n /** Company Name → Tenant.title; also drives Tenant.name slug. */\n protected title = '';\n protected planId = '';\n protected email = '';\n protected confirmEmail = '';\n protected phone = '';\n protected street1 = '';\n protected postalCode = '';\n\n /** Extra bag fields (Safetyminder). */\n protected firstName = '';\n protected lastName = '';\n protected mobilePhone = '';\n protected suburb = '';\n protected state = '';\n protected country = 'Australia';\n protected referralCode = '';\n protected termsAccepted = false;\n\n //#endregion\n\n //#region ----- Lifecycle -----\n\n async ngOnInit(): Promise<void> {\n await Promise.all([this.loadPlans(), this.loadCountryOptions()]);\n }\n\n //#endregion\n\n //#region ----- Event Handlers -----\n\n protected goToLogin(): void {\n void this.router.navigate(['/auth/login']);\n }\n\n protected async onCompanyNameBlur(): Promise<void> {\n const name = slugifyTenantName(this.title);\n if (!name) {\n this.nameAvailable.set(null);\n return;\n }\n this.checkingName.set(true);\n try {\n const result = await this.commandService.execute(\n AXMTenantManagementServerCommands.CheckTenantNameAvailable,\n { name },\n );\n if (!result?.success) {\n this.nameAvailable.set(null);\n return;\n }\n const data = (result as { data?: AXMCheckTenantNameAvailableResult }).data;\n this.nameAvailable.set(data?.available === true);\n } catch {\n this.nameAvailable.set(null);\n } finally {\n this.checkingName.set(false);\n }\n }\n\n protected async submit(): Promise<void> {\n const title = this.title.trim();\n const name = slugifyTenantName(title);\n const planId = this.planId.trim();\n const email = this.email.trim().toLowerCase();\n const confirmEmail = this.confirmEmail.trim().toLowerCase();\n const phone = this.phone.trim();\n const street1 = this.street1.trim();\n const postalCode = this.postalCode.trim();\n\n if (!name || !title || !planId || !email || this.submitting() || this.submitted()) {\n return;\n }\n if (email !== confirmEmail) {\n await this.showToast(\n '@auth:tenant-request.error.title',\n '@auth:tenant-request.error.email-mismatch',\n 'Request Failed',\n 'Email and confirm email do not match.',\n );\n return;\n }\n if (!this.termsAccepted) {\n await this.showToast(\n '@auth:tenant-request.error.title',\n '@auth:tenant-request.error.terms-required',\n 'Request Failed',\n 'Please accept the terms to continue.',\n );\n return;\n }\n if (this.nameAvailable() === false) {\n await this.showNameTakenToast();\n return;\n }\n\n const extra: Record<string, unknown> = {\n firstName: this.firstName.trim(),\n lastName: this.lastName.trim(),\n mobilePhone: this.mobilePhone.trim(),\n suburb: this.suburb.trim(),\n state: this.state.trim(),\n country: String(this.country ?? '').trim(),\n referralCode: this.referralCode.trim(),\n termsAccepted: this.termsAccepted === true,\n };\n\n this.submitting.set(true);\n try {\n const result = await this.commandService.execute(\n AXMTenantManagementServerCommands.RequestTenantCreation,\n {\n name,\n title,\n planId,\n email,\n ...(phone ? { phone } : {}),\n ...(street1 ? { street1 } : {}),\n ...(postalCode ? { postalCode } : {}),\n extra,\n webOrigin: typeof window !== 'undefined' ? window.location.origin : undefined,\n },\n );\n if (!result?.success) {\n const code = typeof result?.message?.code === 'string' ? result.message.code : '';\n if (code === 'TENANT_REQUEST_NAME_TAKEN') {\n this.nameAvailable.set(false);\n await this.showNameTakenToast();\n return;\n }\n throw new Error('request failed');\n }\n this.submitted.set(true);\n await this.showToast(\n '@auth:tenant-request.success.title',\n '@auth:tenant-request.success.description',\n 'Request Submitted',\n 'We received your request. You will get an email when it is reviewed.',\n 'success',\n 5000,\n );\n } catch {\n await this.showToast(\n '@auth:tenant-request.error.title',\n '@auth:tenant-request.error.description',\n 'Request Failed',\n 'Unable to submit your request. Please try again later.',\n );\n } finally {\n this.submitting.set(false);\n }\n }\n\n //#endregion\n\n //#region ----- Data Loading -----\n\n private async loadPlans(): Promise<void> {\n try {\n const result = await this.commandService.execute(\n AXMTenantManagementServerCommands.ListPublicSubscriptionPlans,\n {},\n );\n if (!result?.success) {\n this.planOptions.set([]);\n return;\n }\n const payload = (result as { data?: AXMListPublicSubscriptionPlansResult }).data;\n const items = Array.isArray(payload?.items) ? payload.items : [];\n const locale = this.translation.getActiveLang?.() ?? 'en-US';\n this.planOptions.set(\n items\n .map((item: AXMPublicSubscriptionPlanItem) => {\n const id = String(item?.id ?? '').trim();\n if (!id) {\n return null;\n }\n const planTitle =\n resolveMultiLanguageString(item.title as never, locale).trim() ||\n String(item.code ?? id);\n return { id, title: planTitle };\n })\n .filter((row): row is PlanOption => row != null),\n );\n } catch {\n this.planOptions.set([]);\n }\n }\n\n private async loadCountryOptions(): Promise<void> {\n const [australia, newZealand, other] = await Promise.all([\n this.translation\n .translateAsync('@auth:tenant-request.extra.country-options.australia')\n .catch(() => 'Australia'),\n this.translation\n .translateAsync('@auth:tenant-request.extra.country-options.new-zealand')\n .catch(() => 'New Zealand'),\n this.translation\n .translateAsync('@auth:tenant-request.extra.country-options.other')\n .catch(() => 'Other'),\n ]);\n this.countryOptions.set([\n { id: 'Australia', title: australia },\n { id: 'New Zealand', title: newZealand },\n { id: 'Other', title: other },\n ]);\n }\n\n private async showNameTakenToast(): Promise<void> {\n await this.showToast(\n '@auth:tenant-request.error.title',\n '@auth:tenant-request.error.name-taken',\n 'Request Failed',\n 'This organization name is already taken. Please choose another.',\n );\n }\n\n private async showToast(\n titleKey: string,\n contentKey: string,\n titleFallback: string,\n contentFallback: string,\n color: 'success' | 'danger' = 'danger',\n timeOut = 4000,\n ): Promise<void> {\n const [toastTitle, content] = await Promise.all([\n this.translation.translateAsync(titleKey).catch(() => titleFallback),\n this.translation.translateAsync(contentKey).catch(() => contentFallback),\n ]);\n this.toast.show({ color, title: toastTitle, content, timeOut });\n }\n\n //#endregion\n}\n\n//#endregion\n","<ng-container *translate=\"let t\">\n <div class=\"axp-auth-form axp-tenant-request-form\">\n <!-- ----- Success state after request is submitted ----- -->\n @if (submitted()) {\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:tenant-request.success.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:tenant-request.success.description' | translate | async }}\n </p>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:backLogin' | translate | async\"\n (onClick)=\"goToLogin()\"\n ></ax-button>\n }\n <!-- ----- Request form ----- -->\n @else {\n <div class=\"mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:tenant-request.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:tenant-request.hint' | translate | async }}\n </p>\n </div>\n <ax-form>\n <div class=\"axp-tenant-request-grid\">\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Company Name (title + name slug) ----- -->\n <ax-form-field class=\"axp-span-full\">\n <ax-label>{{ '@auth:tenant-request.fields.company-name' | translate | async }}</ax-label>\n <ax-text-box\n name=\"organization\"\n id=\"tenant-request-organization\"\n [autoComplete]=\"'organization'\"\n [(value)]=\"title\"\n [disabled]=\"submitting()\"\n (onBlur)=\"onCompanyNameBlur()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n <p class=\"mt-1 text-xs text-danger-600\">\n {{ '@auth:tenant-request.fields.company-name-hint' | translate | async }}\n </p>\n <!-- ----- Inline hint when the unique name is already taken ----- -->\n @if (nameAvailable() === false) {\n <p class=\"mt-1 text-xs text-danger-600\">\n {{ '@auth:tenant-request.error.name-taken' | translate | async }}\n </p>\n }\n <!-- ----- Inline hint while availability is being checked ----- -->\n @if (checkingName()) {\n <p class=\"mt-1 text-xs text-neutral-400\">\n {{ '@auth:tenant-request.checking-name' | translate | async }}\n </p>\n }\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Email ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.email' | translate | async }}</ax-label>\n <ax-text-box\n name=\"email\"\n id=\"tenant-request-email\"\n [autoComplete]=\"'email'\"\n [(value)]=\"email\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n <ax-validation-rule rule=\"email\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Confirm Email (form-only, not stored) ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.confirm-email' | translate | async }}</ax-label>\n <ax-text-box\n name=\"confirmEmail\"\n id=\"tenant-request-confirm-email\"\n [autoComplete]=\"'off'\"\n [(value)]=\"confirmEmail\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n <ax-validation-rule rule=\"email\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Business Phone ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.phone' | translate | async }}</ax-label>\n <ax-text-box\n name=\"tel\"\n id=\"tenant-request-phone\"\n [autoComplete]=\"'tel'\"\n [(value)]=\"phone\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: First Name ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.first-name' | translate | async }}</ax-label>\n <ax-text-box\n name=\"given-name\"\n id=\"tenant-request-first-name\"\n [autoComplete]=\"'given-name'\"\n [(value)]=\"firstName\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Last Name ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.last-name' | translate | async }}</ax-label>\n <ax-text-box\n name=\"family-name\"\n id=\"tenant-request-last-name\"\n [autoComplete]=\"'family-name'\"\n [(value)]=\"lastName\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Mobile Phone ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.mobile-phone' | translate | async }}</ax-label>\n <ax-text-box\n name=\"mobile\"\n id=\"tenant-request-mobile\"\n [autoComplete]=\"'tel-national'\"\n [(value)]=\"mobilePhone\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Street Address ----- -->\n <ax-form-field class=\"axp-span-full\">\n <ax-label>{{ '@auth:tenant-request.fields.street1' | translate | async }}</ax-label>\n <ax-text-box\n name=\"street-address\"\n id=\"tenant-request-street\"\n [autoComplete]=\"'street-address'\"\n [(value)]=\"street1\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Suburb ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.suburb' | translate | async }}</ax-label>\n <ax-text-box\n name=\"address-level2\"\n id=\"tenant-request-suburb\"\n [autoComplete]=\"'address-level2'\"\n [(value)]=\"suburb\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: State ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.state' | translate | async }}</ax-label>\n <ax-text-box\n name=\"address-level1\"\n id=\"tenant-request-state\"\n [autoComplete]=\"'address-level1'\"\n [(value)]=\"state\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Post Code ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.postal-code' | translate | async }}</ax-label>\n <ax-text-box\n name=\"postal-code\"\n id=\"tenant-request-postal-code\"\n [autoComplete]=\"'postal-code'\"\n [(value)]=\"postalCode\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Country ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.country' | translate | async }}</ax-label>\n <ax-select-box\n name=\"country\"\n [(value)]=\"country\"\n [dataSource]=\"countryOptions()\"\n textField=\"title\"\n valueField=\"id\"\n [disabled]=\"submitting()\"\n ></ax-select-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Referral Code ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.referral-code' | translate | async }}</ax-label>\n <ax-text-box\n name=\"referral-code\"\n id=\"tenant-request-referral\"\n [autoComplete]=\"'off'\"\n [(value)]=\"referralCode\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Subscription Plan (required by request flow) ----- -->\n <ax-form-field class=\"axp-span-full\">\n <ax-label>{{ '@auth:tenant-request.fields.plan' | translate | async }}</ax-label>\n <ax-select-box\n name=\"planId\"\n [(value)]=\"planId\"\n [dataSource]=\"planOptions()\"\n textField=\"title\"\n valueField=\"id\"\n [disabled]=\"submitting()\"\n [placeholder]=\"('@auth:tenant-request.fields.plan-placeholder' | translate | async) ?? ''\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-select-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Terms ----- -->\n <div class=\"axp-span-full flex items-start gap-2 mt-1\">\n <ax-check-box [(ngModel)]=\"termsAccepted\" [disabled]=\"submitting()\"></ax-check-box>\n <ax-label class=\"mb-0 text-sm leading-snug\">\n {{ '@auth:tenant-request.extra.terms-label' | translate | async }}\n </ax-label>\n </div>\n </div>\n\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:tenant-request.submit' | translate | async\"\n [disabled]=\"\n submitting() ||\n !title.trim() ||\n !planId.trim() ||\n !email.trim() ||\n !confirmEmail.trim() ||\n !firstName.trim() ||\n !lastName.trim() ||\n !termsAccepted ||\n nameAvailable() === false\n \"\n (onClick)=\"submit()\"\n ></ax-button>\n\n <p class=\"text-center mt-6 text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a\n [routerLink]=\"['/auth/login']\"\n class=\"text-primary font-medium cursor-pointer hover:underline\"\n >\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </ax-form>\n }\n </div>\n</ng-container>\n"],"names":["i2","i5","i7","i8","i9","i10"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA;AAEA;AAEA;AACA,SAAS,iBAAiB,CAAC,WAAmB,EAAA;AAC5C,IAAA,OAAO;AACJ,SAAA,IAAI;AACJ,SAAA,WAAW;AACX,SAAA,OAAO,CAAC,aAAa,EAAE,GAAG;AAC1B,SAAA,OAAO,CAAC,UAAU,EAAE,EAAE;AACtB,SAAA,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC;AACjB;AAEA;AAEA;MAmBa,yBAAyB,CAAA;AAjBtC,IAAA,WAAA,GAAA;;AAoBmB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC;AAC9B,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,oBAAoB,CAAC;AAC1C,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;;;QAMrB,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,KAAK;uFAAC;QAC1B,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,KAAK;sFAAC;QACzB,IAAA,CAAA,YAAY,GAAG,MA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AY;AACb,qBAAA,EAAA,QAAA,EAAA,w0XAAA,EAAA,MAAA,EAAA,CAAA,2kBAAA,CAAA,EAAA;;;"}
@@ -45,4 +45,4 @@ function clearTwoFactorChallenge() {
45
45
  //#endregion
46
46
 
47
47
  export { clearTwoFactorChallenge as c, readTwoFactorChallenge as r, writeTwoFactorChallenge as w };
48
- //# sourceMappingURL=acorex-platform-module-auth-client-two-factor-challenge.storage-mi0UD7Sc.mjs.map
48
+ //# sourceMappingURL=acorex-platform-module-auth-client-two-factor-challenge.storage-CRxxIWr4.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-auth-client-two-factor-challenge.storage-mi0UD7Sc.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/two-factor/two-factor-challenge.storage.ts"],"sourcesContent":["//#region ----- Types -----\n\nexport type AXPTwoFactorChallengeStorage = {\n challengeId: string;\n rememberMe: boolean;\n};\n\n//#endregion\n\n//#region ----- Constants -----\n\nexport const AXP_TWO_FACTOR_CHALLENGE_STORAGE_KEY = 'axp.auth.twoFactorChallenge';\n\n//#endregion\n\n//#region ----- Storage helpers -----\n\nexport function readTwoFactorChallenge(): AXPTwoFactorChallengeStorage | null {\n if (typeof sessionStorage === 'undefined') {\n return null;\n }\n\n try {\n const raw = sessionStorage.getItem(AXP_TWO_FACTOR_CHALLENGE_STORAGE_KEY);\n if (!raw) {\n return null;\n }\n\n const parsed = JSON.parse(raw) as Partial<AXPTwoFactorChallengeStorage>;\n const challengeId = typeof parsed.challengeId === 'string' ? parsed.challengeId.trim() : '';\n if (!challengeId) {\n return null;\n }\n\n return {\n challengeId,\n rememberMe: parsed.rememberMe === true,\n };\n } catch {\n return null;\n }\n}\n\nexport function writeTwoFactorChallenge(value: AXPTwoFactorChallengeStorage): void {\n if (typeof sessionStorage === 'undefined') {\n return;\n }\n\n sessionStorage.setItem(\n AXP_TWO_FACTOR_CHALLENGE_STORAGE_KEY,\n JSON.stringify({\n challengeId: value.challengeId.trim(),\n rememberMe: value.rememberMe === true,\n }),\n );\n}\n\nexport function clearTwoFactorChallenge(): void {\n if (typeof sessionStorage === 'undefined') {\n return;\n }\n\n sessionStorage.removeItem(AXP_TWO_FACTOR_CHALLENGE_STORAGE_KEY);\n}\n\n//#endregion\n"],"names":[],"mappings":"AAAA;AAOA;AAEA;AAEO,MAAM,oCAAoC,GAAG,6BAA6B;AAEjF;AAEA;SAEgB,sBAAsB,GAAA;AACpC,IAAA,IAAI,OAAO,cAAc,KAAK,WAAW,EAAE;AACzC,QAAA,OAAO,IAAI;IACb;AAEA,IAAA,IAAI;QACF,MAAM,GAAG,GAAG,cAAc,CAAC,OAAO,CAAC,oCAAoC,CAAC;QACxE,IAAI,CAAC,GAAG,EAAE;AACR,YAAA,OAAO,IAAI;QACb;QAEA,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAA0C;QACvE,MAAM,WAAW,GAAG,OAAO,MAAM,CAAC,WAAW,KAAK,QAAQ,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,EAAE;QAC3F,IAAI,CAAC,WAAW,EAAE;AAChB,YAAA,OAAO,IAAI;QACb;QAEA,OAAO;YACL,WAAW;AACX,YAAA,UAAU,EAAE,MAAM,CAAC,UAAU,KAAK,IAAI;SACvC;IACH;AAAE,IAAA,MAAM;AACN,QAAA,OAAO,IAAI;IACb;AACF;AAEM,SAAU,uBAAuB,CAAC,KAAmC,EAAA;AACzE,IAAA,IAAI,OAAO,cAAc,KAAK,WAAW,EAAE;QACzC;IACF;IAEA,cAAc,CAAC,OAAO,CACpB,oCAAoC,EACpC,IAAI,CAAC,SAAS,CAAC;AACb,QAAA,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE;AACrC,QAAA,UAAU,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI;AACtC,KAAA,CAAC,CACH;AACH;SAEgB,uBAAuB,GAAA;AACrC,IAAA,IAAI,OAAO,cAAc,KAAK,WAAW,EAAE;QACzC;IACF;AAEA,IAAA,cAAc,CAAC,UAAU,CAAC,oCAAoC,CAAC;AACjE;AAEA;;"}
1
+ {"version":3,"file":"acorex-platform-module-auth-client-two-factor-challenge.storage-CRxxIWr4.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/two-factor/two-factor-challenge.storage.ts"],"sourcesContent":["//#region ----- Types -----\n\nexport type AXPTwoFactorChallengeStorage = {\n challengeId: string;\n rememberMe: boolean;\n};\n\n//#endregion\n\n//#region ----- Constants -----\n\nexport const AXP_TWO_FACTOR_CHALLENGE_STORAGE_KEY = 'axp.auth.twoFactorChallenge';\n\n//#endregion\n\n//#region ----- Storage helpers -----\n\nexport function readTwoFactorChallenge(): AXPTwoFactorChallengeStorage | null {\n if (typeof sessionStorage === 'undefined') {\n return null;\n }\n\n try {\n const raw = sessionStorage.getItem(AXP_TWO_FACTOR_CHALLENGE_STORAGE_KEY);\n if (!raw) {\n return null;\n }\n\n const parsed = JSON.parse(raw) as Partial<AXPTwoFactorChallengeStorage>;\n const challengeId = typeof parsed.challengeId === 'string' ? parsed.challengeId.trim() : '';\n if (!challengeId) {\n return null;\n }\n\n return {\n challengeId,\n rememberMe: parsed.rememberMe === true,\n };\n } catch {\n return null;\n }\n}\n\nexport function writeTwoFactorChallenge(value: AXPTwoFactorChallengeStorage): void {\n if (typeof sessionStorage === 'undefined') {\n return;\n }\n\n sessionStorage.setItem(\n AXP_TWO_FACTOR_CHALLENGE_STORAGE_KEY,\n JSON.stringify({\n challengeId: value.challengeId.trim(),\n rememberMe: value.rememberMe === true,\n }),\n );\n}\n\nexport function clearTwoFactorChallenge(): void {\n if (typeof sessionStorage === 'undefined') {\n return;\n }\n\n sessionStorage.removeItem(AXP_TWO_FACTOR_CHALLENGE_STORAGE_KEY);\n}\n\n//#endregion\n"],"names":[],"mappings":"AAAA;AAOA;AAEA;AAEO,MAAM,oCAAoC,GAAG,6BAA6B;AAEjF;AAEA;SAEgB,sBAAsB,GAAA;AACpC,IAAA,IAAI,OAAO,cAAc,KAAK,WAAW,EAAE;AACzC,QAAA,OAAO,IAAI;IACb;AAEA,IAAA,IAAI;QACF,MAAM,GAAG,GAAG,cAAc,CAAC,OAAO,CAAC,oCAAoC,CAAC;QACxE,IAAI,CAAC,GAAG,EAAE;AACR,YAAA,OAAO,IAAI;QACb;QAEA,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAA0C;QACvE,MAAM,WAAW,GAAG,OAAO,MAAM,CAAC,WAAW,KAAK,QAAQ,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,EAAE;QAC3F,IAAI,CAAC,WAAW,EAAE;AAChB,YAAA,OAAO,IAAI;QACb;QAEA,OAAO;YACL,WAAW;AACX,YAAA,UAAU,EAAE,MAAM,CAAC,UAAU,KAAK,IAAI;SACvC;IACH;AAAE,IAAA,MAAM;AACN,QAAA,OAAO,IAAI;IACb;AACF;AAEM,SAAU,uBAAuB,CAAC,KAAmC,EAAA;AACzE,IAAA,IAAI,OAAO,cAAc,KAAK,WAAW,EAAE;QACzC;IACF;IAEA,cAAc,CAAC,OAAO,CACpB,oCAAoC,EACpC,IAAI,CAAC,SAAS,CAAC;AACb,QAAA,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE;AACrC,QAAA,UAAU,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI;AACtC,KAAA,CAAC,CACH;AACH;SAEgB,uBAAuB,GAAA;AACrC,IAAA,IAAI,OAAO,cAAc,KAAK,WAAW,EAAE;QACzC;IACF;AAEA,IAAA,cAAc,CAAC,UAAU,CAAC,oCAAoC,CAAC;AACjE;AAEA;;"}
@@ -23,8 +23,8 @@ import { inject, ViewChild, ViewEncapsulation, ChangeDetectionStrategy, Componen
23
23
  import { FormsModule } from '@angular/forms';
24
24
  import { RouterModule, Router, ActivatedRoute } from '@angular/router';
25
25
  import { BehaviorSubject, firstValueFrom } from 'rxjs';
26
- import { x as AXMAuthPlatformSettingsService } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-CBRlR1xT.mjs';
27
- import { r as readTwoFactorChallenge, c as clearTwoFactorChallenge } from './acorex-platform-module-auth-client-two-factor-challenge.storage-mi0UD7Sc.mjs';
26
+ import { x as AXMAuthPlatformSettingsService } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-DnctDd1m.mjs';
27
+ import { r as readTwoFactorChallenge, c as clearTwoFactorChallenge } from './acorex-platform-module-auth-client-two-factor-challenge.storage-CRxxIWr4.mjs';
28
28
 
29
29
  //#region ----- Constants -----
30
30
  const TWO_FACTOR_ERROR_I18N = {
@@ -197,4 +197,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
197
197
  }] } });
198
198
 
199
199
  export { AXPAuthTwoFactorCodeComponent };
200
- //# sourceMappingURL=acorex-platform-module-auth-client-two-factor-code.component-DAMphXPJ.mjs.map
200
+ //# sourceMappingURL=acorex-platform-module-auth-client-two-factor-code.component-EzgdY8gk.mjs.map