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

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 (55) hide show
  1. package/fesm2022/{acorex-platform-module-auth-client-acorex-platform-module-auth-client-CYmUn-lw.mjs → acorex-platform-module-auth-client-acorex-platform-module-auth-client-CPmffSrQ.mjs} +185 -52
  2. package/fesm2022/acorex-platform-module-auth-client-acorex-platform-module-auth-client-CPmffSrQ.mjs.map +1 -0
  3. package/fesm2022/{acorex-platform-module-auth-client-app-chooser.component-BVbu-f8h.mjs → acorex-platform-module-auth-client-app-chooser.component-BfOgjNxw.mjs} +3 -3
  4. package/fesm2022/{acorex-platform-module-auth-client-app-chooser.component-BVbu-f8h.mjs.map → acorex-platform-module-auth-client-app-chooser.component-BfOgjNxw.mjs.map} +1 -1
  5. package/fesm2022/{acorex-platform-module-auth-client-change-password.command-DIM_d7RO.mjs → acorex-platform-module-auth-client-change-password.command-BcBbN5hX.mjs} +2 -2
  6. package/fesm2022/{acorex-platform-module-auth-client-change-password.command-DIM_d7RO.mjs.map → acorex-platform-module-auth-client-change-password.command-BcBbN5hX.mjs.map} +1 -1
  7. package/fesm2022/{acorex-platform-module-auth-client-change-photo.command-CYGqrJV0.mjs → acorex-platform-module-auth-client-change-photo.command-DfHUPj7p.mjs} +2 -2
  8. package/fesm2022/{acorex-platform-module-auth-client-change-photo.command-CYGqrJV0.mjs.map → acorex-platform-module-auth-client-change-photo.command-DfHUPj7p.mjs.map} +1 -1
  9. package/fesm2022/{acorex-platform-module-auth-client-get-user-activity.query-BTpibxe9.mjs → acorex-platform-module-auth-client-get-user-activity.query-D9fyLuBy.mjs} +16 -6
  10. package/fesm2022/acorex-platform-module-auth-client-get-user-activity.query-D9fyLuBy.mjs.map +1 -0
  11. package/fesm2022/{acorex-platform-module-auth-client-lock-screen.command-Br9O4b5c.mjs → acorex-platform-module-auth-client-lock-screen.command-DUZ255VK.mjs} +2 -2
  12. package/fesm2022/{acorex-platform-module-auth-client-lock-screen.command-Br9O4b5c.mjs.map → acorex-platform-module-auth-client-lock-screen.command-DUZ255VK.mjs.map} +1 -1
  13. package/fesm2022/{acorex-platform-module-auth-client-login.module-DJVL3bAF.mjs → acorex-platform-module-auth-client-login.module-uRv9Gwea.mjs} +7 -7
  14. package/fesm2022/acorex-platform-module-auth-client-login.module-uRv9Gwea.mjs.map +1 -0
  15. package/fesm2022/{acorex-platform-module-auth-client-master.layout-DZUYm22p.mjs → acorex-platform-module-auth-client-master.layout-Cu8mQN9B.mjs} +2 -2
  16. package/fesm2022/{acorex-platform-module-auth-client-master.layout-DZUYm22p.mjs.map → acorex-platform-module-auth-client-master.layout-Cu8mQN9B.mjs.map} +1 -1
  17. package/fesm2022/{acorex-platform-module-auth-client-open-sessions.command-LZKM9fgo.mjs → acorex-platform-module-auth-client-open-sessions.command-BlPxfa3v.mjs} +2 -2
  18. package/fesm2022/{acorex-platform-module-auth-client-open-sessions.command-LZKM9fgo.mjs.map → acorex-platform-module-auth-client-open-sessions.command-BlPxfa3v.mjs.map} +1 -1
  19. package/fesm2022/{acorex-platform-module-auth-client-password.component-CNKRWfuG.mjs → acorex-platform-module-auth-client-password.component-5-0kaY5J.mjs} +2 -2
  20. package/fesm2022/{acorex-platform-module-auth-client-password.component-CNKRWfuG.mjs.map → acorex-platform-module-auth-client-password.component-5-0kaY5J.mjs.map} +1 -1
  21. package/fesm2022/acorex-platform-module-auth-client-profile-activity-chart.component-kBmoYwRh.mjs +229 -0
  22. package/fesm2022/acorex-platform-module-auth-client-profile-activity-chart.component-kBmoYwRh.mjs.map +1 -0
  23. package/fesm2022/{acorex-platform-module-auth-client-profile-page-component.provider-6lNx6bKI.mjs → acorex-platform-module-auth-client-profile-page-component.provider-Bz1mdVCM.mjs} +3 -3
  24. package/fesm2022/{acorex-platform-module-auth-client-profile-page-component.provider-6lNx6bKI.mjs.map → acorex-platform-module-auth-client-profile-page-component.provider-Bz1mdVCM.mjs.map} +1 -1
  25. package/fesm2022/{acorex-platform-module-auth-client-profile-page.component-CdxseoJX.mjs → acorex-platform-module-auth-client-profile-page.component-w2SYmCyc.mjs} +7 -3
  26. package/fesm2022/acorex-platform-module-auth-client-profile-page.component-w2SYmCyc.mjs.map +1 -0
  27. package/fesm2022/{acorex-platform-module-auth-client-register-password.component-D-tBrCJv.mjs → acorex-platform-module-auth-client-register-password.component-BtDgEnmo.mjs} +2 -2
  28. package/fesm2022/{acorex-platform-module-auth-client-register-password.component-D-tBrCJv.mjs.map → acorex-platform-module-auth-client-register-password.component-BtDgEnmo.mjs.map} +1 -1
  29. package/fesm2022/{acorex-platform-module-auth-client-register.module-BrXqva0B.mjs → acorex-platform-module-auth-client-register.module-DCWoPb0u.mjs} +7 -7
  30. package/fesm2022/acorex-platform-module-auth-client-register.module-DCWoPb0u.mjs.map +1 -0
  31. package/fesm2022/{acorex-platform-module-auth-client-remove-pin-code.command-uK04-h15.mjs → acorex-platform-module-auth-client-remove-pin-code.command-DJeSHCLL.mjs} +2 -2
  32. package/fesm2022/{acorex-platform-module-auth-client-remove-pin-code.command-uK04-h15.mjs.map → acorex-platform-module-auth-client-remove-pin-code.command-DJeSHCLL.mjs.map} +1 -1
  33. package/fesm2022/{acorex-platform-module-auth-client-session-lock-overlay.component-BhsTAmVe.mjs → acorex-platform-module-auth-client-session-lock-overlay.component-3HJEmCYI.mjs} +2 -2
  34. package/fesm2022/{acorex-platform-module-auth-client-session-lock-overlay.component-BhsTAmVe.mjs.map → acorex-platform-module-auth-client-session-lock-overlay.component-3HJEmCYI.mjs.map} +1 -1
  35. package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.command-BJT7F-xz.mjs → acorex-platform-module-auth-client-set-pin-code.command-C2kCGuQW.mjs} +3 -3
  36. package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.command-BJT7F-xz.mjs.map → acorex-platform-module-auth-client-set-pin-code.command-C2kCGuQW.mjs.map} +1 -1
  37. package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.component-Cq4skm_3.mjs → acorex-platform-module-auth-client-set-pin-code.component-Dpdgw4KT.mjs} +2 -2
  38. package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.component-Cq4skm_3.mjs.map → acorex-platform-module-auth-client-set-pin-code.component-Dpdgw4KT.mjs.map} +1 -1
  39. package/fesm2022/{acorex-platform-module-auth-client-tenant-chooser.component-CHmg7D5H.mjs → acorex-platform-module-auth-client-tenant-chooser.component-1Kv-LGZc.mjs} +2 -2
  40. package/fesm2022/{acorex-platform-module-auth-client-tenant-chooser.component-CHmg7D5H.mjs.map → acorex-platform-module-auth-client-tenant-chooser.component-1Kv-LGZc.mjs.map} +1 -1
  41. package/fesm2022/{acorex-platform-module-auth-client-two-factor.module-_jYo6xXr.mjs → acorex-platform-module-auth-client-two-factor.module-BnH72Bob.mjs} +5 -5
  42. package/fesm2022/acorex-platform-module-auth-client-two-factor.module-BnH72Bob.mjs.map +1 -0
  43. package/fesm2022/{acorex-platform-module-auth-client-view-login-history.command-ovj5rdHL.mjs → acorex-platform-module-auth-client-view-login-history.command-C_T4l61M.mjs} +2 -5
  44. package/fesm2022/{acorex-platform-module-auth-client-view-login-history.command-ovj5rdHL.mjs.map → acorex-platform-module-auth-client-view-login-history.command-C_T4l61M.mjs.map} +1 -1
  45. package/fesm2022/acorex-platform-module-auth-client.mjs +1 -1
  46. package/package.json +2 -2
  47. package/types/acorex-platform-module-auth-client.d.ts +37 -7
  48. package/fesm2022/acorex-platform-module-auth-client-acorex-platform-module-auth-client-CYmUn-lw.mjs.map +0 -1
  49. package/fesm2022/acorex-platform-module-auth-client-get-user-activity.query-BTpibxe9.mjs.map +0 -1
  50. package/fesm2022/acorex-platform-module-auth-client-login.module-DJVL3bAF.mjs.map +0 -1
  51. package/fesm2022/acorex-platform-module-auth-client-profile-activity-chart.component-CtSrYARX.mjs +0 -150
  52. package/fesm2022/acorex-platform-module-auth-client-profile-activity-chart.component-CtSrYARX.mjs.map +0 -1
  53. package/fesm2022/acorex-platform-module-auth-client-profile-page.component-CdxseoJX.mjs.map +0 -1
  54. package/fesm2022/acorex-platform-module-auth-client-register.module-BrXqva0B.mjs.map +0 -1
  55. package/fesm2022/acorex-platform-module-auth-client-two-factor.module-_jYo6xXr.mjs.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-module-auth-client-get-user-activity.query-BTpibxe9.mjs","sources":["../../../../libs/modules/auth/client/src/lib/features/queries/get-user-activity.query.ts"],"sourcesContent":["import {\n runtimeQueryFailure,\n runtimeQuerySuccessObject,\n} from '@acorex-platform/framework-shared/core';\nimport type { AXPQuery, AXPQueryFetchResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { AXDataSourceFilterOption } from '@acorex/cdk/common';\nimport {\n AXMSecurityManagementDeviceSessionsEntityModel,\n RootConfig as SecurityManagementRootConfig,\n} from '@acorex-platform/module-security-management-client/contracts';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\n\nimport { Injectable, inject } from '@angular/core';\nimport { isEmpty } from 'lodash';\n\nimport {\n AXPUserActivityDataSourceItem,\n AXPUserActivityLoadParams,\n} from '../../shared/datasources/user-activity/user-activity.types';\nimport {\n buildUserActivityDataSourceItem,\n resolveDefaultUserActivityDateRange,\n} from '../../shared/datasources/user-activity/user-activity.utils';\n\n//#region ---- Types ----\n\nexport interface AXMGetUserActivityQueryInput {\n userId: string;\n startDate?: string | Date;\n endDate?: string | Date;\n}\n\n//#endregion\n\n//#region ---- Helpers ----\n\nfunction coerceDate(value: string | Date | undefined, fallback: Date): Date {\n if (value instanceof Date && !Number.isNaN(value.getTime())) {\n return value;\n }\n if (typeof value === 'string' && value.trim()) {\n const parsed = new Date(value);\n if (!Number.isNaN(parsed.getTime())) {\n return parsed;\n }\n }\n return fallback;\n}\n\n//#endregion\n\n//#region ---- Query ----\n\n/**\n * User activity heatmap — replaces the `auth-user-activity` DI data source.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMGetUserActivityQuery\n implements AXPQuery<AXMGetUserActivityQueryInput, AXPUserActivityDataSourceItem | null>\n{\n //#region ---- Services & Dependencies ----\n\n private readonly entityService = inject(AXPEntityService);\n\n //#endregion\n\n //#region ---- Query Execution ----\n\n async fetch(\n input?: AXMGetUserActivityQueryInput | null,\n ): AXPQueryFetchResultPromise<AXPUserActivityDataSourceItem | null> {\n try {\n if (isEmpty(input?.userId)) {\n return runtimeQuerySuccessObject(null);\n }\n\n const defaultRange = resolveDefaultUserActivityDateRange();\n const params: AXPUserActivityLoadParams = {\n userId: input!.userId,\n startDate: coerceDate(input?.startDate, defaultRange.startDate),\n endDate: coerceDate(input?.endDate, defaultRange.endDate),\n };\n\n const sessions = await this.loadUserSessions(params.userId);\n const item = buildUserActivityDataSourceItem(params, sessions);\n return runtimeQuerySuccessObject(item);\n } catch (error) {\n return runtimeQueryFailure(\n error instanceof Error ? error.message : 'Unknown error occurred',\n );\n }\n }\n\n //#endregion\n\n //#region ---- Private Methods ----\n\n private async loadUserSessions(\n userId: string,\n ): Promise<AXMSecurityManagementDeviceSessionsEntityModel[]> {\n const response = await this.entityService\n .withEntity(\n SecurityManagementRootConfig.module.name,\n SecurityManagementRootConfig.entities.deviceSessions.name,\n )\n .data<string, AXMSecurityManagementDeviceSessionsEntityModel>()\n .query({\n skip: 0,\n take: 1000,\n filter: {\n field: 'userId',\n operator: { type: 'equal' },\n value: userId,\n } as AXDataSourceFilterOption,\n });\n\n return response.items ?? [];\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":["SecurityManagementRootConfig"],"mappings":";;;;;;;;AAgCA;AAEA;AAEA,SAAS,UAAU,CAAC,KAAgC,EAAE,QAAc,EAAA;AAClE,IAAA,IAAI,KAAK,YAAY,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,EAAE;AAC3D,QAAA,OAAO,KAAK;IACd;IACA,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAA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AAC;AACzB,aAAA,UAAU,CACTA,UAA4B,CAAC,MAAM,CAAC,IAAI,EACxCA,UAA4B,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI;AAE1D,aAAA,IAAI;AACJ,aAAA,KAAK,CAAC;AACL,YAAA,IAAI,EAAE,CAAC;AACP,YAAA,IAAI,EAAE,IAAI;AACV,YAAA,MAAM,EAAE;AACN,gBAAA,KAAK,EAAE,QAAQ;AACf,gBAAA,QAAQ,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;AAC3B,gBAAA,KAAK,EAAE,MAAM;AACc,aAAA;AAC9B,SAAA,CAAC;AAEJ,QAAA,OAAO,QAAQ,CAAC,KAAK,IAAI,EAAE;IAC7B;8GA5DW,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAvB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,cADV,MAAM,EAAA,CAAA,CAAA;;2FACnB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBADnC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-module-auth-client-login.module-DJVL3bAF.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/login/login.module.ts"],"sourcesContent":["import { NgModule, inject } from '@angular/core';\nimport { ROUTES, RouterModule, Routes } from '@angular/router';\nimport { AXM_LOGIN_GUARD_TOKEN } from '../../auth.config';\n\nfunction routesFacory() {\n const loginGuard = inject(AXM_LOGIN_GUARD_TOKEN);\n const routes: Routes = [\n {\n path: 'login',\n canActivate: [loginGuard],\n loadComponent: () =>\n import('./password/password.component').then((c) => c.AXPLoginPasswordComponent),\n },\n ];\n return routes;\n}\n\n@NgModule({\n imports: [RouterModule],\n exports: [],\n providers: [\n {\n provide: ROUTES,\n multi: true,\n useFactory: routesFacory,\n },\n ],\n})\nexport class AXPSignInModule {}\n"],"names":[],"mappings":";;;;;AAIA,SAAS,YAAY,GAAA;AACnB,IAAA,MAAM,UAAU,GAAG,MAAM,CAAC,qBAAqB,CAAC;AAChD,IAAA,MAAM,MAAM,GAAW;AACrB,QAAA;AACE,YAAA,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,CAAC,UAAU,CAAC;AACzB,YAAA,aAAa,EAAE,MACb,OAAO,sEAA+B,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,yBAAyB,CAAC;AACnF,SAAA;KACF;AACD,IAAA,OAAO,MAAM;AACf;MAaa,eAAe,CAAA;8GAAf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAf,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,YAVhB,YAAY,CAAA,EAAA,CAAA,CAAA;AAUX,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,EAAA,SAAA,EARf;AACT,YAAA;AACE,gBAAA,OAAO,EAAE,MAAM;AACf,gBAAA,KAAK,EAAE,IAAI;AACX,gBAAA,UAAU,EAAE,YAAY;AACzB,aAAA;AACF,SAAA,EAAA,OAAA,EAAA,CARS,YAAY,CAAA,EAAA,CAAA,CAAA;;2FAUX,eAAe,EAAA,UAAA,EAAA,CAAA;kBAX3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;AACvB,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,SAAS,EAAE;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,MAAM;AACf,4BAAA,KAAK,EAAE,IAAI;AACX,4BAAA,UAAU,EAAE,YAAY;AACzB,yBAAA;AACF,qBAAA;AACF,iBAAA;;;;;"}
@@ -1,150 +0,0 @@
1
- import { AXPQueryService } from '@acorex-platform/framework-client/runtime';
2
- import { runtimeQueryObjectData } from '@acorex-platform/framework-shared/core';
3
- import * as i3 from '@acorex/components/decorators';
4
- import { AXDecoratorModule } from '@acorex/components/decorators';
5
- import * as i5 from '@acorex/core/translation';
6
- import { AXTranslationModule } from '@acorex/core/translation';
7
- import { AXPPageLayoutBaseComponent, AXPPageLayoutBase } from '@acorex-platform/framework-client/layout/views';
8
- import * as i3$1 from '@angular/common';
9
- import { CommonModule, AsyncPipe } from '@angular/common';
10
- import * as i0 from '@angular/core';
11
- import { input, inject, signal, computed, effect, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
12
- import { isEmpty } from 'lodash';
13
- import { g as resolveDefaultUserActivityDateRange, y as formatCompactActivityCount } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-CYmUn-lw.mjs';
14
-
15
- //#endregion
16
- //#region ---- Constants ----
17
- const DEFAULT_USER_ACTIVITY_QUERY_KEY = 'Auth:GetUserActivity';
18
- //#endregion
19
- //#region ---- Component ----
20
- /** Contribution-style activity heatmap for the profile Activity tab. */
21
- class AXMProfileActivityChartComponent extends AXPPageLayoutBaseComponent {
22
- constructor() {
23
- super(...arguments);
24
- //#region ---- Inputs ----
25
- this.rootContext = input({}, /* @ts-ignore */
26
- ...(ngDevMode ? [{ debugName: "rootContext" }] : /* istanbul ignore next */ []));
27
- this.pageConfig = input(/* @ts-ignore */
28
- ...(ngDevMode ? [undefined, { debugName: "pageConfig" }] : /* istanbul ignore next */ []));
29
- this.options = input({}, /* @ts-ignore */
30
- ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
31
- //#endregion
32
- //#region ---- Services & Dependencies ----
33
- this.queryService = inject(AXPQueryService);
34
- //#endregion
35
- //#region ---- State ----
36
- this.weeks = signal([], /* @ts-ignore */
37
- ...(ngDevMode ? [{ debugName: "weeks" }] : /* istanbul ignore next */ []));
38
- this.stats = signal({
39
- longestStreak: 0,
40
- avgPerDay: 0,
41
- avgPerWeek: 0,
42
- total: 0,
43
- }, /* @ts-ignore */
44
- ...(ngDevMode ? [{ debugName: "stats" }] : /* istanbul ignore next */ []));
45
- this.isLoading = signal(true, /* @ts-ignore */
46
- ...(ngDevMode ? [{ debugName: "isLoading" }] : /* istanbul ignore next */ []));
47
- this.weekdayLabels = ['M', 'W', 'F'];
48
- this.intensityLevels = [0, 1, 2, 3, 4];
49
- //#endregion
50
- //#region ---- Derived state ----
51
- this.queryKey = computed(() => this.options()['queryKey'] ?? DEFAULT_USER_ACTIVITY_QUERY_KEY, /* @ts-ignore */
52
- ...(ngDevMode ? [{ debugName: "queryKey" }] : /* istanbul ignore next */ []));
53
- this.monthLabels = computed(() => {
54
- const labels = [];
55
- let lastMonth = -1;
56
- this.weeks().forEach((week, weekIndex) => {
57
- const firstDay = week.days[0];
58
- const month = firstDay.date.getMonth();
59
- if (month !== lastMonth) {
60
- labels.push({
61
- key: `${firstDay.date.getFullYear()}-${month}`,
62
- label: firstDay.date.toLocaleString('en-US', { month: 'short' }),
63
- weekIndex,
64
- });
65
- lastMonth = month;
66
- }
67
- });
68
- return labels;
69
- }, /* @ts-ignore */
70
- ...(ngDevMode ? [{ debugName: "monthLabels" }] : /* istanbul ignore next */ []));
71
- //#endregion
72
- //#region ---- Effects ----
73
- this.#loadActivityEffect = effect(() => {
74
- const userId = this.sessionService.user?.id;
75
- const queryKey = this.queryKey();
76
- void this.loadActivity(userId, queryKey);
77
- }, /* @ts-ignore */
78
- ...(ngDevMode ? [{ debugName: "#loadActivityEffect" }] : /* istanbul ignore next */ []));
79
- }
80
- //#endregion
81
- //#region ---- Effects ----
82
- #loadActivityEffect;
83
- //#endregion
84
- //#region ---- Data loading ----
85
- async loadActivity(userId, queryKey) {
86
- this.isLoading.set(true);
87
- try {
88
- if (isEmpty(userId)) {
89
- this.weeks.set([]);
90
- this.stats.set({ longestStreak: 0, avgPerDay: 0, avgPerWeek: 0, total: 0 });
91
- return;
92
- }
93
- const { startDate, endDate } = resolveDefaultUserActivityDateRange();
94
- const result = await this.queryService.fetch(queryKey, { userId: userId, startDate, endDate });
95
- const item = runtimeQueryObjectData(result);
96
- if (!item) {
97
- this.weeks.set([]);
98
- this.stats.set({ longestStreak: 0, avgPerDay: 0, avgPerWeek: 0, total: 0 });
99
- return;
100
- }
101
- this.weeks.set(item.weeks.map((week) => ({
102
- days: week.days.map((day) => ({
103
- date: new Date(day.date),
104
- count: day.count,
105
- level: day.level,
106
- })),
107
- })));
108
- this.stats.set(item.stats);
109
- }
110
- finally {
111
- this.isLoading.set(false);
112
- }
113
- }
114
- //#endregion
115
- //#region ---- UI helpers ----
116
- formatCount(value) {
117
- return formatCompactActivityCount(value);
118
- }
119
- weekdayRowIndex(label) {
120
- if (label === 'M') {
121
- return 1;
122
- }
123
- if (label === 'W') {
124
- return 3;
125
- }
126
- return 5;
127
- }
128
- cellTitle(day) {
129
- return `${day.date.toLocaleDateString()} — ${day.count}`;
130
- }
131
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMProfileActivityChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
132
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXMProfileActivityChartComponent, isStandalone: true, selector: "axm-profile-activity-chart", inputs: { rootContext: { classPropertyName: "rootContext", publicName: "rootContext", isSignal: true, isRequired: false, transformFunction: null }, pageConfig: { classPropertyName: "pageConfig", publicName: "pageConfig", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "axm-profile-activity-chart" }, providers: [
133
- {
134
- provide: AXPPageLayoutBase,
135
- useExisting: AXMProfileActivityChartComponent,
136
- },
137
- ], usesInheritance: true, ngImport: i0, template: "<div class=\"__panel\" *translate=\"let t\">\n <header class=\"__header\">\n <div class=\"__title-row\">\n <h3 class=\"__title\">{{ '@auth:profile-page.components.activity-chart.title' | translate | async }}</h3>\n <ax-icon icon=\"fa-light fa-circle-info\" class=\"__info-icon\"></ax-icon>\n </div>\n <span class=\"__context\">{{ '@auth:profile-page.components.activity-chart.context' | translate | async }}</span>\n </header>\n\n <dl class=\"__stats\">\n <div class=\"__stat\">\n <dt>{{ '@auth:profile-page.components.activity-chart.stats.longest-streak' | translate | async }}</dt>\n <dd>\n <strong>{{ stats().longestStreak }}</strong>\n {{ '@auth:profile-page.components.activity-chart.stats.days' | translate | async }}\n </dd>\n </div>\n <div class=\"__stat\">\n <dt>{{ '@auth:profile-page.components.activity-chart.stats.avg-day' | translate | async }}</dt>\n <dd>{{ formatCount(stats().avgPerDay) }}</dd>\n </div>\n <div class=\"__stat\">\n <dt>{{ '@auth:profile-page.components.activity-chart.stats.avg-week' | translate | async }}</dt>\n <dd>{{ formatCount(stats().avgPerWeek) }}</dd>\n </div>\n <div class=\"__stat\">\n <dt>{{ '@auth:profile-page.components.activity-chart.stats.total' | translate | async }}</dt>\n <dd>{{ formatCount(stats().total) }}</dd>\n </div>\n </dl>\n\n <div class=\"__heatmap-wrap\">\n <div class=\"__month-labels\" aria-hidden=\"true\">\n @for (month of monthLabels(); track month.key) {\n <span class=\"__month-label\" [style.grid-column-start]=\"month.weekIndex + 2\">{{ month.label }}</span>\n }\n </div>\n\n <div class=\"__heatmap\">\n <div class=\"__weekday-labels\" aria-hidden=\"true\">\n @for (label of weekdayLabels; track label) {\n <span class=\"__weekday-label\" [style.grid-row]=\"weekdayRowIndex(label)\">{{ label }}</span>\n }\n </div>\n\n <div class=\"__grid\" role=\"img\" [attr.aria-label]=\"'@auth:profile-page.components.activity-chart.aria-label' | translate | async\">\n @for (week of weeks(); track $index) {\n @for (day of week.days; track day.date.getTime()) {\n <span\n class=\"__cell\"\n [class.--level-0]=\"day.level === 0\"\n [class.--level-1]=\"day.level === 1\"\n [class.--level-2]=\"day.level === 2\"\n [class.--level-3]=\"day.level === 3\"\n [class.--level-4]=\"day.level === 4\"\n [attr.title]=\"cellTitle(day)\"\n ></span>\n }\n }\n </div>\n </div>\n </div>\n\n <footer class=\"__legend\" aria-hidden=\"true\">\n <span class=\"__legend-label\">{{ '@auth:profile-page.components.activity-chart.legend.less' | translate | async }}</span>\n @for (level of intensityLevels; track level) {\n <span class=\"__legend-cell\" [class]=\"'--level-' + level\"></span>\n }\n <span class=\"__legend-label\">{{ '@auth:profile-page.components.activity-chart.legend.more' | translate | async }}</span>\n </footer>\n</div>\n", styles: ["@layer properties;.axm-profile-activity-chart{display:block;width:100%}.axm-profile-activity-chart .__panel{width:100%;border-radius:var(--radius-2xl, 1rem);border-style:var(--tw-border-style);border-width:1px;background-color:var(--color-lightest);color:var(--color-on-lightest);border-color:var(--color-border-lightest);padding:calc(var(--spacing, .25rem) * 6);--tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, rgb(0 0 0 / .1)), 0 2px 4px -2px var(--tw-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:rgb(var(--ax-sys-color-border-lightest-surface));color:rgb(var(--ax-sys-color-on-lightest-surface))}.axm-profile-activity-chart .__header{margin-bottom:calc(var(--spacing, .25rem) * 5);display:flex;align-items:flex-start;justify-content:space-between;gap:calc(var(--spacing, .25rem) * 4)}.axm-profile-activity-chart .__title-row{display:inline-flex;align-items:center;gap:calc(var(--spacing, .25rem) * 2)}.axm-profile-activity-chart .__title{margin:0;font-size:var(--text-lg, 1.125rem);line-height:var(--tw-leading, var(--text-lg--line-height, calc(1.75 / 1.125)));--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600);color:rgb(var(--ax-sys-color-on-lightest-surface))}.axm-profile-activity-chart .__info-icon{opacity:50%;color:rgb(var(--ax-sys-color-on-light-surface))}.axm-profile-activity-chart .__context{font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));color:rgb(var(--ax-sys-color-on-light-surface))}.axm-profile-activity-chart .__stats{margin-bottom:calc(var(--spacing, .25rem) * 6);display:grid;gap:calc(var(--spacing, .25rem) * 4);grid-template-columns:repeat(2,minmax(0,1fr))}.axm-profile-activity-chart .__stat{min-width:0px}.axm-profile-activity-chart .__stat dt{margin-bottom:var(--spacing, .25rem);font-size:var(--text-xs, .75rem);line-height:var(--tw-leading, var(--text-xs--line-height, calc(1 / .75)));color:rgb(var(--ax-sys-color-on-light-surface))}.axm-profile-activity-chart .__stat dd{margin:0;font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));--tw-font-weight: var(--font-weight-medium, 500);font-weight:var(--font-weight-medium, 500);color:rgb(var(--ax-sys-color-on-lightest-surface))}.axm-profile-activity-chart .__stat dd strong{--tw-font-weight: var(--font-weight-bold, 700);font-weight:var(--font-weight-bold, 700)}.axm-profile-activity-chart .__heatmap-wrap{width:100%;overflow-x:auto;padding-bottom:calc(var(--spacing, .25rem) * 2)}.axm-profile-activity-chart .__month-labels{margin-bottom:calc(var(--spacing, .25rem) * 2);display:grid;width:100%;gap:var(--spacing, .25rem);grid-template-columns:1.75rem repeat(53,minmax(0,1fr))}.axm-profile-activity-chart .__month-label{font-size:var(--text-xs, .75rem);line-height:var(--tw-leading, var(--text-xs--line-height, calc(1 / .75)));color:rgb(var(--ax-sys-color-on-light-surface))}.axm-profile-activity-chart .__heatmap{display:grid;width:100%;gap:calc(var(--spacing, .25rem) * 2);grid-template-columns:1.75rem 1fr;align-items:stretch}.axm-profile-activity-chart .__weekday-labels{display:grid;gap:var(--spacing, .25rem);align-self:stretch;grid-template-rows:repeat(7,1fr)}.axm-profile-activity-chart .__weekday-label{display:flex;align-items:center;font-size:var(--text-xs, .75rem);line-height:var(--tw-leading, var(--text-xs--line-height, calc(1 / .75)));color:rgb(var(--ax-sys-color-on-light-surface))}.axm-profile-activity-chart .__grid{display:grid;width:100%;gap:var(--spacing, .25rem);grid-template-rows:repeat(7,auto);grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}.axm-profile-activity-chart .__cell{width:100%;border-radius:var(--radius-sm, .25rem);aspect-ratio:1}.axm-profile-activity-chart .__cell.--level-0{background:rgb(var(--ax-sys-color-dark-surface))}.axm-profile-activity-chart .__cell.--level-1{background:rgb(var(--ax-sys-color-primary-200))}.axm-profile-activity-chart .__cell.--level-2{background:rgb(var(--ax-sys-color-primary-400))}.axm-profile-activity-chart .__cell.--level-3{background:rgb(var(--ax-sys-color-primary-600))}.axm-profile-activity-chart .__cell.--level-4{background:rgb(var(--ax-sys-color-primary-800))}.axm-profile-activity-chart .__legend{margin-top:calc(var(--spacing, .25rem) * 4);display:flex;align-items:center;gap:calc(var(--spacing, .25rem) * 1.5)}.axm-profile-activity-chart .__legend-label{font-size:var(--text-xs, .75rem);line-height:var(--tw-leading, var(--text-xs--line-height, calc(1 / .75)));color:rgb(var(--ax-sys-color-on-light-surface))}.axm-profile-activity-chart .__legend-cell{width:calc(var(--spacing, .25rem) * 3);height:calc(var(--spacing, .25rem) * 3);border-radius:var(--radius-sm, .25rem)}.axm-profile-activity-chart .__legend-cell.--level-0{background:rgb(var(--ax-sys-color-dark-surface))}.axm-profile-activity-chart .__legend-cell.--level-1{background:rgb(var(--ax-sys-color-primary-200))}.axm-profile-activity-chart .__legend-cell.--level-2{background:rgb(var(--ax-sys-color-primary-400))}.axm-profile-activity-chart .__legend-cell.--level-3{background:rgb(var(--ax-sys-color-primary-600))}.axm-profile-activity-chart .__legend-cell.--level-4{background:rgb(var(--ax-sys-color-primary-800))}@media(min-width:768px){.axm-profile-activity-chart .__stats{grid-template-columns:repeat(4,minmax(0,1fr))}}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000;--tw-font-weight: initial}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i5.AXTranslatorDirective, selector: "[translate]" }, { kind: "pipe", type: i3$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
138
- }
139
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMProfileActivityChartComponent, decorators: [{
140
- type: Component,
141
- args: [{ selector: 'axm-profile-activity-chart', imports: [CommonModule, AsyncPipe, AXDecoratorModule, AXTranslationModule], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { class: 'axm-profile-activity-chart' }, providers: [
142
- {
143
- provide: AXPPageLayoutBase,
144
- useExisting: AXMProfileActivityChartComponent,
145
- },
146
- ], template: "<div class=\"__panel\" *translate=\"let t\">\n <header class=\"__header\">\n <div class=\"__title-row\">\n <h3 class=\"__title\">{{ '@auth:profile-page.components.activity-chart.title' | translate | async }}</h3>\n <ax-icon icon=\"fa-light fa-circle-info\" class=\"__info-icon\"></ax-icon>\n </div>\n <span class=\"__context\">{{ '@auth:profile-page.components.activity-chart.context' | translate | async }}</span>\n </header>\n\n <dl class=\"__stats\">\n <div class=\"__stat\">\n <dt>{{ '@auth:profile-page.components.activity-chart.stats.longest-streak' | translate | async }}</dt>\n <dd>\n <strong>{{ stats().longestStreak }}</strong>\n {{ '@auth:profile-page.components.activity-chart.stats.days' | translate | async }}\n </dd>\n </div>\n <div class=\"__stat\">\n <dt>{{ '@auth:profile-page.components.activity-chart.stats.avg-day' | translate | async }}</dt>\n <dd>{{ formatCount(stats().avgPerDay) }}</dd>\n </div>\n <div class=\"__stat\">\n <dt>{{ '@auth:profile-page.components.activity-chart.stats.avg-week' | translate | async }}</dt>\n <dd>{{ formatCount(stats().avgPerWeek) }}</dd>\n </div>\n <div class=\"__stat\">\n <dt>{{ '@auth:profile-page.components.activity-chart.stats.total' | translate | async }}</dt>\n <dd>{{ formatCount(stats().total) }}</dd>\n </div>\n </dl>\n\n <div class=\"__heatmap-wrap\">\n <div class=\"__month-labels\" aria-hidden=\"true\">\n @for (month of monthLabels(); track month.key) {\n <span class=\"__month-label\" [style.grid-column-start]=\"month.weekIndex + 2\">{{ month.label }}</span>\n }\n </div>\n\n <div class=\"__heatmap\">\n <div class=\"__weekday-labels\" aria-hidden=\"true\">\n @for (label of weekdayLabels; track label) {\n <span class=\"__weekday-label\" [style.grid-row]=\"weekdayRowIndex(label)\">{{ label }}</span>\n }\n </div>\n\n <div class=\"__grid\" role=\"img\" [attr.aria-label]=\"'@auth:profile-page.components.activity-chart.aria-label' | translate | async\">\n @for (week of weeks(); track $index) {\n @for (day of week.days; track day.date.getTime()) {\n <span\n class=\"__cell\"\n [class.--level-0]=\"day.level === 0\"\n [class.--level-1]=\"day.level === 1\"\n [class.--level-2]=\"day.level === 2\"\n [class.--level-3]=\"day.level === 3\"\n [class.--level-4]=\"day.level === 4\"\n [attr.title]=\"cellTitle(day)\"\n ></span>\n }\n }\n </div>\n </div>\n </div>\n\n <footer class=\"__legend\" aria-hidden=\"true\">\n <span class=\"__legend-label\">{{ '@auth:profile-page.components.activity-chart.legend.less' | translate | async }}</span>\n @for (level of intensityLevels; track level) {\n <span class=\"__legend-cell\" [class]=\"'--level-' + level\"></span>\n }\n <span class=\"__legend-label\">{{ '@auth:profile-page.components.activity-chart.legend.more' | translate | async }}</span>\n </footer>\n</div>\n", styles: ["@layer properties;.axm-profile-activity-chart{display:block;width:100%}.axm-profile-activity-chart .__panel{width:100%;border-radius:var(--radius-2xl, 1rem);border-style:var(--tw-border-style);border-width:1px;background-color:var(--color-lightest);color:var(--color-on-lightest);border-color:var(--color-border-lightest);padding:calc(var(--spacing, .25rem) * 6);--tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, rgb(0 0 0 / .1)), 0 2px 4px -2px var(--tw-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:rgb(var(--ax-sys-color-border-lightest-surface));color:rgb(var(--ax-sys-color-on-lightest-surface))}.axm-profile-activity-chart .__header{margin-bottom:calc(var(--spacing, .25rem) * 5);display:flex;align-items:flex-start;justify-content:space-between;gap:calc(var(--spacing, .25rem) * 4)}.axm-profile-activity-chart .__title-row{display:inline-flex;align-items:center;gap:calc(var(--spacing, .25rem) * 2)}.axm-profile-activity-chart .__title{margin:0;font-size:var(--text-lg, 1.125rem);line-height:var(--tw-leading, var(--text-lg--line-height, calc(1.75 / 1.125)));--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600);color:rgb(var(--ax-sys-color-on-lightest-surface))}.axm-profile-activity-chart .__info-icon{opacity:50%;color:rgb(var(--ax-sys-color-on-light-surface))}.axm-profile-activity-chart .__context{font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));color:rgb(var(--ax-sys-color-on-light-surface))}.axm-profile-activity-chart .__stats{margin-bottom:calc(var(--spacing, .25rem) * 6);display:grid;gap:calc(var(--spacing, .25rem) * 4);grid-template-columns:repeat(2,minmax(0,1fr))}.axm-profile-activity-chart .__stat{min-width:0px}.axm-profile-activity-chart .__stat dt{margin-bottom:var(--spacing, .25rem);font-size:var(--text-xs, .75rem);line-height:var(--tw-leading, var(--text-xs--line-height, calc(1 / .75)));color:rgb(var(--ax-sys-color-on-light-surface))}.axm-profile-activity-chart .__stat dd{margin:0;font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));--tw-font-weight: var(--font-weight-medium, 500);font-weight:var(--font-weight-medium, 500);color:rgb(var(--ax-sys-color-on-lightest-surface))}.axm-profile-activity-chart .__stat dd strong{--tw-font-weight: var(--font-weight-bold, 700);font-weight:var(--font-weight-bold, 700)}.axm-profile-activity-chart .__heatmap-wrap{width:100%;overflow-x:auto;padding-bottom:calc(var(--spacing, .25rem) * 2)}.axm-profile-activity-chart .__month-labels{margin-bottom:calc(var(--spacing, .25rem) * 2);display:grid;width:100%;gap:var(--spacing, .25rem);grid-template-columns:1.75rem repeat(53,minmax(0,1fr))}.axm-profile-activity-chart .__month-label{font-size:var(--text-xs, .75rem);line-height:var(--tw-leading, var(--text-xs--line-height, calc(1 / .75)));color:rgb(var(--ax-sys-color-on-light-surface))}.axm-profile-activity-chart .__heatmap{display:grid;width:100%;gap:calc(var(--spacing, .25rem) * 2);grid-template-columns:1.75rem 1fr;align-items:stretch}.axm-profile-activity-chart .__weekday-labels{display:grid;gap:var(--spacing, .25rem);align-self:stretch;grid-template-rows:repeat(7,1fr)}.axm-profile-activity-chart .__weekday-label{display:flex;align-items:center;font-size:var(--text-xs, .75rem);line-height:var(--tw-leading, var(--text-xs--line-height, calc(1 / .75)));color:rgb(var(--ax-sys-color-on-light-surface))}.axm-profile-activity-chart .__grid{display:grid;width:100%;gap:var(--spacing, .25rem);grid-template-rows:repeat(7,auto);grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}.axm-profile-activity-chart .__cell{width:100%;border-radius:var(--radius-sm, .25rem);aspect-ratio:1}.axm-profile-activity-chart .__cell.--level-0{background:rgb(var(--ax-sys-color-dark-surface))}.axm-profile-activity-chart .__cell.--level-1{background:rgb(var(--ax-sys-color-primary-200))}.axm-profile-activity-chart .__cell.--level-2{background:rgb(var(--ax-sys-color-primary-400))}.axm-profile-activity-chart .__cell.--level-3{background:rgb(var(--ax-sys-color-primary-600))}.axm-profile-activity-chart .__cell.--level-4{background:rgb(var(--ax-sys-color-primary-800))}.axm-profile-activity-chart .__legend{margin-top:calc(var(--spacing, .25rem) * 4);display:flex;align-items:center;gap:calc(var(--spacing, .25rem) * 1.5)}.axm-profile-activity-chart .__legend-label{font-size:var(--text-xs, .75rem);line-height:var(--tw-leading, var(--text-xs--line-height, calc(1 / .75)));color:rgb(var(--ax-sys-color-on-light-surface))}.axm-profile-activity-chart .__legend-cell{width:calc(var(--spacing, .25rem) * 3);height:calc(var(--spacing, .25rem) * 3);border-radius:var(--radius-sm, .25rem)}.axm-profile-activity-chart .__legend-cell.--level-0{background:rgb(var(--ax-sys-color-dark-surface))}.axm-profile-activity-chart .__legend-cell.--level-1{background:rgb(var(--ax-sys-color-primary-200))}.axm-profile-activity-chart .__legend-cell.--level-2{background:rgb(var(--ax-sys-color-primary-400))}.axm-profile-activity-chart .__legend-cell.--level-3{background:rgb(var(--ax-sys-color-primary-600))}.axm-profile-activity-chart .__legend-cell.--level-4{background:rgb(var(--ax-sys-color-primary-800))}@media(min-width:768px){.axm-profile-activity-chart .__stats{grid-template-columns:repeat(4,minmax(0,1fr))}}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000;--tw-font-weight: initial}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
147
- }], propDecorators: { rootContext: [{ type: i0.Input, args: [{ isSignal: true, alias: "rootContext", required: false }] }], pageConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageConfig", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }] } });
148
-
149
- export { AXMProfileActivityChartComponent };
150
- //# sourceMappingURL=acorex-platform-module-auth-client-profile-activity-chart.component-CtSrYARX.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-module-auth-client-profile-activity-chart.component-CtSrYARX.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/account/profile-page/components/profile-activity-chart/profile-activity-chart.component.ts","../../../../libs/modules/auth/client/src/lib/pages/account/profile-page/components/profile-activity-chart/profile-activity-chart.component.html"],"sourcesContent":["import { AXPQueryService } from '@acorex-platform/framework-client/runtime';\nimport { runtimeQueryObjectData } from '@acorex-platform/framework-shared/core';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPPageLayoutBase, AXPPageLayoutBaseComponent } from '@acorex-platform/framework-client/layout/views';\nimport { AsyncPipe, CommonModule } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n inject,\n input,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport { isEmpty } from 'lodash';\nimport {\n AXPUserActivityDataSourceItem,\n AXPUserActivityLevel,\n AXPUserActivityStats,\n AXPUserActivityWeek,\n formatCompactActivityCount,\n resolveDefaultUserActivityDateRange,\n} from '../../../../../shared/datasources/user-activity';\n\n//#region ---- View types ----\n\ninterface ActivityDay {\n date: Date;\n count: number;\n level: AXPUserActivityLevel;\n}\n\ninterface ActivityWeek {\n days: ActivityDay[];\n}\n\n//#endregion\n\n//#region ---- Constants ----\n\nconst DEFAULT_USER_ACTIVITY_QUERY_KEY = 'Auth:GetUserActivity';\n\n//#endregion\n\n//#region ---- Component ----\n\n/** Contribution-style activity heatmap for the profile Activity tab. */\n@Component({\n selector: 'axm-profile-activity-chart',\n imports: [CommonModule, AsyncPipe, AXDecoratorModule, AXTranslationModule],\n templateUrl: './profile-activity-chart.component.html',\n styleUrl: './profile-activity-chart.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: { class: 'axm-profile-activity-chart' },\n providers: [\n {\n provide: AXPPageLayoutBase,\n useExisting: AXMProfileActivityChartComponent,\n },\n ],\n})\nexport class AXMProfileActivityChartComponent extends AXPPageLayoutBaseComponent {\n //#region ---- Inputs ----\n\n rootContext = input<Record<string, unknown>>({});\n pageConfig = input<Record<string, unknown>>();\n options = input<Record<string, unknown>>({});\n\n //#endregion\n\n //#region ---- Services & Dependencies ----\n\n private readonly queryService = inject(AXPQueryService);\n\n //#endregion\n\n //#region ---- State ----\n\n protected readonly weeks = signal<ActivityWeek[]>([]);\n protected readonly stats = signal<AXPUserActivityStats>({\n longestStreak: 0,\n avgPerDay: 0,\n avgPerWeek: 0,\n total: 0,\n });\n protected readonly isLoading = signal(true);\n\n protected readonly weekdayLabels = ['M', 'W', 'F'];\n protected readonly intensityLevels: Array<AXPUserActivityLevel> = [0, 1, 2, 3, 4];\n\n //#endregion\n\n //#region ---- Derived state ----\n\n protected readonly queryKey = computed(\n () => (this.options()['queryKey'] as string | undefined) ?? DEFAULT_USER_ACTIVITY_QUERY_KEY,\n );\n\n protected readonly monthLabels = computed(() => {\n const labels: { key: string; label: string; weekIndex: number }[] = [];\n let lastMonth = -1;\n\n this.weeks().forEach((week, weekIndex) => {\n const firstDay = week.days[0];\n const month = firstDay.date.getMonth();\n if (month !== lastMonth) {\n labels.push({\n key: `${firstDay.date.getFullYear()}-${month}`,\n label: firstDay.date.toLocaleString('en-US', { month: 'short' }),\n weekIndex,\n });\n lastMonth = month;\n }\n });\n\n return labels;\n });\n\n //#endregion\n\n //#region ---- Effects ----\n\n #loadActivityEffect = effect(() => {\n const userId = this.sessionService.user?.id;\n const queryKey = this.queryKey();\n void this.loadActivity(userId, queryKey);\n });\n\n //#endregion\n\n //#region ---- Data loading ----\n\n private async loadActivity(userId: string | undefined, queryKey: string): Promise<void> {\n this.isLoading.set(true);\n\n try {\n if (isEmpty(userId)) {\n this.weeks.set([]);\n this.stats.set({ longestStreak: 0, avgPerDay: 0, avgPerWeek: 0, total: 0 });\n return;\n }\n\n const { startDate, endDate } = resolveDefaultUserActivityDateRange();\n const result = await this.queryService.fetch<\n { userId: string; startDate: Date; endDate: Date },\n AXPUserActivityDataSourceItem | null\n >(queryKey, { userId: userId!, startDate, endDate });\n\n const item = runtimeQueryObjectData(result);\n if (!item) {\n this.weeks.set([]);\n this.stats.set({ longestStreak: 0, avgPerDay: 0, avgPerWeek: 0, total: 0 });\n return;\n }\n\n this.weeks.set(\n item.weeks.map((week: AXPUserActivityWeek) => ({\n days: week.days.map((day) => ({\n date: new Date(day.date),\n count: day.count,\n level: day.level,\n })),\n })),\n );\n this.stats.set(item.stats);\n } finally {\n this.isLoading.set(false);\n }\n }\n\n //#endregion\n\n //#region ---- UI helpers ----\n\n protected formatCount(value: number): string {\n return formatCompactActivityCount(value);\n }\n\n protected weekdayRowIndex(label: string): number {\n if (label === 'M') {\n return 1;\n }\n if (label === 'W') {\n return 3;\n }\n return 5;\n }\n\n protected cellTitle(day: ActivityDay): string {\n return `${day.date.toLocaleDateString()} — ${day.count}`;\n }\n\n //#endregion\n}\n\n//#endregion\n","<div class=\"__panel\" *translate=\"let t\">\n <header class=\"__header\">\n <div class=\"__title-row\">\n <h3 class=\"__title\">{{ '@auth:profile-page.components.activity-chart.title' | translate | async }}</h3>\n <ax-icon icon=\"fa-light fa-circle-info\" class=\"__info-icon\"></ax-icon>\n </div>\n <span class=\"__context\">{{ '@auth:profile-page.components.activity-chart.context' | translate | async }}</span>\n </header>\n\n <dl class=\"__stats\">\n <div class=\"__stat\">\n <dt>{{ '@auth:profile-page.components.activity-chart.stats.longest-streak' | translate | async }}</dt>\n <dd>\n <strong>{{ stats().longestStreak }}</strong>\n {{ '@auth:profile-page.components.activity-chart.stats.days' | translate | async }}\n </dd>\n </div>\n <div class=\"__stat\">\n <dt>{{ '@auth:profile-page.components.activity-chart.stats.avg-day' | translate | async }}</dt>\n <dd>{{ formatCount(stats().avgPerDay) }}</dd>\n </div>\n <div class=\"__stat\">\n <dt>{{ '@auth:profile-page.components.activity-chart.stats.avg-week' | translate | async }}</dt>\n <dd>{{ formatCount(stats().avgPerWeek) }}</dd>\n </div>\n <div class=\"__stat\">\n <dt>{{ '@auth:profile-page.components.activity-chart.stats.total' | translate | async }}</dt>\n <dd>{{ formatCount(stats().total) }}</dd>\n </div>\n </dl>\n\n <div class=\"__heatmap-wrap\">\n <div class=\"__month-labels\" aria-hidden=\"true\">\n @for (month of monthLabels(); track month.key) {\n <span class=\"__month-label\" [style.grid-column-start]=\"month.weekIndex + 2\">{{ month.label }}</span>\n }\n </div>\n\n <div class=\"__heatmap\">\n <div class=\"__weekday-labels\" aria-hidden=\"true\">\n @for (label of weekdayLabels; track label) {\n <span class=\"__weekday-label\" [style.grid-row]=\"weekdayRowIndex(label)\">{{ label }}</span>\n }\n </div>\n\n <div class=\"__grid\" role=\"img\" [attr.aria-label]=\"'@auth:profile-page.components.activity-chart.aria-label' | translate | async\">\n @for (week of weeks(); track $index) {\n @for (day of week.days; track day.date.getTime()) {\n <span\n class=\"__cell\"\n [class.--level-0]=\"day.level === 0\"\n [class.--level-1]=\"day.level === 1\"\n [class.--level-2]=\"day.level === 2\"\n [class.--level-3]=\"day.level === 3\"\n [class.--level-4]=\"day.level === 4\"\n [attr.title]=\"cellTitle(day)\"\n ></span>\n }\n }\n </div>\n </div>\n </div>\n\n <footer class=\"__legend\" aria-hidden=\"true\">\n <span class=\"__legend-label\">{{ '@auth:profile-page.components.activity-chart.legend.less' | translate | async }}</span>\n @for (level of intensityLevels; track level) {\n <span class=\"__legend-cell\" [class]=\"'--level-' + level\"></span>\n }\n <span class=\"__legend-label\">{{ '@auth:profile-page.components.activity-chart.legend.more' | translate | async }}</span>\n </footer>\n</div>\n"],"names":["i2","i3"],"mappings":";;;;;;;;;;;;;;AAsCA;AAEA;AAEA,MAAM,+BAA+B,GAAG,sBAAsB;AAE9D;AAEA;AAEA;AAgBM,MAAO,gCAAiC,SAAQ,0BAA0B,CAAA;AAfhF,IAAA,WAAA,GAAA;;;QAkBE,IAAA,CAAA,WAAW,GAAG,KAAK,CAA0B,EAAE;wFAAC;AAChD,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK;kGAA2B;QAC7C,IAAA,CAAA,OAAO,GAAG,KAAK,CAA0B,EAAE;oFAAC;;;AAM3B,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,eAAe,CAAC;;;QAMpC,IAAA,CAAA,KAAK,GAAG,MAAM,CAAiB,EAAE;kFAAC;QAClC,IAAA,CAAA,KAAK,GAAG,MAAM,CAAuB;AACtD,YAAA,aAAa,EAAE,CAAC;AAChB,YAAA,SAAS,EAAE,CAAC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A,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAa9D,gCAAgC,EAAA,UAAA,EAAA,CAAA;kBAf5C,SAAS;+BACE,4BAA4B,EAAA,OAAA,EAC7B,CAAC,YAAY,EAAE,SAAS,EAAE,iBAAiB,EAAE,mBAAmB,CAAC,EAAA,eAAA,EAGzD,uBAAuB,CAAC,MAAM,EAAA,aAAA,EAChC,iBAAiB,CAAC,IAAI,EAAA,IAAA,EAC/B,EAAE,KAAK,EAAE,4BAA4B,EAAE,EAAA,SAAA,EAClC;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAA,gCAAkC;AAC9C,yBAAA;AACF,qBAAA,EAAA,QAAA,EAAA,ojGAAA,EAAA,MAAA,EAAA,CAAA,6uOAAA,CAAA,EAAA;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-module-auth-client-profile-page.component-CdxseoJX.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 { 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\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(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 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA;AAEA;;AAEG;MAEU,iCAAiC,CAAA;AAD9C,IAAA,WAAA,GAAA;;AAImB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC;AA8EhD,IAAA;;;AAxEC,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,SAAS,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;IAC3D;AAEA,IAAA,oBAAoB,CAClB,QAAiC,EACjC,aAAsC,EACtC,OAAe,EAAA;QAEf,OAAO,IAAI,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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 +0,0 @@
1
- {"version":3,"file":"acorex-platform-module-auth-client-register.module-BrXqva0B.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, RouterModule, 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: [RouterModule],\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,CAAC,mBAAmB,CAAC;AAClC,YAAA,aAAa,EAAE,MACb,OAAO,+EAAwC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,4BAA4B,CAAC;AAC/F,SAAA;AACD,QAAA;AACE,YAAA,IAAI,EAAE,QAAQ;YACd,aAAa,EAAE,MAAK;AAClB,gBAAA,OAAO,OAAO,oEAA2B,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,0BAA0B,CAAC;YACtF,CAAC;AACF,SAAA;KACF;AACD,IAAA,OAAO,MAAM;AACf;MAca,iBAAiB,CAAA;8GAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAjB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAXlB,YAAY,CAAA,EAAA,CAAA,CAAA;AAWX,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,EAAA,SAAA,EARjB;AACT,YAAA;AACE,gBAAA,OAAO,EAAE,MAAM;AACf,gBAAA,KAAK,EAAE,IAAI;AACX,gBAAA,UAAU,EAAE,YAAY;AACzB,aAAA;AACF,SAAA,EAAA,OAAA,EAAA,CATS,YAAY,CAAA,EAAA,CAAA,CAAA;;2FAWX,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAZ7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;AACvB,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,YAAY,EAAE,EAAE;AAChB,oBAAA,SAAS,EAAE;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,MAAM;AACf,4BAAA,KAAK,EAAE,IAAI;AACX,4BAAA,UAAU,EAAE,YAAY;AACzB,yBAAA;AACF,qBAAA;AACF,iBAAA;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-module-auth-client-two-factor.module-_jYo6xXr.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/two-factor/two-factor.module.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\nimport { RouterModule, ROUTES, Routes } from '@angular/router';\n\nfunction routesFacory() {\n const routes: Routes = [\n {\n path: 'two-step',\n loadComponent: () =>\n import('./two-factor-code/two-factor-code.component').then((c) => c.AXPAuthTwoFactorCodeComponent),\n },\n ];\n return routes;\n}\n\n@NgModule({\n declarations: [],\n imports: [RouterModule],\n exports: [],\n providers: [\n {\n provide: ROUTES,\n multi: true,\n useFactory: routesFacory,\n },\n ],\n})\nexport class AXPTwoFactorModule {}\n"],"names":[],"mappings":";;;;AAGA,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