@posiwise/dashboard-module 0.0.154 → 0.0.156

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,31 +1,23 @@
1
- import * as i2 from "@angular/common";
2
- import { CommonModule } from "@angular/common";
1
+ import { CommonModule, NgClass, NgComponentOutlet, UpperCasePipe } from "@angular/common";
3
2
  import * as i0 from "@angular/core";
4
- import { CUSTOM_ELEMENTS_SCHEMA, Component, Inject, InjectionToken, NgModule, Optional } from "@angular/core";
5
- import * as i2$1 from "@angular/forms";
3
+ import { CUSTOM_ELEMENTS_SCHEMA, ChangeDetectorRef, Component, DestroyRef, EventEmitter, InjectionToken, NgModule, Output, inject } from "@angular/core";
4
+ import * as i1 from "@angular/forms";
6
5
  import { FormsModule, ReactiveFormsModule } from "@angular/forms";
7
- import * as i1$1 from "@posiwise/common-services";
8
- import { PermissionService, SubscriptionService } from "@posiwise/common-services";
6
+ import { CommonService, DashboardService, HopscotchService, NotificationService, PermissionService, ProductService, SubscriptionService } from "@posiwise/common-services";
9
7
  import { CoreTranslocoModule } from "@posiwise/core-transloco";
10
- import * as i4 from "@posiwise/directives";
11
- import { DirectivesModule } from "@posiwise/directives";
12
- import * as i5 from "@posiwise/pipes";
13
- import { PipesModule } from "@posiwise/pipes";
8
+ import { DirectivesModule, DynamicBadgeDirective, LazyImgDirective } from "@posiwise/directives";
9
+ import { DOMSanitizerPipe, PipesModule, SinceAgoPipe } from "@posiwise/pipes";
14
10
  import { UserModuleModule } from "@posiwise/user-module";
15
- import * as i2$2 from "primeng/progressspinner";
16
- import { ProgressSpinnerModule } from "primeng/progressspinner";
17
- import * as i3 from "primeng/radiobutton";
18
- import { RadioButtonModule } from "primeng/radiobutton";
11
+ import { ProgressSpinner, ProgressSpinnerModule } from "primeng/progressspinner";
12
+ import { RadioButton, RadioButtonModule } from "primeng/radiobutton";
19
13
  import { SelectModule } from "primeng/select";
20
- import * as i1 from "@ng-bootstrap/ng-bootstrap";
21
- import { NgbDropdownModule, NgbNavModule } from "@ng-bootstrap/ng-bootstrap";
22
- import * as i3$1 from "@angular/router";
23
- import { NavigationEnd, RouterModule } from "@angular/router";
24
- import * as i6 from "@posiwise/shared-components";
25
- import { ResourceSharedComponentsModule } from "@posiwise/shared-components";
26
- import * as i5$1 from "primeng/tooltip";
27
- import { TooltipModule } from "primeng/tooltip";
28
- import * as i1$2 from "@angular/platform-browser";
14
+ import { NgbDropdownModule, NgbNav, NgbNavContent, NgbNavItem, NgbNavItemRole, NgbNavLink, NgbNavLinkBase, NgbNavModule, NgbNavOutlet } from "@ng-bootstrap/ng-bootstrap";
15
+ import { ActivatedRoute, NavigationEnd, RouterLink, RouterModule } from "@angular/router";
16
+ import { ConfirmDialogService, NoDataComponent, NotificationOpenerService, RecordsSummaryComponent, ResourceSharedComponentsModule } from "@posiwise/shared-components";
17
+ import { Tooltip, TooltipModule } from "primeng/tooltip";
18
+ import { DomSanitizer } from "@angular/platform-browser";
19
+ import { Bind } from "primeng/bind";
20
+ import { TranslocoPipe } from "@jsverse/transloco";
29
21
  import { AppBaseComponent } from "@posiwise/app-base-component";
30
22
  import { ADMIN_ROUTERS } from "@posiwise/common-utilities";
31
23
  import { HelperService } from "@posiwise/helper-service";
@@ -33,11 +25,11 @@ import { Subject, filter, forkJoin, of } from "rxjs";
33
25
  import { catchError, debounceTime, finalize, map, switchMap, take, takeUntil } from "rxjs/operators";
34
26
  import groupBy from "lodash/groupBy";
35
27
  import sortBy from "lodash/sortBy";
36
- import * as i7 from "@jsverse/transloco";
37
28
  import moment from "moment";
29
+ import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
38
30
  var DocumentationComponent = class DocumentationComponent {
39
- constructor(sanitizer) {
40
- this.sanitizer = sanitizer;
31
+ constructor() {
32
+ this.sanitizer = inject(DomSanitizer);
41
33
  this.isLoaded = false;
42
34
  }
43
35
  ngOnInit() {
@@ -56,7 +48,7 @@ var DocumentationComponent = class DocumentationComponent {
56
48
  version: "22.2.3",
57
49
  ngImport: i0,
58
50
  type: DocumentationComponent,
59
- deps: [{ token: i1$2.DomSanitizer }],
51
+ deps: [],
60
52
  target: i0.ɵɵFactoryTarget.Component
61
53
  });
62
54
  }
@@ -65,14 +57,14 @@ var DocumentationComponent = class DocumentationComponent {
65
57
  minVersion: "17.0.0",
66
58
  version: "22.2.3",
67
59
  type: DocumentationComponent,
68
- isStandalone: false,
60
+ isStandalone: true,
69
61
  selector: "pw-documentation",
70
62
  ngImport: i0,
71
- template: "@if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\">\n <p-progress-spinner strokeWidth=\"2\"></p-progress-spinner>\n </div>\n}\n\n<div class=\"documentation-wrapper\" [hidden]=\"!isLoaded || !iframeUrl\">\n @if (iframeUrl) {\n <iframe\n [src]=\"iframeUrl\"\n width=\"100%\"\n height=\"100%\"\n allowfullscreen\n title=\"Documentation Frame\"\n (load)=\"onIframeLoad()\"\n ></iframe>\n }\n</div>\n",
63
+ template: "@if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\">\n <p-progress-spinner strokeWidth=\"2\"></p-progress-spinner>\n </div>\n}\n\n<div class=\"documentation-wrapper\" [hidden]=\"!isLoaded || !iframeUrl\">\n @if (iframeUrl) {\n <iframe\n [src]=\"iframeUrl\"\n width=\"100%\"\n height=\"100%\"\n allowfullscreen\n [title]=\"'Dashboard.Docs.FrameTitle' | transloco\"\n (load)=\"onIframeLoad()\"\n ></iframe>\n }\n</div>\n",
72
64
  styles: [".documentation-wrapper{width:100%;height:100vh}.documentation-wrapper iframe{width:100%;height:100%;border:none}\n"],
73
65
  dependencies: [{
74
66
  kind: "component",
75
- type: i2$2.ProgressSpinner,
67
+ type: ProgressSpinner,
76
68
  selector: "p-progress-spinner, p-progressspinner",
77
69
  inputs: [
78
70
  "value",
@@ -83,6 +75,10 @@ var DocumentationComponent = class DocumentationComponent {
83
75
  "ariaLabel",
84
76
  "fill"
85
77
  ]
78
+ }, {
79
+ kind: "pipe",
80
+ type: TranslocoPipe,
81
+ name: "transloco"
86
82
  }]
87
83
  });
88
84
  }
@@ -96,12 +92,16 @@ i0.ɵɵngDeclareClassMetadata({
96
92
  type: Component,
97
93
  args: [{
98
94
  selector: "pw-documentation",
99
- standalone: false,
100
- template: "@if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\">\n <p-progress-spinner strokeWidth=\"2\"></p-progress-spinner>\n </div>\n}\n\n<div class=\"documentation-wrapper\" [hidden]=\"!isLoaded || !iframeUrl\">\n @if (iframeUrl) {\n <iframe\n [src]=\"iframeUrl\"\n width=\"100%\"\n height=\"100%\"\n allowfullscreen\n title=\"Documentation Frame\"\n (load)=\"onIframeLoad()\"\n ></iframe>\n }\n</div>\n",
95
+ imports: [
96
+ Bind,
97
+ ProgressSpinner,
98
+ TranslocoPipe
99
+ ],
100
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
101
+ template: "@if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\">\n <p-progress-spinner strokeWidth=\"2\"></p-progress-spinner>\n </div>\n}\n\n<div class=\"documentation-wrapper\" [hidden]=\"!isLoaded || !iframeUrl\">\n @if (iframeUrl) {\n <iframe\n [src]=\"iframeUrl\"\n width=\"100%\"\n height=\"100%\"\n allowfullscreen\n [title]=\"'Dashboard.Docs.FrameTitle' | transloco\"\n (load)=\"onIframeLoad()\"\n ></iframe>\n }\n</div>\n",
101
102
  styles: [".documentation-wrapper{width:100%;height:100vh}.documentation-wrapper iframe{width:100%;height:100%;border:none}\n"]
102
103
  }]
103
- }],
104
- ctorParameters: () => [{ type: i1$2.DomSanitizer }]
104
+ }]
105
105
  });
106
106
  const FAQ_ADMIN_PERMISSION = "Pages.Admin.FAQ || Pages.Role.MarketingManager || Pages.Role.CustomerSuccessManager";
107
107
  function groupFaqsByCategory(nonProductFaqs, productFaqs) {
@@ -121,12 +121,12 @@ function buildSanitizedAnswers(faqs, sanitize) {
121
121
  return answers;
122
122
  }
123
123
  var FaqComponent = class FaqComponent extends AppBaseComponent {
124
- constructor(commonService, injector, productService, sanitizer, cdr) {
125
- super(injector);
126
- this.commonService = commonService;
127
- this.productService = productService;
128
- this.sanitizer = sanitizer;
129
- this.cdr = cdr;
124
+ constructor() {
125
+ super(...arguments);
126
+ this.commonService = inject(CommonService);
127
+ this.productService = inject(ProductService);
128
+ this.sanitizer = inject(DomSanitizer);
129
+ this.cdr = inject(ChangeDetectorRef);
130
130
  this.searchSubject = new Subject();
131
131
  this.destroy$ = new Subject();
132
132
  this.sanitizedFaqAnswers = {};
@@ -225,13 +225,7 @@ var FaqComponent = class FaqComponent extends AppBaseComponent {
225
225
  version: "22.2.3",
226
226
  ngImport: i0,
227
227
  type: FaqComponent,
228
- deps: [
229
- { token: i1$1.CommonService },
230
- { token: i0.Injector },
231
- { token: i1$1.ProductService },
232
- { token: i1$2.DomSanitizer },
233
- { token: i0.ChangeDetectorRef }
234
- ],
228
+ deps: null,
235
229
  target: i0.ɵɵFactoryTarget.Component
236
230
  });
237
231
  }
@@ -240,35 +234,16 @@ var FaqComponent = class FaqComponent extends AppBaseComponent {
240
234
  minVersion: "17.0.0",
241
235
  version: "22.2.3",
242
236
  type: FaqComponent,
243
- isStandalone: false,
237
+ isStandalone: true,
244
238
  selector: "pw-faq",
245
239
  usesInheritance: true,
246
240
  ngImport: i0,
247
- template: "<div class=\"mt-md-4 mt-4\">\n <div class=\"row mb-3\">\n <div class=\"col-12\">\n <div class=\"card gradient-custom-branding white text-center p-1 p-sm-2\">\n <div class=\"card-header p-1 p-sm-2\">\n <div class=\"d-flex justify-content-between align-items-start mb-3 mb-md-0\">\n <div>\n @if (showDocumentation) {\n <button\n class=\"btn btn-sm document-btn\"\n (click)=\"navigateToDocumentation()\">\n Documentation\n </button>\n }\n </div>\n <div>\n @if (showSupport) {\n <button\n class=\"btn btn-sm btn-primary\"\n (click)=\"navigateToSupport()\">\n Support\n </button>\n }\n </div>\n </div>\n\n <h1>You need help?</h1>\n <p><em>Please search through our frequently asked questions first.</em></p>\n </div>\n <div class=\"card-block p-2 p-sm-2\">\n <fieldset>\n <legend></legend>\n <label for=\"faq-search\" class=\"visually-hidden\">Search in FAQs</label>\n <input type=\"text\"\n id=\"faq-search\"\n name=\"faq-search\"\n class=\"form-control bg-white\"\n placeholder=\"Search FAQs...\"\n (input)=\"filter($event.target.value)\"\n #messageInput\n aria-label=\"Search FAQs...\" />\n </fieldset>\n </div>\n </div>\n </div>\n </div>\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n }\n @if (faqs) {\n @for (category of objectKeys(faqs); track category; let idx1 = $index) {\n <div>\n @if (faqs[category]?.length) {\n <h6 class=\"text-uppercase mt-3 p-1\">{{ faqHashMap[category]?.name }}</h6>\n <div class=\"dashboard\">\n @for (\n faq of faqs[category]; track trackByProductFaqId(idx,\n faq); let idx = $index) {\n <div class=\"faq-item\"\n >\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n (click)=\"onCollapseToggle(idx + '-' + idx1, faq?.answer)\"\n [href]=\"'#collapse' + idx + idx1\">\n {{ faq.question }}\n </a>\n </h5>\n @if (canEditFaq && faq?.id) {\n <a class=\"faq-edit-link\"\n [pTooltip]=\"'Admin.Faq.EditTitle' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\"\n [attr.aria-label]=\"'Admin.Faq.EditTitle' | transloco\"\n [routerLink]=\"[routers.faqDetails + faq.id]\"\n target=\"_blank\">\n <i class=\"fa fa-edit edit-icon\" aria-hidden=\"true\"></i>\n </a>\n }\n </div>\n <div [id]=\"'collapse' + idx + idx1\"\n class=\"panel-collapse p-3 collapse in\">\n <div class=\"card-block\">\n @if (faq?.answer) {\n <div class=\"ql-container ql-snow no-border\">\n <div class=\"ql-editor\"\n [innerHTML]=\"sanitizedFaqAnswers[idx + '-' + idx1]\">\n </div>\n </div>\n }\n </div>\n </div>\n </div>\n }\n </div>\n }\n </div>\n }\n }\n @if (isLoaded && (totalRecords === 0 || allFaqFalse)) {\n <div>\n <pw-no-data [withImage]=\"true\" message=\"This is embarrassing - we couldn't find any FAQ.\"> </pw-no-data>\n </div>\n }\n</div>\n",
248
- 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}.card-header h1,.card-header p{color:#fff!important}.faq-item{border:1px solid rgb(224,224,224);background-color:#fff;border-radius:8px;margin:8px 0;overflow:hidden;transition:border-color .16s ease-out,box-shadow .16s ease-out}.faq-item:hover{border-color:#bdbdbd}.faq-item .dashboard-header{background:transparent;padding:0;display:flex;align-items:center;position:relative}.faq-item .dashboard-header:after{content:\"\\f078\";font-family:\"Font Awesome 5 Pro\",sans-serif;font-weight:600;font-size:13px;color:#9e9e9e;flex:0 0 auto;margin-left:auto;margin-right:18px;transition:transform .18s ease-out,color .18s ease-out}.faq-item .dashboard-header:hover:after{color:var(--titles)}.faq-item .dashboard-header:has(.accordion-toggle:not(.collapsed)):after{transform:rotate(180deg);color:var(--titles)}.faq-item .accordion-title{margin:0;flex:0 1 auto;min-width:0}.faq-item .faq-edit-link{position:relative;z-index:1;display:inline-flex;align-items:center;flex:0 0 auto;padding:14px 8px;text-decoration:none}.faq-item .faq-edit-link .edit-icon{font-size:14px}.faq-item .accordion-toggle{display:flex;align-items:center;padding:14px 4px 14px 18px;font-size:15px;font-weight:600;line-height:1.45;color:var(--titles);text-decoration:none;cursor:pointer}.faq-item .accordion-toggle:before{content:\"\"!important;position:absolute;inset:0;width:auto;padding:0}.faq-item .accordion-toggle:focus-visible{outline:2px solid var(--first);outline-offset:-2px}.faq-item .panel-collapse{padding:0!important}.faq-item .card-block{padding:4px 18px 16px;border-top:1px solid rgb(238,238,238)}.faq-item .ql-editor{font-size:14px;line-height:1.65;color:#616161;text-align:left}.document-btn{background-color:var(--second);border-color:var(--second)!important;color:#fff}.document-btn:hover{color:var(--second)!important;background-color:transparent!important}.card{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.card .accordion-toggle:before{content:\"\\f078\"}.card .accordion-toggle.collapsed{transition:all .3s ease-in-out}.card .accordion-toggle.collapsed:before{content:\"\\f054\"}h6{color:var(--titles)!important;font-size:17px;font-weight:700;letter-spacing:.04em;padding:0 0 10px!important;margin:32px 0 14px!important;border-bottom:1px solid rgb(224,224,224)}.accordion-title a{color:var(--titles)!important}.ql-container{resize:none!important;max-width:1000px;margin:0 auto}\n"],
241
+ template: "<div class=\"mt-md-4 mt-4\">\n <div class=\"row mb-3\">\n <div class=\"col-12\">\n <div class=\"card gradient-custom-branding white text-center p-1 p-sm-2\">\n <div class=\"card-header p-1 p-sm-2\">\n <div class=\"d-flex justify-content-between align-items-start mb-3 mb-md-0\">\n <div>\n @if (showDocumentation) {\n <button\n class=\"btn btn-sm document-btn\"\n (click)=\"navigateToDocumentation()\">\n {{ 'Navbar.Documentation' | transloco }}\n </button>\n }\n </div>\n <div>\n @if (showSupport) {\n <button\n class=\"btn btn-sm btn-primary\"\n (click)=\"navigateToSupport()\">\n {{ 'Navbar.Support' | transloco }}\n </button>\n }\n </div>\n </div>\n\n <h1>{{ 'Dashboard.Faq.Title' | transloco }}</h1>\n <p><em>{{ 'Dashboard.Faq.Intro' | transloco }}</em></p>\n </div>\n <div class=\"card-block p-2 p-sm-2\">\n <fieldset>\n <legend></legend>\n <label for=\"faq-search\" class=\"visually-hidden\">{{ 'Dashboard.Faq.SearchLabel' | transloco }}</label>\n <input type=\"text\"\n id=\"faq-search\"\n name=\"faq-search\"\n class=\"form-control bg-white\"\n [placeholder]=\"'Admin.Faq.List.SearchPlaceholder' | transloco\"\n (input)=\"filter($event.target.value)\"\n #messageInput\n [attr.aria-label]=\"'Admin.Faq.List.SearchPlaceholder' | transloco\" />\n </fieldset>\n </div>\n </div>\n </div>\n </div>\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n }\n @if (faqs) {\n @for (category of objectKeys(faqs); track category; let idx1 = $index) {\n <div>\n @if (faqs[category]?.length) {\n <h6 class=\"text-uppercase mt-3 p-1\">{{ faqHashMap[category]?.name }}</h6>\n <div class=\"dashboard\">\n @for (\n faq of faqs[category]; track trackByProductFaqId(idx,\n faq); let idx = $index) {\n <div class=\"faq-item\"\n >\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n (click)=\"onCollapseToggle(idx + '-' + idx1, faq?.answer)\"\n [href]=\"'#collapse' + idx + idx1\">\n {{ faq.question }}\n </a>\n </h5>\n @if (canEditFaq && faq?.id) {\n <a class=\"faq-edit-link\"\n [pTooltip]=\"'Admin.Faq.EditTitle' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\"\n [attr.aria-label]=\"'Admin.Faq.EditTitle' | transloco\"\n [routerLink]=\"[routers.faqDetails + faq.id]\"\n target=\"_blank\">\n <i class=\"fa fa-edit edit-icon\" aria-hidden=\"true\"></i>\n </a>\n }\n </div>\n <div [id]=\"'collapse' + idx + idx1\"\n class=\"panel-collapse p-3 collapse in\">\n <div class=\"card-block\">\n @if (faq?.answer) {\n <div class=\"ql-container ql-snow no-border\">\n <div class=\"ql-editor\"\n [innerHTML]=\"sanitizedFaqAnswers[idx + '-' + idx1]\">\n </div>\n </div>\n }\n </div>\n </div>\n </div>\n }\n </div>\n }\n </div>\n }\n }\n @if (isLoaded && (totalRecords === 0 || allFaqFalse)) {\n <div>\n <pw-no-data [withImage]=\"true\" [message]=\"'Dashboard.Faq.NoData' | transloco\"> </pw-no-data>\n </div>\n }\n</div>\n",
242
+ 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);--pw-hairline: #e2e5ea;--public-btn-radius: 24px}.card-header h1,.card-header p{color:#fff!important}.faq-item{border:1px solid rgb(224,224,224);background-color:#fff;border-radius:8px;margin:8px 0;overflow:hidden;transition:border-color .16s ease-out,box-shadow .16s ease-out}.faq-item:hover{border-color:#bdbdbd}.faq-item .dashboard-header{background:transparent;padding:0;display:flex;align-items:center;position:relative}.faq-item .dashboard-header:after{content:\"\\f078\";font-family:\"Font Awesome 5 Pro\",sans-serif;font-weight:600;font-size:13px;color:#9e9e9e;flex:0 0 auto;margin-left:auto;margin-right:18px;transition:transform .18s ease-out,color .18s ease-out}.faq-item .dashboard-header:hover:after{color:var(--titles)}.faq-item .dashboard-header:has(.accordion-toggle:not(.collapsed)):after{transform:rotate(180deg);color:var(--titles)}.faq-item .accordion-title{margin:0;flex:0 1 auto;min-width:0}.faq-item .faq-edit-link{position:relative;z-index:1;display:inline-flex;align-items:center;flex:0 0 auto;padding:14px 8px;text-decoration:none}.faq-item .faq-edit-link .edit-icon{font-size:14px}.faq-item .accordion-toggle{display:flex;align-items:center;padding:14px 4px 14px 18px;font-size:15px;font-weight:600;line-height:1.45;color:var(--titles);text-decoration:none;cursor:pointer}.faq-item .accordion-toggle:before{content:\"\"!important;position:absolute;inset:0;width:auto;padding:0}.faq-item .accordion-toggle:focus-visible{outline:2px solid var(--first);outline-offset:-2px}.faq-item .panel-collapse{padding:0!important}.faq-item .card-block{padding:4px 18px 16px;border-top:1px solid rgb(238,238,238)}.faq-item .ql-editor{font-size:14px;line-height:1.65;color:#616161;text-align:left}.document-btn{background-color:var(--second);border-color:var(--second)!important;color:#fff}.document-btn:hover{color:var(--second)!important;background-color:transparent!important}.card{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.card .accordion-toggle:before{content:\"\\f078\"}.card .accordion-toggle.collapsed{transition:all .3s ease-in-out}.card .accordion-toggle.collapsed:before{content:\"\\f054\"}h6{color:var(--titles)!important;font-size:17px;font-weight:700;letter-spacing:.04em;padding:0 0 10px!important;margin:32px 0 14px!important;border-bottom:1px solid rgb(224,224,224)}.accordion-title a{color:var(--titles)!important}.ql-container{resize:none!important;max-width:1000px;margin:0 auto}\n"],
249
243
  dependencies: [
250
- {
251
- kind: "directive",
252
- type: i3$1.RouterLink,
253
- selector: "[routerLink]",
254
- inputs: [
255
- "target",
256
- "queryParams",
257
- "fragment",
258
- "queryParamsHandling",
259
- "state",
260
- "info",
261
- "relativeTo",
262
- "preserveFragment",
263
- "skipLocationChange",
264
- "replaceUrl",
265
- "browserUrl",
266
- "routerLink"
267
- ]
268
- },
269
244
  {
270
245
  kind: "component",
271
- type: i2$2.ProgressSpinner,
246
+ type: ProgressSpinner,
272
247
  selector: "p-progress-spinner, p-progressspinner",
273
248
  inputs: [
274
249
  "value",
@@ -282,7 +257,7 @@ var FaqComponent = class FaqComponent extends AppBaseComponent {
282
257
  },
283
258
  {
284
259
  kind: "directive",
285
- type: i5$1.Tooltip,
260
+ type: Tooltip,
286
261
  selector: "[pTooltip]",
287
262
  inputs: [
288
263
  "tooltipPosition",
@@ -308,9 +283,28 @@ var FaqComponent = class FaqComponent extends AppBaseComponent {
308
283
  "pTooltipUnstyled"
309
284
  ]
310
285
  },
286
+ {
287
+ kind: "directive",
288
+ type: RouterLink,
289
+ selector: "[routerLink]",
290
+ inputs: [
291
+ "target",
292
+ "queryParams",
293
+ "fragment",
294
+ "queryParamsHandling",
295
+ "state",
296
+ "info",
297
+ "relativeTo",
298
+ "preserveFragment",
299
+ "skipLocationChange",
300
+ "replaceUrl",
301
+ "browserUrl",
302
+ "routerLink"
303
+ ]
304
+ },
311
305
  {
312
306
  kind: "component",
313
- type: i6.NoDataComponent,
307
+ type: NoDataComponent,
314
308
  selector: "pw-no-data",
315
309
  inputs: [
316
310
  "message",
@@ -320,7 +314,7 @@ var FaqComponent = class FaqComponent extends AppBaseComponent {
320
314
  },
321
315
  {
322
316
  kind: "pipe",
323
- type: i7.TranslocoPipe,
317
+ type: TranslocoPipe,
324
318
  name: "transloco"
325
319
  }
326
320
  ]
@@ -336,18 +330,19 @@ i0.ɵɵngDeclareClassMetadata({
336
330
  type: Component,
337
331
  args: [{
338
332
  selector: "pw-faq",
339
- standalone: false,
340
- template: "<div class=\"mt-md-4 mt-4\">\n <div class=\"row mb-3\">\n <div class=\"col-12\">\n <div class=\"card gradient-custom-branding white text-center p-1 p-sm-2\">\n <div class=\"card-header p-1 p-sm-2\">\n <div class=\"d-flex justify-content-between align-items-start mb-3 mb-md-0\">\n <div>\n @if (showDocumentation) {\n <button\n class=\"btn btn-sm document-btn\"\n (click)=\"navigateToDocumentation()\">\n Documentation\n </button>\n }\n </div>\n <div>\n @if (showSupport) {\n <button\n class=\"btn btn-sm btn-primary\"\n (click)=\"navigateToSupport()\">\n Support\n </button>\n }\n </div>\n </div>\n\n <h1>You need help?</h1>\n <p><em>Please search through our frequently asked questions first.</em></p>\n </div>\n <div class=\"card-block p-2 p-sm-2\">\n <fieldset>\n <legend></legend>\n <label for=\"faq-search\" class=\"visually-hidden\">Search in FAQs</label>\n <input type=\"text\"\n id=\"faq-search\"\n name=\"faq-search\"\n class=\"form-control bg-white\"\n placeholder=\"Search FAQs...\"\n (input)=\"filter($event.target.value)\"\n #messageInput\n aria-label=\"Search FAQs...\" />\n </fieldset>\n </div>\n </div>\n </div>\n </div>\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n }\n @if (faqs) {\n @for (category of objectKeys(faqs); track category; let idx1 = $index) {\n <div>\n @if (faqs[category]?.length) {\n <h6 class=\"text-uppercase mt-3 p-1\">{{ faqHashMap[category]?.name }}</h6>\n <div class=\"dashboard\">\n @for (\n faq of faqs[category]; track trackByProductFaqId(idx,\n faq); let idx = $index) {\n <div class=\"faq-item\"\n >\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n (click)=\"onCollapseToggle(idx + '-' + idx1, faq?.answer)\"\n [href]=\"'#collapse' + idx + idx1\">\n {{ faq.question }}\n </a>\n </h5>\n @if (canEditFaq && faq?.id) {\n <a class=\"faq-edit-link\"\n [pTooltip]=\"'Admin.Faq.EditTitle' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\"\n [attr.aria-label]=\"'Admin.Faq.EditTitle' | transloco\"\n [routerLink]=\"[routers.faqDetails + faq.id]\"\n target=\"_blank\">\n <i class=\"fa fa-edit edit-icon\" aria-hidden=\"true\"></i>\n </a>\n }\n </div>\n <div [id]=\"'collapse' + idx + idx1\"\n class=\"panel-collapse p-3 collapse in\">\n <div class=\"card-block\">\n @if (faq?.answer) {\n <div class=\"ql-container ql-snow no-border\">\n <div class=\"ql-editor\"\n [innerHTML]=\"sanitizedFaqAnswers[idx + '-' + idx1]\">\n </div>\n </div>\n }\n </div>\n </div>\n </div>\n }\n </div>\n }\n </div>\n }\n }\n @if (isLoaded && (totalRecords === 0 || allFaqFalse)) {\n <div>\n <pw-no-data [withImage]=\"true\" message=\"This is embarrassing - we couldn't find any FAQ.\"> </pw-no-data>\n </div>\n }\n</div>\n",
341
- 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}.card-header h1,.card-header p{color:#fff!important}.faq-item{border:1px solid rgb(224,224,224);background-color:#fff;border-radius:8px;margin:8px 0;overflow:hidden;transition:border-color .16s ease-out,box-shadow .16s ease-out}.faq-item:hover{border-color:#bdbdbd}.faq-item .dashboard-header{background:transparent;padding:0;display:flex;align-items:center;position:relative}.faq-item .dashboard-header:after{content:\"\\f078\";font-family:\"Font Awesome 5 Pro\",sans-serif;font-weight:600;font-size:13px;color:#9e9e9e;flex:0 0 auto;margin-left:auto;margin-right:18px;transition:transform .18s ease-out,color .18s ease-out}.faq-item .dashboard-header:hover:after{color:var(--titles)}.faq-item .dashboard-header:has(.accordion-toggle:not(.collapsed)):after{transform:rotate(180deg);color:var(--titles)}.faq-item .accordion-title{margin:0;flex:0 1 auto;min-width:0}.faq-item .faq-edit-link{position:relative;z-index:1;display:inline-flex;align-items:center;flex:0 0 auto;padding:14px 8px;text-decoration:none}.faq-item .faq-edit-link .edit-icon{font-size:14px}.faq-item .accordion-toggle{display:flex;align-items:center;padding:14px 4px 14px 18px;font-size:15px;font-weight:600;line-height:1.45;color:var(--titles);text-decoration:none;cursor:pointer}.faq-item .accordion-toggle:before{content:\"\"!important;position:absolute;inset:0;width:auto;padding:0}.faq-item .accordion-toggle:focus-visible{outline:2px solid var(--first);outline-offset:-2px}.faq-item .panel-collapse{padding:0!important}.faq-item .card-block{padding:4px 18px 16px;border-top:1px solid rgb(238,238,238)}.faq-item .ql-editor{font-size:14px;line-height:1.65;color:#616161;text-align:left}.document-btn{background-color:var(--second);border-color:var(--second)!important;color:#fff}.document-btn:hover{color:var(--second)!important;background-color:transparent!important}.card{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.card .accordion-toggle:before{content:\"\\f078\"}.card .accordion-toggle.collapsed{transition:all .3s ease-in-out}.card .accordion-toggle.collapsed:before{content:\"\\f054\"}h6{color:var(--titles)!important;font-size:17px;font-weight:700;letter-spacing:.04em;padding:0 0 10px!important;margin:32px 0 14px!important;border-bottom:1px solid rgb(224,224,224)}.accordion-title a{color:var(--titles)!important}.ql-container{resize:none!important;max-width:1000px;margin:0 auto}\n"]
333
+ imports: [
334
+ Bind,
335
+ ProgressSpinner,
336
+ Tooltip,
337
+ RouterLink,
338
+ NoDataComponent,
339
+ TranslocoPipe
340
+ ],
341
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
342
+ template: "<div class=\"mt-md-4 mt-4\">\n <div class=\"row mb-3\">\n <div class=\"col-12\">\n <div class=\"card gradient-custom-branding white text-center p-1 p-sm-2\">\n <div class=\"card-header p-1 p-sm-2\">\n <div class=\"d-flex justify-content-between align-items-start mb-3 mb-md-0\">\n <div>\n @if (showDocumentation) {\n <button\n class=\"btn btn-sm document-btn\"\n (click)=\"navigateToDocumentation()\">\n {{ 'Navbar.Documentation' | transloco }}\n </button>\n }\n </div>\n <div>\n @if (showSupport) {\n <button\n class=\"btn btn-sm btn-primary\"\n (click)=\"navigateToSupport()\">\n {{ 'Navbar.Support' | transloco }}\n </button>\n }\n </div>\n </div>\n\n <h1>{{ 'Dashboard.Faq.Title' | transloco }}</h1>\n <p><em>{{ 'Dashboard.Faq.Intro' | transloco }}</em></p>\n </div>\n <div class=\"card-block p-2 p-sm-2\">\n <fieldset>\n <legend></legend>\n <label for=\"faq-search\" class=\"visually-hidden\">{{ 'Dashboard.Faq.SearchLabel' | transloco }}</label>\n <input type=\"text\"\n id=\"faq-search\"\n name=\"faq-search\"\n class=\"form-control bg-white\"\n [placeholder]=\"'Admin.Faq.List.SearchPlaceholder' | transloco\"\n (input)=\"filter($event.target.value)\"\n #messageInput\n [attr.aria-label]=\"'Admin.Faq.List.SearchPlaceholder' | transloco\" />\n </fieldset>\n </div>\n </div>\n </div>\n </div>\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n }\n @if (faqs) {\n @for (category of objectKeys(faqs); track category; let idx1 = $index) {\n <div>\n @if (faqs[category]?.length) {\n <h6 class=\"text-uppercase mt-3 p-1\">{{ faqHashMap[category]?.name }}</h6>\n <div class=\"dashboard\">\n @for (\n faq of faqs[category]; track trackByProductFaqId(idx,\n faq); let idx = $index) {\n <div class=\"faq-item\"\n >\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n (click)=\"onCollapseToggle(idx + '-' + idx1, faq?.answer)\"\n [href]=\"'#collapse' + idx + idx1\">\n {{ faq.question }}\n </a>\n </h5>\n @if (canEditFaq && faq?.id) {\n <a class=\"faq-edit-link\"\n [pTooltip]=\"'Admin.Faq.EditTitle' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\"\n [attr.aria-label]=\"'Admin.Faq.EditTitle' | transloco\"\n [routerLink]=\"[routers.faqDetails + faq.id]\"\n target=\"_blank\">\n <i class=\"fa fa-edit edit-icon\" aria-hidden=\"true\"></i>\n </a>\n }\n </div>\n <div [id]=\"'collapse' + idx + idx1\"\n class=\"panel-collapse p-3 collapse in\">\n <div class=\"card-block\">\n @if (faq?.answer) {\n <div class=\"ql-container ql-snow no-border\">\n <div class=\"ql-editor\"\n [innerHTML]=\"sanitizedFaqAnswers[idx + '-' + idx1]\">\n </div>\n </div>\n }\n </div>\n </div>\n </div>\n }\n </div>\n }\n </div>\n }\n }\n @if (isLoaded && (totalRecords === 0 || allFaqFalse)) {\n <div>\n <pw-no-data [withImage]=\"true\" [message]=\"'Dashboard.Faq.NoData' | transloco\"> </pw-no-data>\n </div>\n }\n</div>\n",
343
+ 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);--pw-hairline: #e2e5ea;--public-btn-radius: 24px}.card-header h1,.card-header p{color:#fff!important}.faq-item{border:1px solid rgb(224,224,224);background-color:#fff;border-radius:8px;margin:8px 0;overflow:hidden;transition:border-color .16s ease-out,box-shadow .16s ease-out}.faq-item:hover{border-color:#bdbdbd}.faq-item .dashboard-header{background:transparent;padding:0;display:flex;align-items:center;position:relative}.faq-item .dashboard-header:after{content:\"\\f078\";font-family:\"Font Awesome 5 Pro\",sans-serif;font-weight:600;font-size:13px;color:#9e9e9e;flex:0 0 auto;margin-left:auto;margin-right:18px;transition:transform .18s ease-out,color .18s ease-out}.faq-item .dashboard-header:hover:after{color:var(--titles)}.faq-item .dashboard-header:has(.accordion-toggle:not(.collapsed)):after{transform:rotate(180deg);color:var(--titles)}.faq-item .accordion-title{margin:0;flex:0 1 auto;min-width:0}.faq-item .faq-edit-link{position:relative;z-index:1;display:inline-flex;align-items:center;flex:0 0 auto;padding:14px 8px;text-decoration:none}.faq-item .faq-edit-link .edit-icon{font-size:14px}.faq-item .accordion-toggle{display:flex;align-items:center;padding:14px 4px 14px 18px;font-size:15px;font-weight:600;line-height:1.45;color:var(--titles);text-decoration:none;cursor:pointer}.faq-item .accordion-toggle:before{content:\"\"!important;position:absolute;inset:0;width:auto;padding:0}.faq-item .accordion-toggle:focus-visible{outline:2px solid var(--first);outline-offset:-2px}.faq-item .panel-collapse{padding:0!important}.faq-item .card-block{padding:4px 18px 16px;border-top:1px solid rgb(238,238,238)}.faq-item .ql-editor{font-size:14px;line-height:1.65;color:#616161;text-align:left}.document-btn{background-color:var(--second);border-color:var(--second)!important;color:#fff}.document-btn:hover{color:var(--second)!important;background-color:transparent!important}.card{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.card .accordion-toggle:before{content:\"\\f078\"}.card .accordion-toggle.collapsed{transition:all .3s ease-in-out}.card .accordion-toggle.collapsed:before{content:\"\\f054\"}h6{color:var(--titles)!important;font-size:17px;font-weight:700;letter-spacing:.04em;padding:0 0 10px!important;margin:32px 0 14px!important;border-bottom:1px solid rgb(224,224,224)}.accordion-title a{color:var(--titles)!important}.ql-container{resize:none!important;max-width:1000px;margin:0 auto}\n"]
342
344
  }]
343
- }],
344
- ctorParameters: () => [
345
- { type: i1$1.CommonService },
346
- { type: i0.Injector },
347
- { type: i1$1.ProductService },
348
- { type: i1$2.DomSanitizer },
349
- { type: i0.ChangeDetectorRef }
350
- ]
345
+ }]
351
346
  });
352
347
  const EMPTY_FAQ_STATUS_BADGES = {
353
348
  isPublic: false,
@@ -372,11 +367,11 @@ function buildStatusBadges(faq, categories) {
372
367
  };
373
368
  }
374
369
  var FaqDetailsComponent = class FaqDetailsComponent extends AppBaseComponent {
375
- constructor(commonService, injector, sanitizer, cdr) {
376
- super(injector);
377
- this.commonService = commonService;
378
- this.sanitizer = sanitizer;
379
- this.cdr = cdr;
370
+ constructor() {
371
+ super();
372
+ this.commonService = inject(CommonService);
373
+ this.sanitizer = inject(DomSanitizer);
374
+ this.cdr = inject(ChangeDetectorRef);
380
375
  this.isLoading = false;
381
376
  this.routers = ADMIN_ROUTERS;
382
377
  this.canEditFaq = false;
@@ -435,12 +430,7 @@ var FaqDetailsComponent = class FaqDetailsComponent extends AppBaseComponent {
435
430
  version: "22.2.3",
436
431
  ngImport: i0,
437
432
  type: FaqDetailsComponent,
438
- deps: [
439
- { token: i1$1.CommonService },
440
- { token: i0.Injector },
441
- { token: i1$2.DomSanitizer },
442
- { token: i0.ChangeDetectorRef }
443
- ],
433
+ deps: [],
444
434
  target: i0.ɵɵFactoryTarget.Component
445
435
  });
446
436
  }
@@ -449,16 +439,44 @@ var FaqDetailsComponent = class FaqDetailsComponent extends AppBaseComponent {
449
439
  minVersion: "17.0.0",
450
440
  version: "22.2.3",
451
441
  type: FaqDetailsComponent,
452
- isStandalone: false,
442
+ isStandalone: true,
453
443
  selector: "pw-faq-details",
454
444
  usesInheritance: true,
455
445
  ngImport: i0,
456
- template: "@if (!isLoading) {\n <div class=\"content-quill-wrapper overflow-hidden mt-5 p-3\">\n <div class=\"content-quill-box\">\n <h2 [class.mb-3]=\"!showStatusBadges\" [class.mb-2]=\"showStatusBadges\">\n {{faq?.question}}\n @if (canEditFaq && editFaqId) {\n <a class=\"faq-edit-link ms-3\"\n [pTooltip]=\"'Admin.Faq.EditTitle' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\"\n [attr.aria-label]=\"'Admin.Faq.EditTitle' | transloco\"\n [routerLink]=\"[routers.faqDetails + editFaqId]\"\n target=\"_blank\">\n <i class=\"fa fa-edit edit-icon\" aria-hidden=\"true\"></i>\n </a>\n }\n </h2>\n @if (showStatusBadges) {\n <!-- `badge-soft` opts these out of Bootstrap's saturated fills and into\n the platform badge doctrine (admin-list-view §B-1..B-5: light tint +\n dark ink, status dot on success/danger, no dot on a taxonomy value).\n Defined once in @posiwise/core-styles — never restate the hexes. -->\n <div class=\"faq-status-badges d-flex flex-wrap align-items-center gap-2 mb-3\">\n @if (badges.categoryLabel) {\n <span class=\"badge badge-soft\"\n [appDynamicBadge]=\"{ itemsArray: badges.categoryKeys, item: badges.category }\"\n color=\"cyan\"\n [pTooltip]=\"badges.featureKeys.length ? badges.featureKeys.join(', ') : ''\"\n tooltipPosition=\"top\"\n appendTo=\"body\">{{ badges.categoryLabel }}</span>\n }\n @if (badges.isPublic) {\n <span class=\"badge badge-soft bg-success\"\n [pTooltip]=\"'Admin.Faq.Tooltip.Public' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\">{{ 'Admin.Faq.Public' | transloco }}</span>\n }\n @if (badges.isHidden) {\n <span class=\"badge badge-soft bg-danger\"\n [pTooltip]=\"'Admin.Faq.Tooltip.Hidden' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\">{{ 'Admin.Faq.Hidden' | transloco }}</span>\n }\n </div>\n }\n <ng-container>\n <div class=\"ql-container ql-snow no-border\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer\">\n </div>\n </div>\n </ng-container>\n </div>\n @if (!faq && !isLoading) {\n <pw-no-data\n message=\"No Faq found\">\n </pw-no-data>\n }\n <div class=\"text-end mt-3\">\n <button class=\"btn btn-outline-primary\"\n [routerLink]=\"['/',slug,'faq']\">See all FAQs</button>\n </div>\n </div>\n}\n@if (isLoading) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n}\n",
446
+ template: "@if (!isLoading) {\n <div class=\"content-quill-wrapper overflow-hidden mt-5 p-3\">\n <div class=\"content-quill-box\">\n <h2 [class.mb-3]=\"!showStatusBadges\" [class.mb-2]=\"showStatusBadges\">\n {{faq?.question}}\n @if (canEditFaq && editFaqId) {\n <a class=\"faq-edit-link ms-3\"\n [pTooltip]=\"'Admin.Faq.EditTitle' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\"\n [attr.aria-label]=\"'Admin.Faq.EditTitle' | transloco\"\n [routerLink]=\"[routers.faqDetails + editFaqId]\"\n target=\"_blank\">\n <i class=\"fa fa-edit edit-icon\" aria-hidden=\"true\"></i>\n </a>\n }\n </h2>\n @if (showStatusBadges) {\n <!-- `badge-soft` opts these out of Bootstrap's saturated fills and into\n the platform badge doctrine (admin-list-view §B-1..B-5: light tint +\n dark ink, status dot on success/danger, no dot on a taxonomy value).\n Defined once in @posiwise/core-styles — never restate the hexes. -->\n <div class=\"faq-status-badges d-flex flex-wrap align-items-center gap-2 mb-3\">\n @if (badges.categoryLabel) {\n <span class=\"badge badge-soft\"\n [appDynamicBadge]=\"{ itemsArray: badges.categoryKeys, item: badges.category }\"\n color=\"cyan\"\n [pTooltip]=\"badges.featureKeys.length ? badges.featureKeys.join(', ') : ''\"\n tooltipPosition=\"top\"\n appendTo=\"body\">{{ badges.categoryLabel }}</span>\n }\n @if (badges.isPublic) {\n <span class=\"badge badge-soft bg-success\"\n [pTooltip]=\"'Admin.Faq.Tooltip.Public' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\">{{ 'Admin.Faq.Public' | transloco }}</span>\n }\n @if (badges.isHidden) {\n <span class=\"badge badge-soft bg-danger\"\n [pTooltip]=\"'Admin.Faq.Tooltip.Hidden' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\">{{ 'Admin.Faq.Hidden' | transloco }}</span>\n }\n </div>\n }\n <ng-container>\n <div class=\"ql-container ql-snow no-border\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer\">\n </div>\n </div>\n </ng-container>\n </div>\n @if (!faq && !isLoading) {\n <pw-no-data\n [message]=\"'Dashboard.Faq.NotFound' | transloco\">\n </pw-no-data>\n }\n <div class=\"text-end mt-3\">\n <button class=\"btn btn-outline-primary\"\n [routerLink]=\"['/',slug,'faq']\">{{ 'Dashboard.Faq.SeeAll' | transloco }}</button>\n </div>\n </div>\n}\n@if (isLoading) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n}\n",
457
447
  styles: [".ql-container{resize:none!important}.faq-edit-link{text-decoration:none;vertical-align:middle}.faq-edit-link .edit-icon{font-size:16px}\n"],
458
448
  dependencies: [
459
449
  {
460
450
  kind: "directive",
461
- type: i3$1.RouterLink,
451
+ type: Tooltip,
452
+ selector: "[pTooltip]",
453
+ inputs: [
454
+ "tooltipPosition",
455
+ "tooltipEvent",
456
+ "positionStyle",
457
+ "tooltipStyleClass",
458
+ "tooltipZIndex",
459
+ "escape",
460
+ "showDelay",
461
+ "hideDelay",
462
+ "life",
463
+ "positionTop",
464
+ "positionLeft",
465
+ "autoHide",
466
+ "fitContent",
467
+ "hideOnEscape",
468
+ "showOnEllipsis",
469
+ "pTooltip",
470
+ "tooltipDisabled",
471
+ "tooltipOptions",
472
+ "appendTo",
473
+ "pTooltipPT",
474
+ "pTooltipUnstyled"
475
+ ]
476
+ },
477
+ {
478
+ kind: "directive",
479
+ type: RouterLink,
462
480
  selector: "[routerLink]",
463
481
  inputs: [
464
482
  "target",
@@ -477,7 +495,7 @@ var FaqDetailsComponent = class FaqDetailsComponent extends AppBaseComponent {
477
495
  },
478
496
  {
479
497
  kind: "directive",
480
- type: i4.DynamicBadgeDirective,
498
+ type: DynamicBadgeDirective,
481
499
  selector: "[appDynamicBadge]",
482
500
  inputs: [
483
501
  "appDynamicBadge",
@@ -488,7 +506,17 @@ var FaqDetailsComponent = class FaqDetailsComponent extends AppBaseComponent {
488
506
  },
489
507
  {
490
508
  kind: "component",
491
- type: i2$2.ProgressSpinner,
509
+ type: NoDataComponent,
510
+ selector: "pw-no-data",
511
+ inputs: [
512
+ "message",
513
+ "description",
514
+ "withImage"
515
+ ]
516
+ },
517
+ {
518
+ kind: "component",
519
+ type: ProgressSpinner,
492
520
  selector: "p-progress-spinner, p-progressspinner",
493
521
  inputs: [
494
522
  "value",
@@ -500,47 +528,9 @@ var FaqDetailsComponent = class FaqDetailsComponent extends AppBaseComponent {
500
528
  "fill"
501
529
  ]
502
530
  },
503
- {
504
- kind: "directive",
505
- type: i5$1.Tooltip,
506
- selector: "[pTooltip]",
507
- inputs: [
508
- "tooltipPosition",
509
- "tooltipEvent",
510
- "positionStyle",
511
- "tooltipStyleClass",
512
- "tooltipZIndex",
513
- "escape",
514
- "showDelay",
515
- "hideDelay",
516
- "life",
517
- "positionTop",
518
- "positionLeft",
519
- "autoHide",
520
- "fitContent",
521
- "hideOnEscape",
522
- "showOnEllipsis",
523
- "pTooltip",
524
- "tooltipDisabled",
525
- "tooltipOptions",
526
- "appendTo",
527
- "pTooltipPT",
528
- "pTooltipUnstyled"
529
- ]
530
- },
531
- {
532
- kind: "component",
533
- type: i6.NoDataComponent,
534
- selector: "pw-no-data",
535
- inputs: [
536
- "message",
537
- "description",
538
- "withImage"
539
- ]
540
- },
541
531
  {
542
532
  kind: "pipe",
543
- type: i7.TranslocoPipe,
533
+ type: TranslocoPipe,
544
534
  name: "transloco"
545
535
  }
546
536
  ]
@@ -556,24 +546,27 @@ i0.ɵɵngDeclareClassMetadata({
556
546
  type: Component,
557
547
  args: [{
558
548
  selector: "pw-faq-details",
559
- standalone: false,
560
- template: "@if (!isLoading) {\n <div class=\"content-quill-wrapper overflow-hidden mt-5 p-3\">\n <div class=\"content-quill-box\">\n <h2 [class.mb-3]=\"!showStatusBadges\" [class.mb-2]=\"showStatusBadges\">\n {{faq?.question}}\n @if (canEditFaq && editFaqId) {\n <a class=\"faq-edit-link ms-3\"\n [pTooltip]=\"'Admin.Faq.EditTitle' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\"\n [attr.aria-label]=\"'Admin.Faq.EditTitle' | transloco\"\n [routerLink]=\"[routers.faqDetails + editFaqId]\"\n target=\"_blank\">\n <i class=\"fa fa-edit edit-icon\" aria-hidden=\"true\"></i>\n </a>\n }\n </h2>\n @if (showStatusBadges) {\n <!-- `badge-soft` opts these out of Bootstrap's saturated fills and into\n the platform badge doctrine (admin-list-view §B-1..B-5: light tint +\n dark ink, status dot on success/danger, no dot on a taxonomy value).\n Defined once in @posiwise/core-styles — never restate the hexes. -->\n <div class=\"faq-status-badges d-flex flex-wrap align-items-center gap-2 mb-3\">\n @if (badges.categoryLabel) {\n <span class=\"badge badge-soft\"\n [appDynamicBadge]=\"{ itemsArray: badges.categoryKeys, item: badges.category }\"\n color=\"cyan\"\n [pTooltip]=\"badges.featureKeys.length ? badges.featureKeys.join(', ') : ''\"\n tooltipPosition=\"top\"\n appendTo=\"body\">{{ badges.categoryLabel }}</span>\n }\n @if (badges.isPublic) {\n <span class=\"badge badge-soft bg-success\"\n [pTooltip]=\"'Admin.Faq.Tooltip.Public' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\">{{ 'Admin.Faq.Public' | transloco }}</span>\n }\n @if (badges.isHidden) {\n <span class=\"badge badge-soft bg-danger\"\n [pTooltip]=\"'Admin.Faq.Tooltip.Hidden' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\">{{ 'Admin.Faq.Hidden' | transloco }}</span>\n }\n </div>\n }\n <ng-container>\n <div class=\"ql-container ql-snow no-border\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer\">\n </div>\n </div>\n </ng-container>\n </div>\n @if (!faq && !isLoading) {\n <pw-no-data\n message=\"No Faq found\">\n </pw-no-data>\n }\n <div class=\"text-end mt-3\">\n <button class=\"btn btn-outline-primary\"\n [routerLink]=\"['/',slug,'faq']\">See all FAQs</button>\n </div>\n </div>\n}\n@if (isLoading) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n}\n",
549
+ imports: [
550
+ Tooltip,
551
+ RouterLink,
552
+ DynamicBadgeDirective,
553
+ NoDataComponent,
554
+ Bind,
555
+ ProgressSpinner,
556
+ TranslocoPipe
557
+ ],
558
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
559
+ template: "@if (!isLoading) {\n <div class=\"content-quill-wrapper overflow-hidden mt-5 p-3\">\n <div class=\"content-quill-box\">\n <h2 [class.mb-3]=\"!showStatusBadges\" [class.mb-2]=\"showStatusBadges\">\n {{faq?.question}}\n @if (canEditFaq && editFaqId) {\n <a class=\"faq-edit-link ms-3\"\n [pTooltip]=\"'Admin.Faq.EditTitle' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\"\n [attr.aria-label]=\"'Admin.Faq.EditTitle' | transloco\"\n [routerLink]=\"[routers.faqDetails + editFaqId]\"\n target=\"_blank\">\n <i class=\"fa fa-edit edit-icon\" aria-hidden=\"true\"></i>\n </a>\n }\n </h2>\n @if (showStatusBadges) {\n <!-- `badge-soft` opts these out of Bootstrap's saturated fills and into\n the platform badge doctrine (admin-list-view §B-1..B-5: light tint +\n dark ink, status dot on success/danger, no dot on a taxonomy value).\n Defined once in @posiwise/core-styles — never restate the hexes. -->\n <div class=\"faq-status-badges d-flex flex-wrap align-items-center gap-2 mb-3\">\n @if (badges.categoryLabel) {\n <span class=\"badge badge-soft\"\n [appDynamicBadge]=\"{ itemsArray: badges.categoryKeys, item: badges.category }\"\n color=\"cyan\"\n [pTooltip]=\"badges.featureKeys.length ? badges.featureKeys.join(', ') : ''\"\n tooltipPosition=\"top\"\n appendTo=\"body\">{{ badges.categoryLabel }}</span>\n }\n @if (badges.isPublic) {\n <span class=\"badge badge-soft bg-success\"\n [pTooltip]=\"'Admin.Faq.Tooltip.Public' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\">{{ 'Admin.Faq.Public' | transloco }}</span>\n }\n @if (badges.isHidden) {\n <span class=\"badge badge-soft bg-danger\"\n [pTooltip]=\"'Admin.Faq.Tooltip.Hidden' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\">{{ 'Admin.Faq.Hidden' | transloco }}</span>\n }\n </div>\n }\n <ng-container>\n <div class=\"ql-container ql-snow no-border\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer\">\n </div>\n </div>\n </ng-container>\n </div>\n @if (!faq && !isLoading) {\n <pw-no-data\n [message]=\"'Dashboard.Faq.NotFound' | transloco\">\n </pw-no-data>\n }\n <div class=\"text-end mt-3\">\n <button class=\"btn btn-outline-primary\"\n [routerLink]=\"['/',slug,'faq']\">{{ 'Dashboard.Faq.SeeAll' | transloco }}</button>\n </div>\n </div>\n}\n@if (isLoading) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n}\n",
561
560
  styles: [".ql-container{resize:none!important}.faq-edit-link{text-decoration:none;vertical-align:middle}.faq-edit-link .edit-icon{font-size:16px}\n"]
562
561
  }]
563
562
  }],
564
- ctorParameters: () => [
565
- { type: i1$1.CommonService },
566
- { type: i0.Injector },
567
- { type: i1$2.DomSanitizer },
568
- { type: i0.ChangeDetectorRef }
569
- ]
563
+ ctorParameters: () => []
570
564
  });
571
- const HOME_PRODUCT_SECTIONS = new InjectionToken("HOME_PRODUCT_SECTIONS");
572
565
  var UserFeedbackComponent = class UserFeedbackComponent extends AppBaseComponent {
573
- constructor(injector, commonService, cdr) {
574
- super(injector);
575
- this.commonService = commonService;
576
- this.cdr = cdr;
566
+ constructor() {
567
+ super(...arguments);
568
+ this.commonService = inject(CommonService);
569
+ this.cdr = inject(ChangeDetectorRef);
577
570
  this.rating = 3;
578
571
  this.selectedValue = null;
579
572
  this.questions = [];
@@ -631,11 +624,7 @@ var UserFeedbackComponent = class UserFeedbackComponent extends AppBaseComponent
631
624
  version: "22.2.3",
632
625
  ngImport: i0,
633
626
  type: UserFeedbackComponent,
634
- deps: [
635
- { token: i0.Injector },
636
- { token: i1$1.CommonService },
637
- { token: i0.ChangeDetectorRef }
638
- ],
627
+ deps: null,
639
628
  target: i0.ɵɵFactoryTarget.Component
640
629
  });
641
630
  }
@@ -644,36 +633,40 @@ var UserFeedbackComponent = class UserFeedbackComponent extends AppBaseComponent
644
633
  minVersion: "17.0.0",
645
634
  version: "22.2.3",
646
635
  type: UserFeedbackComponent,
647
- isStandalone: false,
636
+ isStandalone: true,
648
637
  selector: "pw-user-feedback",
649
638
  usesInheritance: true,
650
639
  ngImport: i0,
651
640
  template: "@if (showSection) {\n @if (questions?.length) {\n <div class=\"mt-4\"\n >\n <div class=\"card pb-1\">\n <h3 class=\"text-end me-3 pt-2 cursor-pointer\"\n (keydown.enter)=\"closeSection()\"\n (click)=\"closeSection()\">&times;</h3>\n @for (question of questions; track trackByQuestion($index, question); let first = $first) {\n <div class=\"card-content p-0\"\n >\n <div class=\"card-header\">\n <form #feedbackForm=\"ngForm\">\n <div class=\"col-lg-8 p-0 mx-auto\">\n @if (first) {\n <h3 class=\"mb-1\"\n >{{ 'Feedback.Title' | transloco }}</h3>\n }\n @if (first) {\n <p class=\"mb-4\"\n >\n {{ 'Feedback.Intro' | transloco }}\n </p>\n }\n <h6 class=\"fw-bold pb-3 mx-auto\">{{ question?.question }}</h6>\n <div class=\"text-center row p-2 mx-md-2 feedback-value\">\n <span class=\"col-auto me-0\">{{ 'Feedback.NotAtAll' | transloco }}</span>\n @for (val of counter(11); track val; let i = $index) {\n <div class=\"p-field-checkbox col-auto ms-0 me-0\">\n <p-radio-button name=\"feedback\" [(ngModel)]=\"selectedValue\" [value]=\"i\" [inputId]=\"i\"></p-radio-button>\n <br />\n <label [for]=\"i\">{{ i }}</label>\n </div>\n }\n <span class=\"col-auto ms-0\">{{ 'Feedback.Extremely' | transloco }}</span>\n </div>\n <div class=\"text mt-3\">\n <h6>{{ 'Feedback.ReasonQuestion' | transloco }}</h6>\n <label for=\"user-feedback-description\" class=\"visually-hidden\">{{ 'Feedback.ReasonLabel' | transloco }}</label>\n <textarea id=\"user-feedback-description\"\n rows=\"4\"\n name=\"description\"\n [placeholder]=\"'Feedback.ReasonPlaceholder' | transloco\"\n ngModel\n type=\"text\"\n pInputTextarea\n class=\"form-control\"\n [attr.aria-label]=\"'Feedback.ReasonPlaceholder' | transloco\">\n </textarea>\n </div>\n <div class=\"mt-3\">\n <button class=\"btn btn-primary d-block mx-auto\"\n (click)=\"onSubmit(question?.id, feedbackForm.value)\">\n {{ 'Button.Submit' | transloco }}\n </button>\n </div>\n </div>\n </form>\n </div>\n </div>\n }\n </div>\n </div>\n }\n}\n",
652
641
  styles: ["::ng-deep .p-radiobutton-checked .p-radiobutton-box{border-color:var(--first)!important;background:var(--first)!important}.feedback-value{justify-content:center}.feedback-value label{color:#000000de;cursor:pointer;font-size:1rem;font-weight:400;letter-spacing:normal;margin-left:10px;margin-right:10px;text-transform:none}.feedback-value .p-field-checkbox{margin:0 10px}\n"],
653
642
  dependencies: [
643
+ {
644
+ kind: "ngmodule",
645
+ type: FormsModule
646
+ },
654
647
  {
655
648
  kind: "directive",
656
- type: i2$1.ɵNgNoValidate,
649
+ type: i1.ɵNgNoValidate,
657
650
  selector: "form:not([ngNoForm]):not([ngNativeValidate])"
658
651
  },
659
652
  {
660
653
  kind: "directive",
661
- type: i2$1.DefaultValueAccessor,
654
+ type: i1.DefaultValueAccessor,
662
655
  selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]"
663
656
  },
664
657
  {
665
658
  kind: "directive",
666
- type: i2$1.NgControlStatus,
659
+ type: i1.NgControlStatus,
667
660
  selector: "[formControlName],[ngModel],[formControl]"
668
661
  },
669
662
  {
670
663
  kind: "directive",
671
- type: i2$1.NgControlStatusGroup,
664
+ type: i1.NgControlStatusGroup,
672
665
  selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]"
673
666
  },
674
667
  {
675
668
  kind: "directive",
676
- type: i2$1.NgModel,
669
+ type: i1.NgModel,
677
670
  selector: "[ngModel]:not([formControlName]):not([formControl])",
678
671
  inputs: [
679
672
  "name",
@@ -686,7 +679,7 @@ var UserFeedbackComponent = class UserFeedbackComponent extends AppBaseComponent
686
679
  },
687
680
  {
688
681
  kind: "directive",
689
- type: i2$1.NgForm,
682
+ type: i1.NgForm,
690
683
  selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]",
691
684
  inputs: ["ngFormOptions"],
692
685
  outputs: ["ngSubmit"],
@@ -694,7 +687,7 @@ var UserFeedbackComponent = class UserFeedbackComponent extends AppBaseComponent
694
687
  },
695
688
  {
696
689
  kind: "component",
697
- type: i3.RadioButton,
690
+ type: RadioButton,
698
691
  selector: "p-radiobutton, p-radio-button",
699
692
  inputs: [
700
693
  "value",
@@ -715,7 +708,7 @@ var UserFeedbackComponent = class UserFeedbackComponent extends AppBaseComponent
715
708
  },
716
709
  {
717
710
  kind: "pipe",
718
- type: i7.TranslocoPipe,
711
+ type: TranslocoPipe,
719
712
  name: "transloco"
720
713
  }
721
714
  ]
@@ -731,23 +724,25 @@ i0.ɵɵngDeclareClassMetadata({
731
724
  type: Component,
732
725
  args: [{
733
726
  selector: "pw-user-feedback",
734
- standalone: false,
727
+ imports: [
728
+ FormsModule,
729
+ Bind,
730
+ RadioButton,
731
+ TranslocoPipe
732
+ ],
733
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
735
734
  template: "@if (showSection) {\n @if (questions?.length) {\n <div class=\"mt-4\"\n >\n <div class=\"card pb-1\">\n <h3 class=\"text-end me-3 pt-2 cursor-pointer\"\n (keydown.enter)=\"closeSection()\"\n (click)=\"closeSection()\">&times;</h3>\n @for (question of questions; track trackByQuestion($index, question); let first = $first) {\n <div class=\"card-content p-0\"\n >\n <div class=\"card-header\">\n <form #feedbackForm=\"ngForm\">\n <div class=\"col-lg-8 p-0 mx-auto\">\n @if (first) {\n <h3 class=\"mb-1\"\n >{{ 'Feedback.Title' | transloco }}</h3>\n }\n @if (first) {\n <p class=\"mb-4\"\n >\n {{ 'Feedback.Intro' | transloco }}\n </p>\n }\n <h6 class=\"fw-bold pb-3 mx-auto\">{{ question?.question }}</h6>\n <div class=\"text-center row p-2 mx-md-2 feedback-value\">\n <span class=\"col-auto me-0\">{{ 'Feedback.NotAtAll' | transloco }}</span>\n @for (val of counter(11); track val; let i = $index) {\n <div class=\"p-field-checkbox col-auto ms-0 me-0\">\n <p-radio-button name=\"feedback\" [(ngModel)]=\"selectedValue\" [value]=\"i\" [inputId]=\"i\"></p-radio-button>\n <br />\n <label [for]=\"i\">{{ i }}</label>\n </div>\n }\n <span class=\"col-auto ms-0\">{{ 'Feedback.Extremely' | transloco }}</span>\n </div>\n <div class=\"text mt-3\">\n <h6>{{ 'Feedback.ReasonQuestion' | transloco }}</h6>\n <label for=\"user-feedback-description\" class=\"visually-hidden\">{{ 'Feedback.ReasonLabel' | transloco }}</label>\n <textarea id=\"user-feedback-description\"\n rows=\"4\"\n name=\"description\"\n [placeholder]=\"'Feedback.ReasonPlaceholder' | transloco\"\n ngModel\n type=\"text\"\n pInputTextarea\n class=\"form-control\"\n [attr.aria-label]=\"'Feedback.ReasonPlaceholder' | transloco\">\n </textarea>\n </div>\n <div class=\"mt-3\">\n <button class=\"btn btn-primary d-block mx-auto\"\n (click)=\"onSubmit(question?.id, feedbackForm.value)\">\n {{ 'Button.Submit' | transloco }}\n </button>\n </div>\n </div>\n </form>\n </div>\n </div>\n }\n </div>\n </div>\n }\n}\n",
736
735
  styles: ["::ng-deep .p-radiobutton-checked .p-radiobutton-box{border-color:var(--first)!important;background:var(--first)!important}.feedback-value{justify-content:center}.feedback-value label{color:#000000de;cursor:pointer;font-size:1rem;font-weight:400;letter-spacing:normal;margin-left:10px;margin-right:10px;text-transform:none}.feedback-value .p-field-checkbox{margin:0 10px}\n"]
737
736
  }]
738
- }],
739
- ctorParameters: () => [
740
- { type: i0.Injector },
741
- { type: i1$1.CommonService },
742
- { type: i0.ChangeDetectorRef }
743
- ]
737
+ }]
744
738
  });
739
+ const HOME_PRODUCT_SECTIONS = new InjectionToken("HOME_PRODUCT_SECTIONS");
745
740
  var HomeComponent = class HomeComponent extends AppBaseComponent {
746
- constructor(injector, hopscotchService, cdr, productSections) {
747
- super(injector);
748
- this.hopscotchService = hopscotchService;
749
- this.cdr = cdr;
750
- this.productSections = productSections;
741
+ constructor() {
742
+ super(...arguments);
743
+ this.hopscotchService = inject(HopscotchService);
744
+ this.cdr = inject(ChangeDetectorRef);
745
+ this.productSections = inject(HOME_PRODUCT_SECTIONS, { optional: true });
751
746
  this.componentActive = true;
752
747
  }
753
748
  sanitizeContent(jsonString) {
@@ -801,15 +796,7 @@ var HomeComponent = class HomeComponent extends AppBaseComponent {
801
796
  version: "22.2.3",
802
797
  ngImport: i0,
803
798
  type: HomeComponent,
804
- deps: [
805
- { token: i0.Injector },
806
- { token: i1$1.HopscotchService },
807
- { token: i0.ChangeDetectorRef },
808
- {
809
- token: HOME_PRODUCT_SECTIONS,
810
- optional: true
811
- }
812
- ],
799
+ deps: null,
813
800
  target: i0.ɵɵFactoryTarget.Component
814
801
  });
815
802
  }
@@ -818,16 +805,21 @@ var HomeComponent = class HomeComponent extends AppBaseComponent {
818
805
  minVersion: "17.0.0",
819
806
  version: "22.2.3",
820
807
  type: HomeComponent,
821
- isStandalone: false,
808
+ isStandalone: true,
822
809
  selector: "pw-home",
823
810
  usesInheritance: true,
824
811
  ngImport: i0,
825
- template: "<pw-user-feedback></pw-user-feedback>\n@if (productSections?.length) {\n @for (section of productSections; track section) {\n <ng-container *ngComponentOutlet=\"section\"></ng-container>\n }\n}\n<div class=\"row mt-3\">\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <div id=\"cards\"></div>\n <h3 class=\"mb-3\">{{'ManageYourAccount'|transloco}}</h3>\n <p>{{'ManageYourAccountDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/ManageYourAccount.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a routerLink=\"/account/details\"\n class=\"d-block\">{{'ManageYourAccount'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step2\"></div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'UpdateYourProfile'|transloco}}</h3>\n <p>{{'UpdateYourProfileDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/UpdateYourProfile.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a [routerLink]=\"['/members', userSlug]\"\n class=\"d-block\">{{'UpdateYourProfile'|transloco}}</a>\n </div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'CommunicationSettings'|transloco}}</h3>\n <p>\n {{'CommunicationSettingsDescription'|transloco}}\n </p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/CommunicationSettings.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a routerLink=\"/settings/communication\"\n class=\"d-block\">{{'GotoCommunicationSettings'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step3\"></div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'NeedHelp'|transloco}}</h3>\n <p>{{'NeedHelpDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/NeedHelp.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a [routerLink]=\"'/' + selectedSubscriptionSlug + '/faq'\"\n class=\"d-block\">{{'SeeAllOurFaq'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step4\"></div>\n </div>\n </div>\n </div>\n</div>\n",
812
+ template: "<pw-user-feedback></pw-user-feedback>\n@if (productSections?.length) {\n @for (section of productSections; track section) {\n <ng-container *ngComponentOutlet=\"section\"></ng-container>\n }\n}\n<div class=\"row mt-3\">\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <div id=\"cards\"></div>\n <h3 class=\"mb-3\">{{'ManageYourAccount'|transloco}}</h3>\n <p>{{'ManageYourAccountDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/ManageYourAccount.png\"\n alt=\"\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a routerLink=\"/account/details\"\n class=\"d-block\">{{'ManageYourAccount'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step2\"></div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'UpdateYourProfile'|transloco}}</h3>\n <p>{{'UpdateYourProfileDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/UpdateYourProfile.png\"\n alt=\"\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a [routerLink]=\"['/members', userSlug]\"\n class=\"d-block\">{{'UpdateYourProfile'|transloco}}</a>\n </div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'CommunicationSettings'|transloco}}</h3>\n <p>\n {{'CommunicationSettingsDescription'|transloco}}\n </p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/CommunicationSettings.png\"\n alt=\"\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a routerLink=\"/settings/communication\"\n class=\"d-block\">{{'GotoCommunicationSettings'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step3\"></div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'NeedHelp'|transloco}}</h3>\n <p>{{'NeedHelpDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/NeedHelp.png\"\n alt=\"\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a [routerLink]=\"'/' + selectedSubscriptionSlug + '/faq'\"\n class=\"d-block\">{{'SeeAllOurFaq'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step4\"></div>\n </div>\n </div>\n </div>\n</div>\n",
826
813
  styles: ["::ng-deep .hopscotch-title{text-align:center!important;margin-bottom:20px!important}::ng-deep .hopscotch-title h2{margin:0}::ng-deep .hopscotch-content{text-align:center;padding:20px;margin:0!important}::ng-deep .hopscotch-content img{width:150px;margin:20px 0}::ng-deep .hopscotch-content p{font-size:16px;color:#555}::ng-deep .hopscotch-step-title{text-align:left;margin-bottom:15px}::ng-deep .hopscotch-step-content{padding:20px;text-align:left!important}::ng-deep .hopscotch-step-content p{font-size:14px;color:#555;margin-bottom:10px;text-align:left!important}\n"],
827
814
  dependencies: [
815
+ {
816
+ kind: "component",
817
+ type: UserFeedbackComponent,
818
+ selector: "pw-user-feedback"
819
+ },
828
820
  {
829
821
  kind: "directive",
830
- type: i2.NgComponentOutlet,
822
+ type: NgComponentOutlet,
831
823
  selector: "[ngComponentOutlet]",
832
824
  inputs: [
833
825
  "ngComponentOutlet",
@@ -841,7 +833,12 @@ var HomeComponent = class HomeComponent extends AppBaseComponent {
841
833
  },
842
834
  {
843
835
  kind: "directive",
844
- type: i3$1.RouterLink,
836
+ type: LazyImgDirective,
837
+ selector: "img"
838
+ },
839
+ {
840
+ kind: "directive",
841
+ type: RouterLink,
845
842
  selector: "[routerLink]",
846
843
  inputs: [
847
844
  "target",
@@ -858,19 +855,9 @@ var HomeComponent = class HomeComponent extends AppBaseComponent {
858
855
  "routerLink"
859
856
  ]
860
857
  },
861
- {
862
- kind: "directive",
863
- type: i4.LazyImgDirective,
864
- selector: "img"
865
- },
866
- {
867
- kind: "component",
868
- type: UserFeedbackComponent,
869
- selector: "pw-user-feedback"
870
- },
871
858
  {
872
859
  kind: "pipe",
873
- type: i7.TranslocoPipe,
860
+ type: TranslocoPipe,
874
861
  name: "transloco"
875
862
  }
876
863
  ]
@@ -886,30 +873,43 @@ i0.ɵɵngDeclareClassMetadata({
886
873
  type: Component,
887
874
  args: [{
888
875
  selector: "pw-home",
889
- standalone: false,
890
- template: "<pw-user-feedback></pw-user-feedback>\n@if (productSections?.length) {\n @for (section of productSections; track section) {\n <ng-container *ngComponentOutlet=\"section\"></ng-container>\n }\n}\n<div class=\"row mt-3\">\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <div id=\"cards\"></div>\n <h3 class=\"mb-3\">{{'ManageYourAccount'|transloco}}</h3>\n <p>{{'ManageYourAccountDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/ManageYourAccount.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a routerLink=\"/account/details\"\n class=\"d-block\">{{'ManageYourAccount'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step2\"></div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'UpdateYourProfile'|transloco}}</h3>\n <p>{{'UpdateYourProfileDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/UpdateYourProfile.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a [routerLink]=\"['/members', userSlug]\"\n class=\"d-block\">{{'UpdateYourProfile'|transloco}}</a>\n </div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'CommunicationSettings'|transloco}}</h3>\n <p>\n {{'CommunicationSettingsDescription'|transloco}}\n </p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/CommunicationSettings.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a routerLink=\"/settings/communication\"\n class=\"d-block\">{{'GotoCommunicationSettings'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step3\"></div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'NeedHelp'|transloco}}</h3>\n <p>{{'NeedHelpDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/NeedHelp.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a [routerLink]=\"'/' + selectedSubscriptionSlug + '/faq'\"\n class=\"d-block\">{{'SeeAllOurFaq'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step4\"></div>\n </div>\n </div>\n </div>\n</div>\n",
876
+ imports: [
877
+ UserFeedbackComponent,
878
+ NgComponentOutlet,
879
+ LazyImgDirective,
880
+ RouterLink,
881
+ TranslocoPipe
882
+ ],
883
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
884
+ template: "<pw-user-feedback></pw-user-feedback>\n@if (productSections?.length) {\n @for (section of productSections; track section) {\n <ng-container *ngComponentOutlet=\"section\"></ng-container>\n }\n}\n<div class=\"row mt-3\">\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <div id=\"cards\"></div>\n <h3 class=\"mb-3\">{{'ManageYourAccount'|transloco}}</h3>\n <p>{{'ManageYourAccountDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/ManageYourAccount.png\"\n alt=\"\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a routerLink=\"/account/details\"\n class=\"d-block\">{{'ManageYourAccount'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step2\"></div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'UpdateYourProfile'|transloco}}</h3>\n <p>{{'UpdateYourProfileDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/UpdateYourProfile.png\"\n alt=\"\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a [routerLink]=\"['/members', userSlug]\"\n class=\"d-block\">{{'UpdateYourProfile'|transloco}}</a>\n </div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'CommunicationSettings'|transloco}}</h3>\n <p>\n {{'CommunicationSettingsDescription'|transloco}}\n </p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/CommunicationSettings.png\"\n alt=\"\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a routerLink=\"/settings/communication\"\n class=\"d-block\">{{'GotoCommunicationSettings'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step3\"></div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'NeedHelp'|transloco}}</h3>\n <p>{{'NeedHelpDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/NeedHelp.png\"\n alt=\"\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a [routerLink]=\"'/' + selectedSubscriptionSlug + '/faq'\"\n class=\"d-block\">{{'SeeAllOurFaq'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step4\"></div>\n </div>\n </div>\n </div>\n</div>\n",
891
885
  styles: ["::ng-deep .hopscotch-title{text-align:center!important;margin-bottom:20px!important}::ng-deep .hopscotch-title h2{margin:0}::ng-deep .hopscotch-content{text-align:center;padding:20px;margin:0!important}::ng-deep .hopscotch-content img{width:150px;margin:20px 0}::ng-deep .hopscotch-content p{font-size:16px;color:#555}::ng-deep .hopscotch-step-title{text-align:left;margin-bottom:15px}::ng-deep .hopscotch-step-content{padding:20px;text-align:left!important}::ng-deep .hopscotch-step-content p{font-size:14px;color:#555;margin-bottom:10px;text-align:left!important}\n"]
892
886
  }]
893
- }],
894
- ctorParameters: () => [
895
- { type: i0.Injector },
896
- { type: i1$1.HopscotchService },
897
- { type: i0.ChangeDetectorRef },
898
- {
899
- type: void 0,
900
- decorators: [{ type: Optional }, {
901
- type: Inject,
902
- args: [HOME_PRODUCT_SECTIONS]
903
- }]
904
- }
905
- ]
887
+ }]
906
888
  });
889
+ function rowAction(host, id, action, request, cdr) {
890
+ host.busyId = id;
891
+ host.busyAction = action;
892
+ cdr.markForCheck();
893
+ return request.pipe(finalize(() => {
894
+ host.busyId = null;
895
+ host.busyAction = null;
896
+ cdr.markForCheck();
897
+ }));
898
+ }
899
+ function applyReadEvent(notes, event) {
900
+ notes.filter((note) => event.id === "all" || note.id === event.id).forEach((note) => note.unread = false);
901
+ }
907
902
  var CurrentNotificationsComponent = class CurrentNotificationsComponent {
908
- constructor(notificationService, cdr) {
909
- this.notificationService = notificationService;
910
- this.cdr = cdr;
903
+ constructor() {
904
+ this.notificationService = inject(NotificationService);
905
+ this.opener = inject(NotificationOpenerService);
906
+ this.cdr = inject(ChangeDetectorRef);
907
+ this.moved = new EventEmitter();
911
908
  this.notificationCount = 0;
912
909
  this.noNoti = true;
910
+ this.busyId = null;
911
+ this.busyAction = null;
912
+ this.destroyRef = inject(DestroyRef);
913
913
  this.itemsPerPage = 100;
914
914
  this.notifications = [];
915
915
  this.currentPage = 1;
@@ -919,9 +919,13 @@ var CurrentNotificationsComponent = class CurrentNotificationsComponent {
919
919
  }
920
920
  ngOnInit() {
921
921
  this.getNotifications();
922
+ this.notificationService.noteRead$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((event) => {
923
+ applyReadEvent(this.notifications, event);
924
+ this.cdr.markForCheck();
925
+ });
922
926
  }
923
927
  getNotifications() {
924
- this.notificationService.getNotifications({
928
+ this.notificationService.getCurrentNotifications({
925
929
  page: this.currentPage,
926
930
  page_size: this.itemsPerPage
927
931
  }).subscribe((data) => {
@@ -951,16 +955,17 @@ var CurrentNotificationsComponent = class CurrentNotificationsComponent {
951
955
  }
952
956
  }
953
957
  dismiss(id, e) {
954
- this.notificationService.dismissNotification(id).subscribe(() => {
955
- const index = this.notifications.indexOf(e);
956
- this.notifications.splice(index, 1);
957
- if (this.notifications.length === 0) this.noNoti = true;
958
- this.cdr.markForCheck();
959
- $("#noty").slideUp("slow", () => {
960
- $("#noty").remove();
961
- });
958
+ if (this.busyId !== null) return;
959
+ rowAction(this, id, "dismiss", this.notificationService.dismissNotification(id), this.cdr).subscribe(() => {
960
+ this.notifications.splice(this.notifications.indexOf(e), 1);
961
+ this.noNoti = this.notifications.length === 0;
962
+ this.totalRecords = Math.max(0, this.totalRecords - 1);
963
+ this.moved.emit("dismissed");
962
964
  });
963
965
  }
966
+ open(note) {
967
+ this.opener.open(note);
968
+ }
964
969
  trackByNotification(_index, item) {
965
970
  return item.id;
966
971
  }
@@ -970,7 +975,7 @@ var CurrentNotificationsComponent = class CurrentNotificationsComponent {
970
975
  version: "22.2.3",
971
976
  ngImport: i0,
972
977
  type: CurrentNotificationsComponent,
973
- deps: [{ token: i1$1.NotificationService }, { token: i0.ChangeDetectorRef }],
978
+ deps: [],
974
979
  target: i0.ɵɵFactoryTarget.Component
975
980
  });
976
981
  }
@@ -979,21 +984,16 @@ var CurrentNotificationsComponent = class CurrentNotificationsComponent {
979
984
  minVersion: "17.0.0",
980
985
  version: "22.2.3",
981
986
  type: CurrentNotificationsComponent,
982
- isStandalone: false,
987
+ isStandalone: true,
983
988
  selector: "pw-current-notifications",
989
+ outputs: { moved: "moved" },
984
990
  ngImport: i0,
985
- template: "<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n @if (!isLoaded) {\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n }\n </div>\n @if (notifications?.length && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n >\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n @for (item of notifications; track trackByNotification($index, item)) {\n <li\n class=\"p-3 border-bottom border-bottom-blue-grey border-bottom-lighten-4 d-flex align-items-center\">\n <span class=\"btn btn-circle me-2\"\n [ngClass]=\"{\n 'btn-danger': item.note_type === 'administrative',\n 'btn-secondary': item.note_type === 'object_event',\n 'btn-primary': item.note_type === 'user_generated'\n }\">\n <i\n class=\"fal float-start\"\n [ngClass]=\"{\n 'fa-bell': item.note_type === 'administrative',\n 'fa-share-alt': item.note_type === 'object_event',\n 'fa-bells': item.note_type === 'user_generated'\n }\"\n aria-hidden=\"true\"\n ></i>\n </span>\n <span class=\"d-inline-block noty-body\">\n <span class=\"noti-title line-height-1p5 d-block text-bold-400\">{{\n item.content\n }}</span>\n <span class=\"noti-text\"><span class=\"fal fa-clock\"></span>\n {{ item?.created_at | sinceAgo }}</span>\n </span>\n <span class=\"noti-buttons\">\n <button class=\"btn float-end\">\n <i\n class=\"far fa-trash-alt\"\n (click)=\"dismiss(item.id, item)\"\n (keydown.enter)=\"dismiss(item.id, item)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n </span>\n </li>\n }\n </ul>\n </div>\n <div class=\"pagination-container d-flex justify-content-between align-items-center mt-3 mb-3\">\n <pw-records-summary [showing]=\"totalRecords\" [total]=\"totalRecords\" />\n <div class=\"d-flex align-items-center\">\n <button class=\"btn btn-outline-primary me-2\" (click)=\"previousPage()\" [disabled]=\"currentPage === 1\">\n <i class=\"fas fa-chevron-left\"></i>\n </button>\n <span>Page {{ currentPage }} of {{ totalPages }}</span>\n <button class=\"btn btn-outline-primary ms-2\" (click)=\"nextPage()\" [disabled]=\"currentPage === totalPages\">\n <i class=\"fas fa-chevron-right\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>\n}\n\n@if (noNoti && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12\"\n >\n <pw-no-data [withImage]=\"true\" message=\"You are all caught up\" description=\"You currently do not have any notifications.\">\n </pw-no-data>\n </div>\n}\n</div>\n",
986
- styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}@media screen and (max-width:480px){.noty-body{width:240px}}.pagination-container{padding:0 1rem}\n"],
991
+ template: "<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n @if (!isLoaded) {\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n }\n </div>\n @if (notifications?.length && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n >\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n @for (item of notifications; track trackByNotification($index, item)) {\n <li\n [class.noti-read]=\"!item.unread\"\n class=\"p-3 border-bottom border-bottom-blue-grey border-bottom-lighten-4 d-flex align-items-center\">\n <span class=\"btn btn-circle me-2\"\n [ngClass]=\"{\n 'btn-danger': item.note_type === 'administrative',\n 'btn-secondary': item.note_type === 'object_event',\n 'btn-primary': item.note_type === 'user_generated'\n }\">\n <i\n class=\"fal float-start\"\n [ngClass]=\"{\n 'fa-bell': item.note_type === 'administrative',\n 'fa-share-alt': item.note_type === 'object_event',\n 'fa-bells': item.note_type === 'user_generated'\n }\"\n aria-hidden=\"true\"\n ></i>\n </span>\n <button type=\"button\" class=\"d-inline-block noty-body\"\n (click)=\"open(item)\">\n <span class=\"noti-title line-height-1p5 d-block text-bold-400\">{{\n item.content\n }}</span>\n <span class=\"noti-text\"><span class=\"fal fa-clock\"></span>\n {{ item?.created_at | sinceAgo }}</span>\n </button>\n <span class=\"noti-buttons\">\n <button type=\"button\"\n class=\"btn float-end\"\n [disabled]=\"busyId !== null\"\n [attr.aria-label]=\"'Navbar.DismissNotifications' | transloco\"\n [attr.aria-busy]=\"busyId === item.id\"\n (click)=\"dismiss(item.id, item)\">\n @if (busyId === item.id) {\n <i class=\"fas fa-circle-notch fa-spin\" aria-hidden=\"true\"></i>\n } @else {\n <i class=\"far fa-trash-alt\" aria-hidden=\"true\"></i>\n }\n </button>\n </span>\n </li>\n }\n </ul>\n </div>\n <div class=\"pagination-container d-flex justify-content-between align-items-center mt-3 mb-3\">\n <pw-records-summary [showing]=\"totalRecords\" [total]=\"totalRecords\" />\n <div class=\"d-flex align-items-center\">\n <button class=\"btn btn-outline-primary me-2\" (click)=\"previousPage()\" [disabled]=\"currentPage === 1\">\n <i class=\"fas fa-chevron-left\"></i>\n </button>\n <span>{{ 'Dashboard.Notifications.PageOf' | transloco: { currentPage: currentPage, totalPages: totalPages } }}</span>\n <button class=\"btn btn-outline-primary ms-2\" (click)=\"nextPage()\" [disabled]=\"currentPage === totalPages\">\n <i class=\"fas fa-chevron-right\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>\n}\n\n@if (noNoti && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12\"\n >\n <pw-no-data [withImage]=\"true\" [message]=\"'Navbar.AllCaughtUp' | transloco\" [description]=\"'Navbar.NoNotifications' | transloco\">\n </pw-no-data>\n </div>\n}\n</div>\n",
992
+ styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}.noty-body{background:none;border:0;color:inherit;cursor:pointer;font:inherit;padding:0;text-align:start}.noty-body .noti-text{width:auto}.noti-read{opacity:.6}@media screen and (max-width:480px){.noty-body{width:240px}}.pagination-container{padding:0 1rem}\n"],
987
993
  dependencies: [
988
- {
989
- kind: "directive",
990
- type: i2.NgClass,
991
- selector: "[ngClass]",
992
- inputs: ["class", "ngClass"]
993
- },
994
994
  {
995
995
  kind: "component",
996
- type: i2$2.ProgressSpinner,
996
+ type: ProgressSpinner,
997
997
  selector: "p-progress-spinner, p-progressspinner",
998
998
  inputs: [
999
999
  "value",
@@ -1005,9 +1005,21 @@ var CurrentNotificationsComponent = class CurrentNotificationsComponent {
1005
1005
  "fill"
1006
1006
  ]
1007
1007
  },
1008
+ {
1009
+ kind: "directive",
1010
+ type: NgClass,
1011
+ selector: "[ngClass]",
1012
+ inputs: ["class", "ngClass"]
1013
+ },
1014
+ {
1015
+ kind: "component",
1016
+ type: RecordsSummaryComponent,
1017
+ selector: "pw-records-summary",
1018
+ inputs: ["showing", "total"]
1019
+ },
1008
1020
  {
1009
1021
  kind: "component",
1010
- type: i6.NoDataComponent,
1022
+ type: NoDataComponent,
1011
1023
  selector: "pw-no-data",
1012
1024
  inputs: [
1013
1025
  "message",
@@ -1016,14 +1028,13 @@ var CurrentNotificationsComponent = class CurrentNotificationsComponent {
1016
1028
  ]
1017
1029
  },
1018
1030
  {
1019
- kind: "component",
1020
- type: i6.RecordsSummaryComponent,
1021
- selector: "pw-records-summary",
1022
- inputs: ["showing", "total"]
1031
+ kind: "pipe",
1032
+ type: TranslocoPipe,
1033
+ name: "transloco"
1023
1034
  },
1024
1035
  {
1025
1036
  kind: "pipe",
1026
- type: i5.SinceAgoPipe,
1037
+ type: SinceAgoPipe,
1027
1038
  name: "sinceAgo"
1028
1039
  }
1029
1040
  ]
@@ -1039,19 +1050,34 @@ i0.ɵɵngDeclareClassMetadata({
1039
1050
  type: Component,
1040
1051
  args: [{
1041
1052
  selector: "pw-current-notifications",
1042
- standalone: false,
1043
- template: "<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n @if (!isLoaded) {\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n }\n </div>\n @if (notifications?.length && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n >\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n @for (item of notifications; track trackByNotification($index, item)) {\n <li\n class=\"p-3 border-bottom border-bottom-blue-grey border-bottom-lighten-4 d-flex align-items-center\">\n <span class=\"btn btn-circle me-2\"\n [ngClass]=\"{\n 'btn-danger': item.note_type === 'administrative',\n 'btn-secondary': item.note_type === 'object_event',\n 'btn-primary': item.note_type === 'user_generated'\n }\">\n <i\n class=\"fal float-start\"\n [ngClass]=\"{\n 'fa-bell': item.note_type === 'administrative',\n 'fa-share-alt': item.note_type === 'object_event',\n 'fa-bells': item.note_type === 'user_generated'\n }\"\n aria-hidden=\"true\"\n ></i>\n </span>\n <span class=\"d-inline-block noty-body\">\n <span class=\"noti-title line-height-1p5 d-block text-bold-400\">{{\n item.content\n }}</span>\n <span class=\"noti-text\"><span class=\"fal fa-clock\"></span>\n {{ item?.created_at | sinceAgo }}</span>\n </span>\n <span class=\"noti-buttons\">\n <button class=\"btn float-end\">\n <i\n class=\"far fa-trash-alt\"\n (click)=\"dismiss(item.id, item)\"\n (keydown.enter)=\"dismiss(item.id, item)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n </span>\n </li>\n }\n </ul>\n </div>\n <div class=\"pagination-container d-flex justify-content-between align-items-center mt-3 mb-3\">\n <pw-records-summary [showing]=\"totalRecords\" [total]=\"totalRecords\" />\n <div class=\"d-flex align-items-center\">\n <button class=\"btn btn-outline-primary me-2\" (click)=\"previousPage()\" [disabled]=\"currentPage === 1\">\n <i class=\"fas fa-chevron-left\"></i>\n </button>\n <span>Page {{ currentPage }} of {{ totalPages }}</span>\n <button class=\"btn btn-outline-primary ms-2\" (click)=\"nextPage()\" [disabled]=\"currentPage === totalPages\">\n <i class=\"fas fa-chevron-right\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>\n}\n\n@if (noNoti && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12\"\n >\n <pw-no-data [withImage]=\"true\" message=\"You are all caught up\" description=\"You currently do not have any notifications.\">\n </pw-no-data>\n </div>\n}\n</div>\n",
1044
- styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}@media screen and (max-width:480px){.noty-body{width:240px}}.pagination-container{padding:0 1rem}\n"]
1053
+ imports: [
1054
+ Bind,
1055
+ ProgressSpinner,
1056
+ NgClass,
1057
+ RecordsSummaryComponent,
1058
+ NoDataComponent,
1059
+ TranslocoPipe,
1060
+ SinceAgoPipe
1061
+ ],
1062
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
1063
+ template: "<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n @if (!isLoaded) {\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n }\n </div>\n @if (notifications?.length && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n >\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n @for (item of notifications; track trackByNotification($index, item)) {\n <li\n [class.noti-read]=\"!item.unread\"\n class=\"p-3 border-bottom border-bottom-blue-grey border-bottom-lighten-4 d-flex align-items-center\">\n <span class=\"btn btn-circle me-2\"\n [ngClass]=\"{\n 'btn-danger': item.note_type === 'administrative',\n 'btn-secondary': item.note_type === 'object_event',\n 'btn-primary': item.note_type === 'user_generated'\n }\">\n <i\n class=\"fal float-start\"\n [ngClass]=\"{\n 'fa-bell': item.note_type === 'administrative',\n 'fa-share-alt': item.note_type === 'object_event',\n 'fa-bells': item.note_type === 'user_generated'\n }\"\n aria-hidden=\"true\"\n ></i>\n </span>\n <button type=\"button\" class=\"d-inline-block noty-body\"\n (click)=\"open(item)\">\n <span class=\"noti-title line-height-1p5 d-block text-bold-400\">{{\n item.content\n }}</span>\n <span class=\"noti-text\"><span class=\"fal fa-clock\"></span>\n {{ item?.created_at | sinceAgo }}</span>\n </button>\n <span class=\"noti-buttons\">\n <button type=\"button\"\n class=\"btn float-end\"\n [disabled]=\"busyId !== null\"\n [attr.aria-label]=\"'Navbar.DismissNotifications' | transloco\"\n [attr.aria-busy]=\"busyId === item.id\"\n (click)=\"dismiss(item.id, item)\">\n @if (busyId === item.id) {\n <i class=\"fas fa-circle-notch fa-spin\" aria-hidden=\"true\"></i>\n } @else {\n <i class=\"far fa-trash-alt\" aria-hidden=\"true\"></i>\n }\n </button>\n </span>\n </li>\n }\n </ul>\n </div>\n <div class=\"pagination-container d-flex justify-content-between align-items-center mt-3 mb-3\">\n <pw-records-summary [showing]=\"totalRecords\" [total]=\"totalRecords\" />\n <div class=\"d-flex align-items-center\">\n <button class=\"btn btn-outline-primary me-2\" (click)=\"previousPage()\" [disabled]=\"currentPage === 1\">\n <i class=\"fas fa-chevron-left\"></i>\n </button>\n <span>{{ 'Dashboard.Notifications.PageOf' | transloco: { currentPage: currentPage, totalPages: totalPages } }}</span>\n <button class=\"btn btn-outline-primary ms-2\" (click)=\"nextPage()\" [disabled]=\"currentPage === totalPages\">\n <i class=\"fas fa-chevron-right\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>\n}\n\n@if (noNoti && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12\"\n >\n <pw-no-data [withImage]=\"true\" [message]=\"'Navbar.AllCaughtUp' | transloco\" [description]=\"'Navbar.NoNotifications' | transloco\">\n </pw-no-data>\n </div>\n}\n</div>\n",
1064
+ styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}.noty-body{background:none;border:0;color:inherit;cursor:pointer;font:inherit;padding:0;text-align:start}.noty-body .noti-text{width:auto}.noti-read{opacity:.6}@media screen and (max-width:480px){.noty-body{width:240px}}.pagination-container{padding:0 1rem}\n"]
1045
1065
  }]
1046
1066
  }],
1047
- ctorParameters: () => [{ type: i1$1.NotificationService }, { type: i0.ChangeDetectorRef }]
1067
+ propDecorators: { moved: [{ type: Output }] }
1048
1068
  });
1049
1069
  var DismissedNotificationsComponent = class DismissedNotificationsComponent {
1050
- constructor(notificationService, cdr) {
1051
- this.notificationService = notificationService;
1052
- this.cdr = cdr;
1070
+ constructor() {
1071
+ this.notificationService = inject(NotificationService);
1072
+ this.opener = inject(NotificationOpenerService);
1073
+ this.confirmDialog = inject(ConfirmDialogService);
1074
+ this.cdr = inject(ChangeDetectorRef);
1075
+ this.moved = new EventEmitter();
1053
1076
  this.notificationCount = 0;
1054
1077
  this.noNoti = true;
1078
+ this.busyId = null;
1079
+ this.busyAction = null;
1080
+ this.destroyRef = inject(DestroyRef);
1055
1081
  this.dismissedNotifications = [];
1056
1082
  this.isLoaded = false;
1057
1083
  this.itemsPerPage = 100;
@@ -1061,6 +1087,10 @@ var DismissedNotificationsComponent = class DismissedNotificationsComponent {
1061
1087
  }
1062
1088
  ngOnInit() {
1063
1089
  this.getNotifications();
1090
+ this.notificationService.noteRead$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((event) => {
1091
+ applyReadEvent(this.dismissedNotifications, event);
1092
+ this.cdr.markForCheck();
1093
+ });
1064
1094
  }
1065
1095
  getNotifications() {
1066
1096
  this.notificationService.getDismissedNotifications({
@@ -1092,29 +1122,26 @@ var DismissedNotificationsComponent = class DismissedNotificationsComponent {
1092
1122
  }
1093
1123
  }
1094
1124
  dismiss(id, e) {
1095
- HelperService.raiseDeletePopup().then((res) => {
1096
- if (res.value) this.notificationService.deleteNotifications(id).subscribe(() => {
1097
- const index = this.dismissedNotifications.indexOf(e);
1098
- this.dismissedNotifications.splice(index, 1);
1099
- if (this.dismissedNotifications.length === 0) this.noNoti = true;
1100
- this.cdr.markForCheck();
1101
- $("#noty").slideUp("slow", () => {
1102
- $("#noty").remove();
1103
- });
1104
- });
1125
+ if (this.busyId !== null) return;
1126
+ this.confirmDialog.confirmDelete().then((ok) => {
1127
+ if (ok) this.removeAfter(id, e, "delete", this.notificationService.deleteNotifications(id), "deleted");
1105
1128
  });
1106
1129
  }
1107
1130
  restoreNotification(id, e) {
1108
- this.notificationService.reinstateNotification(id).subscribe(() => {
1109
- const index = this.dismissedNotifications.indexOf(e);
1110
- this.dismissedNotifications.splice(index, 1);
1111
- if (this.dismissedNotifications.length === 0) this.noNoti = true;
1112
- this.cdr.markForCheck();
1113
- $("#noty").slideUp("slow", () => {
1114
- $("#noty").remove();
1115
- });
1131
+ if (this.busyId !== null) return;
1132
+ this.removeAfter(id, e, "restore", this.notificationService.reinstateNotification(id), "restored");
1133
+ }
1134
+ removeAfter(id, e, action, request, outcome) {
1135
+ rowAction(this, id, action, request, this.cdr).subscribe(() => {
1136
+ this.dismissedNotifications.splice(this.dismissedNotifications.indexOf(e), 1);
1137
+ this.noNoti = this.dismissedNotifications.length === 0;
1138
+ this.totalRecords = Math.max(0, this.totalRecords - 1);
1139
+ this.moved.emit(outcome);
1116
1140
  });
1117
1141
  }
1142
+ open(note) {
1143
+ this.opener.open(note);
1144
+ }
1118
1145
  trackByNotification(_index, item) {
1119
1146
  return item.id;
1120
1147
  }
@@ -1124,7 +1151,7 @@ var DismissedNotificationsComponent = class DismissedNotificationsComponent {
1124
1151
  version: "22.2.3",
1125
1152
  ngImport: i0,
1126
1153
  type: DismissedNotificationsComponent,
1127
- deps: [{ token: i1$1.NotificationService }, { token: i0.ChangeDetectorRef }],
1154
+ deps: [],
1128
1155
  target: i0.ɵɵFactoryTarget.Component
1129
1156
  });
1130
1157
  }
@@ -1133,21 +1160,16 @@ var DismissedNotificationsComponent = class DismissedNotificationsComponent {
1133
1160
  minVersion: "17.0.0",
1134
1161
  version: "22.2.3",
1135
1162
  type: DismissedNotificationsComponent,
1136
- isStandalone: false,
1163
+ isStandalone: true,
1137
1164
  selector: "pw-dismissed-notifications",
1165
+ outputs: { moved: "moved" },
1138
1166
  ngImport: i0,
1139
- template: "<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n @if (!isLoaded) {\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n }\n </div>\n @if (dismissedNotifications?.length && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n >\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n @for (item of dismissedNotifications; track trackByNotification($index, item)) {\n <li\n class=\"p-3 border-bottom border-bottom-blue-grey border-bottom-lighten-4 d-flex align-items-center\">\n <span class=\"btn btn-circle me-2\"\n [ngClass]=\"{\n 'btn-danger': item.note_type === 'administrative',\n 'btn-secondary': item.note_type === 'object_event',\n 'btn-primary': item.note_type === 'user_generated'\n }\">\n <i\n class=\"fal float-start\"\n [ngClass]=\"{\n 'fa-bell': item.note_type === 'administrative',\n 'fa-share-alt': item.note_type === 'object_event',\n 'fa-bells': item.note_type === 'user_generated'\n }\"\n aria-hidden=\"true\"\n ></i>\n </span>\n <span class=\"d-inline-block noty-body\">\n <span class=\"noti-title line-height-1p5 d-block text-bold-400\">{{\n item.content\n }}</span>\n <span class=\"noti-text\"><span class=\"fal fa-clock\"></span>\n {{ item?.created_at | sinceAgo }}</span>\n </span>\n <span class=\"noti-buttons\">\n <button class=\"btn float-end\">\n <i\n class=\"far fa-trash-alt\"\n (click)=\"dismiss(item.id, item)\"\n (keydown.enter)=\"dismiss(item.id, item)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n <button class=\"btn float-end\">\n <i\n class=\"fas fa-trash-restore-alt\"\n (click)=\"restoreNotification(item.id, item)\"\n (keydown.enter)=\"restoreNotification(item.id, item)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n </span>\n </li>\n }\n </ul>\n </div>\n <div class=\"pagination-container d-flex justify-content-between align-items-center mt-3 mb-3\">\n <pw-records-summary [showing]=\"totalRecords\" [total]=\"totalRecords\" />\n <div class=\"d-flex align-items-center\">\n <button class=\"btn btn-outline-primary me-2\" (click)=\"previousPage()\" [disabled]=\"currentPage === 1\">\n <i class=\"fas fa-chevron-left\"></i>\n </button>\n <span>Page {{ currentPage }} of {{ totalPages }}</span>\n <button class=\"btn btn-outline-primary ms-2\" (click)=\"nextPage()\" [disabled]=\"currentPage === totalPages\">\n <i class=\"fas fa-chevron-right\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>\n}\n\n@if (noNoti && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12\"\n >\n <pw-no-data [withImage]=\"true\" message=\"You currently do not have any dismissed notifications\">\n </pw-no-data>\n </div>\n}\n</div>\n",
1140
- styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}@media screen and (max-width:480px){.noty-body{width:240px}}.pagination-container{padding:0 1rem}\n"],
1167
+ template: "<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n @if (!isLoaded) {\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n }\n </div>\n @if (dismissedNotifications?.length && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n >\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n @for (item of dismissedNotifications; track trackByNotification($index, item)) {\n <li\n [class.noti-read]=\"!item.unread\"\n class=\"p-3 border-bottom border-bottom-blue-grey border-bottom-lighten-4 d-flex align-items-center\">\n <span class=\"btn btn-circle me-2\"\n [ngClass]=\"{\n 'btn-danger': item.note_type === 'administrative',\n 'btn-secondary': item.note_type === 'object_event',\n 'btn-primary': item.note_type === 'user_generated'\n }\">\n <i\n class=\"fal float-start\"\n [ngClass]=\"{\n 'fa-bell': item.note_type === 'administrative',\n 'fa-share-alt': item.note_type === 'object_event',\n 'fa-bells': item.note_type === 'user_generated'\n }\"\n aria-hidden=\"true\"\n ></i>\n </span>\n <button type=\"button\" class=\"d-inline-block noty-body\"\n (click)=\"open(item)\">\n <span class=\"noti-title line-height-1p5 d-block text-bold-400\">{{\n item.content\n }}</span>\n <span class=\"noti-text\"><span class=\"fal fa-clock\"></span>\n {{ item?.created_at | sinceAgo }}</span>\n </button>\n <span class=\"noti-buttons\">\n <button type=\"button\"\n class=\"btn float-end\"\n [disabled]=\"busyId !== null\"\n [attr.aria-label]=\"'Button.Delete' | transloco\"\n [attr.aria-busy]=\"busyId === item.id && busyAction === 'delete'\"\n (click)=\"dismiss(item.id, item)\">\n @if (busyId === item.id && busyAction === 'delete') {\n <i class=\"fas fa-circle-notch fa-spin\" aria-hidden=\"true\"></i>\n } @else {\n <i class=\"far fa-trash-alt\" aria-hidden=\"true\"></i>\n }\n </button>\n <button type=\"button\"\n class=\"btn float-end\"\n [disabled]=\"busyId !== null\"\n [attr.aria-label]=\"'Dashboard.Notifications.Restore' | transloco\"\n [attr.aria-busy]=\"busyId === item.id && busyAction === 'restore'\"\n (click)=\"restoreNotification(item.id, item)\">\n @if (busyId === item.id && busyAction === 'restore') {\n <i class=\"fas fa-circle-notch fa-spin\" aria-hidden=\"true\"></i>\n } @else {\n <i class=\"fas fa-trash-restore-alt\" aria-hidden=\"true\"></i>\n }\n </button>\n </span>\n </li>\n }\n </ul>\n </div>\n <div class=\"pagination-container d-flex justify-content-between align-items-center mt-3 mb-3\">\n <pw-records-summary [showing]=\"totalRecords\" [total]=\"totalRecords\" />\n <div class=\"d-flex align-items-center\">\n <button class=\"btn btn-outline-primary me-2\" (click)=\"previousPage()\" [disabled]=\"currentPage === 1\">\n <i class=\"fas fa-chevron-left\"></i>\n </button>\n <span>{{ 'Dashboard.Notifications.PageOf' | transloco: { currentPage: currentPage, totalPages: totalPages } }}</span>\n <button class=\"btn btn-outline-primary ms-2\" (click)=\"nextPage()\" [disabled]=\"currentPage === totalPages\">\n <i class=\"fas fa-chevron-right\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>\n}\n\n@if (noNoti && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12\"\n >\n <pw-no-data [withImage]=\"true\" [message]=\"'Dashboard.Notifications.NoDismissed' | transloco\">\n </pw-no-data>\n </div>\n}\n</div>\n",
1168
+ styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}.noty-body{background:none;border:0;color:inherit;cursor:pointer;font:inherit;padding:0;text-align:start}.noty-body .noti-text{width:auto}.noti-read{opacity:.6}@media screen and (max-width:480px){.noty-body{width:240px}}.pagination-container{padding:0 1rem}\n"],
1141
1169
  dependencies: [
1142
- {
1143
- kind: "directive",
1144
- type: i2.NgClass,
1145
- selector: "[ngClass]",
1146
- inputs: ["class", "ngClass"]
1147
- },
1148
1170
  {
1149
1171
  kind: "component",
1150
- type: i2$2.ProgressSpinner,
1172
+ type: ProgressSpinner,
1151
1173
  selector: "p-progress-spinner, p-progressspinner",
1152
1174
  inputs: [
1153
1175
  "value",
@@ -1159,9 +1181,21 @@ var DismissedNotificationsComponent = class DismissedNotificationsComponent {
1159
1181
  "fill"
1160
1182
  ]
1161
1183
  },
1184
+ {
1185
+ kind: "directive",
1186
+ type: NgClass,
1187
+ selector: "[ngClass]",
1188
+ inputs: ["class", "ngClass"]
1189
+ },
1190
+ {
1191
+ kind: "component",
1192
+ type: RecordsSummaryComponent,
1193
+ selector: "pw-records-summary",
1194
+ inputs: ["showing", "total"]
1195
+ },
1162
1196
  {
1163
1197
  kind: "component",
1164
- type: i6.NoDataComponent,
1198
+ type: NoDataComponent,
1165
1199
  selector: "pw-no-data",
1166
1200
  inputs: [
1167
1201
  "message",
@@ -1170,14 +1204,13 @@ var DismissedNotificationsComponent = class DismissedNotificationsComponent {
1170
1204
  ]
1171
1205
  },
1172
1206
  {
1173
- kind: "component",
1174
- type: i6.RecordsSummaryComponent,
1175
- selector: "pw-records-summary",
1176
- inputs: ["showing", "total"]
1207
+ kind: "pipe",
1208
+ type: TranslocoPipe,
1209
+ name: "transloco"
1177
1210
  },
1178
1211
  {
1179
1212
  kind: "pipe",
1180
- type: i5.SinceAgoPipe,
1213
+ type: SinceAgoPipe,
1181
1214
  name: "sinceAgo"
1182
1215
  }
1183
1216
  ]
@@ -1193,14 +1226,47 @@ i0.ɵɵngDeclareClassMetadata({
1193
1226
  type: Component,
1194
1227
  args: [{
1195
1228
  selector: "pw-dismissed-notifications",
1196
- standalone: false,
1197
- template: "<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n @if (!isLoaded) {\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n }\n </div>\n @if (dismissedNotifications?.length && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n >\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n @for (item of dismissedNotifications; track trackByNotification($index, item)) {\n <li\n class=\"p-3 border-bottom border-bottom-blue-grey border-bottom-lighten-4 d-flex align-items-center\">\n <span class=\"btn btn-circle me-2\"\n [ngClass]=\"{\n 'btn-danger': item.note_type === 'administrative',\n 'btn-secondary': item.note_type === 'object_event',\n 'btn-primary': item.note_type === 'user_generated'\n }\">\n <i\n class=\"fal float-start\"\n [ngClass]=\"{\n 'fa-bell': item.note_type === 'administrative',\n 'fa-share-alt': item.note_type === 'object_event',\n 'fa-bells': item.note_type === 'user_generated'\n }\"\n aria-hidden=\"true\"\n ></i>\n </span>\n <span class=\"d-inline-block noty-body\">\n <span class=\"noti-title line-height-1p5 d-block text-bold-400\">{{\n item.content\n }}</span>\n <span class=\"noti-text\"><span class=\"fal fa-clock\"></span>\n {{ item?.created_at | sinceAgo }}</span>\n </span>\n <span class=\"noti-buttons\">\n <button class=\"btn float-end\">\n <i\n class=\"far fa-trash-alt\"\n (click)=\"dismiss(item.id, item)\"\n (keydown.enter)=\"dismiss(item.id, item)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n <button class=\"btn float-end\">\n <i\n class=\"fas fa-trash-restore-alt\"\n (click)=\"restoreNotification(item.id, item)\"\n (keydown.enter)=\"restoreNotification(item.id, item)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n </span>\n </li>\n }\n </ul>\n </div>\n <div class=\"pagination-container d-flex justify-content-between align-items-center mt-3 mb-3\">\n <pw-records-summary [showing]=\"totalRecords\" [total]=\"totalRecords\" />\n <div class=\"d-flex align-items-center\">\n <button class=\"btn btn-outline-primary me-2\" (click)=\"previousPage()\" [disabled]=\"currentPage === 1\">\n <i class=\"fas fa-chevron-left\"></i>\n </button>\n <span>Page {{ currentPage }} of {{ totalPages }}</span>\n <button class=\"btn btn-outline-primary ms-2\" (click)=\"nextPage()\" [disabled]=\"currentPage === totalPages\">\n <i class=\"fas fa-chevron-right\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>\n}\n\n@if (noNoti && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12\"\n >\n <pw-no-data [withImage]=\"true\" message=\"You currently do not have any dismissed notifications\">\n </pw-no-data>\n </div>\n}\n</div>\n",
1198
- styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}@media screen and (max-width:480px){.noty-body{width:240px}}.pagination-container{padding:0 1rem}\n"]
1229
+ imports: [
1230
+ Bind,
1231
+ ProgressSpinner,
1232
+ NgClass,
1233
+ RecordsSummaryComponent,
1234
+ NoDataComponent,
1235
+ TranslocoPipe,
1236
+ SinceAgoPipe
1237
+ ],
1238
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
1239
+ template: "<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n @if (!isLoaded) {\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n }\n </div>\n @if (dismissedNotifications?.length && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n >\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n @for (item of dismissedNotifications; track trackByNotification($index, item)) {\n <li\n [class.noti-read]=\"!item.unread\"\n class=\"p-3 border-bottom border-bottom-blue-grey border-bottom-lighten-4 d-flex align-items-center\">\n <span class=\"btn btn-circle me-2\"\n [ngClass]=\"{\n 'btn-danger': item.note_type === 'administrative',\n 'btn-secondary': item.note_type === 'object_event',\n 'btn-primary': item.note_type === 'user_generated'\n }\">\n <i\n class=\"fal float-start\"\n [ngClass]=\"{\n 'fa-bell': item.note_type === 'administrative',\n 'fa-share-alt': item.note_type === 'object_event',\n 'fa-bells': item.note_type === 'user_generated'\n }\"\n aria-hidden=\"true\"\n ></i>\n </span>\n <button type=\"button\" class=\"d-inline-block noty-body\"\n (click)=\"open(item)\">\n <span class=\"noti-title line-height-1p5 d-block text-bold-400\">{{\n item.content\n }}</span>\n <span class=\"noti-text\"><span class=\"fal fa-clock\"></span>\n {{ item?.created_at | sinceAgo }}</span>\n </button>\n <span class=\"noti-buttons\">\n <button type=\"button\"\n class=\"btn float-end\"\n [disabled]=\"busyId !== null\"\n [attr.aria-label]=\"'Button.Delete' | transloco\"\n [attr.aria-busy]=\"busyId === item.id && busyAction === 'delete'\"\n (click)=\"dismiss(item.id, item)\">\n @if (busyId === item.id && busyAction === 'delete') {\n <i class=\"fas fa-circle-notch fa-spin\" aria-hidden=\"true\"></i>\n } @else {\n <i class=\"far fa-trash-alt\" aria-hidden=\"true\"></i>\n }\n </button>\n <button type=\"button\"\n class=\"btn float-end\"\n [disabled]=\"busyId !== null\"\n [attr.aria-label]=\"'Dashboard.Notifications.Restore' | transloco\"\n [attr.aria-busy]=\"busyId === item.id && busyAction === 'restore'\"\n (click)=\"restoreNotification(item.id, item)\">\n @if (busyId === item.id && busyAction === 'restore') {\n <i class=\"fas fa-circle-notch fa-spin\" aria-hidden=\"true\"></i>\n } @else {\n <i class=\"fas fa-trash-restore-alt\" aria-hidden=\"true\"></i>\n }\n </button>\n </span>\n </li>\n }\n </ul>\n </div>\n <div class=\"pagination-container d-flex justify-content-between align-items-center mt-3 mb-3\">\n <pw-records-summary [showing]=\"totalRecords\" [total]=\"totalRecords\" />\n <div class=\"d-flex align-items-center\">\n <button class=\"btn btn-outline-primary me-2\" (click)=\"previousPage()\" [disabled]=\"currentPage === 1\">\n <i class=\"fas fa-chevron-left\"></i>\n </button>\n <span>{{ 'Dashboard.Notifications.PageOf' | transloco: { currentPage: currentPage, totalPages: totalPages } }}</span>\n <button class=\"btn btn-outline-primary ms-2\" (click)=\"nextPage()\" [disabled]=\"currentPage === totalPages\">\n <i class=\"fas fa-chevron-right\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>\n}\n\n@if (noNoti && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12\"\n >\n <pw-no-data [withImage]=\"true\" [message]=\"'Dashboard.Notifications.NoDismissed' | transloco\">\n </pw-no-data>\n </div>\n}\n</div>\n",
1240
+ styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}.noty-body{background:none;border:0;color:inherit;cursor:pointer;font:inherit;padding:0;text-align:start}.noty-body .noti-text{width:auto}.noti-read{opacity:.6}@media screen and (max-width:480px){.noty-body{width:240px}}.pagination-container{padding:0 1rem}\n"]
1199
1241
  }]
1200
1242
  }],
1201
- ctorParameters: () => [{ type: i1$1.NotificationService }, { type: i0.ChangeDetectorRef }]
1243
+ propDecorators: { moved: [{ type: Output }] }
1202
1244
  });
1203
1245
  var NotificationsPageComponent = class NotificationsPageComponent {
1246
+ constructor() {
1247
+ this.notificationService = inject(NotificationService);
1248
+ this.cdr = inject(ChangeDetectorRef);
1249
+ this.counts = null;
1250
+ }
1251
+ ngOnInit() {
1252
+ this.notificationService.getNotificationCounts().subscribe((counts) => {
1253
+ this.counts = counts;
1254
+ this.cdr.markForCheck();
1255
+ });
1256
+ }
1257
+ onMoved(moved) {
1258
+ if (!this.counts) return;
1259
+ const step = {
1260
+ dismissed: [-1, 1],
1261
+ restored: [1, -1],
1262
+ deleted: [0, -1]
1263
+ }[moved];
1264
+ this.counts = {
1265
+ current: Math.max(0, this.counts.current + step[0]),
1266
+ dismissed: Math.max(0, this.counts.dismissed + step[1])
1267
+ };
1268
+ this.cdr.markForCheck();
1269
+ }
1204
1270
  static {
1205
1271
  this.ɵfac = i0.ɵɵngDeclareFactory({
1206
1272
  minVersion: "12.0.0",
@@ -1213,23 +1279,18 @@ var NotificationsPageComponent = class NotificationsPageComponent {
1213
1279
  }
1214
1280
  static {
1215
1281
  this.ɵcmp = i0.ɵɵngDeclareComponent({
1216
- minVersion: "14.0.0",
1282
+ minVersion: "17.0.0",
1217
1283
  version: "22.2.3",
1218
1284
  type: NotificationsPageComponent,
1219
- isStandalone: false,
1285
+ isStandalone: true,
1220
1286
  selector: "pw-notifications-page",
1221
1287
  ngImport: i0,
1222
- template: "<div class=\"row\">\n <div class=\"col-12 col-sm-12 col-md-12 mt-4\">\n <h2 class=\"p-2\">Notifications</h2>\n </div>\n</div>\n\n<ul ngbNav\n #nav=\"ngbNav\"\n class=\"nav-tabs\">\n <li [ngbNavItem]=\"1\">\n <a ngbNavLink>Current Notifications</a>\n <ng-template ngbNavContent>\n <pw-current-notifications></pw-current-notifications>\n </ng-template>\n </li>\n <li [ngbNavItem]=\"2\">\n <a ngbNavLink>Dismissed Notifications</a>\n <ng-template ngbNavContent>\n <pw-dismissed-notifications></pw-dismissed-notifications>\n </ng-template>\n </li>\n</ul>\n\n<div [ngbNavOutlet]=\"nav\"></div>\n",
1223
- styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}@media screen and (max-width:480px){.noty-body{width:240px}}.pagination-container{padding:0 1rem}\n"],
1288
+ template: "<div class=\"row\">\n <div class=\"col-12 col-sm-12 col-md-12 mt-4\">\n <h2 class=\"p-2\">{{ 'Navbar.Notifications' | transloco }}</h2>\n </div>\n</div>\n\n<ul ngbNav\n #nav=\"ngbNav\"\n class=\"nav-tabs\">\n <li [ngbNavItem]=\"1\">\n <a ngbNavLink>\n {{ 'Dashboard.Notifications.Tabs.Current' | transloco }}\n @if (counts) {\n <span class=\"badge badge-soft bg-blue-grey ms-2\">{{ counts.current }}</span>\n }\n </a>\n <ng-template ngbNavContent>\n <pw-current-notifications (moved)=\"onMoved($event)\"></pw-current-notifications>\n </ng-template>\n </li>\n <li [ngbNavItem]=\"2\">\n <a ngbNavLink>\n {{ 'Dashboard.Notifications.Tabs.Dismissed' | transloco }}\n @if (counts) {\n <span class=\"badge badge-soft bg-blue-grey ms-2\">{{ counts.dismissed }}</span>\n }\n </a>\n <ng-template ngbNavContent>\n <pw-dismissed-notifications (moved)=\"onMoved($event)\"></pw-dismissed-notifications>\n </ng-template>\n </li>\n</ul>\n\n<div [ngbNavOutlet]=\"nav\"></div>\n",
1289
+ styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}.noty-body{background:none;border:0;color:inherit;cursor:pointer;font:inherit;padding:0;text-align:start}.noty-body .noti-text{width:auto}.noti-read{opacity:.6}@media screen and (max-width:480px){.noty-body{width:240px}}.pagination-container{padding:0 1rem}\n"],
1224
1290
  dependencies: [
1225
1291
  {
1226
1292
  kind: "directive",
1227
- type: i1.NgbNavContent,
1228
- selector: "ng-template[ngbNavContent]"
1229
- },
1230
- {
1231
- kind: "directive",
1232
- type: i1.NgbNav,
1293
+ type: NgbNav,
1233
1294
  selector: "[ngbNav]",
1234
1295
  inputs: [
1235
1296
  "activeId",
@@ -1249,7 +1310,7 @@ var NotificationsPageComponent = class NotificationsPageComponent {
1249
1310
  },
1250
1311
  {
1251
1312
  kind: "directive",
1252
- type: i1.NgbNavItem,
1313
+ type: NgbNavItem,
1253
1314
  selector: "[ngbNavItem]",
1254
1315
  inputs: [
1255
1316
  "destroyOnHide",
@@ -1262,34 +1323,46 @@ var NotificationsPageComponent = class NotificationsPageComponent {
1262
1323
  },
1263
1324
  {
1264
1325
  kind: "directive",
1265
- type: i1.NgbNavItemRole,
1326
+ type: NgbNavItemRole,
1266
1327
  selector: "[ngbNavItem]:not(ng-container)"
1267
1328
  },
1268
1329
  {
1269
1330
  kind: "directive",
1270
- type: i1.NgbNavLink,
1331
+ type: NgbNavLink,
1271
1332
  selector: "a[ngbNavLink]"
1272
1333
  },
1273
1334
  {
1274
1335
  kind: "directive",
1275
- type: i1.NgbNavLinkBase,
1336
+ type: NgbNavLinkBase,
1276
1337
  selector: "[ngbNavLink]"
1277
1338
  },
1278
1339
  {
1279
- kind: "component",
1280
- type: i1.NgbNavOutlet,
1281
- selector: "[ngbNavOutlet]",
1282
- inputs: ["paneRole", "ngbNavOutlet"]
1340
+ kind: "directive",
1341
+ type: NgbNavContent,
1342
+ selector: "ng-template[ngbNavContent]"
1283
1343
  },
1284
1344
  {
1285
1345
  kind: "component",
1286
1346
  type: CurrentNotificationsComponent,
1287
- selector: "pw-current-notifications"
1347
+ selector: "pw-current-notifications",
1348
+ outputs: ["moved"]
1288
1349
  },
1289
1350
  {
1290
1351
  kind: "component",
1291
1352
  type: DismissedNotificationsComponent,
1292
- selector: "pw-dismissed-notifications"
1353
+ selector: "pw-dismissed-notifications",
1354
+ outputs: ["moved"]
1355
+ },
1356
+ {
1357
+ kind: "component",
1358
+ type: NgbNavOutlet,
1359
+ selector: "[ngbNavOutlet]",
1360
+ inputs: ["paneRole", "ngbNavOutlet"]
1361
+ },
1362
+ {
1363
+ kind: "pipe",
1364
+ type: TranslocoPipe,
1365
+ name: "transloco"
1293
1366
  }
1294
1367
  ]
1295
1368
  });
@@ -1304,17 +1377,29 @@ i0.ɵɵngDeclareClassMetadata({
1304
1377
  type: Component,
1305
1378
  args: [{
1306
1379
  selector: "pw-notifications-page",
1307
- standalone: false,
1308
- template: "<div class=\"row\">\n <div class=\"col-12 col-sm-12 col-md-12 mt-4\">\n <h2 class=\"p-2\">Notifications</h2>\n </div>\n</div>\n\n<ul ngbNav\n #nav=\"ngbNav\"\n class=\"nav-tabs\">\n <li [ngbNavItem]=\"1\">\n <a ngbNavLink>Current Notifications</a>\n <ng-template ngbNavContent>\n <pw-current-notifications></pw-current-notifications>\n </ng-template>\n </li>\n <li [ngbNavItem]=\"2\">\n <a ngbNavLink>Dismissed Notifications</a>\n <ng-template ngbNavContent>\n <pw-dismissed-notifications></pw-dismissed-notifications>\n </ng-template>\n </li>\n</ul>\n\n<div [ngbNavOutlet]=\"nav\"></div>\n",
1309
- styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}@media screen and (max-width:480px){.noty-body{width:240px}}.pagination-container{padding:0 1rem}\n"]
1380
+ imports: [
1381
+ NgbNav,
1382
+ NgbNavItem,
1383
+ NgbNavItemRole,
1384
+ NgbNavLink,
1385
+ NgbNavLinkBase,
1386
+ NgbNavContent,
1387
+ CurrentNotificationsComponent,
1388
+ DismissedNotificationsComponent,
1389
+ NgbNavOutlet,
1390
+ TranslocoPipe
1391
+ ],
1392
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
1393
+ template: "<div class=\"row\">\n <div class=\"col-12 col-sm-12 col-md-12 mt-4\">\n <h2 class=\"p-2\">{{ 'Navbar.Notifications' | transloco }}</h2>\n </div>\n</div>\n\n<ul ngbNav\n #nav=\"ngbNav\"\n class=\"nav-tabs\">\n <li [ngbNavItem]=\"1\">\n <a ngbNavLink>\n {{ 'Dashboard.Notifications.Tabs.Current' | transloco }}\n @if (counts) {\n <span class=\"badge badge-soft bg-blue-grey ms-2\">{{ counts.current }}</span>\n }\n </a>\n <ng-template ngbNavContent>\n <pw-current-notifications (moved)=\"onMoved($event)\"></pw-current-notifications>\n </ng-template>\n </li>\n <li [ngbNavItem]=\"2\">\n <a ngbNavLink>\n {{ 'Dashboard.Notifications.Tabs.Dismissed' | transloco }}\n @if (counts) {\n <span class=\"badge badge-soft bg-blue-grey ms-2\">{{ counts.dismissed }}</span>\n }\n </a>\n <ng-template ngbNavContent>\n <pw-dismissed-notifications (moved)=\"onMoved($event)\"></pw-dismissed-notifications>\n </ng-template>\n </li>\n</ul>\n\n<div [ngbNavOutlet]=\"nav\"></div>\n",
1394
+ styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}.noty-body{background:none;border:0;color:inherit;cursor:pointer;font:inherit;padding:0;text-align:start}.noty-body .noti-text{width:auto}.noti-read{opacity:.6}@media screen and (max-width:480px){.noty-body{width:240px}}.pagination-container{padding:0 1rem}\n"]
1310
1395
  }]
1311
1396
  }]
1312
1397
  });
1313
1398
  var SearchComponent = class SearchComponent {
1314
- constructor(route, service, cdr) {
1315
- this.route = route;
1316
- this.service = service;
1317
- this.cdr = cdr;
1399
+ constructor() {
1400
+ this.route = inject(ActivatedRoute);
1401
+ this.service = inject(DashboardService);
1402
+ this.cdr = inject(ChangeDetectorRef);
1318
1403
  this.emptySearchResult = {
1319
1404
  users: [],
1320
1405
  faqs: [],
@@ -1389,11 +1474,7 @@ var SearchComponent = class SearchComponent {
1389
1474
  version: "22.2.3",
1390
1475
  ngImport: i0,
1391
1476
  type: SearchComponent,
1392
- deps: [
1393
- { token: i3$1.ActivatedRoute },
1394
- { token: i1$1.DashboardService },
1395
- { token: i0.ChangeDetectorRef }
1396
- ],
1477
+ deps: [],
1397
1478
  target: i0.ɵɵFactoryTarget.Component
1398
1479
  });
1399
1480
  }
@@ -1402,15 +1483,34 @@ var SearchComponent = class SearchComponent {
1402
1483
  minVersion: "17.0.0",
1403
1484
  version: "22.2.3",
1404
1485
  type: SearchComponent,
1405
- isStandalone: false,
1486
+ isStandalone: true,
1406
1487
  selector: "pw-search",
1407
1488
  ngImport: i0,
1408
- template: "<div class=\"container-fluid dashboard-card overflow-hidden\">\n <div class=\"dashboard\">\n <div class=\"dashboard-body\">\n <div class=\"row\">\n <div class=\"col-12 my-3 mt-4\">\n <h2>Search Results</h2>\n </div>\n </div>\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\">\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n }\n @if (isLoaded) {\n <div class=\"row faqlist search-result\">\n <div class=\"col-12\">\n <div data-cy=\"faq-list\">\n @if (result) {\n @for (group of objectKeys(result); track group; let idx = $index) {\n <div>\n @switch (group) {\n @case ('users') {\n @if (getResultGroup(group).length) {\n <h6 class=\"text-uppercase mt-3 p-1\">{{ group }}</h6>\n <div class=\"dashboard\">\n @for (\n user of getResultGroup(group); track trackByUserId($index, user); let idx1 = $index) {\n <div class=\"faq-item\">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a\n class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n [href]=\"'#collapse' + idx1 + idx\"><span>{{\n user.first_name !== null\n ? user.first_name\n : user?.email\n }}</span></a>\n </h5>\n <p class=\"m-0 title-font\">\n @if (user.user_skills?.length > 0) {\n <strong>Skills :\n </strong>\n }\n @for (\n skill of (user.user_skills ?? []); track trackBySkill($index, skill); let isLast = $last) {\n <span class=\"badge bg-success m-1\">\n {{ skill.name\n }}{{ isLast ? '' : ', ' }}</span>\n }\n </p>\n @if (\n user?.user_profile?.headline\n ?.length > 0\n ) {\n <p class=\"m-0 title-font\">\n {{ user?.user_profile?.headline }}\n </p>\n }\n @if (\n user?.user_profile?.country\n ?.length > 0\n ) {\n <p class=\"m-0 title-font\">\n <strong>Location : </strong>{{ user?.user_profile?.country }}\n </p>\n }\n </div>\n <div [id]=\"'collapse' + idx1 + idx\"\n class=\"panel-collapse collapse in p-3\">\n <div class=\"display-block overflow-hidden\">\n <div class=\"row align-items-center\">\n <div class=\"col-sm-3\">\n @if (user?.user_avatar?.length > 0) {\n @for (\n profile_image of user.user_avatar; track profile_image) {\n @if (profile_image.width === 200) {\n <div class=\"text-center my-2\">\n <div class=\"avatar\">\n <img class=\"img-fluid\"\n [src]=\"profile_image.url\"\n alt=\"Male Icon\"\n (error)=\"handleImageError($event, 'assets/img/icons/male.png')\" />\n </div>\n </div>\n }\n }\n } @else {\n <div class=\"text-center my-2\">\n <div class=\"avatar\">\n <img src=\"/assets/img/icons/male.png\"\n alt=\"\"\n class=\"img-fluid\" />\n </div>\n </div>\n }\n </div>\n <div class=\"col-sm-9\">\n <ul class=\"name-fl\">\n <li>\n <strong>First Name:\n </strong>\n <span>{{\n user.first_name !== null\n ? user.first_name\n : 'N/A'\n }}</span>\n </li>\n <li>\n <strong>Last Name:\n </strong>\n <span>{{\n user.last_name !== null\n ? user.last_name\n : 'N/A'\n }}</span>\n </li>\n </ul>\n <p>\n <strong>Email: </strong>\n <span>{{\n user.email !== null\n ? user.email\n : 'N/A'\n }}</span>\n </p>\n <p>\n <strong>Description:\n </strong>\n <span>{{\n user?.user_profile\n ?.description !== null\n ? user?.user_profile\n ?.description\n : 'N/A'\n }}</span>\n </p>\n <div class=\"view-btn text-end\">\n <a class=\"btn btn-outline-primary inline-block\"\n [routerLink]=\"[\n '/members/' +\n user.slug\n ]\">View More</a>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n }\n @case ('faqs') {\n @if (getResultGroup(group).length) {\n <h6>\n {{ group | uppercase }}\n </h6>\n @for (\n faq of getResultGroup(group); track trackByFaqId($index, faq); let idx2 = $index) {\n <div class=\"faq-item\">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a\n class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n [href]=\"'#collapse' + idx2 + idx\">{{ faq.question }}</a>\n </h5>\n </div>\n <div [id]=\"'collapse' + idx2 + idx\"\n class=\"panel-collapse collapse in\">\n @if (faq?.answer) {\n <div class=\"ql-container ql-snow no-border\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer |safe:'html'\">\n </div>\n </div>\n }\n </div>\n </div>\n }\n }\n }\n }\n </div>\n }\n @if (!hasResults) {\n <pw-no-data [withImage]=\"true\" [message]=\"'Search.NoDataMessage' | transloco\" [description]=\"'Search.NoDataDescription' | transloco\">\n </pw-no-data>\n }\n }\n </div>\n </div>\n </div>\n }\n </div>\n </div>\n</div>\n",
1409
- 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}h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.faq-search-answer a{color:#144086;display:inline-block;float:right;font-size:14px;margin-right:15px}::ng-deep .ql-snow *{font-size:16px!important}.faq-search-answer a:after{right:-10px}.faq-item{border:1px dashed rgba(0,0,0,.1);background-color:#fff;border-radius:3px;margin:10px 0;transition:all .2s ease-in-out}.faq-item .dashboard-header{background:#fff}.accord-title1 .faq-search-answer a{margin-right:0!important}a.accordion-toggle:after{display:none}.accord-title p.title-font{font-size:.8rem}.panel-collapse.show{border-top:1px dashed rgba(0,0,0,.1);padding-top:20px;padding-bottom:20px}.panel-collapse ul{margin-bottom:1rem}.panel-collapse ul.name-fl li{display:inline-block;padding-right:15px}.view-btn a{display:inline-block}.avatar{width:130px;margin:0 auto;display:block}.accordion-title a{color:var(--sidebar_bg)!important}.card-header h1,.card-header p{color:#fff!important}.card .accordion-toggle:before{content:\"\\f078\"}.card .accordion-toggle.collapsed{transition:all .3s ease-in-out}.card .accordion-toggle.collapsed:before{content:\"\\f054\"}.card-block p{font-size:16px}.card,h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.ql-container{resize:none!important;max-width:1000px;margin:0 auto}\n"],
1489
+ template: "<div class=\"container-fluid dashboard-card overflow-hidden\">\n <div class=\"dashboard\">\n <div class=\"dashboard-body\">\n <div class=\"row\">\n <div class=\"col-12 my-3 mt-4\">\n <h2>{{ 'Dashboard.Search.Title' | transloco }}</h2>\n </div>\n </div>\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\">\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n }\n @if (isLoaded) {\n <div class=\"row faqlist search-result\">\n <div class=\"col-12\">\n <div data-cy=\"faq-list\">\n @if (result) {\n @for (group of objectKeys(result); track group; let idx = $index) {\n <div>\n @switch (group) {\n @case ('users') {\n @if (getResultGroup(group).length) {\n <h6 class=\"text-uppercase mt-3 p-1\">{{ group }}</h6>\n <div class=\"dashboard\">\n @for (\n user of getResultGroup(group); track trackByUserId($index, user); let idx1 = $index) {\n <div class=\"faq-item\">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a\n class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n [href]=\"'#collapse' + idx1 + idx\"><span>{{\n user.first_name !== null\n ? user.first_name\n : user?.email\n }}</span></a>\n </h5>\n <p class=\"m-0 title-font\">\n @if (user.user_skills?.length > 0) {\n <strong>{{ 'User.Profile.About.Skills' | transloco }}:\n </strong>\n }\n @for (\n skill of (user.user_skills ?? []); track trackBySkill($index, skill); let isLast = $last) {\n <span class=\"badge bg-success m-1\">\n {{ skill.name\n }}{{ isLast ? '' : ', ' }}</span>\n }\n </p>\n @if (\n user?.user_profile?.headline\n ?.length > 0\n ) {\n <p class=\"m-0 title-font\">\n {{ user?.user_profile?.headline }}\n </p>\n }\n @if (\n user?.user_profile?.country\n ?.length > 0\n ) {\n <p class=\"m-0 title-font\">\n <strong>{{ 'User.Account.Details.Location' | transloco }}: </strong>{{ user?.user_profile?.country }}\n </p>\n }\n </div>\n <div [id]=\"'collapse' + idx1 + idx\"\n class=\"panel-collapse collapse in p-3\">\n <div class=\"display-block overflow-hidden\">\n <div class=\"row align-items-center\">\n <div class=\"col-sm-3\">\n @if (user?.user_avatar?.length > 0) {\n @for (\n profile_image of user.user_avatar; track profile_image) {\n @if (profile_image.width === 200) {\n <div class=\"text-center my-2\">\n <div class=\"avatar\">\n <img class=\"img-fluid\"\n [src]=\"profile_image.url\"\n [alt]=\"'User.Profile.Avatar' | transloco\"\n (error)=\"handleImageError($event, 'assets/img/icons/male.png')\" />\n </div>\n </div>\n }\n }\n } @else {\n <div class=\"text-center my-2\">\n <div class=\"avatar\">\n <img src=\"/assets/img/icons/male.png\"\n alt=\"\"\n class=\"img-fluid\" />\n </div>\n </div>\n }\n </div>\n <div class=\"col-sm-9\">\n <ul class=\"name-fl\">\n <li>\n <strong>{{ 'Label.FirstName' | transloco }}:\n </strong>\n <span>{{\n user.first_name !== null\n ? user.first_name\n : 'N/A'\n }}</span>\n </li>\n <li>\n <strong>{{ 'Label.LastName' | transloco }}:\n </strong>\n <span>{{\n user.last_name !== null\n ? user.last_name\n : 'N/A'\n }}</span>\n </li>\n </ul>\n <p>\n <strong>{{ 'Label.Email' | transloco }}: </strong>\n <span>{{\n user.email !== null\n ? user.email\n : 'N/A'\n }}</span>\n </p>\n <p>\n <strong>{{ 'User.Profile.Fields.Description' | transloco }}:\n </strong>\n <span>{{\n user?.user_profile\n ?.description !== null\n ? user?.user_profile\n ?.description\n : 'N/A'\n }}</span>\n </p>\n <div class=\"view-btn text-end\">\n <a class=\"btn btn-outline-primary inline-block\"\n [routerLink]=\"[\n '/members/' +\n user.slug\n ]\">{{ 'Dashboard.Search.ViewMore' | transloco }}</a>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n }\n @case ('faqs') {\n @if (getResultGroup(group).length) {\n <h6>\n {{ group | uppercase }}\n </h6>\n @for (\n faq of getResultGroup(group); track trackByFaqId($index, faq); let idx2 = $index) {\n <div class=\"faq-item\">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a\n class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n [href]=\"'#collapse' + idx2 + idx\">{{ faq.question }}</a>\n </h5>\n </div>\n <div [id]=\"'collapse' + idx2 + idx\"\n class=\"panel-collapse collapse in\">\n @if (faq?.answer) {\n <div class=\"ql-container ql-snow no-border\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer |safe:'html'\">\n </div>\n </div>\n }\n </div>\n </div>\n }\n }\n }\n }\n </div>\n }\n @if (!hasResults) {\n <pw-no-data [withImage]=\"true\" [message]=\"'Search.NoDataMessage' | transloco\" [description]=\"'Search.NoDataDescription' | transloco\">\n </pw-no-data>\n }\n }\n </div>\n </div>\n </div>\n }\n </div>\n </div>\n</div>\n",
1490
+ 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);--pw-hairline: #e2e5ea;--public-btn-radius: 24px}h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.faq-search-answer a{color:#144086;display:inline-block;float:right;font-size:14px;margin-right:15px}::ng-deep .ql-snow *{font-size:16px!important}.faq-search-answer a:after{right:-10px}.faq-item{border:1px dashed rgba(0,0,0,.1);background-color:#fff;border-radius:3px;margin:10px 0;transition:all .2s ease-in-out}.faq-item .dashboard-header{background:#fff}.accord-title1 .faq-search-answer a{margin-right:0!important}a.accordion-toggle:after{display:none}.accord-title p.title-font{font-size:.8rem}.panel-collapse.show{border-top:1px dashed rgba(0,0,0,.1);padding-top:20px;padding-bottom:20px}.panel-collapse ul{margin-bottom:1rem}.panel-collapse ul.name-fl li{display:inline-block;padding-right:15px}.view-btn a{display:inline-block}.avatar{width:130px;margin:0 auto;display:block}.accordion-title a{color:var(--sidebar_bg)!important}.card-header h1,.card-header p{color:#fff!important}.card .accordion-toggle:before{content:\"\\f078\"}.card .accordion-toggle.collapsed{transition:all .3s ease-in-out}.card .accordion-toggle.collapsed:before{content:\"\\f054\"}.card-block p{font-size:16px}.card,h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.ql-container{resize:none!important;max-width:1000px;margin:0 auto}\n"],
1410
1491
  dependencies: [
1492
+ {
1493
+ kind: "component",
1494
+ type: ProgressSpinner,
1495
+ selector: "p-progress-spinner, p-progressspinner",
1496
+ inputs: [
1497
+ "value",
1498
+ "strokeWidth",
1499
+ "animationDuration",
1500
+ "min",
1501
+ "max",
1502
+ "ariaLabel",
1503
+ "fill"
1504
+ ]
1505
+ },
1506
+ {
1507
+ kind: "directive",
1508
+ type: LazyImgDirective,
1509
+ selector: "img"
1510
+ },
1411
1511
  {
1412
1512
  kind: "directive",
1413
- type: i3$1.RouterLink,
1513
+ type: RouterLink,
1414
1514
  selector: "[routerLink]",
1415
1515
  inputs: [
1416
1516
  "target",
@@ -1427,28 +1527,9 @@ var SearchComponent = class SearchComponent {
1427
1527
  "routerLink"
1428
1528
  ]
1429
1529
  },
1430
- {
1431
- kind: "directive",
1432
- type: i4.LazyImgDirective,
1433
- selector: "img"
1434
- },
1435
- {
1436
- kind: "component",
1437
- type: i2$2.ProgressSpinner,
1438
- selector: "p-progress-spinner, p-progressspinner",
1439
- inputs: [
1440
- "value",
1441
- "strokeWidth",
1442
- "animationDuration",
1443
- "min",
1444
- "max",
1445
- "ariaLabel",
1446
- "fill"
1447
- ]
1448
- },
1449
1530
  {
1450
1531
  kind: "component",
1451
- type: i6.NoDataComponent,
1532
+ type: NoDataComponent,
1452
1533
  selector: "pw-no-data",
1453
1534
  inputs: [
1454
1535
  "message",
@@ -1458,17 +1539,17 @@ var SearchComponent = class SearchComponent {
1458
1539
  },
1459
1540
  {
1460
1541
  kind: "pipe",
1461
- type: i2.UpperCasePipe,
1542
+ type: UpperCasePipe,
1462
1543
  name: "uppercase"
1463
1544
  },
1464
1545
  {
1465
1546
  kind: "pipe",
1466
- type: i7.TranslocoPipe,
1547
+ type: TranslocoPipe,
1467
1548
  name: "transloco"
1468
1549
  },
1469
1550
  {
1470
1551
  kind: "pipe",
1471
- type: i5.DOMSanitizerPipe,
1552
+ type: DOMSanitizerPipe,
1472
1553
  name: "safe"
1473
1554
  }
1474
1555
  ]
@@ -1484,16 +1565,21 @@ i0.ɵɵngDeclareClassMetadata({
1484
1565
  type: Component,
1485
1566
  args: [{
1486
1567
  selector: "pw-search",
1487
- standalone: false,
1488
- template: "<div class=\"container-fluid dashboard-card overflow-hidden\">\n <div class=\"dashboard\">\n <div class=\"dashboard-body\">\n <div class=\"row\">\n <div class=\"col-12 my-3 mt-4\">\n <h2>Search Results</h2>\n </div>\n </div>\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\">\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n }\n @if (isLoaded) {\n <div class=\"row faqlist search-result\">\n <div class=\"col-12\">\n <div data-cy=\"faq-list\">\n @if (result) {\n @for (group of objectKeys(result); track group; let idx = $index) {\n <div>\n @switch (group) {\n @case ('users') {\n @if (getResultGroup(group).length) {\n <h6 class=\"text-uppercase mt-3 p-1\">{{ group }}</h6>\n <div class=\"dashboard\">\n @for (\n user of getResultGroup(group); track trackByUserId($index, user); let idx1 = $index) {\n <div class=\"faq-item\">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a\n class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n [href]=\"'#collapse' + idx1 + idx\"><span>{{\n user.first_name !== null\n ? user.first_name\n : user?.email\n }}</span></a>\n </h5>\n <p class=\"m-0 title-font\">\n @if (user.user_skills?.length > 0) {\n <strong>Skills :\n </strong>\n }\n @for (\n skill of (user.user_skills ?? []); track trackBySkill($index, skill); let isLast = $last) {\n <span class=\"badge bg-success m-1\">\n {{ skill.name\n }}{{ isLast ? '' : ', ' }}</span>\n }\n </p>\n @if (\n user?.user_profile?.headline\n ?.length > 0\n ) {\n <p class=\"m-0 title-font\">\n {{ user?.user_profile?.headline }}\n </p>\n }\n @if (\n user?.user_profile?.country\n ?.length > 0\n ) {\n <p class=\"m-0 title-font\">\n <strong>Location : </strong>{{ user?.user_profile?.country }}\n </p>\n }\n </div>\n <div [id]=\"'collapse' + idx1 + idx\"\n class=\"panel-collapse collapse in p-3\">\n <div class=\"display-block overflow-hidden\">\n <div class=\"row align-items-center\">\n <div class=\"col-sm-3\">\n @if (user?.user_avatar?.length > 0) {\n @for (\n profile_image of user.user_avatar; track profile_image) {\n @if (profile_image.width === 200) {\n <div class=\"text-center my-2\">\n <div class=\"avatar\">\n <img class=\"img-fluid\"\n [src]=\"profile_image.url\"\n alt=\"Male Icon\"\n (error)=\"handleImageError($event, 'assets/img/icons/male.png')\" />\n </div>\n </div>\n }\n }\n } @else {\n <div class=\"text-center my-2\">\n <div class=\"avatar\">\n <img src=\"/assets/img/icons/male.png\"\n alt=\"\"\n class=\"img-fluid\" />\n </div>\n </div>\n }\n </div>\n <div class=\"col-sm-9\">\n <ul class=\"name-fl\">\n <li>\n <strong>First Name:\n </strong>\n <span>{{\n user.first_name !== null\n ? user.first_name\n : 'N/A'\n }}</span>\n </li>\n <li>\n <strong>Last Name:\n </strong>\n <span>{{\n user.last_name !== null\n ? user.last_name\n : 'N/A'\n }}</span>\n </li>\n </ul>\n <p>\n <strong>Email: </strong>\n <span>{{\n user.email !== null\n ? user.email\n : 'N/A'\n }}</span>\n </p>\n <p>\n <strong>Description:\n </strong>\n <span>{{\n user?.user_profile\n ?.description !== null\n ? user?.user_profile\n ?.description\n : 'N/A'\n }}</span>\n </p>\n <div class=\"view-btn text-end\">\n <a class=\"btn btn-outline-primary inline-block\"\n [routerLink]=\"[\n '/members/' +\n user.slug\n ]\">View More</a>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n }\n @case ('faqs') {\n @if (getResultGroup(group).length) {\n <h6>\n {{ group | uppercase }}\n </h6>\n @for (\n faq of getResultGroup(group); track trackByFaqId($index, faq); let idx2 = $index) {\n <div class=\"faq-item\">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a\n class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n [href]=\"'#collapse' + idx2 + idx\">{{ faq.question }}</a>\n </h5>\n </div>\n <div [id]=\"'collapse' + idx2 + idx\"\n class=\"panel-collapse collapse in\">\n @if (faq?.answer) {\n <div class=\"ql-container ql-snow no-border\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer |safe:'html'\">\n </div>\n </div>\n }\n </div>\n </div>\n }\n }\n }\n }\n </div>\n }\n @if (!hasResults) {\n <pw-no-data [withImage]=\"true\" [message]=\"'Search.NoDataMessage' | transloco\" [description]=\"'Search.NoDataDescription' | transloco\">\n </pw-no-data>\n }\n }\n </div>\n </div>\n </div>\n }\n </div>\n </div>\n</div>\n",
1489
- 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}h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.faq-search-answer a{color:#144086;display:inline-block;float:right;font-size:14px;margin-right:15px}::ng-deep .ql-snow *{font-size:16px!important}.faq-search-answer a:after{right:-10px}.faq-item{border:1px dashed rgba(0,0,0,.1);background-color:#fff;border-radius:3px;margin:10px 0;transition:all .2s ease-in-out}.faq-item .dashboard-header{background:#fff}.accord-title1 .faq-search-answer a{margin-right:0!important}a.accordion-toggle:after{display:none}.accord-title p.title-font{font-size:.8rem}.panel-collapse.show{border-top:1px dashed rgba(0,0,0,.1);padding-top:20px;padding-bottom:20px}.panel-collapse ul{margin-bottom:1rem}.panel-collapse ul.name-fl li{display:inline-block;padding-right:15px}.view-btn a{display:inline-block}.avatar{width:130px;margin:0 auto;display:block}.accordion-title a{color:var(--sidebar_bg)!important}.card-header h1,.card-header p{color:#fff!important}.card .accordion-toggle:before{content:\"\\f078\"}.card .accordion-toggle.collapsed{transition:all .3s ease-in-out}.card .accordion-toggle.collapsed:before{content:\"\\f054\"}.card-block p{font-size:16px}.card,h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.ql-container{resize:none!important;max-width:1000px;margin:0 auto}\n"]
1568
+ imports: [
1569
+ Bind,
1570
+ ProgressSpinner,
1571
+ LazyImgDirective,
1572
+ RouterLink,
1573
+ NoDataComponent,
1574
+ UpperCasePipe,
1575
+ TranslocoPipe,
1576
+ DOMSanitizerPipe
1577
+ ],
1578
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
1579
+ template: "<div class=\"container-fluid dashboard-card overflow-hidden\">\n <div class=\"dashboard\">\n <div class=\"dashboard-body\">\n <div class=\"row\">\n <div class=\"col-12 my-3 mt-4\">\n <h2>{{ 'Dashboard.Search.Title' | transloco }}</h2>\n </div>\n </div>\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\">\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n }\n @if (isLoaded) {\n <div class=\"row faqlist search-result\">\n <div class=\"col-12\">\n <div data-cy=\"faq-list\">\n @if (result) {\n @for (group of objectKeys(result); track group; let idx = $index) {\n <div>\n @switch (group) {\n @case ('users') {\n @if (getResultGroup(group).length) {\n <h6 class=\"text-uppercase mt-3 p-1\">{{ group }}</h6>\n <div class=\"dashboard\">\n @for (\n user of getResultGroup(group); track trackByUserId($index, user); let idx1 = $index) {\n <div class=\"faq-item\">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a\n class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n [href]=\"'#collapse' + idx1 + idx\"><span>{{\n user.first_name !== null\n ? user.first_name\n : user?.email\n }}</span></a>\n </h5>\n <p class=\"m-0 title-font\">\n @if (user.user_skills?.length > 0) {\n <strong>{{ 'User.Profile.About.Skills' | transloco }}:\n </strong>\n }\n @for (\n skill of (user.user_skills ?? []); track trackBySkill($index, skill); let isLast = $last) {\n <span class=\"badge bg-success m-1\">\n {{ skill.name\n }}{{ isLast ? '' : ', ' }}</span>\n }\n </p>\n @if (\n user?.user_profile?.headline\n ?.length > 0\n ) {\n <p class=\"m-0 title-font\">\n {{ user?.user_profile?.headline }}\n </p>\n }\n @if (\n user?.user_profile?.country\n ?.length > 0\n ) {\n <p class=\"m-0 title-font\">\n <strong>{{ 'User.Account.Details.Location' | transloco }}: </strong>{{ user?.user_profile?.country }}\n </p>\n }\n </div>\n <div [id]=\"'collapse' + idx1 + idx\"\n class=\"panel-collapse collapse in p-3\">\n <div class=\"display-block overflow-hidden\">\n <div class=\"row align-items-center\">\n <div class=\"col-sm-3\">\n @if (user?.user_avatar?.length > 0) {\n @for (\n profile_image of user.user_avatar; track profile_image) {\n @if (profile_image.width === 200) {\n <div class=\"text-center my-2\">\n <div class=\"avatar\">\n <img class=\"img-fluid\"\n [src]=\"profile_image.url\"\n [alt]=\"'User.Profile.Avatar' | transloco\"\n (error)=\"handleImageError($event, 'assets/img/icons/male.png')\" />\n </div>\n </div>\n }\n }\n } @else {\n <div class=\"text-center my-2\">\n <div class=\"avatar\">\n <img src=\"/assets/img/icons/male.png\"\n alt=\"\"\n class=\"img-fluid\" />\n </div>\n </div>\n }\n </div>\n <div class=\"col-sm-9\">\n <ul class=\"name-fl\">\n <li>\n <strong>{{ 'Label.FirstName' | transloco }}:\n </strong>\n <span>{{\n user.first_name !== null\n ? user.first_name\n : 'N/A'\n }}</span>\n </li>\n <li>\n <strong>{{ 'Label.LastName' | transloco }}:\n </strong>\n <span>{{\n user.last_name !== null\n ? user.last_name\n : 'N/A'\n }}</span>\n </li>\n </ul>\n <p>\n <strong>{{ 'Label.Email' | transloco }}: </strong>\n <span>{{\n user.email !== null\n ? user.email\n : 'N/A'\n }}</span>\n </p>\n <p>\n <strong>{{ 'User.Profile.Fields.Description' | transloco }}:\n </strong>\n <span>{{\n user?.user_profile\n ?.description !== null\n ? user?.user_profile\n ?.description\n : 'N/A'\n }}</span>\n </p>\n <div class=\"view-btn text-end\">\n <a class=\"btn btn-outline-primary inline-block\"\n [routerLink]=\"[\n '/members/' +\n user.slug\n ]\">{{ 'Dashboard.Search.ViewMore' | transloco }}</a>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n }\n @case ('faqs') {\n @if (getResultGroup(group).length) {\n <h6>\n {{ group | uppercase }}\n </h6>\n @for (\n faq of getResultGroup(group); track trackByFaqId($index, faq); let idx2 = $index) {\n <div class=\"faq-item\">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a\n class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n [href]=\"'#collapse' + idx2 + idx\">{{ faq.question }}</a>\n </h5>\n </div>\n <div [id]=\"'collapse' + idx2 + idx\"\n class=\"panel-collapse collapse in\">\n @if (faq?.answer) {\n <div class=\"ql-container ql-snow no-border\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer |safe:'html'\">\n </div>\n </div>\n }\n </div>\n </div>\n }\n }\n }\n }\n </div>\n }\n @if (!hasResults) {\n <pw-no-data [withImage]=\"true\" [message]=\"'Search.NoDataMessage' | transloco\" [description]=\"'Search.NoDataDescription' | transloco\">\n </pw-no-data>\n }\n }\n </div>\n </div>\n </div>\n }\n </div>\n </div>\n</div>\n",
1580
+ 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);--pw-hairline: #e2e5ea;--public-btn-radius: 24px}h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.faq-search-answer a{color:#144086;display:inline-block;float:right;font-size:14px;margin-right:15px}::ng-deep .ql-snow *{font-size:16px!important}.faq-search-answer a:after{right:-10px}.faq-item{border:1px dashed rgba(0,0,0,.1);background-color:#fff;border-radius:3px;margin:10px 0;transition:all .2s ease-in-out}.faq-item .dashboard-header{background:#fff}.accord-title1 .faq-search-answer a{margin-right:0!important}a.accordion-toggle:after{display:none}.accord-title p.title-font{font-size:.8rem}.panel-collapse.show{border-top:1px dashed rgba(0,0,0,.1);padding-top:20px;padding-bottom:20px}.panel-collapse ul{margin-bottom:1rem}.panel-collapse ul.name-fl li{display:inline-block;padding-right:15px}.view-btn a{display:inline-block}.avatar{width:130px;margin:0 auto;display:block}.accordion-title a{color:var(--sidebar_bg)!important}.card-header h1,.card-header p{color:#fff!important}.card .accordion-toggle:before{content:\"\\f078\"}.card .accordion-toggle.collapsed{transition:all .3s ease-in-out}.card .accordion-toggle.collapsed:before{content:\"\\f054\"}.card-block p{font-size:16px}.card,h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.ql-container{resize:none!important;max-width:1000px;margin:0 auto}\n"]
1490
1581
  }]
1491
- }],
1492
- ctorParameters: () => [
1493
- { type: i3$1.ActivatedRoute },
1494
- { type: i1$1.DashboardService },
1495
- { type: i0.ChangeDetectorRef }
1496
- ]
1582
+ }]
1497
1583
  });
1498
1584
  var DashboardContentModule = class DashboardContentModule {
1499
1585
  static {
@@ -1512,18 +1598,6 @@ var DashboardContentModule = class DashboardContentModule {
1512
1598
  version: "22.2.3",
1513
1599
  ngImport: i0,
1514
1600
  type: DashboardContentModule,
1515
- declarations: [
1516
- DocumentationComponent,
1517
- FaqComponent,
1518
- FaqDetailsComponent,
1519
- HomeComponent,
1520
- NotificationsPageComponent,
1521
- CurrentNotificationsComponent,
1522
- NotificationsPageComponent,
1523
- DismissedNotificationsComponent,
1524
- SearchComponent,
1525
- UserFeedbackComponent
1526
- ],
1527
1601
  imports: [
1528
1602
  CommonModule,
1529
1603
  FormsModule,
@@ -1535,7 +1609,17 @@ var DashboardContentModule = class DashboardContentModule {
1535
1609
  NgbNavModule,
1536
1610
  RadioButtonModule,
1537
1611
  TooltipModule,
1538
- ResourceSharedComponentsModule
1612
+ ResourceSharedComponentsModule,
1613
+ DocumentationComponent,
1614
+ FaqComponent,
1615
+ FaqDetailsComponent,
1616
+ HomeComponent,
1617
+ NotificationsPageComponent,
1618
+ CurrentNotificationsComponent,
1619
+ NotificationsPageComponent,
1620
+ DismissedNotificationsComponent,
1621
+ SearchComponent,
1622
+ UserFeedbackComponent
1539
1623
  ],
1540
1624
  exports: [
1541
1625
  DocumentationComponent,
@@ -1569,6 +1653,16 @@ var DashboardContentModule = class DashboardContentModule {
1569
1653
  RadioButtonModule,
1570
1654
  TooltipModule,
1571
1655
  ResourceSharedComponentsModule,
1656
+ DocumentationComponent,
1657
+ FaqComponent,
1658
+ FaqDetailsComponent,
1659
+ HomeComponent,
1660
+ NotificationsPageComponent,
1661
+ CurrentNotificationsComponent,
1662
+ NotificationsPageComponent,
1663
+ DismissedNotificationsComponent,
1664
+ SearchComponent,
1665
+ UserFeedbackComponent,
1572
1666
  RadioButtonModule
1573
1667
  ]
1574
1668
  });
@@ -1593,9 +1687,7 @@ i0.ɵɵngDeclareClassMetadata({
1593
1687
  NgbNavModule,
1594
1688
  RadioButtonModule,
1595
1689
  TooltipModule,
1596
- ResourceSharedComponentsModule
1597
- ],
1598
- declarations: [
1690
+ ResourceSharedComponentsModule,
1599
1691
  DocumentationComponent,
1600
1692
  FaqComponent,
1601
1693
  FaqDetailsComponent,