@acorex-platform/module-auth-client 0.0.15 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/{acorex-platform-module-auth-client-acorex-platform-module-auth-client-B7tIKOw6.mjs → acorex-platform-module-auth-client-acorex-platform-module-auth-client-CYmUn-lw.mjs} +941 -609
- package/fesm2022/acorex-platform-module-auth-client-acorex-platform-module-auth-client-CYmUn-lw.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-app-chooser.component-BVbu-f8h.mjs +75 -0
- package/fesm2022/acorex-platform-module-auth-client-app-chooser.component-BVbu-f8h.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-blank.layout-BRGgntib.mjs → acorex-platform-module-auth-client-blank.layout-BCXNPgrp.mjs} +6 -6
- package/fesm2022/acorex-platform-module-auth-client-blank.layout-BCXNPgrp.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-change-password.command-ZyXAjUKw.mjs → acorex-platform-module-auth-client-change-password.command-DIM_d7RO.mjs} +51 -40
- package/fesm2022/acorex-platform-module-auth-client-change-password.command-DIM_d7RO.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-change-photo.command-CYGqrJV0.mjs +257 -0
- package/fesm2022/acorex-platform-module-auth-client-change-photo.command-CYGqrJV0.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-contracts.mjs +46 -10
- package/fesm2022/acorex-platform-module-auth-client-contracts.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-edit-account-info.command-B-mVlXxg.mjs → acorex-platform-module-auth-client-edit-account-info.command-CD9IrimO.mjs} +5 -5
- package/fesm2022/acorex-platform-module-auth-client-edit-account-info.command-CD9IrimO.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-edit-signature.command-CcTJJwAX.mjs → acorex-platform-module-auth-client-edit-signature.command-TjOLhvKL.mjs} +5 -5
- package/fesm2022/acorex-platform-module-auth-client-edit-signature.command-TjOLhvKL.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-get-user-activity.query-BTpibxe9.mjs +80 -0
- package/fesm2022/acorex-platform-module-auth-client-get-user-activity.query-BTpibxe9.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-lock-screen.command-41QnG1TQ.mjs → acorex-platform-module-auth-client-lock-screen.command-Br9O4b5c.mjs} +6 -6
- package/fesm2022/acorex-platform-module-auth-client-lock-screen.command-Br9O4b5c.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-login.module-DYtNYzF6.mjs → acorex-platform-module-auth-client-login.module-DJVL3bAF.mjs} +8 -21
- package/fesm2022/acorex-platform-module-auth-client-login.module-DJVL3bAF.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-master.layout-DZUYm22p.mjs +39 -0
- package/fesm2022/acorex-platform-module-auth-client-master.layout-DZUYm22p.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-oauth-callback.component-BspBH4Ul.mjs → acorex-platform-module-auth-client-oauth-callback.component-DnQzPUxF.mjs} +11 -15
- package/fesm2022/acorex-platform-module-auth-client-oauth-callback.component-DnQzPUxF.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-open-sessions.command-LZKM9fgo.mjs +200 -0
- package/fesm2022/acorex-platform-module-auth-client-open-sessions.command-LZKM9fgo.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-password.component-Cihg82vM.mjs → acorex-platform-module-auth-client-password.component-CNKRWfuG.mjs} +86 -45
- package/fesm2022/acorex-platform-module-auth-client-password.component-CNKRWfuG.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-password.component-CW0t9fEn.mjs +87 -0
- package/fesm2022/acorex-platform-module-auth-client-password.component-CW0t9fEn.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-platform-settings-unavailable.component-BEVkQ3jh.mjs +47 -0
- package/fesm2022/acorex-platform-module-auth-client-platform-settings-unavailable.component-BEVkQ3jh.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-profile-activity-chart.component-B8lBvZsA.mjs → acorex-platform-module-auth-client-profile-activity-chart.component-CtSrYARX.mjs} +38 -46
- package/fesm2022/acorex-platform-module-auth-client-profile-activity-chart.component-CtSrYARX.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-profile-coming-soon.command-DBbFbzAx.mjs → acorex-platform-module-auth-client-profile-coming-soon.command-Crh2GsRA.mjs} +5 -5
- package/fesm2022/acorex-platform-module-auth-client-profile-coming-soon.command-Crh2GsRA.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-CtJho4ab.mjs → acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-D0QS8joQ.mjs} +18 -13
- package/fesm2022/{acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-CtJho4ab.mjs.map → acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-D0QS8joQ.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-profile-page-component.provider-B-Qtd4_j.mjs → acorex-platform-module-auth-client-profile-page-component.provider-6lNx6bKI.mjs} +7 -7
- package/fesm2022/{acorex-platform-module-auth-client-profile-page-component.provider-B-Qtd4_j.mjs.map → acorex-platform-module-auth-client-profile-page-component.provider-6lNx6bKI.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-auth-client-profile-page.component-CdxseoJX.mjs +650 -0
- package/fesm2022/acorex-platform-module-auth-client-profile-page.component-CdxseoJX.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-register-password.component-hSJyEA6Q.mjs → acorex-platform-module-auth-client-register-password.component-D-tBrCJv.mjs} +15 -14
- package/fesm2022/acorex-platform-module-auth-client-register-password.component-D-tBrCJv.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-register.module-DXm6AQpo.mjs → acorex-platform-module-auth-client-register.module-BrXqva0B.mjs} +23 -23
- package/fesm2022/acorex-platform-module-auth-client-register.module-BrXqva0B.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-remove-pin-code.command-zUZooOtv.mjs → acorex-platform-module-auth-client-remove-pin-code.command-uK04-h15.mjs} +7 -7
- package/fesm2022/acorex-platform-module-auth-client-remove-pin-code.command-uK04-h15.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-reset-password.component-CcwDb6Wb.mjs +115 -0
- package/fesm2022/acorex-platform-module-auth-client-reset-password.component-CcwDb6Wb.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-result.component-DYJaB-FD.mjs → acorex-platform-module-auth-client-result.component-DWv1hmQR.mjs} +6 -6
- package/fesm2022/acorex-platform-module-auth-client-result.component-DWv1hmQR.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-routes-IX2qmeqU.mjs +13 -0
- package/fesm2022/acorex-platform-module-auth-client-routes-IX2qmeqU.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-session-lock-overlay.component-BhsTAmVe.mjs +361 -0
- package/fesm2022/acorex-platform-module-auth-client-session-lock-overlay.component-BhsTAmVe.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-set-pin-code.command-BJT7F-xz.mjs +116 -0
- package/fesm2022/acorex-platform-module-auth-client-set-pin-code.command-BJT7F-xz.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.component-5TxB6aFi.mjs → acorex-platform-module-auth-client-set-pin-code.component-Cq4skm_3.mjs} +29 -20
- package/fesm2022/acorex-platform-module-auth-client-set-pin-code.component-Cq4skm_3.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-settings.provider-n1qbs6e1.mjs → acorex-platform-module-auth-client-settings.provider-Yaoz8yp3.mjs} +139 -11
- package/fesm2022/acorex-platform-module-auth-client-settings.provider-Yaoz8yp3.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-show-profile-command-CxMz1yy-.mjs → acorex-platform-module-auth-client-show-profile-command-BWoDxIdx.mjs} +5 -6
- package/fesm2022/acorex-platform-module-auth-client-show-profile-command-BWoDxIdx.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-signout-command-DqqrP5pk.mjs → acorex-platform-module-auth-client-signout-command-B7n_Fn4P.mjs} +5 -5
- package/fesm2022/acorex-platform-module-auth-client-signout-command-B7n_Fn4P.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-tenant-chooser.component-CHmg7D5H.mjs +67 -0
- package/fesm2022/acorex-platform-module-auth-client-tenant-chooser.component-CHmg7D5H.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-two-factor-code.component-nsB4v25Z.mjs +40 -0
- package/fesm2022/acorex-platform-module-auth-client-two-factor-code.component-nsB4v25Z.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-two-factor.module-BJqdeuAz.mjs → acorex-platform-module-auth-client-two-factor.module-_jYo6xXr.mjs} +8 -11
- package/fesm2022/acorex-platform-module-auth-client-two-factor.module-_jYo6xXr.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-view-login-history.command-Dl0os5lD.mjs → acorex-platform-module-auth-client-view-login-history.command-ovj5rdHL.mjs} +13 -11
- package/fesm2022/acorex-platform-module-auth-client-view-login-history.command-ovj5rdHL.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client.mjs +1 -1
- package/package.json +1 -1
- package/types/acorex-platform-module-auth-client-contracts.d.ts +43 -9
- package/types/acorex-platform-module-auth-client.d.ts +63 -56
- package/fesm2022/acorex-platform-module-auth-client-acorex-platform-module-auth-client-B7tIKOw6.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-app-chooser.component-Cm2ZagaI.mjs +0 -67
- package/fesm2022/acorex-platform-module-auth-client-app-chooser.component-Cm2ZagaI.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-blank.layout-BRGgntib.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-change-password.command-ZyXAjUKw.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-change-photo.command-BC8lw--F.mjs +0 -192
- package/fesm2022/acorex-platform-module-auth-client-change-photo.command-BC8lw--F.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-edit-account-info.command-B-mVlXxg.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-edit-signature.command-CcTJJwAX.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-lock-screen.command-41QnG1TQ.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-login.module-DYtNYzF6.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-master.layout-DpdD9kgk.mjs +0 -24
- package/fesm2022/acorex-platform-module-auth-client-master.layout-DpdD9kgk.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-oauth-callback.component-BspBH4Ul.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-open-sessions.command-CXSGuqYp.mjs +0 -196
- package/fesm2022/acorex-platform-module-auth-client-open-sessions.command-CXSGuqYp.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-password.component-BuqUhET7.mjs +0 -59
- package/fesm2022/acorex-platform-module-auth-client-password.component-BuqUhET7.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-password.component-Cihg82vM.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-profile-activity-chart.component-B8lBvZsA.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-profile-coming-soon.command-DBbFbzAx.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-profile-page.component-tbhf7K0V.mjs +0 -446
- package/fesm2022/acorex-platform-module-auth-client-profile-page.component-tbhf7K0V.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-register-password.component-hSJyEA6Q.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-register.module-DXm6AQpo.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-remove-pin-code.command-zUZooOtv.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-result.component-DYJaB-FD.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-routes-REjaWcqY.mjs +0 -9
- package/fesm2022/acorex-platform-module-auth-client-routes-REjaWcqY.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-session-lock-overlay.component-DqXGuIgN.mjs +0 -346
- package/fesm2022/acorex-platform-module-auth-client-session-lock-overlay.component-DqXGuIgN.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-set-pin-code.command-DXTVbrS0.mjs +0 -33
- package/fesm2022/acorex-platform-module-auth-client-set-pin-code.command-DXTVbrS0.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-set-pin-code.component-5TxB6aFi.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-settings.provider-n1qbs6e1.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-show-profile-command-CxMz1yy-.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-signout-command-DqqrP5pk.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-tenant-chooser.component-ihsqCJKN.mjs +0 -59
- package/fesm2022/acorex-platform-module-auth-client-tenant-chooser.component-ihsqCJKN.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-two-factor-code.component-CiENsIEh.mjs +0 -40
- package/fesm2022/acorex-platform-module-auth-client-two-factor-code.component-CiENsIEh.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-two-factor.module-BJqdeuAz.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-view-login-history.command-Dl0os5lD.mjs.map +0 -1
|
@@ -1,446 +0,0 @@
|
|
|
1
|
-
import * as i1 from '@acorex/components/button';
|
|
2
|
-
import { AXButtonModule } from '@acorex/components/button';
|
|
3
|
-
import * as i3 from '@acorex/components/decorators';
|
|
4
|
-
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
5
|
-
import * as i4$1 from '@acorex/components/dropdown';
|
|
6
|
-
import { AXDropdownModule } from '@acorex/components/dropdown';
|
|
7
|
-
import * as i5 from '@acorex/components/loading';
|
|
8
|
-
import { AXLoadingModule } from '@acorex/components/loading';
|
|
9
|
-
import * as i6 from '@acorex/components/tabs';
|
|
10
|
-
import { AXTabsModule } from '@acorex/components/tabs';
|
|
11
|
-
import { AXFormatPipe } from '@acorex/core/format';
|
|
12
|
-
import * as i2 from '@acorex/core/translation';
|
|
13
|
-
import { AXTranslationModule } from '@acorex/core/translation';
|
|
14
|
-
import { AXPStickyDirective } from '@acorex-platform/framework-client/common';
|
|
15
|
-
import { AXPCommandService } from '@acorex-platform/framework-client/runtime';
|
|
16
|
-
import { AXPThemeLayoutBlockComponent, AXPUserAvatarComponent } from '@acorex-platform/framework-client/layout/components';
|
|
17
|
-
import { AXPPageLayoutBaseComponent, AXPPageLayoutComponent, AXPPageComponentRendererDirective, AXPPageLayoutBase } from '@acorex-platform/framework-client/layout/views';
|
|
18
|
-
import * as i4 from '@angular/common';
|
|
19
|
-
import { CommonModule, AsyncPipe } from '@angular/common';
|
|
20
|
-
import * as i0 from '@angular/core';
|
|
21
|
-
import { inject, Injectable, DestroyRef, signal, computed, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
22
|
-
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
23
|
-
import { ActivatedRoute, NavigationEnd, RouterModule } from '@angular/router';
|
|
24
|
-
import { filter, startWith, distinctUntilChanged } from 'rxjs';
|
|
25
|
-
import { AXMAuthCommandKeys } from '@acorex-platform/module-auth-client/contracts';
|
|
26
|
-
import { AXPSessionService, AXPUserProfileIdentityService } from '@acorex-platform/framework-client/auth';
|
|
27
|
-
import { defaultTo, orderBy, uniqBy, first, isNil, get } from 'lodash';
|
|
28
|
-
import { AXPHookService } from '@acorex-platform/framework-client/core';
|
|
29
|
-
import { P as PROFILE_PAGE_GROUPS_HOOK, a as PROFILE_PAGE_SECTIONS_HOOK, b as PROFILE_PAGE_HEADER_META_HOOK, v as visibleUserProfileSectionActions, r as resolveDefaultUserProfileSectionAction, c as resolveUserProfileSectionContent } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-B7tIKOw6.mjs';
|
|
30
|
-
import { AXPEntityStorageService } from '@acorex-platform/framework-client/layout/entity';
|
|
31
|
-
|
|
32
|
-
//#region ---- Profile page registry ----
|
|
33
|
-
/**
|
|
34
|
-
* Aggregates profile page groups, sections, and header meta from distributed hooks.
|
|
35
|
-
*/
|
|
36
|
-
class AXPUserProfilePageRegistryService {
|
|
37
|
-
constructor() {
|
|
38
|
-
//#region ---- Services & Dependencies ----
|
|
39
|
-
this.hooks = inject(AXPHookService);
|
|
40
|
-
}
|
|
41
|
-
//#endregion
|
|
42
|
-
//#region ---- Public API ----
|
|
43
|
-
async loadGroups() {
|
|
44
|
-
const payload = await this.hooks.runAsync(PROFILE_PAGE_GROUPS_HOOK, { groups: [] });
|
|
45
|
-
return this.sortGroups(defaultTo(payload.groups, []));
|
|
46
|
-
}
|
|
47
|
-
async loadSections() {
|
|
48
|
-
const payload = await this.hooks.runAsync(PROFILE_PAGE_SECTIONS_HOOK, {
|
|
49
|
-
sections: [],
|
|
50
|
-
});
|
|
51
|
-
return this.sortSections(defaultTo(payload.sections, []));
|
|
52
|
-
}
|
|
53
|
-
async loadHeaderMeta() {
|
|
54
|
-
const payload = await this.hooks.runAsync(PROFILE_PAGE_HEADER_META_HOOK, {
|
|
55
|
-
items: [],
|
|
56
|
-
});
|
|
57
|
-
return orderBy(uniqBy(defaultTo(payload.items, []), 'id'), [(item) => defaultTo(item.priority, 100), 'id'], ['asc', 'asc']);
|
|
58
|
-
}
|
|
59
|
-
filterSectionsByGroup(sections, groupId) {
|
|
60
|
-
if (!groupId) {
|
|
61
|
-
return sections;
|
|
62
|
-
}
|
|
63
|
-
return sections.filter((section) => section.groupId === groupId);
|
|
64
|
-
}
|
|
65
|
-
resolveDefaultGroup(groups) {
|
|
66
|
-
return first(this.sortGroups(groups));
|
|
67
|
-
}
|
|
68
|
-
resolveGroupByRoute(groups, routeSegment) {
|
|
69
|
-
const normalized = routeSegment.trim().toLowerCase();
|
|
70
|
-
const resolvedRoute = normalized === 'privacy' ? 'account' : normalized;
|
|
71
|
-
return this.sortGroups(groups).find((group) => group.id.toLowerCase() === resolvedRoute || group.route?.toLowerCase() === resolvedRoute);
|
|
72
|
-
}
|
|
73
|
-
resolveGroupRoute(group) {
|
|
74
|
-
return group.route ?? group.id;
|
|
75
|
-
}
|
|
76
|
-
//#endregion
|
|
77
|
-
//#region ---- Private Methods ----
|
|
78
|
-
sortGroups(groups) {
|
|
79
|
-
return orderBy(uniqBy(groups, 'id'), [(g) => defaultTo(g.priority, 100), 'id'], ['asc', 'asc']);
|
|
80
|
-
}
|
|
81
|
-
sortSections(sections) {
|
|
82
|
-
return orderBy(uniqBy(sections, 'id'), [(s) => defaultTo(s.priority, 100), 'id'], ['asc', 'asc']);
|
|
83
|
-
}
|
|
84
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPUserProfilePageRegistryService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
85
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPUserProfilePageRegistryService, providedIn: 'root' }); }
|
|
86
|
-
}
|
|
87
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPUserProfilePageRegistryService, decorators: [{
|
|
88
|
-
type: Injectable,
|
|
89
|
-
args: [{ providedIn: 'root' }]
|
|
90
|
-
}] });
|
|
91
|
-
|
|
92
|
-
//#region ---- Constants ----
|
|
93
|
-
const SECURITY_MANAGEMENT_USER_ENTITY = 'SecurityManagement.User';
|
|
94
|
-
//#endregion
|
|
95
|
-
//#region ---- Profile page user service ----
|
|
96
|
-
/**
|
|
97
|
-
* Loads the persisted user row for the logged-in session (audit info, display fields).
|
|
98
|
-
*/
|
|
99
|
-
class AXPUserProfileUserService {
|
|
100
|
-
constructor() {
|
|
101
|
-
//#region ---- Services & Dependencies ----
|
|
102
|
-
this.sessionService = inject(AXPSessionService);
|
|
103
|
-
this.storageService = inject(AXPEntityStorageService);
|
|
104
|
-
}
|
|
105
|
-
//#endregion
|
|
106
|
-
//#region ---- Public API ----
|
|
107
|
-
async loadCurrentUser() {
|
|
108
|
-
const userId = this.sessionService.user?.id;
|
|
109
|
-
if (!userId) {
|
|
110
|
-
return null;
|
|
111
|
-
}
|
|
112
|
-
try {
|
|
113
|
-
const record = (await this.storageService.getOne(SECURITY_MANAGEMENT_USER_ENTITY, userId));
|
|
114
|
-
return record ?? null;
|
|
115
|
-
}
|
|
116
|
-
catch {
|
|
117
|
-
return null;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
resolveJoinedAt(record) {
|
|
121
|
-
if (isNil(record)) {
|
|
122
|
-
return undefined;
|
|
123
|
-
}
|
|
124
|
-
return get(record, 'auditInfo.created.at');
|
|
125
|
-
}
|
|
126
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPUserProfileUserService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
127
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPUserProfileUserService, providedIn: 'root' }); }
|
|
128
|
-
}
|
|
129
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPUserProfileUserService, decorators: [{
|
|
130
|
-
type: Injectable,
|
|
131
|
-
args: [{ providedIn: 'root' }]
|
|
132
|
-
}] });
|
|
133
|
-
|
|
134
|
-
//#endregion
|
|
135
|
-
//#region ---- Profile page header service ----
|
|
136
|
-
/**
|
|
137
|
-
* Builds profile page header data from session and optional extended profile sources.
|
|
138
|
-
*/
|
|
139
|
-
class AXPUserProfileHeaderService {
|
|
140
|
-
constructor() {
|
|
141
|
-
//#region ---- Services & Dependencies ----
|
|
142
|
-
this.sessionService = inject(AXPSessionService);
|
|
143
|
-
this.registry = inject(AXPUserProfilePageRegistryService);
|
|
144
|
-
this.userService = inject(AXPUserProfileUserService);
|
|
145
|
-
}
|
|
146
|
-
//#endregion
|
|
147
|
-
//#region ---- Public API ----
|
|
148
|
-
async load() {
|
|
149
|
-
const sessionUser = this.sessionService.user;
|
|
150
|
-
if (!sessionUser?.id) {
|
|
151
|
-
return null;
|
|
152
|
-
}
|
|
153
|
-
const userRecord = await this.userService.loadCurrentUser();
|
|
154
|
-
const hookMeta = await this.registry.loadHeaderMeta();
|
|
155
|
-
const displayName = defaultTo(sessionUser.title, defaultTo(userRecord?.displayName, sessionUser.name));
|
|
156
|
-
const username = defaultTo(userRecord?.username, sessionUser.name);
|
|
157
|
-
return {
|
|
158
|
-
userId: sessionUser.id,
|
|
159
|
-
displayName,
|
|
160
|
-
username,
|
|
161
|
-
joinedAt: this.userService.resolveJoinedAt(userRecord),
|
|
162
|
-
avatarUserId: sessionUser.id,
|
|
163
|
-
meta: hookMeta.sort((a, b) => defaultTo(a.priority, 100) - defaultTo(b.priority, 100)),
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPUserProfileHeaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
167
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPUserProfileHeaderService, providedIn: 'root' }); }
|
|
168
|
-
}
|
|
169
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPUserProfileHeaderService, decorators: [{
|
|
170
|
-
type: Injectable,
|
|
171
|
-
args: [{ providedIn: 'root' }]
|
|
172
|
-
}] });
|
|
173
|
-
|
|
174
|
-
class AXMUserProfilePageComponent extends AXPPageLayoutBaseComponent {
|
|
175
|
-
constructor() {
|
|
176
|
-
super(...arguments);
|
|
177
|
-
//#region ---- Services & Dependencies ----
|
|
178
|
-
this.registry = inject(AXPUserProfilePageRegistryService);
|
|
179
|
-
this.headerService = inject(AXPUserProfileHeaderService);
|
|
180
|
-
this.identityService = inject(AXPUserProfileIdentityService);
|
|
181
|
-
this.commandService = inject(AXPCommandService);
|
|
182
|
-
this.activatedRoute = inject(ActivatedRoute);
|
|
183
|
-
this.destroyRef = inject(DestroyRef);
|
|
184
|
-
//#endregion
|
|
185
|
-
//#region ---- State ----
|
|
186
|
-
this.groups = signal([], ...(ngDevMode ? [{ debugName: "groups" }] : /* istanbul ignore next */ []));
|
|
187
|
-
this.sections = signal([], ...(ngDevMode ? [{ debugName: "sections" }] : /* istanbul ignore next */ []));
|
|
188
|
-
this.header = signal(null, ...(ngDevMode ? [{ debugName: "header" }] : /* istanbul ignore next */ []));
|
|
189
|
-
this.activeGroupId = signal(null, ...(ngDevMode ? [{ debugName: "activeGroupId" }] : /* istanbul ignore next */ []));
|
|
190
|
-
this.isLoading = signal(true, ...(ngDevMode ? [{ debugName: "isLoading" }] : /* istanbul ignore next */ []));
|
|
191
|
-
this.visibleSections = computed(() => this.registry.filterSectionsByGroup(this.sections(), this.activeGroupId()), ...(ngDevMode ? [{ debugName: "visibleSections" }] : /* istanbul ignore next */ []));
|
|
192
|
-
this.activeGroup = computed(() => {
|
|
193
|
-
const groupId = this.activeGroupId();
|
|
194
|
-
if (!groupId) {
|
|
195
|
-
return undefined;
|
|
196
|
-
}
|
|
197
|
-
return this.groups().find((group) => group.id === groupId);
|
|
198
|
-
}, ...(ngDevMode ? [{ debugName: "activeGroup" }] : /* istanbul ignore next */ []));
|
|
199
|
-
}
|
|
200
|
-
//#endregion
|
|
201
|
-
//#region ---- Lifecycle Methods ----
|
|
202
|
-
async ngOnInit() {
|
|
203
|
-
await super.ngOnInit();
|
|
204
|
-
await this.loadPage();
|
|
205
|
-
this.bindProfileIdentityUpdates();
|
|
206
|
-
this.router.events
|
|
207
|
-
.pipe(filter((event) => event instanceof NavigationEnd), startWith(null), takeUntilDestroyed(this.destroyRef))
|
|
208
|
-
.subscribe(() => {
|
|
209
|
-
void this.syncGroupFromRoute();
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
//#endregion
|
|
213
|
-
//#region ---- Page Metadata ----
|
|
214
|
-
getPageTitle() {
|
|
215
|
-
return '';
|
|
216
|
-
}
|
|
217
|
-
getPageDescription() {
|
|
218
|
-
return null;
|
|
219
|
-
}
|
|
220
|
-
getPageIcon() {
|
|
221
|
-
return null;
|
|
222
|
-
}
|
|
223
|
-
//#endregion
|
|
224
|
-
//#region ---- UI Handlers ----
|
|
225
|
-
handleSelectGroup(group) {
|
|
226
|
-
const appName = this.sessionService.application?.name;
|
|
227
|
-
if (!appName) {
|
|
228
|
-
this.activeGroupId.set(group.id);
|
|
229
|
-
return;
|
|
230
|
-
}
|
|
231
|
-
void this.router.navigate([appName, 'profile', this.registry.resolveGroupRoute(group)]);
|
|
232
|
-
}
|
|
233
|
-
handleGroupTabChanged(event) {
|
|
234
|
-
const group = this.groups()[event.index];
|
|
235
|
-
if (!group || group.id === this.activeGroupId()) {
|
|
236
|
-
return;
|
|
237
|
-
}
|
|
238
|
-
this.handleSelectGroup(group);
|
|
239
|
-
}
|
|
240
|
-
handleEditAvatar() {
|
|
241
|
-
void this.executeCommand({
|
|
242
|
-
name: AXMAuthCommandKeys.Profile.ChangePhoto,
|
|
243
|
-
options: { mode: 'upload' },
|
|
244
|
-
}).then((result) => {
|
|
245
|
-
if (result?.success) {
|
|
246
|
-
void this.reloadProfileHeader();
|
|
247
|
-
}
|
|
248
|
-
});
|
|
249
|
-
}
|
|
250
|
-
async handleActionClick(action) {
|
|
251
|
-
if (action.disabled || action.visible === false || !action.command) {
|
|
252
|
-
return;
|
|
253
|
-
}
|
|
254
|
-
const result = await this.executeCommand(action.command);
|
|
255
|
-
if (result?.success && this.isPinRelatedAction(action)) {
|
|
256
|
-
await this.reloadSections();
|
|
257
|
-
}
|
|
258
|
-
if (result?.success && this.shouldReloadSecuritySections(action.command.name)) {
|
|
259
|
-
await this.reloadSections();
|
|
260
|
-
}
|
|
261
|
-
if (result?.success && this.shouldReloadHealthSections(action.command.name)) {
|
|
262
|
-
await this.reloadSections();
|
|
263
|
-
}
|
|
264
|
-
if (result?.success && this.shouldRefreshProfileHeader(action.command.name)) {
|
|
265
|
-
await this.reloadProfileHeader();
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
visibleSectionActions(actions) {
|
|
269
|
-
return visibleUserProfileSectionActions(actions);
|
|
270
|
-
}
|
|
271
|
-
defaultSectionAction(actions) {
|
|
272
|
-
return resolveDefaultUserProfileSectionAction(actions);
|
|
273
|
-
}
|
|
274
|
-
resolveSectionContent(section) {
|
|
275
|
-
return resolveUserProfileSectionContent(section);
|
|
276
|
-
}
|
|
277
|
-
groupComponentContent(group) {
|
|
278
|
-
if (group.content?.mode === 'component') {
|
|
279
|
-
return group.content;
|
|
280
|
-
}
|
|
281
|
-
return undefined;
|
|
282
|
-
}
|
|
283
|
-
sectionLayoutVars(layout) {
|
|
284
|
-
return {
|
|
285
|
-
'--section-col-span': layout?.colSpan ?? 6,
|
|
286
|
-
'--section-row-span': layout?.rowSpan ?? 1,
|
|
287
|
-
'--section-col-start': layout?.col ?? 'auto',
|
|
288
|
-
};
|
|
289
|
-
}
|
|
290
|
-
hasSectionColStart(layout) {
|
|
291
|
-
return layout?.col != null;
|
|
292
|
-
}
|
|
293
|
-
hasDisplayableInsights(section) {
|
|
294
|
-
return this.displayableInsights(section).length > 0;
|
|
295
|
-
}
|
|
296
|
-
displayableInsights(section) {
|
|
297
|
-
return (section.insights ?? []).filter((insight) => this.isDisplayableInsight(insight));
|
|
298
|
-
}
|
|
299
|
-
resolveInsightDate(insight) {
|
|
300
|
-
if (!insight.date) {
|
|
301
|
-
return null;
|
|
302
|
-
}
|
|
303
|
-
return Number.isNaN(insight.date.getTime()) ? null : insight.date;
|
|
304
|
-
}
|
|
305
|
-
//#endregion
|
|
306
|
-
//#region ---- Private Methods ----
|
|
307
|
-
isDisplayableInsight(insight) {
|
|
308
|
-
if (insight.text?.trim()) {
|
|
309
|
-
return true;
|
|
310
|
-
}
|
|
311
|
-
return this.resolveInsightDate(insight) !== null;
|
|
312
|
-
}
|
|
313
|
-
async loadPage() {
|
|
314
|
-
this.isLoading.set(true);
|
|
315
|
-
try {
|
|
316
|
-
const [groups, sections, header] = await Promise.all([
|
|
317
|
-
this.registry.loadGroups(),
|
|
318
|
-
this.registry.loadSections(),
|
|
319
|
-
this.headerService.load(),
|
|
320
|
-
]);
|
|
321
|
-
this.groups.set(groups);
|
|
322
|
-
this.sections.set(sections);
|
|
323
|
-
this.header.set(header);
|
|
324
|
-
await this.syncGroupFromRoute();
|
|
325
|
-
}
|
|
326
|
-
finally {
|
|
327
|
-
this.isLoading.set(false);
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
async syncGroupFromRoute() {
|
|
331
|
-
const groups = this.groups();
|
|
332
|
-
if (!groups.length) {
|
|
333
|
-
this.activeGroupId.set(null);
|
|
334
|
-
return;
|
|
335
|
-
}
|
|
336
|
-
const routeSegment = this.activatedRoute.snapshot.paramMap.get('groupId');
|
|
337
|
-
const appName = this.sessionService.application?.name;
|
|
338
|
-
if (!routeSegment) {
|
|
339
|
-
const defaultGroup = this.registry.resolveDefaultGroup(groups);
|
|
340
|
-
if (defaultGroup && appName) {
|
|
341
|
-
await this.router.navigate([appName, 'profile', this.registry.resolveGroupRoute(defaultGroup)], {
|
|
342
|
-
replaceUrl: true,
|
|
343
|
-
});
|
|
344
|
-
}
|
|
345
|
-
else if (defaultGroup) {
|
|
346
|
-
this.activeGroupId.set(defaultGroup.id);
|
|
347
|
-
}
|
|
348
|
-
return;
|
|
349
|
-
}
|
|
350
|
-
const matchedGroup = this.registry.resolveGroupByRoute(groups, routeSegment);
|
|
351
|
-
if (!matchedGroup) {
|
|
352
|
-
const defaultGroup = this.registry.resolveDefaultGroup(groups);
|
|
353
|
-
if (defaultGroup && appName) {
|
|
354
|
-
await this.router.navigate([appName, 'profile', this.registry.resolveGroupRoute(defaultGroup)], {
|
|
355
|
-
replaceUrl: true,
|
|
356
|
-
});
|
|
357
|
-
}
|
|
358
|
-
return;
|
|
359
|
-
}
|
|
360
|
-
const canonicalRoute = this.registry.resolveGroupRoute(matchedGroup);
|
|
361
|
-
if (appName && routeSegment.toLowerCase() !== canonicalRoute.toLowerCase()) {
|
|
362
|
-
await this.router.navigate([appName, 'profile', canonicalRoute], { replaceUrl: true });
|
|
363
|
-
return;
|
|
364
|
-
}
|
|
365
|
-
this.activeGroupId.set(matchedGroup.id);
|
|
366
|
-
}
|
|
367
|
-
async reloadSections() {
|
|
368
|
-
const sections = await this.registry.loadSections();
|
|
369
|
-
this.sections.set(sections);
|
|
370
|
-
}
|
|
371
|
-
bindProfileIdentityUpdates() {
|
|
372
|
-
this.sessionService.user$
|
|
373
|
-
.pipe(filter((user) => !!user?.id), distinctUntilChanged((previous, current) => previous?.title === current?.title &&
|
|
374
|
-
previous?.name === current?.name &&
|
|
375
|
-
previous?.avatar === current?.avatar), takeUntilDestroyed(this.destroyRef))
|
|
376
|
-
.subscribe(() => {
|
|
377
|
-
void this.reloadProfileHeader();
|
|
378
|
-
});
|
|
379
|
-
}
|
|
380
|
-
async reloadProfileHeader() {
|
|
381
|
-
const userId = this.sessionService.user?.id;
|
|
382
|
-
if (userId) {
|
|
383
|
-
await this.identityService.refreshAvatar(userId);
|
|
384
|
-
}
|
|
385
|
-
const header = await this.headerService.load();
|
|
386
|
-
this.header.set(header);
|
|
387
|
-
}
|
|
388
|
-
shouldReloadSecuritySections(commandName) {
|
|
389
|
-
return (commandName === AXMAuthCommandKeys.Security.ChangePassword ||
|
|
390
|
-
commandName === AXMAuthCommandKeys.Session.OpenSessions);
|
|
391
|
-
}
|
|
392
|
-
shouldReloadHealthSections(commandName) {
|
|
393
|
-
return commandName.startsWith('HealthCore.Profile:');
|
|
394
|
-
}
|
|
395
|
-
shouldRefreshProfileHeader(commandName) {
|
|
396
|
-
return (commandName === AXMAuthCommandKeys.Profile.EditAccountInfo ||
|
|
397
|
-
commandName === AXMAuthCommandKeys.Profile.ChangePhoto ||
|
|
398
|
-
commandName.startsWith('HumanCapitalManagement.Profile:'));
|
|
399
|
-
}
|
|
400
|
-
isPinRelatedAction(action) {
|
|
401
|
-
const commandName = action.command?.name;
|
|
402
|
-
return (commandName === AXMAuthCommandKeys.Security.SetPinCode ||
|
|
403
|
-
commandName === AXMAuthCommandKeys.Security.RemovePinCode);
|
|
404
|
-
}
|
|
405
|
-
async executeCommand(command) {
|
|
406
|
-
if (this.commandService.exists(command.name)) {
|
|
407
|
-
const result = await this.commandService.execute(command.name, command.options ?? {});
|
|
408
|
-
return result ?? undefined;
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMUserProfilePageComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
412
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: AXMUserProfilePageComponent, isStandalone: true, selector: "axm-user-profile-page", host: { classAttribute: "axm-user-profile-page" }, providers: [
|
|
413
|
-
{
|
|
414
|
-
provide: AXPPageLayoutBase,
|
|
415
|
-
useExisting: AXMUserProfilePageComponent,
|
|
416
|
-
},
|
|
417
|
-
], usesInheritance: true, ngImport: i0, template: "<axp-page-layout *translate=\"let t\">\n <axp-page-content>\n @if (isLoading()) {\n <div class=\"__loading\">\n <ax-loading></ax-loading>\n </div>\n } @else if (header(); as profileHeader) {\n <div class=\"__shell\">\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\">\u00B7</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 @if (groups().length) {\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 @if (activeGroup(); as group) {\n @if (groupComponentContent(group); as componentContent) {\n <div class=\"__group-content\">\n <div axp-page-component-renderer [componentKey]=\"componentContent.componentKey\"\n [pageConfig]=\"componentContent.pageConfig ?? {}\"></div>\n </div>\n } @else {\n <div class=\"__sections\">\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 class=\"__section-insight\">\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 }} \u00B7 </span>\n }\n <span>{{ insightDate | format: 'timeleft' | async }}</span>\n } @else if (insight.text) {\n {{ insight.text }}\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 @for (section of visibleSections(); 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 }\n </div>\n }\n </axp-page-content>\n</axp-page-layout>", styles: ["@layer properties;.axm-user-profile-page #axp-page-header{display:none}.axm-user-profile-page axp-page-content{padding:0}.axm-user-profile-page .__loading{display:flex;min-height:calc(var(--spacing, .25rem) * 64);align-items:center;justify-content:center}.axm-user-profile-page .__shell{margin-inline:auto;width:100%;padding-inline:calc(var(--spacing, .25rem) * 4);padding-top:calc(var(--spacing, .25rem) * 4);padding-bottom:calc(var(--spacing, .25rem) * 10)}@media(width>=40rem){.axm-user-profile-page .__shell{padding-inline:calc(var(--spacing, .25rem) * 6)}}@media(width>=40rem){.axm-user-profile-page .__shell{padding-top:calc(var(--spacing, .25rem) * 6)}}@media(width>=64rem){.axm-user-profile-page .__shell{padding-inline:calc(var(--spacing, .25rem) * 8)}}.axm-user-profile-page .__hero-card{position:sticky;top:0;z-index:10;margin-bottom:calc(var(--spacing, .25rem) * 6);overflow:hidden;border-radius:var(--radius-2xl, 1rem);border-style:var(--tw-border-style);border-width:1px;--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);background-color:var(--color-lightest);color:var(--color-on-lightest);border-color:var(--color-border-lightest);border-color:rgb(var(--ax-sys-color-border-lightest-surface));transition:border-radius .12s ease-out,box-shadow .12s ease-out,margin-inline .12s ease-out,width .12s ease-out,border-color .12s ease-out}@media(prefers-reduced-motion:reduce){.axm-user-profile-page .__hero-card{transition-duration:1ms}}.axm-user-profile-page .__hero-card.--stuck{overflow:visible;border-radius:0;--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);margin-inline:-1rem;width:calc(100% + 2rem);border-inline-width:0}@media(min-width:640px){.axm-user-profile-page .__hero-card.--stuck{margin-inline:-1.5rem;width:calc(100% + 3rem)}}@media(min-width:1024px){.axm-user-profile-page .__hero-card.--stuck{margin-inline:-2rem;width:calc(100% + 4rem)}}.axm-user-profile-page .__hero-header{position:relative;overflow:hidden;min-height:9.5rem}.dark .axm-user-profile-page .__hero-cover{background:linear-gradient(90deg,rgb(var(--ax-sys-color-primary-50)),rgb(var(--ax-sys-color-darkest-surface)) 26%,rgb(var(--ax-sys-color-primary-700) / .28) 58%,rgb(var(--ax-sys-color-primary-600) / .38))}.dark .axm-user-profile-page .__hero-wave--primary{background:rgb(var(--ax-sys-color-primary-700) / .28)}.dark .axm-user-profile-page .__hero-wave--soft{background:rgb(var(--ax-sys-color-primary-600) / .18)}.dark .axm-user-profile-page .__hero-wave--light{background:rgb(var(--ax-sys-color-lightest-surface) / .06)}.dark .axm-user-profile-page .__hero-name{color:rgb(var(--ax-sys-color-on-darkest-surface))}.dark .axm-user-profile-page .__hero-subtitle{color:rgb(var(--ax-sys-color-on-darker-surface))}.dark .axm-user-profile-page .__hero-subtitle-item ax-icon{color:rgb(var(--ax-sys-color-primary-300))}.dark .axm-user-profile-page .__hero-meta-item{background:rgb(var(--ax-sys-color-darker-surface) / .45);color:rgb(var(--ax-sys-color-on-darker-surface));border-color:rgb(var(--ax-sys-color-border-darker-surface))}.dark .axm-user-profile-page .__hero-meta-item ax-icon{color:rgb(var(--ax-sys-color-primary-300))}.axm-user-profile-page .__hero-cover{position:absolute;z-index:0;overflow:hidden;inset:0;width:100%;height:100%;background:linear-gradient(90deg,rgb(var(--ax-sys-color-primary-50)),rgb(var(--ax-sys-color-lightest-surface)) 32%,rgb(var(--ax-sys-color-primary-200)) 68%,rgb(var(--ax-sys-color-primary-100)))}.axm-user-profile-page .__hero-wave{pointer-events:none;position:absolute;border-radius:50%}.axm-user-profile-page .__hero-wave--primary{width:56%;height:158%;right:-10%;top:-40%;background:rgb(var(--ax-sys-color-primary-200) / .62);transform:rotate(-7deg)}.axm-user-profile-page .__hero-wave--soft{width:44%;height:132%;right:8%;top:-18%;background:rgb(var(--ax-sys-color-primary-100) / .55);transform:rotate(4deg)}.axm-user-profile-page .__hero-wave--light{width:36%;height:118%;right:2%;bottom:-46%;background:rgb(var(--ax-sys-color-lightest-surface) / .92);transform:rotate(11deg)}.axm-user-profile-page .__hero-content{position:relative;z-index:10;display:flex;flex-direction:column;align-items:center;gap:calc(var(--spacing, .25rem) * 4);padding-inline:calc(var(--spacing, .25rem) * 5);padding-block:calc(var(--spacing, .25rem) * 6)}@media(width>=40rem){.axm-user-profile-page .__hero-content{flex-direction:row}}@media(width>=40rem){.axm-user-profile-page .__hero-content{align-items:center}}@media(width>=40rem){.axm-user-profile-page .__hero-content{gap:calc(var(--spacing, .25rem) * 5)}}@media(width>=40rem){.axm-user-profile-page .__hero-content{padding-inline:calc(var(--spacing, .25rem) * 6)}}@media(width>=40rem){.axm-user-profile-page .__hero-content{padding-block:calc(var(--spacing, .25rem) * 8)}}.axm-user-profile-page .__hero-avatar{position:relative;display:flex;flex-shrink:0;align-items:center;justify-content:center;align-self:center;width:6.5rem;height:6.5rem;border-radius:calc(infinity * 1px);padding:var(--spacing, .25rem);background:rgb(var(--ax-sys-color-lightest-surface));box-shadow:0 6px 18px rgb(var(--ax-sys-color-dark-surface) / .1)}.axm-user-profile-page .__hero-avatar axp-user-avatar{display:block;width:calc(var(--spacing, .25rem) * 24);height:calc(var(--spacing, .25rem) * 24);overflow:hidden;border-radius:calc(infinity * 1px)}.axm-user-profile-page .__avatar-edit{position:absolute;inset-inline-end:calc(var(--spacing, .25rem) * 0);bottom:0;z-index:10;display:flex;align-items:center;justify-content:center;width:calc(var(--spacing, .25rem) * 8);height:calc(var(--spacing, .25rem) * 8);cursor:pointer;border-radius:calc(infinity * 1px);border-style:var(--tw-border-style);border-width:0px;--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / .1)), 0 1px 2px -1px 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);transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration, var(--default-transition-duration, .15s));--tw-duration: .2s;transition-duration:.2s;background:rgb(var(--ax-sys-color-primary-surface));color:rgb(var(--ax-sys-color-on-primary-surface))}.axm-user-profile-page .__avatar-edit:hover{--tw-scale-x: 105%;--tw-scale-y: 105%;--tw-scale-z: 105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.axm-user-profile-page .__hero-details{width:100%;min-width:0;text-align:center}@media(width>=40rem){.axm-user-profile-page .__hero-details{text-align:start}}.axm-user-profile-page .__hero-name{margin:0;font-size:var(--text-xl, 1.25rem);line-height:var(--tw-leading, var(--text-xl--line-height, calc(1.75 / 1.25)));--tw-leading: var(--leading-tight, 1.25);line-height:var(--leading-tight, 1.25);--tw-font-weight: var(--font-weight-bold, 700);font-weight:var(--font-weight-bold, 700);color:rgb(var(--ax-sys-color-primary-950))}@media(width>=40rem){.axm-user-profile-page .__hero-name{font-size:var(--text-2xl, 1.5rem);line-height:var(--tw-leading, var(--text-2xl--line-height, calc(2 / 1.5)))}}.axm-user-profile-page .__hero-subtitle{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;margin-top:calc(var(--spacing, .25rem) * 1.5);margin-bottom:0;column-gap:calc(var(--spacing, .25rem) * 2);row-gap:var(--spacing, .25rem);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-lighter-surface))}@media(width>=40rem){.axm-user-profile-page .__hero-subtitle{justify-content:flex-start}}.axm-user-profile-page .__hero-subtitle-item{display:inline-flex;align-items:center;gap:calc(var(--spacing, .25rem) * 1.5)}.axm-user-profile-page .__hero-subtitle-item ax-icon{color:rgb(var(--ax-sys-color-on-lighter-surface))}.axm-user-profile-page .__hero-subtitle-separator{opacity:45%}.axm-user-profile-page .__hero-meta{margin:0;margin-top:calc(var(--spacing, .25rem) * 2.5);display:flex;list-style-type:none;flex-wrap:wrap;justify-content:center;gap:calc(var(--spacing, .25rem) * 2);padding:0}@media(width>=40rem){.axm-user-profile-page .__hero-meta{justify-content:flex-start}}.axm-user-profile-page .__hero-meta-item{display:inline-flex;align-items:center;gap:calc(var(--spacing, .25rem) * 2);border-radius:calc(infinity * 1px);padding-inline:calc(var(--spacing, .25rem) * 3);padding-block:var(--spacing, .25rem);font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));background:rgb(var(--ax-sys-color-lightest-surface) / .72);color:rgb(var(--ax-sys-color-on-lighter-surface));border:1px solid rgb(var(--ax-sys-color-border-lighter-surface))}.axm-user-profile-page .__hero-meta-item ax-icon{color:rgb(var(--ax-sys-color-primary-500))}.axm-user-profile-page .__hero-meta-label{opacity:70%}.axm-user-profile-page .__hero-meta-value{--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600)}.axm-user-profile-page .__tabs{position:relative;z-index:10;background-color:var(--color-lightest);color:var(--color-on-lightest);border-color:var(--color-border-lightest);padding-inline:calc(var(--spacing, .25rem) * 4);border-top:1px solid rgb(var(--ax-sys-color-border-lighter-surface));background:rgb(var(--ax-sys-color-lightest-surface));--ax-comp-tabs-default-border-radius: 0}@media(width>=40rem){.axm-user-profile-page .__tabs{padding-inline:calc(var(--spacing, .25rem) * 6)}}.axm-user-profile-page .__tabs.with-line.ax-bottom .tabs-scroll-area,.axm-user-profile-page .__tabs.with-line-color.ax-bottom .tabs-scroll-area{box-shadow:none}.axm-user-profile-page .__tabs ax-tab-item{margin-block:0;padding-block:calc(var(--spacing, .25rem) * 3);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)}.axm-user-profile-page .__group-content{width:100%}.axm-user-profile-page .__group-content>*{display:block;width:100%}.axm-user-profile-page .__sections{display:grid;gap:calc(var(--spacing, .25rem) * 5);grid-template-columns:repeat(12,minmax(0,1fr))}.axm-user-profile-page .__section-slot{grid-column:1/-1;grid-row:span var(--section-row-span, 1)}@media(min-width:768px){.axm-user-profile-page .__section-slot{grid-column:span var(--section-col-span, 6)}.axm-user-profile-page .__section-slot.--has-col-start{grid-column:var(--section-col-start) / span var(--section-col-span, 6)}}.axm-user-profile-page .__section-card{overflow:hidden;border-radius:var(--radius-xl, .75rem);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);--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / .1)), 0 1px 2px -1px 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));transition:box-shadow .12s ease-out,border-color .12s ease-out}@media(prefers-reduced-motion:reduce){.axm-user-profile-page .__section-card{transition-duration:1ms}}.axm-user-profile-page .__section-card:has(.__section-card-hit:not(:disabled):hover),.axm-user-profile-page .__section-card:has(.__section-card-hit:not(:disabled):focus-visible){border-color:rgb(var(--ax-sys-color-border-lighter-surface));box-shadow:0 4px 6px -1px rgb(var(--ax-sys-color-dark-surface) / .06),0 8px 20px -4px rgb(var(--ax-sys-color-dark-surface) / .1)}.axm-user-profile-page .__section-card-action{display:flex;width:100%;align-items:center;color:inherit}.axm-user-profile-page .__section-card-action--with-menu{gap:0}.axm-user-profile-page .__section-card-action--static{cursor:default;gap:calc(var(--spacing, .25rem) * 5);padding:calc(var(--spacing, .25rem) * 5);text-align:start}@media(width>=40rem){.axm-user-profile-page .__section-card-action--static{padding:calc(var(--spacing, .25rem) * 6)}}.axm-user-profile-page .__section-card-hit{display:flex;min-width:0;flex:1;align-items:center;gap:calc(var(--spacing, .25rem) * 5);text-align:start;cursor:pointer;border-style:var(--tw-border-style);border-width:0px;background-color:transparent;padding:calc(var(--spacing, .25rem) * 5);color:inherit}@media(width>=40rem){.axm-user-profile-page .__section-card-hit{padding:calc(var(--spacing, .25rem) * 6)}}.axm-user-profile-page .__section-card-hit:focus-visible{outline:2px solid rgb(var(--ax-sys-color-primary-500));outline-offset:-2px}.axm-user-profile-page .__section-card-hit:disabled{cursor:not-allowed;opacity:60%}.axm-user-profile-page .__section-more-actions-wrap{flex-shrink:0;padding-right:calc(var(--spacing, .25rem) * 5)}@media(width>=40rem){.axm-user-profile-page .__section-more-actions-wrap{padding-right:calc(var(--spacing, .25rem) * 6)}}.axm-user-profile-page .__section-icon{display:flex;width:calc(var(--spacing, .25rem) * 14);height:calc(var(--spacing, .25rem) * 14);flex-shrink:0;align-items:center;justify-content:center;border-radius:var(--radius-xl, .75rem);padding:calc(var(--spacing, .25rem) * 3);background-color:rgb(var(--ax-sys-color-primary-50));color:rgb(var(--ax-sys-color-primary-500))}.axm-user-profile-page .__section-copy{min-width:0;flex:1}.axm-user-profile-page .__section-title{margin:0;font-size:var(--text-base, 1rem);line-height:var(--tw-leading, var(--text-base--line-height, 1.5 ));--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-user-profile-page .__section-description{margin-top:var(--spacing, .25rem);margin-bottom:0;font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));--tw-leading: var(--leading-relaxed, 1.625);line-height:var(--leading-relaxed, 1.625);--tw-font-weight: var(--font-weight-normal, 400);font-weight:var(--font-weight-normal, 400);opacity:75%;color:rgb(var(--ax-sys-color-on-lighter-surface))}.axm-user-profile-page .__section-insights{margin:0;margin-top:calc(var(--spacing, .25rem) * 2);display:flex;list-style-type:none;flex-direction:column;gap:var(--spacing, .25rem);padding:0}.axm-user-profile-page .__section-insight{display:grid;align-items:center;font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));--tw-leading: var(--leading-relaxed, 1.625);line-height:var(--leading-relaxed, 1.625);grid-template-columns:1.125rem minmax(0,1fr);column-gap:.625rem;color:rgb(var(--ax-sys-color-on-lighter-surface))}.axm-user-profile-page .__section-insight-icon-wrap{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:1.125rem;height:1.125rem}.axm-user-profile-page .__section-insight-icon-wrap ax-icon{display:flex;align-items:center;justify-content:center;width:.875rem;height:.875rem;font-size:.875rem;line-height:1;color:rgb(var(--ax-sys-color-primary-500))}.axm-user-profile-page .__section-insight-icon-wrap i,.axm-user-profile-page .__section-insight-icon-wrap svg{width:.875rem;height:.875rem;font-size:.875rem}.axm-user-profile-page .__section-insight-text{min-width:0;flex:1;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-normal, 400);font-weight:var(--font-weight-normal, 400);opacity:75%}.axm-user-profile-page .__section-more-actions{margin-left:auto;display:flex;width:calc(var(--spacing, .25rem) * 9);height:calc(var(--spacing, .25rem) * 9);flex-shrink:0;align-items:center;justify-content:center;border-radius:var(--radius-lg, .5rem);color:rgb(var(--ax-sys-color-on-lighter-surface))}.axm-user-profile-page .__sections-empty{border-radius:var(--radius-2xl, 1rem);border-style:var(--tw-border-style);border-width:1px;--tw-border-style: dashed;border-style:dashed;padding-block:calc(var(--spacing, .25rem) * 12);text-align:center;--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / .1)), 0 1px 2px -1px 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);background-color:var(--color-lightest);color:var(--color-on-lightest);border-color:var(--color-border-lightest);grid-column:1/-1;color:rgb(var(--ax-sys-color-on-lighter-surface));border-color:rgb(var(--ax-sys-color-border-lighter-surface))}.axm-user-profile-page .ax-tabs-scroll-area{--tw-shadow: 0 0 #0000 !important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}@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-duration{syntax: \"*\"; inherits: false;}@property --tw-scale-x{syntax: \"*\"; inherits: false; initial-value: 1;}@property --tw-scale-y{syntax: \"*\"; inherits: false; initial-value: 1;}@property --tw-scale-z{syntax: \"*\"; inherits: false; initial-value: 1;}@property --tw-leading{syntax: \"*\"; inherits: false;}@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-duration: initial;--tw-scale-x: 1;--tw-scale-y: 1;--tw-scale-z: 1;--tw-leading: initial;--tw-font-weight: initial}}}\n/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "component", type: i1.AXButtonItemComponent, selector: "ax-button-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }, { kind: "component", type: i1.AXButtonItemListComponent, selector: "ax-button-item-list", inputs: ["items", "closeParentOnClick", "lockOnLoading"], outputs: ["onItemClick"] }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "component", type: i4$1.AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: ["isOpen", "fitParent", "dropdownWidth", "position", "placement", "_target", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i5.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXTabsModule }, { kind: "component", type: i6.AXTabsComponent, selector: "ax-tabs", inputs: ["look", "location", "fitParent", "minWidth", "content"], outputs: ["onActiveTabChanged"] }, { kind: "component", type: i6.AXTabItemComponent, selector: "ax-tab-item", inputs: ["disabled", "text", "key", "headerTemplate", "active"], outputs: ["disabledChange", "onClick", "onBlur", "onFocus", "activeChange"] }, { kind: "directive", type: AXPStickyDirective, selector: "[axpSticky]", inputs: ["axpSticky", "stickyOffset", "stickyParent", "stickyTarget"], outputs: ["isStickyChange"], exportAs: ["axpSticky"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i2.AXTranslatorDirective, selector: "[translate]" }, { kind: "component", type: AXPPageLayoutComponent, selector: "axp-page-layout" }, { kind: "component", type: AXPThemeLayoutBlockComponent, selector: " axp-page-content, axp-page-footer-container, axp-page-footer, axp-page-header, axp-page-header-container, axp-page-toolbar, axp-layout-content, axp-layout-page-content, axp-layout-sections, axp-layout-body, axp-layout-page-body, axp-layout-prefix, axp-layout-suffix, axp-layout-title-bar, axp-layout-title, axp-layout-title-actions, axp-layout-nav-button, axp-layout-description, axp-layout-breadcrumbs, axp-layout-list-action, " }, { kind: "component", type: AXPUserAvatarComponent, selector: "axp-user-avatar", inputs: ["size", "userId"] }, { kind: "directive", type: AXPPageComponentRendererDirective, selector: "[axp-page-component-renderer]", inputs: ["componentKey", "rootContext", "pageConfig", "options"], outputs: ["componentReady"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: AXFormatPipe, name: "format" }, { kind: "pipe", type: i2.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
418
|
-
}
|
|
419
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMUserProfilePageComponent, decorators: [{
|
|
420
|
-
type: Component,
|
|
421
|
-
args: [{ selector: 'axm-user-profile-page', imports: [
|
|
422
|
-
CommonModule,
|
|
423
|
-
AsyncPipe,
|
|
424
|
-
AXFormatPipe,
|
|
425
|
-
RouterModule,
|
|
426
|
-
AXDecoratorModule,
|
|
427
|
-
AXButtonModule,
|
|
428
|
-
AXDropdownModule,
|
|
429
|
-
AXLoadingModule,
|
|
430
|
-
AXTabsModule,
|
|
431
|
-
AXPStickyDirective,
|
|
432
|
-
AXTranslationModule,
|
|
433
|
-
AXPPageLayoutComponent,
|
|
434
|
-
AXPThemeLayoutBlockComponent,
|
|
435
|
-
AXPUserAvatarComponent,
|
|
436
|
-
AXPPageComponentRendererDirective,
|
|
437
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [
|
|
438
|
-
{
|
|
439
|
-
provide: AXPPageLayoutBase,
|
|
440
|
-
useExisting: AXMUserProfilePageComponent,
|
|
441
|
-
},
|
|
442
|
-
], host: { class: 'axm-user-profile-page' }, template: "<axp-page-layout *translate=\"let t\">\n <axp-page-content>\n @if (isLoading()) {\n <div class=\"__loading\">\n <ax-loading></ax-loading>\n </div>\n } @else if (header(); as profileHeader) {\n <div class=\"__shell\">\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\">\u00B7</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 @if (groups().length) {\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 @if (activeGroup(); as group) {\n @if (groupComponentContent(group); as componentContent) {\n <div class=\"__group-content\">\n <div axp-page-component-renderer [componentKey]=\"componentContent.componentKey\"\n [pageConfig]=\"componentContent.pageConfig ?? {}\"></div>\n </div>\n } @else {\n <div class=\"__sections\">\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 class=\"__section-insight\">\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 }} \u00B7 </span>\n }\n <span>{{ insightDate | format: 'timeleft' | async }}</span>\n } @else if (insight.text) {\n {{ insight.text }}\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 @for (section of visibleSections(); 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 }\n </div>\n }\n </axp-page-content>\n</axp-page-layout>", styles: ["@layer properties;.axm-user-profile-page #axp-page-header{display:none}.axm-user-profile-page axp-page-content{padding:0}.axm-user-profile-page .__loading{display:flex;min-height:calc(var(--spacing, .25rem) * 64);align-items:center;justify-content:center}.axm-user-profile-page .__shell{margin-inline:auto;width:100%;padding-inline:calc(var(--spacing, .25rem) * 4);padding-top:calc(var(--spacing, .25rem) * 4);padding-bottom:calc(var(--spacing, .25rem) * 10)}@media(width>=40rem){.axm-user-profile-page .__shell{padding-inline:calc(var(--spacing, .25rem) * 6)}}@media(width>=40rem){.axm-user-profile-page .__shell{padding-top:calc(var(--spacing, .25rem) * 6)}}@media(width>=64rem){.axm-user-profile-page .__shell{padding-inline:calc(var(--spacing, .25rem) * 8)}}.axm-user-profile-page .__hero-card{position:sticky;top:0;z-index:10;margin-bottom:calc(var(--spacing, .25rem) * 6);overflow:hidden;border-radius:var(--radius-2xl, 1rem);border-style:var(--tw-border-style);border-width:1px;--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);background-color:var(--color-lightest);color:var(--color-on-lightest);border-color:var(--color-border-lightest);border-color:rgb(var(--ax-sys-color-border-lightest-surface));transition:border-radius .12s ease-out,box-shadow .12s ease-out,margin-inline .12s ease-out,width .12s ease-out,border-color .12s ease-out}@media(prefers-reduced-motion:reduce){.axm-user-profile-page .__hero-card{transition-duration:1ms}}.axm-user-profile-page .__hero-card.--stuck{overflow:visible;border-radius:0;--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);margin-inline:-1rem;width:calc(100% + 2rem);border-inline-width:0}@media(min-width:640px){.axm-user-profile-page .__hero-card.--stuck{margin-inline:-1.5rem;width:calc(100% + 3rem)}}@media(min-width:1024px){.axm-user-profile-page .__hero-card.--stuck{margin-inline:-2rem;width:calc(100% + 4rem)}}.axm-user-profile-page .__hero-header{position:relative;overflow:hidden;min-height:9.5rem}.dark .axm-user-profile-page .__hero-cover{background:linear-gradient(90deg,rgb(var(--ax-sys-color-primary-50)),rgb(var(--ax-sys-color-darkest-surface)) 26%,rgb(var(--ax-sys-color-primary-700) / .28) 58%,rgb(var(--ax-sys-color-primary-600) / .38))}.dark .axm-user-profile-page .__hero-wave--primary{background:rgb(var(--ax-sys-color-primary-700) / .28)}.dark .axm-user-profile-page .__hero-wave--soft{background:rgb(var(--ax-sys-color-primary-600) / .18)}.dark .axm-user-profile-page .__hero-wave--light{background:rgb(var(--ax-sys-color-lightest-surface) / .06)}.dark .axm-user-profile-page .__hero-name{color:rgb(var(--ax-sys-color-on-darkest-surface))}.dark .axm-user-profile-page .__hero-subtitle{color:rgb(var(--ax-sys-color-on-darker-surface))}.dark .axm-user-profile-page .__hero-subtitle-item ax-icon{color:rgb(var(--ax-sys-color-primary-300))}.dark .axm-user-profile-page .__hero-meta-item{background:rgb(var(--ax-sys-color-darker-surface) / .45);color:rgb(var(--ax-sys-color-on-darker-surface));border-color:rgb(var(--ax-sys-color-border-darker-surface))}.dark .axm-user-profile-page .__hero-meta-item ax-icon{color:rgb(var(--ax-sys-color-primary-300))}.axm-user-profile-page .__hero-cover{position:absolute;z-index:0;overflow:hidden;inset:0;width:100%;height:100%;background:linear-gradient(90deg,rgb(var(--ax-sys-color-primary-50)),rgb(var(--ax-sys-color-lightest-surface)) 32%,rgb(var(--ax-sys-color-primary-200)) 68%,rgb(var(--ax-sys-color-primary-100)))}.axm-user-profile-page .__hero-wave{pointer-events:none;position:absolute;border-radius:50%}.axm-user-profile-page .__hero-wave--primary{width:56%;height:158%;right:-10%;top:-40%;background:rgb(var(--ax-sys-color-primary-200) / .62);transform:rotate(-7deg)}.axm-user-profile-page .__hero-wave--soft{width:44%;height:132%;right:8%;top:-18%;background:rgb(var(--ax-sys-color-primary-100) / .55);transform:rotate(4deg)}.axm-user-profile-page .__hero-wave--light{width:36%;height:118%;right:2%;bottom:-46%;background:rgb(var(--ax-sys-color-lightest-surface) / .92);transform:rotate(11deg)}.axm-user-profile-page .__hero-content{position:relative;z-index:10;display:flex;flex-direction:column;align-items:center;gap:calc(var(--spacing, .25rem) * 4);padding-inline:calc(var(--spacing, .25rem) * 5);padding-block:calc(var(--spacing, .25rem) * 6)}@media(width>=40rem){.axm-user-profile-page .__hero-content{flex-direction:row}}@media(width>=40rem){.axm-user-profile-page .__hero-content{align-items:center}}@media(width>=40rem){.axm-user-profile-page .__hero-content{gap:calc(var(--spacing, .25rem) * 5)}}@media(width>=40rem){.axm-user-profile-page .__hero-content{padding-inline:calc(var(--spacing, .25rem) * 6)}}@media(width>=40rem){.axm-user-profile-page .__hero-content{padding-block:calc(var(--spacing, .25rem) * 8)}}.axm-user-profile-page .__hero-avatar{position:relative;display:flex;flex-shrink:0;align-items:center;justify-content:center;align-self:center;width:6.5rem;height:6.5rem;border-radius:calc(infinity * 1px);padding:var(--spacing, .25rem);background:rgb(var(--ax-sys-color-lightest-surface));box-shadow:0 6px 18px rgb(var(--ax-sys-color-dark-surface) / .1)}.axm-user-profile-page .__hero-avatar axp-user-avatar{display:block;width:calc(var(--spacing, .25rem) * 24);height:calc(var(--spacing, .25rem) * 24);overflow:hidden;border-radius:calc(infinity * 1px)}.axm-user-profile-page .__avatar-edit{position:absolute;inset-inline-end:calc(var(--spacing, .25rem) * 0);bottom:0;z-index:10;display:flex;align-items:center;justify-content:center;width:calc(var(--spacing, .25rem) * 8);height:calc(var(--spacing, .25rem) * 8);cursor:pointer;border-radius:calc(infinity * 1px);border-style:var(--tw-border-style);border-width:0px;--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / .1)), 0 1px 2px -1px 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);transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration, var(--default-transition-duration, .15s));--tw-duration: .2s;transition-duration:.2s;background:rgb(var(--ax-sys-color-primary-surface));color:rgb(var(--ax-sys-color-on-primary-surface))}.axm-user-profile-page .__avatar-edit:hover{--tw-scale-x: 105%;--tw-scale-y: 105%;--tw-scale-z: 105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.axm-user-profile-page .__hero-details{width:100%;min-width:0;text-align:center}@media(width>=40rem){.axm-user-profile-page .__hero-details{text-align:start}}.axm-user-profile-page .__hero-name{margin:0;font-size:var(--text-xl, 1.25rem);line-height:var(--tw-leading, var(--text-xl--line-height, calc(1.75 / 1.25)));--tw-leading: var(--leading-tight, 1.25);line-height:var(--leading-tight, 1.25);--tw-font-weight: var(--font-weight-bold, 700);font-weight:var(--font-weight-bold, 700);color:rgb(var(--ax-sys-color-primary-950))}@media(width>=40rem){.axm-user-profile-page .__hero-name{font-size:var(--text-2xl, 1.5rem);line-height:var(--tw-leading, var(--text-2xl--line-height, calc(2 / 1.5)))}}.axm-user-profile-page .__hero-subtitle{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;margin-top:calc(var(--spacing, .25rem) * 1.5);margin-bottom:0;column-gap:calc(var(--spacing, .25rem) * 2);row-gap:var(--spacing, .25rem);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-lighter-surface))}@media(width>=40rem){.axm-user-profile-page .__hero-subtitle{justify-content:flex-start}}.axm-user-profile-page .__hero-subtitle-item{display:inline-flex;align-items:center;gap:calc(var(--spacing, .25rem) * 1.5)}.axm-user-profile-page .__hero-subtitle-item ax-icon{color:rgb(var(--ax-sys-color-on-lighter-surface))}.axm-user-profile-page .__hero-subtitle-separator{opacity:45%}.axm-user-profile-page .__hero-meta{margin:0;margin-top:calc(var(--spacing, .25rem) * 2.5);display:flex;list-style-type:none;flex-wrap:wrap;justify-content:center;gap:calc(var(--spacing, .25rem) * 2);padding:0}@media(width>=40rem){.axm-user-profile-page .__hero-meta{justify-content:flex-start}}.axm-user-profile-page .__hero-meta-item{display:inline-flex;align-items:center;gap:calc(var(--spacing, .25rem) * 2);border-radius:calc(infinity * 1px);padding-inline:calc(var(--spacing, .25rem) * 3);padding-block:var(--spacing, .25rem);font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));background:rgb(var(--ax-sys-color-lightest-surface) / .72);color:rgb(var(--ax-sys-color-on-lighter-surface));border:1px solid rgb(var(--ax-sys-color-border-lighter-surface))}.axm-user-profile-page .__hero-meta-item ax-icon{color:rgb(var(--ax-sys-color-primary-500))}.axm-user-profile-page .__hero-meta-label{opacity:70%}.axm-user-profile-page .__hero-meta-value{--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600)}.axm-user-profile-page .__tabs{position:relative;z-index:10;background-color:var(--color-lightest);color:var(--color-on-lightest);border-color:var(--color-border-lightest);padding-inline:calc(var(--spacing, .25rem) * 4);border-top:1px solid rgb(var(--ax-sys-color-border-lighter-surface));background:rgb(var(--ax-sys-color-lightest-surface));--ax-comp-tabs-default-border-radius: 0}@media(width>=40rem){.axm-user-profile-page .__tabs{padding-inline:calc(var(--spacing, .25rem) * 6)}}.axm-user-profile-page .__tabs.with-line.ax-bottom .tabs-scroll-area,.axm-user-profile-page .__tabs.with-line-color.ax-bottom .tabs-scroll-area{box-shadow:none}.axm-user-profile-page .__tabs ax-tab-item{margin-block:0;padding-block:calc(var(--spacing, .25rem) * 3);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)}.axm-user-profile-page .__group-content{width:100%}.axm-user-profile-page .__group-content>*{display:block;width:100%}.axm-user-profile-page .__sections{display:grid;gap:calc(var(--spacing, .25rem) * 5);grid-template-columns:repeat(12,minmax(0,1fr))}.axm-user-profile-page .__section-slot{grid-column:1/-1;grid-row:span var(--section-row-span, 1)}@media(min-width:768px){.axm-user-profile-page .__section-slot{grid-column:span var(--section-col-span, 6)}.axm-user-profile-page .__section-slot.--has-col-start{grid-column:var(--section-col-start) / span var(--section-col-span, 6)}}.axm-user-profile-page .__section-card{overflow:hidden;border-radius:var(--radius-xl, .75rem);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);--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / .1)), 0 1px 2px -1px 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));transition:box-shadow .12s ease-out,border-color .12s ease-out}@media(prefers-reduced-motion:reduce){.axm-user-profile-page .__section-card{transition-duration:1ms}}.axm-user-profile-page .__section-card:has(.__section-card-hit:not(:disabled):hover),.axm-user-profile-page .__section-card:has(.__section-card-hit:not(:disabled):focus-visible){border-color:rgb(var(--ax-sys-color-border-lighter-surface));box-shadow:0 4px 6px -1px rgb(var(--ax-sys-color-dark-surface) / .06),0 8px 20px -4px rgb(var(--ax-sys-color-dark-surface) / .1)}.axm-user-profile-page .__section-card-action{display:flex;width:100%;align-items:center;color:inherit}.axm-user-profile-page .__section-card-action--with-menu{gap:0}.axm-user-profile-page .__section-card-action--static{cursor:default;gap:calc(var(--spacing, .25rem) * 5);padding:calc(var(--spacing, .25rem) * 5);text-align:start}@media(width>=40rem){.axm-user-profile-page .__section-card-action--static{padding:calc(var(--spacing, .25rem) * 6)}}.axm-user-profile-page .__section-card-hit{display:flex;min-width:0;flex:1;align-items:center;gap:calc(var(--spacing, .25rem) * 5);text-align:start;cursor:pointer;border-style:var(--tw-border-style);border-width:0px;background-color:transparent;padding:calc(var(--spacing, .25rem) * 5);color:inherit}@media(width>=40rem){.axm-user-profile-page .__section-card-hit{padding:calc(var(--spacing, .25rem) * 6)}}.axm-user-profile-page .__section-card-hit:focus-visible{outline:2px solid rgb(var(--ax-sys-color-primary-500));outline-offset:-2px}.axm-user-profile-page .__section-card-hit:disabled{cursor:not-allowed;opacity:60%}.axm-user-profile-page .__section-more-actions-wrap{flex-shrink:0;padding-right:calc(var(--spacing, .25rem) * 5)}@media(width>=40rem){.axm-user-profile-page .__section-more-actions-wrap{padding-right:calc(var(--spacing, .25rem) * 6)}}.axm-user-profile-page .__section-icon{display:flex;width:calc(var(--spacing, .25rem) * 14);height:calc(var(--spacing, .25rem) * 14);flex-shrink:0;align-items:center;justify-content:center;border-radius:var(--radius-xl, .75rem);padding:calc(var(--spacing, .25rem) * 3);background-color:rgb(var(--ax-sys-color-primary-50));color:rgb(var(--ax-sys-color-primary-500))}.axm-user-profile-page .__section-copy{min-width:0;flex:1}.axm-user-profile-page .__section-title{margin:0;font-size:var(--text-base, 1rem);line-height:var(--tw-leading, var(--text-base--line-height, 1.5 ));--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-user-profile-page .__section-description{margin-top:var(--spacing, .25rem);margin-bottom:0;font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));--tw-leading: var(--leading-relaxed, 1.625);line-height:var(--leading-relaxed, 1.625);--tw-font-weight: var(--font-weight-normal, 400);font-weight:var(--font-weight-normal, 400);opacity:75%;color:rgb(var(--ax-sys-color-on-lighter-surface))}.axm-user-profile-page .__section-insights{margin:0;margin-top:calc(var(--spacing, .25rem) * 2);display:flex;list-style-type:none;flex-direction:column;gap:var(--spacing, .25rem);padding:0}.axm-user-profile-page .__section-insight{display:grid;align-items:center;font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));--tw-leading: var(--leading-relaxed, 1.625);line-height:var(--leading-relaxed, 1.625);grid-template-columns:1.125rem minmax(0,1fr);column-gap:.625rem;color:rgb(var(--ax-sys-color-on-lighter-surface))}.axm-user-profile-page .__section-insight-icon-wrap{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:1.125rem;height:1.125rem}.axm-user-profile-page .__section-insight-icon-wrap ax-icon{display:flex;align-items:center;justify-content:center;width:.875rem;height:.875rem;font-size:.875rem;line-height:1;color:rgb(var(--ax-sys-color-primary-500))}.axm-user-profile-page .__section-insight-icon-wrap i,.axm-user-profile-page .__section-insight-icon-wrap svg{width:.875rem;height:.875rem;font-size:.875rem}.axm-user-profile-page .__section-insight-text{min-width:0;flex:1;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-normal, 400);font-weight:var(--font-weight-normal, 400);opacity:75%}.axm-user-profile-page .__section-more-actions{margin-left:auto;display:flex;width:calc(var(--spacing, .25rem) * 9);height:calc(var(--spacing, .25rem) * 9);flex-shrink:0;align-items:center;justify-content:center;border-radius:var(--radius-lg, .5rem);color:rgb(var(--ax-sys-color-on-lighter-surface))}.axm-user-profile-page .__sections-empty{border-radius:var(--radius-2xl, 1rem);border-style:var(--tw-border-style);border-width:1px;--tw-border-style: dashed;border-style:dashed;padding-block:calc(var(--spacing, .25rem) * 12);text-align:center;--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / .1)), 0 1px 2px -1px 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);background-color:var(--color-lightest);color:var(--color-on-lightest);border-color:var(--color-border-lightest);grid-column:1/-1;color:rgb(var(--ax-sys-color-on-lighter-surface));border-color:rgb(var(--ax-sys-color-border-lighter-surface))}.axm-user-profile-page .ax-tabs-scroll-area{--tw-shadow: 0 0 #0000 !important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}@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-duration{syntax: \"*\"; inherits: false;}@property --tw-scale-x{syntax: \"*\"; inherits: false; initial-value: 1;}@property --tw-scale-y{syntax: \"*\"; inherits: false; initial-value: 1;}@property --tw-scale-z{syntax: \"*\"; inherits: false; initial-value: 1;}@property --tw-leading{syntax: \"*\"; inherits: false;}@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-duration: initial;--tw-scale-x: 1;--tw-scale-y: 1;--tw-scale-z: 1;--tw-leading: initial;--tw-font-weight: initial}}}\n/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */\n"] }]
|
|
443
|
-
}] });
|
|
444
|
-
|
|
445
|
-
export { AXMUserProfilePageComponent };
|
|
446
|
-
//# sourceMappingURL=acorex-platform-module-auth-client-profile-page.component-tbhf7K0V.mjs.map
|