@posiwise/dashboard-module 0.0.2
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/README.md +7 -0
- package/assets/scss/_bootstrap_modules.scss +40 -0
- package/assets/scss/_custom-bootstrap.scss +13 -0
- package/assets/scss/_dashboard.scss +31 -0
- package/assets/scss/_dynamic-styles.scss +534 -0
- package/assets/scss/_plugins.scss +3 -0
- package/assets/scss/_public-pages.scss +7 -0
- package/assets/scss/_shared.scss +3 -0
- package/assets/scss/_variables.scss +5 -0
- package/assets/scss/common/landing-page-a/landing-page-style-1.scss +670 -0
- package/assets/scss/common/landing-page-b/banner.scss +141 -0
- package/assets/scss/common/landing-page-b/contact-us.scss +167 -0
- package/assets/scss/common/landing-page-b/explainer.scss +75 -0
- package/assets/scss/common/landing-page-b/explainer2.scss +35 -0
- package/assets/scss/common/landing-page-b/header.scss +56 -0
- package/assets/scss/common/landing-page-b/landing-page-style-2.scss +20 -0
- package/assets/scss/custom-bootstrap/_badge.scss +468 -0
- package/assets/scss/custom-bootstrap/_bootstrap_variables.scss +30 -0
- package/assets/scss/custom-bootstrap/_buttons.scss +84 -0
- package/assets/scss/custom-bootstrap/_card.scss +319 -0
- package/assets/scss/custom-bootstrap/_carousel.scss +6 -0
- package/assets/scss/custom-bootstrap/_form_select.scss +7 -0
- package/assets/scss/custom-bootstrap/_forms.scss +337 -0
- package/assets/scss/custom-bootstrap/_links.scss +7 -0
- package/assets/scss/custom-bootstrap/_modal.scss +16 -0
- package/assets/scss/custom-bootstrap/_navbar.scss +42 -0
- package/assets/scss/custom-bootstrap/_popover.scss +10 -0
- package/assets/scss/custom-bootstrap/_progress.scss +12 -0
- package/assets/scss/custom-bootstrap/_reboot.scss +93 -0
- package/assets/scss/custom-bootstrap/_type.scss +202 -0
- package/assets/scss/dashboard/_admin.scss +15 -0
- package/assets/scss/dashboard/_animations.scss +20 -0
- package/assets/scss/dashboard/_bootstrap-social.scss +641 -0
- package/assets/scss/dashboard/_chat.scss +250 -0
- package/assets/scss/dashboard/_coming-soon.scss +34 -0
- package/assets/scss/dashboard/_components.scss +229 -0
- package/assets/scss/dashboard/_email.scss +184 -0
- package/assets/scss/dashboard/_fixed-navbar.scss +18 -0
- package/assets/scss/dashboard/_gallery.scss +1201 -0
- package/assets/scss/dashboard/_helper.scss +736 -0
- package/assets/scss/dashboard/_horizontal-timeline.scss +314 -0
- package/assets/scss/dashboard/_icons.scss +107 -0
- package/assets/scss/dashboard/_layout.scss +23 -0
- package/assets/scss/dashboard/_misc.scss +220 -0
- package/assets/scss/dashboard/_notifications.scss +27 -0
- package/assets/scss/dashboard/_palette.scss +308 -0
- package/assets/scss/dashboard/_profile.scss +36 -0
- package/assets/scss/dashboard/_responsive.scss +209 -0
- package/assets/scss/dashboard/_search.scss +33 -0
- package/assets/scss/dashboard/_select.scss +16 -0
- package/assets/scss/dashboard/_sidebar-content.scss +632 -0
- package/assets/scss/dashboard/_tables.scss +17 -0
- package/assets/scss/dashboard/_tabs.scss +151 -0
- package/assets/scss/dashboard/_ui-switch.scss +6 -0
- package/assets/scss/dashboard/_upload.scss +249 -0
- package/assets/scss/dashboard/_utilities.scss +105 -0
- package/assets/scss/dashboard/_vertical-timeline.scss +1261 -0
- package/assets/scss/dashboard/mixins/_buttons.scss +78 -0
- package/assets/scss/dashboard/mixins/_colors.scss +29 -0
- package/assets/scss/dashboard/mixins/_custom.scss +34 -0
- package/assets/scss/dashboard/mixins/_shadows.scss +62 -0
- package/assets/scss/dashboard/mixins/_type.scss +16 -0
- package/assets/scss/dashboard/mixins/_typography.scss +29 -0
- package/assets/scss/dashboard/mixins/_utilities.scss +129 -0
- package/assets/scss/dashboard/mixins/_vendor-prefixes.scss +71 -0
- package/assets/scss/plugins/_plugin-nouislider.scss +199 -0
- package/assets/scss/plugins/_toastr.scss +71 -0
- package/assets/scss/plugins/perfect-scrollbar/_main.scss +3 -0
- package/assets/scss/plugins/perfect-scrollbar/_mixins.scss +135 -0
- package/assets/scss/plugins/perfect-scrollbar/_ps-custom.scss +134 -0
- package/assets/scss/plugins/perfect-scrollbar/_themes.scss +23 -0
- package/assets/scss/plugins/perfect-scrollbar/_variables.scss +19 -0
- package/assets/scss/public-pages/_buttons.scss +136 -0
- package/assets/scss/public-pages/_input-fields.scss +29 -0
- package/assets/scss/public-pages/_layout.scss +108 -0
- package/assets/scss/public-pages/mixins/_buttons.scss +28 -0
- package/assets/scss/shared/_modal.scss +28 -0
- package/assets/scss/shared/_prime-ng-tables.scss +107 -0
- package/assets/scss/shared/_prime-ng.scss +5100 -0
- package/assets/scss/variables/_app-colors-variables.scss +760 -0
- package/assets/scss/variables/_branding-variables.scss +93 -0
- package/assets/scss/variables/_dashboard-variables.scss +96 -0
- package/assets/scss/variables/_generic-variables.scss +33 -0
- package/assets/scss/variables/_landing-page-new-variables.scss +11 -0
- package/assets/scss/variables/_primeng-variables.scss +190 -0
- package/esm2020/dashboard-module.mjs +5 -0
- package/esm2020/index.mjs +17 -0
- package/esm2020/lib/customizer/customizer.component.mjs +16 -0
- package/esm2020/lib/dashboard-routing.module.mjs +316 -0
- package/esm2020/lib/dashboard.module.mjs +99 -0
- package/esm2020/lib/faq/faq.component.mjs +105 -0
- package/esm2020/lib/faq-details/faq-details.component.mjs +33 -0
- package/esm2020/lib/footer/footer.component.mjs +22 -0
- package/esm2020/lib/home/home.component.mjs +78 -0
- package/esm2020/lib/navbar/navbar.component.mjs +157 -0
- package/esm2020/lib/notifications-page/current-notifications/current-notifications.component.mjs +56 -0
- package/esm2020/lib/notifications-page/dismissed-notifications/dismissed-notifications.component.mjs +71 -0
- package/esm2020/lib/notifications-page/notifications-page.component.mjs +14 -0
- package/esm2020/lib/search/search.component.mjs +44 -0
- package/esm2020/lib/sidebar/sidebar-routes.config.mjs +338 -0
- package/esm2020/lib/sidebar/sidebar.component.mjs +297 -0
- package/esm2020/lib/sidebar/sidebar.metadata.mjs +2 -0
- package/esm2020/lib/user-feedback/user-feedback.component.mjs +71 -0
- package/esm2020/lib/user-notifications/user-notifications.component.mjs +63 -0
- package/fesm2015/dashboard-module.mjs +1701 -0
- package/fesm2015/dashboard-module.mjs.map +1 -0
- package/fesm2020/dashboard-module.mjs +1682 -0
- package/fesm2020/dashboard-module.mjs.map +1 -0
- package/index.d.ts +16 -0
- package/lib/customizer/customizer.component.d.ts +7 -0
- package/lib/dashboard-routing.module.d.ts +7 -0
- package/lib/dashboard.module.d.ts +25 -0
- package/lib/faq/faq.component.d.ts +37 -0
- package/lib/faq-details/faq-details.component.d.ts +15 -0
- package/lib/footer/footer.component.d.ts +11 -0
- package/lib/home/home.component.d.ts +18 -0
- package/lib/navbar/navbar.component.d.ts +35 -0
- package/lib/notifications-page/current-notifications/current-notifications.component.d.ts +17 -0
- package/lib/notifications-page/dismissed-notifications/dismissed-notifications.component.d.ts +18 -0
- package/lib/notifications-page/notifications-page.component.d.ts +5 -0
- package/lib/search/search.component.d.ts +24 -0
- package/lib/sidebar/sidebar-routes.config.d.ts +64 -0
- package/lib/sidebar/sidebar.component.d.ts +55 -0
- package/lib/sidebar/sidebar.metadata.d.ts +15 -0
- package/lib/user-feedback/user-feedback.component.d.ts +23 -0
- package/lib/user-notifications/user-notifications.component.d.ts +20 -0
- package/package.json +47 -0
|
@@ -0,0 +1,1701 @@
|
|
|
1
|
+
import * as i2 from '@angular/common';
|
|
2
|
+
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { Component, NgModule, Input, ViewChild, EventEmitter, Inject, Output, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|
5
|
+
import * as i3 from '@angular/forms';
|
|
6
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
7
|
+
import * as i1$2 from '@ng-bootstrap/ng-bootstrap';
|
|
8
|
+
import { NgbDropdownConfig, NgbNavModule, NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';
|
|
9
|
+
import * as i1$1 from '@angular/router';
|
|
10
|
+
import { RouterModule, NavigationEnd } from '@angular/router';
|
|
11
|
+
import groupBy from 'lodash/groupBy';
|
|
12
|
+
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
13
|
+
import * as i1 from '@posiwise/common-services';
|
|
14
|
+
import { PermissionService, SubscriptionService } from '@posiwise/common-services';
|
|
15
|
+
import sortBy from 'lodash/sortBy';
|
|
16
|
+
import moment from 'moment';
|
|
17
|
+
import * as i4 from '@ngneat/transloco';
|
|
18
|
+
import { HelperService } from '@posiwise/helper-service';
|
|
19
|
+
import { AccountComponent, AccountDetailsComponent, UserSubscriptionListComponent, AddSubscriptionComponent, UpdatePaymentDetailsComponent, UserSubscriptionDetailsComponent, UpgradeSubscriptionComponent, SubscriptionCredentialComponent, UserInvoiceComponent, UserProfilePageComponent, SettingsComponent, CommunicationTabComponent, SecurityTabComponent, OthersTabComponent, SupportComponent, SupportDetailsComponent, UserModuleModule } from '@posiwise/user-module';
|
|
20
|
+
import { SplashComponent, PrivacyPolicyComponent, TermsConditionsComponent, PrivacyAndTosComponent } from '@posiwise/shared-components';
|
|
21
|
+
import { getUser } from '@posiwise/app-store';
|
|
22
|
+
import { orderBy } from 'lodash';
|
|
23
|
+
import * as i3$1 from '@ngrx/store';
|
|
24
|
+
import cloneDeep from 'lodash/cloneDeep';
|
|
25
|
+
import isEqual from 'lodash/isEqual';
|
|
26
|
+
import uniqBy from 'lodash/uniqBy';
|
|
27
|
+
import { Subscription, timer, Subject, takeUntil, filter } from 'rxjs';
|
|
28
|
+
import { SOCKET_TYPE, ADMIN_SUB_MENU_WHITELIST } from '@posiwise/common-utilities';
|
|
29
|
+
import { CoreTranslocoModule } from '@posiwise/core-transloco';
|
|
30
|
+
|
|
31
|
+
class CustomizerComponent {
|
|
32
|
+
ngOnInit() {
|
|
33
|
+
// Customizer JS File
|
|
34
|
+
$.getScript('/assets/js/customizer.js');
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
CustomizerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CustomizerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
38
|
+
CustomizerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: CustomizerComponent, selector: "pw-customizer", ngImport: i0, template: "<!--Theme customizer Starts-->\n<div class=\"customizer border-left-blue-grey border-left-lighten-4 d-none d-sm-none d-md-block open\">\n <a class=\"customizer-close\">\n <i class=\"ft-x font-medium-3\" aria-hidden=\"true\"></i>\n </a>\n <a class=\"customizer-toggle bg-danger\"\n id=\"customizer-toggle-icon\">\n <i class=\"ft-settings font-medium-4 fa fa-spin white align-middle\" aria-hidden=\"true\"></i>\n </a>\n <div class=\"customizer-content p-3 ps-container ps-theme-dark\"\n data-ps-id=\"df6a5ce4-a175-9172-4402-dabd98fc9c0a\">\n <h4 class=\"text-uppercase mb-0 text-bold-400\">Theme Customizer</h4>\n <p>Customize & Preview in Real Time</p>\n <hr />\n <!--Sidebar Options Starts-->\n <h6 class=\"text-center text-bold-500 mb-3 text-uppercase\">Sidebar Color Options</h6>\n <div class=\"cz-bg-color\">\n <div class=\"row p-1\">\n <div class=\"col\">\n <span class=\"gradient-pomegranate d-block rounded-circle\"\n data-bg-color=\"pomegranate\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-king-yna d-block rounded-circle\"\n data-bg-color=\"king-yna\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-ibiza-sunset d-block rounded-circle\"\n data-bg-color=\"ibiza-sunset\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-flickr d-block rounded-circle\"\n data-bg-color=\"flickr\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-purple-bliss d-block rounded-circle\"\n data-bg-color=\"purple-bliss\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-man-of-steel d-block rounded-circle\"\n data-bg-color=\"man-of-steel\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-custom-branding d-block rounded-circle\"\n data-bg-color=\"custom-branding\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-purple-love d-block rounded-circle\"\n data-bg-color=\"purple-love\"></span>\n </div>\n </div>\n <div class=\"row p-1\">\n <div class=\"col\">\n <span class=\"bg-black d-block rounded-circle\"\n data-bg-color=\"black\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-grey d-block rounded-circle\"\n data-bg-color=\"white\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-primary d-block rounded-circle\"\n data-bg-color=\"primary\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-success d-block rounded-circle\"\n data-bg-color=\"success\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-warning d-block rounded-circle\"\n data-bg-color=\"warning\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-info d-block rounded-circle\"\n data-bg-color=\"info\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-default d-block rounded-circle\"\n data-bg-color=\"default\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-danger d-block rounded-circle\"\n data-bg-color=\"danger\"></span>\n </div>\n </div>\n </div>\n <!--Sidebar Options Ends-->\n <hr />\n\n <!--Sidebar BG Image Starts-->\n <h6 class=\"text-center text-bold-500 mb-3 text-uppercase\">Sidebar Bg Image</h6>\n <div class=\"cz-bg-image row\">\n <div class=\"col mb-3\">\n <img src=\"assets/img/sidebar-bg/01.jpg\"\n alt=\"\"\n class=\"rounded\"\n width=\"90\" />\n </div>\n <div class=\"col mb-3\">\n <img src=\"assets/img/sidebar-bg/02.jpg\"\n alt=\"\"\n class=\"rounded\"\n width=\"90\" />\n </div>\n <div class=\"col mb-3\">\n <img src=\"assets/img/sidebar-bg/03.jpg\"\n alt=\"\"\n class=\"rounded\"\n width=\"90\" />\n </div>\n <div class=\"col mb-3\">\n <img src=\"assets/img/sidebar-bg/04.jpg\"\n alt=\"\"\n class=\"rounded\"\n width=\"90\" />\n </div>\n <div class=\"col mb-3\">\n <img src=\"assets/img/sidebar-bg/05.jpg\"\n alt=\"\"\n class=\"rounded\"\n width=\"90\" />\n </div>\n <div class=\"col mb-3\">\n <img src=\"assets/img/sidebar-bg/06.jpg\"\n alt=\"\"\n class=\"rounded\"\n width=\"90\" />\n </div>\n </div>\n <!--Sidebar BG Image Ends-->\n <hr />\n\n <!--Sidebar BG Image Toggle Starts-->\n <div class=\"togglebutton\">\n <div class=\"switch\">\n <span>Sidebar Bg Image</span>\n <div class=\"float-end\">\n <div class=\"form-check custom-checkbox mb-2 me-sm-2 mb-sm-0\">\n <input type=\"checkbox\"\n class=\"form-check-input cz-bg-image-display\"\n checked\n id=\"sidebar-bg-img\" />\n <label class=\"form-check-label\"\n for=\"sidebar-bg-img\"></label>\n </div>\n </div>\n </div>\n </div>\n <!--Sidebar BG Image Toggle Ends-->\n <hr />\n\n <!--Compact Menu Starts-->\n <div class=\"togglebutton\">\n <div class=\"switch\">\n <span>Compact Menu</span>\n <div class=\"float-end\">\n <div class=\"form-check custom-checkbox mb-2 me-sm-2 mb-sm-0\">\n <input type=\"checkbox\"\n class=\"form-check-input cz-compact-menu\"\n id=\"cz-compact-menu\" />\n <label class=\"form-check-label\"\n for=\"cz-compact-menu\"></label>\n </div>\n </div>\n </div>\n </div>\n <!--Compact Menu Ends-->\n <hr />\n\n <!--Sidebar Width Starts-->\n <div>\n <label for=\"cz-sidebar-width\">Sidebar Width</label>\n <select id=\"cz-sidebar-width\"\n class=\"form-select cz-sidebar-width float-end\">\n <option value=\"small\">Small</option>\n <option value=\"medium\"\n selected>Medium</option>\n <option value=\"large\">Large</option>\n </select>\n </div>\n <!--Sidebar Width Ends-->\n </div>\n</div>\n<!--Theme customizer Ends-->\n", styles: [":root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255)}.customizer{-webkit-backface-visibility:hidden;backface-visibility:hidden;background-color:#fff;border-left:1px solid rgba(0,0,0,.05);bottom:0;box-shadow:0 0 8px #0000001a;height:100vh;padding:0;position:fixed;right:-400px;top:0;transition:right .4s cubic-bezier(.05,.74,.2,.99);width:400px;z-index:1051}.customizer.open{right:0}.customizer .customizer-content{height:100%;position:relative}.customizer a.customizer-toggle{background:rgb(255,255,255);box-shadow:-3px 0 8px #0000001a;color:#1769e1;display:block}.customizer a.customizer-close{color:#000}.customizer .customizer-close{padding:7px;position:absolute;right:10px;top:10px;width:auto;z-index:10}.customizer .customizer-toggle{cursor:pointer;height:40px;left:-54px;line-height:50px;position:absolute;text-align:center;top:35%;width:54px}.customizer .color-options a{white-space:pre}.customizer .cz-bg-color{margin:0 auto}.customizer .cz-bg-color span:hover{cursor:pointer}.customizer .cz-bg-color span.white{color:#ddd!important}.customizer .cz-bg-color .selected{border:3px solid rgb(49,79,229)}.customizer .cz-bg-image:hover{cursor:pointer}.customizer .cz-bg-image img.rounded{border:2px solid rgb(230,230,230);border-radius:1rem!important}.customizer .cz-bg-image img.rounded.selected{border:2px solid rgb(255,88,107)}.rounded-circle{height:20px;width:20px}\n"], dependencies: [{ kind: "directive", type: i3.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i3.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }] });
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CustomizerComponent, decorators: [{
|
|
40
|
+
type: Component,
|
|
41
|
+
args: [{ selector: 'pw-customizer', template: "<!--Theme customizer Starts-->\n<div class=\"customizer border-left-blue-grey border-left-lighten-4 d-none d-sm-none d-md-block open\">\n <a class=\"customizer-close\">\n <i class=\"ft-x font-medium-3\" aria-hidden=\"true\"></i>\n </a>\n <a class=\"customizer-toggle bg-danger\"\n id=\"customizer-toggle-icon\">\n <i class=\"ft-settings font-medium-4 fa fa-spin white align-middle\" aria-hidden=\"true\"></i>\n </a>\n <div class=\"customizer-content p-3 ps-container ps-theme-dark\"\n data-ps-id=\"df6a5ce4-a175-9172-4402-dabd98fc9c0a\">\n <h4 class=\"text-uppercase mb-0 text-bold-400\">Theme Customizer</h4>\n <p>Customize & Preview in Real Time</p>\n <hr />\n <!--Sidebar Options Starts-->\n <h6 class=\"text-center text-bold-500 mb-3 text-uppercase\">Sidebar Color Options</h6>\n <div class=\"cz-bg-color\">\n <div class=\"row p-1\">\n <div class=\"col\">\n <span class=\"gradient-pomegranate d-block rounded-circle\"\n data-bg-color=\"pomegranate\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-king-yna d-block rounded-circle\"\n data-bg-color=\"king-yna\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-ibiza-sunset d-block rounded-circle\"\n data-bg-color=\"ibiza-sunset\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-flickr d-block rounded-circle\"\n data-bg-color=\"flickr\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-purple-bliss d-block rounded-circle\"\n data-bg-color=\"purple-bliss\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-man-of-steel d-block rounded-circle\"\n data-bg-color=\"man-of-steel\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-custom-branding d-block rounded-circle\"\n data-bg-color=\"custom-branding\"></span>\n </div>\n <div class=\"col\">\n <span class=\"gradient-purple-love d-block rounded-circle\"\n data-bg-color=\"purple-love\"></span>\n </div>\n </div>\n <div class=\"row p-1\">\n <div class=\"col\">\n <span class=\"bg-black d-block rounded-circle\"\n data-bg-color=\"black\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-grey d-block rounded-circle\"\n data-bg-color=\"white\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-primary d-block rounded-circle\"\n data-bg-color=\"primary\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-success d-block rounded-circle\"\n data-bg-color=\"success\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-warning d-block rounded-circle\"\n data-bg-color=\"warning\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-info d-block rounded-circle\"\n data-bg-color=\"info\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-default d-block rounded-circle\"\n data-bg-color=\"default\"></span>\n </div>\n <div class=\"col\">\n <span class=\"bg-danger d-block rounded-circle\"\n data-bg-color=\"danger\"></span>\n </div>\n </div>\n </div>\n <!--Sidebar Options Ends-->\n <hr />\n\n <!--Sidebar BG Image Starts-->\n <h6 class=\"text-center text-bold-500 mb-3 text-uppercase\">Sidebar Bg Image</h6>\n <div class=\"cz-bg-image row\">\n <div class=\"col mb-3\">\n <img src=\"assets/img/sidebar-bg/01.jpg\"\n alt=\"\"\n class=\"rounded\"\n width=\"90\" />\n </div>\n <div class=\"col mb-3\">\n <img src=\"assets/img/sidebar-bg/02.jpg\"\n alt=\"\"\n class=\"rounded\"\n width=\"90\" />\n </div>\n <div class=\"col mb-3\">\n <img src=\"assets/img/sidebar-bg/03.jpg\"\n alt=\"\"\n class=\"rounded\"\n width=\"90\" />\n </div>\n <div class=\"col mb-3\">\n <img src=\"assets/img/sidebar-bg/04.jpg\"\n alt=\"\"\n class=\"rounded\"\n width=\"90\" />\n </div>\n <div class=\"col mb-3\">\n <img src=\"assets/img/sidebar-bg/05.jpg\"\n alt=\"\"\n class=\"rounded\"\n width=\"90\" />\n </div>\n <div class=\"col mb-3\">\n <img src=\"assets/img/sidebar-bg/06.jpg\"\n alt=\"\"\n class=\"rounded\"\n width=\"90\" />\n </div>\n </div>\n <!--Sidebar BG Image Ends-->\n <hr />\n\n <!--Sidebar BG Image Toggle Starts-->\n <div class=\"togglebutton\">\n <div class=\"switch\">\n <span>Sidebar Bg Image</span>\n <div class=\"float-end\">\n <div class=\"form-check custom-checkbox mb-2 me-sm-2 mb-sm-0\">\n <input type=\"checkbox\"\n class=\"form-check-input cz-bg-image-display\"\n checked\n id=\"sidebar-bg-img\" />\n <label class=\"form-check-label\"\n for=\"sidebar-bg-img\"></label>\n </div>\n </div>\n </div>\n </div>\n <!--Sidebar BG Image Toggle Ends-->\n <hr />\n\n <!--Compact Menu Starts-->\n <div class=\"togglebutton\">\n <div class=\"switch\">\n <span>Compact Menu</span>\n <div class=\"float-end\">\n <div class=\"form-check custom-checkbox mb-2 me-sm-2 mb-sm-0\">\n <input type=\"checkbox\"\n class=\"form-check-input cz-compact-menu\"\n id=\"cz-compact-menu\" />\n <label class=\"form-check-label\"\n for=\"cz-compact-menu\"></label>\n </div>\n </div>\n </div>\n </div>\n <!--Compact Menu Ends-->\n <hr />\n\n <!--Sidebar Width Starts-->\n <div>\n <label for=\"cz-sidebar-width\">Sidebar Width</label>\n <select id=\"cz-sidebar-width\"\n class=\"form-select cz-sidebar-width float-end\">\n <option value=\"small\">Small</option>\n <option value=\"medium\"\n selected>Medium</option>\n <option value=\"large\">Large</option>\n </select>\n </div>\n <!--Sidebar Width Ends-->\n </div>\n</div>\n<!--Theme customizer Ends-->\n", styles: [":root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255)}.customizer{-webkit-backface-visibility:hidden;backface-visibility:hidden;background-color:#fff;border-left:1px solid rgba(0,0,0,.05);bottom:0;box-shadow:0 0 8px #0000001a;height:100vh;padding:0;position:fixed;right:-400px;top:0;transition:right .4s cubic-bezier(.05,.74,.2,.99);width:400px;z-index:1051}.customizer.open{right:0}.customizer .customizer-content{height:100%;position:relative}.customizer a.customizer-toggle{background:rgb(255,255,255);box-shadow:-3px 0 8px #0000001a;color:#1769e1;display:block}.customizer a.customizer-close{color:#000}.customizer .customizer-close{padding:7px;position:absolute;right:10px;top:10px;width:auto;z-index:10}.customizer .customizer-toggle{cursor:pointer;height:40px;left:-54px;line-height:50px;position:absolute;text-align:center;top:35%;width:54px}.customizer .color-options a{white-space:pre}.customizer .cz-bg-color{margin:0 auto}.customizer .cz-bg-color span:hover{cursor:pointer}.customizer .cz-bg-color span.white{color:#ddd!important}.customizer .cz-bg-color .selected{border:3px solid rgb(49,79,229)}.customizer .cz-bg-image:hover{cursor:pointer}.customizer .cz-bg-image img.rounded{border:2px solid rgb(230,230,230);border-radius:1rem!important}.customizer .cz-bg-image img.rounded.selected{border:2px solid rgb(255,88,107)}.rounded-circle{height:20px;width:20px}\n"] }]
|
|
42
|
+
}] });
|
|
43
|
+
|
|
44
|
+
class FaqComponent extends AppBaseComponent {
|
|
45
|
+
constructor(commonService, injector, productService) {
|
|
46
|
+
super(injector);
|
|
47
|
+
this.commonService = commonService;
|
|
48
|
+
this.productService = productService;
|
|
49
|
+
this.subscriptions = [];
|
|
50
|
+
this.objectKeys = Object.keys;
|
|
51
|
+
this.isLoaded = false;
|
|
52
|
+
this.faqHashMap = {};
|
|
53
|
+
}
|
|
54
|
+
ngOnInit() {
|
|
55
|
+
var _a, _b;
|
|
56
|
+
this.faqHashMap = {};
|
|
57
|
+
this.showSupport = (_a = PermissionService.selectedProduct) === null || _a === void 0 ? void 0 : _a.gitlab_service_desk_email;
|
|
58
|
+
this.subscriptionId = (_b = PermissionService === null || PermissionService === void 0 ? void 0 : PermissionService.selectedSubscription) === null || _b === void 0 ? void 0 : _b.id;
|
|
59
|
+
const masterProductId = this.appConfig.master_subscription.product_id;
|
|
60
|
+
this.getProducts();
|
|
61
|
+
this.commonService
|
|
62
|
+
.getPublicFaq(this.subscriptionId)
|
|
63
|
+
.subscribe((response) => {
|
|
64
|
+
var _a;
|
|
65
|
+
this.faqsResponse = response.faqs;
|
|
66
|
+
(_a = response === null || response === void 0 ? void 0 : response.available_category) === null || _a === void 0 ? void 0 : _a.forEach(x => {
|
|
67
|
+
this.faqHashMap[x.key] = x;
|
|
68
|
+
});
|
|
69
|
+
this.totalRecords = response.faqs.length;
|
|
70
|
+
this.nonProductFaqs = this.faqsResponse.filter(x => x.visible && !x.product_id);
|
|
71
|
+
this.allProductFaqs = this.faqsResponse.filter(x => x.visible && x.product_id);
|
|
72
|
+
const noProductObjects = this.faqsResponse.every(x => x.product === null);
|
|
73
|
+
this.allFaqFalse = this.faqsResponse.every(x => x.visible === false);
|
|
74
|
+
if (!noProductObjects) {
|
|
75
|
+
this.productService
|
|
76
|
+
.getProducts({ master_product_id: masterProductId })
|
|
77
|
+
.subscribe(resp => {
|
|
78
|
+
this.products = resp.products;
|
|
79
|
+
this.faqValidation();
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
this.products = '';
|
|
84
|
+
this.faqValidation();
|
|
85
|
+
}
|
|
86
|
+
})
|
|
87
|
+
.add(() => {
|
|
88
|
+
this.isLoaded = true;
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
faqValidation() {
|
|
92
|
+
this.productFaq = groupBy(this.allProductFaqs, 'category');
|
|
93
|
+
this.faqs = groupBy(this.nonProductFaqs, 'category');
|
|
94
|
+
Object.keys(this.productFaq).forEach(x => {
|
|
95
|
+
this.productFaq[x] = sortBy(this.productFaq[x], 'position');
|
|
96
|
+
});
|
|
97
|
+
Object.keys(this.faqs).forEach(x => {
|
|
98
|
+
this.faqs[x] = sortBy(this.faqs[x], 'position');
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
getProducts() {
|
|
102
|
+
this.subscriptions = [];
|
|
103
|
+
this.userStore().subscribe((user) => {
|
|
104
|
+
if (user) {
|
|
105
|
+
this.subscriptions = user.subscriptions;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
filter(searchValue) {
|
|
110
|
+
if (searchValue === '') {
|
|
111
|
+
this.faqs = groupBy(this.nonProductFaqs, 'category');
|
|
112
|
+
this.productFaq = groupBy(this.allProductFaqs, 'category');
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
const filtered = this.nonProductFaqs.filter((faqs) => faqs.question.toUpperCase().includes(searchValue.toUpperCase()) ||
|
|
116
|
+
faqs.answer.toUpperCase().includes(searchValue.toUpperCase()));
|
|
117
|
+
const productBasedFilter = this.allProductFaqs.filter((faqs) => faqs.question.toUpperCase().includes(searchValue.toUpperCase()) ||
|
|
118
|
+
faqs.answer.toUpperCase().includes(searchValue.toUpperCase()));
|
|
119
|
+
this.productFaq = groupBy(productBasedFilter, 'category');
|
|
120
|
+
this.faqs = groupBy(filtered, 'category');
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
navigateToSupport() {
|
|
124
|
+
this.router.navigate(['/support']);
|
|
125
|
+
}
|
|
126
|
+
trackByProductFaqId(_index, item) {
|
|
127
|
+
return item.id;
|
|
128
|
+
}
|
|
129
|
+
trackByNonProductFaqId(_index, item) {
|
|
130
|
+
return item.id;
|
|
131
|
+
}
|
|
132
|
+
ngOnDestroy() {
|
|
133
|
+
super.ngOnDestroy();
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
FaqComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: FaqComponent, deps: [{ token: i1.CommonService }, { token: i0.Injector }, { token: i1.ProductService }], target: i0.ɵɵFactoryTarget.Component });
|
|
137
|
+
FaqComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: FaqComponent, selector: "pw-faq", usesInheritance: true, ngImport: i0, template: "<div class=\"container-fluid overflow-hidden\">\n <div class=\"row mb-3\">\n <div class=\"col-12\">\n <div class=\"card gradient-custom-branding white text-center p-1 p-sm-2\">\n <div class=\"card-header p-1 p-sm-2\">\n <button *ngIf=\"showSupport\"\n class=\"ms-auto d-block btn btn-sm btn-outline-primary\"\n (click)=\"navigateToSupport()\">\n Support\n </button>\n <h1>You need help?</h1>\n <p><em>Please search through our frequently asked questions first.</em></p>\n </div>\n <div class=\"card-block p-2 p-sm-2\">\n <fieldset>\n <legend></legend>\n <input type=\"text\"\n class=\"form-control bg-white\"\n placeholder=\"Search in faqs..\"\n (input)=\"filter($event.target.value)\"\n #messageInput />\n </fieldset>\n </div>\n </div>\n </div>\n </div>\n <div class=\"w-100 text-center mt-3\"\n *ngIf=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n <ng-container *ngIf=\"faqs\">\n <!-- Non Product FAQ -->\n <div *ngFor=\"let category of objectKeys(faqs); let idx1 = index\">\n <ng-container *ngIf=\"faqs[category]?.length\">\n <h6 class=\"text-uppercase mt-3 p-1\">{{ faqHashMap[category]?.name }}</h6>\n <div class=\"dashboard\">\n <div class=\"faq-item\"\n *ngFor=\"\n let faq of faqs[category];\n let idx = index;\n trackBy: trackByProductFaqId\n \">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n [href]=\"'#collapse' + idx + idx1\">\n {{ faq.question }}\n </a>\n </h5>\n </div>\n <div [id]=\"'collapse' + idx + idx1\"\n class=\"panel-collapse p-3 collapse in\">\n <div class=\"card-block\">\n <ng-container *ngIf=\"faq?.answer\">\n <div class=\"ql-container ql-snow\"\n style=\"border-width: 0;\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer |safe:'html'\">\n </div>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n <!-- Product based FAQ -->\n <div *ngFor=\"let product of objectKeys(productFaq); let idx2 = index\">\n <ng-container *ngIf=\"productFaq[product]?.length\">\n <h6 class=\"text-uppercase p-1\">{{ product }}</h6>\n <div class=\"dashboard\">\n <div class=\"faq-item\"\n *ngFor=\"\n let faq of productFaq[product];\n let idx = index;\n trackBy: trackByNonProductFaqId\n \">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a class=\"accordion-toggle\"\n data-bs-toggle=\"collapse\"\n [href]=\"'#collapse1' + idx + idx2\">\n {{ faq.question }}\n </a>\n </h5>\n </div>\n <div [id]=\"'collapse1' + idx + idx2\"\n class=\"panel-collapse p-3 collapse in\">\n <div class=\"card-block\">\n <ng-container *ngIf=\"faq?.answer\">\n <div class=\"ql-container ql-snow\"\n style=\"border-width: 0;\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer |safe:'html'\">\n </div>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n </ng-container>\n <div *ngIf=\"totalRecords === 0 || allFaqFalse\">\n <pw-no-data message=\"No faqs present\"> </pw-no-data>\n </div>\n</div>\n", styles: [":root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255)}.card-header h1,.card-header p{color:#fff!important}.faq-item{border:1px dashed rgba(0,0,0,.1);border-radius:3px;margin:10px 0;transition:all .2s ease-in-out}.faq-item .dashboard-header{background:rgb(255,255,255)}.card .accordion-toggle:before{content:\"\\f078\"}.card .accordion-toggle.collapsed{transition:all .3s ease-in-out}.card .accordion-toggle.collapsed:before{content:\"\\f054\"}.card-block p{font-size:16px}.card,h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.accordion-title a{color:var(--sidebar_bg)!important}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
138
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: FaqComponent, decorators: [{
|
|
139
|
+
type: Component,
|
|
140
|
+
args: [{ selector: 'pw-faq', template: "<div class=\"container-fluid overflow-hidden\">\n <div class=\"row mb-3\">\n <div class=\"col-12\">\n <div class=\"card gradient-custom-branding white text-center p-1 p-sm-2\">\n <div class=\"card-header p-1 p-sm-2\">\n <button *ngIf=\"showSupport\"\n class=\"ms-auto d-block btn btn-sm btn-outline-primary\"\n (click)=\"navigateToSupport()\">\n Support\n </button>\n <h1>You need help?</h1>\n <p><em>Please search through our frequently asked questions first.</em></p>\n </div>\n <div class=\"card-block p-2 p-sm-2\">\n <fieldset>\n <legend></legend>\n <input type=\"text\"\n class=\"form-control bg-white\"\n placeholder=\"Search in faqs..\"\n (input)=\"filter($event.target.value)\"\n #messageInput />\n </fieldset>\n </div>\n </div>\n </div>\n </div>\n <div class=\"w-100 text-center mt-3\"\n *ngIf=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n <ng-container *ngIf=\"faqs\">\n <!-- Non Product FAQ -->\n <div *ngFor=\"let category of objectKeys(faqs); let idx1 = index\">\n <ng-container *ngIf=\"faqs[category]?.length\">\n <h6 class=\"text-uppercase mt-3 p-1\">{{ faqHashMap[category]?.name }}</h6>\n <div class=\"dashboard\">\n <div class=\"faq-item\"\n *ngFor=\"\n let faq of faqs[category];\n let idx = index;\n trackBy: trackByProductFaqId\n \">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n [href]=\"'#collapse' + idx + idx1\">\n {{ faq.question }}\n </a>\n </h5>\n </div>\n <div [id]=\"'collapse' + idx + idx1\"\n class=\"panel-collapse p-3 collapse in\">\n <div class=\"card-block\">\n <ng-container *ngIf=\"faq?.answer\">\n <div class=\"ql-container ql-snow\"\n style=\"border-width: 0;\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer |safe:'html'\">\n </div>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n <!-- Product based FAQ -->\n <div *ngFor=\"let product of objectKeys(productFaq); let idx2 = index\">\n <ng-container *ngIf=\"productFaq[product]?.length\">\n <h6 class=\"text-uppercase p-1\">{{ product }}</h6>\n <div class=\"dashboard\">\n <div class=\"faq-item\"\n *ngFor=\"\n let faq of productFaq[product];\n let idx = index;\n trackBy: trackByNonProductFaqId\n \">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a class=\"accordion-toggle\"\n data-bs-toggle=\"collapse\"\n [href]=\"'#collapse1' + idx + idx2\">\n {{ faq.question }}\n </a>\n </h5>\n </div>\n <div [id]=\"'collapse1' + idx + idx2\"\n class=\"panel-collapse p-3 collapse in\">\n <div class=\"card-block\">\n <ng-container *ngIf=\"faq?.answer\">\n <div class=\"ql-container ql-snow\"\n style=\"border-width: 0;\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer |safe:'html'\">\n </div>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n </ng-container>\n <div *ngIf=\"totalRecords === 0 || allFaqFalse\">\n <pw-no-data message=\"No faqs present\"> </pw-no-data>\n </div>\n</div>\n", styles: [":root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255)}.card-header h1,.card-header p{color:#fff!important}.faq-item{border:1px dashed rgba(0,0,0,.1);border-radius:3px;margin:10px 0;transition:all .2s ease-in-out}.faq-item .dashboard-header{background:rgb(255,255,255)}.card .accordion-toggle:before{content:\"\\f078\"}.card .accordion-toggle.collapsed{transition:all .3s ease-in-out}.card .accordion-toggle.collapsed:before{content:\"\\f054\"}.card-block p{font-size:16px}.card,h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.accordion-title a{color:var(--sidebar_bg)!important}\n"] }]
|
|
141
|
+
}], ctorParameters: function () { return [{ type: i1.CommonService }, { type: i0.Injector }, { type: i1.ProductService }]; } });
|
|
142
|
+
|
|
143
|
+
class FaqDetailsComponent extends AppBaseComponent {
|
|
144
|
+
constructor(commonService, injector) {
|
|
145
|
+
super(injector);
|
|
146
|
+
this.commonService = commonService;
|
|
147
|
+
this.isLoading = false;
|
|
148
|
+
this.id = Number(this.route.snapshot.params['id']);
|
|
149
|
+
}
|
|
150
|
+
ngOnInit() {
|
|
151
|
+
this.getFaq();
|
|
152
|
+
}
|
|
153
|
+
getFaq() {
|
|
154
|
+
this.isLoading = true;
|
|
155
|
+
this.commonService
|
|
156
|
+
.getPublicFaqById(this.id)
|
|
157
|
+
.subscribe(res => {
|
|
158
|
+
this.faq = res;
|
|
159
|
+
})
|
|
160
|
+
.add(() => (this.isLoading = false));
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
FaqDetailsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: FaqDetailsComponent, deps: [{ token: i1.CommonService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
164
|
+
FaqDetailsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: FaqDetailsComponent, selector: "pw-faq-details", usesInheritance: true, ngImport: i0, template: "<div class=\"container-fluid overflow-hidden mt-4 p-3\">\n <h2>{{faq?.question}}</h2>\n <ng-container *ngIf=\"faq?.answer\">\n <div class=\"ql-container ql-snow\"\n style=\"border-width: 0;\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer |safe:'html'\">\n </div>\n </div>\n </ng-container>\n <pw-no-data *ngIf=\"!faq && !isLoading\"\n message=\"No Faq found\"> </pw-no-data>\n</div>\n<div class=\"w-100 text-center mt-3\"\n *ngIf=\"isLoading\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
165
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: FaqDetailsComponent, decorators: [{
|
|
166
|
+
type: Component,
|
|
167
|
+
args: [{ selector: 'pw-faq-details', template: "<div class=\"container-fluid overflow-hidden mt-4 p-3\">\n <h2>{{faq?.question}}</h2>\n <ng-container *ngIf=\"faq?.answer\">\n <div class=\"ql-container ql-snow\"\n style=\"border-width: 0;\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer |safe:'html'\">\n </div>\n </div>\n </ng-container>\n <pw-no-data *ngIf=\"!faq && !isLoading\"\n message=\"No Faq found\"> </pw-no-data>\n</div>\n<div class=\"w-100 text-center mt-3\"\n *ngIf=\"isLoading\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n</div>\n" }]
|
|
168
|
+
}], ctorParameters: function () { return [{ type: i1.CommonService }, { type: i0.Injector }]; } });
|
|
169
|
+
|
|
170
|
+
class UserFeedbackComponent extends AppBaseComponent {
|
|
171
|
+
constructor(injector, commonService) {
|
|
172
|
+
super(injector);
|
|
173
|
+
this.commonService = commonService;
|
|
174
|
+
this.rating = 3;
|
|
175
|
+
this.questions = [];
|
|
176
|
+
this.counter = Array;
|
|
177
|
+
this.showSection = true;
|
|
178
|
+
}
|
|
179
|
+
ngOnInit() {
|
|
180
|
+
var _a;
|
|
181
|
+
this.subscriptionId = (_a = PermissionService.selectedSubscription) === null || _a === void 0 ? void 0 : _a.id;
|
|
182
|
+
this.getFeedbackQuestions();
|
|
183
|
+
this.userService.getUserInfo().subscribe({
|
|
184
|
+
next: user => {
|
|
185
|
+
this.user = user;
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
this.checkFeedBackExpiry();
|
|
189
|
+
}
|
|
190
|
+
checkFeedBackExpiry() {
|
|
191
|
+
const item = localStorage.getItem('showFeedBack');
|
|
192
|
+
if (item) {
|
|
193
|
+
const currentDate = new Date().getTime();
|
|
194
|
+
const expiryDate = new Date(JSON.parse(item)).getTime();
|
|
195
|
+
this.showSection = currentDate > expiryDate;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
closeSection() {
|
|
199
|
+
this.showSection = false;
|
|
200
|
+
const addedTime = moment(new Date()).add(7, 'days').toDate();
|
|
201
|
+
localStorage.setItem('showFeedBack', JSON.stringify(addedTime));
|
|
202
|
+
}
|
|
203
|
+
getFeedbackQuestions() {
|
|
204
|
+
if (this.subscriptionId) {
|
|
205
|
+
this.commonService.feedbackQuestions(this.subscriptionId).subscribe(res => {
|
|
206
|
+
this.questions = res;
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
onSubmit(questionId, formValue) {
|
|
211
|
+
if (formValue === null || formValue === void 0 ? void 0 : formValue.feedback) {
|
|
212
|
+
const data = {
|
|
213
|
+
subscription_id: this.subscriptionId,
|
|
214
|
+
feedback_question_id: questionId,
|
|
215
|
+
value: Number(formValue === null || formValue === void 0 ? void 0 : formValue.feedback),
|
|
216
|
+
comment: formValue === null || formValue === void 0 ? void 0 : formValue.description
|
|
217
|
+
};
|
|
218
|
+
this.commonService.userFeedbacks(data).subscribe(() => {
|
|
219
|
+
this.getFeedbackQuestions();
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
trackByQuestion(_index, item) {
|
|
224
|
+
return item.id;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
UserFeedbackComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: UserFeedbackComponent, deps: [{ token: i0.Injector }, { token: i1.CommonService }], target: i0.ɵɵFactoryTarget.Component });
|
|
228
|
+
UserFeedbackComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: UserFeedbackComponent, selector: "pw-user-feedback", usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"showSection\">\n <div class=\"mt-4\"\n *ngIf=\"questions?.length\">\n <div class=\"card pb-1\">\n <h3 class=\"text-end me-3 pt-2 cursor-pointer\"\n (click)=\"closeSection()\">×</h3>\n <div class=\"card-content p-0\"\n *ngFor=\"let question of questions; let first = first; trackBy: trackByQuestion\">\n <div class=\"card-header\">\n <form #feedbackForm=\"ngForm\">\n <div class=\"col-lg-8 p-0 mx-auto\">\n <h3 class=\"mb-1\"\n *ngIf=\"first\">Your input is valuable to us</h3>\n <p class=\"mb-4\"\n *ngIf=\"first\">\n Please take a moment to answer these questions\n </p>\n <h6 class=\"fw-bold pb-3 mx-auto\">{{ question?.question }}</h6>\n <div class=\"text-center row p-2 mx-md-2 feedback-value\">\n <span class=\"col-auto me-0\">Not at all</span>\n <div *ngFor=\"let val of counter(10); let i = index\"\n class=\"p-field-checkbox col-auto ms-0 me-0\">\n <p-radioButton name=\"feedback\"\n ngModel\n [value]=\"i + 1\"\n [inputId]=\"i + 1\"></p-radioButton>\n <br />\n <label [for]=\"i + 1\">{{ i + 1 }}</label>\n </div>\n <span class=\"col-auto ms-0\">Extremely</span>\n </div>\n\n <div class=\"text mt-3\">\n <textarea rows=\"4\"\n name=\"description\"\n placeholder=\"\u201CWhat is the primary reason for your score?\u201D\"\n ngModel\n type=\"text\"\n pInputTextarea\n class=\"form-control\">\n </textarea>\n </div>\n <div class=\"mt-3\">\n <button class=\"btn btn-primary d-block mx-auto\"\n (click)=\"onSubmit(question?.id, feedbackForm.value)\">\n Submit\n </button>\n </div>\n </div>\n </form>\n </div>\n </div>\n </div>\n </div>\n\n</ng-container>\n", styles: [".feedback-value{justify-content:center}.feedback-value label{color:#000000de;cursor:pointer;font-size:1rem;font-weight:400;letter-spacing:normal;margin-left:10px;margin-right:10px;text-transform:none}.feedback-value .p-field-checkbox{margin:0 10px}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }] });
|
|
229
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: UserFeedbackComponent, decorators: [{
|
|
230
|
+
type: Component,
|
|
231
|
+
args: [{ selector: 'pw-user-feedback', template: "<ng-container *ngIf=\"showSection\">\n <div class=\"mt-4\"\n *ngIf=\"questions?.length\">\n <div class=\"card pb-1\">\n <h3 class=\"text-end me-3 pt-2 cursor-pointer\"\n (click)=\"closeSection()\">×</h3>\n <div class=\"card-content p-0\"\n *ngFor=\"let question of questions; let first = first; trackBy: trackByQuestion\">\n <div class=\"card-header\">\n <form #feedbackForm=\"ngForm\">\n <div class=\"col-lg-8 p-0 mx-auto\">\n <h3 class=\"mb-1\"\n *ngIf=\"first\">Your input is valuable to us</h3>\n <p class=\"mb-4\"\n *ngIf=\"first\">\n Please take a moment to answer these questions\n </p>\n <h6 class=\"fw-bold pb-3 mx-auto\">{{ question?.question }}</h6>\n <div class=\"text-center row p-2 mx-md-2 feedback-value\">\n <span class=\"col-auto me-0\">Not at all</span>\n <div *ngFor=\"let val of counter(10); let i = index\"\n class=\"p-field-checkbox col-auto ms-0 me-0\">\n <p-radioButton name=\"feedback\"\n ngModel\n [value]=\"i + 1\"\n [inputId]=\"i + 1\"></p-radioButton>\n <br />\n <label [for]=\"i + 1\">{{ i + 1 }}</label>\n </div>\n <span class=\"col-auto ms-0\">Extremely</span>\n </div>\n\n <div class=\"text mt-3\">\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"] }]
|
|
232
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1.CommonService }]; } });
|
|
233
|
+
|
|
234
|
+
class HomeComponent extends AppBaseComponent {
|
|
235
|
+
constructor(injector, scriptLoader) {
|
|
236
|
+
super(injector);
|
|
237
|
+
this.scriptLoader = scriptLoader;
|
|
238
|
+
this.tour = {
|
|
239
|
+
id: 'dashboard',
|
|
240
|
+
steps: []
|
|
241
|
+
};
|
|
242
|
+
this.componentActive = true;
|
|
243
|
+
}
|
|
244
|
+
ngOnInit() {
|
|
245
|
+
var _a;
|
|
246
|
+
this.selectedSubscriptionSlug = (_a = PermissionService.selectedSubscription) === null || _a === void 0 ? void 0 : _a.slug;
|
|
247
|
+
this.userStore().subscribe(state => {
|
|
248
|
+
if (state) {
|
|
249
|
+
this.userService.getCurrentUserObject('active_tips').subscribe(response => {
|
|
250
|
+
if (response === null || response === void 0 ? void 0 : response.length) {
|
|
251
|
+
const welcomeTips = response.find(x => x.name === 'welcome');
|
|
252
|
+
if (welcomeTips) {
|
|
253
|
+
this.tour.steps = JSON.parse(welcomeTips.instructions).steps;
|
|
254
|
+
this.scriptLoader
|
|
255
|
+
.loadScript('head', '/assets/js/hopscotch.min.js', true)
|
|
256
|
+
.then(() => {
|
|
257
|
+
window.hopscotch.startTour(this.tour);
|
|
258
|
+
// eslint-disable-next-line func-names
|
|
259
|
+
window.hopscotch.nextStep = function () {
|
|
260
|
+
const stepNumber = $('.hopscotch-bubble-number').text();
|
|
261
|
+
if (this.tour.steps.length === Number(stepNumber)) {
|
|
262
|
+
this.userService
|
|
263
|
+
.postTipsDisregarded({
|
|
264
|
+
tip_id: welcomeTips.id,
|
|
265
|
+
disregarded: true
|
|
266
|
+
})
|
|
267
|
+
.subscribe(() => {
|
|
268
|
+
var _a;
|
|
269
|
+
(_a = window === null || window === void 0 ? void 0 : window.hopscotch) === null || _a === void 0 ? void 0 : _a.endTour();
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
else {
|
|
273
|
+
window.hopscotch.showStep(Number(stepNumber));
|
|
274
|
+
}
|
|
275
|
+
}.bind(this);
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
this.userStore().subscribe({
|
|
283
|
+
next: user => {
|
|
284
|
+
this.user = user;
|
|
285
|
+
if (this.user) {
|
|
286
|
+
this.userSlug = user.slug;
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
error: error => this.toast.showToast(error)
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
ngOnDestroy() {
|
|
293
|
+
var _a;
|
|
294
|
+
if (window === null || window === void 0 ? void 0 : window.hopscotch) {
|
|
295
|
+
(_a = window === null || window === void 0 ? void 0 : window.hopscotch) === null || _a === void 0 ? void 0 : _a.endTour();
|
|
296
|
+
}
|
|
297
|
+
super.ngOnDestroy();
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
HomeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: HomeComponent, deps: [{ token: i0.Injector }, { token: i1.ScriptLoaderService }], target: i0.ɵɵFactoryTarget.Component });
|
|
301
|
+
HomeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: HomeComponent, selector: "pw-home", usesInheritance: true, ngImport: i0, template: "<pw-user-feedback></pw-user-feedback>\n<div class=\"row mt-3\">\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <div id=\"cards\"></div>\n <h3 class=\"mb-3\">{{'ManageYourAccount'|transloco}}</h3>\n <p>{{'ManageYourAccountDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/ManageYourAccount.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a routerLink=\"/account/details\"\n class=\"d-block\">{{'ManageYourAccount'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step2\"></div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'UpdateYourProfile'|transloco}}</h3>\n <p>{{'UpdateYourProfileDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/UpdateYourProfile.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a [routerLink]=\"['/members', userSlug]\"\n class=\"d-block\">{{'UpdateYourProfile'|transloco}}</a>\n </div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'CommunicationSettings'|transloco}}</h3>\n <p>\n {{'CommunicationSettingsDescription'|transloco}}\n </p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/CommunicationSettings.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a routerLink=\"/settings/communication\"\n class=\"d-block\">{{'GotoCommunicationSettings'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step3\"></div>\n </div>\n </div>\n </div>\n <div class=\"col-12 col-lg-6 mt-2 mb-4\">\n <div class=\"card\">\n <div class=\"card-content p-0\">\n <div class=\"card-header d-flex mt-0\">\n <div class=\"w-100\">\n <h3 class=\"mb-3\">{{'NeedHelp'|transloco}}</h3>\n <p>{{'NeedHelpDescription'|transloco}}</p>\n </div>\n <div class=\"ms-3 img-wrapper\">\n <img src=\"assets/img/products/hyper-dashboard/NeedHelp.png\"\n alt=\"img\"\n class=\"img-fluid\" />\n </div>\n </div>\n <div class=\"card-footer px-3\">\n <a [routerLink]=\"'/' + selectedSubscriptionSlug + '/faq'\"\n class=\"d-block\">{{'SeeAllOurFaq'|transloco}}</a>\n </div>\n <div id=\"tips-onboarding-step4\"></div>\n </div>\n </div>\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: UserFeedbackComponent, selector: "pw-user-feedback" }, { kind: "pipe", type: i4.TranslocoPipe, name: "transloco" }] });
|
|
302
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: HomeComponent, decorators: [{
|
|
303
|
+
type: Component,
|
|
304
|
+
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" }]
|
|
305
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1.ScriptLoaderService }]; } });
|
|
306
|
+
|
|
307
|
+
class CurrentNotificationsComponent {
|
|
308
|
+
constructor(notificationService) {
|
|
309
|
+
this.notificationService = notificationService;
|
|
310
|
+
this.notificationCount = 0;
|
|
311
|
+
this.noNoti = true;
|
|
312
|
+
this.notifications = [];
|
|
313
|
+
this.isLoaded = false;
|
|
314
|
+
}
|
|
315
|
+
ngOnInit() {
|
|
316
|
+
this.getNotifications();
|
|
317
|
+
}
|
|
318
|
+
getNotifications() {
|
|
319
|
+
this.notificationService
|
|
320
|
+
.getNotifications()
|
|
321
|
+
.subscribe(data => {
|
|
322
|
+
var _a;
|
|
323
|
+
if (data.length > 0) {
|
|
324
|
+
this.notifications = data.filter(note => !note.dismissed && note.show_on_dashboard);
|
|
325
|
+
this.noNoti = true;
|
|
326
|
+
if ((_a = this.notifications) === null || _a === void 0 ? void 0 : _a.length) {
|
|
327
|
+
this.noNoti = false;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
})
|
|
331
|
+
.add(() => {
|
|
332
|
+
this.isLoaded = true;
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
dismiss(id, e) {
|
|
336
|
+
this.notificationService.dismissNotification(id).subscribe(() => {
|
|
337
|
+
// Remove notification from notification array
|
|
338
|
+
const index = this.notifications.indexOf(e);
|
|
339
|
+
this.notifications.splice(index, 1);
|
|
340
|
+
if (this.notifications.length === 0) {
|
|
341
|
+
this.noNoti = true;
|
|
342
|
+
}
|
|
343
|
+
$('#noty').slideUp('slow', () => {
|
|
344
|
+
$('#noty').remove();
|
|
345
|
+
});
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
trackByNotification(_index, item) {
|
|
349
|
+
return item.id;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
CurrentNotificationsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CurrentNotificationsComponent, deps: [{ token: i1.NotificationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
353
|
+
CurrentNotificationsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: CurrentNotificationsComponent, selector: "pw-current-notifications", ngImport: i0, template: "<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n <ng-template [ngIf]=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </ng-template>\n </div>\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n *ngIf=\"notifications?.length && isLoaded\">\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n <li *ngFor=\"let item of notifications; trackBy: trackByNotification\"\n class=\"p-3 border-bottom border-bottom-blue-grey border-bottom-lighten-4 d-flex align-items-center\">\n <span class=\"btn btn-circle me-2\"\n [ngClass]=\"{\n 'btn-danger': item.note_type === 'administrative',\n 'btn-secondary': item.note_type === 'object_event',\n 'btn-primary': item.note_type === 'user_generated'\n }\">\n <i\n class=\"fal float-start\"\n [ngClass]=\"{\n 'fa-bell': item.note_type === 'administrative',\n 'fa-share-alt': item.note_type === 'object_event',\n 'fa-bells': item.note_type === 'user_generated'\n }\"\n aria-hidden=\"true\"\n ></i>\n </span>\n <span class=\"d-inline-block noty-body\">\n <span class=\"noti-title line-height-1p5 d-block text-bold-400\">{{\n item.content\n }}</span>\n <span class=\"noti-text\"><span class=\"fal fa-clock\"></span>\n {{ item?.created_at | sinceAgo }}</span>\n </span>\n <span class=\"noti-buttons\">\n <button class=\"btn float-end\">\n <i\n class=\"far fa-trash-alt\"\n (click)=\"dismiss(item.id, item)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n </span>\n </li>\n </ul>\n </div>\n </div>\n </div>\n\n <div class=\"col-12 col-sm-12 col-md-12\"\n *ngIf=\"noNoti && isLoaded\">\n <div class=\"text-center\">\n <h3 class=\"noti-title line-height-1p5 d-block text-bold-400 primary\">\n You are all caught up.\n </h3>\n <p class=\"text-secondary\">You currently do not have any notifications.</p>\n </div>\n </div>\n</div>\n", styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}@media screen and (max-width: 480px){.noty-body{width:240px}}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
354
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CurrentNotificationsComponent, decorators: [{
|
|
355
|
+
type: Component,
|
|
356
|
+
args: [{ selector: 'pw-current-notifications', template: "<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n <ng-template [ngIf]=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </ng-template>\n </div>\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n *ngIf=\"notifications?.length && isLoaded\">\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n <li *ngFor=\"let item of notifications; trackBy: trackByNotification\"\n class=\"p-3 border-bottom border-bottom-blue-grey border-bottom-lighten-4 d-flex align-items-center\">\n <span class=\"btn btn-circle me-2\"\n [ngClass]=\"{\n 'btn-danger': item.note_type === 'administrative',\n 'btn-secondary': item.note_type === 'object_event',\n 'btn-primary': item.note_type === 'user_generated'\n }\">\n <i\n class=\"fal float-start\"\n [ngClass]=\"{\n 'fa-bell': item.note_type === 'administrative',\n 'fa-share-alt': item.note_type === 'object_event',\n 'fa-bells': item.note_type === 'user_generated'\n }\"\n aria-hidden=\"true\"\n ></i>\n </span>\n <span class=\"d-inline-block noty-body\">\n <span class=\"noti-title line-height-1p5 d-block text-bold-400\">{{\n item.content\n }}</span>\n <span class=\"noti-text\"><span class=\"fal fa-clock\"></span>\n {{ item?.created_at | sinceAgo }}</span>\n </span>\n <span class=\"noti-buttons\">\n <button class=\"btn float-end\">\n <i\n class=\"far fa-trash-alt\"\n (click)=\"dismiss(item.id, item)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n </span>\n </li>\n </ul>\n </div>\n </div>\n </div>\n\n <div class=\"col-12 col-sm-12 col-md-12\"\n *ngIf=\"noNoti && isLoaded\">\n <div class=\"text-center\">\n <h3 class=\"noti-title line-height-1p5 d-block text-bold-400 primary\">\n You are all caught up.\n </h3>\n <p class=\"text-secondary\">You currently do not have any notifications.</p>\n </div>\n </div>\n</div>\n", styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}@media screen and (max-width: 480px){.noty-body{width:240px}}\n"] }]
|
|
357
|
+
}], ctorParameters: function () { return [{ type: i1.NotificationService }]; } });
|
|
358
|
+
|
|
359
|
+
class DismissedNotificationsComponent {
|
|
360
|
+
constructor(notificationService) {
|
|
361
|
+
this.notificationService = notificationService;
|
|
362
|
+
this.notificationCount = 0;
|
|
363
|
+
this.noNoti = true;
|
|
364
|
+
this.dismissedNotifications = [];
|
|
365
|
+
this.isLoaded = false;
|
|
366
|
+
}
|
|
367
|
+
ngOnInit() {
|
|
368
|
+
this.getNotifications();
|
|
369
|
+
}
|
|
370
|
+
getNotifications() {
|
|
371
|
+
this.notificationService
|
|
372
|
+
.getDismissedNotifications()
|
|
373
|
+
.subscribe(data => {
|
|
374
|
+
if (data.length > 0) {
|
|
375
|
+
this.noNoti = false;
|
|
376
|
+
this.dismissedNotifications = data;
|
|
377
|
+
}
|
|
378
|
+
})
|
|
379
|
+
.add(() => {
|
|
380
|
+
this.isLoaded = true;
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
dismiss(id, e) {
|
|
384
|
+
HelperService.raiseDeletePopup().then(res => {
|
|
385
|
+
if (res.value) {
|
|
386
|
+
this.notificationService.deleteNotifications(id).subscribe(() => {
|
|
387
|
+
// Remove notification from notification array
|
|
388
|
+
const index = this.dismissedNotifications.indexOf(e);
|
|
389
|
+
this.dismissedNotifications.splice(index, 1);
|
|
390
|
+
if (this.dismissedNotifications.length === 0) {
|
|
391
|
+
this.noNoti = true;
|
|
392
|
+
}
|
|
393
|
+
$('#noty').slideUp('slow', () => {
|
|
394
|
+
$('#noty').remove();
|
|
395
|
+
});
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
restoreNotification(id, e) {
|
|
401
|
+
this.notificationService.reinstateNotification(id).subscribe(() => {
|
|
402
|
+
// Remove notification from dismissed notification array
|
|
403
|
+
const index = this.dismissedNotifications.indexOf(e);
|
|
404
|
+
this.dismissedNotifications.splice(index, 1);
|
|
405
|
+
if (this.dismissedNotifications.length === 0) {
|
|
406
|
+
this.noNoti = true;
|
|
407
|
+
}
|
|
408
|
+
$('#noty').slideUp('slow', () => {
|
|
409
|
+
$('#noty').remove();
|
|
410
|
+
});
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
trackByNotification(_index, item) {
|
|
414
|
+
return item.id;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
DismissedNotificationsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DismissedNotificationsComponent, deps: [{ token: i1.NotificationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
418
|
+
DismissedNotificationsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: DismissedNotificationsComponent, selector: "pw-dismissed-notifications", ngImport: i0, template: "<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n <ng-template [ngIf]=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </ng-template>\n </div>\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n *ngIf=\"dismissedNotifications?.length && isLoaded\">\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n <li *ngFor=\"let item of dismissedNotifications; trackBy: trackByNotification\"\n class=\"p-3 border-bottom border-bottom-blue-grey border-bottom-lighten-4 d-flex align-items-center\">\n <span class=\"btn btn-circle me-2\"\n [ngClass]=\"{\n 'btn-danger': item.note_type === 'administrative',\n 'btn-secondary': item.note_type === 'object_event',\n 'btn-primary': item.note_type === 'user_generated'\n }\">\n <i\n class=\"fal float-start\"\n [ngClass]=\"{\n 'fa-bell': item.note_type === 'administrative',\n 'fa-share-alt': item.note_type === 'object_event',\n 'fa-bells': item.note_type === 'user_generated'\n }\"\n aria-hidden=\"true\"\n ></i>\n </span>\n <span class=\"d-inline-block noty-body\">\n <span class=\"noti-title line-height-1p5 d-block text-bold-400\">{{\n item.content\n }}</span>\n <span class=\"noti-text\"><span class=\"fal fa-clock\"></span>\n {{ item?.created_at | sinceAgo }}</span>\n </span>\n <span class=\"noti-buttons\">\n <button class=\"btn float-end\">\n <i\n class=\"far fa-trash-alt\"\n (click)=\"dismiss(item.id, item)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n <button class=\"btn float-end\">\n <i\n class=\"fas fa-trash-restore-alt\"\n (click)=\"restoreNotification(item.id, item)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n </span>\n </li>\n </ul>\n </div>\n </div>\n </div>\n\n <div class=\"col-12 col-sm-12 col-md-12\"\n *ngIf=\"noNoti && isLoaded\">\n <div class=\"text-center\">\n <p class=\"text-secondary\">You currently do not have any dismissed notifications.</p>\n </div>\n </div>\n</div>\n", styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}@media screen and (max-width: 480px){.noty-body{width:240px}}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
419
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DismissedNotificationsComponent, decorators: [{
|
|
420
|
+
type: Component,
|
|
421
|
+
args: [{ selector: 'pw-dismissed-notifications', template: "<div class=\"row main-div\">\n <div class=\"w-100 text-center mt-3\">\n <ng-template [ngIf]=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </ng-template>\n </div>\n <div class=\"col-12 col-sm-12 col-md-12 mb-5\"\n *ngIf=\"dismissedNotifications?.length && isLoaded\">\n <div class=\"card\">\n <div class=\"card-body\">\n <ul class=\"noti-list\">\n <li *ngFor=\"let item of dismissedNotifications; trackBy: trackByNotification\"\n class=\"p-3 border-bottom border-bottom-blue-grey border-bottom-lighten-4 d-flex align-items-center\">\n <span class=\"btn btn-circle me-2\"\n [ngClass]=\"{\n 'btn-danger': item.note_type === 'administrative',\n 'btn-secondary': item.note_type === 'object_event',\n 'btn-primary': item.note_type === 'user_generated'\n }\">\n <i\n class=\"fal float-start\"\n [ngClass]=\"{\n 'fa-bell': item.note_type === 'administrative',\n 'fa-share-alt': item.note_type === 'object_event',\n 'fa-bells': item.note_type === 'user_generated'\n }\"\n aria-hidden=\"true\"\n ></i>\n </span>\n <span class=\"d-inline-block noty-body\">\n <span class=\"noti-title line-height-1p5 d-block text-bold-400\">{{\n item.content\n }}</span>\n <span class=\"noti-text\"><span class=\"fal fa-clock\"></span>\n {{ item?.created_at | sinceAgo }}</span>\n </span>\n <span class=\"noti-buttons\">\n <button class=\"btn float-end\">\n <i\n class=\"far fa-trash-alt\"\n (click)=\"dismiss(item.id, item)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n <button class=\"btn float-end\">\n <i\n class=\"fas fa-trash-restore-alt\"\n (click)=\"restoreNotification(item.id, item)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n </span>\n </li>\n </ul>\n </div>\n </div>\n </div>\n\n <div class=\"col-12 col-sm-12 col-md-12\"\n *ngIf=\"noNoti && isLoaded\">\n <div class=\"text-center\">\n <p class=\"text-secondary\">You currently do not have any dismissed notifications.</p>\n </div>\n </div>\n</div>\n", styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}@media screen and (max-width: 480px){.noty-body{width:240px}}\n"] }]
|
|
422
|
+
}], ctorParameters: function () { return [{ type: i1.NotificationService }]; } });
|
|
423
|
+
|
|
424
|
+
class NotificationsPageComponent {
|
|
425
|
+
}
|
|
426
|
+
NotificationsPageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: NotificationsPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
427
|
+
NotificationsPageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: NotificationsPageComponent, selector: "pw-notifications-page", ngImport: i0, template: "<div class=\"row\">\n <div class=\"col-12 col-sm-12 col-md-12\">\n <h2 class=\"p-2\">Notifications</h2>\n </div>\n</div>\n\n<ul ngbNav\n #nav=\"ngbNav\"\n class=\"nav-tabs\">\n <li [ngbNavItem]=\"1\">\n <a ngbNavLink>Current Notifications</a>\n <ng-template ngbNavContent>\n <pw-current-notifications></pw-current-notifications>\n </ng-template>\n </li>\n <li [ngbNavItem]=\"2\">\n <a ngbNavLink>Dismissed Notifications</a>\n <ng-template ngbNavContent>\n <pw-dismissed-notifications></pw-dismissed-notifications>\n </ng-template>\n </li>\n</ul>\n\n<div [ngbNavOutlet]=\"nav\"></div>\n", styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}@media screen and (max-width: 480px){.noty-body{width:240px}}\n"], dependencies: [{ kind: "directive", type: i1$2.NgbNavContent, selector: "ng-template[ngbNavContent]" }, { kind: "directive", type: i1$2.NgbNav, selector: "[ngbNav]", inputs: ["activeId", "animation", "destroyOnHide", "orientation", "roles", "keyboard"], outputs: ["activeIdChange", "shown", "hidden", "navChange"], exportAs: ["ngbNav"] }, { kind: "directive", type: i1$2.NgbNavItem, selector: "[ngbNavItem]", inputs: ["destroyOnHide", "disabled", "domId", "ngbNavItem"], outputs: ["shown", "hidden"], exportAs: ["ngbNavItem"] }, { kind: "directive", type: i1$2.NgbNavItemRole, selector: "[ngbNavItem]:not(ng-container)" }, { kind: "directive", type: i1$2.NgbNavLink, selector: "a[ngbNavLink]" }, { kind: "directive", type: i1$2.NgbNavLinkBase, selector: "[ngbNavLink]" }, { kind: "component", type: i1$2.NgbNavOutlet, selector: "[ngbNavOutlet]", inputs: ["paneRole", "ngbNavOutlet"] }, { kind: "component", type: CurrentNotificationsComponent, selector: "pw-current-notifications" }, { kind: "component", type: DismissedNotificationsComponent, selector: "pw-dismissed-notifications" }] });
|
|
428
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: NotificationsPageComponent, decorators: [{
|
|
429
|
+
type: Component,
|
|
430
|
+
args: [{ selector: 'pw-notifications-page', template: "<div class=\"row\">\n <div class=\"col-12 col-sm-12 col-md-12\">\n <h2 class=\"p-2\">Notifications</h2>\n </div>\n</div>\n\n<ul ngbNav\n #nav=\"ngbNav\"\n class=\"nav-tabs\">\n <li [ngbNavItem]=\"1\">\n <a ngbNavLink>Current Notifications</a>\n <ng-template ngbNavContent>\n <pw-current-notifications></pw-current-notifications>\n </ng-template>\n </li>\n <li [ngbNavItem]=\"2\">\n <a ngbNavLink>Dismissed Notifications</a>\n <ng-template ngbNavContent>\n <pw-dismissed-notifications></pw-dismissed-notifications>\n </ng-template>\n </li>\n</ul>\n\n<div [ngbNavOutlet]=\"nav\"></div>\n", styles: [".icon-dismiss{position:relative;right:15px;top:30px;z-index:9}.noti-list{overflow-x:hidden!important}.noti-buttons{flex:auto}.main-div{padding:0 20px}.card{padding-bottom:0}@media screen and (max-width: 480px){.noty-body{width:240px}}\n"] }]
|
|
431
|
+
}] });
|
|
432
|
+
|
|
433
|
+
class SearchComponent {
|
|
434
|
+
constructor(route, service) {
|
|
435
|
+
this.route = route;
|
|
436
|
+
this.service = service;
|
|
437
|
+
this.objectKeys = Object.keys;
|
|
438
|
+
}
|
|
439
|
+
ngOnInit() {
|
|
440
|
+
this.subscriptionId = PermissionService.selectedSubscription.id;
|
|
441
|
+
this.route.queryParams.subscribe(response => {
|
|
442
|
+
this.keyword = response['keyword'];
|
|
443
|
+
if (this.keyword) {
|
|
444
|
+
this.search();
|
|
445
|
+
}
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
search() {
|
|
449
|
+
this.service.search(this.keyword, this.subscriptionId).subscribe(response => {
|
|
450
|
+
this.result = response;
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
trackByUserId(_index, item) {
|
|
454
|
+
return item.id;
|
|
455
|
+
}
|
|
456
|
+
trackByFaqId(_index, item) {
|
|
457
|
+
return item.id;
|
|
458
|
+
}
|
|
459
|
+
trackBySkill(_index, item) {
|
|
460
|
+
return item.id;
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
SearchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: SearchComponent, deps: [{ token: i1$1.ActivatedRoute }, { token: i1.DashboardService }], target: i0.ɵɵFactoryTarget.Component });
|
|
464
|
+
SearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: SearchComponent, selector: "pw-search", ngImport: i0, template: "<div class=\"container-fluid dashboard-card overflow-hidden\">\n <div class=\"dashboard\">\n <div class=\"dashboard-body\">\n <div class=\"row\">\n <div class=\"col-12 my-3 mt-4\">\n <h2>Search Results</h2>\n </div>\n </div>\n <div class=\"row faqlist search-result\">\n <div class=\"col-12\">\n <div data-cy=\"faq-list\">\n <ng-container *ngIf=\"result\">\n <div *ngFor=\"let group of objectKeys(result); let idx = index\"\n [ngSwitch]=\"group\">\n <ng-container *ngSwitchCase=\"'users'\">\n <ng-container *ngIf=\"result[group].length\">\n <h6 class=\"gradient-custom-branding\">\n {{ group | uppercase }}\n </h6>\n <div class=\"row px-2\">\n <div class=\"col-12 ms-2 faq-item\"\n *ngFor=\"\n let user of result[group];\n let idx1 = index;\n trackBy: trackByUserId\n \">\n <div class=\"accordion\">\n <div class=\"accord-title p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a href=\"javascript:void(0)\"\n class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n [href]=\"'#collapse' + idx1 + idx\"><span>{{\n user.first_name !== null\n ? user.first_name\n : user?.email\n }}</span></a>\n </h5>\n <p class=\"m-0 title-font\">\n <strong *ngIf=\"user.user_skills?.length > 0\">Skills :\n </strong>\n <span class=\"badge bg-success m-1\"\n *ngFor=\"\n let skill of user.user_skills;\n let isLast = last;\n trackBy: trackBySkill\n \">\n {{ skill.name\n }}{{ isLast ? '' : ', ' }}</span>\n </p>\n <p class=\"m-0 title-font\"\n *ngIf=\"\n user?.user_profile?.headline\n ?.length > 0\n \">\n {{ user?.user_profile?.headline }}\n </p>\n <p class=\"m-0 title-font\"\n *ngIf=\"\n user?.user_profile?.country\n ?.length > 0\n \">\n <strong>Location : </strong>{{ user?.user_profile?.country }}\n </p>\n </div>\n <div [id]=\"'collapse' + idx1 + idx\"\n class=\"panel-collapse collapse in p-3\">\n <div class=\"display-block overflow-hidden\">\n <div class=\"row align-items-center\">\n <div class=\"col-sm-3\">\n <ng-container *ngIf=\"\n user?.user_avatar\n ?.length > 0;\n else noProfileImg\n \">\n <ng-container *ngFor=\"\n let profile_image of user.user_avatar\n \">\n <div class=\"text-center my-2\"\n *ngIf=\"\n profile_image.width ===\n 200\n \">\n <div class=\"avatar\">\n <img class=\"img-fluid\"\n [src]=\"\n profile_image.url\n \"\n alt=\"\"\n onerror=\"this.onerror=null;this.src='assets/img/icons/male.png';\" />\n </div>\n </div>\n </ng-container>\n </ng-container>\n <ng-template #noProfileImg>\n <div class=\"text-center my-2\">\n <div class=\"avatar\">\n <img src=\"/assets/img/icons/male.png\"\n alt=\"\"\n class=\"img-fluid\" />\n </div>\n </div>\n </ng-template>\n </div>\n <div class=\"col-sm-9\">\n <ul class=\"name-fl\">\n <li>\n <strong>First Name:\n </strong>\n <span>{{\n user.first_name !==\n null\n ? user.first_name\n : 'N/A'\n }}</span>\n </li>\n <li>\n <strong>Last Name:\n </strong>\n <span>{{\n user.last_name !==\n null\n ? user.last_name\n : 'N/A'\n }}</span>\n </li>\n </ul>\n <p>\n <strong>Email: </strong>\n <span>{{\n user.email !== null\n ? user.email\n : 'N/A'\n }}</span>\n </p>\n <p>\n <strong>Description:\n </strong>\n <span>{{\n user?.user_profile\n ?.description !==\n null\n ? user?.user_profile\n ?.description\n : 'N/A'\n }}</span>\n </p>\n <div class=\"view-btn text-end\">\n <a class=\"btn btn-outline-primary inline-block\"\n [routerLink]=\"[\n '/members/' +\n user.slug\n ]\">View More</a>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'faqs'\">\n <ng-container *ngIf=\"result[group].length\">\n <h6 class=\"gradient-custom-branding\">\n {{ group | uppercase }}\n </h6>\n <div class=\"row px-2\">\n <div class=\"col-12 ms-2 faq-item\"\n *ngFor=\"\n let faq of result[group];\n let idx2 = index;\n trackBy: trackByFaqId\n \">\n <div class=\"p-2\">\n <div class=\"accord-title1s\">\n <h5 class=\"accordion-title mt-2\">\n <a href=\"javascript:void(0)\"\n class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n [href]=\"'#collapse' + idx2 + idx\">{{ faq.question }}</a>\n </h5>\n </div>\n <div [id]=\"'collapse' + idx2 + idx\"\n class=\"panel-collapse collapse in\">\n <p class=\"faq-search-answer mb-0 pt-3 px-2\"\n [innerHtml]=\"faq.answer\"></p>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n <pw-no-data message=\"No result found.\"\n *ngIf=\"\n result.users?.length === 0 &&\n result.faqs?.length === 0 &&\n result.recipients?.length === 0\n \">\n </pw-no-data>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n", styles: [":root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255)}h6{background-color:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem}a{color:#333;display:block;margin:6px 0;position:relative;transition:all .5s}a:hover{color:var(--titles);text-decoration:underline}.faq-search-answer a{color:#144086;display:inline-block;float:right;font-size:14px;margin-right:15px}.faq-search-answer a:after{right:-10px}.faq-item{border:1px dashed rgba(0,0,0,.1);border-radius:3px;margin:10px;transition:all .2s ease-in-out}.faq-item.faq-item{flex:auto;padding:0}.faq-item a{text-decoration:none}.accord-title1 .faq-search-answer a{margin-right:0!important}a.accordion-toggle:after{display:none}.accord-title p.title-font{font-size:.8rem}.panel-collapse.show{border-top:1px dashed rgba(0,0,0,.1)}.panel-collapse ul{margin-bottom:1rem}.panel-collapse ul.name-fl li{display:inline-block;padding-right:15px}.view-btn a{display:inline-block}.avatar{width:130px;margin:0 auto;display:block}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: i2.UpperCasePipe, name: "uppercase" }] });
|
|
465
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: SearchComponent, decorators: [{
|
|
466
|
+
type: Component,
|
|
467
|
+
args: [{ selector: 'pw-search', template: "<div class=\"container-fluid dashboard-card overflow-hidden\">\n <div class=\"dashboard\">\n <div class=\"dashboard-body\">\n <div class=\"row\">\n <div class=\"col-12 my-3 mt-4\">\n <h2>Search Results</h2>\n </div>\n </div>\n <div class=\"row faqlist search-result\">\n <div class=\"col-12\">\n <div data-cy=\"faq-list\">\n <ng-container *ngIf=\"result\">\n <div *ngFor=\"let group of objectKeys(result); let idx = index\"\n [ngSwitch]=\"group\">\n <ng-container *ngSwitchCase=\"'users'\">\n <ng-container *ngIf=\"result[group].length\">\n <h6 class=\"gradient-custom-branding\">\n {{ group | uppercase }}\n </h6>\n <div class=\"row px-2\">\n <div class=\"col-12 ms-2 faq-item\"\n *ngFor=\"\n let user of result[group];\n let idx1 = index;\n trackBy: trackByUserId\n \">\n <div class=\"accordion\">\n <div class=\"accord-title p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a href=\"javascript:void(0)\"\n class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n [href]=\"'#collapse' + idx1 + idx\"><span>{{\n user.first_name !== null\n ? user.first_name\n : user?.email\n }}</span></a>\n </h5>\n <p class=\"m-0 title-font\">\n <strong *ngIf=\"user.user_skills?.length > 0\">Skills :\n </strong>\n <span class=\"badge bg-success m-1\"\n *ngFor=\"\n let skill of user.user_skills;\n let isLast = last;\n trackBy: trackBySkill\n \">\n {{ skill.name\n }}{{ isLast ? '' : ', ' }}</span>\n </p>\n <p class=\"m-0 title-font\"\n *ngIf=\"\n user?.user_profile?.headline\n ?.length > 0\n \">\n {{ user?.user_profile?.headline }}\n </p>\n <p class=\"m-0 title-font\"\n *ngIf=\"\n user?.user_profile?.country\n ?.length > 0\n \">\n <strong>Location : </strong>{{ user?.user_profile?.country }}\n </p>\n </div>\n <div [id]=\"'collapse' + idx1 + idx\"\n class=\"panel-collapse collapse in p-3\">\n <div class=\"display-block overflow-hidden\">\n <div class=\"row align-items-center\">\n <div class=\"col-sm-3\">\n <ng-container *ngIf=\"\n user?.user_avatar\n ?.length > 0;\n else noProfileImg\n \">\n <ng-container *ngFor=\"\n let profile_image of user.user_avatar\n \">\n <div class=\"text-center my-2\"\n *ngIf=\"\n profile_image.width ===\n 200\n \">\n <div class=\"avatar\">\n <img class=\"img-fluid\"\n [src]=\"\n profile_image.url\n \"\n alt=\"\"\n onerror=\"this.onerror=null;this.src='assets/img/icons/male.png';\" />\n </div>\n </div>\n </ng-container>\n </ng-container>\n <ng-template #noProfileImg>\n <div class=\"text-center my-2\">\n <div class=\"avatar\">\n <img src=\"/assets/img/icons/male.png\"\n alt=\"\"\n class=\"img-fluid\" />\n </div>\n </div>\n </ng-template>\n </div>\n <div class=\"col-sm-9\">\n <ul class=\"name-fl\">\n <li>\n <strong>First Name:\n </strong>\n <span>{{\n user.first_name !==\n null\n ? user.first_name\n : 'N/A'\n }}</span>\n </li>\n <li>\n <strong>Last Name:\n </strong>\n <span>{{\n user.last_name !==\n null\n ? user.last_name\n : 'N/A'\n }}</span>\n </li>\n </ul>\n <p>\n <strong>Email: </strong>\n <span>{{\n user.email !== null\n ? user.email\n : 'N/A'\n }}</span>\n </p>\n <p>\n <strong>Description:\n </strong>\n <span>{{\n user?.user_profile\n ?.description !==\n null\n ? user?.user_profile\n ?.description\n : 'N/A'\n }}</span>\n </p>\n <div class=\"view-btn text-end\">\n <a class=\"btn btn-outline-primary inline-block\"\n [routerLink]=\"[\n '/members/' +\n user.slug\n ]\">View More</a>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'faqs'\">\n <ng-container *ngIf=\"result[group].length\">\n <h6 class=\"gradient-custom-branding\">\n {{ group | uppercase }}\n </h6>\n <div class=\"row px-2\">\n <div class=\"col-12 ms-2 faq-item\"\n *ngFor=\"\n let faq of result[group];\n let idx2 = index;\n trackBy: trackByFaqId\n \">\n <div class=\"p-2\">\n <div class=\"accord-title1s\">\n <h5 class=\"accordion-title mt-2\">\n <a href=\"javascript:void(0)\"\n class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n [href]=\"'#collapse' + idx2 + idx\">{{ faq.question }}</a>\n </h5>\n </div>\n <div [id]=\"'collapse' + idx2 + idx\"\n class=\"panel-collapse collapse in\">\n <p class=\"faq-search-answer mb-0 pt-3 px-2\"\n [innerHtml]=\"faq.answer\"></p>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n <pw-no-data message=\"No result found.\"\n *ngIf=\"\n result.users?.length === 0 &&\n result.faqs?.length === 0 &&\n result.recipients?.length === 0\n \">\n </pw-no-data>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n", styles: [":root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255)}h6{background-color:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem}a{color:#333;display:block;margin:6px 0;position:relative;transition:all .5s}a:hover{color:var(--titles);text-decoration:underline}.faq-search-answer a{color:#144086;display:inline-block;float:right;font-size:14px;margin-right:15px}.faq-search-answer a:after{right:-10px}.faq-item{border:1px dashed rgba(0,0,0,.1);border-radius:3px;margin:10px;transition:all .2s ease-in-out}.faq-item.faq-item{flex:auto;padding:0}.faq-item a{text-decoration:none}.accord-title1 .faq-search-answer a{margin-right:0!important}a.accordion-toggle:after{display:none}.accord-title p.title-font{font-size:.8rem}.panel-collapse.show{border-top:1px dashed rgba(0,0,0,.1)}.panel-collapse ul{margin-bottom:1rem}.panel-collapse ul.name-fl li{display:inline-block;padding-right:15px}.view-btn a{display:inline-block}.avatar{width:130px;margin:0 auto;display:block}\n"] }]
|
|
468
|
+
}], ctorParameters: function () { return [{ type: i1$1.ActivatedRoute }, { type: i1.DashboardService }]; } });
|
|
469
|
+
|
|
470
|
+
// const PRODUCT_MENU: Routes = [
|
|
471
|
+
// // Demo products
|
|
472
|
+
// {
|
|
473
|
+
// path: ':slug/build',
|
|
474
|
+
// loadChildren: () =>
|
|
475
|
+
// import(
|
|
476
|
+
// '@app/modules/products/posiwise-build/private/posiwise-build-private.module'
|
|
477
|
+
// ).then(m => m.PosiWiseBuildPrivateModule),
|
|
478
|
+
// data: { preload: true, delay: true, permission: 'Pages.Product.PosiWise' },
|
|
479
|
+
// canLoad: [AdminGuardService]
|
|
480
|
+
// },
|
|
481
|
+
// {
|
|
482
|
+
// path: ':slug/emptyproject',
|
|
483
|
+
// loadChildren: () =>
|
|
484
|
+
// import('@app/modules/products/empty-project/private/empty-project-private.module').then(
|
|
485
|
+
// m => m.EmptyProjectPrivateModule
|
|
486
|
+
// ),
|
|
487
|
+
// data: { preload: true, delay: true, permission: 'Pages.Product.EmptyProject' },
|
|
488
|
+
// canLoad: [AdminGuardService]
|
|
489
|
+
// },
|
|
490
|
+
// {
|
|
491
|
+
// path: ':slug/hyperdashboard',
|
|
492
|
+
// loadChildren: () =>
|
|
493
|
+
// import('@hyper-dashboard/demo1/private/demo1-private.module').then(
|
|
494
|
+
// m => m.Demo1PrivateModule
|
|
495
|
+
// ),
|
|
496
|
+
// data: { preload: true, delay: true, permission: 'Pages.Product.Dashboard_Demo' },
|
|
497
|
+
// canLoad: [ModuleAccessGuard]
|
|
498
|
+
// },
|
|
499
|
+
// {
|
|
500
|
+
// path: ':slug/paas',
|
|
501
|
+
// loadChildren: () =>
|
|
502
|
+
// import('@hyper-dashboard/demo2/private/demo2-private.module').then(
|
|
503
|
+
// m => m.Demo2PrivateModule
|
|
504
|
+
// ),
|
|
505
|
+
// data: { preload: true, delay: true, permission: 'Pages.Product.Dashboard_Demo' },
|
|
506
|
+
// canLoad: [ModuleAccessGuard]
|
|
507
|
+
// },
|
|
508
|
+
// /// //////////////////////////////
|
|
509
|
+
// // Actual Products
|
|
510
|
+
// /// //////////////////////////////
|
|
511
|
+
// // Talent hub
|
|
512
|
+
// {
|
|
513
|
+
// path: ':slug/talent',
|
|
514
|
+
// loadChildren: () =>
|
|
515
|
+
// import('@app/modules/products/talent-hub/private/talent-hub-private.module').then(
|
|
516
|
+
// m => m.TalenthubPrivateModule
|
|
517
|
+
// ),
|
|
518
|
+
// data: { preload: true, delay: true, permission: 'Pages.Product.TalentHub' },
|
|
519
|
+
// canLoad: [ModuleAccessGuard]
|
|
520
|
+
// },
|
|
521
|
+
// // Continuous IMPROVEMENT
|
|
522
|
+
// {
|
|
523
|
+
// path: ':slug/coach',
|
|
524
|
+
// loadChildren: () =>
|
|
525
|
+
// import('@super-coach/private/super-coach-private.module').then(
|
|
526
|
+
// m => m.SuperCoachPrivateModule
|
|
527
|
+
// ),
|
|
528
|
+
// data: { preload: true, delay: true, permission: 'Pages.Product.Coach' },
|
|
529
|
+
// canLoad: [ModuleAccessGuard]
|
|
530
|
+
// },
|
|
531
|
+
// // Continuous IMPROVEMENT
|
|
532
|
+
// {
|
|
533
|
+
// path: ':slug/crm',
|
|
534
|
+
// loadChildren: () =>
|
|
535
|
+
// import('@smart-crm/private/smart-crm-private.module').then(
|
|
536
|
+
// m => m.SmartCrmPrivateModule
|
|
537
|
+
// ),
|
|
538
|
+
// data: { preload: true, delay: true, permission: 'Pages.Product.CRM' },
|
|
539
|
+
// canLoad: [ModuleAccessGuard]
|
|
540
|
+
// },
|
|
541
|
+
// // Stakeholders
|
|
542
|
+
// {
|
|
543
|
+
// path: ':slug/stakeholders',
|
|
544
|
+
// loadChildren: () =>
|
|
545
|
+
// import('@stakeholders/private/stakeholders-private.module').then(
|
|
546
|
+
// m => m.StakeholdersPrivateModule
|
|
547
|
+
// ),
|
|
548
|
+
// data: { preload: true, delay: true, permission: 'Pages.Product.Stakeholders' },
|
|
549
|
+
// canLoad: [ModuleAccessGuard]
|
|
550
|
+
// },
|
|
551
|
+
// // CloudOlive
|
|
552
|
+
// {
|
|
553
|
+
// path: ':slug/cloudolive',
|
|
554
|
+
// loadChildren: () =>
|
|
555
|
+
// import('@cloudolive/private/cloudolive-private.module').then(
|
|
556
|
+
// m => m.CloudOlivePrivateModule
|
|
557
|
+
// ),
|
|
558
|
+
// data: { preload: true, delay: true, permission: 'Pages.Product.CloudOlive' },
|
|
559
|
+
// canLoad: [ModuleAccessGuard]
|
|
560
|
+
// }
|
|
561
|
+
// ];
|
|
562
|
+
const SIDEBAR_MENU = [
|
|
563
|
+
{
|
|
564
|
+
path: 'home',
|
|
565
|
+
component: HomeComponent,
|
|
566
|
+
data: {
|
|
567
|
+
title: 'Dashboard'
|
|
568
|
+
}
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
path: 'splash',
|
|
572
|
+
component: SplashComponent
|
|
573
|
+
},
|
|
574
|
+
// {
|
|
575
|
+
// path: 'admin',
|
|
576
|
+
// loadChildren: () => import('@admin/admin.module').then(m => m.AdminModule),
|
|
577
|
+
// data: { preload: true, delay: true, permission: 'Pages.Admin' },
|
|
578
|
+
// canLoad: [ModuleAccessGuard]
|
|
579
|
+
// },
|
|
580
|
+
// {
|
|
581
|
+
// path: ':slug/posts',
|
|
582
|
+
// loadChildren: () =>
|
|
583
|
+
// import('@app/modules/blog/private/blog-private.module').then(m => m.BlogPrivateModule),
|
|
584
|
+
// data: { preload: true, delay: true }
|
|
585
|
+
// },
|
|
586
|
+
// {
|
|
587
|
+
// path: ':slug/enterprise',
|
|
588
|
+
// loadChildren: () =>
|
|
589
|
+
// import('@app/modules/enterprise/enterprise.module').then(m => m.EnterpriseModule),
|
|
590
|
+
// data: { preload: true, delay: true }
|
|
591
|
+
// },
|
|
592
|
+
// {
|
|
593
|
+
// path: ':slug/message',
|
|
594
|
+
// loadChildren: () =>
|
|
595
|
+
// import('@app/modules/messaging/messaging.module').then(m => m.MessagingModule),
|
|
596
|
+
// data: { preload: true, delay: true, permission: 'Pages.Chat' }
|
|
597
|
+
// },
|
|
598
|
+
// {
|
|
599
|
+
// path: 'message',
|
|
600
|
+
// loadChildren: () =>
|
|
601
|
+
// import('@app/modules/messaging/messaging.module').then(m => m.MessagingModule),
|
|
602
|
+
// data: { preload: true, delay: true }
|
|
603
|
+
// },
|
|
604
|
+
{
|
|
605
|
+
path: ':slug/faq',
|
|
606
|
+
component: FaqComponent,
|
|
607
|
+
data: {
|
|
608
|
+
title: 'FAQ Page'
|
|
609
|
+
}
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
path: ':slug/faq/:id',
|
|
613
|
+
component: FaqDetailsComponent,
|
|
614
|
+
data: {
|
|
615
|
+
title: 'FAQ Page'
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
// ...PRODUCT_MENU
|
|
619
|
+
];
|
|
620
|
+
const ACCOUNT_MENU = [
|
|
621
|
+
{
|
|
622
|
+
path: 'account',
|
|
623
|
+
component: AccountComponent,
|
|
624
|
+
children: [
|
|
625
|
+
{
|
|
626
|
+
path: 'details',
|
|
627
|
+
component: AccountDetailsComponent
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
path: 'subscriptions',
|
|
631
|
+
component: UserSubscriptionListComponent
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
path: 'subscriptions/add-new',
|
|
635
|
+
component: AddSubscriptionComponent
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
path: 'subscriptions/:subscriptionId/product/:productId/update-payment',
|
|
639
|
+
component: UpdatePaymentDetailsComponent
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
path: 'subscriptions/details/:subscriptionId',
|
|
643
|
+
component: UserSubscriptionDetailsComponent
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
path: 'subscriptions/upgrade/:subscriptionId/:productId',
|
|
647
|
+
component: UpgradeSubscriptionComponent
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
path: 'subscriptions/:subscriptionId/credential',
|
|
651
|
+
component: SubscriptionCredentialComponent
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
path: 'change-subscription',
|
|
655
|
+
component: AddSubscriptionComponent
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
path: 'invoice',
|
|
659
|
+
component: UserInvoiceComponent
|
|
660
|
+
}
|
|
661
|
+
]
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
path: 'members/:user-slug',
|
|
665
|
+
component: UserProfilePageComponent,
|
|
666
|
+
data: {
|
|
667
|
+
title: 'User Profile Page'
|
|
668
|
+
},
|
|
669
|
+
runGuardsAndResolvers: 'always'
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
path: 'add-subscription',
|
|
673
|
+
component: AddSubscriptionComponent,
|
|
674
|
+
data: {
|
|
675
|
+
title: 'Add Subscription'
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
];
|
|
679
|
+
const SETTING_MENU = [
|
|
680
|
+
{
|
|
681
|
+
path: 'settings',
|
|
682
|
+
component: SettingsComponent,
|
|
683
|
+
data: {
|
|
684
|
+
title: 'Settings'
|
|
685
|
+
},
|
|
686
|
+
children: [
|
|
687
|
+
{
|
|
688
|
+
path: 'communication',
|
|
689
|
+
component: CommunicationTabComponent
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
path: 'security',
|
|
693
|
+
component: SecurityTabComponent
|
|
694
|
+
},
|
|
695
|
+
{
|
|
696
|
+
path: 'other',
|
|
697
|
+
component: OthersTabComponent
|
|
698
|
+
}
|
|
699
|
+
]
|
|
700
|
+
}
|
|
701
|
+
];
|
|
702
|
+
const routes = [
|
|
703
|
+
{
|
|
704
|
+
path: '',
|
|
705
|
+
children: [
|
|
706
|
+
// Sidebar
|
|
707
|
+
...SIDEBAR_MENU,
|
|
708
|
+
// Account
|
|
709
|
+
...ACCOUNT_MENU,
|
|
710
|
+
// Settings
|
|
711
|
+
...SETTING_MENU,
|
|
712
|
+
// support
|
|
713
|
+
{
|
|
714
|
+
path: 'support',
|
|
715
|
+
component: SupportComponent
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
path: 'support-details/add',
|
|
719
|
+
component: SupportDetailsComponent
|
|
720
|
+
},
|
|
721
|
+
// Search
|
|
722
|
+
{
|
|
723
|
+
path: 'search',
|
|
724
|
+
component: SearchComponent,
|
|
725
|
+
data: {
|
|
726
|
+
title: 'Search'
|
|
727
|
+
}
|
|
728
|
+
},
|
|
729
|
+
// Notifications
|
|
730
|
+
{
|
|
731
|
+
path: 'notifications',
|
|
732
|
+
component: NotificationsPageComponent,
|
|
733
|
+
data: {
|
|
734
|
+
title: 'Notifications'
|
|
735
|
+
}
|
|
736
|
+
},
|
|
737
|
+
// Static pages
|
|
738
|
+
{
|
|
739
|
+
path: 'privacy-policies',
|
|
740
|
+
component: PrivacyPolicyComponent,
|
|
741
|
+
data: {
|
|
742
|
+
title: 'Privacy Policy Page'
|
|
743
|
+
}
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
path: 'terms-of-service',
|
|
747
|
+
component: TermsConditionsComponent,
|
|
748
|
+
data: {
|
|
749
|
+
title: 'Terms of Service Page'
|
|
750
|
+
}
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
path: 'privacy-and-tos',
|
|
754
|
+
component: PrivacyAndTosComponent,
|
|
755
|
+
data: {
|
|
756
|
+
title: 'Privacy Policy and Tos Page'
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
]
|
|
760
|
+
}
|
|
761
|
+
];
|
|
762
|
+
class DashboardRoutingModule {
|
|
763
|
+
}
|
|
764
|
+
DashboardRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DashboardRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
765
|
+
DashboardRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.5", ngImport: i0, type: DashboardRoutingModule, imports: [i1$1.RouterModule], exports: [RouterModule] });
|
|
766
|
+
DashboardRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DashboardRoutingModule, imports: [RouterModule.forChild(routes), RouterModule] });
|
|
767
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DashboardRoutingModule, decorators: [{
|
|
768
|
+
type: NgModule,
|
|
769
|
+
args: [{
|
|
770
|
+
imports: [RouterModule.forChild(routes)],
|
|
771
|
+
exports: [RouterModule]
|
|
772
|
+
}]
|
|
773
|
+
}] });
|
|
774
|
+
|
|
775
|
+
class FooterComponent extends AppBaseComponent {
|
|
776
|
+
constructor() {
|
|
777
|
+
super(...arguments);
|
|
778
|
+
this.currentDate = new Date();
|
|
779
|
+
}
|
|
780
|
+
ngOnInit() {
|
|
781
|
+
var _a, _b, _c;
|
|
782
|
+
this.productPrivacyId = (_a = this.appConfig) === null || _a === void 0 ? void 0 : _a.main_tos_id;
|
|
783
|
+
this.companyName = (_c = (_b = this.appConfig) === null || _b === void 0 ? void 0 : _b.company) === null || _c === void 0 ? void 0 : _c.name;
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
FooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: FooterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
787
|
+
FooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: FooterComponent, selector: "pw-footer", usesInheritance: true, ngImport: i0, template: "<!-- Footer Starts -->\n<footer>\n <div class=\"container-fluid\">\n <div class=\"text-center\">\n <a [routerLink]=\"['/privacy-and-tos', productPrivacyId]\">Privacy</a> and\n <a [routerLink]=\"['/privacy-and-tos', productPrivacyId]\">Terms of Service</a>\n </div>\n <p class=\"copyright text-center\">\n Copyright © {{ currentDate | date: 'yyyy' }} {{ companyName }}. All rights\n reserved.\n </p>\n </div>\n</footer>\n<!-- Footer Ends -->\n", dependencies: [{ kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: i2.DatePipe, name: "date" }] });
|
|
788
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: FooterComponent, decorators: [{
|
|
789
|
+
type: Component,
|
|
790
|
+
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" }]
|
|
791
|
+
}] });
|
|
792
|
+
|
|
793
|
+
class NavbarComponent extends AppBaseComponent {
|
|
794
|
+
constructor(injector, notificationService, config, scriptLoader, store) {
|
|
795
|
+
super(injector);
|
|
796
|
+
this.notificationService = notificationService;
|
|
797
|
+
this.scriptLoader = scriptLoader;
|
|
798
|
+
this.store = store;
|
|
799
|
+
this.notificationCount = 0;
|
|
800
|
+
this.noNoti = true;
|
|
801
|
+
this.notifications = [];
|
|
802
|
+
this.loadExternalScripts();
|
|
803
|
+
config.autoClose = false;
|
|
804
|
+
this.store.select(getUser).subscribe(res => {
|
|
805
|
+
this.slug = res.currentUser ? res.currentUser.slug : '';
|
|
806
|
+
});
|
|
807
|
+
this.getNotifications();
|
|
808
|
+
this.updateNotifications();
|
|
809
|
+
}
|
|
810
|
+
ngOnDestroy() {
|
|
811
|
+
clearInterval(this.notiInterval);
|
|
812
|
+
}
|
|
813
|
+
get isSupportMenu() {
|
|
814
|
+
var _a;
|
|
815
|
+
return (_a = PermissionService.selectedProduct) === null || _a === void 0 ? void 0 : _a.gitlab_service_desk_email;
|
|
816
|
+
}
|
|
817
|
+
loadExternalScripts() {
|
|
818
|
+
this.scriptLoader.loadScripts('head', [
|
|
819
|
+
'https://cdnjs.cloudflare.com/ajax/libs/jstree/3.3.11/jstree.min.js',
|
|
820
|
+
'https://cdnjs.cloudflare.com/ajax/libs/quill/1.3.7/quill.min.js',
|
|
821
|
+
'https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js'
|
|
822
|
+
], true);
|
|
823
|
+
this.scriptLoader.loadStyle('https://cdnjs.cloudflare.com/ajax/libs/jstree/3.3.11/themes/default/style.min.css');
|
|
824
|
+
}
|
|
825
|
+
getNotifications() {
|
|
826
|
+
this.notificationService.getNotifications().subscribe((data) => {
|
|
827
|
+
this.notificationsCount(data);
|
|
828
|
+
this.notificationService.notiWebSocket().subscribe(res => {
|
|
829
|
+
if (res) {
|
|
830
|
+
this.notificationsCount([res]);
|
|
831
|
+
}
|
|
832
|
+
});
|
|
833
|
+
if (data.length > 0) {
|
|
834
|
+
this.notificationService.showNotifications(this.notifications);
|
|
835
|
+
}
|
|
836
|
+
});
|
|
837
|
+
}
|
|
838
|
+
notificationsCount(noti) {
|
|
839
|
+
var _a;
|
|
840
|
+
for (let i = 0; i < noti.length; i++) {
|
|
841
|
+
if (!((_a = noti[i]) === null || _a === void 0 ? void 0 : _a.dismissed) && noti[i].show_on_dashboard) {
|
|
842
|
+
this.notifications.push(noti[i]);
|
|
843
|
+
}
|
|
844
|
+
if (noti[i].unread === true) {
|
|
845
|
+
this.notificationCount++;
|
|
846
|
+
}
|
|
847
|
+
if (noti[i].dismissed === false) {
|
|
848
|
+
this.noNoti = false;
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
this.sortNotifications();
|
|
852
|
+
}
|
|
853
|
+
sortNotifications() {
|
|
854
|
+
this.notifications = orderBy(this.notifications, ['id'], ['desc']);
|
|
855
|
+
}
|
|
856
|
+
updateNotifications() {
|
|
857
|
+
this.notificationService.getNotifications().subscribe(data => {
|
|
858
|
+
const val = data;
|
|
859
|
+
if (val.length > 0) {
|
|
860
|
+
val.forEach(element => {
|
|
861
|
+
const existNotification = this.notifications.find(({ id }) => element.id === id);
|
|
862
|
+
if (!existNotification) {
|
|
863
|
+
if (!element.dismissed && element.show_on_dashboard) {
|
|
864
|
+
this.notifications.push(element);
|
|
865
|
+
}
|
|
866
|
+
if (element.unread === true) {
|
|
867
|
+
this.notificationCount++;
|
|
868
|
+
}
|
|
869
|
+
if (element.dismissed === false) {
|
|
870
|
+
this.noNoti = false;
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
});
|
|
874
|
+
}
|
|
875
|
+
this.sortNotifications();
|
|
876
|
+
});
|
|
877
|
+
}
|
|
878
|
+
checkNoti() {
|
|
879
|
+
if (this.notiDrop.isOpen()) {
|
|
880
|
+
// Mark all Notifications as read
|
|
881
|
+
this.notificationService.readNotifications().subscribe(() => {
|
|
882
|
+
this.notificationCount = 0;
|
|
883
|
+
});
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
dismiss(id, _e) {
|
|
887
|
+
this.notificationService.dismissNotification(id).subscribe(data => {
|
|
888
|
+
// Remove notification from notification array
|
|
889
|
+
// TODO: Add animation while removing
|
|
890
|
+
const index = this.notifications.findIndex(x => x.id === id);
|
|
891
|
+
this.notifications.splice(index, 1);
|
|
892
|
+
const val = JSON.parse(data);
|
|
893
|
+
if (val.length > 0) {
|
|
894
|
+
val.forEach(element => {
|
|
895
|
+
const existNotification = this.notifications.find(({ key }) => element.id === key);
|
|
896
|
+
if (!existNotification) {
|
|
897
|
+
this.notifications.push(element);
|
|
898
|
+
if (element.unread === true) {
|
|
899
|
+
this.notificationCount++;
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
});
|
|
903
|
+
}
|
|
904
|
+
if (this.notifications.length === 0) {
|
|
905
|
+
this.noNoti = true;
|
|
906
|
+
}
|
|
907
|
+
this.sortNotifications();
|
|
908
|
+
});
|
|
909
|
+
}
|
|
910
|
+
onLangChange(lang) {
|
|
911
|
+
this.translation.setActiveLang(lang);
|
|
912
|
+
}
|
|
913
|
+
logout() {
|
|
914
|
+
this.router.navigate(['logout']);
|
|
915
|
+
}
|
|
916
|
+
redirectToNotification() {
|
|
917
|
+
this.notiDrop.close();
|
|
918
|
+
this.router.navigate(['/notifications']);
|
|
919
|
+
}
|
|
920
|
+
onSearch(search) {
|
|
921
|
+
if (search.value) {
|
|
922
|
+
this.router.navigate(['search'], { queryParams: { keyword: search.value } });
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
NavbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: NavbarComponent, deps: [{ token: i0.Injector }, { token: i1.NotificationService }, { token: i1$2.NgbDropdownConfig }, { token: i1.ScriptLoaderService }, { token: i3$1.Store }], target: i0.ɵɵFactoryTarget.Component });
|
|
927
|
+
NavbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: NavbarComponent, selector: "pw-navbar", inputs: { logo: "logo" }, providers: [NgbDropdownConfig], viewQueries: [{ propertyName: "notiDrop", first: true, predicate: ["notiDrop"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<!-- Navbar (Header) Starts -->\n<nav class=\"navbar navbar-expand-lg navbar-light fixed-top bg-faded shadow-sm\">\n <div class=\"container-fluid\">\n <div class=\"navbar-header\">\n <button type=\"button\"\n class=\"navbar-toggle d-lg-none float-start\"\n data-bs-toggle=\"collapse\">\n <span class=\"sr-only\">Toggle navigation</span> <span class=\"icon-bar\"></span>\n <span class=\"icon-bar\"></span>\n <span class=\"icon-bar\"></span>\n </button>\n <form class=\"navbar-form navbar-right mt-1\"\n role=\"search\"\n (ngSubmit)=\"onSearch(search)\">\n <div class=\"input-group navbar-search-input\">\n <input type=\"text\"\n #search\n class=\"form-control\"\n placeholder=\"Search\" />\n <button class=\"input-group-text btn\"\n type=\"submit\">\n <i class=\"ft-search\" aria-hidden=\"true\"></i>\n </button>\n </div>\n <div id=\"tips-onboarding-step6\"></div>\n </form>\n </div>\n <div class=\"logo-img\">\n <ng-template [ngIf]=\"logo\">\n <img [src]=\"logo.full\"\n onerror=\"this.onerror=null;this.src='assets/img/logos/logo_text_big_dark.png';\"\n alt=\"img\" />\n </ng-template>\n </div>\n <div *rbacAllow=\"'SuperAdmin'\">\n <div class=\"mb-0\">\n <select class=\"form-select form-control-sm\"\n data-flag=\"true\"\n (change)=\"onLangChange($event.target.value)\">\n <option value=\"en\">English</option>\n <option value=\"es\">Spanish</option>\n <option value=\"de\">German</option>\n <option value=\"pt\">Portuguese</option>\n </select>\n </div>\n </div>\n <div class=\"navbar-container\">\n <div id=\"navbarSupportedContent\">\n <ul class=\"navbar-nav\">\n <li class=\"nav-item\"\n ngbDropdown\n #notiDrop=\"ngbDropdown\"\n placement=\"bottom-left\"\n autoClose=\"true\">\n <a class=\"nav-link position-relative\"\n id=\"dropdownBasic2\"\n ngbDropdownToggle\n (click)=\"checkNoti()\">\n <i\n class=\"ft-bell font-medium-3 blue-grey darken-4\"\n aria-hidden=\"true\"\n ></i>\n <span class=\"notification badge rounded-pill bg-danger\"\n *ngIf=\"notificationCount > 0\">\n {{ notificationCount }}\n </span>\n <p class=\"d-none\">Notifications</p>\n </a>\n <div id=\"tips-onboarding-step5\"></div>\n <div ngbDropdownMenu\n aria-labelledby=\"dropdownBasic2\"\n class=\"notification-dropdown\">\n <div class=\"noti-list\"\n *ngIf=\"noNoti === false\">\n <li *ngFor=\"let noti of notifications; let idx = index\"\n #notiRef\n [id]=\"'noti' + idx\"\n [pTooltip]=\"noti?.content\"\n tooltipPosition=\"top\"\n class=\"dropdown-item noti-container border-bottom border-bottom-blue-grey border-bottom-lighten-4 d-flex align-items-center\">\n <div class=\"d-flex justify-content-between w-100\">\n <div>\n <div class=\"btn btn-circle me-3\"\n [ngClass]=\"{\n 'btn-danger':\n noti.note_type === 'administrative',\n 'btn-secondary':\n noti.note_type === 'object_event',\n 'btn-primary':\n noti.note_type === 'user_generated'\n }\">\n <i\n class=\"fal float-start\"\n [ngClass]=\"{\n 'fa-bell':\n noti.note_type === 'administrative',\n 'fa-share-alt':\n noti.note_type === 'object_event',\n 'fa-bells':\n noti.note_type === 'user_generated'\n }\"\n aria-hidden=\"true\"\n ></i>\n </div>\n <div class=\"d-inline-block text-truncate noti-content\">\n {{ noti?.content }}\n <span class=\"noti-text d-block\">\n <span class=\"fal fa-clock\"></span>\n {{ noti?.created_at | sinceAgo }}\n </span>\n </div>\n </div>\n <div>\n <a (click)=\"dismiss(noti.id, $event)\">\n <i class=\"far fa-times\" aria-hidden=\"true\"></i></a>\n </div>\n </div>\n </li>\n </div>\n <div class=\"noti-list\"\n *ngIf=\"noNoti === true\">\n <a class=\"dropdown-item noti-container border-bottom border-bottom-blue-grey border-bottom-lighten-4\">\n <i\n class=\"ft-bell success float-start d-block font-large-1 mt-1 me-2\"\n aria-hidden=\"true\"\n ></i>\n <span class=\"noti-wrapper\">\n <span class=\"noti-title line-height-1 d-block success\">You are all caught up.</span>\n <span class=\"noti-text\">You currently do not have any notifications.</span>\n </span>\n </a>\n </div>\n <a (click)=\"redirectToNotification()\"\n class=\"noti-footer text-center d-block border-top border-top-blue-grey border-top-lighten-4 text-bold-400 p-3\">Read All Notifications</a>\n </div>\n </li>\n <li class=\"nav-item\"\n ngbDropdown\n placement=\"bottom-left\"\n autoClose=\"true\">\n <button class=\"nav-link position-relative dropdown-toggle\"\n type=\"button\"\n id=\"dropdownBasic3\"\n data-bs-toggle=\"dropdown\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n style=\"border: none\">\n <i\n class=\"ft-user font-medium-3 blue-grey darken-4\"\n aria-hidden=\"true\"\n ></i>\n <p class=\"d-none\">User Settings</p>\n </button>\n <div ngbDropdownMenu\n aria-labelledby=\"dropdownBasic3\">\n <button class=\"dropdown-item py-2\"\n [routerLink]=\"['/members', slug]\">\n <i class=\"ft-edit me-2\" aria-hidden=\"true\"></i>\n <span>My Profile</span>\n </button>\n <button class=\"dropdown-item py-2\"\n routerLink=\"/account/details\">\n <i class=\"ft-user me-2\" aria-hidden=\"true\"></i> <span>Account</span>\n </button>\n <button class=\"dropdown-item py-2\"\n routerLink=\"/settings/communication\">\n <i class=\"ft-settings me-2\" aria-hidden=\"true\"></i>\n <span>Settings</span>\n </button>\n <button *ngIf=\"isSupportMenu\"\n class=\"dropdown-item py-2\"\n routerLink=\"/support\">\n <i class=\"fa fa-question me-2\" aria-hidden=\"true\"></i>\n <span> Support</span>\n </button>\n <div class=\"dropdown-divider\"></div>\n <button class=\"dropdown-item logout\"\n (click)=\"logout()\">\n <i class=\"fa fa-sign-out-alt me-2\" aria-hidden=\"true\"></i>\n <span>Logout</span>\n </button>\n </div>\n </li>\n </ul>\n </div>\n </div>\n </div>\n</nav>\n<!-- Navbar (Header) Ends -->\n", styles: [".navbar,.fixed-top{position:fixed!important;background-color:#fff;padding:0 30px 5px;height:45px}.mb-0{margin-bottom:-4px!important}.navbar-nav>li{margin-right:20px}.logo-img img{margin-right:15px;max-height:30px}.logo-text{color:#000;display:block;font-size:1.4rem;font-weight:400;letter-spacing:2px;padding:5px 0;text-align:left;text-transform:uppercase}.dropdown-menu{left:auto;right:0;z-index:25000!important}.noti-container{cursor:pointer}.noti-content{vertical-align:top!important;width:280px}.noti-container,.icon-dismiss{padding:15px;position:relative;z-index:9}.noti-list{max-height:400px;overflow:auto}.nav-link{background-color:#fff}@media screen and (max-width: 991px){.navbar{padding:0 30px 5px}}@media screen and (max-width: 575px){.navbar{padding:0 15px 5px 10px}}@media screen and (max-width: 575px){.noti-content{width:250px}}@media only screen and (max-width: 480px){.logo-img{max-width:100px}.logo-img img{width:100%}}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i3.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: 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: "directive", type: i1$2.NgbNavbar, selector: ".navbar" }] });
|
|
928
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: NavbarComponent, decorators: [{
|
|
929
|
+
type: Component,
|
|
930
|
+
args: [{ selector: 'pw-navbar', providers: [NgbDropdownConfig], template: "<!-- Navbar (Header) Starts -->\n<nav class=\"navbar navbar-expand-lg navbar-light fixed-top bg-faded shadow-sm\">\n <div class=\"container-fluid\">\n <div class=\"navbar-header\">\n <button type=\"button\"\n class=\"navbar-toggle d-lg-none float-start\"\n data-bs-toggle=\"collapse\">\n <span class=\"sr-only\">Toggle navigation</span> <span class=\"icon-bar\"></span>\n <span class=\"icon-bar\"></span>\n <span class=\"icon-bar\"></span>\n </button>\n <form class=\"navbar-form navbar-right mt-1\"\n role=\"search\"\n (ngSubmit)=\"onSearch(search)\">\n <div class=\"input-group navbar-search-input\">\n <input type=\"text\"\n #search\n class=\"form-control\"\n placeholder=\"Search\" />\n <button class=\"input-group-text btn\"\n type=\"submit\">\n <i class=\"ft-search\" aria-hidden=\"true\"></i>\n </button>\n </div>\n <div id=\"tips-onboarding-step6\"></div>\n </form>\n </div>\n <div class=\"logo-img\">\n <ng-template [ngIf]=\"logo\">\n <img [src]=\"logo.full\"\n onerror=\"this.onerror=null;this.src='assets/img/logos/logo_text_big_dark.png';\"\n alt=\"img\" />\n </ng-template>\n </div>\n <div *rbacAllow=\"'SuperAdmin'\">\n <div class=\"mb-0\">\n <select class=\"form-select form-control-sm\"\n data-flag=\"true\"\n (change)=\"onLangChange($event.target.value)\">\n <option value=\"en\">English</option>\n <option value=\"es\">Spanish</option>\n <option value=\"de\">German</option>\n <option value=\"pt\">Portuguese</option>\n </select>\n </div>\n </div>\n <div class=\"navbar-container\">\n <div id=\"navbarSupportedContent\">\n <ul class=\"navbar-nav\">\n <li class=\"nav-item\"\n ngbDropdown\n #notiDrop=\"ngbDropdown\"\n placement=\"bottom-left\"\n autoClose=\"true\">\n <a class=\"nav-link position-relative\"\n id=\"dropdownBasic2\"\n ngbDropdownToggle\n (click)=\"checkNoti()\">\n <i\n class=\"ft-bell font-medium-3 blue-grey darken-4\"\n aria-hidden=\"true\"\n ></i>\n <span class=\"notification badge rounded-pill bg-danger\"\n *ngIf=\"notificationCount > 0\">\n {{ notificationCount }}\n </span>\n <p class=\"d-none\">Notifications</p>\n </a>\n <div id=\"tips-onboarding-step5\"></div>\n <div ngbDropdownMenu\n aria-labelledby=\"dropdownBasic2\"\n class=\"notification-dropdown\">\n <div class=\"noti-list\"\n *ngIf=\"noNoti === false\">\n <li *ngFor=\"let noti of notifications; let idx = index\"\n #notiRef\n [id]=\"'noti' + idx\"\n [pTooltip]=\"noti?.content\"\n tooltipPosition=\"top\"\n class=\"dropdown-item noti-container border-bottom border-bottom-blue-grey border-bottom-lighten-4 d-flex align-items-center\">\n <div class=\"d-flex justify-content-between w-100\">\n <div>\n <div class=\"btn btn-circle me-3\"\n [ngClass]=\"{\n 'btn-danger':\n noti.note_type === 'administrative',\n 'btn-secondary':\n noti.note_type === 'object_event',\n 'btn-primary':\n noti.note_type === 'user_generated'\n }\">\n <i\n class=\"fal float-start\"\n [ngClass]=\"{\n 'fa-bell':\n noti.note_type === 'administrative',\n 'fa-share-alt':\n noti.note_type === 'object_event',\n 'fa-bells':\n noti.note_type === 'user_generated'\n }\"\n aria-hidden=\"true\"\n ></i>\n </div>\n <div class=\"d-inline-block text-truncate noti-content\">\n {{ noti?.content }}\n <span class=\"noti-text d-block\">\n <span class=\"fal fa-clock\"></span>\n {{ noti?.created_at | sinceAgo }}\n </span>\n </div>\n </div>\n <div>\n <a (click)=\"dismiss(noti.id, $event)\">\n <i class=\"far fa-times\" aria-hidden=\"true\"></i></a>\n </div>\n </div>\n </li>\n </div>\n <div class=\"noti-list\"\n *ngIf=\"noNoti === true\">\n <a class=\"dropdown-item noti-container border-bottom border-bottom-blue-grey border-bottom-lighten-4\">\n <i\n class=\"ft-bell success float-start d-block font-large-1 mt-1 me-2\"\n aria-hidden=\"true\"\n ></i>\n <span class=\"noti-wrapper\">\n <span class=\"noti-title line-height-1 d-block success\">You are all caught up.</span>\n <span class=\"noti-text\">You currently do not have any notifications.</span>\n </span>\n </a>\n </div>\n <a (click)=\"redirectToNotification()\"\n class=\"noti-footer text-center d-block border-top border-top-blue-grey border-top-lighten-4 text-bold-400 p-3\">Read All Notifications</a>\n </div>\n </li>\n <li class=\"nav-item\"\n ngbDropdown\n placement=\"bottom-left\"\n autoClose=\"true\">\n <button class=\"nav-link position-relative dropdown-toggle\"\n type=\"button\"\n id=\"dropdownBasic3\"\n data-bs-toggle=\"dropdown\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n style=\"border: none\">\n <i\n class=\"ft-user font-medium-3 blue-grey darken-4\"\n aria-hidden=\"true\"\n ></i>\n <p class=\"d-none\">User Settings</p>\n </button>\n <div ngbDropdownMenu\n aria-labelledby=\"dropdownBasic3\">\n <button class=\"dropdown-item py-2\"\n [routerLink]=\"['/members', slug]\">\n <i class=\"ft-edit me-2\" aria-hidden=\"true\"></i>\n <span>My Profile</span>\n </button>\n <button class=\"dropdown-item py-2\"\n routerLink=\"/account/details\">\n <i class=\"ft-user me-2\" aria-hidden=\"true\"></i> <span>Account</span>\n </button>\n <button class=\"dropdown-item py-2\"\n routerLink=\"/settings/communication\">\n <i class=\"ft-settings me-2\" aria-hidden=\"true\"></i>\n <span>Settings</span>\n </button>\n <button *ngIf=\"isSupportMenu\"\n class=\"dropdown-item py-2\"\n routerLink=\"/support\">\n <i class=\"fa fa-question me-2\" aria-hidden=\"true\"></i>\n <span> Support</span>\n </button>\n <div class=\"dropdown-divider\"></div>\n <button class=\"dropdown-item logout\"\n (click)=\"logout()\">\n <i class=\"fa fa-sign-out-alt me-2\" aria-hidden=\"true\"></i>\n <span>Logout</span>\n </button>\n </div>\n </li>\n </ul>\n </div>\n </div>\n </div>\n</nav>\n<!-- Navbar (Header) Ends -->\n", styles: [".navbar,.fixed-top{position:fixed!important;background-color:#fff;padding:0 30px 5px;height:45px}.mb-0{margin-bottom:-4px!important}.navbar-nav>li{margin-right:20px}.logo-img img{margin-right:15px;max-height:30px}.logo-text{color:#000;display:block;font-size:1.4rem;font-weight:400;letter-spacing:2px;padding:5px 0;text-align:left;text-transform:uppercase}.dropdown-menu{left:auto;right:0;z-index:25000!important}.noti-container{cursor:pointer}.noti-content{vertical-align:top!important;width:280px}.noti-container,.icon-dismiss{padding:15px;position:relative;z-index:9}.noti-list{max-height:400px;overflow:auto}.nav-link{background-color:#fff}@media screen and (max-width: 991px){.navbar{padding:0 30px 5px}}@media screen and (max-width: 575px){.navbar{padding:0 15px 5px 10px}}@media screen and (max-width: 575px){.noti-content{width:250px}}@media only screen and (max-width: 480px){.logo-img{max-width:100px}.logo-img img{width:100%}}\n"] }]
|
|
931
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1.NotificationService }, { type: i1$2.NgbDropdownConfig }, { type: i1.ScriptLoaderService }, { type: i3$1.Store }]; }, propDecorators: { logo: [{
|
|
932
|
+
type: Input
|
|
933
|
+
}], notiDrop: [{
|
|
934
|
+
type: ViewChild,
|
|
935
|
+
args: ['notiDrop', { static: true }]
|
|
936
|
+
}] } });
|
|
937
|
+
|
|
938
|
+
// Sidebar menu Routes and data
|
|
939
|
+
const ROUTES = [
|
|
940
|
+
// Dashboard Home
|
|
941
|
+
{
|
|
942
|
+
permission: 'Pages.Dashboard',
|
|
943
|
+
path: '/home',
|
|
944
|
+
title: 'Home',
|
|
945
|
+
icon: 'ft-home',
|
|
946
|
+
class: '',
|
|
947
|
+
badge: '',
|
|
948
|
+
badgeClass: '',
|
|
949
|
+
isExternalLink: false,
|
|
950
|
+
submenu: [],
|
|
951
|
+
visible: true,
|
|
952
|
+
order: 1
|
|
953
|
+
},
|
|
954
|
+
// Menus for Admin page
|
|
955
|
+
{
|
|
956
|
+
permission: 'Pages.Admin',
|
|
957
|
+
path: null,
|
|
958
|
+
title: 'Admin',
|
|
959
|
+
icon: 'ft-user',
|
|
960
|
+
class: 'has-sub',
|
|
961
|
+
badge: '',
|
|
962
|
+
badgeClass: '',
|
|
963
|
+
isExternalLink: false,
|
|
964
|
+
visible: true,
|
|
965
|
+
order: 3,
|
|
966
|
+
submenu: [
|
|
967
|
+
{
|
|
968
|
+
permission: 'Pages.Admin',
|
|
969
|
+
path: '/admin/generic',
|
|
970
|
+
title: 'Generic',
|
|
971
|
+
icon: 'far fa-book',
|
|
972
|
+
class: '',
|
|
973
|
+
badge: '',
|
|
974
|
+
badgeClass: '',
|
|
975
|
+
isExternalLink: false,
|
|
976
|
+
submenu: [],
|
|
977
|
+
visible: true
|
|
978
|
+
},
|
|
979
|
+
{
|
|
980
|
+
permission: 'Pages.Admin.FAQ',
|
|
981
|
+
path: '/admin/faq/list',
|
|
982
|
+
title: 'FAQs',
|
|
983
|
+
icon: 'fa fa-question',
|
|
984
|
+
class: '',
|
|
985
|
+
badge: '',
|
|
986
|
+
badgeClass: '',
|
|
987
|
+
isExternalLink: false,
|
|
988
|
+
submenu: [],
|
|
989
|
+
visible: true
|
|
990
|
+
},
|
|
991
|
+
{
|
|
992
|
+
permission: 'Pages.Admin.ContactUs',
|
|
993
|
+
path: '/admin/contact-us/list',
|
|
994
|
+
title: 'Contact Us',
|
|
995
|
+
icon: 'fa fa-address-book',
|
|
996
|
+
class: '',
|
|
997
|
+
badge: '',
|
|
998
|
+
badgeClass: '',
|
|
999
|
+
isExternalLink: false,
|
|
1000
|
+
submenu: [],
|
|
1001
|
+
visible: true
|
|
1002
|
+
},
|
|
1003
|
+
{
|
|
1004
|
+
permission: 'Pages.Admin.DomainConfig',
|
|
1005
|
+
path: '/admin/domain-config/list',
|
|
1006
|
+
title: 'Domain Config',
|
|
1007
|
+
icon: 'fa fa-fw fa-cog',
|
|
1008
|
+
class: '',
|
|
1009
|
+
badge: '',
|
|
1010
|
+
badgeClass: '',
|
|
1011
|
+
isExternalLink: false,
|
|
1012
|
+
submenu: [],
|
|
1013
|
+
visible: true
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
permission: 'Pages.Admin.LoginNotification',
|
|
1017
|
+
path: '/admin/login-notifications/list',
|
|
1018
|
+
title: 'Notifications',
|
|
1019
|
+
icon: 'fa fa-fw fa-bell',
|
|
1020
|
+
class: '',
|
|
1021
|
+
badge: '',
|
|
1022
|
+
badgeClass: '',
|
|
1023
|
+
isExternalLink: false,
|
|
1024
|
+
submenu: [],
|
|
1025
|
+
visible: true
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
permission: 'Pages.Admin.Users',
|
|
1029
|
+
path: '/admin/users',
|
|
1030
|
+
title: 'Users',
|
|
1031
|
+
icon: 'far fa-user-cog',
|
|
1032
|
+
class: '',
|
|
1033
|
+
badge: '',
|
|
1034
|
+
badgeClass: '',
|
|
1035
|
+
isExternalLink: false,
|
|
1036
|
+
submenu: [],
|
|
1037
|
+
visible: true
|
|
1038
|
+
},
|
|
1039
|
+
{
|
|
1040
|
+
permission: 'Pages.Admin.Subscription',
|
|
1041
|
+
path: '/admin/subscriptions',
|
|
1042
|
+
title: 'Subscriptions',
|
|
1043
|
+
icon: 'ft-box',
|
|
1044
|
+
class: '',
|
|
1045
|
+
badge: '',
|
|
1046
|
+
badgeClass: '',
|
|
1047
|
+
isExternalLink: false,
|
|
1048
|
+
submenu: [],
|
|
1049
|
+
visible: true
|
|
1050
|
+
},
|
|
1051
|
+
{
|
|
1052
|
+
permission: 'Pages.Admin.Product',
|
|
1053
|
+
path: '/admin/products',
|
|
1054
|
+
title: 'Products',
|
|
1055
|
+
icon: 'far fa-parking',
|
|
1056
|
+
class: '',
|
|
1057
|
+
badge: '',
|
|
1058
|
+
badgeClass: '',
|
|
1059
|
+
isExternalLink: false,
|
|
1060
|
+
submenu: [],
|
|
1061
|
+
visible: true
|
|
1062
|
+
},
|
|
1063
|
+
{
|
|
1064
|
+
permission: 'Pages.Admin.Newsletter',
|
|
1065
|
+
path: '/admin/newsletter',
|
|
1066
|
+
title: 'Newsletters',
|
|
1067
|
+
icon: 'far fa-newspaper',
|
|
1068
|
+
class: '',
|
|
1069
|
+
badge: '',
|
|
1070
|
+
badgeClass: '',
|
|
1071
|
+
isExternalLink: false,
|
|
1072
|
+
submenu: [],
|
|
1073
|
+
visible: true
|
|
1074
|
+
},
|
|
1075
|
+
{
|
|
1076
|
+
permission: 'Pages.Admin.Tags',
|
|
1077
|
+
path: '/admin/tags',
|
|
1078
|
+
title: 'Tags',
|
|
1079
|
+
icon: 'far fa-tags',
|
|
1080
|
+
class: '',
|
|
1081
|
+
badge: '',
|
|
1082
|
+
badgeClass: '',
|
|
1083
|
+
isExternalLink: false,
|
|
1084
|
+
submenu: [],
|
|
1085
|
+
visible: true
|
|
1086
|
+
},
|
|
1087
|
+
{
|
|
1088
|
+
permission: 'Pages.Admin.Tips',
|
|
1089
|
+
path: '/admin/tips/list',
|
|
1090
|
+
title: 'Tips',
|
|
1091
|
+
icon: 'far fa-lightbulb',
|
|
1092
|
+
class: '',
|
|
1093
|
+
badge: '',
|
|
1094
|
+
badgeClass: '',
|
|
1095
|
+
isExternalLink: false,
|
|
1096
|
+
submenu: [],
|
|
1097
|
+
visible: true
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
permission: 'Pages.Admin.Roles',
|
|
1101
|
+
path: '/admin/permissions',
|
|
1102
|
+
title: 'Permissions',
|
|
1103
|
+
icon: 'fas fa-key',
|
|
1104
|
+
class: '',
|
|
1105
|
+
badge: '',
|
|
1106
|
+
badgeClass: '',
|
|
1107
|
+
isExternalLink: false,
|
|
1108
|
+
submenu: [],
|
|
1109
|
+
visible: true
|
|
1110
|
+
},
|
|
1111
|
+
{
|
|
1112
|
+
permission: 'Pages.Admin.Tos',
|
|
1113
|
+
path: '/admin/tos/list',
|
|
1114
|
+
title: 'Privacy & TOS',
|
|
1115
|
+
icon: 'fas fa-sticky-note',
|
|
1116
|
+
class: '',
|
|
1117
|
+
badge: '',
|
|
1118
|
+
badgeClass: '',
|
|
1119
|
+
isExternalLink: false,
|
|
1120
|
+
submenu: [],
|
|
1121
|
+
visible: true
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
permission: 'Pages.Admin.Credential',
|
|
1125
|
+
path: '/admin/credentials',
|
|
1126
|
+
title: 'Credentials',
|
|
1127
|
+
icon: 'fas fa-file-signature',
|
|
1128
|
+
class: '',
|
|
1129
|
+
badge: '',
|
|
1130
|
+
badgeClass: '',
|
|
1131
|
+
isExternalLink: false,
|
|
1132
|
+
submenu: [],
|
|
1133
|
+
visible: true
|
|
1134
|
+
},
|
|
1135
|
+
{
|
|
1136
|
+
permission: 'Pages.Admin.Tracking',
|
|
1137
|
+
path: '/admin/tracking',
|
|
1138
|
+
title: 'Tracking',
|
|
1139
|
+
icon: 'fa fa-map-marker',
|
|
1140
|
+
class: '',
|
|
1141
|
+
badge: '',
|
|
1142
|
+
badgeClass: '',
|
|
1143
|
+
isExternalLink: false,
|
|
1144
|
+
submenu: [],
|
|
1145
|
+
visible: true
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
permission: 'Pages.Admin.Global-Config',
|
|
1149
|
+
path: '/admin/global-config',
|
|
1150
|
+
title: 'Global Configs',
|
|
1151
|
+
icon: 'fa fa-fw fa-cog',
|
|
1152
|
+
class: '',
|
|
1153
|
+
badge: '',
|
|
1154
|
+
badgeClass: '',
|
|
1155
|
+
isExternalLink: false,
|
|
1156
|
+
submenu: [],
|
|
1157
|
+
visible: true
|
|
1158
|
+
}
|
|
1159
|
+
]
|
|
1160
|
+
}
|
|
1161
|
+
];
|
|
1162
|
+
// THE FOLLOWING GOES INTO THE BOTTOM OF THE SIDEBAR
|
|
1163
|
+
const FAQ_Menu = {
|
|
1164
|
+
permission: 'Pages.Product.{permission_key}.{feature_key}.FAQ',
|
|
1165
|
+
path: '/faq',
|
|
1166
|
+
title: 'FAQ',
|
|
1167
|
+
icon: 'ft-info',
|
|
1168
|
+
class: '',
|
|
1169
|
+
badge: '',
|
|
1170
|
+
badgeClass: '',
|
|
1171
|
+
isExternalLink: false,
|
|
1172
|
+
submenu: [],
|
|
1173
|
+
visible: true,
|
|
1174
|
+
order: 999
|
|
1175
|
+
};
|
|
1176
|
+
const ENTERPRISE_MENU = {
|
|
1177
|
+
permission: 'Pages.Product.{permission_key}.{feature_key}.Enterprise',
|
|
1178
|
+
path: '/enterprise',
|
|
1179
|
+
title: 'Enterprise',
|
|
1180
|
+
icon: 'ft-package',
|
|
1181
|
+
class: 'has-sub',
|
|
1182
|
+
badge: '',
|
|
1183
|
+
badgeClass: 'badge rounded-pill bg-danger float-end mt-1',
|
|
1184
|
+
isExternalLink: false,
|
|
1185
|
+
order: 4,
|
|
1186
|
+
submenu: [
|
|
1187
|
+
{
|
|
1188
|
+
permission: '',
|
|
1189
|
+
path: ':slug/enterprise/members',
|
|
1190
|
+
title: 'Members',
|
|
1191
|
+
icon: 'far fa-users',
|
|
1192
|
+
class: '',
|
|
1193
|
+
badge: '',
|
|
1194
|
+
badgeClass: '',
|
|
1195
|
+
isExternalLink: false,
|
|
1196
|
+
submenu: [],
|
|
1197
|
+
visible: true
|
|
1198
|
+
},
|
|
1199
|
+
{
|
|
1200
|
+
permission: 'Pages.Beta',
|
|
1201
|
+
path: ':slug/enterprise/groups',
|
|
1202
|
+
title: 'Teams',
|
|
1203
|
+
icon: 'far fa-users-class',
|
|
1204
|
+
class: '',
|
|
1205
|
+
badge: '',
|
|
1206
|
+
badgeClass: '',
|
|
1207
|
+
isExternalLink: false,
|
|
1208
|
+
submenu: [],
|
|
1209
|
+
visible: true
|
|
1210
|
+
},
|
|
1211
|
+
{
|
|
1212
|
+
permission: 'Pages.Beta',
|
|
1213
|
+
path: ':slug/enterprise/communications',
|
|
1214
|
+
title: 'Communications',
|
|
1215
|
+
icon: 'fas fa-comments',
|
|
1216
|
+
class: '',
|
|
1217
|
+
badge: '',
|
|
1218
|
+
badgeClass: '',
|
|
1219
|
+
isExternalLink: false,
|
|
1220
|
+
submenu: [],
|
|
1221
|
+
visible: true
|
|
1222
|
+
},
|
|
1223
|
+
{
|
|
1224
|
+
permission: 'Pages.Beta',
|
|
1225
|
+
path: ':slug/enterprise/wiki',
|
|
1226
|
+
title: 'Documentation',
|
|
1227
|
+
icon: 'fab fa-wikipedia-w',
|
|
1228
|
+
class: '',
|
|
1229
|
+
badge: '',
|
|
1230
|
+
badgeClass: '',
|
|
1231
|
+
isExternalLink: false,
|
|
1232
|
+
submenu: [],
|
|
1233
|
+
visible: true
|
|
1234
|
+
},
|
|
1235
|
+
{
|
|
1236
|
+
permission: 'Pages.Beta',
|
|
1237
|
+
path: ':slug/enterprise/insights',
|
|
1238
|
+
title: 'Insights',
|
|
1239
|
+
icon: 'far fa-tag',
|
|
1240
|
+
class: '',
|
|
1241
|
+
badge: '',
|
|
1242
|
+
badgeClass: '',
|
|
1243
|
+
isExternalLink: false,
|
|
1244
|
+
submenu: [],
|
|
1245
|
+
visible: true
|
|
1246
|
+
}
|
|
1247
|
+
],
|
|
1248
|
+
visible: true
|
|
1249
|
+
};
|
|
1250
|
+
const CHAT_MENU = {
|
|
1251
|
+
permission: 'Pages.Product.{permission_key}.{feature_key}.Chat',
|
|
1252
|
+
path: '/message',
|
|
1253
|
+
title: 'Chat',
|
|
1254
|
+
icon: 'ft-message-square',
|
|
1255
|
+
class: '',
|
|
1256
|
+
badge: '',
|
|
1257
|
+
badgeClass: 'badge rounded-pill bg-danger float-end mt-1',
|
|
1258
|
+
isExternalLink: false,
|
|
1259
|
+
submenu: [],
|
|
1260
|
+
order: 2,
|
|
1261
|
+
visible: true
|
|
1262
|
+
};
|
|
1263
|
+
const BLOG_MENU = {
|
|
1264
|
+
permission: 'Pages.Product.{permission_key}.{feature_key}.Blog',
|
|
1265
|
+
path: '/posts/list',
|
|
1266
|
+
title: 'Blog',
|
|
1267
|
+
icon: 'far fa-blog',
|
|
1268
|
+
class: '',
|
|
1269
|
+
badge: '',
|
|
1270
|
+
badgeClass: '',
|
|
1271
|
+
isExternalLink: false,
|
|
1272
|
+
submenu: [],
|
|
1273
|
+
visible: true
|
|
1274
|
+
};
|
|
1275
|
+
|
|
1276
|
+
class SidebarComponent extends AppBaseComponent {
|
|
1277
|
+
constructor(mailboxService, cdr, googleAnalyticService, webSocket, document, injector) {
|
|
1278
|
+
super(injector);
|
|
1279
|
+
this.mailboxService = mailboxService;
|
|
1280
|
+
this.cdr = cdr;
|
|
1281
|
+
this.googleAnalyticService = googleAnalyticService;
|
|
1282
|
+
this.webSocket = webSocket;
|
|
1283
|
+
this.document = document;
|
|
1284
|
+
this.sidebarRenderEvent = new EventEmitter();
|
|
1285
|
+
this.subscription = new Subscription();
|
|
1286
|
+
this.productMenus = []; // List of products to be populated contains 'Pages.Product'
|
|
1287
|
+
this.menus = [];
|
|
1288
|
+
this.webSocket.webSocket$.subscribe(response => {
|
|
1289
|
+
if (response.event === SOCKET_TYPE.MSG) {
|
|
1290
|
+
this.mailboxService.incrementUnreadCount(1);
|
|
1291
|
+
}
|
|
1292
|
+
});
|
|
1293
|
+
}
|
|
1294
|
+
get selectedSubscription() {
|
|
1295
|
+
return PermissionService.selectedSubscription;
|
|
1296
|
+
}
|
|
1297
|
+
get selectedProduct() {
|
|
1298
|
+
return PermissionService.selectedProduct;
|
|
1299
|
+
}
|
|
1300
|
+
ngOnInit() {
|
|
1301
|
+
const a = 1;
|
|
1302
|
+
// Get the company name to bind the side bar nav
|
|
1303
|
+
this.companyName = this.appConfig.company.name;
|
|
1304
|
+
// Load the app-sidebar.js which contain DOM logic/script
|
|
1305
|
+
$.getScript('/assets/js/app-sidebar.js');
|
|
1306
|
+
// Appends all the products menus to the sidebar
|
|
1307
|
+
// PRODUCT_MENUS.forEach(product => {
|
|
1308
|
+
// ROUTES.push(product);
|
|
1309
|
+
// });
|
|
1310
|
+
this.userStore().subscribe(user => {
|
|
1311
|
+
this.user = user;
|
|
1312
|
+
this.googleAnalyticService.setUserContext(this.user);
|
|
1313
|
+
// Check for side effect
|
|
1314
|
+
if (this.user) {
|
|
1315
|
+
this.permissionService.user = user;
|
|
1316
|
+
this.populateSidebarMenus();
|
|
1317
|
+
}
|
|
1318
|
+
});
|
|
1319
|
+
timer(1000).subscribe(() => {
|
|
1320
|
+
if (localStorage.getItem('sidebarState') === 'true') {
|
|
1321
|
+
this.document.getElementById('sidebarToggle').click();
|
|
1322
|
+
}
|
|
1323
|
+
});
|
|
1324
|
+
}
|
|
1325
|
+
/** *
|
|
1326
|
+
* Appends all the products menus and assign the first default product
|
|
1327
|
+
*/
|
|
1328
|
+
populateSidebarMenus() {
|
|
1329
|
+
var _a, _b, _c, _d, _e;
|
|
1330
|
+
this.menus = [];
|
|
1331
|
+
const subs = this.constructProductsMenus();
|
|
1332
|
+
// Check if there is subscription slug in the url
|
|
1333
|
+
const subscriptionSlug = (_e = (_d = (_c = (_b = (_a = this.route) === null || _a === void 0 ? void 0 : _a.firstChild) === null || _b === void 0 ? void 0 : _b.firstChild) === null || _c === void 0 ? void 0 : _c.firstChild) === null || _d === void 0 ? void 0 : _d.snapshot) === null || _e === void 0 ? void 0 : _e.params['slug'];
|
|
1334
|
+
let currentSubscription;
|
|
1335
|
+
if (subscriptionSlug) {
|
|
1336
|
+
currentSubscription = subs.find(x => x.slug === subscriptionSlug);
|
|
1337
|
+
PermissionService.selectedProduct = this.productMenus.find(x => (x === null || x === void 0 ? void 0 : x.subscriptionId) === (currentSubscription === null || currentSubscription === void 0 ? void 0 : currentSubscription.id));
|
|
1338
|
+
}
|
|
1339
|
+
else {
|
|
1340
|
+
// Sets the first product as default
|
|
1341
|
+
PermissionService.selectedProduct = this.productMenus[0] || null;
|
|
1342
|
+
currentSubscription = this.user.subscriptions.find(x => { var _a; return x.id === ((_a = PermissionService.selectedProduct) === null || _a === void 0 ? void 0 : _a.subscriptionId); });
|
|
1343
|
+
}
|
|
1344
|
+
this.menus = uniqBy(this.menus, 'title');
|
|
1345
|
+
if (currentSubscription) {
|
|
1346
|
+
this.permissionService.setCurrentProduct(PermissionService.selectedProduct);
|
|
1347
|
+
this.permissionService.setCurrentSubscription(currentSubscription);
|
|
1348
|
+
// Appends the product menus to the sidebar
|
|
1349
|
+
this.addProductMenusOnPermission(PermissionService.selectedProduct);
|
|
1350
|
+
this.appendSlugForNonProductMenus();
|
|
1351
|
+
}
|
|
1352
|
+
this.setLogo();
|
|
1353
|
+
if (!currentSubscription) {
|
|
1354
|
+
this.router.navigate(['/account/subscriptions']);
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
constructProductsMenus() {
|
|
1358
|
+
// filter non product permissions from the auth.granted
|
|
1359
|
+
const grantedNonProductPermissions = Object.keys(this.user.auth.granted).filter(x => !x.includes('Pages.Product'));
|
|
1360
|
+
grantedNonProductPermissions.forEach(permission_name => {
|
|
1361
|
+
const menu = ROUTES.find(x => x.permission.includes(permission_name) &&
|
|
1362
|
+
this.permissionService.isGranted(permission_name));
|
|
1363
|
+
if (menu) {
|
|
1364
|
+
this.menus.push(menu);
|
|
1365
|
+
}
|
|
1366
|
+
}, this);
|
|
1367
|
+
// Show only the first product of the same subscription
|
|
1368
|
+
const subscriptions = cloneDeep(this.user.subscriptions).map(subs => {
|
|
1369
|
+
subs.products = subs.products.filter((_, index) => index === 0);
|
|
1370
|
+
return subs;
|
|
1371
|
+
});
|
|
1372
|
+
subscriptions.forEach(subscription => {
|
|
1373
|
+
subscription.products.forEach(product => {
|
|
1374
|
+
product['organisation'] = subscription.organisation;
|
|
1375
|
+
product['subscriptionId'] = subscription.id;
|
|
1376
|
+
product['subscription_slug'] = subscription.slug;
|
|
1377
|
+
});
|
|
1378
|
+
});
|
|
1379
|
+
subscriptions
|
|
1380
|
+
.flatMap(x => x.products)
|
|
1381
|
+
.forEach(product => {
|
|
1382
|
+
const productMenu = ROUTES.find(x => { var _a; return (_a = x === null || x === void 0 ? void 0 : x.permissionKeys) === null || _a === void 0 ? void 0 : _a.includes(product.permission_key); });
|
|
1383
|
+
if (product.subscriptionId && productMenu) {
|
|
1384
|
+
const item = cloneDeep(productMenu);
|
|
1385
|
+
item['id'] = product.id;
|
|
1386
|
+
item['subscriptionId'] = product.subscriptionId;
|
|
1387
|
+
item['privacyServiceId'] = product.product_privacy_service_id;
|
|
1388
|
+
item['subscription_slug'] = product.subscription_slug;
|
|
1389
|
+
item['permission_key'] = product.permission_key;
|
|
1390
|
+
item['feature_key'] = product.feature_key;
|
|
1391
|
+
item['nickname'] = product.nickname;
|
|
1392
|
+
item['organisation'] = product.organisation;
|
|
1393
|
+
item['gitlab_service_desk_email'] = product.gitlab_service_desk_email;
|
|
1394
|
+
item.menus.forEach(menu => {
|
|
1395
|
+
menu.path = `/${product.subscription_slug}${menu.path}`;
|
|
1396
|
+
});
|
|
1397
|
+
this.productMenus.push(item);
|
|
1398
|
+
}
|
|
1399
|
+
});
|
|
1400
|
+
return subscriptions;
|
|
1401
|
+
}
|
|
1402
|
+
/**
|
|
1403
|
+
* Performing search functionality & closing the sidebar
|
|
1404
|
+
* */
|
|
1405
|
+
onSearch(search) {
|
|
1406
|
+
if (search.value) {
|
|
1407
|
+
this.router.navigate(['search'], { queryParams: { keyword: search.value } });
|
|
1408
|
+
$('.navbar-toggle').on('click', () => {
|
|
1409
|
+
console.log('clicked!');
|
|
1410
|
+
});
|
|
1411
|
+
}
|
|
1412
|
+
}
|
|
1413
|
+
navigateToProductDashboard(product) {
|
|
1414
|
+
var _a, _b;
|
|
1415
|
+
if (((_a = PermissionService.selectedProduct) === null || _a === void 0 ? void 0 : _a.subscriptionId) &&
|
|
1416
|
+
(product === null || product === void 0 ? void 0 : product.subscriptionId) &&
|
|
1417
|
+
((_b = PermissionService.selectedProduct) === null || _b === void 0 ? void 0 : _b.subscriptionId) !== (product === null || product === void 0 ? void 0 : product.subscriptionId)) {
|
|
1418
|
+
// Remove the previous product menus
|
|
1419
|
+
const tabsToRemove = PermissionService.selectedProduct.menus;
|
|
1420
|
+
tabsToRemove.forEach(item => {
|
|
1421
|
+
this.menus = this.menus.filter(x => x.path !== item.path);
|
|
1422
|
+
});
|
|
1423
|
+
}
|
|
1424
|
+
// add the current product menus
|
|
1425
|
+
if ((!PermissionService.selectedProduct ||
|
|
1426
|
+
!isEqual(PermissionService.selectedProduct.subscriptionId, product.subscriptionId)) &&
|
|
1427
|
+
product) {
|
|
1428
|
+
this.addProductMenusOnPermission(product);
|
|
1429
|
+
}
|
|
1430
|
+
PermissionService.selectedProduct = product;
|
|
1431
|
+
this.permissionService.setCurrentProduct(product);
|
|
1432
|
+
const subscription = this.user.subscriptions.find(x => x.id === product.subscriptionId);
|
|
1433
|
+
this.permissionService.setCurrentSubscription(subscription);
|
|
1434
|
+
this.appendSlugForNonProductMenus();
|
|
1435
|
+
this.router.navigateByUrl('/splash', { skipLocationChange: true }).then(() => {
|
|
1436
|
+
this.router.navigate([`${subscription.slug}${product.path}`]);
|
|
1437
|
+
this.setLogo();
|
|
1438
|
+
});
|
|
1439
|
+
}
|
|
1440
|
+
addProductMenusOnPermission(product) {
|
|
1441
|
+
var _a;
|
|
1442
|
+
if ((_a = product === null || product === void 0 ? void 0 : product.menus) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1443
|
+
// Replaces the product key and permission key for chat and enterprise
|
|
1444
|
+
product.menus
|
|
1445
|
+
.filter(menu => menu.permission.includes('{feature_key}'))
|
|
1446
|
+
.forEach(menu => {
|
|
1447
|
+
menu.permission = menu.permission
|
|
1448
|
+
.replace('{feature_key}', product === null || product === void 0 ? void 0 : product.feature_key)
|
|
1449
|
+
.replace('{permission_key}', product.permission_key);
|
|
1450
|
+
}, this);
|
|
1451
|
+
// appends the product menus having permission to the sidebar
|
|
1452
|
+
product === null || product === void 0 ? void 0 : product.menus.forEach((product_menu) => {
|
|
1453
|
+
var _a;
|
|
1454
|
+
if (product_menu.visible &&
|
|
1455
|
+
this.permissionService.evaluatePermissions(product_menu.permission, product.feature_key, product.permission_key)) {
|
|
1456
|
+
const subMenu = [];
|
|
1457
|
+
// binds the sub menus to the main menu for both product and non-product
|
|
1458
|
+
(_a = product_menu === null || product_menu === void 0 ? void 0 : product_menu.submenu) === null || _a === void 0 ? void 0 : _a.forEach((sub_menu) => {
|
|
1459
|
+
if (this.permissionService.evaluatePermissions(sub_menu === null || sub_menu === void 0 ? void 0 : sub_menu.permission, product.feature_key, product.permission_key) ||
|
|
1460
|
+
(sub_menu === null || sub_menu === void 0 ? void 0 : sub_menu.permission) === '') {
|
|
1461
|
+
subMenu.push(sub_menu);
|
|
1462
|
+
}
|
|
1463
|
+
});
|
|
1464
|
+
product_menu.submenu = subMenu;
|
|
1465
|
+
this.menus.push(product_menu);
|
|
1466
|
+
}
|
|
1467
|
+
});
|
|
1468
|
+
this.appendAdminMenu(product);
|
|
1469
|
+
this.getUnreadMessages();
|
|
1470
|
+
}
|
|
1471
|
+
}
|
|
1472
|
+
appendAdminMenu(product) {
|
|
1473
|
+
// Add Admin menu if user is super_admin
|
|
1474
|
+
// Admin menu should be populated if user has SubscriptionSuperAdmin or
|
|
1475
|
+
// SubscriptionAdmin or SubscriptionOwner of a master_product
|
|
1476
|
+
if (this.permissionService.isSuperAdmin()) {
|
|
1477
|
+
this.menus.push(ROUTES.find(x => x.permission.includes('Pages.Admin')));
|
|
1478
|
+
}
|
|
1479
|
+
else {
|
|
1480
|
+
// appends Admin Menus in case of SubscriptionSuperAdmin
|
|
1481
|
+
// eslint-disable-next-line no-lonely-if
|
|
1482
|
+
if (this.user.auth.granted[`Pages.Product.${product.permission_key}.${product.feature_key}.SubscriptionSuperAdmin`] ||
|
|
1483
|
+
this.user.auth.granted[`Pages.Product.${product.permission_key}.${product.feature_key}.SubscriptionSuperOwner`]) {
|
|
1484
|
+
// Incase of SubscriptionAdmin, populate few admin submenus as whitelisted in ADMIN_SUB_MENU_WHITELIST
|
|
1485
|
+
const adminRoute = cloneDeep(ROUTES.find(x => x.permission === 'Pages.Admin'));
|
|
1486
|
+
if (this.menus.findIndex(x => x.permission === 'Pages.Admin') === -1) {
|
|
1487
|
+
adminRoute.submenu = adminRoute.submenu.filter(x => ADMIN_SUB_MENU_WHITELIST.includes(x.permission));
|
|
1488
|
+
this.menus.push(adminRoute);
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1491
|
+
else {
|
|
1492
|
+
this.menus = this.menus.filter(x => x.permission !== 'Pages.Admin');
|
|
1493
|
+
}
|
|
1494
|
+
}
|
|
1495
|
+
this.menus = uniqBy(this.menus, 'title');
|
|
1496
|
+
}
|
|
1497
|
+
setLogo() {
|
|
1498
|
+
var _a, _b, _c, _d, _e;
|
|
1499
|
+
if (PermissionService.selectedSubscription) {
|
|
1500
|
+
this.logo = HelperService.getLogoUrl(PermissionService.selectedSubscription, (_b = (_a = this.appConfig) === null || _a === void 0 ? void 0 : _a.company) === null || _b === void 0 ? void 0 : _b.logos);
|
|
1501
|
+
}
|
|
1502
|
+
else {
|
|
1503
|
+
this.logo = HelperService.getLogoFromSubscription((_c = this.user) === null || _c === void 0 ? void 0 : _c.subscriptions[0], (_e = (_d = this.appConfig) === null || _d === void 0 ? void 0 : _d.company) === null || _e === void 0 ? void 0 : _e.logos);
|
|
1504
|
+
}
|
|
1505
|
+
this.sidebarRenderEvent.emit(this.logo);
|
|
1506
|
+
}
|
|
1507
|
+
/**
|
|
1508
|
+
* Populates the Enterprise option to the side bar menu
|
|
1509
|
+
* Enterprise is not populated from the auth.granted.
|
|
1510
|
+
* If user subscription has more than 4 units
|
|
1511
|
+
*/
|
|
1512
|
+
appendSlugForNonProductMenus() {
|
|
1513
|
+
// remove the enterprise menu first and then append if max_units > 1d
|
|
1514
|
+
this.menus.forEach(route => {
|
|
1515
|
+
var _a, _b, _c;
|
|
1516
|
+
if (((_a = route === null || route === void 0 ? void 0 : route.path) === null || _a === void 0 ? void 0 : _a.includes(':slug')) && ((_b = PermissionService.selectedSubscription) === null || _b === void 0 ? void 0 : _b.slug)) {
|
|
1517
|
+
route.path = route.path.replace(':slug', PermissionService.selectedSubscription.slug);
|
|
1518
|
+
}
|
|
1519
|
+
if ((_c = route === null || route === void 0 ? void 0 : route.submenu) === null || _c === void 0 ? void 0 : _c.length) {
|
|
1520
|
+
route.submenu.forEach(subRoute => {
|
|
1521
|
+
var _a, _b;
|
|
1522
|
+
if (((_a = subRoute === null || subRoute === void 0 ? void 0 : subRoute.path) === null || _a === void 0 ? void 0 : _a.includes(':slug')) &&
|
|
1523
|
+
((_b = PermissionService.selectedSubscription) === null || _b === void 0 ? void 0 : _b.slug)) {
|
|
1524
|
+
subRoute.path = subRoute.path.replace(':slug', PermissionService.selectedSubscription.slug);
|
|
1525
|
+
}
|
|
1526
|
+
});
|
|
1527
|
+
}
|
|
1528
|
+
});
|
|
1529
|
+
}
|
|
1530
|
+
/**
|
|
1531
|
+
* Gets the unread message count to bind the the message badge
|
|
1532
|
+
*/
|
|
1533
|
+
getUnreadMessages() {
|
|
1534
|
+
const chatMenu = this.menus.find(x => x.title.includes('Chat'));
|
|
1535
|
+
if (chatMenu) {
|
|
1536
|
+
this.mailboxService.totalUnreadCount$.subscribe(data => {
|
|
1537
|
+
chatMenu.badge = data > 0 ? String(data) : '';
|
|
1538
|
+
this.cdr.detectChanges();
|
|
1539
|
+
});
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1542
|
+
// set state in localstorage
|
|
1543
|
+
onSidebarToggle(event) {
|
|
1544
|
+
localStorage.setItem('sidebarState', `${event.target.dataset.bsToggle !== 'collapsed'}`);
|
|
1545
|
+
}
|
|
1546
|
+
ngOnDestroy() {
|
|
1547
|
+
super.ngOnDestroy();
|
|
1548
|
+
this.subscription.unsubscribe();
|
|
1549
|
+
}
|
|
1550
|
+
}
|
|
1551
|
+
SidebarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: SidebarComponent, deps: [{ token: i1.MailBoxService }, { token: i0.ChangeDetectorRef }, { token: i1.GoogleAnalyticsService }, { token: i1.WebsocketService }, { token: DOCUMENT }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
1552
|
+
SidebarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: SidebarComponent, selector: "pw-sidebar", outputs: { sidebarRenderEvent: "sidebarRenderEvent" }, usesInheritance: true, ngImport: i0, template: "<!-- Sidebar Header starts -->\n<div class=\"sidebar-header\">\n <div class=\"logo clearfix\">\n <span class=\"logo-text float-start\">\n <div class=\"dropdown\">\n <button [ngClass]=\"{ 'dropdown-toggle': productMenus.length > 1 }\"\n type=\"button\"\n id=\"dropdownMenuButton\"\n [attr.data-bs-toggle]=\"productMenus.length > 1 ? 'dropdown' : ''\"\n style=\"background: none; border: none; padding: 0\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\">\n <div class=\"logo-img logo-text float-start\">\n <ng-template [ngIf]=\"logo\">\n <img [src]=\"logo.square\"\n alt=\"img\"\n onerror=\"this.onerror=null;this.src='assets/img/logos/logo-white.png';\" />\n </ng-template>\n <span class=\"text align-middle fw-bold text-truncate d-inline-block org-text\"\n [title]=\"selectedSubscription?.organisation\"\n [id]=\"selectedSubscription?.id\">\n {{ selectedProduct?.title || companyName }}\n </span>\n </div>\n </button>\n <div class=\"sidebar-title\">\n {{ selectedSubscription?.organisation || companyName }}\n </div>\n <!-- Product Dropdown -->\n <div class=\"dropdown-menu product-dropdown\"\n aria-labelledby=\"dropdownMenuButton\"\n style=\"text-transform: none\"\n *ngIf=\"productMenus.length > 1\">\n <button class=\"dropdown-item text-truncate\"\n *ngFor=\"let product of productMenus | uniqBy: 'subscriptionId'\"\n [attr.subscription_id]=\"product.subscriptionId\"\n (click)=\"navigateToProductDashboard(product)\">\n {{ product.nickname }}\n <span>\n by {{ product.organisation || product.master_sub_name || companyName }}\n </span>\n </button>\n </div>\n </div>\n </span>\n <a class=\"nav-toggle d-none d-sm-none d-md-none d-lg-block\"\n id=\"sidebarToggle\"\n (click)=\"onSidebarToggle($event)\"\n href=\"javascript:;\">\n <i class=\"ft-toggle-right toggle-icon\" data-bs-toggle=\"expanded\" aria-hidden=\"true\"></i>\n </a>\n <a class=\"nav-close d-block d-md-block d-lg-none d-xl-none\"\n id=\"sidebarClose\"\n href=\"javascript:;\">\n <i class=\"ft-x\" aria-hidden=\"true\"></i>\n </a>\n </div>\n</div>\n<!-- Sidebar Header Ends -->\n<!-- Sidebar Content starts -->\n<div class=\"sidebar-content\">\n <div class=\"nav-container\">\n <ul class=\"navigation side-menu\"\n *ngIf=\"menus.length\">\n <li class=\"sidebar-search mx-3 mb-3\"\n (click)=\"$event.stopPropagation()\">\n <form role=\"search\"\n (ngSubmit)=\"onSearch(search)\">\n <div class=\"position-relative has-icon-right\">\n <i class=\"fa fa-search position-absolute\" aria-hidden=\"true\"></i>\n <input type=\"text\"\n class=\"form-control ps-4\"\n placeholder=\"Search\"\n #search />\n </div>\n </form>\n </li>\n <!-- First level menu -->\n <li *ngFor=\"let menuItem of menus | sort\"\n [ngClass]=\"[menuItem.class]\"\n [routerLinkActive]=\"menuItem.submenu.length !== 0 ? '' : 'active'\">\n <ng-container>\n <a [routerLink]=\"menuItem.class === '' ? [menuItem.path] : null\"\n *ngIf=\"!menuItem.isExternalLink; else externalLinkBlock\">\n <i [ngClass]=\"[menuItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">\n <span>{{ menuItem?.title | textTruncate: 14 }}</span>\n </span>\n <span *ngIf=\"menuItem.badge !== ''\"\n [ngClass]=\"[menuItem.badgeClass]\">{{\n menuItem.badge\n }}</span>\n </a>\n <ng-template #externalLinkBlock>\n <a [href]=\"[menuItem.path]\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n <i [ngClass]=\"[menuItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuItem.title }}</span>\n <span *ngIf=\"menuItem.badge !== ''\"\n [ngClass]=\"[menuItem.badgeClass]\">{{\n menuItem.badge\n }}</span>\n </a>\n </ng-template>\n </ng-container>\n <!-- Second level menu -->\n <ul class=\"menu-content\"\n *ngIf=\"menuItem.submenu.length > 0\">\n <li *ngFor=\"let menuSubItem of menuItem.submenu\"\n [routerLinkActive]=\"menuSubItem.submenu.length > 0 ? '' : 'active'\"\n [ngClass]=\"[menuSubItem.class]\">\n <ng-container>\n <a [routerLink]=\"\n menuSubItem.submenu.length > 0 ? null : [menuSubItem.path]\n \"\n class=\"sub-menu\"\n *ngIf=\"!menuSubItem.isExternalLink; else externalSubLinkBlock\">\n <i [ngClass]=\"[menuSubItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuSubItem.title }}</span>\n <span *ngIf=\"menuSubItem.badge !== ''\"\n [ngClass]=\"[menuSubItem.badgeClass]\">\n {{ menuSubItem.badge }}\n </span>\n </a>\n <ng-template #externalSubLinkBlock>\n <a [href]=\"[menuSubItem.path]\">\n <i [ngClass]=\"[menuSubItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuSubItem.title }}</span>\n <span *ngIf=\"menuSubItem.badge !== ''\"\n [ngClass]=\"[menuSubItem.badgeClass]\">\n {{ menuSubItem.badge }}\n </span>\n </a>\n </ng-template>\n </ng-container>\n <!-- Third level menu -->\n <ul class=\"menu-content\"\n *ngIf=\"menuSubItem.submenu.length > 0\">\n <li *ngFor=\"let menuSubsubItem of menuSubItem.submenu\"\n routerLinkActive=\"active\"\n [ngClass]=\"[menuSubsubItem.class]\">\n <a [routerLink]=\"[menuSubsubItem.path]\"\n *ngIf=\"\n !menuSubsubItem.isExternalLink;\n else externalSubSubLinkBlock\n \">\n <i [ngClass]=\"[menuSubsubItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuSubsubItem.title }}</span>\n <span *ngIf=\"menuSubsubItem.badge !== ''\"\n [ngClass]=\"[menuSubsubItem.badgeClass]\">\n {{ menuSubsubItem.badge }}</span>\n </a>\n <ng-template #externalSubSubLinkBlock>\n <a [href]=\"[menuSubsubItem.path]\">\n <i [ngClass]=\"[menuSubsubItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuSubsubItem.title }}</span>\n <span *ngIf=\"menuSubsubItem.badge !== ''\"\n [ngClass]=\"[menuSubsubItem.badgeClass]\">\n {{ menuSubsubItem.badge }}</span>\n </a>\n </ng-template>\n </li>\n </ul>\n </li>\n </ul>\n </li>\n </ul>\n </div>\n</div>\n<!-- Sidebar Content Ends -->\n", dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i1$1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }] });
|
|
1553
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: SidebarComponent, decorators: [{
|
|
1554
|
+
type: Component,
|
|
1555
|
+
args: [{ selector: 'pw-sidebar', template: "<!-- Sidebar Header starts -->\n<div class=\"sidebar-header\">\n <div class=\"logo clearfix\">\n <span class=\"logo-text float-start\">\n <div class=\"dropdown\">\n <button [ngClass]=\"{ 'dropdown-toggle': productMenus.length > 1 }\"\n type=\"button\"\n id=\"dropdownMenuButton\"\n [attr.data-bs-toggle]=\"productMenus.length > 1 ? 'dropdown' : ''\"\n style=\"background: none; border: none; padding: 0\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\">\n <div class=\"logo-img logo-text float-start\">\n <ng-template [ngIf]=\"logo\">\n <img [src]=\"logo.square\"\n alt=\"img\"\n onerror=\"this.onerror=null;this.src='assets/img/logos/logo-white.png';\" />\n </ng-template>\n <span class=\"text align-middle fw-bold text-truncate d-inline-block org-text\"\n [title]=\"selectedSubscription?.organisation\"\n [id]=\"selectedSubscription?.id\">\n {{ selectedProduct?.title || companyName }}\n </span>\n </div>\n </button>\n <div class=\"sidebar-title\">\n {{ selectedSubscription?.organisation || companyName }}\n </div>\n <!-- Product Dropdown -->\n <div class=\"dropdown-menu product-dropdown\"\n aria-labelledby=\"dropdownMenuButton\"\n style=\"text-transform: none\"\n *ngIf=\"productMenus.length > 1\">\n <button class=\"dropdown-item text-truncate\"\n *ngFor=\"let product of productMenus | uniqBy: 'subscriptionId'\"\n [attr.subscription_id]=\"product.subscriptionId\"\n (click)=\"navigateToProductDashboard(product)\">\n {{ product.nickname }}\n <span>\n by {{ product.organisation || product.master_sub_name || companyName }}\n </span>\n </button>\n </div>\n </div>\n </span>\n <a class=\"nav-toggle d-none d-sm-none d-md-none d-lg-block\"\n id=\"sidebarToggle\"\n (click)=\"onSidebarToggle($event)\"\n href=\"javascript:;\">\n <i class=\"ft-toggle-right toggle-icon\" data-bs-toggle=\"expanded\" aria-hidden=\"true\"></i>\n </a>\n <a class=\"nav-close d-block d-md-block d-lg-none d-xl-none\"\n id=\"sidebarClose\"\n href=\"javascript:;\">\n <i class=\"ft-x\" aria-hidden=\"true\"></i>\n </a>\n </div>\n</div>\n<!-- Sidebar Header Ends -->\n<!-- Sidebar Content starts -->\n<div class=\"sidebar-content\">\n <div class=\"nav-container\">\n <ul class=\"navigation side-menu\"\n *ngIf=\"menus.length\">\n <li class=\"sidebar-search mx-3 mb-3\"\n (click)=\"$event.stopPropagation()\">\n <form role=\"search\"\n (ngSubmit)=\"onSearch(search)\">\n <div class=\"position-relative has-icon-right\">\n <i class=\"fa fa-search position-absolute\" aria-hidden=\"true\"></i>\n <input type=\"text\"\n class=\"form-control ps-4\"\n placeholder=\"Search\"\n #search />\n </div>\n </form>\n </li>\n <!-- First level menu -->\n <li *ngFor=\"let menuItem of menus | sort\"\n [ngClass]=\"[menuItem.class]\"\n [routerLinkActive]=\"menuItem.submenu.length !== 0 ? '' : 'active'\">\n <ng-container>\n <a [routerLink]=\"menuItem.class === '' ? [menuItem.path] : null\"\n *ngIf=\"!menuItem.isExternalLink; else externalLinkBlock\">\n <i [ngClass]=\"[menuItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">\n <span>{{ menuItem?.title | textTruncate: 14 }}</span>\n </span>\n <span *ngIf=\"menuItem.badge !== ''\"\n [ngClass]=\"[menuItem.badgeClass]\">{{\n menuItem.badge\n }}</span>\n </a>\n <ng-template #externalLinkBlock>\n <a [href]=\"[menuItem.path]\"\n target=\"_blank\"\n rel=\"noopener noreferrer\">\n <i [ngClass]=\"[menuItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuItem.title }}</span>\n <span *ngIf=\"menuItem.badge !== ''\"\n [ngClass]=\"[menuItem.badgeClass]\">{{\n menuItem.badge\n }}</span>\n </a>\n </ng-template>\n </ng-container>\n <!-- Second level menu -->\n <ul class=\"menu-content\"\n *ngIf=\"menuItem.submenu.length > 0\">\n <li *ngFor=\"let menuSubItem of menuItem.submenu\"\n [routerLinkActive]=\"menuSubItem.submenu.length > 0 ? '' : 'active'\"\n [ngClass]=\"[menuSubItem.class]\">\n <ng-container>\n <a [routerLink]=\"\n menuSubItem.submenu.length > 0 ? null : [menuSubItem.path]\n \"\n class=\"sub-menu\"\n *ngIf=\"!menuSubItem.isExternalLink; else externalSubLinkBlock\">\n <i [ngClass]=\"[menuSubItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuSubItem.title }}</span>\n <span *ngIf=\"menuSubItem.badge !== ''\"\n [ngClass]=\"[menuSubItem.badgeClass]\">\n {{ menuSubItem.badge }}\n </span>\n </a>\n <ng-template #externalSubLinkBlock>\n <a [href]=\"[menuSubItem.path]\">\n <i [ngClass]=\"[menuSubItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuSubItem.title }}</span>\n <span *ngIf=\"menuSubItem.badge !== ''\"\n [ngClass]=\"[menuSubItem.badgeClass]\">\n {{ menuSubItem.badge }}\n </span>\n </a>\n </ng-template>\n </ng-container>\n <!-- Third level menu -->\n <ul class=\"menu-content\"\n *ngIf=\"menuSubItem.submenu.length > 0\">\n <li *ngFor=\"let menuSubsubItem of menuSubItem.submenu\"\n routerLinkActive=\"active\"\n [ngClass]=\"[menuSubsubItem.class]\">\n <a [routerLink]=\"[menuSubsubItem.path]\"\n *ngIf=\"\n !menuSubsubItem.isExternalLink;\n else externalSubSubLinkBlock\n \">\n <i [ngClass]=\"[menuSubsubItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuSubsubItem.title }}</span>\n <span *ngIf=\"menuSubsubItem.badge !== ''\"\n [ngClass]=\"[menuSubsubItem.badgeClass]\">\n {{ menuSubsubItem.badge }}</span>\n </a>\n <ng-template #externalSubSubLinkBlock>\n <a [href]=\"[menuSubsubItem.path]\">\n <i [ngClass]=\"[menuSubsubItem.icon]\" aria-hidden=\"true\"></i>\n <span class=\"menu-title\">{{ menuSubsubItem.title }}</span>\n <span *ngIf=\"menuSubsubItem.badge !== ''\"\n [ngClass]=\"[menuSubsubItem.badgeClass]\">\n {{ menuSubsubItem.badge }}</span>\n </a>\n </ng-template>\n </li>\n </ul>\n </li>\n </ul>\n </li>\n </ul>\n </div>\n</div>\n<!-- Sidebar Content Ends -->\n" }]
|
|
1556
|
+
}], ctorParameters: function () {
|
|
1557
|
+
return [{ type: i1.MailBoxService }, { type: i0.ChangeDetectorRef }, { type: i1.GoogleAnalyticsService }, { type: i1.WebsocketService }, { type: Document, decorators: [{
|
|
1558
|
+
type: Inject,
|
|
1559
|
+
args: [DOCUMENT]
|
|
1560
|
+
}] }, { type: i0.Injector }];
|
|
1561
|
+
}, propDecorators: { sidebarRenderEvent: [{
|
|
1562
|
+
type: Output
|
|
1563
|
+
}] } });
|
|
1564
|
+
|
|
1565
|
+
class UserNotificationsComponent extends AppBaseComponent {
|
|
1566
|
+
constructor(injector, commonService) {
|
|
1567
|
+
super(injector);
|
|
1568
|
+
this.commonService = commonService;
|
|
1569
|
+
this.notifications = [];
|
|
1570
|
+
this.notifier = new Subject();
|
|
1571
|
+
this.isHomePage = true;
|
|
1572
|
+
this.previousUrl = null;
|
|
1573
|
+
this.currentUrl = null;
|
|
1574
|
+
}
|
|
1575
|
+
ngOnInit() {
|
|
1576
|
+
this.getUserNotifications();
|
|
1577
|
+
this.isHomePage = this.router.url.includes('home');
|
|
1578
|
+
this.router.events
|
|
1579
|
+
.pipe(takeUntil(this.notifier.pipe(filter((event) => event instanceof NavigationEnd))))
|
|
1580
|
+
.subscribe((event) => {
|
|
1581
|
+
if (event instanceof NavigationEnd) {
|
|
1582
|
+
this.previousUrl = this.currentUrl;
|
|
1583
|
+
this.currentUrl = event.url;
|
|
1584
|
+
this.isHomePage = this.currentUrl.includes('home');
|
|
1585
|
+
if (this.previousUrl !== this.currentUrl) {
|
|
1586
|
+
this.getUserNotifications();
|
|
1587
|
+
}
|
|
1588
|
+
}
|
|
1589
|
+
});
|
|
1590
|
+
}
|
|
1591
|
+
getUserNotifications() {
|
|
1592
|
+
this.userService.getUserNotifications().subscribe(notifications => {
|
|
1593
|
+
this.notifications = notifications;
|
|
1594
|
+
});
|
|
1595
|
+
}
|
|
1596
|
+
hideNoty(id) {
|
|
1597
|
+
const subscriptionId = PermissionService.selectedSubscription.id;
|
|
1598
|
+
this.commonService
|
|
1599
|
+
.userLoginNotification({
|
|
1600
|
+
subscription_id: subscriptionId,
|
|
1601
|
+
notification_id: id,
|
|
1602
|
+
discarded: true
|
|
1603
|
+
})
|
|
1604
|
+
.subscribe(() => {
|
|
1605
|
+
this.getUserNotifications();
|
|
1606
|
+
});
|
|
1607
|
+
}
|
|
1608
|
+
ngOnDestroy() {
|
|
1609
|
+
this.notifier.next('');
|
|
1610
|
+
}
|
|
1611
|
+
}
|
|
1612
|
+
UserNotificationsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: UserNotificationsComponent, deps: [{ token: i0.Injector }, { token: i1.CommonService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1613
|
+
UserNotificationsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: UserNotificationsComponent, selector: "pw-user-notifications", usesInheritance: true, ngImport: i0, template: "<div class=\"row mt-4 mb-0 notification-wrapper\"\n id=\"user-message\">\n <ng-container *ngFor=\"let noti of notifications\">\n <div class=\"col-12 col-sm-12 col-md-12 mb-2\"\n *ngIf=\"isHomePage || noti?.can_disregard\">\n <div class=\"card pb-0\">\n <div class=\"alert border-0 card-body d-flex align-items-center justify-content-between px-3 mb-0\"\n [ngClass]=\"noti.type ? 'alert-' + noti.type : 'alert-panel'\">\n <p class=\"mb-0\"\n [innerHtml]=\"noti.message | safe: 'html'\"\n appAnchorRouter></p>\n <a class=\"icon-dismiss float-end text-white\"\n *ngIf=\"noti?.can_disregard\"\n (click)=\"hideNoty(noti?.notification_id)\">\n <i class=\"ft-x\" aria-hidden=\"true\"></i>\n </a>\n </div>\n </div>\n </div>\n </ng-container>\n</div>\n", styles: [":root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255)}.alert-panel{background-color:#fff!important;border-color:#ddd!important;border-radius:8px;box-shadow:3px 3px 40px #d2d2d2;color:#021a11!important}.alert-info{background-color:var(--tabs_bg)!important}p{color:#fff}.notification-wrapper:empty{display:none}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1614
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: UserNotificationsComponent, decorators: [{
|
|
1615
|
+
type: Component,
|
|
1616
|
+
args: [{ selector: 'pw-user-notifications', template: "<div class=\"row mt-4 mb-0 notification-wrapper\"\n id=\"user-message\">\n <ng-container *ngFor=\"let noti of notifications\">\n <div class=\"col-12 col-sm-12 col-md-12 mb-2\"\n *ngIf=\"isHomePage || noti?.can_disregard\">\n <div class=\"card pb-0\">\n <div class=\"alert border-0 card-body d-flex align-items-center justify-content-between px-3 mb-0\"\n [ngClass]=\"noti.type ? 'alert-' + noti.type : 'alert-panel'\">\n <p class=\"mb-0\"\n [innerHtml]=\"noti.message | safe: 'html'\"\n appAnchorRouter></p>\n <a class=\"icon-dismiss float-end text-white\"\n *ngIf=\"noti?.can_disregard\"\n (click)=\"hideNoty(noti?.notification_id)\">\n <i class=\"ft-x\" aria-hidden=\"true\"></i>\n </a>\n </div>\n </div>\n </div>\n </ng-container>\n</div>\n", styles: [":root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255)}.alert-panel{background-color:#fff!important;border-color:#ddd!important;border-radius:8px;box-shadow:3px 3px 40px #d2d2d2;color:#021a11!important}.alert-info{background-color:var(--tabs_bg)!important}p{color:#fff}.notification-wrapper:empty{display:none}\n"] }]
|
|
1617
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1.CommonService }]; } });
|
|
1618
|
+
|
|
1619
|
+
// Core Angular modules
|
|
1620
|
+
// import { SharedModule } from '@app/shared/shared.module';
|
|
1621
|
+
class DashboardModule {
|
|
1622
|
+
}
|
|
1623
|
+
DashboardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DashboardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1624
|
+
DashboardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.5", ngImport: i0, type: DashboardModule, declarations: [HomeComponent,
|
|
1625
|
+
UserFeedbackComponent,
|
|
1626
|
+
NotificationsPageComponent,
|
|
1627
|
+
FooterComponent,
|
|
1628
|
+
NavbarComponent,
|
|
1629
|
+
UserNotificationsComponent,
|
|
1630
|
+
SidebarComponent,
|
|
1631
|
+
CustomizerComponent,
|
|
1632
|
+
FaqComponent,
|
|
1633
|
+
SearchComponent,
|
|
1634
|
+
CurrentNotificationsComponent,
|
|
1635
|
+
DismissedNotificationsComponent,
|
|
1636
|
+
FaqDetailsComponent], imports: [CommonModule,
|
|
1637
|
+
DashboardRoutingModule,
|
|
1638
|
+
FormsModule,
|
|
1639
|
+
ReactiveFormsModule,
|
|
1640
|
+
CoreTranslocoModule,
|
|
1641
|
+
NgbNavModule,
|
|
1642
|
+
NgbDropdownModule,
|
|
1643
|
+
UserModuleModule], exports: [FooterComponent,
|
|
1644
|
+
SidebarComponent,
|
|
1645
|
+
NavbarComponent,
|
|
1646
|
+
UserNotificationsComponent,
|
|
1647
|
+
CustomizerComponent] });
|
|
1648
|
+
DashboardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DashboardModule, providers: [SubscriptionService], imports: [CommonModule,
|
|
1649
|
+
DashboardRoutingModule,
|
|
1650
|
+
FormsModule,
|
|
1651
|
+
ReactiveFormsModule,
|
|
1652
|
+
CoreTranslocoModule,
|
|
1653
|
+
NgbNavModule,
|
|
1654
|
+
NgbDropdownModule,
|
|
1655
|
+
UserModuleModule] });
|
|
1656
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DashboardModule, decorators: [{
|
|
1657
|
+
type: NgModule,
|
|
1658
|
+
args: [{
|
|
1659
|
+
imports: [
|
|
1660
|
+
CommonModule,
|
|
1661
|
+
DashboardRoutingModule,
|
|
1662
|
+
FormsModule,
|
|
1663
|
+
ReactiveFormsModule,
|
|
1664
|
+
CoreTranslocoModule,
|
|
1665
|
+
NgbNavModule,
|
|
1666
|
+
NgbDropdownModule,
|
|
1667
|
+
UserModuleModule
|
|
1668
|
+
],
|
|
1669
|
+
declarations: [
|
|
1670
|
+
HomeComponent,
|
|
1671
|
+
UserFeedbackComponent,
|
|
1672
|
+
NotificationsPageComponent,
|
|
1673
|
+
FooterComponent,
|
|
1674
|
+
NavbarComponent,
|
|
1675
|
+
UserNotificationsComponent,
|
|
1676
|
+
SidebarComponent,
|
|
1677
|
+
CustomizerComponent,
|
|
1678
|
+
FaqComponent,
|
|
1679
|
+
SearchComponent,
|
|
1680
|
+
CurrentNotificationsComponent,
|
|
1681
|
+
DismissedNotificationsComponent,
|
|
1682
|
+
FaqDetailsComponent
|
|
1683
|
+
],
|
|
1684
|
+
exports: [
|
|
1685
|
+
FooterComponent,
|
|
1686
|
+
SidebarComponent,
|
|
1687
|
+
NavbarComponent,
|
|
1688
|
+
UserNotificationsComponent,
|
|
1689
|
+
CustomizerComponent
|
|
1690
|
+
],
|
|
1691
|
+
providers: [SubscriptionService],
|
|
1692
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
|
1693
|
+
}]
|
|
1694
|
+
}] });
|
|
1695
|
+
|
|
1696
|
+
/**
|
|
1697
|
+
* Generated bundle index. Do not edit.
|
|
1698
|
+
*/
|
|
1699
|
+
|
|
1700
|
+
export { BLOG_MENU, CHAT_MENU, CurrentNotificationsComponent, CustomizerComponent, DashboardModule, DismissedNotificationsComponent, ENTERPRISE_MENU, FAQ_Menu, FaqComponent, FaqDetailsComponent, FooterComponent, HomeComponent, NavbarComponent, NotificationsPageComponent, ROUTES, SearchComponent, SidebarComponent, UserFeedbackComponent, UserNotificationsComponent };
|
|
1701
|
+
//# sourceMappingURL=dashboard-module.mjs.map
|