@acorex-platform/module-auth-client 0.0.59 → 0.0.60
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-Ct28GG3a.mjs → acorex-platform-module-auth-client-accept-invitation.component-Bq49K_8F.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-accept-invitation.component-Ct28GG3a.mjs.map → acorex-platform-module-auth-client-accept-invitation.component-Bq49K_8F.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-acorex-platform-module-auth-client-CQEt9bXJ.mjs → acorex-platform-module-auth-client-acorex-platform-module-auth-client-DINrCCAx.mjs} +75 -51
- package/fesm2022/acorex-platform-module-auth-client-acorex-platform-module-auth-client-DINrCCAx.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-app-chooser.component-SUwPTueG.mjs → acorex-platform-module-auth-client-app-chooser.component-C1fUi_Mp.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-app-chooser.component-SUwPTueG.mjs.map → acorex-platform-module-auth-client-app-chooser.component-C1fUi_Mp.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-change-password.command-DRwzhNlO.mjs → acorex-platform-module-auth-client-change-password.command-UvBqwF9V.mjs} +48 -23
- package/fesm2022/acorex-platform-module-auth-client-change-password.command-UvBqwF9V.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-change-photo.command-C1Fm_MdA.mjs → acorex-platform-module-auth-client-change-photo.command-2e7ZjiEf.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-change-photo.command-C1Fm_MdA.mjs.map → acorex-platform-module-auth-client-change-photo.command-2e7ZjiEf.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-get-user-activity.query-CLdmidQb.mjs → acorex-platform-module-auth-client-get-user-activity.query-BGOYJ4FC.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-get-user-activity.query-CLdmidQb.mjs.map → acorex-platform-module-auth-client-get-user-activity.query-BGOYJ4FC.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-lock-screen.command-CHbe_N-Z.mjs → acorex-platform-module-auth-client-lock-screen.command-BOKKr6WW.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-lock-screen.command-CHbe_N-Z.mjs.map → acorex-platform-module-auth-client-lock-screen.command-BOKKr6WW.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-login.module-BM3L_d8i.mjs → acorex-platform-module-auth-client-login.module-gi6wea8m.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-login.module-BM3L_d8i.mjs.map → acorex-platform-module-auth-client-login.module-gi6wea8m.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-manage-two-factor.command-BOM6_896.mjs → acorex-platform-module-auth-client-manage-two-factor.command-DRsNZWZF.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-manage-two-factor.command-BOM6_896.mjs.map → acorex-platform-module-auth-client-manage-two-factor.command-DRsNZWZF.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-oauth-callback.component-BgUSFibH.mjs → acorex-platform-module-auth-client-oauth-callback.component-DLrIDQXn.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-oauth-callback.component-BgUSFibH.mjs.map → acorex-platform-module-auth-client-oauth-callback.component-DLrIDQXn.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-open-sessions.command-Dq9eJ-bY.mjs → acorex-platform-module-auth-client-open-sessions.command-CwWtPiTG.mjs} +5 -5
- package/fesm2022/{acorex-platform-module-auth-client-open-sessions.command-Dq9eJ-bY.mjs.map → acorex-platform-module-auth-client-open-sessions.command-CwWtPiTG.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-password.component-SpEVRPaE.mjs → acorex-platform-module-auth-client-password.component-CAZ3tVPG.mjs} +5 -5
- package/fesm2022/{acorex-platform-module-auth-client-password.component-SpEVRPaE.mjs.map → acorex-platform-module-auth-client-password.component-CAZ3tVPG.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-password.component-Ci5Wy3rO.mjs → acorex-platform-module-auth-client-password.component-CE2nXYCz.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-password.component-Ci5Wy3rO.mjs.map → acorex-platform-module-auth-client-password.component-CE2nXYCz.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-platform-settings-unavailable.component-LwuokJiZ.mjs → acorex-platform-module-auth-client-platform-settings-unavailable.component-BJMtsa99.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-platform-settings-unavailable.component-LwuokJiZ.mjs.map → acorex-platform-module-auth-client-platform-settings-unavailable.component-BJMtsa99.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-profile-activity-chart.component-DcMdz44P.mjs → acorex-platform-module-auth-client-profile-activity-chart.component-BcbVLmZo.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-profile-activity-chart.component-DcMdz44P.mjs.map → acorex-platform-module-auth-client-profile-activity-chart.component-BcbVLmZo.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-DTujROAP.mjs → acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-Dx2-o9XL.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-DTujROAP.mjs.map → acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-Dx2-o9XL.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-profile-page-component.provider-CelasDrw.mjs → acorex-platform-module-auth-client-profile-page-component.provider-DEVBmVKd.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-profile-page-component.provider-CelasDrw.mjs.map → acorex-platform-module-auth-client-profile-page-component.provider-DEVBmVKd.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-profile-page.component-iGdfjv6g.mjs → acorex-platform-module-auth-client-profile-page.component-BNYoh2IL.mjs} +7 -7
- package/fesm2022/{acorex-platform-module-auth-client-profile-page.component-iGdfjv6g.mjs.map → acorex-platform-module-auth-client-profile-page.component-BNYoh2IL.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-register-password.component-CaztyyPx.mjs → acorex-platform-module-auth-client-register-password.component-DArLfswX.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-register-password.component-CaztyyPx.mjs.map → acorex-platform-module-auth-client-register-password.component-DArLfswX.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-register.module-R-yxS0EI.mjs → acorex-platform-module-auth-client-register.module-BXMV9tp3.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-register.module-R-yxS0EI.mjs.map → acorex-platform-module-auth-client-register.module-BXMV9tp3.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-remove-pin-code.command-DHY46WWD.mjs → acorex-platform-module-auth-client-remove-pin-code.command-D9uLV6je.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-remove-pin-code.command-DHY46WWD.mjs.map → acorex-platform-module-auth-client-remove-pin-code.command-D9uLV6je.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-reset-password.component-BQfKSqpW.mjs → acorex-platform-module-auth-client-reset-password.component-Cz4UePgF.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-reset-password.component-BQfKSqpW.mjs.map → acorex-platform-module-auth-client-reset-password.component-Cz4UePgF.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-result.component-DuMch6Ge.mjs → acorex-platform-module-auth-client-result.component-BS5uizi6.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-result.component-DuMch6Ge.mjs.map → acorex-platform-module-auth-client-result.component-BS5uizi6.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-auth-client-routes-Dw8YhBrw.mjs +21 -0
- package/fesm2022/acorex-platform-module-auth-client-routes-Dw8YhBrw.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-session-limit.component-Dc6TIn-2.mjs → acorex-platform-module-auth-client-session-limit.component-DH58dRba.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-session-limit.component-Dc6TIn-2.mjs.map → acorex-platform-module-auth-client-session-limit.component-DH58dRba.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-session-lock-overlay.component-DBJjSIOq.mjs → acorex-platform-module-auth-client-session-lock-overlay.component-D_IKdJl8.mjs} +5 -5
- package/fesm2022/{acorex-platform-module-auth-client-session-lock-overlay.component-DBJjSIOq.mjs.map → acorex-platform-module-auth-client-session-lock-overlay.component-D_IKdJl8.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.command-CheMeghC.mjs → acorex-platform-module-auth-client-set-pin-code.command-DRLTGXEF.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.command-CheMeghC.mjs.map → acorex-platform-module-auth-client-set-pin-code.command-DRLTGXEF.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.component-BWl3vLOO.mjs → acorex-platform-module-auth-client-set-pin-code.component-m7SwyaZH.mjs} +5 -5
- package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.component-BWl3vLOO.mjs.map → acorex-platform-module-auth-client-set-pin-code.component-m7SwyaZH.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-tenant-chooser.component-BEtlhGUb.mjs → acorex-platform-module-auth-client-tenant-chooser.component-CdqBeKVw.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-tenant-chooser.component-BEtlhGUb.mjs.map → acorex-platform-module-auth-client-tenant-chooser.component-CdqBeKVw.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-auth-client-tenant-request.component-B-qx-HIi.mjs +256 -0
- package/fesm2022/acorex-platform-module-auth-client-tenant-request.component-B-qx-HIi.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-two-factor-code.component-4XVRgh6H.mjs → acorex-platform-module-auth-client-two-factor-code.component-B1334bPg.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-two-factor-code.component-4XVRgh6H.mjs.map → acorex-platform-module-auth-client-two-factor-code.component-B1334bPg.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-two-factor.module-CrLPxje1.mjs → acorex-platform-module-auth-client-two-factor.module-C0mkbR4X.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-two-factor.module-CrLPxje1.mjs.map → acorex-platform-module-auth-client-two-factor.module-C0mkbR4X.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-view-login-history.command-qrd0bNM9.mjs → acorex-platform-module-auth-client-view-login-history.command-CerhsvHF.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-view-login-history.command-qrd0bNM9.mjs.map → acorex-platform-module-auth-client-view-login-history.command-CerhsvHF.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-auth-client-waiting-room.component-Wu8iPiTm.mjs +327 -0
- package/fesm2022/acorex-platform-module-auth-client-waiting-room.component-Wu8iPiTm.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-welcome-onboarding-page.component-3yva-FyV.mjs → acorex-platform-module-auth-client-welcome-onboarding-page.component-BKqHYkv2.mjs} +5 -5
- package/fesm2022/{acorex-platform-module-auth-client-welcome-onboarding-page.component-3yva-FyV.mjs.map → acorex-platform-module-auth-client-welcome-onboarding-page.component-BKqHYkv2.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-welcome-onboarding.command-CFpMZAwC.mjs → acorex-platform-module-auth-client-welcome-onboarding.command--Rr0duJS.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-welcome-onboarding.command-CFpMZAwC.mjs.map → acorex-platform-module-auth-client-welcome-onboarding.command--Rr0duJS.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-auth-client.mjs +1 -1
- package/i18n/en-AU/auth.json +70 -5
- package/i18n/en-US/auth.json +70 -5
- package/i18n/fa-IR/auth.json +70 -5
- package/package.json +3 -2
- package/fesm2022/acorex-platform-module-auth-client-acorex-platform-module-auth-client-CQEt9bXJ.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-change-password.command-DRwzhNlO.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-routes-90eFjxx8.mjs +0 -17
- package/fesm2022/acorex-platform-module-auth-client-routes-90eFjxx8.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-waiting-room.component-IAVIt1fY.mjs +0 -165
- package/fesm2022/acorex-platform-module-auth-client-waiting-room.component-IAVIt1fY.mjs.map +0 -1
package/fesm2022/acorex-platform-module-auth-client-change-password.command-DRwzhNlO.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-auth-client-change-password.command-DRwzhNlO.mjs","sources":["../../../../libs/modules/auth/client/src/lib/commands/change-password.command.ts"],"sourcesContent":["import { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport {\n AXM_CHANGE_OWN_PASSWORD_ERROR_CODES,\n AXMSecurityManagementServerCommands,\n type AXMChangeOwnPasswordResult,\n} from '@acorex-platform/module-security-management-client/contracts';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPCommandService } from '@acorex-platform/framework-client/runtime';\nimport { AXPRuntimeCommandResult, runtimeCommandPayloadData } from '@acorex-platform/framework-shared/core';\nimport {\n AXPLayoutBuilderService,\n resolveLayoutBuilderDialogResult,\n} from '@acorex-platform/framework-client/layout/builder';\n\nimport { inject, Injectable } from '@angular/core';\nimport {\n getPasswordComplexityHintKey,\n getPasswordComplexityValidationMessageKey,\n validatePasswordAgainstComplexity,\n} from '../shared/utils/password-complexity.utils';\nimport { AXPAuthPasswordComplexityService } from '../shared/services/password-complexity.service';\nimport { AXPAuthPasswordChangeTrackingService } from '../shared/services/password-change-tracking.service';\nimport {\n CHANGE_PASSWORD_SECTION_ID,\n PROFILE_SECTION_INSIGHTS_PATCH_METADATA_KEY,\n buildPasswordLastChangedInsights,\n} from '../pages/account/profile-page/profile-password-insight.util';\n\n//#region ---- Constants ----\n\nconst CHANGE_OWN_PASSWORD_ERROR_I18N: Record<string, string> = {\n [AXM_CHANGE_OWN_PASSWORD_ERROR_CODES.NotSignedIn]:\n '@auth:profile-page.commands.change-password.messages.not-signed-in',\n [AXM_CHANGE_OWN_PASSWORD_ERROR_CODES.IncorrectCurrent]:\n '@auth:profile-page.commands.change-password.messages.incorrect-current',\n [AXM_CHANGE_OWN_PASSWORD_ERROR_CODES.SameAsCurrent]:\n '@auth:profile-page.commands.change-password.messages.same-as-current',\n [AXM_CHANGE_OWN_PASSWORD_ERROR_CODES.InvalidInput]:\n '@auth:profile-page.commands.change-password.messages.save-failed',\n};\n\n//#endregion\n\n//#region ---- Change password command ----\n\n/** Opens a dialog to change the signed-in user's password. */\n@Injectable({ providedIn: 'root' })\nexport class AXPChangePasswordCommand implements AXPCommand {\n //#region ---- Services & Dependencies ----\n\n private readonly layoutBuilder = inject(AXPLayoutBuilderService);\n private readonly commandService = inject(AXPCommandService);\n private readonly sessionService = inject(AXPSessionService);\n private readonly passwordComplexityService = inject(AXPAuthPasswordComplexityService);\n private readonly passwordChangeTrackingService = inject(AXPAuthPasswordChangeTrackingService);\n private readonly toastService = inject(AXToastService);\n private readonly translateService = inject(AXTranslationService);\n\n //#endregion\n\n //#region ---- Command ----\n\n async execute(): AXPCommandExecuteResultPromise<void> {\n const passwordComplexity = await this.passwordComplexityService.getLevel();\n const complexityHintKey = getPasswordComplexityHintKey(passwordComplexity);\n const complexityValidationMessageKey = getPasswordComplexityValidationMessageKey(passwordComplexity);\n const complexityValidationMessage = await this.translateService.translateAsync(complexityValidationMessageKey);\n\n const dialogTitle = await this.translateService.translateAsync(\n '@auth:profile-page.commands.change-password.dialog.title',\n );\n\n const result = await this.layoutBuilder\n .create()\n .dialog<AXPRuntimeCommandResult<void> | null>((dialog) => {\n dialog\n .setTitle(dialogTitle)\n .setSize('md')\n .setCloseButton(true)\n .setContext({\n currentPassword: '',\n newPassword: '',\n confirmPassword: '',\n })\n .content((layout) => {\n layout.flex((flex) => {\n flex\n .setDirection('column')\n .setGap('1rem')\n .formField('@auth:profile-page.commands.change-password.fields.current-password.title', (field) => {\n field.setOptions({\n hint: '@auth:profile-page.commands.change-password.fields.current-password.hint',\n hintDisplayMode: 'note',\n });\n field.path('currentPassword');\n field.passwordBox({\n revealToggle: true,\n placeholder: '@auth:profile-page.commands.change-password.fields.current-password.placeholder',\n validations: [{ rule: 'required' }],\n });\n })\n .formField('@auth:profile-page.commands.change-password.fields.new-password.title', (field) => {\n field.setOptions({ hint: complexityHintKey, hintDisplayMode: 'note' });\n field.path('newPassword');\n field.passwordBox({\n revealToggle: true,\n placeholder: '@auth:profile-page.commands.change-password.fields.new-password.placeholder',\n validations: [\n { rule: 'required' },\n {\n rule: 'password-complexity',\n options: {\n message: complexityValidationMessage,\n },\n },\n ],\n });\n })\n .formField('@auth:profile-page.commands.change-password.fields.confirm-password.title', (field) => {\n field.setOptions({\n hint: '@auth:profile-page.commands.change-password.fields.confirm-password.hint',\n hintDisplayMode: 'note',\n });\n field.path('confirmPassword');\n field.passwordBox({\n revealToggle: true,\n placeholder: '@auth:profile-page.commands.change-password.fields.confirm-password.placeholder',\n validations: [{ rule: 'required' }],\n });\n });\n });\n })\n .setActions((actions) => {\n actions.cancel('@general:actions.cancel.title');\n actions.submit('@auth:profile-page.commands.change-password.actions.submit');\n })\n .onAction(async (dialogRef) => {\n if (dialogRef.action() === 'cancel') {\n return null;\n }\n\n const form = dialogRef.context() as {\n currentPassword?: string;\n newPassword?: string;\n confirmPassword?: string;\n };\n\n const currentPassword = form.currentPassword ?? '';\n const newPassword = form.newPassword ?? '';\n const confirmPassword = form.confirmPassword ?? '';\n\n if (newPassword !== confirmPassword) {\n throw new Error('@auth:profile-page.commands.change-password.messages.mismatch');\n }\n\n if (newPassword === currentPassword) {\n throw new Error('@auth:profile-page.commands.change-password.messages.same-as-current');\n }\n\n const submitComplexity = await this.passwordComplexityService.getLevel();\n const submitValidationMessageKey = getPasswordComplexityValidationMessageKey(submitComplexity);\n\n if (!validatePasswordAgainstComplexity(newPassword, submitComplexity)) {\n throw new Error(submitValidationMessageKey);\n }\n\n dialogRef.setLoading(true);\n try {\n const serverResult = await this.commandService.execute(\n AXMSecurityManagementServerCommands.ChangeOwnPassword,\n { currentPassword, newPassword },\n );\n\n if (!serverResult?.success) {\n throw new Error(this.resolveServerErrorKey(serverResult?.message?.code));\n }\n\n const payload = runtimeCommandPayloadData(serverResult) as AXMChangeOwnPasswordResult | undefined;\n const passwordChangedAt = payload?.passwordChangedAt\n ? new Date(payload.passwordChangedAt)\n : new Date();\n const userId = this.sessionService.user?.id;\n if (userId) {\n this.passwordChangeTrackingService.recordChange(userId, passwordChangedAt);\n }\n\n const successTitle = await this.translateService.translateAsync(\n '@auth:profile-page.commands.change-password.messages.success',\n );\n this.toastService.show({ color: 'success', title: successTitle });\n dialogRef.close();\n return {\n success: true,\n kind: 'object',\n data: undefined,\n metadata: {\n refresh: false,\n [PROFILE_SECTION_INSIGHTS_PATCH_METADATA_KEY]: {\n sectionId: CHANGE_PASSWORD_SECTION_ID,\n insights: buildPasswordLastChangedInsights(passwordChangedAt),\n },\n },\n };\n } finally {\n dialogRef.setLoading(false);\n }\n });\n })\n .show();\n\n return resolveLayoutBuilderDialogResult<AXPRuntimeCommandResult<void>>(result) ?? { success: false };\n }\n\n //#endregion\n\n //#region ---- Utility Methods ----\n\n private resolveServerErrorKey(code: string | undefined): string {\n if (code && CHANGE_OWN_PASSWORD_ERROR_I18N[code]) {\n return CHANGE_OWN_PASSWORD_ERROR_I18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X,MAAM,EAAA,CAAA,CAAA;;2FACnB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBADpC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
var routes = [
|
|
2
|
-
{
|
|
3
|
-
path: 'forgot',
|
|
4
|
-
loadComponent: () => import('./acorex-platform-module-auth-client-password.component-Ci5Wy3rO.mjs').then((c) => c.AXPForgetPasswordComponent),
|
|
5
|
-
},
|
|
6
|
-
{
|
|
7
|
-
path: 'reset-password',
|
|
8
|
-
loadComponent: () => import('./acorex-platform-module-auth-client-reset-password.component-BQfKSqpW.mjs').then((c) => c.AXPResetPasswordComponent),
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
path: 'accept-invitation',
|
|
12
|
-
loadComponent: () => import('./acorex-platform-module-auth-client-accept-invitation.component-Ct28GG3a.mjs').then((c) => c.AXPAcceptInvitationComponent),
|
|
13
|
-
},
|
|
14
|
-
];
|
|
15
|
-
|
|
16
|
-
export { routes as default };
|
|
17
|
-
//# sourceMappingURL=acorex-platform-module-auth-client-routes-90eFjxx8.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-auth-client-routes-90eFjxx8.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] 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;CACS;;"}
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
import * as i1 from '@acorex/components/button';
|
|
2
|
-
import { AXButtonModule } from '@acorex/components/button';
|
|
3
|
-
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
4
|
-
import { AXLoadingModule } from '@acorex/components/loading';
|
|
5
|
-
import * as i3 from '@acorex/components/skeleton';
|
|
6
|
-
import { AXSkeletonModule } from '@acorex/components/skeleton';
|
|
7
|
-
import { AXToastService } from '@acorex/components/toast';
|
|
8
|
-
import * as i5 from '@acorex/core/translation';
|
|
9
|
-
import { AXTranslationService, AXTranslationModule } from '@acorex/core/translation';
|
|
10
|
-
import { AXPSessionService } from '@acorex-platform/framework-client/auth';
|
|
11
|
-
import { AXPPlatformBrandingService } from '@acorex-platform/framework-client/common';
|
|
12
|
-
import { AXPLogoComponent } from '@acorex-platform/framework-client/core';
|
|
13
|
-
import { AXPUserAvatarComponent } from '@acorex-platform/framework-client/layout/components';
|
|
14
|
-
import { AXPCommandService } from '@acorex-platform/framework-client/runtime';
|
|
15
|
-
import { AXM_MEMBERSHIP_INVITE_WAITING_ROOM_SOURCE, AXMSecurityManagementServerCommands } from '@acorex-platform/module-security-management-client/contracts';
|
|
16
|
-
import * as i3$1 from '@angular/common';
|
|
17
|
-
import { CommonModule } from '@angular/common';
|
|
18
|
-
import * as i0 from '@angular/core';
|
|
19
|
-
import { inject, signal, computed, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
20
|
-
import { Router, ActivatedRoute, RouterModule } from '@angular/router';
|
|
21
|
-
|
|
22
|
-
//#region ----- Waiting room -----
|
|
23
|
-
class AXPAuthWaitingRoomComponent {
|
|
24
|
-
constructor() {
|
|
25
|
-
this.sessionService = inject(AXPSessionService);
|
|
26
|
-
this.commandService = inject(AXPCommandService);
|
|
27
|
-
this.translationService = inject(AXTranslationService);
|
|
28
|
-
this.toastService = inject(AXToastService);
|
|
29
|
-
this.platformBranding = inject(AXPPlatformBrandingService);
|
|
30
|
-
this.router = inject(Router);
|
|
31
|
-
this.route = inject(ActivatedRoute);
|
|
32
|
-
this.platformTitle = signal('', /* @ts-ignore */
|
|
33
|
-
...(ngDevMode ? [{ debugName: "platformTitle" }] : /* istanbul ignore next */ []));
|
|
34
|
-
this.loading = signal(true, /* @ts-ignore */
|
|
35
|
-
...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
36
|
-
this.busyId = signal(null, /* @ts-ignore */
|
|
37
|
-
...(ngDevMode ? [{ debugName: "busyId" }] : /* istanbul ignore next */ []));
|
|
38
|
-
this.invitations = signal([], /* @ts-ignore */
|
|
39
|
-
...(ngDevMode ? [{ debugName: "invitations" }] : /* istanbul ignore next */ []));
|
|
40
|
-
/** True when opened from membership-invite notification or user already has other tenants. */
|
|
41
|
-
this.membershipContext = signal(false, /* @ts-ignore */
|
|
42
|
-
...(ngDevMode ? [{ debugName: "membershipContext" }] : /* istanbul ignore next */ []));
|
|
43
|
-
this.titleKey = computed(() => this.membershipContext()
|
|
44
|
-
? '@auth:waiting-room.membership-invite.title'
|
|
45
|
-
: '@auth:waiting-room.title', /* @ts-ignore */
|
|
46
|
-
...(ngDevMode ? [{ debugName: "titleKey" }] : /* istanbul ignore next */ []));
|
|
47
|
-
this.descriptionKey = computed(() => this.membershipContext()
|
|
48
|
-
? '@auth:waiting-room.membership-invite.description'
|
|
49
|
-
: '@auth:waiting-room.description', /* @ts-ignore */
|
|
50
|
-
...(ngDevMode ? [{ debugName: "descriptionKey" }] : /* istanbul ignore next */ []));
|
|
51
|
-
}
|
|
52
|
-
get user() {
|
|
53
|
-
return this.sessionService.user;
|
|
54
|
-
}
|
|
55
|
-
async ngOnInit() {
|
|
56
|
-
const title = await this.platformBranding.resolvePlatformTitle().catch(() => '');
|
|
57
|
-
this.platformTitle.set(title || 'ACoreX');
|
|
58
|
-
const source = String(this.route.snapshot.queryParamMap.get('source') ?? '').trim();
|
|
59
|
-
const fromInvite = source === AXM_MEMBERSHIP_INVITE_WAITING_ROOM_SOURCE;
|
|
60
|
-
const tenants = await this.sessionService.getTenantsList().catch(() => []);
|
|
61
|
-
this.membershipContext.set(fromInvite || (Array.isArray(tenants) && tenants.length > 0));
|
|
62
|
-
await this.reload();
|
|
63
|
-
}
|
|
64
|
-
async reload() {
|
|
65
|
-
this.loading.set(true);
|
|
66
|
-
try {
|
|
67
|
-
const result = await this.commandService.execute(AXMSecurityManagementServerCommands.ListMyPendingInvitations, {});
|
|
68
|
-
const items = result?.data?.items ?? [];
|
|
69
|
-
this.invitations.set(Array.isArray(items) ? items : []);
|
|
70
|
-
}
|
|
71
|
-
finally {
|
|
72
|
-
this.loading.set(false);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
async accept(item) {
|
|
76
|
-
this.busyId.set(item.tenantUserId);
|
|
77
|
-
try {
|
|
78
|
-
let newPassword;
|
|
79
|
-
// First attempt without password; if server requires one, prompt once.
|
|
80
|
-
let result = await this.commandService.execute(AXMSecurityManagementServerCommands.AcceptMyInvitation, { tenantUserId: item.tenantUserId });
|
|
81
|
-
const needsPassword = !result?.success &&
|
|
82
|
-
typeof result?.message?.text === 'string' &&
|
|
83
|
-
result.message.text.toLowerCase().includes('password');
|
|
84
|
-
if (needsPassword) {
|
|
85
|
-
const promptTitle = await this.translationService
|
|
86
|
-
.translateAsync('@auth:waiting-room.set-password-title')
|
|
87
|
-
.catch(() => 'Set Password');
|
|
88
|
-
const promptMessage = await this.translationService
|
|
89
|
-
.translateAsync('@auth:waiting-room.set-password-message')
|
|
90
|
-
.catch(() => 'Choose a password to activate your account (min 6 characters).');
|
|
91
|
-
newPassword = window.prompt(`${promptTitle}\n${promptMessage}`) ?? undefined;
|
|
92
|
-
if (!newPassword || newPassword.length < 6) {
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
result = await this.commandService.execute(AXMSecurityManagementServerCommands.AcceptMyInvitation, { tenantUserId: item.tenantUserId, newPassword });
|
|
96
|
-
}
|
|
97
|
-
if (!result?.success) {
|
|
98
|
-
const fallback = await this.translationService
|
|
99
|
-
.translateAsync('@auth:waiting-room.accept-failed')
|
|
100
|
-
.catch(() => 'Could not accept the invitation.');
|
|
101
|
-
const text = (typeof result?.message?.text === 'string' && result.message.text) || fallback;
|
|
102
|
-
this.toastService.show({ color: 'danger', title: text, content: text, timeOut: 4000 });
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
const ok = await this.translationService
|
|
106
|
-
.translateAsync('@auth:waiting-room.accept-success')
|
|
107
|
-
.catch(() => 'Invitation accepted. Choose a tenant to continue.');
|
|
108
|
-
this.toastService.show({ color: 'success', title: ok, content: ok, timeOut: 3000 });
|
|
109
|
-
// Hard reload clears the in-memory tenants catalog cache so the chooser
|
|
110
|
-
// sees the newly activated membership (no public invalidate API yet).
|
|
111
|
-
if (typeof window !== 'undefined') {
|
|
112
|
-
window.location.assign('/auth/account/tenant-chooser');
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
await this.router.navigate(['/auth/account/tenant-chooser']);
|
|
116
|
-
}
|
|
117
|
-
finally {
|
|
118
|
-
this.busyId.set(null);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
async decline(item) {
|
|
122
|
-
this.busyId.set(item.tenantUserId);
|
|
123
|
-
try {
|
|
124
|
-
const result = await this.commandService.execute(AXMSecurityManagementServerCommands.DeclineInvitation, { tenantUserId: item.tenantUserId });
|
|
125
|
-
if (!result?.success) {
|
|
126
|
-
const fallback = await this.translationService
|
|
127
|
-
.translateAsync('@auth:waiting-room.decline-failed')
|
|
128
|
-
.catch(() => 'Could not decline the invitation.');
|
|
129
|
-
const text = (typeof result?.message?.text === 'string' && result.message.text) || fallback;
|
|
130
|
-
this.toastService.show({ color: 'danger', title: text, content: text, timeOut: 4000 });
|
|
131
|
-
return;
|
|
132
|
-
}
|
|
133
|
-
await this.reload();
|
|
134
|
-
}
|
|
135
|
-
finally {
|
|
136
|
-
this.busyId.set(null);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
async signOut() {
|
|
140
|
-
await this.sessionService.signout().catch(() => undefined);
|
|
141
|
-
await this.router.navigate(['/auth/login']);
|
|
142
|
-
}
|
|
143
|
-
async goBack() {
|
|
144
|
-
await this.router.navigate(['/auth/account/tenant-chooser']);
|
|
145
|
-
}
|
|
146
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPAuthWaitingRoomComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
147
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPAuthWaitingRoomComponent, isStandalone: true, selector: "axp-auth-waiting-room", ngImport: i0, template: "<main class=\"axp-auth-chooser\">\n <div class=\"axp-auth-chooser__inner\">\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\n <section class=\"axp-auth-chooser__card-wrap\">\n <div class=\"axp-auth-chooser__card\">\n <!-- ----- Loading skeleton while invitations are fetched ----- -->\n @if (loading()) {\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 }\n <!-- ----- Signed-in identity for the waiting room ----- -->\n @else {\n <axp-user-avatar\n [size]=\"72\"\n [userId]=\"user?.id!\"\n [showPresence]=\"false\"\n ></axp-user-avatar>\n <h2 class=\"md:text-lg font-medium\">\n {{ titleKey() | translate | async }}\n </h2>\n <p class=\"text-neutral-500 text-sm md:text-base font-medium\">\n {{ descriptionKey() | translate | async }}\n </p>\n <p class=\"text-sm text-neutral-600 m-0\">\n {{ user?.title || user?.name }}\n </p>\n }\n\n <div class=\"mt-4 w-full flex flex-col gap-3 text-start\">\n <h3 class=\"text-sm font-semibold m-0\">\n {{ '@auth:waiting-room.invitations-heading' | translate | async }}\n </h3>\n\n <!-- ----- Invitation list loading placeholders ----- -->\n @if (loading()) {\n @for (n of [1, 2]; track n) {\n <ax-skeleton [animated]=\"true\" class=\"h-16 w-full rounded-md\"></ax-skeleton>\n }\n }\n <!-- ----- Empty state when there are no pending invitations ----- -->\n @else if (invitations().length === 0) {\n <p class=\"text-sm text-neutral-500 m-0\">\n {{ '@auth:waiting-room.empty' | translate | async }}\n </p>\n }\n <!-- ----- Pending invitation cards with accept / decline ----- -->\n @else {\n @for (item of invitations(); track item.tenantUserId) {\n <div\n class=\"flex flex-col gap-2 p-3 rounded-md border border-neutral-100 dark:border-neutral-800\"\n [class.opacity-50]=\"busyId() === item.tenantUserId\"\n >\n <div class=\"font-medium\">\n {{ item.tenantTitle || item.tenantId }}\n </div>\n <!--->\n <!-- ----- Show invitation expiry when present ----- -->\n @if (item.expiresAt) {\n <div class=\"text-xs text-neutral-500\">\n {{ '@auth:waiting-room.expires-at' | translate | async }}: {{ item.expiresAt }}\n </div>\n }\n <div class=\"flex gap-2 flex-wrap\">\n <ax-button\n look=\"solid\"\n color=\"primary\"\n [text]=\"'@auth:waiting-room.actions.accept' | translate | async\"\n [disabled]=\"!!busyId()\"\n (onClick)=\"accept(item)\"\n ></ax-button>\n <ax-button\n look=\"outline\"\n color=\"default\"\n [text]=\"'@auth:waiting-room.actions.decline' | translate | async\"\n [disabled]=\"!!busyId()\"\n (onClick)=\"decline(item)\"\n ></ax-button>\n </div>\n </div>\n }\n }\n </div>\n\n <div class=\"mt-4 flex gap-2 flex-wrap justify-center\">\n @if (membershipContext()) {\n <ax-button\n look=\"solid\"\n color=\"primary\"\n [text]=\"'@auth:waiting-room.actions.back' | translate | async\"\n (onClick)=\"goBack()\"\n ></ax-button>\n }\n <ax-button\n look=\"outline\"\n color=\"default\"\n [text]=\"'@auth:waiting-room.actions.sign-out' | translate | async\"\n (onClick)=\"signOut()\"\n ></ax-button>\n <ax-button\n look=\"outline\"\n color=\"default\"\n [text]=\"'@auth:waiting-room.actions.refresh' | translate | async\"\n (onClick)=\"reload()\"\n ></ax-button>\n </div>\n </div>\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", ""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: RouterModule }, { 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: "ngmodule", type: AXSkeletonModule }, { kind: "component", type: i3.AXSkeletonComponent, selector: "ax-skeleton", inputs: ["animated"] }, { kind: "ngmodule", type: AXTranslationModule }, { 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: i3$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
148
|
-
}
|
|
149
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPAuthWaitingRoomComponent, decorators: [{
|
|
150
|
-
type: Component,
|
|
151
|
-
args: [{ selector: 'axp-auth-waiting-room', imports: [
|
|
152
|
-
CommonModule,
|
|
153
|
-
RouterModule,
|
|
154
|
-
AXButtonModule,
|
|
155
|
-
AXDecoratorModule,
|
|
156
|
-
AXLoadingModule,
|
|
157
|
-
AXSkeletonModule,
|
|
158
|
-
AXTranslationModule,
|
|
159
|
-
AXPLogoComponent,
|
|
160
|
-
AXPUserAvatarComponent,
|
|
161
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<main class=\"axp-auth-chooser\">\n <div class=\"axp-auth-chooser__inner\">\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\n <section class=\"axp-auth-chooser__card-wrap\">\n <div class=\"axp-auth-chooser__card\">\n <!-- ----- Loading skeleton while invitations are fetched ----- -->\n @if (loading()) {\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 }\n <!-- ----- Signed-in identity for the waiting room ----- -->\n @else {\n <axp-user-avatar\n [size]=\"72\"\n [userId]=\"user?.id!\"\n [showPresence]=\"false\"\n ></axp-user-avatar>\n <h2 class=\"md:text-lg font-medium\">\n {{ titleKey() | translate | async }}\n </h2>\n <p class=\"text-neutral-500 text-sm md:text-base font-medium\">\n {{ descriptionKey() | translate | async }}\n </p>\n <p class=\"text-sm text-neutral-600 m-0\">\n {{ user?.title || user?.name }}\n </p>\n }\n\n <div class=\"mt-4 w-full flex flex-col gap-3 text-start\">\n <h3 class=\"text-sm font-semibold m-0\">\n {{ '@auth:waiting-room.invitations-heading' | translate | async }}\n </h3>\n\n <!-- ----- Invitation list loading placeholders ----- -->\n @if (loading()) {\n @for (n of [1, 2]; track n) {\n <ax-skeleton [animated]=\"true\" class=\"h-16 w-full rounded-md\"></ax-skeleton>\n }\n }\n <!-- ----- Empty state when there are no pending invitations ----- -->\n @else if (invitations().length === 0) {\n <p class=\"text-sm text-neutral-500 m-0\">\n {{ '@auth:waiting-room.empty' | translate | async }}\n </p>\n }\n <!-- ----- Pending invitation cards with accept / decline ----- -->\n @else {\n @for (item of invitations(); track item.tenantUserId) {\n <div\n class=\"flex flex-col gap-2 p-3 rounded-md border border-neutral-100 dark:border-neutral-800\"\n [class.opacity-50]=\"busyId() === item.tenantUserId\"\n >\n <div class=\"font-medium\">\n {{ item.tenantTitle || item.tenantId }}\n </div>\n <!--->\n <!-- ----- Show invitation expiry when present ----- -->\n @if (item.expiresAt) {\n <div class=\"text-xs text-neutral-500\">\n {{ '@auth:waiting-room.expires-at' | translate | async }}: {{ item.expiresAt }}\n </div>\n }\n <div class=\"flex gap-2 flex-wrap\">\n <ax-button\n look=\"solid\"\n color=\"primary\"\n [text]=\"'@auth:waiting-room.actions.accept' | translate | async\"\n [disabled]=\"!!busyId()\"\n (onClick)=\"accept(item)\"\n ></ax-button>\n <ax-button\n look=\"outline\"\n color=\"default\"\n [text]=\"'@auth:waiting-room.actions.decline' | translate | async\"\n [disabled]=\"!!busyId()\"\n (onClick)=\"decline(item)\"\n ></ax-button>\n </div>\n </div>\n }\n }\n </div>\n\n <div class=\"mt-4 flex gap-2 flex-wrap justify-center\">\n @if (membershipContext()) {\n <ax-button\n look=\"solid\"\n color=\"primary\"\n [text]=\"'@auth:waiting-room.actions.back' | translate | async\"\n (onClick)=\"goBack()\"\n ></ax-button>\n }\n <ax-button\n look=\"outline\"\n color=\"default\"\n [text]=\"'@auth:waiting-room.actions.sign-out' | translate | async\"\n (onClick)=\"signOut()\"\n ></ax-button>\n <ax-button\n look=\"outline\"\n color=\"default\"\n [text]=\"'@auth:waiting-room.actions.refresh' | translate | async\"\n (onClick)=\"reload()\"\n ></ax-button>\n </div>\n </div>\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"] }]
|
|
162
|
-
}] });
|
|
163
|
-
|
|
164
|
-
export { AXPAuthWaitingRoomComponent };
|
|
165
|
-
//# sourceMappingURL=acorex-platform-module-auth-client-waiting-room.component-IAVIt1fY.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-auth-client-waiting-room.component-IAVIt1fY.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/account/waiting-room/waiting-room.component.ts","../../../../libs/modules/auth/client/src/lib/pages/account/waiting-room/waiting-room.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 { AXTranslationModule, AXTranslationService } from '@acorex/core/translation';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPPlatformBrandingService } from '@acorex-platform/framework-client/common';\nimport { AXPLogoComponent } from '@acorex-platform/framework-client/core';\nimport { AXPUserAvatarComponent } from '@acorex-platform/framework-client/layout/components';\nimport { AXPCommandService } from '@acorex-platform/framework-client/runtime';\nimport {\n AXM_MEMBERSHIP_INVITE_WAITING_ROOM_SOURCE,\n AXMSecurityManagementServerCommands,\n type AXMPendingInvitationItem,\n} from '@acorex-platform/module-security-management-client/contracts';\nimport { CommonModule } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n OnInit,\n ViewEncapsulation,\n computed,\n inject,\n signal,\n} from '@angular/core';\nimport { ActivatedRoute, Router, RouterModule } from '@angular/router';\n\n//#region ----- Waiting room -----\n\n@Component({\n selector: 'axp-auth-waiting-room',\n templateUrl: './waiting-room.component.html',\n styleUrls: ['../shared/auth-chooser.layout.css', './waiting-room.component.css'],\n imports: [\n CommonModule,\n RouterModule,\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 AXPAuthWaitingRoomComponent implements OnInit {\n private readonly sessionService = inject(AXPSessionService);\n private readonly commandService = inject(AXPCommandService);\n private readonly translationService = inject(AXTranslationService);\n private readonly toastService = inject(AXToastService);\n private readonly platformBranding = inject(AXPPlatformBrandingService);\n private readonly router = inject(Router);\n private readonly route = inject(ActivatedRoute);\n\n protected readonly platformTitle = signal('');\n protected readonly loading = signal(true);\n protected readonly busyId = signal<string | null>(null);\n protected readonly invitations = signal<AXMPendingInvitationItem[]>([]);\n /** True when opened from membership-invite notification or user already has other tenants. */\n protected readonly membershipContext = signal(false);\n\n protected readonly titleKey = computed(() =>\n this.membershipContext()\n ? '@auth:waiting-room.membership-invite.title'\n : '@auth:waiting-room.title',\n );\n\n protected readonly descriptionKey = computed(() =>\n this.membershipContext()\n ? '@auth:waiting-room.membership-invite.description'\n : '@auth:waiting-room.description',\n );\n\n protected get user() {\n return this.sessionService.user;\n }\n\n async ngOnInit(): Promise<void> {\n const title = await this.platformBranding.resolvePlatformTitle().catch(() => '');\n this.platformTitle.set(title || 'ACoreX');\n\n const source = String(this.route.snapshot.queryParamMap.get('source') ?? '').trim();\n const fromInvite = source === AXM_MEMBERSHIP_INVITE_WAITING_ROOM_SOURCE;\n const tenants = await this.sessionService.getTenantsList().catch(() => []);\n this.membershipContext.set(fromInvite || (Array.isArray(tenants) && tenants.length > 0));\n\n await this.reload();\n }\n\n protected async reload(): Promise<void> {\n this.loading.set(true);\n try {\n const result = await this.commandService.execute(\n AXMSecurityManagementServerCommands.ListMyPendingInvitations,\n {},\n );\n const items =\n ((result as { data?: { items?: AXMPendingInvitationItem[] } })?.data?.items as\n | AXMPendingInvitationItem[]\n | undefined) ?? [];\n this.invitations.set(Array.isArray(items) ? items : []);\n } finally {\n this.loading.set(false);\n }\n }\n\n protected async accept(item: AXMPendingInvitationItem): Promise<void> {\n this.busyId.set(item.tenantUserId);\n try {\n let newPassword: string | undefined;\n // First attempt without password; if server requires one, prompt once.\n let result = await this.commandService.execute(\n AXMSecurityManagementServerCommands.AcceptMyInvitation,\n { tenantUserId: item.tenantUserId },\n );\n const needsPassword =\n !result?.success &&\n typeof result?.message?.text === 'string' &&\n result.message.text.toLowerCase().includes('password');\n if (needsPassword) {\n const promptTitle = await this.translationService\n .translateAsync('@auth:waiting-room.set-password-title')\n .catch(() => 'Set Password');\n const promptMessage = await this.translationService\n .translateAsync('@auth:waiting-room.set-password-message')\n .catch(() => 'Choose a password to activate your account (min 6 characters).');\n newPassword = window.prompt(`${promptTitle}\\n${promptMessage}`) ?? undefined;\n if (!newPassword || newPassword.length < 6) {\n return;\n }\n result = await this.commandService.execute(\n AXMSecurityManagementServerCommands.AcceptMyInvitation,\n { tenantUserId: item.tenantUserId, newPassword },\n );\n }\n if (!result?.success) {\n const fallback = await this.translationService\n .translateAsync('@auth:waiting-room.accept-failed')\n .catch(() => 'Could not accept the invitation.');\n const text =\n (typeof result?.message?.text === 'string' && result.message.text) || fallback;\n this.toastService.show({ color: 'danger', title: text, content: text, timeOut: 4000 });\n return;\n }\n const ok = await this.translationService\n .translateAsync('@auth:waiting-room.accept-success')\n .catch(() => 'Invitation accepted. Choose a tenant to continue.');\n this.toastService.show({ color: 'success', title: ok, content: ok, timeOut: 3000 });\n // Hard reload clears the in-memory tenants catalog cache so the chooser\n // sees the newly activated membership (no public invalidate API yet).\n if (typeof window !== 'undefined') {\n window.location.assign('/auth/account/tenant-chooser');\n return;\n }\n await this.router.navigate(['/auth/account/tenant-chooser']);\n } finally {\n this.busyId.set(null);\n }\n }\n\n protected async decline(item: AXMPendingInvitationItem): Promise<void> {\n this.busyId.set(item.tenantUserId);\n try {\n const result = await this.commandService.execute(\n AXMSecurityManagementServerCommands.DeclineInvitation,\n { tenantUserId: item.tenantUserId },\n );\n if (!result?.success) {\n const fallback = await this.translationService\n .translateAsync('@auth:waiting-room.decline-failed')\n .catch(() => 'Could not decline the invitation.');\n const text =\n (typeof result?.message?.text === 'string' && result.message.text) || fallback;\n this.toastService.show({ color: 'danger', title: text, content: text, timeOut: 4000 });\n return;\n }\n await this.reload();\n } finally {\n this.busyId.set(null);\n }\n }\n\n protected async signOut(): Promise<void> {\n await this.sessionService.signout().catch(() => undefined);\n await this.router.navigate(['/auth/login']);\n }\n\n protected async goBack(): Promise<void> {\n await this.router.navigate(['/auth/account/tenant-chooser']);\n }\n}\n\n//#endregion\n","<main class=\"axp-auth-chooser\">\n <div class=\"axp-auth-chooser__inner\">\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\n <section class=\"axp-auth-chooser__card-wrap\">\n <div class=\"axp-auth-chooser__card\">\n <!-- ----- Loading skeleton while invitations are fetched ----- -->\n @if (loading()) {\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 }\n <!-- ----- Signed-in identity for the waiting room ----- -->\n @else {\n <axp-user-avatar\n [size]=\"72\"\n [userId]=\"user?.id!\"\n [showPresence]=\"false\"\n ></axp-user-avatar>\n <h2 class=\"md:text-lg font-medium\">\n {{ titleKey() | translate | async }}\n </h2>\n <p class=\"text-neutral-500 text-sm md:text-base font-medium\">\n {{ descriptionKey() | translate | async }}\n </p>\n <p class=\"text-sm text-neutral-600 m-0\">\n {{ user?.title || user?.name }}\n </p>\n }\n\n <div class=\"mt-4 w-full flex flex-col gap-3 text-start\">\n <h3 class=\"text-sm font-semibold m-0\">\n {{ '@auth:waiting-room.invitations-heading' | translate | async }}\n </h3>\n\n <!-- ----- Invitation list loading placeholders ----- -->\n @if (loading()) {\n @for (n of [1, 2]; track n) {\n <ax-skeleton [animated]=\"true\" class=\"h-16 w-full rounded-md\"></ax-skeleton>\n }\n }\n <!-- ----- Empty state when there are no pending invitations ----- -->\n @else if (invitations().length === 0) {\n <p class=\"text-sm text-neutral-500 m-0\">\n {{ '@auth:waiting-room.empty' | translate | async }}\n </p>\n }\n <!-- ----- Pending invitation cards with accept / decline ----- -->\n @else {\n @for (item of invitations(); track item.tenantUserId) {\n <div\n class=\"flex flex-col gap-2 p-3 rounded-md border border-neutral-100 dark:border-neutral-800\"\n [class.opacity-50]=\"busyId() === item.tenantUserId\"\n >\n <div class=\"font-medium\">\n {{ item.tenantTitle || item.tenantId }}\n </div>\n <!--->\n <!-- ----- Show invitation expiry when present ----- -->\n @if (item.expiresAt) {\n <div class=\"text-xs text-neutral-500\">\n {{ '@auth:waiting-room.expires-at' | translate | async }}: {{ item.expiresAt }}\n </div>\n }\n <div class=\"flex gap-2 flex-wrap\">\n <ax-button\n look=\"solid\"\n color=\"primary\"\n [text]=\"'@auth:waiting-room.actions.accept' | translate | async\"\n [disabled]=\"!!busyId()\"\n (onClick)=\"accept(item)\"\n ></ax-button>\n <ax-button\n look=\"outline\"\n color=\"default\"\n [text]=\"'@auth:waiting-room.actions.decline' | translate | async\"\n [disabled]=\"!!busyId()\"\n (onClick)=\"decline(item)\"\n ></ax-button>\n </div>\n </div>\n }\n }\n </div>\n\n <div class=\"mt-4 flex gap-2 flex-wrap justify-center\">\n @if (membershipContext()) {\n <ax-button\n look=\"solid\"\n color=\"primary\"\n [text]=\"'@auth:waiting-room.actions.back' | translate | async\"\n (onClick)=\"goBack()\"\n ></ax-button>\n }\n <ax-button\n look=\"outline\"\n color=\"default\"\n [text]=\"'@auth:waiting-room.actions.sign-out' | translate | async\"\n (onClick)=\"signOut()\"\n ></ax-button>\n <ax-button\n look=\"outline\"\n color=\"default\"\n [text]=\"'@auth:waiting-room.actions.refresh' | translate | async\"\n (onClick)=\"reload()\"\n ></ax-button>\n </div>\n </div>\n </section>\n </div>\n</main>\n"],"names":["i2","i3","i4"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA4BA;MAoBa,2BAA2B,CAAA;AAlBxC,IAAA,WAAA,GAAA;AAmBmB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,kBAAkB,GAAG,MAAM,CAAC,oBAAoB,CAAC;AACjD,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC;AACrC,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,0BAA0B,CAAC;AACrD,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACvB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC;QAE5B,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,EAAE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