@posiwise/user-module 0.0.76 → 0.0.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
1
|
+
import { Component, Injector } from '@angular/core';
|
|
2
2
|
import { interval } from 'rxjs';
|
|
3
3
|
import { mergeMap } from 'rxjs/operators';
|
|
4
4
|
import { POLL_TIMEOUT } from '@posiwise/common-utilities';
|
|
@@ -9,8 +9,8 @@ import * as i2 from "primeng/progressspinner";
|
|
|
9
9
|
import * as i3 from "@posiwise/shared-components";
|
|
10
10
|
import * as i4 from "@posiwise/pipes";
|
|
11
11
|
export class UserInvoiceComponent extends AppBaseComponent {
|
|
12
|
-
constructor() {
|
|
13
|
-
super(
|
|
12
|
+
constructor(injector) {
|
|
13
|
+
super(injector);
|
|
14
14
|
this.invoices = [];
|
|
15
15
|
this.intervalTimer = interval(POLL_TIMEOUT * 60 * 1000);
|
|
16
16
|
this.isLoaded = false;
|
|
@@ -43,11 +43,11 @@ export class UserInvoiceComponent extends AppBaseComponent {
|
|
|
43
43
|
this.subscription.unsubscribe();
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.6", ngImport: i0, type: UserInvoiceComponent, deps:
|
|
46
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.6", ngImport: i0, type: UserInvoiceComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
47
47
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.6", type: UserInvoiceComponent, selector: "pw-user-invoice", usesInheritance: true, ngImport: i0, template: "<section class=\"invoice-template\">\n <div class=\"row\"\n *ngIf=\"isLoaded\">\n <div class=\"col-12 mb-3\">\n <h2>Your Invoices</h2>\n\n <p>Please find below your invoices.</p>\n </div>\n <div class=\"col-md-3 my-3\"\n *ngFor=\"let invoice of invoices\">\n <div class=\"shadow-md\">\n <div class=\"page-heading\">\n <div class=\"page-heading__container\">\n <h2 class=\"title\">{{ invoice?.product.name }}</h2>\n </div>\n </div>\n <div class=\"p-3\">\n <div class=\"card-inner-container\">\n <div class=\"text-muted margin-bottom-20 invoice-text\">\n <div>Invoice Date:</div>\n <div>{{ invoice.date | dateFormat }}</div>\n </div>\n <div class=\"text-muted margin-bottom-20 invoice-text\">\n <div>Frequency:</div>\n <div>{{ invoice.product.billing_frequency | uppercase }}</div>\n </div>\n <div class=\"text-muted margin-bottom-20 invoice-text\">\n <div>Seats Purchased:</div>\n <div>{{ invoice?.subscription_product?.purchased_units }}</div>\n </div>\n <div class=\"mt-4 text-muted invoice-text\">\n <div>Subtotal</div>\n <h5 class=\"fw-bold\"\n *ngIf=\"invoice?.subtotal_in_cents\">\n {{ (invoice.subtotal_in_cents / 100) | currency:invoice?.product?.currency }}\n </h5>\n </div>\n <div class=\"mt-4 text-muted invoice-text\">\n <div>Total (incl. tax)</div>\n <h5 class=\"fw-bold\"\n *ngIf=\"invoice?.total_in_cents\">\n {{ (invoice.total_in_cents / 100) | currency:invoice?.product?.currency }}\n </h5>\n </div>\n </div>\n <div class=\"d-block\">\n <a *ngIf=\"invoice?.file?.url;else noFileUrl\"\n class=\"btn btn-sm btn-primary\"\n [attr.href]=\"invoice.file.url\"\n target=\"_blank\"\n title=\"Download\">\n <i class=\"fa fa-download\"> Download</i>\n </a>\n <ng-template #noFileUrl>\n <a class=\"btn btn-sm btn-primary\"\n [attr.href]=\"invoice?.stripe_invoice_pdf\"\n target=\"_blank\"\n title=\"Download\">\n <i class=\"fa fa-download\"> Download</i>\n </a>\n </ng-template>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"\">\n <pw-no-data message=\"You don't have any invoice yet.\"\n *ngIf=\"invoices.length === 0\">\n </pw-no-data>\n </div>\n\n <div class=\"w-100 text-center mt-3\"\n *ngIf=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n</section>\n", styles: [".page-heading{background:#fcfcfc;border-bottom:1px solid rgba(0,0,0,.1);position:relative;width:100%}.page-heading:after{clear:both;content:\"\";display:table}.page-heading .page-heading__container{padding:15px 20px;position:relative}.page-heading .page-heading__container .title{color:#242437;font-size:15px;font-weight:500;line-height:20px;margin:3px 0 0;overflow:hidden;padding:0;text-overflow:ellipsis;width:95%}.card .card-container{position:absolute;right:20px;top:25px;z-index:1}.card-inner-container{background:#0000000d;border:1px dashed rgba(0,0,0,.1);border-radius:3px;margin-bottom:20px;padding:20px}.invoice-text{display:flex;font-size:13px;justify-content:space-between;margin:10px 0}.invoice-template{min-height:calc(100vh - 190px)}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ProgressSpinner, selector: "p-progressSpinner", inputs: ["styleClass", "style", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }, { kind: "component", type: i3.NoDataComponent, selector: "pw-no-data", inputs: ["message"] }, { kind: "pipe", type: i1.UpperCasePipe, name: "uppercase" }, { kind: "pipe", type: i1.CurrencyPipe, name: "currency" }, { kind: "pipe", type: i4.DateFormatPipe, name: "dateFormat" }] }); }
|
|
48
48
|
}
|
|
49
49
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.6", ngImport: i0, type: UserInvoiceComponent, decorators: [{
|
|
50
50
|
type: Component,
|
|
51
51
|
args: [{ selector: 'pw-user-invoice', template: "<section class=\"invoice-template\">\n <div class=\"row\"\n *ngIf=\"isLoaded\">\n <div class=\"col-12 mb-3\">\n <h2>Your Invoices</h2>\n\n <p>Please find below your invoices.</p>\n </div>\n <div class=\"col-md-3 my-3\"\n *ngFor=\"let invoice of invoices\">\n <div class=\"shadow-md\">\n <div class=\"page-heading\">\n <div class=\"page-heading__container\">\n <h2 class=\"title\">{{ invoice?.product.name }}</h2>\n </div>\n </div>\n <div class=\"p-3\">\n <div class=\"card-inner-container\">\n <div class=\"text-muted margin-bottom-20 invoice-text\">\n <div>Invoice Date:</div>\n <div>{{ invoice.date | dateFormat }}</div>\n </div>\n <div class=\"text-muted margin-bottom-20 invoice-text\">\n <div>Frequency:</div>\n <div>{{ invoice.product.billing_frequency | uppercase }}</div>\n </div>\n <div class=\"text-muted margin-bottom-20 invoice-text\">\n <div>Seats Purchased:</div>\n <div>{{ invoice?.subscription_product?.purchased_units }}</div>\n </div>\n <div class=\"mt-4 text-muted invoice-text\">\n <div>Subtotal</div>\n <h5 class=\"fw-bold\"\n *ngIf=\"invoice?.subtotal_in_cents\">\n {{ (invoice.subtotal_in_cents / 100) | currency:invoice?.product?.currency }}\n </h5>\n </div>\n <div class=\"mt-4 text-muted invoice-text\">\n <div>Total (incl. tax)</div>\n <h5 class=\"fw-bold\"\n *ngIf=\"invoice?.total_in_cents\">\n {{ (invoice.total_in_cents / 100) | currency:invoice?.product?.currency }}\n </h5>\n </div>\n </div>\n <div class=\"d-block\">\n <a *ngIf=\"invoice?.file?.url;else noFileUrl\"\n class=\"btn btn-sm btn-primary\"\n [attr.href]=\"invoice.file.url\"\n target=\"_blank\"\n title=\"Download\">\n <i class=\"fa fa-download\"> Download</i>\n </a>\n <ng-template #noFileUrl>\n <a class=\"btn btn-sm btn-primary\"\n [attr.href]=\"invoice?.stripe_invoice_pdf\"\n target=\"_blank\"\n title=\"Download\">\n <i class=\"fa fa-download\"> Download</i>\n </a>\n </ng-template>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"\">\n <pw-no-data message=\"You don't have any invoice yet.\"\n *ngIf=\"invoices.length === 0\">\n </pw-no-data>\n </div>\n\n <div class=\"w-100 text-center mt-3\"\n *ngIf=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n</section>\n", styles: [".page-heading{background:#fcfcfc;border-bottom:1px solid rgba(0,0,0,.1);position:relative;width:100%}.page-heading:after{clear:both;content:\"\";display:table}.page-heading .page-heading__container{padding:15px 20px;position:relative}.page-heading .page-heading__container .title{color:#242437;font-size:15px;font-weight:500;line-height:20px;margin:3px 0 0;overflow:hidden;padding:0;text-overflow:ellipsis;width:95%}.card .card-container{position:absolute;right:20px;top:25px;z-index:1}.card-inner-container{background:#0000000d;border:1px dashed rgba(0,0,0,.1);border-radius:3px;margin-bottom:20px;padding:20px}.invoice-text{display:flex;font-size:13px;justify-content:space-between;margin:10px 0}.invoice-template{min-height:calc(100vh - 190px)}\n"] }]
|
|
52
|
-
}] });
|
|
53
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
52
|
+
}], ctorParameters: () => [{ type: i0.Injector }] });
|
|
53
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlci1pbnZvaWNlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvdXNlci1tb2R1bGUvc3JjL2xpYi9hY2NvdW50L3VzZXItaW52b2ljZS91c2VyLWludm9pY2UuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy91c2VyLW1vZHVsZS9zcmMvbGliL2FjY291bnQvdXNlci1pbnZvaWNlL3VzZXItaW52b2ljZS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFFBQVEsRUFBcUIsTUFBTSxlQUFlLENBQUM7QUFDdkUsT0FBTyxFQUFnQixRQUFRLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFDOUMsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNL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IDxkaXY+e3sgaW52b2ljZT8uc3Vic2NyaXB0aW9uX3Byb2R1Y3Q/LnB1cmNoYXNlZF91bml0cyB9fTwvZGl2PlxuICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICA8ZGl2IGNsYXNzPVwibXQtNCB0ZXh0LW11dGVkIGludm9pY2UtdGV4dFwiPlxuICAgICAgICAgICAgICA8ZGl2PlN1YnRvdGFsPC9kaXY+XG4gICAgICAgICAgICAgIDxoNSBjbGFzcz1cImZ3LWJvbGRcIlxuICAgICAgICAgICAgICAgICpuZ0lmPVwiaW52b2ljZT8uc3VidG90YWxfaW5fY2VudHNcIj5cbiAgICAgICAgICAgICAgICB7eyAoaW52b2ljZS5zdWJ0b3RhbF9pbl9jZW50cyAgLyAxMDApIHwgY3VycmVuY3k6aW52b2ljZT8ucHJvZHVjdD8uY3VycmVuY3kgfX1cbiAgICAgICAgICAgICAgPC9oNT5cbiAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgPGRpdiBjbGFzcz1cIm10LTQgdGV4dC1tdXRlZCBpbnZvaWNlLXRleHRcIj5cbiAgICAgICAgICAgICAgPGRpdj5Ub3RhbCAoaW5jbC4gdGF4KTwvZGl2PlxuICAgICAgICAgICAgICA8aDUgY2xhc3M9XCJmdy1ib2xkXCJcbiAgICAgICAgICAgICAgICAqbmdJZj1cImludm9pY2U/LnRvdGFsX2luX2NlbnRzXCI+XG4gICAgICAgICAgICAgICAge3sgKGludm9pY2UudG90YWxfaW5fY2VudHMgLyAxMDApIHwgY3VycmVuY3k6aW52b2ljZT8ucHJvZHVjdD8uY3VycmVuY3kgfX1cbiAgICAgICAgICAgICAgPC9oNT5cbiAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgIDxkaXYgY2xhc3M9XCJkLWJsb2NrXCI+XG4gICAgICAgICAgICA8YSAqbmdJZj1cImludm9pY2U/LmZpbGU/LnVybDtlbHNlIG5vRmlsZVVybFwiXG4gIC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bXQtM1wiXG4gICAgKm5nSWY9XCIhaXNMb2FkZWRcIj5cbiAgICA8cC1wcm9ncmVzc1NwaW5uZXIgc3Ryb2tlV2lkdGg9XCIyXCI+IDwvcC1wcm9ncmVzc1NwaW5uZXI+XG4gIDwvZGl2PlxuPC9zZWN0aW9uPlxuIl19
|
|
@@ -1383,8 +1383,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.6", ngImpor
|
|
|
1383
1383
|
}] } });
|
|
1384
1384
|
|
|
1385
1385
|
class UserInvoiceComponent extends AppBaseComponent {
|
|
1386
|
-
constructor() {
|
|
1387
|
-
super(
|
|
1386
|
+
constructor(injector) {
|
|
1387
|
+
super(injector);
|
|
1388
1388
|
this.invoices = [];
|
|
1389
1389
|
this.intervalTimer = interval(POLL_TIMEOUT * 60 * 1000);
|
|
1390
1390
|
this.isLoaded = false;
|
|
@@ -1417,13 +1417,13 @@ class UserInvoiceComponent extends AppBaseComponent {
|
|
|
1417
1417
|
this.subscription.unsubscribe();
|
|
1418
1418
|
}
|
|
1419
1419
|
}
|
|
1420
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.6", ngImport: i0, type: UserInvoiceComponent, deps:
|
|
1420
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.6", ngImport: i0, type: UserInvoiceComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1421
1421
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.6", type: UserInvoiceComponent, selector: "pw-user-invoice", usesInheritance: true, ngImport: i0, template: "<section class=\"invoice-template\">\n <div class=\"row\"\n *ngIf=\"isLoaded\">\n <div class=\"col-12 mb-3\">\n <h2>Your Invoices</h2>\n\n <p>Please find below your invoices.</p>\n </div>\n <div class=\"col-md-3 my-3\"\n *ngFor=\"let invoice of invoices\">\n <div class=\"shadow-md\">\n <div class=\"page-heading\">\n <div class=\"page-heading__container\">\n <h2 class=\"title\">{{ invoice?.product.name }}</h2>\n </div>\n </div>\n <div class=\"p-3\">\n <div class=\"card-inner-container\">\n <div class=\"text-muted margin-bottom-20 invoice-text\">\n <div>Invoice Date:</div>\n <div>{{ invoice.date | dateFormat }}</div>\n </div>\n <div class=\"text-muted margin-bottom-20 invoice-text\">\n <div>Frequency:</div>\n <div>{{ invoice.product.billing_frequency | uppercase }}</div>\n </div>\n <div class=\"text-muted margin-bottom-20 invoice-text\">\n <div>Seats Purchased:</div>\n <div>{{ invoice?.subscription_product?.purchased_units }}</div>\n </div>\n <div class=\"mt-4 text-muted invoice-text\">\n <div>Subtotal</div>\n <h5 class=\"fw-bold\"\n *ngIf=\"invoice?.subtotal_in_cents\">\n {{ (invoice.subtotal_in_cents / 100) | currency:invoice?.product?.currency }}\n </h5>\n </div>\n <div class=\"mt-4 text-muted invoice-text\">\n <div>Total (incl. tax)</div>\n <h5 class=\"fw-bold\"\n *ngIf=\"invoice?.total_in_cents\">\n {{ (invoice.total_in_cents / 100) | currency:invoice?.product?.currency }}\n </h5>\n </div>\n </div>\n <div class=\"d-block\">\n <a *ngIf=\"invoice?.file?.url;else noFileUrl\"\n class=\"btn btn-sm btn-primary\"\n [attr.href]=\"invoice.file.url\"\n target=\"_blank\"\n title=\"Download\">\n <i class=\"fa fa-download\"> Download</i>\n </a>\n <ng-template #noFileUrl>\n <a class=\"btn btn-sm btn-primary\"\n [attr.href]=\"invoice?.stripe_invoice_pdf\"\n target=\"_blank\"\n title=\"Download\">\n <i class=\"fa fa-download\"> Download</i>\n </a>\n </ng-template>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"\">\n <pw-no-data message=\"You don't have any invoice yet.\"\n *ngIf=\"invoices.length === 0\">\n </pw-no-data>\n </div>\n\n <div class=\"w-100 text-center mt-3\"\n *ngIf=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n</section>\n", styles: [".page-heading{background:#fcfcfc;border-bottom:1px solid rgba(0,0,0,.1);position:relative;width:100%}.page-heading:after{clear:both;content:\"\";display:table}.page-heading .page-heading__container{padding:15px 20px;position:relative}.page-heading .page-heading__container .title{color:#242437;font-size:15px;font-weight:500;line-height:20px;margin:3px 0 0;overflow:hidden;padding:0;text-overflow:ellipsis;width:95%}.card .card-container{position:absolute;right:20px;top:25px;z-index:1}.card-inner-container{background:#0000000d;border:1px dashed rgba(0,0,0,.1);border-radius:3px;margin-bottom:20px;padding:20px}.invoice-text{display:flex;font-size:13px;justify-content:space-between;margin:10px 0}.invoice-template{min-height:calc(100vh - 190px)}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5.ProgressSpinner, selector: "p-progressSpinner", inputs: ["styleClass", "style", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }, { kind: "component", type: i7.NoDataComponent, selector: "pw-no-data", inputs: ["message"] }, { kind: "pipe", type: i4.UpperCasePipe, name: "uppercase" }, { kind: "pipe", type: i4.CurrencyPipe, name: "currency" }, { kind: "pipe", type: i6$1.DateFormatPipe, name: "dateFormat" }] }); }
|
|
1422
1422
|
}
|
|
1423
1423
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.6", ngImport: i0, type: UserInvoiceComponent, decorators: [{
|
|
1424
1424
|
type: Component,
|
|
1425
1425
|
args: [{ selector: 'pw-user-invoice', template: "<section class=\"invoice-template\">\n <div class=\"row\"\n *ngIf=\"isLoaded\">\n <div class=\"col-12 mb-3\">\n <h2>Your Invoices</h2>\n\n <p>Please find below your invoices.</p>\n </div>\n <div class=\"col-md-3 my-3\"\n *ngFor=\"let invoice of invoices\">\n <div class=\"shadow-md\">\n <div class=\"page-heading\">\n <div class=\"page-heading__container\">\n <h2 class=\"title\">{{ invoice?.product.name }}</h2>\n </div>\n </div>\n <div class=\"p-3\">\n <div class=\"card-inner-container\">\n <div class=\"text-muted margin-bottom-20 invoice-text\">\n <div>Invoice Date:</div>\n <div>{{ invoice.date | dateFormat }}</div>\n </div>\n <div class=\"text-muted margin-bottom-20 invoice-text\">\n <div>Frequency:</div>\n <div>{{ invoice.product.billing_frequency | uppercase }}</div>\n </div>\n <div class=\"text-muted margin-bottom-20 invoice-text\">\n <div>Seats Purchased:</div>\n <div>{{ invoice?.subscription_product?.purchased_units }}</div>\n </div>\n <div class=\"mt-4 text-muted invoice-text\">\n <div>Subtotal</div>\n <h5 class=\"fw-bold\"\n *ngIf=\"invoice?.subtotal_in_cents\">\n {{ (invoice.subtotal_in_cents / 100) | currency:invoice?.product?.currency }}\n </h5>\n </div>\n <div class=\"mt-4 text-muted invoice-text\">\n <div>Total (incl. tax)</div>\n <h5 class=\"fw-bold\"\n *ngIf=\"invoice?.total_in_cents\">\n {{ (invoice.total_in_cents / 100) | currency:invoice?.product?.currency }}\n </h5>\n </div>\n </div>\n <div class=\"d-block\">\n <a *ngIf=\"invoice?.file?.url;else noFileUrl\"\n class=\"btn btn-sm btn-primary\"\n [attr.href]=\"invoice.file.url\"\n target=\"_blank\"\n title=\"Download\">\n <i class=\"fa fa-download\"> Download</i>\n </a>\n <ng-template #noFileUrl>\n <a class=\"btn btn-sm btn-primary\"\n [attr.href]=\"invoice?.stripe_invoice_pdf\"\n target=\"_blank\"\n title=\"Download\">\n <i class=\"fa fa-download\"> Download</i>\n </a>\n </ng-template>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"\">\n <pw-no-data message=\"You don't have any invoice yet.\"\n *ngIf=\"invoices.length === 0\">\n </pw-no-data>\n </div>\n\n <div class=\"w-100 text-center mt-3\"\n *ngIf=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n</section>\n", styles: [".page-heading{background:#fcfcfc;border-bottom:1px solid rgba(0,0,0,.1);position:relative;width:100%}.page-heading:after{clear:both;content:\"\";display:table}.page-heading .page-heading__container{padding:15px 20px;position:relative}.page-heading .page-heading__container .title{color:#242437;font-size:15px;font-weight:500;line-height:20px;margin:3px 0 0;overflow:hidden;padding:0;text-overflow:ellipsis;width:95%}.card .card-container{position:absolute;right:20px;top:25px;z-index:1}.card-inner-container{background:#0000000d;border:1px dashed rgba(0,0,0,.1);border-radius:3px;margin-bottom:20px;padding:20px}.invoice-text{display:flex;font-size:13px;justify-content:space-between;margin:10px 0}.invoice-template{min-height:calc(100vh - 190px)}\n"] }]
|
|
1426
|
-
}] });
|
|
1426
|
+
}], ctorParameters: () => [{ type: i0.Injector }] });
|
|
1427
1427
|
|
|
1428
1428
|
class CommunicationTabComponent extends AppBaseComponent {
|
|
1429
1429
|
constructor(commonService, profileService, store, injector) {
|