@mj-biz-apps/orders-ng 5.46.0 → 5.47.0
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/dist/lib/custom/Product/widgets/product-accounting-widget.component.js +16 -17
- package/dist/lib/custom/Product/widgets/product-accounting-widget.component.js.map +1 -1
- package/dist/lib/custom/Product/widgets/product-effective-gl-accounts.component.d.ts +49 -24
- package/dist/lib/custom/Product/widgets/product-effective-gl-accounts.component.d.ts.map +1 -1
- package/dist/lib/custom/Product/widgets/product-effective-gl-accounts.component.js +229 -137
- package/dist/lib/custom/Product/widgets/product-effective-gl-accounts.component.js.map +1 -1
- package/dist/lib/custom/Product/widgets/product-gl-links.component.d.ts.map +1 -1
- package/dist/lib/custom/Product/widgets/product-gl-links.component.js +229 -183
- package/dist/lib/custom/Product/widgets/product-gl-links.component.js.map +1 -1
- package/dist/lib/custom/Product/widgets/product-pricing-widget.component.d.ts +138 -4
- package/dist/lib/custom/Product/widgets/product-pricing-widget.component.d.ts.map +1 -1
- package/dist/lib/custom/Product/widgets/product-pricing-widget.component.js +1485 -316
- package/dist/lib/custom/Product/widgets/product-pricing-widget.component.js.map +1 -1
- package/dist/lib/custom/currency-input.directive.d.ts +31 -0
- package/dist/lib/custom/currency-input.directive.d.ts.map +1 -0
- package/dist/lib/custom/currency-input.directive.js +121 -0
- package/dist/lib/custom/currency-input.directive.js.map +1 -0
- package/dist/lib/custom/custom-forms.module.d.ts +29 -28
- package/dist/lib/custom/custom-forms.module.d.ts.map +1 -1
- package/dist/lib/custom/custom-forms.module.js +7 -2
- package/dist/lib/custom/custom-forms.module.js.map +1 -1
- package/dist/lib/form-panels/catalog-overviews.panels.d.ts +11 -1
- package/dist/lib/form-panels/catalog-overviews.panels.d.ts.map +1 -1
- package/dist/lib/form-panels/catalog-overviews.panels.js +53 -42
- package/dist/lib/form-panels/catalog-overviews.panels.js.map +1 -1
- package/dist/lib/form-panels/commercial-overviews.panels.js +5 -5
- package/dist/lib/form-panels/document-forms.module.d.ts +1 -1
- package/dist/lib/form-panels/document-forms.module.d.ts.map +1 -1
- package/dist/lib/form-panels/document-forms.module.js +7 -4
- package/dist/lib/form-panels/document-forms.module.js.map +1 -1
- package/dist/lib/form-panels/document-hero.component.js +2 -2
- package/dist/lib/form-panels/document-overviews.panels.js +7 -7
- package/dist/lib/form-panels/lookup-headers.panels.js +10 -10
- package/dist/lib/form-panels/order-access-overrides.panel.js +2 -2
- package/dist/lib/form-panels/overview-cards.component.d.ts +2 -0
- package/dist/lib/form-panels/overview-cards.component.d.ts.map +1 -1
- package/dist/lib/form-panels/overview-cards.component.js +31 -25
- package/dist/lib/form-panels/overview-cards.component.js.map +1 -1
- package/dist/lib/form-panels/payment-header.panel.js +2 -2
- package/dist/lib/form-panels/price-list-header.panel.js +2 -2
- package/dist/lib/form-panels/product-header.panel.d.ts +5 -0
- package/dist/lib/form-panels/product-header.panel.d.ts.map +1 -1
- package/dist/lib/form-panels/product-header.panel.js +148 -83
- package/dist/lib/form-panels/product-header.panel.js.map +1 -1
- package/dist/lib/form-panels/product-widget.panels.d.ts +26 -7
- package/dist/lib/form-panels/product-widget.panels.d.ts.map +1 -1
- package/dist/lib/form-panels/product-widget.panels.js +124 -71
- package/dist/lib/form-panels/product-widget.panels.js.map +1 -1
- package/dist/lib/form-panels/promotion-header.panel.js +2 -2
- package/dist/lib/form-panels/subscription-header.panel.js +2 -2
- package/dist/lib/form-panels/subscription-revrec.panel.js +2 -2
- package/dist/lib/form-panels/subscription-term-header.panel.js +2 -2
- package/dist/lib/form-panels/subscription-term-revrec.panel.js +2 -2
- package/dist/lib/form-panels/subscription-terms.panel.js +2 -2
- package/dist/public-api.d.ts +1 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +1 -0
- package/dist/public-api.js.map +1 -1
- package/package.json +2 -2
|
@@ -4,7 +4,7 @@ import { GetGlobalObjectStore } from '@memberjunction/global';
|
|
|
4
4
|
import { NavigationService } from '@memberjunction/ng-shared';
|
|
5
5
|
import { moveItemInArray } from '@angular/cdk/drag-drop';
|
|
6
6
|
import { FormatDate, FormatMoney } from '../../../panels/money-format.js';
|
|
7
|
-
import { AsDateValue, LoadOrdersEngine, OrdersEngine, PRICE_APPLICABILITY_SOURCES, Today, TodayAsDateValue, priceApplies, } from '@mj-biz-apps/orders-entities';
|
|
7
|
+
import { ApplicabilityNeedsRevenue, AsDateValue, BuildRevenueBandApplicability, ComparePriceRows, DEFAULT_REVENUE_BAND_EDGES, DescribeInapplicableReason, DescribeRevenueLadder, DescribeRevenueLadderIssue, IsRuleApplicable, LoadOrdersEngine, OrdersEngine, PRICE_APPLICABILITY_SOURCES, ParseRevenueBand, RevenueBandName, RevenueBandRangeText, RequireUUID, RevenueBandsFromEdges, ToISODate, Today, TodayAsDateValue, UniquePriceName, priceApplies, } from '@mj-biz-apps/orders-entities';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
import * as i1 from "@angular/forms";
|
|
10
10
|
import * as i2 from "@angular/cdk/drag-drop";
|
|
@@ -12,17 +12,18 @@ import * as i3 from "@memberjunction/ng-base-forms";
|
|
|
12
12
|
import * as i4 from "@memberjunction/ng-ui-components";
|
|
13
13
|
import * as i5 from "@memberjunction/ng-shared-generic";
|
|
14
14
|
import * as i6 from "@memberjunction/ng-filter-builder";
|
|
15
|
+
import * as i7 from "../../currency-input.directive.js";
|
|
15
16
|
const _forTrack0 = ($index, $item) => $item.ID;
|
|
16
17
|
function BizAppsProductPricingWidgetComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
17
18
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
18
|
-
i0.ɵɵelementStart(0, "div",
|
|
19
|
+
i0.ɵɵelementStart(0, "div", 16)(1, "div", 17);
|
|
19
20
|
i0.ɵɵelement(2, "i");
|
|
20
|
-
i0.ɵɵelementStart(3, "span",
|
|
21
|
+
i0.ɵɵelementStart(3, "span", 18);
|
|
21
22
|
i0.ɵɵtext(4);
|
|
22
23
|
i0.ɵɵelementEnd()();
|
|
23
|
-
i0.ɵɵelementStart(5, "button",
|
|
24
|
+
i0.ɵɵelementStart(5, "button", 19);
|
|
24
25
|
i0.ɵɵlistener("click", function BizAppsProductPricingWidgetComponent_Conditional_1_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.DismissToast()); });
|
|
25
|
-
i0.ɵɵelement(6, "i",
|
|
26
|
+
i0.ɵɵelement(6, "i", 20);
|
|
26
27
|
i0.ɵɵelementEnd()();
|
|
27
28
|
} if (rf & 2) {
|
|
28
29
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -32,361 +33,884 @@ function BizAppsProductPricingWidgetComponent_Conditional_1_Template(rf, ctx) {
|
|
|
32
33
|
i0.ɵɵadvance(2);
|
|
33
34
|
i0.ɵɵtextInterpolate(ctx_r1.ActiveToast.Message);
|
|
34
35
|
} }
|
|
35
|
-
function
|
|
36
|
+
function BizAppsProductPricingWidgetComponent_Conditional_13_Template(rf, ctx) { if (rf & 1) {
|
|
36
37
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
37
|
-
i0.ɵɵelementStart(0, "button",
|
|
38
|
-
i0.ɵɵlistener("click", function
|
|
38
|
+
i0.ɵɵelementStart(0, "button", 21);
|
|
39
|
+
i0.ɵɵlistener("click", function BizAppsProductPricingWidgetComponent_Conditional_13_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.ToggleRetired()); });
|
|
40
|
+
i0.ɵɵelement(1, "i");
|
|
41
|
+
i0.ɵɵelementStart(2, "span");
|
|
42
|
+
i0.ɵɵtext(3);
|
|
43
|
+
i0.ɵɵelementEnd()();
|
|
44
|
+
} if (rf & 2) {
|
|
45
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
46
|
+
i0.ɵɵproperty("title", ctx_r1.ShowRetired ? "Hide inactive and expired prices" : "Show inactive and expired prices");
|
|
47
|
+
i0.ɵɵadvance();
|
|
48
|
+
i0.ɵɵclassMap(ctx_r1.ShowRetired ? "fa-solid fa-eye-slash" : "fa-solid fa-eye");
|
|
49
|
+
i0.ɵɵadvance(2);
|
|
50
|
+
i0.ɵɵtextInterpolate(ctx_r1.ShowRetired ? "Hide inactive" : "Show inactive (" + ctx_r1.RetiredCount + ")");
|
|
51
|
+
} }
|
|
52
|
+
function BizAppsProductPricingWidgetComponent_Conditional_19_Template(rf, ctx) { if (rf & 1) {
|
|
53
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
54
|
+
i0.ɵɵelementStart(0, "button", 11);
|
|
55
|
+
i0.ɵɵlistener("click", function BizAppsProductPricingWidgetComponent_Conditional_19_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.SetView("bands")); });
|
|
56
|
+
i0.ɵɵelement(1, "i", 22);
|
|
57
|
+
i0.ɵɵelementStart(2, "span");
|
|
58
|
+
i0.ɵɵtext(3, "Revenue bands");
|
|
59
|
+
i0.ɵɵelementEnd()();
|
|
60
|
+
} if (rf & 2) {
|
|
61
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
62
|
+
i0.ɵɵclassProp("active", ctx_r1.ViewMode === "bands");
|
|
63
|
+
i0.ɵɵattribute("aria-selected", ctx_r1.ViewMode === "bands");
|
|
64
|
+
} }
|
|
65
|
+
function BizAppsProductPricingWidgetComponent_Conditional_24_For_5_Template(rf, ctx) { if (rf & 1) {
|
|
66
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
67
|
+
i0.ɵɵelementStart(0, "button", 26);
|
|
68
|
+
i0.ɵɵlistener("click", function BizAppsProductPricingWidgetComponent_Conditional_24_For_5_Template_button_click_0_listener() { const ch_r6 = i0.ɵɵrestoreView(_r5).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.SelectChannel(ch_r6.ID)); });
|
|
39
69
|
i0.ɵɵelement(1, "i");
|
|
40
70
|
i0.ɵɵelementStart(2, "span");
|
|
41
71
|
i0.ɵɵtext(3);
|
|
42
72
|
i0.ɵɵelementEnd();
|
|
43
|
-
i0.ɵɵelementStart(4, "span",
|
|
73
|
+
i0.ɵɵelementStart(4, "span", 27);
|
|
44
74
|
i0.ɵɵtext(5);
|
|
45
75
|
i0.ɵɵelementEnd()();
|
|
46
76
|
} if (rf & 2) {
|
|
47
|
-
const
|
|
77
|
+
const ch_r6 = ctx.$implicit;
|
|
48
78
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
49
|
-
i0.ɵɵclassProp("active", ctx_r1.SelectedChannelID ===
|
|
79
|
+
i0.ɵɵclassProp("active", ctx_r1.SelectedChannelID === ch_r6.ID);
|
|
80
|
+
i0.ɵɵproperty("title", ch_r6.ID == null ? "Prices every customer can receive" : ch_r6.DiscountDescription || "Prices for customers assigned to this price list");
|
|
81
|
+
i0.ɵɵattribute("aria-selected", ctx_r1.SelectedChannelID === ch_r6.ID);
|
|
50
82
|
i0.ɵɵadvance();
|
|
51
|
-
i0.ɵɵclassMap(
|
|
83
|
+
i0.ɵɵclassMap(ch_r6.Icon);
|
|
52
84
|
i0.ɵɵadvance(2);
|
|
53
|
-
i0.ɵɵtextInterpolate(
|
|
85
|
+
i0.ɵɵtextInterpolate(ch_r6.Name);
|
|
54
86
|
i0.ɵɵadvance(2);
|
|
55
|
-
i0.ɵɵtextInterpolate2("",
|
|
87
|
+
i0.ɵɵtextInterpolate2("", ch_r6.TierCount, " ", ch_r6.TierCount === 1 ? "price" : "prices");
|
|
56
88
|
} }
|
|
57
|
-
function
|
|
58
|
-
i0.ɵɵelementStart(0, "div",
|
|
59
|
-
i0.ɵɵ
|
|
89
|
+
function BizAppsProductPricingWidgetComponent_Conditional_24_Template(rf, ctx) { if (rf & 1) {
|
|
90
|
+
i0.ɵɵelementStart(0, "div", 14)(1, "span", 23);
|
|
91
|
+
i0.ɵɵtext(2, "Price list");
|
|
92
|
+
i0.ɵɵelementEnd();
|
|
93
|
+
i0.ɵɵelementStart(3, "div", 24);
|
|
94
|
+
i0.ɵɵrepeaterCreate(4, BizAppsProductPricingWidgetComponent_Conditional_24_For_5_Template, 6, 9, "button", 25, _forTrack0);
|
|
60
95
|
i0.ɵɵelementEnd()();
|
|
61
96
|
} if (rf & 2) {
|
|
62
97
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
63
|
-
i0.ɵɵadvance(
|
|
64
|
-
i0.ɵɵrepeater(ctx_r1.
|
|
98
|
+
i0.ɵɵadvance(4);
|
|
99
|
+
i0.ɵɵrepeater(ctx_r1.VisibleChannels);
|
|
65
100
|
} }
|
|
66
|
-
function
|
|
67
|
-
const
|
|
68
|
-
i0.ɵɵelementStart(0, "div",
|
|
69
|
-
i0.ɵɵlistener("Navigate", function
|
|
101
|
+
function BizAppsProductPricingWidgetComponent_Conditional_25_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
102
|
+
const _r7 = i0.ɵɵgetCurrentView();
|
|
103
|
+
i0.ɵɵelementStart(0, "div", 28)(1, "mj-explorer-entity-data-grid", 29);
|
|
104
|
+
i0.ɵɵlistener("Navigate", function BizAppsProductPricingWidgetComponent_Conditional_25_Conditional_0_Template_mj_explorer_entity_data_grid_Navigate_1_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.Navigate.emit($event)); });
|
|
70
105
|
i0.ɵɵelementEnd()();
|
|
71
106
|
} if (rf & 2) {
|
|
72
107
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
73
108
|
i0.ɵɵadvance();
|
|
74
109
|
i0.ɵɵproperty("Params", ctx_r1.ProductPricesViewParams)("NewRecordValues", ctx_r1.NewPriceRecordValues)("Height", 420)("AllowLoad", true)("ShowToolbar", true)("ShowNewButton", ctx_r1.EditMode)("ShowDeleteButton", ctx_r1.EditMode);
|
|
75
110
|
} }
|
|
76
|
-
function
|
|
77
|
-
i0.ɵɵconditionalCreate(0,
|
|
111
|
+
function BizAppsProductPricingWidgetComponent_Conditional_25_Template(rf, ctx) { if (rf & 1) {
|
|
112
|
+
i0.ɵɵconditionalCreate(0, BizAppsProductPricingWidgetComponent_Conditional_25_Conditional_0_Template, 2, 7, "div", 28);
|
|
78
113
|
} if (rf & 2) {
|
|
79
114
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
80
115
|
i0.ɵɵconditional(ctx_r1.ProductPricesViewParams ? 0 : -1);
|
|
81
116
|
} }
|
|
82
|
-
function
|
|
83
|
-
i0.ɵɵelementStart(0, "div",
|
|
84
|
-
i0.ɵɵelement(1, "mj-loading",
|
|
117
|
+
function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
118
|
+
i0.ɵɵelementStart(0, "div", 30);
|
|
119
|
+
i0.ɵɵelement(1, "mj-loading", 31);
|
|
85
120
|
i0.ɵɵelementEnd();
|
|
86
121
|
} }
|
|
87
|
-
function
|
|
88
|
-
i0.ɵɵelement(0, "mj-empty-state",
|
|
122
|
+
function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
123
|
+
i0.ɵɵelement(0, "mj-empty-state", 33);
|
|
89
124
|
} if (rf & 2) {
|
|
90
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
91
|
-
i0.ɵɵproperty("Message", ctx_r1.EditMode ? "
|
|
125
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
126
|
+
i0.ɵɵproperty("Message", ctx_r1.EditMode ? "Create a band ladder below, or add bands one at a time." : "Edit the product to add revenue bands.");
|
|
127
|
+
} }
|
|
128
|
+
function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_Conditional_14_Template(rf, ctx) { if (rf & 1) {
|
|
129
|
+
i0.ɵɵelement(0, "th");
|
|
92
130
|
} }
|
|
93
|
-
function
|
|
94
|
-
i0.ɵɵ
|
|
95
|
-
i0.ɵɵ
|
|
131
|
+
function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
132
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
133
|
+
i0.ɵɵelementStart(0, "input", 50);
|
|
134
|
+
i0.ɵɵtwoWayListener("ngModelChange", function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Conditional_2_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r8); const row_r9 = i0.ɵɵnextContext().$implicit; i0.ɵɵtwoWayBindingSet(row_r9.Record.Name, $event) || (row_r9.Record.Name = $event); return i0.ɵɵresetView($event); });
|
|
135
|
+
i0.ɵɵlistener("blur", function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Conditional_2_Template_input_blur_0_listener() { i0.ɵɵrestoreView(_r8); const row_r9 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.SaveBandName(row_r9)); });
|
|
96
136
|
i0.ɵɵelementEnd();
|
|
137
|
+
} if (rf & 2) {
|
|
138
|
+
const row_r9 = i0.ɵɵnextContext().$implicit;
|
|
139
|
+
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
140
|
+
i0.ɵɵtwoWayProperty("ngModel", row_r9.Record.Name);
|
|
141
|
+
i0.ɵɵproperty("disabled", ctx_r1.IsSaving);
|
|
97
142
|
} }
|
|
98
|
-
function
|
|
99
|
-
i0.ɵɵelementStart(0, "span",
|
|
143
|
+
function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
144
|
+
i0.ɵɵelementStart(0, "span", 42);
|
|
100
145
|
i0.ɵɵtext(1);
|
|
101
146
|
i0.ɵɵelementEnd();
|
|
102
147
|
} if (rf & 2) {
|
|
103
|
-
const
|
|
148
|
+
const row_r9 = i0.ɵɵnextContext().$implicit;
|
|
104
149
|
i0.ɵɵadvance();
|
|
105
|
-
i0.ɵɵtextInterpolate(
|
|
150
|
+
i0.ɵɵtextInterpolate(row_r9.Record.Name);
|
|
106
151
|
} }
|
|
107
|
-
function
|
|
152
|
+
function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
108
153
|
const _r10 = i0.ɵɵgetCurrentView();
|
|
109
|
-
i0.ɵɵelementStart(0, "
|
|
110
|
-
i0.ɵɵ
|
|
154
|
+
i0.ɵɵelementStart(0, "input", 51);
|
|
155
|
+
i0.ɵɵtwoWayListener("ngModelChange", function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Conditional_7_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r10); const row_r9 = i0.ɵɵnextContext().$implicit; i0.ɵɵtwoWayBindingSet(row_r9.MinMillions, $event) || (row_r9.MinMillions = $event); return i0.ɵɵresetView($event); });
|
|
156
|
+
i0.ɵɵlistener("blur", function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Conditional_7_Template_input_blur_0_listener() { i0.ɵɵrestoreView(_r10); const row_r9 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.SaveBandEdges(row_r9)); });
|
|
157
|
+
i0.ɵɵelementEnd();
|
|
158
|
+
} if (rf & 2) {
|
|
159
|
+
const row_r9 = i0.ɵɵnextContext().$implicit;
|
|
160
|
+
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
161
|
+
i0.ɵɵtwoWayProperty("ngModel", row_r9.MinMillions);
|
|
162
|
+
i0.ɵɵproperty("disabled", ctx_r1.IsSaving);
|
|
163
|
+
} }
|
|
164
|
+
function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
165
|
+
i0.ɵɵtext(0);
|
|
166
|
+
} if (rf & 2) {
|
|
167
|
+
const row_r9 = i0.ɵɵnextContext().$implicit;
|
|
168
|
+
i0.ɵɵtextInterpolate1(" ", row_r9.MinMillions ?? 0, " ");
|
|
169
|
+
} }
|
|
170
|
+
function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
171
|
+
const _r11 = i0.ɵɵgetCurrentView();
|
|
172
|
+
i0.ɵɵelementStart(0, "input", 52);
|
|
173
|
+
i0.ɵɵtwoWayListener("ngModelChange", function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Conditional_10_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r11); const row_r9 = i0.ɵɵnextContext().$implicit; i0.ɵɵtwoWayBindingSet(row_r9.MaxMillions, $event) || (row_r9.MaxMillions = $event); return i0.ɵɵresetView($event); });
|
|
174
|
+
i0.ɵɵlistener("blur", function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Conditional_10_Template_input_blur_0_listener() { i0.ɵɵrestoreView(_r11); const row_r9 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.SaveBandEdges(row_r9)); });
|
|
175
|
+
i0.ɵɵelementEnd();
|
|
176
|
+
} if (rf & 2) {
|
|
177
|
+
const row_r9 = i0.ɵɵnextContext().$implicit;
|
|
178
|
+
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
179
|
+
i0.ɵɵtwoWayProperty("ngModel", row_r9.MaxMillions);
|
|
180
|
+
i0.ɵɵproperty("disabled", ctx_r1.IsSaving);
|
|
181
|
+
} }
|
|
182
|
+
function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
183
|
+
i0.ɵɵtext(0);
|
|
184
|
+
} if (rf & 2) {
|
|
185
|
+
const row_r9 = i0.ɵɵnextContext().$implicit;
|
|
186
|
+
i0.ɵɵtextInterpolate1(" ", row_r9.MaxMillions == null ? "No limit" : row_r9.MaxMillions, " ");
|
|
187
|
+
} }
|
|
188
|
+
function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Conditional_13_Template(rf, ctx) { if (rf & 1) {
|
|
189
|
+
const _r12 = i0.ɵɵgetCurrentView();
|
|
190
|
+
i0.ɵɵelementStart(0, "input", 53);
|
|
191
|
+
i0.ɵɵtwoWayListener("ngModelChange", function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Conditional_13_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r12); const row_r9 = i0.ɵɵnextContext().$implicit; i0.ɵɵtwoWayBindingSet(row_r9.Record.Amount, $event) || (row_r9.Record.Amount = $event); return i0.ɵɵresetView($event); });
|
|
192
|
+
i0.ɵɵlistener("blur", function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Conditional_13_Template_input_blur_0_listener() { i0.ɵɵrestoreView(_r12); const row_r9 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.SaveBandAmount(row_r9)); });
|
|
193
|
+
i0.ɵɵelementEnd();
|
|
194
|
+
} if (rf & 2) {
|
|
195
|
+
const row_r9 = i0.ɵɵnextContext().$implicit;
|
|
196
|
+
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
197
|
+
i0.ɵɵtwoWayProperty("ngModel", row_r9.Record.Amount);
|
|
198
|
+
i0.ɵɵproperty("disabled", ctx_r1.IsSaving);
|
|
199
|
+
} }
|
|
200
|
+
function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Conditional_14_Template(rf, ctx) { if (rf & 1) {
|
|
201
|
+
i0.ɵɵelementStart(0, "span", 47);
|
|
202
|
+
i0.ɵɵtext(1);
|
|
203
|
+
i0.ɵɵelementEnd();
|
|
204
|
+
} if (rf & 2) {
|
|
205
|
+
const row_r9 = i0.ɵɵnextContext().$implicit;
|
|
206
|
+
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
207
|
+
i0.ɵɵadvance();
|
|
208
|
+
i0.ɵɵtextInterpolate(ctx_r1.FormatCurrency(row_r9.Amount));
|
|
209
|
+
} }
|
|
210
|
+
function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Conditional_18_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
211
|
+
const _r14 = i0.ɵɵgetCurrentView();
|
|
212
|
+
i0.ɵɵelementStart(0, "button", 58);
|
|
213
|
+
i0.ɵɵlistener("click", function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Conditional_18_Conditional_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r14); const row_r9 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.RestorePrice(row_r9.Record)); });
|
|
214
|
+
i0.ɵɵtext(1, "Activate");
|
|
215
|
+
i0.ɵɵelementEnd();
|
|
216
|
+
} if (rf & 2) {
|
|
217
|
+
const ctx_r1 = i0.ɵɵnextContext(6);
|
|
218
|
+
i0.ɵɵproperty("disabled", ctx_r1.IsSaving);
|
|
219
|
+
} }
|
|
220
|
+
function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Conditional_18_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
221
|
+
const _r15 = i0.ɵɵgetCurrentView();
|
|
222
|
+
i0.ɵɵelementStart(0, "button", 59);
|
|
223
|
+
i0.ɵɵlistener("click", function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Conditional_18_Conditional_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r15); const row_r9 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.RetirePrice(row_r9.Record)); });
|
|
224
|
+
i0.ɵɵtext(1, "Deactivate");
|
|
225
|
+
i0.ɵɵelementEnd();
|
|
226
|
+
} if (rf & 2) {
|
|
227
|
+
const ctx_r1 = i0.ɵɵnextContext(6);
|
|
228
|
+
i0.ɵɵproperty("disabled", ctx_r1.IsSaving);
|
|
229
|
+
} }
|
|
230
|
+
function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Conditional_18_Template(rf, ctx) { if (rf & 1) {
|
|
231
|
+
const _r13 = i0.ɵɵgetCurrentView();
|
|
232
|
+
i0.ɵɵelementStart(0, "td", 49);
|
|
233
|
+
i0.ɵɵconditionalCreate(1, BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Conditional_18_Conditional_1_Template, 2, 1, "button", 54)(2, BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Conditional_18_Conditional_2_Template, 2, 1, "button", 55);
|
|
234
|
+
i0.ɵɵelementStart(3, "button", 56);
|
|
235
|
+
i0.ɵɵlistener("click", function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Conditional_18_Template_button_click_3_listener($event) { i0.ɵɵrestoreView(_r13); const row_r9 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OpenPriceRecord(row_r9.Record, $event)); });
|
|
236
|
+
i0.ɵɵelement(4, "i", 57);
|
|
237
|
+
i0.ɵɵelementEnd()();
|
|
238
|
+
} if (rf & 2) {
|
|
239
|
+
const row_r9 = i0.ɵɵnextContext().$implicit;
|
|
240
|
+
i0.ɵɵadvance();
|
|
241
|
+
i0.ɵɵconditional(row_r9.Retired ? 1 : 2);
|
|
242
|
+
} }
|
|
243
|
+
function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Template(rf, ctx) { if (rf & 1) {
|
|
244
|
+
i0.ɵɵelementStart(0, "tr")(1, "td", 40);
|
|
245
|
+
i0.ɵɵconditionalCreate(2, BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Conditional_2_Template, 1, 2, "input", 41)(3, BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Conditional_3_Template, 2, 1, "span", 42);
|
|
246
|
+
i0.ɵɵelementStart(4, "span", 43);
|
|
247
|
+
i0.ɵɵtext(5);
|
|
248
|
+
i0.ɵɵelementEnd()();
|
|
249
|
+
i0.ɵɵelementStart(6, "td", 36);
|
|
250
|
+
i0.ɵɵconditionalCreate(7, BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Conditional_7_Template, 1, 2, "input", 44)(8, BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Conditional_8_Template, 1, 1);
|
|
251
|
+
i0.ɵɵelementEnd();
|
|
252
|
+
i0.ɵɵelementStart(9, "td", 36);
|
|
253
|
+
i0.ɵɵconditionalCreate(10, BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Conditional_10_Template, 1, 2, "input", 45)(11, BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Conditional_11_Template, 1, 1);
|
|
254
|
+
i0.ɵɵelementEnd();
|
|
255
|
+
i0.ɵɵelementStart(12, "td", 36);
|
|
256
|
+
i0.ɵɵconditionalCreate(13, BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Conditional_13_Template, 1, 2, "input", 46)(14, BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Conditional_14_Template, 2, 1, "span", 47);
|
|
257
|
+
i0.ɵɵelementEnd();
|
|
258
|
+
i0.ɵɵelementStart(15, "td")(16, "span", 48);
|
|
259
|
+
i0.ɵɵtext(17);
|
|
260
|
+
i0.ɵɵelementEnd()();
|
|
261
|
+
i0.ɵɵconditionalCreate(18, BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Conditional_18_Template, 5, 1, "td", 49);
|
|
262
|
+
i0.ɵɵelementEnd();
|
|
263
|
+
} if (rf & 2) {
|
|
264
|
+
const row_r9 = ctx.$implicit;
|
|
265
|
+
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
266
|
+
i0.ɵɵclassProp("retired", row_r9.Retired);
|
|
267
|
+
i0.ɵɵadvance(2);
|
|
268
|
+
i0.ɵɵconditional(ctx_r1.EditMode ? 2 : 3);
|
|
269
|
+
i0.ɵɵadvance(3);
|
|
270
|
+
i0.ɵɵtextInterpolate(row_r9.RangeText);
|
|
271
|
+
i0.ɵɵadvance(2);
|
|
272
|
+
i0.ɵɵconditional(ctx_r1.EditMode ? 7 : 8);
|
|
273
|
+
i0.ɵɵadvance(3);
|
|
274
|
+
i0.ɵɵconditional(ctx_r1.EditMode ? 10 : 11);
|
|
275
|
+
i0.ɵɵadvance(3);
|
|
276
|
+
i0.ɵɵconditional(ctx_r1.EditMode ? 13 : 14);
|
|
277
|
+
i0.ɵɵadvance(3);
|
|
278
|
+
i0.ɵɵclassProp("retired", row_r9.Retired);
|
|
279
|
+
i0.ɵɵadvance();
|
|
280
|
+
i0.ɵɵtextInterpolate(row_r9.StatusText || "Active");
|
|
281
|
+
i0.ɵɵadvance();
|
|
282
|
+
i0.ɵɵconditional(ctx_r1.EditMode ? 18 : -1);
|
|
283
|
+
} }
|
|
284
|
+
function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_Conditional_18_For_5_Template(rf, ctx) { if (rf & 1) {
|
|
285
|
+
i0.ɵɵelementStart(0, "span", 61);
|
|
286
|
+
i0.ɵɵtext(1);
|
|
287
|
+
i0.ɵɵelementEnd();
|
|
288
|
+
} if (rf & 2) {
|
|
289
|
+
const issue_r16 = ctx.$implicit;
|
|
290
|
+
i0.ɵɵadvance();
|
|
291
|
+
i0.ɵɵtextInterpolate(issue_r16);
|
|
292
|
+
} }
|
|
293
|
+
function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_Conditional_18_Template(rf, ctx) { if (rf & 1) {
|
|
294
|
+
i0.ɵɵelementStart(0, "div", 38);
|
|
295
|
+
i0.ɵɵelement(1, "i", 60);
|
|
296
|
+
i0.ɵɵelementStart(2, "span");
|
|
297
|
+
i0.ɵɵtext(3, "Revenue ranges with no price, or more than one:");
|
|
298
|
+
i0.ɵɵelementEnd();
|
|
299
|
+
i0.ɵɵrepeaterCreate(4, BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_Conditional_18_For_5_Template, 2, 1, "span", 61, i0.ɵɵrepeaterTrackByIdentity);
|
|
300
|
+
i0.ɵɵelementEnd();
|
|
301
|
+
} if (rf & 2) {
|
|
302
|
+
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
303
|
+
i0.ɵɵadvance(4);
|
|
304
|
+
i0.ɵɵrepeater(ctx_r1.LadderIssues);
|
|
305
|
+
} }
|
|
306
|
+
function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_Conditional_19_Template(rf, ctx) { if (rf & 1) {
|
|
307
|
+
i0.ɵɵelementStart(0, "div", 39);
|
|
308
|
+
i0.ɵɵelement(1, "i", 62);
|
|
309
|
+
i0.ɵɵelementStart(2, "span");
|
|
310
|
+
i0.ɵɵtext(3, "All revenue levels are covered. No gaps or overlaps.");
|
|
311
|
+
i0.ɵɵelementEnd()();
|
|
312
|
+
} }
|
|
313
|
+
function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
314
|
+
i0.ɵɵelementStart(0, "div", 34)(1, "table", 35)(2, "thead")(3, "tr")(4, "th");
|
|
315
|
+
i0.ɵɵtext(5, "Band");
|
|
316
|
+
i0.ɵɵelementEnd();
|
|
317
|
+
i0.ɵɵelementStart(6, "th", 36);
|
|
318
|
+
i0.ɵɵtext(7, "From ($M)");
|
|
319
|
+
i0.ɵɵelementEnd();
|
|
320
|
+
i0.ɵɵelementStart(8, "th", 36);
|
|
321
|
+
i0.ɵɵtext(9, "To ($M)");
|
|
322
|
+
i0.ɵɵelementEnd();
|
|
323
|
+
i0.ɵɵelementStart(10, "th", 36);
|
|
324
|
+
i0.ɵɵtext(11, "Price");
|
|
325
|
+
i0.ɵɵelementEnd();
|
|
326
|
+
i0.ɵɵelementStart(12, "th");
|
|
327
|
+
i0.ɵɵtext(13, "Status");
|
|
328
|
+
i0.ɵɵelementEnd();
|
|
329
|
+
i0.ɵɵconditionalCreate(14, BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_Conditional_14_Template, 1, 0, "th");
|
|
330
|
+
i0.ɵɵelementEnd()();
|
|
331
|
+
i0.ɵɵelementStart(15, "tbody");
|
|
332
|
+
i0.ɵɵrepeaterCreate(16, BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Template, 19, 11, "tr", 37, _forTrack0);
|
|
333
|
+
i0.ɵɵelementEnd()()();
|
|
334
|
+
i0.ɵɵconditionalCreate(18, BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_Conditional_18_Template, 6, 0, "div", 38)(19, BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_Conditional_19_Template, 4, 0, "div", 39);
|
|
335
|
+
} if (rf & 2) {
|
|
336
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
337
|
+
i0.ɵɵadvance(14);
|
|
338
|
+
i0.ɵɵconditional(ctx_r1.EditMode ? 14 : -1);
|
|
339
|
+
i0.ɵɵadvance(2);
|
|
340
|
+
i0.ɵɵrepeater(ctx_r1.BandRows);
|
|
341
|
+
i0.ɵɵadvance(2);
|
|
342
|
+
i0.ɵɵconditional(ctx_r1.LadderIssues.length ? 18 : 19);
|
|
343
|
+
} }
|
|
344
|
+
function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_4_Conditional_0_Conditional_17_Template(rf, ctx) { if (rf & 1) {
|
|
345
|
+
i0.ɵɵelement(0, "mj-loading", 75);
|
|
346
|
+
i0.ɵɵelementStart(1, "span");
|
|
347
|
+
i0.ɵɵtext(2, "Saving\u2026");
|
|
348
|
+
i0.ɵɵelementEnd();
|
|
349
|
+
} if (rf & 2) {
|
|
350
|
+
i0.ɵɵproperty("showText", false);
|
|
351
|
+
} }
|
|
352
|
+
function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_4_Conditional_0_Conditional_18_Template(rf, ctx) { if (rf & 1) {
|
|
353
|
+
i0.ɵɵelement(0, "i", 76);
|
|
354
|
+
i0.ɵɵelementStart(1, "span");
|
|
355
|
+
i0.ɵɵtext(2, "Create bands");
|
|
356
|
+
i0.ɵɵelementEnd();
|
|
357
|
+
} }
|
|
358
|
+
function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_4_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
359
|
+
const _r17 = i0.ɵɵgetCurrentView();
|
|
360
|
+
i0.ɵɵelementStart(0, "div", 63)(1, "div", 65);
|
|
361
|
+
i0.ɵɵtext(2, "Create band ladder");
|
|
362
|
+
i0.ɵɵelementEnd();
|
|
363
|
+
i0.ɵɵelementStart(3, "div", 66)(4, "label", 67)(5, "span", 68);
|
|
364
|
+
i0.ɵɵtext(6, "Breakpoints ($M)");
|
|
365
|
+
i0.ɵɵelementEnd();
|
|
366
|
+
i0.ɵɵelementStart(7, "input", 69);
|
|
367
|
+
i0.ɵɵtwoWayListener("ngModelChange", function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_4_Conditional_0_Template_input_ngModelChange_7_listener($event) { i0.ɵɵrestoreView(_r17); const ctx_r1 = i0.ɵɵnextContext(4); i0.ɵɵtwoWayBindingSet(ctx_r1.BandSetupEdgesText, $event) || (ctx_r1.BandSetupEdgesText = $event); return i0.ɵɵresetView($event); });
|
|
368
|
+
i0.ɵɵelementEnd()();
|
|
369
|
+
i0.ɵɵelementStart(8, "label", 70)(9, "span", 68);
|
|
370
|
+
i0.ɵɵtext(10, "Default price");
|
|
371
|
+
i0.ɵɵelementEnd();
|
|
372
|
+
i0.ɵɵelementStart(11, "input", 71);
|
|
373
|
+
i0.ɵɵtwoWayListener("ngModelChange", function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_4_Conditional_0_Template_input_ngModelChange_11_listener($event) { i0.ɵɵrestoreView(_r17); const ctx_r1 = i0.ɵɵnextContext(4); i0.ɵɵtwoWayBindingSet(ctx_r1.BandSetupAmount, $event) || (ctx_r1.BandSetupAmount = $event); return i0.ɵɵresetView($event); });
|
|
374
|
+
i0.ɵɵelementEnd()();
|
|
375
|
+
i0.ɵɵelementStart(12, "label", 70)(13, "span", 68);
|
|
376
|
+
i0.ɵɵtext(14, "Effective date");
|
|
377
|
+
i0.ɵɵelementEnd();
|
|
378
|
+
i0.ɵɵelementStart(15, "input", 72);
|
|
379
|
+
i0.ɵɵtwoWayListener("ngModelChange", function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_4_Conditional_0_Template_input_ngModelChange_15_listener($event) { i0.ɵɵrestoreView(_r17); const ctx_r1 = i0.ɵɵnextContext(4); i0.ɵɵtwoWayBindingSet(ctx_r1.NewPriceEffectiveFrom, $event) || (ctx_r1.NewPriceEffectiveFrom = $event); return i0.ɵɵresetView($event); });
|
|
380
|
+
i0.ɵɵelementEnd()();
|
|
381
|
+
i0.ɵɵelementStart(16, "button", 73);
|
|
382
|
+
i0.ɵɵlistener("click", function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_4_Conditional_0_Template_button_click_16_listener() { i0.ɵɵrestoreView(_r17); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.CreateBandLadder()); });
|
|
383
|
+
i0.ɵɵconditionalCreate(17, BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_4_Conditional_0_Conditional_17_Template, 3, 1)(18, BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_4_Conditional_0_Conditional_18_Template, 3, 0);
|
|
384
|
+
i0.ɵɵelementEnd()();
|
|
385
|
+
i0.ɵɵelementStart(19, "span", 74);
|
|
386
|
+
i0.ɵɵtext(20);
|
|
387
|
+
i0.ɵɵelementEnd()();
|
|
388
|
+
} if (rf & 2) {
|
|
389
|
+
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
390
|
+
i0.ɵɵadvance(7);
|
|
391
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.BandSetupEdgesText);
|
|
392
|
+
i0.ɵɵproperty("disabled", ctx_r1.IsSaving);
|
|
393
|
+
i0.ɵɵadvance(4);
|
|
394
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.BandSetupAmount);
|
|
395
|
+
i0.ɵɵproperty("disabled", ctx_r1.IsSaving);
|
|
396
|
+
i0.ɵɵadvance(4);
|
|
397
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.NewPriceEffectiveFrom);
|
|
398
|
+
i0.ɵɵproperty("disabled", ctx_r1.IsSaving);
|
|
399
|
+
i0.ɵɵadvance();
|
|
400
|
+
i0.ɵɵproperty("disabled", ctx_r1.IsSaving);
|
|
401
|
+
i0.ɵɵadvance();
|
|
402
|
+
i0.ɵɵconditional(ctx_r1.IsSaving ? 17 : 18);
|
|
403
|
+
i0.ɵɵadvance(3);
|
|
404
|
+
i0.ɵɵtextInterpolate1("", ctx_r1.BandSetupPreview, " All bands start at the default price. Adjust each price in the table.");
|
|
405
|
+
} }
|
|
406
|
+
function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_4_Conditional_1_Conditional_22_Template(rf, ctx) { if (rf & 1) {
|
|
407
|
+
i0.ɵɵelement(0, "mj-loading", 75);
|
|
408
|
+
i0.ɵɵelementStart(1, "span");
|
|
409
|
+
i0.ɵɵtext(2, "Saving\u2026");
|
|
410
|
+
i0.ɵɵelementEnd();
|
|
411
|
+
} if (rf & 2) {
|
|
412
|
+
i0.ɵɵproperty("showText", false);
|
|
413
|
+
} }
|
|
414
|
+
function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_4_Conditional_1_Conditional_23_Template(rf, ctx) { if (rf & 1) {
|
|
415
|
+
i0.ɵɵelement(0, "i", 76);
|
|
416
|
+
i0.ɵɵelementStart(1, "span");
|
|
417
|
+
i0.ɵɵtext(2, "Add band");
|
|
418
|
+
i0.ɵɵelementEnd();
|
|
419
|
+
} }
|
|
420
|
+
function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_4_Conditional_1_Conditional_24_Template(rf, ctx) { if (rf & 1) {
|
|
421
|
+
i0.ɵɵelementStart(0, "span", 74);
|
|
422
|
+
i0.ɵɵtext(1, "The top band has no upper limit. Set one before adding a band above it.");
|
|
423
|
+
i0.ɵɵelementEnd();
|
|
424
|
+
} }
|
|
425
|
+
function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_4_Conditional_1_Conditional_25_Template(rf, ctx) { if (rf & 1) {
|
|
426
|
+
i0.ɵɵelementStart(0, "span", 74);
|
|
427
|
+
i0.ɵɵtext(1, "Leave To blank for the top band. Applies to orders dated on or after the effective date.");
|
|
428
|
+
i0.ɵɵelementEnd();
|
|
429
|
+
} }
|
|
430
|
+
function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
431
|
+
const _r18 = i0.ɵɵgetCurrentView();
|
|
432
|
+
i0.ɵɵelementStart(0, "div", 64)(1, "div", 66)(2, "span", 77);
|
|
433
|
+
i0.ɵɵelement(3, "i", 78);
|
|
434
|
+
i0.ɵɵtext(4, " Add band ");
|
|
435
|
+
i0.ɵɵelementEnd();
|
|
436
|
+
i0.ɵɵelementStart(5, "label", 70)(6, "span", 68);
|
|
437
|
+
i0.ɵɵtext(7, "From ($M)");
|
|
438
|
+
i0.ɵɵelementEnd();
|
|
439
|
+
i0.ɵɵelementStart(8, "input", 79);
|
|
440
|
+
i0.ɵɵtwoWayListener("ngModelChange", function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_4_Conditional_1_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r18); const ctx_r1 = i0.ɵɵnextContext(4); i0.ɵɵtwoWayBindingSet(ctx_r1.NewBandMinMillions, $event) || (ctx_r1.NewBandMinMillions = $event); return i0.ɵɵresetView($event); });
|
|
441
|
+
i0.ɵɵelementEnd()();
|
|
442
|
+
i0.ɵɵelementStart(9, "label", 70)(10, "span", 68);
|
|
443
|
+
i0.ɵɵtext(11, "To ($M)");
|
|
444
|
+
i0.ɵɵelementEnd();
|
|
445
|
+
i0.ɵɵelementStart(12, "input", 80);
|
|
446
|
+
i0.ɵɵtwoWayListener("ngModelChange", function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_4_Conditional_1_Template_input_ngModelChange_12_listener($event) { i0.ɵɵrestoreView(_r18); const ctx_r1 = i0.ɵɵnextContext(4); i0.ɵɵtwoWayBindingSet(ctx_r1.NewBandMaxMillions, $event) || (ctx_r1.NewBandMaxMillions = $event); return i0.ɵɵresetView($event); });
|
|
447
|
+
i0.ɵɵelementEnd()();
|
|
448
|
+
i0.ɵɵelementStart(13, "label", 70)(14, "span", 68);
|
|
449
|
+
i0.ɵɵtext(15, "Price");
|
|
450
|
+
i0.ɵɵelementEnd();
|
|
451
|
+
i0.ɵɵelementStart(16, "input", 71);
|
|
452
|
+
i0.ɵɵtwoWayListener("ngModelChange", function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_4_Conditional_1_Template_input_ngModelChange_16_listener($event) { i0.ɵɵrestoreView(_r18); const ctx_r1 = i0.ɵɵnextContext(4); i0.ɵɵtwoWayBindingSet(ctx_r1.NewBandAmount, $event) || (ctx_r1.NewBandAmount = $event); return i0.ɵɵresetView($event); });
|
|
453
|
+
i0.ɵɵelementEnd()();
|
|
454
|
+
i0.ɵɵelementStart(17, "label", 70)(18, "span", 68);
|
|
455
|
+
i0.ɵɵtext(19, "Effective date");
|
|
456
|
+
i0.ɵɵelementEnd();
|
|
457
|
+
i0.ɵɵelementStart(20, "input", 72);
|
|
458
|
+
i0.ɵɵtwoWayListener("ngModelChange", function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_4_Conditional_1_Template_input_ngModelChange_20_listener($event) { i0.ɵɵrestoreView(_r18); const ctx_r1 = i0.ɵɵnextContext(4); i0.ɵɵtwoWayBindingSet(ctx_r1.NewPriceEffectiveFrom, $event) || (ctx_r1.NewPriceEffectiveFrom = $event); return i0.ɵɵresetView($event); });
|
|
459
|
+
i0.ɵɵelementEnd()();
|
|
460
|
+
i0.ɵɵelementStart(21, "button", 73);
|
|
461
|
+
i0.ɵɵlistener("click", function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_4_Conditional_1_Template_button_click_21_listener() { i0.ɵɵrestoreView(_r18); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.AddBand()); });
|
|
462
|
+
i0.ɵɵconditionalCreate(22, BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_4_Conditional_1_Conditional_22_Template, 3, 1)(23, BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_4_Conditional_1_Conditional_23_Template, 3, 0);
|
|
463
|
+
i0.ɵɵelementEnd()();
|
|
464
|
+
i0.ɵɵconditionalCreate(24, BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_4_Conditional_1_Conditional_24_Template, 2, 0, "span", 74)(25, BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_4_Conditional_1_Conditional_25_Template, 2, 0, "span", 74);
|
|
465
|
+
i0.ɵɵelementEnd();
|
|
466
|
+
} if (rf & 2) {
|
|
467
|
+
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
468
|
+
i0.ɵɵadvance(8);
|
|
469
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.NewBandMinMillions);
|
|
470
|
+
i0.ɵɵproperty("disabled", ctx_r1.IsSaving);
|
|
471
|
+
i0.ɵɵadvance(4);
|
|
472
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.NewBandMaxMillions);
|
|
473
|
+
i0.ɵɵproperty("disabled", ctx_r1.IsSaving);
|
|
474
|
+
i0.ɵɵadvance(4);
|
|
475
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.NewBandAmount);
|
|
476
|
+
i0.ɵɵproperty("disabled", ctx_r1.IsSaving);
|
|
477
|
+
i0.ɵɵadvance(4);
|
|
478
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.NewPriceEffectiveFrom);
|
|
479
|
+
i0.ɵɵproperty("disabled", ctx_r1.IsSaving);
|
|
480
|
+
i0.ɵɵadvance();
|
|
481
|
+
i0.ɵɵproperty("disabled", ctx_r1.IsSaving);
|
|
482
|
+
i0.ɵɵadvance();
|
|
483
|
+
i0.ɵɵconditional(ctx_r1.IsSaving ? 22 : 23);
|
|
484
|
+
i0.ɵɵadvance(2);
|
|
485
|
+
i0.ɵɵconditional(ctx_r1.TopBandOpen ? 24 : 25);
|
|
486
|
+
} }
|
|
487
|
+
function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
488
|
+
i0.ɵɵconditionalCreate(0, BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_4_Conditional_0_Template, 21, 9, "div", 63)(1, BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_4_Conditional_1_Template, 26, 11, "div", 64);
|
|
489
|
+
} if (rf & 2) {
|
|
490
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
491
|
+
i0.ɵɵconditional(ctx_r1.BandRows.length === 0 ? 0 : 1);
|
|
492
|
+
} }
|
|
493
|
+
function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
494
|
+
i0.ɵɵelementStart(0, "p", 32);
|
|
495
|
+
i0.ɵɵtext(1, " Price by the customer's annual revenue. Each band includes its lower limit and excludes its upper limit. Revenue comes from the organization's latest tax return; if none is on file, the band is selected on the order line. ");
|
|
496
|
+
i0.ɵɵelementEnd();
|
|
497
|
+
i0.ɵɵconditionalCreate(2, BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_2_Template, 1, 1, "mj-empty-state", 33)(3, BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_Template, 20, 2);
|
|
498
|
+
i0.ɵɵconditionalCreate(4, BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_4_Template, 2, 1);
|
|
499
|
+
} if (rf & 2) {
|
|
500
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
501
|
+
i0.ɵɵadvance(2);
|
|
502
|
+
i0.ɵɵconditional(ctx_r1.BandRows.length === 0 ? 2 : 3);
|
|
503
|
+
i0.ɵɵadvance(2);
|
|
504
|
+
i0.ɵɵconditional(ctx_r1.EditMode ? 4 : -1);
|
|
505
|
+
} }
|
|
506
|
+
function BizAppsProductPricingWidgetComponent_Conditional_26_Template(rf, ctx) { if (rf & 1) {
|
|
507
|
+
i0.ɵɵelementStart(0, "div", 15);
|
|
508
|
+
i0.ɵɵconditionalCreate(1, BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_1_Template, 2, 0, "div", 30)(2, BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Template, 5, 2);
|
|
509
|
+
i0.ɵɵelementEnd();
|
|
510
|
+
} if (rf & 2) {
|
|
511
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
512
|
+
i0.ɵɵadvance();
|
|
513
|
+
i0.ɵɵconditional(ctx_r1.IsLoading ? 1 : 2);
|
|
514
|
+
} }
|
|
515
|
+
function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
516
|
+
i0.ɵɵelementStart(0, "div", 30);
|
|
517
|
+
i0.ɵɵelement(1, "mj-loading", 31);
|
|
518
|
+
i0.ɵɵelementEnd();
|
|
519
|
+
} }
|
|
520
|
+
function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
521
|
+
i0.ɵɵelement(0, "mj-empty-state", 81);
|
|
522
|
+
} if (rf & 2) {
|
|
523
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
524
|
+
i0.ɵɵproperty("Message", ctx_r1.EditMode ? "Add a price below. Add conditions only when a price applies to specific customers." : "Edit the product to add prices.");
|
|
525
|
+
} }
|
|
526
|
+
function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
527
|
+
i0.ɵɵelementStart(0, "span", 87);
|
|
528
|
+
i0.ɵɵelement(1, "i", 95);
|
|
529
|
+
i0.ɵɵelementEnd();
|
|
530
|
+
} }
|
|
531
|
+
function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
532
|
+
i0.ɵɵelementStart(0, "span", 91);
|
|
533
|
+
i0.ɵɵtext(1);
|
|
534
|
+
i0.ɵɵelementEnd();
|
|
535
|
+
} if (rf & 2) {
|
|
536
|
+
const row_r21 = i0.ɵɵnextContext().$implicit;
|
|
537
|
+
i0.ɵɵadvance();
|
|
538
|
+
i0.ɵɵtextInterpolate(row_r21.WhenText);
|
|
539
|
+
} }
|
|
540
|
+
function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
541
|
+
i0.ɵɵelementStart(0, "span", 48);
|
|
542
|
+
i0.ɵɵtext(1);
|
|
543
|
+
i0.ɵɵelementEnd();
|
|
544
|
+
} if (rf & 2) {
|
|
545
|
+
const row_r21 = i0.ɵɵnextContext().$implicit;
|
|
546
|
+
i0.ɵɵclassProp("retired", row_r21.Retired);
|
|
547
|
+
i0.ɵɵadvance();
|
|
548
|
+
i0.ɵɵtextInterpolate(row_r21.StatusText);
|
|
549
|
+
} }
|
|
550
|
+
function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
551
|
+
i0.ɵɵelementStart(0, "span", 93);
|
|
552
|
+
i0.ɵɵtext(1);
|
|
553
|
+
i0.ɵɵelementEnd();
|
|
554
|
+
} if (rf & 2) {
|
|
555
|
+
const row_r21 = i0.ɵɵnextContext().$implicit;
|
|
556
|
+
i0.ɵɵadvance();
|
|
557
|
+
i0.ɵɵtextInterpolate(row_r21.SourceLabel);
|
|
558
|
+
} }
|
|
559
|
+
function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_1_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
560
|
+
const _r23 = i0.ɵɵgetCurrentView();
|
|
561
|
+
i0.ɵɵelementStart(0, "button", 99);
|
|
562
|
+
i0.ɵɵlistener("click", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_1_Conditional_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r23); const row_r21 = i0.ɵɵnextContext(3).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OverrideInherited(row_r21)); });
|
|
111
563
|
i0.ɵɵtext(1, "Override on this product");
|
|
112
564
|
i0.ɵɵelementEnd();
|
|
113
565
|
} }
|
|
114
|
-
function
|
|
115
|
-
i0.ɵɵelementStart(0, "p",
|
|
116
|
-
i0.ɵɵtext(1, " Inherited. A price with
|
|
117
|
-
i0.ɵɵconditionalCreate(2,
|
|
566
|
+
function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
567
|
+
i0.ɵɵelementStart(0, "p", 97);
|
|
568
|
+
i0.ɵɵtext(1, " Inherited from the product category. A product price with the same name overrides it. ");
|
|
569
|
+
i0.ɵɵconditionalCreate(2, BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_1_Conditional_2_Template, 2, 0, "button", 98);
|
|
118
570
|
i0.ɵɵelementEnd();
|
|
119
571
|
} if (rf & 2) {
|
|
120
572
|
const ctx_r1 = i0.ɵɵnextContext(5);
|
|
121
573
|
i0.ɵɵadvance(2);
|
|
122
574
|
i0.ɵɵconditional(ctx_r1.EditMode ? 2 : -1);
|
|
123
575
|
} }
|
|
124
|
-
function
|
|
125
|
-
const
|
|
126
|
-
i0.ɵɵelementStart(0, "
|
|
576
|
+
function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_0_Conditional_34_Template(rf, ctx) { if (rf & 1) {
|
|
577
|
+
const _r25 = i0.ɵɵgetCurrentView();
|
|
578
|
+
i0.ɵɵelementStart(0, "button", 117);
|
|
579
|
+
i0.ɵɵlistener("click", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_0_Conditional_34_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r25); const row_r21 = i0.ɵɵnextContext(4).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.RestorePrice(row_r21.Record)); });
|
|
580
|
+
i0.ɵɵtext(1, "Activate");
|
|
581
|
+
i0.ɵɵelementEnd();
|
|
582
|
+
} if (rf & 2) {
|
|
583
|
+
const ctx_r1 = i0.ɵɵnextContext(7);
|
|
584
|
+
i0.ɵɵproperty("disabled", ctx_r1.IsSaving);
|
|
585
|
+
} }
|
|
586
|
+
function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_0_Conditional_35_Template(rf, ctx) { if (rf & 1) {
|
|
587
|
+
const _r26 = i0.ɵɵgetCurrentView();
|
|
588
|
+
i0.ɵɵelementStart(0, "button", 118);
|
|
589
|
+
i0.ɵɵlistener("click", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_0_Conditional_35_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r26); const row_r21 = i0.ɵɵnextContext(4).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.RetirePrice(row_r21.Record)); });
|
|
590
|
+
i0.ɵɵtext(1, "Deactivate");
|
|
591
|
+
i0.ɵɵelementEnd();
|
|
592
|
+
} if (rf & 2) {
|
|
593
|
+
const ctx_r1 = i0.ɵɵnextContext(7);
|
|
594
|
+
i0.ɵɵproperty("disabled", ctx_r1.IsSaving);
|
|
595
|
+
} }
|
|
596
|
+
function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
597
|
+
const _r24 = i0.ɵɵgetCurrentView();
|
|
598
|
+
i0.ɵɵelementStart(0, "div", 103)(1, "label", 70)(2, "span", 68);
|
|
127
599
|
i0.ɵɵtext(3, "Name");
|
|
128
600
|
i0.ɵɵelementEnd();
|
|
129
|
-
i0.ɵɵelementStart(4, "input",
|
|
130
|
-
i0.ɵɵtwoWayListener("ngModelChange", function
|
|
131
|
-
i0.ɵɵlistener("blur", function
|
|
601
|
+
i0.ɵɵelementStart(4, "input", 104);
|
|
602
|
+
i0.ɵɵtwoWayListener("ngModelChange", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_0_Template_input_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(_r24); const row_r21 = i0.ɵɵnextContext(3).$implicit; i0.ɵɵtwoWayBindingSet(row_r21.Record.Name, $event) || (row_r21.Record.Name = $event); return i0.ɵɵresetView($event); });
|
|
603
|
+
i0.ɵɵlistener("blur", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_0_Template_input_blur_4_listener() { i0.ɵɵrestoreView(_r24); const row_r21 = i0.ɵɵnextContext(3).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.SavePrice(row_r21.Record)); });
|
|
132
604
|
i0.ɵɵelementEnd()();
|
|
133
|
-
i0.ɵɵelementStart(5, "label",
|
|
134
|
-
i0.ɵɵtext(7, "
|
|
605
|
+
i0.ɵɵelementStart(5, "label", 70)(6, "span", 68);
|
|
606
|
+
i0.ɵɵtext(7, "Price");
|
|
135
607
|
i0.ɵɵelementEnd();
|
|
136
|
-
i0.ɵɵelementStart(8, "input",
|
|
137
|
-
i0.ɵɵtwoWayListener("ngModelChange", function
|
|
138
|
-
i0.ɵɵlistener("blur", function
|
|
608
|
+
i0.ɵɵelementStart(8, "input", 105);
|
|
609
|
+
i0.ɵɵtwoWayListener("ngModelChange", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_0_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r24); const row_r21 = i0.ɵɵnextContext(3).$implicit; i0.ɵɵtwoWayBindingSet(row_r21.Record.Amount, $event) || (row_r21.Record.Amount = $event); return i0.ɵɵresetView($event); });
|
|
610
|
+
i0.ɵɵlistener("blur", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_0_Template_input_blur_8_listener() { i0.ɵɵrestoreView(_r24); const row_r21 = i0.ɵɵnextContext(3).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.SavePrice(row_r21.Record)); });
|
|
139
611
|
i0.ɵɵelementEnd()();
|
|
140
|
-
i0.ɵɵelementStart(9, "label",
|
|
141
|
-
i0.ɵɵtext(11, "
|
|
612
|
+
i0.ɵɵelementStart(9, "label", 70)(10, "span", 68);
|
|
613
|
+
i0.ɵɵtext(11, "Pricing model");
|
|
142
614
|
i0.ɵɵelementEnd();
|
|
143
|
-
i0.ɵɵelementStart(12, "select",
|
|
144
|
-
i0.ɵɵtwoWayListener("ngModelChange", function
|
|
145
|
-
i0.ɵɵlistener("change", function
|
|
146
|
-
i0.ɵɵelementStart(13, "option",
|
|
615
|
+
i0.ɵɵelementStart(12, "select", 106);
|
|
616
|
+
i0.ɵɵtwoWayListener("ngModelChange", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_0_Template_select_ngModelChange_12_listener($event) { i0.ɵɵrestoreView(_r24); const row_r21 = i0.ɵɵnextContext(3).$implicit; i0.ɵɵtwoWayBindingSet(row_r21.Record.PricingModel, $event) || (row_r21.Record.PricingModel = $event); return i0.ɵɵresetView($event); });
|
|
617
|
+
i0.ɵɵlistener("change", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_0_Template_select_change_12_listener() { i0.ɵɵrestoreView(_r24); const row_r21 = i0.ɵɵnextContext(3).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.SavePrice(row_r21.Record)); });
|
|
618
|
+
i0.ɵɵelementStart(13, "option", 107);
|
|
147
619
|
i0.ɵɵtext(14, "Per unit");
|
|
148
620
|
i0.ɵɵelementEnd();
|
|
149
|
-
i0.ɵɵelementStart(15, "option",
|
|
621
|
+
i0.ɵɵelementStart(15, "option", 108);
|
|
150
622
|
i0.ɵɵtext(16, "Package");
|
|
151
623
|
i0.ɵɵelementEnd();
|
|
152
|
-
i0.ɵɵelementStart(17, "option",
|
|
624
|
+
i0.ɵɵelementStart(17, "option", 109);
|
|
153
625
|
i0.ɵɵtext(18, "Volume");
|
|
154
626
|
i0.ɵɵelementEnd();
|
|
155
|
-
i0.ɵɵelementStart(19, "option",
|
|
627
|
+
i0.ɵɵelementStart(19, "option", 110);
|
|
156
628
|
i0.ɵɵtext(20, "Flat");
|
|
157
629
|
i0.ɵɵelementEnd()()()();
|
|
630
|
+
i0.ɵɵelementStart(21, "div", 111)(22, "label", 70)(23, "span", 68);
|
|
631
|
+
i0.ɵɵtext(24, "Status");
|
|
632
|
+
i0.ɵɵelementEnd();
|
|
633
|
+
i0.ɵɵelementStart(25, "select", 112);
|
|
634
|
+
i0.ɵɵtwoWayListener("ngModelChange", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_0_Template_select_ngModelChange_25_listener($event) { i0.ɵɵrestoreView(_r24); const row_r21 = i0.ɵɵnextContext(3).$implicit; i0.ɵɵtwoWayBindingSet(row_r21.Record.Status, $event) || (row_r21.Record.Status = $event); return i0.ɵɵresetView($event); });
|
|
635
|
+
i0.ɵɵlistener("change", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_0_Template_select_change_25_listener() { i0.ɵɵrestoreView(_r24); const row_r21 = i0.ɵɵnextContext(3).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnStatusChange(row_r21.Record)); });
|
|
636
|
+
i0.ɵɵelementStart(26, "option", 113);
|
|
637
|
+
i0.ɵɵtext(27, "Active");
|
|
638
|
+
i0.ɵɵelementEnd();
|
|
639
|
+
i0.ɵɵelementStart(28, "option", 114);
|
|
640
|
+
i0.ɵɵtext(29, "Inactive");
|
|
641
|
+
i0.ɵɵelementEnd()()();
|
|
642
|
+
i0.ɵɵelementStart(30, "label", 70)(31, "span", 68);
|
|
643
|
+
i0.ɵɵtext(32, "Expiration date");
|
|
644
|
+
i0.ɵɵelementEnd();
|
|
645
|
+
i0.ɵɵelementStart(33, "input", 72);
|
|
646
|
+
i0.ɵɵlistener("ngModelChange", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_0_Template_input_ngModelChange_33_listener($event) { i0.ɵɵrestoreView(_r24); const row_r21 = i0.ɵɵnextContext(3).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnEffectiveToChange(row_r21.Record, $event)); });
|
|
647
|
+
i0.ɵɵelementEnd()();
|
|
648
|
+
i0.ɵɵconditionalCreate(34, BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_0_Conditional_34_Template, 2, 1, "button", 115)(35, BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_0_Conditional_35_Template, 2, 1, "button", 116);
|
|
649
|
+
i0.ɵɵelementStart(36, "button", 99);
|
|
650
|
+
i0.ɵɵlistener("click", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_0_Template_button_click_36_listener($event) { i0.ɵɵrestoreView(_r24); const row_r21 = i0.ɵɵnextContext(3).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OpenPriceRecord(row_r21.Record, $event)); });
|
|
651
|
+
i0.ɵɵelement(37, "i", 57);
|
|
652
|
+
i0.ɵɵelementStart(38, "span");
|
|
653
|
+
i0.ɵɵtext(39, "Open record");
|
|
654
|
+
i0.ɵɵelementEnd()()();
|
|
158
655
|
} if (rf & 2) {
|
|
159
|
-
const
|
|
656
|
+
const row_r21 = i0.ɵɵnextContext(3).$implicit;
|
|
657
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
160
658
|
i0.ɵɵadvance(4);
|
|
161
|
-
i0.ɵɵtwoWayProperty("ngModel",
|
|
659
|
+
i0.ɵɵtwoWayProperty("ngModel", row_r21.Record.Name);
|
|
162
660
|
i0.ɵɵadvance(4);
|
|
163
|
-
i0.ɵɵtwoWayProperty("ngModel",
|
|
661
|
+
i0.ɵɵtwoWayProperty("ngModel", row_r21.Record.Amount);
|
|
164
662
|
i0.ɵɵadvance(4);
|
|
165
|
-
i0.ɵɵtwoWayProperty("ngModel",
|
|
663
|
+
i0.ɵɵtwoWayProperty("ngModel", row_r21.Record.PricingModel);
|
|
664
|
+
i0.ɵɵadvance(13);
|
|
665
|
+
i0.ɵɵtwoWayProperty("ngModel", row_r21.Record.Status);
|
|
666
|
+
i0.ɵɵproperty("disabled", ctx_r1.IsSaving);
|
|
667
|
+
i0.ɵɵadvance(8);
|
|
668
|
+
i0.ɵɵproperty("ngModel", ctx_r1.EffectiveToInput(row_r21.Record))("disabled", ctx_r1.IsSaving);
|
|
669
|
+
i0.ɵɵadvance();
|
|
670
|
+
i0.ɵɵconditional(row_r21.Retired ? 34 : 35);
|
|
166
671
|
} }
|
|
167
|
-
function
|
|
168
|
-
const
|
|
169
|
-
i0.ɵɵelementStart(0, "div",
|
|
170
|
-
i0.ɵɵlistener("click", function
|
|
171
|
-
i0.ɵɵtext(2, "Edit
|
|
672
|
+
function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
673
|
+
const _r27 = i0.ɵɵgetCurrentView();
|
|
674
|
+
i0.ɵɵelementStart(0, "div", 100)(1, "button", 99);
|
|
675
|
+
i0.ɵɵlistener("click", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_1_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r27); const row_r21 = i0.ɵɵnextContext(3).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OpenWhenEditor(row_r21)); });
|
|
676
|
+
i0.ɵɵtext(2, "Edit conditions");
|
|
172
677
|
i0.ɵɵelementEnd()();
|
|
173
678
|
} }
|
|
174
|
-
function
|
|
175
|
-
const
|
|
176
|
-
i0.ɵɵelementStart(0, "button",
|
|
177
|
-
i0.ɵɵlistener("click", function
|
|
178
|
-
i0.ɵɵtext(1, "+
|
|
679
|
+
function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
680
|
+
const _r28 = i0.ɵɵgetCurrentView();
|
|
681
|
+
i0.ɵɵelementStart(0, "button", 99);
|
|
682
|
+
i0.ɵɵlistener("click", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r28); const row_r21 = i0.ɵɵnextContext(3).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OpenWhenEditor(row_r21)); });
|
|
683
|
+
i0.ɵɵtext(1, "+ Conditions");
|
|
179
684
|
i0.ɵɵelementEnd();
|
|
180
685
|
} }
|
|
181
|
-
function
|
|
182
|
-
const
|
|
183
|
-
i0.ɵɵelementStart(0, "div",
|
|
184
|
-
i0.ɵɵtext(
|
|
686
|
+
function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
687
|
+
const _r29 = i0.ɵɵgetCurrentView();
|
|
688
|
+
i0.ɵɵelementStart(0, "div", 101)(1, "div", 119)(2, "div", 65);
|
|
689
|
+
i0.ɵɵtext(3, "Conditions");
|
|
690
|
+
i0.ɵɵelementEnd();
|
|
691
|
+
i0.ɵɵelementStart(4, "label", 120)(5, "input", 121);
|
|
692
|
+
i0.ɵɵlistener("ngModelChange", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_3_Template_input_ngModelChange_5_listener($event) { i0.ɵɵrestoreView(_r29); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.ToggleAllWhenFields($event)); });
|
|
185
693
|
i0.ɵɵelementEnd();
|
|
186
|
-
i0.ɵɵelementStart(
|
|
187
|
-
i0.ɵɵ
|
|
694
|
+
i0.ɵɵelementStart(6, "span");
|
|
695
|
+
i0.ɵɵtext(7, "Show all fields");
|
|
696
|
+
i0.ɵɵelementEnd()()();
|
|
697
|
+
i0.ɵɵelementStart(8, "mj-filter-builder", 122);
|
|
698
|
+
i0.ɵɵlistener("filterChange", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_3_Template_mj_filter_builder_filterChange_8_listener($event) { i0.ɵɵrestoreView(_r29); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.OnWhenFilterChange($event)); });
|
|
188
699
|
i0.ɵɵelementEnd();
|
|
189
|
-
i0.ɵɵelementStart(
|
|
190
|
-
i0.ɵɵlistener("click", function
|
|
191
|
-
i0.ɵɵtext(
|
|
700
|
+
i0.ɵɵelementStart(9, "div", 123)(10, "button", 99);
|
|
701
|
+
i0.ɵɵlistener("click", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_3_Template_button_click_10_listener() { i0.ɵɵrestoreView(_r29); const row_r21 = i0.ɵɵnextContext(3).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.ClearWhen(row_r21)); });
|
|
702
|
+
i0.ɵɵtext(11, "Remove conditions");
|
|
192
703
|
i0.ɵɵelementEnd();
|
|
193
|
-
i0.ɵɵelementStart(
|
|
194
|
-
i0.ɵɵlistener("click", function
|
|
195
|
-
i0.ɵɵtext(
|
|
704
|
+
i0.ɵɵelementStart(12, "button", 99);
|
|
705
|
+
i0.ɵɵlistener("click", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_3_Template_button_click_12_listener() { i0.ɵɵrestoreView(_r29); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.CloseWhenEditor()); });
|
|
706
|
+
i0.ɵɵtext(13, "Cancel");
|
|
196
707
|
i0.ɵɵelementEnd();
|
|
197
|
-
i0.ɵɵelementStart(
|
|
198
|
-
i0.ɵɵlistener("click", function
|
|
199
|
-
i0.ɵɵtext(
|
|
708
|
+
i0.ɵɵelementStart(14, "button", 124);
|
|
709
|
+
i0.ɵɵlistener("click", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_3_Template_button_click_14_listener() { i0.ɵɵrestoreView(_r29); const row_r21 = i0.ɵɵnextContext(3).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.SaveWhen(row_r21)); });
|
|
710
|
+
i0.ɵɵtext(15, "Save conditions");
|
|
200
711
|
i0.ɵɵelementEnd()()();
|
|
201
712
|
} if (rf & 2) {
|
|
202
713
|
const ctx_r1 = i0.ɵɵnextContext(6);
|
|
714
|
+
i0.ɵɵadvance(5);
|
|
715
|
+
i0.ɵɵproperty("ngModel", ctx_r1.ShowAllWhenFields);
|
|
203
716
|
i0.ɵɵadvance(3);
|
|
204
717
|
i0.ɵɵproperty("fields", ctx_r1.WhenFields)("filter", ctx_r1.WhenFilter)("showSummary", true);
|
|
205
718
|
} }
|
|
206
|
-
function
|
|
207
|
-
const
|
|
208
|
-
i0.ɵɵelementStart(0, "div",
|
|
209
|
-
i0.ɵɵtext(3, "Min
|
|
719
|
+
function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_4_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
720
|
+
const _r30 = i0.ɵɵgetCurrentView();
|
|
721
|
+
i0.ɵɵelementStart(0, "div", 125)(1, "label", 70)(2, "span", 68);
|
|
722
|
+
i0.ɵɵtext(3, "Min quantity");
|
|
210
723
|
i0.ɵɵelementEnd();
|
|
211
|
-
i0.ɵɵelementStart(4, "input",
|
|
212
|
-
i0.ɵɵtwoWayListener("ngModelChange", function
|
|
213
|
-
i0.ɵɵlistener("blur", function
|
|
724
|
+
i0.ɵɵelementStart(4, "input", 127);
|
|
725
|
+
i0.ɵɵtwoWayListener("ngModelChange", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_4_Conditional_3_Template_input_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(_r30); const row_r21 = i0.ɵɵnextContext(4).$implicit; i0.ɵɵtwoWayBindingSet(row_r21.Record.MinQuantity, $event) || (row_r21.Record.MinQuantity = $event); return i0.ɵɵresetView($event); });
|
|
726
|
+
i0.ɵɵlistener("blur", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_4_Conditional_3_Template_input_blur_4_listener() { i0.ɵɵrestoreView(_r30); const row_r21 = i0.ɵɵnextContext(4).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.SavePrice(row_r21.Record)); });
|
|
214
727
|
i0.ɵɵelementEnd()();
|
|
215
|
-
i0.ɵɵelementStart(5, "label",
|
|
216
|
-
i0.ɵɵtext(7, "Max
|
|
728
|
+
i0.ɵɵelementStart(5, "label", 70)(6, "span", 68);
|
|
729
|
+
i0.ɵɵtext(7, "Max quantity");
|
|
217
730
|
i0.ɵɵelementEnd();
|
|
218
|
-
i0.ɵɵelementStart(8, "input",
|
|
219
|
-
i0.ɵɵtwoWayListener("ngModelChange", function
|
|
220
|
-
i0.ɵɵlistener("blur", function
|
|
731
|
+
i0.ɵɵelementStart(8, "input", 127);
|
|
732
|
+
i0.ɵɵtwoWayListener("ngModelChange", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_4_Conditional_3_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r30); const row_r21 = i0.ɵɵnextContext(4).$implicit; i0.ɵɵtwoWayBindingSet(row_r21.Record.MaxQuantity, $event) || (row_r21.Record.MaxQuantity = $event); return i0.ɵɵresetView($event); });
|
|
733
|
+
i0.ɵɵlistener("blur", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_4_Conditional_3_Template_input_blur_8_listener() { i0.ɵɵrestoreView(_r30); const row_r21 = i0.ɵɵnextContext(4).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.SavePrice(row_r21.Record)); });
|
|
221
734
|
i0.ɵɵelementEnd()();
|
|
222
|
-
i0.ɵɵelementStart(9, "label",
|
|
735
|
+
i0.ɵɵelementStart(9, "label", 70)(10, "span", 68);
|
|
223
736
|
i0.ɵɵtext(11, "Fee type");
|
|
224
737
|
i0.ɵɵelementEnd();
|
|
225
|
-
i0.ɵɵelementStart(12, "
|
|
226
|
-
i0.ɵɵtwoWayListener("ngModelChange", function
|
|
227
|
-
i0.ɵɵlistener("
|
|
228
|
-
i0.ɵɵ
|
|
229
|
-
i0.ɵɵ
|
|
230
|
-
i0.ɵɵ
|
|
738
|
+
i0.ɵɵelementStart(12, "select", 106);
|
|
739
|
+
i0.ɵɵtwoWayListener("ngModelChange", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_4_Conditional_3_Template_select_ngModelChange_12_listener($event) { i0.ɵɵrestoreView(_r30); const row_r21 = i0.ɵɵnextContext(4).$implicit; i0.ɵɵtwoWayBindingSet(row_r21.Record.FeeType, $event) || (row_r21.Record.FeeType = $event); return i0.ɵɵresetView($event); });
|
|
740
|
+
i0.ɵɵlistener("change", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_4_Conditional_3_Template_select_change_12_listener() { i0.ɵɵrestoreView(_r30); const row_r21 = i0.ɵɵnextContext(4).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.SavePrice(row_r21.Record)); });
|
|
741
|
+
i0.ɵɵelementStart(13, "option", 128);
|
|
742
|
+
i0.ɵɵtext(14, "Standard");
|
|
743
|
+
i0.ɵɵelementEnd();
|
|
744
|
+
i0.ɵɵelementStart(15, "option", 129);
|
|
745
|
+
i0.ɵɵtext(16, "Setup");
|
|
746
|
+
i0.ɵɵelementEnd();
|
|
747
|
+
i0.ɵɵelementStart(17, "option", 130);
|
|
748
|
+
i0.ɵɵtext(18, "Recurring");
|
|
231
749
|
i0.ɵɵelementEnd();
|
|
232
|
-
i0.ɵɵelementStart(
|
|
233
|
-
i0.ɵɵ
|
|
234
|
-
i0.ɵɵ
|
|
750
|
+
i0.ɵɵelementStart(19, "option", 131);
|
|
751
|
+
i0.ɵɵtext(20, "Overage");
|
|
752
|
+
i0.ɵɵelementEnd()()();
|
|
753
|
+
i0.ɵɵelementStart(21, "label", 70)(22, "span", 68);
|
|
754
|
+
i0.ɵɵtext(23, "Priority");
|
|
755
|
+
i0.ɵɵelementEnd();
|
|
756
|
+
i0.ɵɵelementStart(24, "input", 127);
|
|
757
|
+
i0.ɵɵtwoWayListener("ngModelChange", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_4_Conditional_3_Template_input_ngModelChange_24_listener($event) { i0.ɵɵrestoreView(_r30); const row_r21 = i0.ɵɵnextContext(4).$implicit; i0.ɵɵtwoWayBindingSet(row_r21.Record.Priority, $event) || (row_r21.Record.Priority = $event); return i0.ɵɵresetView($event); });
|
|
758
|
+
i0.ɵɵlistener("blur", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_4_Conditional_3_Template_input_blur_24_listener() { i0.ɵɵrestoreView(_r30); const row_r21 = i0.ɵɵnextContext(4).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.SavePrice(row_r21.Record)); });
|
|
235
759
|
i0.ɵɵelementEnd()()();
|
|
236
760
|
} if (rf & 2) {
|
|
237
|
-
const
|
|
761
|
+
const row_r21 = i0.ɵɵnextContext(4).$implicit;
|
|
238
762
|
i0.ɵɵadvance(4);
|
|
239
|
-
i0.ɵɵtwoWayProperty("ngModel",
|
|
763
|
+
i0.ɵɵtwoWayProperty("ngModel", row_r21.Record.MinQuantity);
|
|
240
764
|
i0.ɵɵadvance(4);
|
|
241
|
-
i0.ɵɵtwoWayProperty("ngModel",
|
|
765
|
+
i0.ɵɵtwoWayProperty("ngModel", row_r21.Record.MaxQuantity);
|
|
242
766
|
i0.ɵɵadvance(4);
|
|
243
|
-
i0.ɵɵtwoWayProperty("ngModel",
|
|
244
|
-
i0.ɵɵadvance(
|
|
245
|
-
i0.ɵɵtwoWayProperty("ngModel",
|
|
767
|
+
i0.ɵɵtwoWayProperty("ngModel", row_r21.Record.FeeType);
|
|
768
|
+
i0.ɵɵadvance(12);
|
|
769
|
+
i0.ɵɵtwoWayProperty("ngModel", row_r21.Record.Priority);
|
|
246
770
|
} }
|
|
247
|
-
function
|
|
771
|
+
function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_4_Conditional_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
248
772
|
i0.ɵɵelementStart(0, "span");
|
|
249
773
|
i0.ɵɵtext(1);
|
|
250
774
|
i0.ɵɵelementEnd();
|
|
251
775
|
} if (rf & 2) {
|
|
252
|
-
const
|
|
776
|
+
const row_r21 = i0.ɵɵnextContext(5).$implicit;
|
|
253
777
|
i0.ɵɵadvance();
|
|
254
|
-
i0.ɵɵtextInterpolate1("Min
|
|
778
|
+
i0.ɵɵtextInterpolate1("Min quantity ", row_r21.Record.MinQuantity);
|
|
255
779
|
} }
|
|
256
|
-
function
|
|
780
|
+
function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_4_Conditional_4_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
257
781
|
i0.ɵɵelementStart(0, "span");
|
|
258
782
|
i0.ɵɵtext(1);
|
|
259
783
|
i0.ɵɵelementEnd();
|
|
260
784
|
} if (rf & 2) {
|
|
261
|
-
const
|
|
785
|
+
const row_r21 = i0.ɵɵnextContext(5).$implicit;
|
|
262
786
|
i0.ɵɵadvance();
|
|
263
|
-
i0.ɵɵtextInterpolate1("Max
|
|
787
|
+
i0.ɵɵtextInterpolate1("Max quantity ", row_r21.Record.MaxQuantity);
|
|
264
788
|
} }
|
|
265
|
-
function
|
|
789
|
+
function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_4_Conditional_4_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
266
790
|
i0.ɵɵelementStart(0, "span");
|
|
267
791
|
i0.ɵɵtext(1);
|
|
268
792
|
i0.ɵɵelementEnd();
|
|
269
793
|
} if (rf & 2) {
|
|
270
|
-
const
|
|
794
|
+
const row_r21 = i0.ɵɵnextContext(5).$implicit;
|
|
271
795
|
i0.ɵɵadvance();
|
|
272
|
-
i0.ɵɵ
|
|
796
|
+
i0.ɵɵtextInterpolate1("", row_r21.Record.FeeType, " fee");
|
|
273
797
|
} }
|
|
274
|
-
function
|
|
798
|
+
function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_4_Conditional_4_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
275
799
|
i0.ɵɵelementStart(0, "span");
|
|
276
800
|
i0.ɵɵtext(1);
|
|
277
801
|
i0.ɵɵelementEnd();
|
|
278
802
|
} if (rf & 2) {
|
|
279
|
-
const
|
|
803
|
+
const row_r21 = i0.ɵɵnextContext(5).$implicit;
|
|
280
804
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
281
805
|
i0.ɵɵadvance();
|
|
282
|
-
i0.ɵɵtextInterpolate1("
|
|
806
|
+
i0.ɵɵtextInterpolate1("Expires ", ctx_r1.FormatDate(row_r21.Record.EffectiveTo));
|
|
283
807
|
} }
|
|
284
|
-
function
|
|
285
|
-
i0.ɵɵelementStart(0, "div",
|
|
286
|
-
i0.ɵɵconditionalCreate(1,
|
|
287
|
-
i0.ɵɵconditionalCreate(2,
|
|
288
|
-
i0.ɵɵconditionalCreate(3,
|
|
289
|
-
i0.ɵɵconditionalCreate(4,
|
|
808
|
+
function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_4_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
809
|
+
i0.ɵɵelementStart(0, "div", 126);
|
|
810
|
+
i0.ɵɵconditionalCreate(1, BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_4_Conditional_4_Conditional_1_Template, 2, 1, "span");
|
|
811
|
+
i0.ɵɵconditionalCreate(2, BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_4_Conditional_4_Conditional_2_Template, 2, 1, "span");
|
|
812
|
+
i0.ɵɵconditionalCreate(3, BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_4_Conditional_4_Conditional_3_Template, 2, 1, "span");
|
|
813
|
+
i0.ɵɵconditionalCreate(4, BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_4_Conditional_4_Conditional_4_Template, 2, 1, "span");
|
|
290
814
|
i0.ɵɵelementEnd();
|
|
291
815
|
} if (rf & 2) {
|
|
292
|
-
const
|
|
816
|
+
const row_r21 = i0.ɵɵnextContext(4).$implicit;
|
|
293
817
|
i0.ɵɵadvance();
|
|
294
|
-
i0.ɵɵconditional(
|
|
818
|
+
i0.ɵɵconditional(row_r21.Record.MinQuantity != null ? 1 : -1);
|
|
295
819
|
i0.ɵɵadvance();
|
|
296
|
-
i0.ɵɵconditional(
|
|
820
|
+
i0.ɵɵconditional(row_r21.Record.MaxQuantity != null ? 2 : -1);
|
|
297
821
|
i0.ɵɵadvance();
|
|
298
|
-
i0.ɵɵconditional(
|
|
822
|
+
i0.ɵɵconditional(row_r21.Record.FeeType && row_r21.Record.FeeType !== "Standard" ? 3 : -1);
|
|
299
823
|
i0.ɵɵadvance();
|
|
300
|
-
i0.ɵɵconditional(
|
|
824
|
+
i0.ɵɵconditional(row_r21.Record.EffectiveTo ? 4 : -1);
|
|
301
825
|
} }
|
|
302
|
-
function
|
|
303
|
-
i0.ɵɵelementStart(0, "div",
|
|
304
|
-
i0.ɵɵtext(2, "
|
|
826
|
+
function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
827
|
+
i0.ɵɵelementStart(0, "div", 102)(1, "div", 65);
|
|
828
|
+
i0.ɵɵtext(2, "Quantity, fee type & priority");
|
|
305
829
|
i0.ɵɵelementEnd();
|
|
306
|
-
i0.ɵɵconditionalCreate(3,
|
|
830
|
+
i0.ɵɵconditionalCreate(3, BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_4_Conditional_3_Template, 25, 4, "div", 125)(4, BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_4_Conditional_4_Template, 5, 4, "div", 126);
|
|
307
831
|
i0.ɵɵelementEnd();
|
|
308
832
|
} if (rf & 2) {
|
|
309
833
|
const ctx_r1 = i0.ɵɵnextContext(6);
|
|
310
834
|
i0.ɵɵadvance(3);
|
|
311
835
|
i0.ɵɵconditional(ctx_r1.EditMode ? 3 : 4);
|
|
312
836
|
} }
|
|
313
|
-
function
|
|
314
|
-
const
|
|
315
|
-
i0.ɵɵelementStart(0, "button",
|
|
316
|
-
i0.ɵɵlistener("click", function
|
|
317
|
-
i0.ɵɵtext(1, "+
|
|
837
|
+
function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
838
|
+
const _r31 = i0.ɵɵgetCurrentView();
|
|
839
|
+
i0.ɵɵelementStart(0, "button", 99);
|
|
840
|
+
i0.ɵɵlistener("click", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_5_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r31); const row_r21 = i0.ɵɵnextContext(3).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OpenAdvanced(row_r21.ID, $event)); });
|
|
841
|
+
i0.ɵɵtext(1, "+ Quantity, fee type & priority");
|
|
318
842
|
i0.ɵɵelementEnd();
|
|
319
843
|
} }
|
|
320
|
-
function
|
|
321
|
-
i0.ɵɵconditionalCreate(0,
|
|
322
|
-
i0.ɵɵconditionalCreate(1,
|
|
323
|
-
i0.ɵɵconditionalCreate(3,
|
|
324
|
-
i0.ɵɵconditionalCreate(4,
|
|
844
|
+
function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
845
|
+
i0.ɵɵconditionalCreate(0, BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_0_Template, 40, 8);
|
|
846
|
+
i0.ɵɵconditionalCreate(1, BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_1_Template, 3, 0, "div", 100)(2, BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_2_Template, 2, 0, "button", 98);
|
|
847
|
+
i0.ɵɵconditionalCreate(3, BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_3_Template, 16, 4, "div", 101);
|
|
848
|
+
i0.ɵɵconditionalCreate(4, BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_4_Template, 5, 1, "div", 102)(5, BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_5_Template, 2, 0, "button", 98);
|
|
325
849
|
} if (rf & 2) {
|
|
326
|
-
const
|
|
850
|
+
const row_r21 = i0.ɵɵnextContext(2).$implicit;
|
|
327
851
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
328
852
|
i0.ɵɵconditional(ctx_r1.EditMode ? 0 : -1);
|
|
329
853
|
i0.ɵɵadvance();
|
|
330
|
-
i0.ɵɵconditional(ctx_r1.EditMode &&
|
|
854
|
+
i0.ɵɵconditional(ctx_r1.EditMode && row_r21.WhenText && ctx_r1.WhenEditorPriceID !== row_r21.ID ? 1 : ctx_r1.EditMode && ctx_r1.WhenEditorPriceID !== row_r21.ID ? 2 : -1);
|
|
331
855
|
i0.ɵɵadvance(2);
|
|
332
|
-
i0.ɵɵconditional(ctx_r1.EditMode && ctx_r1.WhenEditorPriceID ===
|
|
856
|
+
i0.ɵɵconditional(ctx_r1.EditMode && ctx_r1.WhenEditorPriceID === row_r21.ID ? 3 : -1);
|
|
333
857
|
i0.ɵɵadvance();
|
|
334
|
-
i0.ɵɵconditional(ctx_r1.HasAdvanced(
|
|
858
|
+
i0.ɵɵconditional(ctx_r1.HasAdvanced(row_r21.Record) || ctx_r1.AdvancedEditingID === row_r21.ID ? 4 : ctx_r1.EditMode ? 5 : -1);
|
|
335
859
|
} }
|
|
336
|
-
function
|
|
337
|
-
const
|
|
338
|
-
i0.ɵɵelementStart(0, "div",
|
|
339
|
-
i0.ɵɵlistener("click", function
|
|
340
|
-
i0.ɵɵconditionalCreate(1,
|
|
860
|
+
function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
861
|
+
const _r22 = i0.ɵɵgetCurrentView();
|
|
862
|
+
i0.ɵɵelementStart(0, "div", 96);
|
|
863
|
+
i0.ɵɵlistener("click", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Template_div_click_0_listener($event) { i0.ɵɵrestoreView(_r22); return i0.ɵɵresetView($event.stopPropagation()); });
|
|
864
|
+
i0.ɵɵconditionalCreate(1, BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_1_Template, 3, 1, "p", 97)(2, BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Template, 6, 4);
|
|
341
865
|
i0.ɵɵelementEnd();
|
|
342
866
|
} if (rf & 2) {
|
|
343
|
-
const
|
|
867
|
+
const row_r21 = i0.ɵɵnextContext().$implicit;
|
|
344
868
|
i0.ɵɵadvance();
|
|
345
|
-
i0.ɵɵconditional(
|
|
869
|
+
i0.ɵɵconditional(row_r21.Inherited ? 1 : 2);
|
|
346
870
|
} }
|
|
347
|
-
function
|
|
348
|
-
const
|
|
349
|
-
i0.ɵɵelementStart(0, "article",
|
|
350
|
-
i0.ɵɵlistener("click", function
|
|
351
|
-
i0.ɵɵconditionalCreate(2,
|
|
352
|
-
i0.ɵɵelementStart(3, "span",
|
|
871
|
+
function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
872
|
+
const _r20 = i0.ɵɵgetCurrentView();
|
|
873
|
+
i0.ɵɵelementStart(0, "article", 85)(1, "button", 86);
|
|
874
|
+
i0.ɵɵlistener("click", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Template_button_click_1_listener() { const row_r21 = i0.ɵɵrestoreView(_r20).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.TogglePrice(row_r21)); });
|
|
875
|
+
i0.ɵɵconditionalCreate(2, BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_2_Template, 2, 0, "span", 87);
|
|
876
|
+
i0.ɵɵelementStart(3, "span", 88);
|
|
353
877
|
i0.ɵɵtext(4);
|
|
354
878
|
i0.ɵɵelementEnd();
|
|
355
|
-
i0.ɵɵelementStart(5, "span",
|
|
879
|
+
i0.ɵɵelementStart(5, "span", 89)(6, "span", 90);
|
|
356
880
|
i0.ɵɵtext(7);
|
|
357
881
|
i0.ɵɵelementEnd();
|
|
358
|
-
i0.ɵɵconditionalCreate(8,
|
|
882
|
+
i0.ɵɵconditionalCreate(8, BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_8_Template, 2, 1, "span", 91);
|
|
359
883
|
i0.ɵɵelementEnd();
|
|
360
|
-
i0.ɵɵ
|
|
361
|
-
i0.ɵɵ
|
|
362
|
-
i0.ɵɵelementEnd()
|
|
363
|
-
i0.ɵɵconditionalCreate(11,
|
|
884
|
+
i0.ɵɵconditionalCreate(9, BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_9_Template, 2, 3, "span", 92);
|
|
885
|
+
i0.ɵɵconditionalCreate(10, BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_10_Template, 2, 1, "span", 93);
|
|
886
|
+
i0.ɵɵelementEnd();
|
|
887
|
+
i0.ɵɵconditionalCreate(11, BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Template, 3, 1, "div", 94);
|
|
364
888
|
i0.ɵɵelementEnd();
|
|
365
889
|
} if (rf & 2) {
|
|
366
|
-
const
|
|
890
|
+
const row_r21 = ctx.$implicit;
|
|
367
891
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
368
|
-
i0.ɵɵclassProp("open", ctx_r1.ExpandedPriceID ===
|
|
369
|
-
i0.ɵɵproperty("cdkDragDisabled", !ctx_r1.EditMode ||
|
|
892
|
+
i0.ɵɵclassProp("open", ctx_r1.ExpandedPriceID === row_r21.ID && ctx_r1.PriceCanExpand(row_r21))("selected", ctx_r1.SelectedPriceID === row_r21.ID)("inherited", row_r21.Inherited)("retired", row_r21.Retired);
|
|
893
|
+
i0.ɵɵproperty("cdkDragDisabled", !ctx_r1.EditMode || row_r21.Inherited);
|
|
370
894
|
i0.ɵɵadvance(2);
|
|
371
|
-
i0.ɵɵconditional(ctx_r1.EditMode && !
|
|
895
|
+
i0.ɵɵconditional(ctx_r1.EditMode && !row_r21.Inherited ? 2 : -1);
|
|
372
896
|
i0.ɵɵadvance(2);
|
|
373
|
-
i0.ɵɵtextInterpolate(ctx_r1.FormatCurrency(
|
|
897
|
+
i0.ɵɵtextInterpolate(ctx_r1.FormatCurrency(row_r21.Amount));
|
|
374
898
|
i0.ɵɵadvance(3);
|
|
375
|
-
i0.ɵɵtextInterpolate(
|
|
899
|
+
i0.ɵɵtextInterpolate(row_r21.Name);
|
|
376
900
|
i0.ɵɵadvance();
|
|
377
|
-
i0.ɵɵconditional(
|
|
901
|
+
i0.ɵɵconditional(row_r21.WhenText ? 8 : -1);
|
|
378
902
|
i0.ɵɵadvance();
|
|
379
|
-
i0.ɵɵ
|
|
903
|
+
i0.ɵɵconditional(row_r21.StatusText ? 9 : -1);
|
|
380
904
|
i0.ɵɵadvance();
|
|
381
|
-
i0.ɵɵ
|
|
905
|
+
i0.ɵɵconditional(row_r21.SourceLabel ? 10 : -1);
|
|
382
906
|
i0.ɵɵadvance();
|
|
383
|
-
i0.ɵɵconditional(ctx_r1.ExpandedPriceID ===
|
|
907
|
+
i0.ɵɵconditional(ctx_r1.ExpandedPriceID === row_r21.ID && ctx_r1.PriceCanExpand(row_r21) ? 11 : -1);
|
|
384
908
|
} }
|
|
385
|
-
function
|
|
386
|
-
const
|
|
387
|
-
i0.ɵɵelementStart(0, "div",
|
|
388
|
-
i0.ɵɵlistener("cdkDropListDropped", function
|
|
389
|
-
i0.ɵɵrepeaterCreate(1,
|
|
909
|
+
function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
910
|
+
const _r19 = i0.ɵɵgetCurrentView();
|
|
911
|
+
i0.ɵɵelementStart(0, "div", 83);
|
|
912
|
+
i0.ɵɵlistener("cdkDropListDropped", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_Template_div_cdkDropListDropped_0_listener($event) { i0.ɵɵrestoreView(_r19); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnPriceDrop($event)); });
|
|
913
|
+
i0.ɵɵrepeaterCreate(1, BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Template, 12, 16, "article", 84, _forTrack0);
|
|
390
914
|
i0.ɵɵelementEnd();
|
|
391
915
|
} if (rf & 2) {
|
|
392
916
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
@@ -394,50 +918,50 @@ function BizAppsProductPricingWidgetComponent_Conditional_19_Conditional_2_Templ
|
|
|
394
918
|
i0.ɵɵadvance();
|
|
395
919
|
i0.ɵɵrepeater(ctx_r1.VisiblePrices);
|
|
396
920
|
} }
|
|
397
|
-
function
|
|
398
|
-
i0.ɵɵelement(0, "mj-loading",
|
|
921
|
+
function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_3_Conditional_20_Template(rf, ctx) { if (rf & 1) {
|
|
922
|
+
i0.ɵɵelement(0, "mj-loading", 75);
|
|
399
923
|
i0.ɵɵelementStart(1, "span");
|
|
400
924
|
i0.ɵɵtext(2, "Saving\u2026");
|
|
401
925
|
i0.ɵɵelementEnd();
|
|
402
926
|
} if (rf & 2) {
|
|
403
927
|
i0.ɵɵproperty("showText", false);
|
|
404
928
|
} }
|
|
405
|
-
function
|
|
406
|
-
i0.ɵɵelement(0, "i",
|
|
929
|
+
function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_3_Conditional_21_Template(rf, ctx) { if (rf & 1) {
|
|
930
|
+
i0.ɵɵelement(0, "i", 76);
|
|
407
931
|
i0.ɵɵelementStart(1, "span");
|
|
408
932
|
i0.ɵɵtext(2, "Add price");
|
|
409
933
|
i0.ɵɵelementEnd();
|
|
410
934
|
} }
|
|
411
|
-
function
|
|
412
|
-
const
|
|
413
|
-
i0.ɵɵelementStart(0, "div",
|
|
414
|
-
i0.ɵɵelement(3, "i",
|
|
935
|
+
function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
936
|
+
const _r32 = i0.ɵɵgetCurrentView();
|
|
937
|
+
i0.ɵɵelementStart(0, "div", 64)(1, "div", 66)(2, "span", 77);
|
|
938
|
+
i0.ɵɵelement(3, "i", 78);
|
|
415
939
|
i0.ɵɵtext(4, " Add price ");
|
|
416
940
|
i0.ɵɵelementEnd();
|
|
417
|
-
i0.ɵɵelementStart(5, "label",
|
|
941
|
+
i0.ɵɵelementStart(5, "label", 70)(6, "span", 68);
|
|
418
942
|
i0.ɵɵtext(7, "Name");
|
|
419
943
|
i0.ɵɵelementEnd();
|
|
420
|
-
i0.ɵɵelementStart(8, "input",
|
|
421
|
-
i0.ɵɵtwoWayListener("ngModelChange", function
|
|
944
|
+
i0.ɵɵelementStart(8, "input", 132);
|
|
945
|
+
i0.ɵɵtwoWayListener("ngModelChange", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_3_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r32); const ctx_r1 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r1.NewPriceName, $event) || (ctx_r1.NewPriceName = $event); return i0.ɵɵresetView($event); });
|
|
422
946
|
i0.ɵɵelementEnd()();
|
|
423
|
-
i0.ɵɵelementStart(9, "label",
|
|
424
|
-
i0.ɵɵtext(11, "
|
|
947
|
+
i0.ɵɵelementStart(9, "label", 70)(10, "span", 68);
|
|
948
|
+
i0.ɵɵtext(11, "Price");
|
|
425
949
|
i0.ɵɵelementEnd();
|
|
426
|
-
i0.ɵɵelementStart(12, "input",
|
|
427
|
-
i0.ɵɵtwoWayListener("ngModelChange", function
|
|
950
|
+
i0.ɵɵelementStart(12, "input", 133);
|
|
951
|
+
i0.ɵɵtwoWayListener("ngModelChange", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_3_Template_input_ngModelChange_12_listener($event) { i0.ɵɵrestoreView(_r32); const ctx_r1 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r1.NewPriceAmount, $event) || (ctx_r1.NewPriceAmount = $event); return i0.ɵɵresetView($event); });
|
|
428
952
|
i0.ɵɵelementEnd()();
|
|
429
|
-
i0.ɵɵelementStart(13, "label",
|
|
430
|
-
i0.ɵɵtext(15, "Effective
|
|
953
|
+
i0.ɵɵelementStart(13, "label", 70)(14, "span", 68);
|
|
954
|
+
i0.ɵɵtext(15, "Effective date");
|
|
431
955
|
i0.ɵɵelementEnd();
|
|
432
|
-
i0.ɵɵelementStart(16, "input",
|
|
433
|
-
i0.ɵɵtwoWayListener("ngModelChange", function
|
|
956
|
+
i0.ɵɵelementStart(16, "input", 72);
|
|
957
|
+
i0.ɵɵtwoWayListener("ngModelChange", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_3_Template_input_ngModelChange_16_listener($event) { i0.ɵɵrestoreView(_r32); const ctx_r1 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r1.NewPriceEffectiveFrom, $event) || (ctx_r1.NewPriceEffectiveFrom = $event); return i0.ɵɵresetView($event); });
|
|
434
958
|
i0.ɵɵelementEnd()();
|
|
435
|
-
i0.ɵɵelementStart(17, "span",
|
|
436
|
-
i0.ɵɵtext(18, "
|
|
959
|
+
i0.ɵɵelementStart(17, "span", 74);
|
|
960
|
+
i0.ɵɵtext(18, "Applies to orders dated on or after this date.");
|
|
437
961
|
i0.ɵɵelementEnd();
|
|
438
|
-
i0.ɵɵelementStart(19, "button",
|
|
439
|
-
i0.ɵɵlistener("click", function
|
|
440
|
-
i0.ɵɵconditionalCreate(20,
|
|
962
|
+
i0.ɵɵelementStart(19, "button", 73);
|
|
963
|
+
i0.ɵɵlistener("click", function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_3_Template_button_click_19_listener() { i0.ɵɵrestoreView(_r32); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.AddPrice()); });
|
|
964
|
+
i0.ɵɵconditionalCreate(20, BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_3_Conditional_20_Template, 3, 1)(21, BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_3_Conditional_21_Template, 3, 0);
|
|
441
965
|
i0.ɵɵelementEnd()()();
|
|
442
966
|
} if (rf & 2) {
|
|
443
967
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
@@ -453,101 +977,142 @@ function BizAppsProductPricingWidgetComponent_Conditional_19_Conditional_3_Templ
|
|
|
453
977
|
i0.ɵɵadvance();
|
|
454
978
|
i0.ɵɵconditional(ctx_r1.IsSaving ? 20 : 21);
|
|
455
979
|
} }
|
|
456
|
-
function
|
|
457
|
-
i0.ɵɵconditionalCreate(0,
|
|
458
|
-
i0.ɵɵconditionalCreate(3,
|
|
980
|
+
function BizAppsProductPricingWidgetComponent_Conditional_27_Template(rf, ctx) { if (rf & 1) {
|
|
981
|
+
i0.ɵɵconditionalCreate(0, BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_0_Template, 2, 0, "div", 30)(1, BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_1_Template, 1, 1, "mj-empty-state", 81)(2, BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_Template, 3, 1, "div", 82);
|
|
982
|
+
i0.ɵɵconditionalCreate(3, BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_3_Template, 22, 6, "div", 64);
|
|
459
983
|
} if (rf & 2) {
|
|
460
984
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
461
985
|
i0.ɵɵconditional(ctx_r1.IsLoading ? 0 : ctx_r1.VisiblePrices.length === 0 ? 1 : 2);
|
|
462
986
|
i0.ɵɵadvance(3);
|
|
463
987
|
i0.ɵɵconditional(ctx_r1.EditMode ? 3 : -1);
|
|
464
988
|
} }
|
|
465
|
-
function
|
|
466
|
-
i0.ɵɵ
|
|
989
|
+
function BizAppsProductPricingWidgetComponent_Conditional_28_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
990
|
+
i0.ɵɵtext(0, " The price a sample customer would get today. ");
|
|
991
|
+
} }
|
|
992
|
+
function BizAppsProductPricingWidgetComponent_Conditional_28_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
993
|
+
i0.ɵɵtext(0, " The price a sample customer on this price list would get today. When the list has no price that applies, the Standard price does, as on an order. ");
|
|
994
|
+
} }
|
|
995
|
+
function BizAppsProductPricingWidgetComponent_Conditional_28_Conditional_34_For_4_Template(rf, ctx) { if (rf & 1) {
|
|
996
|
+
i0.ɵɵelementStart(0, "li");
|
|
467
997
|
i0.ɵɵtext(1);
|
|
468
998
|
i0.ɵɵelementEnd();
|
|
469
999
|
} if (rf & 2) {
|
|
470
|
-
const
|
|
1000
|
+
const s_r34 = ctx.$implicit;
|
|
471
1001
|
i0.ɵɵadvance();
|
|
472
|
-
i0.ɵɵtextInterpolate(
|
|
1002
|
+
i0.ɵɵtextInterpolate(s_r34);
|
|
473
1003
|
} }
|
|
474
|
-
function
|
|
475
|
-
|
|
476
|
-
i0.ɵɵ
|
|
477
|
-
i0.ɵɵlistener("click", function BizAppsProductPricingWidgetComponent_Conditional_20_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r18); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.CloseQuote()); });
|
|
1004
|
+
function BizAppsProductPricingWidgetComponent_Conditional_28_Conditional_34_Template(rf, ctx) { if (rf & 1) {
|
|
1005
|
+
i0.ɵɵelementStart(0, "div", 150);
|
|
1006
|
+
i0.ɵɵtext(1, "Not applied");
|
|
478
1007
|
i0.ɵɵelementEnd();
|
|
479
|
-
i0.ɵɵelementStart(
|
|
480
|
-
i0.ɵɵ
|
|
1008
|
+
i0.ɵɵelementStart(2, "ul", 151);
|
|
1009
|
+
i0.ɵɵrepeaterCreate(3, BizAppsProductPricingWidgetComponent_Conditional_28_Conditional_34_For_4_Template, 2, 1, "li", null, i0.ɵɵrepeaterTrackByIdentity);
|
|
481
1010
|
i0.ɵɵelementEnd();
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
i0.ɵɵ
|
|
1011
|
+
} if (rf & 2) {
|
|
1012
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
1013
|
+
i0.ɵɵadvance(3);
|
|
1014
|
+
i0.ɵɵrepeater(ctx_r1.QuoteResult.Skipped);
|
|
1015
|
+
} }
|
|
1016
|
+
function BizAppsProductPricingWidgetComponent_Conditional_28_Template(rf, ctx) { if (rf & 1) {
|
|
1017
|
+
const _r33 = i0.ɵɵgetCurrentView();
|
|
1018
|
+
i0.ɵɵelementStart(0, "div", 134);
|
|
1019
|
+
i0.ɵɵlistener("click", function BizAppsProductPricingWidgetComponent_Conditional_28_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r33); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.CloseQuote()); });
|
|
1020
|
+
i0.ɵɵelementEnd();
|
|
1021
|
+
i0.ɵɵelementStart(1, "aside", 135)(2, "div", 136)(3, "h3");
|
|
1022
|
+
i0.ɵɵtext(4, "Price simulation");
|
|
1023
|
+
i0.ɵɵelementEnd();
|
|
1024
|
+
i0.ɵɵelementStart(5, "button", 137);
|
|
1025
|
+
i0.ɵɵlistener("click", function BizAppsProductPricingWidgetComponent_Conditional_28_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r33); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.CloseQuote()); });
|
|
1026
|
+
i0.ɵɵelement(6, "i", 20);
|
|
485
1027
|
i0.ɵɵelementEnd()();
|
|
486
|
-
i0.ɵɵelementStart(7, "p",
|
|
487
|
-
i0.ɵɵ
|
|
1028
|
+
i0.ɵɵelementStart(7, "p", 138);
|
|
1029
|
+
i0.ɵɵconditionalCreate(8, BizAppsProductPricingWidgetComponent_Conditional_28_Conditional_8_Template, 1, 0)(9, BizAppsProductPricingWidgetComponent_Conditional_28_Conditional_9_Template, 1, 0);
|
|
488
1030
|
i0.ɵɵelementEnd();
|
|
489
|
-
i0.ɵɵelementStart(
|
|
490
|
-
i0.ɵɵtext(
|
|
1031
|
+
i0.ɵɵelementStart(10, "div", 139)(11, "label", 140)(12, "span");
|
|
1032
|
+
i0.ɵɵtext(13, "Customer type");
|
|
491
1033
|
i0.ɵɵelementEnd();
|
|
492
|
-
i0.ɵɵelementStart(
|
|
493
|
-
i0.ɵɵtwoWayListener("ngModelChange", function
|
|
494
|
-
i0.ɵɵlistener("ngModelChange", function
|
|
495
|
-
i0.ɵɵelementStart(
|
|
496
|
-
i0.ɵɵtext(
|
|
1034
|
+
i0.ɵɵelementStart(14, "select", 141);
|
|
1035
|
+
i0.ɵɵtwoWayListener("ngModelChange", function BizAppsProductPricingWidgetComponent_Conditional_28_Template_select_ngModelChange_14_listener($event) { i0.ɵɵrestoreView(_r33); const ctx_r1 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r1.QuoteOrgType, $event) || (ctx_r1.QuoteOrgType = $event); return i0.ɵɵresetView($event); });
|
|
1036
|
+
i0.ɵɵlistener("ngModelChange", function BizAppsProductPricingWidgetComponent_Conditional_28_Template_select_ngModelChange_14_listener() { i0.ɵɵrestoreView(_r33); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.RunQuote()); });
|
|
1037
|
+
i0.ɵɵelementStart(15, "option", 142);
|
|
1038
|
+
i0.ɵɵtext(16, "Member");
|
|
497
1039
|
i0.ɵɵelementEnd();
|
|
498
|
-
i0.ɵɵelementStart(
|
|
499
|
-
i0.ɵɵtext(
|
|
1040
|
+
i0.ɵɵelementStart(17, "option", 143);
|
|
1041
|
+
i0.ɵɵtext(18, "Prospect");
|
|
500
1042
|
i0.ɵɵelementEnd()()();
|
|
501
|
-
i0.ɵɵelementStart(
|
|
502
|
-
i0.ɵɵtext(
|
|
1043
|
+
i0.ɵɵelementStart(19, "label", 140)(20, "span");
|
|
1044
|
+
i0.ɵɵtext(21, "Quantity");
|
|
503
1045
|
i0.ɵɵelementEnd();
|
|
504
|
-
i0.ɵɵelementStart(
|
|
505
|
-
i0.ɵɵtwoWayListener("ngModelChange", function
|
|
506
|
-
i0.ɵɵlistener("ngModelChange", function
|
|
1046
|
+
i0.ɵɵelementStart(22, "input", 144);
|
|
1047
|
+
i0.ɵɵtwoWayListener("ngModelChange", function BizAppsProductPricingWidgetComponent_Conditional_28_Template_input_ngModelChange_22_listener($event) { i0.ɵɵrestoreView(_r33); const ctx_r1 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r1.SimQuantity, $event) || (ctx_r1.SimQuantity = $event); return i0.ɵɵresetView($event); });
|
|
1048
|
+
i0.ɵɵlistener("ngModelChange", function BizAppsProductPricingWidgetComponent_Conditional_28_Template_input_ngModelChange_22_listener() { i0.ɵɵrestoreView(_r33); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.RunQuote()); });
|
|
507
1049
|
i0.ɵɵelementEnd()();
|
|
508
|
-
i0.ɵɵelementStart(
|
|
509
|
-
i0.ɵɵtext(
|
|
1050
|
+
i0.ɵɵelementStart(23, "label", 145)(24, "span");
|
|
1051
|
+
i0.ɵɵtext(25, "Annual revenue ($M)");
|
|
510
1052
|
i0.ɵɵelementEnd();
|
|
511
|
-
i0.ɵɵelementStart(
|
|
512
|
-
i0.ɵɵ
|
|
1053
|
+
i0.ɵɵelementStart(26, "input", 146);
|
|
1054
|
+
i0.ɵɵtwoWayListener("ngModelChange", function BizAppsProductPricingWidgetComponent_Conditional_28_Template_input_ngModelChange_26_listener($event) { i0.ɵɵrestoreView(_r33); const ctx_r1 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r1.QuoteRevenueMillions, $event) || (ctx_r1.QuoteRevenueMillions = $event); return i0.ɵɵresetView($event); });
|
|
1055
|
+
i0.ɵɵlistener("ngModelChange", function BizAppsProductPricingWidgetComponent_Conditional_28_Template_input_ngModelChange_26_listener() { i0.ɵɵrestoreView(_r33); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.RunQuote()); });
|
|
513
1056
|
i0.ɵɵelementEnd();
|
|
514
|
-
i0.ɵɵ
|
|
1057
|
+
i0.ɵɵelementStart(27, "small");
|
|
1058
|
+
i0.ɵɵtext(28, "Leave blank for a customer with no revenue on file.");
|
|
1059
|
+
i0.ɵɵelementEnd()()();
|
|
1060
|
+
i0.ɵɵelementStart(29, "div", 147)(30, "div", 148);
|
|
1061
|
+
i0.ɵɵtext(31);
|
|
1062
|
+
i0.ɵɵelementEnd();
|
|
1063
|
+
i0.ɵɵelementStart(32, "p", 149);
|
|
1064
|
+
i0.ɵɵtext(33);
|
|
1065
|
+
i0.ɵɵelementEnd()();
|
|
1066
|
+
i0.ɵɵconditionalCreate(34, BizAppsProductPricingWidgetComponent_Conditional_28_Conditional_34_Template, 5, 0);
|
|
515
1067
|
i0.ɵɵelementEnd();
|
|
516
1068
|
} if (rf & 2) {
|
|
517
1069
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
518
|
-
i0.ɵɵadvance(
|
|
1070
|
+
i0.ɵɵadvance(8);
|
|
1071
|
+
i0.ɵɵconditional(ctx_r1.SelectedChannelID === null ? 8 : 9);
|
|
1072
|
+
i0.ɵɵadvance(6);
|
|
519
1073
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.QuoteOrgType);
|
|
520
1074
|
i0.ɵɵadvance(8);
|
|
521
1075
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.SimQuantity);
|
|
522
|
-
i0.ɵɵadvance(
|
|
1076
|
+
i0.ɵɵadvance(4);
|
|
1077
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.QuoteRevenueMillions);
|
|
1078
|
+
i0.ɵɵadvance(5);
|
|
523
1079
|
i0.ɵɵtextInterpolate(ctx_r1.QuoteResult.AmountText);
|
|
524
1080
|
i0.ɵɵadvance(2);
|
|
525
1081
|
i0.ɵɵtextInterpolate(ctx_r1.QuoteResult.Why);
|
|
526
1082
|
i0.ɵɵadvance();
|
|
527
|
-
i0.ɵɵconditional(ctx_r1.QuoteResult.Skipped ?
|
|
1083
|
+
i0.ɵɵconditional(ctx_r1.QuoteResult.Skipped.length ? 34 : -1);
|
|
528
1084
|
} }
|
|
529
1085
|
const PRODUCT_PRICES_ENTITY = 'MJ_BizApps_Orders: Product Prices';
|
|
530
1086
|
const PRICE_LISTS_ENTITY = 'MJ_BizApps_Orders: Price Lists';
|
|
531
1087
|
const PRODUCT_CATEGORIES_ENTITY = 'MJ_BizApps_Orders: Product Categories';
|
|
532
|
-
/** Dotted Source.Field labels for the When sentence. */
|
|
1088
|
+
/** Dotted Source.Field labels for the When sentence. Everything else is read from metadata. */
|
|
533
1089
|
const PRICE_WHEN_FIELDS = [
|
|
534
1090
|
{ name: 'BillToOrganization.Type', displayName: 'Bill-to organization · Type' },
|
|
1091
|
+
{ name: 'BillToOrganization.OrganizationType', displayName: 'Bill-to organization · Type' },
|
|
535
1092
|
{ name: 'BillToOrganization.Status', displayName: 'Bill-to organization · Status' },
|
|
536
1093
|
{ name: 'BillToOrganization.Name', displayName: 'Bill-to organization · Name' },
|
|
537
1094
|
{ name: 'BillToPerson.Title', displayName: 'Bill-to person · Title' },
|
|
538
1095
|
{ name: 'BillToPerson.Status', displayName: 'Bill-to person · Status' },
|
|
539
1096
|
{ name: 'ShipToOrganization.Type', displayName: 'Ship-to organization · Type' },
|
|
1097
|
+
{ name: 'ShipToOrganization.OrganizationType', displayName: 'Ship-to organization · Type' },
|
|
540
1098
|
{ name: 'Order.Status', displayName: 'Order · Status' },
|
|
541
1099
|
{ name: 'Order.OrderDate', displayName: 'Order · Date' },
|
|
542
1100
|
{ name: 'Product.SKU', displayName: 'Product · SKU' },
|
|
543
1101
|
{ name: 'Product.Status', displayName: 'Product · Status' },
|
|
544
1102
|
];
|
|
1103
|
+
const MILLION = 1_000_000;
|
|
545
1104
|
/**
|
|
546
1105
|
* World-Class Product Pricing Matrix & Volume Ladder Widget (Option 1).
|
|
547
1106
|
*
|
|
548
1107
|
* Provides commercial channel segmentation (Base List, Wholesale, Partner),
|
|
549
1108
|
* rapid 1-click volume tier ladder configuration with automatic gap/overlap protection,
|
|
550
1109
|
* live discount & savings math, non-intrusive toast notifications, and an interactive step curve.
|
|
1110
|
+
*
|
|
1111
|
+
* Three views of one channel's prices: cards (each price with its When), the revenue band editor
|
|
1112
|
+
* (one row per band of the bill-to organization's revenue, edges in $M, see
|
|
1113
|
+
* `pricing/revenueBands.ts`), and MJ's data grid. Retired prices — inactive, or past their
|
|
1114
|
+
* Effective To — are hidden until asked for; Retire is the way to stop a price, because a saved
|
|
1115
|
+
* line keeps its stated price and only new lines read the catalog.
|
|
551
1116
|
*/
|
|
552
1117
|
export class BizAppsProductPricingWidgetComponent {
|
|
553
1118
|
Product;
|
|
@@ -576,7 +1141,9 @@ export class BizAppsProductPricingWidgetComponent {
|
|
|
576
1141
|
FormatDate = FormatDate;
|
|
577
1142
|
IsLoading = false;
|
|
578
1143
|
IsSaving = false;
|
|
579
|
-
|
|
1144
|
+
ViewMode = 'cards';
|
|
1145
|
+
/** Set once the person picks a view; until then the widget opens on the band editor when bands exist. */
|
|
1146
|
+
viewChosen = false;
|
|
580
1147
|
QuoteDrawerOpen = false;
|
|
581
1148
|
ExpandedPriceID = null;
|
|
582
1149
|
SelectedPriceID = null;
|
|
@@ -584,6 +1151,9 @@ export class BizAppsProductPricingWidgetComponent {
|
|
|
584
1151
|
AdvancedEditingID = null;
|
|
585
1152
|
WhenFilter = null;
|
|
586
1153
|
WhenFields = [];
|
|
1154
|
+
/** The When builder lists each source's common fields; this shows every column instead. */
|
|
1155
|
+
ShowAllWhenFields = false;
|
|
1156
|
+
ShowRetired = false;
|
|
587
1157
|
NewPriceName = 'Base';
|
|
588
1158
|
NewPriceAmount = 0;
|
|
589
1159
|
/**
|
|
@@ -592,17 +1162,27 @@ export class BizAppsProductPricingWidgetComponent {
|
|
|
592
1162
|
*/
|
|
593
1163
|
NewPriceEffectiveFrom = Today();
|
|
594
1164
|
QuoteOrgType = 'Member';
|
|
595
|
-
|
|
1165
|
+
/** The sample organization's annual revenue in $M; null = unknown, which is what a band cannot decide. */
|
|
1166
|
+
QuoteRevenueMillions = null;
|
|
1167
|
+
QuoteResult = { AmountText: '—', Why: '', Skipped: [] };
|
|
596
1168
|
InheritedRecords = [];
|
|
597
1169
|
ActiveToast = null;
|
|
598
1170
|
toastTimer;
|
|
599
1171
|
Channels = [
|
|
600
|
-
{ ID: null, Name: '
|
|
1172
|
+
{ ID: null, Name: 'Standard', Icon: 'fa-solid fa-globe', TierCount: 0 }
|
|
601
1173
|
];
|
|
602
1174
|
SelectedChannelID = null;
|
|
603
1175
|
AllPriceRecords = [];
|
|
604
1176
|
LadderTiers = [];
|
|
605
1177
|
StepBars = [];
|
|
1178
|
+
// Revenue band editor
|
|
1179
|
+
BandRows = [];
|
|
1180
|
+
LadderIssues = [];
|
|
1181
|
+
NewBandMinMillions = 0;
|
|
1182
|
+
NewBandMaxMillions = null;
|
|
1183
|
+
NewBandAmount = 0;
|
|
1184
|
+
BandSetupEdgesText = DEFAULT_REVENUE_BAND_EDGES.map((e) => e / MILLION).join(', ');
|
|
1185
|
+
BandSetupAmount = 0;
|
|
606
1186
|
// Quick Add Tier Model
|
|
607
1187
|
NewTierMin = 1;
|
|
608
1188
|
NewTierMax = null;
|
|
@@ -647,6 +1227,10 @@ export class BizAppsProductPricingWidgetComponent {
|
|
|
647
1227
|
if (changes['Product'] && !changes['Product'].isFirstChange()) {
|
|
648
1228
|
this.LoadPricingData();
|
|
649
1229
|
}
|
|
1230
|
+
// Leaving Edit can hide an empty price list's tab; don't leave the panel on a tab it no longer shows.
|
|
1231
|
+
if (changes['EditMode'] && !this.EditMode && !this.VisibleChannels.some((c) => c.ID === this.SelectedChannelID)) {
|
|
1232
|
+
this.SelectChannel(null);
|
|
1233
|
+
}
|
|
650
1234
|
}
|
|
651
1235
|
get BaseListPrice() {
|
|
652
1236
|
// First base-channel ProductPrice. Never Product.StandaloneSellingPrice (deprecated).
|
|
@@ -659,16 +1243,96 @@ export class BizAppsProductPricingWidgetComponent {
|
|
|
659
1243
|
get FormattedBasePrice() {
|
|
660
1244
|
return FormatMoney(this.BaseListPrice);
|
|
661
1245
|
}
|
|
662
|
-
/**
|
|
1246
|
+
/**
|
|
1247
|
+
* The price-list tabs to show: Standard always; a price list only when it prices this product, or
|
|
1248
|
+
* in Edit so a price can be added to it. A list with nothing on it is noise on every other product.
|
|
1249
|
+
*/
|
|
1250
|
+
get VisibleChannels() {
|
|
1251
|
+
return this.Channels.filter((c) => c.ID == null || c.TierCount > 0 || this.EditMode);
|
|
1252
|
+
}
|
|
1253
|
+
/** Price-list tabs only when there is more than the Standard tab to choose from. */
|
|
663
1254
|
get ShowChannelBar() {
|
|
664
|
-
return this.
|
|
1255
|
+
return this.VisibleChannels.length > 1;
|
|
1256
|
+
}
|
|
1257
|
+
/** Kept for callers that read the old flag; the grid is now one of three views. */
|
|
1258
|
+
get IsAdvancedGridView() {
|
|
1259
|
+
return this.ViewMode === 'grid';
|
|
665
1260
|
}
|
|
666
1261
|
get PricesForChannel() {
|
|
667
1262
|
return this.AllPriceRecords.filter((p) => this.SelectedChannelID === null ? !p.PriceListID : p.PriceListID === this.SelectedChannelID);
|
|
668
1263
|
}
|
|
1264
|
+
// ---- Retirement -------------------------------------------------------------------------------
|
|
1265
|
+
/**
|
|
1266
|
+
* A price that no longer applies to new lines: inactive, or its Effective To is before today.
|
|
1267
|
+
* Saved lines keep their stated price either way (`StatedLineUnitPrice`), so retiring is safe
|
|
1268
|
+
* for existing orders and is the way to stop a price; deleting one loses the trail.
|
|
1269
|
+
*/
|
|
1270
|
+
IsRetired(p) {
|
|
1271
|
+
if (p.Status !== 'Active')
|
|
1272
|
+
return true;
|
|
1273
|
+
const to = ToISODate(p.EffectiveTo);
|
|
1274
|
+
return to != null && to < Today();
|
|
1275
|
+
}
|
|
1276
|
+
StatusTextFor(p) {
|
|
1277
|
+
if (p.Status !== 'Active')
|
|
1278
|
+
return 'Inactive';
|
|
1279
|
+
const to = ToISODate(p.EffectiveTo);
|
|
1280
|
+
if (to == null)
|
|
1281
|
+
return '';
|
|
1282
|
+
return to < Today() ? `Expired ${FormatDate(p.EffectiveTo)}` : `Expires ${FormatDate(p.EffectiveTo)}`;
|
|
1283
|
+
}
|
|
1284
|
+
/** Retired prices of this product on the selected channel, hidden unless ShowRetired. */
|
|
1285
|
+
get RetiredCount() {
|
|
1286
|
+
return this.PricesForChannel.filter((p) => this.IsRetired(p)).length;
|
|
1287
|
+
}
|
|
1288
|
+
ToggleRetired() {
|
|
1289
|
+
this.ShowRetired = !this.ShowRetired;
|
|
1290
|
+
this.rebuildBands();
|
|
1291
|
+
this.cdr?.markForCheck();
|
|
1292
|
+
}
|
|
1293
|
+
async RetirePrice(p) {
|
|
1294
|
+
if (!this.EditMode)
|
|
1295
|
+
return;
|
|
1296
|
+
p.Status = 'Inactive';
|
|
1297
|
+
const name = this.PriceDisplayName(p);
|
|
1298
|
+
await this.savePricesAndReload(`${name} deactivated. Existing order lines keep their price.`);
|
|
1299
|
+
}
|
|
1300
|
+
async RestorePrice(p) {
|
|
1301
|
+
if (!this.EditMode)
|
|
1302
|
+
return;
|
|
1303
|
+
p.Status = 'Active';
|
|
1304
|
+
const to = ToISODate(p.EffectiveTo);
|
|
1305
|
+
if (to != null && to < Today())
|
|
1306
|
+
p.EffectiveTo = null;
|
|
1307
|
+
await this.savePricesAndReload(`${this.PriceDisplayName(p)} activated.`);
|
|
1308
|
+
}
|
|
1309
|
+
/** The card's Status select: the same save and message as Retire / Restore. */
|
|
1310
|
+
async OnStatusChange(p) {
|
|
1311
|
+
if (!this.EditMode)
|
|
1312
|
+
return;
|
|
1313
|
+
const name = this.PriceDisplayName(p);
|
|
1314
|
+
await this.savePricesAndReload(p.Status === 'Active'
|
|
1315
|
+
? `${name} activated.`
|
|
1316
|
+
: `${name} deactivated. Existing order lines keep their price.`);
|
|
1317
|
+
}
|
|
1318
|
+
/** The row's Effective To as the date input shows it. */
|
|
1319
|
+
EffectiveToInput(p) {
|
|
1320
|
+
return ToISODate(p.EffectiveTo) ?? '';
|
|
1321
|
+
}
|
|
1322
|
+
async OnEffectiveToChange(p, value) {
|
|
1323
|
+
if (!this.EditMode)
|
|
1324
|
+
return;
|
|
1325
|
+
const next = value ? AsDateValue(value) : null;
|
|
1326
|
+
const prev = ToISODate(p.EffectiveTo);
|
|
1327
|
+
if ((next ? ToISODate(next) : null) === prev)
|
|
1328
|
+
return;
|
|
1329
|
+
p.EffectiveTo = next;
|
|
1330
|
+
await this.savePricesAndReload(next ? `${this.PriceDisplayName(p)} expires ${FormatDate(next)}.` : `${this.PriceDisplayName(p)} has no expiration date.`);
|
|
1331
|
+
}
|
|
1332
|
+
// ---- Cards ------------------------------------------------------------------------------------
|
|
669
1333
|
get VisiblePrices() {
|
|
670
1334
|
const inChannel = (p) => this.SelectedChannelID === null ? !p.PriceListID : p.PriceListID === this.SelectedChannelID;
|
|
671
|
-
const productRows = this.AllPriceRecords.filter(inChannel);
|
|
1335
|
+
const productRows = this.AllPriceRecords.filter(inChannel).filter((p) => this.ShowRetired || !this.IsRetired(p));
|
|
672
1336
|
const names = new Set(productRows.map((p) => this.PriceDisplayName(p).trim().toLowerCase()));
|
|
673
1337
|
const inherited = this.InheritedRecords.filter((p) => inChannel(p) && !names.has(this.PriceDisplayName(p).trim().toLowerCase()));
|
|
674
1338
|
const toCard = (p, inherited) => ({
|
|
@@ -676,15 +1340,26 @@ export class BizAppsProductPricingWidgetComponent {
|
|
|
676
1340
|
Name: this.PriceDisplayName(p),
|
|
677
1341
|
Amount: Number(p.Amount) || 0,
|
|
678
1342
|
Inherited: inherited,
|
|
679
|
-
SourceLabel: inherited ?
|
|
1343
|
+
SourceLabel: inherited ? `Inherited from ${this.categoryName(p.ProductCategoryID)}` : '',
|
|
680
1344
|
WhenText: this.WhenSentence(p),
|
|
1345
|
+
StatusText: inherited ? '' : this.StatusTextFor(p),
|
|
1346
|
+
Retired: inherited ? false : this.IsRetired(p),
|
|
681
1347
|
Record: p,
|
|
682
1348
|
});
|
|
683
|
-
const productCards = productRows
|
|
684
|
-
.map((p) => toCard(p, false))
|
|
685
|
-
.sort((a, b) => (Number(b.Record.Priority) || 0) - (Number(a.Record.Priority) || 0));
|
|
1349
|
+
const productCards = productRows.map((p) => toCard(p, false)).sort((a, b) => this.comparePrices(a.Record, b.Record));
|
|
686
1350
|
return [...productCards, ...inherited.map((p) => toCard(p, true))];
|
|
687
1351
|
}
|
|
1352
|
+
/**
|
|
1353
|
+
* The one order prices are listed in, in the cards, the simulation and (as far as SQL can) the grid.
|
|
1354
|
+
* `ComparePriceRows` in orders-entities holds the rule, so the product Overview lists them the same way.
|
|
1355
|
+
*/
|
|
1356
|
+
comparePrices(a, b) {
|
|
1357
|
+
return ComparePriceRows(a, b);
|
|
1358
|
+
}
|
|
1359
|
+
/** The category an inherited price comes from, by name; the engine is loaded before any card is built. */
|
|
1360
|
+
categoryName(categoryID) {
|
|
1361
|
+
return OrdersEngine.Instance.ProductCategoryByID(categoryID)?.Name?.trim() || 'category';
|
|
1362
|
+
}
|
|
688
1363
|
PriceCanExpand(row) {
|
|
689
1364
|
if (row.Inherited)
|
|
690
1365
|
return this.EditMode;
|
|
@@ -705,6 +1380,9 @@ export class BizAppsProductPricingWidgetComponent {
|
|
|
705
1380
|
const raw = p.Applicability;
|
|
706
1381
|
if (raw == null || String(raw).trim() === '')
|
|
707
1382
|
return '';
|
|
1383
|
+
const band = ParseRevenueBand(raw);
|
|
1384
|
+
if (band)
|
|
1385
|
+
return `Customer annual revenue ${RevenueBandRangeText(band)}`;
|
|
708
1386
|
try {
|
|
709
1387
|
const parsed = JSON.parse(String(raw));
|
|
710
1388
|
const parts = (parsed.filters ?? []).map((f) => this.whenPart(f)).filter(Boolean);
|
|
@@ -714,7 +1392,7 @@ export class BizAppsProductPricingWidgetComponent {
|
|
|
714
1392
|
return parts.join(join);
|
|
715
1393
|
}
|
|
716
1394
|
catch {
|
|
717
|
-
return 'Has
|
|
1395
|
+
return 'Has conditions';
|
|
718
1396
|
}
|
|
719
1397
|
}
|
|
720
1398
|
whenPart(node) {
|
|
@@ -748,9 +1426,43 @@ export class BizAppsProductPricingWidgetComponent {
|
|
|
748
1426
|
const val = node.value == null || node.value === '' ? '' : String(node.value);
|
|
749
1427
|
return `${field} ${op} ${val}`.trim();
|
|
750
1428
|
}
|
|
1429
|
+
whenLabelCache = new Map();
|
|
1430
|
+
/** `Bill-to organization · Status`: the source's label and the field's display name from metadata. */
|
|
751
1431
|
whenFieldLabel(stored) {
|
|
1432
|
+
const cached = this.whenLabelCache.get(stored);
|
|
1433
|
+
if (cached)
|
|
1434
|
+
return cached;
|
|
1435
|
+
const label = this.resolveWhenFieldLabel(stored);
|
|
1436
|
+
this.whenLabelCache.set(stored, label);
|
|
1437
|
+
return label;
|
|
1438
|
+
}
|
|
1439
|
+
resolveWhenFieldLabel(stored) {
|
|
752
1440
|
const hit = PRICE_WHEN_FIELDS.find((f) => f.name === stored);
|
|
753
|
-
|
|
1441
|
+
if (hit)
|
|
1442
|
+
return hit.displayName;
|
|
1443
|
+
const dot = stored.indexOf('.');
|
|
1444
|
+
if (dot <= 0)
|
|
1445
|
+
return stored;
|
|
1446
|
+
const sourceKey = stored.slice(0, dot);
|
|
1447
|
+
const fieldName = stored.slice(dot + 1);
|
|
1448
|
+
const src = PRICE_APPLICABILITY_SOURCES.find((s) => s.key === sourceKey);
|
|
1449
|
+
if (!src)
|
|
1450
|
+
return stored.replace('.', ' · ');
|
|
1451
|
+
if (src.fields) {
|
|
1452
|
+
const f = src.fields.find((x) => x.name === fieldName);
|
|
1453
|
+
return `${src.label} · ${f?.label ?? fieldName}`;
|
|
1454
|
+
}
|
|
1455
|
+
let display = fieldName;
|
|
1456
|
+
try {
|
|
1457
|
+
const ent = src.entityName ? new Metadata().EntityByName(src.entityName) : null;
|
|
1458
|
+
const f = ent?.Fields.find((x) => x.Name === fieldName);
|
|
1459
|
+
if (f?.DisplayName)
|
|
1460
|
+
display = f.DisplayName;
|
|
1461
|
+
}
|
|
1462
|
+
catch {
|
|
1463
|
+
/* metadata not loaded yet: the raw name is fine */
|
|
1464
|
+
}
|
|
1465
|
+
return `${src.label} · ${display}`;
|
|
754
1466
|
}
|
|
755
1467
|
OpenPriceRecord(p, event) {
|
|
756
1468
|
event?.stopPropagation();
|
|
@@ -801,8 +1513,10 @@ export class BizAppsProductPricingWidgetComponent {
|
|
|
801
1513
|
return null;
|
|
802
1514
|
return {
|
|
803
1515
|
EntityName: PRODUCT_PRICES_ENTITY,
|
|
804
|
-
ExtraFilter: `ProductID = '${this.Product.ID}'`,
|
|
805
|
-
|
|
1516
|
+
ExtraFilter: `ProductID = '${this.Product.ID}' AND ${this.SelectedChannelID ? `PriceListID = '${RequireUUID(this.SelectedChannelID, 'PriceListID')}'` : 'PriceListID IS NULL'}`,
|
|
1517
|
+
// Same order as the cards, as far as SQL can: a band ladder's prices rise with revenue, so
|
|
1518
|
+
// Amount stands in for the band edge the JSON holds.
|
|
1519
|
+
OrderBy: 'Priority DESC, Amount ASC, Name ASC',
|
|
806
1520
|
ResultType: 'entity_object',
|
|
807
1521
|
};
|
|
808
1522
|
}
|
|
@@ -829,8 +1543,11 @@ export class BizAppsProductPricingWidgetComponent {
|
|
|
829
1543
|
this.AllPriceRecords = OrdersEngine.Instance.ProductPricesFor(this.Product.ID);
|
|
830
1544
|
}
|
|
831
1545
|
const rv = new RunView();
|
|
1546
|
+
// Only live lists get a tab: the resolver ignores an inactive list's prices, so showing one
|
|
1547
|
+
// here would offer prices no customer can receive.
|
|
832
1548
|
const listsResult = await rv.RunView({
|
|
833
1549
|
EntityName: PRICE_LISTS_ENTITY,
|
|
1550
|
+
ExtraFilter: `Status = 'Active'`,
|
|
834
1551
|
OrderBy: 'Name ASC',
|
|
835
1552
|
ResultType: 'entity_object',
|
|
836
1553
|
MaxRows: 50,
|
|
@@ -842,6 +1559,10 @@ export class BizAppsProductPricingWidgetComponent {
|
|
|
842
1559
|
if (!this.NewPriceAmount) {
|
|
843
1560
|
this.NewPriceAmount = this.BaseListPrice || 0;
|
|
844
1561
|
}
|
|
1562
|
+
// A banded product opens on its ladder; the person can still switch to the cards.
|
|
1563
|
+
if (!this.viewChosen && this.ViewMode === 'cards' && this.BandRows.some((b) => !b.Retired)) {
|
|
1564
|
+
this.ViewMode = 'bands';
|
|
1565
|
+
}
|
|
845
1566
|
}
|
|
846
1567
|
catch (err) {
|
|
847
1568
|
console.error('Failed to load product pricing records:', err);
|
|
@@ -862,7 +1583,7 @@ export class BizAppsProductPricingWidgetComponent {
|
|
|
862
1583
|
const channels = [
|
|
863
1584
|
{
|
|
864
1585
|
ID: null,
|
|
865
|
-
Name: '
|
|
1586
|
+
Name: 'Standard',
|
|
866
1587
|
Icon: 'fa-solid fa-globe',
|
|
867
1588
|
TierCount: this.countPricesOnChannel(null),
|
|
868
1589
|
}
|
|
@@ -893,10 +1614,14 @@ export class BizAppsProductPricingWidgetComponent {
|
|
|
893
1614
|
this.SelectedChannelID = channelId;
|
|
894
1615
|
this.rebuildLadder();
|
|
895
1616
|
}
|
|
896
|
-
|
|
897
|
-
this.
|
|
1617
|
+
SetView(mode) {
|
|
1618
|
+
this.ViewMode = mode;
|
|
1619
|
+
this.viewChosen = true;
|
|
898
1620
|
this.cdr?.markForCheck();
|
|
899
1621
|
}
|
|
1622
|
+
ToggleAdvancedView() {
|
|
1623
|
+
this.SetView(this.ViewMode === 'grid' ? 'cards' : 'grid');
|
|
1624
|
+
}
|
|
900
1625
|
rebuildLadder() {
|
|
901
1626
|
const channelRecords = this.AllPriceRecords
|
|
902
1627
|
.filter(p => (this.SelectedChannelID === null ? !p.PriceListID : p.PriceListID === this.SelectedChannelID))
|
|
@@ -959,6 +1684,7 @@ export class BizAppsProductPricingWidgetComponent {
|
|
|
959
1684
|
}
|
|
960
1685
|
// Build Step Curve Bars
|
|
961
1686
|
this.buildStepBars(tiers, base);
|
|
1687
|
+
this.rebuildBands();
|
|
962
1688
|
this.cdr?.markForCheck();
|
|
963
1689
|
}
|
|
964
1690
|
buildStepBars(tiers, basePrice) {
|
|
@@ -982,6 +1708,303 @@ export class BizAppsProductPricingWidgetComponent {
|
|
|
982
1708
|
};
|
|
983
1709
|
});
|
|
984
1710
|
}
|
|
1711
|
+
// ---- Revenue band editor ----------------------------------------------------------------------
|
|
1712
|
+
/** The channel's band rows, lowest band first, retired ones only when asked for. */
|
|
1713
|
+
rebuildBands() {
|
|
1714
|
+
const rows = [];
|
|
1715
|
+
for (const p of this.PricesForChannel) {
|
|
1716
|
+
const range = ParseRevenueBand(p.Applicability);
|
|
1717
|
+
if (!range)
|
|
1718
|
+
continue;
|
|
1719
|
+
const retired = this.IsRetired(p);
|
|
1720
|
+
if (retired && !this.ShowRetired)
|
|
1721
|
+
continue;
|
|
1722
|
+
rows.push({
|
|
1723
|
+
Record: p,
|
|
1724
|
+
ID: p.ID,
|
|
1725
|
+
Range: range,
|
|
1726
|
+
MinMillions: range.Min == null ? null : range.Min / MILLION,
|
|
1727
|
+
MaxMillions: range.Max == null ? null : range.Max / MILLION,
|
|
1728
|
+
RangeText: RevenueBandRangeText(range),
|
|
1729
|
+
Amount: Number(p.Amount) || 0,
|
|
1730
|
+
StatusText: this.StatusTextFor(p),
|
|
1731
|
+
Retired: retired,
|
|
1732
|
+
});
|
|
1733
|
+
}
|
|
1734
|
+
rows.sort((a, b) => (a.Range.Min ?? -Infinity) - (b.Range.Min ?? -Infinity));
|
|
1735
|
+
this.BandRows = rows;
|
|
1736
|
+
const live = rows.filter((r) => !r.Retired);
|
|
1737
|
+
this.LadderIssues = DescribeRevenueLadder(live.map((r) => r.Range)).map(DescribeRevenueLadderIssue);
|
|
1738
|
+
const top = live[live.length - 1];
|
|
1739
|
+
this.NewBandMinMillions = top ? (top.Range.Max == null ? null : top.Range.Max / MILLION) : 0;
|
|
1740
|
+
this.NewBandMaxMillions = null;
|
|
1741
|
+
this.NewBandAmount = top ? top.Amount : this.BaseListPrice || 0;
|
|
1742
|
+
}
|
|
1743
|
+
/** Whether the highest live band has no upper edge, so an added band above it would overlap. */
|
|
1744
|
+
get TopBandOpen() {
|
|
1745
|
+
const live = this.BandRows.filter((r) => !r.Retired);
|
|
1746
|
+
return live.length > 0 && live[live.length - 1].Range.Max == null;
|
|
1747
|
+
}
|
|
1748
|
+
/** What the setup form's edges would create, so the person sees the ladder before it is written. */
|
|
1749
|
+
get BandSetupPreview() {
|
|
1750
|
+
const bands = RevenueBandsFromEdges(this.parseEdgesText(this.BandSetupEdgesText));
|
|
1751
|
+
if (bands.length === 0)
|
|
1752
|
+
return 'Enter each band\'s lower limit in $M, ascending, e.g. 0, 2, 5, 10.';
|
|
1753
|
+
const first = RevenueBandRangeText(bands[0]);
|
|
1754
|
+
const last = RevenueBandRangeText(bands[bands.length - 1]);
|
|
1755
|
+
return bands.length === 1 ? `1 band: ${first}` : `${bands.length} bands: ${first} … ${last}`;
|
|
1756
|
+
}
|
|
1757
|
+
parseEdgesText(text) {
|
|
1758
|
+
return String(text ?? '')
|
|
1759
|
+
.split(/[\s,;]+/)
|
|
1760
|
+
.map((t) => t.replace(/[$M]/gi, ''))
|
|
1761
|
+
.filter((t) => t !== '')
|
|
1762
|
+
.map((t) => Number(t) * MILLION)
|
|
1763
|
+
.filter((n) => Number.isFinite(n) && n >= 0);
|
|
1764
|
+
}
|
|
1765
|
+
millionsToUsd(value) {
|
|
1766
|
+
if (value == null || String(value).trim() === '')
|
|
1767
|
+
return null;
|
|
1768
|
+
const n = Number(value);
|
|
1769
|
+
if (!Number.isFinite(n) || n < 0)
|
|
1770
|
+
return null;
|
|
1771
|
+
return Math.round(n * MILLION);
|
|
1772
|
+
}
|
|
1773
|
+
/**
|
|
1774
|
+
* The priority new bands take: the one the product's live bands already share, else the next free
|
|
1775
|
+
* priority on the channel. Bands sit at ONE priority on purpose: the write-time collision check
|
|
1776
|
+
* then refuses two bands whose ranges overlap, and disjoint bands never tie (#1004).
|
|
1777
|
+
*/
|
|
1778
|
+
bandPriority() {
|
|
1779
|
+
const counts = new Map();
|
|
1780
|
+
for (const r of this.BandRows) {
|
|
1781
|
+
if (r.Retired)
|
|
1782
|
+
continue;
|
|
1783
|
+
const p = Number(r.Record.Priority) || 0;
|
|
1784
|
+
counts.set(p, (counts.get(p) ?? 0) + 1);
|
|
1785
|
+
}
|
|
1786
|
+
let best = null;
|
|
1787
|
+
let bestCount = 0;
|
|
1788
|
+
for (const [p, c] of counts) {
|
|
1789
|
+
if (c > bestCount || (c === bestCount && best != null && p > best)) {
|
|
1790
|
+
best = p;
|
|
1791
|
+
bestCount = c;
|
|
1792
|
+
}
|
|
1793
|
+
}
|
|
1794
|
+
return best ?? this.nextPriorityOnChannel();
|
|
1795
|
+
}
|
|
1796
|
+
/**
|
|
1797
|
+
* The name the editor proposes for a band on the selected tab: `Under $2M rev` on Standard,
|
|
1798
|
+
* `Under $2M rev · Member Pricing` on a price list, so the same ladder can exist on both.
|
|
1799
|
+
*/
|
|
1800
|
+
proposedBandName(range) {
|
|
1801
|
+
const list = this.SelectedChannelID === null ? '' : this.Channels.find((c) => c.ID === this.SelectedChannelID)?.Name?.trim();
|
|
1802
|
+
return list ? `${RevenueBandName(range)} · ${list}` : RevenueBandName(range);
|
|
1803
|
+
}
|
|
1804
|
+
/**
|
|
1805
|
+
* `proposedBandName`, made unique among this product's prices, whatever their list or status:
|
|
1806
|
+
* `UX_ProductPrice_Product_Name` is unique on (ProductID, Name) and a deactivated band still holds
|
|
1807
|
+
* its name. `except` is the row being renamed, whose own name does not count as taken.
|
|
1808
|
+
*/
|
|
1809
|
+
freeBandName(range, except) {
|
|
1810
|
+
const taken = this.AllPriceRecords.filter((p) => p !== except && (!except || p.ID !== except.ID)).map((p) => p.Name);
|
|
1811
|
+
return UniquePriceName(this.proposedBandName(range), taken).slice(0, 200);
|
|
1812
|
+
}
|
|
1813
|
+
applyBandToRecord(p, range, amount, priority) {
|
|
1814
|
+
p.ProductID = this.Product.ID;
|
|
1815
|
+
p.PriceListID = this.SelectedChannelID;
|
|
1816
|
+
p.Name = this.freeBandName(range);
|
|
1817
|
+
p.Applicability = BuildRevenueBandApplicability(range);
|
|
1818
|
+
p.Amount = Number.isFinite(amount) ? amount : 0;
|
|
1819
|
+
p.PricingModel = 'PerUnit';
|
|
1820
|
+
p.FeeType = 'Standard';
|
|
1821
|
+
p.Priority = priority;
|
|
1822
|
+
p.Status = 'Active';
|
|
1823
|
+
p.EffectiveFrom = this.newPriceEffectiveFromValue();
|
|
1824
|
+
}
|
|
1825
|
+
async AddBand() {
|
|
1826
|
+
if (!this.EditMode)
|
|
1827
|
+
return;
|
|
1828
|
+
if (!this.Product?.ID) {
|
|
1829
|
+
this.ShowToast('Save the product first.', 'error');
|
|
1830
|
+
return;
|
|
1831
|
+
}
|
|
1832
|
+
if (!(await this.ensurePricesLoaded())) {
|
|
1833
|
+
this.ShowToast('Product.Prices collection is not available. Reload after CodeGen.', 'error');
|
|
1834
|
+
return;
|
|
1835
|
+
}
|
|
1836
|
+
const min = this.millionsToUsd(this.NewBandMinMillions);
|
|
1837
|
+
const max = this.millionsToUsd(this.NewBandMaxMillions);
|
|
1838
|
+
if (min == null && max == null) {
|
|
1839
|
+
this.ShowToast('Enter a From or To value.', 'error');
|
|
1840
|
+
return;
|
|
1841
|
+
}
|
|
1842
|
+
if (min != null && max != null && min >= max) {
|
|
1843
|
+
this.ShowToast('To must be greater than From.', 'error');
|
|
1844
|
+
return;
|
|
1845
|
+
}
|
|
1846
|
+
const range = { Min: min, Max: max };
|
|
1847
|
+
this.IsSaving = true;
|
|
1848
|
+
this.cdr?.markForCheck();
|
|
1849
|
+
let newPrice = null;
|
|
1850
|
+
try {
|
|
1851
|
+
newPrice = await this.Product.Prices.Create();
|
|
1852
|
+
this.applyBandToRecord(newPrice, range, Number(this.NewBandAmount), this.bandPriority());
|
|
1853
|
+
const saved = await this.saveProductGraph();
|
|
1854
|
+
if (saved) {
|
|
1855
|
+
this.ShowToast(`Added ${newPrice.Name} · ${this.FormatCurrency(newPrice.Amount)}`, 'success');
|
|
1856
|
+
this.PriceChanged.emit();
|
|
1857
|
+
this.TierAdded.emit(newPrice);
|
|
1858
|
+
await this.LoadPricingData();
|
|
1859
|
+
}
|
|
1860
|
+
else {
|
|
1861
|
+
this.discardUnsaved(newPrice);
|
|
1862
|
+
}
|
|
1863
|
+
}
|
|
1864
|
+
catch (err) {
|
|
1865
|
+
this.ShowToast(err instanceof Error ? err.message : String(err), 'error', 6000);
|
|
1866
|
+
if (newPrice)
|
|
1867
|
+
this.discardUnsaved(newPrice);
|
|
1868
|
+
}
|
|
1869
|
+
finally {
|
|
1870
|
+
this.IsSaving = false;
|
|
1871
|
+
this.cdr?.markForCheck();
|
|
1872
|
+
}
|
|
1873
|
+
}
|
|
1874
|
+
/** Write a whole ladder at once from the setup form's edges, every band at the starting price. */
|
|
1875
|
+
async CreateBandLadder() {
|
|
1876
|
+
if (!this.EditMode)
|
|
1877
|
+
return;
|
|
1878
|
+
if (!this.Product?.ID) {
|
|
1879
|
+
this.ShowToast('Save the product first.', 'error');
|
|
1880
|
+
return;
|
|
1881
|
+
}
|
|
1882
|
+
if (!(await this.ensurePricesLoaded())) {
|
|
1883
|
+
this.ShowToast('Product.Prices collection is not available. Reload after CodeGen.', 'error');
|
|
1884
|
+
return;
|
|
1885
|
+
}
|
|
1886
|
+
const bands = RevenueBandsFromEdges(this.parseEdgesText(this.BandSetupEdgesText));
|
|
1887
|
+
if (bands.length === 0) {
|
|
1888
|
+
this.ShowToast('Enter at least one breakpoint in $M.', 'error');
|
|
1889
|
+
return;
|
|
1890
|
+
}
|
|
1891
|
+
this.IsSaving = true;
|
|
1892
|
+
this.cdr?.markForCheck();
|
|
1893
|
+
const created = [];
|
|
1894
|
+
try {
|
|
1895
|
+
const priority = this.bandPriority();
|
|
1896
|
+
const amount = Number(this.BandSetupAmount);
|
|
1897
|
+
for (const range of bands) {
|
|
1898
|
+
const p = await this.Product.Prices.Create();
|
|
1899
|
+
this.applyBandToRecord(p, range, amount, priority);
|
|
1900
|
+
created.push(p);
|
|
1901
|
+
}
|
|
1902
|
+
const saved = await this.saveProductGraph();
|
|
1903
|
+
if (saved) {
|
|
1904
|
+
this.ShowToast(`Created ${bands.length} revenue bands at ${this.FormatCurrency(amount)}. Adjust each price in the table.`, 'success', 6000);
|
|
1905
|
+
this.PriceChanged.emit();
|
|
1906
|
+
await this.LoadPricingData();
|
|
1907
|
+
}
|
|
1908
|
+
else {
|
|
1909
|
+
for (const p of created)
|
|
1910
|
+
this.discardUnsaved(p);
|
|
1911
|
+
}
|
|
1912
|
+
}
|
|
1913
|
+
catch (err) {
|
|
1914
|
+
this.ShowToast(err instanceof Error ? err.message : String(err), 'error', 6000);
|
|
1915
|
+
for (const p of created)
|
|
1916
|
+
this.discardUnsaved(p);
|
|
1917
|
+
}
|
|
1918
|
+
finally {
|
|
1919
|
+
this.IsSaving = false;
|
|
1920
|
+
this.cdr?.markForCheck();
|
|
1921
|
+
}
|
|
1922
|
+
}
|
|
1923
|
+
async SaveBandEdges(row) {
|
|
1924
|
+
if (!this.EditMode)
|
|
1925
|
+
return;
|
|
1926
|
+
const min = this.millionsToUsd(row.MinMillions);
|
|
1927
|
+
const max = this.millionsToUsd(row.MaxMillions);
|
|
1928
|
+
if (min === row.Range.Min && max === row.Range.Max)
|
|
1929
|
+
return;
|
|
1930
|
+
if (min == null && max == null) {
|
|
1931
|
+
this.ShowToast('Enter a From or To value.', 'error');
|
|
1932
|
+
this.resetBandInputs(row);
|
|
1933
|
+
return;
|
|
1934
|
+
}
|
|
1935
|
+
if (min != null && max != null && min >= max) {
|
|
1936
|
+
this.ShowToast('To must be greater than From.', 'error');
|
|
1937
|
+
this.resetBandInputs(row);
|
|
1938
|
+
return;
|
|
1939
|
+
}
|
|
1940
|
+
const next = { Min: min, Max: max };
|
|
1941
|
+
// A name the editor proposed follows the edges; a name the person typed stays. A proposed name
|
|
1942
|
+
// may carry a "(2)" suffix from `freeBandName`, so the test is on the stem.
|
|
1943
|
+
const name = (row.Record.Name ?? '').trim();
|
|
1944
|
+
const proposed = this.proposedBandName(row.Range);
|
|
1945
|
+
if (!name || name === proposed || name === RevenueBandName(row.Range) || /^(.*) \(\d+\)$/.exec(name)?.[1] === proposed) {
|
|
1946
|
+
row.Record.Name = this.freeBandName(next, row.Record);
|
|
1947
|
+
}
|
|
1948
|
+
row.Record.Applicability = BuildRevenueBandApplicability(next);
|
|
1949
|
+
await this.savePricesAndReload(`${row.Record.Name}: ${RevenueBandRangeText(next)}`);
|
|
1950
|
+
}
|
|
1951
|
+
resetBandInputs(row) {
|
|
1952
|
+
row.MinMillions = row.Range.Min == null ? null : row.Range.Min / MILLION;
|
|
1953
|
+
row.MaxMillions = row.Range.Max == null ? null : row.Range.Max / MILLION;
|
|
1954
|
+
this.cdr?.markForCheck();
|
|
1955
|
+
}
|
|
1956
|
+
/** The message when a price field is left empty or unreadable on blur; the old amount stays. */
|
|
1957
|
+
static PRICE_KEPT = 'Price not changed. Enter a number such as 1,250.00.';
|
|
1958
|
+
async SaveBandAmount(row) {
|
|
1959
|
+
if (!this.EditMode)
|
|
1960
|
+
return;
|
|
1961
|
+
// `mjoCurrency` writes null for an empty or unreadable field, and Number(null) is 0: without this
|
|
1962
|
+
// test, deleting a price to retype it and clicking away saved the band at $0.00 (PR #1052 review).
|
|
1963
|
+
const typed = row.Record.Amount;
|
|
1964
|
+
const amount = typed == null ? NaN : Number(typed);
|
|
1965
|
+
if (!Number.isFinite(amount)) {
|
|
1966
|
+
row.Record.Amount = row.Amount;
|
|
1967
|
+
this.ShowToast(BizAppsProductPricingWidgetComponent.PRICE_KEPT, 'error');
|
|
1968
|
+
this.cdr?.markForCheck();
|
|
1969
|
+
return;
|
|
1970
|
+
}
|
|
1971
|
+
if (amount === row.Amount) {
|
|
1972
|
+
row.Record.Amount = row.Amount;
|
|
1973
|
+
return;
|
|
1974
|
+
}
|
|
1975
|
+
await this.savePricesAndReload(`${this.PriceDisplayName(row.Record)} updated to ${this.FormatCurrency(amount)}.`);
|
|
1976
|
+
}
|
|
1977
|
+
async SaveBandName(row) {
|
|
1978
|
+
if (!this.EditMode)
|
|
1979
|
+
return;
|
|
1980
|
+
if (!row.Record.Dirty)
|
|
1981
|
+
return;
|
|
1982
|
+
await this.savePricesAndReload(`Renamed to ${this.PriceDisplayName(row.Record)}`);
|
|
1983
|
+
}
|
|
1984
|
+
/** Save every dirty price through the product graph, report, and reload the widget. */
|
|
1985
|
+
async savePricesAndReload(successMessage) {
|
|
1986
|
+
this.IsSaving = true;
|
|
1987
|
+
this.cdr?.markForCheck();
|
|
1988
|
+
try {
|
|
1989
|
+
const ok = await this.saveProductGraph();
|
|
1990
|
+
if (ok) {
|
|
1991
|
+
this.ShowToast(successMessage, 'success');
|
|
1992
|
+
this.PriceChanged.emit();
|
|
1993
|
+
}
|
|
1994
|
+
await this.LoadPricingData();
|
|
1995
|
+
return ok;
|
|
1996
|
+
}
|
|
1997
|
+
catch (err) {
|
|
1998
|
+
this.ShowToast(err instanceof Error ? err.message : String(err), 'error', 6000);
|
|
1999
|
+
await this.LoadPricingData();
|
|
2000
|
+
return false;
|
|
2001
|
+
}
|
|
2002
|
+
finally {
|
|
2003
|
+
this.IsSaving = false;
|
|
2004
|
+
this.cdr?.markForCheck();
|
|
2005
|
+
}
|
|
2006
|
+
}
|
|
2007
|
+
// ---- Quantity tiers (legacy ladder) ------------------------------------------------------------
|
|
985
2008
|
async AddTierBracket() {
|
|
986
2009
|
if (!this.Product?.ID) {
|
|
987
2010
|
this.ShowToast('Cannot add pricing tier: Product must be saved first.', 'error');
|
|
@@ -1244,6 +2267,11 @@ export class BizAppsProductPricingWidgetComponent {
|
|
|
1244
2267
|
this.WhenEditorPriceID = row.ID;
|
|
1245
2268
|
this.cdr?.markForCheck();
|
|
1246
2269
|
}
|
|
2270
|
+
ToggleAllWhenFields(showAll) {
|
|
2271
|
+
this.ShowAllWhenFields = showAll;
|
|
2272
|
+
this.WhenFields = this.buildWhenFields();
|
|
2273
|
+
this.cdr?.markForCheck();
|
|
2274
|
+
}
|
|
1247
2275
|
OnWhenFilterChange(filter) {
|
|
1248
2276
|
this.WhenFilter = filter;
|
|
1249
2277
|
}
|
|
@@ -1261,9 +2289,16 @@ export class BizAppsProductPricingWidgetComponent {
|
|
|
1261
2289
|
}
|
|
1262
2290
|
return null;
|
|
1263
2291
|
}
|
|
2292
|
+
/**
|
|
2293
|
+
* The fields the When builder offers. By default each source's `commonFields` (the handful a
|
|
2294
|
+
* price rule tests: status, type, region, revenue), so the picker is a short list rather than
|
|
2295
|
+
* every column of five entities; "every field" lists them all. A field a stored When already
|
|
2296
|
+
* names stays listed either way, so an existing rule always round-trips.
|
|
2297
|
+
*/
|
|
1264
2298
|
buildWhenFields() {
|
|
1265
2299
|
const md = new Metadata();
|
|
1266
2300
|
const out = [];
|
|
2301
|
+
const inUse = this.whenFieldsInUse();
|
|
1267
2302
|
for (const src of PRICE_APPLICABILITY_SOURCES) {
|
|
1268
2303
|
if (src.fields) {
|
|
1269
2304
|
for (const f of src.fields) {
|
|
@@ -1276,11 +2311,15 @@ export class BizAppsProductPricingWidgetComponent {
|
|
|
1276
2311
|
const ent = md.EntityByName(src.entityName);
|
|
1277
2312
|
if (!ent)
|
|
1278
2313
|
continue;
|
|
2314
|
+
const common = this.ShowAllWhenFields ? null : new Set(src.commonFields ?? []);
|
|
1279
2315
|
for (const f of ent.Fields) {
|
|
1280
2316
|
if (f.Name.startsWith('__mj'))
|
|
1281
2317
|
continue;
|
|
2318
|
+
const name = `${src.key}.${f.Name}`;
|
|
2319
|
+
if (common && !common.has(f.Name) && !inUse.has(name))
|
|
2320
|
+
continue;
|
|
1282
2321
|
out.push({
|
|
1283
|
-
name
|
|
2322
|
+
name,
|
|
1284
2323
|
displayName: `${src.label} · ${f.DisplayName || f.Name}`,
|
|
1285
2324
|
type: this.filterTypeFor(f.TSType),
|
|
1286
2325
|
});
|
|
@@ -1288,6 +2327,24 @@ export class BizAppsProductPricingWidgetComponent {
|
|
|
1288
2327
|
}
|
|
1289
2328
|
return out;
|
|
1290
2329
|
}
|
|
2330
|
+
/** Every `Source.Field` the open When editor's filter names. */
|
|
2331
|
+
whenFieldsInUse() {
|
|
2332
|
+
const names = new Set();
|
|
2333
|
+
const walk = (node) => {
|
|
2334
|
+
if (!node)
|
|
2335
|
+
return;
|
|
2336
|
+
if ('filters' in node && Array.isArray(node.filters)) {
|
|
2337
|
+
for (const f of node.filters)
|
|
2338
|
+
walk(f);
|
|
2339
|
+
return;
|
|
2340
|
+
}
|
|
2341
|
+
const field = node.field;
|
|
2342
|
+
if (field)
|
|
2343
|
+
names.add(field);
|
|
2344
|
+
};
|
|
2345
|
+
walk(this.WhenFilter);
|
|
2346
|
+
return names;
|
|
2347
|
+
}
|
|
1291
2348
|
filterTypeFor(ts) {
|
|
1292
2349
|
switch (ts) {
|
|
1293
2350
|
case EntityFieldTSType.Number:
|
|
@@ -1361,9 +2418,23 @@ export class BizAppsProductPricingWidgetComponent {
|
|
|
1361
2418
|
async SavePrice(p) {
|
|
1362
2419
|
if (!this.EditMode)
|
|
1363
2420
|
return;
|
|
2421
|
+
// Same guard as SaveBandAmount: an emptied price field is "no change", never $0.00.
|
|
2422
|
+
const typed = p.Amount;
|
|
2423
|
+
if (typed == null || !Number.isFinite(Number(typed))) {
|
|
2424
|
+
p.Amount = this.savedAmountOf(p);
|
|
2425
|
+
this.ShowToast(BizAppsProductPricingWidgetComponent.PRICE_KEPT, 'error');
|
|
2426
|
+
this.cdr?.markForCheck();
|
|
2427
|
+
return;
|
|
2428
|
+
}
|
|
1364
2429
|
await this.saveProductGraph();
|
|
1365
2430
|
this.cdr?.markForCheck();
|
|
1366
2431
|
}
|
|
2432
|
+
/** The amount a price row had before the current edit, from the entity's field tracking, else 0. */
|
|
2433
|
+
savedAmountOf(p) {
|
|
2434
|
+
const field = p.GetFieldByName?.('Amount');
|
|
2435
|
+
const old = Number(field?.OldValue);
|
|
2436
|
+
return Number.isFinite(old) ? old : 0;
|
|
2437
|
+
}
|
|
1367
2438
|
async AddPrice() {
|
|
1368
2439
|
if (!this.Product?.ID) {
|
|
1369
2440
|
this.ShowToast('Save the product first.', 'error');
|
|
@@ -1420,17 +2491,89 @@ export class BizAppsProductPricingWidgetComponent {
|
|
|
1420
2491
|
this.NewPriceAmount = row.Amount;
|
|
1421
2492
|
await this.AddPrice();
|
|
1422
2493
|
}
|
|
2494
|
+
// ---- Test a quote -----------------------------------------------------------------------------
|
|
1423
2495
|
OpenQuote() {
|
|
1424
2496
|
this.QuoteDrawerOpen = true;
|
|
1425
2497
|
this.RunQuote();
|
|
1426
2498
|
this.cdr?.markForCheck();
|
|
1427
2499
|
}
|
|
2500
|
+
/** A price row as the resolver's rule, for the same quantity / date / status test it applies. */
|
|
2501
|
+
ruleFromPrice(p) {
|
|
2502
|
+
const rec = p;
|
|
2503
|
+
return {
|
|
2504
|
+
ID: p.ID,
|
|
2505
|
+
PricingModel: (p.PricingModel || 'PerUnit'),
|
|
2506
|
+
Amount: Number(p.Amount) || 0,
|
|
2507
|
+
PackageQuantity: p.PackageQuantity == null ? null : Number(p.PackageQuantity),
|
|
2508
|
+
MinQuantity: p.MinQuantity == null ? null : Number(p.MinQuantity),
|
|
2509
|
+
MaxQuantity: p.MaxQuantity == null ? null : Number(p.MaxQuantity),
|
|
2510
|
+
EffectiveFrom: new Date(p.EffectiveFrom),
|
|
2511
|
+
EffectiveTo: p.EffectiveTo == null ? null : new Date(p.EffectiveTo),
|
|
2512
|
+
RecurrenceMonths: rec.RecurrenceMonths ?? null,
|
|
2513
|
+
RecurrenceDaysOfWeek: rec.RecurrenceDaysOfWeek ?? null,
|
|
2514
|
+
RecurrenceDayOfMonthMin: rec.RecurrenceDayOfMonthMin ?? null,
|
|
2515
|
+
RecurrenceDayOfMonthMax: rec.RecurrenceDayOfMonthMax ?? null,
|
|
2516
|
+
TimeOfDayStart: rec.TimeOfDayStart ?? null,
|
|
2517
|
+
TimeOfDayEnd: rec.TimeOfDayEnd ?? null,
|
|
2518
|
+
Priority: Number(p.Priority) || 0,
|
|
2519
|
+
Status: p.Status,
|
|
2520
|
+
};
|
|
2521
|
+
}
|
|
2522
|
+
/** The product's own rows on one tab, then the category rows whose name no product row has taken. */
|
|
2523
|
+
candidatesOn(listID) {
|
|
2524
|
+
const inChannel = (p) => (listID === null ? !p.PriceListID : p.PriceListID === listID);
|
|
2525
|
+
const own = this.AllPriceRecords.filter(inChannel);
|
|
2526
|
+
const names = new Set(own.map((p) => this.PriceDisplayName(p).trim().toLowerCase()));
|
|
2527
|
+
return [
|
|
2528
|
+
...own.map((p) => ({ Record: p, Inherited: false })),
|
|
2529
|
+
...this.InheritedRecords.filter((p) => inChannel(p) && !names.has(this.PriceDisplayName(p).trim().toLowerCase())).map((p) => ({
|
|
2530
|
+
Record: p,
|
|
2531
|
+
Inherited: true,
|
|
2532
|
+
})),
|
|
2533
|
+
];
|
|
2534
|
+
}
|
|
2535
|
+
/**
|
|
2536
|
+
* Which price a sample bill-to organization would get today: the resolver's own quantity / date /
|
|
2537
|
+
* status test (`IsRuleApplicable`), then each row's When against the sample's type and revenue,
|
|
2538
|
+
* then highest priority wins. Revenue left blank is "unknown", so every row that tests revenue is
|
|
2539
|
+
* reported as undecidable, which is what a rep sees in the price picker (`BandUndecided`).
|
|
2540
|
+
*
|
|
2541
|
+
* On a price-list tab the candidates are that list's rows AND the Standard rows, the list's at one
|
|
2542
|
+
* priority higher, which is how `PriceResolver.loadRules` prices a customer on that list: a list
|
|
2543
|
+
* that does not price the line falls back to Standard rather than to "no price" (PR #1052 review).
|
|
2544
|
+
*/
|
|
1428
2545
|
RunQuote() {
|
|
1429
|
-
const
|
|
2546
|
+
const revenue = this.millionsToUsd(this.QuoteRevenueMillions);
|
|
2547
|
+
const ctx = {
|
|
2548
|
+
BillToOrganization: { Type: this.QuoteOrgType, OrganizationType: this.QuoteOrgType },
|
|
2549
|
+
BillToOrganizationRevenue: revenue == null ? null : { AnnualRevenue: revenue },
|
|
2550
|
+
};
|
|
2551
|
+
const quantity = Number(this.SimQuantity) || 1;
|
|
2552
|
+
const now = new Date();
|
|
2553
|
+
const onList = this.SelectedChannelID !== null;
|
|
2554
|
+
const withPriority = (c, bump) => ({
|
|
2555
|
+
...c,
|
|
2556
|
+
EffectivePriority: (Number(c.Record.Priority) || 0) + bump,
|
|
2557
|
+
});
|
|
2558
|
+
const candidates = onList
|
|
2559
|
+
? [...this.candidatesOn(this.SelectedChannelID).map((c) => withPriority(c, 1)), ...this.candidatesOn(null).map((c) => withPriority(c, 0))]
|
|
2560
|
+
: this.candidatesOn(null).map((c) => withPriority(c, 0));
|
|
2561
|
+
candidates.sort((a, b) => b.EffectivePriority - a.EffectivePriority || this.comparePrices(a.Record, b.Record));
|
|
1430
2562
|
const hits = [];
|
|
1431
2563
|
const skip = [];
|
|
1432
|
-
for (const
|
|
1433
|
-
const
|
|
2564
|
+
for (const c of candidates) {
|
|
2565
|
+
const name = this.PriceDisplayName(c.Record);
|
|
2566
|
+
const rule = this.ruleFromPrice(c.Record);
|
|
2567
|
+
const reason = IsRuleApplicable(rule, { Quantity: quantity, AsOf: now });
|
|
2568
|
+
if (reason) {
|
|
2569
|
+
skip.push(`${name}: ${DescribeInapplicableReason(rule, reason)}`);
|
|
2570
|
+
continue;
|
|
2571
|
+
}
|
|
2572
|
+
const raw = c.Record.Applicability;
|
|
2573
|
+
if (revenue == null && ApplicabilityNeedsRevenue(raw)) {
|
|
2574
|
+
skip.push(`${name}: requires annual revenue (none on file)`);
|
|
2575
|
+
continue;
|
|
2576
|
+
}
|
|
1434
2577
|
let ok = true;
|
|
1435
2578
|
try {
|
|
1436
2579
|
ok = priceApplies(raw, ctx);
|
|
@@ -1439,19 +2582,31 @@ export class BizAppsProductPricingWidgetComponent {
|
|
|
1439
2582
|
ok = false;
|
|
1440
2583
|
}
|
|
1441
2584
|
if (ok)
|
|
1442
|
-
hits.push(
|
|
2585
|
+
hits.push({ ...c, Name: name });
|
|
1443
2586
|
else
|
|
1444
|
-
skip.push(`${
|
|
2587
|
+
skip.push(`${name}: conditions not met`);
|
|
1445
2588
|
}
|
|
1446
|
-
hits.sort((a, b) => Number(b.Record.Priority || 0) - Number(a.Record.Priority || 0));
|
|
1447
2589
|
const win = hits[0];
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
2590
|
+
const tied = win ? hits.filter((h) => h.EffectivePriority === win.EffectivePriority) : [];
|
|
2591
|
+
if (win && tied.length > 1) {
|
|
2592
|
+
this.QuoteResult = {
|
|
2593
|
+
AmountText: 'Conflict',
|
|
2594
|
+
Why: `${tied.map((t) => t.Name).join(' and ')} both apply at priority ${win.Record.Priority}. Change a priority or narrow the conditions.`,
|
|
2595
|
+
Skipped: skip,
|
|
2596
|
+
};
|
|
2597
|
+
}
|
|
2598
|
+
else if (win) {
|
|
2599
|
+
const when = this.WhenSentence(win.Record);
|
|
2600
|
+
const fellBack = onList && !win.Record.PriceListID;
|
|
2601
|
+
this.QuoteResult = {
|
|
2602
|
+
AmountText: this.FormatCurrency(Number(win.Record.Amount) || 0),
|
|
2603
|
+
Why: `${win.Name}${fellBack ? ' · Standard price' : ''}${win.Inherited ? ' · Inherited from ' + this.categoryName(win.Record.ProductCategoryID) : ''}${when ? ' · ' + when : ''}`,
|
|
2604
|
+
Skipped: skip,
|
|
2605
|
+
};
|
|
2606
|
+
}
|
|
2607
|
+
else {
|
|
2608
|
+
this.QuoteResult = { AmountText: '—', Why: 'No price applies.', Skipped: skip };
|
|
2609
|
+
}
|
|
1455
2610
|
this.cdr?.markForCheck();
|
|
1456
2611
|
}
|
|
1457
2612
|
async loadInheritedPrices() {
|
|
@@ -1465,48 +2620,62 @@ export class BizAppsProductPricingWidgetComponent {
|
|
|
1465
2620
|
this.InheritedRecords = OrdersEngine.Instance.ProductPricesFor(null, chain).filter((p) => !p.ProductID && (!p.Status || p.Status === 'Active'));
|
|
1466
2621
|
}
|
|
1467
2622
|
static ɵfac = function BizAppsProductPricingWidgetComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BizAppsProductPricingWidgetComponent)(); };
|
|
1468
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BizAppsProductPricingWidgetComponent, selectors: [["bizapps-product-pricing-widget"]], inputs: { Product: "Product", EditMode: "EditMode", FormContext: "FormContext" }, outputs: { Navigate: "Navigate", PriceChanged: "PriceChanged", TierAdded: "TierAdded" }, standalone: false, features: [i0.ɵɵNgOnChangesFeature], decls:
|
|
2623
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BizAppsProductPricingWidgetComponent, selectors: [["bizapps-product-pricing-widget"]], inputs: { Product: "Product", EditMode: "EditMode", FormContext: "FormContext" }, outputs: { Navigate: "Navigate", PriceChanged: "PriceChanged", TierAdded: "TierAdded" }, standalone: false, features: [i0.ɵɵNgOnChangesFeature], decls: 29, vars: 12, consts: [[1, "mjo-pricing-widget-wrap"], [1, "mjo-toast", 3, "class"], [1, "mjo-pricing-card"], [1, "mjo-card-header"], [1, "mjo-card-title"], [1, "fa-solid", "fa-tags"], [1, "mjo-card-header-actions"], ["type", "button", "title", "See which price a sample customer receives", 1, "mjo-btn-subtle", 3, "click"], [1, "fa-solid", "fa-calculator"], ["type", "button", 1, "mjo-btn-subtle", 3, "title"], ["role", "tablist", "aria-label", "Pricing view", 1, "mjo-view-switch"], ["type", "button", "role", "tab", 3, "click"], ["type", "button", "role", "tab", 3, "active"], [1, "fa-solid", "fa-table-cells"], ["role", "tablist", "aria-label", "Price list", 1, "mjo-channel-bar"], [1, "mjo-bands"], [1, "mjo-toast"], [1, "mjo-toast-left"], [1, "mjo-toast-msg"], ["type", "button", 1, "mjo-toast-close", 3, "click"], [1, "fa-solid", "fa-xmark"], ["type", "button", 1, "mjo-btn-subtle", 3, "click", "title"], [1, "fa-solid", "fa-layer-group"], [1, "mjo-channel-label"], [1, "mjo-channel-list"], ["type", "button", "role", "tab", 1, "mjo-channel-tab", 3, "active", "title"], ["type", "button", "role", "tab", 1, "mjo-channel-tab", 3, "click", "title"], [1, "mjo-channel-count"], [1, "mjo-grid-wrap"], [3, "Navigate", "Params", "NewRecordValues", "Height", "AllowLoad", "ShowToolbar", "ShowNewButton", "ShowDeleteButton"], [1, "mjo-loading-state"], ["text", "Loading prices\u2026", "size", "small"], [1, "mjo-bands-lede"], ["Size", "compact", "Icon", "fa-solid fa-layer-group", "Title", "No revenue bands", 3, "Message"], [1, "mjo-band-table-wrap"], [1, "mjo-band-table"], [1, "num"], [3, "retired"], [1, "mjo-ladder-issues"], [1, "mjo-ladder-ok"], [1, "mjo-band-name"], ["aria-label", "Band name", 1, "mjo-input-text", 3, "ngModel", "disabled"], [1, "mjo-band-title"], [1, "mjo-band-range"], ["type", "number", "min", "0", "step", "0.5", "placeholder", "0", "aria-label", "Revenue from, in millions", 1, "mjo-input-num", "mjo-input-num--wide", 3, "ngModel", "disabled"], ["type", "number", "min", "0", "step", "0.5", "placeholder", "No limit", "aria-label", "Revenue to, in millions", 1, "mjo-input-num", "mjo-input-num--wide", 3, "ngModel", "disabled"], ["type", "text", "mjoCurrency", "", "aria-label", "Price", 1, "mjo-input-price", 3, "ngModel", "disabled"], [1, "mjo-band-amount"], [1, "mjo-offer-status"], [1, "mjo-band-actions"], ["aria-label", "Band name", 1, "mjo-input-text", 3, "ngModelChange", "blur", "ngModel", "disabled"], ["type", "number", "min", "0", "step", "0.5", "placeholder", "0", "aria-label", "Revenue from, in millions", 1, "mjo-input-num", "mjo-input-num--wide", 3, "ngModelChange", "blur", "ngModel", "disabled"], ["type", "number", "min", "0", "step", "0.5", "placeholder", "No limit", "aria-label", "Revenue to, in millions", 1, "mjo-input-num", "mjo-input-num--wide", 3, "ngModelChange", "blur", "ngModel", "disabled"], ["type", "text", "mjoCurrency", "", "aria-label", "Price", 1, "mjo-input-price", 3, "ngModelChange", "blur", "ngModel", "disabled"], ["type", "button", "title", "Make this band available to new order lines", 1, "mjo-btn-subtle", 3, "disabled"], ["type", "button", "title", "Stop offering this band on new order lines. Existing lines keep their price.", 1, "mjo-btn-subtle", 3, "disabled"], ["type", "button", "title", "Open price record", 1, "mjo-btn-subtle", "mjo-btn-icon", 3, "click"], [1, "fa-solid", "fa-arrow-up-right-from-square"], ["type", "button", "title", "Make this band available to new order lines", 1, "mjo-btn-subtle", 3, "click", "disabled"], ["type", "button", "title", "Stop offering this band on new order lines. Existing lines keep their price.", 1, "mjo-btn-subtle", 3, "click", "disabled"], [1, "fa-solid", "fa-triangle-exclamation"], [1, "mjo-ladder-issue"], [1, "fa-solid", "fa-circle-check"], [1, "mjo-band-setup"], [1, "mjo-quick-add-bar"], [1, "mjo-when-title"], [1, "mjo-quick-add-inputs"], [1, "mjo-field-group", "mjo-field-group--grow"], [1, "mjo-sub-label"], ["placeholder", "0, 2, 5, 10, 25, 50, 75, 100, 150, 250", 1, "mjo-input-text", "mjo-input-text--wide", 3, "ngModelChange", "ngModel", "disabled"], [1, "mjo-field-group"], ["type", "text", "mjoCurrency", "", 1, "mjo-input-price", 3, "ngModelChange", "ngModel", "disabled"], ["type", "date", 1, "mjo-input-text", 3, "ngModelChange", "ngModel", "disabled"], ["type", "button", 1, "mjo-btn-add", 3, "click", "disabled"], [1, "mjo-quick-add-hint"], ["size", "small", "logoColor", "currentColor", 1, "mjo-btn-add__loading", 3, "showText"], [1, "fa-solid", "fa-plus"], [1, "mjo-quick-add-label"], [1, "fa-solid", "fa-plus-circle"], ["type", "number", "min", "0", "step", "0.5", "placeholder", "0", 1, "mjo-input-num", "mjo-input-num--wide", 3, "ngModelChange", "ngModel", "disabled"], ["type", "number", "min", "0", "step", "0.5", "placeholder", "No limit", 1, "mjo-input-num", "mjo-input-num--wide", 3, "ngModelChange", "ngModel", "disabled"], ["Size", "compact", "Icon", "fa-solid fa-tags", "Title", "No prices", 3, "Message"], ["cdkDropList", "", 1, "mjo-price-list", 3, "cdkDropListDisabled"], ["cdkDropList", "", 1, "mjo-price-list", 3, "cdkDropListDropped", "cdkDropListDisabled"], ["cdkDrag", "", 1, "mjo-offer", 3, "cdkDragDisabled", "open", "selected", "inherited", "retired"], ["cdkDrag", "", 1, "mjo-offer", 3, "cdkDragDisabled"], ["type", "button", 1, "mjo-offer-h", 3, "click"], ["cdkDragHandle", "", "title", "Drag to change priority", 1, "mjo-offer-grip"], [1, "mjo-offer-amt"], [1, "mjo-offer-copy"], [1, "mjo-offer-name"], [1, "mjo-offer-when"], [1, "mjo-offer-status", 3, "retired"], [1, "mjo-offer-from", "inherited"], [1, "mjo-offer-body"], [1, "fa-solid", "fa-grip-vertical"], [1, "mjo-offer-body", 3, "click"], [1, "mjo-inherit-note"], ["type", "button", 1, "mjo-btn-subtle"], ["type", "button", 1, "mjo-btn-subtle", 3, "click"], [1, "mjo-when-read"], [1, "mjo-when-edit"], [1, "mjo-adv"], [1, "mjo-offer-fields"], [1, "mjo-input-text", 3, "ngModelChange", "blur", "ngModel"], ["type", "text", "mjoCurrency", "", 1, "mjo-input-price", 3, "ngModelChange", "blur", "ngModel"], [1, "mjo-input-select", 3, "ngModelChange", "change", "ngModel"], ["value", "PerUnit"], ["value", "Package"], ["value", "Volume"], ["value", "Flat"], [1, "mjo-offer-fields", "mjo-offer-lifecycle"], [1, "mjo-input-select", 3, "ngModelChange", "change", "ngModel", "disabled"], ["value", "Active"], ["value", "Inactive"], ["type", "button", "title", "Make this price available to new order lines", 1, "mjo-btn-subtle", 3, "disabled"], ["type", "button", "title", "Stop offering this price on new order lines. Existing lines keep their price.", 1, "mjo-btn-subtle", 3, "disabled"], ["type", "button", "title", "Make this price available to new order lines", 1, "mjo-btn-subtle", 3, "click", "disabled"], ["type", "button", "title", "Stop offering this price on new order lines. Existing lines keep their price.", 1, "mjo-btn-subtle", 3, "click", "disabled"], [1, "mjo-when-head"], [1, "mjo-when-allfields"], ["type", "checkbox", 3, "ngModelChange", "ngModel"], [3, "filterChange", "fields", "filter", "showSummary"], [1, "mjo-when-actions"], ["type", "button", 1, "mjo-btn-add", 3, "click"], [1, "mjo-adv-grid"], [1, "mjo-adv-read"], ["type", "number", 1, "mjo-input-num", 3, "ngModelChange", "blur", "ngModel"], ["value", "Standard"], ["value", "Setup"], ["value", "Recurring"], ["value", "Overage"], ["placeholder", "List price", 1, "mjo-input-text", 3, "ngModelChange", "ngModel"], ["type", "text", "mjoCurrency", "", 1, "mjo-input-price", 3, "ngModelChange", "ngModel"], [1, "mjo-quote-scrim", 3, "click"], ["role", "dialog", "aria-label", "Price simulation", 1, "mjo-quote-drawer"], [1, "mjo-quote-drawer-h"], ["type", "button", "aria-label", "Close", 1, "mjo-btn-subtle", "mjo-quote-close", 3, "click"], [1, "mjo-quote-lede"], [1, "mjo-quote-form"], [1, "mjo-quote-field"], [1, "mjo-input-select", 3, "ngModelChange", "ngModel"], ["value", "Member"], ["value", "Prospect"], ["type", "number", "min", "1", 1, "mjo-input-num", 3, "ngModelChange", "ngModel"], [1, "mjo-quote-field", "mjo-quote-field--wide"], ["type", "number", "min", "0", "step", "0.5", "placeholder", "Unknown", 1, "mjo-input-num", 3, "ngModelChange", "ngModel"], [1, "mjo-quote-result"], [1, "mjo-quote-amt"], [1, "mjo-quote-why"], [1, "mjo-quote-skipped-title"], [1, "mjo-quote-skipped"]], template: function BizAppsProductPricingWidgetComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1469
2624
|
i0.ɵɵelementStart(0, "div", 0);
|
|
1470
2625
|
i0.ɵɵconditionalCreate(1, BizAppsProductPricingWidgetComponent_Conditional_1_Template, 7, 5, "div", 1);
|
|
1471
2626
|
i0.ɵɵelementStart(2, "div", 2)(3, "div", 3)(4, "div", 4);
|
|
1472
2627
|
i0.ɵɵelement(5, "i", 5);
|
|
1473
2628
|
i0.ɵɵelementStart(6, "span");
|
|
1474
|
-
i0.ɵɵtext(7, "
|
|
2629
|
+
i0.ɵɵtext(7, "Pricing");
|
|
1475
2630
|
i0.ɵɵelementEnd()();
|
|
1476
2631
|
i0.ɵɵelementStart(8, "div", 6)(9, "button", 7);
|
|
1477
2632
|
i0.ɵɵlistener("click", function BizAppsProductPricingWidgetComponent_Template_button_click_9_listener() { return ctx.OpenQuote(); });
|
|
1478
2633
|
i0.ɵɵelement(10, "i", 8);
|
|
1479
2634
|
i0.ɵɵelementStart(11, "span");
|
|
1480
|
-
i0.ɵɵtext(12, "
|
|
2635
|
+
i0.ɵɵtext(12, "Simulate price");
|
|
2636
|
+
i0.ɵɵelementEnd()();
|
|
2637
|
+
i0.ɵɵconditionalCreate(13, BizAppsProductPricingWidgetComponent_Conditional_13_Template, 4, 4, "button", 9);
|
|
2638
|
+
i0.ɵɵelementStart(14, "div", 10)(15, "button", 11);
|
|
2639
|
+
i0.ɵɵlistener("click", function BizAppsProductPricingWidgetComponent_Template_button_click_15_listener() { return ctx.SetView("cards"); });
|
|
2640
|
+
i0.ɵɵelement(16, "i", 5);
|
|
2641
|
+
i0.ɵɵelementStart(17, "span");
|
|
2642
|
+
i0.ɵɵtext(18, "Prices");
|
|
1481
2643
|
i0.ɵɵelementEnd()();
|
|
1482
|
-
i0.ɵɵ
|
|
1483
|
-
i0.ɵɵ
|
|
1484
|
-
i0.ɵɵ
|
|
1485
|
-
i0.ɵɵ
|
|
1486
|
-
i0.ɵɵ
|
|
1487
|
-
i0.ɵɵ
|
|
1488
|
-
i0.ɵɵ
|
|
1489
|
-
i0.ɵɵconditionalCreate(
|
|
2644
|
+
i0.ɵɵconditionalCreate(19, BizAppsProductPricingWidgetComponent_Conditional_19_Template, 4, 3, "button", 12);
|
|
2645
|
+
i0.ɵɵelementStart(20, "button", 11);
|
|
2646
|
+
i0.ɵɵlistener("click", function BizAppsProductPricingWidgetComponent_Template_button_click_20_listener() { return ctx.SetView("grid"); });
|
|
2647
|
+
i0.ɵɵelement(21, "i", 13);
|
|
2648
|
+
i0.ɵɵelementStart(22, "span");
|
|
2649
|
+
i0.ɵɵtext(23, "Grid");
|
|
2650
|
+
i0.ɵɵelementEnd()()()()();
|
|
2651
|
+
i0.ɵɵconditionalCreate(24, BizAppsProductPricingWidgetComponent_Conditional_24_Template, 6, 0, "div", 14);
|
|
2652
|
+
i0.ɵɵconditionalCreate(25, BizAppsProductPricingWidgetComponent_Conditional_25_Template, 1, 1)(26, BizAppsProductPricingWidgetComponent_Conditional_26_Template, 3, 1, "div", 15)(27, BizAppsProductPricingWidgetComponent_Conditional_27_Template, 4, 2);
|
|
1490
2653
|
i0.ɵɵelementEnd()();
|
|
1491
|
-
i0.ɵɵconditionalCreate(
|
|
2654
|
+
i0.ɵɵconditionalCreate(28, BizAppsProductPricingWidgetComponent_Conditional_28_Template, 35, 7);
|
|
1492
2655
|
} if (rf & 2) {
|
|
1493
2656
|
i0.ɵɵadvance();
|
|
1494
2657
|
i0.ɵɵconditional(ctx.ActiveToast ? 1 : -1);
|
|
1495
|
-
i0.ɵɵadvance(
|
|
1496
|
-
i0.ɵɵ
|
|
2658
|
+
i0.ɵɵadvance(12);
|
|
2659
|
+
i0.ɵɵconditional(ctx.RetiredCount > 0 ? 13 : -1);
|
|
1497
2660
|
i0.ɵɵadvance(2);
|
|
1498
|
-
i0.ɵɵ
|
|
2661
|
+
i0.ɵɵclassProp("active", ctx.ViewMode === "cards");
|
|
2662
|
+
i0.ɵɵattribute("aria-selected", ctx.ViewMode === "cards");
|
|
2663
|
+
i0.ɵɵadvance(4);
|
|
2664
|
+
i0.ɵɵconditional(ctx.BandRows.length > 0 || ctx.EditMode ? 19 : -1);
|
|
1499
2665
|
i0.ɵɵadvance();
|
|
1500
|
-
i0.ɵɵ
|
|
2666
|
+
i0.ɵɵclassProp("active", ctx.ViewMode === "grid");
|
|
2667
|
+
i0.ɵɵattribute("aria-selected", ctx.ViewMode === "grid");
|
|
2668
|
+
i0.ɵɵadvance(4);
|
|
2669
|
+
i0.ɵɵconditional(ctx.ShowChannelBar ? 24 : -1);
|
|
1501
2670
|
i0.ɵɵadvance();
|
|
1502
|
-
i0.ɵɵconditional(ctx.
|
|
1503
|
-
i0.ɵɵadvance(
|
|
1504
|
-
i0.ɵɵconditional(ctx.QuoteDrawerOpen ?
|
|
1505
|
-
} }, dependencies: [i1.NgSelectOption, i1.ɵNgSelectMultipleOption, i1.DefaultValueAccessor, i1.NumberValueAccessor, i1.SelectControlValueAccessor, i1.NgControlStatus, i1.MinValidator, i1.NgModel, i2.CdkDropList, i2.CdkDrag, i2.CdkDragHandle, i3.ExplorerEntityDataGridComponent, i4.MJEmptyStateComponent, i5.LoadingComponent, i6.FilterBuilderComponent], styles: [".mjo-pricing-widget-wrap[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n width: 100%;\n position: relative;\n}\n\n\n\n.mjo-toast[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 10px 16px;\n border-radius: var(--mj-radius-md, 8px);\n font-size: 13px;\n font-weight: 500;\n animation: _ngcontent-%COMP%_mjo-toast-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n border: 1px solid transparent;\n}\n\n@keyframes _ngcontent-%COMP%_mjo-toast-in {\n from { opacity: 0; transform: translateY(-6px); }\n to { opacity: 1; transform: translateY(0); }\n}\n\n.mjo-toast--success[_ngcontent-%COMP%] {\n background: rgba(22, 163, 74, 0.15);\n border-color: rgba(22, 163, 74, 0.3);\n color: #22c55e;\n}\n\n.mjo-toast--error[_ngcontent-%COMP%] {\n background: rgba(239, 68, 68, 0.15);\n border-color: rgba(239, 68, 68, 0.3);\n color: #f87171;\n}\n\n.mjo-toast--info[_ngcontent-%COMP%] {\n background: rgba(2, 132, 199, 0.15);\n border-color: rgba(2, 132, 199, 0.3);\n color: #38bdf8;\n}\n\n.mjo-toast-left[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 10px;\n}\n\n.mjo-toast-left[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 16px;\n}\n\n.mjo-toast-msg[_ngcontent-%COMP%] {\n line-height: 1.4;\n}\n\n.mjo-toast-close[_ngcontent-%COMP%] {\n background: transparent;\n border: none;\n color: currentColor;\n opacity: 0.7;\n cursor: pointer;\n padding: 4px 8px;\n border-radius: 4px;\n font-size: 13px;\n}\n\n.mjo-toast-close[_ngcontent-%COMP%]:hover {\n opacity: 1;\n}\n\n.mjo-pricing-card[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-card, rgba(255, 255, 255, 0.05));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n border-radius: var(--mj-radius-lg, 10px);\n overflow: hidden;\n}\n\n.mjo-card-header-actions[_ngcontent-%COMP%] {\n display: flex;\n gap: 8px;\n align-items: center;\n}\n\n.mjo-card-header[_ngcontent-%COMP%] {\n padding: 12px 16px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.1));\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n}\n\n.mjo-card-title[_ngcontent-%COMP%] {\n font-size: 13.5px;\n font-weight: 700;\n color: var(--mj-text-primary, #0f172a);\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.mjo-card-title[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-base-pill[_ngcontent-%COMP%] {\n font-size: 12px;\n color: var(--mj-text-muted, #64748b);\n}\n\n.mjo-base-pill[_ngcontent-%COMP%] strong[_ngcontent-%COMP%] {\n font-family: var(--mj-font-family-mono);\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-pricing-fields[_ngcontent-%COMP%] {\n padding: 16px;\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));\n gap: 16px;\n}\n\n\n\n.mjo-channel-bar[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.1));\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n padding: 0 12px;\n flex-wrap: wrap;\n gap: 8px;\n}\n\n.mjo-channel-list[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 4px;\n overflow-x: auto;\n}\n\n.mjo-channel-tab[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n padding: 12px 14px;\n background: transparent;\n border: none;\n border-bottom: 2px solid transparent;\n font-size: 12.5px;\n font-weight: 600;\n color: var(--mj-text-muted, #94a3b8);\n cursor: pointer;\n transition: all 0.15s ease;\n white-space: nowrap;\n}\n\n.mjo-channel-tab[_ngcontent-%COMP%]:hover {\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-channel-tab.active[_ngcontent-%COMP%] {\n color: var(--mj-brand-primary, #0284c7);\n border-bottom-color: var(--mj-brand-primary, #0284c7);\n background: var(--mj-bg-surface-card, rgba(255, 255, 255, 0.05));\n}\n\n.mjo-channel-count[_ngcontent-%COMP%] {\n font-size: 10px;\n font-weight: 700;\n padding: 2px 6px;\n border-radius: 9999px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.15));\n color: var(--mj-text-secondary, #cbd5e1);\n}\n\n.mjo-channel-tab.active[_ngcontent-%COMP%] .mjo-channel-count[_ngcontent-%COMP%] {\n background: rgba(2, 132, 199, 0.18);\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-channel-actions[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.mjo-btn-subtle[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 6px 12px;\n border-radius: 6px;\n font-size: 11.5px;\n font-weight: 600;\n color: var(--mj-text-primary, #0f172a);\n background: var(--mj-bg-surface-card, rgba(255, 255, 255, 0.05));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n cursor: pointer;\n transition: all 0.15s ease;\n}\n\n.mjo-btn-subtle[_ngcontent-%COMP%]:hover {\n border-color: var(--mj-brand-primary, #0284c7);\n color: var(--mj-brand-primary, #0284c7);\n}\n\n\n\n.mjo-ladder-table-wrap[_ngcontent-%COMP%] {\n overflow-x: auto;\n width: 100%;\n}\n\n.mjo-ladder-table[_ngcontent-%COMP%] {\n width: 100%;\n border-collapse: collapse;\n font-size: 13px;\n text-align: left;\n}\n\n.mjo-ladder-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n padding: 10px 14px;\n font-size: 11px;\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--mj-text-muted, #64748b);\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.05));\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n}\n\n.mjo-ladder-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n padding: 11px 14px;\n border-bottom: 1px solid var(--mj-border-subtle, rgba(255, 255, 255, 0.06));\n color: var(--mj-text-primary, #0f172a);\n vertical-align: middle;\n}\n\n.mjo-ladder-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-hover, rgba(255, 255, 255, 0.03));\n}\n\n.mjo-tier-title[_ngcontent-%COMP%] {\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-range-pill[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n font-family: var(--mj-font-family-mono);\n font-weight: 700;\n font-size: 12px;\n padding: 3px 8px;\n border-radius: 6px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.12));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n}\n\n.mjo-price-input[_ngcontent-%COMP%] {\n font-family: var(--mj-font-family-mono);\n font-size: 13.5px;\n font-weight: 700;\n color: var(--mj-text-primary, #0f172a);\n background: var(--mj-bg-surface, rgba(0, 0, 0, 0.2));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.15));\n border-radius: 6px;\n padding: 5px 8px;\n width: 100px;\n transition: all 0.15s ease;\n}\n\n.mjo-price-input[_ngcontent-%COMP%]:focus {\n outline: none;\n border-color: var(--mj-brand-primary, #0284c7);\n box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25);\n}\n\n.mjo-price-val[_ngcontent-%COMP%] {\n font-family: var(--mj-font-family-mono);\n font-size: 13px;\n font-weight: 700;\n color: var(--mj-text-primary, #0f172a);\n display: inline-block;\n padding: 4px 0;\n}\n\n.mjo-disc-tag[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n font-size: 11px;\n font-weight: 700;\n padding: 2px 7px;\n border-radius: 4px;\n background: rgba(22, 163, 74, 0.15);\n color: #22c55e;\n}\n\n.mjo-standard-tag[_ngcontent-%COMP%] {\n font-size: 11px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-savings-val[_ngcontent-%COMP%] {\n color: #22c55e;\n font-family: var(--mj-font-family-mono);\n font-size: 12.5px;\n}\n\n.mjo-model-tag[_ngcontent-%COMP%] {\n font-size: 11px;\n font-weight: 600;\n padding: 2px 7px;\n border-radius: 4px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.1));\n color: var(--mj-text-secondary, #cbd5e1);\n}\n\n.mjo-date-tag[_ngcontent-%COMP%] {\n font-size: 11.5px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-th-num[_ngcontent-%COMP%], .mjo-td-num[_ngcontent-%COMP%] { text-align: left; }\n.mjo-th-actions[_ngcontent-%COMP%], .mjo-td-actions[_ngcontent-%COMP%] { text-align: right; }\n\n.mjo-action-btn[_ngcontent-%COMP%] {\n width: 28px;\n height: 28px;\n border-radius: 6px;\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n background: var(--mj-bg-surface, rgba(255, 255, 255, 0.05));\n color: var(--mj-text-muted, #94a3b8);\n cursor: pointer;\n font-size: 11px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n transition: all 0.15s ease;\n margin-left: 4px;\n}\n\n.mjo-action-btn[_ngcontent-%COMP%]:hover {\n color: var(--mj-brand-primary, #0284c7);\n border-color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-action-btn--delete[_ngcontent-%COMP%]:hover {\n color: #ef4444;\n border-color: #ef4444;\n}\n\n\n\n.mjo-quick-add-bar[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 12px 16px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.1));\n border-top: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n gap: 12px;\n flex-wrap: wrap;\n}\n\n.mjo-quick-add-inputs[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 10px;\n flex-wrap: wrap;\n}\n\n.mjo-quick-add-label[_ngcontent-%COMP%] {\n font-size: 12.5px;\n font-weight: 700;\n color: var(--mj-brand-primary, #0284c7);\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.mjo-quick-add-hint[_ngcontent-%COMP%] {\n font-size: 11.5px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-field-group[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 4px;\n}\n\n.mjo-sub-label[_ngcontent-%COMP%] {\n font-size: 11.5px;\n font-weight: 600;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-input-num[_ngcontent-%COMP%] {\n width: 65px;\n padding: 5px 8px;\n font-size: 12.5px;\n font-family: var(--mj-font-family-mono);\n font-weight: 700;\n text-align: center;\n border-radius: 6px;\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.15));\n background: var(--mj-bg-surface, rgba(0, 0, 0, 0.2));\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-input-price[_ngcontent-%COMP%] {\n width: 85px;\n padding: 5px 8px;\n font-size: 12.5px;\n font-family: var(--mj-font-family-mono);\n font-weight: 700;\n border-radius: 6px;\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.15));\n background: var(--mj-bg-surface, rgba(0, 0, 0, 0.2));\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-input-select[_ngcontent-%COMP%] {\n padding: 5px 8px;\n font-size: 12px;\n font-weight: 600;\n border-radius: 6px;\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.15));\n background: var(--mj-bg-surface, rgba(0, 0, 0, 0.2));\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-btn-add[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 6px 14px;\n border-radius: 6px;\n font-size: 12px;\n font-weight: 700;\n color: #ffffff;\n background: #0284c7;\n border: none;\n cursor: pointer;\n transition: all 0.15s ease;\n}\n\n.mjo-btn-add[_ngcontent-%COMP%]:hover {\n background: #0369a1;\n}\n\n.mjo-btn-add[_ngcontent-%COMP%]:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n\n\n.mjo-btn-add__loading[_ngcontent-%COMP%] {\n width: auto;\n height: auto;\n flex: none;\n}\n\n.mjo-guard-badge[_ngcontent-%COMP%] {\n font-size: 11.5px;\n color: #22c55e;\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n\n\n.mjo-step-curve-wrap[_ngcontent-%COMP%] {\n padding: 14px 18px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.mjo-step-curve-title[_ngcontent-%COMP%] {\n font-size: 11px;\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--mj-text-muted, #94a3b8);\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.mjo-step-curve-title[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-step-curve-bars[_ngcontent-%COMP%] {\n display: flex;\n align-items: flex-end;\n gap: 12px;\n height: 80px;\n padding-top: 8px;\n}\n\n.mjo-step-col[_ngcontent-%COMP%] {\n flex: 1;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 4px;\n height: 100%;\n justify-content: flex-end;\n}\n\n.mjo-step-track[_ngcontent-%COMP%] {\n width: 100%;\n max-width: 60px;\n height: 100%;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.1));\n border-radius: 4px 4px 0 0;\n display: flex;\n align-items: flex-end;\n}\n\n.mjo-step-fill[_ngcontent-%COMP%] {\n width: 100%;\n border-radius: 4px 4px 0 0;\n background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);\n min-height: 8px;\n transition: height 0.3s ease;\n}\n\n.mjo-step-val[_ngcontent-%COMP%] {\n font-size: 11px;\n font-weight: 700;\n font-family: var(--mj-font-family-mono);\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-step-label[_ngcontent-%COMP%] {\n font-size: 10px;\n font-family: var(--mj-font-family-mono);\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-loading-state[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 10px;\n padding: 30px;\n font-size: 13px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-grid-wrap[_ngcontent-%COMP%] {\n padding: 0;\n min-height: 400px;\n height: 420px;\n}\n\n.mjo-price-list[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding: 12px 14px 16px;\n}\n\n.mjo-offer[_ngcontent-%COMP%] {\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n border-radius: 12px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.12));\n overflow: hidden;\n}\n\n.mjo-offer.selected[_ngcontent-%COMP%] {\n border-color: var(--mj-brand-primary, #38bdf8);\n box-shadow: inset 0 0 0 1px var(--mj-brand-primary, #38bdf8);\n}\n\n.mjo-offer-grip[_ngcontent-%COMP%] {\n color: var(--mj-text-muted, #94a3b8);\n cursor: grab;\n padding: 0 4px 0 0;\n display: inline-flex;\n}\n\n.mjo-offer-h[_ngcontent-%COMP%] {\n width: 100%;\n display: grid;\n grid-template-columns: 108px 1fr auto;\n gap: 14px;\n align-items: center;\n padding: 12px 14px;\n border: 0;\n background: transparent;\n color: inherit;\n text-align: left;\n cursor: pointer;\n}\n\n.mjo-offer-h[_ngcontent-%COMP%]:has(.mjo-offer-grip) {\n grid-template-columns: 18px 108px 1fr auto;\n}\n\n.mjo-offer-h[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-brand-primary, #0076b6) 8%, transparent);\n}\n\n.mjo-offer-amt[_ngcontent-%COMP%] {\n font-variant-numeric: tabular-nums;\n font-weight: 700;\n font-size: 18px;\n letter-spacing: -0.02em;\n text-align: left;\n}\n\n.mjo-offer-copy[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 2px;\n min-width: 0;\n}\n\n.mjo-offer-name[_ngcontent-%COMP%] {\n font-weight: 700;\n font-size: 14px;\n}\n\n.mjo-offer-when[_ngcontent-%COMP%] {\n font-size: 12.5px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-offer-from[_ngcontent-%COMP%] {\n font-size: 11px;\n font-weight: 700;\n color: var(--mj-status-success-text, #86efac);\n white-space: nowrap;\n}\n\n.mjo-offer-body[_ngcontent-%COMP%] {\n padding: 0 14px 14px;\n border-top: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n}\n\n.mjo-when-read[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 12px;\n padding-top: 12px;\n font-size: 13px;\n color: var(--mj-text-secondary, #cbd5e1);\n}\n\n.mjo-when-edit[_ngcontent-%COMP%] {\n padding-top: 12px;\n}\n\n.mjo-when-actions[_ngcontent-%COMP%] {\n display: flex;\n justify-content: flex-end;\n gap: 8px;\n margin-top: 10px;\n}\n\n.mjo-quote-scrim[_ngcontent-%COMP%] {\n position: fixed;\n inset: 0;\n background: rgba(2, 6, 23, 0.55);\n z-index: 40;\n}\n\n.mjo-quote-drawer[_ngcontent-%COMP%] {\n position: fixed;\n top: 0;\n right: 0;\n height: 100vh;\n width: min(420px, 100vw);\n background: var(--mj-bg-page, #0f172a);\n border-left: 1px solid var(--mj-border-default, #334155);\n z-index: 50;\n padding: 20px 18px;\n box-shadow: -16px 0 40px rgba(0, 0, 0, 0.35);\n}\n\n.mjo-quote-drawer-h[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 8px;\n}\n\n.mjo-quote-drawer[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] {\n margin: 0;\n font-size: 16px;\n}\n\n.mjo-quote-lede[_ngcontent-%COMP%] {\n color: var(--mj-text-muted, #94a3b8);\n font-size: 12.5px;\n margin: 0 0 16px;\n}\n\n.mjo-quote-amt[_ngcontent-%COMP%] {\n font-size: 28px;\n font-weight: 700;\n letter-spacing: -0.02em;\n margin: 16px 0 6px;\n}\n\n.mjo-quote-why[_ngcontent-%COMP%] {\n font-size: 13px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-offer.inherited[_ngcontent-%COMP%] {\n border-style: dashed;\n}\n\n.mjo-offer-from.inherited[_ngcontent-%COMP%] {\n color: #a78bfa;\n}\n\n.mjo-offer-fields[_ngcontent-%COMP%], \n.mjo-adv-grid[_ngcontent-%COMP%] {\n display: flex;\n flex-wrap: wrap;\n gap: 10px;\n padding-top: 12px;\n}\n\n.mjo-input-text[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.2));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n color: inherit;\n border-radius: 8px;\n padding: 6px 8px;\n min-width: 120px;\n}\n\n.mjo-when-title[_ngcontent-%COMP%] {\n font-size: 11px;\n font-weight: 700;\n letter-spacing: 0.05em;\n text-transform: uppercase;\n color: var(--mj-text-muted, #94a3b8);\n margin-bottom: 8px;\n}\n\n.mjo-when-rule[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: 1fr 1fr 110px 1fr;\n gap: 6px;\n}\n\n.mjo-when-rule[_ngcontent-%COMP%] select[_ngcontent-%COMP%], \n.mjo-when-rule[_ngcontent-%COMP%] input[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.2));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n color: inherit;\n border-radius: 8px;\n padding: 6px 8px;\n}\n\n.mjo-inherit-note[_ngcontent-%COMP%] {\n font-size: 12.5px;\n color: var(--mj-text-muted, #94a3b8);\n margin: 12px 0 0;\n}\n\n.mjo-adv[_ngcontent-%COMP%] {\n margin-top: 10px;\n font-size: 12px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-adv-read[_ngcontent-%COMP%] {\n display: flex;\n flex-wrap: wrap;\n gap: 10px 16px;\n padding-top: 4px;\n font-size: 13px;\n color: var(--mj-text-secondary, #cbd5e1);\n}"] });
|
|
2671
|
+
i0.ɵɵconditional(ctx.ViewMode === "grid" ? 25 : ctx.ViewMode === "bands" ? 26 : 27);
|
|
2672
|
+
i0.ɵɵadvance(3);
|
|
2673
|
+
i0.ɵɵconditional(ctx.QuoteDrawerOpen ? 28 : -1);
|
|
2674
|
+
} }, dependencies: [i1.NgSelectOption, i1.ɵNgSelectMultipleOption, i1.DefaultValueAccessor, i1.NumberValueAccessor, i1.CheckboxControlValueAccessor, i1.SelectControlValueAccessor, i1.NgControlStatus, i1.MinValidator, i1.NgModel, i2.CdkDropList, i2.CdkDrag, i2.CdkDragHandle, i3.ExplorerEntityDataGridComponent, i4.MJEmptyStateComponent, i5.LoadingComponent, i6.FilterBuilderComponent, i7.MJOCurrencyInputDirective], styles: [".mjo-pricing-widget-wrap[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n width: 100%;\n position: relative;\n}\n\n\n\n.mjo-toast[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 10px 16px;\n border-radius: var(--mj-radius-md, 8px);\n font-size: 13px;\n font-weight: 500;\n animation: _ngcontent-%COMP%_mjo-toast-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n border: 1px solid transparent;\n}\n\n@keyframes _ngcontent-%COMP%_mjo-toast-in {\n from { opacity: 0; transform: translateY(-6px); }\n to { opacity: 1; transform: translateY(0); }\n}\n\n.mjo-toast--success[_ngcontent-%COMP%] {\n background: rgba(22, 163, 74, 0.15);\n border-color: rgba(22, 163, 74, 0.3);\n color: #22c55e;\n}\n\n.mjo-toast--error[_ngcontent-%COMP%] {\n background: rgba(239, 68, 68, 0.15);\n border-color: rgba(239, 68, 68, 0.3);\n color: #f87171;\n}\n\n.mjo-toast--info[_ngcontent-%COMP%] {\n background: rgba(2, 132, 199, 0.15);\n border-color: rgba(2, 132, 199, 0.3);\n color: #38bdf8;\n}\n\n.mjo-toast-left[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 10px;\n}\n\n.mjo-toast-left[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 16px;\n}\n\n.mjo-toast-msg[_ngcontent-%COMP%] {\n line-height: 1.4;\n}\n\n.mjo-toast-close[_ngcontent-%COMP%] {\n background: transparent;\n border: none;\n color: currentColor;\n opacity: 0.7;\n cursor: pointer;\n padding: 4px 8px;\n border-radius: 4px;\n font-size: 13px;\n}\n\n.mjo-toast-close[_ngcontent-%COMP%]:hover {\n opacity: 1;\n}\n\n.mjo-pricing-card[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-card, rgba(255, 255, 255, 0.05));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n border-radius: var(--mj-radius-lg, 10px);\n overflow: hidden;\n}\n\n.mjo-card-header-actions[_ngcontent-%COMP%] {\n display: flex;\n gap: 8px;\n align-items: center;\n}\n\n.mjo-card-header[_ngcontent-%COMP%] {\n padding: 12px 16px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.1));\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n}\n\n.mjo-card-title[_ngcontent-%COMP%] {\n font-size: 13.5px;\n font-weight: 700;\n color: var(--mj-text-primary, #0f172a);\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.mjo-card-title[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-base-pill[_ngcontent-%COMP%] {\n font-size: 12px;\n color: var(--mj-text-muted, #64748b);\n}\n\n.mjo-base-pill[_ngcontent-%COMP%] strong[_ngcontent-%COMP%] {\n font-family: var(--mj-font-family-mono);\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-pricing-fields[_ngcontent-%COMP%] {\n padding: 16px;\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));\n gap: 16px;\n}\n\n\n\n.mjo-channel-bar[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.1));\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n padding: 0 12px;\n flex-wrap: wrap;\n gap: 8px;\n}\n\n.mjo-channel-label[_ngcontent-%COMP%] {\n font-size: 11.5px;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--mj-text-muted, #94a3b8);\n padding-right: 4px;\n}\n\n.mjo-channel-list[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 4px;\n overflow-x: auto;\n}\n\n.mjo-channel-tab[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n padding: 12px 14px;\n background: transparent;\n border: none;\n border-bottom: 2px solid transparent;\n font-size: 12.5px;\n font-weight: 600;\n color: var(--mj-text-muted, #94a3b8);\n cursor: pointer;\n transition: all 0.15s ease;\n white-space: nowrap;\n}\n\n.mjo-channel-tab[_ngcontent-%COMP%]:hover {\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-channel-tab.active[_ngcontent-%COMP%] {\n color: var(--mj-brand-primary, #0284c7);\n border-bottom-color: var(--mj-brand-primary, #0284c7);\n background: var(--mj-bg-surface-card, rgba(255, 255, 255, 0.05));\n}\n\n.mjo-channel-count[_ngcontent-%COMP%] {\n font-size: 10px;\n font-weight: 700;\n padding: 2px 6px;\n border-radius: 9999px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.15));\n color: var(--mj-text-secondary, #cbd5e1);\n}\n\n.mjo-channel-tab.active[_ngcontent-%COMP%] .mjo-channel-count[_ngcontent-%COMP%] {\n background: rgba(2, 132, 199, 0.18);\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-channel-actions[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.mjo-btn-subtle[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 6px 12px;\n border-radius: 6px;\n font-size: 11.5px;\n font-weight: 600;\n color: var(--mj-text-primary, #0f172a);\n background: var(--mj-bg-surface-card, rgba(255, 255, 255, 0.05));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n cursor: pointer;\n transition: all 0.15s ease;\n}\n\n.mjo-btn-subtle[_ngcontent-%COMP%]:hover {\n border-color: var(--mj-brand-primary, #0284c7);\n color: var(--mj-brand-primary, #0284c7);\n}\n\n\n\n.mjo-ladder-table-wrap[_ngcontent-%COMP%] {\n overflow-x: auto;\n width: 100%;\n}\n\n.mjo-ladder-table[_ngcontent-%COMP%] {\n width: 100%;\n border-collapse: collapse;\n font-size: 13px;\n text-align: left;\n}\n\n.mjo-ladder-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n padding: 10px 14px;\n font-size: 11px;\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--mj-text-muted, #64748b);\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.05));\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n}\n\n.mjo-ladder-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n padding: 11px 14px;\n border-bottom: 1px solid var(--mj-border-subtle, rgba(255, 255, 255, 0.06));\n color: var(--mj-text-primary, #0f172a);\n vertical-align: middle;\n}\n\n.mjo-ladder-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-hover, rgba(255, 255, 255, 0.03));\n}\n\n.mjo-tier-title[_ngcontent-%COMP%] {\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-range-pill[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n font-family: var(--mj-font-family-mono);\n font-weight: 700;\n font-size: 12px;\n padding: 3px 8px;\n border-radius: 6px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.12));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n}\n\n.mjo-price-input[_ngcontent-%COMP%] {\n font-family: var(--mj-font-family-mono);\n font-size: 13.5px;\n font-weight: 700;\n color: var(--mj-text-primary, #0f172a);\n background: var(--mj-bg-surface, rgba(0, 0, 0, 0.2));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.15));\n border-radius: 6px;\n padding: 5px 8px;\n width: 100px;\n transition: all 0.15s ease;\n}\n\n.mjo-price-input[_ngcontent-%COMP%]:focus {\n outline: none;\n border-color: var(--mj-brand-primary, #0284c7);\n box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25);\n}\n\n.mjo-price-val[_ngcontent-%COMP%] {\n font-family: var(--mj-font-family-mono);\n font-size: 13px;\n font-weight: 700;\n color: var(--mj-text-primary, #0f172a);\n display: inline-block;\n padding: 4px 0;\n}\n\n.mjo-disc-tag[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n font-size: 11px;\n font-weight: 700;\n padding: 2px 7px;\n border-radius: 4px;\n background: rgba(22, 163, 74, 0.15);\n color: #22c55e;\n}\n\n.mjo-standard-tag[_ngcontent-%COMP%] {\n font-size: 11px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-savings-val[_ngcontent-%COMP%] {\n color: #22c55e;\n font-family: var(--mj-font-family-mono);\n font-size: 12.5px;\n}\n\n.mjo-model-tag[_ngcontent-%COMP%] {\n font-size: 11px;\n font-weight: 600;\n padding: 2px 7px;\n border-radius: 4px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.1));\n color: var(--mj-text-secondary, #cbd5e1);\n}\n\n.mjo-date-tag[_ngcontent-%COMP%] {\n font-size: 11.5px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-th-num[_ngcontent-%COMP%], .mjo-td-num[_ngcontent-%COMP%] { text-align: left; }\n.mjo-th-actions[_ngcontent-%COMP%], .mjo-td-actions[_ngcontent-%COMP%] { text-align: right; }\n\n.mjo-action-btn[_ngcontent-%COMP%] {\n width: 28px;\n height: 28px;\n border-radius: 6px;\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n background: var(--mj-bg-surface, rgba(255, 255, 255, 0.05));\n color: var(--mj-text-muted, #94a3b8);\n cursor: pointer;\n font-size: 11px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n transition: all 0.15s ease;\n margin-left: 4px;\n}\n\n.mjo-action-btn[_ngcontent-%COMP%]:hover {\n color: var(--mj-brand-primary, #0284c7);\n border-color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-action-btn--delete[_ngcontent-%COMP%]:hover {\n color: #ef4444;\n border-color: #ef4444;\n}\n\n\n\n.mjo-quick-add-bar[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 12px 16px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.1));\n border-top: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n gap: 12px;\n flex-wrap: wrap;\n}\n\n.mjo-quick-add-inputs[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 10px;\n flex-wrap: wrap;\n}\n\n.mjo-quick-add-label[_ngcontent-%COMP%] {\n font-size: 12.5px;\n font-weight: 700;\n color: var(--mj-brand-primary, #0284c7);\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.mjo-quick-add-hint[_ngcontent-%COMP%] {\n font-size: 11.5px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-field-group[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 4px;\n}\n\n.mjo-sub-label[_ngcontent-%COMP%] {\n font-size: 11.5px;\n font-weight: 600;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-input-num[_ngcontent-%COMP%] {\n width: 65px;\n padding: 5px 8px;\n font-size: 12.5px;\n font-family: var(--mj-font-family-mono);\n font-weight: 700;\n text-align: center;\n border-radius: 6px;\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.15));\n background: var(--mj-bg-surface, rgba(0, 0, 0, 0.2));\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-input-price[_ngcontent-%COMP%] {\n width: 110px;\n padding: 5px 8px;\n font-size: 12.5px;\n font-family: var(--mj-font-family-mono);\n font-weight: 700;\n text-align: right;\n border-radius: 6px;\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.15));\n background: var(--mj-bg-surface, rgba(0, 0, 0, 0.2));\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-input-select[_ngcontent-%COMP%] {\n padding: 5px 8px;\n font-size: 12px;\n font-weight: 600;\n border-radius: 6px;\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.15));\n background: var(--mj-bg-surface, rgba(0, 0, 0, 0.2));\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-btn-add[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 6px 14px;\n border-radius: 6px;\n font-size: 12px;\n font-weight: 700;\n color: #ffffff;\n background: #0284c7;\n border: none;\n cursor: pointer;\n transition: all 0.15s ease;\n}\n\n.mjo-btn-add[_ngcontent-%COMP%]:hover {\n background: #0369a1;\n}\n\n.mjo-btn-add[_ngcontent-%COMP%]:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n\n\n.mjo-btn-add__loading[_ngcontent-%COMP%] {\n width: auto;\n height: auto;\n flex: none;\n}\n\n.mjo-guard-badge[_ngcontent-%COMP%] {\n font-size: 11.5px;\n color: #22c55e;\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n\n\n.mjo-step-curve-wrap[_ngcontent-%COMP%] {\n padding: 14px 18px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.mjo-step-curve-title[_ngcontent-%COMP%] {\n font-size: 11px;\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--mj-text-muted, #94a3b8);\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.mjo-step-curve-title[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-step-curve-bars[_ngcontent-%COMP%] {\n display: flex;\n align-items: flex-end;\n gap: 12px;\n height: 80px;\n padding-top: 8px;\n}\n\n.mjo-step-col[_ngcontent-%COMP%] {\n flex: 1;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 4px;\n height: 100%;\n justify-content: flex-end;\n}\n\n.mjo-step-track[_ngcontent-%COMP%] {\n width: 100%;\n max-width: 60px;\n height: 100%;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.1));\n border-radius: 4px 4px 0 0;\n display: flex;\n align-items: flex-end;\n}\n\n.mjo-step-fill[_ngcontent-%COMP%] {\n width: 100%;\n border-radius: 4px 4px 0 0;\n background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);\n min-height: 8px;\n transition: height 0.3s ease;\n}\n\n.mjo-step-val[_ngcontent-%COMP%] {\n font-size: 11px;\n font-weight: 700;\n font-family: var(--mj-font-family-mono);\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-step-label[_ngcontent-%COMP%] {\n font-size: 10px;\n font-family: var(--mj-font-family-mono);\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-loading-state[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 10px;\n padding: 30px;\n font-size: 13px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-grid-wrap[_ngcontent-%COMP%] {\n padding: 0;\n min-height: 400px;\n height: 420px;\n}\n\n.mjo-price-list[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding: 12px 14px 16px;\n}\n\n.mjo-offer[_ngcontent-%COMP%] {\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n border-radius: 12px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.12));\n overflow: hidden;\n}\n\n.mjo-offer.selected[_ngcontent-%COMP%] {\n border-color: var(--mj-brand-primary, #38bdf8);\n box-shadow: inset 0 0 0 1px var(--mj-brand-primary, #38bdf8);\n}\n\n.mjo-offer-grip[_ngcontent-%COMP%] {\n color: var(--mj-text-muted, #94a3b8);\n cursor: grab;\n padding: 0 4px 0 0;\n display: inline-flex;\n}\n\n.mjo-offer-h[_ngcontent-%COMP%] {\n width: 100%;\n display: grid;\n grid-template-columns: 108px 1fr auto;\n gap: 14px;\n align-items: center;\n padding: 12px 14px;\n border: 0;\n background: transparent;\n color: inherit;\n text-align: left;\n cursor: pointer;\n}\n\n.mjo-offer-h[_ngcontent-%COMP%]:has(.mjo-offer-grip) {\n grid-template-columns: 18px 108px 1fr auto;\n}\n\n.mjo-offer-h[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-brand-primary, #0076b6) 8%, transparent);\n}\n\n.mjo-offer-amt[_ngcontent-%COMP%] {\n font-variant-numeric: tabular-nums;\n font-weight: 700;\n font-size: 18px;\n letter-spacing: -0.02em;\n text-align: left;\n}\n\n.mjo-offer-copy[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 2px;\n min-width: 0;\n}\n\n.mjo-offer-name[_ngcontent-%COMP%] {\n font-weight: 700;\n font-size: 14px;\n}\n\n.mjo-offer-when[_ngcontent-%COMP%] {\n font-size: 12.5px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-offer-from[_ngcontent-%COMP%] {\n font-size: 11px;\n font-weight: 700;\n color: var(--mj-status-success-text, #86efac);\n white-space: nowrap;\n}\n\n.mjo-offer-body[_ngcontent-%COMP%] {\n padding: 0 14px 14px;\n border-top: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n}\n\n.mjo-when-read[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 12px;\n padding-top: 12px;\n font-size: 13px;\n color: var(--mj-text-secondary, #cbd5e1);\n}\n\n.mjo-when-edit[_ngcontent-%COMP%] {\n padding-top: 12px;\n}\n\n.mjo-when-actions[_ngcontent-%COMP%] {\n display: flex;\n justify-content: flex-end;\n gap: 8px;\n margin-top: 10px;\n}\n\n.mjo-quote-scrim[_ngcontent-%COMP%] {\n position: fixed;\n inset: 0;\n background: rgba(2, 6, 23, 0.55);\n z-index: 1000;\n}\n\n.mjo-quote-drawer[_ngcontent-%COMP%] {\n position: fixed;\n top: 0;\n right: 0;\n height: 100vh;\n width: min(440px, 100vw);\n box-sizing: border-box;\n overflow-y: auto;\n background: var(--mj-bg-page, #0f172a);\n border-left: 1px solid var(--mj-border-default, #334155);\n z-index: 1001;\n padding: 28px 28px 32px;\n font-size: 14px;\n line-height: 1.5;\n box-shadow: -16px 0 40px rgba(0, 0, 0, 0.35);\n}\n\n.mjo-quote-drawer-h[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 6px;\n}\n\n.mjo-quote-drawer[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] {\n margin: 0;\n font-size: 20px;\n font-weight: 700;\n}\n\n.mjo-quote-close[_ngcontent-%COMP%] {\n width: 32px;\n height: 32px;\n padding: 0;\n justify-content: center;\n font-size: 16px;\n}\n\n.mjo-quote-lede[_ngcontent-%COMP%] {\n color: var(--mj-text-muted, #94a3b8);\n font-size: 14px;\n margin: 0 0 24px;\n}\n\n.mjo-quote-form[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 16px 20px;\n padding-bottom: 24px;\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n}\n\n.mjo-quote-field[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 6px;\n min-width: 0;\n}\n\n.mjo-quote-field--wide[_ngcontent-%COMP%] {\n grid-column: 1 / -1;\n}\n\n.mjo-quote-field[_ngcontent-%COMP%] > span[_ngcontent-%COMP%] {\n font-size: 13px;\n font-weight: 600;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-quote-field[_ngcontent-%COMP%] > small[_ngcontent-%COMP%] {\n font-size: 12.5px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-quote-field[_ngcontent-%COMP%] .mjo-input-select[_ngcontent-%COMP%], \n.mjo-quote-field[_ngcontent-%COMP%] .mjo-input-num[_ngcontent-%COMP%] {\n width: 100%;\n box-sizing: border-box;\n text-align: left;\n font-size: 14px;\n padding: 8px 10px;\n}\n\n.mjo-quote-result[_ngcontent-%COMP%] {\n padding: 24px 0 8px;\n}\n\n.mjo-quote-amt[_ngcontent-%COMP%] {\n font-size: 34px;\n font-weight: 700;\n letter-spacing: -0.02em;\n margin: 0 0 6px;\n}\n\n.mjo-quote-why[_ngcontent-%COMP%] {\n font-size: 14px;\n color: var(--mj-text-muted, #94a3b8);\n margin: 0;\n}\n\n.mjo-offer.inherited[_ngcontent-%COMP%] {\n border-style: dashed;\n}\n\n.mjo-offer-from.inherited[_ngcontent-%COMP%] {\n color: #a78bfa;\n}\n\n.mjo-offer-fields[_ngcontent-%COMP%], \n.mjo-adv-grid[_ngcontent-%COMP%] {\n display: flex;\n flex-wrap: wrap;\n gap: 10px;\n padding-top: 12px;\n}\n\n.mjo-input-text[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.2));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n color: inherit;\n border-radius: 8px;\n padding: 6px 8px;\n min-width: 120px;\n}\n\n.mjo-when-title[_ngcontent-%COMP%] {\n font-size: 11px;\n font-weight: 700;\n letter-spacing: 0.05em;\n text-transform: uppercase;\n color: var(--mj-text-muted, #94a3b8);\n margin-bottom: 8px;\n}\n\n.mjo-when-rule[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: 1fr 1fr 110px 1fr;\n gap: 6px;\n}\n\n.mjo-when-rule[_ngcontent-%COMP%] select[_ngcontent-%COMP%], \n.mjo-when-rule[_ngcontent-%COMP%] input[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.2));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n color: inherit;\n border-radius: 8px;\n padding: 6px 8px;\n}\n\n.mjo-inherit-note[_ngcontent-%COMP%] {\n font-size: 12.5px;\n color: var(--mj-text-muted, #94a3b8);\n margin: 12px 0 0;\n}\n\n.mjo-adv[_ngcontent-%COMP%] {\n margin-top: 10px;\n font-size: 12px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-adv-read[_ngcontent-%COMP%] {\n display: flex;\n flex-wrap: wrap;\n gap: 10px 16px;\n padding-top: 4px;\n font-size: 13px;\n color: var(--mj-text-secondary, #cbd5e1);\n}\n\n\n\n.mjo-view-switch[_ngcontent-%COMP%] {\n display: inline-flex;\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n border-radius: 6px;\n overflow: hidden;\n}\n\n.mjo-view-switch[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 6px 10px;\n font-size: 11.5px;\n font-weight: 600;\n background: transparent;\n border: none;\n border-right: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n color: var(--mj-text-muted, #94a3b8);\n cursor: pointer;\n}\n\n.mjo-view-switch[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child {\n border-right: none;\n}\n\n.mjo-view-switch[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover {\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-view-switch[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%] {\n background: var(--mj-brand-primary, #0284c7);\n color: #fff;\n}\n\n\n\n.mjo-offer-status[_ngcontent-%COMP%] {\n font-size: 11px;\n font-weight: 600;\n padding: 2px 8px;\n border-radius: 999px;\n white-space: nowrap;\n background: rgba(22, 163, 74, 0.12);\n color: var(--mj-status-success-text, #86efac);\n}\n\n.mjo-offer-status.retired[_ngcontent-%COMP%] {\n background: rgba(148, 163, 184, 0.18);\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-offer.retired[_ngcontent-%COMP%] .mjo-offer-amt[_ngcontent-%COMP%], \n.mjo-offer.retired[_ngcontent-%COMP%] .mjo-offer-name[_ngcontent-%COMP%] {\n opacity: 0.6;\n text-decoration: line-through;\n}\n\n.mjo-offer-lifecycle[_ngcontent-%COMP%] {\n align-items: flex-end;\n border-top: 1px dashed var(--mj-border-default, rgba(255, 255, 255, 0.1));\n margin-top: 10px;\n}\n\n\n\n.mjo-bands[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding: 14px 16px 16px;\n}\n\n.mjo-bands-lede[_ngcontent-%COMP%] {\n margin: 0;\n font-size: 12.5px;\n line-height: 1.5;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-band-table-wrap[_ngcontent-%COMP%] {\n overflow-x: auto;\n}\n\n.mjo-band-table[_ngcontent-%COMP%] {\n width: 100%;\n border-collapse: collapse;\n font-size: 13px;\n}\n\n.mjo-band-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n text-align: left;\n font-size: 11px;\n font-weight: 700;\n letter-spacing: 0.03em;\n text-transform: uppercase;\n color: var(--mj-text-muted, #94a3b8);\n padding: 6px 8px;\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n}\n\n.mjo-band-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n padding: 8px;\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.08));\n vertical-align: middle;\n}\n\n.mjo-band-table[_ngcontent-%COMP%] th.num[_ngcontent-%COMP%], \n.mjo-band-table[_ngcontent-%COMP%] td.num[_ngcontent-%COMP%] {\n text-align: right;\n font-family: var(--mj-font-family-mono);\n}\n\n.mjo-band-table[_ngcontent-%COMP%] tr.retired[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n opacity: 0.6;\n}\n\n.mjo-band-name[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.mjo-band-title[_ngcontent-%COMP%] {\n font-weight: 600;\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-band-range[_ngcontent-%COMP%] {\n font-size: 11.5px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-band-amount[_ngcontent-%COMP%] {\n font-weight: 700;\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-band-actions[_ngcontent-%COMP%] {\n white-space: nowrap;\n text-align: right;\n}\n\n.mjo-band-actions[_ngcontent-%COMP%] .mjo-btn-subtle[_ngcontent-%COMP%] + .mjo-btn-subtle[_ngcontent-%COMP%] {\n margin-left: 6px;\n}\n\n.mjo-btn-icon[_ngcontent-%COMP%] {\n padding: 6px 8px;\n}\n\n.mjo-input-num--wide[_ngcontent-%COMP%] {\n width: 90px;\n}\n\n.mjo-input-text--wide[_ngcontent-%COMP%] {\n width: min(420px, 100%);\n}\n\n.mjo-field-group--grow[_ngcontent-%COMP%] {\n flex: 1 1 320px;\n}\n\n.mjo-ladder-issues[_ngcontent-%COMP%], \n.mjo-ladder-ok[_ngcontent-%COMP%] {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 8px;\n font-size: 12.5px;\n padding: 8px 12px;\n border-radius: 6px;\n}\n\n.mjo-ladder-issues[_ngcontent-%COMP%] {\n background: rgba(245, 158, 11, 0.12);\n border: 1px solid rgba(245, 158, 11, 0.3);\n color: #fbbf24;\n}\n\n.mjo-ladder-issue[_ngcontent-%COMP%] {\n font-weight: 600;\n padding: 1px 8px;\n border-radius: 999px;\n background: rgba(245, 158, 11, 0.18);\n}\n\n.mjo-ladder-ok[_ngcontent-%COMP%] {\n background: rgba(22, 163, 74, 0.1);\n border: 1px solid rgba(22, 163, 74, 0.25);\n color: var(--mj-status-success-text, #86efac);\n}\n\n.mjo-band-setup[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding: 12px;\n border: 1px dashed var(--mj-border-default, rgba(255, 255, 255, 0.15));\n border-radius: 8px;\n}\n\n\n\n.mjo-when-head[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n}\n\n.mjo-when-allfields[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n font-size: 11.5px;\n color: var(--mj-text-muted, #94a3b8);\n cursor: pointer;\n}\n\n\n\n.mjo-quote-skipped-title[_ngcontent-%COMP%] {\n margin-top: 20px;\n font-size: 12px;\n font-weight: 700;\n letter-spacing: 0.03em;\n text-transform: uppercase;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-quote-skipped[_ngcontent-%COMP%] {\n margin: 8px 0 0;\n padding-left: 18px;\n font-size: 13.5px;\n line-height: 1.6;\n color: var(--mj-text-muted, #94a3b8);\n}"] });
|
|
1506
2675
|
}
|
|
1507
2676
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BizAppsProductPricingWidgetComponent, [{
|
|
1508
2677
|
type: Component,
|
|
1509
|
-
args: [{ standalone: false, selector: 'bizapps-product-pricing-widget', template: "<div class=\"mjo-pricing-widget-wrap\">\n @if (ActiveToast) {\n <div class=\"mjo-toast\" [class]=\"'mjo-toast--' + ActiveToast.Type\">\n <div class=\"mjo-toast-left\">\n <i [class]=\"ActiveToast.Icon\"></i>\n <span class=\"mjo-toast-msg\">{{ ActiveToast.Message }}</span>\n </div>\n <button type=\"button\" class=\"mjo-toast-close\" (click)=\"DismissToast()\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n }\n\n <div class=\"mjo-pricing-card\">\n <div class=\"mjo-card-header\">\n <div class=\"mjo-card-title\">\n <i class=\"fa-solid fa-tags\"></i>\n <span>Prices</span>\n </div>\n <div class=\"mjo-card-header-actions\">\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"OpenQuote()\">\n <i class=\"fa-solid fa-flask\"></i>\n <span>Test a quote</span>\n </button>\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"ToggleAdvancedView()\">\n <i [class]=\"IsAdvancedGridView ? 'fa-solid fa-tags' : 'fa-solid fa-table-cells'\"></i>\n <span>{{ IsAdvancedGridView ? 'Prices' : 'Advanced grid' }}</span>\n </button>\n </div>\n </div>\n\n @if (ShowChannelBar) {\n <div class=\"mjo-channel-bar\">\n <div class=\"mjo-channel-list\">\n @for (ch of Channels; track ch.ID) {\n <button\n type=\"button\"\n class=\"mjo-channel-tab\"\n [class.active]=\"SelectedChannelID === ch.ID\"\n (click)=\"SelectChannel(ch.ID)\">\n <i [class]=\"ch.Icon\"></i>\n <span>{{ ch.Name }}</span>\n <span class=\"mjo-channel-count\">{{ ch.TierCount }} {{ ch.TierCount === 1 ? 'price' : 'prices' }}</span>\n </button>\n }\n </div>\n </div>\n }\n\n @if (IsAdvancedGridView) {\n @if (ProductPricesViewParams) {\n <div class=\"mjo-grid-wrap\">\n <mj-explorer-entity-data-grid\n [Params]=\"ProductPricesViewParams\"\n [NewRecordValues]=\"NewPriceRecordValues\"\n [Height]=\"420\"\n [AllowLoad]=\"true\"\n [ShowToolbar]=\"true\"\n [ShowNewButton]=\"EditMode\"\n [ShowDeleteButton]=\"EditMode\"\n (Navigate)=\"Navigate.emit($event)\">\n </mj-explorer-entity-data-grid>\n </div>\n }\n } @else {\n @if (IsLoading) {\n <div class=\"mjo-loading-state\">\n <mj-loading text=\"Loading prices\u2026\" size=\"small\"></mj-loading>\n </div>\n } @else if (VisiblePrices.length === 0) {\n <mj-empty-state\n Size=\"compact\"\n Icon=\"fa-solid fa-tags\"\n Title=\"No prices on this channel\"\n [Message]=\"EditMode ? 'Add a price. When is optional \u2014 only if this rate is not for everyone.' : 'Switch to Edit to add prices.'\" />\n } @else {\n <div\n class=\"mjo-price-list\"\n cdkDropList\n [cdkDropListDisabled]=\"!EditMode\"\n (cdkDropListDropped)=\"OnPriceDrop($event)\">\n @for (row of VisiblePrices; track row.ID) {\n <article\n class=\"mjo-offer\"\n cdkDrag\n [cdkDragDisabled]=\"!EditMode || row.Inherited\"\n [class.open]=\"ExpandedPriceID === row.ID && PriceCanExpand(row)\"\n [class.selected]=\"SelectedPriceID === row.ID\"\n [class.inherited]=\"row.Inherited\">\n <button type=\"button\" class=\"mjo-offer-h\" (click)=\"TogglePrice(row)\">\n @if (EditMode && !row.Inherited) {\n <span class=\"mjo-offer-grip\" cdkDragHandle title=\"Drag to change rank\">\n <i class=\"fa-solid fa-grip-vertical\"></i>\n </span>\n }\n <span class=\"mjo-offer-amt\">{{ FormatCurrency(row.Amount) }}</span>\n <span class=\"mjo-offer-copy\">\n <span class=\"mjo-offer-name\">{{ row.Name }}</span>\n @if (row.WhenText) {\n <span class=\"mjo-offer-when\">{{ row.WhenText }}</span>\n }\n </span>\n <span class=\"mjo-offer-from\" [class.inherited]=\"row.Inherited\">{{ row.SourceLabel }}</span>\n </button>\n @if (ExpandedPriceID === row.ID && PriceCanExpand(row)) {\n <div class=\"mjo-offer-body\" (click)=\"$event.stopPropagation()\">\n @if (row.Inherited) {\n <p class=\"mjo-inherit-note\">\n Inherited. A price with this name on the product replaces it.\n @if (EditMode) {\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"OverrideInherited(row)\">Override on this product</button>\n }\n </p>\n } @else {\n @if (EditMode) {\n <div class=\"mjo-offer-fields\">\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Name</span>\n <input class=\"mjo-input-text\" [(ngModel)]=\"row.Record.Name\" (blur)=\"SavePrice(row.Record)\">\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Amount</span>\n <input type=\"number\" class=\"mjo-input-price\" [(ngModel)]=\"row.Record.Amount\" min=\"0\" step=\"0.01\" (blur)=\"SavePrice(row.Record)\">\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Model</span>\n <select class=\"mjo-input-select\" [(ngModel)]=\"row.Record.PricingModel\" (change)=\"SavePrice(row.Record)\">\n <option value=\"PerUnit\">Per unit</option>\n <option value=\"Package\">Package</option>\n <option value=\"Volume\">Volume</option>\n <option value=\"Flat\">Flat</option>\n </select>\n </label>\n </div>\n }\n @if (EditMode && row.WhenText && WhenEditorPriceID !== row.ID) {\n <div class=\"mjo-when-read\">\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"OpenWhenEditor(row)\">Edit When</button>\n </div>\n } @else if (EditMode && WhenEditorPriceID !== row.ID) {\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"OpenWhenEditor(row)\">+ When</button>\n }\n @if (EditMode && WhenEditorPriceID === row.ID) {\n <div class=\"mjo-when-edit\">\n <div class=\"mjo-when-title\">When this price applies</div>\n <mj-filter-builder\n [fields]=\"WhenFields\"\n [filter]=\"WhenFilter\"\n [showSummary]=\"true\"\n (filterChange)=\"OnWhenFilterChange($event)\">\n </mj-filter-builder>\n <div class=\"mjo-when-actions\">\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"ClearWhen(row)\">Remove When</button>\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"CloseWhenEditor()\">Cancel</button>\n <button type=\"button\" class=\"mjo-btn-add\" (click)=\"SaveWhen(row)\">Save When</button>\n </div>\n </div>\n }\n @if (HasAdvanced(row.Record) || AdvancedEditingID === row.ID) {\n <div class=\"mjo-adv\">\n <div class=\"mjo-when-title\">Qty, dates, fee</div>\n @if (EditMode) {\n <div class=\"mjo-adv-grid\">\n <label class=\"mjo-field-group\"><span class=\"mjo-sub-label\">Min qty</span>\n <input type=\"number\" class=\"mjo-input-num\" [(ngModel)]=\"row.Record.MinQuantity\" (blur)=\"SavePrice(row.Record)\">\n </label>\n <label class=\"mjo-field-group\"><span class=\"mjo-sub-label\">Max qty</span>\n <input type=\"number\" class=\"mjo-input-num\" [(ngModel)]=\"row.Record.MaxQuantity\" (blur)=\"SavePrice(row.Record)\">\n </label>\n <label class=\"mjo-field-group\"><span class=\"mjo-sub-label\">Fee type</span>\n <input class=\"mjo-input-text\" [(ngModel)]=\"row.Record.FeeType\" (blur)=\"SavePrice(row.Record)\">\n </label>\n <label class=\"mjo-field-group\"><span class=\"mjo-sub-label\">Priority</span>\n <input type=\"number\" class=\"mjo-input-num\" [(ngModel)]=\"row.Record.Priority\" (blur)=\"SavePrice(row.Record)\">\n </label>\n </div>\n } @else {\n <div class=\"mjo-adv-read\">\n @if (row.Record.MinQuantity != null) {\n <span>Min qty {{ row.Record.MinQuantity }}</span>\n }\n @if (row.Record.MaxQuantity != null) {\n <span>Max qty {{ row.Record.MaxQuantity }}</span>\n }\n @if (row.Record.FeeType && row.Record.FeeType !== 'Standard') {\n <span>{{ row.Record.FeeType }}</span>\n }\n @if (row.Record.EffectiveTo) {\n <span>Until {{ FormatDate(row.Record.EffectiveTo) }}</span>\n }\n </div>\n }\n </div>\n } @else if (EditMode) {\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"OpenAdvanced(row.ID, $event)\">+ Qty, dates, fee</button>\n }\n }\n </div>\n }\n </article>\n }\n </div>\n }\n\n @if (EditMode) {\n <div class=\"mjo-quick-add-bar\">\n <div class=\"mjo-quick-add-inputs\">\n <span class=\"mjo-quick-add-label\">\n <i class=\"fa-solid fa-plus-circle\"></i> Add price\n </span>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Name</span>\n <input class=\"mjo-input-text\" [(ngModel)]=\"NewPriceName\" placeholder=\"Base\">\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Amount</span>\n <input type=\"number\" class=\"mjo-input-price\" [(ngModel)]=\"NewPriceAmount\" min=\"0\" step=\"0.01\">\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Effective from</span>\n <input type=\"date\" class=\"mjo-input-text\" [(ngModel)]=\"NewPriceEffectiveFrom\" [disabled]=\"IsSaving\">\n </label>\n <span class=\"mjo-quick-add-hint\">Orders dated before this day won't get this price.</span>\n <button type=\"button\" class=\"mjo-btn-add\" [disabled]=\"IsSaving\" (click)=\"AddPrice()\">\n @if (IsSaving) {\n <mj-loading class=\"mjo-btn-add__loading\" [showText]=\"false\" size=\"small\" logoColor=\"currentColor\"></mj-loading>\n <span>Saving\u2026</span>\n } @else {\n <i class=\"fa-solid fa-plus\"></i>\n <span>Add price</span>\n }\n </button>\n </div>\n </div>\n }\n }\n </div>\n</div>\n\n@if (QuoteDrawerOpen) {\n <div class=\"mjo-quote-scrim\" (click)=\"CloseQuote()\"></div>\n <aside class=\"mjo-quote-drawer\" role=\"dialog\" aria-label=\"Test a quote\">\n <div class=\"mjo-quote-drawer-h\">\n <h3>Test a quote</h3>\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"CloseQuote()\">Close</button>\n </div>\n <p class=\"mjo-quote-lede\">Optional. Sample bill-to type against these prices. Same walk as GL \u2014 product then category.</p>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Bill-to organization Type</span>\n <select class=\"mjo-input-select\" [(ngModel)]=\"QuoteOrgType\" (ngModelChange)=\"RunQuote()\">\n <option value=\"Member\">Member</option>\n <option value=\"Prospect\">Prospect</option>\n </select>\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Qty</span>\n <input type=\"number\" class=\"mjo-input-num\" [(ngModel)]=\"SimQuantity\" min=\"1\" (ngModelChange)=\"RunQuote()\">\n </label>\n <div class=\"mjo-quote-amt\">{{ QuoteResult.AmountText }}</div>\n <p class=\"mjo-quote-why\">{{ QuoteResult.Why }}</p>\n @if (QuoteResult.Skipped) {\n <p class=\"mjo-quote-why\">{{ QuoteResult.Skipped }}</p>\n }\n </aside>\n}\n", styles: [".mjo-pricing-widget-wrap {\n display: flex;\n flex-direction: column;\n gap: 16px;\n width: 100%;\n position: relative;\n}\n\n/* In-Widget Toast Notification */\n.mjo-toast {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 10px 16px;\n border-radius: var(--mj-radius-md, 8px);\n font-size: 13px;\n font-weight: 500;\n animation: mjo-toast-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n border: 1px solid transparent;\n}\n\n@keyframes mjo-toast-in {\n from { opacity: 0; transform: translateY(-6px); }\n to { opacity: 1; transform: translateY(0); }\n}\n\n.mjo-toast--success {\n background: rgba(22, 163, 74, 0.15);\n border-color: rgba(22, 163, 74, 0.3);\n color: #22c55e;\n}\n\n.mjo-toast--error {\n background: rgba(239, 68, 68, 0.15);\n border-color: rgba(239, 68, 68, 0.3);\n color: #f87171;\n}\n\n.mjo-toast--info {\n background: rgba(2, 132, 199, 0.15);\n border-color: rgba(2, 132, 199, 0.3);\n color: #38bdf8;\n}\n\n.mjo-toast-left {\n display: flex;\n align-items: center;\n gap: 10px;\n}\n\n.mjo-toast-left i {\n font-size: 16px;\n}\n\n.mjo-toast-msg {\n line-height: 1.4;\n}\n\n.mjo-toast-close {\n background: transparent;\n border: none;\n color: currentColor;\n opacity: 0.7;\n cursor: pointer;\n padding: 4px 8px;\n border-radius: 4px;\n font-size: 13px;\n}\n\n.mjo-toast-close:hover {\n opacity: 1;\n}\n\n.mjo-pricing-card {\n background: var(--mj-bg-surface-card, rgba(255, 255, 255, 0.05));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n border-radius: var(--mj-radius-lg, 10px);\n overflow: hidden;\n}\n\n.mjo-card-header-actions {\n display: flex;\n gap: 8px;\n align-items: center;\n}\n\n.mjo-card-header {\n padding: 12px 16px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.1));\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n}\n\n.mjo-card-title {\n font-size: 13.5px;\n font-weight: 700;\n color: var(--mj-text-primary, #0f172a);\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.mjo-card-title i {\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-base-pill {\n font-size: 12px;\n color: var(--mj-text-muted, #64748b);\n}\n\n.mjo-base-pill strong {\n font-family: var(--mj-font-family-mono);\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-pricing-fields {\n padding: 16px;\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));\n gap: 16px;\n}\n\n/* Channel Tabs Header */\n.mjo-channel-bar {\n display: flex;\n align-items: center;\n justify-content: space-between;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.1));\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n padding: 0 12px;\n flex-wrap: wrap;\n gap: 8px;\n}\n\n.mjo-channel-list {\n display: flex;\n align-items: center;\n gap: 4px;\n overflow-x: auto;\n}\n\n.mjo-channel-tab {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n padding: 12px 14px;\n background: transparent;\n border: none;\n border-bottom: 2px solid transparent;\n font-size: 12.5px;\n font-weight: 600;\n color: var(--mj-text-muted, #94a3b8);\n cursor: pointer;\n transition: all 0.15s ease;\n white-space: nowrap;\n}\n\n.mjo-channel-tab:hover {\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-channel-tab.active {\n color: var(--mj-brand-primary, #0284c7);\n border-bottom-color: var(--mj-brand-primary, #0284c7);\n background: var(--mj-bg-surface-card, rgba(255, 255, 255, 0.05));\n}\n\n.mjo-channel-count {\n font-size: 10px;\n font-weight: 700;\n padding: 2px 6px;\n border-radius: 9999px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.15));\n color: var(--mj-text-secondary, #cbd5e1);\n}\n\n.mjo-channel-tab.active .mjo-channel-count {\n background: rgba(2, 132, 199, 0.18);\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-channel-actions {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.mjo-btn-subtle {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 6px 12px;\n border-radius: 6px;\n font-size: 11.5px;\n font-weight: 600;\n color: var(--mj-text-primary, #0f172a);\n background: var(--mj-bg-surface-card, rgba(255, 255, 255, 0.05));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n cursor: pointer;\n transition: all 0.15s ease;\n}\n\n.mjo-btn-subtle:hover {\n border-color: var(--mj-brand-primary, #0284c7);\n color: var(--mj-brand-primary, #0284c7);\n}\n\n/* Tier Ladder Table */\n.mjo-ladder-table-wrap {\n overflow-x: auto;\n width: 100%;\n}\n\n.mjo-ladder-table {\n width: 100%;\n border-collapse: collapse;\n font-size: 13px;\n text-align: left;\n}\n\n.mjo-ladder-table th {\n padding: 10px 14px;\n font-size: 11px;\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--mj-text-muted, #64748b);\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.05));\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n}\n\n.mjo-ladder-table td {\n padding: 11px 14px;\n border-bottom: 1px solid var(--mj-border-subtle, rgba(255, 255, 255, 0.06));\n color: var(--mj-text-primary, #0f172a);\n vertical-align: middle;\n}\n\n.mjo-ladder-table tr:hover {\n background: var(--mj-bg-surface-hover, rgba(255, 255, 255, 0.03));\n}\n\n.mjo-tier-title {\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-range-pill {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n font-family: var(--mj-font-family-mono);\n font-weight: 700;\n font-size: 12px;\n padding: 3px 8px;\n border-radius: 6px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.12));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n}\n\n.mjo-price-input {\n font-family: var(--mj-font-family-mono);\n font-size: 13.5px;\n font-weight: 700;\n color: var(--mj-text-primary, #0f172a);\n background: var(--mj-bg-surface, rgba(0, 0, 0, 0.2));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.15));\n border-radius: 6px;\n padding: 5px 8px;\n width: 100px;\n transition: all 0.15s ease;\n}\n\n.mjo-price-input:focus {\n outline: none;\n border-color: var(--mj-brand-primary, #0284c7);\n box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25);\n}\n\n.mjo-price-val {\n font-family: var(--mj-font-family-mono);\n font-size: 13px;\n font-weight: 700;\n color: var(--mj-text-primary, #0f172a);\n display: inline-block;\n padding: 4px 0;\n}\n\n.mjo-disc-tag {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n font-size: 11px;\n font-weight: 700;\n padding: 2px 7px;\n border-radius: 4px;\n background: rgba(22, 163, 74, 0.15);\n color: #22c55e;\n}\n\n.mjo-standard-tag {\n font-size: 11px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-savings-val {\n color: #22c55e;\n font-family: var(--mj-font-family-mono);\n font-size: 12.5px;\n}\n\n.mjo-model-tag {\n font-size: 11px;\n font-weight: 600;\n padding: 2px 7px;\n border-radius: 4px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.1));\n color: var(--mj-text-secondary, #cbd5e1);\n}\n\n.mjo-date-tag {\n font-size: 11.5px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-th-num, .mjo-td-num { text-align: left; }\n.mjo-th-actions, .mjo-td-actions { text-align: right; }\n\n.mjo-action-btn {\n width: 28px;\n height: 28px;\n border-radius: 6px;\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n background: var(--mj-bg-surface, rgba(255, 255, 255, 0.05));\n color: var(--mj-text-muted, #94a3b8);\n cursor: pointer;\n font-size: 11px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n transition: all 0.15s ease;\n margin-left: 4px;\n}\n\n.mjo-action-btn:hover {\n color: var(--mj-brand-primary, #0284c7);\n border-color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-action-btn--delete:hover {\n color: #ef4444;\n border-color: #ef4444;\n}\n\n/* 1-Click Quick Add Bar */\n.mjo-quick-add-bar {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 12px 16px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.1));\n border-top: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n gap: 12px;\n flex-wrap: wrap;\n}\n\n.mjo-quick-add-inputs {\n display: flex;\n align-items: center;\n gap: 10px;\n flex-wrap: wrap;\n}\n\n.mjo-quick-add-label {\n font-size: 12.5px;\n font-weight: 700;\n color: var(--mj-brand-primary, #0284c7);\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.mjo-quick-add-hint {\n font-size: 11.5px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-field-group {\n display: flex;\n align-items: center;\n gap: 4px;\n}\n\n.mjo-sub-label {\n font-size: 11.5px;\n font-weight: 600;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-input-num {\n width: 65px;\n padding: 5px 8px;\n font-size: 12.5px;\n font-family: var(--mj-font-family-mono);\n font-weight: 700;\n text-align: center;\n border-radius: 6px;\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.15));\n background: var(--mj-bg-surface, rgba(0, 0, 0, 0.2));\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-input-price {\n width: 85px;\n padding: 5px 8px;\n font-size: 12.5px;\n font-family: var(--mj-font-family-mono);\n font-weight: 700;\n border-radius: 6px;\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.15));\n background: var(--mj-bg-surface, rgba(0, 0, 0, 0.2));\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-input-select {\n padding: 5px 8px;\n font-size: 12px;\n font-weight: 600;\n border-radius: 6px;\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.15));\n background: var(--mj-bg-surface, rgba(0, 0, 0, 0.2));\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-btn-add {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 6px 14px;\n border-radius: 6px;\n font-size: 12px;\n font-weight: 700;\n color: #ffffff;\n background: #0284c7;\n border: none;\n cursor: pointer;\n transition: all 0.15s ease;\n}\n\n.mjo-btn-add:hover {\n background: #0369a1;\n}\n\n.mjo-btn-add:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* mj-loading fills its container by default; inside the button it sizes to its small logo. */\n.mjo-btn-add__loading {\n width: auto;\n height: auto;\n flex: none;\n}\n\n.mjo-guard-badge {\n font-size: 11.5px;\n color: #22c55e;\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n/* Volume Step Curve Diagram */\n.mjo-step-curve-wrap {\n padding: 14px 18px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.mjo-step-curve-title {\n font-size: 11px;\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--mj-text-muted, #94a3b8);\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.mjo-step-curve-title i {\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-step-curve-bars {\n display: flex;\n align-items: flex-end;\n gap: 12px;\n height: 80px;\n padding-top: 8px;\n}\n\n.mjo-step-col {\n flex: 1;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 4px;\n height: 100%;\n justify-content: flex-end;\n}\n\n.mjo-step-track {\n width: 100%;\n max-width: 60px;\n height: 100%;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.1));\n border-radius: 4px 4px 0 0;\n display: flex;\n align-items: flex-end;\n}\n\n.mjo-step-fill {\n width: 100%;\n border-radius: 4px 4px 0 0;\n background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);\n min-height: 8px;\n transition: height 0.3s ease;\n}\n\n.mjo-step-val {\n font-size: 11px;\n font-weight: 700;\n font-family: var(--mj-font-family-mono);\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-step-label {\n font-size: 10px;\n font-family: var(--mj-font-family-mono);\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-loading-state {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 10px;\n padding: 30px;\n font-size: 13px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-grid-wrap {\n padding: 0;\n min-height: 400px;\n height: 420px;\n}\n\n.mjo-price-list {\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding: 12px 14px 16px;\n}\n\n.mjo-offer {\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n border-radius: 12px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.12));\n overflow: hidden;\n}\n\n.mjo-offer.selected {\n border-color: var(--mj-brand-primary, #38bdf8);\n box-shadow: inset 0 0 0 1px var(--mj-brand-primary, #38bdf8);\n}\n\n.mjo-offer-grip {\n color: var(--mj-text-muted, #94a3b8);\n cursor: grab;\n padding: 0 4px 0 0;\n display: inline-flex;\n}\n\n.mjo-offer-h {\n width: 100%;\n display: grid;\n grid-template-columns: 108px 1fr auto;\n gap: 14px;\n align-items: center;\n padding: 12px 14px;\n border: 0;\n background: transparent;\n color: inherit;\n text-align: left;\n cursor: pointer;\n}\n\n.mjo-offer-h:has(.mjo-offer-grip) {\n grid-template-columns: 18px 108px 1fr auto;\n}\n\n.mjo-offer-h:hover {\n background: color-mix(in srgb, var(--mj-brand-primary, #0076b6) 8%, transparent);\n}\n\n.mjo-offer-amt {\n font-variant-numeric: tabular-nums;\n font-weight: 700;\n font-size: 18px;\n letter-spacing: -0.02em;\n text-align: left;\n}\n\n.mjo-offer-copy {\n display: flex;\n flex-direction: column;\n gap: 2px;\n min-width: 0;\n}\n\n.mjo-offer-name {\n font-weight: 700;\n font-size: 14px;\n}\n\n.mjo-offer-when {\n font-size: 12.5px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-offer-from {\n font-size: 11px;\n font-weight: 700;\n color: var(--mj-status-success-text, #86efac);\n white-space: nowrap;\n}\n\n.mjo-offer-body {\n padding: 0 14px 14px;\n border-top: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n}\n\n.mjo-when-read {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 12px;\n padding-top: 12px;\n font-size: 13px;\n color: var(--mj-text-secondary, #cbd5e1);\n}\n\n.mjo-when-edit {\n padding-top: 12px;\n}\n\n.mjo-when-actions {\n display: flex;\n justify-content: flex-end;\n gap: 8px;\n margin-top: 10px;\n}\n\n.mjo-quote-scrim {\n position: fixed;\n inset: 0;\n background: rgba(2, 6, 23, 0.55);\n z-index: 40;\n}\n\n.mjo-quote-drawer {\n position: fixed;\n top: 0;\n right: 0;\n height: 100vh;\n width: min(420px, 100vw);\n background: var(--mj-bg-page, #0f172a);\n border-left: 1px solid var(--mj-border-default, #334155);\n z-index: 50;\n padding: 20px 18px;\n box-shadow: -16px 0 40px rgba(0, 0, 0, 0.35);\n}\n\n.mjo-quote-drawer-h {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 8px;\n}\n\n.mjo-quote-drawer h3 {\n margin: 0;\n font-size: 16px;\n}\n\n.mjo-quote-lede {\n color: var(--mj-text-muted, #94a3b8);\n font-size: 12.5px;\n margin: 0 0 16px;\n}\n\n.mjo-quote-amt {\n font-size: 28px;\n font-weight: 700;\n letter-spacing: -0.02em;\n margin: 16px 0 6px;\n}\n\n.mjo-quote-why {\n font-size: 13px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-offer.inherited {\n border-style: dashed;\n}\n\n.mjo-offer-from.inherited {\n color: #a78bfa;\n}\n\n.mjo-offer-fields,\n.mjo-adv-grid {\n display: flex;\n flex-wrap: wrap;\n gap: 10px;\n padding-top: 12px;\n}\n\n.mjo-input-text {\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.2));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n color: inherit;\n border-radius: 8px;\n padding: 6px 8px;\n min-width: 120px;\n}\n\n.mjo-when-title {\n font-size: 11px;\n font-weight: 700;\n letter-spacing: 0.05em;\n text-transform: uppercase;\n color: var(--mj-text-muted, #94a3b8);\n margin-bottom: 8px;\n}\n\n.mjo-when-rule {\n display: grid;\n grid-template-columns: 1fr 1fr 110px 1fr;\n gap: 6px;\n}\n\n.mjo-when-rule select,\n.mjo-when-rule input {\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.2));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n color: inherit;\n border-radius: 8px;\n padding: 6px 8px;\n}\n\n.mjo-inherit-note {\n font-size: 12.5px;\n color: var(--mj-text-muted, #94a3b8);\n margin: 12px 0 0;\n}\n\n.mjo-adv {\n margin-top: 10px;\n font-size: 12px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-adv-read {\n display: flex;\n flex-wrap: wrap;\n gap: 10px 16px;\n padding-top: 4px;\n font-size: 13px;\n color: var(--mj-text-secondary, #cbd5e1);\n}\n"] }]
|
|
2678
|
+
args: [{ standalone: false, selector: 'bizapps-product-pricing-widget', template: "<div class=\"mjo-pricing-widget-wrap\">\n @if (ActiveToast) {\n <div class=\"mjo-toast\" [class]=\"'mjo-toast--' + ActiveToast.Type\">\n <div class=\"mjo-toast-left\">\n <i [class]=\"ActiveToast.Icon\"></i>\n <span class=\"mjo-toast-msg\">{{ ActiveToast.Message }}</span>\n </div>\n <button type=\"button\" class=\"mjo-toast-close\" (click)=\"DismissToast()\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n }\n\n <div class=\"mjo-pricing-card\">\n <div class=\"mjo-card-header\">\n <div class=\"mjo-card-title\">\n <i class=\"fa-solid fa-tags\"></i>\n <span>Pricing</span>\n </div>\n <div class=\"mjo-card-header-actions\">\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"OpenQuote()\" title=\"See which price a sample customer receives\">\n <i class=\"fa-solid fa-calculator\"></i>\n <span>Simulate price</span>\n </button>\n @if (RetiredCount > 0) {\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"ToggleRetired()\" [title]=\"ShowRetired ? 'Hide inactive and expired prices' : 'Show inactive and expired prices'\">\n <i [class]=\"ShowRetired ? 'fa-solid fa-eye-slash' : 'fa-solid fa-eye'\"></i>\n <span>{{ ShowRetired ? 'Hide inactive' : 'Show inactive (' + RetiredCount + ')' }}</span>\n </button>\n }\n <div class=\"mjo-view-switch\" role=\"tablist\" aria-label=\"Pricing view\">\n <button type=\"button\" role=\"tab\" [class.active]=\"ViewMode === 'cards'\" [attr.aria-selected]=\"ViewMode === 'cards'\" (click)=\"SetView('cards')\">\n <i class=\"fa-solid fa-tags\"></i><span>Prices</span>\n </button>\n @if (BandRows.length > 0 || EditMode) {\n <button type=\"button\" role=\"tab\" [class.active]=\"ViewMode === 'bands'\" [attr.aria-selected]=\"ViewMode === 'bands'\" (click)=\"SetView('bands')\">\n <i class=\"fa-solid fa-layer-group\"></i><span>Revenue bands</span>\n </button>\n }\n <button type=\"button\" role=\"tab\" [class.active]=\"ViewMode === 'grid'\" [attr.aria-selected]=\"ViewMode === 'grid'\" (click)=\"SetView('grid')\">\n <i class=\"fa-solid fa-table-cells\"></i><span>Grid</span>\n </button>\n </div>\n </div>\n </div>\n\n @if (ShowChannelBar) {\n <div class=\"mjo-channel-bar\" role=\"tablist\" aria-label=\"Price list\">\n <span class=\"mjo-channel-label\">Price list</span>\n <div class=\"mjo-channel-list\">\n @for (ch of VisibleChannels; track ch.ID) {\n <button\n type=\"button\"\n class=\"mjo-channel-tab\"\n [class.active]=\"SelectedChannelID === ch.ID\"\n role=\"tab\"\n [attr.aria-selected]=\"SelectedChannelID === ch.ID\"\n [title]=\"ch.ID == null ? 'Prices every customer can receive' : (ch.DiscountDescription || 'Prices for customers assigned to this price list')\"\n (click)=\"SelectChannel(ch.ID)\">\n <i [class]=\"ch.Icon\"></i>\n <span>{{ ch.Name }}</span>\n <span class=\"mjo-channel-count\">{{ ch.TierCount }} {{ ch.TierCount === 1 ? 'price' : 'prices' }}</span>\n </button>\n }\n </div>\n </div>\n }\n\n @if (ViewMode === 'grid') {\n @if (ProductPricesViewParams) {\n <div class=\"mjo-grid-wrap\">\n <mj-explorer-entity-data-grid\n [Params]=\"ProductPricesViewParams\"\n [NewRecordValues]=\"NewPriceRecordValues\"\n [Height]=\"420\"\n [AllowLoad]=\"true\"\n [ShowToolbar]=\"true\"\n [ShowNewButton]=\"EditMode\"\n [ShowDeleteButton]=\"EditMode\"\n (Navigate)=\"Navigate.emit($event)\">\n </mj-explorer-entity-data-grid>\n </div>\n }\n } @else if (ViewMode === 'bands') {\n <div class=\"mjo-bands\">\n @if (IsLoading) {\n <div class=\"mjo-loading-state\">\n <mj-loading text=\"Loading prices\u2026\" size=\"small\"></mj-loading>\n </div>\n } @else {\n <p class=\"mjo-bands-lede\">\n Price by the customer's annual revenue. Each band includes its lower limit and excludes its upper\n limit. Revenue comes from the organization's latest tax return; if none is on file, the band is\n selected on the order line.\n </p>\n @if (BandRows.length === 0) {\n <mj-empty-state\n Size=\"compact\"\n Icon=\"fa-solid fa-layer-group\"\n Title=\"No revenue bands\"\n [Message]=\"EditMode ? 'Create a band ladder below, or add bands one at a time.' : 'Edit the product to add revenue bands.'\" />\n } @else {\n <div class=\"mjo-band-table-wrap\">\n <table class=\"mjo-band-table\">\n <thead>\n <tr>\n <th>Band</th>\n <th class=\"num\">From ($M)</th>\n <th class=\"num\">To ($M)</th>\n <th class=\"num\">Price</th>\n <th>Status</th>\n @if (EditMode) { <th></th> }\n </tr>\n </thead>\n <tbody>\n @for (row of BandRows; track row.ID) {\n <tr [class.retired]=\"row.Retired\">\n <td class=\"mjo-band-name\">\n @if (EditMode) {\n <input class=\"mjo-input-text\" [(ngModel)]=\"row.Record.Name\" (blur)=\"SaveBandName(row)\" [disabled]=\"IsSaving\" aria-label=\"Band name\">\n } @else {\n <span class=\"mjo-band-title\">{{ row.Record.Name }}</span>\n }\n <span class=\"mjo-band-range\">{{ row.RangeText }}</span>\n </td>\n <td class=\"num\">\n @if (EditMode) {\n <input type=\"number\" class=\"mjo-input-num mjo-input-num--wide\" [(ngModel)]=\"row.MinMillions\" min=\"0\" step=\"0.5\" placeholder=\"0\" (blur)=\"SaveBandEdges(row)\" [disabled]=\"IsSaving\" aria-label=\"Revenue from, in millions\">\n } @else {\n {{ row.MinMillions ?? 0 }}\n }\n </td>\n <td class=\"num\">\n @if (EditMode) {\n <input type=\"number\" class=\"mjo-input-num mjo-input-num--wide\" [(ngModel)]=\"row.MaxMillions\" min=\"0\" step=\"0.5\" placeholder=\"No limit\" (blur)=\"SaveBandEdges(row)\" [disabled]=\"IsSaving\" aria-label=\"Revenue to, in millions\">\n } @else {\n {{ row.MaxMillions == null ? 'No limit' : row.MaxMillions }}\n }\n </td>\n <td class=\"num\">\n @if (EditMode) {\n <input type=\"text\" mjoCurrency class=\"mjo-input-price\" [(ngModel)]=\"row.Record.Amount\" (blur)=\"SaveBandAmount(row)\" [disabled]=\"IsSaving\" aria-label=\"Price\">\n } @else {\n <span class=\"mjo-band-amount\">{{ FormatCurrency(row.Amount) }}</span>\n }\n </td>\n <td>\n <span class=\"mjo-offer-status\" [class.retired]=\"row.Retired\">{{ row.StatusText || 'Active' }}</span>\n </td>\n @if (EditMode) {\n <td class=\"mjo-band-actions\">\n @if (row.Retired) {\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"RestorePrice(row.Record)\" [disabled]=\"IsSaving\" title=\"Make this band available to new order lines\">Activate</button>\n } @else {\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"RetirePrice(row.Record)\" [disabled]=\"IsSaving\" title=\"Stop offering this band on new order lines. Existing lines keep their price.\">Deactivate</button>\n }\n <button type=\"button\" class=\"mjo-btn-subtle mjo-btn-icon\" (click)=\"OpenPriceRecord(row.Record, $event)\" title=\"Open price record\">\n <i class=\"fa-solid fa-arrow-up-right-from-square\"></i>\n </button>\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n </div>\n @if (LadderIssues.length) {\n <div class=\"mjo-ladder-issues\">\n <i class=\"fa-solid fa-triangle-exclamation\"></i>\n <span>Revenue ranges with no price, or more than one:</span>\n @for (issue of LadderIssues; track issue) {\n <span class=\"mjo-ladder-issue\">{{ issue }}</span>\n }\n </div>\n } @else {\n <div class=\"mjo-ladder-ok\">\n <i class=\"fa-solid fa-circle-check\"></i>\n <span>All revenue levels are covered. No gaps or overlaps.</span>\n </div>\n }\n }\n\n @if (EditMode) {\n @if (BandRows.length === 0) {\n <div class=\"mjo-band-setup\">\n <div class=\"mjo-when-title\">Create band ladder</div>\n <div class=\"mjo-quick-add-inputs\">\n <label class=\"mjo-field-group mjo-field-group--grow\">\n <span class=\"mjo-sub-label\">Breakpoints ($M)</span>\n <input class=\"mjo-input-text mjo-input-text--wide\" [(ngModel)]=\"BandSetupEdgesText\" [disabled]=\"IsSaving\" placeholder=\"0, 2, 5, 10, 25, 50, 75, 100, 150, 250\">\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Default price</span>\n <input type=\"text\" mjoCurrency class=\"mjo-input-price\" [(ngModel)]=\"BandSetupAmount\" [disabled]=\"IsSaving\">\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Effective date</span>\n <input type=\"date\" class=\"mjo-input-text\" [(ngModel)]=\"NewPriceEffectiveFrom\" [disabled]=\"IsSaving\">\n </label>\n <button type=\"button\" class=\"mjo-btn-add\" [disabled]=\"IsSaving\" (click)=\"CreateBandLadder()\">\n @if (IsSaving) {\n <mj-loading class=\"mjo-btn-add__loading\" [showText]=\"false\" size=\"small\" logoColor=\"currentColor\"></mj-loading>\n <span>Saving\u2026</span>\n } @else {\n <i class=\"fa-solid fa-plus\"></i>\n <span>Create bands</span>\n }\n </button>\n </div>\n <span class=\"mjo-quick-add-hint\">{{ BandSetupPreview }} All bands start at the default price. Adjust each price in the table.</span>\n </div>\n } @else {\n <div class=\"mjo-quick-add-bar\">\n <div class=\"mjo-quick-add-inputs\">\n <span class=\"mjo-quick-add-label\">\n <i class=\"fa-solid fa-plus-circle\"></i> Add band\n </span>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">From ($M)</span>\n <input type=\"number\" class=\"mjo-input-num mjo-input-num--wide\" [(ngModel)]=\"NewBandMinMillions\" min=\"0\" step=\"0.5\" placeholder=\"0\" [disabled]=\"IsSaving\">\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">To ($M)</span>\n <input type=\"number\" class=\"mjo-input-num mjo-input-num--wide\" [(ngModel)]=\"NewBandMaxMillions\" min=\"0\" step=\"0.5\" placeholder=\"No limit\" [disabled]=\"IsSaving\">\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Price</span>\n <input type=\"text\" mjoCurrency class=\"mjo-input-price\" [(ngModel)]=\"NewBandAmount\" [disabled]=\"IsSaving\">\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Effective date</span>\n <input type=\"date\" class=\"mjo-input-text\" [(ngModel)]=\"NewPriceEffectiveFrom\" [disabled]=\"IsSaving\">\n </label>\n <button type=\"button\" class=\"mjo-btn-add\" [disabled]=\"IsSaving\" (click)=\"AddBand()\">\n @if (IsSaving) {\n <mj-loading class=\"mjo-btn-add__loading\" [showText]=\"false\" size=\"small\" logoColor=\"currentColor\"></mj-loading>\n <span>Saving\u2026</span>\n } @else {\n <i class=\"fa-solid fa-plus\"></i>\n <span>Add band</span>\n }\n </button>\n </div>\n @if (TopBandOpen) {\n <span class=\"mjo-quick-add-hint\">The top band has no upper limit. Set one before adding a band above it.</span>\n } @else {\n <span class=\"mjo-quick-add-hint\">Leave To blank for the top band. Applies to orders dated on or after the effective date.</span>\n }\n </div>\n }\n }\n }\n </div>\n } @else {\n @if (IsLoading) {\n <div class=\"mjo-loading-state\">\n <mj-loading text=\"Loading prices\u2026\" size=\"small\"></mj-loading>\n </div>\n } @else if (VisiblePrices.length === 0) {\n <mj-empty-state\n Size=\"compact\"\n Icon=\"fa-solid fa-tags\"\n Title=\"No prices\"\n [Message]=\"EditMode ? 'Add a price below. Add conditions only when a price applies to specific customers.' : 'Edit the product to add prices.'\" />\n } @else {\n <div\n class=\"mjo-price-list\"\n cdkDropList\n [cdkDropListDisabled]=\"!EditMode\"\n (cdkDropListDropped)=\"OnPriceDrop($event)\">\n @for (row of VisiblePrices; track row.ID) {\n <article\n class=\"mjo-offer\"\n cdkDrag\n [cdkDragDisabled]=\"!EditMode || row.Inherited\"\n [class.open]=\"ExpandedPriceID === row.ID && PriceCanExpand(row)\"\n [class.selected]=\"SelectedPriceID === row.ID\"\n [class.inherited]=\"row.Inherited\"\n [class.retired]=\"row.Retired\">\n <button type=\"button\" class=\"mjo-offer-h\" (click)=\"TogglePrice(row)\">\n @if (EditMode && !row.Inherited) {\n <span class=\"mjo-offer-grip\" cdkDragHandle title=\"Drag to change priority\">\n <i class=\"fa-solid fa-grip-vertical\"></i>\n </span>\n }\n <span class=\"mjo-offer-amt\">{{ FormatCurrency(row.Amount) }}</span>\n <span class=\"mjo-offer-copy\">\n <span class=\"mjo-offer-name\">{{ row.Name }}</span>\n @if (row.WhenText) {\n <span class=\"mjo-offer-when\">{{ row.WhenText }}</span>\n }\n </span>\n @if (row.StatusText) {\n <span class=\"mjo-offer-status\" [class.retired]=\"row.Retired\">{{ row.StatusText }}</span>\n }\n @if (row.SourceLabel) {\n <span class=\"mjo-offer-from inherited\">{{ row.SourceLabel }}</span>\n }\n </button>\n @if (ExpandedPriceID === row.ID && PriceCanExpand(row)) {\n <div class=\"mjo-offer-body\" (click)=\"$event.stopPropagation()\">\n @if (row.Inherited) {\n <p class=\"mjo-inherit-note\">\n Inherited from the product category. A product price with the same name overrides it.\n @if (EditMode) {\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"OverrideInherited(row)\">Override on this product</button>\n }\n </p>\n } @else {\n @if (EditMode) {\n <div class=\"mjo-offer-fields\">\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Name</span>\n <input class=\"mjo-input-text\" [(ngModel)]=\"row.Record.Name\" (blur)=\"SavePrice(row.Record)\">\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Price</span>\n <input type=\"text\" mjoCurrency class=\"mjo-input-price\" [(ngModel)]=\"row.Record.Amount\" (blur)=\"SavePrice(row.Record)\">\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Pricing model</span>\n <select class=\"mjo-input-select\" [(ngModel)]=\"row.Record.PricingModel\" (change)=\"SavePrice(row.Record)\">\n <option value=\"PerUnit\">Per unit</option>\n <option value=\"Package\">Package</option>\n <option value=\"Volume\">Volume</option>\n <option value=\"Flat\">Flat</option>\n </select>\n </label>\n </div>\n <div class=\"mjo-offer-fields mjo-offer-lifecycle\">\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Status</span>\n <select class=\"mjo-input-select\" [(ngModel)]=\"row.Record.Status\" (change)=\"OnStatusChange(row.Record)\" [disabled]=\"IsSaving\">\n <option value=\"Active\">Active</option>\n <option value=\"Inactive\">Inactive</option>\n </select>\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Expiration date</span>\n <input type=\"date\" class=\"mjo-input-text\" [ngModel]=\"EffectiveToInput(row.Record)\" (ngModelChange)=\"OnEffectiveToChange(row.Record, $event)\" [disabled]=\"IsSaving\">\n </label>\n @if (row.Retired) {\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"RestorePrice(row.Record)\" [disabled]=\"IsSaving\" title=\"Make this price available to new order lines\">Activate</button>\n } @else {\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"RetirePrice(row.Record)\" [disabled]=\"IsSaving\" title=\"Stop offering this price on new order lines. Existing lines keep their price.\">Deactivate</button>\n }\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"OpenPriceRecord(row.Record, $event)\">\n <i class=\"fa-solid fa-arrow-up-right-from-square\"></i>\n <span>Open record</span>\n </button>\n </div>\n }\n @if (EditMode && row.WhenText && WhenEditorPriceID !== row.ID) {\n <div class=\"mjo-when-read\">\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"OpenWhenEditor(row)\">Edit conditions</button>\n </div>\n } @else if (EditMode && WhenEditorPriceID !== row.ID) {\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"OpenWhenEditor(row)\">+ Conditions</button>\n }\n @if (EditMode && WhenEditorPriceID === row.ID) {\n <div class=\"mjo-when-edit\">\n <div class=\"mjo-when-head\">\n <div class=\"mjo-when-title\">Conditions</div>\n <label class=\"mjo-when-allfields\">\n <input type=\"checkbox\" [ngModel]=\"ShowAllWhenFields\" (ngModelChange)=\"ToggleAllWhenFields($event)\">\n <span>Show all fields</span>\n </label>\n </div>\n <mj-filter-builder\n [fields]=\"WhenFields\"\n [filter]=\"WhenFilter\"\n [showSummary]=\"true\"\n (filterChange)=\"OnWhenFilterChange($event)\">\n </mj-filter-builder>\n <div class=\"mjo-when-actions\">\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"ClearWhen(row)\">Remove conditions</button>\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"CloseWhenEditor()\">Cancel</button>\n <button type=\"button\" class=\"mjo-btn-add\" (click)=\"SaveWhen(row)\">Save conditions</button>\n </div>\n </div>\n }\n @if (HasAdvanced(row.Record) || AdvancedEditingID === row.ID) {\n <div class=\"mjo-adv\">\n <div class=\"mjo-when-title\">Quantity, fee type & priority</div>\n @if (EditMode) {\n <div class=\"mjo-adv-grid\">\n <label class=\"mjo-field-group\"><span class=\"mjo-sub-label\">Min quantity</span>\n <input type=\"number\" class=\"mjo-input-num\" [(ngModel)]=\"row.Record.MinQuantity\" (blur)=\"SavePrice(row.Record)\">\n </label>\n <label class=\"mjo-field-group\"><span class=\"mjo-sub-label\">Max quantity</span>\n <input type=\"number\" class=\"mjo-input-num\" [(ngModel)]=\"row.Record.MaxQuantity\" (blur)=\"SavePrice(row.Record)\">\n </label>\n <label class=\"mjo-field-group\"><span class=\"mjo-sub-label\">Fee type</span>\n <select class=\"mjo-input-select\" [(ngModel)]=\"row.Record.FeeType\" (change)=\"SavePrice(row.Record)\">\n <option value=\"Standard\">Standard</option>\n <option value=\"Setup\">Setup</option>\n <option value=\"Recurring\">Recurring</option>\n <option value=\"Overage\">Overage</option>\n </select>\n </label>\n <label class=\"mjo-field-group\"><span class=\"mjo-sub-label\">Priority</span>\n <input type=\"number\" class=\"mjo-input-num\" [(ngModel)]=\"row.Record.Priority\" (blur)=\"SavePrice(row.Record)\">\n </label>\n </div>\n } @else {\n <div class=\"mjo-adv-read\">\n @if (row.Record.MinQuantity != null) {\n <span>Min quantity {{ row.Record.MinQuantity }}</span>\n }\n @if (row.Record.MaxQuantity != null) {\n <span>Max quantity {{ row.Record.MaxQuantity }}</span>\n }\n @if (row.Record.FeeType && row.Record.FeeType !== 'Standard') {\n <span>{{ row.Record.FeeType }} fee</span>\n }\n @if (row.Record.EffectiveTo) {\n <span>Expires {{ FormatDate(row.Record.EffectiveTo) }}</span>\n }\n </div>\n }\n </div>\n } @else if (EditMode) {\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"OpenAdvanced(row.ID, $event)\">+ Quantity, fee type & priority</button>\n }\n }\n </div>\n }\n </article>\n }\n </div>\n }\n\n @if (EditMode) {\n <div class=\"mjo-quick-add-bar\">\n <div class=\"mjo-quick-add-inputs\">\n <span class=\"mjo-quick-add-label\">\n <i class=\"fa-solid fa-plus-circle\"></i> Add price\n </span>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Name</span>\n <input class=\"mjo-input-text\" [(ngModel)]=\"NewPriceName\" placeholder=\"List price\">\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Price</span>\n <input type=\"text\" mjoCurrency class=\"mjo-input-price\" [(ngModel)]=\"NewPriceAmount\">\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Effective date</span>\n <input type=\"date\" class=\"mjo-input-text\" [(ngModel)]=\"NewPriceEffectiveFrom\" [disabled]=\"IsSaving\">\n </label>\n <span class=\"mjo-quick-add-hint\">Applies to orders dated on or after this date.</span>\n <button type=\"button\" class=\"mjo-btn-add\" [disabled]=\"IsSaving\" (click)=\"AddPrice()\">\n @if (IsSaving) {\n <mj-loading class=\"mjo-btn-add__loading\" [showText]=\"false\" size=\"small\" logoColor=\"currentColor\"></mj-loading>\n <span>Saving\u2026</span>\n } @else {\n <i class=\"fa-solid fa-plus\"></i>\n <span>Add price</span>\n }\n </button>\n </div>\n </div>\n }\n }\n </div>\n</div>\n\n@if (QuoteDrawerOpen) {\n <div class=\"mjo-quote-scrim\" (click)=\"CloseQuote()\"></div>\n <aside class=\"mjo-quote-drawer\" role=\"dialog\" aria-label=\"Price simulation\">\n <div class=\"mjo-quote-drawer-h\">\n <h3>Price simulation</h3>\n <button type=\"button\" class=\"mjo-btn-subtle mjo-quote-close\" (click)=\"CloseQuote()\" aria-label=\"Close\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n <p class=\"mjo-quote-lede\">\n @if (SelectedChannelID === null) {\n The price a sample customer would get today.\n } @else {\n The price a sample customer on this price list would get today. When the list has no price that applies, the Standard price does, as on an order.\n }\n </p>\n\n <div class=\"mjo-quote-form\">\n <label class=\"mjo-quote-field\">\n <span>Customer type</span>\n <select class=\"mjo-input-select\" [(ngModel)]=\"QuoteOrgType\" (ngModelChange)=\"RunQuote()\">\n <option value=\"Member\">Member</option>\n <option value=\"Prospect\">Prospect</option>\n </select>\n </label>\n <label class=\"mjo-quote-field\">\n <span>Quantity</span>\n <input type=\"number\" class=\"mjo-input-num\" [(ngModel)]=\"SimQuantity\" min=\"1\" (ngModelChange)=\"RunQuote()\">\n </label>\n <label class=\"mjo-quote-field mjo-quote-field--wide\">\n <span>Annual revenue ($M)</span>\n <input type=\"number\" class=\"mjo-input-num\" [(ngModel)]=\"QuoteRevenueMillions\" min=\"0\" step=\"0.5\" placeholder=\"Unknown\" (ngModelChange)=\"RunQuote()\">\n <small>Leave blank for a customer with no revenue on file.</small>\n </label>\n </div>\n\n <div class=\"mjo-quote-result\">\n <div class=\"mjo-quote-amt\">{{ QuoteResult.AmountText }}</div>\n <p class=\"mjo-quote-why\">{{ QuoteResult.Why }}</p>\n </div>\n\n @if (QuoteResult.Skipped.length) {\n <div class=\"mjo-quote-skipped-title\">Not applied</div>\n <ul class=\"mjo-quote-skipped\">\n @for (s of QuoteResult.Skipped; track s) {\n <li>{{ s }}</li>\n }\n </ul>\n }\n </aside>\n}\n", styles: [".mjo-pricing-widget-wrap {\n display: flex;\n flex-direction: column;\n gap: 16px;\n width: 100%;\n position: relative;\n}\n\n/* In-Widget Toast Notification */\n.mjo-toast {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 10px 16px;\n border-radius: var(--mj-radius-md, 8px);\n font-size: 13px;\n font-weight: 500;\n animation: mjo-toast-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n border: 1px solid transparent;\n}\n\n@keyframes mjo-toast-in {\n from { opacity: 0; transform: translateY(-6px); }\n to { opacity: 1; transform: translateY(0); }\n}\n\n.mjo-toast--success {\n background: rgba(22, 163, 74, 0.15);\n border-color: rgba(22, 163, 74, 0.3);\n color: #22c55e;\n}\n\n.mjo-toast--error {\n background: rgba(239, 68, 68, 0.15);\n border-color: rgba(239, 68, 68, 0.3);\n color: #f87171;\n}\n\n.mjo-toast--info {\n background: rgba(2, 132, 199, 0.15);\n border-color: rgba(2, 132, 199, 0.3);\n color: #38bdf8;\n}\n\n.mjo-toast-left {\n display: flex;\n align-items: center;\n gap: 10px;\n}\n\n.mjo-toast-left i {\n font-size: 16px;\n}\n\n.mjo-toast-msg {\n line-height: 1.4;\n}\n\n.mjo-toast-close {\n background: transparent;\n border: none;\n color: currentColor;\n opacity: 0.7;\n cursor: pointer;\n padding: 4px 8px;\n border-radius: 4px;\n font-size: 13px;\n}\n\n.mjo-toast-close:hover {\n opacity: 1;\n}\n\n.mjo-pricing-card {\n background: var(--mj-bg-surface-card, rgba(255, 255, 255, 0.05));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n border-radius: var(--mj-radius-lg, 10px);\n overflow: hidden;\n}\n\n.mjo-card-header-actions {\n display: flex;\n gap: 8px;\n align-items: center;\n}\n\n.mjo-card-header {\n padding: 12px 16px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.1));\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n}\n\n.mjo-card-title {\n font-size: 13.5px;\n font-weight: 700;\n color: var(--mj-text-primary, #0f172a);\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.mjo-card-title i {\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-base-pill {\n font-size: 12px;\n color: var(--mj-text-muted, #64748b);\n}\n\n.mjo-base-pill strong {\n font-family: var(--mj-font-family-mono);\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-pricing-fields {\n padding: 16px;\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));\n gap: 16px;\n}\n\n/* Channel Tabs Header */\n.mjo-channel-bar {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.1));\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n padding: 0 12px;\n flex-wrap: wrap;\n gap: 8px;\n}\n\n.mjo-channel-label {\n font-size: 11.5px;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--mj-text-muted, #94a3b8);\n padding-right: 4px;\n}\n\n.mjo-channel-list {\n display: flex;\n align-items: center;\n gap: 4px;\n overflow-x: auto;\n}\n\n.mjo-channel-tab {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n padding: 12px 14px;\n background: transparent;\n border: none;\n border-bottom: 2px solid transparent;\n font-size: 12.5px;\n font-weight: 600;\n color: var(--mj-text-muted, #94a3b8);\n cursor: pointer;\n transition: all 0.15s ease;\n white-space: nowrap;\n}\n\n.mjo-channel-tab:hover {\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-channel-tab.active {\n color: var(--mj-brand-primary, #0284c7);\n border-bottom-color: var(--mj-brand-primary, #0284c7);\n background: var(--mj-bg-surface-card, rgba(255, 255, 255, 0.05));\n}\n\n.mjo-channel-count {\n font-size: 10px;\n font-weight: 700;\n padding: 2px 6px;\n border-radius: 9999px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.15));\n color: var(--mj-text-secondary, #cbd5e1);\n}\n\n.mjo-channel-tab.active .mjo-channel-count {\n background: rgba(2, 132, 199, 0.18);\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-channel-actions {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.mjo-btn-subtle {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 6px 12px;\n border-radius: 6px;\n font-size: 11.5px;\n font-weight: 600;\n color: var(--mj-text-primary, #0f172a);\n background: var(--mj-bg-surface-card, rgba(255, 255, 255, 0.05));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n cursor: pointer;\n transition: all 0.15s ease;\n}\n\n.mjo-btn-subtle:hover {\n border-color: var(--mj-brand-primary, #0284c7);\n color: var(--mj-brand-primary, #0284c7);\n}\n\n/* Tier Ladder Table */\n.mjo-ladder-table-wrap {\n overflow-x: auto;\n width: 100%;\n}\n\n.mjo-ladder-table {\n width: 100%;\n border-collapse: collapse;\n font-size: 13px;\n text-align: left;\n}\n\n.mjo-ladder-table th {\n padding: 10px 14px;\n font-size: 11px;\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--mj-text-muted, #64748b);\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.05));\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n}\n\n.mjo-ladder-table td {\n padding: 11px 14px;\n border-bottom: 1px solid var(--mj-border-subtle, rgba(255, 255, 255, 0.06));\n color: var(--mj-text-primary, #0f172a);\n vertical-align: middle;\n}\n\n.mjo-ladder-table tr:hover {\n background: var(--mj-bg-surface-hover, rgba(255, 255, 255, 0.03));\n}\n\n.mjo-tier-title {\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-range-pill {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n font-family: var(--mj-font-family-mono);\n font-weight: 700;\n font-size: 12px;\n padding: 3px 8px;\n border-radius: 6px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.12));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n}\n\n.mjo-price-input {\n font-family: var(--mj-font-family-mono);\n font-size: 13.5px;\n font-weight: 700;\n color: var(--mj-text-primary, #0f172a);\n background: var(--mj-bg-surface, rgba(0, 0, 0, 0.2));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.15));\n border-radius: 6px;\n padding: 5px 8px;\n width: 100px;\n transition: all 0.15s ease;\n}\n\n.mjo-price-input:focus {\n outline: none;\n border-color: var(--mj-brand-primary, #0284c7);\n box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25);\n}\n\n.mjo-price-val {\n font-family: var(--mj-font-family-mono);\n font-size: 13px;\n font-weight: 700;\n color: var(--mj-text-primary, #0f172a);\n display: inline-block;\n padding: 4px 0;\n}\n\n.mjo-disc-tag {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n font-size: 11px;\n font-weight: 700;\n padding: 2px 7px;\n border-radius: 4px;\n background: rgba(22, 163, 74, 0.15);\n color: #22c55e;\n}\n\n.mjo-standard-tag {\n font-size: 11px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-savings-val {\n color: #22c55e;\n font-family: var(--mj-font-family-mono);\n font-size: 12.5px;\n}\n\n.mjo-model-tag {\n font-size: 11px;\n font-weight: 600;\n padding: 2px 7px;\n border-radius: 4px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.1));\n color: var(--mj-text-secondary, #cbd5e1);\n}\n\n.mjo-date-tag {\n font-size: 11.5px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-th-num, .mjo-td-num { text-align: left; }\n.mjo-th-actions, .mjo-td-actions { text-align: right; }\n\n.mjo-action-btn {\n width: 28px;\n height: 28px;\n border-radius: 6px;\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n background: var(--mj-bg-surface, rgba(255, 255, 255, 0.05));\n color: var(--mj-text-muted, #94a3b8);\n cursor: pointer;\n font-size: 11px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n transition: all 0.15s ease;\n margin-left: 4px;\n}\n\n.mjo-action-btn:hover {\n color: var(--mj-brand-primary, #0284c7);\n border-color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-action-btn--delete:hover {\n color: #ef4444;\n border-color: #ef4444;\n}\n\n/* 1-Click Quick Add Bar */\n.mjo-quick-add-bar {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 12px 16px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.1));\n border-top: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n gap: 12px;\n flex-wrap: wrap;\n}\n\n.mjo-quick-add-inputs {\n display: flex;\n align-items: center;\n gap: 10px;\n flex-wrap: wrap;\n}\n\n.mjo-quick-add-label {\n font-size: 12.5px;\n font-weight: 700;\n color: var(--mj-brand-primary, #0284c7);\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.mjo-quick-add-hint {\n font-size: 11.5px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-field-group {\n display: flex;\n align-items: center;\n gap: 4px;\n}\n\n.mjo-sub-label {\n font-size: 11.5px;\n font-weight: 600;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-input-num {\n width: 65px;\n padding: 5px 8px;\n font-size: 12.5px;\n font-family: var(--mj-font-family-mono);\n font-weight: 700;\n text-align: center;\n border-radius: 6px;\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.15));\n background: var(--mj-bg-surface, rgba(0, 0, 0, 0.2));\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-input-price {\n width: 110px;\n padding: 5px 8px;\n font-size: 12.5px;\n font-family: var(--mj-font-family-mono);\n font-weight: 700;\n text-align: right;\n border-radius: 6px;\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.15));\n background: var(--mj-bg-surface, rgba(0, 0, 0, 0.2));\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-input-select {\n padding: 5px 8px;\n font-size: 12px;\n font-weight: 600;\n border-radius: 6px;\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.15));\n background: var(--mj-bg-surface, rgba(0, 0, 0, 0.2));\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-btn-add {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 6px 14px;\n border-radius: 6px;\n font-size: 12px;\n font-weight: 700;\n color: #ffffff;\n background: #0284c7;\n border: none;\n cursor: pointer;\n transition: all 0.15s ease;\n}\n\n.mjo-btn-add:hover {\n background: #0369a1;\n}\n\n.mjo-btn-add:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* mj-loading fills its container by default; inside the button it sizes to its small logo. */\n.mjo-btn-add__loading {\n width: auto;\n height: auto;\n flex: none;\n}\n\n.mjo-guard-badge {\n font-size: 11.5px;\n color: #22c55e;\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n/* Volume Step Curve Diagram */\n.mjo-step-curve-wrap {\n padding: 14px 18px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.mjo-step-curve-title {\n font-size: 11px;\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--mj-text-muted, #94a3b8);\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.mjo-step-curve-title i {\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-step-curve-bars {\n display: flex;\n align-items: flex-end;\n gap: 12px;\n height: 80px;\n padding-top: 8px;\n}\n\n.mjo-step-col {\n flex: 1;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 4px;\n height: 100%;\n justify-content: flex-end;\n}\n\n.mjo-step-track {\n width: 100%;\n max-width: 60px;\n height: 100%;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.1));\n border-radius: 4px 4px 0 0;\n display: flex;\n align-items: flex-end;\n}\n\n.mjo-step-fill {\n width: 100%;\n border-radius: 4px 4px 0 0;\n background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);\n min-height: 8px;\n transition: height 0.3s ease;\n}\n\n.mjo-step-val {\n font-size: 11px;\n font-weight: 700;\n font-family: var(--mj-font-family-mono);\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-step-label {\n font-size: 10px;\n font-family: var(--mj-font-family-mono);\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-loading-state {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 10px;\n padding: 30px;\n font-size: 13px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-grid-wrap {\n padding: 0;\n min-height: 400px;\n height: 420px;\n}\n\n.mjo-price-list {\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding: 12px 14px 16px;\n}\n\n.mjo-offer {\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n border-radius: 12px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.12));\n overflow: hidden;\n}\n\n.mjo-offer.selected {\n border-color: var(--mj-brand-primary, #38bdf8);\n box-shadow: inset 0 0 0 1px var(--mj-brand-primary, #38bdf8);\n}\n\n.mjo-offer-grip {\n color: var(--mj-text-muted, #94a3b8);\n cursor: grab;\n padding: 0 4px 0 0;\n display: inline-flex;\n}\n\n.mjo-offer-h {\n width: 100%;\n display: grid;\n grid-template-columns: 108px 1fr auto;\n gap: 14px;\n align-items: center;\n padding: 12px 14px;\n border: 0;\n background: transparent;\n color: inherit;\n text-align: left;\n cursor: pointer;\n}\n\n.mjo-offer-h:has(.mjo-offer-grip) {\n grid-template-columns: 18px 108px 1fr auto;\n}\n\n.mjo-offer-h:hover {\n background: color-mix(in srgb, var(--mj-brand-primary, #0076b6) 8%, transparent);\n}\n\n.mjo-offer-amt {\n font-variant-numeric: tabular-nums;\n font-weight: 700;\n font-size: 18px;\n letter-spacing: -0.02em;\n text-align: left;\n}\n\n.mjo-offer-copy {\n display: flex;\n flex-direction: column;\n gap: 2px;\n min-width: 0;\n}\n\n.mjo-offer-name {\n font-weight: 700;\n font-size: 14px;\n}\n\n.mjo-offer-when {\n font-size: 12.5px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-offer-from {\n font-size: 11px;\n font-weight: 700;\n color: var(--mj-status-success-text, #86efac);\n white-space: nowrap;\n}\n\n.mjo-offer-body {\n padding: 0 14px 14px;\n border-top: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n}\n\n.mjo-when-read {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 12px;\n padding-top: 12px;\n font-size: 13px;\n color: var(--mj-text-secondary, #cbd5e1);\n}\n\n.mjo-when-edit {\n padding-top: 12px;\n}\n\n.mjo-when-actions {\n display: flex;\n justify-content: flex-end;\n gap: 8px;\n margin-top: 10px;\n}\n\n.mjo-quote-scrim {\n position: fixed;\n inset: 0;\n background: rgba(2, 6, 23, 0.55);\n z-index: 1000;\n}\n\n.mjo-quote-drawer {\n position: fixed;\n top: 0;\n right: 0;\n height: 100vh;\n width: min(440px, 100vw);\n box-sizing: border-box;\n overflow-y: auto;\n background: var(--mj-bg-page, #0f172a);\n border-left: 1px solid var(--mj-border-default, #334155);\n z-index: 1001;\n padding: 28px 28px 32px;\n font-size: 14px;\n line-height: 1.5;\n box-shadow: -16px 0 40px rgba(0, 0, 0, 0.35);\n}\n\n.mjo-quote-drawer-h {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 6px;\n}\n\n.mjo-quote-drawer h3 {\n margin: 0;\n font-size: 20px;\n font-weight: 700;\n}\n\n.mjo-quote-close {\n width: 32px;\n height: 32px;\n padding: 0;\n justify-content: center;\n font-size: 16px;\n}\n\n.mjo-quote-lede {\n color: var(--mj-text-muted, #94a3b8);\n font-size: 14px;\n margin: 0 0 24px;\n}\n\n.mjo-quote-form {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 16px 20px;\n padding-bottom: 24px;\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n}\n\n.mjo-quote-field {\n display: flex;\n flex-direction: column;\n gap: 6px;\n min-width: 0;\n}\n\n.mjo-quote-field--wide {\n grid-column: 1 / -1;\n}\n\n.mjo-quote-field > span {\n font-size: 13px;\n font-weight: 600;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-quote-field > small {\n font-size: 12.5px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-quote-field .mjo-input-select,\n.mjo-quote-field .mjo-input-num {\n width: 100%;\n box-sizing: border-box;\n text-align: left;\n font-size: 14px;\n padding: 8px 10px;\n}\n\n.mjo-quote-result {\n padding: 24px 0 8px;\n}\n\n.mjo-quote-amt {\n font-size: 34px;\n font-weight: 700;\n letter-spacing: -0.02em;\n margin: 0 0 6px;\n}\n\n.mjo-quote-why {\n font-size: 14px;\n color: var(--mj-text-muted, #94a3b8);\n margin: 0;\n}\n\n.mjo-offer.inherited {\n border-style: dashed;\n}\n\n.mjo-offer-from.inherited {\n color: #a78bfa;\n}\n\n.mjo-offer-fields,\n.mjo-adv-grid {\n display: flex;\n flex-wrap: wrap;\n gap: 10px;\n padding-top: 12px;\n}\n\n.mjo-input-text {\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.2));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n color: inherit;\n border-radius: 8px;\n padding: 6px 8px;\n min-width: 120px;\n}\n\n.mjo-when-title {\n font-size: 11px;\n font-weight: 700;\n letter-spacing: 0.05em;\n text-transform: uppercase;\n color: var(--mj-text-muted, #94a3b8);\n margin-bottom: 8px;\n}\n\n.mjo-when-rule {\n display: grid;\n grid-template-columns: 1fr 1fr 110px 1fr;\n gap: 6px;\n}\n\n.mjo-when-rule select,\n.mjo-when-rule input {\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.2));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n color: inherit;\n border-radius: 8px;\n padding: 6px 8px;\n}\n\n.mjo-inherit-note {\n font-size: 12.5px;\n color: var(--mj-text-muted, #94a3b8);\n margin: 12px 0 0;\n}\n\n.mjo-adv {\n margin-top: 10px;\n font-size: 12px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-adv-read {\n display: flex;\n flex-wrap: wrap;\n gap: 10px 16px;\n padding-top: 4px;\n font-size: 13px;\n color: var(--mj-text-secondary, #cbd5e1);\n}\n\n/* ---- View switch (cards / revenue bands / grid) ---- */\n.mjo-view-switch {\n display: inline-flex;\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n border-radius: 6px;\n overflow: hidden;\n}\n\n.mjo-view-switch button {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 6px 10px;\n font-size: 11.5px;\n font-weight: 600;\n background: transparent;\n border: none;\n border-right: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n color: var(--mj-text-muted, #94a3b8);\n cursor: pointer;\n}\n\n.mjo-view-switch button:last-child {\n border-right: none;\n}\n\n.mjo-view-switch button:hover {\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-view-switch button.active {\n background: var(--mj-brand-primary, #0284c7);\n color: #fff;\n}\n\n/* ---- Price status (retired / ends) ---- */\n.mjo-offer-status {\n font-size: 11px;\n font-weight: 600;\n padding: 2px 8px;\n border-radius: 999px;\n white-space: nowrap;\n background: rgba(22, 163, 74, 0.12);\n color: var(--mj-status-success-text, #86efac);\n}\n\n.mjo-offer-status.retired {\n background: rgba(148, 163, 184, 0.18);\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-offer.retired .mjo-offer-amt,\n.mjo-offer.retired .mjo-offer-name {\n opacity: 0.6;\n text-decoration: line-through;\n}\n\n.mjo-offer-lifecycle {\n align-items: flex-end;\n border-top: 1px dashed var(--mj-border-default, rgba(255, 255, 255, 0.1));\n margin-top: 10px;\n}\n\n/* ---- Revenue band editor ---- */\n.mjo-bands {\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding: 14px 16px 16px;\n}\n\n.mjo-bands-lede {\n margin: 0;\n font-size: 12.5px;\n line-height: 1.5;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-band-table-wrap {\n overflow-x: auto;\n}\n\n.mjo-band-table {\n width: 100%;\n border-collapse: collapse;\n font-size: 13px;\n}\n\n.mjo-band-table th {\n text-align: left;\n font-size: 11px;\n font-weight: 700;\n letter-spacing: 0.03em;\n text-transform: uppercase;\n color: var(--mj-text-muted, #94a3b8);\n padding: 6px 8px;\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n}\n\n.mjo-band-table td {\n padding: 8px;\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.08));\n vertical-align: middle;\n}\n\n.mjo-band-table th.num,\n.mjo-band-table td.num {\n text-align: right;\n font-family: var(--mj-font-family-mono);\n}\n\n.mjo-band-table tr.retired td {\n opacity: 0.6;\n}\n\n.mjo-band-name {\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.mjo-band-title {\n font-weight: 600;\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-band-range {\n font-size: 11.5px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-band-amount {\n font-weight: 700;\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-band-actions {\n white-space: nowrap;\n text-align: right;\n}\n\n.mjo-band-actions .mjo-btn-subtle + .mjo-btn-subtle {\n margin-left: 6px;\n}\n\n.mjo-btn-icon {\n padding: 6px 8px;\n}\n\n.mjo-input-num--wide {\n width: 90px;\n}\n\n.mjo-input-text--wide {\n width: min(420px, 100%);\n}\n\n.mjo-field-group--grow {\n flex: 1 1 320px;\n}\n\n.mjo-ladder-issues,\n.mjo-ladder-ok {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 8px;\n font-size: 12.5px;\n padding: 8px 12px;\n border-radius: 6px;\n}\n\n.mjo-ladder-issues {\n background: rgba(245, 158, 11, 0.12);\n border: 1px solid rgba(245, 158, 11, 0.3);\n color: #fbbf24;\n}\n\n.mjo-ladder-issue {\n font-weight: 600;\n padding: 1px 8px;\n border-radius: 999px;\n background: rgba(245, 158, 11, 0.18);\n}\n\n.mjo-ladder-ok {\n background: rgba(22, 163, 74, 0.1);\n border: 1px solid rgba(22, 163, 74, 0.25);\n color: var(--mj-status-success-text, #86efac);\n}\n\n.mjo-band-setup {\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding: 12px;\n border: 1px dashed var(--mj-border-default, rgba(255, 255, 255, 0.15));\n border-radius: 8px;\n}\n\n/* ---- When editor header ---- */\n.mjo-when-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n}\n\n.mjo-when-allfields {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n font-size: 11.5px;\n color: var(--mj-text-muted, #94a3b8);\n cursor: pointer;\n}\n\n/* ---- Quote drawer additions ---- */\n.mjo-quote-skipped-title {\n margin-top: 20px;\n font-size: 12px;\n font-weight: 700;\n letter-spacing: 0.03em;\n text-transform: uppercase;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-quote-skipped {\n margin: 8px 0 0;\n padding-left: 18px;\n font-size: 13.5px;\n line-height: 1.6;\n color: var(--mj-text-muted, #94a3b8);\n}\n"] }]
|
|
1510
2679
|
}], () => [], { Product: [{
|
|
1511
2680
|
type: Input
|
|
1512
2681
|
}], EditMode: [{
|
|
@@ -1520,5 +2689,5 @@ export class BizAppsProductPricingWidgetComponent {
|
|
|
1520
2689
|
}], TierAdded: [{
|
|
1521
2690
|
type: Output
|
|
1522
2691
|
}] }); })();
|
|
1523
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BizAppsProductPricingWidgetComponent, { className: "BizAppsProductPricingWidgetComponent", filePath: "lib/custom/Product/widgets/product-pricing-widget.component.ts", lineNumber:
|
|
2692
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BizAppsProductPricingWidgetComponent, { className: "BizAppsProductPricingWidgetComponent", filePath: "lib/custom/Product/widgets/product-pricing-widget.component.ts", lineNumber: 169 }); })();
|
|
1524
2693
|
//# sourceMappingURL=product-pricing-widget.component.js.map
|