@posiwise/shared-components 0.0.228 → 0.0.230
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,7 +1,7 @@
|
|
|
1
|
-
import * as i1$
|
|
1
|
+
import * as i1$2 from "@angular/common";
|
|
2
2
|
import { CommonModule, DOCUMENT, NgIf } from "@angular/common";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild,
|
|
4
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, DestroyRef, Directive, EventEmitter, Host, HostBinding, HostListener, Inject, Injectable, InjectionToken, Input, NgModule, Optional, Output, Pipe, SkipSelf, ViewChild, ViewContainerRef, ViewEncapsulation, booleanAttribute, computed, inject, input, isDevMode, signal } from "@angular/core";
|
|
5
5
|
import * as i4$1 from "@angular/forms";
|
|
6
6
|
import { FormsModule, NG_VALUE_ACCESSOR, ReactiveFormsModule, UntypedFormControl, Validators } from "@angular/forms";
|
|
7
7
|
import * as i9$1 from "@angular/router";
|
|
@@ -9,7 +9,7 @@ import { NavigationEnd, RouterModule } from "@angular/router";
|
|
|
9
9
|
import * as i8 from "@posiwise/app-loader";
|
|
10
10
|
import { AppLoaderModule } from "@posiwise/app-loader";
|
|
11
11
|
import { CoreTranslocoModule } from "@posiwise/core-transloco";
|
|
12
|
-
import * as i1
|
|
12
|
+
import * as i1 from "@posiwise/directives";
|
|
13
13
|
import { DirectivesModule } from "@posiwise/directives";
|
|
14
14
|
import * as i15 from "@posiwise/pipes";
|
|
15
15
|
import { PipesModule } from "@posiwise/pipes";
|
|
@@ -40,23 +40,21 @@ import * as i2$1 from "primeng/tabs";
|
|
|
40
40
|
import { TabsModule } from "primeng/tabs";
|
|
41
41
|
import * as i10 from "primeng/tooltip";
|
|
42
42
|
import { TooltipModule } from "primeng/tooltip";
|
|
43
|
-
import * as i1$
|
|
43
|
+
import * as i1$3 from "@ng-bootstrap/ng-bootstrap";
|
|
44
44
|
import { NgbModalModule, NgbNavModule, NgbTooltipModule } from "@ng-bootstrap/ng-bootstrap";
|
|
45
|
-
import * as i1$
|
|
45
|
+
import * as i1$1 from "@posiwise/common-services";
|
|
46
46
|
import { KNOWLEDGE_EXTENSIONS, KNOWLEDGE_MAX_BYTES, PermissionService } from "@posiwise/common-services";
|
|
47
47
|
import { ADMIN_ROUTERS, PAGE_SIZE, TAG_ENTITY } from "@posiwise/common-utilities";
|
|
48
|
-
import { catchError, debounceTime, distinctUntilChanged, filter, finalize, map, switchMap, take, takeUntil } from "rxjs/operators";
|
|
49
|
-
import * as i2$
|
|
48
|
+
import { catchError, debounceTime, distinctUntilChanged, filter, finalize, map, switchMap, take, takeUntil, tap } from "rxjs/operators";
|
|
49
|
+
import * as i2$3 from "@jsverse/transloco";
|
|
50
50
|
import { AppBaseComponent } from "@posiwise/app-base-component";
|
|
51
|
-
import * as i2$
|
|
51
|
+
import * as i2$2 from "@posiwise/app-config-service";
|
|
52
52
|
import { BehaviorSubject, Subject, of, takeUntil as takeUntil$1 } from "rxjs";
|
|
53
53
|
import * as i3$1 from "@ngrx/store";
|
|
54
54
|
import { HelperService } from "@posiwise/helper-service";
|
|
55
55
|
import { __decorate, __metadata } from "tslib";
|
|
56
56
|
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
|
57
57
|
import { StatusCodes } from "http-status-codes";
|
|
58
|
-
import * as i2$2 from "@angular/platform-browser";
|
|
59
|
-
import * as i1 from "@posiwise/admin-module-utils";
|
|
60
58
|
import { DragDropModule } from "@angular/cdk/drag-drop";
|
|
61
59
|
import * as i3 from "@fortawesome/angular-fontawesome";
|
|
62
60
|
import { FontAwesomeModule } from "@fortawesome/angular-fontawesome";
|
|
@@ -128,7 +126,7 @@ var ConfirmDialogComponent = class ConfirmDialogComponent {
|
|
|
128
126
|
version: "22.2.3",
|
|
129
127
|
ngImport: i0,
|
|
130
128
|
type: ConfirmDialogComponent,
|
|
131
|
-
deps: [{ token: i1$
|
|
129
|
+
deps: [{ token: i1$3.NgbActiveModal }],
|
|
132
130
|
target: i0.ɵɵFactoryTarget.Component
|
|
133
131
|
});
|
|
134
132
|
}
|
|
@@ -145,7 +143,7 @@ var ConfirmDialogComponent = class ConfirmDialogComponent {
|
|
|
145
143
|
styles: [".pw-confirm{position:relative;padding:24px 24px 20px}.pw-confirm__header{display:flex;align-items:center;gap:12px;margin-bottom:16px}.pw-confirm__icon{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:9999px;font-size:16px;flex-shrink:0}.pw-confirm--info .pw-confirm__icon,.pw-confirm--neutral .pw-confirm__icon{background:#1769e11a;color:var(--first, #1769e1)}.pw-confirm__title{flex:1;margin:0;font-size:16px;font-weight:600;color:var(--titles, #222);line-height:1.3}.pw-confirm__close{flex-shrink:0}.pw-confirm__body{margin-bottom:20px}.pw-confirm__message{margin:0;color:var(--text, #222);font-size:14px;line-height:1.5}.pw-confirm__message ::ng-deep strong{font-weight:600;color:var(--titles, #222)}.pw-confirm__footer{display:flex;justify-content:flex-end;gap:8px}.pw-confirm--destructive{padding:48px 32px 32px;text-align:center}.pw-confirm--destructive .pw-confirm__header{flex-direction:column;align-items:center;gap:24px;margin-bottom:20px}.pw-confirm--destructive .pw-confirm__icon{width:80px;height:80px;font-size:36px;background:transparent;border:4px solid #dc3545;color:#dc3545}.pw-confirm--destructive .pw-confirm__title{flex:none;text-align:center;font-size:24px;font-weight:700;line-height:1.2}.pw-confirm--destructive .pw-confirm__close{display:none}.pw-confirm--destructive .pw-confirm__body{margin-bottom:28px}.pw-confirm--destructive .pw-confirm__message{text-align:center;font-size:16px;line-height:1.5}.pw-confirm--destructive .pw-confirm__footer{justify-content:center;gap:14px;margin-top:0}.pw-confirm--destructive .pw-confirm__footer .btn{min-width:96px;padding:10px 24px;font-weight:600}::ng-deep .pw-confirm-modal .modal-content{border-radius:12px;border:1px solid #e2e5ea;box-shadow:0 10px 30px #1018281f;overflow:hidden}\n"],
|
|
146
144
|
dependencies: [{
|
|
147
145
|
kind: "pipe",
|
|
148
|
-
type: i2$
|
|
146
|
+
type: i2$3.TranslocoPipe,
|
|
149
147
|
name: "transloco"
|
|
150
148
|
}]
|
|
151
149
|
});
|
|
@@ -165,7 +163,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
165
163
|
styles: [".pw-confirm{position:relative;padding:24px 24px 20px}.pw-confirm__header{display:flex;align-items:center;gap:12px;margin-bottom:16px}.pw-confirm__icon{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:9999px;font-size:16px;flex-shrink:0}.pw-confirm--info .pw-confirm__icon,.pw-confirm--neutral .pw-confirm__icon{background:#1769e11a;color:var(--first, #1769e1)}.pw-confirm__title{flex:1;margin:0;font-size:16px;font-weight:600;color:var(--titles, #222);line-height:1.3}.pw-confirm__close{flex-shrink:0}.pw-confirm__body{margin-bottom:20px}.pw-confirm__message{margin:0;color:var(--text, #222);font-size:14px;line-height:1.5}.pw-confirm__message ::ng-deep strong{font-weight:600;color:var(--titles, #222)}.pw-confirm__footer{display:flex;justify-content:flex-end;gap:8px}.pw-confirm--destructive{padding:48px 32px 32px;text-align:center}.pw-confirm--destructive .pw-confirm__header{flex-direction:column;align-items:center;gap:24px;margin-bottom:20px}.pw-confirm--destructive .pw-confirm__icon{width:80px;height:80px;font-size:36px;background:transparent;border:4px solid #dc3545;color:#dc3545}.pw-confirm--destructive .pw-confirm__title{flex:none;text-align:center;font-size:24px;font-weight:700;line-height:1.2}.pw-confirm--destructive .pw-confirm__close{display:none}.pw-confirm--destructive .pw-confirm__body{margin-bottom:28px}.pw-confirm--destructive .pw-confirm__message{text-align:center;font-size:16px;line-height:1.5}.pw-confirm--destructive .pw-confirm__footer{justify-content:center;gap:14px;margin-top:0}.pw-confirm--destructive .pw-confirm__footer .btn{min-width:96px;padding:10px 24px;font-weight:600}::ng-deep .pw-confirm-modal .modal-content{border-radius:12px;border:1px solid #e2e5ea;box-shadow:0 10px 30px #1018281f;overflow:hidden}\n"]
|
|
166
164
|
}]
|
|
167
165
|
}],
|
|
168
|
-
ctorParameters: () => [{ type: i1$
|
|
166
|
+
ctorParameters: () => [{ type: i1$3.NgbActiveModal }],
|
|
169
167
|
propDecorators: { config: [{ type: Input }] }
|
|
170
168
|
});
|
|
171
169
|
var ConfirmDialogService = class ConfirmDialogService {
|
|
@@ -197,7 +195,7 @@ var ConfirmDialogService = class ConfirmDialogService {
|
|
|
197
195
|
version: "22.2.3",
|
|
198
196
|
ngImport: i0,
|
|
199
197
|
type: ConfirmDialogService,
|
|
200
|
-
deps: [{ token: i1$
|
|
198
|
+
deps: [{ token: i1$3.NgbModal }],
|
|
201
199
|
target: i0.ɵɵFactoryTarget.Injectable
|
|
202
200
|
});
|
|
203
201
|
}
|
|
@@ -220,7 +218,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
220
218
|
type: Injectable,
|
|
221
219
|
args: [{ providedIn: "root" }]
|
|
222
220
|
}],
|
|
223
|
-
ctorParameters: () => [{ type: i1$
|
|
221
|
+
ctorParameters: () => [{ type: i1$3.NgbModal }]
|
|
224
222
|
});
|
|
225
223
|
function folderOf(file) {
|
|
226
224
|
const slash = file.path.lastIndexOf("/");
|
|
@@ -323,7 +321,7 @@ var NoDataComponent = class NoDataComponent {
|
|
|
323
321
|
styles: ["@charset \"UTF-8\";:root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_sub_bg: color-mix(in srgb, var(--first, rgb(23 105 225)) 85%, #000000);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255);--dashboard_bg: rgb(255 255 255);--public-btn-radius: 24px}.no-data{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;width:100%;height:100%;border:1px dashed rgb(204,204,204);border-radius:4px;margin:20px 0;padding:10px;background:#fafafa!important;color:oklch(from var(--text) 40% c h)!important}.no-data .message{font-weight:500;font-size:15px;color:#5a6473!important}.no-data.has-content{padding-top:10px;padding-bottom:20px}.no-data .no-data-icon{margin-top:15px;font-size:44px;line-height:1;color:#a8afbc}\n"],
|
|
324
322
|
dependencies: [{
|
|
325
323
|
kind: "directive",
|
|
326
|
-
type: i1$
|
|
324
|
+
type: i1$2.NgClass,
|
|
327
325
|
selector: "[ngClass]",
|
|
328
326
|
inputs: ["class", "ngClass"]
|
|
329
327
|
}]
|
|
@@ -407,7 +405,7 @@ var RecordsSummaryComponent = class RecordsSummaryComponent {
|
|
|
407
405
|
isInline: true,
|
|
408
406
|
dependencies: [{
|
|
409
407
|
kind: "pipe",
|
|
410
|
-
type: i2$
|
|
408
|
+
type: i2$3.TranslocoPipe,
|
|
411
409
|
name: "transloco"
|
|
412
410
|
}]
|
|
413
411
|
});
|
|
@@ -538,10 +536,10 @@ var AiKnowledgeComponent = class AiKnowledgeComponent {
|
|
|
538
536
|
ngImport: i0,
|
|
539
537
|
type: AiKnowledgeComponent,
|
|
540
538
|
deps: [
|
|
541
|
-
{ token: i1$
|
|
539
|
+
{ token: i1$1.KnowledgeFilesService },
|
|
542
540
|
{ token: ConfirmDialogService },
|
|
543
|
-
{ token: i1$
|
|
544
|
-
{ token: i2$
|
|
541
|
+
{ token: i1$1.CustomToastService },
|
|
542
|
+
{ token: i2$3.TranslocoService },
|
|
545
543
|
{ token: i0.ChangeDetectorRef }
|
|
546
544
|
],
|
|
547
545
|
target: i0.ɵɵFactoryTarget.Component
|
|
@@ -801,7 +799,7 @@ var AiKnowledgeComponent = class AiKnowledgeComponent {
|
|
|
801
799
|
},
|
|
802
800
|
{
|
|
803
801
|
kind: "directive",
|
|
804
|
-
type: i1$
|
|
802
|
+
type: i1$2.NgClass,
|
|
805
803
|
selector: "[ngClass]",
|
|
806
804
|
inputs: ["class", "ngClass"]
|
|
807
805
|
},
|
|
@@ -823,7 +821,7 @@ var AiKnowledgeComponent = class AiKnowledgeComponent {
|
|
|
823
821
|
},
|
|
824
822
|
{
|
|
825
823
|
kind: "pipe",
|
|
826
|
-
type: i2$
|
|
824
|
+
type: i2$3.TranslocoPipe,
|
|
827
825
|
name: "transloco"
|
|
828
826
|
},
|
|
829
827
|
{
|
|
@@ -850,10 +848,10 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
850
848
|
}]
|
|
851
849
|
}],
|
|
852
850
|
ctorParameters: () => [
|
|
853
|
-
{ type: i1$
|
|
851
|
+
{ type: i1$1.KnowledgeFilesService },
|
|
854
852
|
{ type: ConfirmDialogService },
|
|
855
|
-
{ type: i1$
|
|
856
|
-
{ type: i2$
|
|
853
|
+
{ type: i1$1.CustomToastService },
|
|
854
|
+
{ type: i2$3.TranslocoService },
|
|
857
855
|
{ type: i0.ChangeDetectorRef }
|
|
858
856
|
],
|
|
859
857
|
propDecorators: {
|
|
@@ -904,7 +902,7 @@ var AuthenticatorComponent = class AuthenticatorComponent extends AppBaseCompone
|
|
|
904
902
|
ngImport: i0,
|
|
905
903
|
type: AuthenticatorComponent,
|
|
906
904
|
deps: [
|
|
907
|
-
{ token: i1$
|
|
905
|
+
{ token: i1$1.AuthService },
|
|
908
906
|
{ token: i0.Injector },
|
|
909
907
|
{ token: i0.ChangeDetectorRef }
|
|
910
908
|
],
|
|
@@ -938,7 +936,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
938
936
|
}]
|
|
939
937
|
}],
|
|
940
938
|
ctorParameters: () => [
|
|
941
|
-
{ type: i1$
|
|
939
|
+
{ type: i1$1.AuthService },
|
|
942
940
|
{ type: i0.Injector },
|
|
943
941
|
{ type: i0.ChangeDetectorRef }
|
|
944
942
|
]
|
|
@@ -1929,7 +1927,7 @@ var PwBrainChatQuickComponent = class PwBrainChatQuickComponent {
|
|
|
1929
1927
|
version: "22.2.3",
|
|
1930
1928
|
ngImport: i0,
|
|
1931
1929
|
type: PwBrainChatQuickComponent,
|
|
1932
|
-
deps: [{ token: i1$
|
|
1930
|
+
deps: [{ token: i1$1.PermissionService }, {
|
|
1933
1931
|
token: BRAIN_CHAT_PRODUCT_PROMPTS,
|
|
1934
1932
|
optional: true
|
|
1935
1933
|
}],
|
|
@@ -1958,7 +1956,7 @@ var PwBrainChatQuickComponent = class PwBrainChatQuickComponent {
|
|
|
1958
1956
|
styles: [".pw-brain-chat__welcome{flex:1 1 auto;overflow-y:auto;padding:22px 0 10px;display:flex;flex-direction:column;gap:16px}.pw-brain-chat__hero{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;font-size:22px;color:#fff;background:var(--bc-accent);box-shadow:inset 0 1px #ffffff40}.pw-brain-chat__greet-h{font-size:20px;font-weight:600;letter-spacing:-.02em;margin:12px 0 4px;color:var(--bc-title)}.pw-brain-chat__greet-sub{font-size:14px;color:var(--bc-ink-2);margin:0}.pw-brain-chat__suggest-lab{font-size:11px;text-transform:uppercase;letter-spacing:.11em;color:var(--bc-ink-3);font-weight:600;margin:6px 0 -4px 2px}.pw-brain-chat__prompts{display:flex;flex-direction:column;gap:9px}.pw-brain-chat__prompt{display:flex;align-items:center;gap:11px;width:100%;text-align:left;padding:12px;border-radius:var(--bc-r-md);cursor:pointer;background:var(--bc-panel);border:1px solid var(--bc-line);color:var(--bc-ink);font:inherit;font-size:14px;font-weight:500;transition:border-color .15s var(--bc-ease),background .15s var(--bc-ease)}.pw-brain-chat__prompt:hover{border-color:var(--bc-line-strong);background:var(--bc-surface)}.pw-brain-chat__prompt:focus-visible{outline:2px solid var(--bc-accent);outline-offset:2px}.pw-brain-chat__pic{width:28px;height:28px;border-radius:7px;flex:none;display:grid;place-items:center;background:var(--bc-surface-2);border:1px solid var(--bc-line);color:var(--bc-ink-2)}.pw-brain-chat__pic i{font-size:14px}.pw-brain-chat__prompt-text{flex:1;min-width:0}.pw-brain-chat__arw{margin-left:auto;color:var(--bc-ink-3);font-size:13px}.pw-brain-chat__prompt:hover .pw-brain-chat__arw{color:var(--bc-accent)}.pw-brain-chat__quick{display:flex;gap:7px;margin-bottom:9px;overflow-x:auto;scrollbar-width:none}.pw-brain-chat__quick::-webkit-scrollbar{display:none}.pw-brain-chat__chip{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;flex:none;font:inherit;font-size:12px;font-weight:500;cursor:pointer;padding:6px 11px;border-radius:9999px;background:var(--bc-surface);border:1px solid var(--bc-line);color:var(--bc-ink-2);transition:border-color .15s var(--bc-ease),color .15s var(--bc-ease)}.pw-brain-chat__chip:hover{color:var(--bc-ink);border-color:var(--bc-line-strong)}.pw-brain-chat__chip:focus-visible{outline:2px solid var(--bc-accent);outline-offset:2px}.pw-brain-chat__chip i{font-size:11px;color:var(--bc-ink-3)}.pw-brain-chat__memory{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;padding:7px 11px;border-radius:9999px;background:var(--bc-surface);border:1px solid var(--bc-line);font-size:12px;color:var(--bc-ink-2)}.pw-brain-chat__memory i{color:var(--bc-success);font-size:12px}.pw-brain-chat__memory .lbl{text-transform:uppercase;letter-spacing:.08em;font-size:10px;font-weight:600;color:var(--bc-ink-3)}\n"],
|
|
1959
1957
|
dependencies: [{
|
|
1960
1958
|
kind: "directive",
|
|
1961
|
-
type: i1$
|
|
1959
|
+
type: i1$2.NgClass,
|
|
1962
1960
|
selector: "[ngClass]",
|
|
1963
1961
|
inputs: ["class", "ngClass"]
|
|
1964
1962
|
}],
|
|
@@ -1989,7 +1987,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1989
1987
|
styles: [".pw-brain-chat__welcome{flex:1 1 auto;overflow-y:auto;padding:22px 0 10px;display:flex;flex-direction:column;gap:16px}.pw-brain-chat__hero{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;font-size:22px;color:#fff;background:var(--bc-accent);box-shadow:inset 0 1px #ffffff40}.pw-brain-chat__greet-h{font-size:20px;font-weight:600;letter-spacing:-.02em;margin:12px 0 4px;color:var(--bc-title)}.pw-brain-chat__greet-sub{font-size:14px;color:var(--bc-ink-2);margin:0}.pw-brain-chat__suggest-lab{font-size:11px;text-transform:uppercase;letter-spacing:.11em;color:var(--bc-ink-3);font-weight:600;margin:6px 0 -4px 2px}.pw-brain-chat__prompts{display:flex;flex-direction:column;gap:9px}.pw-brain-chat__prompt{display:flex;align-items:center;gap:11px;width:100%;text-align:left;padding:12px;border-radius:var(--bc-r-md);cursor:pointer;background:var(--bc-panel);border:1px solid var(--bc-line);color:var(--bc-ink);font:inherit;font-size:14px;font-weight:500;transition:border-color .15s var(--bc-ease),background .15s var(--bc-ease)}.pw-brain-chat__prompt:hover{border-color:var(--bc-line-strong);background:var(--bc-surface)}.pw-brain-chat__prompt:focus-visible{outline:2px solid var(--bc-accent);outline-offset:2px}.pw-brain-chat__pic{width:28px;height:28px;border-radius:7px;flex:none;display:grid;place-items:center;background:var(--bc-surface-2);border:1px solid var(--bc-line);color:var(--bc-ink-2)}.pw-brain-chat__pic i{font-size:14px}.pw-brain-chat__prompt-text{flex:1;min-width:0}.pw-brain-chat__arw{margin-left:auto;color:var(--bc-ink-3);font-size:13px}.pw-brain-chat__prompt:hover .pw-brain-chat__arw{color:var(--bc-accent)}.pw-brain-chat__quick{display:flex;gap:7px;margin-bottom:9px;overflow-x:auto;scrollbar-width:none}.pw-brain-chat__quick::-webkit-scrollbar{display:none}.pw-brain-chat__chip{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;flex:none;font:inherit;font-size:12px;font-weight:500;cursor:pointer;padding:6px 11px;border-radius:9999px;background:var(--bc-surface);border:1px solid var(--bc-line);color:var(--bc-ink-2);transition:border-color .15s var(--bc-ease),color .15s var(--bc-ease)}.pw-brain-chat__chip:hover{color:var(--bc-ink);border-color:var(--bc-line-strong)}.pw-brain-chat__chip:focus-visible{outline:2px solid var(--bc-accent);outline-offset:2px}.pw-brain-chat__chip i{font-size:11px;color:var(--bc-ink-3)}.pw-brain-chat__memory{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;padding:7px 11px;border-radius:9999px;background:var(--bc-surface);border:1px solid var(--bc-line);font-size:12px;color:var(--bc-ink-2)}.pw-brain-chat__memory i{color:var(--bc-success);font-size:12px}.pw-brain-chat__memory .lbl{text-transform:uppercase;letter-spacing:.08em;font-size:10px;font-weight:600;color:var(--bc-ink-3)}\n"]
|
|
1990
1988
|
}]
|
|
1991
1989
|
}],
|
|
1992
|
-
ctorParameters: () => [{ type: i1$
|
|
1990
|
+
ctorParameters: () => [{ type: i1$1.PermissionService }, {
|
|
1993
1991
|
type: void 0,
|
|
1994
1992
|
decorators: [{ type: Optional }, {
|
|
1995
1993
|
type: Inject,
|
|
@@ -2017,7 +2015,7 @@ var PwBrainChatWelcomeComponent = class PwBrainChatWelcomeComponent {
|
|
|
2017
2015
|
version: "22.2.3",
|
|
2018
2016
|
ngImport: i0,
|
|
2019
2017
|
type: PwBrainChatWelcomeComponent,
|
|
2020
|
-
deps: [{ token: i1$
|
|
2018
|
+
deps: [{ token: i1$1.PermissionService }, {
|
|
2021
2019
|
token: BRAIN_CHAT_PRODUCT_PROMPTS,
|
|
2022
2020
|
optional: true
|
|
2023
2021
|
}],
|
|
@@ -2041,7 +2039,7 @@ var PwBrainChatWelcomeComponent = class PwBrainChatWelcomeComponent {
|
|
|
2041
2039
|
styles: [".pw-brain-chat__welcome{flex:1 1 auto;overflow-y:auto;padding:22px 0 10px;display:flex;flex-direction:column;gap:16px}.pw-brain-chat__hero{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;font-size:22px;color:#fff;background:var(--bc-accent);box-shadow:inset 0 1px #ffffff40}.pw-brain-chat__greet-h{font-size:20px;font-weight:600;letter-spacing:-.02em;margin:12px 0 4px;color:var(--bc-title)}.pw-brain-chat__greet-sub{font-size:14px;color:var(--bc-ink-2);margin:0}.pw-brain-chat__suggest-lab{font-size:11px;text-transform:uppercase;letter-spacing:.11em;color:var(--bc-ink-3);font-weight:600;margin:6px 0 -4px 2px}.pw-brain-chat__prompts{display:flex;flex-direction:column;gap:9px}.pw-brain-chat__prompt{display:flex;align-items:center;gap:11px;width:100%;text-align:left;padding:12px;border-radius:var(--bc-r-md);cursor:pointer;background:var(--bc-panel);border:1px solid var(--bc-line);color:var(--bc-ink);font:inherit;font-size:14px;font-weight:500;transition:border-color .15s var(--bc-ease),background .15s var(--bc-ease)}.pw-brain-chat__prompt:hover{border-color:var(--bc-line-strong);background:var(--bc-surface)}.pw-brain-chat__prompt:focus-visible{outline:2px solid var(--bc-accent);outline-offset:2px}.pw-brain-chat__pic{width:28px;height:28px;border-radius:7px;flex:none;display:grid;place-items:center;background:var(--bc-surface-2);border:1px solid var(--bc-line);color:var(--bc-ink-2)}.pw-brain-chat__pic i{font-size:14px}.pw-brain-chat__prompt-text{flex:1;min-width:0}.pw-brain-chat__arw{margin-left:auto;color:var(--bc-ink-3);font-size:13px}.pw-brain-chat__prompt:hover .pw-brain-chat__arw{color:var(--bc-accent)}.pw-brain-chat__quick{display:flex;gap:7px;margin-bottom:9px;overflow-x:auto;scrollbar-width:none}.pw-brain-chat__quick::-webkit-scrollbar{display:none}.pw-brain-chat__chip{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;flex:none;font:inherit;font-size:12px;font-weight:500;cursor:pointer;padding:6px 11px;border-radius:9999px;background:var(--bc-surface);border:1px solid var(--bc-line);color:var(--bc-ink-2);transition:border-color .15s var(--bc-ease),color .15s var(--bc-ease)}.pw-brain-chat__chip:hover{color:var(--bc-ink);border-color:var(--bc-line-strong)}.pw-brain-chat__chip:focus-visible{outline:2px solid var(--bc-accent);outline-offset:2px}.pw-brain-chat__chip i{font-size:11px;color:var(--bc-ink-3)}.pw-brain-chat__memory{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;padding:7px 11px;border-radius:9999px;background:var(--bc-surface);border:1px solid var(--bc-line);font-size:12px;color:var(--bc-ink-2)}.pw-brain-chat__memory i{color:var(--bc-success);font-size:12px}.pw-brain-chat__memory .lbl{text-transform:uppercase;letter-spacing:.08em;font-size:10px;font-weight:600;color:var(--bc-ink-3)}\n"],
|
|
2042
2040
|
dependencies: [{
|
|
2043
2041
|
kind: "directive",
|
|
2044
|
-
type: i1$
|
|
2042
|
+
type: i1$2.NgClass,
|
|
2045
2043
|
selector: "[ngClass]",
|
|
2046
2044
|
inputs: ["class", "ngClass"]
|
|
2047
2045
|
}],
|
|
@@ -2064,7 +2062,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2064
2062
|
styles: [".pw-brain-chat__welcome{flex:1 1 auto;overflow-y:auto;padding:22px 0 10px;display:flex;flex-direction:column;gap:16px}.pw-brain-chat__hero{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;font-size:22px;color:#fff;background:var(--bc-accent);box-shadow:inset 0 1px #ffffff40}.pw-brain-chat__greet-h{font-size:20px;font-weight:600;letter-spacing:-.02em;margin:12px 0 4px;color:var(--bc-title)}.pw-brain-chat__greet-sub{font-size:14px;color:var(--bc-ink-2);margin:0}.pw-brain-chat__suggest-lab{font-size:11px;text-transform:uppercase;letter-spacing:.11em;color:var(--bc-ink-3);font-weight:600;margin:6px 0 -4px 2px}.pw-brain-chat__prompts{display:flex;flex-direction:column;gap:9px}.pw-brain-chat__prompt{display:flex;align-items:center;gap:11px;width:100%;text-align:left;padding:12px;border-radius:var(--bc-r-md);cursor:pointer;background:var(--bc-panel);border:1px solid var(--bc-line);color:var(--bc-ink);font:inherit;font-size:14px;font-weight:500;transition:border-color .15s var(--bc-ease),background .15s var(--bc-ease)}.pw-brain-chat__prompt:hover{border-color:var(--bc-line-strong);background:var(--bc-surface)}.pw-brain-chat__prompt:focus-visible{outline:2px solid var(--bc-accent);outline-offset:2px}.pw-brain-chat__pic{width:28px;height:28px;border-radius:7px;flex:none;display:grid;place-items:center;background:var(--bc-surface-2);border:1px solid var(--bc-line);color:var(--bc-ink-2)}.pw-brain-chat__pic i{font-size:14px}.pw-brain-chat__prompt-text{flex:1;min-width:0}.pw-brain-chat__arw{margin-left:auto;color:var(--bc-ink-3);font-size:13px}.pw-brain-chat__prompt:hover .pw-brain-chat__arw{color:var(--bc-accent)}.pw-brain-chat__quick{display:flex;gap:7px;margin-bottom:9px;overflow-x:auto;scrollbar-width:none}.pw-brain-chat__quick::-webkit-scrollbar{display:none}.pw-brain-chat__chip{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;flex:none;font:inherit;font-size:12px;font-weight:500;cursor:pointer;padding:6px 11px;border-radius:9999px;background:var(--bc-surface);border:1px solid var(--bc-line);color:var(--bc-ink-2);transition:border-color .15s var(--bc-ease),color .15s var(--bc-ease)}.pw-brain-chat__chip:hover{color:var(--bc-ink);border-color:var(--bc-line-strong)}.pw-brain-chat__chip:focus-visible{outline:2px solid var(--bc-accent);outline-offset:2px}.pw-brain-chat__chip i{font-size:11px;color:var(--bc-ink-3)}.pw-brain-chat__memory{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;padding:7px 11px;border-radius:9999px;background:var(--bc-surface);border:1px solid var(--bc-line);font-size:12px;color:var(--bc-ink-2)}.pw-brain-chat__memory i{color:var(--bc-success);font-size:12px}.pw-brain-chat__memory .lbl{text-transform:uppercase;letter-spacing:.08em;font-size:10px;font-weight:600;color:var(--bc-ink-3)}\n"]
|
|
2065
2063
|
}]
|
|
2066
2064
|
}],
|
|
2067
|
-
ctorParameters: () => [{ type: i1$
|
|
2065
|
+
ctorParameters: () => [{ type: i1$1.PermissionService }, {
|
|
2068
2066
|
type: void 0,
|
|
2069
2067
|
decorators: [{ type: Optional }, {
|
|
2070
2068
|
type: Inject,
|
|
@@ -2545,7 +2543,7 @@ var PwBrainChatVoiceOverlayComponent = class PwBrainChatVoiceOverlayComponent {
|
|
|
2545
2543
|
styles: [".pw-vo{position:absolute;inset:0;z-index:20;display:grid;place-items:center;padding:18px;background:color-mix(in srgb,#12151a 40%,transparent);animation:pw-vo-in .2s ease}.pw-vo__panel{width:100%;max-width:340px;background:var(--bc-panel, #fff);border:1px solid var(--bc-line, #e2e5ea);border-radius:18px;box-shadow:0 20px 50px -18px #1018286b;padding:20px 18px 16px;text-align:center}.pw-vo__head{display:flex;justify-content:center;margin-bottom:2px}.pw-vo__kicker{display:inline-flex;align-items:center;gap:7px;font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--bc-ink-3, #7c8696);font-weight:600}.pw-vo__live{width:7px;height:7px;border-radius:50%;background:var(--bc-accent, #1769e1);animation:pw-vo-pulse 1.8s ease-out infinite}.pw-vo__live--err{background:var(--bc-error, #c0392b)}.pw-vo__sonar{position:relative;width:250px;height:250px;margin:8px auto 2px}.pw-vo__dial{position:absolute;inset:0;width:250px;height:250px}.pw-vo__core{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:58px;height:58px;border-radius:50%;background:var(--bc-panel, #fff);border:1px solid var(--bc-line, #e2e5ea);display:grid;place-items:center;box-shadow:0 6px 18px -8px #10182866}.pw-vo__core i{font-size:21px;color:var(--bc-accent, #1769e1)}.pw-vo__core-i--err{color:var(--bc-error, #c0392b)!important}.pw-vo__label{font-size:19px;font-weight:600;letter-spacing:-.01em;line-height:1.25;margin-top:4px;min-height:24px;color:var(--bc-ink, #1a1d21)}.pw-vo__label--err{color:var(--bc-error, #c0392b)}.pw-vo__transcript{font-size:13px;line-height:1.5;color:var(--bc-ink-2, #5a6473);margin:8px auto 0;max-width:300px}.pw-vo__reply{font-size:13px;line-height:1.5;color:var(--bc-ink-2, #5a6473);margin:8px auto 0;max-width:300px;max-height:76px;overflow-y:auto}.pw-vo__actions{margin-top:16px;display:flex;flex-direction:column;align-items:center;gap:8px}.pw-vo__end{display:inline-flex;align-items:center;gap:9px;height:42px;padding:0 24px;border-radius:999px;border:0;cursor:pointer;font-size:14px;font-weight:600;color:var(--bc-panel, #fff);background:var(--bc-ink, #1a1d21);transition:filter .18s ease,transform .12s ease}.pw-vo__end i{font-size:13px}.pw-vo__end:hover{filter:brightness(1.12)}.pw-vo__end:active{transform:scale(.97)}.pw-vo__end--err{background:var(--bc-error, #c0392b);color:#fff}.pw-vo__hint{font-size:11.5px;color:var(--bc-ink-3, #7c8696)}@keyframes pw-vo-in{0%{opacity:0}}@keyframes pw-vo-pulse{0%{box-shadow:0 0 color-mix(in srgb,var(--bc-accent, #1769e1) 55%,transparent)}70%,to{box-shadow:0 0 0 6px transparent}}@media(prefers-reduced-motion:reduce){.pw-vo,.pw-vo__live{animation:none!important}}\n", ".pw-vo__steps{display:flex;align-items:center;justify-content:center;margin:14px auto 4px}.pw-vo__step{display:flex;align-items:center}.pw-vo__dot{position:relative;width:9px;height:9px;border-radius:50%;background:var(--bc-line-strong, #cfd4dc);transition:background .3s ease,transform .3s ease}.pw-vo__seg{width:20px;height:2px;background:var(--bc-line-strong, #cfd4dc);transition:background .3s ease}.pw-vo__seg.is-done,.pw-vo__step.is-done .pw-vo__dot{background:var(--bc-accent, #1769e1)}.pw-vo__step.is-active .pw-vo__dot{background:var(--bc-accent, #1769e1);transform:scale(1.35)}.pw-vo__step.is-active .pw-vo__dot:after{content:\"\";position:absolute;inset:-5px;border-radius:50%;border:1.5px solid var(--bc-accent, #1769e1);opacity:.5;animation:pw-vo-step 1.4s ease-out infinite}.pw-vo__step-cap{font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--bc-ink-3, #7c8696);font-weight:600;margin-top:2px}@keyframes pw-vo-step{0%{transform:scale(.55);opacity:.7}to{transform:scale(1.15);opacity:0}}@media(prefers-reduced-motion:reduce){.pw-vo__step.is-active .pw-vo__dot:after{animation:none!important}}\n"],
|
|
2546
2544
|
dependencies: [{
|
|
2547
2545
|
kind: "directive",
|
|
2548
|
-
type: i1$
|
|
2546
|
+
type: i1$2.NgClass,
|
|
2549
2547
|
selector: "[ngClass]",
|
|
2550
2548
|
inputs: ["class", "ngClass"]
|
|
2551
2549
|
}]
|
|
@@ -2768,7 +2766,7 @@ var SafeMarkdownPipe = class SafeMarkdownPipe {
|
|
|
2768
2766
|
version: "22.2.3",
|
|
2769
2767
|
ngImport: i0,
|
|
2770
2768
|
type: SafeMarkdownPipe,
|
|
2771
|
-
deps: [{ token: i1$
|
|
2769
|
+
deps: [{ token: i1$1.NavigationIndexService }, { token: i2$2.AppConfigService }],
|
|
2772
2770
|
target: i0.ɵɵFactoryTarget.Pipe
|
|
2773
2771
|
});
|
|
2774
2772
|
}
|
|
@@ -2792,7 +2790,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2792
2790
|
type: Pipe,
|
|
2793
2791
|
args: [{ name: "safeMarkdown" }]
|
|
2794
2792
|
}],
|
|
2795
|
-
ctorParameters: () => [{ type: i1$
|
|
2793
|
+
ctorParameters: () => [{ type: i1$1.NavigationIndexService }, { type: i2$2.AppConfigService }]
|
|
2796
2794
|
});
|
|
2797
2795
|
var PwBrainChatComponent = class PwBrainChatComponent {
|
|
2798
2796
|
constructor(orchestrator, localStorage, router, cdr, store, dynamicPageCtx, appConfigService, brainSocket, brainVoice, voiceChatService, directUpload, uploadApis) {
|
|
@@ -3036,30 +3034,30 @@ var PwBrainChatComponent = class PwBrainChatComponent {
|
|
|
3036
3034
|
ngImport: i0,
|
|
3037
3035
|
type: PwBrainChatComponent,
|
|
3038
3036
|
deps: [
|
|
3039
|
-
{ token: i1$
|
|
3040
|
-
{ token: i1$
|
|
3037
|
+
{ token: i1$1.MCPOrchestratorService },
|
|
3038
|
+
{ token: i1$1.LocalStorage },
|
|
3041
3039
|
{ token: i9$1.Router },
|
|
3042
3040
|
{ token: i0.ChangeDetectorRef },
|
|
3043
3041
|
{ token: i3$1.Store },
|
|
3044
3042
|
{ token: DynamicPageContextService },
|
|
3045
3043
|
{
|
|
3046
|
-
token: i2$
|
|
3044
|
+
token: i2$2.AppConfigService,
|
|
3047
3045
|
optional: true
|
|
3048
3046
|
},
|
|
3049
3047
|
{
|
|
3050
|
-
token: i1$
|
|
3048
|
+
token: i1$1.BrainSocketService,
|
|
3051
3049
|
optional: true
|
|
3052
3050
|
},
|
|
3053
3051
|
{
|
|
3054
|
-
token: i1$
|
|
3052
|
+
token: i1$1.BrainVoiceService,
|
|
3055
3053
|
optional: true
|
|
3056
3054
|
},
|
|
3057
3055
|
{
|
|
3058
|
-
token: i1$
|
|
3056
|
+
token: i1$1.VoiceChatService,
|
|
3059
3057
|
optional: true
|
|
3060
3058
|
},
|
|
3061
3059
|
{
|
|
3062
|
-
token: i1$
|
|
3060
|
+
token: i1$1.DirectUploadService,
|
|
3063
3061
|
optional: true
|
|
3064
3062
|
},
|
|
3065
3063
|
{
|
|
@@ -3119,7 +3117,7 @@ var PwBrainChatComponent = class PwBrainChatComponent {
|
|
|
3119
3117
|
},
|
|
3120
3118
|
{
|
|
3121
3119
|
kind: "directive",
|
|
3122
|
-
type: i1$
|
|
3120
|
+
type: i1$3.NgbTooltip,
|
|
3123
3121
|
selector: "[ngbTooltip]",
|
|
3124
3122
|
inputs: [
|
|
3125
3123
|
"animation",
|
|
@@ -3141,7 +3139,7 @@ var PwBrainChatComponent = class PwBrainChatComponent {
|
|
|
3141
3139
|
},
|
|
3142
3140
|
{
|
|
3143
3141
|
kind: "directive",
|
|
3144
|
-
type: i1$
|
|
3142
|
+
type: i1$2.NgClass,
|
|
3145
3143
|
selector: "[ngClass]",
|
|
3146
3144
|
inputs: ["class", "ngClass"]
|
|
3147
3145
|
},
|
|
@@ -3179,7 +3177,7 @@ var PwBrainChatComponent = class PwBrainChatComponent {
|
|
|
3179
3177
|
},
|
|
3180
3178
|
{
|
|
3181
3179
|
kind: "pipe",
|
|
3182
|
-
type: i1$
|
|
3180
|
+
type: i1$2.DatePipe,
|
|
3183
3181
|
name: "date"
|
|
3184
3182
|
},
|
|
3185
3183
|
{
|
|
@@ -3215,30 +3213,30 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3215
3213
|
}]
|
|
3216
3214
|
}],
|
|
3217
3215
|
ctorParameters: () => [
|
|
3218
|
-
{ type: i1$
|
|
3219
|
-
{ type: i1$
|
|
3216
|
+
{ type: i1$1.MCPOrchestratorService },
|
|
3217
|
+
{ type: i1$1.LocalStorage },
|
|
3220
3218
|
{ type: i9$1.Router },
|
|
3221
3219
|
{ type: i0.ChangeDetectorRef },
|
|
3222
3220
|
{ type: i3$1.Store },
|
|
3223
3221
|
{ type: DynamicPageContextService },
|
|
3224
3222
|
{
|
|
3225
|
-
type: i2$
|
|
3223
|
+
type: i2$2.AppConfigService,
|
|
3226
3224
|
decorators: [{ type: Optional }]
|
|
3227
3225
|
},
|
|
3228
3226
|
{
|
|
3229
|
-
type: i1$
|
|
3227
|
+
type: i1$1.BrainSocketService,
|
|
3230
3228
|
decorators: [{ type: Optional }]
|
|
3231
3229
|
},
|
|
3232
3230
|
{
|
|
3233
|
-
type: i1$
|
|
3231
|
+
type: i1$1.BrainVoiceService,
|
|
3234
3232
|
decorators: [{ type: Optional }]
|
|
3235
3233
|
},
|
|
3236
3234
|
{
|
|
3237
|
-
type: i1$
|
|
3235
|
+
type: i1$1.VoiceChatService,
|
|
3238
3236
|
decorators: [{ type: Optional }]
|
|
3239
3237
|
},
|
|
3240
3238
|
{
|
|
3241
|
-
type: i1$
|
|
3239
|
+
type: i1$1.DirectUploadService,
|
|
3242
3240
|
decorators: [{ type: Optional }]
|
|
3243
3241
|
},
|
|
3244
3242
|
{
|
|
@@ -3360,11 +3358,11 @@ var ClearBitIconComponent = class ClearBitIconComponent {
|
|
|
3360
3358
|
styles: [".company-monogram{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;font-family:Roboto,sans-serif;font-weight:600;line-height:1;letter-spacing:.2px;text-transform:uppercase;-webkit-user-select:none;user-select:none;vertical-align:middle;overflow:hidden}\n"],
|
|
3361
3359
|
dependencies: [{
|
|
3362
3360
|
kind: "directive",
|
|
3363
|
-
type: i1
|
|
3361
|
+
type: i1.LazyImgDirective,
|
|
3364
3362
|
selector: "img"
|
|
3365
3363
|
}, {
|
|
3366
3364
|
kind: "directive",
|
|
3367
|
-
type: i1$
|
|
3365
|
+
type: i1$2.NgClass,
|
|
3368
3366
|
selector: "[ngClass]",
|
|
3369
3367
|
inputs: ["class", "ngClass"]
|
|
3370
3368
|
}]
|
|
@@ -3684,7 +3682,7 @@ var CollapsibleSidebarComponent = class CollapsibleSidebarComponent {
|
|
|
3684
3682
|
{ token: i0.ChangeDetectorRef },
|
|
3685
3683
|
{ token: DOCUMENT },
|
|
3686
3684
|
{
|
|
3687
|
-
token: i2$
|
|
3685
|
+
token: i2$2.AppConfigService,
|
|
3688
3686
|
optional: true
|
|
3689
3687
|
}
|
|
3690
3688
|
],
|
|
@@ -3720,7 +3718,7 @@ var CollapsibleSidebarComponent = class CollapsibleSidebarComponent {
|
|
|
3720
3718
|
],
|
|
3721
3719
|
dependencies: [{
|
|
3722
3720
|
kind: "pipe",
|
|
3723
|
-
type: i2$
|
|
3721
|
+
type: i2$3.TranslocoPipe,
|
|
3724
3722
|
name: "transloco"
|
|
3725
3723
|
}],
|
|
3726
3724
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
@@ -3759,7 +3757,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3759
3757
|
}]
|
|
3760
3758
|
},
|
|
3761
3759
|
{
|
|
3762
|
-
type: i2$
|
|
3760
|
+
type: i2$2.AppConfigService,
|
|
3763
3761
|
decorators: [{ type: Optional }]
|
|
3764
3762
|
}
|
|
3765
3763
|
],
|
|
@@ -3988,14 +3986,30 @@ const scoreEntry = (title, section, query) => {
|
|
|
3988
3986
|
if (normalise(section).includes(needle)) return 1;
|
|
3989
3987
|
return -1;
|
|
3990
3988
|
};
|
|
3991
|
-
const
|
|
3989
|
+
const translatedText = (entry) => ({
|
|
3990
|
+
...entry.titleKey ? { labelKey: entry.titleKey } : {},
|
|
3991
|
+
...entry.sectionKey ? { detailKey: entry.sectionKey } : {}
|
|
3992
|
+
});
|
|
3993
|
+
const entryScore = (entry, query, translate) => {
|
|
3994
|
+
const english = scoreEntry(entry.title, entry.section, query);
|
|
3995
|
+
if (!translate || !entry.titleKey && !entry.sectionKey) return english;
|
|
3996
|
+
const shown = (key, fallback) => {
|
|
3997
|
+
const text = key ? translate(key) : fallback;
|
|
3998
|
+
return text === key ? fallback : text;
|
|
3999
|
+
};
|
|
4000
|
+
const title = shown(entry.titleKey, entry.title);
|
|
4001
|
+
const section = shown(entry.sectionKey, entry.section);
|
|
4002
|
+
return Math.max(english, scoreEntry(title, section, query));
|
|
4003
|
+
};
|
|
4004
|
+
const pageItems = (entries, query, translate) => entries.map((entry) => ({
|
|
3992
4005
|
entry,
|
|
3993
|
-
score:
|
|
4006
|
+
score: entryScore(entry, query, translate)
|
|
3994
4007
|
})).filter((scored) => scored.score >= 0).sort((a, b) => b.score - a.score || a.entry.title.localeCompare(b.entry.title)).slice(0, MAX_PER_GROUP).map(({ entry }) => ({
|
|
3995
4008
|
id: `page:${entry.path}`,
|
|
3996
4009
|
kind: "page",
|
|
3997
4010
|
label: entry.title,
|
|
3998
4011
|
detail: entry.section,
|
|
4012
|
+
...translatedText(entry),
|
|
3999
4013
|
icon: entry.icon || "ft-file",
|
|
4000
4014
|
path: entry.path,
|
|
4001
4015
|
entry
|
|
@@ -4014,6 +4028,7 @@ const recentItems = (entries) => (entries ?? []).slice(0, MAX_PER_GROUP).map((en
|
|
|
4014
4028
|
kind: "page",
|
|
4015
4029
|
label: entry.title,
|
|
4016
4030
|
detail: entry.section,
|
|
4031
|
+
...translatedText(entry),
|
|
4017
4032
|
icon: entry.icon || "fas fa-clock-rotate-left",
|
|
4018
4033
|
path: entry.path,
|
|
4019
4034
|
entry
|
|
@@ -4119,7 +4134,7 @@ const composeGroups = (sources) => {
|
|
|
4119
4134
|
const typed = sources.query.trim();
|
|
4120
4135
|
const entries = sources.navIndex.entries();
|
|
4121
4136
|
const recents = typed ? [] : recentItems(sources.recents.resolve(entries, sources.currentUrl));
|
|
4122
|
-
const pages = typed || !recents.length ? pageItems(entries, sources.query) : [];
|
|
4137
|
+
const pages = typed || !recents.length ? pageItems(entries, sources.query, sources.translate) : [];
|
|
4123
4138
|
return buildGroups({
|
|
4124
4139
|
recents,
|
|
4125
4140
|
pages,
|
|
@@ -4314,19 +4329,19 @@ var CommandPaletteComponent = class CommandPaletteComponent {
|
|
|
4314
4329
|
type: CommandPaletteComponent,
|
|
4315
4330
|
deps: [
|
|
4316
4331
|
{ token: CommandPaletteService },
|
|
4317
|
-
{ token: i1$
|
|
4318
|
-
{ token: i1$
|
|
4319
|
-
{ token: i1$
|
|
4332
|
+
{ token: i1$1.NavigationIndexService },
|
|
4333
|
+
{ token: i1$1.DashboardService },
|
|
4334
|
+
{ token: i1$1.RecentPagesService },
|
|
4320
4335
|
{ token: CollapsibleSidebarService },
|
|
4321
4336
|
{ token: i9$1.Router },
|
|
4322
|
-
{ token: i2$
|
|
4337
|
+
{ token: i2$3.TranslocoService },
|
|
4323
4338
|
{ token: i0.ChangeDetectorRef },
|
|
4324
4339
|
{
|
|
4325
|
-
token: i2$
|
|
4340
|
+
token: i2$2.AppConfigService,
|
|
4326
4341
|
optional: true
|
|
4327
4342
|
},
|
|
4328
4343
|
{
|
|
4329
|
-
token: i1$
|
|
4344
|
+
token: i1$1.CustomToastService,
|
|
4330
4345
|
optional: true
|
|
4331
4346
|
}
|
|
4332
4347
|
],
|
|
@@ -4353,16 +4368,16 @@ var CommandPaletteComponent = class CommandPaletteComponent {
|
|
|
4353
4368
|
descendants: true
|
|
4354
4369
|
}],
|
|
4355
4370
|
ngImport: i0,
|
|
4356
|
-
template: "<!-- Navbar trigger — keeps the familiar search affordance, states the shortcut. -->\n<button type=\"button\"\n class=\"pw-palette-trigger\"\n (click)=\"palette.open()\"\n [attr.aria-label]=\"'CommandPalette.Trigger.Label' | transloco\">\n <i class=\"fas fa-magnifying-glass pw-palette-trigger-icon\" aria-hidden=\"true\"></i>\n <span class=\"pw-palette-trigger-text\">{{ 'CommandPalette.Trigger.Text' | transloco }}</span>\n <kbd class=\"pw-palette-kbd pw-palette-trigger-kbd\">{{ shortcutHint }}</kbd>\n</button>\n\n<!--\n Native <dialog> opened with showModal(): the platform supplies the modal\n semantics this used to hand-roll — the implicit dialog role and modal flag, a real\n focus trap, inert background content, Escape-to-close, and a ::backdrop we\n style instead of painting our own overlay <div>.\n\n The element is always in the DOM (a closed <dialog> is display:none) so the\n component holds one stable handle to call showModal()/close() on; only the\n contents are gated on isOpen so the results list costs nothing while closed.\n-->\n<dialog #paletteDialog\n class=\"pw-palette\"\n [attr.aria-label]=\"'CommandPalette.Aria.Dialog' | transloco\"\n (close)=\"onDialogClose()\">\n @if (isOpen) {\n <div class=\"pw-palette-search\">\n <i class=\"fas fa-magnifying-glass pw-palette-search-icon\" aria-hidden=\"true\"></i>\n <input #queryInput\n type=\"text\"\n class=\"pw-palette-field\"\n autocomplete=\"off\"\n [value]=\"query\"\n (input)=\"onQueryInput($any($event.target).value)\"\n (keydown)=\"onKeydown($event)\"\n [attr.placeholder]=\"'CommandPalette.Placeholder' | transloco\"\n [attr.aria-label]=\"'CommandPalette.Placeholder' | transloco\" />\n <kbd class=\"pw-palette-kbd\">esc</kbd>\n </div>\n\n <div class=\"pw-palette-results\">\n @for (group of groups; track group.labelKey) {\n <div class=\"pw-palette-group\">\n <p class=\"pw-palette-group-label\">{{ group.labelKey | transloco }}</p>\n @for (item of group.items; track item.id) {\n <button type=\"button\"\n class=\"pw-palette-row\"\n [class.is-active]=\"isActive(item)\"\n (click)=\"activate(item)\">\n <i class=\"pw-palette-row-icon\" [ngClass]=\"item.icon\" aria-hidden=\"true\"></i>\n <span class=\"pw-palette-row-label\">\n @if (item.kind === 'ask-ai') {\n {{ 'CommandPalette.Ask.Label' | transloco: { company: brandName } }}\n @if (item.label) {\n <span class=\"pw-palette-row-prefix\">— {{ item.label }}</span>\n }\n } @else if (item.labelKey) {\n <!-- Action rows are chrome, so they translate (C17)
|
|
4371
|
+
template: "<!-- Navbar trigger — keeps the familiar search affordance, states the shortcut. -->\n<button type=\"button\"\n class=\"pw-palette-trigger\"\n (click)=\"palette.open()\"\n [attr.aria-label]=\"'CommandPalette.Trigger.Label' | transloco\">\n <i class=\"fas fa-magnifying-glass pw-palette-trigger-icon\" aria-hidden=\"true\"></i>\n <span class=\"pw-palette-trigger-text\">{{ 'CommandPalette.Trigger.Text' | transloco }}</span>\n <kbd class=\"pw-palette-kbd pw-palette-trigger-kbd\">{{ shortcutHint }}</kbd>\n</button>\n\n<!--\n Native <dialog> opened with showModal(): the platform supplies the modal\n semantics this used to hand-roll — the implicit dialog role and modal flag, a real\n focus trap, inert background content, Escape-to-close, and a ::backdrop we\n style instead of painting our own overlay <div>.\n\n The element is always in the DOM (a closed <dialog> is display:none) so the\n component holds one stable handle to call showModal()/close() on; only the\n contents are gated on isOpen so the results list costs nothing while closed.\n-->\n<dialog #paletteDialog\n class=\"pw-palette\"\n [attr.aria-label]=\"'CommandPalette.Aria.Dialog' | transloco\"\n (close)=\"onDialogClose()\">\n @if (isOpen) {\n <div class=\"pw-palette-search\">\n <i class=\"fas fa-magnifying-glass pw-palette-search-icon\" aria-hidden=\"true\"></i>\n <input #queryInput\n type=\"text\"\n class=\"pw-palette-field\"\n autocomplete=\"off\"\n [value]=\"query\"\n (input)=\"onQueryInput($any($event.target).value)\"\n (keydown)=\"onKeydown($event)\"\n [attr.placeholder]=\"'CommandPalette.Placeholder' | transloco\"\n [attr.aria-label]=\"'CommandPalette.Placeholder' | transloco\" />\n <kbd class=\"pw-palette-kbd\">esc</kbd>\n </div>\n\n <div class=\"pw-palette-results\">\n @for (group of groups; track group.labelKey) {\n <div class=\"pw-palette-group\">\n <p class=\"pw-palette-group-label\">{{ group.labelKey | transloco }}</p>\n @for (item of group.items; track item.id) {\n <button type=\"button\"\n class=\"pw-palette-row\"\n [class.is-active]=\"isActive(item)\"\n (click)=\"activate(item)\">\n <i class=\"pw-palette-row-icon\" [ngClass]=\"item.icon\" aria-hidden=\"true\"></i>\n <span class=\"pw-palette-row-label\">\n @if (item.kind === 'ask-ai') {\n {{ 'CommandPalette.Ask.Label' | transloco: { company: brandName } }}\n @if (item.label) {\n <span class=\"pw-palette-row-prefix\">— {{ item.label }}</span>\n }\n } @else if (item.labelKey) {\n <!-- Action rows are chrome, so they translate (C17), as do page\n rows that carry a key; person rows render the data's own text. -->\n {{ item.labelKey | transloco }}\n } @else {\n {{ item.label }}\n }\n </span>\n @if (item.detail) {\n <span class=\"pw-palette-row-detail\">{{ item.detailKey ? (item.detailKey | transloco) : item.detail }}</span>\n }\n </button>\n }\n </div>\n } @empty {\n <div class=\"pw-palette-empty\">\n <p class=\"pw-palette-empty-title\">{{ 'CommandPalette.Empty.Title' | transloco }}</p>\n <p class=\"pw-palette-empty-hint\">{{ 'CommandPalette.Empty.Hint' | transloco }}</p>\n </div>\n }\n </div>\n\n <div class=\"pw-palette-footer\">\n <span class=\"pw-palette-hint\"><kbd class=\"pw-palette-kbd\">↑↓</kbd>{{ 'CommandPalette.Hint.Navigate' | transloco }}</span>\n <span class=\"pw-palette-hint\"><kbd class=\"pw-palette-kbd\">↵</kbd>{{ 'CommandPalette.Hint.Open' | transloco }}</span>\n <span class=\"pw-palette-hint\"><kbd class=\"pw-palette-kbd\">esc</kbd>{{ 'CommandPalette.Hint.Close' | transloco }}</span>\n </div>\n }\n</dialog>\n",
|
|
4357
4372
|
styles: [":host{display:inline-flex;align-items:center}.pw-palette-trigger{display:flex;align-items:center;gap:8px;width:220px;max-width:100%;height:34px;padding:0 8px 0 12px;border:1px solid #e2e5ea;border-radius:8px;background:#fff;color:#a8afbc;font-size:13px;text-align:left;transition:border-color .15s ease}.pw-palette-trigger:hover,.pw-palette-trigger:focus-visible{border-color:var(--first, #0d6efd);color:#334155}.pw-palette-trigger-icon{font-size:12px}.pw-palette-trigger-text{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pw-palette-kbd{padding:1px 6px;border:1px solid #e2e5ea;border-radius:4px;background:#f5f7fa;color:#a8afbc;font-size:11px;line-height:1.5;white-space:nowrap}.pw-palette{position:fixed;top:12vh;right:auto;bottom:auto;left:50%;z-index:1051;width:min(640px,100vw - 32px);max-width:calc(100vw - 32px);max-height:70vh;margin:0;padding:0;transform:translate(-50%);border:1px solid #e2e5ea;border-radius:12px;background:#fff;box-shadow:0 16px 48px #1018282e;overflow:hidden}.pw-palette[open]{display:flex;flex-direction:column}.pw-palette::backdrop{background:#10182852}.pw-palette-search{display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid #e2e5ea}.pw-palette-search-icon{color:#a8afbc;font-size:14px}.pw-palette-field{flex:1;border:0;background:transparent;color:#334155;font-size:15px}.pw-palette-field::placeholder{color:#a8afbc}.pw-palette-field:focus{outline:none}.pw-palette-results{flex:1;padding:8px 0;overflow-y:auto}.pw-palette-group+.pw-palette-group{margin-top:4px;padding-top:4px;border-top:1px solid #e2e5ea}.pw-palette-group-label{margin:0;padding:6px 16px 4px;color:#a8afbc;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}.pw-palette-row{display:flex;align-items:center;gap:12px;width:100%;min-height:40px;padding:0 16px;border:0;background:transparent;color:#334155;font-size:14px;text-align:left}.pw-palette-row:hover,.pw-palette-row.is-active{background:color-mix(in srgb,var(--first, #0d6efd) 8%,transparent)}.pw-palette-row.is-active{box-shadow:inset 2px 0 0 var(--first, #0d6efd)}.pw-palette-row-icon{flex:0 0 16px;color:#a8afbc;font-size:14px;text-align:center}.pw-palette-row-label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pw-palette-row-prefix{color:#a8afbc}.pw-palette-row-detail{flex:0 1 auto;max-width:45%;overflow:hidden;color:#a8afbc;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.pw-palette-empty{padding:28px 16px;text-align:center}.pw-palette-empty-title{margin:0 0 4px;color:#334155;font-size:14px}.pw-palette-empty-hint{margin:0;color:#a8afbc;font-size:12px}.pw-palette-footer{display:flex;gap:16px;padding:8px 16px;border-top:1px solid #e2e5ea;background:#fbfcfd}.pw-palette-hint{display:flex;align-items:center;gap:6px;color:#a8afbc;font-size:11px}@media(max-width:991px){.pw-palette-trigger{width:34px;padding:0;justify-content:center}.pw-palette-trigger-text,.pw-palette-trigger-kbd{display:none}.pw-palette{top:8vh;max-height:78vh}}\n"],
|
|
4358
4373
|
dependencies: [{
|
|
4359
4374
|
kind: "directive",
|
|
4360
|
-
type: i1$
|
|
4375
|
+
type: i1$2.NgClass,
|
|
4361
4376
|
selector: "[ngClass]",
|
|
4362
4377
|
inputs: ["class", "ngClass"]
|
|
4363
4378
|
}, {
|
|
4364
4379
|
kind: "pipe",
|
|
4365
|
-
type: i2$
|
|
4380
|
+
type: i2$3.TranslocoPipe,
|
|
4366
4381
|
name: "transloco"
|
|
4367
4382
|
}],
|
|
4368
4383
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
@@ -4380,25 +4395,25 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4380
4395
|
selector: "pw-command-palette",
|
|
4381
4396
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4382
4397
|
standalone: false,
|
|
4383
|
-
template: "<!-- Navbar trigger — keeps the familiar search affordance, states the shortcut. -->\n<button type=\"button\"\n class=\"pw-palette-trigger\"\n (click)=\"palette.open()\"\n [attr.aria-label]=\"'CommandPalette.Trigger.Label' | transloco\">\n <i class=\"fas fa-magnifying-glass pw-palette-trigger-icon\" aria-hidden=\"true\"></i>\n <span class=\"pw-palette-trigger-text\">{{ 'CommandPalette.Trigger.Text' | transloco }}</span>\n <kbd class=\"pw-palette-kbd pw-palette-trigger-kbd\">{{ shortcutHint }}</kbd>\n</button>\n\n<!--\n Native <dialog> opened with showModal(): the platform supplies the modal\n semantics this used to hand-roll — the implicit dialog role and modal flag, a real\n focus trap, inert background content, Escape-to-close, and a ::backdrop we\n style instead of painting our own overlay <div>.\n\n The element is always in the DOM (a closed <dialog> is display:none) so the\n component holds one stable handle to call showModal()/close() on; only the\n contents are gated on isOpen so the results list costs nothing while closed.\n-->\n<dialog #paletteDialog\n class=\"pw-palette\"\n [attr.aria-label]=\"'CommandPalette.Aria.Dialog' | transloco\"\n (close)=\"onDialogClose()\">\n @if (isOpen) {\n <div class=\"pw-palette-search\">\n <i class=\"fas fa-magnifying-glass pw-palette-search-icon\" aria-hidden=\"true\"></i>\n <input #queryInput\n type=\"text\"\n class=\"pw-palette-field\"\n autocomplete=\"off\"\n [value]=\"query\"\n (input)=\"onQueryInput($any($event.target).value)\"\n (keydown)=\"onKeydown($event)\"\n [attr.placeholder]=\"'CommandPalette.Placeholder' | transloco\"\n [attr.aria-label]=\"'CommandPalette.Placeholder' | transloco\" />\n <kbd class=\"pw-palette-kbd\">esc</kbd>\n </div>\n\n <div class=\"pw-palette-results\">\n @for (group of groups; track group.labelKey) {\n <div class=\"pw-palette-group\">\n <p class=\"pw-palette-group-label\">{{ group.labelKey | transloco }}</p>\n @for (item of group.items; track item.id) {\n <button type=\"button\"\n class=\"pw-palette-row\"\n [class.is-active]=\"isActive(item)\"\n (click)=\"activate(item)\">\n <i class=\"pw-palette-row-icon\" [ngClass]=\"item.icon\" aria-hidden=\"true\"></i>\n <span class=\"pw-palette-row-label\">\n @if (item.kind === 'ask-ai') {\n {{ 'CommandPalette.Ask.Label' | transloco: { company: brandName } }}\n @if (item.label) {\n <span class=\"pw-palette-row-prefix\">— {{ item.label }}</span>\n }\n } @else if (item.labelKey) {\n <!-- Action rows are chrome, so they translate (C17)
|
|
4398
|
+
template: "<!-- Navbar trigger — keeps the familiar search affordance, states the shortcut. -->\n<button type=\"button\"\n class=\"pw-palette-trigger\"\n (click)=\"palette.open()\"\n [attr.aria-label]=\"'CommandPalette.Trigger.Label' | transloco\">\n <i class=\"fas fa-magnifying-glass pw-palette-trigger-icon\" aria-hidden=\"true\"></i>\n <span class=\"pw-palette-trigger-text\">{{ 'CommandPalette.Trigger.Text' | transloco }}</span>\n <kbd class=\"pw-palette-kbd pw-palette-trigger-kbd\">{{ shortcutHint }}</kbd>\n</button>\n\n<!--\n Native <dialog> opened with showModal(): the platform supplies the modal\n semantics this used to hand-roll — the implicit dialog role and modal flag, a real\n focus trap, inert background content, Escape-to-close, and a ::backdrop we\n style instead of painting our own overlay <div>.\n\n The element is always in the DOM (a closed <dialog> is display:none) so the\n component holds one stable handle to call showModal()/close() on; only the\n contents are gated on isOpen so the results list costs nothing while closed.\n-->\n<dialog #paletteDialog\n class=\"pw-palette\"\n [attr.aria-label]=\"'CommandPalette.Aria.Dialog' | transloco\"\n (close)=\"onDialogClose()\">\n @if (isOpen) {\n <div class=\"pw-palette-search\">\n <i class=\"fas fa-magnifying-glass pw-palette-search-icon\" aria-hidden=\"true\"></i>\n <input #queryInput\n type=\"text\"\n class=\"pw-palette-field\"\n autocomplete=\"off\"\n [value]=\"query\"\n (input)=\"onQueryInput($any($event.target).value)\"\n (keydown)=\"onKeydown($event)\"\n [attr.placeholder]=\"'CommandPalette.Placeholder' | transloco\"\n [attr.aria-label]=\"'CommandPalette.Placeholder' | transloco\" />\n <kbd class=\"pw-palette-kbd\">esc</kbd>\n </div>\n\n <div class=\"pw-palette-results\">\n @for (group of groups; track group.labelKey) {\n <div class=\"pw-palette-group\">\n <p class=\"pw-palette-group-label\">{{ group.labelKey | transloco }}</p>\n @for (item of group.items; track item.id) {\n <button type=\"button\"\n class=\"pw-palette-row\"\n [class.is-active]=\"isActive(item)\"\n (click)=\"activate(item)\">\n <i class=\"pw-palette-row-icon\" [ngClass]=\"item.icon\" aria-hidden=\"true\"></i>\n <span class=\"pw-palette-row-label\">\n @if (item.kind === 'ask-ai') {\n {{ 'CommandPalette.Ask.Label' | transloco: { company: brandName } }}\n @if (item.label) {\n <span class=\"pw-palette-row-prefix\">— {{ item.label }}</span>\n }\n } @else if (item.labelKey) {\n <!-- Action rows are chrome, so they translate (C17), as do page\n rows that carry a key; person rows render the data's own text. -->\n {{ item.labelKey | transloco }}\n } @else {\n {{ item.label }}\n }\n </span>\n @if (item.detail) {\n <span class=\"pw-palette-row-detail\">{{ item.detailKey ? (item.detailKey | transloco) : item.detail }}</span>\n }\n </button>\n }\n </div>\n } @empty {\n <div class=\"pw-palette-empty\">\n <p class=\"pw-palette-empty-title\">{{ 'CommandPalette.Empty.Title' | transloco }}</p>\n <p class=\"pw-palette-empty-hint\">{{ 'CommandPalette.Empty.Hint' | transloco }}</p>\n </div>\n }\n </div>\n\n <div class=\"pw-palette-footer\">\n <span class=\"pw-palette-hint\"><kbd class=\"pw-palette-kbd\">↑↓</kbd>{{ 'CommandPalette.Hint.Navigate' | transloco }}</span>\n <span class=\"pw-palette-hint\"><kbd class=\"pw-palette-kbd\">↵</kbd>{{ 'CommandPalette.Hint.Open' | transloco }}</span>\n <span class=\"pw-palette-hint\"><kbd class=\"pw-palette-kbd\">esc</kbd>{{ 'CommandPalette.Hint.Close' | transloco }}</span>\n </div>\n }\n</dialog>\n",
|
|
4384
4399
|
styles: [":host{display:inline-flex;align-items:center}.pw-palette-trigger{display:flex;align-items:center;gap:8px;width:220px;max-width:100%;height:34px;padding:0 8px 0 12px;border:1px solid #e2e5ea;border-radius:8px;background:#fff;color:#a8afbc;font-size:13px;text-align:left;transition:border-color .15s ease}.pw-palette-trigger:hover,.pw-palette-trigger:focus-visible{border-color:var(--first, #0d6efd);color:#334155}.pw-palette-trigger-icon{font-size:12px}.pw-palette-trigger-text{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pw-palette-kbd{padding:1px 6px;border:1px solid #e2e5ea;border-radius:4px;background:#f5f7fa;color:#a8afbc;font-size:11px;line-height:1.5;white-space:nowrap}.pw-palette{position:fixed;top:12vh;right:auto;bottom:auto;left:50%;z-index:1051;width:min(640px,100vw - 32px);max-width:calc(100vw - 32px);max-height:70vh;margin:0;padding:0;transform:translate(-50%);border:1px solid #e2e5ea;border-radius:12px;background:#fff;box-shadow:0 16px 48px #1018282e;overflow:hidden}.pw-palette[open]{display:flex;flex-direction:column}.pw-palette::backdrop{background:#10182852}.pw-palette-search{display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid #e2e5ea}.pw-palette-search-icon{color:#a8afbc;font-size:14px}.pw-palette-field{flex:1;border:0;background:transparent;color:#334155;font-size:15px}.pw-palette-field::placeholder{color:#a8afbc}.pw-palette-field:focus{outline:none}.pw-palette-results{flex:1;padding:8px 0;overflow-y:auto}.pw-palette-group+.pw-palette-group{margin-top:4px;padding-top:4px;border-top:1px solid #e2e5ea}.pw-palette-group-label{margin:0;padding:6px 16px 4px;color:#a8afbc;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}.pw-palette-row{display:flex;align-items:center;gap:12px;width:100%;min-height:40px;padding:0 16px;border:0;background:transparent;color:#334155;font-size:14px;text-align:left}.pw-palette-row:hover,.pw-palette-row.is-active{background:color-mix(in srgb,var(--first, #0d6efd) 8%,transparent)}.pw-palette-row.is-active{box-shadow:inset 2px 0 0 var(--first, #0d6efd)}.pw-palette-row-icon{flex:0 0 16px;color:#a8afbc;font-size:14px;text-align:center}.pw-palette-row-label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pw-palette-row-prefix{color:#a8afbc}.pw-palette-row-detail{flex:0 1 auto;max-width:45%;overflow:hidden;color:#a8afbc;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.pw-palette-empty{padding:28px 16px;text-align:center}.pw-palette-empty-title{margin:0 0 4px;color:#334155;font-size:14px}.pw-palette-empty-hint{margin:0;color:#a8afbc;font-size:12px}.pw-palette-footer{display:flex;gap:16px;padding:8px 16px;border-top:1px solid #e2e5ea;background:#fbfcfd}.pw-palette-hint{display:flex;align-items:center;gap:6px;color:#a8afbc;font-size:11px}@media(max-width:991px){.pw-palette-trigger{width:34px;padding:0;justify-content:center}.pw-palette-trigger-text,.pw-palette-trigger-kbd{display:none}.pw-palette{top:8vh;max-height:78vh}}\n"]
|
|
4385
4400
|
}]
|
|
4386
4401
|
}],
|
|
4387
4402
|
ctorParameters: () => [
|
|
4388
4403
|
{ type: CommandPaletteService },
|
|
4389
|
-
{ type: i1$
|
|
4390
|
-
{ type: i1$
|
|
4391
|
-
{ type: i1$
|
|
4404
|
+
{ type: i1$1.NavigationIndexService },
|
|
4405
|
+
{ type: i1$1.DashboardService },
|
|
4406
|
+
{ type: i1$1.RecentPagesService },
|
|
4392
4407
|
{ type: CollapsibleSidebarService },
|
|
4393
4408
|
{ type: i9$1.Router },
|
|
4394
|
-
{ type: i2$
|
|
4409
|
+
{ type: i2$3.TranslocoService },
|
|
4395
4410
|
{ type: i0.ChangeDetectorRef },
|
|
4396
4411
|
{
|
|
4397
|
-
type: i2$
|
|
4412
|
+
type: i2$2.AppConfigService,
|
|
4398
4413
|
decorators: [{ type: Optional }]
|
|
4399
4414
|
},
|
|
4400
4415
|
{
|
|
4401
|
-
type: i1$
|
|
4416
|
+
type: i1$1.CustomToastService,
|
|
4402
4417
|
decorators: [{ type: Optional }]
|
|
4403
4418
|
}
|
|
4404
4419
|
],
|
|
@@ -4421,28 +4436,29 @@ const DEFAULT_COOKIE_KEY = "cookieconsent_status";
|
|
|
4421
4436
|
const DEFAULT_COOKIE_VALUE = "dismiss";
|
|
4422
4437
|
const DEFAULT_COOKIE_TTL_DAYS = 365;
|
|
4423
4438
|
var PwCookieBannerComponent = class PwCookieBannerComponent {
|
|
4424
|
-
|
|
4439
|
+
get ariaLabel() {
|
|
4440
|
+
return this.translation.translate("CookieBanner.AriaLabel");
|
|
4441
|
+
}
|
|
4442
|
+
constructor(document, translation) {
|
|
4425
4443
|
this.document = document;
|
|
4426
|
-
this.
|
|
4427
|
-
this.
|
|
4428
|
-
this.
|
|
4429
|
-
this.
|
|
4444
|
+
this.translation = translation;
|
|
4445
|
+
this.title = null;
|
|
4446
|
+
this.message = null;
|
|
4447
|
+
this.acceptLabel = null;
|
|
4448
|
+
this.privacyLinkLabel = null;
|
|
4430
4449
|
this.privacyLinkUrl = null;
|
|
4431
|
-
this.tosId = null;
|
|
4432
4450
|
this.privacyFallbackUrl = "/privacy-policy";
|
|
4433
4451
|
this.cookieKey = DEFAULT_COOKIE_KEY;
|
|
4434
4452
|
this.cookieTtlDays = DEFAULT_COOKIE_TTL_DAYS;
|
|
4435
|
-
this.visible = false;
|
|
4436
|
-
this.leaving = false;
|
|
4453
|
+
this.visible = signal(false, ...ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []);
|
|
4454
|
+
this.leaving = signal(false, ...ngDevMode ? [{ debugName: "leaving" }] : /* istanbul ignore next */ []);
|
|
4437
4455
|
this.role = "region";
|
|
4438
|
-
this.ariaLabel = "Cookie preferences";
|
|
4439
4456
|
}
|
|
4440
4457
|
ngOnInit() {
|
|
4441
|
-
this.visible
|
|
4458
|
+
this.visible.set(!this.hasConsentCookie());
|
|
4442
4459
|
}
|
|
4443
4460
|
get resolvedPrivacyUrl() {
|
|
4444
4461
|
if (this.privacyLinkUrl) return this.privacyLinkUrl;
|
|
4445
|
-
if (this.tosId != null) return `/privacy-and-tos/${this.tosId}`;
|
|
4446
4462
|
return this.privacyFallbackUrl ?? "/privacy-policy";
|
|
4447
4463
|
}
|
|
4448
4464
|
accept() {
|
|
@@ -4450,10 +4466,10 @@ var PwCookieBannerComponent = class PwCookieBannerComponent {
|
|
|
4450
4466
|
this.animateOut();
|
|
4451
4467
|
}
|
|
4452
4468
|
animateOut() {
|
|
4453
|
-
this.leaving
|
|
4469
|
+
this.leaving.set(true);
|
|
4454
4470
|
setTimeout(() => {
|
|
4455
|
-
this.visible
|
|
4456
|
-
this.leaving
|
|
4471
|
+
this.visible.set(false);
|
|
4472
|
+
this.leaving.set(false);
|
|
4457
4473
|
}, 220);
|
|
4458
4474
|
}
|
|
4459
4475
|
hasConsentCookie() {
|
|
@@ -4477,7 +4493,7 @@ var PwCookieBannerComponent = class PwCookieBannerComponent {
|
|
|
4477
4493
|
version: "22.2.3",
|
|
4478
4494
|
ngImport: i0,
|
|
4479
4495
|
type: PwCookieBannerComponent,
|
|
4480
|
-
deps: [{ token: DOCUMENT }],
|
|
4496
|
+
deps: [{ token: DOCUMENT }, { token: i2$3.TranslocoService }],
|
|
4481
4497
|
target: i0.ɵɵFactoryTarget.Component
|
|
4482
4498
|
});
|
|
4483
4499
|
}
|
|
@@ -4494,7 +4510,6 @@ var PwCookieBannerComponent = class PwCookieBannerComponent {
|
|
|
4494
4510
|
acceptLabel: "acceptLabel",
|
|
4495
4511
|
privacyLinkLabel: "privacyLinkLabel",
|
|
4496
4512
|
privacyLinkUrl: "privacyLinkUrl",
|
|
4497
|
-
tosId: "tosId",
|
|
4498
4513
|
privacyFallbackUrl: "privacyFallbackUrl",
|
|
4499
4514
|
cookieKey: "cookieKey",
|
|
4500
4515
|
cookieTtlDays: "cookieTtlDays"
|
|
@@ -4504,12 +4519,23 @@ var PwCookieBannerComponent = class PwCookieBannerComponent {
|
|
|
4504
4519
|
"attr.aria-label": "this.ariaLabel"
|
|
4505
4520
|
} },
|
|
4506
4521
|
ngImport: i0,
|
|
4507
|
-
template: "@if (visible) {\n <div\n class=\"pw-cookie-banner\"\n [class.pw-cookie-banner--leaving]=\"leaving\">\n <div class=\"pw-cookie-banner__icon\" aria-hidden=\"true\">\n <i class=\"fas fa-cookie-bite\"></i>\n </div>\n <div class=\"pw-cookie-banner__body\">\n <h3 class=\"pw-cookie-banner__title\">{{ title }}</h3>\n <p class=\"pw-cookie-banner__message\">\n {{ message }}\n <a\n class=\"pw-cookie-banner__link\"\n [href]=\"resolvedPrivacyUrl\"\n target=\"_blank\"\n rel=\"noopener\">\n {{ privacyLinkLabel }}\n </a>\n </p>\n </div>\n <div class=\"pw-cookie-banner__actions\">\n <button\n type=\"button\"\n class=\"pw-cookie-banner__accept\"\n (click)=\"accept()\">\n {{ acceptLabel }}\n </button>\n </div>\n </div>\n}\n",
|
|
4508
|
-
styles: [":host{position:fixed;bottom:24px;left:24px;z-index:10010;pointer-events:none}@media(max-width:575px){:host{bottom:12px;left:12px;right:12px}}.pw-cookie-banner{pointer-events:auto;display:grid;grid-template-columns:auto 1fr;grid-template-areas:\"icon body\" \"actions actions\";gap:12px 14px;width:380px;max-width:calc(100vw - 48px);padding:18px 18px 16px;background:#fff;border:1px solid #e2e5ea;border-radius:12px;box-shadow:0 12px 40px #0f172a1a,0 2px 8px #0f172a0d;color:#3d4654;animation:pw-cookie-enter .22s cubic-bezier(.16,1,.3,1) both}@media(max-width:575px){.pw-cookie-banner{width:auto;max-width:none;padding:16px;grid-template-columns:auto 1fr;grid-template-areas:\"icon body\" \"actions actions\"}}.pw-cookie-banner--leaving{animation:pw-cookie-leave .2s ease-in both}.pw-cookie-banner__icon{grid-area:icon;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;background:#f7f8fa;color:var(--first, #1769e1);font-size:18px;flex-shrink:0}.pw-cookie-banner__body{grid-area:body;min-width:0}.pw-cookie-banner__title{margin:0 0 4px;font-size:15px;line-height:1.3;font-weight:600;color:#1a1d21;letter-spacing:-.005em}.pw-cookie-banner__message{margin:0;font-size:13px;line-height:1.55;color:#5a6473}.pw-cookie-banner__link{color:var(--first, #1769e1);text-decoration:none;font-weight:500;white-space:nowrap;margin-left:4px}.pw-cookie-banner__link:hover,.pw-cookie-banner__link:focus-visible{text-decoration:underline;text-underline-offset:2px}.pw-cookie-banner__actions{grid-area:actions;display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:4px}.pw-cookie-banner__dismiss{appearance:none;border:0;cursor:pointer;font-family:inherit;font-size:13px;font-weight:500;line-height:1;color:#5a6473;background:transparent;padding:9px 12px;border-radius:8px;transition:color .16s ease-out,background .16s ease-out}.pw-cookie-banner__dismiss:hover{color:#1a1d21;background:#f7f8fa}.pw-cookie-banner__dismiss:focus-visible{outline:2px solid var(--first, #1769e1);outline-offset:2px}.pw-cookie-banner__dismiss:active{transform:translateY(1px)}.pw-cookie-banner__accept{appearance:none;border:0;cursor:pointer;font-family:inherit;font-size:13px;font-weight:500;line-height:1;color:#fff;background:var(--first, #1769e1);padding:9px 18px;border-radius:var(--public-btn-radius);transition:background .16s ease-out,transform .12s ease-out,box-shadow .16s ease-out}.pw-cookie-banner__accept:hover{background:color-mix(in srgb,var(--first, #1769e1) 88%,#000);box-shadow:0 4px 12px #0f172a1f}.pw-cookie-banner__accept:focus-visible{outline:2px solid var(--first, #1769e1);outline-offset:2px}.pw-cookie-banner__accept:active{transform:translateY(1px)}@keyframes pw-cookie-enter{0%{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes pw-cookie-leave{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(8px)}}@media(prefers-reduced-motion:reduce){.pw-cookie-banner,.pw-cookie-banner--leaving{animation:none}}\n"],
|
|
4509
|
-
dependencies: [
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4522
|
+
template: "@if (visible()) {\n <div\n class=\"pw-cookie-banner\"\n [class.pw-cookie-banner--leaving]=\"leaving()\">\n <div class=\"pw-cookie-banner__icon\" aria-hidden=\"true\">\n <i class=\"fas fa-cookie-bite\"></i>\n </div>\n <div class=\"pw-cookie-banner__body\">\n <h3 class=\"pw-cookie-banner__title\">{{ title ?? ('CookieBanner.Title' | transloco) }}</h3>\n <p class=\"pw-cookie-banner__message\">\n {{ message ?? ('CookieBanner.Message' | transloco) }}\n <a\n class=\"pw-cookie-banner__link\"\n [href]=\"resolvedPrivacyUrl\"\n target=\"_blank\"\n rel=\"noopener\">\n {{ privacyLinkLabel ?? ('CookieBanner.PrivacyLink' | transloco) }}\n </a>\n </p>\n </div>\n <div class=\"pw-cookie-banner__actions\">\n <button\n type=\"button\"\n class=\"pw-cookie-banner__accept\"\n (click)=\"accept()\">\n {{ acceptLabel ?? ('CookieBanner.Accept' | transloco) }}\n </button>\n </div>\n </div>\n}\n",
|
|
4523
|
+
styles: [":host{position:fixed;bottom:24px;left:24px;z-index:10010;pointer-events:none}@media(max-width:575px){:host{bottom:12px;left:12px;right:12px}}.pw-cookie-banner{pointer-events:auto;display:grid;grid-template-columns:auto 1fr;grid-template-areas:\"icon body\" \"actions actions\";gap:12px 14px;width:380px;max-width:calc(100vw - 48px);padding:18px 18px 16px;background:#fff;border:1px solid #e2e5ea;border-radius:12px;box-shadow:0 12px 40px #0f172a1a,0 2px 8px #0f172a0d;color:#3d4654;animation:pw-cookie-enter .22s cubic-bezier(.16,1,.3,1) both}@media(max-width:575px){.pw-cookie-banner{width:auto;max-width:none;padding:16px;grid-template-columns:auto 1fr;grid-template-areas:\"icon body\" \"actions actions\"}}.pw-cookie-banner--leaving{pointer-events:none;animation:pw-cookie-leave .2s ease-in both}.pw-cookie-banner__icon{grid-area:icon;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;background:#f7f8fa;color:var(--first, #1769e1);font-size:18px;flex-shrink:0}.pw-cookie-banner__body{grid-area:body;min-width:0}.pw-cookie-banner__title{margin:0 0 4px;font-size:15px;line-height:1.3;font-weight:600;color:#1a1d21;letter-spacing:-.005em}.pw-cookie-banner__message{margin:0;font-size:13px;line-height:1.55;color:#5a6473}.pw-cookie-banner__link{color:var(--first, #1769e1);text-decoration:none;font-weight:500;white-space:nowrap;margin-left:4px}.pw-cookie-banner__link:hover,.pw-cookie-banner__link:focus-visible{text-decoration:underline;text-underline-offset:2px}.pw-cookie-banner__actions{grid-area:actions;display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:4px}.pw-cookie-banner__dismiss{appearance:none;border:0;cursor:pointer;font-family:inherit;font-size:13px;font-weight:500;line-height:1;color:#5a6473;background:transparent;padding:9px 12px;border-radius:8px;transition:color .16s ease-out,background .16s ease-out}.pw-cookie-banner__dismiss:hover{color:#1a1d21;background:#f7f8fa}.pw-cookie-banner__dismiss:focus-visible{outline:2px solid var(--first, #1769e1);outline-offset:2px}.pw-cookie-banner__dismiss:active{transform:translateY(1px)}.pw-cookie-banner__accept{appearance:none;border:0;cursor:pointer;font-family:inherit;font-size:13px;font-weight:500;line-height:1;color:#fff;background:var(--first, #1769e1);padding:9px 18px;border-radius:var(--public-btn-radius);transition:background .16s ease-out,transform .12s ease-out,box-shadow .16s ease-out}.pw-cookie-banner__accept:hover{background:color-mix(in srgb,var(--first, #1769e1) 88%,#000);box-shadow:0 4px 12px #0f172a1f}.pw-cookie-banner__accept:focus-visible{outline:2px solid var(--first, #1769e1);outline-offset:2px}.pw-cookie-banner__accept:active{transform:translateY(1px)}@keyframes pw-cookie-enter{0%{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes pw-cookie-leave{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(8px)}}@media(prefers-reduced-motion:reduce){.pw-cookie-banner,.pw-cookie-banner--leaving{animation:none}}\n"],
|
|
4524
|
+
dependencies: [
|
|
4525
|
+
{
|
|
4526
|
+
kind: "ngmodule",
|
|
4527
|
+
type: CommonModule
|
|
4528
|
+
},
|
|
4529
|
+
{
|
|
4530
|
+
kind: "ngmodule",
|
|
4531
|
+
type: CoreTranslocoModule
|
|
4532
|
+
},
|
|
4533
|
+
{
|
|
4534
|
+
kind: "pipe",
|
|
4535
|
+
type: i2$3.TranslocoPipe,
|
|
4536
|
+
name: "transloco"
|
|
4537
|
+
}
|
|
4538
|
+
]
|
|
4513
4539
|
});
|
|
4514
4540
|
}
|
|
4515
4541
|
};
|
|
@@ -4523,9 +4549,9 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4523
4549
|
args: [{
|
|
4524
4550
|
selector: "pw-cookie-banner",
|
|
4525
4551
|
standalone: true,
|
|
4526
|
-
imports: [CommonModule],
|
|
4527
|
-
template: "@if (visible) {\n <div\n class=\"pw-cookie-banner\"\n [class.pw-cookie-banner--leaving]=\"leaving\">\n <div class=\"pw-cookie-banner__icon\" aria-hidden=\"true\">\n <i class=\"fas fa-cookie-bite\"></i>\n </div>\n <div class=\"pw-cookie-banner__body\">\n <h3 class=\"pw-cookie-banner__title\">{{ title }}</h3>\n <p class=\"pw-cookie-banner__message\">\n {{ message }}\n <a\n class=\"pw-cookie-banner__link\"\n [href]=\"resolvedPrivacyUrl\"\n target=\"_blank\"\n rel=\"noopener\">\n {{ privacyLinkLabel }}\n </a>\n </p>\n </div>\n <div class=\"pw-cookie-banner__actions\">\n <button\n type=\"button\"\n class=\"pw-cookie-banner__accept\"\n (click)=\"accept()\">\n {{ acceptLabel }}\n </button>\n </div>\n </div>\n}\n",
|
|
4528
|
-
styles: [":host{position:fixed;bottom:24px;left:24px;z-index:10010;pointer-events:none}@media(max-width:575px){:host{bottom:12px;left:12px;right:12px}}.pw-cookie-banner{pointer-events:auto;display:grid;grid-template-columns:auto 1fr;grid-template-areas:\"icon body\" \"actions actions\";gap:12px 14px;width:380px;max-width:calc(100vw - 48px);padding:18px 18px 16px;background:#fff;border:1px solid #e2e5ea;border-radius:12px;box-shadow:0 12px 40px #0f172a1a,0 2px 8px #0f172a0d;color:#3d4654;animation:pw-cookie-enter .22s cubic-bezier(.16,1,.3,1) both}@media(max-width:575px){.pw-cookie-banner{width:auto;max-width:none;padding:16px;grid-template-columns:auto 1fr;grid-template-areas:\"icon body\" \"actions actions\"}}.pw-cookie-banner--leaving{animation:pw-cookie-leave .2s ease-in both}.pw-cookie-banner__icon{grid-area:icon;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;background:#f7f8fa;color:var(--first, #1769e1);font-size:18px;flex-shrink:0}.pw-cookie-banner__body{grid-area:body;min-width:0}.pw-cookie-banner__title{margin:0 0 4px;font-size:15px;line-height:1.3;font-weight:600;color:#1a1d21;letter-spacing:-.005em}.pw-cookie-banner__message{margin:0;font-size:13px;line-height:1.55;color:#5a6473}.pw-cookie-banner__link{color:var(--first, #1769e1);text-decoration:none;font-weight:500;white-space:nowrap;margin-left:4px}.pw-cookie-banner__link:hover,.pw-cookie-banner__link:focus-visible{text-decoration:underline;text-underline-offset:2px}.pw-cookie-banner__actions{grid-area:actions;display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:4px}.pw-cookie-banner__dismiss{appearance:none;border:0;cursor:pointer;font-family:inherit;font-size:13px;font-weight:500;line-height:1;color:#5a6473;background:transparent;padding:9px 12px;border-radius:8px;transition:color .16s ease-out,background .16s ease-out}.pw-cookie-banner__dismiss:hover{color:#1a1d21;background:#f7f8fa}.pw-cookie-banner__dismiss:focus-visible{outline:2px solid var(--first, #1769e1);outline-offset:2px}.pw-cookie-banner__dismiss:active{transform:translateY(1px)}.pw-cookie-banner__accept{appearance:none;border:0;cursor:pointer;font-family:inherit;font-size:13px;font-weight:500;line-height:1;color:#fff;background:var(--first, #1769e1);padding:9px 18px;border-radius:var(--public-btn-radius);transition:background .16s ease-out,transform .12s ease-out,box-shadow .16s ease-out}.pw-cookie-banner__accept:hover{background:color-mix(in srgb,var(--first, #1769e1) 88%,#000);box-shadow:0 4px 12px #0f172a1f}.pw-cookie-banner__accept:focus-visible{outline:2px solid var(--first, #1769e1);outline-offset:2px}.pw-cookie-banner__accept:active{transform:translateY(1px)}@keyframes pw-cookie-enter{0%{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes pw-cookie-leave{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(8px)}}@media(prefers-reduced-motion:reduce){.pw-cookie-banner,.pw-cookie-banner--leaving{animation:none}}\n"]
|
|
4552
|
+
imports: [CommonModule, CoreTranslocoModule],
|
|
4553
|
+
template: "@if (visible()) {\n <div\n class=\"pw-cookie-banner\"\n [class.pw-cookie-banner--leaving]=\"leaving()\">\n <div class=\"pw-cookie-banner__icon\" aria-hidden=\"true\">\n <i class=\"fas fa-cookie-bite\"></i>\n </div>\n <div class=\"pw-cookie-banner__body\">\n <h3 class=\"pw-cookie-banner__title\">{{ title ?? ('CookieBanner.Title' | transloco) }}</h3>\n <p class=\"pw-cookie-banner__message\">\n {{ message ?? ('CookieBanner.Message' | transloco) }}\n <a\n class=\"pw-cookie-banner__link\"\n [href]=\"resolvedPrivacyUrl\"\n target=\"_blank\"\n rel=\"noopener\">\n {{ privacyLinkLabel ?? ('CookieBanner.PrivacyLink' | transloco) }}\n </a>\n </p>\n </div>\n <div class=\"pw-cookie-banner__actions\">\n <button\n type=\"button\"\n class=\"pw-cookie-banner__accept\"\n (click)=\"accept()\">\n {{ acceptLabel ?? ('CookieBanner.Accept' | transloco) }}\n </button>\n </div>\n </div>\n}\n",
|
|
4554
|
+
styles: [":host{position:fixed;bottom:24px;left:24px;z-index:10010;pointer-events:none}@media(max-width:575px){:host{bottom:12px;left:12px;right:12px}}.pw-cookie-banner{pointer-events:auto;display:grid;grid-template-columns:auto 1fr;grid-template-areas:\"icon body\" \"actions actions\";gap:12px 14px;width:380px;max-width:calc(100vw - 48px);padding:18px 18px 16px;background:#fff;border:1px solid #e2e5ea;border-radius:12px;box-shadow:0 12px 40px #0f172a1a,0 2px 8px #0f172a0d;color:#3d4654;animation:pw-cookie-enter .22s cubic-bezier(.16,1,.3,1) both}@media(max-width:575px){.pw-cookie-banner{width:auto;max-width:none;padding:16px;grid-template-columns:auto 1fr;grid-template-areas:\"icon body\" \"actions actions\"}}.pw-cookie-banner--leaving{pointer-events:none;animation:pw-cookie-leave .2s ease-in both}.pw-cookie-banner__icon{grid-area:icon;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;background:#f7f8fa;color:var(--first, #1769e1);font-size:18px;flex-shrink:0}.pw-cookie-banner__body{grid-area:body;min-width:0}.pw-cookie-banner__title{margin:0 0 4px;font-size:15px;line-height:1.3;font-weight:600;color:#1a1d21;letter-spacing:-.005em}.pw-cookie-banner__message{margin:0;font-size:13px;line-height:1.55;color:#5a6473}.pw-cookie-banner__link{color:var(--first, #1769e1);text-decoration:none;font-weight:500;white-space:nowrap;margin-left:4px}.pw-cookie-banner__link:hover,.pw-cookie-banner__link:focus-visible{text-decoration:underline;text-underline-offset:2px}.pw-cookie-banner__actions{grid-area:actions;display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:4px}.pw-cookie-banner__dismiss{appearance:none;border:0;cursor:pointer;font-family:inherit;font-size:13px;font-weight:500;line-height:1;color:#5a6473;background:transparent;padding:9px 12px;border-radius:8px;transition:color .16s ease-out,background .16s ease-out}.pw-cookie-banner__dismiss:hover{color:#1a1d21;background:#f7f8fa}.pw-cookie-banner__dismiss:focus-visible{outline:2px solid var(--first, #1769e1);outline-offset:2px}.pw-cookie-banner__dismiss:active{transform:translateY(1px)}.pw-cookie-banner__accept{appearance:none;border:0;cursor:pointer;font-family:inherit;font-size:13px;font-weight:500;line-height:1;color:#fff;background:var(--first, #1769e1);padding:9px 18px;border-radius:var(--public-btn-radius);transition:background .16s ease-out,transform .12s ease-out,box-shadow .16s ease-out}.pw-cookie-banner__accept:hover{background:color-mix(in srgb,var(--first, #1769e1) 88%,#000);box-shadow:0 4px 12px #0f172a1f}.pw-cookie-banner__accept:focus-visible{outline:2px solid var(--first, #1769e1);outline-offset:2px}.pw-cookie-banner__accept:active{transform:translateY(1px)}@keyframes pw-cookie-enter{0%{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes pw-cookie-leave{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(8px)}}@media(prefers-reduced-motion:reduce){.pw-cookie-banner,.pw-cookie-banner--leaving{animation:none}}\n"]
|
|
4529
4555
|
}]
|
|
4530
4556
|
}],
|
|
4531
4557
|
ctorParameters: () => [{
|
|
@@ -4534,14 +4560,13 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4534
4560
|
type: Inject,
|
|
4535
4561
|
args: [DOCUMENT]
|
|
4536
4562
|
}]
|
|
4537
|
-
}],
|
|
4563
|
+
}, { type: i2$3.TranslocoService }],
|
|
4538
4564
|
propDecorators: {
|
|
4539
4565
|
title: [{ type: Input }],
|
|
4540
4566
|
message: [{ type: Input }],
|
|
4541
4567
|
acceptLabel: [{ type: Input }],
|
|
4542
4568
|
privacyLinkLabel: [{ type: Input }],
|
|
4543
4569
|
privacyLinkUrl: [{ type: Input }],
|
|
4544
|
-
tosId: [{ type: Input }],
|
|
4545
4570
|
privacyFallbackUrl: [{ type: Input }],
|
|
4546
4571
|
cookieKey: [{ type: Input }],
|
|
4547
4572
|
cookieTtlDays: [{ type: Input }],
|
|
@@ -4598,7 +4623,7 @@ var ChartBlockComponent = class ChartBlockComponent {
|
|
|
4598
4623
|
styles: [".dyn-chart{border:1px solid var(--line, #e2e5ea);border-radius:8px;padding:16px;min-height:96px;background:var(--surface, #fff)}.dyn-chart__label{color:var(--ink-2, #5a6473);font-size:12px;font-weight:500;margin-bottom:8px}.dyn-chart__state{color:var(--ink-3, #7c8696);font-size:12px}\n"],
|
|
4599
4624
|
dependencies: [{
|
|
4600
4625
|
kind: "pipe",
|
|
4601
|
-
type: i2$
|
|
4626
|
+
type: i2$3.TranslocoPipe,
|
|
4602
4627
|
name: "transloco"
|
|
4603
4628
|
}]
|
|
4604
4629
|
});
|
|
@@ -4704,7 +4729,7 @@ var DataTableBlockComponent = class DataTableBlockComponent {
|
|
|
4704
4729
|
styles: [".dyn-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}.dyn-table th,.dyn-table td{border-bottom:1px solid var(--line, #e2e5ea);padding:8px 12px;text-align:left;font-size:14px}.dyn-table th{color:var(--ink-2, #5a6473);font-weight:500}.dyn-table__state{color:var(--ink-3, #7c8696);font-size:12px;padding:12px}\n"],
|
|
4705
4730
|
dependencies: [{
|
|
4706
4731
|
kind: "pipe",
|
|
4707
|
-
type: i2$
|
|
4732
|
+
type: i2$3.TranslocoPipe,
|
|
4708
4733
|
name: "transloco"
|
|
4709
4734
|
}]
|
|
4710
4735
|
});
|
|
@@ -4936,7 +4961,7 @@ var StatCardBlockComponent = class StatCardBlockComponent {
|
|
|
4936
4961
|
styles: [".dyn-card{border:1px solid var(--line, #e2e5ea);border-radius:8px;padding:16px;background:var(--surface, #fff)}.dyn-card__label{color:var(--ink-2, #5a6473);font-size:12px;font-weight:500}.dyn-card__value{color:var(--ink, #1a1d21);font-size:24px;font-weight:700;font-variant-numeric:tabular-nums}.dyn-card__state{color:var(--ink-3, #7c8696);font-size:12px}\n"],
|
|
4937
4962
|
dependencies: [{
|
|
4938
4963
|
kind: "pipe",
|
|
4939
|
-
type: i2$
|
|
4964
|
+
type: i2$3.TranslocoPipe,
|
|
4940
4965
|
name: "transloco"
|
|
4941
4966
|
}]
|
|
4942
4967
|
});
|
|
@@ -5119,9 +5144,9 @@ var PwDynamicPageComponent = class PwDynamicPageComponent {
|
|
|
5119
5144
|
deps: [
|
|
5120
5145
|
{ token: i0.Injector },
|
|
5121
5146
|
{ token: i0.ChangeDetectorRef },
|
|
5122
|
-
{ token: i1$
|
|
5147
|
+
{ token: i1$1.FeatureFlagService },
|
|
5123
5148
|
{
|
|
5124
|
-
token: i1$
|
|
5149
|
+
token: i1$1.UserService,
|
|
5125
5150
|
optional: true
|
|
5126
5151
|
},
|
|
5127
5152
|
{
|
|
@@ -5129,7 +5154,7 @@ var PwDynamicPageComponent = class PwDynamicPageComponent {
|
|
|
5129
5154
|
optional: true
|
|
5130
5155
|
},
|
|
5131
5156
|
{
|
|
5132
|
-
token: i2$
|
|
5157
|
+
token: i2$2.AppConfigService,
|
|
5133
5158
|
optional: true
|
|
5134
5159
|
}
|
|
5135
5160
|
],
|
|
@@ -5172,7 +5197,7 @@ var PwDynamicPageComponent = class PwDynamicPageComponent {
|
|
|
5172
5197
|
styles: [".dyn-page{display:grid;grid-template-columns:repeat(12,1fr);gap:16px}:host ::ng-deep .dyn-page>*{grid-column:span 12}.dyn-empty{border:1px solid var(--line, #e2e5ea);border-radius:8px;background:var(--surface, #fff);padding:48px 24px;text-align:center}.dyn-empty__title{color:var(--ink, #1a1d21);font-size:17px;font-weight:700;margin-bottom:4px}.dyn-empty__hint{color:var(--ink-3, #7c8696);font-size:14px;margin:0 auto 16px;max-width:420px}\n"],
|
|
5173
5198
|
dependencies: [{
|
|
5174
5199
|
kind: "pipe",
|
|
5175
|
-
type: i2$
|
|
5200
|
+
type: i2$3.TranslocoPipe,
|
|
5176
5201
|
name: "transloco"
|
|
5177
5202
|
}]
|
|
5178
5203
|
});
|
|
@@ -5210,9 +5235,9 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5210
5235
|
ctorParameters: () => [
|
|
5211
5236
|
{ type: i0.Injector },
|
|
5212
5237
|
{ type: i0.ChangeDetectorRef },
|
|
5213
|
-
{ type: i1$
|
|
5238
|
+
{ type: i1$1.FeatureFlagService },
|
|
5214
5239
|
{
|
|
5215
|
-
type: i1$
|
|
5240
|
+
type: i1$1.UserService,
|
|
5216
5241
|
decorators: [{ type: Optional }]
|
|
5217
5242
|
},
|
|
5218
5243
|
{
|
|
@@ -5220,7 +5245,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5220
5245
|
decorators: [{ type: Optional }]
|
|
5221
5246
|
},
|
|
5222
5247
|
{
|
|
5223
|
-
type: i2$
|
|
5248
|
+
type: i2$2.AppConfigService,
|
|
5224
5249
|
decorators: [{ type: Optional }]
|
|
5225
5250
|
}
|
|
5226
5251
|
],
|
|
@@ -5267,7 +5292,7 @@ var HeaderComponent = class HeaderComponent extends AppBaseComponent {
|
|
|
5267
5292
|
type: HeaderComponent,
|
|
5268
5293
|
deps: [
|
|
5269
5294
|
{ token: i0.Injector },
|
|
5270
|
-
{ token: i1$
|
|
5295
|
+
{ token: i1$1.AuthService },
|
|
5271
5296
|
{ token: i0.ChangeDetectorRef }
|
|
5272
5297
|
],
|
|
5273
5298
|
target: i0.ɵɵFactoryTarget.Component
|
|
@@ -5287,11 +5312,11 @@ var HeaderComponent = class HeaderComponent extends AppBaseComponent {
|
|
|
5287
5312
|
styles: ["@charset \"UTF-8\";:root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_sub_bg: color-mix(in srgb, var(--first, rgb(23 105 225)) 85%, #000000);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255);--dashboard_bg: rgb(255 255 255);--public-btn-radius: 24px}.pw-bar{position:fixed;top:0;left:0;right:0;z-index:50;padding:0 var(--lp-gutter, clamp(20px, 4vw, 48px));background:color-mix(in srgb,#f7f8fa 80%,transparent);backdrop-filter:saturate(180%) blur(12px);-webkit-backdrop-filter:saturate(180%) blur(12px);border-bottom:1px solid transparent;transition:background-color .2s cubic-bezier(.2,.7,.2,1),border-color .2s cubic-bezier(.2,.7,.2,1)}.pw-bar--solid,.pw-bar:hover{background:#f7f8fa;border-bottom-color:#e2e5ea}.pw-bar__inner{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:32px;max-width:var(--lp-max-w-content, 1200px);margin:0 auto;padding:0;height:56px}.pw-bar__brand{display:inline-flex;align-items:center;text-decoration:none}.pw-bar__brand-logo{height:28px;width:auto;display:block;object-fit:contain}.pw-bar__actions{display:flex;align-items:center;gap:8px;justify-self:end}.pw-bar__login{background:transparent;border:0;padding:8px 16px;font:600 14px/1 Roboto,sans-serif;color:#5a6473;cursor:pointer;transition:color .2s cubic-bezier(.2,.7,.2,1)}.pw-bar__login:hover,.pw-bar__login:focus-visible{color:#1a1d21;outline:none}.pw-bar__cta{display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 24px;font:600 14px/1 Roboto,sans-serif;color:#fff!important;text-decoration:none;background:var(--first);border:1px solid var(--first);border-radius:var(--public-btn-radius);box-shadow:0 1px #0000000a;transition:transform .2s cubic-bezier(.2,.7,.2,1),box-shadow .2s cubic-bezier(.2,.7,.2,1),background-color .2s cubic-bezier(.2,.7,.2,1),border-color .2s cubic-bezier(.2,.7,.2,1);will-change:transform}.pw-bar__cta:hover,.pw-bar__cta:focus-visible{background:color-mix(in srgb,var(--first) 88%,#000 12%);border-color:color-mix(in srgb,var(--first) 88%,#000 12%);box-shadow:0 10px 24px -12px var(--first);color:#fff!important;outline:none;transform:translateY(-1px)}.pw-bar__toggle{width:40px;height:40px;display:none;place-items:center;background:transparent;border:0;cursor:pointer;padding:0}.pw-bar__toggle span{display:block;width:20px;height:1.5px;background:#1a1d21;margin:3px 0;transition:transform .2s cubic-bezier(.2,.7,.2,1),opacity .2s cubic-bezier(.2,.7,.2,1)}.pw-bar__toggle--open span:nth-child(1){transform:translateY(4.5px) rotate(45deg)}.pw-bar__toggle--open span:nth-child(2){opacity:0}.pw-bar__toggle--open span:nth-child(3){transform:translateY(-4.5px) rotate(-45deg)}@media(max-width:575px){.pw-bar__inner{padding:0 16px;height:60px}.pw-bar__brand-logo{height:24px}.pw-bar__cta{padding:0 16px;height:36px;font-size:13px}.pw-bar__login{padding:8px 10px;font-size:13px}}\n"],
|
|
5288
5313
|
dependencies: [{
|
|
5289
5314
|
kind: "directive",
|
|
5290
|
-
type: i1
|
|
5315
|
+
type: i1.LazyImgDirective,
|
|
5291
5316
|
selector: "img"
|
|
5292
5317
|
}, {
|
|
5293
5318
|
kind: "pipe",
|
|
5294
|
-
type: i2$
|
|
5319
|
+
type: i2$3.TranslocoPipe,
|
|
5295
5320
|
name: "transloco"
|
|
5296
5321
|
}]
|
|
5297
5322
|
});
|
|
@@ -5313,7 +5338,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5313
5338
|
}],
|
|
5314
5339
|
ctorParameters: () => [
|
|
5315
5340
|
{ type: i0.Injector },
|
|
5316
|
-
{ type: i1$
|
|
5341
|
+
{ type: i1$1.AuthService },
|
|
5317
5342
|
{ type: i0.ChangeDetectorRef }
|
|
5318
5343
|
],
|
|
5319
5344
|
propDecorators: { landing: [{ type: Input }] }
|
|
@@ -5442,9 +5467,9 @@ var EntityGroupComponent = class EntityGroupComponent extends AppBaseComponent {
|
|
|
5442
5467
|
ngImport: i0,
|
|
5443
5468
|
type: EntityGroupComponent,
|
|
5444
5469
|
deps: [
|
|
5445
|
-
{ token: i1$
|
|
5446
|
-
{ token: i1$
|
|
5447
|
-
{ token: i1$
|
|
5470
|
+
{ token: i1$1.GroupService },
|
|
5471
|
+
{ token: i1$1.SubscriptionService },
|
|
5472
|
+
{ token: i1$3.NgbModal },
|
|
5448
5473
|
{ token: i0.Injector },
|
|
5449
5474
|
{ token: i0.ChangeDetectorRef }
|
|
5450
5475
|
],
|
|
@@ -5503,7 +5528,7 @@ var EntityGroupComponent = class EntityGroupComponent extends AppBaseComponent {
|
|
|
5503
5528
|
},
|
|
5504
5529
|
{
|
|
5505
5530
|
kind: "directive",
|
|
5506
|
-
type: i1
|
|
5531
|
+
type: i1.RbacAllowDirective,
|
|
5507
5532
|
selector: "[rbacAllow]",
|
|
5508
5533
|
inputs: ["rbacAllow"]
|
|
5509
5534
|
},
|
|
@@ -5764,7 +5789,7 @@ var EntityGroupComponent = class EntityGroupComponent extends AppBaseComponent {
|
|
|
5764
5789
|
},
|
|
5765
5790
|
{
|
|
5766
5791
|
kind: "pipe",
|
|
5767
|
-
type: i2$
|
|
5792
|
+
type: i2$3.TranslocoPipe,
|
|
5768
5793
|
name: "transloco"
|
|
5769
5794
|
}
|
|
5770
5795
|
]
|
|
@@ -5786,9 +5811,9 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5786
5811
|
}]
|
|
5787
5812
|
}],
|
|
5788
5813
|
ctorParameters: () => [
|
|
5789
|
-
{ type: i1$
|
|
5790
|
-
{ type: i1$
|
|
5791
|
-
{ type: i1$
|
|
5814
|
+
{ type: i1$1.GroupService },
|
|
5815
|
+
{ type: i1$1.SubscriptionService },
|
|
5816
|
+
{ type: i1$3.NgbModal },
|
|
5792
5817
|
{ type: i0.Injector },
|
|
5793
5818
|
{ type: i0.ChangeDetectorRef }
|
|
5794
5819
|
],
|
|
@@ -5874,7 +5899,7 @@ var InputContainerComponent = class InputContainerComponent {
|
|
|
5874
5899
|
dependencies: [
|
|
5875
5900
|
{
|
|
5876
5901
|
kind: "directive",
|
|
5877
|
-
type: i1$
|
|
5902
|
+
type: i1$2.NgClass,
|
|
5878
5903
|
selector: "[ngClass]",
|
|
5879
5904
|
inputs: ["class", "ngClass"]
|
|
5880
5905
|
},
|
|
@@ -5914,7 +5939,7 @@ var InputContainerComponent = class InputContainerComponent {
|
|
|
5914
5939
|
},
|
|
5915
5940
|
{
|
|
5916
5941
|
kind: "pipe",
|
|
5917
|
-
type: i2$
|
|
5942
|
+
type: i2$3.TranslocoPipe,
|
|
5918
5943
|
name: "transloco"
|
|
5919
5944
|
}
|
|
5920
5945
|
]
|
|
@@ -6116,10 +6141,10 @@ var GroupDefinitionComponent = class GroupDefinitionComponent extends AppBaseCom
|
|
|
6116
6141
|
ngImport: i0,
|
|
6117
6142
|
type: GroupDefinitionComponent,
|
|
6118
6143
|
deps: [
|
|
6119
|
-
{ token: i1$
|
|
6144
|
+
{ token: i1$1.GroupService },
|
|
6120
6145
|
{ token: i4$1.UntypedFormBuilder },
|
|
6121
|
-
{ token: i1$
|
|
6122
|
-
{ token: i1$
|
|
6146
|
+
{ token: i1$1.SubscriptionService },
|
|
6147
|
+
{ token: i1$1.DataService },
|
|
6123
6148
|
{ token: i0.Injector },
|
|
6124
6149
|
{ token: i0.ChangeDetectorRef },
|
|
6125
6150
|
{ token: ConfirmDialogService }
|
|
@@ -6180,7 +6205,7 @@ var GroupDefinitionComponent = class GroupDefinitionComponent extends AppBaseCom
|
|
|
6180
6205
|
},
|
|
6181
6206
|
{
|
|
6182
6207
|
kind: "directive",
|
|
6183
|
-
type: i1
|
|
6208
|
+
type: i1.ButtonBusyDirective,
|
|
6184
6209
|
selector: "[buttonBusy]",
|
|
6185
6210
|
inputs: ["buttonBusy", "busyText"]
|
|
6186
6211
|
},
|
|
@@ -6261,12 +6286,12 @@ var GroupDefinitionComponent = class GroupDefinitionComponent extends AppBaseCom
|
|
|
6261
6286
|
},
|
|
6262
6287
|
{
|
|
6263
6288
|
kind: "pipe",
|
|
6264
|
-
type: i2$
|
|
6289
|
+
type: i2$3.TranslocoPipe,
|
|
6265
6290
|
name: "transloco"
|
|
6266
6291
|
},
|
|
6267
6292
|
{
|
|
6268
6293
|
kind: "pipe",
|
|
6269
|
-
type: i1$
|
|
6294
|
+
type: i1$2.SlicePipe,
|
|
6270
6295
|
name: "slice"
|
|
6271
6296
|
}
|
|
6272
6297
|
]
|
|
@@ -6294,10 +6319,10 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6294
6319
|
}]
|
|
6295
6320
|
}],
|
|
6296
6321
|
ctorParameters: () => [
|
|
6297
|
-
{ type: i1$
|
|
6322
|
+
{ type: i1$1.GroupService },
|
|
6298
6323
|
{ type: i4$1.UntypedFormBuilder },
|
|
6299
|
-
{ type: i1$
|
|
6300
|
-
{ type: i1$
|
|
6324
|
+
{ type: i1$1.SubscriptionService },
|
|
6325
|
+
{ type: i1$1.DataService },
|
|
6301
6326
|
{ type: i0.Injector },
|
|
6302
6327
|
{ type: i0.ChangeDetectorRef },
|
|
6303
6328
|
{ type: ConfirmDialogService }
|
|
@@ -6505,9 +6530,9 @@ var GroupsComponent = class GroupsComponent extends AppBaseComponent {
|
|
|
6505
6530
|
type: GroupsComponent,
|
|
6506
6531
|
deps: [
|
|
6507
6532
|
{ token: i4$1.UntypedFormBuilder },
|
|
6508
|
-
{ token: i1$
|
|
6509
|
-
{ token: i1$
|
|
6510
|
-
{ token: i1$
|
|
6533
|
+
{ token: i1$1.GroupService },
|
|
6534
|
+
{ token: i1$1.SubscriptionService },
|
|
6535
|
+
{ token: i1$1.DataService },
|
|
6511
6536
|
{ token: i0.Injector },
|
|
6512
6537
|
{ token: i0.ChangeDetectorRef },
|
|
6513
6538
|
{ token: ConfirmDialogService }
|
|
@@ -6587,7 +6612,7 @@ var GroupsComponent = class GroupsComponent extends AppBaseComponent {
|
|
|
6587
6612
|
},
|
|
6588
6613
|
{
|
|
6589
6614
|
kind: "directive",
|
|
6590
|
-
type: i1
|
|
6615
|
+
type: i1.ButtonBusyDirective,
|
|
6591
6616
|
selector: "[buttonBusy]",
|
|
6592
6617
|
inputs: ["buttonBusy", "busyText"]
|
|
6593
6618
|
},
|
|
@@ -6696,7 +6721,7 @@ var GroupsComponent = class GroupsComponent extends AppBaseComponent {
|
|
|
6696
6721
|
},
|
|
6697
6722
|
{
|
|
6698
6723
|
kind: "directive",
|
|
6699
|
-
type: i1$
|
|
6724
|
+
type: i1$2.NgClass,
|
|
6700
6725
|
selector: "[ngClass]",
|
|
6701
6726
|
inputs: ["class", "ngClass"]
|
|
6702
6727
|
},
|
|
@@ -6735,12 +6760,12 @@ var GroupsComponent = class GroupsComponent extends AppBaseComponent {
|
|
|
6735
6760
|
},
|
|
6736
6761
|
{
|
|
6737
6762
|
kind: "pipe",
|
|
6738
|
-
type: i2$
|
|
6763
|
+
type: i2$3.TranslocoPipe,
|
|
6739
6764
|
name: "transloco"
|
|
6740
6765
|
},
|
|
6741
6766
|
{
|
|
6742
6767
|
kind: "pipe",
|
|
6743
|
-
type: i1$
|
|
6768
|
+
type: i1$2.SlicePipe,
|
|
6744
6769
|
name: "slice"
|
|
6745
6770
|
}
|
|
6746
6771
|
]
|
|
@@ -6769,9 +6794,9 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6769
6794
|
}],
|
|
6770
6795
|
ctorParameters: () => [
|
|
6771
6796
|
{ type: i4$1.UntypedFormBuilder },
|
|
6772
|
-
{ type: i1$
|
|
6773
|
-
{ type: i1$
|
|
6774
|
-
{ type: i1$
|
|
6797
|
+
{ type: i1$1.GroupService },
|
|
6798
|
+
{ type: i1$1.SubscriptionService },
|
|
6799
|
+
{ type: i1$1.DataService },
|
|
6775
6800
|
{ type: i0.Injector },
|
|
6776
6801
|
{ type: i0.ChangeDetectorRef },
|
|
6777
6802
|
{ type: ConfirmDialogService }
|
|
@@ -6827,7 +6852,7 @@ var LandingPageFooterBComponent = class LandingPageFooterBComponent extends AppB
|
|
|
6827
6852
|
ngImport: i0,
|
|
6828
6853
|
type: LandingPageFooterBComponent,
|
|
6829
6854
|
deps: [
|
|
6830
|
-
{ token: i1$
|
|
6855
|
+
{ token: i1$1.AuthService },
|
|
6831
6856
|
{ token: i0.ChangeDetectorRef },
|
|
6832
6857
|
{ token: i0.Injector }
|
|
6833
6858
|
],
|
|
@@ -6848,7 +6873,7 @@ var LandingPageFooterBComponent = class LandingPageFooterBComponent extends AppB
|
|
|
6848
6873
|
dependencies: [
|
|
6849
6874
|
{
|
|
6850
6875
|
kind: "directive",
|
|
6851
|
-
type: i1
|
|
6876
|
+
type: i1.LazyImgDirective,
|
|
6852
6877
|
selector: "img"
|
|
6853
6878
|
},
|
|
6854
6879
|
{
|
|
@@ -6872,7 +6897,7 @@ var LandingPageFooterBComponent = class LandingPageFooterBComponent extends AppB
|
|
|
6872
6897
|
},
|
|
6873
6898
|
{
|
|
6874
6899
|
kind: "pipe",
|
|
6875
|
-
type: i1$
|
|
6900
|
+
type: i1$2.DatePipe,
|
|
6876
6901
|
name: "date"
|
|
6877
6902
|
}
|
|
6878
6903
|
]
|
|
@@ -6894,7 +6919,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6894
6919
|
}]
|
|
6895
6920
|
}],
|
|
6896
6921
|
ctorParameters: () => [
|
|
6897
|
-
{ type: i1$
|
|
6922
|
+
{ type: i1$1.AuthService },
|
|
6898
6923
|
{ type: i0.ChangeDetectorRef },
|
|
6899
6924
|
{ type: i0.Injector }
|
|
6900
6925
|
]
|
|
@@ -7094,7 +7119,7 @@ var NumberPickerComponent = class NumberPickerComponent {
|
|
|
7094
7119
|
version: "22.2.3",
|
|
7095
7120
|
ngImport: i0,
|
|
7096
7121
|
type: NumberPickerComponent,
|
|
7097
|
-
deps: [{ token: i1$
|
|
7122
|
+
deps: [{ token: i1$1.NumberPickerService }],
|
|
7098
7123
|
target: i0.ɵɵFactoryTarget.Component
|
|
7099
7124
|
});
|
|
7100
7125
|
}
|
|
@@ -7216,7 +7241,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
7216
7241
|
styles: ["input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{appearance:none;margin:0}.increase:hover,.decrease:hover{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;cursor:pointer;background-color:#d8d8d8}.increase{border-top-right-radius:3px!important;border-bottom-right-radius:3px!important}.vertical{display:flex;justify-content:center;flex-direction:column;text-align:center;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;cursor:pointer}.vertical span{line-height:15px}.input-md .vertical span,.input-sm .vertical span{padding:2px 10px}.input-lg .vertical span{padding:4px 10px}.input-xlg .vertical span{padding:7px 10px}.input-md,.input-medium{height:45px}.input-lg,.input-large{height:50px}.input-xlg,.input-xlarge{height:75px}.input-md input,.input-medium input,.input-md span,.input-medium span{font-size:22px}.input-lg input,.input-large input,.input-lg span,.input-large span{font-size:25px}.input-xlg input,.input-xlarge input,.input-xlg span,.input-xlarge span{font-size:38px}\n"]
|
|
7217
7242
|
}]
|
|
7218
7243
|
}],
|
|
7219
|
-
ctorParameters: () => [{ type: i1$
|
|
7244
|
+
ctorParameters: () => [{ type: i1$1.NumberPickerService }],
|
|
7220
7245
|
propDecorators: {
|
|
7221
7246
|
min: [{ type: Input }],
|
|
7222
7247
|
showTooltip: [{ type: Input }],
|
|
@@ -7305,7 +7330,7 @@ var OnlineIndicatorComponent = class OnlineIndicatorComponent {
|
|
|
7305
7330
|
},
|
|
7306
7331
|
{
|
|
7307
7332
|
kind: "pipe",
|
|
7308
|
-
type: i2$
|
|
7333
|
+
type: i2$3.TranslocoPipe,
|
|
7309
7334
|
name: "transloco"
|
|
7310
7335
|
},
|
|
7311
7336
|
{
|
|
@@ -7386,7 +7411,7 @@ var PasswordValidationComponent = class PasswordValidationComponent extends AppB
|
|
|
7386
7411
|
type: PasswordValidationComponent,
|
|
7387
7412
|
deps: [
|
|
7388
7413
|
{ token: i0.Injector },
|
|
7389
|
-
{ token: i1$
|
|
7414
|
+
{ token: i1$3.NgbModal },
|
|
7390
7415
|
{ token: i0.ChangeDetectorRef }
|
|
7391
7416
|
],
|
|
7392
7417
|
target: i0.ɵɵFactoryTarget.Component
|
|
@@ -7446,13 +7471,13 @@ var PasswordValidationComponent = class PasswordValidationComponent extends AppB
|
|
|
7446
7471
|
},
|
|
7447
7472
|
{
|
|
7448
7473
|
kind: "directive",
|
|
7449
|
-
type: i1
|
|
7474
|
+
type: i1.ButtonBusyDirective,
|
|
7450
7475
|
selector: "[buttonBusy]",
|
|
7451
7476
|
inputs: ["buttonBusy", "busyText"]
|
|
7452
7477
|
},
|
|
7453
7478
|
{
|
|
7454
7479
|
kind: "pipe",
|
|
7455
|
-
type: i2$
|
|
7480
|
+
type: i2$3.TranslocoPipe,
|
|
7456
7481
|
name: "transloco"
|
|
7457
7482
|
}
|
|
7458
7483
|
]
|
|
@@ -7475,7 +7500,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
7475
7500
|
}],
|
|
7476
7501
|
ctorParameters: () => [
|
|
7477
7502
|
{ type: i0.Injector },
|
|
7478
|
-
{ type: i1$
|
|
7503
|
+
{ type: i1$3.NgbModal },
|
|
7479
7504
|
{ type: i0.ChangeDetectorRef }
|
|
7480
7505
|
],
|
|
7481
7506
|
propDecorators: {
|
|
@@ -7602,6 +7627,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
7602
7627
|
ctorParameters: () => [{ type: i0.ElementRef }],
|
|
7603
7628
|
propDecorators: { data: [{ type: Input }] }
|
|
7604
7629
|
});
|
|
7630
|
+
const TABS = /* @__PURE__ */ new Set(["privacy-policy", "terms-of-service"]);
|
|
7605
7631
|
var PrivacyAndTosComponent = class PrivacyAndTosComponent extends AppBaseComponent {
|
|
7606
7632
|
get companyName() {
|
|
7607
7633
|
return this.appConfig?.company?.name ?? "";
|
|
@@ -7609,57 +7635,60 @@ var PrivacyAndTosComponent = class PrivacyAndTosComponent extends AppBaseCompone
|
|
|
7609
7635
|
get companyEmail() {
|
|
7610
7636
|
return this.appConfig?.company?.email ?? "";
|
|
7611
7637
|
}
|
|
7612
|
-
constructor(
|
|
7638
|
+
constructor(legalPages, injector, cdr) {
|
|
7613
7639
|
super(injector);
|
|
7614
|
-
this.
|
|
7615
|
-
this.document = document;
|
|
7616
|
-
this.sanitizer = sanitizer;
|
|
7640
|
+
this.legalPages = legalPages;
|
|
7617
7641
|
this.cdr = cdr;
|
|
7618
7642
|
this.routers = ADMIN_ROUTERS;
|
|
7619
7643
|
this.tabId = "privacy-policy";
|
|
7620
7644
|
this.tocPrivacy = [];
|
|
7621
7645
|
this.tocTos = [];
|
|
7646
|
+
this.destroyRef = inject(DestroyRef);
|
|
7622
7647
|
}
|
|
7623
7648
|
get canEditPolicy() {
|
|
7624
7649
|
return !!this.privacyServiceId && this.permissionService.isUserSubscriptionSuperAdmin();
|
|
7625
7650
|
}
|
|
7626
7651
|
ngOnInit() {
|
|
7627
|
-
|
|
7628
|
-
|
|
7629
|
-
|
|
7630
|
-
|
|
7631
|
-
this.isLoaded = false
|
|
7632
|
-
|
|
7633
|
-
this.
|
|
7634
|
-
if (this.id) {
|
|
7635
|
-
const id = this.id === "details" ? this.privacyAndTos : this.id;
|
|
7636
|
-
this.getTosDetails(Number(id));
|
|
7637
|
-
this.isPublic = true;
|
|
7638
|
-
} else if (this.productId) this.getSubscribedProduct(this.productId);
|
|
7639
|
-
else this.route.params.subscribe((id) => {
|
|
7640
|
-
this.tabId = id["data"] ?? "privacy-policy";
|
|
7641
|
-
this.getSubscribedProduct();
|
|
7642
|
-
this.cdr.markForCheck();
|
|
7643
|
-
});
|
|
7644
|
-
this.cdr.markForCheck();
|
|
7645
|
-
});
|
|
7646
|
-
}
|
|
7647
|
-
getSubscribedProduct(id) {
|
|
7648
|
-
this.userStore().subscribe((user) => {
|
|
7649
|
-
this.user = user;
|
|
7650
|
-
if (user) this.fetchUserSubscriptions(user.id, id);
|
|
7652
|
+
const snapshot = this.route.snapshot;
|
|
7653
|
+
const tab = snapshot.queryParamMap.get("tab") ?? snapshot.data?.["tab"];
|
|
7654
|
+
this.tabId = TABS.has(tab) ? tab : "privacy-policy";
|
|
7655
|
+
this.isPublic = !!snapshot.data?.["public"];
|
|
7656
|
+
(this.productId || !this.isPublic ? this.productSlug(this.productId ?? PermissionService.selectedProduct?.id) : this.route.params.pipe(map((params) => params["slug"] ?? null))).pipe(tap(() => this.isLoaded = false), switchMap((slug) => this.legalPages.getPolicy(slug).pipe(catchError(() => of(null)))), takeUntilDestroyed(this.destroyRef)).subscribe((policy) => {
|
|
7657
|
+
this.show(policy);
|
|
7658
|
+
this.isLoaded = true;
|
|
7651
7659
|
this.cdr.markForCheck();
|
|
7652
7660
|
});
|
|
7653
7661
|
}
|
|
7654
|
-
|
|
7655
|
-
this.userService.getUserSubscriptions(userId).
|
|
7656
|
-
|
|
7657
|
-
|
|
7658
|
-
|
|
7659
|
-
|
|
7660
|
-
|
|
7661
|
-
|
|
7662
|
-
|
|
7662
|
+
productSlug(productId) {
|
|
7663
|
+
return this.userStore().pipe(map((user) => user?.id ?? null), distinctUntilChanged(), switchMap((userId) => userId ? this.userService.getUserSubscriptions(userId).pipe(map((response) => this.policyIdOf(response?.subscriptions, productId)), catchError(() => of(null))) : of(null)), switchMap((policyId) => this.legalPages.slugFor(policyId)));
|
|
7664
|
+
}
|
|
7665
|
+
policyIdOf(subscriptions, productId) {
|
|
7666
|
+
return (subscriptions ?? []).flatMap((subscription) => subscription?.products ?? []).find((item) => item?.id === productId)?.product_privacy_service_id ?? null;
|
|
7667
|
+
}
|
|
7668
|
+
show(policy) {
|
|
7669
|
+
this.privacyServiceId = policy?.id;
|
|
7670
|
+
const privacy = this.parse(policy?.privacy, "pp");
|
|
7671
|
+
const tos = this.parse(policy?.tos, "tos");
|
|
7672
|
+
this.tocPrivacy = privacy.toc;
|
|
7673
|
+
this.tocTos = tos.toc;
|
|
7674
|
+
this.data = policy ? {
|
|
7675
|
+
tos_updated_at: policy.tos_updated_at,
|
|
7676
|
+
privacy: privacy.html,
|
|
7677
|
+
tos: tos.html
|
|
7678
|
+
} : {};
|
|
7679
|
+
}
|
|
7680
|
+
parse(html, prefix) {
|
|
7681
|
+
if (!html || typeof DOMParser === "undefined") return {
|
|
7682
|
+
html,
|
|
7683
|
+
toc: []
|
|
7684
|
+
};
|
|
7685
|
+
const doc = new DOMParser().parseFromString(html, "text/html");
|
|
7686
|
+
doc.querySelectorAll("button").forEach((b) => b.remove());
|
|
7687
|
+
const toc = this.buildToc(doc, prefix);
|
|
7688
|
+
return {
|
|
7689
|
+
html: doc.body.innerHTML,
|
|
7690
|
+
toc
|
|
7691
|
+
};
|
|
7663
7692
|
}
|
|
7664
7693
|
buildToc(doc, prefix) {
|
|
7665
7694
|
const items = [];
|
|
@@ -7673,43 +7702,6 @@ var PrivacyAndTosComponent = class PrivacyAndTosComponent extends AppBaseCompone
|
|
|
7673
7702
|
});
|
|
7674
7703
|
return items;
|
|
7675
7704
|
}
|
|
7676
|
-
findRequiredProducts(productId) {
|
|
7677
|
-
const products = [];
|
|
7678
|
-
this.subscribedSubscriptions.forEach((subscribe) => {
|
|
7679
|
-
const requiredProduct = subscribe?.products.find((x) => x?.id === productId);
|
|
7680
|
-
if (requiredProduct) products.push(requiredProduct);
|
|
7681
|
-
});
|
|
7682
|
-
return products;
|
|
7683
|
-
}
|
|
7684
|
-
getTosDetails(id) {
|
|
7685
|
-
this.privacyServiceId = id;
|
|
7686
|
-
this.adminService.getTosDetails(id).subscribe((response) => {
|
|
7687
|
-
const parser = new DOMParser();
|
|
7688
|
-
let privacyData;
|
|
7689
|
-
if (response?.privacy) {
|
|
7690
|
-
const privacyDoc = parser.parseFromString(response?.privacy, "text/html");
|
|
7691
|
-
privacyDoc.querySelectorAll("button").forEach((b) => b.remove());
|
|
7692
|
-
this.tocPrivacy = this.buildToc(privacyDoc, "pp");
|
|
7693
|
-
privacyData = this.sanitizer.bypassSecurityTrustHtml(privacyDoc.body.innerHTML);
|
|
7694
|
-
}
|
|
7695
|
-
let tosData;
|
|
7696
|
-
if (response?.tos) {
|
|
7697
|
-
const tosDoc = parser.parseFromString(response?.tos, "text/html");
|
|
7698
|
-
tosDoc.querySelectorAll("button").forEach((b) => b.remove());
|
|
7699
|
-
this.tocTos = this.buildToc(tosDoc, "tos");
|
|
7700
|
-
tosData = this.sanitizer.bypassSecurityTrustHtml(tosDoc.body.innerHTML);
|
|
7701
|
-
}
|
|
7702
|
-
this.data = {
|
|
7703
|
-
...response,
|
|
7704
|
-
privacy: privacyData,
|
|
7705
|
-
tos: tosData
|
|
7706
|
-
};
|
|
7707
|
-
this.cdr.markForCheck();
|
|
7708
|
-
}).add(() => {
|
|
7709
|
-
this.isLoaded = true;
|
|
7710
|
-
this.cdr.markForCheck();
|
|
7711
|
-
});
|
|
7712
|
-
}
|
|
7713
7705
|
static {
|
|
7714
7706
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
7715
7707
|
minVersion: "12.0.0",
|
|
@@ -7717,10 +7709,8 @@ var PrivacyAndTosComponent = class PrivacyAndTosComponent extends AppBaseCompone
|
|
|
7717
7709
|
ngImport: i0,
|
|
7718
7710
|
type: PrivacyAndTosComponent,
|
|
7719
7711
|
deps: [
|
|
7720
|
-
{ token: i1.
|
|
7712
|
+
{ token: i1$1.LegalPagesService },
|
|
7721
7713
|
{ token: i0.Injector },
|
|
7722
|
-
{ token: DOCUMENT$1 },
|
|
7723
|
-
{ token: i2$2.DomSanitizer },
|
|
7724
7714
|
{ token: i0.ChangeDetectorRef }
|
|
7725
7715
|
],
|
|
7726
7716
|
target: i0.ɵɵFactoryTarget.Component
|
|
@@ -7770,12 +7760,12 @@ var PrivacyAndTosComponent = class PrivacyAndTosComponent extends AppBaseCompone
|
|
|
7770
7760
|
},
|
|
7771
7761
|
{
|
|
7772
7762
|
kind: "directive",
|
|
7773
|
-
type: i1$
|
|
7763
|
+
type: i1$3.NgbNavContent,
|
|
7774
7764
|
selector: "ng-template[ngbNavContent]"
|
|
7775
7765
|
},
|
|
7776
7766
|
{
|
|
7777
7767
|
kind: "directive",
|
|
7778
|
-
type: i1$
|
|
7768
|
+
type: i1$3.NgbNav,
|
|
7779
7769
|
selector: "[ngbNav]",
|
|
7780
7770
|
inputs: [
|
|
7781
7771
|
"activeId",
|
|
@@ -7795,7 +7785,7 @@ var PrivacyAndTosComponent = class PrivacyAndTosComponent extends AppBaseCompone
|
|
|
7795
7785
|
},
|
|
7796
7786
|
{
|
|
7797
7787
|
kind: "directive",
|
|
7798
|
-
type: i1$
|
|
7788
|
+
type: i1$3.NgbNavItem,
|
|
7799
7789
|
selector: "[ngbNavItem]",
|
|
7800
7790
|
inputs: [
|
|
7801
7791
|
"destroyOnHide",
|
|
@@ -7808,22 +7798,22 @@ var PrivacyAndTosComponent = class PrivacyAndTosComponent extends AppBaseCompone
|
|
|
7808
7798
|
},
|
|
7809
7799
|
{
|
|
7810
7800
|
kind: "directive",
|
|
7811
|
-
type: i1$
|
|
7801
|
+
type: i1$3.NgbNavItemRole,
|
|
7812
7802
|
selector: "[ngbNavItem]:not(ng-container)"
|
|
7813
7803
|
},
|
|
7814
7804
|
{
|
|
7815
7805
|
kind: "directive",
|
|
7816
|
-
type: i1$
|
|
7806
|
+
type: i1$3.NgbNavLink,
|
|
7817
7807
|
selector: "a[ngbNavLink]"
|
|
7818
7808
|
},
|
|
7819
7809
|
{
|
|
7820
7810
|
kind: "directive",
|
|
7821
|
-
type: i1$
|
|
7811
|
+
type: i1$3.NgbNavLinkBase,
|
|
7822
7812
|
selector: "[ngbNavLink]"
|
|
7823
7813
|
},
|
|
7824
7814
|
{
|
|
7825
7815
|
kind: "component",
|
|
7826
|
-
type: i1$
|
|
7816
|
+
type: i1$3.NgbNavOutlet,
|
|
7827
7817
|
selector: "[ngbNavOutlet]",
|
|
7828
7818
|
inputs: ["paneRole", "ngbNavOutlet"]
|
|
7829
7819
|
},
|
|
@@ -7835,12 +7825,12 @@ var PrivacyAndTosComponent = class PrivacyAndTosComponent extends AppBaseCompone
|
|
|
7835
7825
|
},
|
|
7836
7826
|
{
|
|
7837
7827
|
kind: "pipe",
|
|
7838
|
-
type: i2$
|
|
7828
|
+
type: i2$3.TranslocoPipe,
|
|
7839
7829
|
name: "transloco"
|
|
7840
7830
|
},
|
|
7841
7831
|
{
|
|
7842
7832
|
kind: "pipe",
|
|
7843
|
-
type: i1$
|
|
7833
|
+
type: i1$2.DatePipe,
|
|
7844
7834
|
name: "date"
|
|
7845
7835
|
}
|
|
7846
7836
|
]
|
|
@@ -7862,71 +7852,12 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
7862
7852
|
}]
|
|
7863
7853
|
}],
|
|
7864
7854
|
ctorParameters: () => [
|
|
7865
|
-
{ type: i1.
|
|
7855
|
+
{ type: i1$1.LegalPagesService },
|
|
7866
7856
|
{ type: i0.Injector },
|
|
7867
|
-
{
|
|
7868
|
-
type: Document,
|
|
7869
|
-
decorators: [{
|
|
7870
|
-
type: Inject,
|
|
7871
|
-
args: [DOCUMENT$1]
|
|
7872
|
-
}]
|
|
7873
|
-
},
|
|
7874
|
-
{ type: i2$2.DomSanitizer },
|
|
7875
7857
|
{ type: i0.ChangeDetectorRef }
|
|
7876
7858
|
],
|
|
7877
7859
|
propDecorators: { productId: [{ type: Input }] }
|
|
7878
7860
|
});
|
|
7879
|
-
var PrivacyPolicyComponent = class PrivacyPolicyComponent {
|
|
7880
|
-
constructor(appConfigService, router) {
|
|
7881
|
-
this.appConfigService = appConfigService;
|
|
7882
|
-
this.router = router;
|
|
7883
|
-
}
|
|
7884
|
-
ngOnInit() {
|
|
7885
|
-
this.appConfigService.appConfig$.pipe(filter((config) => !!config?.["main_tos_id"]), take(1)).subscribe((config) => {
|
|
7886
|
-
this.router.navigate(["/privacy-and-tos", config["main_tos_id"]], {
|
|
7887
|
-
queryParams: { tab: "privacy-policy" },
|
|
7888
|
-
replaceUrl: true
|
|
7889
|
-
});
|
|
7890
|
-
});
|
|
7891
|
-
}
|
|
7892
|
-
static {
|
|
7893
|
-
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
7894
|
-
minVersion: "12.0.0",
|
|
7895
|
-
version: "22.2.3",
|
|
7896
|
-
ngImport: i0,
|
|
7897
|
-
type: PrivacyPolicyComponent,
|
|
7898
|
-
deps: [{ token: i2$3.AppConfigService }, { token: i9$1.Router }],
|
|
7899
|
-
target: i0.ɵɵFactoryTarget.Component
|
|
7900
|
-
});
|
|
7901
|
-
}
|
|
7902
|
-
static {
|
|
7903
|
-
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
7904
|
-
minVersion: "14.0.0",
|
|
7905
|
-
version: "22.2.3",
|
|
7906
|
-
type: PrivacyPolicyComponent,
|
|
7907
|
-
isStandalone: false,
|
|
7908
|
-
selector: "pw-privacy-policy",
|
|
7909
|
-
ngImport: i0,
|
|
7910
|
-
template: "",
|
|
7911
|
-
isInline: true
|
|
7912
|
-
});
|
|
7913
|
-
}
|
|
7914
|
-
};
|
|
7915
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
7916
|
-
minVersion: "12.0.0",
|
|
7917
|
-
version: "22.2.3",
|
|
7918
|
-
ngImport: i0,
|
|
7919
|
-
type: PrivacyPolicyComponent,
|
|
7920
|
-
decorators: [{
|
|
7921
|
-
type: Component,
|
|
7922
|
-
args: [{
|
|
7923
|
-
selector: "pw-privacy-policy",
|
|
7924
|
-
template: "",
|
|
7925
|
-
standalone: false
|
|
7926
|
-
}]
|
|
7927
|
-
}],
|
|
7928
|
-
ctorParameters: () => [{ type: i2$3.AppConfigService }, { type: i9$1.Router }]
|
|
7929
|
-
});
|
|
7930
7861
|
var PwTabsComponent = class PwTabsComponent extends AppBaseComponent {
|
|
7931
7862
|
constructor(injector, cdr) {
|
|
7932
7863
|
super(injector);
|
|
@@ -8322,12 +8253,12 @@ var CompletionBarComponent = class CompletionBarComponent {
|
|
|
8322
8253
|
styles: ["@charset \"UTF-8\";:root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_sub_bg: color-mix(in srgb, var(--first, rgb(23 105 225)) 85%, #000000);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255);--dashboard_bg: rgb(255 255 255);--public-btn-radius: 24px}.pw-completion-bar{display:inline-flex;align-items:center;gap:8px;line-height:1}.pw-completion-bar__track{display:inline-flex;align-items:flex-end;gap:2px}.pw-completion-bar__seg{width:4px;height:14px;border-radius:1px;background-color:#e2e5ea;transition:background-color .15s ease-out}.pw-completion-bar__label{font-size:12px;font-weight:500;font-variant-numeric:tabular-nums;color:oklch(from var(--text) 40% c h);min-width:30px}.pw-completion-bar__track.tier-low .pw-completion-bar__seg.is-filled{background-color:#ff586b}.pw-completion-bar__track.tier-mid .pw-completion-bar__seg.is-filled{background-color:#fbab00}.pw-completion-bar__track.tier-high .pw-completion-bar__seg.is-filled{background-color:#45d292}\n"],
|
|
8323
8254
|
dependencies: [{
|
|
8324
8255
|
kind: "directive",
|
|
8325
|
-
type: i1$
|
|
8256
|
+
type: i1$2.NgClass,
|
|
8326
8257
|
selector: "[ngClass]",
|
|
8327
8258
|
inputs: ["class", "ngClass"]
|
|
8328
8259
|
}, {
|
|
8329
8260
|
kind: "directive",
|
|
8330
|
-
type: i1$
|
|
8261
|
+
type: i1$3.NgbTooltip,
|
|
8331
8262
|
selector: "[ngbTooltip]",
|
|
8332
8263
|
inputs: [
|
|
8333
8264
|
"animation",
|
|
@@ -8545,13 +8476,13 @@ var OnboardingChecklistComponent = class OnboardingChecklistComponent {
|
|
|
8545
8476
|
dependencies: [
|
|
8546
8477
|
{
|
|
8547
8478
|
kind: "directive",
|
|
8548
|
-
type: i1$
|
|
8479
|
+
type: i1$2.NgClass,
|
|
8549
8480
|
selector: "[ngClass]",
|
|
8550
8481
|
inputs: ["class", "ngClass"]
|
|
8551
8482
|
},
|
|
8552
8483
|
{
|
|
8553
8484
|
kind: "directive",
|
|
8554
|
-
type: i1$
|
|
8485
|
+
type: i1$2.NgTemplateOutlet,
|
|
8555
8486
|
selector: "[ngTemplateOutlet]",
|
|
8556
8487
|
inputs: [
|
|
8557
8488
|
"ngTemplateOutletContext",
|
|
@@ -8665,7 +8596,7 @@ var OnboardingChecklistComponent = class OnboardingChecklistComponent {
|
|
|
8665
8596
|
},
|
|
8666
8597
|
{
|
|
8667
8598
|
kind: "pipe",
|
|
8668
|
-
type: i2$
|
|
8599
|
+
type: i2$3.TranslocoPipe,
|
|
8669
8600
|
name: "transloco"
|
|
8670
8601
|
}
|
|
8671
8602
|
],
|
|
@@ -8893,57 +8824,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8893
8824
|
}]
|
|
8894
8825
|
}]
|
|
8895
8826
|
});
|
|
8896
|
-
var TermsConditionsComponent = class TermsConditionsComponent {
|
|
8897
|
-
constructor(appConfigService, router) {
|
|
8898
|
-
this.appConfigService = appConfigService;
|
|
8899
|
-
this.router = router;
|
|
8900
|
-
}
|
|
8901
|
-
ngOnInit() {
|
|
8902
|
-
this.appConfigService.appConfig$.pipe(filter((config) => !!config?.["main_tos_id"]), take(1)).subscribe((config) => {
|
|
8903
|
-
this.router.navigate(["/privacy-and-tos", config["main_tos_id"]], {
|
|
8904
|
-
queryParams: { tab: "terms-of-service" },
|
|
8905
|
-
replaceUrl: true
|
|
8906
|
-
});
|
|
8907
|
-
});
|
|
8908
|
-
}
|
|
8909
|
-
static {
|
|
8910
|
-
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
8911
|
-
minVersion: "12.0.0",
|
|
8912
|
-
version: "22.2.3",
|
|
8913
|
-
ngImport: i0,
|
|
8914
|
-
type: TermsConditionsComponent,
|
|
8915
|
-
deps: [{ token: i2$3.AppConfigService }, { token: i9$1.Router }],
|
|
8916
|
-
target: i0.ɵɵFactoryTarget.Component
|
|
8917
|
-
});
|
|
8918
|
-
}
|
|
8919
|
-
static {
|
|
8920
|
-
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
8921
|
-
minVersion: "14.0.0",
|
|
8922
|
-
version: "22.2.3",
|
|
8923
|
-
type: TermsConditionsComponent,
|
|
8924
|
-
isStandalone: false,
|
|
8925
|
-
selector: "pw-terms-conditions",
|
|
8926
|
-
ngImport: i0,
|
|
8927
|
-
template: "",
|
|
8928
|
-
isInline: true
|
|
8929
|
-
});
|
|
8930
|
-
}
|
|
8931
|
-
};
|
|
8932
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
8933
|
-
minVersion: "12.0.0",
|
|
8934
|
-
version: "22.2.3",
|
|
8935
|
-
ngImport: i0,
|
|
8936
|
-
type: TermsConditionsComponent,
|
|
8937
|
-
decorators: [{
|
|
8938
|
-
type: Component,
|
|
8939
|
-
args: [{
|
|
8940
|
-
selector: "pw-terms-conditions",
|
|
8941
|
-
template: "",
|
|
8942
|
-
standalone: false
|
|
8943
|
-
}]
|
|
8944
|
-
}],
|
|
8945
|
-
ctorParameters: () => [{ type: i2$3.AppConfigService }, { type: i9$1.Router }]
|
|
8946
|
-
});
|
|
8947
8827
|
const allModules = [
|
|
8948
8828
|
NgbTooltipModule,
|
|
8949
8829
|
TooltipModule,
|
|
@@ -8986,8 +8866,6 @@ var SharedComponentsModule = class SharedComponentsModule {
|
|
|
8986
8866
|
DateRangePickerComponent,
|
|
8987
8867
|
PermissionTreeComponent,
|
|
8988
8868
|
PrivacyAndTosComponent,
|
|
8989
|
-
PrivacyPolicyComponent,
|
|
8990
|
-
TermsConditionsComponent,
|
|
8991
8869
|
SplashComponent,
|
|
8992
8870
|
AuthenticatorComponent,
|
|
8993
8871
|
ClearBitIconComponent,
|
|
@@ -9070,8 +8948,6 @@ var SharedComponentsModule = class SharedComponentsModule {
|
|
|
9070
8948
|
i2.NgxDaterangepickerMd,
|
|
9071
8949
|
PermissionTreeComponent,
|
|
9072
8950
|
PrivacyAndTosComponent,
|
|
9073
|
-
PrivacyPolicyComponent,
|
|
9074
|
-
TermsConditionsComponent,
|
|
9075
8951
|
SplashComponent,
|
|
9076
8952
|
AuthenticatorComponent,
|
|
9077
8953
|
ClearBitIconComponent,
|
|
@@ -9150,8 +9026,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
9150
9026
|
DateRangePickerComponent,
|
|
9151
9027
|
PermissionTreeComponent,
|
|
9152
9028
|
PrivacyAndTosComponent,
|
|
9153
|
-
PrivacyPolicyComponent,
|
|
9154
|
-
TermsConditionsComponent,
|
|
9155
9029
|
SplashComponent,
|
|
9156
9030
|
AuthenticatorComponent,
|
|
9157
9031
|
ClearBitIconComponent,
|
|
@@ -9208,8 +9082,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
9208
9082
|
allModules,
|
|
9209
9083
|
PermissionTreeComponent,
|
|
9210
9084
|
PrivacyAndTosComponent,
|
|
9211
|
-
PrivacyPolicyComponent,
|
|
9212
|
-
TermsConditionsComponent,
|
|
9213
9085
|
SplashComponent,
|
|
9214
9086
|
AuthenticatorComponent,
|
|
9215
9087
|
ClearBitIconComponent,
|
|
@@ -9231,6 +9103,50 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
9231
9103
|
}]
|
|
9232
9104
|
}]
|
|
9233
9105
|
});
|
|
9106
|
+
const TITLES = {
|
|
9107
|
+
"privacy-policy": "Privacy Policy",
|
|
9108
|
+
"terms-of-service": "Terms & conditions"
|
|
9109
|
+
};
|
|
9110
|
+
function publicLegalPageRoutes(options = {}) {
|
|
9111
|
+
const page = (path, tab) => ({
|
|
9112
|
+
path,
|
|
9113
|
+
component: PrivacyAndTosComponent,
|
|
9114
|
+
data: {
|
|
9115
|
+
title: options.title ?? TITLES[tab],
|
|
9116
|
+
...options.description ? { description: options.description } : {},
|
|
9117
|
+
public: true,
|
|
9118
|
+
tab
|
|
9119
|
+
},
|
|
9120
|
+
...options.canActivate ? { canActivate: options.canActivate } : {}
|
|
9121
|
+
});
|
|
9122
|
+
return [
|
|
9123
|
+
page("privacy-policy", "privacy-policy"),
|
|
9124
|
+
page("privacy-policy/:slug", "privacy-policy"),
|
|
9125
|
+
page("terms-conditions", "terms-of-service"),
|
|
9126
|
+
page("terms-conditions/:slug", "terms-of-service"),
|
|
9127
|
+
{
|
|
9128
|
+
path: "privacy-and-tos",
|
|
9129
|
+
redirectTo: "privacy-policy",
|
|
9130
|
+
pathMatch: "full"
|
|
9131
|
+
},
|
|
9132
|
+
{
|
|
9133
|
+
path: "privacy-and-tos/:Id",
|
|
9134
|
+
redirectTo: "privacy-policy",
|
|
9135
|
+
pathMatch: "full"
|
|
9136
|
+
}
|
|
9137
|
+
];
|
|
9138
|
+
}
|
|
9139
|
+
function dashboardLegalPageRoutes() {
|
|
9140
|
+
const page = (path, tab) => ({
|
|
9141
|
+
path,
|
|
9142
|
+
component: PrivacyAndTosComponent,
|
|
9143
|
+
data: {
|
|
9144
|
+
title: TITLES[tab],
|
|
9145
|
+
tab
|
|
9146
|
+
}
|
|
9147
|
+
});
|
|
9148
|
+
return [page("privacy-policies", "privacy-policy"), page("terms-of-service", "terms-of-service")];
|
|
9149
|
+
}
|
|
9234
9150
|
function hasOpenMandatorySteps(status) {
|
|
9235
9151
|
const progress = status?.progress;
|
|
9236
9152
|
return status?.status === "ok" && !!progress?.total && progress.done < progress.total;
|
|
@@ -9253,7 +9169,7 @@ var CollapsibleSidebarSuperAdminGuard = class CollapsibleSidebarSuperAdminGuard
|
|
|
9253
9169
|
version: "22.2.3",
|
|
9254
9170
|
ngImport: i0,
|
|
9255
9171
|
type: CollapsibleSidebarSuperAdminGuard,
|
|
9256
|
-
deps: [{ token: i1$
|
|
9172
|
+
deps: [{ token: i1$1.UserService }, { token: i1$1.PermissionService }],
|
|
9257
9173
|
target: i0.ɵɵFactoryTarget.Injectable
|
|
9258
9174
|
});
|
|
9259
9175
|
}
|
|
@@ -9276,7 +9192,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
9276
9192
|
type: Injectable,
|
|
9277
9193
|
args: [{ providedIn: "root" }]
|
|
9278
9194
|
}],
|
|
9279
|
-
ctorParameters: () => [{ type: i1$
|
|
9195
|
+
ctorParameters: () => [{ type: i1$1.UserService }, { type: i1$1.PermissionService }]
|
|
9280
9196
|
});
|
|
9281
9197
|
var UiLayoutService = class UiLayoutService {
|
|
9282
9198
|
constructor(api) {
|
|
@@ -9293,7 +9209,7 @@ var UiLayoutService = class UiLayoutService {
|
|
|
9293
9209
|
version: "22.2.3",
|
|
9294
9210
|
ngImport: i0,
|
|
9295
9211
|
type: UiLayoutService,
|
|
9296
|
-
deps: [{ token: i1$
|
|
9212
|
+
deps: [{ token: i1$1.MainApiHttpService }],
|
|
9297
9213
|
target: i0.ɵɵFactoryTarget.Injectable
|
|
9298
9214
|
});
|
|
9299
9215
|
}
|
|
@@ -9316,7 +9232,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
9316
9232
|
type: Injectable,
|
|
9317
9233
|
args: [{ providedIn: "root" }]
|
|
9318
9234
|
}],
|
|
9319
|
-
ctorParameters: () => [{ type: i1$
|
|
9235
|
+
ctorParameters: () => [{ type: i1$1.MainApiHttpService }]
|
|
9320
9236
|
});
|
|
9321
9237
|
const ICONS = {
|
|
9322
9238
|
warning: "fa-triangle-exclamation",
|
|
@@ -9500,6 +9416,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
9500
9416
|
}]
|
|
9501
9417
|
}
|
|
9502
9418
|
});
|
|
9503
|
-
export { AiKnowledgeComponent, AuthenticatorComponent, BRAIN_CHAT_PRODUCT_PROMPTS, BRAIN_CHAT_UPLOAD_APIS, COMPONENT_REGISTRY, ClearBitIconComponent, CollapsibleSidebarComponent, CollapsibleSidebarKeyboardShortcutDirective, CollapsibleSidebarService, CollapsibleSidebarSuperAdminGuard, CollapsibleSidebarTriggerDirective, ComingSoonComponent, CommandPaletteComponent, CommandPaletteService, CompletionBarComponent, ConfirmDialogComponent, ConfirmDialogService, DateRangePickerComponent, DynamicPageContextService, EntityGroupComponent, GroupDefinitionComponent, GroupsComponent, HeaderComponent, InputContainerComponent, LandingPageFooterBComponent, NoDataComponent, NumberPickerComponent, OnboardingChecklistComponent, OnlineIndicatorComponent, PasswordValidationComponent, PermissionTreeComponent, PrivacyAndTosComponent,
|
|
9419
|
+
export { AiKnowledgeComponent, AuthenticatorComponent, BRAIN_CHAT_PRODUCT_PROMPTS, BRAIN_CHAT_UPLOAD_APIS, COMPONENT_REGISTRY, ClearBitIconComponent, CollapsibleSidebarComponent, CollapsibleSidebarKeyboardShortcutDirective, CollapsibleSidebarService, CollapsibleSidebarSuperAdminGuard, CollapsibleSidebarTriggerDirective, ComingSoonComponent, CommandPaletteComponent, CommandPaletteService, CompletionBarComponent, ConfirmDialogComponent, ConfirmDialogService, DateRangePickerComponent, DynamicPageContextService, EntityGroupComponent, GroupDefinitionComponent, GroupsComponent, HeaderComponent, InputContainerComponent, LandingPageFooterBComponent, NoDataComponent, NumberPickerComponent, OnboardingChecklistComponent, OnlineIndicatorComponent, PasswordValidationComponent, PermissionTreeComponent, PrivacyAndTosComponent, PwBrainChatComponent, PwCookieBannerComponent, PwDynamicPageComponent, PwEditCardComponent, PwNoticeComponent, PwTabsComponent, RecordsSummaryComponent, ResourceSharedComponentsModule, SharedComponentsModule, SplashComponent, UI_BUILDER_FLAG, UiLayoutService, dashboardLegalPageRoutes, hasOpenMandatorySteps, publicLegalPageRoutes, registeredType, registeredTypeNames, visibleProductPrompts };
|
|
9504
9420
|
|
|
9505
9421
|
//# sourceMappingURL=posiwise-shared-components.mjs.map
|