@molecule/app-settings-panel-angular 2.0.1 → 3.0.1
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 +171 -127
- package/dist/account-section.component.js +1 -2
- package/dist/account-section.component.js.map +1 -1
- package/dist/auth-section.component.d.ts +30 -10
- package/dist/auth-section.component.d.ts.map +1 -1
- package/dist/auth-section.component.js +159 -116
- package/dist/auth-section.component.js.map +1 -1
- package/dist/billing-section.component.d.ts +10 -7
- package/dist/billing-section.component.d.ts.map +1 -1
- package/dist/billing-section.component.js +38 -23
- package/dist/billing-section.component.js.map +1 -1
- package/dist/container-context.d.ts +7 -4
- package/dist/container-context.d.ts.map +1 -1
- package/dist/container-context.js +9 -7
- package/dist/container-context.js.map +1 -1
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +2 -2
- package/dist/context.js.map +1 -1
- package/dist/controlled-switch.d.ts +0 -2
- package/dist/controlled-switch.d.ts.map +1 -1
- package/dist/controlled-switch.js +1 -6
- package/dist/controlled-switch.js.map +1 -1
- package/dist/log-out-delete-section.component.d.ts +8 -4
- package/dist/log-out-delete-section.component.d.ts.map +1 -1
- package/dist/log-out-delete-section.component.js +24 -14
- package/dist/log-out-delete-section.component.js.map +1 -1
- package/dist/tiers-upgrade-section.component.d.ts +31 -19
- package/dist/tiers-upgrade-section.component.d.ts.map +1 -1
- package/dist/tiers-upgrade-section.component.js +180 -141
- package/dist/tiers-upgrade-section.component.js.map +1 -1
- package/dist/types.d.ts +9 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { UIClassMap } from '@molecule/app-ui';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@molecule/app-angular";
|
|
3
4
|
/** One tier price as the section renders it (React's local `TierPrice`). */
|
|
4
5
|
export interface TierPrice {
|
|
5
6
|
stripePriceId?: string;
|
|
@@ -16,16 +17,17 @@ export interface Tier {
|
|
|
16
17
|
* TiersUpgradeSection component.
|
|
17
18
|
*
|
|
18
19
|
* Billing section with full multi-tier upgrade flow. React's root is a
|
|
19
|
-
* fragment (the `<section>` plus the upgrade modal), so
|
|
20
|
-
*
|
|
21
|
-
* fragment-like.
|
|
20
|
+
* fragment (the `<section>` plus the upgrade modal), so those nodes render in
|
|
21
|
+
* the host's place and the host itself never appears in the page.
|
|
22
22
|
*
|
|
23
23
|
* Replaces the simpler `BillingSection` for apps backed by
|
|
24
24
|
* `@molecule/api-payments-stripe` + `@molecule/api-resource-payment` — loads
|
|
25
25
|
* the user's current plan from `/api/billing/status`, loads available tiers
|
|
26
26
|
* from `/api/billing/tiers`, and renders an Upgrade modal with a Subscribe
|
|
27
|
-
* button per
|
|
28
|
-
*
|
|
27
|
+
* button per price that is for sale (one the server lists with a price id).
|
|
28
|
+
* Upgrade appears only for a free user and only when something is for sale.
|
|
29
|
+
* Subscribe POSTs to `/api/billing/checkout` and redirects to the checkout
|
|
30
|
+
* URL; a paid user (`isFree: false` in the status) sees a Cancel button that
|
|
29
31
|
* POSTs to `/api/billing/cancel`. A refused request shows the server's
|
|
30
32
|
* message.
|
|
31
33
|
*/
|
|
@@ -41,10 +43,12 @@ export declare class TiersUpgradeSection {
|
|
|
41
43
|
/** The translation function for the template. */
|
|
42
44
|
protected t: (key: string, values?: import("@molecule/app-i18n").InterpolationValues, options?: import("@molecule/app-i18n").TranslateOptions) => string;
|
|
43
45
|
private readonly http;
|
|
44
|
-
/** The user's current plan name. */
|
|
45
|
-
protected readonly plan: import("@angular/core").WritableSignal<string>;
|
|
46
|
-
/** The user's current plan key. */
|
|
47
|
-
protected readonly planKey: import("@angular/core").WritableSignal<string>;
|
|
46
|
+
/** The user's current plan name, once the server has reported it. */
|
|
47
|
+
protected readonly plan: import("@angular/core").WritableSignal<string | null>;
|
|
48
|
+
/** The user's current plan key, once the server has reported it. */
|
|
49
|
+
protected readonly planKey: import("@angular/core").WritableSignal<string | null>;
|
|
50
|
+
/** Whether the user is on a free plan (the status's `isFree`). */
|
|
51
|
+
protected readonly isFree: import("@angular/core").WritableSignal<boolean>;
|
|
48
52
|
/** The tiers loaded from `/api/billing/tiers`. */
|
|
49
53
|
protected readonly tiers: import("@angular/core").WritableSignal<Tier[]>;
|
|
50
54
|
/** Whether the upgrade modal is open. */
|
|
@@ -53,36 +57,44 @@ export declare class TiersUpgradeSection {
|
|
|
53
57
|
protected readonly upgradeLoading: import("@angular/core").WritableSignal<string | null>;
|
|
54
58
|
/** The upgrade modal's error message. */
|
|
55
59
|
protected readonly upgradeError: import("@angular/core").WritableSignal<string>;
|
|
60
|
+
/** Why the last cancel failed, shown in the section (the modal is closed then). */
|
|
61
|
+
protected readonly cancelError: import("@angular/core").WritableSignal<string>;
|
|
56
62
|
/** The bonded ClassMap (styling tokens resolve at render time). */
|
|
57
63
|
protected readonly cm: UIClassMap;
|
|
64
|
+
private readonly host;
|
|
65
|
+
private loads;
|
|
66
|
+
private destroyed;
|
|
58
67
|
/**
|
|
59
|
-
*
|
|
60
|
-
*
|
|
68
|
+
* What can be bought: a price the server lists with a price id, on a tier
|
|
69
|
+
* the user is not on (React's `forSale`).
|
|
61
70
|
* @returns The entries.
|
|
62
71
|
*/
|
|
63
|
-
protected
|
|
72
|
+
protected forSale(): {
|
|
64
73
|
key: string;
|
|
65
74
|
tier: Tier;
|
|
66
75
|
price: TierPrice;
|
|
76
|
+
priceId: string;
|
|
67
77
|
}[];
|
|
78
|
+
/** Loads the current plan and the available tiers on mount. */
|
|
79
|
+
constructor();
|
|
68
80
|
/**
|
|
69
|
-
* Loads the current plan and the available tiers
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
* dropped like React's cancelled one.
|
|
81
|
+
* Loads the current plan and the available tiers (React's effect): each
|
|
82
|
+
* fetch resolves null on failure and the mapping keeps what the section
|
|
83
|
+
* shows instead of throwing. A result that lands after unmount, or after a
|
|
84
|
+
* newer load started, is dropped like React's cancelled one.
|
|
73
85
|
*/
|
|
74
|
-
|
|
86
|
+
private load;
|
|
75
87
|
/**
|
|
76
88
|
* Starts the checkout for one price (React's `handleStartCheckout`).
|
|
77
89
|
* @param stripePriceId - The price to subscribe to.
|
|
78
90
|
*/
|
|
79
|
-
protected startCheckout(stripePriceId: string
|
|
91
|
+
protected startCheckout(stripePriceId: string): Promise<void>;
|
|
80
92
|
/**
|
|
81
93
|
* Cancels the subscription (React's `handleCancelSubscription`); a failure
|
|
82
94
|
* shows the server's message and keeps the plan.
|
|
83
95
|
*/
|
|
84
96
|
protected cancelSubscription: () => Promise<void>;
|
|
85
97
|
static ɵfac: i0.ɵɵFactoryDeclaration<TiersUpgradeSection, never>;
|
|
86
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TiersUpgradeSection, "mol-tiers-upgrade-section", never, { "redirectToCheckout": { "alias": "redirectToCheckout"; "required": false; }; }, {}, never, never, true,
|
|
98
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TiersUpgradeSection, "mol-tiers-upgrade-section", never, { "redirectToCheckout": { "alias": "redirectToCheckout"; "required": false; }; }, {}, never, never, true, [{ directive: typeof i1.MolPlacement; inputs: {}; outputs: {}; }]>;
|
|
87
99
|
}
|
|
88
100
|
//# sourceMappingURL=tiers-upgrade-section.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tiers-upgrade-section.component.d.ts","sourceRoot":"","sources":["../src/tiers-upgrade-section.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tiers-upgrade-section.component.d.ts","sourceRoot":"","sources":["../src/tiers-upgrade-section.component.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;;AAKlD,4EAA4E;AAC5E,MAAM,WAAW,SAAS;IACxB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,8EAA8E;AAC9E,MAAM,WAAW,IAAI;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,SAAS,EAAE,CAAA;CACpB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAmFa,mBAAmB;IAC9B;;;;OAIG;IACH,kBAAkB,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAU;IAE3D,2DAA2D;IAC3D,SAAS,CAAC,QAAQ,CAAC,IAAI,uDAAmB;IAE1C,iDAAiD;IACjD,SAAS,CAAC,CAAC,8IAAc;IAEzB,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAkB;IAEvC,qEAAqE;IACrE,SAAS,CAAC,QAAQ,CAAC,IAAI,wDAA8B;IACrD,oEAAoE;IACpE,SAAS,CAAC,QAAQ,CAAC,OAAO,wDAA8B;IACxD,kEAAkE;IAClE,SAAS,CAAC,QAAQ,CAAC,MAAM,kDAAe;IACxC,kDAAkD;IAClD,SAAS,CAAC,QAAQ,CAAC,KAAK,iDAAqB;IAC7C,yCAAyC;IACzC,SAAS,CAAC,QAAQ,CAAC,WAAW,kDAAgB;IAC9C,+DAA+D;IAC/D,SAAS,CAAC,QAAQ,CAAC,cAAc,wDAA8B;IAC/D,yCAAyC;IACzC,SAAS,CAAC,QAAQ,CAAC,YAAY,iDAAa;IAC5C,mFAAmF;IACnF,SAAS,CAAC,QAAQ,CAAC,WAAW,iDAAa;IAE3C,mEAAmE;IACnE,SAAS,CAAC,QAAQ,CAAC,EAAE,EAAE,UAAU,CAAgB;IAEjD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAA8C;IAEnE,OAAO,CAAC,KAAK,CAAI;IACjB,OAAO,CAAC,SAAS,CAAQ;IAEzB;;;;OAIG;IACH,SAAS,CAAC,OAAO,IAAI;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,IAAI,CAAC;QAAC,KAAK,EAAE,SAAS,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE;IAiBrF,+DAA+D;;IAc/D;;;;;OAKG;IACH,OAAO,CAAC,IAAI;IA6CZ;;;OAGG;cACa,aAAa,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAkCnE;;;OAGG;IACH,SAAS,CAAC,kBAAkB,QAAa,OAAO,CAAC,IAAI,CAAC,CAcrD;yCAxLU,mBAAmB;2CAAnB,mBAAmB;CAyL/B"}
|
|
@@ -3,35 +3,58 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
|
-
import { Component, DestroyRef, inject, signal } from '@angular/core';
|
|
7
|
-
import { useHttpClient, useTranslation } from '@molecule/app-angular';
|
|
6
|
+
import { Component, DestroyRef, ElementRef, inject, signal } from '@angular/core';
|
|
7
|
+
import { MolPlacement, placeContentBefore, setElementPresent, useHttpClient, usePlacement, useTranslation, } from '@molecule/app-angular';
|
|
8
8
|
import { serverErrorMessage } from '@molecule/app-http';
|
|
9
9
|
import { getClassMap } from '@molecule/app-ui';
|
|
10
10
|
import { Alert, Button, ConfirmButton, Flex, Modal } from '@molecule/app-ui-angular';
|
|
11
11
|
import { openUrl } from '@molecule/app-utilities';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
|
+
import * as i1 from "@molecule/app-angular";
|
|
13
14
|
const _c0 = () => ({ defaultValue: "Billing" });
|
|
14
|
-
const _c1 = () => ({ defaultValue: "
|
|
15
|
-
const _c2 = () => ({ defaultValue: "
|
|
15
|
+
const _c1 = () => ({ defaultValue: "Upgrade your plan" });
|
|
16
|
+
const _c2 = () => ({ defaultValue: "Plan: " });
|
|
16
17
|
const _c3 = () => ({ defaultValue: "Upgrade" });
|
|
17
18
|
const _c4 = () => ({ defaultValue: "Cancel" });
|
|
18
19
|
const _c5 = () => ({ defaultValue: "Cancel your subscription?" });
|
|
19
|
-
const _c6 = () => ({ defaultValue: "
|
|
20
|
-
const _c7 = () => ({ defaultValue: "Subscribe" });
|
|
20
|
+
const _c6 = () => ({ defaultValue: "Subscribe" });
|
|
21
21
|
const _forTrack0 = ($index, $item) => $item.key;
|
|
22
|
-
function
|
|
23
|
-
|
|
22
|
+
function TiersUpgradeSection_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
23
|
+
i0.ɵɵelementStart(0, "span");
|
|
24
|
+
i0.ɵɵtext(1);
|
|
25
|
+
i0.ɵɵelementStart(2, "strong");
|
|
26
|
+
i0.ɵɵtext(3);
|
|
27
|
+
i0.ɵɵelementEnd()();
|
|
28
|
+
} if (rf & 2) {
|
|
29
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
30
|
+
i0.ɵɵclassMap(ctx_r0.cm.textSize("sm"));
|
|
31
|
+
i0.ɵɵadvance();
|
|
32
|
+
i0.ɵɵtextInterpolate(ctx_r0.t("settings.plan", undefined, i0.ɵɵpureFunction0(4, _c2)));
|
|
33
|
+
i0.ɵɵadvance(2);
|
|
34
|
+
i0.ɵɵtextInterpolate(ctx);
|
|
35
|
+
} }
|
|
36
|
+
function TiersUpgradeSection_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
37
|
+
i0.ɵɵelement(0, "span");
|
|
38
|
+
} }
|
|
39
|
+
function TiersUpgradeSection_Conditional_6_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
40
|
+
const _r2 = i0.ɵɵgetCurrentView();
|
|
24
41
|
i0.ɵɵelementStart(0, "button", 6);
|
|
25
|
-
i0.ɵɵlistener("click", function
|
|
42
|
+
i0.ɵɵlistener("click", function TiersUpgradeSection_Conditional_6_Conditional_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.showUpgrade.set(true)); });
|
|
26
43
|
i0.ɵɵtext(1);
|
|
27
44
|
i0.ɵɵelementEnd();
|
|
28
45
|
} if (rf & 2) {
|
|
29
|
-
const
|
|
46
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
30
47
|
i0.ɵɵproperty("variant", "outline")("size", "sm");
|
|
31
48
|
i0.ɵɵadvance();
|
|
32
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
49
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.t("settings.upgrade", undefined, i0.ɵɵpureFunction0(3, _c3)), " ");
|
|
50
|
+
} }
|
|
51
|
+
function TiersUpgradeSection_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
52
|
+
i0.ɵɵconditionalCreate(0, TiersUpgradeSection_Conditional_6_Conditional_0_Template, 2, 4, "button", 5);
|
|
53
|
+
} if (rf & 2) {
|
|
54
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
55
|
+
i0.ɵɵconditional(ctx_r0.forSale().length > 0 ? 0 : -1);
|
|
33
56
|
} }
|
|
34
|
-
function
|
|
57
|
+
function TiersUpgradeSection_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
35
58
|
i0.ɵɵelementStart(0, "button", 2);
|
|
36
59
|
i0.ɵɵelementContainerStart(1, 7);
|
|
37
60
|
i0.ɵɵtext(2);
|
|
@@ -41,34 +64,34 @@ function TiersUpgradeSection_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
41
64
|
i0.ɵɵelementContainerEnd();
|
|
42
65
|
i0.ɵɵelementEnd();
|
|
43
66
|
} if (rf & 2) {
|
|
44
|
-
const
|
|
45
|
-
i0.ɵɵproperty("variant", "outline")("size", "sm")("onConfirm",
|
|
67
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
68
|
+
i0.ɵɵproperty("variant", "outline")("size", "sm")("onConfirm", ctx_r0.cancelSubscription);
|
|
46
69
|
i0.ɵɵadvance(2);
|
|
47
|
-
i0.ɵɵtextInterpolate(
|
|
70
|
+
i0.ɵɵtextInterpolate(ctx_r0.t("settings.billing.cancel", undefined, i0.ɵɵpureFunction0(5, _c4)));
|
|
48
71
|
i0.ɵɵadvance(2);
|
|
49
|
-
i0.ɵɵtextInterpolate(
|
|
72
|
+
i0.ɵɵtextInterpolate(ctx_r0.t("settings.billing.cancelConfirm", undefined, i0.ɵɵpureFunction0(6, _c5)));
|
|
50
73
|
} }
|
|
51
|
-
function
|
|
52
|
-
i0.ɵɵelementStart(0, "div",
|
|
74
|
+
function TiersUpgradeSection_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
75
|
+
i0.ɵɵelementStart(0, "div", 3);
|
|
53
76
|
i0.ɵɵtext(1);
|
|
54
77
|
i0.ɵɵelementEnd();
|
|
55
78
|
} if (rf & 2) {
|
|
56
|
-
const
|
|
57
|
-
i0.ɵɵproperty("status", "error")("className",
|
|
79
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
80
|
+
i0.ɵɵproperty("status", "error")("className", ctx_r0.cm.sp("mt", 3));
|
|
58
81
|
i0.ɵɵadvance();
|
|
59
82
|
i0.ɵɵtextInterpolate(ctx);
|
|
60
83
|
} }
|
|
61
|
-
function
|
|
62
|
-
i0.ɵɵelementStart(0, "
|
|
84
|
+
function TiersUpgradeSection_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
85
|
+
i0.ɵɵelementStart(0, "div", 3);
|
|
63
86
|
i0.ɵɵtext(1);
|
|
64
87
|
i0.ɵɵelementEnd();
|
|
65
88
|
} if (rf & 2) {
|
|
66
|
-
const
|
|
67
|
-
i0.ɵɵ
|
|
89
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
90
|
+
i0.ɵɵproperty("status", "error")("className", ctx_r0.cm.sp("mb", 4));
|
|
68
91
|
i0.ɵɵadvance();
|
|
69
|
-
i0.ɵɵ
|
|
92
|
+
i0.ɵɵtextInterpolate(ctx);
|
|
70
93
|
} }
|
|
71
|
-
function
|
|
94
|
+
function TiersUpgradeSection_For_13_Template(rf, ctx) { if (rf & 1) {
|
|
72
95
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
73
96
|
i0.ɵɵelementStart(0, "li")(1, "div", 0)(2, "div")(3, "p");
|
|
74
97
|
i0.ɵɵtext(4);
|
|
@@ -77,52 +100,43 @@ function TiersUpgradeSection_Conditional_13_For_2_Template(rf, ctx) { if (rf & 1
|
|
|
77
100
|
i0.ɵɵtext(6);
|
|
78
101
|
i0.ɵɵelementEnd()();
|
|
79
102
|
i0.ɵɵelementStart(7, "button", 9);
|
|
80
|
-
i0.ɵɵlistener("click", function
|
|
103
|
+
i0.ɵɵlistener("click", function TiersUpgradeSection_For_13_Template_button_click_7_listener() { const entry_r4 = i0.ɵɵrestoreView(_r3).$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.startCheckout(entry_r4.priceId)); });
|
|
81
104
|
i0.ɵɵtext(8);
|
|
82
105
|
i0.ɵɵelementEnd()()();
|
|
83
106
|
} if (rf & 2) {
|
|
84
107
|
const entry_r4 = ctx.$implicit;
|
|
85
|
-
const
|
|
86
|
-
i0.ɵɵclassMap(
|
|
108
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
109
|
+
i0.ɵɵclassMap(ctx_r0.cm.sp("p", 4));
|
|
87
110
|
i0.ɵɵadvance();
|
|
88
111
|
i0.ɵɵproperty("align", "center")("justify", "between");
|
|
89
112
|
i0.ɵɵadvance(2);
|
|
90
|
-
i0.ɵɵclassMap(
|
|
113
|
+
i0.ɵɵclassMap(ctx_r0.cm.fontWeight("semibold"));
|
|
91
114
|
i0.ɵɵadvance();
|
|
92
115
|
i0.ɵɵtextInterpolate2(" ", entry_r4.tier.name, " (", entry_r4.price.interval, ") ");
|
|
93
116
|
i0.ɵɵadvance();
|
|
94
|
-
i0.ɵɵclassMap(
|
|
117
|
+
i0.ɵɵclassMap(ctx_r0.cm.cn(ctx_r0.cm.textSize("xs"), ctx_r0.cm.textMuted));
|
|
95
118
|
i0.ɵɵadvance();
|
|
96
119
|
i0.ɵɵtextInterpolate1(" ", entry_r4.price.priceLabel, " ");
|
|
97
120
|
i0.ɵɵadvance();
|
|
98
|
-
i0.ɵɵproperty("size", "sm")("loading",
|
|
99
|
-
i0.ɵɵadvance();
|
|
100
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.t("settings.billing.subscribe", undefined, i0.ɵɵpureFunction0(14, _c7)), " ");
|
|
101
|
-
} }
|
|
102
|
-
function TiersUpgradeSection_Conditional_13_Template(rf, ctx) { if (rf & 1) {
|
|
103
|
-
i0.ɵɵelementStart(0, "ul");
|
|
104
|
-
i0.ɵɵrepeaterCreate(1, TiersUpgradeSection_Conditional_13_For_2_Template, 9, 15, "li", 5, _forTrack0);
|
|
105
|
-
i0.ɵɵelementEnd();
|
|
106
|
-
} if (rf & 2) {
|
|
107
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
108
|
-
i0.ɵɵclassMap(ctx_r1.cm.stack(3));
|
|
121
|
+
i0.ɵɵproperty("size", "sm")("loading", ctx_r0.upgradeLoading() === entry_r4.priceId);
|
|
109
122
|
i0.ɵɵadvance();
|
|
110
|
-
i0.ɵɵ
|
|
123
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.t("settings.billing.subscribe", undefined, i0.ɵɵpureFunction0(14, _c6)), " ");
|
|
111
124
|
} }
|
|
112
125
|
/**
|
|
113
126
|
* TiersUpgradeSection component.
|
|
114
127
|
*
|
|
115
128
|
* Billing section with full multi-tier upgrade flow. React's root is a
|
|
116
|
-
* fragment (the `<section>` plus the upgrade modal), so
|
|
117
|
-
*
|
|
118
|
-
* fragment-like.
|
|
129
|
+
* fragment (the `<section>` plus the upgrade modal), so those nodes render in
|
|
130
|
+
* the host's place and the host itself never appears in the page.
|
|
119
131
|
*
|
|
120
132
|
* Replaces the simpler `BillingSection` for apps backed by
|
|
121
133
|
* `@molecule/api-payments-stripe` + `@molecule/api-resource-payment` — loads
|
|
122
134
|
* the user's current plan from `/api/billing/status`, loads available tiers
|
|
123
135
|
* from `/api/billing/tiers`, and renders an Upgrade modal with a Subscribe
|
|
124
|
-
* button per
|
|
125
|
-
*
|
|
136
|
+
* button per price that is for sale (one the server lists with a price id).
|
|
137
|
+
* Upgrade appears only for a free user and only when something is for sale.
|
|
138
|
+
* Subscribe POSTs to `/api/billing/checkout` and redirects to the checkout
|
|
139
|
+
* URL; a paid user (`isFree: false` in the status) sees a Cancel button that
|
|
126
140
|
* POSTs to `/api/billing/cancel`. A refused request shows the server's
|
|
127
141
|
* message.
|
|
128
142
|
*/
|
|
@@ -138,12 +152,15 @@ export class TiersUpgradeSection {
|
|
|
138
152
|
/** The translation function for the template. */
|
|
139
153
|
t = this.i18n.t;
|
|
140
154
|
http = useHttpClient();
|
|
141
|
-
/** The user's current plan name. */
|
|
142
|
-
plan = signal(
|
|
155
|
+
/** The user's current plan name, once the server has reported it. */
|
|
156
|
+
plan = signal(null, /* @ts-ignore */
|
|
143
157
|
...(ngDevMode ? [{ debugName: "plan" }] : /* istanbul ignore next */ []));
|
|
144
|
-
/** The user's current plan key. */
|
|
145
|
-
planKey = signal(
|
|
158
|
+
/** The user's current plan key, once the server has reported it. */
|
|
159
|
+
planKey = signal(null, /* @ts-ignore */
|
|
146
160
|
...(ngDevMode ? [{ debugName: "planKey" }] : /* istanbul ignore next */ []));
|
|
161
|
+
/** Whether the user is on a free plan (the status's `isFree`). */
|
|
162
|
+
isFree = signal(true, /* @ts-ignore */
|
|
163
|
+
...(ngDevMode ? [{ debugName: "isFree" }] : /* istanbul ignore next */ []));
|
|
147
164
|
/** The tiers loaded from `/api/billing/tiers`. */
|
|
148
165
|
tiers = signal([], /* @ts-ignore */
|
|
149
166
|
...(ngDevMode ? [{ debugName: "tiers" }] : /* istanbul ignore next */ []));
|
|
@@ -156,40 +173,61 @@ export class TiersUpgradeSection {
|
|
|
156
173
|
/** The upgrade modal's error message. */
|
|
157
174
|
upgradeError = signal('', /* @ts-ignore */
|
|
158
175
|
...(ngDevMode ? [{ debugName: "upgradeError" }] : /* istanbul ignore next */ []));
|
|
176
|
+
/** Why the last cancel failed, shown in the section (the modal is closed then). */
|
|
177
|
+
cancelError = signal('', /* @ts-ignore */
|
|
178
|
+
...(ngDevMode ? [{ debugName: "cancelError" }] : /* istanbul ignore next */ []));
|
|
159
179
|
/** The bonded ClassMap (styling tokens resolve at render time). */
|
|
160
180
|
cm = getClassMap();
|
|
181
|
+
host = inject(ElementRef);
|
|
182
|
+
loads = 0;
|
|
183
|
+
destroyed = false;
|
|
161
184
|
/**
|
|
162
|
-
*
|
|
163
|
-
*
|
|
185
|
+
* What can be bought: a price the server lists with a price id, on a tier
|
|
186
|
+
* the user is not on (React's `forSale`).
|
|
164
187
|
* @returns The entries.
|
|
165
188
|
*/
|
|
166
|
-
|
|
189
|
+
forSale() {
|
|
167
190
|
const entries = [];
|
|
168
191
|
for (const tier of this.tiers()) {
|
|
169
|
-
if (tier.planKey ===
|
|
192
|
+
if (tier.planKey === this.planKey())
|
|
170
193
|
continue;
|
|
171
194
|
for (const price of tier.prices) {
|
|
172
195
|
if (!price.stripePriceId)
|
|
173
196
|
continue;
|
|
174
|
-
entries.push({
|
|
197
|
+
entries.push({
|
|
198
|
+
key: `${tier.planKey}-${price.stripePriceId}`,
|
|
199
|
+
tier,
|
|
200
|
+
price,
|
|
201
|
+
priceId: price.stripePriceId,
|
|
202
|
+
});
|
|
175
203
|
}
|
|
176
204
|
}
|
|
177
205
|
return entries;
|
|
178
206
|
}
|
|
179
|
-
/**
|
|
180
|
-
* Loads the current plan and the available tiers on mount (React's mount
|
|
181
|
-
* effect): each fetch resolves null on failure and the mapping keeps the
|
|
182
|
-
* defaults instead of throwing. A result that lands after unmount is
|
|
183
|
-
* dropped like React's cancelled one.
|
|
184
|
-
*/
|
|
207
|
+
/** Loads the current plan and the available tiers on mount. */
|
|
185
208
|
constructor() {
|
|
186
|
-
|
|
209
|
+
usePlacement(() => {
|
|
210
|
+
// React's fragment (the section plus the upgrade modal) renders in the
|
|
211
|
+
// host's place; the host itself leaves the page.
|
|
212
|
+
placeContentBefore(this.host.nativeElement, this.host.nativeElement);
|
|
213
|
+
setElementPresent(this.host.nativeElement, false);
|
|
214
|
+
});
|
|
187
215
|
inject(DestroyRef).onDestroy(() => {
|
|
188
|
-
|
|
216
|
+
this.destroyed = true;
|
|
189
217
|
});
|
|
218
|
+
this.load();
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Loads the current plan and the available tiers (React's effect): each
|
|
222
|
+
* fetch resolves null on failure and the mapping keeps what the section
|
|
223
|
+
* shows instead of throwing. A result that lands after unmount, or after a
|
|
224
|
+
* newer load started, is dropped like React's cancelled one.
|
|
225
|
+
*/
|
|
226
|
+
load() {
|
|
227
|
+
const seq = ++this.loads;
|
|
190
228
|
void Promise.all([
|
|
191
229
|
// Each fetch resolves null on failure; the .then handler then keeps the
|
|
192
|
-
// defaults (
|
|
230
|
+
// defaults (no plan label, nothing for sale) instead of throwing.
|
|
193
231
|
this.http
|
|
194
232
|
.get('/api/billing/status')
|
|
195
233
|
.catch((_error) => null),
|
|
@@ -198,14 +236,16 @@ export class TiersUpgradeSection {
|
|
|
198
236
|
.catch((_error) => null),
|
|
199
237
|
])
|
|
200
238
|
.then(([statusRes, tiersRes]) => {
|
|
201
|
-
if (
|
|
239
|
+
if (this.destroyed || seq !== this.loads)
|
|
202
240
|
return;
|
|
203
241
|
const status = statusRes?.data ?? null;
|
|
204
242
|
if (status?.name)
|
|
205
243
|
this.plan.set(status.name);
|
|
206
244
|
if (status?.planKey)
|
|
207
245
|
this.planKey.set(status.planKey);
|
|
208
|
-
|
|
246
|
+
if (typeof status?.isFree === 'boolean')
|
|
247
|
+
this.isFree.set(status.isFree);
|
|
248
|
+
const list = tiersRes?.data?.data;
|
|
209
249
|
if (Array.isArray(list)) {
|
|
210
250
|
this.tiers.set(list.map((tier) => ({
|
|
211
251
|
planKey: tier.key,
|
|
@@ -228,8 +268,6 @@ export class TiersUpgradeSection {
|
|
|
228
268
|
* @param stripePriceId - The price to subscribe to.
|
|
229
269
|
*/
|
|
230
270
|
async startCheckout(stripePriceId) {
|
|
231
|
-
if (!stripePriceId)
|
|
232
|
-
return;
|
|
233
271
|
this.upgradeError.set('');
|
|
234
272
|
this.upgradeLoading.set(stripePriceId);
|
|
235
273
|
try {
|
|
@@ -262,58 +300,60 @@ export class TiersUpgradeSection {
|
|
|
262
300
|
* shows the server's message and keeps the plan.
|
|
263
301
|
*/
|
|
264
302
|
cancelSubscription = async () => {
|
|
265
|
-
this.
|
|
303
|
+
this.cancelError.set('');
|
|
266
304
|
try {
|
|
267
305
|
await this.http.post('/api/billing/cancel', {});
|
|
268
|
-
|
|
269
|
-
this.
|
|
306
|
+
// The server decides what the plan is now (a provider may cancel at period end).
|
|
307
|
+
this.load();
|
|
270
308
|
}
|
|
271
309
|
catch (err) {
|
|
272
|
-
this.
|
|
310
|
+
this.cancelError.set(serverErrorMessage(err) ??
|
|
273
311
|
this.t('settings.billing.cancelFailed', undefined, {
|
|
274
312
|
defaultValue: 'Could not cancel.',
|
|
275
313
|
}));
|
|
276
314
|
}
|
|
277
315
|
};
|
|
278
316
|
static ɵfac = function TiersUpgradeSection_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TiersUpgradeSection)(); };
|
|
279
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TiersUpgradeSection, selectors: [["mol-tiers-upgrade-section"]],
|
|
317
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TiersUpgradeSection, selectors: [["mol-tiers-upgrade-section"]], inputs: { redirectToCheckout: "redirectToCheckout" }, features: [i0.ɵɵHostDirectivesFeature([i1.MolPlacement])], decls: 14, vars: 15, consts: [["mol-flex", "", 3, "align", "justify"], [3, "class"], ["mol-confirm-button", "", "data-mol-id", "billing-cancel-subscription", 3, "variant", "size", "onConfirm"], ["mol-alert", "", 3, "status", "className"], [3, "close", "open", "title"], ["mol-button", "", 3, "variant", "size"], ["mol-button", "", 3, "click", "variant", "size"], ["ngProjectAs", "[slot=label]", 5, ["", "slot", "label"]], ["ngProjectAs", "[slot=confirmLabel]", 5, ["", "slot", "confirmlabel"]], ["mol-button", "", 3, "click", "size", "loading"]], template: function TiersUpgradeSection_Template(rf, ctx) { if (rf & 1) {
|
|
280
318
|
i0.ɵɵelementStart(0, "section")(1, "h3");
|
|
281
319
|
i0.ɵɵtext(2);
|
|
282
320
|
i0.ɵɵelementEnd();
|
|
283
|
-
i0.ɵɵelementStart(3, "div", 0)
|
|
284
|
-
i0.ɵɵ
|
|
285
|
-
i0.ɵɵ
|
|
286
|
-
i0.ɵɵtext(7);
|
|
287
|
-
i0.ɵɵelementEnd()();
|
|
288
|
-
i0.ɵɵconditionalCreate(8, TiersUpgradeSection_Conditional_8_Template, 2, 4, "button", 1)(9, TiersUpgradeSection_Conditional_9_Template, 5, 7, "button", 2);
|
|
289
|
-
i0.ɵɵelementEnd()();
|
|
290
|
-
i0.ɵɵelementStart(10, "mol-modal", 3);
|
|
291
|
-
i0.ɵɵlistener("close", function TiersUpgradeSection_Template_mol_modal_close_10_listener() { return ctx.showUpgrade.set(false); });
|
|
292
|
-
i0.ɵɵconditionalCreate(11, TiersUpgradeSection_Conditional_11_Template, 2, 3, "div", 4);
|
|
293
|
-
i0.ɵɵconditionalCreate(12, TiersUpgradeSection_Conditional_12_Template, 2, 4, "p", 5)(13, TiersUpgradeSection_Conditional_13_Template, 3, 2, "ul", 5);
|
|
321
|
+
i0.ɵɵelementStart(3, "div", 0);
|
|
322
|
+
i0.ɵɵconditionalCreate(4, TiersUpgradeSection_Conditional_4_Template, 4, 5, "span", 1)(5, TiersUpgradeSection_Conditional_5_Template, 1, 0, "span");
|
|
323
|
+
i0.ɵɵconditionalCreate(6, TiersUpgradeSection_Conditional_6_Template, 1, 1)(7, TiersUpgradeSection_Conditional_7_Template, 5, 7, "button", 2);
|
|
294
324
|
i0.ɵɵelementEnd();
|
|
325
|
+
i0.ɵɵconditionalCreate(8, TiersUpgradeSection_Conditional_8_Template, 2, 3, "div", 3);
|
|
326
|
+
i0.ɵɵelementEnd();
|
|
327
|
+
i0.ɵɵelementStart(9, "mol-modal", 4);
|
|
328
|
+
i0.ɵɵlistener("close", function TiersUpgradeSection_Template_mol_modal_close_9_listener() { return ctx.showUpgrade.set(false); });
|
|
329
|
+
i0.ɵɵconditionalCreate(10, TiersUpgradeSection_Conditional_10_Template, 2, 3, "div", 3);
|
|
330
|
+
i0.ɵɵelementStart(11, "ul");
|
|
331
|
+
i0.ɵɵrepeaterCreate(12, TiersUpgradeSection_For_13_Template, 9, 15, "li", 1, _forTrack0);
|
|
332
|
+
i0.ɵɵelementEnd()();
|
|
295
333
|
} if (rf & 2) {
|
|
296
|
-
let
|
|
334
|
+
let tmp_4_0;
|
|
335
|
+
let tmp_6_0;
|
|
336
|
+
let tmp_9_0;
|
|
297
337
|
i0.ɵɵadvance();
|
|
298
338
|
i0.ɵɵclassMap(ctx.cm.cn(ctx.cm.sectionHeading, ctx.cm.sp("mb", 3)));
|
|
299
339
|
i0.ɵɵadvance();
|
|
300
|
-
i0.ɵɵtextInterpolate1(" ", ctx.t("settings.billing", undefined, i0.ɵɵpureFunction0(
|
|
340
|
+
i0.ɵɵtextInterpolate1(" ", ctx.t("settings.billing", undefined, i0.ɵɵpureFunction0(13, _c0)), " ");
|
|
301
341
|
i0.ɵɵadvance();
|
|
302
342
|
i0.ɵɵproperty("align", "center")("justify", "between");
|
|
303
343
|
i0.ɵɵadvance();
|
|
304
|
-
i0.ɵɵ
|
|
305
|
-
i0.ɵɵadvance();
|
|
306
|
-
i0.ɵɵtextInterpolate(ctx.t("settings.plan", undefined, i0.ɵɵpureFunction0(15, _c1)));
|
|
344
|
+
i0.ɵɵconditional((tmp_4_0 = ctx.plan()) ? 4 : 5, tmp_4_0);
|
|
307
345
|
i0.ɵɵadvance(2);
|
|
308
|
-
i0.ɵɵ
|
|
309
|
-
i0.ɵɵadvance();
|
|
310
|
-
i0.ɵɵconditional(ctx.planKey() === "free" ? 8 : 9);
|
|
346
|
+
i0.ɵɵconditional(ctx.isFree() ? 6 : 7);
|
|
311
347
|
i0.ɵɵadvance(2);
|
|
312
|
-
i0.ɵɵ
|
|
348
|
+
i0.ɵɵconditional((tmp_6_0 = ctx.cancelError()) ? 8 : -1, tmp_6_0);
|
|
349
|
+
i0.ɵɵadvance();
|
|
350
|
+
i0.ɵɵproperty("open", ctx.showUpgrade())("title", ctx.t("settings.billing.upgradeTitle", undefined, i0.ɵɵpureFunction0(14, _c1)));
|
|
313
351
|
i0.ɵɵadvance();
|
|
314
|
-
i0.ɵɵconditional((
|
|
352
|
+
i0.ɵɵconditional((tmp_9_0 = ctx.upgradeError()) ? 10 : -1, tmp_9_0);
|
|
315
353
|
i0.ɵɵadvance();
|
|
316
|
-
i0.ɵɵ
|
|
354
|
+
i0.ɵɵclassMap(ctx.cm.stack(3));
|
|
355
|
+
i0.ɵɵadvance();
|
|
356
|
+
i0.ɵɵrepeater(ctx.forSale());
|
|
317
357
|
} }, dependencies: [Alert, Button, ConfirmButton, Flex, Modal], encapsulation: 2 });
|
|
318
358
|
}
|
|
319
359
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TiersUpgradeSection, [{
|
|
@@ -321,25 +361,29 @@ export class TiersUpgradeSection {
|
|
|
321
361
|
args: [{
|
|
322
362
|
selector: 'mol-tiers-upgrade-section',
|
|
323
363
|
standalone: true,
|
|
364
|
+
hostDirectives: [MolPlacement],
|
|
324
365
|
imports: [Alert, Button, ConfirmButton, Flex, Modal],
|
|
325
366
|
inputs: ['redirectToCheckout'],
|
|
326
|
-
host: {
|
|
327
|
-
'data-parity-unwrap': '',
|
|
328
|
-
style: 'display: contents',
|
|
329
|
-
},
|
|
330
367
|
template: `<section>
|
|
331
368
|
<h3 [class]="cm.cn(cm.sectionHeading, cm.sp('mb', 3))">
|
|
332
369
|
{{ t('settings.billing', undefined, { defaultValue: 'Billing' }) }}
|
|
333
370
|
</h3>
|
|
334
371
|
<div mol-flex [align]="'center'" [justify]="'between'">
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
372
|
+
<!-- The plan line waits for the server: there is no plan name to guess. -->
|
|
373
|
+
@if (plan(); as planName) {
|
|
374
|
+
<span [class]="cm.textSize('sm')"
|
|
375
|
+
>{{ t('settings.plan', undefined, { defaultValue: 'Plan: ' })
|
|
376
|
+
}}<strong>{{ planName }}</strong></span
|
|
377
|
+
>
|
|
378
|
+
} @else {
|
|
379
|
+
<span></span>
|
|
380
|
+
}
|
|
381
|
+
@if (isFree()) {
|
|
382
|
+
@if (forSale().length > 0) {
|
|
383
|
+
<button mol-button [variant]="'outline'" [size]="'sm'" (click)="showUpgrade.set(true)">
|
|
384
|
+
{{ t('settings.upgrade', undefined, { defaultValue: 'Upgrade' }) }}
|
|
385
|
+
</button>
|
|
386
|
+
}
|
|
343
387
|
} @else {
|
|
344
388
|
<button
|
|
345
389
|
mol-confirm-button
|
|
@@ -359,6 +403,9 @@ export class TiersUpgradeSection {
|
|
|
359
403
|
</button>
|
|
360
404
|
}
|
|
361
405
|
</div>
|
|
406
|
+
@if (cancelError(); as cancelMessage) {
|
|
407
|
+
<div mol-alert [status]="'error'" [className]="cm.sp('mt', 3)">{{ cancelMessage }}</div>
|
|
408
|
+
}
|
|
362
409
|
</section>
|
|
363
410
|
<mol-modal
|
|
364
411
|
[open]="showUpgrade()"
|
|
@@ -368,40 +415,32 @@ export class TiersUpgradeSection {
|
|
|
368
415
|
@if (upgradeError(); as checkoutError) {
|
|
369
416
|
<div mol-alert [status]="'error'" [className]="cm.sp('mb', 4)">{{ checkoutError }}</div>
|
|
370
417
|
}
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
<div>
|
|
383
|
-
<p [class]="cm.fontWeight('semibold')">
|
|
384
|
-
{{ entry.tier.name }} ({{ entry.price.interval }})
|
|
385
|
-
</p>
|
|
386
|
-
<p [class]="cm.cn(cm.textSize('xs'), cm.textMuted)">
|
|
387
|
-
{{ entry.price.priceLabel }}
|
|
388
|
-
</p>
|
|
389
|
-
</div>
|
|
390
|
-
<button
|
|
391
|
-
mol-button
|
|
392
|
-
[size]="'sm'"
|
|
393
|
-
[loading]="upgradeLoading() === entry.price.stripePriceId"
|
|
394
|
-
(click)="startCheckout(entry.price.stripePriceId)"
|
|
395
|
-
>
|
|
396
|
-
{{ t('settings.billing.subscribe', undefined, { defaultValue: 'Subscribe' }) }}
|
|
397
|
-
</button>
|
|
418
|
+
<ul [class]="cm.stack(3)">
|
|
419
|
+
@for (entry of forSale(); track entry.key) {
|
|
420
|
+
<li [class]="cm.sp('p', 4)">
|
|
421
|
+
<div mol-flex [align]="'center'" [justify]="'between'">
|
|
422
|
+
<div>
|
|
423
|
+
<p [class]="cm.fontWeight('semibold')">
|
|
424
|
+
{{ entry.tier.name }} ({{ entry.price.interval }})
|
|
425
|
+
</p>
|
|
426
|
+
<p [class]="cm.cn(cm.textSize('xs'), cm.textMuted)">
|
|
427
|
+
{{ entry.price.priceLabel }}
|
|
428
|
+
</p>
|
|
398
429
|
</div>
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
430
|
+
<button
|
|
431
|
+
mol-button
|
|
432
|
+
[size]="'sm'"
|
|
433
|
+
[loading]="upgradeLoading() === entry.priceId"
|
|
434
|
+
(click)="startCheckout(entry.priceId)"
|
|
435
|
+
>
|
|
436
|
+
{{ t('settings.billing.subscribe', undefined, { defaultValue: 'Subscribe' }) }}
|
|
437
|
+
</button>
|
|
438
|
+
</div>
|
|
439
|
+
</li>
|
|
440
|
+
}
|
|
441
|
+
</ul>
|
|
403
442
|
</mol-modal>`,
|
|
404
443
|
}]
|
|
405
444
|
}], () => [], null); })();
|
|
406
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TiersUpgradeSection, { className: "TiersUpgradeSection", filePath: "tiers-upgrade-section.component.ts", lineNumber:
|
|
445
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TiersUpgradeSection, { className: "TiersUpgradeSection", filePath: "tiers-upgrade-section.component.ts", lineNumber: 138 }); })();
|
|
407
446
|
//# sourceMappingURL=tiers-upgrade-section.component.js.map
|