@edsis/angular 22.0.81 → 22.0.84
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NgTemplateOutlet, DOCUMENT } from '@angular/common';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { input, computed, Component, inject, DestroyRef, signal, TemplateRef, Directive,
|
|
3
|
+
import { input, computed, Component, inject, DestroyRef, signal, TemplateRef, Directive, contentChild } from '@angular/core';
|
|
4
4
|
import { RouterLink, RouterOutlet } from '@angular/router';
|
|
5
5
|
import { RuntimeContextService, NativeHostService } from '@edsis/angular/services/runtime';
|
|
6
6
|
import { LayoutService, LayoutComponent, LayoutVerticalComponent, LayoutHorizontalComponent, LayoutEmptyComponent, LayoutNavigationComponent, LayoutContentComponent, DesktopAppBarComponent } from '@edsis/theme/layout';
|
|
@@ -52,7 +52,7 @@ class BlockShellNavigationAvatarComponent {
|
|
|
52
52
|
<ng-container [ngTemplateOutlet]="avatarContent" />
|
|
53
53
|
</Avatar>
|
|
54
54
|
</button>
|
|
55
|
-
} @else if (useAvatar()) {
|
|
55
|
+
} @else if (useAvatar() || showOnlineIndicator()) {
|
|
56
56
|
<Avatar size="sm" [class]="radiusClass()">
|
|
57
57
|
<ng-container [ngTemplateOutlet]="avatarContent" />
|
|
58
58
|
</Avatar>
|
|
@@ -95,7 +95,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
95
95
|
<ng-container [ngTemplateOutlet]="avatarContent" />
|
|
96
96
|
</Avatar>
|
|
97
97
|
</button>
|
|
98
|
-
} @else if (useAvatar()) {
|
|
98
|
+
} @else if (useAvatar() || showOnlineIndicator()) {
|
|
99
99
|
<Avatar size="sm" [class]="radiusClass()">
|
|
100
100
|
<ng-container [ngTemplateOutlet]="avatarContent" />
|
|
101
101
|
</Avatar>
|
|
@@ -1046,7 +1046,6 @@ class BlockShellComponent {
|
|
|
1046
1046
|
...(ngDevMode ? [{ debugName: "contentAriaLabel" }] : /* istanbul ignore next */ []));
|
|
1047
1047
|
navigationPanelOpen = input(false, /* @ts-ignore */
|
|
1048
1048
|
...(ngDevMode ? [{ debugName: "navigationPanelOpen" }] : /* istanbul ignore next */ []));
|
|
1049
|
-
desktopThemeSettingsRequested = output();
|
|
1050
1049
|
runtimeContext = inject(RuntimeContextService, { optional: true });
|
|
1051
1050
|
nativeHost = inject(NativeHostService, { optional: true });
|
|
1052
1051
|
layout = inject(LayoutService);
|
|
@@ -1087,14 +1086,13 @@ class BlockShellComponent {
|
|
|
1087
1086
|
});
|
|
1088
1087
|
}
|
|
1089
1088
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlockShellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1090
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: BlockShellComponent, isStandalone: true, selector: "block-shell", inputs: { navigation: { classPropertyName: "navigation", publicName: "navigation", isSignal: true, isRequired: true, transformFunction: null }, navbarId: { classPropertyName: "navbarId", publicName: "navbarId", isSignal: true, isRequired: false, transformFunction: null }, sidebarNavId: { classPropertyName: "sidebarNavId", publicName: "sidebarNavId", isSignal: true, isRequired: false, transformFunction: null }, shellName: { classPropertyName: "shellName", publicName: "shellName", isSignal: true, isRequired: true, transformFunction: null }, logoText: { classPropertyName: "logoText", publicName: "logoText", isSignal: true, isRequired: false, transformFunction: null }, homePath: { classPropertyName: "homePath", publicName: "homePath", isSignal: true, isRequired: false, transformFunction: null }, userName: { classPropertyName: "userName", publicName: "userName", isSignal: true, isRequired: true, transformFunction: null }, userPosition: { classPropertyName: "userPosition", publicName: "userPosition", isSignal: true, isRequired: true, transformFunction: null }, userPhotoUrl: { classPropertyName: "userPhotoUrl", publicName: "userPhotoUrl", isSignal: true, isRequired: false, transformFunction: null }, topAriaLabel: { classPropertyName: "topAriaLabel", publicName: "topAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, sideAriaLabel: { classPropertyName: "sideAriaLabel", publicName: "sideAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, contentAriaLabel: { classPropertyName: "contentAriaLabel", publicName: "contentAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, navigationPanelOpen: { classPropertyName: "navigationPanelOpen", publicName: "navigationPanelOpen", isSignal: true, isRequired: false, transformFunction: null } },
|
|
1089
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: BlockShellComponent, isStandalone: true, selector: "block-shell", inputs: { navigation: { classPropertyName: "navigation", publicName: "navigation", isSignal: true, isRequired: true, transformFunction: null }, navbarId: { classPropertyName: "navbarId", publicName: "navbarId", isSignal: true, isRequired: false, transformFunction: null }, sidebarNavId: { classPropertyName: "sidebarNavId", publicName: "sidebarNavId", isSignal: true, isRequired: false, transformFunction: null }, shellName: { classPropertyName: "shellName", publicName: "shellName", isSignal: true, isRequired: true, transformFunction: null }, logoText: { classPropertyName: "logoText", publicName: "logoText", isSignal: true, isRequired: false, transformFunction: null }, homePath: { classPropertyName: "homePath", publicName: "homePath", isSignal: true, isRequired: false, transformFunction: null }, userName: { classPropertyName: "userName", publicName: "userName", isSignal: true, isRequired: true, transformFunction: null }, userPosition: { classPropertyName: "userPosition", publicName: "userPosition", isSignal: true, isRequired: true, transformFunction: null }, userPhotoUrl: { classPropertyName: "userPhotoUrl", publicName: "userPhotoUrl", isSignal: true, isRequired: false, transformFunction: null }, topAriaLabel: { classPropertyName: "topAriaLabel", publicName: "topAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, sideAriaLabel: { classPropertyName: "sideAriaLabel", publicName: "sideAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, contentAriaLabel: { classPropertyName: "contentAriaLabel", publicName: "contentAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, navigationPanelOpen: { classPropertyName: "navigationPanelOpen", publicName: "navigationPanelOpen", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, queries: [{ propertyName: "navigationPanel", first: true, predicate: BlockShellNavigationPanelDirective, descendants: true, isSignal: true }, { propertyName: "footerAction", first: true, predicate: BlockShellNavigationFooterActionDirective, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
1091
1090
|
@if (isDesktopAppearance()) {
|
|
1092
1091
|
<DesktopAppBar
|
|
1093
1092
|
[platform]="desktopAppBarPlatform()"
|
|
1094
1093
|
[navigation]="navigation()"
|
|
1095
1094
|
(windowControlRequested)="onDesktopWindowControlRequested($event)"
|
|
1096
1095
|
(windowDragRequested)="onDesktopWindowDragRequested()"
|
|
1097
|
-
(themeSettingsRequested)="desktopThemeSettingsRequested.emit()"
|
|
1098
1096
|
/>
|
|
1099
1097
|
}
|
|
1100
1098
|
|
|
@@ -1190,7 +1188,7 @@ class BlockShellComponent {
|
|
|
1190
1188
|
@if (isDesktopAppearance() && navigationPanelOpen() && navigationPanel()) {
|
|
1191
1189
|
<ng-container [ngTemplateOutlet]="navigationPanel()!.templateRef" />
|
|
1192
1190
|
}
|
|
1193
|
-
`, isInline: true, dependencies: [{ kind: "component", type: LayoutComponent, selector: "Layout", inputs: ["surface", "width", "class"] }, { kind: "component", type: LayoutVerticalComponent, selector: "LayoutVertical", inputs: ["class"] }, { kind: "component", type: LayoutHorizontalComponent, selector: "LayoutHorizontal", inputs: ["class"] }, { kind: "component", type: LayoutEmptyComponent, selector: "LayoutEmpty", inputs: ["class"] }, { kind: "component", type: LayoutNavigationComponent, selector: "LayoutNavigation", inputs: ["landmarkRole", "ariaLabel", "railOffset", "class"] }, { kind: "component", type: LayoutContentComponent, selector: "LayoutContent", inputs: ["class"] }, { kind: "component", type: DesktopAppBarComponent, selector: "DesktopAppBar", inputs: ["class", "avatarInitials", "navigation", "platform"], outputs: ["windowControlRequested", "windowDragRequested", "navigationRequested", "flyoutRequested", "
|
|
1191
|
+
`, isInline: true, dependencies: [{ kind: "component", type: LayoutComponent, selector: "Layout", inputs: ["surface", "width", "class"] }, { kind: "component", type: LayoutVerticalComponent, selector: "LayoutVertical", inputs: ["class"] }, { kind: "component", type: LayoutHorizontalComponent, selector: "LayoutHorizontal", inputs: ["class"] }, { kind: "component", type: LayoutEmptyComponent, selector: "LayoutEmpty", inputs: ["class"] }, { kind: "component", type: LayoutNavigationComponent, selector: "LayoutNavigation", inputs: ["landmarkRole", "ariaLabel", "railOffset", "class"] }, { kind: "component", type: LayoutContentComponent, selector: "LayoutContent", inputs: ["class"] }, { kind: "component", type: DesktopAppBarComponent, selector: "DesktopAppBar", inputs: ["class", "avatarInitials", "navigation", "platform"], outputs: ["windowControlRequested", "windowDragRequested", "navigationRequested", "flyoutRequested", "avatarRequested"] }, { kind: "component", type: BlockShellSidebarNavigationComponent, selector: "block-shell-sidebar-navigation", inputs: ["navigation", "shellName", "logoText", "homePath", "userName", "userPosition", "userPhotoUrl", "ariaLabel", "footerActionTemplate", "type"] }, { kind: "component", type: BlockShellTopNavigationComponent, selector: "block-shell-top-navigation", inputs: ["navigation", "shellName", "logoText", "homePath", "userName", "userPosition", "userPhotoUrl", "footerActionTemplate", "ariaLabel", "type", "flyoutLabel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] });
|
|
1194
1192
|
}
|
|
1195
1193
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlockShellComponent, decorators: [{
|
|
1196
1194
|
type: Component,
|
|
@@ -1219,7 +1217,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
1219
1217
|
[navigation]="navigation()"
|
|
1220
1218
|
(windowControlRequested)="onDesktopWindowControlRequested($event)"
|
|
1221
1219
|
(windowDragRequested)="onDesktopWindowDragRequested()"
|
|
1222
|
-
(themeSettingsRequested)="desktopThemeSettingsRequested.emit()"
|
|
1223
1220
|
/>
|
|
1224
1221
|
}
|
|
1225
1222
|
|
|
@@ -1317,7 +1314,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
1317
1314
|
}
|
|
1318
1315
|
`,
|
|
1319
1316
|
}]
|
|
1320
|
-
}], propDecorators: { navigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigation", required: true }] }], navbarId: [{ type: i0.Input, args: [{ isSignal: true, alias: "navbarId", required: false }] }], sidebarNavId: [{ type: i0.Input, args: [{ isSignal: true, alias: "sidebarNavId", required: false }] }], shellName: [{ type: i0.Input, args: [{ isSignal: true, alias: "shellName", required: true }] }], logoText: [{ type: i0.Input, args: [{ isSignal: true, alias: "logoText", required: false }] }], homePath: [{ type: i0.Input, args: [{ isSignal: true, alias: "homePath", required: false }] }], userName: [{ type: i0.Input, args: [{ isSignal: true, alias: "userName", required: true }] }], userPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "userPosition", required: true }] }], userPhotoUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "userPhotoUrl", required: false }] }], topAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "topAriaLabel", required: false }] }], sideAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "sideAriaLabel", required: false }] }], contentAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentAriaLabel", required: false }] }], navigationPanelOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigationPanelOpen", required: false }] }],
|
|
1317
|
+
}], propDecorators: { navigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigation", required: true }] }], navbarId: [{ type: i0.Input, args: [{ isSignal: true, alias: "navbarId", required: false }] }], sidebarNavId: [{ type: i0.Input, args: [{ isSignal: true, alias: "sidebarNavId", required: false }] }], shellName: [{ type: i0.Input, args: [{ isSignal: true, alias: "shellName", required: true }] }], logoText: [{ type: i0.Input, args: [{ isSignal: true, alias: "logoText", required: false }] }], homePath: [{ type: i0.Input, args: [{ isSignal: true, alias: "homePath", required: false }] }], userName: [{ type: i0.Input, args: [{ isSignal: true, alias: "userName", required: true }] }], userPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "userPosition", required: true }] }], userPhotoUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "userPhotoUrl", required: false }] }], topAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "topAriaLabel", required: false }] }], sideAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "sideAriaLabel", required: false }] }], contentAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentAriaLabel", required: false }] }], navigationPanelOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigationPanelOpen", required: false }] }], navigationPanel: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BlockShellNavigationPanelDirective), { isSignal: true }] }], footerAction: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BlockShellNavigationFooterActionDirective), { isSignal: true }] }] } });
|
|
1321
1318
|
|
|
1322
1319
|
const MAIN_SIDEBAR_NAV_ID = 'main';
|
|
1323
1320
|
function workspaceNavbarId(workspace) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edsis-angular-block-shell.mjs","sources":["../../../library/angular/block/shell/navigation/avatar.component.ts","../../../library/angular/block/shell/navigation/meta.component.ts","../../../library/angular/block/shell/navigation/footer.component.ts","../../../library/angular/block/shell/logo/logo.component.ts","../../../library/angular/block/shell/navigation/header.component.ts","../../../library/angular/block/shell/navigation/sidebar-navigation.component.ts","../../../library/angular/block/shell/navigation/top-navigation.component.ts","../../../library/angular/block/shell/navigation-panel.directive.ts","../../../library/angular/block/shell/navigation-footer-action.directive.ts","../../../library/angular/block/shell/shell.component.ts","../../../library/angular/block/shell/navigation/ids.ts","../../../library/angular/block/shell/edsis-angular-block-shell.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport { Component, computed, input } from '@angular/core';\nimport {\n AvatarBadgeComponent,\n AvatarComponent,\n AvatarFallbackComponent,\n AvatarImageComponent,\n} from '@edsis/component/avatar';\nimport { ButtonComponent } from '@edsis/component/button';\nimport { cn } from '@edsis/component/class';\n\n@Component({\n selector: 'block-shell-navigation-avatar',\n host: {\n class: 'contents',\n },\n template: `\n <!-- size = tinggi logo header: kotak w-10 (2.5rem) dengan AspectRatio 3/2 -->\n @if (asButton()) {\n <button\n Button\n type=\"button\"\n variant=\"ghost\"\n size=\"icon-lg\"\n [class]=\"avatarClasses()\"\n [attr.aria-label]=\"buttonLabel()\"\n >\n <Avatar size=\"sm\" [class]=\"radiusClass()\">\n <ng-container [ngTemplateOutlet]=\"avatarContent\" />\n </Avatar>\n </button>\n } @else if (useAvatar()) {\n <Avatar size=\"sm\" [class]=\"radiusClass()\">\n <ng-container [ngTemplateOutlet]=\"avatarContent\" />\n </Avatar>\n } @else {\n <span [class]=\"avatarClasses()\">\n <ng-container [ngTemplateOutlet]=\"avatarContent\" />\n </span>\n }\n\n <ng-template #avatarContent>\n @if (photoUrl(); as url) {\n <AvatarImage [src]=\"url\" [alt]=\"photoAlt()\" />\n }\n <AvatarFallback>{{ initials() }}</AvatarFallback>\n @if (showOnlineIndicator()) {\n <AvatarBadge class=\"bg-emerald-600\" aria-hidden=\"true\" />\n }\n </ng-template>\n `,\n imports: [\n NgTemplateOutlet,\n AvatarBadgeComponent,\n AvatarComponent,\n AvatarFallbackComponent,\n AvatarImageComponent,\n ButtonComponent,\n ],\n})\nexport class BlockShellNavigationAvatarComponent {\n readonly initials = input.required<string>();\n readonly photoUrl = input<string | undefined>(undefined);\n readonly photoAlt = input('');\n /** Radius mengikuti konteks shell; default mempertahankan avatar persegi. */\n readonly radiusClass = input('rounded-none');\n /** Avatar interaktif dipakai khusus untuk kontrol profil Desktop. */\n readonly asButton = input(false);\n readonly useAvatar = input(false);\n readonly buttonLabel = input('User menu');\n /** Menampilkan indikator online dengan primitive Avatar. */\n readonly showOnlineIndicator = input(false);\n\n protected readonly avatarClasses = computed(() =>\n cn(\n this.asButton()\n ? 'size-11 shrink-0 text-sm font-semibold'\n : 'inline-flex size-[calc(2.5rem*2/3)] shrink-0 items-center justify-center overflow-hidden bg-primary text-xs font-semibold text-primary-foreground',\n this.radiusClass(),\n ),\n );\n}\n","import { Component, input } from '@angular/core';\n\n@Component({\n selector: 'block-shell-navigation-meta',\n host: {\n class: 'contents',\n },\n template: `\n <div [class]=\"containerClass()\">\n <p class=\"truncate text-sm font-semibold tracking-tight text-foreground\">{{ name() }}</p>\n @if (!hideSubtitle()) {\n <p [class]=\"subtitleClass()\">{{ subtitle() }}</p>\n }\n </div>\n `,\n})\nexport class BlockShellNavigationMetaComponent {\n readonly name = input.required<string>();\n readonly subtitle = input.required<string>();\n readonly containerClass = input('min-w-0');\n readonly subtitleClass = input('truncate text-xs text-muted-foreground');\n readonly hideSubtitle = input(false);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { Component, TemplateRef, computed, input } from '@angular/core';\nimport {\n NavigationCollapseExpandedDirective,\n NavigationCollapseRootDirective,\n} from '@edsis/navigation';\n\nimport { BlockShellNavigationAvatarComponent } from './avatar.component';\nimport { BlockShellNavigationMetaComponent } from './meta.component';\n\n@Component({\n selector: 'block-shell-navigation-footer',\n imports: [\n NavigationCollapseRootDirective,\n NavigationCollapseExpandedDirective,\n BlockShellNavigationAvatarComponent,\n BlockShellNavigationMetaComponent,\n NgTemplateOutlet,\n ],\n host: {\n class: 'contents',\n },\n template: `\n @if (collapsible()) {\n <div NavigationCollapseRoot class=\"flex w-full items-center gap-3\">\n <block-shell-navigation-avatar\n [initials]=\"resolvedInitials()\"\n [photoUrl]=\"photoUrl()\"\n [photoAlt]=\"name()\"\n [radiusClass]=\"avatarRadiusClass()\"\n [asButton]=\"avatarButton()\"\n [buttonLabel]=\"avatarButtonLabel()\"\n [useAvatar]=\"useAvatar()\"\n [showOnlineIndicator]=\"avatarOnline()\"\n />\n\n @if (showMeta()) {\n <div *NavigationCollapseExpanded class=\"min-w-0\">\n <block-shell-navigation-meta\n [name]=\"name()\"\n [subtitle]=\"subtitle()\"\n [hideSubtitle]=\"hideSubtitle()\"\n [subtitleClass]=\"'-mt-1 truncate text-xs text-muted-foreground'\"\n />\n </div>\n }\n\n @if (actionTemplate()) {\n <div\n *NavigationCollapseExpanded\n data-navigation-footer-actions\n class=\"ml-auto flex shrink-0 items-center gap-1\"\n >\n <ng-container [ngTemplateOutlet]=\"actionTemplate()\" />\n </div>\n }\n </div>\n } @else {\n <div class=\"flex items-center gap-3\">\n <block-shell-navigation-avatar\n [initials]=\"resolvedInitials()\"\n [photoUrl]=\"photoUrl()\"\n [photoAlt]=\"name()\"\n [radiusClass]=\"avatarRadiusClass()\"\n [asButton]=\"avatarButton()\"\n [buttonLabel]=\"avatarButtonLabel()\"\n [useAvatar]=\"useAvatar()\"\n [showOnlineIndicator]=\"avatarOnline()\"\n />\n @if (showMeta()) {\n <block-shell-navigation-meta\n [name]=\"name()\"\n [subtitle]=\"subtitle()\"\n [hideSubtitle]=\"hideSubtitle()\"\n [containerClass]=\"desktopOnly() ? 'hidden min-w-0 xl:block' : 'min-w-0'\"\n />\n }\n @if (actionTemplate()) {\n <div\n data-navigation-footer-actions\n class=\"ml-auto flex shrink-0 items-center gap-1\"\n >\n <ng-container [ngTemplateOutlet]=\"actionTemplate()\" />\n </div>\n }\n </div>\n }\n `,\n})\nexport class BlockShellNavigationFooterComponent {\n readonly name = input.required<string>();\n readonly subtitle = input.required<string>();\n readonly initials = input<string | undefined>(undefined);\n readonly photoUrl = input<string | undefined>(undefined);\n readonly collapsible = input(false);\n readonly desktopOnly = input(false);\n /** Kelas radius avatar; default mempertahankan avatar persegi pada shell lain. */\n readonly avatarRadiusClass = input('rounded-none');\n /** Sembunyikan seluruh metadata pengguna, termasuk dari DOM. */\n readonly showMeta = input(true);\n readonly hideSubtitle = input(false);\n /** Gunakan elemen button tanpa mengubah tampilan avatar. */\n readonly avatarButton = input(false);\n readonly avatarButtonLabel = input('User menu');\n readonly useAvatar = input(false);\n /** Tampilkan presence badge pada avatar, dipakai khusus footer Desktop. */\n readonly avatarOnline = input(false);\n readonly actionTemplate = input<TemplateRef<unknown> | null>(null);\n\n protected readonly resolvedInitials = computed(() => {\n const explicitInitials = this.initials()?.trim();\n\n if (explicitInitials) {\n return explicitInitials;\n }\n\n const words = this.name()\n .trim()\n .split(/\\s+/)\n .filter((word) => word.length > 0);\n\n return ((words[0]?.[0] ?? '') + (words[1]?.[0] ?? words[0]?.[1] ?? '')).toUpperCase();\n });\n}\n","import { Component, input } from '@angular/core';\nimport { AspectRatioComponent } from '@edsis/component/aspect-ratio';\n\n@Component({\n selector: 'block-shell-logo',\n imports: [AspectRatioComponent],\n host: {\n class: 'contents',\n },\n template: `\n <div class=\"w-10 shrink-0\">\n <AspectRatio [ratio]=\"3 / 2\" class=\"overflow-hidden rounded-none bg-primary\">\n <div\n class=\"flex h-full w-full items-center justify-center px-0.5 text-[0.72rem] font-black leading-none tracking-[-0.08em] text-primary-foreground\"\n style=\"font-family: 'Arial Black', Arial, sans-serif;\"\n >\n {{ text() }}\n </div>\n </AspectRatio>\n </div>\n `,\n})\nexport class BlockShellLogoComponent {\n readonly text = input('ETOS');\n readonly homePath = input<`/${string}`>('/');\n readonly ariaLabel = input('Buka aplikasi');\n}\n","import { Component, computed, input } from '@angular/core';\nimport { RouterLink } from '@angular/router';\nimport {\n NavigationCollapseExpandedDirective,\n NavigationCollapseRootDirective,\n} from '@edsis/navigation';\n\nimport { BlockShellLogoComponent } from '../logo/logo.component';\n\n@Component({\n selector: 'block-shell-navigation-header',\n imports: [\n NavigationCollapseRootDirective,\n NavigationCollapseExpandedDirective,\n RouterLink,\n BlockShellLogoComponent,\n ],\n host: {\n class: 'contents',\n },\n template: `\n @if (collapsible()) {\n <div NavigationCollapseRoot class=\"flex items-center gap-3\">\n <block-shell-logo [text]=\"logoText()\" />\n\n <div *NavigationCollapseExpanded class=\"min-w-0 flex-1\">\n <a\n [routerLink]=\"homePath()\"\n [attr.aria-label]=\"homeLinkAriaLabel()\"\n data-block-shell-home-link\n class=\"block min-w-0 rounded-md px-1 py-0.5 transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\"\n >\n <p class=\"truncate text-sm font-semibold tracking-tight text-foreground\">\n {{ name() }}\n </p>\n </a>\n </div>\n </div>\n } @else {\n <div class=\"flex items-center gap-3\">\n <block-shell-logo [text]=\"logoText()\" />\n\n <a\n [routerLink]=\"homePath()\"\n [attr.aria-label]=\"homeLinkAriaLabel()\"\n data-block-shell-home-link\n class=\"block min-w-0 flex-1 rounded-md px-1 py-0.5 transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\"\n >\n <p class=\"truncate text-sm font-semibold tracking-tight text-foreground\">\n {{ name() }}\n </p>\n </a>\n </div>\n }\n `,\n})\nexport class BlockShellNavigationHeaderComponent {\n readonly name = input.required<string>();\n readonly logoText = input('ETOS');\n readonly homePath = input<`/${string}`>('/');\n readonly collapsible = input(false);\n\n protected readonly homeLinkAriaLabel = computed(() => `Buka ${this.name()}`);\n}\n","import { DOCUMENT, NgTemplateOutlet } from '@angular/common';\nimport { Component, DestroyRef, TemplateRef, computed, inject, input, signal } from '@angular/core';\nimport {\n NavigationAsideFooterDirective,\n NavigationContainerComponent,\n NavigationDockbarComponent,\n NavigationFooterComponent,\n NavigationHeaderComponent,\n NavigationSidebarComponent,\n type NavigationDockbarMode,\n type NavigationItem,\n type NavigationVerticalType,\n} from '@edsis/navigation';\nimport { NavigationService } from '@edsis/navigation/service';\n\nimport { BlockShellNavigationFooterComponent } from './footer.component';\nimport { BlockShellNavigationHeaderComponent } from './header.component';\nimport { BlockShellNavigationMetaComponent } from './meta.component';\n\n@Component({\n selector: 'block-shell-sidebar-navigation',\n imports: [\n NavigationContainerComponent,\n NavigationSidebarComponent,\n NavigationDockbarComponent,\n NavigationHeaderComponent,\n NavigationFooterComponent,\n NavigationAsideFooterDirective,\n BlockShellNavigationHeaderComponent,\n BlockShellNavigationFooterComponent,\n BlockShellNavigationMetaComponent,\n NgTemplateOutlet,\n ],\n host: {\n class: 'contents',\n },\n template: `\n <Navigation\n id=\"main\"\n [data]=\"navigation()\"\n [ariaLabel]=\"ariaLabel()\"\n collapse-tree=\"stairs\"\n class=\"h-full\"\n >\n @if (effectiveType() === 'dockbar') {\n <NavigationDockbar [mode]=\"dockbarMode()\" [typeStyle]=\"navTypeStyle()\">\n <NavigationHeader>\n <block-shell-navigation-header\n [name]=\"shellName()\"\n [logoText]=\"logoText()\"\n [homePath]=\"homePath()\"\n [collapsible]=\"true\"\n />\n </NavigationHeader>\n\n <NavigationFooter class=\"px-3\">\n <block-shell-navigation-footer\n [name]=\"userName()\"\n [subtitle]=\"userPosition()\"\n [photoUrl]=\"userPhotoUrl()\"\n [collapsible]=\"true\"\n avatarRadiusClass=\"rounded-full\"\n [useAvatar]=\"true\"\n [hideSubtitle]=\"true\"\n [actionTemplate]=\"footerActionTemplate()\"\n />\n </NavigationFooter>\n\n <ng-template NavigationAsideFooter>\n <div class=\"flex w-full min-w-0 items-center gap-3\">\n <block-shell-navigation-meta\n [name]=\"userName()\"\n [subtitle]=\"userPosition()\"\n [hideSubtitle]=\"true\"\n [containerClass]=\"'min-w-0 flex-1'\"\n [subtitleClass]=\"'-mt-1 truncate text-xs text-muted-foreground'\"\n />\n @if (footerActionTemplate()) {\n <div class=\"ml-auto shrink-0\">\n <ng-container [ngTemplateOutlet]=\"footerActionTemplate()\" />\n </div>\n }\n </div>\n </ng-template>\n </NavigationDockbar>\n } @else {\n <NavigationSidebar [collapsed]=\"responsiveCollapsed()\" nav-sidebar-collapse>\n <NavigationHeader>\n <block-shell-navigation-header\n [name]=\"shellName()\"\n [logoText]=\"logoText()\"\n [homePath]=\"homePath()\"\n [collapsible]=\"true\"\n />\n </NavigationHeader>\n\n <NavigationFooter class=\"px-3\">\n <block-shell-navigation-footer\n [name]=\"userName()\"\n [subtitle]=\"userPosition()\"\n [photoUrl]=\"userPhotoUrl()\"\n [collapsible]=\"true\"\n avatarRadiusClass=\"rounded-full\"\n [useAvatar]=\"true\"\n [hideSubtitle]=\"true\"\n [actionTemplate]=\"footerActionTemplate()\"\n />\n </NavigationFooter>\n </NavigationSidebar>\n }\n </Navigation>\n `,\n})\nexport class BlockShellSidebarNavigationComponent {\n private readonly documentRef = inject(DOCUMENT);\n private readonly destroyRef = inject(DestroyRef);\n private readonly navigationService = inject(NavigationService);\n\n readonly navigation = input.required<readonly NavigationItem[]>();\n readonly shellName = input.required<string>();\n readonly logoText = input('ETOS');\n readonly homePath = input<`/${string}`>('/');\n readonly userName = input.required<string>();\n readonly userPosition = input.required<string>();\n readonly userPhotoUrl = input<string | undefined>(undefined);\n readonly ariaLabel = input('side navigation');\n readonly footerActionTemplate = input<TemplateRef<unknown> | null>(null);\n /** Fallback type ketika localStorage `nav-type` kosong atau tidak valid untuk orientasi vertikal. */\n readonly type = input<NavigationVerticalType>('sidebar');\n\n protected readonly responsiveCollapsed = signal(this.readResponsiveCollapsed());\n private readonly navigationState = this.navigationService.state('main');\n\n /** State NavigationService menang atas fallback input dan langsung reaktif saat pengaturan diubah. */\n protected readonly effectiveType = computed<NavigationVerticalType>(() => {\n const state = this.navigationState();\n\n if (\n state?.orientation === 'vertical' &&\n (state.type === 'sidebar' || state.type === 'dockbar')\n ) {\n return state.type;\n }\n\n // Sebelum state 'main' terdaftar, hormati type persisted agar registrasi\n // pertama saat refresh tidak menimpa pilihan user (mis. dockbar).\n const persisted = this.navigationService.persistedTypeFor('vertical');\n\n return persisted === 'sidebar' || persisted === 'dockbar' ? persisted : this.type();\n });\n\n /** Di viewport sempit aside sticky akan mendorong konten; paksa drawer agar overlay. */\n protected readonly dockbarMode = computed<NavigationDockbarMode>(() => {\n const state = this.navigationState();\n\n return this.responsiveCollapsed()\n ? 'drawer'\n : state?.type === 'dockbar'\n ? state.dockbarMode\n : 'default';\n });\n\n protected readonly navTypeStyle = computed(() => 'default' as const);\n\n constructor() {\n const windowRef = this.documentRef.defaultView;\n\n if (!windowRef) {\n return;\n }\n\n const mediaQuery = windowRef.matchMedia('(max-width: 767.98px)');\n const syncResponsiveCollapsed = (matches: boolean) => this.responsiveCollapsed.set(matches);\n const handleChange = (event: MediaQueryListEvent) => syncResponsiveCollapsed(event.matches);\n\n syncResponsiveCollapsed(mediaQuery.matches);\n mediaQuery.addEventListener('change', handleChange);\n this.destroyRef.onDestroy(() => mediaQuery.removeEventListener('change', handleChange));\n }\n\n private readResponsiveCollapsed(): boolean {\n return this.documentRef.defaultView?.matchMedia('(max-width: 767.98px)').matches ?? false;\n }\n}\n","import { Component, computed, inject, input, TemplateRef } from '@angular/core';\nimport {\n NavigationContainerComponent,\n NavigationContentComponent,\n NavigationFlyoutComponent,\n NavigationFooterComponent,\n NavigationHeaderComponent,\n NavigationNavbarComponent,\n type NavigationHorizontalType,\n type NavigationItem,\n} from '@edsis/navigation';\nimport { NavigationService } from '@edsis/navigation/service';\nimport { LayoutService } from '@edsis/theme/layout';\nimport { ThemeAppearanceService } from '@edsis/theme/styles';\n\nimport { BlockShellNavigationFooterComponent } from './footer.component';\nimport { BlockShellNavigationHeaderComponent } from './header.component';\n\nconst DESKTOP_NAV_CONTROL_SIZE = 'size-11';\nconst DESKTOP_FLYOUT_ICON_SIZE = 20;\n\n@Component({\n selector: 'block-shell-top-navigation',\n imports: [\n NavigationContainerComponent,\n NavigationContentComponent,\n NavigationNavbarComponent,\n NavigationFlyoutComponent,\n NavigationHeaderComponent,\n NavigationFooterComponent,\n BlockShellNavigationHeaderComponent,\n BlockShellNavigationFooterComponent,\n ],\n host: {\n class: 'contents',\n },\n template: `\n <Navigation\n id=\"main\"\n [data]=\"navigation()\"\n [ariaLabel]=\"ariaLabel()\"\n collapse-tree=\"straight\"\n class=\"h-full\"\n >\n @if (effectiveType() === 'flyout') {\n <NavigationFlyout\n [label]=\"flyoutLabel()\"\n [icon]=\"desktopFlyoutIcon()\"\n [icon-only]=\"flyoutIconOnly()\"\n [trigger-radius-class]=\"desktopFlyoutTriggerRadiusClass()\"\n [trigger-size-class]=\"flyoutTriggerSizeClass()\"\n [trigger-borderless]=\"isDesktopTheme()\"\n [trigger-backgroundless]=\"isDesktopTheme()\"\n [trigger-in-footer]=\"isFooterFlyoutTheme()\"\n [icon-size]=\"desktopFlyoutIconSize()\"\n [nav-type-style]=\"navTypeStyle()\"\n >\n <NavigationHeader>\n <block-shell-navigation-header\n [name]=\"shellName()\"\n [logoText]=\"logoText()\"\n [homePath]=\"homePath()\"\n />\n </NavigationHeader>\n\n @if (isDesktopTheme()) {\n <NavigationContent class=\"ml-auto flex-none items-center\" />\n }\n\n <NavigationFooter class=\"px-3\" [borderless]=\"isDesktopTheme()\">\n <block-shell-navigation-footer\n [name]=\"userName()\"\n [subtitle]=\"userPosition()\"\n [photoUrl]=\"userPhotoUrl()\"\n [desktopOnly]=\"true\"\n [avatarRadiusClass]=\"desktopAvatarRadiusClass()\"\n [showMeta]=\"!isDesktopTheme()\"\n [avatarButton]=\"isDesktopTheme()\"\n [avatarButtonLabel]=\"desktopAvatarButtonLabel()\"\n [useAvatar]=\"!isDesktopTheme()\"\n [avatarOnline]=\"isDesktopTheme()\"\n [actionTemplate]=\"footerActionTemplate()\"\n />\n </NavigationFooter>\n </NavigationFlyout>\n } @else {\n <NavigationNavbar [nav-type-style]=\"navTypeStyle()\">\n <NavigationHeader>\n <block-shell-navigation-header\n [name]=\"shellName()\"\n [logoText]=\"logoText()\"\n [homePath]=\"homePath()\"\n />\n </NavigationHeader>\n\n <NavigationFooter class=\"px-3\" [borderless]=\"isDesktopTheme()\">\n <block-shell-navigation-footer\n [name]=\"userName()\"\n [subtitle]=\"userPosition()\"\n [photoUrl]=\"userPhotoUrl()\"\n [desktopOnly]=\"true\"\n [avatarRadiusClass]=\"desktopAvatarRadiusClass()\"\n [useAvatar]=\"!isDesktopTheme()\"\n [avatarOnline]=\"isDesktopTheme()\"\n [actionTemplate]=\"footerActionTemplate()\"\n />\n </NavigationFooter>\n </NavigationNavbar>\n }\n </Navigation>\n `,\n})\nexport class BlockShellTopNavigationComponent {\n private readonly layout = inject(LayoutService);\n private readonly navigationService = inject(NavigationService);\n private readonly themeAppearance = inject(ThemeAppearanceService);\n\n readonly navigation = input.required<readonly NavigationItem[]>();\n readonly shellName = input.required<string>();\n readonly logoText = input('ETOS');\n readonly homePath = input<`/${string}`>('/');\n readonly userName = input.required<string>();\n readonly userPosition = input.required<string>();\n readonly userPhotoUrl = input<string | undefined>(undefined);\n readonly footerActionTemplate = input<TemplateRef<unknown> | null>(null);\n readonly ariaLabel = input('top navigation');\n /** Fallback type ketika localStorage `nav-type` kosong atau tidak valid untuk orientasi horizontal. */\n readonly type = input<NavigationHorizontalType>('navbar');\n readonly flyoutLabel = input('Menu');\n\n private readonly navigationState = this.navigationService.state('main');\n\n /** State NavigationService menang atas fallback input dan langsung reaktif saat pengaturan diubah. */\n protected readonly effectiveType = computed<NavigationHorizontalType>(() => {\n const state = this.navigationState();\n\n if (\n state?.orientation === 'horizontal' &&\n (state.type === 'navbar' || state.type === 'flyout')\n ) {\n return state.type;\n }\n\n // Sebelum state 'main' terdaftar, hormati type persisted agar registrasi\n // pertama saat refresh tidak menimpa pilihan user (mis. flyout).\n const persisted = this.navigationService.persistedTypeFor('horizontal');\n\n return persisted === 'navbar' || persisted === 'flyout' ? persisted : this.type();\n });\n\n /** Desktop memakai surface nav khusus; rail mempertahankan style navigation border-rail. */\n protected readonly navTypeStyle = computed(() =>\n this.isDesktopTheme()\n ? 'desktop'\n : this.layout.appearance() === 'rail'\n ? 'border-rail'\n : 'default',\n );\n\n /** Tema desktop memakai trigger dashboard tanpa label visual; tema lain mempertahankan label. */\n protected readonly isDesktopTheme = computed(\n () => this.themeAppearance.appearance() === 'desktop',\n );\n protected readonly isBrowserTheme = computed(\n () => this.themeAppearance.appearance() === 'browser',\n );\n protected readonly isRailTheme = computed(() => this.themeAppearance.appearance() === 'rail');\n protected readonly isFooterFlyoutTheme = computed(\n () => this.isBrowserTheme() || this.isRailTheme(),\n );\n protected readonly desktopFlyoutIcon = computed(() =>\n this.isDesktopTheme() ? 'dashboard' : this.isFooterFlyoutTheme() ? 'menu' : null,\n );\n protected readonly flyoutIconOnly = computed(\n () => this.isDesktopTheme() || this.isFooterFlyoutTheme(),\n );\n protected readonly desktopFlyoutTriggerRadiusClass = computed(() =>\n this.isDesktopTheme() ? 'rounded-base' : '',\n );\n protected readonly flyoutTriggerSizeClass = computed(() =>\n this.isDesktopTheme() ? DESKTOP_NAV_CONTROL_SIZE : this.isFooterFlyoutTheme() ? 'size-8' : '',\n );\n protected readonly desktopFlyoutIconSize = computed(() =>\n this.isDesktopTheme() ? DESKTOP_FLYOUT_ICON_SIZE : 18,\n );\n protected readonly desktopAvatarRadiusClass = computed(() =>\n this.isDesktopTheme() ? 'rounded-base' : 'rounded-full',\n );\n protected readonly desktopAvatarButtonLabel = computed(() => `User menu: ${this.userName()}`);\n}\n","import { Directive, TemplateRef, inject } from '@angular/core';\n\n@Directive({ selector: 'ng-template[blockShellNavigationPanel]' })\nexport class BlockShellNavigationPanelDirective {\n readonly templateRef = inject(TemplateRef<unknown>);\n}\n","import { Directive, TemplateRef, inject } from '@angular/core';\n\n@Directive({ selector: 'ng-template[blockShellNavigationFooterAction]' })\nexport class BlockShellNavigationFooterActionDirective {\n readonly templateRef = inject(TemplateRef<unknown>);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { Component, computed, contentChild, inject, input, output } from '@angular/core';\nimport { RouterOutlet } from '@angular/router';\nimport {\n NativeHostService,\n RuntimeContextService,\n type EdsisWindowControlAction,\n} from '@edsis/angular/services/runtime';\nimport {\n DesktopAppBarComponent,\n LayoutService,\n LayoutComponent,\n LayoutContentComponent,\n LayoutEmptyComponent,\n LayoutHorizontalComponent,\n LayoutNavigationComponent,\n LayoutVerticalComponent,\n type DesktopAppBarPlatform,\n} from '@edsis/theme/layout';\nimport { type NavigationItem } from '@edsis/navigation';\n\nimport { BlockShellSidebarNavigationComponent } from './navigation/sidebar-navigation.component';\nimport { BlockShellTopNavigationComponent } from './navigation/top-navigation.component';\nimport { BlockShellNavigationPanelDirective } from './navigation-panel.directive';\nimport { BlockShellNavigationFooterActionDirective } from './navigation-footer-action.directive';\n\n@Component({\n selector: 'block-shell',\n imports: [\n LayoutComponent,\n LayoutVerticalComponent,\n LayoutHorizontalComponent,\n LayoutEmptyComponent,\n LayoutNavigationComponent,\n LayoutContentComponent,\n DesktopAppBarComponent,\n BlockShellSidebarNavigationComponent,\n BlockShellTopNavigationComponent,\n NgTemplateOutlet,\n RouterOutlet,\n ],\n host: {\n class: 'contents',\n },\n template: `\n @if (isDesktopAppearance()) {\n <DesktopAppBar\n [platform]=\"desktopAppBarPlatform()\"\n [navigation]=\"navigation()\"\n (windowControlRequested)=\"onDesktopWindowControlRequested($event)\"\n (windowDragRequested)=\"onDesktopWindowDragRequested()\"\n (themeSettingsRequested)=\"desktopThemeSettingsRequested.emit()\"\n />\n }\n\n <Layout>\n @switch (layout.type()) {\n @case ('horizontal') {\n <LayoutHorizontal>\n @if (!isDesktopAppearance()) {\n <LayoutNavigation [landmarkRole]=\"null\" [ariaLabel]=\"null\">\n <block-shell-top-navigation\n [navigation]=\"navigation()\"\n [shellName]=\"shellName()\"\n [logoText]=\"logoText()\"\n [homePath]=\"homePath()\"\n [userName]=\"userName()\"\n [userPosition]=\"userPosition()\"\n [userPhotoUrl]=\"userPhotoUrl()\"\n [ariaLabel]=\"topAriaLabel()\"\n [footerActionTemplate]=\"footerAction()?.templateRef ?? null\"\n />\n </LayoutNavigation>\n }\n\n <LayoutContent\n data-block-shell-content\n tabindex=\"-1\"\n [attr.aria-label]=\"contentAriaLabel()\"\n >\n <router-outlet />\n </LayoutContent>\n\n @if (navigationPanel()) {\n <div hidden aria-hidden=\"true\" data-block-shell-overlay-panel>\n <ng-container [ngTemplateOutlet]=\"navigationPanel()!.templateRef\" />\n </div>\n }\n </LayoutHorizontal>\n }\n\n @case ('empty') {\n <LayoutEmpty>\n <LayoutContent\n data-block-shell-content\n tabindex=\"-1\"\n [attr.aria-label]=\"contentAriaLabel()\"\n >\n <router-outlet />\n </LayoutContent>\n </LayoutEmpty>\n }\n\n @default {\n <LayoutVertical>\n @if (!isDesktopAppearance()) {\n <LayoutNavigation [landmarkRole]=\"null\" [ariaLabel]=\"null\">\n <div\n class=\"contents\"\n [hidden]=\"navigationPanelActive()\"\n [attr.inert]=\"navigationPanelActive() ? '' : null\"\n [attr.aria-hidden]=\"navigationPanelActive() ? 'true' : null\"\n >\n <block-shell-sidebar-navigation\n [navigation]=\"navigation()\"\n [shellName]=\"shellName()\"\n [logoText]=\"logoText()\"\n [homePath]=\"homePath()\"\n [userName]=\"userName()\"\n [userPosition]=\"userPosition()\"\n [userPhotoUrl]=\"userPhotoUrl()\"\n [ariaLabel]=\"sideAriaLabel()\"\n [footerActionTemplate]=\"footerAction()?.templateRef ?? null\"\n />\n </div>\n\n @if (navigationPanelActive()) {\n <ng-container [ngTemplateOutlet]=\"navigationPanel()!.templateRef\" />\n }\n </LayoutNavigation>\n }\n\n <LayoutContent\n data-block-shell-content\n tabindex=\"-1\"\n [attr.aria-label]=\"contentAriaLabel()\"\n >\n <router-outlet />\n </LayoutContent>\n </LayoutVertical>\n }\n }\n </Layout>\n\n @if (isDesktopAppearance() && navigationPanelOpen() && navigationPanel()) {\n <ng-container [ngTemplateOutlet]=\"navigationPanel()!.templateRef\" />\n }\n `,\n})\nexport class BlockShellComponent {\n readonly navigation = input.required<readonly NavigationItem[]>();\n /**\n * @deprecated Tidak lagi dipakai. Navigasi layout browser/rail memakai id `main`, sedangkan\n * app bar desktop memakai `desktop-main` agar pergantian appearance tidak memiliki owner ganda.\n * Input dipertahankan sementara demi kompatibilitas pemanggil.\n */\n readonly navbarId = input('main');\n /** @deprecated Tidak lagi dipakai. Lihat kontrak ownership navigation pada `navbarId`. */\n readonly sidebarNavId = input('main');\n readonly shellName = input.required<string>();\n readonly logoText = input('ETOS');\n readonly homePath = input<`/${string}`>('/');\n readonly userName = input.required<string>();\n readonly userPosition = input.required<string>();\n readonly userPhotoUrl = input<string | undefined>(undefined);\n readonly topAriaLabel = input('top navigation');\n readonly sideAriaLabel = input('side navigation');\n readonly contentAriaLabel = input('layout content');\n readonly navigationPanelOpen = input(false);\n readonly desktopThemeSettingsRequested = output<void>();\n\n private readonly runtimeContext = inject(RuntimeContextService, { optional: true });\n private readonly nativeHost = inject(NativeHostService, { optional: true });\n\n protected readonly layout: LayoutService = inject(LayoutService);\n protected readonly isDesktopAppearance = computed(() => this.layout.appearance() === 'desktop');\n protected readonly desktopAppBarPlatform = computed<DesktopAppBarPlatform | null | undefined>(\n () => {\n const context = this.runtimeContext?.context();\n if (!context || context.host === 'browser') {\n return undefined;\n }\n\n return context.deviceType === 'macos' || context.deviceType === 'windows'\n ? context.deviceType\n : null;\n },\n );\n protected readonly navigationPanel = contentChild(BlockShellNavigationPanelDirective);\n protected readonly footerAction = contentChild(BlockShellNavigationFooterActionDirective);\n protected readonly navigationPanelActive = computed(\n () =>\n this.layout.type() === 'vertical' && this.navigationPanelOpen() && !!this.navigationPanel(),\n );\n\n protected onDesktopWindowControlRequested(action: EdsisWindowControlAction): void {\n const nativeHost = this.nativeHost;\n if (!nativeHost?.supports('window-controls')) {\n return;\n }\n\n void nativeHost.emitWindowControl(action).catch((error: unknown) => {\n console.error(`Failed to run window control: ${action}`, error);\n });\n }\n\n protected onDesktopWindowDragRequested(): void {\n const nativeHost = this.nativeHost;\n if (!nativeHost?.supports('window-controls')) {\n return;\n }\n\n void nativeHost.startDragging().catch((error: unknown) => {\n console.error('Failed to start window dragging', error);\n });\n }\n}\n","export const MAIN_SIDEBAR_NAV_ID = 'main';\n\nexport function workspaceNavbarId(workspace: string): `${string}-navbar` {\n return `${workspace}-navbar` as `${string}-navbar`;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;MA4Da,mCAAmC,CAAA;IACrC,QAAQ,GAAG,KAAK,CAAC,QAAQ;iFAAU;IACnC,QAAQ,GAAG,KAAK,CAAqB,SAAS;iFAAC;IAC/C,QAAQ,GAAG,KAAK,CAAC,EAAE;iFAAC;;IAEpB,WAAW,GAAG,KAAK,CAAC,cAAc;oFAAC;;IAEnC,QAAQ,GAAG,KAAK,CAAC,KAAK;iFAAC;IACvB,SAAS,GAAG,KAAK,CAAC,KAAK;kFAAC;IACxB,WAAW,GAAG,KAAK,CAAC,WAAW;oFAAC;;IAEhC,mBAAmB,GAAG,KAAK,CAAC,KAAK;4FAAC;IAExB,aAAa,GAAG,QAAQ,CAAC,MAC1C,EAAE,CACA,IAAI,CAAC,QAAQ;AACX,UAAE;AACF,UAAE,mJAAmJ,EACvJ,IAAI,CAAC,WAAW,EAAE,CACnB;sFACF;uGApBU,mCAAmC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAnC,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,mCAAmC,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,+BAAA,EAAA,MAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,E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AAA,EAAA,CAAA,UAAA,CAAA,MAAA,kCAAkC,8FACrC,yCAAyC,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AC7LnF,MAAM,mBAAmB,GAAG;AAE7B,SAAU,iBAAiB,CAAC,SAAiB,EAAA;IACjD,OAAO,CAAA,EAAG,SAAS,CAAA,OAAA,CAA+B;AACpD;;ACJA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"edsis-angular-block-shell.mjs","sources":["../../../library/angular/block/shell/navigation/avatar.component.ts","../../../library/angular/block/shell/navigation/meta.component.ts","../../../library/angular/block/shell/navigation/footer.component.ts","../../../library/angular/block/shell/logo/logo.component.ts","../../../library/angular/block/shell/navigation/header.component.ts","../../../library/angular/block/shell/navigation/sidebar-navigation.component.ts","../../../library/angular/block/shell/navigation/top-navigation.component.ts","../../../library/angular/block/shell/navigation-panel.directive.ts","../../../library/angular/block/shell/navigation-footer-action.directive.ts","../../../library/angular/block/shell/shell.component.ts","../../../library/angular/block/shell/navigation/ids.ts","../../../library/angular/block/shell/edsis-angular-block-shell.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport { Component, computed, input } from '@angular/core';\nimport {\n AvatarBadgeComponent,\n AvatarComponent,\n AvatarFallbackComponent,\n AvatarImageComponent,\n} from '@edsis/component/avatar';\nimport { ButtonComponent } from '@edsis/component/button';\nimport { cn } from '@edsis/component/class';\n\n@Component({\n selector: 'block-shell-navigation-avatar',\n host: {\n class: 'contents',\n },\n template: `\n <!-- size = tinggi logo header: kotak w-10 (2.5rem) dengan AspectRatio 3/2 -->\n @if (asButton()) {\n <button\n Button\n type=\"button\"\n variant=\"ghost\"\n size=\"icon-lg\"\n [class]=\"avatarClasses()\"\n [attr.aria-label]=\"buttonLabel()\"\n >\n <Avatar size=\"sm\" [class]=\"radiusClass()\">\n <ng-container [ngTemplateOutlet]=\"avatarContent\" />\n </Avatar>\n </button>\n } @else if (useAvatar() || showOnlineIndicator()) {\n <Avatar size=\"sm\" [class]=\"radiusClass()\">\n <ng-container [ngTemplateOutlet]=\"avatarContent\" />\n </Avatar>\n } @else {\n <span [class]=\"avatarClasses()\">\n <ng-container [ngTemplateOutlet]=\"avatarContent\" />\n </span>\n }\n\n <ng-template #avatarContent>\n @if (photoUrl(); as url) {\n <AvatarImage [src]=\"url\" [alt]=\"photoAlt()\" />\n }\n <AvatarFallback>{{ initials() }}</AvatarFallback>\n @if (showOnlineIndicator()) {\n <AvatarBadge class=\"bg-emerald-600\" aria-hidden=\"true\" />\n }\n </ng-template>\n `,\n imports: [\n NgTemplateOutlet,\n AvatarBadgeComponent,\n AvatarComponent,\n AvatarFallbackComponent,\n AvatarImageComponent,\n ButtonComponent,\n ],\n})\nexport class BlockShellNavigationAvatarComponent {\n readonly initials = input.required<string>();\n readonly photoUrl = input<string | undefined>(undefined);\n readonly photoAlt = input('');\n /** Radius mengikuti konteks shell; default mempertahankan avatar persegi. */\n readonly radiusClass = input('rounded-none');\n /** Avatar interaktif dipakai khusus untuk kontrol profil Desktop. */\n readonly asButton = input(false);\n readonly useAvatar = input(false);\n readonly buttonLabel = input('User menu');\n /** Menampilkan indikator online dengan primitive Avatar. */\n readonly showOnlineIndicator = input(false);\n\n protected readonly avatarClasses = computed(() =>\n cn(\n this.asButton()\n ? 'size-11 shrink-0 text-sm font-semibold'\n : 'inline-flex size-[calc(2.5rem*2/3)] shrink-0 items-center justify-center overflow-hidden bg-primary text-xs font-semibold text-primary-foreground',\n this.radiusClass(),\n ),\n );\n}\n","import { Component, input } from '@angular/core';\n\n@Component({\n selector: 'block-shell-navigation-meta',\n host: {\n class: 'contents',\n },\n template: `\n <div [class]=\"containerClass()\">\n <p class=\"truncate text-sm font-semibold tracking-tight text-foreground\">{{ name() }}</p>\n @if (!hideSubtitle()) {\n <p [class]=\"subtitleClass()\">{{ subtitle() }}</p>\n }\n </div>\n `,\n})\nexport class BlockShellNavigationMetaComponent {\n readonly name = input.required<string>();\n readonly subtitle = input.required<string>();\n readonly containerClass = input('min-w-0');\n readonly subtitleClass = input('truncate text-xs text-muted-foreground');\n readonly hideSubtitle = input(false);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { Component, TemplateRef, computed, input } from '@angular/core';\nimport {\n NavigationCollapseExpandedDirective,\n NavigationCollapseRootDirective,\n} from '@edsis/navigation';\n\nimport { BlockShellNavigationAvatarComponent } from './avatar.component';\nimport { BlockShellNavigationMetaComponent } from './meta.component';\n\n@Component({\n selector: 'block-shell-navigation-footer',\n imports: [\n NavigationCollapseRootDirective,\n NavigationCollapseExpandedDirective,\n BlockShellNavigationAvatarComponent,\n BlockShellNavigationMetaComponent,\n NgTemplateOutlet,\n ],\n host: {\n class: 'contents',\n },\n template: `\n @if (collapsible()) {\n <div NavigationCollapseRoot class=\"flex w-full items-center gap-3\">\n <block-shell-navigation-avatar\n [initials]=\"resolvedInitials()\"\n [photoUrl]=\"photoUrl()\"\n [photoAlt]=\"name()\"\n [radiusClass]=\"avatarRadiusClass()\"\n [asButton]=\"avatarButton()\"\n [buttonLabel]=\"avatarButtonLabel()\"\n [useAvatar]=\"useAvatar()\"\n [showOnlineIndicator]=\"avatarOnline()\"\n />\n\n @if (showMeta()) {\n <div *NavigationCollapseExpanded class=\"min-w-0\">\n <block-shell-navigation-meta\n [name]=\"name()\"\n [subtitle]=\"subtitle()\"\n [hideSubtitle]=\"hideSubtitle()\"\n [subtitleClass]=\"'-mt-1 truncate text-xs text-muted-foreground'\"\n />\n </div>\n }\n\n @if (actionTemplate()) {\n <div\n *NavigationCollapseExpanded\n data-navigation-footer-actions\n class=\"ml-auto flex shrink-0 items-center gap-1\"\n >\n <ng-container [ngTemplateOutlet]=\"actionTemplate()\" />\n </div>\n }\n </div>\n } @else {\n <div class=\"flex items-center gap-3\">\n <block-shell-navigation-avatar\n [initials]=\"resolvedInitials()\"\n [photoUrl]=\"photoUrl()\"\n [photoAlt]=\"name()\"\n [radiusClass]=\"avatarRadiusClass()\"\n [asButton]=\"avatarButton()\"\n [buttonLabel]=\"avatarButtonLabel()\"\n [useAvatar]=\"useAvatar()\"\n [showOnlineIndicator]=\"avatarOnline()\"\n />\n @if (showMeta()) {\n <block-shell-navigation-meta\n [name]=\"name()\"\n [subtitle]=\"subtitle()\"\n [hideSubtitle]=\"hideSubtitle()\"\n [containerClass]=\"desktopOnly() ? 'hidden min-w-0 xl:block' : 'min-w-0'\"\n />\n }\n @if (actionTemplate()) {\n <div\n data-navigation-footer-actions\n class=\"ml-auto flex shrink-0 items-center gap-1\"\n >\n <ng-container [ngTemplateOutlet]=\"actionTemplate()\" />\n </div>\n }\n </div>\n }\n `,\n})\nexport class BlockShellNavigationFooterComponent {\n readonly name = input.required<string>();\n readonly subtitle = input.required<string>();\n readonly initials = input<string | undefined>(undefined);\n readonly photoUrl = input<string | undefined>(undefined);\n readonly collapsible = input(false);\n readonly desktopOnly = input(false);\n /** Kelas radius avatar; default mempertahankan avatar persegi pada shell lain. */\n readonly avatarRadiusClass = input('rounded-none');\n /** Sembunyikan seluruh metadata pengguna, termasuk dari DOM. */\n readonly showMeta = input(true);\n readonly hideSubtitle = input(false);\n /** Gunakan elemen button tanpa mengubah tampilan avatar. */\n readonly avatarButton = input(false);\n readonly avatarButtonLabel = input('User menu');\n readonly useAvatar = input(false);\n /** Tampilkan presence badge pada avatar, dipakai khusus footer Desktop. */\n readonly avatarOnline = input(false);\n readonly actionTemplate = input<TemplateRef<unknown> | null>(null);\n\n protected readonly resolvedInitials = computed(() => {\n const explicitInitials = this.initials()?.trim();\n\n if (explicitInitials) {\n return explicitInitials;\n }\n\n const words = this.name()\n .trim()\n .split(/\\s+/)\n .filter((word) => word.length > 0);\n\n return ((words[0]?.[0] ?? '') + (words[1]?.[0] ?? words[0]?.[1] ?? '')).toUpperCase();\n });\n}\n","import { Component, input } from '@angular/core';\nimport { AspectRatioComponent } from '@edsis/component/aspect-ratio';\n\n@Component({\n selector: 'block-shell-logo',\n imports: [AspectRatioComponent],\n host: {\n class: 'contents',\n },\n template: `\n <div class=\"w-10 shrink-0\">\n <AspectRatio [ratio]=\"3 / 2\" class=\"overflow-hidden rounded-none bg-primary\">\n <div\n class=\"flex h-full w-full items-center justify-center px-0.5 text-[0.72rem] font-black leading-none tracking-[-0.08em] text-primary-foreground\"\n style=\"font-family: 'Arial Black', Arial, sans-serif;\"\n >\n {{ text() }}\n </div>\n </AspectRatio>\n </div>\n `,\n})\nexport class BlockShellLogoComponent {\n readonly text = input('ETOS');\n readonly homePath = input<`/${string}`>('/');\n readonly ariaLabel = input('Buka aplikasi');\n}\n","import { Component, computed, input } from '@angular/core';\nimport { RouterLink } from '@angular/router';\nimport {\n NavigationCollapseExpandedDirective,\n NavigationCollapseRootDirective,\n} from '@edsis/navigation';\n\nimport { BlockShellLogoComponent } from '../logo/logo.component';\n\n@Component({\n selector: 'block-shell-navigation-header',\n imports: [\n NavigationCollapseRootDirective,\n NavigationCollapseExpandedDirective,\n RouterLink,\n BlockShellLogoComponent,\n ],\n host: {\n class: 'contents',\n },\n template: `\n @if (collapsible()) {\n <div NavigationCollapseRoot class=\"flex items-center gap-3\">\n <block-shell-logo [text]=\"logoText()\" />\n\n <div *NavigationCollapseExpanded class=\"min-w-0 flex-1\">\n <a\n [routerLink]=\"homePath()\"\n [attr.aria-label]=\"homeLinkAriaLabel()\"\n data-block-shell-home-link\n class=\"block min-w-0 rounded-md px-1 py-0.5 transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\"\n >\n <p class=\"truncate text-sm font-semibold tracking-tight text-foreground\">\n {{ name() }}\n </p>\n </a>\n </div>\n </div>\n } @else {\n <div class=\"flex items-center gap-3\">\n <block-shell-logo [text]=\"logoText()\" />\n\n <a\n [routerLink]=\"homePath()\"\n [attr.aria-label]=\"homeLinkAriaLabel()\"\n data-block-shell-home-link\n class=\"block min-w-0 flex-1 rounded-md px-1 py-0.5 transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\"\n >\n <p class=\"truncate text-sm font-semibold tracking-tight text-foreground\">\n {{ name() }}\n </p>\n </a>\n </div>\n }\n `,\n})\nexport class BlockShellNavigationHeaderComponent {\n readonly name = input.required<string>();\n readonly logoText = input('ETOS');\n readonly homePath = input<`/${string}`>('/');\n readonly collapsible = input(false);\n\n protected readonly homeLinkAriaLabel = computed(() => `Buka ${this.name()}`);\n}\n","import { DOCUMENT, NgTemplateOutlet } from '@angular/common';\nimport { Component, DestroyRef, TemplateRef, computed, inject, input, signal } from '@angular/core';\nimport {\n NavigationAsideFooterDirective,\n NavigationContainerComponent,\n NavigationDockbarComponent,\n NavigationFooterComponent,\n NavigationHeaderComponent,\n NavigationSidebarComponent,\n type NavigationDockbarMode,\n type NavigationItem,\n type NavigationVerticalType,\n} from '@edsis/navigation';\nimport { NavigationService } from '@edsis/navigation/service';\n\nimport { BlockShellNavigationFooterComponent } from './footer.component';\nimport { BlockShellNavigationHeaderComponent } from './header.component';\nimport { BlockShellNavigationMetaComponent } from './meta.component';\n\n@Component({\n selector: 'block-shell-sidebar-navigation',\n imports: [\n NavigationContainerComponent,\n NavigationSidebarComponent,\n NavigationDockbarComponent,\n NavigationHeaderComponent,\n NavigationFooterComponent,\n NavigationAsideFooterDirective,\n BlockShellNavigationHeaderComponent,\n BlockShellNavigationFooterComponent,\n BlockShellNavigationMetaComponent,\n NgTemplateOutlet,\n ],\n host: {\n class: 'contents',\n },\n template: `\n <Navigation\n id=\"main\"\n [data]=\"navigation()\"\n [ariaLabel]=\"ariaLabel()\"\n collapse-tree=\"stairs\"\n class=\"h-full\"\n >\n @if (effectiveType() === 'dockbar') {\n <NavigationDockbar [mode]=\"dockbarMode()\" [typeStyle]=\"navTypeStyle()\">\n <NavigationHeader>\n <block-shell-navigation-header\n [name]=\"shellName()\"\n [logoText]=\"logoText()\"\n [homePath]=\"homePath()\"\n [collapsible]=\"true\"\n />\n </NavigationHeader>\n\n <NavigationFooter class=\"px-3\">\n <block-shell-navigation-footer\n [name]=\"userName()\"\n [subtitle]=\"userPosition()\"\n [photoUrl]=\"userPhotoUrl()\"\n [collapsible]=\"true\"\n avatarRadiusClass=\"rounded-full\"\n [useAvatar]=\"true\"\n [hideSubtitle]=\"true\"\n [actionTemplate]=\"footerActionTemplate()\"\n />\n </NavigationFooter>\n\n <ng-template NavigationAsideFooter>\n <div class=\"flex w-full min-w-0 items-center gap-3\">\n <block-shell-navigation-meta\n [name]=\"userName()\"\n [subtitle]=\"userPosition()\"\n [hideSubtitle]=\"true\"\n [containerClass]=\"'min-w-0 flex-1'\"\n [subtitleClass]=\"'-mt-1 truncate text-xs text-muted-foreground'\"\n />\n @if (footerActionTemplate()) {\n <div class=\"ml-auto shrink-0\">\n <ng-container [ngTemplateOutlet]=\"footerActionTemplate()\" />\n </div>\n }\n </div>\n </ng-template>\n </NavigationDockbar>\n } @else {\n <NavigationSidebar [collapsed]=\"responsiveCollapsed()\" nav-sidebar-collapse>\n <NavigationHeader>\n <block-shell-navigation-header\n [name]=\"shellName()\"\n [logoText]=\"logoText()\"\n [homePath]=\"homePath()\"\n [collapsible]=\"true\"\n />\n </NavigationHeader>\n\n <NavigationFooter class=\"px-3\">\n <block-shell-navigation-footer\n [name]=\"userName()\"\n [subtitle]=\"userPosition()\"\n [photoUrl]=\"userPhotoUrl()\"\n [collapsible]=\"true\"\n avatarRadiusClass=\"rounded-full\"\n [useAvatar]=\"true\"\n [hideSubtitle]=\"true\"\n [actionTemplate]=\"footerActionTemplate()\"\n />\n </NavigationFooter>\n </NavigationSidebar>\n }\n </Navigation>\n `,\n})\nexport class BlockShellSidebarNavigationComponent {\n private readonly documentRef = inject(DOCUMENT);\n private readonly destroyRef = inject(DestroyRef);\n private readonly navigationService = inject(NavigationService);\n\n readonly navigation = input.required<readonly NavigationItem[]>();\n readonly shellName = input.required<string>();\n readonly logoText = input('ETOS');\n readonly homePath = input<`/${string}`>('/');\n readonly userName = input.required<string>();\n readonly userPosition = input.required<string>();\n readonly userPhotoUrl = input<string | undefined>(undefined);\n readonly ariaLabel = input('side navigation');\n readonly footerActionTemplate = input<TemplateRef<unknown> | null>(null);\n /** Fallback type ketika localStorage `nav-type` kosong atau tidak valid untuk orientasi vertikal. */\n readonly type = input<NavigationVerticalType>('sidebar');\n\n protected readonly responsiveCollapsed = signal(this.readResponsiveCollapsed());\n private readonly navigationState = this.navigationService.state('main');\n\n /** State NavigationService menang atas fallback input dan langsung reaktif saat pengaturan diubah. */\n protected readonly effectiveType = computed<NavigationVerticalType>(() => {\n const state = this.navigationState();\n\n if (\n state?.orientation === 'vertical' &&\n (state.type === 'sidebar' || state.type === 'dockbar')\n ) {\n return state.type;\n }\n\n // Sebelum state 'main' terdaftar, hormati type persisted agar registrasi\n // pertama saat refresh tidak menimpa pilihan user (mis. dockbar).\n const persisted = this.navigationService.persistedTypeFor('vertical');\n\n return persisted === 'sidebar' || persisted === 'dockbar' ? persisted : this.type();\n });\n\n /** Di viewport sempit aside sticky akan mendorong konten; paksa drawer agar overlay. */\n protected readonly dockbarMode = computed<NavigationDockbarMode>(() => {\n const state = this.navigationState();\n\n return this.responsiveCollapsed()\n ? 'drawer'\n : state?.type === 'dockbar'\n ? state.dockbarMode\n : 'default';\n });\n\n protected readonly navTypeStyle = computed(() => 'default' as const);\n\n constructor() {\n const windowRef = this.documentRef.defaultView;\n\n if (!windowRef) {\n return;\n }\n\n const mediaQuery = windowRef.matchMedia('(max-width: 767.98px)');\n const syncResponsiveCollapsed = (matches: boolean) => this.responsiveCollapsed.set(matches);\n const handleChange = (event: MediaQueryListEvent) => syncResponsiveCollapsed(event.matches);\n\n syncResponsiveCollapsed(mediaQuery.matches);\n mediaQuery.addEventListener('change', handleChange);\n this.destroyRef.onDestroy(() => mediaQuery.removeEventListener('change', handleChange));\n }\n\n private readResponsiveCollapsed(): boolean {\n return this.documentRef.defaultView?.matchMedia('(max-width: 767.98px)').matches ?? false;\n }\n}\n","import { Component, computed, inject, input, TemplateRef } from '@angular/core';\nimport {\n NavigationContainerComponent,\n NavigationContentComponent,\n NavigationFlyoutComponent,\n NavigationFooterComponent,\n NavigationHeaderComponent,\n NavigationNavbarComponent,\n type NavigationHorizontalType,\n type NavigationItem,\n} from '@edsis/navigation';\nimport { NavigationService } from '@edsis/navigation/service';\nimport { LayoutService } from '@edsis/theme/layout';\nimport { ThemeAppearanceService } from '@edsis/theme/styles';\n\nimport { BlockShellNavigationFooterComponent } from './footer.component';\nimport { BlockShellNavigationHeaderComponent } from './header.component';\n\nconst DESKTOP_NAV_CONTROL_SIZE = 'size-11';\nconst DESKTOP_FLYOUT_ICON_SIZE = 20;\n\n@Component({\n selector: 'block-shell-top-navigation',\n imports: [\n NavigationContainerComponent,\n NavigationContentComponent,\n NavigationNavbarComponent,\n NavigationFlyoutComponent,\n NavigationHeaderComponent,\n NavigationFooterComponent,\n BlockShellNavigationHeaderComponent,\n BlockShellNavigationFooterComponent,\n ],\n host: {\n class: 'contents',\n },\n template: `\n <Navigation\n id=\"main\"\n [data]=\"navigation()\"\n [ariaLabel]=\"ariaLabel()\"\n collapse-tree=\"straight\"\n class=\"h-full\"\n >\n @if (effectiveType() === 'flyout') {\n <NavigationFlyout\n [label]=\"flyoutLabel()\"\n [icon]=\"desktopFlyoutIcon()\"\n [icon-only]=\"flyoutIconOnly()\"\n [trigger-radius-class]=\"desktopFlyoutTriggerRadiusClass()\"\n [trigger-size-class]=\"flyoutTriggerSizeClass()\"\n [trigger-borderless]=\"isDesktopTheme()\"\n [trigger-backgroundless]=\"isDesktopTheme()\"\n [trigger-in-footer]=\"isFooterFlyoutTheme()\"\n [icon-size]=\"desktopFlyoutIconSize()\"\n [nav-type-style]=\"navTypeStyle()\"\n >\n <NavigationHeader>\n <block-shell-navigation-header\n [name]=\"shellName()\"\n [logoText]=\"logoText()\"\n [homePath]=\"homePath()\"\n />\n </NavigationHeader>\n\n @if (isDesktopTheme()) {\n <NavigationContent class=\"ml-auto flex-none items-center\" />\n }\n\n <NavigationFooter class=\"px-3\" [borderless]=\"isDesktopTheme()\">\n <block-shell-navigation-footer\n [name]=\"userName()\"\n [subtitle]=\"userPosition()\"\n [photoUrl]=\"userPhotoUrl()\"\n [desktopOnly]=\"true\"\n [avatarRadiusClass]=\"desktopAvatarRadiusClass()\"\n [showMeta]=\"!isDesktopTheme()\"\n [avatarButton]=\"isDesktopTheme()\"\n [avatarButtonLabel]=\"desktopAvatarButtonLabel()\"\n [useAvatar]=\"!isDesktopTheme()\"\n [avatarOnline]=\"isDesktopTheme()\"\n [actionTemplate]=\"footerActionTemplate()\"\n />\n </NavigationFooter>\n </NavigationFlyout>\n } @else {\n <NavigationNavbar [nav-type-style]=\"navTypeStyle()\">\n <NavigationHeader>\n <block-shell-navigation-header\n [name]=\"shellName()\"\n [logoText]=\"logoText()\"\n [homePath]=\"homePath()\"\n />\n </NavigationHeader>\n\n <NavigationFooter class=\"px-3\" [borderless]=\"isDesktopTheme()\">\n <block-shell-navigation-footer\n [name]=\"userName()\"\n [subtitle]=\"userPosition()\"\n [photoUrl]=\"userPhotoUrl()\"\n [desktopOnly]=\"true\"\n [avatarRadiusClass]=\"desktopAvatarRadiusClass()\"\n [useAvatar]=\"!isDesktopTheme()\"\n [avatarOnline]=\"isDesktopTheme()\"\n [actionTemplate]=\"footerActionTemplate()\"\n />\n </NavigationFooter>\n </NavigationNavbar>\n }\n </Navigation>\n `,\n})\nexport class BlockShellTopNavigationComponent {\n private readonly layout = inject(LayoutService);\n private readonly navigationService = inject(NavigationService);\n private readonly themeAppearance = inject(ThemeAppearanceService);\n\n readonly navigation = input.required<readonly NavigationItem[]>();\n readonly shellName = input.required<string>();\n readonly logoText = input('ETOS');\n readonly homePath = input<`/${string}`>('/');\n readonly userName = input.required<string>();\n readonly userPosition = input.required<string>();\n readonly userPhotoUrl = input<string | undefined>(undefined);\n readonly footerActionTemplate = input<TemplateRef<unknown> | null>(null);\n readonly ariaLabel = input('top navigation');\n /** Fallback type ketika localStorage `nav-type` kosong atau tidak valid untuk orientasi horizontal. */\n readonly type = input<NavigationHorizontalType>('navbar');\n readonly flyoutLabel = input('Menu');\n\n private readonly navigationState = this.navigationService.state('main');\n\n /** State NavigationService menang atas fallback input dan langsung reaktif saat pengaturan diubah. */\n protected readonly effectiveType = computed<NavigationHorizontalType>(() => {\n const state = this.navigationState();\n\n if (\n state?.orientation === 'horizontal' &&\n (state.type === 'navbar' || state.type === 'flyout')\n ) {\n return state.type;\n }\n\n // Sebelum state 'main' terdaftar, hormati type persisted agar registrasi\n // pertama saat refresh tidak menimpa pilihan user (mis. flyout).\n const persisted = this.navigationService.persistedTypeFor('horizontal');\n\n return persisted === 'navbar' || persisted === 'flyout' ? persisted : this.type();\n });\n\n /** Desktop memakai surface nav khusus; rail mempertahankan style navigation border-rail. */\n protected readonly navTypeStyle = computed(() =>\n this.isDesktopTheme()\n ? 'desktop'\n : this.layout.appearance() === 'rail'\n ? 'border-rail'\n : 'default',\n );\n\n /** Tema desktop memakai trigger dashboard tanpa label visual; tema lain mempertahankan label. */\n protected readonly isDesktopTheme = computed(\n () => this.themeAppearance.appearance() === 'desktop',\n );\n protected readonly isBrowserTheme = computed(\n () => this.themeAppearance.appearance() === 'browser',\n );\n protected readonly isRailTheme = computed(() => this.themeAppearance.appearance() === 'rail');\n protected readonly isFooterFlyoutTheme = computed(\n () => this.isBrowserTheme() || this.isRailTheme(),\n );\n protected readonly desktopFlyoutIcon = computed(() =>\n this.isDesktopTheme() ? 'dashboard' : this.isFooterFlyoutTheme() ? 'menu' : null,\n );\n protected readonly flyoutIconOnly = computed(\n () => this.isDesktopTheme() || this.isFooterFlyoutTheme(),\n );\n protected readonly desktopFlyoutTriggerRadiusClass = computed(() =>\n this.isDesktopTheme() ? 'rounded-base' : '',\n );\n protected readonly flyoutTriggerSizeClass = computed(() =>\n this.isDesktopTheme() ? DESKTOP_NAV_CONTROL_SIZE : this.isFooterFlyoutTheme() ? 'size-8' : '',\n );\n protected readonly desktopFlyoutIconSize = computed(() =>\n this.isDesktopTheme() ? DESKTOP_FLYOUT_ICON_SIZE : 18,\n );\n protected readonly desktopAvatarRadiusClass = computed(() =>\n this.isDesktopTheme() ? 'rounded-base' : 'rounded-full',\n );\n protected readonly desktopAvatarButtonLabel = computed(() => `User menu: ${this.userName()}`);\n}\n","import { Directive, TemplateRef, inject } from '@angular/core';\n\n@Directive({ selector: 'ng-template[blockShellNavigationPanel]' })\nexport class BlockShellNavigationPanelDirective {\n readonly templateRef = inject(TemplateRef<unknown>);\n}\n","import { Directive, TemplateRef, inject } from '@angular/core';\n\n@Directive({ selector: 'ng-template[blockShellNavigationFooterAction]' })\nexport class BlockShellNavigationFooterActionDirective {\n readonly templateRef = inject(TemplateRef<unknown>);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { Component, computed, contentChild, inject, input, output } from '@angular/core';\nimport { RouterOutlet } from '@angular/router';\nimport {\n NativeHostService,\n RuntimeContextService,\n type EdsisWindowControlAction,\n} from '@edsis/angular/services/runtime';\nimport {\n DesktopAppBarComponent,\n LayoutService,\n LayoutComponent,\n LayoutContentComponent,\n LayoutEmptyComponent,\n LayoutHorizontalComponent,\n LayoutNavigationComponent,\n LayoutVerticalComponent,\n type DesktopAppBarPlatform,\n} from '@edsis/theme/layout';\nimport { type NavigationItem } from '@edsis/navigation';\n\nimport { BlockShellSidebarNavigationComponent } from './navigation/sidebar-navigation.component';\nimport { BlockShellTopNavigationComponent } from './navigation/top-navigation.component';\nimport { BlockShellNavigationPanelDirective } from './navigation-panel.directive';\nimport { BlockShellNavigationFooterActionDirective } from './navigation-footer-action.directive';\n\n@Component({\n selector: 'block-shell',\n imports: [\n LayoutComponent,\n LayoutVerticalComponent,\n LayoutHorizontalComponent,\n LayoutEmptyComponent,\n LayoutNavigationComponent,\n LayoutContentComponent,\n DesktopAppBarComponent,\n BlockShellSidebarNavigationComponent,\n BlockShellTopNavigationComponent,\n NgTemplateOutlet,\n RouterOutlet,\n ],\n host: {\n class: 'contents',\n },\n template: `\n @if (isDesktopAppearance()) {\n <DesktopAppBar\n [platform]=\"desktopAppBarPlatform()\"\n [navigation]=\"navigation()\"\n (windowControlRequested)=\"onDesktopWindowControlRequested($event)\"\n (windowDragRequested)=\"onDesktopWindowDragRequested()\"\n />\n }\n\n <Layout>\n @switch (layout.type()) {\n @case ('horizontal') {\n <LayoutHorizontal>\n @if (!isDesktopAppearance()) {\n <LayoutNavigation [landmarkRole]=\"null\" [ariaLabel]=\"null\">\n <block-shell-top-navigation\n [navigation]=\"navigation()\"\n [shellName]=\"shellName()\"\n [logoText]=\"logoText()\"\n [homePath]=\"homePath()\"\n [userName]=\"userName()\"\n [userPosition]=\"userPosition()\"\n [userPhotoUrl]=\"userPhotoUrl()\"\n [ariaLabel]=\"topAriaLabel()\"\n [footerActionTemplate]=\"footerAction()?.templateRef ?? null\"\n />\n </LayoutNavigation>\n }\n\n <LayoutContent\n data-block-shell-content\n tabindex=\"-1\"\n [attr.aria-label]=\"contentAriaLabel()\"\n >\n <router-outlet />\n </LayoutContent>\n\n @if (navigationPanel()) {\n <div hidden aria-hidden=\"true\" data-block-shell-overlay-panel>\n <ng-container [ngTemplateOutlet]=\"navigationPanel()!.templateRef\" />\n </div>\n }\n </LayoutHorizontal>\n }\n\n @case ('empty') {\n <LayoutEmpty>\n <LayoutContent\n data-block-shell-content\n tabindex=\"-1\"\n [attr.aria-label]=\"contentAriaLabel()\"\n >\n <router-outlet />\n </LayoutContent>\n </LayoutEmpty>\n }\n\n @default {\n <LayoutVertical>\n @if (!isDesktopAppearance()) {\n <LayoutNavigation [landmarkRole]=\"null\" [ariaLabel]=\"null\">\n <div\n class=\"contents\"\n [hidden]=\"navigationPanelActive()\"\n [attr.inert]=\"navigationPanelActive() ? '' : null\"\n [attr.aria-hidden]=\"navigationPanelActive() ? 'true' : null\"\n >\n <block-shell-sidebar-navigation\n [navigation]=\"navigation()\"\n [shellName]=\"shellName()\"\n [logoText]=\"logoText()\"\n [homePath]=\"homePath()\"\n [userName]=\"userName()\"\n [userPosition]=\"userPosition()\"\n [userPhotoUrl]=\"userPhotoUrl()\"\n [ariaLabel]=\"sideAriaLabel()\"\n [footerActionTemplate]=\"footerAction()?.templateRef ?? null\"\n />\n </div>\n\n @if (navigationPanelActive()) {\n <ng-container [ngTemplateOutlet]=\"navigationPanel()!.templateRef\" />\n }\n </LayoutNavigation>\n }\n\n <LayoutContent\n data-block-shell-content\n tabindex=\"-1\"\n [attr.aria-label]=\"contentAriaLabel()\"\n >\n <router-outlet />\n </LayoutContent>\n </LayoutVertical>\n }\n }\n </Layout>\n\n @if (isDesktopAppearance() && navigationPanelOpen() && navigationPanel()) {\n <ng-container [ngTemplateOutlet]=\"navigationPanel()!.templateRef\" />\n }\n `,\n})\nexport class BlockShellComponent {\n readonly navigation = input.required<readonly NavigationItem[]>();\n /**\n * @deprecated Tidak lagi dipakai. Navigasi layout browser/rail memakai id `main`, sedangkan\n * app bar desktop memakai `desktop-main` agar pergantian appearance tidak memiliki owner ganda.\n * Input dipertahankan sementara demi kompatibilitas pemanggil.\n */\n readonly navbarId = input('main');\n /** @deprecated Tidak lagi dipakai. Lihat kontrak ownership navigation pada `navbarId`. */\n readonly sidebarNavId = input('main');\n readonly shellName = input.required<string>();\n readonly logoText = input('ETOS');\n readonly homePath = input<`/${string}`>('/');\n readonly userName = input.required<string>();\n readonly userPosition = input.required<string>();\n readonly userPhotoUrl = input<string | undefined>(undefined);\n readonly topAriaLabel = input('top navigation');\n readonly sideAriaLabel = input('side navigation');\n readonly contentAriaLabel = input('layout content');\n readonly navigationPanelOpen = input(false);\n\n private readonly runtimeContext = inject(RuntimeContextService, { optional: true });\n private readonly nativeHost = inject(NativeHostService, { optional: true });\n\n protected readonly layout: LayoutService = inject(LayoutService);\n protected readonly isDesktopAppearance = computed(() => this.layout.appearance() === 'desktop');\n protected readonly desktopAppBarPlatform = computed<DesktopAppBarPlatform | null | undefined>(\n () => {\n const context = this.runtimeContext?.context();\n if (!context || context.host === 'browser') {\n return undefined;\n }\n\n return context.deviceType === 'macos' || context.deviceType === 'windows'\n ? context.deviceType\n : null;\n },\n );\n protected readonly navigationPanel = contentChild(BlockShellNavigationPanelDirective);\n protected readonly footerAction = contentChild(BlockShellNavigationFooterActionDirective);\n protected readonly navigationPanelActive = computed(\n () =>\n this.layout.type() === 'vertical' && this.navigationPanelOpen() && !!this.navigationPanel(),\n );\n\n protected onDesktopWindowControlRequested(action: EdsisWindowControlAction): void {\n const nativeHost = this.nativeHost;\n if (!nativeHost?.supports('window-controls')) {\n return;\n }\n\n void nativeHost.emitWindowControl(action).catch((error: unknown) => {\n console.error(`Failed to run window control: ${action}`, error);\n });\n }\n\n protected onDesktopWindowDragRequested(): void {\n const nativeHost = this.nativeHost;\n if (!nativeHost?.supports('window-controls')) {\n return;\n }\n\n void nativeHost.startDragging().catch((error: unknown) => {\n console.error('Failed to start window dragging', error);\n });\n }\n}\n","export const MAIN_SIDEBAR_NAV_ID = 'main';\n\nexport function workspaceNavbarId(workspace: string): `${string}-navbar` {\n return `${workspace}-navbar` as `${string}-navbar`;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;MA4Da,mCAAmC,CAAA;IACrC,QAAQ,GAAG,KAAK,CAAC,QAAQ;iFAAU;IACnC,QAAQ,GAAG,KAAK,CAAqB,SAAS;iFAAC;IAC/C,QAAQ,GAAG,KAAK,CAAC,EAAE;iFAAC;;IAEpB,WAAW,GAAG,KAAK,CAAC,cAAc;oFAAC;;IAEnC,QAAQ,GAAG,KAAK,CAAC,KAAK;iFAAC;IACvB,SAAS,GAAG,KAAK,CAAC,KAAK;kFAAC;IACxB,WAAW,GAAG,KAAK,CAAC,WAAW;oFAAC;;IAEhC,mBAAmB,GAAG,KAAK,CAAC,KAAK;4FAAC;IAExB,aAAa,GAAG,QAAQ,CAAC,MAC1C,EAAE,CACA,IAAI,CAAC,QAAQ;AACX,UAAE;AACF,UAAE,mJAAmJ,EACvJ,IAAI,C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,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,kBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,mBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,qBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAAA,kCAAkC,8FACrC,yCAAyC,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AC3LnF,MAAM,mBAAmB,GAAG;AAE7B,SAAU,iBAAiB,CAAC,SAAiB,EAAA;IACjD,OAAO,CAAA,EAAG,SAAS,CAAA,OAAA,CAA+B;AACpD;;ACJA;;AAEG;;;;"}
|
|
@@ -711,7 +711,7 @@ class AuthShellPage {
|
|
|
711
711
|
</div>
|
|
712
712
|
</LayoutFluid>
|
|
713
713
|
</Layout>
|
|
714
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: LayoutComponent, selector: "Layout", inputs: ["surface", "width", "class"] }, { kind: "component", type: DesktopAppBarComponent, selector: "DesktopAppBar", inputs: ["class", "avatarInitials", "navigation", "platform"], outputs: ["windowControlRequested", "windowDragRequested", "navigationRequested", "flyoutRequested", "
|
|
714
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: LayoutComponent, selector: "Layout", inputs: ["surface", "width", "class"] }, { kind: "component", type: DesktopAppBarComponent, selector: "DesktopAppBar", inputs: ["class", "avatarInitials", "navigation", "platform"], outputs: ["windowControlRequested", "windowDragRequested", "navigationRequested", "flyoutRequested", "avatarRequested"] }, { kind: "component", type: LayoutFluidComponent, selector: "LayoutFluid", inputs: ["class"] }] });
|
|
715
715
|
}
|
|
716
716
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: AuthShellPage, decorators: [{
|
|
717
717
|
type: Component,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edsis-angular-module-auth.mjs","sources":["../../../library/angular/module/auth/auth.config.ts","../../../library/angular/module/auth/auth-messages.ts","../../../library/angular/module/auth/native/native-google-auth.adapter.ts","../../../library/angular/module/auth/auth.service.ts","../../../library/angular/module/auth/interceptor/auth.interceptor.ts","../../../library/angular/module/auth/health/auth-health.service.ts","../../../library/angular/module/auth/native/native-google-auth.service.ts","../../../library/angular/module/auth/auth.providers.ts","../../../library/angular/module/auth/guard/auth.guards.ts","../../../library/angular/module/auth/oauth/google-oauth.utils.ts","../../../library/angular/module/auth/pages/auth-shell/auth-shell.page.ts","../../../library/angular/module/auth/pages/auth-page.utils.ts","../../../library/angular/module/auth/pages/google-callback/google-callback.page.ts","../../../library/angular/module/auth/pages/login/login.page.ts","../../../library/angular/module/auth/pages/logout/logout.page.ts","../../../library/angular/module/auth/pages/verify/verify.page.ts","../../../library/angular/module/auth/pages/auth.routes.ts","../../../library/angular/module/auth/edsis-angular-module-auth.ts"],"sourcesContent":["import type { HttpInterceptorFn } from '@angular/common/http';\nimport { InjectionToken } from '@angular/core';\nimport type { EdsisAuthMessagesOverride } from './auth-messages';\n\nconst DEFAULT_LOGIN_PATH = '/login' as const;\nconst DEFAULT_LOGOUT_PATH = '/logout' as const;\nconst DEFAULT_VERIFY_PATH = '/verify' as const;\nconst DEFAULT_AUTHENTICATED_HOME_PATH = '/dashboard' as const;\nconst DEFAULT_HEALTH_CHECK_TIMEOUT_MS = 4000;\n\n/**\n * Path route callback Google di dalam `authRoutes`; juga menjadi sumber\n * derivasi `redirectUri` (`${appUrl}/auth/google/callback`), sehingga URL yang\n * didaftarkan di Google Cloud Console selalu konsisten dengan route library.\n */\nexport const GOOGLE_OAUTH_CALLBACK_ROUTE_PATH = 'auth/google/callback' as const;\n\n/**\n * Health-check backend auth di halaman login (opt-in).\n * Sehat = HTTP 2xx dalam `timeoutMs`; body respons tidak diparse.\n */\nexport interface EdsisAuthHealthCheckConfig {\n /** Default `false` — tanpa flag, perilaku login tidak berubah. */\n enabled?: boolean;\n /** Default `${apiUrl}/health`. */\n url?: string;\n /** Default 4000. */\n timeoutMs?: number;\n}\n\n/**\n * Google Sign-In dengan authorization-code flow. Exchange code dilakukan\n * backend (`POST {apiUrl}/auth/google`) sehingga client secret tidak pernah\n * menyentuh frontend.\n */\nexport interface EdsisAuthGoogleOauthConfig {\n /**\n * OAuth 2.0 client ID dari Google Cloud Console. String kosong dianggap\n * tidak dikonfigurasi (tombol Google tetap placeholder), sehingga aman\n * meneruskan nilai environment yang di-inject build-time apa adanya.\n */\n clientId: string;\n}\n\nexport interface EdsisAuthNativeGoogleConfig {\n /** Default `true` saat blok konfigurasi ini diberikan. */\n enabled?: boolean;\n /** Harus path same-origin. Default `/api`. */\n apiUrl?: `/${string}`;\n}\n\nexport interface EdsisAuthOauthConfig {\n google?: EdsisAuthGoogleOauthConfig;\n nativeGoogle?: EdsisAuthNativeGoogleConfig;\n}\n\nexport interface EdsisAuthConfig {\n apiUrl: string;\n appUrl: string;\n loginPath?: string;\n logoutPath?: string;\n verifyPath?: string;\n authenticatedHomePath?: string;\n guestHomePath?: string;\n /** Override teks UI halaman auth (i18n/branding). */\n messages?: EdsisAuthMessagesOverride;\n /**\n * Interceptor tambahan dari aplikasi (mis. `layoutLoadingInterceptor` dari\n * `@edsis/theme/layout`), dijalankan setelah interceptor auth Edsis.\n */\n httpInterceptors?: readonly HttpInterceptorFn[];\n healthCheck?: EdsisAuthHealthCheckConfig;\n /**\n * Provider OAuth di halaman login (saat ini hanya Google). `redirectUri`\n * tidak dikonfigurasi konsumer; library menurunkannya dari `appUrl`:\n * `${appUrl}/auth/google/callback`.\n */\n oauth?: EdsisAuthOauthConfig;\n}\n\nexport interface ResolvedEdsisAuthHealthCheck {\n enabled: boolean;\n url: string;\n timeoutMs: number;\n}\n\nexport interface ResolvedEdsisAuthGoogleOauth {\n clientId: string;\n /** Diturunkan dari `appUrl`: `${appUrl}/auth/google/callback`. */\n redirectUri: string;\n}\n\nexport interface ResolvedEdsisAuthOauth {\n /** `null` saat Google Sign-In tidak dikonfigurasi (perilaku placeholder lama). */\n google: ResolvedEdsisAuthGoogleOauth | null;\n /** Flow native tablet; selalu memakai endpoint same-origin. */\n nativeGoogle: { readonly apiUrl: `/${string}` } | null;\n}\n\nexport interface ResolvedEdsisAuthConfig {\n apiUrl: string;\n appUrl: string;\n loginPath: `/${string}`;\n logoutPath: `/${string}`;\n verifyPath: `/${string}`;\n authenticatedHomePath: `/${string}`;\n guestHomePath: `/${string}`;\n healthCheck: ResolvedEdsisAuthHealthCheck;\n oauth: ResolvedEdsisAuthOauth;\n}\n\nexport const EDSIS_AUTH_CONFIG = new InjectionToken<ResolvedEdsisAuthConfig>('EDSIS_AUTH_CONFIG');\n\nexport function resolveEdsisAuthConfig(config: EdsisAuthConfig): ResolvedEdsisAuthConfig {\n const loginPath = normalizePath(config.loginPath, DEFAULT_LOGIN_PATH);\n const apiUrl = normalizeAbsoluteUrl(config.apiUrl, 'apiUrl');\n const appUrl = normalizeAbsoluteUrl(config.appUrl, 'appUrl');\n const googleClientId = config.oauth?.google?.clientId.trim() ?? '';\n\n return {\n apiUrl,\n appUrl,\n loginPath,\n logoutPath: normalizePath(config.logoutPath, DEFAULT_LOGOUT_PATH),\n verifyPath: normalizePath(config.verifyPath, DEFAULT_VERIFY_PATH),\n authenticatedHomePath: normalizePath(\n config.authenticatedHomePath,\n DEFAULT_AUTHENTICATED_HOME_PATH,\n ),\n guestHomePath: normalizePath(config.guestHomePath, loginPath),\n healthCheck: {\n enabled: config.healthCheck?.enabled ?? false,\n url: config.healthCheck?.url ?? `${apiUrl.replace(/\\/+$/, '')}/health`,\n timeoutMs: config.healthCheck?.timeoutMs ?? DEFAULT_HEALTH_CHECK_TIMEOUT_MS,\n },\n oauth: {\n google: googleClientId\n ? {\n clientId: googleClientId,\n redirectUri: `${appUrl}/${GOOGLE_OAUTH_CALLBACK_ROUTE_PATH}`,\n }\n : null,\n nativeGoogle:\n config.oauth?.nativeGoogle && config.oauth.nativeGoogle.enabled !== false\n ? { apiUrl: normalizeSameOriginPath(config.oauth.nativeGoogle.apiUrl ?? '/api') }\n : null,\n },\n };\n}\n\nfunction normalizeSameOriginPath(value: string): `/${string}` {\n const normalizedValue = value.trim().replace(/\\/+$/u, '');\n\n if (\n !normalizedValue.startsWith('/') ||\n normalizedValue.startsWith('//') ||\n normalizedValue.includes('?') ||\n normalizedValue.includes('#')\n ) {\n throw new Error('Edsis native Google auth requires a same-origin apiUrl path.');\n }\n\n return (normalizedValue || '/') as `/${string}`;\n}\n\nfunction normalizeAbsoluteUrl(value: string, label: string): string {\n const normalizedValue = value.trim();\n\n if (!normalizedValue) {\n throw new Error(`Edsis auth requires a non-empty ${label}.`);\n }\n\n const normalizedUrl = new URL(normalizedValue);\n return normalizedUrl.toString().replace(/\\/$/, '');\n}\n\nfunction normalizePath(value: string | undefined, fallback: `/${string}`): `/${string}` {\n const normalizedValue = value?.trim();\n\n if (!normalizedValue) {\n return fallback;\n }\n\n return (\n normalizedValue.startsWith('/') ? normalizedValue : `/${normalizedValue}`\n ) as `/${string}`;\n}\n","import { InjectionToken } from '@angular/core';\n\n/**\n * Seluruh teks yang tampil di halaman auth (login, logout, verify).\n * Override sebagian/seluruhnya lewat `provideEdsisAuth({ messages: ... })`\n * untuk deployment berbahasa lain atau branding berbeda.\n */\nexport interface EdsisAuthMessages {\n readonly brand: {\n /** Teks singkat di kotak logo (mis. inisial produk). */\n readonly mark: string;\n };\n readonly login: {\n readonly title: string;\n readonly intro: string;\n readonly badge: string;\n readonly emailPlaceholder: string;\n readonly submit: string;\n readonly submitting: string;\n readonly emailRequired: string;\n readonly emailInvalid: string;\n readonly magicLinkSent: string;\n readonly magicLinkFailed: string;\n readonly oauthComingSoon: string;\n readonly oauthGoogleAria: string;\n readonly oauthMicrosoftAria: string;\n readonly oauthAppleAria: string;\n readonly healthUnavailableTitle: string;\n readonly healthUnavailableBody: string;\n readonly healthRetry: string;\n readonly healthChecking: string;\n };\n readonly google: {\n readonly title: string;\n readonly intro: string;\n readonly badge: string;\n /** Aria tombol Google di halaman login saat sign-in aktif (config terisi). */\n readonly signInAria: string;\n /** Status di halaman login selama full-page redirect ke Google berlangsung. */\n readonly googleRedirecting: string;\n readonly nativeSignInInProgress: string;\n readonly nativeSignInUnavailable: string;\n readonly nativeSignInFailed: string;\n readonly googleExchangeInProgress: string;\n readonly exchangeInProgressAria: string;\n readonly googleStateMismatch: string;\n readonly googleAccessDenied: string;\n /** Error generik callback; juga fallback saat backend tidak mengirim pesan. */\n readonly googleCallbackError: string;\n readonly googleRetry: string;\n readonly missingAccessToken: string;\n readonly successRedirect: string;\n readonly openDashboard: string;\n };\n readonly logout: {\n readonly title: string;\n readonly intro: string;\n readonly badge: string;\n readonly pending: string;\n readonly pendingAria: string;\n readonly success: string;\n readonly failed: string;\n readonly failedNote: string;\n readonly backToLogin: string;\n readonly openDashboard: string;\n };\n readonly verify: {\n readonly title: string;\n readonly intro: string;\n readonly badge: string;\n readonly pending: string;\n readonly pendingAria: string;\n readonly tokenMissing: string;\n readonly invalidOrExpired: string;\n readonly successRedirect: string;\n readonly missingAccessToken: string;\n readonly requestNewLink: string;\n readonly openDashboard: string;\n };\n}\n\nexport const DEFAULT_EDSIS_AUTH_MESSAGES: EdsisAuthMessages = {\n brand: {\n mark: 'ETOS',\n },\n login: {\n title: 'Etos Account Center',\n intro:\n 'Masukkan email yang terdaftar. Kami akan mengirimkan tautan verifikasi untuk masuk ke aplikasi.',\n badge: 'LOGIN',\n emailPlaceholder: 'your@email.com',\n submit: 'Kirim',\n submitting: 'Mengirim...',\n emailRequired: 'Email wajib diisi.',\n emailInvalid: 'Gunakan format email yang valid dengan panjang maksimal 255 karakter.',\n magicLinkSent: 'Magic link berhasil dikirim.',\n magicLinkFailed: 'Gagal mengirim magic link.',\n oauthComingSoon: 'Segera hadir',\n oauthGoogleAria: 'Login dengan Google segera hadir',\n oauthMicrosoftAria: 'Login dengan Microsoft segera hadir',\n oauthAppleAria: 'Login dengan Apple segera hadir',\n healthUnavailableTitle: 'Layanan sedang tidak tersedia',\n healthUnavailableBody: 'Kami tidak dapat menghubungi server autentikasi. Silakan coba lagi.',\n healthRetry: 'Coba lagi',\n healthChecking: 'Memeriksa ketersediaan layanan…',\n },\n google: {\n title: 'Menyelesaikan Google Sign-In.',\n intro:\n 'Kode otorisasi dari Google ditukar menjadi sesi oleh backend, sesi refresh cookie dibentuk, lalu access token disimpan secara lokal untuk aplikasi.',\n badge: 'GOOGLE',\n signInAria: 'Login dengan Google',\n googleRedirecting: 'Mengarahkan ke Google...',\n nativeSignInInProgress: 'Menyelesaikan login Google di perangkat...',\n nativeSignInUnavailable:\n 'Google Sign-In native tidak tersedia pada perangkat ini. Perbarui aplikasi atau hubungi administrator.',\n nativeSignInFailed: 'Login Google pada perangkat gagal diproses.',\n googleExchangeInProgress: 'Menukar kode otorisasi Google...',\n exchangeInProgressAria: 'Menukar kode otorisasi Google',\n googleStateMismatch:\n 'Verifikasi keamanan gagal: state OAuth tidak cocok atau hilang. Silakan ulangi login dari awal.',\n googleAccessDenied: 'Login Google dibatalkan. Silakan coba lagi jika ini tidak disengaja.',\n googleCallbackError: 'Login Google gagal diproses.',\n googleRetry: 'Kembali ke login',\n missingAccessToken:\n 'Login Google berhasil, tetapi access token tidak ditemukan di respons backend.',\n successRedirect: 'Login Google berhasil. Mengarahkan ke dashboard...',\n openDashboard: 'Buka dashboard',\n },\n logout: {\n title: 'Mengakhiri sesi Edsis.',\n intro:\n 'Halaman ini membersihkan sesi lokal lalu memanggil endpoint logout untuk merevoke refresh-token cookie pada backend.',\n badge: 'LOGOUT',\n pending: 'Mengakhiri sesi...',\n pendingAria: 'Mengakhiri sesi',\n success: 'Sesi berhasil diakhiri.',\n failed: 'Sesi lokal sudah dihapus, tetapi request logout gagal.',\n failedNote: 'Backend tidak mengonfirmasi logout, tetapi sesi lokal sudah dihapus.',\n backToLogin: 'Kembali ke login',\n openDashboard: 'Buka dashboard',\n },\n verify: {\n title: 'Memverifikasi magic link.',\n intro:\n 'Token akan dikonsumsi satu kali, sesi refresh cookie dibentuk di backend, lalu access token disimpan secara lokal untuk aplikasi.',\n badge: 'VERIFY',\n pending: 'Memverifikasi magic link...',\n pendingAria: 'Memverifikasi magic link',\n tokenMissing: 'Token magic link tidak ditemukan pada URL yang dibuka.',\n invalidOrExpired: 'Magic link tidak valid atau sudah kedaluwarsa.',\n successRedirect: 'Verifikasi berhasil. Mengarahkan ke dashboard...',\n missingAccessToken:\n 'Verifikasi berhasil, tetapi access token tidak ditemukan di respons backend.',\n requestNewLink: 'Minta link baru',\n openDashboard: 'Buka dashboard',\n },\n};\n\n/** Override per-bagian; field yang tidak diisi memakai default. */\nexport type EdsisAuthMessagesOverride = {\n readonly [K in keyof EdsisAuthMessages]?: Partial<EdsisAuthMessages[K]>;\n};\n\nexport const EDSIS_AUTH_MESSAGES = new InjectionToken<EdsisAuthMessages>('EDSIS_AUTH_MESSAGES', {\n factory: () => DEFAULT_EDSIS_AUTH_MESSAGES,\n});\n\nexport function mergeEdsisAuthMessages(override?: EdsisAuthMessagesOverride): EdsisAuthMessages {\n if (!override) {\n return DEFAULT_EDSIS_AUTH_MESSAGES;\n }\n\n return {\n brand: { ...DEFAULT_EDSIS_AUTH_MESSAGES.brand, ...override.brand },\n login: { ...DEFAULT_EDSIS_AUTH_MESSAGES.login, ...override.login },\n google: { ...DEFAULT_EDSIS_AUTH_MESSAGES.google, ...override.google },\n logout: { ...DEFAULT_EDSIS_AUTH_MESSAGES.logout, ...override.logout },\n verify: { ...DEFAULT_EDSIS_AUTH_MESSAGES.verify, ...override.verify },\n };\n}\n","import { Injectable, InjectionToken } from '@angular/core';\n\nexport type NativeGooglePlatform = 'ios' | 'android';\n\nexport interface NativeGoogleSignInResult {\n readonly platform: NativeGooglePlatform;\n readonly idToken: string;\n readonly clientInstanceId: string;\n}\n\nexport interface EdsisNativeGoogleAuthAdapter {\n signInWithGoogle(input: { readonly nonce: string }): Promise<NativeGoogleSignInResult>;\n signOutFromGoogle(): Promise<void>;\n}\n\nexport const EDSIS_NATIVE_GOOGLE_AUTH_ADAPTER = new InjectionToken<EdsisNativeGoogleAuthAdapter>(\n 'EDSIS_NATIVE_GOOGLE_AUTH_ADAPTER',\n);\n\n@Injectable()\nexport class TauriNativeGoogleAuthAdapter implements EdsisNativeGoogleAuthAdapter {\n async signInWithGoogle(input: { readonly nonce: string }): Promise<NativeGoogleSignInResult> {\n const { invoke } = await import('@tauri-apps/api/core');\n const response = await invoke<unknown>('plugin:edsis-google-auth|sign_in', {\n nonce: input.nonce,\n });\n\n if (!isNativeGoogleSignInResult(response)) {\n throw new Error('Native Google Sign-In returned an invalid response.');\n }\n\n return response;\n }\n\n async signOutFromGoogle(): Promise<void> {\n const { invoke } = await import('@tauri-apps/api/core');\n await invoke('plugin:edsis-google-auth|sign_out');\n }\n}\n\nexport function isNativeGoogleSignInResult(value: unknown): value is NativeGoogleSignInResult {\n if (typeof value !== 'object' || value === null || Array.isArray(value)) {\n return false;\n }\n\n const result = value as Record<string, unknown>;\n return (\n (result['platform'] === 'ios' || result['platform'] === 'android') &&\n typeof result['idToken'] === 'string' &&\n result['idToken'].trim().length > 0 &&\n typeof result['clientInstanceId'] === 'string' &&\n result['clientInstanceId'].trim().length > 0\n );\n}\n","import { HttpClient, HttpErrorResponse } from '@angular/common/http';\nimport { Injectable, computed, inject, signal } from '@angular/core';\nimport { Router } from '@angular/router';\nimport type {\n AuthTokenResponse,\n PersistentAuthSessionResponse,\n PersistentAuthUser,\n} from '@edsis/sdk/auth';\nimport { RuntimeContextService, setNativeNotificationBadge } from '@edsis/angular/services/runtime';\nimport { firstValueFrom } from 'rxjs';\n\nimport { EDSIS_AUTH_CONFIG } from './auth.config';\nimport { EDSIS_NATIVE_GOOGLE_AUTH_ADAPTER } from './native/native-google-auth.adapter';\n\nexport interface AuthUser extends PersistentAuthUser {\n readonly role?: string;\n}\n\n/** Native desktop features are optional; browser consumers have no bridge. */\nexport async function setAuthNotificationBadge(unreadCount: number): Promise<void> {\n await setNativeNotificationBadge(unreadCount);\n}\n\ninterface LegacyAuthTokenData {\n access_token?: unknown;\n user?: AuthUser;\n}\n\ninterface LegacyAuthTokenPayload extends Omit<AuthTokenResponse, 'data'> {\n access_token?: unknown;\n data?: LegacyAuthTokenData;\n user?: AuthUser;\n}\n\ntype AuthTokenPayload = PersistentAuthSessionResponse | LegacyAuthTokenPayload;\n\n/**\n * Cookie-backed authentication state. The access token intentionally exists\n * only in this service instance; the long-lived refresh token is an HttpOnly\n * cookie owned by the server.\n */\n@Injectable({ providedIn: 'root' })\nexport class AuthService {\n private readonly http = inject(HttpClient);\n private readonly config = inject(EDSIS_AUTH_CONFIG);\n private readonly router = inject(Router, { optional: true });\n private readonly runtime = inject(RuntimeContextService, { optional: true });\n private readonly nativeGoogleAdapter = inject(EDSIS_NATIVE_GOOGLE_AUTH_ADAPTER, {\n optional: true,\n });\n private readonly accessTokenState = signal('');\n private readonly userState = signal<AuthUser | null>(null);\n private refreshInFlight: Promise<boolean> | null = null;\n private initialization: Promise<void> | null = null;\n\n readonly accessToken = this.accessTokenState.asReadonly();\n readonly user = this.userState.asReadonly();\n readonly isAuthenticated = computed(() => Boolean(this.accessTokenState()));\n\n get apiUrl(): string {\n return this.config.apiUrl.replace(/\\/+$/u, '');\n }\n\n get sessionApiUrl(): string {\n const nativeApiUrl = this.config.oauth.nativeGoogle?.apiUrl;\n return this.runtime?.isTabletShell() === true && nativeApiUrl\n ? nativeApiUrl.replace(/\\/+$/u, '')\n : this.apiUrl;\n }\n\n /** Restores an existing cookie session. A missing/expired cookie is normal. */\n initialize(): Promise<void> {\n this.initialization ??= this.restoreSession();\n return this.initialization;\n }\n\n private async restoreSession(): Promise<void> {\n // Runtime selection must settle before choosing the cookie origin. Angular\n // app initializers run concurrently, so auth cannot rely on provider order.\n if (this.runtime) {\n await this.runtime.initialize();\n }\n if (await this.refresh()) {\n try {\n await this.loadCurrentUser();\n } catch (error: unknown) {\n // The interceptor has already attempted one cookie refresh. If it\n // ultimately produced 401, startup remains an anonymous state rather\n // than a rejected app initializer.\n if (error instanceof HttpErrorResponse && error.status === 401) {\n this.clearSession();\n return;\n }\n\n throw error;\n }\n }\n }\n\n /** One shared refresh operation for initializer and concurrent 401 retries. */\n refresh(): Promise<boolean> {\n if (this.refreshInFlight) {\n return this.refreshInFlight;\n }\n\n this.refreshInFlight = firstValueFrom(\n this.http.post<PersistentAuthSessionResponse>(`${this.sessionApiUrl}/v1/auth/refresh`, null, {\n withCredentials: true,\n }),\n )\n .then((response) => {\n this.applyTokenResponse(response);\n return Boolean(this.accessTokenState());\n })\n .catch((error: unknown) => {\n this.clearSession();\n // A 401 on startup is an expected anonymous state, not an application error.\n if (!(error instanceof HttpErrorResponse) || error.status !== 401) {\n throw error;\n }\n return false;\n })\n .finally(() => {\n this.refreshInFlight = null;\n });\n\n return this.refreshInFlight;\n }\n\n async loadCurrentUser(): Promise<AuthUser | null> {\n const token = this.accessTokenState();\n if (!token) {\n return null;\n }\n\n const response = await firstValueFrom(\n this.http.get<PersistentAuthUser>(`${this.sessionApiUrl}/v1/auth/me`, {\n withCredentials: true,\n headers: { Authorization: `Bearer ${token}` },\n }),\n );\n const user = response as AuthUser;\n this.userState.set(user);\n return user;\n }\n\n async logout(): Promise<void> {\n try {\n await firstValueFrom(\n this.http.post(`${this.sessionApiUrl}/v1/auth/logout`, null, { withCredentials: true }),\n );\n } finally {\n this.clearSession();\n await this.clearNativeGoogleSession();\n }\n }\n\n clearSession(): void {\n this.accessTokenState.set('');\n this.userState.set(null);\n }\n\n /** Allows existing OAuth exchanges to establish the same memory-only state. */\n acceptTokenResponse(response: unknown): void {\n if (response && typeof response === 'object') {\n this.applyTokenResponse(response as AuthTokenPayload);\n }\n }\n\n redirectToLogin(): void {\n this.clearSession();\n void this.router?.navigateByUrl(this.config.guestHomePath, { replaceUrl: true });\n }\n\n private applyTokenResponse(response: AuthTokenPayload): void {\n const isPersistentResponse = 'accessToken' in response;\n const token = isPersistentResponse\n ? response.accessToken\n : (response.access_token ?? response.data?.access_token);\n this.accessTokenState.set(typeof token === 'string' ? token : '');\n const user = isPersistentResponse ? response.user : (response.user ?? response.data?.user);\n if (user) {\n this.userState.set(user);\n }\n }\n\n private async clearNativeGoogleSession(): Promise<void> {\n if (\n !this.nativeGoogleAdapter ||\n this.runtime?.isTabletShell() !== true ||\n !this.runtime.supports('google-native-sign-in')\n ) {\n return;\n }\n\n try {\n await this.nativeGoogleAdapter.signOutFromGoogle();\n } catch {\n // Backend logout and memory cleanup remain authoritative. A native SDK\n // sign-out failure must not restore or persist the application session.\n }\n }\n}\n","import {\n HttpContextToken,\n HttpErrorResponse,\n type HttpHandlerFn,\n type HttpInterceptorFn,\n type HttpRequest,\n} from '@angular/common/http';\nimport { inject } from '@angular/core';\nimport { from, throwError } from 'rxjs';\nimport { catchError, switchMap } from 'rxjs/operators';\n\nimport { AuthService } from '../auth.service';\n\nexport const EDSIS_SKIP_AUTH = new HttpContextToken<boolean>(() => false);\nconst EDSIS_AUTH_RETRY = new HttpContextToken<boolean>(() => false);\nconst AUTH_ENDPOINTS = new Set(['/v1/auth/login', '/v1/auth/refresh', '/v1/auth/logout']);\n\nfunction apiPath(url: string, apiUrl: string): string | null {\n // A consumer may use Angular's same-origin dev/prod proxy (`/api/...`) even\n // when `apiUrl` names the upstream origin. Such relative URLs are API calls.\n if (url.startsWith('/')) {\n const path = url.split(/[?#]/, 1)[0] ?? url;\n return path === '/api' || path.startsWith('/api/') ? path : null;\n }\n\n try {\n const resolved = new URL(url);\n const api = new URL(apiUrl);\n if (resolved.origin !== api.origin) return null;\n\n const apiBasePath = api.pathname.replace(/\\/+$/u, '') || '/';\n if (\n apiBasePath !== '/' &&\n resolved.pathname !== apiBasePath &&\n !resolved.pathname.startsWith(`${apiBasePath}/`)\n ) {\n return null;\n }\n\n return resolved.pathname;\n } catch {\n return null;\n }\n}\n\nfunction isApiRequest(url: string, apiUrl: string): boolean {\n return apiPath(url, apiUrl) !== null;\n}\n\nfunction authorize(\n request: HttpRequest<unknown>,\n token: string,\n retry = false,\n): HttpRequest<unknown> {\n return request.clone({\n withCredentials: true,\n context: retry ? request.context.set(EDSIS_AUTH_RETRY, true) : request.context,\n setHeaders: token ? { Authorization: `Bearer ${token}` } : {},\n });\n}\n\nexport const edsisAuthInterceptor: HttpInterceptorFn = (request, next) => {\n const auth = inject(AuthService);\n if (request.context.get(EDSIS_SKIP_AUTH) || !isApiRequest(request.url, auth.apiUrl)) {\n return next(request);\n }\n\n const path = apiPath(request.url, auth.apiUrl);\n const normalizedAuthPath = path?.startsWith('/api/') ? path.slice(4) : path;\n const isAuthEndpoint =\n AUTH_ENDPOINTS.has(normalizedAuthPath ?? '') || normalizedAuthPath?.startsWith('/v1/auth/');\n const prepared = authorize(request, isAuthEndpoint ? '' : auth.accessToken());\n if (isAuthEndpoint) {\n return next(prepared);\n }\n\n return next(prepared).pipe(\n catchError((error: unknown) => {\n if (\n !(error instanceof HttpErrorResponse) ||\n error.status !== 401 ||\n request.context.get(EDSIS_AUTH_RETRY)\n ) {\n return throwError(() => error);\n }\n\n return from(auth.refresh()).pipe(\n switchMap((refreshed) => {\n if (!refreshed) {\n return throwError(() => error);\n }\n return next(authorize(request, auth.accessToken(), true));\n }),\n catchError(() => {\n auth.redirectToLogin();\n return throwError(() => error);\n }),\n );\n }),\n );\n};\n","import { HttpClient, HttpContext } from '@angular/common/http';\nimport { Injectable, computed, inject, signal } from '@angular/core';\nimport { firstValueFrom, timeout } from 'rxjs';\n\nimport { EDSIS_AUTH_CONFIG } from '../auth.config';\nimport { EDSIS_SKIP_AUTH } from '../interceptor';\n\nexport type AuthHealthStatus = 'idle' | 'checking' | 'healthy' | 'unhealthy';\n\n/**\n * Health-check backend auth untuk `AuthLoginPage` (internal, di-provide oleh\n * `provideEdsisAuth`). Sehat = HTTP 2xx dalam `timeoutMs`; body tidak diparse.\n * Tanpa polling — hanya on-load, pre-submit, dan Retry manual.\n */\n@Injectable()\nexport class AuthHealthService {\n private readonly http = inject(HttpClient);\n private readonly config = inject(EDSIS_AUTH_CONFIG);\n\n private readonly _status = signal<AuthHealthStatus>('idle');\n readonly status = this._status.asReadonly();\n readonly isChecking = computed(() => this._status() === 'checking');\n readonly isUnhealthy = computed(() => this._status() === 'unhealthy');\n\n private inFlight = false;\n\n /** true jika sehat ATAU health-check dimatikan. Tak pernah throw. */\n async check(): Promise<boolean> {\n const healthCheck = this.config.healthCheck;\n\n if (!healthCheck.enabled) {\n this._status.set('healthy');\n return true;\n }\n\n if (this.inFlight) {\n return this._status() === 'healthy';\n }\n\n this.inFlight = true;\n this._status.set('checking');\n\n try {\n await firstValueFrom(\n this.http\n .get(healthCheck.url, {\n observe: 'response',\n context: new HttpContext().set(EDSIS_SKIP_AUTH, true),\n })\n .pipe(timeout(healthCheck.timeoutMs)),\n );\n this._status.set('healthy');\n return true;\n } catch {\n this._status.set('unhealthy');\n return false;\n } finally {\n this.inFlight = false;\n }\n }\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable, computed, inject } from '@angular/core';\nimport { RuntimeContextService, type EdsisRuntimePlatform } from '@edsis/angular/services/runtime';\nimport type {\n AuthGoogleNativeChallengeData,\n AuthGoogleNativeChallengeRequest,\n AuthGoogleNativeChallengeResponse,\n AuthGoogleNativeSignInRequest,\n AuthTokenResponse,\n} from '@edsis/sdk/auth';\nimport { firstValueFrom } from 'rxjs';\n\nimport { EDSIS_AUTH_CONFIG } from '../auth.config';\nimport { AuthService } from '../auth.service';\nimport {\n EDSIS_NATIVE_GOOGLE_AUTH_ADAPTER,\n type NativeGooglePlatform,\n type NativeGoogleSignInResult,\n} from './native-google-auth.adapter';\n\n@Injectable()\nexport class NativeGoogleAuthService {\n private readonly http = inject(HttpClient);\n private readonly auth = inject(AuthService);\n private readonly config = inject(EDSIS_AUTH_CONFIG);\n private readonly runtime = inject(RuntimeContextService, { optional: true });\n private readonly adapter = inject(EDSIS_NATIVE_GOOGLE_AUTH_ADAPTER);\n\n readonly requiresNativeGoogle = computed(() => this.runtime?.isTabletShell() === true);\n readonly isAvailable = computed(() => {\n const runtime = this.runtime;\n\n return (\n this.config.oauth.nativeGoogle !== null &&\n runtime?.isTabletShell() === true &&\n toNativePlatform(runtime.context().platform) !== null &&\n runtime.supports('google-native-sign-in')\n );\n });\n\n async signIn(): Promise<void> {\n const nativeConfig = this.config.oauth.nativeGoogle;\n const platform = toNativePlatform(this.runtime?.context().platform);\n\n if (!nativeConfig || !platform || !this.isAvailable()) {\n throw new Error('Native Google Sign-In is not available in this runtime.');\n }\n\n const challengeResponse = await firstValueFrom(\n this.http.post<AuthGoogleNativeChallengeResponse>(\n `${nativeConfig.apiUrl}/v1/auth/google/native/challenge`,\n { platform, deviceType: 'tablet' } satisfies AuthGoogleNativeChallengeRequest,\n { withCredentials: true },\n ),\n );\n const challenge = parseChallenge(challengeResponse);\n const response = await this.exchangeNativeToken(nativeConfig.apiUrl, platform, challenge);\n\n this.auth.acceptTokenResponse(response);\n if (!this.auth.isAuthenticated()) {\n throw new Error('Native Google Sign-In response did not contain an access token.');\n }\n\n try {\n await this.auth.loadCurrentUser();\n } catch (error: unknown) {\n this.auth.clearSession();\n throw error;\n }\n }\n\n private async exchangeNativeToken(\n apiUrl: string,\n platform: NativeGooglePlatform,\n challenge: AuthGoogleNativeChallengeData,\n ): Promise<AuthTokenResponse> {\n let nativeResult: NativeGoogleSignInResult | null = await this.adapter.signInWithGoogle({\n nonce: challenge.nonce,\n });\n\n if (nativeResult.platform !== platform) {\n throw new Error('Native Google Sign-In platform does not match the runtime.');\n }\n\n const clientInstanceId = nativeResult.clientInstanceId;\n let idToken = nativeResult.idToken;\n nativeResult = null;\n\n try {\n return await firstValueFrom(\n this.http.post<AuthTokenResponse>(\n `${apiUrl}/v1/auth/google/native`,\n {\n platform,\n idToken,\n challengeId: challenge.challengeId,\n clientInstanceId,\n deviceType: 'tablet',\n } satisfies AuthGoogleNativeSignInRequest,\n { withCredentials: true },\n ),\n );\n } finally {\n // Strings cannot be zeroized in JavaScript, but dropping both local\n // references immediately after the HTTPS exchange keeps the ID token\n // outside application state and shortens its lifetime in the WebView.\n idToken = '';\n }\n }\n}\n\nfunction toNativePlatform(platform: EdsisRuntimePlatform | undefined): NativeGooglePlatform | null {\n return platform === 'ios' || platform === 'android' ? platform : null;\n}\n\nfunction parseChallenge(value: AuthGoogleNativeChallengeResponse): AuthGoogleNativeChallengeData {\n if (typeof value !== 'object' || value === null || Array.isArray(value)) {\n throw new Error('Native Google challenge returned an invalid response.');\n }\n\n const challenge: unknown = value.data;\n if (typeof challenge !== 'object' || challenge === null || Array.isArray(challenge)) {\n throw new Error('Native Google challenge returned an invalid response.');\n }\n\n const challengeRecord = challenge as Record<string, unknown>;\n const challengeId = challengeRecord['challengeId'];\n const nonce = challengeRecord['nonce'];\n\n if (\n typeof challengeId !== 'string' ||\n !challengeId.trim() ||\n typeof nonce !== 'string' ||\n !nonce.trim()\n ) {\n throw new Error('Native Google challenge returned an invalid response.');\n }\n\n return { challengeId, nonce };\n}\n","import { DOCUMENT } from '@angular/common';\nimport { provideHttpClient, withFetch, withInterceptors } from '@angular/common/http';\nimport {\n inject,\n makeEnvironmentProviders,\n provideAppInitializer,\n type EnvironmentProviders,\n} from '@angular/core';\nimport { provideApiConfiguration } from '@edsis/sdk/shared';\n\nimport { EDSIS_AUTH_CONFIG, resolveEdsisAuthConfig, type EdsisAuthConfig } from './auth.config';\nimport { EDSIS_AUTH_MESSAGES, mergeEdsisAuthMessages } from './auth-messages';\nimport { AuthService } from './auth.service';\nimport { AuthHealthService } from './health';\nimport { edsisAuthInterceptor } from './interceptor';\nimport {\n EDSIS_NATIVE_GOOGLE_AUTH_ADAPTER,\n NativeGoogleAuthService,\n TauriNativeGoogleAuthAdapter,\n} from './native';\n\nexport function provideEdsisAuth(config: EdsisAuthConfig): EnvironmentProviders {\n const resolvedConfig = resolveEdsisAuthConfig(config);\n\n return makeEnvironmentProviders([\n provideApiConfiguration(resolvedConfig.apiUrl),\n provideHttpClient(\n withFetch(),\n withInterceptors([edsisAuthInterceptor, ...(config.httpInterceptors ?? [])]),\n ),\n // Completes before initial navigation, therefore guards see restored state.\n provideAppInitializer(() => inject(AuthService).initialize()),\n {\n provide: EDSIS_AUTH_CONFIG,\n useValue: resolvedConfig,\n },\n {\n provide: EDSIS_AUTH_MESSAGES,\n useValue: mergeEdsisAuthMessages(config.messages),\n },\n AuthHealthService,\n NativeGoogleAuthService,\n TauriNativeGoogleAuthAdapter,\n {\n provide: EDSIS_NATIVE_GOOGLE_AUTH_ADAPTER,\n useExisting: TauriNativeGoogleAuthAdapter,\n },\n ]);\n}\n","import { inject } from '@angular/core';\nimport { CanActivateFn, Router } from '@angular/router';\n\nimport { EDSIS_AUTH_CONFIG } from '../auth.config';\nimport { AuthService } from '../auth.service';\n\nexport const authenticatedGuard: CanActivateFn = async () => {\n const router = inject(Router);\n const authConfig = inject(EDSIS_AUTH_CONFIG);\n const auth = inject(AuthService);\n\n if (auth.isAuthenticated()) {\n return true;\n }\n\n return router.parseUrl(authConfig.guestHomePath);\n};\n\nexport const homeRedirectGuard: CanActivateFn = async () => {\n const router = inject(Router);\n const authConfig = inject(EDSIS_AUTH_CONFIG);\n const auth = inject(AuthService);\n\n return router.parseUrl(\n auth.isAuthenticated() ? authConfig.authenticatedHomePath : authConfig.guestHomePath,\n );\n};\n\nexport const guestOnlyGuard: CanActivateFn = async () => {\n const router = inject(Router);\n const authConfig = inject(EDSIS_AUTH_CONFIG);\n const auth = inject(AuthService);\n\n if (!auth.isAuthenticated()) {\n return true;\n }\n\n return router.parseUrl(authConfig.authenticatedHomePath);\n};\n","export const GOOGLE_OAUTH_STATE_STORAGE_KEY = 'auth-google-state';\nexport const GOOGLE_OAUTH_AUTHORIZE_URL = 'https://accounts.google.com/o/oauth2/v2/auth';\nconst GOOGLE_OAUTH_SCOPE = 'openid email profile';\nconst GOOGLE_OAUTH_STATE_BYTE_LENGTH = 16;\n\nexport interface GoogleAuthorizeUrlOptions {\n clientId: string;\n redirectUri: string;\n state: string;\n}\n\n/** Nilai `state` acak berbasis crypto (anti-CSRF untuk round-trip OAuth). */\nexport function createGoogleOauthState(windowRef: Window): string {\n const randomBytes = windowRef.crypto.getRandomValues(\n new Uint8Array(GOOGLE_OAUTH_STATE_BYTE_LENGTH),\n );\n\n return Array.from(randomBytes, (byte) => byte.toString(16).padStart(2, '0')).join('');\n}\n\nexport function buildGoogleAuthorizeUrl(options: GoogleAuthorizeUrlOptions): string {\n const authorizeUrl = new URL(GOOGLE_OAUTH_AUTHORIZE_URL);\n\n authorizeUrl.searchParams.set('client_id', options.clientId);\n authorizeUrl.searchParams.set('redirect_uri', options.redirectUri);\n authorizeUrl.searchParams.set('response_type', 'code');\n authorizeUrl.searchParams.set('scope', GOOGLE_OAUTH_SCOPE);\n authorizeUrl.searchParams.set('state', options.state);\n\n return authorizeUrl.toString();\n}\n\nexport function storeGoogleOauthState(documentRef: Document, state: string): void {\n documentRef.defaultView?.sessionStorage?.setItem(GOOGLE_OAUTH_STATE_STORAGE_KEY, state);\n}\n\n/**\n * Baca lalu hapus state dari sessionStorage. State sekali pakai: dikonsumsi di\n * semua cabang callback agar tidak bocor ke percobaan login berikutnya.\n */\nexport function consumeGoogleOauthState(documentRef: Document): string {\n const sessionStorageRef = documentRef.defaultView?.sessionStorage;\n const state = sessionStorageRef?.getItem(GOOGLE_OAUTH_STATE_STORAGE_KEY)?.trim() ?? '';\n\n sessionStorageRef?.removeItem(GOOGLE_OAUTH_STATE_STORAGE_KEY);\n\n return state;\n}\n","import { Component, computed, inject } from '@angular/core';\nimport { RouterOutlet } from '@angular/router';\nimport {\n NativeHostService,\n RuntimeContextService,\n type EdsisWindowControlAction,\n} from '@edsis/angular/services/runtime';\nimport {\n LayoutComponent,\n DesktopAppBarComponent,\n LayoutFluidComponent,\n LayoutService,\n type DesktopAppBarPlatform,\n} from '@edsis/theme/layout';\n\n@Component({\n selector: 'edsis-auth-shell-page',\n imports: [RouterOutlet, LayoutComponent, DesktopAppBarComponent, LayoutFluidComponent],\n host: {\n class: 'contents',\n },\n template: `\n @if (isDesktopAppearance()) {\n <DesktopAppBar\n [platform]=\"desktopAppBarPlatform()\"\n (windowControlRequested)=\"onDesktopWindowControlRequested($event)\"\n (windowDragRequested)=\"onDesktopWindowDragRequested()\"\n />\n }\n\n <Layout surface=\"grid\" width=\"fluid\">\n <LayoutFluid>\n <div class=\"w-full max-w-xl\">\n <router-outlet />\n </div>\n </LayoutFluid>\n </Layout>\n `,\n})\nexport class AuthShellPage {\n private readonly runtimeContext = inject(RuntimeContextService, { optional: true });\n private readonly nativeHost = inject(NativeHostService, { optional: true });\n\n protected readonly layout = inject(LayoutService);\n protected readonly isDesktopAppearance = computed(() => this.layout.appearance() === 'desktop');\n protected readonly desktopAppBarPlatform = computed<DesktopAppBarPlatform | null | undefined>(\n () => {\n const context = this.runtimeContext?.context();\n if (!context || context.host === 'browser') {\n return undefined;\n }\n\n return context.deviceType === 'macos' || context.deviceType === 'windows'\n ? context.deviceType\n : null;\n },\n );\n\n protected onDesktopWindowControlRequested(action: EdsisWindowControlAction): void {\n const nativeHost = this.nativeHost;\n if (!nativeHost?.supports('window-controls')) {\n return;\n }\n\n void nativeHost.emitWindowControl(action).catch((error: unknown) => {\n console.error(`Failed to run window control: ${action}`, error);\n });\n }\n\n protected onDesktopWindowDragRequested(): void {\n const nativeHost = this.nativeHost;\n if (!nativeHost?.supports('window-controls')) {\n return;\n }\n\n void nativeHost.startDragging().catch((error: unknown) => {\n console.error('Failed to start window dragging', error);\n });\n }\n}\n","import { HttpErrorResponse } from '@angular/common/http';\n\ninterface MessageCarrier {\n message?: unknown;\n}\n\nexport function extractMagicToken(\n queryToken: string | null,\n fragment: string | null,\n): string | null {\n const tokenFromQuery = normalizeText(queryToken);\n\n if (tokenFromQuery) {\n return tokenFromQuery;\n }\n\n const normalizedFragment = normalizeText(\n fragment?.startsWith('#') ? fragment.slice(1) : fragment,\n );\n\n if (!normalizedFragment) {\n return null;\n }\n\n const fragmentParams = new URLSearchParams(normalizedFragment);\n const tokenFromFragment =\n normalizeText(fragmentParams.get('token')) ??\n normalizeText(fragmentParams.get('magic_token')) ??\n normalizeText(fragmentParams.get('value'));\n\n if (tokenFromFragment) {\n return tokenFromFragment;\n }\n\n return normalizedFragment.includes('=') ? null : normalizedFragment;\n}\n\nexport function getResponseMessage(response: unknown, fallback: string): string {\n if (!hasMessage(response)) {\n return fallback;\n }\n\n return normalizeText(response.message) ?? fallback;\n}\n\n/**\n * Pesan error dari body respons backend saja. Berbeda dengan `getErrorMessage`,\n * `HttpErrorResponse.message` sintetis (\"Http failure response for ...\") tidak\n * pernah dipakai, sehingga tanpa pesan backend selalu jatuh ke fallback ramah.\n */\nexport function getBackendErrorMessage(error: unknown, fallback: string): string {\n if (!(error instanceof HttpErrorResponse)) {\n return fallback;\n }\n\n const errorBody = error.error;\n\n if (typeof errorBody === 'string') {\n return normalizeText(errorBody) ?? fallback;\n }\n\n if (hasMessage(errorBody)) {\n return normalizeText(errorBody.message) ?? fallback;\n }\n\n return fallback;\n}\n\nexport function getErrorMessage(error: unknown, fallback: string): string {\n if (error instanceof HttpErrorResponse) {\n const errorBody = error.error;\n\n if (typeof errorBody === 'string') {\n return normalizeText(errorBody) ?? fallback;\n }\n\n if (hasMessage(errorBody)) {\n return normalizeText(errorBody.message) ?? fallback;\n }\n\n return normalizeText(error.message) ?? fallback;\n }\n\n if (error instanceof Error) {\n return normalizeText(error.message) ?? fallback;\n }\n\n return fallback;\n}\n\nfunction hasMessage(value: unknown): value is MessageCarrier {\n return typeof value === 'object' && value !== null && 'message' in value;\n}\n\nfunction normalizeText(value: unknown): string | null {\n if (typeof value !== 'string') {\n return null;\n }\n\n const normalizedValue = value.trim();\n return normalizedValue.length > 0 ? normalizedValue : null;\n}\n","import { DOCUMENT, Location } from '@angular/common';\nimport {\n Component,\n DestroyRef,\n ElementRef,\n Injector,\n afterNextRender,\n effect,\n inject,\n signal,\n viewChild,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { ActivatedRoute, Router, RouterLink } from '@angular/router';\nimport { AuthSessionService } from '@edsis/sdk/auth';\nimport { AlertComponent, AlertDescriptionComponent } from '@edsis/component/alert';\nimport { AspectRatioComponent } from '@edsis/component/aspect-ratio';\nimport { ButtonComponent } from '@edsis/component/button';\nimport {\n CardActionComponent,\n CardComponent,\n CardContentComponent,\n CardDescriptionComponent,\n CardFooterComponent,\n CardHeaderComponent,\n CardTitleComponent,\n} from '@edsis/component/card';\nimport { SpinnerComponent } from '@edsis/component/spinner';\n\nimport { EDSIS_AUTH_CONFIG, GOOGLE_OAUTH_CALLBACK_ROUTE_PATH } from '../../auth.config';\nimport { EDSIS_AUTH_MESSAGES } from '../../auth-messages';\nimport { AuthService } from '../../auth.service';\nimport { consumeGoogleOauthState } from '../../oauth';\nimport { getBackendErrorMessage, getResponseMessage } from '../auth-page.utils';\n\n@Component({\n selector: 'AuthGoogleCallbackPage',\n imports: [\n RouterLink,\n AlertComponent,\n AlertDescriptionComponent,\n AspectRatioComponent,\n ButtonComponent,\n CardActionComponent,\n CardComponent,\n CardContentComponent,\n CardDescriptionComponent,\n CardFooterComponent,\n CardHeaderComponent,\n CardTitleComponent,\n SpinnerComponent,\n ],\n host: {\n class: 'block',\n },\n template: `\n <Card\n class=\"w-full overflow-hidden rounded-none border-border/80 bg-card/95 shadow-2xl backdrop-blur-sm\"\n >\n <CardHeader\n class=\"grid grid-cols-[auto_minmax(0,1fr)_auto] items-start gap-x-4 gap-y-3 border-b border-border/60 bg-muted/15 pb-4 sm:pb-5\"\n >\n <div class=\"w-16 shrink-0 sm:w-20\">\n <AspectRatio [ratio]=\"3 / 2\" class=\"overflow-hidden rounded-none bg-primary\">\n <div\n class=\"flex h-full w-full items-center justify-center px-1 text-[1.25rem] leading-none tracking-[-0.08em] text-primary-foreground sm:text-[1.55rem]\"\n style=\"font-family: 'Arial Black', Arial, sans-serif;\"\n >\n {{ messages.brand.mark }}\n </div>\n </AspectRatio>\n </div>\n <div class=\"min-w-0 space-y-0.5 pt-0.5 sm:pt-1\">\n <CardTitle class=\"text-xl leading-tight sm:text-2xl\">{{\n messages.google.title\n }}</CardTitle>\n <p CardDescription class=\"max-w-xl leading-6\">\n {{ messages.google.intro }}\n </p>\n </div>\n <CardAction\n class=\"col-start-3 row-span-1 mt-0! pt-0.5 text-xs font-medium uppercase tracking-[0.24em] text-muted-foreground sm:pt-1 sm:text-sm\"\n >\n {{ messages.google.badge }}\n </CardAction>\n </CardHeader>\n\n <CardContent class=\"space-y-4 pt-6 sm:pt-7\">\n <Alert\n [variant]=\"state() === 'error' ? 'destructive' : 'default'\"\n class=\"bg-background/70 shadow-sm\"\n >\n @if (state() === 'pending') {\n <Spinner class=\"mt-0.5 size-4\" [aria-label]=\"messages.google.exchangeInProgressAria\" />\n }\n\n <AlertDescription>\n {{ message() }}\n </AlertDescription>\n </Alert>\n </CardContent>\n\n @if (state() !== 'pending') {\n <CardFooter class=\"flex flex-wrap gap-3 border-t border-border/60 bg-muted/10 pt-4 sm:pt-5\">\n @if (state() === 'error') {\n <a #retryLink Button [routerLink]=\"loginPath\" variant=\"default\">\n {{ messages.google.googleRetry }}\n </a>\n }\n <a\n Button\n [routerLink]=\"authenticatedHomePath\"\n [variant]=\"state() === 'error' ? 'outline' : 'default'\"\n >\n {{ messages.google.openDashboard }}\n </a>\n </CardFooter>\n }\n </Card>\n `,\n})\nexport class AuthGoogleCallbackPage {\n private readonly documentRef = inject<Document>(DOCUMENT);\n private readonly destroyRef = inject(DestroyRef);\n private readonly injector = inject(Injector);\n private readonly route = inject(ActivatedRoute);\n private readonly router = inject(Router);\n private readonly location = inject(Location);\n private readonly authSessionService = inject(AuthSessionService);\n private readonly authService = inject(AuthService);\n private readonly authConfig = inject(EDSIS_AUTH_CONFIG);\n protected readonly messages = inject(EDSIS_AUTH_MESSAGES);\n\n protected readonly loginPath = this.authConfig.loginPath;\n protected readonly authenticatedHomePath = this.authConfig.authenticatedHomePath;\n protected readonly state = signal<'pending' | 'success' | 'error'>('pending');\n protected readonly message = signal(this.messages.google.googleExchangeInProgress);\n // `a[Button]` adalah komponen, jadi tanpa `read` query template-ref ini\n // mengembalikan instance ButtonComponent — bukan elemen anchor-nya.\n private readonly retryLink = viewChild('retryLink', { read: ElementRef });\n\n constructor() {\n effect(() => {\n if (this.state() !== 'error') {\n return;\n }\n\n afterNextRender(() => this.retryLink()?.nativeElement.focus(), { injector: this.injector });\n });\n\n this.handleCallback();\n }\n\n private handleCallback(): void {\n const queryParams = this.route.snapshot.queryParamMap;\n const oauthError = queryParams.get('error')?.trim() ?? '';\n const code = queryParams.get('code')?.trim() ?? '';\n const returnedState = queryParams.get('state')?.trim() ?? '';\n // State dikonsumsi (dibaca + dihapus) sebelum bercabang supaya bersih di\n // semua cabang, termasuk cabang error dari Google.\n const storedState = consumeGoogleOauthState(this.documentRef);\n\n this.clearCallbackParamsFromAddressBar();\n\n if (oauthError) {\n this.fail(\n oauthError === 'access_denied'\n ? this.messages.google.googleAccessDenied\n : this.messages.google.googleCallbackError,\n );\n return;\n }\n\n if (!returnedState || !storedState || returnedState !== storedState) {\n this.fail(this.messages.google.googleStateMismatch);\n return;\n }\n\n if (!code) {\n this.fail(this.messages.google.googleCallbackError);\n return;\n }\n\n this.exchange(code);\n }\n\n private clearCallbackParamsFromAddressBar(): void {\n this.location.replaceState(`/${GOOGLE_OAUTH_CALLBACK_ROUTE_PATH}`);\n }\n\n private exchange(code: string): void {\n const googleOauth = this.authConfig.oauth.google;\n\n if (!googleOauth) {\n this.fail(this.messages.google.googleCallbackError);\n return;\n }\n\n this.state.set('pending');\n this.message.set(this.messages.google.googleExchangeInProgress);\n\n // Exchange lewat method SDK hasil generate (konsisten dengan\n // verifyMagicLink/refreshAuthToken); path /v1/auth/google membuat\n // edsisAuthInterceptor otomatis memasang cookie credentials.\n this.authSessionService\n .exchangeGoogleCode({\n body: { code, redirectUri: googleOauth.redirectUri },\n })\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe({\n next: (response) => {\n this.authService.acceptTokenResponse(response);\n\n if (!this.authService.isAuthenticated()) {\n this.fail(this.messages.google.missingAccessToken);\n return;\n }\n\n this.state.set('success');\n this.message.set(getResponseMessage(response, this.messages.google.successRedirect));\n void this.router.navigateByUrl(this.authenticatedHomePath, { replaceUrl: true });\n },\n error: (error: unknown) => {\n this.fail(getBackendErrorMessage(error, this.messages.google.googleCallbackError));\n },\n });\n }\n\n private fail(message: string): void {\n this.state.set('error');\n this.message.set(message);\n }\n}\n","import { DOCUMENT } from '@angular/common';\nimport {\n Component,\n DestroyRef,\n ElementRef,\n Injector,\n afterNextRender,\n computed,\n effect,\n inject,\n signal,\n viewChild,\n} from '@angular/core';\nimport { takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop';\nimport { FormBuilder, ReactiveFormsModule, Validators } from '@angular/forms';\nimport { Router } from '@angular/router';\nimport { AuthMagicLinkService } from '@edsis/sdk/auth';\nimport { AspectRatioComponent } from '@edsis/component/aspect-ratio';\nimport { ButtonComponent } from '@edsis/component/button';\nimport {\n CardActionComponent,\n CardComponent,\n CardContentComponent,\n CardDescriptionComponent,\n CardHeaderComponent,\n CardTitleComponent,\n} from '@edsis/component/card';\nimport {\n InputGroupAddonComponent,\n InputGroupButtonComponent,\n InputGroupComponent,\n InputGroupInputComponent,\n} from '@edsis/component/input-group';\nimport { LabelComponent } from '@edsis/component/label';\nimport { SeparatorComponent } from '@edsis/component/separator';\nimport { finalize, startWith } from 'rxjs';\n\nimport { EDSIS_AUTH_CONFIG } from '../../auth.config';\nimport { EDSIS_AUTH_MESSAGES } from '../../auth-messages';\nimport { AuthHealthService } from '../../health';\nimport { NativeGoogleAuthService } from '../../native';\nimport {\n buildGoogleAuthorizeUrl,\n createGoogleOauthState,\n storeGoogleOauthState,\n} from '../../oauth';\nimport { getErrorMessage, getResponseMessage } from '../auth-page.utils';\n\n@Component({\n selector: 'edsis-auth-login-page',\n imports: [\n ReactiveFormsModule,\n AspectRatioComponent,\n ButtonComponent,\n CardActionComponent,\n CardComponent,\n CardContentComponent,\n CardDescriptionComponent,\n CardHeaderComponent,\n CardTitleComponent,\n InputGroupAddonComponent,\n InputGroupButtonComponent,\n InputGroupComponent,\n InputGroupInputComponent,\n LabelComponent,\n SeparatorComponent,\n ],\n host: {\n class: 'block',\n },\n template: `\n <Card\n class=\"w-full overflow-hidden rounded-none border-border/80 bg-card/95 shadow-2xl backdrop-blur-sm\"\n >\n <CardHeader\n class=\"grid grid-cols-[auto_minmax(0,1fr)_auto] items-start gap-x-4 gap-y-3 border-b border-border/60 bg-muted/15 pb-4 sm:pb-5\"\n >\n <div class=\"w-16 shrink-0 sm:w-20\">\n <AspectRatio [ratio]=\"3 / 2\" class=\"overflow-hidden rounded-none bg-primary\">\n <div\n class=\"flex h-full w-full items-center justify-center px-1 text-[1.25rem] leading-none tracking-[-0.08em] text-primary-foreground sm:text-[1.55rem]\"\n style=\"font-family: 'Arial Black', Arial, sans-serif;\"\n >\n {{ messages.brand.mark }}\n </div>\n </AspectRatio>\n </div>\n <div class=\"min-w-0 space-y-0.5 pt-0.5 sm:pt-1\">\n <CardTitle class=\"text-xl leading-tight sm:text-2xl\">{{\n messages.login.title\n }}</CardTitle>\n <p CardDescription class=\"max-w-xl leading-6\">\n {{ messages.login.intro }}\n </p>\n </div>\n <CardAction\n class=\"col-start-3 row-span-1 mt-0! pt-0.5 text-xs font-medium uppercase tracking-[0.24em] text-muted-foreground sm:pt-1 sm:text-sm\"\n >\n {{ messages.login.badge }}\n </CardAction>\n </CardHeader>\n\n <CardContent class=\"pt-4 sm:pt-5\">\n @if (health.isUnhealthy()) {\n <div\n [id]=\"healthBannerId\"\n role=\"alert\"\n aria-live=\"assertive\"\n class=\"mb-5 space-y-1 rounded-none border border-destructive bg-destructive/10 p-4 text-destructive\"\n >\n <p class=\"font-medium\">{{ messages.login.healthUnavailableTitle }}</p>\n <p class=\"text-sm\">{{ messages.login.healthUnavailableBody }}</p>\n <button\n #healthRetryButton\n Button\n type=\"button\"\n variant=\"outline\"\n size=\"sm\"\n class=\"mt-2 border-destructive/50 text-destructive hover:bg-destructive/10 hover:text-destructive\"\n [disabled]=\"health.isChecking()\"\n (click)=\"retryHealth()\"\n >\n {{ health.isChecking() ? messages.login.healthChecking : messages.login.healthRetry }}\n </button>\n </div>\n }\n\n <form class=\"space-y-6\" [formGroup]=\"form\" (ngSubmit)=\"submit()\">\n <div class=\"space-y-3\">\n <label Label for=\"email\" class=\"sr-only\">Alamat email</label>\n <InputGroup [class]=\"emailFieldClasses()\">\n <InputGroupAddon\n aria-hidden=\"true\"\n class=\"min-h-12 px-4 bg-transparent text-primary [&_svg]:size-6!\"\n >\n <svg\n viewBox=\"0 0 24 24\"\n class=\"fill-none stroke-current\"\n stroke-width=\"1.8\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"M4 7.5h16\" />\n <path\n d=\"M5 6h14a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1Z\"\n />\n <path d=\"m5 8 7 5 7-5\" />\n </svg>\n </InputGroupAddon>\n\n <input\n InputGroupInput\n class=\"h-12! px-4! text-base!\"\n id=\"email\"\n type=\"email\"\n inputmode=\"email\"\n autocomplete=\"email\"\n [attr.aria-describedby]=\"feedbackMessage() ? emailFeedbackId : null\"\n [attr.aria-invalid]=\"fieldTone() === 'error' ? 'true' : null\"\n formControlName=\"email\"\n [placeholder]=\"messages.login.emailPlaceholder\"\n />\n\n <button\n InputGroupButton\n type=\"submit\"\n variant=\"default\"\n size=\"sm\"\n [disabled]=\"\n form.invalid || isSubmitting() || health.isChecking() || health.isUnhealthy()\n \"\n [attr.aria-describedby]=\"health.isUnhealthy() ? healthBannerId : null\"\n class=\"order-30 h-12! min-w-24 rounded-none px-5 text-sm font-medium\"\n >\n {{ isSubmitting() ? messages.login.submitting : messages.login.submit }}\n </button>\n </InputGroup>\n\n @if (feedbackMessage(); as feedback) {\n <p\n [id]=\"emailFeedbackId\"\n class=\"text-sm\"\n [class.text-destructive]=\"feedbackTone() === 'error'\"\n [class.text-emerald-700]=\"feedbackTone() === 'success'\"\n [attr.role]=\"feedbackTone() === 'error' ? 'alert' : 'status'\"\n [attr.aria-live]=\"feedbackTone() === 'error' ? 'assertive' : 'polite'\"\n >\n {{ feedback }}\n </p>\n }\n </div>\n\n <div class=\"grid grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center gap-3 pt-2\">\n <Separator class=\"w-full\" />\n <span\n class=\"min-w-14 text-center text-sm font-medium uppercase tracking-[0.18em] text-muted-foreground\"\n >\n Atau\n </span>\n <Separator class=\"w-full\" />\n </div>\n\n <div class=\"grid gap-3 pt-2 sm:grid-cols-3\">\n <button\n Button\n type=\"button\"\n variant=\"outline\"\n size=\"lg\"\n [disabled]=\"!googleSignInAvailable() || isGoogleRedirecting()\"\n [attr.aria-label]=\"\n googleSignInAvailable()\n ? messages.google.signInAria\n : requiresNativeGoogle()\n ? messages.google.nativeSignInUnavailable\n : messages.login.oauthGoogleAria\n \"\n [attr.title]=\"\n googleSignInAvailable()\n ? null\n : requiresNativeGoogle()\n ? messages.google.nativeSignInUnavailable\n : messages.login.oauthComingSoon\n \"\n (click)=\"signInWithGoogle()\"\n class=\"h-12 gap-3 text-[0.74rem] font-medium uppercase tracking-[0.16em]\"\n >\n <span\n class=\"inline-flex size-6 shrink-0 items-center justify-center\"\n aria-hidden=\"true\"\n >\n <svg viewBox=\"0 0 24 24\" class=\"size-5\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fill=\"#EA4335\"\n d=\"M12.24 10.285v3.965h5.514c-.24 1.285-.96 2.374-2.045 3.105l3.305 2.565c1.925-1.775 3.03-4.39 3.03-7.49 0-.73-.065-1.43-.185-2.145z\"\n />\n <path\n fill=\"#34A853\"\n d=\"M12 22c2.7 0 4.965-.895 6.62-2.425l-3.305-2.565c-.915.615-2.085.985-3.315.985-2.545 0-4.7-1.72-5.47-4.03H3.115v2.53A9.996 9.996 0 0 0 12 22\"\n />\n <path\n fill=\"#4A90E2\"\n d=\"M6.53 13.965A5.996 5.996 0 0 1 6.24 12c0-.68.115-1.34.29-1.965v-2.53H3.115A9.996 9.996 0 0 0 2 12c0 1.61.385 3.135 1.115 4.495z\"\n />\n <path\n fill=\"#FBBC05\"\n d=\"M12 6.005c1.47 0 2.79.505 3.83 1.495l2.87-2.87C16.96 3.01 14.695 2 12 2a9.996 9.996 0 0 0-8.885 5.505l3.415 2.53c.77-2.31 2.925-4.03 5.47-4.03\"\n />\n </svg>\n </span>\n {{ isGoogleRedirecting() ? googleProgressMessage() : 'Google' }}\n </button>\n <button\n Button\n type=\"button\"\n variant=\"outline\"\n size=\"lg\"\n disabled\n [attr.aria-label]=\"messages.login.oauthMicrosoftAria\"\n [attr.title]=\"messages.login.oauthComingSoon\"\n class=\"h-12 gap-3 text-[0.74rem] font-medium uppercase tracking-[0.16em]\"\n >\n <span\n class=\"inline-flex size-6 shrink-0 items-center justify-center\"\n aria-hidden=\"true\"\n >\n <svg viewBox=\"0 0 24 24\" class=\"size-5\" xmlns=\"http://www.w3.org/2000/svg\">\n <path fill=\"#F25022\" d=\"M2 2h9.5v9.5H2z\" />\n <path fill=\"#7FBA00\" d=\"M12.5 2H22v9.5h-9.5z\" />\n <path fill=\"#00A4EF\" d=\"M2 12.5h9.5V22H2z\" />\n <path fill=\"#FFB900\" d=\"M12.5 12.5H22V22h-9.5z\" />\n </svg>\n </span>\n Microsoft\n </button>\n <button\n Button\n type=\"button\"\n variant=\"outline\"\n size=\"lg\"\n disabled\n [attr.aria-label]=\"messages.login.oauthAppleAria\"\n [attr.title]=\"messages.login.oauthComingSoon\"\n class=\"h-12 gap-3 text-[0.74rem] font-medium uppercase tracking-[0.16em]\"\n >\n <span\n class=\"inline-flex size-6 shrink-0 items-center justify-center\"\n aria-hidden=\"true\"\n >\n <svg\n viewBox=\"0 0 24 24\"\n class=\"size-5 fill-current\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M15.482 2c.13 1.25-.31 2.19-.84 2.81-.55.65-1.47 1.15-2.39 1.08-.12-1.21.38-2.17.92-2.79.6-.68 1.61-1.17 2.31-1.1Zm3.94 16.85c-.41.94-.91 1.8-1.54 2.59-.86 1.07-1.57 1.8-2.39 1.8-.59 0-.99-.17-1.44-.36-.47-.2-.95-.4-1.63-.4-.71 0-1.22.2-1.7.4-.46.19-.85.35-1.38.37-.79.03-1.55-.8-2.42-1.87-1.86-2.28-3.3-6.43-1.38-9.77.96-1.66 2.68-2.72 4.55-2.75.71-.01 1.39.21 1.98.41.45.15.86.29 1.19.29.3 0 .73-.15 1.19-.31.68-.23 1.46-.49 2.28-.42 1.14.09 2.17.55 2.98 1.38-2.66 1.45-2.23 5.2.71 6.54Z\"\n />\n </svg>\n </span>\n Apple\n </button>\n </div>\n\n @if (isGoogleRedirecting()) {\n <p class=\"sr-only\" role=\"status\" aria-live=\"polite\">\n {{ googleProgressMessage() }}\n </p>\n }\n\n @if (googleFeedbackMessage(); as googleError) {\n <p class=\"text-sm text-destructive\" role=\"alert\" aria-live=\"assertive\">\n {{ googleError }}\n </p>\n }\n </form>\n </CardContent>\n </Card>\n `,\n})\nexport class AuthLoginPage {\n private readonly documentRef = inject<Document>(DOCUMENT);\n private readonly destroyRef = inject(DestroyRef);\n private readonly formBuilder = inject(FormBuilder);\n private readonly injector = inject(Injector);\n private readonly authMagicLinkService = inject(AuthMagicLinkService);\n private readonly authConfig = inject(EDSIS_AUTH_CONFIG);\n private readonly nativeGoogle = inject(NativeGoogleAuthService, { optional: true });\n private readonly router = inject(Router, { optional: true });\n protected readonly messages = inject(EDSIS_AUTH_MESSAGES);\n protected readonly health = inject(AuthHealthService);\n protected readonly googleOauth = this.authConfig.oauth.google;\n protected readonly isGoogleRedirecting = signal(false);\n protected readonly googleErrorMessage = signal<string | null>(null);\n protected readonly requiresNativeGoogle = computed(\n () => this.nativeGoogle?.requiresNativeGoogle() === true,\n );\n protected readonly isNativeGoogle = computed(() => this.nativeGoogle?.isAvailable() === true);\n protected readonly googleSignInAvailable = computed(\n () => this.isNativeGoogle() || (!this.requiresNativeGoogle() && this.googleOauth !== null),\n );\n protected readonly googleFeedbackMessage = computed(\n () =>\n this.googleErrorMessage() ??\n (this.requiresNativeGoogle() && !this.isNativeGoogle()\n ? this.messages.google.nativeSignInUnavailable\n : null),\n );\n protected readonly googleProgressMessage = computed(() =>\n this.isNativeGoogle()\n ? this.messages.google.nativeSignInInProgress\n : this.messages.google.googleRedirecting,\n );\n\n protected readonly form = this.formBuilder.nonNullable.group({\n email: ['', [Validators.required, Validators.email, Validators.maxLength(255)]],\n });\n protected readonly isSubmitting = signal(false);\n protected readonly responseMessage = signal<string | null>(null);\n protected readonly errorMessage = signal<string | null>(null);\n protected readonly emailControl = this.form.controls.email;\n protected readonly emailFeedbackId = 'email-feedback';\n protected readonly healthBannerId = 'auth-health-banner';\n // `button[Button]` adalah komponen, jadi tanpa `read` query template-ref ini\n // mengembalikan instance ButtonComponent — bukan elemen button-nya.\n private readonly retryButton = viewChild('healthRetryButton', { read: ElementRef });\n private readonly emailControlState = toSignal(this.emailControl.events.pipe(startWith(null)), {\n initialValue: null,\n });\n\n constructor() {\n // On-load health check: non-blocking, no-op saat healthCheck.enabled=false.\n void this.health.check();\n\n effect(() => {\n if (this.health.status() !== 'unhealthy') {\n return;\n }\n\n afterNextRender(() => this.retryButton()?.nativeElement.focus(), { injector: this.injector });\n });\n }\n\n protected readonly hasInlineError = computed(() => {\n this.emailControlState();\n return this.emailControl.invalid && (this.emailControl.dirty || this.emailControl.touched);\n });\n\n protected readonly inlineErrorMessage = computed(() => {\n // Depend on the control events directly: `hasInlineError` stays `true`\n // while the error kind changes (e.g. format → required), and a memoized\n // boolean alone would leave a stale message on screen.\n this.emailControlState();\n\n if (!this.hasInlineError()) {\n return null;\n }\n\n return this.emailControl.hasError('required')\n ? this.messages.login.emailRequired\n : this.messages.login.emailInvalid;\n });\n\n protected readonly feedbackMessage = computed(\n () => this.inlineErrorMessage() ?? this.responseMessage() ?? this.errorMessage(),\n );\n\n protected readonly feedbackTone = computed<'error' | 'success' | null>(() => {\n if (this.inlineErrorMessage() || this.errorMessage()) {\n return 'error';\n }\n\n if (this.responseMessage()) {\n return 'success';\n }\n\n return null;\n });\n\n protected readonly fieldTone = computed<'idle' | 'error' | 'success'>(() => {\n if (this.hasInlineError() || this.errorMessage()) {\n return 'error';\n }\n\n if (this.responseMessage()) {\n return 'success';\n }\n\n return 'idle';\n });\n\n protected readonly emailFieldClasses = computed(() => {\n const baseClasses =\n 'flex-nowrap bg-background/70 shadow-sm [&>[data-slot=input-group-control]]:h-12! [&>[data-slot=input-group-control]]:px-4! [&>[data-slot=input-group-control]]:text-base!';\n\n switch (this.fieldTone()) {\n case 'error':\n return `${baseClasses} border-destructive focus-within:border-destructive focus-within:ring-destructive/20`;\n case 'success':\n return `${baseClasses} border-emerald-500 focus-within:border-emerald-500 focus-within:ring-emerald-500/20`;\n default:\n return baseClasses;\n }\n });\n\n protected retryHealth(): void {\n void this.health.check();\n }\n\n protected signInWithGoogle(): void {\n if (this.isGoogleRedirecting()) {\n return;\n }\n\n if (this.requiresNativeGoogle()) {\n if (this.isNativeGoogle()) {\n void this.signInWithNativeGoogle();\n } else {\n this.googleErrorMessage.set(this.messages.google.nativeSignInUnavailable);\n }\n return;\n }\n\n if (!this.googleSignInAvailable()) return;\n\n const googleOauth = this.googleOauth;\n const windowRef = this.documentRef.defaultView;\n if (!googleOauth || !windowRef) return;\n\n this.isGoogleRedirecting.set(true);\n\n const state = createGoogleOauthState(windowRef);\n storeGoogleOauthState(this.documentRef, state);\n\n this.redirectTo(\n buildGoogleAuthorizeUrl({\n clientId: googleOauth.clientId,\n redirectUri: googleOauth.redirectUri,\n state,\n }),\n );\n }\n\n private async signInWithNativeGoogle(): Promise<void> {\n if (!this.nativeGoogle) return;\n\n this.isGoogleRedirecting.set(true);\n this.googleErrorMessage.set(null);\n\n try {\n await this.nativeGoogle.signIn();\n await this.router?.navigateByUrl(this.authConfig.authenticatedHomePath, {\n replaceUrl: true,\n });\n } catch {\n this.googleErrorMessage.set(this.messages.google.nativeSignInFailed);\n } finally {\n this.isGoogleRedirecting.set(false);\n }\n }\n\n // Full-page redirect keluar dari SPA (bukan Router). Method terpisah karena\n // jsdom tidak mengizinkan stub pada location.assign.\n protected redirectTo(url: string): void {\n this.documentRef.defaultView?.location.assign(url);\n }\n\n protected async submit(): Promise<void> {\n if (this.form.invalid) {\n this.form.markAllAsTouched();\n return;\n }\n\n // Pre-submit re-check: backend bisa mati setelah halaman dimuat.\n if (!(await this.health.check())) {\n return;\n }\n\n this.isSubmitting.set(true);\n this.responseMessage.set(null);\n this.errorMessage.set(null);\n\n const email = this.emailControl.getRawValue().trim().toLowerCase();\n this.emailControl.setValue(email);\n\n this.authMagicLinkService\n .requestMagicLoginLink({\n body: {\n email,\n frontend_url: new URL(this.authConfig.appUrl).origin,\n },\n })\n .pipe(\n takeUntilDestroyed(this.destroyRef),\n finalize(() => this.isSubmitting.set(false)),\n )\n .subscribe({\n next: (response) => {\n this.responseMessage.set(getResponseMessage(response, this.messages.login.magicLinkSent));\n },\n error: (error: unknown) => {\n this.errorMessage.set(getErrorMessage(error, this.messages.login.magicLinkFailed));\n },\n });\n }\n}\n","import { Component, DestroyRef, OnInit, inject, signal } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { Router, RouterLink } from '@angular/router';\nimport { AlertComponent, AlertDescriptionComponent } from '@edsis/component/alert';\nimport { AspectRatioComponent } from '@edsis/component/aspect-ratio';\nimport { ButtonComponent } from '@edsis/component/button';\nimport {\n CardActionComponent,\n CardComponent,\n CardContentComponent,\n CardDescriptionComponent,\n CardFooterComponent,\n CardHeaderComponent,\n CardTitleComponent,\n} from '@edsis/component/card';\nimport { SpinnerComponent } from '@edsis/component/spinner';\nimport { finalize, from } from 'rxjs';\n\nimport { EDSIS_AUTH_CONFIG } from '../../auth.config';\nimport { EDSIS_AUTH_MESSAGES } from '../../auth-messages';\nimport { AuthService } from '../../auth.service';\nimport { getErrorMessage, getResponseMessage } from '../auth-page.utils';\n\n@Component({\n selector: 'edsis-auth-logout-page',\n imports: [\n RouterLink,\n AlertComponent,\n AlertDescriptionComponent,\n AspectRatioComponent,\n ButtonComponent,\n CardActionComponent,\n CardComponent,\n CardContentComponent,\n CardDescriptionComponent,\n CardFooterComponent,\n CardHeaderComponent,\n CardTitleComponent,\n SpinnerComponent,\n ],\n host: {\n class: 'block',\n },\n template: `\n <Card\n class=\"w-full overflow-hidden rounded-none border-border/80 bg-card/95 shadow-2xl backdrop-blur-sm\"\n >\n <CardHeader\n class=\"grid grid-cols-[auto_minmax(0,1fr)_auto] items-start gap-x-4 gap-y-3 border-b border-border/60 bg-muted/15 pb-4 sm:pb-5\"\n >\n <div class=\"w-16 shrink-0 sm:w-20\">\n <AspectRatio [ratio]=\"3 / 2\" class=\"overflow-hidden rounded-none bg-primary\">\n <div\n class=\"flex h-full w-full items-center justify-center px-1 text-[1.25rem] leading-none tracking-[-0.08em] text-primary-foreground sm:text-[1.55rem]\"\n style=\"font-family: 'Arial Black', Arial, sans-serif;\"\n >\n {{ messages.brand.mark }}\n </div>\n </AspectRatio>\n </div>\n <div class=\"min-w-0 space-y-0.5 pt-0.5 sm:pt-1\">\n <CardTitle class=\"text-xl leading-tight sm:text-2xl\">{{\n messages.logout.title\n }}</CardTitle>\n <p CardDescription class=\"max-w-xl leading-6\">\n {{ messages.logout.intro }}\n </p>\n </div>\n <CardAction\n class=\"col-start-3 row-span-1 mt-0! pt-0.5 text-xs font-medium uppercase tracking-[0.24em] text-muted-foreground sm:pt-1 sm:text-sm\"\n >\n {{ messages.logout.badge }}\n </CardAction>\n </CardHeader>\n\n <CardContent class=\"space-y-4 pt-6 sm:pt-7\">\n <Alert\n [variant]=\"state() === 'error' ? 'destructive' : 'default'\"\n class=\"bg-background/70 shadow-sm\"\n >\n @if (state() === 'pending') {\n <Spinner class=\"mt-0.5 size-4\" [attr.aria-label]=\"messages.logout.pendingAria\" />\n }\n\n <AlertDescription>\n {{ message() }}\n </AlertDescription>\n </Alert>\n\n @if (state() === 'error') {\n <Alert variant=\"destructive\" class=\"shadow-sm\">\n <AlertDescription>\n {{ messages.logout.failedNote }}\n </AlertDescription>\n </Alert>\n }\n </CardContent>\n\n <CardFooter class=\"flex flex-wrap gap-3 border-t border-border/60 bg-muted/10 pt-4 sm:pt-5\">\n <a Button [routerLink]=\"guestHomePath\" variant=\"default\">\n {{ messages.logout.backToLogin }}\n </a>\n <a Button [routerLink]=\"authenticatedHomePath\" variant=\"outline\">\n {{ messages.logout.openDashboard }}\n </a>\n </CardFooter>\n </Card>\n `,\n})\nexport class AuthLogoutPage implements OnInit {\n private readonly destroyRef = inject(DestroyRef);\n private readonly router = inject(Router);\n private readonly authService = inject(AuthService);\n private readonly authConfig = inject(EDSIS_AUTH_CONFIG);\n protected readonly messages = inject(EDSIS_AUTH_MESSAGES);\n\n protected readonly guestHomePath = this.authConfig.guestHomePath;\n protected readonly authenticatedHomePath = this.authConfig.authenticatedHomePath;\n protected readonly state = signal<'pending' | 'success' | 'error'>('pending');\n protected readonly message = signal(this.messages.logout.pending);\n\n ngOnInit(): void {\n from(this.authService.logout())\n .pipe(\n takeUntilDestroyed(this.destroyRef),\n finalize(() => {\n if (this.state() === 'pending') {\n this.state.set('success');\n }\n }),\n )\n .subscribe({\n next: () => {\n this.state.set('success');\n this.message.set(this.messages.logout.success);\n void this.router.navigateByUrl(this.guestHomePath, { replaceUrl: true });\n },\n error: (error: unknown) => {\n this.state.set('error');\n this.message.set(getErrorMessage(error, this.messages.logout.failed));\n },\n });\n }\n}\n","import { DOCUMENT, Location } from '@angular/common';\nimport { Component, DestroyRef, effect, inject, input, signal } from '@angular/core';\nimport { toSignal } from '@angular/core/rxjs-interop';\nimport { ActivatedRoute, Router, RouterLink } from '@angular/router';\nimport { AuthMagicLinkService } from '@edsis/sdk/auth';\nimport { AlertComponent, AlertDescriptionComponent } from '@edsis/component/alert';\nimport { AspectRatioComponent } from '@edsis/component/aspect-ratio';\nimport { ButtonComponent } from '@edsis/component/button';\nimport {\n CardActionComponent,\n CardComponent,\n CardContentComponent,\n CardDescriptionComponent,\n CardFooterComponent,\n CardHeaderComponent,\n CardTitleComponent,\n} from '@edsis/component/card';\nimport { SpinnerComponent } from '@edsis/component/spinner';\nimport { Subscription } from 'rxjs';\n\nimport { EDSIS_AUTH_CONFIG } from '../../auth.config';\nimport { EDSIS_AUTH_MESSAGES } from '../../auth-messages';\nimport { AuthService } from '../../auth.service';\nimport { extractMagicToken, getErrorMessage, getResponseMessage } from '../auth-page.utils';\n\n@Component({\n selector: 'edsis-auth-verify-page',\n imports: [\n RouterLink,\n AlertComponent,\n AlertDescriptionComponent,\n AspectRatioComponent,\n ButtonComponent,\n CardActionComponent,\n CardComponent,\n CardContentComponent,\n CardDescriptionComponent,\n CardFooterComponent,\n CardHeaderComponent,\n CardTitleComponent,\n SpinnerComponent,\n ],\n host: {\n class: 'block',\n },\n template: `\n <Card\n class=\"w-full overflow-hidden rounded-none border-border/80 bg-card/95 shadow-2xl backdrop-blur-sm\"\n >\n <CardHeader\n class=\"grid grid-cols-[auto_minmax(0,1fr)_auto] items-start gap-x-4 gap-y-3 border-b border-border/60 bg-muted/15 pb-4 sm:pb-5\"\n >\n <div class=\"w-16 shrink-0 sm:w-20\">\n <AspectRatio [ratio]=\"3 / 2\" class=\"overflow-hidden rounded-none bg-primary\">\n <div\n class=\"flex h-full w-full items-center justify-center px-1 text-[1.25rem] leading-none tracking-[-0.08em] text-primary-foreground sm:text-[1.55rem]\"\n style=\"font-family: 'Arial Black', Arial, sans-serif;\"\n >\n {{ messages.brand.mark }}\n </div>\n </AspectRatio>\n </div>\n <div class=\"min-w-0 space-y-0.5 pt-0.5 sm:pt-1\">\n <CardTitle class=\"text-xl leading-tight sm:text-2xl\">{{\n messages.verify.title\n }}</CardTitle>\n <p CardDescription class=\"max-w-xl leading-6\">\n {{ messages.verify.intro }}\n </p>\n </div>\n <CardAction\n class=\"col-start-3 row-span-1 mt-0! pt-0.5 text-xs font-medium uppercase tracking-[0.24em] text-muted-foreground sm:pt-1 sm:text-sm\"\n >\n {{ messages.verify.badge }}\n </CardAction>\n </CardHeader>\n\n <CardContent class=\"space-y-4 pt-6 sm:pt-7\">\n <Alert\n [variant]=\"state() === 'error' ? 'destructive' : 'default'\"\n class=\"bg-background/70 shadow-sm\"\n >\n @if (state() === 'pending') {\n <Spinner class=\"mt-0.5 size-4\" [attr.aria-label]=\"messages.verify.pendingAria\" />\n }\n\n <AlertDescription>\n {{ message() }}\n </AlertDescription>\n </Alert>\n\n @if (state() === 'error') {\n <Alert variant=\"destructive\" class=\"shadow-sm\">\n <AlertDescription>\n Pastikan Anda membuka link terbaru dari email dan token belum pernah dipakai\n sebelumnya.\n </AlertDescription>\n </Alert>\n }\n </CardContent>\n\n <CardFooter class=\"flex flex-wrap gap-3 border-t border-border/60 bg-muted/10 pt-4 sm:pt-5\">\n <a Button [routerLink]=\"guestHomePath\" variant=\"outline\">\n {{ messages.verify.requestNewLink }}\n </a>\n <a Button [routerLink]=\"authenticatedHomePath\" variant=\"default\">\n {{ messages.verify.openDashboard }}\n </a>\n </CardFooter>\n </Card>\n `,\n})\nexport class AuthVerifyPage {\n private readonly documentRef = inject<Document>(DOCUMENT);\n private readonly destroyRef = inject(DestroyRef);\n private readonly route = inject(ActivatedRoute);\n private readonly router = inject(Router);\n private readonly location = inject(Location);\n private readonly authMagicLinkService = inject(AuthMagicLinkService);\n private readonly authConfig = inject(EDSIS_AUTH_CONFIG);\n private readonly authService = inject(AuthService);\n protected readonly messages = inject(EDSIS_AUTH_MESSAGES);\n private readonly queryParamMap = toSignal(this.route.queryParamMap, {\n initialValue: this.route.snapshot.queryParamMap,\n });\n private readonly fragment = toSignal(this.route.fragment, {\n initialValue: this.route.snapshot.fragment,\n });\n private handledToken: string | null | undefined = undefined;\n private verifySubscription: Subscription | null = null;\n\n protected readonly guestHomePath = this.authConfig.guestHomePath;\n protected readonly authenticatedHomePath = this.authConfig.authenticatedHomePath;\n protected readonly state = signal<'pending' | 'success' | 'error'>('pending');\n protected readonly message = signal(this.messages.verify.pending);\n protected readonly token = input<string | null | undefined>(undefined);\n\n constructor() {\n this.destroyRef.onDestroy(() => this.verifySubscription?.unsubscribe());\n\n effect(() => {\n const token = extractMagicToken(\n this.token() ?? this.queryParamMap().get('token'),\n this.fragment(),\n );\n\n if (!token) {\n if (this.handledToken === null) {\n return;\n }\n\n this.handledToken = null;\n this.clearTokenFromAddressBar();\n this.state.set('error');\n this.message.set(this.messages.verify.tokenMissing);\n return;\n }\n\n if (token === this.handledToken) {\n return;\n }\n\n this.handledToken = token;\n this.clearTokenFromAddressBar();\n this.state.set('pending');\n this.message.set(this.messages.verify.pending);\n this.verify(token);\n });\n }\n\n private clearTokenFromAddressBar(): void {\n this.location.replaceState(this.authConfig.verifyPath);\n }\n\n private verify(token: string): void {\n this.verifySubscription?.unsubscribe();\n this.verifySubscription = this.authMagicLinkService\n .verifyMagicLink({\n body: {\n token,\n device_type: 'web',\n },\n })\n .subscribe({\n next: (response) => {\n this.authService.acceptTokenResponse(response);\n\n if (!this.authService.isAuthenticated()) {\n this.state.set('error');\n this.message.set(this.messages.verify.missingAccessToken);\n return;\n }\n\n this.state.set('success');\n this.message.set(getResponseMessage(response, this.messages.verify.successRedirect));\n void this.router.navigateByUrl(this.authenticatedHomePath, { replaceUrl: true });\n },\n error: (error: unknown) => {\n this.state.set('error');\n this.message.set(getErrorMessage(error, this.messages.verify.invalidOrExpired));\n },\n });\n }\n}\n","import type { Routes } from '@angular/router';\n\nimport { GOOGLE_OAUTH_CALLBACK_ROUTE_PATH } from '../auth.config';\nimport { guestOnlyGuard } from '../guard';\nimport { AuthShellPage } from './auth-shell/auth-shell.page';\nimport { AuthGoogleCallbackPage } from './google-callback/google-callback.page';\nimport { AuthLoginPage } from './login/login.page';\nimport { AuthLogoutPage } from './logout/logout.page';\nimport { AuthVerifyPage } from './verify/verify.page';\n\nexport const authRoutes: Routes = [\n {\n path: '',\n component: AuthShellPage,\n children: [\n {\n path: 'login',\n title: 'Login',\n canActivate: [guestOnlyGuard],\n component: AuthLoginPage,\n },\n {\n path: GOOGLE_OAUTH_CALLBACK_ROUTE_PATH,\n title: 'Google Sign-In',\n canActivate: [guestOnlyGuard],\n component: AuthGoogleCallbackPage,\n },\n {\n path: 'logout',\n title: 'Logout',\n component: AuthLogoutPage,\n },\n {\n path: 'verify',\n title: 'Verify',\n canActivate: [guestOnlyGuard],\n component: AuthVerifyPage,\n },\n ],\n },\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAIA,MAAM,kBAAkB,GAAG,QAAiB;AAC5C,MAAM,mBAAmB,GAAG,SAAkB;AAC9C,MAAM,mBAAmB,GAAG,SAAkB;AAC9C,MAAM,+BAA+B,GAAG,YAAqB;AAC7D,MAAM,+BAA+B,GAAG,IAAI;AAE5C;;;;AAIG;AACI,MAAM,gCAAgC,GAAG;MAgGnC,iBAAiB,GAAG,IAAI,cAAc,CAA0B,mBAAmB;AAE1F,SAAU,sBAAsB,CAAC,MAAuB,EAAA;IAC5D,MAAM,SAAS,GAAG,aAAa,CAAC,MAAM,CAAC,SAAS,EAAE,kBAAk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ACE,gBAAA,IAAI,EAAE,OAAO;AACb,gBAAA,KAAK,EAAE,OAAO;gBACd,WAAW,EAAE,CAAC,cAAc,CAAC;AAC7B,gBAAA,SAAS,EAAE,aAAa;AACzB,aAAA;AACD,YAAA;AACE,gBAAA,IAAI,EAAE,gCAAgC;AACtC,gBAAA,KAAK,EAAE,gBAAgB;gBACvB,WAAW,EAAE,CAAC,cAAc,CAAC;AAC7B,gBAAA,SAAS,EAAE,sBAAsB;AAClC,aAAA;AACD,YAAA;AACE,gBAAA,IAAI,EAAE,QAAQ;AACd,gBAAA,KAAK,EAAE,QAAQ;AACf,gBAAA,SAAS,EAAE,cAAc;AAC1B,aAAA;AACD,YAAA;AACE,gBAAA,IAAI,EAAE,QAAQ;AACd,gBAAA,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,CAAC,cAAc,CAAC;AAC7B,gBAAA,SAAS,EAAE,cAAc;AAC1B,aAAA;AACF,SAAA;AACF,KAAA;;;ACvCH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"edsis-angular-module-auth.mjs","sources":["../../../library/angular/module/auth/auth.config.ts","../../../library/angular/module/auth/auth-messages.ts","../../../library/angular/module/auth/native/native-google-auth.adapter.ts","../../../library/angular/module/auth/auth.service.ts","../../../library/angular/module/auth/interceptor/auth.interceptor.ts","../../../library/angular/module/auth/health/auth-health.service.ts","../../../library/angular/module/auth/native/native-google-auth.service.ts","../../../library/angular/module/auth/auth.providers.ts","../../../library/angular/module/auth/guard/auth.guards.ts","../../../library/angular/module/auth/oauth/google-oauth.utils.ts","../../../library/angular/module/auth/pages/auth-shell/auth-shell.page.ts","../../../library/angular/module/auth/pages/auth-page.utils.ts","../../../library/angular/module/auth/pages/google-callback/google-callback.page.ts","../../../library/angular/module/auth/pages/login/login.page.ts","../../../library/angular/module/auth/pages/logout/logout.page.ts","../../../library/angular/module/auth/pages/verify/verify.page.ts","../../../library/angular/module/auth/pages/auth.routes.ts","../../../library/angular/module/auth/edsis-angular-module-auth.ts"],"sourcesContent":["import type { HttpInterceptorFn } from '@angular/common/http';\nimport { InjectionToken } from '@angular/core';\nimport type { EdsisAuthMessagesOverride } from './auth-messages';\n\nconst DEFAULT_LOGIN_PATH = '/login' as const;\nconst DEFAULT_LOGOUT_PATH = '/logout' as const;\nconst DEFAULT_VERIFY_PATH = '/verify' as const;\nconst DEFAULT_AUTHENTICATED_HOME_PATH = '/dashboard' as const;\nconst DEFAULT_HEALTH_CHECK_TIMEOUT_MS = 4000;\n\n/**\n * Path route callback Google di dalam `authRoutes`; juga menjadi sumber\n * derivasi `redirectUri` (`${appUrl}/auth/google/callback`), sehingga URL yang\n * didaftarkan di Google Cloud Console selalu konsisten dengan route library.\n */\nexport const GOOGLE_OAUTH_CALLBACK_ROUTE_PATH = 'auth/google/callback' as const;\n\n/**\n * Health-check backend auth di halaman login (opt-in).\n * Sehat = HTTP 2xx dalam `timeoutMs`; body respons tidak diparse.\n */\nexport interface EdsisAuthHealthCheckConfig {\n /** Default `false` — tanpa flag, perilaku login tidak berubah. */\n enabled?: boolean;\n /** Default `${apiUrl}/health`. */\n url?: string;\n /** Default 4000. */\n timeoutMs?: number;\n}\n\n/**\n * Google Sign-In dengan authorization-code flow. Exchange code dilakukan\n * backend (`POST {apiUrl}/auth/google`) sehingga client secret tidak pernah\n * menyentuh frontend.\n */\nexport interface EdsisAuthGoogleOauthConfig {\n /**\n * OAuth 2.0 client ID dari Google Cloud Console. String kosong dianggap\n * tidak dikonfigurasi (tombol Google tetap placeholder), sehingga aman\n * meneruskan nilai environment yang di-inject build-time apa adanya.\n */\n clientId: string;\n}\n\nexport interface EdsisAuthNativeGoogleConfig {\n /** Default `true` saat blok konfigurasi ini diberikan. */\n enabled?: boolean;\n /** Harus path same-origin. Default `/api`. */\n apiUrl?: `/${string}`;\n}\n\nexport interface EdsisAuthOauthConfig {\n google?: EdsisAuthGoogleOauthConfig;\n nativeGoogle?: EdsisAuthNativeGoogleConfig;\n}\n\nexport interface EdsisAuthConfig {\n apiUrl: string;\n appUrl: string;\n loginPath?: string;\n logoutPath?: string;\n verifyPath?: string;\n authenticatedHomePath?: string;\n guestHomePath?: string;\n /** Override teks UI halaman auth (i18n/branding). */\n messages?: EdsisAuthMessagesOverride;\n /**\n * Interceptor tambahan dari aplikasi (mis. `layoutLoadingInterceptor` dari\n * `@edsis/theme/layout`), dijalankan setelah interceptor auth Edsis.\n */\n httpInterceptors?: readonly HttpInterceptorFn[];\n healthCheck?: EdsisAuthHealthCheckConfig;\n /**\n * Provider OAuth di halaman login (saat ini hanya Google). `redirectUri`\n * tidak dikonfigurasi konsumer; library menurunkannya dari `appUrl`:\n * `${appUrl}/auth/google/callback`.\n */\n oauth?: EdsisAuthOauthConfig;\n}\n\nexport interface ResolvedEdsisAuthHealthCheck {\n enabled: boolean;\n url: string;\n timeoutMs: number;\n}\n\nexport interface ResolvedEdsisAuthGoogleOauth {\n clientId: string;\n /** Diturunkan dari `appUrl`: `${appUrl}/auth/google/callback`. */\n redirectUri: string;\n}\n\nexport interface ResolvedEdsisAuthOauth {\n /** `null` saat Google Sign-In tidak dikonfigurasi (perilaku placeholder lama). */\n google: ResolvedEdsisAuthGoogleOauth | null;\n /** Flow native tablet; selalu memakai endpoint same-origin. */\n nativeGoogle: { readonly apiUrl: `/${string}` } | null;\n}\n\nexport interface ResolvedEdsisAuthConfig {\n apiUrl: string;\n appUrl: string;\n loginPath: `/${string}`;\n logoutPath: `/${string}`;\n verifyPath: `/${string}`;\n authenticatedHomePath: `/${string}`;\n guestHomePath: `/${string}`;\n healthCheck: ResolvedEdsisAuthHealthCheck;\n oauth: ResolvedEdsisAuthOauth;\n}\n\nexport const EDSIS_AUTH_CONFIG = new InjectionToken<ResolvedEdsisAuthConfig>('EDSIS_AUTH_CONFIG');\n\nexport function resolveEdsisAuthConfig(config: EdsisAuthConfig): ResolvedEdsisAuthConfig {\n const loginPath = normalizePath(config.loginPath, DEFAULT_LOGIN_PATH);\n const apiUrl = normalizeAbsoluteUrl(config.apiUrl, 'apiUrl');\n const appUrl = normalizeAbsoluteUrl(config.appUrl, 'appUrl');\n const googleClientId = config.oauth?.google?.clientId.trim() ?? '';\n\n return {\n apiUrl,\n appUrl,\n loginPath,\n logoutPath: normalizePath(config.logoutPath, DEFAULT_LOGOUT_PATH),\n verifyPath: normalizePath(config.verifyPath, DEFAULT_VERIFY_PATH),\n authenticatedHomePath: normalizePath(\n config.authenticatedHomePath,\n DEFAULT_AUTHENTICATED_HOME_PATH,\n ),\n guestHomePath: normalizePath(config.guestHomePath, loginPath),\n healthCheck: {\n enabled: config.healthCheck?.enabled ?? false,\n url: config.healthCheck?.url ?? `${apiUrl.replace(/\\/+$/, '')}/health`,\n timeoutMs: config.healthCheck?.timeoutMs ?? DEFAULT_HEALTH_CHECK_TIMEOUT_MS,\n },\n oauth: {\n google: googleClientId\n ? {\n clientId: googleClientId,\n redirectUri: `${appUrl}/${GOOGLE_OAUTH_CALLBACK_ROUTE_PATH}`,\n }\n : null,\n nativeGoogle:\n config.oauth?.nativeGoogle && config.oauth.nativeGoogle.enabled !== false\n ? { apiUrl: normalizeSameOriginPath(config.oauth.nativeGoogle.apiUrl ?? '/api') }\n : null,\n },\n };\n}\n\nfunction normalizeSameOriginPath(value: string): `/${string}` {\n const normalizedValue = value.trim().replace(/\\/+$/u, '');\n\n if (\n !normalizedValue.startsWith('/') ||\n normalizedValue.startsWith('//') ||\n normalizedValue.includes('?') ||\n normalizedValue.includes('#')\n ) {\n throw new Error('Edsis native Google auth requires a same-origin apiUrl path.');\n }\n\n return (normalizedValue || '/') as `/${string}`;\n}\n\nfunction normalizeAbsoluteUrl(value: string, label: string): string {\n const normalizedValue = value.trim();\n\n if (!normalizedValue) {\n throw new Error(`Edsis auth requires a non-empty ${label}.`);\n }\n\n const normalizedUrl = new URL(normalizedValue);\n return normalizedUrl.toString().replace(/\\/$/, '');\n}\n\nfunction normalizePath(value: string | undefined, fallback: `/${string}`): `/${string}` {\n const normalizedValue = value?.trim();\n\n if (!normalizedValue) {\n return fallback;\n }\n\n return (\n normalizedValue.startsWith('/') ? normalizedValue : `/${normalizedValue}`\n ) as `/${string}`;\n}\n","import { InjectionToken } from '@angular/core';\n\n/**\n * Seluruh teks yang tampil di halaman auth (login, logout, verify).\n * Override sebagian/seluruhnya lewat `provideEdsisAuth({ messages: ... })`\n * untuk deployment berbahasa lain atau branding berbeda.\n */\nexport interface EdsisAuthMessages {\n readonly brand: {\n /** Teks singkat di kotak logo (mis. inisial produk). */\n readonly mark: string;\n };\n readonly login: {\n readonly title: string;\n readonly intro: string;\n readonly badge: string;\n readonly emailPlaceholder: string;\n readonly submit: string;\n readonly submitting: string;\n readonly emailRequired: string;\n readonly emailInvalid: string;\n readonly magicLinkSent: string;\n readonly magicLinkFailed: string;\n readonly oauthComingSoon: string;\n readonly oauthGoogleAria: string;\n readonly oauthMicrosoftAria: string;\n readonly oauthAppleAria: string;\n readonly healthUnavailableTitle: string;\n readonly healthUnavailableBody: string;\n readonly healthRetry: string;\n readonly healthChecking: string;\n };\n readonly google: {\n readonly title: string;\n readonly intro: string;\n readonly badge: string;\n /** Aria tombol Google di halaman login saat sign-in aktif (config terisi). */\n readonly signInAria: string;\n /** Status di halaman login selama full-page redirect ke Google berlangsung. */\n readonly googleRedirecting: string;\n readonly nativeSignInInProgress: string;\n readonly nativeSignInUnavailable: string;\n readonly nativeSignInFailed: string;\n readonly googleExchangeInProgress: string;\n readonly exchangeInProgressAria: string;\n readonly googleStateMismatch: string;\n readonly googleAccessDenied: string;\n /** Error generik callback; juga fallback saat backend tidak mengirim pesan. */\n readonly googleCallbackError: string;\n readonly googleRetry: string;\n readonly missingAccessToken: string;\n readonly successRedirect: string;\n readonly openDashboard: string;\n };\n readonly logout: {\n readonly title: string;\n readonly intro: string;\n readonly badge: string;\n readonly pending: string;\n readonly pendingAria: string;\n readonly success: string;\n readonly failed: string;\n readonly failedNote: string;\n readonly backToLogin: string;\n readonly openDashboard: string;\n };\n readonly verify: {\n readonly title: string;\n readonly intro: string;\n readonly badge: string;\n readonly pending: string;\n readonly pendingAria: string;\n readonly tokenMissing: string;\n readonly invalidOrExpired: string;\n readonly successRedirect: string;\n readonly missingAccessToken: string;\n readonly requestNewLink: string;\n readonly openDashboard: string;\n };\n}\n\nexport const DEFAULT_EDSIS_AUTH_MESSAGES: EdsisAuthMessages = {\n brand: {\n mark: 'ETOS',\n },\n login: {\n title: 'Etos Account Center',\n intro:\n 'Masukkan email yang terdaftar. Kami akan mengirimkan tautan verifikasi untuk masuk ke aplikasi.',\n badge: 'LOGIN',\n emailPlaceholder: 'your@email.com',\n submit: 'Kirim',\n submitting: 'Mengirim...',\n emailRequired: 'Email wajib diisi.',\n emailInvalid: 'Gunakan format email yang valid dengan panjang maksimal 255 karakter.',\n magicLinkSent: 'Magic link berhasil dikirim.',\n magicLinkFailed: 'Gagal mengirim magic link.',\n oauthComingSoon: 'Segera hadir',\n oauthGoogleAria: 'Login dengan Google segera hadir',\n oauthMicrosoftAria: 'Login dengan Microsoft segera hadir',\n oauthAppleAria: 'Login dengan Apple segera hadir',\n healthUnavailableTitle: 'Layanan sedang tidak tersedia',\n healthUnavailableBody: 'Kami tidak dapat menghubungi server autentikasi. Silakan coba lagi.',\n healthRetry: 'Coba lagi',\n healthChecking: 'Memeriksa ketersediaan layanan…',\n },\n google: {\n title: 'Menyelesaikan Google Sign-In.',\n intro:\n 'Kode otorisasi dari Google ditukar menjadi sesi oleh backend, sesi refresh cookie dibentuk, lalu access token disimpan secara lokal untuk aplikasi.',\n badge: 'GOOGLE',\n signInAria: 'Login dengan Google',\n googleRedirecting: 'Mengarahkan ke Google...',\n nativeSignInInProgress: 'Menyelesaikan login Google di perangkat...',\n nativeSignInUnavailable:\n 'Google Sign-In native tidak tersedia pada perangkat ini. Perbarui aplikasi atau hubungi administrator.',\n nativeSignInFailed: 'Login Google pada perangkat gagal diproses.',\n googleExchangeInProgress: 'Menukar kode otorisasi Google...',\n exchangeInProgressAria: 'Menukar kode otorisasi Google',\n googleStateMismatch:\n 'Verifikasi keamanan gagal: state OAuth tidak cocok atau hilang. Silakan ulangi login dari awal.',\n googleAccessDenied: 'Login Google dibatalkan. Silakan coba lagi jika ini tidak disengaja.',\n googleCallbackError: 'Login Google gagal diproses.',\n googleRetry: 'Kembali ke login',\n missingAccessToken:\n 'Login Google berhasil, tetapi access token tidak ditemukan di respons backend.',\n successRedirect: 'Login Google berhasil. Mengarahkan ke dashboard...',\n openDashboard: 'Buka dashboard',\n },\n logout: {\n title: 'Mengakhiri sesi Edsis.',\n intro:\n 'Halaman ini membersihkan sesi lokal lalu memanggil endpoint logout untuk merevoke refresh-token cookie pada backend.',\n badge: 'LOGOUT',\n pending: 'Mengakhiri sesi...',\n pendingAria: 'Mengakhiri sesi',\n success: 'Sesi berhasil diakhiri.',\n failed: 'Sesi lokal sudah dihapus, tetapi request logout gagal.',\n failedNote: 'Backend tidak mengonfirmasi logout, tetapi sesi lokal sudah dihapus.',\n backToLogin: 'Kembali ke login',\n openDashboard: 'Buka dashboard',\n },\n verify: {\n title: 'Memverifikasi magic link.',\n intro:\n 'Token akan dikonsumsi satu kali, sesi refresh cookie dibentuk di backend, lalu access token disimpan secara lokal untuk aplikasi.',\n badge: 'VERIFY',\n pending: 'Memverifikasi magic link...',\n pendingAria: 'Memverifikasi magic link',\n tokenMissing: 'Token magic link tidak ditemukan pada URL yang dibuka.',\n invalidOrExpired: 'Magic link tidak valid atau sudah kedaluwarsa.',\n successRedirect: 'Verifikasi berhasil. Mengarahkan ke dashboard...',\n missingAccessToken:\n 'Verifikasi berhasil, tetapi access token tidak ditemukan di respons backend.',\n requestNewLink: 'Minta link baru',\n openDashboard: 'Buka dashboard',\n },\n};\n\n/** Override per-bagian; field yang tidak diisi memakai default. */\nexport type EdsisAuthMessagesOverride = {\n readonly [K in keyof EdsisAuthMessages]?: Partial<EdsisAuthMessages[K]>;\n};\n\nexport const EDSIS_AUTH_MESSAGES = new InjectionToken<EdsisAuthMessages>('EDSIS_AUTH_MESSAGES', {\n factory: () => DEFAULT_EDSIS_AUTH_MESSAGES,\n});\n\nexport function mergeEdsisAuthMessages(override?: EdsisAuthMessagesOverride): EdsisAuthMessages {\n if (!override) {\n return DEFAULT_EDSIS_AUTH_MESSAGES;\n }\n\n return {\n brand: { ...DEFAULT_EDSIS_AUTH_MESSAGES.brand, ...override.brand },\n login: { ...DEFAULT_EDSIS_AUTH_MESSAGES.login, ...override.login },\n google: { ...DEFAULT_EDSIS_AUTH_MESSAGES.google, ...override.google },\n logout: { ...DEFAULT_EDSIS_AUTH_MESSAGES.logout, ...override.logout },\n verify: { ...DEFAULT_EDSIS_AUTH_MESSAGES.verify, ...override.verify },\n };\n}\n","import { Injectable, InjectionToken } from '@angular/core';\n\nexport type NativeGooglePlatform = 'ios' | 'android';\n\nexport interface NativeGoogleSignInResult {\n readonly platform: NativeGooglePlatform;\n readonly idToken: string;\n readonly clientInstanceId: string;\n}\n\nexport interface EdsisNativeGoogleAuthAdapter {\n signInWithGoogle(input: { readonly nonce: string }): Promise<NativeGoogleSignInResult>;\n signOutFromGoogle(): Promise<void>;\n}\n\nexport const EDSIS_NATIVE_GOOGLE_AUTH_ADAPTER = new InjectionToken<EdsisNativeGoogleAuthAdapter>(\n 'EDSIS_NATIVE_GOOGLE_AUTH_ADAPTER',\n);\n\n@Injectable()\nexport class TauriNativeGoogleAuthAdapter implements EdsisNativeGoogleAuthAdapter {\n async signInWithGoogle(input: { readonly nonce: string }): Promise<NativeGoogleSignInResult> {\n const { invoke } = await import('@tauri-apps/api/core');\n const response = await invoke<unknown>('plugin:edsis-google-auth|sign_in', {\n nonce: input.nonce,\n });\n\n if (!isNativeGoogleSignInResult(response)) {\n throw new Error('Native Google Sign-In returned an invalid response.');\n }\n\n return response;\n }\n\n async signOutFromGoogle(): Promise<void> {\n const { invoke } = await import('@tauri-apps/api/core');\n await invoke('plugin:edsis-google-auth|sign_out');\n }\n}\n\nexport function isNativeGoogleSignInResult(value: unknown): value is NativeGoogleSignInResult {\n if (typeof value !== 'object' || value === null || Array.isArray(value)) {\n return false;\n }\n\n const result = value as Record<string, unknown>;\n return (\n (result['platform'] === 'ios' || result['platform'] === 'android') &&\n typeof result['idToken'] === 'string' &&\n result['idToken'].trim().length > 0 &&\n typeof result['clientInstanceId'] === 'string' &&\n result['clientInstanceId'].trim().length > 0\n );\n}\n","import { HttpClient, HttpErrorResponse } from '@angular/common/http';\nimport { Injectable, computed, inject, signal } from '@angular/core';\nimport { Router } from '@angular/router';\nimport type {\n AuthTokenResponse,\n PersistentAuthSessionResponse,\n PersistentAuthUser,\n} from '@edsis/sdk/auth';\nimport { RuntimeContextService, setNativeNotificationBadge } from '@edsis/angular/services/runtime';\nimport { firstValueFrom } from 'rxjs';\n\nimport { EDSIS_AUTH_CONFIG } from './auth.config';\nimport { EDSIS_NATIVE_GOOGLE_AUTH_ADAPTER } from './native/native-google-auth.adapter';\n\nexport interface AuthUser extends PersistentAuthUser {\n readonly role?: string;\n}\n\n/** Native desktop features are optional; browser consumers have no bridge. */\nexport async function setAuthNotificationBadge(unreadCount: number): Promise<void> {\n await setNativeNotificationBadge(unreadCount);\n}\n\ninterface LegacyAuthTokenData {\n access_token?: unknown;\n user?: AuthUser;\n}\n\ninterface LegacyAuthTokenPayload extends Omit<AuthTokenResponse, 'data'> {\n access_token?: unknown;\n data?: LegacyAuthTokenData;\n user?: AuthUser;\n}\n\ntype AuthTokenPayload = PersistentAuthSessionResponse | LegacyAuthTokenPayload;\n\n/**\n * Cookie-backed authentication state. The access token intentionally exists\n * only in this service instance; the long-lived refresh token is an HttpOnly\n * cookie owned by the server.\n */\n@Injectable({ providedIn: 'root' })\nexport class AuthService {\n private readonly http = inject(HttpClient);\n private readonly config = inject(EDSIS_AUTH_CONFIG);\n private readonly router = inject(Router, { optional: true });\n private readonly runtime = inject(RuntimeContextService, { optional: true });\n private readonly nativeGoogleAdapter = inject(EDSIS_NATIVE_GOOGLE_AUTH_ADAPTER, {\n optional: true,\n });\n private readonly accessTokenState = signal('');\n private readonly userState = signal<AuthUser | null>(null);\n private refreshInFlight: Promise<boolean> | null = null;\n private initialization: Promise<void> | null = null;\n\n readonly accessToken = this.accessTokenState.asReadonly();\n readonly user = this.userState.asReadonly();\n readonly isAuthenticated = computed(() => Boolean(this.accessTokenState()));\n\n get apiUrl(): string {\n return this.config.apiUrl.replace(/\\/+$/u, '');\n }\n\n get sessionApiUrl(): string {\n const nativeApiUrl = this.config.oauth.nativeGoogle?.apiUrl;\n return this.runtime?.isTabletShell() === true && nativeApiUrl\n ? nativeApiUrl.replace(/\\/+$/u, '')\n : this.apiUrl;\n }\n\n /** Restores an existing cookie session. A missing/expired cookie is normal. */\n initialize(): Promise<void> {\n this.initialization ??= this.restoreSession();\n return this.initialization;\n }\n\n private async restoreSession(): Promise<void> {\n // Runtime selection must settle before choosing the cookie origin. Angular\n // app initializers run concurrently, so auth cannot rely on provider order.\n if (this.runtime) {\n await this.runtime.initialize();\n }\n if (await this.refresh()) {\n try {\n await this.loadCurrentUser();\n } catch (error: unknown) {\n // The interceptor has already attempted one cookie refresh. If it\n // ultimately produced 401, startup remains an anonymous state rather\n // than a rejected app initializer.\n if (error instanceof HttpErrorResponse && error.status === 401) {\n this.clearSession();\n return;\n }\n\n throw error;\n }\n }\n }\n\n /** One shared refresh operation for initializer and concurrent 401 retries. */\n refresh(): Promise<boolean> {\n if (this.refreshInFlight) {\n return this.refreshInFlight;\n }\n\n this.refreshInFlight = firstValueFrom(\n this.http.post<PersistentAuthSessionResponse>(`${this.sessionApiUrl}/v1/auth/refresh`, null, {\n withCredentials: true,\n }),\n )\n .then((response) => {\n this.applyTokenResponse(response);\n return Boolean(this.accessTokenState());\n })\n .catch((error: unknown) => {\n this.clearSession();\n // A 401 on startup is an expected anonymous state, not an application error.\n if (!(error instanceof HttpErrorResponse) || error.status !== 401) {\n throw error;\n }\n return false;\n })\n .finally(() => {\n this.refreshInFlight = null;\n });\n\n return this.refreshInFlight;\n }\n\n async loadCurrentUser(): Promise<AuthUser | null> {\n const token = this.accessTokenState();\n if (!token) {\n return null;\n }\n\n const response = await firstValueFrom(\n this.http.get<PersistentAuthUser>(`${this.sessionApiUrl}/v1/auth/me`, {\n withCredentials: true,\n headers: { Authorization: `Bearer ${token}` },\n }),\n );\n const user = response as AuthUser;\n this.userState.set(user);\n return user;\n }\n\n async logout(): Promise<void> {\n try {\n await firstValueFrom(\n this.http.post(`${this.sessionApiUrl}/v1/auth/logout`, null, { withCredentials: true }),\n );\n } finally {\n this.clearSession();\n await this.clearNativeGoogleSession();\n }\n }\n\n clearSession(): void {\n this.accessTokenState.set('');\n this.userState.set(null);\n }\n\n /** Allows existing OAuth exchanges to establish the same memory-only state. */\n acceptTokenResponse(response: unknown): void {\n if (response && typeof response === 'object') {\n this.applyTokenResponse(response as AuthTokenPayload);\n }\n }\n\n redirectToLogin(): void {\n this.clearSession();\n void this.router?.navigateByUrl(this.config.guestHomePath, { replaceUrl: true });\n }\n\n private applyTokenResponse(response: AuthTokenPayload): void {\n const isPersistentResponse = 'accessToken' in response;\n const token = isPersistentResponse\n ? response.accessToken\n : (response.access_token ?? response.data?.access_token);\n this.accessTokenState.set(typeof token === 'string' ? token : '');\n const user = isPersistentResponse ? response.user : (response.user ?? response.data?.user);\n if (user) {\n this.userState.set(user);\n }\n }\n\n private async clearNativeGoogleSession(): Promise<void> {\n if (\n !this.nativeGoogleAdapter ||\n this.runtime?.isTabletShell() !== true ||\n !this.runtime.supports('google-native-sign-in')\n ) {\n return;\n }\n\n try {\n await this.nativeGoogleAdapter.signOutFromGoogle();\n } catch {\n // Backend logout and memory cleanup remain authoritative. A native SDK\n // sign-out failure must not restore or persist the application session.\n }\n }\n}\n","import {\n HttpContextToken,\n HttpErrorResponse,\n type HttpHandlerFn,\n type HttpInterceptorFn,\n type HttpRequest,\n} from '@angular/common/http';\nimport { inject } from '@angular/core';\nimport { from, throwError } from 'rxjs';\nimport { catchError, switchMap } from 'rxjs/operators';\n\nimport { AuthService } from '../auth.service';\n\nexport const EDSIS_SKIP_AUTH = new HttpContextToken<boolean>(() => false);\nconst EDSIS_AUTH_RETRY = new HttpContextToken<boolean>(() => false);\nconst AUTH_ENDPOINTS = new Set(['/v1/auth/login', '/v1/auth/refresh', '/v1/auth/logout']);\n\nfunction apiPath(url: string, apiUrl: string): string | null {\n // A consumer may use Angular's same-origin dev/prod proxy (`/api/...`) even\n // when `apiUrl` names the upstream origin. Such relative URLs are API calls.\n if (url.startsWith('/')) {\n const path = url.split(/[?#]/, 1)[0] ?? url;\n return path === '/api' || path.startsWith('/api/') ? path : null;\n }\n\n try {\n const resolved = new URL(url);\n const api = new URL(apiUrl);\n if (resolved.origin !== api.origin) return null;\n\n const apiBasePath = api.pathname.replace(/\\/+$/u, '') || '/';\n if (\n apiBasePath !== '/' &&\n resolved.pathname !== apiBasePath &&\n !resolved.pathname.startsWith(`${apiBasePath}/`)\n ) {\n return null;\n }\n\n return resolved.pathname;\n } catch {\n return null;\n }\n}\n\nfunction isApiRequest(url: string, apiUrl: string): boolean {\n return apiPath(url, apiUrl) !== null;\n}\n\nfunction authorize(\n request: HttpRequest<unknown>,\n token: string,\n retry = false,\n): HttpRequest<unknown> {\n return request.clone({\n withCredentials: true,\n context: retry ? request.context.set(EDSIS_AUTH_RETRY, true) : request.context,\n setHeaders: token ? { Authorization: `Bearer ${token}` } : {},\n });\n}\n\nexport const edsisAuthInterceptor: HttpInterceptorFn = (request, next) => {\n const auth = inject(AuthService);\n if (request.context.get(EDSIS_SKIP_AUTH) || !isApiRequest(request.url, auth.apiUrl)) {\n return next(request);\n }\n\n const path = apiPath(request.url, auth.apiUrl);\n const normalizedAuthPath = path?.startsWith('/api/') ? path.slice(4) : path;\n const isAuthEndpoint =\n AUTH_ENDPOINTS.has(normalizedAuthPath ?? '') || normalizedAuthPath?.startsWith('/v1/auth/');\n const prepared = authorize(request, isAuthEndpoint ? '' : auth.accessToken());\n if (isAuthEndpoint) {\n return next(prepared);\n }\n\n return next(prepared).pipe(\n catchError((error: unknown) => {\n if (\n !(error instanceof HttpErrorResponse) ||\n error.status !== 401 ||\n request.context.get(EDSIS_AUTH_RETRY)\n ) {\n return throwError(() => error);\n }\n\n return from(auth.refresh()).pipe(\n switchMap((refreshed) => {\n if (!refreshed) {\n return throwError(() => error);\n }\n return next(authorize(request, auth.accessToken(), true));\n }),\n catchError(() => {\n auth.redirectToLogin();\n return throwError(() => error);\n }),\n );\n }),\n );\n};\n","import { HttpClient, HttpContext } from '@angular/common/http';\nimport { Injectable, computed, inject, signal } from '@angular/core';\nimport { firstValueFrom, timeout } from 'rxjs';\n\nimport { EDSIS_AUTH_CONFIG } from '../auth.config';\nimport { EDSIS_SKIP_AUTH } from '../interceptor';\n\nexport type AuthHealthStatus = 'idle' | 'checking' | 'healthy' | 'unhealthy';\n\n/**\n * Health-check backend auth untuk `AuthLoginPage` (internal, di-provide oleh\n * `provideEdsisAuth`). Sehat = HTTP 2xx dalam `timeoutMs`; body tidak diparse.\n * Tanpa polling — hanya on-load, pre-submit, dan Retry manual.\n */\n@Injectable()\nexport class AuthHealthService {\n private readonly http = inject(HttpClient);\n private readonly config = inject(EDSIS_AUTH_CONFIG);\n\n private readonly _status = signal<AuthHealthStatus>('idle');\n readonly status = this._status.asReadonly();\n readonly isChecking = computed(() => this._status() === 'checking');\n readonly isUnhealthy = computed(() => this._status() === 'unhealthy');\n\n private inFlight = false;\n\n /** true jika sehat ATAU health-check dimatikan. Tak pernah throw. */\n async check(): Promise<boolean> {\n const healthCheck = this.config.healthCheck;\n\n if (!healthCheck.enabled) {\n this._status.set('healthy');\n return true;\n }\n\n if (this.inFlight) {\n return this._status() === 'healthy';\n }\n\n this.inFlight = true;\n this._status.set('checking');\n\n try {\n await firstValueFrom(\n this.http\n .get(healthCheck.url, {\n observe: 'response',\n context: new HttpContext().set(EDSIS_SKIP_AUTH, true),\n })\n .pipe(timeout(healthCheck.timeoutMs)),\n );\n this._status.set('healthy');\n return true;\n } catch {\n this._status.set('unhealthy');\n return false;\n } finally {\n this.inFlight = false;\n }\n }\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable, computed, inject } from '@angular/core';\nimport { RuntimeContextService, type EdsisRuntimePlatform } from '@edsis/angular/services/runtime';\nimport type {\n AuthGoogleNativeChallengeData,\n AuthGoogleNativeChallengeRequest,\n AuthGoogleNativeChallengeResponse,\n AuthGoogleNativeSignInRequest,\n AuthTokenResponse,\n} from '@edsis/sdk/auth';\nimport { firstValueFrom } from 'rxjs';\n\nimport { EDSIS_AUTH_CONFIG } from '../auth.config';\nimport { AuthService } from '../auth.service';\nimport {\n EDSIS_NATIVE_GOOGLE_AUTH_ADAPTER,\n type NativeGooglePlatform,\n type NativeGoogleSignInResult,\n} from './native-google-auth.adapter';\n\n@Injectable()\nexport class NativeGoogleAuthService {\n private readonly http = inject(HttpClient);\n private readonly auth = inject(AuthService);\n private readonly config = inject(EDSIS_AUTH_CONFIG);\n private readonly runtime = inject(RuntimeContextService, { optional: true });\n private readonly adapter = inject(EDSIS_NATIVE_GOOGLE_AUTH_ADAPTER);\n\n readonly requiresNativeGoogle = computed(() => this.runtime?.isTabletShell() === true);\n readonly isAvailable = computed(() => {\n const runtime = this.runtime;\n\n return (\n this.config.oauth.nativeGoogle !== null &&\n runtime?.isTabletShell() === true &&\n toNativePlatform(runtime.context().platform) !== null &&\n runtime.supports('google-native-sign-in')\n );\n });\n\n async signIn(): Promise<void> {\n const nativeConfig = this.config.oauth.nativeGoogle;\n const platform = toNativePlatform(this.runtime?.context().platform);\n\n if (!nativeConfig || !platform || !this.isAvailable()) {\n throw new Error('Native Google Sign-In is not available in this runtime.');\n }\n\n const challengeResponse = await firstValueFrom(\n this.http.post<AuthGoogleNativeChallengeResponse>(\n `${nativeConfig.apiUrl}/v1/auth/google/native/challenge`,\n { platform, deviceType: 'tablet' } satisfies AuthGoogleNativeChallengeRequest,\n { withCredentials: true },\n ),\n );\n const challenge = parseChallenge(challengeResponse);\n const response = await this.exchangeNativeToken(nativeConfig.apiUrl, platform, challenge);\n\n this.auth.acceptTokenResponse(response);\n if (!this.auth.isAuthenticated()) {\n throw new Error('Native Google Sign-In response did not contain an access token.');\n }\n\n try {\n await this.auth.loadCurrentUser();\n } catch (error: unknown) {\n this.auth.clearSession();\n throw error;\n }\n }\n\n private async exchangeNativeToken(\n apiUrl: string,\n platform: NativeGooglePlatform,\n challenge: AuthGoogleNativeChallengeData,\n ): Promise<AuthTokenResponse> {\n let nativeResult: NativeGoogleSignInResult | null = await this.adapter.signInWithGoogle({\n nonce: challenge.nonce,\n });\n\n if (nativeResult.platform !== platform) {\n throw new Error('Native Google Sign-In platform does not match the runtime.');\n }\n\n const clientInstanceId = nativeResult.clientInstanceId;\n let idToken = nativeResult.idToken;\n nativeResult = null;\n\n try {\n return await firstValueFrom(\n this.http.post<AuthTokenResponse>(\n `${apiUrl}/v1/auth/google/native`,\n {\n platform,\n idToken,\n challengeId: challenge.challengeId,\n clientInstanceId,\n deviceType: 'tablet',\n } satisfies AuthGoogleNativeSignInRequest,\n { withCredentials: true },\n ),\n );\n } finally {\n // Strings cannot be zeroized in JavaScript, but dropping both local\n // references immediately after the HTTPS exchange keeps the ID token\n // outside application state and shortens its lifetime in the WebView.\n idToken = '';\n }\n }\n}\n\nfunction toNativePlatform(platform: EdsisRuntimePlatform | undefined): NativeGooglePlatform | null {\n return platform === 'ios' || platform === 'android' ? platform : null;\n}\n\nfunction parseChallenge(value: AuthGoogleNativeChallengeResponse): AuthGoogleNativeChallengeData {\n if (typeof value !== 'object' || value === null || Array.isArray(value)) {\n throw new Error('Native Google challenge returned an invalid response.');\n }\n\n const challenge: unknown = value.data;\n if (typeof challenge !== 'object' || challenge === null || Array.isArray(challenge)) {\n throw new Error('Native Google challenge returned an invalid response.');\n }\n\n const challengeRecord = challenge as Record<string, unknown>;\n const challengeId = challengeRecord['challengeId'];\n const nonce = challengeRecord['nonce'];\n\n if (\n typeof challengeId !== 'string' ||\n !challengeId.trim() ||\n typeof nonce !== 'string' ||\n !nonce.trim()\n ) {\n throw new Error('Native Google challenge returned an invalid response.');\n }\n\n return { challengeId, nonce };\n}\n","import { DOCUMENT } from '@angular/common';\nimport { provideHttpClient, withFetch, withInterceptors } from '@angular/common/http';\nimport {\n inject,\n makeEnvironmentProviders,\n provideAppInitializer,\n type EnvironmentProviders,\n} from '@angular/core';\nimport { provideApiConfiguration } from '@edsis/sdk/shared';\n\nimport { EDSIS_AUTH_CONFIG, resolveEdsisAuthConfig, type EdsisAuthConfig } from './auth.config';\nimport { EDSIS_AUTH_MESSAGES, mergeEdsisAuthMessages } from './auth-messages';\nimport { AuthService } from './auth.service';\nimport { AuthHealthService } from './health';\nimport { edsisAuthInterceptor } from './interceptor';\nimport {\n EDSIS_NATIVE_GOOGLE_AUTH_ADAPTER,\n NativeGoogleAuthService,\n TauriNativeGoogleAuthAdapter,\n} from './native';\n\nexport function provideEdsisAuth(config: EdsisAuthConfig): EnvironmentProviders {\n const resolvedConfig = resolveEdsisAuthConfig(config);\n\n return makeEnvironmentProviders([\n provideApiConfiguration(resolvedConfig.apiUrl),\n provideHttpClient(\n withFetch(),\n withInterceptors([edsisAuthInterceptor, ...(config.httpInterceptors ?? [])]),\n ),\n // Completes before initial navigation, therefore guards see restored state.\n provideAppInitializer(() => inject(AuthService).initialize()),\n {\n provide: EDSIS_AUTH_CONFIG,\n useValue: resolvedConfig,\n },\n {\n provide: EDSIS_AUTH_MESSAGES,\n useValue: mergeEdsisAuthMessages(config.messages),\n },\n AuthHealthService,\n NativeGoogleAuthService,\n TauriNativeGoogleAuthAdapter,\n {\n provide: EDSIS_NATIVE_GOOGLE_AUTH_ADAPTER,\n useExisting: TauriNativeGoogleAuthAdapter,\n },\n ]);\n}\n","import { inject } from '@angular/core';\nimport { CanActivateFn, Router } from '@angular/router';\n\nimport { EDSIS_AUTH_CONFIG } from '../auth.config';\nimport { AuthService } from '../auth.service';\n\nexport const authenticatedGuard: CanActivateFn = async () => {\n const router = inject(Router);\n const authConfig = inject(EDSIS_AUTH_CONFIG);\n const auth = inject(AuthService);\n\n if (auth.isAuthenticated()) {\n return true;\n }\n\n return router.parseUrl(authConfig.guestHomePath);\n};\n\nexport const homeRedirectGuard: CanActivateFn = async () => {\n const router = inject(Router);\n const authConfig = inject(EDSIS_AUTH_CONFIG);\n const auth = inject(AuthService);\n\n return router.parseUrl(\n auth.isAuthenticated() ? authConfig.authenticatedHomePath : authConfig.guestHomePath,\n );\n};\n\nexport const guestOnlyGuard: CanActivateFn = async () => {\n const router = inject(Router);\n const authConfig = inject(EDSIS_AUTH_CONFIG);\n const auth = inject(AuthService);\n\n if (!auth.isAuthenticated()) {\n return true;\n }\n\n return router.parseUrl(authConfig.authenticatedHomePath);\n};\n","export const GOOGLE_OAUTH_STATE_STORAGE_KEY = 'auth-google-state';\nexport const GOOGLE_OAUTH_AUTHORIZE_URL = 'https://accounts.google.com/o/oauth2/v2/auth';\nconst GOOGLE_OAUTH_SCOPE = 'openid email profile';\nconst GOOGLE_OAUTH_STATE_BYTE_LENGTH = 16;\n\nexport interface GoogleAuthorizeUrlOptions {\n clientId: string;\n redirectUri: string;\n state: string;\n}\n\n/** Nilai `state` acak berbasis crypto (anti-CSRF untuk round-trip OAuth). */\nexport function createGoogleOauthState(windowRef: Window): string {\n const randomBytes = windowRef.crypto.getRandomValues(\n new Uint8Array(GOOGLE_OAUTH_STATE_BYTE_LENGTH),\n );\n\n return Array.from(randomBytes, (byte) => byte.toString(16).padStart(2, '0')).join('');\n}\n\nexport function buildGoogleAuthorizeUrl(options: GoogleAuthorizeUrlOptions): string {\n const authorizeUrl = new URL(GOOGLE_OAUTH_AUTHORIZE_URL);\n\n authorizeUrl.searchParams.set('client_id', options.clientId);\n authorizeUrl.searchParams.set('redirect_uri', options.redirectUri);\n authorizeUrl.searchParams.set('response_type', 'code');\n authorizeUrl.searchParams.set('scope', GOOGLE_OAUTH_SCOPE);\n authorizeUrl.searchParams.set('state', options.state);\n\n return authorizeUrl.toString();\n}\n\nexport function storeGoogleOauthState(documentRef: Document, state: string): void {\n documentRef.defaultView?.sessionStorage?.setItem(GOOGLE_OAUTH_STATE_STORAGE_KEY, state);\n}\n\n/**\n * Baca lalu hapus state dari sessionStorage. State sekali pakai: dikonsumsi di\n * semua cabang callback agar tidak bocor ke percobaan login berikutnya.\n */\nexport function consumeGoogleOauthState(documentRef: Document): string {\n const sessionStorageRef = documentRef.defaultView?.sessionStorage;\n const state = sessionStorageRef?.getItem(GOOGLE_OAUTH_STATE_STORAGE_KEY)?.trim() ?? '';\n\n sessionStorageRef?.removeItem(GOOGLE_OAUTH_STATE_STORAGE_KEY);\n\n return state;\n}\n","import { Component, computed, inject } from '@angular/core';\nimport { RouterOutlet } from '@angular/router';\nimport {\n NativeHostService,\n RuntimeContextService,\n type EdsisWindowControlAction,\n} from '@edsis/angular/services/runtime';\nimport {\n LayoutComponent,\n DesktopAppBarComponent,\n LayoutFluidComponent,\n LayoutService,\n type DesktopAppBarPlatform,\n} from '@edsis/theme/layout';\n\n@Component({\n selector: 'edsis-auth-shell-page',\n imports: [RouterOutlet, LayoutComponent, DesktopAppBarComponent, LayoutFluidComponent],\n host: {\n class: 'contents',\n },\n template: `\n @if (isDesktopAppearance()) {\n <DesktopAppBar\n [platform]=\"desktopAppBarPlatform()\"\n (windowControlRequested)=\"onDesktopWindowControlRequested($event)\"\n (windowDragRequested)=\"onDesktopWindowDragRequested()\"\n />\n }\n\n <Layout surface=\"grid\" width=\"fluid\">\n <LayoutFluid>\n <div class=\"w-full max-w-xl\">\n <router-outlet />\n </div>\n </LayoutFluid>\n </Layout>\n `,\n})\nexport class AuthShellPage {\n private readonly runtimeContext = inject(RuntimeContextService, { optional: true });\n private readonly nativeHost = inject(NativeHostService, { optional: true });\n\n protected readonly layout = inject(LayoutService);\n protected readonly isDesktopAppearance = computed(() => this.layout.appearance() === 'desktop');\n protected readonly desktopAppBarPlatform = computed<DesktopAppBarPlatform | null | undefined>(\n () => {\n const context = this.runtimeContext?.context();\n if (!context || context.host === 'browser') {\n return undefined;\n }\n\n return context.deviceType === 'macos' || context.deviceType === 'windows'\n ? context.deviceType\n : null;\n },\n );\n\n protected onDesktopWindowControlRequested(action: EdsisWindowControlAction): void {\n const nativeHost = this.nativeHost;\n if (!nativeHost?.supports('window-controls')) {\n return;\n }\n\n void nativeHost.emitWindowControl(action).catch((error: unknown) => {\n console.error(`Failed to run window control: ${action}`, error);\n });\n }\n\n protected onDesktopWindowDragRequested(): void {\n const nativeHost = this.nativeHost;\n if (!nativeHost?.supports('window-controls')) {\n return;\n }\n\n void nativeHost.startDragging().catch((error: unknown) => {\n console.error('Failed to start window dragging', error);\n });\n }\n}\n","import { HttpErrorResponse } from '@angular/common/http';\n\ninterface MessageCarrier {\n message?: unknown;\n}\n\nexport function extractMagicToken(\n queryToken: string | null,\n fragment: string | null,\n): string | null {\n const tokenFromQuery = normalizeText(queryToken);\n\n if (tokenFromQuery) {\n return tokenFromQuery;\n }\n\n const normalizedFragment = normalizeText(\n fragment?.startsWith('#') ? fragment.slice(1) : fragment,\n );\n\n if (!normalizedFragment) {\n return null;\n }\n\n const fragmentParams = new URLSearchParams(normalizedFragment);\n const tokenFromFragment =\n normalizeText(fragmentParams.get('token')) ??\n normalizeText(fragmentParams.get('magic_token')) ??\n normalizeText(fragmentParams.get('value'));\n\n if (tokenFromFragment) {\n return tokenFromFragment;\n }\n\n return normalizedFragment.includes('=') ? null : normalizedFragment;\n}\n\nexport function getResponseMessage(response: unknown, fallback: string): string {\n if (!hasMessage(response)) {\n return fallback;\n }\n\n return normalizeText(response.message) ?? fallback;\n}\n\n/**\n * Pesan error dari body respons backend saja. Berbeda dengan `getErrorMessage`,\n * `HttpErrorResponse.message` sintetis (\"Http failure response for ...\") tidak\n * pernah dipakai, sehingga tanpa pesan backend selalu jatuh ke fallback ramah.\n */\nexport function getBackendErrorMessage(error: unknown, fallback: string): string {\n if (!(error instanceof HttpErrorResponse)) {\n return fallback;\n }\n\n const errorBody = error.error;\n\n if (typeof errorBody === 'string') {\n return normalizeText(errorBody) ?? fallback;\n }\n\n if (hasMessage(errorBody)) {\n return normalizeText(errorBody.message) ?? fallback;\n }\n\n return fallback;\n}\n\nexport function getErrorMessage(error: unknown, fallback: string): string {\n if (error instanceof HttpErrorResponse) {\n const errorBody = error.error;\n\n if (typeof errorBody === 'string') {\n return normalizeText(errorBody) ?? fallback;\n }\n\n if (hasMessage(errorBody)) {\n return normalizeText(errorBody.message) ?? fallback;\n }\n\n return normalizeText(error.message) ?? fallback;\n }\n\n if (error instanceof Error) {\n return normalizeText(error.message) ?? fallback;\n }\n\n return fallback;\n}\n\nfunction hasMessage(value: unknown): value is MessageCarrier {\n return typeof value === 'object' && value !== null && 'message' in value;\n}\n\nfunction normalizeText(value: unknown): string | null {\n if (typeof value !== 'string') {\n return null;\n }\n\n const normalizedValue = value.trim();\n return normalizedValue.length > 0 ? normalizedValue : null;\n}\n","import { DOCUMENT, Location } from '@angular/common';\nimport {\n Component,\n DestroyRef,\n ElementRef,\n Injector,\n afterNextRender,\n effect,\n inject,\n signal,\n viewChild,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { ActivatedRoute, Router, RouterLink } from '@angular/router';\nimport { AuthSessionService } from '@edsis/sdk/auth';\nimport { AlertComponent, AlertDescriptionComponent } from '@edsis/component/alert';\nimport { AspectRatioComponent } from '@edsis/component/aspect-ratio';\nimport { ButtonComponent } from '@edsis/component/button';\nimport {\n CardActionComponent,\n CardComponent,\n CardContentComponent,\n CardDescriptionComponent,\n CardFooterComponent,\n CardHeaderComponent,\n CardTitleComponent,\n} from '@edsis/component/card';\nimport { SpinnerComponent } from '@edsis/component/spinner';\n\nimport { EDSIS_AUTH_CONFIG, GOOGLE_OAUTH_CALLBACK_ROUTE_PATH } from '../../auth.config';\nimport { EDSIS_AUTH_MESSAGES } from '../../auth-messages';\nimport { AuthService } from '../../auth.service';\nimport { consumeGoogleOauthState } from '../../oauth';\nimport { getBackendErrorMessage, getResponseMessage } from '../auth-page.utils';\n\n@Component({\n selector: 'AuthGoogleCallbackPage',\n imports: [\n RouterLink,\n AlertComponent,\n AlertDescriptionComponent,\n AspectRatioComponent,\n ButtonComponent,\n CardActionComponent,\n CardComponent,\n CardContentComponent,\n CardDescriptionComponent,\n CardFooterComponent,\n CardHeaderComponent,\n CardTitleComponent,\n SpinnerComponent,\n ],\n host: {\n class: 'block',\n },\n template: `\n <Card\n class=\"w-full overflow-hidden rounded-none border-border/80 bg-card/95 shadow-2xl backdrop-blur-sm\"\n >\n <CardHeader\n class=\"grid grid-cols-[auto_minmax(0,1fr)_auto] items-start gap-x-4 gap-y-3 border-b border-border/60 bg-muted/15 pb-4 sm:pb-5\"\n >\n <div class=\"w-16 shrink-0 sm:w-20\">\n <AspectRatio [ratio]=\"3 / 2\" class=\"overflow-hidden rounded-none bg-primary\">\n <div\n class=\"flex h-full w-full items-center justify-center px-1 text-[1.25rem] leading-none tracking-[-0.08em] text-primary-foreground sm:text-[1.55rem]\"\n style=\"font-family: 'Arial Black', Arial, sans-serif;\"\n >\n {{ messages.brand.mark }}\n </div>\n </AspectRatio>\n </div>\n <div class=\"min-w-0 space-y-0.5 pt-0.5 sm:pt-1\">\n <CardTitle class=\"text-xl leading-tight sm:text-2xl\">{{\n messages.google.title\n }}</CardTitle>\n <p CardDescription class=\"max-w-xl leading-6\">\n {{ messages.google.intro }}\n </p>\n </div>\n <CardAction\n class=\"col-start-3 row-span-1 mt-0! pt-0.5 text-xs font-medium uppercase tracking-[0.24em] text-muted-foreground sm:pt-1 sm:text-sm\"\n >\n {{ messages.google.badge }}\n </CardAction>\n </CardHeader>\n\n <CardContent class=\"space-y-4 pt-6 sm:pt-7\">\n <Alert\n [variant]=\"state() === 'error' ? 'destructive' : 'default'\"\n class=\"bg-background/70 shadow-sm\"\n >\n @if (state() === 'pending') {\n <Spinner class=\"mt-0.5 size-4\" [aria-label]=\"messages.google.exchangeInProgressAria\" />\n }\n\n <AlertDescription>\n {{ message() }}\n </AlertDescription>\n </Alert>\n </CardContent>\n\n @if (state() !== 'pending') {\n <CardFooter class=\"flex flex-wrap gap-3 border-t border-border/60 bg-muted/10 pt-4 sm:pt-5\">\n @if (state() === 'error') {\n <a #retryLink Button [routerLink]=\"loginPath\" variant=\"default\">\n {{ messages.google.googleRetry }}\n </a>\n }\n <a\n Button\n [routerLink]=\"authenticatedHomePath\"\n [variant]=\"state() === 'error' ? 'outline' : 'default'\"\n >\n {{ messages.google.openDashboard }}\n </a>\n </CardFooter>\n }\n </Card>\n `,\n})\nexport class AuthGoogleCallbackPage {\n private readonly documentRef = inject<Document>(DOCUMENT);\n private readonly destroyRef = inject(DestroyRef);\n private readonly injector = inject(Injector);\n private readonly route = inject(ActivatedRoute);\n private readonly router = inject(Router);\n private readonly location = inject(Location);\n private readonly authSessionService = inject(AuthSessionService);\n private readonly authService = inject(AuthService);\n private readonly authConfig = inject(EDSIS_AUTH_CONFIG);\n protected readonly messages = inject(EDSIS_AUTH_MESSAGES);\n\n protected readonly loginPath = this.authConfig.loginPath;\n protected readonly authenticatedHomePath = this.authConfig.authenticatedHomePath;\n protected readonly state = signal<'pending' | 'success' | 'error'>('pending');\n protected readonly message = signal(this.messages.google.googleExchangeInProgress);\n // `a[Button]` adalah komponen, jadi tanpa `read` query template-ref ini\n // mengembalikan instance ButtonComponent — bukan elemen anchor-nya.\n private readonly retryLink = viewChild('retryLink', { read: ElementRef });\n\n constructor() {\n effect(() => {\n if (this.state() !== 'error') {\n return;\n }\n\n afterNextRender(() => this.retryLink()?.nativeElement.focus(), { injector: this.injector });\n });\n\n this.handleCallback();\n }\n\n private handleCallback(): void {\n const queryParams = this.route.snapshot.queryParamMap;\n const oauthError = queryParams.get('error')?.trim() ?? '';\n const code = queryParams.get('code')?.trim() ?? '';\n const returnedState = queryParams.get('state')?.trim() ?? '';\n // State dikonsumsi (dibaca + dihapus) sebelum bercabang supaya bersih di\n // semua cabang, termasuk cabang error dari Google.\n const storedState = consumeGoogleOauthState(this.documentRef);\n\n this.clearCallbackParamsFromAddressBar();\n\n if (oauthError) {\n this.fail(\n oauthError === 'access_denied'\n ? this.messages.google.googleAccessDenied\n : this.messages.google.googleCallbackError,\n );\n return;\n }\n\n if (!returnedState || !storedState || returnedState !== storedState) {\n this.fail(this.messages.google.googleStateMismatch);\n return;\n }\n\n if (!code) {\n this.fail(this.messages.google.googleCallbackError);\n return;\n }\n\n this.exchange(code);\n }\n\n private clearCallbackParamsFromAddressBar(): void {\n this.location.replaceState(`/${GOOGLE_OAUTH_CALLBACK_ROUTE_PATH}`);\n }\n\n private exchange(code: string): void {\n const googleOauth = this.authConfig.oauth.google;\n\n if (!googleOauth) {\n this.fail(this.messages.google.googleCallbackError);\n return;\n }\n\n this.state.set('pending');\n this.message.set(this.messages.google.googleExchangeInProgress);\n\n // Exchange lewat method SDK hasil generate (konsisten dengan\n // verifyMagicLink/refreshAuthToken); path /v1/auth/google membuat\n // edsisAuthInterceptor otomatis memasang cookie credentials.\n this.authSessionService\n .exchangeGoogleCode({\n body: { code, redirectUri: googleOauth.redirectUri },\n })\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe({\n next: (response) => {\n this.authService.acceptTokenResponse(response);\n\n if (!this.authService.isAuthenticated()) {\n this.fail(this.messages.google.missingAccessToken);\n return;\n }\n\n this.state.set('success');\n this.message.set(getResponseMessage(response, this.messages.google.successRedirect));\n void this.router.navigateByUrl(this.authenticatedHomePath, { replaceUrl: true });\n },\n error: (error: unknown) => {\n this.fail(getBackendErrorMessage(error, this.messages.google.googleCallbackError));\n },\n });\n }\n\n private fail(message: string): void {\n this.state.set('error');\n this.message.set(message);\n }\n}\n","import { DOCUMENT } from '@angular/common';\nimport {\n Component,\n DestroyRef,\n ElementRef,\n Injector,\n afterNextRender,\n computed,\n effect,\n inject,\n signal,\n viewChild,\n} from '@angular/core';\nimport { takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop';\nimport { FormBuilder, ReactiveFormsModule, Validators } from '@angular/forms';\nimport { Router } from '@angular/router';\nimport { AuthMagicLinkService } from '@edsis/sdk/auth';\nimport { AspectRatioComponent } from '@edsis/component/aspect-ratio';\nimport { ButtonComponent } from '@edsis/component/button';\nimport {\n CardActionComponent,\n CardComponent,\n CardContentComponent,\n CardDescriptionComponent,\n CardHeaderComponent,\n CardTitleComponent,\n} from '@edsis/component/card';\nimport {\n InputGroupAddonComponent,\n InputGroupButtonComponent,\n InputGroupComponent,\n InputGroupInputComponent,\n} from '@edsis/component/input-group';\nimport { LabelComponent } from '@edsis/component/label';\nimport { SeparatorComponent } from '@edsis/component/separator';\nimport { finalize, startWith } from 'rxjs';\n\nimport { EDSIS_AUTH_CONFIG } from '../../auth.config';\nimport { EDSIS_AUTH_MESSAGES } from '../../auth-messages';\nimport { AuthHealthService } from '../../health';\nimport { NativeGoogleAuthService } from '../../native';\nimport {\n buildGoogleAuthorizeUrl,\n createGoogleOauthState,\n storeGoogleOauthState,\n} from '../../oauth';\nimport { getErrorMessage, getResponseMessage } from '../auth-page.utils';\n\n@Component({\n selector: 'edsis-auth-login-page',\n imports: [\n ReactiveFormsModule,\n AspectRatioComponent,\n ButtonComponent,\n CardActionComponent,\n CardComponent,\n CardContentComponent,\n CardDescriptionComponent,\n CardHeaderComponent,\n CardTitleComponent,\n InputGroupAddonComponent,\n InputGroupButtonComponent,\n InputGroupComponent,\n InputGroupInputComponent,\n LabelComponent,\n SeparatorComponent,\n ],\n host: {\n class: 'block',\n },\n template: `\n <Card\n class=\"w-full overflow-hidden rounded-none border-border/80 bg-card/95 shadow-2xl backdrop-blur-sm\"\n >\n <CardHeader\n class=\"grid grid-cols-[auto_minmax(0,1fr)_auto] items-start gap-x-4 gap-y-3 border-b border-border/60 bg-muted/15 pb-4 sm:pb-5\"\n >\n <div class=\"w-16 shrink-0 sm:w-20\">\n <AspectRatio [ratio]=\"3 / 2\" class=\"overflow-hidden rounded-none bg-primary\">\n <div\n class=\"flex h-full w-full items-center justify-center px-1 text-[1.25rem] leading-none tracking-[-0.08em] text-primary-foreground sm:text-[1.55rem]\"\n style=\"font-family: 'Arial Black', Arial, sans-serif;\"\n >\n {{ messages.brand.mark }}\n </div>\n </AspectRatio>\n </div>\n <div class=\"min-w-0 space-y-0.5 pt-0.5 sm:pt-1\">\n <CardTitle class=\"text-xl leading-tight sm:text-2xl\">{{\n messages.login.title\n }}</CardTitle>\n <p CardDescription class=\"max-w-xl leading-6\">\n {{ messages.login.intro }}\n </p>\n </div>\n <CardAction\n class=\"col-start-3 row-span-1 mt-0! pt-0.5 text-xs font-medium uppercase tracking-[0.24em] text-muted-foreground sm:pt-1 sm:text-sm\"\n >\n {{ messages.login.badge }}\n </CardAction>\n </CardHeader>\n\n <CardContent class=\"pt-4 sm:pt-5\">\n @if (health.isUnhealthy()) {\n <div\n [id]=\"healthBannerId\"\n role=\"alert\"\n aria-live=\"assertive\"\n class=\"mb-5 space-y-1 rounded-none border border-destructive bg-destructive/10 p-4 text-destructive\"\n >\n <p class=\"font-medium\">{{ messages.login.healthUnavailableTitle }}</p>\n <p class=\"text-sm\">{{ messages.login.healthUnavailableBody }}</p>\n <button\n #healthRetryButton\n Button\n type=\"button\"\n variant=\"outline\"\n size=\"sm\"\n class=\"mt-2 border-destructive/50 text-destructive hover:bg-destructive/10 hover:text-destructive\"\n [disabled]=\"health.isChecking()\"\n (click)=\"retryHealth()\"\n >\n {{ health.isChecking() ? messages.login.healthChecking : messages.login.healthRetry }}\n </button>\n </div>\n }\n\n <form class=\"space-y-6\" [formGroup]=\"form\" (ngSubmit)=\"submit()\">\n <div class=\"space-y-3\">\n <label Label for=\"email\" class=\"sr-only\">Alamat email</label>\n <InputGroup [class]=\"emailFieldClasses()\">\n <InputGroupAddon\n aria-hidden=\"true\"\n class=\"min-h-12 px-4 bg-transparent text-primary [&_svg]:size-6!\"\n >\n <svg\n viewBox=\"0 0 24 24\"\n class=\"fill-none stroke-current\"\n stroke-width=\"1.8\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"M4 7.5h16\" />\n <path\n d=\"M5 6h14a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1Z\"\n />\n <path d=\"m5 8 7 5 7-5\" />\n </svg>\n </InputGroupAddon>\n\n <input\n InputGroupInput\n class=\"h-12! px-4! text-base!\"\n id=\"email\"\n type=\"email\"\n inputmode=\"email\"\n autocomplete=\"email\"\n [attr.aria-describedby]=\"feedbackMessage() ? emailFeedbackId : null\"\n [attr.aria-invalid]=\"fieldTone() === 'error' ? 'true' : null\"\n formControlName=\"email\"\n [placeholder]=\"messages.login.emailPlaceholder\"\n />\n\n <button\n InputGroupButton\n type=\"submit\"\n variant=\"default\"\n size=\"sm\"\n [disabled]=\"\n form.invalid || isSubmitting() || health.isChecking() || health.isUnhealthy()\n \"\n [attr.aria-describedby]=\"health.isUnhealthy() ? healthBannerId : null\"\n class=\"order-30 h-12! min-w-24 rounded-none px-5 text-sm font-medium\"\n >\n {{ isSubmitting() ? messages.login.submitting : messages.login.submit }}\n </button>\n </InputGroup>\n\n @if (feedbackMessage(); as feedback) {\n <p\n [id]=\"emailFeedbackId\"\n class=\"text-sm\"\n [class.text-destructive]=\"feedbackTone() === 'error'\"\n [class.text-emerald-700]=\"feedbackTone() === 'success'\"\n [attr.role]=\"feedbackTone() === 'error' ? 'alert' : 'status'\"\n [attr.aria-live]=\"feedbackTone() === 'error' ? 'assertive' : 'polite'\"\n >\n {{ feedback }}\n </p>\n }\n </div>\n\n <div class=\"grid grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center gap-3 pt-2\">\n <Separator class=\"w-full\" />\n <span\n class=\"min-w-14 text-center text-sm font-medium uppercase tracking-[0.18em] text-muted-foreground\"\n >\n Atau\n </span>\n <Separator class=\"w-full\" />\n </div>\n\n <div class=\"grid gap-3 pt-2 sm:grid-cols-3\">\n <button\n Button\n type=\"button\"\n variant=\"outline\"\n size=\"lg\"\n [disabled]=\"!googleSignInAvailable() || isGoogleRedirecting()\"\n [attr.aria-label]=\"\n googleSignInAvailable()\n ? messages.google.signInAria\n : requiresNativeGoogle()\n ? messages.google.nativeSignInUnavailable\n : messages.login.oauthGoogleAria\n \"\n [attr.title]=\"\n googleSignInAvailable()\n ? null\n : requiresNativeGoogle()\n ? messages.google.nativeSignInUnavailable\n : messages.login.oauthComingSoon\n \"\n (click)=\"signInWithGoogle()\"\n class=\"h-12 gap-3 text-[0.74rem] font-medium uppercase tracking-[0.16em]\"\n >\n <span\n class=\"inline-flex size-6 shrink-0 items-center justify-center\"\n aria-hidden=\"true\"\n >\n <svg viewBox=\"0 0 24 24\" class=\"size-5\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fill=\"#EA4335\"\n d=\"M12.24 10.285v3.965h5.514c-.24 1.285-.96 2.374-2.045 3.105l3.305 2.565c1.925-1.775 3.03-4.39 3.03-7.49 0-.73-.065-1.43-.185-2.145z\"\n />\n <path\n fill=\"#34A853\"\n d=\"M12 22c2.7 0 4.965-.895 6.62-2.425l-3.305-2.565c-.915.615-2.085.985-3.315.985-2.545 0-4.7-1.72-5.47-4.03H3.115v2.53A9.996 9.996 0 0 0 12 22\"\n />\n <path\n fill=\"#4A90E2\"\n d=\"M6.53 13.965A5.996 5.996 0 0 1 6.24 12c0-.68.115-1.34.29-1.965v-2.53H3.115A9.996 9.996 0 0 0 2 12c0 1.61.385 3.135 1.115 4.495z\"\n />\n <path\n fill=\"#FBBC05\"\n d=\"M12 6.005c1.47 0 2.79.505 3.83 1.495l2.87-2.87C16.96 3.01 14.695 2 12 2a9.996 9.996 0 0 0-8.885 5.505l3.415 2.53c.77-2.31 2.925-4.03 5.47-4.03\"\n />\n </svg>\n </span>\n {{ isGoogleRedirecting() ? googleProgressMessage() : 'Google' }}\n </button>\n <button\n Button\n type=\"button\"\n variant=\"outline\"\n size=\"lg\"\n disabled\n [attr.aria-label]=\"messages.login.oauthMicrosoftAria\"\n [attr.title]=\"messages.login.oauthComingSoon\"\n class=\"h-12 gap-3 text-[0.74rem] font-medium uppercase tracking-[0.16em]\"\n >\n <span\n class=\"inline-flex size-6 shrink-0 items-center justify-center\"\n aria-hidden=\"true\"\n >\n <svg viewBox=\"0 0 24 24\" class=\"size-5\" xmlns=\"http://www.w3.org/2000/svg\">\n <path fill=\"#F25022\" d=\"M2 2h9.5v9.5H2z\" />\n <path fill=\"#7FBA00\" d=\"M12.5 2H22v9.5h-9.5z\" />\n <path fill=\"#00A4EF\" d=\"M2 12.5h9.5V22H2z\" />\n <path fill=\"#FFB900\" d=\"M12.5 12.5H22V22h-9.5z\" />\n </svg>\n </span>\n Microsoft\n </button>\n <button\n Button\n type=\"button\"\n variant=\"outline\"\n size=\"lg\"\n disabled\n [attr.aria-label]=\"messages.login.oauthAppleAria\"\n [attr.title]=\"messages.login.oauthComingSoon\"\n class=\"h-12 gap-3 text-[0.74rem] font-medium uppercase tracking-[0.16em]\"\n >\n <span\n class=\"inline-flex size-6 shrink-0 items-center justify-center\"\n aria-hidden=\"true\"\n >\n <svg\n viewBox=\"0 0 24 24\"\n class=\"size-5 fill-current\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M15.482 2c.13 1.25-.31 2.19-.84 2.81-.55.65-1.47 1.15-2.39 1.08-.12-1.21.38-2.17.92-2.79.6-.68 1.61-1.17 2.31-1.1Zm3.94 16.85c-.41.94-.91 1.8-1.54 2.59-.86 1.07-1.57 1.8-2.39 1.8-.59 0-.99-.17-1.44-.36-.47-.2-.95-.4-1.63-.4-.71 0-1.22.2-1.7.4-.46.19-.85.35-1.38.37-.79.03-1.55-.8-2.42-1.87-1.86-2.28-3.3-6.43-1.38-9.77.96-1.66 2.68-2.72 4.55-2.75.71-.01 1.39.21 1.98.41.45.15.86.29 1.19.29.3 0 .73-.15 1.19-.31.68-.23 1.46-.49 2.28-.42 1.14.09 2.17.55 2.98 1.38-2.66 1.45-2.23 5.2.71 6.54Z\"\n />\n </svg>\n </span>\n Apple\n </button>\n </div>\n\n @if (isGoogleRedirecting()) {\n <p class=\"sr-only\" role=\"status\" aria-live=\"polite\">\n {{ googleProgressMessage() }}\n </p>\n }\n\n @if (googleFeedbackMessage(); as googleError) {\n <p class=\"text-sm text-destructive\" role=\"alert\" aria-live=\"assertive\">\n {{ googleError }}\n </p>\n }\n </form>\n </CardContent>\n </Card>\n `,\n})\nexport class AuthLoginPage {\n private readonly documentRef = inject<Document>(DOCUMENT);\n private readonly destroyRef = inject(DestroyRef);\n private readonly formBuilder = inject(FormBuilder);\n private readonly injector = inject(Injector);\n private readonly authMagicLinkService = inject(AuthMagicLinkService);\n private readonly authConfig = inject(EDSIS_AUTH_CONFIG);\n private readonly nativeGoogle = inject(NativeGoogleAuthService, { optional: true });\n private readonly router = inject(Router, { optional: true });\n protected readonly messages = inject(EDSIS_AUTH_MESSAGES);\n protected readonly health = inject(AuthHealthService);\n protected readonly googleOauth = this.authConfig.oauth.google;\n protected readonly isGoogleRedirecting = signal(false);\n protected readonly googleErrorMessage = signal<string | null>(null);\n protected readonly requiresNativeGoogle = computed(\n () => this.nativeGoogle?.requiresNativeGoogle() === true,\n );\n protected readonly isNativeGoogle = computed(() => this.nativeGoogle?.isAvailable() === true);\n protected readonly googleSignInAvailable = computed(\n () => this.isNativeGoogle() || (!this.requiresNativeGoogle() && this.googleOauth !== null),\n );\n protected readonly googleFeedbackMessage = computed(\n () =>\n this.googleErrorMessage() ??\n (this.requiresNativeGoogle() && !this.isNativeGoogle()\n ? this.messages.google.nativeSignInUnavailable\n : null),\n );\n protected readonly googleProgressMessage = computed(() =>\n this.isNativeGoogle()\n ? this.messages.google.nativeSignInInProgress\n : this.messages.google.googleRedirecting,\n );\n\n protected readonly form = this.formBuilder.nonNullable.group({\n email: ['', [Validators.required, Validators.email, Validators.maxLength(255)]],\n });\n protected readonly isSubmitting = signal(false);\n protected readonly responseMessage = signal<string | null>(null);\n protected readonly errorMessage = signal<string | null>(null);\n protected readonly emailControl = this.form.controls.email;\n protected readonly emailFeedbackId = 'email-feedback';\n protected readonly healthBannerId = 'auth-health-banner';\n // `button[Button]` adalah komponen, jadi tanpa `read` query template-ref ini\n // mengembalikan instance ButtonComponent — bukan elemen button-nya.\n private readonly retryButton = viewChild('healthRetryButton', { read: ElementRef });\n private readonly emailControlState = toSignal(this.emailControl.events.pipe(startWith(null)), {\n initialValue: null,\n });\n\n constructor() {\n // On-load health check: non-blocking, no-op saat healthCheck.enabled=false.\n void this.health.check();\n\n effect(() => {\n if (this.health.status() !== 'unhealthy') {\n return;\n }\n\n afterNextRender(() => this.retryButton()?.nativeElement.focus(), { injector: this.injector });\n });\n }\n\n protected readonly hasInlineError = computed(() => {\n this.emailControlState();\n return this.emailControl.invalid && (this.emailControl.dirty || this.emailControl.touched);\n });\n\n protected readonly inlineErrorMessage = computed(() => {\n // Depend on the control events directly: `hasInlineError` stays `true`\n // while the error kind changes (e.g. format → required), and a memoized\n // boolean alone would leave a stale message on screen.\n this.emailControlState();\n\n if (!this.hasInlineError()) {\n return null;\n }\n\n return this.emailControl.hasError('required')\n ? this.messages.login.emailRequired\n : this.messages.login.emailInvalid;\n });\n\n protected readonly feedbackMessage = computed(\n () => this.inlineErrorMessage() ?? this.responseMessage() ?? this.errorMessage(),\n );\n\n protected readonly feedbackTone = computed<'error' | 'success' | null>(() => {\n if (this.inlineErrorMessage() || this.errorMessage()) {\n return 'error';\n }\n\n if (this.responseMessage()) {\n return 'success';\n }\n\n return null;\n });\n\n protected readonly fieldTone = computed<'idle' | 'error' | 'success'>(() => {\n if (this.hasInlineError() || this.errorMessage()) {\n return 'error';\n }\n\n if (this.responseMessage()) {\n return 'success';\n }\n\n return 'idle';\n });\n\n protected readonly emailFieldClasses = computed(() => {\n const baseClasses =\n 'flex-nowrap bg-background/70 shadow-sm [&>[data-slot=input-group-control]]:h-12! [&>[data-slot=input-group-control]]:px-4! [&>[data-slot=input-group-control]]:text-base!';\n\n switch (this.fieldTone()) {\n case 'error':\n return `${baseClasses} border-destructive focus-within:border-destructive focus-within:ring-destructive/20`;\n case 'success':\n return `${baseClasses} border-emerald-500 focus-within:border-emerald-500 focus-within:ring-emerald-500/20`;\n default:\n return baseClasses;\n }\n });\n\n protected retryHealth(): void {\n void this.health.check();\n }\n\n protected signInWithGoogle(): void {\n if (this.isGoogleRedirecting()) {\n return;\n }\n\n if (this.requiresNativeGoogle()) {\n if (this.isNativeGoogle()) {\n void this.signInWithNativeGoogle();\n } else {\n this.googleErrorMessage.set(this.messages.google.nativeSignInUnavailable);\n }\n return;\n }\n\n if (!this.googleSignInAvailable()) return;\n\n const googleOauth = this.googleOauth;\n const windowRef = this.documentRef.defaultView;\n if (!googleOauth || !windowRef) return;\n\n this.isGoogleRedirecting.set(true);\n\n const state = createGoogleOauthState(windowRef);\n storeGoogleOauthState(this.documentRef, state);\n\n this.redirectTo(\n buildGoogleAuthorizeUrl({\n clientId: googleOauth.clientId,\n redirectUri: googleOauth.redirectUri,\n state,\n }),\n );\n }\n\n private async signInWithNativeGoogle(): Promise<void> {\n if (!this.nativeGoogle) return;\n\n this.isGoogleRedirecting.set(true);\n this.googleErrorMessage.set(null);\n\n try {\n await this.nativeGoogle.signIn();\n await this.router?.navigateByUrl(this.authConfig.authenticatedHomePath, {\n replaceUrl: true,\n });\n } catch {\n this.googleErrorMessage.set(this.messages.google.nativeSignInFailed);\n } finally {\n this.isGoogleRedirecting.set(false);\n }\n }\n\n // Full-page redirect keluar dari SPA (bukan Router). Method terpisah karena\n // jsdom tidak mengizinkan stub pada location.assign.\n protected redirectTo(url: string): void {\n this.documentRef.defaultView?.location.assign(url);\n }\n\n protected async submit(): Promise<void> {\n if (this.form.invalid) {\n this.form.markAllAsTouched();\n return;\n }\n\n // Pre-submit re-check: backend bisa mati setelah halaman dimuat.\n if (!(await this.health.check())) {\n return;\n }\n\n this.isSubmitting.set(true);\n this.responseMessage.set(null);\n this.errorMessage.set(null);\n\n const email = this.emailControl.getRawValue().trim().toLowerCase();\n this.emailControl.setValue(email);\n\n this.authMagicLinkService\n .requestMagicLoginLink({\n body: {\n email,\n frontend_url: new URL(this.authConfig.appUrl).origin,\n },\n })\n .pipe(\n takeUntilDestroyed(this.destroyRef),\n finalize(() => this.isSubmitting.set(false)),\n )\n .subscribe({\n next: (response) => {\n this.responseMessage.set(getResponseMessage(response, this.messages.login.magicLinkSent));\n },\n error: (error: unknown) => {\n this.errorMessage.set(getErrorMessage(error, this.messages.login.magicLinkFailed));\n },\n });\n }\n}\n","import { Component, DestroyRef, OnInit, inject, signal } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { Router, RouterLink } from '@angular/router';\nimport { AlertComponent, AlertDescriptionComponent } from '@edsis/component/alert';\nimport { AspectRatioComponent } from '@edsis/component/aspect-ratio';\nimport { ButtonComponent } from '@edsis/component/button';\nimport {\n CardActionComponent,\n CardComponent,\n CardContentComponent,\n CardDescriptionComponent,\n CardFooterComponent,\n CardHeaderComponent,\n CardTitleComponent,\n} from '@edsis/component/card';\nimport { SpinnerComponent } from '@edsis/component/spinner';\nimport { finalize, from } from 'rxjs';\n\nimport { EDSIS_AUTH_CONFIG } from '../../auth.config';\nimport { EDSIS_AUTH_MESSAGES } from '../../auth-messages';\nimport { AuthService } from '../../auth.service';\nimport { getErrorMessage, getResponseMessage } from '../auth-page.utils';\n\n@Component({\n selector: 'edsis-auth-logout-page',\n imports: [\n RouterLink,\n AlertComponent,\n AlertDescriptionComponent,\n AspectRatioComponent,\n ButtonComponent,\n CardActionComponent,\n CardComponent,\n CardContentComponent,\n CardDescriptionComponent,\n CardFooterComponent,\n CardHeaderComponent,\n CardTitleComponent,\n SpinnerComponent,\n ],\n host: {\n class: 'block',\n },\n template: `\n <Card\n class=\"w-full overflow-hidden rounded-none border-border/80 bg-card/95 shadow-2xl backdrop-blur-sm\"\n >\n <CardHeader\n class=\"grid grid-cols-[auto_minmax(0,1fr)_auto] items-start gap-x-4 gap-y-3 border-b border-border/60 bg-muted/15 pb-4 sm:pb-5\"\n >\n <div class=\"w-16 shrink-0 sm:w-20\">\n <AspectRatio [ratio]=\"3 / 2\" class=\"overflow-hidden rounded-none bg-primary\">\n <div\n class=\"flex h-full w-full items-center justify-center px-1 text-[1.25rem] leading-none tracking-[-0.08em] text-primary-foreground sm:text-[1.55rem]\"\n style=\"font-family: 'Arial Black', Arial, sans-serif;\"\n >\n {{ messages.brand.mark }}\n </div>\n </AspectRatio>\n </div>\n <div class=\"min-w-0 space-y-0.5 pt-0.5 sm:pt-1\">\n <CardTitle class=\"text-xl leading-tight sm:text-2xl\">{{\n messages.logout.title\n }}</CardTitle>\n <p CardDescription class=\"max-w-xl leading-6\">\n {{ messages.logout.intro }}\n </p>\n </div>\n <CardAction\n class=\"col-start-3 row-span-1 mt-0! pt-0.5 text-xs font-medium uppercase tracking-[0.24em] text-muted-foreground sm:pt-1 sm:text-sm\"\n >\n {{ messages.logout.badge }}\n </CardAction>\n </CardHeader>\n\n <CardContent class=\"space-y-4 pt-6 sm:pt-7\">\n <Alert\n [variant]=\"state() === 'error' ? 'destructive' : 'default'\"\n class=\"bg-background/70 shadow-sm\"\n >\n @if (state() === 'pending') {\n <Spinner class=\"mt-0.5 size-4\" [attr.aria-label]=\"messages.logout.pendingAria\" />\n }\n\n <AlertDescription>\n {{ message() }}\n </AlertDescription>\n </Alert>\n\n @if (state() === 'error') {\n <Alert variant=\"destructive\" class=\"shadow-sm\">\n <AlertDescription>\n {{ messages.logout.failedNote }}\n </AlertDescription>\n </Alert>\n }\n </CardContent>\n\n <CardFooter class=\"flex flex-wrap gap-3 border-t border-border/60 bg-muted/10 pt-4 sm:pt-5\">\n <a Button [routerLink]=\"guestHomePath\" variant=\"default\">\n {{ messages.logout.backToLogin }}\n </a>\n <a Button [routerLink]=\"authenticatedHomePath\" variant=\"outline\">\n {{ messages.logout.openDashboard }}\n </a>\n </CardFooter>\n </Card>\n `,\n})\nexport class AuthLogoutPage implements OnInit {\n private readonly destroyRef = inject(DestroyRef);\n private readonly router = inject(Router);\n private readonly authService = inject(AuthService);\n private readonly authConfig = inject(EDSIS_AUTH_CONFIG);\n protected readonly messages = inject(EDSIS_AUTH_MESSAGES);\n\n protected readonly guestHomePath = this.authConfig.guestHomePath;\n protected readonly authenticatedHomePath = this.authConfig.authenticatedHomePath;\n protected readonly state = signal<'pending' | 'success' | 'error'>('pending');\n protected readonly message = signal(this.messages.logout.pending);\n\n ngOnInit(): void {\n from(this.authService.logout())\n .pipe(\n takeUntilDestroyed(this.destroyRef),\n finalize(() => {\n if (this.state() === 'pending') {\n this.state.set('success');\n }\n }),\n )\n .subscribe({\n next: () => {\n this.state.set('success');\n this.message.set(this.messages.logout.success);\n void this.router.navigateByUrl(this.guestHomePath, { replaceUrl: true });\n },\n error: (error: unknown) => {\n this.state.set('error');\n this.message.set(getErrorMessage(error, this.messages.logout.failed));\n },\n });\n }\n}\n","import { DOCUMENT, Location } from '@angular/common';\nimport { Component, DestroyRef, effect, inject, input, signal } from '@angular/core';\nimport { toSignal } from '@angular/core/rxjs-interop';\nimport { ActivatedRoute, Router, RouterLink } from '@angular/router';\nimport { AuthMagicLinkService } from '@edsis/sdk/auth';\nimport { AlertComponent, AlertDescriptionComponent } from '@edsis/component/alert';\nimport { AspectRatioComponent } from '@edsis/component/aspect-ratio';\nimport { ButtonComponent } from '@edsis/component/button';\nimport {\n CardActionComponent,\n CardComponent,\n CardContentComponent,\n CardDescriptionComponent,\n CardFooterComponent,\n CardHeaderComponent,\n CardTitleComponent,\n} from '@edsis/component/card';\nimport { SpinnerComponent } from '@edsis/component/spinner';\nimport { Subscription } from 'rxjs';\n\nimport { EDSIS_AUTH_CONFIG } from '../../auth.config';\nimport { EDSIS_AUTH_MESSAGES } from '../../auth-messages';\nimport { AuthService } from '../../auth.service';\nimport { extractMagicToken, getErrorMessage, getResponseMessage } from '../auth-page.utils';\n\n@Component({\n selector: 'edsis-auth-verify-page',\n imports: [\n RouterLink,\n AlertComponent,\n AlertDescriptionComponent,\n AspectRatioComponent,\n ButtonComponent,\n CardActionComponent,\n CardComponent,\n CardContentComponent,\n CardDescriptionComponent,\n CardFooterComponent,\n CardHeaderComponent,\n CardTitleComponent,\n SpinnerComponent,\n ],\n host: {\n class: 'block',\n },\n template: `\n <Card\n class=\"w-full overflow-hidden rounded-none border-border/80 bg-card/95 shadow-2xl backdrop-blur-sm\"\n >\n <CardHeader\n class=\"grid grid-cols-[auto_minmax(0,1fr)_auto] items-start gap-x-4 gap-y-3 border-b border-border/60 bg-muted/15 pb-4 sm:pb-5\"\n >\n <div class=\"w-16 shrink-0 sm:w-20\">\n <AspectRatio [ratio]=\"3 / 2\" class=\"overflow-hidden rounded-none bg-primary\">\n <div\n class=\"flex h-full w-full items-center justify-center px-1 text-[1.25rem] leading-none tracking-[-0.08em] text-primary-foreground sm:text-[1.55rem]\"\n style=\"font-family: 'Arial Black', Arial, sans-serif;\"\n >\n {{ messages.brand.mark }}\n </div>\n </AspectRatio>\n </div>\n <div class=\"min-w-0 space-y-0.5 pt-0.5 sm:pt-1\">\n <CardTitle class=\"text-xl leading-tight sm:text-2xl\">{{\n messages.verify.title\n }}</CardTitle>\n <p CardDescription class=\"max-w-xl leading-6\">\n {{ messages.verify.intro }}\n </p>\n </div>\n <CardAction\n class=\"col-start-3 row-span-1 mt-0! pt-0.5 text-xs font-medium uppercase tracking-[0.24em] text-muted-foreground sm:pt-1 sm:text-sm\"\n >\n {{ messages.verify.badge }}\n </CardAction>\n </CardHeader>\n\n <CardContent class=\"space-y-4 pt-6 sm:pt-7\">\n <Alert\n [variant]=\"state() === 'error' ? 'destructive' : 'default'\"\n class=\"bg-background/70 shadow-sm\"\n >\n @if (state() === 'pending') {\n <Spinner class=\"mt-0.5 size-4\" [attr.aria-label]=\"messages.verify.pendingAria\" />\n }\n\n <AlertDescription>\n {{ message() }}\n </AlertDescription>\n </Alert>\n\n @if (state() === 'error') {\n <Alert variant=\"destructive\" class=\"shadow-sm\">\n <AlertDescription>\n Pastikan Anda membuka link terbaru dari email dan token belum pernah dipakai\n sebelumnya.\n </AlertDescription>\n </Alert>\n }\n </CardContent>\n\n <CardFooter class=\"flex flex-wrap gap-3 border-t border-border/60 bg-muted/10 pt-4 sm:pt-5\">\n <a Button [routerLink]=\"guestHomePath\" variant=\"outline\">\n {{ messages.verify.requestNewLink }}\n </a>\n <a Button [routerLink]=\"authenticatedHomePath\" variant=\"default\">\n {{ messages.verify.openDashboard }}\n </a>\n </CardFooter>\n </Card>\n `,\n})\nexport class AuthVerifyPage {\n private readonly documentRef = inject<Document>(DOCUMENT);\n private readonly destroyRef = inject(DestroyRef);\n private readonly route = inject(ActivatedRoute);\n private readonly router = inject(Router);\n private readonly location = inject(Location);\n private readonly authMagicLinkService = inject(AuthMagicLinkService);\n private readonly authConfig = inject(EDSIS_AUTH_CONFIG);\n private readonly authService = inject(AuthService);\n protected readonly messages = inject(EDSIS_AUTH_MESSAGES);\n private readonly queryParamMap = toSignal(this.route.queryParamMap, {\n initialValue: this.route.snapshot.queryParamMap,\n });\n private readonly fragment = toSignal(this.route.fragment, {\n initialValue: this.route.snapshot.fragment,\n });\n private handledToken: string | null | undefined = undefined;\n private verifySubscription: Subscription | null = null;\n\n protected readonly guestHomePath = this.authConfig.guestHomePath;\n protected readonly authenticatedHomePath = this.authConfig.authenticatedHomePath;\n protected readonly state = signal<'pending' | 'success' | 'error'>('pending');\n protected readonly message = signal(this.messages.verify.pending);\n protected readonly token = input<string | null | undefined>(undefined);\n\n constructor() {\n this.destroyRef.onDestroy(() => this.verifySubscription?.unsubscribe());\n\n effect(() => {\n const token = extractMagicToken(\n this.token() ?? this.queryParamMap().get('token'),\n this.fragment(),\n );\n\n if (!token) {\n if (this.handledToken === null) {\n return;\n }\n\n this.handledToken = null;\n this.clearTokenFromAddressBar();\n this.state.set('error');\n this.message.set(this.messages.verify.tokenMissing);\n return;\n }\n\n if (token === this.handledToken) {\n return;\n }\n\n this.handledToken = token;\n this.clearTokenFromAddressBar();\n this.state.set('pending');\n this.message.set(this.messages.verify.pending);\n this.verify(token);\n });\n }\n\n private clearTokenFromAddressBar(): void {\n this.location.replaceState(this.authConfig.verifyPath);\n }\n\n private verify(token: string): void {\n this.verifySubscription?.unsubscribe();\n this.verifySubscription = this.authMagicLinkService\n .verifyMagicLink({\n body: {\n token,\n device_type: 'web',\n },\n })\n .subscribe({\n next: (response) => {\n this.authService.acceptTokenResponse(response);\n\n if (!this.authService.isAuthenticated()) {\n this.state.set('error');\n this.message.set(this.messages.verify.missingAccessToken);\n return;\n }\n\n this.state.set('success');\n this.message.set(getResponseMessage(response, this.messages.verify.successRedirect));\n void this.router.navigateByUrl(this.authenticatedHomePath, { replaceUrl: true });\n },\n error: (error: unknown) => {\n this.state.set('error');\n this.message.set(getErrorMessage(error, this.messages.verify.invalidOrExpired));\n },\n });\n }\n}\n","import type { Routes } from '@angular/router';\n\nimport { GOOGLE_OAUTH_CALLBACK_ROUTE_PATH } from '../auth.config';\nimport { guestOnlyGuard } from '../guard';\nimport { AuthShellPage } from './auth-shell/auth-shell.page';\nimport { AuthGoogleCallbackPage } from './google-callback/google-callback.page';\nimport { AuthLoginPage } from './login/login.page';\nimport { AuthLogoutPage } from './logout/logout.page';\nimport { AuthVerifyPage } from './verify/verify.page';\n\nexport const authRoutes: Routes = [\n {\n path: '',\n component: AuthShellPage,\n children: [\n {\n path: 'login',\n title: 'Login',\n canActivate: [guestOnlyGuard],\n component: AuthLoginPage,\n },\n {\n path: GOOGLE_OAUTH_CALLBACK_ROUTE_PATH,\n title: 'Google Sign-In',\n canActivate: [guestOnlyGuard],\n component: AuthGoogleCallbackPage,\n },\n {\n path: 'logout',\n title: 'Logout',\n component: AuthLogoutPage,\n },\n {\n path: 'verify',\n title: 'Verify',\n canActivate: [guestOnlyGuard],\n component: AuthVerifyPage,\n },\n ],\n },\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAIA,MAAM,kBAAkB,GAAG,QAAiB;AAC5C,MAAM,mBAAmB,GAAG,SAAkB;AAC9C,MAAM,mBAAmB,GAAG,SAAkB;AAC9C,MAAM,+B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AAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiET,EAAA,CAAA;AACF,iBAAA;;;ACrGM,MAAM,UAAU,GAAW;AAChC,IAAA;AACE,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,SAAS,EAAE,aAAa;AACxB,QAAA,QAAQ,EAAE;AACR,YAAA;AACE,gBAAA,IAAI,EAAE,OAAO;AACb,gBAAA,KAAK,EAAE,OAAO;gBACd,WAAW,EAAE,CAAC,cAAc,CAAC;AAC7B,gBAAA,SAAS,EAAE,aAAa;AACzB,aAAA;AACD,YAAA;AACE,gBAAA,IAAI,EAAE,gCAAgC;AACtC,gBAAA,KAAK,EAAE,gBAAgB;gBACvB,WAAW,EAAE,CAAC,cAAc,CAAC;AAC7B,gBAAA,SAAS,EAAE,sBAAsB;AAClC,aAAA;AACD,YAAA;AACE,gBAAA,IAAI,EAAE,QAAQ;AACd,gBAAA,KAAK,EAAE,QAAQ;AACf,gBAAA,SAAS,EAAE,cAAc;AAC1B,aAAA;AACD,YAAA;AACE,gBAAA,IAAI,EAAE,QAAQ;AACd,gBAAA,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,CAAC,cAAc,CAAC;AAC7B,gBAAA,SAAS,EAAE,cAAc;AAC1B,aAAA;AACF,SAAA;AACF,KAAA;;;ACvCH;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edsis/angular",
|
|
3
|
-
"version": "22.0.
|
|
3
|
+
"version": "22.0.84",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": ">=22.0.0",
|
|
6
6
|
"@angular/core": ">=22.0.0",
|
|
7
7
|
"@angular/forms": ">=22.0.0",
|
|
8
8
|
"@angular/router": ">=22.0.0",
|
|
9
9
|
"@tauri-apps/api": ">=2.0.0",
|
|
10
|
-
"@edsis/navigation": "^22.0.
|
|
11
|
-
"@edsis/sdk": "^22.0.
|
|
12
|
-
"@edsis/theme": "^22.0.
|
|
13
|
-
"@edsis/component": "^22.0.
|
|
10
|
+
"@edsis/navigation": "^22.0.84",
|
|
11
|
+
"@edsis/sdk": "^22.0.84",
|
|
12
|
+
"@edsis/theme": "^22.0.84",
|
|
13
|
+
"@edsis/component": "^22.0.84",
|
|
14
14
|
"rxjs": ">=7.8.0"
|
|
15
15
|
},
|
|
16
16
|
"peerDependenciesMeta": {
|
|
@@ -36,7 +36,6 @@ declare class BlockShellComponent {
|
|
|
36
36
|
readonly sideAriaLabel: _angular_core.InputSignal<string>;
|
|
37
37
|
readonly contentAriaLabel: _angular_core.InputSignal<string>;
|
|
38
38
|
readonly navigationPanelOpen: _angular_core.InputSignal<boolean>;
|
|
39
|
-
readonly desktopThemeSettingsRequested: _angular_core.OutputEmitterRef<void>;
|
|
40
39
|
private readonly runtimeContext;
|
|
41
40
|
private readonly nativeHost;
|
|
42
41
|
protected readonly layout: LayoutService;
|
|
@@ -48,7 +47,7 @@ declare class BlockShellComponent {
|
|
|
48
47
|
protected onDesktopWindowControlRequested(action: EdsisWindowControlAction): void;
|
|
49
48
|
protected onDesktopWindowDragRequested(): void;
|
|
50
49
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BlockShellComponent, never>;
|
|
51
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BlockShellComponent, "block-shell", never, { "navigation": { "alias": "navigation"; "required": true; "isSignal": true; }; "navbarId": { "alias": "navbarId"; "required": false; "isSignal": true; }; "sidebarNavId": { "alias": "sidebarNavId"; "required": false; "isSignal": true; }; "shellName": { "alias": "shellName"; "required": true; "isSignal": true; }; "logoText": { "alias": "logoText"; "required": false; "isSignal": true; }; "homePath": { "alias": "homePath"; "required": false; "isSignal": true; }; "userName": { "alias": "userName"; "required": true; "isSignal": true; }; "userPosition": { "alias": "userPosition"; "required": true; "isSignal": true; }; "userPhotoUrl": { "alias": "userPhotoUrl"; "required": false; "isSignal": true; }; "topAriaLabel": { "alias": "topAriaLabel"; "required": false; "isSignal": true; }; "sideAriaLabel": { "alias": "sideAriaLabel"; "required": false; "isSignal": true; }; "contentAriaLabel": { "alias": "contentAriaLabel"; "required": false; "isSignal": true; }; "navigationPanelOpen": { "alias": "navigationPanelOpen"; "required": false; "isSignal": true; }; }, {
|
|
50
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BlockShellComponent, "block-shell", never, { "navigation": { "alias": "navigation"; "required": true; "isSignal": true; }; "navbarId": { "alias": "navbarId"; "required": false; "isSignal": true; }; "sidebarNavId": { "alias": "sidebarNavId"; "required": false; "isSignal": true; }; "shellName": { "alias": "shellName"; "required": true; "isSignal": true; }; "logoText": { "alias": "logoText"; "required": false; "isSignal": true; }; "homePath": { "alias": "homePath"; "required": false; "isSignal": true; }; "userName": { "alias": "userName"; "required": true; "isSignal": true; }; "userPosition": { "alias": "userPosition"; "required": true; "isSignal": true; }; "userPhotoUrl": { "alias": "userPhotoUrl"; "required": false; "isSignal": true; }; "topAriaLabel": { "alias": "topAriaLabel"; "required": false; "isSignal": true; }; "sideAriaLabel": { "alias": "sideAriaLabel"; "required": false; "isSignal": true; }; "contentAriaLabel": { "alias": "contentAriaLabel"; "required": false; "isSignal": true; }; "navigationPanelOpen": { "alias": "navigationPanelOpen"; "required": false; "isSignal": true; }; }, {}, ["navigationPanel", "footerAction"], never, true, never>;
|
|
52
51
|
}
|
|
53
52
|
|
|
54
53
|
declare const MAIN_SIDEBAR_NAV_ID = "main";
|