@posiwise/shared-components 0.0.211 → 0.0.213
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,17 +1,17 @@
|
|
|
1
|
-
import * as i1$
|
|
1
|
+
import * as i1$4 from "@angular/common";
|
|
2
2
|
import { CommonModule, DOCUMENT, NgIf } from "@angular/common";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import { ChangeDetectionStrategy, Component, ContentChild, DOCUMENT as DOCUMENT$1, Directive, EventEmitter, Host, HostBinding, HostListener, Inject, Injectable, InjectionToken, Input, NgModule, Optional, Output, Pipe, SkipSelf, ViewChild, ViewContainerRef, booleanAttribute, isDevMode } from "@angular/core";
|
|
5
|
-
import * as
|
|
5
|
+
import * as i4$1 from "@angular/forms";
|
|
6
6
|
import { FormsModule, NG_VALUE_ACCESSOR, ReactiveFormsModule, UntypedFormControl, Validators } from "@angular/forms";
|
|
7
|
-
import * as i1$
|
|
7
|
+
import * as i1$2 from "@angular/router";
|
|
8
8
|
import { NavigationEnd, RouterModule } from "@angular/router";
|
|
9
|
-
import * as
|
|
9
|
+
import * as i8$1 from "@posiwise/app-loader";
|
|
10
10
|
import { AppLoaderModule } from "@posiwise/app-loader";
|
|
11
11
|
import { CoreTranslocoModule } from "@posiwise/core-transloco";
|
|
12
12
|
import * as i1$1 from "@posiwise/directives";
|
|
13
13
|
import { DirectivesModule } from "@posiwise/directives";
|
|
14
|
-
import * as
|
|
14
|
+
import * as i14 from "@posiwise/pipes";
|
|
15
15
|
import { PipesModule } from "@posiwise/pipes";
|
|
16
16
|
import * as i4 from "@posiwise/utils";
|
|
17
17
|
import { FieldErrorDisplayModule, ProfileImageCropperModule, ResourceHeaderModule, ValidateForm } from "@posiwise/utils";
|
|
@@ -23,34 +23,817 @@ import { UiSwitchModule } from "ngx-ui-switch";
|
|
|
23
23
|
import * as i9 from "primeng/autocomplete";
|
|
24
24
|
import { AutoCompleteModule } from "primeng/autocomplete";
|
|
25
25
|
import { ButtonModule } from "primeng/button";
|
|
26
|
+
import * as i5 from "primeng/iconfield";
|
|
27
|
+
import { IconFieldModule } from "primeng/iconfield";
|
|
28
|
+
import * as i6$2 from "primeng/inputicon";
|
|
29
|
+
import { InputIconModule } from "primeng/inputicon";
|
|
30
|
+
import * as i7 from "primeng/inputtext";
|
|
31
|
+
import { InputTextModule } from "primeng/inputtext";
|
|
26
32
|
import { MultiSelectModule } from "primeng/multiselect";
|
|
27
33
|
import * as i8 from "primeng/progressspinner";
|
|
28
34
|
import { ProgressSpinnerModule } from "primeng/progressspinner";
|
|
29
35
|
import * as i6 from "primeng/select";
|
|
30
36
|
import { SelectModule } from "primeng/select";
|
|
31
|
-
import * as
|
|
37
|
+
import * as i10 from "primeng/table";
|
|
32
38
|
import { TableModule } from "primeng/table";
|
|
33
39
|
import * as i2$1 from "primeng/tabs";
|
|
34
40
|
import { TabsModule } from "primeng/tabs";
|
|
35
|
-
import * as
|
|
41
|
+
import * as i9$1 from "primeng/tooltip";
|
|
36
42
|
import { TooltipModule } from "primeng/tooltip";
|
|
37
|
-
import * as
|
|
43
|
+
import * as i1$5 from "@ng-bootstrap/ng-bootstrap";
|
|
38
44
|
import { NgbModalModule, NgbNavModule, NgbTooltipModule } from "@ng-bootstrap/ng-bootstrap";
|
|
45
|
+
import * as i1$3 from "@posiwise/common-services";
|
|
46
|
+
import { KNOWLEDGE_EXTENSIONS, KNOWLEDGE_MAX_BYTES, PermissionService } from "@posiwise/common-services";
|
|
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$4 from "@jsverse/transloco";
|
|
39
50
|
import { AppBaseComponent } from "@posiwise/app-base-component";
|
|
40
|
-
import * as i1$4 from "@posiwise/common-services";
|
|
41
|
-
import { PermissionService } from "@posiwise/common-services";
|
|
42
51
|
import * as i2$3 from "@posiwise/app-config-service";
|
|
43
|
-
import { BehaviorSubject, Subject, of, takeUntil } from "rxjs";
|
|
44
|
-
import
|
|
45
|
-
import * as i3$2 from "@ngrx/store";
|
|
52
|
+
import { BehaviorSubject, Subject, of, takeUntil as takeUntil$1 } from "rxjs";
|
|
53
|
+
import * as i3 from "@ngrx/store";
|
|
46
54
|
import { HelperService } from "@posiwise/helper-service";
|
|
47
|
-
import * as i4$1 from "@jsverse/transloco";
|
|
48
|
-
import { ADMIN_ROUTERS, TAG_ENTITY } from "@posiwise/common-utilities";
|
|
49
55
|
import { __decorate, __metadata } from "tslib";
|
|
50
56
|
import { StatusCodes } from "http-status-codes";
|
|
51
57
|
import * as i2$2 from "@angular/platform-browser";
|
|
52
58
|
import * as i1 from "@posiwise/admin-module-utils";
|
|
53
59
|
import { DragDropModule } from "@angular/cdk/drag-drop";
|
|
60
|
+
var ConfirmDialogComponent = class ConfirmDialogComponent {
|
|
61
|
+
constructor(modal) {
|
|
62
|
+
this.modal = modal;
|
|
63
|
+
this.config = {};
|
|
64
|
+
}
|
|
65
|
+
get tone() {
|
|
66
|
+
if (this.config.tone) return this.config.tone;
|
|
67
|
+
if (this.config.destructive) return "destructive";
|
|
68
|
+
if (this.config.confirmOnly) return "info";
|
|
69
|
+
return "neutral";
|
|
70
|
+
}
|
|
71
|
+
get iconClass() {
|
|
72
|
+
if (this.config.icon) return this.config.icon;
|
|
73
|
+
switch (this.tone) {
|
|
74
|
+
case "destructive": return "pi pi-times";
|
|
75
|
+
case "info": return "pi pi-info-circle";
|
|
76
|
+
default: return "pi pi-question-circle";
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
get titleKey() {
|
|
80
|
+
return this.config.titleKey ?? null;
|
|
81
|
+
}
|
|
82
|
+
get titleRaw() {
|
|
83
|
+
return this.config.title ?? "";
|
|
84
|
+
}
|
|
85
|
+
get titleParams() {
|
|
86
|
+
return this.config.titleParams ?? {};
|
|
87
|
+
}
|
|
88
|
+
get textKey() {
|
|
89
|
+
return this.config.textKey ?? null;
|
|
90
|
+
}
|
|
91
|
+
get textRaw() {
|
|
92
|
+
return this.config.text ?? "";
|
|
93
|
+
}
|
|
94
|
+
get textParams() {
|
|
95
|
+
return this.config.textParams ?? {};
|
|
96
|
+
}
|
|
97
|
+
get confirmLabelKey() {
|
|
98
|
+
if (this.config.confirmLabelKey) return this.config.confirmLabelKey;
|
|
99
|
+
if (this.config.confirmOnly) return "Button.OK";
|
|
100
|
+
if (this.tone === "destructive") return "Button.OK";
|
|
101
|
+
return "Button.Confirm";
|
|
102
|
+
}
|
|
103
|
+
get confirmLabel() {
|
|
104
|
+
return this.config.confirmLabel ?? "";
|
|
105
|
+
}
|
|
106
|
+
get cancelLabelKey() {
|
|
107
|
+
return this.config.cancelLabelKey ?? "Button.Cancel";
|
|
108
|
+
}
|
|
109
|
+
get cancelLabel() {
|
|
110
|
+
return this.config.cancelLabel ?? "";
|
|
111
|
+
}
|
|
112
|
+
get confirmButtonClass() {
|
|
113
|
+
return this.tone === "destructive" ? "btn btn-danger" : "btn btn-primary";
|
|
114
|
+
}
|
|
115
|
+
confirm() {
|
|
116
|
+
this.modal.close(true);
|
|
117
|
+
}
|
|
118
|
+
cancel() {
|
|
119
|
+
this.modal.dismiss(false);
|
|
120
|
+
}
|
|
121
|
+
static {
|
|
122
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
123
|
+
minVersion: "12.0.0",
|
|
124
|
+
version: "22.2.0",
|
|
125
|
+
ngImport: i0,
|
|
126
|
+
type: ConfirmDialogComponent,
|
|
127
|
+
deps: [{ token: i1$5.NgbActiveModal }],
|
|
128
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
static {
|
|
132
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
133
|
+
minVersion: "17.0.0",
|
|
134
|
+
version: "22.2.0",
|
|
135
|
+
type: ConfirmDialogComponent,
|
|
136
|
+
isStandalone: false,
|
|
137
|
+
selector: "pw-confirm-dialog",
|
|
138
|
+
inputs: { config: "config" },
|
|
139
|
+
ngImport: i0,
|
|
140
|
+
template: "<div class=\"pw-confirm\"\n [class.pw-confirm--destructive]=\"tone === 'destructive'\"\n [class.pw-confirm--info]=\"tone === 'info'\"\n [class.pw-confirm--neutral]=\"tone === 'neutral'\">\n <div class=\"pw-confirm__header\">\n <span class=\"pw-confirm__icon\"\n aria-hidden=\"true\">\n <i [class]=\"iconClass\"></i>\n </span>\n <h5 class=\"pw-confirm__title\">\n @if (titleKey) {\n {{ titleKey | transloco: titleParams }}\n } @else {\n {{ titleRaw }}\n }\n </h5>\n <button type=\"button\"\n class=\"btn-close pw-confirm__close\"\n [attr.aria-label]=\"cancelLabelKey | transloco\"\n (click)=\"cancel()\">\n </button>\n </div>\n\n <div class=\"pw-confirm__body\">\n @if (textKey) {\n <p class=\"pw-confirm__message\"\n [innerHTML]=\"textKey | transloco: textParams\"></p>\n } @else {\n <p class=\"pw-confirm__message\"\n [innerHTML]=\"textRaw\"></p>\n }\n </div>\n\n <div class=\"pw-confirm__footer\">\n @if (!config.confirmOnly) {\n <button type=\"button\"\n class=\"btn btn-outline-secondary\"\n (click)=\"cancel()\">\n @if (cancelLabel) {\n {{ cancelLabel }}\n } @else {\n {{ cancelLabelKey | transloco }}\n }\n </button>\n }\n <button type=\"button\"\n [class]=\"confirmButtonClass\"\n (click)=\"confirm()\">\n @if (confirmLabel) {\n {{ confirmLabel }}\n } @else {\n {{ confirmLabelKey | transloco }}\n }\n </button>\n </div>\n</div>\n",
|
|
141
|
+
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"],
|
|
142
|
+
dependencies: [{
|
|
143
|
+
kind: "pipe",
|
|
144
|
+
type: i2$4.TranslocoPipe,
|
|
145
|
+
name: "transloco"
|
|
146
|
+
}]
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
151
|
+
minVersion: "12.0.0",
|
|
152
|
+
version: "22.2.0",
|
|
153
|
+
ngImport: i0,
|
|
154
|
+
type: ConfirmDialogComponent,
|
|
155
|
+
decorators: [{
|
|
156
|
+
type: Component,
|
|
157
|
+
args: [{
|
|
158
|
+
selector: "pw-confirm-dialog",
|
|
159
|
+
standalone: false,
|
|
160
|
+
template: "<div class=\"pw-confirm\"\n [class.pw-confirm--destructive]=\"tone === 'destructive'\"\n [class.pw-confirm--info]=\"tone === 'info'\"\n [class.pw-confirm--neutral]=\"tone === 'neutral'\">\n <div class=\"pw-confirm__header\">\n <span class=\"pw-confirm__icon\"\n aria-hidden=\"true\">\n <i [class]=\"iconClass\"></i>\n </span>\n <h5 class=\"pw-confirm__title\">\n @if (titleKey) {\n {{ titleKey | transloco: titleParams }}\n } @else {\n {{ titleRaw }}\n }\n </h5>\n <button type=\"button\"\n class=\"btn-close pw-confirm__close\"\n [attr.aria-label]=\"cancelLabelKey | transloco\"\n (click)=\"cancel()\">\n </button>\n </div>\n\n <div class=\"pw-confirm__body\">\n @if (textKey) {\n <p class=\"pw-confirm__message\"\n [innerHTML]=\"textKey | transloco: textParams\"></p>\n } @else {\n <p class=\"pw-confirm__message\"\n [innerHTML]=\"textRaw\"></p>\n }\n </div>\n\n <div class=\"pw-confirm__footer\">\n @if (!config.confirmOnly) {\n <button type=\"button\"\n class=\"btn btn-outline-secondary\"\n (click)=\"cancel()\">\n @if (cancelLabel) {\n {{ cancelLabel }}\n } @else {\n {{ cancelLabelKey | transloco }}\n }\n </button>\n }\n <button type=\"button\"\n [class]=\"confirmButtonClass\"\n (click)=\"confirm()\">\n @if (confirmLabel) {\n {{ confirmLabel }}\n } @else {\n {{ confirmLabelKey | transloco }}\n }\n </button>\n </div>\n</div>\n",
|
|
161
|
+
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"]
|
|
162
|
+
}]
|
|
163
|
+
}],
|
|
164
|
+
ctorParameters: () => [{ type: i1$5.NgbActiveModal }],
|
|
165
|
+
propDecorators: { config: [{ type: Input }] }
|
|
166
|
+
});
|
|
167
|
+
var ConfirmDialogService = class ConfirmDialogService {
|
|
168
|
+
constructor(modal) {
|
|
169
|
+
this.modal = modal;
|
|
170
|
+
}
|
|
171
|
+
open(config = {}) {
|
|
172
|
+
const ref = this.modal.open(ConfirmDialogComponent, {
|
|
173
|
+
centered: true,
|
|
174
|
+
size: "md",
|
|
175
|
+
windowClass: "pw-confirm-modal",
|
|
176
|
+
backdrop: "static",
|
|
177
|
+
keyboard: true
|
|
178
|
+
});
|
|
179
|
+
ref.componentInstance.config = config;
|
|
180
|
+
return ref.result.then((value) => value === true, () => false);
|
|
181
|
+
}
|
|
182
|
+
confirmDelete(overrides = {}) {
|
|
183
|
+
return this.open({
|
|
184
|
+
title: "Delete",
|
|
185
|
+
text: "Are you sure you want to delete?",
|
|
186
|
+
destructive: true,
|
|
187
|
+
...overrides
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
static {
|
|
191
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
192
|
+
minVersion: "12.0.0",
|
|
193
|
+
version: "22.2.0",
|
|
194
|
+
ngImport: i0,
|
|
195
|
+
type: ConfirmDialogService,
|
|
196
|
+
deps: [{ token: i1$5.NgbModal }],
|
|
197
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
static {
|
|
201
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
202
|
+
minVersion: "12.0.0",
|
|
203
|
+
version: "22.2.0",
|
|
204
|
+
ngImport: i0,
|
|
205
|
+
type: ConfirmDialogService,
|
|
206
|
+
providedIn: "root"
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
211
|
+
minVersion: "12.0.0",
|
|
212
|
+
version: "22.2.0",
|
|
213
|
+
ngImport: i0,
|
|
214
|
+
type: ConfirmDialogService,
|
|
215
|
+
decorators: [{
|
|
216
|
+
type: Injectable,
|
|
217
|
+
args: [{ providedIn: "root" }]
|
|
218
|
+
}],
|
|
219
|
+
ctorParameters: () => [{ type: i1$5.NgbModal }]
|
|
220
|
+
});
|
|
221
|
+
function folderOf(file) {
|
|
222
|
+
const slash = file.path.lastIndexOf("/");
|
|
223
|
+
return slash > 0 ? file.path.slice(0, slash) : "";
|
|
224
|
+
}
|
|
225
|
+
function topFolderOf(file) {
|
|
226
|
+
return folderOf(file).split("/")[0];
|
|
227
|
+
}
|
|
228
|
+
function formatSize(bytes) {
|
|
229
|
+
if (bytes < 1024) return `${bytes} B`;
|
|
230
|
+
if (bytes < 1048576) return `${(bytes / 1024).toFixed(1)} KB`;
|
|
231
|
+
return `${(bytes / 1048576).toFixed(1)} MB`;
|
|
232
|
+
}
|
|
233
|
+
function folderBadgeClasses(files) {
|
|
234
|
+
const folders = [...new Set(files.map(topFolderOf).filter(Boolean))].sort();
|
|
235
|
+
return new Map(folders.map((folder, i) => [folder, `bg-cyan-${i * 7 % 24 + 1}`]));
|
|
236
|
+
}
|
|
237
|
+
function uploadProblem(file) {
|
|
238
|
+
const dot = file.name.lastIndexOf(".");
|
|
239
|
+
const ext = dot >= 0 ? file.name.slice(dot).toLowerCase() : "";
|
|
240
|
+
if (!KNOWLEDGE_EXTENSIONS.includes(ext)) return "AiKnowledge.UnsupportedType";
|
|
241
|
+
if (file.size === 0) return "AiKnowledge.EmptyFile";
|
|
242
|
+
if (file.size > KNOWLEDGE_MAX_BYTES) return "AiKnowledge.TooLarge";
|
|
243
|
+
return null;
|
|
244
|
+
}
|
|
245
|
+
function matchingCount(filtered, files) {
|
|
246
|
+
return (filtered ?? files).length;
|
|
247
|
+
}
|
|
248
|
+
function shownOnPage(first, pageSize, matching) {
|
|
249
|
+
return Math.max(0, Math.min(pageSize, matching - first));
|
|
250
|
+
}
|
|
251
|
+
var NoDataComponent = class NoDataComponent {
|
|
252
|
+
constructor() {
|
|
253
|
+
this.message = null;
|
|
254
|
+
this.description = null;
|
|
255
|
+
this.withImage = false;
|
|
256
|
+
this.isContentEmpty = false;
|
|
257
|
+
}
|
|
258
|
+
ngAfterContentInit() {
|
|
259
|
+
this.isContentEmpty = !this.content?.nativeElement.innerHTML.trim();
|
|
260
|
+
}
|
|
261
|
+
static {
|
|
262
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
263
|
+
minVersion: "12.0.0",
|
|
264
|
+
version: "22.2.0",
|
|
265
|
+
ngImport: i0,
|
|
266
|
+
type: NoDataComponent,
|
|
267
|
+
deps: [],
|
|
268
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
static {
|
|
272
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
273
|
+
minVersion: "17.0.0",
|
|
274
|
+
version: "22.2.0",
|
|
275
|
+
type: NoDataComponent,
|
|
276
|
+
isStandalone: false,
|
|
277
|
+
selector: "pw-no-data",
|
|
278
|
+
inputs: {
|
|
279
|
+
message: "message",
|
|
280
|
+
description: "description",
|
|
281
|
+
withImage: "withImage"
|
|
282
|
+
},
|
|
283
|
+
queries: [{
|
|
284
|
+
propertyName: "content",
|
|
285
|
+
first: true,
|
|
286
|
+
predicate: ["content"],
|
|
287
|
+
descendants: true
|
|
288
|
+
}],
|
|
289
|
+
ngImport: i0,
|
|
290
|
+
template: `
|
|
291
|
+
<div class="no-data" [ngClass]="{ 'has-content': !this.isContentEmpty }">
|
|
292
|
+
@if (withImage) {
|
|
293
|
+
<i class="pi pi-inbox no-data-icon" aria-hidden="true"></i>
|
|
294
|
+
}
|
|
295
|
+
<span
|
|
296
|
+
class="h5 message"
|
|
297
|
+
[ngClass]="{
|
|
298
|
+
'mt-2': description || !this.isContentEmpty,
|
|
299
|
+
'my-3': !description && this.isContentEmpty
|
|
300
|
+
}"
|
|
301
|
+
>
|
|
302
|
+
{{ message || 'Nothing found' }}
|
|
303
|
+
</span>
|
|
304
|
+
@if (description) {
|
|
305
|
+
<span class="pb-4">{{ description }}</span>
|
|
306
|
+
}
|
|
307
|
+
<ng-content></ng-content>
|
|
308
|
+
</div>
|
|
309
|
+
`,
|
|
310
|
+
isInline: true,
|
|
311
|
+
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"],
|
|
312
|
+
dependencies: [{
|
|
313
|
+
kind: "directive",
|
|
314
|
+
type: i1$4.NgClass,
|
|
315
|
+
selector: "[ngClass]",
|
|
316
|
+
inputs: ["class", "ngClass"]
|
|
317
|
+
}]
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
};
|
|
321
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
322
|
+
minVersion: "12.0.0",
|
|
323
|
+
version: "22.2.0",
|
|
324
|
+
ngImport: i0,
|
|
325
|
+
type: NoDataComponent,
|
|
326
|
+
decorators: [{
|
|
327
|
+
type: Component,
|
|
328
|
+
args: [{
|
|
329
|
+
selector: "pw-no-data",
|
|
330
|
+
template: `
|
|
331
|
+
<div class="no-data" [ngClass]="{ 'has-content': !this.isContentEmpty }">
|
|
332
|
+
@if (withImage) {
|
|
333
|
+
<i class="pi pi-inbox no-data-icon" aria-hidden="true"></i>
|
|
334
|
+
}
|
|
335
|
+
<span
|
|
336
|
+
class="h5 message"
|
|
337
|
+
[ngClass]="{
|
|
338
|
+
'mt-2': description || !this.isContentEmpty,
|
|
339
|
+
'my-3': !description && this.isContentEmpty
|
|
340
|
+
}"
|
|
341
|
+
>
|
|
342
|
+
{{ message || 'Nothing found' }}
|
|
343
|
+
</span>
|
|
344
|
+
@if (description) {
|
|
345
|
+
<span class="pb-4">{{ description }}</span>
|
|
346
|
+
}
|
|
347
|
+
<ng-content></ng-content>
|
|
348
|
+
</div>
|
|
349
|
+
`,
|
|
350
|
+
standalone: false,
|
|
351
|
+
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"]
|
|
352
|
+
}]
|
|
353
|
+
}],
|
|
354
|
+
propDecorators: {
|
|
355
|
+
content: [{
|
|
356
|
+
type: ContentChild,
|
|
357
|
+
args: ["content", { static: false }]
|
|
358
|
+
}],
|
|
359
|
+
message: [{ type: Input }],
|
|
360
|
+
description: [{ type: Input }],
|
|
361
|
+
withImage: [{ type: Input }]
|
|
362
|
+
}
|
|
363
|
+
});
|
|
364
|
+
var RecordsSummaryComponent = class RecordsSummaryComponent {
|
|
365
|
+
constructor() {
|
|
366
|
+
this.showing = 0;
|
|
367
|
+
this.total = 0;
|
|
368
|
+
}
|
|
369
|
+
static {
|
|
370
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
371
|
+
minVersion: "12.0.0",
|
|
372
|
+
version: "22.2.0",
|
|
373
|
+
ngImport: i0,
|
|
374
|
+
type: RecordsSummaryComponent,
|
|
375
|
+
deps: [],
|
|
376
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
static {
|
|
380
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
381
|
+
minVersion: "14.0.0",
|
|
382
|
+
version: "22.2.0",
|
|
383
|
+
type: RecordsSummaryComponent,
|
|
384
|
+
isStandalone: false,
|
|
385
|
+
selector: "pw-records-summary",
|
|
386
|
+
inputs: {
|
|
387
|
+
showing: "showing",
|
|
388
|
+
total: "total"
|
|
389
|
+
},
|
|
390
|
+
host: { classAttribute: "total-records-count" },
|
|
391
|
+
ngImport: i0,
|
|
392
|
+
template: `{{
|
|
393
|
+
'Label.RecordsSummary' | transloco: { showing: showing ?? 0, total: total ?? 0 }
|
|
394
|
+
}}`,
|
|
395
|
+
isInline: true,
|
|
396
|
+
dependencies: [{
|
|
397
|
+
kind: "pipe",
|
|
398
|
+
type: i2$4.TranslocoPipe,
|
|
399
|
+
name: "transloco"
|
|
400
|
+
}]
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
};
|
|
404
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
405
|
+
minVersion: "12.0.0",
|
|
406
|
+
version: "22.2.0",
|
|
407
|
+
ngImport: i0,
|
|
408
|
+
type: RecordsSummaryComponent,
|
|
409
|
+
decorators: [{
|
|
410
|
+
type: Component,
|
|
411
|
+
args: [{
|
|
412
|
+
selector: "pw-records-summary",
|
|
413
|
+
template: `{{
|
|
414
|
+
'Label.RecordsSummary' | transloco: { showing: showing ?? 0, total: total ?? 0 }
|
|
415
|
+
}}`,
|
|
416
|
+
host: { class: "total-records-count" },
|
|
417
|
+
standalone: false
|
|
418
|
+
}]
|
|
419
|
+
}],
|
|
420
|
+
propDecorators: {
|
|
421
|
+
showing: [{ type: Input }],
|
|
422
|
+
total: [{ type: Input }]
|
|
423
|
+
}
|
|
424
|
+
});
|
|
425
|
+
var AiKnowledgeComponent = class AiKnowledgeComponent {
|
|
426
|
+
constructor(knowledge, confirmDialog, toast, translation, cdr) {
|
|
427
|
+
this.knowledge = knowledge;
|
|
428
|
+
this.confirmDialog = confirmDialog;
|
|
429
|
+
this.toast = toast;
|
|
430
|
+
this.translation = translation;
|
|
431
|
+
this.cdr = cdr;
|
|
432
|
+
this.scope = "subscription";
|
|
433
|
+
this.subscriptionId = null;
|
|
434
|
+
this.subscriptionName = "";
|
|
435
|
+
this.accept = KNOWLEDGE_EXTENSIONS.join(",");
|
|
436
|
+
this.pageSize = PAGE_SIZE;
|
|
437
|
+
this.files = [];
|
|
438
|
+
this.searchText = "";
|
|
439
|
+
this.truncated = false;
|
|
440
|
+
this.loading = false;
|
|
441
|
+
this.loadFailed = false;
|
|
442
|
+
this.unavailableReason = null;
|
|
443
|
+
this.uploading = false;
|
|
444
|
+
this.folderClasses = /* @__PURE__ */ new Map();
|
|
445
|
+
this.folderOf = folderOf;
|
|
446
|
+
this.sizeOf = formatSize;
|
|
447
|
+
this.pageFirst = 0;
|
|
448
|
+
this.matchingCount = (dt) => matchingCount(dt.filteredValue, this.files);
|
|
449
|
+
this.shownOnPage = (dt) => shownOnPage(this.pageFirst, this.pageSize, this.matchingCount(dt));
|
|
450
|
+
}
|
|
451
|
+
ngOnChanges(changes) {
|
|
452
|
+
if ((changes["subscriptionId"] || changes["scope"]) && this.subscriptionId) this.load();
|
|
453
|
+
}
|
|
454
|
+
load() {
|
|
455
|
+
this.loading = true;
|
|
456
|
+
this.loadFailed = false;
|
|
457
|
+
this.unavailableReason = null;
|
|
458
|
+
this.knowledge.listAllFiles(this.subscriptionId, this.scope).pipe(finalize(() => this.done(() => this.loading = false))).subscribe({
|
|
459
|
+
next: ({ files, truncated }) => {
|
|
460
|
+
this.files = files;
|
|
461
|
+
this.truncated = truncated;
|
|
462
|
+
this.recolourFolders();
|
|
463
|
+
},
|
|
464
|
+
error: (error) => {
|
|
465
|
+
this.files = [];
|
|
466
|
+
this.loadFailed = true;
|
|
467
|
+
this.unavailableReason = error?.error?.status_code === "storage_unavailable" ? error.error?.message ?? null : null;
|
|
468
|
+
}
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
chooseFile() {
|
|
472
|
+
this.fileInput?.nativeElement.click();
|
|
473
|
+
}
|
|
474
|
+
onFileSelected(event) {
|
|
475
|
+
const input = event.target;
|
|
476
|
+
const file = input.files?.[0];
|
|
477
|
+
input.value = "";
|
|
478
|
+
if (!file) return;
|
|
479
|
+
const problem = uploadProblem(file);
|
|
480
|
+
if (problem) {
|
|
481
|
+
this.toast.error(this.translation.translate(problem));
|
|
482
|
+
return;
|
|
483
|
+
}
|
|
484
|
+
this.uploading = true;
|
|
485
|
+
this.knowledge.uploadFile(this.subscriptionId, this.scope, file).pipe(finalize(() => this.done(() => this.uploading = false))).subscribe((added) => {
|
|
486
|
+
this.files = [added, ...this.files.filter((f) => f.path !== added.path)];
|
|
487
|
+
this.recolourFolders();
|
|
488
|
+
this.toast.success(this.translation.translate("AiKnowledge.Uploaded", { name: added.name }));
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
download(file) {
|
|
492
|
+
this.knowledge.downloadFile(this.subscriptionId, this.scope, file.path).subscribe((blob) => {
|
|
493
|
+
const url = URL.createObjectURL(blob);
|
|
494
|
+
const link = document.createElement("a");
|
|
495
|
+
link.href = url;
|
|
496
|
+
link.download = file.name;
|
|
497
|
+
link.click();
|
|
498
|
+
URL.revokeObjectURL(url);
|
|
499
|
+
});
|
|
500
|
+
}
|
|
501
|
+
remove(file) {
|
|
502
|
+
this.confirmDialog.confirmDelete({
|
|
503
|
+
textKey: "AiKnowledge.ConfirmDelete",
|
|
504
|
+
textParams: { name: file.name }
|
|
505
|
+
}).then((ok) => {
|
|
506
|
+
if (!ok) return;
|
|
507
|
+
this.knowledge.deleteFile(this.subscriptionId, this.scope, file.path).subscribe(() => {
|
|
508
|
+
this.files = this.files.filter((f) => f.path !== file.path);
|
|
509
|
+
this.recolourFolders();
|
|
510
|
+
this.toast.success(this.translation.translate("AiKnowledge.Deleted", { name: file.name }));
|
|
511
|
+
this.cdr.markForCheck();
|
|
512
|
+
});
|
|
513
|
+
});
|
|
514
|
+
}
|
|
515
|
+
get showFolder() {
|
|
516
|
+
return this.scope === "subscription";
|
|
517
|
+
}
|
|
518
|
+
folderBadgeClass(file) {
|
|
519
|
+
return this.folderClasses.get(topFolderOf(file)) ?? "bg-cyan";
|
|
520
|
+
}
|
|
521
|
+
recolourFolders() {
|
|
522
|
+
this.folderClasses = folderBadgeClasses(this.files);
|
|
523
|
+
}
|
|
524
|
+
done(reset) {
|
|
525
|
+
reset();
|
|
526
|
+
this.cdr.markForCheck();
|
|
527
|
+
}
|
|
528
|
+
static {
|
|
529
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
530
|
+
minVersion: "12.0.0",
|
|
531
|
+
version: "22.2.0",
|
|
532
|
+
ngImport: i0,
|
|
533
|
+
type: AiKnowledgeComponent,
|
|
534
|
+
deps: [
|
|
535
|
+
{ token: i1$3.KnowledgeFilesService },
|
|
536
|
+
{ token: ConfirmDialogService },
|
|
537
|
+
{ token: i1$3.CustomToastService },
|
|
538
|
+
{ token: i2$4.TranslocoService },
|
|
539
|
+
{ token: i0.ChangeDetectorRef }
|
|
540
|
+
],
|
|
541
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
542
|
+
});
|
|
543
|
+
}
|
|
544
|
+
static {
|
|
545
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
546
|
+
minVersion: "17.0.0",
|
|
547
|
+
version: "22.2.0",
|
|
548
|
+
type: AiKnowledgeComponent,
|
|
549
|
+
isStandalone: false,
|
|
550
|
+
selector: "pw-ai-knowledge",
|
|
551
|
+
inputs: {
|
|
552
|
+
scope: "scope",
|
|
553
|
+
subscriptionId: "subscriptionId",
|
|
554
|
+
subscriptionName: "subscriptionName"
|
|
555
|
+
},
|
|
556
|
+
viewQueries: [{
|
|
557
|
+
propertyName: "fileInput",
|
|
558
|
+
first: true,
|
|
559
|
+
predicate: ["fileInput"],
|
|
560
|
+
descendants: true
|
|
561
|
+
}],
|
|
562
|
+
usesOnChanges: true,
|
|
563
|
+
ngImport: i0,
|
|
564
|
+
template: "<section class=\"ai-knowledge\">\n <div class=\"title\">\n <h2>{{ (scope === 'personal' ? 'AiKnowledge.PersonalTitle' : 'AiKnowledge.Title') | transloco: { name: subscriptionName } }}</h2>\n </div>\n <p>{{ (scope === 'personal' ? 'AiKnowledge.PersonalIntro' : 'AiKnowledge.Intro') | transloco: { name: subscriptionName } }}</p>\n\n <div class=\"ai-knowledge-toolbar\">\n <span class=\"ai-knowledge-hint\">{{ 'AiKnowledge.Accepted' | transloco }}</span>\n <input #fileInput type=\"file\" class=\"d-none\" id=\"ai-knowledge-file-{{ scope }}\"\n [accept]=\"accept\" (change)=\"onFileSelected($event)\" />\n <button type=\"button\" class=\"btn btn-sm btn-outline-primary\"\n [disabled]=\"uploading || !subscriptionId\" (click)=\"chooseFile()\">\n <i class=\"fa\" [class.fa-upload]=\"!uploading\" [class.fa-spinner]=\"uploading\" [class.fa-spin]=\"uploading\"\n aria-hidden=\"true\"></i>\n {{ (uploading ? 'AiKnowledge.Uploading' : 'AiKnowledge.UploadFile') | transloco }}\n </button>\n </div>\n\n <pw-loader [isVisible]=\"loading\"></pw-loader>\n\n @if (!loading) {\n @if (files.length) {\n <div class=\"primeng-datatable-container actions-collapsed table-responsive\">\n <p-table #dt [value]=\"files\" dataKey=\"path\"\n [paginator]=\"files.length !== 0\"\n [rows]=\"pageSize\"\n [globalFilterFields]=\"['name', 'path']\"\n (onPage)=\"pageFirst = $event.first\"\n (onFilter)=\"pageFirst = 0\">\n <ng-template #caption>\n <div class=\"text-end\">\n <label for=\"ai-knowledge-search-{{ scope }}\" class=\"visually-hidden\">{{ 'AiKnowledge.SearchPlaceholder' | transloco }}</label>\n <p-iconfield iconPosition=\"left\">\n <p-inputicon><i class=\"fa fa-search\" aria-hidden=\"true\"></i></p-inputicon>\n <input type=\"text\"\n id=\"ai-knowledge-search-{{ scope }}\"\n name=\"ai-knowledge-search-{{ scope }}\"\n [(ngModel)]=\"searchText\"\n pInputText\n [placeholder]=\"'AiKnowledge.SearchPlaceholder' | transloco\"\n (input)=\"dt.filterGlobal(searchText, 'contains')\"\n [attr.aria-label]=\"'AiKnowledge.SearchPlaceholder' | transloco\" />\n </p-iconfield>\n </div>\n </ng-template>\n <ng-template #emptymessage>\n <tr>\n <td [attr.colspan]=\"showFolder ? 5 : 4\">\n <pw-no-data [withImage]=\"true\" [message]=\"'Search.NoDataMessage' | transloco\"\n [description]=\"'Search.NoDataDescription' | transloco\"></pw-no-data>\n </td>\n </tr>\n </ng-template>\n <ng-template #header>\n <tr>\n <th>{{ 'Label.Name' | transloco }}</th>\n @if (showFolder) {\n <th>{{ 'AiKnowledge.Folder' | transloco }}</th>\n }\n <th>{{ 'AiKnowledge.Size' | transloco }}</th>\n <th>{{ 'AiKnowledge.Modified' | transloco }}</th>\n <th class=\"actions-list-two\" scope=\"col\">{{ 'Label.Actions' | transloco }}</th>\n </tr>\n </ng-template>\n <ng-template #body let-file>\n <tr>\n <td data-head=\"Name\">\n <a href=\"\" [pTooltip]=\"'AiKnowledge.DownloadFile' | transloco\" tooltipPosition=\"top\" appendTo=\"body\"\n (click)=\"$event.preventDefault(); download(file)\">{{ file.name }}</a>\n </td>\n @if (showFolder) {\n <td data-head=\"Folder\">\n @if (folderOf(file); as folder) {\n <span class=\"badge\" [ngClass]=\"folderBadgeClass(file)\">{{ folder }}</span>\n }\n </td>\n }\n <td data-head=\"Size\">{{ sizeOf(file.size) }}</td>\n <td data-head=\"Modified\">{{ file.last_modified | dateFormat: 'datetime' }}</td>\n <td data-head=\"Action\">\n <ul class=\"list-unstyled list-inline list-action\">\n <li role=\"button\" tabindex=\"0\"\n [pTooltip]=\"'AiKnowledge.DownloadFile' | transloco\" tooltipPosition=\"top\" appendTo=\"body\"\n [attr.aria-label]=\"'AiKnowledge.DownloadFile' | transloco\"\n (click)=\"download(file)\" (keydown.enter)=\"download(file)\">\n <i class=\"fa fa-download edit-icon\" aria-hidden=\"true\"></i>\n </li>\n <li role=\"button\" tabindex=\"0\"\n [pTooltip]=\"'AiKnowledge.DeleteFile' | transloco\" tooltipPosition=\"top\" appendTo=\"body\"\n [attr.aria-label]=\"'AiKnowledge.DeleteFile' | transloco\"\n (click)=\"remove(file)\" (keydown.enter)=\"remove(file)\">\n <i class=\"fa fa-trash delete-icon\" aria-hidden=\"true\"></i>\n </li>\n </ul>\n </td>\n </tr>\n </ng-template>\n </p-table>\n <pw-records-summary [showing]=\"shownOnPage(dt)\" [total]=\"matchingCount(dt)\" />\n </div>\n @if (truncated) {\n <p class=\"ai-knowledge-hint mt-2\">{{ 'AiKnowledge.Truncated' | transloco: { count: files.length } }}</p>\n }\n } @else if (loadFailed) {\n <pw-no-data [withImage]=\"true\" [message]=\"'AiKnowledge.LoadFailed' | transloco\"\n [description]=\"unavailableReason || ('AiKnowledge.LoadFailedDescription' | transloco)\">\n <div #content>\n <button type=\"button\" class=\"btn btn-sm btn-outline-primary\" (click)=\"load()\">\n <i class=\"fa fa-rotate-right\" aria-hidden=\"true\"></i>\n {{ 'AiKnowledge.TryAgain' | transloco }}\n </button>\n </div>\n </pw-no-data>\n } @else {\n <pw-no-data [withImage]=\"true\" [message]=\"'AiKnowledge.NoFiles' | transloco\"\n [description]=\"'AiKnowledge.NoFilesDescription' | transloco\"></pw-no-data>\n }\n }\n</section>\n",
|
|
565
|
+
styles: [".ai-knowledge-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin-bottom:16px}.ai-knowledge-hint{color:#5a6473;font-size:12px}td[data-head=Name]{min-width:200px}td[data-head=Size],td[data-head=Modified]{white-space:nowrap;font-variant-numeric:tabular-nums}\n"],
|
|
566
|
+
dependencies: [
|
|
567
|
+
{
|
|
568
|
+
kind: "directive",
|
|
569
|
+
type: i4$1.DefaultValueAccessor,
|
|
570
|
+
selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]"
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
kind: "directive",
|
|
574
|
+
type: i4$1.NgControlStatus,
|
|
575
|
+
selector: "[formControlName],[ngModel],[formControl]"
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
kind: "directive",
|
|
579
|
+
type: i4$1.NgModel,
|
|
580
|
+
selector: "[ngModel]:not([formControlName]):not([formControl])",
|
|
581
|
+
inputs: [
|
|
582
|
+
"name",
|
|
583
|
+
"disabled",
|
|
584
|
+
"ngModel",
|
|
585
|
+
"ngModelOptions"
|
|
586
|
+
],
|
|
587
|
+
outputs: ["ngModelChange"],
|
|
588
|
+
exportAs: ["ngModel"]
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
kind: "component",
|
|
592
|
+
type: i5.IconField,
|
|
593
|
+
selector: "p-iconfield, p-icon-field",
|
|
594
|
+
inputs: ["hostName", "iconPosition"]
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
kind: "component",
|
|
598
|
+
type: i6$2.InputIcon,
|
|
599
|
+
selector: "p-inputicon",
|
|
600
|
+
inputs: ["hostName"]
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
kind: "directive",
|
|
604
|
+
type: i7.InputText,
|
|
605
|
+
selector: "[pInputText]",
|
|
606
|
+
inputs: [
|
|
607
|
+
"hostName",
|
|
608
|
+
"pInputTextPT",
|
|
609
|
+
"pInputTextUnstyled",
|
|
610
|
+
"pSize",
|
|
611
|
+
"variant",
|
|
612
|
+
"fluid",
|
|
613
|
+
"invalid"
|
|
614
|
+
]
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
kind: "component",
|
|
618
|
+
type: i8$1.AppLoaderComponent,
|
|
619
|
+
selector: "pw-loader",
|
|
620
|
+
inputs: [
|
|
621
|
+
"isVisible",
|
|
622
|
+
"closeOnOutsideClick",
|
|
623
|
+
"autoCloseTimeOut"
|
|
624
|
+
]
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
kind: "directive",
|
|
628
|
+
type: i9$1.Tooltip,
|
|
629
|
+
selector: "[pTooltip]",
|
|
630
|
+
inputs: [
|
|
631
|
+
"tooltipPosition",
|
|
632
|
+
"tooltipEvent",
|
|
633
|
+
"positionStyle",
|
|
634
|
+
"tooltipStyleClass",
|
|
635
|
+
"tooltipZIndex",
|
|
636
|
+
"escape",
|
|
637
|
+
"showDelay",
|
|
638
|
+
"hideDelay",
|
|
639
|
+
"life",
|
|
640
|
+
"positionTop",
|
|
641
|
+
"positionLeft",
|
|
642
|
+
"autoHide",
|
|
643
|
+
"fitContent",
|
|
644
|
+
"hideOnEscape",
|
|
645
|
+
"showOnEllipsis",
|
|
646
|
+
"pTooltip",
|
|
647
|
+
"tooltipDisabled",
|
|
648
|
+
"tooltipOptions",
|
|
649
|
+
"appendTo",
|
|
650
|
+
"pTooltipPT",
|
|
651
|
+
"pTooltipUnstyled"
|
|
652
|
+
]
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
kind: "component",
|
|
656
|
+
type: i10.Table,
|
|
657
|
+
selector: "p-table",
|
|
658
|
+
inputs: [
|
|
659
|
+
"frozenColumns",
|
|
660
|
+
"frozenValue",
|
|
661
|
+
"tableStyle",
|
|
662
|
+
"tableStyleClass",
|
|
663
|
+
"paginator",
|
|
664
|
+
"pageLinks",
|
|
665
|
+
"rowsPerPageOptions",
|
|
666
|
+
"alwaysShowPaginator",
|
|
667
|
+
"paginatorPosition",
|
|
668
|
+
"paginatorStyleClass",
|
|
669
|
+
"paginatorDropdownAppendTo",
|
|
670
|
+
"paginatorDropdownScrollHeight",
|
|
671
|
+
"currentPageReportTemplate",
|
|
672
|
+
"showCurrentPageReport",
|
|
673
|
+
"showJumpToPageDropdown",
|
|
674
|
+
"showJumpToPageInput",
|
|
675
|
+
"showFirstLastIcon",
|
|
676
|
+
"showPageLinks",
|
|
677
|
+
"defaultSortOrder",
|
|
678
|
+
"sortMode",
|
|
679
|
+
"resetPageOnSort",
|
|
680
|
+
"selectionMode",
|
|
681
|
+
"selectionPageOnly",
|
|
682
|
+
"contextMenuSelection",
|
|
683
|
+
"dataKey",
|
|
684
|
+
"metaKeySelection",
|
|
685
|
+
"rowSelectable",
|
|
686
|
+
"rowTrackBy",
|
|
687
|
+
"lazy",
|
|
688
|
+
"lazyLoadOnInit",
|
|
689
|
+
"compareSelectionBy",
|
|
690
|
+
"csvSeparator",
|
|
691
|
+
"exportFilename",
|
|
692
|
+
"filters",
|
|
693
|
+
"globalFilterFields",
|
|
694
|
+
"filterDelay",
|
|
695
|
+
"filterLocale",
|
|
696
|
+
"expandedRowKeys",
|
|
697
|
+
"editingRowKeys",
|
|
698
|
+
"rowExpandMode",
|
|
699
|
+
"scrollable",
|
|
700
|
+
"rowGroupMode",
|
|
701
|
+
"scrollHeight",
|
|
702
|
+
"virtualScroll",
|
|
703
|
+
"virtualScrollItemSize",
|
|
704
|
+
"virtualScrollOptions",
|
|
705
|
+
"virtualScrollDelay",
|
|
706
|
+
"frozenWidth",
|
|
707
|
+
"contextMenu",
|
|
708
|
+
"resizableColumns",
|
|
709
|
+
"columnResizeMode",
|
|
710
|
+
"reorderableColumns",
|
|
711
|
+
"loading",
|
|
712
|
+
"loadingIcon",
|
|
713
|
+
"showLoader",
|
|
714
|
+
"rowHover",
|
|
715
|
+
"customSort",
|
|
716
|
+
"showInitialSortBadge",
|
|
717
|
+
"exportFunction",
|
|
718
|
+
"exportHeader",
|
|
719
|
+
"stateKey",
|
|
720
|
+
"stateStorage",
|
|
721
|
+
"editMode",
|
|
722
|
+
"groupRowsBy",
|
|
723
|
+
"size",
|
|
724
|
+
"showGridlines",
|
|
725
|
+
"stripedRows",
|
|
726
|
+
"groupRowsByOrder",
|
|
727
|
+
"paginatorLocale",
|
|
728
|
+
"value",
|
|
729
|
+
"columns",
|
|
730
|
+
"first",
|
|
731
|
+
"rows",
|
|
732
|
+
"totalRecords",
|
|
733
|
+
"sortField",
|
|
734
|
+
"sortOrder",
|
|
735
|
+
"multiSortMeta",
|
|
736
|
+
"selection",
|
|
737
|
+
"selectAll"
|
|
738
|
+
],
|
|
739
|
+
outputs: [
|
|
740
|
+
"contextMenuSelectionChange",
|
|
741
|
+
"firstChange",
|
|
742
|
+
"rowsChange",
|
|
743
|
+
"totalRecordsChange",
|
|
744
|
+
"selectionChange",
|
|
745
|
+
"selectAllChange",
|
|
746
|
+
"onRowSelect",
|
|
747
|
+
"onRowUnselect",
|
|
748
|
+
"onPage",
|
|
749
|
+
"onSort",
|
|
750
|
+
"onFilter",
|
|
751
|
+
"onLazyLoad",
|
|
752
|
+
"onRowExpand",
|
|
753
|
+
"onRowCollapse",
|
|
754
|
+
"onContextMenuSelect",
|
|
755
|
+
"onColResize",
|
|
756
|
+
"onColReorder",
|
|
757
|
+
"onRowReorder",
|
|
758
|
+
"onEditInit",
|
|
759
|
+
"onEditComplete",
|
|
760
|
+
"onEditCancel",
|
|
761
|
+
"onHeaderCheckboxToggle",
|
|
762
|
+
"sortFunction",
|
|
763
|
+
"onStateSave",
|
|
764
|
+
"onStateRestore"
|
|
765
|
+
]
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
kind: "directive",
|
|
769
|
+
type: i1$4.NgClass,
|
|
770
|
+
selector: "[ngClass]",
|
|
771
|
+
inputs: ["class", "ngClass"]
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
kind: "component",
|
|
775
|
+
type: NoDataComponent,
|
|
776
|
+
selector: "pw-no-data",
|
|
777
|
+
inputs: [
|
|
778
|
+
"message",
|
|
779
|
+
"description",
|
|
780
|
+
"withImage"
|
|
781
|
+
]
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
kind: "component",
|
|
785
|
+
type: RecordsSummaryComponent,
|
|
786
|
+
selector: "pw-records-summary",
|
|
787
|
+
inputs: ["showing", "total"]
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
kind: "pipe",
|
|
791
|
+
type: i2$4.TranslocoPipe,
|
|
792
|
+
name: "transloco"
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
kind: "pipe",
|
|
796
|
+
type: i14.DateFormatPipe,
|
|
797
|
+
name: "dateFormat"
|
|
798
|
+
}
|
|
799
|
+
]
|
|
800
|
+
});
|
|
801
|
+
}
|
|
802
|
+
};
|
|
803
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
804
|
+
minVersion: "12.0.0",
|
|
805
|
+
version: "22.2.0",
|
|
806
|
+
ngImport: i0,
|
|
807
|
+
type: AiKnowledgeComponent,
|
|
808
|
+
decorators: [{
|
|
809
|
+
type: Component,
|
|
810
|
+
args: [{
|
|
811
|
+
selector: "pw-ai-knowledge",
|
|
812
|
+
standalone: false,
|
|
813
|
+
template: "<section class=\"ai-knowledge\">\n <div class=\"title\">\n <h2>{{ (scope === 'personal' ? 'AiKnowledge.PersonalTitle' : 'AiKnowledge.Title') | transloco: { name: subscriptionName } }}</h2>\n </div>\n <p>{{ (scope === 'personal' ? 'AiKnowledge.PersonalIntro' : 'AiKnowledge.Intro') | transloco: { name: subscriptionName } }}</p>\n\n <div class=\"ai-knowledge-toolbar\">\n <span class=\"ai-knowledge-hint\">{{ 'AiKnowledge.Accepted' | transloco }}</span>\n <input #fileInput type=\"file\" class=\"d-none\" id=\"ai-knowledge-file-{{ scope }}\"\n [accept]=\"accept\" (change)=\"onFileSelected($event)\" />\n <button type=\"button\" class=\"btn btn-sm btn-outline-primary\"\n [disabled]=\"uploading || !subscriptionId\" (click)=\"chooseFile()\">\n <i class=\"fa\" [class.fa-upload]=\"!uploading\" [class.fa-spinner]=\"uploading\" [class.fa-spin]=\"uploading\"\n aria-hidden=\"true\"></i>\n {{ (uploading ? 'AiKnowledge.Uploading' : 'AiKnowledge.UploadFile') | transloco }}\n </button>\n </div>\n\n <pw-loader [isVisible]=\"loading\"></pw-loader>\n\n @if (!loading) {\n @if (files.length) {\n <div class=\"primeng-datatable-container actions-collapsed table-responsive\">\n <p-table #dt [value]=\"files\" dataKey=\"path\"\n [paginator]=\"files.length !== 0\"\n [rows]=\"pageSize\"\n [globalFilterFields]=\"['name', 'path']\"\n (onPage)=\"pageFirst = $event.first\"\n (onFilter)=\"pageFirst = 0\">\n <ng-template #caption>\n <div class=\"text-end\">\n <label for=\"ai-knowledge-search-{{ scope }}\" class=\"visually-hidden\">{{ 'AiKnowledge.SearchPlaceholder' | transloco }}</label>\n <p-iconfield iconPosition=\"left\">\n <p-inputicon><i class=\"fa fa-search\" aria-hidden=\"true\"></i></p-inputicon>\n <input type=\"text\"\n id=\"ai-knowledge-search-{{ scope }}\"\n name=\"ai-knowledge-search-{{ scope }}\"\n [(ngModel)]=\"searchText\"\n pInputText\n [placeholder]=\"'AiKnowledge.SearchPlaceholder' | transloco\"\n (input)=\"dt.filterGlobal(searchText, 'contains')\"\n [attr.aria-label]=\"'AiKnowledge.SearchPlaceholder' | transloco\" />\n </p-iconfield>\n </div>\n </ng-template>\n <ng-template #emptymessage>\n <tr>\n <td [attr.colspan]=\"showFolder ? 5 : 4\">\n <pw-no-data [withImage]=\"true\" [message]=\"'Search.NoDataMessage' | transloco\"\n [description]=\"'Search.NoDataDescription' | transloco\"></pw-no-data>\n </td>\n </tr>\n </ng-template>\n <ng-template #header>\n <tr>\n <th>{{ 'Label.Name' | transloco }}</th>\n @if (showFolder) {\n <th>{{ 'AiKnowledge.Folder' | transloco }}</th>\n }\n <th>{{ 'AiKnowledge.Size' | transloco }}</th>\n <th>{{ 'AiKnowledge.Modified' | transloco }}</th>\n <th class=\"actions-list-two\" scope=\"col\">{{ 'Label.Actions' | transloco }}</th>\n </tr>\n </ng-template>\n <ng-template #body let-file>\n <tr>\n <td data-head=\"Name\">\n <a href=\"\" [pTooltip]=\"'AiKnowledge.DownloadFile' | transloco\" tooltipPosition=\"top\" appendTo=\"body\"\n (click)=\"$event.preventDefault(); download(file)\">{{ file.name }}</a>\n </td>\n @if (showFolder) {\n <td data-head=\"Folder\">\n @if (folderOf(file); as folder) {\n <span class=\"badge\" [ngClass]=\"folderBadgeClass(file)\">{{ folder }}</span>\n }\n </td>\n }\n <td data-head=\"Size\">{{ sizeOf(file.size) }}</td>\n <td data-head=\"Modified\">{{ file.last_modified | dateFormat: 'datetime' }}</td>\n <td data-head=\"Action\">\n <ul class=\"list-unstyled list-inline list-action\">\n <li role=\"button\" tabindex=\"0\"\n [pTooltip]=\"'AiKnowledge.DownloadFile' | transloco\" tooltipPosition=\"top\" appendTo=\"body\"\n [attr.aria-label]=\"'AiKnowledge.DownloadFile' | transloco\"\n (click)=\"download(file)\" (keydown.enter)=\"download(file)\">\n <i class=\"fa fa-download edit-icon\" aria-hidden=\"true\"></i>\n </li>\n <li role=\"button\" tabindex=\"0\"\n [pTooltip]=\"'AiKnowledge.DeleteFile' | transloco\" tooltipPosition=\"top\" appendTo=\"body\"\n [attr.aria-label]=\"'AiKnowledge.DeleteFile' | transloco\"\n (click)=\"remove(file)\" (keydown.enter)=\"remove(file)\">\n <i class=\"fa fa-trash delete-icon\" aria-hidden=\"true\"></i>\n </li>\n </ul>\n </td>\n </tr>\n </ng-template>\n </p-table>\n <pw-records-summary [showing]=\"shownOnPage(dt)\" [total]=\"matchingCount(dt)\" />\n </div>\n @if (truncated) {\n <p class=\"ai-knowledge-hint mt-2\">{{ 'AiKnowledge.Truncated' | transloco: { count: files.length } }}</p>\n }\n } @else if (loadFailed) {\n <pw-no-data [withImage]=\"true\" [message]=\"'AiKnowledge.LoadFailed' | transloco\"\n [description]=\"unavailableReason || ('AiKnowledge.LoadFailedDescription' | transloco)\">\n <div #content>\n <button type=\"button\" class=\"btn btn-sm btn-outline-primary\" (click)=\"load()\">\n <i class=\"fa fa-rotate-right\" aria-hidden=\"true\"></i>\n {{ 'AiKnowledge.TryAgain' | transloco }}\n </button>\n </div>\n </pw-no-data>\n } @else {\n <pw-no-data [withImage]=\"true\" [message]=\"'AiKnowledge.NoFiles' | transloco\"\n [description]=\"'AiKnowledge.NoFilesDescription' | transloco\"></pw-no-data>\n }\n }\n</section>\n",
|
|
814
|
+
styles: [".ai-knowledge-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin-bottom:16px}.ai-knowledge-hint{color:#5a6473;font-size:12px}td[data-head=Name]{min-width:200px}td[data-head=Size],td[data-head=Modified]{white-space:nowrap;font-variant-numeric:tabular-nums}\n"]
|
|
815
|
+
}]
|
|
816
|
+
}],
|
|
817
|
+
ctorParameters: () => [
|
|
818
|
+
{ type: i1$3.KnowledgeFilesService },
|
|
819
|
+
{ type: ConfirmDialogService },
|
|
820
|
+
{ type: i1$3.CustomToastService },
|
|
821
|
+
{ type: i2$4.TranslocoService },
|
|
822
|
+
{ type: i0.ChangeDetectorRef }
|
|
823
|
+
],
|
|
824
|
+
propDecorators: {
|
|
825
|
+
scope: [{
|
|
826
|
+
type: Input,
|
|
827
|
+
args: [{ required: true }]
|
|
828
|
+
}],
|
|
829
|
+
subscriptionId: [{ type: Input }],
|
|
830
|
+
subscriptionName: [{ type: Input }],
|
|
831
|
+
fileInput: [{
|
|
832
|
+
type: ViewChild,
|
|
833
|
+
args: ["fileInput"]
|
|
834
|
+
}]
|
|
835
|
+
}
|
|
836
|
+
});
|
|
54
837
|
var AuthenticatorComponent = class AuthenticatorComponent extends AppBaseComponent {
|
|
55
838
|
constructor(authService, injector, cdr) {
|
|
56
839
|
super(injector);
|
|
@@ -85,7 +868,7 @@ var AuthenticatorComponent = class AuthenticatorComponent extends AppBaseCompone
|
|
|
85
868
|
ngImport: i0,
|
|
86
869
|
type: AuthenticatorComponent,
|
|
87
870
|
deps: [
|
|
88
|
-
{ token: i1$
|
|
871
|
+
{ token: i1$3.AuthService },
|
|
89
872
|
{ token: i0.Injector },
|
|
90
873
|
{ token: i0.ChangeDetectorRef }
|
|
91
874
|
],
|
|
@@ -119,7 +902,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
119
902
|
}]
|
|
120
903
|
}],
|
|
121
904
|
ctorParameters: () => [
|
|
122
|
-
{ type: i1$
|
|
905
|
+
{ type: i1$3.AuthService },
|
|
123
906
|
{ type: i0.Injector },
|
|
124
907
|
{ type: i0.ChangeDetectorRef }
|
|
125
908
|
]
|
|
@@ -200,7 +983,7 @@ function dragCarriesFile(event) {
|
|
|
200
983
|
return !!types && Array.from(types).includes("Files");
|
|
201
984
|
}
|
|
202
985
|
function attachmentContext(attachment) {
|
|
203
|
-
if (
|
|
986
|
+
if (attachment?.status !== "ready" || !attachment?.key) return null;
|
|
204
987
|
return { attachment: {
|
|
205
988
|
filename: attachment.name,
|
|
206
989
|
staged_key: attachment.key,
|
|
@@ -209,24 +992,24 @@ function attachmentContext(attachment) {
|
|
|
209
992
|
note: `The user attached this file to the chat. It is already uploaded. To act on it, call ${attachment.tool} with this staged_key. Ask the user for any details that tool needs and they have not said — never invent them.`
|
|
210
993
|
} };
|
|
211
994
|
}
|
|
212
|
-
const IMAGE_EXTENSIONS = [
|
|
995
|
+
const IMAGE_EXTENSIONS = /* @__PURE__ */ new Set([
|
|
213
996
|
"png",
|
|
214
997
|
"jpg",
|
|
215
998
|
"jpeg",
|
|
216
999
|
"gif",
|
|
217
1000
|
"webp",
|
|
218
1001
|
"svg"
|
|
219
|
-
];
|
|
220
|
-
const SHEET_EXTENSIONS = [
|
|
1002
|
+
]);
|
|
1003
|
+
const SHEET_EXTENSIONS = /* @__PURE__ */ new Set([
|
|
221
1004
|
"csv",
|
|
222
1005
|
"xls",
|
|
223
1006
|
"xlsx"
|
|
224
|
-
];
|
|
1007
|
+
]);
|
|
225
1008
|
function dropzoneLabel(capabilities) {
|
|
226
1009
|
const extensions = acceptedExtensions(capabilities);
|
|
227
1010
|
if (extensions.length === 0) return "Drop a file";
|
|
228
|
-
if (extensions.every((e) => IMAGE_EXTENSIONS.
|
|
229
|
-
if (extensions.every((e) => SHEET_EXTENSIONS.
|
|
1011
|
+
if (extensions.every((e) => IMAGE_EXTENSIONS.has(e))) return "Drop an image";
|
|
1012
|
+
if (extensions.every((e) => SHEET_EXTENSIONS.has(e))) return "Drop a spreadsheet";
|
|
230
1013
|
return "Drop a file";
|
|
231
1014
|
}
|
|
232
1015
|
function dropzoneHint(capabilities) {
|
|
@@ -338,7 +1121,7 @@ var BrainChatDragTracker = class {
|
|
|
338
1121
|
}
|
|
339
1122
|
};
|
|
340
1123
|
function discoverCapabilities(opts) {
|
|
341
|
-
opts.source.pipe(takeUntil(opts.destroy$)).subscribe({
|
|
1124
|
+
opts.source.pipe(takeUntil$1(opts.destroy$)).subscribe({
|
|
342
1125
|
next: (response) => opts.onResolved((response.uploads ?? []).filter((c) => !!opts.apis[c.service])),
|
|
343
1126
|
error: () => opts.onResolved([])
|
|
344
1127
|
});
|
|
@@ -995,7 +1778,7 @@ var PwBrainChatThreadDirective = class PwBrainChatThreadDirective {
|
|
|
995
1778
|
version: "22.2.0",
|
|
996
1779
|
ngImport: i0,
|
|
997
1780
|
type: PwBrainChatThreadDirective,
|
|
998
|
-
deps: [{ token: i1$
|
|
1781
|
+
deps: [{ token: i1$2.Router }],
|
|
999
1782
|
target: i0.ɵɵFactoryTarget.Directive
|
|
1000
1783
|
});
|
|
1001
1784
|
}
|
|
@@ -1020,7 +1803,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1020
1803
|
type: Directive,
|
|
1021
1804
|
args: [{ selector: "[pwBrainChatThread]" }]
|
|
1022
1805
|
}],
|
|
1023
|
-
ctorParameters: () => [{ type: i1$
|
|
1806
|
+
ctorParameters: () => [{ type: i1$2.Router }],
|
|
1024
1807
|
propDecorators: { onClick: [{
|
|
1025
1808
|
type: HostListener,
|
|
1026
1809
|
args: ["click", ["$event"]]
|
|
@@ -1122,7 +1905,7 @@ var PwBrainChatWelcomeComponent = class PwBrainChatWelcomeComponent {
|
|
|
1122
1905
|
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"],
|
|
1123
1906
|
dependencies: [{
|
|
1124
1907
|
kind: "directive",
|
|
1125
|
-
type: i1$
|
|
1908
|
+
type: i1$4.NgClass,
|
|
1126
1909
|
selector: "[ngClass]",
|
|
1127
1910
|
inputs: ["class", "ngClass"]
|
|
1128
1911
|
}],
|
|
@@ -1619,7 +2402,7 @@ var PwBrainChatVoiceOverlayComponent = class PwBrainChatVoiceOverlayComponent {
|
|
|
1619
2402
|
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"],
|
|
1620
2403
|
dependencies: [{
|
|
1621
2404
|
kind: "directive",
|
|
1622
|
-
type: i1$
|
|
2405
|
+
type: i1$4.NgClass,
|
|
1623
2406
|
selector: "[ngClass]",
|
|
1624
2407
|
inputs: ["class", "ngClass"]
|
|
1625
2408
|
}]
|
|
@@ -1842,7 +2625,7 @@ var SafeMarkdownPipe = class SafeMarkdownPipe {
|
|
|
1842
2625
|
version: "22.2.0",
|
|
1843
2626
|
ngImport: i0,
|
|
1844
2627
|
type: SafeMarkdownPipe,
|
|
1845
|
-
deps: [{ token: i1$
|
|
2628
|
+
deps: [{ token: i1$3.NavigationIndexService }, { token: i2$3.AppConfigService }],
|
|
1846
2629
|
target: i0.ɵɵFactoryTarget.Pipe
|
|
1847
2630
|
});
|
|
1848
2631
|
}
|
|
@@ -1866,7 +2649,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1866
2649
|
type: Pipe,
|
|
1867
2650
|
args: [{ name: "safeMarkdown" }]
|
|
1868
2651
|
}],
|
|
1869
|
-
ctorParameters: () => [{ type: i1$
|
|
2652
|
+
ctorParameters: () => [{ type: i1$3.NavigationIndexService }, { type: i2$3.AppConfigService }]
|
|
1870
2653
|
});
|
|
1871
2654
|
var PwBrainChatComponent = class PwBrainChatComponent {
|
|
1872
2655
|
constructor(orchestrator, localStorage, router, cdr, store, dynamicPageCtx, appConfigService, brainSocket, brainVoice, voiceChatService, directUpload, uploadApis) {
|
|
@@ -1904,12 +2687,12 @@ var PwBrainChatComponent = class PwBrainChatComponent {
|
|
|
1904
2687
|
ngOnInit() {
|
|
1905
2688
|
this.attachment.discover(this.orchestrator.capabilities(), this.destroy$);
|
|
1906
2689
|
this.userFirstName = localStorage.getItem("name")?.trim() || void 0;
|
|
1907
|
-
this.appConfigService?.appConfig$.pipe(take(1), takeUntil
|
|
2690
|
+
this.appConfigService?.appConfig$.pipe(take(1), takeUntil(this.destroy$)).subscribe((c) => {
|
|
1908
2691
|
this.brandName = resolveBrandName(c);
|
|
1909
2692
|
this.cdr.markForCheck();
|
|
1910
2693
|
});
|
|
1911
2694
|
this.voiceChat.resolveAvailability();
|
|
1912
|
-
this.store.pipe(map((app) => app?.user?.currentUser ?? null), filter((user) => !!user && user.id != null), take(1), takeUntil
|
|
2695
|
+
this.store.pipe(map((app) => app?.user?.currentUser ?? null), filter((user) => !!user && user.id != null), take(1), takeUntil(this.destroy$)).subscribe((user) => {
|
|
1913
2696
|
this.storage = new BrainChatPersistence(this.localStorage, String(user.id));
|
|
1914
2697
|
const hydrated = this.storage.readMessages();
|
|
1915
2698
|
this.messages = hydrated.length ? hydrated.map((m) => ({
|
|
@@ -1926,7 +2709,7 @@ var PwBrainChatComponent = class PwBrainChatComponent {
|
|
|
1926
2709
|
});
|
|
1927
2710
|
}
|
|
1928
2711
|
subscribeToServerPush() {
|
|
1929
|
-
this.brainSocket?.messages$().pipe(takeUntil
|
|
2712
|
+
this.brainSocket?.messages$().pipe(takeUntil(this.destroy$)).subscribe((message) => {
|
|
1930
2713
|
this.pushAssistant(message.text, true);
|
|
1931
2714
|
this.cdr.markForCheck();
|
|
1932
2715
|
});
|
|
@@ -1965,14 +2748,14 @@ var PwBrainChatComponent = class PwBrainChatComponent {
|
|
|
1965
2748
|
this.stick(true);
|
|
1966
2749
|
const workspace_context = {
|
|
1967
2750
|
...buildWorkspaceContext(this.router, this.dynamicPageCtx.current, PermissionService.selectedSubscription?.id ?? null),
|
|
1968
|
-
...this.attachment.context
|
|
2751
|
+
...this.attachment.context
|
|
1969
2752
|
};
|
|
1970
2753
|
this.sentAttachment = staged;
|
|
1971
2754
|
this.streamSub = this.orchestrator.executeStream({
|
|
1972
2755
|
message: text,
|
|
1973
2756
|
workspace_context,
|
|
1974
2757
|
conversation_id: this.conversationId ?? void 0
|
|
1975
|
-
}).pipe(takeUntil
|
|
2758
|
+
}).pipe(takeUntil(this.destroy$)).subscribe({
|
|
1976
2759
|
next: (event) => {
|
|
1977
2760
|
if (event.type === "stage") {
|
|
1978
2761
|
this.streamingStage = event.message ?? event.stage ?? null;
|
|
@@ -2001,7 +2784,7 @@ var PwBrainChatComponent = class PwBrainChatComponent {
|
|
|
2001
2784
|
this.orchestrator.confirm({
|
|
2002
2785
|
confirmation_token: token,
|
|
2003
2786
|
conversation_id: this.conversationId ?? void 0
|
|
2004
|
-
}).pipe(takeUntil
|
|
2787
|
+
}).pipe(takeUntil(this.destroy$)).subscribe({
|
|
2005
2788
|
next: (response) => this.handleExecuteResponse(response),
|
|
2006
2789
|
error: (err) => this.handleError(err)
|
|
2007
2790
|
});
|
|
@@ -2111,30 +2894,30 @@ var PwBrainChatComponent = class PwBrainChatComponent {
|
|
|
2111
2894
|
ngImport: i0,
|
|
2112
2895
|
type: PwBrainChatComponent,
|
|
2113
2896
|
deps: [
|
|
2114
|
-
{ token: i1$
|
|
2115
|
-
{ token: i1$
|
|
2116
|
-
{ token: i1$
|
|
2897
|
+
{ token: i1$3.MCPOrchestratorService },
|
|
2898
|
+
{ token: i1$3.LocalStorage },
|
|
2899
|
+
{ token: i1$2.Router },
|
|
2117
2900
|
{ token: i0.ChangeDetectorRef },
|
|
2118
|
-
{ token: i3
|
|
2901
|
+
{ token: i3.Store },
|
|
2119
2902
|
{ token: DynamicPageContextService },
|
|
2120
2903
|
{
|
|
2121
2904
|
token: i2$3.AppConfigService,
|
|
2122
2905
|
optional: true
|
|
2123
2906
|
},
|
|
2124
2907
|
{
|
|
2125
|
-
token: i1$
|
|
2908
|
+
token: i1$3.BrainSocketService,
|
|
2126
2909
|
optional: true
|
|
2127
2910
|
},
|
|
2128
2911
|
{
|
|
2129
|
-
token: i1$
|
|
2912
|
+
token: i1$3.BrainVoiceService,
|
|
2130
2913
|
optional: true
|
|
2131
2914
|
},
|
|
2132
2915
|
{
|
|
2133
|
-
token: i1$
|
|
2916
|
+
token: i1$3.VoiceChatService,
|
|
2134
2917
|
optional: true
|
|
2135
2918
|
},
|
|
2136
2919
|
{
|
|
2137
|
-
token: i1$
|
|
2920
|
+
token: i1$3.DirectUploadService,
|
|
2138
2921
|
optional: true
|
|
2139
2922
|
},
|
|
2140
2923
|
{
|
|
@@ -2159,29 +2942,29 @@ var PwBrainChatComponent = class PwBrainChatComponent {
|
|
|
2159
2942
|
descendants: true
|
|
2160
2943
|
}],
|
|
2161
2944
|
ngImport: i0,
|
|
2162
|
-
template: "<div\n class=\"pw-brain-chat\"\n (dragenter)=\"attachment.dragEnter($event)\"\n (dragover)=\"attachment.dragOver($event)\"\n (dragleave)=\"attachment.dragLeave($event)\"\n (drop)=\"attachment.drop($event)\"\n>\n @if (attachment.dragActive) {\n <div class=\"pw-brain-chat__dropzone\" aria-hidden=\"true\">\n <div class=\"pw-brain-chat__dropzone-frame\">\n <i class=\"fas fa-file-arrow-up pw-brain-chat__dropzone-icon\" aria-hidden=\"true\"></i>\n <span class=\"pw-brain-chat__dropzone-title\">{{ attachment.label }}</span>\n <span class=\"pw-brain-chat__dropzone-hint\">{{ attachment.hint }}</span>\n </div>\n </div>\n }\n <!-- The sidebar host header owns title + close + live status + New chat\n (SidebarContent.status / headerActions) — so the panel body starts at\n the thread, no duplicate status strip. newChat() is invoked from the\n host header action. -->\n <div #thread pwBrainChatThread class=\"pw-brain-chat__thread\" role=\"log\" aria-live=\"polite\">\n @if (messages.length <= 1 && !loading && !streamingProse) {\n <pw-brain-chat-welcome\n [userFirstName]=\"userFirstName\"\n [prompts]=\"suggestedPrompts\"\n (pick)=\"usePrompt($event)\"\n ></pw-brain-chat-welcome>\n } @else {\n @for (m of messages; track trackByIndex($index, m)) {\n @if (m.role === 'user') {\n <div class=\"pw-brain-chat__turn pw-brain-chat__turn--user\">\n <div class=\"pw-brain-chat__user-bubble\"><pre class=\"pw-brain-chat__user-text\">{{ m.text }}</pre></div>\n @if (m.at) {\n <span class=\"pw-brain-chat__time\">{{ m.at | date: 'shortTime' }}</span>\n }\n </div>\n } @else {\n <div class=\"pw-brain-chat__turn pw-brain-chat__turn--bot\">\n <div class=\"pw-brain-chat__spine\" aria-hidden=\"true\">\n <span class=\"pw-brain-chat__node\"><i class=\"fas fa-brain\"></i></span>\n <span class=\"pw-brain-chat__line\"></span>\n </div>\n <div class=\"pw-brain-chat__artifacts\">\n <span class=\"pw-brain-chat__who\">\n {{ brandName }} Brain\n @if (m.at) {\n <span class=\"pw-brain-chat__time\">· {{ m.at | date: 'shortTime' }}</span>\n }\n </span>\n <div class=\"pw-brain-chat__bubble\">\n @if (m.markdownEnabled) {\n <div class=\"pw-brain-chat__text\" [innerHTML]=\"m.text | safeMarkdown\"></div>\n } @else {\n <pre class=\"pw-brain-chat__text\">{{ m.text }}</pre>\n }\n </div>\n @if (m.sourcePage) {\n <div class=\"pw-brain-chat__source\" role=\"note\">\n <i class=\"fas fa-file-lines pw-brain-chat__source-icon\" aria-hidden=\"true\"></i>\n <span class=\"pw-brain-chat__source-text\">Documented on: {{ m.sourcePage }}</span>\n </div>\n }\n @if (m.pending) {\n <pw-brain-chat-confirm\n [pending]=\"m.pending\"\n [loading]=\"loading\"\n (approveEvent)=\"approve(m)\"\n (cancelEvent)=\"cancel(m)\"\n ></pw-brain-chat-confirm>\n }\n </div>\n </div>\n }\n }\n }\n\n @if (loading && streamingProse) {\n <!-- prose streams token-by-token into a partial bot turn; caret = writing (#51) -->\n <div class=\"pw-brain-chat__turn pw-brain-chat__turn--bot\">\n <div class=\"pw-brain-chat__spine\" aria-hidden=\"true\">\n <span class=\"pw-brain-chat__node\"><i class=\"fas fa-brain\"></i></span>\n <span class=\"pw-brain-chat__line\"></span>\n </div>\n <div class=\"pw-brain-chat__artifacts\">\n <span class=\"pw-brain-chat__who\">{{ brandName }} Brain</span>\n <div class=\"pw-brain-chat__bubble\">\n <pre class=\"pw-brain-chat__text\"\n >{{ streamingProse }}<span class=\"pw-brain-chat__caret\" aria-hidden=\"true\"></span></pre>\n </div>\n </div>\n </div>\n }\n </div>\n\n @if (loading && !streamingProse) {\n <div class=\"pw-brain-chat__loading\">\n <i class=\"fas fa-circle-notch fa-spin pw-brain-chat__loading-spinner\" aria-hidden=\"true\"></i>\n <span aria-live=\"polite\">{{ streamingStage || 'Working…' }}</span>\n <button type=\"button\" class=\"pw-brain-chat__iconbtn pw-brain-chat__stop\" (click)=\"cancelRequest()\"\n [ngbTooltip]=\"'Stop request'\" container=\"body\" aria-label=\"Stop request\">\n <i class=\"fas fa-stop\" aria-hidden=\"true\"></i>\n </button>\n </div>\n }\n\n <!-- Voice session / dictation → animated Sonar overlay (#51) -->\n @if (voiceChat.isActive || voiceChat.error || dictation.phase === 'listening' || dictation.phase === 'processing' || dictation.error) {\n <pw-brain-chat-voice-overlay\n [voice]=\"voiceChat\"\n [dictation]=\"dictation\"\n (end)=\"voiceChat.isActive || voiceChat.error ? voiceChat.stop() : dictation.dismiss()\"\n ></pw-brain-chat-voice-overlay>\n }\n\n <div class=\"pw-brain-chat__compose\">\n @if (messages.length > 1) {\n <div class=\"pw-brain-chat__quick\">\n @for (q of quickActions; track q.text) {\n <button type=\"button\" class=\"pw-brain-chat__chip\" (click)=\"usePrompt(q.text)\">\n <i class=\"fas\" [ngClass]=\"q.icon\" aria-hidden=\"true\"></i>{{ q.label }}\n </button>\n }\n </div>\n }\n <label class=\"visually-hidden\" for=\"pw-brain-chat-input\">Message {{ brandName }} Brain</label>\n <div class=\"pw-brain-chat__field\">\n @if (attachment.current; as file) {\n <div\n class=\"pw-brain-chat__attachment\"\n [class.pw-brain-chat__attachment--error]=\"file.status === 'error'\"\n [style.--pw-upload-progress]=\"file.percent + '%'\"\n >\n <span class=\"pw-brain-chat__attachment-icon\">\n <i class=\"fas\" [ngClass]=\"attachment.icon()\" aria-hidden=\"true\"></i>\n </span>\n <span class=\"pw-brain-chat__attachment-body\">\n <span class=\"pw-brain-chat__attachment-name\" [title]=\"file.name\">{{ file.name }}</span>\n <span class=\"pw-brain-chat__attachment-meta\" role=\"status\" aria-live=\"polite\">{{ attachment.meta() }}</span>\n </span>\n <button\n type=\"button\"\n class=\"pw-brain-chat__iconbtn\"\n (click)=\"attachment.remove()\"\n ngbTooltip=\"Remove file\"\n container=\"body\"\n aria-label=\"Remove attached file\"\n ><i class=\"fas fa-xmark\" aria-hidden=\"true\"></i></button>\n @if (file.status === 'uploading') {\n <span class=\"pw-brain-chat__attachment-progress\"></span>\n }\n </div>\n @if (attachment.choosing) {\n <div class=\"pw-brain-chat__choice\" role=\"group\" aria-label=\"What should I do with this file?\">\n <span class=\"pw-brain-chat__choice-prompt\">What should I do with this file?</span>\n <div class=\"pw-brain-chat__choice-options\">\n @for (option of attachment.choices; track option.tool) {\n <button\n type=\"button\"\n class=\"pw-brain-chat__chip\"\n (click)=\"attachment.choose(option)\"\n >{{ attachment.choiceLabel(option) }}</button>\n }\n </div>\n </div>\n }\n }\n <div class=\"pw-brain-chat__field-row\">\n <textarea\n id=\"pw-brain-chat-input\"\n class=\"pw-brain-chat__input\"\n rows=\"1\"\n [(ngModel)]=\"draft\"\n [placeholder]=\"composerPlaceholder\"\n (keydown.enter)=\"$event.preventDefault(); send()\"\n [attr.aria-label]=\"composerPlaceholder\"\n ></textarea>\n <div class=\"pw-brain-chat__tools\">\n @if (attachment.enabled) {\n <input\n #fileInput\n type=\"file\"\n class=\"visually-hidden\"\n [accept]=\"attachment.acceptAttr\"\n (change)=\"pickFile(fileInput)\"\n />\n <button\n type=\"button\"\n class=\"pw-brain-chat__iconbtn\"\n [disabled]=\"loading || attachment.busy\"\n (click)=\"fileInput.click()\"\n ngbTooltip=\"Attach a file\"\n container=\"body\"\n aria-label=\"Attach a file\"\n ><i class=\"fas fa-paperclip\" aria-hidden=\"true\"></i></button>\n }\n <button\n type=\"button\"\n class=\"pw-brain-chat__iconbtn pw-brain-chat__mic\"\n [class.pw-brain-chat__mic--recording]=\"dictation.isRecording\"\n [disabled]=\"loading || dictation.phase === 'processing'\"\n (click)=\"dictation.toggle(loading)\"\n [ngbTooltip]=\"dictation.phase === 'listening' ? 'Stop dictation' : (dictation.phase === 'processing' ? 'Processing…' : 'Dictate')\"\n container=\"body\"\n [attr.aria-label]=\"dictation.phase === 'listening' ? 'Stop dictation' : 'Dictate with your voice'\"\n [attr.aria-pressed]=\"dictation.isRecording\"\n ><i class=\"fas fa-microphone\" aria-hidden=\"true\"></i></button>\n @if (voiceChat.available) {\n <button\n type=\"button\"\n class=\"pw-brain-chat__iconbtn\"\n [disabled]=\"loading || dictation.isRecording\"\n (click)=\"voiceChat.toggle(loading)\"\n [ngbTooltip]=\"voiceChat.isActive ? 'End voice chat' : 'Voice chat'\"\n container=\"body\"\n [attr.aria-label]=\"voiceChat.isActive ? 'End voice chat' : 'Start voice chat'\"\n [attr.aria-pressed]=\"voiceChat.isActive\"\n >\n @switch (voiceChat.visual) {\n @case ('loader') { <i class=\"fas fa-circle-notch fa-spin\" aria-hidden=\"true\"></i> }\n @case ('wave') { <i class=\"fas fa-volume-high\" aria-hidden=\"true\"></i> }\n <!-- fa-waveform-lines (FA Pro, shipped in assets/fontawesome) — the\n canonical \"voice mode\" glyph; fa-comment-dots read as a second\n text-chat button. -->\n @default { <i class=\"fas fa-waveform-lines\" aria-hidden=\"true\"></i> }\n }\n </button>\n }\n <button\n type=\"button\"\n class=\"pw-brain-chat__send\"\n [class.pw-brain-chat__send--stop]=\"loading\"\n [disabled]=\"!loading && ((!draft.trim() && !attachment.ready) || attachment.busy || attachment.choosing)\"\n (click)=\"loading ? cancelRequest() : send()\"\n [ngbTooltip]=\"loading ? 'Stop request' : 'Send message'\"\n container=\"body\"\n [attr.aria-label]=\"loading ? 'Stop request' : 'Send message'\"\n >\n <i class=\"fas\" [ngClass]=\"loading ? 'fa-stop' : 'fa-paper-plane'\" aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n </div>\n <div class=\"pw-brain-chat__disclaimer\" role=\"note\">\n <i class=\"fas fa-triangle-exclamation\" aria-hidden=\"true\"></i>\n AI may be inaccurate — verify before acting.\n </div>\n </div>\n</div>\n",
|
|
2945
|
+
template: "<div\n class=\"pw-brain-chat\"\n (dragenter)=\"attachment.dragEnter($event)\"\n (dragover)=\"attachment.dragOver($event)\"\n (dragleave)=\"attachment.dragLeave($event)\"\n (drop)=\"attachment.drop($event)\"\n>\n @if (attachment.dragActive) {\n <div class=\"pw-brain-chat__dropzone\" aria-hidden=\"true\">\n <div class=\"pw-brain-chat__dropzone-frame\">\n <i class=\"fas fa-file-arrow-up pw-brain-chat__dropzone-icon\" aria-hidden=\"true\"></i>\n <span class=\"pw-brain-chat__dropzone-title\">{{ attachment.label }}</span>\n <span class=\"pw-brain-chat__dropzone-hint\">{{ attachment.hint }}</span>\n </div>\n </div>\n }\n <!-- The sidebar host header owns title + close + live status + New chat\n (SidebarContent.status / headerActions) — so the panel body starts at\n the thread, no duplicate status strip. newChat() is invoked from the\n host header action. -->\n <div #thread pwBrainChatThread class=\"pw-brain-chat__thread\" role=\"log\" aria-live=\"polite\">\n @if (messages.length <= 1 && !loading && !streamingProse) {\n <pw-brain-chat-welcome\n [userFirstName]=\"userFirstName\"\n [prompts]=\"suggestedPrompts\"\n (pick)=\"usePrompt($event)\"\n ></pw-brain-chat-welcome>\n } @else {\n @for (m of messages; track trackByIndex($index, m)) {\n @if (m.role === 'user') {\n <div class=\"pw-brain-chat__turn pw-brain-chat__turn--user\">\n <div class=\"pw-brain-chat__user-bubble\"><pre class=\"pw-brain-chat__user-text\">{{ m.text }}</pre></div>\n @if (m.at) {\n <span class=\"pw-brain-chat__time\">{{ m.at | date: 'shortTime' }}</span>\n }\n </div>\n } @else {\n <div class=\"pw-brain-chat__turn pw-brain-chat__turn--bot\">\n <div class=\"pw-brain-chat__spine\" aria-hidden=\"true\">\n <span class=\"pw-brain-chat__node\"><i class=\"fas fa-brain\"></i></span>\n <span class=\"pw-brain-chat__line\"></span>\n </div>\n <div class=\"pw-brain-chat__artifacts\">\n <span class=\"pw-brain-chat__who\">\n {{ brandName }} Brain\n @if (m.at) {\n <span class=\"pw-brain-chat__time\">· {{ m.at | date: 'shortTime' }}</span>\n }\n </span>\n <div class=\"pw-brain-chat__bubble\">\n @if (m.markdownEnabled) {\n <div class=\"pw-brain-chat__text\" [innerHTML]=\"m.text | safeMarkdown\"></div>\n } @else {\n <pre class=\"pw-brain-chat__text\">{{ m.text }}</pre>\n }\n </div>\n @if (m.sourcePage) {\n <div class=\"pw-brain-chat__source\" role=\"note\">\n <i class=\"fas fa-file-lines pw-brain-chat__source-icon\" aria-hidden=\"true\"></i>\n <span class=\"pw-brain-chat__source-text\">Documented on: {{ m.sourcePage }}</span>\n </div>\n }\n @if (m.pending) {\n <pw-brain-chat-confirm\n [pending]=\"m.pending\"\n [loading]=\"loading\"\n (approveEvent)=\"approve(m)\"\n (cancelEvent)=\"cancel(m)\"\n ></pw-brain-chat-confirm>\n }\n </div>\n </div>\n }\n }\n }\n\n @if (loading && streamingProse) {\n <!-- prose streams token-by-token into a partial bot turn; caret = writing (#51) -->\n <div class=\"pw-brain-chat__turn pw-brain-chat__turn--bot\">\n <div class=\"pw-brain-chat__spine\" aria-hidden=\"true\">\n <span class=\"pw-brain-chat__node\"><i class=\"fas fa-brain\"></i></span>\n <span class=\"pw-brain-chat__line\"></span>\n </div>\n <div class=\"pw-brain-chat__artifacts\">\n <span class=\"pw-brain-chat__who\">{{ brandName }} Brain</span>\n <div class=\"pw-brain-chat__bubble\">\n <pre class=\"pw-brain-chat__text\"\n >{{ streamingProse }}<span class=\"pw-brain-chat__caret\" aria-hidden=\"true\"></span></pre>\n </div>\n </div>\n </div>\n }\n </div>\n\n @if (loading && !streamingProse) {\n <div class=\"pw-brain-chat__loading\">\n <i class=\"fas fa-circle-notch fa-spin pw-brain-chat__loading-spinner\" aria-hidden=\"true\"></i>\n <span aria-live=\"polite\">{{ streamingStage || 'Working…' }}</span>\n <button type=\"button\" class=\"pw-brain-chat__iconbtn pw-brain-chat__stop\" (click)=\"cancelRequest()\"\n [ngbTooltip]=\"'Stop request'\" container=\"body\" aria-label=\"Stop request\">\n <i class=\"fas fa-stop\" aria-hidden=\"true\"></i>\n </button>\n </div>\n }\n\n <!-- Voice session / dictation → animated Sonar overlay (#51) -->\n @if (voiceChat.isActive || voiceChat.error || dictation.phase === 'listening' || dictation.phase === 'processing' || dictation.error) {\n <pw-brain-chat-voice-overlay\n [voice]=\"voiceChat\"\n [dictation]=\"dictation\"\n (end)=\"voiceChat.isActive || voiceChat.error ? voiceChat.stop() : dictation.dismiss()\"\n ></pw-brain-chat-voice-overlay>\n }\n\n <div class=\"pw-brain-chat__compose\">\n @if (messages.length > 1) {\n <div class=\"pw-brain-chat__quick\">\n @for (q of quickActions; track q.text) {\n <button type=\"button\" class=\"pw-brain-chat__chip\" (click)=\"usePrompt(q.text)\">\n <i class=\"fas\" [ngClass]=\"q.icon\" aria-hidden=\"true\"></i>{{ q.label }}\n </button>\n }\n </div>\n }\n <label class=\"visually-hidden\" for=\"pw-brain-chat-input\">Message {{ brandName }} Brain</label>\n <div class=\"pw-brain-chat__field\">\n @if (attachment.current; as file) {\n <div\n class=\"pw-brain-chat__attachment\"\n [class.pw-brain-chat__attachment--error]=\"file.status === 'error'\"\n [style.--pw-upload-progress]=\"file.percent + '%'\"\n >\n <span class=\"pw-brain-chat__attachment-icon\">\n <i class=\"fas\" [ngClass]=\"attachment.icon()\" aria-hidden=\"true\"></i>\n </span>\n <span class=\"pw-brain-chat__attachment-body\">\n <span class=\"pw-brain-chat__attachment-name\" [title]=\"file.name\">{{ file.name }}</span>\n <output class=\"pw-brain-chat__attachment-meta\" aria-live=\"polite\">{{ attachment.meta() }}</output>\n </span>\n <button\n type=\"button\"\n class=\"pw-brain-chat__iconbtn\"\n (click)=\"attachment.remove()\"\n ngbTooltip=\"Remove file\"\n container=\"body\"\n aria-label=\"Remove attached file\"\n ><i class=\"fas fa-xmark\" aria-hidden=\"true\"></i></button>\n @if (file.status === 'uploading') {\n <span class=\"pw-brain-chat__attachment-progress\"></span>\n }\n </div>\n @if (attachment.choosing) {\n <fieldset class=\"pw-brain-chat__choice\" aria-label=\"What should I do with this file?\">\n <span class=\"pw-brain-chat__choice-prompt\">What should I do with this file?</span>\n <div class=\"pw-brain-chat__choice-options\">\n @for (option of attachment.choices; track option.tool) {\n <button\n type=\"button\"\n class=\"pw-brain-chat__chip\"\n (click)=\"attachment.choose(option)\"\n >{{ attachment.choiceLabel(option) }}</button>\n }\n </div>\n </fieldset>\n }\n }\n <div class=\"pw-brain-chat__field-row\">\n <textarea\n id=\"pw-brain-chat-input\"\n class=\"pw-brain-chat__input\"\n rows=\"1\"\n [(ngModel)]=\"draft\"\n [placeholder]=\"composerPlaceholder\"\n (keydown.enter)=\"$event.preventDefault(); send()\"\n [attr.aria-label]=\"composerPlaceholder\"\n ></textarea>\n <div class=\"pw-brain-chat__tools\">\n @if (attachment.enabled) {\n <label for=\"pw-brain-chat-file-input\" class=\"visually-hidden\">Attach file</label>\n <input\n #fileInput\n id=\"pw-brain-chat-file-input\"\n type=\"file\"\n class=\"visually-hidden\"\n [accept]=\"attachment.acceptAttr\"\n (change)=\"pickFile(fileInput)\"\n />\n <button\n type=\"button\"\n class=\"pw-brain-chat__iconbtn\"\n [disabled]=\"loading || attachment.busy\"\n (click)=\"fileInput.click()\"\n ngbTooltip=\"Attach a file\"\n container=\"body\"\n aria-label=\"Attach a file\"\n ><i class=\"fas fa-paperclip\" aria-hidden=\"true\"></i></button>\n }\n <button\n type=\"button\"\n class=\"pw-brain-chat__iconbtn pw-brain-chat__mic\"\n [class.pw-brain-chat__mic--recording]=\"dictation.isRecording\"\n [disabled]=\"loading || dictation.phase === 'processing'\"\n (click)=\"dictation.toggle(loading)\"\n [ngbTooltip]=\"dictation.phase === 'listening' ? 'Stop dictation' : (dictation.phase === 'processing' ? 'Processing…' : 'Dictate')\"\n container=\"body\"\n [attr.aria-label]=\"dictation.phase === 'listening' ? 'Stop dictation' : 'Dictate with your voice'\"\n [attr.aria-pressed]=\"dictation.isRecording\"\n ><i class=\"fas fa-microphone\" aria-hidden=\"true\"></i></button>\n @if (voiceChat.available) {\n <button\n type=\"button\"\n class=\"pw-brain-chat__iconbtn\"\n [disabled]=\"loading || dictation.isRecording\"\n (click)=\"voiceChat.toggle(loading)\"\n [ngbTooltip]=\"voiceChat.isActive ? 'End voice chat' : 'Voice chat'\"\n container=\"body\"\n [attr.aria-label]=\"voiceChat.isActive ? 'End voice chat' : 'Start voice chat'\"\n [attr.aria-pressed]=\"voiceChat.isActive\"\n >\n @switch (voiceChat.visual) {\n @case ('loader') { <i class=\"fas fa-circle-notch fa-spin\" aria-hidden=\"true\"></i> }\n @case ('wave') { <i class=\"fas fa-volume-high\" aria-hidden=\"true\"></i> }\n <!-- fa-waveform-lines (FA Pro, shipped in assets/fontawesome) — the\n canonical \"voice mode\" glyph; fa-comment-dots read as a second\n text-chat button. -->\n @default { <i class=\"fas fa-waveform-lines\" aria-hidden=\"true\"></i> }\n }\n </button>\n }\n <button\n type=\"button\"\n class=\"pw-brain-chat__send\"\n [class.pw-brain-chat__send--stop]=\"loading\"\n [disabled]=\"!loading && ((!draft.trim() && !attachment.ready) || attachment.busy || attachment.choosing)\"\n (click)=\"loading ? cancelRequest() : send()\"\n [ngbTooltip]=\"loading ? 'Stop request' : 'Send message'\"\n container=\"body\"\n [attr.aria-label]=\"loading ? 'Stop request' : 'Send message'\"\n >\n <i class=\"fas\" [ngClass]=\"loading ? 'fa-stop' : 'fa-paper-plane'\" aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n </div>\n <div class=\"pw-brain-chat__disclaimer\" role=\"note\">\n <i class=\"fas fa-triangle-exclamation\" aria-hidden=\"true\"></i>\n AI may be inaccurate — verify before acting.\n </div>\n </div>\n</div>\n",
|
|
2163
2946
|
styles: [
|
|
2164
2947
|
".pw-brain-chat{--bc-panel: var(--dashboard_bg, #fff);--bc-shade: #20385e;--bc-surface: color-mix(in srgb, var(--bc-panel) 96.6%, var(--bc-shade));--bc-surface-2: color-mix(in srgb, var(--bc-panel) 92.3%, var(--bc-shade));--bc-line: color-mix(in srgb, var(--bc-panel) 86.8%, var(--bc-shade));--bc-line-strong: color-mix(in srgb, var(--bc-panel) 78.3%, var(--bc-shade));--bc-bubble: color-mix(in srgb, var(--bc-panel) 94.1%, var(--bc-shade));--bc-ink: var(--text, #1a1d21);--bc-title: var(--titles, var(--text, #1a1d21));--bc-ink-2: color-mix(in srgb, var(--bc-ink) 72%, var(--bc-panel));--bc-ink-3: color-mix(in srgb, var(--bc-ink) 55%, var(--bc-panel));--bc-accent: var(--first, #1769e1);--bc-accent-wash: color-mix(in srgb, var(--first, #1769e1) 10%, transparent);--bc-accent-line: color-mix(in srgb, var(--first, #1769e1) 32%, var(--bc-line));--bc-success: #1f9d57;--bc-warning: #b7791f;--bc-error: #c0392b;--bc-r-sm: 4px;--bc-r-md: 8px;--bc-r-lg: 12px;--bc-ease: cubic-bezier(.2, .6, .25, 1);display:flex;flex-direction:column;height:100%;min-height:0;font-size:15px;color:var(--bc-ink);position:relative}:host-context([data-theme=dark]) .pw-brain-chat{--bc-panel: #15181d;--bc-surface: #1c2026;--bc-surface-2: #21262e;--bc-line: #2a2f38;--bc-line-strong: #384150;--bc-bubble: #1c2026;--bc-ink: #edeff2;--bc-title: #edeff2;--bc-ink-2: #aab3c0;--bc-ink-3: #7c8696}.pw-brain-chat__thread{flex:1 1 auto;min-height:0;overflow-y:auto;padding:16px 2px 8px;display:flex;flex-direction:column;gap:18px}.pw-brain-chat__thread>:first-child{margin-top:auto}.pw-brain-chat__turn--bot{display:grid;grid-template-columns:26px 1fr;column-gap:10px}.pw-brain-chat__spine{display:flex;flex-direction:column;align-items:center}.pw-brain-chat__node{width:26px;height:26px;border-radius:8px;flex:none;display:grid;place-items:center;background:var(--bc-surface);border:1px solid var(--bc-line);color:var(--bc-ink-2)}.pw-brain-chat__node i{font-size:12px}.pw-brain-chat__line{flex:1 1 auto;width:2px;margin-top:6px;background:var(--bc-line);border-radius:9999px}.pw-brain-chat__artifacts{min-width:0;display:flex;flex-direction:column;gap:9px;padding-top:1px}.pw-brain-chat__who{font-size:11px;text-transform:uppercase;letter-spacing:.11em;color:var(--bc-ink-3);font-weight:600}.pw-brain-chat__bubble{background:var(--bc-bubble);border:1px solid var(--bc-line);border-radius:var(--bc-r-md);padding:10px 13px}.pw-brain-chat__source{display:inline-flex;align-items:center;gap:6px;max-width:100%;margin-top:6px;padding:3px 9px;border:1px solid var(--bc-line);border-radius:var(--bc-r-sm);color:var(--bc-ink-3);font-size:11px;line-height:1.4}.pw-brain-chat__source-icon{flex-shrink:0;font-size:11px}.pw-brain-chat__source-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pw-brain-chat__turn--user{display:flex;flex-direction:column;align-items:flex-end;gap:3px}.pw-brain-chat__time{font-size:10.5px;font-weight:400;letter-spacing:.02em;color:var(--bc-ink-3);white-space:nowrap}.pw-brain-chat__user-bubble{max-width:82%;background:var(--bc-accent);color:#fff;border-radius:var(--bc-r-md);border-top-right-radius:var(--bc-r-sm);padding:10px 13px;font-size:15px;line-height:1.5}\n",
|
|
2165
2948
|
".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",
|
|
2166
2949
|
".pw-brain-chat__text{margin:0;white-space:pre-wrap;overflow-wrap:break-word;font-family:inherit;font-size:15px;line-height:1.55;color:var(--bc-ink)}.pw-brain-chat__text p{margin:0}.pw-brain-chat__text p+p,.pw-brain-chat__text ul,.pw-brain-chat__text ol{margin-top:7px}.pw-brain-chat__text ul,.pw-brain-chat__text ol{padding-left:18px}.pw-brain-chat__text a{color:var(--bc-ink);text-decoration:underline;text-underline-offset:2px;text-decoration-color:var(--bc-line-strong)}.pw-brain-chat__text a:hover,.pw-brain-chat__text a:focus-visible{color:var(--bc-accent);text-decoration-color:var(--bc-accent)}.pw-brain-chat__text table{width:100%;margin-top:8px;border-collapse:collapse;font-size:13px;border:1px solid var(--bc-line);border-radius:var(--bc-r-md);overflow:hidden}.pw-brain-chat__text th,.pw-brain-chat__text td{text-align:left;padding:8px 12px;border-bottom:1px solid var(--bc-line)}.pw-brain-chat__text th{background:var(--bc-surface);font-weight:600;font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:var(--bc-ink-2)}.pw-brain-chat__text tr:last-child td{border-bottom:0}.pw-brain-chat__user-text{margin:0;white-space:pre-wrap;overflow-wrap:break-word;font-family:inherit;font-size:15px;line-height:1.5}.pw-brain-chat__caret{display:inline-block;width:2px;height:1.05em;vertical-align:-2px;margin-left:2px;background:var(--bc-accent);border-radius:1px;animation:pw-brain-chat-caret 1s steps(2,start) infinite}@keyframes pw-brain-chat-caret{50%{opacity:0}}@media(prefers-reduced-motion:reduce){.pw-brain-chat__caret{animation:none}}\n",
|
|
2167
2950
|
".pw-brain-chat__loading{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:4px 2px 0;font-size:12px;color:var(--bc-ink-3, #7c8696)}.pw-brain-chat__loading-spinner{color:var(--bc-accent, #1769e1)}.pw-brain-chat__iconbtn{width:32px;height:32px;flex:none;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid transparent;border-radius:var(--bc-r-md, 8px);background:transparent;color:var(--bc-ink-3, #7c8696);cursor:pointer;transition:background .15s ease,color .15s ease}.pw-brain-chat__iconbtn:hover:not(:disabled){background:var(--bc-surface, #f7f8fa);color:var(--bc-ink, #1a1d21)}.pw-brain-chat__iconbtn:focus-visible{outline:2px solid var(--bc-accent, #1769e1);outline-offset:2px}.pw-brain-chat__iconbtn:disabled{opacity:.5;cursor:default}.pw-brain-chat__mic--recording{color:var(--bc-error, #c0392b)}.pw-brain-chat__stop:hover:not(:disabled){color:var(--bc-error, #c0392b)}.pw-brain-chat__compose{flex-shrink:0;border-top:1px solid var(--bc-line, #e2e5ea);padding:10px 2px 4px}.pw-brain-chat__field{display:flex;flex-direction:column;align-items:stretch;gap:0;border:1px solid var(--bc-line, #e2e5ea);border-radius:var(--bc-r-md, 8px);background:var(--bc-panel, #fff);padding:6px 6px 6px 12px;transition:border-color .15s ease,box-shadow .15s ease}.pw-brain-chat__field:focus-within{border-color:var(--bc-accent, #1769e1);box-shadow:0 0 0 3px var(--bc-accent-wash, rgba(23, 105, 225, .1))}.pw-brain-chat__field-row{display:flex;align-items:flex-end;gap:8px}.pw-brain-chat__input{flex:1;border:0;resize:none;background:transparent;font-family:inherit;font-size:14px;line-height:1.5;color:var(--bc-ink, #1a1d21);padding:6px 0;max-height:96px}.pw-brain-chat__input:focus{outline:none;box-shadow:none}.pw-brain-chat__input::placeholder{color:var(--bc-ink-3, #7c8696)}.pw-brain-chat__tools{display:flex;align-items:center;gap:2px;flex:none}.pw-brain-chat__send{width:34px;height:34px;flex:none;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:var(--bc-r-md, 8px);background:var(--bc-accent, #1769e1);color:#fff;cursor:pointer;transition:filter .15s ease}.pw-brain-chat__send:hover:not(:disabled){filter:brightness(1.07)}.pw-brain-chat__send:disabled{background:var(--bc-line-strong, #cfd4dc);cursor:default}.pw-brain-chat__send:focus-visible{outline:2px solid var(--bc-accent, #1769e1);outline-offset:2px}.pw-brain-chat__send--stop{background:var(--bc-error, #c0392b)!important}.pw-brain-chat__disclaimer{display:flex;align-items:center;gap:6px;margin:8px 2px 2px;font-size:11px;color:var(--bc-ink-3, #7c8696)}\n",
|
|
2168
|
-
".pw-brain-chat__dropzone{position:absolute;inset:0;z-index:5;display:flex;align-items:center;justify-content:center;padding:16px;background:color-mix(in srgb,var(--bc-panel, #fff) 82%,transparent);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);animation:pw-brain-chat-dropzone-in .16s ease-out}.pw-brain-chat__dropzone-frame{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:100%;height:100%;padding:24px 16px;text-align:center;border:2px dashed var(--bc-accent, #1769e1);border-radius:var(--bc-r-lg, 12px);background:var(--bc-accent-wash, rgba(23, 105, 225, .1))}.pw-brain-chat__dropzone-icon{width:48px;height:48px;display:inline-flex;align-items:center;justify-content:center;margin-bottom:2px;font-size:19px;line-height:1;border-radius:50%;color:var(--bc-accent, #1769e1);background:var(--bc-panel, #fff);border:1px solid color-mix(in srgb,var(--bc-accent, #1769e1) 28%,transparent);box-shadow:0 1px 3px #0000000f}.pw-brain-chat__dropzone-title{font-size:15px;font-weight:600;letter-spacing:-.1px;color:var(--bc-ink, #1a1d21)}.pw-brain-chat__dropzone-hint{font-size:12px;color:var(--bc-ink-3, #7c8696)}@keyframes pw-brain-chat-dropzone-in{0%{opacity:0;transform:scale(.99)}to{opacity:1;transform:none}}.pw-brain-chat__attachment{position:relative;display:flex;align-items:center;gap:10px;margin:0 0 6px;padding:6px 8px;overflow:hidden;border-radius:var(--bc-r-sm, 6px);background:var(--bc-surface, #f7f8fa)}.pw-brain-chat__attachment--error{border:1px solid var(--bc-error, #c0392b);background:color-mix(in srgb,var(--bc-error, #c0392b) 6%,transparent)}.pw-brain-chat__attachment-icon{width:28px;height:28px;flex:none;display:inline-flex;align-items:center;justify-content:center;font-size:13px;border-radius:var(--bc-r-sm, 6px);background:var(--bc-panel, #fff);border:1px solid var(--bc-line, #e2e5ea);color:var(--bc-accent, #1769e1)}.pw-brain-chat__attachment--error .pw-brain-chat__attachment-icon{color:var(--bc-error, #c0392b)}.pw-brain-chat__attachment-body{flex:1;min-width:0}.pw-brain-chat__attachment-name{display:block;font-size:13px;font-weight:600;color:var(--bc-ink, #1a1d21);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pw-brain-chat__attachment-meta{display:block;margin-top:1px;font-size:11px;color:var(--bc-ink-3, #7c8696)}.pw-brain-chat__attachment--error .pw-brain-chat__attachment-meta{color:var(--bc-error, #c0392b)}.pw-brain-chat__attachment-progress{position:absolute;left:0;bottom:0;height:2px;width:var(--pw-upload-progress, 0%);background:var(--bc-accent, #1769e1);transition:width .18s ease-out}@media(prefers-reduced-motion:reduce){.pw-brain-chat__dropzone{animation:none}.pw-brain-chat__attachment-progress{transition:none}}.pw-brain-chat__choice{display:flex;flex-direction:column;gap:6px;margin:-2px 2px 9px}.pw-brain-chat__choice-prompt{font-size:12px;color:var(--bc-ink-2, #5b6472)}.pw-brain-chat__choice-options{display:flex;flex-wrap:wrap;gap:7px}\n",
|
|
2951
|
+
".pw-brain-chat__dropzone{position:absolute;inset:0;z-index:5;display:flex;align-items:center;justify-content:center;padding:16px;background:color-mix(in srgb,var(--bc-panel, #fff) 82%,transparent);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);animation:pw-brain-chat-dropzone-in .16s ease-out}.pw-brain-chat__dropzone-frame{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:100%;height:100%;padding:24px 16px;text-align:center;border:2px dashed var(--bc-accent, #1769e1);border-radius:var(--bc-r-lg, 12px);background:var(--bc-accent-wash, rgba(23, 105, 225, .1))}.pw-brain-chat__dropzone-icon{width:48px;height:48px;display:inline-flex;align-items:center;justify-content:center;margin-bottom:2px;font-size:19px;line-height:1;border-radius:50%;color:var(--bc-accent, #1769e1);background:var(--bc-panel, #fff);border:1px solid color-mix(in srgb,var(--bc-accent, #1769e1) 28%,transparent);box-shadow:0 1px 3px #0000000f}.pw-brain-chat__dropzone-title{font-size:15px;font-weight:600;letter-spacing:-.1px;color:var(--bc-ink, #1a1d21)}.pw-brain-chat__dropzone-hint{font-size:12px;color:var(--bc-ink-3, #7c8696)}@keyframes pw-brain-chat-dropzone-in{0%{opacity:0;transform:scale(.99)}to{opacity:1;transform:none}}.pw-brain-chat__attachment{position:relative;display:flex;align-items:center;gap:10px;margin:0 0 6px;padding:6px 8px;overflow:hidden;border-radius:var(--bc-r-sm, 6px);background:var(--bc-surface, #f7f8fa)}.pw-brain-chat__attachment--error{border:1px solid var(--bc-error, #c0392b);background:color-mix(in srgb,var(--bc-error, #c0392b) 6%,transparent)}.pw-brain-chat__attachment-icon{width:28px;height:28px;flex:none;display:inline-flex;align-items:center;justify-content:center;font-size:13px;border-radius:var(--bc-r-sm, 6px);background:var(--bc-panel, #fff);border:1px solid var(--bc-line, #e2e5ea);color:var(--bc-accent, #1769e1)}.pw-brain-chat__attachment--error .pw-brain-chat__attachment-icon{color:var(--bc-error, #c0392b)}.pw-brain-chat__attachment-body{flex:1;min-width:0}.pw-brain-chat__attachment-name{display:block;font-size:13px;font-weight:600;color:var(--bc-ink, #1a1d21);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pw-brain-chat__attachment-meta{display:block;margin-top:1px;font-size:11px;color:var(--bc-ink-3, #7c8696)}.pw-brain-chat__attachment--error .pw-brain-chat__attachment-meta{color:var(--bc-error, #c0392b)}.pw-brain-chat__attachment-progress{position:absolute;left:0;bottom:0;height:2px;width:var(--pw-upload-progress, 0%);background:var(--bc-accent, #1769e1);transition:width .18s ease-out}@media(prefers-reduced-motion:reduce){.pw-brain-chat__dropzone{animation:none}.pw-brain-chat__attachment-progress{transition:none}}.pw-brain-chat__choice{border:0;padding:0;min-inline-size:0;display:flex;flex-direction:column;gap:6px;margin:-2px 2px 9px}.pw-brain-chat__choice-prompt{font-size:12px;color:var(--bc-ink-2, #5b6472)}.pw-brain-chat__choice-options{display:flex;flex-wrap:wrap;gap:7px}\n",
|
|
2169
2952
|
".pw-brain-chat__mic{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--bs-border-color, #ced4da);background:transparent;color:var(--bs-secondary-color, #6c757d);transition:color .15s ease,border-color .15s ease}.pw-brain-chat__mic:hover:not(:disabled){color:var(--first, #0d6efd);border-color:var(--first, #0d6efd)}.pw-brain-chat__mic--recording{color:#dc3545;border-color:#dc3545;animation:pw-brain-chat-mic-pulse 1.2s ease-in-out infinite}@keyframes pw-brain-chat-mic-pulse{0%,to{opacity:1}50%{opacity:.55}}@media(prefers-reduced-motion:reduce){.pw-brain-chat__mic--recording{animation:none}}\n"
|
|
2170
2953
|
],
|
|
2171
2954
|
dependencies: [
|
|
2172
2955
|
{
|
|
2173
2956
|
kind: "directive",
|
|
2174
|
-
type:
|
|
2957
|
+
type: i4$1.DefaultValueAccessor,
|
|
2175
2958
|
selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]"
|
|
2176
2959
|
},
|
|
2177
2960
|
{
|
|
2178
2961
|
kind: "directive",
|
|
2179
|
-
type:
|
|
2962
|
+
type: i4$1.NgControlStatus,
|
|
2180
2963
|
selector: "[formControlName],[ngModel],[formControl]"
|
|
2181
2964
|
},
|
|
2182
2965
|
{
|
|
2183
2966
|
kind: "directive",
|
|
2184
|
-
type:
|
|
2967
|
+
type: i4$1.NgModel,
|
|
2185
2968
|
selector: "[ngModel]:not([formControlName]):not([formControl])",
|
|
2186
2969
|
inputs: [
|
|
2187
2970
|
"name",
|
|
@@ -2194,7 +2977,7 @@ var PwBrainChatComponent = class PwBrainChatComponent {
|
|
|
2194
2977
|
},
|
|
2195
2978
|
{
|
|
2196
2979
|
kind: "directive",
|
|
2197
|
-
type:
|
|
2980
|
+
type: i1$5.NgbTooltip,
|
|
2198
2981
|
selector: "[ngbTooltip]",
|
|
2199
2982
|
inputs: [
|
|
2200
2983
|
"animation",
|
|
@@ -2216,7 +2999,7 @@ var PwBrainChatComponent = class PwBrainChatComponent {
|
|
|
2216
2999
|
},
|
|
2217
3000
|
{
|
|
2218
3001
|
kind: "directive",
|
|
2219
|
-
type: i1$
|
|
3002
|
+
type: i1$4.NgClass,
|
|
2220
3003
|
selector: "[ngClass]",
|
|
2221
3004
|
inputs: ["class", "ngClass"]
|
|
2222
3005
|
},
|
|
@@ -2248,7 +3031,7 @@ var PwBrainChatComponent = class PwBrainChatComponent {
|
|
|
2248
3031
|
},
|
|
2249
3032
|
{
|
|
2250
3033
|
kind: "pipe",
|
|
2251
|
-
type: i1$
|
|
3034
|
+
type: i1$4.DatePipe,
|
|
2252
3035
|
name: "date"
|
|
2253
3036
|
},
|
|
2254
3037
|
{
|
|
@@ -2272,42 +3055,42 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2272
3055
|
selector: "pw-brain-chat",
|
|
2273
3056
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2274
3057
|
standalone: false,
|
|
2275
|
-
template: "<div\n class=\"pw-brain-chat\"\n (dragenter)=\"attachment.dragEnter($event)\"\n (dragover)=\"attachment.dragOver($event)\"\n (dragleave)=\"attachment.dragLeave($event)\"\n (drop)=\"attachment.drop($event)\"\n>\n @if (attachment.dragActive) {\n <div class=\"pw-brain-chat__dropzone\" aria-hidden=\"true\">\n <div class=\"pw-brain-chat__dropzone-frame\">\n <i class=\"fas fa-file-arrow-up pw-brain-chat__dropzone-icon\" aria-hidden=\"true\"></i>\n <span class=\"pw-brain-chat__dropzone-title\">{{ attachment.label }}</span>\n <span class=\"pw-brain-chat__dropzone-hint\">{{ attachment.hint }}</span>\n </div>\n </div>\n }\n <!-- The sidebar host header owns title + close + live status + New chat\n (SidebarContent.status / headerActions) — so the panel body starts at\n the thread, no duplicate status strip. newChat() is invoked from the\n host header action. -->\n <div #thread pwBrainChatThread class=\"pw-brain-chat__thread\" role=\"log\" aria-live=\"polite\">\n @if (messages.length <= 1 && !loading && !streamingProse) {\n <pw-brain-chat-welcome\n [userFirstName]=\"userFirstName\"\n [prompts]=\"suggestedPrompts\"\n (pick)=\"usePrompt($event)\"\n ></pw-brain-chat-welcome>\n } @else {\n @for (m of messages; track trackByIndex($index, m)) {\n @if (m.role === 'user') {\n <div class=\"pw-brain-chat__turn pw-brain-chat__turn--user\">\n <div class=\"pw-brain-chat__user-bubble\"><pre class=\"pw-brain-chat__user-text\">{{ m.text }}</pre></div>\n @if (m.at) {\n <span class=\"pw-brain-chat__time\">{{ m.at | date: 'shortTime' }}</span>\n }\n </div>\n } @else {\n <div class=\"pw-brain-chat__turn pw-brain-chat__turn--bot\">\n <div class=\"pw-brain-chat__spine\" aria-hidden=\"true\">\n <span class=\"pw-brain-chat__node\"><i class=\"fas fa-brain\"></i></span>\n <span class=\"pw-brain-chat__line\"></span>\n </div>\n <div class=\"pw-brain-chat__artifacts\">\n <span class=\"pw-brain-chat__who\">\n {{ brandName }} Brain\n @if (m.at) {\n <span class=\"pw-brain-chat__time\">· {{ m.at | date: 'shortTime' }}</span>\n }\n </span>\n <div class=\"pw-brain-chat__bubble\">\n @if (m.markdownEnabled) {\n <div class=\"pw-brain-chat__text\" [innerHTML]=\"m.text | safeMarkdown\"></div>\n } @else {\n <pre class=\"pw-brain-chat__text\">{{ m.text }}</pre>\n }\n </div>\n @if (m.sourcePage) {\n <div class=\"pw-brain-chat__source\" role=\"note\">\n <i class=\"fas fa-file-lines pw-brain-chat__source-icon\" aria-hidden=\"true\"></i>\n <span class=\"pw-brain-chat__source-text\">Documented on: {{ m.sourcePage }}</span>\n </div>\n }\n @if (m.pending) {\n <pw-brain-chat-confirm\n [pending]=\"m.pending\"\n [loading]=\"loading\"\n (approveEvent)=\"approve(m)\"\n (cancelEvent)=\"cancel(m)\"\n ></pw-brain-chat-confirm>\n }\n </div>\n </div>\n }\n }\n }\n\n @if (loading && streamingProse) {\n <!-- prose streams token-by-token into a partial bot turn; caret = writing (#51) -->\n <div class=\"pw-brain-chat__turn pw-brain-chat__turn--bot\">\n <div class=\"pw-brain-chat__spine\" aria-hidden=\"true\">\n <span class=\"pw-brain-chat__node\"><i class=\"fas fa-brain\"></i></span>\n <span class=\"pw-brain-chat__line\"></span>\n </div>\n <div class=\"pw-brain-chat__artifacts\">\n <span class=\"pw-brain-chat__who\">{{ brandName }} Brain</span>\n <div class=\"pw-brain-chat__bubble\">\n <pre class=\"pw-brain-chat__text\"\n >{{ streamingProse }}<span class=\"pw-brain-chat__caret\" aria-hidden=\"true\"></span></pre>\n </div>\n </div>\n </div>\n }\n </div>\n\n @if (loading && !streamingProse) {\n <div class=\"pw-brain-chat__loading\">\n <i class=\"fas fa-circle-notch fa-spin pw-brain-chat__loading-spinner\" aria-hidden=\"true\"></i>\n <span aria-live=\"polite\">{{ streamingStage || 'Working…' }}</span>\n <button type=\"button\" class=\"pw-brain-chat__iconbtn pw-brain-chat__stop\" (click)=\"cancelRequest()\"\n [ngbTooltip]=\"'Stop request'\" container=\"body\" aria-label=\"Stop request\">\n <i class=\"fas fa-stop\" aria-hidden=\"true\"></i>\n </button>\n </div>\n }\n\n <!-- Voice session / dictation → animated Sonar overlay (#51) -->\n @if (voiceChat.isActive || voiceChat.error || dictation.phase === 'listening' || dictation.phase === 'processing' || dictation.error) {\n <pw-brain-chat-voice-overlay\n [voice]=\"voiceChat\"\n [dictation]=\"dictation\"\n (end)=\"voiceChat.isActive || voiceChat.error ? voiceChat.stop() : dictation.dismiss()\"\n ></pw-brain-chat-voice-overlay>\n }\n\n <div class=\"pw-brain-chat__compose\">\n @if (messages.length > 1) {\n <div class=\"pw-brain-chat__quick\">\n @for (q of quickActions; track q.text) {\n <button type=\"button\" class=\"pw-brain-chat__chip\" (click)=\"usePrompt(q.text)\">\n <i class=\"fas\" [ngClass]=\"q.icon\" aria-hidden=\"true\"></i>{{ q.label }}\n </button>\n }\n </div>\n }\n <label class=\"visually-hidden\" for=\"pw-brain-chat-input\">Message {{ brandName }} Brain</label>\n <div class=\"pw-brain-chat__field\">\n @if (attachment.current; as file) {\n <div\n class=\"pw-brain-chat__attachment\"\n [class.pw-brain-chat__attachment--error]=\"file.status === 'error'\"\n [style.--pw-upload-progress]=\"file.percent + '%'\"\n >\n <span class=\"pw-brain-chat__attachment-icon\">\n <i class=\"fas\" [ngClass]=\"attachment.icon()\" aria-hidden=\"true\"></i>\n </span>\n <span class=\"pw-brain-chat__attachment-body\">\n <span class=\"pw-brain-chat__attachment-name\" [title]=\"file.name\">{{ file.name }}</span>\n <span class=\"pw-brain-chat__attachment-meta\" role=\"status\" aria-live=\"polite\">{{ attachment.meta() }}</span>\n </span>\n <button\n type=\"button\"\n class=\"pw-brain-chat__iconbtn\"\n (click)=\"attachment.remove()\"\n ngbTooltip=\"Remove file\"\n container=\"body\"\n aria-label=\"Remove attached file\"\n ><i class=\"fas fa-xmark\" aria-hidden=\"true\"></i></button>\n @if (file.status === 'uploading') {\n <span class=\"pw-brain-chat__attachment-progress\"></span>\n }\n </div>\n @if (attachment.choosing) {\n <div class=\"pw-brain-chat__choice\" role=\"group\" aria-label=\"What should I do with this file?\">\n <span class=\"pw-brain-chat__choice-prompt\">What should I do with this file?</span>\n <div class=\"pw-brain-chat__choice-options\">\n @for (option of attachment.choices; track option.tool) {\n <button\n type=\"button\"\n class=\"pw-brain-chat__chip\"\n (click)=\"attachment.choose(option)\"\n >{{ attachment.choiceLabel(option) }}</button>\n }\n </div>\n </div>\n }\n }\n <div class=\"pw-brain-chat__field-row\">\n <textarea\n id=\"pw-brain-chat-input\"\n class=\"pw-brain-chat__input\"\n rows=\"1\"\n [(ngModel)]=\"draft\"\n [placeholder]=\"composerPlaceholder\"\n (keydown.enter)=\"$event.preventDefault(); send()\"\n [attr.aria-label]=\"composerPlaceholder\"\n ></textarea>\n <div class=\"pw-brain-chat__tools\">\n @if (attachment.enabled) {\n <input\n #fileInput\n type=\"file\"\n class=\"visually-hidden\"\n [accept]=\"attachment.acceptAttr\"\n (change)=\"pickFile(fileInput)\"\n />\n <button\n type=\"button\"\n class=\"pw-brain-chat__iconbtn\"\n [disabled]=\"loading || attachment.busy\"\n (click)=\"fileInput.click()\"\n ngbTooltip=\"Attach a file\"\n container=\"body\"\n aria-label=\"Attach a file\"\n ><i class=\"fas fa-paperclip\" aria-hidden=\"true\"></i></button>\n }\n <button\n type=\"button\"\n class=\"pw-brain-chat__iconbtn pw-brain-chat__mic\"\n [class.pw-brain-chat__mic--recording]=\"dictation.isRecording\"\n [disabled]=\"loading || dictation.phase === 'processing'\"\n (click)=\"dictation.toggle(loading)\"\n [ngbTooltip]=\"dictation.phase === 'listening' ? 'Stop dictation' : (dictation.phase === 'processing' ? 'Processing…' : 'Dictate')\"\n container=\"body\"\n [attr.aria-label]=\"dictation.phase === 'listening' ? 'Stop dictation' : 'Dictate with your voice'\"\n [attr.aria-pressed]=\"dictation.isRecording\"\n ><i class=\"fas fa-microphone\" aria-hidden=\"true\"></i></button>\n @if (voiceChat.available) {\n <button\n type=\"button\"\n class=\"pw-brain-chat__iconbtn\"\n [disabled]=\"loading || dictation.isRecording\"\n (click)=\"voiceChat.toggle(loading)\"\n [ngbTooltip]=\"voiceChat.isActive ? 'End voice chat' : 'Voice chat'\"\n container=\"body\"\n [attr.aria-label]=\"voiceChat.isActive ? 'End voice chat' : 'Start voice chat'\"\n [attr.aria-pressed]=\"voiceChat.isActive\"\n >\n @switch (voiceChat.visual) {\n @case ('loader') { <i class=\"fas fa-circle-notch fa-spin\" aria-hidden=\"true\"></i> }\n @case ('wave') { <i class=\"fas fa-volume-high\" aria-hidden=\"true\"></i> }\n <!-- fa-waveform-lines (FA Pro, shipped in assets/fontawesome) — the\n canonical \"voice mode\" glyph; fa-comment-dots read as a second\n text-chat button. -->\n @default { <i class=\"fas fa-waveform-lines\" aria-hidden=\"true\"></i> }\n }\n </button>\n }\n <button\n type=\"button\"\n class=\"pw-brain-chat__send\"\n [class.pw-brain-chat__send--stop]=\"loading\"\n [disabled]=\"!loading && ((!draft.trim() && !attachment.ready) || attachment.busy || attachment.choosing)\"\n (click)=\"loading ? cancelRequest() : send()\"\n [ngbTooltip]=\"loading ? 'Stop request' : 'Send message'\"\n container=\"body\"\n [attr.aria-label]=\"loading ? 'Stop request' : 'Send message'\"\n >\n <i class=\"fas\" [ngClass]=\"loading ? 'fa-stop' : 'fa-paper-plane'\" aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n </div>\n <div class=\"pw-brain-chat__disclaimer\" role=\"note\">\n <i class=\"fas fa-triangle-exclamation\" aria-hidden=\"true\"></i>\n AI may be inaccurate — verify before acting.\n </div>\n </div>\n</div>\n",
|
|
3058
|
+
template: "<div\n class=\"pw-brain-chat\"\n (dragenter)=\"attachment.dragEnter($event)\"\n (dragover)=\"attachment.dragOver($event)\"\n (dragleave)=\"attachment.dragLeave($event)\"\n (drop)=\"attachment.drop($event)\"\n>\n @if (attachment.dragActive) {\n <div class=\"pw-brain-chat__dropzone\" aria-hidden=\"true\">\n <div class=\"pw-brain-chat__dropzone-frame\">\n <i class=\"fas fa-file-arrow-up pw-brain-chat__dropzone-icon\" aria-hidden=\"true\"></i>\n <span class=\"pw-brain-chat__dropzone-title\">{{ attachment.label }}</span>\n <span class=\"pw-brain-chat__dropzone-hint\">{{ attachment.hint }}</span>\n </div>\n </div>\n }\n <!-- The sidebar host header owns title + close + live status + New chat\n (SidebarContent.status / headerActions) — so the panel body starts at\n the thread, no duplicate status strip. newChat() is invoked from the\n host header action. -->\n <div #thread pwBrainChatThread class=\"pw-brain-chat__thread\" role=\"log\" aria-live=\"polite\">\n @if (messages.length <= 1 && !loading && !streamingProse) {\n <pw-brain-chat-welcome\n [userFirstName]=\"userFirstName\"\n [prompts]=\"suggestedPrompts\"\n (pick)=\"usePrompt($event)\"\n ></pw-brain-chat-welcome>\n } @else {\n @for (m of messages; track trackByIndex($index, m)) {\n @if (m.role === 'user') {\n <div class=\"pw-brain-chat__turn pw-brain-chat__turn--user\">\n <div class=\"pw-brain-chat__user-bubble\"><pre class=\"pw-brain-chat__user-text\">{{ m.text }}</pre></div>\n @if (m.at) {\n <span class=\"pw-brain-chat__time\">{{ m.at | date: 'shortTime' }}</span>\n }\n </div>\n } @else {\n <div class=\"pw-brain-chat__turn pw-brain-chat__turn--bot\">\n <div class=\"pw-brain-chat__spine\" aria-hidden=\"true\">\n <span class=\"pw-brain-chat__node\"><i class=\"fas fa-brain\"></i></span>\n <span class=\"pw-brain-chat__line\"></span>\n </div>\n <div class=\"pw-brain-chat__artifacts\">\n <span class=\"pw-brain-chat__who\">\n {{ brandName }} Brain\n @if (m.at) {\n <span class=\"pw-brain-chat__time\">· {{ m.at | date: 'shortTime' }}</span>\n }\n </span>\n <div class=\"pw-brain-chat__bubble\">\n @if (m.markdownEnabled) {\n <div class=\"pw-brain-chat__text\" [innerHTML]=\"m.text | safeMarkdown\"></div>\n } @else {\n <pre class=\"pw-brain-chat__text\">{{ m.text }}</pre>\n }\n </div>\n @if (m.sourcePage) {\n <div class=\"pw-brain-chat__source\" role=\"note\">\n <i class=\"fas fa-file-lines pw-brain-chat__source-icon\" aria-hidden=\"true\"></i>\n <span class=\"pw-brain-chat__source-text\">Documented on: {{ m.sourcePage }}</span>\n </div>\n }\n @if (m.pending) {\n <pw-brain-chat-confirm\n [pending]=\"m.pending\"\n [loading]=\"loading\"\n (approveEvent)=\"approve(m)\"\n (cancelEvent)=\"cancel(m)\"\n ></pw-brain-chat-confirm>\n }\n </div>\n </div>\n }\n }\n }\n\n @if (loading && streamingProse) {\n <!-- prose streams token-by-token into a partial bot turn; caret = writing (#51) -->\n <div class=\"pw-brain-chat__turn pw-brain-chat__turn--bot\">\n <div class=\"pw-brain-chat__spine\" aria-hidden=\"true\">\n <span class=\"pw-brain-chat__node\"><i class=\"fas fa-brain\"></i></span>\n <span class=\"pw-brain-chat__line\"></span>\n </div>\n <div class=\"pw-brain-chat__artifacts\">\n <span class=\"pw-brain-chat__who\">{{ brandName }} Brain</span>\n <div class=\"pw-brain-chat__bubble\">\n <pre class=\"pw-brain-chat__text\"\n >{{ streamingProse }}<span class=\"pw-brain-chat__caret\" aria-hidden=\"true\"></span></pre>\n </div>\n </div>\n </div>\n }\n </div>\n\n @if (loading && !streamingProse) {\n <div class=\"pw-brain-chat__loading\">\n <i class=\"fas fa-circle-notch fa-spin pw-brain-chat__loading-spinner\" aria-hidden=\"true\"></i>\n <span aria-live=\"polite\">{{ streamingStage || 'Working…' }}</span>\n <button type=\"button\" class=\"pw-brain-chat__iconbtn pw-brain-chat__stop\" (click)=\"cancelRequest()\"\n [ngbTooltip]=\"'Stop request'\" container=\"body\" aria-label=\"Stop request\">\n <i class=\"fas fa-stop\" aria-hidden=\"true\"></i>\n </button>\n </div>\n }\n\n <!-- Voice session / dictation → animated Sonar overlay (#51) -->\n @if (voiceChat.isActive || voiceChat.error || dictation.phase === 'listening' || dictation.phase === 'processing' || dictation.error) {\n <pw-brain-chat-voice-overlay\n [voice]=\"voiceChat\"\n [dictation]=\"dictation\"\n (end)=\"voiceChat.isActive || voiceChat.error ? voiceChat.stop() : dictation.dismiss()\"\n ></pw-brain-chat-voice-overlay>\n }\n\n <div class=\"pw-brain-chat__compose\">\n @if (messages.length > 1) {\n <div class=\"pw-brain-chat__quick\">\n @for (q of quickActions; track q.text) {\n <button type=\"button\" class=\"pw-brain-chat__chip\" (click)=\"usePrompt(q.text)\">\n <i class=\"fas\" [ngClass]=\"q.icon\" aria-hidden=\"true\"></i>{{ q.label }}\n </button>\n }\n </div>\n }\n <label class=\"visually-hidden\" for=\"pw-brain-chat-input\">Message {{ brandName }} Brain</label>\n <div class=\"pw-brain-chat__field\">\n @if (attachment.current; as file) {\n <div\n class=\"pw-brain-chat__attachment\"\n [class.pw-brain-chat__attachment--error]=\"file.status === 'error'\"\n [style.--pw-upload-progress]=\"file.percent + '%'\"\n >\n <span class=\"pw-brain-chat__attachment-icon\">\n <i class=\"fas\" [ngClass]=\"attachment.icon()\" aria-hidden=\"true\"></i>\n </span>\n <span class=\"pw-brain-chat__attachment-body\">\n <span class=\"pw-brain-chat__attachment-name\" [title]=\"file.name\">{{ file.name }}</span>\n <output class=\"pw-brain-chat__attachment-meta\" aria-live=\"polite\">{{ attachment.meta() }}</output>\n </span>\n <button\n type=\"button\"\n class=\"pw-brain-chat__iconbtn\"\n (click)=\"attachment.remove()\"\n ngbTooltip=\"Remove file\"\n container=\"body\"\n aria-label=\"Remove attached file\"\n ><i class=\"fas fa-xmark\" aria-hidden=\"true\"></i></button>\n @if (file.status === 'uploading') {\n <span class=\"pw-brain-chat__attachment-progress\"></span>\n }\n </div>\n @if (attachment.choosing) {\n <fieldset class=\"pw-brain-chat__choice\" aria-label=\"What should I do with this file?\">\n <span class=\"pw-brain-chat__choice-prompt\">What should I do with this file?</span>\n <div class=\"pw-brain-chat__choice-options\">\n @for (option of attachment.choices; track option.tool) {\n <button\n type=\"button\"\n class=\"pw-brain-chat__chip\"\n (click)=\"attachment.choose(option)\"\n >{{ attachment.choiceLabel(option) }}</button>\n }\n </div>\n </fieldset>\n }\n }\n <div class=\"pw-brain-chat__field-row\">\n <textarea\n id=\"pw-brain-chat-input\"\n class=\"pw-brain-chat__input\"\n rows=\"1\"\n [(ngModel)]=\"draft\"\n [placeholder]=\"composerPlaceholder\"\n (keydown.enter)=\"$event.preventDefault(); send()\"\n [attr.aria-label]=\"composerPlaceholder\"\n ></textarea>\n <div class=\"pw-brain-chat__tools\">\n @if (attachment.enabled) {\n <label for=\"pw-brain-chat-file-input\" class=\"visually-hidden\">Attach file</label>\n <input\n #fileInput\n id=\"pw-brain-chat-file-input\"\n type=\"file\"\n class=\"visually-hidden\"\n [accept]=\"attachment.acceptAttr\"\n (change)=\"pickFile(fileInput)\"\n />\n <button\n type=\"button\"\n class=\"pw-brain-chat__iconbtn\"\n [disabled]=\"loading || attachment.busy\"\n (click)=\"fileInput.click()\"\n ngbTooltip=\"Attach a file\"\n container=\"body\"\n aria-label=\"Attach a file\"\n ><i class=\"fas fa-paperclip\" aria-hidden=\"true\"></i></button>\n }\n <button\n type=\"button\"\n class=\"pw-brain-chat__iconbtn pw-brain-chat__mic\"\n [class.pw-brain-chat__mic--recording]=\"dictation.isRecording\"\n [disabled]=\"loading || dictation.phase === 'processing'\"\n (click)=\"dictation.toggle(loading)\"\n [ngbTooltip]=\"dictation.phase === 'listening' ? 'Stop dictation' : (dictation.phase === 'processing' ? 'Processing…' : 'Dictate')\"\n container=\"body\"\n [attr.aria-label]=\"dictation.phase === 'listening' ? 'Stop dictation' : 'Dictate with your voice'\"\n [attr.aria-pressed]=\"dictation.isRecording\"\n ><i class=\"fas fa-microphone\" aria-hidden=\"true\"></i></button>\n @if (voiceChat.available) {\n <button\n type=\"button\"\n class=\"pw-brain-chat__iconbtn\"\n [disabled]=\"loading || dictation.isRecording\"\n (click)=\"voiceChat.toggle(loading)\"\n [ngbTooltip]=\"voiceChat.isActive ? 'End voice chat' : 'Voice chat'\"\n container=\"body\"\n [attr.aria-label]=\"voiceChat.isActive ? 'End voice chat' : 'Start voice chat'\"\n [attr.aria-pressed]=\"voiceChat.isActive\"\n >\n @switch (voiceChat.visual) {\n @case ('loader') { <i class=\"fas fa-circle-notch fa-spin\" aria-hidden=\"true\"></i> }\n @case ('wave') { <i class=\"fas fa-volume-high\" aria-hidden=\"true\"></i> }\n <!-- fa-waveform-lines (FA Pro, shipped in assets/fontawesome) — the\n canonical \"voice mode\" glyph; fa-comment-dots read as a second\n text-chat button. -->\n @default { <i class=\"fas fa-waveform-lines\" aria-hidden=\"true\"></i> }\n }\n </button>\n }\n <button\n type=\"button\"\n class=\"pw-brain-chat__send\"\n [class.pw-brain-chat__send--stop]=\"loading\"\n [disabled]=\"!loading && ((!draft.trim() && !attachment.ready) || attachment.busy || attachment.choosing)\"\n (click)=\"loading ? cancelRequest() : send()\"\n [ngbTooltip]=\"loading ? 'Stop request' : 'Send message'\"\n container=\"body\"\n [attr.aria-label]=\"loading ? 'Stop request' : 'Send message'\"\n >\n <i class=\"fas\" [ngClass]=\"loading ? 'fa-stop' : 'fa-paper-plane'\" aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n </div>\n <div class=\"pw-brain-chat__disclaimer\" role=\"note\">\n <i class=\"fas fa-triangle-exclamation\" aria-hidden=\"true\"></i>\n AI may be inaccurate — verify before acting.\n </div>\n </div>\n</div>\n",
|
|
2276
3059
|
styles: [
|
|
2277
3060
|
".pw-brain-chat{--bc-panel: var(--dashboard_bg, #fff);--bc-shade: #20385e;--bc-surface: color-mix(in srgb, var(--bc-panel) 96.6%, var(--bc-shade));--bc-surface-2: color-mix(in srgb, var(--bc-panel) 92.3%, var(--bc-shade));--bc-line: color-mix(in srgb, var(--bc-panel) 86.8%, var(--bc-shade));--bc-line-strong: color-mix(in srgb, var(--bc-panel) 78.3%, var(--bc-shade));--bc-bubble: color-mix(in srgb, var(--bc-panel) 94.1%, var(--bc-shade));--bc-ink: var(--text, #1a1d21);--bc-title: var(--titles, var(--text, #1a1d21));--bc-ink-2: color-mix(in srgb, var(--bc-ink) 72%, var(--bc-panel));--bc-ink-3: color-mix(in srgb, var(--bc-ink) 55%, var(--bc-panel));--bc-accent: var(--first, #1769e1);--bc-accent-wash: color-mix(in srgb, var(--first, #1769e1) 10%, transparent);--bc-accent-line: color-mix(in srgb, var(--first, #1769e1) 32%, var(--bc-line));--bc-success: #1f9d57;--bc-warning: #b7791f;--bc-error: #c0392b;--bc-r-sm: 4px;--bc-r-md: 8px;--bc-r-lg: 12px;--bc-ease: cubic-bezier(.2, .6, .25, 1);display:flex;flex-direction:column;height:100%;min-height:0;font-size:15px;color:var(--bc-ink);position:relative}:host-context([data-theme=dark]) .pw-brain-chat{--bc-panel: #15181d;--bc-surface: #1c2026;--bc-surface-2: #21262e;--bc-line: #2a2f38;--bc-line-strong: #384150;--bc-bubble: #1c2026;--bc-ink: #edeff2;--bc-title: #edeff2;--bc-ink-2: #aab3c0;--bc-ink-3: #7c8696}.pw-brain-chat__thread{flex:1 1 auto;min-height:0;overflow-y:auto;padding:16px 2px 8px;display:flex;flex-direction:column;gap:18px}.pw-brain-chat__thread>:first-child{margin-top:auto}.pw-brain-chat__turn--bot{display:grid;grid-template-columns:26px 1fr;column-gap:10px}.pw-brain-chat__spine{display:flex;flex-direction:column;align-items:center}.pw-brain-chat__node{width:26px;height:26px;border-radius:8px;flex:none;display:grid;place-items:center;background:var(--bc-surface);border:1px solid var(--bc-line);color:var(--bc-ink-2)}.pw-brain-chat__node i{font-size:12px}.pw-brain-chat__line{flex:1 1 auto;width:2px;margin-top:6px;background:var(--bc-line);border-radius:9999px}.pw-brain-chat__artifacts{min-width:0;display:flex;flex-direction:column;gap:9px;padding-top:1px}.pw-brain-chat__who{font-size:11px;text-transform:uppercase;letter-spacing:.11em;color:var(--bc-ink-3);font-weight:600}.pw-brain-chat__bubble{background:var(--bc-bubble);border:1px solid var(--bc-line);border-radius:var(--bc-r-md);padding:10px 13px}.pw-brain-chat__source{display:inline-flex;align-items:center;gap:6px;max-width:100%;margin-top:6px;padding:3px 9px;border:1px solid var(--bc-line);border-radius:var(--bc-r-sm);color:var(--bc-ink-3);font-size:11px;line-height:1.4}.pw-brain-chat__source-icon{flex-shrink:0;font-size:11px}.pw-brain-chat__source-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pw-brain-chat__turn--user{display:flex;flex-direction:column;align-items:flex-end;gap:3px}.pw-brain-chat__time{font-size:10.5px;font-weight:400;letter-spacing:.02em;color:var(--bc-ink-3);white-space:nowrap}.pw-brain-chat__user-bubble{max-width:82%;background:var(--bc-accent);color:#fff;border-radius:var(--bc-r-md);border-top-right-radius:var(--bc-r-sm);padding:10px 13px;font-size:15px;line-height:1.5}\n",
|
|
2278
3061
|
".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",
|
|
2279
3062
|
".pw-brain-chat__text{margin:0;white-space:pre-wrap;overflow-wrap:break-word;font-family:inherit;font-size:15px;line-height:1.55;color:var(--bc-ink)}.pw-brain-chat__text p{margin:0}.pw-brain-chat__text p+p,.pw-brain-chat__text ul,.pw-brain-chat__text ol{margin-top:7px}.pw-brain-chat__text ul,.pw-brain-chat__text ol{padding-left:18px}.pw-brain-chat__text a{color:var(--bc-ink);text-decoration:underline;text-underline-offset:2px;text-decoration-color:var(--bc-line-strong)}.pw-brain-chat__text a:hover,.pw-brain-chat__text a:focus-visible{color:var(--bc-accent);text-decoration-color:var(--bc-accent)}.pw-brain-chat__text table{width:100%;margin-top:8px;border-collapse:collapse;font-size:13px;border:1px solid var(--bc-line);border-radius:var(--bc-r-md);overflow:hidden}.pw-brain-chat__text th,.pw-brain-chat__text td{text-align:left;padding:8px 12px;border-bottom:1px solid var(--bc-line)}.pw-brain-chat__text th{background:var(--bc-surface);font-weight:600;font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:var(--bc-ink-2)}.pw-brain-chat__text tr:last-child td{border-bottom:0}.pw-brain-chat__user-text{margin:0;white-space:pre-wrap;overflow-wrap:break-word;font-family:inherit;font-size:15px;line-height:1.5}.pw-brain-chat__caret{display:inline-block;width:2px;height:1.05em;vertical-align:-2px;margin-left:2px;background:var(--bc-accent);border-radius:1px;animation:pw-brain-chat-caret 1s steps(2,start) infinite}@keyframes pw-brain-chat-caret{50%{opacity:0}}@media(prefers-reduced-motion:reduce){.pw-brain-chat__caret{animation:none}}\n",
|
|
2280
3063
|
".pw-brain-chat__loading{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:4px 2px 0;font-size:12px;color:var(--bc-ink-3, #7c8696)}.pw-brain-chat__loading-spinner{color:var(--bc-accent, #1769e1)}.pw-brain-chat__iconbtn{width:32px;height:32px;flex:none;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid transparent;border-radius:var(--bc-r-md, 8px);background:transparent;color:var(--bc-ink-3, #7c8696);cursor:pointer;transition:background .15s ease,color .15s ease}.pw-brain-chat__iconbtn:hover:not(:disabled){background:var(--bc-surface, #f7f8fa);color:var(--bc-ink, #1a1d21)}.pw-brain-chat__iconbtn:focus-visible{outline:2px solid var(--bc-accent, #1769e1);outline-offset:2px}.pw-brain-chat__iconbtn:disabled{opacity:.5;cursor:default}.pw-brain-chat__mic--recording{color:var(--bc-error, #c0392b)}.pw-brain-chat__stop:hover:not(:disabled){color:var(--bc-error, #c0392b)}.pw-brain-chat__compose{flex-shrink:0;border-top:1px solid var(--bc-line, #e2e5ea);padding:10px 2px 4px}.pw-brain-chat__field{display:flex;flex-direction:column;align-items:stretch;gap:0;border:1px solid var(--bc-line, #e2e5ea);border-radius:var(--bc-r-md, 8px);background:var(--bc-panel, #fff);padding:6px 6px 6px 12px;transition:border-color .15s ease,box-shadow .15s ease}.pw-brain-chat__field:focus-within{border-color:var(--bc-accent, #1769e1);box-shadow:0 0 0 3px var(--bc-accent-wash, rgba(23, 105, 225, .1))}.pw-brain-chat__field-row{display:flex;align-items:flex-end;gap:8px}.pw-brain-chat__input{flex:1;border:0;resize:none;background:transparent;font-family:inherit;font-size:14px;line-height:1.5;color:var(--bc-ink, #1a1d21);padding:6px 0;max-height:96px}.pw-brain-chat__input:focus{outline:none;box-shadow:none}.pw-brain-chat__input::placeholder{color:var(--bc-ink-3, #7c8696)}.pw-brain-chat__tools{display:flex;align-items:center;gap:2px;flex:none}.pw-brain-chat__send{width:34px;height:34px;flex:none;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:var(--bc-r-md, 8px);background:var(--bc-accent, #1769e1);color:#fff;cursor:pointer;transition:filter .15s ease}.pw-brain-chat__send:hover:not(:disabled){filter:brightness(1.07)}.pw-brain-chat__send:disabled{background:var(--bc-line-strong, #cfd4dc);cursor:default}.pw-brain-chat__send:focus-visible{outline:2px solid var(--bc-accent, #1769e1);outline-offset:2px}.pw-brain-chat__send--stop{background:var(--bc-error, #c0392b)!important}.pw-brain-chat__disclaimer{display:flex;align-items:center;gap:6px;margin:8px 2px 2px;font-size:11px;color:var(--bc-ink-3, #7c8696)}\n",
|
|
2281
|
-
".pw-brain-chat__dropzone{position:absolute;inset:0;z-index:5;display:flex;align-items:center;justify-content:center;padding:16px;background:color-mix(in srgb,var(--bc-panel, #fff) 82%,transparent);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);animation:pw-brain-chat-dropzone-in .16s ease-out}.pw-brain-chat__dropzone-frame{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:100%;height:100%;padding:24px 16px;text-align:center;border:2px dashed var(--bc-accent, #1769e1);border-radius:var(--bc-r-lg, 12px);background:var(--bc-accent-wash, rgba(23, 105, 225, .1))}.pw-brain-chat__dropzone-icon{width:48px;height:48px;display:inline-flex;align-items:center;justify-content:center;margin-bottom:2px;font-size:19px;line-height:1;border-radius:50%;color:var(--bc-accent, #1769e1);background:var(--bc-panel, #fff);border:1px solid color-mix(in srgb,var(--bc-accent, #1769e1) 28%,transparent);box-shadow:0 1px 3px #0000000f}.pw-brain-chat__dropzone-title{font-size:15px;font-weight:600;letter-spacing:-.1px;color:var(--bc-ink, #1a1d21)}.pw-brain-chat__dropzone-hint{font-size:12px;color:var(--bc-ink-3, #7c8696)}@keyframes pw-brain-chat-dropzone-in{0%{opacity:0;transform:scale(.99)}to{opacity:1;transform:none}}.pw-brain-chat__attachment{position:relative;display:flex;align-items:center;gap:10px;margin:0 0 6px;padding:6px 8px;overflow:hidden;border-radius:var(--bc-r-sm, 6px);background:var(--bc-surface, #f7f8fa)}.pw-brain-chat__attachment--error{border:1px solid var(--bc-error, #c0392b);background:color-mix(in srgb,var(--bc-error, #c0392b) 6%,transparent)}.pw-brain-chat__attachment-icon{width:28px;height:28px;flex:none;display:inline-flex;align-items:center;justify-content:center;font-size:13px;border-radius:var(--bc-r-sm, 6px);background:var(--bc-panel, #fff);border:1px solid var(--bc-line, #e2e5ea);color:var(--bc-accent, #1769e1)}.pw-brain-chat__attachment--error .pw-brain-chat__attachment-icon{color:var(--bc-error, #c0392b)}.pw-brain-chat__attachment-body{flex:1;min-width:0}.pw-brain-chat__attachment-name{display:block;font-size:13px;font-weight:600;color:var(--bc-ink, #1a1d21);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pw-brain-chat__attachment-meta{display:block;margin-top:1px;font-size:11px;color:var(--bc-ink-3, #7c8696)}.pw-brain-chat__attachment--error .pw-brain-chat__attachment-meta{color:var(--bc-error, #c0392b)}.pw-brain-chat__attachment-progress{position:absolute;left:0;bottom:0;height:2px;width:var(--pw-upload-progress, 0%);background:var(--bc-accent, #1769e1);transition:width .18s ease-out}@media(prefers-reduced-motion:reduce){.pw-brain-chat__dropzone{animation:none}.pw-brain-chat__attachment-progress{transition:none}}.pw-brain-chat__choice{display:flex;flex-direction:column;gap:6px;margin:-2px 2px 9px}.pw-brain-chat__choice-prompt{font-size:12px;color:var(--bc-ink-2, #5b6472)}.pw-brain-chat__choice-options{display:flex;flex-wrap:wrap;gap:7px}\n",
|
|
3064
|
+
".pw-brain-chat__dropzone{position:absolute;inset:0;z-index:5;display:flex;align-items:center;justify-content:center;padding:16px;background:color-mix(in srgb,var(--bc-panel, #fff) 82%,transparent);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);animation:pw-brain-chat-dropzone-in .16s ease-out}.pw-brain-chat__dropzone-frame{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:100%;height:100%;padding:24px 16px;text-align:center;border:2px dashed var(--bc-accent, #1769e1);border-radius:var(--bc-r-lg, 12px);background:var(--bc-accent-wash, rgba(23, 105, 225, .1))}.pw-brain-chat__dropzone-icon{width:48px;height:48px;display:inline-flex;align-items:center;justify-content:center;margin-bottom:2px;font-size:19px;line-height:1;border-radius:50%;color:var(--bc-accent, #1769e1);background:var(--bc-panel, #fff);border:1px solid color-mix(in srgb,var(--bc-accent, #1769e1) 28%,transparent);box-shadow:0 1px 3px #0000000f}.pw-brain-chat__dropzone-title{font-size:15px;font-weight:600;letter-spacing:-.1px;color:var(--bc-ink, #1a1d21)}.pw-brain-chat__dropzone-hint{font-size:12px;color:var(--bc-ink-3, #7c8696)}@keyframes pw-brain-chat-dropzone-in{0%{opacity:0;transform:scale(.99)}to{opacity:1;transform:none}}.pw-brain-chat__attachment{position:relative;display:flex;align-items:center;gap:10px;margin:0 0 6px;padding:6px 8px;overflow:hidden;border-radius:var(--bc-r-sm, 6px);background:var(--bc-surface, #f7f8fa)}.pw-brain-chat__attachment--error{border:1px solid var(--bc-error, #c0392b);background:color-mix(in srgb,var(--bc-error, #c0392b) 6%,transparent)}.pw-brain-chat__attachment-icon{width:28px;height:28px;flex:none;display:inline-flex;align-items:center;justify-content:center;font-size:13px;border-radius:var(--bc-r-sm, 6px);background:var(--bc-panel, #fff);border:1px solid var(--bc-line, #e2e5ea);color:var(--bc-accent, #1769e1)}.pw-brain-chat__attachment--error .pw-brain-chat__attachment-icon{color:var(--bc-error, #c0392b)}.pw-brain-chat__attachment-body{flex:1;min-width:0}.pw-brain-chat__attachment-name{display:block;font-size:13px;font-weight:600;color:var(--bc-ink, #1a1d21);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pw-brain-chat__attachment-meta{display:block;margin-top:1px;font-size:11px;color:var(--bc-ink-3, #7c8696)}.pw-brain-chat__attachment--error .pw-brain-chat__attachment-meta{color:var(--bc-error, #c0392b)}.pw-brain-chat__attachment-progress{position:absolute;left:0;bottom:0;height:2px;width:var(--pw-upload-progress, 0%);background:var(--bc-accent, #1769e1);transition:width .18s ease-out}@media(prefers-reduced-motion:reduce){.pw-brain-chat__dropzone{animation:none}.pw-brain-chat__attachment-progress{transition:none}}.pw-brain-chat__choice{border:0;padding:0;min-inline-size:0;display:flex;flex-direction:column;gap:6px;margin:-2px 2px 9px}.pw-brain-chat__choice-prompt{font-size:12px;color:var(--bc-ink-2, #5b6472)}.pw-brain-chat__choice-options{display:flex;flex-wrap:wrap;gap:7px}\n",
|
|
2282
3065
|
".pw-brain-chat__mic{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--bs-border-color, #ced4da);background:transparent;color:var(--bs-secondary-color, #6c757d);transition:color .15s ease,border-color .15s ease}.pw-brain-chat__mic:hover:not(:disabled){color:var(--first, #0d6efd);border-color:var(--first, #0d6efd)}.pw-brain-chat__mic--recording{color:#dc3545;border-color:#dc3545;animation:pw-brain-chat-mic-pulse 1.2s ease-in-out infinite}@keyframes pw-brain-chat-mic-pulse{0%,to{opacity:1}50%{opacity:.55}}@media(prefers-reduced-motion:reduce){.pw-brain-chat__mic--recording{animation:none}}\n"
|
|
2283
3066
|
]
|
|
2284
3067
|
}]
|
|
2285
3068
|
}],
|
|
2286
3069
|
ctorParameters: () => [
|
|
2287
|
-
{ type: i1$
|
|
2288
|
-
{ type: i1$
|
|
2289
|
-
{ type: i1$
|
|
3070
|
+
{ type: i1$3.MCPOrchestratorService },
|
|
3071
|
+
{ type: i1$3.LocalStorage },
|
|
3072
|
+
{ type: i1$2.Router },
|
|
2290
3073
|
{ type: i0.ChangeDetectorRef },
|
|
2291
|
-
{ type: i3
|
|
3074
|
+
{ type: i3.Store },
|
|
2292
3075
|
{ type: DynamicPageContextService },
|
|
2293
3076
|
{
|
|
2294
3077
|
type: i2$3.AppConfigService,
|
|
2295
3078
|
decorators: [{ type: Optional }]
|
|
2296
3079
|
},
|
|
2297
3080
|
{
|
|
2298
|
-
type: i1$
|
|
3081
|
+
type: i1$3.BrainSocketService,
|
|
2299
3082
|
decorators: [{ type: Optional }]
|
|
2300
3083
|
},
|
|
2301
3084
|
{
|
|
2302
|
-
type: i1$
|
|
3085
|
+
type: i1$3.BrainVoiceService,
|
|
2303
3086
|
decorators: [{ type: Optional }]
|
|
2304
3087
|
},
|
|
2305
3088
|
{
|
|
2306
|
-
type: i1$
|
|
3089
|
+
type: i1$3.VoiceChatService,
|
|
2307
3090
|
decorators: [{ type: Optional }]
|
|
2308
3091
|
},
|
|
2309
3092
|
{
|
|
2310
|
-
type: i1$
|
|
3093
|
+
type: i1$3.DirectUploadService,
|
|
2311
3094
|
decorators: [{ type: Optional }]
|
|
2312
3095
|
},
|
|
2313
3096
|
{
|
|
@@ -2433,7 +3216,7 @@ var ClearBitIconComponent = class ClearBitIconComponent {
|
|
|
2433
3216
|
selector: "img"
|
|
2434
3217
|
}, {
|
|
2435
3218
|
kind: "directive",
|
|
2436
|
-
type: i1$
|
|
3219
|
+
type: i1$4.NgClass,
|
|
2437
3220
|
selector: "[ngClass]",
|
|
2438
3221
|
inputs: ["class", "ngClass"]
|
|
2439
3222
|
}]
|
|
@@ -2679,13 +3462,13 @@ var CollapsibleSidebarComponent = class CollapsibleSidebarComponent {
|
|
|
2679
3462
|
ngOnInit() {
|
|
2680
3463
|
this.registerBrainPanel(DEFAULT_BRAND);
|
|
2681
3464
|
this.appConfigService?.appConfig$.pipe(take(1)).subscribe((config) => this.registerBrainPanel(resolveBrandName(config)));
|
|
2682
|
-
this.sidebarService.sidebarExpanded$.pipe(takeUntil
|
|
3465
|
+
this.sidebarService.sidebarExpanded$.pipe(takeUntil(this.destroy$)).subscribe((isExpanded) => {
|
|
2683
3466
|
this.isExpanded = isExpanded;
|
|
2684
3467
|
this.cdr.markForCheck();
|
|
2685
3468
|
});
|
|
2686
3469
|
}
|
|
2687
3470
|
ngAfterViewInit() {
|
|
2688
|
-
this.sidebarService.sidebarContent$.pipe(takeUntil
|
|
3471
|
+
this.sidebarService.sidebarContent$.pipe(takeUntil(this.destroy$)).subscribe((content) => {
|
|
2689
3472
|
this.currentContent = content;
|
|
2690
3473
|
if (content) this.loadComponent(content);
|
|
2691
3474
|
else this.clearComponent();
|
|
@@ -2787,7 +3570,7 @@ var CollapsibleSidebarComponent = class CollapsibleSidebarComponent {
|
|
|
2787
3570
|
],
|
|
2788
3571
|
dependencies: [{
|
|
2789
3572
|
kind: "pipe",
|
|
2790
|
-
type:
|
|
3573
|
+
type: i2$4.TranslocoPipe,
|
|
2791
3574
|
name: "transloco"
|
|
2792
3575
|
}],
|
|
2793
3576
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
@@ -3291,17 +4074,17 @@ var CommandPaletteComponent = class CommandPaletteComponent {
|
|
|
3291
4074
|
this.releaseBackdrop = () => void 0;
|
|
3292
4075
|
}
|
|
3293
4076
|
ngOnInit() {
|
|
3294
|
-
brandName$(this.appConfigService).pipe(takeUntil
|
|
4077
|
+
brandName$(this.appConfigService).pipe(takeUntil(this.destroy$)).subscribe((name) => {
|
|
3295
4078
|
this.brandName = name;
|
|
3296
4079
|
this.cdr.markForCheck();
|
|
3297
4080
|
});
|
|
3298
|
-
this.palette.isOpen$.pipe(takeUntil
|
|
4081
|
+
this.palette.isOpen$.pipe(takeUntil(this.destroy$)).subscribe((isOpen) => {
|
|
3299
4082
|
this.isOpen = isOpen;
|
|
3300
4083
|
if (isOpen) this.reset();
|
|
3301
4084
|
this.cdr.markForCheck();
|
|
3302
4085
|
syncPaletteDialog(this.paletteDialog?.nativeElement, isOpen);
|
|
3303
4086
|
});
|
|
3304
|
-
peopleSearch(this.queryChanges, this.dashboard).pipe(takeUntil
|
|
4087
|
+
peopleSearch(this.queryChanges, this.dashboard).pipe(takeUntil(this.destroy$)).subscribe((people) => {
|
|
3305
4088
|
this.people = people;
|
|
3306
4089
|
this.rebuild();
|
|
3307
4090
|
});
|
|
@@ -3381,19 +4164,19 @@ var CommandPaletteComponent = class CommandPaletteComponent {
|
|
|
3381
4164
|
type: CommandPaletteComponent,
|
|
3382
4165
|
deps: [
|
|
3383
4166
|
{ token: CommandPaletteService },
|
|
3384
|
-
{ token: i1$
|
|
3385
|
-
{ token: i1$
|
|
3386
|
-
{ token: i1$
|
|
4167
|
+
{ token: i1$3.NavigationIndexService },
|
|
4168
|
+
{ token: i1$3.DashboardService },
|
|
4169
|
+
{ token: i1$3.RecentPagesService },
|
|
3387
4170
|
{ token: CollapsibleSidebarService },
|
|
3388
|
-
{ token: i1$
|
|
3389
|
-
{ token:
|
|
4171
|
+
{ token: i1$2.Router },
|
|
4172
|
+
{ token: i2$4.TranslocoService },
|
|
3390
4173
|
{ token: i0.ChangeDetectorRef },
|
|
3391
4174
|
{
|
|
3392
4175
|
token: i2$3.AppConfigService,
|
|
3393
4176
|
optional: true
|
|
3394
4177
|
},
|
|
3395
4178
|
{
|
|
3396
|
-
token: i1$
|
|
4179
|
+
token: i1$3.CustomToastService,
|
|
3397
4180
|
optional: true
|
|
3398
4181
|
}
|
|
3399
4182
|
],
|
|
@@ -3424,12 +4207,12 @@ var CommandPaletteComponent = class CommandPaletteComponent {
|
|
|
3424
4207
|
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"],
|
|
3425
4208
|
dependencies: [{
|
|
3426
4209
|
kind: "directive",
|
|
3427
|
-
type: i1$
|
|
4210
|
+
type: i1$4.NgClass,
|
|
3428
4211
|
selector: "[ngClass]",
|
|
3429
4212
|
inputs: ["class", "ngClass"]
|
|
3430
4213
|
}, {
|
|
3431
4214
|
kind: "pipe",
|
|
3432
|
-
type:
|
|
4215
|
+
type: i2$4.TranslocoPipe,
|
|
3433
4216
|
name: "transloco"
|
|
3434
4217
|
}],
|
|
3435
4218
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
@@ -3445,151 +4228,44 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3445
4228
|
type: Component,
|
|
3446
4229
|
args: [{
|
|
3447
4230
|
selector: "pw-command-palette",
|
|
3448
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3449
|
-
standalone: false,
|
|
3450
|
-
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); page and\n 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.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",
|
|
3451
|
-
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"]
|
|
3452
|
-
}]
|
|
3453
|
-
}],
|
|
3454
|
-
ctorParameters: () => [
|
|
3455
|
-
{ type: CommandPaletteService },
|
|
3456
|
-
{ type: i1$4.NavigationIndexService },
|
|
3457
|
-
{ type: i1$4.DashboardService },
|
|
3458
|
-
{ type: i1$4.RecentPagesService },
|
|
3459
|
-
{ type: CollapsibleSidebarService },
|
|
3460
|
-
{ type: i1$3.Router },
|
|
3461
|
-
{ type: i4$1.TranslocoService },
|
|
3462
|
-
{ type: i0.ChangeDetectorRef },
|
|
3463
|
-
{
|
|
3464
|
-
type: i2$3.AppConfigService,
|
|
3465
|
-
decorators: [{ type: Optional }]
|
|
3466
|
-
},
|
|
3467
|
-
{
|
|
3468
|
-
type: i1$4.CustomToastService,
|
|
3469
|
-
decorators: [{ type: Optional }]
|
|
3470
|
-
}
|
|
3471
|
-
],
|
|
3472
|
-
propDecorators: {
|
|
3473
|
-
queryInput: [{
|
|
3474
|
-
type: ViewChild,
|
|
3475
|
-
args: ["queryInput"]
|
|
3476
|
-
}],
|
|
3477
|
-
paletteDialog: [{
|
|
3478
|
-
type: ViewChild,
|
|
3479
|
-
args: ["paletteDialog"]
|
|
3480
|
-
}],
|
|
3481
|
-
onDocumentKeydown: [{
|
|
3482
|
-
type: HostListener,
|
|
3483
|
-
args: ["document:keydown", ["$event"]]
|
|
3484
|
-
}]
|
|
3485
|
-
}
|
|
3486
|
-
});
|
|
3487
|
-
var ConfirmDialogComponent = class ConfirmDialogComponent {
|
|
3488
|
-
constructor(modal) {
|
|
3489
|
-
this.modal = modal;
|
|
3490
|
-
this.config = {};
|
|
3491
|
-
}
|
|
3492
|
-
get tone() {
|
|
3493
|
-
if (this.config.tone) return this.config.tone;
|
|
3494
|
-
if (this.config.destructive) return "destructive";
|
|
3495
|
-
if (this.config.confirmOnly) return "info";
|
|
3496
|
-
return "neutral";
|
|
3497
|
-
}
|
|
3498
|
-
get iconClass() {
|
|
3499
|
-
if (this.config.icon) return this.config.icon;
|
|
3500
|
-
switch (this.tone) {
|
|
3501
|
-
case "destructive": return "pi pi-times";
|
|
3502
|
-
case "info": return "pi pi-info-circle";
|
|
3503
|
-
default: return "pi pi-question-circle";
|
|
3504
|
-
}
|
|
3505
|
-
}
|
|
3506
|
-
get titleKey() {
|
|
3507
|
-
return this.config.titleKey ?? null;
|
|
3508
|
-
}
|
|
3509
|
-
get titleRaw() {
|
|
3510
|
-
return this.config.title ?? "";
|
|
3511
|
-
}
|
|
3512
|
-
get titleParams() {
|
|
3513
|
-
return this.config.titleParams ?? {};
|
|
3514
|
-
}
|
|
3515
|
-
get textKey() {
|
|
3516
|
-
return this.config.textKey ?? null;
|
|
3517
|
-
}
|
|
3518
|
-
get textRaw() {
|
|
3519
|
-
return this.config.text ?? "";
|
|
3520
|
-
}
|
|
3521
|
-
get textParams() {
|
|
3522
|
-
return this.config.textParams ?? {};
|
|
3523
|
-
}
|
|
3524
|
-
get confirmLabelKey() {
|
|
3525
|
-
if (this.config.confirmLabelKey) return this.config.confirmLabelKey;
|
|
3526
|
-
if (this.config.confirmOnly) return "Button.OK";
|
|
3527
|
-
if (this.tone === "destructive") return "Button.OK";
|
|
3528
|
-
return "Button.Confirm";
|
|
3529
|
-
}
|
|
3530
|
-
get confirmLabel() {
|
|
3531
|
-
return this.config.confirmLabel ?? "";
|
|
3532
|
-
}
|
|
3533
|
-
get cancelLabelKey() {
|
|
3534
|
-
return this.config.cancelLabelKey ?? "Button.Cancel";
|
|
3535
|
-
}
|
|
3536
|
-
get cancelLabel() {
|
|
3537
|
-
return this.config.cancelLabel ?? "";
|
|
3538
|
-
}
|
|
3539
|
-
get confirmButtonClass() {
|
|
3540
|
-
return this.tone === "destructive" ? "btn btn-danger" : "btn btn-primary";
|
|
3541
|
-
}
|
|
3542
|
-
confirm() {
|
|
3543
|
-
this.modal.close(true);
|
|
3544
|
-
}
|
|
3545
|
-
cancel() {
|
|
3546
|
-
this.modal.dismiss(false);
|
|
3547
|
-
}
|
|
3548
|
-
static {
|
|
3549
|
-
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
3550
|
-
minVersion: "12.0.0",
|
|
3551
|
-
version: "22.2.0",
|
|
3552
|
-
ngImport: i0,
|
|
3553
|
-
type: ConfirmDialogComponent,
|
|
3554
|
-
deps: [{ token: i7$1.NgbActiveModal }],
|
|
3555
|
-
target: i0.ɵɵFactoryTarget.Component
|
|
3556
|
-
});
|
|
3557
|
-
}
|
|
3558
|
-
static {
|
|
3559
|
-
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
3560
|
-
minVersion: "17.0.0",
|
|
3561
|
-
version: "22.2.0",
|
|
3562
|
-
type: ConfirmDialogComponent,
|
|
3563
|
-
isStandalone: false,
|
|
3564
|
-
selector: "pw-confirm-dialog",
|
|
3565
|
-
inputs: { config: "config" },
|
|
3566
|
-
ngImport: i0,
|
|
3567
|
-
template: "<div class=\"pw-confirm\"\n [class.pw-confirm--destructive]=\"tone === 'destructive'\"\n [class.pw-confirm--info]=\"tone === 'info'\"\n [class.pw-confirm--neutral]=\"tone === 'neutral'\">\n <div class=\"pw-confirm__header\">\n <span class=\"pw-confirm__icon\"\n aria-hidden=\"true\">\n <i [class]=\"iconClass\"></i>\n </span>\n <h5 class=\"pw-confirm__title\">\n @if (titleKey) {\n {{ titleKey | transloco: titleParams }}\n } @else {\n {{ titleRaw }}\n }\n </h5>\n <button type=\"button\"\n class=\"btn-close pw-confirm__close\"\n [attr.aria-label]=\"cancelLabelKey | transloco\"\n (click)=\"cancel()\">\n </button>\n </div>\n\n <div class=\"pw-confirm__body\">\n @if (textKey) {\n <p class=\"pw-confirm__message\"\n [innerHTML]=\"textKey | transloco: textParams\"></p>\n } @else {\n <p class=\"pw-confirm__message\"\n [innerHTML]=\"textRaw\"></p>\n }\n </div>\n\n <div class=\"pw-confirm__footer\">\n @if (!config.confirmOnly) {\n <button type=\"button\"\n class=\"btn btn-outline-secondary\"\n (click)=\"cancel()\">\n @if (cancelLabel) {\n {{ cancelLabel }}\n } @else {\n {{ cancelLabelKey | transloco }}\n }\n </button>\n }\n <button type=\"button\"\n [class]=\"confirmButtonClass\"\n (click)=\"confirm()\">\n @if (confirmLabel) {\n {{ confirmLabel }}\n } @else {\n {{ confirmLabelKey | transloco }}\n }\n </button>\n </div>\n</div>\n",
|
|
3568
|
-
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"],
|
|
3569
|
-
dependencies: [{
|
|
3570
|
-
kind: "pipe",
|
|
3571
|
-
type: i4$1.TranslocoPipe,
|
|
3572
|
-
name: "transloco"
|
|
3573
|
-
}]
|
|
3574
|
-
});
|
|
3575
|
-
}
|
|
3576
|
-
};
|
|
3577
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
3578
|
-
minVersion: "12.0.0",
|
|
3579
|
-
version: "22.2.0",
|
|
3580
|
-
ngImport: i0,
|
|
3581
|
-
type: ConfirmDialogComponent,
|
|
3582
|
-
decorators: [{
|
|
3583
|
-
type: Component,
|
|
3584
|
-
args: [{
|
|
3585
|
-
selector: "pw-confirm-dialog",
|
|
4231
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3586
4232
|
standalone: false,
|
|
3587
|
-
template: "<
|
|
3588
|
-
styles: ["
|
|
4233
|
+
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); page and\n 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.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",
|
|
4234
|
+
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"]
|
|
3589
4235
|
}]
|
|
3590
4236
|
}],
|
|
3591
|
-
ctorParameters: () => [
|
|
3592
|
-
|
|
4237
|
+
ctorParameters: () => [
|
|
4238
|
+
{ type: CommandPaletteService },
|
|
4239
|
+
{ type: i1$3.NavigationIndexService },
|
|
4240
|
+
{ type: i1$3.DashboardService },
|
|
4241
|
+
{ type: i1$3.RecentPagesService },
|
|
4242
|
+
{ type: CollapsibleSidebarService },
|
|
4243
|
+
{ type: i1$2.Router },
|
|
4244
|
+
{ type: i2$4.TranslocoService },
|
|
4245
|
+
{ type: i0.ChangeDetectorRef },
|
|
4246
|
+
{
|
|
4247
|
+
type: i2$3.AppConfigService,
|
|
4248
|
+
decorators: [{ type: Optional }]
|
|
4249
|
+
},
|
|
4250
|
+
{
|
|
4251
|
+
type: i1$3.CustomToastService,
|
|
4252
|
+
decorators: [{ type: Optional }]
|
|
4253
|
+
}
|
|
4254
|
+
],
|
|
4255
|
+
propDecorators: {
|
|
4256
|
+
queryInput: [{
|
|
4257
|
+
type: ViewChild,
|
|
4258
|
+
args: ["queryInput"]
|
|
4259
|
+
}],
|
|
4260
|
+
paletteDialog: [{
|
|
4261
|
+
type: ViewChild,
|
|
4262
|
+
args: ["paletteDialog"]
|
|
4263
|
+
}],
|
|
4264
|
+
onDocumentKeydown: [{
|
|
4265
|
+
type: HostListener,
|
|
4266
|
+
args: ["document:keydown", ["$event"]]
|
|
4267
|
+
}]
|
|
4268
|
+
}
|
|
3593
4269
|
});
|
|
3594
4270
|
const DEFAULT_COOKIE_KEY = "cookieconsent_status";
|
|
3595
4271
|
const DEFAULT_COOKIE_VALUE = "dismiss";
|
|
@@ -3772,7 +4448,7 @@ var ChartBlockComponent = class ChartBlockComponent {
|
|
|
3772
4448
|
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"],
|
|
3773
4449
|
dependencies: [{
|
|
3774
4450
|
kind: "pipe",
|
|
3775
|
-
type:
|
|
4451
|
+
type: i2$4.TranslocoPipe,
|
|
3776
4452
|
name: "transloco"
|
|
3777
4453
|
}]
|
|
3778
4454
|
});
|
|
@@ -3878,7 +4554,7 @@ var DataTableBlockComponent = class DataTableBlockComponent {
|
|
|
3878
4554
|
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"],
|
|
3879
4555
|
dependencies: [{
|
|
3880
4556
|
kind: "pipe",
|
|
3881
|
-
type:
|
|
4557
|
+
type: i2$4.TranslocoPipe,
|
|
3882
4558
|
name: "transloco"
|
|
3883
4559
|
}]
|
|
3884
4560
|
});
|
|
@@ -4110,7 +4786,7 @@ var StatCardBlockComponent = class StatCardBlockComponent {
|
|
|
4110
4786
|
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"],
|
|
4111
4787
|
dependencies: [{
|
|
4112
4788
|
kind: "pipe",
|
|
4113
|
-
type:
|
|
4789
|
+
type: i2$4.TranslocoPipe,
|
|
4114
4790
|
name: "transloco"
|
|
4115
4791
|
}]
|
|
4116
4792
|
});
|
|
@@ -4293,9 +4969,9 @@ var PwDynamicPageComponent = class PwDynamicPageComponent {
|
|
|
4293
4969
|
deps: [
|
|
4294
4970
|
{ token: i0.Injector },
|
|
4295
4971
|
{ token: i0.ChangeDetectorRef },
|
|
4296
|
-
{ token: i1$
|
|
4972
|
+
{ token: i1$3.FeatureFlagService },
|
|
4297
4973
|
{
|
|
4298
|
-
token: i1$
|
|
4974
|
+
token: i1$3.UserService,
|
|
4299
4975
|
optional: true
|
|
4300
4976
|
},
|
|
4301
4977
|
{
|
|
@@ -4346,7 +5022,7 @@ var PwDynamicPageComponent = class PwDynamicPageComponent {
|
|
|
4346
5022
|
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"],
|
|
4347
5023
|
dependencies: [{
|
|
4348
5024
|
kind: "pipe",
|
|
4349
|
-
type:
|
|
5025
|
+
type: i2$4.TranslocoPipe,
|
|
4350
5026
|
name: "transloco"
|
|
4351
5027
|
}]
|
|
4352
5028
|
});
|
|
@@ -4384,9 +5060,9 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4384
5060
|
ctorParameters: () => [
|
|
4385
5061
|
{ type: i0.Injector },
|
|
4386
5062
|
{ type: i0.ChangeDetectorRef },
|
|
4387
|
-
{ type: i1$
|
|
5063
|
+
{ type: i1$3.FeatureFlagService },
|
|
4388
5064
|
{
|
|
4389
|
-
type: i1$
|
|
5065
|
+
type: i1$3.UserService,
|
|
4390
5066
|
decorators: [{ type: Optional }]
|
|
4391
5067
|
},
|
|
4392
5068
|
{
|
|
@@ -4441,7 +5117,7 @@ var HeaderComponent = class HeaderComponent extends AppBaseComponent {
|
|
|
4441
5117
|
type: HeaderComponent,
|
|
4442
5118
|
deps: [
|
|
4443
5119
|
{ token: i0.Injector },
|
|
4444
|
-
{ token: i1$
|
|
5120
|
+
{ token: i1$3.AuthService },
|
|
4445
5121
|
{ token: i0.ChangeDetectorRef }
|
|
4446
5122
|
],
|
|
4447
5123
|
target: i0.ɵɵFactoryTarget.Component
|
|
@@ -4465,7 +5141,7 @@ var HeaderComponent = class HeaderComponent extends AppBaseComponent {
|
|
|
4465
5141
|
selector: "img"
|
|
4466
5142
|
}, {
|
|
4467
5143
|
kind: "pipe",
|
|
4468
|
-
type:
|
|
5144
|
+
type: i2$4.TranslocoPipe,
|
|
4469
5145
|
name: "transloco"
|
|
4470
5146
|
}]
|
|
4471
5147
|
});
|
|
@@ -4487,124 +5163,11 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4487
5163
|
}],
|
|
4488
5164
|
ctorParameters: () => [
|
|
4489
5165
|
{ type: i0.Injector },
|
|
4490
|
-
{ type: i1$
|
|
5166
|
+
{ type: i1$3.AuthService },
|
|
4491
5167
|
{ type: i0.ChangeDetectorRef }
|
|
4492
5168
|
],
|
|
4493
5169
|
propDecorators: { landing: [{ type: Input }] }
|
|
4494
5170
|
});
|
|
4495
|
-
var NoDataComponent = class NoDataComponent {
|
|
4496
|
-
constructor() {
|
|
4497
|
-
this.message = null;
|
|
4498
|
-
this.description = null;
|
|
4499
|
-
this.withImage = false;
|
|
4500
|
-
this.isContentEmpty = false;
|
|
4501
|
-
}
|
|
4502
|
-
ngAfterContentInit() {
|
|
4503
|
-
this.isContentEmpty = !this.content?.nativeElement.innerHTML.trim();
|
|
4504
|
-
}
|
|
4505
|
-
static {
|
|
4506
|
-
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
4507
|
-
minVersion: "12.0.0",
|
|
4508
|
-
version: "22.2.0",
|
|
4509
|
-
ngImport: i0,
|
|
4510
|
-
type: NoDataComponent,
|
|
4511
|
-
deps: [],
|
|
4512
|
-
target: i0.ɵɵFactoryTarget.Component
|
|
4513
|
-
});
|
|
4514
|
-
}
|
|
4515
|
-
static {
|
|
4516
|
-
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
4517
|
-
minVersion: "17.0.0",
|
|
4518
|
-
version: "22.2.0",
|
|
4519
|
-
type: NoDataComponent,
|
|
4520
|
-
isStandalone: false,
|
|
4521
|
-
selector: "pw-no-data",
|
|
4522
|
-
inputs: {
|
|
4523
|
-
message: "message",
|
|
4524
|
-
description: "description",
|
|
4525
|
-
withImage: "withImage"
|
|
4526
|
-
},
|
|
4527
|
-
queries: [{
|
|
4528
|
-
propertyName: "content",
|
|
4529
|
-
first: true,
|
|
4530
|
-
predicate: ["content"],
|
|
4531
|
-
descendants: true
|
|
4532
|
-
}],
|
|
4533
|
-
ngImport: i0,
|
|
4534
|
-
template: `
|
|
4535
|
-
<div class="no-data" [ngClass]="{ 'has-content': !this.isContentEmpty }">
|
|
4536
|
-
@if (withImage) {
|
|
4537
|
-
<i class="pi pi-inbox no-data-icon" aria-hidden="true"></i>
|
|
4538
|
-
}
|
|
4539
|
-
<span
|
|
4540
|
-
class="h5 message"
|
|
4541
|
-
[ngClass]="{
|
|
4542
|
-
'mt-2': description || !this.isContentEmpty,
|
|
4543
|
-
'my-3': !description && this.isContentEmpty
|
|
4544
|
-
}"
|
|
4545
|
-
>
|
|
4546
|
-
{{ message || 'Nothing found' }}
|
|
4547
|
-
</span>
|
|
4548
|
-
@if (description) {
|
|
4549
|
-
<span class="pb-4">{{ description }}</span>
|
|
4550
|
-
}
|
|
4551
|
-
<ng-content></ng-content>
|
|
4552
|
-
</div>
|
|
4553
|
-
`,
|
|
4554
|
-
isInline: true,
|
|
4555
|
-
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"],
|
|
4556
|
-
dependencies: [{
|
|
4557
|
-
kind: "directive",
|
|
4558
|
-
type: i1$2.NgClass,
|
|
4559
|
-
selector: "[ngClass]",
|
|
4560
|
-
inputs: ["class", "ngClass"]
|
|
4561
|
-
}]
|
|
4562
|
-
});
|
|
4563
|
-
}
|
|
4564
|
-
};
|
|
4565
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
4566
|
-
minVersion: "12.0.0",
|
|
4567
|
-
version: "22.2.0",
|
|
4568
|
-
ngImport: i0,
|
|
4569
|
-
type: NoDataComponent,
|
|
4570
|
-
decorators: [{
|
|
4571
|
-
type: Component,
|
|
4572
|
-
args: [{
|
|
4573
|
-
selector: "pw-no-data",
|
|
4574
|
-
template: `
|
|
4575
|
-
<div class="no-data" [ngClass]="{ 'has-content': !this.isContentEmpty }">
|
|
4576
|
-
@if (withImage) {
|
|
4577
|
-
<i class="pi pi-inbox no-data-icon" aria-hidden="true"></i>
|
|
4578
|
-
}
|
|
4579
|
-
<span
|
|
4580
|
-
class="h5 message"
|
|
4581
|
-
[ngClass]="{
|
|
4582
|
-
'mt-2': description || !this.isContentEmpty,
|
|
4583
|
-
'my-3': !description && this.isContentEmpty
|
|
4584
|
-
}"
|
|
4585
|
-
>
|
|
4586
|
-
{{ message || 'Nothing found' }}
|
|
4587
|
-
</span>
|
|
4588
|
-
@if (description) {
|
|
4589
|
-
<span class="pb-4">{{ description }}</span>
|
|
4590
|
-
}
|
|
4591
|
-
<ng-content></ng-content>
|
|
4592
|
-
</div>
|
|
4593
|
-
`,
|
|
4594
|
-
standalone: false,
|
|
4595
|
-
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"]
|
|
4596
|
-
}]
|
|
4597
|
-
}],
|
|
4598
|
-
propDecorators: {
|
|
4599
|
-
content: [{
|
|
4600
|
-
type: ContentChild,
|
|
4601
|
-
args: ["content", { static: false }]
|
|
4602
|
-
}],
|
|
4603
|
-
message: [{ type: Input }],
|
|
4604
|
-
description: [{ type: Input }],
|
|
4605
|
-
withImage: [{ type: Input }]
|
|
4606
|
-
}
|
|
4607
|
-
});
|
|
4608
5171
|
var EntityGroupComponent = class EntityGroupComponent extends AppBaseComponent {
|
|
4609
5172
|
constructor(groupService, subscriptionService, modalService, injector, cdr) {
|
|
4610
5173
|
super(injector);
|
|
@@ -4725,9 +5288,9 @@ var EntityGroupComponent = class EntityGroupComponent extends AppBaseComponent {
|
|
|
4725
5288
|
ngImport: i0,
|
|
4726
5289
|
type: EntityGroupComponent,
|
|
4727
5290
|
deps: [
|
|
4728
|
-
{ token: i1$
|
|
4729
|
-
{ token: i1$
|
|
4730
|
-
{ token:
|
|
5291
|
+
{ token: i1$3.GroupService },
|
|
5292
|
+
{ token: i1$3.SubscriptionService },
|
|
5293
|
+
{ token: i1$5.NgbModal },
|
|
4731
5294
|
{ token: i0.Injector },
|
|
4732
5295
|
{ token: i0.ChangeDetectorRef }
|
|
4733
5296
|
],
|
|
@@ -4755,12 +5318,12 @@ var EntityGroupComponent = class EntityGroupComponent extends AppBaseComponent {
|
|
|
4755
5318
|
dependencies: [
|
|
4756
5319
|
{
|
|
4757
5320
|
kind: "directive",
|
|
4758
|
-
type:
|
|
5321
|
+
type: i4$1.NgControlStatus,
|
|
4759
5322
|
selector: "[formControlName],[ngModel],[formControl]"
|
|
4760
5323
|
},
|
|
4761
5324
|
{
|
|
4762
5325
|
kind: "directive",
|
|
4763
|
-
type:
|
|
5326
|
+
type: i4$1.NgModel,
|
|
4764
5327
|
selector: "[ngModel]:not([formControlName]):not([formControl])",
|
|
4765
5328
|
inputs: [
|
|
4766
5329
|
"name",
|
|
@@ -4779,7 +5342,7 @@ var EntityGroupComponent = class EntityGroupComponent extends AppBaseComponent {
|
|
|
4779
5342
|
},
|
|
4780
5343
|
{
|
|
4781
5344
|
kind: "directive",
|
|
4782
|
-
type: i1$
|
|
5345
|
+
type: i1$2.RouterLink,
|
|
4783
5346
|
selector: "[routerLink]",
|
|
4784
5347
|
inputs: [
|
|
4785
5348
|
"target",
|
|
@@ -4798,7 +5361,7 @@ var EntityGroupComponent = class EntityGroupComponent extends AppBaseComponent {
|
|
|
4798
5361
|
},
|
|
4799
5362
|
{
|
|
4800
5363
|
kind: "directive",
|
|
4801
|
-
type:
|
|
5364
|
+
type: i9$1.Tooltip,
|
|
4802
5365
|
selector: "[pTooltip]",
|
|
4803
5366
|
inputs: [
|
|
4804
5367
|
"tooltipPosition",
|
|
@@ -4826,7 +5389,7 @@ var EntityGroupComponent = class EntityGroupComponent extends AppBaseComponent {
|
|
|
4826
5389
|
},
|
|
4827
5390
|
{
|
|
4828
5391
|
kind: "component",
|
|
4829
|
-
type:
|
|
5392
|
+
type: i10.Table,
|
|
4830
5393
|
selector: "p-table",
|
|
4831
5394
|
inputs: [
|
|
4832
5395
|
"frozenColumns",
|
|
@@ -5042,7 +5605,7 @@ var EntityGroupComponent = class EntityGroupComponent extends AppBaseComponent {
|
|
|
5042
5605
|
},
|
|
5043
5606
|
{
|
|
5044
5607
|
kind: "pipe",
|
|
5045
|
-
type:
|
|
5608
|
+
type: i2$4.TranslocoPipe,
|
|
5046
5609
|
name: "transloco"
|
|
5047
5610
|
}
|
|
5048
5611
|
]
|
|
@@ -5064,9 +5627,9 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5064
5627
|
}]
|
|
5065
5628
|
}],
|
|
5066
5629
|
ctorParameters: () => [
|
|
5067
|
-
{ type: i1$
|
|
5068
|
-
{ type: i1$
|
|
5069
|
-
{ type:
|
|
5630
|
+
{ type: i1$3.GroupService },
|
|
5631
|
+
{ type: i1$3.SubscriptionService },
|
|
5632
|
+
{ type: i1$5.NgbModal },
|
|
5070
5633
|
{ type: i0.Injector },
|
|
5071
5634
|
{ type: i0.ChangeDetectorRef }
|
|
5072
5635
|
],
|
|
@@ -5075,60 +5638,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5075
5638
|
args: ["content", { static: true }]
|
|
5076
5639
|
}] }
|
|
5077
5640
|
});
|
|
5078
|
-
var ConfirmDialogService = class ConfirmDialogService {
|
|
5079
|
-
constructor(modal) {
|
|
5080
|
-
this.modal = modal;
|
|
5081
|
-
}
|
|
5082
|
-
open(config = {}) {
|
|
5083
|
-
const ref = this.modal.open(ConfirmDialogComponent, {
|
|
5084
|
-
centered: true,
|
|
5085
|
-
size: "md",
|
|
5086
|
-
windowClass: "pw-confirm-modal",
|
|
5087
|
-
backdrop: "static",
|
|
5088
|
-
keyboard: true
|
|
5089
|
-
});
|
|
5090
|
-
ref.componentInstance.config = config;
|
|
5091
|
-
return ref.result.then((value) => value === true, () => false);
|
|
5092
|
-
}
|
|
5093
|
-
confirmDelete(overrides = {}) {
|
|
5094
|
-
return this.open({
|
|
5095
|
-
title: "Delete",
|
|
5096
|
-
text: "Are you sure you want to delete?",
|
|
5097
|
-
destructive: true,
|
|
5098
|
-
...overrides
|
|
5099
|
-
});
|
|
5100
|
-
}
|
|
5101
|
-
static {
|
|
5102
|
-
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
5103
|
-
minVersion: "12.0.0",
|
|
5104
|
-
version: "22.2.0",
|
|
5105
|
-
ngImport: i0,
|
|
5106
|
-
type: ConfirmDialogService,
|
|
5107
|
-
deps: [{ token: i7$1.NgbModal }],
|
|
5108
|
-
target: i0.ɵɵFactoryTarget.Injectable
|
|
5109
|
-
});
|
|
5110
|
-
}
|
|
5111
|
-
static {
|
|
5112
|
-
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
5113
|
-
minVersion: "12.0.0",
|
|
5114
|
-
version: "22.2.0",
|
|
5115
|
-
ngImport: i0,
|
|
5116
|
-
type: ConfirmDialogService,
|
|
5117
|
-
providedIn: "root"
|
|
5118
|
-
});
|
|
5119
|
-
}
|
|
5120
|
-
};
|
|
5121
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
5122
|
-
minVersion: "12.0.0",
|
|
5123
|
-
version: "22.2.0",
|
|
5124
|
-
ngImport: i0,
|
|
5125
|
-
type: ConfirmDialogService,
|
|
5126
|
-
decorators: [{
|
|
5127
|
-
type: Injectable,
|
|
5128
|
-
args: [{ providedIn: "root" }]
|
|
5129
|
-
}],
|
|
5130
|
-
ctorParameters: () => [{ type: i7$1.NgbModal }]
|
|
5131
|
-
});
|
|
5132
5641
|
var InputContainerComponent = class InputContainerComponent {
|
|
5133
5642
|
constructor(controlContainer) {
|
|
5134
5643
|
this.controlContainer = controlContainer;
|
|
@@ -5156,7 +5665,7 @@ var InputContainerComponent = class InputContainerComponent {
|
|
|
5156
5665
|
ngImport: i0,
|
|
5157
5666
|
type: InputContainerComponent,
|
|
5158
5667
|
deps: [{
|
|
5159
|
-
token:
|
|
5668
|
+
token: i4$1.ControlContainer,
|
|
5160
5669
|
host: true,
|
|
5161
5670
|
optional: true,
|
|
5162
5671
|
skipSelf: true
|
|
@@ -5200,13 +5709,13 @@ var InputContainerComponent = class InputContainerComponent {
|
|
|
5200
5709
|
dependencies: [
|
|
5201
5710
|
{
|
|
5202
5711
|
kind: "directive",
|
|
5203
|
-
type: i1$
|
|
5712
|
+
type: i1$4.NgClass,
|
|
5204
5713
|
selector: "[ngClass]",
|
|
5205
5714
|
inputs: ["class", "ngClass"]
|
|
5206
5715
|
},
|
|
5207
5716
|
{
|
|
5208
5717
|
kind: "directive",
|
|
5209
|
-
type:
|
|
5718
|
+
type: i9$1.Tooltip,
|
|
5210
5719
|
selector: "[pTooltip]",
|
|
5211
5720
|
inputs: [
|
|
5212
5721
|
"tooltipPosition",
|
|
@@ -5240,7 +5749,7 @@ var InputContainerComponent = class InputContainerComponent {
|
|
|
5240
5749
|
},
|
|
5241
5750
|
{
|
|
5242
5751
|
kind: "pipe",
|
|
5243
|
-
type:
|
|
5752
|
+
type: i2$4.TranslocoPipe,
|
|
5244
5753
|
name: "transloco"
|
|
5245
5754
|
}
|
|
5246
5755
|
]
|
|
@@ -5267,7 +5776,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5267
5776
|
}]
|
|
5268
5777
|
}],
|
|
5269
5778
|
ctorParameters: () => [{
|
|
5270
|
-
type:
|
|
5779
|
+
type: i4$1.ControlContainer,
|
|
5271
5780
|
decorators: [
|
|
5272
5781
|
{ type: Optional },
|
|
5273
5782
|
{ type: Host },
|
|
@@ -5442,10 +5951,10 @@ var GroupDefinitionComponent = class GroupDefinitionComponent extends AppBaseCom
|
|
|
5442
5951
|
ngImport: i0,
|
|
5443
5952
|
type: GroupDefinitionComponent,
|
|
5444
5953
|
deps: [
|
|
5445
|
-
{ token: i1$
|
|
5446
|
-
{ token:
|
|
5447
|
-
{ token: i1$
|
|
5448
|
-
{ token: i1$
|
|
5954
|
+
{ token: i1$3.GroupService },
|
|
5955
|
+
{ token: i4$1.UntypedFormBuilder },
|
|
5956
|
+
{ token: i1$3.SubscriptionService },
|
|
5957
|
+
{ token: i1$3.DataService },
|
|
5449
5958
|
{ token: i0.Injector },
|
|
5450
5959
|
{ token: i0.ChangeDetectorRef },
|
|
5451
5960
|
{ token: ConfirmDialogService }
|
|
@@ -5467,27 +5976,27 @@ var GroupDefinitionComponent = class GroupDefinitionComponent extends AppBaseCom
|
|
|
5467
5976
|
dependencies: [
|
|
5468
5977
|
{
|
|
5469
5978
|
kind: "directive",
|
|
5470
|
-
type:
|
|
5979
|
+
type: i4$1.ɵNgNoValidate,
|
|
5471
5980
|
selector: "form:not([ngNoForm]):not([ngNativeValidate])"
|
|
5472
5981
|
},
|
|
5473
5982
|
{
|
|
5474
5983
|
kind: "directive",
|
|
5475
|
-
type:
|
|
5984
|
+
type: i4$1.DefaultValueAccessor,
|
|
5476
5985
|
selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]"
|
|
5477
5986
|
},
|
|
5478
5987
|
{
|
|
5479
5988
|
kind: "directive",
|
|
5480
|
-
type:
|
|
5989
|
+
type: i4$1.NgControlStatus,
|
|
5481
5990
|
selector: "[formControlName],[ngModel],[formControl]"
|
|
5482
5991
|
},
|
|
5483
5992
|
{
|
|
5484
5993
|
kind: "directive",
|
|
5485
|
-
type:
|
|
5994
|
+
type: i4$1.NgControlStatusGroup,
|
|
5486
5995
|
selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]"
|
|
5487
5996
|
},
|
|
5488
5997
|
{
|
|
5489
5998
|
kind: "directive",
|
|
5490
|
-
type:
|
|
5999
|
+
type: i4$1.FormGroupDirective,
|
|
5491
6000
|
selector: "[formGroup]",
|
|
5492
6001
|
inputs: ["formGroup"],
|
|
5493
6002
|
outputs: ["ngSubmit"],
|
|
@@ -5495,7 +6004,7 @@ var GroupDefinitionComponent = class GroupDefinitionComponent extends AppBaseCom
|
|
|
5495
6004
|
},
|
|
5496
6005
|
{
|
|
5497
6006
|
kind: "directive",
|
|
5498
|
-
type:
|
|
6007
|
+
type: i4$1.FormControlName,
|
|
5499
6008
|
selector: "[formControlName]",
|
|
5500
6009
|
inputs: [
|
|
5501
6010
|
"formControlName",
|
|
@@ -5587,12 +6096,12 @@ var GroupDefinitionComponent = class GroupDefinitionComponent extends AppBaseCom
|
|
|
5587
6096
|
},
|
|
5588
6097
|
{
|
|
5589
6098
|
kind: "pipe",
|
|
5590
|
-
type:
|
|
6099
|
+
type: i2$4.TranslocoPipe,
|
|
5591
6100
|
name: "transloco"
|
|
5592
6101
|
},
|
|
5593
6102
|
{
|
|
5594
6103
|
kind: "pipe",
|
|
5595
|
-
type: i1$
|
|
6104
|
+
type: i1$4.SlicePipe,
|
|
5596
6105
|
name: "slice"
|
|
5597
6106
|
}
|
|
5598
6107
|
]
|
|
@@ -5620,10 +6129,10 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5620
6129
|
}]
|
|
5621
6130
|
}],
|
|
5622
6131
|
ctorParameters: () => [
|
|
5623
|
-
{ type: i1$
|
|
5624
|
-
{ type:
|
|
5625
|
-
{ type: i1$
|
|
5626
|
-
{ type: i1$
|
|
6132
|
+
{ type: i1$3.GroupService },
|
|
6133
|
+
{ type: i4$1.UntypedFormBuilder },
|
|
6134
|
+
{ type: i1$3.SubscriptionService },
|
|
6135
|
+
{ type: i1$3.DataService },
|
|
5627
6136
|
{ type: i0.Injector },
|
|
5628
6137
|
{ type: i0.ChangeDetectorRef },
|
|
5629
6138
|
{ type: ConfirmDialogService }
|
|
@@ -5830,10 +6339,10 @@ var GroupsComponent = class GroupsComponent extends AppBaseComponent {
|
|
|
5830
6339
|
ngImport: i0,
|
|
5831
6340
|
type: GroupsComponent,
|
|
5832
6341
|
deps: [
|
|
5833
|
-
{ token:
|
|
5834
|
-
{ token: i1$
|
|
5835
|
-
{ token: i1$
|
|
5836
|
-
{ token: i1$
|
|
6342
|
+
{ token: i4$1.UntypedFormBuilder },
|
|
6343
|
+
{ token: i1$3.GroupService },
|
|
6344
|
+
{ token: i1$3.SubscriptionService },
|
|
6345
|
+
{ token: i1$3.DataService },
|
|
5837
6346
|
{ token: i0.Injector },
|
|
5838
6347
|
{ token: i0.ChangeDetectorRef },
|
|
5839
6348
|
{ token: ConfirmDialogService }
|
|
@@ -5855,33 +6364,33 @@ var GroupsComponent = class GroupsComponent extends AppBaseComponent {
|
|
|
5855
6364
|
dependencies: [
|
|
5856
6365
|
{
|
|
5857
6366
|
kind: "directive",
|
|
5858
|
-
type:
|
|
6367
|
+
type: i4$1.ɵNgNoValidate,
|
|
5859
6368
|
selector: "form:not([ngNoForm]):not([ngNativeValidate])"
|
|
5860
6369
|
},
|
|
5861
6370
|
{
|
|
5862
6371
|
kind: "directive",
|
|
5863
|
-
type:
|
|
6372
|
+
type: i4$1.DefaultValueAccessor,
|
|
5864
6373
|
selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]"
|
|
5865
6374
|
},
|
|
5866
6375
|
{
|
|
5867
6376
|
kind: "directive",
|
|
5868
|
-
type:
|
|
6377
|
+
type: i4$1.NgControlStatus,
|
|
5869
6378
|
selector: "[formControlName],[ngModel],[formControl]"
|
|
5870
6379
|
},
|
|
5871
6380
|
{
|
|
5872
6381
|
kind: "directive",
|
|
5873
|
-
type:
|
|
6382
|
+
type: i4$1.NgControlStatusGroup,
|
|
5874
6383
|
selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]"
|
|
5875
6384
|
},
|
|
5876
6385
|
{
|
|
5877
6386
|
kind: "directive",
|
|
5878
|
-
type:
|
|
6387
|
+
type: i4$1.RequiredValidator,
|
|
5879
6388
|
selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",
|
|
5880
6389
|
inputs: ["required"]
|
|
5881
6390
|
},
|
|
5882
6391
|
{
|
|
5883
6392
|
kind: "directive",
|
|
5884
|
-
type:
|
|
6393
|
+
type: i4$1.NgModel,
|
|
5885
6394
|
selector: "[ngModel]:not([formControlName]):not([formControl])",
|
|
5886
6395
|
inputs: [
|
|
5887
6396
|
"name",
|
|
@@ -5894,7 +6403,7 @@ var GroupsComponent = class GroupsComponent extends AppBaseComponent {
|
|
|
5894
6403
|
},
|
|
5895
6404
|
{
|
|
5896
6405
|
kind: "directive",
|
|
5897
|
-
type:
|
|
6406
|
+
type: i4$1.FormGroupDirective,
|
|
5898
6407
|
selector: "[formGroup]",
|
|
5899
6408
|
inputs: ["formGroup"],
|
|
5900
6409
|
outputs: ["ngSubmit"],
|
|
@@ -5902,7 +6411,7 @@ var GroupsComponent = class GroupsComponent extends AppBaseComponent {
|
|
|
5902
6411
|
},
|
|
5903
6412
|
{
|
|
5904
6413
|
kind: "directive",
|
|
5905
|
-
type:
|
|
6414
|
+
type: i4$1.FormControlName,
|
|
5906
6415
|
selector: "[formControlName]",
|
|
5907
6416
|
inputs: [
|
|
5908
6417
|
"formControlName",
|
|
@@ -5919,7 +6428,7 @@ var GroupsComponent = class GroupsComponent extends AppBaseComponent {
|
|
|
5919
6428
|
},
|
|
5920
6429
|
{
|
|
5921
6430
|
kind: "directive",
|
|
5922
|
-
type: i1$
|
|
6431
|
+
type: i1$2.RouterLink,
|
|
5923
6432
|
selector: "[routerLink]",
|
|
5924
6433
|
inputs: [
|
|
5925
6434
|
"target",
|
|
@@ -6022,7 +6531,7 @@ var GroupsComponent = class GroupsComponent extends AppBaseComponent {
|
|
|
6022
6531
|
},
|
|
6023
6532
|
{
|
|
6024
6533
|
kind: "directive",
|
|
6025
|
-
type: i1$
|
|
6534
|
+
type: i1$4.NgClass,
|
|
6026
6535
|
selector: "[ngClass]",
|
|
6027
6536
|
inputs: ["class", "ngClass"]
|
|
6028
6537
|
},
|
|
@@ -6061,12 +6570,12 @@ var GroupsComponent = class GroupsComponent extends AppBaseComponent {
|
|
|
6061
6570
|
},
|
|
6062
6571
|
{
|
|
6063
6572
|
kind: "pipe",
|
|
6064
|
-
type:
|
|
6573
|
+
type: i2$4.TranslocoPipe,
|
|
6065
6574
|
name: "transloco"
|
|
6066
6575
|
},
|
|
6067
6576
|
{
|
|
6068
6577
|
kind: "pipe",
|
|
6069
|
-
type: i1$
|
|
6578
|
+
type: i1$4.SlicePipe,
|
|
6070
6579
|
name: "slice"
|
|
6071
6580
|
}
|
|
6072
6581
|
]
|
|
@@ -6094,10 +6603,10 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6094
6603
|
}]
|
|
6095
6604
|
}],
|
|
6096
6605
|
ctorParameters: () => [
|
|
6097
|
-
{ type:
|
|
6098
|
-
{ type: i1$
|
|
6099
|
-
{ type: i1$
|
|
6100
|
-
{ type: i1$
|
|
6606
|
+
{ type: i4$1.UntypedFormBuilder },
|
|
6607
|
+
{ type: i1$3.GroupService },
|
|
6608
|
+
{ type: i1$3.SubscriptionService },
|
|
6609
|
+
{ type: i1$3.DataService },
|
|
6101
6610
|
{ type: i0.Injector },
|
|
6102
6611
|
{ type: i0.ChangeDetectorRef },
|
|
6103
6612
|
{ type: ConfirmDialogService }
|
|
@@ -6154,7 +6663,7 @@ var LandingPageFooterBComponent = class LandingPageFooterBComponent extends AppB
|
|
|
6154
6663
|
ngImport: i0,
|
|
6155
6664
|
type: LandingPageFooterBComponent,
|
|
6156
6665
|
deps: [
|
|
6157
|
-
{ token: i1$
|
|
6666
|
+
{ token: i1$3.AuthService },
|
|
6158
6667
|
{ token: i0.ChangeDetectorRef },
|
|
6159
6668
|
{ token: i0.Injector }
|
|
6160
6669
|
],
|
|
@@ -6180,7 +6689,7 @@ var LandingPageFooterBComponent = class LandingPageFooterBComponent extends AppB
|
|
|
6180
6689
|
},
|
|
6181
6690
|
{
|
|
6182
6691
|
kind: "directive",
|
|
6183
|
-
type: i1$
|
|
6692
|
+
type: i1$2.RouterLink,
|
|
6184
6693
|
selector: "[routerLink]",
|
|
6185
6694
|
inputs: [
|
|
6186
6695
|
"target",
|
|
@@ -6199,7 +6708,7 @@ var LandingPageFooterBComponent = class LandingPageFooterBComponent extends AppB
|
|
|
6199
6708
|
},
|
|
6200
6709
|
{
|
|
6201
6710
|
kind: "pipe",
|
|
6202
|
-
type: i1$
|
|
6711
|
+
type: i1$4.DatePipe,
|
|
6203
6712
|
name: "date"
|
|
6204
6713
|
}
|
|
6205
6714
|
]
|
|
@@ -6221,7 +6730,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6221
6730
|
}]
|
|
6222
6731
|
}],
|
|
6223
6732
|
ctorParameters: () => [
|
|
6224
|
-
{ type: i1$
|
|
6733
|
+
{ type: i1$3.AuthService },
|
|
6225
6734
|
{ type: i0.ChangeDetectorRef },
|
|
6226
6735
|
{ type: i0.Injector }
|
|
6227
6736
|
]
|
|
@@ -6421,7 +6930,7 @@ var NumberPickerComponent = class NumberPickerComponent {
|
|
|
6421
6930
|
version: "22.2.0",
|
|
6422
6931
|
ngImport: i0,
|
|
6423
6932
|
type: NumberPickerComponent,
|
|
6424
|
-
deps: [{ token: i1$
|
|
6933
|
+
deps: [{ token: i1$3.NumberPickerService }],
|
|
6425
6934
|
target: i0.ɵɵFactoryTarget.Component
|
|
6426
6935
|
});
|
|
6427
6936
|
}
|
|
@@ -6471,22 +6980,22 @@ var NumberPickerComponent = class NumberPickerComponent {
|
|
|
6471
6980
|
dependencies: [
|
|
6472
6981
|
{
|
|
6473
6982
|
kind: "directive",
|
|
6474
|
-
type:
|
|
6983
|
+
type: i4$1.DefaultValueAccessor,
|
|
6475
6984
|
selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]"
|
|
6476
6985
|
},
|
|
6477
6986
|
{
|
|
6478
6987
|
kind: "directive",
|
|
6479
|
-
type:
|
|
6988
|
+
type: i4$1.NumberValueAccessor,
|
|
6480
6989
|
selector: "input[type=number]:not([ngNoCva])[formControlName],input[type=number]:not([ngNoCva])[formControl],input[type=number]:not([ngNoCva])[ngModel]"
|
|
6481
6990
|
},
|
|
6482
6991
|
{
|
|
6483
6992
|
kind: "directive",
|
|
6484
|
-
type:
|
|
6993
|
+
type: i4$1.NgControlStatus,
|
|
6485
6994
|
selector: "[formControlName],[ngModel],[formControl]"
|
|
6486
6995
|
},
|
|
6487
6996
|
{
|
|
6488
6997
|
kind: "directive",
|
|
6489
|
-
type:
|
|
6998
|
+
type: i4$1.NgModel,
|
|
6490
6999
|
selector: "[ngModel]:not([formControlName]):not([formControl])",
|
|
6491
7000
|
inputs: [
|
|
6492
7001
|
"name",
|
|
@@ -6499,7 +7008,7 @@ var NumberPickerComponent = class NumberPickerComponent {
|
|
|
6499
7008
|
},
|
|
6500
7009
|
{
|
|
6501
7010
|
kind: "directive",
|
|
6502
|
-
type:
|
|
7011
|
+
type: i9$1.Tooltip,
|
|
6503
7012
|
selector: "[pTooltip]",
|
|
6504
7013
|
inputs: [
|
|
6505
7014
|
"tooltipPosition",
|
|
@@ -6543,7 +7052,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6543
7052
|
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"]
|
|
6544
7053
|
}]
|
|
6545
7054
|
}],
|
|
6546
|
-
ctorParameters: () => [{ type: i1$
|
|
7055
|
+
ctorParameters: () => [{ type: i1$3.NumberPickerService }],
|
|
6547
7056
|
propDecorators: {
|
|
6548
7057
|
min: [{ type: Input }],
|
|
6549
7058
|
showTooltip: [{ type: Input }],
|
|
@@ -6604,7 +7113,7 @@ var OnlineIndicatorComponent = class OnlineIndicatorComponent {
|
|
|
6604
7113
|
dependencies: [
|
|
6605
7114
|
{
|
|
6606
7115
|
kind: "directive",
|
|
6607
|
-
type:
|
|
7116
|
+
type: i9$1.Tooltip,
|
|
6608
7117
|
selector: "[pTooltip]",
|
|
6609
7118
|
inputs: [
|
|
6610
7119
|
"tooltipPosition",
|
|
@@ -6632,12 +7141,12 @@ var OnlineIndicatorComponent = class OnlineIndicatorComponent {
|
|
|
6632
7141
|
},
|
|
6633
7142
|
{
|
|
6634
7143
|
kind: "pipe",
|
|
6635
|
-
type:
|
|
7144
|
+
type: i2$4.TranslocoPipe,
|
|
6636
7145
|
name: "transloco"
|
|
6637
7146
|
},
|
|
6638
7147
|
{
|
|
6639
7148
|
kind: "pipe",
|
|
6640
|
-
type:
|
|
7149
|
+
type: i14.IsOnlinePipe,
|
|
6641
7150
|
name: "isOnline"
|
|
6642
7151
|
}
|
|
6643
7152
|
]
|
|
@@ -6713,7 +7222,7 @@ var PasswordValidationComponent = class PasswordValidationComponent extends AppB
|
|
|
6713
7222
|
type: PasswordValidationComponent,
|
|
6714
7223
|
deps: [
|
|
6715
7224
|
{ token: i0.Injector },
|
|
6716
|
-
{ token:
|
|
7225
|
+
{ token: i1$5.NgbModal },
|
|
6717
7226
|
{ token: i0.ChangeDetectorRef }
|
|
6718
7227
|
],
|
|
6719
7228
|
target: i0.ɵɵFactoryTarget.Component
|
|
@@ -6750,17 +7259,17 @@ var PasswordValidationComponent = class PasswordValidationComponent extends AppB
|
|
|
6750
7259
|
dependencies: [
|
|
6751
7260
|
{
|
|
6752
7261
|
kind: "directive",
|
|
6753
|
-
type:
|
|
7262
|
+
type: i4$1.DefaultValueAccessor,
|
|
6754
7263
|
selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]"
|
|
6755
7264
|
},
|
|
6756
7265
|
{
|
|
6757
7266
|
kind: "directive",
|
|
6758
|
-
type:
|
|
7267
|
+
type: i4$1.NgControlStatus,
|
|
6759
7268
|
selector: "[formControlName],[ngModel],[formControl]"
|
|
6760
7269
|
},
|
|
6761
7270
|
{
|
|
6762
7271
|
kind: "directive",
|
|
6763
|
-
type:
|
|
7272
|
+
type: i4$1.NgModel,
|
|
6764
7273
|
selector: "[ngModel]:not([formControlName]):not([formControl])",
|
|
6765
7274
|
inputs: [
|
|
6766
7275
|
"name",
|
|
@@ -6779,7 +7288,7 @@ var PasswordValidationComponent = class PasswordValidationComponent extends AppB
|
|
|
6779
7288
|
},
|
|
6780
7289
|
{
|
|
6781
7290
|
kind: "pipe",
|
|
6782
|
-
type:
|
|
7291
|
+
type: i2$4.TranslocoPipe,
|
|
6783
7292
|
name: "transloco"
|
|
6784
7293
|
}
|
|
6785
7294
|
]
|
|
@@ -6802,7 +7311,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6802
7311
|
}],
|
|
6803
7312
|
ctorParameters: () => [
|
|
6804
7313
|
{ type: i0.Injector },
|
|
6805
|
-
{ type:
|
|
7314
|
+
{ type: i1$5.NgbModal },
|
|
6806
7315
|
{ type: i0.ChangeDetectorRef }
|
|
6807
7316
|
],
|
|
6808
7317
|
propDecorators: {
|
|
@@ -7068,7 +7577,7 @@ var PrivacyAndTosComponent = class PrivacyAndTosComponent extends AppBaseCompone
|
|
|
7068
7577
|
dependencies: [
|
|
7069
7578
|
{
|
|
7070
7579
|
kind: "component",
|
|
7071
|
-
type:
|
|
7580
|
+
type: i8$1.AppLoaderComponent,
|
|
7072
7581
|
selector: "pw-loader",
|
|
7073
7582
|
inputs: [
|
|
7074
7583
|
"isVisible",
|
|
@@ -7078,7 +7587,7 @@ var PrivacyAndTosComponent = class PrivacyAndTosComponent extends AppBaseCompone
|
|
|
7078
7587
|
},
|
|
7079
7588
|
{
|
|
7080
7589
|
kind: "directive",
|
|
7081
|
-
type: i1$
|
|
7590
|
+
type: i1$2.RouterLink,
|
|
7082
7591
|
selector: "[routerLink]",
|
|
7083
7592
|
inputs: [
|
|
7084
7593
|
"target",
|
|
@@ -7097,12 +7606,12 @@ var PrivacyAndTosComponent = class PrivacyAndTosComponent extends AppBaseCompone
|
|
|
7097
7606
|
},
|
|
7098
7607
|
{
|
|
7099
7608
|
kind: "directive",
|
|
7100
|
-
type:
|
|
7609
|
+
type: i1$5.NgbNavContent,
|
|
7101
7610
|
selector: "ng-template[ngbNavContent]"
|
|
7102
7611
|
},
|
|
7103
7612
|
{
|
|
7104
7613
|
kind: "directive",
|
|
7105
|
-
type:
|
|
7614
|
+
type: i1$5.NgbNav,
|
|
7106
7615
|
selector: "[ngbNav]",
|
|
7107
7616
|
inputs: [
|
|
7108
7617
|
"activeId",
|
|
@@ -7122,7 +7631,7 @@ var PrivacyAndTosComponent = class PrivacyAndTosComponent extends AppBaseCompone
|
|
|
7122
7631
|
},
|
|
7123
7632
|
{
|
|
7124
7633
|
kind: "directive",
|
|
7125
|
-
type:
|
|
7634
|
+
type: i1$5.NgbNavItem,
|
|
7126
7635
|
selector: "[ngbNavItem]",
|
|
7127
7636
|
inputs: [
|
|
7128
7637
|
"destroyOnHide",
|
|
@@ -7135,22 +7644,22 @@ var PrivacyAndTosComponent = class PrivacyAndTosComponent extends AppBaseCompone
|
|
|
7135
7644
|
},
|
|
7136
7645
|
{
|
|
7137
7646
|
kind: "directive",
|
|
7138
|
-
type:
|
|
7647
|
+
type: i1$5.NgbNavItemRole,
|
|
7139
7648
|
selector: "[ngbNavItem]:not(ng-container)"
|
|
7140
7649
|
},
|
|
7141
7650
|
{
|
|
7142
7651
|
kind: "directive",
|
|
7143
|
-
type:
|
|
7652
|
+
type: i1$5.NgbNavLink,
|
|
7144
7653
|
selector: "a[ngbNavLink]"
|
|
7145
7654
|
},
|
|
7146
7655
|
{
|
|
7147
7656
|
kind: "directive",
|
|
7148
|
-
type:
|
|
7657
|
+
type: i1$5.NgbNavLinkBase,
|
|
7149
7658
|
selector: "[ngbNavLink]"
|
|
7150
7659
|
},
|
|
7151
7660
|
{
|
|
7152
7661
|
kind: "component",
|
|
7153
|
-
type:
|
|
7662
|
+
type: i1$5.NgbNavOutlet,
|
|
7154
7663
|
selector: "[ngbNavOutlet]",
|
|
7155
7664
|
inputs: ["paneRole", "ngbNavOutlet"]
|
|
7156
7665
|
},
|
|
@@ -7162,12 +7671,12 @@ var PrivacyAndTosComponent = class PrivacyAndTosComponent extends AppBaseCompone
|
|
|
7162
7671
|
},
|
|
7163
7672
|
{
|
|
7164
7673
|
kind: "pipe",
|
|
7165
|
-
type:
|
|
7674
|
+
type: i2$4.TranslocoPipe,
|
|
7166
7675
|
name: "transloco"
|
|
7167
7676
|
},
|
|
7168
7677
|
{
|
|
7169
7678
|
kind: "pipe",
|
|
7170
|
-
type: i1$
|
|
7679
|
+
type: i1$4.DatePipe,
|
|
7171
7680
|
name: "date"
|
|
7172
7681
|
}
|
|
7173
7682
|
]
|
|
@@ -7222,7 +7731,7 @@ var PrivacyPolicyComponent = class PrivacyPolicyComponent {
|
|
|
7222
7731
|
version: "22.2.0",
|
|
7223
7732
|
ngImport: i0,
|
|
7224
7733
|
type: PrivacyPolicyComponent,
|
|
7225
|
-
deps: [{ token: i2$3.AppConfigService }, { token: i1$
|
|
7734
|
+
deps: [{ token: i2$3.AppConfigService }, { token: i1$2.Router }],
|
|
7226
7735
|
target: i0.ɵɵFactoryTarget.Component
|
|
7227
7736
|
});
|
|
7228
7737
|
}
|
|
@@ -7252,7 +7761,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
7252
7761
|
standalone: false
|
|
7253
7762
|
}]
|
|
7254
7763
|
}],
|
|
7255
|
-
ctorParameters: () => [{ type: i2$3.AppConfigService }, { type: i1$
|
|
7764
|
+
ctorParameters: () => [{ type: i2$3.AppConfigService }, { type: i1$2.Router }]
|
|
7256
7765
|
});
|
|
7257
7766
|
var PwTabsComponent = class PwTabsComponent extends AppBaseComponent {
|
|
7258
7767
|
constructor(injector, cdr) {
|
|
@@ -7334,7 +7843,7 @@ var PwTabsComponent = class PwTabsComponent extends AppBaseComponent {
|
|
|
7334
7843
|
dependencies: [
|
|
7335
7844
|
{
|
|
7336
7845
|
kind: "directive",
|
|
7337
|
-
type: i1$
|
|
7846
|
+
type: i1$2.RouterOutlet,
|
|
7338
7847
|
selector: "router-outlet",
|
|
7339
7848
|
inputs: ["name", "routerOutletData"],
|
|
7340
7849
|
outputs: [
|
|
@@ -7456,17 +7965,17 @@ var DateRangePickerComponent = class DateRangePickerComponent {
|
|
|
7456
7965
|
dependencies: [
|
|
7457
7966
|
{
|
|
7458
7967
|
kind: "directive",
|
|
7459
|
-
type:
|
|
7968
|
+
type: i4$1.DefaultValueAccessor,
|
|
7460
7969
|
selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]"
|
|
7461
7970
|
},
|
|
7462
7971
|
{
|
|
7463
7972
|
kind: "directive",
|
|
7464
|
-
type:
|
|
7973
|
+
type: i4$1.NgControlStatus,
|
|
7465
7974
|
selector: "[formControlName],[ngModel],[formControl]"
|
|
7466
7975
|
},
|
|
7467
7976
|
{
|
|
7468
7977
|
kind: "directive",
|
|
7469
|
-
type:
|
|
7978
|
+
type: i4$1.NgModel,
|
|
7470
7979
|
selector: "[ngModel]:not([formControlName]):not([formControl])",
|
|
7471
7980
|
inputs: [
|
|
7472
7981
|
"name",
|
|
@@ -7645,12 +8154,12 @@ var CompletionBarComponent = class CompletionBarComponent {
|
|
|
7645
8154
|
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"],
|
|
7646
8155
|
dependencies: [{
|
|
7647
8156
|
kind: "directive",
|
|
7648
|
-
type: i1$
|
|
8157
|
+
type: i1$4.NgClass,
|
|
7649
8158
|
selector: "[ngClass]",
|
|
7650
8159
|
inputs: ["class", "ngClass"]
|
|
7651
8160
|
}, {
|
|
7652
8161
|
kind: "directive",
|
|
7653
|
-
type:
|
|
8162
|
+
type: i1$5.NgbTooltip,
|
|
7654
8163
|
selector: "[ngbTooltip]",
|
|
7655
8164
|
inputs: [
|
|
7656
8165
|
"animation",
|
|
@@ -7720,67 +8229,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
7720
8229
|
value: [{ type: Input }]
|
|
7721
8230
|
}
|
|
7722
8231
|
});
|
|
7723
|
-
var RecordsSummaryComponent = class RecordsSummaryComponent {
|
|
7724
|
-
constructor() {
|
|
7725
|
-
this.showing = 0;
|
|
7726
|
-
this.total = 0;
|
|
7727
|
-
}
|
|
7728
|
-
static {
|
|
7729
|
-
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
7730
|
-
minVersion: "12.0.0",
|
|
7731
|
-
version: "22.2.0",
|
|
7732
|
-
ngImport: i0,
|
|
7733
|
-
type: RecordsSummaryComponent,
|
|
7734
|
-
deps: [],
|
|
7735
|
-
target: i0.ɵɵFactoryTarget.Component
|
|
7736
|
-
});
|
|
7737
|
-
}
|
|
7738
|
-
static {
|
|
7739
|
-
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
7740
|
-
minVersion: "14.0.0",
|
|
7741
|
-
version: "22.2.0",
|
|
7742
|
-
type: RecordsSummaryComponent,
|
|
7743
|
-
isStandalone: false,
|
|
7744
|
-
selector: "pw-records-summary",
|
|
7745
|
-
inputs: {
|
|
7746
|
-
showing: "showing",
|
|
7747
|
-
total: "total"
|
|
7748
|
-
},
|
|
7749
|
-
host: { classAttribute: "total-records-count" },
|
|
7750
|
-
ngImport: i0,
|
|
7751
|
-
template: `{{
|
|
7752
|
-
'Label.RecordsSummary' | transloco: { showing: showing ?? 0, total: total ?? 0 }
|
|
7753
|
-
}}`,
|
|
7754
|
-
isInline: true,
|
|
7755
|
-
dependencies: [{
|
|
7756
|
-
kind: "pipe",
|
|
7757
|
-
type: i4$1.TranslocoPipe,
|
|
7758
|
-
name: "transloco"
|
|
7759
|
-
}]
|
|
7760
|
-
});
|
|
7761
|
-
}
|
|
7762
|
-
};
|
|
7763
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
7764
|
-
minVersion: "12.0.0",
|
|
7765
|
-
version: "22.2.0",
|
|
7766
|
-
ngImport: i0,
|
|
7767
|
-
type: RecordsSummaryComponent,
|
|
7768
|
-
decorators: [{
|
|
7769
|
-
type: Component,
|
|
7770
|
-
args: [{
|
|
7771
|
-
selector: "pw-records-summary",
|
|
7772
|
-
template: `{{
|
|
7773
|
-
'Label.RecordsSummary' | transloco: { showing: showing ?? 0, total: total ?? 0 }
|
|
7774
|
-
}}`,
|
|
7775
|
-
host: { class: "total-records-count" },
|
|
7776
|
-
standalone: false
|
|
7777
|
-
}]
|
|
7778
|
-
}],
|
|
7779
|
-
propDecorators: {
|
|
7780
|
-
showing: [{ type: Input }],
|
|
7781
|
-
total: [{ type: Input }]
|
|
7782
|
-
}
|
|
7783
|
-
});
|
|
7784
8232
|
var ResourceSharedComponentsModule = class ResourceSharedComponentsModule {
|
|
7785
8233
|
static {
|
|
7786
8234
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
@@ -7941,7 +8389,7 @@ var SplashComponent = class SplashComponent {
|
|
|
7941
8389
|
template: "<pw-loader [isVisible]=\"true\"></pw-loader>\n",
|
|
7942
8390
|
dependencies: [{
|
|
7943
8391
|
kind: "component",
|
|
7944
|
-
type:
|
|
8392
|
+
type: i8$1.AppLoaderComponent,
|
|
7945
8393
|
selector: "pw-loader",
|
|
7946
8394
|
inputs: [
|
|
7947
8395
|
"isVisible",
|
|
@@ -7984,7 +8432,7 @@ var TermsConditionsComponent = class TermsConditionsComponent {
|
|
|
7984
8432
|
version: "22.2.0",
|
|
7985
8433
|
ngImport: i0,
|
|
7986
8434
|
type: TermsConditionsComponent,
|
|
7987
|
-
deps: [{ token: i2$3.AppConfigService }, { token: i1$
|
|
8435
|
+
deps: [{ token: i2$3.AppConfigService }, { token: i1$2.Router }],
|
|
7988
8436
|
target: i0.ɵɵFactoryTarget.Component
|
|
7989
8437
|
});
|
|
7990
8438
|
}
|
|
@@ -8014,7 +8462,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8014
8462
|
standalone: false
|
|
8015
8463
|
}]
|
|
8016
8464
|
}],
|
|
8017
|
-
ctorParameters: () => [{ type: i2$3.AppConfigService }, { type: i1$
|
|
8465
|
+
ctorParameters: () => [{ type: i2$3.AppConfigService }, { type: i1$2.Router }]
|
|
8018
8466
|
});
|
|
8019
8467
|
const allModules = [
|
|
8020
8468
|
NgbTooltipModule,
|
|
@@ -8050,6 +8498,7 @@ var SharedComponentsModule = class SharedComponentsModule {
|
|
|
8050
8498
|
ngImport: i0,
|
|
8051
8499
|
type: SharedComponentsModule,
|
|
8052
8500
|
declarations: [
|
|
8501
|
+
AiKnowledgeComponent,
|
|
8053
8502
|
CommandPaletteComponent,
|
|
8054
8503
|
ConfirmDialogComponent,
|
|
8055
8504
|
PasswordValidationComponent,
|
|
@@ -8084,6 +8533,9 @@ var SharedComponentsModule = class SharedComponentsModule {
|
|
|
8084
8533
|
],
|
|
8085
8534
|
imports: [
|
|
8086
8535
|
FormsModule,
|
|
8536
|
+
IconFieldModule,
|
|
8537
|
+
InputIconModule,
|
|
8538
|
+
InputTextModule,
|
|
8087
8539
|
AppLoaderModule,
|
|
8088
8540
|
ReactiveFormsModule,
|
|
8089
8541
|
DirectivesModule,
|
|
@@ -8114,6 +8566,7 @@ var SharedComponentsModule = class SharedComponentsModule {
|
|
|
8114
8566
|
PwBrainChatThreadDirective
|
|
8115
8567
|
],
|
|
8116
8568
|
exports: [
|
|
8569
|
+
AiKnowledgeComponent,
|
|
8117
8570
|
CommandPaletteComponent,
|
|
8118
8571
|
ConfirmDialogComponent,
|
|
8119
8572
|
PwCookieBannerComponent,
|
|
@@ -8166,6 +8619,9 @@ var SharedComponentsModule = class SharedComponentsModule {
|
|
|
8166
8619
|
type: SharedComponentsModule,
|
|
8167
8620
|
imports: [
|
|
8168
8621
|
FormsModule,
|
|
8622
|
+
IconFieldModule,
|
|
8623
|
+
InputIconModule,
|
|
8624
|
+
InputTextModule,
|
|
8169
8625
|
AppLoaderModule,
|
|
8170
8626
|
ReactiveFormsModule,
|
|
8171
8627
|
DirectivesModule,
|
|
@@ -8205,6 +8661,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8205
8661
|
type: NgModule,
|
|
8206
8662
|
args: [{
|
|
8207
8663
|
declarations: [
|
|
8664
|
+
AiKnowledgeComponent,
|
|
8208
8665
|
CommandPaletteComponent,
|
|
8209
8666
|
ConfirmDialogComponent,
|
|
8210
8667
|
PasswordValidationComponent,
|
|
@@ -8239,6 +8696,9 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8239
8696
|
],
|
|
8240
8697
|
imports: [
|
|
8241
8698
|
FormsModule,
|
|
8699
|
+
IconFieldModule,
|
|
8700
|
+
InputIconModule,
|
|
8701
|
+
InputTextModule,
|
|
8242
8702
|
AppLoaderModule,
|
|
8243
8703
|
ReactiveFormsModule,
|
|
8244
8704
|
DirectivesModule,
|
|
@@ -8256,6 +8716,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8256
8716
|
PwBrainChatThreadDirective
|
|
8257
8717
|
],
|
|
8258
8718
|
exports: [
|
|
8719
|
+
AiKnowledgeComponent,
|
|
8259
8720
|
CommandPaletteComponent,
|
|
8260
8721
|
ConfirmDialogComponent,
|
|
8261
8722
|
PwCookieBannerComponent,
|
|
@@ -8306,7 +8767,7 @@ var CollapsibleSidebarSuperAdminGuard = class CollapsibleSidebarSuperAdminGuard
|
|
|
8306
8767
|
version: "22.2.0",
|
|
8307
8768
|
ngImport: i0,
|
|
8308
8769
|
type: CollapsibleSidebarSuperAdminGuard,
|
|
8309
|
-
deps: [{ token: i1$
|
|
8770
|
+
deps: [{ token: i1$3.UserService }, { token: i1$3.PermissionService }],
|
|
8310
8771
|
target: i0.ɵɵFactoryTarget.Injectable
|
|
8311
8772
|
});
|
|
8312
8773
|
}
|
|
@@ -8329,7 +8790,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8329
8790
|
type: Injectable,
|
|
8330
8791
|
args: [{ providedIn: "root" }]
|
|
8331
8792
|
}],
|
|
8332
|
-
ctorParameters: () => [{ type: i1$
|
|
8793
|
+
ctorParameters: () => [{ type: i1$3.UserService }, { type: i1$3.PermissionService }]
|
|
8333
8794
|
});
|
|
8334
8795
|
var UiLayoutService = class UiLayoutService {
|
|
8335
8796
|
constructor(api) {
|
|
@@ -8346,7 +8807,7 @@ var UiLayoutService = class UiLayoutService {
|
|
|
8346
8807
|
version: "22.2.0",
|
|
8347
8808
|
ngImport: i0,
|
|
8348
8809
|
type: UiLayoutService,
|
|
8349
|
-
deps: [{ token: i1$
|
|
8810
|
+
deps: [{ token: i1$3.MainApiHttpService }],
|
|
8350
8811
|
target: i0.ɵɵFactoryTarget.Injectable
|
|
8351
8812
|
});
|
|
8352
8813
|
}
|
|
@@ -8369,8 +8830,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8369
8830
|
type: Injectable,
|
|
8370
8831
|
args: [{ providedIn: "root" }]
|
|
8371
8832
|
}],
|
|
8372
|
-
ctorParameters: () => [{ type: i1$
|
|
8833
|
+
ctorParameters: () => [{ type: i1$3.MainApiHttpService }]
|
|
8373
8834
|
});
|
|
8374
|
-
export { AuthenticatorComponent, 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, OnlineIndicatorComponent, PasswordValidationComponent, PermissionTreeComponent, PrivacyAndTosComponent, PrivacyPolicyComponent, PwBrainChatComponent, PwCookieBannerComponent, PwDynamicPageComponent, PwTabsComponent, RecordsSummaryComponent, ResourceSharedComponentsModule, SharedComponentsModule, SplashComponent, TermsConditionsComponent, UI_BUILDER_FLAG, UiLayoutService, registeredType, registeredTypeNames };
|
|
8835
|
+
export { AiKnowledgeComponent, AuthenticatorComponent, 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, OnlineIndicatorComponent, PasswordValidationComponent, PermissionTreeComponent, PrivacyAndTosComponent, PrivacyPolicyComponent, PwBrainChatComponent, PwCookieBannerComponent, PwDynamicPageComponent, PwTabsComponent, RecordsSummaryComponent, ResourceSharedComponentsModule, SharedComponentsModule, SplashComponent, TermsConditionsComponent, UI_BUILDER_FLAG, UiLayoutService, registeredType, registeredTypeNames };
|
|
8375
8836
|
|
|
8376
8837
|
//# sourceMappingURL=posiwise-shared-components.mjs.map
|