@mj-biz-apps/orders-ng 5.49.0 → 5.50.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/OrderHeader/order-header-form.component.d.ts +3 -0
- package/dist/lib/custom/OrderHeader/order-header-form.component.d.ts.map +1 -1
- package/dist/lib/custom/OrderHeader/order-header-form.component.js +23 -9
- package/dist/lib/custom/OrderHeader/order-header-form.component.js.map +1 -1
- package/dist/lib/custom/OrderHeader/order-lines-editor.component.js +26 -24
- package/dist/lib/custom/OrderHeader/order-lines-editor.component.js.map +1 -1
- package/dist/lib/custom/PaymentHeader/payment-header-form.component.d.ts +1 -0
- package/dist/lib/custom/PaymentHeader/payment-header-form.component.d.ts.map +1 -1
- package/dist/lib/custom/PaymentHeader/payment-header-form.component.js +65 -62
- package/dist/lib/custom/PaymentHeader/payment-header-form.component.js.map +1 -1
- package/dist/lib/custom/Product/widgets/product-gl-links.component.d.ts +1 -0
- 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 +12 -8
- 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 +2 -0
- 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 +11 -7
- package/dist/lib/custom/Product/widgets/product-pricing-widget.component.js.map +1 -1
- package/dist/lib/form-panels/subscription-header.panel.js +24 -17
- package/dist/lib/form-panels/subscription-header.panel.js.map +1 -1
- package/dist/lib/form-panels/subscription-terms.panel.js +6 -4
- package/dist/lib/form-panels/subscription-terms.panel.js.map +1 -1
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderConcession/mjbizappsordersorderconcession.form.component.js +10 -6
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderConcession/mjbizappsordersorderconcession.form.component.js.map +1 -1
- package/dist/lib/panels/party-orders-overview.component.d.ts +2 -0
- package/dist/lib/panels/party-orders-overview.component.d.ts.map +1 -1
- package/dist/lib/panels/party-orders-overview.component.js +34 -20
- package/dist/lib/panels/party-orders-overview.component.js.map +1 -1
- package/package.json +2 -2
|
@@ -77,7 +77,7 @@ function BizAppsProductPricingWidgetComponent_Conditional_24_For_5_Template(rf,
|
|
|
77
77
|
const ch_r6 = ctx.$implicit;
|
|
78
78
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
79
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");
|
|
80
|
+
i0.ɵɵproperty("title", ch_r6.ID == null ? "Prices every customer can receive" : ch_r6.DiscountDescription || "Prices for customers assigned to this price list")("EntityName", ctx_r1.PriceListsEntity)("RecordID", ch_r6.ID ?? "")("DisplayName", ch_r6.Name)("HandleClick", false);
|
|
81
81
|
i0.ɵɵattribute("aria-selected", ctx_r1.SelectedChannelID === ch_r6.ID);
|
|
82
82
|
i0.ɵɵadvance();
|
|
83
83
|
i0.ɵɵclassMap(ch_r6.Icon);
|
|
@@ -91,7 +91,7 @@ function BizAppsProductPricingWidgetComponent_Conditional_24_Template(rf, ctx) {
|
|
|
91
91
|
i0.ɵɵtext(2, "Price list");
|
|
92
92
|
i0.ɵɵelementEnd();
|
|
93
93
|
i0.ɵɵelementStart(3, "div", 24);
|
|
94
|
-
i0.ɵɵrepeaterCreate(4, BizAppsProductPricingWidgetComponent_Conditional_24_For_5_Template, 6,
|
|
94
|
+
i0.ɵɵrepeaterCreate(4, BizAppsProductPricingWidgetComponent_Conditional_24_For_5_Template, 6, 13, "button", 25, _forTrack0);
|
|
95
95
|
i0.ɵɵelementEnd()();
|
|
96
96
|
} if (rf & 2) {
|
|
97
97
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -891,7 +891,9 @@ function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2
|
|
|
891
891
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
892
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
893
|
i0.ɵɵproperty("cdkDragDisabled", !ctx_r1.EditMode || row_r21.Inherited);
|
|
894
|
-
i0.ɵɵadvance(
|
|
894
|
+
i0.ɵɵadvance();
|
|
895
|
+
i0.ɵɵproperty("EntityName", ctx_r1.ProductPricesEntity)("RecordID", row_r21.ID)("DisplayName", row_r21.Name)("HandleClick", false);
|
|
896
|
+
i0.ɵɵadvance();
|
|
895
897
|
i0.ɵɵconditional(ctx_r1.EditMode && !row_r21.Inherited ? 2 : -1);
|
|
896
898
|
i0.ɵɵadvance(2);
|
|
897
899
|
i0.ɵɵtextInterpolate(ctx_r1.FormatCurrency(row_r21.Amount));
|
|
@@ -910,7 +912,7 @@ function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_Templ
|
|
|
910
912
|
const _r19 = i0.ɵɵgetCurrentView();
|
|
911
913
|
i0.ɵɵelementStart(0, "div", 83);
|
|
912
914
|
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,
|
|
915
|
+
i0.ɵɵrepeaterCreate(1, BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Template, 12, 20, "article", 84, _forTrack0);
|
|
914
916
|
i0.ɵɵelementEnd();
|
|
915
917
|
} if (rf & 2) {
|
|
916
918
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
@@ -1139,6 +1141,8 @@ export class BizAppsProductPricingWidgetComponent {
|
|
|
1139
1141
|
}
|
|
1140
1142
|
/** Template access to the shared date formatter: an `EffectiveTo` is a calendar day, not an instant. */
|
|
1141
1143
|
FormatDate = FormatDate;
|
|
1144
|
+
ProductPricesEntity = PRODUCT_PRICES_ENTITY;
|
|
1145
|
+
PriceListsEntity = PRICE_LISTS_ENTITY;
|
|
1142
1146
|
IsLoading = false;
|
|
1143
1147
|
IsSaving = false;
|
|
1144
1148
|
ViewMode = 'cards';
|
|
@@ -2620,7 +2624,7 @@ export class BizAppsProductPricingWidgetComponent {
|
|
|
2620
2624
|
this.InheritedRecords = OrdersEngine.Instance.ProductPricesFor(null, chain).filter((p) => !p.ProductID && (!p.Status || p.Status === 'Active'));
|
|
2621
2625
|
}
|
|
2622
2626
|
static ɵfac = function BizAppsProductPricingWidgetComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BizAppsProductPricingWidgetComponent)(); };
|
|
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) {
|
|
2627
|
+
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", "mjRecordLink", "", 1, "mjo-channel-tab", 3, "active", "title", "EntityName", "RecordID", "DisplayName", "HandleClick"], ["type", "button", "role", "tab", "mjRecordLink", "", 1, "mjo-channel-tab", 3, "click", "title", "EntityName", "RecordID", "DisplayName", "HandleClick"], [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", "mjRecordLink", "", 1, "mjo-offer-h", 3, "click", "EntityName", "RecordID", "DisplayName", "HandleClick"], ["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) {
|
|
2624
2628
|
i0.ɵɵelementStart(0, "div", 0);
|
|
2625
2629
|
i0.ɵɵconditionalCreate(1, BizAppsProductPricingWidgetComponent_Conditional_1_Template, 7, 5, "div", 1);
|
|
2626
2630
|
i0.ɵɵelementStart(2, "div", 2)(3, "div", 3)(4, "div", 4);
|
|
@@ -2671,11 +2675,11 @@ export class BizAppsProductPricingWidgetComponent {
|
|
|
2671
2675
|
i0.ɵɵconditional(ctx.ViewMode === "grid" ? 25 : ctx.ViewMode === "bands" ? 26 : 27);
|
|
2672
2676
|
i0.ɵɵadvance(3);
|
|
2673
2677
|
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}"] });
|
|
2678
|
+
} }, 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, i3.MjRecordLinkDirective, 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}"] });
|
|
2675
2679
|
}
|
|
2676
2680
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BizAppsProductPricingWidgetComponent, [{
|
|
2677
2681
|
type: Component,
|
|
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"] }]
|
|
2682
|
+
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 mjRecordLink\n [EntityName]=\"PriceListsEntity\"\n [RecordID]=\"ch.ID ?? ''\"\n [DisplayName]=\"ch.Name\"\n [HandleClick]=\"false\"\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\n type=\"button\"\n class=\"mjo-offer-h\"\n mjRecordLink\n [EntityName]=\"ProductPricesEntity\"\n [RecordID]=\"row.ID\"\n [DisplayName]=\"row.Name\"\n [HandleClick]=\"false\"\n (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"] }]
|
|
2679
2683
|
}], () => [], { Product: [{
|
|
2680
2684
|
type: Input
|
|
2681
2685
|
}], EditMode: [{
|