@posiwise/dashboard-module 0.0.20 → 0.0.22

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.
@@ -17,14 +17,14 @@ import { PermissionService, SubscriptionService } from '@posiwise/common-service
17
17
  import sortBy from 'lodash/sortBy';
18
18
  import * as i3$1 from '@posiwise/pipes';
19
19
  import { PipesModule } from '@posiwise/pipes';
20
+ import { UserProfilePageComponent, UserModuleModule } from '@posiwise/user-module';
21
+ import { PrivacyAndTosComponent } from '@posiwise/shared-components';
20
22
  import moment from 'moment';
21
23
  import * as i5 from '@ngneat/transloco';
22
- import { HelperService } from '@posiwise/helper-service';
23
- import { AccountComponent, AccountDetailsComponent, UserSubscriptionListComponent, AddSubscriptionComponent, UpdatePaymentDetailsComponent, UserSubscriptionDetailsComponent, UpgradeSubscriptionComponent, SubscriptionCredentialComponent, UserInvoiceComponent, UserProfilePageComponent, SettingsComponent, CommunicationTabComponent, SecurityTabComponent, OthersTabComponent, SupportComponent, SupportDetailsComponent, UserModuleModule } from '@posiwise/user-module';
24
- import { SplashComponent, PrivacyPolicyComponent, TermsConditionsComponent, PrivacyAndTosComponent } from '@posiwise/shared-components';
25
24
  import { getUser } from '@posiwise/app-store';
26
25
  import { orderBy } from 'lodash';
27
26
  import * as i3$2 from '@ngrx/store';
27
+ import { HelperService } from '@posiwise/helper-service';
28
28
  import cloneDeep from 'lodash/cloneDeep';
29
29
  import isEqual from 'lodash/isEqual';
30
30
  import uniqBy from 'lodash/uniqBy';
@@ -144,32 +144,73 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImpor
144
144
  args: [{ selector: 'pw-faq', template: "<div class=\"container-fluid overflow-hidden\">\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 <button *ngIf=\"showSupport\"\n class=\"ms-auto d-block btn btn-sm btn-outline-primary\"\n (click)=\"navigateToSupport()\">\n Support\n </button>\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 <input type=\"text\"\n class=\"form-control bg-white\"\n placeholder=\"Search in faqs..\"\n (input)=\"filter($event.target.value)\"\n #messageInput />\n </fieldset>\n </div>\n </div>\n </div>\n </div>\n <div class=\"w-100 text-center mt-3\"\n *ngIf=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n <ng-container *ngIf=\"faqs\">\n <!-- Non Product FAQ -->\n <div *ngFor=\"let category of objectKeys(faqs); let idx1 = index\">\n <ng-container *ngIf=\"faqs[category]?.length\">\n <h6 class=\"text-uppercase mt-3 p-1\">{{ faqHashMap[category]?.name }}</h6>\n <div class=\"dashboard\">\n <div class=\"faq-item\"\n *ngFor=\"\n let faq of faqs[category];\n let idx = index;\n trackBy: trackByProductFaqId\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 [href]=\"'#collapse' + idx + idx1\">\n {{ faq.question }}\n </a>\n </h5>\n </div>\n <div [id]=\"'collapse' + idx + idx1\"\n class=\"panel-collapse p-3 collapse in\">\n <div class=\"card-block\">\n <ng-container *ngIf=\"faq?.answer\">\n <div class=\"ql-container ql-snow\"\n style=\"border-width: 0;\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer |safe:'html'\">\n </div>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n <!-- Product based FAQ -->\n <div *ngFor=\"let product of objectKeys(productFaq); let idx2 = index\">\n <ng-container *ngIf=\"productFaq[product]?.length\">\n <h6 class=\"text-uppercase p-1\">{{ product }}</h6>\n <div class=\"dashboard\">\n <div class=\"faq-item\"\n *ngFor=\"\n let faq of productFaq[product];\n let idx = index;\n trackBy: trackByNonProductFaqId\n \">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a class=\"accordion-toggle\"\n data-bs-toggle=\"collapse\"\n [href]=\"'#collapse1' + idx + idx2\">\n {{ faq.question }}\n </a>\n </h5>\n </div>\n <div [id]=\"'collapse1' + idx + idx2\"\n class=\"panel-collapse p-3 collapse in\">\n <div class=\"card-block\">\n <ng-container *ngIf=\"faq?.answer\">\n <div class=\"ql-container ql-snow\"\n style=\"border-width: 0;\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer |safe:'html'\">\n </div>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n </ng-container>\n <div *ngIf=\"totalRecords === 0 || allFaqFalse\">\n <pw-no-data message=\"No faqs present\"> </pw-no-data>\n </div>\n</div>\n", styles: [":root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255)}.card-header h1,.card-header p{color:#fff!important}.faq-item{border:1px dashed rgba(0,0,0,.1);border-radius:3px;margin:10px 0;transition:all .2s ease-in-out}.faq-item .dashboard-header{background:rgb(255,255,255)}.card .accordion-toggle:before{content:\"\\f078\"}.card .accordion-toggle.collapsed{transition:all .3s ease-in-out}.card .accordion-toggle.collapsed:before{content:\"\\f054\"}.card-block p{font-size:16px}.card,h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.accordion-title a{color:var(--sidebar_bg)!important}\n"] }]
145
145
  }], ctorParameters: function () { return [{ type: i1.CommonService }, { type: i0.Injector }, { type: i1.ProductService }]; } });
146
146
 
147
- class FaqDetailsComponent extends AppBaseComponent {
148
- constructor(commonService, injector) {
149
- super(injector);
150
- this.commonService = commonService;
151
- this.isLoading = false;
152
- this.id = Number(this.route.snapshot.params['id']);
147
+ const SIDEBAR_MENU = [
148
+ {
149
+ path: ':slug/faq',
150
+ component: FaqComponent,
151
+ data: {
152
+ title: 'FAQ Page'
153
+ }
153
154
  }
154
- ngOnInit() {
155
- this.getFaq();
155
+ ];
156
+ const ACCOUNT_MENU = [
157
+ {
158
+ path: 'members/:user-slug',
159
+ component: UserProfilePageComponent,
160
+ data: {
161
+ title: 'User Profile Page'
162
+ },
163
+ runGuardsAndResolvers: 'always'
156
164
  }
157
- getFaq() {
158
- this.isLoading = true;
159
- this.commonService
160
- .getPublicFaqById(this.id)
161
- .subscribe(res => {
162
- this.faq = res;
163
- })
164
- .add(() => (this.isLoading = false));
165
+ ];
166
+ const routes = [
167
+ {
168
+ path: '',
169
+ children: [
170
+ // Sidebar
171
+ ...SIDEBAR_MENU,
172
+ // Account
173
+ ...ACCOUNT_MENU,
174
+ {
175
+ path: 'privacy-and-tos',
176
+ component: PrivacyAndTosComponent,
177
+ data: {
178
+ title: 'Privacy Policy and Tos Page'
179
+ }
180
+ }
181
+ ]
165
182
  }
183
+ ];
184
+ class DashboardRoutingModule {
166
185
  }
167
- FaqDetailsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: FaqDetailsComponent, deps: [{ token: i1.CommonService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
168
- FaqDetailsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: FaqDetailsComponent, selector: "pw-faq-details", usesInheritance: true, ngImport: i0, template: "<div class=\"container-fluid overflow-hidden mt-4 p-3\">\n <h2>{{faq?.question}}</h2>\n <ng-container *ngIf=\"faq?.answer\">\n <div class=\"ql-container ql-snow\"\n style=\"border-width: 0;\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer |safe:'html'\">\n </div>\n </div>\n </ng-container>\n <pw-no-data *ngIf=\"!faq && !isLoading\"\n message=\"No Faq found\"> </pw-no-data>\n</div>\n<div class=\"w-100 text-center mt-3\"\n *ngIf=\"isLoading\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i3$1.DOMSanitizerPipe, name: "safe" }] });
169
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: FaqDetailsComponent, decorators: [{
186
+ DashboardRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DashboardRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
187
+ DashboardRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.5", ngImport: i0, type: DashboardRoutingModule, imports: [i1$1.RouterModule], exports: [RouterModule] });
188
+ DashboardRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DashboardRoutingModule, imports: [RouterModule.forChild(routes), RouterModule] });
189
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DashboardRoutingModule, decorators: [{
190
+ type: NgModule,
191
+ args: [{
192
+ imports: [RouterModule.forChild(routes)],
193
+ exports: [RouterModule]
194
+ }]
195
+ }] });
196
+
197
+ class FooterComponent extends AppBaseComponent {
198
+ constructor() {
199
+ super(...arguments);
200
+ this.currentDate = new Date();
201
+ }
202
+ ngOnInit() {
203
+ var _a, _b, _c;
204
+ this.productPrivacyId = (_a = this.appConfig) === null || _a === void 0 ? void 0 : _a.main_tos_id;
205
+ this.companyName = (_c = (_b = this.appConfig) === null || _b === void 0 ? void 0 : _b.company) === null || _c === void 0 ? void 0 : _c.name;
206
+ }
207
+ }
208
+ FooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: FooterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
209
+ FooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: FooterComponent, selector: "pw-footer", usesInheritance: true, ngImport: i0, template: "<!-- Footer Starts -->\n<footer>\n <div class=\"container-fluid\">\n <div class=\"text-center\">\n <a [routerLink]=\"['/privacy-and-tos', productPrivacyId]\">Privacy</a> and\n <a [routerLink]=\"['/privacy-and-tos', productPrivacyId]\">Terms of Service</a>\n </div>\n <p class=\"copyright text-center\">\n Copyright &copy; {{ currentDate | date: 'yyyy' }} {{ companyName }}. All rights\n reserved.\n </p>\n </div>\n</footer>\n<!-- Footer Ends -->\n", dependencies: [{ kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: i2.DatePipe, name: "date" }] });
210
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: FooterComponent, decorators: [{
170
211
  type: Component,
171
- args: [{ selector: 'pw-faq-details', template: "<div class=\"container-fluid overflow-hidden mt-4 p-3\">\n <h2>{{faq?.question}}</h2>\n <ng-container *ngIf=\"faq?.answer\">\n <div class=\"ql-container ql-snow\"\n style=\"border-width: 0;\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer |safe:'html'\">\n </div>\n </div>\n </ng-container>\n <pw-no-data *ngIf=\"!faq && !isLoading\"\n message=\"No Faq found\"> </pw-no-data>\n</div>\n<div class=\"w-100 text-center mt-3\"\n *ngIf=\"isLoading\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n</div>\n" }]
172
- }], ctorParameters: function () { return [{ type: i1.CommonService }, { type: i0.Injector }]; } });
212
+ args: [{ selector: 'pw-footer', template: "<!-- Footer Starts -->\n<footer>\n <div class=\"container-fluid\">\n <div class=\"text-center\">\n <a [routerLink]=\"['/privacy-and-tos', productPrivacyId]\">Privacy</a> and\n <a [routerLink]=\"['/privacy-and-tos', productPrivacyId]\">Terms of Service</a>\n </div>\n <p class=\"copyright text-center\">\n Copyright &copy; {{ currentDate | date: 'yyyy' }} {{ companyName }}. All rights\n reserved.\n </p>\n </div>\n</footer>\n<!-- Footer Ends -->\n" }]
213
+ }] });
173
214
 
174
215
  class UserFeedbackComponent extends AppBaseComponent {
175
216
  constructor(injector, commonService) {
@@ -271,528 +312,42 @@ class HomeComponent extends AppBaseComponent {
271
312
  .subscribe(() => {
272
313
  var _a;
273
314
  (_a = window === null || window === void 0 ? void 0 : window.hopscotch) === null || _a === void 0 ? void 0 : _a.endTour();
274
- });
275
- }
276
- else {
277
- window.hopscotch.showStep(Number(stepNumber));
278
- }
279
- }.bind(this);
280
- });
281
- }
282
- }
283
- });
284
- }
285
- });
286
- this.userStore().subscribe({
287
- next: user => {
288
- this.user = user;
289
- if (this.user) {
290
- this.userSlug = user.slug;
291
- }
292
- },
293
- error: error => this.toast.showToast(error)
294
- });
295
- }
296
- ngOnDestroy() {
297
- var _a;
298
- if (window === null || window === void 0 ? void 0 : window.hopscotch) {
299
- (_a = window === null || window === void 0 ? void 0 : window.hopscotch) === null || _a === void 0 ? void 0 : _a.endTour();
300
- }
301
- super.ngOnDestroy();
302
- }
303
- }
304
- HomeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: HomeComponent, deps: [{ token: i0.Injector }, { token: i1.ScriptLoaderService }], target: i0.ɵɵFactoryTarget.Component });
305
- HomeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: HomeComponent, selector: "pw-home", usesInheritance: true, ngImport: i0, 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", styles: [""], dependencies: [{ kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i7.LazyImgDirective, selector: "img" }, { kind: "component", type: UserFeedbackComponent, selector: "pw-user-feedback" }, { kind: "pipe", type: i5.TranslocoPipe, name: "transloco" }] });
306
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: HomeComponent, decorators: [{
307
- type: Component,
308
- args: [{ selector: 'pw-home', 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" }]
309
- }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1.ScriptLoaderService }]; } });
310
-
311
- class CurrentNotificationsComponent {
312
- constructor(notificationService) {
313
- this.notificationService = notificationService;
314
- this.notificationCount = 0;
315
- this.noNoti = true;
316
- this.notifications = [];
317
- this.isLoaded = false;
318
- }
319
- ngOnInit() {
320
- this.getNotifications();
321
- }
322
- getNotifications() {
323
- this.notificationService
324
- .getNotifications()
325
- .subscribe(data => {
326
- var _a;
327
- if (data.length > 0) {
328
- this.notifications = data.filter(note => !note.dismissed && note.show_on_dashboard);
329
- this.noNoti = true;
330
- if ((_a = this.notifications) === null || _a === void 0 ? void 0 : _a.length) {
331
- this.noNoti = false;
332
- }
333
- }
334
- })
335
- .add(() => {
336
- this.isLoaded = true;
337
- });
338
- }
339
- dismiss(id, e) {
340
- this.notificationService.dismissNotification(id).subscribe(() => {
341
- // Remove notification from notification array
342
- const index = this.notifications.indexOf(e);
343
- this.notifications.splice(index, 1);
344
- if (this.notifications.length === 0) {
345
- this.noNoti = true;
346
- }
347
- $('#noty').slideUp('slow', () => {
348
- $('#noty').remove();
349
- });
350
- });
351
- }
352
- trackByNotification(_index, item) {
353
- return item.id;
354
- }
355
- }
356
- CurrentNotificationsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CurrentNotificationsComponent, deps: [{ token: i1.NotificationService }], target: i0.ɵɵFactoryTarget.Component });
357
- CurrentNotificationsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: CurrentNotificationsComponent, selector: "pw-current-notifications", ngImport: i0, template: "<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n <ng-template [ngIf]=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </ng-template>\n </div>\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n *ngIf=\"notifications?.length && isLoaded\">\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n <li *ngFor=\"let item of notifications; trackBy: trackByNotification\"\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 aria-hidden=\"true\"\n ></i>\n </button>\n </span>\n </li>\n </ul>\n </div>\n </div>\n </div>\n\n <div class=\"col-12 col-sm-12 col-md-12\"\n *ngIf=\"noNoti && isLoaded\">\n <div class=\"text-center\">\n <h3 class=\"noti-title line-height-1p5 d-block text-bold-400 primary\">\n You are all caught up.\n </h3>\n <p class=\"text-secondary\">You currently do not have any notifications.</p>\n </div>\n </div>\n</div>\n", styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}@media screen and (max-width: 480px){.noty-body{width:240px}}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i3$1.SinceAgoPipe, name: "sinceAgo" }] });
358
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CurrentNotificationsComponent, decorators: [{
359
- type: Component,
360
- args: [{ selector: 'pw-current-notifications', template: "<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n <ng-template [ngIf]=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </ng-template>\n </div>\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n *ngIf=\"notifications?.length && isLoaded\">\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n <li *ngFor=\"let item of notifications; trackBy: trackByNotification\"\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 aria-hidden=\"true\"\n ></i>\n </button>\n </span>\n </li>\n </ul>\n </div>\n </div>\n </div>\n\n <div class=\"col-12 col-sm-12 col-md-12\"\n *ngIf=\"noNoti && isLoaded\">\n <div class=\"text-center\">\n <h3 class=\"noti-title line-height-1p5 d-block text-bold-400 primary\">\n You are all caught up.\n </h3>\n <p class=\"text-secondary\">You currently do not have any notifications.</p>\n </div>\n </div>\n</div>\n", styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}@media screen and (max-width: 480px){.noty-body{width:240px}}\n"] }]
361
- }], ctorParameters: function () { return [{ type: i1.NotificationService }]; } });
362
-
363
- class DismissedNotificationsComponent {
364
- constructor(notificationService) {
365
- this.notificationService = notificationService;
366
- this.notificationCount = 0;
367
- this.noNoti = true;
368
- this.dismissedNotifications = [];
369
- this.isLoaded = false;
370
- }
371
- ngOnInit() {
372
- this.getNotifications();
373
- }
374
- getNotifications() {
375
- this.notificationService
376
- .getDismissedNotifications()
377
- .subscribe(data => {
378
- if (data.length > 0) {
379
- this.noNoti = false;
380
- this.dismissedNotifications = data;
381
- }
382
- })
383
- .add(() => {
384
- this.isLoaded = true;
385
- });
386
- }
387
- dismiss(id, e) {
388
- HelperService.raiseDeletePopup().then(res => {
389
- if (res.value) {
390
- this.notificationService.deleteNotifications(id).subscribe(() => {
391
- // Remove notification from notification array
392
- const index = this.dismissedNotifications.indexOf(e);
393
- this.dismissedNotifications.splice(index, 1);
394
- if (this.dismissedNotifications.length === 0) {
395
- this.noNoti = true;
396
- }
397
- $('#noty').slideUp('slow', () => {
398
- $('#noty').remove();
399
- });
400
- });
401
- }
402
- });
403
- }
404
- restoreNotification(id, e) {
405
- this.notificationService.reinstateNotification(id).subscribe(() => {
406
- // Remove notification from dismissed notification array
407
- const index = this.dismissedNotifications.indexOf(e);
408
- this.dismissedNotifications.splice(index, 1);
409
- if (this.dismissedNotifications.length === 0) {
410
- this.noNoti = true;
411
- }
412
- $('#noty').slideUp('slow', () => {
413
- $('#noty').remove();
414
- });
415
- });
416
- }
417
- trackByNotification(_index, item) {
418
- return item.id;
419
- }
420
- }
421
- DismissedNotificationsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DismissedNotificationsComponent, deps: [{ token: i1.NotificationService }], target: i0.ɵɵFactoryTarget.Component });
422
- DismissedNotificationsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: DismissedNotificationsComponent, selector: "pw-dismissed-notifications", ngImport: i0, template: "<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n <ng-template [ngIf]=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </ng-template>\n </div>\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n *ngIf=\"dismissedNotifications?.length && isLoaded\">\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n <li *ngFor=\"let item of dismissedNotifications; trackBy: trackByNotification\"\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 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 aria-hidden=\"true\"\n ></i>\n </button>\n </span>\n </li>\n </ul>\n </div>\n </div>\n </div>\n\n <div class=\"col-12 col-sm-12 col-md-12\"\n *ngIf=\"noNoti && isLoaded\">\n <div class=\"text-center\">\n <p class=\"text-secondary\">You currently do not have any dismissed notifications.</p>\n </div>\n </div>\n</div>\n", styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}@media screen and (max-width: 480px){.noty-body{width:240px}}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i3$1.SinceAgoPipe, name: "sinceAgo" }] });
423
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DismissedNotificationsComponent, decorators: [{
424
- type: Component,
425
- args: [{ selector: 'pw-dismissed-notifications', template: "<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n <ng-template [ngIf]=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </ng-template>\n </div>\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n *ngIf=\"dismissedNotifications?.length && isLoaded\">\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n <li *ngFor=\"let item of dismissedNotifications; trackBy: trackByNotification\"\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 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 aria-hidden=\"true\"\n ></i>\n </button>\n </span>\n </li>\n </ul>\n </div>\n </div>\n </div>\n\n <div class=\"col-12 col-sm-12 col-md-12\"\n *ngIf=\"noNoti && isLoaded\">\n <div class=\"text-center\">\n <p class=\"text-secondary\">You currently do not have any dismissed notifications.</p>\n </div>\n </div>\n</div>\n", styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}@media screen and (max-width: 480px){.noty-body{width:240px}}\n"] }]
426
- }], ctorParameters: function () { return [{ type: i1.NotificationService }]; } });
427
-
428
- class NotificationsPageComponent {
429
- }
430
- NotificationsPageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: NotificationsPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
431
- NotificationsPageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: NotificationsPageComponent, selector: "pw-notifications-page", ngImport: i0, template: "<div class=\"row\">\n <div class=\"col-12 col-sm-12 col-md-12\">\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", styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}@media screen and (max-width: 480px){.noty-body{width:240px}}\n"], dependencies: [{ kind: "directive", type: i1$2.NgbNavContent, selector: "ng-template[ngbNavContent]" }, { kind: "directive", type: i1$2.NgbNav, selector: "[ngbNav]", inputs: ["activeId", "animation", "destroyOnHide", "orientation", "roles", "keyboard"], outputs: ["activeIdChange", "shown", "hidden", "navChange"], exportAs: ["ngbNav"] }, { kind: "directive", type: i1$2.NgbNavItem, selector: "[ngbNavItem]", inputs: ["destroyOnHide", "disabled", "domId", "ngbNavItem"], outputs: ["shown", "hidden"], exportAs: ["ngbNavItem"] }, { kind: "directive", type: i1$2.NgbNavItemRole, selector: "[ngbNavItem]:not(ng-container)" }, { kind: "directive", type: i1$2.NgbNavLink, selector: "a[ngbNavLink]" }, { kind: "directive", type: i1$2.NgbNavLinkBase, selector: "[ngbNavLink]" }, { kind: "component", type: i1$2.NgbNavOutlet, selector: "[ngbNavOutlet]", inputs: ["paneRole", "ngbNavOutlet"] }, { kind: "component", type: CurrentNotificationsComponent, selector: "pw-current-notifications" }, { kind: "component", type: DismissedNotificationsComponent, selector: "pw-dismissed-notifications" }] });
432
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: NotificationsPageComponent, decorators: [{
433
- type: Component,
434
- args: [{ selector: 'pw-notifications-page', template: "<div class=\"row\">\n <div class=\"col-12 col-sm-12 col-md-12\">\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", styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}@media screen and (max-width: 480px){.noty-body{width:240px}}\n"] }]
435
- }] });
436
-
437
- class SearchComponent {
438
- constructor(route, service) {
439
- this.route = route;
440
- this.service = service;
441
- this.objectKeys = Object.keys;
442
- }
443
- ngOnInit() {
444
- this.subscriptionId = PermissionService.selectedSubscription.id;
445
- this.route.queryParams.subscribe(response => {
446
- this.keyword = response['keyword'];
447
- if (this.keyword) {
448
- this.search();
449
- }
450
- });
451
- }
452
- search() {
453
- this.service.search(this.keyword, this.subscriptionId).subscribe(response => {
454
- this.result = response;
455
- });
456
- }
457
- trackByUserId(_index, item) {
458
- return item.id;
459
- }
460
- trackByFaqId(_index, item) {
461
- return item.id;
462
- }
463
- trackBySkill(_index, item) {
464
- return item.id;
465
- }
466
- }
467
- SearchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: SearchComponent, deps: [{ token: i1$1.ActivatedRoute }, { token: i1.DashboardService }], target: i0.ɵɵFactoryTarget.Component });
468
- SearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: SearchComponent, selector: "pw-search", ngImport: i0, template: "<div class=\"container-fluid dashboard-card overflow-hidden\">\n <div class=\"dashboard\">\n <div class=\"dashboard-body\">\n <div class=\"row\">\n <div class=\"col-12 my-3 mt-4\">\n <h2>Search Results</h2>\n </div>\n </div>\n <div class=\"row faqlist search-result\">\n <div class=\"col-12\">\n <div data-cy=\"faq-list\">\n <ng-container *ngIf=\"result\">\n <div *ngFor=\"let group of objectKeys(result); let idx = index\"\n [ngSwitch]=\"group\">\n <ng-container *ngSwitchCase=\"'users'\">\n <ng-container *ngIf=\"result[group].length\">\n <h6 class=\"gradient-custom-branding\">\n {{ group | uppercase }}\n </h6>\n <div class=\"row px-2\">\n <div class=\"col-12 ms-2 faq-item\"\n *ngFor=\"\n let user of result[group];\n let idx1 = index;\n trackBy: trackByUserId\n \">\n <div class=\"accordion\">\n <div class=\"accord-title p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a href=\"javascript:void(0)\"\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 <strong *ngIf=\"user.user_skills?.length > 0\">Skills :\n </strong>\n <span class=\"badge bg-success m-1\"\n *ngFor=\"\n let skill of user.user_skills;\n let isLast = last;\n trackBy: trackBySkill\n \">\n {{ skill.name\n }}{{ isLast ? '' : ', ' }}</span>\n </p>\n <p class=\"m-0 title-font\"\n *ngIf=\"\n user?.user_profile?.headline\n ?.length > 0\n \">\n {{ user?.user_profile?.headline }}\n </p>\n <p class=\"m-0 title-font\"\n *ngIf=\"\n user?.user_profile?.country\n ?.length > 0\n \">\n <strong>Location : </strong>{{ user?.user_profile?.country }}\n </p>\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 <ng-container *ngIf=\"\n user?.user_avatar\n ?.length > 0;\n else noProfileImg\n \">\n <ng-container *ngFor=\"\n let profile_image of user.user_avatar\n \">\n <div class=\"text-center my-2\"\n *ngIf=\"\n profile_image.width ===\n 200\n \">\n <div class=\"avatar\">\n <img class=\"img-fluid\"\n [src]=\"\n profile_image.url\n \"\n alt=\"\"\n onerror=\"this.onerror=null;this.src='assets/img/icons/male.png';\" />\n </div>\n </div>\n </ng-container>\n </ng-container>\n <ng-template #noProfileImg>\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 </ng-template>\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 !==\n 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 !==\n 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 !==\n 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 </div>\n </div>\n </ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'faqs'\">\n <ng-container *ngIf=\"result[group].length\">\n <h6 class=\"gradient-custom-branding\">\n {{ group | uppercase }}\n </h6>\n <div class=\"row px-2\">\n <div class=\"col-12 ms-2 faq-item\"\n *ngFor=\"\n let faq of result[group];\n let idx2 = index;\n trackBy: trackByFaqId\n \">\n <div class=\"p-2\">\n <div class=\"accord-title1s\">\n <h5 class=\"accordion-title mt-2\">\n <a href=\"javascript:void(0)\"\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 <p class=\"faq-search-answer mb-0 pt-3 px-2\"\n [innerHtml]=\"faq.answer\"></p>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n <pw-no-data message=\"No result found.\"\n *ngIf=\"\n result.users?.length === 0 &&\n result.faqs?.length === 0 &&\n result.recipients?.length === 0\n \">\n </pw-no-data>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n", styles: [":root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255)}h6{background-color:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem}a{color:#333;display:block;margin:6px 0;position:relative;transition:all .5s}a:hover{color:var(--titles);text-decoration:underline}.faq-search-answer a{color:#144086;display:inline-block;float:right;font-size:14px;margin-right:15px}.faq-search-answer a:after{right:-10px}.faq-item{border:1px dashed rgba(0,0,0,.1);border-radius:3px;margin:10px;transition:all .2s ease-in-out}.faq-item.faq-item{flex:auto;padding:0}.faq-item a{text-decoration:none}.accord-title1 .faq-search-answer a{margin-right:0!important}a.accordion-toggle:after{display:none}.accord-title p.title-font{font-size:.8rem}.panel-collapse.show{border-top:1px dashed rgba(0,0,0,.1)}.panel-collapse ul{margin-bottom:1rem}.panel-collapse ul.name-fl li{display:inline-block;padding-right:15px}.view-btn a{display:inline-block}.avatar{width:130px;margin:0 auto;display:block}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i7.LazyImgDirective, selector: "img" }, { kind: "pipe", type: i2.UpperCasePipe, name: "uppercase" }] });
469
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: SearchComponent, decorators: [{
470
- type: Component,
471
- args: [{ selector: 'pw-search', template: "<div class=\"container-fluid dashboard-card overflow-hidden\">\n <div class=\"dashboard\">\n <div class=\"dashboard-body\">\n <div class=\"row\">\n <div class=\"col-12 my-3 mt-4\">\n <h2>Search Results</h2>\n </div>\n </div>\n <div class=\"row faqlist search-result\">\n <div class=\"col-12\">\n <div data-cy=\"faq-list\">\n <ng-container *ngIf=\"result\">\n <div *ngFor=\"let group of objectKeys(result); let idx = index\"\n [ngSwitch]=\"group\">\n <ng-container *ngSwitchCase=\"'users'\">\n <ng-container *ngIf=\"result[group].length\">\n <h6 class=\"gradient-custom-branding\">\n {{ group | uppercase }}\n </h6>\n <div class=\"row px-2\">\n <div class=\"col-12 ms-2 faq-item\"\n *ngFor=\"\n let user of result[group];\n let idx1 = index;\n trackBy: trackByUserId\n \">\n <div class=\"accordion\">\n <div class=\"accord-title p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a href=\"javascript:void(0)\"\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 <strong *ngIf=\"user.user_skills?.length > 0\">Skills :\n </strong>\n <span class=\"badge bg-success m-1\"\n *ngFor=\"\n let skill of user.user_skills;\n let isLast = last;\n trackBy: trackBySkill\n \">\n {{ skill.name\n }}{{ isLast ? '' : ', ' }}</span>\n </p>\n <p class=\"m-0 title-font\"\n *ngIf=\"\n user?.user_profile?.headline\n ?.length > 0\n \">\n {{ user?.user_profile?.headline }}\n </p>\n <p class=\"m-0 title-font\"\n *ngIf=\"\n user?.user_profile?.country\n ?.length > 0\n \">\n <strong>Location : </strong>{{ user?.user_profile?.country }}\n </p>\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 <ng-container *ngIf=\"\n user?.user_avatar\n ?.length > 0;\n else noProfileImg\n \">\n <ng-container *ngFor=\"\n let profile_image of user.user_avatar\n \">\n <div class=\"text-center my-2\"\n *ngIf=\"\n profile_image.width ===\n 200\n \">\n <div class=\"avatar\">\n <img class=\"img-fluid\"\n [src]=\"\n profile_image.url\n \"\n alt=\"\"\n onerror=\"this.onerror=null;this.src='assets/img/icons/male.png';\" />\n </div>\n </div>\n </ng-container>\n </ng-container>\n <ng-template #noProfileImg>\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 </ng-template>\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 !==\n 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 !==\n 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 !==\n 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 </div>\n </div>\n </ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'faqs'\">\n <ng-container *ngIf=\"result[group].length\">\n <h6 class=\"gradient-custom-branding\">\n {{ group | uppercase }}\n </h6>\n <div class=\"row px-2\">\n <div class=\"col-12 ms-2 faq-item\"\n *ngFor=\"\n let faq of result[group];\n let idx2 = index;\n trackBy: trackByFaqId\n \">\n <div class=\"p-2\">\n <div class=\"accord-title1s\">\n <h5 class=\"accordion-title mt-2\">\n <a href=\"javascript:void(0)\"\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 <p class=\"faq-search-answer mb-0 pt-3 px-2\"\n [innerHtml]=\"faq.answer\"></p>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n <pw-no-data message=\"No result found.\"\n *ngIf=\"\n result.users?.length === 0 &&\n result.faqs?.length === 0 &&\n result.recipients?.length === 0\n \">\n </pw-no-data>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n", styles: [":root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255)}h6{background-color:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem}a{color:#333;display:block;margin:6px 0;position:relative;transition:all .5s}a:hover{color:var(--titles);text-decoration:underline}.faq-search-answer a{color:#144086;display:inline-block;float:right;font-size:14px;margin-right:15px}.faq-search-answer a:after{right:-10px}.faq-item{border:1px dashed rgba(0,0,0,.1);border-radius:3px;margin:10px;transition:all .2s ease-in-out}.faq-item.faq-item{flex:auto;padding:0}.faq-item a{text-decoration:none}.accord-title1 .faq-search-answer a{margin-right:0!important}a.accordion-toggle:after{display:none}.accord-title p.title-font{font-size:.8rem}.panel-collapse.show{border-top:1px dashed rgba(0,0,0,.1)}.panel-collapse ul{margin-bottom:1rem}.panel-collapse ul.name-fl li{display:inline-block;padding-right:15px}.view-btn a{display:inline-block}.avatar{width:130px;margin:0 auto;display:block}\n"] }]
472
- }], ctorParameters: function () { return [{ type: i1$1.ActivatedRoute }, { type: i1.DashboardService }]; } });
473
-
474
- // const PRODUCT_MENU: Routes = [
475
- // // Demo products
476
- // {
477
- // path: ':slug/build',
478
- // loadChildren: () =>
479
- // import(
480
- // '@app/modules/products/posiwise-build/private/posiwise-build-private.module'
481
- // ).then(m => m.PosiWiseBuildPrivateModule),
482
- // data: { preload: true, delay: true, permission: 'Pages.Product.PosiWise' },
483
- // canLoad: [AdminGuardService]
484
- // },
485
- // {
486
- // path: ':slug/emptyproject',
487
- // loadChildren: () =>
488
- // import('@app/modules/products/empty-project/private/empty-project-private.module').then(
489
- // m => m.EmptyProjectPrivateModule
490
- // ),
491
- // data: { preload: true, delay: true, permission: 'Pages.Product.EmptyProject' },
492
- // canLoad: [AdminGuardService]
493
- // },
494
- // {
495
- // path: ':slug/hyperdashboard',
496
- // loadChildren: () =>
497
- // import('@hyper-dashboard/demo1/private/demo1-private.module').then(
498
- // m => m.Demo1PrivateModule
499
- // ),
500
- // data: { preload: true, delay: true, permission: 'Pages.Product.Dashboard_Demo' },
501
- // canLoad: [ModuleAccessGuard]
502
- // },
503
- // {
504
- // path: ':slug/paas',
505
- // loadChildren: () =>
506
- // import('@hyper-dashboard/demo2/private/demo2-private.module').then(
507
- // m => m.Demo2PrivateModule
508
- // ),
509
- // data: { preload: true, delay: true, permission: 'Pages.Product.Dashboard_Demo' },
510
- // canLoad: [ModuleAccessGuard]
511
- // },
512
- // /// //////////////////////////////
513
- // // Actual Products
514
- // /// //////////////////////////////
515
- // // Talent hub
516
- // {
517
- // path: ':slug/talent',
518
- // loadChildren: () =>
519
- // import('@app/modules/products/talent-hub/private/talent-hub-private.module').then(
520
- // m => m.TalenthubPrivateModule
521
- // ),
522
- // data: { preload: true, delay: true, permission: 'Pages.Product.TalentHub' },
523
- // canLoad: [ModuleAccessGuard]
524
- // },
525
- // // Continuous IMPROVEMENT
526
- // {
527
- // path: ':slug/coach',
528
- // loadChildren: () =>
529
- // import('@super-coach/private/super-coach-private.module').then(
530
- // m => m.SuperCoachPrivateModule
531
- // ),
532
- // data: { preload: true, delay: true, permission: 'Pages.Product.Coach' },
533
- // canLoad: [ModuleAccessGuard]
534
- // },
535
- // // Continuous IMPROVEMENT
536
- // {
537
- // path: ':slug/crm',
538
- // loadChildren: () =>
539
- // import('@smart-crm/private/smart-crm-private.module').then(
540
- // m => m.SmartCrmPrivateModule
541
- // ),
542
- // data: { preload: true, delay: true, permission: 'Pages.Product.CRM' },
543
- // canLoad: [ModuleAccessGuard]
544
- // },
545
- // // Stakeholders
546
- // {
547
- // path: ':slug/stakeholders',
548
- // loadChildren: () =>
549
- // import('@stakeholders/private/stakeholders-private.module').then(
550
- // m => m.StakeholdersPrivateModule
551
- // ),
552
- // data: { preload: true, delay: true, permission: 'Pages.Product.Stakeholders' },
553
- // canLoad: [ModuleAccessGuard]
554
- // },
555
- // // CloudOlive
556
- // {
557
- // path: ':slug/cloudolive',
558
- // loadChildren: () =>
559
- // import('@cloudolive/private/cloudolive-private.module').then(
560
- // m => m.CloudOlivePrivateModule
561
- // ),
562
- // data: { preload: true, delay: true, permission: 'Pages.Product.CloudOlive' },
563
- // canLoad: [ModuleAccessGuard]
564
- // }
565
- // ];
566
- const SIDEBAR_MENU = [
567
- {
568
- path: 'home',
569
- component: HomeComponent,
570
- data: {
571
- title: 'Dashboard'
572
- }
573
- },
574
- {
575
- path: 'splash',
576
- component: SplashComponent
577
- },
578
- // {
579
- // path: 'admin',
580
- // loadChildren: () => import('@admin/admin.module').then(m => m.AdminModule),
581
- // data: { preload: true, delay: true, permission: 'Pages.Admin' },
582
- // canLoad: [ModuleAccessGuard]
583
- // },
584
- // {
585
- // path: ':slug/posts',
586
- // loadChildren: () =>
587
- // import('@app/modules/blog/private/blog-private.module').then(m => m.BlogPrivateModule),
588
- // data: { preload: true, delay: true }
589
- // },
590
- // {
591
- // path: ':slug/enterprise',
592
- // loadChildren: () =>
593
- // import('@app/modules/enterprise/enterprise.module').then(m => m.EnterpriseModule),
594
- // data: { preload: true, delay: true }
595
- // },
596
- // {
597
- // path: ':slug/message',
598
- // loadChildren: () =>
599
- // import('@app/modules/messaging/messaging.module').then(m => m.MessagingModule),
600
- // data: { preload: true, delay: true, permission: 'Pages.Chat' }
601
- // },
602
- // {
603
- // path: 'message',
604
- // loadChildren: () =>
605
- // import('@app/modules/messaging/messaging.module').then(m => m.MessagingModule),
606
- // data: { preload: true, delay: true }
607
- // },
608
- {
609
- path: ':slug/faq',
610
- component: FaqComponent,
611
- data: {
612
- title: 'FAQ Page'
613
- }
614
- },
615
- {
616
- path: ':slug/faq/:id',
617
- component: FaqDetailsComponent,
618
- data: {
619
- title: 'FAQ Page'
620
- }
621
- }
622
- // ...PRODUCT_MENU
623
- ];
624
- const ACCOUNT_MENU = [
625
- {
626
- path: 'account',
627
- component: AccountComponent,
628
- children: [
629
- {
630
- path: 'details',
631
- component: AccountDetailsComponent
632
- },
633
- {
634
- path: 'subscriptions',
635
- component: UserSubscriptionListComponent
636
- },
637
- {
638
- path: 'subscriptions/add-new',
639
- component: AddSubscriptionComponent
640
- },
641
- {
642
- path: 'subscriptions/:subscriptionId/product/:productId/update-payment',
643
- component: UpdatePaymentDetailsComponent
644
- },
645
- {
646
- path: 'subscriptions/details/:subscriptionId',
647
- component: UserSubscriptionDetailsComponent
648
- },
649
- {
650
- path: 'subscriptions/upgrade/:subscriptionId/:productId',
651
- component: UpgradeSubscriptionComponent
652
- },
653
- {
654
- path: 'subscriptions/:subscriptionId/credential',
655
- component: SubscriptionCredentialComponent
656
- },
657
- {
658
- path: 'change-subscription',
659
- component: AddSubscriptionComponent
660
- },
661
- {
662
- path: 'invoice',
663
- component: UserInvoiceComponent
664
- }
665
- ]
666
- },
667
- {
668
- path: 'members/:user-slug',
669
- component: UserProfilePageComponent,
670
- data: {
671
- title: 'User Profile Page'
672
- },
673
- runGuardsAndResolvers: 'always'
674
- },
675
- {
676
- path: 'add-subscription',
677
- component: AddSubscriptionComponent,
678
- data: {
679
- title: 'Add Subscription'
680
- }
681
- }
682
- ];
683
- const SETTING_MENU = [
684
- {
685
- path: 'settings',
686
- component: SettingsComponent,
687
- data: {
688
- title: 'Settings'
689
- },
690
- children: [
691
- {
692
- path: 'communication',
693
- component: CommunicationTabComponent
694
- },
695
- {
696
- path: 'security',
697
- component: SecurityTabComponent
698
- },
699
- {
700
- path: 'other',
701
- component: OthersTabComponent
702
- }
703
- ]
704
- }
705
- ];
706
- const routes = [
707
- {
708
- path: '',
709
- children: [
710
- // Sidebar
711
- ...SIDEBAR_MENU,
712
- // Account
713
- ...ACCOUNT_MENU,
714
- // Settings
715
- ...SETTING_MENU,
716
- // support
717
- {
718
- path: 'support',
719
- component: SupportComponent
720
- },
721
- {
722
- path: 'support-details/add',
723
- component: SupportDetailsComponent
724
- },
725
- // Search
726
- {
727
- path: 'search',
728
- component: SearchComponent,
729
- data: {
730
- title: 'Search'
731
- }
732
- },
733
- // Notifications
734
- {
735
- path: 'notifications',
736
- component: NotificationsPageComponent,
737
- data: {
738
- title: 'Notifications'
739
- }
740
- },
741
- // Static pages
742
- {
743
- path: 'privacy-policies',
744
- component: PrivacyPolicyComponent,
745
- data: {
746
- title: 'Privacy Policy Page'
747
- }
748
- },
749
- {
750
- path: 'terms-of-service',
751
- component: TermsConditionsComponent,
752
- data: {
753
- title: 'Terms of Service Page'
315
+ });
316
+ }
317
+ else {
318
+ window.hopscotch.showStep(Number(stepNumber));
319
+ }
320
+ }.bind(this);
321
+ });
322
+ }
323
+ }
324
+ });
325
+ }
326
+ });
327
+ this.userStore().subscribe({
328
+ next: user => {
329
+ this.user = user;
330
+ if (this.user) {
331
+ this.userSlug = user.slug;
754
332
  }
755
333
  },
756
- {
757
- path: 'privacy-and-tos',
758
- component: PrivacyAndTosComponent,
759
- data: {
760
- title: 'Privacy Policy and Tos Page'
761
- }
762
- }
763
- ]
764
- }
765
- ];
766
- class DashboardRoutingModule {
767
- }
768
- DashboardRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DashboardRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
769
- DashboardRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.5", ngImport: i0, type: DashboardRoutingModule, imports: [i1$1.RouterModule], exports: [RouterModule] });
770
- DashboardRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DashboardRoutingModule, imports: [RouterModule.forChild(routes), RouterModule] });
771
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DashboardRoutingModule, decorators: [{
772
- type: NgModule,
773
- args: [{
774
- imports: [RouterModule.forChild(routes)],
775
- exports: [RouterModule]
776
- }]
777
- }] });
778
-
779
- class FooterComponent extends AppBaseComponent {
780
- constructor() {
781
- super(...arguments);
782
- this.currentDate = new Date();
334
+ error: error => this.toast.showToast(error)
335
+ });
783
336
  }
784
- ngOnInit() {
785
- var _a, _b, _c;
786
- this.productPrivacyId = (_a = this.appConfig) === null || _a === void 0 ? void 0 : _a.main_tos_id;
787
- this.companyName = (_c = (_b = this.appConfig) === null || _b === void 0 ? void 0 : _b.company) === null || _c === void 0 ? void 0 : _c.name;
337
+ ngOnDestroy() {
338
+ var _a;
339
+ if (window === null || window === void 0 ? void 0 : window.hopscotch) {
340
+ (_a = window === null || window === void 0 ? void 0 : window.hopscotch) === null || _a === void 0 ? void 0 : _a.endTour();
341
+ }
342
+ super.ngOnDestroy();
788
343
  }
789
344
  }
790
- FooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: FooterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
791
- FooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: FooterComponent, selector: "pw-footer", usesInheritance: true, ngImport: i0, template: "<!-- Footer Starts -->\n<footer>\n <div class=\"container-fluid\">\n <div class=\"text-center\">\n <a [routerLink]=\"['/privacy-and-tos', productPrivacyId]\">Privacy</a> and\n <a [routerLink]=\"['/privacy-and-tos', productPrivacyId]\">Terms of Service</a>\n </div>\n <p class=\"copyright text-center\">\n Copyright &copy; {{ currentDate | date: 'yyyy' }} {{ companyName }}. All rights\n reserved.\n </p>\n </div>\n</footer>\n<!-- Footer Ends -->\n", dependencies: [{ kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: i2.DatePipe, name: "date" }] });
792
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: FooterComponent, decorators: [{
345
+ HomeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: HomeComponent, deps: [{ token: i0.Injector }, { token: i1.ScriptLoaderService }], target: i0.ɵɵFactoryTarget.Component });
346
+ HomeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: HomeComponent, selector: "pw-home", usesInheritance: true, ngImport: i0, 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", styles: [""], dependencies: [{ kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i7.LazyImgDirective, selector: "img" }, { kind: "component", type: UserFeedbackComponent, selector: "pw-user-feedback" }, { kind: "pipe", type: i5.TranslocoPipe, name: "transloco" }] });
347
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: HomeComponent, decorators: [{
793
348
  type: Component,
794
- args: [{ selector: 'pw-footer', template: "<!-- Footer Starts -->\n<footer>\n <div class=\"container-fluid\">\n <div class=\"text-center\">\n <a [routerLink]=\"['/privacy-and-tos', productPrivacyId]\">Privacy</a> and\n <a [routerLink]=\"['/privacy-and-tos', productPrivacyId]\">Terms of Service</a>\n </div>\n <p class=\"copyright text-center\">\n Copyright &copy; {{ currentDate | date: 'yyyy' }} {{ companyName }}. All rights\n reserved.\n </p>\n </div>\n</footer>\n<!-- Footer Ends -->\n" }]
795
- }] });
349
+ args: [{ selector: 'pw-home', 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" }]
350
+ }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1.ScriptLoaderService }]; } });
796
351
 
797
352
  class NavbarComponent extends AppBaseComponent {
798
353
  constructor(injector, notificationService, config, scriptLoader, store) {
@@ -939,6 +494,169 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImpor
939
494
  args: ['notiDrop', { static: true }]
940
495
  }] } });
941
496
 
497
+ class CurrentNotificationsComponent {
498
+ constructor(notificationService) {
499
+ this.notificationService = notificationService;
500
+ this.notificationCount = 0;
501
+ this.noNoti = true;
502
+ this.notifications = [];
503
+ this.isLoaded = false;
504
+ }
505
+ ngOnInit() {
506
+ this.getNotifications();
507
+ }
508
+ getNotifications() {
509
+ this.notificationService
510
+ .getNotifications()
511
+ .subscribe(data => {
512
+ var _a;
513
+ if (data.length > 0) {
514
+ this.notifications = data.filter(note => !note.dismissed && note.show_on_dashboard);
515
+ this.noNoti = true;
516
+ if ((_a = this.notifications) === null || _a === void 0 ? void 0 : _a.length) {
517
+ this.noNoti = false;
518
+ }
519
+ }
520
+ })
521
+ .add(() => {
522
+ this.isLoaded = true;
523
+ });
524
+ }
525
+ dismiss(id, e) {
526
+ this.notificationService.dismissNotification(id).subscribe(() => {
527
+ // Remove notification from notification array
528
+ const index = this.notifications.indexOf(e);
529
+ this.notifications.splice(index, 1);
530
+ if (this.notifications.length === 0) {
531
+ this.noNoti = true;
532
+ }
533
+ $('#noty').slideUp('slow', () => {
534
+ $('#noty').remove();
535
+ });
536
+ });
537
+ }
538
+ trackByNotification(_index, item) {
539
+ return item.id;
540
+ }
541
+ }
542
+ CurrentNotificationsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CurrentNotificationsComponent, deps: [{ token: i1.NotificationService }], target: i0.ɵɵFactoryTarget.Component });
543
+ CurrentNotificationsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: CurrentNotificationsComponent, selector: "pw-current-notifications", ngImport: i0, template: "<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n <ng-template [ngIf]=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </ng-template>\n </div>\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n *ngIf=\"notifications?.length && isLoaded\">\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n <li *ngFor=\"let item of notifications; trackBy: trackByNotification\"\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 aria-hidden=\"true\"\n ></i>\n </button>\n </span>\n </li>\n </ul>\n </div>\n </div>\n </div>\n\n <div class=\"col-12 col-sm-12 col-md-12\"\n *ngIf=\"noNoti && isLoaded\">\n <div class=\"text-center\">\n <h3 class=\"noti-title line-height-1p5 d-block text-bold-400 primary\">\n You are all caught up.\n </h3>\n <p class=\"text-secondary\">You currently do not have any notifications.</p>\n </div>\n </div>\n</div>\n", styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}@media screen and (max-width: 480px){.noty-body{width:240px}}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i3$1.SinceAgoPipe, name: "sinceAgo" }] });
544
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CurrentNotificationsComponent, decorators: [{
545
+ type: Component,
546
+ args: [{ selector: 'pw-current-notifications', template: "<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n <ng-template [ngIf]=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </ng-template>\n </div>\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n *ngIf=\"notifications?.length && isLoaded\">\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n <li *ngFor=\"let item of notifications; trackBy: trackByNotification\"\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 aria-hidden=\"true\"\n ></i>\n </button>\n </span>\n </li>\n </ul>\n </div>\n </div>\n </div>\n\n <div class=\"col-12 col-sm-12 col-md-12\"\n *ngIf=\"noNoti && isLoaded\">\n <div class=\"text-center\">\n <h3 class=\"noti-title line-height-1p5 d-block text-bold-400 primary\">\n You are all caught up.\n </h3>\n <p class=\"text-secondary\">You currently do not have any notifications.</p>\n </div>\n </div>\n</div>\n", styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}@media screen and (max-width: 480px){.noty-body{width:240px}}\n"] }]
547
+ }], ctorParameters: function () { return [{ type: i1.NotificationService }]; } });
548
+
549
+ class DismissedNotificationsComponent {
550
+ constructor(notificationService) {
551
+ this.notificationService = notificationService;
552
+ this.notificationCount = 0;
553
+ this.noNoti = true;
554
+ this.dismissedNotifications = [];
555
+ this.isLoaded = false;
556
+ }
557
+ ngOnInit() {
558
+ this.getNotifications();
559
+ }
560
+ getNotifications() {
561
+ this.notificationService
562
+ .getDismissedNotifications()
563
+ .subscribe(data => {
564
+ if (data.length > 0) {
565
+ this.noNoti = false;
566
+ this.dismissedNotifications = data;
567
+ }
568
+ })
569
+ .add(() => {
570
+ this.isLoaded = true;
571
+ });
572
+ }
573
+ dismiss(id, e) {
574
+ HelperService.raiseDeletePopup().then(res => {
575
+ if (res.value) {
576
+ this.notificationService.deleteNotifications(id).subscribe(() => {
577
+ // Remove notification from notification array
578
+ const index = this.dismissedNotifications.indexOf(e);
579
+ this.dismissedNotifications.splice(index, 1);
580
+ if (this.dismissedNotifications.length === 0) {
581
+ this.noNoti = true;
582
+ }
583
+ $('#noty').slideUp('slow', () => {
584
+ $('#noty').remove();
585
+ });
586
+ });
587
+ }
588
+ });
589
+ }
590
+ restoreNotification(id, e) {
591
+ this.notificationService.reinstateNotification(id).subscribe(() => {
592
+ // Remove notification from dismissed notification array
593
+ const index = this.dismissedNotifications.indexOf(e);
594
+ this.dismissedNotifications.splice(index, 1);
595
+ if (this.dismissedNotifications.length === 0) {
596
+ this.noNoti = true;
597
+ }
598
+ $('#noty').slideUp('slow', () => {
599
+ $('#noty').remove();
600
+ });
601
+ });
602
+ }
603
+ trackByNotification(_index, item) {
604
+ return item.id;
605
+ }
606
+ }
607
+ DismissedNotificationsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DismissedNotificationsComponent, deps: [{ token: i1.NotificationService }], target: i0.ɵɵFactoryTarget.Component });
608
+ DismissedNotificationsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: DismissedNotificationsComponent, selector: "pw-dismissed-notifications", ngImport: i0, template: "<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n <ng-template [ngIf]=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </ng-template>\n </div>\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n *ngIf=\"dismissedNotifications?.length && isLoaded\">\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n <li *ngFor=\"let item of dismissedNotifications; trackBy: trackByNotification\"\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 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 aria-hidden=\"true\"\n ></i>\n </button>\n </span>\n </li>\n </ul>\n </div>\n </div>\n </div>\n\n <div class=\"col-12 col-sm-12 col-md-12\"\n *ngIf=\"noNoti && isLoaded\">\n <div class=\"text-center\">\n <p class=\"text-secondary\">You currently do not have any dismissed notifications.</p>\n </div>\n </div>\n</div>\n", styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}@media screen and (max-width: 480px){.noty-body{width:240px}}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i3$1.SinceAgoPipe, name: "sinceAgo" }] });
609
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DismissedNotificationsComponent, decorators: [{
610
+ type: Component,
611
+ args: [{ selector: 'pw-dismissed-notifications', template: "<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n <ng-template [ngIf]=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </ng-template>\n </div>\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n *ngIf=\"dismissedNotifications?.length && isLoaded\">\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n <li *ngFor=\"let item of dismissedNotifications; trackBy: trackByNotification\"\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 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 aria-hidden=\"true\"\n ></i>\n </button>\n </span>\n </li>\n </ul>\n </div>\n </div>\n </div>\n\n <div class=\"col-12 col-sm-12 col-md-12\"\n *ngIf=\"noNoti && isLoaded\">\n <div class=\"text-center\">\n <p class=\"text-secondary\">You currently do not have any dismissed notifications.</p>\n </div>\n </div>\n</div>\n", styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}@media screen and (max-width: 480px){.noty-body{width:240px}}\n"] }]
612
+ }], ctorParameters: function () { return [{ type: i1.NotificationService }]; } });
613
+
614
+ class NotificationsPageComponent {
615
+ }
616
+ NotificationsPageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: NotificationsPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
617
+ NotificationsPageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: NotificationsPageComponent, selector: "pw-notifications-page", ngImport: i0, template: "<div class=\"row\">\n <div class=\"col-12 col-sm-12 col-md-12\">\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", styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}@media screen and (max-width: 480px){.noty-body{width:240px}}\n"], dependencies: [{ kind: "directive", type: i1$2.NgbNavContent, selector: "ng-template[ngbNavContent]" }, { kind: "directive", type: i1$2.NgbNav, selector: "[ngbNav]", inputs: ["activeId", "animation", "destroyOnHide", "orientation", "roles", "keyboard"], outputs: ["activeIdChange", "shown", "hidden", "navChange"], exportAs: ["ngbNav"] }, { kind: "directive", type: i1$2.NgbNavItem, selector: "[ngbNavItem]", inputs: ["destroyOnHide", "disabled", "domId", "ngbNavItem"], outputs: ["shown", "hidden"], exportAs: ["ngbNavItem"] }, { kind: "directive", type: i1$2.NgbNavItemRole, selector: "[ngbNavItem]:not(ng-container)" }, { kind: "directive", type: i1$2.NgbNavLink, selector: "a[ngbNavLink]" }, { kind: "directive", type: i1$2.NgbNavLinkBase, selector: "[ngbNavLink]" }, { kind: "component", type: i1$2.NgbNavOutlet, selector: "[ngbNavOutlet]", inputs: ["paneRole", "ngbNavOutlet"] }, { kind: "component", type: CurrentNotificationsComponent, selector: "pw-current-notifications" }, { kind: "component", type: DismissedNotificationsComponent, selector: "pw-dismissed-notifications" }] });
618
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: NotificationsPageComponent, decorators: [{
619
+ type: Component,
620
+ args: [{ selector: 'pw-notifications-page', template: "<div class=\"row\">\n <div class=\"col-12 col-sm-12 col-md-12\">\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", styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}@media screen and (max-width: 480px){.noty-body{width:240px}}\n"] }]
621
+ }] });
622
+
623
+ class SearchComponent {
624
+ constructor(route, service) {
625
+ this.route = route;
626
+ this.service = service;
627
+ this.objectKeys = Object.keys;
628
+ }
629
+ ngOnInit() {
630
+ this.subscriptionId = PermissionService.selectedSubscription.id;
631
+ this.route.queryParams.subscribe(response => {
632
+ this.keyword = response['keyword'];
633
+ if (this.keyword) {
634
+ this.search();
635
+ }
636
+ });
637
+ }
638
+ search() {
639
+ this.service.search(this.keyword, this.subscriptionId).subscribe(response => {
640
+ this.result = response;
641
+ });
642
+ }
643
+ trackByUserId(_index, item) {
644
+ return item.id;
645
+ }
646
+ trackByFaqId(_index, item) {
647
+ return item.id;
648
+ }
649
+ trackBySkill(_index, item) {
650
+ return item.id;
651
+ }
652
+ }
653
+ SearchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: SearchComponent, deps: [{ token: i1$1.ActivatedRoute }, { token: i1.DashboardService }], target: i0.ɵɵFactoryTarget.Component });
654
+ SearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: SearchComponent, selector: "pw-search", ngImport: i0, template: "<div class=\"container-fluid dashboard-card overflow-hidden\">\n <div class=\"dashboard\">\n <div class=\"dashboard-body\">\n <div class=\"row\">\n <div class=\"col-12 my-3 mt-4\">\n <h2>Search Results</h2>\n </div>\n </div>\n <div class=\"row faqlist search-result\">\n <div class=\"col-12\">\n <div data-cy=\"faq-list\">\n <ng-container *ngIf=\"result\">\n <div *ngFor=\"let group of objectKeys(result); let idx = index\"\n [ngSwitch]=\"group\">\n <ng-container *ngSwitchCase=\"'users'\">\n <ng-container *ngIf=\"result[group].length\">\n <h6 class=\"gradient-custom-branding\">\n {{ group | uppercase }}\n </h6>\n <div class=\"row px-2\">\n <div class=\"col-12 ms-2 faq-item\"\n *ngFor=\"\n let user of result[group];\n let idx1 = index;\n trackBy: trackByUserId\n \">\n <div class=\"accordion\">\n <div class=\"accord-title p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a href=\"javascript:void(0)\"\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 <strong *ngIf=\"user.user_skills?.length > 0\">Skills :\n </strong>\n <span class=\"badge bg-success m-1\"\n *ngFor=\"\n let skill of user.user_skills;\n let isLast = last;\n trackBy: trackBySkill\n \">\n {{ skill.name\n }}{{ isLast ? '' : ', ' }}</span>\n </p>\n <p class=\"m-0 title-font\"\n *ngIf=\"\n user?.user_profile?.headline\n ?.length > 0\n \">\n {{ user?.user_profile?.headline }}\n </p>\n <p class=\"m-0 title-font\"\n *ngIf=\"\n user?.user_profile?.country\n ?.length > 0\n \">\n <strong>Location : </strong>{{ user?.user_profile?.country }}\n </p>\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 <ng-container *ngIf=\"\n user?.user_avatar\n ?.length > 0;\n else noProfileImg\n \">\n <ng-container *ngFor=\"\n let profile_image of user.user_avatar\n \">\n <div class=\"text-center my-2\"\n *ngIf=\"\n profile_image.width ===\n 200\n \">\n <div class=\"avatar\">\n <img class=\"img-fluid\"\n [src]=\"\n profile_image.url\n \"\n alt=\"\"\n onerror=\"this.onerror=null;this.src='assets/img/icons/male.png';\" />\n </div>\n </div>\n </ng-container>\n </ng-container>\n <ng-template #noProfileImg>\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 </ng-template>\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 !==\n 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 !==\n 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 !==\n 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 </div>\n </div>\n </ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'faqs'\">\n <ng-container *ngIf=\"result[group].length\">\n <h6 class=\"gradient-custom-branding\">\n {{ group | uppercase }}\n </h6>\n <div class=\"row px-2\">\n <div class=\"col-12 ms-2 faq-item\"\n *ngFor=\"\n let faq of result[group];\n let idx2 = index;\n trackBy: trackByFaqId\n \">\n <div class=\"p-2\">\n <div class=\"accord-title1s\">\n <h5 class=\"accordion-title mt-2\">\n <a href=\"javascript:void(0)\"\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 <p class=\"faq-search-answer mb-0 pt-3 px-2\"\n [innerHtml]=\"faq.answer\"></p>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n <pw-no-data message=\"No result found.\"\n *ngIf=\"\n result.users?.length === 0 &&\n result.faqs?.length === 0 &&\n result.recipients?.length === 0\n \">\n </pw-no-data>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n", styles: [":root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255)}h6{background-color:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem}a{color:#333;display:block;margin:6px 0;position:relative;transition:all .5s}a:hover{color:var(--titles);text-decoration:underline}.faq-search-answer a{color:#144086;display:inline-block;float:right;font-size:14px;margin-right:15px}.faq-search-answer a:after{right:-10px}.faq-item{border:1px dashed rgba(0,0,0,.1);border-radius:3px;margin:10px;transition:all .2s ease-in-out}.faq-item.faq-item{flex:auto;padding:0}.faq-item a{text-decoration:none}.accord-title1 .faq-search-answer a{margin-right:0!important}a.accordion-toggle:after{display:none}.accord-title p.title-font{font-size:.8rem}.panel-collapse.show{border-top:1px dashed rgba(0,0,0,.1)}.panel-collapse ul{margin-bottom:1rem}.panel-collapse ul.name-fl li{display:inline-block;padding-right:15px}.view-btn a{display:inline-block}.avatar{width:130px;margin:0 auto;display:block}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i7.LazyImgDirective, selector: "img" }, { kind: "pipe", type: i2.UpperCasePipe, name: "uppercase" }] });
655
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: SearchComponent, decorators: [{
656
+ type: Component,
657
+ args: [{ selector: 'pw-search', template: "<div class=\"container-fluid dashboard-card overflow-hidden\">\n <div class=\"dashboard\">\n <div class=\"dashboard-body\">\n <div class=\"row\">\n <div class=\"col-12 my-3 mt-4\">\n <h2>Search Results</h2>\n </div>\n </div>\n <div class=\"row faqlist search-result\">\n <div class=\"col-12\">\n <div data-cy=\"faq-list\">\n <ng-container *ngIf=\"result\">\n <div *ngFor=\"let group of objectKeys(result); let idx = index\"\n [ngSwitch]=\"group\">\n <ng-container *ngSwitchCase=\"'users'\">\n <ng-container *ngIf=\"result[group].length\">\n <h6 class=\"gradient-custom-branding\">\n {{ group | uppercase }}\n </h6>\n <div class=\"row px-2\">\n <div class=\"col-12 ms-2 faq-item\"\n *ngFor=\"\n let user of result[group];\n let idx1 = index;\n trackBy: trackByUserId\n \">\n <div class=\"accordion\">\n <div class=\"accord-title p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a href=\"javascript:void(0)\"\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 <strong *ngIf=\"user.user_skills?.length > 0\">Skills :\n </strong>\n <span class=\"badge bg-success m-1\"\n *ngFor=\"\n let skill of user.user_skills;\n let isLast = last;\n trackBy: trackBySkill\n \">\n {{ skill.name\n }}{{ isLast ? '' : ', ' }}</span>\n </p>\n <p class=\"m-0 title-font\"\n *ngIf=\"\n user?.user_profile?.headline\n ?.length > 0\n \">\n {{ user?.user_profile?.headline }}\n </p>\n <p class=\"m-0 title-font\"\n *ngIf=\"\n user?.user_profile?.country\n ?.length > 0\n \">\n <strong>Location : </strong>{{ user?.user_profile?.country }}\n </p>\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 <ng-container *ngIf=\"\n user?.user_avatar\n ?.length > 0;\n else noProfileImg\n \">\n <ng-container *ngFor=\"\n let profile_image of user.user_avatar\n \">\n <div class=\"text-center my-2\"\n *ngIf=\"\n profile_image.width ===\n 200\n \">\n <div class=\"avatar\">\n <img class=\"img-fluid\"\n [src]=\"\n profile_image.url\n \"\n alt=\"\"\n onerror=\"this.onerror=null;this.src='assets/img/icons/male.png';\" />\n </div>\n </div>\n </ng-container>\n </ng-container>\n <ng-template #noProfileImg>\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 </ng-template>\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 !==\n 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 !==\n 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 !==\n 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 </div>\n </div>\n </ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'faqs'\">\n <ng-container *ngIf=\"result[group].length\">\n <h6 class=\"gradient-custom-branding\">\n {{ group | uppercase }}\n </h6>\n <div class=\"row px-2\">\n <div class=\"col-12 ms-2 faq-item\"\n *ngFor=\"\n let faq of result[group];\n let idx2 = index;\n trackBy: trackByFaqId\n \">\n <div class=\"p-2\">\n <div class=\"accord-title1s\">\n <h5 class=\"accordion-title mt-2\">\n <a href=\"javascript:void(0)\"\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 <p class=\"faq-search-answer mb-0 pt-3 px-2\"\n [innerHtml]=\"faq.answer\"></p>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n <pw-no-data message=\"No result found.\"\n *ngIf=\"\n result.users?.length === 0 &&\n result.faqs?.length === 0 &&\n result.recipients?.length === 0\n \">\n </pw-no-data>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n", styles: [":root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255)}h6{background-color:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem}a{color:#333;display:block;margin:6px 0;position:relative;transition:all .5s}a:hover{color:var(--titles);text-decoration:underline}.faq-search-answer a{color:#144086;display:inline-block;float:right;font-size:14px;margin-right:15px}.faq-search-answer a:after{right:-10px}.faq-item{border:1px dashed rgba(0,0,0,.1);border-radius:3px;margin:10px;transition:all .2s ease-in-out}.faq-item.faq-item{flex:auto;padding:0}.faq-item a{text-decoration:none}.accord-title1 .faq-search-answer a{margin-right:0!important}a.accordion-toggle:after{display:none}.accord-title p.title-font{font-size:.8rem}.panel-collapse.show{border-top:1px dashed rgba(0,0,0,.1)}.panel-collapse ul{margin-bottom:1rem}.panel-collapse ul.name-fl li{display:inline-block;padding-right:15px}.view-btn a{display:inline-block}.avatar{width:130px;margin:0 auto;display:block}\n"] }]
658
+ }], ctorParameters: function () { return [{ type: i1$1.ActivatedRoute }, { type: i1.DashboardService }]; } });
659
+
942
660
  // Sidebar menu Routes and data
943
661
  const ROUTES = [
944
662
  // Dashboard Home
@@ -1289,7 +1007,6 @@ class SidebarComponent extends AppBaseComponent {
1289
1007
  this.subscription = new Subscription();
1290
1008
  this.productMenus = []; // List of products to be populated contains 'Pages.Product'
1291
1009
  this.menus = [];
1292
- this.productSidebarMenus = this.productSidebarMenuRoutes;
1293
1010
  this.webSocket.webSocket$.subscribe(response => {
1294
1011
  if (response.event === SOCKET_TYPE.MSG) {
1295
1012
  this.mailboxService.incrementUnreadCount(1);
@@ -1554,7 +1271,7 @@ class SidebarComponent extends AppBaseComponent {
1554
1271
  }
1555
1272
  }
1556
1273
  SidebarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: SidebarComponent, deps: [{ token: i1.MailBoxService }, { token: i0.ChangeDetectorRef }, { token: i1.GoogleAnalyticsService }, { token: i1.WebsocketService }, { token: DOCUMENT }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
1557
- SidebarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: SidebarComponent, selector: "pw-sidebar", inputs: { productSidebarMenuRoutes: "productSidebarMenuRoutes" }, outputs: { sidebarRenderEvent: "sidebarRenderEvent" }, usesInheritance: true, ngImport: i0, template: "<!-- Sidebar Header starts -->\n<div class=\"sidebar-header\">\n <div class=\"logo clearfix\">\n <span class=\"logo-text float-start\">\n <div class=\"dropdown\">\n <button [ngClass]=\"{ 'dropdown-toggle': productMenus.length > 1 }\"\n type=\"button\"\n id=\"dropdownMenuButton\"\n [attr.data-bs-toggle]=\"productMenus.length > 1 ? 'dropdown' : ''\"\n style=\"background: none; border: none; padding: 0\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\">\n <div class=\"logo-img logo-text float-start\">\n <ng-template [ngIf]=\"logo\">\n <img [src]=\"logo.square\"\n alt=\"img\"\n onerror=\"this.onerror=null;this.src='assets/img/logos/logo-white.png';\" />\n </ng-template>\n <span class=\"text align-middle fw-bold text-truncate d-inline-block org-text\"\n [title]=\"selectedSubscription?.organisation\"\n [id]=\"selectedSubscription?.id\">\n {{ selectedProduct?.title || companyName }}\n </span>\n </div>\n </button>\n <div class=\"sidebar-title\">\n {{ selectedSubscription?.organisation || companyName }}\n </div>\n <!-- Product Dropdown -->\n <div class=\"dropdown-menu product-dropdown\"\n aria-labelledby=\"dropdownMenuButton\"\n style=\"text-transform: none\"\n *ngIf=\"productMenus.length > 1\">\n <button class=\"dropdown-item text-truncate\"\n *ngFor=\"let product of productMenus | uniqBy: 'subscriptionId'\"\n [attr.subscription_id]=\"product.subscriptionId\"\n (click)=\"navigateToProductDashboard(product)\">\n {{ product.nickname }}\n <span>\n by {{ product.organisation || product.master_sub_name || companyName }}\n </span>\n </button>\n </div>\n </div>\n </span>\n <a class=\"nav-toggle d-none d-sm-none d-md-none d-lg-block\"\n id=\"sidebarToggle\"\n (click)=\"onSidebarToggle($event)\"\n href=\"javascript:;\">\n <i class=\"ft-toggle-right toggle-icon\" data-bs-toggle=\"expanded\" aria-hidden=\"true\"></i>\n </a>\n <a class=\"nav-close d-block d-md-block d-lg-none d-xl-none\"\n id=\"sidebarClose\"\n href=\"javascript:;\">\n <i class=\"ft-x\" aria-hidden=\"true\"></i>\n </a>\n </div>\n</div>\n<!-- Sidebar Header Ends -->\n<!-- Sidebar Content starts -->\n<div class=\"sidebar-content\">\n <div class=\"nav-container\">\n <ul class=\"navigation side-menu\"\n *ngIf=\"menus.length\">\n <li class=\"sidebar-search mx-3 mb-3\"\n (click)=\"$event.stopPropagation()\">\n <form role=\"search\"\n (ngSubmit)=\"onSearch(search)\">\n <div class=\"position-relative has-icon-right\">\n <i class=\"fa fa-search position-absolute\" aria-hidden=\"true\"></i>\n <input type=\"text\"\n class=\"form-control ps-4\"\n placeholder=\"Search\"\n #search />\n </div>\n </form>\n </li>\n <!-- First level menu -->\n <li *ngFor=\"let menuItem of menus | sort\"\n [ngClass]=\"[menuItem.class]\"\n [routerLinkActive]=\"menuItem.submenu.length !== 0 ? '' : 'active'\">\n <ng-container>\n <a [routerLink]=\"menuItem.class === '' ? [menuItem.path] : null\"\n *ngIf=\"!menuItem.isExternalLink; else externalLinkBlock\">\n <i [ngClass]=\"[menuItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">\n <span>{{ menuItem?.title | textTruncate: 14 }}</span>\n </span>\n <span *ngIf=\"menuItem.badge !== ''\"\n [ngClass]=\"[menuItem.badgeClass]\">{{\n menuItem.badge\n }}</span>\n </a>\n <ng-template #externalLinkBlock>\n <a [href]=\"[menuItem.path]\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n <i [ngClass]=\"[menuItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuItem.title }}</span>\n <span *ngIf=\"menuItem.badge !== ''\"\n [ngClass]=\"[menuItem.badgeClass]\">{{\n menuItem.badge\n }}</span>\n </a>\n </ng-template>\n </ng-container>\n <!-- Second level menu -->\n <ul class=\"menu-content\"\n *ngIf=\"menuItem.submenu.length > 0\">\n <li *ngFor=\"let menuSubItem of menuItem.submenu\"\n [routerLinkActive]=\"menuSubItem.submenu.length > 0 ? '' : 'active'\"\n [ngClass]=\"[menuSubItem.class]\">\n <ng-container>\n <a [routerLink]=\"\n menuSubItem.submenu.length > 0 ? null : [menuSubItem.path]\n \"\n class=\"sub-menu\"\n *ngIf=\"!menuSubItem.isExternalLink; else externalSubLinkBlock\">\n <i [ngClass]=\"[menuSubItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuSubItem.title }}</span>\n <span *ngIf=\"menuSubItem.badge !== ''\"\n [ngClass]=\"[menuSubItem.badgeClass]\">\n {{ menuSubItem.badge }}\n </span>\n </a>\n <ng-template #externalSubLinkBlock>\n <a [href]=\"[menuSubItem.path]\">\n <i [ngClass]=\"[menuSubItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuSubItem.title }}</span>\n <span *ngIf=\"menuSubItem.badge !== ''\"\n [ngClass]=\"[menuSubItem.badgeClass]\">\n {{ menuSubItem.badge }}\n </span>\n </a>\n </ng-template>\n </ng-container>\n <!-- Third level menu -->\n <ul class=\"menu-content\"\n *ngIf=\"menuSubItem.submenu.length > 0\">\n <li *ngFor=\"let menuSubsubItem of menuSubItem.submenu\"\n routerLinkActive=\"active\"\n [ngClass]=\"[menuSubsubItem.class]\">\n <a [routerLink]=\"[menuSubsubItem.path]\"\n *ngIf=\"\n !menuSubsubItem.isExternalLink;\n else externalSubSubLinkBlock\n \">\n <i [ngClass]=\"[menuSubsubItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuSubsubItem.title }}</span>\n <span *ngIf=\"menuSubsubItem.badge !== ''\"\n [ngClass]=\"[menuSubsubItem.badgeClass]\">\n {{ menuSubsubItem.badge }}</span>\n </a>\n <ng-template #externalSubSubLinkBlock>\n <a [href]=\"[menuSubsubItem.path]\">\n <i [ngClass]=\"[menuSubsubItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuSubsubItem.title }}</span>\n <span *ngIf=\"menuSubsubItem.badge !== ''\"\n [ngClass]=\"[menuSubsubItem.badgeClass]\">\n {{ menuSubsubItem.badge }}</span>\n </a>\n </ng-template>\n </li>\n </ul>\n </li>\n </ul>\n </li>\n </ul>\n </div>\n</div>\n<!-- Sidebar Content Ends -->\n", dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i1$1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i7.LazyImgDirective, selector: "img" }, { kind: "pipe", type: i3$1.TextTruncatePipe, name: "textTruncate" }, { kind: "pipe", type: i3$1.SortArrayPipe, name: "sort" }, { kind: "pipe", type: i3$1.UniqByListPipe, name: "uniqBy" }] });
1274
+ SidebarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: SidebarComponent, selector: "pw-sidebar", inputs: { productSidebarMenus: "productSidebarMenus" }, outputs: { sidebarRenderEvent: "sidebarRenderEvent" }, usesInheritance: true, ngImport: i0, template: "<!-- Sidebar Header starts -->\n<div class=\"sidebar-header\">\n <div class=\"logo clearfix\">\n <span class=\"logo-text float-start\">\n <div class=\"dropdown\">\n <button [ngClass]=\"{ 'dropdown-toggle': productMenus.length > 1 }\"\n type=\"button\"\n id=\"dropdownMenuButton\"\n [attr.data-bs-toggle]=\"productMenus.length > 1 ? 'dropdown' : ''\"\n style=\"background: none; border: none; padding: 0\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\">\n <div class=\"logo-img logo-text float-start\">\n <ng-template [ngIf]=\"logo\">\n <img [src]=\"logo.square\"\n alt=\"img\"\n onerror=\"this.onerror=null;this.src='assets/img/logos/logo-white.png';\" />\n </ng-template>\n <span class=\"text align-middle fw-bold text-truncate d-inline-block org-text\"\n [title]=\"selectedSubscription?.organisation\"\n [id]=\"selectedSubscription?.id\">\n {{ selectedProduct?.title || companyName }}\n </span>\n </div>\n </button>\n <div class=\"sidebar-title\">\n {{ selectedSubscription?.organisation || companyName }}\n </div>\n <!-- Product Dropdown -->\n <div class=\"dropdown-menu product-dropdown\"\n aria-labelledby=\"dropdownMenuButton\"\n style=\"text-transform: none\"\n *ngIf=\"productMenus.length > 1\">\n <button class=\"dropdown-item text-truncate\"\n *ngFor=\"let product of productMenus | uniqBy: 'subscriptionId'\"\n [attr.subscription_id]=\"product.subscriptionId\"\n (click)=\"navigateToProductDashboard(product)\">\n {{ product.nickname }}\n <span>\n by {{ product.organisation || product.master_sub_name || companyName }}\n </span>\n </button>\n </div>\n </div>\n </span>\n <a class=\"nav-toggle d-none d-sm-none d-md-none d-lg-block\"\n id=\"sidebarToggle\"\n (click)=\"onSidebarToggle($event)\"\n href=\"javascript:;\">\n <i class=\"ft-toggle-right toggle-icon\" data-bs-toggle=\"expanded\" aria-hidden=\"true\"></i>\n </a>\n <a class=\"nav-close d-block d-md-block d-lg-none d-xl-none\"\n id=\"sidebarClose\"\n href=\"javascript:;\">\n <i class=\"ft-x\" aria-hidden=\"true\"></i>\n </a>\n </div>\n</div>\n<!-- Sidebar Header Ends -->\n<!-- Sidebar Content starts -->\n<div class=\"sidebar-content\">\n <div class=\"nav-container\">\n <ul class=\"navigation side-menu\"\n *ngIf=\"menus.length\">\n <li class=\"sidebar-search mx-3 mb-3\"\n (click)=\"$event.stopPropagation()\">\n <form role=\"search\"\n (ngSubmit)=\"onSearch(search)\">\n <div class=\"position-relative has-icon-right\">\n <i class=\"fa fa-search position-absolute\" aria-hidden=\"true\"></i>\n <input type=\"text\"\n class=\"form-control ps-4\"\n placeholder=\"Search\"\n #search />\n </div>\n </form>\n </li>\n <!-- First level menu -->\n <li *ngFor=\"let menuItem of menus | sort\"\n [ngClass]=\"[menuItem.class]\"\n [routerLinkActive]=\"menuItem.submenu.length !== 0 ? '' : 'active'\">\n <ng-container>\n <a [routerLink]=\"menuItem.class === '' ? [menuItem.path] : null\"\n *ngIf=\"!menuItem.isExternalLink; else externalLinkBlock\">\n <i [ngClass]=\"[menuItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">\n <span>{{ menuItem?.title | textTruncate: 14 }}</span>\n </span>\n <span *ngIf=\"menuItem.badge !== ''\"\n [ngClass]=\"[menuItem.badgeClass]\">{{\n menuItem.badge\n }}</span>\n </a>\n <ng-template #externalLinkBlock>\n <a [href]=\"[menuItem.path]\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n <i [ngClass]=\"[menuItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuItem.title }}</span>\n <span *ngIf=\"menuItem.badge !== ''\"\n [ngClass]=\"[menuItem.badgeClass]\">{{\n menuItem.badge\n }}</span>\n </a>\n </ng-template>\n </ng-container>\n <!-- Second level menu -->\n <ul class=\"menu-content\"\n *ngIf=\"menuItem.submenu.length > 0\">\n <li *ngFor=\"let menuSubItem of menuItem.submenu\"\n [routerLinkActive]=\"menuSubItem.submenu.length > 0 ? '' : 'active'\"\n [ngClass]=\"[menuSubItem.class]\">\n <ng-container>\n <a [routerLink]=\"\n menuSubItem.submenu.length > 0 ? null : [menuSubItem.path]\n \"\n class=\"sub-menu\"\n *ngIf=\"!menuSubItem.isExternalLink; else externalSubLinkBlock\">\n <i [ngClass]=\"[menuSubItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuSubItem.title }}</span>\n <span *ngIf=\"menuSubItem.badge !== ''\"\n [ngClass]=\"[menuSubItem.badgeClass]\">\n {{ menuSubItem.badge }}\n </span>\n </a>\n <ng-template #externalSubLinkBlock>\n <a [href]=\"[menuSubItem.path]\">\n <i [ngClass]=\"[menuSubItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuSubItem.title }}</span>\n <span *ngIf=\"menuSubItem.badge !== ''\"\n [ngClass]=\"[menuSubItem.badgeClass]\">\n {{ menuSubItem.badge }}\n </span>\n </a>\n </ng-template>\n </ng-container>\n <!-- Third level menu -->\n <ul class=\"menu-content\"\n *ngIf=\"menuSubItem.submenu.length > 0\">\n <li *ngFor=\"let menuSubsubItem of menuSubItem.submenu\"\n routerLinkActive=\"active\"\n [ngClass]=\"[menuSubsubItem.class]\">\n <a [routerLink]=\"[menuSubsubItem.path]\"\n *ngIf=\"\n !menuSubsubItem.isExternalLink;\n else externalSubSubLinkBlock\n \">\n <i [ngClass]=\"[menuSubsubItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuSubsubItem.title }}</span>\n <span *ngIf=\"menuSubsubItem.badge !== ''\"\n [ngClass]=\"[menuSubsubItem.badgeClass]\">\n {{ menuSubsubItem.badge }}</span>\n </a>\n <ng-template #externalSubSubLinkBlock>\n <a [href]=\"[menuSubsubItem.path]\">\n <i [ngClass]=\"[menuSubsubItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuSubsubItem.title }}</span>\n <span *ngIf=\"menuSubsubItem.badge !== ''\"\n [ngClass]=\"[menuSubsubItem.badgeClass]\">\n {{ menuSubsubItem.badge }}</span>\n </a>\n </ng-template>\n </li>\n </ul>\n </li>\n </ul>\n </li>\n </ul>\n </div>\n</div>\n<!-- Sidebar Content Ends -->\n", dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i1$1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i7.LazyImgDirective, selector: "img" }, { kind: "pipe", type: i3$1.TextTruncatePipe, name: "textTruncate" }, { kind: "pipe", type: i3$1.SortArrayPipe, name: "sort" }, { kind: "pipe", type: i3$1.UniqByListPipe, name: "uniqBy" }] });
1558
1275
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: SidebarComponent, decorators: [{
1559
1276
  type: Component,
1560
1277
  args: [{ selector: 'pw-sidebar', template: "<!-- Sidebar Header starts -->\n<div class=\"sidebar-header\">\n <div class=\"logo clearfix\">\n <span class=\"logo-text float-start\">\n <div class=\"dropdown\">\n <button [ngClass]=\"{ 'dropdown-toggle': productMenus.length > 1 }\"\n type=\"button\"\n id=\"dropdownMenuButton\"\n [attr.data-bs-toggle]=\"productMenus.length > 1 ? 'dropdown' : ''\"\n style=\"background: none; border: none; padding: 0\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\">\n <div class=\"logo-img logo-text float-start\">\n <ng-template [ngIf]=\"logo\">\n <img [src]=\"logo.square\"\n alt=\"img\"\n onerror=\"this.onerror=null;this.src='assets/img/logos/logo-white.png';\" />\n </ng-template>\n <span class=\"text align-middle fw-bold text-truncate d-inline-block org-text\"\n [title]=\"selectedSubscription?.organisation\"\n [id]=\"selectedSubscription?.id\">\n {{ selectedProduct?.title || companyName }}\n </span>\n </div>\n </button>\n <div class=\"sidebar-title\">\n {{ selectedSubscription?.organisation || companyName }}\n </div>\n <!-- Product Dropdown -->\n <div class=\"dropdown-menu product-dropdown\"\n aria-labelledby=\"dropdownMenuButton\"\n style=\"text-transform: none\"\n *ngIf=\"productMenus.length > 1\">\n <button class=\"dropdown-item text-truncate\"\n *ngFor=\"let product of productMenus | uniqBy: 'subscriptionId'\"\n [attr.subscription_id]=\"product.subscriptionId\"\n (click)=\"navigateToProductDashboard(product)\">\n {{ product.nickname }}\n <span>\n by {{ product.organisation || product.master_sub_name || companyName }}\n </span>\n </button>\n </div>\n </div>\n </span>\n <a class=\"nav-toggle d-none d-sm-none d-md-none d-lg-block\"\n id=\"sidebarToggle\"\n (click)=\"onSidebarToggle($event)\"\n href=\"javascript:;\">\n <i class=\"ft-toggle-right toggle-icon\" data-bs-toggle=\"expanded\" aria-hidden=\"true\"></i>\n </a>\n <a class=\"nav-close d-block d-md-block d-lg-none d-xl-none\"\n id=\"sidebarClose\"\n href=\"javascript:;\">\n <i class=\"ft-x\" aria-hidden=\"true\"></i>\n </a>\n </div>\n</div>\n<!-- Sidebar Header Ends -->\n<!-- Sidebar Content starts -->\n<div class=\"sidebar-content\">\n <div class=\"nav-container\">\n <ul class=\"navigation side-menu\"\n *ngIf=\"menus.length\">\n <li class=\"sidebar-search mx-3 mb-3\"\n (click)=\"$event.stopPropagation()\">\n <form role=\"search\"\n (ngSubmit)=\"onSearch(search)\">\n <div class=\"position-relative has-icon-right\">\n <i class=\"fa fa-search position-absolute\" aria-hidden=\"true\"></i>\n <input type=\"text\"\n class=\"form-control ps-4\"\n placeholder=\"Search\"\n #search />\n </div>\n </form>\n </li>\n <!-- First level menu -->\n <li *ngFor=\"let menuItem of menus | sort\"\n [ngClass]=\"[menuItem.class]\"\n [routerLinkActive]=\"menuItem.submenu.length !== 0 ? '' : 'active'\">\n <ng-container>\n <a [routerLink]=\"menuItem.class === '' ? [menuItem.path] : null\"\n *ngIf=\"!menuItem.isExternalLink; else externalLinkBlock\">\n <i [ngClass]=\"[menuItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">\n <span>{{ menuItem?.title | textTruncate: 14 }}</span>\n </span>\n <span *ngIf=\"menuItem.badge !== ''\"\n [ngClass]=\"[menuItem.badgeClass]\">{{\n menuItem.badge\n }}</span>\n </a>\n <ng-template #externalLinkBlock>\n <a [href]=\"[menuItem.path]\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n <i [ngClass]=\"[menuItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuItem.title }}</span>\n <span *ngIf=\"menuItem.badge !== ''\"\n [ngClass]=\"[menuItem.badgeClass]\">{{\n menuItem.badge\n }}</span>\n </a>\n </ng-template>\n </ng-container>\n <!-- Second level menu -->\n <ul class=\"menu-content\"\n *ngIf=\"menuItem.submenu.length > 0\">\n <li *ngFor=\"let menuSubItem of menuItem.submenu\"\n [routerLinkActive]=\"menuSubItem.submenu.length > 0 ? '' : 'active'\"\n [ngClass]=\"[menuSubItem.class]\">\n <ng-container>\n <a [routerLink]=\"\n menuSubItem.submenu.length > 0 ? null : [menuSubItem.path]\n \"\n class=\"sub-menu\"\n *ngIf=\"!menuSubItem.isExternalLink; else externalSubLinkBlock\">\n <i [ngClass]=\"[menuSubItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuSubItem.title }}</span>\n <span *ngIf=\"menuSubItem.badge !== ''\"\n [ngClass]=\"[menuSubItem.badgeClass]\">\n {{ menuSubItem.badge }}\n </span>\n </a>\n <ng-template #externalSubLinkBlock>\n <a [href]=\"[menuSubItem.path]\">\n <i [ngClass]=\"[menuSubItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuSubItem.title }}</span>\n <span *ngIf=\"menuSubItem.badge !== ''\"\n [ngClass]=\"[menuSubItem.badgeClass]\">\n {{ menuSubItem.badge }}\n </span>\n </a>\n </ng-template>\n </ng-container>\n <!-- Third level menu -->\n <ul class=\"menu-content\"\n *ngIf=\"menuSubItem.submenu.length > 0\">\n <li *ngFor=\"let menuSubsubItem of menuSubItem.submenu\"\n routerLinkActive=\"active\"\n [ngClass]=\"[menuSubsubItem.class]\">\n <a [routerLink]=\"[menuSubsubItem.path]\"\n *ngIf=\"\n !menuSubsubItem.isExternalLink;\n else externalSubSubLinkBlock\n \">\n <i [ngClass]=\"[menuSubsubItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuSubsubItem.title }}</span>\n <span *ngIf=\"menuSubsubItem.badge !== ''\"\n [ngClass]=\"[menuSubsubItem.badgeClass]\">\n {{ menuSubsubItem.badge }}</span>\n </a>\n <ng-template #externalSubSubLinkBlock>\n <a [href]=\"[menuSubsubItem.path]\">\n <i [ngClass]=\"[menuSubsubItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuSubsubItem.title }}</span>\n <span *ngIf=\"menuSubsubItem.badge !== ''\"\n [ngClass]=\"[menuSubsubItem.badgeClass]\">\n {{ menuSubsubItem.badge }}</span>\n </a>\n </ng-template>\n </li>\n </ul>\n </li>\n </ul>\n </li>\n </ul>\n </div>\n</div>\n<!-- Sidebar Content Ends -->\n" }]
@@ -1565,7 +1282,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImpor
1565
1282
  }] }, { type: i0.Injector }];
1566
1283
  }, propDecorators: { sidebarRenderEvent: [{
1567
1284
  type: Output
1568
- }], productSidebarMenuRoutes: [{
1285
+ }], productSidebarMenus: [{
1569
1286
  type: Input
1570
1287
  }] } });
1571
1288
 
@@ -1623,8 +1340,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImpor
1623
1340
  args: [{ selector: 'pw-user-notifications', template: "<div class=\"row mt-4 mb-0 notification-wrapper\"\n id=\"user-message\">\n <ng-container *ngFor=\"let noti of notifications\">\n <div class=\"col-12 col-sm-12 col-md-12 mb-2\"\n *ngIf=\"isHomePage || noti?.can_disregard\">\n <div class=\"card pb-0\">\n <div class=\"alert border-0 card-body d-flex align-items-center justify-content-between px-3 mb-0\"\n [ngClass]=\"noti.type ? 'alert-' + noti.type : 'alert-panel'\">\n <p class=\"mb-0\"\n [innerHtml]=\"noti.message | safe: 'html'\"\n appAnchorRouter></p>\n <a class=\"icon-dismiss float-end text-white\"\n *ngIf=\"noti?.can_disregard\"\n (click)=\"hideNoty(noti?.notification_id)\">\n <i class=\"ft-x\" aria-hidden=\"true\"></i>\n </a>\n </div>\n </div>\n </div>\n </ng-container>\n</div>\n", styles: [":root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255)}.alert-panel{background-color:#fff!important;border-color:#ddd!important;border-radius:8px;box-shadow:3px 3px 40px #d2d2d2;color:#021a11!important}.alert-info{background-color:var(--tabs_bg)!important}p{color:#fff}.notification-wrapper:empty{display:none}\n"] }]
1624
1341
  }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1.CommonService }]; } });
1625
1342
 
1343
+ class FaqDetailsComponent extends AppBaseComponent {
1344
+ constructor(commonService, injector) {
1345
+ super(injector);
1346
+ this.commonService = commonService;
1347
+ this.isLoading = false;
1348
+ this.id = Number(this.route.snapshot.params['id']);
1349
+ }
1350
+ ngOnInit() {
1351
+ this.getFaq();
1352
+ }
1353
+ getFaq() {
1354
+ this.isLoading = true;
1355
+ this.commonService
1356
+ .getPublicFaqById(this.id)
1357
+ .subscribe(res => {
1358
+ this.faq = res;
1359
+ })
1360
+ .add(() => (this.isLoading = false));
1361
+ }
1362
+ }
1363
+ FaqDetailsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: FaqDetailsComponent, deps: [{ token: i1.CommonService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
1364
+ FaqDetailsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: FaqDetailsComponent, selector: "pw-faq-details", usesInheritance: true, ngImport: i0, template: "<div class=\"container-fluid overflow-hidden mt-4 p-3\">\n <h2>{{faq?.question}}</h2>\n <ng-container *ngIf=\"faq?.answer\">\n <div class=\"ql-container ql-snow\"\n style=\"border-width: 0;\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer |safe:'html'\">\n </div>\n </div>\n </ng-container>\n <pw-no-data *ngIf=\"!faq && !isLoading\"\n message=\"No Faq found\"> </pw-no-data>\n</div>\n<div class=\"w-100 text-center mt-3\"\n *ngIf=\"isLoading\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i3$1.DOMSanitizerPipe, name: "safe" }] });
1365
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: FaqDetailsComponent, decorators: [{
1366
+ type: Component,
1367
+ args: [{ selector: 'pw-faq-details', template: "<div class=\"container-fluid overflow-hidden mt-4 p-3\">\n <h2>{{faq?.question}}</h2>\n <ng-container *ngIf=\"faq?.answer\">\n <div class=\"ql-container ql-snow\"\n style=\"border-width: 0;\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer |safe:'html'\">\n </div>\n </div>\n </ng-container>\n <pw-no-data *ngIf=\"!faq && !isLoading\"\n message=\"No Faq found\"> </pw-no-data>\n</div>\n<div class=\"w-100 text-center mt-3\"\n *ngIf=\"isLoading\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n</div>\n" }]
1368
+ }], ctorParameters: function () { return [{ type: i1.CommonService }, { type: i0.Injector }]; } });
1369
+
1626
1370
  // Core Angular modules
1627
- // import { SharedModule } from '@app/shared/shared.module';
1628
1371
  class DashboardModule {
1629
1372
  }
1630
1373
  DashboardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DashboardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });