@posiwise/dashboard-module 0.0.153 → 0.0.155

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,32 @@
1
- import * as i2 from "@angular/common";
1
+ import * as i2$1 from "@angular/common";
2
2
  import { CommonModule } from "@angular/common";
3
3
  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";
4
+ import { CUSTOM_ELEMENTS_SCHEMA, Component, DestroyRef, EventEmitter, Inject, InjectionToken, NgModule, Optional, Output, inject } from "@angular/core";
5
+ import * as i2$2 from "@angular/forms";
6
6
  import { FormsModule, ReactiveFormsModule } from "@angular/forms";
7
- import * as i1$1 from "@posiwise/common-services";
7
+ import * as i1 from "@posiwise/common-services";
8
8
  import { PermissionService, SubscriptionService } from "@posiwise/common-services";
9
9
  import { CoreTranslocoModule } from "@posiwise/core-transloco";
10
10
  import * as i4 from "@posiwise/directives";
11
11
  import { DirectivesModule } from "@posiwise/directives";
12
- import * as i5 from "@posiwise/pipes";
12
+ import * as i6 from "@posiwise/pipes";
13
13
  import { PipesModule } from "@posiwise/pipes";
14
14
  import { UserModuleModule } from "@posiwise/user-module";
15
- import * as i2$2 from "primeng/progressspinner";
15
+ import * as i2$3 from "primeng/progressspinner";
16
16
  import { ProgressSpinnerModule } from "primeng/progressspinner";
17
17
  import * as i3 from "primeng/radiobutton";
18
18
  import { RadioButtonModule } from "primeng/radiobutton";
19
19
  import { SelectModule } from "primeng/select";
20
- import * as i1 from "@ng-bootstrap/ng-bootstrap";
20
+ import * as i2 from "@ng-bootstrap/ng-bootstrap";
21
21
  import { NgbDropdownModule, NgbNavModule } from "@ng-bootstrap/ng-bootstrap";
22
22
  import * as i3$1 from "@angular/router";
23
23
  import { NavigationEnd, RouterModule } from "@angular/router";
24
- import * as i6 from "@posiwise/shared-components";
24
+ import * as i6$1 from "@posiwise/shared-components";
25
25
  import { ResourceSharedComponentsModule } from "@posiwise/shared-components";
26
- import * as i5$1 from "primeng/tooltip";
26
+ import * as i5 from "primeng/tooltip";
27
27
  import { TooltipModule } from "primeng/tooltip";
28
- import * as i1$2 from "@angular/platform-browser";
28
+ import * as i1$1 from "@angular/platform-browser";
29
+ import * as i3$2 from "@jsverse/transloco";
29
30
  import { AppBaseComponent } from "@posiwise/app-base-component";
30
31
  import { ADMIN_ROUTERS } from "@posiwise/common-utilities";
31
32
  import { HelperService } from "@posiwise/helper-service";
@@ -33,8 +34,8 @@ import { Subject, filter, forkJoin, of } from "rxjs";
33
34
  import { catchError, debounceTime, finalize, map, switchMap, take, takeUntil } from "rxjs/operators";
34
35
  import groupBy from "lodash/groupBy";
35
36
  import sortBy from "lodash/sortBy";
36
- import * as i7 from "@jsverse/transloco";
37
37
  import moment from "moment";
38
+ import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
38
39
  var DocumentationComponent = class DocumentationComponent {
39
40
  constructor(sanitizer) {
40
41
  this.sanitizer = sanitizer;
@@ -53,26 +54,26 @@ var DocumentationComponent = class DocumentationComponent {
53
54
  static {
54
55
  this.ɵfac = i0.ɵɵngDeclareFactory({
55
56
  minVersion: "12.0.0",
56
- version: "22.2.0",
57
+ version: "22.2.3",
57
58
  ngImport: i0,
58
59
  type: DocumentationComponent,
59
- deps: [{ token: i1$2.DomSanitizer }],
60
+ deps: [{ token: i1$1.DomSanitizer }],
60
61
  target: i0.ɵɵFactoryTarget.Component
61
62
  });
62
63
  }
63
64
  static {
64
65
  this.ɵcmp = i0.ɵɵngDeclareComponent({
65
66
  minVersion: "17.0.0",
66
- version: "22.2.0",
67
+ version: "22.2.3",
67
68
  type: DocumentationComponent,
68
69
  isStandalone: false,
69
70
  selector: "pw-documentation",
70
71
  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",
72
+ 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
73
  styles: [".documentation-wrapper{width:100%;height:100vh}.documentation-wrapper iframe{width:100%;height:100%;border:none}\n"],
73
74
  dependencies: [{
74
75
  kind: "component",
75
- type: i2$2.ProgressSpinner,
76
+ type: i2$3.ProgressSpinner,
76
77
  selector: "p-progress-spinner, p-progressspinner",
77
78
  inputs: [
78
79
  "value",
@@ -83,13 +84,17 @@ var DocumentationComponent = class DocumentationComponent {
83
84
  "ariaLabel",
84
85
  "fill"
85
86
  ]
87
+ }, {
88
+ kind: "pipe",
89
+ type: i3$2.TranslocoPipe,
90
+ name: "transloco"
86
91
  }]
87
92
  });
88
93
  }
89
94
  };
90
95
  i0.ɵɵngDeclareClassMetadata({
91
96
  minVersion: "12.0.0",
92
- version: "22.2.0",
97
+ version: "22.2.3",
93
98
  ngImport: i0,
94
99
  type: DocumentationComponent,
95
100
  decorators: [{
@@ -97,11 +102,11 @@ i0.ɵɵngDeclareClassMetadata({
97
102
  args: [{
98
103
  selector: "pw-documentation",
99
104
  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",
105
+ 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
106
  styles: [".documentation-wrapper{width:100%;height:100vh}.documentation-wrapper iframe{width:100%;height:100%;border:none}\n"]
102
107
  }]
103
108
  }],
104
- ctorParameters: () => [{ type: i1$2.DomSanitizer }]
109
+ ctorParameters: () => [{ type: i1$1.DomSanitizer }]
105
110
  });
106
111
  const FAQ_ADMIN_PERMISSION = "Pages.Admin.FAQ || Pages.Role.MarketingManager || Pages.Role.CustomerSuccessManager";
107
112
  function groupFaqsByCategory(nonProductFaqs, productFaqs) {
@@ -222,14 +227,14 @@ var FaqComponent = class FaqComponent extends AppBaseComponent {
222
227
  static {
223
228
  this.ɵfac = i0.ɵɵngDeclareFactory({
224
229
  minVersion: "12.0.0",
225
- version: "22.2.0",
230
+ version: "22.2.3",
226
231
  ngImport: i0,
227
232
  type: FaqComponent,
228
233
  deps: [
229
- { token: i1$1.CommonService },
234
+ { token: i1.CommonService },
230
235
  { token: i0.Injector },
231
- { token: i1$1.ProductService },
232
- { token: i1$2.DomSanitizer },
236
+ { token: i1.ProductService },
237
+ { token: i1$1.DomSanitizer },
233
238
  { token: i0.ChangeDetectorRef }
234
239
  ],
235
240
  target: i0.ɵɵFactoryTarget.Component
@@ -238,14 +243,14 @@ var FaqComponent = class FaqComponent extends AppBaseComponent {
238
243
  static {
239
244
  this.ɵcmp = i0.ɵɵngDeclareComponent({
240
245
  minVersion: "17.0.0",
241
- version: "22.2.0",
246
+ version: "22.2.3",
242
247
  type: FaqComponent,
243
248
  isStandalone: false,
244
249
  selector: "pw-faq",
245
250
  usesInheritance: true,
246
251
  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"],
252
+ 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",
253
+ 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
254
  dependencies: [
250
255
  {
251
256
  kind: "directive",
@@ -268,7 +273,7 @@ var FaqComponent = class FaqComponent extends AppBaseComponent {
268
273
  },
269
274
  {
270
275
  kind: "component",
271
- type: i2$2.ProgressSpinner,
276
+ type: i2$3.ProgressSpinner,
272
277
  selector: "p-progress-spinner, p-progressspinner",
273
278
  inputs: [
274
279
  "value",
@@ -282,7 +287,7 @@ var FaqComponent = class FaqComponent extends AppBaseComponent {
282
287
  },
283
288
  {
284
289
  kind: "directive",
285
- type: i5$1.Tooltip,
290
+ type: i5.Tooltip,
286
291
  selector: "[pTooltip]",
287
292
  inputs: [
288
293
  "tooltipPosition",
@@ -310,7 +315,7 @@ var FaqComponent = class FaqComponent extends AppBaseComponent {
310
315
  },
311
316
  {
312
317
  kind: "component",
313
- type: i6.NoDataComponent,
318
+ type: i6$1.NoDataComponent,
314
319
  selector: "pw-no-data",
315
320
  inputs: [
316
321
  "message",
@@ -320,7 +325,7 @@ var FaqComponent = class FaqComponent extends AppBaseComponent {
320
325
  },
321
326
  {
322
327
  kind: "pipe",
323
- type: i7.TranslocoPipe,
328
+ type: i3$2.TranslocoPipe,
324
329
  name: "transloco"
325
330
  }
326
331
  ]
@@ -329,7 +334,7 @@ var FaqComponent = class FaqComponent extends AppBaseComponent {
329
334
  };
330
335
  i0.ɵɵngDeclareClassMetadata({
331
336
  minVersion: "12.0.0",
332
- version: "22.2.0",
337
+ version: "22.2.3",
333
338
  ngImport: i0,
334
339
  type: FaqComponent,
335
340
  decorators: [{
@@ -337,15 +342,15 @@ i0.ɵɵngDeclareClassMetadata({
337
342
  args: [{
338
343
  selector: "pw-faq",
339
344
  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"]
345
+ 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",
346
+ 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
347
  }]
343
348
  }],
344
349
  ctorParameters: () => [
345
- { type: i1$1.CommonService },
350
+ { type: i1.CommonService },
346
351
  { type: i0.Injector },
347
- { type: i1$1.ProductService },
348
- { type: i1$2.DomSanitizer },
352
+ { type: i1.ProductService },
353
+ { type: i1$1.DomSanitizer },
349
354
  { type: i0.ChangeDetectorRef }
350
355
  ]
351
356
  });
@@ -432,13 +437,13 @@ var FaqDetailsComponent = class FaqDetailsComponent extends AppBaseComponent {
432
437
  static {
433
438
  this.ɵfac = i0.ɵɵngDeclareFactory({
434
439
  minVersion: "12.0.0",
435
- version: "22.2.0",
440
+ version: "22.2.3",
436
441
  ngImport: i0,
437
442
  type: FaqDetailsComponent,
438
443
  deps: [
439
- { token: i1$1.CommonService },
444
+ { token: i1.CommonService },
440
445
  { token: i0.Injector },
441
- { token: i1$2.DomSanitizer },
446
+ { token: i1$1.DomSanitizer },
442
447
  { token: i0.ChangeDetectorRef }
443
448
  ],
444
449
  target: i0.ɵɵFactoryTarget.Component
@@ -447,13 +452,13 @@ var FaqDetailsComponent = class FaqDetailsComponent extends AppBaseComponent {
447
452
  static {
448
453
  this.ɵcmp = i0.ɵɵngDeclareComponent({
449
454
  minVersion: "17.0.0",
450
- version: "22.2.0",
455
+ version: "22.2.3",
451
456
  type: FaqDetailsComponent,
452
457
  isStandalone: false,
453
458
  selector: "pw-faq-details",
454
459
  usesInheritance: true,
455
460
  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",
461
+ 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
462
  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
463
  dependencies: [
459
464
  {
@@ -488,7 +493,7 @@ var FaqDetailsComponent = class FaqDetailsComponent extends AppBaseComponent {
488
493
  },
489
494
  {
490
495
  kind: "component",
491
- type: i2$2.ProgressSpinner,
496
+ type: i2$3.ProgressSpinner,
492
497
  selector: "p-progress-spinner, p-progressspinner",
493
498
  inputs: [
494
499
  "value",
@@ -502,7 +507,7 @@ var FaqDetailsComponent = class FaqDetailsComponent extends AppBaseComponent {
502
507
  },
503
508
  {
504
509
  kind: "directive",
505
- type: i5$1.Tooltip,
510
+ type: i5.Tooltip,
506
511
  selector: "[pTooltip]",
507
512
  inputs: [
508
513
  "tooltipPosition",
@@ -530,7 +535,7 @@ var FaqDetailsComponent = class FaqDetailsComponent extends AppBaseComponent {
530
535
  },
531
536
  {
532
537
  kind: "component",
533
- type: i6.NoDataComponent,
538
+ type: i6$1.NoDataComponent,
534
539
  selector: "pw-no-data",
535
540
  inputs: [
536
541
  "message",
@@ -540,7 +545,7 @@ var FaqDetailsComponent = class FaqDetailsComponent extends AppBaseComponent {
540
545
  },
541
546
  {
542
547
  kind: "pipe",
543
- type: i7.TranslocoPipe,
548
+ type: i3$2.TranslocoPipe,
544
549
  name: "transloco"
545
550
  }
546
551
  ]
@@ -549,7 +554,7 @@ var FaqDetailsComponent = class FaqDetailsComponent extends AppBaseComponent {
549
554
  };
550
555
  i0.ɵɵngDeclareClassMetadata({
551
556
  minVersion: "12.0.0",
552
- version: "22.2.0",
557
+ version: "22.2.3",
553
558
  ngImport: i0,
554
559
  type: FaqDetailsComponent,
555
560
  decorators: [{
@@ -557,14 +562,14 @@ i0.ɵɵngDeclareClassMetadata({
557
562
  args: [{
558
563
  selector: "pw-faq-details",
559
564
  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",
565
+ 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
566
  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
567
  }]
563
568
  }],
564
569
  ctorParameters: () => [
565
- { type: i1$1.CommonService },
570
+ { type: i1.CommonService },
566
571
  { type: i0.Injector },
567
- { type: i1$2.DomSanitizer },
572
+ { type: i1$1.DomSanitizer },
568
573
  { type: i0.ChangeDetectorRef }
569
574
  ]
570
575
  });
@@ -628,12 +633,12 @@ var UserFeedbackComponent = class UserFeedbackComponent extends AppBaseComponent
628
633
  static {
629
634
  this.ɵfac = i0.ɵɵngDeclareFactory({
630
635
  minVersion: "12.0.0",
631
- version: "22.2.0",
636
+ version: "22.2.3",
632
637
  ngImport: i0,
633
638
  type: UserFeedbackComponent,
634
639
  deps: [
635
640
  { token: i0.Injector },
636
- { token: i1$1.CommonService },
641
+ { token: i1.CommonService },
637
642
  { token: i0.ChangeDetectorRef }
638
643
  ],
639
644
  target: i0.ɵɵFactoryTarget.Component
@@ -642,38 +647,38 @@ var UserFeedbackComponent = class UserFeedbackComponent extends AppBaseComponent
642
647
  static {
643
648
  this.ɵcmp = i0.ɵɵngDeclareComponent({
644
649
  minVersion: "17.0.0",
645
- version: "22.2.0",
650
+ version: "22.2.3",
646
651
  type: UserFeedbackComponent,
647
652
  isStandalone: false,
648
653
  selector: "pw-user-feedback",
649
654
  usesInheritance: true,
650
655
  ngImport: i0,
651
- 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 >Your input is valuable to us</h3>\n }\n @if (first) {\n <p class=\"mb-4\"\n >\n Please take a moment to answer these questions\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\">Not at all</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\">Extremely</span>\n </div>\n <div class=\"text mt-3\">\n <h6>Can you tell us the reason for your score? Do you have any particular features you want us to build or fix?</h6>\n <label for=\"user-feedback-description\" class=\"visually-hidden\">Reason for your score</label>\n <textarea id=\"user-feedback-description\"\n rows=\"4\"\n name=\"description\"\n placeholder=\"“What is the primary reason for your score?”\"\n ngModel\n type=\"text\"\n pInputTextarea\n class=\"form-control\"\n aria-label=\"“What is the primary reason for your score?”\">\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 Submit\n </button>\n </div>\n </div>\n </form>\n </div>\n </div>\n }\n </div>\n </div>\n }\n}\n",
656
+ 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
657
  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
658
  dependencies: [
654
659
  {
655
660
  kind: "directive",
656
- type: i2$1.ɵNgNoValidate,
661
+ type: i2$2.ɵNgNoValidate,
657
662
  selector: "form:not([ngNoForm]):not([ngNativeValidate])"
658
663
  },
659
664
  {
660
665
  kind: "directive",
661
- type: i2$1.DefaultValueAccessor,
666
+ type: i2$2.DefaultValueAccessor,
662
667
  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
668
  },
664
669
  {
665
670
  kind: "directive",
666
- type: i2$1.NgControlStatus,
671
+ type: i2$2.NgControlStatus,
667
672
  selector: "[formControlName],[ngModel],[formControl]"
668
673
  },
669
674
  {
670
675
  kind: "directive",
671
- type: i2$1.NgControlStatusGroup,
676
+ type: i2$2.NgControlStatusGroup,
672
677
  selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]"
673
678
  },
674
679
  {
675
680
  kind: "directive",
676
- type: i2$1.NgModel,
681
+ type: i2$2.NgModel,
677
682
  selector: "[ngModel]:not([formControlName]):not([formControl])",
678
683
  inputs: [
679
684
  "name",
@@ -686,7 +691,7 @@ var UserFeedbackComponent = class UserFeedbackComponent extends AppBaseComponent
686
691
  },
687
692
  {
688
693
  kind: "directive",
689
- type: i2$1.NgForm,
694
+ type: i2$2.NgForm,
690
695
  selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]",
691
696
  inputs: ["ngFormOptions"],
692
697
  outputs: ["ngSubmit"],
@@ -712,6 +717,11 @@ var UserFeedbackComponent = class UserFeedbackComponent extends AppBaseComponent
712
717
  "onFocus",
713
718
  "onBlur"
714
719
  ]
720
+ },
721
+ {
722
+ kind: "pipe",
723
+ type: i3$2.TranslocoPipe,
724
+ name: "transloco"
715
725
  }
716
726
  ]
717
727
  });
@@ -719,7 +729,7 @@ var UserFeedbackComponent = class UserFeedbackComponent extends AppBaseComponent
719
729
  };
720
730
  i0.ɵɵngDeclareClassMetadata({
721
731
  minVersion: "12.0.0",
722
- version: "22.2.0",
732
+ version: "22.2.3",
723
733
  ngImport: i0,
724
734
  type: UserFeedbackComponent,
725
735
  decorators: [{
@@ -727,13 +737,13 @@ i0.ɵɵngDeclareClassMetadata({
727
737
  args: [{
728
738
  selector: "pw-user-feedback",
729
739
  standalone: false,
730
- 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 >Your input is valuable to us</h3>\n }\n @if (first) {\n <p class=\"mb-4\"\n >\n Please take a moment to answer these questions\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\">Not at all</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\">Extremely</span>\n </div>\n <div class=\"text mt-3\">\n <h6>Can you tell us the reason for your score? Do you have any particular features you want us to build or fix?</h6>\n <label for=\"user-feedback-description\" class=\"visually-hidden\">Reason for your score</label>\n <textarea id=\"user-feedback-description\"\n rows=\"4\"\n name=\"description\"\n placeholder=\"“What is the primary reason for your score?”\"\n ngModel\n type=\"text\"\n pInputTextarea\n class=\"form-control\"\n aria-label=\"“What is the primary reason for your score?”\">\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 Submit\n </button>\n </div>\n </div>\n </form>\n </div>\n </div>\n }\n </div>\n </div>\n }\n}\n",
740
+ 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",
731
741
  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"]
732
742
  }]
733
743
  }],
734
744
  ctorParameters: () => [
735
745
  { type: i0.Injector },
736
- { type: i1$1.CommonService },
746
+ { type: i1.CommonService },
737
747
  { type: i0.ChangeDetectorRef }
738
748
  ]
739
749
  });
@@ -793,12 +803,12 @@ var HomeComponent = class HomeComponent extends AppBaseComponent {
793
803
  static {
794
804
  this.ɵfac = i0.ɵɵngDeclareFactory({
795
805
  minVersion: "12.0.0",
796
- version: "22.2.0",
806
+ version: "22.2.3",
797
807
  ngImport: i0,
798
808
  type: HomeComponent,
799
809
  deps: [
800
810
  { token: i0.Injector },
801
- { token: i1$1.HopscotchService },
811
+ { token: i1.HopscotchService },
802
812
  { token: i0.ChangeDetectorRef },
803
813
  {
804
814
  token: HOME_PRODUCT_SECTIONS,
@@ -811,18 +821,18 @@ var HomeComponent = class HomeComponent extends AppBaseComponent {
811
821
  static {
812
822
  this.ɵcmp = i0.ɵɵngDeclareComponent({
813
823
  minVersion: "17.0.0",
814
- version: "22.2.0",
824
+ version: "22.2.3",
815
825
  type: HomeComponent,
816
826
  isStandalone: false,
817
827
  selector: "pw-home",
818
828
  usesInheritance: true,
819
829
  ngImport: i0,
820
- 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",
830
+ 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",
821
831
  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"],
822
832
  dependencies: [
823
833
  {
824
834
  kind: "directive",
825
- type: i2.NgComponentOutlet,
835
+ type: i2$1.NgComponentOutlet,
826
836
  selector: "[ngComponentOutlet]",
827
837
  inputs: [
828
838
  "ngComponentOutlet",
@@ -865,7 +875,7 @@ var HomeComponent = class HomeComponent extends AppBaseComponent {
865
875
  },
866
876
  {
867
877
  kind: "pipe",
868
- type: i7.TranslocoPipe,
878
+ type: i3$2.TranslocoPipe,
869
879
  name: "transloco"
870
880
  }
871
881
  ]
@@ -874,7 +884,7 @@ var HomeComponent = class HomeComponent extends AppBaseComponent {
874
884
  };
875
885
  i0.ɵɵngDeclareClassMetadata({
876
886
  minVersion: "12.0.0",
877
- version: "22.2.0",
887
+ version: "22.2.3",
878
888
  ngImport: i0,
879
889
  type: HomeComponent,
880
890
  decorators: [{
@@ -882,13 +892,13 @@ i0.ɵɵngDeclareClassMetadata({
882
892
  args: [{
883
893
  selector: "pw-home",
884
894
  standalone: false,
885
- 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",
895
+ 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",
886
896
  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"]
887
897
  }]
888
898
  }],
889
899
  ctorParameters: () => [
890
900
  { type: i0.Injector },
891
- { type: i1$1.HopscotchService },
901
+ { type: i1.HopscotchService },
892
902
  { type: i0.ChangeDetectorRef },
893
903
  {
894
904
  type: void 0,
@@ -899,12 +909,30 @@ i0.ɵɵngDeclareClassMetadata({
899
909
  }
900
910
  ]
901
911
  });
912
+ function rowAction(host, id, action, request, cdr) {
913
+ host.busyId = id;
914
+ host.busyAction = action;
915
+ cdr.markForCheck();
916
+ return request.pipe(finalize(() => {
917
+ host.busyId = null;
918
+ host.busyAction = null;
919
+ cdr.markForCheck();
920
+ }));
921
+ }
922
+ function applyReadEvent(notes, event) {
923
+ notes.filter((note) => event.id === "all" || note.id === event.id).forEach((note) => note.unread = false);
924
+ }
902
925
  var CurrentNotificationsComponent = class CurrentNotificationsComponent {
903
- constructor(notificationService, cdr) {
926
+ constructor(notificationService, opener, cdr) {
904
927
  this.notificationService = notificationService;
928
+ this.opener = opener;
905
929
  this.cdr = cdr;
930
+ this.moved = new EventEmitter();
906
931
  this.notificationCount = 0;
907
932
  this.noNoti = true;
933
+ this.busyId = null;
934
+ this.busyAction = null;
935
+ this.destroyRef = inject(DestroyRef);
908
936
  this.itemsPerPage = 100;
909
937
  this.notifications = [];
910
938
  this.currentPage = 1;
@@ -914,9 +942,13 @@ var CurrentNotificationsComponent = class CurrentNotificationsComponent {
914
942
  }
915
943
  ngOnInit() {
916
944
  this.getNotifications();
945
+ this.notificationService.noteRead$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((event) => {
946
+ applyReadEvent(this.notifications, event);
947
+ this.cdr.markForCheck();
948
+ });
917
949
  }
918
950
  getNotifications() {
919
- this.notificationService.getNotifications({
951
+ this.notificationService.getCurrentNotifications({
920
952
  page: this.currentPage,
921
953
  page_size: this.itemsPerPage
922
954
  }).subscribe((data) => {
@@ -946,49 +978,55 @@ var CurrentNotificationsComponent = class CurrentNotificationsComponent {
946
978
  }
947
979
  }
948
980
  dismiss(id, e) {
949
- this.notificationService.dismissNotification(id).subscribe(() => {
950
- const index = this.notifications.indexOf(e);
951
- this.notifications.splice(index, 1);
952
- if (this.notifications.length === 0) this.noNoti = true;
953
- this.cdr.markForCheck();
954
- $("#noty").slideUp("slow", () => {
955
- $("#noty").remove();
956
- });
981
+ if (this.busyId !== null) return;
982
+ rowAction(this, id, "dismiss", this.notificationService.dismissNotification(id), this.cdr).subscribe(() => {
983
+ this.notifications.splice(this.notifications.indexOf(e), 1);
984
+ this.noNoti = this.notifications.length === 0;
985
+ this.totalRecords = Math.max(0, this.totalRecords - 1);
986
+ this.moved.emit("dismissed");
957
987
  });
958
988
  }
989
+ open(note) {
990
+ this.opener.open(note);
991
+ }
959
992
  trackByNotification(_index, item) {
960
993
  return item.id;
961
994
  }
962
995
  static {
963
996
  this.ɵfac = i0.ɵɵngDeclareFactory({
964
997
  minVersion: "12.0.0",
965
- version: "22.2.0",
998
+ version: "22.2.3",
966
999
  ngImport: i0,
967
1000
  type: CurrentNotificationsComponent,
968
- deps: [{ token: i1$1.NotificationService }, { token: i0.ChangeDetectorRef }],
1001
+ deps: [
1002
+ { token: i1.NotificationService },
1003
+ { token: i6$1.NotificationOpenerService },
1004
+ { token: i0.ChangeDetectorRef }
1005
+ ],
969
1006
  target: i0.ɵɵFactoryTarget.Component
970
1007
  });
971
1008
  }
972
1009
  static {
973
1010
  this.ɵcmp = i0.ɵɵngDeclareComponent({
974
1011
  minVersion: "17.0.0",
975
- version: "22.2.0",
1012
+ version: "22.2.3",
976
1013
  type: CurrentNotificationsComponent,
977
1014
  isStandalone: false,
978
1015
  selector: "pw-current-notifications",
1016
+ outputs: { moved: "moved" },
979
1017
  ngImport: i0,
980
- 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",
981
- 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"],
1018
+ 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 <span class=\"d-inline-block noty-body\"\n role=\"button\"\n tabindex=\"0\"\n (click)=\"open(item)\"\n (keydown.enter)=\"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 </span>\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",
1019
+ 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{cursor:pointer}.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"],
982
1020
  dependencies: [
983
1021
  {
984
1022
  kind: "directive",
985
- type: i2.NgClass,
1023
+ type: i2$1.NgClass,
986
1024
  selector: "[ngClass]",
987
1025
  inputs: ["class", "ngClass"]
988
1026
  },
989
1027
  {
990
1028
  kind: "component",
991
- type: i2$2.ProgressSpinner,
1029
+ type: i2$3.ProgressSpinner,
992
1030
  selector: "p-progress-spinner, p-progressspinner",
993
1031
  inputs: [
994
1032
  "value",
@@ -1002,7 +1040,7 @@ var CurrentNotificationsComponent = class CurrentNotificationsComponent {
1002
1040
  },
1003
1041
  {
1004
1042
  kind: "component",
1005
- type: i6.NoDataComponent,
1043
+ type: i6$1.NoDataComponent,
1006
1044
  selector: "pw-no-data",
1007
1045
  inputs: [
1008
1046
  "message",
@@ -1012,13 +1050,18 @@ var CurrentNotificationsComponent = class CurrentNotificationsComponent {
1012
1050
  },
1013
1051
  {
1014
1052
  kind: "component",
1015
- type: i6.RecordsSummaryComponent,
1053
+ type: i6$1.RecordsSummaryComponent,
1016
1054
  selector: "pw-records-summary",
1017
1055
  inputs: ["showing", "total"]
1018
1056
  },
1019
1057
  {
1020
1058
  kind: "pipe",
1021
- type: i5.SinceAgoPipe,
1059
+ type: i3$2.TranslocoPipe,
1060
+ name: "transloco"
1061
+ },
1062
+ {
1063
+ kind: "pipe",
1064
+ type: i6.SinceAgoPipe,
1022
1065
  name: "sinceAgo"
1023
1066
  }
1024
1067
  ]
@@ -1027,7 +1070,7 @@ var CurrentNotificationsComponent = class CurrentNotificationsComponent {
1027
1070
  };
1028
1071
  i0.ɵɵngDeclareClassMetadata({
1029
1072
  minVersion: "12.0.0",
1030
- version: "22.2.0",
1073
+ version: "22.2.3",
1031
1074
  ngImport: i0,
1032
1075
  type: CurrentNotificationsComponent,
1033
1076
  decorators: [{
@@ -1035,18 +1078,29 @@ i0.ɵɵngDeclareClassMetadata({
1035
1078
  args: [{
1036
1079
  selector: "pw-current-notifications",
1037
1080
  standalone: false,
1038
- 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",
1039
- 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"]
1081
+ 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 <span class=\"d-inline-block noty-body\"\n role=\"button\"\n tabindex=\"0\"\n (click)=\"open(item)\"\n (keydown.enter)=\"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 </span>\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",
1082
+ 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{cursor:pointer}.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"]
1040
1083
  }]
1041
1084
  }],
1042
- ctorParameters: () => [{ type: i1$1.NotificationService }, { type: i0.ChangeDetectorRef }]
1085
+ ctorParameters: () => [
1086
+ { type: i1.NotificationService },
1087
+ { type: i6$1.NotificationOpenerService },
1088
+ { type: i0.ChangeDetectorRef }
1089
+ ],
1090
+ propDecorators: { moved: [{ type: Output }] }
1043
1091
  });
1044
1092
  var DismissedNotificationsComponent = class DismissedNotificationsComponent {
1045
- constructor(notificationService, cdr) {
1093
+ constructor(notificationService, opener, confirmDialog, cdr) {
1046
1094
  this.notificationService = notificationService;
1095
+ this.opener = opener;
1096
+ this.confirmDialog = confirmDialog;
1047
1097
  this.cdr = cdr;
1098
+ this.moved = new EventEmitter();
1048
1099
  this.notificationCount = 0;
1049
1100
  this.noNoti = true;
1101
+ this.busyId = null;
1102
+ this.busyAction = null;
1103
+ this.destroyRef = inject(DestroyRef);
1050
1104
  this.dismissedNotifications = [];
1051
1105
  this.isLoaded = false;
1052
1106
  this.itemsPerPage = 100;
@@ -1056,6 +1110,10 @@ var DismissedNotificationsComponent = class DismissedNotificationsComponent {
1056
1110
  }
1057
1111
  ngOnInit() {
1058
1112
  this.getNotifications();
1113
+ this.notificationService.noteRead$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((event) => {
1114
+ applyReadEvent(this.dismissedNotifications, event);
1115
+ this.cdr.markForCheck();
1116
+ });
1059
1117
  }
1060
1118
  getNotifications() {
1061
1119
  this.notificationService.getDismissedNotifications({
@@ -1087,62 +1145,65 @@ var DismissedNotificationsComponent = class DismissedNotificationsComponent {
1087
1145
  }
1088
1146
  }
1089
1147
  dismiss(id, e) {
1090
- HelperService.raiseDeletePopup().then((res) => {
1091
- if (res.value) this.notificationService.deleteNotifications(id).subscribe(() => {
1092
- const index = this.dismissedNotifications.indexOf(e);
1093
- this.dismissedNotifications.splice(index, 1);
1094
- if (this.dismissedNotifications.length === 0) this.noNoti = true;
1095
- this.cdr.markForCheck();
1096
- $("#noty").slideUp("slow", () => {
1097
- $("#noty").remove();
1098
- });
1099
- });
1148
+ if (this.busyId !== null) return;
1149
+ this.confirmDialog.confirmDelete().then((ok) => {
1150
+ if (ok) this.removeAfter(id, e, "delete", this.notificationService.deleteNotifications(id), "deleted");
1100
1151
  });
1101
1152
  }
1102
1153
  restoreNotification(id, e) {
1103
- this.notificationService.reinstateNotification(id).subscribe(() => {
1104
- const index = this.dismissedNotifications.indexOf(e);
1105
- this.dismissedNotifications.splice(index, 1);
1106
- if (this.dismissedNotifications.length === 0) this.noNoti = true;
1107
- this.cdr.markForCheck();
1108
- $("#noty").slideUp("slow", () => {
1109
- $("#noty").remove();
1110
- });
1154
+ if (this.busyId !== null) return;
1155
+ this.removeAfter(id, e, "restore", this.notificationService.reinstateNotification(id), "restored");
1156
+ }
1157
+ removeAfter(id, e, action, request, outcome) {
1158
+ rowAction(this, id, action, request, this.cdr).subscribe(() => {
1159
+ this.dismissedNotifications.splice(this.dismissedNotifications.indexOf(e), 1);
1160
+ this.noNoti = this.dismissedNotifications.length === 0;
1161
+ this.totalRecords = Math.max(0, this.totalRecords - 1);
1162
+ this.moved.emit(outcome);
1111
1163
  });
1112
1164
  }
1165
+ open(note) {
1166
+ this.opener.open(note);
1167
+ }
1113
1168
  trackByNotification(_index, item) {
1114
1169
  return item.id;
1115
1170
  }
1116
1171
  static {
1117
1172
  this.ɵfac = i0.ɵɵngDeclareFactory({
1118
1173
  minVersion: "12.0.0",
1119
- version: "22.2.0",
1174
+ version: "22.2.3",
1120
1175
  ngImport: i0,
1121
1176
  type: DismissedNotificationsComponent,
1122
- deps: [{ token: i1$1.NotificationService }, { token: i0.ChangeDetectorRef }],
1177
+ deps: [
1178
+ { token: i1.NotificationService },
1179
+ { token: i6$1.NotificationOpenerService },
1180
+ { token: i6$1.ConfirmDialogService },
1181
+ { token: i0.ChangeDetectorRef }
1182
+ ],
1123
1183
  target: i0.ɵɵFactoryTarget.Component
1124
1184
  });
1125
1185
  }
1126
1186
  static {
1127
1187
  this.ɵcmp = i0.ɵɵngDeclareComponent({
1128
1188
  minVersion: "17.0.0",
1129
- version: "22.2.0",
1189
+ version: "22.2.3",
1130
1190
  type: DismissedNotificationsComponent,
1131
1191
  isStandalone: false,
1132
1192
  selector: "pw-dismissed-notifications",
1193
+ outputs: { moved: "moved" },
1133
1194
  ngImport: i0,
1134
- 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",
1135
- 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"],
1195
+ 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 <span class=\"d-inline-block noty-body\"\n role=\"button\"\n tabindex=\"0\"\n (click)=\"open(item)\"\n (keydown.enter)=\"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 </span>\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",
1196
+ 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{cursor:pointer}.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"],
1136
1197
  dependencies: [
1137
1198
  {
1138
1199
  kind: "directive",
1139
- type: i2.NgClass,
1200
+ type: i2$1.NgClass,
1140
1201
  selector: "[ngClass]",
1141
1202
  inputs: ["class", "ngClass"]
1142
1203
  },
1143
1204
  {
1144
1205
  kind: "component",
1145
- type: i2$2.ProgressSpinner,
1206
+ type: i2$3.ProgressSpinner,
1146
1207
  selector: "p-progress-spinner, p-progressspinner",
1147
1208
  inputs: [
1148
1209
  "value",
@@ -1156,7 +1217,7 @@ var DismissedNotificationsComponent = class DismissedNotificationsComponent {
1156
1217
  },
1157
1218
  {
1158
1219
  kind: "component",
1159
- type: i6.NoDataComponent,
1220
+ type: i6$1.NoDataComponent,
1160
1221
  selector: "pw-no-data",
1161
1222
  inputs: [
1162
1223
  "message",
@@ -1166,13 +1227,18 @@ var DismissedNotificationsComponent = class DismissedNotificationsComponent {
1166
1227
  },
1167
1228
  {
1168
1229
  kind: "component",
1169
- type: i6.RecordsSummaryComponent,
1230
+ type: i6$1.RecordsSummaryComponent,
1170
1231
  selector: "pw-records-summary",
1171
1232
  inputs: ["showing", "total"]
1172
1233
  },
1173
1234
  {
1174
1235
  kind: "pipe",
1175
- type: i5.SinceAgoPipe,
1236
+ type: i3$2.TranslocoPipe,
1237
+ name: "transloco"
1238
+ },
1239
+ {
1240
+ kind: "pipe",
1241
+ type: i6.SinceAgoPipe,
1176
1242
  name: "sinceAgo"
1177
1243
  }
1178
1244
  ]
@@ -1181,7 +1247,7 @@ var DismissedNotificationsComponent = class DismissedNotificationsComponent {
1181
1247
  };
1182
1248
  i0.ɵɵngDeclareClassMetadata({
1183
1249
  minVersion: "12.0.0",
1184
- version: "22.2.0",
1250
+ version: "22.2.3",
1185
1251
  ngImport: i0,
1186
1252
  type: DismissedNotificationsComponent,
1187
1253
  decorators: [{
@@ -1189,42 +1255,72 @@ i0.ɵɵngDeclareClassMetadata({
1189
1255
  args: [{
1190
1256
  selector: "pw-dismissed-notifications",
1191
1257
  standalone: false,
1192
- 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",
1193
- 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"]
1258
+ 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 <span class=\"d-inline-block noty-body\"\n role=\"button\"\n tabindex=\"0\"\n (click)=\"open(item)\"\n (keydown.enter)=\"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 </span>\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",
1259
+ 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{cursor:pointer}.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"]
1194
1260
  }]
1195
1261
  }],
1196
- ctorParameters: () => [{ type: i1$1.NotificationService }, { type: i0.ChangeDetectorRef }]
1262
+ ctorParameters: () => [
1263
+ { type: i1.NotificationService },
1264
+ { type: i6$1.NotificationOpenerService },
1265
+ { type: i6$1.ConfirmDialogService },
1266
+ { type: i0.ChangeDetectorRef }
1267
+ ],
1268
+ propDecorators: { moved: [{ type: Output }] }
1197
1269
  });
1198
1270
  var NotificationsPageComponent = class NotificationsPageComponent {
1271
+ constructor(notificationService, cdr) {
1272
+ this.notificationService = notificationService;
1273
+ this.cdr = cdr;
1274
+ this.counts = null;
1275
+ }
1276
+ ngOnInit() {
1277
+ this.notificationService.getNotificationCounts().subscribe((counts) => {
1278
+ this.counts = counts;
1279
+ this.cdr.markForCheck();
1280
+ });
1281
+ }
1282
+ onMoved(moved) {
1283
+ if (!this.counts) return;
1284
+ const step = {
1285
+ dismissed: [-1, 1],
1286
+ restored: [1, -1],
1287
+ deleted: [0, -1]
1288
+ }[moved];
1289
+ this.counts = {
1290
+ current: Math.max(0, this.counts.current + step[0]),
1291
+ dismissed: Math.max(0, this.counts.dismissed + step[1])
1292
+ };
1293
+ this.cdr.markForCheck();
1294
+ }
1199
1295
  static {
1200
1296
  this.ɵfac = i0.ɵɵngDeclareFactory({
1201
1297
  minVersion: "12.0.0",
1202
- version: "22.2.0",
1298
+ version: "22.2.3",
1203
1299
  ngImport: i0,
1204
1300
  type: NotificationsPageComponent,
1205
- deps: [],
1301
+ deps: [{ token: i1.NotificationService }, { token: i0.ChangeDetectorRef }],
1206
1302
  target: i0.ɵɵFactoryTarget.Component
1207
1303
  });
1208
1304
  }
1209
1305
  static {
1210
1306
  this.ɵcmp = i0.ɵɵngDeclareComponent({
1211
- minVersion: "14.0.0",
1212
- version: "22.2.0",
1307
+ minVersion: "17.0.0",
1308
+ version: "22.2.3",
1213
1309
  type: NotificationsPageComponent,
1214
1310
  isStandalone: false,
1215
1311
  selector: "pw-notifications-page",
1216
1312
  ngImport: i0,
1217
- 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",
1218
- 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"],
1313
+ 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",
1314
+ 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{cursor:pointer}.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"],
1219
1315
  dependencies: [
1220
1316
  {
1221
1317
  kind: "directive",
1222
- type: i1.NgbNavContent,
1318
+ type: i2.NgbNavContent,
1223
1319
  selector: "ng-template[ngbNavContent]"
1224
1320
  },
1225
1321
  {
1226
1322
  kind: "directive",
1227
- type: i1.NgbNav,
1323
+ type: i2.NgbNav,
1228
1324
  selector: "[ngbNav]",
1229
1325
  inputs: [
1230
1326
  "activeId",
@@ -1244,7 +1340,7 @@ var NotificationsPageComponent = class NotificationsPageComponent {
1244
1340
  },
1245
1341
  {
1246
1342
  kind: "directive",
1247
- type: i1.NgbNavItem,
1343
+ type: i2.NgbNavItem,
1248
1344
  selector: "[ngbNavItem]",
1249
1345
  inputs: [
1250
1346
  "destroyOnHide",
@@ -1257,34 +1353,41 @@ var NotificationsPageComponent = class NotificationsPageComponent {
1257
1353
  },
1258
1354
  {
1259
1355
  kind: "directive",
1260
- type: i1.NgbNavItemRole,
1356
+ type: i2.NgbNavItemRole,
1261
1357
  selector: "[ngbNavItem]:not(ng-container)"
1262
1358
  },
1263
1359
  {
1264
1360
  kind: "directive",
1265
- type: i1.NgbNavLink,
1361
+ type: i2.NgbNavLink,
1266
1362
  selector: "a[ngbNavLink]"
1267
1363
  },
1268
1364
  {
1269
1365
  kind: "directive",
1270
- type: i1.NgbNavLinkBase,
1366
+ type: i2.NgbNavLinkBase,
1271
1367
  selector: "[ngbNavLink]"
1272
1368
  },
1273
1369
  {
1274
1370
  kind: "component",
1275
- type: i1.NgbNavOutlet,
1371
+ type: i2.NgbNavOutlet,
1276
1372
  selector: "[ngbNavOutlet]",
1277
1373
  inputs: ["paneRole", "ngbNavOutlet"]
1278
1374
  },
1279
1375
  {
1280
1376
  kind: "component",
1281
1377
  type: CurrentNotificationsComponent,
1282
- selector: "pw-current-notifications"
1378
+ selector: "pw-current-notifications",
1379
+ outputs: ["moved"]
1283
1380
  },
1284
1381
  {
1285
1382
  kind: "component",
1286
1383
  type: DismissedNotificationsComponent,
1287
- selector: "pw-dismissed-notifications"
1384
+ selector: "pw-dismissed-notifications",
1385
+ outputs: ["moved"]
1386
+ },
1387
+ {
1388
+ kind: "pipe",
1389
+ type: i3$2.TranslocoPipe,
1390
+ name: "transloco"
1288
1391
  }
1289
1392
  ]
1290
1393
  });
@@ -1292,7 +1395,7 @@ var NotificationsPageComponent = class NotificationsPageComponent {
1292
1395
  };
1293
1396
  i0.ɵɵngDeclareClassMetadata({
1294
1397
  minVersion: "12.0.0",
1295
- version: "22.2.0",
1398
+ version: "22.2.3",
1296
1399
  ngImport: i0,
1297
1400
  type: NotificationsPageComponent,
1298
1401
  decorators: [{
@@ -1300,10 +1403,11 @@ i0.ɵɵngDeclareClassMetadata({
1300
1403
  args: [{
1301
1404
  selector: "pw-notifications-page",
1302
1405
  standalone: false,
1303
- 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",
1304
- 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"]
1406
+ 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",
1407
+ 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{cursor:pointer}.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"]
1305
1408
  }]
1306
- }]
1409
+ }],
1410
+ ctorParameters: () => [{ type: i1.NotificationService }, { type: i0.ChangeDetectorRef }]
1307
1411
  });
1308
1412
  var SearchComponent = class SearchComponent {
1309
1413
  constructor(route, service, cdr) {
@@ -1381,12 +1485,12 @@ var SearchComponent = class SearchComponent {
1381
1485
  static {
1382
1486
  this.ɵfac = i0.ɵɵngDeclareFactory({
1383
1487
  minVersion: "12.0.0",
1384
- version: "22.2.0",
1488
+ version: "22.2.3",
1385
1489
  ngImport: i0,
1386
1490
  type: SearchComponent,
1387
1491
  deps: [
1388
1492
  { token: i3$1.ActivatedRoute },
1389
- { token: i1$1.DashboardService },
1493
+ { token: i1.DashboardService },
1390
1494
  { token: i0.ChangeDetectorRef }
1391
1495
  ],
1392
1496
  target: i0.ɵɵFactoryTarget.Component
@@ -1395,13 +1499,13 @@ var SearchComponent = class SearchComponent {
1395
1499
  static {
1396
1500
  this.ɵcmp = i0.ɵɵngDeclareComponent({
1397
1501
  minVersion: "17.0.0",
1398
- version: "22.2.0",
1502
+ version: "22.2.3",
1399
1503
  type: SearchComponent,
1400
1504
  isStandalone: false,
1401
1505
  selector: "pw-search",
1402
1506
  ngImport: i0,
1403
- 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",
1404
- 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"],
1507
+ 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",
1508
+ 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"],
1405
1509
  dependencies: [
1406
1510
  {
1407
1511
  kind: "directive",
@@ -1429,7 +1533,7 @@ var SearchComponent = class SearchComponent {
1429
1533
  },
1430
1534
  {
1431
1535
  kind: "component",
1432
- type: i2$2.ProgressSpinner,
1536
+ type: i2$3.ProgressSpinner,
1433
1537
  selector: "p-progress-spinner, p-progressspinner",
1434
1538
  inputs: [
1435
1539
  "value",
@@ -1443,7 +1547,7 @@ var SearchComponent = class SearchComponent {
1443
1547
  },
1444
1548
  {
1445
1549
  kind: "component",
1446
- type: i6.NoDataComponent,
1550
+ type: i6$1.NoDataComponent,
1447
1551
  selector: "pw-no-data",
1448
1552
  inputs: [
1449
1553
  "message",
@@ -1453,17 +1557,17 @@ var SearchComponent = class SearchComponent {
1453
1557
  },
1454
1558
  {
1455
1559
  kind: "pipe",
1456
- type: i2.UpperCasePipe,
1560
+ type: i2$1.UpperCasePipe,
1457
1561
  name: "uppercase"
1458
1562
  },
1459
1563
  {
1460
1564
  kind: "pipe",
1461
- type: i7.TranslocoPipe,
1565
+ type: i3$2.TranslocoPipe,
1462
1566
  name: "transloco"
1463
1567
  },
1464
1568
  {
1465
1569
  kind: "pipe",
1466
- type: i5.DOMSanitizerPipe,
1570
+ type: i6.DOMSanitizerPipe,
1467
1571
  name: "safe"
1468
1572
  }
1469
1573
  ]
@@ -1472,7 +1576,7 @@ var SearchComponent = class SearchComponent {
1472
1576
  };
1473
1577
  i0.ɵɵngDeclareClassMetadata({
1474
1578
  minVersion: "12.0.0",
1475
- version: "22.2.0",
1579
+ version: "22.2.3",
1476
1580
  ngImport: i0,
1477
1581
  type: SearchComponent,
1478
1582
  decorators: [{
@@ -1480,13 +1584,13 @@ i0.ɵɵngDeclareClassMetadata({
1480
1584
  args: [{
1481
1585
  selector: "pw-search",
1482
1586
  standalone: false,
1483
- 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",
1484
- 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"]
1587
+ 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",
1588
+ 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"]
1485
1589
  }]
1486
1590
  }],
1487
1591
  ctorParameters: () => [
1488
1592
  { type: i3$1.ActivatedRoute },
1489
- { type: i1$1.DashboardService },
1593
+ { type: i1.DashboardService },
1490
1594
  { type: i0.ChangeDetectorRef }
1491
1595
  ]
1492
1596
  });
@@ -1494,7 +1598,7 @@ var DashboardContentModule = class DashboardContentModule {
1494
1598
  static {
1495
1599
  this.ɵfac = i0.ɵɵngDeclareFactory({
1496
1600
  minVersion: "12.0.0",
1497
- version: "22.2.0",
1601
+ version: "22.2.3",
1498
1602
  ngImport: i0,
1499
1603
  type: DashboardContentModule,
1500
1604
  deps: [],
@@ -1504,7 +1608,7 @@ var DashboardContentModule = class DashboardContentModule {
1504
1608
  static {
1505
1609
  this.ɵmod = i0.ɵɵngDeclareNgModule({
1506
1610
  minVersion: "14.0.0",
1507
- version: "22.2.0",
1611
+ version: "22.2.3",
1508
1612
  ngImport: i0,
1509
1613
  type: DashboardContentModule,
1510
1614
  declarations: [
@@ -1549,7 +1653,7 @@ var DashboardContentModule = class DashboardContentModule {
1549
1653
  static {
1550
1654
  this.ɵinj = i0.ɵɵngDeclareInjector({
1551
1655
  minVersion: "12.0.0",
1552
- version: "22.2.0",
1656
+ version: "22.2.3",
1553
1657
  ngImport: i0,
1554
1658
  type: DashboardContentModule,
1555
1659
  imports: [
@@ -1571,7 +1675,7 @@ var DashboardContentModule = class DashboardContentModule {
1571
1675
  };
1572
1676
  i0.ɵɵngDeclareClassMetadata({
1573
1677
  minVersion: "12.0.0",
1574
- version: "22.2.0",
1678
+ version: "22.2.3",
1575
1679
  ngImport: i0,
1576
1680
  type: DashboardContentModule,
1577
1681
  decorators: [{
@@ -1622,7 +1726,7 @@ var DashboardLibModule = class DashboardLibModule {
1622
1726
  static {
1623
1727
  this.ɵfac = i0.ɵɵngDeclareFactory({
1624
1728
  minVersion: "12.0.0",
1625
- version: "22.2.0",
1729
+ version: "22.2.3",
1626
1730
  ngImport: i0,
1627
1731
  type: DashboardLibModule,
1628
1732
  deps: [],
@@ -1632,7 +1736,7 @@ var DashboardLibModule = class DashboardLibModule {
1632
1736
  static {
1633
1737
  this.ɵmod = i0.ɵɵngDeclareNgModule({
1634
1738
  minVersion: "14.0.0",
1635
- version: "22.2.0",
1739
+ version: "22.2.3",
1636
1740
  ngImport: i0,
1637
1741
  type: DashboardLibModule,
1638
1742
  imports: [
@@ -1655,7 +1759,7 @@ var DashboardLibModule = class DashboardLibModule {
1655
1759
  static {
1656
1760
  this.ɵinj = i0.ɵɵngDeclareInjector({
1657
1761
  minVersion: "12.0.0",
1658
- version: "22.2.0",
1762
+ version: "22.2.3",
1659
1763
  ngImport: i0,
1660
1764
  type: DashboardLibModule,
1661
1765
  providers: [SubscriptionService],
@@ -1679,7 +1783,7 @@ var DashboardLibModule = class DashboardLibModule {
1679
1783
  };
1680
1784
  i0.ɵɵngDeclareClassMetadata({
1681
1785
  minVersion: "12.0.0",
1682
- version: "22.2.0",
1786
+ version: "22.2.3",
1683
1787
  ngImport: i0,
1684
1788
  type: DashboardLibModule,
1685
1789
  decorators: [{
@@ -1739,6 +1843,7 @@ const COMMON_MENUS = {
1739
1843
  permission: "Pages.Product.{permission_key}.{feature_key}.FAQ",
1740
1844
  path: "/faq",
1741
1845
  title: "FAQ",
1846
+ titleKey: "Menu.Faq",
1742
1847
  icon: "ft-info",
1743
1848
  order: 999
1744
1849
  }),
@@ -1746,6 +1851,7 @@ const COMMON_MENUS = {
1746
1851
  permission: "Pages.Product.{permission_key}.{feature_key}.Enterprise",
1747
1852
  path: "/enterprise",
1748
1853
  title: "Enterprise",
1854
+ titleKey: "Menu.Enterprise",
1749
1855
  icon: "ft-package",
1750
1856
  class: "has-sub",
1751
1857
  badgeClass: "badge rounded-pill bg-danger float-end mt-1",
@@ -1754,42 +1860,49 @@ const COMMON_MENUS = {
1754
1860
  createSubMenuItem({
1755
1861
  path: ":slug/enterprise/members",
1756
1862
  title: "Members",
1863
+ titleKey: "Menu.Enterprise.Members",
1757
1864
  icon: "far fa-users"
1758
1865
  }),
1759
1866
  createSubMenuItem({
1760
1867
  permission: "Pages.Alpha",
1761
1868
  path: ":slug/enterprise/partners",
1762
1869
  title: "Partners",
1870
+ titleKey: "Menu.Enterprise.Partners",
1763
1871
  icon: "far fa-users"
1764
1872
  }),
1765
1873
  createSubMenuItem({
1766
1874
  permission: "Pages.Beta",
1767
1875
  path: ":slug/enterprise/groups",
1768
1876
  title: "Teams",
1877
+ titleKey: "Menu.Enterprise.Teams",
1769
1878
  icon: "far fa-users-class"
1770
1879
  }),
1771
1880
  createSubMenuItem({
1772
1881
  permission: "Pages.Beta",
1773
1882
  path: ":slug/enterprise/communications",
1774
1883
  title: "Communications",
1884
+ titleKey: "Menu.Enterprise.Communications",
1775
1885
  icon: "fas fa-comments"
1776
1886
  }),
1777
1887
  createSubMenuItem({
1778
1888
  permission: "Pages.Beta",
1779
1889
  path: ":slug/enterprise/wiki",
1780
1890
  title: "Documentation",
1891
+ titleKey: "Menu.Enterprise.Documentation",
1781
1892
  icon: "fab fa-wikipedia-w"
1782
1893
  }),
1783
1894
  createSubMenuItem({
1784
1895
  permission: "granted:Pages.Alpha && ( SuperAdmin || SubscriptionAdmin )",
1785
1896
  path: ":slug/enterprise/ai-knowledge",
1786
1897
  title: "AI Knowledge",
1898
+ titleKey: "Menu.Enterprise.AiKnowledge",
1787
1899
  icon: "fa fa-brain"
1788
1900
  }),
1789
1901
  createSubMenuItem({
1790
1902
  permission: "Pages.Beta",
1791
1903
  path: ":slug/enterprise/insights",
1792
1904
  title: "Insights",
1905
+ titleKey: "Menu.Enterprise.Insights",
1793
1906
  icon: "far fa-tag"
1794
1907
  })
1795
1908
  ]
@@ -1798,6 +1911,7 @@ const COMMON_MENUS = {
1798
1911
  permission: "Pages.Product.{permission_key}.{feature_key}.Chat",
1799
1912
  path: "/message",
1800
1913
  title: "Chat",
1914
+ titleKey: "Menu.Chat",
1801
1915
  icon: "ft-message-square",
1802
1916
  badgeClass: "badge rounded-pill bg-danger float-end mt-1",
1803
1917
  order: 2
@@ -1806,6 +1920,7 @@ const COMMON_MENUS = {
1806
1920
  permission: "Pages.Product.{permission_key}.{feature_key}.Blog || Pages.Role.MarketingManager || Pages.Role.CustomerSuccessManager",
1807
1921
  path: "/posts/list",
1808
1922
  title: "Blog",
1923
+ titleKey: "Menu.Blog",
1809
1924
  icon: "far fa-blog"
1810
1925
  })
1811
1926
  };
@@ -1861,111 +1976,133 @@ const ADMIN_MENU_DATA = [
1861
1976
  {
1862
1977
  key: "GENERIC",
1863
1978
  title: "Generic",
1979
+ titleKey: "Menu.Admin.Generic",
1864
1980
  icon: "far fa-book"
1865
1981
  },
1866
1982
  {
1867
1983
  key: "DOMAIN_CONFIG",
1868
1984
  title: "Domains",
1985
+ titleKey: "Menu.Admin.Domains",
1869
1986
  icon: "fa fa-fw fa-cog"
1870
1987
  },
1871
1988
  {
1872
1989
  key: "USERS",
1873
1990
  title: "Users",
1991
+ titleKey: "Menu.Admin.Users",
1874
1992
  icon: "far fa-user-cog"
1875
1993
  },
1876
1994
  {
1877
1995
  key: "SUBSCRIPTION",
1878
1996
  title: "Subscriptions",
1997
+ titleKey: "Menu.Admin.Subscriptions",
1879
1998
  icon: "ft-box"
1880
1999
  },
1881
2000
  {
1882
2001
  key: "PRODUCT",
1883
2002
  title: "Products",
2003
+ titleKey: "Menu.Admin.Products",
1884
2004
  icon: "far fa-parking"
1885
2005
  },
1886
2006
  {
1887
2007
  key: "LOGIN_NOTIFICATION",
1888
2008
  title: "Notifications",
2009
+ titleKey: "Menu.Admin.Notifications",
1889
2010
  icon: "fa fa-fw fa-bell"
1890
2011
  },
1891
2012
  {
1892
2013
  key: "NEWSLETTER",
1893
2014
  title: "Newsletters",
2015
+ titleKey: "Menu.Admin.Newsletters",
1894
2016
  icon: "far fa-newspaper"
1895
2017
  },
1896
2018
  {
1897
2019
  key: "MAILER",
1898
2020
  title: "Mailers",
2021
+ titleKey: "Menu.Admin.Mailers",
1899
2022
  icon: "far fa-envelope"
1900
2023
  },
1901
2024
  {
1902
2025
  key: "BLOG",
1903
2026
  title: "Resources",
2027
+ titleKey: "Resource.Posts.Title",
1904
2028
  icon: "far fa-blog"
1905
2029
  },
1906
2030
  {
1907
2031
  key: "FEATURE_FLAGS",
1908
2032
  title: "Feature Flags",
2033
+ titleKey: "Menu.Admin.FeatureFlags",
1909
2034
  icon: "fa fa-fw fa-toggle-on"
1910
2035
  },
1911
2036
  {
1912
2037
  key: "FAQ",
1913
2038
  title: "FAQs",
2039
+ titleKey: "Menu.Admin.Faqs",
1914
2040
  icon: "fa fa-question"
1915
2041
  },
1916
2042
  {
1917
2043
  key: "INCIDENT",
1918
2044
  title: "Incidents",
2045
+ titleKey: "Menu.Admin.Incidents",
1919
2046
  icon: "fa fa-solid fa-triangle-exclamation"
1920
2047
  },
1921
2048
  {
1922
2049
  key: "CONTACT_US",
1923
2050
  title: "Contact Us",
2051
+ titleKey: "Menu.Admin.ContactUs",
1924
2052
  icon: "fa fa-address-book"
1925
2053
  },
1926
2054
  {
1927
2055
  key: "TIPS",
1928
2056
  title: "Tours",
2057
+ titleKey: "Menu.Admin.Tours",
1929
2058
  icon: "far fa-lightbulb"
1930
2059
  },
1931
2060
  {
1932
2061
  key: "TAGS",
1933
2062
  title: "Tags",
2063
+ titleKey: "Menu.Admin.Tags",
1934
2064
  icon: "far fa-tags"
1935
2065
  },
1936
2066
  {
1937
2067
  key: "ROLES",
1938
2068
  title: "Permissions",
2069
+ titleKey: "Label.Permissions",
1939
2070
  icon: "fas fa-key"
1940
2071
  },
1941
2072
  {
1942
2073
  key: "TOS",
1943
2074
  title: "Privacy & TOS",
2075
+ titleKey: "Menu.Admin.PrivacyTos",
1944
2076
  icon: "fas fa-sticky-note"
1945
2077
  },
1946
2078
  {
1947
2079
  key: "CREDENTIAL",
1948
2080
  title: "Credentials",
2081
+ titleKey: "Menu.Admin.Credentials",
1949
2082
  icon: "fas fa-file-signature"
1950
2083
  },
1951
2084
  {
1952
2085
  key: "OAUTH_CLIENTS",
1953
2086
  title: "MCP OAuth Clients",
2087
+ titleKey: "Admin.OauthClients.Title",
1954
2088
  icon: "fas fa-robot"
1955
2089
  },
1956
2090
  {
1957
2091
  key: "AMBASSADOR_PAYOUTS",
1958
2092
  title: "Ambassador Payouts",
2093
+ titleKey: "Admin.AmbassadorPayouts.Title",
1959
2094
  icon: "fa fa-handshake"
1960
2095
  },
1961
2096
  {
1962
2097
  key: "TRACKING",
1963
2098
  title: "Tracking",
2099
+ titleKey: "Menu.Admin.Tracking",
1964
2100
  icon: "fa fa-map-marker"
1965
2101
  },
1966
2102
  {
1967
2103
  key: "GLOBAL_CONFIG",
1968
2104
  title: "Global Configs",
2105
+ titleKey: "Menu.Admin.GlobalConfigs",
1969
2106
  icon: "fa fa-fw fa-cog"
1970
2107
  }
1971
2108
  ];
@@ -1973,6 +2110,7 @@ const createAdminSubMenuItem = (menuKey) => createSubMenuItem({
1973
2110
  permission: ADMIN_PERMISSIONS[menuKey],
1974
2111
  path: ADMIN_PATHS[menuKey],
1975
2112
  title: ADMIN_MENU_DATA.find((item) => item.key === menuKey)?.title || "",
2113
+ titleKey: ADMIN_MENU_DATA.find((item) => item.key === menuKey)?.titleKey,
1976
2114
  icon: ADMIN_MENU_DATA.find((item) => item.key === menuKey)?.icon || ""
1977
2115
  });
1978
2116
  const generateAdminSubmenu = () => ADMIN_MENU_DATA.map((item) => createAdminSubMenuItem(item.key));
@@ -1980,12 +2118,14 @@ const ROUTES = [createMenuItem({
1980
2118
  permission: "Pages.Dashboard",
1981
2119
  path: "/home",
1982
2120
  title: "Home",
2121
+ titleKey: "Button.Home",
1983
2122
  icon: "ft-home",
1984
2123
  order: 1
1985
2124
  }), createMenuItem({
1986
2125
  permission: "Pages.Admin",
1987
2126
  path: null,
1988
2127
  title: "Admin",
2128
+ titleKey: "Menu.Admin",
1989
2129
  icon: "ft-user",
1990
2130
  class: "has-sub",
1991
2131
  order: 3,