@hmcts/ccd-case-ui-toolkit 7.4.26-4923 → 7.4.26-4923-rc2

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.
@@ -27,9 +27,11 @@ import * as i1$4 from 'ngx-markdown';
27
27
  import { MarkdownModule } from 'ngx-markdown';
28
28
  import * as i6 from '@angular/material/autocomplete';
29
29
  import { MatAutocompleteTrigger, MatAutocompleteModule } from '@angular/material/autocomplete';
30
+ import * as i3 from '@hmcts/ccpay-web-component';
31
+ import { PaymentLibModule } from '@hmcts/ccpay-web-component';
30
32
  import { v4 } from 'uuid';
31
33
  import * as i4$1 from '@angular/platform-browser';
32
- import * as i3 from 'ngx-editor';
34
+ import * as i3$1 from 'ngx-editor';
33
35
  import { Editor, NgxEditorModule } from 'ngx-editor';
34
36
  import { nodes, marks } from 'ngx-editor/schema';
35
37
  import { setBlockType } from 'prosemirror-commands';
@@ -59,7 +61,7 @@ import * as i10 from '@angular/material/tabs';
59
61
  import { MatTabsModule } from '@angular/material/tabs';
60
62
  import { compressToUTF16, decompressFromUTF16 } from 'lz-string';
61
63
 
62
- const _c0$1d = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
64
+ const _c0$1b = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
63
65
  const _c1$w = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
64
66
  function FooterComponent_div_2_Template(rf, ctx) { if (rf & 1) {
65
67
  i0.ɵɵelementStart(0, "div", 3)(1, "div", 4);
@@ -137,7 +139,7 @@ class FooterComponent {
137
139
  workhours;
138
140
  static ɵfac = function FooterComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FooterComponent)(); };
139
141
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, standalone: false, ngContentSelectors: _c1$w, decls: 4, vars: 4, consts: [["id", "footer", "role", "footer", 1, "group", "js-footer"], [1, "footer-wrapper"], ["class", "footer-meta", 4, "ngIf"], [1, "footer-meta"], [1, "footer-meta-inner"], [1, "open-government-licence"], [1, "logo"], ["href", "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/", "rel", "license"], [1, "copyright"], ["href", "https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/"], [1, "title"], [1, "footer-text"], [1, "email"], [3, "href"], [1, "phone"], [1, "work-hours"]], template: function FooterComponent_Template(rf, ctx) { if (rf & 1) {
140
- i0.ɵɵprojectionDef(_c0$1d);
142
+ i0.ɵɵprojectionDef(_c0$1b);
141
143
  i0.ɵɵelementStart(0, "footer", 0)(1, "div", 1);
142
144
  i0.ɵɵtemplate(2, FooterComponent_div_2_Template, 20, 15, "div", 2)(3, FooterComponent_div_3_Template, 20, 16, "div", 2);
143
145
  i0.ɵɵelementEnd()();
@@ -778,7 +780,7 @@ class ProfileService {
778
780
  type: Injectable
779
781
  }], () => [{ type: HttpService }, { type: AbstractAppConfig }], null); })();
780
782
 
781
- const _c0$1c = [[["", "headerNavigation", ""]]];
783
+ const _c0$1a = [[["", "headerNavigation", ""]]];
782
784
  const _c1$v = ["[headerNavigation]"];
783
785
  function HeaderBarComponent_div_3_Template(rf, ctx) { if (rf & 1) {
784
786
  i0.ɵɵelementStart(0, "div")(1, "a", 12);
@@ -829,7 +831,7 @@ class HeaderBarComponent {
829
831
  }
830
832
  static ɵfac = function HeaderBarComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || HeaderBarComponent)(i0.ɵɵdirectiveInject(ProfileService, 8), i0.ɵɵdirectiveInject(ProfileNotifier, 8)); };
831
833
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, standalone: false, ngContentSelectors: _c1$v, decls: 17, vars: 14, consts: [["role", "banner", "id", "global-header", 1, "with-proposition"], [1, "header-wrapper"], [1, "header-global"], [4, "ngIf"], ["class", "global-header", 4, "ngIf"], [1, "header-proposition"], [1, "content"], ["href", "#proposition-links", 1, "js-header-toggle", "menu"], ["id", "proposition-menu", 4, "ngIf"], [1, "proposition-right"], ["id", "user-name"], ["type", "button", "id", "sign-out", 1, "govuk-js-link", 3, "click"], ["href", "https://www.gov.uk", "title", "Go to the GOV.UK homepage", "id", "logo", 1, "content", 2, "margin-left", "0px"], ["src", "/img/gov.uk_logotype_crown_invert_trans.png?0.23.0", "width", "36", "height", "32", "alt", ""], [1, "global-header"], [1, "title"], ["id", "proposition-menu"], [1, "title-solicitor"], ["id", "proposition-name"]], template: function HeaderBarComponent_Template(rf, ctx) { if (rf & 1) {
832
- i0.ɵɵprojectionDef(_c0$1c);
834
+ i0.ɵɵprojectionDef(_c0$1a);
833
835
  i0.ɵɵelementStart(0, "header", 0)(1, "div", 1)(2, "div", 2);
834
836
  i0.ɵɵtemplate(3, HeaderBarComponent_div_3_Template, 4, 1, "div", 3)(4, HeaderBarComponent_div_4_Template, 5, 3, "div", 4);
835
837
  i0.ɵɵelementEnd();
@@ -883,13 +885,13 @@ class HeaderBarComponent {
883
885
  }] }); })();
884
886
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(HeaderBarComponent, { className: "HeaderBarComponent", filePath: "lib/components/header/header-bar/header-bar.component.ts", lineNumber: 11 }); })();
885
887
 
886
- const _c0$1b = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
888
+ const _c0$19 = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
887
889
  const _c1$u = ["[leftNavLinks]", "[rightNavLinks]"];
888
890
  class NavigationComponent {
889
891
  isSolicitor;
890
892
  static ɵfac = function NavigationComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || NavigationComponent)(); };
891
893
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, standalone: false, ngContentSelectors: _c1$u, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) { if (rf & 1) {
892
- i0.ɵɵprojectionDef(_c0$1b);
894
+ i0.ɵɵprojectionDef(_c0$19);
893
895
  i0.ɵɵelementStart(0, "div")(1, "nav", 0);
894
896
  i0.ɵɵprojection(2);
895
897
  i0.ɵɵprojection(3, 1);
@@ -1007,12 +1009,12 @@ class HeadersModule {
1007
1009
  }], null, null); })();
1008
1010
  (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(HeadersModule, { declarations: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent], imports: [CommonModule, RouterModule, i1.RpxTranslationModule], exports: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent] }); })();
1009
1011
 
1010
- const _c0$1a = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
1012
+ const _c0$18 = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
1011
1013
  const _c1$t = ["[topBody]", "[leftBody]", "[rightBody]"];
1012
1014
  class BodyComponent {
1013
1015
  static ɵfac = function BodyComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BodyComponent)(); };
1014
1016
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], standalone: false, ngContentSelectors: _c1$t, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) { if (rf & 1) {
1015
- i0.ɵɵprojectionDef(_c0$1a);
1017
+ i0.ɵɵprojectionDef(_c0$18);
1016
1018
  i0.ɵɵelementStart(0, "div", 0);
1017
1019
  i0.ɵɵprojection(1);
1018
1020
  i0.ɵɵprojection(2, 1);
@@ -1026,7 +1028,7 @@ class BodyComponent {
1026
1028
  }], null, null); })();
1027
1029
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BodyComponent, { className: "BodyComponent", filePath: "lib/components/body/body.component.ts", lineNumber: 10 }); })();
1028
1030
 
1029
- const _c0$19 = a0 => ({ "govuk-input--error": a0 });
1031
+ const _c0$17 = a0 => ({ "govuk-input--error": a0 });
1030
1032
  function DateInputComponent_div_19_Template(rf, ctx) { if (rf & 1) {
1031
1033
  const _r5 = i0.ɵɵgetCurrentView();
1032
1034
  i0.ɵɵelementStart(0, "div", 15)(1, "span", 8);
@@ -1043,7 +1045,7 @@ function DateInputComponent_div_19_Template(rf, ctx) { if (rf & 1) {
1043
1045
  i0.ɵɵadvance();
1044
1046
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 7, "Hour"));
1045
1047
  i0.ɵɵadvance(2);
1046
- i0.ɵɵproperty("id", ctx_r6.hourId())("name", ctx_r6.hourId())("value", ctx_r6.displayHour)("ngClass", i0.ɵɵpureFunction1(9, _c0$19, ctx_r6.isInvalid));
1048
+ i0.ɵɵproperty("id", ctx_r6.hourId())("name", ctx_r6.hourId())("value", ctx_r6.displayHour)("ngClass", i0.ɵɵpureFunction1(9, _c0$17, ctx_r6.isInvalid));
1047
1049
  i0.ɵɵattribute("aria-labelledby", "hour-label-" + ctx_r6.hourId());
1048
1050
  } }
1049
1051
  function DateInputComponent_div_20_Template(rf, ctx) { if (rf & 1) {
@@ -1062,7 +1064,7 @@ function DateInputComponent_div_20_Template(rf, ctx) { if (rf & 1) {
1062
1064
  i0.ɵɵadvance();
1063
1065
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 7, "Minute"));
1064
1066
  i0.ɵɵadvance(2);
1065
- i0.ɵɵproperty("id", ctx_r6.minuteId())("name", ctx_r6.minuteId())("value", ctx_r6.displayMinute)("ngClass", i0.ɵɵpureFunction1(9, _c0$19, ctx_r6.isInvalid));
1067
+ i0.ɵɵproperty("id", ctx_r6.minuteId())("name", ctx_r6.minuteId())("value", ctx_r6.displayMinute)("ngClass", i0.ɵɵpureFunction1(9, _c0$17, ctx_r6.isInvalid));
1066
1068
  i0.ɵɵattribute("aria-labelledby", "minute-label-" + ctx_r6.minuteId());
1067
1069
  } }
1068
1070
  function DateInputComponent_div_21_Template(rf, ctx) { if (rf & 1) {
@@ -1081,7 +1083,7 @@ function DateInputComponent_div_21_Template(rf, ctx) { if (rf & 1) {
1081
1083
  i0.ɵɵadvance();
1082
1084
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 7, "Second"));
1083
1085
  i0.ɵɵadvance(2);
1084
- i0.ɵɵproperty("id", ctx_r6.secondId())("name", ctx_r6.secondId())("value", ctx_r6.displaySecond)("ngClass", i0.ɵɵpureFunction1(9, _c0$19, ctx_r6.isInvalid));
1086
+ i0.ɵɵproperty("id", ctx_r6.secondId())("name", ctx_r6.secondId())("value", ctx_r6.displaySecond)("ngClass", i0.ɵɵpureFunction1(9, _c0$17, ctx_r6.isInvalid));
1085
1087
  i0.ɵɵattribute("aria-labelledby", "second-label-" + ctx_r6.secondId());
1086
1088
  } }
1087
1089
  class DateInputComponent {
@@ -1317,21 +1319,21 @@ class DateInputComponent {
1317
1319
  i0.ɵɵadvance();
1318
1320
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 24, "Day"));
1319
1321
  i0.ɵɵadvance(2);
1320
- i0.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0.ɵɵpureFunction1(30, _c0$19, ctx.isInvalid));
1322
+ i0.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0.ɵɵpureFunction1(30, _c0$17, ctx.isInvalid));
1321
1323
  i0.ɵɵattribute("aria-labelledby", "day-label-" + ctx.dayId());
1322
1324
  i0.ɵɵadvance(3);
1323
1325
  i0.ɵɵattribute("id", "month-label-" + ctx.monthId());
1324
1326
  i0.ɵɵadvance();
1325
1327
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 26, "Month"));
1326
1328
  i0.ɵɵadvance(2);
1327
- i0.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0.ɵɵpureFunction1(32, _c0$19, ctx.isInvalid));
1329
+ i0.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0.ɵɵpureFunction1(32, _c0$17, ctx.isInvalid));
1328
1330
  i0.ɵɵattribute("aria-labelledby", "month-label-" + ctx.monthId());
1329
1331
  i0.ɵɵadvance(3);
1330
1332
  i0.ɵɵattribute("id", "year-label-" + ctx.yearId());
1331
1333
  i0.ɵɵadvance();
1332
1334
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(16, 28, "Year"));
1333
1335
  i0.ɵɵadvance(2);
1334
- i0.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0.ɵɵpureFunction1(34, _c0$19, ctx.isInvalid));
1336
+ i0.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0.ɵɵpureFunction1(34, _c0$17, ctx.isInvalid));
1335
1337
  i0.ɵɵattribute("aria-labelledby", "year-label-" + ctx.yearId());
1336
1338
  i0.ɵɵadvance(2);
1337
1339
  i0.ɵɵproperty("ngIf", ctx.isDateTime);
@@ -1368,7 +1370,7 @@ class DateInputComponent {
1368
1370
  }] }); })();
1369
1371
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DateInputComponent, { className: "DateInputComponent", filePath: "lib/components/form/date-input/date-input.component.ts", lineNumber: 21 }); })();
1370
1372
 
1371
- const _c0$18 = ["*"];
1373
+ const _c0$16 = ["*"];
1372
1374
  function AlertComponent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
1373
1375
  i0.ɵɵelementContainerStart(0);
1374
1376
  i0.ɵɵnamespaceSVG();
@@ -1418,7 +1420,7 @@ class AlertComponent {
1418
1420
  showIcon = true;
1419
1421
  alertMessageType = AlertMessageType;
1420
1422
  static ɵfac = function AlertComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AlertComponent)(); };
1421
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, standalone: false, ngContentSelectors: _c0$18, decls: 11, vars: 12, consts: [[1, "hmcts-banner"], [3, "ngSwitch"], [4, "ngSwitchCase"], [1, "hmcts-banner__message"], [1, "hmcts-banner__assistive"], ["fill", "currentColor", "role", "presentation", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 25", "height", "25", "width", "25", 1, "hmcts-banner__icon"], ["d", "M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z"], ["d", "M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z"], ["d", "M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z"]], template: function AlertComponent_Template(rf, ctx) { if (rf & 1) {
1423
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, standalone: false, ngContentSelectors: _c0$16, decls: 11, vars: 12, consts: [[1, "hmcts-banner"], [3, "ngSwitch"], [4, "ngSwitchCase"], [1, "hmcts-banner__message"], [1, "hmcts-banner__assistive"], ["fill", "currentColor", "role", "presentation", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 25", "height", "25", "width", "25", 1, "hmcts-banner__icon"], ["d", "M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z"], ["d", "M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z"], ["d", "M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z"]], template: function AlertComponent_Template(rf, ctx) { if (rf & 1) {
1422
1424
  i0.ɵɵprojectionDef();
1423
1425
  i0.ɵɵelementStart(0, "div", 0);
1424
1426
  i0.ɵɵelementContainerStart(1, 1);
@@ -1632,14 +1634,14 @@ class NotificationBannerComponent {
1632
1634
  }] }); })();
1633
1635
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(NotificationBannerComponent, { className: "NotificationBannerComponent", filePath: "lib/components/banners/notification-banner/notification-banner.component.ts", lineNumber: 11 }); })();
1634
1636
 
1635
- const _c0$17 = ["*"];
1637
+ const _c0$15 = ["*"];
1636
1638
  const _c1$s = a0 => ({ "js-hidden": a0 });
1637
1639
  class TabComponent {
1638
1640
  id;
1639
1641
  title;
1640
1642
  selected;
1641
1643
  static ɵfac = function TabComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TabComponent)(); };
1642
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, standalone: false, ngContentSelectors: _c0$17, decls: 2, vars: 5, consts: [["role", "tabpanel", 1, "tabs-panel", 3, "id", "ngClass"]], template: function TabComponent_Template(rf, ctx) { if (rf & 1) {
1644
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, standalone: false, ngContentSelectors: _c0$15, decls: 2, vars: 5, consts: [["role", "tabpanel", 1, "tabs-panel", 3, "id", "ngClass"]], template: function TabComponent_Template(rf, ctx) { if (rf & 1) {
1643
1645
  i0.ɵɵprojectionDef();
1644
1646
  i0.ɵɵelementStart(0, "div", 0);
1645
1647
  i0.ɵɵprojection(1);
@@ -1661,7 +1663,7 @@ class TabComponent {
1661
1663
  }] }); })();
1662
1664
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TabComponent, { className: "TabComponent", filePath: "lib/components/tabs/tab.component.ts", lineNumber: 11 }); })();
1663
1665
 
1664
- const _c0$16 = ["tab"];
1666
+ const _c0$14 = ["tab"];
1665
1667
  const _c1$r = ["*"];
1666
1668
  const _c2$5 = () => ["."];
1667
1669
  const _c3$1 = a0 => ({ "tabs-toggle-selected": a0 });
@@ -1708,7 +1710,7 @@ class TabsComponent {
1708
1710
  let _t;
1709
1711
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.panels = _t);
1710
1712
  } }, viewQuery: function TabsComponent_Query(rf, ctx) { if (rf & 1) {
1711
- i0.ɵɵviewQuery(_c0$16, 5);
1713
+ i0.ɵɵviewQuery(_c0$14, 5);
1712
1714
  } if (rf & 2) {
1713
1715
  let _t;
1714
1716
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabs = _t);
@@ -1767,7 +1769,7 @@ class TabsModule {
1767
1769
  RouterModule, i1.RpxTranslationModule], exports: [TabsComponent,
1768
1770
  TabComponent] }); })();
1769
1771
 
1770
- const _c0$15 = (a0, a1) => ({ caseLocked: a0, someoneViewing: a1 });
1772
+ const _c0$13 = (a0, a1) => ({ caseLocked: a0, someoneViewing: a1 });
1771
1773
  class ActivityBannerComponent {
1772
1774
  bannerType;
1773
1775
  description;
@@ -1786,7 +1788,7 @@ class ActivityBannerComponent {
1786
1788
  i0.ɵɵpipe(6, "rpxTranslate");
1787
1789
  i0.ɵɵelementEnd()();
1788
1790
  } if (rf & 2) {
1789
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(10, _c0$15, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
1791
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(10, _c0$13, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
1790
1792
  i0.ɵɵadvance(2);
1791
1793
  i0.ɵɵproperty("alt", i0.ɵɵinterpolate(i0.ɵɵpipeBind1(3, 6, ctx.description)))("src", i0.ɵɵinterpolate(ctx.imageLink), i0.ɵɵsanitizeUrl);
1792
1794
  i0.ɵɵadvance(3);
@@ -13666,7 +13668,7 @@ class CaseEventCompletionComponent {
13666
13668
  }] }); })();
13667
13669
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEventCompletionComponent, { className: "CaseEventCompletionComponent", filePath: "lib/shared/components/case-editor/case-event-completion/case-event-completion.component.ts", lineNumber: 21 }); })();
13668
13670
 
13669
- const _c0$14 = (a0, a1, a2) => ["/", "cases", "case-details", a0, a1, a2, "tasks"];
13671
+ const _c0$12 = (a0, a1, a2) => ["/", "cases", "case-details", a0, a1, a2, "tasks"];
13670
13672
  class CaseEventCompletionTaskCancelledComponent {
13671
13673
  context;
13672
13674
  notifyEventCompletionCancelled = new EventEmitter();
@@ -13735,7 +13737,7 @@ class CaseEventCompletionTaskCancelledComponent {
13735
13737
  i0.ɵɵadvance(4);
13736
13738
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(27, 21, "Continue"), " ");
13737
13739
  i0.ɵɵadvance(2);
13738
- i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction3(25, _c0$14, ctx.jurisdiction, ctx.caseType, ctx.caseId));
13740
+ i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction3(25, _c0$12, ctx.jurisdiction, ctx.caseType, ctx.caseId));
13739
13741
  i0.ɵɵadvance();
13740
13742
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(30, 23, "Cancel"), " ");
13741
13743
  } }, dependencies: [i1$2.RouterLink, i1.RpxTranslatePipe], encapsulation: 2 });
@@ -13750,7 +13752,7 @@ class CaseEventCompletionTaskCancelledComponent {
13750
13752
  }] }); })();
13751
13753
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEventCompletionTaskCancelledComponent, { className: "CaseEventCompletionTaskCancelledComponent", filePath: "lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-cancelled/case-event-completion-task-cancelled.component.ts", lineNumber: 10 }); })();
13752
13754
 
13753
- const _c0$13 = (a0, a1, a2) => ["/", "cases", "case-details", a0, a1, a2, "tasks"];
13755
+ const _c0$11 = (a0, a1, a2) => ["/", "cases", "case-details", a0, a1, a2, "tasks"];
13754
13756
  function CaseEventCompletionTaskReassignedComponent_div_0_Template(rf, ctx) { if (rf & 1) {
13755
13757
  const _r1 = i0.ɵɵgetCurrentView();
13756
13758
  i0.ɵɵelementStart(0, "div", 1)(1, "div", 2)(2, "h2", 3);
@@ -13803,7 +13805,7 @@ function CaseEventCompletionTaskReassignedComponent_div_0_Template(rf, ctx) { if
13803
13805
  i0.ɵɵadvance(4);
13804
13806
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(27, 22, "Continue"), " ");
13805
13807
  i0.ɵɵadvance(2);
13806
- i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction3(26, _c0$13, ctx_r1.jurisdiction, ctx_r1.caseType, ctx_r1.caseId));
13808
+ i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction3(26, _c0$11, ctx_r1.jurisdiction, ctx_r1.caseType, ctx_r1.caseId));
13807
13809
  i0.ɵɵadvance();
13808
13810
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(30, 24, "Cancel"), " ");
13809
13811
  } }
@@ -14206,7 +14208,7 @@ class WriteComplexFieldComponent extends AbstractFieldWriteComponent {
14206
14208
  }] }); })();
14207
14209
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteComplexFieldComponent, { className: "WriteComplexFieldComponent", filePath: "lib/shared/components/palette/complex/write-complex-field.component.ts", lineNumber: 22 }); })();
14208
14210
 
14209
- const _c0$12 = ["writeComplexFieldComponent"];
14211
+ const _c0$10 = ["writeComplexFieldComponent"];
14210
14212
  const _c1$q = a0 => ({ "form-group-error": a0 });
14211
14213
  const _c2$4 = a0 => ({ "govuk-input--error": a0 });
14212
14214
  function WriteAddressFieldComponent_div_1_span_4_Template(rf, ctx) { if (rf & 1) {
@@ -14485,7 +14487,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
14485
14487
  }
14486
14488
  static ɵfac = function WriteAddressFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WriteAddressFieldComponent)(i0.ɵɵdirectiveInject(AddressesService), i0.ɵɵdirectiveInject(IsCompoundPipe)); };
14487
14489
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) { if (rf & 1) {
14488
- i0.ɵɵviewQuery(_c0$12, 5);
14490
+ i0.ɵɵviewQuery(_c0$10, 5);
14489
14491
  i0.ɵɵviewQuery(FocusElementDirective, 5);
14490
14492
  } if (rf & 2) {
14491
14493
  let _t;
@@ -14548,7 +14550,7 @@ class AbstractFieldReadComponent extends AbstractFormFieldComponent {
14548
14550
  type: Input
14549
14551
  }] }); })();
14550
14552
 
14551
- const _c0$11 = ["journeyChild"];
14553
+ const _c0$$ = ["journeyChild"];
14552
14554
  class AbstractFieldWriteJourneyComponent extends AbstractFieldWriteComponent {
14553
14555
  multipageComponentStateService;
14554
14556
  journeyStartPageNumber = 0;
@@ -14623,7 +14625,7 @@ class AbstractFieldWriteJourneyComponent extends AbstractFieldWriteComponent {
14623
14625
  ;
14624
14626
  static ɵfac = function AbstractFieldWriteJourneyComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AbstractFieldWriteJourneyComponent)(i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
14625
14627
  static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AbstractFieldWriteJourneyComponent, viewQuery: function AbstractFieldWriteJourneyComponent_Query(rf, ctx) { if (rf & 1) {
14626
- i0.ɵɵviewQuery(_c0$11, 5);
14628
+ i0.ɵɵviewQuery(_c0$$, 5);
14627
14629
  } if (rf & 2) {
14628
14630
  let _t;
14629
14631
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childJourney = _t.first);
@@ -14638,7 +14640,7 @@ class AbstractFieldWriteJourneyComponent extends AbstractFieldWriteComponent {
14638
14640
  args: ['journeyChild']
14639
14641
  }] }); })();
14640
14642
 
14641
- const _c0$10 = ["journeyChild"];
14643
+ const _c0$_ = ["journeyChild"];
14642
14644
  class AbstractJourneyComponent {
14643
14645
  multipageComponentStateService;
14644
14646
  journeyStartPageNumber = 0;
@@ -14700,7 +14702,7 @@ class AbstractJourneyComponent {
14700
14702
  onPageChange() { }
14701
14703
  static ɵfac = function AbstractJourneyComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AbstractJourneyComponent)(i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
14702
14704
  static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AbstractJourneyComponent, viewQuery: function AbstractJourneyComponent_Query(rf, ctx) { if (rf & 1) {
14703
- i0.ɵɵviewQuery(_c0$10, 5);
14705
+ i0.ɵɵviewQuery(_c0$_, 5);
14704
14706
  } if (rf & 2) {
14705
14707
  let _t;
14706
14708
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childJourney = _t.first);
@@ -14729,7 +14731,29 @@ var DisplayContextCustomParameter;
14729
14731
  DisplayContextCustomParameter["QueryManagementWriteTest"] = "QueryManagementWriteTest";
14730
14732
  })(DisplayContextCustomParameter || (DisplayContextCustomParameter = {}));
14731
14733
 
14732
- const _c0$$ = ["mediaViewerHost"];
14734
+ class MediaViewerModuleService {
14735
+ environmentInjector;
14736
+ moduleRef;
14737
+ constructor(environmentInjector) {
14738
+ this.environmentInjector = environmentInjector;
14739
+ }
14740
+ getModuleRef(moduleType) {
14741
+ // Keep the viewer's NgRx feature registered while its asynchronous work settles after navigation.
14742
+ this.moduleRef ??= createNgModule(moduleType, this.environmentInjector);
14743
+ return this.moduleRef;
14744
+ }
14745
+ ngOnDestroy() {
14746
+ this.moduleRef?.destroy();
14747
+ }
14748
+ static ɵfac = function MediaViewerModuleService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MediaViewerModuleService)(i0.ɵɵinject(i0.EnvironmentInjector)); };
14749
+ static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: MediaViewerModuleService, factory: MediaViewerModuleService.ɵfac, providedIn: 'root' });
14750
+ }
14751
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MediaViewerModuleService, [{
14752
+ type: Injectable,
14753
+ args: [{ providedIn: 'root' }]
14754
+ }], () => [{ type: i0.EnvironmentInjector }], null); })();
14755
+
14756
+ const _c0$Z = ["mediaViewerHost"];
14733
14757
  function CaseFileViewFieldComponent_ng_container_0_li_7_Template(rf, ctx) { if (rf & 1) {
14734
14758
  i0.ɵɵelementStart(0, "li")(1, "button", 9);
14735
14759
  i0.ɵɵtext(2);
@@ -14788,7 +14812,7 @@ function CaseFileViewFieldComponent_div_2_Template(rf, ctx) { if (rf & 1) {
14788
14812
  class CaseFileViewFieldComponent {
14789
14813
  elementRef;
14790
14814
  changeDetectorRef;
14791
- environmentInjector;
14815
+ mediaViewerModuleService;
14792
14816
  route;
14793
14817
  caseFileViewService;
14794
14818
  documentManagementService;
@@ -14811,12 +14835,13 @@ class CaseFileViewFieldComponent {
14811
14835
  caseId;
14812
14836
  mediaViewerHost;
14813
14837
  mediaViewerComponentRef;
14814
- mediaViewerModuleRef;
14838
+ dragSubscription;
14815
14839
  mediaViewerRenderId = 0;
14816
- constructor(elementRef, changeDetectorRef, environmentInjector, route, caseFileViewService, documentManagementService, loadingService, sessionStorageService, windowService, caseNotifier, abstractConfig) {
14840
+ destroyed$ = new Subject();
14841
+ constructor(elementRef, changeDetectorRef, mediaViewerModuleService, route, caseFileViewService, documentManagementService, loadingService, sessionStorageService, windowService, caseNotifier, abstractConfig) {
14817
14842
  this.elementRef = elementRef;
14818
14843
  this.changeDetectorRef = changeDetectorRef;
14819
- this.environmentInjector = environmentInjector;
14844
+ this.mediaViewerModuleService = mediaViewerModuleService;
14820
14845
  this.route = route;
14821
14846
  this.caseFileViewService = caseFileViewService;
14822
14847
  this.documentManagementService = documentManagementService;
@@ -14865,7 +14890,7 @@ class CaseFileViewFieldComponent {
14865
14890
  };
14866
14891
  }), takeUntil(mouseup$));
14867
14892
  }));
14868
- drag$.subscribe(pos => {
14893
+ this.dragSubscription = drag$.subscribe(pos => {
14869
14894
  const calculatedWidth = ((pos.documentTreeContainerWidth + pos.dx) * 100) / slider.parentElement.getBoundingClientRect().width;
14870
14895
  documentTreeContainer.setAttribute('style', `width: ${calculatedWidth}%`);
14871
14896
  });
@@ -14893,7 +14918,7 @@ class CaseFileViewFieldComponent {
14893
14918
  const cid = this.route.snapshot.paramMap.get(CaseFileViewFieldComponent.PARAM_CASE_ID);
14894
14919
  const loadingToken = this.loadingService.register();
14895
14920
  this.caseFileViewService.updateDocumentCategory(cid, this.caseVersion, data.document.attribute_path, data.newCategory)
14896
- .pipe(finalize(() => {
14921
+ .pipe(takeUntil(this.destroyed$), finalize(() => {
14897
14922
  this.loadingService.unregister(loadingToken);
14898
14923
  }), catchError((err) => {
14899
14924
  this.errorMessages = [this.moveDocumentError(err)];
@@ -14914,8 +14939,10 @@ class CaseFileViewFieldComponent {
14914
14939
  }
14915
14940
  ngOnDestroy() {
14916
14941
  this.mediaViewerRenderId++;
14942
+ this.destroyed$.next();
14943
+ this.destroyed$.complete();
14917
14944
  this.destroyMediaViewer();
14918
- this.mediaViewerModuleRef?.destroy();
14945
+ this.dragSubscription?.unsubscribe();
14919
14946
  if (this.categoriesAndDocumentsSubscription) {
14920
14947
  this.categoriesAndDocumentsSubscription.unsubscribe();
14921
14948
  }
@@ -14941,9 +14968,9 @@ class CaseFileViewFieldComponent {
14941
14968
  return;
14942
14969
  }
14943
14970
  const { MediaViewerComponent, MediaViewerModule } = mediaViewer;
14944
- this.mediaViewerModuleRef ??= createNgModule(MediaViewerModule, this.environmentInjector);
14971
+ const mediaViewerModuleRef = this.mediaViewerModuleService.getModuleRef(MediaViewerModule);
14945
14972
  this.mediaViewerComponentRef = this.mediaViewerHost.createComponent(MediaViewerComponent, {
14946
- ngModuleRef: this.mediaViewerModuleRef
14973
+ ngModuleRef: mediaViewerModuleRef
14947
14974
  });
14948
14975
  this.mediaViewerComponentRef.setInput('url', this.currentDocument.document_binary_url);
14949
14976
  this.mediaViewerComponentRef.setInput('downloadFileName', this.currentDocument.document_filename);
@@ -14985,9 +15012,9 @@ class CaseFileViewFieldComponent {
14985
15012
  return defaultMsg;
14986
15013
  }
14987
15014
  }
14988
- static ɵfac = function CaseFileViewFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseFileViewFieldComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.EnvironmentInjector), i0.ɵɵdirectiveInject(i1$2.ActivatedRoute), i0.ɵɵdirectiveInject(CaseFileViewService), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(LoadingService), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(WindowService), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(AbstractAppConfig)); };
15015
+ static ɵfac = function CaseFileViewFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseFileViewFieldComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(MediaViewerModuleService), i0.ɵɵdirectiveInject(i1$2.ActivatedRoute), i0.ɵɵdirectiveInject(CaseFileViewService), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(LoadingService), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(WindowService), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(AbstractAppConfig)); };
14989
15016
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], viewQuery: function CaseFileViewFieldComponent_Query(rf, ctx) { if (rf & 1) {
14990
- i0.ɵɵviewQuery(_c0$$, 5, ViewContainerRef);
15017
+ i0.ɵɵviewQuery(_c0$Z, 5, ViewContainerRef);
14991
15018
  } if (rf & 2) {
14992
15019
  let _t;
14993
15020
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.mediaViewerHost = _t.first);
@@ -15004,11 +15031,11 @@ class CaseFileViewFieldComponent {
15004
15031
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFieldComponent, [{
15005
15032
  type: Component,
15006
15033
  args: [{ selector: 'ccd-case-file-view-field', standalone: false, template: "<ng-container *ngIf=\"errorMessages?.length\">\n <div\n id=\"case-file-view-field-errors\"\n class=\"govuk-error-summary govuk-!-margin-bottom-4\"\n data-module=\"govuk-error-summary\"\n >\n <div role=\"alert\">\n <h2 class=\"govuk-error-summary__title\">There is a problem</h2>\n <div class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li *ngFor=\"let errorMessage of errorMessages\">\n <button type=\"button\" class=\"govuk-js-link\">{{ errorMessage }}</button>\n </li>\n </ul>\n </div>\n </div>\n </div>\n</ng-container>\n\n<div\n *ngIf=\"getCategoriesAndDocumentsError\"\n class=\"govuk-grid-column-two-thirds\"\n>\n <h1 class=\"govuk-heading-xl\">Sorry, there is a problem with the service</h1>\n <p class=\"govuk-body\">Try again later.</p>\n</div>\n<div *ngIf=\"!getCategoriesAndDocumentsError\">\n <h2 class=\"govuk-heading-l\">Case file</h2>\n <div class=\"govuk-form-group\" id=\"case-file-view\">\n <!-- Document tree -->\n <div class=\"document-tree-container\">\n <ccd-case-file-view-folder \n class=\"document-tree-container__tree\"\n [categoriesAndDocuments]=\"categoriesAndDocuments$\"\n (clickedDocument)=\"setMediaViewerFile($event); resetErrorMessages()\" \n (moveDocument)=\"moveDocument($event)\"\n [allowMoving]=\"allowMoving\">\n </ccd-case-file-view-folder>\n </div>\n <!-- Slider -->\n <div class=\"slider\"></div>\n <!-- Media viewer -->\n <div class=\"media-viewer-container\">\n <ng-container *ngIf=\"currentDocument\">\n <ng-container #mediaViewerHost></ng-container>\n </ng-container>\n </div>\n </div>\n</div>\n", styles: [".govuk-js-link{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link:visited{color:#4c2c92}#case-file-view{display:flex;border:2px solid #C9C9C9;height:100vh;position:relative}#case-file-view .document-tree-container{background-color:#faf8f8;width:30%;min-height:400px;min-width:10%}#case-file-view .slider{width:.2%;background-color:#6b6b6b}#case-file-view .slider:hover,#case-file-view .slider:focus{cursor:col-resize}#case-file-view .media-viewer-container{background-color:#dee0e2;flex:1 1 0;overflow:hidden}\n"] }]
15007
- }], () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.EnvironmentInjector }, { type: i1$2.ActivatedRoute }, { type: CaseFileViewService }, { type: DocumentManagementService }, { type: LoadingService }, { type: SessionStorageService }, { type: WindowService }, { type: CaseNotifier }, { type: AbstractAppConfig }], { mediaViewerHost: [{
15034
+ }], () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: MediaViewerModuleService }, { type: i1$2.ActivatedRoute }, { type: CaseFileViewService }, { type: DocumentManagementService }, { type: LoadingService }, { type: SessionStorageService }, { type: WindowService }, { type: CaseNotifier }, { type: AbstractAppConfig }], { mediaViewerHost: [{
15008
15035
  type: ViewChild,
15009
15036
  args: ['mediaViewerHost', { read: ViewContainerRef }]
15010
15037
  }] }); })();
15011
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFileViewFieldComponent, { className: "CaseFileViewFieldComponent", filePath: "lib/shared/components/palette/case-file-view/case-file-view-field.component.ts", lineNumber: 33 }); })();
15038
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFileViewFieldComponent, { className: "CaseFileViewFieldComponent", filePath: "lib/shared/components/palette/case-file-view/case-file-view-field.component.ts", lineNumber: 31 }); })();
15012
15039
 
15013
15040
  const PVP_FLAG_CODE = 'PF0021';
15014
15041
  const PVP_DISPLAY_TEXT = 'POTENTIALLY VIOLENT PERSON';
@@ -16240,7 +16267,7 @@ class ReadCaseLinkFieldComponent extends AbstractFieldReadComponent {
16240
16267
  }], null, null); })();
16241
16268
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadCaseLinkFieldComponent, { className: "ReadCaseLinkFieldComponent", filePath: "lib/shared/components/palette/case-link/read-case-link-field.component.ts", lineNumber: 9 }); })();
16242
16269
 
16243
- const _c0$_ = ["writeComplexFieldComponent"];
16270
+ const _c0$Y = ["writeComplexFieldComponent"];
16244
16271
  const _c1$p = a0 => ({ "form-group-error": a0 });
16245
16272
  function WriteCaseLinkFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
16246
16273
  i0.ɵɵelementStart(0, "span", 6);
@@ -16321,7 +16348,7 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
16321
16348
  }
16322
16349
  static ɵfac = /*@__PURE__*/ (() => { let ɵWriteCaseLinkFieldComponent_BaseFactory; return function WriteCaseLinkFieldComponent_Factory(__ngFactoryType__) { return (ɵWriteCaseLinkFieldComponent_BaseFactory || (ɵWriteCaseLinkFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(WriteCaseLinkFieldComponent)))(__ngFactoryType__ || WriteCaseLinkFieldComponent); }; })();
16323
16350
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteCaseLinkFieldComponent, selectors: [["ccd-write-case-link-field"]], viewQuery: function WriteCaseLinkFieldComponent_Query(rf, ctx) { if (rf & 1) {
16324
- i0.ɵɵviewQuery(_c0$_, 5);
16351
+ i0.ɵɵviewQuery(_c0$Y, 5);
16325
16352
  } if (rf & 2) {
16326
16353
  let _t;
16327
16354
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.writeComplexFieldComponent = _t.first);
@@ -16355,7 +16382,7 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
16355
16382
  }] }); })();
16356
16383
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteCaseLinkFieldComponent, { className: "WriteCaseLinkFieldComponent", filePath: "lib/shared/components/palette/case-link/write-case-link-field.component.ts", lineNumber: 12 }); })();
16357
16384
 
16358
- const _c0$Z = (a0, a1, a2, a3, a4, a5, a6) => ({ id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5, parent: a6 });
16385
+ const _c0$X = (a0, a1, a2, a3, a4, a5, a6) => ({ id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5, parent: a6 });
16359
16386
  const _c1$o = (a0, a1, a2, a3, a4, a5) => ({ id: a0, label: a1, field_type: a2, value: a3, hidden: a4, parent: a5 });
16360
16387
  function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf & 1) {
16361
16388
  i0.ɵɵelementStart(0, "tbody")(1, "tr");
@@ -16366,7 +16393,7 @@ function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf
16366
16393
  } if (rf & 2) {
16367
16394
  const ctx_r0 = i0.ɵɵnextContext(2);
16368
16395
  i0.ɵɵadvance(4);
16369
- i0.ɵɵproperty("caseField", i0.ɵɵpureFunction7(4, _c0$Z, ctx_r0.caseField.label, ctx_r0.caseField.label, ctx_r0.caseField.field_type.collection_field_type, ctx_r0.caseField.display_context_parameter, ctx_r0.caseField.value, ctx_r0.caseField.hidden, ctx_r0.caseField))("context", ctx_r0.context)("caseFields", ctx_r0.caseFields)("topLevelFormGroup", ctx_r0.topLevelFormGroup);
16396
+ i0.ɵɵproperty("caseField", i0.ɵɵpureFunction7(4, _c0$X, ctx_r0.caseField.label, ctx_r0.caseField.label, ctx_r0.caseField.field_type.collection_field_type, ctx_r0.caseField.display_context_parameter, ctx_r0.caseField.value, ctx_r0.caseField.hidden, ctx_r0.caseField))("context", ctx_r0.context)("caseFields", ctx_r0.caseFields)("topLevelFormGroup", ctx_r0.topLevelFormGroup);
16370
16397
  } }
16371
16398
  function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { if (rf & 1) {
16372
16399
  i0.ɵɵelementStart(0, "tr")(1, "td");
@@ -16488,7 +16515,7 @@ class RemoveDialogComponent {
16488
16515
  }], () => [{ type: i1$3.MatDialogRef }], null); })();
16489
16516
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RemoveDialogComponent, { className: "RemoveDialogComponent", filePath: "lib/shared/components/dialogs/remove-dialog/remove-dialog.component.ts", lineNumber: 10 }); })();
16490
16517
 
16491
- const _c0$Y = ["collectionItem"];
16518
+ const _c0$W = ["collectionItem"];
16492
16519
  function WriteCollectionFieldComponent_h2_2_Template(rf, ctx) { if (rf & 1) {
16493
16520
  i0.ɵɵelementStart(0, "h2", 7);
16494
16521
  i0.ɵɵtext(1);
@@ -16909,7 +16936,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
16909
16936
  }
16910
16937
  static ɵfac = function WriteCollectionFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WriteCollectionFieldComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialog), i0.ɵɵdirectiveInject(ProfileNotifier), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
16911
16938
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) { if (rf & 1) {
16912
- i0.ɵɵviewQuery(_c0$Y, 5);
16939
+ i0.ɵɵviewQuery(_c0$W, 5);
16913
16940
  } if (rf & 2) {
16914
16941
  let _t;
16915
16942
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.items = _t);
@@ -17225,7 +17252,7 @@ class FileUploadStateService {
17225
17252
  type: Injectable
17226
17253
  }], null, null); })();
17227
17254
 
17228
- const _c0$X = ["fileInput"];
17255
+ const _c0$V = ["fileInput"];
17229
17256
  const _c1$n = a0 => ({ "form-group-error bottom-30": a0 });
17230
17257
  function WriteDocumentFieldComponent_span_6_Template(rf, ctx) { if (rf & 1) {
17231
17258
  i0.ɵɵelementStart(0, "span", 12);
@@ -17604,7 +17631,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
17604
17631
  }
17605
17632
  static ɵfac = function WriteDocumentFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WriteDocumentFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$3.MatDialog), i0.ɵɵdirectiveInject(FileUploadStateService), i0.ɵɵdirectiveInject(JurisdictionService), i0.ɵɵdirectiveInject(SessionStorageService)); };
17606
17633
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) { if (rf & 1) {
17607
- i0.ɵɵviewQuery(_c0$X, 5);
17634
+ i0.ɵɵviewQuery(_c0$V, 5);
17608
17635
  } if (rf & 2) {
17609
17636
  let _t;
17610
17637
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
@@ -17719,7 +17746,7 @@ class ReadDynamicListFieldComponent extends AbstractFieldReadComponent {
17719
17746
  }], null, null); })();
17720
17747
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadDynamicListFieldComponent, { className: "ReadDynamicListFieldComponent", filePath: "lib/shared/components/palette/dynamic-list/read-dynamic-list-field.component.ts", lineNumber: 9 }); })();
17721
17748
 
17722
- const _c0$W = a0 => ({ "form-group-error": a0 });
17749
+ const _c0$U = a0 => ({ "form-group-error": a0 });
17723
17750
  function WriteDynamicListFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
17724
17751
  i0.ɵɵelementStart(0, "span", 8);
17725
17752
  i0.ɵɵtext(1);
@@ -17807,7 +17834,7 @@ class WriteDynamicListFieldComponent extends AbstractFieldWriteComponent {
17807
17834
  i0.ɵɵtemplate(10, WriteDynamicListFieldComponent_option_10_Template, 3, 4, "option", 7);
17808
17835
  i0.ɵɵelementEnd()();
17809
17836
  } if (rf & 2) {
17810
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(13, _c0$W, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
17837
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(13, _c0$U, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
17811
17838
  i0.ɵɵadvance();
17812
17839
  i0.ɵɵproperty("for", ctx.id());
17813
17840
  i0.ɵɵadvance();
@@ -17988,7 +18015,7 @@ class ReadDynamicMultiSelectListFieldComponent extends AbstractFieldReadComponen
17988
18015
  }], null, null); })();
17989
18016
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadDynamicMultiSelectListFieldComponent, { className: "ReadDynamicMultiSelectListFieldComponent", filePath: "lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.ts", lineNumber: 10 }); })();
17990
18017
 
17991
- const _c0$V = a0 => ({ "error": a0 });
18018
+ const _c0$T = a0 => ({ "error": a0 });
17992
18019
  function WriteDynamicMultiSelectListFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
17993
18020
  i0.ɵɵelementStart(0, "span", 5);
17994
18021
  i0.ɵɵtext(1);
@@ -18108,7 +18135,7 @@ class WriteDynamicMultiSelectListFieldComponent extends AbstractFieldWriteCompon
18108
18135
  i0.ɵɵtemplate(6, WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template, 6, 12, "ng-container", 4);
18109
18136
  i0.ɵɵelementEnd()();
18110
18137
  } if (rf & 2) {
18111
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$V, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
18138
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$T, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
18112
18139
  i0.ɵɵadvance(3);
18113
18140
  i0.ɵɵproperty("ngIf", ctx.caseField.label);
18114
18141
  i0.ɵɵadvance();
@@ -18188,7 +18215,7 @@ class ReadDynamicRadioListFieldComponent extends AbstractFieldReadComponent {
18188
18215
  }], null, null); })();
18189
18216
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadDynamicRadioListFieldComponent, { className: "ReadDynamicRadioListFieldComponent", filePath: "lib/shared/components/palette/dynamic-radio-list/read-dynamic-radio-list-field.component.ts", lineNumber: 9 }); })();
18190
18217
 
18191
- const _c0$U = a0 => ({ "form-group-error": a0 });
18218
+ const _c0$S = a0 => ({ "form-group-error": a0 });
18192
18219
  const _c1$m = a0 => ({ selected: a0 });
18193
18220
  function WriteDynamicRadioListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
18194
18221
  i0.ɵɵelementStart(0, "span", 7);
@@ -18283,7 +18310,7 @@ class WriteDynamicRadioListFieldComponent extends AbstractFieldWriteComponent {
18283
18310
  i0.ɵɵelementContainerEnd();
18284
18311
  i0.ɵɵelementEnd()();
18285
18312
  } if (rf & 2) {
18286
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$U, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
18313
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$S, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
18287
18314
  i0.ɵɵadvance(3);
18288
18315
  i0.ɵɵproperty("for", ctx.id());
18289
18316
  i0.ɵɵadvance();
@@ -18337,7 +18364,7 @@ class ReadEmailFieldComponent extends AbstractFieldReadComponent {
18337
18364
  }], null, null); })();
18338
18365
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadEmailFieldComponent, { className: "ReadEmailFieldComponent", filePath: "lib/shared/components/palette/email/read-email-field.component.ts", lineNumber: 11 }); })();
18339
18366
 
18340
- const _c0$T = a0 => ({ "form-group-error": a0 });
18367
+ const _c0$R = a0 => ({ "form-group-error": a0 });
18341
18368
  const _c1$l = a0 => ({ "govuk-input--error": a0 });
18342
18369
  function WriteEmailFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
18343
18370
  i0.ɵɵelementStart(0, "span", 6);
@@ -18383,7 +18410,7 @@ class WriteEmailFieldComponent extends AbstractFieldWriteComponent {
18383
18410
  i0.ɵɵelement(5, "input", 5);
18384
18411
  i0.ɵɵelementEnd();
18385
18412
  } if (rf & 2) {
18386
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$T, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
18413
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$R, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
18387
18414
  i0.ɵɵadvance();
18388
18415
  i0.ɵɵproperty("for", ctx.id());
18389
18416
  i0.ɵɵadvance();
@@ -18425,7 +18452,7 @@ class ReadFixedListFieldComponent extends AbstractFieldReadComponent {
18425
18452
  }], null, null); })();
18426
18453
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadFixedListFieldComponent, { className: "ReadFixedListFieldComponent", filePath: "lib/shared/components/palette/fixed-list/read-fixed-list-field.component.ts", lineNumber: 9 }); })();
18427
18454
 
18428
- const _c0$S = a0 => ({ "form-group-error": a0 });
18455
+ const _c0$Q = a0 => ({ "form-group-error": a0 });
18429
18456
  function WriteFixedListFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
18430
18457
  i0.ɵɵelementStart(0, "span", 8);
18431
18458
  i0.ɵɵtext(1);
@@ -18500,7 +18527,7 @@ class WriteFixedListFieldComponent extends AbstractFieldWriteComponent {
18500
18527
  i0.ɵɵtemplate(8, WriteFixedListFieldComponent_option_8_Template, 3, 4, "option", 7);
18501
18528
  i0.ɵɵelementEnd()();
18502
18529
  } if (rf & 2) {
18503
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$S, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
18530
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$Q, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
18504
18531
  i0.ɵɵadvance();
18505
18532
  i0.ɵɵproperty("for", ctx.id());
18506
18533
  i0.ɵɵadvance();
@@ -18563,7 +18590,7 @@ class ReadFixedRadioListFieldComponent extends AbstractFieldReadComponent {
18563
18590
  }], null, null); })();
18564
18591
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadFixedRadioListFieldComponent, { className: "ReadFixedRadioListFieldComponent", filePath: "lib/shared/components/palette/fixed-radio-list/read-fixed-radio-list-field.component.ts", lineNumber: 9 }); })();
18565
18592
 
18566
- const _c0$R = a0 => ({ "form-group-error": a0 });
18593
+ const _c0$P = a0 => ({ "form-group-error": a0 });
18567
18594
  const _c1$k = a0 => ({ selected: a0 });
18568
18595
  function WriteFixedRadioListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
18569
18596
  i0.ɵɵelementStart(0, "span", 6);
@@ -18631,7 +18658,7 @@ class WriteFixedRadioListFieldComponent extends AbstractFieldWriteComponent {
18631
18658
  i0.ɵɵelementContainerEnd();
18632
18659
  i0.ɵɵelementEnd()();
18633
18660
  } if (rf & 2) {
18634
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$R, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
18661
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$P, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
18635
18662
  i0.ɵɵadvance(3);
18636
18663
  i0.ɵɵproperty("for", ctx.id());
18637
18664
  i0.ɵɵadvance();
@@ -18707,7 +18734,7 @@ class ReadJudicialUserFieldComponent extends AbstractFieldReadComponent {
18707
18734
  }], () => [{ type: JurisdictionService }], null); })();
18708
18735
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadJudicialUserFieldComponent, { className: "ReadJudicialUserFieldComponent", filePath: "lib/shared/components/palette/judicial-user/read-judicial-user-field.component.ts", lineNumber: 12 }); })();
18709
18736
 
18710
- const _c0$Q = a0 => ({ "form-group-error": a0 });
18737
+ const _c0$O = a0 => ({ "form-group-error": a0 });
18711
18738
  const _c1$j = a0 => ({ "hide-autocomplete": a0 });
18712
18739
  function WriteJudicialUserFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
18713
18740
  i0.ɵɵelementStart(0, "span", 10);
@@ -18941,7 +18968,7 @@ class WriteJudicialUserFieldComponent extends WriteComplexFieldComponent {
18941
18968
  i0.ɵɵelementEnd()();
18942
18969
  } if (rf & 2) {
18943
18970
  const autoComplete_r4 = i0.ɵɵreference(7);
18944
- i0.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0.ɵɵpureFunction1(15, _c0$Q, !!ctx.judicialUserControl && ctx.errors));
18971
+ i0.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0.ɵɵpureFunction1(15, _c0$O, !!ctx.judicialUserControl && ctx.errors));
18945
18972
  i0.ɵɵadvance();
18946
18973
  i0.ɵɵproperty("for", ctx.id());
18947
18974
  i0.ɵɵadvance();
@@ -19023,7 +19050,7 @@ class ReadStaffUserFieldComponent extends AbstractFieldReadComponent {
19023
19050
  }], () => [{ type: CaseworkerService }, { type: JurisdictionService }], null); })();
19024
19051
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadStaffUserFieldComponent, { className: "ReadStaffUserFieldComponent", filePath: "lib/shared/components/palette/staff-user/read-staff-user-field.component.ts", lineNumber: 13 }); })();
19025
19052
 
19026
- const _c0$P = a0 => ({ "form-group-error": a0 });
19053
+ const _c0$N = a0 => ({ "form-group-error": a0 });
19027
19054
  const _c1$i = a0 => ({ "hide-autocomplete": a0 });
19028
19055
  function WriteStaffUserFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
19029
19056
  i0.ɵɵelementStart(0, "span", 10);
@@ -19262,7 +19289,7 @@ class WriteStaffUserFieldComponent extends WriteComplexFieldComponent {
19262
19289
  i0.ɵɵelementEnd()();
19263
19290
  } if (rf & 2) {
19264
19291
  const autoComplete_r5 = i0.ɵɵreference(7);
19265
- i0.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0.ɵɵpureFunction1(15, _c0$P, !!ctx.staffUserControl && ctx.errors));
19292
+ i0.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0.ɵɵpureFunction1(15, _c0$N, !!ctx.staffUserControl && ctx.errors));
19266
19293
  i0.ɵɵadvance();
19267
19294
  i0.ɵɵproperty("for", ctx.id());
19268
19295
  i0.ɵɵadvance();
@@ -19727,7 +19754,7 @@ class ValidatorsUtils {
19727
19754
  args: [{ providedIn: 'root' }]
19728
19755
  }], null, null); })();
19729
19756
 
19730
- const _c0$O = a0 => ({ "govuk-form-group--error": a0 });
19757
+ const _c0$M = a0 => ({ "govuk-form-group--error": a0 });
19731
19758
  const _c1$h = a0 => ({ "table-group-error": a0 });
19732
19759
  function LinkCasesComponent_div_8_span_4_Template(rf, ctx) { if (rf & 1) {
19733
19760
  i0.ɵɵelementStart(0, "span", 28)(1, "span", 29);
@@ -19794,7 +19821,7 @@ function LinkCasesComponent_div_8_div_14_Template(rf, ctx) { if (rf & 1) {
19794
19821
  i0.ɵɵelementEnd()();
19795
19822
  } if (rf & 2) {
19796
19823
  const ctx_r1 = i0.ɵɵnextContext(2);
19797
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c0$O, !!ctx_r1.caseReasonCommentsError));
19824
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c0$M, !!ctx_r1.caseReasonCommentsError));
19798
19825
  i0.ɵɵadvance(3);
19799
19826
  i0.ɵɵproperty("ngIf", ctx_r1.caseReasonCommentsError);
19800
19827
  } }
@@ -19838,11 +19865,11 @@ function LinkCasesComponent_div_8_Template(rf, ctx) { if (rf & 1) {
19838
19865
  const ctx_r1 = i0.ɵɵnextContext();
19839
19866
  i0.ɵɵproperty("formGroup", ctx_r1.linkCaseForm);
19840
19867
  i0.ɵɵadvance();
19841
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$O, !!ctx_r1.caseNumberError));
19868
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$M, !!ctx_r1.caseNumberError));
19842
19869
  i0.ɵɵadvance(3);
19843
19870
  i0.ɵɵproperty("ngIf", ctx_r1.caseNumberError);
19844
19871
  i0.ɵɵadvance(2);
19845
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$O, !!ctx_r1.caseReasonError));
19872
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$M, !!ctx_r1.caseReasonError));
19846
19873
  i0.ɵɵadvance(5);
19847
19874
  i0.ɵɵproperty("ngIf", ctx_r1.caseReasonError);
19848
19875
  i0.ɵɵadvance(2);
@@ -20270,7 +20297,7 @@ class LinkCasesComponent extends AbstractJourneyComponent {
20270
20297
  i0.ɵɵadvance(4);
20271
20298
  i0.ɵɵproperty("ngIf", ctx.linkCaseForm);
20272
20299
  i0.ɵɵadvance(4);
20273
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$O, !!ctx.noSelectedCaseError));
20300
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$M, !!ctx.noSelectedCaseError));
20274
20301
  i0.ɵɵadvance();
20275
20302
  i0.ɵɵproperty("ngIf", ctx.noSelectedCaseError);
20276
20303
  i0.ɵɵadvance(18);
@@ -20863,7 +20890,7 @@ class NoLinkedCasesComponent extends AbstractJourneyComponent {
20863
20890
  }], () => [{ type: i1$2.Router }, { type: LinkedCasesService }, { type: MultipageComponentStateService }], null); })();
20864
20891
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(NoLinkedCasesComponent, { className: "NoLinkedCasesComponent", filePath: "lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.ts", lineNumber: 13 }); })();
20865
20892
 
20866
- const _c0$N = a0 => ({ "govuk-form-group--error": a0 });
20893
+ const _c0$L = a0 => ({ "govuk-form-group--error": a0 });
20867
20894
  function UnLinkCasesComponent_div_0_div_4_p_1_Template(rf, ctx) { if (rf & 1) {
20868
20895
  i0.ɵɵelementStart(0, "p", 9)(1, "span", 10);
20869
20896
  i0.ɵɵtext(2, "Error:");
@@ -20901,7 +20928,7 @@ function UnLinkCasesComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
20901
20928
  i0.ɵɵelementEnd()();
20902
20929
  } if (rf & 2) {
20903
20930
  const ctx_r0 = i0.ɵɵnextContext(2);
20904
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$N, ctx_r0.unlinkErrorMessage))("formGroup", ctx_r0.unlinkCaseForm);
20931
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$L, ctx_r0.unlinkErrorMessage))("formGroup", ctx_r0.unlinkCaseForm);
20905
20932
  i0.ɵɵadvance();
20906
20933
  i0.ɵɵproperty("ngIf", ctx_r0.unlinkErrorMessage);
20907
20934
  i0.ɵɵadvance(2);
@@ -21838,7 +21865,7 @@ class MoneyGbpInputComponent {
21838
21865
  }] }); })();
21839
21866
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MoneyGbpInputComponent, { className: "MoneyGbpInputComponent", filePath: "lib/shared/components/palette/money-gbp/money-gbp-input.component.ts", lineNumber: 28 }); })();
21840
21867
 
21841
- const _c0$M = a0 => ({ "form-group-error": a0 });
21868
+ const _c0$K = a0 => ({ "form-group-error": a0 });
21842
21869
  function WriteMoneyGbpFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
21843
21870
  i0.ɵɵelementStart(0, "span", 8);
21844
21871
  i0.ɵɵtext(1);
@@ -21887,7 +21914,7 @@ class WriteMoneyGbpFieldComponent extends AbstractFieldWriteComponent {
21887
21914
  i0.ɵɵpipe(9, "ccdIsMandatory");
21888
21915
  i0.ɵɵelementEnd()();
21889
21916
  } if (rf & 2) {
21890
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$M, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
21917
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$K, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
21891
21918
  i0.ɵɵadvance();
21892
21919
  i0.ɵɵproperty("for", ctx.id());
21893
21920
  i0.ɵɵadvance();
@@ -21953,7 +21980,7 @@ class ReadMultiSelectListFieldComponent extends AbstractFieldReadComponent {
21953
21980
  }], null, null); })();
21954
21981
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadMultiSelectListFieldComponent, { className: "ReadMultiSelectListFieldComponent", filePath: "lib/shared/components/palette/multi-select-list/read-multi-select-list-field.component.ts", lineNumber: 10 }); })();
21955
21982
 
21956
- const _c0$L = a0 => ({ "error": a0 });
21983
+ const _c0$J = a0 => ({ "error": a0 });
21957
21984
  function WriteMultiSelectListFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
21958
21985
  i0.ɵɵelementStart(0, "span", 5);
21959
21986
  i0.ɵɵtext(1);
@@ -22054,7 +22081,7 @@ class WriteMultiSelectListFieldComponent extends AbstractFieldWriteComponent {
22054
22081
  i0.ɵɵtemplate(4, WriteMultiSelectListFieldComponent_span_4_Template, 3, 3, "span", 2)(5, WriteMultiSelectListFieldComponent_span_5_Template, 3, 4, "span", 3)(6, WriteMultiSelectListFieldComponent_ng_container_6_Template, 6, 8, "ng-container", 4);
22055
22082
  i0.ɵɵelementEnd()();
22056
22083
  } if (rf & 2) {
22057
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$L, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
22084
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$J, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
22058
22085
  i0.ɵɵadvance(3);
22059
22086
  i0.ɵɵproperty("ngIf", ctx.caseField.label);
22060
22087
  i0.ɵɵadvance();
@@ -22093,7 +22120,7 @@ class ReadNumberFieldComponent extends AbstractFieldReadComponent {
22093
22120
  }], null, null); })();
22094
22121
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadNumberFieldComponent, { className: "ReadNumberFieldComponent", filePath: "lib/shared/components/palette/number/read-number-field.component.ts", lineNumber: 9 }); })();
22095
22122
 
22096
- const _c0$K = a0 => ({ "form-group-error": a0 });
22123
+ const _c0$I = a0 => ({ "form-group-error": a0 });
22097
22124
  const _c1$g = a0 => ({ "govuk-input--error": a0 });
22098
22125
  function WriteNumberFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
22099
22126
  i0.ɵɵelementStart(0, "span", 6);
@@ -22139,7 +22166,7 @@ class WriteNumberFieldComponent extends AbstractFieldWriteComponent {
22139
22166
  i0.ɵɵelement(5, "input", 5);
22140
22167
  i0.ɵɵelementEnd();
22141
22168
  } if (rf & 2) {
22142
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$K, !ctx.numberControl.valid && ctx.numberControl.dirty));
22169
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$I, !ctx.numberControl.valid && ctx.numberControl.dirty));
22143
22170
  i0.ɵɵadvance();
22144
22171
  i0.ɵɵproperty("for", ctx.id());
22145
22172
  i0.ɵɵadvance();
@@ -22318,7 +22345,7 @@ class ReadOrganisationFieldComponent extends AbstractFieldReadComponent {
22318
22345
  }] }); })();
22319
22346
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadOrganisationFieldComponent, { className: "ReadOrganisationFieldComponent", filePath: "lib/shared/components/palette/organisation/read-organisation-field.component.ts", lineNumber: 11 }); })();
22320
22347
 
22321
- const _c0$J = a0 => ({ "scroll-container ": a0 });
22348
+ const _c0$H = a0 => ({ "scroll-container ": a0 });
22322
22349
  function WriteOrganisationFieldComponent_fieldset_1_Template(rf, ctx) { if (rf & 1) {
22323
22350
  i0.ɵɵelementStart(0, "fieldset", 3);
22324
22351
  i0.ɵɵelement(1, "legend", 4);
@@ -22397,7 +22424,7 @@ function WriteOrganisationFieldComponent_fieldset_3_div_17_Template(rf, ctx) { i
22397
22424
  let tmp_3_0;
22398
22425
  let tmp_5_0;
22399
22426
  const ctx_r2 = i0.ɵɵnextContext(2);
22400
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$J, ((tmp_3_0 = i0.ɵɵpipeBind1(1, 3, ctx_r2.simpleOrganisations$)) == null ? null : tmp_3_0.length) > 10));
22427
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$H, ((tmp_3_0 = i0.ɵɵpipeBind1(1, 3, ctx_r2.simpleOrganisations$)) == null ? null : tmp_3_0.length) > 10));
22401
22428
  i0.ɵɵadvance(2);
22402
22429
  i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(3, 5, ctx_r2.simpleOrganisations$));
22403
22430
  i0.ɵɵadvance(2);
@@ -22739,98 +22766,38 @@ class PaymentField extends AbstractFieldReadComponent {
22739
22766
  }
22740
22767
  }
22741
22768
 
22742
- const _c0$I = ["paymentHost"];
22743
- function CasePaymentHistoryViewerFieldComponent_p_9_Template(rf, ctx) { if (rf & 1) {
22744
- i0.ɵɵelementStart(0, "p", 6);
22745
- i0.ɵɵtext(1, "The payment information could not be loaded. Please try again.");
22746
- i0.ɵɵelementEnd();
22747
- } }
22748
22769
  class CasePaymentHistoryViewerFieldComponent extends PaymentField {
22749
- environmentInjector;
22750
22770
  PAYMENT_HISTORY_WARNING = 'Recent payments may take a few minutes to reflect here.';
22751
- paymentLoadError = false;
22752
- paymentHost;
22753
- paymentComponentRef;
22754
- paymentModuleRef;
22755
- constructor(appConfig, sessionStorage, environmentInjector) {
22771
+ constructor(appConfig, sessionStorage) {
22756
22772
  super(appConfig, sessionStorage);
22757
- this.environmentInjector = environmentInjector;
22758
22773
  }
22759
- ngAfterViewInit() {
22760
- void this.renderPayment();
22761
- }
22762
- ngOnDestroy() {
22763
- this.paymentHost?.clear();
22764
- this.paymentComponentRef = undefined;
22765
- this.paymentModuleRef?.destroy();
22766
- }
22767
- async renderPayment() {
22768
- let paymentLibrary;
22769
- try {
22770
- paymentLibrary = await import('@hmcts/ccpay-web-component');
22771
- }
22772
- catch {
22773
- this.paymentLoadError = true;
22774
- return;
22775
- }
22776
- const { PaymentLibComponent, PaymentLibModule } = paymentLibrary;
22777
- this.paymentModuleRef = createNgModule(PaymentLibModule, this.environmentInjector);
22778
- this.paymentComponentRef = this.paymentHost.createComponent(PaymentLibComponent, {
22779
- ngModuleRef: this.paymentModuleRef
22780
- });
22781
- this.paymentComponentRef.setInput('API_ROOT', this.getBaseURL());
22782
- this.paymentComponentRef.setInput('CCD_CASE_NUMBER', this.caseReference);
22783
- this.paymentComponentRef.setInput('BULKSCAN_API_ROOT', this.getPayBulkScanBaseURL());
22784
- this.paymentComponentRef.setInput('SELECTED_OPTION', 'CCDorException');
22785
- this.paymentComponentRef.setInput('ISBSENABLE', 'true');
22786
- this.paymentComponentRef.setInput('LOGGEDINUSEREMAIL', this.getUserEmail());
22787
- this.paymentComponentRef.setInput('LOGGEDINUSERROLES', this.getUserRoles());
22788
- this.paymentComponentRef.setInput('REFUNDS_API_ROOT', this.getRefundsUrl());
22789
- this.paymentComponentRef.setInput('NOTIFICATION_API_ROOT', this.getNotificationUrl());
22790
- this.paymentComponentRef.setInput('VIEW', 'case-transactions');
22791
- this.paymentComponentRef.setInput('TAKEPAYMENT', false);
22792
- this.paymentComponentRef.setInput('SERVICEREQUEST', false);
22793
- this.paymentComponentRef.setInput('PAYMENT_GROUP_REF', null);
22794
- this.paymentComponentRef.setInput('EXC_REFERENCE', this.caseReference);
22795
- this.paymentComponentRef.setInput('DCN_NUMBER', null);
22796
- this.paymentComponentRef.setInput('ISPAYMENTSTATUSENABLED', 'Enable');
22797
- }
22798
- static ɵfac = function CasePaymentHistoryViewerFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CasePaymentHistoryViewerFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(i0.EnvironmentInjector)); };
22799
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CasePaymentHistoryViewerFieldComponent, selectors: [["ccd-case-payment-history-viewer-field"]], viewQuery: function CasePaymentHistoryViewerFieldComponent_Query(rf, ctx) { if (rf & 1) {
22800
- i0.ɵɵviewQuery(_c0$I, 5, ViewContainerRef);
22801
- } if (rf & 2) {
22802
- let _t;
22803
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.paymentHost = _t.first);
22804
- } }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 12, vars: 7, consts: [["paymentHost", ""], [1, "govuk-warning-text"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-visually-hidden"], ["class", "govuk-error-message", 4, "ngIf"], [1, "govuk-error-message"]], template: function CasePaymentHistoryViewerFieldComponent_Template(rf, ctx) { if (rf & 1) {
22805
- i0.ɵɵelementStart(0, "div", 1)(1, "span", 2);
22774
+ static ɵfac = function CasePaymentHistoryViewerFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CasePaymentHistoryViewerFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(SessionStorageService)); };
22775
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CasePaymentHistoryViewerFieldComponent, selectors: [["ccd-case-payment-history-viewer-field"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 10, vars: 22, consts: [[1, "govuk-warning-text"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-visually-hidden"], [3, "API_ROOT", "CCD_CASE_NUMBER", "BULKSCAN_API_ROOT", "SELECTED_OPTION", "ISBSENABLE", "LOGGEDINUSEREMAIL", "LOGGEDINUSERROLES", "REFUNDS_API_ROOT", "NOTIFICATION_API_ROOT", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "ISPAYMENTSTATUSENABLED"]], template: function CasePaymentHistoryViewerFieldComponent_Template(rf, ctx) { if (rf & 1) {
22776
+ i0.ɵɵelementStart(0, "div", 0)(1, "span", 1);
22806
22777
  i0.ɵɵtext(2, "!");
22807
22778
  i0.ɵɵelementEnd();
22808
- i0.ɵɵelementStart(3, "strong", 3)(4, "span", 4);
22779
+ i0.ɵɵelementStart(3, "strong", 2)(4, "span", 3);
22809
22780
  i0.ɵɵtext(5);
22810
22781
  i0.ɵɵpipe(6, "rpxTranslate");
22811
22782
  i0.ɵɵelementEnd();
22812
22783
  i0.ɵɵtext(7);
22813
22784
  i0.ɵɵpipe(8, "rpxTranslate");
22814
22785
  i0.ɵɵelementEnd()();
22815
- i0.ɵɵtemplate(9, CasePaymentHistoryViewerFieldComponent_p_9_Template, 2, 0, "p", 5);
22816
- i0.ɵɵelementContainer(10, null, 0);
22786
+ i0.ɵɵelement(9, "ccpay-payment-lib", 4);
22817
22787
  } if (rf & 2) {
22818
22788
  i0.ɵɵadvance(5);
22819
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 3, "Warning"));
22789
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 18, "Warning"));
22820
22790
  i0.ɵɵadvance(2);
22821
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 5, ctx.PAYMENT_HISTORY_WARNING), " ");
22791
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 20, ctx.PAYMENT_HISTORY_WARNING), " ");
22822
22792
  i0.ɵɵadvance(2);
22823
- i0.ɵɵproperty("ngIf", ctx.paymentLoadError);
22824
- } }, dependencies: [i5.NgIf, i1.RpxTranslatePipe], styles: [".govuk-warning-text[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:-20px}"] });
22793
+ i0.ɵɵproperty("API_ROOT", ctx.getBaseURL())("CCD_CASE_NUMBER", ctx.caseReference)("BULKSCAN_API_ROOT", ctx.getPayBulkScanBaseURL())("SELECTED_OPTION", "CCDorException")("ISBSENABLE", "true")("LOGGEDINUSEREMAIL", ctx.getUserEmail())("LOGGEDINUSERROLES", ctx.getUserRoles())("REFUNDS_API_ROOT", ctx.getRefundsUrl())("NOTIFICATION_API_ROOT", ctx.getNotificationUrl())("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", false)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx.caseReference)("DCN_NUMBER", null)("ISPAYMENTSTATUSENABLED", "Enable");
22794
+ } }, dependencies: [i3.PaymentLibComponent, i1.RpxTranslatePipe], styles: [".govuk-warning-text[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:20px}"] });
22825
22795
  }
22826
22796
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CasePaymentHistoryViewerFieldComponent, [{
22827
22797
  type: Component,
22828
- args: [{ selector: 'ccd-case-payment-history-viewer-field', standalone: false, template: "<div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-visually-hidden\">{{'Warning' | rpxTranslate}}</span>\n {{PAYMENT_HISTORY_WARNING | rpxTranslate}}\n </strong>\n</div>\n<p *ngIf=\"paymentLoadError\" class=\"govuk-error-message\">The payment information could not be loaded. Please try again.</p>\n<ng-container #paymentHost></ng-container>\n", styles: [".govuk-warning-text{margin-top:20px;margin-bottom:-20px}\n"] }]
22829
- }], () => [{ type: AbstractAppConfig }, { type: SessionStorageService }, { type: i0.EnvironmentInjector }], { paymentHost: [{
22830
- type: ViewChild,
22831
- args: ['paymentHost', { read: ViewContainerRef }]
22832
- }] }); })();
22833
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CasePaymentHistoryViewerFieldComponent, { className: "CasePaymentHistoryViewerFieldComponent", filePath: "lib/shared/components/palette/payment/case-payment-history-viewer-field.component.ts", lineNumber: 22 }); })();
22798
+ args: [{ selector: 'ccd-case-payment-history-viewer-field', standalone: false, template: "<div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-visually-hidden\">{{'Warning' | rpxTranslate}}</span>\n {{PAYMENT_HISTORY_WARNING | rpxTranslate}}\n </strong>\n</div>\n<ccpay-payment-lib\n [API_ROOT]=\"getBaseURL()\"\n [CCD_CASE_NUMBER]=\"caseReference\"\n [BULKSCAN_API_ROOT]=\"getPayBulkScanBaseURL()\"\n [SELECTED_OPTION]=\"'CCDorException'\"\n [ISBSENABLE]=\"'true'\"\n [LOGGEDINUSEREMAIL]=\"getUserEmail()\"\n [LOGGEDINUSERROLES]=\"getUserRoles()\"\n [REFUNDS_API_ROOT]=\"getRefundsUrl()\"\n [NOTIFICATION_API_ROOT]=\"getNotificationUrl()\"\n [VIEW]=\"'case-transactions'\"\n [TAKEPAYMENT]=\"false\"\n [SERVICEREQUEST]=\"false\"\n [PAYMENT_GROUP_REF]=\"null\"\n [EXC_REFERENCE]=\"caseReference\"\n [DCN_NUMBER]=\"null\"\n [ISPAYMENTSTATUSENABLED]=\"'Enable'\"\n></ccpay-payment-lib>\n", styles: [".govuk-warning-text{margin-top:20px;margin-bottom:20px}\n"] }]
22799
+ }], () => [{ type: AbstractAppConfig }, { type: SessionStorageService }], null); })();
22800
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CasePaymentHistoryViewerFieldComponent, { className: "CasePaymentHistoryViewerFieldComponent", filePath: "lib/shared/components/palette/payment/case-payment-history-viewer-field.component.ts", lineNumber: 12 }); })();
22834
22801
 
22835
22802
  class ReadPhoneUKFieldComponent extends AbstractFieldReadComponent {
22836
22803
  static ɵfac = /*@__PURE__*/ (() => { let ɵReadPhoneUKFieldComponent_BaseFactory; return function ReadPhoneUKFieldComponent_Factory(__ngFactoryType__) { return (ɵReadPhoneUKFieldComponent_BaseFactory || (ɵReadPhoneUKFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadPhoneUKFieldComponent)))(__ngFactoryType__ || ReadPhoneUKFieldComponent); }; })();
@@ -22853,7 +22820,7 @@ class ReadPhoneUKFieldComponent extends AbstractFieldReadComponent {
22853
22820
  }], null, null); })();
22854
22821
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadPhoneUKFieldComponent, { className: "ReadPhoneUKFieldComponent", filePath: "lib/shared/components/palette/phone-uk/read-phone-uk-field.component.ts", lineNumber: 9 }); })();
22855
22822
 
22856
- const _c0$H = a0 => ({ "form-group-error": a0 });
22823
+ const _c0$G = a0 => ({ "form-group-error": a0 });
22857
22824
  const _c1$f = a0 => ({ "govuk-input--error": a0 });
22858
22825
  function WritePhoneUKFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
22859
22826
  i0.ɵɵelementStart(0, "span", 6);
@@ -22899,7 +22866,7 @@ class WritePhoneUKFieldComponent extends AbstractFieldWriteComponent {
22899
22866
  i0.ɵɵelement(5, "input", 5);
22900
22867
  i0.ɵɵelementEnd();
22901
22868
  } if (rf & 2) {
22902
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$H, !ctx.phoneUkControl.valid && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched)));
22869
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$G, !ctx.phoneUkControl.valid && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched)));
22903
22870
  i0.ɵɵadvance();
22904
22871
  i0.ɵɵproperty("for", ctx.id());
22905
22872
  i0.ɵɵadvance();
@@ -25393,7 +25360,7 @@ class QueryWriteDateInputComponent {
25393
25360
  }] }); })();
25394
25361
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryWriteDateInputComponent, { className: "QueryWriteDateInputComponent", filePath: "lib/shared/components/palette/query-management/components/query-write/query-write-date-input/query-write-date-input.component.ts", lineNumber: 16 }); })();
25395
25362
 
25396
- const _c0$G = a0 => ({ "govuk-form-group--error": a0 });
25363
+ const _c0$F = a0 => ({ "govuk-form-group--error": a0 });
25397
25364
  function QueryWriteRaiseQueryComponent_ccd_query_case_details_header_9_Template(rf, ctx) { if (rf & 1) {
25398
25365
  i0.ɵɵelement(0, "ccd-query-case-details-header", 5);
25399
25366
  } if (rf & 2) {
@@ -25473,7 +25440,7 @@ function QueryWriteRaiseQueryComponent_div_11_ng_container_50_Template(rf, ctx)
25473
25440
  } if (rf & 2) {
25474
25441
  const ctx_r0 = i0.ɵɵnextContext(2);
25475
25442
  i0.ɵɵadvance();
25476
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$G, ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").value === true && ctx_r0.formGroup.get("hearingDate").value === null));
25443
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$F, ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").value === true && ctx_r0.formGroup.get("hearingDate").value === null));
25477
25444
  i0.ɵɵadvance(4);
25478
25445
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 3, "What is the date of the hearing?"), " ");
25479
25446
  i0.ɵɵadvance(2);
@@ -25540,7 +25507,7 @@ function QueryWriteRaiseQueryComponent_div_11_Template(rf, ctx) { if (rf & 1) {
25540
25507
  i0.ɵɵadvance(8);
25541
25508
  i0.ɵɵproperty("content", i0.ɵɵpipeBind1(10, 23, ctx_r0.serviceMessage));
25542
25509
  i0.ɵɵadvance(2);
25543
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(43, _c0$G, ctx_r0.submitted && ctx_r0.formGroup.get("subject").hasError("required")));
25510
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(43, _c0$F, ctx_r0.submitted && ctx_r0.formGroup.get("subject").hasError("required")));
25544
25511
  i0.ɵɵadvance(3);
25545
25512
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(15, 25, "Query subject"), " ");
25546
25513
  i0.ɵɵadvance(3);
@@ -25548,7 +25515,7 @@ function QueryWriteRaiseQueryComponent_div_11_Template(rf, ctx) { if (rf & 1) {
25548
25515
  i0.ɵɵadvance(2);
25549
25516
  i0.ɵɵproperty("ngIf", ctx_r0.submitted && (ctx_r0.formGroup.get("subject").hasError("required") || ctx_r0.formGroup.get("subject").hasError("maxlength")));
25550
25517
  i0.ɵɵadvance(2);
25551
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(45, _c0$G, ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required")));
25518
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(45, _c0$F, ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required")));
25552
25519
  i0.ɵɵadvance(3);
25553
25520
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(25, 29, "Query detail"), " ");
25554
25521
  i0.ɵɵadvance(3);
@@ -25559,7 +25526,7 @@ function QueryWriteRaiseQueryComponent_div_11_Template(rf, ctx) { if (rf & 1) {
25559
25526
  i0.ɵɵclassProp("govuk-textarea--error", ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required"));
25560
25527
  i0.ɵɵproperty("formControlName", "body");
25561
25528
  i0.ɵɵadvance(2);
25562
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(47, _c0$G, ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").hasError("required")));
25529
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(47, _c0$F, ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").hasError("required")));
25563
25530
  i0.ɵɵadvance(4);
25564
25531
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(37, 33, "Is the query hearing related?"), " ");
25565
25532
  i0.ɵɵadvance(2);
@@ -26183,7 +26150,7 @@ class CloseQueryComponent {
26183
26150
  }] }); })();
26184
26151
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CloseQueryComponent, { className: "CloseQueryComponent", filePath: "lib/shared/components/palette/query-management/components/close-query/close-query.component.ts", lineNumber: 9 }); })();
26185
26152
 
26186
- const _c0$F = (a0, a1) => ["/query-management", "query", a0, "4", a1];
26153
+ const _c0$E = (a0, a1) => ["/query-management", "query", a0, "4", a1];
26187
26154
  function ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_div_1_Template(rf, ctx) { if (rf & 1) {
26188
26155
  const _r1 = i0.ɵɵgetCurrentView();
26189
26156
  i0.ɵɵelementStart(0, "div", 6)(1, "ccd-query-list", 7);
@@ -26222,7 +26189,7 @@ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_conta
26222
26189
  } if (rf & 2) {
26223
26190
  const ctx_r1 = i0.ɵɵnextContext(3);
26224
26191
  i0.ɵɵadvance();
26225
- i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction2(4, _c0$F, ctx_r1.caseId, ctx_r1.query.id));
26192
+ i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction2(4, _c0$E, ctx_r1.caseId, ctx_r1.query.id));
26226
26193
  i0.ɵɵadvance();
26227
26194
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, "Ask a follow-up question"), " ");
26228
26195
  } }
@@ -26236,7 +26203,7 @@ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_templ
26236
26203
  } if (rf & 2) {
26237
26204
  const ctx_r1 = i0.ɵɵnextContext(4);
26238
26205
  i0.ɵɵadvance();
26239
- i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction2(4, _c0$F, ctx_r1.caseId, ctx_r1.query.id));
26206
+ i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction2(4, _c0$E, ctx_r1.caseId, ctx_r1.query.id));
26240
26207
  i0.ɵɵadvance();
26241
26208
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, "Ask a follow-up question"), " ");
26242
26209
  } }
@@ -26649,7 +26616,7 @@ class ReadRichTextAreaFieldComponent extends AbstractFieldReadComponent {
26649
26616
  }], () => [{ type: i4$1.DomSanitizer }], null); })();
26650
26617
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadRichTextAreaFieldComponent, { className: "ReadRichTextAreaFieldComponent", filePath: "lib/shared/components/palette/rich-text-area/read-rich-text-area-field.component.ts", lineNumber: 13 }); })();
26651
26618
 
26652
- const _c0$E = ["editorHost"];
26619
+ const _c0$D = ["editorHost"];
26653
26620
  const _c1$e = a0 => ({ "form-group-error": a0 });
26654
26621
  const _c2$3 = a0 => ({ "ccd-rich-text-area__editor--error": a0 });
26655
26622
  const _c3 = a0 => ({ "ccd-rich-text-area__toolbar-button--active": a0 });
@@ -29271,7 +29238,7 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
29271
29238
  }
29272
29239
  static ɵfac = /*@__PURE__*/ (() => { let ɵWriteRichTextAreaFieldComponent_BaseFactory; return function WriteRichTextAreaFieldComponent_Factory(__ngFactoryType__) { return (ɵWriteRichTextAreaFieldComponent_BaseFactory || (ɵWriteRichTextAreaFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(WriteRichTextAreaFieldComponent)))(__ngFactoryType__ || WriteRichTextAreaFieldComponent); }; })();
29273
29240
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteRichTextAreaFieldComponent, selectors: [["ccd-write-rich-text-area-field"]], viewQuery: function WriteRichTextAreaFieldComponent_Query(rf, ctx) { if (rf & 1) {
29274
- i0.ɵɵviewQuery(_c0$E, 5);
29241
+ i0.ɵɵviewQuery(_c0$D, 5);
29275
29242
  } if (rf & 2) {
29276
29243
  let _t;
29277
29244
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.editorHost = _t.first);
@@ -29432,7 +29399,7 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
29432
29399
  i0.ɵɵproperty("ngIf", !ctx.isOrderedListActive());
29433
29400
  i0.ɵɵadvance(16);
29434
29401
  i0.ɵɵproperty("editor", ctx.editor)("formControl", ctx.richTextAreaControl);
29435
- } }, dependencies: [i5.NgClass, i5.NgIf, i4.NgSelectOption, i4.ɵNgSelectMultipleOption, i4.NgControlStatus, i4.FormControlDirective, i3.NgxEditorComponent, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], styles: [".ccd-rich-text-area{margin-bottom:30px}.ccd-rich-text-area__editor{max-width:100%}.ccd-rich-text-area__keyboard-instructions{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.ccd-rich-text-area__toolbar{align-items:center;background:#fff;border:1px solid #d8dde0;border-radius:6px;box-sizing:border-box;display:flex;flex-wrap:wrap;column-gap:2px;margin-bottom:10px;max-width:100%;padding:6px 8px;row-gap:6px;width:fit-content}.ccd-rich-text-area__toolbar-group{align-items:center;display:inline-flex;flex:0 0 auto;gap:2px}.ccd-rich-text-area__toolbar-group--list{max-width:100%}.ccd-rich-text-area .NgxEditor__Wrapper{border:1px solid #000;border-radius:0;box-sizing:border-box;height:255px;max-width:100%;min-height:255px;min-width:200px;overflow:hidden;resize:both;width:100%}.ccd-rich-text-area .NgxEditor__Wrapper:focus-within{outline:3px solid #ffdd00;outline-offset:0}.ccd-rich-text-area__toolbar-button{background:#fff;align-items:center;border:0;border-radius:2px;color:#0b0c0c;display:inline-flex;font-family:inherit;font-size:18px;font-weight:700;height:28px;justify-content:center;min-width:28px;padding:4px;width:28px}.ccd-rich-text-area__toolbar-button:hover{background:#f3f2f1}.ccd-rich-text-area__toolbar-button:focus{background:#fd0;box-shadow:0 0 0 2px #0b0c0c;outline:2px solid #ffdd00;outline-offset:0}.ccd-rich-text-area__toolbar-button--active,.ccd-rich-text-area__toolbar-button--active:hover{background:#1d70b8;color:#fff}.ccd-rich-text-area__toolbar-button--italic{font-style:italic}.ccd-rich-text-area__toolbar-button--underline{text-decoration:underline}.ccd-rich-text-area__toolbar-separator{border-left:1px solid #b1b4b6;height:24px;margin:0 5px 0 3px}.ccd-rich-text-area__heading-level{display:inline-flex;margin-right:3px}.ccd-rich-text-area__heading-level-label{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.ccd-rich-text-area__heading-level-select{background-color:#fff;border:1px solid #0b0c0c;border-radius:0;color:#0b0c0c;font-family:inherit;font-size:16px;height:32px;min-width:108px;padding:2px 24px 2px 6px;width:150px}.ccd-rich-text-area__heading-level-select:focus{box-shadow:0 0 0 2px #0b0c0c;outline:3px solid #ffdd00;outline-offset:0}.ccd-rich-text-area__list-style{align-items:center;display:inline-flex;gap:8px;margin:0 4px;min-width:0}.ccd-rich-text-area__list-style-label{font-weight:700;white-space:nowrap}.ccd-rich-text-area__list-style-select{background-color:#fff;border:1px solid #0b0c0c;border-radius:0;color:#0b0c0c;font-family:inherit;font-size:16px;height:32px;max-width:100%;min-width:0;padding:2px 28px 2px 8px;width:260px}.ccd-rich-text-area__list-style-select:focus{box-shadow:0 0 0 2px #0b0c0c;outline:3px solid #ffdd00;outline-offset:0}@media(max-width:480px){.ccd-rich-text-area__toolbar-group--list{flex-wrap:wrap}.ccd-rich-text-area__list-style{flex:1 1 100%;margin-left:0}.ccd-rich-text-area__list-style-select{flex:1 1 auto;width:auto}}.ccd-rich-text-area__toolbar-icon{display:block;fill:currentColor;height:20px;width:20px}.ccd-rich-text-area__toolbar-icon--paragraph{display:inline-flex;font-size:18px;line-height:1;width:auto}.ccd-rich-text-area__toolbar-icon--heading{display:inline-flex;font-size:18px;font-weight:700;line-height:1;width:auto}.ccd-rich-text-area .ProseMirror h1{font-size:20px;font-weight:700}.ccd-rich-text-area .ProseMirror h2{font-size:18px;font-weight:700}.ccd-rich-text-area .ProseMirror h3{font-size:16px;font-weight:700}.ccd-rich-text-area .NgxEditor__Wrapper .NgxEditor{border:0;border-radius:0;height:100%;min-height:0;overflow:hidden;width:100%}.ccd-rich-text-area__editor--error .NgxEditor__Wrapper{border-color:#d4351c}.ccd-rich-text-area .NgxEditor__Content{box-sizing:border-box;font-size:14px;height:100%;min-height:0;overflow-x:hidden;overflow-y:auto;padding:12px 14px}.ccd-rich-text-area .ProseMirror{font-size:14px;min-height:231px;outline:0;overflow-wrap:anywhere;white-space:pre-wrap;word-break:normal}.ccd-rich-text-area .ProseMirror [data-indent=\"1\"]{margin-left:40px}.ccd-rich-text-area .ProseMirror [data-indent=\"2\"]{margin-left:80px}.ccd-rich-text-area .ProseMirror [data-indent=\"3\"]{margin-left:120px}.ccd-rich-text-area .ProseMirror [data-indent=\"4\"]{margin-left:160px}.ccd-rich-text-area .ProseMirror [data-indent=\"5\"]{margin-left:200px}.ccd-rich-text-area .ProseMirror [data-indent=\"6\"]{margin-left:240px}.ccd-rich-text-area .ProseMirror strong,.ccd-rich-text-area .ProseMirror strong *,.ccd-rich-text-area .ProseMirror b,.ccd-rich-text-area .ProseMirror b *{font-weight:700}.ccd-rich-text-area .ProseMirror strong u,.ccd-rich-text-area .ProseMirror u strong,.ccd-rich-text-area .ProseMirror b u,.ccd-rich-text-area .ProseMirror u b{font-weight:700!important;text-decoration:underline}.ccd-rich-text-area .ProseMirror:focus{box-shadow:none;outline:0}.ccd-rich-text-area .ProseMirror p,.ccd-rich-text-area .ProseMirror ul,.ccd-rich-text-area .ProseMirror ol,.ccd-rich-text-area .ProseMirror li{font-size:14px;margin-top:0;overflow-wrap:anywhere;word-break:normal}.ccd-rich-text-area .ProseMirror p{margin-bottom:5px}.ccd-rich-text-area .ProseMirror ul{list-style:disc outside;padding-left:25px}.ccd-rich-text-area .ProseMirror ol{list-style:decimal outside;padding-left:25px}.ccd-rich-text-area .ProseMirror ul[data-indent=\"1\"],.ccd-rich-text-area .ProseMirror ol[data-indent=\"1\"]{margin-left:40px;padding-left:25px}.ccd-rich-text-area .ProseMirror ul[data-indent=\"2\"],.ccd-rich-text-area .ProseMirror ol[data-indent=\"2\"]{margin-left:80px;padding-left:25px}.ccd-rich-text-area .ProseMirror ul[data-indent=\"3\"],.ccd-rich-text-area .ProseMirror ol[data-indent=\"3\"]{margin-left:120px;padding-left:25px}.ccd-rich-text-area .ProseMirror ul[data-indent=\"4\"],.ccd-rich-text-area .ProseMirror ol[data-indent=\"4\"]{margin-left:160px;padding-left:25px}.ccd-rich-text-area .ProseMirror ul[data-indent=\"5\"],.ccd-rich-text-area .ProseMirror ol[data-indent=\"5\"]{margin-left:200px;padding-left:25px}.ccd-rich-text-area .ProseMirror ul[data-indent=\"6\"],.ccd-rich-text-area .ProseMirror ol[data-indent=\"6\"]{margin-left:240px;padding-left:25px}.ccd-rich-text-area .ProseMirror ol[type=a]{list-style-type:lower-alpha}.ccd-rich-text-area .ProseMirror ol[type=i]{list-style-type:lower-roman}.ccd-rich-text-area .ProseMirror ol[type=i]>li::marker{content:\"(\" counter(list-item,lower-roman) \") \"}.ccd-rich-text-area .ProseMirror li{display:list-item;margin-bottom:5px}.ccd-rich-text-area .ProseMirror li>p{margin:0}.ccd-rich-text-area .ProseMirror li>ul,.ccd-rich-text-area .ProseMirror li>ol{margin-top:5px}\n"], encapsulation: 2 });
29402
+ } }, dependencies: [i5.NgClass, i5.NgIf, i4.NgSelectOption, i4.ɵNgSelectMultipleOption, i4.NgControlStatus, i4.FormControlDirective, i3$1.NgxEditorComponent, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], styles: [".ccd-rich-text-area{margin-bottom:30px}.ccd-rich-text-area__editor{max-width:100%}.ccd-rich-text-area__keyboard-instructions{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.ccd-rich-text-area__toolbar{align-items:center;background:#fff;border:1px solid #d8dde0;border-radius:6px;box-sizing:border-box;display:flex;flex-wrap:wrap;column-gap:2px;margin-bottom:10px;max-width:100%;padding:6px 8px;row-gap:6px;width:fit-content}.ccd-rich-text-area__toolbar-group{align-items:center;display:inline-flex;flex:0 0 auto;gap:2px}.ccd-rich-text-area__toolbar-group--list{max-width:100%}.ccd-rich-text-area .NgxEditor__Wrapper{border:1px solid #000;border-radius:0;box-sizing:border-box;height:255px;max-width:100%;min-height:255px;min-width:200px;overflow:hidden;resize:both;width:100%}.ccd-rich-text-area .NgxEditor__Wrapper:focus-within{outline:3px solid #ffdd00;outline-offset:0}.ccd-rich-text-area__toolbar-button{background:#fff;align-items:center;border:0;border-radius:2px;color:#0b0c0c;display:inline-flex;font-family:inherit;font-size:18px;font-weight:700;height:28px;justify-content:center;min-width:28px;padding:4px;width:28px}.ccd-rich-text-area__toolbar-button:hover{background:#f3f2f1}.ccd-rich-text-area__toolbar-button:focus{background:#fd0;box-shadow:0 0 0 2px #0b0c0c;outline:2px solid #ffdd00;outline-offset:0}.ccd-rich-text-area__toolbar-button--active,.ccd-rich-text-area__toolbar-button--active:hover{background:#1d70b8;color:#fff}.ccd-rich-text-area__toolbar-button--italic{font-style:italic}.ccd-rich-text-area__toolbar-button--underline{text-decoration:underline}.ccd-rich-text-area__toolbar-separator{border-left:1px solid #b1b4b6;height:24px;margin:0 5px 0 3px}.ccd-rich-text-area__heading-level{display:inline-flex;margin-right:3px}.ccd-rich-text-area__heading-level-label{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.ccd-rich-text-area__heading-level-select{background-color:#fff;border:1px solid #0b0c0c;border-radius:0;color:#0b0c0c;font-family:inherit;font-size:16px;height:32px;min-width:108px;padding:2px 24px 2px 6px;width:150px}.ccd-rich-text-area__heading-level-select:focus{box-shadow:0 0 0 2px #0b0c0c;outline:3px solid #ffdd00;outline-offset:0}.ccd-rich-text-area__list-style{align-items:center;display:inline-flex;gap:8px;margin:0 4px;min-width:0}.ccd-rich-text-area__list-style-label{font-weight:700;white-space:nowrap}.ccd-rich-text-area__list-style-select{background-color:#fff;border:1px solid #0b0c0c;border-radius:0;color:#0b0c0c;font-family:inherit;font-size:16px;height:32px;max-width:100%;min-width:0;padding:2px 28px 2px 8px;width:260px}.ccd-rich-text-area__list-style-select:focus{box-shadow:0 0 0 2px #0b0c0c;outline:3px solid #ffdd00;outline-offset:0}@media(max-width:480px){.ccd-rich-text-area__toolbar-group--list{flex-wrap:wrap}.ccd-rich-text-area__list-style{flex:1 1 100%;margin-left:0}.ccd-rich-text-area__list-style-select{flex:1 1 auto;width:auto}}.ccd-rich-text-area__toolbar-icon{display:block;fill:currentColor;height:20px;width:20px}.ccd-rich-text-area__toolbar-icon--paragraph{display:inline-flex;font-size:18px;line-height:1;width:auto}.ccd-rich-text-area__toolbar-icon--heading{display:inline-flex;font-size:18px;font-weight:700;line-height:1;width:auto}.ccd-rich-text-area .ProseMirror h1{font-size:20px;font-weight:700}.ccd-rich-text-area .ProseMirror h2{font-size:18px;font-weight:700}.ccd-rich-text-area .ProseMirror h3{font-size:16px;font-weight:700}.ccd-rich-text-area .NgxEditor__Wrapper .NgxEditor{border:0;border-radius:0;height:100%;min-height:0;overflow:hidden;width:100%}.ccd-rich-text-area__editor--error .NgxEditor__Wrapper{border-color:#d4351c}.ccd-rich-text-area .NgxEditor__Content{box-sizing:border-box;font-size:14px;height:100%;min-height:0;overflow-x:hidden;overflow-y:auto;padding:12px 14px}.ccd-rich-text-area .ProseMirror{font-size:14px;min-height:231px;outline:0;overflow-wrap:anywhere;white-space:pre-wrap;word-break:normal}.ccd-rich-text-area .ProseMirror [data-indent=\"1\"]{margin-left:40px}.ccd-rich-text-area .ProseMirror [data-indent=\"2\"]{margin-left:80px}.ccd-rich-text-area .ProseMirror [data-indent=\"3\"]{margin-left:120px}.ccd-rich-text-area .ProseMirror [data-indent=\"4\"]{margin-left:160px}.ccd-rich-text-area .ProseMirror [data-indent=\"5\"]{margin-left:200px}.ccd-rich-text-area .ProseMirror [data-indent=\"6\"]{margin-left:240px}.ccd-rich-text-area .ProseMirror strong,.ccd-rich-text-area .ProseMirror strong *,.ccd-rich-text-area .ProseMirror b,.ccd-rich-text-area .ProseMirror b *{font-weight:700}.ccd-rich-text-area .ProseMirror strong u,.ccd-rich-text-area .ProseMirror u strong,.ccd-rich-text-area .ProseMirror b u,.ccd-rich-text-area .ProseMirror u b{font-weight:700!important;text-decoration:underline}.ccd-rich-text-area .ProseMirror:focus{box-shadow:none;outline:0}.ccd-rich-text-area .ProseMirror p,.ccd-rich-text-area .ProseMirror ul,.ccd-rich-text-area .ProseMirror ol,.ccd-rich-text-area .ProseMirror li{font-size:14px;margin-top:0;overflow-wrap:anywhere;word-break:normal}.ccd-rich-text-area .ProseMirror p{margin-bottom:5px}.ccd-rich-text-area .ProseMirror ul{list-style:disc outside;padding-left:25px}.ccd-rich-text-area .ProseMirror ol{list-style:decimal outside;padding-left:25px}.ccd-rich-text-area .ProseMirror ul[data-indent=\"1\"],.ccd-rich-text-area .ProseMirror ol[data-indent=\"1\"]{margin-left:40px;padding-left:25px}.ccd-rich-text-area .ProseMirror ul[data-indent=\"2\"],.ccd-rich-text-area .ProseMirror ol[data-indent=\"2\"]{margin-left:80px;padding-left:25px}.ccd-rich-text-area .ProseMirror ul[data-indent=\"3\"],.ccd-rich-text-area .ProseMirror ol[data-indent=\"3\"]{margin-left:120px;padding-left:25px}.ccd-rich-text-area .ProseMirror ul[data-indent=\"4\"],.ccd-rich-text-area .ProseMirror ol[data-indent=\"4\"]{margin-left:160px;padding-left:25px}.ccd-rich-text-area .ProseMirror ul[data-indent=\"5\"],.ccd-rich-text-area .ProseMirror ol[data-indent=\"5\"]{margin-left:200px;padding-left:25px}.ccd-rich-text-area .ProseMirror ul[data-indent=\"6\"],.ccd-rich-text-area .ProseMirror ol[data-indent=\"6\"]{margin-left:240px;padding-left:25px}.ccd-rich-text-area .ProseMirror ol[type=a]{list-style-type:lower-alpha}.ccd-rich-text-area .ProseMirror ol[type=i]{list-style-type:lower-roman}.ccd-rich-text-area .ProseMirror ol[type=i]>li::marker{content:\"(\" counter(list-item,lower-roman) \") \"}.ccd-rich-text-area .ProseMirror li{display:list-item;margin-bottom:5px}.ccd-rich-text-area .ProseMirror li>p{margin:0}.ccd-rich-text-area .ProseMirror li>ul,.ccd-rich-text-area .ProseMirror li>ol{margin-top:5px}\n"], encapsulation: 2 });
29436
29403
  }
29437
29404
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteRichTextAreaFieldComponent, [{
29438
29405
  type: Component,
@@ -29464,7 +29431,7 @@ class ReadTextFieldComponent extends AbstractFieldReadComponent {
29464
29431
  }], null, null); })();
29465
29432
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadTextFieldComponent, { className: "ReadTextFieldComponent", filePath: "lib/shared/components/palette/text/read-text-field.component.ts", lineNumber: 9 }); })();
29466
29433
 
29467
- const _c0$D = a0 => ({ "form-group-error": a0 });
29434
+ const _c0$C = a0 => ({ "form-group-error": a0 });
29468
29435
  const _c1$d = a0 => ({ "govuk-input--error": a0 });
29469
29436
  function WriteTextFieldComponent_label_1_span_1_Template(rf, ctx) { if (rf & 1) {
29470
29437
  i0.ɵɵelementStart(0, "span", 7);
@@ -29522,7 +29489,7 @@ class WriteTextFieldComponent extends AbstractFieldWriteComponent {
29522
29489
  i0.ɵɵlistener("blur", function WriteTextFieldComponent_Template_input_blur_4_listener($event) { return ctx.onBlur($event); });
29523
29490
  i0.ɵɵelementEnd()();
29524
29491
  } if (rf & 2) {
29525
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$D, !!ctx.textControl && !ctx.textControl.valid && (ctx.textControl.dirty || ctx.textControl.touched)));
29492
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$C, !!ctx.textControl && !ctx.textControl.valid && (ctx.textControl.dirty || ctx.textControl.touched)));
29526
29493
  i0.ɵɵadvance();
29527
29494
  i0.ɵɵproperty("ngIf", !ctx.caseField.hidden);
29528
29495
  i0.ɵɵadvance();
@@ -29560,7 +29527,7 @@ class ReadTextAreaFieldComponent extends AbstractFieldReadComponent {
29560
29527
  }], null, null); })();
29561
29528
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadTextAreaFieldComponent, { className: "ReadTextAreaFieldComponent", filePath: "lib/shared/components/palette/text-area/read-text-area-field.component.ts", lineNumber: 9 }); })();
29562
29529
 
29563
- const _c0$C = a0 => ({ "form-group-error": a0 });
29530
+ const _c0$B = a0 => ({ "form-group-error": a0 });
29564
29531
  const _c1$c = a0 => ({ "govuk-textarea--error": a0 });
29565
29532
  function WriteTextAreaFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
29566
29533
  i0.ɵɵelementStart(0, "span", 6);
@@ -29619,7 +29586,7 @@ class WriteTextAreaFieldComponent extends AbstractFieldWriteComponent {
29619
29586
  i0.ɵɵlistener("input", function WriteTextAreaFieldComponent_Template_textarea_input_5_listener($event) { return ctx.autoGrow($event); });
29620
29587
  i0.ɵɵelementEnd()();
29621
29588
  } if (rf & 2) {
29622
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$C, !ctx.textareaControl.valid && ctx.textareaControl.dirty));
29589
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$B, !ctx.textareaControl.valid && ctx.textareaControl.dirty));
29623
29590
  i0.ɵɵadvance();
29624
29591
  i0.ɵɵproperty("for", ctx.id());
29625
29592
  i0.ɵɵadvance();
@@ -29656,86 +29623,31 @@ class UnsupportedFieldComponent {
29656
29623
  }], null, null); })();
29657
29624
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UnsupportedFieldComponent, { className: "UnsupportedFieldComponent", filePath: "lib/shared/components/palette/unsupported-field.component.ts", lineNumber: 8 }); })();
29658
29625
 
29659
- const _c0$B = ["paymentHost"];
29660
- function WaysToPayFieldComponent_p_0_Template(rf, ctx) { if (rf & 1) {
29661
- i0.ɵɵelementStart(0, "p", 2);
29662
- i0.ɵɵtext(1, "The payment information could not be loaded. Please try again.");
29663
- i0.ɵɵelementEnd();
29626
+ function WaysToPayFieldComponent_ccpay_payment_lib_0_Template(rf, ctx) { if (rf & 1) {
29627
+ i0.ɵɵelement(0, "ccpay-payment-lib", 1);
29628
+ } if (rf & 2) {
29629
+ const ctx_r0 = i0.ɵɵnextContext();
29630
+ i0.ɵɵproperty("API_ROOT", ctx_r0.getBaseURL())("BULKSCAN_API_ROOT", ctx_r0.getPayBulkScanBaseURL())("REFUNDS_API_ROOT", ctx_r0.getRefundsUrl())("NOTIFICATION_API_ROOT", ctx_r0.getNotificationUrl())("CCD_CASE_NUMBER", ctx_r0.caseReference)("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", true)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx_r0.caseReference)("DCN_NUMBER", null)("SELECTED_OPTION", "CCDorException")("LOGGEDINUSERROLES", ctx_r0.getUserRoles())("CARDPAYMENTRETURNURL", ctx_r0.getCardPaymentReturnUrl())("ISPAYMENTSTATUSENABLED", "Enable");
29664
29631
  } }
29665
29632
  class WaysToPayFieldComponent extends PaymentField {
29666
- environmentInjector;
29667
- paymentLoadError = false;
29668
- paymentHost;
29669
- paymentComponentRef;
29670
- paymentModuleRef;
29671
- constructor(appConfig, sessionStorage, environmentInjector) {
29633
+ constructor(appConfig, sessionStorage) {
29672
29634
  super(appConfig, sessionStorage);
29673
- this.environmentInjector = environmentInjector;
29674
- }
29675
- ngAfterViewInit() {
29676
- if (this.getUserRoles().length > 0) {
29677
- void this.renderPayment();
29678
- }
29679
- }
29680
- ngOnDestroy() {
29681
- this.paymentHost?.clear();
29682
- this.paymentComponentRef = undefined;
29683
- this.paymentModuleRef?.destroy();
29684
29635
  }
29685
29636
  getCardPaymentReturnUrl() {
29686
29637
  return this.appConfig.getPaymentReturnUrl();
29687
29638
  }
29688
- async renderPayment() {
29689
- let paymentLibrary;
29690
- try {
29691
- paymentLibrary = await import('@hmcts/ccpay-web-component');
29692
- }
29693
- catch {
29694
- this.paymentLoadError = true;
29695
- return;
29696
- }
29697
- const { PaymentLibComponent, PaymentLibModule } = paymentLibrary;
29698
- this.paymentModuleRef = createNgModule(PaymentLibModule, this.environmentInjector);
29699
- this.paymentComponentRef = this.paymentHost.createComponent(PaymentLibComponent, {
29700
- ngModuleRef: this.paymentModuleRef
29701
- });
29702
- this.paymentComponentRef.setInput('API_ROOT', this.getBaseURL());
29703
- this.paymentComponentRef.setInput('BULKSCAN_API_ROOT', this.getPayBulkScanBaseURL());
29704
- this.paymentComponentRef.setInput('REFUNDS_API_ROOT', this.getRefundsUrl());
29705
- this.paymentComponentRef.setInput('NOTIFICATION_API_ROOT', this.getNotificationUrl());
29706
- this.paymentComponentRef.setInput('CCD_CASE_NUMBER', this.caseReference);
29707
- this.paymentComponentRef.setInput('VIEW', 'case-transactions');
29708
- this.paymentComponentRef.setInput('TAKEPAYMENT', false);
29709
- this.paymentComponentRef.setInput('SERVICEREQUEST', true);
29710
- this.paymentComponentRef.setInput('PAYMENT_GROUP_REF', null);
29711
- this.paymentComponentRef.setInput('EXC_REFERENCE', this.caseReference);
29712
- this.paymentComponentRef.setInput('DCN_NUMBER', null);
29713
- this.paymentComponentRef.setInput('SELECTED_OPTION', 'CCDorException');
29714
- this.paymentComponentRef.setInput('LOGGEDINUSERROLES', this.getUserRoles());
29715
- this.paymentComponentRef.setInput('CARDPAYMENTRETURNURL', this.getCardPaymentReturnUrl());
29716
- this.paymentComponentRef.setInput('ISPAYMENTSTATUSENABLED', 'Enable');
29717
- }
29718
- static ɵfac = function WaysToPayFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WaysToPayFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(i0.EnvironmentInjector)); };
29719
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WaysToPayFieldComponent, selectors: [["ccd-ways-to-pay-field"]], viewQuery: function WaysToPayFieldComponent_Query(rf, ctx) { if (rf & 1) {
29720
- i0.ɵɵviewQuery(_c0$B, 5, ViewContainerRef);
29721
- } if (rf & 2) {
29722
- let _t;
29723
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.paymentHost = _t.first);
29724
- } }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 1, consts: [["paymentHost", ""], ["class", "govuk-error-message", 4, "ngIf"], [1, "govuk-error-message"]], template: function WaysToPayFieldComponent_Template(rf, ctx) { if (rf & 1) {
29725
- i0.ɵɵtemplate(0, WaysToPayFieldComponent_p_0_Template, 2, 0, "p", 1);
29726
- i0.ɵɵelementContainer(1, null, 0);
29639
+ static ɵfac = function WaysToPayFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WaysToPayFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(SessionStorageService)); };
29640
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WaysToPayFieldComponent, selectors: [["ccd-ways-to-pay-field"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[3, "API_ROOT", "BULKSCAN_API_ROOT", "REFUNDS_API_ROOT", "NOTIFICATION_API_ROOT", "CCD_CASE_NUMBER", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "SELECTED_OPTION", "LOGGEDINUSERROLES", "CARDPAYMENTRETURNURL", "ISPAYMENTSTATUSENABLED", 4, "ngIf"], [3, "API_ROOT", "BULKSCAN_API_ROOT", "REFUNDS_API_ROOT", "NOTIFICATION_API_ROOT", "CCD_CASE_NUMBER", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "SELECTED_OPTION", "LOGGEDINUSERROLES", "CARDPAYMENTRETURNURL", "ISPAYMENTSTATUSENABLED"]], template: function WaysToPayFieldComponent_Template(rf, ctx) { if (rf & 1) {
29641
+ i0.ɵɵtemplate(0, WaysToPayFieldComponent_ccpay_payment_lib_0_Template, 1, 15, "ccpay-payment-lib", 0);
29727
29642
  } if (rf & 2) {
29728
- i0.ɵɵproperty("ngIf", ctx.paymentLoadError);
29729
- } }, dependencies: [i5.NgIf], encapsulation: 2 });
29643
+ i0.ɵɵproperty("ngIf", ctx.getUserRoles().length > 0);
29644
+ } }, dependencies: [i5.NgIf, i3.PaymentLibComponent], encapsulation: 2 });
29730
29645
  }
29731
29646
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WaysToPayFieldComponent, [{
29732
29647
  type: Component,
29733
- args: [{ selector: 'ccd-ways-to-pay-field', standalone: false, template: "<p *ngIf=\"paymentLoadError\" class=\"govuk-error-message\">The payment information could not be loaded. Please try again.</p>\n<ng-container #paymentHost></ng-container>\n" }]
29734
- }], () => [{ type: AbstractAppConfig }, { type: SessionStorageService }, { type: i0.EnvironmentInjector }], { paymentHost: [{
29735
- type: ViewChild,
29736
- args: ['paymentHost', { read: ViewContainerRef }]
29737
- }] }); })();
29738
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WaysToPayFieldComponent, { className: "WaysToPayFieldComponent", filePath: "lib/shared/components/palette/waystopay/waystopay-field.component.ts", lineNumber: 21 }); })();
29648
+ args: [{ selector: 'ccd-ways-to-pay-field', standalone: false, template: "<ccpay-payment-lib *ngIf=\"getUserRoles().length > 0\"\n [API_ROOT]=\"getBaseURL()\"\n [BULKSCAN_API_ROOT]=\"getPayBulkScanBaseURL()\"\n [REFUNDS_API_ROOT]=\"getRefundsUrl()\"\n [NOTIFICATION_API_ROOT]=\"getNotificationUrl()\"\n [CCD_CASE_NUMBER]=\"caseReference\"\n [VIEW]=\"'case-transactions'\"\n [TAKEPAYMENT]=\"false\"\n [SERVICEREQUEST]=\"true\"\n [PAYMENT_GROUP_REF]=\"null\"\n [EXC_REFERENCE]=\"caseReference\"\n [DCN_NUMBER]=\"null\"\n [SELECTED_OPTION]=\"'CCDorException'\"\n [LOGGEDINUSERROLES]=\"getUserRoles()\"\n [CARDPAYMENTRETURNURL]=\"getCardPaymentReturnUrl()\"\n [ISPAYMENTSTATUSENABLED]=\"'Enable'\"\n></ccpay-payment-lib>" }]
29649
+ }], () => [{ type: AbstractAppConfig }, { type: SessionStorageService }], null); })();
29650
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WaysToPayFieldComponent, { className: "WaysToPayFieldComponent", filePath: "lib/shared/components/palette/waystopay/waystopay-field.component.ts", lineNumber: 11 }); })();
29739
29651
 
29740
29652
  class YesNoService {
29741
29653
  static YES_INPUTS = [
@@ -37006,6 +36918,8 @@ class PaletteModule {
37006
36918
  MatAutocompleteModule,
37007
36919
  CdkTreeModule,
37008
36920
  OverlayModule,
36921
+ // Payment services provided at root depend on providers from this module.
36922
+ PaymentLibModule,
37009
36923
  RpxTranslationModule.forChild(),
37010
36924
  CdkTreeModule,
37011
36925
  OverlayModule,
@@ -37060,6 +36974,8 @@ class PaletteModule {
37060
36974
  MatAutocompleteModule,
37061
36975
  CdkTreeModule,
37062
36976
  OverlayModule,
36977
+ // Payment services provided at root depend on providers from this module.
36978
+ PaymentLibModule,
37063
36979
  RpxTranslationModule.forChild(),
37064
36980
  CdkTreeModule,
37065
36981
  OverlayModule,
@@ -37285,12 +37201,14 @@ class PaletteModule {
37285
37201
  MatDatepickerModule,
37286
37202
  MatAutocompleteModule,
37287
37203
  CdkTreeModule,
37288
- OverlayModule, i1.RpxTranslationModule, CdkTreeModule,
37204
+ OverlayModule,
37205
+ // Payment services provided at root depend on providers from this module.
37206
+ PaymentLibModule, i1.RpxTranslationModule, CdkTreeModule,
37289
37207
  OverlayModule,
37290
37208
  MatDialogModule,
37291
37209
  LoadingModule,
37292
37210
  MarkdownComponentModule,
37293
- ErrorsModule, i3.NgxEditorModule], exports: [NgxMatDatepickerActions,
37211
+ ErrorsModule, i3$1.NgxEditorModule], exports: [NgxMatDatepickerActions,
37294
37212
  NgxMatDatepickerApply,
37295
37213
  NgxMatDatepickerInput,
37296
37214
  NgxMatDatetimepicker,