@posiwise/dashboard-module 0.0.151 → 0.0.153
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,7 +1,7 @@
|
|
|
1
1
|
import * as i2 from "@angular/common";
|
|
2
2
|
import { CommonModule } from "@angular/common";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
import { CUSTOM_ELEMENTS_SCHEMA, Component, NgModule } from "@angular/core";
|
|
4
|
+
import { CUSTOM_ELEMENTS_SCHEMA, Component, Inject, InjectionToken, NgModule, Optional } from "@angular/core";
|
|
5
5
|
import * as i2$1 from "@angular/forms";
|
|
6
6
|
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
|
|
7
7
|
import * as i1$1 from "@posiwise/common-services";
|
|
@@ -20,7 +20,7 @@ import { SelectModule } from "primeng/select";
|
|
|
20
20
|
import * as i1 from "@ng-bootstrap/ng-bootstrap";
|
|
21
21
|
import { NgbDropdownModule, NgbNavModule } from "@ng-bootstrap/ng-bootstrap";
|
|
22
22
|
import * as i3$1 from "@angular/router";
|
|
23
|
-
import { RouterModule } from "@angular/router";
|
|
23
|
+
import { NavigationEnd, RouterModule } from "@angular/router";
|
|
24
24
|
import * as i6 from "@posiwise/shared-components";
|
|
25
25
|
import { ResourceSharedComponentsModule } from "@posiwise/shared-components";
|
|
26
26
|
import * as i5$1 from "primeng/tooltip";
|
|
@@ -29,7 +29,7 @@ import * as i1$2 from "@angular/platform-browser";
|
|
|
29
29
|
import { AppBaseComponent } from "@posiwise/app-base-component";
|
|
30
30
|
import { ADMIN_ROUTERS } from "@posiwise/common-utilities";
|
|
31
31
|
import { HelperService } from "@posiwise/helper-service";
|
|
32
|
-
import { Subject, forkJoin, of } from "rxjs";
|
|
32
|
+
import { Subject, filter, forkJoin, of } from "rxjs";
|
|
33
33
|
import { catchError, debounceTime, finalize, map, switchMap, take, takeUntil } from "rxjs/operators";
|
|
34
34
|
import groupBy from "lodash/groupBy";
|
|
35
35
|
import sortBy from "lodash/sortBy";
|
|
@@ -568,6 +568,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
568
568
|
{ type: i0.ChangeDetectorRef }
|
|
569
569
|
]
|
|
570
570
|
});
|
|
571
|
+
const HOME_PRODUCT_SECTIONS = new InjectionToken("HOME_PRODUCT_SECTIONS");
|
|
571
572
|
var UserFeedbackComponent = class UserFeedbackComponent extends AppBaseComponent {
|
|
572
573
|
constructor(injector, commonService, cdr) {
|
|
573
574
|
super(injector);
|
|
@@ -737,10 +738,11 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
737
738
|
]
|
|
738
739
|
});
|
|
739
740
|
var HomeComponent = class HomeComponent extends AppBaseComponent {
|
|
740
|
-
constructor(injector, hopscotchService, cdr) {
|
|
741
|
+
constructor(injector, hopscotchService, cdr, productSections) {
|
|
741
742
|
super(injector);
|
|
742
743
|
this.hopscotchService = hopscotchService;
|
|
743
744
|
this.cdr = cdr;
|
|
745
|
+
this.productSections = productSections;
|
|
744
746
|
this.componentActive = true;
|
|
745
747
|
}
|
|
746
748
|
sanitizeContent(jsonString) {
|
|
@@ -797,23 +799,41 @@ var HomeComponent = class HomeComponent extends AppBaseComponent {
|
|
|
797
799
|
deps: [
|
|
798
800
|
{ token: i0.Injector },
|
|
799
801
|
{ token: i1$1.HopscotchService },
|
|
800
|
-
{ token: i0.ChangeDetectorRef }
|
|
802
|
+
{ token: i0.ChangeDetectorRef },
|
|
803
|
+
{
|
|
804
|
+
token: HOME_PRODUCT_SECTIONS,
|
|
805
|
+
optional: true
|
|
806
|
+
}
|
|
801
807
|
],
|
|
802
808
|
target: i0.ɵɵFactoryTarget.Component
|
|
803
809
|
});
|
|
804
810
|
}
|
|
805
811
|
static {
|
|
806
812
|
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
807
|
-
minVersion: "
|
|
813
|
+
minVersion: "17.0.0",
|
|
808
814
|
version: "22.2.0",
|
|
809
815
|
type: HomeComponent,
|
|
810
816
|
isStandalone: false,
|
|
811
817
|
selector: "pw-home",
|
|
812
818
|
usesInheritance: true,
|
|
813
819
|
ngImport: i0,
|
|
814
|
-
template: "<pw-user-feedback></pw-user-feedback>\n<div class=\"row mt-3\">\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <div id=\"cards\"></div>\n <h3 class=\"mb-3\">{{'ManageYourAccount'|transloco}}</h3>\n <p>{{'ManageYourAccountDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/ManageYourAccount.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a routerLink=\"/account/details\"\n class=\"d-block\">{{'ManageYourAccount'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step2\"></div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'UpdateYourProfile'|transloco}}</h3>\n <p>{{'UpdateYourProfileDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/UpdateYourProfile.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a [routerLink]=\"['/members', userSlug]\"\n class=\"d-block\">{{'UpdateYourProfile'|transloco}}</a>\n </div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'CommunicationSettings'|transloco}}</h3>\n <p>\n {{'CommunicationSettingsDescription'|transloco}}\n </p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/CommunicationSettings.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a routerLink=\"/settings/communication\"\n class=\"d-block\">{{'GotoCommunicationSettings'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step3\"></div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'NeedHelp'|transloco}}</h3>\n <p>{{'NeedHelpDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/NeedHelp.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a [routerLink]=\"'/' + selectedSubscriptionSlug + '/faq'\"\n class=\"d-block\">{{'SeeAllOurFaq'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step4\"></div>\n </div>\n </div>\n </div>\n</div>\n",
|
|
820
|
+
template: "<pw-user-feedback></pw-user-feedback>\n@if (productSections?.length) {\n @for (section of productSections; track section) {\n <ng-container *ngComponentOutlet=\"section\"></ng-container>\n }\n}\n<div class=\"row mt-3\">\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <div id=\"cards\"></div>\n <h3 class=\"mb-3\">{{'ManageYourAccount'|transloco}}</h3>\n <p>{{'ManageYourAccountDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/ManageYourAccount.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a routerLink=\"/account/details\"\n class=\"d-block\">{{'ManageYourAccount'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step2\"></div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'UpdateYourProfile'|transloco}}</h3>\n <p>{{'UpdateYourProfileDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/UpdateYourProfile.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a [routerLink]=\"['/members', userSlug]\"\n class=\"d-block\">{{'UpdateYourProfile'|transloco}}</a>\n </div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'CommunicationSettings'|transloco}}</h3>\n <p>\n {{'CommunicationSettingsDescription'|transloco}}\n </p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/CommunicationSettings.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a routerLink=\"/settings/communication\"\n class=\"d-block\">{{'GotoCommunicationSettings'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step3\"></div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'NeedHelp'|transloco}}</h3>\n <p>{{'NeedHelpDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/NeedHelp.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a [routerLink]=\"'/' + selectedSubscriptionSlug + '/faq'\"\n class=\"d-block\">{{'SeeAllOurFaq'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step4\"></div>\n </div>\n </div>\n </div>\n</div>\n",
|
|
815
821
|
styles: ["::ng-deep .hopscotch-title{text-align:center!important;margin-bottom:20px!important}::ng-deep .hopscotch-title h2{margin:0}::ng-deep .hopscotch-content{text-align:center;padding:20px;margin:0!important}::ng-deep .hopscotch-content img{width:150px;margin:20px 0}::ng-deep .hopscotch-content p{font-size:16px;color:#555}::ng-deep .hopscotch-step-title{text-align:left;margin-bottom:15px}::ng-deep .hopscotch-step-content{padding:20px;text-align:left!important}::ng-deep .hopscotch-step-content p{font-size:14px;color:#555;margin-bottom:10px;text-align:left!important}\n"],
|
|
816
822
|
dependencies: [
|
|
823
|
+
{
|
|
824
|
+
kind: "directive",
|
|
825
|
+
type: i2.NgComponentOutlet,
|
|
826
|
+
selector: "[ngComponentOutlet]",
|
|
827
|
+
inputs: [
|
|
828
|
+
"ngComponentOutlet",
|
|
829
|
+
"ngComponentOutletInputs",
|
|
830
|
+
"ngComponentOutletInjector",
|
|
831
|
+
"ngComponentOutletEnvironmentInjector",
|
|
832
|
+
"ngComponentOutletContent",
|
|
833
|
+
"ngComponentOutletNgModule"
|
|
834
|
+
],
|
|
835
|
+
exportAs: ["ngComponentOutlet"]
|
|
836
|
+
},
|
|
817
837
|
{
|
|
818
838
|
kind: "directive",
|
|
819
839
|
type: i3$1.RouterLink,
|
|
@@ -862,14 +882,21 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
862
882
|
args: [{
|
|
863
883
|
selector: "pw-home",
|
|
864
884
|
standalone: false,
|
|
865
|
-
template: "<pw-user-feedback></pw-user-feedback>\n<div class=\"row mt-3\">\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <div id=\"cards\"></div>\n <h3 class=\"mb-3\">{{'ManageYourAccount'|transloco}}</h3>\n <p>{{'ManageYourAccountDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/ManageYourAccount.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a routerLink=\"/account/details\"\n class=\"d-block\">{{'ManageYourAccount'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step2\"></div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'UpdateYourProfile'|transloco}}</h3>\n <p>{{'UpdateYourProfileDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/UpdateYourProfile.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a [routerLink]=\"['/members', userSlug]\"\n class=\"d-block\">{{'UpdateYourProfile'|transloco}}</a>\n </div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'CommunicationSettings'|transloco}}</h3>\n <p>\n {{'CommunicationSettingsDescription'|transloco}}\n </p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/CommunicationSettings.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a routerLink=\"/settings/communication\"\n class=\"d-block\">{{'GotoCommunicationSettings'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step3\"></div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'NeedHelp'|transloco}}</h3>\n <p>{{'NeedHelpDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/NeedHelp.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a [routerLink]=\"'/' + selectedSubscriptionSlug + '/faq'\"\n class=\"d-block\">{{'SeeAllOurFaq'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step4\"></div>\n </div>\n </div>\n </div>\n</div>\n",
|
|
885
|
+
template: "<pw-user-feedback></pw-user-feedback>\n@if (productSections?.length) {\n @for (section of productSections; track section) {\n <ng-container *ngComponentOutlet=\"section\"></ng-container>\n }\n}\n<div class=\"row mt-3\">\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <div id=\"cards\"></div>\n <h3 class=\"mb-3\">{{'ManageYourAccount'|transloco}}</h3>\n <p>{{'ManageYourAccountDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/ManageYourAccount.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a routerLink=\"/account/details\"\n class=\"d-block\">{{'ManageYourAccount'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step2\"></div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'UpdateYourProfile'|transloco}}</h3>\n <p>{{'UpdateYourProfileDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/UpdateYourProfile.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a [routerLink]=\"['/members', userSlug]\"\n class=\"d-block\">{{'UpdateYourProfile'|transloco}}</a>\n </div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'CommunicationSettings'|transloco}}</h3>\n <p>\n {{'CommunicationSettingsDescription'|transloco}}\n </p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/CommunicationSettings.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a routerLink=\"/settings/communication\"\n class=\"d-block\">{{'GotoCommunicationSettings'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step3\"></div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'NeedHelp'|transloco}}</h3>\n <p>{{'NeedHelpDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/NeedHelp.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a [routerLink]=\"'/' + selectedSubscriptionSlug + '/faq'\"\n class=\"d-block\">{{'SeeAllOurFaq'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step4\"></div>\n </div>\n </div>\n </div>\n</div>\n",
|
|
866
886
|
styles: ["::ng-deep .hopscotch-title{text-align:center!important;margin-bottom:20px!important}::ng-deep .hopscotch-title h2{margin:0}::ng-deep .hopscotch-content{text-align:center;padding:20px;margin:0!important}::ng-deep .hopscotch-content img{width:150px;margin:20px 0}::ng-deep .hopscotch-content p{font-size:16px;color:#555}::ng-deep .hopscotch-step-title{text-align:left;margin-bottom:15px}::ng-deep .hopscotch-step-content{padding:20px;text-align:left!important}::ng-deep .hopscotch-step-content p{font-size:14px;color:#555;margin-bottom:10px;text-align:left!important}\n"]
|
|
867
887
|
}]
|
|
868
888
|
}],
|
|
869
889
|
ctorParameters: () => [
|
|
870
890
|
{ type: i0.Injector },
|
|
871
891
|
{ type: i1$1.HopscotchService },
|
|
872
|
-
{ type: i0.ChangeDetectorRef }
|
|
892
|
+
{ type: i0.ChangeDetectorRef },
|
|
893
|
+
{
|
|
894
|
+
type: void 0,
|
|
895
|
+
decorators: [{ type: Optional }, {
|
|
896
|
+
type: Inject,
|
|
897
|
+
args: [HOME_PRODUCT_SECTIONS]
|
|
898
|
+
}]
|
|
899
|
+
}
|
|
873
900
|
]
|
|
874
901
|
});
|
|
875
902
|
var CurrentNotificationsComponent = class CurrentNotificationsComponent {
|
|
@@ -1965,6 +1992,27 @@ const ROUTES = [createMenuItem({
|
|
|
1965
1992
|
submenu: generateAdminSubmenu()
|
|
1966
1993
|
})];
|
|
1967
1994
|
const { FAQ_Menu, ENTERPRISE_MENU, CHAT_MENU, BLOG_MENU } = COMMON_MENUS;
|
|
1968
|
-
|
|
1995
|
+
function openActiveGroup(doc) {
|
|
1996
|
+
if (doc.querySelector(".wrapper")?.classList.contains("nav-collapsed")) return;
|
|
1997
|
+
const active = doc.querySelector(".sidebar-content .navigation li.active");
|
|
1998
|
+
let parent = active?.parentElement?.closest("li.has-sub");
|
|
1999
|
+
while (parent) {
|
|
2000
|
+
parent.classList.add("open");
|
|
2001
|
+
parent = parent.parentElement?.closest("li.has-sub");
|
|
2002
|
+
}
|
|
2003
|
+
revealInSidebar(doc.querySelector(".sidebar-content"), active);
|
|
2004
|
+
}
|
|
2005
|
+
function revealInSidebar(sidebar, item) {
|
|
2006
|
+
if (!sidebar || !item) return;
|
|
2007
|
+
const box = sidebar.getBoundingClientRect();
|
|
2008
|
+
const rect = item.getBoundingClientRect();
|
|
2009
|
+
if (rect.top >= box.top && rect.bottom <= box.bottom) return;
|
|
2010
|
+
const offset = rect.top + rect.height / 2 - (box.top + box.height / 2);
|
|
2011
|
+
sidebar.scrollTop = Math.max(0, Math.round(sidebar.scrollTop + offset));
|
|
2012
|
+
}
|
|
2013
|
+
function watchActiveGroup(doc, routerEvents$) {
|
|
2014
|
+
return routerEvents$.pipe(filter((event) => event instanceof NavigationEnd)).subscribe(() => setTimeout(() => openActiveGroup(doc)));
|
|
2015
|
+
}
|
|
2016
|
+
export { BLOG_MENU, CHAT_MENU, CurrentNotificationsComponent, DashboardContentModule, DashboardLibModule, DismissedNotificationsComponent, DocumentationComponent, ENTERPRISE_MENU, FAQ_Menu, FaqComponent, FaqDetailsComponent, HOME_PRODUCT_SECTIONS, HomeComponent, NotificationsPageComponent, ROUTES, SearchComponent, UserFeedbackComponent, filterMenusByFeatureFlag, openActiveGroup, watchActiveGroup };
|
|
1969
2017
|
|
|
1970
2018
|
//# sourceMappingURL=posiwise-dashboard-module.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"posiwise-dashboard-module.mjs","names":["i1","i2","i1","i2","i3","i4","i5","i1","i2","i3","i5","i6","i7","i8","i1","i2","i1","i2","i3","i4.UserFeedbackComponent","i5","i1","i3","i4","i1","i3","i4","i2.CurrentNotificationsComponent","i3.DismissedNotificationsComponent","i1","i2","i3","i4","i5","i6","i8"],"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.component.ts","../../../../libs/dashboard-module/src/lib/home/home.component.html","../../../../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"],"sourcesContent":["import { Component, OnInit } from '@angular/core';\nimport { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';\n\n@Component({\n selector: 'pw-documentation',\n templateUrl: './documentation-view.component.html',\n styleUrls: ['./documentation-view.component.scss'],\n\n standalone: false\n})\nexport class DocumentationComponent implements OnInit {\n iframeUrl: SafeResourceUrl;\n isLoaded = false;\n\n constructor(private readonly sanitizer: DomSanitizer) {}\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=\"Documentation Frame\"\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 { ChangeDetectorRef, Component, Injector, OnDestroy, OnInit } from '@angular/core';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\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';\n\nimport { forkJoin, Subject } from 'rxjs';\nimport { debounceTime, finalize, takeUntil } from 'rxjs/operators';\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\n standalone: false\n})\nexport class FaqComponent extends AppBaseComponent implements OnInit, OnDestroy {\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 constructor(\n private readonly commonService: CommonService,\n injector: Injector,\n private readonly productService: ProductService,\n private readonly sanitizer: DomSanitizer,\n private readonly cdr: ChangeDetectorRef\n ) {\n super(injector);\n }\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, 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.products;\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 Documentation\n </button>\n }\n </div>\n <div>\n @if (showSupport) {\n <button\n class=\"btn btn-sm btn-primary\"\n (click)=\"navigateToSupport()\">\n Support\n </button>\n }\n </div>\n </div>\n\n <h1>You need help?</h1>\n <p><em>Please search through our frequently asked questions first.</em></p>\n </div>\n <div class=\"card-block p-2 p-sm-2\">\n <fieldset>\n <legend></legend>\n <label for=\"faq-search\" class=\"visually-hidden\">Search in FAQs</label>\n <input type=\"text\"\n id=\"faq-search\"\n name=\"faq-search\"\n class=\"form-control bg-white\"\n placeholder=\"Search FAQs...\"\n (input)=\"filter($event.target.value)\"\n #messageInput\n aria-label=\"Search FAQs...\" />\n </fieldset>\n </div>\n </div>\n </div>\n </div>\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n }\n @if (faqs) {\n @for (category of objectKeys(faqs); track category; let idx1 = $index) {\n <div>\n @if (faqs[category]?.length) {\n <h6 class=\"text-uppercase mt-3 p-1\">{{ faqHashMap[category]?.name }}</h6>\n <div class=\"dashboard\">\n @for (\n faq of faqs[category]; track trackByProductFaqId(idx,\n faq); let idx = $index) {\n <div class=\"faq-item\"\n >\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n (click)=\"onCollapseToggle(idx + '-' + idx1, faq?.answer)\"\n [href]=\"'#collapse' + idx + idx1\">\n {{ faq.question }}\n </a>\n </h5>\n @if (canEditFaq && faq?.id) {\n <a class=\"faq-edit-link\"\n [pTooltip]=\"'Admin.Faq.EditTitle' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\"\n [attr.aria-label]=\"'Admin.Faq.EditTitle' | transloco\"\n [routerLink]=\"[routers.faqDetails + faq.id]\"\n target=\"_blank\">\n <i class=\"fa fa-edit edit-icon\" aria-hidden=\"true\"></i>\n </a>\n }\n </div>\n <div [id]=\"'collapse' + idx + idx1\"\n class=\"panel-collapse p-3 collapse in\">\n <div class=\"card-block\">\n @if (faq?.answer) {\n <div class=\"ql-container ql-snow no-border\">\n <div class=\"ql-editor\"\n [innerHTML]=\"sanitizedFaqAnswers[idx + '-' + idx1]\">\n </div>\n </div>\n }\n </div>\n </div>\n </div>\n }\n </div>\n }\n </div>\n }\n }\n @if (isLoaded && (totalRecords === 0 || allFaqFalse)) {\n <div>\n <pw-no-data [withImage]=\"true\" message=\"This is embarrassing - we couldn't find any FAQ.\"> </pw-no-data>\n </div>\n }\n</div>\n","/// 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 { ChangeDetectorRef, Component, Injector, OnInit } from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\n\nimport { AppBaseComponent } from '@posiwise/app-base-component';\nimport { CommonService, PermissionService } from '@posiwise/common-services';\nimport { ADMIN_ROUTERS, FAQ } from '@posiwise/common-utilities';\n\nimport { forkJoin, of } from 'rxjs';\nimport { catchError, finalize, map, switchMap, take } from 'rxjs/operators';\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\n standalone: false\n})\nexport class FaqDetailsComponent extends AppBaseComponent implements OnInit {\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: FAQ;\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 private readonly commonService: CommonService,\n injector: Injector,\n private readonly sanitizer: DomSanitizer,\n private readonly cdr: ChangeDetectorRef\n ) {\n super(injector);\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, 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 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=\"No Faq found\">\n </pw-no-data>\n }\n <div class=\"text-end mt-3\">\n <button class=\"btn btn-outline-primary\"\n [routerLink]=\"['/',slug,'faq']\">See all FAQs</button>\n </div>\n </div>\n}\n@if (isLoading) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n}\n","import { ChangeDetectorRef, Component, Injector, OnInit } from '@angular/core';\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';\n\n@Component({\n selector: 'pw-user-feedback',\n templateUrl: './user-feedback.component.html',\n styleUrls: ['./user-feedback.component.scss'],\n\n standalone: false\n})\nexport class UserFeedbackComponent extends AppBaseComponent implements OnInit {\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 constructor(\n injector: Injector,\n private readonly commonService: CommonService,\n private readonly cdr: ChangeDetectorRef\n ) {\n super(injector);\n }\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(res => {\n this.questions = res;\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 >Your input is valuable to us</h3>\n }\n @if (first) {\n <p class=\"mb-4\"\n >\n Please take a moment to answer these questions\n </p>\n }\n <h6 class=\"fw-bold pb-3 mx-auto\">{{ question?.question }}</h6>\n <div class=\"text-center row p-2 mx-md-2 feedback-value\">\n <span class=\"col-auto me-0\">Not at all</span>\n @for (val of counter(11); track val; let i = $index) {\n <div class=\"p-field-checkbox col-auto ms-0 me-0\">\n <p-radio-button name=\"feedback\" [(ngModel)]=\"selectedValue\" [value]=\"i\" [inputId]=\"i\"></p-radio-button>\n <br />\n <label [for]=\"i\">{{ i }}</label>\n </div>\n }\n <span class=\"col-auto ms-0\">Extremely</span>\n </div>\n <div class=\"text mt-3\">\n <h6>Can you tell us the reason for your score? Do you have any particular features you want us to build or fix?</h6>\n <label for=\"user-feedback-description\" class=\"visually-hidden\">Reason for your score</label>\n <textarea id=\"user-feedback-description\"\n rows=\"4\"\n name=\"description\"\n placeholder=\"“What is the primary reason for your score?”\"\n ngModel\n type=\"text\"\n pInputTextarea\n class=\"form-control\"\n aria-label=\"“What is the primary reason for your score?”\">\n </textarea>\n </div>\n <div class=\"mt-3\">\n <button class=\"btn btn-primary d-block mx-auto\"\n (click)=\"onSubmit(question?.id, feedbackForm.value)\">\n Submit\n </button>\n </div>\n </div>\n </form>\n </div>\n </div>\n }\n </div>\n </div>\n }\n}\n","import { ChangeDetectorRef, Component, Injector, OnDestroy, OnInit } from '@angular/core';\n\nimport { AppBaseComponent } from '@posiwise/app-base-component';\nimport { HopscotchService, PermissionService } from '@posiwise/common-services';\nimport { User } from '@posiwise/common-utilities';\n\n@Component({\n selector: 'pw-home',\n templateUrl: './home.component.html',\n styleUrls: ['./home.component.scss'],\n\n standalone: false\n})\nexport class HomeComponent extends AppBaseComponent implements OnInit, OnDestroy {\n user: User;\n\n userSlug: string;\n\n componentActive = true;\n\n selectedSubscriptionSlug: string;\n subscriptionId: number;\n\n constructor(\n injector: Injector,\n private readonly hopscotchService: HopscotchService,\n private readonly cdr: ChangeDetectorRef\n ) {\n super(injector);\n }\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(response => {\n if (response?.length) {\n const welcomeTips = response.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<div class=\"row mt-3\">\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <div id=\"cards\"></div>\n <h3 class=\"mb-3\">{{'ManageYourAccount'|transloco}}</h3>\n <p>{{'ManageYourAccountDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/ManageYourAccount.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a routerLink=\"/account/details\"\n class=\"d-block\">{{'ManageYourAccount'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step2\"></div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'UpdateYourProfile'|transloco}}</h3>\n <p>{{'UpdateYourProfileDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/UpdateYourProfile.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a [routerLink]=\"['/members', userSlug]\"\n class=\"d-block\">{{'UpdateYourProfile'|transloco}}</a>\n </div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'CommunicationSettings'|transloco}}</h3>\n <p>\n {{'CommunicationSettingsDescription'|transloco}}\n </p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/CommunicationSettings.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a routerLink=\"/settings/communication\"\n class=\"d-block\">{{'GotoCommunicationSettings'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step3\"></div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'NeedHelp'|transloco}}</h3>\n <p>{{'NeedHelpDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/NeedHelp.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a [routerLink]=\"'/' + selectedSubscriptionSlug + '/faq'\"\n class=\"d-block\">{{'SeeAllOurFaq'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step4\"></div>\n </div>\n </div>\n </div>\n</div>\n","import { ChangeDetectorRef, Component, OnInit } from '@angular/core';\n\nimport { NotificationService } from '@posiwise/common-services';\n\n@Component({\n selector: 'pw-current-notifications',\n templateUrl: './current-notifications.component.html',\n styleUrls: ['../notifications-page.component.scss'],\n\n standalone: false\n})\nexport class CurrentNotificationsComponent implements OnInit {\n notificationCount = 0;\n\n noNoti = true;\n\n itemsPerPage = 100;\n\n notifications = [];\n\n currentPage = 1;\n\n isLoaded = false;\n\n totalPages = 1;\n\n totalRecords = 0;\n\n constructor(\n private readonly notificationService: NotificationService,\n private readonly cdr: ChangeDetectorRef\n ) {}\n\n ngOnInit() {\n this.getNotifications();\n }\n\n private getNotifications() {\n this.notificationService\n .getNotifications({ page: this.currentPage, page_size: this.itemsPerPage })\n .subscribe(data => {\n if (Array.isArray(data?.notes) && data?.notes?.length > 0) {\n this.totalRecords = data.unfiltered_count;\n this.notifications = data.notes?.filter(\n note => !note.dismissed && note.show_on_dashboard\n );\n this.totalPages = Math.ceil(data.unfiltered_count / this.itemsPerPage);\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 this.notificationService.dismissNotification(id).subscribe(() => {\n // Remove notification from notification array\n const index = this.notifications.indexOf(e);\n this.notifications.splice(index, 1);\n\n if (this.notifications.length === 0) {\n this.noNoti = true;\n }\n this.cdr.markForCheck();\n\n $('#noty').slideUp('slow', () => {\n $('#noty').remove();\n });\n });\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=\"p-3 border-bottom border-bottom-blue-grey border-bottom-lighten-4 d-flex align-items-center\">\n <span class=\"btn btn-circle me-2\"\n [ngClass]=\"{\n 'btn-danger': item.note_type === 'administrative',\n 'btn-secondary': item.note_type === 'object_event',\n 'btn-primary': item.note_type === 'user_generated'\n }\">\n <i\n class=\"fal float-start\"\n [ngClass]=\"{\n 'fa-bell': item.note_type === 'administrative',\n 'fa-share-alt': item.note_type === 'object_event',\n 'fa-bells': item.note_type === 'user_generated'\n }\"\n aria-hidden=\"true\"\n ></i>\n </span>\n <span class=\"d-inline-block noty-body\">\n <span class=\"noti-title line-height-1p5 d-block text-bold-400\">{{\n item.content\n }}</span>\n <span class=\"noti-text\"><span class=\"fal fa-clock\"></span>\n {{ item?.created_at | sinceAgo }}</span>\n </span>\n <span class=\"noti-buttons\">\n <button class=\"btn float-end\">\n <i\n class=\"far fa-trash-alt\"\n (click)=\"dismiss(item.id, item)\"\n (keydown.enter)=\"dismiss(item.id, item)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n </span>\n </li>\n }\n </ul>\n </div>\n <div class=\"pagination-container d-flex justify-content-between align-items-center mt-3 mb-3\">\n <pw-records-summary [showing]=\"totalRecords\" [total]=\"totalRecords\" />\n <div class=\"d-flex align-items-center\">\n <button class=\"btn btn-outline-primary me-2\" (click)=\"previousPage()\" [disabled]=\"currentPage === 1\">\n <i class=\"fas fa-chevron-left\"></i>\n </button>\n <span>Page {{ currentPage }} of {{ totalPages }}</span>\n <button class=\"btn btn-outline-primary ms-2\" (click)=\"nextPage()\" [disabled]=\"currentPage === totalPages\">\n <i class=\"fas fa-chevron-right\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>\n}\n\n@if (noNoti && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12\"\n >\n <pw-no-data [withImage]=\"true\" message=\"You are all caught up\" description=\"You currently do not have any notifications.\">\n </pw-no-data>\n </div>\n}\n</div>\n","import { ChangeDetectorRef, Component, OnInit } from '@angular/core';\n\nimport { NotificationService } from '@posiwise/common-services';\nimport { HelperService } from '@posiwise/helper-service';\n\n@Component({\n selector: 'pw-dismissed-notifications',\n templateUrl: './dismissed-notifications.component.html',\n styleUrls: ['../notifications-page.component.scss'],\n\n standalone: false\n})\nexport class DismissedNotificationsComponent implements OnInit {\n notificationCount = 0;\n\n noNoti = true;\n\n dismissedNotifications = [];\n\n isLoaded = false;\n\n itemsPerPage = 100;\n\n currentPage = 1;\n\n totalPages = 1;\n\n totalRecords = 0;\n\n constructor(\n private readonly notificationService: NotificationService,\n private readonly cdr: ChangeDetectorRef\n ) {}\n\n ngOnInit() {\n this.getNotifications();\n }\n\n private getNotifications() {\n this.notificationService\n .getDismissedNotifications({ page: this.currentPage, page_size: this.itemsPerPage })\n .subscribe(data => {\n if (Array.isArray(data?.notes) && data?.notes?.length > 0) {\n this.noNoti = false;\n this.dismissedNotifications = data?.notes;\n this.totalRecords = data?.unfiltered_count;\n this.totalPages = Math.ceil(data.unfiltered_count / this.itemsPerPage);\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 HelperService.raiseDeletePopup().then(res => {\n if (res.value) {\n this.notificationService.deleteNotifications(id).subscribe(() => {\n // Remove notification from notification array\n const index = this.dismissedNotifications.indexOf(e);\n this.dismissedNotifications.splice(index, 1);\n\n if (this.dismissedNotifications.length === 0) {\n this.noNoti = true;\n }\n this.cdr.markForCheck();\n\n $('#noty').slideUp('slow', () => {\n $('#noty').remove();\n });\n });\n }\n });\n }\n\n restoreNotification(id: number, e) {\n this.notificationService.reinstateNotification(id).subscribe(() => {\n // Remove notification from dismissed notification array\n const index = this.dismissedNotifications.indexOf(e);\n this.dismissedNotifications.splice(index, 1);\n\n if (this.dismissedNotifications.length === 0) {\n this.noNoti = true;\n }\n this.cdr.markForCheck();\n\n $('#noty').slideUp('slow', () => {\n $('#noty').remove();\n });\n });\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=\"p-3 border-bottom border-bottom-blue-grey border-bottom-lighten-4 d-flex align-items-center\">\n <span class=\"btn btn-circle me-2\"\n [ngClass]=\"{\n 'btn-danger': item.note_type === 'administrative',\n 'btn-secondary': item.note_type === 'object_event',\n 'btn-primary': item.note_type === 'user_generated'\n }\">\n <i\n class=\"fal float-start\"\n [ngClass]=\"{\n 'fa-bell': item.note_type === 'administrative',\n 'fa-share-alt': item.note_type === 'object_event',\n 'fa-bells': item.note_type === 'user_generated'\n }\"\n aria-hidden=\"true\"\n ></i>\n </span>\n <span class=\"d-inline-block noty-body\">\n <span class=\"noti-title line-height-1p5 d-block text-bold-400\">{{\n item.content\n }}</span>\n <span class=\"noti-text\"><span class=\"fal fa-clock\"></span>\n {{ item?.created_at | sinceAgo }}</span>\n </span>\n <span class=\"noti-buttons\">\n <button class=\"btn float-end\">\n <i\n class=\"far fa-trash-alt\"\n (click)=\"dismiss(item.id, item)\"\n (keydown.enter)=\"dismiss(item.id, item)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n <button class=\"btn float-end\">\n <i\n class=\"fas fa-trash-restore-alt\"\n (click)=\"restoreNotification(item.id, item)\"\n (keydown.enter)=\"restoreNotification(item.id, item)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n </span>\n </li>\n }\n </ul>\n </div>\n <div class=\"pagination-container d-flex justify-content-between align-items-center mt-3 mb-3\">\n <pw-records-summary [showing]=\"totalRecords\" [total]=\"totalRecords\" />\n <div class=\"d-flex align-items-center\">\n <button class=\"btn btn-outline-primary me-2\" (click)=\"previousPage()\" [disabled]=\"currentPage === 1\">\n <i class=\"fas fa-chevron-left\"></i>\n </button>\n <span>Page {{ currentPage }} of {{ totalPages }}</span>\n <button class=\"btn btn-outline-primary ms-2\" (click)=\"nextPage()\" [disabled]=\"currentPage === totalPages\">\n <i class=\"fas fa-chevron-right\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>\n}\n\n@if (noNoti && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12\"\n >\n <pw-no-data [withImage]=\"true\" message=\"You currently do not have any dismissed notifications\">\n </pw-no-data>\n </div>\n}\n</div>\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'pw-notifications-page',\n templateUrl: './notifications-page.component.html',\n styleUrls: ['./notifications-page.component.scss'],\n\n standalone: false\n})\nexport class NotificationsPageComponent {}\n","<div class=\"row\">\n <div class=\"col-12 col-sm-12 col-md-12 mt-4\">\n <h2 class=\"p-2\">Notifications</h2>\n </div>\n</div>\n\n<ul ngbNav\n #nav=\"ngbNav\"\n class=\"nav-tabs\">\n <li [ngbNavItem]=\"1\">\n <a ngbNavLink>Current Notifications</a>\n <ng-template ngbNavContent>\n <pw-current-notifications></pw-current-notifications>\n </ng-template>\n </li>\n <li [ngbNavItem]=\"2\">\n <a ngbNavLink>Dismissed Notifications</a>\n <ng-template ngbNavContent>\n <pw-dismissed-notifications></pw-dismissed-notifications>\n </ng-template>\n </li>\n</ul>\n\n<div [ngbNavOutlet]=\"nav\"></div>\n","import { ChangeDetectorRef, Component, OnInit } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\n\nimport { DashboardService, PermissionService } from '@posiwise/common-services';\nimport { GlobalSearchResponse } from '@posiwise/common-utilities';\nimport { HelperService } from '@posiwise/helper-service';\n\n@Component({\n selector: 'pw-search',\n templateUrl: './search.component.html',\n styleUrls: ['./search.component.scss'],\n\n standalone: false\n})\nexport class SearchComponent implements OnInit {\n private readonly emptySearchResult: GlobalSearchResponse = {\n users: [],\n faqs: [],\n recipients: []\n };\n\n keyword: string;\n\n result: GlobalSearchResponse;\n\n isLoaded = false;\n\n objectKeys = Object.keys;\n\n subscriptionId: number;\n\n constructor(\n private readonly route: ActivatedRoute,\n private readonly service: DashboardService,\n private readonly cdr: ChangeDetectorRef\n ) {}\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(response => {\n this.result = {\n ...this.emptySearchResult,\n ...response\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 GlobalSearchResponse | 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 GlobalSearchResponse {\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>Search Results</h2>\n </div>\n </div>\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\">\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n }\n @if (isLoaded) {\n <div class=\"row faqlist search-result\">\n <div class=\"col-12\">\n <div data-cy=\"faq-list\">\n @if (result) {\n @for (group of objectKeys(result); track group; let idx = $index) {\n <div>\n @switch (group) {\n @case ('users') {\n @if (getResultGroup(group).length) {\n <h6 class=\"text-uppercase mt-3 p-1\">{{ group }}</h6>\n <div class=\"dashboard\">\n @for (\n user of getResultGroup(group); track trackByUserId($index, user); let idx1 = $index) {\n <div class=\"faq-item\">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a\n class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n [href]=\"'#collapse' + idx1 + idx\"><span>{{\n user.first_name !== null\n ? user.first_name\n : user?.email\n }}</span></a>\n </h5>\n <p class=\"m-0 title-font\">\n @if (user.user_skills?.length > 0) {\n <strong>Skills :\n </strong>\n }\n @for (\n skill of (user.user_skills ?? []); track trackBySkill($index, skill); let isLast = $last) {\n <span class=\"badge bg-success m-1\">\n {{ skill.name\n }}{{ isLast ? '' : ', ' }}</span>\n }\n </p>\n @if (\n user?.user_profile?.headline\n ?.length > 0\n ) {\n <p class=\"m-0 title-font\">\n {{ user?.user_profile?.headline }}\n </p>\n }\n @if (\n user?.user_profile?.country\n ?.length > 0\n ) {\n <p class=\"m-0 title-font\">\n <strong>Location : </strong>{{ user?.user_profile?.country }}\n </p>\n }\n </div>\n <div [id]=\"'collapse' + idx1 + idx\"\n class=\"panel-collapse collapse in p-3\">\n <div class=\"display-block overflow-hidden\">\n <div class=\"row align-items-center\">\n <div class=\"col-sm-3\">\n @if (user?.user_avatar?.length > 0) {\n @for (\n profile_image of user.user_avatar; track profile_image) {\n @if (profile_image.width === 200) {\n <div class=\"text-center my-2\">\n <div class=\"avatar\">\n <img class=\"img-fluid\"\n [src]=\"profile_image.url\"\n alt=\"Male Icon\"\n (error)=\"handleImageError($event, 'assets/img/icons/male.png')\" />\n </div>\n </div>\n }\n }\n } @else {\n <div class=\"text-center my-2\">\n <div class=\"avatar\">\n <img src=\"/assets/img/icons/male.png\"\n alt=\"\"\n class=\"img-fluid\" />\n </div>\n </div>\n }\n </div>\n <div class=\"col-sm-9\">\n <ul class=\"name-fl\">\n <li>\n <strong>First Name:\n </strong>\n <span>{{\n user.first_name !== null\n ? user.first_name\n : 'N/A'\n }}</span>\n </li>\n <li>\n <strong>Last Name:\n </strong>\n <span>{{\n user.last_name !== null\n ? user.last_name\n : 'N/A'\n }}</span>\n </li>\n </ul>\n <p>\n <strong>Email: </strong>\n <span>{{\n user.email !== null\n ? user.email\n : 'N/A'\n }}</span>\n </p>\n <p>\n <strong>Description:\n </strong>\n <span>{{\n user?.user_profile\n ?.description !== null\n ? user?.user_profile\n ?.description\n : 'N/A'\n }}</span>\n </p>\n <div class=\"view-btn text-end\">\n <a class=\"btn btn-outline-primary inline-block\"\n [routerLink]=\"[\n '/members/' +\n user.slug\n ]\">View More</a>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n }\n @case ('faqs') {\n @if (getResultGroup(group).length) {\n <h6>\n {{ group | uppercase }}\n </h6>\n @for (\n faq of getResultGroup(group); track trackByFaqId($index, faq); let idx2 = $index) {\n <div class=\"faq-item\">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a\n class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n [href]=\"'#collapse' + idx2 + idx\">{{ faq.question }}</a>\n </h5>\n </div>\n <div [id]=\"'collapse' + idx2 + idx\"\n class=\"panel-collapse collapse in\">\n @if (faq?.answer) {\n <div class=\"ql-container ql-snow no-border\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer |safe:'html'\">\n </div>\n </div>\n }\n </div>\n </div>\n }\n }\n }\n }\n </div>\n }\n @if (!hasResults) {\n <pw-no-data [withImage]=\"true\" [message]=\"'Search.NoDataMessage' | transloco\" [description]=\"'Search.NoDataDescription' | transloco\">\n </pw-no-data>\n }\n }\n </div>\n </div>\n </div>\n }\n </div>\n </div>\n</div>\n","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 ],\n declarations: [\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 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 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 icon: 'far fa-users'\n }),\n createSubMenuItem({\n permission: 'Pages.Alpha',\n path: ':slug/enterprise/partners',\n title: 'Partners',\n icon: 'far fa-users'\n }),\n createSubMenuItem({\n permission: 'Pages.Beta',\n path: ':slug/enterprise/groups',\n title: 'Teams',\n icon: 'far fa-users-class'\n }),\n createSubMenuItem({\n permission: 'Pages.Beta',\n path: ':slug/enterprise/communications',\n title: 'Communications',\n icon: 'fas fa-comments'\n }),\n createSubMenuItem({\n permission: 'Pages.Beta',\n path: ':slug/enterprise/wiki',\n title: 'Documentation',\n icon: 'fab fa-wikipedia-w'\n }),\n createSubMenuItem({\n // Alpha users who are admins (or super admins). `granted:` reads the\n // literal grant: a plain `Pages.Alpha` is true for EVERY super admin, but\n // brain-api only admits users whose alpha flag is set. \"Use my data\" is\n // enforced by the page and by brain-api. Spaces around the parentheses\n // are required: the expression parser splits on spaces.\n permission: 'granted:Pages.Alpha && ( SuperAdmin || SubscriptionAdmin )',\n path: ':slug/enterprise/ai-knowledge',\n title: 'AI Knowledge',\n icon: 'fa fa-brain'\n }),\n createSubMenuItem({\n permission: 'Pages.Beta',\n path: ':slug/enterprise/insights',\n title: '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 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 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', icon: 'far fa-book' },\n { key: 'DOMAIN_CONFIG', title: 'Domains', icon: 'fa fa-fw fa-cog' },\n { key: 'USERS', title: 'Users', icon: 'far fa-user-cog' },\n { key: 'SUBSCRIPTION', title: 'Subscriptions', icon: 'ft-box' },\n { key: 'PRODUCT', title: 'Products', icon: 'far fa-parking' },\n { key: 'LOGIN_NOTIFICATION', title: 'Notifications', icon: 'fa fa-fw fa-bell' },\n { key: 'NEWSLETTER', title: 'Newsletters', icon: 'far fa-newspaper' },\n { key: 'MAILER', title: 'Mailers', icon: 'far fa-envelope' },\n { key: 'BLOG', title: 'Resources', icon: 'far fa-blog' },\n { key: 'FEATURE_FLAGS', title: 'Feature Flags', icon: 'fa fa-fw fa-toggle-on' },\n { key: 'FAQ', title: 'FAQs', icon: 'fa fa-question' },\n { key: 'INCIDENT', title: 'Incidents', icon: 'fa fa-solid fa-triangle-exclamation' },\n { key: 'CONTACT_US', title: 'Contact Us', icon: 'fa fa-address-book' },\n { key: 'TIPS', title: 'Tours', icon: 'far fa-lightbulb' },\n { key: 'TAGS', title: 'Tags', icon: 'far fa-tags' },\n { key: 'ROLES', title: 'Permissions', icon: 'fas fa-key' },\n { key: 'TOS', title: 'Privacy & TOS', icon: 'fas fa-sticky-note' },\n { key: 'CREDENTIAL', title: 'Credentials', icon: 'fas fa-file-signature' },\n { key: 'OAUTH_CLIENTS', title: 'MCP OAuth Clients', icon: 'fas fa-robot' },\n // fa-handshake is already the ambassador icon in the users list.\n { key: 'AMBASSADOR_PAYOUTS', title: 'Ambassador Payouts', icon: 'fa fa-handshake' },\n { key: 'TRACKING', title: 'Tracking', icon: 'fa fa-map-marker' },\n { key: 'GLOBAL_CONFIG', title: 'Global Configs', 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 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 icon: 'ft-home',\n order: 1\n }),\n createMenuItem({\n permission: 'Pages.Admin',\n path: null,\n title: '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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,IAAa,yBAAb,MAAa,uBAAsB;CAI/B,YAA6B,WAAuB;EAAvB,KAAA,YAAA;EAF7B,KAAA,WAAW;CAE4C;CAEvD,WAAQ;EAGJ,MAAM,SADoB,eAAe,QAAQ,mBAClC;EAEf,IAAI,QAEA,KAAK,YAAY,KAAK,UAAU,+BAA+B,MAAM;OAGrE,KAAK,WAAW;CAExB;CAEA,eAAY;EAER,iBAAgB;GACZ,KAAK,WAAW;EACpB,GAAG,CAAC;CACR;CAzBS;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAsB,MAAA,CAAA,EAAA,OAAAA,KAAA,aAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAtB;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAsB,cAAA;GAAA,UAAA;GAAA,UAAA;GAAA,UCVnC;GAkBA,QAAA,CAAA,oHAAA;GAAA,cAAA,CAAA;IAAA,MAAA;IAAA,MAAAC,KAAA;IAAA,UAAA;IAAA,QAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;IAAA;GAAA,CAAA;EAAA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backComponent","i6","i1","i3","i4","i1","i3","i4","i2.CurrentNotificationsComponent","i3.DismissedNotificationsComponent","i1","i2","i3","i4","i5","i6","i8"],"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/home/home-product-sections.token.ts","../../../../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.component.ts","../../../../libs/dashboard-module/src/lib/home/home.component.html","../../../../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, OnInit } from '@angular/core';\nimport { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';\n\n@Component({\n selector: 'pw-documentation',\n templateUrl: './documentation-view.component.html',\n styleUrls: ['./documentation-view.component.scss'],\n\n standalone: false\n})\nexport class DocumentationComponent implements OnInit {\n iframeUrl: SafeResourceUrl;\n isLoaded = false;\n\n constructor(private readonly sanitizer: DomSanitizer) {}\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=\"Documentation Frame\"\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 { ChangeDetectorRef, Component, Injector, OnDestroy, OnInit } from '@angular/core';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\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';\n\nimport { forkJoin, Subject } from 'rxjs';\nimport { debounceTime, finalize, takeUntil } from 'rxjs/operators';\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\n standalone: false\n})\nexport class FaqComponent extends AppBaseComponent implements OnInit, OnDestroy {\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 constructor(\n private readonly commonService: CommonService,\n injector: Injector,\n private readonly productService: ProductService,\n private readonly sanitizer: DomSanitizer,\n private readonly cdr: ChangeDetectorRef\n ) {\n super(injector);\n }\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, 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.products;\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 Documentation\n </button>\n }\n </div>\n <div>\n @if (showSupport) {\n <button\n class=\"btn btn-sm btn-primary\"\n (click)=\"navigateToSupport()\">\n Support\n </button>\n }\n </div>\n </div>\n\n <h1>You need help?</h1>\n <p><em>Please search through our frequently asked questions first.</em></p>\n </div>\n <div class=\"card-block p-2 p-sm-2\">\n <fieldset>\n <legend></legend>\n <label for=\"faq-search\" class=\"visually-hidden\">Search in FAQs</label>\n <input type=\"text\"\n id=\"faq-search\"\n name=\"faq-search\"\n class=\"form-control bg-white\"\n placeholder=\"Search FAQs...\"\n (input)=\"filter($event.target.value)\"\n #messageInput\n aria-label=\"Search FAQs...\" />\n </fieldset>\n </div>\n </div>\n </div>\n </div>\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n }\n @if (faqs) {\n @for (category of objectKeys(faqs); track category; let idx1 = $index) {\n <div>\n @if (faqs[category]?.length) {\n <h6 class=\"text-uppercase mt-3 p-1\">{{ faqHashMap[category]?.name }}</h6>\n <div class=\"dashboard\">\n @for (\n faq of faqs[category]; track trackByProductFaqId(idx,\n faq); let idx = $index) {\n <div class=\"faq-item\"\n >\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n (click)=\"onCollapseToggle(idx + '-' + idx1, faq?.answer)\"\n [href]=\"'#collapse' + idx + idx1\">\n {{ faq.question }}\n </a>\n </h5>\n @if (canEditFaq && faq?.id) {\n <a class=\"faq-edit-link\"\n [pTooltip]=\"'Admin.Faq.EditTitle' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\"\n [attr.aria-label]=\"'Admin.Faq.EditTitle' | transloco\"\n [routerLink]=\"[routers.faqDetails + faq.id]\"\n target=\"_blank\">\n <i class=\"fa fa-edit edit-icon\" aria-hidden=\"true\"></i>\n </a>\n }\n </div>\n <div [id]=\"'collapse' + idx + idx1\"\n class=\"panel-collapse p-3 collapse in\">\n <div class=\"card-block\">\n @if (faq?.answer) {\n <div class=\"ql-container ql-snow no-border\">\n <div class=\"ql-editor\"\n [innerHTML]=\"sanitizedFaqAnswers[idx + '-' + idx1]\">\n </div>\n </div>\n }\n </div>\n </div>\n </div>\n }\n </div>\n }\n </div>\n }\n }\n @if (isLoaded && (totalRecords === 0 || allFaqFalse)) {\n <div>\n <pw-no-data [withImage]=\"true\" message=\"This is embarrassing - we couldn't find any FAQ.\"> </pw-no-data>\n </div>\n }\n</div>\n","/// 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 { ChangeDetectorRef, Component, Injector, OnInit } from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\n\nimport { AppBaseComponent } from '@posiwise/app-base-component';\nimport { CommonService, PermissionService } from '@posiwise/common-services';\nimport { ADMIN_ROUTERS, FAQ } from '@posiwise/common-utilities';\n\nimport { forkJoin, of } from 'rxjs';\nimport { catchError, finalize, map, switchMap, take } from 'rxjs/operators';\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\n standalone: false\n})\nexport class FaqDetailsComponent extends AppBaseComponent implements OnInit {\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: FAQ;\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 private readonly commonService: CommonService,\n injector: Injector,\n private readonly sanitizer: DomSanitizer,\n private readonly cdr: ChangeDetectorRef\n ) {\n super(injector);\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, 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 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=\"No Faq found\">\n </pw-no-data>\n }\n <div class=\"text-end mt-3\">\n <button class=\"btn btn-outline-primary\"\n [routerLink]=\"['/',slug,'faq']\">See all FAQs</button>\n </div>\n </div>\n}\n@if (isLoading) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n}\n","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 { ChangeDetectorRef, Component, Injector, OnInit } from '@angular/core';\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';\n\n@Component({\n selector: 'pw-user-feedback',\n templateUrl: './user-feedback.component.html',\n styleUrls: ['./user-feedback.component.scss'],\n\n standalone: false\n})\nexport class UserFeedbackComponent extends AppBaseComponent implements OnInit {\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 constructor(\n injector: Injector,\n private readonly commonService: CommonService,\n private readonly cdr: ChangeDetectorRef\n ) {\n super(injector);\n }\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(res => {\n this.questions = res;\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 >Your input is valuable to us</h3>\n }\n @if (first) {\n <p class=\"mb-4\"\n >\n Please take a moment to answer these questions\n </p>\n }\n <h6 class=\"fw-bold pb-3 mx-auto\">{{ question?.question }}</h6>\n <div class=\"text-center row p-2 mx-md-2 feedback-value\">\n <span class=\"col-auto me-0\">Not at all</span>\n @for (val of counter(11); track val; let i = $index) {\n <div class=\"p-field-checkbox col-auto ms-0 me-0\">\n <p-radio-button name=\"feedback\" [(ngModel)]=\"selectedValue\" [value]=\"i\" [inputId]=\"i\"></p-radio-button>\n <br />\n <label [for]=\"i\">{{ i }}</label>\n </div>\n }\n <span class=\"col-auto ms-0\">Extremely</span>\n </div>\n <div class=\"text mt-3\">\n <h6>Can you tell us the reason for your score? Do you have any particular features you want us to build or fix?</h6>\n <label for=\"user-feedback-description\" class=\"visually-hidden\">Reason for your score</label>\n <textarea id=\"user-feedback-description\"\n rows=\"4\"\n name=\"description\"\n placeholder=\"“What is the primary reason for your score?”\"\n ngModel\n type=\"text\"\n pInputTextarea\n class=\"form-control\"\n aria-label=\"“What is the primary reason for your score?”\">\n </textarea>\n </div>\n <div class=\"mt-3\">\n <button class=\"btn btn-primary d-block mx-auto\"\n (click)=\"onSubmit(question?.id, feedbackForm.value)\">\n Submit\n </button>\n </div>\n </div>\n </form>\n </div>\n </div>\n }\n </div>\n </div>\n }\n}\n","import {\n ChangeDetectorRef,\n Component,\n Inject,\n Injector,\n OnDestroy,\n OnInit,\n Optional,\n Type\n} from '@angular/core';\n\nimport { AppBaseComponent } from '@posiwise/app-base-component';\nimport { HopscotchService, PermissionService } from '@posiwise/common-services';\nimport { User } from '@posiwise/common-utilities';\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\n standalone: false\n})\nexport class HomeComponent extends AppBaseComponent implements OnInit, OnDestroy {\n user: User;\n\n userSlug: string;\n\n componentActive = true;\n\n selectedSubscriptionSlug: string;\n subscriptionId: number;\n\n constructor(\n injector: Injector,\n private readonly hopscotchService: HopscotchService,\n private readonly cdr: ChangeDetectorRef,\n @Optional()\n @Inject(HOME_PRODUCT_SECTIONS)\n readonly productSections?: Type<unknown>[] | null\n ) {\n super(injector);\n }\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(response => {\n if (response?.length) {\n const welcomeTips = response.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=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a routerLink=\"/account/details\"\n class=\"d-block\">{{'ManageYourAccount'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step2\"></div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'UpdateYourProfile'|transloco}}</h3>\n <p>{{'UpdateYourProfileDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/UpdateYourProfile.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a [routerLink]=\"['/members', userSlug]\"\n class=\"d-block\">{{'UpdateYourProfile'|transloco}}</a>\n </div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'CommunicationSettings'|transloco}}</h3>\n <p>\n {{'CommunicationSettingsDescription'|transloco}}\n </p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/CommunicationSettings.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a routerLink=\"/settings/communication\"\n class=\"d-block\">{{'GotoCommunicationSettings'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step3\"></div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'NeedHelp'|transloco}}</h3>\n <p>{{'NeedHelpDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/NeedHelp.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a [routerLink]=\"'/' + selectedSubscriptionSlug + '/faq'\"\n class=\"d-block\">{{'SeeAllOurFaq'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step4\"></div>\n </div>\n </div>\n </div>\n</div>\n","import { ChangeDetectorRef, Component, OnInit } from '@angular/core';\n\nimport { NotificationService } from '@posiwise/common-services';\n\n@Component({\n selector: 'pw-current-notifications',\n templateUrl: './current-notifications.component.html',\n styleUrls: ['../notifications-page.component.scss'],\n\n standalone: false\n})\nexport class CurrentNotificationsComponent implements OnInit {\n notificationCount = 0;\n\n noNoti = true;\n\n itemsPerPage = 100;\n\n notifications = [];\n\n currentPage = 1;\n\n isLoaded = false;\n\n totalPages = 1;\n\n totalRecords = 0;\n\n constructor(\n private readonly notificationService: NotificationService,\n private readonly cdr: ChangeDetectorRef\n ) {}\n\n ngOnInit() {\n this.getNotifications();\n }\n\n private getNotifications() {\n this.notificationService\n .getNotifications({ page: this.currentPage, page_size: this.itemsPerPage })\n .subscribe(data => {\n if (Array.isArray(data?.notes) && data?.notes?.length > 0) {\n this.totalRecords = data.unfiltered_count;\n this.notifications = data.notes?.filter(\n note => !note.dismissed && note.show_on_dashboard\n );\n this.totalPages = Math.ceil(data.unfiltered_count / this.itemsPerPage);\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 this.notificationService.dismissNotification(id).subscribe(() => {\n // Remove notification from notification array\n const index = this.notifications.indexOf(e);\n this.notifications.splice(index, 1);\n\n if (this.notifications.length === 0) {\n this.noNoti = true;\n }\n this.cdr.markForCheck();\n\n $('#noty').slideUp('slow', () => {\n $('#noty').remove();\n });\n });\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=\"p-3 border-bottom border-bottom-blue-grey border-bottom-lighten-4 d-flex align-items-center\">\n <span class=\"btn btn-circle me-2\"\n [ngClass]=\"{\n 'btn-danger': item.note_type === 'administrative',\n 'btn-secondary': item.note_type === 'object_event',\n 'btn-primary': item.note_type === 'user_generated'\n }\">\n <i\n class=\"fal float-start\"\n [ngClass]=\"{\n 'fa-bell': item.note_type === 'administrative',\n 'fa-share-alt': item.note_type === 'object_event',\n 'fa-bells': item.note_type === 'user_generated'\n }\"\n aria-hidden=\"true\"\n ></i>\n </span>\n <span class=\"d-inline-block noty-body\">\n <span class=\"noti-title line-height-1p5 d-block text-bold-400\">{{\n item.content\n }}</span>\n <span class=\"noti-text\"><span class=\"fal fa-clock\"></span>\n {{ item?.created_at | sinceAgo }}</span>\n </span>\n <span class=\"noti-buttons\">\n <button class=\"btn float-end\">\n <i\n class=\"far fa-trash-alt\"\n (click)=\"dismiss(item.id, item)\"\n (keydown.enter)=\"dismiss(item.id, item)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n </span>\n </li>\n }\n </ul>\n </div>\n <div class=\"pagination-container d-flex justify-content-between align-items-center mt-3 mb-3\">\n <pw-records-summary [showing]=\"totalRecords\" [total]=\"totalRecords\" />\n <div class=\"d-flex align-items-center\">\n <button class=\"btn btn-outline-primary me-2\" (click)=\"previousPage()\" [disabled]=\"currentPage === 1\">\n <i class=\"fas fa-chevron-left\"></i>\n </button>\n <span>Page {{ currentPage }} of {{ totalPages }}</span>\n <button class=\"btn btn-outline-primary ms-2\" (click)=\"nextPage()\" [disabled]=\"currentPage === totalPages\">\n <i class=\"fas fa-chevron-right\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>\n}\n\n@if (noNoti && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12\"\n >\n <pw-no-data [withImage]=\"true\" message=\"You are all caught up\" description=\"You currently do not have any notifications.\">\n </pw-no-data>\n </div>\n}\n</div>\n","import { ChangeDetectorRef, Component, OnInit } from '@angular/core';\n\nimport { NotificationService } from '@posiwise/common-services';\nimport { HelperService } from '@posiwise/helper-service';\n\n@Component({\n selector: 'pw-dismissed-notifications',\n templateUrl: './dismissed-notifications.component.html',\n styleUrls: ['../notifications-page.component.scss'],\n\n standalone: false\n})\nexport class DismissedNotificationsComponent implements OnInit {\n notificationCount = 0;\n\n noNoti = true;\n\n dismissedNotifications = [];\n\n isLoaded = false;\n\n itemsPerPage = 100;\n\n currentPage = 1;\n\n totalPages = 1;\n\n totalRecords = 0;\n\n constructor(\n private readonly notificationService: NotificationService,\n private readonly cdr: ChangeDetectorRef\n ) {}\n\n ngOnInit() {\n this.getNotifications();\n }\n\n private getNotifications() {\n this.notificationService\n .getDismissedNotifications({ page: this.currentPage, page_size: this.itemsPerPage })\n .subscribe(data => {\n if (Array.isArray(data?.notes) && data?.notes?.length > 0) {\n this.noNoti = false;\n this.dismissedNotifications = data?.notes;\n this.totalRecords = data?.unfiltered_count;\n this.totalPages = Math.ceil(data.unfiltered_count / this.itemsPerPage);\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 HelperService.raiseDeletePopup().then(res => {\n if (res.value) {\n this.notificationService.deleteNotifications(id).subscribe(() => {\n // Remove notification from notification array\n const index = this.dismissedNotifications.indexOf(e);\n this.dismissedNotifications.splice(index, 1);\n\n if (this.dismissedNotifications.length === 0) {\n this.noNoti = true;\n }\n this.cdr.markForCheck();\n\n $('#noty').slideUp('slow', () => {\n $('#noty').remove();\n });\n });\n }\n });\n }\n\n restoreNotification(id: number, e) {\n this.notificationService.reinstateNotification(id).subscribe(() => {\n // Remove notification from dismissed notification array\n const index = this.dismissedNotifications.indexOf(e);\n this.dismissedNotifications.splice(index, 1);\n\n if (this.dismissedNotifications.length === 0) {\n this.noNoti = true;\n }\n this.cdr.markForCheck();\n\n $('#noty').slideUp('slow', () => {\n $('#noty').remove();\n });\n });\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=\"p-3 border-bottom border-bottom-blue-grey border-bottom-lighten-4 d-flex align-items-center\">\n <span class=\"btn btn-circle me-2\"\n [ngClass]=\"{\n 'btn-danger': item.note_type === 'administrative',\n 'btn-secondary': item.note_type === 'object_event',\n 'btn-primary': item.note_type === 'user_generated'\n }\">\n <i\n class=\"fal float-start\"\n [ngClass]=\"{\n 'fa-bell': item.note_type === 'administrative',\n 'fa-share-alt': item.note_type === 'object_event',\n 'fa-bells': item.note_type === 'user_generated'\n }\"\n aria-hidden=\"true\"\n ></i>\n </span>\n <span class=\"d-inline-block noty-body\">\n <span class=\"noti-title line-height-1p5 d-block text-bold-400\">{{\n item.content\n }}</span>\n <span class=\"noti-text\"><span class=\"fal fa-clock\"></span>\n {{ item?.created_at | sinceAgo }}</span>\n </span>\n <span class=\"noti-buttons\">\n <button class=\"btn float-end\">\n <i\n class=\"far fa-trash-alt\"\n (click)=\"dismiss(item.id, item)\"\n (keydown.enter)=\"dismiss(item.id, item)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n <button class=\"btn float-end\">\n <i\n class=\"fas fa-trash-restore-alt\"\n (click)=\"restoreNotification(item.id, item)\"\n (keydown.enter)=\"restoreNotification(item.id, item)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n </span>\n </li>\n }\n </ul>\n </div>\n <div class=\"pagination-container d-flex justify-content-between align-items-center mt-3 mb-3\">\n <pw-records-summary [showing]=\"totalRecords\" [total]=\"totalRecords\" />\n <div class=\"d-flex align-items-center\">\n <button class=\"btn btn-outline-primary me-2\" (click)=\"previousPage()\" [disabled]=\"currentPage === 1\">\n <i class=\"fas fa-chevron-left\"></i>\n </button>\n <span>Page {{ currentPage }} of {{ totalPages }}</span>\n <button class=\"btn btn-outline-primary ms-2\" (click)=\"nextPage()\" [disabled]=\"currentPage === totalPages\">\n <i class=\"fas fa-chevron-right\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>\n}\n\n@if (noNoti && isLoaded) {\n <div class=\"col-12 col-sm-12 col-md-12\"\n >\n <pw-no-data [withImage]=\"true\" message=\"You currently do not have any dismissed notifications\">\n </pw-no-data>\n </div>\n}\n</div>\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'pw-notifications-page',\n templateUrl: './notifications-page.component.html',\n styleUrls: ['./notifications-page.component.scss'],\n\n standalone: false\n})\nexport class NotificationsPageComponent {}\n","<div class=\"row\">\n <div class=\"col-12 col-sm-12 col-md-12 mt-4\">\n <h2 class=\"p-2\">Notifications</h2>\n </div>\n</div>\n\n<ul ngbNav\n #nav=\"ngbNav\"\n class=\"nav-tabs\">\n <li [ngbNavItem]=\"1\">\n <a ngbNavLink>Current Notifications</a>\n <ng-template ngbNavContent>\n <pw-current-notifications></pw-current-notifications>\n </ng-template>\n </li>\n <li [ngbNavItem]=\"2\">\n <a ngbNavLink>Dismissed Notifications</a>\n <ng-template ngbNavContent>\n <pw-dismissed-notifications></pw-dismissed-notifications>\n </ng-template>\n </li>\n</ul>\n\n<div [ngbNavOutlet]=\"nav\"></div>\n","import { ChangeDetectorRef, Component, OnInit } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\n\nimport { DashboardService, PermissionService } from '@posiwise/common-services';\nimport { GlobalSearchResponse } from '@posiwise/common-utilities';\nimport { HelperService } from '@posiwise/helper-service';\n\n@Component({\n selector: 'pw-search',\n templateUrl: './search.component.html',\n styleUrls: ['./search.component.scss'],\n\n standalone: false\n})\nexport class SearchComponent implements OnInit {\n private readonly emptySearchResult: GlobalSearchResponse = {\n users: [],\n faqs: [],\n recipients: []\n };\n\n keyword: string;\n\n result: GlobalSearchResponse;\n\n isLoaded = false;\n\n objectKeys = Object.keys;\n\n subscriptionId: number;\n\n constructor(\n private readonly route: ActivatedRoute,\n private readonly service: DashboardService,\n private readonly cdr: ChangeDetectorRef\n ) {}\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(response => {\n this.result = {\n ...this.emptySearchResult,\n ...response\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 GlobalSearchResponse | 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 GlobalSearchResponse {\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>Search Results</h2>\n </div>\n </div>\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\">\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n }\n @if (isLoaded) {\n <div class=\"row faqlist search-result\">\n <div class=\"col-12\">\n <div data-cy=\"faq-list\">\n @if (result) {\n @for (group of objectKeys(result); track group; let idx = $index) {\n <div>\n @switch (group) {\n @case ('users') {\n @if (getResultGroup(group).length) {\n <h6 class=\"text-uppercase mt-3 p-1\">{{ group }}</h6>\n <div class=\"dashboard\">\n @for (\n user of getResultGroup(group); track trackByUserId($index, user); let idx1 = $index) {\n <div class=\"faq-item\">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a\n class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n [href]=\"'#collapse' + idx1 + idx\"><span>{{\n user.first_name !== null\n ? user.first_name\n : user?.email\n }}</span></a>\n </h5>\n <p class=\"m-0 title-font\">\n @if (user.user_skills?.length > 0) {\n <strong>Skills :\n </strong>\n }\n @for (\n skill of (user.user_skills ?? []); track trackBySkill($index, skill); let isLast = $last) {\n <span class=\"badge bg-success m-1\">\n {{ skill.name\n }}{{ isLast ? '' : ', ' }}</span>\n }\n </p>\n @if (\n user?.user_profile?.headline\n ?.length > 0\n ) {\n <p class=\"m-0 title-font\">\n {{ user?.user_profile?.headline }}\n </p>\n }\n @if (\n user?.user_profile?.country\n ?.length > 0\n ) {\n <p class=\"m-0 title-font\">\n <strong>Location : </strong>{{ user?.user_profile?.country }}\n </p>\n }\n </div>\n <div [id]=\"'collapse' + idx1 + idx\"\n class=\"panel-collapse collapse in p-3\">\n <div class=\"display-block overflow-hidden\">\n <div class=\"row align-items-center\">\n <div class=\"col-sm-3\">\n @if (user?.user_avatar?.length > 0) {\n @for (\n profile_image of user.user_avatar; track profile_image) {\n @if (profile_image.width === 200) {\n <div class=\"text-center my-2\">\n <div class=\"avatar\">\n <img class=\"img-fluid\"\n [src]=\"profile_image.url\"\n alt=\"Male Icon\"\n (error)=\"handleImageError($event, 'assets/img/icons/male.png')\" />\n </div>\n </div>\n }\n }\n } @else {\n <div class=\"text-center my-2\">\n <div class=\"avatar\">\n <img src=\"/assets/img/icons/male.png\"\n alt=\"\"\n class=\"img-fluid\" />\n </div>\n </div>\n }\n </div>\n <div class=\"col-sm-9\">\n <ul class=\"name-fl\">\n <li>\n <strong>First Name:\n </strong>\n <span>{{\n user.first_name !== null\n ? user.first_name\n : 'N/A'\n }}</span>\n </li>\n <li>\n <strong>Last Name:\n </strong>\n <span>{{\n user.last_name !== null\n ? user.last_name\n : 'N/A'\n }}</span>\n </li>\n </ul>\n <p>\n <strong>Email: </strong>\n <span>{{\n user.email !== null\n ? user.email\n : 'N/A'\n }}</span>\n </p>\n <p>\n <strong>Description:\n </strong>\n <span>{{\n user?.user_profile\n ?.description !== null\n ? user?.user_profile\n ?.description\n : 'N/A'\n }}</span>\n </p>\n <div class=\"view-btn text-end\">\n <a class=\"btn btn-outline-primary inline-block\"\n [routerLink]=\"[\n '/members/' +\n user.slug\n ]\">View More</a>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n }\n @case ('faqs') {\n @if (getResultGroup(group).length) {\n <h6>\n {{ group | uppercase }}\n </h6>\n @for (\n faq of getResultGroup(group); track trackByFaqId($index, faq); let idx2 = $index) {\n <div class=\"faq-item\">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a\n class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n [href]=\"'#collapse' + idx2 + idx\">{{ faq.question }}</a>\n </h5>\n </div>\n <div [id]=\"'collapse' + idx2 + idx\"\n class=\"panel-collapse collapse in\">\n @if (faq?.answer) {\n <div class=\"ql-container ql-snow no-border\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer |safe:'html'\">\n </div>\n </div>\n }\n </div>\n </div>\n }\n }\n }\n }\n </div>\n }\n @if (!hasResults) {\n <pw-no-data [withImage]=\"true\" [message]=\"'Search.NoDataMessage' | transloco\" [description]=\"'Search.NoDataDescription' | transloco\">\n </pw-no-data>\n }\n }\n </div>\n </div>\n </div>\n }\n </div>\n </div>\n</div>\n","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 ],\n declarations: [\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 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 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 icon: 'far fa-users'\n }),\n createSubMenuItem({\n permission: 'Pages.Alpha',\n path: ':slug/enterprise/partners',\n title: 'Partners',\n icon: 'far fa-users'\n }),\n createSubMenuItem({\n permission: 'Pages.Beta',\n path: ':slug/enterprise/groups',\n title: 'Teams',\n icon: 'far fa-users-class'\n }),\n createSubMenuItem({\n permission: 'Pages.Beta',\n path: ':slug/enterprise/communications',\n title: 'Communications',\n icon: 'fas fa-comments'\n }),\n createSubMenuItem({\n permission: 'Pages.Beta',\n path: ':slug/enterprise/wiki',\n title: 'Documentation',\n icon: 'fab fa-wikipedia-w'\n }),\n createSubMenuItem({\n // Alpha users who are admins (or super admins). `granted:` reads the\n // literal grant: a plain `Pages.Alpha` is true for EVERY super admin, but\n // brain-api only admits users whose alpha flag is set. \"Use my data\" is\n // enforced by the page and by brain-api. Spaces around the parentheses\n // are required: the expression parser splits on spaces.\n permission: 'granted:Pages.Alpha && ( SuperAdmin || SubscriptionAdmin )',\n path: ':slug/enterprise/ai-knowledge',\n title: 'AI Knowledge',\n icon: 'fa fa-brain'\n }),\n createSubMenuItem({\n permission: 'Pages.Beta',\n path: ':slug/enterprise/insights',\n title: '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 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 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', icon: 'far fa-book' },\n { key: 'DOMAIN_CONFIG', title: 'Domains', icon: 'fa fa-fw fa-cog' },\n { key: 'USERS', title: 'Users', icon: 'far fa-user-cog' },\n { key: 'SUBSCRIPTION', title: 'Subscriptions', icon: 'ft-box' },\n { key: 'PRODUCT', title: 'Products', icon: 'far fa-parking' },\n { key: 'LOGIN_NOTIFICATION', title: 'Notifications', icon: 'fa fa-fw fa-bell' },\n { key: 'NEWSLETTER', title: 'Newsletters', icon: 'far fa-newspaper' },\n { key: 'MAILER', title: 'Mailers', icon: 'far fa-envelope' },\n { key: 'BLOG', title: 'Resources', icon: 'far fa-blog' },\n { key: 'FEATURE_FLAGS', title: 'Feature Flags', icon: 'fa fa-fw fa-toggle-on' },\n { key: 'FAQ', title: 'FAQs', icon: 'fa fa-question' },\n { key: 'INCIDENT', title: 'Incidents', icon: 'fa fa-solid fa-triangle-exclamation' },\n { key: 'CONTACT_US', title: 'Contact Us', icon: 'fa fa-address-book' },\n { key: 'TIPS', title: 'Tours', icon: 'far fa-lightbulb' },\n { key: 'TAGS', title: 'Tags', icon: 'far fa-tags' },\n { key: 'ROLES', title: 'Permissions', icon: 'fas fa-key' },\n { key: 'TOS', title: 'Privacy & TOS', icon: 'fas fa-sticky-note' },\n { key: 'CREDENTIAL', title: 'Credentials', icon: 'fas fa-file-signature' },\n { key: 'OAUTH_CLIENTS', title: 'MCP OAuth Clients', icon: 'fas fa-robot' },\n // fa-handshake is already the ambassador icon in the users list.\n { key: 'AMBASSADOR_PAYOUTS', title: 'Ambassador Payouts', icon: 'fa fa-handshake' },\n { key: 'TRACKING', title: 'Tracking', icon: 'fa fa-map-marker' },\n { key: 'GLOBAL_CONFIG', title: 'Global Configs', 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 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 icon: 'ft-home',\n order: 1\n }),\n createMenuItem({\n permission: 'Pages.Admin',\n path: null,\n title: '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":";;;;;;;;;;;;;;;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M;EAC3B,SAAS,OAAO,eAAe,QAAQ,YAAY;CACvD;CACA,gBAAgB,IAAI,cAAc,kBAAkB,GAAG,MAAM;AACjE;AAMA,SAAS,gBAAgB,SAAyB,MAAoB;CAClE,IAAI,CAAC,WAAW,CAAC,MACb;CAEJ,MAAM,MAAM,QAAQ,sBAAqB;CACzC,MAAM,OAAO,KAAK,sBAAqB;CACvC,IAAI,KAAK,OAAO,IAAI,OAAO,KAAK,UAAU,IAAI,QAC1C;CAEJ,MAAM,SAAS,KAAK,MAAM,KAAK,SAAS,KAAK,IAAI,MAAM,IAAI,SAAS;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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { ChangeDetectorRef, Injector, OnDestroy, OnInit } from "@angular/core";
|
|
2
|
+
import { ChangeDetectorRef, InjectionToken, Injector, OnDestroy, OnInit, Type } from "@angular/core";
|
|
3
3
|
import * as i10 from "@angular/common";
|
|
4
4
|
import * as i11 from "@angular/forms";
|
|
5
5
|
import * as i15 from "@posiwise/pipes";
|
|
@@ -18,6 +18,7 @@ import * as i12 from "@angular/router";
|
|
|
18
18
|
import { ActivatedRoute } from "@angular/router";
|
|
19
19
|
import * as i19 from "primeng/tooltip";
|
|
20
20
|
import * as i20 from "@posiwise/shared-components";
|
|
21
|
+
import { Observable, Subscription } from "rxjs";
|
|
21
22
|
declare namespace documentation_view_component_d_exports {
|
|
22
23
|
export { DocumentationComponent };
|
|
23
24
|
}
|
|
@@ -212,16 +213,19 @@ declare namespace home_component_d_exports {
|
|
|
212
213
|
export declare class HomeComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
213
214
|
private readonly hopscotchService;
|
|
214
215
|
private readonly cdr;
|
|
216
|
+
readonly productSections?: Type<unknown>[] | null;
|
|
215
217
|
user: User;
|
|
216
218
|
userSlug: string;
|
|
217
219
|
componentActive: boolean;
|
|
218
220
|
selectedSubscriptionSlug: string;
|
|
219
221
|
subscriptionId: number;
|
|
220
|
-
constructor(injector: Injector, hopscotchService: HopscotchService, cdr: ChangeDetectorRef);
|
|
222
|
+
constructor(injector: Injector, hopscotchService: HopscotchService, cdr: ChangeDetectorRef, productSections?: Type<unknown>[] | null);
|
|
221
223
|
sanitizeContent(jsonString: any): any;
|
|
222
224
|
ngOnInit(): void;
|
|
223
225
|
ngOnDestroy(): void;
|
|
224
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HomeComponent,
|
|
226
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HomeComponent, [null, null, null, {
|
|
227
|
+
optional: true;
|
|
228
|
+
}]>;
|
|
225
229
|
static ɵcmp: i0.ɵɵComponentDeclaration<HomeComponent, "pw-home", never, {}, {}, never, never, false, never>;
|
|
226
230
|
}
|
|
227
231
|
declare namespace notifications_page_component_d_exports {
|
|
@@ -359,6 +363,16 @@ export declare class DashboardLibModule {
|
|
|
359
363
|
static ɵmod: i0.ɵɵNgModuleDeclaration<DashboardLibModule, never, [typeof i10.CommonModule, typeof i11.FormsModule, typeof i15.PipesModule, typeof i4.SelectModule, typeof i14.DirectivesModule, typeof i11.ReactiveFormsModule, typeof i13.CoreTranslocoModule, typeof i17.NgbNavModule, typeof i17.NgbDropdownModule, typeof i8.UserModuleModule, typeof i18.RadioButtonModule, typeof i16.ProgressSpinnerModule, typeof DashboardContentModule], never>;
|
|
360
364
|
static ɵinj: i0.ɵɵInjectorDeclaration<DashboardLibModule>;
|
|
361
365
|
}
|
|
366
|
+
/**
|
|
367
|
+
* Product sections a host frontend adds to the top of the shared /home page (cloudolive-api#441),
|
|
368
|
+
* e.g. CloudOlive's onboarding checklist. Optional: an app that provides nothing renders the page
|
|
369
|
+
* unchanged.
|
|
370
|
+
*
|
|
371
|
+
* Holds component classes supplied in code by the host app, never server data, so rendering them
|
|
372
|
+
* with ngComponentOutlet is safe. Each section owns its own data, gating and permissions (e.g.
|
|
373
|
+
* Pages.Alpha), so dashboard-module stays product-agnostic.
|
|
374
|
+
*/
|
|
375
|
+
export declare const HOME_PRODUCT_SECTIONS: InjectionToken<Type<unknown>[]>;
|
|
362
376
|
export interface RouteInfo {
|
|
363
377
|
permission: string;
|
|
364
378
|
path: string;
|
|
@@ -410,4 +424,20 @@ declare const COMMON_MENUS: {
|
|
|
410
424
|
ENTERPRISE_MENU: RouteInfo;
|
|
411
425
|
CHAT_MENU: RouteInfo;
|
|
412
426
|
BLOG_MENU: RouteInfo;
|
|
413
|
-
};
|
|
427
|
+
};
|
|
428
|
+
/**
|
|
429
|
+
* Opens every `has-sub` group around the active sidebar item and scrolls the sidebar
|
|
430
|
+
* until the item is visible. app-sidebar.js opens the group too, but only once jQuery
|
|
431
|
+
* is in, which on a direct load can be 10+ seconds away, and nothing scrolled: a long
|
|
432
|
+
* menu (super admin) left the active item below the fold. Additive only — it never
|
|
433
|
+
* collapses, so it cannot fight jQuery's toggle.
|
|
434
|
+
*
|
|
435
|
+
* Shared so every frontend's sidebar behaves the same on a cold load
|
|
436
|
+
* (posiwise-frontend#4205).
|
|
437
|
+
*/
|
|
438
|
+
export declare function openActiveGroup(doc: Document): void;
|
|
439
|
+
/**
|
|
440
|
+
* Re-opens the active item's group after every navigation, once the new
|
|
441
|
+
* `routerLinkActive` classes have rendered.
|
|
442
|
+
*/
|
|
443
|
+
export declare function watchActiveGroup(doc: Document, routerEvents$: Observable<unknown>): Subscription;
|