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

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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, Input, Injectable, DOCUMENT, Inject, NgModule, EventEmitter, Optional, Output, ViewEncapsulation, forwardRef, Pipe, ContentChildren, ViewChildren, InjectionToken, ChangeDetectorRef, Directive, ViewChild, ChangeDetectionStrategy, SecurityContext, Injector, ViewContainerRef, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
2
+ import { Component, Input, Injectable, DOCUMENT, Inject, NgModule, EventEmitter, Optional, Output, ViewEncapsulation, forwardRef, Pipe, ContentChildren, ViewChildren, InjectionToken, ChangeDetectorRef, Directive, ViewChild, createNgModule, ViewContainerRef, ChangeDetectionStrategy, SecurityContext, Injector, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
3
3
  import * as i5 from '@angular/common';
4
4
  import { CommonModule, AsyncPipe, CurrencyPipe, formatDate } from '@angular/common';
5
5
  import * as i1 from 'rpx-xui-translation';
@@ -14,6 +14,8 @@ import * as i1$2 from '@angular/router';
14
14
  import { RouterModule, NavigationStart, NavigationEnd } from '@angular/router';
15
15
  import * as i4 from '@angular/forms';
16
16
  import { NG_VALUE_ACCESSOR, NG_VALIDATORS, FormArray, FormGroup, FormControl, Validators, ReactiveFormsModule, FormsModule } from '@angular/forms';
17
+ import { safeJsonParse } from '@hmcts/ccd-case-ui-toolkit/json-utils';
18
+ export { safeJsonParse } from '@hmcts/ccd-case-ui-toolkit/json-utils';
17
19
  import moment from 'moment';
18
20
  import * as _ from 'underscore';
19
21
  import 'reflect-metadata';
@@ -25,11 +27,9 @@ import * as i1$4 from 'ngx-markdown';
25
27
  import { MarkdownModule } from 'ngx-markdown';
26
28
  import * as i6 from '@angular/material/autocomplete';
27
29
  import { MatAutocompleteTrigger, MatAutocompleteModule } from '@angular/material/autocomplete';
28
- import * as i3 from '@hmcts/ccpay-web-component';
29
- import { PaymentLibModule } from '@hmcts/ccpay-web-component';
30
30
  import { v4 } from 'uuid';
31
31
  import * as i4$1 from '@angular/platform-browser';
32
- import * as i3$1 from 'ngx-editor';
32
+ import * as i3 from 'ngx-editor';
33
33
  import { Editor, NgxEditorModule } from 'ngx-editor';
34
34
  import { nodes, marks } from 'ngx-editor/schema';
35
35
  import { setBlockType } from 'prosemirror-commands';
@@ -50,10 +50,8 @@ import * as i5$1 from '@angular/material/form-field';
50
50
  import { MatFormFieldModule } from '@angular/material/form-field';
51
51
  import * as i6$2 from '@angular/material/datepicker';
52
52
  import { MatDatepickerModule } from '@angular/material/datepicker';
53
- import * as i15 from '@angular/material/input';
53
+ import * as i14 from '@angular/material/input';
54
54
  import { MatInputModule } from '@angular/material/input';
55
- import * as i14 from '@hmcts/media-viewer';
56
- import { MediaViewerModule } from '@hmcts/media-viewer';
57
55
  import { PortalModule } from '@angular/cdk/portal';
58
56
  import * as i2$1 from 'ngx-pagination';
59
57
  import { NgxPaginationModule, PaginatePipe } from 'ngx-pagination';
@@ -61,7 +59,7 @@ import * as i10 from '@angular/material/tabs';
61
59
  import { MatTabsModule } from '@angular/material/tabs';
62
60
  import { compressToUTF16, decompressFromUTF16 } from 'lz-string';
63
61
 
64
- const _c0$1a = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
62
+ const _c0$1d = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
65
63
  const _c1$w = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
66
64
  function FooterComponent_div_2_Template(rf, ctx) { if (rf & 1) {
67
65
  i0.ɵɵelementStart(0, "div", 3)(1, "div", 4);
@@ -139,7 +137,7 @@ class FooterComponent {
139
137
  workhours;
140
138
  static ɵfac = function FooterComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FooterComponent)(); };
141
139
  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) {
142
- i0.ɵɵprojectionDef(_c0$1a);
140
+ i0.ɵɵprojectionDef(_c0$1d);
143
141
  i0.ɵɵelementStart(0, "footer", 0)(1, "div", 1);
144
142
  i0.ɵɵtemplate(2, FooterComponent_div_2_Template, 20, 15, "div", 2)(3, FooterComponent_div_3_Template, 20, 16, "div", 2);
145
143
  i0.ɵɵelementEnd()();
@@ -780,7 +778,7 @@ class ProfileService {
780
778
  type: Injectable
781
779
  }], () => [{ type: HttpService }, { type: AbstractAppConfig }], null); })();
782
780
 
783
- const _c0$19 = [[["", "headerNavigation", ""]]];
781
+ const _c0$1c = [[["", "headerNavigation", ""]]];
784
782
  const _c1$v = ["[headerNavigation]"];
785
783
  function HeaderBarComponent_div_3_Template(rf, ctx) { if (rf & 1) {
786
784
  i0.ɵɵelementStart(0, "div")(1, "a", 12);
@@ -831,7 +829,7 @@ class HeaderBarComponent {
831
829
  }
832
830
  static ɵfac = function HeaderBarComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || HeaderBarComponent)(i0.ɵɵdirectiveInject(ProfileService, 8), i0.ɵɵdirectiveInject(ProfileNotifier, 8)); };
833
831
  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) {
834
- i0.ɵɵprojectionDef(_c0$19);
832
+ i0.ɵɵprojectionDef(_c0$1c);
835
833
  i0.ɵɵelementStart(0, "header", 0)(1, "div", 1)(2, "div", 2);
836
834
  i0.ɵɵtemplate(3, HeaderBarComponent_div_3_Template, 4, 1, "div", 3)(4, HeaderBarComponent_div_4_Template, 5, 3, "div", 4);
837
835
  i0.ɵɵelementEnd();
@@ -885,13 +883,13 @@ class HeaderBarComponent {
885
883
  }] }); })();
886
884
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(HeaderBarComponent, { className: "HeaderBarComponent", filePath: "lib/components/header/header-bar/header-bar.component.ts", lineNumber: 11 }); })();
887
885
 
888
- const _c0$18 = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
886
+ const _c0$1b = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
889
887
  const _c1$u = ["[leftNavLinks]", "[rightNavLinks]"];
890
888
  class NavigationComponent {
891
889
  isSolicitor;
892
890
  static ɵfac = function NavigationComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || NavigationComponent)(); };
893
891
  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) {
894
- i0.ɵɵprojectionDef(_c0$18);
892
+ i0.ɵɵprojectionDef(_c0$1b);
895
893
  i0.ɵɵelementStart(0, "div")(1, "nav", 0);
896
894
  i0.ɵɵprojection(2);
897
895
  i0.ɵɵprojection(3, 1);
@@ -1009,12 +1007,12 @@ class HeadersModule {
1009
1007
  }], null, null); })();
1010
1008
  (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(HeadersModule, { declarations: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent], imports: [CommonModule, RouterModule, i1.RpxTranslationModule], exports: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent] }); })();
1011
1009
 
1012
- const _c0$17 = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
1010
+ const _c0$1a = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
1013
1011
  const _c1$t = ["[topBody]", "[leftBody]", "[rightBody]"];
1014
1012
  class BodyComponent {
1015
1013
  static ɵfac = function BodyComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BodyComponent)(); };
1016
1014
  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) {
1017
- i0.ɵɵprojectionDef(_c0$17);
1015
+ i0.ɵɵprojectionDef(_c0$1a);
1018
1016
  i0.ɵɵelementStart(0, "div", 0);
1019
1017
  i0.ɵɵprojection(1);
1020
1018
  i0.ɵɵprojection(2, 1);
@@ -1028,7 +1026,7 @@ class BodyComponent {
1028
1026
  }], null, null); })();
1029
1027
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BodyComponent, { className: "BodyComponent", filePath: "lib/components/body/body.component.ts", lineNumber: 10 }); })();
1030
1028
 
1031
- const _c0$16 = a0 => ({ "govuk-input--error": a0 });
1029
+ const _c0$19 = a0 => ({ "govuk-input--error": a0 });
1032
1030
  function DateInputComponent_div_19_Template(rf, ctx) { if (rf & 1) {
1033
1031
  const _r5 = i0.ɵɵgetCurrentView();
1034
1032
  i0.ɵɵelementStart(0, "div", 15)(1, "span", 8);
@@ -1045,7 +1043,7 @@ function DateInputComponent_div_19_Template(rf, ctx) { if (rf & 1) {
1045
1043
  i0.ɵɵadvance();
1046
1044
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 7, "Hour"));
1047
1045
  i0.ɵɵadvance(2);
1048
- i0.ɵɵproperty("id", ctx_r6.hourId())("name", ctx_r6.hourId())("value", ctx_r6.displayHour)("ngClass", i0.ɵɵpureFunction1(9, _c0$16, ctx_r6.isInvalid));
1046
+ i0.ɵɵproperty("id", ctx_r6.hourId())("name", ctx_r6.hourId())("value", ctx_r6.displayHour)("ngClass", i0.ɵɵpureFunction1(9, _c0$19, ctx_r6.isInvalid));
1049
1047
  i0.ɵɵattribute("aria-labelledby", "hour-label-" + ctx_r6.hourId());
1050
1048
  } }
1051
1049
  function DateInputComponent_div_20_Template(rf, ctx) { if (rf & 1) {
@@ -1064,7 +1062,7 @@ function DateInputComponent_div_20_Template(rf, ctx) { if (rf & 1) {
1064
1062
  i0.ɵɵadvance();
1065
1063
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 7, "Minute"));
1066
1064
  i0.ɵɵadvance(2);
1067
- i0.ɵɵproperty("id", ctx_r6.minuteId())("name", ctx_r6.minuteId())("value", ctx_r6.displayMinute)("ngClass", i0.ɵɵpureFunction1(9, _c0$16, ctx_r6.isInvalid));
1065
+ i0.ɵɵproperty("id", ctx_r6.minuteId())("name", ctx_r6.minuteId())("value", ctx_r6.displayMinute)("ngClass", i0.ɵɵpureFunction1(9, _c0$19, ctx_r6.isInvalid));
1068
1066
  i0.ɵɵattribute("aria-labelledby", "minute-label-" + ctx_r6.minuteId());
1069
1067
  } }
1070
1068
  function DateInputComponent_div_21_Template(rf, ctx) { if (rf & 1) {
@@ -1083,7 +1081,7 @@ function DateInputComponent_div_21_Template(rf, ctx) { if (rf & 1) {
1083
1081
  i0.ɵɵadvance();
1084
1082
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 7, "Second"));
1085
1083
  i0.ɵɵadvance(2);
1086
- i0.ɵɵproperty("id", ctx_r6.secondId())("name", ctx_r6.secondId())("value", ctx_r6.displaySecond)("ngClass", i0.ɵɵpureFunction1(9, _c0$16, ctx_r6.isInvalid));
1084
+ i0.ɵɵproperty("id", ctx_r6.secondId())("name", ctx_r6.secondId())("value", ctx_r6.displaySecond)("ngClass", i0.ɵɵpureFunction1(9, _c0$19, ctx_r6.isInvalid));
1087
1085
  i0.ɵɵattribute("aria-labelledby", "second-label-" + ctx_r6.secondId());
1088
1086
  } }
1089
1087
  class DateInputComponent {
@@ -1319,21 +1317,21 @@ class DateInputComponent {
1319
1317
  i0.ɵɵadvance();
1320
1318
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 24, "Day"));
1321
1319
  i0.ɵɵadvance(2);
1322
- i0.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0.ɵɵpureFunction1(30, _c0$16, ctx.isInvalid));
1320
+ i0.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0.ɵɵpureFunction1(30, _c0$19, ctx.isInvalid));
1323
1321
  i0.ɵɵattribute("aria-labelledby", "day-label-" + ctx.dayId());
1324
1322
  i0.ɵɵadvance(3);
1325
1323
  i0.ɵɵattribute("id", "month-label-" + ctx.monthId());
1326
1324
  i0.ɵɵadvance();
1327
1325
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 26, "Month"));
1328
1326
  i0.ɵɵadvance(2);
1329
- i0.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0.ɵɵpureFunction1(32, _c0$16, ctx.isInvalid));
1327
+ i0.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0.ɵɵpureFunction1(32, _c0$19, ctx.isInvalid));
1330
1328
  i0.ɵɵattribute("aria-labelledby", "month-label-" + ctx.monthId());
1331
1329
  i0.ɵɵadvance(3);
1332
1330
  i0.ɵɵattribute("id", "year-label-" + ctx.yearId());
1333
1331
  i0.ɵɵadvance();
1334
1332
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(16, 28, "Year"));
1335
1333
  i0.ɵɵadvance(2);
1336
- i0.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0.ɵɵpureFunction1(34, _c0$16, ctx.isInvalid));
1334
+ i0.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0.ɵɵpureFunction1(34, _c0$19, ctx.isInvalid));
1337
1335
  i0.ɵɵattribute("aria-labelledby", "year-label-" + ctx.yearId());
1338
1336
  i0.ɵɵadvance(2);
1339
1337
  i0.ɵɵproperty("ngIf", ctx.isDateTime);
@@ -1370,7 +1368,7 @@ class DateInputComponent {
1370
1368
  }] }); })();
1371
1369
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DateInputComponent, { className: "DateInputComponent", filePath: "lib/components/form/date-input/date-input.component.ts", lineNumber: 21 }); })();
1372
1370
 
1373
- const _c0$15 = ["*"];
1371
+ const _c0$18 = ["*"];
1374
1372
  function AlertComponent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
1375
1373
  i0.ɵɵelementContainerStart(0);
1376
1374
  i0.ɵɵnamespaceSVG();
@@ -1420,7 +1418,7 @@ class AlertComponent {
1420
1418
  showIcon = true;
1421
1419
  alertMessageType = AlertMessageType;
1422
1420
  static ɵfac = function AlertComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AlertComponent)(); };
1423
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, standalone: false, ngContentSelectors: _c0$15, 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) {
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) {
1424
1422
  i0.ɵɵprojectionDef();
1425
1423
  i0.ɵɵelementStart(0, "div", 0);
1426
1424
  i0.ɵɵelementContainerStart(1, 1);
@@ -1634,14 +1632,14 @@ class NotificationBannerComponent {
1634
1632
  }] }); })();
1635
1633
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(NotificationBannerComponent, { className: "NotificationBannerComponent", filePath: "lib/components/banners/notification-banner/notification-banner.component.ts", lineNumber: 11 }); })();
1636
1634
 
1637
- const _c0$14 = ["*"];
1635
+ const _c0$17 = ["*"];
1638
1636
  const _c1$s = a0 => ({ "js-hidden": a0 });
1639
1637
  class TabComponent {
1640
1638
  id;
1641
1639
  title;
1642
1640
  selected;
1643
1641
  static ɵfac = function TabComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TabComponent)(); };
1644
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, standalone: false, ngContentSelectors: _c0$14, decls: 2, vars: 5, consts: [["role", "tabpanel", 1, "tabs-panel", 3, "id", "ngClass"]], template: function TabComponent_Template(rf, ctx) { if (rf & 1) {
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) {
1645
1643
  i0.ɵɵprojectionDef();
1646
1644
  i0.ɵɵelementStart(0, "div", 0);
1647
1645
  i0.ɵɵprojection(1);
@@ -1663,7 +1661,7 @@ class TabComponent {
1663
1661
  }] }); })();
1664
1662
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TabComponent, { className: "TabComponent", filePath: "lib/components/tabs/tab.component.ts", lineNumber: 11 }); })();
1665
1663
 
1666
- const _c0$13 = ["tab"];
1664
+ const _c0$16 = ["tab"];
1667
1665
  const _c1$r = ["*"];
1668
1666
  const _c2$5 = () => ["."];
1669
1667
  const _c3$1 = a0 => ({ "tabs-toggle-selected": a0 });
@@ -1710,7 +1708,7 @@ class TabsComponent {
1710
1708
  let _t;
1711
1709
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.panels = _t);
1712
1710
  } }, viewQuery: function TabsComponent_Query(rf, ctx) { if (rf & 1) {
1713
- i0.ɵɵviewQuery(_c0$13, 5);
1711
+ i0.ɵɵviewQuery(_c0$16, 5);
1714
1712
  } if (rf & 2) {
1715
1713
  let _t;
1716
1714
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabs = _t);
@@ -1769,7 +1767,7 @@ class TabsModule {
1769
1767
  RouterModule, i1.RpxTranslationModule], exports: [TabsComponent,
1770
1768
  TabComponent] }); })();
1771
1769
 
1772
- const _c0$12 = (a0, a1) => ({ caseLocked: a0, someoneViewing: a1 });
1770
+ const _c0$15 = (a0, a1) => ({ caseLocked: a0, someoneViewing: a1 });
1773
1771
  class ActivityBannerComponent {
1774
1772
  bannerType;
1775
1773
  description;
@@ -1788,7 +1786,7 @@ class ActivityBannerComponent {
1788
1786
  i0.ɵɵpipe(6, "rpxTranslate");
1789
1787
  i0.ɵɵelementEnd()();
1790
1788
  } if (rf & 2) {
1791
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(10, _c0$12, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
1789
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(10, _c0$15, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
1792
1790
  i0.ɵɵadvance(2);
1793
1791
  i0.ɵɵproperty("alt", i0.ɵɵinterpolate(i0.ɵɵpipeBind1(3, 6, ctx.description)))("src", i0.ɵɵinterpolate(ctx.imageLink), i0.ɵɵsanitizeUrl);
1794
1792
  i0.ɵɵadvance(3);
@@ -1891,21 +1889,6 @@ class SessionStorageService {
1891
1889
  }]
1892
1890
  }], null, null); })();
1893
1891
 
1894
- const logger = new StructuredLoggerService();
1895
- function safeJsonParse(value, fallback = null) {
1896
- if (!value) {
1897
- return fallback;
1898
- }
1899
- try {
1900
- return JSON.parse(value);
1901
- }
1902
- catch (error) {
1903
- // Log for diagnostics, then return fallback to avoid UI crashes.
1904
- logger.error('safeJsonParse failed to parse JSON.', { error });
1905
- return fallback;
1906
- }
1907
- }
1908
-
1909
1892
  const SessionErrorRoute = new InjectionToken('SessionErrorRoute');
1910
1893
  const SessionJsonErrorLogger = new InjectionToken('SessionJsonErrorLogger');
1911
1894
  class SessionStorageGuard {
@@ -13683,7 +13666,7 @@ class CaseEventCompletionComponent {
13683
13666
  }] }); })();
13684
13667
  (() => { (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 }); })();
13685
13668
 
13686
- const _c0$11 = (a0, a1, a2) => ["/", "cases", "case-details", a0, a1, a2, "tasks"];
13669
+ const _c0$14 = (a0, a1, a2) => ["/", "cases", "case-details", a0, a1, a2, "tasks"];
13687
13670
  class CaseEventCompletionTaskCancelledComponent {
13688
13671
  context;
13689
13672
  notifyEventCompletionCancelled = new EventEmitter();
@@ -13752,7 +13735,7 @@ class CaseEventCompletionTaskCancelledComponent {
13752
13735
  i0.ɵɵadvance(4);
13753
13736
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(27, 21, "Continue"), " ");
13754
13737
  i0.ɵɵadvance(2);
13755
- i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction3(25, _c0$11, ctx.jurisdiction, ctx.caseType, ctx.caseId));
13738
+ i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction3(25, _c0$14, ctx.jurisdiction, ctx.caseType, ctx.caseId));
13756
13739
  i0.ɵɵadvance();
13757
13740
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(30, 23, "Cancel"), " ");
13758
13741
  } }, dependencies: [i1$2.RouterLink, i1.RpxTranslatePipe], encapsulation: 2 });
@@ -13767,7 +13750,7 @@ class CaseEventCompletionTaskCancelledComponent {
13767
13750
  }] }); })();
13768
13751
  (() => { (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 }); })();
13769
13752
 
13770
- const _c0$10 = (a0, a1, a2) => ["/", "cases", "case-details", a0, a1, a2, "tasks"];
13753
+ const _c0$13 = (a0, a1, a2) => ["/", "cases", "case-details", a0, a1, a2, "tasks"];
13771
13754
  function CaseEventCompletionTaskReassignedComponent_div_0_Template(rf, ctx) { if (rf & 1) {
13772
13755
  const _r1 = i0.ɵɵgetCurrentView();
13773
13756
  i0.ɵɵelementStart(0, "div", 1)(1, "div", 2)(2, "h2", 3);
@@ -13820,7 +13803,7 @@ function CaseEventCompletionTaskReassignedComponent_div_0_Template(rf, ctx) { if
13820
13803
  i0.ɵɵadvance(4);
13821
13804
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(27, 22, "Continue"), " ");
13822
13805
  i0.ɵɵadvance(2);
13823
- i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction3(26, _c0$10, ctx_r1.jurisdiction, ctx_r1.caseType, ctx_r1.caseId));
13806
+ i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction3(26, _c0$13, ctx_r1.jurisdiction, ctx_r1.caseType, ctx_r1.caseId));
13824
13807
  i0.ɵɵadvance();
13825
13808
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(30, 24, "Cancel"), " ");
13826
13809
  } }
@@ -14223,7 +14206,7 @@ class WriteComplexFieldComponent extends AbstractFieldWriteComponent {
14223
14206
  }] }); })();
14224
14207
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteComplexFieldComponent, { className: "WriteComplexFieldComponent", filePath: "lib/shared/components/palette/complex/write-complex-field.component.ts", lineNumber: 22 }); })();
14225
14208
 
14226
- const _c0$$ = ["writeComplexFieldComponent"];
14209
+ const _c0$12 = ["writeComplexFieldComponent"];
14227
14210
  const _c1$q = a0 => ({ "form-group-error": a0 });
14228
14211
  const _c2$4 = a0 => ({ "govuk-input--error": a0 });
14229
14212
  function WriteAddressFieldComponent_div_1_span_4_Template(rf, ctx) { if (rf & 1) {
@@ -14502,7 +14485,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
14502
14485
  }
14503
14486
  static ɵfac = function WriteAddressFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WriteAddressFieldComponent)(i0.ɵɵdirectiveInject(AddressesService), i0.ɵɵdirectiveInject(IsCompoundPipe)); };
14504
14487
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) { if (rf & 1) {
14505
- i0.ɵɵviewQuery(_c0$$, 5);
14488
+ i0.ɵɵviewQuery(_c0$12, 5);
14506
14489
  i0.ɵɵviewQuery(FocusElementDirective, 5);
14507
14490
  } if (rf & 2) {
14508
14491
  let _t;
@@ -14565,7 +14548,7 @@ class AbstractFieldReadComponent extends AbstractFormFieldComponent {
14565
14548
  type: Input
14566
14549
  }] }); })();
14567
14550
 
14568
- const _c0$_ = ["journeyChild"];
14551
+ const _c0$11 = ["journeyChild"];
14569
14552
  class AbstractFieldWriteJourneyComponent extends AbstractFieldWriteComponent {
14570
14553
  multipageComponentStateService;
14571
14554
  journeyStartPageNumber = 0;
@@ -14640,7 +14623,7 @@ class AbstractFieldWriteJourneyComponent extends AbstractFieldWriteComponent {
14640
14623
  ;
14641
14624
  static ɵfac = function AbstractFieldWriteJourneyComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AbstractFieldWriteJourneyComponent)(i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
14642
14625
  static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AbstractFieldWriteJourneyComponent, viewQuery: function AbstractFieldWriteJourneyComponent_Query(rf, ctx) { if (rf & 1) {
14643
- i0.ɵɵviewQuery(_c0$_, 5);
14626
+ i0.ɵɵviewQuery(_c0$11, 5);
14644
14627
  } if (rf & 2) {
14645
14628
  let _t;
14646
14629
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childJourney = _t.first);
@@ -14655,7 +14638,7 @@ class AbstractFieldWriteJourneyComponent extends AbstractFieldWriteComponent {
14655
14638
  args: ['journeyChild']
14656
14639
  }] }); })();
14657
14640
 
14658
- const _c0$Z = ["journeyChild"];
14641
+ const _c0$10 = ["journeyChild"];
14659
14642
  class AbstractJourneyComponent {
14660
14643
  multipageComponentStateService;
14661
14644
  journeyStartPageNumber = 0;
@@ -14717,7 +14700,7 @@ class AbstractJourneyComponent {
14717
14700
  onPageChange() { }
14718
14701
  static ɵfac = function AbstractJourneyComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AbstractJourneyComponent)(i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
14719
14702
  static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AbstractJourneyComponent, viewQuery: function AbstractJourneyComponent_Query(rf, ctx) { if (rf & 1) {
14720
- i0.ɵɵviewQuery(_c0$Z, 5);
14703
+ i0.ɵɵviewQuery(_c0$10, 5);
14721
14704
  } if (rf & 2) {
14722
14705
  let _t;
14723
14706
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childJourney = _t.first);
@@ -14746,8 +14729,9 @@ var DisplayContextCustomParameter;
14746
14729
  DisplayContextCustomParameter["QueryManagementWriteTest"] = "QueryManagementWriteTest";
14747
14730
  })(DisplayContextCustomParameter || (DisplayContextCustomParameter = {}));
14748
14731
 
14732
+ const _c0$$ = ["mediaViewerHost"];
14749
14733
  function CaseFileViewFieldComponent_ng_container_0_li_7_Template(rf, ctx) { if (rf & 1) {
14750
- i0.ɵɵelementStart(0, "li")(1, "button", 8);
14734
+ i0.ɵɵelementStart(0, "li")(1, "button", 9);
14751
14735
  i0.ɵɵtext(2);
14752
14736
  i0.ɵɵelementEnd()();
14753
14737
  } if (rf & 2) {
@@ -14757,11 +14741,11 @@ function CaseFileViewFieldComponent_ng_container_0_li_7_Template(rf, ctx) { if (
14757
14741
  } }
14758
14742
  function CaseFileViewFieldComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
14759
14743
  i0.ɵɵelementContainerStart(0);
14760
- i0.ɵɵelementStart(1, "div", 2)(2, "div", 3)(3, "h2", 4);
14744
+ i0.ɵɵelementStart(1, "div", 3)(2, "div", 4)(3, "h2", 5);
14761
14745
  i0.ɵɵtext(4, "There is a problem");
14762
14746
  i0.ɵɵelementEnd();
14763
- i0.ɵɵelementStart(5, "div", 5)(6, "ul", 6);
14764
- i0.ɵɵtemplate(7, CaseFileViewFieldComponent_ng_container_0_li_7_Template, 3, 1, "li", 7);
14747
+ i0.ɵɵelementStart(5, "div", 6)(6, "ul", 7);
14748
+ i0.ɵɵtemplate(7, CaseFileViewFieldComponent_ng_container_0_li_7_Template, 3, 1, "li", 8);
14765
14749
  i0.ɵɵelementEnd()()()();
14766
14750
  i0.ɵɵelementContainerEnd();
14767
14751
  } if (rf & 2) {
@@ -14770,33 +14754,29 @@ function CaseFileViewFieldComponent_ng_container_0_Template(rf, ctx) { if (rf &
14770
14754
  i0.ɵɵproperty("ngForOf", ctx_r1.errorMessages);
14771
14755
  } }
14772
14756
  function CaseFileViewFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
14773
- i0.ɵɵelementStart(0, "div", 9)(1, "h1", 10);
14757
+ i0.ɵɵelementStart(0, "div", 10)(1, "h1", 11);
14774
14758
  i0.ɵɵtext(2, "Sorry, there is a problem with the service");
14775
14759
  i0.ɵɵelementEnd();
14776
- i0.ɵɵelementStart(3, "p", 11);
14760
+ i0.ɵɵelementStart(3, "p", 12);
14777
14761
  i0.ɵɵtext(4, "Try again later.");
14778
14762
  i0.ɵɵelementEnd()();
14779
14763
  } }
14780
14764
  function CaseFileViewFieldComponent_div_2_ng_container_8_Template(rf, ctx) { if (rf & 1) {
14781
14765
  i0.ɵɵelementContainerStart(0);
14782
- i0.ɵɵelement(1, "mv-media-viewer", 18);
14766
+ i0.ɵɵelementContainer(1, null, 0);
14783
14767
  i0.ɵɵelementContainerEnd();
14784
- } if (rf & 2) {
14785
- const ctx_r1 = i0.ɵɵnextContext(2);
14786
- i0.ɵɵadvance();
14787
- i0.ɵɵproperty("url", ctx_r1.currentDocument.document_binary_url)("downloadFileName", ctx_r1.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r1.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true)("height", "94.5vh")("caseId", ctx_r1.caseId)("multimediaPlayerEnabled", true)("enableICP", ctx_r1.isIcpEnabled());
14788
14768
  } }
14789
14769
  function CaseFileViewFieldComponent_div_2_Template(rf, ctx) { if (rf & 1) {
14790
14770
  const _r3 = i0.ɵɵgetCurrentView();
14791
- i0.ɵɵelementStart(0, "div")(1, "h2", 12);
14771
+ i0.ɵɵelementStart(0, "div")(1, "h2", 13);
14792
14772
  i0.ɵɵtext(2, "Case file");
14793
14773
  i0.ɵɵelementEnd();
14794
- i0.ɵɵelementStart(3, "div", 13)(4, "div", 14)(5, "ccd-case-file-view-folder", 15);
14774
+ i0.ɵɵelementStart(3, "div", 14)(4, "div", 15)(5, "ccd-case-file-view-folder", 16);
14795
14775
  i0.ɵɵlistener("clickedDocument", function CaseFileViewFieldComponent_div_2_Template_ccd_case_file_view_folder_clickedDocument_5_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); ctx_r1.setMediaViewerFile($event); return i0.ɵɵresetView(ctx_r1.resetErrorMessages()); })("moveDocument", function CaseFileViewFieldComponent_div_2_Template_ccd_case_file_view_folder_moveDocument_5_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.moveDocument($event)); });
14796
14776
  i0.ɵɵelementEnd()();
14797
- i0.ɵɵelement(6, "div", 16);
14798
- i0.ɵɵelementStart(7, "div", 17);
14799
- i0.ɵɵtemplate(8, CaseFileViewFieldComponent_div_2_ng_container_8_Template, 2, 10, "ng-container", 0);
14777
+ i0.ɵɵelement(6, "div", 17);
14778
+ i0.ɵɵelementStart(7, "div", 18);
14779
+ i0.ɵɵtemplate(8, CaseFileViewFieldComponent_div_2_ng_container_8_Template, 3, 0, "ng-container", 1);
14800
14780
  i0.ɵɵelementEnd()()();
14801
14781
  } if (rf & 2) {
14802
14782
  const ctx_r1 = i0.ɵɵnextContext();
@@ -14807,6 +14787,8 @@ function CaseFileViewFieldComponent_div_2_Template(rf, ctx) { if (rf & 1) {
14807
14787
  } }
14808
14788
  class CaseFileViewFieldComponent {
14809
14789
  elementRef;
14790
+ changeDetectorRef;
14791
+ environmentInjector;
14810
14792
  route;
14811
14793
  caseFileViewService;
14812
14794
  documentManagementService;
@@ -14827,8 +14809,14 @@ class CaseFileViewFieldComponent {
14827
14809
  icp_jurisdictions = [];
14828
14810
  icpEnabled = false;
14829
14811
  caseId;
14830
- constructor(elementRef, route, caseFileViewService, documentManagementService, loadingService, sessionStorageService, windowService, caseNotifier, abstractConfig) {
14812
+ mediaViewerHost;
14813
+ mediaViewerComponentRef;
14814
+ mediaViewerModuleRef;
14815
+ mediaViewerRenderId = 0;
14816
+ constructor(elementRef, changeDetectorRef, environmentInjector, route, caseFileViewService, documentManagementService, loadingService, sessionStorageService, windowService, caseNotifier, abstractConfig) {
14831
14817
  this.elementRef = elementRef;
14818
+ this.changeDetectorRef = changeDetectorRef;
14819
+ this.environmentInjector = environmentInjector;
14832
14820
  this.route = route;
14833
14821
  this.caseFileViewService = caseFileViewService;
14834
14822
  this.documentManagementService = documentManagementService;
@@ -14891,6 +14879,7 @@ class CaseFileViewFieldComponent {
14891
14879
  if (this.documentManagementService.isHtmlDocument(documentDetails)) {
14892
14880
  const documentBinaryUrl = this.documentManagementService.getDocumentBinaryUrl(documentDetails);
14893
14881
  if (documentBinaryUrl) {
14882
+ this.destroyMediaViewer();
14894
14883
  this.currentDocument = undefined;
14895
14884
  this.windowService.openOnNewTab(documentBinaryUrl);
14896
14885
  return;
@@ -14898,6 +14887,7 @@ class CaseFileViewFieldComponent {
14898
14887
  }
14899
14888
  const mediaViewerInfo = this.documentManagementService.getMediaViewerInfo(documentDetails);
14900
14889
  this.currentDocument = JSON.parse(mediaViewerInfo);
14890
+ void this.renderMediaViewer();
14901
14891
  }
14902
14892
  moveDocument(data) {
14903
14893
  const cid = this.route.snapshot.paramMap.get(CaseFileViewFieldComponent.PARAM_CASE_ID);
@@ -14923,6 +14913,9 @@ class CaseFileViewFieldComponent {
14923
14913
  this.errorMessages = [];
14924
14914
  }
14925
14915
  ngOnDestroy() {
14916
+ this.mediaViewerRenderId++;
14917
+ this.destroyMediaViewer();
14918
+ this.mediaViewerModuleRef?.destroy();
14926
14919
  if (this.categoriesAndDocumentsSubscription) {
14927
14920
  this.categoriesAndDocumentsSubscription.unsubscribe();
14928
14921
  }
@@ -14930,6 +14923,43 @@ class CaseFileViewFieldComponent {
14930
14923
  isIcpEnabled() {
14931
14924
  return this.icpEnabled && ((this.icp_jurisdictions?.length < 1) || this.icp_jurisdictions.includes(this.caseNotifier?.cachedCaseView?.case_type?.jurisdiction.id));
14932
14925
  }
14926
+ async renderMediaViewer() {
14927
+ const renderId = ++this.mediaViewerRenderId;
14928
+ this.destroyMediaViewer();
14929
+ this.changeDetectorRef.detectChanges();
14930
+ let mediaViewer;
14931
+ try {
14932
+ mediaViewer = await import('@hmcts/media-viewer');
14933
+ }
14934
+ catch {
14935
+ if (renderId === this.mediaViewerRenderId) {
14936
+ this.errorMessages = ['The document viewer could not be loaded. Please try again.'];
14937
+ }
14938
+ return;
14939
+ }
14940
+ if (renderId !== this.mediaViewerRenderId || !this.currentDocument || !this.mediaViewerHost) {
14941
+ return;
14942
+ }
14943
+ const { MediaViewerComponent, MediaViewerModule } = mediaViewer;
14944
+ this.mediaViewerModuleRef ??= createNgModule(MediaViewerModule, this.environmentInjector);
14945
+ this.mediaViewerComponentRef = this.mediaViewerHost.createComponent(MediaViewerComponent, {
14946
+ ngModuleRef: this.mediaViewerModuleRef
14947
+ });
14948
+ this.mediaViewerComponentRef.setInput('url', this.currentDocument.document_binary_url);
14949
+ this.mediaViewerComponentRef.setInput('downloadFileName', this.currentDocument.document_filename);
14950
+ this.mediaViewerComponentRef.setInput('showToolbar', true);
14951
+ this.mediaViewerComponentRef.setInput('contentType', this.currentDocument.content_type);
14952
+ this.mediaViewerComponentRef.setInput('enableAnnotations', true);
14953
+ this.mediaViewerComponentRef.setInput('enableRedactions', true);
14954
+ this.mediaViewerComponentRef.setInput('height', '94.5vh');
14955
+ this.mediaViewerComponentRef.setInput('caseId', this.caseId);
14956
+ this.mediaViewerComponentRef.setInput('multimediaPlayerEnabled', true);
14957
+ this.mediaViewerComponentRef.setInput('enableICP', this.isIcpEnabled());
14958
+ }
14959
+ destroyMediaViewer() {
14960
+ this.mediaViewerHost?.clear();
14961
+ this.mediaViewerComponentRef = undefined;
14962
+ }
14933
14963
  moveDocumentError(err) {
14934
14964
  const defaultMsg = 'We couldn\'t move the document. Please try again.';
14935
14965
  if (!(err instanceof HttpErrorResponse)) {
@@ -14955,9 +14985,14 @@ class CaseFileViewFieldComponent {
14955
14985
  return defaultMsg;
14956
14986
  }
14957
14987
  }
14958
- static ɵfac = function CaseFileViewFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseFileViewFieldComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), 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)); };
14959
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], standalone: false, decls: 3, vars: 3, consts: [[4, "ngIf"], ["class", "govuk-grid-column-two-thirds", 4, "ngIf"], ["id", "case-file-view-field-errors", "data-module", "govuk-error-summary", 1, "govuk-error-summary", "govuk-!-margin-bottom-4"], ["role", "alert"], [1, "govuk-error-summary__title"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [4, "ngFor", "ngForOf"], ["type", "button", 1, "govuk-js-link"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "clickedDocument", "moveDocument", "categoriesAndDocuments", "allowMoving"], [1, "slider"], [1, "media-viewer-container"], [3, "url", "downloadFileName", "showToolbar", "contentType", "enableAnnotations", "enableRedactions", "height", "caseId", "multimediaPlayerEnabled", "enableICP"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) { if (rf & 1) {
14960
- i0.ɵɵtemplate(0, CaseFileViewFieldComponent_ng_container_0_Template, 8, 1, "ng-container", 0)(1, CaseFileViewFieldComponent_div_1_Template, 5, 0, "div", 1)(2, CaseFileViewFieldComponent_div_2_Template, 9, 3, "div", 0);
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)); };
14989
+ 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);
14991
+ } if (rf & 2) {
14992
+ let _t;
14993
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.mediaViewerHost = _t.first);
14994
+ } }, standalone: false, decls: 3, vars: 3, consts: [["mediaViewerHost", ""], [4, "ngIf"], ["class", "govuk-grid-column-two-thirds", 4, "ngIf"], ["id", "case-file-view-field-errors", "data-module", "govuk-error-summary", 1, "govuk-error-summary", "govuk-!-margin-bottom-4"], ["role", "alert"], [1, "govuk-error-summary__title"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [4, "ngFor", "ngForOf"], ["type", "button", 1, "govuk-js-link"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "clickedDocument", "moveDocument", "categoriesAndDocuments", "allowMoving"], [1, "slider"], [1, "media-viewer-container"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) { if (rf & 1) {
14995
+ i0.ɵɵtemplate(0, CaseFileViewFieldComponent_ng_container_0_Template, 8, 1, "ng-container", 1)(1, CaseFileViewFieldComponent_div_1_Template, 5, 0, "div", 2)(2, CaseFileViewFieldComponent_div_2_Template, 9, 3, "div", 1);
14961
14996
  } if (rf & 2) {
14962
14997
  i0.ɵɵproperty("ngIf", ctx.errorMessages == null ? null : ctx.errorMessages.length);
14963
14998
  i0.ɵɵadvance();
@@ -14968,9 +15003,12 @@ class CaseFileViewFieldComponent {
14968
15003
  }
14969
15004
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFieldComponent, [{
14970
15005
  type: Component,
14971
- 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 <mv-media-viewer\n [url]=\"currentDocument.document_binary_url\"\n [downloadFileName]=\"currentDocument.document_filename\"\n [showToolbar]=\"true\"\n [contentType]=\"currentDocument.content_type\"\n [enableAnnotations]=\"true\"\n [enableRedactions]=\"true\"\n [height]=\"'94.5vh'\"\n [caseId]=\"caseId\"\n [multimediaPlayerEnabled]=\"true\"\n [enableICP]=\"isIcpEnabled()\"\n >\n </mv-media-viewer>\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"] }]
14972
- }], () => [{ type: i0.ElementRef }, { type: i1$2.ActivatedRoute }, { type: CaseFileViewService }, { type: DocumentManagementService }, { type: LoadingService }, { type: SessionStorageService }, { type: WindowService }, { type: CaseNotifier }, { type: AbstractAppConfig }], null); })();
14973
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFileViewFieldComponent, { className: "CaseFileViewFieldComponent", filePath: "lib/shared/components/palette/case-file-view/case-file-view-field.component.ts", lineNumber: 20 }); })();
15006
+ 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: [{
15008
+ type: ViewChild,
15009
+ args: ['mediaViewerHost', { read: ViewContainerRef }]
15010
+ }] }); })();
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 }); })();
14974
15012
 
14975
15013
  const PVP_FLAG_CODE = 'PF0021';
14976
15014
  const PVP_DISPLAY_TEXT = 'POTENTIALLY VIOLENT PERSON';
@@ -16202,7 +16240,7 @@ class ReadCaseLinkFieldComponent extends AbstractFieldReadComponent {
16202
16240
  }], null, null); })();
16203
16241
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadCaseLinkFieldComponent, { className: "ReadCaseLinkFieldComponent", filePath: "lib/shared/components/palette/case-link/read-case-link-field.component.ts", lineNumber: 9 }); })();
16204
16242
 
16205
- const _c0$Y = ["writeComplexFieldComponent"];
16243
+ const _c0$_ = ["writeComplexFieldComponent"];
16206
16244
  const _c1$p = a0 => ({ "form-group-error": a0 });
16207
16245
  function WriteCaseLinkFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
16208
16246
  i0.ɵɵelementStart(0, "span", 6);
@@ -16283,7 +16321,7 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
16283
16321
  }
16284
16322
  static ɵfac = /*@__PURE__*/ (() => { let ɵWriteCaseLinkFieldComponent_BaseFactory; return function WriteCaseLinkFieldComponent_Factory(__ngFactoryType__) { return (ɵWriteCaseLinkFieldComponent_BaseFactory || (ɵWriteCaseLinkFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(WriteCaseLinkFieldComponent)))(__ngFactoryType__ || WriteCaseLinkFieldComponent); }; })();
16285
16323
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteCaseLinkFieldComponent, selectors: [["ccd-write-case-link-field"]], viewQuery: function WriteCaseLinkFieldComponent_Query(rf, ctx) { if (rf & 1) {
16286
- i0.ɵɵviewQuery(_c0$Y, 5);
16324
+ i0.ɵɵviewQuery(_c0$_, 5);
16287
16325
  } if (rf & 2) {
16288
16326
  let _t;
16289
16327
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.writeComplexFieldComponent = _t.first);
@@ -16317,7 +16355,7 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
16317
16355
  }] }); })();
16318
16356
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteCaseLinkFieldComponent, { className: "WriteCaseLinkFieldComponent", filePath: "lib/shared/components/palette/case-link/write-case-link-field.component.ts", lineNumber: 12 }); })();
16319
16357
 
16320
- 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 });
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 });
16321
16359
  const _c1$o = (a0, a1, a2, a3, a4, a5) => ({ id: a0, label: a1, field_type: a2, value: a3, hidden: a4, parent: a5 });
16322
16360
  function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf & 1) {
16323
16361
  i0.ɵɵelementStart(0, "tbody")(1, "tr");
@@ -16328,7 +16366,7 @@ function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf
16328
16366
  } if (rf & 2) {
16329
16367
  const ctx_r0 = i0.ɵɵnextContext(2);
16330
16368
  i0.ɵɵadvance(4);
16331
- 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);
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);
16332
16370
  } }
16333
16371
  function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { if (rf & 1) {
16334
16372
  i0.ɵɵelementStart(0, "tr")(1, "td");
@@ -16450,7 +16488,7 @@ class RemoveDialogComponent {
16450
16488
  }], () => [{ type: i1$3.MatDialogRef }], null); })();
16451
16489
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RemoveDialogComponent, { className: "RemoveDialogComponent", filePath: "lib/shared/components/dialogs/remove-dialog/remove-dialog.component.ts", lineNumber: 10 }); })();
16452
16490
 
16453
- const _c0$W = ["collectionItem"];
16491
+ const _c0$Y = ["collectionItem"];
16454
16492
  function WriteCollectionFieldComponent_h2_2_Template(rf, ctx) { if (rf & 1) {
16455
16493
  i0.ɵɵelementStart(0, "h2", 7);
16456
16494
  i0.ɵɵtext(1);
@@ -16871,7 +16909,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
16871
16909
  }
16872
16910
  static ɵfac = function WriteCollectionFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WriteCollectionFieldComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialog), i0.ɵɵdirectiveInject(ProfileNotifier), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
16873
16911
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) { if (rf & 1) {
16874
- i0.ɵɵviewQuery(_c0$W, 5);
16912
+ i0.ɵɵviewQuery(_c0$Y, 5);
16875
16913
  } if (rf & 2) {
16876
16914
  let _t;
16877
16915
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.items = _t);
@@ -17187,7 +17225,7 @@ class FileUploadStateService {
17187
17225
  type: Injectable
17188
17226
  }], null, null); })();
17189
17227
 
17190
- const _c0$V = ["fileInput"];
17228
+ const _c0$X = ["fileInput"];
17191
17229
  const _c1$n = a0 => ({ "form-group-error bottom-30": a0 });
17192
17230
  function WriteDocumentFieldComponent_span_6_Template(rf, ctx) { if (rf & 1) {
17193
17231
  i0.ɵɵelementStart(0, "span", 12);
@@ -17566,7 +17604,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
17566
17604
  }
17567
17605
  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)); };
17568
17606
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) { if (rf & 1) {
17569
- i0.ɵɵviewQuery(_c0$V, 5);
17607
+ i0.ɵɵviewQuery(_c0$X, 5);
17570
17608
  } if (rf & 2) {
17571
17609
  let _t;
17572
17610
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
@@ -17681,7 +17719,7 @@ class ReadDynamicListFieldComponent extends AbstractFieldReadComponent {
17681
17719
  }], null, null); })();
17682
17720
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadDynamicListFieldComponent, { className: "ReadDynamicListFieldComponent", filePath: "lib/shared/components/palette/dynamic-list/read-dynamic-list-field.component.ts", lineNumber: 9 }); })();
17683
17721
 
17684
- const _c0$U = a0 => ({ "form-group-error": a0 });
17722
+ const _c0$W = a0 => ({ "form-group-error": a0 });
17685
17723
  function WriteDynamicListFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
17686
17724
  i0.ɵɵelementStart(0, "span", 8);
17687
17725
  i0.ɵɵtext(1);
@@ -17769,7 +17807,7 @@ class WriteDynamicListFieldComponent extends AbstractFieldWriteComponent {
17769
17807
  i0.ɵɵtemplate(10, WriteDynamicListFieldComponent_option_10_Template, 3, 4, "option", 7);
17770
17808
  i0.ɵɵelementEnd()();
17771
17809
  } if (rf & 2) {
17772
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(13, _c0$U, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
17810
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(13, _c0$W, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
17773
17811
  i0.ɵɵadvance();
17774
17812
  i0.ɵɵproperty("for", ctx.id());
17775
17813
  i0.ɵɵadvance();
@@ -17950,7 +17988,7 @@ class ReadDynamicMultiSelectListFieldComponent extends AbstractFieldReadComponen
17950
17988
  }], null, null); })();
17951
17989
  (() => { (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 }); })();
17952
17990
 
17953
- const _c0$T = a0 => ({ "error": a0 });
17991
+ const _c0$V = a0 => ({ "error": a0 });
17954
17992
  function WriteDynamicMultiSelectListFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
17955
17993
  i0.ɵɵelementStart(0, "span", 5);
17956
17994
  i0.ɵɵtext(1);
@@ -18070,7 +18108,7 @@ class WriteDynamicMultiSelectListFieldComponent extends AbstractFieldWriteCompon
18070
18108
  i0.ɵɵtemplate(6, WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template, 6, 12, "ng-container", 4);
18071
18109
  i0.ɵɵelementEnd()();
18072
18110
  } if (rf & 2) {
18073
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$T, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
18111
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$V, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
18074
18112
  i0.ɵɵadvance(3);
18075
18113
  i0.ɵɵproperty("ngIf", ctx.caseField.label);
18076
18114
  i0.ɵɵadvance();
@@ -18150,7 +18188,7 @@ class ReadDynamicRadioListFieldComponent extends AbstractFieldReadComponent {
18150
18188
  }], null, null); })();
18151
18189
  (() => { (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 }); })();
18152
18190
 
18153
- const _c0$S = a0 => ({ "form-group-error": a0 });
18191
+ const _c0$U = a0 => ({ "form-group-error": a0 });
18154
18192
  const _c1$m = a0 => ({ selected: a0 });
18155
18193
  function WriteDynamicRadioListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
18156
18194
  i0.ɵɵelementStart(0, "span", 7);
@@ -18245,7 +18283,7 @@ class WriteDynamicRadioListFieldComponent extends AbstractFieldWriteComponent {
18245
18283
  i0.ɵɵelementContainerEnd();
18246
18284
  i0.ɵɵelementEnd()();
18247
18285
  } if (rf & 2) {
18248
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$S, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
18286
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$U, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
18249
18287
  i0.ɵɵadvance(3);
18250
18288
  i0.ɵɵproperty("for", ctx.id());
18251
18289
  i0.ɵɵadvance();
@@ -18299,7 +18337,7 @@ class ReadEmailFieldComponent extends AbstractFieldReadComponent {
18299
18337
  }], null, null); })();
18300
18338
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadEmailFieldComponent, { className: "ReadEmailFieldComponent", filePath: "lib/shared/components/palette/email/read-email-field.component.ts", lineNumber: 11 }); })();
18301
18339
 
18302
- const _c0$R = a0 => ({ "form-group-error": a0 });
18340
+ const _c0$T = a0 => ({ "form-group-error": a0 });
18303
18341
  const _c1$l = a0 => ({ "govuk-input--error": a0 });
18304
18342
  function WriteEmailFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
18305
18343
  i0.ɵɵelementStart(0, "span", 6);
@@ -18345,7 +18383,7 @@ class WriteEmailFieldComponent extends AbstractFieldWriteComponent {
18345
18383
  i0.ɵɵelement(5, "input", 5);
18346
18384
  i0.ɵɵelementEnd();
18347
18385
  } if (rf & 2) {
18348
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$R, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
18386
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$T, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
18349
18387
  i0.ɵɵadvance();
18350
18388
  i0.ɵɵproperty("for", ctx.id());
18351
18389
  i0.ɵɵadvance();
@@ -18387,7 +18425,7 @@ class ReadFixedListFieldComponent extends AbstractFieldReadComponent {
18387
18425
  }], null, null); })();
18388
18426
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadFixedListFieldComponent, { className: "ReadFixedListFieldComponent", filePath: "lib/shared/components/palette/fixed-list/read-fixed-list-field.component.ts", lineNumber: 9 }); })();
18389
18427
 
18390
- const _c0$Q = a0 => ({ "form-group-error": a0 });
18428
+ const _c0$S = a0 => ({ "form-group-error": a0 });
18391
18429
  function WriteFixedListFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
18392
18430
  i0.ɵɵelementStart(0, "span", 8);
18393
18431
  i0.ɵɵtext(1);
@@ -18462,7 +18500,7 @@ class WriteFixedListFieldComponent extends AbstractFieldWriteComponent {
18462
18500
  i0.ɵɵtemplate(8, WriteFixedListFieldComponent_option_8_Template, 3, 4, "option", 7);
18463
18501
  i0.ɵɵelementEnd()();
18464
18502
  } if (rf & 2) {
18465
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$Q, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
18503
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$S, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
18466
18504
  i0.ɵɵadvance();
18467
18505
  i0.ɵɵproperty("for", ctx.id());
18468
18506
  i0.ɵɵadvance();
@@ -18525,7 +18563,7 @@ class ReadFixedRadioListFieldComponent extends AbstractFieldReadComponent {
18525
18563
  }], null, null); })();
18526
18564
  (() => { (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 }); })();
18527
18565
 
18528
- const _c0$P = a0 => ({ "form-group-error": a0 });
18566
+ const _c0$R = a0 => ({ "form-group-error": a0 });
18529
18567
  const _c1$k = a0 => ({ selected: a0 });
18530
18568
  function WriteFixedRadioListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
18531
18569
  i0.ɵɵelementStart(0, "span", 6);
@@ -18593,7 +18631,7 @@ class WriteFixedRadioListFieldComponent extends AbstractFieldWriteComponent {
18593
18631
  i0.ɵɵelementContainerEnd();
18594
18632
  i0.ɵɵelementEnd()();
18595
18633
  } if (rf & 2) {
18596
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$P, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
18634
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$R, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
18597
18635
  i0.ɵɵadvance(3);
18598
18636
  i0.ɵɵproperty("for", ctx.id());
18599
18637
  i0.ɵɵadvance();
@@ -18669,7 +18707,7 @@ class ReadJudicialUserFieldComponent extends AbstractFieldReadComponent {
18669
18707
  }], () => [{ type: JurisdictionService }], null); })();
18670
18708
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadJudicialUserFieldComponent, { className: "ReadJudicialUserFieldComponent", filePath: "lib/shared/components/palette/judicial-user/read-judicial-user-field.component.ts", lineNumber: 12 }); })();
18671
18709
 
18672
- const _c0$O = a0 => ({ "form-group-error": a0 });
18710
+ const _c0$Q = a0 => ({ "form-group-error": a0 });
18673
18711
  const _c1$j = a0 => ({ "hide-autocomplete": a0 });
18674
18712
  function WriteJudicialUserFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
18675
18713
  i0.ɵɵelementStart(0, "span", 10);
@@ -18903,7 +18941,7 @@ class WriteJudicialUserFieldComponent extends WriteComplexFieldComponent {
18903
18941
  i0.ɵɵelementEnd()();
18904
18942
  } if (rf & 2) {
18905
18943
  const autoComplete_r4 = i0.ɵɵreference(7);
18906
- i0.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0.ɵɵpureFunction1(15, _c0$O, !!ctx.judicialUserControl && ctx.errors));
18944
+ i0.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0.ɵɵpureFunction1(15, _c0$Q, !!ctx.judicialUserControl && ctx.errors));
18907
18945
  i0.ɵɵadvance();
18908
18946
  i0.ɵɵproperty("for", ctx.id());
18909
18947
  i0.ɵɵadvance();
@@ -18985,7 +19023,7 @@ class ReadStaffUserFieldComponent extends AbstractFieldReadComponent {
18985
19023
  }], () => [{ type: CaseworkerService }, { type: JurisdictionService }], null); })();
18986
19024
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadStaffUserFieldComponent, { className: "ReadStaffUserFieldComponent", filePath: "lib/shared/components/palette/staff-user/read-staff-user-field.component.ts", lineNumber: 13 }); })();
18987
19025
 
18988
- const _c0$N = a0 => ({ "form-group-error": a0 });
19026
+ const _c0$P = a0 => ({ "form-group-error": a0 });
18989
19027
  const _c1$i = a0 => ({ "hide-autocomplete": a0 });
18990
19028
  function WriteStaffUserFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
18991
19029
  i0.ɵɵelementStart(0, "span", 10);
@@ -19224,7 +19262,7 @@ class WriteStaffUserFieldComponent extends WriteComplexFieldComponent {
19224
19262
  i0.ɵɵelementEnd()();
19225
19263
  } if (rf & 2) {
19226
19264
  const autoComplete_r5 = i0.ɵɵreference(7);
19227
- i0.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0.ɵɵpureFunction1(15, _c0$N, !!ctx.staffUserControl && ctx.errors));
19265
+ i0.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0.ɵɵpureFunction1(15, _c0$P, !!ctx.staffUserControl && ctx.errors));
19228
19266
  i0.ɵɵadvance();
19229
19267
  i0.ɵɵproperty("for", ctx.id());
19230
19268
  i0.ɵɵadvance();
@@ -19689,7 +19727,7 @@ class ValidatorsUtils {
19689
19727
  args: [{ providedIn: 'root' }]
19690
19728
  }], null, null); })();
19691
19729
 
19692
- const _c0$M = a0 => ({ "govuk-form-group--error": a0 });
19730
+ const _c0$O = a0 => ({ "govuk-form-group--error": a0 });
19693
19731
  const _c1$h = a0 => ({ "table-group-error": a0 });
19694
19732
  function LinkCasesComponent_div_8_span_4_Template(rf, ctx) { if (rf & 1) {
19695
19733
  i0.ɵɵelementStart(0, "span", 28)(1, "span", 29);
@@ -19756,7 +19794,7 @@ function LinkCasesComponent_div_8_div_14_Template(rf, ctx) { if (rf & 1) {
19756
19794
  i0.ɵɵelementEnd()();
19757
19795
  } if (rf & 2) {
19758
19796
  const ctx_r1 = i0.ɵɵnextContext(2);
19759
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c0$M, !!ctx_r1.caseReasonCommentsError));
19797
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c0$O, !!ctx_r1.caseReasonCommentsError));
19760
19798
  i0.ɵɵadvance(3);
19761
19799
  i0.ɵɵproperty("ngIf", ctx_r1.caseReasonCommentsError);
19762
19800
  } }
@@ -19800,11 +19838,11 @@ function LinkCasesComponent_div_8_Template(rf, ctx) { if (rf & 1) {
19800
19838
  const ctx_r1 = i0.ɵɵnextContext();
19801
19839
  i0.ɵɵproperty("formGroup", ctx_r1.linkCaseForm);
19802
19840
  i0.ɵɵadvance();
19803
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$M, !!ctx_r1.caseNumberError));
19841
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$O, !!ctx_r1.caseNumberError));
19804
19842
  i0.ɵɵadvance(3);
19805
19843
  i0.ɵɵproperty("ngIf", ctx_r1.caseNumberError);
19806
19844
  i0.ɵɵadvance(2);
19807
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$M, !!ctx_r1.caseReasonError));
19845
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$O, !!ctx_r1.caseReasonError));
19808
19846
  i0.ɵɵadvance(5);
19809
19847
  i0.ɵɵproperty("ngIf", ctx_r1.caseReasonError);
19810
19848
  i0.ɵɵadvance(2);
@@ -20232,7 +20270,7 @@ class LinkCasesComponent extends AbstractJourneyComponent {
20232
20270
  i0.ɵɵadvance(4);
20233
20271
  i0.ɵɵproperty("ngIf", ctx.linkCaseForm);
20234
20272
  i0.ɵɵadvance(4);
20235
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$M, !!ctx.noSelectedCaseError));
20273
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$O, !!ctx.noSelectedCaseError));
20236
20274
  i0.ɵɵadvance();
20237
20275
  i0.ɵɵproperty("ngIf", ctx.noSelectedCaseError);
20238
20276
  i0.ɵɵadvance(18);
@@ -20825,7 +20863,7 @@ class NoLinkedCasesComponent extends AbstractJourneyComponent {
20825
20863
  }], () => [{ type: i1$2.Router }, { type: LinkedCasesService }, { type: MultipageComponentStateService }], null); })();
20826
20864
  (() => { (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 }); })();
20827
20865
 
20828
- const _c0$L = a0 => ({ "govuk-form-group--error": a0 });
20866
+ const _c0$N = a0 => ({ "govuk-form-group--error": a0 });
20829
20867
  function UnLinkCasesComponent_div_0_div_4_p_1_Template(rf, ctx) { if (rf & 1) {
20830
20868
  i0.ɵɵelementStart(0, "p", 9)(1, "span", 10);
20831
20869
  i0.ɵɵtext(2, "Error:");
@@ -20863,7 +20901,7 @@ function UnLinkCasesComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
20863
20901
  i0.ɵɵelementEnd()();
20864
20902
  } if (rf & 2) {
20865
20903
  const ctx_r0 = i0.ɵɵnextContext(2);
20866
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$L, ctx_r0.unlinkErrorMessage))("formGroup", ctx_r0.unlinkCaseForm);
20904
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$N, ctx_r0.unlinkErrorMessage))("formGroup", ctx_r0.unlinkCaseForm);
20867
20905
  i0.ɵɵadvance();
20868
20906
  i0.ɵɵproperty("ngIf", ctx_r0.unlinkErrorMessage);
20869
20907
  i0.ɵɵadvance(2);
@@ -21800,7 +21838,7 @@ class MoneyGbpInputComponent {
21800
21838
  }] }); })();
21801
21839
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MoneyGbpInputComponent, { className: "MoneyGbpInputComponent", filePath: "lib/shared/components/palette/money-gbp/money-gbp-input.component.ts", lineNumber: 28 }); })();
21802
21840
 
21803
- const _c0$K = a0 => ({ "form-group-error": a0 });
21841
+ const _c0$M = a0 => ({ "form-group-error": a0 });
21804
21842
  function WriteMoneyGbpFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
21805
21843
  i0.ɵɵelementStart(0, "span", 8);
21806
21844
  i0.ɵɵtext(1);
@@ -21849,7 +21887,7 @@ class WriteMoneyGbpFieldComponent extends AbstractFieldWriteComponent {
21849
21887
  i0.ɵɵpipe(9, "ccdIsMandatory");
21850
21888
  i0.ɵɵelementEnd()();
21851
21889
  } if (rf & 2) {
21852
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$K, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
21890
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$M, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
21853
21891
  i0.ɵɵadvance();
21854
21892
  i0.ɵɵproperty("for", ctx.id());
21855
21893
  i0.ɵɵadvance();
@@ -21915,7 +21953,7 @@ class ReadMultiSelectListFieldComponent extends AbstractFieldReadComponent {
21915
21953
  }], null, null); })();
21916
21954
  (() => { (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 }); })();
21917
21955
 
21918
- const _c0$J = a0 => ({ "error": a0 });
21956
+ const _c0$L = a0 => ({ "error": a0 });
21919
21957
  function WriteMultiSelectListFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
21920
21958
  i0.ɵɵelementStart(0, "span", 5);
21921
21959
  i0.ɵɵtext(1);
@@ -22016,7 +22054,7 @@ class WriteMultiSelectListFieldComponent extends AbstractFieldWriteComponent {
22016
22054
  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);
22017
22055
  i0.ɵɵelementEnd()();
22018
22056
  } if (rf & 2) {
22019
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$J, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
22057
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$L, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
22020
22058
  i0.ɵɵadvance(3);
22021
22059
  i0.ɵɵproperty("ngIf", ctx.caseField.label);
22022
22060
  i0.ɵɵadvance();
@@ -22055,7 +22093,7 @@ class ReadNumberFieldComponent extends AbstractFieldReadComponent {
22055
22093
  }], null, null); })();
22056
22094
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadNumberFieldComponent, { className: "ReadNumberFieldComponent", filePath: "lib/shared/components/palette/number/read-number-field.component.ts", lineNumber: 9 }); })();
22057
22095
 
22058
- const _c0$I = a0 => ({ "form-group-error": a0 });
22096
+ const _c0$K = a0 => ({ "form-group-error": a0 });
22059
22097
  const _c1$g = a0 => ({ "govuk-input--error": a0 });
22060
22098
  function WriteNumberFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
22061
22099
  i0.ɵɵelementStart(0, "span", 6);
@@ -22101,7 +22139,7 @@ class WriteNumberFieldComponent extends AbstractFieldWriteComponent {
22101
22139
  i0.ɵɵelement(5, "input", 5);
22102
22140
  i0.ɵɵelementEnd();
22103
22141
  } if (rf & 2) {
22104
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$I, !ctx.numberControl.valid && ctx.numberControl.dirty));
22142
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$K, !ctx.numberControl.valid && ctx.numberControl.dirty));
22105
22143
  i0.ɵɵadvance();
22106
22144
  i0.ɵɵproperty("for", ctx.id());
22107
22145
  i0.ɵɵadvance();
@@ -22280,7 +22318,7 @@ class ReadOrganisationFieldComponent extends AbstractFieldReadComponent {
22280
22318
  }] }); })();
22281
22319
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadOrganisationFieldComponent, { className: "ReadOrganisationFieldComponent", filePath: "lib/shared/components/palette/organisation/read-organisation-field.component.ts", lineNumber: 11 }); })();
22282
22320
 
22283
- const _c0$H = a0 => ({ "scroll-container ": a0 });
22321
+ const _c0$J = a0 => ({ "scroll-container ": a0 });
22284
22322
  function WriteOrganisationFieldComponent_fieldset_1_Template(rf, ctx) { if (rf & 1) {
22285
22323
  i0.ɵɵelementStart(0, "fieldset", 3);
22286
22324
  i0.ɵɵelement(1, "legend", 4);
@@ -22359,7 +22397,7 @@ function WriteOrganisationFieldComponent_fieldset_3_div_17_Template(rf, ctx) { i
22359
22397
  let tmp_3_0;
22360
22398
  let tmp_5_0;
22361
22399
  const ctx_r2 = i0.ɵɵnextContext(2);
22362
- 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));
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));
22363
22401
  i0.ɵɵadvance(2);
22364
22402
  i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(3, 5, ctx_r2.simpleOrganisations$));
22365
22403
  i0.ɵɵadvance(2);
@@ -22701,38 +22739,98 @@ class PaymentField extends AbstractFieldReadComponent {
22701
22739
  }
22702
22740
  }
22703
22741
 
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
+ } }
22704
22748
  class CasePaymentHistoryViewerFieldComponent extends PaymentField {
22749
+ environmentInjector;
22705
22750
  PAYMENT_HISTORY_WARNING = 'Recent payments may take a few minutes to reflect here.';
22706
- constructor(appConfig, sessionStorage) {
22751
+ paymentLoadError = false;
22752
+ paymentHost;
22753
+ paymentComponentRef;
22754
+ paymentModuleRef;
22755
+ constructor(appConfig, sessionStorage, environmentInjector) {
22707
22756
  super(appConfig, sessionStorage);
22757
+ this.environmentInjector = environmentInjector;
22758
+ }
22759
+ ngAfterViewInit() {
22760
+ void this.renderPayment();
22761
+ }
22762
+ ngOnDestroy() {
22763
+ this.paymentHost?.clear();
22764
+ this.paymentComponentRef = undefined;
22765
+ this.paymentModuleRef?.destroy();
22708
22766
  }
22709
- static ɵfac = function CasePaymentHistoryViewerFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CasePaymentHistoryViewerFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(SessionStorageService)); };
22710
- 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) {
22711
- i0.ɵɵelementStart(0, "div", 0)(1, "span", 1);
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);
22712
22806
  i0.ɵɵtext(2, "!");
22713
22807
  i0.ɵɵelementEnd();
22714
- i0.ɵɵelementStart(3, "strong", 2)(4, "span", 3);
22808
+ i0.ɵɵelementStart(3, "strong", 3)(4, "span", 4);
22715
22809
  i0.ɵɵtext(5);
22716
22810
  i0.ɵɵpipe(6, "rpxTranslate");
22717
22811
  i0.ɵɵelementEnd();
22718
22812
  i0.ɵɵtext(7);
22719
22813
  i0.ɵɵpipe(8, "rpxTranslate");
22720
22814
  i0.ɵɵelementEnd()();
22721
- i0.ɵɵelement(9, "ccpay-payment-lib", 4);
22815
+ i0.ɵɵtemplate(9, CasePaymentHistoryViewerFieldComponent_p_9_Template, 2, 0, "p", 5);
22816
+ i0.ɵɵelementContainer(10, null, 0);
22722
22817
  } if (rf & 2) {
22723
22818
  i0.ɵɵadvance(5);
22724
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 18, "Warning"));
22819
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 3, "Warning"));
22725
22820
  i0.ɵɵadvance(2);
22726
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 20, ctx.PAYMENT_HISTORY_WARNING), " ");
22821
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 5, ctx.PAYMENT_HISTORY_WARNING), " ");
22727
22822
  i0.ɵɵadvance(2);
22728
- 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");
22729
- } }, dependencies: [i3.PaymentLibComponent, i1.RpxTranslatePipe], styles: [".govuk-warning-text[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:-20px}"] });
22823
+ i0.ɵɵproperty("ngIf", ctx.paymentLoadError);
22824
+ } }, dependencies: [i5.NgIf, i1.RpxTranslatePipe], styles: [".govuk-warning-text[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:-20px}"] });
22730
22825
  }
22731
22826
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CasePaymentHistoryViewerFieldComponent, [{
22732
22827
  type: Component,
22733
- 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"] }]
22734
- }], () => [{ type: AbstractAppConfig }, { type: SessionStorageService }], null); })();
22735
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CasePaymentHistoryViewerFieldComponent, { className: "CasePaymentHistoryViewerFieldComponent", filePath: "lib/shared/components/palette/payment/case-payment-history-viewer-field.component.ts", lineNumber: 12 }); })();
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 }); })();
22736
22834
 
22737
22835
  class ReadPhoneUKFieldComponent extends AbstractFieldReadComponent {
22738
22836
  static ɵfac = /*@__PURE__*/ (() => { let ɵReadPhoneUKFieldComponent_BaseFactory; return function ReadPhoneUKFieldComponent_Factory(__ngFactoryType__) { return (ɵReadPhoneUKFieldComponent_BaseFactory || (ɵReadPhoneUKFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadPhoneUKFieldComponent)))(__ngFactoryType__ || ReadPhoneUKFieldComponent); }; })();
@@ -22755,7 +22853,7 @@ class ReadPhoneUKFieldComponent extends AbstractFieldReadComponent {
22755
22853
  }], null, null); })();
22756
22854
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadPhoneUKFieldComponent, { className: "ReadPhoneUKFieldComponent", filePath: "lib/shared/components/palette/phone-uk/read-phone-uk-field.component.ts", lineNumber: 9 }); })();
22757
22855
 
22758
- const _c0$G = a0 => ({ "form-group-error": a0 });
22856
+ const _c0$H = a0 => ({ "form-group-error": a0 });
22759
22857
  const _c1$f = a0 => ({ "govuk-input--error": a0 });
22760
22858
  function WritePhoneUKFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
22761
22859
  i0.ɵɵelementStart(0, "span", 6);
@@ -22801,7 +22899,7 @@ class WritePhoneUKFieldComponent extends AbstractFieldWriteComponent {
22801
22899
  i0.ɵɵelement(5, "input", 5);
22802
22900
  i0.ɵɵelementEnd();
22803
22901
  } if (rf & 2) {
22804
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$G, !ctx.phoneUkControl.valid && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched)));
22902
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$H, !ctx.phoneUkControl.valid && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched)));
22805
22903
  i0.ɵɵadvance();
22806
22904
  i0.ɵɵproperty("for", ctx.id());
22807
22905
  i0.ɵɵadvance();
@@ -25295,7 +25393,7 @@ class QueryWriteDateInputComponent {
25295
25393
  }] }); })();
25296
25394
  (() => { (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 }); })();
25297
25395
 
25298
- const _c0$F = a0 => ({ "govuk-form-group--error": a0 });
25396
+ const _c0$G = a0 => ({ "govuk-form-group--error": a0 });
25299
25397
  function QueryWriteRaiseQueryComponent_ccd_query_case_details_header_9_Template(rf, ctx) { if (rf & 1) {
25300
25398
  i0.ɵɵelement(0, "ccd-query-case-details-header", 5);
25301
25399
  } if (rf & 2) {
@@ -25375,7 +25473,7 @@ function QueryWriteRaiseQueryComponent_div_11_ng_container_50_Template(rf, ctx)
25375
25473
  } if (rf & 2) {
25376
25474
  const ctx_r0 = i0.ɵɵnextContext(2);
25377
25475
  i0.ɵɵadvance();
25378
- 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));
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));
25379
25477
  i0.ɵɵadvance(4);
25380
25478
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 3, "What is the date of the hearing?"), " ");
25381
25479
  i0.ɵɵadvance(2);
@@ -25442,7 +25540,7 @@ function QueryWriteRaiseQueryComponent_div_11_Template(rf, ctx) { if (rf & 1) {
25442
25540
  i0.ɵɵadvance(8);
25443
25541
  i0.ɵɵproperty("content", i0.ɵɵpipeBind1(10, 23, ctx_r0.serviceMessage));
25444
25542
  i0.ɵɵadvance(2);
25445
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(43, _c0$F, ctx_r0.submitted && ctx_r0.formGroup.get("subject").hasError("required")));
25543
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(43, _c0$G, ctx_r0.submitted && ctx_r0.formGroup.get("subject").hasError("required")));
25446
25544
  i0.ɵɵadvance(3);
25447
25545
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(15, 25, "Query subject"), " ");
25448
25546
  i0.ɵɵadvance(3);
@@ -25450,7 +25548,7 @@ function QueryWriteRaiseQueryComponent_div_11_Template(rf, ctx) { if (rf & 1) {
25450
25548
  i0.ɵɵadvance(2);
25451
25549
  i0.ɵɵproperty("ngIf", ctx_r0.submitted && (ctx_r0.formGroup.get("subject").hasError("required") || ctx_r0.formGroup.get("subject").hasError("maxlength")));
25452
25550
  i0.ɵɵadvance(2);
25453
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(45, _c0$F, ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required")));
25551
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(45, _c0$G, ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required")));
25454
25552
  i0.ɵɵadvance(3);
25455
25553
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(25, 29, "Query detail"), " ");
25456
25554
  i0.ɵɵadvance(3);
@@ -25461,7 +25559,7 @@ function QueryWriteRaiseQueryComponent_div_11_Template(rf, ctx) { if (rf & 1) {
25461
25559
  i0.ɵɵclassProp("govuk-textarea--error", ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required"));
25462
25560
  i0.ɵɵproperty("formControlName", "body");
25463
25561
  i0.ɵɵadvance(2);
25464
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(47, _c0$F, ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").hasError("required")));
25562
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(47, _c0$G, ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").hasError("required")));
25465
25563
  i0.ɵɵadvance(4);
25466
25564
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(37, 33, "Is the query hearing related?"), " ");
25467
25565
  i0.ɵɵadvance(2);
@@ -26085,7 +26183,7 @@ class CloseQueryComponent {
26085
26183
  }] }); })();
26086
26184
  (() => { (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 }); })();
26087
26185
 
26088
- const _c0$E = (a0, a1) => ["/query-management", "query", a0, "4", a1];
26186
+ const _c0$F = (a0, a1) => ["/query-management", "query", a0, "4", a1];
26089
26187
  function ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_div_1_Template(rf, ctx) { if (rf & 1) {
26090
26188
  const _r1 = i0.ɵɵgetCurrentView();
26091
26189
  i0.ɵɵelementStart(0, "div", 6)(1, "ccd-query-list", 7);
@@ -26124,7 +26222,7 @@ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_conta
26124
26222
  } if (rf & 2) {
26125
26223
  const ctx_r1 = i0.ɵɵnextContext(3);
26126
26224
  i0.ɵɵadvance();
26127
- i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction2(4, _c0$E, ctx_r1.caseId, ctx_r1.query.id));
26225
+ i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction2(4, _c0$F, ctx_r1.caseId, ctx_r1.query.id));
26128
26226
  i0.ɵɵadvance();
26129
26227
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, "Ask a follow-up question"), " ");
26130
26228
  } }
@@ -26138,7 +26236,7 @@ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_templ
26138
26236
  } if (rf & 2) {
26139
26237
  const ctx_r1 = i0.ɵɵnextContext(4);
26140
26238
  i0.ɵɵadvance();
26141
- i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction2(4, _c0$E, ctx_r1.caseId, ctx_r1.query.id));
26239
+ i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction2(4, _c0$F, ctx_r1.caseId, ctx_r1.query.id));
26142
26240
  i0.ɵɵadvance();
26143
26241
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, "Ask a follow-up question"), " ");
26144
26242
  } }
@@ -26551,7 +26649,7 @@ class ReadRichTextAreaFieldComponent extends AbstractFieldReadComponent {
26551
26649
  }], () => [{ type: i4$1.DomSanitizer }], null); })();
26552
26650
  (() => { (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 }); })();
26553
26651
 
26554
- const _c0$D = ["editorHost"];
26652
+ const _c0$E = ["editorHost"];
26555
26653
  const _c1$e = a0 => ({ "form-group-error": a0 });
26556
26654
  const _c2$3 = a0 => ({ "ccd-rich-text-area__editor--error": a0 });
26557
26655
  const _c3 = a0 => ({ "ccd-rich-text-area__toolbar-button--active": a0 });
@@ -29173,7 +29271,7 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
29173
29271
  }
29174
29272
  static ɵfac = /*@__PURE__*/ (() => { let ɵWriteRichTextAreaFieldComponent_BaseFactory; return function WriteRichTextAreaFieldComponent_Factory(__ngFactoryType__) { return (ɵWriteRichTextAreaFieldComponent_BaseFactory || (ɵWriteRichTextAreaFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(WriteRichTextAreaFieldComponent)))(__ngFactoryType__ || WriteRichTextAreaFieldComponent); }; })();
29175
29273
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteRichTextAreaFieldComponent, selectors: [["ccd-write-rich-text-area-field"]], viewQuery: function WriteRichTextAreaFieldComponent_Query(rf, ctx) { if (rf & 1) {
29176
- i0.ɵɵviewQuery(_c0$D, 5);
29274
+ i0.ɵɵviewQuery(_c0$E, 5);
29177
29275
  } if (rf & 2) {
29178
29276
  let _t;
29179
29277
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.editorHost = _t.first);
@@ -29334,7 +29432,7 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
29334
29432
  i0.ɵɵproperty("ngIf", !ctx.isOrderedListActive());
29335
29433
  i0.ɵɵadvance(16);
29336
29434
  i0.ɵɵproperty("editor", ctx.editor)("formControl", ctx.richTextAreaControl);
29337
- } }, 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 });
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 });
29338
29436
  }
29339
29437
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteRichTextAreaFieldComponent, [{
29340
29438
  type: Component,
@@ -29366,7 +29464,7 @@ class ReadTextFieldComponent extends AbstractFieldReadComponent {
29366
29464
  }], null, null); })();
29367
29465
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadTextFieldComponent, { className: "ReadTextFieldComponent", filePath: "lib/shared/components/palette/text/read-text-field.component.ts", lineNumber: 9 }); })();
29368
29466
 
29369
- const _c0$C = a0 => ({ "form-group-error": a0 });
29467
+ const _c0$D = a0 => ({ "form-group-error": a0 });
29370
29468
  const _c1$d = a0 => ({ "govuk-input--error": a0 });
29371
29469
  function WriteTextFieldComponent_label_1_span_1_Template(rf, ctx) { if (rf & 1) {
29372
29470
  i0.ɵɵelementStart(0, "span", 7);
@@ -29424,7 +29522,7 @@ class WriteTextFieldComponent extends AbstractFieldWriteComponent {
29424
29522
  i0.ɵɵlistener("blur", function WriteTextFieldComponent_Template_input_blur_4_listener($event) { return ctx.onBlur($event); });
29425
29523
  i0.ɵɵelementEnd()();
29426
29524
  } if (rf & 2) {
29427
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$C, !!ctx.textControl && !ctx.textControl.valid && (ctx.textControl.dirty || ctx.textControl.touched)));
29525
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$D, !!ctx.textControl && !ctx.textControl.valid && (ctx.textControl.dirty || ctx.textControl.touched)));
29428
29526
  i0.ɵɵadvance();
29429
29527
  i0.ɵɵproperty("ngIf", !ctx.caseField.hidden);
29430
29528
  i0.ɵɵadvance();
@@ -29462,7 +29560,7 @@ class ReadTextAreaFieldComponent extends AbstractFieldReadComponent {
29462
29560
  }], null, null); })();
29463
29561
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadTextAreaFieldComponent, { className: "ReadTextAreaFieldComponent", filePath: "lib/shared/components/palette/text-area/read-text-area-field.component.ts", lineNumber: 9 }); })();
29464
29562
 
29465
- const _c0$B = a0 => ({ "form-group-error": a0 });
29563
+ const _c0$C = a0 => ({ "form-group-error": a0 });
29466
29564
  const _c1$c = a0 => ({ "govuk-textarea--error": a0 });
29467
29565
  function WriteTextAreaFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
29468
29566
  i0.ɵɵelementStart(0, "span", 6);
@@ -29521,7 +29619,7 @@ class WriteTextAreaFieldComponent extends AbstractFieldWriteComponent {
29521
29619
  i0.ɵɵlistener("input", function WriteTextAreaFieldComponent_Template_textarea_input_5_listener($event) { return ctx.autoGrow($event); });
29522
29620
  i0.ɵɵelementEnd()();
29523
29621
  } if (rf & 2) {
29524
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$B, !ctx.textareaControl.valid && ctx.textareaControl.dirty));
29622
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$C, !ctx.textareaControl.valid && ctx.textareaControl.dirty));
29525
29623
  i0.ɵɵadvance();
29526
29624
  i0.ɵɵproperty("for", ctx.id());
29527
29625
  i0.ɵɵadvance();
@@ -29558,31 +29656,86 @@ class UnsupportedFieldComponent {
29558
29656
  }], null, null); })();
29559
29657
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UnsupportedFieldComponent, { className: "UnsupportedFieldComponent", filePath: "lib/shared/components/palette/unsupported-field.component.ts", lineNumber: 8 }); })();
29560
29658
 
29561
- function WaysToPayFieldComponent_ccpay_payment_lib_0_Template(rf, ctx) { if (rf & 1) {
29562
- i0.ɵɵelement(0, "ccpay-payment-lib", 1);
29563
- } if (rf & 2) {
29564
- const ctx_r0 = i0.ɵɵnextContext();
29565
- 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");
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();
29566
29664
  } }
29567
29665
  class WaysToPayFieldComponent extends PaymentField {
29568
- constructor(appConfig, sessionStorage) {
29666
+ environmentInjector;
29667
+ paymentLoadError = false;
29668
+ paymentHost;
29669
+ paymentComponentRef;
29670
+ paymentModuleRef;
29671
+ constructor(appConfig, sessionStorage, environmentInjector) {
29569
29672
  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();
29570
29684
  }
29571
29685
  getCardPaymentReturnUrl() {
29572
29686
  return this.appConfig.getPaymentReturnUrl();
29573
29687
  }
29574
- static ɵfac = function WaysToPayFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WaysToPayFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(SessionStorageService)); };
29575
- 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) {
29576
- i0.ɵɵtemplate(0, WaysToPayFieldComponent_ccpay_payment_lib_0_Template, 1, 15, "ccpay-payment-lib", 0);
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);
29577
29727
  } if (rf & 2) {
29578
- i0.ɵɵproperty("ngIf", ctx.getUserRoles().length > 0);
29579
- } }, dependencies: [i5.NgIf, i3.PaymentLibComponent], encapsulation: 2 });
29728
+ i0.ɵɵproperty("ngIf", ctx.paymentLoadError);
29729
+ } }, dependencies: [i5.NgIf], encapsulation: 2 });
29580
29730
  }
29581
29731
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WaysToPayFieldComponent, [{
29582
29732
  type: Component,
29583
- 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>" }]
29584
- }], () => [{ type: AbstractAppConfig }, { type: SessionStorageService }], null); })();
29585
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WaysToPayFieldComponent, { className: "WaysToPayFieldComponent", filePath: "lib/shared/components/palette/waystopay/waystopay-field.component.ts", lineNumber: 11 }); })();
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 }); })();
29586
29739
 
29587
29740
  class YesNoService {
29588
29741
  static YES_INPUTS = [
@@ -36853,12 +37006,10 @@ class PaletteModule {
36853
37006
  MatAutocompleteModule,
36854
37007
  CdkTreeModule,
36855
37008
  OverlayModule,
36856
- PaymentLibModule,
36857
37009
  RpxTranslationModule.forChild(),
36858
37010
  CdkTreeModule,
36859
37011
  OverlayModule,
36860
37012
  MatDialogModule,
36861
- MediaViewerModule,
36862
37013
  LoadingModule,
36863
37014
  MarkdownComponentModule,
36864
37015
  ErrorsModule,
@@ -36909,12 +37060,10 @@ class PaletteModule {
36909
37060
  MatAutocompleteModule,
36910
37061
  CdkTreeModule,
36911
37062
  OverlayModule,
36912
- PaymentLibModule,
36913
37063
  RpxTranslationModule.forChild(),
36914
37064
  CdkTreeModule,
36915
37065
  OverlayModule,
36916
37066
  MatDialogModule,
36917
- MediaViewerModule,
36918
37067
  LoadingModule,
36919
37068
  MarkdownComponentModule,
36920
37069
  ErrorsModule,
@@ -37136,14 +37285,12 @@ class PaletteModule {
37136
37285
  MatDatepickerModule,
37137
37286
  MatAutocompleteModule,
37138
37287
  CdkTreeModule,
37139
- OverlayModule,
37140
- PaymentLibModule, i1.RpxTranslationModule, CdkTreeModule,
37288
+ OverlayModule, i1.RpxTranslationModule, CdkTreeModule,
37141
37289
  OverlayModule,
37142
37290
  MatDialogModule,
37143
- MediaViewerModule,
37144
37291
  LoadingModule,
37145
37292
  MarkdownComponentModule,
37146
- ErrorsModule, i3$1.NgxEditorModule], exports: [NgxMatDatepickerActions,
37293
+ ErrorsModule, i3.NgxEditorModule], exports: [NgxMatDatepickerActions,
37147
37294
  NgxMatDatepickerApply,
37148
37295
  NgxMatDatepickerInput,
37149
37296
  NgxMatDatetimepicker,
@@ -37332,12 +37479,12 @@ i0.ɵɵsetComponentScope(WriteDateContainerFieldComponent, function () { return
37332
37479
  i0.ɵɵsetComponentScope(WriteCollectionFieldComponent, function () { return [i5.NgForOf, i5.NgIf, i4.NgControlStatusGroup, i4.FormGroupDirective, MarkdownComponent, FieldWriteComponent]; }, function () { return [FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe]; });
37333
37480
  i0.ɵɵsetComponentScope(
37334
37481
  // ComponentLauncher web components
37335
- CaseFileViewFieldComponent, function () { return [i5.NgForOf, i5.NgIf, i14.MediaViewerComponent, CaseFileViewFolderComponent]; }, []);
37482
+ CaseFileViewFieldComponent, function () { return [i5.NgForOf, i5.NgIf, CaseFileViewFolderComponent]; }, []);
37336
37483
  i0.ɵɵsetComponentScope(
37337
37484
  // Components for case flags
37338
37485
  CaseFlagTableComponent, function () { return [i5.NgClass, i5.NgForOf, i5.NgIf]; }, function () { return [i5.DatePipe, i1.RpxTranslatePipe, FlagFieldDisplayPipe]; });
37339
37486
  i0.ɵɵsetComponentScope(SelectFlagTypeComponent, function () { return [i5.NgClass, i5.NgForOf, i5.NgIf, i4.DefaultValueAccessor, i4.CheckboxControlValueAccessor, i4.RadioControlValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName]; }, function () { return [i1.RpxTranslatePipe, FlagFieldDisplayPipe]; });
37340
- i0.ɵɵsetComponentScope(SearchLanguageInterpreterComponent, function () { return [i5.NgClass, i5.NgForOf, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i15.MatInput, i6.MatAutocomplete, i6.MatOption, i6.MatAutocompleteTrigger]; }, function () { return [i5.AsyncPipe, i1.RpxTranslatePipe, FlagFieldDisplayPipe,
37487
+ i0.ɵɵsetComponentScope(SearchLanguageInterpreterComponent, function () { return [i5.NgClass, i5.NgForOf, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i14.MatInput, i6.MatAutocomplete, i6.MatOption, i6.MatAutocompleteTrigger]; }, function () { return [i5.AsyncPipe, i1.RpxTranslatePipe, FlagFieldDisplayPipe,
37341
37488
  LanguageInterpreterDisplayPipe]; });
37342
37489
  i0.ɵɵsetComponentScope(ManageCaseFlagsComponent, function () { return [i5.NgClass, i5.NgForOf, i5.NgIf, i4.NgControlStatusGroup, i4.FormGroupDirective]; }, function () { return [i1.RpxTranslatePipe, ManageCaseFlagsLabelDisplayPipe]; });
37343
37490
  i0.ɵɵsetComponentScope(UpdateFlagComponent, function () { return [i5.NgClass, i5.NgForOf, i5.NgIf, i5.NgTemplateOutlet, i4.DefaultValueAccessor, i4.CheckboxControlValueAccessor, i4.RadioControlValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName]; }, function () { return [i1.RpxTranslatePipe, UpdateFlagTitleDisplayPipe]; });
@@ -46641,5 +46788,5 @@ class TestRouteSnapshotBuilder {
46641
46788
  * Generated bundle index. Do not edit.
46642
46789
  */
46643
46790
 
46644
- export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, AbstractFieldWriteJourneyComponent, AbstractJourneyComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddCommentsComponent, AddCommentsErrorMessage, AddCommentsStep, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BeforeYouStartComponent, BodyComponent, BrowserService, CCDCaseLinkType, COMPONENT_PORTAL_INJECTION_TOKEN, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditDataModule, CaseEditDataService, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventCompletionComponent, CaseEventCompletionTaskCancelledComponent, CaseEventCompletionTaskReassignedComponent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent, CaseFileViewFolderComponent, CaseFileViewFolderDocumentActionsComponent, CaseFileViewFolderSelectorComponent, CaseFileViewFolderSortComponent, CaseFileViewFolderToggleComponent, CaseFileViewOverlayMenuComponent, CaseFileViewService, CaseFlagCheckYourAnswersPageStep, CaseFlagDisplayContextParameter, CaseFlagErrorMessage, CaseFlagFieldState, CaseFlagFormFields, CaseFlagRefdataService, CaseFlagStatus, CaseFlagSummaryListComponent, CaseFlagSummaryListDisplayMode, CaseFlagTableComponent, CaseFlagWizardStepTitle, CaseFullAccessViewComponent, CaseHeaderComponent, CaseHeaderModule, CaseHistoryViewerFieldComponent, CaseLink, CaseLinkResponse, CaseListComponent, CaseListFiltersComponent, CaseListFiltersModule, CaseListModule, CaseNotifier, CasePaymentHistoryViewerFieldComponent, CasePrintDocument, CasePrinterComponent, CaseProgressComponent, CaseReferencePipe, CaseResolver, CaseSpecificAccessRequestComponent, CaseSpecificAccessSuccessComponent, CaseState, CaseTab, CaseTimelineComponent, CaseTimelineDisplayMode, CaseTimelineModule, CaseType, CaseTypeLite, CaseView, CaseViewComponent, CaseViewEvent, CaseViewTrigger, CaseViewerComponent, CaseViewerModule, CasesService, CaseworkerService, CcdCYAPageLabelFilterPipe, CcdCaseTitlePipe, CcdCollectionTableCaseFieldsFilterPipe, CcdPageFieldsPipe, CcdTabFieldsPipe, CheckYourAnswersComponent, CloseQueryComponent, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, ConfirmFlagStatusComponent, ConfirmStatusErrorMessage, ConfirmStatusStep, Confirmation, ConvertHrefToRouterService, CreateCaseFiltersComponent, CreateCaseFiltersModule, CreateCaseFiltersSelection, DRAFT_PREFIX, DRAFT_QUERY_PARAM, DashPipe, DateInputComponent, DatePipe, DateTimeFormatUtils, DatetimePickerComponent, DefinitionsModule, DefinitionsService, DeleteOrCancelDialogComponent, DialogsModule, DisplayMode, Document, DocumentData, DocumentDialogComponent, DocumentLinks, DocumentManagementService, DocumentUrlPipe, Draft, DraftService, DynamicListPipe, DynamicRadioListPipe, ESQueryType, Embedded, EnumDisplayDescriptionPipe, ErrorMessageComponent, ErrorNotifierService, EventCaseField, EventCompletionReturnStates, EventCompletionStateMachineService, EventCompletionStates, EventLogComponent, EventLogDetailsComponent, EventLogTableComponent, EventMessageModule, EventStartComponent, EventStartModule, EventStartStateMachineService, EventStatusService, EventTriggerResolver, EventTriggerService, Fee, FeeValue, Field, FieldLabelPipe, FieldReadComponent, FieldReadLabelComponent, FieldType, FieldTypeSanitiser, FieldWriteComponent, FieldsFilterPipe, FieldsPurger, FieldsUtils, FirstErrorPipe, FixedListItem, FixedListPipe, FixedRadioListPipe, FlagFieldDisplayPipe, FocusElementDirective, FocusElementModule, FocusService, FooterComponent, FormDocument, FormErrorService, FormValidatorsService, FormValueService, FormatTranslatorService, GreyBarService, HRef, HeaderBarComponent, HeadersModule, HttpError, HttpErrorService, HttpService, IsCompoundPipe, IsMandatoryPipe, IsReadOnlyAndNotCollectionPipe, IsReadOnlyPipe, JudicialworkerService, Jurisdiction, JurisdictionService, LabelFieldComponent, LabelSubstitutorDirective, LabelSubstitutorModule, LanguageInterpreterDisplayPipe, LinkCaseReason, LinkCasesComponent, LinkCasesFromReasonValuePipe, LinkCasesReasonValuePipe, LinkDetails, LinkFromReason, LinkReason, LinkedCasesErrorMessages, LinkedCasesEventTriggers, LinkedCasesFromTableComponent, LinkedCasesPages, LinkedCasesResponse, LinkedCasesToTableComponent, LoadingModule, LoadingService, LoadingSpinnerComponent, LoadingSpinnerModule, MULTIPLE_TASKS_FOUND, ManageCaseFlagsComponent, ManageCaseFlagsLabelDisplayPipe, MarkdownComponent, MarkdownComponentModule, MoneyGbpInputComponent, MultipageComponentStateService, MultipleTasksExistComponent, NavigationComponent, NavigationItemComponent, NavigationNotifierService, NavigationOrigin, NoLinkedCasesComponent, NoTasksAvailableComponent, NotificationBannerComponent, NotificationBannerHeaderClass, NotificationBannerType, OrderService, OrderSummary, OrganisationConverter, OrganisationService, PageValidationService, PaginationComponent, PaginationMetadata, PaginationModule, PaletteContext, PaletteModule, PaletteService, PaletteUtilsModule, Patterns, PaymentField, PhaseComponent, PipesModule, PlaceholderService, PrintUrlPipe, Profile, ProfileNotifier, ProfileResolver, ProfileService, QualifyingQuestionDetailComponent, QualifyingQuestionOptionsComponent, QualifyingQuestionService, QualifyingQuestionsErrorMessage, QueryAttachmentsReadComponent, QueryCaseDetailsHeaderComponent, QueryCheckYourAnswersComponent, QueryConfirmationComponent, QueryCreateContext, QueryDetailsComponent, QueryEventCompletionComponent, QueryItemResponseStatus, QueryListComponent, QueryListData, QueryListItem, QueryManagementService, QueryWriteAddDocumentsComponent, QueryWriteDateInputComponent, QueryWriteRaiseQueryComponent, QueryWriteRespondToQueryComponent, RaiseQueryErrorMessage, ReadCaseFlagFieldComponent, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadCookieService, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicMultiSelectListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadLinkedCasesFieldComponent, ReadMoneyGbpFieldComponent, ReadMultiSelectListFieldComponent, ReadNumberFieldComponent, ReadOrderSummaryFieldComponent, ReadOrderSummaryRowComponent, ReadOrganisationFieldComponent, ReadOrganisationFieldRawComponent, ReadOrganisationFieldTableComponent, ReadPhoneUKFieldComponent, ReadQueryManagementFieldComponent, ReadRichTextAreaFieldComponent, ReadStaffUserFieldComponent, ReadTextAreaFieldComponent, ReadTextFieldComponent, ReadYesNoFieldComponent, RefdataCaseFlagType, RemoveDialogComponent, RequestOptionsBuilder, RespondToQueryErrorMessages, RetryUtil, RouterHelperService, RouterLinkComponent, SaveOrDiscardDialogComponent, SearchFiltersComponent, SearchFiltersModule, SearchFiltersWrapperComponent, SearchInput, SearchLanguageInterpreterComponent, SearchLanguageInterpreterErrorMessage, SearchLanguageInterpreterStep, SearchResultComponent, SearchResultModule, SearchResultView, SearchResultViewColumn, SearchResultViewItem, SearchResultViewItemComparatorFactory, SearchService, SelectFlagErrorMessage, SelectFlagLocationComponent, SelectFlagLocationErrorMessage, SelectFlagTypeComponent, SelectFlagTypeErrorMessage, SessionErrorPageComponent, SessionErrorRoute, SessionJsonErrorLogger, SessionStorageGuard, SessionStorageService, ShowCondition, SortOrder$1 as SortOrder, SortParameters, SortSearchResultPipe, StructuredLoggerService, TabComponent, TableColumnConfig, TableConfig, TabsComponent, TabsModule, TaskAssignedComponent, TaskCancelledComponent, TaskConflictComponent, TaskUnassignedComponent, Terms, TestRouteSnapshotBuilder, TranslatedMarkdownDirective, TranslatedMarkdownModule, UnLinkCasesComponent, UnsupportedFieldComponent, UpdateFlagAddTranslationErrorMessage, UpdateFlagAddTranslationFormComponent, UpdateFlagAddTranslationStep, UpdateFlagComponent, UpdateFlagErrorMessage, UpdateFlagStep, UpdateFlagTitleDisplayPipe, WaysToPayFieldComponent, WindowService, Wizard, WizardFactoryService, WizardPage, WizardPageField, WorkAllocationService, WorkbasketFiltersComponent, WorkbasketFiltersModule, WorkbasketInput, WorkbasketInputFilterService, WorkbasketInputModel, WriteAddressFieldComponent, WriteCaseFlagFieldComponent, WriteCaseLinkFieldComponent, WriteCollectionFieldComponent, WriteComplexFieldComponent, WriteDateContainerFieldComponent, WriteDateFieldComponent, WriteDocumentFieldComponent, WriteDynamicListFieldComponent, WriteDynamicMultiSelectListFieldComponent, WriteDynamicRadioListFieldComponent, WriteEmailFieldComponent, WriteFixedListFieldComponent, WriteFixedRadioListFieldComponent, WriteJudicialUserFieldComponent, WriteLinkedCasesFieldComponent, WriteMoneyGbpFieldComponent, WriteMultiSelectListFieldComponent, WriteNumberFieldComponent, WriteOrderSummaryFieldComponent, WriteOrganisationComplexFieldComponent, WriteOrganisationFieldComponent, WritePhoneUKFieldComponent, WriteRichTextAreaFieldComponent, WriteStaffUserFieldComponent, WriteTextAreaFieldComponent, WriteTextFieldComponent, WriteYesNoFieldComponent, YesNoService, aCaseField, caseMessagesMockData, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, parseStaffUserSearchConfiguration, safeJsonParse, textFieldType, viewerRouting };
46791
+ export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, AbstractFieldWriteJourneyComponent, AbstractJourneyComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddCommentsComponent, AddCommentsErrorMessage, AddCommentsStep, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BeforeYouStartComponent, BodyComponent, BrowserService, CCDCaseLinkType, COMPONENT_PORTAL_INJECTION_TOKEN, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditDataModule, CaseEditDataService, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventCompletionComponent, CaseEventCompletionTaskCancelledComponent, CaseEventCompletionTaskReassignedComponent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent, CaseFileViewFolderComponent, CaseFileViewFolderDocumentActionsComponent, CaseFileViewFolderSelectorComponent, CaseFileViewFolderSortComponent, CaseFileViewFolderToggleComponent, CaseFileViewOverlayMenuComponent, CaseFileViewService, CaseFlagCheckYourAnswersPageStep, CaseFlagDisplayContextParameter, CaseFlagErrorMessage, CaseFlagFieldState, CaseFlagFormFields, CaseFlagRefdataService, CaseFlagStatus, CaseFlagSummaryListComponent, CaseFlagSummaryListDisplayMode, CaseFlagTableComponent, CaseFlagWizardStepTitle, CaseFullAccessViewComponent, CaseHeaderComponent, CaseHeaderModule, CaseHistoryViewerFieldComponent, CaseLink, CaseLinkResponse, CaseListComponent, CaseListFiltersComponent, CaseListFiltersModule, CaseListModule, CaseNotifier, CasePaymentHistoryViewerFieldComponent, CasePrintDocument, CasePrinterComponent, CaseProgressComponent, CaseReferencePipe, CaseResolver, CaseSpecificAccessRequestComponent, CaseSpecificAccessSuccessComponent, CaseState, CaseTab, CaseTimelineComponent, CaseTimelineDisplayMode, CaseTimelineModule, CaseType, CaseTypeLite, CaseView, CaseViewComponent, CaseViewEvent, CaseViewTrigger, CaseViewerComponent, CaseViewerModule, CasesService, CaseworkerService, CcdCYAPageLabelFilterPipe, CcdCaseTitlePipe, CcdCollectionTableCaseFieldsFilterPipe, CcdPageFieldsPipe, CcdTabFieldsPipe, CheckYourAnswersComponent, CloseQueryComponent, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, ConfirmFlagStatusComponent, ConfirmStatusErrorMessage, ConfirmStatusStep, Confirmation, ConvertHrefToRouterService, CreateCaseFiltersComponent, CreateCaseFiltersModule, CreateCaseFiltersSelection, DRAFT_PREFIX, DRAFT_QUERY_PARAM, DashPipe, DateInputComponent, DatePipe, DateTimeFormatUtils, DatetimePickerComponent, DefinitionsModule, DefinitionsService, DeleteOrCancelDialogComponent, DialogsModule, DisplayMode, Document, DocumentData, DocumentDialogComponent, DocumentLinks, DocumentManagementService, DocumentUrlPipe, Draft, DraftService, DynamicListPipe, DynamicRadioListPipe, ESQueryType, Embedded, EnumDisplayDescriptionPipe, ErrorMessageComponent, ErrorNotifierService, EventCaseField, EventCompletionReturnStates, EventCompletionStateMachineService, EventCompletionStates, EventLogComponent, EventLogDetailsComponent, EventLogTableComponent, EventMessageModule, EventStartComponent, EventStartModule, EventStartStateMachineService, EventStatusService, EventTriggerResolver, EventTriggerService, Fee, FeeValue, Field, FieldLabelPipe, FieldReadComponent, FieldReadLabelComponent, FieldType, FieldTypeSanitiser, FieldWriteComponent, FieldsFilterPipe, FieldsPurger, FieldsUtils, FirstErrorPipe, FixedListItem, FixedListPipe, FixedRadioListPipe, FlagFieldDisplayPipe, FocusElementDirective, FocusElementModule, FocusService, FooterComponent, FormDocument, FormErrorService, FormValidatorsService, FormValueService, FormatTranslatorService, GreyBarService, HRef, HeaderBarComponent, HeadersModule, HttpError, HttpErrorService, HttpService, IsCompoundPipe, IsMandatoryPipe, IsReadOnlyAndNotCollectionPipe, IsReadOnlyPipe, JudicialworkerService, Jurisdiction, JurisdictionService, LabelFieldComponent, LabelSubstitutorDirective, LabelSubstitutorModule, LanguageInterpreterDisplayPipe, LinkCaseReason, LinkCasesComponent, LinkCasesFromReasonValuePipe, LinkCasesReasonValuePipe, LinkDetails, LinkFromReason, LinkReason, LinkedCasesErrorMessages, LinkedCasesEventTriggers, LinkedCasesFromTableComponent, LinkedCasesPages, LinkedCasesResponse, LinkedCasesToTableComponent, LoadingModule, LoadingService, LoadingSpinnerComponent, LoadingSpinnerModule, MULTIPLE_TASKS_FOUND, ManageCaseFlagsComponent, ManageCaseFlagsLabelDisplayPipe, MarkdownComponent, MarkdownComponentModule, MoneyGbpInputComponent, MultipageComponentStateService, MultipleTasksExistComponent, NavigationComponent, NavigationItemComponent, NavigationNotifierService, NavigationOrigin, NoLinkedCasesComponent, NoTasksAvailableComponent, NotificationBannerComponent, NotificationBannerHeaderClass, NotificationBannerType, OrderService, OrderSummary, OrganisationConverter, OrganisationService, PageValidationService, PaginationComponent, PaginationMetadata, PaginationModule, PaletteContext, PaletteModule, PaletteService, PaletteUtilsModule, Patterns, PaymentField, PhaseComponent, PipesModule, PlaceholderService, PrintUrlPipe, Profile, ProfileNotifier, ProfileResolver, ProfileService, QualifyingQuestionDetailComponent, QualifyingQuestionOptionsComponent, QualifyingQuestionService, QualifyingQuestionsErrorMessage, QueryAttachmentsReadComponent, QueryCaseDetailsHeaderComponent, QueryCheckYourAnswersComponent, QueryConfirmationComponent, QueryCreateContext, QueryDetailsComponent, QueryEventCompletionComponent, QueryItemResponseStatus, QueryListComponent, QueryListData, QueryListItem, QueryManagementService, QueryWriteAddDocumentsComponent, QueryWriteDateInputComponent, QueryWriteRaiseQueryComponent, QueryWriteRespondToQueryComponent, RaiseQueryErrorMessage, ReadCaseFlagFieldComponent, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadCookieService, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicMultiSelectListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadLinkedCasesFieldComponent, ReadMoneyGbpFieldComponent, ReadMultiSelectListFieldComponent, ReadNumberFieldComponent, ReadOrderSummaryFieldComponent, ReadOrderSummaryRowComponent, ReadOrganisationFieldComponent, ReadOrganisationFieldRawComponent, ReadOrganisationFieldTableComponent, ReadPhoneUKFieldComponent, ReadQueryManagementFieldComponent, ReadRichTextAreaFieldComponent, ReadStaffUserFieldComponent, ReadTextAreaFieldComponent, ReadTextFieldComponent, ReadYesNoFieldComponent, RefdataCaseFlagType, RemoveDialogComponent, RequestOptionsBuilder, RespondToQueryErrorMessages, RetryUtil, RouterHelperService, RouterLinkComponent, SaveOrDiscardDialogComponent, SearchFiltersComponent, SearchFiltersModule, SearchFiltersWrapperComponent, SearchInput, SearchLanguageInterpreterComponent, SearchLanguageInterpreterErrorMessage, SearchLanguageInterpreterStep, SearchResultComponent, SearchResultModule, SearchResultView, SearchResultViewColumn, SearchResultViewItem, SearchResultViewItemComparatorFactory, SearchService, SelectFlagErrorMessage, SelectFlagLocationComponent, SelectFlagLocationErrorMessage, SelectFlagTypeComponent, SelectFlagTypeErrorMessage, SessionErrorPageComponent, SessionErrorRoute, SessionJsonErrorLogger, SessionStorageGuard, SessionStorageService, ShowCondition, SortOrder$1 as SortOrder, SortParameters, SortSearchResultPipe, StructuredLoggerService, TabComponent, TableColumnConfig, TableConfig, TabsComponent, TabsModule, TaskAssignedComponent, TaskCancelledComponent, TaskConflictComponent, TaskUnassignedComponent, Terms, TestRouteSnapshotBuilder, TranslatedMarkdownDirective, TranslatedMarkdownModule, UnLinkCasesComponent, UnsupportedFieldComponent, UpdateFlagAddTranslationErrorMessage, UpdateFlagAddTranslationFormComponent, UpdateFlagAddTranslationStep, UpdateFlagComponent, UpdateFlagErrorMessage, UpdateFlagStep, UpdateFlagTitleDisplayPipe, WaysToPayFieldComponent, WindowService, Wizard, WizardFactoryService, WizardPage, WizardPageField, WorkAllocationService, WorkbasketFiltersComponent, WorkbasketFiltersModule, WorkbasketInput, WorkbasketInputFilterService, WorkbasketInputModel, WriteAddressFieldComponent, WriteCaseFlagFieldComponent, WriteCaseLinkFieldComponent, WriteCollectionFieldComponent, WriteComplexFieldComponent, WriteDateContainerFieldComponent, WriteDateFieldComponent, WriteDocumentFieldComponent, WriteDynamicListFieldComponent, WriteDynamicMultiSelectListFieldComponent, WriteDynamicRadioListFieldComponent, WriteEmailFieldComponent, WriteFixedListFieldComponent, WriteFixedRadioListFieldComponent, WriteJudicialUserFieldComponent, WriteLinkedCasesFieldComponent, WriteMoneyGbpFieldComponent, WriteMultiSelectListFieldComponent, WriteNumberFieldComponent, WriteOrderSummaryFieldComponent, WriteOrganisationComplexFieldComponent, WriteOrganisationFieldComponent, WritePhoneUKFieldComponent, WriteRichTextAreaFieldComponent, WriteStaffUserFieldComponent, WriteTextAreaFieldComponent, WriteTextFieldComponent, WriteYesNoFieldComponent, YesNoService, aCaseField, caseMessagesMockData, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, parseStaffUserSearchConfiguration, textFieldType, viewerRouting };
46645
46792
  //# sourceMappingURL=hmcts-ccd-case-ui-toolkit.mjs.map