@posiwise/shared-components 0.0.213 → 0.0.215

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$4 from "@angular/common";
1
+ import * as i1$3 from "@angular/common";
2
2
  import { CommonModule, DOCUMENT, NgIf } from "@angular/common";
3
3
  import * as i0 from "@angular/core";
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";
4
+ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, DOCUMENT as DOCUMENT$1, DestroyRef, Directive, EventEmitter, Host, HostBinding, HostListener, Inject, Injectable, InjectionToken, Input, NgModule, Optional, Output, Pipe, SkipSelf, ViewChild, ViewContainerRef, booleanAttribute, inject, isDevMode } from "@angular/core";
5
5
  import * as i4$1 from "@angular/forms";
6
6
  import { FormsModule, NG_VALUE_ACCESSOR, ReactiveFormsModule, UntypedFormControl, Validators } from "@angular/forms";
7
- import * as i1$2 from "@angular/router";
7
+ import * as i9$1 from "@angular/router";
8
8
  import { NavigationEnd, RouterModule } from "@angular/router";
9
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 i14 from "@posiwise/pipes";
14
+ import * as i15 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";
@@ -34,15 +34,15 @@ import * as i8 from "primeng/progressspinner";
34
34
  import { ProgressSpinnerModule } from "primeng/progressspinner";
35
35
  import * as i6 from "primeng/select";
36
36
  import { SelectModule } from "primeng/select";
37
- import * as i10 from "primeng/table";
37
+ import * as i11 from "primeng/table";
38
38
  import { TableModule } from "primeng/table";
39
39
  import * as i2$1 from "primeng/tabs";
40
40
  import { TabsModule } from "primeng/tabs";
41
- import * as i9$1 from "primeng/tooltip";
41
+ import * as i10 from "primeng/tooltip";
42
42
  import { TooltipModule } from "primeng/tooltip";
43
- import * as i1$5 from "@ng-bootstrap/ng-bootstrap";
43
+ import * as i1$4 from "@ng-bootstrap/ng-bootstrap";
44
44
  import { NgbModalModule, NgbNavModule, NgbTooltipModule } from "@ng-bootstrap/ng-bootstrap";
45
- import * as i1$3 from "@posiwise/common-services";
45
+ import * as i1$2 from "@posiwise/common-services";
46
46
  import { KNOWLEDGE_EXTENSIONS, KNOWLEDGE_MAX_BYTES, PermissionService } from "@posiwise/common-services";
47
47
  import { ADMIN_ROUTERS, PAGE_SIZE, TAG_ENTITY } from "@posiwise/common-utilities";
48
48
  import { catchError, debounceTime, distinctUntilChanged, filter, finalize, map, switchMap, take, takeUntil } from "rxjs/operators";
@@ -53,6 +53,7 @@ import { BehaviorSubject, Subject, of, takeUntil as takeUntil$1 } from "rxjs";
53
53
  import * as i3 from "@ngrx/store";
54
54
  import { HelperService } from "@posiwise/helper-service";
55
55
  import { __decorate, __metadata } from "tslib";
56
+ import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
56
57
  import { StatusCodes } from "http-status-codes";
57
58
  import * as i2$2 from "@angular/platform-browser";
58
59
  import * as i1 from "@posiwise/admin-module-utils";
@@ -124,7 +125,7 @@ var ConfirmDialogComponent = class ConfirmDialogComponent {
124
125
  version: "22.2.0",
125
126
  ngImport: i0,
126
127
  type: ConfirmDialogComponent,
127
- deps: [{ token: i1$5.NgbActiveModal }],
128
+ deps: [{ token: i1$4.NgbActiveModal }],
128
129
  target: i0.ɵɵFactoryTarget.Component
129
130
  });
130
131
  }
@@ -161,7 +162,7 @@ i0.ɵɵngDeclareClassMetadata({
161
162
  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
  }]
163
164
  }],
164
- ctorParameters: () => [{ type: i1$5.NgbActiveModal }],
165
+ ctorParameters: () => [{ type: i1$4.NgbActiveModal }],
165
166
  propDecorators: { config: [{ type: Input }] }
166
167
  });
167
168
  var ConfirmDialogService = class ConfirmDialogService {
@@ -193,7 +194,7 @@ var ConfirmDialogService = class ConfirmDialogService {
193
194
  version: "22.2.0",
194
195
  ngImport: i0,
195
196
  type: ConfirmDialogService,
196
- deps: [{ token: i1$5.NgbModal }],
197
+ deps: [{ token: i1$4.NgbModal }],
197
198
  target: i0.ɵɵFactoryTarget.Injectable
198
199
  });
199
200
  }
@@ -216,7 +217,7 @@ i0.ɵɵngDeclareClassMetadata({
216
217
  type: Injectable,
217
218
  args: [{ providedIn: "root" }]
218
219
  }],
219
- ctorParameters: () => [{ type: i1$5.NgbModal }]
220
+ ctorParameters: () => [{ type: i1$4.NgbModal }]
220
221
  });
221
222
  function folderOf(file) {
222
223
  const slash = file.path.lastIndexOf("/");
@@ -231,7 +232,7 @@ function formatSize(bytes) {
231
232
  return `${(bytes / 1048576).toFixed(1)} MB`;
232
233
  }
233
234
  function folderBadgeClasses(files) {
234
- const folders = [...new Set(files.map(topFolderOf).filter(Boolean))].sort();
235
+ const folders = [...new Set(files.map(topFolderOf).filter(Boolean))].sort((a, b) => a.localeCompare(b));
235
236
  return new Map(folders.map((folder, i) => [folder, `bg-cyan-${i * 7 % 24 + 1}`]));
236
237
  }
237
238
  function uploadProblem(file) {
@@ -248,6 +249,14 @@ function matchingCount(filtered, files) {
248
249
  function shownOnPage(first, pageSize, matching) {
249
250
  return Math.max(0, Math.min(pageSize, matching - first));
250
251
  }
252
+ function saveBlob(blob, name) {
253
+ const url = URL.createObjectURL(blob);
254
+ const link = document.createElement("a");
255
+ link.href = url;
256
+ link.download = name;
257
+ link.click();
258
+ URL.revokeObjectURL(url);
259
+ }
251
260
  var NoDataComponent = class NoDataComponent {
252
261
  constructor() {
253
262
  this.message = null;
@@ -311,7 +320,7 @@ var NoDataComponent = class NoDataComponent {
311
320
  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
321
  dependencies: [{
313
322
  kind: "directive",
314
- type: i1$4.NgClass,
323
+ type: i1$3.NgClass,
315
324
  selector: "[ngClass]",
316
325
  inputs: ["class", "ngClass"]
317
326
  }]
@@ -432,6 +441,7 @@ var AiKnowledgeComponent = class AiKnowledgeComponent {
432
441
  this.scope = "subscription";
433
442
  this.subscriptionId = null;
434
443
  this.subscriptionName = "";
444
+ this.useOwnData = true;
435
445
  this.accept = KNOWLEDGE_EXTENSIONS.join(",");
436
446
  this.pageSize = PAGE_SIZE;
437
447
  this.files = [];
@@ -489,14 +499,7 @@ var AiKnowledgeComponent = class AiKnowledgeComponent {
489
499
  });
490
500
  }
491
501
  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
- });
502
+ this.knowledge.downloadFile(this.subscriptionId, this.scope, file.path).subscribe((blob) => saveBlob(blob, file.name));
500
503
  }
501
504
  remove(file) {
502
505
  this.confirmDialog.confirmDelete({
@@ -532,9 +535,9 @@ var AiKnowledgeComponent = class AiKnowledgeComponent {
532
535
  ngImport: i0,
533
536
  type: AiKnowledgeComponent,
534
537
  deps: [
535
- { token: i1$3.KnowledgeFilesService },
538
+ { token: i1$2.KnowledgeFilesService },
536
539
  { token: ConfirmDialogService },
537
- { token: i1$3.CustomToastService },
540
+ { token: i1$2.CustomToastService },
538
541
  { token: i2$4.TranslocoService },
539
542
  { token: i0.ChangeDetectorRef }
540
543
  ],
@@ -551,7 +554,8 @@ var AiKnowledgeComponent = class AiKnowledgeComponent {
551
554
  inputs: {
552
555
  scope: "scope",
553
556
  subscriptionId: "subscriptionId",
554
- subscriptionName: "subscriptionName"
557
+ subscriptionName: "subscriptionName",
558
+ useOwnData: "useOwnData"
555
559
  },
556
560
  viewQueries: [{
557
561
  propertyName: "fileInput",
@@ -561,8 +565,8 @@ var AiKnowledgeComponent = class AiKnowledgeComponent {
561
565
  }],
562
566
  usesOnChanges: true,
563
567
  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"],
568
+ 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 @if (!useOwnData) {\n <div class=\"alert alert-warning ai-knowledge-off\" role=\"status\">\n <i class=\"fa fa-exclamation-triangle\" aria-hidden=\"true\"></i>\n <span>\n {{ (scope === 'personal' ? 'AiKnowledge.PersonalUseOwnDataOff' : 'AiKnowledge.UseOwnDataOff') | transloco: { name: subscriptionName } }}\n @if (scope === 'subscription' && subscriptionId) {\n <a [routerLink]=\"['/account/subscriptions', subscriptionId]\">{{ 'AiKnowledge.OpenSubscriptionSettings' | transloco }}</a>\n }\n </span>\n </div>\n }\n\n @if (useOwnData) {\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\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 scope=\"col\">{{ 'Label.Name' | transloco }}</th>\n @if (showFolder) {\n <th scope=\"col\">{{ 'AiKnowledge.Folder' | transloco }}</th>\n }\n <th scope=\"col\">{{ 'AiKnowledge.Size' | transloco }}</th>\n <th scope=\"col\">{{ '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 [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 [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 if (useOwnData) {\n <pw-no-data [withImage]=\"true\" [message]=\"'AiKnowledge.NoFiles' | transloco\"\n [description]=\"'AiKnowledge.NoFilesDescription' | transloco\"></pw-no-data>\n }\n }\n</section>\n",
569
+ 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}.ai-knowledge-off{display:flex;align-items:baseline;gap:8px}\n"],
566
570
  dependencies: [
567
571
  {
568
572
  kind: "directive",
@@ -625,7 +629,26 @@ var AiKnowledgeComponent = class AiKnowledgeComponent {
625
629
  },
626
630
  {
627
631
  kind: "directive",
628
- type: i9$1.Tooltip,
632
+ type: i9$1.RouterLink,
633
+ selector: "[routerLink]",
634
+ inputs: [
635
+ "target",
636
+ "queryParams",
637
+ "fragment",
638
+ "queryParamsHandling",
639
+ "state",
640
+ "info",
641
+ "relativeTo",
642
+ "preserveFragment",
643
+ "skipLocationChange",
644
+ "replaceUrl",
645
+ "browserUrl",
646
+ "routerLink"
647
+ ]
648
+ },
649
+ {
650
+ kind: "directive",
651
+ type: i10.Tooltip,
629
652
  selector: "[pTooltip]",
630
653
  inputs: [
631
654
  "tooltipPosition",
@@ -653,7 +676,7 @@ var AiKnowledgeComponent = class AiKnowledgeComponent {
653
676
  },
654
677
  {
655
678
  kind: "component",
656
- type: i10.Table,
679
+ type: i11.Table,
657
680
  selector: "p-table",
658
681
  inputs: [
659
682
  "frozenColumns",
@@ -766,7 +789,7 @@ var AiKnowledgeComponent = class AiKnowledgeComponent {
766
789
  },
767
790
  {
768
791
  kind: "directive",
769
- type: i1$4.NgClass,
792
+ type: i1$3.NgClass,
770
793
  selector: "[ngClass]",
771
794
  inputs: ["class", "ngClass"]
772
795
  },
@@ -793,7 +816,7 @@ var AiKnowledgeComponent = class AiKnowledgeComponent {
793
816
  },
794
817
  {
795
818
  kind: "pipe",
796
- type: i14.DateFormatPipe,
819
+ type: i15.DateFormatPipe,
797
820
  name: "dateFormat"
798
821
  }
799
822
  ]
@@ -810,14 +833,14 @@ i0.ɵɵngDeclareClassMetadata({
810
833
  args: [{
811
834
  selector: "pw-ai-knowledge",
812
835
  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"]
836
+ 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 @if (!useOwnData) {\n <div class=\"alert alert-warning ai-knowledge-off\" role=\"status\">\n <i class=\"fa fa-exclamation-triangle\" aria-hidden=\"true\"></i>\n <span>\n {{ (scope === 'personal' ? 'AiKnowledge.PersonalUseOwnDataOff' : 'AiKnowledge.UseOwnDataOff') | transloco: { name: subscriptionName } }}\n @if (scope === 'subscription' && subscriptionId) {\n <a [routerLink]=\"['/account/subscriptions', subscriptionId]\">{{ 'AiKnowledge.OpenSubscriptionSettings' | transloco }}</a>\n }\n </span>\n </div>\n }\n\n @if (useOwnData) {\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\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 scope=\"col\">{{ 'Label.Name' | transloco }}</th>\n @if (showFolder) {\n <th scope=\"col\">{{ 'AiKnowledge.Folder' | transloco }}</th>\n }\n <th scope=\"col\">{{ 'AiKnowledge.Size' | transloco }}</th>\n <th scope=\"col\">{{ '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 [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 [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 if (useOwnData) {\n <pw-no-data [withImage]=\"true\" [message]=\"'AiKnowledge.NoFiles' | transloco\"\n [description]=\"'AiKnowledge.NoFilesDescription' | transloco\"></pw-no-data>\n }\n }\n</section>\n",
837
+ 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}.ai-knowledge-off{display:flex;align-items:baseline;gap:8px}\n"]
815
838
  }]
816
839
  }],
817
840
  ctorParameters: () => [
818
- { type: i1$3.KnowledgeFilesService },
841
+ { type: i1$2.KnowledgeFilesService },
819
842
  { type: ConfirmDialogService },
820
- { type: i1$3.CustomToastService },
843
+ { type: i1$2.CustomToastService },
821
844
  { type: i2$4.TranslocoService },
822
845
  { type: i0.ChangeDetectorRef }
823
846
  ],
@@ -828,6 +851,7 @@ i0.ɵɵngDeclareClassMetadata({
828
851
  }],
829
852
  subscriptionId: [{ type: Input }],
830
853
  subscriptionName: [{ type: Input }],
854
+ useOwnData: [{ type: Input }],
831
855
  fileInput: [{
832
856
  type: ViewChild,
833
857
  args: ["fileInput"]
@@ -868,7 +892,7 @@ var AuthenticatorComponent = class AuthenticatorComponent extends AppBaseCompone
868
892
  ngImport: i0,
869
893
  type: AuthenticatorComponent,
870
894
  deps: [
871
- { token: i1$3.AuthService },
895
+ { token: i1$2.AuthService },
872
896
  { token: i0.Injector },
873
897
  { token: i0.ChangeDetectorRef }
874
898
  ],
@@ -902,7 +926,7 @@ i0.ɵɵngDeclareClassMetadata({
902
926
  }]
903
927
  }],
904
928
  ctorParameters: () => [
905
- { type: i1$3.AuthService },
929
+ { type: i1$2.AuthService },
906
930
  { type: i0.Injector },
907
931
  { type: i0.ChangeDetectorRef }
908
932
  ]
@@ -1778,7 +1802,7 @@ var PwBrainChatThreadDirective = class PwBrainChatThreadDirective {
1778
1802
  version: "22.2.0",
1779
1803
  ngImport: i0,
1780
1804
  type: PwBrainChatThreadDirective,
1781
- deps: [{ token: i1$2.Router }],
1805
+ deps: [{ token: i9$1.Router }],
1782
1806
  target: i0.ɵɵFactoryTarget.Directive
1783
1807
  });
1784
1808
  }
@@ -1803,7 +1827,7 @@ i0.ɵɵngDeclareClassMetadata({
1803
1827
  type: Directive,
1804
1828
  args: [{ selector: "[pwBrainChatThread]" }]
1805
1829
  }],
1806
- ctorParameters: () => [{ type: i1$2.Router }],
1830
+ ctorParameters: () => [{ type: i9$1.Router }],
1807
1831
  propDecorators: { onClick: [{
1808
1832
  type: HostListener,
1809
1833
  args: ["click", ["$event"]]
@@ -1905,7 +1929,7 @@ var PwBrainChatWelcomeComponent = class PwBrainChatWelcomeComponent {
1905
1929
  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"],
1906
1930
  dependencies: [{
1907
1931
  kind: "directive",
1908
- type: i1$4.NgClass,
1932
+ type: i1$3.NgClass,
1909
1933
  selector: "[ngClass]",
1910
1934
  inputs: ["class", "ngClass"]
1911
1935
  }],
@@ -2402,7 +2426,7 @@ var PwBrainChatVoiceOverlayComponent = class PwBrainChatVoiceOverlayComponent {
2402
2426
  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"],
2403
2427
  dependencies: [{
2404
2428
  kind: "directive",
2405
- type: i1$4.NgClass,
2429
+ type: i1$3.NgClass,
2406
2430
  selector: "[ngClass]",
2407
2431
  inputs: ["class", "ngClass"]
2408
2432
  }]
@@ -2625,7 +2649,7 @@ var SafeMarkdownPipe = class SafeMarkdownPipe {
2625
2649
  version: "22.2.0",
2626
2650
  ngImport: i0,
2627
2651
  type: SafeMarkdownPipe,
2628
- deps: [{ token: i1$3.NavigationIndexService }, { token: i2$3.AppConfigService }],
2652
+ deps: [{ token: i1$2.NavigationIndexService }, { token: i2$3.AppConfigService }],
2629
2653
  target: i0.ɵɵFactoryTarget.Pipe
2630
2654
  });
2631
2655
  }
@@ -2649,7 +2673,7 @@ i0.ɵɵngDeclareClassMetadata({
2649
2673
  type: Pipe,
2650
2674
  args: [{ name: "safeMarkdown" }]
2651
2675
  }],
2652
- ctorParameters: () => [{ type: i1$3.NavigationIndexService }, { type: i2$3.AppConfigService }]
2676
+ ctorParameters: () => [{ type: i1$2.NavigationIndexService }, { type: i2$3.AppConfigService }]
2653
2677
  });
2654
2678
  var PwBrainChatComponent = class PwBrainChatComponent {
2655
2679
  constructor(orchestrator, localStorage, router, cdr, store, dynamicPageCtx, appConfigService, brainSocket, brainVoice, voiceChatService, directUpload, uploadApis) {
@@ -2854,7 +2878,7 @@ var PwBrainChatComponent = class PwBrainChatComponent {
2854
2878
  this.streamingStage = null;
2855
2879
  this.streamingProse = null;
2856
2880
  const e = err ?? {};
2857
- const message = e.error?.detail ?? e.error?.message ?? e.message ?? `${this.brandName} Brain request failed.`;
2881
+ const message = e.error?.message ?? e.error?.detail ?? e.message ?? `${this.brandName} Brain request failed.`;
2858
2882
  this.pushAssistant(message, false);
2859
2883
  this.loading = false;
2860
2884
  this.cdr.markForCheck();
@@ -2894,9 +2918,9 @@ var PwBrainChatComponent = class PwBrainChatComponent {
2894
2918
  ngImport: i0,
2895
2919
  type: PwBrainChatComponent,
2896
2920
  deps: [
2897
- { token: i1$3.MCPOrchestratorService },
2898
- { token: i1$3.LocalStorage },
2899
- { token: i1$2.Router },
2921
+ { token: i1$2.MCPOrchestratorService },
2922
+ { token: i1$2.LocalStorage },
2923
+ { token: i9$1.Router },
2900
2924
  { token: i0.ChangeDetectorRef },
2901
2925
  { token: i3.Store },
2902
2926
  { token: DynamicPageContextService },
@@ -2905,19 +2929,19 @@ var PwBrainChatComponent = class PwBrainChatComponent {
2905
2929
  optional: true
2906
2930
  },
2907
2931
  {
2908
- token: i1$3.BrainSocketService,
2932
+ token: i1$2.BrainSocketService,
2909
2933
  optional: true
2910
2934
  },
2911
2935
  {
2912
- token: i1$3.BrainVoiceService,
2936
+ token: i1$2.BrainVoiceService,
2913
2937
  optional: true
2914
2938
  },
2915
2939
  {
2916
- token: i1$3.VoiceChatService,
2940
+ token: i1$2.VoiceChatService,
2917
2941
  optional: true
2918
2942
  },
2919
2943
  {
2920
- token: i1$3.DirectUploadService,
2944
+ token: i1$2.DirectUploadService,
2921
2945
  optional: true
2922
2946
  },
2923
2947
  {
@@ -2977,7 +3001,7 @@ var PwBrainChatComponent = class PwBrainChatComponent {
2977
3001
  },
2978
3002
  {
2979
3003
  kind: "directive",
2980
- type: i1$5.NgbTooltip,
3004
+ type: i1$4.NgbTooltip,
2981
3005
  selector: "[ngbTooltip]",
2982
3006
  inputs: [
2983
3007
  "animation",
@@ -2999,7 +3023,7 @@ var PwBrainChatComponent = class PwBrainChatComponent {
2999
3023
  },
3000
3024
  {
3001
3025
  kind: "directive",
3002
- type: i1$4.NgClass,
3026
+ type: i1$3.NgClass,
3003
3027
  selector: "[ngClass]",
3004
3028
  inputs: ["class", "ngClass"]
3005
3029
  },
@@ -3031,7 +3055,7 @@ var PwBrainChatComponent = class PwBrainChatComponent {
3031
3055
  },
3032
3056
  {
3033
3057
  kind: "pipe",
3034
- type: i1$4.DatePipe,
3058
+ type: i1$3.DatePipe,
3035
3059
  name: "date"
3036
3060
  },
3037
3061
  {
@@ -3067,9 +3091,9 @@ i0.ɵɵngDeclareClassMetadata({
3067
3091
  }]
3068
3092
  }],
3069
3093
  ctorParameters: () => [
3070
- { type: i1$3.MCPOrchestratorService },
3071
- { type: i1$3.LocalStorage },
3072
- { type: i1$2.Router },
3094
+ { type: i1$2.MCPOrchestratorService },
3095
+ { type: i1$2.LocalStorage },
3096
+ { type: i9$1.Router },
3073
3097
  { type: i0.ChangeDetectorRef },
3074
3098
  { type: i3.Store },
3075
3099
  { type: DynamicPageContextService },
@@ -3078,19 +3102,19 @@ i0.ɵɵngDeclareClassMetadata({
3078
3102
  decorators: [{ type: Optional }]
3079
3103
  },
3080
3104
  {
3081
- type: i1$3.BrainSocketService,
3105
+ type: i1$2.BrainSocketService,
3082
3106
  decorators: [{ type: Optional }]
3083
3107
  },
3084
3108
  {
3085
- type: i1$3.BrainVoiceService,
3109
+ type: i1$2.BrainVoiceService,
3086
3110
  decorators: [{ type: Optional }]
3087
3111
  },
3088
3112
  {
3089
- type: i1$3.VoiceChatService,
3113
+ type: i1$2.VoiceChatService,
3090
3114
  decorators: [{ type: Optional }]
3091
3115
  },
3092
3116
  {
3093
- type: i1$3.DirectUploadService,
3117
+ type: i1$2.DirectUploadService,
3094
3118
  decorators: [{ type: Optional }]
3095
3119
  },
3096
3120
  {
@@ -3216,7 +3240,7 @@ var ClearBitIconComponent = class ClearBitIconComponent {
3216
3240
  selector: "img"
3217
3241
  }, {
3218
3242
  kind: "directive",
3219
- type: i1$4.NgClass,
3243
+ type: i1$3.NgClass,
3220
3244
  selector: "[ngClass]",
3221
3245
  inputs: ["class", "ngClass"]
3222
3246
  }]
@@ -4164,11 +4188,11 @@ var CommandPaletteComponent = class CommandPaletteComponent {
4164
4188
  type: CommandPaletteComponent,
4165
4189
  deps: [
4166
4190
  { token: CommandPaletteService },
4167
- { token: i1$3.NavigationIndexService },
4168
- { token: i1$3.DashboardService },
4169
- { token: i1$3.RecentPagesService },
4191
+ { token: i1$2.NavigationIndexService },
4192
+ { token: i1$2.DashboardService },
4193
+ { token: i1$2.RecentPagesService },
4170
4194
  { token: CollapsibleSidebarService },
4171
- { token: i1$2.Router },
4195
+ { token: i9$1.Router },
4172
4196
  { token: i2$4.TranslocoService },
4173
4197
  { token: i0.ChangeDetectorRef },
4174
4198
  {
@@ -4176,7 +4200,7 @@ var CommandPaletteComponent = class CommandPaletteComponent {
4176
4200
  optional: true
4177
4201
  },
4178
4202
  {
4179
- token: i1$3.CustomToastService,
4203
+ token: i1$2.CustomToastService,
4180
4204
  optional: true
4181
4205
  }
4182
4206
  ],
@@ -4207,7 +4231,7 @@ var CommandPaletteComponent = class CommandPaletteComponent {
4207
4231
  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"],
4208
4232
  dependencies: [{
4209
4233
  kind: "directive",
4210
- type: i1$4.NgClass,
4234
+ type: i1$3.NgClass,
4211
4235
  selector: "[ngClass]",
4212
4236
  inputs: ["class", "ngClass"]
4213
4237
  }, {
@@ -4236,11 +4260,11 @@ i0.ɵɵngDeclareClassMetadata({
4236
4260
  }],
4237
4261
  ctorParameters: () => [
4238
4262
  { type: CommandPaletteService },
4239
- { type: i1$3.NavigationIndexService },
4240
- { type: i1$3.DashboardService },
4241
- { type: i1$3.RecentPagesService },
4263
+ { type: i1$2.NavigationIndexService },
4264
+ { type: i1$2.DashboardService },
4265
+ { type: i1$2.RecentPagesService },
4242
4266
  { type: CollapsibleSidebarService },
4243
- { type: i1$2.Router },
4267
+ { type: i9$1.Router },
4244
4268
  { type: i2$4.TranslocoService },
4245
4269
  { type: i0.ChangeDetectorRef },
4246
4270
  {
@@ -4248,7 +4272,7 @@ i0.ɵɵngDeclareClassMetadata({
4248
4272
  decorators: [{ type: Optional }]
4249
4273
  },
4250
4274
  {
4251
- type: i1$3.CustomToastService,
4275
+ type: i1$2.CustomToastService,
4252
4276
  decorators: [{ type: Optional }]
4253
4277
  }
4254
4278
  ],
@@ -4969,9 +4993,9 @@ var PwDynamicPageComponent = class PwDynamicPageComponent {
4969
4993
  deps: [
4970
4994
  { token: i0.Injector },
4971
4995
  { token: i0.ChangeDetectorRef },
4972
- { token: i1$3.FeatureFlagService },
4996
+ { token: i1$2.FeatureFlagService },
4973
4997
  {
4974
- token: i1$3.UserService,
4998
+ token: i1$2.UserService,
4975
4999
  optional: true
4976
5000
  },
4977
5001
  {
@@ -5060,9 +5084,9 @@ i0.ɵɵngDeclareClassMetadata({
5060
5084
  ctorParameters: () => [
5061
5085
  { type: i0.Injector },
5062
5086
  { type: i0.ChangeDetectorRef },
5063
- { type: i1$3.FeatureFlagService },
5087
+ { type: i1$2.FeatureFlagService },
5064
5088
  {
5065
- type: i1$3.UserService,
5089
+ type: i1$2.UserService,
5066
5090
  decorators: [{ type: Optional }]
5067
5091
  },
5068
5092
  {
@@ -5117,7 +5141,7 @@ var HeaderComponent = class HeaderComponent extends AppBaseComponent {
5117
5141
  type: HeaderComponent,
5118
5142
  deps: [
5119
5143
  { token: i0.Injector },
5120
- { token: i1$3.AuthService },
5144
+ { token: i1$2.AuthService },
5121
5145
  { token: i0.ChangeDetectorRef }
5122
5146
  ],
5123
5147
  target: i0.ɵɵFactoryTarget.Component
@@ -5163,7 +5187,7 @@ i0.ɵɵngDeclareClassMetadata({
5163
5187
  }],
5164
5188
  ctorParameters: () => [
5165
5189
  { type: i0.Injector },
5166
- { type: i1$3.AuthService },
5190
+ { type: i1$2.AuthService },
5167
5191
  { type: i0.ChangeDetectorRef }
5168
5192
  ],
5169
5193
  propDecorators: { landing: [{ type: Input }] }
@@ -5288,9 +5312,9 @@ var EntityGroupComponent = class EntityGroupComponent extends AppBaseComponent {
5288
5312
  ngImport: i0,
5289
5313
  type: EntityGroupComponent,
5290
5314
  deps: [
5291
- { token: i1$3.GroupService },
5292
- { token: i1$3.SubscriptionService },
5293
- { token: i1$5.NgbModal },
5315
+ { token: i1$2.GroupService },
5316
+ { token: i1$2.SubscriptionService },
5317
+ { token: i1$4.NgbModal },
5294
5318
  { token: i0.Injector },
5295
5319
  { token: i0.ChangeDetectorRef }
5296
5320
  ],
@@ -5342,7 +5366,7 @@ var EntityGroupComponent = class EntityGroupComponent extends AppBaseComponent {
5342
5366
  },
5343
5367
  {
5344
5368
  kind: "directive",
5345
- type: i1$2.RouterLink,
5369
+ type: i9$1.RouterLink,
5346
5370
  selector: "[routerLink]",
5347
5371
  inputs: [
5348
5372
  "target",
@@ -5361,7 +5385,7 @@ var EntityGroupComponent = class EntityGroupComponent extends AppBaseComponent {
5361
5385
  },
5362
5386
  {
5363
5387
  kind: "directive",
5364
- type: i9$1.Tooltip,
5388
+ type: i10.Tooltip,
5365
5389
  selector: "[pTooltip]",
5366
5390
  inputs: [
5367
5391
  "tooltipPosition",
@@ -5389,7 +5413,7 @@ var EntityGroupComponent = class EntityGroupComponent extends AppBaseComponent {
5389
5413
  },
5390
5414
  {
5391
5415
  kind: "component",
5392
- type: i10.Table,
5416
+ type: i11.Table,
5393
5417
  selector: "p-table",
5394
5418
  inputs: [
5395
5419
  "frozenColumns",
@@ -5627,9 +5651,9 @@ i0.ɵɵngDeclareClassMetadata({
5627
5651
  }]
5628
5652
  }],
5629
5653
  ctorParameters: () => [
5630
- { type: i1$3.GroupService },
5631
- { type: i1$3.SubscriptionService },
5632
- { type: i1$5.NgbModal },
5654
+ { type: i1$2.GroupService },
5655
+ { type: i1$2.SubscriptionService },
5656
+ { type: i1$4.NgbModal },
5633
5657
  { type: i0.Injector },
5634
5658
  { type: i0.ChangeDetectorRef }
5635
5659
  ],
@@ -5647,6 +5671,8 @@ var InputContainerComponent = class InputContainerComponent {
5647
5671
  this.isReadOnly = false;
5648
5672
  this.showTriangle = false;
5649
5673
  this.isLeftTooltip = false;
5674
+ this.cdr = inject(ChangeDetectorRef);
5675
+ this.destroyRef = inject(DestroyRef);
5650
5676
  }
5651
5677
  ngOnInit() {
5652
5678
  if (this.controlContainer) {
@@ -5655,9 +5681,13 @@ var InputContainerComponent = class InputContainerComponent {
5655
5681
  if (this.control?.validator) {
5656
5682
  if (this.control.validator({})?.["required"]) this.required = true;
5657
5683
  }
5684
+ this.refreshOnControlEvents();
5658
5685
  }
5659
5686
  }
5660
5687
  }
5688
+ refreshOnControlEvents() {
5689
+ this.control?.events.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => this.cdr.markForCheck());
5690
+ }
5661
5691
  static {
5662
5692
  this.ɵfac = i0.ɵɵngDeclareFactory({
5663
5693
  minVersion: "12.0.0",
@@ -5709,13 +5739,13 @@ var InputContainerComponent = class InputContainerComponent {
5709
5739
  dependencies: [
5710
5740
  {
5711
5741
  kind: "directive",
5712
- type: i1$4.NgClass,
5742
+ type: i1$3.NgClass,
5713
5743
  selector: "[ngClass]",
5714
5744
  inputs: ["class", "ngClass"]
5715
5745
  },
5716
5746
  {
5717
5747
  kind: "directive",
5718
- type: i9$1.Tooltip,
5748
+ type: i10.Tooltip,
5719
5749
  selector: "[pTooltip]",
5720
5750
  inputs: [
5721
5751
  "tooltipPosition",
@@ -5951,10 +5981,10 @@ var GroupDefinitionComponent = class GroupDefinitionComponent extends AppBaseCom
5951
5981
  ngImport: i0,
5952
5982
  type: GroupDefinitionComponent,
5953
5983
  deps: [
5954
- { token: i1$3.GroupService },
5984
+ { token: i1$2.GroupService },
5955
5985
  { token: i4$1.UntypedFormBuilder },
5956
- { token: i1$3.SubscriptionService },
5957
- { token: i1$3.DataService },
5986
+ { token: i1$2.SubscriptionService },
5987
+ { token: i1$2.DataService },
5958
5988
  { token: i0.Injector },
5959
5989
  { token: i0.ChangeDetectorRef },
5960
5990
  { token: ConfirmDialogService }
@@ -6101,7 +6131,7 @@ var GroupDefinitionComponent = class GroupDefinitionComponent extends AppBaseCom
6101
6131
  },
6102
6132
  {
6103
6133
  kind: "pipe",
6104
- type: i1$4.SlicePipe,
6134
+ type: i1$3.SlicePipe,
6105
6135
  name: "slice"
6106
6136
  }
6107
6137
  ]
@@ -6129,10 +6159,10 @@ i0.ɵɵngDeclareClassMetadata({
6129
6159
  }]
6130
6160
  }],
6131
6161
  ctorParameters: () => [
6132
- { type: i1$3.GroupService },
6162
+ { type: i1$2.GroupService },
6133
6163
  { type: i4$1.UntypedFormBuilder },
6134
- { type: i1$3.SubscriptionService },
6135
- { type: i1$3.DataService },
6164
+ { type: i1$2.SubscriptionService },
6165
+ { type: i1$2.DataService },
6136
6166
  { type: i0.Injector },
6137
6167
  { type: i0.ChangeDetectorRef },
6138
6168
  { type: ConfirmDialogService }
@@ -6340,9 +6370,9 @@ var GroupsComponent = class GroupsComponent extends AppBaseComponent {
6340
6370
  type: GroupsComponent,
6341
6371
  deps: [
6342
6372
  { token: i4$1.UntypedFormBuilder },
6343
- { token: i1$3.GroupService },
6344
- { token: i1$3.SubscriptionService },
6345
- { token: i1$3.DataService },
6373
+ { token: i1$2.GroupService },
6374
+ { token: i1$2.SubscriptionService },
6375
+ { token: i1$2.DataService },
6346
6376
  { token: i0.Injector },
6347
6377
  { token: i0.ChangeDetectorRef },
6348
6378
  { token: ConfirmDialogService }
@@ -6428,7 +6458,7 @@ var GroupsComponent = class GroupsComponent extends AppBaseComponent {
6428
6458
  },
6429
6459
  {
6430
6460
  kind: "directive",
6431
- type: i1$2.RouterLink,
6461
+ type: i9$1.RouterLink,
6432
6462
  selector: "[routerLink]",
6433
6463
  inputs: [
6434
6464
  "target",
@@ -6531,7 +6561,7 @@ var GroupsComponent = class GroupsComponent extends AppBaseComponent {
6531
6561
  },
6532
6562
  {
6533
6563
  kind: "directive",
6534
- type: i1$4.NgClass,
6564
+ type: i1$3.NgClass,
6535
6565
  selector: "[ngClass]",
6536
6566
  inputs: ["class", "ngClass"]
6537
6567
  },
@@ -6575,7 +6605,7 @@ var GroupsComponent = class GroupsComponent extends AppBaseComponent {
6575
6605
  },
6576
6606
  {
6577
6607
  kind: "pipe",
6578
- type: i1$4.SlicePipe,
6608
+ type: i1$3.SlicePipe,
6579
6609
  name: "slice"
6580
6610
  }
6581
6611
  ]
@@ -6604,9 +6634,9 @@ i0.ɵɵngDeclareClassMetadata({
6604
6634
  }],
6605
6635
  ctorParameters: () => [
6606
6636
  { type: i4$1.UntypedFormBuilder },
6607
- { type: i1$3.GroupService },
6608
- { type: i1$3.SubscriptionService },
6609
- { type: i1$3.DataService },
6637
+ { type: i1$2.GroupService },
6638
+ { type: i1$2.SubscriptionService },
6639
+ { type: i1$2.DataService },
6610
6640
  { type: i0.Injector },
6611
6641
  { type: i0.ChangeDetectorRef },
6612
6642
  { type: ConfirmDialogService }
@@ -6663,7 +6693,7 @@ var LandingPageFooterBComponent = class LandingPageFooterBComponent extends AppB
6663
6693
  ngImport: i0,
6664
6694
  type: LandingPageFooterBComponent,
6665
6695
  deps: [
6666
- { token: i1$3.AuthService },
6696
+ { token: i1$2.AuthService },
6667
6697
  { token: i0.ChangeDetectorRef },
6668
6698
  { token: i0.Injector }
6669
6699
  ],
@@ -6689,7 +6719,7 @@ var LandingPageFooterBComponent = class LandingPageFooterBComponent extends AppB
6689
6719
  },
6690
6720
  {
6691
6721
  kind: "directive",
6692
- type: i1$2.RouterLink,
6722
+ type: i9$1.RouterLink,
6693
6723
  selector: "[routerLink]",
6694
6724
  inputs: [
6695
6725
  "target",
@@ -6708,7 +6738,7 @@ var LandingPageFooterBComponent = class LandingPageFooterBComponent extends AppB
6708
6738
  },
6709
6739
  {
6710
6740
  kind: "pipe",
6711
- type: i1$4.DatePipe,
6741
+ type: i1$3.DatePipe,
6712
6742
  name: "date"
6713
6743
  }
6714
6744
  ]
@@ -6730,7 +6760,7 @@ i0.ɵɵngDeclareClassMetadata({
6730
6760
  }]
6731
6761
  }],
6732
6762
  ctorParameters: () => [
6733
- { type: i1$3.AuthService },
6763
+ { type: i1$2.AuthService },
6734
6764
  { type: i0.ChangeDetectorRef },
6735
6765
  { type: i0.Injector }
6736
6766
  ]
@@ -6930,7 +6960,7 @@ var NumberPickerComponent = class NumberPickerComponent {
6930
6960
  version: "22.2.0",
6931
6961
  ngImport: i0,
6932
6962
  type: NumberPickerComponent,
6933
- deps: [{ token: i1$3.NumberPickerService }],
6963
+ deps: [{ token: i1$2.NumberPickerService }],
6934
6964
  target: i0.ɵɵFactoryTarget.Component
6935
6965
  });
6936
6966
  }
@@ -7008,7 +7038,7 @@ var NumberPickerComponent = class NumberPickerComponent {
7008
7038
  },
7009
7039
  {
7010
7040
  kind: "directive",
7011
- type: i9$1.Tooltip,
7041
+ type: i10.Tooltip,
7012
7042
  selector: "[pTooltip]",
7013
7043
  inputs: [
7014
7044
  "tooltipPosition",
@@ -7052,7 +7082,7 @@ i0.ɵɵngDeclareClassMetadata({
7052
7082
  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"]
7053
7083
  }]
7054
7084
  }],
7055
- ctorParameters: () => [{ type: i1$3.NumberPickerService }],
7085
+ ctorParameters: () => [{ type: i1$2.NumberPickerService }],
7056
7086
  propDecorators: {
7057
7087
  min: [{ type: Input }],
7058
7088
  showTooltip: [{ type: Input }],
@@ -7113,7 +7143,7 @@ var OnlineIndicatorComponent = class OnlineIndicatorComponent {
7113
7143
  dependencies: [
7114
7144
  {
7115
7145
  kind: "directive",
7116
- type: i9$1.Tooltip,
7146
+ type: i10.Tooltip,
7117
7147
  selector: "[pTooltip]",
7118
7148
  inputs: [
7119
7149
  "tooltipPosition",
@@ -7146,7 +7176,7 @@ var OnlineIndicatorComponent = class OnlineIndicatorComponent {
7146
7176
  },
7147
7177
  {
7148
7178
  kind: "pipe",
7149
- type: i14.IsOnlinePipe,
7179
+ type: i15.IsOnlinePipe,
7150
7180
  name: "isOnline"
7151
7181
  }
7152
7182
  ]
@@ -7222,7 +7252,7 @@ var PasswordValidationComponent = class PasswordValidationComponent extends AppB
7222
7252
  type: PasswordValidationComponent,
7223
7253
  deps: [
7224
7254
  { token: i0.Injector },
7225
- { token: i1$5.NgbModal },
7255
+ { token: i1$4.NgbModal },
7226
7256
  { token: i0.ChangeDetectorRef }
7227
7257
  ],
7228
7258
  target: i0.ɵɵFactoryTarget.Component
@@ -7311,7 +7341,7 @@ i0.ɵɵngDeclareClassMetadata({
7311
7341
  }],
7312
7342
  ctorParameters: () => [
7313
7343
  { type: i0.Injector },
7314
- { type: i1$5.NgbModal },
7344
+ { type: i1$4.NgbModal },
7315
7345
  { type: i0.ChangeDetectorRef }
7316
7346
  ],
7317
7347
  propDecorators: {
@@ -7587,7 +7617,7 @@ var PrivacyAndTosComponent = class PrivacyAndTosComponent extends AppBaseCompone
7587
7617
  },
7588
7618
  {
7589
7619
  kind: "directive",
7590
- type: i1$2.RouterLink,
7620
+ type: i9$1.RouterLink,
7591
7621
  selector: "[routerLink]",
7592
7622
  inputs: [
7593
7623
  "target",
@@ -7606,12 +7636,12 @@ var PrivacyAndTosComponent = class PrivacyAndTosComponent extends AppBaseCompone
7606
7636
  },
7607
7637
  {
7608
7638
  kind: "directive",
7609
- type: i1$5.NgbNavContent,
7639
+ type: i1$4.NgbNavContent,
7610
7640
  selector: "ng-template[ngbNavContent]"
7611
7641
  },
7612
7642
  {
7613
7643
  kind: "directive",
7614
- type: i1$5.NgbNav,
7644
+ type: i1$4.NgbNav,
7615
7645
  selector: "[ngbNav]",
7616
7646
  inputs: [
7617
7647
  "activeId",
@@ -7631,7 +7661,7 @@ var PrivacyAndTosComponent = class PrivacyAndTosComponent extends AppBaseCompone
7631
7661
  },
7632
7662
  {
7633
7663
  kind: "directive",
7634
- type: i1$5.NgbNavItem,
7664
+ type: i1$4.NgbNavItem,
7635
7665
  selector: "[ngbNavItem]",
7636
7666
  inputs: [
7637
7667
  "destroyOnHide",
@@ -7644,22 +7674,22 @@ var PrivacyAndTosComponent = class PrivacyAndTosComponent extends AppBaseCompone
7644
7674
  },
7645
7675
  {
7646
7676
  kind: "directive",
7647
- type: i1$5.NgbNavItemRole,
7677
+ type: i1$4.NgbNavItemRole,
7648
7678
  selector: "[ngbNavItem]:not(ng-container)"
7649
7679
  },
7650
7680
  {
7651
7681
  kind: "directive",
7652
- type: i1$5.NgbNavLink,
7682
+ type: i1$4.NgbNavLink,
7653
7683
  selector: "a[ngbNavLink]"
7654
7684
  },
7655
7685
  {
7656
7686
  kind: "directive",
7657
- type: i1$5.NgbNavLinkBase,
7687
+ type: i1$4.NgbNavLinkBase,
7658
7688
  selector: "[ngbNavLink]"
7659
7689
  },
7660
7690
  {
7661
7691
  kind: "component",
7662
- type: i1$5.NgbNavOutlet,
7692
+ type: i1$4.NgbNavOutlet,
7663
7693
  selector: "[ngbNavOutlet]",
7664
7694
  inputs: ["paneRole", "ngbNavOutlet"]
7665
7695
  },
@@ -7676,7 +7706,7 @@ var PrivacyAndTosComponent = class PrivacyAndTosComponent extends AppBaseCompone
7676
7706
  },
7677
7707
  {
7678
7708
  kind: "pipe",
7679
- type: i1$4.DatePipe,
7709
+ type: i1$3.DatePipe,
7680
7710
  name: "date"
7681
7711
  }
7682
7712
  ]
@@ -7731,7 +7761,7 @@ var PrivacyPolicyComponent = class PrivacyPolicyComponent {
7731
7761
  version: "22.2.0",
7732
7762
  ngImport: i0,
7733
7763
  type: PrivacyPolicyComponent,
7734
- deps: [{ token: i2$3.AppConfigService }, { token: i1$2.Router }],
7764
+ deps: [{ token: i2$3.AppConfigService }, { token: i9$1.Router }],
7735
7765
  target: i0.ɵɵFactoryTarget.Component
7736
7766
  });
7737
7767
  }
@@ -7761,7 +7791,7 @@ i0.ɵɵngDeclareClassMetadata({
7761
7791
  standalone: false
7762
7792
  }]
7763
7793
  }],
7764
- ctorParameters: () => [{ type: i2$3.AppConfigService }, { type: i1$2.Router }]
7794
+ ctorParameters: () => [{ type: i2$3.AppConfigService }, { type: i9$1.Router }]
7765
7795
  });
7766
7796
  var PwTabsComponent = class PwTabsComponent extends AppBaseComponent {
7767
7797
  constructor(injector, cdr) {
@@ -7843,7 +7873,7 @@ var PwTabsComponent = class PwTabsComponent extends AppBaseComponent {
7843
7873
  dependencies: [
7844
7874
  {
7845
7875
  kind: "directive",
7846
- type: i1$2.RouterOutlet,
7876
+ type: i9$1.RouterOutlet,
7847
7877
  selector: "router-outlet",
7848
7878
  inputs: ["name", "routerOutletData"],
7849
7879
  outputs: [
@@ -8154,12 +8184,12 @@ var CompletionBarComponent = class CompletionBarComponent {
8154
8184
  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"],
8155
8185
  dependencies: [{
8156
8186
  kind: "directive",
8157
- type: i1$4.NgClass,
8187
+ type: i1$3.NgClass,
8158
8188
  selector: "[ngClass]",
8159
8189
  inputs: ["class", "ngClass"]
8160
8190
  }, {
8161
8191
  kind: "directive",
8162
- type: i1$5.NgbTooltip,
8192
+ type: i1$4.NgbTooltip,
8163
8193
  selector: "[ngbTooltip]",
8164
8194
  inputs: [
8165
8195
  "animation",
@@ -8432,7 +8462,7 @@ var TermsConditionsComponent = class TermsConditionsComponent {
8432
8462
  version: "22.2.0",
8433
8463
  ngImport: i0,
8434
8464
  type: TermsConditionsComponent,
8435
- deps: [{ token: i2$3.AppConfigService }, { token: i1$2.Router }],
8465
+ deps: [{ token: i2$3.AppConfigService }, { token: i9$1.Router }],
8436
8466
  target: i0.ɵɵFactoryTarget.Component
8437
8467
  });
8438
8468
  }
@@ -8462,7 +8492,7 @@ i0.ɵɵngDeclareClassMetadata({
8462
8492
  standalone: false
8463
8493
  }]
8464
8494
  }],
8465
- ctorParameters: () => [{ type: i2$3.AppConfigService }, { type: i1$2.Router }]
8495
+ ctorParameters: () => [{ type: i2$3.AppConfigService }, { type: i9$1.Router }]
8466
8496
  });
8467
8497
  const allModules = [
8468
8498
  NgbTooltipModule,
@@ -8767,7 +8797,7 @@ var CollapsibleSidebarSuperAdminGuard = class CollapsibleSidebarSuperAdminGuard
8767
8797
  version: "22.2.0",
8768
8798
  ngImport: i0,
8769
8799
  type: CollapsibleSidebarSuperAdminGuard,
8770
- deps: [{ token: i1$3.UserService }, { token: i1$3.PermissionService }],
8800
+ deps: [{ token: i1$2.UserService }, { token: i1$2.PermissionService }],
8771
8801
  target: i0.ɵɵFactoryTarget.Injectable
8772
8802
  });
8773
8803
  }
@@ -8790,7 +8820,7 @@ i0.ɵɵngDeclareClassMetadata({
8790
8820
  type: Injectable,
8791
8821
  args: [{ providedIn: "root" }]
8792
8822
  }],
8793
- ctorParameters: () => [{ type: i1$3.UserService }, { type: i1$3.PermissionService }]
8823
+ ctorParameters: () => [{ type: i1$2.UserService }, { type: i1$2.PermissionService }]
8794
8824
  });
8795
8825
  var UiLayoutService = class UiLayoutService {
8796
8826
  constructor(api) {
@@ -8807,7 +8837,7 @@ var UiLayoutService = class UiLayoutService {
8807
8837
  version: "22.2.0",
8808
8838
  ngImport: i0,
8809
8839
  type: UiLayoutService,
8810
- deps: [{ token: i1$3.MainApiHttpService }],
8840
+ deps: [{ token: i1$2.MainApiHttpService }],
8811
8841
  target: i0.ɵɵFactoryTarget.Injectable
8812
8842
  });
8813
8843
  }
@@ -8830,7 +8860,7 @@ i0.ɵɵngDeclareClassMetadata({
8830
8860
  type: Injectable,
8831
8861
  args: [{ providedIn: "root" }]
8832
8862
  }],
8833
- ctorParameters: () => [{ type: i1$3.MainApiHttpService }]
8863
+ ctorParameters: () => [{ type: i1$2.MainApiHttpService }]
8834
8864
  });
8835
8865
  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 };
8836
8866