@acorex-platform/module-auth-client 0.0.32 → 0.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/fesm2022/{acorex-platform-module-auth-client-acorex-platform-module-auth-client-CPmffSrQ.mjs → acorex-platform-module-auth-client-acorex-platform-module-auth-client-CRl74b8g.mjs} +287 -102
  2. package/fesm2022/acorex-platform-module-auth-client-acorex-platform-module-auth-client-CRl74b8g.mjs.map +1 -0
  3. package/fesm2022/{acorex-platform-module-auth-client-app-chooser.component-BfOgjNxw.mjs → acorex-platform-module-auth-client-app-chooser.component-CjWofUGR.mjs} +5 -5
  4. package/fesm2022/{acorex-platform-module-auth-client-app-chooser.component-BfOgjNxw.mjs.map → acorex-platform-module-auth-client-app-chooser.component-CjWofUGR.mjs.map} +1 -1
  5. package/fesm2022/acorex-platform-module-auth-client-blank.layout-BCXNPgrp.mjs.map +1 -1
  6. package/fesm2022/{acorex-platform-module-auth-client-change-password.command-BcBbN5hX.mjs → acorex-platform-module-auth-client-change-password.command-BqU3jYV9.mjs} +2 -2
  7. package/fesm2022/{acorex-platform-module-auth-client-change-password.command-BcBbN5hX.mjs.map → acorex-platform-module-auth-client-change-password.command-BqU3jYV9.mjs.map} +1 -1
  8. package/fesm2022/{acorex-platform-module-auth-client-change-photo.command-DfHUPj7p.mjs → acorex-platform-module-auth-client-change-photo.command-CzO3A7OG.mjs} +2 -2
  9. package/fesm2022/{acorex-platform-module-auth-client-change-photo.command-DfHUPj7p.mjs.map → acorex-platform-module-auth-client-change-photo.command-CzO3A7OG.mjs.map} +1 -1
  10. package/fesm2022/acorex-platform-module-auth-client-contracts.mjs +63 -1
  11. package/fesm2022/acorex-platform-module-auth-client-contracts.mjs.map +1 -1
  12. package/fesm2022/acorex-platform-module-auth-client-edit-account-info.command-CD9IrimO.mjs.map +1 -1
  13. package/fesm2022/acorex-platform-module-auth-client-edit-signature.command-TjOLhvKL.mjs.map +1 -1
  14. package/fesm2022/{acorex-platform-module-auth-client-get-user-activity.query-D9fyLuBy.mjs → acorex-platform-module-auth-client-get-user-activity.query-B1bKcSVQ.mjs} +2 -2
  15. package/fesm2022/{acorex-platform-module-auth-client-get-user-activity.query-D9fyLuBy.mjs.map → acorex-platform-module-auth-client-get-user-activity.query-B1bKcSVQ.mjs.map} +1 -1
  16. package/fesm2022/{acorex-platform-module-auth-client-lock-screen.command-DUZ255VK.mjs → acorex-platform-module-auth-client-lock-screen.command-DKtlBzS7.mjs} +2 -2
  17. package/fesm2022/{acorex-platform-module-auth-client-lock-screen.command-DUZ255VK.mjs.map → acorex-platform-module-auth-client-lock-screen.command-DKtlBzS7.mjs.map} +1 -1
  18. package/fesm2022/{acorex-platform-module-auth-client-login.module-uRv9Gwea.mjs → acorex-platform-module-auth-client-login.module-CXl61yOu.mjs} +3 -3
  19. package/fesm2022/{acorex-platform-module-auth-client-login.module-uRv9Gwea.mjs.map → acorex-platform-module-auth-client-login.module-CXl61yOu.mjs.map} +1 -1
  20. package/fesm2022/{acorex-platform-module-auth-client-master.layout-Cu8mQN9B.mjs → acorex-platform-module-auth-client-master.layout-D7zUm7aL.mjs} +4 -4
  21. package/fesm2022/{acorex-platform-module-auth-client-master.layout-Cu8mQN9B.mjs.map → acorex-platform-module-auth-client-master.layout-D7zUm7aL.mjs.map} +1 -1
  22. package/fesm2022/acorex-platform-module-auth-client-menu.provider-Bz-kRip4.mjs.map +1 -1
  23. package/fesm2022/{acorex-platform-module-auth-client-oauth-callback.component-DnQzPUxF.mjs → acorex-platform-module-auth-client-oauth-callback.component-fdWC08nA.mjs} +3 -3
  24. package/fesm2022/{acorex-platform-module-auth-client-oauth-callback.component-DnQzPUxF.mjs.map → acorex-platform-module-auth-client-oauth-callback.component-fdWC08nA.mjs.map} +1 -1
  25. package/fesm2022/acorex-platform-module-auth-client-open-sessions.command-DKvyMkhl.mjs +265 -0
  26. package/fesm2022/acorex-platform-module-auth-client-open-sessions.command-DKvyMkhl.mjs.map +1 -0
  27. package/fesm2022/{acorex-platform-module-auth-client-password.component-CW0t9fEn.mjs → acorex-platform-module-auth-client-password.component-BE2JkYm_.mjs} +3 -3
  28. package/fesm2022/{acorex-platform-module-auth-client-password.component-CW0t9fEn.mjs.map → acorex-platform-module-auth-client-password.component-BE2JkYm_.mjs.map} +1 -1
  29. package/fesm2022/{acorex-platform-module-auth-client-password.component-5-0kaY5J.mjs → acorex-platform-module-auth-client-password.component-BoWDVby5.mjs} +10 -5
  30. package/fesm2022/acorex-platform-module-auth-client-password.component-BoWDVby5.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-module-auth-client-pin-code.constants-CRsFG7fg.mjs.map +1 -1
  32. package/fesm2022/{acorex-platform-module-auth-client-platform-settings-unavailable.component-BEVkQ3jh.mjs → acorex-platform-module-auth-client-platform-settings-unavailable.component-BJMtsa99.mjs} +4 -4
  33. package/fesm2022/{acorex-platform-module-auth-client-platform-settings-unavailable.component-BEVkQ3jh.mjs.map → acorex-platform-module-auth-client-platform-settings-unavailable.component-BJMtsa99.mjs.map} +1 -1
  34. package/fesm2022/{acorex-platform-module-auth-client-profile-activity-chart.component-kBmoYwRh.mjs → acorex-platform-module-auth-client-profile-activity-chart.component-CFaRGMKu.mjs} +5 -5
  35. package/fesm2022/{acorex-platform-module-auth-client-profile-activity-chart.component-kBmoYwRh.mjs.map → acorex-platform-module-auth-client-profile-activity-chart.component-CFaRGMKu.mjs.map} +1 -1
  36. package/fesm2022/acorex-platform-module-auth-client-profile-coming-soon.command-Crh2GsRA.mjs.map +1 -1
  37. package/fesm2022/{acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-D0QS8joQ.mjs → acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-Dx2-o9XL.mjs} +3 -3
  38. package/fesm2022/{acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-D0QS8joQ.mjs.map → acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-Dx2-o9XL.mjs.map} +1 -1
  39. package/fesm2022/{acorex-platform-module-auth-client-profile-page-component.provider-Bz1mdVCM.mjs → acorex-platform-module-auth-client-profile-page-component.provider-1Spuexhb.mjs} +4 -4
  40. package/fesm2022/{acorex-platform-module-auth-client-profile-page-component.provider-Bz1mdVCM.mjs.map → acorex-platform-module-auth-client-profile-page-component.provider-1Spuexhb.mjs.map} +1 -1
  41. package/fesm2022/{acorex-platform-module-auth-client-profile-page.component-w2SYmCyc.mjs → acorex-platform-module-auth-client-profile-page.component-CGs24n0j.mjs} +7 -7
  42. package/fesm2022/{acorex-platform-module-auth-client-profile-page.component-w2SYmCyc.mjs.map → acorex-platform-module-auth-client-profile-page.component-CGs24n0j.mjs.map} +1 -1
  43. package/fesm2022/{acorex-platform-module-auth-client-register-password.component-BtDgEnmo.mjs → acorex-platform-module-auth-client-register-password.component-BlOn9609.mjs} +4 -4
  44. package/fesm2022/{acorex-platform-module-auth-client-register-password.component-BtDgEnmo.mjs.map → acorex-platform-module-auth-client-register-password.component-BlOn9609.mjs.map} +1 -1
  45. package/fesm2022/{acorex-platform-module-auth-client-register.module-DCWoPb0u.mjs → acorex-platform-module-auth-client-register.module-CpoYf5uG.mjs} +4 -4
  46. package/fesm2022/{acorex-platform-module-auth-client-register.module-DCWoPb0u.mjs.map → acorex-platform-module-auth-client-register.module-CpoYf5uG.mjs.map} +1 -1
  47. package/fesm2022/{acorex-platform-module-auth-client-remove-pin-code.command-DJeSHCLL.mjs → acorex-platform-module-auth-client-remove-pin-code.command-Da7ryul6.mjs} +2 -2
  48. package/fesm2022/{acorex-platform-module-auth-client-remove-pin-code.command-DJeSHCLL.mjs.map → acorex-platform-module-auth-client-remove-pin-code.command-Da7ryul6.mjs.map} +1 -1
  49. package/fesm2022/{acorex-platform-module-auth-client-reset-password.component-CcwDb6Wb.mjs → acorex-platform-module-auth-client-reset-password.component-D0nxlhJm.mjs} +3 -3
  50. package/fesm2022/{acorex-platform-module-auth-client-reset-password.component-CcwDb6Wb.mjs.map → acorex-platform-module-auth-client-reset-password.component-D0nxlhJm.mjs.map} +1 -1
  51. package/fesm2022/{acorex-platform-module-auth-client-result.component-DWv1hmQR.mjs → acorex-platform-module-auth-client-result.component-Bo1QkwMu.mjs} +2 -2
  52. package/fesm2022/{acorex-platform-module-auth-client-result.component-DWv1hmQR.mjs.map → acorex-platform-module-auth-client-result.component-Bo1QkwMu.mjs.map} +1 -1
  53. package/fesm2022/{acorex-platform-module-auth-client-routes-IX2qmeqU.mjs → acorex-platform-module-auth-client-routes-B6iJHJ60.mjs} +3 -3
  54. package/fesm2022/{acorex-platform-module-auth-client-routes-IX2qmeqU.mjs.map → acorex-platform-module-auth-client-routes-B6iJHJ60.mjs.map} +1 -1
  55. package/fesm2022/acorex-platform-module-auth-client-session-limit.component-DH58dRba.mjs +195 -0
  56. package/fesm2022/acorex-platform-module-auth-client-session-limit.component-DH58dRba.mjs.map +1 -0
  57. package/fesm2022/{acorex-platform-module-auth-client-session-lock-overlay.component-3HJEmCYI.mjs → acorex-platform-module-auth-client-session-lock-overlay.component-cDCrwNRV.mjs} +5 -5
  58. package/fesm2022/{acorex-platform-module-auth-client-session-lock-overlay.component-3HJEmCYI.mjs.map → acorex-platform-module-auth-client-session-lock-overlay.component-cDCrwNRV.mjs.map} +1 -1
  59. package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.command-C2kCGuQW.mjs → acorex-platform-module-auth-client-set-pin-code.command-FjM1kzUj.mjs} +3 -3
  60. package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.command-C2kCGuQW.mjs.map → acorex-platform-module-auth-client-set-pin-code.command-FjM1kzUj.mjs.map} +1 -1
  61. package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.component-Dpdgw4KT.mjs → acorex-platform-module-auth-client-set-pin-code.component-BgEgdFxQ.mjs} +5 -5
  62. package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.component-Dpdgw4KT.mjs.map → acorex-platform-module-auth-client-set-pin-code.component-BgEgdFxQ.mjs.map} +1 -1
  63. package/fesm2022/{acorex-platform-module-auth-client-settings.provider-Yaoz8yp3.mjs → acorex-platform-module-auth-client-settings.provider-DGiK-MmW.mjs} +27 -25
  64. package/fesm2022/acorex-platform-module-auth-client-settings.provider-DGiK-MmW.mjs.map +1 -0
  65. package/fesm2022/acorex-platform-module-auth-client-show-profile-command-BWoDxIdx.mjs.map +1 -1
  66. package/fesm2022/acorex-platform-module-auth-client-signout-command-B7n_Fn4P.mjs.map +1 -1
  67. package/fesm2022/{acorex-platform-module-auth-client-tenant-chooser.component-1Kv-LGZc.mjs → acorex-platform-module-auth-client-tenant-chooser.component-B8CNqHx5.mjs} +5 -5
  68. package/fesm2022/{acorex-platform-module-auth-client-tenant-chooser.component-1Kv-LGZc.mjs.map → acorex-platform-module-auth-client-tenant-chooser.component-B8CNqHx5.mjs.map} +1 -1
  69. package/fesm2022/{acorex-platform-module-auth-client-two-factor-code.component-nsB4v25Z.mjs → acorex-platform-module-auth-client-two-factor-code.component-BrqfaY8i.mjs} +3 -3
  70. package/fesm2022/{acorex-platform-module-auth-client-two-factor-code.component-nsB4v25Z.mjs.map → acorex-platform-module-auth-client-two-factor-code.component-BrqfaY8i.mjs.map} +1 -1
  71. package/fesm2022/{acorex-platform-module-auth-client-two-factor.module-BnH72Bob.mjs → acorex-platform-module-auth-client-two-factor.module-CI8KC5M_.mjs} +2 -2
  72. package/fesm2022/{acorex-platform-module-auth-client-two-factor.module-BnH72Bob.mjs.map → acorex-platform-module-auth-client-two-factor.module-CI8KC5M_.mjs.map} +1 -1
  73. package/fesm2022/{acorex-platform-module-auth-client-view-login-history.command-C_T4l61M.mjs → acorex-platform-module-auth-client-view-login-history.command-Cqb27L-l.mjs} +2 -2
  74. package/fesm2022/{acorex-platform-module-auth-client-view-login-history.command-C_T4l61M.mjs.map → acorex-platform-module-auth-client-view-login-history.command-Cqb27L-l.mjs.map} +1 -1
  75. package/fesm2022/acorex-platform-module-auth-client.mjs +1 -1
  76. package/package.json +2 -2
  77. package/types/acorex-platform-module-auth-client-contracts.d.ts +30 -2
  78. package/fesm2022/acorex-platform-module-auth-client-acorex-platform-module-auth-client-CPmffSrQ.mjs.map +0 -1
  79. package/fesm2022/acorex-platform-module-auth-client-open-sessions.command-BlPxfa3v.mjs +0 -200
  80. package/fesm2022/acorex-platform-module-auth-client-open-sessions.command-BlPxfa3v.mjs.map +0 -1
  81. package/fesm2022/acorex-platform-module-auth-client-password.component-5-0kaY5J.mjs.map +0 -1
  82. package/fesm2022/acorex-platform-module-auth-client-settings.provider-Yaoz8yp3.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-auth-client-profile-page.component-w2SYmCyc.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/account/profile-page/profile-page-registry.service.ts","../../../../libs/modules/auth/client/src/lib/pages/account/profile-page/profile-page-user.service.ts","../../../../libs/modules/auth/client/src/lib/pages/account/profile-page/profile-page-header.service.ts","../../../../libs/modules/auth/client/src/lib/pages/account/profile-page/profile-page.component.ts","../../../../libs/modules/auth/client/src/lib/pages/account/profile-page/profile-page.component.html"],"sourcesContent":["import { Injectable, inject } from '@angular/core';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPHookService } from '@acorex-platform/framework-client/core';\nimport { defaultTo, first, orderBy, uniqBy } from 'lodash';\nimport {\n AXPUserProfileGroup,\n AXPUserProfileGroupsPayload,\n AXPUserProfileHeaderMetaItem,\n AXPUserProfileHeaderMetaPayload,\n AXPUserProfileSection,\n AXPUserProfileSectionsPayload,\n PROFILE_PAGE_GROUPS_HOOK,\n PROFILE_PAGE_HEADER_META_HOOK,\n PROFILE_PAGE_SECTIONS_HOOK,\n} from './profile-page.types';\n\n//#region ---- Profile page registry ----\n\n/**\n * Aggregates profile page groups, sections, and header meta from distributed hooks.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXPUserProfilePageRegistryService {\n //#region ---- Services & Dependencies ----\n\n private readonly hooks = inject(AXPHookService);\n private readonly sessionService = inject(AXPSessionService);\n\n //#endregion\n\n //#region ---- Public API ----\n\n async loadGroups(): Promise<AXPUserProfileGroup[]> {\n const payload = await this.hooks.runAsync<AXPUserProfileGroupsPayload>(PROFILE_PAGE_GROUPS_HOOK, { groups: [] });\n return this.sortGroups(defaultTo(payload.groups, []));\n }\n\n async loadSections(groupId?: string): Promise<AXPUserProfileSection[]> {\n const payload = await this.hooks.runAsync<AXPUserProfileSectionsPayload>(PROFILE_PAGE_SECTIONS_HOOK, {\n sections: [],\n groupId,\n });\n return this.sortSections(this.filterSectionsByFeature(defaultTo(payload.sections, [])));\n }\n\n replaceGroupSections(\n existing: AXPUserProfileSection[],\n groupSections: AXPUserProfileSection[],\n groupId: string,\n ): AXPUserProfileSection[] {\n return this.sortSections([\n ...existing.filter((section) => section.groupId !== groupId),\n ...groupSections.filter((section) => section.groupId === groupId),\n ]);\n }\n\n async loadHeaderMeta(): Promise<AXPUserProfileHeaderMetaItem[]> {\n const payload = await this.hooks.runAsync<AXPUserProfileHeaderMetaPayload>(PROFILE_PAGE_HEADER_META_HOOK, {\n items: [],\n });\n return orderBy(\n uniqBy(defaultTo(payload.items, []), 'id'),\n [(item) => defaultTo(item.priority, 100), 'id'],\n ['asc', 'asc'],\n );\n }\n\n filterSectionsByGroup(sections: AXPUserProfileSection[], groupId: string | null): AXPUserProfileSection[] {\n if (!groupId) {\n return sections;\n }\n return sections.filter((section) => section.groupId === groupId);\n }\n\n resolveDefaultGroup(groups: AXPUserProfileGroup[]): AXPUserProfileGroup | undefined {\n return first(this.sortGroups(groups));\n }\n\n resolveGroupByRoute(groups: AXPUserProfileGroup[], routeSegment: string): AXPUserProfileGroup | undefined {\n const normalized = routeSegment.trim().toLowerCase();\n const resolvedRoute = normalized === 'privacy' ? 'account' : normalized;\n\n return this.sortGroups(groups).find(\n (group) => group.id.toLowerCase() === resolvedRoute || group.route?.toLowerCase() === resolvedRoute,\n );\n }\n\n resolveGroupRoute(group: AXPUserProfileGroup): string {\n return group.route ?? group.id;\n }\n\n //#endregion\n\n //#region ---- Private Methods ----\n\n private filterSectionsByFeature(sections: AXPUserProfileSection[]): AXPUserProfileSection[] {\n return sections.filter((section) => !section.feature || this.sessionService.isFeatureEnabled(section.feature));\n }\n\n private sortGroups(groups: AXPUserProfileGroup[]): AXPUserProfileGroup[] {\n return orderBy(uniqBy(groups, 'id'), [(g) => defaultTo(g.priority, 100), 'id'], ['asc', 'asc']);\n }\n\n private sortSections(sections: AXPUserProfileSection[]): AXPUserProfileSection[] {\n return orderBy(uniqBy(sections, 'id'), [(s) => defaultTo(s.priority, 100), 'id'], ['asc', 'asc']);\n }\n\n //#endregion\n}\n\n//#endregion\n","import { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPQueryService } from '@acorex-platform/framework-client/runtime';\nimport { runtimeQueryPayloadData } from '@acorex-platform/framework-shared/core';\nimport { ENTITY_GET_BY_ID_DEFAULT } from '@acorex-platform/framework-shared/runtime';\nimport { Injectable, inject } from '@angular/core';\nimport { get, isNil } from 'lodash';\n\n//#region ----- Constants -----\n\nconst SECURITY_MANAGEMENT_USER_ENTITY = 'SecurityManagement.User';\n\n//#endregion\n\n//#region ----- Current user record -----\n\nexport interface AXPUserProfileCurrentUserRecord {\n id: string;\n username?: string;\n displayName?: string;\n auditInfo?: {\n created?: { at?: Date | string };\n updated?: { at?: Date | string };\n };\n}\n\n//#endregion\n\n//#region ----- Profile page user service -----\n\n/**\n * Loads the persisted user row for the logged-in session (audit info, display fields).\n */\n@Injectable({ providedIn: 'root' })\nexport class AXPUserProfileUserService {\n //#region ----- Services & Dependencies -----\n\n private readonly sessionService = inject(AXPSessionService);\n private readonly queryService = inject(AXPQueryService);\n\n //#endregion\n\n //#region ----- Public API -----\n\n async loadCurrentUser(): Promise<AXPUserProfileCurrentUserRecord | null> {\n const userId = this.sessionService.user?.id;\n if (!userId || !this.sessionService.isReadyForAppScopedApi) {\n return null;\n }\n\n try {\n const result = await this.queryService.fetch<\n { entity: string; id: string },\n AXPUserProfileCurrentUserRecord\n >(ENTITY_GET_BY_ID_DEFAULT, {\n entity: SECURITY_MANAGEMENT_USER_ENTITY,\n id: userId,\n });\n return runtimeQueryPayloadData(result) ?? null;\n } catch {\n return null;\n }\n }\n\n resolveJoinedAt(record: AXPUserProfileCurrentUserRecord | null): Date | string | undefined {\n if (isNil(record)) {\n return undefined;\n }\n return get(record, 'auditInfo.created.at');\n }\n\n //#endregion\n}\n\n//#endregion\n","import { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { Injectable, inject } from '@angular/core';\nimport { defaultTo } from 'lodash';\nimport { AXPUserProfilePageRegistryService } from './profile-page-registry.service';\nimport { AXPUserProfileHeaderMetaItem } from './profile-page.types';\nimport { AXPUserProfileUserService } from './profile-page-user.service';\n\n//#region ---- Header view model ----\n\nexport interface AXPUserProfileHeaderView {\n userId: string;\n displayName: string;\n username?: string;\n joinedAt?: Date | string;\n avatarUserId: string;\n /** Extra header rows contributed via hooks (username/joined are on the view root). */\n meta: AXPUserProfileHeaderMetaItem[];\n}\n\n//#endregion\n\n//#region ---- Profile page header service ----\n\n/**\n * Builds profile page header data from session and optional extended profile sources.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXPUserProfileHeaderService {\n //#region ---- Services & Dependencies ----\n\n private readonly sessionService = inject(AXPSessionService);\n private readonly registry = inject(AXPUserProfilePageRegistryService);\n private readonly userService = inject(AXPUserProfileUserService);\n\n //#endregion\n\n //#region ---- Public API ----\n\n async load(): Promise<AXPUserProfileHeaderView | null> {\n const sessionUser = this.sessionService.user;\n if (!sessionUser?.id) {\n return null;\n }\n\n const userRecord = await this.userService.loadCurrentUser();\n const hookMeta = await this.registry.loadHeaderMeta();\n\n const displayName = defaultTo(\n sessionUser.title,\n defaultTo(userRecord?.displayName, sessionUser.name),\n );\n const username = defaultTo(userRecord?.username, sessionUser.name);\n\n return {\n userId: sessionUser.id,\n displayName,\n username,\n joinedAt: this.userService.resolveJoinedAt(userRecord),\n avatarUserId: sessionUser.id,\n meta: hookMeta.sort((a, b) => defaultTo(a.priority, 100) - defaultTo(b.priority, 100)),\n };\n }\n\n //#endregion\n}\n\n//#endregion\n","\nimport {\n AXPActionMenuItem,\n AXPBackButton,\n AXPExecuteCommand,\n AXPMultiLanguageString,\n AXPRuntimeCommandResult,\n} from '@acorex-platform/framework-shared/core';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXDropdownModule } from '@acorex/components/dropdown';\nimport { AXSkeletonModule } from '@acorex/components/skeleton';\nimport { AXTabsModule, AXTabStripChangedEvent } from '@acorex/components/tabs';\nimport { AXFormatPipe } from '@acorex/core/format';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXTooltipModule } from '@acorex/components/tooltip';\nimport { AXPStickyDirective } from '@acorex-platform/framework-client/common';\n\nimport { AXPDeviceService } from '@acorex-platform/framework-client/core';\nimport { AXPCommandService } from '@acorex-platform/framework-client/runtime';\nimport {\n AXPThemeLayoutBlockComponent,\n AXPThemeLayoutListComponent,\n AXPThemeLayoutListItemComponent,\n AXPUserAvatarComponent,\n} from '@acorex-platform/framework-client/layout/components';\nimport {\n AXPPageComponentRendererDirective,\n AXPPageLayoutBase,\n AXPPageLayoutBaseComponent,\n AXPPageLayoutComponent,\n} from '@acorex-platform/framework-client/layout/views';\nimport { AsyncPipe, CommonModule } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n effect,\n inject,\n signal,\n untracked,\n ViewEncapsulation,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { ActivatedRoute, RouterModule } from '@angular/router';\nimport { distinctUntilChanged, filter } from 'rxjs';\nimport { AXMAuthCommandKeys } from '@acorex-platform/module-auth-client/contracts';\nimport { AXPUserProfileHeaderService, AXPUserProfileHeaderView } from './profile-page-header.service';\nimport { AXPUserProfilePageRegistryService } from './profile-page-registry.service';\nimport {\n PROFILE_SECTION_INSIGHTS_PATCH_METADATA_KEY,\n type AXPUserProfileSectionInsightsPatch,\n} from './profile-password-insight.util';\nimport {\n AXPUserProfileGroup,\n AXPUserProfileGroupComponentContent,\n AXPUserProfileSection,\n AXPUserProfileSectionInsight,\n AXPUserProfileSectionLayout,\n resolveDefaultUserProfileSectionAction,\n resolveUserProfileSectionContent,\n visibleUserProfileSectionActions,\n} from './profile-page.types';\n\n@Component({\n selector: 'axm-user-profile-page',\n imports: [\n CommonModule,\n AsyncPipe,\n AXFormatPipe,\n RouterModule,\n AXDecoratorModule,\n AXButtonModule,\n AXDropdownModule,\n AXSkeletonModule,\n AXTabsModule,\n AXPStickyDirective,\n AXTranslationModule,\n AXTooltipModule,\n AXPPageLayoutComponent,\n AXPThemeLayoutBlockComponent,\n AXPThemeLayoutListComponent,\n AXPThemeLayoutListItemComponent,\n AXPUserAvatarComponent,\n AXPPageComponentRendererDirective,\n ],\n templateUrl: './profile-page.component.html',\n styleUrl: './profile-page.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n {\n provide: AXPPageLayoutBase,\n useExisting: AXMUserProfilePageComponent,\n },\n ],\n host: {\n class: 'axm-user-profile-page',\n '[class.--mobile-group]': 'isMobileGroupView()',\n },\n})\nexport class AXMUserProfilePageComponent extends AXPPageLayoutBaseComponent {\n //#region ----- Services & Dependencies -----\n\n private readonly registry = inject(AXPUserProfilePageRegistryService);\n private readonly headerService = inject(AXPUserProfileHeaderService);\n private readonly commandService = inject(AXPCommandService);\n private readonly activatedRoute = inject(ActivatedRoute);\n private readonly destroyRef = inject(DestroyRef);\n protected readonly deviceService = inject(AXPDeviceService);\n\n //#endregion\n\n //#region ----- Constants -----\n\n protected readonly pageTabSkeletonPlaceholders = [1, 2, 3, 4];\n protected readonly pageListSkeletonPlaceholders = [1, 2, 3, 4];\n protected readonly sectionSkeletonPlaceholders = [1, 2, 3, 4];\n\n //#endregion\n\n //#region ----- State Signals -----\n\n protected readonly groups = signal<AXPUserProfileGroup[]>([]);\n protected readonly sections = signal<AXPUserProfileSection[]>([]);\n protected readonly header = signal<AXPUserProfileHeaderView | null>(null);\n protected readonly activeGroupId = signal<string | null>(null);\n protected readonly visitedGroupIds = signal<ReadonlySet<string>>(new Set());\n protected readonly loadedSectionGroupIds = signal<ReadonlySet<string>>(new Set());\n protected readonly isLoading = signal(true);\n\n private readonly sectionLoadInflight = new Map<string, Promise<void>>();\n\n protected readonly isCompactNav = computed(() => !this.deviceService.isLarge());\n protected readonly isMobileGroupView = computed(() => this.isCompactNav() && !!this.activeGroupId());\n protected readonly showHero = computed(() => !this.isMobileGroupView());\n protected readonly showTabs = computed(() => !this.isCompactNav() && this.groups().length > 0);\n protected readonly showGroupList = computed(() => this.isCompactNav() && !this.activeGroupId());\n protected readonly showGroupContent = computed(() => !this.isCompactNav() || !!this.activeGroupId());\n\n readonly #loadVisitedGroup = effect(() => {\n const groupId = this.activeGroupId();\n if (!groupId) {\n return;\n }\n\n untracked(() => {\n void this.ensureGroupContent(groupId);\n });\n });\n\n readonly #navChromeEffect = effect(() => {\n this.activeGroupId();\n this.deviceService.isLarge();\n untracked(() => this.recompute());\n });\n\n readonly #desktopDefaultGroupEffect = effect(() => {\n const isLarge = this.deviceService.isLarge();\n const groups = this.groups();\n const active = this.activeGroupId();\n const loading = this.isLoading();\n if (!isLarge || active || !groups.length || loading) {\n return;\n }\n\n untracked(() => {\n void this.navigateToDefaultGroup(groups, { replaceUrl: true });\n });\n });\n\n //#endregion\n\n //#region ----- Lifecycle -----\n\n override async ngOnInit(): Promise<void> {\n await super.ngOnInit();\n await this.loadPage();\n this.bindProfileIdentityUpdates();\n\n this.activatedRoute.paramMap.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {\n void this.syncGroupFromRoute();\n });\n }\n\n //#endregion\n\n //#region ----- Page Metadata -----\n\n protected override getPageTitle(): AXPMultiLanguageString {\n if (!this.isMobileGroupView()) {\n return '';\n }\n\n return this.activeGroup()?.title ?? '';\n }\n\n protected override getPageDescription(): null {\n return null;\n }\n\n protected override getPageIcon(): string | null {\n if (!this.isMobileGroupView()) {\n return null;\n }\n\n return this.activeGroup()?.icon ?? null;\n }\n\n protected override getBackButton(): AXPBackButton | null {\n if (!this.isMobileGroupView()) {\n return null;\n }\n\n return { title: '@auth:profile-page.page.title' };\n }\n\n override async onBackButtonClick(): Promise<void> {\n const appName = this.sessionService.application?.name;\n if (!appName) {\n return;\n }\n\n await this.router.navigate([appName, 'profile']);\n }\n\n //#endregion\n\n //#region ---- UI Handlers ----\n\n protected handleSelectGroup(group: AXPUserProfileGroup): void {\n this.activeGroupId.set(group.id);\n\n const appName = this.sessionService.application?.name;\n if (!appName) {\n return;\n }\n\n void this.router.navigate([appName, 'profile', this.registry.resolveGroupRoute(group)]);\n }\n\n protected handleGroupTabChanged(event: AXTabStripChangedEvent): void {\n const group =\n this.groups().find((item) => item.id === event.tab?.key) ?? this.groups()[event.index];\n if (!group || group.id === this.activeGroupId()) {\n return;\n }\n\n this.handleSelectGroup(group);\n }\n\n protected handleEditAvatar(): void {\n void this.executeCommand({\n name: AXMAuthCommandKeys.Profile.ChangePhoto,\n });\n }\n\n protected async handleActionClick(action: AXPActionMenuItem): Promise<void> {\n if (action.disabled || action.visible === false || !action.command) {\n return;\n }\n\n const result = await this.executeCommand(action.command);\n\n if (result?.success && this.isPinRelatedAction(action)) {\n await this.reloadSections();\n }\n\n if (result?.success && this.applyProfileSectionInsightsPatch(result)) {\n // Password card updated from save payload — skip User/sessions reload.\n } else if (result?.success && this.shouldReloadSecuritySections(action.command.name)) {\n await this.reloadSections();\n }\n\n if (result?.success && this.applyHealthProfileSectionPatch(result)) {\n // Medical Summary updated from save payload — skip full section reload (User/sessions/Employee).\n } else if (result?.success && this.shouldReloadHealthSections(action.command.name)) {\n await this.reloadSections();\n }\n\n if (\n result?.success &&\n action.command?.name.startsWith('HumanCapitalManagement.Profile:')\n ) {\n await this.reloadProfileHeader();\n }\n }\n\n protected visibleSectionActions(actions: AXPActionMenuItem[]) {\n return visibleUserProfileSectionActions(actions);\n }\n\n protected defaultSectionAction(actions: AXPActionMenuItem[]) {\n return resolveDefaultUserProfileSectionAction(actions);\n }\n\n protected resolveSectionContent(section: AXPUserProfileSection) {\n return resolveUserProfileSectionContent(section);\n }\n\n protected isGroupVisited(groupId: string): boolean {\n return this.visitedGroupIds().has(groupId);\n }\n\n protected isGroupPanelActive(groupId: string): boolean {\n return this.activeGroupId() === groupId;\n }\n\n protected activeGroup(): AXPUserProfileGroup | undefined {\n const groupId = this.activeGroupId();\n if (!groupId) {\n return undefined;\n }\n\n return this.groups().find((group) => group.id === groupId);\n }\n\n protected isGroupSectionsPending(group: AXPUserProfileGroup): boolean {\n return !this.groupComponentContent(group) && !this.loadedSectionGroupIds().has(group.id);\n }\n\n protected sectionsForGroup(groupId: string): AXPUserProfileSection[] {\n return this.registry.filterSectionsByGroup(this.sections(), groupId);\n }\n\n protected groupComponentContent(group: AXPUserProfileGroup): AXPUserProfileGroupComponentContent | undefined {\n if (group.content?.mode === 'component') {\n return group.content;\n }\n return undefined;\n }\n\n protected sectionLayoutVars(layout?: AXPUserProfileSectionLayout): Record<string, string | number> {\n return {\n '--section-col-span': layout?.colSpan ?? 6,\n '--section-row-span': layout?.rowSpan ?? 1,\n '--section-col-start': layout?.col ?? 'auto',\n };\n }\n\n protected hasSectionColStart(layout?: AXPUserProfileSectionLayout): boolean {\n return layout?.col != null;\n }\n\n protected hasDisplayableInsights(section: AXPUserProfileSection): boolean {\n return this.displayableInsights(section).length > 0;\n }\n\n protected displayableInsights(section: AXPUserProfileSection): AXPUserProfileSectionInsight[] {\n return (section.insights ?? []).filter((insight) => this.isDisplayableInsight(insight));\n }\n\n protected resolveInsightDate(insight: AXPUserProfileSectionInsight): Date | null {\n if (!insight.date) {\n return null;\n }\n\n return Number.isNaN(insight.date.getTime()) ? null : insight.date;\n }\n\n //#endregion\n\n //#region ---- Private Methods ----\n\n private isDisplayableInsight(insight: AXPUserProfileSectionInsight): boolean {\n if (insight.text?.trim()) {\n return true;\n }\n\n return this.resolveInsightDate(insight) !== null;\n }\n\n private async loadPage(): Promise<void> {\n this.isLoading.set(true);\n try {\n const [groups, header] = await Promise.all([\n this.registry.loadGroups(),\n this.headerService.load(),\n ]);\n\n this.groups.set(groups);\n this.header.set(header);\n await this.syncGroupFromRoute();\n const groupId = this.activeGroupId();\n if (groupId) {\n await this.ensureGroupContent(groupId);\n }\n } finally {\n this.isLoading.set(false);\n }\n }\n\n private async syncGroupFromRoute(): Promise<void> {\n const groups = this.groups();\n if (!groups.length) {\n this.activeGroupId.set(null);\n return;\n }\n\n const routeSegment = this.activatedRoute.snapshot.paramMap.get('groupId');\n const appName = this.sessionService.application?.name;\n\n if (!routeSegment) {\n if (this.deviceService.isLarge()) {\n await this.navigateToDefaultGroup(groups, { replaceUrl: true });\n } else {\n this.activeGroupId.set(null);\n }\n return;\n }\n\n const matchedGroup = this.registry.resolveGroupByRoute(groups, routeSegment);\n if (!matchedGroup) {\n if (this.deviceService.isLarge()) {\n await this.navigateToDefaultGroup(groups, { replaceUrl: true });\n } else if (appName) {\n await this.router.navigate([appName, 'profile'], { replaceUrl: true });\n } else {\n this.activeGroupId.set(null);\n }\n return;\n }\n\n const canonicalRoute = this.registry.resolveGroupRoute(matchedGroup);\n if (appName && routeSegment.toLowerCase() !== canonicalRoute.toLowerCase()) {\n await this.router.navigate([appName, 'profile', canonicalRoute], { replaceUrl: true });\n return;\n }\n\n this.activeGroupId.set(matchedGroup.id);\n }\n\n private async navigateToDefaultGroup(\n groups: AXPUserProfileGroup[],\n extras?: { replaceUrl?: boolean },\n ): Promise<void> {\n const defaultGroup = this.registry.resolveDefaultGroup(groups);\n if (!defaultGroup) {\n this.activeGroupId.set(null);\n return;\n }\n\n const appName = this.sessionService.application?.name;\n if (appName) {\n await this.router.navigate([appName, 'profile', this.registry.resolveGroupRoute(defaultGroup)], extras);\n return;\n }\n\n this.activeGroupId.set(defaultGroup.id);\n }\n\n private async reloadSections(): Promise<void> {\n const groupId = this.activeGroupId();\n if (!groupId) {\n return;\n }\n\n const loaded = await this.registry.loadSections(groupId);\n this.sections.set(this.registry.replaceGroupSections(this.sections(), loaded, groupId));\n }\n\n private async ensureGroupContent(groupId: string): Promise<void> {\n this.markGroupVisited(groupId);\n\n const inflight = this.sectionLoadInflight.get(groupId);\n if (inflight) {\n await inflight;\n return;\n }\n\n if (this.loadedSectionGroupIds().has(groupId)) {\n return;\n }\n\n const load = this.loadGroupSections(groupId).finally(() => {\n this.sectionLoadInflight.delete(groupId);\n });\n this.sectionLoadInflight.set(groupId, load);\n await load;\n }\n\n private async loadGroupSections(groupId: string): Promise<void> {\n const loaded = await this.registry.loadSections(groupId);\n this.sections.set(this.registry.replaceGroupSections(this.sections(), loaded, groupId));\n\n const next = new Set(this.loadedSectionGroupIds());\n next.add(groupId);\n this.loadedSectionGroupIds.set(next);\n }\n\n private markGroupVisited(groupId: string): void {\n const visited = this.visitedGroupIds();\n if (visited.has(groupId)) {\n return;\n }\n\n const next = new Set(visited);\n next.add(groupId);\n this.visitedGroupIds.set(next);\n }\n\n private bindProfileIdentityUpdates(): void {\n this.sessionService.user$\n .pipe(\n filter((user) => !!user?.id),\n distinctUntilChanged(\n (previous, current) =>\n previous?.title === current?.title &&\n previous?.name === current?.name,\n ),\n takeUntilDestroyed(this.destroyRef),\n )\n .subscribe(() => {\n void this.reloadProfileHeader();\n });\n }\n\n private async reloadProfileHeader(): Promise<void> {\n const header = await this.headerService.load();\n this.header.set(header);\n }\n\n private shouldReloadSecuritySections(commandName: string): boolean {\n return commandName === AXMAuthCommandKeys.Session.OpenSessions;\n }\n\n private shouldReloadHealthSections(commandName: string): boolean {\n // Only the health-profile editor changes Medical Summary insights; list popups must not reload on close.\n return commandName === 'HealthCore.Profile:EditMyHealthProfile';\n }\n\n private applyProfileSectionInsightsPatch(result: AXPRuntimeCommandResult): boolean {\n const patch = result.metadata?.[PROFILE_SECTION_INSIGHTS_PATCH_METADATA_KEY] as\n | AXPUserProfileSectionInsightsPatch\n | undefined;\n\n if (!patch?.sectionId) {\n return false;\n }\n\n const sections = this.sections();\n const index = sections.findIndex((section) => section.id === patch.sectionId);\n if (index < 0) {\n return false;\n }\n\n const insights = patch.insights ?? [];\n const nextSections = [...sections];\n nextSections[index] = {\n ...sections[index],\n insights: insights.length ? insights : undefined,\n };\n this.sections.set(nextSections);\n return true;\n }\n\n private applyHealthProfileSectionPatch(result: AXPRuntimeCommandResult): boolean {\n const patch = result.metadata?.['healthProfileSectionPatch'] as\n | {\n sectionId?: string;\n insights?: AXPUserProfileSectionInsight[];\n existingProfileId?: string | null;\n }\n | undefined;\n\n if (!patch?.sectionId) {\n return false;\n }\n\n const sections = this.sections();\n const index = sections.findIndex((section) => section.id === patch.sectionId);\n if (index < 0) {\n return false;\n }\n\n const section = sections[index];\n const insights = patch.insights ?? [];\n const nextSection: AXPUserProfileSection = {\n ...section,\n insights: insights.length ? insights : undefined,\n actions: (section.actions ?? []).map((sectionAction) => {\n if (sectionAction.command?.name !== 'HealthCore.Profile:EditMyHealthProfile') {\n return sectionAction;\n }\n\n return {\n ...sectionAction,\n command: {\n ...sectionAction.command,\n options: {\n ...(sectionAction.command.options ?? {}),\n existingProfileId: patch.existingProfileId ?? null,\n },\n },\n };\n }),\n };\n\n const nextSections = [...sections];\n nextSections[index] = nextSection;\n this.sections.set(nextSections);\n return true;\n }\n\n private isPinRelatedAction(action: AXPActionMenuItem): boolean {\n const commandName = action.command?.name;\n\n return (\n commandName === AXMAuthCommandKeys.Security.SetPinCode ||\n commandName === AXMAuthCommandKeys.Security.RemovePinCode\n );\n }\n\n private async executeCommand(\n command: AXPExecuteCommand,\n ): Promise<AXPRuntimeCommandResult | void> {\n if (this.commandService.exists(command.name)) {\n const result = await this.commandService.execute(command.name, command.options ?? {});\n return result ?? undefined;\n }\n }\n\n //#endregion\n}\n","<axp-page-layout *translate=\"let t\">\n <axp-page-content>\n @if (isLoading()) {\n <!-- ----- Profile page skeleton ----- -->\n <div class=\"__shell\" aria-hidden=\"true\">\n <section class=\"__hero-card\">\n <div class=\"__hero-header\">\n <div class=\"__hero-cover\">\n <span class=\"__hero-wave __hero-wave--primary\"></span>\n <span class=\"__hero-wave __hero-wave--soft\"></span>\n <span class=\"__hero-wave __hero-wave--light\"></span>\n </div>\n <div class=\"__hero-content\">\n <div class=\"__hero-avatar\">\n <ax-skeleton class=\"size-24 rounded-full\" [animated]=\"true\"></ax-skeleton>\n </div>\n <div class=\"__hero-details\">\n <ax-skeleton class=\"h-7 w-48 max-w-full rounded-md\" [animated]=\"true\"></ax-skeleton>\n <ax-skeleton class=\"mt-2 h-4 w-32 max-w-full rounded-md\" [animated]=\"true\"></ax-skeleton>\n </div>\n </div>\n </div>\n <!--------------------------------------------------------------->\n @if (!isCompactNav()) {\n <!-- ----- Desktop tab skeletons ----- -->\n <div class=\"__tabs __tabs-skeleton\">\n @for (item of pageTabSkeletonPlaceholders; track item) {\n <ax-skeleton class=\"h-4 w-20 rounded-md\" [animated]=\"true\"></ax-skeleton>\n }\n </div>\n }\n </section>\n <!--------------------------------------------------------------->\n @if (isCompactNav()) {\n <!-- ----- Compact group-list skeletons ----- -->\n <div class=\"__group-nav\">\n @for (item of pageListSkeletonPlaceholders; track item) {\n <div class=\"__group-nav-skeleton-row\">\n <ax-skeleton class=\"size-5 shrink-0 rounded-md\" [animated]=\"true\"></ax-skeleton>\n <ax-skeleton class=\"h-4 min-w-0 flex-1 rounded-md\" [animated]=\"true\"></ax-skeleton>\n <ax-skeleton class=\"size-4 shrink-0 rounded-md\" [animated]=\"true\"></ax-skeleton>\n </div>\n }\n </div>\n }\n <!-- ----- Desktop section-card skeletons ----- -->\n @else {\n <ng-container *ngTemplateOutlet=\"sectionCardsSkeleton\"></ng-container>\n }\n </div>\n } @else if (header(); as profileHeader) {\n <div class=\"__shell\">\n <!--->\n <!-- ----- Profile hero and desktop group tabs ----- -->\n @if (showHero()) {\n <section\n class=\"__hero-card\"\n [axpSticky]=\"'--stuck'\"\n stickyParent=\"#axp-page-layout\"\n [stickyOffset]=\"0\"\n >\n <div class=\"__hero-header\">\n <div class=\"__hero-cover\" aria-hidden=\"true\">\n <span class=\"__hero-wave __hero-wave--primary\" aria-hidden=\"true\"></span>\n <span class=\"__hero-wave __hero-wave--soft\" aria-hidden=\"true\"></span>\n <span class=\"__hero-wave __hero-wave--light\" aria-hidden=\"true\"></span>\n </div>\n\n <div class=\"__hero-content\">\n <div class=\"__hero-avatar\">\n <axp-user-avatar [size]=\"96\" [userId]=\"profileHeader.avatarUserId\"></axp-user-avatar>\n <button type=\"button\" class=\"__avatar-edit\"\n [attr.aria-label]=\"('@auth:profile-page.avatar.edit' | translate | async) ?? ''\"\n (click)=\"handleEditAvatar()\">\n <ax-icon icon=\"fa-light fa-camera\"></ax-icon>\n </button>\n </div>\n\n <div class=\"__hero-details\">\n <h2 class=\"__hero-name\">{{ profileHeader.displayName }}</h2>\n\n @if (profileHeader.username || profileHeader.joinedAt) {\n <p class=\"__hero-subtitle\">\n @if (profileHeader.username) {\n <span class=\"__hero-subtitle-item\">\n <ax-icon icon=\"fa-light fa-user\"></ax-icon>\n <span>{{ profileHeader.username }}</span>\n </span>\n }\n @if (profileHeader.username && profileHeader.joinedAt) {\n <span class=\"__hero-subtitle-separator\" aria-hidden=\"true\">·</span>\n }\n @if (profileHeader.joinedAt) {\n <span class=\"__hero-subtitle-item\">\n <ax-icon icon=\"fa-light fa-calendar\"></ax-icon>\n <span>\n {{ '@auth:profile-page.header.meta.member-since' | translate | async }}\n {{ profileHeader.joinedAt | format: 'date' : { format: 'long' } | async }}\n </span>\n </span>\n }\n </p>\n }\n\n @if (profileHeader.meta.length) {\n <ul class=\"__hero-meta\">\n @for (item of profileHeader.meta; track item.id) {\n <li class=\"__hero-meta-item\">\n @if (item.icon) {\n <ax-icon [icon]=\"item.icon\"></ax-icon>\n }\n <span class=\"__hero-meta-label\">{{ item.label | translate | async }}</span>\n <span class=\"__hero-meta-value\">{{ item.value }}</span>\n </li>\n }\n </ul>\n }\n </div>\n </div>\n </div>\n\n <!--->\n <!-- ----- Desktop group tabs ----- -->\n @if (showTabs()) {\n <ax-tabs class=\"__tabs\" [look]=\"'with-line'\" [location]=\"'bottom'\" [fitParent]=\"false\"\n (onActiveTabChanged)=\"handleGroupTabChanged($event)\">\n @for (group of groups(); track group.id) {\n <ax-tab-item [key]=\"group.id\" [text]=\"(group.title | translate | async)!\"\n [active]=\"activeGroupId() === group.id\">\n @if (group.icon) {\n <ax-prefix>\n <ax-icon [icon]=\"group.icon\"></ax-icon>\n </ax-prefix>\n }\n </ax-tab-item>\n }\n </ax-tabs>\n }\n </section>\n }\n\n <!--->\n <!-- ----- Profile area list on compact screens ----- -->\n @if (showGroupList()) {\n <axp-layout-list class=\"__group-nav\">\n @for (group of groups(); track group.id) {\n <axp-layout-list-item (click)=\"handleSelectGroup(group)\">\n <!--->\n <!-- ----- Group icon ----- -->\n @if (group.icon) {\n <axp-layout-prefix>\n <ax-icon [icon]=\"group.icon\" class=\"text-gray-500\"></ax-icon>\n </axp-layout-prefix>\n }\n <axp-layout-content>\n <a class=\"font-semibold\">{{ group.title | translate | async }}</a>\n </axp-layout-content>\n <axp-layout-suffix>\n <ax-icon icon=\"far fa-chevron-right rtl:rotate-180\" class=\"text-gray-400\"></ax-icon>\n </axp-layout-suffix>\n </axp-layout-list-item>\n }\n </axp-layout-list>\n }\n\n <ng-template #sectionCopyBody let-section=\"section\">\n @if (section.title) {\n <h3 class=\"__section-title\">{{ section.title | translate | async }}</h3>\n }\n\n @if (hasDisplayableInsights(section)) {\n <ul class=\"__section-insights\">\n @for (insight of displayableInsights(section); track insight.id) {\n <li\n class=\"__section-insight\"\n [axTooltip]=\"insight.title ? ((insight.title | translate | async) ?? '') : ''\"\n [axTooltipDisabled]=\"!insight.title\"\n axTooltipPlacement=\"top\"\n >\n <span class=\"__section-insight-icon-wrap\" aria-hidden=\"true\">\n @if (insight.icon) {\n <ax-icon [icon]=\"insight.icon\"></ax-icon>\n }\n </span>\n <span class=\"__section-insight-text\">\n @if (resolveInsightDate(insight); as insightDate) {\n @if (insight.datePrefix) {\n <span>{{ insight.datePrefix | translate | async }} · </span>\n }\n <span>{{ insightDate | format: 'timeleft' | async }}</span>\n } @else if (insight.text) {\n {{ insight.text | translate | async }}\n }\n </span>\n </li>\n }\n </ul>\n } @else if (section.description) {\n <p class=\"__section-description\">{{ section.description | translate | async }}</p>\n }\n </ng-template>\n\n <!--->\n <!-- ----- Lazy group panels: created on first visit, then shown or hidden ----- -->\n @if (showGroupContent()) {\n @for (group of groups(); track group.id) {\n @if (isGroupVisited(group.id)) {\n <div\n class=\"__group-panel\"\n [class.--inactive]=\"!isGroupPanelActive(group.id)\"\n [attr.aria-hidden]=\"!isGroupPanelActive(group.id)\"\n [attr.inert]=\"isGroupPanelActive(group.id) ? null : ''\"\n >\n @if (isGroupSectionsPending(group)) {\n <!-- ----- Section cards skeleton while group content loads ----- -->\n <ng-container *ngTemplateOutlet=\"sectionCardsSkeleton\"></ng-container>\n } @else if (groupComponentContent(group); as componentContent) {\n <!-- ----- Full-tab page component ----- -->\n <div class=\"__group-content\">\n <div axp-page-component-renderer [componentKey]=\"componentContent.componentKey\"\n [pageConfig]=\"componentContent.pageConfig ?? {}\"></div>\n </div>\n } @else {\n <!-- ----- Section cards for groups that do not replace the tab body ----- -->\n <div class=\"__sections\">\n @for (section of sectionsForGroup(group.id); track section.id) {\n @let sectionContent = resolveSectionContent(section);\n <div class=\"__section-slot\" [class.--has-col-start]=\"hasSectionColStart(section.layout)\"\n [style]=\"sectionLayoutVars(section.layout)\">\n @if (sectionContent.mode === 'component') {\n <div axp-page-component-renderer [componentKey]=\"sectionContent.componentKey\"\n [pageConfig]=\"sectionContent.pageConfig ?? {}\"></div>\n } @else {\n @let visibleActions = visibleSectionActions(sectionContent.actions);\n @let defaultAction = defaultSectionAction(sectionContent.actions);\n <article class=\"__section-card\">\n @if (defaultAction) {\n <div\n class=\"__section-card-action\"\n [class.__section-card-action--with-menu]=\"visibleActions.length > 1\"\n >\n <button\n type=\"button\"\n class=\"__section-card-hit\"\n [disabled]=\"defaultAction.disabled === true\"\n (click)=\"handleActionClick(defaultAction)\"\n >\n @if (section.icon) {\n <div class=\"__section-icon\">\n <ax-icon [icon]=\"section.icon\"></ax-icon>\n </div>\n }\n <div class=\"__section-copy\">\n <ng-container *ngTemplateOutlet=\"sectionCopyBody; context: { section: section }\"></ng-container>\n </div>\n </button>\n\n @if (visibleActions.length > 1) {\n <div class=\"__section-more-actions-wrap\" (click)=\"$event.stopPropagation()\">\n <ax-button\n class=\"__section-more-actions\"\n look=\"blank\"\n color=\"default\"\n [attr.aria-label]=\"('@auth:profile-page.page.sections.actions' | translate | async) ?? ''\"\n >\n <ax-prefix>\n <ax-icon icon=\"fa-light fa-ellipsis-vertical\"></ax-icon>\n </ax-prefix>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for (action of visibleActions; track action.name ?? action.title) {\n <ax-button-item\n [text]=\"(action.title | translate | async)!\"\n [color]=\"action.color\"\n [disabled]=\"action.disabled === true\"\n (onClick)=\"handleActionClick(action)\"\n >\n @if (action.icon) {\n <ax-prefix>\n <ax-icon [icon]=\"action.icon\"></ax-icon>\n </ax-prefix>\n }\n </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n </ax-button>\n </div>\n }\n </div>\n } @else {\n <div class=\"__section-card-action __section-card-action--static\">\n @if (section.icon) {\n <div class=\"__section-icon\">\n <ax-icon [icon]=\"section.icon\"></ax-icon>\n </div>\n }\n <div class=\"__section-copy\">\n <ng-container *ngTemplateOutlet=\"sectionCopyBody; context: { section: section }\"></ng-container>\n </div>\n </div>\n }\n </article>\n }\n </div>\n } @empty {\n <p class=\"__sections-empty\">{{ '@auth:profile-page.page.sections.empty' | translate | async }}</p>\n }\n </div>\n }\n </div>\n }\n }\n }\n </div>\n }\n <ng-template #sectionCardsSkeleton>\n <div class=\"__sections\">\n @for (item of sectionSkeletonPlaceholders; track item) {\n <div class=\"__section-slot\">\n <article class=\"__section-card\">\n <div class=\"__section-card-action __section-card-action--static\">\n <ax-skeleton class=\"size-14 shrink-0 rounded-xl\" [animated]=\"true\"></ax-skeleton>\n <div class=\"__section-copy flex flex-col gap-2\">\n <ax-skeleton class=\"h-4 w-40 max-w-full rounded-md\" [animated]=\"true\"></ax-skeleton>\n <ax-skeleton class=\"h-3 w-56 max-w-full rounded-md\" [animated]=\"true\"></ax-skeleton>\n </div>\n </div>\n </article>\n </div>\n }\n </div>\n </ng-template>\n </axp-page-content>\n</axp-page-layout>"],"names":["i1","i2","i5","i7"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA;AAEA;;AAEG;MAEU,iCAAiC,CAAA;AAD9C,IAAA,WAAA,GAAA;;AAImB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC;AAC9B,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAkF5D,IAAA;;;AA5EC,IAAA,MAAM,UAAU,GAAA;AACd,QAAA,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,QAAQ,CAA8B,wBAAwB,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;AAChH,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IACvD;IAEA,MAAM,YAAY,CAAC,OAAgB,EAAA;QACjC,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAgC,0BAA0B,EAAE;AACnG,YAAA,QAAQ,EAAE,EAAE;YACZ,OAAO;AACR,SAAA,CAAC;AACF,QAAA,OAAO,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,uBAAuB,CAAC,SAAS,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;IACzF;AAEA,IAAA,oBAAoB,CAClB,QAAiC,EACjC,aAAsC,E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EAAA,CAAA,EAAA,QAAA,EAAA,uBAAuB,EAAA,OAAA,EACxB;wBACP,YAAY;wBACZ,SAAS;wBACT,YAAY;wBACZ,YAAY;wBACZ,iBAAiB;wBACjB,cAAc;wBACd,gBAAgB;wBAChB,gBAAgB;wBAChB,YAAY;wBACZ,kBAAkB;wBAClB,mBAAmB;wBACnB,eAAe;wBACf,sBAAsB;wBACtB,4BAA4B;wBAC5B,2BAA2B;wBAC3B,+BAA+B;wBAC/B,sBAAsB;wBACtB,iCAAiC;AAClC,qBAAA,EAAA,eAAA,EAGgB,uBAAuB,CAAC,MAAM,iBAChC,iBAAiB,CAAC,IAAI,EAAA,SAAA,EAC1B;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAA,2BAA6B;AACzC,yBAAA;qBACF,EAAA,IAAA,EACK;AACJ,wBAAA,KAAK,EAAE,uBAAuB;AAC9B,wBAAA,wBAAwB,EAAE,qBAAqB;AAChD,qBAAA,EAAA,QAAA,EAAA,0/eAAA,EAAA,MAAA,EAAA,CAAA,0lqBAAA,CAAA,EAAA;;;;;"}
1
+ {"version":3,"file":"acorex-platform-module-auth-client-profile-page.component-CGs24n0j.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/account/profile-page/profile-page-registry.service.ts","../../../../libs/modules/auth/client/src/lib/pages/account/profile-page/profile-page-user.service.ts","../../../../libs/modules/auth/client/src/lib/pages/account/profile-page/profile-page-header.service.ts","../../../../libs/modules/auth/client/src/lib/pages/account/profile-page/profile-page.component.ts","../../../../libs/modules/auth/client/src/lib/pages/account/profile-page/profile-page.component.html"],"sourcesContent":["import { Injectable, inject } from '@angular/core';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPHookService } from '@acorex-platform/framework-client/core';\nimport { defaultTo, first, orderBy, uniqBy } from 'lodash';\nimport {\n AXPUserProfileGroup,\n AXPUserProfileGroupsPayload,\n AXPUserProfileHeaderMetaItem,\n AXPUserProfileHeaderMetaPayload,\n AXPUserProfileSection,\n AXPUserProfileSectionsPayload,\n PROFILE_PAGE_GROUPS_HOOK,\n PROFILE_PAGE_HEADER_META_HOOK,\n PROFILE_PAGE_SECTIONS_HOOK,\n} from './profile-page.types';\n\n//#region ---- Profile page registry ----\n\n/**\n * Aggregates profile page groups, sections, and header meta from distributed hooks.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXPUserProfilePageRegistryService {\n //#region ---- Services & Dependencies ----\n\n private readonly hooks = inject(AXPHookService);\n private readonly sessionService = inject(AXPSessionService);\n\n //#endregion\n\n //#region ---- Public API ----\n\n async loadGroups(): Promise<AXPUserProfileGroup[]> {\n const payload = await this.hooks.runAsync<AXPUserProfileGroupsPayload>(PROFILE_PAGE_GROUPS_HOOK, { groups: [] });\n return this.sortGroups(defaultTo(payload.groups, []));\n }\n\n async loadSections(groupId?: string): Promise<AXPUserProfileSection[]> {\n const payload = await this.hooks.runAsync<AXPUserProfileSectionsPayload>(PROFILE_PAGE_SECTIONS_HOOK, {\n sections: [],\n groupId,\n });\n return this.sortSections(this.filterSectionsByFeature(defaultTo(payload.sections, [])));\n }\n\n replaceGroupSections(\n existing: AXPUserProfileSection[],\n groupSections: AXPUserProfileSection[],\n groupId: string,\n ): AXPUserProfileSection[] {\n return this.sortSections([\n ...existing.filter((section) => section.groupId !== groupId),\n ...groupSections.filter((section) => section.groupId === groupId),\n ]);\n }\n\n async loadHeaderMeta(): Promise<AXPUserProfileHeaderMetaItem[]> {\n const payload = await this.hooks.runAsync<AXPUserProfileHeaderMetaPayload>(PROFILE_PAGE_HEADER_META_HOOK, {\n items: [],\n });\n return orderBy(\n uniqBy(defaultTo(payload.items, []), 'id'),\n [(item) => defaultTo(item.priority, 100), 'id'],\n ['asc', 'asc'],\n );\n }\n\n filterSectionsByGroup(sections: AXPUserProfileSection[], groupId: string | null): AXPUserProfileSection[] {\n if (!groupId) {\n return sections;\n }\n return sections.filter((section) => section.groupId === groupId);\n }\n\n resolveDefaultGroup(groups: AXPUserProfileGroup[]): AXPUserProfileGroup | undefined {\n return first(this.sortGroups(groups));\n }\n\n resolveGroupByRoute(groups: AXPUserProfileGroup[], routeSegment: string): AXPUserProfileGroup | undefined {\n const normalized = routeSegment.trim().toLowerCase();\n const resolvedRoute = normalized === 'privacy' ? 'account' : normalized;\n\n return this.sortGroups(groups).find(\n (group) => group.id.toLowerCase() === resolvedRoute || group.route?.toLowerCase() === resolvedRoute,\n );\n }\n\n resolveGroupRoute(group: AXPUserProfileGroup): string {\n return group.route ?? group.id;\n }\n\n //#endregion\n\n //#region ---- Private Methods ----\n\n private filterSectionsByFeature(sections: AXPUserProfileSection[]): AXPUserProfileSection[] {\n return sections.filter((section) => !section.feature || this.sessionService.isFeatureEnabled(section.feature));\n }\n\n private sortGroups(groups: AXPUserProfileGroup[]): AXPUserProfileGroup[] {\n return orderBy(uniqBy(groups, 'id'), [(g) => defaultTo(g.priority, 100), 'id'], ['asc', 'asc']);\n }\n\n private sortSections(sections: AXPUserProfileSection[]): AXPUserProfileSection[] {\n return orderBy(uniqBy(sections, 'id'), [(s) => defaultTo(s.priority, 100), 'id'], ['asc', 'asc']);\n }\n\n //#endregion\n}\n\n//#endregion\n","import { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPQueryService } from '@acorex-platform/framework-client/runtime';\nimport { runtimeQueryPayloadData } from '@acorex-platform/framework-shared/core';\nimport { ENTITY_GET_BY_ID_DEFAULT } from '@acorex-platform/framework-shared/runtime';\nimport { Injectable, inject } from '@angular/core';\nimport { get, isNil } from 'lodash';\n\n//#region ----- Constants -----\n\nconst SECURITY_MANAGEMENT_USER_ENTITY = 'SecurityManagement.User';\n\n//#endregion\n\n//#region ----- Current user record -----\n\nexport interface AXPUserProfileCurrentUserRecord {\n id: string;\n username?: string;\n displayName?: string;\n auditInfo?: {\n created?: { at?: Date | string };\n updated?: { at?: Date | string };\n };\n}\n\n//#endregion\n\n//#region ----- Profile page user service -----\n\n/**\n * Loads the persisted user row for the logged-in session (audit info, display fields).\n */\n@Injectable({ providedIn: 'root' })\nexport class AXPUserProfileUserService {\n //#region ----- Services & Dependencies -----\n\n private readonly sessionService = inject(AXPSessionService);\n private readonly queryService = inject(AXPQueryService);\n\n //#endregion\n\n //#region ----- Public API -----\n\n async loadCurrentUser(): Promise<AXPUserProfileCurrentUserRecord | null> {\n const userId = this.sessionService.user?.id;\n if (!userId || !this.sessionService.isReadyForAppScopedApi) {\n return null;\n }\n\n try {\n const result = await this.queryService.fetch<\n { entity: string; id: string },\n AXPUserProfileCurrentUserRecord\n >(ENTITY_GET_BY_ID_DEFAULT, {\n entity: SECURITY_MANAGEMENT_USER_ENTITY,\n id: userId,\n });\n return runtimeQueryPayloadData(result) ?? null;\n } catch {\n return null;\n }\n }\n\n resolveJoinedAt(record: AXPUserProfileCurrentUserRecord | null): Date | string | undefined {\n if (isNil(record)) {\n return undefined;\n }\n return get(record, 'auditInfo.created.at');\n }\n\n //#endregion\n}\n\n//#endregion\n","import { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { Injectable, inject } from '@angular/core';\nimport { defaultTo } from 'lodash';\nimport { AXPUserProfilePageRegistryService } from './profile-page-registry.service';\nimport { AXPUserProfileHeaderMetaItem } from './profile-page.types';\nimport { AXPUserProfileUserService } from './profile-page-user.service';\n\n//#region ---- Header view model ----\n\nexport interface AXPUserProfileHeaderView {\n userId: string;\n displayName: string;\n username?: string;\n joinedAt?: Date | string;\n avatarUserId: string;\n /** Extra header rows contributed via hooks (username/joined are on the view root). */\n meta: AXPUserProfileHeaderMetaItem[];\n}\n\n//#endregion\n\n//#region ---- Profile page header service ----\n\n/**\n * Builds profile page header data from session and optional extended profile sources.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXPUserProfileHeaderService {\n //#region ---- Services & Dependencies ----\n\n private readonly sessionService = inject(AXPSessionService);\n private readonly registry = inject(AXPUserProfilePageRegistryService);\n private readonly userService = inject(AXPUserProfileUserService);\n\n //#endregion\n\n //#region ---- Public API ----\n\n async load(): Promise<AXPUserProfileHeaderView | null> {\n const sessionUser = this.sessionService.user;\n if (!sessionUser?.id) {\n return null;\n }\n\n const userRecord = await this.userService.loadCurrentUser();\n const hookMeta = await this.registry.loadHeaderMeta();\n\n const displayName = defaultTo(\n sessionUser.title,\n defaultTo(userRecord?.displayName, sessionUser.name),\n );\n const username = defaultTo(userRecord?.username, sessionUser.name);\n\n return {\n userId: sessionUser.id,\n displayName,\n username,\n joinedAt: this.userService.resolveJoinedAt(userRecord),\n avatarUserId: sessionUser.id,\n meta: hookMeta.sort((a, b) => defaultTo(a.priority, 100) - defaultTo(b.priority, 100)),\n };\n }\n\n //#endregion\n}\n\n//#endregion\n","\nimport {\n AXPActionMenuItem,\n AXPBackButton,\n AXPExecuteCommand,\n AXPMultiLanguageString,\n AXPRuntimeCommandResult,\n} from '@acorex-platform/framework-shared/core';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXDropdownModule } from '@acorex/components/dropdown';\nimport { AXSkeletonModule } from '@acorex/components/skeleton';\nimport { AXTabsModule, AXTabStripChangedEvent } from '@acorex/components/tabs';\nimport { AXFormatPipe } from '@acorex/core/format';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXTooltipModule } from '@acorex/components/tooltip';\nimport { AXPStickyDirective } from '@acorex-platform/framework-client/common';\n\nimport { AXPDeviceService } from '@acorex-platform/framework-client/core';\nimport { AXPCommandService } from '@acorex-platform/framework-client/runtime';\nimport {\n AXPThemeLayoutBlockComponent,\n AXPThemeLayoutListComponent,\n AXPThemeLayoutListItemComponent,\n AXPUserAvatarComponent,\n} from '@acorex-platform/framework-client/layout/components';\nimport {\n AXPPageComponentRendererDirective,\n AXPPageLayoutBase,\n AXPPageLayoutBaseComponent,\n AXPPageLayoutComponent,\n} from '@acorex-platform/framework-client/layout/views';\nimport { AsyncPipe, CommonModule } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n effect,\n inject,\n signal,\n untracked,\n ViewEncapsulation,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { ActivatedRoute, RouterModule } from '@angular/router';\nimport { distinctUntilChanged, filter } from 'rxjs';\nimport { AXMAuthCommandKeys } from '@acorex-platform/module-auth-client/contracts';\nimport { AXPUserProfileHeaderService, AXPUserProfileHeaderView } from './profile-page-header.service';\nimport { AXPUserProfilePageRegistryService } from './profile-page-registry.service';\nimport {\n PROFILE_SECTION_INSIGHTS_PATCH_METADATA_KEY,\n type AXPUserProfileSectionInsightsPatch,\n} from './profile-password-insight.util';\nimport {\n AXPUserProfileGroup,\n AXPUserProfileGroupComponentContent,\n AXPUserProfileSection,\n AXPUserProfileSectionInsight,\n AXPUserProfileSectionLayout,\n resolveDefaultUserProfileSectionAction,\n resolveUserProfileSectionContent,\n visibleUserProfileSectionActions,\n} from './profile-page.types';\n\n@Component({\n selector: 'axm-user-profile-page',\n imports: [\n CommonModule,\n AsyncPipe,\n AXFormatPipe,\n RouterModule,\n AXDecoratorModule,\n AXButtonModule,\n AXDropdownModule,\n AXSkeletonModule,\n AXTabsModule,\n AXPStickyDirective,\n AXTranslationModule,\n AXTooltipModule,\n AXPPageLayoutComponent,\n AXPThemeLayoutBlockComponent,\n AXPThemeLayoutListComponent,\n AXPThemeLayoutListItemComponent,\n AXPUserAvatarComponent,\n AXPPageComponentRendererDirective,\n ],\n templateUrl: './profile-page.component.html',\n styleUrl: './profile-page.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n {\n provide: AXPPageLayoutBase,\n useExisting: AXMUserProfilePageComponent,\n },\n ],\n host: {\n class: 'axm-user-profile-page',\n '[class.--mobile-group]': 'isMobileGroupView()',\n },\n})\nexport class AXMUserProfilePageComponent extends AXPPageLayoutBaseComponent {\n //#region ----- Services & Dependencies -----\n\n private readonly registry = inject(AXPUserProfilePageRegistryService);\n private readonly headerService = inject(AXPUserProfileHeaderService);\n private readonly commandService = inject(AXPCommandService);\n private readonly activatedRoute = inject(ActivatedRoute);\n private readonly destroyRef = inject(DestroyRef);\n protected readonly deviceService = inject(AXPDeviceService);\n\n //#endregion\n\n //#region ----- Constants -----\n\n protected readonly pageTabSkeletonPlaceholders = [1, 2, 3, 4];\n protected readonly pageListSkeletonPlaceholders = [1, 2, 3, 4];\n protected readonly sectionSkeletonPlaceholders = [1, 2, 3, 4];\n\n //#endregion\n\n //#region ----- State Signals -----\n\n protected readonly groups = signal<AXPUserProfileGroup[]>([]);\n protected readonly sections = signal<AXPUserProfileSection[]>([]);\n protected readonly header = signal<AXPUserProfileHeaderView | null>(null);\n protected readonly activeGroupId = signal<string | null>(null);\n protected readonly visitedGroupIds = signal<ReadonlySet<string>>(new Set());\n protected readonly loadedSectionGroupIds = signal<ReadonlySet<string>>(new Set());\n protected readonly isLoading = signal(true);\n\n private readonly sectionLoadInflight = new Map<string, Promise<void>>();\n\n protected readonly isCompactNav = computed(() => !this.deviceService.isLarge());\n protected readonly isMobileGroupView = computed(() => this.isCompactNav() && !!this.activeGroupId());\n protected readonly showHero = computed(() => !this.isMobileGroupView());\n protected readonly showTabs = computed(() => !this.isCompactNav() && this.groups().length > 0);\n protected readonly showGroupList = computed(() => this.isCompactNav() && !this.activeGroupId());\n protected readonly showGroupContent = computed(() => !this.isCompactNav() || !!this.activeGroupId());\n\n readonly #loadVisitedGroup = effect(() => {\n const groupId = this.activeGroupId();\n if (!groupId) {\n return;\n }\n\n untracked(() => {\n void this.ensureGroupContent(groupId);\n });\n });\n\n readonly #navChromeEffect = effect(() => {\n this.activeGroupId();\n this.deviceService.isLarge();\n untracked(() => this.recompute());\n });\n\n readonly #desktopDefaultGroupEffect = effect(() => {\n const isLarge = this.deviceService.isLarge();\n const groups = this.groups();\n const active = this.activeGroupId();\n const loading = this.isLoading();\n if (!isLarge || active || !groups.length || loading) {\n return;\n }\n\n untracked(() => {\n void this.navigateToDefaultGroup(groups, { replaceUrl: true });\n });\n });\n\n //#endregion\n\n //#region ----- Lifecycle -----\n\n override async ngOnInit(): Promise<void> {\n await super.ngOnInit();\n await this.loadPage();\n this.bindProfileIdentityUpdates();\n\n this.activatedRoute.paramMap.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {\n void this.syncGroupFromRoute();\n });\n }\n\n //#endregion\n\n //#region ----- Page Metadata -----\n\n protected override getPageTitle(): AXPMultiLanguageString {\n if (!this.isMobileGroupView()) {\n return '';\n }\n\n return this.activeGroup()?.title ?? '';\n }\n\n protected override getPageDescription(): null {\n return null;\n }\n\n protected override getPageIcon(): string | null {\n if (!this.isMobileGroupView()) {\n return null;\n }\n\n return this.activeGroup()?.icon ?? null;\n }\n\n protected override getBackButton(): AXPBackButton | null {\n if (!this.isMobileGroupView()) {\n return null;\n }\n\n return { title: '@auth:profile-page.page.title' };\n }\n\n override async onBackButtonClick(): Promise<void> {\n const appName = this.sessionService.application?.name;\n if (!appName) {\n return;\n }\n\n await this.router.navigate([appName, 'profile']);\n }\n\n //#endregion\n\n //#region ---- UI Handlers ----\n\n protected handleSelectGroup(group: AXPUserProfileGroup): void {\n this.activeGroupId.set(group.id);\n\n const appName = this.sessionService.application?.name;\n if (!appName) {\n return;\n }\n\n void this.router.navigate([appName, 'profile', this.registry.resolveGroupRoute(group)]);\n }\n\n protected handleGroupTabChanged(event: AXTabStripChangedEvent): void {\n const group =\n this.groups().find((item) => item.id === event.tab?.key) ?? this.groups()[event.index];\n if (!group || group.id === this.activeGroupId()) {\n return;\n }\n\n this.handleSelectGroup(group);\n }\n\n protected handleEditAvatar(): void {\n void this.executeCommand({\n name: AXMAuthCommandKeys.Profile.ChangePhoto,\n });\n }\n\n protected async handleActionClick(action: AXPActionMenuItem): Promise<void> {\n if (action.disabled || action.visible === false || !action.command) {\n return;\n }\n\n const result = await this.executeCommand(action.command);\n\n if (result?.success && this.isPinRelatedAction(action)) {\n await this.reloadSections();\n }\n\n if (result?.success && this.applyProfileSectionInsightsPatch(result)) {\n // Password card updated from save payload — skip User/sessions reload.\n } else if (result?.success && this.shouldReloadSecuritySections(action.command.name)) {\n await this.reloadSections();\n }\n\n if (result?.success && this.applyHealthProfileSectionPatch(result)) {\n // Medical Summary updated from save payload — skip full section reload (User/sessions/Employee).\n } else if (result?.success && this.shouldReloadHealthSections(action.command.name)) {\n await this.reloadSections();\n }\n\n if (\n result?.success &&\n action.command?.name.startsWith('HumanCapitalManagement.Profile:')\n ) {\n await this.reloadProfileHeader();\n }\n }\n\n protected visibleSectionActions(actions: AXPActionMenuItem[]) {\n return visibleUserProfileSectionActions(actions);\n }\n\n protected defaultSectionAction(actions: AXPActionMenuItem[]) {\n return resolveDefaultUserProfileSectionAction(actions);\n }\n\n protected resolveSectionContent(section: AXPUserProfileSection) {\n return resolveUserProfileSectionContent(section);\n }\n\n protected isGroupVisited(groupId: string): boolean {\n return this.visitedGroupIds().has(groupId);\n }\n\n protected isGroupPanelActive(groupId: string): boolean {\n return this.activeGroupId() === groupId;\n }\n\n protected activeGroup(): AXPUserProfileGroup | undefined {\n const groupId = this.activeGroupId();\n if (!groupId) {\n return undefined;\n }\n\n return this.groups().find((group) => group.id === groupId);\n }\n\n protected isGroupSectionsPending(group: AXPUserProfileGroup): boolean {\n return !this.groupComponentContent(group) && !this.loadedSectionGroupIds().has(group.id);\n }\n\n protected sectionsForGroup(groupId: string): AXPUserProfileSection[] {\n return this.registry.filterSectionsByGroup(this.sections(), groupId);\n }\n\n protected groupComponentContent(group: AXPUserProfileGroup): AXPUserProfileGroupComponentContent | undefined {\n if (group.content?.mode === 'component') {\n return group.content;\n }\n return undefined;\n }\n\n protected sectionLayoutVars(layout?: AXPUserProfileSectionLayout): Record<string, string | number> {\n return {\n '--section-col-span': layout?.colSpan ?? 6,\n '--section-row-span': layout?.rowSpan ?? 1,\n '--section-col-start': layout?.col ?? 'auto',\n };\n }\n\n protected hasSectionColStart(layout?: AXPUserProfileSectionLayout): boolean {\n return layout?.col != null;\n }\n\n protected hasDisplayableInsights(section: AXPUserProfileSection): boolean {\n return this.displayableInsights(section).length > 0;\n }\n\n protected displayableInsights(section: AXPUserProfileSection): AXPUserProfileSectionInsight[] {\n return (section.insights ?? []).filter((insight) => this.isDisplayableInsight(insight));\n }\n\n protected resolveInsightDate(insight: AXPUserProfileSectionInsight): Date | null {\n if (!insight.date) {\n return null;\n }\n\n return Number.isNaN(insight.date.getTime()) ? null : insight.date;\n }\n\n //#endregion\n\n //#region ---- Private Methods ----\n\n private isDisplayableInsight(insight: AXPUserProfileSectionInsight): boolean {\n if (insight.text?.trim()) {\n return true;\n }\n\n return this.resolveInsightDate(insight) !== null;\n }\n\n private async loadPage(): Promise<void> {\n this.isLoading.set(true);\n try {\n const [groups, header] = await Promise.all([\n this.registry.loadGroups(),\n this.headerService.load(),\n ]);\n\n this.groups.set(groups);\n this.header.set(header);\n await this.syncGroupFromRoute();\n const groupId = this.activeGroupId();\n if (groupId) {\n await this.ensureGroupContent(groupId);\n }\n } finally {\n this.isLoading.set(false);\n }\n }\n\n private async syncGroupFromRoute(): Promise<void> {\n const groups = this.groups();\n if (!groups.length) {\n this.activeGroupId.set(null);\n return;\n }\n\n const routeSegment = this.activatedRoute.snapshot.paramMap.get('groupId');\n const appName = this.sessionService.application?.name;\n\n if (!routeSegment) {\n if (this.deviceService.isLarge()) {\n await this.navigateToDefaultGroup(groups, { replaceUrl: true });\n } else {\n this.activeGroupId.set(null);\n }\n return;\n }\n\n const matchedGroup = this.registry.resolveGroupByRoute(groups, routeSegment);\n if (!matchedGroup) {\n if (this.deviceService.isLarge()) {\n await this.navigateToDefaultGroup(groups, { replaceUrl: true });\n } else if (appName) {\n await this.router.navigate([appName, 'profile'], { replaceUrl: true });\n } else {\n this.activeGroupId.set(null);\n }\n return;\n }\n\n const canonicalRoute = this.registry.resolveGroupRoute(matchedGroup);\n if (appName && routeSegment.toLowerCase() !== canonicalRoute.toLowerCase()) {\n await this.router.navigate([appName, 'profile', canonicalRoute], { replaceUrl: true });\n return;\n }\n\n this.activeGroupId.set(matchedGroup.id);\n }\n\n private async navigateToDefaultGroup(\n groups: AXPUserProfileGroup[],\n extras?: { replaceUrl?: boolean },\n ): Promise<void> {\n const defaultGroup = this.registry.resolveDefaultGroup(groups);\n if (!defaultGroup) {\n this.activeGroupId.set(null);\n return;\n }\n\n const appName = this.sessionService.application?.name;\n if (appName) {\n await this.router.navigate([appName, 'profile', this.registry.resolveGroupRoute(defaultGroup)], extras);\n return;\n }\n\n this.activeGroupId.set(defaultGroup.id);\n }\n\n private async reloadSections(): Promise<void> {\n const groupId = this.activeGroupId();\n if (!groupId) {\n return;\n }\n\n const loaded = await this.registry.loadSections(groupId);\n this.sections.set(this.registry.replaceGroupSections(this.sections(), loaded, groupId));\n }\n\n private async ensureGroupContent(groupId: string): Promise<void> {\n this.markGroupVisited(groupId);\n\n const inflight = this.sectionLoadInflight.get(groupId);\n if (inflight) {\n await inflight;\n return;\n }\n\n if (this.loadedSectionGroupIds().has(groupId)) {\n return;\n }\n\n const load = this.loadGroupSections(groupId).finally(() => {\n this.sectionLoadInflight.delete(groupId);\n });\n this.sectionLoadInflight.set(groupId, load);\n await load;\n }\n\n private async loadGroupSections(groupId: string): Promise<void> {\n const loaded = await this.registry.loadSections(groupId);\n this.sections.set(this.registry.replaceGroupSections(this.sections(), loaded, groupId));\n\n const next = new Set(this.loadedSectionGroupIds());\n next.add(groupId);\n this.loadedSectionGroupIds.set(next);\n }\n\n private markGroupVisited(groupId: string): void {\n const visited = this.visitedGroupIds();\n if (visited.has(groupId)) {\n return;\n }\n\n const next = new Set(visited);\n next.add(groupId);\n this.visitedGroupIds.set(next);\n }\n\n private bindProfileIdentityUpdates(): void {\n this.sessionService.user$\n .pipe(\n filter((user) => !!user?.id),\n distinctUntilChanged(\n (previous, current) =>\n previous?.title === current?.title &&\n previous?.name === current?.name,\n ),\n takeUntilDestroyed(this.destroyRef),\n )\n .subscribe(() => {\n void this.reloadProfileHeader();\n });\n }\n\n private async reloadProfileHeader(): Promise<void> {\n const header = await this.headerService.load();\n this.header.set(header);\n }\n\n private shouldReloadSecuritySections(commandName: string): boolean {\n return commandName === AXMAuthCommandKeys.Session.OpenSessions;\n }\n\n private shouldReloadHealthSections(commandName: string): boolean {\n // Only the health-profile editor changes Medical Summary insights; list popups must not reload on close.\n return commandName === 'HealthCore.Profile:EditMyHealthProfile';\n }\n\n private applyProfileSectionInsightsPatch(result: AXPRuntimeCommandResult): boolean {\n const patch = result.metadata?.[PROFILE_SECTION_INSIGHTS_PATCH_METADATA_KEY] as\n | AXPUserProfileSectionInsightsPatch\n | undefined;\n\n if (!patch?.sectionId) {\n return false;\n }\n\n const sections = this.sections();\n const index = sections.findIndex((section) => section.id === patch.sectionId);\n if (index < 0) {\n return false;\n }\n\n const insights = patch.insights ?? [];\n const nextSections = [...sections];\n nextSections[index] = {\n ...sections[index],\n insights: insights.length ? insights : undefined,\n };\n this.sections.set(nextSections);\n return true;\n }\n\n private applyHealthProfileSectionPatch(result: AXPRuntimeCommandResult): boolean {\n const patch = result.metadata?.['healthProfileSectionPatch'] as\n | {\n sectionId?: string;\n insights?: AXPUserProfileSectionInsight[];\n existingProfileId?: string | null;\n }\n | undefined;\n\n if (!patch?.sectionId) {\n return false;\n }\n\n const sections = this.sections();\n const index = sections.findIndex((section) => section.id === patch.sectionId);\n if (index < 0) {\n return false;\n }\n\n const section = sections[index];\n const insights = patch.insights ?? [];\n const nextSection: AXPUserProfileSection = {\n ...section,\n insights: insights.length ? insights : undefined,\n actions: (section.actions ?? []).map((sectionAction) => {\n if (sectionAction.command?.name !== 'HealthCore.Profile:EditMyHealthProfile') {\n return sectionAction;\n }\n\n return {\n ...sectionAction,\n command: {\n ...sectionAction.command,\n options: {\n ...(sectionAction.command.options ?? {}),\n existingProfileId: patch.existingProfileId ?? null,\n },\n },\n };\n }),\n };\n\n const nextSections = [...sections];\n nextSections[index] = nextSection;\n this.sections.set(nextSections);\n return true;\n }\n\n private isPinRelatedAction(action: AXPActionMenuItem): boolean {\n const commandName = action.command?.name;\n\n return (\n commandName === AXMAuthCommandKeys.Security.SetPinCode ||\n commandName === AXMAuthCommandKeys.Security.RemovePinCode\n );\n }\n\n private async executeCommand(\n command: AXPExecuteCommand,\n ): Promise<AXPRuntimeCommandResult | void> {\n if (this.commandService.exists(command.name)) {\n const result = await this.commandService.execute(command.name, command.options ?? {});\n return result ?? undefined;\n }\n }\n\n //#endregion\n}\n","<axp-page-layout *translate=\"let t\">\n <axp-page-content>\n @if (isLoading()) {\n <!-- ----- Profile page skeleton ----- -->\n <div class=\"__shell\" aria-hidden=\"true\">\n <section class=\"__hero-card\">\n <div class=\"__hero-header\">\n <div class=\"__hero-cover\">\n <span class=\"__hero-wave __hero-wave--primary\"></span>\n <span class=\"__hero-wave __hero-wave--soft\"></span>\n <span class=\"__hero-wave __hero-wave--light\"></span>\n </div>\n <div class=\"__hero-content\">\n <div class=\"__hero-avatar\">\n <ax-skeleton class=\"size-24 rounded-full\" [animated]=\"true\"></ax-skeleton>\n </div>\n <div class=\"__hero-details\">\n <ax-skeleton class=\"h-7 w-48 max-w-full rounded-md\" [animated]=\"true\"></ax-skeleton>\n <ax-skeleton class=\"mt-2 h-4 w-32 max-w-full rounded-md\" [animated]=\"true\"></ax-skeleton>\n </div>\n </div>\n </div>\n <!--------------------------------------------------------------->\n @if (!isCompactNav()) {\n <!-- ----- Desktop tab skeletons ----- -->\n <div class=\"__tabs __tabs-skeleton\">\n @for (item of pageTabSkeletonPlaceholders; track item) {\n <ax-skeleton class=\"h-4 w-20 rounded-md\" [animated]=\"true\"></ax-skeleton>\n }\n </div>\n }\n </section>\n <!--------------------------------------------------------------->\n @if (isCompactNav()) {\n <!-- ----- Compact group-list skeletons ----- -->\n <div class=\"__group-nav\">\n @for (item of pageListSkeletonPlaceholders; track item) {\n <div class=\"__group-nav-skeleton-row\">\n <ax-skeleton class=\"size-5 shrink-0 rounded-md\" [animated]=\"true\"></ax-skeleton>\n <ax-skeleton class=\"h-4 min-w-0 flex-1 rounded-md\" [animated]=\"true\"></ax-skeleton>\n <ax-skeleton class=\"size-4 shrink-0 rounded-md\" [animated]=\"true\"></ax-skeleton>\n </div>\n }\n </div>\n }\n <!-- ----- Desktop section-card skeletons ----- -->\n @else {\n <ng-container *ngTemplateOutlet=\"sectionCardsSkeleton\"></ng-container>\n }\n </div>\n } @else if (header(); as profileHeader) {\n <div class=\"__shell\">\n <!--->\n <!-- ----- Profile hero and desktop group tabs ----- -->\n @if (showHero()) {\n <section\n class=\"__hero-card\"\n [axpSticky]=\"'--stuck'\"\n stickyParent=\"#axp-page-layout\"\n [stickyOffset]=\"0\"\n >\n <div class=\"__hero-header\">\n <div class=\"__hero-cover\" aria-hidden=\"true\">\n <span class=\"__hero-wave __hero-wave--primary\" aria-hidden=\"true\"></span>\n <span class=\"__hero-wave __hero-wave--soft\" aria-hidden=\"true\"></span>\n <span class=\"__hero-wave __hero-wave--light\" aria-hidden=\"true\"></span>\n </div>\n\n <div class=\"__hero-content\">\n <div class=\"__hero-avatar\">\n <axp-user-avatar [size]=\"96\" [userId]=\"profileHeader.avatarUserId\"></axp-user-avatar>\n <button type=\"button\" class=\"__avatar-edit\"\n [attr.aria-label]=\"('@auth:profile-page.avatar.edit' | translate | async) ?? ''\"\n (click)=\"handleEditAvatar()\">\n <ax-icon icon=\"fa-light fa-camera\"></ax-icon>\n </button>\n </div>\n\n <div class=\"__hero-details\">\n <h2 class=\"__hero-name\">{{ profileHeader.displayName }}</h2>\n\n @if (profileHeader.username || profileHeader.joinedAt) {\n <p class=\"__hero-subtitle\">\n @if (profileHeader.username) {\n <span class=\"__hero-subtitle-item\">\n <ax-icon icon=\"fa-light fa-user\"></ax-icon>\n <span>{{ profileHeader.username }}</span>\n </span>\n }\n @if (profileHeader.username && profileHeader.joinedAt) {\n <span class=\"__hero-subtitle-separator\" aria-hidden=\"true\">·</span>\n }\n @if (profileHeader.joinedAt) {\n <span class=\"__hero-subtitle-item\">\n <ax-icon icon=\"fa-light fa-calendar\"></ax-icon>\n <span>\n {{ '@auth:profile-page.header.meta.member-since' | translate | async }}\n {{ profileHeader.joinedAt | format: 'date' : { format: 'long' } | async }}\n </span>\n </span>\n }\n </p>\n }\n\n @if (profileHeader.meta.length) {\n <ul class=\"__hero-meta\">\n @for (item of profileHeader.meta; track item.id) {\n <li class=\"__hero-meta-item\">\n @if (item.icon) {\n <ax-icon [icon]=\"item.icon\"></ax-icon>\n }\n <span class=\"__hero-meta-label\">{{ item.label | translate | async }}</span>\n <span class=\"__hero-meta-value\">{{ item.value }}</span>\n </li>\n }\n </ul>\n }\n </div>\n </div>\n </div>\n\n <!--->\n <!-- ----- Desktop group tabs ----- -->\n @if (showTabs()) {\n <ax-tabs class=\"__tabs\" [look]=\"'with-line'\" [location]=\"'bottom'\" [fitParent]=\"false\"\n (onActiveTabChanged)=\"handleGroupTabChanged($event)\">\n @for (group of groups(); track group.id) {\n <ax-tab-item [key]=\"group.id\" [text]=\"(group.title | translate | async)!\"\n [active]=\"activeGroupId() === group.id\">\n @if (group.icon) {\n <ax-prefix>\n <ax-icon [icon]=\"group.icon\"></ax-icon>\n </ax-prefix>\n }\n </ax-tab-item>\n }\n </ax-tabs>\n }\n </section>\n }\n\n <!--->\n <!-- ----- Profile area list on compact screens ----- -->\n @if (showGroupList()) {\n <axp-layout-list class=\"__group-nav\">\n @for (group of groups(); track group.id) {\n <axp-layout-list-item (click)=\"handleSelectGroup(group)\">\n <!--->\n <!-- ----- Group icon ----- -->\n @if (group.icon) {\n <axp-layout-prefix>\n <ax-icon [icon]=\"group.icon\" class=\"text-gray-500\"></ax-icon>\n </axp-layout-prefix>\n }\n <axp-layout-content>\n <a class=\"font-semibold\">{{ group.title | translate | async }}</a>\n </axp-layout-content>\n <axp-layout-suffix>\n <ax-icon icon=\"far fa-chevron-right rtl:rotate-180\" class=\"text-gray-400\"></ax-icon>\n </axp-layout-suffix>\n </axp-layout-list-item>\n }\n </axp-layout-list>\n }\n\n <ng-template #sectionCopyBody let-section=\"section\">\n @if (section.title) {\n <h3 class=\"__section-title\">{{ section.title | translate | async }}</h3>\n }\n\n @if (hasDisplayableInsights(section)) {\n <ul class=\"__section-insights\">\n @for (insight of displayableInsights(section); track insight.id) {\n <li\n class=\"__section-insight\"\n [axTooltip]=\"insight.title ? ((insight.title | translate | async) ?? '') : ''\"\n [axTooltipDisabled]=\"!insight.title\"\n axTooltipPlacement=\"top\"\n >\n <span class=\"__section-insight-icon-wrap\" aria-hidden=\"true\">\n @if (insight.icon) {\n <ax-icon [icon]=\"insight.icon\"></ax-icon>\n }\n </span>\n <span class=\"__section-insight-text\">\n @if (resolveInsightDate(insight); as insightDate) {\n @if (insight.datePrefix) {\n <span>{{ insight.datePrefix | translate | async }} · </span>\n }\n <span>{{ insightDate | format: 'timeleft' | async }}</span>\n } @else if (insight.text) {\n {{ insight.text | translate | async }}\n }\n </span>\n </li>\n }\n </ul>\n } @else if (section.description) {\n <p class=\"__section-description\">{{ section.description | translate | async }}</p>\n }\n </ng-template>\n\n <!--->\n <!-- ----- Lazy group panels: created on first visit, then shown or hidden ----- -->\n @if (showGroupContent()) {\n @for (group of groups(); track group.id) {\n @if (isGroupVisited(group.id)) {\n <div\n class=\"__group-panel\"\n [class.--inactive]=\"!isGroupPanelActive(group.id)\"\n [attr.aria-hidden]=\"!isGroupPanelActive(group.id)\"\n [attr.inert]=\"isGroupPanelActive(group.id) ? null : ''\"\n >\n @if (isGroupSectionsPending(group)) {\n <!-- ----- Section cards skeleton while group content loads ----- -->\n <ng-container *ngTemplateOutlet=\"sectionCardsSkeleton\"></ng-container>\n } @else if (groupComponentContent(group); as componentContent) {\n <!-- ----- Full-tab page component ----- -->\n <div class=\"__group-content\">\n <div axp-page-component-renderer [componentKey]=\"componentContent.componentKey\"\n [pageConfig]=\"componentContent.pageConfig ?? {}\"></div>\n </div>\n } @else {\n <!-- ----- Section cards for groups that do not replace the tab body ----- -->\n <div class=\"__sections\">\n @for (section of sectionsForGroup(group.id); track section.id) {\n @let sectionContent = resolveSectionContent(section);\n <div class=\"__section-slot\" [class.--has-col-start]=\"hasSectionColStart(section.layout)\"\n [style]=\"sectionLayoutVars(section.layout)\">\n @if (sectionContent.mode === 'component') {\n <div axp-page-component-renderer [componentKey]=\"sectionContent.componentKey\"\n [pageConfig]=\"sectionContent.pageConfig ?? {}\"></div>\n } @else {\n @let visibleActions = visibleSectionActions(sectionContent.actions);\n @let defaultAction = defaultSectionAction(sectionContent.actions);\n <article class=\"__section-card\">\n @if (defaultAction) {\n <div\n class=\"__section-card-action\"\n [class.__section-card-action--with-menu]=\"visibleActions.length > 1\"\n >\n <button\n type=\"button\"\n class=\"__section-card-hit\"\n [disabled]=\"defaultAction.disabled === true\"\n (click)=\"handleActionClick(defaultAction)\"\n >\n @if (section.icon) {\n <div class=\"__section-icon\">\n <ax-icon [icon]=\"section.icon\"></ax-icon>\n </div>\n }\n <div class=\"__section-copy\">\n <ng-container *ngTemplateOutlet=\"sectionCopyBody; context: { section: section }\"></ng-container>\n </div>\n </button>\n\n @if (visibleActions.length > 1) {\n <div class=\"__section-more-actions-wrap\" (click)=\"$event.stopPropagation()\">\n <ax-button\n class=\"__section-more-actions\"\n look=\"blank\"\n color=\"default\"\n [attr.aria-label]=\"('@auth:profile-page.page.sections.actions' | translate | async) ?? ''\"\n >\n <ax-prefix>\n <ax-icon icon=\"fa-light fa-ellipsis-vertical\"></ax-icon>\n </ax-prefix>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for (action of visibleActions; track action.name ?? action.title) {\n <ax-button-item\n [text]=\"(action.title | translate | async)!\"\n [color]=\"action.color\"\n [disabled]=\"action.disabled === true\"\n (onClick)=\"handleActionClick(action)\"\n >\n @if (action.icon) {\n <ax-prefix>\n <ax-icon [icon]=\"action.icon\"></ax-icon>\n </ax-prefix>\n }\n </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n </ax-button>\n </div>\n }\n </div>\n } @else {\n <div class=\"__section-card-action __section-card-action--static\">\n @if (section.icon) {\n <div class=\"__section-icon\">\n <ax-icon [icon]=\"section.icon\"></ax-icon>\n </div>\n }\n <div class=\"__section-copy\">\n <ng-container *ngTemplateOutlet=\"sectionCopyBody; context: { section: section }\"></ng-container>\n </div>\n </div>\n }\n </article>\n }\n </div>\n } @empty {\n <p class=\"__sections-empty\">{{ '@auth:profile-page.page.sections.empty' | translate | async }}</p>\n }\n </div>\n }\n </div>\n }\n }\n }\n </div>\n }\n <ng-template #sectionCardsSkeleton>\n <div class=\"__sections\">\n @for (item of sectionSkeletonPlaceholders; track item) {\n <div class=\"__section-slot\">\n <article class=\"__section-card\">\n <div class=\"__section-card-action __section-card-action--static\">\n <ax-skeleton class=\"size-14 shrink-0 rounded-xl\" [animated]=\"true\"></ax-skeleton>\n <div class=\"__section-copy flex flex-col gap-2\">\n <ax-skeleton class=\"h-4 w-40 max-w-full rounded-md\" [animated]=\"true\"></ax-skeleton>\n <ax-skeleton class=\"h-3 w-56 max-w-full rounded-md\" [animated]=\"true\"></ax-skeleton>\n </div>\n </div>\n </article>\n </div>\n }\n </div>\n </ng-template>\n </axp-page-content>\n</axp-page-layout>"],"names":["i1","i2","i5","i7"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA;AAEA;;AAEG;MAEU,iCAAiC,CAAA;AAD9C,IAAA,WAAA,GAAA;;AAImB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC;AAC9B,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAkF5D,IAAA;;;AA5EC,IAAA,MAAM,UAAU,GAAA;AACd,QAAA,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,QAAQ,CAA8B,wBAAwB,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;AAChH,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IACvD;IAEA,MAAM,YA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A,IAAA,EAAA,WAAA,EAAA,IAAA,EACtB,iCAAiC,yNAfjC,YAAY,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAA,IAAA,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;;2FAgCH,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBArCvC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,uBAAuB,EAAA,OAAA,EACxB;wBACP,YAAY;wBACZ,SAAS;wBACT,YAAY;wBACZ,YAAY;wBACZ,iBAAiB;wBACjB,cAAc;wBACd,gBAAgB;wBAChB,gBAAgB;wBAChB,YAAY;wBACZ,kBAAkB;wBAClB,mBAAmB;wBACnB,eAAe;wBACf,sBAAsB;wBACtB,4BAA4B;wBAC5B,2BAA2B;wBAC3B,+BAA+B;wBAC/B,sBAAsB;wBACtB,iCAAiC;AAClC,qBAAA,EAAA,eAAA,EAGgB,uBAAuB,CAAC,MAAM,iBAChC,iBAAiB,CAAC,IAAI,EAAA,SAAA,EAC1B;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAA,2BAA6B;AACzC,yBAAA;qBACF,EAAA,IAAA,EACK;AACJ,wBAAA,KAAK,EAAE,uBAAuB;AAC9B,wBAAA,wBAAwB,EAAE,qBAAqB;AAChD,qBAAA,EAAA,QAAA,EAAA,0/eAAA,EAAA,MAAA,EAAA,CAAA,0lqBAAA,CAAA,EAAA;;;"}
@@ -17,13 +17,13 @@ import { AXTranslationModule } from '@acorex/core/translation';
17
17
  import { AXValidationModule } from '@acorex/core/validation';
18
18
  import { AXPHomePageService } from '@acorex-platform/framework-client/common';
19
19
  import { AXPSessionService } from '@acorex-platform/framework-client/auth';
20
- import * as i3$1 from '@angular/common';
20
+ import * as i5$1 from '@angular/common';
21
21
  import { CommonModule } from '@angular/common';
22
22
  import * as i0 from '@angular/core';
23
23
  import { inject, ViewChild, ChangeDetectionStrategy, Component } from '@angular/core';
24
24
  import { RouterModule, Router } from '@angular/router';
25
25
  import { BehaviorSubject, firstValueFrom } from 'rxjs';
26
- import { t as AXMAuthPlatformSettingsService, D as AXMAuthenticationTypes } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-CPmffSrQ.mjs';
26
+ import { t as AXMAuthPlatformSettingsService, D as AXMAuthenticationTypes } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-CRl74b8g.mjs';
27
27
 
28
28
  const MODULES = [
29
29
  CommonModule,
@@ -132,7 +132,7 @@ class AXPRegisterPasswordComponent {
132
132
  });
133
133
  }
134
134
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPRegisterPasswordComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
135
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPRegisterPasswordComponent, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "form", first: true, predicate: AXFormComponent, descendants: true }], ngImport: i0, template: "<ng-container *translate=\"let t\">\n <div class=\"text-center mb-4\">\n <h1 class=\"font-bold text-xl mb-2\">\n {{ '@auth:signup.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:signup.hint' | translate | async }}\n </p>\n </div>\n <div class=\"w-80 lg:w-96\">\n <ax-form>\n <div class=\"flex flex-col gap-6\">\n <ax-form-field>\n <ax-label>{{\n '@auth:' + usernameLabel | translate | async\n }}</ax-label>\n <ax-text-box\n [name]=\"'username'\"\n id=\"username\"\n [autoComplete]=\"'username'\"\n [(value)]=\"username\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{ '@auth:display-name' | translate | async }}</ax-label>\n <ax-text-box\n [name]=\"'displayName'\"\n id=\"displayName\"\n [autoComplete]=\"'name'\"\n [(value)]=\"displayName\"\n >\n </ax-text-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{ '@auth:password' | translate | async }}</ax-label>\n <ax-password-box\n [name]=\"'password'\"\n id=\"password\"\n [autoComplete]=\"'new-password'\"\n [(value)]=\"password\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n <ax-validation-rule\n rule=\"regex\"\n message=\"Password must contain at least 8 characters\"\n [options]=\"{ pattern: '^.{8,}$' }\"\n >\n </ax-validation-rule>\n </ax-password-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{\n '@auth:confirm-password' | translate | async\n }}</ax-label>\n <ax-password-box\n [name]=\"'confirmPassword'\"\n id=\"confirmPassword\"\n [autoComplete]=\"'new-password'\"\n [(value)]=\"confirmPassword\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n <ax-validation-rule\n rule=\"callback\"\n [options]=\"{ validate: comparePasswordFn }\"\n ></ax-validation-rule>\n </ax-password-box>\n </ax-form-field>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-6 w-full\"\n id=\"submit-register\"\n [text]=\"'@auth:signup.submit' | translate | async\"\n (onClick)=\"handleRegisterClick()\"\n [disabled]=\"isLoading$ | async\"\n [type]=\"'submit'\"\n >\n @if (isLoading$ | async) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n </ax-form>\n <ax-button\n class=\"w-full mt-2\"\n id=\"back-to-login\"\n (onClick)=\"handleLoginOnClick()\"\n text=\"{{ '@auth:signin.title' | translate | async }}\"\n [color]=\"'default'\"\n >\n </ax-button>\n </div>\n</ng-container>\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: "directive", type: i1.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message", "disabled"] }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "component", type: i2.AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "maskPattern", "customTokens", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress", "onMaskChanged"] }, { kind: "ngmodule", type: AXPasswordBoxModule }, { kind: "component", type: i4.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", "size", "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: i3.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i5.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i2$1.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type: AXValidationModule }, { kind: "pipe", type: i3$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
135
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPRegisterPasswordComponent, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "form", first: true, predicate: AXFormComponent, descendants: true }], ngImport: i0, template: "<ng-container *translate=\"let t\">\n <div class=\"text-center mb-4\">\n <h1 class=\"font-bold text-xl mb-2\">\n {{ '@auth:signup.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:signup.hint' | translate | async }}\n </p>\n </div>\n <div class=\"w-80 lg:w-96\">\n <ax-form>\n <div class=\"flex flex-col gap-6\">\n <ax-form-field>\n <ax-label>{{\n '@auth:' + usernameLabel | translate | async\n }}</ax-label>\n <ax-text-box\n [name]=\"'username'\"\n id=\"username\"\n [autoComplete]=\"'username'\"\n [(value)]=\"username\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{ '@auth:display-name' | translate | async }}</ax-label>\n <ax-text-box\n [name]=\"'displayName'\"\n id=\"displayName\"\n [autoComplete]=\"'name'\"\n [(value)]=\"displayName\"\n >\n </ax-text-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{ '@auth:password' | translate | async }}</ax-label>\n <ax-password-box\n [name]=\"'password'\"\n id=\"password\"\n [autoComplete]=\"'new-password'\"\n [(value)]=\"password\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n <ax-validation-rule\n rule=\"regex\"\n message=\"Password must contain at least 8 characters\"\n [options]=\"{ pattern: '^.{8,}$' }\"\n >\n </ax-validation-rule>\n </ax-password-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{\n '@auth:confirm-password' | translate | async\n }}</ax-label>\n <ax-password-box\n [name]=\"'confirmPassword'\"\n id=\"confirmPassword\"\n [autoComplete]=\"'new-password'\"\n [(value)]=\"confirmPassword\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n <ax-validation-rule\n rule=\"callback\"\n [options]=\"{ validate: comparePasswordFn }\"\n ></ax-validation-rule>\n </ax-password-box>\n </ax-form-field>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-6 w-full\"\n id=\"submit-register\"\n [text]=\"'@auth:signup.submit' | translate | async\"\n (onClick)=\"handleRegisterClick()\"\n [disabled]=\"isLoading$ | async\"\n [type]=\"'submit'\"\n >\n @if (isLoading$ | async) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n </ax-form>\n <ax-button\n class=\"w-full mt-2\"\n id=\"back-to-login\"\n (onClick)=\"handleLoginOnClick()\"\n text=\"{{ '@auth:signin.title' | translate | async }}\"\n [color]=\"'default'\"\n >\n </ax-button>\n </div>\n</ng-container>\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: "directive", type: i1.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message", "disabled"] }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "component", type: i2.AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "maskPattern", "customTokens", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress", "onMaskChanged"] }, { kind: "ngmodule", type: AXPasswordBoxModule }, { kind: "component", type: i4.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: i3.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i5.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i2$1.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type: AXValidationModule }, { kind: "pipe", type: i5$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
136
136
  }
137
137
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPRegisterPasswordComponent, decorators: [{
138
138
  type: Component,
@@ -143,4 +143,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
143
143
  }] } });
144
144
 
145
145
  export { AXPRegisterPasswordComponent };
146
- //# sourceMappingURL=acorex-platform-module-auth-client-register-password.component-BtDgEnmo.mjs.map
146
+ //# sourceMappingURL=acorex-platform-module-auth-client-register-password.component-BlOn9609.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-auth-client-register-password.component-BtDgEnmo.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/register/password/register-password.component.ts","../../../../libs/modules/auth/client/src/lib/pages/register/password/register-password.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXFormComponent, 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 { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXValidationModule } from '@acorex/core/validation';\nimport { AXPHomePageService } from '@acorex-platform/framework-client/common';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { CommonModule } from '@angular/common';\nimport { Component, OnInit, ViewChild, inject, ChangeDetectionStrategy } from '@angular/core';\nimport { Router, RouterModule } from '@angular/router';\nimport { BehaviorSubject, firstValueFrom } from 'rxjs';\nimport { AXMAuthenticationTypes } from '../../../auth.config';\nimport { AXMAuthPlatformSettingsService } from '../../../auth-platform-settings.service';\n\nconst MODULES = [\n CommonModule,\n AXFormModule,\n AXTextBoxModule,\n AXPasswordBoxModule,\n AXButtonModule,\n AXLabelModule,\n AXDecoratorModule,\n AXTranslationModule,\n AXLoadingModule,\n RouterModule,\n AXValidationModule,\n];\n\n@Component({\n templateUrl: './register-password.component.html',\n changeDetection: ChangeDetectionStrategy.Eager,\n imports: [...MODULES],\n})\nexport class AXPRegisterPasswordComponent implements OnInit {\n private readonly authPlatformSettings = inject(AXMAuthPlatformSettingsService);\n private sessionService = inject(AXPSessionService);\n private homePageService = inject(AXPHomePageService);\n private toastService = inject(AXToastService);\n private router = inject(Router);\n\n @ViewChild(AXFormComponent)\n private form!: AXFormComponent;\n\n protected usernameLabel = 'username';\n protected username = '';\n protected displayName = '';\n protected password: string | null = '';\n protected confirmPassword: string | null = '';\n protected isLoading$ = new BehaviorSubject(false);\n\n protected comparePasswordFn = (): boolean => {\n return this.password === this.confirmPassword;\n };\n\n ngOnInit(): void {\n switch (this.authPlatformSettings.credentialType()) {\n case AXMAuthenticationTypes.EmailPassword:\n this.usernameLabel = 'email';\n break;\n case AXMAuthenticationTypes.MobilePassword:\n this.usernameLabel = 'mobile';\n break;\n case AXMAuthenticationTypes.UsernameEmailPassword:\n this.usernameLabel = 'username-email';\n break;\n default:\n this.usernameLabel = 'username';\n }\n }\n\n protected handleLoginOnClick(): void {\n this.router.navigate(['/auth/login']);\n }\n\n protected handleRegisterClick(): void {\n const strategyName = this.authPlatformSettings.defaultStrategyName();\n this.sessionService.setStrategy(strategyName);\n\n this.form.validate().then(async (form) => {\n if (!form.result) {\n return;\n }\n\n this.isLoading$.next(true);\n\n try {\n await this.sessionService.register({\n strategy: strategyName,\n username: this.username.trim(),\n password: this.password!,\n ...(this.displayName.trim() ? { displayName: this.displayName.trim() } : {}),\n });\n\n const isAuthenticated = await firstValueFrom(this.sessionService.isAuthenticated$);\n if (!isAuthenticated) {\n throw new Error('Registration succeeded but session was not established');\n }\n\n await this.navigateAfterAuth();\n } catch (error: unknown) {\n this.showRegisterError(error);\n } finally {\n this.isLoading$.next(false);\n }\n });\n }\n\n private async navigateAfterAuth(): Promise<void> {\n if (this.sessionService.tenant?.id == null) {\n await this.router.navigate(['/auth/account/tenant-chooser']);\n return;\n }\n\n if (this.sessionService.application?.id == null) {\n await this.router.navigate(['/auth/account/app-chooser']);\n return;\n }\n\n await this.homePageService.navigateTo();\n }\n\n private showRegisterError(error: unknown): void {\n let errorMsg = 'An error occurred during registration.';\n\n if (error && typeof error === 'object') {\n const err = error as Record<string, unknown>;\n const apiError = err['apiError'] as Record<string, unknown> | undefined;\n\n if (apiError?.['message'] && typeof apiError['message'] === 'string') {\n errorMsg = apiError['message'];\n } else if (typeof err['message'] === 'string') {\n errorMsg = err['message'];\n }\n }\n\n this.toastService.show({\n color: 'danger',\n content: errorMsg,\n timeOut: 5000,\n });\n }\n}\n","<ng-container *translate=\"let t\">\n <div class=\"text-center mb-4\">\n <h1 class=\"font-bold text-xl mb-2\">\n {{ '@auth:signup.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:signup.hint' | translate | async }}\n </p>\n </div>\n <div class=\"w-80 lg:w-96\">\n <ax-form>\n <div class=\"flex flex-col gap-6\">\n <ax-form-field>\n <ax-label>{{\n '@auth:' + usernameLabel | translate | async\n }}</ax-label>\n <ax-text-box\n [name]=\"'username'\"\n id=\"username\"\n [autoComplete]=\"'username'\"\n [(value)]=\"username\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{ '@auth:display-name' | translate | async }}</ax-label>\n <ax-text-box\n [name]=\"'displayName'\"\n id=\"displayName\"\n [autoComplete]=\"'name'\"\n [(value)]=\"displayName\"\n >\n </ax-text-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{ '@auth:password' | translate | async }}</ax-label>\n <ax-password-box\n [name]=\"'password'\"\n id=\"password\"\n [autoComplete]=\"'new-password'\"\n [(value)]=\"password\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n <ax-validation-rule\n rule=\"regex\"\n message=\"Password must contain at least 8 characters\"\n [options]=\"{ pattern: '^.{8,}$' }\"\n >\n </ax-validation-rule>\n </ax-password-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{\n '@auth:confirm-password' | translate | async\n }}</ax-label>\n <ax-password-box\n [name]=\"'confirmPassword'\"\n id=\"confirmPassword\"\n [autoComplete]=\"'new-password'\"\n [(value)]=\"confirmPassword\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n <ax-validation-rule\n rule=\"callback\"\n [options]=\"{ validate: comparePasswordFn }\"\n ></ax-validation-rule>\n </ax-password-box>\n </ax-form-field>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-6 w-full\"\n id=\"submit-register\"\n [text]=\"'@auth:signup.submit' | translate | async\"\n (onClick)=\"handleRegisterClick()\"\n [disabled]=\"isLoading$ | async\"\n [type]=\"'submit'\"\n >\n @if (isLoading$ | async) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n </ax-form>\n <ax-button\n class=\"w-full mt-2\"\n id=\"back-to-login\"\n (onClick)=\"handleLoginOnClick()\"\n text=\"{{ '@auth:signin.title' | translate | async }}\"\n [color]=\"'default'\"\n >\n </ax-button>\n </div>\n</ng-container>\n"],"names":["i4","i5","i6","i7","i8"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBA,MAAM,OAAO,GAAG;IACd,YAAY;IACZ,YAAY;IACZ,eAAe;IACf,mBAAmB;IACnB,cAAc;IACd,aAAa;IACb,iBAAiB;IACjB,mBAAmB;IACnB,eAAe;IACf,YAAY;IACZ,kBAAkB;CACnB;MAOY,4BAA4B,CAAA;AALzC,IAAA,WAAA,GAAA;AAMmB,QAAA,IAAA,CAAA,oBAAoB,GAAG,MAAM,CAAC,8BAA8B,CAAC;AACtE,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAC5C,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC;AACrC,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QAKrB,IAAA,CAAA,aAAa,GAAG,UAAU;QAC1B,IAAA,CAAA,QAAQ,GAAG,EAAE;QACb,IAAA,CAAA,WAAW,GAAG,EAAE;QAChB,IAAA,CAAA,QAAQ,GAAkB,EAAE;QAC5B,IAAA,CAAA,eAAe,GAAkB,EAAE;AACnC,QAAA,IAAA,CAAA,UAAU,GAAG,IAAI,eAAe,CAAC,KAAK,CAAC;QAEvC,IAAA,C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AC,EAAA,QAAA,EAAA,ykGAAA,EAAA;;sBASpB,SAAS;uBAAC,eAAe;;;;;"}
1
+ {"version":3,"file":"acorex-platform-module-auth-client-register-password.component-BlOn9609.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/register/password/register-password.component.ts","../../../../libs/modules/auth/client/src/lib/pages/register/password/register-password.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXFormComponent, 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 { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXValidationModule } from '@acorex/core/validation';\nimport { AXPHomePageService } from '@acorex-platform/framework-client/common';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { CommonModule } from '@angular/common';\nimport { Component, OnInit, ViewChild, inject, ChangeDetectionStrategy } from '@angular/core';\nimport { Router, RouterModule } from '@angular/router';\nimport { BehaviorSubject, firstValueFrom } from 'rxjs';\nimport { AXMAuthenticationTypes } from '../../../auth.config';\nimport { AXMAuthPlatformSettingsService } from '../../../auth-platform-settings.service';\n\nconst MODULES = [\n CommonModule,\n AXFormModule,\n AXTextBoxModule,\n AXPasswordBoxModule,\n AXButtonModule,\n AXLabelModule,\n AXDecoratorModule,\n AXTranslationModule,\n AXLoadingModule,\n RouterModule,\n AXValidationModule,\n];\n\n@Component({\n templateUrl: './register-password.component.html',\n changeDetection: ChangeDetectionStrategy.Eager,\n imports: [...MODULES],\n})\nexport class AXPRegisterPasswordComponent implements OnInit {\n private readonly authPlatformSettings = inject(AXMAuthPlatformSettingsService);\n private sessionService = inject(AXPSessionService);\n private homePageService = inject(AXPHomePageService);\n private toastService = inject(AXToastService);\n private router = inject(Router);\n\n @ViewChild(AXFormComponent)\n private form!: AXFormComponent;\n\n protected usernameLabel = 'username';\n protected username = '';\n protected displayName = '';\n protected password: string | null = '';\n protected confirmPassword: string | null = '';\n protected isLoading$ = new BehaviorSubject(false);\n\n protected comparePasswordFn = (): boolean => {\n return this.password === this.confirmPassword;\n };\n\n ngOnInit(): void {\n switch (this.authPlatformSettings.credentialType()) {\n case AXMAuthenticationTypes.EmailPassword:\n this.usernameLabel = 'email';\n break;\n case AXMAuthenticationTypes.MobilePassword:\n this.usernameLabel = 'mobile';\n break;\n case AXMAuthenticationTypes.UsernameEmailPassword:\n this.usernameLabel = 'username-email';\n break;\n default:\n this.usernameLabel = 'username';\n }\n }\n\n protected handleLoginOnClick(): void {\n this.router.navigate(['/auth/login']);\n }\n\n protected handleRegisterClick(): void {\n const strategyName = this.authPlatformSettings.defaultStrategyName();\n this.sessionService.setStrategy(strategyName);\n\n this.form.validate().then(async (form) => {\n if (!form.result) {\n return;\n }\n\n this.isLoading$.next(true);\n\n try {\n await this.sessionService.register({\n strategy: strategyName,\n username: this.username.trim(),\n password: this.password!,\n ...(this.displayName.trim() ? { displayName: this.displayName.trim() } : {}),\n });\n\n const isAuthenticated = await firstValueFrom(this.sessionService.isAuthenticated$);\n if (!isAuthenticated) {\n throw new Error('Registration succeeded but session was not established');\n }\n\n await this.navigateAfterAuth();\n } catch (error: unknown) {\n this.showRegisterError(error);\n } finally {\n this.isLoading$.next(false);\n }\n });\n }\n\n private async navigateAfterAuth(): Promise<void> {\n if (this.sessionService.tenant?.id == null) {\n await this.router.navigate(['/auth/account/tenant-chooser']);\n return;\n }\n\n if (this.sessionService.application?.id == null) {\n await this.router.navigate(['/auth/account/app-chooser']);\n return;\n }\n\n await this.homePageService.navigateTo();\n }\n\n private showRegisterError(error: unknown): void {\n let errorMsg = 'An error occurred during registration.';\n\n if (error && typeof error === 'object') {\n const err = error as Record<string, unknown>;\n const apiError = err['apiError'] as Record<string, unknown> | undefined;\n\n if (apiError?.['message'] && typeof apiError['message'] === 'string') {\n errorMsg = apiError['message'];\n } else if (typeof err['message'] === 'string') {\n errorMsg = err['message'];\n }\n }\n\n this.toastService.show({\n color: 'danger',\n content: errorMsg,\n timeOut: 5000,\n });\n }\n}\n","<ng-container *translate=\"let t\">\n <div class=\"text-center mb-4\">\n <h1 class=\"font-bold text-xl mb-2\">\n {{ '@auth:signup.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:signup.hint' | translate | async }}\n </p>\n </div>\n <div class=\"w-80 lg:w-96\">\n <ax-form>\n <div class=\"flex flex-col gap-6\">\n <ax-form-field>\n <ax-label>{{\n '@auth:' + usernameLabel | translate | async\n }}</ax-label>\n <ax-text-box\n [name]=\"'username'\"\n id=\"username\"\n [autoComplete]=\"'username'\"\n [(value)]=\"username\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{ '@auth:display-name' | translate | async }}</ax-label>\n <ax-text-box\n [name]=\"'displayName'\"\n id=\"displayName\"\n [autoComplete]=\"'name'\"\n [(value)]=\"displayName\"\n >\n </ax-text-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{ '@auth:password' | translate | async }}</ax-label>\n <ax-password-box\n [name]=\"'password'\"\n id=\"password\"\n [autoComplete]=\"'new-password'\"\n [(value)]=\"password\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n <ax-validation-rule\n rule=\"regex\"\n message=\"Password must contain at least 8 characters\"\n [options]=\"{ pattern: '^.{8,}$' }\"\n >\n </ax-validation-rule>\n </ax-password-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{\n '@auth:confirm-password' | translate | async\n }}</ax-label>\n <ax-password-box\n [name]=\"'confirmPassword'\"\n id=\"confirmPassword\"\n [autoComplete]=\"'new-password'\"\n [(value)]=\"confirmPassword\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n <ax-validation-rule\n rule=\"callback\"\n [options]=\"{ validate: comparePasswordFn }\"\n ></ax-validation-rule>\n </ax-password-box>\n </ax-form-field>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-6 w-full\"\n id=\"submit-register\"\n [text]=\"'@auth:signup.submit' | translate | async\"\n (onClick)=\"handleRegisterClick()\"\n [disabled]=\"isLoading$ | async\"\n [type]=\"'submit'\"\n >\n @if (isLoading$ | async) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n </ax-form>\n <ax-button\n class=\"w-full mt-2\"\n id=\"back-to-login\"\n (onClick)=\"handleLoginOnClick()\"\n text=\"{{ '@auth:signin.title' | translate | async }}\"\n [color]=\"'default'\"\n >\n </ax-button>\n </div>\n</ng-container>\n"],"names":["i4","i5","i6","i7","i8"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBA,MAAM,OAAO,GAAG;IACd,YAAY;IACZ,YAAY;IACZ,eAAe;IACf,mBAAmB;IACnB,cAAc;IACd,aAAa;IACb,iBAAiB;IACjB,mBAAmB;IACnB,eAAe;IACf,YAAY;IACZ,kBAAkB;CACnB;MAOY,4BAA4B,CAAA;AALzC,IAAA,WAAA,GAAA;AAMmB,QAAA,IAAA,CAAA,oBAAoB,GAAG,MAAM,CAAC,8BAA8B,CAAC;AACtE,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAC5C,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC;AACrC,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QAKrB,IAAA,CAAA,aAAa,GAAG,UAAU;QAC1B,IAAA,CAAA,QAAQ,GAAG,EAAE;QACb,IAAA,CAAA,WAAW,GAAG,EAAE;QAChB,IAAA,CAAA,QAAQ,GAAkB,EAAE;QAC5B,IAAA,CAAA,eAAe,GAAkB,EAAE;AACnC,QAAA,IAAA,CAAA,UA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AK,EAAA,OAAA,EACrC,CAAC,GAAG,OAAO,CAAC,EAAA,QAAA,EAAA,ykGAAA,EAAA;;sBASpB,SAAS;uBAAC,eAAe;;;"}
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { inject, NgModule } from '@angular/core';
3
3
  import { Router, ROUTES } from '@angular/router';
4
- import { t as AXMAuthPlatformSettingsService } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-CPmffSrQ.mjs';
4
+ import { t as AXMAuthPlatformSettingsService } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-CRl74b8g.mjs';
5
5
 
6
6
  //#region ----- Register page guard -----
7
7
  /** Blocks register when platform Sign-Up setting is disabled. */
@@ -20,12 +20,12 @@ function routesFacory() {
20
20
  {
21
21
  path: 'register',
22
22
  canActivate: [canActivateRegister],
23
- loadComponent: () => import('./acorex-platform-module-auth-client-register-password.component-BtDgEnmo.mjs').then((c) => c.AXPRegisterPasswordComponent),
23
+ loadComponent: () => import('./acorex-platform-module-auth-client-register-password.component-BlOn9609.mjs').then((c) => c.AXPRegisterPasswordComponent),
24
24
  },
25
25
  {
26
26
  path: 'result',
27
27
  loadComponent: () => {
28
- return import('./acorex-platform-module-auth-client-result.component-DWv1hmQR.mjs').then((c) => c.AXPRegisterResultComponent);
28
+ return import('./acorex-platform-module-auth-client-result.component-Bo1QkwMu.mjs').then((c) => c.AXPRegisterResultComponent);
29
29
  },
30
30
  },
31
31
  ];
@@ -59,4 +59,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
59
59
  }] });
60
60
 
61
61
  export { AXPRegisterModule };
62
- //# sourceMappingURL=acorex-platform-module-auth-client-register.module-DCWoPb0u.mjs.map
62
+ //# sourceMappingURL=acorex-platform-module-auth-client-register.module-CpoYf5uG.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-auth-client-register.module-DCWoPb0u.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/register/register.guard.ts","../../../../libs/modules/auth/client/src/lib/pages/register/register.module.ts"],"sourcesContent":["import { inject } from '@angular/core';\nimport { CanActivateFn, Router } from '@angular/router';\nimport { AXMAuthPlatformSettingsService } from '../../auth-platform-settings.service';\n\n//#region ----- Register page guard -----\n\n/** Blocks register when platform Sign-Up setting is disabled. */\nexport const canActivateRegister: CanActivateFn = () => {\n const authPlatformSettings = inject(AXMAuthPlatformSettingsService);\n const router = inject(Router);\n\n if (!authPlatformSettings.signupEnabled()) {\n return router.createUrlTree(['/auth/login']);\n }\n\n return true;\n};\n\n//#endregion\n","import { NgModule } from '@angular/core';\nimport { ROUTES, Routes } from '@angular/router';\nimport { canActivateRegister } from './register.guard';\n\nfunction routesFacory() {\n const routes: Routes = [\n {\n path: 'register',\n canActivate: [canActivateRegister],\n loadComponent: () =>\n import('./password/register-password.component').then((c) => c.AXPRegisterPasswordComponent),\n },\n {\n path: 'result',\n loadComponent: () => {\n return import('./result/result.component').then((c) => c.AXPRegisterResultComponent);\n },\n },\n ];\n return routes;\n}\n\n@NgModule({\n imports: [],\n exports: [],\n declarations: [],\n providers: [\n {\n provide: ROUTES,\n multi: true,\n useFactory: routesFacory,\n },\n ],\n})\nexport class AXPRegisterModule {}\n"],"names":[],"mappings":";;;;;AAIA;AAEA;AACO,MAAM,mBAAmB,GAAkB,MAAK;AACrD,IAAA,MAAM,oBAAoB,GAAG,MAAM,CAAC,8BAA8B,CAAC;AACnE,IAAA,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AAE7B,IAAA,IAAI,CAAC,oBAAoB,CAAC,aAAa,EAAE,EAAE;QACzC,OAAO,MAAM,CAAC,aAAa,CAAC,CAAC,aAAa,CAAC,CAAC;IAC9C;AAEA,IAAA,OAAO,IAAI;AACb,CAAC;AAED;;ACdA,SAAS,YAAY,GAAA;AACnB,IAAA,MAAM,MAAM,GAAW;AACrB,QAAA;AACE,YAAA,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,CA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auth-client-register.module-CpoYf5uG.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/register/register.guard.ts","../../../../libs/modules/auth/client/src/lib/pages/register/register.module.ts"],"sourcesContent":["import { inject } from '@angular/core';\nimport { CanActivateFn, Router } from '@angular/router';\nimport { AXMAuthPlatformSettingsService } from '../../auth-platform-settings.service';\n\n//#region ----- Register page guard -----\n\n/** Blocks register when platform Sign-Up setting is disabled. */\nexport const canActivateRegister: CanActivateFn = () => {\n const authPlatformSettings = inject(AXMAuthPlatformSettingsService);\n const router = inject(Router);\n\n if (!authPlatformSettings.signupEnabled()) {\n return router.createUrlTree(['/auth/login']);\n }\n\n return true;\n};\n\n//#endregion\n","import { NgModule } from '@angular/core';\nimport { ROUTES, Routes } from '@angular/router';\nimport { canActivateRegister } from './register.guard';\n\nfunction routesFacory() {\n const routes: Routes = [\n {\n path: 'register',\n canActivate: [canActivateRegister],\n loadComponent: () =>\n import('./password/register-password.component').then((c) => c.AXPRegisterPasswordComponent),\n },\n {\n path: 'result',\n loadComponent: () => {\n return import('./result/result.component').then((c) => c.AXPRegisterResultComponent);\n },\n },\n ];\n return routes;\n}\n\n@NgModule({\n imports: [],\n exports: [],\n declarations: [],\n providers: [\n {\n provide: ROUTES,\n multi: true,\n useFactory: routesFacory,\n },\n ],\n})\nexport class AXPRegisterModule {}\n"],"names":[],"mappings":";;;;;AAIA;AAEA;AACO,MAAM,mBAAmB,GAAkB,MAAK;AACrD,IAAA,MAAM,oBAAoB,GAAG,MAAM,CAAC,8BAA8B,CAAC;AACnE,IAAA,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AAE7B,IAAA,IAAI,CAAC,oBAAoB,CAAC,aAAa,EAAE,EAAE;QACzC,OAAO,MAAM,CAAC,aAAa,CAAC,CAAC,aAAa,CAAC,CAAC;IAC9C;AAEA,IAAA,OAAO,IAAI;AACb,CAAC;AAED;;ACdA,SAAS,YAAY,GAAA;AACnB,IAAA,MAAM,MAAM,GAAW;AACrB,Q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BAAA;AACF,iBAAA;;;"}
@@ -7,7 +7,7 @@ import { AXPEntityService } from '@acorex-platform/framework-client/layout/entit
7
7
  import * as i0 from '@angular/core';
8
8
  import { inject, Injectable } from '@angular/core';
9
9
  import { isNil, isEmpty, defaultTo, get } from 'lodash';
10
- import { j as AXPIdleLockService } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-CPmffSrQ.mjs';
10
+ import { j as AXPIdleLockService } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-CRl74b8g.mjs';
11
11
 
12
12
  //#region ---- Remove PIN code command ----
13
13
  /** Removes the current user's security PIN after confirmation. */
@@ -88,4 +88,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
88
88
  }] });
89
89
 
90
90
  export { AXPRemovePinCodeCommand };
91
- //# sourceMappingURL=acorex-platform-module-auth-client-remove-pin-code.command-DJeSHCLL.mjs.map
91
+ //# sourceMappingURL=acorex-platform-module-auth-client-remove-pin-code.command-Da7ryul6.mjs.map