@posiwise/dashboard-module 0.0.160 → 0.0.162
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,6 +1,6 @@
|
|
|
1
|
-
import { CommonModule, NgClass, NgComponentOutlet, UpperCasePipe } from "@angular/common";
|
|
1
|
+
import { CommonModule, Location, NgClass, NgComponentOutlet, UpperCasePipe } from "@angular/common";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
import { CUSTOM_ELEMENTS_SCHEMA, ChangeDetectorRef, Component, DestroyRef, EventEmitter, InjectionToken, NgModule, Output, inject } from "@angular/core";
|
|
3
|
+
import { CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, ChangeDetectorRef, Component, DestroyRef, EventEmitter, InjectionToken, NgModule, Output, inject } from "@angular/core";
|
|
4
4
|
import * as i1 from "@angular/forms";
|
|
5
5
|
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
|
|
6
6
|
import { CommonService, DashboardService, HopscotchService, NotificationService, PermissionService, ProductService, SubscriptionService } from "@posiwise/common-services";
|
|
@@ -16,32 +16,61 @@ import { ActivatedRoute, NavigationEnd, RouterLink, RouterModule } from "@angula
|
|
|
16
16
|
import { ConfirmDialogService, NoDataComponent, NotificationOpenerService, RecordsSummaryComponent, ResourceSharedComponentsModule } from "@posiwise/shared-components";
|
|
17
17
|
import { Tooltip, TooltipModule } from "primeng/tooltip";
|
|
18
18
|
import { DomSanitizer } from "@angular/platform-browser";
|
|
19
|
-
import {
|
|
19
|
+
import { AppLoaderComponent } from "@posiwise/app-loader";
|
|
20
20
|
import { TranslocoPipe } from "@jsverse/transloco";
|
|
21
21
|
import { AppBaseComponent } from "@posiwise/app-base-component";
|
|
22
|
-
import { ADMIN_ROUTERS } from "@posiwise/common-utilities";
|
|
22
|
+
import { ADMIN_ROUTERS, ENTERPRISE_INSIGHTS_PERMISSION } from "@posiwise/common-utilities";
|
|
23
23
|
import { HelperService } from "@posiwise/helper-service";
|
|
24
|
+
import { Bind } from "primeng/bind";
|
|
24
25
|
import { Subject, filter, forkJoin, of } from "rxjs";
|
|
25
26
|
import { catchError, debounceTime, finalize, map, switchMap, take, takeUntil } from "rxjs/operators";
|
|
26
27
|
import groupBy from "lodash/groupBy";
|
|
27
28
|
import sortBy from "lodash/sortBy";
|
|
28
29
|
import moment from "moment";
|
|
29
30
|
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
|
31
|
+
function isHttpsUrl(value) {
|
|
32
|
+
try {
|
|
33
|
+
return new URL(value).protocol === "https:";
|
|
34
|
+
} catch {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
30
38
|
var DocumentationComponent = class DocumentationComponent {
|
|
31
39
|
constructor() {
|
|
32
40
|
this.sanitizer = inject(DomSanitizer);
|
|
33
|
-
this.
|
|
41
|
+
this.location = inject(Location);
|
|
42
|
+
this.sanitizedFor = null;
|
|
43
|
+
this.sanitizedUrl = null;
|
|
44
|
+
this.loadedUrl = null;
|
|
45
|
+
}
|
|
46
|
+
get product() {
|
|
47
|
+
return PermissionService.selectedProduct;
|
|
48
|
+
}
|
|
49
|
+
get rawUrl() {
|
|
50
|
+
const url = this.product?.documentation_url;
|
|
51
|
+
return url && isHttpsUrl(url) ? url : null;
|
|
52
|
+
}
|
|
53
|
+
get documentationUrl() {
|
|
54
|
+
const raw = this.rawUrl;
|
|
55
|
+
if (!raw) return null;
|
|
56
|
+
if (raw !== this.sanitizedFor) {
|
|
57
|
+
this.sanitizedFor = raw;
|
|
58
|
+
this.sanitizedUrl = this.sanitizer.bypassSecurityTrustResourceUrl(raw);
|
|
59
|
+
}
|
|
60
|
+
return this.sanitizedUrl;
|
|
34
61
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
if (rawUrl) this.iframeUrl = this.sanitizer.bypassSecurityTrustResourceUrl(rawUrl);
|
|
38
|
-
else this.isLoaded = true;
|
|
62
|
+
get isLoaded() {
|
|
63
|
+
return !!this.rawUrl && this.loadedUrl === this.rawUrl;
|
|
39
64
|
}
|
|
40
65
|
onIframeLoad() {
|
|
66
|
+
const raw = this.rawUrl;
|
|
41
67
|
setTimeout(() => {
|
|
42
|
-
this.
|
|
68
|
+
this.loadedUrl = raw;
|
|
43
69
|
}, 0);
|
|
44
70
|
}
|
|
71
|
+
goBack() {
|
|
72
|
+
this.location.back();
|
|
73
|
+
}
|
|
45
74
|
static {
|
|
46
75
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
47
76
|
minVersion: "12.0.0",
|
|
@@ -60,26 +89,36 @@ var DocumentationComponent = class DocumentationComponent {
|
|
|
60
89
|
isStandalone: true,
|
|
61
90
|
selector: "pw-documentation",
|
|
62
91
|
ngImport: i0,
|
|
63
|
-
template: "@if (
|
|
92
|
+
template: "@if (documentationUrl; as url) {\n <pw-loader [isVisible]=\"!isLoaded\"></pw-loader>\n <div class=\"documentation-wrapper\" [hidden]=\"!isLoaded\">\n <iframe\n [src]=\"url\"\n width=\"100%\"\n height=\"100%\"\n allowfullscreen\n [title]=\"'Dashboard.Docs.FrameTitle' | transloco\"\n (load)=\"onIframeLoad()\"\n ></iframe>\n </div>\n} @else if (product) {\n <pw-no-data [withImage]=\"true\" [message]=\"'Dashboard.Docs.NoDocumentation' | transloco\">\n <div #content class=\"d-flex justify-content-center\">\n <button type=\"button\" class=\"btn btn-outline-primary\" (click)=\"goBack()\">\n {{ 'Button.Back' | transloco }}\n </button>\n </div>\n </pw-no-data>\n} @else {\n <pw-loader [isVisible]=\"true\"></pw-loader>\n}\n",
|
|
64
93
|
styles: [".documentation-wrapper{width:100%;height:100vh}.documentation-wrapper iframe{width:100%;height:100%;border:none}\n"],
|
|
65
|
-
dependencies: [
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
94
|
+
dependencies: [
|
|
95
|
+
{
|
|
96
|
+
kind: "component",
|
|
97
|
+
type: AppLoaderComponent,
|
|
98
|
+
selector: "pw-loader",
|
|
99
|
+
inputs: [
|
|
100
|
+
"isVisible",
|
|
101
|
+
"closeOnOutsideClick",
|
|
102
|
+
"autoCloseTimeOut"
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
kind: "component",
|
|
107
|
+
type: NoDataComponent,
|
|
108
|
+
selector: "pw-no-data",
|
|
109
|
+
inputs: [
|
|
110
|
+
"message",
|
|
111
|
+
"description",
|
|
112
|
+
"withImage"
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
kind: "pipe",
|
|
117
|
+
type: TranslocoPipe,
|
|
118
|
+
name: "transloco"
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
changeDetection: i0.ChangeDetectionStrategy.Eager
|
|
83
122
|
});
|
|
84
123
|
}
|
|
85
124
|
};
|
|
@@ -93,12 +132,13 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
93
132
|
args: [{
|
|
94
133
|
selector: "pw-documentation",
|
|
95
134
|
imports: [
|
|
96
|
-
|
|
97
|
-
|
|
135
|
+
AppLoaderComponent,
|
|
136
|
+
NoDataComponent,
|
|
98
137
|
TranslocoPipe
|
|
99
138
|
],
|
|
100
139
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
101
|
-
|
|
140
|
+
changeDetection: ChangeDetectionStrategy.Eager,
|
|
141
|
+
template: "@if (documentationUrl; as url) {\n <pw-loader [isVisible]=\"!isLoaded\"></pw-loader>\n <div class=\"documentation-wrapper\" [hidden]=\"!isLoaded\">\n <iframe\n [src]=\"url\"\n width=\"100%\"\n height=\"100%\"\n allowfullscreen\n [title]=\"'Dashboard.Docs.FrameTitle' | transloco\"\n (load)=\"onIframeLoad()\"\n ></iframe>\n </div>\n} @else if (product) {\n <pw-no-data [withImage]=\"true\" [message]=\"'Dashboard.Docs.NoDocumentation' | transloco\">\n <div #content class=\"d-flex justify-content-center\">\n <button type=\"button\" class=\"btn btn-outline-primary\" (click)=\"goBack()\">\n {{ 'Button.Back' | transloco }}\n </button>\n </div>\n </pw-no-data>\n} @else {\n <pw-loader [isVisible]=\"true\"></pw-loader>\n}\n",
|
|
102
142
|
styles: [".documentation-wrapper{width:100%;height:100vh}.documentation-wrapper iframe{width:100%;height:100%;border:none}\n"]
|
|
103
143
|
}]
|
|
104
144
|
}]
|
|
@@ -200,10 +240,7 @@ var FaqComponent = class FaqComponent extends AppBaseComponent {
|
|
|
200
240
|
this.router.navigate(["/support"]);
|
|
201
241
|
}
|
|
202
242
|
navigateToDocumentation() {
|
|
203
|
-
|
|
204
|
-
const documentationRoute = this.router.createUrlTree([this.slug, "documentation"]);
|
|
205
|
-
const url = window.location.origin + this.router.serializeUrl(documentationRoute);
|
|
206
|
-
window.open(url, "_blank");
|
|
243
|
+
this.router.navigate([this.slug, "documentation"]);
|
|
207
244
|
}
|
|
208
245
|
trackByProductFaqId(_index, item) {
|
|
209
246
|
return item.id;
|
|
@@ -1892,7 +1929,7 @@ const COMMON_MENUS = {
|
|
|
1892
1929
|
icon: "fa fa-brain"
|
|
1893
1930
|
}),
|
|
1894
1931
|
createSubMenuItem({
|
|
1895
|
-
permission:
|
|
1932
|
+
permission: ENTERPRISE_INSIGHTS_PERMISSION,
|
|
1896
1933
|
path: ":slug/enterprise/insights",
|
|
1897
1934
|
title: "Insights",
|
|
1898
1935
|
titleKey: "Menu.Enterprise.Insights",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"posiwise-dashboard-module.mjs","names":[],"sources":["../../../../libs/dashboard-module/src/lib/documentation-view/documentation-view.component.ts","../../../../libs/dashboard-module/src/lib/documentation-view/documentation-view.component.html","../../../../libs/dashboard-module/src/lib/faq/faq-admin-permission.ts","../../../../libs/dashboard-module/src/lib/faq/faq-grouping.ts","../../../../libs/dashboard-module/src/lib/faq/faq.component.ts","../../../../libs/dashboard-module/src/lib/faq/faq.component.html","../../../../libs/dashboard-module/src/lib/faq-details/faq-status-badges.ts","../../../../libs/dashboard-module/src/lib/faq-details/faq-details.component.ts","../../../../libs/dashboard-module/src/lib/faq-details/faq-details.component.html","../../../../libs/dashboard-module/src/lib/user-feedback/user-feedback.component.ts","../../../../libs/dashboard-module/src/lib/user-feedback/user-feedback.component.html","../../../../libs/dashboard-module/src/lib/home/home-product-sections.token.ts","../../../../libs/dashboard-module/src/lib/home/home.component.ts","../../../../libs/dashboard-module/src/lib/home/home.component.html","../../../../libs/dashboard-module/src/lib/notifications-page/notification-row-action.ts","../../../../libs/dashboard-module/src/lib/notifications-page/current-notifications/current-notifications.component.ts","../../../../libs/dashboard-module/src/lib/notifications-page/current-notifications/current-notifications.component.html","../../../../libs/dashboard-module/src/lib/notifications-page/dismissed-notifications/dismissed-notifications.component.ts","../../../../libs/dashboard-module/src/lib/notifications-page/dismissed-notifications/dismissed-notifications.component.html","../../../../libs/dashboard-module/src/lib/notifications-page/notifications-page.component.ts","../../../../libs/dashboard-module/src/lib/notifications-page/notifications-page.component.html","../../../../libs/dashboard-module/src/lib/search/search.component.ts","../../../../libs/dashboard-module/src/lib/search/search.component.html","../../../../libs/dashboard-module/src/lib/dashboard-content.module.ts","../../../../libs/dashboard-module/src/lib/dashboard.module.ts","../../../../libs/dashboard-module/src/lib/sidebar/sidebar-route-utils.ts","../../../../libs/dashboard-module/src/lib/sidebar/sidebar-routes.config.ts","../../../../libs/dashboard-module/src/lib/sidebar/sidebar-active-group.ts"],"sourcesContent":["import { Component, CUSTOM_ELEMENTS_SCHEMA, inject, OnInit } from '@angular/core';\nimport { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';\n\nimport { Bind } from 'primeng/bind';\nimport { ProgressSpinner } from 'primeng/progressspinner';\n\nimport { TranslocoPipe } from '@jsverse/transloco';\n\n@Component({\n selector: 'pw-documentation',\n templateUrl: './documentation-view.component.html',\n styleUrls: ['./documentation-view.component.scss'],\n imports: [Bind, ProgressSpinner, TranslocoPipe],\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\n})\nexport class DocumentationComponent implements OnInit {\n private readonly sanitizer = inject(DomSanitizer);\n\n iframeUrl: SafeResourceUrl;\n isLoaded = false;\n\n ngOnInit() {\n // Read from sessionStorage - don't clear it so it persists on refresh\n const sessionStorageUrl = sessionStorage.getItem('documentation_url');\n const rawUrl = sessionStorageUrl;\n\n if (rawUrl) {\n // baseUrl is a trusted internal source (e.g. YouTube embed URL)\n this.iframeUrl = this.sanitizer.bypassSecurityTrustResourceUrl(rawUrl); //NOSONAR\n } else {\n // If no URL is available, mark as loaded to hide spinner\n this.isLoaded = true;\n }\n }\n\n onIframeLoad(): void {\n // Defer change to next tick to avoid ExpressionChangedAfterItHasBeenCheckedError\n setTimeout(() => {\n this.isLoaded = true;\n }, 0);\n }\n}\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\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","/// The permission expression guarding the admin FAQ routes. Kept verbatim in\n/// step with `libs/admin-module/src/lib/admin-module.routing.ts`, where the\n/// `faq` parent and its `add` / `:id` children all carry this exact string.\n/// Offering an edit affordance to anyone `PageAccessGuard` would then bounce\n/// to `notfound` is the failure mode this mirroring exists to prevent.\n///\n/// Shared by the public FAQ list (`FaqComponent`) and the public FAQ detail\n/// page (`FaqDetailsComponent`) so the two surfaces can never drift apart.\nexport const FAQ_ADMIN_PERMISSION =\n 'Pages.Admin.FAQ || Pages.Role.MarketingManager || Pages.Role.CustomerSuccessManager';\n","import { FAQ } from '@posiwise/common-utilities';\n\nimport groupBy from 'lodash/groupBy';\nimport sortBy from 'lodash/sortBy';\n\nexport interface GroupedFaqs {\n [category: string]: FAQ[];\n}\n\n/// Non-product FAQs first, then product-scoped ones, grouped by category and\n/// ordered by `position` within each group.\nexport function groupFaqsByCategory(nonProductFaqs: FAQ[], productFaqs: FAQ[]): GroupedFaqs {\n const grouped = groupBy([...nonProductFaqs, ...productFaqs], 'category');\n\n Object.keys(grouped).forEach(category => {\n grouped[category] = sortBy(grouped[category], 'position');\n });\n\n return grouped;\n}\n\n/// Sanitize every answer up front so the markup is present before the collapse\n/// measures its target height — prevents the end-of-animation height snap that\n/// made expand/collapse feel clunky. Keyed `{itemIndex}-{categoryIndex}` to\n/// match the template's collapse ids.\nexport function buildSanitizedAnswers<T>(\n faqs: GroupedFaqs,\n sanitize: (body: string) => T\n): { [key: string]: T } {\n const answers: { [key: string]: T } = {};\n\n Object.keys(faqs).forEach((category, categoryIndex) => {\n faqs[category].forEach((faq, itemIndex) => {\n if (faq?.answer) {\n answers[`${itemIndex}-${categoryIndex}`] = sanitize(faq.answer);\n }\n });\n });\n\n return answers;\n}\n","import {\n ChangeDetectorRef,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n inject,\n OnDestroy,\n OnInit\n} from '@angular/core';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\nimport { RouterLink } from '@angular/router';\n\nimport { AppBaseComponent } from '@posiwise/app-base-component';\nimport { CommonService, PermissionService, ProductService } from '@posiwise/common-services';\nimport { ADMIN_ROUTERS, FAQ, Product, User } from '@posiwise/common-utilities';\nimport { HelperService } from '@posiwise/helper-service';\nimport { NoDataComponent } from '@posiwise/shared-components';\n\nimport { Bind } from 'primeng/bind';\nimport { ProgressSpinner } from 'primeng/progressspinner';\nimport { Tooltip } from 'primeng/tooltip';\nimport { forkJoin, Subject } from 'rxjs';\nimport { debounceTime, finalize, takeUntil } from 'rxjs/operators';\n\nimport { TranslocoPipe } from '@jsverse/transloco';\n\nimport { FAQ_ADMIN_PERMISSION } from './faq-admin-permission';\nimport { buildSanitizedAnswers, GroupedFaqs, groupFaqsByCategory } from './faq-grouping';\n\nexport { GroupedFaqs };\n\n@Component({\n selector: 'pw-faq',\n templateUrl: './faq.component.html',\n styleUrls: ['./faq.component.scss'],\n imports: [Bind, ProgressSpinner, Tooltip, RouterLink, NoDataComponent, TranslocoPipe],\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\n})\nexport class FaqComponent extends AppBaseComponent implements OnInit, OnDestroy {\n private readonly commonService = inject(CommonService);\n private readonly productService = inject(ProductService);\n private readonly sanitizer = inject(DomSanitizer);\n private readonly cdr = inject(ChangeDetectorRef);\n\n private readonly searchSubject: Subject<string> = new Subject<string>();\n private readonly destroy$ = new Subject<void>();\n faqs: GroupedFaqs;\n search_term;\n\n sanitizedFaqAnswers: { [key: string]: SafeHtml } = {};\n\n productFaq: FAQ[];\n\n private nonProductFaqs: FAQ[];\n\n private allProductFaqs: FAQ[];\n\n subscriptions = [];\n\n objectKeys = Object.keys;\n\n isLoaded = false;\n masterProductId;\n\n totalRecords: number;\n\n products: Product[];\n\n private faqsResponse = [];\n\n allFaqFalse: boolean;\n\n subscriptionId: number;\n\n showSupport: boolean;\n showDocumentation;\n\n faqHashMap = {};\n slug;\n\n readonly routers = ADMIN_ROUTERS;\n\n /// Whether to offer the inline link through to the admin edit form. Unlike\n /// the detail page, the list endpoint returns each FAQ's `id`, so no\n /// fallback is needed here.\n canEditFaq = false;\n\n ngOnInit() {\n this.faqHashMap = {};\n this.showSupport = PermissionService.selectedProduct?.gitlab_service_desk_email;\n this.showDocumentation = PermissionService.selectedProduct?.documentation_url;\n this.slug = PermissionService.selectedSubscription?.slug;\n this.subscriptionId = PermissionService?.selectedSubscription?.id;\n this.masterProductId = this.appConfig.master_subscription.product_id;\n this.canEditFaq = this.permissionService.evaluatePermissions(FAQ_ADMIN_PERMISSION);\n this.getProducts();\n\n this.searchSubject\n .pipe(debounceTime(1000), takeUntil(this.destroy$))\n .subscribe(searchValue => {\n this.search_term = searchValue;\n this.loadFaqData();\n this.cdr.markForCheck();\n });\n\n this.loadFaqData();\n }\n\n loadFaqData() {\n this.isLoaded = false;\n\n forkJoin({\n faqs: this.commonService.getPublicFaq(this.subscriptionId, this.search_term),\n products: this.productService.getProducts({ master_product_id: this.masterProductId })\n })\n .pipe(\n finalize(() => {\n this.isLoaded = true;\n this.cdr.markForCheck();\n })\n )\n .subscribe(({ faqs: { result: faqs }, products }) => {\n this.faqsResponse = faqs.faqs;\n faqs?.available_category?.forEach(x => {\n this.faqHashMap[x.key] = x;\n });\n this.totalRecords = faqs.faqs.length;\n this.nonProductFaqs = this.faqsResponse.filter(x => x.visible && !x.product_id);\n this.allProductFaqs = this.faqsResponse.filter(x => x.visible && x.product_id);\n const noProductObjects: boolean = this.faqsResponse.every(x => x.product === null);\n this.allFaqFalse = this.faqsResponse.every(x => x.visible === false);\n\n if (!noProductObjects) {\n this.products = products.result;\n this.faqValidation();\n } else {\n this.products = [];\n this.faqValidation();\n }\n this.cdr.markForCheck();\n });\n }\n\n private faqValidation() {\n this.faqs = groupFaqsByCategory(this.nonProductFaqs, this.allProductFaqs);\n this.sanitizedFaqAnswers = buildSanitizedAnswers(this.faqs, body =>\n this.sanitizeFaqAnswer(body)\n );\n }\n\n private getProducts() {\n this.subscriptions = [];\n this.userStore().subscribe((user: User) => {\n if (user) {\n this.subscriptions = user.subscriptions;\n }\n this.cdr.markForCheck();\n });\n }\n\n filter(searchValue: string) {\n this.searchSubject.next(searchValue);\n }\n\n navigateToSupport() {\n this.router.navigate(['/support']);\n }\n\n navigateToDocumentation() {\n sessionStorage.setItem('documentation_url', this.showDocumentation);\n const documentationRoute = this.router.createUrlTree([this.slug, 'documentation']);\n const url = window.location.origin + this.router.serializeUrl(documentationRoute);\n window.open(url, '_blank');\n }\n\n trackByProductFaqId(_index: number, item: { id: number }) {\n return item.id;\n }\n\n onCollapseToggle(key: string, answer: string): void {\n if (!this.sanitizedFaqAnswers[key] && answer) {\n this.sanitizedFaqAnswers[key] = this.sanitizeFaqAnswer(answer);\n }\n }\n\n sanitizeFaqAnswer(body: string) {\n return HelperService.sanitizeQuillBody(body, this.sanitizer);\n }\n\n override ngOnDestroy() {\n this.destroy$.next();\n this.destroy$.complete();\n super.ngOnDestroy();\n }\n}\n","<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","/// Editor-only status badges for the FAQ detail page.\n///\n/// `public`, `visible`, `category` and `feature_keys` are all on main-api's\n/// public whitelist (`FaqHelpers#faq_attributes_to_return`), so the badges cost\n/// no extra request — only naming the category does.\n///\n/// Each boolean badge is derived to render ONLY in its notable state: a\n/// \"Not public\" / \"Visible\" badge on every other FAQ would be noise on a page\n/// that shows exactly one. A hidden FAQ only reaches this page for a\n/// master-subscription admin at all (`filter_initial_faqs` drops\n/// `visible IS FALSE` for everyone else), which is precisely who it is for.\n\n/// One entry of main-api's `Faq::AVAILABLE_CATEGORIES`, as served verbatim by\n/// the public `faqs/available_categories` endpoint.\nexport interface FaqCategory {\n key: string;\n name: string;\n description?: string;\n}\n\nexport interface FaqStatusBadges {\n isPublic: boolean;\n isHidden: boolean;\n /// Raw category key — the palette lookup `appDynamicBadge` matches on.\n category: string;\n /// Human-readable category name, falling back to the raw key so the badge\n /// still says something useful when the lookup is skipped or fails.\n categoryLabel: string;\n /// Palette input for `appDynamicBadge` — the same key list the admin FAQ\n /// table feeds it, so a category lands on the same colour on both screens.\n categoryKeys: string[];\n /// Rendered as the category badge's tooltip, mirroring the admin table.\n featureKeys: string[];\n}\n\nexport const EMPTY_FAQ_STATUS_BADGES: FaqStatusBadges = {\n isPublic: false,\n isHidden: false,\n category: undefined,\n categoryLabel: '',\n categoryKeys: [],\n featureKeys: []\n};\n\nexport function buildStatusBadges(faq, categories: FaqCategory[] | null): FaqStatusBadges {\n if (!faq) {\n return { ...EMPTY_FAQ_STATUS_BADGES };\n }\n\n const resolved = categories ?? [];\n const category = faq.category;\n const named = resolved.find(entry => entry.key === category);\n\n return {\n isPublic: faq.public === true,\n isHidden: faq.visible === false,\n category,\n categoryLabel: named?.name || category || '',\n categoryKeys: resolved.map(entry => entry.key),\n featureKeys: Array.isArray(faq.feature_keys) ? faq.feature_keys : []\n };\n}\n","import {\n ChangeDetectorRef,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n inject,\n OnInit\n} from '@angular/core';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\nimport { RouterLink } from '@angular/router';\n\nimport { AppBaseComponent } from '@posiwise/app-base-component';\nimport { CommonService, PermissionService } from '@posiwise/common-services';\nimport { ADMIN_ROUTERS, FAQ } from '@posiwise/common-utilities';\nimport { DynamicBadgeDirective } from '@posiwise/directives';\nimport { NoDataComponent } from '@posiwise/shared-components';\n\nimport { Bind } from 'primeng/bind';\nimport { ProgressSpinner } from 'primeng/progressspinner';\nimport { Tooltip } from 'primeng/tooltip';\nimport { forkJoin, of } from 'rxjs';\nimport { catchError, finalize, map, switchMap, take } from 'rxjs/operators';\n\nimport { TranslocoPipe } from '@jsverse/transloco';\n\nimport { FAQ_ADMIN_PERMISSION } from '../faq/faq-admin-permission';\n\nimport { buildStatusBadges, EMPTY_FAQ_STATUS_BADGES, FaqStatusBadges } from './faq-status-badges';\n\n@Component({\n selector: 'pw-faq-details',\n templateUrl: './faq-details.component.html',\n styleUrls: ['./faq-details.component.scss'],\n imports: [\n Tooltip,\n RouterLink,\n DynamicBadgeDirective,\n NoDataComponent,\n Bind,\n ProgressSpinner,\n TranslocoPipe\n ],\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\n})\nexport class FaqDetailsComponent extends AppBaseComponent implements OnInit {\n private readonly commonService = inject(CommonService);\n private readonly sanitizer = inject(DomSanitizer);\n private readonly cdr = inject(ChangeDetectorRef);\n\n /// Route param for the FAQ: either its numeric id or its slug. The public\n /// endpoint resolves BOTH (`faq[:id] == params[:id].to_i || faq[:slug] == params[:id]`\n /// — main-api FaqHelpers#fetch_faq), so this must stay a raw string. Coercing it\n /// with Number() turned every slug URL into NaN, which is what made the Brain\n /// chat's published `/faq/{slug}` links dead.\n faqRef: string;\n\n faq: Omit<FAQ, 'answer'> & { answer: SafeHtml };\n\n isLoading = false;\n\n slug: string;\n\n readonly routers = ADMIN_ROUTERS;\n\n /// Whether to offer the inline link through to the admin edit form.\n canEditFaq = false;\n\n /// Numeric id for the admin edit route, or null when none can be resolved.\n editFaqId: number | null = null;\n\n /// Editor-only status badges — see `faq-status-badges.ts` for what each\n /// one means and why the booleans only render in their notable state.\n badges: FaqStatusBadges = { ...EMPTY_FAQ_STATUS_BADGES };\n\n /// Resolved before the request so the categories lookup can be issued in\n /// parallel rather than chained behind the FAQ (AI54: one loader, one wait).\n private hasFaqAdminPermission = false;\n\n constructor() {\n super();\n this.faqRef = this.route.snapshot.params['id'];\n this.slug = PermissionService.selectedSubscription?.slug;\n }\n\n ngOnInit() {\n this.hasFaqAdminPermission =\n this.permissionService.evaluatePermissions(FAQ_ADMIN_PERMISSION);\n this.getFaq();\n }\n\n /// True once there is at least one badge worth a row of its own.\n get showStatusBadges(): boolean {\n return (\n this.canEditFaq &&\n (this.badges.isPublic || this.badges.isHidden || !!this.badges.categoryLabel)\n );\n }\n\n getFaq() {\n this.isLoading = true;\n forkJoin({\n faq: this.commonService.getPublicFaqById(this.faqRef),\n categories: this.faqCategories$()\n })\n .pipe(\n finalize(() => {\n this.isLoading = false;\n this.cdr.markForCheck();\n })\n )\n .subscribe(({ faq: { result: faq }, categories }) => {\n this.faq = { ...faq, answer: this.sanitizeAnswer(faq) };\n\n // Only offer the edit affordance once a FAQ actually resolved —\n // a miss still leaves `faq` truthy (spreading null yields\n // `{answer: undefined}`), so key off the question itself.\n const loaded = !!faq?.question;\n this.canEditFaq = loaded && this.hasFaqAdminPermission;\n this.editFaqId = loaded ? this.resolveEditFaqId(faq) : null;\n this.badges = buildStatusBadges(loaded ? faq : null, categories);\n\n this.cdr.markForCheck();\n });\n }\n\n /// Category names are only ever rendered for an editor — skip the call\n /// entirely otherwise.\n ///\n /// Subscription resolution is [TEN2]-first: `getUserSubscriptionId()`\n /// matches the route slug against the user's OWN subscriptions, never\n /// trusting a raw route param. `PermissionService.selectedSubscription` is\n /// kept only as a FALLBACK, for the one case that helper cannot serve — a\n /// super admin viewing a subscription they are not a member of, where it\n /// resolves to nothing and the badge would degrade to a raw\n /// `master_admin`-style key for exactly the audience that needs the name.\n ///\n /// 🔴 That fallback is safe HERE AND ONLY HERE because this endpoint's\n /// payload is tenant-invariant: `available_categories` returns the frozen\n /// `Faq::AVAILABLE_CATEGORIES` constant and never reads `subscription_id`\n /// (main-api `app/api/v1/public/faqs.rb:27` -> `faq_helpers.rb:34`). The\n /// param exists only to satisfy Grape's required-params contract, so a\n /// stale id cannot surface another tenant's data. Do NOT copy this\n /// fallback onto a call that returns tenant-scoped data.\n ///\n /// `take(1)` is load-bearing: `getUserSubscriptionId()` wraps\n /// `route.parent.params`, which never completes, and `forkJoin` waits for\n /// EVERY source to complete — without it the page spins forever.\n ///\n /// A failure must never take the FAQ itself down with it, so it degrades to\n /// the raw category key rather than propagating.\n private faqCategories$() {\n if (!this.hasFaqAdminPermission) {\n return of(null);\n }\n\n return this.getUserSubscriptionId().pipe(\n take(1),\n map(id => id ?? PermissionService.selectedSubscription?.id),\n switchMap(id => (id ? this.commonService.getFaqCategories(id) : of(null))),\n map(response => response?.result ?? null),\n catchError(() => of(null))\n );\n }\n\n private sanitizeAnswer(faq) {\n if (!faq?.answer) {\n return undefined;\n }\n\n const doc = new DOMParser().parseFromString(faq.answer, 'text/html');\n\n // Remove all button elements\n doc.querySelectorAll('button').forEach(button => button.remove());\n\n // Return sanitized HTML\n // NOSONAR: Trusted HTML content is handled safely here\n return this.sanitizer.bypassSecurityTrustHtml(doc.body.innerHTML); // NOSONAR\n }\n\n /// The admin edit route resolves a NUMERIC id (`+params['id'] || 0` in\n /// `AddEditFaqComponent`), but this page is reachable by slug too and the\n /// public endpoint does not return the id at all — main-api's\n /// `FaqHelpers#faq_attributes_to_return` whitelists `slug`, not `id`. So\n /// prefer a payload id if one ever appears, then fall back to the route\n /// param only when it is already numeric. Returning null hides the link\n /// rather than opening the admin form in \"add a new FAQ\" mode.\n private resolveEditFaqId(faq: FAQ): number | null {\n const fromPayload = Number(faq?.id);\n if (Number.isInteger(fromPayload) && fromPayload > 0) {\n return fromPayload;\n }\n\n const fromRoute = Number(this.faqRef);\n return Number.isInteger(fromRoute) && fromRoute > 0 ? fromRoute : null;\n }\n}\n","@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","import {\n ChangeDetectorRef,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n inject,\n OnInit\n} from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\nimport { AppBaseComponent } from '@posiwise/app-base-component';\nimport { CommonService, PermissionService } from '@posiwise/common-services';\nimport { User } from '@posiwise/common-utilities';\n\nimport moment from 'moment';\nimport { Bind } from 'primeng/bind';\nimport { RadioButton } from 'primeng/radiobutton';\n\nimport { TranslocoPipe } from '@jsverse/transloco';\n\n@Component({\n selector: 'pw-user-feedback',\n templateUrl: './user-feedback.component.html',\n styleUrls: ['./user-feedback.component.scss'],\n imports: [FormsModule, Bind, RadioButton, TranslocoPipe],\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\n})\nexport class UserFeedbackComponent extends AppBaseComponent implements OnInit {\n private readonly commonService = inject(CommonService);\n private readonly cdr = inject(ChangeDetectorRef);\n\n rating = 3;\n\n selectedValue: number | null = null;\n\n questions = [];\n\n counter = Array;\n\n subscriptionId: number;\n\n user: User;\n\n showSection = true;\n\n ngOnInit(): void {\n this.subscriptionId = PermissionService.selectedSubscription?.id;\n this.getFeedbackQuestions();\n this.userService.getUserInfo().subscribe({\n next: user => {\n this.user = user;\n this.cdr.markForCheck();\n }\n });\n this.checkFeedBackExpiry();\n }\n\n checkFeedBackExpiry() {\n const item = localStorage.getItem('showFeedBack');\n if (item) {\n const currentDate = Date.now();\n const expiryDate = new Date(JSON.parse(item)).getTime();\n this.showSection = currentDate > expiryDate;\n }\n }\n\n closeSection() {\n this.showSection = false;\n const addedTime = moment(new Date()).add(7, 'days').toDate();\n localStorage.setItem('showFeedBack', JSON.stringify(addedTime));\n }\n\n private getFeedbackQuestions() {\n if (this.subscriptionId) {\n this.commonService.feedbackQuestions(this.subscriptionId).subscribe(({ result }) => {\n this.questions = result;\n this.cdr.markForCheck();\n });\n }\n }\n\n onSubmit(questionId: number, formValue) {\n if (formValue?.feedback) {\n const data = {\n subscription_id: this.subscriptionId,\n feedback_question_id: questionId,\n value: Number(formValue?.feedback),\n comment: formValue?.description\n };\n this.commonService.userFeedbacks(data).subscribe(() => {\n this.getFeedbackQuestions();\n this.cdr.markForCheck();\n });\n }\n }\n\n trackByQuestion(_index: number, item: { id: number }) {\n return item.id;\n }\n}\n","@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()\">×</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","import { InjectionToken, Type } from '@angular/core';\n\n/**\n * Product sections a host frontend adds to the top of the shared /home page (cloudolive-api#441),\n * e.g. CloudOlive's onboarding checklist. Optional: an app that provides nothing renders the page\n * unchanged.\n *\n * Holds component classes supplied in code by the host app, never server data, so rendering them\n * with ngComponentOutlet is safe. Each section owns its own data, gating and permissions (e.g.\n * Pages.Alpha), so dashboard-module stays product-agnostic.\n */\nexport const HOME_PRODUCT_SECTIONS = new InjectionToken<Type<unknown>[]>('HOME_PRODUCT_SECTIONS');\n","import { NgComponentOutlet } from '@angular/common';\nimport {\n ChangeDetectorRef,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n inject,\n OnDestroy,\n OnInit\n} from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\nimport { AppBaseComponent } from '@posiwise/app-base-component';\nimport { HopscotchService, PermissionService } from '@posiwise/common-services';\nimport { User } from '@posiwise/common-utilities';\nimport { LazyImgDirective } from '@posiwise/directives';\n\nimport { TranslocoPipe } from '@jsverse/transloco';\n\nimport { UserFeedbackComponent } from '../user-feedback/user-feedback.component';\n\nimport { HOME_PRODUCT_SECTIONS } from './home-product-sections.token';\n\n@Component({\n selector: 'pw-home',\n templateUrl: './home.component.html',\n styleUrls: ['./home.component.scss'],\n imports: [\n UserFeedbackComponent,\n NgComponentOutlet,\n LazyImgDirective,\n RouterLink,\n TranslocoPipe\n ],\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\n})\nexport class HomeComponent extends AppBaseComponent implements OnInit, OnDestroy {\n private readonly hopscotchService = inject(HopscotchService);\n private readonly cdr = inject(ChangeDetectorRef);\n readonly productSections? = inject(HOME_PRODUCT_SECTIONS, { optional: true });\n\n user: User;\n\n userSlug: string;\n\n componentActive = true;\n\n selectedSubscriptionSlug: string;\n subscriptionId: number;\n\n sanitizeContent(jsonString) {\n let sanitizedString = jsonString.replaceAll(\"'\", '\"');\n sanitizedString = sanitizedString.replace(\n /<img\\s+src=\"([^\"]+)\"/g,\n String.raw`<img src=\\\"$1\\\"`\n );\n sanitizedString = sanitizedString.replace(/,\\s*([}\\]])/g, '$1');\n\n return sanitizedString;\n }\n\n ngOnInit() {\n this.selectedSubscriptionSlug = PermissionService.selectedSubscription?.slug;\n this.subscriptionId = PermissionService.selectedSubscription?.id;\n this.userStore().subscribe(state => {\n if (state) {\n this.userService.getCurrentUserObject('active_tips').subscribe(({ result }) => {\n if (result?.length) {\n const welcomeTips = result.find(x => x.name === 'welcome');\n if (welcomeTips) {\n const steps = JSON.parse(\n this.sanitizeContent(welcomeTips.instructions)\n ).steps;\n try {\n this.hopscotchService.initializeTour(\n 'dashboard',\n steps,\n {\n tip_id: welcomeTips.id,\n disregarded: true\n },\n this.subscriptionId\n );\n } catch (error) {\n console.error('Error parsing JSON:', error);\n }\n }\n }\n this.cdr.markForCheck();\n });\n }\n this.cdr.markForCheck();\n });\n\n this.userStore().subscribe({\n next: user => {\n this.user = user;\n if (this.user) {\n this.userSlug = user.slug;\n }\n this.cdr.markForCheck();\n },\n error: error => {\n this.toast.showToast(error);\n this.cdr.markForCheck();\n }\n });\n }\n\n override ngOnDestroy() {\n this.hopscotchService.endTour();\n super.ngOnDestroy();\n }\n}\n","<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","import { ChangeDetectorRef } from '@angular/core';\n\nimport { Note } from '@posiwise/common-services';\n\nimport { Observable } from 'rxjs';\nimport { finalize } from 'rxjs/operators';\n\n/** A note as the notifications page lists it. */\nexport type PageNote = Note & { dismissed?: boolean; show_on_dashboard?: boolean };\n\nexport type RowActionName = 'dismiss' | 'delete' | 'restore';\n\n/** What a finished row action did, so the page can move its tab counts. */\nexport type NoteMoved = 'dismissed' | 'restored' | 'deleted';\n\nexport interface RowActionHost {\n busyId: number | null;\n busyAction: RowActionName | null;\n}\n\n/** The clicked action's icon spins and every action is disabled until the request settles, either way. */\nexport function rowAction<T>(\n host: RowActionHost,\n id: number,\n action: RowActionName,\n request: Observable<T>,\n cdr: ChangeDetectorRef\n): Observable<T> {\n host.busyId = id;\n host.busyAction = action;\n cdr.markForCheck();\n\n return request.pipe(\n finalize(() => {\n host.busyId = null;\n host.busyAction = null;\n cdr.markForCheck();\n })\n );\n}\n\n/** Fades the notes a read event covers: one note, or every note for \"mark all as read\". */\nexport function applyReadEvent(\n notes: { id: number; unread?: boolean | null }[],\n event: { id: number | 'all' }\n) {\n notes\n .filter(note => event.id === 'all' || note.id === event.id)\n .forEach(note => (note.unread = false));\n}\n","import { NgClass } from '@angular/common';\nimport {\n ChangeDetectorRef,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n DestroyRef,\n EventEmitter,\n inject,\n OnInit,\n Output\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\nimport { Note, NotificationService } from '@posiwise/common-services';\nimport { SinceAgoPipe } from '@posiwise/pipes';\nimport {\n NoDataComponent,\n NotificationOpenerService,\n RecordsSummaryComponent\n} from '@posiwise/shared-components';\n\nimport { Bind } from 'primeng/bind';\nimport { ProgressSpinner } from 'primeng/progressspinner';\n\nimport { TranslocoPipe } from '@jsverse/transloco';\n\nimport {\n applyReadEvent,\n NoteMoved,\n PageNote,\n rowAction,\n RowActionHost,\n RowActionName\n} from '../notification-row-action';\n\n@Component({\n selector: 'pw-current-notifications',\n templateUrl: './current-notifications.component.html',\n styleUrls: ['../notifications-page.component.scss'],\n imports: [\n Bind,\n ProgressSpinner,\n NgClass,\n RecordsSummaryComponent,\n NoDataComponent,\n TranslocoPipe,\n SinceAgoPipe\n ],\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\n})\nexport class CurrentNotificationsComponent implements OnInit, RowActionHost {\n private readonly notificationService = inject(NotificationService);\n private readonly opener = inject(NotificationOpenerService);\n private readonly cdr = inject(ChangeDetectorRef);\n\n @Output() readonly moved = new EventEmitter<NoteMoved>();\n\n notificationCount = 0;\n\n noNoti = true;\n\n busyId: number | null = null;\n\n busyAction: RowActionName | null = null;\n\n private readonly destroyRef = inject(DestroyRef);\n\n itemsPerPage = 100;\n\n notifications: PageNote[] = [];\n\n currentPage = 1;\n\n isLoaded = false;\n\n totalPages = 1;\n\n totalRecords = 0;\n\n ngOnInit() {\n this.getNotifications();\n this.notificationService.noteRead$\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(event => {\n applyReadEvent(this.notifications, event);\n this.cdr.markForCheck();\n });\n }\n\n private getNotifications() {\n this.notificationService\n .getCurrentNotifications({\n page: this.currentPage,\n page_size: this.itemsPerPage\n })\n .subscribe(data => {\n if (Array.isArray(data?.result) && data?.result?.length > 0) {\n this.totalRecords = data.page_info.total_count_unfiltered;\n this.notifications = data.result?.filter(\n note => !note.dismissed && note.show_on_dashboard\n );\n this.totalPages = Math.ceil(\n data.page_info.total_count_unfiltered / this.itemsPerPage\n );\n this.noNoti = true;\n if (this.notifications?.length) {\n this.noNoti = false;\n }\n }\n this.cdr.markForCheck();\n })\n .add(() => {\n this.isLoaded = true;\n this.cdr.markForCheck();\n });\n }\n\n nextPage() {\n if (this.currentPage < this.totalPages) {\n this.currentPage++;\n this.getNotifications();\n }\n }\n\n previousPage() {\n if (this.currentPage > 1) {\n this.currentPage--;\n this.getNotifications();\n }\n }\n\n dismiss(id: number, e) {\n if (this.busyId !== null) {\n return;\n }\n rowAction(\n this,\n id,\n 'dismiss',\n this.notificationService.dismissNotification(id),\n this.cdr\n ).subscribe(() => {\n this.notifications.splice(this.notifications.indexOf(e), 1);\n this.noNoti = this.notifications.length === 0;\n this.totalRecords = Math.max(0, this.totalRecords - 1);\n this.moved.emit('dismissed');\n });\n }\n\n open(note: Note) {\n this.opener.open(note);\n }\n\n trackByNotification(_index: number, item: { id: number }) {\n return item.id;\n }\n}\n","<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n @if (!isLoaded) {\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n }\n </div>\n @if (notifications?.length && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n >\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n @for (item of notifications; track trackByNotification($index, item)) {\n <li\n [class.noti-read]=\"!item.unread\"\n class=\"p-3 border-bottom border-bottom-blue-grey border-bottom-lighten-4 d-flex align-items-center\">\n <span class=\"btn btn-circle me-2\"\n [ngClass]=\"{\n 'btn-danger': item.note_type === 'administrative',\n 'btn-secondary': item.note_type === 'object_event',\n 'btn-primary': item.note_type === 'user_generated'\n }\">\n <i\n class=\"fal float-start\"\n [ngClass]=\"{\n 'fa-bell': item.note_type === 'administrative',\n 'fa-share-alt': item.note_type === 'object_event',\n 'fa-bells': item.note_type === 'user_generated'\n }\"\n aria-hidden=\"true\"\n ></i>\n </span>\n <button type=\"button\" class=\"d-inline-block noty-body\"\n (click)=\"open(item)\">\n <span class=\"noti-title line-height-1p5 d-block text-bold-400\">{{\n item.content\n }}</span>\n <span class=\"noti-text\"><span class=\"fal fa-clock\"></span>\n {{ item?.created_at | sinceAgo }}</span>\n </button>\n <span class=\"noti-buttons\">\n <button type=\"button\"\n class=\"btn float-end\"\n [disabled]=\"busyId !== null\"\n [attr.aria-label]=\"'Navbar.DismissNotifications' | transloco\"\n [attr.aria-busy]=\"busyId === item.id\"\n (click)=\"dismiss(item.id, item)\">\n @if (busyId === item.id) {\n <i class=\"fas fa-circle-notch fa-spin\" aria-hidden=\"true\"></i>\n } @else {\n <i class=\"far fa-trash-alt\" aria-hidden=\"true\"></i>\n }\n </button>\n </span>\n </li>\n }\n </ul>\n </div>\n <div class=\"pagination-container d-flex justify-content-between align-items-center mt-3 mb-3\">\n <pw-records-summary [showing]=\"totalRecords\" [total]=\"totalRecords\" />\n <div class=\"d-flex align-items-center\">\n <button class=\"btn btn-outline-primary me-2\" (click)=\"previousPage()\" [disabled]=\"currentPage === 1\">\n <i class=\"fas fa-chevron-left\"></i>\n </button>\n <span>{{ 'Dashboard.Notifications.PageOf' | transloco: { currentPage: currentPage, totalPages: totalPages } }}</span>\n <button class=\"btn btn-outline-primary ms-2\" (click)=\"nextPage()\" [disabled]=\"currentPage === totalPages\">\n <i class=\"fas fa-chevron-right\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>\n}\n\n@if (noNoti && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12\"\n >\n <pw-no-data [withImage]=\"true\" [message]=\"'Navbar.AllCaughtUp' | transloco\" [description]=\"'Navbar.NoNotifications' | transloco\">\n </pw-no-data>\n </div>\n}\n</div>\n","import { NgClass } from '@angular/common';\nimport {\n ChangeDetectorRef,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n DestroyRef,\n EventEmitter,\n inject,\n OnInit,\n Output\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\nimport { Note, NotificationService } from '@posiwise/common-services';\nimport { SinceAgoPipe } from '@posiwise/pipes';\nimport {\n ConfirmDialogService,\n NoDataComponent,\n NotificationOpenerService,\n RecordsSummaryComponent\n} from '@posiwise/shared-components';\n\nimport { Bind } from 'primeng/bind';\nimport { ProgressSpinner } from 'primeng/progressspinner';\nimport { Observable } from 'rxjs';\n\nimport { TranslocoPipe } from '@jsverse/transloco';\n\nimport {\n applyReadEvent,\n NoteMoved,\n PageNote,\n rowAction,\n RowActionHost,\n RowActionName\n} from '../notification-row-action';\n\n@Component({\n selector: 'pw-dismissed-notifications',\n templateUrl: './dismissed-notifications.component.html',\n styleUrls: ['../notifications-page.component.scss'],\n imports: [\n Bind,\n ProgressSpinner,\n NgClass,\n RecordsSummaryComponent,\n NoDataComponent,\n TranslocoPipe,\n SinceAgoPipe\n ],\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\n})\nexport class DismissedNotificationsComponent implements OnInit, RowActionHost {\n private readonly notificationService = inject(NotificationService);\n private readonly opener = inject(NotificationOpenerService);\n private readonly confirmDialog = inject(ConfirmDialogService);\n private readonly cdr = inject(ChangeDetectorRef);\n\n @Output() readonly moved = new EventEmitter<NoteMoved>();\n\n notificationCount = 0;\n\n noNoti = true;\n\n busyId: number | null = null;\n\n busyAction: RowActionName | null = null;\n\n private readonly destroyRef = inject(DestroyRef);\n\n dismissedNotifications: PageNote[] = [];\n\n isLoaded = false;\n\n itemsPerPage = 100;\n\n currentPage = 1;\n\n totalPages = 1;\n\n totalRecords = 0;\n\n ngOnInit() {\n this.getNotifications();\n this.notificationService.noteRead$\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(event => {\n applyReadEvent(this.dismissedNotifications, event);\n this.cdr.markForCheck();\n });\n }\n\n private getNotifications() {\n this.notificationService\n .getDismissedNotifications({\n page: this.currentPage,\n page_size: this.itemsPerPage\n })\n .subscribe(data => {\n if (Array.isArray(data?.result) && data?.result?.length > 0) {\n this.noNoti = false;\n this.dismissedNotifications = data?.result;\n this.totalRecords = data?.page_info.total_count_unfiltered;\n this.totalPages = Math.ceil(\n data.page_info.total_count_unfiltered / this.itemsPerPage\n );\n }\n this.cdr.markForCheck();\n })\n .add(() => {\n this.isLoaded = true;\n this.cdr.markForCheck();\n });\n }\n\n nextPage() {\n if (this.currentPage < this.totalPages) {\n this.currentPage++;\n this.getNotifications();\n }\n }\n\n previousPage() {\n if (this.currentPage > 1) {\n this.currentPage--;\n this.getNotifications();\n }\n }\n\n dismiss(id: number, e) {\n if (this.busyId !== null) {\n return;\n }\n this.confirmDialog.confirmDelete().then(ok => {\n if (ok) {\n this.removeAfter(\n id,\n e,\n 'delete',\n this.notificationService.deleteNotifications(id),\n 'deleted'\n );\n }\n });\n }\n\n restoreNotification(id: number, e) {\n if (this.busyId !== null) {\n return;\n }\n this.removeAfter(\n id,\n e,\n 'restore',\n this.notificationService.reinstateNotification(id),\n 'restored'\n );\n }\n\n private removeAfter(\n id: number,\n e,\n action: RowActionName,\n request: Observable<unknown>,\n outcome: NoteMoved\n ) {\n rowAction(this, id, action, request, this.cdr).subscribe(() => {\n this.dismissedNotifications.splice(this.dismissedNotifications.indexOf(e), 1);\n this.noNoti = this.dismissedNotifications.length === 0;\n this.totalRecords = Math.max(0, this.totalRecords - 1);\n this.moved.emit(outcome);\n });\n }\n\n open(note: Note) {\n this.opener.open(note);\n }\n\n trackByNotification(_index: number, item: { id: number }) {\n return item.id;\n }\n}\n","<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n @if (!isLoaded) {\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n }\n </div>\n @if (dismissedNotifications?.length && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n >\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n @for (item of dismissedNotifications; track trackByNotification($index, item)) {\n <li\n [class.noti-read]=\"!item.unread\"\n class=\"p-3 border-bottom border-bottom-blue-grey border-bottom-lighten-4 d-flex align-items-center\">\n <span class=\"btn btn-circle me-2\"\n [ngClass]=\"{\n 'btn-danger': item.note_type === 'administrative',\n 'btn-secondary': item.note_type === 'object_event',\n 'btn-primary': item.note_type === 'user_generated'\n }\">\n <i\n class=\"fal float-start\"\n [ngClass]=\"{\n 'fa-bell': item.note_type === 'administrative',\n 'fa-share-alt': item.note_type === 'object_event',\n 'fa-bells': item.note_type === 'user_generated'\n }\"\n aria-hidden=\"true\"\n ></i>\n </span>\n <button type=\"button\" class=\"d-inline-block noty-body\"\n (click)=\"open(item)\">\n <span class=\"noti-title line-height-1p5 d-block text-bold-400\">{{\n item.content\n }}</span>\n <span class=\"noti-text\"><span class=\"fal fa-clock\"></span>\n {{ item?.created_at | sinceAgo }}</span>\n </button>\n <span class=\"noti-buttons\">\n <button type=\"button\"\n class=\"btn float-end\"\n [disabled]=\"busyId !== null\"\n [attr.aria-label]=\"'Button.Delete' | transloco\"\n [attr.aria-busy]=\"busyId === item.id && busyAction === 'delete'\"\n (click)=\"dismiss(item.id, item)\">\n @if (busyId === item.id && busyAction === 'delete') {\n <i class=\"fas fa-circle-notch fa-spin\" aria-hidden=\"true\"></i>\n } @else {\n <i class=\"far fa-trash-alt\" aria-hidden=\"true\"></i>\n }\n </button>\n <button type=\"button\"\n class=\"btn float-end\"\n [disabled]=\"busyId !== null\"\n [attr.aria-label]=\"'Dashboard.Notifications.Restore' | transloco\"\n [attr.aria-busy]=\"busyId === item.id && busyAction === 'restore'\"\n (click)=\"restoreNotification(item.id, item)\">\n @if (busyId === item.id && busyAction === 'restore') {\n <i class=\"fas fa-circle-notch fa-spin\" aria-hidden=\"true\"></i>\n } @else {\n <i class=\"fas fa-trash-restore-alt\" aria-hidden=\"true\"></i>\n }\n </button>\n </span>\n </li>\n }\n </ul>\n </div>\n <div class=\"pagination-container d-flex justify-content-between align-items-center mt-3 mb-3\">\n <pw-records-summary [showing]=\"totalRecords\" [total]=\"totalRecords\" />\n <div class=\"d-flex align-items-center\">\n <button class=\"btn btn-outline-primary me-2\" (click)=\"previousPage()\" [disabled]=\"currentPage === 1\">\n <i class=\"fas fa-chevron-left\"></i>\n </button>\n <span>{{ 'Dashboard.Notifications.PageOf' | transloco: { currentPage: currentPage, totalPages: totalPages } }}</span>\n <button class=\"btn btn-outline-primary ms-2\" (click)=\"nextPage()\" [disabled]=\"currentPage === totalPages\">\n <i class=\"fas fa-chevron-right\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>\n}\n\n@if (noNoti && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12\"\n >\n <pw-no-data [withImage]=\"true\" [message]=\"'Dashboard.Notifications.NoDismissed' | transloco\">\n </pw-no-data>\n </div>\n}\n</div>\n","import {\n ChangeDetectorRef,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n inject,\n OnInit\n} from '@angular/core';\n\nimport { NotificationCounts, NotificationService } from '@posiwise/common-services';\n\nimport { TranslocoPipe } from '@jsverse/transloco';\nimport {\n NgbNav,\n NgbNavContent,\n NgbNavItem,\n NgbNavItemRole,\n NgbNavLink,\n NgbNavLinkBase,\n NgbNavOutlet\n} from '@ng-bootstrap/ng-bootstrap';\n\nimport { CurrentNotificationsComponent } from './current-notifications/current-notifications.component';\nimport { DismissedNotificationsComponent } from './dismissed-notifications/dismissed-notifications.component';\nimport { NoteMoved } from './notification-row-action';\n\n@Component({\n selector: 'pw-notifications-page',\n templateUrl: './notifications-page.component.html',\n styleUrls: ['./notifications-page.component.scss'],\n imports: [\n NgbNav,\n NgbNavItem,\n NgbNavItemRole,\n NgbNavLink,\n NgbNavLinkBase,\n NgbNavContent,\n CurrentNotificationsComponent,\n DismissedNotificationsComponent,\n NgbNavOutlet,\n TranslocoPipe\n ],\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\n})\nexport class NotificationsPageComponent implements OnInit {\n private readonly notificationService = inject(NotificationService);\n private readonly cdr = inject(ChangeDetectorRef);\n\n counts: NotificationCounts | null = null;\n\n ngOnInit() {\n this.notificationService.getNotificationCounts().subscribe(counts => {\n this.counts = counts;\n this.cdr.markForCheck();\n });\n }\n\n onMoved(moved: NoteMoved) {\n if (!this.counts) {\n return;\n }\n const step = { dismissed: [-1, 1], restored: [1, -1], deleted: [0, -1] }[moved];\n this.counts = {\n current: Math.max(0, this.counts.current + step[0]),\n dismissed: Math.max(0, this.counts.dismissed + step[1])\n };\n this.cdr.markForCheck();\n }\n}\n","<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","import { UpperCasePipe } from '@angular/common';\nimport {\n ChangeDetectorRef,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n inject,\n OnInit\n} from '@angular/core';\nimport { ActivatedRoute, RouterLink } from '@angular/router';\n\nimport { DashboardService, GlobalSearchResult, PermissionService } from '@posiwise/common-services';\nimport { LazyImgDirective } from '@posiwise/directives';\nimport { HelperService } from '@posiwise/helper-service';\nimport { DOMSanitizerPipe } from '@posiwise/pipes';\nimport { NoDataComponent } from '@posiwise/shared-components';\n\nimport { Bind } from 'primeng/bind';\nimport { ProgressSpinner } from 'primeng/progressspinner';\n\nimport { TranslocoPipe } from '@jsverse/transloco';\n\n@Component({\n selector: 'pw-search',\n templateUrl: './search.component.html',\n styleUrls: ['./search.component.scss'],\n imports: [\n Bind,\n ProgressSpinner,\n LazyImgDirective,\n RouterLink,\n NoDataComponent,\n UpperCasePipe,\n TranslocoPipe,\n DOMSanitizerPipe\n ],\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\n})\nexport class SearchComponent implements OnInit {\n private readonly route = inject(ActivatedRoute);\n private readonly service = inject(DashboardService);\n private readonly cdr = inject(ChangeDetectorRef);\n\n private readonly emptySearchResult: GlobalSearchResult = {\n users: [],\n faqs: [],\n recipients: []\n };\n\n keyword: string;\n\n result: GlobalSearchResult;\n\n isLoaded = false;\n\n objectKeys = Object.keys;\n\n subscriptionId: number;\n\n ngOnInit() {\n this.subscriptionId = PermissionService.selectedSubscription.id;\n this.route.queryParams.subscribe(response => {\n this.keyword = response['keyword'];\n if (this.keyword) {\n this.search();\n }\n this.cdr.markForCheck();\n });\n }\n\n search() {\n this.isLoaded = false;\n this.service\n .search(this.keyword, this.subscriptionId)\n .subscribe(({ result }) => {\n this.result = {\n ...this.emptySearchResult,\n ...result\n };\n this.cdr.markForCheck();\n })\n .add(() => {\n this.isLoaded = true;\n this.cdr.markForCheck();\n });\n }\n\n get hasResults() {\n return this.searchGroups.some(group => group.length > 0);\n }\n\n private get searchGroups() {\n return ['users', 'faqs', 'recipients'].map(group => this.getResultGroup(group));\n }\n\n getResultGroup(group: keyof GlobalSearchResult | string) {\n if (!this.isSearchGroupKey(group)) {\n return [];\n }\n\n const resultGroup = this.result?.[group];\n if (!Array.isArray(resultGroup)) {\n return [];\n }\n\n return resultGroup.filter(item => this.isRenderableResult(item));\n }\n\n private isSearchGroupKey(group: string): group is keyof GlobalSearchResult {\n return group === 'users' || group === 'faqs' || group === 'recipients';\n }\n\n private isRenderableResult(item: unknown) {\n if (item == null) {\n return false;\n }\n\n if (typeof item !== 'object') {\n return true;\n }\n\n return Object.values(item).some(value => {\n if (Array.isArray(value)) {\n return value.length > 0;\n }\n\n return value !== null && value !== undefined && value !== '';\n });\n }\n\n handleImageError(event: Event, fallbackPath): void {\n HelperService.handleImageFallbackPath(event, fallbackPath);\n }\n\n trackByUserId(_index: number, item: { id: number }) {\n return item.id;\n }\n\n trackByFaqId(_index: number, item: { id: number }) {\n return item.id;\n }\n\n trackBySkill(_index: number, item: { id: number }) {\n return item.id;\n }\n}\n","<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","import { CommonModule } from '@angular/common';\nimport { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { RouterModule } from '@angular/router';\n\nimport { CoreTranslocoModule } from '@posiwise/core-transloco';\nimport { DirectivesModule } from '@posiwise/directives';\nimport { PipesModule } from '@posiwise/pipes';\nimport { ResourceSharedComponentsModule } from '@posiwise/shared-components';\n\nimport { ProgressSpinnerModule } from 'primeng/progressspinner';\nimport { RadioButtonModule } from 'primeng/radiobutton';\nimport { TooltipModule } from 'primeng/tooltip';\n\nimport { NgbNavModule } from '@ng-bootstrap/ng-bootstrap';\n\nimport { DocumentationComponent } from './documentation-view/documentation-view.component';\nimport { FaqComponent } from './faq/faq.component';\nimport { FaqDetailsComponent } from './faq-details/faq-details.component';\nimport { HomeComponent } from './home/home.component';\nimport { CurrentNotificationsComponent } from './notifications-page/current-notifications/current-notifications.component';\nimport { DismissedNotificationsComponent } from './notifications-page/dismissed-notifications/dismissed-notifications.component';\nimport { NotificationsPageComponent } from './notifications-page/notifications-page.component';\nimport { SearchComponent } from './search/search.component';\nimport { UserFeedbackComponent } from './user-feedback/user-feedback.component';\n\n// Note: CurrentNotificationsComponent and DismissedNotificationsComponent\n// are declared in DashboardLibModule and exported from there\n// They are needed by NotificationsPageComponent but kept in the main dashboard module\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n RouterModule,\n CoreTranslocoModule,\n DirectivesModule,\n PipesModule,\n ProgressSpinnerModule,\n NgbNavModule,\n RadioButtonModule,\n TooltipModule,\n ResourceSharedComponentsModule,\n DocumentationComponent,\n FaqComponent,\n FaqDetailsComponent,\n HomeComponent,\n NotificationsPageComponent,\n CurrentNotificationsComponent,\n NotificationsPageComponent,\n DismissedNotificationsComponent,\n SearchComponent,\n UserFeedbackComponent\n ],\n exports: [\n DocumentationComponent,\n FaqComponent,\n FaqDetailsComponent,\n HomeComponent,\n NotificationsPageComponent,\n CurrentNotificationsComponent,\n NotificationsPageComponent,\n DismissedNotificationsComponent,\n SearchComponent,\n RadioButtonModule\n ],\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\n})\nexport class DashboardContentModule {}\n","// Core Angular modules\nimport { CommonModule } from '@angular/common';\nimport { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\n\nimport { SubscriptionService } from '@posiwise/common-services';\nimport { CoreTranslocoModule } from '@posiwise/core-transloco';\nimport { DirectivesModule } from '@posiwise/directives';\nimport { PipesModule } from '@posiwise/pipes';\nimport { UserModuleModule } from '@posiwise/user-module';\n\nimport { ProgressSpinnerModule } from 'primeng/progressspinner';\nimport { RadioButtonModule } from 'primeng/radiobutton';\nimport { SelectModule } from 'primeng/select';\n\nimport { NgbDropdownModule, NgbNavModule } from '@ng-bootstrap/ng-bootstrap';\n\nimport { DashboardContentModule } from './dashboard-content.module';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n PipesModule,\n SelectModule,\n DirectivesModule,\n ReactiveFormsModule,\n CoreTranslocoModule,\n NgbNavModule,\n NgbDropdownModule,\n UserModuleModule,\n RadioButtonModule,\n ProgressSpinnerModule,\n DashboardContentModule\n ],\n declarations: [],\n\n providers: [SubscriptionService],\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\n})\nexport class DashboardLibModule {}\n","import { RouteInfo } from './sidebar.metadata';\n\n/**\n * Drops menu items gated behind a feature flag the current user isn't entitled\n * to. An item with no `featureFlag` always passes; one with a `featureFlag`\n * passes only when `isEnabled(item.featureFlag)` returns true. Non-destructive\n * — returns a new array and never mutates the input.\n *\n * Shared so every frontend's sidebar gates flag-protected menus identically\n * (e.g. alpha-only pages) instead of copy-pasting the predicate.\n *\n * @param menus - the menu items to filter (one level; pass the specific list to gate)\n * @param isEnabled - predicate resolving a flag key to enabled/disabled for the user\n */\nexport const filterMenusByFeatureFlag = (\n menus: RouteInfo[],\n isEnabled: (flagKey: string) => boolean\n): RouteInfo[] => (menus ?? []).filter(menu => !menu.featureFlag || isEnabled(menu.featureFlag));\n\n/**\n * Helper function to create menu items with default values\n * @param overrides - Partial RouteInfo object with overrides\n * @returns RouteInfo object with defaults applied\n */\nexport const createMenuItem = (overrides: Partial<RouteInfo>): RouteInfo => ({\n permission: '',\n path: '',\n title: '',\n icon: '',\n class: '',\n badge: '',\n badgeClass: '',\n isExternalLink: false,\n submenu: [],\n visible: true,\n order: 0,\n ...overrides\n});\n\n/**\n * Helper function to create submenu items with default values\n * @param overrides - Partial RouteInfo object with overrides\n * @returns RouteInfo object with defaults applied\n */\nexport const createSubMenuItem = (overrides: Partial<RouteInfo>): RouteInfo => ({\n permission: '',\n path: '',\n title: '',\n icon: '',\n class: '',\n badge: '',\n badgeClass: '',\n isExternalLink: false,\n submenu: [],\n visible: true,\n ...overrides\n});\n\n/**\n * Common menu items that can be reused across modules\n */\nexport const COMMON_MENUS = {\n FAQ_Menu: createMenuItem({\n permission: 'Pages.Product.{permission_key}.{feature_key}.FAQ',\n path: '/faq',\n title: 'FAQ',\n titleKey: 'Menu.Faq',\n icon: 'ft-info',\n order: 999\n }),\n\n ENTERPRISE_MENU: createMenuItem({\n permission: 'Pages.Product.{permission_key}.{feature_key}.Enterprise',\n path: '/enterprise',\n title: 'Enterprise',\n titleKey: 'Menu.Enterprise',\n icon: 'ft-package',\n class: 'has-sub',\n badgeClass: 'badge rounded-pill bg-danger float-end mt-1',\n order: 5,\n submenu: [\n createSubMenuItem({\n path: ':slug/enterprise/members',\n title: 'Members',\n titleKey: 'Menu.Enterprise.Members',\n icon: 'far fa-users'\n }),\n createSubMenuItem({\n permission: 'Pages.Alpha',\n path: ':slug/enterprise/partners',\n title: 'Partners',\n titleKey: 'Menu.Enterprise.Partners',\n icon: 'far fa-users'\n }),\n createSubMenuItem({\n permission: 'Pages.Beta',\n path: ':slug/enterprise/groups',\n title: 'Teams',\n titleKey: 'Menu.Enterprise.Teams',\n icon: 'far fa-users-class'\n }),\n createSubMenuItem({\n permission: 'Pages.Beta',\n path: ':slug/enterprise/communications',\n title: 'Communications',\n titleKey: 'Menu.Enterprise.Communications',\n icon: 'fas fa-comments'\n }),\n createSubMenuItem({\n permission: 'Pages.Beta',\n path: ':slug/enterprise/wiki',\n title: 'Documentation',\n titleKey: 'Menu.Enterprise.Documentation',\n icon: 'fab fa-wikipedia-w'\n }),\n createSubMenuItem({\n // Admins (or super admins) with the ai_assistant flag. \"Use subscription\n // data\" is enforced by the page and by brain-api. Spaces around the\n // parentheses are required: the expression parser splits on spaces.\n permission: 'flag:ai_assistant && ( SuperAdmin || SubscriptionAdmin )',\n path: ':slug/enterprise/ai-knowledge',\n title: 'AI Knowledge',\n titleKey: 'Menu.Enterprise.AiKnowledge',\n icon: 'fa fa-brain'\n }),\n createSubMenuItem({\n permission: 'Pages.Beta',\n path: ':slug/enterprise/insights',\n title: 'Insights',\n titleKey: 'Menu.Enterprise.Insights',\n icon: 'far fa-tag'\n })\n ]\n }),\n\n CHAT_MENU: createMenuItem({\n permission: 'Pages.Product.{permission_key}.{feature_key}.Chat',\n path: '/message',\n title: 'Chat',\n titleKey: 'Menu.Chat',\n icon: 'ft-message-square',\n badgeClass: 'badge rounded-pill bg-danger float-end mt-1',\n order: 2\n }),\n\n BLOG_MENU: createMenuItem({\n permission:\n 'Pages.Product.{permission_key}.{feature_key}.Blog || Pages.Role.MarketingManager || Pages.Role.CustomerSuccessManager',\n path: '/posts/list',\n title: 'Blog',\n titleKey: 'Menu.Blog',\n icon: 'far fa-blog'\n })\n};\n","import { RouteInfo } from './sidebar.metadata';\nimport { COMMON_MENUS, createMenuItem, createSubMenuItem } from './sidebar-route-utils';\n\n// Centralized admin permissions\nconst ADMIN_PERMISSIONS = {\n GENERIC: 'Pages.Admin',\n DOMAIN_CONFIG: 'Pages.Admin.DomainConfig || Pages.Role.MarketingManager',\n USERS: 'Pages.Admin.Users',\n SUBSCRIPTION: 'Pages.Admin.Subscription',\n PRODUCT: 'Pages.Admin.Product',\n LOGIN_NOTIFICATION:\n 'Pages.Admin.LoginNotification || Pages.Role.MarketingManager || Pages.Role.CustomerSuccessManager',\n NEWSLETTER:\n 'Pages.Admin.Newsletter || Pages.Role.MarketingManager || Pages.Role.CustomerSuccessManager',\n MAILER: 'Pages.Admin.Mailer',\n BLOG: 'Pages.Admin.Blog || Pages.Role.MarketingManager || Pages.Role.CustomerSuccessManager',\n FEATURE_FLAGS: 'Pages.Admin.FeatureFlags',\n FAQ: 'Pages.Admin.FAQ || Pages.Role.MarketingManager || Pages.Role.CustomerSuccessManager',\n INCIDENT: 'Pages.Admin.Incident',\n CONTACT_US: 'Pages.Admin.ContactUs',\n TIPS: 'Pages.Admin.Tips',\n TAGS: 'Pages.Admin.Tags',\n ROLES: 'Pages.Admin.Roles',\n TOS: 'Pages.Admin.Tos',\n CREDENTIAL: 'Pages.Admin.Credential',\n OAUTH_CLIENTS: 'Pages.Admin.Oauth',\n AMBASSADOR_PAYOUTS: 'Pages.Admin.AmbassadorPayouts',\n TRACKING: 'Pages.Admin.Tracking',\n GLOBAL_CONFIG: 'Pages.Admin.Global-Config'\n} as const;\n\n// Centralized admin paths\nconst ADMIN_PATHS = {\n GENERIC: '/admin/generic',\n DOMAIN_CONFIG: '/admin/domain-config/list',\n USERS: '/admin/users',\n SUBSCRIPTION: '/admin/subscriptions',\n PRODUCT: '/admin/products',\n LOGIN_NOTIFICATION: '/admin/login-notifications/list',\n NEWSLETTER: '/admin/newsletter',\n MAILER: '/admin/mailers',\n BLOG: '/admin/resources',\n FEATURE_FLAGS: '/admin/feature-flags/list',\n FAQ: '/admin/faq/list',\n INCIDENT: '/admin/incident/list',\n CONTACT_US: '/admin/contact-us/list',\n TIPS: '/admin/tips/list',\n TAGS: '/admin/tags',\n ROLES: '/admin/permissions',\n // Section root (redirects to /list) so routerLinkActive also matches the\n // /admin/tos/:id edit route — keeps the menu item highlighted when deep-linked.\n TOS: '/admin/tos',\n CREDENTIAL: '/admin/credentials',\n OAUTH_CLIENTS: '/admin/oauth-clients',\n // Section root (redirects to /list), so routerLinkActive also matches the\n // /admin/ambassador-payouts/:id detail route — keeps the menu item\n // highlighted when a payout is opened or deep-linked. Same reason as TOS.\n AMBASSADOR_PAYOUTS: '/admin/ambassador-payouts',\n TRACKING: '/admin/tracking',\n GLOBAL_CONFIG: '/admin/global-config'\n} as const;\n\n// Centralized admin menu data\nconst ADMIN_MENU_DATA = [\n { key: 'GENERIC', title: 'Generic', titleKey: 'Menu.Admin.Generic', icon: 'far fa-book' },\n { key: 'DOMAIN_CONFIG', title: 'Domains', titleKey: 'Menu.Admin.Domains', icon: 'fa fa-fw fa-cog' },\n { key: 'USERS', title: 'Users', titleKey: 'Menu.Admin.Users', icon: 'far fa-user-cog' },\n { key: 'SUBSCRIPTION', title: 'Subscriptions', titleKey: 'Menu.Admin.Subscriptions', icon: 'ft-box' },\n { key: 'PRODUCT', title: 'Products', titleKey: 'Menu.Admin.Products', icon: 'far fa-parking' },\n { key: 'LOGIN_NOTIFICATION', title: 'Notifications', titleKey: 'Menu.Admin.Notifications', icon: 'fa fa-fw fa-bell' },\n { key: 'NEWSLETTER', title: 'Newsletters', titleKey: 'Menu.Admin.Newsletters', icon: 'far fa-newspaper' },\n { key: 'MAILER', title: 'Mailers', titleKey: 'Menu.Admin.Mailers', icon: 'far fa-envelope' },\n { key: 'BLOG', title: 'Resources', titleKey: 'Resource.Posts.Title', icon: 'far fa-blog' },\n { key: 'FEATURE_FLAGS', title: 'Feature Flags', titleKey: 'Menu.Admin.FeatureFlags', icon: 'fa fa-fw fa-toggle-on' },\n { key: 'FAQ', title: 'FAQs', titleKey: 'Menu.Admin.Faqs', icon: 'fa fa-question' },\n { key: 'INCIDENT', title: 'Incidents', titleKey: 'Menu.Admin.Incidents', icon: 'fa fa-solid fa-triangle-exclamation' },\n { key: 'CONTACT_US', title: 'Contact Us', titleKey: 'Menu.Admin.ContactUs', icon: 'fa fa-address-book' },\n { key: 'TIPS', title: 'Tours', titleKey: 'Menu.Admin.Tours', icon: 'far fa-lightbulb' },\n { key: 'TAGS', title: 'Tags', titleKey: 'Menu.Admin.Tags', icon: 'far fa-tags' },\n { key: 'ROLES', title: 'Permissions', titleKey: 'Label.Permissions', icon: 'fas fa-key' },\n { key: 'TOS', title: 'Privacy & TOS', titleKey: 'Menu.Admin.PrivacyTos', icon: 'fas fa-sticky-note' },\n { key: 'CREDENTIAL', title: 'Credentials', titleKey: 'Menu.Admin.Credentials', icon: 'fas fa-file-signature' },\n { key: 'OAUTH_CLIENTS', title: 'MCP OAuth Clients', titleKey: 'Admin.OauthClients.Title', icon: 'fas fa-robot' },\n // fa-handshake is already the ambassador icon in the users list.\n { key: 'AMBASSADOR_PAYOUTS', title: 'Ambassador Payouts', titleKey: 'Admin.AmbassadorPayouts.Title', icon: 'fa fa-handshake' },\n { key: 'TRACKING', title: 'Tracking', titleKey: 'Menu.Admin.Tracking', icon: 'fa fa-map-marker' },\n { key: 'GLOBAL_CONFIG', title: 'Global Configs', titleKey: 'Menu.Admin.GlobalConfigs', icon: 'fa fa-fw fa-cog' }\n] as const;\n\n// Helper function to create admin submenu items\nconst createAdminSubMenuItem = (menuKey: keyof typeof ADMIN_PERMISSIONS): RouteInfo =>\n createSubMenuItem({\n permission: ADMIN_PERMISSIONS[menuKey],\n path: ADMIN_PATHS[menuKey],\n title: ADMIN_MENU_DATA.find(item => item.key === menuKey)?.title || '',\n titleKey: ADMIN_MENU_DATA.find(item => item.key === menuKey)?.titleKey,\n icon: ADMIN_MENU_DATA.find(item => item.key === menuKey)?.icon || ''\n });\n\n// Generate admin submenu from centralized data\nconst generateAdminSubmenu = (): RouteInfo[] =>\n ADMIN_MENU_DATA.map(item => createAdminSubMenuItem(item.key));\n\n// Sidebar menu Routes and data\nexport const ROUTES: RouteInfo[] = [\n createMenuItem({\n permission: 'Pages.Dashboard',\n path: '/home',\n title: 'Home',\n titleKey: 'Button.Home',\n icon: 'ft-home',\n order: 1\n }),\n createMenuItem({\n permission: 'Pages.Admin',\n path: null,\n title: 'Admin',\n titleKey: 'Menu.Admin',\n icon: 'ft-user',\n class: 'has-sub',\n order: 3,\n submenu: generateAdminSubmenu()\n })\n];\n\n// Export common menus from shared utilities\nexport const { FAQ_Menu, ENTERPRISE_MENU, CHAT_MENU, BLOG_MENU } = COMMON_MENUS;\n","import { NavigationEnd } from '@angular/router';\n\nimport { filter, Observable, Subscription } from 'rxjs';\n\n/**\n * Opens every `has-sub` group around the active sidebar item and scrolls the sidebar\n * until the item is visible. app-sidebar.js opens the group too, but only once jQuery\n * is in, which on a direct load can be 10+ seconds away, and nothing scrolled: a long\n * menu (super admin) left the active item below the fold. Additive only — it never\n * collapses, so it cannot fight jQuery's toggle.\n *\n * Shared so every frontend's sidebar behaves the same on a cold load\n * (posiwise-frontend#4205).\n */\nexport function openActiveGroup(doc: Document): void {\n if (doc.querySelector('.wrapper')?.classList.contains('nav-collapsed')) {\n return;\n }\n\n const active = doc.querySelector('.sidebar-content .navigation li.active');\n let parent = active?.parentElement?.closest('li.has-sub');\n while (parent) {\n parent.classList.add('open');\n parent = parent.parentElement?.closest('li.has-sub');\n }\n revealInSidebar(doc.querySelector('.sidebar-content'), active);\n}\n\n/**\n * Scrolls the sidebar, never the page, to centre an item that is not fully visible.\n * Centring keeps it clear of the edges, where a pinned footer can cover it.\n */\nfunction revealInSidebar(sidebar: Element | null, item: Element | null): void {\n if (!sidebar || !item) {\n return;\n }\n const box = sidebar.getBoundingClientRect();\n const rect = item.getBoundingClientRect();\n if (rect.top >= box.top && rect.bottom <= box.bottom) {\n return;\n }\n const offset = rect.top + rect.height / 2 - (box.top + box.height / 2);\n sidebar.scrollTop = Math.max(0, Math.round(sidebar.scrollTop + offset));\n}\n\n/**\n * Re-opens the active item's group after every navigation, once the new\n * `routerLinkActive` classes have rendered.\n */\nexport function watchActiveGroup(doc: Document, routerEvents$: Observable<unknown>): Subscription {\n return routerEvents$\n .pipe(filter(event => event instanceof NavigationEnd))\n .subscribe(() => setTimeout(() => openActiveGroup(doc)));\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,IAAa,yBAAb,MAAa,uBAAsB;CAPnC,cAAA;EAQqB,KAAA,YAAY,OAAO,YAAY;EAGhD,KAAA,WAAW;CAsBd;CApBG,WAAQ;EAGJ,MAAM,SADoB,eAAe,QAAQ,mBAClC;EAEf,IAAI,QAEA,KAAK,YAAY,KAAK,UAAU,+BAA+B,MAAM;OAGrE,KAAK,WAAW;CAExB;CAEA,eAAY;E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AAC,CACrD,gBAAgB,iBAAiB,gBAAgB,GAAG,CAAC,CAAC;AAC/D"}
|
|
1
|
+
{"version":3,"file":"posiwise-dashboard-module.mjs","names":[],"sources":["../../../../libs/dashboard-module/src/lib/documentation-view/documentation-view.component.ts","../../../../libs/dashboard-module/src/lib/documentation-view/documentation-view.component.html","../../../../libs/dashboard-module/src/lib/faq/faq-admin-permission.ts","../../../../libs/dashboard-module/src/lib/faq/faq-grouping.ts","../../../../libs/dashboard-module/src/lib/faq/faq.component.ts","../../../../libs/dashboard-module/src/lib/faq/faq.component.html","../../../../libs/dashboard-module/src/lib/faq-details/faq-status-badges.ts","../../../../libs/dashboard-module/src/lib/faq-details/faq-details.component.ts","../../../../libs/dashboard-module/src/lib/faq-details/faq-details.component.html","../../../../libs/dashboard-module/src/lib/user-feedback/user-feedback.component.ts","../../../../libs/dashboard-module/src/lib/user-feedback/user-feedback.component.html","../../../../libs/dashboard-module/src/lib/home/home-product-sections.token.ts","../../../../libs/dashboard-module/src/lib/home/home.component.ts","../../../../libs/dashboard-module/src/lib/home/home.component.html","../../../../libs/dashboard-module/src/lib/notifications-page/notification-row-action.ts","../../../../libs/dashboard-module/src/lib/notifications-page/current-notifications/current-notifications.component.ts","../../../../libs/dashboard-module/src/lib/notifications-page/current-notifications/current-notifications.component.html","../../../../libs/dashboard-module/src/lib/notifications-page/dismissed-notifications/dismissed-notifications.component.ts","../../../../libs/dashboard-module/src/lib/notifications-page/dismissed-notifications/dismissed-notifications.component.html","../../../../libs/dashboard-module/src/lib/notifications-page/notifications-page.component.ts","../../../../libs/dashboard-module/src/lib/notifications-page/notifications-page.component.html","../../../../libs/dashboard-module/src/lib/search/search.component.ts","../../../../libs/dashboard-module/src/lib/search/search.component.html","../../../../libs/dashboard-module/src/lib/dashboard-content.module.ts","../../../../libs/dashboard-module/src/lib/dashboard.module.ts","../../../../libs/dashboard-module/src/lib/sidebar/sidebar-route-utils.ts","../../../../libs/dashboard-module/src/lib/sidebar/sidebar-routes.config.ts","../../../../libs/dashboard-module/src/lib/sidebar/sidebar-active-group.ts"],"sourcesContent":["import { Location } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, CUSTOM_ELEMENTS_SCHEMA, inject } from '@angular/core';\nimport { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';\n\nimport { AppLoaderComponent } from '@posiwise/app-loader';\nimport { PermissionService } from '@posiwise/common-services';\nimport { NoDataComponent } from '@posiwise/shared-components';\n\nimport { TranslocoPipe } from '@jsverse/transloco';\n\n// Only https may reach the iframe: a javascript: or data: url would run in the page\nfunction isHttpsUrl(value: string): boolean {\n try {\n return new URL(value).protocol === 'https:';\n } catch {\n return false;\n }\n}\n\n@Component({\n selector: 'pw-documentation',\n templateUrl: './documentation-view.component.html',\n styleUrls: ['./documentation-view.component.scss'],\n imports: [AppLoaderComponent, NoDataComponent, TranslocoPipe],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n // Eager: the selected product is a static set by the sidebar, not a signal\n changeDetection: ChangeDetectionStrategy.Eager\n})\nexport class DocumentationComponent {\n private readonly sanitizer = inject(DomSanitizer);\n private readonly location = inject(Location);\n\n private sanitizedFor: string | null = null;\n private sanitizedUrl: SafeResourceUrl | null = null;\n private loadedUrl: string | null = null;\n\n // Read at render time: the sidebar sets the selected product after this page\n // may already have initialised (direct link, Brain chat link, refresh).\n get product() {\n return PermissionService.selectedProduct;\n }\n\n private get rawUrl(): string | null {\n const url = this.product?.documentation_url;\n return url && isHttpsUrl(url) ? url : null;\n }\n\n get documentationUrl(): SafeResourceUrl | null {\n const raw = this.rawUrl;\n if (!raw) {\n return null;\n }\n if (raw !== this.sanitizedFor) {\n this.sanitizedFor = raw;\n // rawUrl only returns https urls (isHttpsUrl)\n this.sanitizedUrl = this.sanitizer.bypassSecurityTrustResourceUrl(raw); //NOSONAR\n }\n return this.sanitizedUrl;\n }\n\n get isLoaded(): boolean {\n return !!this.rawUrl && this.loadedUrl === this.rawUrl;\n }\n\n onIframeLoad(): void {\n const raw = this.rawUrl;\n // Next tick avoids ExpressionChangedAfterItHasBeenCheckedError\n setTimeout(() => {\n this.loadedUrl = raw;\n }, 0);\n }\n\n goBack(): void {\n this.location.back();\n }\n}\n","@if (documentationUrl; as url) {\n <pw-loader [isVisible]=\"!isLoaded\"></pw-loader>\n <div class=\"documentation-wrapper\" [hidden]=\"!isLoaded\">\n <iframe\n [src]=\"url\"\n width=\"100%\"\n height=\"100%\"\n allowfullscreen\n [title]=\"'Dashboard.Docs.FrameTitle' | transloco\"\n (load)=\"onIframeLoad()\"\n ></iframe>\n </div>\n} @else if (product) {\n <pw-no-data [withImage]=\"true\" [message]=\"'Dashboard.Docs.NoDocumentation' | transloco\">\n <div #content class=\"d-flex justify-content-center\">\n <button type=\"button\" class=\"btn btn-outline-primary\" (click)=\"goBack()\">\n {{ 'Button.Back' | transloco }}\n </button>\n </div>\n </pw-no-data>\n} @else {\n <pw-loader [isVisible]=\"true\"></pw-loader>\n}\n","/// The permission expression guarding the admin FAQ routes. Kept verbatim in\n/// step with `libs/admin-module/src/lib/admin-module.routing.ts`, where the\n/// `faq` parent and its `add` / `:id` children all carry this exact string.\n/// Offering an edit affordance to anyone `PageAccessGuard` would then bounce\n/// to `notfound` is the failure mode this mirroring exists to prevent.\n///\n/// Shared by the public FAQ list (`FaqComponent`) and the public FAQ detail\n/// page (`FaqDetailsComponent`) so the two surfaces can never drift apart.\nexport const FAQ_ADMIN_PERMISSION =\n 'Pages.Admin.FAQ || Pages.Role.MarketingManager || Pages.Role.CustomerSuccessManager';\n","import { FAQ } from '@posiwise/common-utilities';\n\nimport groupBy from 'lodash/groupBy';\nimport sortBy from 'lodash/sortBy';\n\nexport interface GroupedFaqs {\n [category: string]: FAQ[];\n}\n\n/// Non-product FAQs first, then product-scoped ones, grouped by category and\n/// ordered by `position` within each group.\nexport function groupFaqsByCategory(nonProductFaqs: FAQ[], productFaqs: FAQ[]): GroupedFaqs {\n const grouped = groupBy([...nonProductFaqs, ...productFaqs], 'category');\n\n Object.keys(grouped).forEach(category => {\n grouped[category] = sortBy(grouped[category], 'position');\n });\n\n return grouped;\n}\n\n/// Sanitize every answer up front so the markup is present before the collapse\n/// measures its target height — prevents the end-of-animation height snap that\n/// made expand/collapse feel clunky. Keyed `{itemIndex}-{categoryIndex}` to\n/// match the template's collapse ids.\nexport function buildSanitizedAnswers<T>(\n faqs: GroupedFaqs,\n sanitize: (body: string) => T\n): { [key: string]: T } {\n const answers: { [key: string]: T } = {};\n\n Object.keys(faqs).forEach((category, categoryIndex) => {\n faqs[category].forEach((faq, itemIndex) => {\n if (faq?.answer) {\n answers[`${itemIndex}-${categoryIndex}`] = sanitize(faq.answer);\n }\n });\n });\n\n return answers;\n}\n","import {\n ChangeDetectorRef,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n inject,\n OnDestroy,\n OnInit\n} from '@angular/core';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\nimport { RouterLink } from '@angular/router';\n\nimport { AppBaseComponent } from '@posiwise/app-base-component';\nimport { CommonService, PermissionService, ProductService } from '@posiwise/common-services';\nimport { ADMIN_ROUTERS, FAQ, Product, User } from '@posiwise/common-utilities';\nimport { HelperService } from '@posiwise/helper-service';\nimport { NoDataComponent } from '@posiwise/shared-components';\n\nimport { Bind } from 'primeng/bind';\nimport { ProgressSpinner } from 'primeng/progressspinner';\nimport { Tooltip } from 'primeng/tooltip';\nimport { forkJoin, Subject } from 'rxjs';\nimport { debounceTime, finalize, takeUntil } from 'rxjs/operators';\n\nimport { TranslocoPipe } from '@jsverse/transloco';\n\nimport { FAQ_ADMIN_PERMISSION } from './faq-admin-permission';\nimport { buildSanitizedAnswers, GroupedFaqs, groupFaqsByCategory } from './faq-grouping';\n\nexport { GroupedFaqs };\n\n@Component({\n selector: 'pw-faq',\n templateUrl: './faq.component.html',\n styleUrls: ['./faq.component.scss'],\n imports: [Bind, ProgressSpinner, Tooltip, RouterLink, NoDataComponent, TranslocoPipe],\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\n})\nexport class FaqComponent extends AppBaseComponent implements OnInit, OnDestroy {\n private readonly commonService = inject(CommonService);\n private readonly productService = inject(ProductService);\n private readonly sanitizer = inject(DomSanitizer);\n private readonly cdr = inject(ChangeDetectorRef);\n\n private readonly searchSubject: Subject<string> = new Subject<string>();\n private readonly destroy$ = new Subject<void>();\n faqs: GroupedFaqs;\n search_term;\n\n sanitizedFaqAnswers: { [key: string]: SafeHtml } = {};\n\n productFaq: FAQ[];\n\n private nonProductFaqs: FAQ[];\n\n private allProductFaqs: FAQ[];\n\n subscriptions = [];\n\n objectKeys = Object.keys;\n\n isLoaded = false;\n masterProductId;\n\n totalRecords: number;\n\n products: Product[];\n\n private faqsResponse = [];\n\n allFaqFalse: boolean;\n\n subscriptionId: number;\n\n showSupport: boolean;\n showDocumentation;\n\n faqHashMap = {};\n slug;\n\n readonly routers = ADMIN_ROUTERS;\n\n /// Whether to offer the inline link through to the admin edit form. Unlike\n /// the detail page, the list endpoint returns each FAQ's `id`, so no\n /// fallback is needed here.\n canEditFaq = false;\n\n ngOnInit() {\n this.faqHashMap = {};\n this.showSupport = PermissionService.selectedProduct?.gitlab_service_desk_email;\n this.showDocumentation = PermissionService.selectedProduct?.documentation_url;\n this.slug = PermissionService.selectedSubscription?.slug;\n this.subscriptionId = PermissionService?.selectedSubscription?.id;\n this.masterProductId = this.appConfig.master_subscription.product_id;\n this.canEditFaq = this.permissionService.evaluatePermissions(FAQ_ADMIN_PERMISSION);\n this.getProducts();\n\n this.searchSubject\n .pipe(debounceTime(1000), takeUntil(this.destroy$))\n .subscribe(searchValue => {\n this.search_term = searchValue;\n this.loadFaqData();\n this.cdr.markForCheck();\n });\n\n this.loadFaqData();\n }\n\n loadFaqData() {\n this.isLoaded = false;\n\n forkJoin({\n faqs: this.commonService.getPublicFaq(this.subscriptionId, this.search_term),\n products: this.productService.getProducts({ master_product_id: this.masterProductId })\n })\n .pipe(\n finalize(() => {\n this.isLoaded = true;\n this.cdr.markForCheck();\n })\n )\n .subscribe(({ faqs: { result: faqs }, products }) => {\n this.faqsResponse = faqs.faqs;\n faqs?.available_category?.forEach(x => {\n this.faqHashMap[x.key] = x;\n });\n this.totalRecords = faqs.faqs.length;\n this.nonProductFaqs = this.faqsResponse.filter(x => x.visible && !x.product_id);\n this.allProductFaqs = this.faqsResponse.filter(x => x.visible && x.product_id);\n const noProductObjects: boolean = this.faqsResponse.every(x => x.product === null);\n this.allFaqFalse = this.faqsResponse.every(x => x.visible === false);\n\n if (!noProductObjects) {\n this.products = products.result;\n this.faqValidation();\n } else {\n this.products = [];\n this.faqValidation();\n }\n this.cdr.markForCheck();\n });\n }\n\n private faqValidation() {\n this.faqs = groupFaqsByCategory(this.nonProductFaqs, this.allProductFaqs);\n this.sanitizedFaqAnswers = buildSanitizedAnswers(this.faqs, body =>\n this.sanitizeFaqAnswer(body)\n );\n }\n\n private getProducts() {\n this.subscriptions = [];\n this.userStore().subscribe((user: User) => {\n if (user) {\n this.subscriptions = user.subscriptions;\n }\n this.cdr.markForCheck();\n });\n }\n\n filter(searchValue: string) {\n this.searchSubject.next(searchValue);\n }\n\n navigateToSupport() {\n this.router.navigate(['/support']);\n }\n\n navigateToDocumentation() {\n this.router.navigate([this.slug, 'documentation']);\n }\n\n trackByProductFaqId(_index: number, item: { id: number }) {\n return item.id;\n }\n\n onCollapseToggle(key: string, answer: string): void {\n if (!this.sanitizedFaqAnswers[key] && answer) {\n this.sanitizedFaqAnswers[key] = this.sanitizeFaqAnswer(answer);\n }\n }\n\n sanitizeFaqAnswer(body: string) {\n return HelperService.sanitizeQuillBody(body, this.sanitizer);\n }\n\n override ngOnDestroy() {\n this.destroy$.next();\n this.destroy$.complete();\n super.ngOnDestroy();\n }\n}\n","<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","/// Editor-only status badges for the FAQ detail page.\n///\n/// `public`, `visible`, `category` and `feature_keys` are all on main-api's\n/// public whitelist (`FaqHelpers#faq_attributes_to_return`), so the badges cost\n/// no extra request — only naming the category does.\n///\n/// Each boolean badge is derived to render ONLY in its notable state: a\n/// \"Not public\" / \"Visible\" badge on every other FAQ would be noise on a page\n/// that shows exactly one. A hidden FAQ only reaches this page for a\n/// master-subscription admin at all (`filter_initial_faqs` drops\n/// `visible IS FALSE` for everyone else), which is precisely who it is for.\n\n/// One entry of main-api's `Faq::AVAILABLE_CATEGORIES`, as served verbatim by\n/// the public `faqs/available_categories` endpoint.\nexport interface FaqCategory {\n key: string;\n name: string;\n description?: string;\n}\n\nexport interface FaqStatusBadges {\n isPublic: boolean;\n isHidden: boolean;\n /// Raw category key — the palette lookup `appDynamicBadge` matches on.\n category: string;\n /// Human-readable category name, falling back to the raw key so the badge\n /// still says something useful when the lookup is skipped or fails.\n categoryLabel: string;\n /// Palette input for `appDynamicBadge` — the same key list the admin FAQ\n /// table feeds it, so a category lands on the same colour on both screens.\n categoryKeys: string[];\n /// Rendered as the category badge's tooltip, mirroring the admin table.\n featureKeys: string[];\n}\n\nexport const EMPTY_FAQ_STATUS_BADGES: FaqStatusBadges = {\n isPublic: false,\n isHidden: false,\n category: undefined,\n categoryLabel: '',\n categoryKeys: [],\n featureKeys: []\n};\n\nexport function buildStatusBadges(faq, categories: FaqCategory[] | null): FaqStatusBadges {\n if (!faq) {\n return { ...EMPTY_FAQ_STATUS_BADGES };\n }\n\n const resolved = categories ?? [];\n const category = faq.category;\n const named = resolved.find(entry => entry.key === category);\n\n return {\n isPublic: faq.public === true,\n isHidden: faq.visible === false,\n category,\n categoryLabel: named?.name || category || '',\n categoryKeys: resolved.map(entry => entry.key),\n featureKeys: Array.isArray(faq.feature_keys) ? faq.feature_keys : []\n };\n}\n","import {\n ChangeDetectorRef,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n inject,\n OnInit\n} from '@angular/core';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\nimport { RouterLink } from '@angular/router';\n\nimport { AppBaseComponent } from '@posiwise/app-base-component';\nimport { CommonService, PermissionService } from '@posiwise/common-services';\nimport { ADMIN_ROUTERS, FAQ } from '@posiwise/common-utilities';\nimport { DynamicBadgeDirective } from '@posiwise/directives';\nimport { NoDataComponent } from '@posiwise/shared-components';\n\nimport { Bind } from 'primeng/bind';\nimport { ProgressSpinner } from 'primeng/progressspinner';\nimport { Tooltip } from 'primeng/tooltip';\nimport { forkJoin, of } from 'rxjs';\nimport { catchError, finalize, map, switchMap, take } from 'rxjs/operators';\n\nimport { TranslocoPipe } from '@jsverse/transloco';\n\nimport { FAQ_ADMIN_PERMISSION } from '../faq/faq-admin-permission';\n\nimport { buildStatusBadges, EMPTY_FAQ_STATUS_BADGES, FaqStatusBadges } from './faq-status-badges';\n\n@Component({\n selector: 'pw-faq-details',\n templateUrl: './faq-details.component.html',\n styleUrls: ['./faq-details.component.scss'],\n imports: [\n Tooltip,\n RouterLink,\n DynamicBadgeDirective,\n NoDataComponent,\n Bind,\n ProgressSpinner,\n TranslocoPipe\n ],\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\n})\nexport class FaqDetailsComponent extends AppBaseComponent implements OnInit {\n private readonly commonService = inject(CommonService);\n private readonly sanitizer = inject(DomSanitizer);\n private readonly cdr = inject(ChangeDetectorRef);\n\n /// Route param for the FAQ: either its numeric id or its slug. The public\n /// endpoint resolves BOTH (`faq[:id] == params[:id].to_i || faq[:slug] == params[:id]`\n /// — main-api FaqHelpers#fetch_faq), so this must stay a raw string. Coercing it\n /// with Number() turned every slug URL into NaN, which is what made the Brain\n /// chat's published `/faq/{slug}` links dead.\n faqRef: string;\n\n faq: Omit<FAQ, 'answer'> & { answer: SafeHtml };\n\n isLoading = false;\n\n slug: string;\n\n readonly routers = ADMIN_ROUTERS;\n\n /// Whether to offer the inline link through to the admin edit form.\n canEditFaq = false;\n\n /// Numeric id for the admin edit route, or null when none can be resolved.\n editFaqId: number | null = null;\n\n /// Editor-only status badges — see `faq-status-badges.ts` for what each\n /// one means and why the booleans only render in their notable state.\n badges: FaqStatusBadges = { ...EMPTY_FAQ_STATUS_BADGES };\n\n /// Resolved before the request so the categories lookup can be issued in\n /// parallel rather than chained behind the FAQ (AI54: one loader, one wait).\n private hasFaqAdminPermission = false;\n\n constructor() {\n super();\n this.faqRef = this.route.snapshot.params['id'];\n this.slug = PermissionService.selectedSubscription?.slug;\n }\n\n ngOnInit() {\n this.hasFaqAdminPermission =\n this.permissionService.evaluatePermissions(FAQ_ADMIN_PERMISSION);\n this.getFaq();\n }\n\n /// True once there is at least one badge worth a row of its own.\n get showStatusBadges(): boolean {\n return (\n this.canEditFaq &&\n (this.badges.isPublic || this.badges.isHidden || !!this.badges.categoryLabel)\n );\n }\n\n getFaq() {\n this.isLoading = true;\n forkJoin({\n faq: this.commonService.getPublicFaqById(this.faqRef),\n categories: this.faqCategories$()\n })\n .pipe(\n finalize(() => {\n this.isLoading = false;\n this.cdr.markForCheck();\n })\n )\n .subscribe(({ faq: { result: faq }, categories }) => {\n this.faq = { ...faq, answer: this.sanitizeAnswer(faq) };\n\n // Only offer the edit affordance once a FAQ actually resolved —\n // a miss still leaves `faq` truthy (spreading null yields\n // `{answer: undefined}`), so key off the question itself.\n const loaded = !!faq?.question;\n this.canEditFaq = loaded && this.hasFaqAdminPermission;\n this.editFaqId = loaded ? this.resolveEditFaqId(faq) : null;\n this.badges = buildStatusBadges(loaded ? faq : null, categories);\n\n this.cdr.markForCheck();\n });\n }\n\n /// Category names are only ever rendered for an editor — skip the call\n /// entirely otherwise.\n ///\n /// Subscription resolution is [TEN2]-first: `getUserSubscriptionId()`\n /// matches the route slug against the user's OWN subscriptions, never\n /// trusting a raw route param. `PermissionService.selectedSubscription` is\n /// kept only as a FALLBACK, for the one case that helper cannot serve — a\n /// super admin viewing a subscription they are not a member of, where it\n /// resolves to nothing and the badge would degrade to a raw\n /// `master_admin`-style key for exactly the audience that needs the name.\n ///\n /// 🔴 That fallback is safe HERE AND ONLY HERE because this endpoint's\n /// payload is tenant-invariant: `available_categories` returns the frozen\n /// `Faq::AVAILABLE_CATEGORIES` constant and never reads `subscription_id`\n /// (main-api `app/api/v1/public/faqs.rb:27` -> `faq_helpers.rb:34`). The\n /// param exists only to satisfy Grape's required-params contract, so a\n /// stale id cannot surface another tenant's data. Do NOT copy this\n /// fallback onto a call that returns tenant-scoped data.\n ///\n /// `take(1)` is load-bearing: `getUserSubscriptionId()` wraps\n /// `route.parent.params`, which never completes, and `forkJoin` waits for\n /// EVERY source to complete — without it the page spins forever.\n ///\n /// A failure must never take the FAQ itself down with it, so it degrades to\n /// the raw category key rather than propagating.\n private faqCategories$() {\n if (!this.hasFaqAdminPermission) {\n return of(null);\n }\n\n return this.getUserSubscriptionId().pipe(\n take(1),\n map(id => id ?? PermissionService.selectedSubscription?.id),\n switchMap(id => (id ? this.commonService.getFaqCategories(id) : of(null))),\n map(response => response?.result ?? null),\n catchError(() => of(null))\n );\n }\n\n private sanitizeAnswer(faq) {\n if (!faq?.answer) {\n return undefined;\n }\n\n const doc = new DOMParser().parseFromString(faq.answer, 'text/html');\n\n // Remove all button elements\n doc.querySelectorAll('button').forEach(button => button.remove());\n\n // Return sanitized HTML\n // NOSONAR: Trusted HTML content is handled safely here\n return this.sanitizer.bypassSecurityTrustHtml(doc.body.innerHTML); // NOSONAR\n }\n\n /// The admin edit route resolves a NUMERIC id (`+params['id'] || 0` in\n /// `AddEditFaqComponent`), but this page is reachable by slug too and the\n /// public endpoint does not return the id at all — main-api's\n /// `FaqHelpers#faq_attributes_to_return` whitelists `slug`, not `id`. So\n /// prefer a payload id if one ever appears, then fall back to the route\n /// param only when it is already numeric. Returning null hides the link\n /// rather than opening the admin form in \"add a new FAQ\" mode.\n private resolveEditFaqId(faq: FAQ): number | null {\n const fromPayload = Number(faq?.id);\n if (Number.isInteger(fromPayload) && fromPayload > 0) {\n return fromPayload;\n }\n\n const fromRoute = Number(this.faqRef);\n return Number.isInteger(fromRoute) && fromRoute > 0 ? fromRoute : null;\n }\n}\n","@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","import {\n ChangeDetectorRef,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n inject,\n OnInit\n} from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\nimport { AppBaseComponent } from '@posiwise/app-base-component';\nimport { CommonService, PermissionService } from '@posiwise/common-services';\nimport { User } from '@posiwise/common-utilities';\n\nimport moment from 'moment';\nimport { Bind } from 'primeng/bind';\nimport { RadioButton } from 'primeng/radiobutton';\n\nimport { TranslocoPipe } from '@jsverse/transloco';\n\n@Component({\n selector: 'pw-user-feedback',\n templateUrl: './user-feedback.component.html',\n styleUrls: ['./user-feedback.component.scss'],\n imports: [FormsModule, Bind, RadioButton, TranslocoPipe],\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\n})\nexport class UserFeedbackComponent extends AppBaseComponent implements OnInit {\n private readonly commonService = inject(CommonService);\n private readonly cdr = inject(ChangeDetectorRef);\n\n rating = 3;\n\n selectedValue: number | null = null;\n\n questions = [];\n\n counter = Array;\n\n subscriptionId: number;\n\n user: User;\n\n showSection = true;\n\n ngOnInit(): void {\n this.subscriptionId = PermissionService.selectedSubscription?.id;\n this.getFeedbackQuestions();\n this.userService.getUserInfo().subscribe({\n next: user => {\n this.user = user;\n this.cdr.markForCheck();\n }\n });\n this.checkFeedBackExpiry();\n }\n\n checkFeedBackExpiry() {\n const item = localStorage.getItem('showFeedBack');\n if (item) {\n const currentDate = Date.now();\n const expiryDate = new Date(JSON.parse(item)).getTime();\n this.showSection = currentDate > expiryDate;\n }\n }\n\n closeSection() {\n this.showSection = false;\n const addedTime = moment(new Date()).add(7, 'days').toDate();\n localStorage.setItem('showFeedBack', JSON.stringify(addedTime));\n }\n\n private getFeedbackQuestions() {\n if (this.subscriptionId) {\n this.commonService.feedbackQuestions(this.subscriptionId).subscribe(({ result }) => {\n this.questions = result;\n this.cdr.markForCheck();\n });\n }\n }\n\n onSubmit(questionId: number, formValue) {\n if (formValue?.feedback) {\n const data = {\n subscription_id: this.subscriptionId,\n feedback_question_id: questionId,\n value: Number(formValue?.feedback),\n comment: formValue?.description\n };\n this.commonService.userFeedbacks(data).subscribe(() => {\n this.getFeedbackQuestions();\n this.cdr.markForCheck();\n });\n }\n }\n\n trackByQuestion(_index: number, item: { id: number }) {\n return item.id;\n }\n}\n","@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()\">×</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","import { InjectionToken, Type } from '@angular/core';\n\n/**\n * Product sections a host frontend adds to the top of the shared /home page (cloudolive-api#441),\n * e.g. CloudOlive's onboarding checklist. Optional: an app that provides nothing renders the page\n * unchanged.\n *\n * Holds component classes supplied in code by the host app, never server data, so rendering them\n * with ngComponentOutlet is safe. Each section owns its own data, gating and permissions (e.g.\n * Pages.Alpha), so dashboard-module stays product-agnostic.\n */\nexport const HOME_PRODUCT_SECTIONS = new InjectionToken<Type<unknown>[]>('HOME_PRODUCT_SECTIONS');\n","import { NgComponentOutlet } from '@angular/common';\nimport {\n ChangeDetectorRef,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n inject,\n OnDestroy,\n OnInit\n} from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\nimport { AppBaseComponent } from '@posiwise/app-base-component';\nimport { HopscotchService, PermissionService } from '@posiwise/common-services';\nimport { User } from '@posiwise/common-utilities';\nimport { LazyImgDirective } from '@posiwise/directives';\n\nimport { TranslocoPipe } from '@jsverse/transloco';\n\nimport { UserFeedbackComponent } from '../user-feedback/user-feedback.component';\n\nimport { HOME_PRODUCT_SECTIONS } from './home-product-sections.token';\n\n@Component({\n selector: 'pw-home',\n templateUrl: './home.component.html',\n styleUrls: ['./home.component.scss'],\n imports: [\n UserFeedbackComponent,\n NgComponentOutlet,\n LazyImgDirective,\n RouterLink,\n TranslocoPipe\n ],\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\n})\nexport class HomeComponent extends AppBaseComponent implements OnInit, OnDestroy {\n private readonly hopscotchService = inject(HopscotchService);\n private readonly cdr = inject(ChangeDetectorRef);\n readonly productSections? = inject(HOME_PRODUCT_SECTIONS, { optional: true });\n\n user: User;\n\n userSlug: string;\n\n componentActive = true;\n\n selectedSubscriptionSlug: string;\n subscriptionId: number;\n\n sanitizeContent(jsonString) {\n let sanitizedString = jsonString.replaceAll(\"'\", '\"');\n sanitizedString = sanitizedString.replace(\n /<img\\s+src=\"([^\"]+)\"/g,\n String.raw`<img src=\\\"$1\\\"`\n );\n sanitizedString = sanitizedString.replace(/,\\s*([}\\]])/g, '$1');\n\n return sanitizedString;\n }\n\n ngOnInit() {\n this.selectedSubscriptionSlug = PermissionService.selectedSubscription?.slug;\n this.subscriptionId = PermissionService.selectedSubscription?.id;\n this.userStore().subscribe(state => {\n if (state) {\n this.userService.getCurrentUserObject('active_tips').subscribe(({ result }) => {\n if (result?.length) {\n const welcomeTips = result.find(x => x.name === 'welcome');\n if (welcomeTips) {\n const steps = JSON.parse(\n this.sanitizeContent(welcomeTips.instructions)\n ).steps;\n try {\n this.hopscotchService.initializeTour(\n 'dashboard',\n steps,\n {\n tip_id: welcomeTips.id,\n disregarded: true\n },\n this.subscriptionId\n );\n } catch (error) {\n console.error('Error parsing JSON:', error);\n }\n }\n }\n this.cdr.markForCheck();\n });\n }\n this.cdr.markForCheck();\n });\n\n this.userStore().subscribe({\n next: user => {\n this.user = user;\n if (this.user) {\n this.userSlug = user.slug;\n }\n this.cdr.markForCheck();\n },\n error: error => {\n this.toast.showToast(error);\n this.cdr.markForCheck();\n }\n });\n }\n\n override ngOnDestroy() {\n this.hopscotchService.endTour();\n super.ngOnDestroy();\n }\n}\n","<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","import { ChangeDetectorRef } from '@angular/core';\n\nimport { Note } from '@posiwise/common-services';\n\nimport { Observable } from 'rxjs';\nimport { finalize } from 'rxjs/operators';\n\n/** A note as the notifications page lists it. */\nexport type PageNote = Note & { dismissed?: boolean; show_on_dashboard?: boolean };\n\nexport type RowActionName = 'dismiss' | 'delete' | 'restore';\n\n/** What a finished row action did, so the page can move its tab counts. */\nexport type NoteMoved = 'dismissed' | 'restored' | 'deleted';\n\nexport interface RowActionHost {\n busyId: number | null;\n busyAction: RowActionName | null;\n}\n\n/** The clicked action's icon spins and every action is disabled until the request settles, either way. */\nexport function rowAction<T>(\n host: RowActionHost,\n id: number,\n action: RowActionName,\n request: Observable<T>,\n cdr: ChangeDetectorRef\n): Observable<T> {\n host.busyId = id;\n host.busyAction = action;\n cdr.markForCheck();\n\n return request.pipe(\n finalize(() => {\n host.busyId = null;\n host.busyAction = null;\n cdr.markForCheck();\n })\n );\n}\n\n/** Fades the notes a read event covers: one note, or every note for \"mark all as read\". */\nexport function applyReadEvent(\n notes: { id: number; unread?: boolean | null }[],\n event: { id: number | 'all' }\n) {\n notes\n .filter(note => event.id === 'all' || note.id === event.id)\n .forEach(note => (note.unread = false));\n}\n","import { NgClass } from '@angular/common';\nimport {\n ChangeDetectorRef,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n DestroyRef,\n EventEmitter,\n inject,\n OnInit,\n Output\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\nimport { Note, NotificationService } from '@posiwise/common-services';\nimport { SinceAgoPipe } from '@posiwise/pipes';\nimport {\n NoDataComponent,\n NotificationOpenerService,\n RecordsSummaryComponent\n} from '@posiwise/shared-components';\n\nimport { Bind } from 'primeng/bind';\nimport { ProgressSpinner } from 'primeng/progressspinner';\n\nimport { TranslocoPipe } from '@jsverse/transloco';\n\nimport {\n applyReadEvent,\n NoteMoved,\n PageNote,\n rowAction,\n RowActionHost,\n RowActionName\n} from '../notification-row-action';\n\n@Component({\n selector: 'pw-current-notifications',\n templateUrl: './current-notifications.component.html',\n styleUrls: ['../notifications-page.component.scss'],\n imports: [\n Bind,\n ProgressSpinner,\n NgClass,\n RecordsSummaryComponent,\n NoDataComponent,\n TranslocoPipe,\n SinceAgoPipe\n ],\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\n})\nexport class CurrentNotificationsComponent implements OnInit, RowActionHost {\n private readonly notificationService = inject(NotificationService);\n private readonly opener = inject(NotificationOpenerService);\n private readonly cdr = inject(ChangeDetectorRef);\n\n @Output() readonly moved = new EventEmitter<NoteMoved>();\n\n notificationCount = 0;\n\n noNoti = true;\n\n busyId: number | null = null;\n\n busyAction: RowActionName | null = null;\n\n private readonly destroyRef = inject(DestroyRef);\n\n itemsPerPage = 100;\n\n notifications: PageNote[] = [];\n\n currentPage = 1;\n\n isLoaded = false;\n\n totalPages = 1;\n\n totalRecords = 0;\n\n ngOnInit() {\n this.getNotifications();\n this.notificationService.noteRead$\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(event => {\n applyReadEvent(this.notifications, event);\n this.cdr.markForCheck();\n });\n }\n\n private getNotifications() {\n this.notificationService\n .getCurrentNotifications({\n page: this.currentPage,\n page_size: this.itemsPerPage\n })\n .subscribe(data => {\n if (Array.isArray(data?.result) && data?.result?.length > 0) {\n this.totalRecords = data.page_info.total_count_unfiltered;\n this.notifications = data.result?.filter(\n note => !note.dismissed && note.show_on_dashboard\n );\n this.totalPages = Math.ceil(\n data.page_info.total_count_unfiltered / this.itemsPerPage\n );\n this.noNoti = true;\n if (this.notifications?.length) {\n this.noNoti = false;\n }\n }\n this.cdr.markForCheck();\n })\n .add(() => {\n this.isLoaded = true;\n this.cdr.markForCheck();\n });\n }\n\n nextPage() {\n if (this.currentPage < this.totalPages) {\n this.currentPage++;\n this.getNotifications();\n }\n }\n\n previousPage() {\n if (this.currentPage > 1) {\n this.currentPage--;\n this.getNotifications();\n }\n }\n\n dismiss(id: number, e) {\n if (this.busyId !== null) {\n return;\n }\n rowAction(\n this,\n id,\n 'dismiss',\n this.notificationService.dismissNotification(id),\n this.cdr\n ).subscribe(() => {\n this.notifications.splice(this.notifications.indexOf(e), 1);\n this.noNoti = this.notifications.length === 0;\n this.totalRecords = Math.max(0, this.totalRecords - 1);\n this.moved.emit('dismissed');\n });\n }\n\n open(note: Note) {\n this.opener.open(note);\n }\n\n trackByNotification(_index: number, item: { id: number }) {\n return item.id;\n }\n}\n","<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n @if (!isLoaded) {\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n }\n </div>\n @if (notifications?.length && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n >\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n @for (item of notifications; track trackByNotification($index, item)) {\n <li\n [class.noti-read]=\"!item.unread\"\n class=\"p-3 border-bottom border-bottom-blue-grey border-bottom-lighten-4 d-flex align-items-center\">\n <span class=\"btn btn-circle me-2\"\n [ngClass]=\"{\n 'btn-danger': item.note_type === 'administrative',\n 'btn-secondary': item.note_type === 'object_event',\n 'btn-primary': item.note_type === 'user_generated'\n }\">\n <i\n class=\"fal float-start\"\n [ngClass]=\"{\n 'fa-bell': item.note_type === 'administrative',\n 'fa-share-alt': item.note_type === 'object_event',\n 'fa-bells': item.note_type === 'user_generated'\n }\"\n aria-hidden=\"true\"\n ></i>\n </span>\n <button type=\"button\" class=\"d-inline-block noty-body\"\n (click)=\"open(item)\">\n <span class=\"noti-title line-height-1p5 d-block text-bold-400\">{{\n item.content\n }}</span>\n <span class=\"noti-text\"><span class=\"fal fa-clock\"></span>\n {{ item?.created_at | sinceAgo }}</span>\n </button>\n <span class=\"noti-buttons\">\n <button type=\"button\"\n class=\"btn float-end\"\n [disabled]=\"busyId !== null\"\n [attr.aria-label]=\"'Navbar.DismissNotifications' | transloco\"\n [attr.aria-busy]=\"busyId === item.id\"\n (click)=\"dismiss(item.id, item)\">\n @if (busyId === item.id) {\n <i class=\"fas fa-circle-notch fa-spin\" aria-hidden=\"true\"></i>\n } @else {\n <i class=\"far fa-trash-alt\" aria-hidden=\"true\"></i>\n }\n </button>\n </span>\n </li>\n }\n </ul>\n </div>\n <div class=\"pagination-container d-flex justify-content-between align-items-center mt-3 mb-3\">\n <pw-records-summary [showing]=\"totalRecords\" [total]=\"totalRecords\" />\n <div class=\"d-flex align-items-center\">\n <button class=\"btn btn-outline-primary me-2\" (click)=\"previousPage()\" [disabled]=\"currentPage === 1\">\n <i class=\"fas fa-chevron-left\"></i>\n </button>\n <span>{{ 'Dashboard.Notifications.PageOf' | transloco: { currentPage: currentPage, totalPages: totalPages } }}</span>\n <button class=\"btn btn-outline-primary ms-2\" (click)=\"nextPage()\" [disabled]=\"currentPage === totalPages\">\n <i class=\"fas fa-chevron-right\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>\n}\n\n@if (noNoti && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12\"\n >\n <pw-no-data [withImage]=\"true\" [message]=\"'Navbar.AllCaughtUp' | transloco\" [description]=\"'Navbar.NoNotifications' | transloco\">\n </pw-no-data>\n </div>\n}\n</div>\n","import { NgClass } from '@angular/common';\nimport {\n ChangeDetectorRef,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n DestroyRef,\n EventEmitter,\n inject,\n OnInit,\n Output\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\nimport { Note, NotificationService } from '@posiwise/common-services';\nimport { SinceAgoPipe } from '@posiwise/pipes';\nimport {\n ConfirmDialogService,\n NoDataComponent,\n NotificationOpenerService,\n RecordsSummaryComponent\n} from '@posiwise/shared-components';\n\nimport { Bind } from 'primeng/bind';\nimport { ProgressSpinner } from 'primeng/progressspinner';\nimport { Observable } from 'rxjs';\n\nimport { TranslocoPipe } from '@jsverse/transloco';\n\nimport {\n applyReadEvent,\n NoteMoved,\n PageNote,\n rowAction,\n RowActionHost,\n RowActionName\n} from '../notification-row-action';\n\n@Component({\n selector: 'pw-dismissed-notifications',\n templateUrl: './dismissed-notifications.component.html',\n styleUrls: ['../notifications-page.component.scss'],\n imports: [\n Bind,\n ProgressSpinner,\n NgClass,\n RecordsSummaryComponent,\n NoDataComponent,\n TranslocoPipe,\n SinceAgoPipe\n ],\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\n})\nexport class DismissedNotificationsComponent implements OnInit, RowActionHost {\n private readonly notificationService = inject(NotificationService);\n private readonly opener = inject(NotificationOpenerService);\n private readonly confirmDialog = inject(ConfirmDialogService);\n private readonly cdr = inject(ChangeDetectorRef);\n\n @Output() readonly moved = new EventEmitter<NoteMoved>();\n\n notificationCount = 0;\n\n noNoti = true;\n\n busyId: number | null = null;\n\n busyAction: RowActionName | null = null;\n\n private readonly destroyRef = inject(DestroyRef);\n\n dismissedNotifications: PageNote[] = [];\n\n isLoaded = false;\n\n itemsPerPage = 100;\n\n currentPage = 1;\n\n totalPages = 1;\n\n totalRecords = 0;\n\n ngOnInit() {\n this.getNotifications();\n this.notificationService.noteRead$\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(event => {\n applyReadEvent(this.dismissedNotifications, event);\n this.cdr.markForCheck();\n });\n }\n\n private getNotifications() {\n this.notificationService\n .getDismissedNotifications({\n page: this.currentPage,\n page_size: this.itemsPerPage\n })\n .subscribe(data => {\n if (Array.isArray(data?.result) && data?.result?.length > 0) {\n this.noNoti = false;\n this.dismissedNotifications = data?.result;\n this.totalRecords = data?.page_info.total_count_unfiltered;\n this.totalPages = Math.ceil(\n data.page_info.total_count_unfiltered / this.itemsPerPage\n );\n }\n this.cdr.markForCheck();\n })\n .add(() => {\n this.isLoaded = true;\n this.cdr.markForCheck();\n });\n }\n\n nextPage() {\n if (this.currentPage < this.totalPages) {\n this.currentPage++;\n this.getNotifications();\n }\n }\n\n previousPage() {\n if (this.currentPage > 1) {\n this.currentPage--;\n this.getNotifications();\n }\n }\n\n dismiss(id: number, e) {\n if (this.busyId !== null) {\n return;\n }\n this.confirmDialog.confirmDelete().then(ok => {\n if (ok) {\n this.removeAfter(\n id,\n e,\n 'delete',\n this.notificationService.deleteNotifications(id),\n 'deleted'\n );\n }\n });\n }\n\n restoreNotification(id: number, e) {\n if (this.busyId !== null) {\n return;\n }\n this.removeAfter(\n id,\n e,\n 'restore',\n this.notificationService.reinstateNotification(id),\n 'restored'\n );\n }\n\n private removeAfter(\n id: number,\n e,\n action: RowActionName,\n request: Observable<unknown>,\n outcome: NoteMoved\n ) {\n rowAction(this, id, action, request, this.cdr).subscribe(() => {\n this.dismissedNotifications.splice(this.dismissedNotifications.indexOf(e), 1);\n this.noNoti = this.dismissedNotifications.length === 0;\n this.totalRecords = Math.max(0, this.totalRecords - 1);\n this.moved.emit(outcome);\n });\n }\n\n open(note: Note) {\n this.opener.open(note);\n }\n\n trackByNotification(_index: number, item: { id: number }) {\n return item.id;\n }\n}\n","<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n @if (!isLoaded) {\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n }\n </div>\n @if (dismissedNotifications?.length && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n >\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n @for (item of dismissedNotifications; track trackByNotification($index, item)) {\n <li\n [class.noti-read]=\"!item.unread\"\n class=\"p-3 border-bottom border-bottom-blue-grey border-bottom-lighten-4 d-flex align-items-center\">\n <span class=\"btn btn-circle me-2\"\n [ngClass]=\"{\n 'btn-danger': item.note_type === 'administrative',\n 'btn-secondary': item.note_type === 'object_event',\n 'btn-primary': item.note_type === 'user_generated'\n }\">\n <i\n class=\"fal float-start\"\n [ngClass]=\"{\n 'fa-bell': item.note_type === 'administrative',\n 'fa-share-alt': item.note_type === 'object_event',\n 'fa-bells': item.note_type === 'user_generated'\n }\"\n aria-hidden=\"true\"\n ></i>\n </span>\n <button type=\"button\" class=\"d-inline-block noty-body\"\n (click)=\"open(item)\">\n <span class=\"noti-title line-height-1p5 d-block text-bold-400\">{{\n item.content\n }}</span>\n <span class=\"noti-text\"><span class=\"fal fa-clock\"></span>\n {{ item?.created_at | sinceAgo }}</span>\n </button>\n <span class=\"noti-buttons\">\n <button type=\"button\"\n class=\"btn float-end\"\n [disabled]=\"busyId !== null\"\n [attr.aria-label]=\"'Button.Delete' | transloco\"\n [attr.aria-busy]=\"busyId === item.id && busyAction === 'delete'\"\n (click)=\"dismiss(item.id, item)\">\n @if (busyId === item.id && busyAction === 'delete') {\n <i class=\"fas fa-circle-notch fa-spin\" aria-hidden=\"true\"></i>\n } @else {\n <i class=\"far fa-trash-alt\" aria-hidden=\"true\"></i>\n }\n </button>\n <button type=\"button\"\n class=\"btn float-end\"\n [disabled]=\"busyId !== null\"\n [attr.aria-label]=\"'Dashboard.Notifications.Restore' | transloco\"\n [attr.aria-busy]=\"busyId === item.id && busyAction === 'restore'\"\n (click)=\"restoreNotification(item.id, item)\">\n @if (busyId === item.id && busyAction === 'restore') {\n <i class=\"fas fa-circle-notch fa-spin\" aria-hidden=\"true\"></i>\n } @else {\n <i class=\"fas fa-trash-restore-alt\" aria-hidden=\"true\"></i>\n }\n </button>\n </span>\n </li>\n }\n </ul>\n </div>\n <div class=\"pagination-container d-flex justify-content-between align-items-center mt-3 mb-3\">\n <pw-records-summary [showing]=\"totalRecords\" [total]=\"totalRecords\" />\n <div class=\"d-flex align-items-center\">\n <button class=\"btn btn-outline-primary me-2\" (click)=\"previousPage()\" [disabled]=\"currentPage === 1\">\n <i class=\"fas fa-chevron-left\"></i>\n </button>\n <span>{{ 'Dashboard.Notifications.PageOf' | transloco: { currentPage: currentPage, totalPages: totalPages } }}</span>\n <button class=\"btn btn-outline-primary ms-2\" (click)=\"nextPage()\" [disabled]=\"currentPage === totalPages\">\n <i class=\"fas fa-chevron-right\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>\n}\n\n@if (noNoti && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12\"\n >\n <pw-no-data [withImage]=\"true\" [message]=\"'Dashboard.Notifications.NoDismissed' | transloco\">\n </pw-no-data>\n </div>\n}\n</div>\n","import {\n ChangeDetectorRef,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n inject,\n OnInit\n} from '@angular/core';\n\nimport { NotificationCounts, NotificationService } from '@posiwise/common-services';\n\nimport { TranslocoPipe } from '@jsverse/transloco';\nimport {\n NgbNav,\n NgbNavContent,\n NgbNavItem,\n NgbNavItemRole,\n NgbNavLink,\n NgbNavLinkBase,\n NgbNavOutlet\n} from '@ng-bootstrap/ng-bootstrap';\n\nimport { CurrentNotificationsComponent } from './current-notifications/current-notifications.component';\nimport { DismissedNotificationsComponent } from './dismissed-notifications/dismissed-notifications.component';\nimport { NoteMoved } from './notification-row-action';\n\n@Component({\n selector: 'pw-notifications-page',\n templateUrl: './notifications-page.component.html',\n styleUrls: ['./notifications-page.component.scss'],\n imports: [\n NgbNav,\n NgbNavItem,\n NgbNavItemRole,\n NgbNavLink,\n NgbNavLinkBase,\n NgbNavContent,\n CurrentNotificationsComponent,\n DismissedNotificationsComponent,\n NgbNavOutlet,\n TranslocoPipe\n ],\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\n})\nexport class NotificationsPageComponent implements OnInit {\n private readonly notificationService = inject(NotificationService);\n private readonly cdr = inject(ChangeDetectorRef);\n\n counts: NotificationCounts | null = null;\n\n ngOnInit() {\n this.notificationService.getNotificationCounts().subscribe(counts => {\n this.counts = counts;\n this.cdr.markForCheck();\n });\n }\n\n onMoved(moved: NoteMoved) {\n if (!this.counts) {\n return;\n }\n const step = { dismissed: [-1, 1], restored: [1, -1], deleted: [0, -1] }[moved];\n this.counts = {\n current: Math.max(0, this.counts.current + step[0]),\n dismissed: Math.max(0, this.counts.dismissed + step[1])\n };\n this.cdr.markForCheck();\n }\n}\n","<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","import { UpperCasePipe } from '@angular/common';\nimport {\n ChangeDetectorRef,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n inject,\n OnInit\n} from '@angular/core';\nimport { ActivatedRoute, RouterLink } from '@angular/router';\n\nimport { DashboardService, GlobalSearchResult, PermissionService } from '@posiwise/common-services';\nimport { LazyImgDirective } from '@posiwise/directives';\nimport { HelperService } from '@posiwise/helper-service';\nimport { DOMSanitizerPipe } from '@posiwise/pipes';\nimport { NoDataComponent } from '@posiwise/shared-components';\n\nimport { Bind } from 'primeng/bind';\nimport { ProgressSpinner } from 'primeng/progressspinner';\n\nimport { TranslocoPipe } from '@jsverse/transloco';\n\n@Component({\n selector: 'pw-search',\n templateUrl: './search.component.html',\n styleUrls: ['./search.component.scss'],\n imports: [\n Bind,\n ProgressSpinner,\n LazyImgDirective,\n RouterLink,\n NoDataComponent,\n UpperCasePipe,\n TranslocoPipe,\n DOMSanitizerPipe\n ],\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\n})\nexport class SearchComponent implements OnInit {\n private readonly route = inject(ActivatedRoute);\n private readonly service = inject(DashboardService);\n private readonly cdr = inject(ChangeDetectorRef);\n\n private readonly emptySearchResult: GlobalSearchResult = {\n users: [],\n faqs: [],\n recipients: []\n };\n\n keyword: string;\n\n result: GlobalSearchResult;\n\n isLoaded = false;\n\n objectKeys = Object.keys;\n\n subscriptionId: number;\n\n ngOnInit() {\n this.subscriptionId = PermissionService.selectedSubscription.id;\n this.route.queryParams.subscribe(response => {\n this.keyword = response['keyword'];\n if (this.keyword) {\n this.search();\n }\n this.cdr.markForCheck();\n });\n }\n\n search() {\n this.isLoaded = false;\n this.service\n .search(this.keyword, this.subscriptionId)\n .subscribe(({ result }) => {\n this.result = {\n ...this.emptySearchResult,\n ...result\n };\n this.cdr.markForCheck();\n })\n .add(() => {\n this.isLoaded = true;\n this.cdr.markForCheck();\n });\n }\n\n get hasResults() {\n return this.searchGroups.some(group => group.length > 0);\n }\n\n private get searchGroups() {\n return ['users', 'faqs', 'recipients'].map(group => this.getResultGroup(group));\n }\n\n getResultGroup(group: keyof GlobalSearchResult | string) {\n if (!this.isSearchGroupKey(group)) {\n return [];\n }\n\n const resultGroup = this.result?.[group];\n if (!Array.isArray(resultGroup)) {\n return [];\n }\n\n return resultGroup.filter(item => this.isRenderableResult(item));\n }\n\n private isSearchGroupKey(group: string): group is keyof GlobalSearchResult {\n return group === 'users' || group === 'faqs' || group === 'recipients';\n }\n\n private isRenderableResult(item: unknown) {\n if (item == null) {\n return false;\n }\n\n if (typeof item !== 'object') {\n return true;\n }\n\n return Object.values(item).some(value => {\n if (Array.isArray(value)) {\n return value.length > 0;\n }\n\n return value !== null && value !== undefined && value !== '';\n });\n }\n\n handleImageError(event: Event, fallbackPath): void {\n HelperService.handleImageFallbackPath(event, fallbackPath);\n }\n\n trackByUserId(_index: number, item: { id: number }) {\n return item.id;\n }\n\n trackByFaqId(_index: number, item: { id: number }) {\n return item.id;\n }\n\n trackBySkill(_index: number, item: { id: number }) {\n return item.id;\n }\n}\n","<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","import { CommonModule } from '@angular/common';\nimport { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { RouterModule } from '@angular/router';\n\nimport { CoreTranslocoModule } from '@posiwise/core-transloco';\nimport { DirectivesModule } from '@posiwise/directives';\nimport { PipesModule } from '@posiwise/pipes';\nimport { ResourceSharedComponentsModule } from '@posiwise/shared-components';\n\nimport { ProgressSpinnerModule } from 'primeng/progressspinner';\nimport { RadioButtonModule } from 'primeng/radiobutton';\nimport { TooltipModule } from 'primeng/tooltip';\n\nimport { NgbNavModule } from '@ng-bootstrap/ng-bootstrap';\n\nimport { DocumentationComponent } from './documentation-view/documentation-view.component';\nimport { FaqComponent } from './faq/faq.component';\nimport { FaqDetailsComponent } from './faq-details/faq-details.component';\nimport { HomeComponent } from './home/home.component';\nimport { CurrentNotificationsComponent } from './notifications-page/current-notifications/current-notifications.component';\nimport { DismissedNotificationsComponent } from './notifications-page/dismissed-notifications/dismissed-notifications.component';\nimport { NotificationsPageComponent } from './notifications-page/notifications-page.component';\nimport { SearchComponent } from './search/search.component';\nimport { UserFeedbackComponent } from './user-feedback/user-feedback.component';\n\n// Note: CurrentNotificationsComponent and DismissedNotificationsComponent\n// are declared in DashboardLibModule and exported from there\n// They are needed by NotificationsPageComponent but kept in the main dashboard module\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n RouterModule,\n CoreTranslocoModule,\n DirectivesModule,\n PipesModule,\n ProgressSpinnerModule,\n NgbNavModule,\n RadioButtonModule,\n TooltipModule,\n ResourceSharedComponentsModule,\n DocumentationComponent,\n FaqComponent,\n FaqDetailsComponent,\n HomeComponent,\n NotificationsPageComponent,\n CurrentNotificationsComponent,\n NotificationsPageComponent,\n DismissedNotificationsComponent,\n SearchComponent,\n UserFeedbackComponent\n ],\n exports: [\n DocumentationComponent,\n FaqComponent,\n FaqDetailsComponent,\n HomeComponent,\n NotificationsPageComponent,\n CurrentNotificationsComponent,\n NotificationsPageComponent,\n DismissedNotificationsComponent,\n SearchComponent,\n RadioButtonModule\n ],\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\n})\nexport class DashboardContentModule {}\n","// Core Angular modules\nimport { CommonModule } from '@angular/common';\nimport { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\n\nimport { SubscriptionService } from '@posiwise/common-services';\nimport { CoreTranslocoModule } from '@posiwise/core-transloco';\nimport { DirectivesModule } from '@posiwise/directives';\nimport { PipesModule } from '@posiwise/pipes';\nimport { UserModuleModule } from '@posiwise/user-module';\n\nimport { ProgressSpinnerModule } from 'primeng/progressspinner';\nimport { RadioButtonModule } from 'primeng/radiobutton';\nimport { SelectModule } from 'primeng/select';\n\nimport { NgbDropdownModule, NgbNavModule } from '@ng-bootstrap/ng-bootstrap';\n\nimport { DashboardContentModule } from './dashboard-content.module';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n PipesModule,\n SelectModule,\n DirectivesModule,\n ReactiveFormsModule,\n CoreTranslocoModule,\n NgbNavModule,\n NgbDropdownModule,\n UserModuleModule,\n RadioButtonModule,\n ProgressSpinnerModule,\n DashboardContentModule\n ],\n declarations: [],\n\n providers: [SubscriptionService],\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\n})\nexport class DashboardLibModule {}\n","import { ENTERPRISE_INSIGHTS_PERMISSION } from '@posiwise/common-utilities';\n\nimport { RouteInfo } from './sidebar.metadata';\n\n/**\n * Drops menu items gated behind a feature flag the current user isn't entitled\n * to. An item with no `featureFlag` always passes; one with a `featureFlag`\n * passes only when `isEnabled(item.featureFlag)` returns true. Non-destructive\n * — returns a new array and never mutates the input.\n *\n * Shared so every frontend's sidebar gates flag-protected menus identically\n * (e.g. alpha-only pages) instead of copy-pasting the predicate.\n *\n * @param menus - the menu items to filter (one level; pass the specific list to gate)\n * @param isEnabled - predicate resolving a flag key to enabled/disabled for the user\n */\nexport const filterMenusByFeatureFlag = (\n menus: RouteInfo[],\n isEnabled: (flagKey: string) => boolean\n): RouteInfo[] => (menus ?? []).filter(menu => !menu.featureFlag || isEnabled(menu.featureFlag));\n\n/**\n * Helper function to create menu items with default values\n * @param overrides - Partial RouteInfo object with overrides\n * @returns RouteInfo object with defaults applied\n */\nexport const createMenuItem = (overrides: Partial<RouteInfo>): RouteInfo => ({\n permission: '',\n path: '',\n title: '',\n icon: '',\n class: '',\n badge: '',\n badgeClass: '',\n isExternalLink: false,\n submenu: [],\n visible: true,\n order: 0,\n ...overrides\n});\n\n/**\n * Helper function to create submenu items with default values\n * @param overrides - Partial RouteInfo object with overrides\n * @returns RouteInfo object with defaults applied\n */\nexport const createSubMenuItem = (overrides: Partial<RouteInfo>): RouteInfo => ({\n permission: '',\n path: '',\n title: '',\n icon: '',\n class: '',\n badge: '',\n badgeClass: '',\n isExternalLink: false,\n submenu: [],\n visible: true,\n ...overrides\n});\n\n/**\n * Common menu items that can be reused across modules\n */\nexport const COMMON_MENUS = {\n FAQ_Menu: createMenuItem({\n permission: 'Pages.Product.{permission_key}.{feature_key}.FAQ',\n path: '/faq',\n title: 'FAQ',\n titleKey: 'Menu.Faq',\n icon: 'ft-info',\n order: 999\n }),\n\n ENTERPRISE_MENU: createMenuItem({\n permission: 'Pages.Product.{permission_key}.{feature_key}.Enterprise',\n path: '/enterprise',\n title: 'Enterprise',\n titleKey: 'Menu.Enterprise',\n icon: 'ft-package',\n class: 'has-sub',\n badgeClass: 'badge rounded-pill bg-danger float-end mt-1',\n order: 5,\n submenu: [\n createSubMenuItem({\n path: ':slug/enterprise/members',\n title: 'Members',\n titleKey: 'Menu.Enterprise.Members',\n icon: 'far fa-users'\n }),\n createSubMenuItem({\n permission: 'Pages.Alpha',\n path: ':slug/enterprise/partners',\n title: 'Partners',\n titleKey: 'Menu.Enterprise.Partners',\n icon: 'far fa-users'\n }),\n createSubMenuItem({\n permission: 'Pages.Beta',\n path: ':slug/enterprise/groups',\n title: 'Teams',\n titleKey: 'Menu.Enterprise.Teams',\n icon: 'far fa-users-class'\n }),\n createSubMenuItem({\n permission: 'Pages.Beta',\n path: ':slug/enterprise/communications',\n title: 'Communications',\n titleKey: 'Menu.Enterprise.Communications',\n icon: 'fas fa-comments'\n }),\n createSubMenuItem({\n permission: 'Pages.Beta',\n path: ':slug/enterprise/wiki',\n title: 'Documentation',\n titleKey: 'Menu.Enterprise.Documentation',\n icon: 'fab fa-wikipedia-w'\n }),\n createSubMenuItem({\n // Admins (or super admins) with the ai_assistant flag. \"Use subscription\n // data\" is enforced by the page and by brain-api. Spaces around the\n // parentheses are required: the expression parser splits on spaces.\n permission: 'flag:ai_assistant && ( SuperAdmin || SubscriptionAdmin )',\n path: ':slug/enterprise/ai-knowledge',\n title: 'AI Knowledge',\n titleKey: 'Menu.Enterprise.AiKnowledge',\n icon: 'fa fa-brain'\n }),\n createSubMenuItem({\n permission: ENTERPRISE_INSIGHTS_PERMISSION,\n path: ':slug/enterprise/insights',\n title: 'Insights',\n titleKey: 'Menu.Enterprise.Insights',\n icon: 'far fa-tag'\n })\n ]\n }),\n\n CHAT_MENU: createMenuItem({\n permission: 'Pages.Product.{permission_key}.{feature_key}.Chat',\n path: '/message',\n title: 'Chat',\n titleKey: 'Menu.Chat',\n icon: 'ft-message-square',\n badgeClass: 'badge rounded-pill bg-danger float-end mt-1',\n order: 2\n }),\n\n BLOG_MENU: createMenuItem({\n permission:\n 'Pages.Product.{permission_key}.{feature_key}.Blog || Pages.Role.MarketingManager || Pages.Role.CustomerSuccessManager',\n path: '/posts/list',\n title: 'Blog',\n titleKey: 'Menu.Blog',\n icon: 'far fa-blog'\n })\n};\n","import { RouteInfo } from './sidebar.metadata';\nimport { COMMON_MENUS, createMenuItem, createSubMenuItem } from './sidebar-route-utils';\n\n// Centralized admin permissions\nconst ADMIN_PERMISSIONS = {\n GENERIC: 'Pages.Admin',\n DOMAIN_CONFIG: 'Pages.Admin.DomainConfig || Pages.Role.MarketingManager',\n USERS: 'Pages.Admin.Users',\n SUBSCRIPTION: 'Pages.Admin.Subscription',\n PRODUCT: 'Pages.Admin.Product',\n LOGIN_NOTIFICATION:\n 'Pages.Admin.LoginNotification || Pages.Role.MarketingManager || Pages.Role.CustomerSuccessManager',\n NEWSLETTER:\n 'Pages.Admin.Newsletter || Pages.Role.MarketingManager || Pages.Role.CustomerSuccessManager',\n MAILER: 'Pages.Admin.Mailer',\n BLOG: 'Pages.Admin.Blog || Pages.Role.MarketingManager || Pages.Role.CustomerSuccessManager',\n FEATURE_FLAGS: 'Pages.Admin.FeatureFlags',\n FAQ: 'Pages.Admin.FAQ || Pages.Role.MarketingManager || Pages.Role.CustomerSuccessManager',\n INCIDENT: 'Pages.Admin.Incident',\n CONTACT_US: 'Pages.Admin.ContactUs',\n TIPS: 'Pages.Admin.Tips',\n TAGS: 'Pages.Admin.Tags',\n ROLES: 'Pages.Admin.Roles',\n TOS: 'Pages.Admin.Tos',\n CREDENTIAL: 'Pages.Admin.Credential',\n OAUTH_CLIENTS: 'Pages.Admin.Oauth',\n AMBASSADOR_PAYOUTS: 'Pages.Admin.AmbassadorPayouts',\n TRACKING: 'Pages.Admin.Tracking',\n GLOBAL_CONFIG: 'Pages.Admin.Global-Config'\n} as const;\n\n// Centralized admin paths\nconst ADMIN_PATHS = {\n GENERIC: '/admin/generic',\n DOMAIN_CONFIG: '/admin/domain-config/list',\n USERS: '/admin/users',\n SUBSCRIPTION: '/admin/subscriptions',\n PRODUCT: '/admin/products',\n LOGIN_NOTIFICATION: '/admin/login-notifications/list',\n NEWSLETTER: '/admin/newsletter',\n MAILER: '/admin/mailers',\n BLOG: '/admin/resources',\n FEATURE_FLAGS: '/admin/feature-flags/list',\n FAQ: '/admin/faq/list',\n INCIDENT: '/admin/incident/list',\n CONTACT_US: '/admin/contact-us/list',\n TIPS: '/admin/tips/list',\n TAGS: '/admin/tags',\n ROLES: '/admin/permissions',\n // Section root (redirects to /list) so routerLinkActive also matches the\n // /admin/tos/:id edit route — keeps the menu item highlighted when deep-linked.\n TOS: '/admin/tos',\n CREDENTIAL: '/admin/credentials',\n OAUTH_CLIENTS: '/admin/oauth-clients',\n // Section root (redirects to /list), so routerLinkActive also matches the\n // /admin/ambassador-payouts/:id detail route — keeps the menu item\n // highlighted when a payout is opened or deep-linked. Same reason as TOS.\n AMBASSADOR_PAYOUTS: '/admin/ambassador-payouts',\n TRACKING: '/admin/tracking',\n GLOBAL_CONFIG: '/admin/global-config'\n} as const;\n\n// Centralized admin menu data\nconst ADMIN_MENU_DATA = [\n { key: 'GENERIC', title: 'Generic', titleKey: 'Menu.Admin.Generic', icon: 'far fa-book' },\n { key: 'DOMAIN_CONFIG', title: 'Domains', titleKey: 'Menu.Admin.Domains', icon: 'fa fa-fw fa-cog' },\n { key: 'USERS', title: 'Users', titleKey: 'Menu.Admin.Users', icon: 'far fa-user-cog' },\n { key: 'SUBSCRIPTION', title: 'Subscriptions', titleKey: 'Menu.Admin.Subscriptions', icon: 'ft-box' },\n { key: 'PRODUCT', title: 'Products', titleKey: 'Menu.Admin.Products', icon: 'far fa-parking' },\n { key: 'LOGIN_NOTIFICATION', title: 'Notifications', titleKey: 'Menu.Admin.Notifications', icon: 'fa fa-fw fa-bell' },\n { key: 'NEWSLETTER', title: 'Newsletters', titleKey: 'Menu.Admin.Newsletters', icon: 'far fa-newspaper' },\n { key: 'MAILER', title: 'Mailers', titleKey: 'Menu.Admin.Mailers', icon: 'far fa-envelope' },\n { key: 'BLOG', title: 'Resources', titleKey: 'Resource.Posts.Title', icon: 'far fa-blog' },\n { key: 'FEATURE_FLAGS', title: 'Feature Flags', titleKey: 'Menu.Admin.FeatureFlags', icon: 'fa fa-fw fa-toggle-on' },\n { key: 'FAQ', title: 'FAQs', titleKey: 'Menu.Admin.Faqs', icon: 'fa fa-question' },\n { key: 'INCIDENT', title: 'Incidents', titleKey: 'Menu.Admin.Incidents', icon: 'fa fa-solid fa-triangle-exclamation' },\n { key: 'CONTACT_US', title: 'Contact Us', titleKey: 'Menu.Admin.ContactUs', icon: 'fa fa-address-book' },\n { key: 'TIPS', title: 'Tours', titleKey: 'Menu.Admin.Tours', icon: 'far fa-lightbulb' },\n { key: 'TAGS', title: 'Tags', titleKey: 'Menu.Admin.Tags', icon: 'far fa-tags' },\n { key: 'ROLES', title: 'Permissions', titleKey: 'Label.Permissions', icon: 'fas fa-key' },\n { key: 'TOS', title: 'Privacy & TOS', titleKey: 'Menu.Admin.PrivacyTos', icon: 'fas fa-sticky-note' },\n { key: 'CREDENTIAL', title: 'Credentials', titleKey: 'Menu.Admin.Credentials', icon: 'fas fa-file-signature' },\n { key: 'OAUTH_CLIENTS', title: 'MCP OAuth Clients', titleKey: 'Admin.OauthClients.Title', icon: 'fas fa-robot' },\n // fa-handshake is already the ambassador icon in the users list.\n { key: 'AMBASSADOR_PAYOUTS', title: 'Ambassador Payouts', titleKey: 'Admin.AmbassadorPayouts.Title', icon: 'fa fa-handshake' },\n { key: 'TRACKING', title: 'Tracking', titleKey: 'Menu.Admin.Tracking', icon: 'fa fa-map-marker' },\n { key: 'GLOBAL_CONFIG', title: 'Global Configs', titleKey: 'Menu.Admin.GlobalConfigs', icon: 'fa fa-fw fa-cog' }\n] as const;\n\n// Helper function to create admin submenu items\nconst createAdminSubMenuItem = (menuKey: keyof typeof ADMIN_PERMISSIONS): RouteInfo =>\n createSubMenuItem({\n permission: ADMIN_PERMISSIONS[menuKey],\n path: ADMIN_PATHS[menuKey],\n title: ADMIN_MENU_DATA.find(item => item.key === menuKey)?.title || '',\n titleKey: ADMIN_MENU_DATA.find(item => item.key === menuKey)?.titleKey,\n icon: ADMIN_MENU_DATA.find(item => item.key === menuKey)?.icon || ''\n });\n\n// Generate admin submenu from centralized data\nconst generateAdminSubmenu = (): RouteInfo[] =>\n ADMIN_MENU_DATA.map(item => createAdminSubMenuItem(item.key));\n\n// Sidebar menu Routes and data\nexport const ROUTES: RouteInfo[] = [\n createMenuItem({\n permission: 'Pages.Dashboard',\n path: '/home',\n title: 'Home',\n titleKey: 'Button.Home',\n icon: 'ft-home',\n order: 1\n }),\n createMenuItem({\n permission: 'Pages.Admin',\n path: null,\n title: 'Admin',\n titleKey: 'Menu.Admin',\n icon: 'ft-user',\n class: 'has-sub',\n order: 3,\n submenu: generateAdminSubmenu()\n })\n];\n\n// Export common menus from shared utilities\nexport const { FAQ_Menu, ENTERPRISE_MENU, CHAT_MENU, BLOG_MENU } = COMMON_MENUS;\n","import { NavigationEnd } from '@angular/router';\n\nimport { filter, Observable, Subscription } from 'rxjs';\n\n/**\n * Opens every `has-sub` group around the active sidebar item and scrolls the sidebar\n * until the item is visible. app-sidebar.js opens the group too, but only once jQuery\n * is in, which on a direct load can be 10+ seconds away, and nothing scrolled: a long\n * menu (super admin) left the active item below the fold. Additive only — it never\n * collapses, so it cannot fight jQuery's toggle.\n *\n * Shared so every frontend's sidebar behaves the same on a cold load\n * (posiwise-frontend#4205).\n */\nexport function openActiveGroup(doc: Document): void {\n if (doc.querySelector('.wrapper')?.classList.contains('nav-collapsed')) {\n return;\n }\n\n const active = doc.querySelector('.sidebar-content .navigation li.active');\n let parent = active?.parentElement?.closest('li.has-sub');\n while (parent) {\n parent.classList.add('open');\n parent = parent.parentElement?.closest('li.has-sub');\n }\n revealInSidebar(doc.querySelector('.sidebar-content'), active);\n}\n\n/**\n * Scrolls the sidebar, never the page, to centre an item that is not fully visible.\n * Centring keeps it clear of the edges, where a pinned footer can cover it.\n */\nfunction revealInSidebar(sidebar: Element | null, item: Element | null): void {\n if (!sidebar || !item) {\n return;\n }\n const box = sidebar.getBoundingClientRect();\n const rect = item.getBoundingClientRect();\n if (rect.top >= box.top && rect.bottom <= box.bottom) {\n return;\n }\n const offset = rect.top + rect.height / 2 - (box.top + box.height / 2);\n sidebar.scrollTop = Math.max(0, Math.round(sidebar.scrollTop + offset));\n}\n\n/**\n * Re-opens the active item's group after every navigation, once the new\n * `routerLinkActive` classes have rendered.\n */\nexport function watchActiveGroup(doc: Document, routerEvents$: Observable<unknown>): Subscription {\n return routerEvents$\n .pipe(filter(event => event instanceof NavigationEnd))\n .subscribe(() => setTimeout(() => openActiveGroup(doc)));\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,SAAS,WAAW,OAAa;CAC7B,IAAI;EACA,OAAO,IAAI,IAAI,KAAK,CAAC,CAAC,aAAa;CACvC,QAAQ;EACJ,OAAO;CACX;AACJ;AAWA,IAAa,yBAAb,MAAa,uBAAsB;CATnC,cAAA;EAUqB,KAAA,YAAY,OAAO,YAAY;EAC/B,KAAA,WAAW,OAAO,QAAQ;EAEnC,KAAA,eAA8B;EAC9B,KAAA,eAAuC;EACvC,KAAA,YAA2B;CAyCtC;CArCG,IAAI,UAAO;EACP,OAAO,kBAAkB;CAC7B;CAEA,IAAY,SAAM;EACd,MAAM,MAAM,KAAK,SAAS;EAC1B,OAAO,OAAO,WAAW,GAAG,IAAI,MAAM;CAC1C;CAEA,IAAI,mBAAgB;EAChB,MAAM,MAAM,KAAK;EACjB,IAAI,CAAC,KACD,OAAO;EAEX,IAAI,QAAQ,KAAK,cAAc;GAC3B,KAAK,eAAe;GAEpB,KAAK,e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AS;CACpE,QAAQ,YAAY,KAAK,IAAI,GAAG,KAAK,MAAM,QAAQ,YAAY,MAAM,CAAC;AAC1E;AAMA,SAAgB,iBAAiB,KAAe,eAAkC;CAC9E,OAAO,cACF,KAAK,QAAO,UAAS,iBAAiB,aAAa,CAAC,CAAC,CACrD,gBAAgB,iBAAiB,gBAAgB,GAAG,CAAC,CAAC;AAC/D"}
|
package/package.json
CHANGED
|
@@ -21,12 +21,18 @@ import { Observable, Subscription } from "rxjs";
|
|
|
21
21
|
declare namespace documentation_view_component_d_exports {
|
|
22
22
|
export { DocumentationComponent };
|
|
23
23
|
}
|
|
24
|
-
export declare class DocumentationComponent
|
|
24
|
+
export declare class DocumentationComponent {
|
|
25
25
|
private readonly sanitizer;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
private readonly location;
|
|
27
|
+
private sanitizedFor;
|
|
28
|
+
private sanitizedUrl;
|
|
29
|
+
private loadedUrl;
|
|
30
|
+
get product(): any;
|
|
31
|
+
private get rawUrl();
|
|
32
|
+
get documentationUrl(): SafeResourceUrl | null;
|
|
33
|
+
get isLoaded(): boolean;
|
|
29
34
|
onIframeLoad(): void;
|
|
35
|
+
goBack(): void;
|
|
30
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentationComponent, never>;
|
|
31
37
|
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentationComponent, "pw-documentation", never, {}, {}, never, never, true, never>;
|
|
32
38
|
}
|