@posiwise/dashboard-module 0.0.120 → 0.0.121
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.
- package/esm2022/index.mjs +1 -5
- package/esm2022/lib/dashboard.module.mjs +2 -15
- package/esm2022/lib/faq/faq.component.mjs +3 -3
- package/esm2022/lib/faq-details/faq-details.component.mjs +3 -3
- package/esm2022/lib/search/search.component.mjs +3 -3
- package/fesm2022/posiwise-dashboard-module.mjs +27 -331
- package/fesm2022/posiwise-dashboard-module.mjs.map +1 -1
- package/index.d.ts +0 -4
- package/lib/dashboard.module.d.ts +18 -22
- package/package.json +1 -1
- package/esm2022/lib/customizer/customizer.component.mjs +0 -27
- package/esm2022/lib/footer/footer.component.mjs +0 -22
- package/esm2022/lib/navbar/navbar.component.mjs +0 -215
- package/esm2022/lib/user-notifications/user-notifications.component.mjs +0 -64
- package/lib/customizer/customizer.component.d.ts +0 -9
- package/lib/footer/footer.component.d.ts +0 -12
- package/lib/navbar/navbar.component.d.ts +0 -62
- package/lib/user-notifications/user-notifications.component.d.ts +0 -20
|
@@ -1,64 +1,36 @@
|
|
|
1
|
-
import * as i2$
|
|
1
|
+
import * as i2$1 from '@angular/common';
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { Component,
|
|
5
|
-
import * as i3 from '@angular/forms';
|
|
4
|
+
import { Component, NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|
5
|
+
import * as i3$1 from '@angular/forms';
|
|
6
6
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
7
7
|
import * as i1 from '@posiwise/common-services';
|
|
8
8
|
import { PermissionService, SubscriptionService } from '@posiwise/common-services';
|
|
9
9
|
import { CoreTranslocoModule } from '@posiwise/core-transloco';
|
|
10
|
-
import * as i3$
|
|
10
|
+
import * as i3$2 from '@posiwise/directives';
|
|
11
11
|
import { DirectivesModule } from '@posiwise/directives';
|
|
12
12
|
import * as i5 from '@posiwise/pipes';
|
|
13
13
|
import { PipesModule } from '@posiwise/pipes';
|
|
14
14
|
import * as i4 from '@posiwise/shared-components';
|
|
15
15
|
import { SharedComponentsModule } from '@posiwise/shared-components';
|
|
16
16
|
import { UserModuleModule } from '@posiwise/user-module';
|
|
17
|
-
import * as i2 from 'primeng/dropdown';
|
|
18
17
|
import { DropdownModule } from 'primeng/dropdown';
|
|
19
|
-
import * as i3
|
|
18
|
+
import * as i3 from 'primeng/progressspinner';
|
|
20
19
|
import { ProgressSpinnerModule } from 'primeng/progressspinner';
|
|
21
20
|
import * as i4$1 from 'primeng/radiobutton';
|
|
22
21
|
import { RadioButtonModule } from 'primeng/radiobutton';
|
|
23
22
|
import * as i1$2 from '@ng-bootstrap/ng-bootstrap';
|
|
24
|
-
import {
|
|
25
|
-
import * as i2
|
|
23
|
+
import { NgbNavModule, NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';
|
|
24
|
+
import * as i2 from '@angular/platform-browser';
|
|
26
25
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
27
26
|
import { HelperService } from '@posiwise/helper-service';
|
|
28
27
|
import groupBy from 'lodash/groupBy';
|
|
29
28
|
import sortBy from 'lodash/sortBy';
|
|
30
|
-
import { Subject, forkJoin
|
|
29
|
+
import { Subject, forkJoin } from 'rxjs';
|
|
31
30
|
import { debounceTime, takeUntil, finalize } from 'rxjs/operators';
|
|
32
31
|
import * as i1$1 from '@angular/router';
|
|
33
|
-
import { NavigationEnd } from '@angular/router';
|
|
34
32
|
import moment from 'moment';
|
|
35
33
|
import * as i6 from '@jsverse/transloco';
|
|
36
|
-
import { getUser } from '@posiwise/app-store';
|
|
37
|
-
import { orderBy } from 'lodash';
|
|
38
|
-
import * as i3$3 from '@ngrx/store';
|
|
39
|
-
import * as i6$1 from 'primeng/tooltip';
|
|
40
|
-
|
|
41
|
-
class CustomizerComponent {
|
|
42
|
-
constructor() {
|
|
43
|
-
this.sidebarWidths = [];
|
|
44
|
-
}
|
|
45
|
-
ngOnInit() {
|
|
46
|
-
this.sidebarWidths = [
|
|
47
|
-
{ label: 'Small', value: 'small' },
|
|
48
|
-
{ label: 'Medium', value: 'medium' },
|
|
49
|
-
{ label: 'Large', value: 'large' }
|
|
50
|
-
];
|
|
51
|
-
this.selectedSidebarWidth = 'medium';
|
|
52
|
-
// Customizer JS File
|
|
53
|
-
$.getScript('/assets/js/customizer.js');
|
|
54
|
-
}
|
|
55
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CustomizerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
56
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", 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\" aria-label=\"Close\">\n <i class=\"ft-x font-medium-3\" aria-hidden=\"true\"></i>\n </a>\n <a class=\"customizer-toggle bg-danger\"\n aria-label=\"Customize Spinner\"\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 & 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 aria-label=\"Compact Menu\"\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 <p-dropdown\n [options]=\"sidebarWidths\"\n [(ngModel)]=\"selectedSidebarWidth\"\n class=\"cz-sidebar-width float-end\"\n placeholder=\"Select Width\">\n </p-dropdown>\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_sub_bg: rgb(70, 136, 236);--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:#fff;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.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2.Dropdown, selector: "p-dropdown", inputs: ["id", "scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "variant", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "disabled", "itemSize", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "filterValue", "options"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "directive", type: i3$1.LazyImgDirective, selector: "img" }] }); }
|
|
57
|
-
}
|
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CustomizerComponent, decorators: [{
|
|
59
|
-
type: Component,
|
|
60
|
-
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\" aria-label=\"Close\">\n <i class=\"ft-x font-medium-3\" aria-hidden=\"true\"></i>\n </a>\n <a class=\"customizer-toggle bg-danger\"\n aria-label=\"Customize Spinner\"\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 & 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 aria-label=\"Compact Menu\"\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 <p-dropdown\n [options]=\"sidebarWidths\"\n [(ngModel)]=\"selectedSidebarWidth\"\n class=\"cz-sidebar-width float-end\"\n placeholder=\"Select Width\">\n </p-dropdown>\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_sub_bg: rgb(70, 136, 236);--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:#fff;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"] }]
|
|
61
|
-
}] });
|
|
62
34
|
|
|
63
35
|
class DocumentationComponent {
|
|
64
36
|
constructor(sanitizer) {
|
|
@@ -73,13 +45,13 @@ class DocumentationComponent {
|
|
|
73
45
|
onIframeLoad() {
|
|
74
46
|
this.isLoaded = true;
|
|
75
47
|
}
|
|
76
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: DocumentationComponent, deps: [{ token: i2
|
|
77
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: DocumentationComponent, selector: "pw-documentation", ngImport: i0, template: "<div class=\"w-100 text-center mt-3\" *ngIf=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"></p-progressSpinner>\n</div>\n\n<div class=\"documentation-wrapper\" [hidden]=\"!isLoaded\">\n <iframe\n [src]=\"iframeUrl\"\n width=\"100%\"\n height=\"100%\"\n allowfullscreen\n title=\"Documentation Frame\"\n (load)=\"onIframeLoad()\"\n ></iframe>\n</div>\n", styles: [".documentation-wrapper{width:100%;height:100vh}.documentation-wrapper iframe{width:100%;height:100%;border:none}\n"], dependencies: [{ kind: "directive", type: i2$
|
|
48
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: DocumentationComponent, deps: [{ token: i2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
49
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: DocumentationComponent, selector: "pw-documentation", ngImport: i0, template: "<div class=\"w-100 text-center mt-3\" *ngIf=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"></p-progressSpinner>\n</div>\n\n<div class=\"documentation-wrapper\" [hidden]=\"!isLoaded\">\n <iframe\n [src]=\"iframeUrl\"\n width=\"100%\"\n height=\"100%\"\n allowfullscreen\n title=\"Documentation Frame\"\n (load)=\"onIframeLoad()\"\n ></iframe>\n</div>\n", styles: [".documentation-wrapper{width:100%;height:100vh}.documentation-wrapper iframe{width:100%;height:100%;border:none}\n"], dependencies: [{ kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.ProgressSpinner, selector: "p-progressSpinner", inputs: ["styleClass", "style", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }] }); }
|
|
78
50
|
}
|
|
79
51
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: DocumentationComponent, decorators: [{
|
|
80
52
|
type: Component,
|
|
81
53
|
args: [{ selector: 'pw-documentation', template: "<div class=\"w-100 text-center mt-3\" *ngIf=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"></p-progressSpinner>\n</div>\n\n<div class=\"documentation-wrapper\" [hidden]=\"!isLoaded\">\n <iframe\n [src]=\"iframeUrl\"\n width=\"100%\"\n height=\"100%\"\n allowfullscreen\n title=\"Documentation Frame\"\n (load)=\"onIframeLoad()\"\n ></iframe>\n</div>\n", styles: [".documentation-wrapper{width:100%;height:100vh}.documentation-wrapper iframe{width:100%;height:100%;border:none}\n"] }]
|
|
82
|
-
}], ctorParameters: () => [{ type: i2
|
|
54
|
+
}], ctorParameters: () => [{ type: i2.DomSanitizer }] });
|
|
83
55
|
|
|
84
56
|
class FaqComponent extends AppBaseComponent {
|
|
85
57
|
constructor(commonService, injector, productService, sanitizer) {
|
|
@@ -187,13 +159,13 @@ class FaqComponent extends AppBaseComponent {
|
|
|
187
159
|
this.destroy$.complete();
|
|
188
160
|
super.ngOnDestroy();
|
|
189
161
|
}
|
|
190
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FaqComponent, deps: [{ token: i1.CommonService }, { token: i0.Injector }, { token: i1.ProductService }, { token: i2
|
|
191
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: FaqComponent, selector: "pw-faq", usesInheritance: true, ngImport: i0, template: "<div class=\"mt-md-4 mt-4\">\n <div class=\"row mb-3\">\n <div class=\"col-12\">\n <div class=\"card gradient-custom-branding white text-center p-1 p-sm-2\">\n <div class=\"card-header p-1 p-sm-2\">\n <div class=\"d-flex justify-content-between align-items-start mb-3 mb-md-0\">\n <div>\n <button *ngIf=\"showDocumentation\"\n class=\"btn btn-sm document-btn\"\n (click)=\"navigateToDocumentation()\">\n Documentation\n </button>\n </div>\n <div>\n <button *ngIf=\"showSupport\"\n class=\"btn btn-sm btn-primary\"\n (click)=\"navigateToSupport()\">\n Support\n </button>\n </div>\n </div>\n\n <h1>You need help?</h1>\n <p><em>Please search through our frequently asked questions first.</em></p>\n </div>\n <div class=\"card-block p-2 p-sm-2\">\n <fieldset>\n <legend></legend>\n <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 <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 (click)=\"onCollapseToggle(idx + '-' + idx1, faq?.answer)\"\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\"
|
|
162
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FaqComponent, deps: [{ token: i1.CommonService }, { token: i0.Injector }, { token: i1.ProductService }, { token: i2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
163
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: FaqComponent, selector: "pw-faq", usesInheritance: true, ngImport: i0, template: "<div class=\"mt-md-4 mt-4\">\n <div class=\"row mb-3\">\n <div class=\"col-12\">\n <div class=\"card gradient-custom-branding white text-center p-1 p-sm-2\">\n <div class=\"card-header p-1 p-sm-2\">\n <div class=\"d-flex justify-content-between align-items-start mb-3 mb-md-0\">\n <div>\n <button *ngIf=\"showDocumentation\"\n class=\"btn btn-sm document-btn\"\n (click)=\"navigateToDocumentation()\">\n Documentation\n </button>\n </div>\n <div>\n <button *ngIf=\"showSupport\"\n class=\"btn btn-sm btn-primary\"\n (click)=\"navigateToSupport()\">\n Support\n </button>\n </div>\n </div>\n\n <h1>You need help?</h1>\n <p><em>Please search through our frequently asked questions first.</em></p>\n </div>\n <div class=\"card-block p-2 p-sm-2\">\n <fieldset>\n <legend></legend>\n <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 <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 (click)=\"onCollapseToggle(idx + '-' + idx1, faq?.answer)\"\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 no-border\">\n <div class=\"ql-editor\"\n [innerHTML]=\"sanitizedFaqAnswers[idx + '-' + idx1]\">\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=\"isLoaded && (totalRecords === 0 || allFaqFalse)\">\n <pw-no-data [withImage]=\"true\" message=\"This is embarrassing - we couldn't find any FAQ.\"> </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_sub_bg: rgb(70, 136, 236);--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);background-color:#fff;border-radius:3px;margin:10px 0;transition:all .2s ease-in-out}.faq-item .dashboard-header{background:#fff}.document-btn{background-color:var(--second);border-color:var(--second)!important;color:#fff}.document-btn:hover{color:var(--second)!important;background-color:transparent!important}.card .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;max-width:1000px;margin:0 auto}\n"], dependencies: [{ kind: "directive", type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.ProgressSpinner, selector: "p-progressSpinner", inputs: ["styleClass", "style", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }, { kind: "component", type: i4.NoDataComponent, selector: "pw-no-data", inputs: ["message", "description", "withImage"] }] }); }
|
|
192
164
|
}
|
|
193
165
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FaqComponent, decorators: [{
|
|
194
166
|
type: Component,
|
|
195
|
-
args: [{ selector: 'pw-faq', template: "<div class=\"mt-md-4 mt-4\">\n <div class=\"row mb-3\">\n <div class=\"col-12\">\n <div class=\"card gradient-custom-branding white text-center p-1 p-sm-2\">\n <div class=\"card-header p-1 p-sm-2\">\n <div class=\"d-flex justify-content-between align-items-start mb-3 mb-md-0\">\n <div>\n <button *ngIf=\"showDocumentation\"\n class=\"btn btn-sm document-btn\"\n (click)=\"navigateToDocumentation()\">\n Documentation\n </button>\n </div>\n <div>\n <button *ngIf=\"showSupport\"\n class=\"btn btn-sm btn-primary\"\n (click)=\"navigateToSupport()\">\n Support\n </button>\n </div>\n </div>\n\n <h1>You need help?</h1>\n <p><em>Please search through our frequently asked questions first.</em></p>\n </div>\n <div class=\"card-block p-2 p-sm-2\">\n <fieldset>\n <legend></legend>\n <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 <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 (click)=\"onCollapseToggle(idx + '-' + idx1, faq?.answer)\"\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\"
|
|
196
|
-
}], ctorParameters: () => [{ type: i1.CommonService }, { type: i0.Injector }, { type: i1.ProductService }, { type: i2
|
|
167
|
+
args: [{ selector: 'pw-faq', template: "<div class=\"mt-md-4 mt-4\">\n <div class=\"row mb-3\">\n <div class=\"col-12\">\n <div class=\"card gradient-custom-branding white text-center p-1 p-sm-2\">\n <div class=\"card-header p-1 p-sm-2\">\n <div class=\"d-flex justify-content-between align-items-start mb-3 mb-md-0\">\n <div>\n <button *ngIf=\"showDocumentation\"\n class=\"btn btn-sm document-btn\"\n (click)=\"navigateToDocumentation()\">\n Documentation\n </button>\n </div>\n <div>\n <button *ngIf=\"showSupport\"\n class=\"btn btn-sm btn-primary\"\n (click)=\"navigateToSupport()\">\n Support\n </button>\n </div>\n </div>\n\n <h1>You need help?</h1>\n <p><em>Please search through our frequently asked questions first.</em></p>\n </div>\n <div class=\"card-block p-2 p-sm-2\">\n <fieldset>\n <legend></legend>\n <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 <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 (click)=\"onCollapseToggle(idx + '-' + idx1, faq?.answer)\"\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 no-border\">\n <div class=\"ql-editor\"\n [innerHTML]=\"sanitizedFaqAnswers[idx + '-' + idx1]\">\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=\"isLoaded && (totalRecords === 0 || allFaqFalse)\">\n <pw-no-data [withImage]=\"true\" message=\"This is embarrassing - we couldn't find any FAQ.\"> </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_sub_bg: rgb(70, 136, 236);--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);background-color:#fff;border-radius:3px;margin:10px 0;transition:all .2s ease-in-out}.faq-item .dashboard-header{background:#fff}.document-btn{background-color:var(--second);border-color:var(--second)!important;color:#fff}.document-btn:hover{color:var(--second)!important;background-color:transparent!important}.card .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;max-width:1000px;margin:0 auto}\n"] }]
|
|
168
|
+
}], ctorParameters: () => [{ type: i1.CommonService }, { type: i0.Injector }, { type: i1.ProductService }, { type: i2.DomSanitizer }] });
|
|
197
169
|
|
|
198
170
|
class FaqDetailsComponent extends AppBaseComponent {
|
|
199
171
|
constructor(commonService, injector, sanitizer) {
|
|
@@ -227,30 +199,13 @@ class FaqDetailsComponent extends AppBaseComponent {
|
|
|
227
199
|
})
|
|
228
200
|
.add(() => (this.isLoading = false));
|
|
229
201
|
}
|
|
230
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FaqDetailsComponent, deps: [{ token: i1.CommonService }, { token: i0.Injector }, { token: i2
|
|
231
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: FaqDetailsComponent, selector: "pw-faq-details", usesInheritance: true, ngImport: i0, template: "<div class=\"content-quill-wrapper overflow-hidden mt-5 p-3\" *ngIf=\"!isLoading\">\n <div class=\"content-quill-box\">\n <h2 class=\"mb-3\">{{faq?.question}}</h2>\n <ng-container>\n <div class=\"ql-container ql-snow\"
|
|
202
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FaqDetailsComponent, deps: [{ token: i1.CommonService }, { token: i0.Injector }, { token: i2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
203
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: FaqDetailsComponent, selector: "pw-faq-details", usesInheritance: true, ngImport: i0, template: "<div class=\"content-quill-wrapper overflow-hidden mt-5 p-3\" *ngIf=\"!isLoading\">\n <div class=\"content-quill-box\">\n <h2 class=\"mb-3\">{{faq?.question}}</h2>\n <ng-container>\n <div class=\"ql-container ql-snow no-border\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer\">\n </div>\n </div>\n </ng-container>\n </div>\n <pw-no-data *ngIf=\"!faq && !isLoading\"\n message=\"No Faq found\">\n </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$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i3.ProgressSpinner, selector: "p-progressSpinner", inputs: ["styleClass", "style", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }, { kind: "component", type: i4.NoDataComponent, selector: "pw-no-data", inputs: ["message", "description", "withImage"] }] }); }
|
|
232
204
|
}
|
|
233
205
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FaqDetailsComponent, decorators: [{
|
|
234
206
|
type: Component,
|
|
235
|
-
args: [{ selector: 'pw-faq-details', template: "<div class=\"content-quill-wrapper overflow-hidden mt-5 p-3\" *ngIf=\"!isLoading\">\n <div class=\"content-quill-box\">\n <h2 class=\"mb-3\">{{faq?.question}}</h2>\n <ng-container>\n <div class=\"ql-container ql-snow\"
|
|
236
|
-
}], ctorParameters: () => [{ type: i1.CommonService }, { type: i0.Injector }, { type: i2
|
|
237
|
-
|
|
238
|
-
class FooterComponent extends AppBaseComponent {
|
|
239
|
-
constructor(injector) {
|
|
240
|
-
super(injector);
|
|
241
|
-
this.currentDate = new Date();
|
|
242
|
-
}
|
|
243
|
-
ngOnInit() {
|
|
244
|
-
this.productPrivacyId = this.appConfig?.main_tos_id;
|
|
245
|
-
this.companyName = this.appConfig?.company?.name;
|
|
246
|
-
}
|
|
247
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FooterComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
248
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", 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 © {{ 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", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: i2$2.DatePipe, name: "date" }] }); }
|
|
249
|
-
}
|
|
250
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FooterComponent, decorators: [{
|
|
251
|
-
type: Component,
|
|
252
|
-
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 © {{ currentDate | date: 'yyyy' }} {{ companyName }}. All rights\n reserved.\n </p>\n </div>\n</footer>\n<!-- Footer Ends -->\n" }]
|
|
253
|
-
}], ctorParameters: () => [{ type: i0.Injector }] });
|
|
207
|
+
args: [{ selector: 'pw-faq-details', template: "<div class=\"content-quill-wrapper overflow-hidden mt-5 p-3\" *ngIf=\"!isLoading\">\n <div class=\"content-quill-box\">\n <h2 class=\"mb-3\">{{faq?.question}}</h2>\n <ng-container>\n <div class=\"ql-container ql-snow no-border\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer\">\n </div>\n </div>\n </ng-container>\n </div>\n <pw-no-data *ngIf=\"!faq && !isLoading\"\n message=\"No Faq found\">\n </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"] }]
|
|
208
|
+
}], ctorParameters: () => [{ type: i1.CommonService }, { type: i0.Injector }, { type: i2.DomSanitizer }] });
|
|
254
209
|
|
|
255
210
|
class UserFeedbackComponent extends AppBaseComponent {
|
|
256
211
|
constructor(injector, commonService) {
|
|
@@ -309,7 +264,7 @@ class UserFeedbackComponent extends AppBaseComponent {
|
|
|
309
264
|
return item.id;
|
|
310
265
|
}
|
|
311
266
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: UserFeedbackComponent, deps: [{ token: i0.Injector }, { token: i1.CommonService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
312
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", 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 (keydown.enter)=\"closeSection()\"\n (click)=\"closeSection()\">×</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(11); 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$
|
|
267
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", 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 (keydown.enter)=\"closeSection()\"\n (click)=\"closeSection()\">×</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(11); 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$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3$1.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$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3$1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i4$1.RadioButton, selector: "p-radioButton", inputs: ["value", "formControlName", "name", "disabled", "label", "variant", "tabindex", "inputId", "ariaLabelledBy", "ariaLabel", "style", "styleClass", "labelStyleClass", "autofocus"], outputs: ["onClick", "onFocus", "onBlur"] }] }); }
|
|
313
268
|
}
|
|
314
269
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: UserFeedbackComponent, decorators: [{
|
|
315
270
|
type: Component,
|
|
@@ -367,209 +322,13 @@ class HomeComponent extends AppBaseComponent {
|
|
|
367
322
|
super.ngOnDestroy();
|
|
368
323
|
}
|
|
369
324
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: HomeComponent, deps: [{ token: i0.Injector }, { token: i1.HopscotchService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
370
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", 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: ["::ng-deep .hopscotch-title{text-align:center!important;margin-bottom:20px!important}::ng-deep .hopscotch-title h2{margin:0}::ng-deep .hopscotch-content{text-align:center;padding:20px;margin:0!important}::ng-deep .hopscotch-content img{width:150px;margin:20px 0}::ng-deep .hopscotch-content p{font-size:16px;color:#555}::ng-deep .hopscotch-step-title{text-align:left;margin-bottom:15px}::ng-deep .hopscotch-step-content{padding:20px;text-align:left!important}::ng-deep .hopscotch-step-content p{font-size:14px;color:#555;margin-bottom:10px;text-align:left!important}\n"], dependencies: [{ kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i3$
|
|
325
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", 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: ["::ng-deep .hopscotch-title{text-align:center!important;margin-bottom:20px!important}::ng-deep .hopscotch-title h2{margin:0}::ng-deep .hopscotch-content{text-align:center;padding:20px;margin:0!important}::ng-deep .hopscotch-content img{width:150px;margin:20px 0}::ng-deep .hopscotch-content p{font-size:16px;color:#555}::ng-deep .hopscotch-step-title{text-align:left;margin-bottom:15px}::ng-deep .hopscotch-step-content{padding:20px;text-align:left!important}::ng-deep .hopscotch-step-content p{font-size:14px;color:#555;margin-bottom:10px;text-align:left!important}\n"], dependencies: [{ kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i3$2.LazyImgDirective, selector: "img" }, { kind: "component", type: UserFeedbackComponent, selector: "pw-user-feedback" }, { kind: "pipe", type: i6.TranslocoPipe, name: "transloco" }] }); }
|
|
371
326
|
}
|
|
372
327
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: HomeComponent, decorators: [{
|
|
373
328
|
type: Component,
|
|
374
329
|
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", styles: ["::ng-deep .hopscotch-title{text-align:center!important;margin-bottom:20px!important}::ng-deep .hopscotch-title h2{margin:0}::ng-deep .hopscotch-content{text-align:center;padding:20px;margin:0!important}::ng-deep .hopscotch-content img{width:150px;margin:20px 0}::ng-deep .hopscotch-content p{font-size:16px;color:#555}::ng-deep .hopscotch-step-title{text-align:left;margin-bottom:15px}::ng-deep .hopscotch-step-content{padding:20px;text-align:left!important}::ng-deep .hopscotch-step-content p{font-size:14px;color:#555;margin-bottom:10px;text-align:left!important}\n"] }]
|
|
375
330
|
}], ctorParameters: () => [{ type: i0.Injector }, { type: i1.HopscotchService }] });
|
|
376
331
|
|
|
377
|
-
class NavbarComponent extends AppBaseComponent {
|
|
378
|
-
static { this.organisationSubject = new BehaviorSubject(JSON.parse(localStorage.getItem('organisation') || '{}')); }
|
|
379
|
-
static { this.organisation$ = NavbarComponent.organisationSubject.asObservable(); }
|
|
380
|
-
constructor(injector, notificationService, config, scriptLoader, store) {
|
|
381
|
-
super(injector);
|
|
382
|
-
this.notificationService = notificationService;
|
|
383
|
-
this.scriptLoader = scriptLoader;
|
|
384
|
-
this.store = store;
|
|
385
|
-
this.notificationCount = 0;
|
|
386
|
-
this.noNoti = true;
|
|
387
|
-
this.languages = [
|
|
388
|
-
{ label: 'English', value: 'en' },
|
|
389
|
-
{ label: 'Spanish', value: 'es' },
|
|
390
|
-
{ label: 'German', value: 'de' },
|
|
391
|
-
{ label: 'Portuguese', value: 'pt' }
|
|
392
|
-
];
|
|
393
|
-
this.notifications = [];
|
|
394
|
-
this.selectedLanguage = 'en';
|
|
395
|
-
this.loadExternalScripts();
|
|
396
|
-
config.autoClose = false;
|
|
397
|
-
this.store.select(getUser).subscribe(res => {
|
|
398
|
-
this.slug = res.currentUser ? res.currentUser.slug : '';
|
|
399
|
-
});
|
|
400
|
-
this.getNotifications();
|
|
401
|
-
this.updateNotifications();
|
|
402
|
-
}
|
|
403
|
-
ngOnDestroy() {
|
|
404
|
-
if (this.organisationSubscription) {
|
|
405
|
-
this.organisationSubscription.unsubscribe();
|
|
406
|
-
console.log('Unsubscribed from organisation updates');
|
|
407
|
-
}
|
|
408
|
-
clearInterval(this.notiInterval);
|
|
409
|
-
}
|
|
410
|
-
handleDropdownOpen() {
|
|
411
|
-
this.subscribeToOrganisation();
|
|
412
|
-
}
|
|
413
|
-
handleDropdownClose() {
|
|
414
|
-
this.unsubscribeFromOrganisation();
|
|
415
|
-
}
|
|
416
|
-
get isSupportMenu() {
|
|
417
|
-
return PermissionService.selectedProduct?.gitlab_service_desk_email;
|
|
418
|
-
}
|
|
419
|
-
get isDocumentationMenu() {
|
|
420
|
-
this.showDocumentation = PermissionService.selectedProduct?.documentation_url;
|
|
421
|
-
return this.showDocumentation;
|
|
422
|
-
}
|
|
423
|
-
navigateToDocumentation() {
|
|
424
|
-
this.router.navigate([this.userSlug, 'documentation'], {
|
|
425
|
-
state: { documentation_url: this.showDocumentation }
|
|
426
|
-
});
|
|
427
|
-
}
|
|
428
|
-
subscribeToOrganisation() {
|
|
429
|
-
if (this.organisationSubscription) {
|
|
430
|
-
return;
|
|
431
|
-
}
|
|
432
|
-
this.organisationSubscription = NavbarComponent.organisation$.subscribe(organisation => {
|
|
433
|
-
console.log('Organisation updated:', organisation);
|
|
434
|
-
this.isAdmin =
|
|
435
|
-
PermissionService.selectedSubscription?.is_subscription_admin ??
|
|
436
|
-
PermissionService.selectedSubscription?.is_subscription_owner;
|
|
437
|
-
this.userSlug = organisation?.slug ?? '';
|
|
438
|
-
});
|
|
439
|
-
}
|
|
440
|
-
/**
|
|
441
|
-
* Unsubscribe from organisation$
|
|
442
|
-
*/
|
|
443
|
-
unsubscribeFromOrganisation() {
|
|
444
|
-
if (this.organisationSubscription) {
|
|
445
|
-
this.organisationSubscription.unsubscribe();
|
|
446
|
-
this.organisationSubscription = null;
|
|
447
|
-
console.log('Unsubscribed from organisation updates');
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
loadExternalScripts() {
|
|
451
|
-
this.scriptLoader.loadScripts('head', [
|
|
452
|
-
'https://cdnjs.cloudflare.com/ajax/libs/jstree/3.3.11/jstree.min.js',
|
|
453
|
-
'https://cdnjs.cloudflare.com/ajax/libs/quill/1.3.7/quill.min.js',
|
|
454
|
-
'https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js'
|
|
455
|
-
], true);
|
|
456
|
-
this.scriptLoader.loadStyle('https://cdnjs.cloudflare.com/ajax/libs/jstree/3.3.11/themes/default/style.min.css');
|
|
457
|
-
}
|
|
458
|
-
getNotifications() {
|
|
459
|
-
this.notificationService.getNotifications({ page: 1, page_size: 200 }).subscribe(data => {
|
|
460
|
-
this.notificationsCount(data?.notes);
|
|
461
|
-
this.notificationService.notiWebSocket().subscribe(res => {
|
|
462
|
-
if (res) {
|
|
463
|
-
this.notificationsCount([res]);
|
|
464
|
-
}
|
|
465
|
-
});
|
|
466
|
-
if (data?.notes?.length > 0) {
|
|
467
|
-
this.notificationService.showNotifications(this.notifications);
|
|
468
|
-
}
|
|
469
|
-
});
|
|
470
|
-
}
|
|
471
|
-
notificationsCount(noti) {
|
|
472
|
-
noti = Array.isArray(noti) ? noti : Array.from(noti || []);
|
|
473
|
-
for (const notification of noti) {
|
|
474
|
-
if (!notification?.dismissed && notification.show_on_dashboard) {
|
|
475
|
-
this.notifications.push(notification);
|
|
476
|
-
}
|
|
477
|
-
if (notification.unread === true) {
|
|
478
|
-
this.notificationCount++;
|
|
479
|
-
}
|
|
480
|
-
if (notification.dismissed === false) {
|
|
481
|
-
this.noNoti = false;
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
this.sortNotifications();
|
|
485
|
-
}
|
|
486
|
-
sortNotifications() {
|
|
487
|
-
this.notifications = orderBy(this.notifications, ['id'], ['desc']);
|
|
488
|
-
}
|
|
489
|
-
updateNotifications() {
|
|
490
|
-
this.notificationService.getNotifications({ page: 1, page_size: 200 }).subscribe(data => {
|
|
491
|
-
const val = data?.notes;
|
|
492
|
-
if (val.length > 0) {
|
|
493
|
-
val.forEach(element => {
|
|
494
|
-
const existNotification = this.notifications.find(({ id }) => element.id === id);
|
|
495
|
-
if (!existNotification) {
|
|
496
|
-
if (!element.dismissed && element.show_on_dashboard) {
|
|
497
|
-
this.notifications.push(element);
|
|
498
|
-
}
|
|
499
|
-
if (element.unread === true) {
|
|
500
|
-
this.notificationCount++;
|
|
501
|
-
}
|
|
502
|
-
if (element.dismissed === false) {
|
|
503
|
-
this.noNoti = false;
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
});
|
|
507
|
-
}
|
|
508
|
-
this.sortNotifications();
|
|
509
|
-
});
|
|
510
|
-
}
|
|
511
|
-
checkNoti() {
|
|
512
|
-
if (this.notiDrop.isOpen()) {
|
|
513
|
-
// Mark all Notifications as read
|
|
514
|
-
this.notificationService.readNotifications().subscribe(() => {
|
|
515
|
-
this.notificationCount = 0;
|
|
516
|
-
});
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
dismiss(id, _e) {
|
|
520
|
-
this.notificationService.dismissNotification(id).subscribe(data => {
|
|
521
|
-
// Remove notification from notification array
|
|
522
|
-
// TODO: Add animation while removing
|
|
523
|
-
const index = this.notifications.findIndex(x => x.id === id);
|
|
524
|
-
this.notifications.splice(index, 1);
|
|
525
|
-
if (data) {
|
|
526
|
-
const val = JSON.parse(data);
|
|
527
|
-
if (val.length > 0) {
|
|
528
|
-
val.forEach(element => {
|
|
529
|
-
const existNotification = this.notifications.find(({ key }) => element.id === key);
|
|
530
|
-
if (!existNotification) {
|
|
531
|
-
this.notifications.push(element);
|
|
532
|
-
if (element.unread === true) {
|
|
533
|
-
this.notificationCount++;
|
|
534
|
-
}
|
|
535
|
-
}
|
|
536
|
-
});
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
if (this.notifications.length === 0) {
|
|
540
|
-
this.noNoti = true;
|
|
541
|
-
}
|
|
542
|
-
this.sortNotifications();
|
|
543
|
-
});
|
|
544
|
-
}
|
|
545
|
-
onLangChange(lang) {
|
|
546
|
-
this.translation.setActiveLang(lang);
|
|
547
|
-
}
|
|
548
|
-
logout() {
|
|
549
|
-
this.router.navigate(['logout']);
|
|
550
|
-
}
|
|
551
|
-
redirectToNotification() {
|
|
552
|
-
this.notiDrop.close();
|
|
553
|
-
this.router.navigate(['/notifications']);
|
|
554
|
-
}
|
|
555
|
-
onSearch(search) {
|
|
556
|
-
if (search.value) {
|
|
557
|
-
this.router.navigate(['search'], { queryParams: { keyword: search.value } });
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NavbarComponent, deps: [{ token: i0.Injector }, { token: i1.NotificationService }, { token: i1$2.NgbDropdownConfig }, { token: i1.ScriptLoaderService }, { token: i3$3.Store }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
561
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", 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 role=\"presentation\"\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 <p-dropdown\n [options]=\"languages\"\n class=\"language-dropdown\"\n (onChange)=\"onLangChange($event.value)\"\n optionLabel=\"label\"\n optionValue=\"value\"\n [(ngModel)]=\"selectedLanguage\"\n placeholder=\"Select Language\">\n </p-dropdown>\n\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)\" aria-label=\"Dismiss Notifications\">\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 #dropdownRef=\"ngbDropdown\"\n placement=\"bottom-left\"\n autoClose=\"true\"\n (openChange)=\"($event ? handleDropdownOpen() : handleDropdownClose())\">\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 [attr.aria-expanded]=\"dropdownRef.isOpen()\"\n style=\"border: none\"\n ngbDropdownToggle>\n <i class=\"ft-user font-medium-3 blue-grey darken-4\" aria-hidden=\"true\"></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 *ngIf=\"isAdmin\"\n [routerLink]=\"userSlug + '/enterprise/members'\">\n <i class=\"fa ft-users me-2\" aria-hidden=\"true\"></i> <span>Members</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> Support</span>\n </button>\n <button *ngIf=\"isDocumentationMenu\"\n class=\"dropdown-item py-2\"\n (click)=\"navigateToDocumentation()\">\n <i class=\"fa fa-file-alt me-2\" aria-hidden=\"true\"></i>\n <span> Documentation</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$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i6$1.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.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: i2.Dropdown, selector: "p-dropdown", inputs: ["id", "scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "variant", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "disabled", "itemSize", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "filterValue", "options"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "directive", type: i3$1.LazyImgDirective, selector: "img" }, { kind: "directive", type: i3$1.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: i5.SinceAgoPipe, name: "sinceAgo" }] }); }
|
|
562
|
-
}
|
|
563
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NavbarComponent, decorators: [{
|
|
564
|
-
type: Component,
|
|
565
|
-
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 role=\"presentation\"\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 <p-dropdown\n [options]=\"languages\"\n class=\"language-dropdown\"\n (onChange)=\"onLangChange($event.value)\"\n optionLabel=\"label\"\n optionValue=\"value\"\n [(ngModel)]=\"selectedLanguage\"\n placeholder=\"Select Language\">\n </p-dropdown>\n\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)\" aria-label=\"Dismiss Notifications\">\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 #dropdownRef=\"ngbDropdown\"\n placement=\"bottom-left\"\n autoClose=\"true\"\n (openChange)=\"($event ? handleDropdownOpen() : handleDropdownClose())\">\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 [attr.aria-expanded]=\"dropdownRef.isOpen()\"\n style=\"border: none\"\n ngbDropdownToggle>\n <i class=\"ft-user font-medium-3 blue-grey darken-4\" aria-hidden=\"true\"></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 *ngIf=\"isAdmin\"\n [routerLink]=\"userSlug + '/enterprise/members'\">\n <i class=\"fa ft-users me-2\" aria-hidden=\"true\"></i> <span>Members</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> Support</span>\n </button>\n <button *ngIf=\"isDocumentationMenu\"\n class=\"dropdown-item py-2\"\n (click)=\"navigateToDocumentation()\">\n <i class=\"fa fa-file-alt me-2\" aria-hidden=\"true\"></i>\n <span> Documentation</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"] }]
|
|
566
|
-
}], ctorParameters: () => [{ type: i0.Injector }, { type: i1.NotificationService }, { type: i1$2.NgbDropdownConfig }, { type: i1.ScriptLoaderService }, { type: i3$3.Store }], propDecorators: { logo: [{
|
|
567
|
-
type: Input
|
|
568
|
-
}], notiDrop: [{
|
|
569
|
-
type: ViewChild,
|
|
570
|
-
args: ['notiDrop', { static: true }]
|
|
571
|
-
}] } });
|
|
572
|
-
|
|
573
332
|
class CurrentNotificationsComponent {
|
|
574
333
|
constructor(notificationService) {
|
|
575
334
|
this.notificationService = notificationService;
|
|
@@ -632,7 +391,7 @@ class CurrentNotificationsComponent {
|
|
|
632
391
|
return item.id;
|
|
633
392
|
}
|
|
634
393
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CurrentNotificationsComponent, deps: [{ token: i1.NotificationService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
635
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", 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 (keydown.enter)=\"dismiss(item.id, item)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n </span>\n </li>\n </ul>\n </div>\n <div class=\"pagination-container d-flex justify-content-between align-items-center mt-3 mb-3\">\n <span class=\"total-records-count\">{{ 'Label.Total' | transloco }}: {{ totalRecords }}</span>\n <div class=\"d-flex align-items-center\">\n <button class=\"btn btn-outline-primary me-2\" (click)=\"previousPage()\" [disabled]=\"currentPage === 1\">\n <i class=\"fas fa-chevron-left\"></i>\n </button>\n <span>Page {{ currentPage }} of {{ totalPages }}</span>\n <button class=\"btn btn-outline-primary ms-2\" (click)=\"nextPage()\" [disabled]=\"currentPage === totalPages\">\n <i class=\"fas fa-chevron-right\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"col-12 col-sm-12 col-md-12\"\n *ngIf=\"noNoti && isLoaded\">\n <pw-no-data [withImage]=\"true\" message=\"You are all caught up\" description=\"You currently do not have any notifications.\">\n </pw-no-data>\n </div>\n</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}}.pagination-container{padding:0 1rem}\n"], dependencies: [{ kind: "directive", type: i2$
|
|
394
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", 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 (keydown.enter)=\"dismiss(item.id, item)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n </span>\n </li>\n </ul>\n </div>\n <div class=\"pagination-container d-flex justify-content-between align-items-center mt-3 mb-3\">\n <span class=\"total-records-count\">{{ 'Label.Total' | transloco }}: {{ totalRecords }}</span>\n <div class=\"d-flex align-items-center\">\n <button class=\"btn btn-outline-primary me-2\" (click)=\"previousPage()\" [disabled]=\"currentPage === 1\">\n <i class=\"fas fa-chevron-left\"></i>\n </button>\n <span>Page {{ currentPage }} of {{ totalPages }}</span>\n <button class=\"btn btn-outline-primary ms-2\" (click)=\"nextPage()\" [disabled]=\"currentPage === totalPages\">\n <i class=\"fas fa-chevron-right\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"col-12 col-sm-12 col-md-12\"\n *ngIf=\"noNoti && isLoaded\">\n <pw-no-data [withImage]=\"true\" message=\"You are all caught up\" description=\"You currently do not have any notifications.\">\n </pw-no-data>\n </div>\n</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}}.pagination-container{padding:0 1rem}\n"], dependencies: [{ kind: "directive", type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.ProgressSpinner, selector: "p-progressSpinner", inputs: ["styleClass", "style", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }, { kind: "component", type: i4.NoDataComponent, selector: "pw-no-data", inputs: ["message", "description", "withImage"] }, { kind: "pipe", type: i5.SinceAgoPipe, name: "sinceAgo" }, { kind: "pipe", type: i6.TranslocoPipe, name: "transloco" }] }); }
|
|
636
395
|
}
|
|
637
396
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CurrentNotificationsComponent, decorators: [{
|
|
638
397
|
type: Component,
|
|
@@ -715,7 +474,7 @@ class DismissedNotificationsComponent {
|
|
|
715
474
|
return item.id;
|
|
716
475
|
}
|
|
717
476
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: DismissedNotificationsComponent, deps: [{ token: i1.NotificationService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
718
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", 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 (keydown.enter)=\"dismiss(item.id, item)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n <button class=\"btn float-end\">\n <i\n class=\"fas fa-trash-restore-alt\"\n (click)=\"restoreNotification(item.id, item)\"\n (keydown.enter)=\"restoreNotification(item.id, item)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n </span>\n </li>\n </ul>\n </div>\n <div class=\"pagination-container d-flex justify-content-between align-items-center mt-3 mb-3\">\n <span class=\"total-records-count\">{{ 'Label.Total' | transloco }}: {{ totalRecords }}</span>\n <div class=\"d-flex align-items-center\">\n <button class=\"btn btn-outline-primary me-2\" (click)=\"previousPage()\" [disabled]=\"currentPage === 1\">\n <i class=\"fas fa-chevron-left\"></i>\n </button>\n <span>Page {{ currentPage }} of {{ totalPages }}</span>\n <button class=\"btn btn-outline-primary ms-2\" (click)=\"nextPage()\" [disabled]=\"currentPage === totalPages\">\n <i class=\"fas fa-chevron-right\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"col-12 col-sm-12 col-md-12\"\n *ngIf=\"noNoti && isLoaded\">\n <pw-no-data [withImage]=\"true\" message=\"You currently do not have any dismissed notifications\">\n</pw-no-data>\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}}.pagination-container{padding:0 1rem}\n"], dependencies: [{ kind: "directive", type: i2$
|
|
477
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", 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 (keydown.enter)=\"dismiss(item.id, item)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n <button class=\"btn float-end\">\n <i\n class=\"fas fa-trash-restore-alt\"\n (click)=\"restoreNotification(item.id, item)\"\n (keydown.enter)=\"restoreNotification(item.id, item)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n </span>\n </li>\n </ul>\n </div>\n <div class=\"pagination-container d-flex justify-content-between align-items-center mt-3 mb-3\">\n <span class=\"total-records-count\">{{ 'Label.Total' | transloco }}: {{ totalRecords }}</span>\n <div class=\"d-flex align-items-center\">\n <button class=\"btn btn-outline-primary me-2\" (click)=\"previousPage()\" [disabled]=\"currentPage === 1\">\n <i class=\"fas fa-chevron-left\"></i>\n </button>\n <span>Page {{ currentPage }} of {{ totalPages }}</span>\n <button class=\"btn btn-outline-primary ms-2\" (click)=\"nextPage()\" [disabled]=\"currentPage === totalPages\">\n <i class=\"fas fa-chevron-right\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"col-12 col-sm-12 col-md-12\"\n *ngIf=\"noNoti && isLoaded\">\n <pw-no-data [withImage]=\"true\" message=\"You currently do not have any dismissed notifications\">\n</pw-no-data>\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}}.pagination-container{padding:0 1rem}\n"], dependencies: [{ kind: "directive", type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.ProgressSpinner, selector: "p-progressSpinner", inputs: ["styleClass", "style", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }, { kind: "component", type: i4.NoDataComponent, selector: "pw-no-data", inputs: ["message", "description", "withImage"] }, { kind: "pipe", type: i5.SinceAgoPipe, name: "sinceAgo" }, { kind: "pipe", type: i6.TranslocoPipe, name: "transloco" }] }); }
|
|
719
478
|
}
|
|
720
479
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: DismissedNotificationsComponent, decorators: [{
|
|
721
480
|
type: Component,
|
|
@@ -771,77 +530,19 @@ class SearchComponent {
|
|
|
771
530
|
return item.id;
|
|
772
531
|
}
|
|
773
532
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SearchComponent, deps: [{ token: i1$1.ActivatedRoute }, { token: i1.DashboardService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
774
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", 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=\"w-100 text-center mt-3\"\n *ngIf=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n <div class=\"row faqlist search-result\" *ngIf=\"isLoaded\">\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=\"text-uppercase mt-3 p-1\">{{ group }}</h6>\n <div class=\"dashboard\">\n <div class=\"faq-item\"\n *ngFor=\"\n let user of result[group];\n let idx1 = index;\n trackBy: trackByUserId\n \">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n\n <a aria-label=\"Navigate to Target\"\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=\"Male Icon\"\n (error)=\"handleImageError($event, '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 </ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'faqs'\">\n <ng-container *ngIf=\"result[group].length\">\n <h6>\n {{ group | uppercase }}\n </h6>\n <div class=\"faq-item\"\n *ngFor=\"\n let faq of result[group];\n let idx2 = index;\n trackBy: trackByFaqId\n \">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a aria-label=\"Navigate to Target\"\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 </ng-container>\n </ng-container>\n </div>\n <pw-no-data [withImage]=\"true\" [message]=\"'Search.NoDataMessage' | transloco\" [description]=\"'Search.NoDataDescription' | transloco\"\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_sub_bg: rgb(70, 136, 236);--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:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.faq-search-answer a{color:#144086;display:inline-block;float:right;font-size:14px;margin-right:15px}::ng-deep .ql-snow *{font-size:16px!important}.faq-search-answer a:after{right:-10px}.faq-item{border:1px dashed rgba(0,0,0,.1);background-color:#fff;border-radius:3px;margin:10px 0;transition:all .2s ease-in-out}.faq-item .dashboard-header{background:#fff}.accord-title1 .faq-search-answer a{margin-right:0!important}a.accordion-toggle:after{display:none}.accord-title p.title-font{font-size:.8rem}.panel-collapse.show{border-top:1px dashed rgba(0,0,0,.1);padding-top:20px;padding-bottom:20px}.panel-collapse ul{margin-bottom:1rem}.panel-collapse ul.name-fl li{display:inline-block;padding-right:15px}.view-btn a{display:inline-block}.avatar{width:130px;margin:0 auto;display:block}.accordion-title a{color:var(--sidebar_bg)!important}.card-header h1,.card-header p{color:#fff!important}.card .accordion-toggle:before{content:\"\\f078\"}.card .accordion-toggle.collapsed{transition:all .3s ease-in-out}.card .accordion-toggle.collapsed:before{content:\"\\f054\"}.card-block p{font-size:16px}.card,h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.ql-container{resize:none!important;max-width:1000px;margin:0 auto}\n"], dependencies: [{ kind: "directive", type: i2$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2$2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i3$2.ProgressSpinner, selector: "p-progressSpinner", inputs: ["styleClass", "style", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }, { kind: "component", type: i4.NoDataComponent, selector: "pw-no-data", inputs: ["message", "description", "withImage"] }, { kind: "directive", type: i3$1.LazyImgDirective, selector: "img" }, { kind: "pipe", type: i2$2.UpperCasePipe, name: "uppercase" }, { kind: "pipe", type: i5.DOMSanitizerPipe, name: "safe" }, { kind: "pipe", type: i6.TranslocoPipe, name: "transloco" }] }); }
|
|
533
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", 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=\"w-100 text-center mt-3\"\n *ngIf=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n <div class=\"row faqlist search-result\" *ngIf=\"isLoaded\">\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=\"text-uppercase mt-3 p-1\">{{ group }}</h6>\n <div class=\"dashboard\">\n <div class=\"faq-item\"\n *ngFor=\"\n let user of result[group];\n let idx1 = index;\n trackBy: trackByUserId\n \">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n\n <a aria-label=\"Navigate to Target\"\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=\"Male Icon\"\n (error)=\"handleImageError($event, '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 </ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'faqs'\">\n <ng-container *ngIf=\"result[group].length\">\n <h6>\n {{ group | uppercase }}\n </h6>\n <div class=\"faq-item\"\n *ngFor=\"\n let faq of result[group];\n let idx2 = index;\n trackBy: trackByFaqId\n \">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a aria-label=\"Navigate to Target\"\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 no-border\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer |safe:'html'\">\n </div>\n </div>\n </ng-container>\n </div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n <pw-no-data [withImage]=\"true\" [message]=\"'Search.NoDataMessage' | transloco\" [description]=\"'Search.NoDataDescription' | transloco\"\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_sub_bg: rgb(70, 136, 236);--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:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.faq-search-answer a{color:#144086;display:inline-block;float:right;font-size:14px;margin-right:15px}::ng-deep .ql-snow *{font-size:16px!important}.faq-search-answer a:after{right:-10px}.faq-item{border:1px dashed rgba(0,0,0,.1);background-color:#fff;border-radius:3px;margin:10px 0;transition:all .2s ease-in-out}.faq-item .dashboard-header{background:#fff}.accord-title1 .faq-search-answer a{margin-right:0!important}a.accordion-toggle:after{display:none}.accord-title p.title-font{font-size:.8rem}.panel-collapse.show{border-top:1px dashed rgba(0,0,0,.1);padding-top:20px;padding-bottom:20px}.panel-collapse ul{margin-bottom:1rem}.panel-collapse ul.name-fl li{display:inline-block;padding-right:15px}.view-btn a{display:inline-block}.avatar{width:130px;margin:0 auto;display:block}.accordion-title a{color:var(--sidebar_bg)!important}.card-header h1,.card-header p{color:#fff!important}.card .accordion-toggle:before{content:\"\\f078\"}.card .accordion-toggle.collapsed{transition:all .3s ease-in-out}.card .accordion-toggle.collapsed:before{content:\"\\f054\"}.card-block p{font-size:16px}.card,h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.ql-container{resize:none!important;max-width:1000px;margin:0 auto}\n"], dependencies: [{ kind: "directive", type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i3.ProgressSpinner, selector: "p-progressSpinner", inputs: ["styleClass", "style", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }, { kind: "component", type: i4.NoDataComponent, selector: "pw-no-data", inputs: ["message", "description", "withImage"] }, { kind: "directive", type: i3$2.LazyImgDirective, selector: "img" }, { kind: "pipe", type: i2$1.UpperCasePipe, name: "uppercase" }, { kind: "pipe", type: i5.DOMSanitizerPipe, name: "safe" }, { kind: "pipe", type: i6.TranslocoPipe, name: "transloco" }] }); }
|
|
775
534
|
}
|
|
776
535
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SearchComponent, decorators: [{
|
|
777
536
|
type: Component,
|
|
778
|
-
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=\"w-100 text-center mt-3\"\n *ngIf=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n <div class=\"row faqlist search-result\" *ngIf=\"isLoaded\">\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=\"text-uppercase mt-3 p-1\">{{ group }}</h6>\n <div class=\"dashboard\">\n <div class=\"faq-item\"\n *ngFor=\"\n let user of result[group];\n let idx1 = index;\n trackBy: trackByUserId\n \">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n\n <a aria-label=\"Navigate to Target\"\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=\"Male Icon\"\n (error)=\"handleImageError($event, '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 </ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'faqs'\">\n <ng-container *ngIf=\"result[group].length\">\n <h6>\n {{ group | uppercase }}\n </h6>\n <div class=\"faq-item\"\n *ngFor=\"\n let faq of result[group];\n let idx2 = index;\n trackBy: trackByFaqId\n \">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a aria-label=\"Navigate to Target\"\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 </ng-container>\n </ng-container>\n </div>\n <pw-no-data [withImage]=\"true\" [message]=\"'Search.NoDataMessage' | transloco\" [description]=\"'Search.NoDataDescription' | transloco\"\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_sub_bg: rgb(70, 136, 236);--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:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.faq-search-answer a{color:#144086;display:inline-block;float:right;font-size:14px;margin-right:15px}::ng-deep .ql-snow *{font-size:16px!important}.faq-search-answer a:after{right:-10px}.faq-item{border:1px dashed rgba(0,0,0,.1);background-color:#fff;border-radius:3px;margin:10px 0;transition:all .2s ease-in-out}.faq-item .dashboard-header{background:#fff}.accord-title1 .faq-search-answer a{margin-right:0!important}a.accordion-toggle:after{display:none}.accord-title p.title-font{font-size:.8rem}.panel-collapse.show{border-top:1px dashed rgba(0,0,0,.1);padding-top:20px;padding-bottom:20px}.panel-collapse ul{margin-bottom:1rem}.panel-collapse ul.name-fl li{display:inline-block;padding-right:15px}.view-btn a{display:inline-block}.avatar{width:130px;margin:0 auto;display:block}.accordion-title a{color:var(--sidebar_bg)!important}.card-header h1,.card-header p{color:#fff!important}.card .accordion-toggle:before{content:\"\\f078\"}.card .accordion-toggle.collapsed{transition:all .3s ease-in-out}.card .accordion-toggle.collapsed:before{content:\"\\f054\"}.card-block p{font-size:16px}.card,h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.ql-container{resize:none!important;max-width:1000px;margin:0 auto}\n"] }]
|
|
537
|
+
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=\"w-100 text-center mt-3\"\n *ngIf=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n <div class=\"row faqlist search-result\" *ngIf=\"isLoaded\">\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=\"text-uppercase mt-3 p-1\">{{ group }}</h6>\n <div class=\"dashboard\">\n <div class=\"faq-item\"\n *ngFor=\"\n let user of result[group];\n let idx1 = index;\n trackBy: trackByUserId\n \">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n\n <a aria-label=\"Navigate to Target\"\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=\"Male Icon\"\n (error)=\"handleImageError($event, '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 </ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'faqs'\">\n <ng-container *ngIf=\"result[group].length\">\n <h6>\n {{ group | uppercase }}\n </h6>\n <div class=\"faq-item\"\n *ngFor=\"\n let faq of result[group];\n let idx2 = index;\n trackBy: trackByFaqId\n \">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a aria-label=\"Navigate to Target\"\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 no-border\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer |safe:'html'\">\n </div>\n </div>\n </ng-container>\n </div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n <pw-no-data [withImage]=\"true\" [message]=\"'Search.NoDataMessage' | transloco\" [description]=\"'Search.NoDataDescription' | transloco\"\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_sub_bg: rgb(70, 136, 236);--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:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.faq-search-answer a{color:#144086;display:inline-block;float:right;font-size:14px;margin-right:15px}::ng-deep .ql-snow *{font-size:16px!important}.faq-search-answer a:after{right:-10px}.faq-item{border:1px dashed rgba(0,0,0,.1);background-color:#fff;border-radius:3px;margin:10px 0;transition:all .2s ease-in-out}.faq-item .dashboard-header{background:#fff}.accord-title1 .faq-search-answer a{margin-right:0!important}a.accordion-toggle:after{display:none}.accord-title p.title-font{font-size:.8rem}.panel-collapse.show{border-top:1px dashed rgba(0,0,0,.1);padding-top:20px;padding-bottom:20px}.panel-collapse ul{margin-bottom:1rem}.panel-collapse ul.name-fl li{display:inline-block;padding-right:15px}.view-btn a{display:inline-block}.avatar{width:130px;margin:0 auto;display:block}.accordion-title a{color:var(--sidebar_bg)!important}.card-header h1,.card-header p{color:#fff!important}.card .accordion-toggle:before{content:\"\\f078\"}.card .accordion-toggle.collapsed{transition:all .3s ease-in-out}.card .accordion-toggle.collapsed:before{content:\"\\f054\"}.card-block p{font-size:16px}.card,h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.ql-container{resize:none!important;max-width:1000px;margin:0 auto}\n"] }]
|
|
779
538
|
}], ctorParameters: () => [{ type: i1$1.ActivatedRoute }, { type: i1.DashboardService }] });
|
|
780
539
|
|
|
781
|
-
class UserNotificationsComponent extends AppBaseComponent {
|
|
782
|
-
constructor(injector, commonService) {
|
|
783
|
-
super(injector);
|
|
784
|
-
this.commonService = commonService;
|
|
785
|
-
this.notifications = [];
|
|
786
|
-
this.notifier = new Subject();
|
|
787
|
-
this.isHomePage = true;
|
|
788
|
-
this.previousUrl = null;
|
|
789
|
-
this.currentUrl = null;
|
|
790
|
-
}
|
|
791
|
-
ngOnInit() {
|
|
792
|
-
this.getUserNotifications();
|
|
793
|
-
this.isHomePage = this.router.url.includes('home');
|
|
794
|
-
this.router.events
|
|
795
|
-
.pipe(takeUntil$1(this.notifier.pipe(filter((event) => event instanceof NavigationEnd))))
|
|
796
|
-
.subscribe((event) => {
|
|
797
|
-
if (event instanceof NavigationEnd) {
|
|
798
|
-
this.previousUrl = this.currentUrl;
|
|
799
|
-
this.currentUrl = event.url;
|
|
800
|
-
this.isHomePage = this.currentUrl.includes('home');
|
|
801
|
-
if (this.previousUrl !== this.currentUrl) {
|
|
802
|
-
this.getUserNotifications();
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
});
|
|
806
|
-
}
|
|
807
|
-
getUserNotifications() {
|
|
808
|
-
this.userService.getUserNotifications().subscribe(notifications => {
|
|
809
|
-
this.notifications = notifications;
|
|
810
|
-
});
|
|
811
|
-
}
|
|
812
|
-
hideNoty(id) {
|
|
813
|
-
const subscriptionId = PermissionService.selectedSubscription.id;
|
|
814
|
-
this.commonService
|
|
815
|
-
.userLoginNotification({
|
|
816
|
-
subscription_id: subscriptionId,
|
|
817
|
-
notification_id: id,
|
|
818
|
-
discarded: true
|
|
819
|
-
})
|
|
820
|
-
.subscribe(() => {
|
|
821
|
-
this.getUserNotifications();
|
|
822
|
-
});
|
|
823
|
-
}
|
|
824
|
-
ngOnDestroy() {
|
|
825
|
-
this.notifier.next('');
|
|
826
|
-
}
|
|
827
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: UserNotificationsComponent, deps: [{ token: i0.Injector }, { token: i1.CommonService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
828
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", 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-md-1 mb-0 mt-3 mt-md-0\"\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 aria-label=\"Disregard Notifications\"\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_sub_bg: rgb(70, 136, 236);--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$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$1.AnchorRouterDirective, selector: "[appAnchorRouter]" }, { kind: "pipe", type: i5.DOMSanitizerPipe, name: "safe" }] }); }
|
|
829
|
-
}
|
|
830
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: UserNotificationsComponent, decorators: [{
|
|
831
|
-
type: Component,
|
|
832
|
-
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-md-1 mb-0 mt-3 mt-md-0\"\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 aria-label=\"Disregard Notifications\"\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_sub_bg: rgb(70, 136, 236);--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"] }]
|
|
833
|
-
}], ctorParameters: () => [{ type: i0.Injector }, { type: i1.CommonService }] });
|
|
834
|
-
|
|
835
540
|
// Core Angular modules
|
|
836
541
|
class DashboardLibModule {
|
|
837
542
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: DashboardLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
838
543
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.11", ngImport: i0, type: DashboardLibModule, declarations: [HomeComponent,
|
|
839
544
|
UserFeedbackComponent,
|
|
840
545
|
NotificationsPageComponent,
|
|
841
|
-
FooterComponent,
|
|
842
|
-
NavbarComponent,
|
|
843
|
-
UserNotificationsComponent,
|
|
844
|
-
CustomizerComponent,
|
|
845
546
|
FaqComponent,
|
|
846
547
|
SearchComponent,
|
|
847
548
|
DocumentationComponent,
|
|
@@ -859,7 +560,7 @@ class DashboardLibModule {
|
|
|
859
560
|
NgbDropdownModule,
|
|
860
561
|
UserModuleModule,
|
|
861
562
|
RadioButtonModule,
|
|
862
|
-
ProgressSpinnerModule]
|
|
563
|
+
ProgressSpinnerModule] }); }
|
|
863
564
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: DashboardLibModule, providers: [SubscriptionService], imports: [CommonModule,
|
|
864
565
|
SharedComponentsModule,
|
|
865
566
|
FormsModule,
|
|
@@ -896,10 +597,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
|
|
|
896
597
|
HomeComponent,
|
|
897
598
|
UserFeedbackComponent,
|
|
898
599
|
NotificationsPageComponent,
|
|
899
|
-
FooterComponent,
|
|
900
|
-
NavbarComponent,
|
|
901
|
-
UserNotificationsComponent,
|
|
902
|
-
CustomizerComponent,
|
|
903
600
|
FaqComponent,
|
|
904
601
|
SearchComponent,
|
|
905
602
|
DocumentationComponent,
|
|
@@ -907,7 +604,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
|
|
|
907
604
|
DismissedNotificationsComponent,
|
|
908
605
|
FaqDetailsComponent
|
|
909
606
|
],
|
|
910
|
-
exports: [FooterComponent, NavbarComponent, UserNotificationsComponent, CustomizerComponent],
|
|
911
607
|
providers: [SubscriptionService],
|
|
912
608
|
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
|
913
609
|
}]
|
|
@@ -1303,5 +999,5 @@ const BLOG_MENU = {
|
|
|
1303
999
|
* Generated bundle index. Do not edit.
|
|
1304
1000
|
*/
|
|
1305
1001
|
|
|
1306
|
-
export { BLOG_MENU, CHAT_MENU, CurrentNotificationsComponent,
|
|
1002
|
+
export { BLOG_MENU, CHAT_MENU, CurrentNotificationsComponent, DashboardLibModule, DismissedNotificationsComponent, DocumentationComponent, ENTERPRISE_MENU, FAQ_Menu, FaqComponent, FaqDetailsComponent, HomeComponent, NotificationsPageComponent, ROUTES, SearchComponent, UserFeedbackComponent };
|
|
1307
1003
|
//# sourceMappingURL=posiwise-dashboard-module.mjs.map
|