@posiwise/dashboard-module 0.0.56 → 0.0.58

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.
Files changed (23) hide show
  1. package/{esm2020 → esm2022}/lib/customizer/customizer.component.mjs +4 -4
  2. package/{esm2020 → esm2022}/lib/dashboard.module.mjs +38 -38
  3. package/{esm2020 → esm2022}/lib/faq/faq.component.mjs +5 -5
  4. package/{esm2020 → esm2022}/lib/faq-details/faq-details.component.mjs +5 -5
  5. package/{esm2020 → esm2022}/lib/footer/footer.component.mjs +4 -4
  6. package/{esm2020 → esm2022}/lib/home/home.component.mjs +5 -5
  7. package/{esm2020 → esm2022}/lib/navbar/navbar.component.mjs +5 -5
  8. package/{esm2020 → esm2022}/lib/notifications-page/current-notifications/current-notifications.component.mjs +5 -5
  9. package/{esm2020 → esm2022}/lib/notifications-page/dismissed-notifications/dismissed-notifications.component.mjs +5 -5
  10. package/{esm2020 → esm2022}/lib/notifications-page/notifications-page.component.mjs +4 -4
  11. package/{esm2020 → esm2022}/lib/search/search.component.mjs +5 -5
  12. package/{esm2020 → esm2022}/lib/user-feedback/user-feedback.component.mjs +5 -5
  13. package/{esm2020 → esm2022}/lib/user-notifications/user-notifications.component.mjs +5 -5
  14. package/{fesm2020 → fesm2022}/posiwise-dashboard-module.mjs +83 -83
  15. package/{fesm2020 → fesm2022}/posiwise-dashboard-module.mjs.map +1 -1
  16. package/lib/navbar/navbar.component.d.ts +1 -1
  17. package/package.json +9 -19
  18. package/fesm2015/posiwise-dashboard-module.mjs +0 -1117
  19. package/fesm2015/posiwise-dashboard-module.mjs.map +0 -1
  20. /package/{esm2020 → esm2022}/index.mjs +0 -0
  21. /package/{esm2020 → esm2022}/lib/sidebar/sidebar-routes.config.mjs +0 -0
  22. /package/{esm2020 → esm2022}/lib/sidebar/sidebar.metadata.mjs +0 -0
  23. /package/{esm2020 → esm2022}/posiwise-dashboard-module.mjs +0 -0
@@ -1,1117 +0,0 @@
1
- import * as i2 from '@angular/common';
2
- import { CommonModule } from '@angular/common';
3
- import * as i0 from '@angular/core';
4
- import { Component, Input, ViewChild, NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
5
- import * as i3 from '@angular/forms';
6
- import { FormsModule, ReactiveFormsModule } from '@angular/forms';
7
- import * as i1$2 from '@ng-bootstrap/ng-bootstrap';
8
- import { NgbDropdownConfig, NgbNavModule, NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';
9
- import * as i4$2 from 'primeng/radiobutton';
10
- import { RadioButtonModule } from 'primeng/radiobutton';
11
- import * as i3$1 from 'primeng/progressspinner';
12
- import { ProgressSpinnerModule } from 'primeng/progressspinner';
13
- import * as i8 from '@posiwise/directives';
14
- import { DirectivesModule } from '@posiwise/directives';
15
- import groupBy from 'lodash/groupBy';
16
- import { AppBaseComponent } from '@posiwise/app-base-component';
17
- import * as i1 from '@posiwise/common-services';
18
- import { PermissionService, SubscriptionService } from '@posiwise/common-services';
19
- import sortBy from 'lodash/sortBy';
20
- import * as i4 from '@posiwise/shared-components';
21
- import { SharedComponentsModule } from '@posiwise/shared-components';
22
- import * as i4$1 from '@posiwise/pipes';
23
- import { PipesModule } from '@posiwise/pipes';
24
- import * as i1$1 from '@angular/router';
25
- import { NavigationEnd } from '@angular/router';
26
- import moment from 'moment';
27
- import * as i5 from '@ngneat/transloco';
28
- import { getUser } from '@posiwise/app-store';
29
- import { orderBy } from 'lodash';
30
- import * as i3$2 from '@ngrx/store';
31
- import * as i6 from 'primeng/tooltip';
32
- import { HelperService } from '@posiwise/helper-service';
33
- import { Subject, takeUntil, filter } from 'rxjs';
34
- import { UserModuleModule } from '@posiwise/user-module';
35
- import { CoreTranslocoModule } from '@posiwise/core-transloco';
36
-
37
- class CustomizerComponent {
38
- ngOnInit() {
39
- // Customizer JS File
40
- $.getScript('/assets/js/customizer.js');
41
- }
42
- }
43
- CustomizerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CustomizerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
44
- CustomizerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: CustomizerComponent, selector: "pw-customizer", ngImport: i0, template: "<!--Theme customizer Starts-->\n<div class=\"customizer border-left-blue-grey border-left-lighten-4 d-none d-sm-none d-md-block open\">\n <a class=\"customizer-close\">\n <i class=\"ft-x font-medium-3\" aria-hidden=\"true\"></i>\n </a>\n <a class=\"customizer-toggle bg-danger\"\n id=\"customizer-toggle-icon\">\n <i class=\"ft-settings font-medium-4 fa fa-spin white align-middle\" aria-hidden=\"true\"></i>\n </a>\n <div class=\"customizer-content p-3 ps-container ps-theme-dark\"\n data-ps-id=\"df6a5ce4-a175-9172-4402-dabd98fc9c0a\">\n <h4 class=\"text-uppercase mb-0 text-bold-400\">Theme Customizer</h4>\n <p>Customize &amp; Preview in Real Time</p>\n <hr />\n <!--Sidebar Options Starts-->\n <h6 class=\"text-center text-bold-500 mb-3 text-uppercase\">Sidebar Color Options</h6>\n <div class=\"cz-bg-color\">\n <div class=\"row p-1\">\n <div class=\"col\">\n <span class=\"gradient-pomegranate d-block rounded-circle\"\n data-bg-color=\"pomegranate\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-king-yna d-block rounded-circle\"\n data-bg-color=\"king-yna\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-ibiza-sunset d-block rounded-circle\"\n data-bg-color=\"ibiza-sunset\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-flickr d-block rounded-circle\"\n data-bg-color=\"flickr\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-purple-bliss d-block rounded-circle\"\n data-bg-color=\"purple-bliss\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-man-of-steel d-block rounded-circle\"\n data-bg-color=\"man-of-steel\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-custom-branding d-block rounded-circle\"\n data-bg-color=\"custom-branding\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-purple-love d-block rounded-circle\"\n data-bg-color=\"purple-love\"></span>\n </div>\n </div>\n <div class=\"row p-1\">\n <div class=\"col\">\n <span class=\"bg-black d-block rounded-circle\"\n data-bg-color=\"black\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-grey d-block rounded-circle\"\n data-bg-color=\"white\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-primary d-block rounded-circle\"\n data-bg-color=\"primary\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-success d-block rounded-circle\"\n data-bg-color=\"success\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-warning d-block rounded-circle\"\n data-bg-color=\"warning\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-info d-block rounded-circle\"\n data-bg-color=\"info\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-default d-block rounded-circle\"\n data-bg-color=\"default\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-danger d-block rounded-circle\"\n data-bg-color=\"danger\"></span>\n </div>\n </div>\n </div>\n <!--Sidebar Options Ends-->\n <hr />\n\n <!--Sidebar BG Image Starts-->\n <h6 class=\"text-center text-bold-500 mb-3 text-uppercase\">Sidebar Bg Image</h6>\n <div class=\"cz-bg-image row\">\n <div class=\"col mb-3\">\n <img src=\"assets/img/sidebar-bg/01.jpg\"\n alt=\"\"\n class=\"rounded\"\n width=\"90\" />\n </div>\n <div class=\"col mb-3\">\n <img src=\"assets/img/sidebar-bg/02.jpg\"\n alt=\"\"\n class=\"rounded\"\n width=\"90\" />\n </div>\n <div class=\"col mb-3\">\n <img src=\"assets/img/sidebar-bg/03.jpg\"\n alt=\"\"\n class=\"rounded\"\n width=\"90\" />\n </div>\n <div class=\"col mb-3\">\n <img src=\"assets/img/sidebar-bg/04.jpg\"\n alt=\"\"\n class=\"rounded\"\n width=\"90\" />\n </div>\n <div class=\"col mb-3\">\n <img src=\"assets/img/sidebar-bg/05.jpg\"\n alt=\"\"\n class=\"rounded\"\n width=\"90\" />\n </div>\n <div class=\"col mb-3\">\n <img src=\"assets/img/sidebar-bg/06.jpg\"\n alt=\"\"\n class=\"rounded\"\n width=\"90\" />\n </div>\n </div>\n <!--Sidebar BG Image Ends-->\n <hr />\n\n <!--Sidebar BG Image Toggle Starts-->\n <div class=\"togglebutton\">\n <div class=\"switch\">\n <span>Sidebar Bg Image</span>\n <div class=\"float-end\">\n <div class=\"form-check custom-checkbox mb-2 me-sm-2 mb-sm-0\">\n <input type=\"checkbox\"\n class=\"form-check-input cz-bg-image-display\"\n checked\n id=\"sidebar-bg-img\" />\n <label class=\"form-check-label\"\n for=\"sidebar-bg-img\"></label>\n </div>\n </div>\n </div>\n </div>\n <!--Sidebar BG Image Toggle Ends-->\n <hr />\n\n <!--Compact Menu Starts-->\n <div class=\"togglebutton\">\n <div class=\"switch\">\n <span>Compact Menu</span>\n <div class=\"float-end\">\n <div class=\"form-check custom-checkbox mb-2 me-sm-2 mb-sm-0\">\n <input type=\"checkbox\"\n class=\"form-check-input cz-compact-menu\"\n id=\"cz-compact-menu\" />\n <label class=\"form-check-label\"\n for=\"cz-compact-menu\"></label>\n </div>\n </div>\n </div>\n </div>\n <!--Compact Menu Ends-->\n <hr />\n\n <!--Sidebar Width Starts-->\n <div>\n <label for=\"cz-sidebar-width\">Sidebar Width</label>\n <select id=\"cz-sidebar-width\"\n class=\"form-select cz-sidebar-width float-end\">\n <option value=\"small\">Small</option>\n <option value=\"medium\"\n selected>Medium</option>\n <option value=\"large\">Large</option>\n </select>\n </div>\n <!--Sidebar Width Ends-->\n </div>\n</div>\n<!--Theme customizer Ends-->\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)}.customizer{backface-visibility:hidden;background-color:#fff;border-left:1px solid rgba(0,0,0,.05);bottom:0;box-shadow:0 0 8px #0000001a;height:100vh;padding:0;position:fixed;right:-400px;top:0;transition:right .4s cubic-bezier(.05,.74,.2,.99);width:400px;z-index:1051}.customizer.open{right:0}.customizer .customizer-content{height:100%;position:relative}.customizer a.customizer-toggle{background:rgb(255,255,255);box-shadow:-3px 0 8px #0000001a;color:#1769e1;display:block}.customizer a.customizer-close{color:#000}.customizer .customizer-close{padding:7px;position:absolute;right:10px;top:10px;width:auto;z-index:10}.customizer .customizer-toggle{cursor:pointer;height:40px;left:-54px;line-height:50px;position:absolute;text-align:center;top:35%;width:54px}.customizer .color-options a{white-space:pre}.customizer .cz-bg-color{margin:0 auto}.customizer .cz-bg-color span:hover{cursor:pointer}.customizer .cz-bg-color span.white{color:#ddd!important}.customizer .cz-bg-color .selected{border:3px solid rgb(49,79,229)}.customizer .cz-bg-image:hover{cursor:pointer}.customizer .cz-bg-image img.rounded{border:2px solid rgb(230,230,230);border-radius:1rem!important}.customizer .cz-bg-image img.rounded.selected{border:2px solid rgb(255,88,107)}.rounded-circle{height:20px;width:20px}\n"], dependencies: [{ kind: "directive", type: i3.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i3.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i8.LazyImgDirective, selector: "img" }] });
45
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CustomizerComponent, decorators: [{
46
- type: Component,
47
- args: [{ selector: 'pw-customizer', template: "<!--Theme customizer Starts-->\n<div class=\"customizer border-left-blue-grey border-left-lighten-4 d-none d-sm-none d-md-block open\">\n <a class=\"customizer-close\">\n <i class=\"ft-x font-medium-3\" aria-hidden=\"true\"></i>\n </a>\n <a class=\"customizer-toggle bg-danger\"\n id=\"customizer-toggle-icon\">\n <i class=\"ft-settings font-medium-4 fa fa-spin white align-middle\" aria-hidden=\"true\"></i>\n </a>\n <div class=\"customizer-content p-3 ps-container ps-theme-dark\"\n data-ps-id=\"df6a5ce4-a175-9172-4402-dabd98fc9c0a\">\n <h4 class=\"text-uppercase mb-0 text-bold-400\">Theme Customizer</h4>\n <p>Customize &amp; Preview in Real Time</p>\n <hr />\n <!--Sidebar Options Starts-->\n <h6 class=\"text-center text-bold-500 mb-3 text-uppercase\">Sidebar Color Options</h6>\n <div class=\"cz-bg-color\">\n <div class=\"row p-1\">\n <div class=\"col\">\n <span class=\"gradient-pomegranate d-block rounded-circle\"\n data-bg-color=\"pomegranate\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-king-yna d-block rounded-circle\"\n data-bg-color=\"king-yna\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-ibiza-sunset d-block rounded-circle\"\n data-bg-color=\"ibiza-sunset\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-flickr d-block rounded-circle\"\n data-bg-color=\"flickr\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-purple-bliss d-block rounded-circle\"\n data-bg-color=\"purple-bliss\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-man-of-steel d-block rounded-circle\"\n data-bg-color=\"man-of-steel\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-custom-branding d-block rounded-circle\"\n data-bg-color=\"custom-branding\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-purple-love d-block rounded-circle\"\n data-bg-color=\"purple-love\"></span>\n </div>\n </div>\n <div class=\"row p-1\">\n <div class=\"col\">\n <span class=\"bg-black d-block rounded-circle\"\n data-bg-color=\"black\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-grey d-block rounded-circle\"\n data-bg-color=\"white\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-primary d-block rounded-circle\"\n data-bg-color=\"primary\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-success d-block rounded-circle\"\n data-bg-color=\"success\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-warning d-block rounded-circle\"\n data-bg-color=\"warning\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-info d-block rounded-circle\"\n data-bg-color=\"info\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-default d-block rounded-circle\"\n data-bg-color=\"default\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-danger d-block rounded-circle\"\n data-bg-color=\"danger\"></span>\n </div>\n </div>\n </div>\n <!--Sidebar Options Ends-->\n <hr />\n\n <!--Sidebar BG Image Starts-->\n <h6 class=\"text-center text-bold-500 mb-3 text-uppercase\">Sidebar Bg Image</h6>\n <div class=\"cz-bg-image row\">\n <div class=\"col mb-3\">\n <img src=\"assets/img/sidebar-bg/01.jpg\"\n alt=\"\"\n class=\"rounded\"\n width=\"90\" />\n </div>\n <div class=\"col mb-3\">\n <img src=\"assets/img/sidebar-bg/02.jpg\"\n alt=\"\"\n class=\"rounded\"\n width=\"90\" />\n </div>\n <div class=\"col mb-3\">\n <img src=\"assets/img/sidebar-bg/03.jpg\"\n alt=\"\"\n class=\"rounded\"\n width=\"90\" />\n </div>\n <div class=\"col mb-3\">\n <img src=\"assets/img/sidebar-bg/04.jpg\"\n alt=\"\"\n class=\"rounded\"\n width=\"90\" />\n </div>\n <div class=\"col mb-3\">\n <img src=\"assets/img/sidebar-bg/05.jpg\"\n alt=\"\"\n class=\"rounded\"\n width=\"90\" />\n </div>\n <div class=\"col mb-3\">\n <img src=\"assets/img/sidebar-bg/06.jpg\"\n alt=\"\"\n class=\"rounded\"\n width=\"90\" />\n </div>\n </div>\n <!--Sidebar BG Image Ends-->\n <hr />\n\n <!--Sidebar BG Image Toggle Starts-->\n <div class=\"togglebutton\">\n <div class=\"switch\">\n <span>Sidebar Bg Image</span>\n <div class=\"float-end\">\n <div class=\"form-check custom-checkbox mb-2 me-sm-2 mb-sm-0\">\n <input type=\"checkbox\"\n class=\"form-check-input cz-bg-image-display\"\n checked\n id=\"sidebar-bg-img\" />\n <label class=\"form-check-label\"\n for=\"sidebar-bg-img\"></label>\n </div>\n </div>\n </div>\n </div>\n <!--Sidebar BG Image Toggle Ends-->\n <hr />\n\n <!--Compact Menu Starts-->\n <div class=\"togglebutton\">\n <div class=\"switch\">\n <span>Compact Menu</span>\n <div class=\"float-end\">\n <div class=\"form-check custom-checkbox mb-2 me-sm-2 mb-sm-0\">\n <input type=\"checkbox\"\n class=\"form-check-input cz-compact-menu\"\n id=\"cz-compact-menu\" />\n <label class=\"form-check-label\"\n for=\"cz-compact-menu\"></label>\n </div>\n </div>\n </div>\n </div>\n <!--Compact Menu Ends-->\n <hr />\n\n <!--Sidebar Width Starts-->\n <div>\n <label for=\"cz-sidebar-width\">Sidebar Width</label>\n <select id=\"cz-sidebar-width\"\n class=\"form-select cz-sidebar-width float-end\">\n <option value=\"small\">Small</option>\n <option value=\"medium\"\n selected>Medium</option>\n <option value=\"large\">Large</option>\n </select>\n </div>\n <!--Sidebar Width Ends-->\n </div>\n</div>\n<!--Theme customizer Ends-->\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)}.customizer{backface-visibility:hidden;background-color:#fff;border-left:1px solid rgba(0,0,0,.05);bottom:0;box-shadow:0 0 8px #0000001a;height:100vh;padding:0;position:fixed;right:-400px;top:0;transition:right .4s cubic-bezier(.05,.74,.2,.99);width:400px;z-index:1051}.customizer.open{right:0}.customizer .customizer-content{height:100%;position:relative}.customizer a.customizer-toggle{background:rgb(255,255,255);box-shadow:-3px 0 8px #0000001a;color:#1769e1;display:block}.customizer a.customizer-close{color:#000}.customizer .customizer-close{padding:7px;position:absolute;right:10px;top:10px;width:auto;z-index:10}.customizer .customizer-toggle{cursor:pointer;height:40px;left:-54px;line-height:50px;position:absolute;text-align:center;top:35%;width:54px}.customizer .color-options a{white-space:pre}.customizer .cz-bg-color{margin:0 auto}.customizer .cz-bg-color span:hover{cursor:pointer}.customizer .cz-bg-color span.white{color:#ddd!important}.customizer .cz-bg-color .selected{border:3px solid rgb(49,79,229)}.customizer .cz-bg-image:hover{cursor:pointer}.customizer .cz-bg-image img.rounded{border:2px solid rgb(230,230,230);border-radius:1rem!important}.customizer .cz-bg-image img.rounded.selected{border:2px solid rgb(255,88,107)}.rounded-circle{height:20px;width:20px}\n"] }]
48
- }] });
49
-
50
- class FaqComponent extends AppBaseComponent {
51
- constructor(commonService, injector, productService) {
52
- super(injector);
53
- this.commonService = commonService;
54
- this.productService = productService;
55
- this.subscriptions = [];
56
- this.objectKeys = Object.keys;
57
- this.isLoaded = false;
58
- this.faqHashMap = {};
59
- }
60
- ngOnInit() {
61
- var _a, _b;
62
- this.faqHashMap = {};
63
- this.showSupport = (_a = PermissionService.selectedProduct) === null || _a === void 0 ? void 0 : _a.gitlab_service_desk_email;
64
- this.subscriptionId = (_b = PermissionService === null || PermissionService === void 0 ? void 0 : PermissionService.selectedSubscription) === null || _b === void 0 ? void 0 : _b.id;
65
- const masterProductId = this.appConfig.master_subscription.product_id;
66
- this.getProducts();
67
- this.commonService
68
- .getPublicFaq(this.subscriptionId)
69
- .subscribe((response) => {
70
- var _a;
71
- this.faqsResponse = response.faqs;
72
- (_a = response === null || response === void 0 ? void 0 : response.available_category) === null || _a === void 0 ? void 0 : _a.forEach(x => {
73
- this.faqHashMap[x.key] = x;
74
- });
75
- this.totalRecords = response.faqs.length;
76
- this.nonProductFaqs = this.faqsResponse.filter(x => x.visible && !x.product_id);
77
- this.allProductFaqs = this.faqsResponse.filter(x => x.visible && x.product_id);
78
- const noProductObjects = this.faqsResponse.every(x => x.product === null);
79
- this.allFaqFalse = this.faqsResponse.every(x => x.visible === false);
80
- if (!noProductObjects) {
81
- this.productService
82
- .getProducts({ master_product_id: masterProductId })
83
- .subscribe(resp => {
84
- this.products = resp.products;
85
- this.faqValidation();
86
- });
87
- }
88
- else {
89
- this.products = '';
90
- this.faqValidation();
91
- }
92
- })
93
- .add(() => {
94
- this.isLoaded = true;
95
- });
96
- }
97
- faqValidation() {
98
- this.productFaq = groupBy(this.allProductFaqs, 'category');
99
- this.faqs = groupBy(this.nonProductFaqs, 'category');
100
- Object.keys(this.productFaq).forEach(x => {
101
- this.productFaq[x] = sortBy(this.productFaq[x], 'position');
102
- });
103
- Object.keys(this.faqs).forEach(x => {
104
- this.faqs[x] = sortBy(this.faqs[x], 'position');
105
- });
106
- }
107
- getProducts() {
108
- this.subscriptions = [];
109
- this.userStore().subscribe((user) => {
110
- if (user) {
111
- this.subscriptions = user.subscriptions;
112
- }
113
- });
114
- }
115
- filter(searchValue) {
116
- if (searchValue === '') {
117
- this.faqs = groupBy(this.nonProductFaqs, 'category');
118
- this.productFaq = groupBy(this.allProductFaqs, 'category');
119
- }
120
- else {
121
- const filtered = this.nonProductFaqs.filter((faqs) => faqs.question.toUpperCase().includes(searchValue.toUpperCase()) ||
122
- faqs.answer.toUpperCase().includes(searchValue.toUpperCase()));
123
- const productBasedFilter = this.allProductFaqs.filter((faqs) => faqs.question.toUpperCase().includes(searchValue.toUpperCase()) ||
124
- faqs.answer.toUpperCase().includes(searchValue.toUpperCase()));
125
- this.productFaq = groupBy(productBasedFilter, 'category');
126
- this.faqs = groupBy(filtered, 'category');
127
- }
128
- }
129
- navigateToSupport() {
130
- this.router.navigate(['/support']);
131
- }
132
- trackByProductFaqId(_index, item) {
133
- return item.id;
134
- }
135
- trackByNonProductFaqId(_index, item) {
136
- return item.id;
137
- }
138
- ngOnDestroy() {
139
- super.ngOnDestroy();
140
- }
141
- }
142
- FaqComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: FaqComponent, deps: [{ token: i1.CommonService }, { token: i0.Injector }, { token: i1.ProductService }], target: i0.ɵɵFactoryTarget.Component });
143
- FaqComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: FaqComponent, selector: "pw-faq", usesInheritance: true, ngImport: i0, 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}.ql-container{resize:none!important}\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: "component", type: i3$1.ProgressSpinner, selector: "p-progressSpinner", inputs: ["style", "styleClass", "strokeWidth", "fill", "animationDuration"] }, { kind: "component", type: i4.NoDataComponent, selector: "pw-no-data", inputs: ["message"] }, { kind: "pipe", type: i4$1.DOMSanitizerPipe, name: "safe" }] });
144
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: FaqComponent, decorators: [{
145
- type: Component,
146
- 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}.ql-container{resize:none!important}\n"] }]
147
- }], ctorParameters: function () { return [{ type: i1.CommonService }, { type: i0.Injector }, { type: i1.ProductService }]; } });
148
-
149
- class FooterComponent extends AppBaseComponent {
150
- constructor() {
151
- super(...arguments);
152
- this.currentDate = new Date();
153
- }
154
- ngOnInit() {
155
- var _a, _b, _c;
156
- this.productPrivacyId = (_a = this.appConfig) === null || _a === void 0 ? void 0 : _a.main_tos_id;
157
- this.companyName = (_c = (_b = this.appConfig) === null || _b === void 0 ? void 0 : _b.company) === null || _c === void 0 ? void 0 : _c.name;
158
- }
159
- }
160
- FooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: FooterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
161
- 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" }] });
162
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: FooterComponent, decorators: [{
163
- type: Component,
164
- 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" }]
165
- }] });
166
-
167
- class UserFeedbackComponent extends AppBaseComponent {
168
- constructor(injector, commonService) {
169
- super(injector);
170
- this.commonService = commonService;
171
- this.rating = 3;
172
- this.selectedValue = null;
173
- this.questions = [];
174
- this.counter = Array;
175
- this.showSection = true;
176
- }
177
- ngOnInit() {
178
- var _a;
179
- this.subscriptionId = (_a = PermissionService.selectedSubscription) === null || _a === void 0 ? void 0 : _a.id;
180
- this.getFeedbackQuestions();
181
- this.userService.getUserInfo().subscribe({
182
- next: user => {
183
- this.user = user;
184
- }
185
- });
186
- this.checkFeedBackExpiry();
187
- }
188
- checkFeedBackExpiry() {
189
- const item = localStorage.getItem('showFeedBack');
190
- if (item) {
191
- const currentDate = new Date().getTime();
192
- const expiryDate = new Date(JSON.parse(item)).getTime();
193
- this.showSection = currentDate > expiryDate;
194
- }
195
- }
196
- closeSection() {
197
- this.showSection = false;
198
- const addedTime = moment(new Date()).add(7, 'days').toDate();
199
- localStorage.setItem('showFeedBack', JSON.stringify(addedTime));
200
- }
201
- getFeedbackQuestions() {
202
- if (this.subscriptionId) {
203
- this.commonService.feedbackQuestions(this.subscriptionId).subscribe(res => {
204
- this.questions = res;
205
- });
206
- }
207
- }
208
- onSubmit(questionId, formValue) {
209
- if (formValue === null || formValue === void 0 ? void 0 : formValue.feedback) {
210
- const data = {
211
- subscription_id: this.subscriptionId,
212
- feedback_question_id: questionId,
213
- value: Number(formValue === null || formValue === void 0 ? void 0 : formValue.feedback),
214
- comment: formValue === null || formValue === void 0 ? void 0 : formValue.description
215
- };
216
- this.commonService.userFeedbacks(data).subscribe(() => {
217
- this.getFeedbackQuestions();
218
- });
219
- }
220
- }
221
- trackByQuestion(_index, item) {
222
- return item.id;
223
- }
224
- }
225
- UserFeedbackComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: UserFeedbackComponent, deps: [{ token: i0.Injector }, { token: i1.CommonService }], target: i0.ɵɵFactoryTarget.Component });
226
- UserFeedbackComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: UserFeedbackComponent, selector: "pw-user-feedback", usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"showSection\">\n <div class=\"mt-4\"\n *ngIf=\"questions?.length\">\n <div class=\"card pb-1\">\n <h3 class=\"text-end me-3 pt-2 cursor-pointer\"\n (click)=\"closeSection()\">&times;</h3>\n <div class=\"card-content p-0\"\n *ngFor=\"let question of questions; let first = first; trackBy: trackByQuestion\">\n <div class=\"card-header\">\n <form #feedbackForm=\"ngForm\">\n <div class=\"col-lg-8 p-0 mx-auto\">\n <h3 class=\"mb-1\"\n *ngIf=\"first\">Your input is valuable to us</h3>\n <p class=\"mb-4\"\n *ngIf=\"first\">\n Please take a moment to answer these questions\n </p>\n <h6 class=\"fw-bold pb-3 mx-auto\">{{ question?.question }}</h6>\n <div class=\"text-center row p-2 mx-md-2 feedback-value\">\n <span class=\"col-auto me-0\">Not at all</span>\n <div *ngFor=\"let val of counter(10); let i = index\" class=\"p-field-checkbox col-auto ms-0 me-0\">\n <p-radioButton name=\"feedback\" [(ngModel)]=\"selectedValue\" [value]=\"i\" [inputId]=\"i\"></p-radioButton>\n <br />\n <label [for]=\"i\">{{ i }}</label>\n </div>\n <span class=\"col-auto ms-0\">Extremely</span>\n </div>\n\n <div class=\"text mt-3\">\n <h6>Can you tell us the reason for your score? Do you have any particular features you want us to build or fix?</h6>\n <textarea rows=\"4\"\n name=\"description\"\n placeholder=\"\u201CWhat is the primary reason for your score?\u201D\"\n ngModel\n type=\"text\"\n pInputTextarea\n class=\"form-control\">\n </textarea>\n </div>\n <div class=\"mt-3\">\n <button class=\"btn btn-primary d-block mx-auto\"\n (click)=\"onSubmit(question?.id, feedbackForm.value)\">\n Submit\n </button>\n </div>\n </div>\n </form>\n </div>\n </div>\n </div>\n </div>\n\n</ng-container>\n", styles: [".feedback-value{justify-content:center}.feedback-value label{color:#000000de;cursor:pointer;font-size:1rem;font-weight:400;letter-spacing:normal;margin-left:10px;margin-right:10px;text-transform:none}.feedback-value .p-field-checkbox{margin:0 10px}\n"], 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: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i4$2.RadioButton, selector: "p-radioButton", inputs: ["value", "formControlName", "name", "disabled", "label", "tabindex", "inputId", "ariaLabelledBy", "ariaLabel", "style", "styleClass", "labelStyleClass"], outputs: ["onClick", "onFocus", "onBlur"] }] });
227
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: UserFeedbackComponent, decorators: [{
228
- type: Component,
229
- args: [{ selector: 'pw-user-feedback', template: "<ng-container *ngIf=\"showSection\">\n <div class=\"mt-4\"\n *ngIf=\"questions?.length\">\n <div class=\"card pb-1\">\n <h3 class=\"text-end me-3 pt-2 cursor-pointer\"\n (click)=\"closeSection()\">&times;</h3>\n <div class=\"card-content p-0\"\n *ngFor=\"let question of questions; let first = first; trackBy: trackByQuestion\">\n <div class=\"card-header\">\n <form #feedbackForm=\"ngForm\">\n <div class=\"col-lg-8 p-0 mx-auto\">\n <h3 class=\"mb-1\"\n *ngIf=\"first\">Your input is valuable to us</h3>\n <p class=\"mb-4\"\n *ngIf=\"first\">\n Please take a moment to answer these questions\n </p>\n <h6 class=\"fw-bold pb-3 mx-auto\">{{ question?.question }}</h6>\n <div class=\"text-center row p-2 mx-md-2 feedback-value\">\n <span class=\"col-auto me-0\">Not at all</span>\n <div *ngFor=\"let val of counter(10); let i = index\" class=\"p-field-checkbox col-auto ms-0 me-0\">\n <p-radioButton name=\"feedback\" [(ngModel)]=\"selectedValue\" [value]=\"i\" [inputId]=\"i\"></p-radioButton>\n <br />\n <label [for]=\"i\">{{ i }}</label>\n </div>\n <span class=\"col-auto ms-0\">Extremely</span>\n </div>\n\n <div class=\"text mt-3\">\n <h6>Can you tell us the reason for your score? Do you have any particular features you want us to build or fix?</h6>\n <textarea rows=\"4\"\n name=\"description\"\n placeholder=\"\u201CWhat is the primary reason for your score?\u201D\"\n ngModel\n type=\"text\"\n pInputTextarea\n class=\"form-control\">\n </textarea>\n </div>\n <div class=\"mt-3\">\n <button class=\"btn btn-primary d-block mx-auto\"\n (click)=\"onSubmit(question?.id, feedbackForm.value)\">\n Submit\n </button>\n </div>\n </div>\n </form>\n </div>\n </div>\n </div>\n </div>\n\n</ng-container>\n", styles: [".feedback-value{justify-content:center}.feedback-value label{color:#000000de;cursor:pointer;font-size:1rem;font-weight:400;letter-spacing:normal;margin-left:10px;margin-right:10px;text-transform:none}.feedback-value .p-field-checkbox{margin:0 10px}\n"] }]
230
- }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1.CommonService }]; } });
231
-
232
- class HomeComponent extends AppBaseComponent {
233
- constructor(injector, scriptLoader) {
234
- super(injector);
235
- this.scriptLoader = scriptLoader;
236
- this.tour = {
237
- id: 'dashboard',
238
- steps: []
239
- };
240
- this.componentActive = true;
241
- }
242
- ngOnInit() {
243
- var _a;
244
- this.selectedSubscriptionSlug = (_a = PermissionService.selectedSubscription) === null || _a === void 0 ? void 0 : _a.slug;
245
- this.userStore().subscribe(state => {
246
- if (state) {
247
- this.userService.getCurrentUserObject('active_tips').subscribe(response => {
248
- if (response === null || response === void 0 ? void 0 : response.length) {
249
- const welcomeTips = response.find(x => x.name === 'welcome');
250
- if (welcomeTips) {
251
- this.tour.steps = JSON.parse(welcomeTips.instructions).steps;
252
- this.scriptLoader
253
- .loadScript('head', '/assets/js/hopscotch.min.js', true)
254
- .then(() => {
255
- window.hopscotch.startTour(this.tour);
256
- // eslint-disable-next-line func-names
257
- window.hopscotch.nextStep = function () {
258
- const stepNumber = $('.hopscotch-bubble-number').text();
259
- if (this.tour.steps.length === Number(stepNumber)) {
260
- this.userService
261
- .postTipsDisregarded({
262
- tip_id: welcomeTips.id,
263
- disregarded: true
264
- })
265
- .subscribe(() => {
266
- var _a;
267
- (_a = window === null || window === void 0 ? void 0 : window.hopscotch) === null || _a === void 0 ? void 0 : _a.endTour();
268
- });
269
- }
270
- else {
271
- window.hopscotch.showStep(Number(stepNumber));
272
- }
273
- }.bind(this);
274
- });
275
- }
276
- }
277
- });
278
- }
279
- });
280
- this.userStore().subscribe({
281
- next: user => {
282
- this.user = user;
283
- if (this.user) {
284
- this.userSlug = user.slug;
285
- }
286
- },
287
- error: error => this.toast.showToast(error)
288
- });
289
- }
290
- ngOnDestroy() {
291
- var _a;
292
- if (window === null || window === void 0 ? void 0 : window.hopscotch) {
293
- (_a = window === null || window === void 0 ? void 0 : window.hopscotch) === null || _a === void 0 ? void 0 : _a.endTour();
294
- }
295
- super.ngOnDestroy();
296
- }
297
- }
298
- 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 });
299
- 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: i8.LazyImgDirective, selector: "img" }, { kind: "component", type: UserFeedbackComponent, selector: "pw-user-feedback" }, { kind: "pipe", type: i5.TranslocoPipe, name: "transloco" }] });
300
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: HomeComponent, decorators: [{
301
- type: Component,
302
- 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" }]
303
- }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1.ScriptLoaderService }]; } });
304
-
305
- class NavbarComponent extends AppBaseComponent {
306
- constructor(injector, notificationService, config, scriptLoader, store) {
307
- super(injector);
308
- this.notificationService = notificationService;
309
- this.scriptLoader = scriptLoader;
310
- this.store = store;
311
- this.notificationCount = 0;
312
- this.noNoti = true;
313
- this.notifications = [];
314
- this.loadExternalScripts();
315
- config.autoClose = false;
316
- this.store.select(getUser).subscribe(res => {
317
- this.slug = res.currentUser ? res.currentUser.slug : '';
318
- });
319
- this.getNotifications();
320
- this.updateNotifications();
321
- }
322
- ngOnDestroy() {
323
- clearInterval(this.notiInterval);
324
- }
325
- get isSupportMenu() {
326
- var _a;
327
- return (_a = PermissionService.selectedProduct) === null || _a === void 0 ? void 0 : _a.gitlab_service_desk_email;
328
- }
329
- loadExternalScripts() {
330
- this.scriptLoader.loadScripts('head', [
331
- 'https://cdnjs.cloudflare.com/ajax/libs/jstree/3.3.11/jstree.min.js',
332
- 'https://cdnjs.cloudflare.com/ajax/libs/quill/1.3.7/quill.min.js',
333
- 'https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js'
334
- ], true);
335
- this.scriptLoader.loadStyle('https://cdnjs.cloudflare.com/ajax/libs/jstree/3.3.11/themes/default/style.min.css');
336
- }
337
- getNotifications() {
338
- this.notificationService.getNotifications().subscribe((data) => {
339
- this.notificationsCount(data);
340
- this.notificationService.notiWebSocket().subscribe(res => {
341
- if (res) {
342
- this.notificationsCount([res]);
343
- }
344
- });
345
- if (data.length > 0) {
346
- this.notificationService.showNotifications(this.notifications);
347
- }
348
- });
349
- }
350
- notificationsCount(noti) {
351
- var _a;
352
- for (let i = 0; i < noti.length; i++) {
353
- if (!((_a = noti[i]) === null || _a === void 0 ? void 0 : _a.dismissed) && noti[i].show_on_dashboard) {
354
- this.notifications.push(noti[i]);
355
- }
356
- if (noti[i].unread === true) {
357
- this.notificationCount++;
358
- }
359
- if (noti[i].dismissed === false) {
360
- this.noNoti = false;
361
- }
362
- }
363
- this.sortNotifications();
364
- }
365
- sortNotifications() {
366
- this.notifications = orderBy(this.notifications, ['id'], ['desc']);
367
- }
368
- updateNotifications() {
369
- this.notificationService.getNotifications().subscribe(data => {
370
- const val = data;
371
- if (val.length > 0) {
372
- val.forEach(element => {
373
- const existNotification = this.notifications.find(({ id }) => element.id === id);
374
- if (!existNotification) {
375
- if (!element.dismissed && element.show_on_dashboard) {
376
- this.notifications.push(element);
377
- }
378
- if (element.unread === true) {
379
- this.notificationCount++;
380
- }
381
- if (element.dismissed === false) {
382
- this.noNoti = false;
383
- }
384
- }
385
- });
386
- }
387
- this.sortNotifications();
388
- });
389
- }
390
- checkNoti() {
391
- if (this.notiDrop.isOpen()) {
392
- // Mark all Notifications as read
393
- this.notificationService.readNotifications().subscribe(() => {
394
- this.notificationCount = 0;
395
- });
396
- }
397
- }
398
- dismiss(id, _e) {
399
- this.notificationService.dismissNotification(id).subscribe(data => {
400
- // Remove notification from notification array
401
- // TODO: Add animation while removing
402
- const index = this.notifications.findIndex(x => x.id === id);
403
- this.notifications.splice(index, 1);
404
- if (data) {
405
- const val = JSON.parse(data);
406
- if (val.length > 0) {
407
- val.forEach(element => {
408
- const existNotification = this.notifications.find(({ key }) => element.id === key);
409
- if (!existNotification) {
410
- this.notifications.push(element);
411
- if (element.unread === true) {
412
- this.notificationCount++;
413
- }
414
- }
415
- });
416
- }
417
- }
418
- if (this.notifications.length === 0) {
419
- this.noNoti = true;
420
- }
421
- this.sortNotifications();
422
- });
423
- }
424
- onLangChange(lang) {
425
- this.translation.setActiveLang(lang);
426
- }
427
- logout() {
428
- this.router.navigate(['logout']);
429
- }
430
- redirectToNotification() {
431
- this.notiDrop.close();
432
- this.router.navigate(['/notifications']);
433
- }
434
- onSearch(search) {
435
- if (search.value) {
436
- this.router.navigate(['search'], { queryParams: { keyword: search.value } });
437
- }
438
- }
439
- }
440
- NavbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: NavbarComponent, deps: [{ token: i0.Injector }, { token: i1.NotificationService }, { token: i1$2.NgbDropdownConfig }, { token: i1.ScriptLoaderService }, { token: i3$2.Store }], target: i0.ɵɵFactoryTarget.Component });
441
- NavbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: NavbarComponent, selector: "pw-navbar", inputs: { logo: "logo" }, providers: [NgbDropdownConfig], viewQueries: [{ propertyName: "notiDrop", first: true, predicate: ["notiDrop"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<!-- Navbar (Header) Starts -->\n<nav class=\"navbar navbar-expand-lg navbar-light fixed-top bg-faded shadow-sm\">\n <div class=\"container-fluid\">\n <div class=\"navbar-header\">\n <button type=\"button\"\n class=\"navbar-toggle d-lg-none float-start\"\n data-bs-toggle=\"collapse\">\n <span class=\"sr-only\">Toggle navigation</span> <span class=\"icon-bar\"></span>\n <span class=\"icon-bar\"></span>\n <span class=\"icon-bar\"></span>\n </button>\n <form class=\"navbar-form navbar-right mt-1\"\n role=\"search\"\n (ngSubmit)=\"onSearch(search)\">\n <div class=\"input-group navbar-search-input\">\n <input type=\"text\"\n #search\n class=\"form-control\"\n placeholder=\"Search\" />\n <button class=\"input-group-text btn\"\n type=\"submit\">\n <i class=\"ft-search\" aria-hidden=\"true\"></i>\n </button>\n </div>\n <div id=\"tips-onboarding-step6\"></div>\n </form>\n </div>\n <div class=\"logo-img\">\n <ng-template [ngIf]=\"logo\">\n <img [src]=\"logo.full\"\n onerror=\"this.onerror=null;this.src='assets/img/logos/logo_text_big_dark.png';\"\n alt=\"img\" />\n </ng-template>\n </div>\n <div *rbacAllow=\"'SuperAdmin'\">\n <div class=\"mb-0\">\n <select class=\"form-select form-control-sm\"\n data-flag=\"true\"\n (change)=\"onLangChange($event.target.value)\">\n <option value=\"en\">English</option>\n <option value=\"es\">Spanish</option>\n <option value=\"de\">German</option>\n <option value=\"pt\">Portuguese</option>\n </select>\n </div>\n </div>\n <div class=\"navbar-container\">\n <div id=\"navbarSupportedContent\">\n <ul class=\"navbar-nav\">\n <li class=\"nav-item\"\n ngbDropdown\n #notiDrop=\"ngbDropdown\"\n placement=\"bottom-left\"\n autoClose=\"true\">\n <a class=\"nav-link position-relative\"\n id=\"dropdownBasic2\"\n ngbDropdownToggle\n (click)=\"checkNoti()\">\n <i\n class=\"ft-bell font-medium-3 blue-grey darken-4\"\n aria-hidden=\"true\"\n ></i>\n <span class=\"notification badge rounded-pill bg-danger\"\n *ngIf=\"notificationCount > 0\">\n {{ notificationCount }}\n </span>\n <p class=\"d-none\">Notifications</p>\n </a>\n <div id=\"tips-onboarding-step5\"></div>\n <div ngbDropdownMenu\n aria-labelledby=\"dropdownBasic2\"\n class=\"notification-dropdown\">\n <div class=\"noti-list\"\n *ngIf=\"noNoti === false\">\n <li *ngFor=\"let noti of notifications; let idx = index\"\n #notiRef\n [id]=\"'noti' + idx\"\n [pTooltip]=\"noti?.content\"\n tooltipPosition=\"top\"\n class=\"dropdown-item noti-container border-bottom border-bottom-blue-grey border-bottom-lighten-4 d-flex align-items-center\">\n <div class=\"d-flex justify-content-between w-100\">\n <div>\n <div class=\"btn btn-circle me-3\"\n [ngClass]=\"{\n 'btn-danger':\n noti.note_type === 'administrative',\n 'btn-secondary':\n noti.note_type === 'object_event',\n 'btn-primary':\n noti.note_type === 'user_generated'\n }\">\n <i\n class=\"fal float-start\"\n [ngClass]=\"{\n 'fa-bell':\n noti.note_type === 'administrative',\n 'fa-share-alt':\n noti.note_type === 'object_event',\n 'fa-bells':\n noti.note_type === 'user_generated'\n }\"\n aria-hidden=\"true\"\n ></i>\n </div>\n <div class=\"d-inline-block text-truncate noti-content\">\n {{ noti?.content }}\n <span class=\"noti-text d-block\">\n <span class=\"fal fa-clock\"></span>\n {{ noti?.created_at | sinceAgo }}\n </span>\n </div>\n </div>\n <div>\n <a (click)=\"dismiss(noti.id, $event)\">\n <i class=\"far fa-times\" aria-hidden=\"true\"></i></a>\n </div>\n </div>\n </li>\n </div>\n <div class=\"noti-list\"\n *ngIf=\"noNoti === true\">\n <a class=\"dropdown-item noti-container border-bottom border-bottom-blue-grey border-bottom-lighten-4\">\n <i\n class=\"ft-bell success float-start d-block font-large-1 mt-1 me-2\"\n aria-hidden=\"true\"\n ></i>\n <span class=\"noti-wrapper\">\n <span class=\"noti-title line-height-1 d-block success\">You are all caught up.</span>\n <span class=\"noti-text\">You currently do not have any notifications.</span>\n </span>\n </a>\n </div>\n <a (click)=\"redirectToNotification()\"\n class=\"noti-footer text-center d-block border-top border-top-blue-grey border-top-lighten-4 text-bold-400 p-3\">Read All Notifications</a>\n </div>\n </li>\n <li class=\"nav-item\"\n ngbDropdown\n placement=\"bottom-left\"\n autoClose=\"true\">\n <button class=\"nav-link position-relative dropdown-toggle\"\n type=\"button\"\n id=\"dropdownBasic3\"\n data-bs-toggle=\"dropdown\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n style=\"border: none\">\n <i\n class=\"ft-user font-medium-3 blue-grey darken-4\"\n aria-hidden=\"true\"\n ></i>\n <p class=\"d-none\">User Settings</p>\n </button>\n <div ngbDropdownMenu\n aria-labelledby=\"dropdownBasic3\">\n <button class=\"dropdown-item py-2\"\n [routerLink]=\"['/members', slug]\">\n <i class=\"ft-edit me-2\" aria-hidden=\"true\"></i>\n <span>My Profile</span>\n </button>\n <button class=\"dropdown-item py-2\"\n routerLink=\"/account/details\">\n <i class=\"ft-user me-2\" aria-hidden=\"true\"></i> <span>Account</span>\n </button>\n <button class=\"dropdown-item py-2\"\n routerLink=\"/settings/communication\">\n <i class=\"ft-settings me-2\" aria-hidden=\"true\"></i>\n <span>Settings</span>\n </button>\n <button *ngIf=\"isSupportMenu\"\n class=\"dropdown-item py-2\"\n routerLink=\"/support\">\n <i class=\"fa fa-question me-2\" aria-hidden=\"true\"></i>\n <span>&nbsp;Support</span>\n </button>\n <div class=\"dropdown-divider\"></div>\n <button class=\"dropdown-item logout\"\n (click)=\"logout()\">\n <i class=\"fa fa-sign-out-alt me-2\" aria-hidden=\"true\"></i>\n <span>Logout</span>\n </button>\n </div>\n </li>\n </ul>\n </div>\n </div>\n </div>\n</nav>\n<!-- Navbar (Header) Ends -->\n", styles: [".navbar,.fixed-top{position:fixed!important;background-color:#fff;padding:0 30px 5px;height:45px}.mb-0{margin-bottom:-4px!important}.navbar-nav>li{margin-right:20px}.logo-img img{margin-right:15px;max-height:30px}.logo-text{color:#000;display:block;font-size:1.4rem;font-weight:400;letter-spacing:2px;padding:5px 0;text-align:left;text-transform:uppercase}.dropdown-menu{left:auto;right:0;z-index:25000!important}.noti-container{cursor:pointer}.noti-content{vertical-align:top!important;width:280px}.noti-container,.icon-dismiss{padding:15px;position:relative;z-index:9}.noti-list{max-height:400px;overflow:auto}.nav-link{background-color:#fff}@media screen and (max-width: 991px){.navbar{padding:0 30px 5px}}@media screen and (max-width: 575px){.navbar{padding:0 15px 5px 10px}}@media screen and (max-width: 575px){.noti-content{width:250px}}@media only screen and (max-width: 480px){.logo-img{max-width:100px}.logo-img img{width:100%}}\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: i6.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i3.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { 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: i8.LazyImgDirective, selector: "img" }, { kind: "directive", type: i8.RbacAllowDirective, selector: "[rbacAllow]", inputs: ["rbacAllow"] }, { kind: "directive", type: i1$2.NgbDropdown, selector: "[ngbDropdown]", inputs: ["autoClose", "dropdownClass", "open", "placement", "popperOptions", "container", "display"], outputs: ["openChange"], exportAs: ["ngbDropdown"] }, { kind: "directive", type: i1$2.NgbDropdownToggle, selector: "[ngbDropdownToggle]" }, { kind: "directive", type: i1$2.NgbDropdownMenu, selector: "[ngbDropdownMenu]" }, { kind: "pipe", type: i4$1.SinceAgoPipe, name: "sinceAgo" }] });
442
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: NavbarComponent, decorators: [{
443
- type: Component,
444
- args: [{ selector: 'pw-navbar', providers: [NgbDropdownConfig], template: "<!-- Navbar (Header) Starts -->\n<nav class=\"navbar navbar-expand-lg navbar-light fixed-top bg-faded shadow-sm\">\n <div class=\"container-fluid\">\n <div class=\"navbar-header\">\n <button type=\"button\"\n class=\"navbar-toggle d-lg-none float-start\"\n data-bs-toggle=\"collapse\">\n <span class=\"sr-only\">Toggle navigation</span> <span class=\"icon-bar\"></span>\n <span class=\"icon-bar\"></span>\n <span class=\"icon-bar\"></span>\n </button>\n <form class=\"navbar-form navbar-right mt-1\"\n role=\"search\"\n (ngSubmit)=\"onSearch(search)\">\n <div class=\"input-group navbar-search-input\">\n <input type=\"text\"\n #search\n class=\"form-control\"\n placeholder=\"Search\" />\n <button class=\"input-group-text btn\"\n type=\"submit\">\n <i class=\"ft-search\" aria-hidden=\"true\"></i>\n </button>\n </div>\n <div id=\"tips-onboarding-step6\"></div>\n </form>\n </div>\n <div class=\"logo-img\">\n <ng-template [ngIf]=\"logo\">\n <img [src]=\"logo.full\"\n onerror=\"this.onerror=null;this.src='assets/img/logos/logo_text_big_dark.png';\"\n alt=\"img\" />\n </ng-template>\n </div>\n <div *rbacAllow=\"'SuperAdmin'\">\n <div class=\"mb-0\">\n <select class=\"form-select form-control-sm\"\n data-flag=\"true\"\n (change)=\"onLangChange($event.target.value)\">\n <option value=\"en\">English</option>\n <option value=\"es\">Spanish</option>\n <option value=\"de\">German</option>\n <option value=\"pt\">Portuguese</option>\n </select>\n </div>\n </div>\n <div class=\"navbar-container\">\n <div id=\"navbarSupportedContent\">\n <ul class=\"navbar-nav\">\n <li class=\"nav-item\"\n ngbDropdown\n #notiDrop=\"ngbDropdown\"\n placement=\"bottom-left\"\n autoClose=\"true\">\n <a class=\"nav-link position-relative\"\n id=\"dropdownBasic2\"\n ngbDropdownToggle\n (click)=\"checkNoti()\">\n <i\n class=\"ft-bell font-medium-3 blue-grey darken-4\"\n aria-hidden=\"true\"\n ></i>\n <span class=\"notification badge rounded-pill bg-danger\"\n *ngIf=\"notificationCount > 0\">\n {{ notificationCount }}\n </span>\n <p class=\"d-none\">Notifications</p>\n </a>\n <div id=\"tips-onboarding-step5\"></div>\n <div ngbDropdownMenu\n aria-labelledby=\"dropdownBasic2\"\n class=\"notification-dropdown\">\n <div class=\"noti-list\"\n *ngIf=\"noNoti === false\">\n <li *ngFor=\"let noti of notifications; let idx = index\"\n #notiRef\n [id]=\"'noti' + idx\"\n [pTooltip]=\"noti?.content\"\n tooltipPosition=\"top\"\n class=\"dropdown-item noti-container border-bottom border-bottom-blue-grey border-bottom-lighten-4 d-flex align-items-center\">\n <div class=\"d-flex justify-content-between w-100\">\n <div>\n <div class=\"btn btn-circle me-3\"\n [ngClass]=\"{\n 'btn-danger':\n noti.note_type === 'administrative',\n 'btn-secondary':\n noti.note_type === 'object_event',\n 'btn-primary':\n noti.note_type === 'user_generated'\n }\">\n <i\n class=\"fal float-start\"\n [ngClass]=\"{\n 'fa-bell':\n noti.note_type === 'administrative',\n 'fa-share-alt':\n noti.note_type === 'object_event',\n 'fa-bells':\n noti.note_type === 'user_generated'\n }\"\n aria-hidden=\"true\"\n ></i>\n </div>\n <div class=\"d-inline-block text-truncate noti-content\">\n {{ noti?.content }}\n <span class=\"noti-text d-block\">\n <span class=\"fal fa-clock\"></span>\n {{ noti?.created_at | sinceAgo }}\n </span>\n </div>\n </div>\n <div>\n <a (click)=\"dismiss(noti.id, $event)\">\n <i class=\"far fa-times\" aria-hidden=\"true\"></i></a>\n </div>\n </div>\n </li>\n </div>\n <div class=\"noti-list\"\n *ngIf=\"noNoti === true\">\n <a class=\"dropdown-item noti-container border-bottom border-bottom-blue-grey border-bottom-lighten-4\">\n <i\n class=\"ft-bell success float-start d-block font-large-1 mt-1 me-2\"\n aria-hidden=\"true\"\n ></i>\n <span class=\"noti-wrapper\">\n <span class=\"noti-title line-height-1 d-block success\">You are all caught up.</span>\n <span class=\"noti-text\">You currently do not have any notifications.</span>\n </span>\n </a>\n </div>\n <a (click)=\"redirectToNotification()\"\n class=\"noti-footer text-center d-block border-top border-top-blue-grey border-top-lighten-4 text-bold-400 p-3\">Read All Notifications</a>\n </div>\n </li>\n <li class=\"nav-item\"\n ngbDropdown\n placement=\"bottom-left\"\n autoClose=\"true\">\n <button class=\"nav-link position-relative dropdown-toggle\"\n type=\"button\"\n id=\"dropdownBasic3\"\n data-bs-toggle=\"dropdown\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n style=\"border: none\">\n <i\n class=\"ft-user font-medium-3 blue-grey darken-4\"\n aria-hidden=\"true\"\n ></i>\n <p class=\"d-none\">User Settings</p>\n </button>\n <div ngbDropdownMenu\n aria-labelledby=\"dropdownBasic3\">\n <button class=\"dropdown-item py-2\"\n [routerLink]=\"['/members', slug]\">\n <i class=\"ft-edit me-2\" aria-hidden=\"true\"></i>\n <span>My Profile</span>\n </button>\n <button class=\"dropdown-item py-2\"\n routerLink=\"/account/details\">\n <i class=\"ft-user me-2\" aria-hidden=\"true\"></i> <span>Account</span>\n </button>\n <button class=\"dropdown-item py-2\"\n routerLink=\"/settings/communication\">\n <i class=\"ft-settings me-2\" aria-hidden=\"true\"></i>\n <span>Settings</span>\n </button>\n <button *ngIf=\"isSupportMenu\"\n class=\"dropdown-item py-2\"\n routerLink=\"/support\">\n <i class=\"fa fa-question me-2\" aria-hidden=\"true\"></i>\n <span>&nbsp;Support</span>\n </button>\n <div class=\"dropdown-divider\"></div>\n <button class=\"dropdown-item logout\"\n (click)=\"logout()\">\n <i class=\"fa fa-sign-out-alt me-2\" aria-hidden=\"true\"></i>\n <span>Logout</span>\n </button>\n </div>\n </li>\n </ul>\n </div>\n </div>\n </div>\n</nav>\n<!-- Navbar (Header) Ends -->\n", styles: [".navbar,.fixed-top{position:fixed!important;background-color:#fff;padding:0 30px 5px;height:45px}.mb-0{margin-bottom:-4px!important}.navbar-nav>li{margin-right:20px}.logo-img img{margin-right:15px;max-height:30px}.logo-text{color:#000;display:block;font-size:1.4rem;font-weight:400;letter-spacing:2px;padding:5px 0;text-align:left;text-transform:uppercase}.dropdown-menu{left:auto;right:0;z-index:25000!important}.noti-container{cursor:pointer}.noti-content{vertical-align:top!important;width:280px}.noti-container,.icon-dismiss{padding:15px;position:relative;z-index:9}.noti-list{max-height:400px;overflow:auto}.nav-link{background-color:#fff}@media screen and (max-width: 991px){.navbar{padding:0 30px 5px}}@media screen and (max-width: 575px){.navbar{padding:0 15px 5px 10px}}@media screen and (max-width: 575px){.noti-content{width:250px}}@media only screen and (max-width: 480px){.logo-img{max-width:100px}.logo-img img{width:100%}}\n"] }]
445
- }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1.NotificationService }, { type: i1$2.NgbDropdownConfig }, { type: i1.ScriptLoaderService }, { type: i3$2.Store }]; }, propDecorators: { logo: [{
446
- type: Input
447
- }], notiDrop: [{
448
- type: ViewChild,
449
- args: ['notiDrop', { static: true }]
450
- }] } });
451
-
452
- class CurrentNotificationsComponent {
453
- constructor(notificationService) {
454
- this.notificationService = notificationService;
455
- this.notificationCount = 0;
456
- this.noNoti = true;
457
- this.notifications = [];
458
- this.isLoaded = false;
459
- }
460
- ngOnInit() {
461
- this.getNotifications();
462
- }
463
- getNotifications() {
464
- this.notificationService
465
- .getNotifications()
466
- .subscribe(data => {
467
- var _a;
468
- if (data.length > 0) {
469
- this.notifications = data.filter(note => !note.dismissed && note.show_on_dashboard);
470
- this.noNoti = true;
471
- if ((_a = this.notifications) === null || _a === void 0 ? void 0 : _a.length) {
472
- this.noNoti = false;
473
- }
474
- }
475
- })
476
- .add(() => {
477
- this.isLoaded = true;
478
- });
479
- }
480
- dismiss(id, e) {
481
- this.notificationService.dismissNotification(id).subscribe(() => {
482
- // Remove notification from notification array
483
- const index = this.notifications.indexOf(e);
484
- this.notifications.splice(index, 1);
485
- if (this.notifications.length === 0) {
486
- this.noNoti = true;
487
- }
488
- $('#noty').slideUp('slow', () => {
489
- $('#noty').remove();
490
- });
491
- });
492
- }
493
- trackByNotification(_index, item) {
494
- return item.id;
495
- }
496
- }
497
- CurrentNotificationsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CurrentNotificationsComponent, deps: [{ token: i1.NotificationService }], target: i0.ɵɵFactoryTarget.Component });
498
- 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: "component", type: i3$1.ProgressSpinner, selector: "p-progressSpinner", inputs: ["style", "styleClass", "strokeWidth", "fill", "animationDuration"] }, { kind: "pipe", type: i4$1.SinceAgoPipe, name: "sinceAgo" }] });
499
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CurrentNotificationsComponent, decorators: [{
500
- type: Component,
501
- 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"] }]
502
- }], ctorParameters: function () { return [{ type: i1.NotificationService }]; } });
503
-
504
- class DismissedNotificationsComponent {
505
- constructor(notificationService) {
506
- this.notificationService = notificationService;
507
- this.notificationCount = 0;
508
- this.noNoti = true;
509
- this.dismissedNotifications = [];
510
- this.isLoaded = false;
511
- }
512
- ngOnInit() {
513
- this.getNotifications();
514
- }
515
- getNotifications() {
516
- this.notificationService
517
- .getDismissedNotifications()
518
- .subscribe(data => {
519
- if (data.length > 0) {
520
- this.noNoti = false;
521
- this.dismissedNotifications = data;
522
- }
523
- })
524
- .add(() => {
525
- this.isLoaded = true;
526
- });
527
- }
528
- dismiss(id, e) {
529
- HelperService.raiseDeletePopup().then(res => {
530
- if (res.value) {
531
- this.notificationService.deleteNotifications(id).subscribe(() => {
532
- // Remove notification from notification array
533
- const index = this.dismissedNotifications.indexOf(e);
534
- this.dismissedNotifications.splice(index, 1);
535
- if (this.dismissedNotifications.length === 0) {
536
- this.noNoti = true;
537
- }
538
- $('#noty').slideUp('slow', () => {
539
- $('#noty').remove();
540
- });
541
- });
542
- }
543
- });
544
- }
545
- restoreNotification(id, e) {
546
- this.notificationService.reinstateNotification(id).subscribe(() => {
547
- // Remove notification from dismissed notification array
548
- const index = this.dismissedNotifications.indexOf(e);
549
- this.dismissedNotifications.splice(index, 1);
550
- if (this.dismissedNotifications.length === 0) {
551
- this.noNoti = true;
552
- }
553
- $('#noty').slideUp('slow', () => {
554
- $('#noty').remove();
555
- });
556
- });
557
- }
558
- trackByNotification(_index, item) {
559
- return item.id;
560
- }
561
- }
562
- DismissedNotificationsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DismissedNotificationsComponent, deps: [{ token: i1.NotificationService }], target: i0.ɵɵFactoryTarget.Component });
563
- 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: "component", type: i3$1.ProgressSpinner, selector: "p-progressSpinner", inputs: ["style", "styleClass", "strokeWidth", "fill", "animationDuration"] }, { kind: "pipe", type: i4$1.SinceAgoPipe, name: "sinceAgo" }] });
564
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DismissedNotificationsComponent, decorators: [{
565
- type: Component,
566
- 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"] }]
567
- }], ctorParameters: function () { return [{ type: i1.NotificationService }]; } });
568
-
569
- class NotificationsPageComponent {
570
- }
571
- NotificationsPageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: NotificationsPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
572
- 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" }] });
573
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: NotificationsPageComponent, decorators: [{
574
- type: Component,
575
- 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"] }]
576
- }] });
577
-
578
- class SearchComponent {
579
- constructor(route, service) {
580
- this.route = route;
581
- this.service = service;
582
- this.objectKeys = Object.keys;
583
- }
584
- ngOnInit() {
585
- this.subscriptionId = PermissionService.selectedSubscription.id;
586
- this.route.queryParams.subscribe(response => {
587
- this.keyword = response['keyword'];
588
- if (this.keyword) {
589
- this.search();
590
- }
591
- });
592
- }
593
- search() {
594
- this.service.search(this.keyword, this.subscriptionId).subscribe(response => {
595
- this.result = response;
596
- });
597
- }
598
- trackByUserId(_index, item) {
599
- return item.id;
600
- }
601
- trackByFaqId(_index, item) {
602
- return item.id;
603
- }
604
- trackBySkill(_index, item) {
605
- return item.id;
606
- }
607
- }
608
- 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 });
609
- 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 <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 </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}.ql-container{resize:none!important}\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: "component", type: i4.NoDataComponent, selector: "pw-no-data", inputs: ["message"] }, { kind: "directive", type: i8.LazyImgDirective, selector: "img" }, { kind: "pipe", type: i2.UpperCasePipe, name: "uppercase" }, { kind: "pipe", type: i4$1.DOMSanitizerPipe, name: "safe" }] });
610
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: SearchComponent, decorators: [{
611
- type: Component,
612
- 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 <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 </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}.ql-container{resize:none!important}\n"] }]
613
- }], ctorParameters: function () { return [{ type: i1$1.ActivatedRoute }, { type: i1.DashboardService }]; } });
614
-
615
- class UserNotificationsComponent extends AppBaseComponent {
616
- constructor(injector, commonService) {
617
- super(injector);
618
- this.commonService = commonService;
619
- this.notifications = [];
620
- this.notifier = new Subject();
621
- this.isHomePage = true;
622
- this.previousUrl = null;
623
- this.currentUrl = null;
624
- }
625
- ngOnInit() {
626
- this.getUserNotifications();
627
- this.isHomePage = this.router.url.includes('home');
628
- this.router.events
629
- .pipe(takeUntil(this.notifier.pipe(filter((event) => event instanceof NavigationEnd))))
630
- .subscribe((event) => {
631
- if (event instanceof NavigationEnd) {
632
- this.previousUrl = this.currentUrl;
633
- this.currentUrl = event.url;
634
- this.isHomePage = this.currentUrl.includes('home');
635
- if (this.previousUrl !== this.currentUrl) {
636
- this.getUserNotifications();
637
- }
638
- }
639
- });
640
- }
641
- getUserNotifications() {
642
- this.userService.getUserNotifications().subscribe(notifications => {
643
- this.notifications = notifications;
644
- });
645
- }
646
- hideNoty(id) {
647
- const subscriptionId = PermissionService.selectedSubscription.id;
648
- this.commonService
649
- .userLoginNotification({
650
- subscription_id: subscriptionId,
651
- notification_id: id,
652
- discarded: true
653
- })
654
- .subscribe(() => {
655
- this.getUserNotifications();
656
- });
657
- }
658
- ngOnDestroy() {
659
- this.notifier.next('');
660
- }
661
- }
662
- UserNotificationsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: UserNotificationsComponent, deps: [{ token: i0.Injector }, { token: i1.CommonService }], target: i0.ɵɵFactoryTarget.Component });
663
- UserNotificationsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: UserNotificationsComponent, selector: "pw-user-notifications", usesInheritance: true, ngImport: i0, 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"], 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: i8.AnchorRouterDirective, selector: "[appAnchorRouter]" }, { kind: "pipe", type: i4$1.DOMSanitizerPipe, name: "safe" }] });
664
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: UserNotificationsComponent, decorators: [{
665
- type: Component,
666
- 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"] }]
667
- }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1.CommonService }]; } });
668
-
669
- class FaqDetailsComponent extends AppBaseComponent {
670
- constructor(commonService, injector) {
671
- var _a;
672
- super(injector);
673
- this.commonService = commonService;
674
- this.isLoading = false;
675
- this.id = Number(this.route.snapshot.params['id']);
676
- this.slug = (_a = PermissionService.selectedSubscription) === null || _a === void 0 ? void 0 : _a.slug;
677
- }
678
- ngOnInit() {
679
- this.getFaq();
680
- }
681
- getFaq() {
682
- this.isLoading = true;
683
- this.commonService
684
- .getPublicFaqById(this.id)
685
- .subscribe(res => {
686
- this.faq = res;
687
- })
688
- .add(() => (this.isLoading = false));
689
- }
690
- }
691
- 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 });
692
- 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 class=\"text-end mt-3\">\n <button class=\"btn btn-outline-primary\"\n [routerLink]=\"['/',slug,'faq']\">See all FAQs</button>\n </div>\n</div>\n<div class=\"w-100 text-center mt-3\"\n *ngIf=\"isLoading\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n</div>\n", styles: [".ql-container{resize:none!important}\n"], dependencies: [{ 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: "component", type: i3$1.ProgressSpinner, selector: "p-progressSpinner", inputs: ["style", "styleClass", "strokeWidth", "fill", "animationDuration"] }, { kind: "component", type: i4.NoDataComponent, selector: "pw-no-data", inputs: ["message"] }, { kind: "pipe", type: i4$1.DOMSanitizerPipe, name: "safe" }] });
693
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: FaqDetailsComponent, decorators: [{
694
- type: Component,
695
- 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 class=\"text-end mt-3\">\n <button class=\"btn btn-outline-primary\"\n [routerLink]=\"['/',slug,'faq']\">See all FAQs</button>\n </div>\n</div>\n<div class=\"w-100 text-center mt-3\"\n *ngIf=\"isLoading\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n</div>\n", styles: [".ql-container{resize:none!important}\n"] }]
696
- }], ctorParameters: function () { return [{ type: i1.CommonService }, { type: i0.Injector }]; } });
697
-
698
- // Core Angular modules
699
- class DashboardLibModule {
700
- }
701
- DashboardLibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DashboardLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
702
- DashboardLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.5", ngImport: i0, type: DashboardLibModule, declarations: [HomeComponent,
703
- UserFeedbackComponent,
704
- NotificationsPageComponent,
705
- FooterComponent,
706
- NavbarComponent,
707
- UserNotificationsComponent,
708
- CustomizerComponent,
709
- FaqComponent,
710
- SearchComponent,
711
- CurrentNotificationsComponent,
712
- DismissedNotificationsComponent,
713
- FaqDetailsComponent], imports: [CommonModule,
714
- SharedComponentsModule,
715
- FormsModule,
716
- PipesModule,
717
- DirectivesModule,
718
- ReactiveFormsModule,
719
- CoreTranslocoModule,
720
- NgbNavModule,
721
- NgbDropdownModule,
722
- UserModuleModule,
723
- RadioButtonModule,
724
- ProgressSpinnerModule], exports: [FooterComponent, NavbarComponent, UserNotificationsComponent, CustomizerComponent] });
725
- DashboardLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DashboardLibModule, providers: [SubscriptionService], imports: [CommonModule,
726
- SharedComponentsModule,
727
- FormsModule,
728
- PipesModule,
729
- DirectivesModule,
730
- ReactiveFormsModule,
731
- CoreTranslocoModule,
732
- NgbNavModule,
733
- NgbDropdownModule,
734
- UserModuleModule,
735
- RadioButtonModule,
736
- ProgressSpinnerModule] });
737
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DashboardLibModule, decorators: [{
738
- type: NgModule,
739
- args: [{
740
- imports: [
741
- CommonModule,
742
- SharedComponentsModule,
743
- FormsModule,
744
- PipesModule,
745
- DirectivesModule,
746
- ReactiveFormsModule,
747
- CoreTranslocoModule,
748
- NgbNavModule,
749
- NgbDropdownModule,
750
- UserModuleModule,
751
- RadioButtonModule,
752
- ProgressSpinnerModule
753
- ],
754
- declarations: [
755
- HomeComponent,
756
- UserFeedbackComponent,
757
- NotificationsPageComponent,
758
- FooterComponent,
759
- NavbarComponent,
760
- UserNotificationsComponent,
761
- CustomizerComponent,
762
- FaqComponent,
763
- SearchComponent,
764
- CurrentNotificationsComponent,
765
- DismissedNotificationsComponent,
766
- FaqDetailsComponent
767
- ],
768
- exports: [FooterComponent, NavbarComponent, UserNotificationsComponent, CustomizerComponent],
769
- providers: [SubscriptionService],
770
- schemas: [CUSTOM_ELEMENTS_SCHEMA]
771
- }]
772
- }] });
773
-
774
- // Sidebar menu Routes and data
775
- const ROUTES = [
776
- // Dashboard Home
777
- {
778
- permission: 'Pages.Dashboard',
779
- path: '/home',
780
- title: 'Home',
781
- icon: 'ft-home',
782
- class: '',
783
- badge: '',
784
- badgeClass: '',
785
- isExternalLink: false,
786
- submenu: [],
787
- visible: true,
788
- order: 1
789
- },
790
- // Menus for Admin page
791
- {
792
- permission: 'Pages.Admin',
793
- path: null,
794
- title: 'Admin',
795
- icon: 'ft-user',
796
- class: 'has-sub',
797
- badge: '',
798
- badgeClass: '',
799
- isExternalLink: false,
800
- visible: true,
801
- order: 3,
802
- submenu: [
803
- {
804
- permission: 'Pages.Admin',
805
- path: '/admin/generic',
806
- title: 'Generic',
807
- icon: 'far fa-book',
808
- class: '',
809
- badge: '',
810
- badgeClass: '',
811
- isExternalLink: false,
812
- submenu: [],
813
- visible: true
814
- },
815
- {
816
- permission: 'Pages.Admin.FAQ',
817
- path: '/admin/faq/list',
818
- title: 'FAQs',
819
- icon: 'fa fa-question',
820
- class: '',
821
- badge: '',
822
- badgeClass: '',
823
- isExternalLink: false,
824
- submenu: [],
825
- visible: true
826
- },
827
- {
828
- permission: 'Pages.Admin.ContactUs',
829
- path: '/admin/contact-us/list',
830
- title: 'Contact Us',
831
- icon: 'fa fa-address-book',
832
- class: '',
833
- badge: '',
834
- badgeClass: '',
835
- isExternalLink: false,
836
- submenu: [],
837
- visible: true
838
- },
839
- {
840
- permission: 'Pages.Admin.DomainConfig',
841
- path: '/admin/domain-config/list',
842
- title: 'Domain Config',
843
- icon: 'fa fa-fw fa-cog',
844
- class: '',
845
- badge: '',
846
- badgeClass: '',
847
- isExternalLink: false,
848
- submenu: [],
849
- visible: true
850
- },
851
- {
852
- permission: 'Pages.Admin.LoginNotification',
853
- path: '/admin/login-notifications/list',
854
- title: 'Notifications',
855
- icon: 'fa fa-fw fa-bell',
856
- class: '',
857
- badge: '',
858
- badgeClass: '',
859
- isExternalLink: false,
860
- submenu: [],
861
- visible: true
862
- },
863
- {
864
- permission: 'Pages.Admin.Users',
865
- path: '/admin/users',
866
- title: 'Users',
867
- icon: 'far fa-user-cog',
868
- class: '',
869
- badge: '',
870
- badgeClass: '',
871
- isExternalLink: false,
872
- submenu: [],
873
- visible: true
874
- },
875
- {
876
- permission: 'Pages.Admin.Subscription',
877
- path: '/admin/subscriptions',
878
- title: 'Subscriptions',
879
- icon: 'ft-box',
880
- class: '',
881
- badge: '',
882
- badgeClass: '',
883
- isExternalLink: false,
884
- submenu: [],
885
- visible: true
886
- },
887
- {
888
- permission: 'Pages.Admin.Product',
889
- path: '/admin/products',
890
- title: 'Products',
891
- icon: 'far fa-parking',
892
- class: '',
893
- badge: '',
894
- badgeClass: '',
895
- isExternalLink: false,
896
- submenu: [],
897
- visible: true
898
- },
899
- {
900
- permission: 'Pages.Admin.Newsletter',
901
- path: '/admin/newsletter',
902
- title: 'Newsletters',
903
- icon: 'far fa-newspaper',
904
- class: '',
905
- badge: '',
906
- badgeClass: '',
907
- isExternalLink: false,
908
- submenu: [],
909
- visible: true
910
- },
911
- {
912
- permission: 'Pages.Admin.Tags',
913
- path: '/admin/tags',
914
- title: 'Tags',
915
- icon: 'far fa-tags',
916
- class: '',
917
- badge: '',
918
- badgeClass: '',
919
- isExternalLink: false,
920
- submenu: [],
921
- visible: true
922
- },
923
- {
924
- permission: 'Pages.Admin.Tips',
925
- path: '/admin/tips/list',
926
- title: 'Tips',
927
- icon: 'far fa-lightbulb',
928
- class: '',
929
- badge: '',
930
- badgeClass: '',
931
- isExternalLink: false,
932
- submenu: [],
933
- visible: true
934
- },
935
- {
936
- permission: 'Pages.Admin.Roles',
937
- path: '/admin/permissions',
938
- title: 'Permissions',
939
- icon: 'fas fa-key',
940
- class: '',
941
- badge: '',
942
- badgeClass: '',
943
- isExternalLink: false,
944
- submenu: [],
945
- visible: true
946
- },
947
- {
948
- permission: 'Pages.Admin.Tos',
949
- path: '/admin/tos/list',
950
- title: 'Privacy & TOS',
951
- icon: 'fas fa-sticky-note',
952
- class: '',
953
- badge: '',
954
- badgeClass: '',
955
- isExternalLink: false,
956
- submenu: [],
957
- visible: true
958
- },
959
- {
960
- permission: 'Pages.Admin.Credential',
961
- path: '/admin/credentials',
962
- title: 'Credentials',
963
- icon: 'fas fa-file-signature',
964
- class: '',
965
- badge: '',
966
- badgeClass: '',
967
- isExternalLink: false,
968
- submenu: [],
969
- visible: true
970
- },
971
- {
972
- permission: 'Pages.Admin.Tracking',
973
- path: '/admin/tracking',
974
- title: 'Tracking',
975
- icon: 'fa fa-map-marker',
976
- class: '',
977
- badge: '',
978
- badgeClass: '',
979
- isExternalLink: false,
980
- submenu: [],
981
- visible: true
982
- },
983
- {
984
- permission: 'Pages.Admin.Global-Config',
985
- path: '/admin/global-config',
986
- title: 'Global Configs',
987
- icon: 'fa fa-fw fa-cog',
988
- class: '',
989
- badge: '',
990
- badgeClass: '',
991
- isExternalLink: false,
992
- submenu: [],
993
- visible: true
994
- }
995
- ]
996
- }
997
- ];
998
- // THE FOLLOWING GOES INTO THE BOTTOM OF THE SIDEBAR
999
- const FAQ_Menu = {
1000
- permission: 'Pages.Product.{permission_key}.{feature_key}.FAQ',
1001
- path: '/faq',
1002
- title: 'FAQ',
1003
- icon: 'ft-info',
1004
- class: '',
1005
- badge: '',
1006
- badgeClass: '',
1007
- isExternalLink: false,
1008
- submenu: [],
1009
- visible: true,
1010
- order: 999
1011
- };
1012
- const ENTERPRISE_MENU = {
1013
- permission: 'Pages.Product.{permission_key}.{feature_key}.Enterprise',
1014
- path: '/enterprise',
1015
- title: 'Enterprise',
1016
- icon: 'ft-package',
1017
- class: 'has-sub',
1018
- badge: '',
1019
- badgeClass: 'badge rounded-pill bg-danger float-end mt-1',
1020
- isExternalLink: false,
1021
- order: 4,
1022
- submenu: [
1023
- {
1024
- permission: '',
1025
- path: ':slug/enterprise/members',
1026
- title: 'Members',
1027
- icon: 'far fa-users',
1028
- class: '',
1029
- badge: '',
1030
- badgeClass: '',
1031
- isExternalLink: false,
1032
- submenu: [],
1033
- visible: true
1034
- },
1035
- {
1036
- permission: 'Pages.Beta',
1037
- path: ':slug/enterprise/groups',
1038
- title: 'Teams',
1039
- icon: 'far fa-users-class',
1040
- class: '',
1041
- badge: '',
1042
- badgeClass: '',
1043
- isExternalLink: false,
1044
- submenu: [],
1045
- visible: true
1046
- },
1047
- {
1048
- permission: 'Pages.Beta',
1049
- path: ':slug/enterprise/communications',
1050
- title: 'Communications',
1051
- icon: 'fas fa-comments',
1052
- class: '',
1053
- badge: '',
1054
- badgeClass: '',
1055
- isExternalLink: false,
1056
- submenu: [],
1057
- visible: true
1058
- },
1059
- {
1060
- permission: 'Pages.Beta',
1061
- path: ':slug/enterprise/wiki',
1062
- title: 'Documentation',
1063
- icon: 'fab fa-wikipedia-w',
1064
- class: '',
1065
- badge: '',
1066
- badgeClass: '',
1067
- isExternalLink: false,
1068
- submenu: [],
1069
- visible: true
1070
- },
1071
- {
1072
- permission: 'Pages.Beta',
1073
- path: ':slug/enterprise/insights',
1074
- title: 'Insights',
1075
- icon: 'far fa-tag',
1076
- class: '',
1077
- badge: '',
1078
- badgeClass: '',
1079
- isExternalLink: false,
1080
- submenu: [],
1081
- visible: true
1082
- }
1083
- ],
1084
- visible: true
1085
- };
1086
- const CHAT_MENU = {
1087
- permission: 'Pages.Product.{permission_key}.{feature_key}.Chat',
1088
- path: '/message',
1089
- title: 'Chat',
1090
- icon: 'ft-message-square',
1091
- class: '',
1092
- badge: '',
1093
- badgeClass: 'badge rounded-pill bg-danger float-end mt-1',
1094
- isExternalLink: false,
1095
- submenu: [],
1096
- order: 2,
1097
- visible: true
1098
- };
1099
- const BLOG_MENU = {
1100
- permission: 'Pages.Product.{permission_key}.{feature_key}.Blog',
1101
- path: '/posts/list',
1102
- title: 'Blog',
1103
- icon: 'far fa-blog',
1104
- class: '',
1105
- badge: '',
1106
- badgeClass: '',
1107
- isExternalLink: false,
1108
- submenu: [],
1109
- visible: true
1110
- };
1111
-
1112
- /**
1113
- * Generated bundle index. Do not edit.
1114
- */
1115
-
1116
- export { BLOG_MENU, CHAT_MENU, CurrentNotificationsComponent, CustomizerComponent, DashboardLibModule, DismissedNotificationsComponent, ENTERPRISE_MENU, FAQ_Menu, FaqComponent, FaqDetailsComponent, FooterComponent, HomeComponent, NavbarComponent, NotificationsPageComponent, ROUTES, SearchComponent, UserFeedbackComponent, UserNotificationsComponent };
1117
- //# sourceMappingURL=posiwise-dashboard-module.mjs.map