@acorex-platform/module-auth-client 2.0.0-next.50 → 2.0.0-next.54
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.
- 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
- 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
- package/fesm2022/{acorex-platform-module-auth-client-acorex-platform-module-auth-client-Cq9R3s5A.mjs → acorex-platform-module-auth-client-acorex-platform-module-auth-client-LvKwBD7L.mjs} +57 -57
- package/fesm2022/{acorex-platform-module-auth-client-acorex-platform-module-auth-client-Cq9R3s5A.mjs.map → acorex-platform-module-auth-client-acorex-platform-module-auth-client-LvKwBD7L.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-app-chooser.component-D99xVLtc.mjs → acorex-platform-module-auth-client-app-chooser.component-BwCKpB0-.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-app-chooser.component-D99xVLtc.mjs.map → acorex-platform-module-auth-client-app-chooser.component-BwCKpB0-.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-blank.layout-xSXPWxyw.mjs → acorex-platform-module-auth-client-blank.layout-Br0_-TxC.mjs} +1 -1
- 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
- package/fesm2022/{acorex-platform-module-auth-client-change-password.command-CAJir6Go.mjs → acorex-platform-module-auth-client-change-password.command-Cc0aiSYd.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-change-password.command-CAJir6Go.mjs.map → acorex-platform-module-auth-client-change-password.command-Cc0aiSYd.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-change-photo.command-C-RYaG1B.mjs → acorex-platform-module-auth-client-change-photo.command-CNerD59E.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-change-photo.command-C-RYaG1B.mjs.map → acorex-platform-module-auth-client-change-photo.command-CNerD59E.mjs.map} +1 -1
- 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
- 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
- package/fesm2022/{acorex-platform-module-auth-client-edit-account-info.command-DulLUfWs.mjs → acorex-platform-module-auth-client-edit-account-info.command-hZ1ze6Q8.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-edit-account-info.command-DulLUfWs.mjs.map → acorex-platform-module-auth-client-edit-account-info.command-hZ1ze6Q8.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-edit-signature.command-TjOLhvKL.mjs → acorex-platform-module-auth-client-edit-signature.command-ZEGATkZs.mjs} +1 -1
- 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
- package/fesm2022/{acorex-platform-module-auth-client-get-user-activity.query-Bug-SR6J.mjs → acorex-platform-module-auth-client-get-user-activity.query-Cam2NyHp.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-get-user-activity.query-Bug-SR6J.mjs.map → acorex-platform-module-auth-client-get-user-activity.query-Cam2NyHp.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-lock-screen.command-Uros3kRx.mjs → acorex-platform-module-auth-client-lock-screen.command-DPwl64UZ.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-lock-screen.command-Uros3kRx.mjs.map → acorex-platform-module-auth-client-lock-screen.command-DPwl64UZ.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-login.module-B-NNlaEN.mjs → acorex-platform-module-auth-client-login.module-mWYuF4d_.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-login.module-B-NNlaEN.mjs.map → acorex-platform-module-auth-client-login.module-mWYuF4d_.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-manage-two-factor.command-CD5kAdfT.mjs → acorex-platform-module-auth-client-manage-two-factor.command-DoMcX3d_.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-manage-two-factor.command-CD5kAdfT.mjs.map → acorex-platform-module-auth-client-manage-two-factor.command-DoMcX3d_.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-menu.provider-Bz-kRip4.mjs → acorex-platform-module-auth-client-menu.provider-BrnaQ1ed.mjs} +1 -1
- 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
- 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
- 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
- package/fesm2022/{acorex-platform-module-auth-client-open-sessions.command-Do8kp-x5.mjs → acorex-platform-module-auth-client-open-sessions.command-ClbBCljk.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-open-sessions.command-Do8kp-x5.mjs.map → acorex-platform-module-auth-client-open-sessions.command-ClbBCljk.mjs.map} +1 -1
- 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
- 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
- package/fesm2022/{acorex-platform-module-auth-client-password.component-DLtE_j1b.mjs → acorex-platform-module-auth-client-password.component-BNhlOo_P.mjs} +5 -5
- package/fesm2022/{acorex-platform-module-auth-client-password.component-DLtE_j1b.mjs.map → acorex-platform-module-auth-client-password.component-BNhlOo_P.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-password.component-CE2nXYCz.mjs → acorex-platform-module-auth-client-password.component-BRnmcVUL.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-password.component-CE2nXYCz.mjs.map → acorex-platform-module-auth-client-password.component-BRnmcVUL.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-pin-code.constants-CRsFG7fg.mjs → acorex-platform-module-auth-client-pin-code.constants-Cf4Ktvwz.mjs} +1 -1
- 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
- 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
- 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
- package/fesm2022/{acorex-platform-module-auth-client-profile-activity-chart.component-DuNBjC-O.mjs → acorex-platform-module-auth-client-profile-activity-chart.component-C7eIc_pL.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-profile-activity-chart.component-DuNBjC-O.mjs.map → acorex-platform-module-auth-client-profile-activity-chart.component-C7eIc_pL.mjs.map} +1 -1
- 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
- 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
- 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
- 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
- package/fesm2022/{acorex-platform-module-auth-client-profile-page-component.provider-DCRYHTan.mjs → acorex-platform-module-auth-client-profile-page-component.provider-C3c8g9wa.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-profile-page-component.provider-DCRYHTan.mjs.map → acorex-platform-module-auth-client-profile-page-component.provider-C3c8g9wa.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-profile-page.component-jkPWFgK_.mjs → acorex-platform-module-auth-client-profile-page.component-BkORVzXq.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-profile-page.component-jkPWFgK_.mjs.map → acorex-platform-module-auth-client-profile-page.component-BkORVzXq.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-register-password.component-CEa_p9cm.mjs → acorex-platform-module-auth-client-register-password.component-Bz1Y10RY.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-register-password.component-CEa_p9cm.mjs.map → acorex-platform-module-auth-client-register-password.component-Bz1Y10RY.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-register.module-aoUzVW_4.mjs → acorex-platform-module-auth-client-register.module-BDtivWVl.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-register.module-aoUzVW_4.mjs.map → acorex-platform-module-auth-client-register.module-BDtivWVl.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-remove-pin-code.command-BMoNBdxW.mjs → acorex-platform-module-auth-client-remove-pin-code.command-dSUrW_14.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-remove-pin-code.command-BMoNBdxW.mjs.map → acorex-platform-module-auth-client-remove-pin-code.command-dSUrW_14.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-reset-password.component-Cz4UePgF.mjs → acorex-platform-module-auth-client-reset-password.component-COsy6HUr.mjs} +3 -3
- 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
- package/fesm2022/{acorex-platform-module-auth-client-result.component-BS5uizi6.mjs → acorex-platform-module-auth-client-result.component-755aGMyK.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-result.component-BS5uizi6.mjs.map → acorex-platform-module-auth-client-result.component-755aGMyK.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-routes-DAwpb1Ca.mjs → acorex-platform-module-auth-client-routes-BNr55xqd.mjs} +5 -5
- package/fesm2022/{acorex-platform-module-auth-client-routes-DAwpb1Ca.mjs.map → acorex-platform-module-auth-client-routes-BNr55xqd.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-session-limit.component-DH58dRba.mjs → acorex-platform-module-auth-client-session-limit.component-DonVNqDf.mjs} +3 -3
- 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
- package/fesm2022/{acorex-platform-module-auth-client-session-lock-overlay.component-BJ6P7d-t.mjs → acorex-platform-module-auth-client-session-lock-overlay.component-CUyA9vGi.mjs} +5 -5
- package/fesm2022/{acorex-platform-module-auth-client-session-lock-overlay.component-BJ6P7d-t.mjs.map → acorex-platform-module-auth-client-session-lock-overlay.component-CUyA9vGi.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.command-CNCfNhTn.mjs → acorex-platform-module-auth-client-set-pin-code.command-C87VNWyn.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.command-CNCfNhTn.mjs.map → acorex-platform-module-auth-client-set-pin-code.command-C87VNWyn.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.component-9jRCg4WY.mjs → acorex-platform-module-auth-client-set-pin-code.component-f58QBER2.mjs} +5 -5
- package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.component-9jRCg4WY.mjs.map → acorex-platform-module-auth-client-set-pin-code.component-f58QBER2.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-settings.provider-Z2Lr-p1J.mjs → acorex-platform-module-auth-client-settings.provider-DEI1iy0_.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-settings.provider-Z2Lr-p1J.mjs.map → acorex-platform-module-auth-client-settings.provider-DEI1iy0_.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-show-profile-command-BWoDxIdx.mjs → acorex-platform-module-auth-client-show-profile-command-BprKlX1F.mjs} +1 -1
- 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
- package/fesm2022/{acorex-platform-module-auth-client-signout-command-D4Qgv7q2.mjs → acorex-platform-module-auth-client-signout-command-Be5bQi8S.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-signout-command-D4Qgv7q2.mjs.map → acorex-platform-module-auth-client-signout-command-Be5bQi8S.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-tenant-chooser.component-V3KZwLtP.mjs → acorex-platform-module-auth-client-tenant-chooser.component-ZLNSHtpe.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-tenant-chooser.component-V3KZwLtP.mjs.map → acorex-platform-module-auth-client-tenant-chooser.component-ZLNSHtpe.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-tenant-request.component-CG74dqMX.mjs → acorex-platform-module-auth-client-tenant-request.component-DGmq6I9N.mjs} +3 -3
- 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
- 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
- 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
- package/fesm2022/{acorex-platform-module-auth-client-two-factor-code.component-DYq_OSj5.mjs → acorex-platform-module-auth-client-two-factor-code.component-C4JdjAEa.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-two-factor-code.component-DYq_OSj5.mjs.map → acorex-platform-module-auth-client-two-factor-code.component-C4JdjAEa.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-two-factor.module-Da2azaCv.mjs → acorex-platform-module-auth-client-two-factor.module-CxUrLbb4.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-two-factor.module-Da2azaCv.mjs.map → acorex-platform-module-auth-client-two-factor.module-CxUrLbb4.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-view-login-history.command-Nmc5ORJQ.mjs → acorex-platform-module-auth-client-view-login-history.command-ClrzUAOX.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-view-login-history.command-Nmc5ORJQ.mjs.map → acorex-platform-module-auth-client-view-login-history.command-ClrzUAOX.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-waiting-room.component-C0VyZQdV.mjs → acorex-platform-module-auth-client-waiting-room.component-BCBZEvJi.mjs} +3 -3
- 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
- package/fesm2022/{acorex-platform-module-auth-client-welcome-onboarding-page.component-Cg_QMkvo.mjs → acorex-platform-module-auth-client-welcome-onboarding-page.component-C7vJ-WrT.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-welcome-onboarding-page.component-Cg_QMkvo.mjs.map → acorex-platform-module-auth-client-welcome-onboarding-page.component-C7vJ-WrT.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-welcome-onboarding.command-BZEt6U3g.mjs → acorex-platform-module-auth-client-welcome-onboarding.command-CdGRjX5D.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-welcome-onboarding.command-BZEt6U3g.mjs.map → acorex-platform-module-auth-client-welcome-onboarding.command-CdGRjX5D.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-auth-client.mjs +1 -1
- package/package.json +3 -3
|
@@ -96,7 +96,7 @@ class AXPResetPasswordComponent {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPResetPasswordComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
99
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: AXPResetPasswordComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<ng-container *translate=\"let t\">\n <div class=\"axp-auth-form\">\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:reset-password.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:reset-password.hint' | translate | async }}\n </p>\n </div>\n <ax-form>\n <div class=\"flex flex-col gap-4 lg:gap-6\">\n <ax-form-field>\n <ax-label>{{\n '@auth:reset-password.new-password' | translate | async\n }}</ax-label>\n <ax-password-box\n name=\"newPassword\"\n [(value)]=\"newPassword\"\n [disabled]=\"submitting\"\n ></ax-password-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{\n '@auth:reset-password.confirm-password' | translate | async\n }}</ax-label>\n <ax-password-box\n name=\"confirmPassword\"\n [(value)]=\"confirmPassword\"\n [disabled]=\"submitting\"\n ></ax-password-box>\n </ax-form-field>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:reset-password.submit' | translate | async\"\n [disabled]=\"submitting\"\n (onClick)=\"submit()\"\n ></ax-button>\n <p class=\"text-center mt-6 text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a\n [routerLink]=\"['/auth/login']\"\n class=\"text-primary font-medium cursor-pointer hover:underline\"\n >\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </ax-form>\n </div>\n</ng-container>\n", styles: [":host{display:block;width:100%}.axp-auth-form{width:100%;margin-inline:auto}@media(min-width:768px){.axp-auth-form{width:24rem;max-width:100%}}.axp-auth-form ax-form,.axp-auth-form ax-form-field,.axp-auth-form ax-password-box{display:block;width:100%}\n/*! tailwindcss v4.3.
|
|
99
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: AXPResetPasswordComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<ng-container *translate=\"let t\">\n <div class=\"axp-auth-form\">\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:reset-password.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:reset-password.hint' | translate | async }}\n </p>\n </div>\n <ax-form>\n <div class=\"flex flex-col gap-4 lg:gap-6\">\n <ax-form-field>\n <ax-label>{{\n '@auth:reset-password.new-password' | translate | async\n }}</ax-label>\n <ax-password-box\n name=\"newPassword\"\n [(value)]=\"newPassword\"\n [disabled]=\"submitting\"\n ></ax-password-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{\n '@auth:reset-password.confirm-password' | translate | async\n }}</ax-label>\n <ax-password-box\n name=\"confirmPassword\"\n [(value)]=\"confirmPassword\"\n [disabled]=\"submitting\"\n ></ax-password-box>\n </ax-form-field>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:reset-password.submit' | translate | async\"\n [disabled]=\"submitting\"\n (onClick)=\"submit()\"\n ></ax-button>\n <p class=\"text-center mt-6 text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a\n [routerLink]=\"['/auth/login']\"\n class=\"text-primary font-medium cursor-pointer hover:underline\"\n >\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </ax-form>\n </div>\n</ng-container>\n", styles: [":host{display:block;width:100%}.axp-auth-form{width:100%;margin-inline:auto}@media(min-width:768px){.axp-auth-form{width:24rem;max-width:100%}}.axp-auth-form ax-form,.axp-auth-form ax-form-field,.axp-auth-form ax-password-box{display:block;width:100%}\n/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i1.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "component", type: i1.AXFormComponent, selector: "ax-form", inputs: ["disabled", "readonly", "labelMode", "look", "messageStyle", "updateOn", "inUserInteractionActive"], outputs: ["onValidate", "updateOnChange"] }, { kind: "ngmodule", type: AXPasswordBoxModule }, { kind: "component", type: i2.AXPasswordBoxComponent, selector: "ax-password-box", inputs: ["readonly", "disabled", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "autoComplete", "showToggleButton", "class"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1$1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i4.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i5.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i6.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "pipe", type: i5$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
100
100
|
}
|
|
101
101
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPResetPasswordComponent, decorators: [{
|
|
102
102
|
type: Component,
|
|
@@ -108,8 +108,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
108
108
|
AXLabelModule,
|
|
109
109
|
AXTranslationModule,
|
|
110
110
|
RouterModule,
|
|
111
|
-
], template: "<ng-container *translate=\"let t\">\n <div class=\"axp-auth-form\">\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:reset-password.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:reset-password.hint' | translate | async }}\n </p>\n </div>\n <ax-form>\n <div class=\"flex flex-col gap-4 lg:gap-6\">\n <ax-form-field>\n <ax-label>{{\n '@auth:reset-password.new-password' | translate | async\n }}</ax-label>\n <ax-password-box\n name=\"newPassword\"\n [(value)]=\"newPassword\"\n [disabled]=\"submitting\"\n ></ax-password-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{\n '@auth:reset-password.confirm-password' | translate | async\n }}</ax-label>\n <ax-password-box\n name=\"confirmPassword\"\n [(value)]=\"confirmPassword\"\n [disabled]=\"submitting\"\n ></ax-password-box>\n </ax-form-field>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:reset-password.submit' | translate | async\"\n [disabled]=\"submitting\"\n (onClick)=\"submit()\"\n ></ax-button>\n <p class=\"text-center mt-6 text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a\n [routerLink]=\"['/auth/login']\"\n class=\"text-primary font-medium cursor-pointer hover:underline\"\n >\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </ax-form>\n </div>\n</ng-container>\n", styles: [":host{display:block;width:100%}.axp-auth-form{width:100%;margin-inline:auto}@media(min-width:768px){.axp-auth-form{width:24rem;max-width:100%}}.axp-auth-form ax-form,.axp-auth-form ax-form-field,.axp-auth-form ax-password-box{display:block;width:100%}\n/*! tailwindcss v4.3.
|
|
111
|
+
], template: "<ng-container *translate=\"let t\">\n <div class=\"axp-auth-form\">\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:reset-password.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:reset-password.hint' | translate | async }}\n </p>\n </div>\n <ax-form>\n <div class=\"flex flex-col gap-4 lg:gap-6\">\n <ax-form-field>\n <ax-label>{{\n '@auth:reset-password.new-password' | translate | async\n }}</ax-label>\n <ax-password-box\n name=\"newPassword\"\n [(value)]=\"newPassword\"\n [disabled]=\"submitting\"\n ></ax-password-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{\n '@auth:reset-password.confirm-password' | translate | async\n }}</ax-label>\n <ax-password-box\n name=\"confirmPassword\"\n [(value)]=\"confirmPassword\"\n [disabled]=\"submitting\"\n ></ax-password-box>\n </ax-form-field>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:reset-password.submit' | translate | async\"\n [disabled]=\"submitting\"\n (onClick)=\"submit()\"\n ></ax-button>\n <p class=\"text-center mt-6 text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a\n [routerLink]=\"['/auth/login']\"\n class=\"text-primary font-medium cursor-pointer hover:underline\"\n >\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </ax-form>\n </div>\n</ng-container>\n", styles: [":host{display:block;width:100%}.axp-auth-form{width:100%;margin-inline:auto}@media(min-width:768px){.axp-auth-form{width:24rem;max-width:100%}}.axp-auth-form ax-form,.axp-auth-form ax-form-field,.axp-auth-form ax-password-box{display:block;width:100%}\n/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */\n"] }]
|
|
112
112
|
}] });
|
|
113
113
|
|
|
114
114
|
export { AXPResetPasswordComponent };
|
|
115
|
-
//# sourceMappingURL=acorex-platform-module-auth-client-reset-password.component-
|
|
115
|
+
//# sourceMappingURL=acorex-platform-module-auth-client-reset-password.component-COsy6HUr.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-auth-client-reset-password.component-Cz4UePgF.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/reset-password/reset-password.component.ts","../../../../libs/modules/auth/client/src/lib/pages/reset-password/reset-password.component.html"],"sourcesContent":["import { commandMessageTextForError } from '@acorex-platform/framework-client/common';\nimport { AXPCommandService } from '@acorex-platform/framework-client/runtime';\nimport { AXMSecurityManagementServerCommands } from '@acorex-platform/module-security-management-client/contracts';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXPasswordBoxModule } from '@acorex/components/password-box';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationModule, AXTranslationService } from '@acorex/core/translation';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, OnInit, inject } from '@angular/core';\nimport { ActivatedRoute, Router, RouterModule } from '@angular/router';\n\n@Component({\n templateUrl: './reset-password.component.html',\n styleUrls: ['./reset-password.component.css'],\n changeDetection: ChangeDetectionStrategy.Eager,\n imports: [\n CommonModule,\n AXFormModule,\n AXPasswordBoxModule,\n AXButtonModule,\n AXLabelModule,\n AXTranslationModule,\n RouterModule,\n ],\n})\nexport class AXPResetPasswordComponent implements OnInit {\n private readonly route = inject(ActivatedRoute);\n private readonly router = inject(Router);\n private readonly commandService = inject(AXPCommandService);\n private readonly toast = inject(AXToastService);\n private readonly translation = inject(AXTranslationService);\n\n protected token = '';\n protected newPassword = '';\n protected confirmPassword = '';\n protected submitting = false;\n\n ngOnInit(): void {\n this.token = this.route.snapshot.queryParamMap.get('token') ?? '';\n }\n\n protected async submit(): Promise<void> {\n if (this.submitting) {\n return;\n }\n\n const token = this.token.trim();\n if (!token) {\n const msg = await this.translation\n .translateAsync('@auth:reset-password.invalid-link')\n .catch(() => 'This password reset link is invalid.');\n this.toast.show({ color: 'danger', title: msg, content: msg });\n return;\n }\n\n if (!this.newPassword || this.newPassword.length < 6) {\n const msg = await this.translation\n .translateAsync('@auth:reset-password.password-too-short')\n .catch(() => 'Password must be at least 6 characters.');\n this.toast.show({ color: 'warning', title: msg, content: msg });\n return;\n }\n\n if (this.newPassword !== this.confirmPassword) {\n const msg = await this.translation\n .translateAsync('@auth:reset-password.password-mismatch')\n .catch(() => 'Passwords do not match.');\n this.toast.show({ color: 'warning', title: msg, content: msg });\n return;\n }\n\n this.submitting = true;\n try {\n const result = await this.commandService.execute(\n AXMSecurityManagementServerCommands.CompletePasswordReset,\n { token, newPassword: this.newPassword },\n );\n\n if (!result?.success) {\n throw new Error(\n commandMessageTextForError(result?.message?.text) || 'Reset failed',\n );\n }\n\n const [title, content] = await Promise.all([\n this.translation\n .translateAsync('@auth:reset-password.success.title')\n .catch(() => 'Password Updated'),\n this.translation\n .translateAsync('@auth:reset-password.success.description')\n .catch(() => 'Your password has been updated. You can sign in now.'),\n ]);\n this.toast.show({ color: 'success', title, content, timeOut: 4000 });\n await this.router.navigate(['/auth/login']);\n } catch (error) {\n const [title, fallbackContent] = await Promise.all([\n this.translation\n .translateAsync('@auth:reset-password.error.title')\n .catch(() => 'Reset Failed'),\n this.translation\n .translateAsync('@auth:reset-password.error.description')\n .catch(\n () => 'Unable to reset password. The link may have expired.',\n ),\n ]);\n const content =\n error instanceof Error && error.message\n ? error.message\n : fallbackContent;\n this.toast.show({ color: 'danger', title, content, timeOut: 5000 });\n } finally {\n this.submitting = false;\n }\n }\n}\n","<ng-container *translate=\"let t\">\n <div class=\"axp-auth-form\">\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:reset-password.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:reset-password.hint' | translate | async }}\n </p>\n </div>\n <ax-form>\n <div class=\"flex flex-col gap-4 lg:gap-6\">\n <ax-form-field>\n <ax-label>{{\n '@auth:reset-password.new-password' | translate | async\n }}</ax-label>\n <ax-password-box\n name=\"newPassword\"\n [(value)]=\"newPassword\"\n [disabled]=\"submitting\"\n ></ax-password-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{\n '@auth:reset-password.confirm-password' | translate | async\n }}</ax-label>\n <ax-password-box\n name=\"confirmPassword\"\n [(value)]=\"confirmPassword\"\n [disabled]=\"submitting\"\n ></ax-password-box>\n </ax-form-field>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:reset-password.submit' | translate | async\"\n [disabled]=\"submitting\"\n (onClick)=\"submit()\"\n ></ax-button>\n <p class=\"text-center mt-6 text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a\n [routerLink]=\"['/auth/login']\"\n class=\"text-primary font-medium cursor-pointer hover:underline\"\n >\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </ax-form>\n </div>\n</ng-container>\n"],"names":["i3","i7"],"mappings":";;;;;;;;;;;;;;;;;;;;;MA2Ba,yBAAyB,CAAA;AAdtC,IAAA,WAAA,GAAA;AAemB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC;AAC9B,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACvB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC;AAC9B,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,oBAAoB,CAAC;QAEjD,IAAA,CAAA,KAAK,GAAG,EAAE;QACV,IAAA,CAAA,WAAW,GAAG,EAAE;QAChB,IAAA,CAAA,eAAe,GAAG,EAAE;QACpB,IAAA,CAAA,UAAU,GAAG,KAAK;AA+E7B,IAAA;IA7EC,QAAQ,GAAA;AACN,QAAA,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE;IACnE;AAEU,IAAA,MAAM,MAAM,GAAA;AACpB,QAAA,IAAI,IAAI,CAAC,UAAU,EAAE;YACnB;QACF;QAEA,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE;QAC/B,IAAI,CAAC,KAAK,EAAE;AACV,YAAA,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC;iBACpB,cAAc,CAAC,mCAAmC;AAClD,iBAAA,KAAK,CAAC,MAAM,sCAAsC,CAAC;AACtD,YAAA,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,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AGS,uBAAuB,CAAC,KAAK,EAAA,OAAA,EACrC;wBACP,YAAY;wBACZ,YAAY;wBACZ,mBAAmB;wBACnB,cAAc;wBACd,aAAa;wBACb,mBAAmB;wBACnB,YAAY;AACb,qBAAA,EAAA,QAAA,EAAA,kwDAAA,EAAA,MAAA,EAAA,CAAA,kUAAA,CAAA,EAAA;;;"}
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-auth-client-reset-password.component-COsy6HUr.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/reset-password/reset-password.component.ts","../../../../libs/modules/auth/client/src/lib/pages/reset-password/reset-password.component.html"],"sourcesContent":["import { commandMessageTextForError } from '@acorex-platform/framework-client/common';\nimport { AXPCommandService } from '@acorex-platform/framework-client/runtime';\nimport { AXMSecurityManagementServerCommands } from '@acorex-platform/module-security-management-client/contracts';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXPasswordBoxModule } from '@acorex/components/password-box';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationModule, AXTranslationService } from '@acorex/core/translation';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, OnInit, inject } from '@angular/core';\nimport { ActivatedRoute, Router, RouterModule } from '@angular/router';\n\n@Component({\n templateUrl: './reset-password.component.html',\n styleUrls: ['./reset-password.component.css'],\n changeDetection: ChangeDetectionStrategy.Eager,\n imports: [\n CommonModule,\n AXFormModule,\n AXPasswordBoxModule,\n AXButtonModule,\n AXLabelModule,\n AXTranslationModule,\n RouterModule,\n ],\n})\nexport class AXPResetPasswordComponent implements OnInit {\n private readonly route = inject(ActivatedRoute);\n private readonly router = inject(Router);\n private readonly commandService = inject(AXPCommandService);\n private readonly toast = inject(AXToastService);\n private readonly translation = inject(AXTranslationService);\n\n protected token = '';\n protected newPassword = '';\n protected confirmPassword = '';\n protected submitting = false;\n\n ngOnInit(): void {\n this.token = this.route.snapshot.queryParamMap.get('token') ?? '';\n }\n\n protected async submit(): Promise<void> {\n if (this.submitting) {\n return;\n }\n\n const token = this.token.trim();\n if (!token) {\n const msg = await this.translation\n .translateAsync('@auth:reset-password.invalid-link')\n .catch(() => 'This password reset link is invalid.');\n this.toast.show({ color: 'danger', title: msg, content: msg });\n return;\n }\n\n if (!this.newPassword || this.newPassword.length < 6) {\n const msg = await this.translation\n .translateAsync('@auth:reset-password.password-too-short')\n .catch(() => 'Password must be at least 6 characters.');\n this.toast.show({ color: 'warning', title: msg, content: msg });\n return;\n }\n\n if (this.newPassword !== this.confirmPassword) {\n const msg = await this.translation\n .translateAsync('@auth:reset-password.password-mismatch')\n .catch(() => 'Passwords do not match.');\n this.toast.show({ color: 'warning', title: msg, content: msg });\n return;\n }\n\n this.submitting = true;\n try {\n const result = await this.commandService.execute(\n AXMSecurityManagementServerCommands.CompletePasswordReset,\n { token, newPassword: this.newPassword },\n );\n\n if (!result?.success) {\n throw new Error(\n commandMessageTextForError(result?.message?.text) || 'Reset failed',\n );\n }\n\n const [title, content] = await Promise.all([\n this.translation\n .translateAsync('@auth:reset-password.success.title')\n .catch(() => 'Password Updated'),\n this.translation\n .translateAsync('@auth:reset-password.success.description')\n .catch(() => 'Your password has been updated. You can sign in now.'),\n ]);\n this.toast.show({ color: 'success', title, content, timeOut: 4000 });\n await this.router.navigate(['/auth/login']);\n } catch (error) {\n const [title, fallbackContent] = await Promise.all([\n this.translation\n .translateAsync('@auth:reset-password.error.title')\n .catch(() => 'Reset Failed'),\n this.translation\n .translateAsync('@auth:reset-password.error.description')\n .catch(\n () => 'Unable to reset password. The link may have expired.',\n ),\n ]);\n const content =\n error instanceof Error && error.message\n ? error.message\n : fallbackContent;\n this.toast.show({ color: 'danger', title, content, timeOut: 5000 });\n } finally {\n this.submitting = false;\n }\n }\n}\n","<ng-container *translate=\"let t\">\n <div class=\"axp-auth-form\">\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:reset-password.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:reset-password.hint' | translate | async }}\n </p>\n </div>\n <ax-form>\n <div class=\"flex flex-col gap-4 lg:gap-6\">\n <ax-form-field>\n <ax-label>{{\n '@auth:reset-password.new-password' | translate | async\n }}</ax-label>\n <ax-password-box\n name=\"newPassword\"\n [(value)]=\"newPassword\"\n [disabled]=\"submitting\"\n ></ax-password-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{\n '@auth:reset-password.confirm-password' | translate | async\n }}</ax-label>\n <ax-password-box\n name=\"confirmPassword\"\n [(value)]=\"confirmPassword\"\n [disabled]=\"submitting\"\n ></ax-password-box>\n </ax-form-field>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:reset-password.submit' | translate | async\"\n [disabled]=\"submitting\"\n (onClick)=\"submit()\"\n ></ax-button>\n <p class=\"text-center mt-6 text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a\n [routerLink]=\"['/auth/login']\"\n class=\"text-primary font-medium cursor-pointer hover:underline\"\n >\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </ax-form>\n </div>\n</ng-container>\n"],"names":["i3","i7"],"mappings":";;;;;;;;;;;;;;;;;;;;;MA2Ba,yBAAyB,CAAA;AAdtC,IAAA,WAAA,GAAA;AAemB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC;AAC9B,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACvB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC;AAC9B,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,oBAAoB,CAAC;QAEjD,IAAA,CAAA,KAAK,GAAG,E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A,EAAA,UAAA,EAAA,IAAA,EACb,mBAAmB,8GACnB,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,UAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA,aAAA,EAAA,UAAA,EAAA,qBAAA,EAAA,OAAA,EAAA,MAAA,EAAA,YAAA,EAAA,kBAAA,EAAA,oBAAA,EAAA,YAAA,EAAA,YAAA,EAAA,YAAA,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,EAAA,EAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,KAAA,EAAA,CAAA,CAAA;;2FAGH,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAdrC,SAAS;sCAGS,uBAAuB,CAAC,KAAK,EAAA,OAAA,EACrC;wBACP,YAAY;wBACZ,YAAY;wBACZ,mBAAmB;wBACnB,cAAc;wBACd,aAAa;wBACb,mBAAmB;wBACnB,YAAY;AACb,qBAAA,EAAA,QAAA,EAAA,kwDAAA,EAAA,MAAA,EAAA,CAAA,kUAAA,CAAA,EAAA;;;"}
|
|
@@ -35,4 +35,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
35
35
|
}] });
|
|
36
36
|
|
|
37
37
|
export { AXPRegisterResultComponent };
|
|
38
|
-
//# sourceMappingURL=acorex-platform-module-auth-client-result.component-
|
|
38
|
+
//# sourceMappingURL=acorex-platform-module-auth-client-result.component-755aGMyK.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-auth-client-result.component-
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-auth-client-result.component-755aGMyK.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/register/result/result.component.ts","../../../../libs/modules/auth/client/src/lib/pages/register/result/result.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXPasswordBoxModule } from '@acorex/components/password-box';\nimport { AXTextBoxModule } from '@acorex/components/text-box';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { CommonModule } from '@angular/common';\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\n\nconst MODULES = [\n CommonModule,\n AXFormModule,\n AXTextBoxModule,\n AXPasswordBoxModule,\n AXButtonModule,\n AXLabelModule,\n AXDecoratorModule,\n AXTranslationModule,\n AXLoadingModule,\n];\n\n@Component({\n templateUrl: './result.component.html',\n imports: [...MODULES],\n changeDetection: ChangeDetectionStrategy.Eager,\n providers: []\n})\nexport class AXPRegisterResultComponent {}\n","<div class=\"text-center mb-6\">\n <ax-icon class=\"fa-solid fa-circle-check text-5xl mb-4 text-success-500\"> </ax-icon>\n <h1 class=\"font-bold text-xl mb-2\">\n {{ '@auth:register-wizard.result.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:register-wizard.result.description' | translate | async }}\n </p>\n <ax-button\n color=\"primary\"\n class=\"mt-10\"\n [text]=\"('@auth:register-wizard.result.continue-dashboard' | translate | async) ?? ''\"\n >\n </ax-button>\n</div>\n"],"names":["i2","i3","i4"],"mappings":";;;;;;;;;;;;;;;;AAWA,MAAM,OAAO,GAAG;IACd,YAAY;IACZ,YAAY;IACZ,eAAe;IACf,mBAAmB;IACnB,cAAc;IACd,aAAa;IACb,iBAAiB;IACjB,mBAAmB;IACnB,eAAe;CAChB;MAQY,0BAA0B,CAAA;8GAA1B,0BAA0B,EAAA,IAAA,EAAA,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AAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,IAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,KAAA,EAAA,CAAA,CAAA;;2FASJ,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBANtC,SAAS;8BAEG,CAAC,GAAG,OAAO,CAAC,EAAA,eAAA,EACJ,uBAAuB,CAAC,KAAK,aACnC,EAAE,EAAA,QAAA,EAAA,uiBAAA,EAAA;;;"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
var routes = [
|
|
2
2
|
{
|
|
3
3
|
path: 'forgot',
|
|
4
|
-
loadComponent: () => import('./acorex-platform-module-auth-client-password.component-
|
|
4
|
+
loadComponent: () => import('./acorex-platform-module-auth-client-password.component-BRnmcVUL.mjs').then((c) => c.AXPForgetPasswordComponent),
|
|
5
5
|
},
|
|
6
6
|
{
|
|
7
7
|
path: 'reset-password',
|
|
8
|
-
loadComponent: () => import('./acorex-platform-module-auth-client-reset-password.component-
|
|
8
|
+
loadComponent: () => import('./acorex-platform-module-auth-client-reset-password.component-COsy6HUr.mjs').then((c) => c.AXPResetPasswordComponent),
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
11
|
path: 'accept-invitation',
|
|
12
|
-
loadComponent: () => import('./acorex-platform-module-auth-client-accept-invitation.component-
|
|
12
|
+
loadComponent: () => import('./acorex-platform-module-auth-client-accept-invitation.component-DJ9xVuLR.mjs').then((c) => c.AXPAcceptInvitationComponent),
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
path: 'tenant-request',
|
|
16
|
-
loadComponent: () => import('./acorex-platform-module-auth-client-tenant-request.component-
|
|
16
|
+
loadComponent: () => import('./acorex-platform-module-auth-client-tenant-request.component-DGmq6I9N.mjs').then((c) => c.AXPTenantRequestComponent),
|
|
17
17
|
},
|
|
18
18
|
];
|
|
19
19
|
|
|
20
20
|
export { routes as default };
|
|
21
|
-
//# sourceMappingURL=acorex-platform-module-auth-client-routes-
|
|
21
|
+
//# sourceMappingURL=acorex-platform-module-auth-client-routes-BNr55xqd.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-auth-client-routes-
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-auth-client-routes-BNr55xqd.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/forgot/routes.ts"],"sourcesContent":["import { Route } from '@angular/router';\n\nexport default [\n {\n path: 'forgot',\n loadComponent: () =>\n import('./password/password.component').then((c) => c.AXPForgetPasswordComponent),\n },\n {\n path: 'reset-password',\n loadComponent: () =>\n import('../reset-password/reset-password.component').then((c) => c.AXPResetPasswordComponent),\n },\n {\n path: 'accept-invitation',\n loadComponent: () =>\n import('../accept-invitation/accept-invitation.component').then((c) => c.AXPAcceptInvitationComponent),\n },\n {\n path: 'tenant-request',\n loadComponent: () =>\n import('../tenant-request/tenant-request.component').then((c) => c.AXPTenantRequestComponent),\n },\n] as Route[];\n"],"names":[],"mappings":"AAEA,aAAe;AACb,IAAA;AACE,QAAA,IAAI,EAAE,QAAQ;AACd,QAAA,aAAa,EAAE,MACb,OAAO,sEAA+B,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,0BAA0B,CAAC;AACpF,KAAA;AACD,IAAA;AACE,QAAA,IAAI,EAAE,gBAAgB;AACtB,QAAA,aAAa,EAAE,MACb,OAAO,4EAA4C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,yBAAyB,CAAC;AAChG,KAAA;AACD,IAAA;AACE,QAAA,IAAI,EAAE,mBAAmB;AACzB,QAAA,aAAa,EAAE,MACb,OAAO,+EAAkD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,4BAA4B,CAAC;AACzG,KAAA;AACD,IAAA;AACE,QAAA,IAAI,EAAE,gBAAgB;AACtB,QAAA,aAAa,EAAE,MACb,OAAO,4EAA4C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,yBAAyB,CAAC;AAChG,KAAA;CACS;;"}
|
|
@@ -175,7 +175,7 @@ class AXPAuthSessionLimitComponent {
|
|
|
175
175
|
return { id: item.id, title, subtitle, metaLabel };
|
|
176
176
|
}
|
|
177
177
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPAuthSessionLimitComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
178
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPAuthSessionLimitComponent, isStandalone: true, selector: "axp-auth-session-limit", ngImport: i0, template: "<main *translate=\"let t\" class=\"axp-auth-chooser\">\n <div class=\"axp-auth-chooser__inner\">\n <!-- ----- Platform branding ----- -->\n <section class=\"axp-auth-chooser__brand\">\n <axp-logo\n logoKey=\"platform\"\n appearance=\"onLight\"\n format=\"full\"\n [size]=\"260\"\n [attr.alt]=\"platformTitle()\"\n ></axp-logo>\n </section>\n <!-- ----- Session limit card ----- -->\n <section class=\"axp-auth-chooser__card-wrap\">\n <div class=\"axp-auth-chooser__card\">\n <!-- ----- Profile header while sessions load ----- -->\n @if (isLoading()) {\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:session-limit.title' | translate | async }}\n </h2>\n <p class=\"text-neutral-500 text-sm md:text-base font-medium\">\n {{ '@auth:session-limit.description' | translate | async }}\n </p>\n }\n\n <div class=\"mt-3 w-full flex flex-col gap-3\">\n <!-- ----- Active sessions to terminate ----- -->\n @if (isLoading()) {\n @for (n of [1, 2]; track n) {\n <ax-skeleton [animated]=\"true\" class=\"h-16 w-full rounded-md\"></ax-skeleton>\n }\n } @else if (sessionViews().length === 0) {\n <p class=\"text-sm text-neutral-500 m-0\">\n {{ '@auth:session-limit.empty' | translate | async }}\n </p>\n } @else {\n @for (item of sessionViews(); track item.id) {\n <div\n class=\"axp-session-limit__row flex gap-3 items-center text-start p-3 rounded-md border border-neutral-100 dark:border-neutral-800\"\n [class.opacity-50]=\"isBusy() && terminatingId() !== item.id\"\n >\n <div class=\"flex min-w-0 flex-1 flex-col\">\n <div class=\"font-medium text-sm md:text-base truncate\">{{ item.title }}</div>\n @if (item.subtitle) {\n <div class=\"font-normal text-xs md:text-sm text-neutral-500 truncate\">\n {{ item.subtitle }}\n </div>\n }\n @if (item.metaLabel) {\n <p class=\"m-0 font-normal text-xs text-neutral-400\">{{ item.metaLabel }}</p>\n }\n </div>\n <ax-button\n look=\"outline\"\n color=\"danger\"\n [disabled]=\"isBusy()\"\n [text]=\"('@auth:session-limit.terminate' | translate | async) ?? ''\"\n (onClick)=\"handleTerminate(item.id)\"\n >\n @if (terminatingId() === item.id) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n </div>\n }\n }\n\n <ax-button\n class=\"w-full\"\n color=\"primary\"\n [disabled]=\"isBusy() || isLoading()\"\n [text]=\"('@auth:session-limit.continue' | translate | async) ?? ''\"\n (onClick)=\"handleContinue()\"\n >\n @if (isBusy() && !terminatingId()) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n\n <ax-button\n class=\"w-full\"\n look=\"blank\"\n [disabled]=\"isBusy()\"\n [text]=\"('@auth:session-limit.back-tenants' | translate | async) ?? ''\"\n (onClick)=\"handleBackToTenants()\"\n ></ax-button>\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", ".axp-session-limit__row{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i2.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { 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: AXPLogoComponent, selector: "axp-logo", inputs: ["logoKey", "appearance", "size", "format"] }, { kind: "component", type: AXPUserAvatarComponent, selector: "axp-user-avatar", inputs: ["size", "userId", "showPresence", "displayName", "displayAvatar"] }, { kind: "pipe", type: i5$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
178
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPAuthSessionLimitComponent, isStandalone: true, selector: "axp-auth-session-limit", ngImport: i0, template: "<main *translate=\"let t\" class=\"axp-auth-chooser\">\n <div class=\"axp-auth-chooser__inner\">\n <!-- ----- Platform branding ----- -->\n <section class=\"axp-auth-chooser__brand\">\n <axp-logo\n logoKey=\"platform\"\n appearance=\"onLight\"\n format=\"full\"\n [size]=\"260\"\n [attr.alt]=\"platformTitle()\"\n ></axp-logo>\n </section>\n <!-- ----- Session limit card ----- -->\n <section class=\"axp-auth-chooser__card-wrap\">\n <div class=\"axp-auth-chooser__card\">\n <!-- ----- Profile header while sessions load ----- -->\n @if (isLoading()) {\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:session-limit.title' | translate | async }}\n </h2>\n <p class=\"text-neutral-500 text-sm md:text-base font-medium\">\n {{ '@auth:session-limit.description' | translate | async }}\n </p>\n }\n\n <div class=\"mt-3 w-full flex flex-col gap-3\">\n <!-- ----- Active sessions to terminate ----- -->\n @if (isLoading()) {\n @for (n of [1, 2]; track n) {\n <ax-skeleton [animated]=\"true\" class=\"h-16 w-full rounded-md\"></ax-skeleton>\n }\n } @else if (sessionViews().length === 0) {\n <p class=\"text-sm text-neutral-500 m-0\">\n {{ '@auth:session-limit.empty' | translate | async }}\n </p>\n } @else {\n @for (item of sessionViews(); track item.id) {\n <div\n class=\"axp-session-limit__row flex gap-3 items-center text-start p-3 rounded-md border border-neutral-100 dark:border-neutral-800\"\n [class.opacity-50]=\"isBusy() && terminatingId() !== item.id\"\n >\n <div class=\"flex min-w-0 flex-1 flex-col\">\n <div class=\"font-medium text-sm md:text-base truncate\">{{ item.title }}</div>\n @if (item.subtitle) {\n <div class=\"font-normal text-xs md:text-sm text-neutral-500 truncate\">\n {{ item.subtitle }}\n </div>\n }\n @if (item.metaLabel) {\n <p class=\"m-0 font-normal text-xs text-neutral-400\">{{ item.metaLabel }}</p>\n }\n </div>\n <ax-button\n look=\"outline\"\n color=\"danger\"\n [disabled]=\"isBusy()\"\n [text]=\"('@auth:session-limit.terminate' | translate | async) ?? ''\"\n (onClick)=\"handleTerminate(item.id)\"\n >\n @if (terminatingId() === item.id) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n </div>\n }\n }\n\n <ax-button\n class=\"w-full\"\n color=\"primary\"\n [disabled]=\"isBusy() || isLoading()\"\n [text]=\"('@auth:session-limit.continue' | translate | async) ?? ''\"\n (onClick)=\"handleContinue()\"\n >\n @if (isBusy() && !terminatingId()) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n\n <ax-button\n class=\"w-full\"\n look=\"blank\"\n [disabled]=\"isBusy()\"\n [text]=\"('@auth:session-limit.back-tenants' | translate | async) ?? ''\"\n (onClick)=\"handleBackToTenants()\"\n ></ax-button>\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", ".axp-session-limit__row{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i2.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { 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: AXPLogoComponent, selector: "axp-logo", inputs: ["logoKey", "appearance", "size", "format"] }, { kind: "component", type: AXPUserAvatarComponent, selector: "axp-user-avatar", inputs: ["size", "userId", "showPresence", "displayName", "displayAvatar"] }, { kind: "pipe", type: i5$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
179
179
|
}
|
|
180
180
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPAuthSessionLimitComponent, decorators: [{
|
|
181
181
|
type: Component,
|
|
@@ -188,8 +188,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
188
188
|
AXTranslationModule,
|
|
189
189
|
AXPLogoComponent,
|
|
190
190
|
AXPUserAvatarComponent,
|
|
191
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<main *translate=\"let t\" class=\"axp-auth-chooser\">\n <div class=\"axp-auth-chooser__inner\">\n <!-- ----- Platform branding ----- -->\n <section class=\"axp-auth-chooser__brand\">\n <axp-logo\n logoKey=\"platform\"\n appearance=\"onLight\"\n format=\"full\"\n [size]=\"260\"\n [attr.alt]=\"platformTitle()\"\n ></axp-logo>\n </section>\n <!-- ----- Session limit card ----- -->\n <section class=\"axp-auth-chooser__card-wrap\">\n <div class=\"axp-auth-chooser__card\">\n <!-- ----- Profile header while sessions load ----- -->\n @if (isLoading()) {\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:session-limit.title' | translate | async }}\n </h2>\n <p class=\"text-neutral-500 text-sm md:text-base font-medium\">\n {{ '@auth:session-limit.description' | translate | async }}\n </p>\n }\n\n <div class=\"mt-3 w-full flex flex-col gap-3\">\n <!-- ----- Active sessions to terminate ----- -->\n @if (isLoading()) {\n @for (n of [1, 2]; track n) {\n <ax-skeleton [animated]=\"true\" class=\"h-16 w-full rounded-md\"></ax-skeleton>\n }\n } @else if (sessionViews().length === 0) {\n <p class=\"text-sm text-neutral-500 m-0\">\n {{ '@auth:session-limit.empty' | translate | async }}\n </p>\n } @else {\n @for (item of sessionViews(); track item.id) {\n <div\n class=\"axp-session-limit__row flex gap-3 items-center text-start p-3 rounded-md border border-neutral-100 dark:border-neutral-800\"\n [class.opacity-50]=\"isBusy() && terminatingId() !== item.id\"\n >\n <div class=\"flex min-w-0 flex-1 flex-col\">\n <div class=\"font-medium text-sm md:text-base truncate\">{{ item.title }}</div>\n @if (item.subtitle) {\n <div class=\"font-normal text-xs md:text-sm text-neutral-500 truncate\">\n {{ item.subtitle }}\n </div>\n }\n @if (item.metaLabel) {\n <p class=\"m-0 font-normal text-xs text-neutral-400\">{{ item.metaLabel }}</p>\n }\n </div>\n <ax-button\n look=\"outline\"\n color=\"danger\"\n [disabled]=\"isBusy()\"\n [text]=\"('@auth:session-limit.terminate' | translate | async) ?? ''\"\n (onClick)=\"handleTerminate(item.id)\"\n >\n @if (terminatingId() === item.id) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n </div>\n }\n }\n\n <ax-button\n class=\"w-full\"\n color=\"primary\"\n [disabled]=\"isBusy() || isLoading()\"\n [text]=\"('@auth:session-limit.continue' | translate | async) ?? ''\"\n (onClick)=\"handleContinue()\"\n >\n @if (isBusy() && !terminatingId()) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n\n <ax-button\n class=\"w-full\"\n look=\"blank\"\n [disabled]=\"isBusy()\"\n [text]=\"('@auth:session-limit.back-tenants' | translate | async) ?? ''\"\n (onClick)=\"handleBackToTenants()\"\n ></ax-button>\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:
|
|
191
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<main *translate=\"let t\" class=\"axp-auth-chooser\">\n <div class=\"axp-auth-chooser__inner\">\n <!-- ----- Platform branding ----- -->\n <section class=\"axp-auth-chooser__brand\">\n <axp-logo\n logoKey=\"platform\"\n appearance=\"onLight\"\n format=\"full\"\n [size]=\"260\"\n [attr.alt]=\"platformTitle()\"\n ></axp-logo>\n </section>\n <!-- ----- Session limit card ----- -->\n <section class=\"axp-auth-chooser__card-wrap\">\n <div class=\"axp-auth-chooser__card\">\n <!-- ----- Profile header while sessions load ----- -->\n @if (isLoading()) {\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:session-limit.title' | translate | async }}\n </h2>\n <p class=\"text-neutral-500 text-sm md:text-base font-medium\">\n {{ '@auth:session-limit.description' | translate | async }}\n </p>\n }\n\n <div class=\"mt-3 w-full flex flex-col gap-3\">\n <!-- ----- Active sessions to terminate ----- -->\n @if (isLoading()) {\n @for (n of [1, 2]; track n) {\n <ax-skeleton [animated]=\"true\" class=\"h-16 w-full rounded-md\"></ax-skeleton>\n }\n } @else if (sessionViews().length === 0) {\n <p class=\"text-sm text-neutral-500 m-0\">\n {{ '@auth:session-limit.empty' | translate | async }}\n </p>\n } @else {\n @for (item of sessionViews(); track item.id) {\n <div\n class=\"axp-session-limit__row flex gap-3 items-center text-start p-3 rounded-md border border-neutral-100 dark:border-neutral-800\"\n [class.opacity-50]=\"isBusy() && terminatingId() !== item.id\"\n >\n <div class=\"flex min-w-0 flex-1 flex-col\">\n <div class=\"font-medium text-sm md:text-base truncate\">{{ item.title }}</div>\n @if (item.subtitle) {\n <div class=\"font-normal text-xs md:text-sm text-neutral-500 truncate\">\n {{ item.subtitle }}\n </div>\n }\n @if (item.metaLabel) {\n <p class=\"m-0 font-normal text-xs text-neutral-400\">{{ item.metaLabel }}</p>\n }\n </div>\n <ax-button\n look=\"outline\"\n color=\"danger\"\n [disabled]=\"isBusy()\"\n [text]=\"('@auth:session-limit.terminate' | translate | async) ?? ''\"\n (onClick)=\"handleTerminate(item.id)\"\n >\n @if (terminatingId() === item.id) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n </div>\n }\n }\n\n <ax-button\n class=\"w-full\"\n color=\"primary\"\n [disabled]=\"isBusy() || isLoading()\"\n [text]=\"('@auth:session-limit.continue' | translate | async) ?? ''\"\n (onClick)=\"handleContinue()\"\n >\n @if (isBusy() && !terminatingId()) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n\n <ax-button\n class=\"w-full\"\n look=\"blank\"\n [disabled]=\"isBusy()\"\n [text]=\"('@auth:session-limit.back-tenants' | translate | async) ?? ''\"\n (onClick)=\"handleBackToTenants()\"\n ></ax-button>\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", ".axp-session-limit__row{width:100%}\n"] }]
|
|
192
192
|
}], ctorParameters: () => [] });
|
|
193
193
|
|
|
194
194
|
export { AXPAuthSessionLimitComponent };
|
|
195
|
-
//# sourceMappingURL=acorex-platform-module-auth-client-session-limit.component-
|
|
195
|
+
//# sourceMappingURL=acorex-platform-module-auth-client-session-limit.component-DonVNqDf.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-auth-client-session-limit.component-DH58dRba.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/account/session-limit/session-limit.component.ts","../../../../libs/modules/auth/client/src/lib/pages/account/session-limit/session-limit.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXSkeletonModule } from '@acorex/components/skeleton';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXFormatService } from '@acorex/core/format';\nimport { AXTranslationModule, AXTranslationService } from '@acorex/core/translation';\nimport {\n AXPPlatformAuthRuntimeService,\n AXPSessionService,\n clearSessionLimitPendingTenant,\n readSessionLimitPendingTenant,\n storeSessionLimitPendingTenant,\n type AXPSessionLimitPendingTenant,\n type PlatformAuthOwnDeviceSessionDto,\n} from '@acorex-platform/framework-client/auth';\nimport { AXPPlatformBrandingService, AXPSettingsService } from '@acorex-platform/framework-client/common';\nimport { AXPLogoComponent } from '@acorex-platform/framework-client/core';\nimport { AXPUserAvatarComponent } from '@acorex-platform/framework-client/layout/components';\nimport { AXPRegionalSetting } from '@acorex-platform/framework-shared/core';\nimport { CommonModule } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n inject,\n signal,\n} from '@angular/core';\nimport { Router } from '@angular/router';\n\n//#region ----- Types -----\n\ninterface SessionLimitRowView {\n id: string;\n title: string;\n subtitle: string;\n metaLabel: string;\n}\n\n//#endregion\n\n@Component({\n selector: 'axp-auth-session-limit',\n templateUrl: './session-limit.component.html',\n styleUrls: ['../shared/auth-chooser.layout.css', './session-limit.component.css'],\n imports: [\n CommonModule,\n AXButtonModule,\n AXDecoratorModule,\n AXLoadingModule,\n AXSkeletonModule,\n AXTranslationModule,\n AXPLogoComponent,\n AXPUserAvatarComponent,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXPAuthSessionLimitComponent {\n //#region ----- Services & Dependencies -----\n\n private readonly router = inject(Router);\n private readonly sessionService = inject(AXPSessionService);\n private readonly authRuntime = inject(AXPPlatformAuthRuntimeService);\n private readonly translationService = inject(AXTranslationService);\n private readonly toastService = inject(AXToastService);\n private readonly formatService = inject(AXFormatService);\n private readonly settingsService = inject(AXPSettingsService);\n private readonly platformBranding = inject(AXPPlatformBrandingService);\n\n //#endregion\n\n //#region ----- State Signals -----\n\n protected readonly platformTitle = signal('');\n protected readonly pendingTenant = signal<AXPSessionLimitPendingTenant | null>(null);\n protected readonly isLoading = signal(true);\n protected readonly isBusy = signal(false);\n protected readonly terminatingId = signal<string | null>(null);\n protected readonly sessions = signal<PlatformAuthOwnDeviceSessionDto[]>([]);\n protected readonly sessionViews = signal<SessionLimitRowView[]>([]);\n\n protected readonly user = this.sessionService.user;\n\n //#endregion\n\n //#region ----- Lifecycle -----\n\n constructor() {\n void this.platformBranding.resolvePlatformTitle().then((title) => this.platformTitle.set(title));\n void this.bootstrap();\n }\n\n //#endregion\n\n //#region ----- Event Handlers -----\n\n protected async handleTerminate(sessionId: string): Promise<void> {\n if (this.isBusy()) {\n return;\n }\n\n this.isBusy.set(true);\n this.terminatingId.set(sessionId);\n try {\n await this.authRuntime.terminateOwnDeviceSession(sessionId);\n await this.reloadSessions();\n } catch {\n this.toastService.show({\n color: 'danger',\n content: await this.translationService.translateAsync(\n '@auth:session-limit.terminate-failed',\n ),\n timeOut: 5000,\n });\n } finally {\n this.isBusy.set(false);\n this.terminatingId.set(null);\n }\n }\n\n protected async handleContinue(): Promise<void> {\n const tenant = this.pendingTenant();\n if (!tenant || this.isBusy()) {\n return;\n }\n\n this.isBusy.set(true);\n try {\n await this.sessionService.updateToken({\n user: this.sessionService.user,\n tenant,\n });\n clearSessionLimitPendingTenant();\n await this.router.navigate(['/auth/account/app-chooser']);\n } catch {\n this.toastService.show({\n color: 'warning',\n content: await this.translationService.translateAsync(\n '@auth:session-limit.still-at-limit',\n ),\n timeOut: 5000,\n });\n await this.reloadSessions();\n } finally {\n this.isBusy.set(false);\n }\n }\n\n protected async handleBackToTenants(): Promise<void> {\n clearSessionLimitPendingTenant();\n await this.router.navigate(['/auth/account/tenant-chooser']);\n }\n\n protected async handleSignout(): Promise<void> {\n clearSessionLimitPendingTenant();\n await this.sessionService.signout();\n await this.router.navigate(['/auth/login']);\n }\n\n //#endregion\n\n //#region ----- Data Loading -----\n\n private async bootstrap(): Promise<void> {\n const navTenant = (\n this.router.getCurrentNavigation()?.extras?.state as\n | { tenant?: AXPSessionLimitPendingTenant }\n | undefined\n )?.tenant;\n const historyTenant = (history.state as { tenant?: AXPSessionLimitPendingTenant } | null)?.tenant;\n const stored = readSessionLimitPendingTenant();\n const tenant = navTenant ?? historyTenant ?? stored;\n\n if (!tenant?.id) {\n await this.router.navigate(['/auth/account/tenant-chooser']);\n return;\n }\n\n if (!this.sessionService.user?.id || !this.sessionService.hasSessionCredentials()) {\n await this.router.navigate(['/auth/login']);\n return;\n }\n\n storeSessionLimitPendingTenant(tenant);\n this.pendingTenant.set(tenant);\n await this.reloadSessions();\n }\n\n private async reloadSessions(): Promise<void> {\n const tenant = this.pendingTenant();\n if (!tenant?.id) {\n this.isLoading.set(false);\n return;\n }\n\n this.isLoading.set(true);\n try {\n const items = await this.authRuntime.listOwnDeviceSessions(tenant.id);\n this.sessions.set(items);\n this.sessionViews.set(await Promise.all(items.map((item) => this.toRowView(item))));\n } catch {\n this.sessions.set([]);\n this.sessionViews.set([]);\n this.toastService.show({\n color: 'danger',\n content: await this.translationService.translateAsync('@auth:session-limit.load-failed'),\n timeOut: 5000,\n });\n } finally {\n this.isLoading.set(false);\n }\n }\n\n private async toRowView(item: PlatformAuthOwnDeviceSessionDto): Promise<SessionLimitRowView> {\n const title = [item.deviceName, item.browser].filter(Boolean).join(' · ') || item.id;\n const subtitle = [item.operatingSystem, item.ipAddress].filter(Boolean).join(' · ');\n let metaLabel = '';\n if (item.lastLoginAt) {\n try {\n const dateFormat = await this.settingsService.get(AXPRegionalSetting.ShortDate);\n const timeFormat = await this.settingsService.get(AXPRegionalSetting.ShortTime);\n const format = `${dateFormat} ${timeFormat}`.trim();\n metaLabel = String(this.formatService.format(new Date(item.lastLoginAt), 'datetime', { format }));\n } catch {\n metaLabel = item.lastLoginAt;\n }\n }\n\n return { id: item.id, title, subtitle, metaLabel };\n }\n\n //#endregion\n}\n","<main *translate=\"let t\" class=\"axp-auth-chooser\">\n <div class=\"axp-auth-chooser__inner\">\n <!-- ----- Platform branding ----- -->\n <section class=\"axp-auth-chooser__brand\">\n <axp-logo\n logoKey=\"platform\"\n appearance=\"onLight\"\n format=\"full\"\n [size]=\"260\"\n [attr.alt]=\"platformTitle()\"\n ></axp-logo>\n </section>\n <!-- ----- Session limit card ----- -->\n <section class=\"axp-auth-chooser__card-wrap\">\n <div class=\"axp-auth-chooser__card\">\n <!-- ----- Profile header while sessions load ----- -->\n @if (isLoading()) {\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:session-limit.title' | translate | async }}\n </h2>\n <p class=\"text-neutral-500 text-sm md:text-base font-medium\">\n {{ '@auth:session-limit.description' | translate | async }}\n </p>\n }\n\n <div class=\"mt-3 w-full flex flex-col gap-3\">\n <!-- ----- Active sessions to terminate ----- -->\n @if (isLoading()) {\n @for (n of [1, 2]; track n) {\n <ax-skeleton [animated]=\"true\" class=\"h-16 w-full rounded-md\"></ax-skeleton>\n }\n } @else if (sessionViews().length === 0) {\n <p class=\"text-sm text-neutral-500 m-0\">\n {{ '@auth:session-limit.empty' | translate | async }}\n </p>\n } @else {\n @for (item of sessionViews(); track item.id) {\n <div\n class=\"axp-session-limit__row flex gap-3 items-center text-start p-3 rounded-md border border-neutral-100 dark:border-neutral-800\"\n [class.opacity-50]=\"isBusy() && terminatingId() !== item.id\"\n >\n <div class=\"flex min-w-0 flex-1 flex-col\">\n <div class=\"font-medium text-sm md:text-base truncate\">{{ item.title }}</div>\n @if (item.subtitle) {\n <div class=\"font-normal text-xs md:text-sm text-neutral-500 truncate\">\n {{ item.subtitle }}\n </div>\n }\n @if (item.metaLabel) {\n <p class=\"m-0 font-normal text-xs text-neutral-400\">{{ item.metaLabel }}</p>\n }\n </div>\n <ax-button\n look=\"outline\"\n color=\"danger\"\n [disabled]=\"isBusy()\"\n [text]=\"('@auth:session-limit.terminate' | translate | async) ?? ''\"\n (onClick)=\"handleTerminate(item.id)\"\n >\n @if (terminatingId() === item.id) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n </div>\n }\n }\n\n <ax-button\n class=\"w-full\"\n color=\"primary\"\n [disabled]=\"isBusy() || isLoading()\"\n [text]=\"('@auth:session-limit.continue' | translate | async) ?? ''\"\n (onClick)=\"handleContinue()\"\n >\n @if (isBusy() && !terminatingId()) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n\n <ax-button\n class=\"w-full\"\n look=\"blank\"\n [disabled]=\"isBusy()\"\n [text]=\"('@auth:session-limit.back-tenants' | translate | async) ?? ''\"\n (onClick)=\"handleBackToTenants()\"\n ></ax-button>\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":["i4","i5"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAuCA;MAmBa,4BAA4B,CAAA;;;AA8BvC,IAAA,WAAA,GAAA;;AA3BiB,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACvB,QAAA,IAAA,CAAA,cAAc,GAAG,MA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AAA,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,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAKb,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBAjBxC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,wBAAwB,EAAA,OAAA,EAGzB;wBACP,YAAY;wBACZ,cAAc;wBACd,iBAAiB;wBACjB,eAAe;wBACf,gBAAgB;wBAChB,mBAAmB;wBACnB,gBAAgB;wBAChB,sBAAsB;AACvB,qBAAA,EAAA,eAAA,EACgB,uBAAuB,CAAC,MAAM,EAAA,aAAA,EAChC,iBAAiB,CAAC,IAAI,EAAA,QAAA,EAAA,+6IAAA,EAAA,MAAA,EAAA,CAAA,4yIAAA,EAAA,uCAAA,CAAA,EAAA;;;"}
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-auth-client-session-limit.component-DonVNqDf.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/account/session-limit/session-limit.component.ts","../../../../libs/modules/auth/client/src/lib/pages/account/session-limit/session-limit.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXSkeletonModule } from '@acorex/components/skeleton';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXFormatService } from '@acorex/core/format';\nimport { AXTranslationModule, AXTranslationService } from '@acorex/core/translation';\nimport {\n AXPPlatformAuthRuntimeService,\n AXPSessionService,\n clearSessionLimitPendingTenant,\n readSessionLimitPendingTenant,\n storeSessionLimitPendingTenant,\n type AXPSessionLimitPendingTenant,\n type PlatformAuthOwnDeviceSessionDto,\n} from '@acorex-platform/framework-client/auth';\nimport { AXPPlatformBrandingService, AXPSettingsService } from '@acorex-platform/framework-client/common';\nimport { AXPLogoComponent } from '@acorex-platform/framework-client/core';\nimport { AXPUserAvatarComponent } from '@acorex-platform/framework-client/layout/components';\nimport { AXPRegionalSetting } from '@acorex-platform/framework-shared/core';\nimport { CommonModule } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n inject,\n signal,\n} from '@angular/core';\nimport { Router } from '@angular/router';\n\n//#region ----- Types -----\n\ninterface SessionLimitRowView {\n id: string;\n title: string;\n subtitle: string;\n metaLabel: string;\n}\n\n//#endregion\n\n@Component({\n selector: 'axp-auth-session-limit',\n templateUrl: './session-limit.component.html',\n styleUrls: ['../shared/auth-chooser.layout.css', './session-limit.component.css'],\n imports: [\n CommonModule,\n AXButtonModule,\n AXDecoratorModule,\n AXLoadingModule,\n AXSkeletonModule,\n AXTranslationModule,\n AXPLogoComponent,\n AXPUserAvatarComponent,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXPAuthSessionLimitComponent {\n //#region ----- Services & Dependencies -----\n\n private readonly router = inject(Router);\n private readonly sessionService = inject(AXPSessionService);\n private readonly authRuntime = inject(AXPPlatformAuthRuntimeService);\n private readonly translationService = inject(AXTranslationService);\n private readonly toastService = inject(AXToastService);\n private readonly formatService = inject(AXFormatService);\n private readonly settingsService = inject(AXPSettingsService);\n private readonly platformBranding = inject(AXPPlatformBrandingService);\n\n //#endregion\n\n //#region ----- State Signals -----\n\n protected readonly platformTitle = signal('');\n protected readonly pendingTenant = signal<AXPSessionLimitPendingTenant | null>(null);\n protected readonly isLoading = signal(true);\n protected readonly isBusy = signal(false);\n protected readonly terminatingId = signal<string | null>(null);\n protected readonly sessions = signal<PlatformAuthOwnDeviceSessionDto[]>([]);\n protected readonly sessionViews = signal<SessionLimitRowView[]>([]);\n\n protected readonly user = this.sessionService.user;\n\n //#endregion\n\n //#region ----- Lifecycle -----\n\n constructor() {\n void this.platformBranding.resolvePlatformTitle().then((title) => this.platformTitle.set(title));\n void this.bootstrap();\n }\n\n //#endregion\n\n //#region ----- Event Handlers -----\n\n protected async handleTerminate(sessionId: string): Promise<void> {\n if (this.isBusy()) {\n return;\n }\n\n this.isBusy.set(true);\n this.terminatingId.set(sessionId);\n try {\n await this.authRuntime.terminateOwnDeviceSession(sessionId);\n await this.reloadSessions();\n } catch {\n this.toastService.show({\n color: 'danger',\n content: await this.translationService.translateAsync(\n '@auth:session-limit.terminate-failed',\n ),\n timeOut: 5000,\n });\n } finally {\n this.isBusy.set(false);\n this.terminatingId.set(null);\n }\n }\n\n protected async handleContinue(): Promise<void> {\n const tenant = this.pendingTenant();\n if (!tenant || this.isBusy()) {\n return;\n }\n\n this.isBusy.set(true);\n try {\n await this.sessionService.updateToken({\n user: this.sessionService.user,\n tenant,\n });\n clearSessionLimitPendingTenant();\n await this.router.navigate(['/auth/account/app-chooser']);\n } catch {\n this.toastService.show({\n color: 'warning',\n content: await this.translationService.translateAsync(\n '@auth:session-limit.still-at-limit',\n ),\n timeOut: 5000,\n });\n await this.reloadSessions();\n } finally {\n this.isBusy.set(false);\n }\n }\n\n protected async handleBackToTenants(): Promise<void> {\n clearSessionLimitPendingTenant();\n await this.router.navigate(['/auth/account/tenant-chooser']);\n }\n\n protected async handleSignout(): Promise<void> {\n clearSessionLimitPendingTenant();\n await this.sessionService.signout();\n await this.router.navigate(['/auth/login']);\n }\n\n //#endregion\n\n //#region ----- Data Loading -----\n\n private async bootstrap(): Promise<void> {\n const navTenant = (\n this.router.getCurrentNavigation()?.extras?.state as\n | { tenant?: AXPSessionLimitPendingTenant }\n | undefined\n )?.tenant;\n const historyTenant = (history.state as { tenant?: AXPSessionLimitPendingTenant } | null)?.tenant;\n const stored = readSessionLimitPendingTenant();\n const tenant = navTenant ?? historyTenant ?? stored;\n\n if (!tenant?.id) {\n await this.router.navigate(['/auth/account/tenant-chooser']);\n return;\n }\n\n if (!this.sessionService.user?.id || !this.sessionService.hasSessionCredentials()) {\n await this.router.navigate(['/auth/login']);\n return;\n }\n\n storeSessionLimitPendingTenant(tenant);\n this.pendingTenant.set(tenant);\n await this.reloadSessions();\n }\n\n private async reloadSessions(): Promise<void> {\n const tenant = this.pendingTenant();\n if (!tenant?.id) {\n this.isLoading.set(false);\n return;\n }\n\n this.isLoading.set(true);\n try {\n const items = await this.authRuntime.listOwnDeviceSessions(tenant.id);\n this.sessions.set(items);\n this.sessionViews.set(await Promise.all(items.map((item) => this.toRowView(item))));\n } catch {\n this.sessions.set([]);\n this.sessionViews.set([]);\n this.toastService.show({\n color: 'danger',\n content: await this.translationService.translateAsync('@auth:session-limit.load-failed'),\n timeOut: 5000,\n });\n } finally {\n this.isLoading.set(false);\n }\n }\n\n private async toRowView(item: PlatformAuthOwnDeviceSessionDto): Promise<SessionLimitRowView> {\n const title = [item.deviceName, item.browser].filter(Boolean).join(' · ') || item.id;\n const subtitle = [item.operatingSystem, item.ipAddress].filter(Boolean).join(' · ');\n let metaLabel = '';\n if (item.lastLoginAt) {\n try {\n const dateFormat = await this.settingsService.get(AXPRegionalSetting.ShortDate);\n const timeFormat = await this.settingsService.get(AXPRegionalSetting.ShortTime);\n const format = `${dateFormat} ${timeFormat}`.trim();\n metaLabel = String(this.formatService.format(new Date(item.lastLoginAt), 'datetime', { format }));\n } catch {\n metaLabel = item.lastLoginAt;\n }\n }\n\n return { id: item.id, title, subtitle, metaLabel };\n }\n\n //#endregion\n}\n","<main *translate=\"let t\" class=\"axp-auth-chooser\">\n <div class=\"axp-auth-chooser__inner\">\n <!-- ----- Platform branding ----- -->\n <section class=\"axp-auth-chooser__brand\">\n <axp-logo\n logoKey=\"platform\"\n appearance=\"onLight\"\n format=\"full\"\n [size]=\"260\"\n [attr.alt]=\"platformTitle()\"\n ></axp-logo>\n </section>\n <!-- ----- Session limit card ----- -->\n <section class=\"axp-auth-chooser__card-wrap\">\n <div class=\"axp-auth-chooser__card\">\n <!-- ----- Profile header while sessions load ----- -->\n @if (isLoading()) {\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:session-limit.title' | translate | async }}\n </h2>\n <p class=\"text-neutral-500 text-sm md:text-base font-medium\">\n {{ '@auth:session-limit.description' | translate | async }}\n </p>\n }\n\n <div class=\"mt-3 w-full flex flex-col gap-3\">\n <!-- ----- Active sessions to terminate ----- -->\n @if (isLoading()) {\n @for (n of [1, 2]; track n) {\n <ax-skeleton [animated]=\"true\" class=\"h-16 w-full rounded-md\"></ax-skeleton>\n }\n } @else if (sessionViews().length === 0) {\n <p class=\"text-sm text-neutral-500 m-0\">\n {{ '@auth:session-limit.empty' | translate | async }}\n </p>\n } @else {\n @for (item of sessionViews(); track item.id) {\n <div\n class=\"axp-session-limit__row flex gap-3 items-center text-start p-3 rounded-md border border-neutral-100 dark:border-neutral-800\"\n [class.opacity-50]=\"isBusy() && terminatingId() !== item.id\"\n >\n <div class=\"flex min-w-0 flex-1 flex-col\">\n <div class=\"font-medium text-sm md:text-base truncate\">{{ item.title }}</div>\n @if (item.subtitle) {\n <div class=\"font-normal text-xs md:text-sm text-neutral-500 truncate\">\n {{ item.subtitle }}\n </div>\n }\n @if (item.metaLabel) {\n <p class=\"m-0 font-normal text-xs text-neutral-400\">{{ item.metaLabel }}</p>\n }\n </div>\n <ax-button\n look=\"outline\"\n color=\"danger\"\n [disabled]=\"isBusy()\"\n [text]=\"('@auth:session-limit.terminate' | translate | async) ?? ''\"\n (onClick)=\"handleTerminate(item.id)\"\n >\n @if (terminatingId() === item.id) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n </div>\n }\n }\n\n <ax-button\n class=\"w-full\"\n color=\"primary\"\n [disabled]=\"isBusy() || isLoading()\"\n [text]=\"('@auth:session-limit.continue' | translate | async) ?? ''\"\n (onClick)=\"handleContinue()\"\n >\n @if (isBusy() && !terminatingId()) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n\n <ax-button\n class=\"w-full\"\n look=\"blank\"\n [disabled]=\"isBusy()\"\n [text]=\"('@auth:session-limit.back-tenants' | translate | async) ?? ''\"\n (onClick)=\"handleBackToTenants()\"\n ></ax-button>\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":["i4","i5"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAuCA;MAmBa,4BAA4B,CAAA;;;AA8BvC,IAAA,WAAA,GAAA;;AA3BiB,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACvB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,6BAA6B,CAAC;AACnD,QAAA,IAAA,CAAA,kBAAkB,GAAG,MAAM,CAAC,oBAAoB,CAAC;AACjD,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC;AACrC,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,eAAe,CAAC;AACvC,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAC5C,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,0BAA0B,CAAC;;;QAMnD,IAAA,CA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