@mj-biz-apps/orders-ng 5.43.0 → 5.44.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.
Files changed (100) hide show
  1. package/dist/lib/custom/EventOrderLine/event-order-line-form.component.js +6 -5
  2. package/dist/lib/custom/EventOrderLine/event-order-line-form.component.js.map +1 -1
  3. package/dist/lib/custom/OrderHeader/order-header-form.component.d.ts +4 -0
  4. package/dist/lib/custom/OrderHeader/order-header-form.component.d.ts.map +1 -1
  5. package/dist/lib/custom/OrderHeader/order-header-form.component.js +330 -297
  6. package/dist/lib/custom/OrderHeader/order-header-form.component.js.map +1 -1
  7. package/dist/lib/custom/OrderHeader/order-lines-editor.component.d.ts +6 -0
  8. package/dist/lib/custom/OrderHeader/order-lines-editor.component.d.ts.map +1 -1
  9. package/dist/lib/custom/OrderHeader/order-lines-editor.component.js +130 -46
  10. package/dist/lib/custom/OrderHeader/order-lines-editor.component.js.map +1 -1
  11. package/dist/lib/custom/PaymentHeader/change-payment-date.component.d.ts +30 -0
  12. package/dist/lib/custom/PaymentHeader/change-payment-date.component.d.ts.map +1 -0
  13. package/dist/lib/custom/PaymentHeader/change-payment-date.component.js +156 -0
  14. package/dist/lib/custom/PaymentHeader/change-payment-date.component.js.map +1 -0
  15. package/dist/lib/custom/PaymentHeader/order-payment-dates.component.d.ts +26 -0
  16. package/dist/lib/custom/PaymentHeader/order-payment-dates.component.d.ts.map +1 -0
  17. package/dist/lib/custom/PaymentHeader/order-payment-dates.component.js +149 -0
  18. package/dist/lib/custom/PaymentHeader/order-payment-dates.component.js.map +1 -0
  19. package/dist/lib/custom/PaymentHeader/payment-header-form.component.d.ts +2 -0
  20. package/dist/lib/custom/PaymentHeader/payment-header-form.component.d.ts.map +1 -1
  21. package/dist/lib/custom/PaymentHeader/payment-header-form.component.js +398 -378
  22. package/dist/lib/custom/PaymentHeader/payment-header-form.component.js.map +1 -1
  23. package/dist/lib/custom/Product/product-save-guard-form.component.js +74 -72
  24. package/dist/lib/custom/Product/product-save-guard-form.component.js.map +1 -1
  25. package/dist/lib/custom/Product/widgets/product-accounting-widget.component.js +16 -9
  26. package/dist/lib/custom/Product/widgets/product-accounting-widget.component.js.map +1 -1
  27. package/dist/lib/custom/Product/widgets/product-effective-gl-accounts.component.d.ts +54 -0
  28. package/dist/lib/custom/Product/widgets/product-effective-gl-accounts.component.d.ts.map +1 -0
  29. package/dist/lib/custom/Product/widgets/product-effective-gl-accounts.component.js +254 -0
  30. package/dist/lib/custom/Product/widgets/product-effective-gl-accounts.component.js.map +1 -0
  31. package/dist/lib/custom/Product/widgets/product-gl-links.component.d.ts +7 -4
  32. package/dist/lib/custom/Product/widgets/product-gl-links.component.d.ts.map +1 -1
  33. package/dist/lib/custom/Product/widgets/product-gl-links.component.js +14 -5
  34. package/dist/lib/custom/Product/widgets/product-gl-links.component.js.map +1 -1
  35. package/dist/lib/custom/Product/widgets/product-pricing-widget.component.d.ts +7 -0
  36. package/dist/lib/custom/Product/widgets/product-pricing-widget.component.d.ts.map +1 -1
  37. package/dist/lib/custom/Product/widgets/product-pricing-widget.component.js +54 -32
  38. package/dist/lib/custom/Product/widgets/product-pricing-widget.component.js.map +1 -1
  39. package/dist/lib/custom/custom-forms.module.d.ts +23 -20
  40. package/dist/lib/custom/custom-forms.module.d.ts.map +1 -1
  41. package/dist/lib/custom/custom-forms.module.js +17 -1
  42. package/dist/lib/custom/custom-forms.module.js.map +1 -1
  43. package/dist/lib/data/orders-queries.d.ts +35 -3
  44. package/dist/lib/data/orders-queries.d.ts.map +1 -1
  45. package/dist/lib/data/orders-queries.js +56 -5
  46. package/dist/lib/data/orders-queries.js.map +1 -1
  47. package/dist/lib/form-panels/catalog-overviews.panels.js +8 -8
  48. package/dist/lib/form-panels/catalog-overviews.panels.js.map +1 -1
  49. package/dist/lib/form-panels/commercial-overviews.panels.js +5 -5
  50. package/dist/lib/form-panels/document-forms.module.d.ts +20 -19
  51. package/dist/lib/form-panels/document-forms.module.d.ts.map +1 -1
  52. package/dist/lib/form-panels/document-forms.module.js +8 -1
  53. package/dist/lib/form-panels/document-forms.module.js.map +1 -1
  54. package/dist/lib/form-panels/document-hero.component.js +2 -2
  55. package/dist/lib/form-panels/document-overviews.panels.js +7 -7
  56. package/dist/lib/form-panels/lookup-headers.panels.js +10 -10
  57. package/dist/lib/form-panels/order-access-overrides.panel.js +2 -2
  58. package/dist/lib/form-panels/overview-cards.component.js +2 -2
  59. package/dist/lib/form-panels/payment-header.panel.js +2 -2
  60. package/dist/lib/form-panels/price-list-header.panel.js +2 -2
  61. package/dist/lib/form-panels/product-header.panel.d.ts +37 -10
  62. package/dist/lib/form-panels/product-header.panel.d.ts.map +1 -1
  63. package/dist/lib/form-panels/product-header.panel.js +253 -59
  64. package/dist/lib/form-panels/product-header.panel.js.map +1 -1
  65. package/dist/lib/form-panels/product-readiness.d.ts +34 -0
  66. package/dist/lib/form-panels/product-readiness.d.ts.map +1 -0
  67. package/dist/lib/form-panels/product-readiness.js +34 -0
  68. package/dist/lib/form-panels/product-readiness.js.map +1 -0
  69. package/dist/lib/form-panels/product-rev-rec-field.component.d.ts +29 -0
  70. package/dist/lib/form-panels/product-rev-rec-field.component.d.ts.map +1 -0
  71. package/dist/lib/form-panels/product-rev-rec-field.component.js +115 -0
  72. package/dist/lib/form-panels/product-rev-rec-field.component.js.map +1 -0
  73. package/dist/lib/form-panels/product-widget.panels.d.ts +12 -0
  74. package/dist/lib/form-panels/product-widget.panels.d.ts.map +1 -1
  75. package/dist/lib/form-panels/product-widget.panels.js +165 -75
  76. package/dist/lib/form-panels/product-widget.panels.js.map +1 -1
  77. package/dist/lib/form-panels/promotion-header.panel.js +2 -2
  78. package/dist/lib/form-panels/subscription-header.panel.js +2 -2
  79. package/dist/lib/form-panels/subscription-revrec.panel.js +2 -2
  80. package/dist/lib/form-panels/subscription-term-header.panel.js +2 -2
  81. package/dist/lib/form-panels/subscription-term-revrec.panel.js +2 -2
  82. package/dist/lib/form-panels/subscription-terms.panel.js +2 -2
  83. package/dist/lib/generated/Entities/mjBizAppsOrdersEventProduct/mjbizappsorderseventproduct.form.component.js +8 -6
  84. package/dist/lib/generated/Entities/mjBizAppsOrdersEventProduct/mjbizappsorderseventproduct.form.component.js.map +1 -1
  85. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderHeader/mjbizappsordersorderheader.form.component.js +107 -105
  86. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderHeader/mjbizappsordersorderheader.form.component.js.map +1 -1
  87. package/dist/lib/generated/Entities/mjBizAppsOrdersProduct/mjbizappsordersproduct.form.component.js +74 -72
  88. package/dist/lib/generated/Entities/mjBizAppsOrdersProduct/mjbizappsordersproduct.form.component.js.map +1 -1
  89. package/dist/lib/pages/receivables/external-invoicing-queue.page.d.ts.map +1 -1
  90. package/dist/lib/pages/receivables/external-invoicing-queue.page.js +2 -1
  91. package/dist/lib/pages/receivables/external-invoicing-queue.page.js.map +1 -1
  92. package/dist/lib/pages/receivables/progress.page.d.ts +10 -7
  93. package/dist/lib/pages/receivables/progress.page.d.ts.map +1 -1
  94. package/dist/lib/pages/receivables/progress.page.js +20 -25
  95. package/dist/lib/pages/receivables/progress.page.js.map +1 -1
  96. package/dist/lib/panels/product-lookup-names.d.ts +29 -0
  97. package/dist/lib/panels/product-lookup-names.d.ts.map +1 -1
  98. package/dist/lib/panels/product-lookup-names.js +58 -2
  99. package/dist/lib/panels/product-lookup-names.js.map +1 -1
  100. package/package.json +7 -7
@@ -623,20 +623,89 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_33_Template(rf, ctx) { i
623
623
  i0.ɵɵadvance(2);
624
624
  i0.ɵɵconditional(ctx_r0.ServicePeriodBackwards(line_r3) ? 5 : ctx_r0.ServicePeriodMissing(line_r3) ? 6 : -1);
625
625
  } }
626
- function MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_5_Conditional_3_Template(rf, ctx) { if (rf & 1) {
626
+ function MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_1_Template(rf, ctx) { if (rf & 1) {
627
+ const _r18 = i0.ɵɵgetCurrentView();
628
+ i0.ɵɵelementStart(0, "label", 66);
629
+ i0.ɵɵtext(1, "Expected start");
630
+ i0.ɵɵelementEnd();
631
+ i0.ɵɵelementStart(2, "input", 70);
632
+ i0.ɵɵlistener("change", function MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_1_Template_input_change_2_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)); });
633
+ i0.ɵɵelementEnd();
634
+ i0.ɵɵelementStart(3, "label", 66);
635
+ i0.ɵɵtext(4, "Expected end");
636
+ i0.ɵɵelementEnd();
637
+ i0.ɵɵelementStart(5, "input", 70);
638
+ i0.ɵɵlistener("change", function MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_1_Template_input_change_5_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)); });
639
+ i0.ɵɵelementEnd();
640
+ } if (rf & 2) {
641
+ const line_r3 = i0.ɵɵnextContext(2).$implicit;
642
+ const ctx_r0 = i0.ɵɵnextContext();
643
+ i0.ɵɵattribute("for", "mjo-ol-exp-start-" + line_r3.ID);
644
+ i0.ɵɵadvance(2);
645
+ i0.ɵɵproperty("id", "mjo-ol-exp-start-" + line_r3.ID)("value", ctx_r0.ServicePeriodValue(line_r3, "Start"));
646
+ i0.ɵɵadvance();
647
+ i0.ɵɵattribute("for", "mjo-ol-exp-end-" + line_r3.ID);
648
+ i0.ɵɵadvance(2);
649
+ i0.ɵɵproperty("id", "mjo-ol-exp-end-" + line_r3.ID)("value", ctx_r0.ServicePeriodValue(line_r3, "End"));
650
+ } }
651
+ function MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_2_Template(rf, ctx) { if (rf & 1) {
652
+ i0.ɵɵelementStart(0, "span", 66);
653
+ i0.ɵɵtext(1, "Expected start");
654
+ i0.ɵɵelementEnd();
655
+ i0.ɵɵelementStart(2, "span", 68);
656
+ i0.ɵɵtext(3);
657
+ i0.ɵɵelementEnd();
658
+ i0.ɵɵelementStart(4, "span", 66);
659
+ i0.ɵɵtext(5, "Expected end");
660
+ i0.ɵɵelementEnd();
661
+ i0.ɵɵelementStart(6, "span", 68);
662
+ i0.ɵɵtext(7);
663
+ i0.ɵɵelementEnd();
664
+ } if (rf & 2) {
665
+ const line_r3 = i0.ɵɵnextContext(2).$implicit;
666
+ const ctx_r0 = i0.ɵɵnextContext();
667
+ i0.ɵɵadvance(3);
668
+ i0.ɵɵtextInterpolate(ctx_r0.ServicePeriodValue(line_r3, "Start") || "\u2014");
669
+ i0.ɵɵadvance(4);
670
+ i0.ɵɵtextInterpolate(ctx_r0.ServicePeriodValue(line_r3, "End") || "\u2014");
671
+ } }
672
+ function MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_3_Template(rf, ctx) { if (rf & 1) {
673
+ i0.ɵɵelementStart(0, "span", 73);
674
+ i0.ɵɵtext(1, " End date must be on or after the start date. ");
675
+ i0.ɵɵelementEnd();
676
+ } }
677
+ function MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_4_Template(rf, ctx) { if (rf & 1) {
678
+ i0.ɵɵelementStart(0, "span", 69);
679
+ i0.ɵɵtext(1, " Optional. Revenue on this line follows recorded progress, not these dates. ");
680
+ i0.ɵɵelementEnd();
681
+ } }
682
+ function MJOOrderLinesEditorComponent_For_4_Conditional_34_Template(rf, ctx) { if (rf & 1) {
683
+ i0.ɵɵelementStart(0, "div", 29);
684
+ i0.ɵɵconditionalCreate(1, MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_1_Template, 6, 6)(2, MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_2_Template, 8, 2);
685
+ i0.ɵɵconditionalCreate(3, MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_3_Template, 2, 0, "span", 73)(4, MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_4_Template, 2, 0, "span", 69);
686
+ i0.ɵɵelementEnd();
687
+ } if (rf & 2) {
688
+ const line_r3 = i0.ɵɵnextContext().$implicit;
689
+ const ctx_r0 = i0.ɵɵnextContext();
690
+ i0.ɵɵadvance();
691
+ i0.ɵɵconditional(ctx_r0.CanEditServicePeriod() ? 1 : 2);
692
+ i0.ɵɵadvance(2);
693
+ i0.ɵɵconditional(ctx_r0.ServicePeriodBackwards(line_r3) ? 3 : ctx_r0.CanEditServicePeriod() ? 4 : -1);
694
+ } }
695
+ function MJOOrderLinesEditorComponent_For_4_Conditional_35_Conditional_5_Conditional_3_Template(rf, ctx) { if (rf & 1) {
627
696
  i0.ɵɵelementStart(0, "span", 86);
628
697
  i0.ɵɵtext(1, "Running alongside needs the Account Director role.");
629
698
  i0.ɵɵelementEnd();
630
699
  } }
631
- function MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_5_Conditional_4_Template(rf, ctx) { if (rf & 1) {
632
- const _r19 = i0.ɵɵgetCurrentView();
700
+ function MJOOrderLinesEditorComponent_For_4_Conditional_35_Conditional_5_Conditional_4_Template(rf, ctx) { if (rf & 1) {
701
+ const _r20 = i0.ɵɵgetCurrentView();
633
702
  i0.ɵɵelementStart(0, "label", 88)(1, "span");
634
703
  i0.ɵɵtext(2, "Reason to run alongside");
635
704
  i0.ɵɵelementStart(3, "em", 55);
636
705
  i0.ɵɵtext(4, "*");
637
706
  i0.ɵɵelementEnd()();
638
707
  i0.ɵɵelementStart(5, "textarea", 89);
639
- i0.ɵɵlistener("input", function MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_5_Conditional_4_Template_textarea_input_5_listener($event) { i0.ɵɵrestoreView(_r19); const line_r3 = i0.ɵɵnextContext(3).$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.SetOverlapReason(line_r3, $event)); });
708
+ i0.ɵɵlistener("input", function MJOOrderLinesEditorComponent_For_4_Conditional_35_Conditional_5_Conditional_4_Template_textarea_input_5_listener($event) { i0.ɵɵrestoreView(_r20); const line_r3 = i0.ɵɵnextContext(3).$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.SetOverlapReason(line_r3, $event)); });
640
709
  i0.ɵɵelementEnd()();
641
710
  } if (rf & 2) {
642
711
  const line_r3 = i0.ɵɵnextContext(3).$implicit;
@@ -645,15 +714,15 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_5_Conditi
645
714
  i0.ɵɵadvance(5);
646
715
  i0.ɵɵproperty("value", line_r3.CoverageOverlapReason ?? "")("disabled", !ctx_r0.EditMode);
647
716
  } }
648
- function MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_5_Template(rf, ctx) { if (rf & 1) {
649
- const _r18 = i0.ɵɵgetCurrentView();
717
+ function MJOOrderLinesEditorComponent_For_4_Conditional_35_Conditional_5_Template(rf, ctx) { if (rf & 1) {
718
+ const _r19 = i0.ɵɵgetCurrentView();
650
719
  i0.ɵɵelementStart(0, "label", 84)(1, "input", 85);
651
- i0.ɵɵlistener("change", function MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_5_Template_input_change_1_listener($event) { i0.ɵɵrestoreView(_r18); const line_r3 = i0.ɵɵnextContext(2).$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.SetOverlapAcknowledged(line_r3, $event)); });
720
+ i0.ɵɵlistener("change", function MJOOrderLinesEditorComponent_For_4_Conditional_35_Conditional_5_Template_input_change_1_listener($event) { i0.ɵɵrestoreView(_r19); const line_r3 = i0.ɵɵnextContext(2).$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.SetOverlapAcknowledged(line_r3, $event)); });
652
721
  i0.ɵɵelementEnd();
653
722
  i0.ɵɵtext(2, " Run alongside the existing coverage. Both will be billed. ");
654
723
  i0.ɵɵelementEnd();
655
- i0.ɵɵconditionalCreate(3, MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_5_Conditional_3_Template, 2, 0, "span", 86);
656
- i0.ɵɵconditionalCreate(4, MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_5_Conditional_4_Template, 6, 4, "label", 87);
724
+ i0.ɵɵconditionalCreate(3, MJOOrderLinesEditorComponent_For_4_Conditional_35_Conditional_5_Conditional_3_Template, 2, 0, "span", 86);
725
+ i0.ɵɵconditionalCreate(4, MJOOrderLinesEditorComponent_For_4_Conditional_35_Conditional_5_Conditional_4_Template, 6, 4, "label", 87);
657
726
  } if (rf & 2) {
658
727
  const line_r3 = i0.ɵɵnextContext(2).$implicit;
659
728
  const ctx_r0 = i0.ɵɵnextContext();
@@ -664,13 +733,13 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_5_Templat
664
733
  i0.ɵɵadvance();
665
734
  i0.ɵɵconditional(line_r3.AcknowledgesCoverageOverlap ? 4 : -1);
666
735
  } }
667
- function MJOOrderLinesEditorComponent_For_4_Conditional_34_Template(rf, ctx) { if (rf & 1) {
736
+ function MJOOrderLinesEditorComponent_For_4_Conditional_35_Template(rf, ctx) { if (rf & 1) {
668
737
  i0.ɵɵelementStart(0, "div", 81);
669
738
  i0.ɵɵelement(1, "i", 82);
670
739
  i0.ɵɵelementStart(2, "div", 83)(3, "span");
671
740
  i0.ɵɵtext(4);
672
741
  i0.ɵɵelementEnd();
673
- i0.ɵɵconditionalCreate(5, MJOOrderLinesEditorComponent_For_4_Conditional_34_Conditional_5_Template, 5, 4);
742
+ i0.ɵɵconditionalCreate(5, MJOOrderLinesEditorComponent_For_4_Conditional_35_Conditional_5_Template, 5, 4);
674
743
  i0.ɵɵelementEnd()();
675
744
  } if (rf & 2) {
676
745
  const line_r3 = i0.ɵɵnextContext().$implicit;
@@ -681,7 +750,7 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_34_Template(rf, ctx) { i
681
750
  i0.ɵɵadvance();
682
751
  i0.ɵɵconditional(ctx_r0.CanAcknowledgeOverlap(line_r3) ? 5 : -1);
683
752
  } }
684
- function MJOOrderLinesEditorComponent_For_4_Conditional_35_Conditional_5_Template(rf, ctx) { if (rf & 1) {
753
+ function MJOOrderLinesEditorComponent_For_4_Conditional_36_Conditional_5_Template(rf, ctx) { if (rf & 1) {
685
754
  i0.ɵɵelementStart(0, "span", 94);
686
755
  i0.ɵɵtext(1);
687
756
  i0.ɵɵelementEnd();
@@ -691,18 +760,18 @@ function MJOOrderLinesEditorComponent_For_4_Conditional_35_Conditional_5_Templat
691
760
  i0.ɵɵadvance();
692
761
  i0.ɵɵtextInterpolate(ctx_r0.ExtensionHint(line_r3));
693
762
  } }
694
- function MJOOrderLinesEditorComponent_For_4_Conditional_35_Template(rf, ctx) { if (rf & 1) {
695
- const _r20 = i0.ɵɵgetCurrentView();
763
+ function MJOOrderLinesEditorComponent_For_4_Conditional_36_Template(rf, ctx) { if (rf & 1) {
764
+ const _r21 = i0.ɵɵgetCurrentView();
696
765
  i0.ɵɵelementStart(0, "div", 90)(1, "button", 91);
697
- i0.ɵɵlistener("click", function MJOOrderLinesEditorComponent_For_4_Conditional_35_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r20); const line_r3 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.ToggleExtension(line_r3)); });
766
+ i0.ɵɵlistener("click", function MJOOrderLinesEditorComponent_For_4_Conditional_36_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r21); const line_r3 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.ToggleExtension(line_r3)); });
698
767
  i0.ɵɵelement(2, "i", 92);
699
768
  i0.ɵɵelementStart(3, "span", 93);
700
769
  i0.ɵɵtext(4);
701
770
  i0.ɵɵelementEnd();
702
- i0.ɵɵconditionalCreate(5, MJOOrderLinesEditorComponent_For_4_Conditional_35_Conditional_5_Template, 2, 1, "span", 94);
771
+ i0.ɵɵconditionalCreate(5, MJOOrderLinesEditorComponent_For_4_Conditional_36_Conditional_5_Template, 2, 1, "span", 94);
703
772
  i0.ɵɵelementEnd();
704
773
  i0.ɵɵelementStart(6, "div", 95)(7, "div", 96)(8, "mj-entity-form-host", 97);
705
- i0.ɵɵlistener("FormCreated", function MJOOrderLinesEditorComponent_For_4_Conditional_35_Template_mj_entity_form_host_FormCreated_8_listener($event) { i0.ɵɵrestoreView(_r20); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.OnExtensionFormCreated($event)); })("Navigate", function MJOOrderLinesEditorComponent_For_4_Conditional_35_Template_mj_entity_form_host_Navigate_8_listener($event) { i0.ɵɵrestoreView(_r20); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.OnExtensionNavigate($event)); });
774
+ i0.ɵɵlistener("FormCreated", function MJOOrderLinesEditorComponent_For_4_Conditional_36_Template_mj_entity_form_host_FormCreated_8_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.OnExtensionFormCreated($event)); })("Navigate", function MJOOrderLinesEditorComponent_For_4_Conditional_36_Template_mj_entity_form_host_Navigate_8_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.OnExtensionNavigate($event)); });
706
775
  i0.ɵɵelementEnd()()()();
707
776
  } if (rf & 2) {
708
777
  const line_r3 = i0.ɵɵnextContext().$implicit;
@@ -761,8 +830,9 @@ function MJOOrderLinesEditorComponent_For_4_Template(rf, ctx) { if (rf & 1) {
761
830
  i0.ɵɵconditionalCreate(31, MJOOrderLinesEditorComponent_For_4_Conditional_31_Template, 11, 3, "div", 29);
762
831
  i0.ɵɵconditionalCreate(32, MJOOrderLinesEditorComponent_For_4_Conditional_32_Template, 8, 3);
763
832
  i0.ɵɵconditionalCreate(33, MJOOrderLinesEditorComponent_For_4_Conditional_33_Template, 7, 3, "div", 29);
764
- i0.ɵɵconditionalCreate(34, MJOOrderLinesEditorComponent_For_4_Conditional_34_Template, 6, 4, "div", 30);
765
- i0.ɵɵconditionalCreate(35, MJOOrderLinesEditorComponent_For_4_Conditional_35_Template, 9, 12, "div", 31);
833
+ i0.ɵɵconditionalCreate(34, MJOOrderLinesEditorComponent_For_4_Conditional_34_Template, 5, 2, "div", 29);
834
+ i0.ɵɵconditionalCreate(35, MJOOrderLinesEditorComponent_For_4_Conditional_35_Template, 6, 4, "div", 30);
835
+ i0.ɵɵconditionalCreate(36, MJOOrderLinesEditorComponent_For_4_Conditional_36_Template, 9, 12, "div", 31);
766
836
  i0.ɵɵelementEnd();
767
837
  } if (rf & 2) {
768
838
  let tmp_10_0;
@@ -773,8 +843,8 @@ function MJOOrderLinesEditorComponent_For_4_Template(rf, ctx) { if (rf & 1) {
773
843
  let tmp_22_0;
774
844
  let tmp_25_0;
775
845
  let tmp_26_0;
776
- let tmp_30_0;
777
846
  let tmp_31_0;
847
+ let tmp_32_0;
778
848
  const line_r3 = ctx.$implicit;
779
849
  const ctx_r0 = i0.ɵɵnextContext();
780
850
  i0.ɵɵadvance(4);
@@ -788,7 +858,7 @@ function MJOOrderLinesEditorComponent_For_4_Template(rf, ctx) { if (rf & 1) {
788
858
  i0.ɵɵadvance();
789
859
  i0.ɵɵconditional(ctx_r0.EditMode && !ctx_r0.QuantityCappedToOne(line_r3) ? 9 : 10);
790
860
  i0.ɵɵadvance(5);
791
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(15, 23, ctx_r0.DisplayUnit(line_r3)));
861
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(15, 24, ctx_r0.DisplayUnit(line_r3)));
792
862
  i0.ɵɵadvance(2);
793
863
  i0.ɵɵconditional(ctx_r0.CanOverride || ctx_r0.CanDiscount || ctx_r0.CanPickBand(line_r3) ? 16 : -1);
794
864
  i0.ɵɵadvance();
@@ -798,7 +868,7 @@ function MJOOrderLinesEditorComponent_For_4_Template(rf, ctx) { if (rf & 1) {
798
868
  i0.ɵɵadvance();
799
869
  i0.ɵɵconditional((tmp_19_0 = (tmp_19_0 = ctx_r0.PricedLine(line_r3)) == null ? null : tmp_19_0.Error) ? 20 : -1, tmp_19_0);
800
870
  i0.ɵɵadvance(2);
801
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(23, 25, (tmp_20_0 = ctx_r0.PricedLine(line_r3)) == null ? null : tmp_20_0.NetAmount));
871
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(23, 26, (tmp_20_0 = ctx_r0.PricedLine(line_r3)) == null ? null : tmp_20_0.NetAmount));
802
872
  i0.ɵɵadvance(2);
803
873
  i0.ɵɵattribute("title", ctx_r0.DimensionSummary(line_r3))("aria-label", "Details for " + (((tmp_22_0 = ctx_r0.ProductFor(line_r3)) == null ? null : tmp_22_0.Name) ?? "line"));
804
874
  i0.ɵɵadvance(2);
@@ -816,9 +886,11 @@ function MJOOrderLinesEditorComponent_For_4_Template(rf, ctx) { if (rf & 1) {
816
886
  i0.ɵɵadvance();
817
887
  i0.ɵɵconditional(ctx_r0.NeedsStatedServicePeriod(line_r3) ? 33 : -1);
818
888
  i0.ɵɵadvance();
819
- i0.ɵɵconditional((tmp_30_0 = ctx_r0.CoverageOverlapFor(line_r3)) ? 34 : -1, tmp_30_0);
889
+ i0.ɵɵconditional(ctx_r0.ShowsExpectedServicePeriod(line_r3) ? 34 : -1);
890
+ i0.ɵɵadvance();
891
+ i0.ɵɵconditional((tmp_31_0 = ctx_r0.CoverageOverlapFor(line_r3)) ? 35 : -1, tmp_31_0);
820
892
  i0.ɵɵadvance();
821
- i0.ɵɵconditional((tmp_31_0 = ctx_r0.ExtensionFor(line_r3)) ? 35 : -1, tmp_31_0);
893
+ i0.ɵɵconditional((tmp_32_0 = ctx_r0.ExtensionFor(line_r3)) ? 36 : -1, tmp_32_0);
822
894
  } }
823
895
  function MJOOrderLinesEditorComponent_ForEmpty_5_Template(rf, ctx) { if (rf & 1) {
824
896
  i0.ɵɵelement(0, "mj-empty-state", 5);
@@ -829,17 +901,17 @@ function MJOOrderLinesEditorComponent_Conditional_6_Conditional_5_For_2_Conditio
829
901
  i0.ɵɵtext(2);
830
902
  i0.ɵɵelementEnd();
831
903
  } if (rf & 2) {
832
- const product_r23 = i0.ɵɵnextContext().$implicit;
904
+ const product_r24 = i0.ɵɵnextContext().$implicit;
833
905
  const ctx_r0 = i0.ɵɵnextContext(3);
834
- i0.ɵɵclassProp("is-foreign", ctx_r0.IsForeignCompany(product_r23));
835
- i0.ɵɵattribute("title", ctx_r0.IsForeignCompany(product_r23) ? "Sold by " + product_r23.CompanyName + ", not this order's company" : product_r23.CompanyName);
906
+ i0.ɵɵclassProp("is-foreign", ctx_r0.IsForeignCompany(product_r24));
907
+ i0.ɵɵattribute("title", ctx_r0.IsForeignCompany(product_r24) ? "Sold by " + product_r24.CompanyName + ", not this order's company" : product_r24.CompanyName);
836
908
  i0.ɵɵadvance(2);
837
- i0.ɵɵtextInterpolate1(" ", product_r23.CompanyName, " ");
909
+ i0.ɵɵtextInterpolate1(" ", product_r24.CompanyName, " ");
838
910
  } }
839
911
  function MJOOrderLinesEditorComponent_Conditional_6_Conditional_5_For_2_Template(rf, ctx) { if (rf & 1) {
840
- const _r22 = i0.ɵɵgetCurrentView();
912
+ const _r23 = i0.ɵɵgetCurrentView();
841
913
  i0.ɵɵelementStart(0, "button", 105);
842
- i0.ɵɵlistener("mousedown", function MJOOrderLinesEditorComponent_Conditional_6_Conditional_5_For_2_Template_button_mousedown_0_listener() { const product_r23 = i0.ɵɵrestoreView(_r22).$implicit; const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.AddProduct(product_r23)); });
914
+ i0.ɵɵlistener("mousedown", function MJOOrderLinesEditorComponent_Conditional_6_Conditional_5_For_2_Template_button_mousedown_0_listener() { const product_r24 = i0.ɵɵrestoreView(_r23).$implicit; const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.AddProduct(product_r24)); });
843
915
  i0.ɵɵelementStart(1, "span", 106)(2, "span", 107);
844
916
  i0.ɵɵtext(3);
845
917
  i0.ɵɵelementEnd();
@@ -856,21 +928,21 @@ function MJOOrderLinesEditorComponent_Conditional_6_Conditional_5_For_2_Template
856
928
  i0.ɵɵtext(13);
857
929
  i0.ɵɵelementEnd()()();
858
930
  } if (rf & 2) {
859
- const product_r23 = ctx.$implicit;
860
- const ɵ$index_370_r24 = ctx.$index;
931
+ const product_r24 = ctx.$implicit;
932
+ const ɵ$index_405_r25 = ctx.$index;
861
933
  const ctx_r0 = i0.ɵɵnextContext(3);
862
- i0.ɵɵclassProp("is-cursor", ɵ$index_370_r24 === ctx_r0.PickerCursor);
863
- i0.ɵɵattribute("aria-selected", ɵ$index_370_r24 === ctx_r0.PickerCursor);
934
+ i0.ɵɵclassProp("is-cursor", ɵ$index_405_r25 === ctx_r0.PickerCursor);
935
+ i0.ɵɵattribute("aria-selected", ɵ$index_405_r25 === ctx_r0.PickerCursor);
864
936
  i0.ɵɵadvance(3);
865
- i0.ɵɵtextInterpolate(product_r23.Name);
937
+ i0.ɵɵtextInterpolate(product_r24.Name);
866
938
  i0.ɵɵadvance(3);
867
- i0.ɵɵtextInterpolate2("", product_r23.SKU, " \u00B7 ", product_r23.TypeName);
939
+ i0.ɵɵtextInterpolate2("", product_r24.SKU, " \u00B7 ", product_r24.TypeName);
868
940
  i0.ɵɵadvance();
869
- i0.ɵɵconditional(product_r23.CompanyName ? 7 : -1);
941
+ i0.ɵɵconditional(product_r24.CompanyName ? 7 : -1);
870
942
  i0.ɵɵadvance(3);
871
- i0.ɵɵtextInterpolate(product_r23.ListPrice === null ? "No price" : i0.ɵɵpipeBind1(11, 9, product_r23.ListPrice));
943
+ i0.ɵɵtextInterpolate(product_r24.ListPrice === null ? "No price" : i0.ɵɵpipeBind1(11, 9, product_r24.ListPrice));
872
944
  i0.ɵɵadvance(3);
873
- i0.ɵɵtextInterpolate(product_r23.Taxable ? "taxable" : "untaxable");
945
+ i0.ɵɵtextInterpolate(product_r24.Taxable ? "taxable" : "untaxable");
874
946
  } }
875
947
  function MJOOrderLinesEditorComponent_Conditional_6_Conditional_5_ForEmpty_3_Conditional_2_Template(rf, ctx) { if (rf & 1) {
876
948
  i0.ɵɵtext(0);
@@ -904,12 +976,12 @@ function MJOOrderLinesEditorComponent_Conditional_6_Conditional_5_Template(rf, c
904
976
  i0.ɵɵrepeater(ctx_r0.PickerResults);
905
977
  } }
906
978
  function MJOOrderLinesEditorComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
907
- const _r21 = i0.ɵɵgetCurrentView();
979
+ const _r22 = i0.ɵɵgetCurrentView();
908
980
  i0.ɵɵelementStart(0, "div", 6, 0)(2, "div", 98);
909
981
  i0.ɵɵelement(3, "i", 99);
910
982
  i0.ɵɵelementStart(4, "input", 100);
911
- i0.ɵɵtwoWayListener("ngModelChange", function MJOOrderLinesEditorComponent_Conditional_6_Template_input_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r0 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r0.ProductQuery, $event) || (ctx_r0.ProductQuery = $event); return i0.ɵɵresetView($event); });
912
- i0.ɵɵlistener("ngModelChange", function MJOOrderLinesEditorComponent_Conditional_6_Template_input_ngModelChange_4_listener() { i0.ɵɵrestoreView(_r21); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.OnProductQueryChange()); })("focus", function MJOOrderLinesEditorComponent_Conditional_6_Template_input_focus_4_listener() { i0.ɵɵrestoreView(_r21); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.OpenPicker()); })("blur", function MJOOrderLinesEditorComponent_Conditional_6_Template_input_blur_4_listener() { i0.ɵɵrestoreView(_r21); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.ClosePickerSoon()); })("keydown", function MJOOrderLinesEditorComponent_Conditional_6_Template_input_keydown_4_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.OnPickerKey($event)); });
983
+ i0.ɵɵtwoWayListener("ngModelChange", function MJOOrderLinesEditorComponent_Conditional_6_Template_input_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(_r22); const ctx_r0 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r0.ProductQuery, $event) || (ctx_r0.ProductQuery = $event); return i0.ɵɵresetView($event); });
984
+ i0.ɵɵlistener("ngModelChange", function MJOOrderLinesEditorComponent_Conditional_6_Template_input_ngModelChange_4_listener() { i0.ɵɵrestoreView(_r22); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.OnProductQueryChange()); })("focus", function MJOOrderLinesEditorComponent_Conditional_6_Template_input_focus_4_listener() { i0.ɵɵrestoreView(_r22); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.OpenPicker()); })("blur", function MJOOrderLinesEditorComponent_Conditional_6_Template_input_blur_4_listener() { i0.ɵɵrestoreView(_r22); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.ClosePickerSoon()); })("keydown", function MJOOrderLinesEditorComponent_Conditional_6_Template_input_keydown_4_listener($event) { i0.ɵɵrestoreView(_r22); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.OnPickerKey($event)); });
913
985
  i0.ɵɵelementEnd()();
914
986
  i0.ɵɵconditionalCreate(5, MJOOrderLinesEditorComponent_Conditional_6_Conditional_5_Template, 4, 3, "div", 101);
915
987
  i0.ɵɵelementEnd();
@@ -1020,7 +1092,7 @@ export class MJOOrderLinesEditorComponent {
1020
1092
  if (this.pickerCache?.Key !== key) {
1021
1093
  this.pickerCache = {
1022
1094
  Key: key,
1023
- Results: RankCatalogMatches(this.Catalog, query, companyID || null).slice(0, PICKER_RESULT_LIMIT),
1095
+ Results: RankCatalogMatches(this.Catalog.filter((p) => !p.NotSellableNew), query, companyID || null).slice(0, PICKER_RESULT_LIMIT),
1024
1096
  };
1025
1097
  }
1026
1098
  return this.pickerCache.Results;
@@ -1541,6 +1613,16 @@ export class MJOOrderLinesEditorComponent {
1541
1613
  NeedsStatedServicePeriod(line) {
1542
1614
  return OrdersEngine.Instance.ServicePeriodSource(line.ProductID) === 'Line';
1543
1615
  }
1616
+ /**
1617
+ * A percentage-of-completion line: its dates are optional and only say when the work is expected
1618
+ * to run, since recognition follows attested progress (bc-aidp-next-golive#455). Shown when they
1619
+ * can be typed, or when a booked line carries them.
1620
+ */
1621
+ ShowsExpectedServicePeriod(line) {
1622
+ if (this.NeedsStatedServicePeriod(line) || !OrdersEngine.Instance.IsProgressMeasured(line.ProductID))
1623
+ return false;
1624
+ return this.CanEditServicePeriod() || !!line.ServicePeriodStart || !!line.ServicePeriodEnd;
1625
+ }
1544
1626
  /** The order is booked, so its lines' dates are the settled ones. */
1545
1627
  get IsMoneyLocked() {
1546
1628
  return !!this._order?.MoneyLocked;
@@ -2364,7 +2446,9 @@ export class MJOOrderLinesEditorComponent {
2364
2446
  }
2365
2447
  async loadCatalog() {
2366
2448
  try {
2367
- this.Catalog = await GetCatalogOptions(this.metadata.CurrentUser);
2449
+ // Keeps products not sold new: lines already on the order still need their name, subscription
2450
+ // flag and quantity cap from here (`ProductFor`). `PickerResults` leaves them out.
2451
+ this.Catalog = await GetCatalogOptions(this.metadata.CurrentUser, true);
2368
2452
  this.CatalogError = null;
2369
2453
  }
2370
2454
  catch (error) {
@@ -2494,7 +2578,7 @@ export class MJOOrderLinesEditorComponent {
2494
2578
  i0.ɵɵelementStart(0, "div", 1);
2495
2579
  i0.ɵɵconditionalCreate(1, MJOOrderLinesEditorComponent_Conditional_1_Template, 2, 1, "div", 2);
2496
2580
  i0.ɵɵconditionalCreate(2, MJOOrderLinesEditorComponent_Conditional_2_Template, 2, 1, "div", 3);
2497
- i0.ɵɵrepeaterCreate(3, MJOOrderLinesEditorComponent_For_4_Template, 36, 27, "div", 4, _forTrack0, false, MJOOrderLinesEditorComponent_ForEmpty_5_Template, 1, 0, "mj-empty-state", 5);
2581
+ i0.ɵɵrepeaterCreate(3, MJOOrderLinesEditorComponent_For_4_Template, 37, 28, "div", 4, _forTrack0, false, MJOOrderLinesEditorComponent_ForEmpty_5_Template, 1, 0, "mj-empty-state", 5);
2498
2582
  i0.ɵɵconditionalCreate(6, MJOOrderLinesEditorComponent_Conditional_6_Template, 6, 3, "div", 6);
2499
2583
  i0.ɵɵelementStart(7, "mjo-order-line-details-panel", 7);
2500
2584
  i0.ɵɵlistener("Closed", function MJOOrderLinesEditorComponent_Template_mjo_order_line_details_panel_Closed_7_listener() { return ctx.CloseDetails(); });
@@ -2533,7 +2617,7 @@ export class MJOOrderLinesEditorComponent {
2533
2617
  MJOMoneyPipe,
2534
2618
  MJOOrderLineDetailsPanelComponent,
2535
2619
  MJEmptyStateComponent,
2536
- ], 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\" (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. -->\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 The customer already holds {{ holding.SubscriptionNumber }} for this product\n @if (HoldingCoverageEnd(holding)) { (covered through {{ HoldingCoverageEnd(holding) }}) }.\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 New subscription (keeps this line's dates)\n </button>\n </div>\n }\n <span class=\"mjo-ol-term__hint\" [class.is-error]=\"!line.SubscriptionAction\">\n @if (line.SubscriptionAction === 'CreateNew') {\n Confirm starts a separate subscription on this line's service period.\n } @else if (line.SubscriptionAction === 'ExtendExisting') {\n {{ HoldingExtendLineText(line, holding).Hint }}\n } @else {\n Not chosen. The subscription type's rule will decide at confirm, and it may move this\n line's dates.\n }\n </span>\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 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 </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 { No product matches that. }\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.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"] }]
2620
+ ], 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\" (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. -->\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 The customer already holds {{ holding.SubscriptionNumber }} for this product\n @if (HoldingCoverageEnd(holding)) { (covered through {{ HoldingCoverageEnd(holding) }}) }.\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 New subscription (keeps this line's dates)\n </button>\n </div>\n }\n <span class=\"mjo-ol-term__hint\" [class.is-error]=\"!line.SubscriptionAction\">\n @if (line.SubscriptionAction === 'CreateNew') {\n Confirm starts a separate subscription on this line's service period.\n } @else if (line.SubscriptionAction === 'ExtendExisting') {\n {{ HoldingExtendLineText(line, holding).Hint }}\n } @else {\n Not chosen. The subscription type's rule will decide at confirm, and it may move this\n line's dates.\n }\n </span>\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 </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 { No product matches that. }\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.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"] }]
2537
2621
  }], null, { Provider: [{
2538
2622
  type: Input
2539
2623
  }], EditMode: [{