@posiwise/shared-components 0.0.199 → 0.0.200

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.
@@ -14,7 +14,7 @@ import { DirectivesModule } from '@posiwise/directives';
14
14
  import { PipesModule } from '@posiwise/pipes';
15
15
  import * as i4$1 from '@posiwise/utils';
16
16
  import { ValidateForm, ProfileImageCropperModule, ResourceHeaderModule, FieldErrorDisplayModule } from '@posiwise/utils';
17
- import * as i1$4 from 'ngx-daterangepicker-material';
17
+ import * as i1$2 from 'ngx-daterangepicker-material';
18
18
  import { DaterangepickerDirective, NgxDaterangepickerMd } from 'ngx-daterangepicker-material';
19
19
  import { ImageCropperModule } from 'ngx-image-cropper';
20
20
  import * as i6 from 'ngx-ui-switch';
@@ -29,7 +29,7 @@ import * as i6$1 from 'primeng/select';
29
29
  import { SelectModule } from 'primeng/select';
30
30
  import * as i7 from 'primeng/table';
31
31
  import { TableModule } from 'primeng/table';
32
- import * as i2$3 from 'primeng/tabs';
32
+ import * as i2$4 from 'primeng/tabs';
33
33
  import { TabsModule } from 'primeng/tabs';
34
34
  import * as i3$1 from 'primeng/tooltip';
35
35
  import { TooltipModule } from 'primeng/tooltip';
@@ -42,14 +42,14 @@ import * as i2$1 from '@posiwise/app-config-service';
42
42
  import { Subject, BehaviorSubject, of } from 'rxjs';
43
43
  import { take, takeUntil, map, filter, debounceTime, distinctUntilChanged, switchMap, catchError } from 'rxjs/operators';
44
44
  import * as i3 from '@ngrx/store';
45
- import * as i1$1 from '@angular/platform-browser';
46
45
  import { HelperService } from '@posiwise/helper-service';
47
- import * as i1$2 from '@jsverse/transloco';
46
+ import * as i5$1 from '@jsverse/transloco';
48
47
  import { TAG_ENTITY, ADMIN_ROUTERS } from '@posiwise/common-utilities';
49
48
  import * as i8$1 from 'primeng/api';
50
49
  import { __decorate, __metadata } from 'tslib';
51
50
  import { StatusCodes } from 'http-status-codes';
52
- import * as i1$3 from '@posiwise/admin-module-utils';
51
+ import * as i2$3 from '@angular/platform-browser';
52
+ import * as i1$1 from '@posiwise/admin-module-utils';
53
53
  import { DragDropModule } from '@angular/cdk/drag-drop';
54
54
 
55
55
  class AuthenticatorComponent extends AppBaseComponent {
@@ -1421,6 +1421,20 @@ const SUBSCRIPTION_SCOPED_SEGMENTS = new Set([
1421
1421
  ]);
1422
1422
  /** A bare app path wrapped in a single-backtick code span. */
1423
1423
  const CODE_SPANNED_PATH_RE = /`(\/[a-zA-Z][a-zA-Z0-9\-_/]*)`/g;
1424
+ /**
1425
+ * Drop any trailing slashes from `baseUrl` so joining never yields `host//path`.
1426
+ *
1427
+ * Deliberately NOT a regex: the obvious `/\/+$/` has no left anchor, so the
1428
+ * engine retries at every offset and backtracks over the run of slashes — O(n^2)
1429
+ * on a pathological host string. Walking back from the end is linear.
1430
+ */
1431
+ function trimTrailingSlashes(value) {
1432
+ let end = value.length;
1433
+ while (end > 0 && value[end - 1] === '/') {
1434
+ end -= 1;
1435
+ }
1436
+ return value.slice(0, end);
1437
+ }
1424
1438
  /**
1425
1439
  * Join `baseUrl` to an app-relative path. Anything that is not an app path (an
1426
1440
  * absolute URL, a mailto:, a fragment) is returned untouched, and an empty
@@ -1429,7 +1443,7 @@ const CODE_SPANNED_PATH_RE = /`(\/[a-zA-Z][a-zA-Z0-9\-_/]*)`/g;
1429
1443
  function absolutiseAppPath(path, baseUrl = '') {
1430
1444
  if (!baseUrl || !APP_PATH_RE.test(path))
1431
1445
  return path;
1432
- return `${baseUrl.replace(/\/+$/, '')}${path}`;
1446
+ return `${trimTrailingSlashes(baseUrl)}${path}`;
1433
1447
  }
1434
1448
  /**
1435
1449
  * Splice the caller's subscription slug into a path the router scopes under it.
@@ -1442,9 +1456,14 @@ function scopeAppPath(path, subscriptionSlug = '') {
1442
1456
  const first = path.split('/')[1];
1443
1457
  return SUBSCRIPTION_SCOPED_SEGMENTS.has(first) ? `/${subscriptionSlug}${path}` : path;
1444
1458
  }
1445
- /** Full resolution: scope under the subscription, then make absolute. */
1446
- function resolveAppPath(path, baseUrl = '', subscriptionSlug = '') {
1447
- return absolutiseAppPath(scopeAppPath(path, subscriptionSlug), baseUrl);
1459
+ /**
1460
+ * Full resolution: correct against the index, scope under the subscription,
1461
+ * then make absolute. Correction runs FIRST — the index holds unscoped paths,
1462
+ * so matching after scoping would never hit.
1463
+ */
1464
+ function resolveAppPath(path, baseUrl = '', subscriptionSlug = '', known = []) {
1465
+ const corrected = correctKnownPath(path, known);
1466
+ return absolutiseAppPath(scopeAppPath(corrected, subscriptionSlug), baseUrl);
1448
1467
  }
1449
1468
  /**
1450
1469
  * Unwrap a path the model emitted as inline code — `` `/settings/communication` ``.
@@ -1458,6 +1477,27 @@ function resolveAppPath(path, baseUrl = '', subscriptionSlug = '') {
1458
1477
  function unwrapCodeSpannedPaths(raw) {
1459
1478
  return raw.replace(CODE_SPANNED_PATH_RE, '$1');
1460
1479
  }
1480
+ /**
1481
+ * Correct a path the model got *nearly* right, using the navigation index.
1482
+ *
1483
+ * The summariser writes prose and sometimes authors a plausible-but-wrong URL:
1484
+ * `/subscriptions` for a page that actually lives at `/account/subscriptions`
1485
+ * (PROD, 2026-09-24 — a 404 presented to the user as a working link).
1486
+ *
1487
+ * The correction is deliberately narrow. It fires only when EXACTLY ONE known
1488
+ * path ends with the candidate, so `/subscriptions` -> `/account/subscriptions`
1489
+ * resolves while anything ambiguous is left untouched. An unmatched path is
1490
+ * also left untouched rather than suppressed: the index holds MENU entries, so
1491
+ * a legitimate deep link (`/faq/can-i-stop-...`) is absent from it, and
1492
+ * treating absence as invalid would strip links that work.
1493
+ */
1494
+ function correctKnownPath(path, known = []) {
1495
+ if (!known.length || !APP_PATH_RE.test(path) || known.includes(path)) {
1496
+ return path;
1497
+ }
1498
+ const matches = known.filter(candidate => candidate.endsWith(path));
1499
+ return matches.length === 1 ? matches[0] : path;
1500
+ }
1461
1501
 
1462
1502
  /**
1463
1503
  * Minimal markdown-to-HTML renderer for Brain chat assistant bubbles.
@@ -1521,24 +1561,29 @@ function sanitizeMarkdownHref(url) {
1521
1561
  * start of the string, and that begin with /letter to avoid matching lone
1522
1562
  * slashes, protocol-relative URLs (//), or numeric fractions (1/2).
1523
1563
  */
1524
- function substituteBarePaths(segment, baseUrl, subSlug) {
1525
- return segment.replace(/(^|[\s(,;:])\/([a-zA-Z][a-zA-Z0-9\-_/]*)/g, (_, pre, rest) => `${pre}[/${rest}](${resolveAppPath(`/${rest}`, baseUrl, subSlug)})`);
1564
+ function substituteBarePaths(segment, baseUrl, subSlug, known) {
1565
+ return segment.replace(/(^|[\s(,;:])\/([a-zA-Z][a-zA-Z0-9\-_/]*)/g, (_, pre, rest) => {
1566
+ // Hoisted out of the template literal: nesting one inside another is
1567
+ // unreadable, and the path is needed twice anyway (label + href).
1568
+ const path = `/${rest}`;
1569
+ return `${pre}[${path}](${resolveAppPath(path, baseUrl, subSlug, known)})`;
1570
+ });
1526
1571
  }
1527
1572
  /**
1528
1573
  * Auto-link bare app-relative paths in raw markdown text while leaving paths
1529
1574
  * that are already inside a markdown link's URL segment ([text](url)) untouched.
1530
1575
  */
1531
- function linkifyBareAppPaths(raw, baseUrl = '', subSlug = '') {
1576
+ function linkifyBareAppPaths(raw, baseUrl = '', subSlug = '', known = []) {
1532
1577
  const src = unwrapCodeSpannedPaths(raw);
1533
1578
  let result = '';
1534
1579
  let lastIndex = 0;
1535
1580
  for (const match of src.matchAll(LINK_PATTERN)) {
1536
- result += substituteBarePaths(src.slice(lastIndex, match.index), baseUrl, subSlug);
1581
+ result += substituteBarePaths(src.slice(lastIndex, match.index), baseUrl, subSlug, known);
1537
1582
  // An href the model already wrote as a markdown link still needs the host.
1538
- result += `[${match[1]}](${resolveAppPath(match[2], baseUrl, subSlug)})`;
1583
+ result += `[${match[1]}](${resolveAppPath(match[2], baseUrl, subSlug, known)})`;
1539
1584
  lastIndex = (match.index ?? 0) + match[0].length;
1540
1585
  }
1541
- result += substituteBarePaths(src.slice(lastIndex), baseUrl, subSlug);
1586
+ result += substituteBarePaths(src.slice(lastIndex), baseUrl, subSlug, known);
1542
1587
  return result;
1543
1588
  }
1544
1589
  /**
@@ -1553,8 +1598,8 @@ function linkifyBareAppPaths(raw, baseUrl = '', subSlug = '') {
1553
1598
  * \n → <br>
1554
1599
  * /path → <a href="/path">/path</a> (bare app-relative paths)
1555
1600
  */
1556
- function renderMarkdown(raw, baseUrl = '', subSlug = '') {
1557
- return renderMarkdownCore(linkifyBareAppPaths(raw, baseUrl, subSlug));
1601
+ function renderMarkdown(raw, baseUrl = '', subSlug = '', known = []) {
1602
+ return renderMarkdownCore(linkifyBareAppPaths(raw, baseUrl, subSlug, known));
1558
1603
  }
1559
1604
  function tryLink(raw, i) {
1560
1605
  if (raw[i] !== '[')
@@ -1630,11 +1675,20 @@ function renderMarkdownCore(raw) {
1630
1675
 
1631
1676
  /**
1632
1677
  * Converts a Brain assistant message string (containing a safe subset of
1633
- * Markdown) into a `SafeHtml` value suitable for `[innerHTML]` binding.
1678
+ * Markdown) into an HTML string suitable for `[innerHTML]` binding.
1679
+ *
1680
+ * Deliberately returns a plain `string`, NOT a `SafeHtml`: Angular sanitizes any
1681
+ * string bound to `[innerHTML]`, so the output passes through DomSanitizer on
1682
+ * the way to the DOM. `renderMarkdown` already HTML-escapes every user-sourced
1683
+ * fragment and allow-lists hrefs, which makes this defence in depth rather than
1684
+ * a substitute — two independent passes, neither trusting the other.
1634
1685
  *
1635
- * All user-sourced text is HTML-escaped by `renderMarkdown` before reaching
1636
- * DomSanitizer, so `bypassSecurityTrustHtml` is safe here — we are trusting
1637
- * our own sanitized output, not arbitrary user input.
1686
+ * Nothing is lost by it. The renderer only emits `<a href target rel>`,
1687
+ * `<strong>`, `<em>` and `<br>`; Angular's own allow-lists carry `href`
1688
+ * (URI_ATTRS) and `rel`/`target` (HTML_ATTRS), so sanitized output is
1689
+ * byte-identical to the rendered input. An earlier revision reached for
1690
+ * `bypassSecurityTrustHtml` here, which bought nothing and disabled the
1691
+ * platform's last line of defence if the renderer ever regressed.
1638
1692
  *
1639
1693
  * Applied only to assistant bubbles; user bubbles keep plain-text rendering.
1640
1694
  *
@@ -1646,8 +1700,8 @@ function renderMarkdownCore(raw) {
1646
1700
  * config resolves at app boot, long before a chat bubble renders.
1647
1701
  */
1648
1702
  class SafeMarkdownPipe {
1649
- constructor(sanitizer, appConfigService) {
1650
- this.sanitizer = sanitizer;
1703
+ constructor(navigationIndex, appConfigService) {
1704
+ this.navigationIndex = navigationIndex;
1651
1705
  this.baseUrl = '';
1652
1706
  this.configSub = appConfigService.appConfig$.subscribe(config => {
1653
1707
  this.baseUrl = config?.links?.frontend_link ?? '';
@@ -1657,7 +1711,19 @@ class SafeMarkdownPipe {
1657
1711
  this.configSub.unsubscribe();
1658
1712
  }
1659
1713
  transform(text) {
1660
- return this.sanitizer.bypassSecurityTrustHtml(renderMarkdown(text ?? '', this.baseUrl, this.subscriptionSlug()));
1714
+ return renderMarkdown(text ?? '', this.baseUrl, this.subscriptionSlug(), this.knownPaths());
1715
+ }
1716
+ /**
1717
+ * Every page the palette can reach, used to correct a path the model got
1718
+ * nearly right. An unknown path is left alone, never suppressed.
1719
+ */
1720
+ knownPaths() {
1721
+ try {
1722
+ return this.navigationIndex.entries().map(entry => entry.path);
1723
+ }
1724
+ catch {
1725
+ return [];
1726
+ }
1661
1727
  }
1662
1728
  /**
1663
1729
  * Slug the router scopes dashboard pages under (`:slug/faq/:id`). Read per
@@ -1666,13 +1732,13 @@ class SafeMarkdownPipe {
1666
1732
  subscriptionSlug() {
1667
1733
  return PermissionService.selectedSubscription?.slug ?? '';
1668
1734
  }
1669
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: SafeMarkdownPipe, deps: [{ token: i1$1.DomSanitizer }, { token: i2$1.AppConfigService }], target: i0.ɵɵFactoryTarget.Pipe }); }
1735
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: SafeMarkdownPipe, deps: [{ token: i1.NavigationIndexService }, { token: i2$1.AppConfigService }], target: i0.ɵɵFactoryTarget.Pipe }); }
1670
1736
  static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.19", ngImport: i0, type: SafeMarkdownPipe, isStandalone: true, name: "safeMarkdown" }); }
1671
1737
  }
1672
1738
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: SafeMarkdownPipe, decorators: [{
1673
1739
  type: Pipe,
1674
1740
  args: [{ name: 'safeMarkdown' }]
1675
- }], ctorParameters: () => [{ type: i1$1.DomSanitizer }, { type: i2$1.AppConfigService }] });
1741
+ }], ctorParameters: () => [{ type: i1.NavigationIndexService }, { type: i2$1.AppConfigService }] });
1676
1742
 
1677
1743
  // Brain chat panel — posts to brain-api's MCP orchestrator; thread +
1678
1744
  // conversation_id persist per-user in localStorage (#4167).
@@ -2420,7 +2486,7 @@ class CollapsibleSidebarComponent {
2420
2486
  this.sidebarService.toggleSidebar();
2421
2487
  }
2422
2488
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: CollapsibleSidebarComponent, deps: [{ token: CollapsibleSidebarService }, { token: i0.Injector }, { token: i0.ChangeDetectorRef }, { token: DOCUMENT }, { token: i2$1.AppConfigService, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
2423
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: CollapsibleSidebarComponent, isStandalone: false, selector: "pw-collapsible-sidebar", inputs: { embedInLayout: ["embedInLayout", "embedInLayout", booleanAttribute] }, viewQueries: [{ propertyName: "contentContainer", first: true, predicate: ["contentContainer"], descendants: true, read: ViewContainerRef }], hostDirectives: [{ directive: CollapsibleSidebarKeyboardShortcutDirective }], ngImport: i0, template: "<div\n class=\"pw-collapsible-sidebar-host\"\n [class.pw-collapsible-sidebar-host--embedded]=\"embedInLayout\"\n [class.pw-collapsible-sidebar-host--transition-ready]=\"transitionReady\"\n>\n @if (isExpanded && !embedInLayout) {\n <button\n type=\"button\"\n class=\"pw-collapsible-sidebar-backdrop\"\n aria-label=\"Close side panel\"\n (click)=\"closeSidebar()\"\n ></button>\n }\n\n <aside\n class=\"pw-collapsible-sidebar\"\n [class.expanded]=\"isExpanded\"\n [attr.aria-hidden]=\"!isExpanded\"\n >\n <div class=\"sidebar-header\">\n <div class=\"sidebar-header__lead\">\n <div class=\"sidebar-title-group\">\n <h2 class=\"sidebar-title\">{{ currentContent?.title ?? 'Details' }}</h2>\n @if (currentContent?.beta) {\n <span class=\"sidebar-badge\">{{ 'BrainChat.Badge.Beta' | transloco }}</span>\n }\n </div>\n @if (currentContent?.status) {\n <span class=\"sidebar-status\" [attr.title]=\"currentContent?.status\">\n <span class=\"sidebar-status__dot\" aria-hidden=\"true\"></span>\n <span class=\"sidebar-status__text\">{{ currentContent?.status }}</span>\n </span>\n }\n </div>\n <div class=\"sidebar-header__actions\">\n @for (action of currentContent?.headerActions ?? []; track action.id) {\n <button\n type=\"button\"\n class=\"sidebar-action\"\n [attr.aria-label]=\"action.ariaLabel\"\n [attr.title]=\"action.ariaLabel\"\n (click)=\"invokeHeaderAction(action)\"\n >\n <i class=\"{{ action.icon }}\" aria-hidden=\"true\"></i>\n </button>\n }\n <button\n type=\"button\"\n class=\"close-btn\"\n aria-label=\"Close sidebar\"\n (click)=\"closeSidebar()\"\n >\n <i class=\"pi pi-times\" aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n\n <div class=\"sidebar-content\">\n <div #contentContainer></div>\n </div>\n </aside>\n</div>\n", styles: ["@charset \"UTF-8\";.pw-collapsible-sidebar-host{position:relative}.pw-collapsible-sidebar-backdrop{position:fixed;inset:0;z-index:1040;margin:0;padding:0;border:none;cursor:default;appearance:none;background:#1f1e240f;animation:pw-drawer-backdrop-in .2s ease-out both}@keyframes pw-drawer-backdrop-in{0%{opacity:0}to{opacity:1}}.pw-collapsible-sidebar-host:not(.pw-collapsible-sidebar-host--transition-ready) .pw-collapsible-sidebar{transition:none!important}.pw-collapsible-sidebar{--pw-drawer-width: min(480px, max(300px, 40vw));--pw-drawer-radius: 4px;--pw-drawer-bg: var(--dashboard_bg, #fff);--pw-drawer-shade: #20385e;--pw-drawer-surface: color-mix(in srgb, var(--pw-drawer-bg) 96.6%, var(--pw-drawer-shade));--pw-drawer-hover: color-mix(in srgb, var(--pw-drawer-bg) 92.3%, var(--pw-drawer-shade));--pw-drawer-line: color-mix(in srgb, var(--pw-drawer-bg) 86.8%, var(--pw-drawer-shade));--pw-drawer-line-strong: color-mix(in srgb, var(--pw-drawer-bg) 84%, var(--pw-drawer-shade));--pw-drawer-ink: var(--titles, #1a1d21);--pw-drawer-ink-3: color-mix(in srgb, var(--pw-drawer-ink) 55%, var(--pw-drawer-bg));position:fixed;top:var(--pw-collapsible-sidebar-top, 60px);right:0;bottom:0;width:var(--pw-drawer-width);max-width:100%;height:calc(100dvh - var(--pw-collapsible-sidebar-top, 60px));background-color:var(--pw-drawer-bg);border-left:1px solid var(--pw-drawer-line-strong, #dbdbdb);border-top-left-radius:var(--pw-drawer-radius);border-bottom-left-radius:var(--pw-drawer-radius);box-shadow:none;display:flex;flex-direction:column;z-index:1050;overflow:hidden;pointer-events:none;transform:translate(100%);transition:transform .3s cubic-bezier(.4,0,.2,1);will-change:transform}.pw-collapsible-sidebar.expanded{transform:translate(0);pointer-events:auto;transition:transform .55s cubic-bezier(.16,1,.3,1)}@media(max-width:768px){.pw-collapsible-sidebar{--pw-drawer-width: 100%;border-left:none;border-top-left-radius:0;border-bottom-left-radius:0}}.pw-collapsible-sidebar-host.pw-collapsible-sidebar-host--embedded{flex:0 0 0;width:0;min-width:0;height:0;min-height:0;overflow:visible;pointer-events:none;position:relative}.pw-collapsible-sidebar-host.pw-collapsible-sidebar-host--embedded .pw-collapsible-sidebar{--pw-drawer-width: max(300px, min(480px, 32vw));position:fixed;top:var(--pw-collapsible-sidebar-top, 85px);right:0;left:auto;bottom:auto;height:calc(100dvh - var(--pw-collapsible-sidebar-top, 85px));max-height:calc(100dvh - var(--pw-collapsible-sidebar-top, 85px));width:0;min-width:0;max-width:min(480px,90vw);transform:none;transition:width .3s cubic-bezier(.4,0,.2,1);z-index:1036;pointer-events:none;will-change:width;border-left:2px solid rgba(0,0,0,.14);border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--pw-drawer-radius);border-bottom-left-radius:var(--pw-drawer-radius);box-shadow:inset 1px 0 #ffffff8c,-10px 0 40px #0000001f;display:flex;flex-direction:column}.pw-collapsible-sidebar-host.pw-collapsible-sidebar-host--embedded .pw-collapsible-sidebar:not(.expanded){border-left:none;box-shadow:none}.pw-collapsible-sidebar-host.pw-collapsible-sidebar-host--embedded .pw-collapsible-sidebar .sidebar-header{flex-shrink:0;z-index:2}.pw-collapsible-sidebar-host.pw-collapsible-sidebar-host--embedded .pw-collapsible-sidebar .sidebar-content{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:var(--pw-drawer-surface, #f6f8fa);border-top:1px solid rgba(0,0,0,.08)}.pw-collapsible-sidebar-host.pw-collapsible-sidebar-host--embedded .pw-collapsible-sidebar.expanded{width:var(--pw-drawer-width);min-width:var(--pw-drawer-width);pointer-events:auto;transition:width .55s cubic-bezier(.16,1,.3,1)}@media(max-width:768px){.pw-collapsible-sidebar-host.pw-collapsible-sidebar-host--embedded .pw-collapsible-sidebar{top:var(--pw-collapsible-sidebar-top, 85px);height:calc(100dvh - var(--pw-collapsible-sidebar-top, 85px));max-height:calc(100dvh - var(--pw-collapsible-sidebar-top, 85px));max-width:100%;border-top-left-radius:0;border-bottom-left-radius:0;transform:translate(100%);transition:transform .3s cubic-bezier(.4,0,.2,1)}.pw-collapsible-sidebar-host.pw-collapsible-sidebar-host--embedded .pw-collapsible-sidebar.expanded{width:100%!important;min-width:100%!important;transform:translate(0);transition:transform .55s cubic-bezier(.16,1,.3,1)}}\n", ".pw-collapsible-sidebar .sidebar-header{--pw-drawer-header-bg: var(--sidebar_bg, #00303f);--pw-drawer-header-ink: var(--sidebar_text, #fff);display:flex;align-items:center;justify-content:space-between;gap:10px;box-sizing:border-box;height:44px;padding:0 8px 0 16px;flex-shrink:0;position:relative;background:var(--pw-drawer-header-bg);border-bottom:1px solid color-mix(in srgb,var(--pw-drawer-header-ink) 16%,var(--pw-drawer-header-bg))}.pw-collapsible-sidebar .sidebar-header .sidebar-title{display:block;margin:0;padding:0;font-size:15px;line-height:1.3;font-weight:600;letter-spacing:-.01em;color:var(--pw-drawer-header-ink)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:0 1 auto;min-width:0;align-self:center}.pw-collapsible-sidebar .sidebar-header h2.sidebar-title{margin:0!important}.pw-collapsible-sidebar .sidebar-header .sidebar-title-group{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;min-width:0}.pw-collapsible-sidebar .sidebar-header .sidebar-badge{flex:none;display:inline-flex;align-items:center;height:16px;padding:0 6px;border-radius:4px;font-size:10px;font-weight:600;line-height:1;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;color:var(--pw-drawer-header-ink);background:color-mix(in srgb,var(--pw-drawer-header-ink) 22%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pw-drawer-header-ink) 70%,transparent)}.pw-collapsible-sidebar .sidebar-header .sidebar-header__lead{display:flex;align-items:center;gap:14px;flex:1 1 auto;min-width:0}.pw-collapsible-sidebar .sidebar-header .sidebar-status{display:inline-flex;align-items:center;gap:6px;flex:0 100 auto;min-width:0;font-size:11px;line-height:1.3;letter-spacing:.02em;color:var(--pw-drawer-header-ink)}.pw-collapsible-sidebar .sidebar-header .sidebar-status__dot{flex:none;width:7px;height:7px;border-radius:50%;background:#34d399;box-shadow:0 0 0 2px color-mix(in srgb,var(--pw-drawer-header-ink) 35%,transparent)}.pw-collapsible-sidebar .sidebar-header .sidebar-status__text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}@media(max-width:480px){.pw-collapsible-sidebar .sidebar-header .sidebar-status__text{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}}.pw-collapsible-sidebar .sidebar-header .sidebar-header__actions{display:flex;align-items:center;gap:4px;flex:none}.pw-collapsible-sidebar .sidebar-header .sidebar-action,.pw-collapsible-sidebar .sidebar-header .close-btn{background:transparent;border:none;cursor:pointer;width:28px;height:28px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:color-mix(in srgb,var(--pw-drawer-header-ink) 85%,transparent);font-size:13px;border-radius:8px;flex-shrink:0;transition:background-color .16s ease,color .16s ease}.pw-collapsible-sidebar .sidebar-header .sidebar-action:hover,.pw-collapsible-sidebar .sidebar-header .close-btn:hover{background-color:color-mix(in srgb,var(--pw-drawer-header-ink) 16%,transparent);color:var(--pw-drawer-header-ink)}.pw-collapsible-sidebar .sidebar-header .sidebar-action:active,.pw-collapsible-sidebar .sidebar-header .close-btn:active{background-color:color-mix(in srgb,var(--pw-drawer-header-ink) 26%,transparent)}.pw-collapsible-sidebar .sidebar-header .sidebar-action:focus-visible,.pw-collapsible-sidebar .sidebar-header .close-btn:focus-visible{outline:2px solid var(--pw-drawer-header-ink);outline-offset:2px}.pw-collapsible-sidebar .sidebar-header .close-btn{width:30px;height:30px;font-size:14px}.pw-collapsible-sidebar .sidebar-header .close-btn i{line-height:1;display:block}\n", ".pw-collapsible-sidebar .sidebar-content{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:16px 16px 24px;background:var(--pw-drawer-bg, #fff);overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.pw-collapsible-sidebar .sidebar-content::-webkit-scrollbar{width:8px}.pw-collapsible-sidebar .sidebar-content::-webkit-scrollbar-track{background:transparent}.pw-collapsible-sidebar .sidebar-content::-webkit-scrollbar-thumb{background-color:#0003;border-radius:4px}.pw-collapsible-sidebar .sidebar-content::-webkit-scrollbar-thumb:hover{background-color:#00000059}\n"], dependencies: [{ kind: "pipe", type: i1$2.TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2489
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: CollapsibleSidebarComponent, isStandalone: false, selector: "pw-collapsible-sidebar", inputs: { embedInLayout: ["embedInLayout", "embedInLayout", booleanAttribute] }, viewQueries: [{ propertyName: "contentContainer", first: true, predicate: ["contentContainer"], descendants: true, read: ViewContainerRef }], hostDirectives: [{ directive: CollapsibleSidebarKeyboardShortcutDirective }], ngImport: i0, template: "<div\n class=\"pw-collapsible-sidebar-host\"\n [class.pw-collapsible-sidebar-host--embedded]=\"embedInLayout\"\n [class.pw-collapsible-sidebar-host--transition-ready]=\"transitionReady\"\n>\n @if (isExpanded && !embedInLayout) {\n <button\n type=\"button\"\n class=\"pw-collapsible-sidebar-backdrop\"\n aria-label=\"Close side panel\"\n (click)=\"closeSidebar()\"\n ></button>\n }\n\n <aside\n class=\"pw-collapsible-sidebar\"\n [class.expanded]=\"isExpanded\"\n [attr.aria-hidden]=\"!isExpanded\"\n >\n <div class=\"sidebar-header\">\n <div class=\"sidebar-header__lead\">\n <div class=\"sidebar-title-group\">\n <h2 class=\"sidebar-title\">{{ currentContent?.title ?? 'Details' }}</h2>\n @if (currentContent?.beta) {\n <span class=\"sidebar-badge\">{{ 'BrainChat.Badge.Beta' | transloco }}</span>\n }\n </div>\n @if (currentContent?.status) {\n <span class=\"sidebar-status\" [attr.title]=\"currentContent?.status\">\n <span class=\"sidebar-status__dot\" aria-hidden=\"true\"></span>\n <span class=\"sidebar-status__text\">{{ currentContent?.status }}</span>\n </span>\n }\n </div>\n <div class=\"sidebar-header__actions\">\n @for (action of currentContent?.headerActions ?? []; track action.id) {\n <button\n type=\"button\"\n class=\"sidebar-action\"\n [attr.aria-label]=\"action.ariaLabel\"\n [attr.title]=\"action.ariaLabel\"\n (click)=\"invokeHeaderAction(action)\"\n >\n <i class=\"{{ action.icon }}\" aria-hidden=\"true\"></i>\n </button>\n }\n <button\n type=\"button\"\n class=\"close-btn\"\n aria-label=\"Close sidebar\"\n (click)=\"closeSidebar()\"\n >\n <i class=\"pi pi-times\" aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n\n <div class=\"sidebar-content\">\n <div #contentContainer></div>\n </div>\n </aside>\n</div>\n", styles: ["@charset \"UTF-8\";.pw-collapsible-sidebar-host{position:relative}.pw-collapsible-sidebar-backdrop{position:fixed;inset:0;z-index:1040;margin:0;padding:0;border:none;cursor:default;appearance:none;background:#1f1e240f;animation:pw-drawer-backdrop-in .2s ease-out both}@keyframes pw-drawer-backdrop-in{0%{opacity:0}to{opacity:1}}.pw-collapsible-sidebar-host:not(.pw-collapsible-sidebar-host--transition-ready) .pw-collapsible-sidebar{transition:none!important}.pw-collapsible-sidebar{--pw-drawer-width: min(480px, max(300px, 40vw));--pw-drawer-radius: 4px;--pw-drawer-bg: var(--dashboard_bg, #fff);--pw-drawer-shade: #20385e;--pw-drawer-surface: color-mix(in srgb, var(--pw-drawer-bg) 96.6%, var(--pw-drawer-shade));--pw-drawer-hover: color-mix(in srgb, var(--pw-drawer-bg) 92.3%, var(--pw-drawer-shade));--pw-drawer-line: color-mix(in srgb, var(--pw-drawer-bg) 86.8%, var(--pw-drawer-shade));--pw-drawer-line-strong: color-mix(in srgb, var(--pw-drawer-bg) 84%, var(--pw-drawer-shade));--pw-drawer-ink: var(--titles, #1a1d21);--pw-drawer-ink-3: color-mix(in srgb, var(--pw-drawer-ink) 55%, var(--pw-drawer-bg));position:fixed;top:var(--pw-collapsible-sidebar-top, 60px);right:0;bottom:0;width:var(--pw-drawer-width);max-width:100%;height:calc(100dvh - var(--pw-collapsible-sidebar-top, 60px));background-color:var(--pw-drawer-bg);border-left:1px solid var(--pw-drawer-line-strong, #dbdbdb);border-top-left-radius:var(--pw-drawer-radius);border-bottom-left-radius:var(--pw-drawer-radius);box-shadow:none;display:flex;flex-direction:column;z-index:1050;overflow:hidden;pointer-events:none;transform:translate(100%);transition:transform .3s cubic-bezier(.4,0,.2,1);will-change:transform}.pw-collapsible-sidebar.expanded{transform:translate(0);pointer-events:auto;transition:transform .55s cubic-bezier(.16,1,.3,1)}@media(max-width:768px){.pw-collapsible-sidebar{--pw-drawer-width: 100%;border-left:none;border-top-left-radius:0;border-bottom-left-radius:0}}.pw-collapsible-sidebar-host.pw-collapsible-sidebar-host--embedded{flex:0 0 0;width:0;min-width:0;height:0;min-height:0;overflow:visible;pointer-events:none;position:relative}.pw-collapsible-sidebar-host.pw-collapsible-sidebar-host--embedded .pw-collapsible-sidebar{--pw-drawer-width: max(300px, min(480px, 32vw));position:fixed;top:var(--pw-collapsible-sidebar-top, 85px);right:0;left:auto;bottom:auto;height:calc(100dvh - var(--pw-collapsible-sidebar-top, 85px));max-height:calc(100dvh - var(--pw-collapsible-sidebar-top, 85px));width:0;min-width:0;max-width:min(480px,90vw);transform:none;transition:width .3s cubic-bezier(.4,0,.2,1);z-index:1036;pointer-events:none;will-change:width;border-left:2px solid rgba(0,0,0,.14);border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--pw-drawer-radius);border-bottom-left-radius:var(--pw-drawer-radius);box-shadow:inset 1px 0 #ffffff8c,-10px 0 40px #0000001f;display:flex;flex-direction:column}.pw-collapsible-sidebar-host.pw-collapsible-sidebar-host--embedded .pw-collapsible-sidebar:not(.expanded){border-left:none;box-shadow:none}.pw-collapsible-sidebar-host.pw-collapsible-sidebar-host--embedded .pw-collapsible-sidebar .sidebar-header{flex-shrink:0;z-index:2}.pw-collapsible-sidebar-host.pw-collapsible-sidebar-host--embedded .pw-collapsible-sidebar .sidebar-content{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:var(--pw-drawer-surface, #f6f8fa);border-top:1px solid rgba(0,0,0,.08)}.pw-collapsible-sidebar-host.pw-collapsible-sidebar-host--embedded .pw-collapsible-sidebar.expanded{width:var(--pw-drawer-width);min-width:var(--pw-drawer-width);pointer-events:auto;transition:width .55s cubic-bezier(.16,1,.3,1)}@media(max-width:768px){.pw-collapsible-sidebar-host.pw-collapsible-sidebar-host--embedded .pw-collapsible-sidebar{top:var(--pw-collapsible-sidebar-top, 85px);height:calc(100dvh - var(--pw-collapsible-sidebar-top, 85px));max-height:calc(100dvh - var(--pw-collapsible-sidebar-top, 85px));max-width:100%;border-top-left-radius:0;border-bottom-left-radius:0;transform:translate(100%);transition:transform .3s cubic-bezier(.4,0,.2,1)}.pw-collapsible-sidebar-host.pw-collapsible-sidebar-host--embedded .pw-collapsible-sidebar.expanded{width:100%!important;min-width:100%!important;transform:translate(0);transition:transform .55s cubic-bezier(.16,1,.3,1)}}\n", ".pw-collapsible-sidebar .sidebar-header{--pw-drawer-header-bg: var(--sidebar_bg, #00303f);--pw-drawer-header-ink: var(--sidebar_text, #fff);display:flex;align-items:center;justify-content:space-between;gap:10px;box-sizing:border-box;height:44px;padding:0 8px 0 16px;flex-shrink:0;position:relative;background:var(--pw-drawer-header-bg);border-bottom:1px solid color-mix(in srgb,var(--pw-drawer-header-ink) 16%,var(--pw-drawer-header-bg))}.pw-collapsible-sidebar .sidebar-header .sidebar-title{display:block;margin:0;padding:0;font-size:15px;line-height:1.3;font-weight:600;letter-spacing:-.01em;color:var(--pw-drawer-header-ink)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:0 1 auto;min-width:0;align-self:center}.pw-collapsible-sidebar .sidebar-header h2.sidebar-title{margin:0!important}.pw-collapsible-sidebar .sidebar-header .sidebar-title-group{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;min-width:0}.pw-collapsible-sidebar .sidebar-header .sidebar-badge{flex:none;display:inline-flex;align-items:center;height:16px;padding:0 6px;border-radius:4px;font-size:10px;font-weight:600;line-height:1;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;color:var(--pw-drawer-header-ink);background:color-mix(in srgb,var(--pw-drawer-header-ink) 22%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pw-drawer-header-ink) 70%,transparent)}.pw-collapsible-sidebar .sidebar-header .sidebar-header__lead{display:flex;align-items:center;gap:14px;flex:1 1 auto;min-width:0}.pw-collapsible-sidebar .sidebar-header .sidebar-status{display:inline-flex;align-items:center;gap:6px;flex:0 100 auto;min-width:0;font-size:11px;line-height:1.3;letter-spacing:.02em;color:var(--pw-drawer-header-ink)}.pw-collapsible-sidebar .sidebar-header .sidebar-status__dot{flex:none;width:7px;height:7px;border-radius:50%;background:#34d399;box-shadow:0 0 0 2px color-mix(in srgb,var(--pw-drawer-header-ink) 35%,transparent)}.pw-collapsible-sidebar .sidebar-header .sidebar-status__text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}@media(max-width:480px){.pw-collapsible-sidebar .sidebar-header .sidebar-status__text{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}}.pw-collapsible-sidebar .sidebar-header .sidebar-header__actions{display:flex;align-items:center;gap:4px;flex:none}.pw-collapsible-sidebar .sidebar-header .sidebar-action,.pw-collapsible-sidebar .sidebar-header .close-btn{background:transparent;border:none;cursor:pointer;width:28px;height:28px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:color-mix(in srgb,var(--pw-drawer-header-ink) 85%,transparent);font-size:13px;border-radius:8px;flex-shrink:0;transition:background-color .16s ease,color .16s ease}.pw-collapsible-sidebar .sidebar-header .sidebar-action:hover,.pw-collapsible-sidebar .sidebar-header .close-btn:hover{background-color:color-mix(in srgb,var(--pw-drawer-header-ink) 16%,transparent);color:var(--pw-drawer-header-ink)}.pw-collapsible-sidebar .sidebar-header .sidebar-action:active,.pw-collapsible-sidebar .sidebar-header .close-btn:active{background-color:color-mix(in srgb,var(--pw-drawer-header-ink) 26%,transparent)}.pw-collapsible-sidebar .sidebar-header .sidebar-action:focus-visible,.pw-collapsible-sidebar .sidebar-header .close-btn:focus-visible{outline:2px solid var(--pw-drawer-header-ink);outline-offset:2px}.pw-collapsible-sidebar .sidebar-header .close-btn{width:30px;height:30px;font-size:14px}.pw-collapsible-sidebar .sidebar-header .close-btn i{line-height:1;display:block}\n", ".pw-collapsible-sidebar .sidebar-content{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:16px 16px 24px;background:var(--pw-drawer-bg, #fff);overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.pw-collapsible-sidebar .sidebar-content::-webkit-scrollbar{width:8px}.pw-collapsible-sidebar .sidebar-content::-webkit-scrollbar-track{background:transparent}.pw-collapsible-sidebar .sidebar-content::-webkit-scrollbar-thumb{background-color:#0003;border-radius:4px}.pw-collapsible-sidebar .sidebar-content::-webkit-scrollbar-thumb:hover{background-color:#00000059}\n"], dependencies: [{ kind: "pipe", type: i5$1.TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2424
2490
  }
2425
2491
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: CollapsibleSidebarComponent, decorators: [{
2426
2492
  type: Component,
@@ -2561,6 +2627,81 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImpo
2561
2627
  args: [{ providedIn: 'root' }]
2562
2628
  }] });
2563
2629
 
2630
+ /**
2631
+ * Run a row.
2632
+ *
2633
+ * Returns whether the palette should close. Everything closes today; the return
2634
+ * value exists so a future row that reports back in place (a copy confirmation,
2635
+ * a toggle) can keep the panel open without rewriting every caller.
2636
+ */
2637
+ const activateItem = (item, deps) => {
2638
+ if (!item) {
2639
+ return false;
2640
+ }
2641
+ if (item.kind === 'ask-ai') {
2642
+ deps.askAi(item.label);
2643
+ return true;
2644
+ }
2645
+ if (item.kind === 'action') {
2646
+ runAction(item, deps);
2647
+ return true;
2648
+ }
2649
+ // A page in another product: the index hands it to the sidebar's context
2650
+ // switch, which navigates once that subscription is active.
2651
+ if (item.entry && deps.openEntry(item)) {
2652
+ return true;
2653
+ }
2654
+ if (item.path) {
2655
+ deps.navigate(item.path);
2656
+ }
2657
+ return true;
2658
+ };
2659
+ const runAction = (item, deps) => {
2660
+ if (item.action === 'copy-link') {
2661
+ deps.copyLink();
2662
+ return;
2663
+ }
2664
+ if (item.action === 'log-out') {
2665
+ deps.logOut();
2666
+ }
2667
+ };
2668
+ /**
2669
+ * Build the dispatch table from a component's collaborators.
2670
+ *
2671
+ * Lives here rather than inline in the component so the component stays inside
2672
+ * C1 and so the copy-link branch — the only one with a promise and user-visible
2673
+ * feedback — is reachable from a unit test.
2674
+ */
2675
+ const buildActivateDeps = (deps) => ({
2676
+ // Seed the Brain composer rather than auto-sending, so the user can still
2677
+ // edit the question before committing to it.
2678
+ askAi: query => deps.sidebar.loadContentWithData('posiwise-brain', { draft: query }),
2679
+ openEntry: item => !!item.entry && deps.navIndex.open(item.entry),
2680
+ navigate: path => void deps.router.navigateByUrl(path),
2681
+ copyLink: () => {
2682
+ const clipboard = deps.clipboard ?? globalThis.navigator?.clipboard;
2683
+ if (!clipboard) {
2684
+ deps.notify?.error(deps.translate('CommandPalette.Action.CopyFailed'));
2685
+ return;
2686
+ }
2687
+ clipboard
2688
+ .writeText(deps.href ? deps.href() : globalThis.location?.href)
2689
+ .then(() => deps.notify?.success(deps.translate('CommandPalette.Action.Copied')))
2690
+ .catch(() => deps.notify?.error(deps.translate('CommandPalette.Action.CopyFailed')));
2691
+ },
2692
+ // The same route the profile menu uses; it owns the whole teardown.
2693
+ logOut: () => void deps.router.navigateByUrl('/logout')
2694
+ });
2695
+
2696
+ /**
2697
+ * The white-label brand for the Ask row.
2698
+ *
2699
+ * `AppConfigService` is optional in this library — a consumer that does not
2700
+ * provide it falls back to the default brand rather than failing to construct
2701
+ * the palette at all.
2702
+ */
2703
+ const brandName$ = (appConfig) => appConfig ? appConfig.appConfig$.pipe(map(resolveBrandName)) : of(DEFAULT_BRAND);
2704
+
2564
2705
  /** Cap per group so one noisy group can never bury the others. */
2565
2706
  const MAX_PER_GROUP = 6;
2566
2707
  const normalise = (value) => (value ?? '').trim().toLowerCase();
@@ -2616,6 +2757,19 @@ const personItems = (people) => (people ?? [])
2616
2757
  icon: 'ft-user',
2617
2758
  path: `/members/${person.slug}`
2618
2759
  }));
2760
+ /**
2761
+ * The jump-back list. Unscored and unsorted: `RecentPagesService` already returns
2762
+ * them newest-first, and re-ranking recency by name would defeat the point.
2763
+ */
2764
+ const recentItems = (entries) => (entries ?? []).slice(0, MAX_PER_GROUP).map(entry => ({
2765
+ id: `recent:${entry.path}`,
2766
+ kind: 'page',
2767
+ label: entry.title,
2768
+ detail: entry.section,
2769
+ icon: entry.icon || 'ft-clock',
2770
+ path: entry.path,
2771
+ entry
2772
+ }));
2619
2773
  const askAiItem = (query) => ({
2620
2774
  id: 'ask-ai',
2621
2775
  kind: 'ask-ai',
@@ -2624,54 +2778,367 @@ const askAiItem = (query) => ({
2624
2778
  icon: 'fas fa-wand-magic-sparkles'
2625
2779
  });
2626
2780
  /**
2627
- * Assemble the rendered groups. `ask-ai` is pinned last and ALWAYS present,
2628
- * including on the empty-query shortlist — it is the standing escape hatch when
2629
- * the palette (a known-item finder) is the wrong tool for the question, so it
2630
- * must be discoverable before the user has typed anything.
2781
+ * Assemble the rendered groups.
2782
+ *
2783
+ * `Recent` leads when it has anything, because on an empty query it is a far
2784
+ * better first row than the alphabetical head of the full page list.
2785
+ *
2786
+ * `ask-ai` is pinned last and ALWAYS present, including on the empty-query
2787
+ * shortlist — it is the standing escape hatch when the palette (a known-item
2788
+ * finder) is the wrong tool for the question, so it must be discoverable before
2789
+ * the user has typed anything.
2631
2790
  */
2632
- const buildGroups = (pages, people, query) => {
2791
+ const buildGroups = (sources) => {
2633
2792
  const groups = [];
2634
- if (pages.length) {
2635
- groups.push({ labelKey: 'CommandPalette.Group.Pages', items: pages });
2793
+ if (sources.recents?.length) {
2794
+ groups.push({ labelKey: 'CommandPalette.Group.Recent', items: sources.recents });
2795
+ }
2796
+ if (sources.pages.length) {
2797
+ groups.push({ labelKey: 'CommandPalette.Group.Pages', items: sources.pages });
2636
2798
  }
2637
- if (people.length) {
2638
- groups.push({ labelKey: 'CommandPalette.Group.People', items: people });
2799
+ if (sources.people.length) {
2800
+ groups.push({ labelKey: 'CommandPalette.Group.People', items: sources.people });
2639
2801
  }
2640
- groups.push({ labelKey: 'CommandPalette.Group.Ask', items: [askAiItem(query.trim())] });
2802
+ if (sources.switches?.length) {
2803
+ groups.push({ labelKey: 'CommandPalette.Group.Switch', items: sources.switches });
2804
+ }
2805
+ if (sources.actions?.length) {
2806
+ groups.push({ labelKey: 'CommandPalette.Group.Actions', items: sources.actions });
2807
+ }
2808
+ groups.push({
2809
+ labelKey: 'CommandPalette.Group.Ask',
2810
+ items: [askAiItem(sources.query.trim())]
2811
+ });
2641
2812
  return groups;
2642
2813
  };
2643
2814
  /** Flatten groups back to a single ordered list for keyboard traversal. */
2644
2815
  const flattenItems = (groups) => groups.flatMap(group => group.items);
2645
2816
 
2817
+ /**
2818
+ * The palette's own commands.
2819
+ *
2820
+ * Deliberately short. Anything that is really a destination belongs in the
2821
+ * navigation index, where it arrives with the permission gating already applied —
2822
+ * an action row carries no such gate, so every entry here must be safe for any
2823
+ * signed-in user.
2824
+ */
2825
+ const PALETTE_ACTIONS = [
2826
+ {
2827
+ id: 'copy-link',
2828
+ labelKey: 'CommandPalette.Action.CopyLink',
2829
+ icon: 'fas fa-link'
2830
+ },
2831
+ {
2832
+ id: 'log-out',
2833
+ labelKey: 'CommandPalette.Action.LogOut',
2834
+ icon: 'fas fa-arrow-right-from-bracket'
2835
+ }
2836
+ ];
2837
+ /** Below this, a query is too weak to be a deliberate command request. */
2838
+ const MIN_QUERY = 2;
2839
+ /**
2840
+ * Actions matching the typed query, ranked with the same scorer as pages.
2841
+ *
2842
+ * Requires a real query on purpose: `log-out` must never sit on the empty-query
2843
+ * shortlist, where the keyboard's default row is one Enter away.
2844
+ */
2845
+ const actionItems = (query, translate, defs = PALETTE_ACTIONS) => {
2846
+ const needle = (query ?? '').trim();
2847
+ if (needle.length < MIN_QUERY) {
2848
+ return [];
2849
+ }
2850
+ return defs
2851
+ .map(def => ({ def, label: translate(def.labelKey) }))
2852
+ .map(({ def, label }) => ({ def, label, score: scoreEntry(label, '', needle) }))
2853
+ .filter(scored => scored.score >= 0)
2854
+ .sort((a, b) => b.score - a.score || a.label.localeCompare(b.label))
2855
+ .map(({ def, label }) => ({
2856
+ id: `action:${def.id}`,
2857
+ kind: 'action',
2858
+ label,
2859
+ labelKey: def.labelKey,
2860
+ detail: '',
2861
+ icon: def.icon,
2862
+ action: def.id
2863
+ }));
2864
+ };
2865
+
2866
+ /** Shown without a query too, so switching is discoverable — but kept short there. */
2867
+ const BROWSE_LIMIT = 3;
2868
+ const MATCH_LIMIT = 6;
2869
+ /**
2870
+ * Switching only means something across subscriptions. A user in one subscription
2871
+ * — however many products it carries — has nowhere to switch to, so the whole
2872
+ * group is withheld rather than offering the product they are already in.
2873
+ */
2874
+ const spansSubscriptions = (products) => new Set(products.map(product => product.subscriptionId)).size > 1;
2875
+ const isCurrent = (product, context) => !!context.currentSubscriptionId &&
2876
+ product.subscriptionId === context.currentSubscriptionId &&
2877
+ product.path === context.currentPath;
2878
+ /**
2879
+ * "Switch to" rows — one per product the user belongs to, in another subscription
2880
+ * or another product of the same one.
2881
+ *
2882
+ * These are `page` rows carrying a `product`, not a new item kind, so activation
2883
+ * goes through `NavigationIndexService.open()` — the same verified path a deep
2884
+ * page in a foreign product already uses. The entry's `path` is empty on purpose:
2885
+ * the sidebar's switcher reads a falsy target as "this product's own dashboard"
2886
+ * and resolves the subscription slug itself, which is the one place that mapping
2887
+ * is known to be correct.
2888
+ *
2889
+ * The row is named for the **organisation**, because that is what a user switching
2890
+ * context is actually choosing; the product name is the detail line.
2891
+ */
2892
+ const switchItems = (products, query, context = {}) => {
2893
+ const needle = (query ?? '').trim();
2894
+ const switchable = (products ?? []).filter(product => !!product?.subscriptionId);
2895
+ if (!spansSubscriptions(switchable)) {
2896
+ return [];
2897
+ }
2898
+ const candidates = switchable.filter(product => !isCurrent(product, context));
2899
+ const scored = needle
2900
+ ? candidates
2901
+ .map(product => ({
2902
+ product,
2903
+ score: scoreEntry(product.organisation ?? '', product.title ?? '', needle)
2904
+ }))
2905
+ .filter(entry => entry.score >= 0)
2906
+ .sort((a, b) => b.score - a.score)
2907
+ .slice(0, MATCH_LIMIT)
2908
+ .map(entry => entry.product)
2909
+ : candidates.slice(0, BROWSE_LIMIT);
2910
+ return scored.map(product => {
2911
+ const label = product.organisation ?? product.title ?? '';
2912
+ const detail = product.organisation ? (product.title ?? '') : '';
2913
+ return {
2914
+ id: `switch:${product.subscriptionId}:${product.path}`,
2915
+ kind: 'page',
2916
+ label,
2917
+ detail,
2918
+ icon: 'fas fa-building',
2919
+ entry: {
2920
+ title: label,
2921
+ path: '',
2922
+ icon: 'fas fa-building',
2923
+ section: detail,
2924
+ product
2925
+ }
2926
+ };
2927
+ });
2928
+ };
2929
+
2930
+ /**
2931
+ * Turn the raw sources into rendered groups.
2932
+ *
2933
+ * Pure so the two precedence rules that shape the panel are testable without a
2934
+ * TestBed:
2935
+ *
2936
+ * 1. On an EMPTY query, recents replace the page list rather than sitting above
2937
+ * it. With no query every page scores 0, so `pageItems` falls back to
2938
+ * alphabetical order — six arbitrary names. Recent history is strictly more
2939
+ * useful, and showing both buries it.
2940
+ * 2. People only appear once something is typed. The list is a remote search;
2941
+ * there is nothing to show for an empty query.
2942
+ */
2943
+ const composeGroups = (sources) => {
2944
+ const typed = sources.query.trim();
2945
+ const entries = sources.navIndex.entries();
2946
+ const recents = typed ? [] : recentItems(sources.recents.resolve(entries, sources.currentUrl));
2947
+ const pages = typed || !recents.length ? pageItems(entries, sources.query) : [];
2948
+ return buildGroups({
2949
+ recents,
2950
+ pages,
2951
+ people: typed ? sources.people : [],
2952
+ switches: sources.navIndex.canSwitch()
2953
+ ? switchItems(sources.navIndex.switchTargets(), sources.query, {
2954
+ currentPath: sources.current?.path,
2955
+ currentSubscriptionId: sources.current?.subscriptionId
2956
+ })
2957
+ : [],
2958
+ actions: actionItems(sources.query, sources.translate),
2959
+ query: sources.query
2960
+ });
2961
+ };
2962
+
2963
+ /**
2964
+ * Keyboard position within the flattened row list.
2965
+ *
2966
+ * Extracted from the component so the component stays inside C1 while gaining
2967
+ * the recents/actions sources; it is also the only piece of palette state with
2968
+ * wrap-around arithmetic worth testing on its own.
2969
+ */
2970
+ class PaletteCursor {
2971
+ constructor() {
2972
+ this.index = 0;
2973
+ }
2974
+ get position() {
2975
+ return this.index;
2976
+ }
2977
+ reset() {
2978
+ this.index = 0;
2979
+ }
2980
+ /** Wraps at both ends; a no-op while there is nothing to move through. */
2981
+ move(delta, length) {
2982
+ if (length <= 0) {
2983
+ this.index = 0;
2984
+ return;
2985
+ }
2986
+ this.index = (this.index + delta + length) % length;
2987
+ }
2988
+ /** The row the keyboard is on, or undefined once the list has emptied. */
2989
+ current(items) {
2990
+ return items[this.index];
2991
+ }
2992
+ isActive(items, item) {
2993
+ return this.current(items)?.id === item.id;
2994
+ }
2995
+ }
2996
+
2997
+ /**
2998
+ * Native <dialog> plumbing for the command palette.
2999
+ *
3000
+ * Split out of the component so `command-palette.component.ts` stays inside the
3001
+ * 200-line ceiling, and so the DOM-level behaviour can be exercised directly.
3002
+ *
3003
+ * Feature detection is NOT defensive padding: jsdom 26 ships `HTMLDialogElement`
3004
+ * with a working `open` property but no `showModal()` / `close()` methods, so a
3005
+ * bare call throws `showModal is not a function` under Jest. Falling back to the
3006
+ * `open` attribute keeps specs meaningful — `open` is what `showModal()` sets in
3007
+ * a real browser anyway, so both paths leave the element in the same state.
3008
+ */
3009
+ /** Drive the <dialog> to match the palette's open state. Idempotent. */
3010
+ function syncPaletteDialog(dialog, isOpen) {
3011
+ if (!dialog) {
3012
+ return;
3013
+ }
3014
+ if (isOpen && !dialog.open) {
3015
+ openDialog(dialog);
3016
+ }
3017
+ else if (!isOpen && dialog.open) {
3018
+ closeDialog(dialog);
3019
+ }
3020
+ }
3021
+ /**
3022
+ * Close the palette when a click lands on the ::backdrop.
3023
+ *
3024
+ * A modal <dialog>'s backdrop is a pseudo-element with no node of its own, so
3025
+ * the click surfaces with the dialog box itself as `target` — something a click
3026
+ * on any content never produces. Bound imperatively rather than declared in the
3027
+ * template on purpose: the markup then carries no mouse-only close affordance,
3028
+ * and Escape remains the documented keyboard equivalent.
3029
+ *
3030
+ * Returns a teardown for ngOnDestroy.
3031
+ */
3032
+ function bindBackdropDismiss(dialog, onDismiss) {
3033
+ if (!dialog) {
3034
+ return () => undefined;
3035
+ }
3036
+ const handler = (event) => {
3037
+ if (event.target === dialog) {
3038
+ onDismiss();
3039
+ }
3040
+ };
3041
+ dialog.addEventListener('click', handler);
3042
+ return () => dialog.removeEventListener('click', handler);
3043
+ }
3044
+ function openDialog(dialog) {
3045
+ if (typeof dialog.showModal === 'function') {
3046
+ dialog.showModal();
3047
+ }
3048
+ else {
3049
+ dialog.setAttribute('open', '');
3050
+ }
3051
+ }
3052
+ function closeDialog(dialog) {
3053
+ if (typeof dialog.close === 'function') {
3054
+ dialog.close();
3055
+ }
3056
+ else {
3057
+ dialog.removeAttribute('open');
3058
+ }
3059
+ }
3060
+ /**
3061
+ * Bind the native <dialog> once the view exists, and apply any open state that
3062
+ * raced the view's arrival (the palette can be opened from ⌘K before
3063
+ * `ngAfterViewInit` runs).
3064
+ *
3065
+ * Returns the backdrop-listener release function.
3066
+ */
3067
+ const attachDialog = (dialog, onDismiss, isOpen) => {
3068
+ const release = bindBackdropDismiss(dialog, onDismiss);
3069
+ syncPaletteDialog(dialog, isOpen);
3070
+ return release;
3071
+ };
3072
+
3073
+ /** The global open/close chord. Ctrl on Windows and Linux, ⌘ on a Mac. */
3074
+ const isToggleShortcut = (event) => (event.metaKey || event.ctrlKey) && event.key.toLowerCase() === 'k';
3075
+ const listAction = (event) => {
3076
+ if (event.key === 'ArrowDown') {
3077
+ return 'down';
3078
+ }
3079
+ if (event.key === 'ArrowUp') {
3080
+ return 'up';
3081
+ }
3082
+ return event.key === 'Enter' ? 'enter' : null;
3083
+ };
3084
+ /**
3085
+ * The chord as a user should read it. `navigator.platform` is deprecated but is
3086
+ * still the only synchronous signal here; a wrong guess costs a wrong hint, not
3087
+ * a broken shortcut, since the handler accepts either modifier.
3088
+ */
3089
+ const shortcutHint = () => /Mac|iPhone|iPad/i.test(navigator?.platform ?? '') ? '⌘K' : 'Ctrl K';
3090
+
2646
3091
  /** Only hit the people endpoint once typing settles, and not for one letter. */
2647
3092
  const PEOPLE_DEBOUNCE_MS = 250;
2648
3093
  const PEOPLE_MIN_CHARS = 2;
3094
+ /**
3095
+ * Debounced people lookup, mapped straight to palette rows.
3096
+ *
3097
+ * Lifted out of the component so `command-palette.component.ts` keeps to the
3098
+ * 200-line ceiling once the native-dialog plumbing lands beside it.
3099
+ */
3100
+ function peopleSearch(queryChanges, dashboard) {
3101
+ return queryChanges.pipe(debounceTime(PEOPLE_DEBOUNCE_MS), distinctUntilChanged(), switchMap(term => fetchPeople(dashboard, term)), map(people => personItems(people)));
3102
+ }
3103
+ function fetchPeople(dashboard, term) {
3104
+ const subscriptionId = PermissionService.selectedSubscription?.id;
3105
+ if (term.length < PEOPLE_MIN_CHARS || !subscriptionId) {
3106
+ return of([]);
3107
+ }
3108
+ // A failed lookup must not blank the palette — pages still render. The catch
3109
+ // sits INSIDE the inner observable so it never tears down the outer stream.
3110
+ return dashboard.search(term, subscriptionId).pipe(map(response => response?.users ?? []), catchError(() => of([])));
3111
+ }
3112
+
2649
3113
  class CommandPaletteComponent {
2650
- constructor(palette, navIndex, dashboard, sidebar, router, cdr, appConfigService) {
3114
+ constructor(palette, navIndex, dashboard, recents, sidebar, router, transloco, cdr, appConfigService, toast) {
2651
3115
  this.palette = palette;
2652
3116
  this.navIndex = navIndex;
2653
3117
  this.dashboard = dashboard;
3118
+ this.recents = recents;
2654
3119
  this.sidebar = sidebar;
2655
3120
  this.router = router;
3121
+ this.transloco = transloco;
2656
3122
  this.cdr = cdr;
2657
3123
  this.appConfigService = appConfigService;
3124
+ this.toast = toast;
2658
3125
  this.isOpen = false;
2659
3126
  this.query = '';
2660
3127
  this.groups = [];
2661
- this.activeIndex = 0;
2662
- /** White-label brand for the Ask row; reuses the Brain panel's resolver. */
2663
3128
  this.brandName = DEFAULT_BRAND;
2664
- /** Rendered in the trigger chip — the real key differs per platform. */
2665
- this.shortcutHint = /Mac|iPhone|iPad/i.test(navigator?.platform ?? '')
2666
- ? '\u2318K'
2667
- : 'Ctrl K';
3129
+ this.shortcutHint = shortcutHint();
3130
+ this.cursor = new PaletteCursor();
3131
+ this.flat = [];
2668
3132
  this.queryChanges = new Subject();
2669
3133
  this.destroy$ = new Subject();
2670
3134
  this.people = [];
3135
+ this.releaseBackdrop = () => undefined;
2671
3136
  }
2672
3137
  ngOnInit() {
2673
- this.appConfigService?.appConfig$.pipe(takeUntil(this.destroy$)).subscribe(config => {
2674
- this.brandName = resolveBrandName(config);
3138
+ brandName$(this.appConfigService)
3139
+ .pipe(takeUntil(this.destroy$))
3140
+ .subscribe(name => {
3141
+ this.brandName = name;
2675
3142
  this.cdr.markForCheck();
2676
3143
  });
2677
3144
  this.palette.isOpen$.pipe(takeUntil(this.destroy$)).subscribe(isOpen => {
@@ -2680,26 +3147,36 @@ class CommandPaletteComponent {
2680
3147
  this.reset();
2681
3148
  }
2682
3149
  this.cdr.markForCheck();
3150
+ syncPaletteDialog(this.paletteDialog?.nativeElement, isOpen);
2683
3151
  });
2684
- this.queryChanges
2685
- .pipe(debounceTime(PEOPLE_DEBOUNCE_MS), distinctUntilChanged(), switchMap(term => this.fetchPeople(term)), takeUntil(this.destroy$))
3152
+ peopleSearch(this.queryChanges, this.dashboard)
3153
+ .pipe(takeUntil(this.destroy$))
2686
3154
  .subscribe(people => {
2687
- this.people = personItems(people);
3155
+ this.people = people;
2688
3156
  this.rebuild();
2689
3157
  });
2690
3158
  }
3159
+ ngAfterViewInit() {
3160
+ this.releaseBackdrop = attachDialog(this.paletteDialog?.nativeElement, () => this.palette.close(), this.isOpen);
3161
+ }
2691
3162
  ngOnDestroy() {
3163
+ this.releaseBackdrop();
2692
3164
  this.destroy$.next();
2693
3165
  this.destroy$.complete();
2694
3166
  }
3167
+ /** A native close (Escape, or our own close()) mirrored back onto the service. */
3168
+ onDialogClose() {
3169
+ if (this.isOpen) {
3170
+ this.palette.close();
3171
+ }
3172
+ }
2695
3173
  /** ⌘K / Ctrl-K opens from anywhere; Escape closes. */
2696
3174
  onDocumentKeydown(event) {
2697
- if ((event.metaKey || event.ctrlKey) && event.key.toLowerCase() === 'k') {
3175
+ if (isToggleShortcut(event)) {
2698
3176
  event.preventDefault();
2699
3177
  this.palette.toggle();
2700
- return;
2701
3178
  }
2702
- if (event.key === 'Escape' && this.isOpen) {
3179
+ else if (event.key === 'Escape' && this.isOpen) {
2703
3180
  this.palette.close();
2704
3181
  }
2705
3182
  }
@@ -2709,62 +3186,48 @@ class CommandPaletteComponent {
2709
3186
  this.rebuild();
2710
3187
  }
2711
3188
  onKeydown(event) {
2712
- const items = flattenItems(this.groups);
2713
- if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {
2714
- event.preventDefault();
2715
- this.move(event.key === 'ArrowDown' ? 1 : -1, items.length);
2716
- }
2717
- else if (event.key === 'Enter') {
2718
- event.preventDefault();
2719
- this.activate(items[this.activeIndex]);
2720
- }
2721
- }
2722
- activate(item) {
2723
- if (!item) {
3189
+ const action = listAction(event);
3190
+ if (!action) {
2724
3191
  return;
2725
3192
  }
2726
- if (item.kind === 'ask-ai') {
2727
- // Seed the Brain composer rather than auto-sending, so the user can
2728
- // still edit the question before committing to it.
2729
- this.sidebar.loadContentWithData('posiwise-brain', { draft: item.label });
2730
- }
2731
- else if (item.entry && this.navIndex.open(item.entry)) {
2732
- // A page in another product — the index handed it to the sidebar's
2733
- // context switch, which navigates once the subscription is active.
3193
+ event.preventDefault();
3194
+ if (action === 'enter') {
3195
+ this.activate(this.cursor.current(this.flat));
2734
3196
  }
2735
- else if (item.path) {
2736
- this.router.navigateByUrl(item.path);
3197
+ else {
3198
+ this.cursor.move(action === 'down' ? 1 : -1, this.flat.length);
3199
+ this.cdr.markForCheck();
2737
3200
  }
2738
- this.palette.close();
2739
- }
2740
- close() {
2741
- this.palette.close();
2742
- }
2743
- isActive(item) {
2744
- return flattenItems(this.groups)[this.activeIndex]?.id === item.id;
2745
- }
2746
- trackById(_index, item) {
2747
- return item.id;
2748
3201
  }
2749
- move(delta, length) {
2750
- if (!length) {
2751
- return;
3202
+ activate(item) {
3203
+ if (activateItem(item, this.activateDeps())) {
3204
+ this.palette.close();
2752
3205
  }
2753
- this.activeIndex = (this.activeIndex + delta + length) % length;
2754
- this.cdr.markForCheck();
2755
3206
  }
2756
- fetchPeople(term) {
2757
- const subscriptionId = PermissionService.selectedSubscription?.id;
2758
- if (term.length < PEOPLE_MIN_CHARS || !subscriptionId) {
2759
- return of([]);
2760
- }
2761
- // A failed lookup must not blank the palette — pages still render.
2762
- return this.dashboard.search(term, subscriptionId).pipe(map(response => response?.users ?? []), catchError(() => of([])));
3207
+ isActive(item) {
3208
+ return this.cursor.isActive(this.flat, item);
3209
+ }
3210
+ activateDeps() {
3211
+ return buildActivateDeps({
3212
+ sidebar: this.sidebar,
3213
+ navIndex: this.navIndex,
3214
+ router: this.router,
3215
+ translate: key => this.transloco.translate(key),
3216
+ notify: this.toast
3217
+ });
2763
3218
  }
2764
3219
  rebuild() {
2765
- const pages = pageItems(this.navIndex.entries(), this.query);
2766
- this.groups = buildGroups(pages, this.query.trim() ? this.people : [], this.query);
2767
- this.activeIndex = 0;
3220
+ this.groups = composeGroups({
3221
+ navIndex: this.navIndex,
3222
+ recents: this.recents,
3223
+ currentUrl: this.router.url,
3224
+ people: this.people,
3225
+ query: this.query,
3226
+ translate: key => this.transloco.translate(key),
3227
+ current: PermissionService.selectedProduct
3228
+ });
3229
+ this.flat = flattenItems(this.groups);
3230
+ this.cursor.reset();
2768
3231
  this.cdr.markForCheck();
2769
3232
  }
2770
3233
  reset() {
@@ -2773,17 +3236,22 @@ class CommandPaletteComponent {
2773
3236
  this.rebuild();
2774
3237
  setTimeout(() => this.queryInput?.nativeElement?.focus());
2775
3238
  }
2776
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: CommandPaletteComponent, deps: [{ token: CommandPaletteService }, { token: i1.NavigationIndexService }, { token: i1.DashboardService }, { token: CollapsibleSidebarService }, { token: i2.Router }, { token: i0.ChangeDetectorRef }, { token: i2$1.AppConfigService, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
2777
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: CommandPaletteComponent, isStandalone: false, selector: "pw-command-palette", host: { listeners: { "document:keydown": "onDocumentKeydown($event)" } }, viewQueries: [{ propertyName: "queryInput", first: true, predicate: ["queryInput"], descendants: true }], ngImport: i0, template: "<!-- Navbar trigger \u2014 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@if (isOpen) {\n <div class=\"pw-palette-backdrop\" (click)=\"close()\"></div>\n\n <div class=\"pw-palette\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-label]=\"'CommandPalette.Aria.Dialog' | transloco\">\n\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\">\u2014 {{ item.label }}</span>\n }\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\">\u2191\u2193</kbd>{{ 'CommandPalette.Hint.Navigate' | transloco }}</span>\n <span class=\"pw-palette-hint\"><kbd class=\"pw-palette-kbd\">\u21B5</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 </div>\n}\n", 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-backdrop{position:fixed;inset:0;z-index:1050;background:#10182852}.pw-palette{position:fixed;top:12vh;left:50%;z-index:1051;display:flex;flex-direction:column;width:min(640px,100vw - 32px);max-height:70vh;transform:translate(-50%);border:1px solid #e2e5ea;border-radius:12px;background:#fff;box-shadow:0 16px 48px #1018282e;overflow:hidden}.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"], dependencies: [{ kind: "directive", type: i8.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i1$2.TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
3239
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: CommandPaletteComponent, deps: [{ token: CommandPaletteService }, { token: i1.NavigationIndexService }, { token: i1.DashboardService }, { token: i1.RecentPagesService }, { token: CollapsibleSidebarService }, { token: i2.Router }, { token: i5$1.TranslocoService }, { token: i0.ChangeDetectorRef }, { token: i2$1.AppConfigService, optional: true }, { token: i1.CustomToastService, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
3240
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: CommandPaletteComponent, isStandalone: false, selector: "pw-command-palette", host: { listeners: { "document:keydown": "onDocumentKeydown($event)" } }, viewQueries: [{ propertyName: "queryInput", first: true, predicate: ["queryInput"], descendants: true }, { propertyName: "paletteDialog", first: true, predicate: ["paletteDialog"], descendants: true }], ngImport: i0, template: "<!-- Navbar trigger \u2014 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 \u2014 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\">\u2014 {{ 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\">\u2191\u2193</kbd>{{ 'CommandPalette.Hint.Navigate' | transloco }}</span>\n <span class=\"pw-palette-hint\"><kbd class=\"pw-palette-kbd\">\u21B5</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", 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"], dependencies: [{ kind: "directive", type: i8.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i5$1.TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2778
3241
  }
2779
3242
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: CommandPaletteComponent, decorators: [{
2780
3243
  type: Component,
2781
- args: [{ selector: 'pw-command-palette', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<!-- Navbar trigger \u2014 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@if (isOpen) {\n <div class=\"pw-palette-backdrop\" (click)=\"close()\"></div>\n\n <div class=\"pw-palette\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-label]=\"'CommandPalette.Aria.Dialog' | transloco\">\n\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\">\u2014 {{ item.label }}</span>\n }\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\">\u2191\u2193</kbd>{{ 'CommandPalette.Hint.Navigate' | transloco }}</span>\n <span class=\"pw-palette-hint\"><kbd class=\"pw-palette-kbd\">\u21B5</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 </div>\n}\n", 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-backdrop{position:fixed;inset:0;z-index:1050;background:#10182852}.pw-palette{position:fixed;top:12vh;left:50%;z-index:1051;display:flex;flex-direction:column;width:min(640px,100vw - 32px);max-height:70vh;transform:translate(-50%);border:1px solid #e2e5ea;border-radius:12px;background:#fff;box-shadow:0 16px 48px #1018282e;overflow:hidden}.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"] }]
2782
- }], ctorParameters: () => [{ type: CommandPaletteService }, { type: i1.NavigationIndexService }, { type: i1.DashboardService }, { type: CollapsibleSidebarService }, { type: i2.Router }, { type: i0.ChangeDetectorRef }, { type: i2$1.AppConfigService, decorators: [{
3244
+ args: [{ selector: 'pw-command-palette', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<!-- Navbar trigger \u2014 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 \u2014 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\">\u2014 {{ 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\">\u2191\u2193</kbd>{{ 'CommandPalette.Hint.Navigate' | transloco }}</span>\n <span class=\"pw-palette-hint\"><kbd class=\"pw-palette-kbd\">\u21B5</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", 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"] }]
3245
+ }], ctorParameters: () => [{ type: CommandPaletteService }, { type: i1.NavigationIndexService }, { type: i1.DashboardService }, { type: i1.RecentPagesService }, { type: CollapsibleSidebarService }, { type: i2.Router }, { type: i5$1.TranslocoService }, { type: i0.ChangeDetectorRef }, { type: i2$1.AppConfigService, decorators: [{
3246
+ type: Optional
3247
+ }] }, { type: i1.CustomToastService, decorators: [{
2783
3248
  type: Optional
2784
3249
  }] }], propDecorators: { queryInput: [{
2785
3250
  type: ViewChild,
2786
3251
  args: ['queryInput']
3252
+ }], paletteDialog: [{
3253
+ type: ViewChild,
3254
+ args: ['paletteDialog']
2787
3255
  }], onDocumentKeydown: [{
2788
3256
  type: HostListener,
2789
3257
  args: ['document:keydown', ['$event']]
@@ -2874,7 +3342,7 @@ class ConfirmDialogComponent {
2874
3342
  this.modal.dismiss(false);
2875
3343
  }
2876
3344
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: ConfirmDialogComponent, deps: [{ token: i5.NgbActiveModal }], target: i0.ɵɵFactoryTarget.Component }); }
2877
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: ConfirmDialogComponent, isStandalone: false, selector: "pw-confirm-dialog", inputs: { config: "config" }, ngImport: i0, 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", 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"], dependencies: [{ kind: "pipe", type: i1$2.TranslocoPipe, name: "transloco" }] }); }
3345
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: ConfirmDialogComponent, isStandalone: false, selector: "pw-confirm-dialog", inputs: { config: "config" }, ngImport: i0, 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", 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"], dependencies: [{ kind: "pipe", type: i5$1.TranslocoPipe, name: "transloco" }] }); }
2878
3346
  }
2879
3347
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: ConfirmDialogComponent, decorators: [{
2880
3348
  type: Component,
@@ -3001,7 +3469,7 @@ class ChartBlockComponent {
3001
3469
  {{ 'DynamicPage.State.' + (binding?.state || 'unavailable') | transloco }}
3002
3470
  </div>
3003
3471
  </div>
3004
- `, isInline: true, 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"], dependencies: [{ kind: "pipe", type: i1$2.TranslocoPipe, name: "transloco" }] }); }
3472
+ `, isInline: true, 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"], dependencies: [{ kind: "pipe", type: i5$1.TranslocoPipe, name: "transloco" }] }); }
3005
3473
  }
3006
3474
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: ChartBlockComponent, decorators: [{
3007
3475
  type: Component,
@@ -3074,7 +3542,7 @@ class DataTableBlockComponent {
3074
3542
  {{ 'DynamicPage.State.' + stateKey | transloco }}
3075
3543
  </div>
3076
3544
  }
3077
- `, isInline: true, 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"], dependencies: [{ kind: "pipe", type: i1$2.TranslocoPipe, name: "transloco" }] }); }
3545
+ `, isInline: true, 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"], dependencies: [{ kind: "pipe", type: i5$1.TranslocoPipe, name: "transloco" }] }); }
3078
3546
  }
3079
3547
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: DataTableBlockComponent, decorators: [{
3080
3548
  type: Component,
@@ -3221,7 +3689,7 @@ class StatCardBlockComponent {
3221
3689
  </div>
3222
3690
  }
3223
3691
  </div>
3224
- `, isInline: true, 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"], dependencies: [{ kind: "pipe", type: i1$2.TranslocoPipe, name: "transloco" }] }); }
3692
+ `, isInline: true, 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"], dependencies: [{ kind: "pipe", type: i5$1.TranslocoPipe, name: "transloco" }] }); }
3225
3693
  }
3226
3694
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: StatCardBlockComponent, decorators: [{
3227
3695
  type: Component,
@@ -3431,7 +3899,7 @@ class PwDynamicPageComponent {
3431
3899
  </div>
3432
3900
  }
3433
3901
  }
3434
- `, isInline: true, 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"], dependencies: [{ kind: "pipe", type: i1$2.TranslocoPipe, name: "transloco" }] }); }
3902
+ `, isInline: true, 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"], dependencies: [{ kind: "pipe", type: i5$1.TranslocoPipe, name: "transloco" }] }); }
3435
3903
  }
3436
3904
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: PwDynamicPageComponent, decorators: [{
3437
3905
  type: Component,
@@ -3499,7 +3967,7 @@ class HeaderComponent extends AppBaseComponent {
3499
3967
  this.cdr.markForCheck();
3500
3968
  }
3501
3969
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: HeaderComponent, deps: [{ token: i0.Injector }, { token: i1.AuthService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
3502
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: HeaderComponent, isStandalone: false, selector: "pw-header", inputs: { landing: "landing" }, usesInheritance: true, ngImport: i0, template: "<header class=\"pw-bar\" [class.pw-bar--solid]=\"!landing\">\n <div class=\"pw-bar__inner\">\n <a class=\"pw-bar__brand\" href=\"/\">\n @if (logo) {\n <img class=\"pw-bar__brand-logo\" [src]=\"logo\" alt=\"\" (error)=\"onLogoError()\" />\n }\n <span class=\"visually-hidden\">Home</span>\n </a>\n\n <div class=\"pw-bar__actions\">\n @if (!loggedIn) {\n <button type=\"button\" class=\"pw-bar__login\" (click)=\"navigateToLogin()\">\n {{ 'Button.Login' | transloco }}\n </button>\n }\n <a class=\"pw-bar__cta\" href=\"/\">\n {{ 'Button.Home' | transloco }}\n </a>\n <button type=\"button\"\n class=\"pw-bar__toggle\"\n [class.pw-bar__toggle--open]=\"!isMenuCollapsed\"\n [attr.aria-expanded]=\"!isMenuCollapsed\"\n aria-label=\"Toggle menu\"\n (click)=\"toggleMenu()\">\n <span></span><span></span><span></span>\n </button>\n </div>\n </div>\n</header>\n", styles: ["@charset \"UTF-8\";:root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_sub_bg: color-mix(in srgb, var(--first, rgb(23 105 225)) 85%, #000000);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255);--dashboard_bg: rgb(255 255 255);--public-btn-radius: 24px}.pw-bar{position:fixed;top:0;left:0;right:0;z-index:50;padding:0 var(--lp-gutter, clamp(20px, 4vw, 48px));background:color-mix(in srgb,#f7f8fa 80%,transparent);backdrop-filter:saturate(180%) blur(12px);-webkit-backdrop-filter:saturate(180%) blur(12px);border-bottom:1px solid transparent;transition:background-color .2s cubic-bezier(.2,.7,.2,1),border-color .2s cubic-bezier(.2,.7,.2,1)}.pw-bar--solid,.pw-bar:hover{background:#f7f8fa;border-bottom-color:#e2e5ea}.pw-bar__inner{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:32px;max-width:var(--lp-max-w-content, 1200px);margin:0 auto;padding:0;height:56px}.pw-bar__brand{display:inline-flex;align-items:center;text-decoration:none}.pw-bar__brand-logo{height:28px;width:auto;display:block;object-fit:contain}.pw-bar__actions{display:flex;align-items:center;gap:8px;justify-self:end}.pw-bar__login{background:transparent;border:0;padding:8px 16px;font:600 14px/1 Roboto,sans-serif;color:#5a6473;cursor:pointer;transition:color .2s cubic-bezier(.2,.7,.2,1)}.pw-bar__login:hover,.pw-bar__login:focus-visible{color:#1a1d21;outline:none}.pw-bar__cta{display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 24px;font:600 14px/1 Roboto,sans-serif;color:#fff!important;text-decoration:none;background:var(--first);border:1px solid var(--first);border-radius:var(--public-btn-radius);box-shadow:0 1px #0000000a;transition:transform .2s cubic-bezier(.2,.7,.2,1),box-shadow .2s cubic-bezier(.2,.7,.2,1),background-color .2s cubic-bezier(.2,.7,.2,1),border-color .2s cubic-bezier(.2,.7,.2,1);will-change:transform}.pw-bar__cta:hover,.pw-bar__cta:focus-visible{background:color-mix(in srgb,var(--first) 88%,#000 12%);border-color:color-mix(in srgb,var(--first) 88%,#000 12%);box-shadow:0 10px 24px -12px var(--first);color:#fff!important;outline:none;transform:translateY(-1px)}.pw-bar__toggle{width:40px;height:40px;display:none;place-items:center;background:transparent;border:0;cursor:pointer;padding:0}.pw-bar__toggle span{display:block;width:20px;height:1.5px;background:#1a1d21;margin:3px 0;transition:transform .2s cubic-bezier(.2,.7,.2,1),opacity .2s cubic-bezier(.2,.7,.2,1)}.pw-bar__toggle--open span:nth-child(1){transform:translateY(4.5px) rotate(45deg)}.pw-bar__toggle--open span:nth-child(2){opacity:0}.pw-bar__toggle--open span:nth-child(3){transform:translateY(-4.5px) rotate(-45deg)}@media(max-width:575px){.pw-bar__inner{padding:0 16px;height:60px}.pw-bar__brand-logo{height:24px}.pw-bar__cta{padding:0 16px;height:36px;font-size:13px}.pw-bar__login{padding:8px 10px;font-size:13px}}\n"], dependencies: [{ kind: "directive", type: i4.LazyImgDirective, selector: "img" }, { kind: "pipe", type: i1$2.TranslocoPipe, name: "transloco" }] }); }
3970
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: HeaderComponent, isStandalone: false, selector: "pw-header", inputs: { landing: "landing" }, usesInheritance: true, ngImport: i0, template: "<header class=\"pw-bar\" [class.pw-bar--solid]=\"!landing\">\n <div class=\"pw-bar__inner\">\n <a class=\"pw-bar__brand\" href=\"/\">\n @if (logo) {\n <img class=\"pw-bar__brand-logo\" [src]=\"logo\" alt=\"\" (error)=\"onLogoError()\" />\n }\n <span class=\"visually-hidden\">Home</span>\n </a>\n\n <div class=\"pw-bar__actions\">\n @if (!loggedIn) {\n <button type=\"button\" class=\"pw-bar__login\" (click)=\"navigateToLogin()\">\n {{ 'Button.Login' | transloco }}\n </button>\n }\n <a class=\"pw-bar__cta\" href=\"/\">\n {{ 'Button.Home' | transloco }}\n </a>\n <button type=\"button\"\n class=\"pw-bar__toggle\"\n [class.pw-bar__toggle--open]=\"!isMenuCollapsed\"\n [attr.aria-expanded]=\"!isMenuCollapsed\"\n aria-label=\"Toggle menu\"\n (click)=\"toggleMenu()\">\n <span></span><span></span><span></span>\n </button>\n </div>\n </div>\n</header>\n", styles: ["@charset \"UTF-8\";:root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_sub_bg: color-mix(in srgb, var(--first, rgb(23 105 225)) 85%, #000000);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255);--dashboard_bg: rgb(255 255 255);--public-btn-radius: 24px}.pw-bar{position:fixed;top:0;left:0;right:0;z-index:50;padding:0 var(--lp-gutter, clamp(20px, 4vw, 48px));background:color-mix(in srgb,#f7f8fa 80%,transparent);backdrop-filter:saturate(180%) blur(12px);-webkit-backdrop-filter:saturate(180%) blur(12px);border-bottom:1px solid transparent;transition:background-color .2s cubic-bezier(.2,.7,.2,1),border-color .2s cubic-bezier(.2,.7,.2,1)}.pw-bar--solid,.pw-bar:hover{background:#f7f8fa;border-bottom-color:#e2e5ea}.pw-bar__inner{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:32px;max-width:var(--lp-max-w-content, 1200px);margin:0 auto;padding:0;height:56px}.pw-bar__brand{display:inline-flex;align-items:center;text-decoration:none}.pw-bar__brand-logo{height:28px;width:auto;display:block;object-fit:contain}.pw-bar__actions{display:flex;align-items:center;gap:8px;justify-self:end}.pw-bar__login{background:transparent;border:0;padding:8px 16px;font:600 14px/1 Roboto,sans-serif;color:#5a6473;cursor:pointer;transition:color .2s cubic-bezier(.2,.7,.2,1)}.pw-bar__login:hover,.pw-bar__login:focus-visible{color:#1a1d21;outline:none}.pw-bar__cta{display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 24px;font:600 14px/1 Roboto,sans-serif;color:#fff!important;text-decoration:none;background:var(--first);border:1px solid var(--first);border-radius:var(--public-btn-radius);box-shadow:0 1px #0000000a;transition:transform .2s cubic-bezier(.2,.7,.2,1),box-shadow .2s cubic-bezier(.2,.7,.2,1),background-color .2s cubic-bezier(.2,.7,.2,1),border-color .2s cubic-bezier(.2,.7,.2,1);will-change:transform}.pw-bar__cta:hover,.pw-bar__cta:focus-visible{background:color-mix(in srgb,var(--first) 88%,#000 12%);border-color:color-mix(in srgb,var(--first) 88%,#000 12%);box-shadow:0 10px 24px -12px var(--first);color:#fff!important;outline:none;transform:translateY(-1px)}.pw-bar__toggle{width:40px;height:40px;display:none;place-items:center;background:transparent;border:0;cursor:pointer;padding:0}.pw-bar__toggle span{display:block;width:20px;height:1.5px;background:#1a1d21;margin:3px 0;transition:transform .2s cubic-bezier(.2,.7,.2,1),opacity .2s cubic-bezier(.2,.7,.2,1)}.pw-bar__toggle--open span:nth-child(1){transform:translateY(4.5px) rotate(45deg)}.pw-bar__toggle--open span:nth-child(2){opacity:0}.pw-bar__toggle--open span:nth-child(3){transform:translateY(-4.5px) rotate(-45deg)}@media(max-width:575px){.pw-bar__inner{padding:0 16px;height:60px}.pw-bar__brand-logo{height:24px}.pw-bar__cta{padding:0 16px;height:36px;font-size:13px}.pw-bar__login{padding:8px 10px;font-size:13px}}\n"], dependencies: [{ kind: "directive", type: i4.LazyImgDirective, selector: "img" }, { kind: "pipe", type: i5$1.TranslocoPipe, name: "transloco" }] }); }
3503
3971
  }
3504
3972
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: HeaderComponent, decorators: [{
3505
3973
  type: Component,
@@ -3707,7 +4175,7 @@ class EntityGroupComponent extends AppBaseComponent {
3707
4175
  super.ngOnDestroy();
3708
4176
  }
3709
4177
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: EntityGroupComponent, deps: [{ token: i1.GroupService }, { token: i1.SubscriptionService }, { token: i5.NgbModal }, { token: i0.Injector }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
3710
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: EntityGroupComponent, isStandalone: false, selector: "pw-entity-group", viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<div>\n <div class=\"row\">\n <div class=\"col-12 mb-3\">\n <h2>Team View</h2>\n\n <p>\n In this section, based on your permissions, you can add/remove members from your\n teams.\n <br />\n Then, you'll be able to see powerful insight on the activities performed by your\n team's members.\n </p>\n </div>\n </div>\n\n <div class=\"row\">\n <div class=\"col-md-6 col-xs-12 d-flex align-items-sm-center align-items-top text-start pe-0\">\n <a aria-label=\"Navigate to Target\"\n (click)=\"back()\"\n class=\"previous\"><i class=\"fa fa-arrow-alt-circle-left\" aria-hidden=\"true\"></i></a>\n <h3 class=\"ms-sm-2 d-inline mt-0 card-title mb-3 mb-sm-0\">\n Team view: {{ selectedGroup?.name }}\n </h3>\n </div>\n <div class=\"col-md-6 col-xs-12 text-end justify-content-end\">\n @if (hasAccess) {\n <button\n class=\"btn btn-sm btn-outline-primary\"\n (click)=\"open()\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> Add Members\n </button>\n }\n @if (hasAccess) {\n <button\n class=\"btn btn-sm btn-outline-primary ms-2\"\n (click)=\"navigateToCommunications()\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> See Communications\n </button>\n }\n </div>\n </div>\n\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n }\n\n <div class=\"primeng-datatable-container actions-collapsed table-responsive\"\n [class.hideTable]=\"subscribedMembers?.length === 0\">\n <p-table #dt\n [value]=\"subscribedMembers\"\n [paginator]=\"true\"\n [rows]=\"PAGE_SIZE\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th scope=\"true\">{{ 'Label.FirstName' | transloco }}</th>\n <th scope=\"true\">{{ 'Label.LastName' | transloco }}</th>\n <th scope=\"true\">{{ 'Label.Email' | transloco }}</th>\n <th scope=\"true\" class=\"actions-list-three\">{{ 'Label.Actions' | transloco }}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\"\n let-member>\n <tr class=\"table-row\">\n <td data-head=\"First Name\">\n <a [routerLink]=\"['/members', member.slug]\">{{ member.first_name || null }}\n </a>\n </td>\n <td data-head=\"Last Name\">{{ member.last_name || null }}</td>\n <td data-head=\"Email\">{{ member.email }}</td>\n <td data-head=\"Action\">\n <ul class=\"list-unstyled list-inline list-action\">\n @if (member.id !== userId) {\n <li pTooltip=\"Message\"\n tooltipPosition=\"top\"\n appendTo=\"body\"\n class=\"me-2 me-sm-3\"\n [routerLink]=\"['/message']\"\n [fragment]=\"member.slug\">\n <i\n class=\"fa fa-comments cta1-icon\"\n *rbacAllow=\"chatPermission\"\n aria-hidden=\"true\"\n ></i>\n </li>\n }\n @if (hasAccess) {\n <li pTooltip=\"Remove\"\n tooltipPosition=\"top\"\n appendTo=\"body\"\n class=\"me-2 me-sm-3\"\n (click)=\"onDelete(member.id)\"\n (keydown.enter)=\"onDelete(member.id)\"\n (keydown.space)=\"onDelete(member.id)\"\n >\n <i class=\"fa fa-trash delete-icon\" aria-hidden=\"true\"></i>\n </li>\n }\n </ul>\n </td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n @if (subscribedMembers?.length === 0 && isLoaded) {\n <pw-no-data [withImage]=\"true\" message=\"There are no members in this team yet.\"\n >\n </pw-no-data>\n }\n </div>\n\n <ng-template #content\n let-modal>\n <div class=\"modal-header\">\n <h4 class=\"modal-title\"\n id=\"modal-basic-title\">Add Members</h4>\n <button type=\"button\"\n class=\"btn-close float-end\"\n aria-label=\"Close\"\n (click)=\"modal.dismiss()\">\n\n </button>\n </div>\n <div class=\"modal-body\">\n <p>Please start typing to select the members to add to this team.</p>\n <div class=\"ui-fluid skills-modal\">\n <p-autoComplete appendTo=\"body\" [suggestions]=\"filteredMembers\"\n [(ngModel)]=\"selectedMembers\"\n dataKey=\"id\"\n optionLabel=\"displayName\"\n (completeMethod)=\"search($event)\"\n styleClass=\"w-100\"\n placeholder=\"Member\"\n [multiple]=\"true\">\n </p-autoComplete>\n </div>\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\"\n class=\"btn btn-outline-default\"\n (click)=\"closeModal(modal)\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"button\"\n class=\"btn btn-primary\"\n (click)=\"onSave()\">\n {{ 'Button.Save' | transloco }}\n </button>\n </div>\n </ng-template>\n", styles: ["a.previous i{line-height:23px}\n"], dependencies: [{ kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i4.RbacAllowDirective, selector: "[rbacAllow]", inputs: ["rbacAllow"] }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i3$1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "component", type: i7.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "size", "showGridlines", "stripedRows", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll"], outputs: ["contextMenuSelectionChange", "selectAllChange", "selectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i8$1.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i9.ProgressSpinner, selector: "p-progressSpinner, p-progress-spinner, p-progressspinner", inputs: ["styleClass", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }, { kind: "component", type: i10.AutoComplete, selector: "p-autoComplete, p-autocomplete, p-auto-complete", inputs: ["minLength", "minQueryLength", "delay", "panelStyle", "styleClass", "panelStyleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "readonly", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "autoHighlight", "forceSelection", "type", "autoZIndex", "baseZIndex", "ariaLabel", "dropdownAriaLabel", "ariaLabelledBy", "dropdownIcon", "unique", "group", "completeOnFocus", "showClear", "dropdown", "showEmptyMessage", "dropdownMode", "multiple", "addOnTab", "tabindex", "dataKey", "emptyMessage", "showTransitionOptions", "hideTransitionOptions", "autofocus", "autocomplete", "optionGroupChildren", "optionGroupLabel", "overlayOptions", "suggestions", "optionLabel", "optionValue", "id", "searchMessage", "emptySelectionMessage", "selectionMessage", "autoOptionFocus", "selectOnFocus", "searchLocale", "optionDisabled", "focusOnHover", "typeahead", "addOnBlur", "separator", "appendTo", "motionOptions"], outputs: ["completeMethod", "onSelect", "onUnselect", "onAdd", "onFocus", "onBlur", "onDropdownClick", "onClear", "onInputKeydown", "onKeyUp", "onShow", "onHide", "onLazyLoad"] }, { kind: "component", type: NoDataComponent, selector: "pw-no-data", inputs: ["message", "description", "withImage"] }, { kind: "pipe", type: i1$2.TranslocoPipe, name: "transloco" }] }); }
4178
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: EntityGroupComponent, isStandalone: false, selector: "pw-entity-group", viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<div>\n <div class=\"row\">\n <div class=\"col-12 mb-3\">\n <h2>Team View</h2>\n\n <p>\n In this section, based on your permissions, you can add/remove members from your\n teams.\n <br />\n Then, you'll be able to see powerful insight on the activities performed by your\n team's members.\n </p>\n </div>\n </div>\n\n <div class=\"row\">\n <div class=\"col-md-6 col-xs-12 d-flex align-items-sm-center align-items-top text-start pe-0\">\n <a aria-label=\"Navigate to Target\"\n (click)=\"back()\"\n class=\"previous\"><i class=\"fa fa-arrow-alt-circle-left\" aria-hidden=\"true\"></i></a>\n <h3 class=\"ms-sm-2 d-inline mt-0 card-title mb-3 mb-sm-0\">\n Team view: {{ selectedGroup?.name }}\n </h3>\n </div>\n <div class=\"col-md-6 col-xs-12 text-end justify-content-end\">\n @if (hasAccess) {\n <button\n class=\"btn btn-sm btn-outline-primary\"\n (click)=\"open()\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> Add Members\n </button>\n }\n @if (hasAccess) {\n <button\n class=\"btn btn-sm btn-outline-primary ms-2\"\n (click)=\"navigateToCommunications()\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> See Communications\n </button>\n }\n </div>\n </div>\n\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n }\n\n <div class=\"primeng-datatable-container actions-collapsed table-responsive\"\n [class.hideTable]=\"subscribedMembers?.length === 0\">\n <p-table #dt\n [value]=\"subscribedMembers\"\n [paginator]=\"true\"\n [rows]=\"PAGE_SIZE\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th scope=\"true\">{{ 'Label.FirstName' | transloco }}</th>\n <th scope=\"true\">{{ 'Label.LastName' | transloco }}</th>\n <th scope=\"true\">{{ 'Label.Email' | transloco }}</th>\n <th scope=\"true\" class=\"actions-list-three\">{{ 'Label.Actions' | transloco }}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\"\n let-member>\n <tr class=\"table-row\">\n <td data-head=\"First Name\">\n <a [routerLink]=\"['/members', member.slug]\">{{ member.first_name || null }}\n </a>\n </td>\n <td data-head=\"Last Name\">{{ member.last_name || null }}</td>\n <td data-head=\"Email\">{{ member.email }}</td>\n <td data-head=\"Action\">\n <ul class=\"list-unstyled list-inline list-action\">\n @if (member.id !== userId) {\n <li pTooltip=\"Message\"\n tooltipPosition=\"top\"\n appendTo=\"body\"\n class=\"me-2 me-sm-3\"\n [routerLink]=\"['/message']\"\n [fragment]=\"member.slug\">\n <i\n class=\"fa fa-comments cta1-icon\"\n *rbacAllow=\"chatPermission\"\n aria-hidden=\"true\"\n ></i>\n </li>\n }\n @if (hasAccess) {\n <li pTooltip=\"Remove\"\n tooltipPosition=\"top\"\n appendTo=\"body\"\n class=\"me-2 me-sm-3\"\n (click)=\"onDelete(member.id)\"\n (keydown.enter)=\"onDelete(member.id)\"\n (keydown.space)=\"onDelete(member.id)\"\n >\n <i class=\"fa fa-trash delete-icon\" aria-hidden=\"true\"></i>\n </li>\n }\n </ul>\n </td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n @if (subscribedMembers?.length === 0 && isLoaded) {\n <pw-no-data [withImage]=\"true\" message=\"There are no members in this team yet.\"\n >\n </pw-no-data>\n }\n </div>\n\n <ng-template #content\n let-modal>\n <div class=\"modal-header\">\n <h4 class=\"modal-title\"\n id=\"modal-basic-title\">Add Members</h4>\n <button type=\"button\"\n class=\"btn-close float-end\"\n aria-label=\"Close\"\n (click)=\"modal.dismiss()\">\n\n </button>\n </div>\n <div class=\"modal-body\">\n <p>Please start typing to select the members to add to this team.</p>\n <div class=\"ui-fluid skills-modal\">\n <p-autoComplete appendTo=\"body\" [suggestions]=\"filteredMembers\"\n [(ngModel)]=\"selectedMembers\"\n dataKey=\"id\"\n optionLabel=\"displayName\"\n (completeMethod)=\"search($event)\"\n styleClass=\"w-100\"\n placeholder=\"Member\"\n [multiple]=\"true\">\n </p-autoComplete>\n </div>\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\"\n class=\"btn btn-outline-default\"\n (click)=\"closeModal(modal)\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"button\"\n class=\"btn btn-primary\"\n (click)=\"onSave()\">\n {{ 'Button.Save' | transloco }}\n </button>\n </div>\n </ng-template>\n", styles: ["a.previous i{line-height:23px}\n"], dependencies: [{ kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i4.RbacAllowDirective, selector: "[rbacAllow]", inputs: ["rbacAllow"] }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i3$1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "component", type: i7.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "size", "showGridlines", "stripedRows", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll"], outputs: ["contextMenuSelectionChange", "selectAllChange", "selectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i8$1.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i9.ProgressSpinner, selector: "p-progressSpinner, p-progress-spinner, p-progressspinner", inputs: ["styleClass", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }, { kind: "component", type: i10.AutoComplete, selector: "p-autoComplete, p-autocomplete, p-auto-complete", inputs: ["minLength", "minQueryLength", "delay", "panelStyle", "styleClass", "panelStyleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "readonly", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "autoHighlight", "forceSelection", "type", "autoZIndex", "baseZIndex", "ariaLabel", "dropdownAriaLabel", "ariaLabelledBy", "dropdownIcon", "unique", "group", "completeOnFocus", "showClear", "dropdown", "showEmptyMessage", "dropdownMode", "multiple", "addOnTab", "tabindex", "dataKey", "emptyMessage", "showTransitionOptions", "hideTransitionOptions", "autofocus", "autocomplete", "optionGroupChildren", "optionGroupLabel", "overlayOptions", "suggestions", "optionLabel", "optionValue", "id", "searchMessage", "emptySelectionMessage", "selectionMessage", "autoOptionFocus", "selectOnFocus", "searchLocale", "optionDisabled", "focusOnHover", "typeahead", "addOnBlur", "separator", "appendTo", "motionOptions"], outputs: ["completeMethod", "onSelect", "onUnselect", "onAdd", "onFocus", "onBlur", "onDropdownClick", "onClear", "onInputKeydown", "onKeyUp", "onShow", "onHide", "onLazyLoad"] }, { kind: "component", type: NoDataComponent, selector: "pw-no-data", inputs: ["message", "description", "withImage"] }, { kind: "pipe", type: i5$1.TranslocoPipe, name: "transloco" }] }); }
3711
4179
  }
3712
4180
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: EntityGroupComponent, decorators: [{
3713
4181
  type: Component,
@@ -3785,7 +4253,7 @@ class InputContainerComponent {
3785
4253
  useExisting: InputContainerComponent,
3786
4254
  multi: true
3787
4255
  }
3788
- ], ngImport: i0, template: "@if (useAriaLabelledbyOnly) {\n <span class=\"pw-input-container-label mb-2 d-block\" [attr.id]=\"controlId ? (controlId + '-label') : null\">\n <span [class]=\"labelClass\"\n [ngClass]=\"{ mandatory: required && !control?.disabled }\">\n {{ label }}\n </span>\n @if (showTooltip && tooltipText) {\n <span class=\"info-circle tooltip-wrap ms-1\"\n [pTooltip]=\"tooltipText\"\n [appendTo]=\"'body'\"\n [tooltipPosition]=\"tooltipPosition || 'top'\">\n </span>\n }\n @if (showTriangle) {\n <span class=\"tooltip-wrap ms-1\"\n [pTooltip]=\"'Last month this value was set to ' + showTriangleText\"\n [appendTo]=\"'body'\"\n [tooltipPosition]=\"tooltipPosition || 'top'\">\n <i class=\"fas fa-exclamation-triangle text-warning\"></i>\n </span>\n }\n <!-- after label -->\n @if (afterLabel && showAfterLabel) {\n <span\n [innerHTML]=\"afterLabel\"></span>\n }\n <!-- after label end -->\n </span>\n}\n@if (!useAriaLabelledbyOnly) {\n <label class=\"pw-input-container-label mb-2\" [attr.for]=\"controlId || name\">\n <span [class]=\"labelClass\"\n [ngClass]=\"{ mandatory: required && !control?.disabled }\">\n {{ label }}\n </span>\n @if (showTooltip && tooltipText) {\n <span class=\"info-circle tooltip-wrap ms-1\"\n [pTooltip]=\"tooltipText\"\n [appendTo]=\"'body'\"\n [tooltipPosition]=\"tooltipPosition || 'top'\">\n </span>\n }\n @if (showTriangle) {\n <span class=\"tooltip-wrap ms-1\"\n [pTooltip]=\"'Last month this value was set to ' + showTriangleText\"\n [appendTo]=\"'body'\"\n [tooltipPosition]=\"tooltipPosition || 'top'\">\n <i class=\"fas fa-exclamation-triangle text-warning\"></i>\n </span>\n }\n <!-- after label -->\n @if (afterLabel && showAfterLabel) {\n <span\n [innerHTML]=\"afterLabel\"></span>\n }\n <!-- after label end -->\n </label>\n}\n\n<div class=\"mb-3\">\n <ng-content></ng-content>\n @if (control?.errors) {\n <pw-field-error-display [displayError]=\"control?.invalid && control?.touched\"\n [errorMsg]=\"errorMsg | transloco\">\n </pw-field-error-display>\n }\n</div>\n", 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-input-container-label{display:block;color:gray;font-size:.75rem;font-weight:500;letter-spacing:2px;text-transform:uppercase;height:18px;line-height:18px;margin-bottom:8px!important}.mandatory{position:relative;padding-right:10px}.mandatory:after{position:absolute;color:#ff586b;content:\"*\";font-size:15px;line-height:1;right:0;top:0}div.mb-3:has(ui-switch){min-height:36px;display:flex;align-items:center}\n"], dependencies: [{ kind: "directive", type: i8.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3$1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "component", type: i4$1.FieldErrorDisplayComponent, selector: "pw-field-error-display", inputs: ["errorMsg", "displayError"] }, { kind: "pipe", type: i1$2.TranslocoPipe, name: "transloco" }] }); }
4256
+ ], ngImport: i0, template: "@if (useAriaLabelledbyOnly) {\n <span class=\"pw-input-container-label mb-2 d-block\" [attr.id]=\"controlId ? (controlId + '-label') : null\">\n <span [class]=\"labelClass\"\n [ngClass]=\"{ mandatory: required && !control?.disabled }\">\n {{ label }}\n </span>\n @if (showTooltip && tooltipText) {\n <span class=\"info-circle tooltip-wrap ms-1\"\n [pTooltip]=\"tooltipText\"\n [appendTo]=\"'body'\"\n [tooltipPosition]=\"tooltipPosition || 'top'\">\n </span>\n }\n @if (showTriangle) {\n <span class=\"tooltip-wrap ms-1\"\n [pTooltip]=\"'Last month this value was set to ' + showTriangleText\"\n [appendTo]=\"'body'\"\n [tooltipPosition]=\"tooltipPosition || 'top'\">\n <i class=\"fas fa-exclamation-triangle text-warning\"></i>\n </span>\n }\n <!-- after label -->\n @if (afterLabel && showAfterLabel) {\n <span\n [innerHTML]=\"afterLabel\"></span>\n }\n <!-- after label end -->\n </span>\n}\n@if (!useAriaLabelledbyOnly) {\n <label class=\"pw-input-container-label mb-2\" [attr.for]=\"controlId || name\">\n <span [class]=\"labelClass\"\n [ngClass]=\"{ mandatory: required && !control?.disabled }\">\n {{ label }}\n </span>\n @if (showTooltip && tooltipText) {\n <span class=\"info-circle tooltip-wrap ms-1\"\n [pTooltip]=\"tooltipText\"\n [appendTo]=\"'body'\"\n [tooltipPosition]=\"tooltipPosition || 'top'\">\n </span>\n }\n @if (showTriangle) {\n <span class=\"tooltip-wrap ms-1\"\n [pTooltip]=\"'Last month this value was set to ' + showTriangleText\"\n [appendTo]=\"'body'\"\n [tooltipPosition]=\"tooltipPosition || 'top'\">\n <i class=\"fas fa-exclamation-triangle text-warning\"></i>\n </span>\n }\n <!-- after label -->\n @if (afterLabel && showAfterLabel) {\n <span\n [innerHTML]=\"afterLabel\"></span>\n }\n <!-- after label end -->\n </label>\n}\n\n<div class=\"mb-3\">\n <ng-content></ng-content>\n @if (control?.errors) {\n <pw-field-error-display [displayError]=\"control?.invalid && control?.touched\"\n [errorMsg]=\"errorMsg | transloco\">\n </pw-field-error-display>\n }\n</div>\n", 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-input-container-label{display:block;color:gray;font-size:.75rem;font-weight:500;letter-spacing:2px;text-transform:uppercase;height:18px;line-height:18px;margin-bottom:8px!important}.mandatory{position:relative;padding-right:10px}.mandatory:after{position:absolute;color:#ff586b;content:\"*\";font-size:15px;line-height:1;right:0;top:0}div.mb-3:has(ui-switch){min-height:36px;display:flex;align-items:center}\n"], dependencies: [{ kind: "directive", type: i8.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3$1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "component", type: i4$1.FieldErrorDisplayComponent, selector: "pw-field-error-display", inputs: ["errorMsg", "displayError"] }, { kind: "pipe", type: i5$1.TranslocoPipe, name: "transloco" }] }); }
3789
4257
  }
3790
4258
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: InputContainerComponent, decorators: [{
3791
4259
  type: Component,
@@ -4000,7 +4468,7 @@ class GroupDefinitionComponent extends AppBaseComponent {
4000
4468
  super.ngOnDestroy();
4001
4469
  }
4002
4470
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: GroupDefinitionComponent, deps: [{ token: i1.GroupService }, { token: i2$2.UntypedFormBuilder }, { token: i1.SubscriptionService }, { token: i1.DataService }, { token: i0.Injector }, { token: i0.ChangeDetectorRef }, { token: ConfirmDialogService }], target: i0.ɵɵFactoryTarget.Component }); }
4003
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: GroupDefinitionComponent, isStandalone: false, selector: "pw-group-definition", usesInheritance: true, ngImport: i0, template: "<section>\n <div class=\"row\">\n <div class=\"col-12 mb-3\">\n <h2>Enterprise Teams Categories</h2>\n\n <p>\n Here you can define the categories for your enterprise's groups. For example \"Sales\n Department\", \"Development Department\", etc.\n <br />\n Once the category created, you'll be able to add teams to them and see useful\n insight based on the members activity in the corresponding team.\n </p>\n </div>\n </div>\n\n @if (!viewDefinition) {\n <div class=\"row\"\n >\n <div class=\"col-6 d-flex align-items-center text-start mb-sm-3 mb-lg-0\">\n <a aria-label=\"Navigate to Target\"\n (click)=\"previous()\"\n class=\"previous\"><i class=\"fa fa-arrow-alt-circle-left\" aria-hidden=\"true\"></i></a>\n </div>\n @if (hasAccess) {\n <div class=\"col-6\"\n >\n <button class=\"float-end btn btn-sm btn-outline-primary me-2\"\n (click)=\"viewDefinitions()\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> Create Team Category\n </button>\n </div>\n }\n </div>\n }\n\n @if (viewDefinition) {\n <div>\n <h4 class=\"card-title d-inline mb-5\">\n {{ viewEdit ? 'Update the' : 'Create a new' }} category\n </h4>\n @if (!viewEdit) {\n <div class=\"mt-4\"\n >\n <form [formGroup]=\"form\"\n (ngSubmit)=\"saveGroupDefinition()\">\n <div class=\"row\">\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Label.Name' | transloco\" name=\"name\" controlId=\"group-definition-name\">\n <input type=\"text\"\n id=\"group-definition-name\"\n class=\"form-control\"\n formControlName=\"name\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Name' | transloco\"\n [attr.aria-label]=\"'Label.Name' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.Description' | transloco\" name=\"description\" controlId=\"group-definition-description\">\n <input type=\"text\"\n id=\"group-definition-description\"\n class=\"form-control\"\n formControlName=\"description\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Description' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.Description' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.IsPrivate' | transloco\" name=\"is_private\" controlId=\"group-definition-is_private\" [useAriaLabelledbyOnly]=\"true\">\n <ui-switch\n [attr.aria-labelledby]=\"'group-definition-is_private-label'\"\n formControlName=\"is_private\">\n </ui-switch>\n </pw-input-container>\n </div>\n </div>\n <div class=\"row text-end mt-4\">\n <div class=\"col-12\">\n <button type=\"button\"\n class=\"btn btn-outline-default me-2\"\n (click)=\"onCancel()\"\n (keydown.enter)=\"onCancel()\" >\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"categoryBusyButton\"\n class=\"btn btn-primary\">Add Category</button>\n </div>\n </div>\n </form>\n </div>\n }\n @if (viewEdit) {\n <div class=\"mt-4\"\n >\n <form [formGroup]=\"form\"\n (ngSubmit)=\"updateDetails()\">\n <div class=\"row\">\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Label.Name' | transloco\" name=\"name\" controlId=\"group-definition-edit-name\">\n <input type=\"text\"\n id=\"group-definition-edit-name\"\n class=\"form-control\"\n formControlName=\"name\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Name' | transloco\"\n [attr.aria-label]=\"'Label.Name' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.Description' | transloco\" name=\"description\" controlId=\"group-definition-edit-description\">\n <input type=\"text\"\n id=\"group-definition-edit-description\"\n class=\"form-control\"\n formControlName=\"description\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Description' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.Description' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.IsPrivate' | transloco\" name=\"is_private\" controlId=\"group-definition-edit-is_private\" [useAriaLabelledbyOnly]=\"true\">\n <ui-switch\n [attr.aria-labelledby]=\"'group-definition-edit-is_private-label'\"\n formControlName=\"is_private\">\n </ui-switch>\n </pw-input-container>\n </div>\n </div>\n <div class=\"row text-end mt-4\">\n <div class=\"col-12\">\n <button type=\"button\"\n class=\"btn btn-outline-default me-2\"\n (click)=\"onCancel()\"\n (keydown.enter)=\"onCancel()\" >\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"categoryBusyButton\"\n class=\"btn btn-primary\">\n {{ 'Button.Update' | transloco }}\n </button>\n </div>\n </div>\n </form>\n </div>\n }\n </div>\n }\n\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n }\n\n @if (groupDefinition?.length !== 0) {\n @if (!viewDefinition) {\n <div class=\"row mb-last-3 group-definitions-wrapper\"\n >\n @for (group of groupDefinition; track group) {\n <div class=\"col-12 col-md-6 col-xl-4 mt-3\"\n >\n <div class=\"card\">\n <div class=\"card-content\">\n <div class=\"card-header\">\n <h5 class=\"mb-3\">{{ group.name }}</h5>\n <p>{{ group.description | slice: 0:200 }}</p>\n </div>\n <div class=\"card-footer\">\n <div class=\"float-end px-2\">\n @if (hasAccess) {\n <a class=\"btn btn-sm btn-outline-danger me-2\"\n (click)=\"onDelete(group.id)\">{{ 'Button.Delete' | transloco }}</a>\n }\n @if (hasAccess) {\n <a class=\"btn btn-sm btn-outline-primary me-2\"\n (click)=\"onGroupDefinitionEdit(group.id)\">{{ 'Button.Edit' | transloco }}</a>\n }\n </div>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n }\n @if (groupDefinition?.length === 0 && hasAccess && !viewDefinition && isLoaded) {\n <div>\n <pw-no-data [withImage]=\"true\" [message]=\"'Enterprise.Teams.NoLabelsMessage' | transloco\"> </pw-no-data>\n </div>\n }\n @if (groupDefinition?.length === 0 && !hasAccess && isLoaded) {\n <div>\n <pw-no-data [withImage]=\"true\" [message]=\"'Enterprise.Teams.NoLabelsUserMessage' | transloco\"> </pw-no-data>\n </div>\n }\n </section>\n", styles: [".mb-last-3{margin-bottom:3rem}\n"], dependencies: [{ kind: "directive", type: i2$2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i4.ButtonBusyDirective, selector: "[buttonBusy]", inputs: ["buttonBusy", "busyText"] }, { kind: "component", type: i9.ProgressSpinner, selector: "p-progressSpinner, p-progress-spinner, p-progressspinner", inputs: ["styleClass", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }, { kind: "component", type: i6.UiSwitchComponent, selector: "ui-switch", inputs: ["size", "color", "switchOffColor", "switchColor", "defaultBgColor", "defaultBoColor", "checkedLabel", "uncheckedLabel", "checkedTextColor", "uncheckedTextColor", "beforeChange", "ariaLabel", "checked", "disabled", "reverse", "loading"], outputs: ["change", "changeEvent", "valueChange"] }, { kind: "component", type: InputContainerComponent, selector: "pw-input-container", inputs: ["name", "controlId", "useAriaLabelledbyOnly", "label", "labelClass", "tooltipPosition", "required", "errorMsg", "isReadOnly", "showTooltip", "tooltipText", "showTriangle", "afterLabel", "showAfterLabel", "showTriangleText", "isLeftTooltip"] }, { kind: "component", type: NoDataComponent, selector: "pw-no-data", inputs: ["message", "description", "withImage"] }, { kind: "pipe", type: i1$2.TranslocoPipe, name: "transloco" }, { kind: "pipe", type: i8.SlicePipe, name: "slice" }] }); }
4471
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: GroupDefinitionComponent, isStandalone: false, selector: "pw-group-definition", usesInheritance: true, ngImport: i0, template: "<section>\n <div class=\"row\">\n <div class=\"col-12 mb-3\">\n <h2>Enterprise Teams Categories</h2>\n\n <p>\n Here you can define the categories for your enterprise's groups. For example \"Sales\n Department\", \"Development Department\", etc.\n <br />\n Once the category created, you'll be able to add teams to them and see useful\n insight based on the members activity in the corresponding team.\n </p>\n </div>\n </div>\n\n @if (!viewDefinition) {\n <div class=\"row\"\n >\n <div class=\"col-6 d-flex align-items-center text-start mb-sm-3 mb-lg-0\">\n <a aria-label=\"Navigate to Target\"\n (click)=\"previous()\"\n class=\"previous\"><i class=\"fa fa-arrow-alt-circle-left\" aria-hidden=\"true\"></i></a>\n </div>\n @if (hasAccess) {\n <div class=\"col-6\"\n >\n <button class=\"float-end btn btn-sm btn-outline-primary me-2\"\n (click)=\"viewDefinitions()\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> Create Team Category\n </button>\n </div>\n }\n </div>\n }\n\n @if (viewDefinition) {\n <div>\n <h4 class=\"card-title d-inline mb-5\">\n {{ viewEdit ? 'Update the' : 'Create a new' }} category\n </h4>\n @if (!viewEdit) {\n <div class=\"mt-4\"\n >\n <form [formGroup]=\"form\"\n (ngSubmit)=\"saveGroupDefinition()\">\n <div class=\"row\">\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Label.Name' | transloco\" name=\"name\" controlId=\"group-definition-name\">\n <input type=\"text\"\n id=\"group-definition-name\"\n class=\"form-control\"\n formControlName=\"name\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Name' | transloco\"\n [attr.aria-label]=\"'Label.Name' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.Description' | transloco\" name=\"description\" controlId=\"group-definition-description\">\n <input type=\"text\"\n id=\"group-definition-description\"\n class=\"form-control\"\n formControlName=\"description\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Description' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.Description' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.IsPrivate' | transloco\" name=\"is_private\" controlId=\"group-definition-is_private\" [useAriaLabelledbyOnly]=\"true\">\n <ui-switch\n [attr.aria-labelledby]=\"'group-definition-is_private-label'\"\n formControlName=\"is_private\">\n </ui-switch>\n </pw-input-container>\n </div>\n </div>\n <div class=\"row text-end mt-4\">\n <div class=\"col-12\">\n <button type=\"button\"\n class=\"btn btn-outline-default me-2\"\n (click)=\"onCancel()\"\n (keydown.enter)=\"onCancel()\" >\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"categoryBusyButton\"\n class=\"btn btn-primary\">Add Category</button>\n </div>\n </div>\n </form>\n </div>\n }\n @if (viewEdit) {\n <div class=\"mt-4\"\n >\n <form [formGroup]=\"form\"\n (ngSubmit)=\"updateDetails()\">\n <div class=\"row\">\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Label.Name' | transloco\" name=\"name\" controlId=\"group-definition-edit-name\">\n <input type=\"text\"\n id=\"group-definition-edit-name\"\n class=\"form-control\"\n formControlName=\"name\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Name' | transloco\"\n [attr.aria-label]=\"'Label.Name' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.Description' | transloco\" name=\"description\" controlId=\"group-definition-edit-description\">\n <input type=\"text\"\n id=\"group-definition-edit-description\"\n class=\"form-control\"\n formControlName=\"description\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Description' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.Description' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.IsPrivate' | transloco\" name=\"is_private\" controlId=\"group-definition-edit-is_private\" [useAriaLabelledbyOnly]=\"true\">\n <ui-switch\n [attr.aria-labelledby]=\"'group-definition-edit-is_private-label'\"\n formControlName=\"is_private\">\n </ui-switch>\n </pw-input-container>\n </div>\n </div>\n <div class=\"row text-end mt-4\">\n <div class=\"col-12\">\n <button type=\"button\"\n class=\"btn btn-outline-default me-2\"\n (click)=\"onCancel()\"\n (keydown.enter)=\"onCancel()\" >\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"categoryBusyButton\"\n class=\"btn btn-primary\">\n {{ 'Button.Update' | transloco }}\n </button>\n </div>\n </div>\n </form>\n </div>\n }\n </div>\n }\n\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n }\n\n @if (groupDefinition?.length !== 0) {\n @if (!viewDefinition) {\n <div class=\"row mb-last-3 group-definitions-wrapper\"\n >\n @for (group of groupDefinition; track group) {\n <div class=\"col-12 col-md-6 col-xl-4 mt-3\"\n >\n <div class=\"card\">\n <div class=\"card-content\">\n <div class=\"card-header\">\n <h5 class=\"mb-3\">{{ group.name }}</h5>\n <p>{{ group.description | slice: 0:200 }}</p>\n </div>\n <div class=\"card-footer\">\n <div class=\"float-end px-2\">\n @if (hasAccess) {\n <a class=\"btn btn-sm btn-outline-danger me-2\"\n (click)=\"onDelete(group.id)\">{{ 'Button.Delete' | transloco }}</a>\n }\n @if (hasAccess) {\n <a class=\"btn btn-sm btn-outline-primary me-2\"\n (click)=\"onGroupDefinitionEdit(group.id)\">{{ 'Button.Edit' | transloco }}</a>\n }\n </div>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n }\n @if (groupDefinition?.length === 0 && hasAccess && !viewDefinition && isLoaded) {\n <div>\n <pw-no-data [withImage]=\"true\" [message]=\"'Enterprise.Teams.NoLabelsMessage' | transloco\"> </pw-no-data>\n </div>\n }\n @if (groupDefinition?.length === 0 && !hasAccess && isLoaded) {\n <div>\n <pw-no-data [withImage]=\"true\" [message]=\"'Enterprise.Teams.NoLabelsUserMessage' | transloco\"> </pw-no-data>\n </div>\n }\n </section>\n", styles: [".mb-last-3{margin-bottom:3rem}\n"], dependencies: [{ kind: "directive", type: i2$2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i4.ButtonBusyDirective, selector: "[buttonBusy]", inputs: ["buttonBusy", "busyText"] }, { kind: "component", type: i9.ProgressSpinner, selector: "p-progressSpinner, p-progress-spinner, p-progressspinner", inputs: ["styleClass", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }, { kind: "component", type: i6.UiSwitchComponent, selector: "ui-switch", inputs: ["size", "color", "switchOffColor", "switchColor", "defaultBgColor", "defaultBoColor", "checkedLabel", "uncheckedLabel", "checkedTextColor", "uncheckedTextColor", "beforeChange", "ariaLabel", "checked", "disabled", "reverse", "loading"], outputs: ["change", "changeEvent", "valueChange"] }, { kind: "component", type: InputContainerComponent, selector: "pw-input-container", inputs: ["name", "controlId", "useAriaLabelledbyOnly", "label", "labelClass", "tooltipPosition", "required", "errorMsg", "isReadOnly", "showTooltip", "tooltipText", "showTriangle", "afterLabel", "showAfterLabel", "showTriangleText", "isLeftTooltip"] }, { kind: "component", type: NoDataComponent, selector: "pw-no-data", inputs: ["message", "description", "withImage"] }, { kind: "pipe", type: i5$1.TranslocoPipe, name: "transloco" }, { kind: "pipe", type: i8.SlicePipe, name: "slice" }] }); }
4004
4472
  }
4005
4473
  __decorate([
4006
4474
  ValidateForm('form'),
@@ -4234,7 +4702,7 @@ class GroupsComponent extends AppBaseComponent {
4234
4702
  super.ngOnDestroy();
4235
4703
  }
4236
4704
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: GroupsComponent, deps: [{ token: i2$2.UntypedFormBuilder }, { token: i1.GroupService }, { token: i1.SubscriptionService }, { token: i1.DataService }, { token: i0.Injector }, { token: i0.ChangeDetectorRef }, { token: ConfirmDialogService }], target: i0.ɵɵFactoryTarget.Component }); }
4237
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: GroupsComponent, isStandalone: false, selector: "pw-groups", usesInheritance: true, ngImport: i0, template: "<div>\n <section>\n <div class=\"row\">\n <div class=\"col-12 mb-3\">\n <h2>Enterprise Teams</h2>\n\n <p>\n Here you can define the teams for your Enterprise members. For example\n \"Corporate Sales Team\", \"Frontend Dev Team\" etc.\n <br />\n Once the teams created, you'll be able to add members to them and see useful\n insight based on the members activity in the corresponding team.\n </p>\n </div>\n </div>\n\n @if (!isGroupOperations) {\n <div class=\"row\"\n >\n <div class=\"col-12 d-flex justify-content-end align-items-center text-end mb-3\">\n @if (hasAccess) {\n <button\n class=\"btn btn-sm btn-outline-primary\"\n (click)=\"groupOperation()\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> Add Team\n </button>\n }\n @if (hasAccess) {\n <button\n class=\"btn btn-sm btn-outline-primary ms-1\"\n [routerLink]=\"['/' + subscription?.slug + '/enterprise', 'groups', 'labels']\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> Manage Team Categories\n </button>\n }\n </div>\n </div>\n }\n\n <!-- Add Group Template -->\n @if (isGroupOperations) {\n <div\n class=\"mb-4\">\n <h4 class=\"card-title d-inline\">{{ viewEdit ? 'Update the' : 'Create a new' }} team</h4>\n @if (!isGroupEdit) {\n <div class=\"mt-4\"\n >\n <form [formGroup]=\"form\"\n (ngSubmit)=\"saveGroup()\">\n <div class=\"row\">\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamName' | transloco\" name=\"name\" controlId=\"groups-teamName\">\n <input type=\"text\"\n id=\"groups-teamName\"\n class=\"form-control\"\n formControlName=\"name\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamName' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.TeamName' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.Description' | transloco\" name=\"description\" controlId=\"groups-description\">\n <input type=\"text\"\n id=\"groups-description\"\n class=\"form-control\"\n formControlName=\"description\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Description' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.Description' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamCategory' | transloco\" name=\"group_definition_id\" controlId=\"groups-teamCategory\">\n <p-select\n inputId=\"groups-teamCategory\"\n [options]=\"groupDefinition\"\n formControlName=\"group_definition_id\"\n [ngClass]=\"{'is-invalid': submitted && form.controls['group_definition_id'].errors}\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamCategory' | transloco\"\n optionValue=\"id\"\n optionLabel=\"name\">\n </p-select>\n </pw-input-container>\n </div>\n </div>\n <div class=\"row text-end mt-4\">\n <div class=\"col-12\">\n <button type=\"button\"\n (click)=\"isGroupOperations = !isGroupOperations\"\n class=\"btn btn-outline-default me-2\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"buttonBusy\"\n class=\"btn btn-primary\">Add</button>\n </div>\n </div>\n </form>\n </div>\n }\n <!-- Edit Group Template -->\n @if (isGroupEdit) {\n <div class=\"mt-4\"\n >\n <form [formGroup]=\"form\"\n (ngSubmit)=\"updateDetails()\">\n <div class=\"row\">\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamName' | transloco\" name=\"name\" controlId=\"groups-edit-teamName\">\n <input type=\"text\"\n id=\"groups-edit-teamName\"\n class=\"form-control\"\n formControlName=\"name\"\n required=\"true\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamName' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.TeamName' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamDescription' | transloco\" name=\"description\" controlId=\"groups-edit-description\">\n <input type=\"text\"\n id=\"groups-edit-description\"\n value=\"{{ description }}\"\n class=\"form-control\"\n formControlName=\"description\"\n required=\"true\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Description' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.TeamDescription' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamCategory' | transloco\" name=\"group_definition_id\" controlId=\"groups-edit-teamCategory\">\n <p-select\n inputId=\"groups-edit-teamCategory\"\n [options]=\"groupDefinition\"\n formControlName=\"group_definition_id\"\n [ngClass]=\"{'is-invalid': submitted && form.controls['group_definition_id'].errors}\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamCategory' | transloco\"\n optionValue=\"id\"\n optionLabel=\"name\">\n </p-select>\n </pw-input-container>\n </div>\n </div>\n <div class=\"row text-end mt-4\">\n <div class=\"col-12\">\n <button type=\"button\"\n class=\"btn btn-outline-default me-2\"\n (click)=\"cancelUpdate()\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"buttonBusy\"\n class=\"btn btn-primary\">\n {{ 'Button.Update' | transloco }}\n </button>\n </div>\n </div>\n </form>\n </div>\n }\n </div>\n }\n\n @if (!isGroupOperations) {\n <div class=\"row\"\n >\n <div class=\"col-4 mt-2 filter\">\n <p-select styleClass=\"pw-filter-select\"\n [options]=\"domainGroupDefinition\"\n optionLabel=\"name\"\n optionValue=\"id\"\n [ngModel]=\"'0'\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.FilterTeamCategory' | transloco\"\n (onChange)=\"filterDomainsList($event.value)\">\n </p-select>\n </div>\n </div>\n }\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n }\n @if (!isGroupOperations) {\n <div class=\"row group_list my-4\"\n >\n @for (group of allGroups; track trackByGroup($index, group)) {\n <div class=\"col-12 col-md-6 col-xl-4 mt-3\"\n >\n <div class=\"card\">\n <div class=\"card-content\">\n <div class=\"card-header\">\n <h5 class=\"mb-3\">{{ group.name }}</h5>\n <p>{{ group.description | slice: 0:200 }}</p>\n <span><a class=\"badge bg-primary\">{{\n group?.group_definition_name\n }}</a></span>\n </div>\n <div class=\"card-footer\">\n <div class=\"float-end px-2\">\n @if (hasAccess) {\n <a class=\"me-2 my-1\"\n aria-label=\"Delete\"\n (click)=\"onDelete(group.id)\">\n <i class=\"fa fa-trash delete-icon\" aria-hidden=\"true\"></i></a>\n }\n @if (hasAccess) {\n <a class=\"me-2 my-1\"\n aria-label=\"Edit Group\"\n (click)=\"editGroup(group.id)\"><i class=\"fa fa-edit edit-icon\" aria-hidden=\"true\"></i></a>\n }\n <a class=\"me-2 my-1\"\n aria-label=\"Members\"\n [routerLink]=\"[group.id, 'members']\"><i class=\"fa fa-tasks cta1-icon\" aria-hidden=\"true\"></i>\n </a>\n <a class=\"communications me-2 my-1\"\n aria-label=\"Communications\"\n (click)=\"navigateToCommunications(group.id)\"><i class=\"fa fa-comments cta2-icon\" aria-hidden=\"true\"></i></a>\n <a class=\"communications my-1\"\n aria-label=\"Documents\"\n (click)=\"navigateToDocumentations(group.id)\"><i class=\"fab fa-wikipedia-w cta1-icon\" aria-hidden=\"true\"></i></a>\n </div>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n </section>\n </div>\n @if (allGroups?.length === 0 && hasAccess && !isGroupOperations && isLoaded) {\n <div\n class=\"clear-both\">\n <pw-no-data [withImage]=\"true\" [message]=\"'Enterprise.Teams.NoTeamMessage' | transloco\"> </pw-no-data>\n </div>\n }\n @if (allGroups?.length === 0 && !hasAccess && !isGroupOperations && isLoaded) {\n <div\n class=\"clear-both\">\n <pw-no-data [withImage]=\"true\" [message]=\"'Enterprise.Teams.NoTeamMessageIfUser' | transloco\"> </pw-no-data>\n </div>\n }\n", styles: ["a.previous i{line-height:13px}.clear-both{clear:both}@media screen and (max-width:480px){.filter{flex:none;max-width:100%!important}.communications{margin-top:2%}}\n"], dependencies: [{ kind: "directive", type: i2$2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i2$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i4.ButtonBusyDirective, selector: "[buttonBusy]", inputs: ["buttonBusy", "busyText"] }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i6$1.Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "styleClass", "panelStyleClass", "readonly", "editable", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "filterValue", "options", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "component", type: i9.ProgressSpinner, selector: "p-progressSpinner, p-progress-spinner, p-progressspinner", inputs: ["styleClass", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }, { kind: "directive", type: i8.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: InputContainerComponent, selector: "pw-input-container", inputs: ["name", "controlId", "useAriaLabelledbyOnly", "label", "labelClass", "tooltipPosition", "required", "errorMsg", "isReadOnly", "showTooltip", "tooltipText", "showTriangle", "afterLabel", "showAfterLabel", "showTriangleText", "isLeftTooltip"] }, { kind: "component", type: NoDataComponent, selector: "pw-no-data", inputs: ["message", "description", "withImage"] }, { kind: "pipe", type: i1$2.TranslocoPipe, name: "transloco" }, { kind: "pipe", type: i8.SlicePipe, name: "slice" }] }); }
4705
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: GroupsComponent, isStandalone: false, selector: "pw-groups", usesInheritance: true, ngImport: i0, template: "<div>\n <section>\n <div class=\"row\">\n <div class=\"col-12 mb-3\">\n <h2>Enterprise Teams</h2>\n\n <p>\n Here you can define the teams for your Enterprise members. For example\n \"Corporate Sales Team\", \"Frontend Dev Team\" etc.\n <br />\n Once the teams created, you'll be able to add members to them and see useful\n insight based on the members activity in the corresponding team.\n </p>\n </div>\n </div>\n\n @if (!isGroupOperations) {\n <div class=\"row\"\n >\n <div class=\"col-12 d-flex justify-content-end align-items-center text-end mb-3\">\n @if (hasAccess) {\n <button\n class=\"btn btn-sm btn-outline-primary\"\n (click)=\"groupOperation()\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> Add Team\n </button>\n }\n @if (hasAccess) {\n <button\n class=\"btn btn-sm btn-outline-primary ms-1\"\n [routerLink]=\"['/' + subscription?.slug + '/enterprise', 'groups', 'labels']\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> Manage Team Categories\n </button>\n }\n </div>\n </div>\n }\n\n <!-- Add Group Template -->\n @if (isGroupOperations) {\n <div\n class=\"mb-4\">\n <h4 class=\"card-title d-inline\">{{ viewEdit ? 'Update the' : 'Create a new' }} team</h4>\n @if (!isGroupEdit) {\n <div class=\"mt-4\"\n >\n <form [formGroup]=\"form\"\n (ngSubmit)=\"saveGroup()\">\n <div class=\"row\">\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamName' | transloco\" name=\"name\" controlId=\"groups-teamName\">\n <input type=\"text\"\n id=\"groups-teamName\"\n class=\"form-control\"\n formControlName=\"name\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamName' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.TeamName' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.Description' | transloco\" name=\"description\" controlId=\"groups-description\">\n <input type=\"text\"\n id=\"groups-description\"\n class=\"form-control\"\n formControlName=\"description\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Description' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.Description' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamCategory' | transloco\" name=\"group_definition_id\" controlId=\"groups-teamCategory\">\n <p-select\n inputId=\"groups-teamCategory\"\n [options]=\"groupDefinition\"\n formControlName=\"group_definition_id\"\n [ngClass]=\"{'is-invalid': submitted && form.controls['group_definition_id'].errors}\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamCategory' | transloco\"\n optionValue=\"id\"\n optionLabel=\"name\">\n </p-select>\n </pw-input-container>\n </div>\n </div>\n <div class=\"row text-end mt-4\">\n <div class=\"col-12\">\n <button type=\"button\"\n (click)=\"isGroupOperations = !isGroupOperations\"\n class=\"btn btn-outline-default me-2\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"buttonBusy\"\n class=\"btn btn-primary\">Add</button>\n </div>\n </div>\n </form>\n </div>\n }\n <!-- Edit Group Template -->\n @if (isGroupEdit) {\n <div class=\"mt-4\"\n >\n <form [formGroup]=\"form\"\n (ngSubmit)=\"updateDetails()\">\n <div class=\"row\">\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamName' | transloco\" name=\"name\" controlId=\"groups-edit-teamName\">\n <input type=\"text\"\n id=\"groups-edit-teamName\"\n class=\"form-control\"\n formControlName=\"name\"\n required=\"true\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamName' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.TeamName' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamDescription' | transloco\" name=\"description\" controlId=\"groups-edit-description\">\n <input type=\"text\"\n id=\"groups-edit-description\"\n value=\"{{ description }}\"\n class=\"form-control\"\n formControlName=\"description\"\n required=\"true\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Description' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.TeamDescription' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamCategory' | transloco\" name=\"group_definition_id\" controlId=\"groups-edit-teamCategory\">\n <p-select\n inputId=\"groups-edit-teamCategory\"\n [options]=\"groupDefinition\"\n formControlName=\"group_definition_id\"\n [ngClass]=\"{'is-invalid': submitted && form.controls['group_definition_id'].errors}\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamCategory' | transloco\"\n optionValue=\"id\"\n optionLabel=\"name\">\n </p-select>\n </pw-input-container>\n </div>\n </div>\n <div class=\"row text-end mt-4\">\n <div class=\"col-12\">\n <button type=\"button\"\n class=\"btn btn-outline-default me-2\"\n (click)=\"cancelUpdate()\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"buttonBusy\"\n class=\"btn btn-primary\">\n {{ 'Button.Update' | transloco }}\n </button>\n </div>\n </div>\n </form>\n </div>\n }\n </div>\n }\n\n @if (!isGroupOperations) {\n <div class=\"row\"\n >\n <div class=\"col-4 mt-2 filter\">\n <p-select styleClass=\"pw-filter-select\"\n [options]=\"domainGroupDefinition\"\n optionLabel=\"name\"\n optionValue=\"id\"\n [ngModel]=\"'0'\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.FilterTeamCategory' | transloco\"\n (onChange)=\"filterDomainsList($event.value)\">\n </p-select>\n </div>\n </div>\n }\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n }\n @if (!isGroupOperations) {\n <div class=\"row group_list my-4\"\n >\n @for (group of allGroups; track trackByGroup($index, group)) {\n <div class=\"col-12 col-md-6 col-xl-4 mt-3\"\n >\n <div class=\"card\">\n <div class=\"card-content\">\n <div class=\"card-header\">\n <h5 class=\"mb-3\">{{ group.name }}</h5>\n <p>{{ group.description | slice: 0:200 }}</p>\n <span><a class=\"badge bg-primary\">{{\n group?.group_definition_name\n }}</a></span>\n </div>\n <div class=\"card-footer\">\n <div class=\"float-end px-2\">\n @if (hasAccess) {\n <a class=\"me-2 my-1\"\n aria-label=\"Delete\"\n (click)=\"onDelete(group.id)\">\n <i class=\"fa fa-trash delete-icon\" aria-hidden=\"true\"></i></a>\n }\n @if (hasAccess) {\n <a class=\"me-2 my-1\"\n aria-label=\"Edit Group\"\n (click)=\"editGroup(group.id)\"><i class=\"fa fa-edit edit-icon\" aria-hidden=\"true\"></i></a>\n }\n <a class=\"me-2 my-1\"\n aria-label=\"Members\"\n [routerLink]=\"[group.id, 'members']\"><i class=\"fa fa-tasks cta1-icon\" aria-hidden=\"true\"></i>\n </a>\n <a class=\"communications me-2 my-1\"\n aria-label=\"Communications\"\n (click)=\"navigateToCommunications(group.id)\"><i class=\"fa fa-comments cta2-icon\" aria-hidden=\"true\"></i></a>\n <a class=\"communications my-1\"\n aria-label=\"Documents\"\n (click)=\"navigateToDocumentations(group.id)\"><i class=\"fab fa-wikipedia-w cta1-icon\" aria-hidden=\"true\"></i></a>\n </div>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n </section>\n </div>\n @if (allGroups?.length === 0 && hasAccess && !isGroupOperations && isLoaded) {\n <div\n class=\"clear-both\">\n <pw-no-data [withImage]=\"true\" [message]=\"'Enterprise.Teams.NoTeamMessage' | transloco\"> </pw-no-data>\n </div>\n }\n @if (allGroups?.length === 0 && !hasAccess && !isGroupOperations && isLoaded) {\n <div\n class=\"clear-both\">\n <pw-no-data [withImage]=\"true\" [message]=\"'Enterprise.Teams.NoTeamMessageIfUser' | transloco\"> </pw-no-data>\n </div>\n }\n", styles: ["a.previous i{line-height:13px}.clear-both{clear:both}@media screen and (max-width:480px){.filter{flex:none;max-width:100%!important}.communications{margin-top:2%}}\n"], dependencies: [{ kind: "directive", type: i2$2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i2$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i4.ButtonBusyDirective, selector: "[buttonBusy]", inputs: ["buttonBusy", "busyText"] }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i6$1.Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "styleClass", "panelStyleClass", "readonly", "editable", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "filterValue", "options", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "component", type: i9.ProgressSpinner, selector: "p-progressSpinner, p-progress-spinner, p-progressspinner", inputs: ["styleClass", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }, { kind: "directive", type: i8.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: InputContainerComponent, selector: "pw-input-container", inputs: ["name", "controlId", "useAriaLabelledbyOnly", "label", "labelClass", "tooltipPosition", "required", "errorMsg", "isReadOnly", "showTooltip", "tooltipText", "showTriangle", "afterLabel", "showAfterLabel", "showTriangleText", "isLeftTooltip"] }, { kind: "component", type: NoDataComponent, selector: "pw-no-data", inputs: ["message", "description", "withImage"] }, { kind: "pipe", type: i5$1.TranslocoPipe, name: "transloco" }, { kind: "pipe", type: i8.SlicePipe, name: "slice" }] }); }
4238
4706
  }
4239
4707
  __decorate([
4240
4708
  ValidateForm('form'),
@@ -4653,7 +5121,7 @@ class PasswordValidationComponent extends AppBaseComponent {
4653
5121
  }
4654
5122
  }
4655
5123
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: PasswordValidationComponent, deps: [{ token: i0.Injector }, { token: i5.NgbModal }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
4656
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.19", type: PasswordValidationComponent, isStandalone: false, selector: "pw-password-validation", inputs: { confirmMessage: "confirmMessage", destructive: "destructive" }, outputs: { successEvent: "successEvent" }, viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, static: true }, { propertyName: "passwordRef", first: true, predicate: ["passwordRef"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-template #content\n let-modal>\n <div class=\"pw-password-confirm\"\n [class.pw-password-confirm--destructive]=\"destructive\">\n <div class=\"pw-password-confirm__header\">\n <span class=\"pw-password-confirm__icon\"\n aria-hidden=\"true\">\n <i [class]=\"destructive ? 'pi pi-exclamation-triangle' : 'pi pi-shield'\"></i>\n </span>\n <h5 class=\"pw-password-confirm__title\">\n {{ (destructive\n ? 'Common.Confirm.PasswordValidation.TitleDestructive'\n : 'Common.Confirm.PasswordValidation.Title') | transloco }}\n </h5>\n <button type=\"button\"\n class=\"btn-close pw-password-confirm__close\"\n [attr.aria-label]=\"'Button.Cancel' | transloco\"\n (click)=\"modal.dismiss()\">\n </button>\n </div>\n\n <div class=\"pw-password-confirm__body\">\n <p class=\"pw-password-confirm__message\">\n {{ bodyMessage | transloco }}\n </p>\n\n <ng-content></ng-content>\n\n <div class=\"pw-password-confirm__field\">\n <label class=\"pw-password-confirm__label\"\n for=\"pw-password-confirm-input\">\n {{ 'Common.Confirm.PasswordValidation.PasswordLabel' | transloco }}\n </label>\n <div class=\"pw-password-confirm__input-wrap\">\n <input #passwordRef\n [type]=\"passwordVisible ? 'text' : 'password'\"\n [(ngModel)]=\"password\"\n (keyup.enter)=\"validatePassword()\"\n class=\"form-control pw-password-confirm__input\"\n id=\"pw-password-confirm-input\"\n name=\"pw-password-confirm-input\"\n autocomplete=\"current-password\"\n [placeholder]=\"'Common.Confirm.PasswordValidation.PasswordPlaceholder' | transloco\"\n aria-label=\"Pw Password Confirm Input\" />\n <button type=\"button\"\n class=\"pw-password-confirm__reveal\"\n [attr.aria-label]=\"(passwordVisible\n ? 'Common.Confirm.PasswordValidation.HidePassword'\n : 'Common.Confirm.PasswordValidation.ShowPassword') | transloco\"\n [attr.aria-pressed]=\"passwordVisible\"\n (click)=\"passwordVisible = !passwordVisible\">\n <i [class]=\"passwordVisible ? 'pi pi-eye-slash' : 'pi pi-eye'\"\n aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n </div>\n\n <div class=\"pw-password-confirm__footer\">\n <button type=\"button\"\n class=\"btn btn-outline-secondary\"\n (click)=\"modal.dismiss()\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"button\"\n [buttonBusy]=\"buttonBusy\"\n [disabled]=\"!password\"\n [class]=\"destructive ? 'btn btn-danger' : 'btn btn-primary'\"\n (click)=\"validatePassword()\">\n {{ 'Button.Confirm' | transloco }}\n </button>\n </div>\n </div>\n</ng-template>\n", styles: [".pw-password-confirm{padding:24px 24px 20px}.pw-password-confirm__header{display:flex;align-items:center;gap:12px;margin-bottom:16px}.pw-password-confirm__icon{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:9999px;background:#1769e11a;color:var(--first, #1769e1);font-size:16px;flex-shrink:0}.pw-password-confirm--destructive .pw-password-confirm__icon{background:#dc35451a;color:#dc3545}.pw-password-confirm__title{flex:1;margin:0;font-size:16px;font-weight:600;color:var(--titles, #222);line-height:1.3}.pw-password-confirm__close{flex-shrink:0}.pw-password-confirm__body{margin-bottom:20px}.pw-password-confirm__message{margin:0 0 16px;color:var(--text, #222);font-size:14px;line-height:1.5}.pw-password-confirm__field{margin-top:12px}.pw-password-confirm__label{display:block;margin-bottom:8px;font-size:13px;font-weight:500;color:var(--titles, #222)}.pw-password-confirm__input-wrap{position:relative}.pw-password-confirm__input{padding-right:40px}.pw-password-confirm__reveal{position:absolute;top:50%;right:8px;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;background:transparent;border:0;border-radius:4px;color:#6b7280;cursor:pointer}.pw-password-confirm__reveal:hover,.pw-password-confirm__reveal:focus-visible{color:var(--titles, #222);background:#0000000a;outline:none}.pw-password-confirm__reveal i{font-size:14px}.pw-password-confirm__footer{display:flex;justify-content:flex-end;gap:8px}::ng-deep .pw-password-confirm-modal .modal-content{border-radius:12px;border:1px solid #e2e5ea;box-shadow:0 10px 30px #1018281f;overflow:hidden}\n"], dependencies: [{ kind: "directive", type: i2$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i4.ButtonBusyDirective, selector: "[buttonBusy]", inputs: ["buttonBusy", "busyText"] }, { kind: "pipe", type: i1$2.TranslocoPipe, name: "transloco" }] }); }
5124
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.19", type: PasswordValidationComponent, isStandalone: false, selector: "pw-password-validation", inputs: { confirmMessage: "confirmMessage", destructive: "destructive" }, outputs: { successEvent: "successEvent" }, viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, static: true }, { propertyName: "passwordRef", first: true, predicate: ["passwordRef"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-template #content\n let-modal>\n <div class=\"pw-password-confirm\"\n [class.pw-password-confirm--destructive]=\"destructive\">\n <div class=\"pw-password-confirm__header\">\n <span class=\"pw-password-confirm__icon\"\n aria-hidden=\"true\">\n <i [class]=\"destructive ? 'pi pi-exclamation-triangle' : 'pi pi-shield'\"></i>\n </span>\n <h5 class=\"pw-password-confirm__title\">\n {{ (destructive\n ? 'Common.Confirm.PasswordValidation.TitleDestructive'\n : 'Common.Confirm.PasswordValidation.Title') | transloco }}\n </h5>\n <button type=\"button\"\n class=\"btn-close pw-password-confirm__close\"\n [attr.aria-label]=\"'Button.Cancel' | transloco\"\n (click)=\"modal.dismiss()\">\n </button>\n </div>\n\n <div class=\"pw-password-confirm__body\">\n <p class=\"pw-password-confirm__message\">\n {{ bodyMessage | transloco }}\n </p>\n\n <ng-content></ng-content>\n\n <div class=\"pw-password-confirm__field\">\n <label class=\"pw-password-confirm__label\"\n for=\"pw-password-confirm-input\">\n {{ 'Common.Confirm.PasswordValidation.PasswordLabel' | transloco }}\n </label>\n <div class=\"pw-password-confirm__input-wrap\">\n <input #passwordRef\n [type]=\"passwordVisible ? 'text' : 'password'\"\n [(ngModel)]=\"password\"\n (keyup.enter)=\"validatePassword()\"\n class=\"form-control pw-password-confirm__input\"\n id=\"pw-password-confirm-input\"\n name=\"pw-password-confirm-input\"\n autocomplete=\"current-password\"\n [placeholder]=\"'Common.Confirm.PasswordValidation.PasswordPlaceholder' | transloco\"\n aria-label=\"Pw Password Confirm Input\" />\n <button type=\"button\"\n class=\"pw-password-confirm__reveal\"\n [attr.aria-label]=\"(passwordVisible\n ? 'Common.Confirm.PasswordValidation.HidePassword'\n : 'Common.Confirm.PasswordValidation.ShowPassword') | transloco\"\n [attr.aria-pressed]=\"passwordVisible\"\n (click)=\"passwordVisible = !passwordVisible\">\n <i [class]=\"passwordVisible ? 'pi pi-eye-slash' : 'pi pi-eye'\"\n aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n </div>\n\n <div class=\"pw-password-confirm__footer\">\n <button type=\"button\"\n class=\"btn btn-outline-secondary\"\n (click)=\"modal.dismiss()\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"button\"\n [buttonBusy]=\"buttonBusy\"\n [disabled]=\"!password\"\n [class]=\"destructive ? 'btn btn-danger' : 'btn btn-primary'\"\n (click)=\"validatePassword()\">\n {{ 'Button.Confirm' | transloco }}\n </button>\n </div>\n </div>\n</ng-template>\n", styles: [".pw-password-confirm{padding:24px 24px 20px}.pw-password-confirm__header{display:flex;align-items:center;gap:12px;margin-bottom:16px}.pw-password-confirm__icon{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:9999px;background:#1769e11a;color:var(--first, #1769e1);font-size:16px;flex-shrink:0}.pw-password-confirm--destructive .pw-password-confirm__icon{background:#dc35451a;color:#dc3545}.pw-password-confirm__title{flex:1;margin:0;font-size:16px;font-weight:600;color:var(--titles, #222);line-height:1.3}.pw-password-confirm__close{flex-shrink:0}.pw-password-confirm__body{margin-bottom:20px}.pw-password-confirm__message{margin:0 0 16px;color:var(--text, #222);font-size:14px;line-height:1.5}.pw-password-confirm__field{margin-top:12px}.pw-password-confirm__label{display:block;margin-bottom:8px;font-size:13px;font-weight:500;color:var(--titles, #222)}.pw-password-confirm__input-wrap{position:relative}.pw-password-confirm__input{padding-right:40px}.pw-password-confirm__reveal{position:absolute;top:50%;right:8px;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;background:transparent;border:0;border-radius:4px;color:#6b7280;cursor:pointer}.pw-password-confirm__reveal:hover,.pw-password-confirm__reveal:focus-visible{color:var(--titles, #222);background:#0000000a;outline:none}.pw-password-confirm__reveal i{font-size:14px}.pw-password-confirm__footer{display:flex;justify-content:flex-end;gap:8px}::ng-deep .pw-password-confirm-modal .modal-content{border-radius:12px;border:1px solid #e2e5ea;box-shadow:0 10px 30px #1018281f;overflow:hidden}\n"], dependencies: [{ kind: "directive", type: i2$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i4.ButtonBusyDirective, selector: "[buttonBusy]", inputs: ["buttonBusy", "busyText"] }, { kind: "pipe", type: i5$1.TranslocoPipe, name: "transloco" }] }); }
4657
5125
  }
4658
5126
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: PasswordValidationComponent, decorators: [{
4659
5127
  type: Component,
@@ -4902,16 +5370,16 @@ class PrivacyAndTosComponent extends AppBaseComponent {
4902
5370
  this.cdr.markForCheck();
4903
5371
  });
4904
5372
  }
4905
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: PrivacyAndTosComponent, deps: [{ token: i1$3.AdminService }, { token: i0.Injector }, { token: DOCUMENT$1 }, { token: i1$1.DomSanitizer }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
4906
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: PrivacyAndTosComponent, isStandalone: false, selector: "pw-privacy-and-tos", inputs: { productId: "productId" }, usesInheritance: true, ngImport: i0, template: "@if (isPublic) {\n <pw-header [landing]=\"false\"></pw-header>\n}\n\n<div class=\"legal-page\" [class.legal-page--public]=\"isPublic\">\n\n <section class=\"legal-hero\">\n <div class=\"legal-hero__container\">\n @if (!isPublic) {\n <a class=\"legal-hero__back\" (click)=\"back()\" (keydown.enter)=\"back()\" role=\"button\" tabindex=\"0\" aria-label=\"Back\">\n <i class=\"fa fa-chevron-left\" aria-hidden=\"true\"></i>\n <span>Back</span>\n </a>\n }\n <span class=\"legal-hero__eyebrow\">Legal</span>\n <h1 class=\"legal-hero__title\">Privacy &amp; terms</h1>\n <p class=\"legal-hero__subtitle\">\n @if (companyName) {\n Read how {{ companyName }} handles your data and what governs your use of the product.\n } @else {\n Read how we handle your data and what governs your use of the product.\n }\n </p>\n <div class=\"legal-hero__meta\">\n @if (data?.tos_updated_at) {\n <span class=\"legal-hero__pill\">\n <i class=\"fa fa-clock\" aria-hidden=\"true\"></i>\n Last updated {{ data.tos_updated_at | date: 'MMM d, y' }}\n </span>\n }\n @if (!isPublic && canEditPolicy) {\n <a class=\"legal-hero__edit\"\n [routerLink]=\"[routers.tosAndPrivacyDetails + privacyServiceId]\"\n [attr.aria-label]=\"'Button.Edit' | transloco\">\n <i class=\"fa fa-pen\" aria-hidden=\"true\"></i>\n <span>{{ 'Button.Edit' | transloco }}</span>\n </a>\n }\n </div>\n </div>\n </section>\n\n <div class=\"legal-tabs-band\">\n <div class=\"legal-tabs-band__container\">\n <ul ngbNav #nav=\"ngbNav\" [(activeId)]=\"tabId\" class=\"legal-tabs\">\n <li [ngbNavItem]=\"'privacy-policy'\" class=\"legal-tabs__item\">\n <a ngbNavLink class=\"legal-tabs__link\">Privacy policy</a>\n <ng-template ngbNavContent>\n <article class=\"legal-page__card\">\n @if (data?.privacy) {\n <div class=\"ql-container ql-snow legal-page__body\">\n <div class=\"ql-editor\" [innerHTML]=\"data?.privacy\"></div>\n </div>\n } @else {\n <div class=\"legal-page__empty\">\n <i class=\"fa fa-file-lines\" aria-hidden=\"true\"></i>\n <h2>Privacy policy isn't published yet</h2>\n <p>The policy for this product hasn't been written. Check back later.</p>\n </div>\n }\n </article>\n </ng-template>\n </li>\n <li [ngbNavItem]=\"'terms-of-service'\" class=\"legal-tabs__item\">\n <a ngbNavLink class=\"legal-tabs__link\">Terms of service</a>\n <ng-template ngbNavContent>\n <article class=\"legal-page__card\">\n @if (data?.tos) {\n <div class=\"ql-container ql-snow legal-page__body\">\n <div class=\"ql-editor\" [innerHTML]=\"data?.tos\"></div>\n </div>\n } @else {\n <div class=\"legal-page__empty\">\n <i class=\"fa fa-file-lines\" aria-hidden=\"true\"></i>\n <h2>Terms of service aren't published yet</h2>\n <p>The terms for this product haven't been written. Check back later.</p>\n </div>\n }\n </article>\n </ng-template>\n </li>\n </ul>\n </div>\n </div>\n\n <div class=\"legal-body\" [class.legal-body--no-toc]=\"\n (tabId === 'privacy-policy' && !tocPrivacy.length) ||\n (tabId === 'terms-of-service' && !tocTos.length)\n \">\n <div class=\"legal-body__container\">\n\n @if ((tabId === 'privacy-policy' && tocPrivacy.length) || (tabId === 'terms-of-service' && tocTos.length)) {\n <aside class=\"legal-sidebar\" aria-label=\"On this page\">\n <p class=\"legal-sidebar__label\">On this page</p>\n <nav class=\"legal-sidebar__nav\">\n @if (tabId === 'privacy-policy') {\n @for (item of tocPrivacy; track item.id) {\n <a class=\"legal-sidebar__link\" [href]=\"'#' + item.id\">{{ item.text }}</a>\n }\n } @else {\n @for (item of tocTos; track item.id) {\n <a class=\"legal-sidebar__link\" [href]=\"'#' + item.id\">{{ item.text }}</a>\n }\n }\n </nav>\n </aside>\n }\n\n <main class=\"legal-main\">\n <pw-loader [isVisible]=\"!isLoaded\"></pw-loader>\n @if (isLoaded) {\n <div [ngbNavOutlet]=\"nav\"></div>\n }\n\n @if (isLoaded && companyEmail) {\n <section class=\"legal-contact\">\n <span class=\"legal-contact__label\">Questions?</span>\n <h2 class=\"legal-contact__title\">Talk to us about your data.</h2>\n <p class=\"legal-contact__body\">\n If anything here is unclear, or you want to exercise a right under these\n policies, reach out and we'll get back to you.\n </p>\n <a class=\"legal-contact__cta\" [href]=\"'mailto:' + companyEmail\">\n <i class=\"fa fa-envelope\" aria-hidden=\"true\"></i>\n <span>{{ companyEmail }}</span>\n </a>\n </section>\n }\n </main>\n\n </div>\n </div>\n\n</div>\n", 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}.legal-page{background:#f7f8fa;min-height:100vh}.legal-page--public{padding-top:64px}.legal-hero{padding:56px 0 32px}.legal-hero__container{max-width:1200px;margin:0 auto;padding:0 clamp(20px,4vw,48px)}.legal-hero__back{display:inline-flex;align-items:center;gap:8px;margin:0 0 24px;padding:6px 14px 6px 10px;font:600 13px/1 Roboto,sans-serif;color:#5a6473;text-decoration:none;cursor:pointer;border:1px solid #e2e5ea;border-radius:9999px;background:#fff;transition:color .15s cubic-bezier(.2,.7,.2,1),border-color .15s cubic-bezier(.2,.7,.2,1)}.legal-hero__back:hover{color:#1a1d21;border-color:#cfd4dc}.legal-hero__back .fa{font-size:11px;color:#7c8696}.legal-hero__eyebrow{display:inline-block;font:600 12px/1 Roboto,sans-serif;text-transform:uppercase;letter-spacing:.12em;color:var(--first);margin-bottom:16px}h1.legal-hero__title{font:700 clamp(36px,4.4vw,52px)/1.1 \"Roboto\",sans-serif;color:#1a1d21!important;margin:0 0 16px;letter-spacing:-.02em}.legal-hero__subtitle{font:400 clamp(16px,1.4vw,19px)/1.5 \"Roboto\",sans-serif;color:#5a6473;margin:0;text-wrap:pretty}.legal-hero__meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:24px}.legal-hero__pill{display:inline-flex;align-items:center;gap:8px;padding:7px 14px;background:#fff;border:1px solid #e2e5ea;border-radius:9999px;font:500 12px/1 Roboto,sans-serif;color:#5a6473}.legal-hero__pill .fa{font-size:11px;color:#7c8696}.legal-hero__edit{display:inline-flex;align-items:center;gap:8px;padding:7px 14px;font:600 12px/1 Roboto,sans-serif;color:var(--first);text-decoration:none;border:1px solid #cfd4dc;border-radius:9999px;background:#fff;transition:border-color .15s cubic-bezier(.2,.7,.2,1)}.legal-hero__edit:hover{border-color:var(--first)}.legal-tabs-band{border-bottom:1px solid #e2e5ea;background:#f7f8fa}.legal-tabs-band__container{max-width:1200px;margin:0 auto;padding:0 clamp(20px,4vw,48px)}.legal-tabs{display:inline-flex;gap:0;padding:0;margin:0;list-style:none;border-bottom:0}.legal-tabs__item{margin:0;padding:0}.legal-tabs__link{display:inline-flex;align-items:center;padding:14px 4px;margin-right:28px;font:600 14px/1 Roboto,sans-serif;color:#5a6473;text-decoration:none;cursor:pointer;border-bottom:2px solid transparent;transition:color .15s cubic-bezier(.2,.7,.2,1),border-color .15s cubic-bezier(.2,.7,.2,1)}.legal-tabs__link:hover{color:#1a1d21}.legal-tabs__link.active,.legal-tabs__item.active .legal-tabs__link{color:#1a1d21;border-bottom-color:var(--first)}.legal-body{padding:48px 0 96px}.legal-body__container{max-width:1200px;margin:0 auto;padding:0 clamp(20px,4vw,48px);display:grid;grid-template-columns:240px minmax(0,1fr);gap:64px;align-items:start}.legal-body--no-toc .legal-body__container{grid-template-columns:minmax(0,1fr)}.legal-sidebar{position:sticky;top:88px}.legal-sidebar__label{font:600 11px/1 Roboto,sans-serif;text-transform:uppercase;letter-spacing:.12em;color:#7c8696;margin:0 0 14px}.legal-sidebar__nav{display:flex;flex-direction:column;border-left:1px solid #e2e5ea}.legal-sidebar__link{display:block;padding:7px 14px;margin-left:-1px;border-left:2px solid transparent;font:500 13px/1.45 Roboto,sans-serif;color:#5a6473;text-decoration:none;transition:color .15s cubic-bezier(.2,.7,.2,1),border-color .15s cubic-bezier(.2,.7,.2,1)}.legal-sidebar__link:hover{color:#1a1d21}.legal-sidebar__link:target,.legal-sidebar__link.is-active{color:var(--first);border-left-color:var(--first)}.legal-main{min-width:0}.legal-page__card{display:block;background:#fff;border:1px solid #e2e5ea;border-radius:14px;padding:48px;box-shadow:0 1px 2px #0f172a08}.legal-page__body{max-width:70ch}.legal-page__empty{text-align:center;padding:56px 16px;color:#5a6473}.legal-page__empty .fa{font-size:40px;color:#cfd4dc;margin-bottom:20px}.legal-page__empty h2{font:600 20px/1.3 Roboto,sans-serif;color:#1a1d21!important;margin:0 0 8px}.legal-page__empty p{font:400 15px/1.6 Roboto,sans-serif;color:#5a6473;margin:0}.legal-contact{margin-top:32px;padding:36px;background:#fff;border:1px solid #e2e5ea;border-radius:14px;box-shadow:0 1px 2px #0f172a08}.legal-contact__label{display:inline-block;font:600 11px/1 Roboto,sans-serif;text-transform:uppercase;letter-spacing:.12em;color:#7c8696;margin-bottom:10px}h2.legal-contact__title{font:600 22px/1.3 Roboto,sans-serif;color:#1a1d21!important;margin:0 0 10px;letter-spacing:-.005em}.legal-contact__body{font:400 15px/1.65 Roboto,sans-serif;color:#5a6473;margin:0 0 20px;max-width:56ch;text-wrap:pretty}.legal-contact__cta{display:inline-flex;align-items:center;gap:10px;height:44px;padding:0 22px;font:600 14px/1 Roboto,sans-serif;color:#fff!important;text-decoration:none;background:var(--first);border:1px solid var(--first);border-radius:10px;transition:background-color .15s cubic-bezier(.2,.7,.2,1),transform .15s cubic-bezier(.2,.7,.2,1),box-shadow .15s cubic-bezier(.2,.7,.2,1)}.legal-contact__cta:hover{background:color-mix(in srgb,var(--first) 88%,#000 12%);transform:translateY(-1px);box-shadow:0 10px 24px -12px var(--first)}::ng-deep .legal-page__body.ql-container,::ng-deep .legal-page__body .ql-container{max-width:none!important;margin:0;border:0!important;font-family:Roboto,sans-serif;resize:none!important}::ng-deep .legal-page__body .ql-editor{padding:0;max-width:70ch;font:400 16px/1.75 Roboto,sans-serif;color:#5a6473}::ng-deep .legal-page__body .ql-editor h1{font:700 28px/1.25 Roboto,sans-serif;color:#1a1d21;margin:0 0 16px;letter-spacing:-.01em}::ng-deep .legal-page__body .ql-editor h2{font:600 24px/1.3 Roboto,sans-serif;color:#1a1d21;margin:40px 0 12px;letter-spacing:-.005em;scroll-margin-top:88px}::ng-deep .legal-page__body .ql-editor h3{font:600 18px/1.4 Roboto,sans-serif;color:#1a1d21;margin:28px 0 8px}::ng-deep .legal-page__body .ql-editor h4,::ng-deep .legal-page__body .ql-editor h5,::ng-deep .legal-page__body .ql-editor h6{font:600 16px/1.4 Roboto,sans-serif;color:#1a1d21;margin:24px 0 6px}::ng-deep .legal-page__body .ql-editor p{font:400 16px/1.75 Roboto,sans-serif;color:#5a6473;margin:0 0 14px;text-wrap:pretty}::ng-deep .legal-page__body .ql-editor p strong,::ng-deep .legal-page__body .ql-editor strong{font-weight:600;color:#1a1d21}::ng-deep .legal-page__body .ql-editor a{color:var(--first);text-decoration:none;font-weight:500}::ng-deep .legal-page__body .ql-editor a:hover{text-decoration:underline}::ng-deep .legal-page__body .ql-editor ol,::ng-deep .legal-page__body .ql-editor ul{padding-left:24px;margin:8px 0 16px}::ng-deep .legal-page__body .ql-editor ol li,::ng-deep .legal-page__body .ql-editor ul li{font:400 16px/1.75 Roboto,sans-serif;color:#5a6473;margin:6px 0;padding:0}::ng-deep .legal-page__body .ql-editor ol li::marker,::ng-deep .legal-page__body .ql-editor ul li::marker{color:#7c8696;font-weight:500}::ng-deep .legal-page__body .ql-editor blockquote{border-left:3px solid #e2e5ea;padding:4px 0 4px 18px;margin:20px 0;color:#5a6473;font-style:italic}::ng-deep .legal-page__body .ql-editor hr{border:0;border-top:1px solid #e2e5ea;margin:40px 0}@media(max-width:991px){.legal-hero{padding:40px 0 24px}.legal-body{padding:32px 0 64px}.legal-body__container{grid-template-columns:1fr;gap:32px}.legal-sidebar{position:static}.legal-sidebar__nav{display:none}.legal-page__card{padding:32px}.legal-contact{padding:28px}}@media(max-width:575px){.legal-hero{padding:32px 0 20px}h1.legal-hero__title{font-size:30px}.legal-page__card,.legal-contact{padding:22px;border-radius:12px}.legal-contact__title{font-size:19px}.legal-tabs__link{padding:12px 4px;margin-right:20px;font-size:13px}}@media print{.legal-page{background:#fff}.legal-sidebar,.legal-tabs-band,.legal-hero__back,.legal-hero__edit,.legal-contact__cta{display:none!important}.legal-page__card{border:0;padding:0;box-shadow:none}.legal-body__container{grid-template-columns:1fr}}\n"], dependencies: [{ kind: "component", type: i3$2.AppLoaderComponent, selector: "pw-loader", inputs: ["isVisible", "closeOnOutsideClick", "autoCloseTimeOut"] }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i5.NgbNavContent, selector: "ng-template[ngbNavContent]" }, { kind: "directive", type: i5.NgbNav, selector: "[ngbNav]", inputs: ["activeId", "animation", "destroyOnHide", "orientation", "roles", "keyboard"], outputs: ["activeIdChange", "shown", "hidden", "navChange"], exportAs: ["ngbNav"] }, { kind: "directive", type: i5.NgbNavItem, selector: "[ngbNavItem]", inputs: ["destroyOnHide", "disabled", "domId", "ngbNavItem"], outputs: ["shown", "hidden"], exportAs: ["ngbNavItem"] }, { kind: "directive", type: i5.NgbNavItemRole, selector: "[ngbNavItem]:not(ng-container)" }, { kind: "directive", type: i5.NgbNavLink, selector: "a[ngbNavLink]" }, { kind: "directive", type: i5.NgbNavLinkBase, selector: "[ngbNavLink]" }, { kind: "component", type: i5.NgbNavOutlet, selector: "[ngbNavOutlet]", inputs: ["paneRole", "ngbNavOutlet"] }, { kind: "component", type: HeaderComponent, selector: "pw-header", inputs: ["landing"] }, { kind: "pipe", type: i1$2.TranslocoPipe, name: "transloco" }, { kind: "pipe", type: i8.DatePipe, name: "date" }] }); }
5373
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: PrivacyAndTosComponent, deps: [{ token: i1$1.AdminService }, { token: i0.Injector }, { token: DOCUMENT$1 }, { token: i2$3.DomSanitizer }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
5374
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: PrivacyAndTosComponent, isStandalone: false, selector: "pw-privacy-and-tos", inputs: { productId: "productId" }, usesInheritance: true, ngImport: i0, template: "@if (isPublic) {\n <pw-header [landing]=\"false\"></pw-header>\n}\n\n<div class=\"legal-page\" [class.legal-page--public]=\"isPublic\">\n\n <section class=\"legal-hero\">\n <div class=\"legal-hero__container\">\n @if (!isPublic) {\n <a class=\"legal-hero__back\" (click)=\"back()\" (keydown.enter)=\"back()\" role=\"button\" tabindex=\"0\" aria-label=\"Back\">\n <i class=\"fa fa-chevron-left\" aria-hidden=\"true\"></i>\n <span>Back</span>\n </a>\n }\n <span class=\"legal-hero__eyebrow\">Legal</span>\n <h1 class=\"legal-hero__title\">Privacy &amp; terms</h1>\n <p class=\"legal-hero__subtitle\">\n @if (companyName) {\n Read how {{ companyName }} handles your data and what governs your use of the product.\n } @else {\n Read how we handle your data and what governs your use of the product.\n }\n </p>\n <div class=\"legal-hero__meta\">\n @if (data?.tos_updated_at) {\n <span class=\"legal-hero__pill\">\n <i class=\"fa fa-clock\" aria-hidden=\"true\"></i>\n Last updated {{ data.tos_updated_at | date: 'MMM d, y' }}\n </span>\n }\n @if (!isPublic && canEditPolicy) {\n <a class=\"legal-hero__edit\"\n [routerLink]=\"[routers.tosAndPrivacyDetails + privacyServiceId]\"\n [attr.aria-label]=\"'Button.Edit' | transloco\">\n <i class=\"fa fa-pen\" aria-hidden=\"true\"></i>\n <span>{{ 'Button.Edit' | transloco }}</span>\n </a>\n }\n </div>\n </div>\n </section>\n\n <div class=\"legal-tabs-band\">\n <div class=\"legal-tabs-band__container\">\n <ul ngbNav #nav=\"ngbNav\" [(activeId)]=\"tabId\" class=\"legal-tabs\">\n <li [ngbNavItem]=\"'privacy-policy'\" class=\"legal-tabs__item\">\n <a ngbNavLink class=\"legal-tabs__link\">Privacy policy</a>\n <ng-template ngbNavContent>\n <article class=\"legal-page__card\">\n @if (data?.privacy) {\n <div class=\"ql-container ql-snow legal-page__body\">\n <div class=\"ql-editor\" [innerHTML]=\"data?.privacy\"></div>\n </div>\n } @else {\n <div class=\"legal-page__empty\">\n <i class=\"fa fa-file-lines\" aria-hidden=\"true\"></i>\n <h2>Privacy policy isn't published yet</h2>\n <p>The policy for this product hasn't been written. Check back later.</p>\n </div>\n }\n </article>\n </ng-template>\n </li>\n <li [ngbNavItem]=\"'terms-of-service'\" class=\"legal-tabs__item\">\n <a ngbNavLink class=\"legal-tabs__link\">Terms of service</a>\n <ng-template ngbNavContent>\n <article class=\"legal-page__card\">\n @if (data?.tos) {\n <div class=\"ql-container ql-snow legal-page__body\">\n <div class=\"ql-editor\" [innerHTML]=\"data?.tos\"></div>\n </div>\n } @else {\n <div class=\"legal-page__empty\">\n <i class=\"fa fa-file-lines\" aria-hidden=\"true\"></i>\n <h2>Terms of service aren't published yet</h2>\n <p>The terms for this product haven't been written. Check back later.</p>\n </div>\n }\n </article>\n </ng-template>\n </li>\n </ul>\n </div>\n </div>\n\n <div class=\"legal-body\" [class.legal-body--no-toc]=\"\n (tabId === 'privacy-policy' && !tocPrivacy.length) ||\n (tabId === 'terms-of-service' && !tocTos.length)\n \">\n <div class=\"legal-body__container\">\n\n @if ((tabId === 'privacy-policy' && tocPrivacy.length) || (tabId === 'terms-of-service' && tocTos.length)) {\n <aside class=\"legal-sidebar\" aria-label=\"On this page\">\n <p class=\"legal-sidebar__label\">On this page</p>\n <nav class=\"legal-sidebar__nav\">\n @if (tabId === 'privacy-policy') {\n @for (item of tocPrivacy; track item.id) {\n <a class=\"legal-sidebar__link\" [href]=\"'#' + item.id\">{{ item.text }}</a>\n }\n } @else {\n @for (item of tocTos; track item.id) {\n <a class=\"legal-sidebar__link\" [href]=\"'#' + item.id\">{{ item.text }}</a>\n }\n }\n </nav>\n </aside>\n }\n\n <main class=\"legal-main\">\n <pw-loader [isVisible]=\"!isLoaded\"></pw-loader>\n @if (isLoaded) {\n <div [ngbNavOutlet]=\"nav\"></div>\n }\n\n @if (isLoaded && companyEmail) {\n <section class=\"legal-contact\">\n <span class=\"legal-contact__label\">Questions?</span>\n <h2 class=\"legal-contact__title\">Talk to us about your data.</h2>\n <p class=\"legal-contact__body\">\n If anything here is unclear, or you want to exercise a right under these\n policies, reach out and we'll get back to you.\n </p>\n <a class=\"legal-contact__cta\" [href]=\"'mailto:' + companyEmail\">\n <i class=\"fa fa-envelope\" aria-hidden=\"true\"></i>\n <span>{{ companyEmail }}</span>\n </a>\n </section>\n }\n </main>\n\n </div>\n </div>\n\n</div>\n", 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}.legal-page{background:#f7f8fa;min-height:100vh}.legal-page--public{padding-top:64px}.legal-hero{padding:56px 0 32px}.legal-hero__container{max-width:1200px;margin:0 auto;padding:0 clamp(20px,4vw,48px)}.legal-hero__back{display:inline-flex;align-items:center;gap:8px;margin:0 0 24px;padding:6px 14px 6px 10px;font:600 13px/1 Roboto,sans-serif;color:#5a6473;text-decoration:none;cursor:pointer;border:1px solid #e2e5ea;border-radius:9999px;background:#fff;transition:color .15s cubic-bezier(.2,.7,.2,1),border-color .15s cubic-bezier(.2,.7,.2,1)}.legal-hero__back:hover{color:#1a1d21;border-color:#cfd4dc}.legal-hero__back .fa{font-size:11px;color:#7c8696}.legal-hero__eyebrow{display:inline-block;font:600 12px/1 Roboto,sans-serif;text-transform:uppercase;letter-spacing:.12em;color:var(--first);margin-bottom:16px}h1.legal-hero__title{font:700 clamp(36px,4.4vw,52px)/1.1 \"Roboto\",sans-serif;color:#1a1d21!important;margin:0 0 16px;letter-spacing:-.02em}.legal-hero__subtitle{font:400 clamp(16px,1.4vw,19px)/1.5 \"Roboto\",sans-serif;color:#5a6473;margin:0;text-wrap:pretty}.legal-hero__meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:24px}.legal-hero__pill{display:inline-flex;align-items:center;gap:8px;padding:7px 14px;background:#fff;border:1px solid #e2e5ea;border-radius:9999px;font:500 12px/1 Roboto,sans-serif;color:#5a6473}.legal-hero__pill .fa{font-size:11px;color:#7c8696}.legal-hero__edit{display:inline-flex;align-items:center;gap:8px;padding:7px 14px;font:600 12px/1 Roboto,sans-serif;color:var(--first);text-decoration:none;border:1px solid #cfd4dc;border-radius:9999px;background:#fff;transition:border-color .15s cubic-bezier(.2,.7,.2,1)}.legal-hero__edit:hover{border-color:var(--first)}.legal-tabs-band{border-bottom:1px solid #e2e5ea;background:#f7f8fa}.legal-tabs-band__container{max-width:1200px;margin:0 auto;padding:0 clamp(20px,4vw,48px)}.legal-tabs{display:inline-flex;gap:0;padding:0;margin:0;list-style:none;border-bottom:0}.legal-tabs__item{margin:0;padding:0}.legal-tabs__link{display:inline-flex;align-items:center;padding:14px 4px;margin-right:28px;font:600 14px/1 Roboto,sans-serif;color:#5a6473;text-decoration:none;cursor:pointer;border-bottom:2px solid transparent;transition:color .15s cubic-bezier(.2,.7,.2,1),border-color .15s cubic-bezier(.2,.7,.2,1)}.legal-tabs__link:hover{color:#1a1d21}.legal-tabs__link.active,.legal-tabs__item.active .legal-tabs__link{color:#1a1d21;border-bottom-color:var(--first)}.legal-body{padding:48px 0 96px}.legal-body__container{max-width:1200px;margin:0 auto;padding:0 clamp(20px,4vw,48px);display:grid;grid-template-columns:240px minmax(0,1fr);gap:64px;align-items:start}.legal-body--no-toc .legal-body__container{grid-template-columns:minmax(0,1fr)}.legal-sidebar{position:sticky;top:88px}.legal-sidebar__label{font:600 11px/1 Roboto,sans-serif;text-transform:uppercase;letter-spacing:.12em;color:#7c8696;margin:0 0 14px}.legal-sidebar__nav{display:flex;flex-direction:column;border-left:1px solid #e2e5ea}.legal-sidebar__link{display:block;padding:7px 14px;margin-left:-1px;border-left:2px solid transparent;font:500 13px/1.45 Roboto,sans-serif;color:#5a6473;text-decoration:none;transition:color .15s cubic-bezier(.2,.7,.2,1),border-color .15s cubic-bezier(.2,.7,.2,1)}.legal-sidebar__link:hover{color:#1a1d21}.legal-sidebar__link:target,.legal-sidebar__link.is-active{color:var(--first);border-left-color:var(--first)}.legal-main{min-width:0}.legal-page__card{display:block;background:#fff;border:1px solid #e2e5ea;border-radius:14px;padding:48px;box-shadow:0 1px 2px #0f172a08}.legal-page__body{max-width:70ch}.legal-page__empty{text-align:center;padding:56px 16px;color:#5a6473}.legal-page__empty .fa{font-size:40px;color:#cfd4dc;margin-bottom:20px}.legal-page__empty h2{font:600 20px/1.3 Roboto,sans-serif;color:#1a1d21!important;margin:0 0 8px}.legal-page__empty p{font:400 15px/1.6 Roboto,sans-serif;color:#5a6473;margin:0}.legal-contact{margin-top:32px;padding:36px;background:#fff;border:1px solid #e2e5ea;border-radius:14px;box-shadow:0 1px 2px #0f172a08}.legal-contact__label{display:inline-block;font:600 11px/1 Roboto,sans-serif;text-transform:uppercase;letter-spacing:.12em;color:#7c8696;margin-bottom:10px}h2.legal-contact__title{font:600 22px/1.3 Roboto,sans-serif;color:#1a1d21!important;margin:0 0 10px;letter-spacing:-.005em}.legal-contact__body{font:400 15px/1.65 Roboto,sans-serif;color:#5a6473;margin:0 0 20px;max-width:56ch;text-wrap:pretty}.legal-contact__cta{display:inline-flex;align-items:center;gap:10px;height:44px;padding:0 22px;font:600 14px/1 Roboto,sans-serif;color:#fff!important;text-decoration:none;background:var(--first);border:1px solid var(--first);border-radius:10px;transition:background-color .15s cubic-bezier(.2,.7,.2,1),transform .15s cubic-bezier(.2,.7,.2,1),box-shadow .15s cubic-bezier(.2,.7,.2,1)}.legal-contact__cta:hover{background:color-mix(in srgb,var(--first) 88%,#000 12%);transform:translateY(-1px);box-shadow:0 10px 24px -12px var(--first)}::ng-deep .legal-page__body.ql-container,::ng-deep .legal-page__body .ql-container{max-width:none!important;margin:0;border:0!important;font-family:Roboto,sans-serif;resize:none!important}::ng-deep .legal-page__body .ql-editor{padding:0;max-width:70ch;font:400 16px/1.75 Roboto,sans-serif;color:#5a6473}::ng-deep .legal-page__body .ql-editor h1{font:700 28px/1.25 Roboto,sans-serif;color:#1a1d21;margin:0 0 16px;letter-spacing:-.01em}::ng-deep .legal-page__body .ql-editor h2{font:600 24px/1.3 Roboto,sans-serif;color:#1a1d21;margin:40px 0 12px;letter-spacing:-.005em;scroll-margin-top:88px}::ng-deep .legal-page__body .ql-editor h3{font:600 18px/1.4 Roboto,sans-serif;color:#1a1d21;margin:28px 0 8px}::ng-deep .legal-page__body .ql-editor h4,::ng-deep .legal-page__body .ql-editor h5,::ng-deep .legal-page__body .ql-editor h6{font:600 16px/1.4 Roboto,sans-serif;color:#1a1d21;margin:24px 0 6px}::ng-deep .legal-page__body .ql-editor p{font:400 16px/1.75 Roboto,sans-serif;color:#5a6473;margin:0 0 14px;text-wrap:pretty}::ng-deep .legal-page__body .ql-editor p strong,::ng-deep .legal-page__body .ql-editor strong{font-weight:600;color:#1a1d21}::ng-deep .legal-page__body .ql-editor a{color:var(--first);text-decoration:none;font-weight:500}::ng-deep .legal-page__body .ql-editor a:hover{text-decoration:underline}::ng-deep .legal-page__body .ql-editor ol,::ng-deep .legal-page__body .ql-editor ul{padding-left:24px;margin:8px 0 16px}::ng-deep .legal-page__body .ql-editor ol li,::ng-deep .legal-page__body .ql-editor ul li{font:400 16px/1.75 Roboto,sans-serif;color:#5a6473;margin:6px 0;padding:0}::ng-deep .legal-page__body .ql-editor ol li::marker,::ng-deep .legal-page__body .ql-editor ul li::marker{color:#7c8696;font-weight:500}::ng-deep .legal-page__body .ql-editor blockquote{border-left:3px solid #e2e5ea;padding:4px 0 4px 18px;margin:20px 0;color:#5a6473;font-style:italic}::ng-deep .legal-page__body .ql-editor hr{border:0;border-top:1px solid #e2e5ea;margin:40px 0}@media(max-width:991px){.legal-hero{padding:40px 0 24px}.legal-body{padding:32px 0 64px}.legal-body__container{grid-template-columns:1fr;gap:32px}.legal-sidebar{position:static}.legal-sidebar__nav{display:none}.legal-page__card{padding:32px}.legal-contact{padding:28px}}@media(max-width:575px){.legal-hero{padding:32px 0 20px}h1.legal-hero__title{font-size:30px}.legal-page__card,.legal-contact{padding:22px;border-radius:12px}.legal-contact__title{font-size:19px}.legal-tabs__link{padding:12px 4px;margin-right:20px;font-size:13px}}@media print{.legal-page{background:#fff}.legal-sidebar,.legal-tabs-band,.legal-hero__back,.legal-hero__edit,.legal-contact__cta{display:none!important}.legal-page__card{border:0;padding:0;box-shadow:none}.legal-body__container{grid-template-columns:1fr}}\n"], dependencies: [{ kind: "component", type: i3$2.AppLoaderComponent, selector: "pw-loader", inputs: ["isVisible", "closeOnOutsideClick", "autoCloseTimeOut"] }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i5.NgbNavContent, selector: "ng-template[ngbNavContent]" }, { kind: "directive", type: i5.NgbNav, selector: "[ngbNav]", inputs: ["activeId", "animation", "destroyOnHide", "orientation", "roles", "keyboard"], outputs: ["activeIdChange", "shown", "hidden", "navChange"], exportAs: ["ngbNav"] }, { kind: "directive", type: i5.NgbNavItem, selector: "[ngbNavItem]", inputs: ["destroyOnHide", "disabled", "domId", "ngbNavItem"], outputs: ["shown", "hidden"], exportAs: ["ngbNavItem"] }, { kind: "directive", type: i5.NgbNavItemRole, selector: "[ngbNavItem]:not(ng-container)" }, { kind: "directive", type: i5.NgbNavLink, selector: "a[ngbNavLink]" }, { kind: "directive", type: i5.NgbNavLinkBase, selector: "[ngbNavLink]" }, { kind: "component", type: i5.NgbNavOutlet, selector: "[ngbNavOutlet]", inputs: ["paneRole", "ngbNavOutlet"] }, { kind: "component", type: HeaderComponent, selector: "pw-header", inputs: ["landing"] }, { kind: "pipe", type: i5$1.TranslocoPipe, name: "transloco" }, { kind: "pipe", type: i8.DatePipe, name: "date" }] }); }
4907
5375
  }
4908
5376
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: PrivacyAndTosComponent, decorators: [{
4909
5377
  type: Component,
4910
5378
  args: [{ selector: 'pw-privacy-and-tos', standalone: false, template: "@if (isPublic) {\n <pw-header [landing]=\"false\"></pw-header>\n}\n\n<div class=\"legal-page\" [class.legal-page--public]=\"isPublic\">\n\n <section class=\"legal-hero\">\n <div class=\"legal-hero__container\">\n @if (!isPublic) {\n <a class=\"legal-hero__back\" (click)=\"back()\" (keydown.enter)=\"back()\" role=\"button\" tabindex=\"0\" aria-label=\"Back\">\n <i class=\"fa fa-chevron-left\" aria-hidden=\"true\"></i>\n <span>Back</span>\n </a>\n }\n <span class=\"legal-hero__eyebrow\">Legal</span>\n <h1 class=\"legal-hero__title\">Privacy &amp; terms</h1>\n <p class=\"legal-hero__subtitle\">\n @if (companyName) {\n Read how {{ companyName }} handles your data and what governs your use of the product.\n } @else {\n Read how we handle your data and what governs your use of the product.\n }\n </p>\n <div class=\"legal-hero__meta\">\n @if (data?.tos_updated_at) {\n <span class=\"legal-hero__pill\">\n <i class=\"fa fa-clock\" aria-hidden=\"true\"></i>\n Last updated {{ data.tos_updated_at | date: 'MMM d, y' }}\n </span>\n }\n @if (!isPublic && canEditPolicy) {\n <a class=\"legal-hero__edit\"\n [routerLink]=\"[routers.tosAndPrivacyDetails + privacyServiceId]\"\n [attr.aria-label]=\"'Button.Edit' | transloco\">\n <i class=\"fa fa-pen\" aria-hidden=\"true\"></i>\n <span>{{ 'Button.Edit' | transloco }}</span>\n </a>\n }\n </div>\n </div>\n </section>\n\n <div class=\"legal-tabs-band\">\n <div class=\"legal-tabs-band__container\">\n <ul ngbNav #nav=\"ngbNav\" [(activeId)]=\"tabId\" class=\"legal-tabs\">\n <li [ngbNavItem]=\"'privacy-policy'\" class=\"legal-tabs__item\">\n <a ngbNavLink class=\"legal-tabs__link\">Privacy policy</a>\n <ng-template ngbNavContent>\n <article class=\"legal-page__card\">\n @if (data?.privacy) {\n <div class=\"ql-container ql-snow legal-page__body\">\n <div class=\"ql-editor\" [innerHTML]=\"data?.privacy\"></div>\n </div>\n } @else {\n <div class=\"legal-page__empty\">\n <i class=\"fa fa-file-lines\" aria-hidden=\"true\"></i>\n <h2>Privacy policy isn't published yet</h2>\n <p>The policy for this product hasn't been written. Check back later.</p>\n </div>\n }\n </article>\n </ng-template>\n </li>\n <li [ngbNavItem]=\"'terms-of-service'\" class=\"legal-tabs__item\">\n <a ngbNavLink class=\"legal-tabs__link\">Terms of service</a>\n <ng-template ngbNavContent>\n <article class=\"legal-page__card\">\n @if (data?.tos) {\n <div class=\"ql-container ql-snow legal-page__body\">\n <div class=\"ql-editor\" [innerHTML]=\"data?.tos\"></div>\n </div>\n } @else {\n <div class=\"legal-page__empty\">\n <i class=\"fa fa-file-lines\" aria-hidden=\"true\"></i>\n <h2>Terms of service aren't published yet</h2>\n <p>The terms for this product haven't been written. Check back later.</p>\n </div>\n }\n </article>\n </ng-template>\n </li>\n </ul>\n </div>\n </div>\n\n <div class=\"legal-body\" [class.legal-body--no-toc]=\"\n (tabId === 'privacy-policy' && !tocPrivacy.length) ||\n (tabId === 'terms-of-service' && !tocTos.length)\n \">\n <div class=\"legal-body__container\">\n\n @if ((tabId === 'privacy-policy' && tocPrivacy.length) || (tabId === 'terms-of-service' && tocTos.length)) {\n <aside class=\"legal-sidebar\" aria-label=\"On this page\">\n <p class=\"legal-sidebar__label\">On this page</p>\n <nav class=\"legal-sidebar__nav\">\n @if (tabId === 'privacy-policy') {\n @for (item of tocPrivacy; track item.id) {\n <a class=\"legal-sidebar__link\" [href]=\"'#' + item.id\">{{ item.text }}</a>\n }\n } @else {\n @for (item of tocTos; track item.id) {\n <a class=\"legal-sidebar__link\" [href]=\"'#' + item.id\">{{ item.text }}</a>\n }\n }\n </nav>\n </aside>\n }\n\n <main class=\"legal-main\">\n <pw-loader [isVisible]=\"!isLoaded\"></pw-loader>\n @if (isLoaded) {\n <div [ngbNavOutlet]=\"nav\"></div>\n }\n\n @if (isLoaded && companyEmail) {\n <section class=\"legal-contact\">\n <span class=\"legal-contact__label\">Questions?</span>\n <h2 class=\"legal-contact__title\">Talk to us about your data.</h2>\n <p class=\"legal-contact__body\">\n If anything here is unclear, or you want to exercise a right under these\n policies, reach out and we'll get back to you.\n </p>\n <a class=\"legal-contact__cta\" [href]=\"'mailto:' + companyEmail\">\n <i class=\"fa fa-envelope\" aria-hidden=\"true\"></i>\n <span>{{ companyEmail }}</span>\n </a>\n </section>\n }\n </main>\n\n </div>\n </div>\n\n</div>\n", 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}.legal-page{background:#f7f8fa;min-height:100vh}.legal-page--public{padding-top:64px}.legal-hero{padding:56px 0 32px}.legal-hero__container{max-width:1200px;margin:0 auto;padding:0 clamp(20px,4vw,48px)}.legal-hero__back{display:inline-flex;align-items:center;gap:8px;margin:0 0 24px;padding:6px 14px 6px 10px;font:600 13px/1 Roboto,sans-serif;color:#5a6473;text-decoration:none;cursor:pointer;border:1px solid #e2e5ea;border-radius:9999px;background:#fff;transition:color .15s cubic-bezier(.2,.7,.2,1),border-color .15s cubic-bezier(.2,.7,.2,1)}.legal-hero__back:hover{color:#1a1d21;border-color:#cfd4dc}.legal-hero__back .fa{font-size:11px;color:#7c8696}.legal-hero__eyebrow{display:inline-block;font:600 12px/1 Roboto,sans-serif;text-transform:uppercase;letter-spacing:.12em;color:var(--first);margin-bottom:16px}h1.legal-hero__title{font:700 clamp(36px,4.4vw,52px)/1.1 \"Roboto\",sans-serif;color:#1a1d21!important;margin:0 0 16px;letter-spacing:-.02em}.legal-hero__subtitle{font:400 clamp(16px,1.4vw,19px)/1.5 \"Roboto\",sans-serif;color:#5a6473;margin:0;text-wrap:pretty}.legal-hero__meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:24px}.legal-hero__pill{display:inline-flex;align-items:center;gap:8px;padding:7px 14px;background:#fff;border:1px solid #e2e5ea;border-radius:9999px;font:500 12px/1 Roboto,sans-serif;color:#5a6473}.legal-hero__pill .fa{font-size:11px;color:#7c8696}.legal-hero__edit{display:inline-flex;align-items:center;gap:8px;padding:7px 14px;font:600 12px/1 Roboto,sans-serif;color:var(--first);text-decoration:none;border:1px solid #cfd4dc;border-radius:9999px;background:#fff;transition:border-color .15s cubic-bezier(.2,.7,.2,1)}.legal-hero__edit:hover{border-color:var(--first)}.legal-tabs-band{border-bottom:1px solid #e2e5ea;background:#f7f8fa}.legal-tabs-band__container{max-width:1200px;margin:0 auto;padding:0 clamp(20px,4vw,48px)}.legal-tabs{display:inline-flex;gap:0;padding:0;margin:0;list-style:none;border-bottom:0}.legal-tabs__item{margin:0;padding:0}.legal-tabs__link{display:inline-flex;align-items:center;padding:14px 4px;margin-right:28px;font:600 14px/1 Roboto,sans-serif;color:#5a6473;text-decoration:none;cursor:pointer;border-bottom:2px solid transparent;transition:color .15s cubic-bezier(.2,.7,.2,1),border-color .15s cubic-bezier(.2,.7,.2,1)}.legal-tabs__link:hover{color:#1a1d21}.legal-tabs__link.active,.legal-tabs__item.active .legal-tabs__link{color:#1a1d21;border-bottom-color:var(--first)}.legal-body{padding:48px 0 96px}.legal-body__container{max-width:1200px;margin:0 auto;padding:0 clamp(20px,4vw,48px);display:grid;grid-template-columns:240px minmax(0,1fr);gap:64px;align-items:start}.legal-body--no-toc .legal-body__container{grid-template-columns:minmax(0,1fr)}.legal-sidebar{position:sticky;top:88px}.legal-sidebar__label{font:600 11px/1 Roboto,sans-serif;text-transform:uppercase;letter-spacing:.12em;color:#7c8696;margin:0 0 14px}.legal-sidebar__nav{display:flex;flex-direction:column;border-left:1px solid #e2e5ea}.legal-sidebar__link{display:block;padding:7px 14px;margin-left:-1px;border-left:2px solid transparent;font:500 13px/1.45 Roboto,sans-serif;color:#5a6473;text-decoration:none;transition:color .15s cubic-bezier(.2,.7,.2,1),border-color .15s cubic-bezier(.2,.7,.2,1)}.legal-sidebar__link:hover{color:#1a1d21}.legal-sidebar__link:target,.legal-sidebar__link.is-active{color:var(--first);border-left-color:var(--first)}.legal-main{min-width:0}.legal-page__card{display:block;background:#fff;border:1px solid #e2e5ea;border-radius:14px;padding:48px;box-shadow:0 1px 2px #0f172a08}.legal-page__body{max-width:70ch}.legal-page__empty{text-align:center;padding:56px 16px;color:#5a6473}.legal-page__empty .fa{font-size:40px;color:#cfd4dc;margin-bottom:20px}.legal-page__empty h2{font:600 20px/1.3 Roboto,sans-serif;color:#1a1d21!important;margin:0 0 8px}.legal-page__empty p{font:400 15px/1.6 Roboto,sans-serif;color:#5a6473;margin:0}.legal-contact{margin-top:32px;padding:36px;background:#fff;border:1px solid #e2e5ea;border-radius:14px;box-shadow:0 1px 2px #0f172a08}.legal-contact__label{display:inline-block;font:600 11px/1 Roboto,sans-serif;text-transform:uppercase;letter-spacing:.12em;color:#7c8696;margin-bottom:10px}h2.legal-contact__title{font:600 22px/1.3 Roboto,sans-serif;color:#1a1d21!important;margin:0 0 10px;letter-spacing:-.005em}.legal-contact__body{font:400 15px/1.65 Roboto,sans-serif;color:#5a6473;margin:0 0 20px;max-width:56ch;text-wrap:pretty}.legal-contact__cta{display:inline-flex;align-items:center;gap:10px;height:44px;padding:0 22px;font:600 14px/1 Roboto,sans-serif;color:#fff!important;text-decoration:none;background:var(--first);border:1px solid var(--first);border-radius:10px;transition:background-color .15s cubic-bezier(.2,.7,.2,1),transform .15s cubic-bezier(.2,.7,.2,1),box-shadow .15s cubic-bezier(.2,.7,.2,1)}.legal-contact__cta:hover{background:color-mix(in srgb,var(--first) 88%,#000 12%);transform:translateY(-1px);box-shadow:0 10px 24px -12px var(--first)}::ng-deep .legal-page__body.ql-container,::ng-deep .legal-page__body .ql-container{max-width:none!important;margin:0;border:0!important;font-family:Roboto,sans-serif;resize:none!important}::ng-deep .legal-page__body .ql-editor{padding:0;max-width:70ch;font:400 16px/1.75 Roboto,sans-serif;color:#5a6473}::ng-deep .legal-page__body .ql-editor h1{font:700 28px/1.25 Roboto,sans-serif;color:#1a1d21;margin:0 0 16px;letter-spacing:-.01em}::ng-deep .legal-page__body .ql-editor h2{font:600 24px/1.3 Roboto,sans-serif;color:#1a1d21;margin:40px 0 12px;letter-spacing:-.005em;scroll-margin-top:88px}::ng-deep .legal-page__body .ql-editor h3{font:600 18px/1.4 Roboto,sans-serif;color:#1a1d21;margin:28px 0 8px}::ng-deep .legal-page__body .ql-editor h4,::ng-deep .legal-page__body .ql-editor h5,::ng-deep .legal-page__body .ql-editor h6{font:600 16px/1.4 Roboto,sans-serif;color:#1a1d21;margin:24px 0 6px}::ng-deep .legal-page__body .ql-editor p{font:400 16px/1.75 Roboto,sans-serif;color:#5a6473;margin:0 0 14px;text-wrap:pretty}::ng-deep .legal-page__body .ql-editor p strong,::ng-deep .legal-page__body .ql-editor strong{font-weight:600;color:#1a1d21}::ng-deep .legal-page__body .ql-editor a{color:var(--first);text-decoration:none;font-weight:500}::ng-deep .legal-page__body .ql-editor a:hover{text-decoration:underline}::ng-deep .legal-page__body .ql-editor ol,::ng-deep .legal-page__body .ql-editor ul{padding-left:24px;margin:8px 0 16px}::ng-deep .legal-page__body .ql-editor ol li,::ng-deep .legal-page__body .ql-editor ul li{font:400 16px/1.75 Roboto,sans-serif;color:#5a6473;margin:6px 0;padding:0}::ng-deep .legal-page__body .ql-editor ol li::marker,::ng-deep .legal-page__body .ql-editor ul li::marker{color:#7c8696;font-weight:500}::ng-deep .legal-page__body .ql-editor blockquote{border-left:3px solid #e2e5ea;padding:4px 0 4px 18px;margin:20px 0;color:#5a6473;font-style:italic}::ng-deep .legal-page__body .ql-editor hr{border:0;border-top:1px solid #e2e5ea;margin:40px 0}@media(max-width:991px){.legal-hero{padding:40px 0 24px}.legal-body{padding:32px 0 64px}.legal-body__container{grid-template-columns:1fr;gap:32px}.legal-sidebar{position:static}.legal-sidebar__nav{display:none}.legal-page__card{padding:32px}.legal-contact{padding:28px}}@media(max-width:575px){.legal-hero{padding:32px 0 20px}h1.legal-hero__title{font-size:30px}.legal-page__card,.legal-contact{padding:22px;border-radius:12px}.legal-contact__title{font-size:19px}.legal-tabs__link{padding:12px 4px;margin-right:20px;font-size:13px}}@media print{.legal-page{background:#fff}.legal-sidebar,.legal-tabs-band,.legal-hero__back,.legal-hero__edit,.legal-contact__cta{display:none!important}.legal-page__card{border:0;padding:0;box-shadow:none}.legal-body__container{grid-template-columns:1fr}}\n"] }]
4911
- }], ctorParameters: () => [{ type: i1$3.AdminService }, { type: i0.Injector }, { type: Document, decorators: [{
5379
+ }], ctorParameters: () => [{ type: i1$1.AdminService }, { type: i0.Injector }, { type: Document, decorators: [{
4912
5380
  type: Inject,
4913
5381
  args: [DOCUMENT$1]
4914
- }] }, { type: i1$1.DomSanitizer }, { type: i0.ChangeDetectorRef }], propDecorators: { productId: [{
5382
+ }] }, { type: i2$3.DomSanitizer }, { type: i0.ChangeDetectorRef }], propDecorators: { productId: [{
4915
5383
  type: Input
4916
5384
  }] } });
4917
5385
 
@@ -5013,7 +5481,7 @@ class PwTabsComponent extends AppBaseComponent {
5013
5481
  this.routeEventSubscription.unsubscribe();
5014
5482
  }
5015
5483
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: PwTabsComponent, deps: [{ token: i0.Injector }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
5016
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: PwTabsComponent, isStandalone: false, selector: "pw-tabs", inputs: { items: "items", withSubscription: "withSubscription" }, usesInheritance: true, ngImport: i0, template: "<div class=\"container-fluid pw-tab overflow-hidden\">\n <p-tabs [value]=\"activeTabValue\" (valueChange)=\"onTabChange($event)\">\n <p-tablist>\n @for (item of items; track trackByItem($index, item)) {\n @if (item.visible !== false) {\n <p-tab [value]=\"getItemValue(item)\">\n @if (item.icon) {\n <i [class]=\"item.icon\" aria-hidden=\"true\"></i>\n }\n <span>{{ item.label }}</span>\n </p-tab>\n }\n }\n </p-tablist>\n </p-tabs>\n <div class=\"dashboard\">\n <div class=\"dashboard-body\">\n <router-outlet></router-outlet>\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i2.RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: i2$3.Tabs, selector: "p-tabs", inputs: ["value", "scrollable", "lazy", "selectOnFocus", "showNavigators", "tabindex"], outputs: ["valueChange"] }, { kind: "component", type: i2$3.TabList, selector: "p-tablist" }, { kind: "component", type: i2$3.Tab, selector: "p-tab", inputs: ["value", "disabled"], outputs: ["valueChange"] }] }); }
5484
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: PwTabsComponent, isStandalone: false, selector: "pw-tabs", inputs: { items: "items", withSubscription: "withSubscription" }, usesInheritance: true, ngImport: i0, template: "<div class=\"container-fluid pw-tab overflow-hidden\">\n <p-tabs [value]=\"activeTabValue\" (valueChange)=\"onTabChange($event)\">\n <p-tablist>\n @for (item of items; track trackByItem($index, item)) {\n @if (item.visible !== false) {\n <p-tab [value]=\"getItemValue(item)\">\n @if (item.icon) {\n <i [class]=\"item.icon\" aria-hidden=\"true\"></i>\n }\n <span>{{ item.label }}</span>\n </p-tab>\n }\n }\n </p-tablist>\n </p-tabs>\n <div class=\"dashboard\">\n <div class=\"dashboard-body\">\n <router-outlet></router-outlet>\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i2.RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: i2$4.Tabs, selector: "p-tabs", inputs: ["value", "scrollable", "lazy", "selectOnFocus", "showNavigators", "tabindex"], outputs: ["valueChange"] }, { kind: "component", type: i2$4.TabList, selector: "p-tablist" }, { kind: "component", type: i2$4.Tab, selector: "p-tab", inputs: ["value", "disabled"], outputs: ["valueChange"] }] }); }
5017
5485
  }
5018
5486
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: PwTabsComponent, decorators: [{
5019
5487
  type: Component,
@@ -5053,7 +5521,7 @@ class DateRangePickerComponent {
5053
5521
  }, 50);
5054
5522
  }
5055
5523
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: DateRangePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
5056
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.19", type: DateRangePickerComponent, isStandalone: false, selector: "app-date-picker", inputs: { selectedDateRange: "selectedDateRange", dateRanges: "dateRanges", inputId: "inputId" }, outputs: { dateRangeChange: "dateRangeChange" }, viewQueries: [{ propertyName: "pickerDirective", first: true, predicate: DaterangepickerDirective, descendants: true }], ngImport: i0, template: "<div class=\"my-3\">\n <div class=\"row\">\n <!-- start date -->\n <div class=\"col-6 col-sm-3\">\n <div class=\"\">\n <label [attr.for]=\"inputId\" class=\"visually-hidden\">Select a date range (optional)</label>\n <input [id]=\"inputId\"\n [name]=\"inputId\"\n ngxDaterangepickerMd\n class=\"form-control\"\n [(ngModel)]=\"selectedDateRange\"\n [ranges]=\"dateRanges\"\n [alwaysShowCalendars]=\"true\"\n [locale]=\"{ format: 'DD-MMM-YYYY' }\"\n [showCustomRangeLabel]=\"true\"\n [linkedCalendars]=\"true\"\n [showClearButton]=\"true\"\n (clearClicked)=\"onClearDate()\"\n placeholder=\"Select a date range (optional)\"\n opens=\"center\"\n (ngModelChange)=\"onDateRangeSelect($event)\"\n id=\"input_selectedDateRange_2368\" name=\"input_selectedDateRange_2368\"\n aria-label=\"Select a date range (optional)\" />\n </div>\n </div>\n <div class=\"col-6 col-sm-3 pop\">\n\n <div class=\"daterange-trigger\">\n <button class=\"btn btn-primary ngx-daterangepicker-action\"\n (click)=\"openDatepicker()\"\n type=\"button\">\n <i class=\"fa fa-calendar\" aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>", styles: ["::ng-deep .md-drppicker{top:auto!important;left:auto!important;margin-top:0!important}::ng-deep .md-drppicker .clear svg{margin-right:2px;margin-bottom:10px}.pop{margin-left:-28px;padding-left:0}.pop .daterange-trigger{margin-left:0}.pop .btn.ngx-daterangepicker-action{min-height:36px;display:inline-flex;align-items:center;justify-content:center;background:var(--first)!important;border:1px solid var(--first)!important;color:#fff!important;border-top-left-radius:0!important;border-bottom-left-radius:0!important;margin-left:0!important}.form-control{border-top-right-radius:0!important;border-bottom-right-radius:0!important;border-right:0!important}\n"], dependencies: [{ kind: "directive", type: i2$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1$4.DaterangepickerDirective, selector: "input[ngxDaterangepickerMd]", inputs: ["minDate", "maxDate", "autoApply", "alwaysShowCalendars", "showCustomRangeLabel", "linkedCalendars", "dateLimit", "singleDatePicker", "showWeekNumbers", "showISOWeekNumbers", "showDropdowns", "isInvalidDate", "isCustomDate", "isTooltipDate", "showClearButton", "customRangeDirection", "ranges", "opens", "drops", "firstMonthDayClass", "lastMonthDayClass", "emptyWeekRowClass", "emptyWeekColumnClass", "firstDayOfNextMonthClass", "lastDayOfPreviousMonthClass", "keepCalendarOpeningWithRange", "showRangeLabelOnInput", "showCancel", "lockStartDate", "timePicker", "timePicker24Hour", "timePickerIncrement", "timePickerSeconds", "closeOnAutoApply", "endKeyHolder", "startKey", "locale", "endKey"], outputs: ["change", "rangeClicked", "datesUpdated", "startDateChanged", "endDateChanged", "clearClicked"] }] }); }
5524
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.19", type: DateRangePickerComponent, isStandalone: false, selector: "app-date-picker", inputs: { selectedDateRange: "selectedDateRange", dateRanges: "dateRanges", inputId: "inputId" }, outputs: { dateRangeChange: "dateRangeChange" }, viewQueries: [{ propertyName: "pickerDirective", first: true, predicate: DaterangepickerDirective, descendants: true }], ngImport: i0, template: "<div class=\"my-3\">\n <div class=\"row\">\n <!-- start date -->\n <div class=\"col-6 col-sm-3\">\n <div class=\"\">\n <label [attr.for]=\"inputId\" class=\"visually-hidden\">Select a date range (optional)</label>\n <input [id]=\"inputId\"\n [name]=\"inputId\"\n ngxDaterangepickerMd\n class=\"form-control\"\n [(ngModel)]=\"selectedDateRange\"\n [ranges]=\"dateRanges\"\n [alwaysShowCalendars]=\"true\"\n [locale]=\"{ format: 'DD-MMM-YYYY' }\"\n [showCustomRangeLabel]=\"true\"\n [linkedCalendars]=\"true\"\n [showClearButton]=\"true\"\n (clearClicked)=\"onClearDate()\"\n placeholder=\"Select a date range (optional)\"\n opens=\"center\"\n (ngModelChange)=\"onDateRangeSelect($event)\"\n id=\"input_selectedDateRange_2368\" name=\"input_selectedDateRange_2368\"\n aria-label=\"Select a date range (optional)\" />\n </div>\n </div>\n <div class=\"col-6 col-sm-3 pop\">\n\n <div class=\"daterange-trigger\">\n <button class=\"btn btn-primary ngx-daterangepicker-action\"\n (click)=\"openDatepicker()\"\n type=\"button\">\n <i class=\"fa fa-calendar\" aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>", styles: ["::ng-deep .md-drppicker{top:auto!important;left:auto!important;margin-top:0!important}::ng-deep .md-drppicker .clear svg{margin-right:2px;margin-bottom:10px}.pop{margin-left:-28px;padding-left:0}.pop .daterange-trigger{margin-left:0}.pop .btn.ngx-daterangepicker-action{min-height:36px;display:inline-flex;align-items:center;justify-content:center;background:var(--first)!important;border:1px solid var(--first)!important;color:#fff!important;border-top-left-radius:0!important;border-bottom-left-radius:0!important;margin-left:0!important}.form-control{border-top-right-radius:0!important;border-bottom-right-radius:0!important;border-right:0!important}\n"], dependencies: [{ kind: "directive", type: i2$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1$2.DaterangepickerDirective, selector: "input[ngxDaterangepickerMd]", inputs: ["minDate", "maxDate", "autoApply", "alwaysShowCalendars", "showCustomRangeLabel", "linkedCalendars", "dateLimit", "singleDatePicker", "showWeekNumbers", "showISOWeekNumbers", "showDropdowns", "isInvalidDate", "isCustomDate", "isTooltipDate", "showClearButton", "customRangeDirection", "ranges", "opens", "drops", "firstMonthDayClass", "lastMonthDayClass", "emptyWeekRowClass", "emptyWeekColumnClass", "firstDayOfNextMonthClass", "lastDayOfPreviousMonthClass", "keepCalendarOpeningWithRange", "showRangeLabelOnInput", "showCancel", "lockStartDate", "timePicker", "timePicker24Hour", "timePickerIncrement", "timePickerSeconds", "closeOnAutoApply", "endKeyHolder", "startKey", "locale", "endKey"], outputs: ["change", "rangeClicked", "datesUpdated", "startDateChanged", "endDateChanged", "clearClicked"] }] }); }
5057
5525
  }
5058
5526
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: DateRangePickerComponent, decorators: [{
5059
5527
  type: Component,
@@ -5209,7 +5677,7 @@ class RecordsSummaryComponent {
5209
5677
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: RecordsSummaryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
5210
5678
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.19", type: RecordsSummaryComponent, isStandalone: false, selector: "pw-records-summary", inputs: { showing: "showing", total: "total" }, host: { classAttribute: "total-records-count" }, ngImport: i0, template: `{{
5211
5679
  'Label.RecordsSummary' | transloco: { showing: showing ?? 0, total: total ?? 0 }
5212
- }}`, isInline: true, dependencies: [{ kind: "pipe", type: i1$2.TranslocoPipe, name: "transloco" }] }); }
5680
+ }}`, isInline: true, dependencies: [{ kind: "pipe", type: i5$1.TranslocoPipe, name: "transloco" }] }); }
5213
5681
  }
5214
5682
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: RecordsSummaryComponent, decorators: [{
5215
5683
  type: Component,
@@ -5427,7 +5895,7 @@ class SharedComponentsModule {
5427
5895
  ProgressSpinnerModule,
5428
5896
  AutoCompleteModule,
5429
5897
  ImageCropperModule,
5430
- UiSwitchModule, i1$4.NgxDaterangepickerMd, PipesModule,
5898
+ UiSwitchModule, i1$2.NgxDaterangepickerMd, PipesModule,
5431
5899
  CommonModule,
5432
5900
  NgIf,
5433
5901
  FieldErrorDisplayModule,
@@ -5452,7 +5920,7 @@ class SharedComponentsModule {
5452
5920
  ProgressSpinnerModule,
5453
5921
  AutoCompleteModule,
5454
5922
  ImageCropperModule,
5455
- UiSwitchModule, i1$4.NgxDaterangepickerMd, PermissionTreeComponent,
5923
+ UiSwitchModule, i1$2.NgxDaterangepickerMd, PermissionTreeComponent,
5456
5924
  PrivacyAndTosComponent,
5457
5925
  PrivacyPolicyComponent,
5458
5926
  TermsConditionsComponent,
@@ -5495,7 +5963,7 @@ class SharedComponentsModule {
5495
5963
  ProgressSpinnerModule,
5496
5964
  AutoCompleteModule,
5497
5965
  ImageCropperModule,
5498
- UiSwitchModule, i1$4.NgxDaterangepickerMd, FieldErrorDisplayModule,
5966
+ UiSwitchModule, i1$2.NgxDaterangepickerMd, FieldErrorDisplayModule,
5499
5967
  ResourceSharedComponentsModule] }); }
5500
5968
  }
5501
5969
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: SharedComponentsModule, decorators: [{