@mj-biz-apps/orders-ng 5.52.0 → 5.54.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.js +5 -5
- package/dist/lib/custom/OrderHeader/order-header-form.component.js.map +1 -1
- package/dist/lib/custom/OrderHeader/order-line-details-panel.component.js +2 -2
- package/dist/lib/custom/OrderHeader/order-line-details-panel.component.js.map +1 -1
- package/dist/lib/custom/OrderHeader/order-lines-editor.component.d.ts +11 -0
- package/dist/lib/custom/OrderHeader/order-lines-editor.component.d.ts.map +1 -1
- package/dist/lib/custom/OrderHeader/order-lines-editor.component.js +310 -251
- package/dist/lib/custom/OrderHeader/order-lines-editor.component.js.map +1 -1
- package/dist/lib/custom/Product/widgets/product-accounting-widget.component.js +2 -2
- package/dist/lib/form-panels/product-header.panel.d.ts +2 -2
- package/dist/lib/form-panels/product-header.panel.d.ts.map +1 -1
- package/dist/lib/form-panels/product-header.panel.js +4 -21
- package/dist/lib/form-panels/product-header.panel.js.map +1 -1
- package/dist/lib/form-panels/product-readiness-check.d.ts +4 -0
- package/dist/lib/form-panels/product-readiness-check.d.ts.map +1 -0
- package/dist/lib/form-panels/product-readiness-check.js +38 -0
- package/dist/lib/form-panels/product-readiness-check.js.map +1 -0
- package/dist/lib/pages/catalog/new-product-dialog.component.d.ts +67 -0
- package/dist/lib/pages/catalog/new-product-dialog.component.d.ts.map +1 -0
- package/dist/lib/pages/catalog/new-product-dialog.component.js +554 -0
- package/dist/lib/pages/catalog/new-product-dialog.component.js.map +1 -0
- package/dist/lib/pages/catalog/new-product-draft.d.ts +31 -0
- package/dist/lib/pages/catalog/new-product-draft.d.ts.map +1 -0
- package/dist/lib/pages/catalog/new-product-draft.js +81 -0
- package/dist/lib/pages/catalog/new-product-draft.js.map +1 -0
- package/dist/lib/pages/catalog/pricing.page.d.ts +16 -3
- package/dist/lib/pages/catalog/pricing.page.d.ts.map +1 -1
- package/dist/lib/pages/catalog/pricing.page.js +77 -38
- package/dist/lib/pages/catalog/pricing.page.js.map +1 -1
- package/dist/lib/pages/catalog/products.page.d.ts +16 -4
- package/dist/lib/pages/catalog/products.page.d.ts.map +1 -1
- package/dist/lib/pages/catalog/products.page.js +150 -111
- package/dist/lib/pages/catalog/products.page.js.map +1 -1
- package/dist/lib/pages/orders/orders-dashboard.page.d.ts +11 -3
- package/dist/lib/pages/orders/orders-dashboard.page.d.ts.map +1 -1
- package/dist/lib/pages/orders/orders-dashboard.page.js +31 -14
- package/dist/lib/pages/orders/orders-dashboard.page.js.map +1 -1
- package/dist/lib/pages/orders/orders-list.page.d.ts +3 -1
- package/dist/lib/pages/orders/orders-list.page.d.ts.map +1 -1
- package/dist/lib/pages/orders/orders-list.page.js +10 -5
- package/dist/lib/pages/orders/orders-list.page.js.map +1 -1
- package/dist/lib/pages/payments/account-credit.page.d.ts +21 -0
- package/dist/lib/pages/payments/account-credit.page.d.ts.map +1 -1
- package/dist/lib/pages/payments/account-credit.page.js +145 -82
- package/dist/lib/pages/payments/account-credit.page.js.map +1 -1
- package/dist/lib/pages/payments/payments-dashboard.page.d.ts +3 -1
- package/dist/lib/pages/payments/payments-dashboard.page.d.ts.map +1 -1
- package/dist/lib/pages/payments/payments-dashboard.page.js +10 -5
- package/dist/lib/pages/payments/payments-dashboard.page.js.map +1 -1
- package/dist/lib/pages/payments/payments-list.page.d.ts +3 -1
- package/dist/lib/pages/payments/payments-list.page.d.ts.map +1 -1
- package/dist/lib/pages/payments/payments-list.page.js +10 -5
- package/dist/lib/pages/payments/payments-list.page.js.map +1 -1
- package/dist/lib/pages/receivables/billing-issue.d.ts +14 -0
- package/dist/lib/pages/receivables/billing-issue.d.ts.map +1 -0
- package/dist/lib/pages/receivables/billing-issue.js +17 -0
- package/dist/lib/pages/receivables/billing-issue.js.map +1 -0
- package/dist/lib/pages/receivables/billing.page.d.ts +135 -19
- package/dist/lib/pages/receivables/billing.page.d.ts.map +1 -1
- package/dist/lib/pages/receivables/billing.page.js +748 -163
- package/dist/lib/pages/receivables/billing.page.js.map +1 -1
- package/dist/lib/pages/receivables/customer-ar.page.d.ts +12 -0
- package/dist/lib/pages/receivables/customer-ar.page.d.ts.map +1 -1
- package/dist/lib/pages/receivables/customer-ar.page.js +40 -14
- package/dist/lib/pages/receivables/customer-ar.page.js.map +1 -1
- package/dist/lib/pages/receivables/external-invoicing-queue.page.d.ts +157 -26
- package/dist/lib/pages/receivables/external-invoicing-queue.page.d.ts.map +1 -1
- package/dist/lib/pages/receivables/external-invoicing-queue.page.js +1278 -316
- package/dist/lib/pages/receivables/external-invoicing-queue.page.js.map +1 -1
- package/dist/lib/pages/receivables/overdue-page.model.d.ts +55 -0
- package/dist/lib/pages/receivables/overdue-page.model.d.ts.map +1 -0
- package/dist/lib/pages/receivables/overdue-page.model.js +112 -0
- package/dist/lib/pages/receivables/overdue-page.model.js.map +1 -0
- package/dist/lib/pages/receivables/overdue.page.d.ts +104 -16
- package/dist/lib/pages/receivables/overdue.page.d.ts.map +1 -1
- package/dist/lib/pages/receivables/overdue.page.js +476 -125
- package/dist/lib/pages/receivables/overdue.page.js.map +1 -1
- package/dist/lib/pages/receivables/progress.page.d.ts +69 -8
- package/dist/lib/pages/receivables/progress.page.d.ts.map +1 -1
- package/dist/lib/pages/receivables/progress.page.js +574 -248
- package/dist/lib/pages/receivables/progress.page.js.map +1 -1
- package/dist/lib/pages/receivables/worklist-view.model.d.ts +229 -0
- package/dist/lib/pages/receivables/worklist-view.model.d.ts.map +1 -0
- package/dist/lib/pages/receivables/worklist-view.model.js +402 -0
- package/dist/lib/pages/receivables/worklist-view.model.js.map +1 -0
- package/dist/lib/pages/subscriptions/subscriptions.page.d.ts +3 -1
- package/dist/lib/pages/subscriptions/subscriptions.page.d.ts.map +1 -1
- package/dist/lib/pages/subscriptions/subscriptions.page.js +10 -5
- package/dist/lib/pages/subscriptions/subscriptions.page.js.map +1 -1
- package/dist/lib/pages/workspace-requests.d.ts +30 -0
- package/dist/lib/pages/workspace-requests.d.ts.map +1 -0
- package/dist/lib/pages/workspace-requests.js +12 -0
- package/dist/lib/pages/workspace-requests.js.map +1 -0
- package/dist/lib/panels/aging-bar.component.d.ts +7 -1
- package/dist/lib/panels/aging-bar.component.d.ts.map +1 -1
- package/dist/lib/panels/aging-bar.component.js +89 -33
- package/dist/lib/panels/aging-bar.component.js.map +1 -1
- package/dist/lib/panels/side-panel.component.d.ts +41 -0
- package/dist/lib/panels/side-panel.component.d.ts.map +1 -0
- package/dist/lib/panels/side-panel.component.js +126 -0
- package/dist/lib/panels/side-panel.component.js.map +1 -0
- package/dist/lib/panels/worklist-bar.component.d.ts +81 -0
- package/dist/lib/panels/worklist-bar.component.d.ts.map +1 -0
- package/dist/lib/panels/worklist-bar.component.js +291 -0
- package/dist/lib/panels/worklist-bar.component.js.map +1 -0
- package/dist/lib/panels/worklist-table.component.d.ts +47 -5
- package/dist/lib/panels/worklist-table.component.d.ts.map +1 -1
- package/dist/lib/panels/worklist-table.component.js +283 -79
- package/dist/lib/panels/worklist-table.component.js.map +1 -1
- package/dist/lib/sections/orders-sections.component.d.ts.map +1 -1
- package/dist/lib/sections/orders-sections.component.js +18 -7
- package/dist/lib/sections/orders-sections.component.js.map +1 -1
- package/dist/lib/sections/section-nav.model.js +1 -1
- package/dist/lib/sections/section-nav.model.js.map +1 -1
- package/dist/lib/sections/section-shell.component.js +2 -2
- package/dist/lib/styles/orders-kit.css +10 -0
- package/dist/public-api.d.ts +3 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +3 -0
- package/dist/public-api.js.map +1 -1
- package/package.json +2 -2
|
@@ -17,7 +17,7 @@ import { ScrollPickerCursorIntoView } from './picker-scroll.js';
|
|
|
17
17
|
import { MJOPricingScheduler } from '../../services/pricing-scheduler.service.js';
|
|
18
18
|
import { ExtensionCollapsedHint, ExtensionToggleLabel, DescribeSeatSplit, } from './line-extension-fields.js';
|
|
19
19
|
import { CachedExtensionEntityInfo, CachedExtensionFormConfig } from './line-extension-cache.js';
|
|
20
|
-
import { AsDateValue, DescendantLines, ExtendChoiceTextFor, DescribeInstalmentsBeforeMovedTerm, ExtendOutcomeFor, FindInstalmentsBeforeMovedTerms, HoldingSubscriberFor, TodayAsDateValue, ToISODate, } from '@mj-biz-apps/orders-entities';
|
|
20
|
+
import { AsDateValue, DescendantLines, ExtendChoiceTextFor, DescribeInstalmentsBeforeMovedTerm, ExtendOutcomeFor, FindInstalmentsBeforeMovedTerms, HoldingSubscriberFor, ORDER_LINE_DESCRIPTION_MAX_LENGTH, SetLineDescription, TodayAsDateValue, ToISODate, } from '@mj-biz-apps/orders-entities';
|
|
21
21
|
import * as i0 from "@angular/core";
|
|
22
22
|
import * as i1 from "@angular/forms";
|
|
23
23
|
import * as i2 from "@memberjunction/ng-base-forms";
|
|
@@ -51,14 +51,14 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_7_Template(rf, ctx) { if
|
|
|
51
51
|
} }
|
|
52
52
|
function MJOOrderLinesEditorComponent_For_4_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
53
53
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
54
|
-
i0.ɵɵelementStart(0, "button",
|
|
54
|
+
i0.ɵɵelementStart(0, "button", 34);
|
|
55
55
|
i0.ɵɵlistener("click", function MJOOrderLinesEditorComponent_For_4_Conditional_9_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r4); const line_r3 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.Bump(line_r3, -1)); });
|
|
56
56
|
i0.ɵɵtext(1, "\u2212");
|
|
57
57
|
i0.ɵɵelementEnd();
|
|
58
|
-
i0.ɵɵelementStart(2, "input",
|
|
58
|
+
i0.ɵɵelementStart(2, "input", 35);
|
|
59
59
|
i0.ɵɵlistener("change", function MJOOrderLinesEditorComponent_For_4_Conditional_9_Template_input_change_2_listener($event) { i0.ɵɵrestoreView(_r4); const line_r3 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.SetQuantity(line_r3, $event)); });
|
|
60
60
|
i0.ɵɵelementEnd();
|
|
61
|
-
i0.ɵɵelementStart(3, "button",
|
|
61
|
+
i0.ɵɵelementStart(3, "button", 36);
|
|
62
62
|
i0.ɵɵlistener("click", function MJOOrderLinesEditorComponent_For_4_Conditional_9_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r4); const line_r3 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.Bump(line_r3, 1)); });
|
|
63
63
|
i0.ɵɵtext(4, "+");
|
|
64
64
|
i0.ɵɵelementEnd();
|
|
@@ -81,9 +81,9 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_10_Template(rf, ctx) { i
|
|
|
81
81
|
} }
|
|
82
82
|
function MJOOrderLinesEditorComponent_For_4_Conditional_16_Template(rf, ctx) { if (rf & 1) {
|
|
83
83
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
84
|
-
i0.ɵɵelementStart(0, "button",
|
|
84
|
+
i0.ɵɵelementStart(0, "button", 37);
|
|
85
85
|
i0.ɵɵlistener("click", function MJOOrderLinesEditorComponent_For_4_Conditional_16_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const line_r3 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.ToggleOverrideEditor(line_r3)); });
|
|
86
|
-
i0.ɵɵelement(1, "i",
|
|
86
|
+
i0.ɵɵelement(1, "i", 38);
|
|
87
87
|
i0.ɵɵelementEnd();
|
|
88
88
|
} if (rf & 2) {
|
|
89
89
|
const line_r3 = i0.ɵɵnextContext().$implicit;
|
|
@@ -126,7 +126,7 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_26_Template(rf, ctx) { i
|
|
|
126
126
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
127
127
|
i0.ɵɵelementStart(0, "button", 23);
|
|
128
128
|
i0.ɵɵlistener("click", function MJOOrderLinesEditorComponent_For_4_Conditional_26_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r6); const line_r3 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.Remove(line_r3)); });
|
|
129
|
-
i0.ɵɵelement(1, "i",
|
|
129
|
+
i0.ɵɵelement(1, "i", 39);
|
|
130
130
|
i0.ɵɵelementEnd();
|
|
131
131
|
} if (rf & 2) {
|
|
132
132
|
let tmp_11_0;
|
|
@@ -135,8 +135,8 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_26_Template(rf, ctx) { i
|
|
|
135
135
|
i0.ɵɵattribute("aria-label", "Remove " + (((tmp_11_0 = ctx_r0.ProductFor(line_r3)) == null ? null : tmp_11_0.Name) ?? "line"));
|
|
136
136
|
} }
|
|
137
137
|
function MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
138
|
-
i0.ɵɵelementStart(0, "div",
|
|
139
|
-
i0.ɵɵelement(1, "i",
|
|
138
|
+
i0.ɵɵelementStart(0, "div", 46);
|
|
139
|
+
i0.ɵɵelement(1, "i", 47);
|
|
140
140
|
i0.ɵɵelementStart(2, "span");
|
|
141
141
|
i0.ɵɵtext(3);
|
|
142
142
|
i0.ɵɵelementEnd()();
|
|
@@ -146,10 +146,10 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_1_Conditi
|
|
|
146
146
|
} }
|
|
147
147
|
function MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
148
148
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
149
|
-
i0.ɵɵelementStart(0, "mjo-line-price-picker",
|
|
149
|
+
i0.ɵɵelementStart(0, "mjo-line-price-picker", 45);
|
|
150
150
|
i0.ɵɵlistener("PriceChanged", function MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_1_Template_mjo_line_price_picker_PriceChanged_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.OnLinePriceChanged()); });
|
|
151
151
|
i0.ɵɵelementEnd();
|
|
152
|
-
i0.ɵɵconditionalCreate(1, MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_1_Conditional_1_Template, 4, 1, "div",
|
|
152
|
+
i0.ɵɵconditionalCreate(1, MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_1_Conditional_1_Template, 4, 1, "div", 46);
|
|
153
153
|
} if (rf & 2) {
|
|
154
154
|
let tmp_15_0;
|
|
155
155
|
let tmp_17_0;
|
|
@@ -179,12 +179,12 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_2_Conditi
|
|
|
179
179
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(1, 1, ctx_r0.DiscountBase(line_r3)), " left to discount ");
|
|
180
180
|
} }
|
|
181
181
|
function MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_2_Conditional_6_Conditional_13_Template(rf, ctx) { if (rf & 1) {
|
|
182
|
-
i0.ɵɵelementStart(0, "em",
|
|
182
|
+
i0.ɵɵelementStart(0, "em", 57);
|
|
183
183
|
i0.ɵɵtext(1, "*");
|
|
184
184
|
i0.ɵɵelementEnd();
|
|
185
185
|
} }
|
|
186
186
|
function MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_2_Conditional_6_Conditional_15_Template(rf, ctx) { if (rf & 1) {
|
|
187
|
-
i0.ɵɵelementStart(0, "div",
|
|
187
|
+
i0.ɵɵelementStart(0, "div", 59);
|
|
188
188
|
i0.ɵɵtext(1);
|
|
189
189
|
i0.ɵɵelementEnd();
|
|
190
190
|
} if (rf & 2) {
|
|
@@ -192,7 +192,7 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_2_Conditi
|
|
|
192
192
|
i0.ɵɵtextInterpolate(ctx);
|
|
193
193
|
} }
|
|
194
194
|
function MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_2_Conditional_6_Conditional_16_Template(rf, ctx) { if (rf & 1) {
|
|
195
|
-
i0.ɵɵelementStart(0, "div",
|
|
195
|
+
i0.ɵɵelementStart(0, "div", 60)(1, "span", 62);
|
|
196
196
|
i0.ɵɵtext(2, "Needs approval");
|
|
197
197
|
i0.ɵɵelementEnd();
|
|
198
198
|
i0.ɵɵelementStart(3, "span");
|
|
@@ -204,40 +204,40 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_2_Conditi
|
|
|
204
204
|
} }
|
|
205
205
|
function MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_2_Conditional_6_Conditional_17_Template(rf, ctx) { if (rf & 1) {
|
|
206
206
|
const _r10 = i0.ɵɵgetCurrentView();
|
|
207
|
-
i0.ɵɵelementStart(0, "div",
|
|
207
|
+
i0.ɵɵelementStart(0, "div", 61)(1, "span");
|
|
208
208
|
i0.ɵɵtext(2, "Applies when this order is saved.");
|
|
209
209
|
i0.ɵɵelementEnd();
|
|
210
|
-
i0.ɵɵelementStart(3, "button",
|
|
210
|
+
i0.ɵɵelementStart(3, "button", 63);
|
|
211
211
|
i0.ɵɵlistener("click", function MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_2_Conditional_6_Conditional_17_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r10); const line_r3 = i0.ɵɵnextContext(4).$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.ClearDiscount(line_r3)); });
|
|
212
212
|
i0.ɵɵtext(4, "Remove");
|
|
213
213
|
i0.ɵɵelementEnd()();
|
|
214
214
|
} }
|
|
215
215
|
function MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_2_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
216
216
|
const _r9 = i0.ɵɵgetCurrentView();
|
|
217
|
-
i0.ɵɵelementStart(0, "div",
|
|
217
|
+
i0.ɵɵelementStart(0, "div", 51)(1, "div", 52)(2, "button", 53);
|
|
218
218
|
i0.ɵɵlistener("click", function MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_2_Conditional_6_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r9); const line_r3 = i0.ɵɵnextContext(3).$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.SetDiscountMode(line_r3, "percent")); });
|
|
219
219
|
i0.ɵɵtext(3, "%");
|
|
220
220
|
i0.ɵɵelementEnd();
|
|
221
|
-
i0.ɵɵelementStart(4, "button",
|
|
221
|
+
i0.ɵɵelementStart(4, "button", 53);
|
|
222
222
|
i0.ɵɵlistener("click", function MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_2_Conditional_6_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r9); const line_r3 = i0.ɵɵnextContext(3).$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.SetDiscountMode(line_r3, "amount")); });
|
|
223
223
|
i0.ɵɵtext(5, "Amount");
|
|
224
224
|
i0.ɵɵelementEnd()();
|
|
225
|
-
i0.ɵɵelementStart(6, "input",
|
|
225
|
+
i0.ɵɵelementStart(6, "input", 54);
|
|
226
226
|
i0.ɵɵlistener("input", function MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_2_Conditional_6_Template_input_input_6_listener($event) { i0.ɵɵrestoreView(_r9); const line_r3 = i0.ɵɵnextContext(3).$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.SetDiscountValue(line_r3, $event)); });
|
|
227
227
|
i0.ɵɵelementEnd();
|
|
228
|
-
i0.ɵɵelementStart(7, "span",
|
|
228
|
+
i0.ɵɵelementStart(7, "span", 55);
|
|
229
229
|
i0.ɵɵconditionalCreate(8, MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_2_Conditional_6_Conditional_8_Template, 3, 6)(9, MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_2_Conditional_6_Conditional_9_Template, 2, 3);
|
|
230
230
|
i0.ɵɵelementEnd()();
|
|
231
|
-
i0.ɵɵelementStart(10, "label",
|
|
231
|
+
i0.ɵɵelementStart(10, "label", 56)(11, "span");
|
|
232
232
|
i0.ɵɵtext(12, "Discount Reason ");
|
|
233
|
-
i0.ɵɵconditionalCreate(13, MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_2_Conditional_6_Conditional_13_Template, 2, 0, "em",
|
|
233
|
+
i0.ɵɵconditionalCreate(13, MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_2_Conditional_6_Conditional_13_Template, 2, 0, "em", 57);
|
|
234
234
|
i0.ɵɵelementEnd();
|
|
235
|
-
i0.ɵɵelementStart(14, "textarea",
|
|
235
|
+
i0.ɵɵelementStart(14, "textarea", 58);
|
|
236
236
|
i0.ɵɵlistener("input", function MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_2_Conditional_6_Template_textarea_input_14_listener($event) { i0.ɵɵrestoreView(_r9); const line_r3 = i0.ɵɵnextContext(3).$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.SetDiscountReason(line_r3, $event)); });
|
|
237
237
|
i0.ɵɵelementEnd()();
|
|
238
|
-
i0.ɵɵconditionalCreate(15, MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_2_Conditional_6_Conditional_15_Template, 2, 1, "div",
|
|
239
|
-
i0.ɵɵconditionalCreate(16, MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_2_Conditional_6_Conditional_16_Template, 5, 1, "div",
|
|
240
|
-
i0.ɵɵconditionalCreate(17, MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_2_Conditional_6_Conditional_17_Template, 5, 0, "div",
|
|
238
|
+
i0.ɵɵconditionalCreate(15, MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_2_Conditional_6_Conditional_15_Template, 2, 1, "div", 59);
|
|
239
|
+
i0.ɵɵconditionalCreate(16, MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_2_Conditional_6_Conditional_16_Template, 5, 1, "div", 60);
|
|
240
|
+
i0.ɵɵconditionalCreate(17, MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_2_Conditional_6_Conditional_17_Template, 5, 0, "div", 61);
|
|
241
241
|
} if (rf & 2) {
|
|
242
242
|
let tmp_20_0;
|
|
243
243
|
let tmp_24_0;
|
|
@@ -269,18 +269,18 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_2_Conditi
|
|
|
269
269
|
i0.ɵɵconditional(ctx_r0.HasStagedDiscount(line_r3) ? 17 : -1);
|
|
270
270
|
} }
|
|
271
271
|
function MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_2_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
272
|
-
i0.ɵɵelementStart(0, "div",
|
|
272
|
+
i0.ɵɵelementStart(0, "div", 41);
|
|
273
273
|
i0.ɵɵtext(1, " This line is booked, so its money is frozen. Reverse the line to re-sell it at a discounted price. ");
|
|
274
274
|
i0.ɵɵelementEnd();
|
|
275
275
|
} }
|
|
276
276
|
function MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
277
|
-
i0.ɵɵelementStart(0, "div",
|
|
277
|
+
i0.ɵɵelementStart(0, "div", 40)(1, "div", 48)(2, "span", 49);
|
|
278
278
|
i0.ɵɵtext(3, "Discount");
|
|
279
279
|
i0.ɵɵelementEnd();
|
|
280
|
-
i0.ɵɵelementStart(4, "span",
|
|
280
|
+
i0.ɵɵelementStart(4, "span", 50);
|
|
281
281
|
i0.ɵɵtext(5);
|
|
282
282
|
i0.ɵɵelementEnd()();
|
|
283
|
-
i0.ɵɵconditionalCreate(6, MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_2_Conditional_6_Template, 18, 17)(7, MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_2_Conditional_7_Template, 2, 0, "div",
|
|
283
|
+
i0.ɵɵconditionalCreate(6, MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_2_Conditional_6_Template, 18, 17)(7, MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_2_Conditional_7_Template, 2, 0, "div", 41);
|
|
284
284
|
i0.ɵɵelementEnd();
|
|
285
285
|
} if (rf & 2) {
|
|
286
286
|
let tmp_12_0;
|
|
@@ -293,7 +293,7 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_2_Templat
|
|
|
293
293
|
i0.ɵɵconditional(ctx_r0.CanDiscountLine(line_r3) ? 6 : 7);
|
|
294
294
|
} }
|
|
295
295
|
function MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
296
|
-
i0.ɵɵelementStart(0, "div",
|
|
296
|
+
i0.ɵɵelementStart(0, "div", 41);
|
|
297
297
|
i0.ɵɵtext(1);
|
|
298
298
|
i0.ɵɵelementEnd();
|
|
299
299
|
} if (rf & 2) {
|
|
@@ -302,7 +302,7 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_3_Templat
|
|
|
302
302
|
} }
|
|
303
303
|
function MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
304
304
|
const _r11 = i0.ɵɵgetCurrentView();
|
|
305
|
-
i0.ɵɵelementStart(0, "button",
|
|
305
|
+
i0.ɵɵelementStart(0, "button", 64);
|
|
306
306
|
i0.ɵɵlistener("click", function MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_7_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r11); const line_r3 = i0.ɵɵnextContext(2).$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.ResetOverride(line_r3)); });
|
|
307
307
|
i0.ɵɵtext(1, "Use Default Price");
|
|
308
308
|
i0.ɵɵelementEnd();
|
|
@@ -315,12 +315,12 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_27_Template(rf, ctx) { i
|
|
|
315
315
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
316
316
|
i0.ɵɵelementStart(0, "div", 26);
|
|
317
317
|
i0.ɵɵconditionalCreate(1, MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_1_Template, 2, 8);
|
|
318
|
-
i0.ɵɵconditionalCreate(2, MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_2_Template, 8, 3, "div",
|
|
319
|
-
i0.ɵɵelementStart(4, "div",
|
|
318
|
+
i0.ɵɵconditionalCreate(2, MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_2_Template, 8, 3, "div", 40)(3, MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_3_Template, 2, 1, "div", 41);
|
|
319
|
+
i0.ɵɵelementStart(4, "div", 42)(5, "button", 43);
|
|
320
320
|
i0.ɵɵlistener("click", function MJOOrderLinesEditorComponent_For_4_Conditional_27_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r7); const line_r3 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.DoneOverrideEditor(line_r3)); });
|
|
321
321
|
i0.ɵɵtext(6, "Done");
|
|
322
322
|
i0.ɵɵelementEnd();
|
|
323
|
-
i0.ɵɵconditionalCreate(7, MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_7_Template, 2, 1, "button",
|
|
323
|
+
i0.ɵɵconditionalCreate(7, MJOOrderLinesEditorComponent_For_4_Conditional_27_Conditional_7_Template, 2, 1, "button", 44);
|
|
324
324
|
i0.ɵɵelementEnd()();
|
|
325
325
|
} if (rf & 2) {
|
|
326
326
|
let tmp_11_0;
|
|
@@ -339,17 +339,17 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_27_Template(rf, ctx) { i
|
|
|
339
339
|
i0.ɵɵconditional(ctx_r0.CanOverride ? 7 : -1);
|
|
340
340
|
} }
|
|
341
341
|
function MJOOrderLinesEditorComponent_For_4_Conditional_29_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
342
|
-
i0.ɵɵelementStart(0, "mjo-consequence-chip",
|
|
342
|
+
i0.ɵɵelementStart(0, "mjo-consequence-chip", 65);
|
|
343
343
|
i0.ɵɵtext(1, "Ships \u2014 holds the order at Posted");
|
|
344
344
|
i0.ɵɵelementEnd();
|
|
345
345
|
} }
|
|
346
346
|
function MJOOrderLinesEditorComponent_For_4_Conditional_29_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
347
|
-
i0.ɵɵelementStart(0, "mjo-consequence-chip",
|
|
347
|
+
i0.ɵɵelementStart(0, "mjo-consequence-chip", 66);
|
|
348
348
|
i0.ɵɵtext(1, "Untaxable");
|
|
349
349
|
i0.ɵɵelementEnd();
|
|
350
350
|
} }
|
|
351
351
|
function MJOOrderLinesEditorComponent_For_4_Conditional_29_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
352
|
-
i0.ɵɵelementStart(0, "mjo-consequence-chip",
|
|
352
|
+
i0.ɵɵelementStart(0, "mjo-consequence-chip", 67);
|
|
353
353
|
i0.ɵɵtext(1);
|
|
354
354
|
i0.ɵɵelementEnd();
|
|
355
355
|
} if (rf & 2) {
|
|
@@ -358,9 +358,9 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_29_Conditional_2_Templat
|
|
|
358
358
|
i0.ɵɵtextInterpolate1("Revenue to ", product_r12.CompanyName);
|
|
359
359
|
} }
|
|
360
360
|
function MJOOrderLinesEditorComponent_For_4_Conditional_29_Template(rf, ctx) { if (rf & 1) {
|
|
361
|
-
i0.ɵɵconditionalCreate(0, MJOOrderLinesEditorComponent_For_4_Conditional_29_Conditional_0_Template, 2, 0, "mjo-consequence-chip",
|
|
362
|
-
i0.ɵɵconditionalCreate(1, MJOOrderLinesEditorComponent_For_4_Conditional_29_Conditional_1_Template, 2, 0, "mjo-consequence-chip",
|
|
363
|
-
i0.ɵɵconditionalCreate(2, MJOOrderLinesEditorComponent_For_4_Conditional_29_Conditional_2_Template, 2, 1, "mjo-consequence-chip",
|
|
361
|
+
i0.ɵɵconditionalCreate(0, MJOOrderLinesEditorComponent_For_4_Conditional_29_Conditional_0_Template, 2, 0, "mjo-consequence-chip", 65);
|
|
362
|
+
i0.ɵɵconditionalCreate(1, MJOOrderLinesEditorComponent_For_4_Conditional_29_Conditional_1_Template, 2, 0, "mjo-consequence-chip", 66);
|
|
363
|
+
i0.ɵɵconditionalCreate(2, MJOOrderLinesEditorComponent_For_4_Conditional_29_Conditional_2_Template, 2, 1, "mjo-consequence-chip", 67);
|
|
364
364
|
} if (rf & 2) {
|
|
365
365
|
const product_r12 = ctx;
|
|
366
366
|
const line_r3 = i0.ɵɵnextContext().$implicit;
|
|
@@ -379,8 +379,38 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_30_Template(rf, ctx) { i
|
|
|
379
379
|
i0.ɵɵadvance();
|
|
380
380
|
i0.ɵɵtextInterpolate(ctx);
|
|
381
381
|
} }
|
|
382
|
-
function
|
|
383
|
-
i0.ɵɵ
|
|
382
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_31_Template(rf, ctx) { if (rf & 1) {
|
|
383
|
+
const _r13 = i0.ɵɵgetCurrentView();
|
|
384
|
+
i0.ɵɵelementStart(0, "label", 29)(1, "span");
|
|
385
|
+
i0.ɵɵtext(2, "Description");
|
|
386
|
+
i0.ɵɵelementEnd();
|
|
387
|
+
i0.ɵɵelementStart(3, "textarea", 68);
|
|
388
|
+
i0.ɵɵlistener("input", function MJOOrderLinesEditorComponent_For_4_Conditional_31_Template_textarea_input_3_listener($event) { i0.ɵɵrestoreView(_r13); const line_r3 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.TypeDescription(line_r3, $event)); })("change", function MJOOrderLinesEditorComponent_For_4_Conditional_31_Template_textarea_change_3_listener($event) { i0.ɵɵrestoreView(_r13); const line_r3 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.SetDescription(line_r3, $event)); });
|
|
389
|
+
i0.ɵɵelementEnd();
|
|
390
|
+
i0.ɵɵelementStart(4, "small", 69);
|
|
391
|
+
i0.ɵɵtext(5, " Optional. Displays on the invoice after the product name and before the service period. ");
|
|
392
|
+
i0.ɵɵelementEnd()();
|
|
393
|
+
} if (rf & 2) {
|
|
394
|
+
let tmp_13_0;
|
|
395
|
+
const line_r3 = i0.ɵɵnextContext().$implicit;
|
|
396
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
397
|
+
i0.ɵɵadvance(3);
|
|
398
|
+
i0.ɵɵproperty("value", line_r3.Description ?? "");
|
|
399
|
+
i0.ɵɵattribute("maxlength", ctx_r0.DescriptionMaxLength)("aria-label", "Description for " + (((tmp_13_0 = ctx_r0.ProductFor(line_r3)) == null ? null : tmp_13_0.Name) ?? "line"))("aria-describedby", "mjo-ol-desc-hint-" + line_r3.ID);
|
|
400
|
+
i0.ɵɵadvance();
|
|
401
|
+
i0.ɵɵproperty("id", "mjo-ol-desc-hint-" + line_r3.ID);
|
|
402
|
+
} }
|
|
403
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_32_Template(rf, ctx) { if (rf & 1) {
|
|
404
|
+
i0.ɵɵelementStart(0, "div", 30);
|
|
405
|
+
i0.ɵɵtext(1);
|
|
406
|
+
i0.ɵɵelementEnd();
|
|
407
|
+
} if (rf & 2) {
|
|
408
|
+
const line_r3 = i0.ɵɵnextContext().$implicit;
|
|
409
|
+
i0.ɵɵadvance();
|
|
410
|
+
i0.ɵɵtextInterpolate(line_r3.Description);
|
|
411
|
+
} }
|
|
412
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_33_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
413
|
+
i0.ɵɵelementStart(0, "span", 71);
|
|
384
414
|
i0.ɵɵtext(1);
|
|
385
415
|
i0.ɵɵelementEnd();
|
|
386
416
|
} if (rf & 2) {
|
|
@@ -389,19 +419,19 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_31_Conditional_3_Templat
|
|
|
389
419
|
i0.ɵɵadvance();
|
|
390
420
|
i0.ɵɵtextInterpolate(ctx_r0.ContinuationStartValue(line_r3));
|
|
391
421
|
} }
|
|
392
|
-
function
|
|
393
|
-
const
|
|
394
|
-
i0.ɵɵelementStart(0, "button",
|
|
395
|
-
i0.ɵɵlistener("click", function
|
|
422
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_33_Conditional_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
423
|
+
const _r15 = i0.ɵɵgetCurrentView();
|
|
424
|
+
i0.ɵɵelementStart(0, "button", 76);
|
|
425
|
+
i0.ɵɵlistener("click", function MJOOrderLinesEditorComponent_For_4_Conditional_33_Conditional_4_Conditional_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r15); const line_r3 = i0.ɵɵnextContext(3).$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.ResetTermStart(line_r3)); });
|
|
396
426
|
i0.ɵɵtext(1, " Reset to order date ");
|
|
397
427
|
i0.ɵɵelementEnd();
|
|
398
428
|
} }
|
|
399
|
-
function
|
|
400
|
-
const
|
|
401
|
-
i0.ɵɵelementStart(0, "input",
|
|
402
|
-
i0.ɵɵlistener("change", function
|
|
429
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_33_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
430
|
+
const _r14 = i0.ɵɵgetCurrentView();
|
|
431
|
+
i0.ɵɵelementStart(0, "input", 74);
|
|
432
|
+
i0.ɵɵlistener("change", function MJOOrderLinesEditorComponent_For_4_Conditional_33_Conditional_4_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(_r14); const line_r3 = i0.ɵɵnextContext(2).$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.SetTermStart(line_r3, $event)); });
|
|
403
433
|
i0.ɵɵelementEnd();
|
|
404
|
-
i0.ɵɵconditionalCreate(1,
|
|
434
|
+
i0.ɵɵconditionalCreate(1, MJOOrderLinesEditorComponent_For_4_Conditional_33_Conditional_4_Conditional_1_Template, 2, 0, "button", 75);
|
|
405
435
|
} if (rf & 2) {
|
|
406
436
|
const line_r3 = i0.ɵɵnextContext(2).$implicit;
|
|
407
437
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -410,8 +440,8 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_31_Conditional_4_Templat
|
|
|
410
440
|
i0.ɵɵadvance();
|
|
411
441
|
i0.ɵɵconditional(!ctx_r0.TermStartFollowsOrderDate(line_r3) ? 1 : -1);
|
|
412
442
|
} }
|
|
413
|
-
function
|
|
414
|
-
i0.ɵɵelementStart(0, "span",
|
|
443
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_33_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
444
|
+
i0.ɵɵelementStart(0, "span", 72);
|
|
415
445
|
i0.ɵɵtext(1);
|
|
416
446
|
i0.ɵɵelementEnd();
|
|
417
447
|
} if (rf & 2) {
|
|
@@ -420,25 +450,25 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_31_Conditional_5_Templat
|
|
|
420
450
|
i0.ɵɵadvance();
|
|
421
451
|
i0.ɵɵtextInterpolate(ctx_r0.TermStartValue(line_r3));
|
|
422
452
|
} }
|
|
423
|
-
function
|
|
453
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_33_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
424
454
|
i0.ɵɵtext(0, " Applies to the subscriptions in this bundle. ");
|
|
425
455
|
} }
|
|
426
|
-
function
|
|
456
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_33_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
427
457
|
i0.ɵɵtext(0, " Continuing existing coverage, so the term begins the day after the current one ends \u2014 not something this line can set. ");
|
|
428
458
|
} }
|
|
429
|
-
function
|
|
459
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_33_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
430
460
|
i0.ɵɵtext(0, " Following the order date. The subscription type's rules may still adjust the actual start. ");
|
|
431
461
|
} }
|
|
432
|
-
function
|
|
462
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_33_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
433
463
|
i0.ɵɵtext(0, " Stated on this line, so a later change to the order date leaves it alone. ");
|
|
434
464
|
} }
|
|
435
|
-
function
|
|
436
|
-
i0.ɵɵelementStart(0, "div",
|
|
465
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_33_Template(rf, ctx) { if (rf & 1) {
|
|
466
|
+
i0.ɵɵelementStart(0, "div", 31)(1, "label", 70);
|
|
437
467
|
i0.ɵɵtext(2, " Term start ");
|
|
438
468
|
i0.ɵɵelementEnd();
|
|
439
|
-
i0.ɵɵconditionalCreate(3,
|
|
440
|
-
i0.ɵɵelementStart(6, "span",
|
|
441
|
-
i0.ɵɵconditionalCreate(7,
|
|
469
|
+
i0.ɵɵconditionalCreate(3, MJOOrderLinesEditorComponent_For_4_Conditional_33_Conditional_3_Template, 2, 1, "span", 71)(4, MJOOrderLinesEditorComponent_For_4_Conditional_33_Conditional_4_Template, 2, 5)(5, MJOOrderLinesEditorComponent_For_4_Conditional_33_Conditional_5_Template, 2, 1, "span", 72);
|
|
470
|
+
i0.ɵɵelementStart(6, "span", 73);
|
|
471
|
+
i0.ɵɵconditionalCreate(7, MJOOrderLinesEditorComponent_For_4_Conditional_33_Conditional_7_Template, 1, 0)(8, MJOOrderLinesEditorComponent_For_4_Conditional_33_Conditional_8_Template, 1, 0)(9, MJOOrderLinesEditorComponent_For_4_Conditional_33_Conditional_9_Template, 1, 0)(10, MJOOrderLinesEditorComponent_For_4_Conditional_33_Conditional_10_Template, 1, 0);
|
|
442
472
|
i0.ɵɵelementEnd()();
|
|
443
473
|
} if (rf & 2) {
|
|
444
474
|
const line_r3 = i0.ɵɵnextContext().$implicit;
|
|
@@ -450,25 +480,25 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_31_Template(rf, ctx) { i
|
|
|
450
480
|
i0.ɵɵadvance(4);
|
|
451
481
|
i0.ɵɵconditional(ctx_r0.IsSubscriptionBundleLine(line_r3) ? 7 : ctx_r0.TermStartIsDictated(line_r3) ? 8 : ctx_r0.TermStartFollowsOrderDate(line_r3) ? 9 : 10);
|
|
452
482
|
} }
|
|
453
|
-
function
|
|
454
|
-
i0.ɵɵelementStart(0, "span",
|
|
483
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
484
|
+
i0.ɵɵelementStart(0, "span", 77);
|
|
455
485
|
i0.ɵɵtext(1, " The term end must be on or after the term start. ");
|
|
456
486
|
i0.ɵɵelementEnd();
|
|
457
487
|
} }
|
|
458
|
-
function
|
|
488
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_6_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
459
489
|
i0.ɵɵtext(0, " One term of the subscription type. ");
|
|
460
490
|
} }
|
|
461
|
-
function
|
|
491
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_6_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
462
492
|
i0.ɵɵtext(0);
|
|
463
493
|
} if (rf & 2) {
|
|
464
494
|
i0.ɵɵtextInterpolate1(" Confirm keeps this length from the continuation date, so the term ends ", ctx, ". ");
|
|
465
495
|
} }
|
|
466
|
-
function
|
|
496
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_6_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
467
497
|
i0.ɵɵtext(0, " Stated on this line, and confirm keeps these dates. ");
|
|
468
498
|
} }
|
|
469
|
-
function
|
|
470
|
-
i0.ɵɵelementStart(0, "span",
|
|
471
|
-
i0.ɵɵconditionalCreate(1,
|
|
499
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
500
|
+
i0.ɵɵelementStart(0, "span", 73);
|
|
501
|
+
i0.ɵɵconditionalCreate(1, MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_6_Conditional_1_Template, 1, 0)(2, MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_6_Conditional_2_Template, 1, 1)(3, MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_6_Conditional_3_Template, 1, 0);
|
|
472
502
|
i0.ɵɵelementEnd();
|
|
473
503
|
} if (rf & 2) {
|
|
474
504
|
let tmp_12_0;
|
|
@@ -477,85 +507,85 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_32_Conditional_6_Templat
|
|
|
477
507
|
i0.ɵɵadvance();
|
|
478
508
|
i0.ɵɵconditional(ctx_r0.TermEndFollowsType(line_r3) ? 1 : (tmp_12_0 = ctx_r0.KeptTermEndValue(line_r3)) ? 2 : 3, tmp_12_0);
|
|
479
509
|
} }
|
|
480
|
-
function
|
|
510
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_7_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
481
511
|
i0.ɵɵtext(0);
|
|
482
512
|
} if (rf & 2) {
|
|
483
|
-
const
|
|
513
|
+
const holding_r16 = i0.ɵɵnextContext();
|
|
484
514
|
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
485
|
-
i0.ɵɵtextInterpolate1(", which runs through ", ctx_r0.HoldingCoverageEnd(
|
|
515
|
+
i0.ɵɵtextInterpolate1(", which runs through ", ctx_r0.HoldingCoverageEnd(holding_r16));
|
|
486
516
|
} }
|
|
487
|
-
function
|
|
488
|
-
const
|
|
489
|
-
i0.ɵɵelementStart(0, "div",
|
|
490
|
-
i0.ɵɵlistener("click", function
|
|
517
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_7_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
518
|
+
const _r17 = i0.ɵɵgetCurrentView();
|
|
519
|
+
i0.ɵɵelementStart(0, "div", 80)(1, "button", 81);
|
|
520
|
+
i0.ɵɵlistener("click", function MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_7_Conditional_5_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r17); const line_r3 = i0.ɵɵnextContext(3).$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.SetSubscriptionAction(line_r3, "ExtendExisting")); });
|
|
491
521
|
i0.ɵɵtext(2);
|
|
492
522
|
i0.ɵɵelementEnd();
|
|
493
|
-
i0.ɵɵelementStart(3, "button",
|
|
494
|
-
i0.ɵɵlistener("click", function
|
|
523
|
+
i0.ɵɵelementStart(3, "button", 81);
|
|
524
|
+
i0.ɵɵlistener("click", function MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_7_Conditional_5_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r17); const line_r3 = i0.ɵɵnextContext(3).$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.SetSubscriptionAction(line_r3, "CreateNew")); });
|
|
495
525
|
i0.ɵɵtext(4);
|
|
496
526
|
i0.ɵɵelementEnd()();
|
|
497
527
|
} if (rf & 2) {
|
|
498
|
-
const
|
|
528
|
+
const holding_r16 = i0.ɵɵnextContext();
|
|
499
529
|
const line_r3 = i0.ɵɵnextContext(2).$implicit;
|
|
500
530
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
501
531
|
i0.ɵɵadvance();
|
|
502
532
|
i0.ɵɵclassProp("is-selected", line_r3.SubscriptionAction === "ExtendExisting");
|
|
503
533
|
i0.ɵɵattribute("aria-pressed", line_r3.SubscriptionAction === "ExtendExisting");
|
|
504
534
|
i0.ɵɵadvance();
|
|
505
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r0.HoldingExtendLineText(line_r3,
|
|
535
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.HoldingExtendLineText(line_r3, holding_r16).Choice, " ");
|
|
506
536
|
i0.ɵɵadvance();
|
|
507
537
|
i0.ɵɵclassProp("is-selected", line_r3.SubscriptionAction === "CreateNew");
|
|
508
538
|
i0.ɵɵattribute("aria-pressed", line_r3.SubscriptionAction === "CreateNew");
|
|
509
539
|
i0.ɵɵadvance();
|
|
510
540
|
i0.ɵɵtextInterpolate1(" ", ctx_r0.HoldingNewSubscriptionText(line_r3), " ");
|
|
511
541
|
} }
|
|
512
|
-
function
|
|
542
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_7_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
513
543
|
i0.ɵɵtext(0);
|
|
514
544
|
} if (rf & 2) {
|
|
515
|
-
const
|
|
516
|
-
i0.ɵɵtextInterpolate1(" Confirm creates a new subscription for this customer, separate from ",
|
|
545
|
+
const holding_r16 = i0.ɵɵnextContext();
|
|
546
|
+
i0.ɵɵtextInterpolate1(" Confirm creates a new subscription for this customer, separate from ", holding_r16.SubscriptionNumber, ". ");
|
|
517
547
|
} }
|
|
518
|
-
function
|
|
548
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_7_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
519
549
|
i0.ɵɵtext(0);
|
|
520
550
|
} if (rf & 2) {
|
|
521
|
-
const
|
|
551
|
+
const holding_r16 = i0.ɵɵnextContext();
|
|
522
552
|
const line_r3 = i0.ɵɵnextContext(2).$implicit;
|
|
523
553
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
524
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r0.HoldingExtendLineText(line_r3,
|
|
554
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.HoldingExtendLineText(line_r3, holding_r16).Hint, " ");
|
|
525
555
|
} }
|
|
526
|
-
function
|
|
556
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_7_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
527
557
|
i0.ɵɵtext(0, " Not chosen. Confirm will not go ahead until you choose. ");
|
|
528
558
|
} }
|
|
529
|
-
function
|
|
530
|
-
i0.ɵɵelementStart(0, "span",
|
|
559
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_7_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
560
|
+
i0.ɵɵelementStart(0, "span", 77);
|
|
531
561
|
i0.ɵɵtext(1);
|
|
532
562
|
i0.ɵɵelementEnd();
|
|
533
563
|
} if (rf & 2) {
|
|
534
564
|
i0.ɵɵadvance();
|
|
535
565
|
i0.ɵɵtextInterpolate(ctx);
|
|
536
566
|
} }
|
|
537
|
-
function
|
|
538
|
-
i0.ɵɵelementStart(0, "div",
|
|
567
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
568
|
+
i0.ɵɵelementStart(0, "div", 78)(1, "span", 79);
|
|
539
569
|
i0.ɵɵtext(2);
|
|
540
|
-
i0.ɵɵconditionalCreate(3,
|
|
570
|
+
i0.ɵɵconditionalCreate(3, MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_7_Conditional_3_Template, 1, 1);
|
|
541
571
|
i0.ɵɵtext(4, ". Is this line a renewal of that subscription, or a new one? ");
|
|
542
572
|
i0.ɵɵelementEnd();
|
|
543
|
-
i0.ɵɵconditionalCreate(5,
|
|
544
|
-
i0.ɵɵelementStart(6, "span",
|
|
545
|
-
i0.ɵɵconditionalCreate(7,
|
|
573
|
+
i0.ɵɵconditionalCreate(5, MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_7_Conditional_5_Template, 5, 8, "div", 80);
|
|
574
|
+
i0.ɵɵelementStart(6, "span", 73);
|
|
575
|
+
i0.ɵɵconditionalCreate(7, MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_7_Conditional_7_Template, 1, 1)(8, MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_7_Conditional_8_Template, 1, 1)(9, MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_7_Conditional_9_Template, 1, 0);
|
|
546
576
|
i0.ɵɵelementEnd();
|
|
547
|
-
i0.ɵɵconditionalCreate(10,
|
|
577
|
+
i0.ɵɵconditionalCreate(10, MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_7_Conditional_10_Template, 2, 1, "span", 77);
|
|
548
578
|
i0.ɵɵelementEnd();
|
|
549
579
|
} if (rf & 2) {
|
|
550
580
|
let tmp_19_0;
|
|
551
|
-
const
|
|
581
|
+
const holding_r16 = ctx;
|
|
552
582
|
const line_r3 = i0.ɵɵnextContext(2).$implicit;
|
|
553
583
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
554
|
-
i0.ɵɵattribute("aria-label", "Existing subscription " +
|
|
584
|
+
i0.ɵɵattribute("aria-label", "Existing subscription " + holding_r16.SubscriptionNumber);
|
|
555
585
|
i0.ɵɵadvance(2);
|
|
556
|
-
i0.ɵɵtextInterpolate1(" This customer already has this product on ",
|
|
586
|
+
i0.ɵɵtextInterpolate1(" This customer already has this product on ", holding_r16.SubscriptionNumber);
|
|
557
587
|
i0.ɵɵadvance();
|
|
558
|
-
i0.ɵɵconditional(ctx_r0.HoldingCoverageEnd(
|
|
588
|
+
i0.ɵɵconditional(ctx_r0.HoldingCoverageEnd(holding_r16) ? 3 : -1);
|
|
559
589
|
i0.ɵɵadvance(2);
|
|
560
590
|
i0.ɵɵconditional(ctx_r0.CanEditServicePeriod() ? 5 : -1);
|
|
561
591
|
i0.ɵɵadvance();
|
|
@@ -563,18 +593,18 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_32_Conditional_7_Templat
|
|
|
563
593
|
i0.ɵɵadvance();
|
|
564
594
|
i0.ɵɵconditional(line_r3.SubscriptionAction === "CreateNew" ? 7 : line_r3.SubscriptionAction === "ExtendExisting" ? 8 : 9);
|
|
565
595
|
i0.ɵɵadvance(3);
|
|
566
|
-
i0.ɵɵconditional((tmp_19_0 = ctx_r0.HoldingScheduleWarning(line_r3,
|
|
596
|
+
i0.ɵɵconditional((tmp_19_0 = ctx_r0.HoldingScheduleWarning(line_r3, holding_r16)) ? 10 : -1, tmp_19_0);
|
|
567
597
|
} }
|
|
568
|
-
function
|
|
569
|
-
i0.ɵɵelementStart(0, "div",
|
|
598
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_34_Template(rf, ctx) { if (rf & 1) {
|
|
599
|
+
i0.ɵɵelementStart(0, "div", 31)(1, "span", 70);
|
|
570
600
|
i0.ɵɵtext(2, "Term end");
|
|
571
601
|
i0.ɵɵelementEnd();
|
|
572
|
-
i0.ɵɵelementStart(3, "span",
|
|
602
|
+
i0.ɵɵelementStart(3, "span", 72);
|
|
573
603
|
i0.ɵɵtext(4);
|
|
574
604
|
i0.ɵɵelementEnd();
|
|
575
|
-
i0.ɵɵconditionalCreate(5,
|
|
605
|
+
i0.ɵɵconditionalCreate(5, MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_5_Template, 2, 0, "span", 77)(6, MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_6_Template, 4, 1, "span", 73);
|
|
576
606
|
i0.ɵɵelementEnd();
|
|
577
|
-
i0.ɵɵconditionalCreate(7,
|
|
607
|
+
i0.ɵɵconditionalCreate(7, MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_7_Template, 11, 8, "div", 78);
|
|
578
608
|
} if (rf & 2) {
|
|
579
609
|
let tmp_13_0;
|
|
580
610
|
const line_r3 = i0.ɵɵnextContext().$implicit;
|
|
@@ -586,16 +616,16 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_32_Template(rf, ctx) { i
|
|
|
586
616
|
i0.ɵɵadvance(2);
|
|
587
617
|
i0.ɵɵconditional((tmp_13_0 = ctx_r0.ExistingHoldingFor(line_r3)) ? 7 : -1, tmp_13_0);
|
|
588
618
|
} }
|
|
589
|
-
function
|
|
590
|
-
const
|
|
591
|
-
i0.ɵɵelementStart(0, "input",
|
|
592
|
-
i0.ɵɵlistener("change", function
|
|
619
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_35_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
620
|
+
const _r18 = i0.ɵɵgetCurrentView();
|
|
621
|
+
i0.ɵɵelementStart(0, "input", 82);
|
|
622
|
+
i0.ɵɵlistener("change", function MJOOrderLinesEditorComponent_For_4_Conditional_35_Conditional_3_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(_r18); const line_r3 = i0.ɵɵnextContext(2).$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.SetServicePeriod(line_r3, "Start", $event)); });
|
|
593
623
|
i0.ɵɵelementEnd();
|
|
594
|
-
i0.ɵɵelementStart(1, "span",
|
|
624
|
+
i0.ɵɵelementStart(1, "span", 83);
|
|
595
625
|
i0.ɵɵtext(2, "to");
|
|
596
626
|
i0.ɵɵelementEnd();
|
|
597
|
-
i0.ɵɵelementStart(3, "input",
|
|
598
|
-
i0.ɵɵlistener("change", function
|
|
627
|
+
i0.ɵɵelementStart(3, "input", 84);
|
|
628
|
+
i0.ɵɵlistener("change", function MJOOrderLinesEditorComponent_For_4_Conditional_35_Conditional_3_Template_input_change_3_listener($event) { i0.ɵɵrestoreView(_r18); const line_r3 = i0.ɵɵnextContext(2).$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.SetServicePeriod(line_r3, "End", $event)); });
|
|
599
629
|
i0.ɵɵelementEnd();
|
|
600
630
|
} if (rf & 2) {
|
|
601
631
|
const line_r3 = i0.ɵɵnextContext(2).$implicit;
|
|
@@ -604,8 +634,8 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_33_Conditional_3_Templat
|
|
|
604
634
|
i0.ɵɵadvance(3);
|
|
605
635
|
i0.ɵɵproperty("value", ctx_r0.ServicePeriodValue(line_r3, "End"));
|
|
606
636
|
} }
|
|
607
|
-
function
|
|
608
|
-
i0.ɵɵelementStart(0, "span",
|
|
637
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_35_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
638
|
+
i0.ɵɵelementStart(0, "span", 72);
|
|
609
639
|
i0.ɵɵtext(1);
|
|
610
640
|
i0.ɵɵelementEnd();
|
|
611
641
|
} if (rf & 2) {
|
|
@@ -614,22 +644,22 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_33_Conditional_4_Templat
|
|
|
614
644
|
i0.ɵɵadvance();
|
|
615
645
|
i0.ɵɵtextInterpolate2(" ", ctx_r0.ServicePeriodValue(line_r3, "Start") || "\u2014", " to ", ctx_r0.ServicePeriodValue(line_r3, "End") || "\u2014", " ");
|
|
616
646
|
} }
|
|
617
|
-
function
|
|
618
|
-
i0.ɵɵelementStart(0, "span",
|
|
647
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_35_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
648
|
+
i0.ɵɵelementStart(0, "span", 77);
|
|
619
649
|
i0.ɵɵtext(1, " End date must be on or after the start date. ");
|
|
620
650
|
i0.ɵɵelementEnd();
|
|
621
651
|
} }
|
|
622
|
-
function
|
|
623
|
-
i0.ɵɵelementStart(0, "span",
|
|
624
|
-
i0.ɵɵtext(1, "
|
|
652
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_35_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
653
|
+
i0.ɵɵelementStart(0, "span", 73);
|
|
654
|
+
i0.ɵɵtext(1, " Required to confirm: revenue on this line is recognized against these dates. ");
|
|
625
655
|
i0.ɵɵelementEnd();
|
|
626
656
|
} }
|
|
627
|
-
function
|
|
628
|
-
i0.ɵɵelementStart(0, "div",
|
|
657
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_35_Template(rf, ctx) { if (rf & 1) {
|
|
658
|
+
i0.ɵɵelementStart(0, "div", 31)(1, "label", 70);
|
|
629
659
|
i0.ɵɵtext(2, " Service period ");
|
|
630
660
|
i0.ɵɵelementEnd();
|
|
631
|
-
i0.ɵɵconditionalCreate(3,
|
|
632
|
-
i0.ɵɵconditionalCreate(5,
|
|
661
|
+
i0.ɵɵconditionalCreate(3, MJOOrderLinesEditorComponent_For_4_Conditional_35_Conditional_3_Template, 4, 3)(4, MJOOrderLinesEditorComponent_For_4_Conditional_35_Conditional_4_Template, 2, 2, "span", 72);
|
|
662
|
+
i0.ɵɵconditionalCreate(5, MJOOrderLinesEditorComponent_For_4_Conditional_35_Conditional_5_Template, 2, 0, "span", 77)(6, MJOOrderLinesEditorComponent_For_4_Conditional_35_Conditional_6_Template, 2, 0, "span", 73);
|
|
633
663
|
i0.ɵɵelementEnd();
|
|
634
664
|
} if (rf & 2) {
|
|
635
665
|
const line_r3 = i0.ɵɵnextContext().$implicit;
|
|
@@ -641,19 +671,19 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_33_Template(rf, ctx) { i
|
|
|
641
671
|
i0.ɵɵadvance(2);
|
|
642
672
|
i0.ɵɵconditional(ctx_r0.ServicePeriodBackwards(line_r3) ? 5 : ctx_r0.ServicePeriodMissing(line_r3) ? 6 : -1);
|
|
643
673
|
} }
|
|
644
|
-
function
|
|
645
|
-
const
|
|
646
|
-
i0.ɵɵelementStart(0, "label",
|
|
674
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_36_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
675
|
+
const _r19 = i0.ɵɵgetCurrentView();
|
|
676
|
+
i0.ɵɵelementStart(0, "label", 70);
|
|
647
677
|
i0.ɵɵtext(1, "Expected start");
|
|
648
678
|
i0.ɵɵelementEnd();
|
|
649
|
-
i0.ɵɵelementStart(2, "input",
|
|
650
|
-
i0.ɵɵlistener("change", function
|
|
679
|
+
i0.ɵɵelementStart(2, "input", 74);
|
|
680
|
+
i0.ɵɵlistener("change", function MJOOrderLinesEditorComponent_For_4_Conditional_36_Conditional_1_Template_input_change_2_listener($event) { i0.ɵɵrestoreView(_r19); const line_r3 = i0.ɵɵnextContext(2).$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.SetServicePeriod(line_r3, "Start", $event)); });
|
|
651
681
|
i0.ɵɵelementEnd();
|
|
652
|
-
i0.ɵɵelementStart(3, "label",
|
|
682
|
+
i0.ɵɵelementStart(3, "label", 70);
|
|
653
683
|
i0.ɵɵtext(4, "Expected end");
|
|
654
684
|
i0.ɵɵelementEnd();
|
|
655
|
-
i0.ɵɵelementStart(5, "input",
|
|
656
|
-
i0.ɵɵlistener("change", function
|
|
685
|
+
i0.ɵɵelementStart(5, "input", 74);
|
|
686
|
+
i0.ɵɵlistener("change", function MJOOrderLinesEditorComponent_For_4_Conditional_36_Conditional_1_Template_input_change_5_listener($event) { i0.ɵɵrestoreView(_r19); const line_r3 = i0.ɵɵnextContext(2).$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.SetServicePeriod(line_r3, "End", $event)); });
|
|
657
687
|
i0.ɵɵelementEnd();
|
|
658
688
|
} if (rf & 2) {
|
|
659
689
|
const line_r3 = i0.ɵɵnextContext(2).$implicit;
|
|
@@ -666,17 +696,17 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_1_Templat
|
|
|
666
696
|
i0.ɵɵadvance(2);
|
|
667
697
|
i0.ɵɵproperty("id", "mjo-ol-exp-end-" + line_r3.ID)("value", ctx_r0.ServicePeriodValue(line_r3, "End"));
|
|
668
698
|
} }
|
|
669
|
-
function
|
|
670
|
-
i0.ɵɵelementStart(0, "span",
|
|
699
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_36_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
700
|
+
i0.ɵɵelementStart(0, "span", 70);
|
|
671
701
|
i0.ɵɵtext(1, "Expected start");
|
|
672
702
|
i0.ɵɵelementEnd();
|
|
673
|
-
i0.ɵɵelementStart(2, "span",
|
|
703
|
+
i0.ɵɵelementStart(2, "span", 72);
|
|
674
704
|
i0.ɵɵtext(3);
|
|
675
705
|
i0.ɵɵelementEnd();
|
|
676
|
-
i0.ɵɵelementStart(4, "span",
|
|
706
|
+
i0.ɵɵelementStart(4, "span", 70);
|
|
677
707
|
i0.ɵɵtext(5, "Expected end");
|
|
678
708
|
i0.ɵɵelementEnd();
|
|
679
|
-
i0.ɵɵelementStart(6, "span",
|
|
709
|
+
i0.ɵɵelementStart(6, "span", 72);
|
|
680
710
|
i0.ɵɵtext(7);
|
|
681
711
|
i0.ɵɵelementEnd();
|
|
682
712
|
} if (rf & 2) {
|
|
@@ -687,20 +717,20 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_2_Templat
|
|
|
687
717
|
i0.ɵɵadvance(4);
|
|
688
718
|
i0.ɵɵtextInterpolate(ctx_r0.ServicePeriodValue(line_r3, "End") || "\u2014");
|
|
689
719
|
} }
|
|
690
|
-
function
|
|
691
|
-
i0.ɵɵelementStart(0, "span",
|
|
720
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_36_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
721
|
+
i0.ɵɵelementStart(0, "span", 77);
|
|
692
722
|
i0.ɵɵtext(1, " End date must be on or after the start date. ");
|
|
693
723
|
i0.ɵɵelementEnd();
|
|
694
724
|
} }
|
|
695
|
-
function
|
|
696
|
-
i0.ɵɵelementStart(0, "span",
|
|
725
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_36_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
726
|
+
i0.ɵɵelementStart(0, "span", 73);
|
|
697
727
|
i0.ɵɵtext(1, " Optional. Revenue on this line follows recorded progress, not these dates. ");
|
|
698
728
|
i0.ɵɵelementEnd();
|
|
699
729
|
} }
|
|
700
|
-
function
|
|
701
|
-
i0.ɵɵelementStart(0, "div",
|
|
702
|
-
i0.ɵɵconditionalCreate(1,
|
|
703
|
-
i0.ɵɵconditionalCreate(3,
|
|
730
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_36_Template(rf, ctx) { if (rf & 1) {
|
|
731
|
+
i0.ɵɵelementStart(0, "div", 31);
|
|
732
|
+
i0.ɵɵconditionalCreate(1, MJOOrderLinesEditorComponent_For_4_Conditional_36_Conditional_1_Template, 6, 6)(2, MJOOrderLinesEditorComponent_For_4_Conditional_36_Conditional_2_Template, 8, 2);
|
|
733
|
+
i0.ɵɵconditionalCreate(3, MJOOrderLinesEditorComponent_For_4_Conditional_36_Conditional_3_Template, 2, 0, "span", 77)(4, MJOOrderLinesEditorComponent_For_4_Conditional_36_Conditional_4_Template, 2, 0, "span", 73);
|
|
704
734
|
i0.ɵɵelementEnd();
|
|
705
735
|
} if (rf & 2) {
|
|
706
736
|
const line_r3 = i0.ɵɵnextContext().$implicit;
|
|
@@ -710,20 +740,20 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_34_Template(rf, ctx) { i
|
|
|
710
740
|
i0.ɵɵadvance(2);
|
|
711
741
|
i0.ɵɵconditional(ctx_r0.ServicePeriodBackwards(line_r3) ? 3 : ctx_r0.CanEditServicePeriod() ? 4 : -1);
|
|
712
742
|
} }
|
|
713
|
-
function
|
|
714
|
-
i0.ɵɵelementStart(0, "span",
|
|
743
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_37_Conditional_5_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
744
|
+
i0.ɵɵelementStart(0, "span", 90);
|
|
715
745
|
i0.ɵɵtext(1, "Running alongside needs the Account Director role.");
|
|
716
746
|
i0.ɵɵelementEnd();
|
|
717
747
|
} }
|
|
718
|
-
function
|
|
719
|
-
const
|
|
720
|
-
i0.ɵɵelementStart(0, "label",
|
|
748
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_37_Conditional_5_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
749
|
+
const _r21 = i0.ɵɵgetCurrentView();
|
|
750
|
+
i0.ɵɵelementStart(0, "label", 92)(1, "span");
|
|
721
751
|
i0.ɵɵtext(2, "Reason to run alongside");
|
|
722
|
-
i0.ɵɵelementStart(3, "em",
|
|
752
|
+
i0.ɵɵelementStart(3, "em", 57);
|
|
723
753
|
i0.ɵɵtext(4, "*");
|
|
724
754
|
i0.ɵɵelementEnd()();
|
|
725
|
-
i0.ɵɵelementStart(5, "textarea",
|
|
726
|
-
i0.ɵɵlistener("input", function
|
|
755
|
+
i0.ɵɵelementStart(5, "textarea", 93);
|
|
756
|
+
i0.ɵɵlistener("input", function MJOOrderLinesEditorComponent_For_4_Conditional_37_Conditional_5_Conditional_4_Template_textarea_input_5_listener($event) { i0.ɵɵrestoreView(_r21); const line_r3 = i0.ɵɵnextContext(3).$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.SetOverlapReason(line_r3, $event)); });
|
|
727
757
|
i0.ɵɵelementEnd()();
|
|
728
758
|
} if (rf & 2) {
|
|
729
759
|
const line_r3 = i0.ɵɵnextContext(3).$implicit;
|
|
@@ -732,15 +762,15 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_35_Conditional_5_Conditi
|
|
|
732
762
|
i0.ɵɵadvance(5);
|
|
733
763
|
i0.ɵɵproperty("value", line_r3.CoverageOverlapReason ?? "")("disabled", !ctx_r0.EditMode);
|
|
734
764
|
} }
|
|
735
|
-
function
|
|
736
|
-
const
|
|
737
|
-
i0.ɵɵelementStart(0, "label",
|
|
738
|
-
i0.ɵɵlistener("change", function
|
|
765
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_37_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
766
|
+
const _r20 = i0.ɵɵgetCurrentView();
|
|
767
|
+
i0.ɵɵelementStart(0, "label", 88)(1, "input", 89);
|
|
768
|
+
i0.ɵɵlistener("change", function MJOOrderLinesEditorComponent_For_4_Conditional_37_Conditional_5_Template_input_change_1_listener($event) { i0.ɵɵrestoreView(_r20); const line_r3 = i0.ɵɵnextContext(2).$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.SetOverlapAcknowledged(line_r3, $event)); });
|
|
739
769
|
i0.ɵɵelementEnd();
|
|
740
770
|
i0.ɵɵtext(2, " Run alongside the existing coverage. Both will be billed. ");
|
|
741
771
|
i0.ɵɵelementEnd();
|
|
742
|
-
i0.ɵɵconditionalCreate(3,
|
|
743
|
-
i0.ɵɵconditionalCreate(4,
|
|
772
|
+
i0.ɵɵconditionalCreate(3, MJOOrderLinesEditorComponent_For_4_Conditional_37_Conditional_5_Conditional_3_Template, 2, 0, "span", 90);
|
|
773
|
+
i0.ɵɵconditionalCreate(4, MJOOrderLinesEditorComponent_For_4_Conditional_37_Conditional_5_Conditional_4_Template, 6, 4, "label", 91);
|
|
744
774
|
} if (rf & 2) {
|
|
745
775
|
const line_r3 = i0.ɵɵnextContext(2).$implicit;
|
|
746
776
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -751,13 +781,13 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_35_Conditional_5_Templat
|
|
|
751
781
|
i0.ɵɵadvance();
|
|
752
782
|
i0.ɵɵconditional(line_r3.AcknowledgesCoverageOverlap ? 4 : -1);
|
|
753
783
|
} }
|
|
754
|
-
function
|
|
755
|
-
i0.ɵɵelementStart(0, "div",
|
|
756
|
-
i0.ɵɵelement(1, "i",
|
|
757
|
-
i0.ɵɵelementStart(2, "div",
|
|
784
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_37_Template(rf, ctx) { if (rf & 1) {
|
|
785
|
+
i0.ɵɵelementStart(0, "div", 85);
|
|
786
|
+
i0.ɵɵelement(1, "i", 86);
|
|
787
|
+
i0.ɵɵelementStart(2, "div", 87)(3, "span");
|
|
758
788
|
i0.ɵɵtext(4);
|
|
759
789
|
i0.ɵɵelementEnd();
|
|
760
|
-
i0.ɵɵconditionalCreate(5,
|
|
790
|
+
i0.ɵɵconditionalCreate(5, MJOOrderLinesEditorComponent_For_4_Conditional_37_Conditional_5_Template, 5, 4);
|
|
761
791
|
i0.ɵɵelementEnd()();
|
|
762
792
|
} if (rf & 2) {
|
|
763
793
|
const line_r3 = i0.ɵɵnextContext().$implicit;
|
|
@@ -768,8 +798,8 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_35_Template(rf, ctx) { i
|
|
|
768
798
|
i0.ɵɵadvance();
|
|
769
799
|
i0.ɵɵconditional(ctx_r0.CanAcknowledgeOverlap(line_r3) ? 5 : -1);
|
|
770
800
|
} }
|
|
771
|
-
function
|
|
772
|
-
i0.ɵɵelementStart(0, "span",
|
|
801
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_38_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
802
|
+
i0.ɵɵelementStart(0, "span", 98);
|
|
773
803
|
i0.ɵɵtext(1);
|
|
774
804
|
i0.ɵɵelementEnd();
|
|
775
805
|
} if (rf & 2) {
|
|
@@ -778,18 +808,18 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_36_Conditional_5_Templat
|
|
|
778
808
|
i0.ɵɵadvance();
|
|
779
809
|
i0.ɵɵtextInterpolate(ctx_r0.ExtensionHint(line_r3));
|
|
780
810
|
} }
|
|
781
|
-
function
|
|
782
|
-
const
|
|
783
|
-
i0.ɵɵelementStart(0, "div",
|
|
784
|
-
i0.ɵɵlistener("click", function
|
|
785
|
-
i0.ɵɵelement(2, "i",
|
|
786
|
-
i0.ɵɵelementStart(3, "span",
|
|
811
|
+
function MJOOrderLinesEditorComponent_For_4_Conditional_38_Template(rf, ctx) { if (rf & 1) {
|
|
812
|
+
const _r22 = i0.ɵɵgetCurrentView();
|
|
813
|
+
i0.ɵɵelementStart(0, "div", 94)(1, "button", 95);
|
|
814
|
+
i0.ɵɵlistener("click", function MJOOrderLinesEditorComponent_For_4_Conditional_38_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r22); const line_r3 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.ToggleExtension(line_r3)); });
|
|
815
|
+
i0.ɵɵelement(2, "i", 96);
|
|
816
|
+
i0.ɵɵelementStart(3, "span", 97);
|
|
787
817
|
i0.ɵɵtext(4);
|
|
788
818
|
i0.ɵɵelementEnd();
|
|
789
|
-
i0.ɵɵconditionalCreate(5,
|
|
819
|
+
i0.ɵɵconditionalCreate(5, MJOOrderLinesEditorComponent_For_4_Conditional_38_Conditional_5_Template, 2, 1, "span", 98);
|
|
790
820
|
i0.ɵɵelementEnd();
|
|
791
|
-
i0.ɵɵelementStart(6, "div",
|
|
792
|
-
i0.ɵɵlistener("FormCreated", function
|
|
821
|
+
i0.ɵɵelementStart(6, "div", 99)(7, "div", 100)(8, "mj-entity-form-host", 101);
|
|
822
|
+
i0.ɵɵlistener("FormCreated", function MJOOrderLinesEditorComponent_For_4_Conditional_38_Template_mj_entity_form_host_FormCreated_8_listener($event) { i0.ɵɵrestoreView(_r22); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.OnExtensionFormCreated($event)); })("Navigate", function MJOOrderLinesEditorComponent_For_4_Conditional_38_Template_mj_entity_form_host_Navigate_8_listener($event) { i0.ɵɵrestoreView(_r22); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.OnExtensionNavigate($event)); });
|
|
793
823
|
i0.ɵɵelementEnd()()()();
|
|
794
824
|
} if (rf & 2) {
|
|
795
825
|
const line_r3 = i0.ɵɵnextContext().$implicit;
|
|
@@ -845,12 +875,13 @@ function MJOOrderLinesEditorComponent_For_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
845
875
|
i0.ɵɵconditionalCreate(29, MJOOrderLinesEditorComponent_For_4_Conditional_29_Template, 3, 3);
|
|
846
876
|
i0.ɵɵelementEnd();
|
|
847
877
|
i0.ɵɵconditionalCreate(30, MJOOrderLinesEditorComponent_For_4_Conditional_30_Template, 2, 1, "div", 28);
|
|
848
|
-
i0.ɵɵconditionalCreate(31, MJOOrderLinesEditorComponent_For_4_Conditional_31_Template,
|
|
849
|
-
i0.ɵɵconditionalCreate(
|
|
850
|
-
i0.ɵɵconditionalCreate(
|
|
851
|
-
i0.ɵɵconditionalCreate(
|
|
852
|
-
i0.ɵɵconditionalCreate(
|
|
853
|
-
i0.ɵɵconditionalCreate(
|
|
878
|
+
i0.ɵɵconditionalCreate(31, MJOOrderLinesEditorComponent_For_4_Conditional_31_Template, 6, 5, "label", 29)(32, MJOOrderLinesEditorComponent_For_4_Conditional_32_Template, 2, 1, "div", 30);
|
|
879
|
+
i0.ɵɵconditionalCreate(33, MJOOrderLinesEditorComponent_For_4_Conditional_33_Template, 11, 3, "div", 31);
|
|
880
|
+
i0.ɵɵconditionalCreate(34, MJOOrderLinesEditorComponent_For_4_Conditional_34_Template, 8, 3);
|
|
881
|
+
i0.ɵɵconditionalCreate(35, MJOOrderLinesEditorComponent_For_4_Conditional_35_Template, 7, 3, "div", 31);
|
|
882
|
+
i0.ɵɵconditionalCreate(36, MJOOrderLinesEditorComponent_For_4_Conditional_36_Template, 5, 2, "div", 31);
|
|
883
|
+
i0.ɵɵconditionalCreate(37, MJOOrderLinesEditorComponent_For_4_Conditional_37_Template, 6, 4, "div", 32);
|
|
884
|
+
i0.ɵɵconditionalCreate(38, MJOOrderLinesEditorComponent_For_4_Conditional_38_Template, 9, 12, "div", 33);
|
|
854
885
|
i0.ɵɵelementEnd();
|
|
855
886
|
} if (rf & 2) {
|
|
856
887
|
let tmp_12_0;
|
|
@@ -861,8 +892,8 @@ function MJOOrderLinesEditorComponent_For_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
861
892
|
let tmp_24_0;
|
|
862
893
|
let tmp_27_0;
|
|
863
894
|
let tmp_28_0;
|
|
864
|
-
let tmp_33_0;
|
|
865
895
|
let tmp_34_0;
|
|
896
|
+
let tmp_35_0;
|
|
866
897
|
const line_r3 = ctx.$implicit;
|
|
867
898
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
868
899
|
i0.ɵɵadvance(3);
|
|
@@ -878,7 +909,7 @@ function MJOOrderLinesEditorComponent_For_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
878
909
|
i0.ɵɵadvance();
|
|
879
910
|
i0.ɵɵconditional(ctx_r0.EditMode && !ctx_r0.QuantityCappedToOne(line_r3) ? 9 : 10);
|
|
880
911
|
i0.ɵɵadvance(5);
|
|
881
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(15,
|
|
912
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(15, 27, ctx_r0.DisplayUnit(line_r3)));
|
|
882
913
|
i0.ɵɵadvance(2);
|
|
883
914
|
i0.ɵɵconditional(ctx_r0.CanOverride || ctx_r0.CanDiscount || ctx_r0.CanPickBand(line_r3) ? 16 : -1);
|
|
884
915
|
i0.ɵɵadvance();
|
|
@@ -888,7 +919,7 @@ function MJOOrderLinesEditorComponent_For_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
888
919
|
i0.ɵɵadvance();
|
|
889
920
|
i0.ɵɵconditional((tmp_21_0 = (tmp_21_0 = ctx_r0.PricedLine(line_r3)) == null ? null : tmp_21_0.Error) ? 20 : -1, tmp_21_0);
|
|
890
921
|
i0.ɵɵadvance(2);
|
|
891
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(23,
|
|
922
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(23, 29, (tmp_22_0 = ctx_r0.PricedLine(line_r3)) == null ? null : tmp_22_0.NetAmount));
|
|
892
923
|
i0.ɵɵadvance(2);
|
|
893
924
|
i0.ɵɵattribute("title", ctx_r0.DimensionSummary(line_r3))("aria-label", "Details for " + (((tmp_24_0 = ctx_r0.ProductFor(line_r3)) == null ? null : tmp_24_0.Name) ?? "line"));
|
|
894
925
|
i0.ɵɵadvance(2);
|
|
@@ -900,69 +931,71 @@ function MJOOrderLinesEditorComponent_For_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
900
931
|
i0.ɵɵadvance();
|
|
901
932
|
i0.ɵɵconditional((tmp_28_0 = ctx_r0.OverrideReasonText(line_r3)) ? 30 : -1, tmp_28_0);
|
|
902
933
|
i0.ɵɵadvance();
|
|
903
|
-
i0.ɵɵconditional(ctx_r0.
|
|
934
|
+
i0.ɵɵconditional(ctx_r0.EditMode ? 31 : line_r3.Description ? 32 : -1);
|
|
935
|
+
i0.ɵɵadvance(2);
|
|
936
|
+
i0.ɵɵconditional(ctx_r0.ShowsTermStart(line_r3) ? 33 : -1);
|
|
904
937
|
i0.ɵɵadvance();
|
|
905
|
-
i0.ɵɵconditional(ctx_r0.IsSubscriptionLine(line_r3) ?
|
|
938
|
+
i0.ɵɵconditional(ctx_r0.IsSubscriptionLine(line_r3) ? 34 : -1);
|
|
906
939
|
i0.ɵɵadvance();
|
|
907
|
-
i0.ɵɵconditional(ctx_r0.NeedsStatedServicePeriod(line_r3) ?
|
|
940
|
+
i0.ɵɵconditional(ctx_r0.NeedsStatedServicePeriod(line_r3) ? 35 : -1);
|
|
908
941
|
i0.ɵɵadvance();
|
|
909
|
-
i0.ɵɵconditional(ctx_r0.ShowsExpectedServicePeriod(line_r3) ?
|
|
942
|
+
i0.ɵɵconditional(ctx_r0.ShowsExpectedServicePeriod(line_r3) ? 36 : -1);
|
|
910
943
|
i0.ɵɵadvance();
|
|
911
|
-
i0.ɵɵconditional((
|
|
944
|
+
i0.ɵɵconditional((tmp_34_0 = ctx_r0.CoverageOverlapFor(line_r3)) ? 37 : -1, tmp_34_0);
|
|
912
945
|
i0.ɵɵadvance();
|
|
913
|
-
i0.ɵɵconditional((
|
|
946
|
+
i0.ɵɵconditional((tmp_35_0 = ctx_r0.ExtensionFor(line_r3)) ? 38 : -1, tmp_35_0);
|
|
914
947
|
} }
|
|
915
948
|
function MJOOrderLinesEditorComponent_ForEmpty_5_Template(rf, ctx) { if (rf & 1) {
|
|
916
949
|
i0.ɵɵelement(0, "mj-empty-state", 5);
|
|
917
950
|
} }
|
|
918
951
|
function MJOOrderLinesEditorComponent_Conditional_6_Conditional_8_For_2_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
919
|
-
i0.ɵɵelementStart(0, "span",
|
|
920
|
-
i0.ɵɵelement(1, "i",
|
|
952
|
+
i0.ɵɵelementStart(0, "span", 120);
|
|
953
|
+
i0.ɵɵelement(1, "i", 121);
|
|
921
954
|
i0.ɵɵtext(2);
|
|
922
955
|
i0.ɵɵelementEnd();
|
|
923
956
|
} if (rf & 2) {
|
|
924
|
-
const
|
|
957
|
+
const product_r25 = i0.ɵɵnextContext().$implicit;
|
|
925
958
|
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
926
|
-
i0.ɵɵclassProp("is-foreign", ctx_r0.IsForeignCompany(
|
|
927
|
-
i0.ɵɵattribute("title", ctx_r0.IsForeignCompany(
|
|
959
|
+
i0.ɵɵclassProp("is-foreign", ctx_r0.IsForeignCompany(product_r25));
|
|
960
|
+
i0.ɵɵattribute("title", ctx_r0.IsForeignCompany(product_r25) ? "Sold by " + product_r25.CompanyName + ", not this order's company" : product_r25.CompanyName);
|
|
928
961
|
i0.ɵɵadvance(2);
|
|
929
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
962
|
+
i0.ɵɵtextInterpolate1(" ", product_r25.CompanyName, " ");
|
|
930
963
|
} }
|
|
931
964
|
function MJOOrderLinesEditorComponent_Conditional_6_Conditional_8_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
932
|
-
const
|
|
933
|
-
i0.ɵɵelementStart(0, "button",
|
|
934
|
-
i0.ɵɵlistener("mousedown", function MJOOrderLinesEditorComponent_Conditional_6_Conditional_8_For_2_Template_button_mousedown_0_listener() { const
|
|
935
|
-
i0.ɵɵelementStart(1, "span",
|
|
965
|
+
const _r24 = i0.ɵɵgetCurrentView();
|
|
966
|
+
i0.ɵɵelementStart(0, "button", 112);
|
|
967
|
+
i0.ɵɵlistener("mousedown", function MJOOrderLinesEditorComponent_Conditional_6_Conditional_8_For_2_Template_button_mousedown_0_listener() { const product_r25 = i0.ɵɵrestoreView(_r24).$implicit; const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.AddProduct(product_r25)); });
|
|
968
|
+
i0.ɵɵelementStart(1, "span", 113)(2, "span", 114);
|
|
936
969
|
i0.ɵɵtext(3);
|
|
937
970
|
i0.ɵɵelementEnd();
|
|
938
|
-
i0.ɵɵelementStart(4, "span",
|
|
971
|
+
i0.ɵɵelementStart(4, "span", 115)(5, "span", 116);
|
|
939
972
|
i0.ɵɵtext(6);
|
|
940
973
|
i0.ɵɵelementEnd();
|
|
941
|
-
i0.ɵɵconditionalCreate(7, MJOOrderLinesEditorComponent_Conditional_6_Conditional_8_For_2_Conditional_7_Template, 3, 4, "span",
|
|
974
|
+
i0.ɵɵconditionalCreate(7, MJOOrderLinesEditorComponent_Conditional_6_Conditional_8_For_2_Conditional_7_Template, 3, 4, "span", 117);
|
|
942
975
|
i0.ɵɵelementEnd()();
|
|
943
|
-
i0.ɵɵelementStart(8, "span",
|
|
976
|
+
i0.ɵɵelementStart(8, "span", 118)(9, "span", 119);
|
|
944
977
|
i0.ɵɵtext(10);
|
|
945
978
|
i0.ɵɵpipe(11, "mjoMoney");
|
|
946
979
|
i0.ɵɵelementEnd();
|
|
947
|
-
i0.ɵɵelementStart(12, "span",
|
|
980
|
+
i0.ɵɵelementStart(12, "span", 116);
|
|
948
981
|
i0.ɵɵtext(13);
|
|
949
982
|
i0.ɵɵelementEnd()()();
|
|
950
983
|
} if (rf & 2) {
|
|
951
|
-
const
|
|
952
|
-
const ɵ$
|
|
984
|
+
const product_r25 = ctx.$implicit;
|
|
985
|
+
const ɵ$index_429_r26 = ctx.$index;
|
|
953
986
|
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
954
|
-
i0.ɵɵclassProp("is-cursor", ɵ$
|
|
955
|
-
i0.ɵɵattribute("aria-selected", ɵ$
|
|
987
|
+
i0.ɵɵclassProp("is-cursor", ɵ$index_429_r26 === ctx_r0.PickerCursor);
|
|
988
|
+
i0.ɵɵattribute("aria-selected", ɵ$index_429_r26 === ctx_r0.PickerCursor);
|
|
956
989
|
i0.ɵɵadvance(3);
|
|
957
|
-
i0.ɵɵtextInterpolate(
|
|
990
|
+
i0.ɵɵtextInterpolate(product_r25.Name);
|
|
958
991
|
i0.ɵɵadvance(3);
|
|
959
|
-
i0.ɵɵtextInterpolate2("",
|
|
992
|
+
i0.ɵɵtextInterpolate2("", product_r25.SKU, " \u00B7 ", product_r25.TypeName);
|
|
960
993
|
i0.ɵɵadvance();
|
|
961
|
-
i0.ɵɵconditional(
|
|
994
|
+
i0.ɵɵconditional(product_r25.CompanyName ? 7 : -1);
|
|
962
995
|
i0.ɵɵadvance(3);
|
|
963
|
-
i0.ɵɵtextInterpolate(
|
|
996
|
+
i0.ɵɵtextInterpolate(product_r25.ListPrice === null ? "No price" : i0.ɵɵpipeBind1(11, 9, product_r25.ListPrice));
|
|
964
997
|
i0.ɵɵadvance(3);
|
|
965
|
-
i0.ɵɵtextInterpolate(
|
|
998
|
+
i0.ɵɵtextInterpolate(product_r25.Taxable ? "taxable" : "untaxable");
|
|
966
999
|
} }
|
|
967
1000
|
function MJOOrderLinesEditorComponent_Conditional_6_Conditional_8_ForEmpty_3_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
968
1001
|
i0.ɵɵtext(0);
|
|
@@ -980,7 +1013,7 @@ function MJOOrderLinesEditorComponent_Conditional_6_Conditional_8_ForEmpty_3_Con
|
|
|
980
1013
|
i0.ɵɵtext(0, " No product from this order's company matches that. ");
|
|
981
1014
|
} }
|
|
982
1015
|
function MJOOrderLinesEditorComponent_Conditional_6_Conditional_8_ForEmpty_3_Template(rf, ctx) { if (rf & 1) {
|
|
983
|
-
i0.ɵɵelementStart(0, "div",
|
|
1016
|
+
i0.ɵɵelementStart(0, "div", 110)(1, "span", 122);
|
|
984
1017
|
i0.ɵɵconditionalCreate(2, MJOOrderLinesEditorComponent_Conditional_6_Conditional_8_ForEmpty_3_Conditional_2_Template, 1, 1)(3, MJOOrderLinesEditorComponent_Conditional_6_Conditional_8_ForEmpty_3_Conditional_3_Template, 1, 0)(4, MJOOrderLinesEditorComponent_Conditional_6_Conditional_8_ForEmpty_3_Conditional_4_Template, 1, 0)(5, MJOOrderLinesEditorComponent_Conditional_6_Conditional_8_ForEmpty_3_Conditional_5_Template, 1, 0);
|
|
985
1018
|
i0.ɵɵelementEnd()();
|
|
986
1019
|
} if (rf & 2) {
|
|
@@ -989,8 +1022,8 @@ function MJOOrderLinesEditorComponent_Conditional_6_Conditional_8_ForEmpty_3_Tem
|
|
|
989
1022
|
i0.ɵɵconditional(ctx_r0.CatalogError ? 2 : ctx_r0.Catalog.length === 0 ? 3 : ctx_r0.PickerHiddenByCompany === 0 ? 4 : 5);
|
|
990
1023
|
} }
|
|
991
1024
|
function MJOOrderLinesEditorComponent_Conditional_6_Conditional_8_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
992
|
-
i0.ɵɵelementStart(0, "div",
|
|
993
|
-
i0.ɵɵelement(2, "i",
|
|
1025
|
+
i0.ɵɵelementStart(0, "div", 111)(1, "span", 122);
|
|
1026
|
+
i0.ɵɵelement(2, "i", 47);
|
|
994
1027
|
i0.ɵɵtext(3);
|
|
995
1028
|
i0.ɵɵelementEnd()();
|
|
996
1029
|
} if (rf & 2) {
|
|
@@ -999,9 +1032,9 @@ function MJOOrderLinesEditorComponent_Conditional_6_Conditional_8_Conditional_4_
|
|
|
999
1032
|
i0.ɵɵtextInterpolate1(" ", ctx_r0.PickerHiddenByCompany, " more from other companies. Uncheck \"Only selling company products\" to see them. ");
|
|
1000
1033
|
} }
|
|
1001
1034
|
function MJOOrderLinesEditorComponent_Conditional_6_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
1002
|
-
i0.ɵɵelementStart(0, "div",
|
|
1003
|
-
i0.ɵɵrepeaterCreate(1, MJOOrderLinesEditorComponent_Conditional_6_Conditional_8_For_2_Template, 14, 11, "button",
|
|
1004
|
-
i0.ɵɵconditionalCreate(4, MJOOrderLinesEditorComponent_Conditional_6_Conditional_8_Conditional_4_Template, 4, 1, "div",
|
|
1035
|
+
i0.ɵɵelementStart(0, "div", 108);
|
|
1036
|
+
i0.ɵɵrepeaterCreate(1, MJOOrderLinesEditorComponent_Conditional_6_Conditional_8_For_2_Template, 14, 11, "button", 109, _forTrack0, false, MJOOrderLinesEditorComponent_Conditional_6_Conditional_8_ForEmpty_3_Template, 6, 1, "div", 110);
|
|
1037
|
+
i0.ɵɵconditionalCreate(4, MJOOrderLinesEditorComponent_Conditional_6_Conditional_8_Conditional_4_Template, 4, 1, "div", 111);
|
|
1005
1038
|
i0.ɵɵelementEnd();
|
|
1006
1039
|
} if (rf & 2) {
|
|
1007
1040
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
@@ -1012,22 +1045,22 @@ function MJOOrderLinesEditorComponent_Conditional_6_Conditional_8_Template(rf, c
|
|
|
1012
1045
|
i0.ɵɵconditional(ctx_r0.SellingCompanyOnly && ctx_r0.PickerHiddenByCompany > 0 ? 4 : -1);
|
|
1013
1046
|
} }
|
|
1014
1047
|
function MJOOrderLinesEditorComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
1015
|
-
const
|
|
1016
|
-
i0.ɵɵelementStart(0, "div", 6, 0)(2, "div",
|
|
1017
|
-
i0.ɵɵelement(3, "i",
|
|
1018
|
-
i0.ɵɵelementStart(4, "input",
|
|
1019
|
-
i0.ɵɵtwoWayListener("ngModelChange", function MJOOrderLinesEditorComponent_Conditional_6_Template_input_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(
|
|
1020
|
-
i0.ɵɵlistener("ngModelChange", function MJOOrderLinesEditorComponent_Conditional_6_Template_input_ngModelChange_4_listener() { i0.ɵɵrestoreView(
|
|
1021
|
-
i0.ɵɵelementEnd();
|
|
1022
|
-
i0.ɵɵelementStart(5, "label",
|
|
1023
|
-
i0.ɵɵlistener("mousedown", function MJOOrderLinesEditorComponent_Conditional_6_Template_label_mousedown_5_listener($event) { i0.ɵɵrestoreView(
|
|
1024
|
-
i0.ɵɵelementStart(6, "input",
|
|
1025
|
-
i0.ɵɵtwoWayListener("ngModelChange", function MJOOrderLinesEditorComponent_Conditional_6_Template_input_ngModelChange_6_listener($event) { i0.ɵɵrestoreView(
|
|
1026
|
-
i0.ɵɵlistener("ngModelChange", function MJOOrderLinesEditorComponent_Conditional_6_Template_input_ngModelChange_6_listener() { i0.ɵɵrestoreView(
|
|
1048
|
+
const _r23 = i0.ɵɵgetCurrentView();
|
|
1049
|
+
i0.ɵɵelementStart(0, "div", 6, 0)(2, "div", 102);
|
|
1050
|
+
i0.ɵɵelement(3, "i", 103);
|
|
1051
|
+
i0.ɵɵelementStart(4, "input", 104);
|
|
1052
|
+
i0.ɵɵtwoWayListener("ngModelChange", function MJOOrderLinesEditorComponent_Conditional_6_Template_input_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(_r23); const ctx_r0 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r0.ProductQuery, $event) || (ctx_r0.ProductQuery = $event); return i0.ɵɵresetView($event); });
|
|
1053
|
+
i0.ɵɵlistener("ngModelChange", function MJOOrderLinesEditorComponent_Conditional_6_Template_input_ngModelChange_4_listener() { i0.ɵɵrestoreView(_r23); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.OnProductQueryChange()); })("focus", function MJOOrderLinesEditorComponent_Conditional_6_Template_input_focus_4_listener() { i0.ɵɵrestoreView(_r23); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.OpenPicker()); })("blur", function MJOOrderLinesEditorComponent_Conditional_6_Template_input_blur_4_listener() { i0.ɵɵrestoreView(_r23); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.ClosePickerSoon()); })("keydown", function MJOOrderLinesEditorComponent_Conditional_6_Template_input_keydown_4_listener($event) { i0.ɵɵrestoreView(_r23); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.OnPickerKey($event)); });
|
|
1054
|
+
i0.ɵɵelementEnd();
|
|
1055
|
+
i0.ɵɵelementStart(5, "label", 105);
|
|
1056
|
+
i0.ɵɵlistener("mousedown", function MJOOrderLinesEditorComponent_Conditional_6_Template_label_mousedown_5_listener($event) { i0.ɵɵrestoreView(_r23); return i0.ɵɵresetView($event.preventDefault()); });
|
|
1057
|
+
i0.ɵɵelementStart(6, "input", 106);
|
|
1058
|
+
i0.ɵɵtwoWayListener("ngModelChange", function MJOOrderLinesEditorComponent_Conditional_6_Template_input_ngModelChange_6_listener($event) { i0.ɵɵrestoreView(_r23); const ctx_r0 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r0.SellingCompanyOnly, $event) || (ctx_r0.SellingCompanyOnly = $event); return i0.ɵɵresetView($event); });
|
|
1059
|
+
i0.ɵɵlistener("ngModelChange", function MJOOrderLinesEditorComponent_Conditional_6_Template_input_ngModelChange_6_listener() { i0.ɵɵrestoreView(_r23); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.OnSellingCompanyOnlyChange()); });
|
|
1027
1060
|
i0.ɵɵelementEnd();
|
|
1028
1061
|
i0.ɵɵtext(7, " Only selling company products ");
|
|
1029
1062
|
i0.ɵɵelementEnd()();
|
|
1030
|
-
i0.ɵɵconditionalCreate(8, MJOOrderLinesEditorComponent_Conditional_6_Conditional_8_Template, 5, 4, "div",
|
|
1063
|
+
i0.ɵɵconditionalCreate(8, MJOOrderLinesEditorComponent_Conditional_6_Conditional_8_Template, 5, 4, "div", 107);
|
|
1031
1064
|
i0.ɵɵelementEnd();
|
|
1032
1065
|
} if (rf & 2) {
|
|
1033
1066
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -1448,6 +1481,32 @@ export class MJOOrderLinesEditorComponent {
|
|
|
1448
1481
|
return;
|
|
1449
1482
|
line.CoverageOverlapReason = target.value;
|
|
1450
1483
|
}
|
|
1484
|
+
/** `OrderLine.Description` is 500 characters; the input stops there so nothing is cut on save. */
|
|
1485
|
+
DescriptionMaxLength = ORDER_LINE_DESCRIPTION_MAX_LENGTH;
|
|
1486
|
+
/**
|
|
1487
|
+
* The line's own wording, which the invoice and the invoicing rail print after the product
|
|
1488
|
+
* name. Written on every keystroke, so the order shows as unsaved while the user is still
|
|
1489
|
+
* in the field; the box itself is left alone until they leave it, or a typed space would
|
|
1490
|
+
* be taken back out from under the cursor.
|
|
1491
|
+
*/
|
|
1492
|
+
TypeDescription(line, event) {
|
|
1493
|
+
if (!this.EditMode)
|
|
1494
|
+
return;
|
|
1495
|
+
const target = event.target;
|
|
1496
|
+
if (!(target instanceof HTMLTextAreaElement))
|
|
1497
|
+
return;
|
|
1498
|
+
SetLineDescription(line, target.value);
|
|
1499
|
+
}
|
|
1500
|
+
/** On leaving the field: store the text and show it as stored (one line, trimmed). */
|
|
1501
|
+
SetDescription(line, event) {
|
|
1502
|
+
if (!this.EditMode)
|
|
1503
|
+
return;
|
|
1504
|
+
const target = event.target;
|
|
1505
|
+
if (!(target instanceof HTMLTextAreaElement))
|
|
1506
|
+
return;
|
|
1507
|
+
SetLineDescription(line, target.value);
|
|
1508
|
+
target.value = line.Description ?? '';
|
|
1509
|
+
}
|
|
1451
1510
|
async refreshCoverage() {
|
|
1452
1511
|
const order = this._order;
|
|
1453
1512
|
if (!order?.IsSaved || order.Status !== 'Draft') {
|
|
@@ -2303,9 +2362,8 @@ export class MJOOrderLinesEditorComponent {
|
|
|
2303
2362
|
return line.Extension.Entity;
|
|
2304
2363
|
}
|
|
2305
2364
|
if (line.IsSaved && !this.hydratingLineIds.has(line.ID)) {
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
void this.hydrateSingleLine(line, extName);
|
|
2365
|
+
if (this.ProductFor(line)?.OrderLineExtensionEntity) {
|
|
2366
|
+
void this.hydrateSingleLine(line);
|
|
2309
2367
|
}
|
|
2310
2368
|
}
|
|
2311
2369
|
return null;
|
|
@@ -2542,20 +2600,22 @@ export class MJOOrderLinesEditorComponent {
|
|
|
2542
2600
|
async addExtendedLine(product) {
|
|
2543
2601
|
if (!this._order || !product.OrderLineExtensionEntity)
|
|
2544
2602
|
return;
|
|
2545
|
-
CachedExtensionEntityInfo(this.metadata, product.OrderLineExtensionEntity);
|
|
2546
2603
|
const line = (await this._order.Lines.Create());
|
|
2547
2604
|
line.ProductID = product.ID;
|
|
2548
2605
|
line.Quantity = ClampLineQuantity(1, product.MaxQuantityPerLine);
|
|
2549
|
-
await line.EnsureISAChild(
|
|
2606
|
+
const child = await line.EnsureISAChild();
|
|
2607
|
+
CachedExtensionEntityInfo(this.metadata, child?.EntityInfo?.Name ?? product.OrderLineExtensionEntity);
|
|
2550
2608
|
this.expandedLineIds.add(line.ID);
|
|
2551
2609
|
}
|
|
2552
|
-
async hydrateSingleLine(line
|
|
2610
|
+
async hydrateSingleLine(line) {
|
|
2553
2611
|
if (this.hydratingLineIds.has(line.ID))
|
|
2554
2612
|
return;
|
|
2555
2613
|
this.hydratingLineIds.add(line.ID);
|
|
2556
2614
|
try {
|
|
2557
|
-
|
|
2558
|
-
|
|
2615
|
+
const child = await line.EnsureISAChild();
|
|
2616
|
+
if (child?.EntityInfo?.Name) {
|
|
2617
|
+
CachedExtensionEntityInfo(this.metadata, child.EntityInfo.Name);
|
|
2618
|
+
}
|
|
2559
2619
|
this.cdr.detectChanges();
|
|
2560
2620
|
}
|
|
2561
2621
|
finally {
|
|
@@ -2568,13 +2628,12 @@ export class MJOOrderLinesEditorComponent {
|
|
|
2568
2628
|
if (this.Catalog.length === 0)
|
|
2569
2629
|
await this.loadCatalog();
|
|
2570
2630
|
for (const line of this.Lines) {
|
|
2571
|
-
|
|
2572
|
-
if (extName && line.IsSaved) {
|
|
2631
|
+
if (this.ProductFor(line)?.OrderLineExtensionEntity && line.IsSaved) {
|
|
2573
2632
|
if (line instanceof OrderLineEntity) {
|
|
2574
|
-
await this.hydrateSingleLine(line
|
|
2633
|
+
await this.hydrateSingleLine(line);
|
|
2575
2634
|
}
|
|
2576
2635
|
else if (line.Extension) {
|
|
2577
|
-
await this.hydrateSingleLine(line
|
|
2636
|
+
await this.hydrateSingleLine(line);
|
|
2578
2637
|
}
|
|
2579
2638
|
}
|
|
2580
2639
|
}
|
|
@@ -2746,11 +2805,11 @@ export class MJOOrderLinesEditorComponent {
|
|
|
2746
2805
|
} if (rf & 2) {
|
|
2747
2806
|
let _t;
|
|
2748
2807
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.pickerHost = _t.first);
|
|
2749
|
-
} }, inputs: { Provider: "Provider", EditMode: "EditMode", Instalments: "Instalments", Order: "Order" }, outputs: { PricingChanged: "PricingChanged", Navigate: "Navigate" }, decls: 8, vars: 12, consts: [["pickerHost", ""], [1, "mjo-ol"], ["role", "status", 1, "mjo-ol-overlap-err"], ["role", "status", 1, "mjo-ol-seat-note"], [1, "mjo-ol-card"], ["Size", "compact", "Icon", "fa-solid fa-cart-plus", "Title", "Nothing on this order yet", "Message", "Search the catalog to add the first line."], [1, "mj-typeahead", "mjo-ol-picker"], [3, "Closed", "Line", "ProductName", "ProductSKU", "ProductType", "Dimensions", "StampedTags", "CompanyValueIDs", "EditMode"], [1, "mjo-ol-card__top"], [1, "mjo-ol-card__id"], ["type", "button", "FieldName", "ProductID", 1, "mjo-ol-card__name", 3, "click", "mjRecordLink", "HandleClick"], [1, "mjo-ol-card__meta"], [1, "mjo-ol-qty"], [1, "mjo-ol-qty__value"], [1, "mjo-ol-card__price"], [1, "mjo-ol-card__price-row"], [1, "mjo-ol-card__amt"], ["type", "button", 1, "mjo-ol-iconbtn", "mjo-ol-price__pencil"], [1, "mjo-ol-overpill"], [3, "Source", "Settled", "Overridden"], ["title", "Discount on this line", 1, "mjo-ol-discpill"], [1, "mjo-ol-card__err"], [1, "mjo-ol-card__tot"], ["type", "button", 1, "mjo-ol-iconbtn", 3, "click"], ["aria-hidden", "true", 1, "fa-solid", "fa-sliders"], ["type", "button", 1, "mjo-ol-iconbtn"], ["role", "region", 1, "mjo-ol-override"], [1, "mjo-ol-card__conseq"], [1, "mjo-ol-card__why"], [1, "mjo-ol-term"], ["role", "status", 1, "mjo-ol-overlap", 3, "is-blocking"], [1, "mjo-ol-ext", 3, "is-open"], ["type", "button", "aria-label", "Decrease quantity", 3, "click"], ["aria-label", "Quantity", 3, "change", "value"], ["type", "button", "aria-label", "Increase quantity", 3, "click", "disabled"], ["type", "button", 1, "mjo-ol-iconbtn", "mjo-ol-price__pencil", 3, "click"], ["aria-hidden", "true", 1, "fa-solid", "fa-pencil"], ["aria-hidden", "true", 1, "fa-regular", "fa-trash-can"], ["role", "group", 1, "mjo-ol-discount"], [1, "mjo-ol-discount__note"], [1, "mjo-ol-override__actions"], ["type", "button", 1, "mjo-ol-override__done", 3, "click", "disabled"], ["type", "button", 1, "mjo-ol-override__reset", 3, "disabled"], [3, "PriceChanged", "Line", "OverrideKind", "Applicable", "EngineDefault", "DefaultUnit", "PriceSource", "PricedUnit"], ["role", "note", 1, "mjo-ol-override__hint"], ["aria-hidden", "true", 1, "fa-solid", "fa-circle-info"], [1, "mjo-ol-discount__head"], [1, "mjo-ol-discount__title"], [1, "mjo-ol-discount__cap"], [1, "mjo-ol-discount__row"], ["role", "radiogroup", "aria-label", "Discount expressed as", 1, "mjo-ol-discount__mode"], ["type", "button", "role", "radio", 3, "click"], ["type", "number", "step", "0.01", "min", "0", 1, "mjo-ol-discount__val", 3, "input", "value"], [1, "mjo-ol-discount__calc"], [1, "mjo-ol-discount__reason"], ["aria-hidden", "true", 1, "mjo-ol-override__req"], ["rows", "2", "placeholder", "Required \u2014 why value was given away on this line", 3, "input", "value"], ["role", "alert", 1, "mjo-ol-discount__err"], ["role", "status", 1, "mjo-ol-discount__approval"], [1, "mjo-ol-discount__staged"], [1, "mjo-ol-discount__badge"], ["type", "button", 1, "mjo-ol-discount__clear", 3, "click"], ["type", "button", 1, "mjo-ol-override__reset", 3, "click", "disabled"], ["Kind", "fulfillment"], ["Kind", "untaxable"], ["Kind", "company"], [1, "mjo-ol-term__label"], [1, "mjo-ol-term__value", "is-dictated"], [1, "mjo-ol-term__value"], [1, "mjo-ol-term__hint"], ["type", "date", 1, "mjo-ol-term__input", 3, "change", "id", "value"], ["type", "button", 1, "mjo-ol-term__reset"], ["type", "button", 1, "mjo-ol-term__reset", 3, "click"], ["role", "alert", 1, "mjo-ol-term__hint", "is-error"], ["role", "group", 1, "mjo-ol-holding"], [1, "mjo-ol-holding__text"], [1, "mjo-ol-holding__choices"], ["type", "button", 1, "mjo-ol-holding__choice", 3, "click"], ["type", "date", "aria-label", "Service period start", 1, "mjo-ol-term__input", 3, "change", "id", "value"], ["aria-hidden", "true", 1, "mjo-ol-term__label"], ["type", "date", "aria-label", "Service period end", 1, "mjo-ol-term__input", 3, "change", "value"], ["role", "status", 1, "mjo-ol-overlap"], ["aria-hidden", "true", 1, "fa-solid", "fa-triangle-exclamation"], [1, "mjo-ol-overlap__body"], [1, "mjo-ol-overlap__ack"], ["type", "checkbox", 3, "change", "checked", "disabled"], [1, "mjo-ol-overlap__hint"], [1, "mjo-ol-overlap__reason", 3, "is-required"], [1, "mjo-ol-overlap__reason"], ["rows", "2", "maxlength", "1000", "placeholder", "Required \u2014 why both subscriptions should be billed", 3, "input", "value", "disabled"], [1, "mjo-ol-ext"], ["type", "button", 1, "mjo-ol-ext__toggle", 3, "click"], ["aria-hidden", "true", 1, "fa-solid", "fa-chevron-right", "mjo-ol-ext__chev"], [1, "mjo-ol-ext__label"], [1, "mjo-ol-ext__hint"], [1, "mjo-ol-ext__body", 3, "id"], [1, "mjo-ol-ext__clip"], [3, "FormCreated", "Navigate", "Record", "EditMode", "Config"], [1, "mjo-search"], ["aria-hidden", "true", 1, "fa-solid", "fa-plus"], ["placeholder", "Add product \u2014 type a name or SKU\u2026", "autocomplete", "off", "role", "combobox", "aria-label", "Add a product", 3, "ngModelChange", "focus", "blur", "keydown", "ngModel"], [1, "mjo-ol-picker__company-only", 3, "mousedown"], ["type", "checkbox", 3, "ngModelChange", "ngModel", "disabled"], ["role", "listbox", 1, "mj-typeahead-list", "is-open", 3, "is-up"], ["role", "listbox", 1, "mj-typeahead-list", "is-open"], ["type", "button", "role", "option", 1, "mj-typeahead-item", "mjo-ol-pick", 3, "is-cursor"], [1, "mj-typeahead-item"], ["role", "status", 1, "mj-typeahead-item", "mjo-ol-pick__hidden"], ["type", "button", "role", "option", 1, "mj-typeahead-item", "mjo-ol-pick", 3, "mousedown"], [1, "mjo-ol-pick__body"], [1, "name"], [1, "mjo-ol-pick__meta"], [1, "sub"], [1, "mjo-ol-pick__company", 3, "is-foreign"], [1, "end"], [1, "mjo-ol-pick__price"], [1, "mjo-ol-pick__company"], ["aria-hidden", "true", 1, "fa-solid", "fa-building"], [1, "muted", "small"]], template: function MJOOrderLinesEditorComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2808
|
+
} }, inputs: { Provider: "Provider", EditMode: "EditMode", Instalments: "Instalments", Order: "Order" }, outputs: { PricingChanged: "PricingChanged", Navigate: "Navigate" }, decls: 8, vars: 12, consts: [["pickerHost", ""], [1, "mjo-ol"], ["role", "status", 1, "mjo-ol-overlap-err"], ["role", "status", 1, "mjo-ol-seat-note"], [1, "mjo-ol-card"], ["Size", "compact", "Icon", "fa-solid fa-cart-plus", "Title", "Nothing on this order yet", "Message", "Search the catalog to add the first line."], [1, "mj-typeahead", "mjo-ol-picker"], [3, "Closed", "Line", "ProductName", "ProductSKU", "ProductType", "Dimensions", "StampedTags", "CompanyValueIDs", "EditMode"], [1, "mjo-ol-card__top"], [1, "mjo-ol-card__id"], ["type", "button", "FieldName", "ProductID", 1, "mjo-ol-card__name", 3, "click", "mjRecordLink", "HandleClick"], [1, "mjo-ol-card__meta"], [1, "mjo-ol-qty"], [1, "mjo-ol-qty__value"], [1, "mjo-ol-card__price"], [1, "mjo-ol-card__price-row"], [1, "mjo-ol-card__amt"], ["type", "button", 1, "mjo-ol-iconbtn", "mjo-ol-price__pencil"], [1, "mjo-ol-overpill"], [3, "Source", "Settled", "Overridden"], ["title", "Discount on this line", 1, "mjo-ol-discpill"], [1, "mjo-ol-card__err"], [1, "mjo-ol-card__tot"], ["type", "button", 1, "mjo-ol-iconbtn", 3, "click"], ["aria-hidden", "true", 1, "fa-solid", "fa-sliders"], ["type", "button", 1, "mjo-ol-iconbtn"], ["role", "region", 1, "mjo-ol-override"], [1, "mjo-ol-card__conseq"], [1, "mjo-ol-card__why"], [1, "mjo-ol-desc"], ["data-testid", "order-line-description-text", 1, "mjo-ol-card__desc"], [1, "mjo-ol-term"], ["role", "status", 1, "mjo-ol-overlap", 3, "is-blocking"], [1, "mjo-ol-ext", 3, "is-open"], ["type", "button", "aria-label", "Decrease quantity", 3, "click"], ["aria-label", "Quantity", 3, "change", "value"], ["type", "button", "aria-label", "Increase quantity", 3, "click", "disabled"], ["type", "button", 1, "mjo-ol-iconbtn", "mjo-ol-price__pencil", 3, "click"], ["aria-hidden", "true", 1, "fa-solid", "fa-pencil"], ["aria-hidden", "true", 1, "fa-regular", "fa-trash-can"], ["role", "group", 1, "mjo-ol-discount"], [1, "mjo-ol-discount__note"], [1, "mjo-ol-override__actions"], ["type", "button", 1, "mjo-ol-override__done", 3, "click", "disabled"], ["type", "button", 1, "mjo-ol-override__reset", 3, "disabled"], [3, "PriceChanged", "Line", "OverrideKind", "Applicable", "EngineDefault", "DefaultUnit", "PriceSource", "PricedUnit"], ["role", "note", 1, "mjo-ol-override__hint"], ["aria-hidden", "true", 1, "fa-solid", "fa-circle-info"], [1, "mjo-ol-discount__head"], [1, "mjo-ol-discount__title"], [1, "mjo-ol-discount__cap"], [1, "mjo-ol-discount__row"], ["role", "radiogroup", "aria-label", "Discount expressed as", 1, "mjo-ol-discount__mode"], ["type", "button", "role", "radio", 3, "click"], ["type", "number", "step", "0.01", "min", "0", 1, "mjo-ol-discount__val", 3, "input", "value"], [1, "mjo-ol-discount__calc"], [1, "mjo-ol-discount__reason"], ["aria-hidden", "true", 1, "mjo-ol-override__req"], ["rows", "2", "placeholder", "Required \u2014 why value was given away on this line", 3, "input", "value"], ["role", "alert", 1, "mjo-ol-discount__err"], ["role", "status", 1, "mjo-ol-discount__approval"], [1, "mjo-ol-discount__staged"], [1, "mjo-ol-discount__badge"], ["type", "button", 1, "mjo-ol-discount__clear", 3, "click"], ["type", "button", 1, "mjo-ol-override__reset", 3, "click", "disabled"], ["Kind", "fulfillment"], ["Kind", "untaxable"], ["Kind", "company"], ["rows", "1", "data-testid", "order-line-description", 3, "input", "change", "value"], [1, "mjo-ol-desc__hint", 3, "id"], [1, "mjo-ol-term__label"], [1, "mjo-ol-term__value", "is-dictated"], [1, "mjo-ol-term__value"], [1, "mjo-ol-term__hint"], ["type", "date", 1, "mjo-ol-term__input", 3, "change", "id", "value"], ["type", "button", 1, "mjo-ol-term__reset"], ["type", "button", 1, "mjo-ol-term__reset", 3, "click"], ["role", "alert", 1, "mjo-ol-term__hint", "is-error"], ["role", "group", 1, "mjo-ol-holding"], [1, "mjo-ol-holding__text"], [1, "mjo-ol-holding__choices"], ["type", "button", 1, "mjo-ol-holding__choice", 3, "click"], ["type", "date", "aria-label", "Service period start", 1, "mjo-ol-term__input", 3, "change", "id", "value"], ["aria-hidden", "true", 1, "mjo-ol-term__label"], ["type", "date", "aria-label", "Service period end", 1, "mjo-ol-term__input", 3, "change", "value"], ["role", "status", 1, "mjo-ol-overlap"], ["aria-hidden", "true", 1, "fa-solid", "fa-triangle-exclamation"], [1, "mjo-ol-overlap__body"], [1, "mjo-ol-overlap__ack"], ["type", "checkbox", 3, "change", "checked", "disabled"], [1, "mjo-ol-overlap__hint"], [1, "mjo-ol-overlap__reason", 3, "is-required"], [1, "mjo-ol-overlap__reason"], ["rows", "2", "maxlength", "1000", "placeholder", "Required \u2014 why both subscriptions should be billed", 3, "input", "value", "disabled"], [1, "mjo-ol-ext"], ["type", "button", 1, "mjo-ol-ext__toggle", 3, "click"], ["aria-hidden", "true", 1, "fa-solid", "fa-chevron-right", "mjo-ol-ext__chev"], [1, "mjo-ol-ext__label"], [1, "mjo-ol-ext__hint"], [1, "mjo-ol-ext__body", 3, "id"], [1, "mjo-ol-ext__clip"], [3, "FormCreated", "Navigate", "Record", "EditMode", "Config"], [1, "mjo-search"], ["aria-hidden", "true", 1, "fa-solid", "fa-plus"], ["placeholder", "Add product \u2014 type a name or SKU\u2026", "autocomplete", "off", "role", "combobox", "aria-label", "Add a product", 3, "ngModelChange", "focus", "blur", "keydown", "ngModel"], [1, "mjo-ol-picker__company-only", 3, "mousedown"], ["type", "checkbox", 3, "ngModelChange", "ngModel", "disabled"], ["role", "listbox", 1, "mj-typeahead-list", "is-open", 3, "is-up"], ["role", "listbox", 1, "mj-typeahead-list", "is-open"], ["type", "button", "role", "option", 1, "mj-typeahead-item", "mjo-ol-pick", 3, "is-cursor"], [1, "mj-typeahead-item"], ["role", "status", 1, "mj-typeahead-item", "mjo-ol-pick__hidden"], ["type", "button", "role", "option", 1, "mj-typeahead-item", "mjo-ol-pick", 3, "mousedown"], [1, "mjo-ol-pick__body"], [1, "name"], [1, "mjo-ol-pick__meta"], [1, "sub"], [1, "mjo-ol-pick__company", 3, "is-foreign"], [1, "end"], [1, "mjo-ol-pick__price"], [1, "mjo-ol-pick__company"], ["aria-hidden", "true", 1, "fa-solid", "fa-building"], [1, "muted", "small"]], template: function MJOOrderLinesEditorComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2750
2809
|
i0.ɵɵelementStart(0, "div", 1);
|
|
2751
2810
|
i0.ɵɵconditionalCreate(1, MJOOrderLinesEditorComponent_Conditional_1_Template, 2, 1, "div", 2);
|
|
2752
2811
|
i0.ɵɵconditionalCreate(2, MJOOrderLinesEditorComponent_Conditional_2_Template, 2, 1, "div", 3);
|
|
2753
|
-
i0.ɵɵrepeaterCreate(3, MJOOrderLinesEditorComponent_For_4_Template,
|
|
2812
|
+
i0.ɵɵrepeaterCreate(3, MJOOrderLinesEditorComponent_For_4_Template, 39, 31, "div", 4, _forTrack0, false, MJOOrderLinesEditorComponent_ForEmpty_5_Template, 1, 0, "mj-empty-state", 5);
|
|
2754
2813
|
i0.ɵɵconditionalCreate(6, MJOOrderLinesEditorComponent_Conditional_6_Template, 9, 8, "div", 6);
|
|
2755
2814
|
i0.ɵɵelementStart(7, "mjo-order-line-details-panel", 7);
|
|
2756
2815
|
i0.ɵɵlistener("Closed", function MJOOrderLinesEditorComponent_Template_mjo_order_line_details_panel_Closed_7_listener() { return ctx.CloseDetails(); });
|
|
@@ -2775,7 +2834,7 @@ export class MJOOrderLinesEditorComponent {
|
|
|
2775
2834
|
MJOLinePricePickerComponent,
|
|
2776
2835
|
MJOOrderLineDetailsPanelComponent,
|
|
2777
2836
|
MJEmptyStateComponent,
|
|
2778
|
-
MJOMoneyPipe], styles: ["[_nghost-%COMP%] { display: block; }\n\n.mjo-ol[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-2);\n}\n\n.mjo-ol-card[_ngcontent-%COMP%] {\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n border-radius: var(--mj-radius-md);\n padding: var(--mj-space-3);\n}\n\n.mjo-ol-card[_ngcontent-%COMP%]:has(.mjo-ol-ext.is-open) {\n padding-bottom: var(--mj-space-1);\n}\n\n.mjo-ol-card__top[_ngcontent-%COMP%] {\n display: flex;\n align-items: flex-start;\n gap: var(--mj-space-3);\n}\n\n.mjo-ol-card__id[_ngcontent-%COMP%] { flex: 1; min-width: 0; }\n\n.mjo-ol-card__name[_ngcontent-%COMP%] {\n display: inline;\n padding: 0;\n border: 0;\n background: transparent;\n font: inherit;\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-link);\n text-align: left;\n cursor: pointer;\n text-decoration: none;\n}\n\n.mjo-ol-card__name[_ngcontent-%COMP%]:hover { text-decoration: underline; }\n\n.mjo-ol-card__meta[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n margin-top: 2px;\n}\n\n.mjo-ol-qty[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-md);\n overflow: hidden;\n background: var(--mj-bg-surface);\n flex: none;\n}\n\n.mjo-ol-qty[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n border: 0;\n background: transparent;\n cursor: pointer;\n color: var(--mj-text-secondary);\n width: 26px;\n height: 28px;\n font-size: 11px;\n}\n\n.mjo-ol-qty[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover:not(:disabled) {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mjo-ol-qty[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:disabled {\n cursor: default;\n color: var(--mj-text-disabled);\n}\n\n.mjo-ol-qty[_ngcontent-%COMP%] input[_ngcontent-%COMP%] {\n border: 0;\n outline: 0;\n background: transparent;\n width: 46px;\n text-align: center;\n font: inherit;\n font-variant-numeric: tabular-nums;\n color: inherit;\n}\n\n.mjo-ol-qty.is-locked[_ngcontent-%COMP%] {\n border-color: var(--mj-border-default);\n background: transparent;\n}\n\n.mjo-ol-qty__value[_ngcontent-%COMP%] {\n min-width: 46px;\n padding: 0 10px;\n height: 28px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-variant-numeric: tabular-nums;\n}\n\n.mjo-ol-card__price[_ngcontent-%COMP%] {\n flex: none;\n min-width: 108px;\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n.mjo-ol-card__price-row[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 2px;\n height: 28px;\n}\n\n.mjo-ol-price__pencil[_ngcontent-%COMP%] {\n flex: none;\n color: var(--mj-text-muted);\n}\n\n.mjo-ol-price__pencil[_ngcontent-%COMP%]:hover {\n color: var(--mj-text-link);\n background: var(--mj-bg-surface-hover);\n}\n\n.mjo-ol-override[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-2);\n margin-top: var(--mj-space-2);\n padding: var(--mj-space-2);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface-card);\n}\n\n.mjo-ol-override__req[_ngcontent-%COMP%] {\n font-style: normal;\n color: var(--mj-status-error-text);\n margin-left: 2px;\n}\n\n.mjo-ol-override__actions[_ngcontent-%COMP%] {\n display: flex;\n gap: var(--mj-space-2);\n justify-content: flex-end;\n}\n\n.mjo-ol-override__done[_ngcontent-%COMP%], \n.mjo-ol-override__reset[_ngcontent-%COMP%] {\n border: 0;\n background: transparent;\n cursor: pointer;\n font: inherit;\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n padding: 4px 8px;\n border-radius: var(--mj-radius-sm);\n}\n\n.mjo-ol-override__done[_ngcontent-%COMP%] {\n color: var(--mj-text-link);\n}\n\n.mjo-ol-override__reset[_ngcontent-%COMP%] {\n color: var(--mj-text-muted);\n}\n\n.mjo-ol-override__done[_ngcontent-%COMP%]:hover, \n.mjo-ol-override__reset[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-hover);\n}\n\n.mjo-ol-override__done[_ngcontent-%COMP%]:disabled {\n color: var(--mj-text-muted);\n cursor: not-allowed;\n background: transparent;\n}\n\n.mjo-ol-card__amt[_ngcontent-%COMP%] {\n font-variant-numeric: tabular-nums;\n font-weight: var(--mj-font-semibold);\n font-size: var(--mj-text-sm);\n line-height: 28px;\n}\n\n.mjo-ol-overpill[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-top: 4px;\n padding: 1px 8px;\n border-radius: 999px;\n font-size: 10px;\n font-weight: 600;\n letter-spacing: 0.02em;\n color: var(--mj-status-warning-text);\n background: color-mix(in srgb, var(--mj-status-warning-text) 16%, transparent);\n}\n\n.mjo-ol-card__err[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n color: var(--mj-status-error-text);\n margin-top: 2px;\n}\n\n.mjo-ol-card__tot[_ngcontent-%COMP%] {\n flex: none;\n min-width: 104px;\n height: 28px;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n text-align: right;\n font-variant-numeric: tabular-nums;\n font-weight: var(--mj-font-semibold);\n font-size: var(--mj-text-sm);\n line-height: 28px;\n}\n\n.mjo-ol-iconbtn[_ngcontent-%COMP%] {\n border: 0;\n background: transparent;\n color: var(--mj-text-muted);\n cursor: pointer;\n width: 28px;\n height: 28px;\n border-radius: var(--mj-radius-sm);\n}\n\n.mjo-ol-iconbtn[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-status-error);\n}\n\n.mjo-ol-card__conseq[_ngcontent-%COMP%] {\n display: flex;\n gap: 6px;\n flex-wrap: wrap;\n margin-top: var(--mj-space-2);\n}\n\n\n\n\n.mjo-ol-term[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n margin-top: var(--mj-space-2);\n}\n\n.mjo-ol-term__label[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-ol-term__input[_ngcontent-%COMP%] {\n height: 28px;\n padding: 0 var(--mj-space-2);\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n font: inherit;\n font-size: var(--mj-text-sm);\n}\n\n\n\n\n.mjo-ol-term__input.is-default[_ngcontent-%COMP%] {\n border-color: var(--mj-border-default);\n color: var(--mj-text-secondary);\n}\n\n.mjo-ol-term__value[_ngcontent-%COMP%] {\n font-size: var(--mj-text-sm);\n color: var(--mj-text-primary);\n font-variant-numeric: tabular-nums;\n}\n\n\n\n\n.mjo-ol-term__value.is-dictated[_ngcontent-%COMP%] {\n color: var(--mj-text-secondary);\n}\n\n.mjo-ol-term__reset[_ngcontent-%COMP%] {\n border: 0;\n background: transparent;\n padding: 0;\n color: var(--mj-text-link);\n font-size: var(--mj-text-xs);\n cursor: pointer;\n}\n\n.mjo-ol-term__reset[_ngcontent-%COMP%]:hover {\n text-decoration: underline;\n}\n\n.mjo-ol-term__hint[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-ol-term__hint.is-error[_ngcontent-%COMP%] {\n color: var(--mj-status-error-text);\n}\n\n.mjo-ol-card__why[_ngcontent-%COMP%] {\n margin-top: 6px;\n font-size: var(--mj-text-xs);\n color: var(--mj-text-secondary);\n line-height: 1.35;\n}\n\n.mjo-ol-picker[_ngcontent-%COMP%] {\n position: relative;\n z-index: 20;\n}\n\n.mjo-ol-picker[_ngcontent-%COMP%]:has(.mj-typeahead-list.is-open) {\n z-index: 40;\n}\n\n.mjo-search[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-md);\n padding: 8px 10px;\n}\n\n.mjo-search[_ngcontent-%COMP%] i[_ngcontent-%COMP%] { color: var(--mj-text-muted); font-size: 12px; }\n\n.mjo-search[_ngcontent-%COMP%] input[_ngcontent-%COMP%] {\n border: 0;\n outline: 0;\n background: transparent;\n font: inherit;\n font-size: var(--mj-text-sm);\n color: inherit;\n width: 100%;\n}\n\n.mjo-ol-picker__company-only[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n flex-shrink: 0;\n white-space: nowrap;\n font-size: var(--mj-text-xs);\n color: var(--mj-text-secondary);\n cursor: pointer;\n user-select: none;\n}\n\n.mjo-search[_ngcontent-%COMP%] .mjo-ol-picker__company-only[_ngcontent-%COMP%] input[_ngcontent-%COMP%] {\n width: auto;\n margin: 0;\n cursor: inherit;\n}\n\n.mjo-ol-picker__company-only.is-disabled[_ngcontent-%COMP%] {\n color: var(--mj-text-muted);\n cursor: not-allowed;\n}\n\n.mj-typeahead-list[_ngcontent-%COMP%] {\n display: none;\n position: absolute;\n left: 0;\n right: 0;\n top: calc(100% + 4px);\n max-height: 240px;\n overflow: auto;\n background: var(--mj-bg-surface-elevated);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n box-shadow: var(--mj-shadow-md, 0 8px 24px rgba(0, 0, 0, 0.18));\n z-index: 30;\n}\n\n.mj-typeahead-list.is-open[_ngcontent-%COMP%] { display: block; }\n\n.mj-typeahead-list.is-up[_ngcontent-%COMP%] {\n top: auto;\n bottom: calc(100% + 4px);\n}\n\n.mj-typeahead-item[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3);\n width: 100%;\n padding: 8px 12px;\n border: 0;\n border-bottom: 1px solid var(--mj-border-subtle);\n background: transparent;\n color: inherit;\n text-align: left;\n cursor: pointer;\n font: inherit;\n}\n\n.mj-typeahead-item[_ngcontent-%COMP%]:last-child { border-bottom: 0; }\n\n.mj-typeahead-item[_ngcontent-%COMP%]:hover, \n.mj-typeahead-item.is-cursor[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-hover);\n}\n\n.mjo-ol-pick__body[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 1px;\n min-width: 0;\n}\n\n.mjo-ol-pick[_ngcontent-%COMP%] .name[_ngcontent-%COMP%] { font-size: 13px; font-weight: var(--mj-font-semibold); }\n.mjo-ol-pick[_ngcontent-%COMP%] .sub[_ngcontent-%COMP%] { font-size: 11.5px; color: var(--mj-text-muted); }\n\n\n\n\n\n\n\n\n.mjo-ol-pick__meta[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n min-width: 0;\n}\n\n.mjo-ol-pick__company[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n flex: 0 0 auto;\n font-size: 11px;\n line-height: 1.2;\n padding: 2px 6px;\n border: 1px solid var(--mj-border-subtle);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n}\n\n.mjo-ol-pick__company[_ngcontent-%COMP%] i[_ngcontent-%COMP%] { font-size: 9.5px; color: var(--mj-text-muted); }\n\n\n\n.mjo-ol-pick__company.is-foreign[_ngcontent-%COMP%] i[_ngcontent-%COMP%] { color: var(--mj-status-info); }\n.mjo-ol-pick__company.is-foreign[_ngcontent-%COMP%] {\n color: var(--mj-text-primary);\n border-color: var(--mj-border-default);\n}\n.mjo-ol-pick[_ngcontent-%COMP%] .end[_ngcontent-%COMP%] {\n margin-left: auto;\n text-align: right;\n display: flex;\n flex-direction: column;\n gap: 1px;\n flex: 0 0 auto;\n}\n.mjo-ol-pick__price[_ngcontent-%COMP%] {\n font-variant-numeric: tabular-nums;\n font-weight: var(--mj-font-semibold);\n}\n\n\n\n\n.mjo-ol-overlap[_ngcontent-%COMP%] {\n display: flex;\n gap: var(--mj-space-2);\n margin-top: var(--mj-space-2);\n padding: var(--mj-space-2) var(--mj-space-3);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n font-size: var(--mj-text-xs);\n line-height: 1.35;\n color: var(--mj-text-secondary);\n}\n.mjo-ol-overlap.is-blocking[_ngcontent-%COMP%] {\n border-color: var(--mj-status-warning-border);\n background: var(--mj-status-warning-bg);\n color: var(--mj-status-warning-text);\n}\n.mjo-ol-overlap__body[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-1);\n}\n.mjo-ol-overlap__ack[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: var(--mj-space-1);\n font-weight: var(--mj-font-semibold);\n cursor: pointer;\n}\n.mjo-ol-overlap__hint[_ngcontent-%COMP%] {\n font-style: italic;\n}\n.mjo-ol-overlap__reason[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n display: block;\n margin-bottom: 4px;\n}\n.mjo-ol-overlap__reason[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%] {\n display: block;\n width: 100%;\n box-sizing: border-box;\n resize: vertical;\n min-height: 48px;\n padding: 6px 8px;\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n font: inherit;\n}\n.mjo-ol-overlap__reason.is-required[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%] {\n border-color: var(--mj-status-error-text);\n}\n.mjo-ol-overlap-err[_ngcontent-%COMP%] {\n margin-bottom: var(--mj-space-2);\n font-size: var(--mj-text-xs);\n color: var(--mj-status-error-text);\n}\n\n.mjo-ol-seat-note[_ngcontent-%COMP%] {\n margin-bottom: var(--mj-space-2);\n font-size: var(--mj-text-xs);\n color: var(--mj-text-secondary);\n}\n\n.mjo-ol-ext-err[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n color: var(--mj-status-error-text);\n}\n\n.mjo-ol-ext[_ngcontent-%COMP%] {\n margin-top: var(--mj-space-2);\n padding-top: var(--mj-space-1);\n border-top: 1px dashed var(--mj-border-subtle);\n}\n\n.mjo-ol-ext__toggle[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n width: 100%;\n padding: var(--mj-space-1) 0;\n border: 0;\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: left;\n cursor: pointer;\n border-radius: var(--mj-radius-sm);\n}\n\n.mjo-ol-ext__toggle[_ngcontent-%COMP%]:hover {\n color: var(--mj-text-primary);\n}\n\n.mjo-ol-ext__toggle[_ngcontent-%COMP%]:focus-visible {\n outline: 2px solid var(--mj-border-focus);\n outline-offset: 2px;\n}\n\n.mjo-ol-ext__chev[_ngcontent-%COMP%] {\n flex: none;\n width: 12px;\n font-size: 10px;\n color: var(--mj-text-muted);\n transition: transform 160ms ease;\n}\n\n.mjo-ol-ext.is-open[_ngcontent-%COMP%] .mjo-ol-ext__chev[_ngcontent-%COMP%] {\n transform: rotate(90deg);\n}\n\n.mjo-ol-ext__label[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-secondary);\n letter-spacing: 0.01em;\n}\n\n.mjo-ol-ext__hint[_ngcontent-%COMP%] {\n margin-left: auto;\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mjo-ol-ext__body[_ngcontent-%COMP%] {\n display: grid;\n grid-template-rows: 0fr;\n transition: grid-template-rows 180ms ease;\n}\n\n.mjo-ol-ext.is-open[_ngcontent-%COMP%] .mjo-ol-ext__body[_ngcontent-%COMP%] {\n grid-template-rows: 1fr;\n}\n\n.mjo-ol-ext__clip[_ngcontent-%COMP%] {\n overflow: hidden;\n min-height: 0;\n}\n\n\n\n.mjo-ol-ext[_ngcontent-%COMP%] mj-record-form-container, \n.mjo-ol-ext[_ngcontent-%COMP%] .mj-record-form-container, \n.mjo-ol-ext[_ngcontent-%COMP%] .mj-forms-container {\n display: block;\n padding: 0;\n margin: 0;\n border: 0;\n background: transparent;\n box-shadow: none;\n}\n\n.mjo-ol-ext[_ngcontent-%COMP%] .mj-forms-toolbar, \n.mjo-ol-ext[_ngcontent-%COMP%] mj-form-toolbar {\n display: none;\n}\n\n.mjo-ol-ext[_ngcontent-%COMP%] .mj-forms-panel {\n border: 0;\n background: transparent;\n box-shadow: none;\n margin: 0;\n padding: 0;\n}\n\n.mjo-ol-ext[_ngcontent-%COMP%] mj-collapsible-panel + mj-collapsible-panel .mj-forms-panel {\n margin-top: calc(-1 * var(--mj-space-1));\n}\n\n.mjo-ol-ext[_ngcontent-%COMP%] .mj-forms-panel-header {\n display: none;\n}\n\n.mjo-ol-ext[_ngcontent-%COMP%] .mj-forms-panel-body, \n.mjo-ol-ext[_ngcontent-%COMP%] .mj-forms-panel-content {\n max-height: none;\n overflow: visible;\n padding: 0;\n margin: 0;\n}\n\n.mjo-ol-ext[_ngcontent-%COMP%] mj-form-field:last-child, \n.mjo-ol-ext[_ngcontent-%COMP%] .mj-form-field:last-child {\n margin-bottom: 0;\n}\n\n@media (max-width: 720px) {\n .mjo-ol-card__top[_ngcontent-%COMP%] { flex-wrap: wrap; }\n .mjo-ol-card__price[_ngcontent-%COMP%], .mjo-ol-card__tot[_ngcontent-%COMP%] { width: auto; }\n}\n\n\n\n\n\n\n\n.mjo-ol-discount[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-2);\n padding-top: var(--mj-space-2);\n border-top: 1px solid var(--mj-border-default);\n}\n\n.mjo-ol-discount__head[_ngcontent-%COMP%] {\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n}\n\n.mjo-ol-discount__title[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-ol-discount__cap[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-ol-discount__row[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n}\n\n\n\n.mjo-ol-discount__mode[_ngcontent-%COMP%] {\n display: inline-flex;\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-sm);\n overflow: hidden;\n}\n\n.mjo-ol-discount__mode[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n border: 0;\n background: var(--mj-bg-surface);\n color: var(--mj-text-muted);\n font: inherit;\n font-size: var(--mj-text-xs);\n padding: 0 10px;\n height: 28px;\n cursor: pointer;\n}\n\n.mjo-ol-discount__mode[_ngcontent-%COMP%] button[_ngcontent-%COMP%] + button[_ngcontent-%COMP%] {\n border-left: 1px solid var(--mj-border-strong);\n}\n\n.mjo-ol-discount__mode[_ngcontent-%COMP%] button.is-on[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n font-weight: var(--mj-font-semibold);\n}\n\n.mjo-ol-discount__val[_ngcontent-%COMP%] {\n width: 96px;\n height: 28px;\n box-sizing: border-box;\n padding: 0 8px;\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface);\n color: inherit;\n font: inherit;\n font-size: var(--mj-text-xs);\n font-variant-numeric: tabular-nums;\n text-align: right;\n}\n\n.mjo-ol-discount__calc[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n font-variant-numeric: tabular-nums;\n}\n\n.mjo-ol-discount__reason[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n display: block;\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n margin-bottom: 4px;\n}\n\n.mjo-ol-discount__reason[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%] {\n display: block;\n width: 100%;\n box-sizing: border-box;\n resize: vertical;\n min-height: 48px;\n padding: 6px 8px;\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface);\n color: inherit;\n font: inherit;\n font-size: var(--mj-text-xs);\n}\n\n.mjo-ol-discount__reason.is-required[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%] {\n border-color: var(--mj-status-error-text);\n}\n\n.mjo-ol-discount__err[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n color: var(--mj-status-error-text);\n}\n\n.mjo-ol-discount__note[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n\n\n.mjo-ol-discount__approval[_ngcontent-%COMP%] {\n display: flex;\n align-items: flex-start;\n gap: var(--mj-space-2);\n font-size: var(--mj-text-xs);\n color: var(--mj-status-warning-text);\n}\n\n.mjo-ol-discount__badge[_ngcontent-%COMP%] {\n flex: none;\n padding: 0 var(--mj-space-2);\n border: 1px solid var(--mj-status-warning-border);\n border-radius: var(--mj-radius-md);\n background: var(--mj-status-warning-bg);\n font-weight: 600;\n white-space: nowrap;\n}\n\n\n\n.mjo-ol-override__hint[_ngcontent-%COMP%] {\n display: flex;\n align-items: baseline;\n gap: var(--mj-space-2);\n font-size: var(--mj-text-xs);\n color: var(--mj-status-info-text);\n}\n\n.mjo-ol-discount__staged[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-2);\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-ol-discount__clear[_ngcontent-%COMP%] {\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface);\n color: inherit;\n font: inherit;\n font-size: var(--mj-text-xs);\n height: 24px;\n padding: 0 10px;\n cursor: pointer;\n}\n\n\n\n\n.mjo-ol-discpill[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-top: 4px;\n padding: 1px 8px;\n border-radius: 999px;\n font-size: 10px;\n font-weight: 600;\n letter-spacing: 0.02em;\n font-variant-numeric: tabular-nums;\n color: var(--mj-status-success-text);\n background: color-mix(in srgb, var(--mj-status-success-text) 16%, transparent);\n}\n\n\n\n.mjo-ol-holding[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-2);\n margin-top: var(--mj-space-2);\n padding: var(--mj-space-2) var(--mj-space-3);\n border: 1px solid var(--mj-status-warning-border);\n border-radius: var(--mj-radius-md);\n background: var(--mj-status-warning-bg);\n font-size: var(--mj-text-sm);\n color: var(--mj-text-primary);\n}\n\n.mjo-ol-holding__choices[_ngcontent-%COMP%] {\n display: flex;\n flex-wrap: wrap;\n gap: var(--mj-space-2);\n}\n\n.mjo-ol-holding__choice[_ngcontent-%COMP%] {\n padding: 4px 10px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-full);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n font: inherit;\n cursor: pointer;\n}\n\n.mjo-ol-holding__choice.is-selected[_ngcontent-%COMP%] {\n border-color: var(--mj-brand-primary);\n color: var(--mj-brand-primary);\n font-weight: var(--mj-font-semibold);\n}"] });
|
|
2837
|
+
MJOMoneyPipe], styles: ["[_nghost-%COMP%] { display: block; }\n\n.mjo-ol[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-2);\n}\n\n.mjo-ol-card[_ngcontent-%COMP%] {\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n border-radius: var(--mj-radius-md);\n padding: var(--mj-space-3);\n}\n\n.mjo-ol-card[_ngcontent-%COMP%]:has(.mjo-ol-ext.is-open) {\n padding-bottom: var(--mj-space-1);\n}\n\n.mjo-ol-card__top[_ngcontent-%COMP%] {\n display: flex;\n align-items: flex-start;\n gap: var(--mj-space-3);\n}\n\n.mjo-ol-card__id[_ngcontent-%COMP%] { flex: 1; min-width: 0; }\n\n.mjo-ol-card__name[_ngcontent-%COMP%] {\n display: inline;\n padding: 0;\n border: 0;\n background: transparent;\n font: inherit;\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-link);\n text-align: left;\n cursor: pointer;\n text-decoration: none;\n}\n\n.mjo-ol-card__name[_ngcontent-%COMP%]:hover { text-decoration: underline; }\n\n.mjo-ol-card__meta[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n margin-top: 2px;\n}\n\n.mjo-ol-qty[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-md);\n overflow: hidden;\n background: var(--mj-bg-surface);\n flex: none;\n}\n\n.mjo-ol-qty[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n border: 0;\n background: transparent;\n cursor: pointer;\n color: var(--mj-text-secondary);\n width: 26px;\n height: 28px;\n font-size: 11px;\n}\n\n.mjo-ol-qty[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover:not(:disabled) {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mjo-ol-qty[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:disabled {\n cursor: default;\n color: var(--mj-text-disabled);\n}\n\n.mjo-ol-qty[_ngcontent-%COMP%] input[_ngcontent-%COMP%] {\n border: 0;\n outline: 0;\n background: transparent;\n width: 46px;\n text-align: center;\n font: inherit;\n font-variant-numeric: tabular-nums;\n color: inherit;\n}\n\n.mjo-ol-qty.is-locked[_ngcontent-%COMP%] {\n border-color: var(--mj-border-default);\n background: transparent;\n}\n\n.mjo-ol-qty__value[_ngcontent-%COMP%] {\n min-width: 46px;\n padding: 0 10px;\n height: 28px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-variant-numeric: tabular-nums;\n}\n\n.mjo-ol-card__price[_ngcontent-%COMP%] {\n flex: none;\n min-width: 108px;\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n.mjo-ol-card__price-row[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 2px;\n height: 28px;\n}\n\n.mjo-ol-price__pencil[_ngcontent-%COMP%] {\n flex: none;\n color: var(--mj-text-muted);\n}\n\n.mjo-ol-price__pencil[_ngcontent-%COMP%]:hover {\n color: var(--mj-text-link);\n background: var(--mj-bg-surface-hover);\n}\n\n.mjo-ol-override[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-2);\n margin-top: var(--mj-space-2);\n padding: var(--mj-space-2);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface-card);\n}\n\n.mjo-ol-override__req[_ngcontent-%COMP%] {\n font-style: normal;\n color: var(--mj-status-error-text);\n margin-left: 2px;\n}\n\n.mjo-ol-override__actions[_ngcontent-%COMP%] {\n display: flex;\n gap: var(--mj-space-2);\n justify-content: flex-end;\n}\n\n.mjo-ol-override__done[_ngcontent-%COMP%], \n.mjo-ol-override__reset[_ngcontent-%COMP%] {\n border: 0;\n background: transparent;\n cursor: pointer;\n font: inherit;\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n padding: 4px 8px;\n border-radius: var(--mj-radius-sm);\n}\n\n.mjo-ol-override__done[_ngcontent-%COMP%] {\n color: var(--mj-text-link);\n}\n\n.mjo-ol-override__reset[_ngcontent-%COMP%] {\n color: var(--mj-text-muted);\n}\n\n.mjo-ol-override__done[_ngcontent-%COMP%]:hover, \n.mjo-ol-override__reset[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-hover);\n}\n\n.mjo-ol-override__done[_ngcontent-%COMP%]:disabled {\n color: var(--mj-text-muted);\n cursor: not-allowed;\n background: transparent;\n}\n\n.mjo-ol-card__amt[_ngcontent-%COMP%] {\n font-variant-numeric: tabular-nums;\n font-weight: var(--mj-font-semibold);\n font-size: var(--mj-text-sm);\n line-height: 28px;\n}\n\n.mjo-ol-overpill[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-top: 4px;\n padding: 1px 8px;\n border-radius: 999px;\n font-size: 10px;\n font-weight: 600;\n letter-spacing: 0.02em;\n color: var(--mj-status-warning-text);\n background: color-mix(in srgb, var(--mj-status-warning-text) 16%, transparent);\n}\n\n.mjo-ol-card__err[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n color: var(--mj-status-error-text);\n margin-top: 2px;\n}\n\n.mjo-ol-card__tot[_ngcontent-%COMP%] {\n flex: none;\n min-width: 104px;\n height: 28px;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n text-align: right;\n font-variant-numeric: tabular-nums;\n font-weight: var(--mj-font-semibold);\n font-size: var(--mj-text-sm);\n line-height: 28px;\n}\n\n.mjo-ol-iconbtn[_ngcontent-%COMP%] {\n border: 0;\n background: transparent;\n color: var(--mj-text-muted);\n cursor: pointer;\n width: 28px;\n height: 28px;\n border-radius: var(--mj-radius-sm);\n}\n\n.mjo-ol-iconbtn[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-status-error);\n}\n\n.mjo-ol-card__conseq[_ngcontent-%COMP%] {\n display: flex;\n gap: 6px;\n flex-wrap: wrap;\n margin-top: var(--mj-space-2);\n}\n\n\n\n\n.mjo-ol-term[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n margin-top: var(--mj-space-2);\n}\n\n.mjo-ol-term__label[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-ol-term__input[_ngcontent-%COMP%] {\n height: 28px;\n padding: 0 var(--mj-space-2);\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n font: inherit;\n font-size: var(--mj-text-sm);\n}\n\n\n\n\n.mjo-ol-term__input.is-default[_ngcontent-%COMP%] {\n border-color: var(--mj-border-default);\n color: var(--mj-text-secondary);\n}\n\n.mjo-ol-term__value[_ngcontent-%COMP%] {\n font-size: var(--mj-text-sm);\n color: var(--mj-text-primary);\n font-variant-numeric: tabular-nums;\n}\n\n\n\n\n.mjo-ol-term__value.is-dictated[_ngcontent-%COMP%] {\n color: var(--mj-text-secondary);\n}\n\n.mjo-ol-term__reset[_ngcontent-%COMP%] {\n border: 0;\n background: transparent;\n padding: 0;\n color: var(--mj-text-link);\n font-size: var(--mj-text-xs);\n cursor: pointer;\n}\n\n.mjo-ol-term__reset[_ngcontent-%COMP%]:hover {\n text-decoration: underline;\n}\n\n.mjo-ol-term__hint[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-ol-term__hint.is-error[_ngcontent-%COMP%] {\n color: var(--mj-status-error-text);\n}\n\n.mjo-ol-card__why[_ngcontent-%COMP%] {\n margin-top: 6px;\n font-size: var(--mj-text-xs);\n color: var(--mj-text-secondary);\n line-height: 1.35;\n}\n\n.mjo-ol-card__desc[_ngcontent-%COMP%] {\n margin-top: 6px;\n font-size: var(--mj-text-sm);\n color: var(--mj-text-primary);\n line-height: 1.35;\n overflow-wrap: anywhere;\n}\n\n.mjo-ol-desc[_ngcontent-%COMP%] {\n display: block;\n margin-top: 8px;\n}\n.mjo-ol-desc[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n display: block;\n margin-bottom: 4px;\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n.mjo-ol-desc__hint[_ngcontent-%COMP%] {\n display: block;\n margin-top: 4px;\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n line-height: 1.35;\n}\n.mjo-ol-desc[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%] {\n display: block;\n width: 100%;\n box-sizing: border-box;\n resize: vertical;\n min-height: 32px;\n padding: 6px 8px;\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n font: inherit;\n}\n\n.mjo-ol-picker[_ngcontent-%COMP%] {\n position: relative;\n z-index: 20;\n}\n\n.mjo-ol-picker[_ngcontent-%COMP%]:has(.mj-typeahead-list.is-open) {\n z-index: 40;\n}\n\n.mjo-search[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-md);\n padding: 8px 10px;\n}\n\n.mjo-search[_ngcontent-%COMP%] i[_ngcontent-%COMP%] { color: var(--mj-text-muted); font-size: 12px; }\n\n.mjo-search[_ngcontent-%COMP%] input[_ngcontent-%COMP%] {\n border: 0;\n outline: 0;\n background: transparent;\n font: inherit;\n font-size: var(--mj-text-sm);\n color: inherit;\n width: 100%;\n}\n\n.mjo-ol-picker__company-only[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n flex-shrink: 0;\n white-space: nowrap;\n font-size: var(--mj-text-xs);\n color: var(--mj-text-secondary);\n cursor: pointer;\n user-select: none;\n}\n\n.mjo-search[_ngcontent-%COMP%] .mjo-ol-picker__company-only[_ngcontent-%COMP%] input[_ngcontent-%COMP%] {\n width: auto;\n margin: 0;\n cursor: inherit;\n}\n\n.mjo-ol-picker__company-only.is-disabled[_ngcontent-%COMP%] {\n color: var(--mj-text-muted);\n cursor: not-allowed;\n}\n\n.mj-typeahead-list[_ngcontent-%COMP%] {\n display: none;\n position: absolute;\n left: 0;\n right: 0;\n top: calc(100% + 4px);\n max-height: 240px;\n overflow: auto;\n background: var(--mj-bg-surface-elevated);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n box-shadow: var(--mj-shadow-md, 0 8px 24px rgba(0, 0, 0, 0.18));\n z-index: 30;\n}\n\n.mj-typeahead-list.is-open[_ngcontent-%COMP%] { display: block; }\n\n.mj-typeahead-list.is-up[_ngcontent-%COMP%] {\n top: auto;\n bottom: calc(100% + 4px);\n}\n\n.mj-typeahead-item[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3);\n width: 100%;\n padding: 8px 12px;\n border: 0;\n border-bottom: 1px solid var(--mj-border-subtle);\n background: transparent;\n color: inherit;\n text-align: left;\n cursor: pointer;\n font: inherit;\n}\n\n.mj-typeahead-item[_ngcontent-%COMP%]:last-child { border-bottom: 0; }\n\n.mj-typeahead-item[_ngcontent-%COMP%]:hover, \n.mj-typeahead-item.is-cursor[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-hover);\n}\n\n.mjo-ol-pick__body[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 1px;\n min-width: 0;\n}\n\n.mjo-ol-pick[_ngcontent-%COMP%] .name[_ngcontent-%COMP%] { font-size: 13px; font-weight: var(--mj-font-semibold); }\n.mjo-ol-pick[_ngcontent-%COMP%] .sub[_ngcontent-%COMP%] { font-size: 11.5px; color: var(--mj-text-muted); }\n\n\n\n\n\n\n\n\n.mjo-ol-pick__meta[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n min-width: 0;\n}\n\n.mjo-ol-pick__company[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n flex: 0 0 auto;\n font-size: 11px;\n line-height: 1.2;\n padding: 2px 6px;\n border: 1px solid var(--mj-border-subtle);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n}\n\n.mjo-ol-pick__company[_ngcontent-%COMP%] i[_ngcontent-%COMP%] { font-size: 9.5px; color: var(--mj-text-muted); }\n\n\n\n.mjo-ol-pick__company.is-foreign[_ngcontent-%COMP%] i[_ngcontent-%COMP%] { color: var(--mj-status-info); }\n.mjo-ol-pick__company.is-foreign[_ngcontent-%COMP%] {\n color: var(--mj-text-primary);\n border-color: var(--mj-border-default);\n}\n.mjo-ol-pick[_ngcontent-%COMP%] .end[_ngcontent-%COMP%] {\n margin-left: auto;\n text-align: right;\n display: flex;\n flex-direction: column;\n gap: 1px;\n flex: 0 0 auto;\n}\n.mjo-ol-pick__price[_ngcontent-%COMP%] {\n font-variant-numeric: tabular-nums;\n font-weight: var(--mj-font-semibold);\n}\n\n\n\n\n.mjo-ol-overlap[_ngcontent-%COMP%] {\n display: flex;\n gap: var(--mj-space-2);\n margin-top: var(--mj-space-2);\n padding: var(--mj-space-2) var(--mj-space-3);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n font-size: var(--mj-text-xs);\n line-height: 1.35;\n color: var(--mj-text-secondary);\n}\n.mjo-ol-overlap.is-blocking[_ngcontent-%COMP%] {\n border-color: var(--mj-status-warning-border);\n background: var(--mj-status-warning-bg);\n color: var(--mj-status-warning-text);\n}\n.mjo-ol-overlap__body[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-1);\n}\n.mjo-ol-overlap__ack[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: var(--mj-space-1);\n font-weight: var(--mj-font-semibold);\n cursor: pointer;\n}\n.mjo-ol-overlap__hint[_ngcontent-%COMP%] {\n font-style: italic;\n}\n.mjo-ol-overlap__reason[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n display: block;\n margin-bottom: 4px;\n}\n.mjo-ol-overlap__reason[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%] {\n display: block;\n width: 100%;\n box-sizing: border-box;\n resize: vertical;\n min-height: 48px;\n padding: 6px 8px;\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n font: inherit;\n}\n.mjo-ol-overlap__reason.is-required[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%] {\n border-color: var(--mj-status-error-text);\n}\n.mjo-ol-overlap-err[_ngcontent-%COMP%] {\n margin-bottom: var(--mj-space-2);\n font-size: var(--mj-text-xs);\n color: var(--mj-status-error-text);\n}\n\n.mjo-ol-seat-note[_ngcontent-%COMP%] {\n margin-bottom: var(--mj-space-2);\n font-size: var(--mj-text-xs);\n color: var(--mj-text-secondary);\n}\n\n.mjo-ol-ext-err[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n color: var(--mj-status-error-text);\n}\n\n.mjo-ol-ext[_ngcontent-%COMP%] {\n margin-top: var(--mj-space-2);\n padding-top: var(--mj-space-1);\n border-top: 1px dashed var(--mj-border-subtle);\n}\n\n.mjo-ol-ext__toggle[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n width: 100%;\n padding: var(--mj-space-1) 0;\n border: 0;\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: left;\n cursor: pointer;\n border-radius: var(--mj-radius-sm);\n}\n\n.mjo-ol-ext__toggle[_ngcontent-%COMP%]:hover {\n color: var(--mj-text-primary);\n}\n\n.mjo-ol-ext__toggle[_ngcontent-%COMP%]:focus-visible {\n outline: 2px solid var(--mj-border-focus);\n outline-offset: 2px;\n}\n\n.mjo-ol-ext__chev[_ngcontent-%COMP%] {\n flex: none;\n width: 12px;\n font-size: 10px;\n color: var(--mj-text-muted);\n transition: transform 160ms ease;\n}\n\n.mjo-ol-ext.is-open[_ngcontent-%COMP%] .mjo-ol-ext__chev[_ngcontent-%COMP%] {\n transform: rotate(90deg);\n}\n\n.mjo-ol-ext__label[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-secondary);\n letter-spacing: 0.01em;\n}\n\n.mjo-ol-ext__hint[_ngcontent-%COMP%] {\n margin-left: auto;\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mjo-ol-ext__body[_ngcontent-%COMP%] {\n display: grid;\n grid-template-rows: 0fr;\n transition: grid-template-rows 180ms ease;\n}\n\n.mjo-ol-ext.is-open[_ngcontent-%COMP%] .mjo-ol-ext__body[_ngcontent-%COMP%] {\n grid-template-rows: 1fr;\n}\n\n.mjo-ol-ext__clip[_ngcontent-%COMP%] {\n overflow: hidden;\n min-height: 0;\n}\n\n\n\n.mjo-ol-ext[_ngcontent-%COMP%] mj-record-form-container, \n.mjo-ol-ext[_ngcontent-%COMP%] .mj-record-form-container, \n.mjo-ol-ext[_ngcontent-%COMP%] .mj-forms-container {\n display: block;\n padding: 0;\n margin: 0;\n border: 0;\n background: transparent;\n box-shadow: none;\n}\n\n.mjo-ol-ext[_ngcontent-%COMP%] .mj-forms-toolbar, \n.mjo-ol-ext[_ngcontent-%COMP%] mj-form-toolbar {\n display: none;\n}\n\n.mjo-ol-ext[_ngcontent-%COMP%] .mj-forms-panel {\n border: 0;\n background: transparent;\n box-shadow: none;\n margin: 0;\n padding: 0;\n}\n\n.mjo-ol-ext[_ngcontent-%COMP%] mj-collapsible-panel + mj-collapsible-panel .mj-forms-panel {\n margin-top: calc(-1 * var(--mj-space-1));\n}\n\n.mjo-ol-ext[_ngcontent-%COMP%] .mj-forms-panel-header {\n display: none;\n}\n\n.mjo-ol-ext[_ngcontent-%COMP%] .mj-forms-panel-body, \n.mjo-ol-ext[_ngcontent-%COMP%] .mj-forms-panel-content {\n max-height: none;\n overflow: visible;\n padding: 0;\n margin: 0;\n}\n\n.mjo-ol-ext[_ngcontent-%COMP%] mj-form-field:last-child, \n.mjo-ol-ext[_ngcontent-%COMP%] .mj-form-field:last-child {\n margin-bottom: 0;\n}\n\n@media (max-width: 720px) {\n .mjo-ol-card__top[_ngcontent-%COMP%] { flex-wrap: wrap; }\n .mjo-ol-card__price[_ngcontent-%COMP%], .mjo-ol-card__tot[_ngcontent-%COMP%] { width: auto; }\n}\n\n\n\n\n\n\n\n.mjo-ol-discount[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-2);\n padding-top: var(--mj-space-2);\n border-top: 1px solid var(--mj-border-default);\n}\n\n.mjo-ol-discount__head[_ngcontent-%COMP%] {\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n}\n\n.mjo-ol-discount__title[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-ol-discount__cap[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-ol-discount__row[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n}\n\n\n\n.mjo-ol-discount__mode[_ngcontent-%COMP%] {\n display: inline-flex;\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-sm);\n overflow: hidden;\n}\n\n.mjo-ol-discount__mode[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n border: 0;\n background: var(--mj-bg-surface);\n color: var(--mj-text-muted);\n font: inherit;\n font-size: var(--mj-text-xs);\n padding: 0 10px;\n height: 28px;\n cursor: pointer;\n}\n\n.mjo-ol-discount__mode[_ngcontent-%COMP%] button[_ngcontent-%COMP%] + button[_ngcontent-%COMP%] {\n border-left: 1px solid var(--mj-border-strong);\n}\n\n.mjo-ol-discount__mode[_ngcontent-%COMP%] button.is-on[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n font-weight: var(--mj-font-semibold);\n}\n\n.mjo-ol-discount__val[_ngcontent-%COMP%] {\n width: 96px;\n height: 28px;\n box-sizing: border-box;\n padding: 0 8px;\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface);\n color: inherit;\n font: inherit;\n font-size: var(--mj-text-xs);\n font-variant-numeric: tabular-nums;\n text-align: right;\n}\n\n.mjo-ol-discount__calc[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n font-variant-numeric: tabular-nums;\n}\n\n.mjo-ol-discount__reason[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n display: block;\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n margin-bottom: 4px;\n}\n\n.mjo-ol-discount__reason[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%] {\n display: block;\n width: 100%;\n box-sizing: border-box;\n resize: vertical;\n min-height: 48px;\n padding: 6px 8px;\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface);\n color: inherit;\n font: inherit;\n font-size: var(--mj-text-xs);\n}\n\n.mjo-ol-discount__reason.is-required[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%] {\n border-color: var(--mj-status-error-text);\n}\n\n.mjo-ol-discount__err[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n color: var(--mj-status-error-text);\n}\n\n.mjo-ol-discount__note[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n\n\n.mjo-ol-discount__approval[_ngcontent-%COMP%] {\n display: flex;\n align-items: flex-start;\n gap: var(--mj-space-2);\n font-size: var(--mj-text-xs);\n color: var(--mj-status-warning-text);\n}\n\n.mjo-ol-discount__badge[_ngcontent-%COMP%] {\n flex: none;\n padding: 0 var(--mj-space-2);\n border: 1px solid var(--mj-status-warning-border);\n border-radius: var(--mj-radius-md);\n background: var(--mj-status-warning-bg);\n font-weight: 600;\n white-space: nowrap;\n}\n\n\n\n.mjo-ol-override__hint[_ngcontent-%COMP%] {\n display: flex;\n align-items: baseline;\n gap: var(--mj-space-2);\n font-size: var(--mj-text-xs);\n color: var(--mj-status-info-text);\n}\n\n.mjo-ol-discount__staged[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-2);\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-ol-discount__clear[_ngcontent-%COMP%] {\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface);\n color: inherit;\n font: inherit;\n font-size: var(--mj-text-xs);\n height: 24px;\n padding: 0 10px;\n cursor: pointer;\n}\n\n\n\n\n.mjo-ol-discpill[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-top: 4px;\n padding: 1px 8px;\n border-radius: 999px;\n font-size: 10px;\n font-weight: 600;\n letter-spacing: 0.02em;\n font-variant-numeric: tabular-nums;\n color: var(--mj-status-success-text);\n background: color-mix(in srgb, var(--mj-status-success-text) 16%, transparent);\n}\n\n\n\n.mjo-ol-holding[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-2);\n margin-top: var(--mj-space-2);\n padding: var(--mj-space-2) var(--mj-space-3);\n border: 1px solid var(--mj-status-warning-border);\n border-radius: var(--mj-radius-md);\n background: var(--mj-status-warning-bg);\n font-size: var(--mj-text-sm);\n color: var(--mj-text-primary);\n}\n\n.mjo-ol-holding__choices[_ngcontent-%COMP%] {\n display: flex;\n flex-wrap: wrap;\n gap: var(--mj-space-2);\n}\n\n.mjo-ol-holding__choice[_ngcontent-%COMP%] {\n padding: 4px 10px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-full);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n font: inherit;\n cursor: pointer;\n}\n\n.mjo-ol-holding__choice.is-selected[_ngcontent-%COMP%] {\n border-color: var(--mj-brand-primary);\n color: var(--mj-brand-primary);\n font-weight: var(--mj-font-semibold);\n}"] });
|
|
2779
2838
|
}
|
|
2780
2839
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MJOOrderLinesEditorComponent, [{
|
|
2781
2840
|
type: Component,
|
|
@@ -2789,7 +2848,7 @@ export class MJOOrderLinesEditorComponent {
|
|
|
2789
2848
|
MJOMoneyPipe,
|
|
2790
2849
|
MJOOrderLineDetailsPanelComponent,
|
|
2791
2850
|
MJEmptyStateComponent,
|
|
2792
|
-
], template: "<div class=\"mjo-ol\">\n @if (CoverageCheckError) {\n <div class=\"mjo-ol-overlap-err\" role=\"status\">{{ CoverageCheckError }}</div>\n }\n @if (SeatSplitNotice) {\n <div class=\"mjo-ol-seat-note\" role=\"status\">{{ SeatSplitNotice }}</div>\n }\n @for (line of Lines; track line.ID) {\n <div class=\"mjo-ol-card\">\n <div class=\"mjo-ol-card__top\">\n <div class=\"mjo-ol-card__id\">\n <button type=\"button\" class=\"mjo-ol-card__name\" [mjRecordLink]=\"line\" FieldName=\"ProductID\" [HandleClick]=\"false\" (click)=\"OpenProduct(line, $event)\">\n {{ ProductFor(line)?.Name ?? 'Product' }}\n </button>\n <div class=\"mjo-ol-card__meta\">\n {{ ProductFor(line)?.SKU }}\n @if (ProductFor(line)?.TypeName) {\n \u00B7 {{ ProductFor(line)?.TypeName }}\n }\n </div>\n </div>\n\n <div class=\"mjo-ol-qty\" [class.is-locked]=\"!EditMode || QuantityCappedToOne(line)\">\n @if (EditMode && !QuantityCappedToOne(line)) {\n <button type=\"button\" (click)=\"Bump(line, -1)\" aria-label=\"Decrease quantity\">\u2212</button>\n <input\n [value]=\"line.Quantity\"\n (change)=\"SetQuantity(line, $event)\"\n aria-label=\"Quantity\">\n <button type=\"button\" (click)=\"Bump(line, 1)\" [disabled]=\"QuantityAtMax(line)\" aria-label=\"Increase quantity\">+</button>\n } @else {\n <span class=\"mjo-ol-qty__value\">{{ line.Quantity }}</span>\n }\n </div>\n\n <div class=\"mjo-ol-card__price\">\n <div class=\"mjo-ol-card__price-row\">\n <div class=\"mjo-ol-card__amt\">{{ DisplayUnit(line) | mjoMoney }}</div>\n <!-- The pencil opens the PRICE editor, the DISCOUNT editor, or both \u2014 a user\n may hold one authority without the other, and an order that can be\n discounted but not re-priced still needs a way in. -->\n @if (CanOverride || CanDiscount || CanPickBand(line)) {\n <button\n type=\"button\"\n class=\"mjo-ol-iconbtn mjo-ol-price__pencil\"\n (click)=\"ToggleOverrideEditor(line)\"\n [attr.aria-expanded]=\"IsOverrideEditorOpen(line)\"\n [attr.aria-label]=\"CanOverride ? (IsOverridden(line) ? 'Edit price override' : 'Override price or discount line') : (CanPickBand(line) ? 'Pick revenue band' : 'Discount line')\">\n <i class=\"fa-solid fa-pencil\" aria-hidden=\"true\"></i>\n </button>\n }\n </div>\n @if (IsOverridden(line)) {\n <span class=\"mjo-ol-overpill\">overridden</span>\n } @else {\n <mjo-price-source-badge\n [Source]=\"PricedLine(line)?.PriceSource ?? null\"\n [Settled]=\"!Pricing.Loading\"\n [Overridden]=\"false\" />\n }\n <!-- A DISCOUNT IS NOT AN OVERRIDE, and the badge says so in its own words: the\n list price held and this much was given away. -->\n @if (HasDiscount(line)) {\n <span class=\"mjo-ol-discpill\" title=\"Discount on this line\">\u2212{{ AppliedDiscount(line) | mjoMoney }}</span>\n }\n @if (PricedLine(line)?.Error; as why) {\n <div class=\"mjo-ol-card__err\">{{ why }}</div>\n }\n </div>\n\n <div class=\"mjo-ol-card__tot\">{{ PricedLine(line)?.NetAmount | mjoMoney }}</div>\n\n <!-- Details, on every line and not just editable ones: a booked line's dimensions are\n what its journal entry carries, which is exactly when someone wants to look. -->\n <button\n type=\"button\"\n class=\"mjo-ol-iconbtn\"\n (click)=\"OpenDetails(line, $event)\"\n [attr.title]=\"DimensionSummary(line)\"\n [attr.aria-label]=\"'Details for ' + (ProductFor(line)?.Name ?? 'line')\">\n <i class=\"fa-solid fa-sliders\" aria-hidden=\"true\"></i>\n </button>\n\n @if (EditMode) {\n <button\n type=\"button\"\n class=\"mjo-ol-iconbtn\"\n (click)=\"Remove(line)\"\n [attr.aria-label]=\"'Remove ' + (ProductFor(line)?.Name ?? 'line')\">\n <i class=\"fa-regular fa-trash-can\" aria-hidden=\"true\"></i>\n </button>\n }\n </div>\n\n @if (IsOverrideEditorOpen(line)) {\n <div class=\"mjo-ol-override\" role=\"region\" [attr.aria-label]=\"'Price and discount for ' + (ProductFor(line)?.Name ?? 'line')\">\n @if (CanOverride || CanPickBand(line)) {\n <mjo-line-price-picker\n [Line]=\"line\"\n [OverrideKind]=\"OverrideKind\"\n [Applicable]=\"ApplicableFor(line)\"\n [EngineDefault]=\"PricedLine(line)?.Default\"\n [DefaultUnit]=\"DefaultUnit(line)\"\n [PriceSource]=\"PricedLine(line)?.PriceSource ?? null\"\n [PricedUnit]=\"PricedLine(line)?.UnitPrice ?? null\"\n (PriceChanged)=\"OnLinePriceChanged()\"></mjo-line-price-picker>\n @if (GiveawayHint(line); as hint) {\n <div class=\"mjo-ol-override__hint\" role=\"note\">\n <i class=\"fa-solid fa-circle-info\" aria-hidden=\"true\"></i>\n <span>{{ hint }}</span>\n </div>\n }\n }\n\n <!--\n DISCOUNT \u2014 deliberately its own block, below the price picker and labelled\n apart from it (golive #252). An override restates the price; a discount says\n the list price held and value was given away, and only the second reaches the\n Sales Discounts leg of the booking entry. Presenting them as one control is\n what left the whole discount concept unreachable from the product.\n -->\n @if (CanDiscount) {\n <div class=\"mjo-ol-discount\" role=\"group\" [attr.aria-label]=\"'Discount for ' + (ProductFor(line)?.Name ?? 'line')\">\n <div class=\"mjo-ol-discount__head\">\n <span class=\"mjo-ol-discount__title\">Discount</span>\n <span class=\"mjo-ol-discount__cap\">your authority: {{ DiscountCapLabel }}</span>\n </div>\n @if (CanDiscountLine(line)) {\n <div class=\"mjo-ol-discount__row\">\n <div class=\"mjo-ol-discount__mode\" role=\"radiogroup\" aria-label=\"Discount expressed as\">\n <button\n type=\"button\"\n role=\"radio\"\n [attr.aria-checked]=\"DiscountDraft(line).Mode === 'percent'\"\n [class.is-on]=\"DiscountDraft(line).Mode === 'percent'\"\n (click)=\"SetDiscountMode(line, 'percent')\">%</button>\n <button\n type=\"button\"\n role=\"radio\"\n [attr.aria-checked]=\"DiscountDraft(line).Mode === 'amount'\"\n [class.is-on]=\"DiscountDraft(line).Mode === 'amount'\"\n (click)=\"SetDiscountMode(line, 'amount')\">Amount</button>\n </div>\n <input\n class=\"mjo-ol-discount__val\"\n type=\"number\"\n step=\"0.01\"\n min=\"0\"\n [value]=\"DiscountDraft(line).Value\"\n (input)=\"SetDiscountValue(line, $event)\"\n [attr.placeholder]=\"DiscountDraft(line).Mode === 'percent' ? '0' : '0.00'\"\n [attr.aria-label]=\"DiscountDraft(line).Mode === 'percent' ? 'Discount percent' : 'Discount amount'\">\n <span class=\"mjo-ol-discount__calc\">\n @if (DraftDiscountAmount(line); as amount) {\n \u2212{{ amount | mjoMoney }} of {{ DiscountBase(line) | mjoMoney }}\n } @else {\n {{ DiscountBase(line) | mjoMoney }} left to discount\n }\n </span>\n </div>\n <label class=\"mjo-ol-discount__reason\" [class.is-required]=\"NeedsDiscountReason(line)\">\n <span>Discount Reason @if (DraftDiscountAmount(line)) {<em class=\"mjo-ol-override__req\" aria-hidden=\"true\">*</em>}</span>\n <textarea\n rows=\"2\"\n [value]=\"DiscountDraft(line).Reason\"\n (input)=\"SetDiscountReason(line, $event)\"\n placeholder=\"Required \u2014 why value was given away on this line\"></textarea>\n </label>\n @if (DiscountError(line); as problem) {\n <div class=\"mjo-ol-discount__err\" role=\"alert\">{{ problem }}</div>\n }\n @if (DiscountApprovalNote(line); as note) {\n <div class=\"mjo-ol-discount__approval\" role=\"status\">\n <span class=\"mjo-ol-discount__badge\">Needs approval</span>\n <span>{{ note }}</span>\n </div>\n }\n @if (HasStagedDiscount(line)) {\n <div class=\"mjo-ol-discount__staged\">\n <span>Applies when this order is saved.</span>\n <button type=\"button\" class=\"mjo-ol-discount__clear\" (click)=\"ClearDiscount(line)\">Remove</button>\n </div>\n }\n } @else {\n <div class=\"mjo-ol-discount__note\">\n This line is booked, so its money is frozen. Reverse the line to re-sell it at a\n discounted price.\n </div>\n }\n </div>\n } @else if (DiscountUnavailableReason; as why) {\n <div class=\"mjo-ol-discount__note\">{{ why }}</div>\n }\n\n <div class=\"mjo-ol-override__actions\">\n <button\n type=\"button\"\n class=\"mjo-ol-override__done\"\n [disabled]=\"NeedsOverrideReason(line) || NeedsDiscountReason(line)\"\n [attr.title]=\"NeedsOverrideReason(line) ? 'Enter a reason for the price override' : (NeedsDiscountReason(line) ? 'Enter a reason for the discount' : null)\"\n (click)=\"DoneOverrideEditor(line)\">Done</button>\n @if (CanOverride) {\n <button type=\"button\" class=\"mjo-ol-override__reset\" [disabled]=\"!CanRestoreDefault(line)\" (click)=\"ResetOverride(line)\">Use Default Price</button>\n }\n </div>\n </div>\n }\n\n <div class=\"mjo-ol-card__conseq\">\n @if (ProductFor(line); as product) {\n @if (product.TypeName === 'Goods') {\n <mjo-consequence-chip Kind=\"fulfillment\">Ships \u2014 holds the order at Posted</mjo-consequence-chip>\n }\n @if (!product.Taxable) {\n <mjo-consequence-chip Kind=\"untaxable\">Untaxable</mjo-consequence-chip>\n }\n @if (ShowsForeignRevenue(line)) {\n <mjo-consequence-chip Kind=\"company\">Revenue to {{ product.CompanyName }}</mjo-consequence-chip>\n }\n }\n </div>\n @if (OverrideReasonText(line); as why) {\n <div class=\"mjo-ol-card__why\">{{ why }}</div>\n }\n\n <!--\n TERM START \u2014 subscription lines, and bundle lines whose bundle contains a subscription\n (D-TERMSTART, u623.1).\n The order date says when the sale was booked; this says when coverage begins, and an\n agreement settles the two independently. Shown on the card rather than behind the\n extension disclosure because it is a term fact, and not every subscription product\n type has an extension form to hide it in.\n -->\n @if (ShowsTermStart(line)) {\n <div class=\"mjo-ol-term\">\n <!-- `for` only when there IS an input to point at. A label targeting a missing\n id is a dead control to a screen reader. -->\n <label\n class=\"mjo-ol-term__label\"\n [attr.for]=\"EditMode && !TermStartIsDictated(line) ? 'mjo-ol-term-' + line.ID : null\">\n Term start\n </label>\n <!-- A renewal of LIVE coverage has no choice to offer: the term begins the day\n after the current one ends. Read-only rather than editable-and-ignored. -->\n @if (TermStartIsDictated(line)) {\n <span class=\"mjo-ol-term__value is-dictated\">{{ ContinuationStartValue(line) }}</span>\n } @else if (EditMode) {\n <input\n type=\"date\"\n class=\"mjo-ol-term__input\"\n [class.is-default]=\"TermStartFollowsOrderDate(line)\"\n [id]=\"'mjo-ol-term-' + line.ID\"\n [value]=\"TermStartValue(line)\"\n (change)=\"SetTermStart(line, $event)\">\n <!-- Offered only when there is something to reset. A button that clears a\n value the line never stated does nothing and invites the reader to\n wonder what it did. -->\n @if (!TermStartFollowsOrderDate(line)) {\n <button\n type=\"button\"\n class=\"mjo-ol-term__reset\"\n (click)=\"ResetTermStart(line)\">\n Reset to order date\n </button>\n }\n } @else {\n <span class=\"mjo-ol-term__value\">{{ TermStartValue(line) }}</span>\n }\n <span class=\"mjo-ol-term__hint\">\n @if (IsSubscriptionBundleLine(line)) {\n Applies to the subscriptions in this bundle.\n } @else if (TermStartIsDictated(line)) {\n Continuing existing coverage, so the term begins the day after the current\n one ends \u2014 not something this line can set.\n } @else if (TermStartFollowsOrderDate(line)) {\n Following the order date. The subscription type's rules may still adjust\n the actual start.\n } @else {\n Stated on this line, so a later change to the order date leaves it alone.\n }\n </span>\n </div>\n }\n\n <!--\n TERM END \u2014 subscription lines only (golive #338), shown and not edited.\n Confirm keeps an end already stated on the line: the coverage\n runs to it, as one term or one term per type term length. Typing one here would change\n the coverage without changing the price, and nothing reviews that yet, so the field\n stays read-only until a stated length goes through approval.\n -->\n @if (IsSubscriptionLine(line)) {\n <div class=\"mjo-ol-term\">\n <span class=\"mjo-ol-term__label\">Term end</span>\n <span class=\"mjo-ol-term__value\">{{ TermEndValue(line) }}</span>\n @if (TermEndBeforeStart(line)) {\n <span class=\"mjo-ol-term__hint is-error\" role=\"alert\">\n The term end must be on or after the term start.\n </span>\n } @else if (!IsMoneyLocked) {\n <span class=\"mjo-ol-term__hint\">\n @if (TermEndFollowsType(line)) {\n One term of the subscription type.\n } @else if (KeptTermEndValue(line); as kept) {\n Confirm keeps this length from the continuation date, so the term ends {{ kept }}.\n } @else {\n Stated on this line, and confirm keeps these dates.\n }\n </span>\n }\n </div>\n\n <!-- The customer already holds this product (golive #299): ask whether this line\n extends that subscription or starts another, instead of letting the type's\n rule decide silently at confirm. Worded as a question, with the dates each\n answer gives on its button (golive #480). -->\n @if (ExistingHoldingFor(line); as holding) {\n <div class=\"mjo-ol-holding\" role=\"group\" [attr.aria-label]=\"'Existing subscription ' + holding.SubscriptionNumber\">\n <span class=\"mjo-ol-holding__text\">\n This customer already has this product on {{ holding.SubscriptionNumber }}@if (HoldingCoverageEnd(holding)) {, which runs through {{ HoldingCoverageEnd(holding) }}}.\n Is this line a renewal of that subscription, or a new one?\n </span>\n @if (CanEditServicePeriod()) {\n <div class=\"mjo-ol-holding__choices\">\n <button\n type=\"button\"\n class=\"mjo-ol-holding__choice\"\n [class.is-selected]=\"line.SubscriptionAction === 'ExtendExisting'\"\n [attr.aria-pressed]=\"line.SubscriptionAction === 'ExtendExisting'\"\n (click)=\"SetSubscriptionAction(line, 'ExtendExisting')\">\n {{ HoldingExtendLineText(line, holding).Choice }}\n </button>\n <button\n type=\"button\"\n class=\"mjo-ol-holding__choice\"\n [class.is-selected]=\"line.SubscriptionAction === 'CreateNew'\"\n [attr.aria-pressed]=\"line.SubscriptionAction === 'CreateNew'\"\n (click)=\"SetSubscriptionAction(line, 'CreateNew')\">\n {{ HoldingNewSubscriptionText(line) }}\n </button>\n </div>\n }\n <span class=\"mjo-ol-term__hint\" [class.is-error]=\"!line.SubscriptionAction\">\n @if (line.SubscriptionAction === 'CreateNew') {\n Confirm creates a new subscription for this customer, separate from\n {{ holding.SubscriptionNumber }}.\n } @else if (line.SubscriptionAction === 'ExtendExisting') {\n {{ HoldingExtendLineText(line, holding).Hint }}\n } @else {\n Not chosen. Confirm will not go ahead until you choose.\n }\n </span>\n <!-- Instalments the next term would leave behind (golive #467): confirm refuses them. -->\n @if (HoldingScheduleWarning(line, holding); as warning) {\n <span class=\"mjo-ol-term__hint is-error\" role=\"alert\">{{ warning }}</span>\n }\n </div>\n }\n }\n\n <!--\n SERVICE PERIOD \u2014 deferred lines that neither an event nor a subscription dates.\n The recognition type earns against this window, so the order cannot be confirmed\n without it.\n -->\n @if (NeedsStatedServicePeriod(line)) {\n <div class=\"mjo-ol-term\">\n <label\n class=\"mjo-ol-term__label\"\n [attr.for]=\"CanEditServicePeriod() ? 'mjo-ol-sp-start-' + line.ID : null\">\n Service period\n </label>\n @if (CanEditServicePeriod()) {\n <input\n type=\"date\"\n class=\"mjo-ol-term__input\"\n aria-label=\"Service period start\"\n [id]=\"'mjo-ol-sp-start-' + line.ID\"\n [value]=\"ServicePeriodValue(line, 'Start')\"\n (change)=\"SetServicePeriod(line, 'Start', $event)\">\n <span class=\"mjo-ol-term__label\" aria-hidden=\"true\">to</span>\n <input\n type=\"date\"\n class=\"mjo-ol-term__input\"\n aria-label=\"Service period end\"\n [value]=\"ServicePeriodValue(line, 'End')\"\n (change)=\"SetServicePeriod(line, 'End', $event)\">\n } @else {\n <span class=\"mjo-ol-term__value\">\n {{ ServicePeriodValue(line, 'Start') || '\u2014' }} to {{ ServicePeriodValue(line, 'End') || '\u2014' }}\n </span>\n }\n @if (ServicePeriodBackwards(line)) {\n <span class=\"mjo-ol-term__hint is-error\" role=\"alert\">\n End date must be on or after the start date.\n </span>\n } @else if (ServicePeriodMissing(line)) {\n <span class=\"mjo-ol-term__hint\">\n Needed to confirm: revenue on this line is recognized against these dates.\n </span>\n }\n </div>\n }\n\n <!--\n EXPECTED DATES \u2014 percentage-of-completion lines (golive #455). Recognition follows\n attested progress, so the dates are optional and only record the expected window.\n -->\n @if (ShowsExpectedServicePeriod(line)) {\n <div class=\"mjo-ol-term\">\n @if (CanEditServicePeriod()) {\n <label class=\"mjo-ol-term__label\" [attr.for]=\"'mjo-ol-exp-start-' + line.ID\">Expected start</label>\n <input\n type=\"date\"\n class=\"mjo-ol-term__input\"\n [id]=\"'mjo-ol-exp-start-' + line.ID\"\n [value]=\"ServicePeriodValue(line, 'Start')\"\n (change)=\"SetServicePeriod(line, 'Start', $event)\">\n <label class=\"mjo-ol-term__label\" [attr.for]=\"'mjo-ol-exp-end-' + line.ID\">Expected end</label>\n <input\n type=\"date\"\n class=\"mjo-ol-term__input\"\n [id]=\"'mjo-ol-exp-end-' + line.ID\"\n [value]=\"ServicePeriodValue(line, 'End')\"\n (change)=\"SetServicePeriod(line, 'End', $event)\">\n } @else {\n <span class=\"mjo-ol-term__label\">Expected start</span>\n <span class=\"mjo-ol-term__value\">{{ ServicePeriodValue(line, 'Start') || '\u2014' }}</span>\n <span class=\"mjo-ol-term__label\">Expected end</span>\n <span class=\"mjo-ol-term__value\">{{ ServicePeriodValue(line, 'End') || '\u2014' }}</span>\n }\n @if (ServicePeriodBackwards(line)) {\n <span class=\"mjo-ol-term__hint is-error\" role=\"alert\">\n End date must be on or after the start date.\n </span>\n } @else if (CanEditServicePeriod()) {\n <span class=\"mjo-ol-term__hint\">\n Optional. Revenue on this line follows recorded progress, not these dates.\n </span>\n }\n </div>\n }\n\n <!--\n COVERAGE OVERLAP \u2014 another band of the same subscription family (golive #276).\n The text is the server's own confirm check (Orders.CheckCoverageOverlap), so what\n this says is what confirm will do. Checked after each save.\n -->\n @if (CoverageOverlapFor(line); as overlap) {\n <div class=\"mjo-ol-overlap\" [class.is-blocking]=\"OverlapBlocksConfirm(line)\" role=\"status\">\n <i class=\"fa-solid fa-triangle-exclamation\" aria-hidden=\"true\"></i>\n <div class=\"mjo-ol-overlap__body\">\n <span>{{ overlap.Message }}</span>\n @if (CanAcknowledgeOverlap(line)) {\n <!-- Ticking it needs the run-alongside grant and a reason (bizapps-orders#511).\n Unticking never does. Confirm checks both again on the server. -->\n <label class=\"mjo-ol-overlap__ack\">\n <input\n type=\"checkbox\"\n [checked]=\"line.AcknowledgesCoverageOverlap\"\n [disabled]=\"!EditMode || (!CanRunAlongside && !line.AcknowledgesCoverageOverlap)\"\n (change)=\"SetOverlapAcknowledged(line, $event)\">\n Run alongside the existing coverage. Both will be billed.\n </label>\n @if (!CanRunAlongside) {\n <span class=\"mjo-ol-overlap__hint\">Running alongside needs the Account Director role.</span>\n }\n @if (line.AcknowledgesCoverageOverlap) {\n <label class=\"mjo-ol-overlap__reason\" [class.is-required]=\"OverlapReasonMissing(line)\">\n <span>Reason to run alongside<em class=\"mjo-ol-override__req\" aria-hidden=\"true\">*</em></span>\n <textarea\n rows=\"2\"\n maxlength=\"1000\"\n [value]=\"line.CoverageOverlapReason ?? ''\"\n [disabled]=\"!EditMode\"\n (input)=\"SetOverlapReason(line, $event)\"\n placeholder=\"Required \u2014 why both subscriptions should be billed\"></textarea>\n </label>\n }\n }\n </div>\n </div>\n }\n\n @if (ExtensionFor(line); as ext) {\n <div class=\"mjo-ol-ext\" [class.is-open]=\"IsExtensionOpen(line)\">\n <button\n type=\"button\"\n class=\"mjo-ol-ext__toggle\"\n (click)=\"ToggleExtension(line)\"\n [attr.aria-expanded]=\"IsExtensionOpen(line)\"\n [attr.aria-controls]=\"'mjo-ol-ext-' + line.ID\">\n <i class=\"fa-solid fa-chevron-right mjo-ol-ext__chev\" aria-hidden=\"true\"></i>\n <span class=\"mjo-ol-ext__label\">{{ ExtensionLabel(line) }}</span>\n @if (!IsExtensionOpen(line)) {\n <span class=\"mjo-ol-ext__hint\">{{ ExtensionHint(line) }}</span>\n }\n </button>\n <div\n class=\"mjo-ol-ext__body\"\n [id]=\"'mjo-ol-ext-' + line.ID\"\n [attr.inert]=\"IsExtensionOpen(line) ? null : ''\"\n [attr.aria-hidden]=\"!IsExtensionOpen(line)\">\n <div class=\"mjo-ol-ext__clip\">\n <mj-entity-form-host\n [Record]=\"ext\"\n [EditMode]=\"EditMode\"\n [Config]=\"ExtensionFormConfigFor(line)\"\n (FormCreated)=\"OnExtensionFormCreated($event)\"\n (Navigate)=\"OnExtensionNavigate($event)\">\n </mj-entity-form-host>\n </div>\n </div>\n </div>\n }\n </div>\n } @empty {\n <mj-empty-state\n Size=\"compact\"\n Icon=\"fa-solid fa-cart-plus\"\n Title=\"Nothing on this order yet\"\n Message=\"Search the catalog to add the first line.\" />\n }\n\n @if (EditMode) {\n <div class=\"mj-typeahead mjo-ol-picker\" #pickerHost>\n <div class=\"mjo-search\">\n <i class=\"fa-solid fa-plus\" aria-hidden=\"true\"></i>\n <input\n [(ngModel)]=\"ProductQuery\"\n (ngModelChange)=\"OnProductQueryChange()\"\n (focus)=\"OpenPicker()\"\n (blur)=\"ClosePickerSoon()\"\n (keydown)=\"OnPickerKey($event)\"\n placeholder=\"Add product \u2014 type a name or SKU\u2026\"\n autocomplete=\"off\"\n role=\"combobox\"\n aria-label=\"Add a product\"\n [attr.aria-expanded]=\"PickerOpen\">\n <!-- mousedown is cancelled so the input keeps focus and the open list re-filters in place. -->\n <label\n class=\"mjo-ol-picker__company-only\"\n [class.is-disabled]=\"!HasSellingCompany\"\n [attr.title]=\"HasSellingCompany ? null : 'Set the order\\'s company to narrow the list to its products'\"\n (mousedown)=\"$event.preventDefault()\">\n <input\n type=\"checkbox\"\n [(ngModel)]=\"SellingCompanyOnly\"\n (ngModelChange)=\"OnSellingCompanyOnlyChange()\"\n [disabled]=\"!HasSellingCompany\">\n Only selling company products\n </label>\n </div>\n\n @if (PickerOpen) {\n <div class=\"mj-typeahead-list is-open\" [class.is-up]=\"PickerOpensUp\" role=\"listbox\">\n @for (product of PickerResults; track product.ID; let i = $index) {\n <button\n type=\"button\"\n class=\"mj-typeahead-item mjo-ol-pick\"\n [class.is-cursor]=\"i === PickerCursor\"\n role=\"option\"\n [attr.aria-selected]=\"i === PickerCursor\"\n (mousedown)=\"AddProduct(product)\">\n <span class=\"mjo-ol-pick__body\">\n <span class=\"name\">{{ product.Name }}</span>\n <span class=\"mjo-ol-pick__meta\">\n <span class=\"sub\">{{ product.SKU }} \u00B7 {{ product.TypeName }}</span>\n @if (product.CompanyName) {\n <span\n class=\"mjo-ol-pick__company\"\n [class.is-foreign]=\"IsForeignCompany(product)\"\n [attr.title]=\"IsForeignCompany(product)\n ? 'Sold by ' + product.CompanyName + ', not this order\\'s company'\n : product.CompanyName\">\n <i class=\"fa-solid fa-building\" aria-hidden=\"true\"></i>\n {{ product.CompanyName }}\n </span>\n }\n </span>\n </span>\n <span class=\"end\">\n <span class=\"mjo-ol-pick__price\">{{ product.ListPrice === null ? 'No price' : (product.ListPrice | mjoMoney) }}</span>\n <span class=\"sub\">{{ product.Taxable ? 'taxable' : 'untaxable' }}</span>\n </span>\n </button>\n } @empty {\n <div class=\"mj-typeahead-item\">\n <span class=\"muted small\">\n @if (CatalogError) { {{ CatalogError }} }\n @else if (Catalog.length === 0) { Loading catalog\u2026 }\n @else if (PickerHiddenByCompany === 0) { No product matches that. }\n @else { No product from this order's company matches that. }\n </span>\n </div>\n }\n @if (SellingCompanyOnly && PickerHiddenByCompany > 0) {\n <div class=\"mj-typeahead-item mjo-ol-pick__hidden\" role=\"status\">\n <span class=\"muted small\">\n <i class=\"fa-solid fa-circle-info\" aria-hidden=\"true\"></i>\n {{ PickerHiddenByCompany }} more from other companies. Uncheck \"Only selling company products\" to see them.\n </span>\n </div>\n }\n </div>\n }\n </div>\n }\n\n <!-- Line details. Rendered once and handed whichever line is open, rather than one per card:\n the panel is modal, so a second instance could never be visible. -->\n <mjo-order-line-details-panel\n [Line]=\"DetailsLine\"\n [ProductName]=\"DetailsLine ? (ProductFor(DetailsLine)?.Name ?? '') : ''\"\n [ProductSKU]=\"DetailsLine ? (ProductFor(DetailsLine)?.SKU ?? '') : ''\"\n [ProductType]=\"DetailsLine ? (ProductFor(DetailsLine)?.TypeName ?? '') : ''\"\n [Dimensions]=\"DimensionCatalog\"\n [StampedTags]=\"StampedTagsFor(DetailsLine)\"\n [CompanyValueIDs]=\"CompanyDimensionValueIDs\"\n [EditMode]=\"EditMode\"\n (Closed)=\"CloseDetails()\">\n </mjo-order-line-details-panel>\n</div>\n", styles: [":host { display: block; }\n\n.mjo-ol {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-2);\n}\n\n.mjo-ol-card {\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n border-radius: var(--mj-radius-md);\n padding: var(--mj-space-3);\n}\n\n.mjo-ol-card:has(.mjo-ol-ext.is-open) {\n padding-bottom: var(--mj-space-1);\n}\n\n.mjo-ol-card__top {\n display: flex;\n align-items: flex-start;\n gap: var(--mj-space-3);\n}\n\n.mjo-ol-card__id { flex: 1; min-width: 0; }\n\n.mjo-ol-card__name {\n display: inline;\n padding: 0;\n border: 0;\n background: transparent;\n font: inherit;\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-link);\n text-align: left;\n cursor: pointer;\n text-decoration: none;\n}\n\n.mjo-ol-card__name:hover { text-decoration: underline; }\n\n.mjo-ol-card__meta {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n margin-top: 2px;\n}\n\n.mjo-ol-qty {\n display: inline-flex;\n align-items: center;\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-md);\n overflow: hidden;\n background: var(--mj-bg-surface);\n flex: none;\n}\n\n.mjo-ol-qty button {\n border: 0;\n background: transparent;\n cursor: pointer;\n color: var(--mj-text-secondary);\n width: 26px;\n height: 28px;\n font-size: 11px;\n}\n\n.mjo-ol-qty button:hover:not(:disabled) {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mjo-ol-qty button:disabled {\n cursor: default;\n color: var(--mj-text-disabled);\n}\n\n.mjo-ol-qty input {\n border: 0;\n outline: 0;\n background: transparent;\n width: 46px;\n text-align: center;\n font: inherit;\n font-variant-numeric: tabular-nums;\n color: inherit;\n}\n\n.mjo-ol-qty.is-locked {\n border-color: var(--mj-border-default);\n background: transparent;\n}\n\n.mjo-ol-qty__value {\n min-width: 46px;\n padding: 0 10px;\n height: 28px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-variant-numeric: tabular-nums;\n}\n\n.mjo-ol-card__price {\n flex: none;\n min-width: 108px;\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n.mjo-ol-card__price-row {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 2px;\n height: 28px;\n}\n\n.mjo-ol-price__pencil {\n flex: none;\n color: var(--mj-text-muted);\n}\n\n.mjo-ol-price__pencil:hover {\n color: var(--mj-text-link);\n background: var(--mj-bg-surface-hover);\n}\n\n.mjo-ol-override {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-2);\n margin-top: var(--mj-space-2);\n padding: var(--mj-space-2);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface-card);\n}\n\n.mjo-ol-override__req {\n font-style: normal;\n color: var(--mj-status-error-text);\n margin-left: 2px;\n}\n\n.mjo-ol-override__actions {\n display: flex;\n gap: var(--mj-space-2);\n justify-content: flex-end;\n}\n\n.mjo-ol-override__done,\n.mjo-ol-override__reset {\n border: 0;\n background: transparent;\n cursor: pointer;\n font: inherit;\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n padding: 4px 8px;\n border-radius: var(--mj-radius-sm);\n}\n\n.mjo-ol-override__done {\n color: var(--mj-text-link);\n}\n\n.mjo-ol-override__reset {\n color: var(--mj-text-muted);\n}\n\n.mjo-ol-override__done:hover,\n.mjo-ol-override__reset:hover {\n background: var(--mj-bg-surface-hover);\n}\n\n.mjo-ol-override__done:disabled {\n color: var(--mj-text-muted);\n cursor: not-allowed;\n background: transparent;\n}\n\n.mjo-ol-card__amt {\n font-variant-numeric: tabular-nums;\n font-weight: var(--mj-font-semibold);\n font-size: var(--mj-text-sm);\n line-height: 28px;\n}\n\n.mjo-ol-overpill {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-top: 4px;\n padding: 1px 8px;\n border-radius: 999px;\n font-size: 10px;\n font-weight: 600;\n letter-spacing: 0.02em;\n color: var(--mj-status-warning-text);\n background: color-mix(in srgb, var(--mj-status-warning-text) 16%, transparent);\n}\n\n.mjo-ol-card__err {\n font-size: var(--mj-text-xs);\n color: var(--mj-status-error-text);\n margin-top: 2px;\n}\n\n.mjo-ol-card__tot {\n flex: none;\n min-width: 104px;\n height: 28px;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n text-align: right;\n font-variant-numeric: tabular-nums;\n font-weight: var(--mj-font-semibold);\n font-size: var(--mj-text-sm);\n line-height: 28px;\n}\n\n.mjo-ol-iconbtn {\n border: 0;\n background: transparent;\n color: var(--mj-text-muted);\n cursor: pointer;\n width: 28px;\n height: 28px;\n border-radius: var(--mj-radius-sm);\n}\n\n.mjo-ol-iconbtn:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-status-error);\n}\n\n.mjo-ol-card__conseq {\n display: flex;\n gap: 6px;\n flex-wrap: wrap;\n margin-top: var(--mj-space-2);\n}\n\n/* Term start \u2014 subscription lines only. One row that wraps, so the hint drops below the field on a\n narrow card rather than squeezing the date input. */\n.mjo-ol-term {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n margin-top: var(--mj-space-2);\n}\n\n.mjo-ol-term__label {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-ol-term__input {\n height: 28px;\n padding: 0 var(--mj-space-2);\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n font: inherit;\n font-size: var(--mj-text-sm);\n}\n\n/* A DEFAULT reads quieter than a stated value \u2014 the same distinction the order header draws\n between a date somebody chose and one that fell out of a rule. */\n.mjo-ol-term__input.is-default {\n border-color: var(--mj-border-default);\n color: var(--mj-text-secondary);\n}\n\n.mjo-ol-term__value {\n font-size: var(--mj-text-sm);\n color: var(--mj-text-primary);\n font-variant-numeric: tabular-nums;\n}\n\n/* A dictated date is a FACT, not a disabled input: shown in the read-mode weight in edit mode too,\n so nothing on the card suggests a control that has been switched off. */\n.mjo-ol-term__value.is-dictated {\n color: var(--mj-text-secondary);\n}\n\n.mjo-ol-term__reset {\n border: 0;\n background: transparent;\n padding: 0;\n color: var(--mj-text-link);\n font-size: var(--mj-text-xs);\n cursor: pointer;\n}\n\n.mjo-ol-term__reset:hover {\n text-decoration: underline;\n}\n\n.mjo-ol-term__hint {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-ol-term__hint.is-error {\n color: var(--mj-status-error-text);\n}\n\n.mjo-ol-card__why {\n margin-top: 6px;\n font-size: var(--mj-text-xs);\n color: var(--mj-text-secondary);\n line-height: 1.35;\n}\n\n.mjo-ol-picker {\n position: relative;\n z-index: 20;\n}\n\n.mjo-ol-picker:has(.mj-typeahead-list.is-open) {\n z-index: 40;\n}\n\n.mjo-search {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-md);\n padding: 8px 10px;\n}\n\n.mjo-search i { color: var(--mj-text-muted); font-size: 12px; }\n\n.mjo-search input {\n border: 0;\n outline: 0;\n background: transparent;\n font: inherit;\n font-size: var(--mj-text-sm);\n color: inherit;\n width: 100%;\n}\n\n.mjo-ol-picker__company-only {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n flex-shrink: 0;\n white-space: nowrap;\n font-size: var(--mj-text-xs);\n color: var(--mj-text-secondary);\n cursor: pointer;\n user-select: none;\n}\n\n.mjo-search .mjo-ol-picker__company-only input {\n width: auto;\n margin: 0;\n cursor: inherit;\n}\n\n.mjo-ol-picker__company-only.is-disabled {\n color: var(--mj-text-muted);\n cursor: not-allowed;\n}\n\n.mj-typeahead-list {\n display: none;\n position: absolute;\n left: 0;\n right: 0;\n top: calc(100% + 4px);\n max-height: 240px;\n overflow: auto;\n background: var(--mj-bg-surface-elevated);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n box-shadow: var(--mj-shadow-md, 0 8px 24px rgba(0, 0, 0, 0.18));\n z-index: 30;\n}\n\n.mj-typeahead-list.is-open { display: block; }\n\n.mj-typeahead-list.is-up {\n top: auto;\n bottom: calc(100% + 4px);\n}\n\n.mj-typeahead-item {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3);\n width: 100%;\n padding: 8px 12px;\n border: 0;\n border-bottom: 1px solid var(--mj-border-subtle);\n background: transparent;\n color: inherit;\n text-align: left;\n cursor: pointer;\n font: inherit;\n}\n\n.mj-typeahead-item:last-child { border-bottom: 0; }\n\n.mj-typeahead-item:hover,\n.mj-typeahead-item.is-cursor {\n background: var(--mj-bg-surface-hover);\n}\n\n.mjo-ol-pick__body {\n display: flex;\n flex-direction: column;\n gap: 1px;\n min-width: 0;\n}\n\n.mjo-ol-pick .name { font-size: 13px; font-weight: var(--mj-font-semibold); }\n.mjo-ol-pick .sub { font-size: 11.5px; color: var(--mj-text-muted); }\n\n/*\n COMPANY IS ITS OWN ELEMENT, not the third item in a muted \"SKU \u00B7 type \u00B7 company\" run.\n Two similarly named products from different companies are exactly what this picker has to let\n someone tell apart before they pick, and a company set in the same muted grey as everything\n else, in third position, is not something anyone reads at speed.\n*/\n.mjo-ol-pick__meta {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n min-width: 0;\n}\n\n.mjo-ol-pick__company {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n flex: 0 0 auto;\n font-size: 11px;\n line-height: 1.2;\n padding: 2px 6px;\n border: 1px solid var(--mj-border-subtle);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n}\n\n.mjo-ol-pick__company i { font-size: 9.5px; color: var(--mj-text-muted); }\n\n/* Another company's product \u2014 offered on purpose (BCC sells SoundPost), so it is marked, not hidden. */\n.mjo-ol-pick__company.is-foreign i { color: var(--mj-status-info); }\n.mjo-ol-pick__company.is-foreign {\n color: var(--mj-text-primary);\n border-color: var(--mj-border-default);\n}\n.mjo-ol-pick .end {\n margin-left: auto;\n text-align: right;\n display: flex;\n flex-direction: column;\n gap: 1px;\n flex: 0 0 auto;\n}\n.mjo-ol-pick__price {\n font-variant-numeric: tabular-nums;\n font-weight: var(--mj-font-semibold);\n}\n\n/* Coverage overlap with another band (golive #276). Warning colour while confirm would refuse the\n line; muted once it will proceed, because then it is information, not a problem. */\n.mjo-ol-overlap {\n display: flex;\n gap: var(--mj-space-2);\n margin-top: var(--mj-space-2);\n padding: var(--mj-space-2) var(--mj-space-3);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n font-size: var(--mj-text-xs);\n line-height: 1.35;\n color: var(--mj-text-secondary);\n}\n.mjo-ol-overlap.is-blocking {\n border-color: var(--mj-status-warning-border);\n background: var(--mj-status-warning-bg);\n color: var(--mj-status-warning-text);\n}\n.mjo-ol-overlap__body {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-1);\n}\n.mjo-ol-overlap__ack {\n display: inline-flex;\n align-items: center;\n gap: var(--mj-space-1);\n font-weight: var(--mj-font-semibold);\n cursor: pointer;\n}\n.mjo-ol-overlap__hint {\n font-style: italic;\n}\n.mjo-ol-overlap__reason span {\n display: block;\n margin-bottom: 4px;\n}\n.mjo-ol-overlap__reason textarea {\n display: block;\n width: 100%;\n box-sizing: border-box;\n resize: vertical;\n min-height: 48px;\n padding: 6px 8px;\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n font: inherit;\n}\n.mjo-ol-overlap__reason.is-required textarea {\n border-color: var(--mj-status-error-text);\n}\n.mjo-ol-overlap-err {\n margin-bottom: var(--mj-space-2);\n font-size: var(--mj-text-xs);\n color: var(--mj-status-error-text);\n}\n\n.mjo-ol-seat-note {\n margin-bottom: var(--mj-space-2);\n font-size: var(--mj-text-xs);\n color: var(--mj-text-secondary);\n}\n\n.mjo-ol-ext-err {\n font-size: var(--mj-text-xs);\n color: var(--mj-status-error-text);\n}\n\n.mjo-ol-ext {\n margin-top: var(--mj-space-2);\n padding-top: var(--mj-space-1);\n border-top: 1px dashed var(--mj-border-subtle);\n}\n\n.mjo-ol-ext__toggle {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n width: 100%;\n padding: var(--mj-space-1) 0;\n border: 0;\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: left;\n cursor: pointer;\n border-radius: var(--mj-radius-sm);\n}\n\n.mjo-ol-ext__toggle:hover {\n color: var(--mj-text-primary);\n}\n\n.mjo-ol-ext__toggle:focus-visible {\n outline: 2px solid var(--mj-border-focus);\n outline-offset: 2px;\n}\n\n.mjo-ol-ext__chev {\n flex: none;\n width: 12px;\n font-size: 10px;\n color: var(--mj-text-muted);\n transition: transform 160ms ease;\n}\n\n.mjo-ol-ext.is-open .mjo-ol-ext__chev {\n transform: rotate(90deg);\n}\n\n.mjo-ol-ext__label {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-secondary);\n letter-spacing: 0.01em;\n}\n\n.mjo-ol-ext__hint {\n margin-left: auto;\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mjo-ol-ext__body {\n display: grid;\n grid-template-rows: 0fr;\n transition: grid-template-rows 180ms ease;\n}\n\n.mjo-ol-ext.is-open .mjo-ol-ext__body {\n grid-template-rows: 1fr;\n}\n\n.mjo-ol-ext__clip {\n overflow: hidden;\n min-height: 0;\n}\n\n/* Flatten the embedded extension form so its fields sit in the line card. */\n.mjo-ol-ext ::ng-deep mj-record-form-container,\n.mjo-ol-ext ::ng-deep .mj-record-form-container,\n.mjo-ol-ext ::ng-deep .mj-forms-container {\n display: block;\n padding: 0;\n margin: 0;\n border: 0;\n background: transparent;\n box-shadow: none;\n}\n\n.mjo-ol-ext ::ng-deep .mj-forms-toolbar,\n.mjo-ol-ext ::ng-deep mj-form-toolbar {\n display: none;\n}\n\n.mjo-ol-ext ::ng-deep .mj-forms-panel {\n border: 0;\n background: transparent;\n box-shadow: none;\n margin: 0;\n padding: 0;\n}\n\n.mjo-ol-ext ::ng-deep mj-collapsible-panel + mj-collapsible-panel .mj-forms-panel {\n margin-top: calc(-1 * var(--mj-space-1));\n}\n\n.mjo-ol-ext ::ng-deep .mj-forms-panel-header {\n display: none;\n}\n\n.mjo-ol-ext ::ng-deep .mj-forms-panel-body,\n.mjo-ol-ext ::ng-deep .mj-forms-panel-content {\n max-height: none;\n overflow: visible;\n padding: 0;\n margin: 0;\n}\n\n.mjo-ol-ext ::ng-deep mj-form-field:last-child,\n.mjo-ol-ext ::ng-deep .mj-form-field:last-child {\n margin-bottom: 0;\n}\n\n@media (max-width: 720px) {\n .mjo-ol-card__top { flex-wrap: wrap; }\n .mjo-ol-card__price, .mjo-ol-card__tot { width: auto; }\n}\n\n/* \u2500\u2500 DISCOUNT \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n Its own bordered block inside the price editor, because a discount and a price\n override are different economics and the report that produced this control said\n so: presenting them as one thing is what made the discount concept unreachable.\n The rule above the block is the separator \u2014 the two never read as one form. */\n.mjo-ol-discount {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-2);\n padding-top: var(--mj-space-2);\n border-top: 1px solid var(--mj-border-default);\n}\n\n.mjo-ol-discount__head {\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n}\n\n.mjo-ol-discount__title {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-ol-discount__cap {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-ol-discount__row {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n}\n\n/* Two buttons that behave as one control, so they are drawn as one. */\n.mjo-ol-discount__mode {\n display: inline-flex;\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-sm);\n overflow: hidden;\n}\n\n.mjo-ol-discount__mode button {\n border: 0;\n background: var(--mj-bg-surface);\n color: var(--mj-text-muted);\n font: inherit;\n font-size: var(--mj-text-xs);\n padding: 0 10px;\n height: 28px;\n cursor: pointer;\n}\n\n.mjo-ol-discount__mode button + button {\n border-left: 1px solid var(--mj-border-strong);\n}\n\n.mjo-ol-discount__mode button.is-on {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n font-weight: var(--mj-font-semibold);\n}\n\n.mjo-ol-discount__val {\n width: 96px;\n height: 28px;\n box-sizing: border-box;\n padding: 0 8px;\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface);\n color: inherit;\n font: inherit;\n font-size: var(--mj-text-xs);\n font-variant-numeric: tabular-nums;\n text-align: right;\n}\n\n.mjo-ol-discount__calc {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n font-variant-numeric: tabular-nums;\n}\n\n.mjo-ol-discount__reason span {\n display: block;\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n margin-bottom: 4px;\n}\n\n.mjo-ol-discount__reason textarea {\n display: block;\n width: 100%;\n box-sizing: border-box;\n resize: vertical;\n min-height: 48px;\n padding: 6px 8px;\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface);\n color: inherit;\n font: inherit;\n font-size: var(--mj-text-xs);\n}\n\n.mjo-ol-discount__reason.is-required textarea {\n border-color: var(--mj-status-error-text);\n}\n\n.mjo-ol-discount__err {\n font-size: var(--mj-text-xs);\n color: var(--mj-status-error-text);\n}\n\n.mjo-ol-discount__note {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n/* An over-cap discount is saved held for approval (golive #328): a status, not an error. */\n.mjo-ol-discount__approval {\n display: flex;\n align-items: flex-start;\n gap: var(--mj-space-2);\n font-size: var(--mj-text-xs);\n color: var(--mj-status-warning-text);\n}\n\n.mjo-ol-discount__badge {\n flex: none;\n padding: 0 var(--mj-space-2);\n border: 1px solid var(--mj-status-warning-border);\n border-radius: var(--mj-radius-md);\n background: var(--mj-status-warning-bg);\n font-weight: 600;\n white-space: nowrap;\n}\n\n/* Beside a price typed as zero: how to give a line away instead (golive #328). */\n.mjo-ol-override__hint {\n display: flex;\n align-items: baseline;\n gap: var(--mj-space-2);\n font-size: var(--mj-text-xs);\n color: var(--mj-status-info-text);\n}\n\n.mjo-ol-discount__staged {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-2);\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-ol-discount__clear {\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface);\n color: inherit;\n font: inherit;\n font-size: var(--mj-text-xs);\n height: 24px;\n padding: 0 10px;\n cursor: pointer;\n}\n\n/* The discount's own badge on the line card. Deliberately NOT the override pill's\n warning colour: giving away value on purpose is not a caution. */\n.mjo-ol-discpill {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-top: 4px;\n padding: 1px 8px;\n border-radius: 999px;\n font-size: 10px;\n font-weight: 600;\n letter-spacing: 0.02em;\n font-variant-numeric: tabular-nums;\n color: var(--mj-status-success-text);\n background: color-mix(in srgb, var(--mj-status-success-text) 16%, transparent);\n}\n\n/* The customer already holds this product (golive #299). */\n.mjo-ol-holding {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-2);\n margin-top: var(--mj-space-2);\n padding: var(--mj-space-2) var(--mj-space-3);\n border: 1px solid var(--mj-status-warning-border);\n border-radius: var(--mj-radius-md);\n background: var(--mj-status-warning-bg);\n font-size: var(--mj-text-sm);\n color: var(--mj-text-primary);\n}\n\n.mjo-ol-holding__choices {\n display: flex;\n flex-wrap: wrap;\n gap: var(--mj-space-2);\n}\n\n.mjo-ol-holding__choice {\n padding: 4px 10px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-full);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n font: inherit;\n cursor: pointer;\n}\n\n.mjo-ol-holding__choice.is-selected {\n border-color: var(--mj-brand-primary);\n color: var(--mj-brand-primary);\n font-weight: var(--mj-font-semibold);\n}\n"] }]
|
|
2851
|
+
], template: "<div class=\"mjo-ol\">\n @if (CoverageCheckError) {\n <div class=\"mjo-ol-overlap-err\" role=\"status\">{{ CoverageCheckError }}</div>\n }\n @if (SeatSplitNotice) {\n <div class=\"mjo-ol-seat-note\" role=\"status\">{{ SeatSplitNotice }}</div>\n }\n @for (line of Lines; track line.ID) {\n <div class=\"mjo-ol-card\">\n <div class=\"mjo-ol-card__top\">\n <div class=\"mjo-ol-card__id\">\n <button type=\"button\" class=\"mjo-ol-card__name\" [mjRecordLink]=\"line\" FieldName=\"ProductID\" [HandleClick]=\"false\" (click)=\"OpenProduct(line, $event)\">\n {{ ProductFor(line)?.Name ?? 'Product' }}\n </button>\n <div class=\"mjo-ol-card__meta\">\n {{ ProductFor(line)?.SKU }}\n @if (ProductFor(line)?.TypeName) {\n \u00B7 {{ ProductFor(line)?.TypeName }}\n }\n </div>\n </div>\n\n <div class=\"mjo-ol-qty\" [class.is-locked]=\"!EditMode || QuantityCappedToOne(line)\">\n @if (EditMode && !QuantityCappedToOne(line)) {\n <button type=\"button\" (click)=\"Bump(line, -1)\" aria-label=\"Decrease quantity\">\u2212</button>\n <input\n [value]=\"line.Quantity\"\n (change)=\"SetQuantity(line, $event)\"\n aria-label=\"Quantity\">\n <button type=\"button\" (click)=\"Bump(line, 1)\" [disabled]=\"QuantityAtMax(line)\" aria-label=\"Increase quantity\">+</button>\n } @else {\n <span class=\"mjo-ol-qty__value\">{{ line.Quantity }}</span>\n }\n </div>\n\n <div class=\"mjo-ol-card__price\">\n <div class=\"mjo-ol-card__price-row\">\n <div class=\"mjo-ol-card__amt\">{{ DisplayUnit(line) | mjoMoney }}</div>\n <!-- The pencil opens the PRICE editor, the DISCOUNT editor, or both \u2014 a user\n may hold one authority without the other, and an order that can be\n discounted but not re-priced still needs a way in. -->\n @if (CanOverride || CanDiscount || CanPickBand(line)) {\n <button\n type=\"button\"\n class=\"mjo-ol-iconbtn mjo-ol-price__pencil\"\n (click)=\"ToggleOverrideEditor(line)\"\n [attr.aria-expanded]=\"IsOverrideEditorOpen(line)\"\n [attr.aria-label]=\"CanOverride ? (IsOverridden(line) ? 'Edit price override' : 'Override price or discount line') : (CanPickBand(line) ? 'Pick revenue band' : 'Discount line')\">\n <i class=\"fa-solid fa-pencil\" aria-hidden=\"true\"></i>\n </button>\n }\n </div>\n @if (IsOverridden(line)) {\n <span class=\"mjo-ol-overpill\">overridden</span>\n } @else {\n <mjo-price-source-badge\n [Source]=\"PricedLine(line)?.PriceSource ?? null\"\n [Settled]=\"!Pricing.Loading\"\n [Overridden]=\"false\" />\n }\n <!-- A DISCOUNT IS NOT AN OVERRIDE, and the badge says so in its own words: the\n list price held and this much was given away. -->\n @if (HasDiscount(line)) {\n <span class=\"mjo-ol-discpill\" title=\"Discount on this line\">\u2212{{ AppliedDiscount(line) | mjoMoney }}</span>\n }\n @if (PricedLine(line)?.Error; as why) {\n <div class=\"mjo-ol-card__err\">{{ why }}</div>\n }\n </div>\n\n <div class=\"mjo-ol-card__tot\">{{ PricedLine(line)?.NetAmount | mjoMoney }}</div>\n\n <!-- Details, on every line and not just editable ones: a booked line's dimensions are\n what its journal entry carries, which is exactly when someone wants to look. -->\n <button\n type=\"button\"\n class=\"mjo-ol-iconbtn\"\n (click)=\"OpenDetails(line, $event)\"\n [attr.title]=\"DimensionSummary(line)\"\n [attr.aria-label]=\"'Details for ' + (ProductFor(line)?.Name ?? 'line')\">\n <i class=\"fa-solid fa-sliders\" aria-hidden=\"true\"></i>\n </button>\n\n @if (EditMode) {\n <button\n type=\"button\"\n class=\"mjo-ol-iconbtn\"\n (click)=\"Remove(line)\"\n [attr.aria-label]=\"'Remove ' + (ProductFor(line)?.Name ?? 'line')\">\n <i class=\"fa-regular fa-trash-can\" aria-hidden=\"true\"></i>\n </button>\n }\n </div>\n\n @if (IsOverrideEditorOpen(line)) {\n <div class=\"mjo-ol-override\" role=\"region\" [attr.aria-label]=\"'Price and discount for ' + (ProductFor(line)?.Name ?? 'line')\">\n @if (CanOverride || CanPickBand(line)) {\n <mjo-line-price-picker\n [Line]=\"line\"\n [OverrideKind]=\"OverrideKind\"\n [Applicable]=\"ApplicableFor(line)\"\n [EngineDefault]=\"PricedLine(line)?.Default\"\n [DefaultUnit]=\"DefaultUnit(line)\"\n [PriceSource]=\"PricedLine(line)?.PriceSource ?? null\"\n [PricedUnit]=\"PricedLine(line)?.UnitPrice ?? null\"\n (PriceChanged)=\"OnLinePriceChanged()\"></mjo-line-price-picker>\n @if (GiveawayHint(line); as hint) {\n <div class=\"mjo-ol-override__hint\" role=\"note\">\n <i class=\"fa-solid fa-circle-info\" aria-hidden=\"true\"></i>\n <span>{{ hint }}</span>\n </div>\n }\n }\n\n <!--\n DISCOUNT \u2014 deliberately its own block, below the price picker and labelled\n apart from it (golive #252). An override restates the price; a discount says\n the list price held and value was given away, and only the second reaches the\n Sales Discounts leg of the booking entry. Presenting them as one control is\n what left the whole discount concept unreachable from the product.\n -->\n @if (CanDiscount) {\n <div class=\"mjo-ol-discount\" role=\"group\" [attr.aria-label]=\"'Discount for ' + (ProductFor(line)?.Name ?? 'line')\">\n <div class=\"mjo-ol-discount__head\">\n <span class=\"mjo-ol-discount__title\">Discount</span>\n <span class=\"mjo-ol-discount__cap\">your authority: {{ DiscountCapLabel }}</span>\n </div>\n @if (CanDiscountLine(line)) {\n <div class=\"mjo-ol-discount__row\">\n <div class=\"mjo-ol-discount__mode\" role=\"radiogroup\" aria-label=\"Discount expressed as\">\n <button\n type=\"button\"\n role=\"radio\"\n [attr.aria-checked]=\"DiscountDraft(line).Mode === 'percent'\"\n [class.is-on]=\"DiscountDraft(line).Mode === 'percent'\"\n (click)=\"SetDiscountMode(line, 'percent')\">%</button>\n <button\n type=\"button\"\n role=\"radio\"\n [attr.aria-checked]=\"DiscountDraft(line).Mode === 'amount'\"\n [class.is-on]=\"DiscountDraft(line).Mode === 'amount'\"\n (click)=\"SetDiscountMode(line, 'amount')\">Amount</button>\n </div>\n <input\n class=\"mjo-ol-discount__val\"\n type=\"number\"\n step=\"0.01\"\n min=\"0\"\n [value]=\"DiscountDraft(line).Value\"\n (input)=\"SetDiscountValue(line, $event)\"\n [attr.placeholder]=\"DiscountDraft(line).Mode === 'percent' ? '0' : '0.00'\"\n [attr.aria-label]=\"DiscountDraft(line).Mode === 'percent' ? 'Discount percent' : 'Discount amount'\">\n <span class=\"mjo-ol-discount__calc\">\n @if (DraftDiscountAmount(line); as amount) {\n \u2212{{ amount | mjoMoney }} of {{ DiscountBase(line) | mjoMoney }}\n } @else {\n {{ DiscountBase(line) | mjoMoney }} left to discount\n }\n </span>\n </div>\n <label class=\"mjo-ol-discount__reason\" [class.is-required]=\"NeedsDiscountReason(line)\">\n <span>Discount Reason @if (DraftDiscountAmount(line)) {<em class=\"mjo-ol-override__req\" aria-hidden=\"true\">*</em>}</span>\n <textarea\n rows=\"2\"\n [value]=\"DiscountDraft(line).Reason\"\n (input)=\"SetDiscountReason(line, $event)\"\n placeholder=\"Required \u2014 why value was given away on this line\"></textarea>\n </label>\n @if (DiscountError(line); as problem) {\n <div class=\"mjo-ol-discount__err\" role=\"alert\">{{ problem }}</div>\n }\n @if (DiscountApprovalNote(line); as note) {\n <div class=\"mjo-ol-discount__approval\" role=\"status\">\n <span class=\"mjo-ol-discount__badge\">Needs approval</span>\n <span>{{ note }}</span>\n </div>\n }\n @if (HasStagedDiscount(line)) {\n <div class=\"mjo-ol-discount__staged\">\n <span>Applies when this order is saved.</span>\n <button type=\"button\" class=\"mjo-ol-discount__clear\" (click)=\"ClearDiscount(line)\">Remove</button>\n </div>\n }\n } @else {\n <div class=\"mjo-ol-discount__note\">\n This line is booked, so its money is frozen. Reverse the line to re-sell it at a\n discounted price.\n </div>\n }\n </div>\n } @else if (DiscountUnavailableReason; as why) {\n <div class=\"mjo-ol-discount__note\">{{ why }}</div>\n }\n\n <div class=\"mjo-ol-override__actions\">\n <button\n type=\"button\"\n class=\"mjo-ol-override__done\"\n [disabled]=\"NeedsOverrideReason(line) || NeedsDiscountReason(line)\"\n [attr.title]=\"NeedsOverrideReason(line) ? 'Enter a reason for the price override' : (NeedsDiscountReason(line) ? 'Enter a reason for the discount' : null)\"\n (click)=\"DoneOverrideEditor(line)\">Done</button>\n @if (CanOverride) {\n <button type=\"button\" class=\"mjo-ol-override__reset\" [disabled]=\"!CanRestoreDefault(line)\" (click)=\"ResetOverride(line)\">Use Default Price</button>\n }\n </div>\n </div>\n }\n\n <div class=\"mjo-ol-card__conseq\">\n @if (ProductFor(line); as product) {\n @if (product.TypeName === 'Goods') {\n <mjo-consequence-chip Kind=\"fulfillment\">Ships \u2014 holds the order at Posted</mjo-consequence-chip>\n }\n @if (!product.Taxable) {\n <mjo-consequence-chip Kind=\"untaxable\">Untaxable</mjo-consequence-chip>\n }\n @if (ShowsForeignRevenue(line)) {\n <mjo-consequence-chip Kind=\"company\">Revenue to {{ product.CompanyName }}</mjo-consequence-chip>\n }\n }\n </div>\n @if (OverrideReasonText(line); as why) {\n <div class=\"mjo-ol-card__why\">{{ why }}</div>\n }\n\n <!--\n LINE DESCRIPTION: free text for this line, for a product whose name does not say\n what was sold (a generic services product, a named person on a staffing line).\n The invoice and the invoicing rail print it after the product name. Editable while\n the order is; shown as text afterwards, and only when there is something to show.\n -->\n @if (EditMode) {\n <label class=\"mjo-ol-desc\">\n <span>Description</span>\n <textarea\n rows=\"1\"\n [attr.maxlength]=\"DescriptionMaxLength\"\n [attr.aria-label]=\"'Description for ' + (ProductFor(line)?.Name ?? 'line')\"\n [attr.aria-describedby]=\"'mjo-ol-desc-hint-' + line.ID\"\n [value]=\"line.Description ?? ''\"\n (input)=\"TypeDescription(line, $event)\"\n (change)=\"SetDescription(line, $event)\"\n data-testid=\"order-line-description\"></textarea>\n <!-- A visible hint, not a placeholder: a placeholder clips in a one-row box and\n is gone as soon as the user types. -->\n <small class=\"mjo-ol-desc__hint\" [id]=\"'mjo-ol-desc-hint-' + line.ID\">\n Optional. Displays on the invoice after the product name and before the service period.\n </small>\n </label>\n } @else if (line.Description) {\n <div class=\"mjo-ol-card__desc\" data-testid=\"order-line-description-text\">{{ line.Description }}</div>\n }\n\n <!--\n TERM START \u2014 subscription lines, and bundle lines whose bundle contains a subscription\n (D-TERMSTART, u623.1).\n The order date says when the sale was booked; this says when coverage begins, and an\n agreement settles the two independently. Shown on the card rather than behind the\n extension disclosure because it is a term fact, and not every subscription product\n type has an extension form to hide it in.\n -->\n @if (ShowsTermStart(line)) {\n <div class=\"mjo-ol-term\">\n <!-- `for` only when there IS an input to point at. A label targeting a missing\n id is a dead control to a screen reader. -->\n <label\n class=\"mjo-ol-term__label\"\n [attr.for]=\"EditMode && !TermStartIsDictated(line) ? 'mjo-ol-term-' + line.ID : null\">\n Term start\n </label>\n <!-- A renewal of LIVE coverage has no choice to offer: the term begins the day\n after the current one ends. Read-only rather than editable-and-ignored. -->\n @if (TermStartIsDictated(line)) {\n <span class=\"mjo-ol-term__value is-dictated\">{{ ContinuationStartValue(line) }}</span>\n } @else if (EditMode) {\n <input\n type=\"date\"\n class=\"mjo-ol-term__input\"\n [class.is-default]=\"TermStartFollowsOrderDate(line)\"\n [id]=\"'mjo-ol-term-' + line.ID\"\n [value]=\"TermStartValue(line)\"\n (change)=\"SetTermStart(line, $event)\">\n <!-- Offered only when there is something to reset. A button that clears a\n value the line never stated does nothing and invites the reader to\n wonder what it did. -->\n @if (!TermStartFollowsOrderDate(line)) {\n <button\n type=\"button\"\n class=\"mjo-ol-term__reset\"\n (click)=\"ResetTermStart(line)\">\n Reset to order date\n </button>\n }\n } @else {\n <span class=\"mjo-ol-term__value\">{{ TermStartValue(line) }}</span>\n }\n <span class=\"mjo-ol-term__hint\">\n @if (IsSubscriptionBundleLine(line)) {\n Applies to the subscriptions in this bundle.\n } @else if (TermStartIsDictated(line)) {\n Continuing existing coverage, so the term begins the day after the current\n one ends \u2014 not something this line can set.\n } @else if (TermStartFollowsOrderDate(line)) {\n Following the order date. The subscription type's rules may still adjust\n the actual start.\n } @else {\n Stated on this line, so a later change to the order date leaves it alone.\n }\n </span>\n </div>\n }\n\n <!--\n TERM END \u2014 subscription lines only (golive #338), shown and not edited.\n Confirm keeps an end already stated on the line: the coverage\n runs to it, as one term or one term per type term length. Typing one here would change\n the coverage without changing the price, and nothing reviews that yet, so the field\n stays read-only until a stated length goes through approval.\n -->\n @if (IsSubscriptionLine(line)) {\n <div class=\"mjo-ol-term\">\n <span class=\"mjo-ol-term__label\">Term end</span>\n <span class=\"mjo-ol-term__value\">{{ TermEndValue(line) }}</span>\n @if (TermEndBeforeStart(line)) {\n <span class=\"mjo-ol-term__hint is-error\" role=\"alert\">\n The term end must be on or after the term start.\n </span>\n } @else if (!IsMoneyLocked) {\n <span class=\"mjo-ol-term__hint\">\n @if (TermEndFollowsType(line)) {\n One term of the subscription type.\n } @else if (KeptTermEndValue(line); as kept) {\n Confirm keeps this length from the continuation date, so the term ends {{ kept }}.\n } @else {\n Stated on this line, and confirm keeps these dates.\n }\n </span>\n }\n </div>\n\n <!-- The customer already holds this product (golive #299): ask whether this line\n extends that subscription or starts another, instead of letting the type's\n rule decide silently at confirm. Worded as a question, with the dates each\n answer gives on its button (golive #480). -->\n @if (ExistingHoldingFor(line); as holding) {\n <div class=\"mjo-ol-holding\" role=\"group\" [attr.aria-label]=\"'Existing subscription ' + holding.SubscriptionNumber\">\n <span class=\"mjo-ol-holding__text\">\n This customer already has this product on {{ holding.SubscriptionNumber }}@if (HoldingCoverageEnd(holding)) {, which runs through {{ HoldingCoverageEnd(holding) }}}.\n Is this line a renewal of that subscription, or a new one?\n </span>\n @if (CanEditServicePeriod()) {\n <div class=\"mjo-ol-holding__choices\">\n <button\n type=\"button\"\n class=\"mjo-ol-holding__choice\"\n [class.is-selected]=\"line.SubscriptionAction === 'ExtendExisting'\"\n [attr.aria-pressed]=\"line.SubscriptionAction === 'ExtendExisting'\"\n (click)=\"SetSubscriptionAction(line, 'ExtendExisting')\">\n {{ HoldingExtendLineText(line, holding).Choice }}\n </button>\n <button\n type=\"button\"\n class=\"mjo-ol-holding__choice\"\n [class.is-selected]=\"line.SubscriptionAction === 'CreateNew'\"\n [attr.aria-pressed]=\"line.SubscriptionAction === 'CreateNew'\"\n (click)=\"SetSubscriptionAction(line, 'CreateNew')\">\n {{ HoldingNewSubscriptionText(line) }}\n </button>\n </div>\n }\n <span class=\"mjo-ol-term__hint\" [class.is-error]=\"!line.SubscriptionAction\">\n @if (line.SubscriptionAction === 'CreateNew') {\n Confirm creates a new subscription for this customer, separate from\n {{ holding.SubscriptionNumber }}.\n } @else if (line.SubscriptionAction === 'ExtendExisting') {\n {{ HoldingExtendLineText(line, holding).Hint }}\n } @else {\n Not chosen. Confirm will not go ahead until you choose.\n }\n </span>\n <!-- Instalments the next term would leave behind (golive #467): confirm refuses them. -->\n @if (HoldingScheduleWarning(line, holding); as warning) {\n <span class=\"mjo-ol-term__hint is-error\" role=\"alert\">{{ warning }}</span>\n }\n </div>\n }\n }\n\n <!--\n SERVICE PERIOD \u2014 deferred lines that neither an event nor a subscription dates.\n The recognition type earns against this window, so the order cannot be confirmed\n without it.\n -->\n @if (NeedsStatedServicePeriod(line)) {\n <div class=\"mjo-ol-term\">\n <label\n class=\"mjo-ol-term__label\"\n [attr.for]=\"CanEditServicePeriod() ? 'mjo-ol-sp-start-' + line.ID : null\">\n Service period\n </label>\n @if (CanEditServicePeriod()) {\n <input\n type=\"date\"\n class=\"mjo-ol-term__input\"\n aria-label=\"Service period start\"\n [id]=\"'mjo-ol-sp-start-' + line.ID\"\n [value]=\"ServicePeriodValue(line, 'Start')\"\n (change)=\"SetServicePeriod(line, 'Start', $event)\">\n <span class=\"mjo-ol-term__label\" aria-hidden=\"true\">to</span>\n <input\n type=\"date\"\n class=\"mjo-ol-term__input\"\n aria-label=\"Service period end\"\n [value]=\"ServicePeriodValue(line, 'End')\"\n (change)=\"SetServicePeriod(line, 'End', $event)\">\n } @else {\n <span class=\"mjo-ol-term__value\">\n {{ ServicePeriodValue(line, 'Start') || '\u2014' }} to {{ ServicePeriodValue(line, 'End') || '\u2014' }}\n </span>\n }\n @if (ServicePeriodBackwards(line)) {\n <span class=\"mjo-ol-term__hint is-error\" role=\"alert\">\n End date must be on or after the start date.\n </span>\n } @else if (ServicePeriodMissing(line)) {\n <span class=\"mjo-ol-term__hint\">\n Required to confirm: revenue on this line is recognized against these dates.\n </span>\n }\n </div>\n }\n\n <!--\n EXPECTED DATES \u2014 percentage-of-completion lines (golive #455). Recognition follows\n attested progress, so the dates are optional and only record the expected window.\n -->\n @if (ShowsExpectedServicePeriod(line)) {\n <div class=\"mjo-ol-term\">\n @if (CanEditServicePeriod()) {\n <label class=\"mjo-ol-term__label\" [attr.for]=\"'mjo-ol-exp-start-' + line.ID\">Expected start</label>\n <input\n type=\"date\"\n class=\"mjo-ol-term__input\"\n [id]=\"'mjo-ol-exp-start-' + line.ID\"\n [value]=\"ServicePeriodValue(line, 'Start')\"\n (change)=\"SetServicePeriod(line, 'Start', $event)\">\n <label class=\"mjo-ol-term__label\" [attr.for]=\"'mjo-ol-exp-end-' + line.ID\">Expected end</label>\n <input\n type=\"date\"\n class=\"mjo-ol-term__input\"\n [id]=\"'mjo-ol-exp-end-' + line.ID\"\n [value]=\"ServicePeriodValue(line, 'End')\"\n (change)=\"SetServicePeriod(line, 'End', $event)\">\n } @else {\n <span class=\"mjo-ol-term__label\">Expected start</span>\n <span class=\"mjo-ol-term__value\">{{ ServicePeriodValue(line, 'Start') || '\u2014' }}</span>\n <span class=\"mjo-ol-term__label\">Expected end</span>\n <span class=\"mjo-ol-term__value\">{{ ServicePeriodValue(line, 'End') || '\u2014' }}</span>\n }\n @if (ServicePeriodBackwards(line)) {\n <span class=\"mjo-ol-term__hint is-error\" role=\"alert\">\n End date must be on or after the start date.\n </span>\n } @else if (CanEditServicePeriod()) {\n <span class=\"mjo-ol-term__hint\">\n Optional. Revenue on this line follows recorded progress, not these dates.\n </span>\n }\n </div>\n }\n\n <!--\n COVERAGE OVERLAP \u2014 another band of the same subscription family (golive #276).\n The text is the server's own confirm check (Orders.CheckCoverageOverlap), so what\n this says is what confirm will do. Checked after each save.\n -->\n @if (CoverageOverlapFor(line); as overlap) {\n <div class=\"mjo-ol-overlap\" [class.is-blocking]=\"OverlapBlocksConfirm(line)\" role=\"status\">\n <i class=\"fa-solid fa-triangle-exclamation\" aria-hidden=\"true\"></i>\n <div class=\"mjo-ol-overlap__body\">\n <span>{{ overlap.Message }}</span>\n @if (CanAcknowledgeOverlap(line)) {\n <!-- Ticking it needs the run-alongside grant and a reason (bizapps-orders#511).\n Unticking never does. Confirm checks both again on the server. -->\n <label class=\"mjo-ol-overlap__ack\">\n <input\n type=\"checkbox\"\n [checked]=\"line.AcknowledgesCoverageOverlap\"\n [disabled]=\"!EditMode || (!CanRunAlongside && !line.AcknowledgesCoverageOverlap)\"\n (change)=\"SetOverlapAcknowledged(line, $event)\">\n Run alongside the existing coverage. Both will be billed.\n </label>\n @if (!CanRunAlongside) {\n <span class=\"mjo-ol-overlap__hint\">Running alongside needs the Account Director role.</span>\n }\n @if (line.AcknowledgesCoverageOverlap) {\n <label class=\"mjo-ol-overlap__reason\" [class.is-required]=\"OverlapReasonMissing(line)\">\n <span>Reason to run alongside<em class=\"mjo-ol-override__req\" aria-hidden=\"true\">*</em></span>\n <textarea\n rows=\"2\"\n maxlength=\"1000\"\n [value]=\"line.CoverageOverlapReason ?? ''\"\n [disabled]=\"!EditMode\"\n (input)=\"SetOverlapReason(line, $event)\"\n placeholder=\"Required \u2014 why both subscriptions should be billed\"></textarea>\n </label>\n }\n }\n </div>\n </div>\n }\n\n @if (ExtensionFor(line); as ext) {\n <div class=\"mjo-ol-ext\" [class.is-open]=\"IsExtensionOpen(line)\">\n <button\n type=\"button\"\n class=\"mjo-ol-ext__toggle\"\n (click)=\"ToggleExtension(line)\"\n [attr.aria-expanded]=\"IsExtensionOpen(line)\"\n [attr.aria-controls]=\"'mjo-ol-ext-' + line.ID\">\n <i class=\"fa-solid fa-chevron-right mjo-ol-ext__chev\" aria-hidden=\"true\"></i>\n <span class=\"mjo-ol-ext__label\">{{ ExtensionLabel(line) }}</span>\n @if (!IsExtensionOpen(line)) {\n <span class=\"mjo-ol-ext__hint\">{{ ExtensionHint(line) }}</span>\n }\n </button>\n <div\n class=\"mjo-ol-ext__body\"\n [id]=\"'mjo-ol-ext-' + line.ID\"\n [attr.inert]=\"IsExtensionOpen(line) ? null : ''\"\n [attr.aria-hidden]=\"!IsExtensionOpen(line)\">\n <div class=\"mjo-ol-ext__clip\">\n <mj-entity-form-host\n [Record]=\"ext\"\n [EditMode]=\"EditMode\"\n [Config]=\"ExtensionFormConfigFor(line)\"\n (FormCreated)=\"OnExtensionFormCreated($event)\"\n (Navigate)=\"OnExtensionNavigate($event)\">\n </mj-entity-form-host>\n </div>\n </div>\n </div>\n }\n </div>\n } @empty {\n <mj-empty-state\n Size=\"compact\"\n Icon=\"fa-solid fa-cart-plus\"\n Title=\"Nothing on this order yet\"\n Message=\"Search the catalog to add the first line.\" />\n }\n\n @if (EditMode) {\n <div class=\"mj-typeahead mjo-ol-picker\" #pickerHost>\n <div class=\"mjo-search\">\n <i class=\"fa-solid fa-plus\" aria-hidden=\"true\"></i>\n <input\n [(ngModel)]=\"ProductQuery\"\n (ngModelChange)=\"OnProductQueryChange()\"\n (focus)=\"OpenPicker()\"\n (blur)=\"ClosePickerSoon()\"\n (keydown)=\"OnPickerKey($event)\"\n placeholder=\"Add product \u2014 type a name or SKU\u2026\"\n autocomplete=\"off\"\n role=\"combobox\"\n aria-label=\"Add a product\"\n [attr.aria-expanded]=\"PickerOpen\">\n <!-- mousedown is cancelled so the input keeps focus and the open list re-filters in place. -->\n <label\n class=\"mjo-ol-picker__company-only\"\n [class.is-disabled]=\"!HasSellingCompany\"\n [attr.title]=\"HasSellingCompany ? null : 'Set the order\\'s company to narrow the list to its products'\"\n (mousedown)=\"$event.preventDefault()\">\n <input\n type=\"checkbox\"\n [(ngModel)]=\"SellingCompanyOnly\"\n (ngModelChange)=\"OnSellingCompanyOnlyChange()\"\n [disabled]=\"!HasSellingCompany\">\n Only selling company products\n </label>\n </div>\n\n @if (PickerOpen) {\n <div class=\"mj-typeahead-list is-open\" [class.is-up]=\"PickerOpensUp\" role=\"listbox\">\n @for (product of PickerResults; track product.ID; let i = $index) {\n <button\n type=\"button\"\n class=\"mj-typeahead-item mjo-ol-pick\"\n [class.is-cursor]=\"i === PickerCursor\"\n role=\"option\"\n [attr.aria-selected]=\"i === PickerCursor\"\n (mousedown)=\"AddProduct(product)\">\n <span class=\"mjo-ol-pick__body\">\n <span class=\"name\">{{ product.Name }}</span>\n <span class=\"mjo-ol-pick__meta\">\n <span class=\"sub\">{{ product.SKU }} \u00B7 {{ product.TypeName }}</span>\n @if (product.CompanyName) {\n <span\n class=\"mjo-ol-pick__company\"\n [class.is-foreign]=\"IsForeignCompany(product)\"\n [attr.title]=\"IsForeignCompany(product)\n ? 'Sold by ' + product.CompanyName + ', not this order\\'s company'\n : product.CompanyName\">\n <i class=\"fa-solid fa-building\" aria-hidden=\"true\"></i>\n {{ product.CompanyName }}\n </span>\n }\n </span>\n </span>\n <span class=\"end\">\n <span class=\"mjo-ol-pick__price\">{{ product.ListPrice === null ? 'No price' : (product.ListPrice | mjoMoney) }}</span>\n <span class=\"sub\">{{ product.Taxable ? 'taxable' : 'untaxable' }}</span>\n </span>\n </button>\n } @empty {\n <div class=\"mj-typeahead-item\">\n <span class=\"muted small\">\n @if (CatalogError) { {{ CatalogError }} }\n @else if (Catalog.length === 0) { Loading catalog\u2026 }\n @else if (PickerHiddenByCompany === 0) { No product matches that. }\n @else { No product from this order's company matches that. }\n </span>\n </div>\n }\n @if (SellingCompanyOnly && PickerHiddenByCompany > 0) {\n <div class=\"mj-typeahead-item mjo-ol-pick__hidden\" role=\"status\">\n <span class=\"muted small\">\n <i class=\"fa-solid fa-circle-info\" aria-hidden=\"true\"></i>\n {{ PickerHiddenByCompany }} more from other companies. Uncheck \"Only selling company products\" to see them.\n </span>\n </div>\n }\n </div>\n }\n </div>\n }\n\n <!-- Line details. Rendered once and handed whichever line is open, rather than one per card:\n the panel is modal, so a second instance could never be visible. -->\n <mjo-order-line-details-panel\n [Line]=\"DetailsLine\"\n [ProductName]=\"DetailsLine ? (ProductFor(DetailsLine)?.Name ?? '') : ''\"\n [ProductSKU]=\"DetailsLine ? (ProductFor(DetailsLine)?.SKU ?? '') : ''\"\n [ProductType]=\"DetailsLine ? (ProductFor(DetailsLine)?.TypeName ?? '') : ''\"\n [Dimensions]=\"DimensionCatalog\"\n [StampedTags]=\"StampedTagsFor(DetailsLine)\"\n [CompanyValueIDs]=\"CompanyDimensionValueIDs\"\n [EditMode]=\"EditMode\"\n (Closed)=\"CloseDetails()\">\n </mjo-order-line-details-panel>\n</div>\n", styles: [":host { display: block; }\n\n.mjo-ol {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-2);\n}\n\n.mjo-ol-card {\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n border-radius: var(--mj-radius-md);\n padding: var(--mj-space-3);\n}\n\n.mjo-ol-card:has(.mjo-ol-ext.is-open) {\n padding-bottom: var(--mj-space-1);\n}\n\n.mjo-ol-card__top {\n display: flex;\n align-items: flex-start;\n gap: var(--mj-space-3);\n}\n\n.mjo-ol-card__id { flex: 1; min-width: 0; }\n\n.mjo-ol-card__name {\n display: inline;\n padding: 0;\n border: 0;\n background: transparent;\n font: inherit;\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-link);\n text-align: left;\n cursor: pointer;\n text-decoration: none;\n}\n\n.mjo-ol-card__name:hover { text-decoration: underline; }\n\n.mjo-ol-card__meta {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n margin-top: 2px;\n}\n\n.mjo-ol-qty {\n display: inline-flex;\n align-items: center;\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-md);\n overflow: hidden;\n background: var(--mj-bg-surface);\n flex: none;\n}\n\n.mjo-ol-qty button {\n border: 0;\n background: transparent;\n cursor: pointer;\n color: var(--mj-text-secondary);\n width: 26px;\n height: 28px;\n font-size: 11px;\n}\n\n.mjo-ol-qty button:hover:not(:disabled) {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mjo-ol-qty button:disabled {\n cursor: default;\n color: var(--mj-text-disabled);\n}\n\n.mjo-ol-qty input {\n border: 0;\n outline: 0;\n background: transparent;\n width: 46px;\n text-align: center;\n font: inherit;\n font-variant-numeric: tabular-nums;\n color: inherit;\n}\n\n.mjo-ol-qty.is-locked {\n border-color: var(--mj-border-default);\n background: transparent;\n}\n\n.mjo-ol-qty__value {\n min-width: 46px;\n padding: 0 10px;\n height: 28px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-variant-numeric: tabular-nums;\n}\n\n.mjo-ol-card__price {\n flex: none;\n min-width: 108px;\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n.mjo-ol-card__price-row {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 2px;\n height: 28px;\n}\n\n.mjo-ol-price__pencil {\n flex: none;\n color: var(--mj-text-muted);\n}\n\n.mjo-ol-price__pencil:hover {\n color: var(--mj-text-link);\n background: var(--mj-bg-surface-hover);\n}\n\n.mjo-ol-override {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-2);\n margin-top: var(--mj-space-2);\n padding: var(--mj-space-2);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface-card);\n}\n\n.mjo-ol-override__req {\n font-style: normal;\n color: var(--mj-status-error-text);\n margin-left: 2px;\n}\n\n.mjo-ol-override__actions {\n display: flex;\n gap: var(--mj-space-2);\n justify-content: flex-end;\n}\n\n.mjo-ol-override__done,\n.mjo-ol-override__reset {\n border: 0;\n background: transparent;\n cursor: pointer;\n font: inherit;\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n padding: 4px 8px;\n border-radius: var(--mj-radius-sm);\n}\n\n.mjo-ol-override__done {\n color: var(--mj-text-link);\n}\n\n.mjo-ol-override__reset {\n color: var(--mj-text-muted);\n}\n\n.mjo-ol-override__done:hover,\n.mjo-ol-override__reset:hover {\n background: var(--mj-bg-surface-hover);\n}\n\n.mjo-ol-override__done:disabled {\n color: var(--mj-text-muted);\n cursor: not-allowed;\n background: transparent;\n}\n\n.mjo-ol-card__amt {\n font-variant-numeric: tabular-nums;\n font-weight: var(--mj-font-semibold);\n font-size: var(--mj-text-sm);\n line-height: 28px;\n}\n\n.mjo-ol-overpill {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-top: 4px;\n padding: 1px 8px;\n border-radius: 999px;\n font-size: 10px;\n font-weight: 600;\n letter-spacing: 0.02em;\n color: var(--mj-status-warning-text);\n background: color-mix(in srgb, var(--mj-status-warning-text) 16%, transparent);\n}\n\n.mjo-ol-card__err {\n font-size: var(--mj-text-xs);\n color: var(--mj-status-error-text);\n margin-top: 2px;\n}\n\n.mjo-ol-card__tot {\n flex: none;\n min-width: 104px;\n height: 28px;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n text-align: right;\n font-variant-numeric: tabular-nums;\n font-weight: var(--mj-font-semibold);\n font-size: var(--mj-text-sm);\n line-height: 28px;\n}\n\n.mjo-ol-iconbtn {\n border: 0;\n background: transparent;\n color: var(--mj-text-muted);\n cursor: pointer;\n width: 28px;\n height: 28px;\n border-radius: var(--mj-radius-sm);\n}\n\n.mjo-ol-iconbtn:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-status-error);\n}\n\n.mjo-ol-card__conseq {\n display: flex;\n gap: 6px;\n flex-wrap: wrap;\n margin-top: var(--mj-space-2);\n}\n\n/* Term start \u2014 subscription lines only. One row that wraps, so the hint drops below the field on a\n narrow card rather than squeezing the date input. */\n.mjo-ol-term {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n margin-top: var(--mj-space-2);\n}\n\n.mjo-ol-term__label {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-ol-term__input {\n height: 28px;\n padding: 0 var(--mj-space-2);\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n font: inherit;\n font-size: var(--mj-text-sm);\n}\n\n/* A DEFAULT reads quieter than a stated value \u2014 the same distinction the order header draws\n between a date somebody chose and one that fell out of a rule. */\n.mjo-ol-term__input.is-default {\n border-color: var(--mj-border-default);\n color: var(--mj-text-secondary);\n}\n\n.mjo-ol-term__value {\n font-size: var(--mj-text-sm);\n color: var(--mj-text-primary);\n font-variant-numeric: tabular-nums;\n}\n\n/* A dictated date is a FACT, not a disabled input: shown in the read-mode weight in edit mode too,\n so nothing on the card suggests a control that has been switched off. */\n.mjo-ol-term__value.is-dictated {\n color: var(--mj-text-secondary);\n}\n\n.mjo-ol-term__reset {\n border: 0;\n background: transparent;\n padding: 0;\n color: var(--mj-text-link);\n font-size: var(--mj-text-xs);\n cursor: pointer;\n}\n\n.mjo-ol-term__reset:hover {\n text-decoration: underline;\n}\n\n.mjo-ol-term__hint {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-ol-term__hint.is-error {\n color: var(--mj-status-error-text);\n}\n\n.mjo-ol-card__why {\n margin-top: 6px;\n font-size: var(--mj-text-xs);\n color: var(--mj-text-secondary);\n line-height: 1.35;\n}\n\n.mjo-ol-card__desc {\n margin-top: 6px;\n font-size: var(--mj-text-sm);\n color: var(--mj-text-primary);\n line-height: 1.35;\n overflow-wrap: anywhere;\n}\n\n.mjo-ol-desc {\n display: block;\n margin-top: 8px;\n}\n.mjo-ol-desc span {\n display: block;\n margin-bottom: 4px;\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n.mjo-ol-desc__hint {\n display: block;\n margin-top: 4px;\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n line-height: 1.35;\n}\n.mjo-ol-desc textarea {\n display: block;\n width: 100%;\n box-sizing: border-box;\n resize: vertical;\n min-height: 32px;\n padding: 6px 8px;\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n font: inherit;\n}\n\n.mjo-ol-picker {\n position: relative;\n z-index: 20;\n}\n\n.mjo-ol-picker:has(.mj-typeahead-list.is-open) {\n z-index: 40;\n}\n\n.mjo-search {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-md);\n padding: 8px 10px;\n}\n\n.mjo-search i { color: var(--mj-text-muted); font-size: 12px; }\n\n.mjo-search input {\n border: 0;\n outline: 0;\n background: transparent;\n font: inherit;\n font-size: var(--mj-text-sm);\n color: inherit;\n width: 100%;\n}\n\n.mjo-ol-picker__company-only {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n flex-shrink: 0;\n white-space: nowrap;\n font-size: var(--mj-text-xs);\n color: var(--mj-text-secondary);\n cursor: pointer;\n user-select: none;\n}\n\n.mjo-search .mjo-ol-picker__company-only input {\n width: auto;\n margin: 0;\n cursor: inherit;\n}\n\n.mjo-ol-picker__company-only.is-disabled {\n color: var(--mj-text-muted);\n cursor: not-allowed;\n}\n\n.mj-typeahead-list {\n display: none;\n position: absolute;\n left: 0;\n right: 0;\n top: calc(100% + 4px);\n max-height: 240px;\n overflow: auto;\n background: var(--mj-bg-surface-elevated);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n box-shadow: var(--mj-shadow-md, 0 8px 24px rgba(0, 0, 0, 0.18));\n z-index: 30;\n}\n\n.mj-typeahead-list.is-open { display: block; }\n\n.mj-typeahead-list.is-up {\n top: auto;\n bottom: calc(100% + 4px);\n}\n\n.mj-typeahead-item {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3);\n width: 100%;\n padding: 8px 12px;\n border: 0;\n border-bottom: 1px solid var(--mj-border-subtle);\n background: transparent;\n color: inherit;\n text-align: left;\n cursor: pointer;\n font: inherit;\n}\n\n.mj-typeahead-item:last-child { border-bottom: 0; }\n\n.mj-typeahead-item:hover,\n.mj-typeahead-item.is-cursor {\n background: var(--mj-bg-surface-hover);\n}\n\n.mjo-ol-pick__body {\n display: flex;\n flex-direction: column;\n gap: 1px;\n min-width: 0;\n}\n\n.mjo-ol-pick .name { font-size: 13px; font-weight: var(--mj-font-semibold); }\n.mjo-ol-pick .sub { font-size: 11.5px; color: var(--mj-text-muted); }\n\n/*\n COMPANY IS ITS OWN ELEMENT, not the third item in a muted \"SKU \u00B7 type \u00B7 company\" run.\n Two similarly named products from different companies are exactly what this picker has to let\n someone tell apart before they pick, and a company set in the same muted grey as everything\n else, in third position, is not something anyone reads at speed.\n*/\n.mjo-ol-pick__meta {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n min-width: 0;\n}\n\n.mjo-ol-pick__company {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n flex: 0 0 auto;\n font-size: 11px;\n line-height: 1.2;\n padding: 2px 6px;\n border: 1px solid var(--mj-border-subtle);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n}\n\n.mjo-ol-pick__company i { font-size: 9.5px; color: var(--mj-text-muted); }\n\n/* Another company's product \u2014 offered on purpose (BCC sells SoundPost), so it is marked, not hidden. */\n.mjo-ol-pick__company.is-foreign i { color: var(--mj-status-info); }\n.mjo-ol-pick__company.is-foreign {\n color: var(--mj-text-primary);\n border-color: var(--mj-border-default);\n}\n.mjo-ol-pick .end {\n margin-left: auto;\n text-align: right;\n display: flex;\n flex-direction: column;\n gap: 1px;\n flex: 0 0 auto;\n}\n.mjo-ol-pick__price {\n font-variant-numeric: tabular-nums;\n font-weight: var(--mj-font-semibold);\n}\n\n/* Coverage overlap with another band (golive #276). Warning colour while confirm would refuse the\n line; muted once it will proceed, because then it is information, not a problem. */\n.mjo-ol-overlap {\n display: flex;\n gap: var(--mj-space-2);\n margin-top: var(--mj-space-2);\n padding: var(--mj-space-2) var(--mj-space-3);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n font-size: var(--mj-text-xs);\n line-height: 1.35;\n color: var(--mj-text-secondary);\n}\n.mjo-ol-overlap.is-blocking {\n border-color: var(--mj-status-warning-border);\n background: var(--mj-status-warning-bg);\n color: var(--mj-status-warning-text);\n}\n.mjo-ol-overlap__body {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-1);\n}\n.mjo-ol-overlap__ack {\n display: inline-flex;\n align-items: center;\n gap: var(--mj-space-1);\n font-weight: var(--mj-font-semibold);\n cursor: pointer;\n}\n.mjo-ol-overlap__hint {\n font-style: italic;\n}\n.mjo-ol-overlap__reason span {\n display: block;\n margin-bottom: 4px;\n}\n.mjo-ol-overlap__reason textarea {\n display: block;\n width: 100%;\n box-sizing: border-box;\n resize: vertical;\n min-height: 48px;\n padding: 6px 8px;\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n font: inherit;\n}\n.mjo-ol-overlap__reason.is-required textarea {\n border-color: var(--mj-status-error-text);\n}\n.mjo-ol-overlap-err {\n margin-bottom: var(--mj-space-2);\n font-size: var(--mj-text-xs);\n color: var(--mj-status-error-text);\n}\n\n.mjo-ol-seat-note {\n margin-bottom: var(--mj-space-2);\n font-size: var(--mj-text-xs);\n color: var(--mj-text-secondary);\n}\n\n.mjo-ol-ext-err {\n font-size: var(--mj-text-xs);\n color: var(--mj-status-error-text);\n}\n\n.mjo-ol-ext {\n margin-top: var(--mj-space-2);\n padding-top: var(--mj-space-1);\n border-top: 1px dashed var(--mj-border-subtle);\n}\n\n.mjo-ol-ext__toggle {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n width: 100%;\n padding: var(--mj-space-1) 0;\n border: 0;\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: left;\n cursor: pointer;\n border-radius: var(--mj-radius-sm);\n}\n\n.mjo-ol-ext__toggle:hover {\n color: var(--mj-text-primary);\n}\n\n.mjo-ol-ext__toggle:focus-visible {\n outline: 2px solid var(--mj-border-focus);\n outline-offset: 2px;\n}\n\n.mjo-ol-ext__chev {\n flex: none;\n width: 12px;\n font-size: 10px;\n color: var(--mj-text-muted);\n transition: transform 160ms ease;\n}\n\n.mjo-ol-ext.is-open .mjo-ol-ext__chev {\n transform: rotate(90deg);\n}\n\n.mjo-ol-ext__label {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-secondary);\n letter-spacing: 0.01em;\n}\n\n.mjo-ol-ext__hint {\n margin-left: auto;\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mjo-ol-ext__body {\n display: grid;\n grid-template-rows: 0fr;\n transition: grid-template-rows 180ms ease;\n}\n\n.mjo-ol-ext.is-open .mjo-ol-ext__body {\n grid-template-rows: 1fr;\n}\n\n.mjo-ol-ext__clip {\n overflow: hidden;\n min-height: 0;\n}\n\n/* Flatten the embedded extension form so its fields sit in the line card. */\n.mjo-ol-ext ::ng-deep mj-record-form-container,\n.mjo-ol-ext ::ng-deep .mj-record-form-container,\n.mjo-ol-ext ::ng-deep .mj-forms-container {\n display: block;\n padding: 0;\n margin: 0;\n border: 0;\n background: transparent;\n box-shadow: none;\n}\n\n.mjo-ol-ext ::ng-deep .mj-forms-toolbar,\n.mjo-ol-ext ::ng-deep mj-form-toolbar {\n display: none;\n}\n\n.mjo-ol-ext ::ng-deep .mj-forms-panel {\n border: 0;\n background: transparent;\n box-shadow: none;\n margin: 0;\n padding: 0;\n}\n\n.mjo-ol-ext ::ng-deep mj-collapsible-panel + mj-collapsible-panel .mj-forms-panel {\n margin-top: calc(-1 * var(--mj-space-1));\n}\n\n.mjo-ol-ext ::ng-deep .mj-forms-panel-header {\n display: none;\n}\n\n.mjo-ol-ext ::ng-deep .mj-forms-panel-body,\n.mjo-ol-ext ::ng-deep .mj-forms-panel-content {\n max-height: none;\n overflow: visible;\n padding: 0;\n margin: 0;\n}\n\n.mjo-ol-ext ::ng-deep mj-form-field:last-child,\n.mjo-ol-ext ::ng-deep .mj-form-field:last-child {\n margin-bottom: 0;\n}\n\n@media (max-width: 720px) {\n .mjo-ol-card__top { flex-wrap: wrap; }\n .mjo-ol-card__price, .mjo-ol-card__tot { width: auto; }\n}\n\n/* \u2500\u2500 DISCOUNT \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n Its own bordered block inside the price editor, because a discount and a price\n override are different economics and the report that produced this control said\n so: presenting them as one thing is what made the discount concept unreachable.\n The rule above the block is the separator \u2014 the two never read as one form. */\n.mjo-ol-discount {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-2);\n padding-top: var(--mj-space-2);\n border-top: 1px solid var(--mj-border-default);\n}\n\n.mjo-ol-discount__head {\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n}\n\n.mjo-ol-discount__title {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-ol-discount__cap {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-ol-discount__row {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n}\n\n/* Two buttons that behave as one control, so they are drawn as one. */\n.mjo-ol-discount__mode {\n display: inline-flex;\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-sm);\n overflow: hidden;\n}\n\n.mjo-ol-discount__mode button {\n border: 0;\n background: var(--mj-bg-surface);\n color: var(--mj-text-muted);\n font: inherit;\n font-size: var(--mj-text-xs);\n padding: 0 10px;\n height: 28px;\n cursor: pointer;\n}\n\n.mjo-ol-discount__mode button + button {\n border-left: 1px solid var(--mj-border-strong);\n}\n\n.mjo-ol-discount__mode button.is-on {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n font-weight: var(--mj-font-semibold);\n}\n\n.mjo-ol-discount__val {\n width: 96px;\n height: 28px;\n box-sizing: border-box;\n padding: 0 8px;\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface);\n color: inherit;\n font: inherit;\n font-size: var(--mj-text-xs);\n font-variant-numeric: tabular-nums;\n text-align: right;\n}\n\n.mjo-ol-discount__calc {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n font-variant-numeric: tabular-nums;\n}\n\n.mjo-ol-discount__reason span {\n display: block;\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n margin-bottom: 4px;\n}\n\n.mjo-ol-discount__reason textarea {\n display: block;\n width: 100%;\n box-sizing: border-box;\n resize: vertical;\n min-height: 48px;\n padding: 6px 8px;\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface);\n color: inherit;\n font: inherit;\n font-size: var(--mj-text-xs);\n}\n\n.mjo-ol-discount__reason.is-required textarea {\n border-color: var(--mj-status-error-text);\n}\n\n.mjo-ol-discount__err {\n font-size: var(--mj-text-xs);\n color: var(--mj-status-error-text);\n}\n\n.mjo-ol-discount__note {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n/* An over-cap discount is saved held for approval (golive #328): a status, not an error. */\n.mjo-ol-discount__approval {\n display: flex;\n align-items: flex-start;\n gap: var(--mj-space-2);\n font-size: var(--mj-text-xs);\n color: var(--mj-status-warning-text);\n}\n\n.mjo-ol-discount__badge {\n flex: none;\n padding: 0 var(--mj-space-2);\n border: 1px solid var(--mj-status-warning-border);\n border-radius: var(--mj-radius-md);\n background: var(--mj-status-warning-bg);\n font-weight: 600;\n white-space: nowrap;\n}\n\n/* Beside a price typed as zero: how to give a line away instead (golive #328). */\n.mjo-ol-override__hint {\n display: flex;\n align-items: baseline;\n gap: var(--mj-space-2);\n font-size: var(--mj-text-xs);\n color: var(--mj-status-info-text);\n}\n\n.mjo-ol-discount__staged {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-2);\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-ol-discount__clear {\n border: 1px solid var(--mj-border-strong);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface);\n color: inherit;\n font: inherit;\n font-size: var(--mj-text-xs);\n height: 24px;\n padding: 0 10px;\n cursor: pointer;\n}\n\n/* The discount's own badge on the line card. Deliberately NOT the override pill's\n warning colour: giving away value on purpose is not a caution. */\n.mjo-ol-discpill {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-top: 4px;\n padding: 1px 8px;\n border-radius: 999px;\n font-size: 10px;\n font-weight: 600;\n letter-spacing: 0.02em;\n font-variant-numeric: tabular-nums;\n color: var(--mj-status-success-text);\n background: color-mix(in srgb, var(--mj-status-success-text) 16%, transparent);\n}\n\n/* The customer already holds this product (golive #299). */\n.mjo-ol-holding {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-2);\n margin-top: var(--mj-space-2);\n padding: var(--mj-space-2) var(--mj-space-3);\n border: 1px solid var(--mj-status-warning-border);\n border-radius: var(--mj-radius-md);\n background: var(--mj-status-warning-bg);\n font-size: var(--mj-text-sm);\n color: var(--mj-text-primary);\n}\n\n.mjo-ol-holding__choices {\n display: flex;\n flex-wrap: wrap;\n gap: var(--mj-space-2);\n}\n\n.mjo-ol-holding__choice {\n padding: 4px 10px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-full);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n font: inherit;\n cursor: pointer;\n}\n\n.mjo-ol-holding__choice.is-selected {\n border-color: var(--mj-brand-primary);\n color: var(--mj-brand-primary);\n font-weight: var(--mj-font-semibold);\n}\n"] }]
|
|
2793
2852
|
}], null, { Provider: [{
|
|
2794
2853
|
type: Input
|
|
2795
2854
|
}], EditMode: [{
|
|
@@ -2806,5 +2865,5 @@ export class MJOOrderLinesEditorComponent {
|
|
|
2806
2865
|
type: ViewChild,
|
|
2807
2866
|
args: ['pickerHost']
|
|
2808
2867
|
}] }); })();
|
|
2809
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MJOOrderLinesEditorComponent, { className: "MJOOrderLinesEditorComponent", filePath: "lib/custom/OrderHeader/order-lines-editor.component.ts", lineNumber:
|
|
2868
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MJOOrderLinesEditorComponent, { className: "MJOOrderLinesEditorComponent", filePath: "lib/custom/OrderHeader/order-lines-editor.component.ts", lineNumber: 171 }); })();
|
|
2810
2869
|
//# sourceMappingURL=order-lines-editor.component.js.map
|