@hmcts/ccd-case-ui-toolkit 7.3.76 → 7.3.77-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, EventEmitter, Output, NgModule, ViewEncapsulation, forwardRef, Pipe, ContentChildren, ViewChildren, Injectable, DOCUMENT, Inject, InjectionToken, Optional, ChangeDetectorRef, Directive, ViewChild, ChangeDetectionStrategy, Injector, ViewContainerRef, SecurityContext, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
2
+ import { Component, Input, EventEmitter, Output, NgModule, ViewEncapsulation, forwardRef, Pipe, ContentChildren, ViewChildren, Injectable, DOCUMENT, Inject, InjectionToken, Optional, ChangeDetectorRef, Directive, ViewChild, createNgModule, ViewContainerRef, ChangeDetectionStrategy, Injector, SecurityContext, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
3
3
  import * as i4 from '@angular/common';
4
4
  import { CommonModule, AsyncPipe, CurrencyPipe, formatDate } from '@angular/common';
5
5
  import * as i1 from 'rpx-xui-translation';
@@ -12,6 +12,8 @@ import { BehaviorSubject, throwError, Subject, EMPTY, concat, defer, timer, Obse
12
12
  import { distinctUntilChanged, catchError, map, switchMap, repeat, retry, publish, refCount, debounceTime, delay, finalize, timeout, mergeMap, retryWhen, tap, delayWhen, publishReplay, take, first, takeUntil, filter } from 'rxjs/operators';
13
13
  import * as i1$2 from '@angular/common/http';
14
14
  import { HttpErrorResponse, HttpHeaders, HttpParams } from '@angular/common/http';
15
+ import { safeJsonParse } from '@hmcts/ccd-case-ui-toolkit/json-utils';
16
+ export { safeJsonParse } from '@hmcts/ccd-case-ui-toolkit/json-utils';
15
17
  import { Type, Exclude, Expose, plainToClassFromExist, plainToClass } from 'class-transformer';
16
18
  import moment from 'moment';
17
19
  import { __decorate, __metadata } from 'tslib';
@@ -29,8 +31,6 @@ import * as i6 from '@angular/material/legacy-autocomplete';
29
31
  import { MatLegacyAutocompleteModule } from '@angular/material/legacy-autocomplete';
30
32
  import * as i7 from '@angular/material/legacy-core';
31
33
  import { MAT_LEGACY_DATE_LOCALE } from '@angular/material/legacy-core';
32
- import * as i3$1 from '@hmcts/ccpay-web-component';
33
- import { PaymentLibModule } from '@hmcts/ccpay-web-component';
34
34
  import { v4 } from 'uuid';
35
35
  import * as i2 from '@angular/cdk/overlay';
36
36
  import { OverlayModule } from '@angular/cdk/overlay';
@@ -45,10 +45,8 @@ import * as i5 from '@angular/material/legacy-form-field';
45
45
  import { MatLegacyFormFieldModule } from '@angular/material/legacy-form-field';
46
46
  import * as i6$2 from '@angular/material/datepicker';
47
47
  import { MatDatepickerModule } from '@angular/material/datepicker';
48
- import * as i14 from '@angular/material/legacy-input';
48
+ import * as i13 from '@angular/material/legacy-input';
49
49
  import { MatLegacyInputModule } from '@angular/material/legacy-input';
50
- import * as i13 from '@hmcts/media-viewer';
51
- import { MediaViewerModule } from '@hmcts/media-viewer';
52
50
  import { PortalModule } from '@angular/cdk/portal';
53
51
  import * as i2$2 from 'ngx-pagination';
54
52
  import { NgxPaginationModule, PaginatePipe } from 'ngx-pagination';
@@ -56,7 +54,7 @@ import * as i10 from '@angular/material/legacy-tabs';
56
54
  import { MatLegacyTabsModule } from '@angular/material/legacy-tabs';
57
55
  import { compressToUTF16, decompressFromUTF16 } from 'lz-string';
58
56
 
59
- const _c0$18 = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
57
+ const _c0$1b = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
60
58
  const _c1$u = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
61
59
  function FooterComponent_div_2_Template(rf, ctx) { if (rf & 1) {
62
60
  i0.ɵɵelementStart(0, "div", 3)(1, "div", 4);
@@ -134,7 +132,7 @@ class FooterComponent {
134
132
  workhours;
135
133
  static ɵfac = function FooterComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FooterComponent)(); };
136
134
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, standalone: false, ngContentSelectors: _c1$u, 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) {
137
- i0.ɵɵprojectionDef(_c0$18);
135
+ i0.ɵɵprojectionDef(_c0$1b);
138
136
  i0.ɵɵelementStart(0, "footer", 0)(1, "div", 1);
139
137
  i0.ɵɵtemplate(2, FooterComponent_div_2_Template, 20, 15, "div", 2)(3, FooterComponent_div_3_Template, 20, 16, "div", 2);
140
138
  i0.ɵɵelementEnd()();
@@ -161,7 +159,7 @@ class FooterComponent {
161
159
  }] }); })();
162
160
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FooterComponent, { className: "FooterComponent", filePath: "lib/components/footer/footer.component.ts", lineNumber: 9 }); })();
163
161
 
164
- const _c0$17 = [[["", "headerNavigation", ""]]];
162
+ const _c0$1a = [[["", "headerNavigation", ""]]];
165
163
  const _c1$t = ["[headerNavigation]"];
166
164
  function HeaderBarComponent_div_3_Template(rf, ctx) { if (rf & 1) {
167
165
  i0.ɵɵelementStart(0, "div")(1, "a", 12);
@@ -204,7 +202,7 @@ class HeaderBarComponent {
204
202
  }
205
203
  static ɵfac = function HeaderBarComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || HeaderBarComponent)(); };
206
204
  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$t, 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) {
207
- i0.ɵɵprojectionDef(_c0$17);
205
+ i0.ɵɵprojectionDef(_c0$1a);
208
206
  i0.ɵɵelementStart(0, "header", 0)(1, "div", 1)(2, "div", 2);
209
207
  i0.ɵɵtemplate(3, HeaderBarComponent_div_3_Template, 4, 1, "div", 3)(4, HeaderBarComponent_div_4_Template, 5, 3, "div", 4);
210
208
  i0.ɵɵelementEnd();
@@ -254,13 +252,13 @@ class HeaderBarComponent {
254
252
  }] }); })();
255
253
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(HeaderBarComponent, { className: "HeaderBarComponent", filePath: "lib/components/header/header-bar/header-bar.component.ts", lineNumber: 9 }); })();
256
254
 
257
- const _c0$16 = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
255
+ const _c0$19 = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
258
256
  const _c1$s = ["[leftNavLinks]", "[rightNavLinks]"];
259
257
  class NavigationComponent {
260
258
  isSolicitor;
261
259
  static ɵfac = function NavigationComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || NavigationComponent)(); };
262
260
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, standalone: false, ngContentSelectors: _c1$s, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) { if (rf & 1) {
263
- i0.ɵɵprojectionDef(_c0$16);
261
+ i0.ɵɵprojectionDef(_c0$19);
264
262
  i0.ɵɵelementStart(0, "div")(1, "nav", 0);
265
263
  i0.ɵɵprojection(2);
266
264
  i0.ɵɵprojection(3, 1);
@@ -378,12 +376,12 @@ class HeadersModule {
378
376
  }], null, null); })();
379
377
  (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(HeadersModule, { declarations: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent], imports: [CommonModule, RouterModule, i1.RpxTranslationModule], exports: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent] }); })();
380
378
 
381
- const _c0$15 = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
379
+ const _c0$18 = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
382
380
  const _c1$r = ["[topBody]", "[leftBody]", "[rightBody]"];
383
381
  class BodyComponent {
384
382
  static ɵfac = function BodyComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BodyComponent)(); };
385
383
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], standalone: false, ngContentSelectors: _c1$r, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) { if (rf & 1) {
386
- i0.ɵɵprojectionDef(_c0$15);
384
+ i0.ɵɵprojectionDef(_c0$18);
387
385
  i0.ɵɵelementStart(0, "div", 0);
388
386
  i0.ɵɵprojection(1);
389
387
  i0.ɵɵprojection(2, 1);
@@ -397,7 +395,7 @@ class BodyComponent {
397
395
  }], null, null); })();
398
396
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BodyComponent, { className: "BodyComponent", filePath: "lib/components/body/body.component.ts", lineNumber: 10 }); })();
399
397
 
400
- const _c0$14 = a0 => ({ "govuk-input--error": a0 });
398
+ const _c0$17 = a0 => ({ "govuk-input--error": a0 });
401
399
  function DateInputComponent_div_19_Template(rf, ctx) { if (rf & 1) {
402
400
  const _r5 = i0.ɵɵgetCurrentView();
403
401
  i0.ɵɵelementStart(0, "div", 15)(1, "span", 8);
@@ -414,7 +412,7 @@ function DateInputComponent_div_19_Template(rf, ctx) { if (rf & 1) {
414
412
  i0.ɵɵadvance();
415
413
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 7, "Hour"));
416
414
  i0.ɵɵadvance(2);
417
- i0.ɵɵproperty("id", ctx_r6.hourId())("name", ctx_r6.hourId())("value", ctx_r6.displayHour)("ngClass", i0.ɵɵpureFunction1(9, _c0$14, ctx_r6.isInvalid));
415
+ i0.ɵɵproperty("id", ctx_r6.hourId())("name", ctx_r6.hourId())("value", ctx_r6.displayHour)("ngClass", i0.ɵɵpureFunction1(9, _c0$17, ctx_r6.isInvalid));
418
416
  i0.ɵɵattribute("aria-labelledby", "hour-label-" + ctx_r6.hourId());
419
417
  } }
420
418
  function DateInputComponent_div_20_Template(rf, ctx) { if (rf & 1) {
@@ -433,7 +431,7 @@ function DateInputComponent_div_20_Template(rf, ctx) { if (rf & 1) {
433
431
  i0.ɵɵadvance();
434
432
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 7, "Minute"));
435
433
  i0.ɵɵadvance(2);
436
- i0.ɵɵproperty("id", ctx_r6.minuteId())("name", ctx_r6.minuteId())("value", ctx_r6.displayMinute)("ngClass", i0.ɵɵpureFunction1(9, _c0$14, ctx_r6.isInvalid));
434
+ i0.ɵɵproperty("id", ctx_r6.minuteId())("name", ctx_r6.minuteId())("value", ctx_r6.displayMinute)("ngClass", i0.ɵɵpureFunction1(9, _c0$17, ctx_r6.isInvalid));
437
435
  i0.ɵɵattribute("aria-labelledby", "minute-label-" + ctx_r6.minuteId());
438
436
  } }
439
437
  function DateInputComponent_div_21_Template(rf, ctx) { if (rf & 1) {
@@ -452,7 +450,7 @@ function DateInputComponent_div_21_Template(rf, ctx) { if (rf & 1) {
452
450
  i0.ɵɵadvance();
453
451
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 7, "Second"));
454
452
  i0.ɵɵadvance(2);
455
- i0.ɵɵproperty("id", ctx_r6.secondId())("name", ctx_r6.secondId())("value", ctx_r6.displaySecond)("ngClass", i0.ɵɵpureFunction1(9, _c0$14, ctx_r6.isInvalid));
453
+ i0.ɵɵproperty("id", ctx_r6.secondId())("name", ctx_r6.secondId())("value", ctx_r6.displaySecond)("ngClass", i0.ɵɵpureFunction1(9, _c0$17, ctx_r6.isInvalid));
456
454
  i0.ɵɵattribute("aria-labelledby", "second-label-" + ctx_r6.secondId());
457
455
  } }
458
456
  class DateInputComponent {
@@ -688,21 +686,21 @@ class DateInputComponent {
688
686
  i0.ɵɵadvance();
689
687
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 24, "Day"));
690
688
  i0.ɵɵadvance(2);
691
- i0.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0.ɵɵpureFunction1(30, _c0$14, ctx.isInvalid));
689
+ i0.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0.ɵɵpureFunction1(30, _c0$17, ctx.isInvalid));
692
690
  i0.ɵɵattribute("aria-labelledby", "day-label-" + ctx.dayId());
693
691
  i0.ɵɵadvance(3);
694
692
  i0.ɵɵattribute("id", "month-label-" + ctx.monthId());
695
693
  i0.ɵɵadvance();
696
694
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 26, "Month"));
697
695
  i0.ɵɵadvance(2);
698
- i0.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0.ɵɵpureFunction1(32, _c0$14, ctx.isInvalid));
696
+ i0.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0.ɵɵpureFunction1(32, _c0$17, ctx.isInvalid));
699
697
  i0.ɵɵattribute("aria-labelledby", "month-label-" + ctx.monthId());
700
698
  i0.ɵɵadvance(3);
701
699
  i0.ɵɵattribute("id", "year-label-" + ctx.yearId());
702
700
  i0.ɵɵadvance();
703
701
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(16, 28, "Year"));
704
702
  i0.ɵɵadvance(2);
705
- i0.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0.ɵɵpureFunction1(34, _c0$14, ctx.isInvalid));
703
+ i0.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0.ɵɵpureFunction1(34, _c0$17, ctx.isInvalid));
706
704
  i0.ɵɵattribute("aria-labelledby", "year-label-" + ctx.yearId());
707
705
  i0.ɵɵadvance(2);
708
706
  i0.ɵɵproperty("ngIf", ctx.isDateTime);
@@ -739,7 +737,7 @@ class DateInputComponent {
739
737
  }] }); })();
740
738
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DateInputComponent, { className: "DateInputComponent", filePath: "lib/components/form/date-input/date-input.component.ts", lineNumber: 21 }); })();
741
739
 
742
- const _c0$13 = ["*"];
740
+ const _c0$16 = ["*"];
743
741
  function AlertComponent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
744
742
  i0.ɵɵelementContainerStart(0);
745
743
  i0.ɵɵnamespaceSVG();
@@ -789,7 +787,7 @@ class AlertComponent {
789
787
  showIcon = true;
790
788
  alertMessageType = AlertMessageType;
791
789
  static ɵfac = function AlertComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AlertComponent)(); };
792
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, standalone: false, ngContentSelectors: _c0$13, 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) {
790
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, standalone: false, ngContentSelectors: _c0$16, decls: 11, vars: 12, consts: [[1, "hmcts-banner"], [3, "ngSwitch"], [4, "ngSwitchCase"], [1, "hmcts-banner__message"], [1, "hmcts-banner__assistive"], ["fill", "currentColor", "role", "presentation", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 25", "height", "25", "width", "25", 1, "hmcts-banner__icon"], ["d", "M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z"], ["d", "M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z"], ["d", "M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z"]], template: function AlertComponent_Template(rf, ctx) { if (rf & 1) {
793
791
  i0.ɵɵprojectionDef();
794
792
  i0.ɵɵelementStart(0, "div", 0);
795
793
  i0.ɵɵelementContainerStart(1, 1);
@@ -1003,14 +1001,14 @@ class NotificationBannerComponent {
1003
1001
  }] }); })();
1004
1002
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(NotificationBannerComponent, { className: "NotificationBannerComponent", filePath: "lib/components/banners/notification-banner/notification-banner.component.ts", lineNumber: 11 }); })();
1005
1003
 
1006
- const _c0$12 = ["*"];
1004
+ const _c0$15 = ["*"];
1007
1005
  const _c1$q = a0 => ({ "js-hidden": a0 });
1008
1006
  class TabComponent {
1009
1007
  id;
1010
1008
  title;
1011
1009
  selected;
1012
1010
  static ɵfac = function TabComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TabComponent)(); };
1013
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, standalone: false, ngContentSelectors: _c0$12, decls: 2, vars: 5, consts: [["role", "tabpanel", 1, "tabs-panel", 3, "id", "ngClass"]], template: function TabComponent_Template(rf, ctx) { if (rf & 1) {
1011
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, standalone: false, ngContentSelectors: _c0$15, decls: 2, vars: 5, consts: [["role", "tabpanel", 1, "tabs-panel", 3, "id", "ngClass"]], template: function TabComponent_Template(rf, ctx) { if (rf & 1) {
1014
1012
  i0.ɵɵprojectionDef();
1015
1013
  i0.ɵɵelementStart(0, "div", 0);
1016
1014
  i0.ɵɵprojection(1);
@@ -1032,7 +1030,7 @@ class TabComponent {
1032
1030
  }] }); })();
1033
1031
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TabComponent, { className: "TabComponent", filePath: "lib/components/tabs/tab.component.ts", lineNumber: 11 }); })();
1034
1032
 
1035
- const _c0$11 = ["tab"];
1033
+ const _c0$14 = ["tab"];
1036
1034
  const _c1$p = ["*"];
1037
1035
  const _c2$4 = () => ["."];
1038
1036
  const _c3 = a0 => ({ "tabs-toggle-selected": a0 });
@@ -1079,7 +1077,7 @@ class TabsComponent {
1079
1077
  let _t;
1080
1078
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.panels = _t);
1081
1079
  } }, viewQuery: function TabsComponent_Query(rf, ctx) { if (rf & 1) {
1082
- i0.ɵɵviewQuery(_c0$11, 5);
1080
+ i0.ɵɵviewQuery(_c0$14, 5);
1083
1081
  } if (rf & 2) {
1084
1082
  let _t;
1085
1083
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabs = _t);
@@ -1138,7 +1136,7 @@ class TabsModule {
1138
1136
  RouterModule, i1.RpxTranslationModule], exports: [TabsComponent,
1139
1137
  TabComponent] }); })();
1140
1138
 
1141
- const _c0$10 = (a0, a1) => ({ caseLocked: a0, someoneViewing: a1 });
1139
+ const _c0$13 = (a0, a1) => ({ caseLocked: a0, someoneViewing: a1 });
1142
1140
  class ActivityBannerComponent {
1143
1141
  bannerType;
1144
1142
  description;
@@ -1157,7 +1155,7 @@ class ActivityBannerComponent {
1157
1155
  i0.ɵɵpipe(6, "rpxTranslate");
1158
1156
  i0.ɵɵelementEnd()();
1159
1157
  } if (rf & 2) {
1160
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(10, _c0$10, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
1158
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(10, _c0$13, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
1161
1159
  i0.ɵɵadvance(2);
1162
1160
  i0.ɵɵproperty("alt", i0.ɵɵinterpolate(i0.ɵɵpipeBind1(3, 6, ctx.description)))("src", i0.ɵɵinterpolate(ctx.imageLink), i0.ɵɵsanitizeUrl);
1163
1161
  i0.ɵɵadvance(3);
@@ -1777,21 +1775,6 @@ class SessionStorageService {
1777
1775
  }]
1778
1776
  }], null, null); })();
1779
1777
 
1780
- const logger = new StructuredLoggerService();
1781
- function safeJsonParse(value, fallback = null) {
1782
- if (!value) {
1783
- return fallback;
1784
- }
1785
- try {
1786
- return JSON.parse(value);
1787
- }
1788
- catch (error) {
1789
- // Log for diagnostics, then return fallback to avoid UI crashes.
1790
- logger.error('safeJsonParse failed to parse JSON.', { error });
1791
- return fallback;
1792
- }
1793
- }
1794
-
1795
1778
  const SessionErrorRoute = new InjectionToken('SessionErrorRoute');
1796
1779
  const SessionJsonErrorLogger = new InjectionToken('SessionJsonErrorLogger');
1797
1780
  class SessionStorageGuard {
@@ -12534,7 +12517,7 @@ class CaseEventCompletionComponent {
12534
12517
  }] }); })();
12535
12518
  (() => { (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 }); })();
12536
12519
 
12537
- const _c0$$ = (a0, a1, a2) => ["/", "cases", "case-details", a0, a1, a2, "tasks"];
12520
+ const _c0$12 = (a0, a1, a2) => ["/", "cases", "case-details", a0, a1, a2, "tasks"];
12538
12521
  class CaseEventCompletionTaskCancelledComponent {
12539
12522
  context;
12540
12523
  notifyEventCompletionCancelled = new EventEmitter();
@@ -12603,7 +12586,7 @@ class CaseEventCompletionTaskCancelledComponent {
12603
12586
  i0.ɵɵadvance(4);
12604
12587
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(27, 21, "Continue"), " ");
12605
12588
  i0.ɵɵadvance(2);
12606
- i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction3(25, _c0$$, ctx.jurisdiction, ctx.caseType, ctx.caseId));
12589
+ i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction3(25, _c0$12, ctx.jurisdiction, ctx.caseType, ctx.caseId));
12607
12590
  i0.ɵɵadvance();
12608
12591
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(30, 23, "Cancel"), " ");
12609
12592
  } }, dependencies: [i1$1.RouterLink, i1.RpxTranslatePipe], encapsulation: 2 });
@@ -12618,7 +12601,7 @@ class CaseEventCompletionTaskCancelledComponent {
12618
12601
  }] }); })();
12619
12602
  (() => { (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 }); })();
12620
12603
 
12621
- const _c0$_ = (a0, a1, a2) => ["/", "cases", "case-details", a0, a1, a2, "tasks"];
12604
+ const _c0$11 = (a0, a1, a2) => ["/", "cases", "case-details", a0, a1, a2, "tasks"];
12622
12605
  function CaseEventCompletionTaskReassignedComponent_div_0_Template(rf, ctx) { if (rf & 1) {
12623
12606
  const _r1 = i0.ɵɵgetCurrentView();
12624
12607
  i0.ɵɵelementStart(0, "div", 1)(1, "div", 2)(2, "h2", 3);
@@ -12671,7 +12654,7 @@ function CaseEventCompletionTaskReassignedComponent_div_0_Template(rf, ctx) { if
12671
12654
  i0.ɵɵadvance(4);
12672
12655
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(27, 22, "Continue"), " ");
12673
12656
  i0.ɵɵadvance(2);
12674
- i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction3(26, _c0$_, ctx_r1.jurisdiction, ctx_r1.caseType, ctx_r1.caseId));
12657
+ i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction3(26, _c0$11, ctx_r1.jurisdiction, ctx_r1.caseType, ctx_r1.caseId));
12675
12658
  i0.ɵɵadvance();
12676
12659
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(30, 24, "Cancel"), " ");
12677
12660
  } }
@@ -13077,7 +13060,7 @@ class WriteComplexFieldComponent extends AbstractFieldWriteComponent {
13077
13060
  }] }); })();
13078
13061
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteComplexFieldComponent, { className: "WriteComplexFieldComponent", filePath: "lib/shared/components/palette/complex/write-complex-field.component.ts", lineNumber: 22 }); })();
13079
13062
 
13080
- const _c0$Z = ["writeComplexFieldComponent"];
13063
+ const _c0$10 = ["writeComplexFieldComponent"];
13081
13064
  const _c1$o = a0 => ({ "form-group-error": a0 });
13082
13065
  const _c2$3 = a0 => ({ "govuk-input--error": a0 });
13083
13066
  function WriteAddressFieldComponent_div_1_div_4_span_5_Template(rf, ctx) { if (rf & 1) {
@@ -13344,7 +13327,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
13344
13327
  }
13345
13328
  static ɵfac = function WriteAddressFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WriteAddressFieldComponent)(i0.ɵɵdirectiveInject(AddressesService), i0.ɵɵdirectiveInject(IsCompoundPipe)); };
13346
13329
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) { if (rf & 1) {
13347
- i0.ɵɵviewQuery(_c0$Z, 5);
13330
+ i0.ɵɵviewQuery(_c0$10, 5);
13348
13331
  i0.ɵɵviewQuery(FocusElementDirective, 5);
13349
13332
  } if (rf & 2) {
13350
13333
  let _t;
@@ -13407,7 +13390,7 @@ class AbstractFieldReadComponent extends AbstractFormFieldComponent {
13407
13390
  type: Input
13408
13391
  }] }); })();
13409
13392
 
13410
- const _c0$Y = ["journeyChild"];
13393
+ const _c0$$ = ["journeyChild"];
13411
13394
  class AbstractFieldWriteJourneyComponent extends AbstractFieldWriteComponent {
13412
13395
  multipageComponentStateService;
13413
13396
  journeyStartPageNumber = 0;
@@ -13482,7 +13465,7 @@ class AbstractFieldWriteJourneyComponent extends AbstractFieldWriteComponent {
13482
13465
  ;
13483
13466
  static ɵfac = function AbstractFieldWriteJourneyComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AbstractFieldWriteJourneyComponent)(i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
13484
13467
  static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AbstractFieldWriteJourneyComponent, viewQuery: function AbstractFieldWriteJourneyComponent_Query(rf, ctx) { if (rf & 1) {
13485
- i0.ɵɵviewQuery(_c0$Y, 5);
13468
+ i0.ɵɵviewQuery(_c0$$, 5);
13486
13469
  } if (rf & 2) {
13487
13470
  let _t;
13488
13471
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childJourney = _t.first);
@@ -13497,7 +13480,7 @@ class AbstractFieldWriteJourneyComponent extends AbstractFieldWriteComponent {
13497
13480
  args: ['journeyChild']
13498
13481
  }] }); })();
13499
13482
 
13500
- const _c0$X = ["journeyChild"];
13483
+ const _c0$_ = ["journeyChild"];
13501
13484
  class AbstractJourneyComponent {
13502
13485
  multipageComponentStateService;
13503
13486
  journeyStartPageNumber = 0;
@@ -13559,7 +13542,7 @@ class AbstractJourneyComponent {
13559
13542
  onPageChange() { }
13560
13543
  static ɵfac = function AbstractJourneyComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AbstractJourneyComponent)(i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
13561
13544
  static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AbstractJourneyComponent, viewQuery: function AbstractJourneyComponent_Query(rf, ctx) { if (rf & 1) {
13562
- i0.ɵɵviewQuery(_c0$X, 5);
13545
+ i0.ɵɵviewQuery(_c0$_, 5);
13563
13546
  } if (rf & 2) {
13564
13547
  let _t;
13565
13548
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childJourney = _t.first);
@@ -13588,8 +13571,9 @@ var DisplayContextCustomParameter;
13588
13571
  DisplayContextCustomParameter["QueryManagementWriteTest"] = "QueryManagementWriteTest";
13589
13572
  })(DisplayContextCustomParameter || (DisplayContextCustomParameter = {}));
13590
13573
 
13574
+ const _c0$Z = ["mediaViewerHost"];
13591
13575
  function CaseFileViewFieldComponent_ng_container_0_li_7_Template(rf, ctx) { if (rf & 1) {
13592
- i0.ɵɵelementStart(0, "li")(1, "button", 8);
13576
+ i0.ɵɵelementStart(0, "li")(1, "button", 9);
13593
13577
  i0.ɵɵtext(2);
13594
13578
  i0.ɵɵelementEnd()();
13595
13579
  } if (rf & 2) {
@@ -13599,11 +13583,11 @@ function CaseFileViewFieldComponent_ng_container_0_li_7_Template(rf, ctx) { if (
13599
13583
  } }
13600
13584
  function CaseFileViewFieldComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
13601
13585
  i0.ɵɵelementContainerStart(0);
13602
- i0.ɵɵelementStart(1, "div", 2)(2, "div", 3)(3, "h2", 4);
13586
+ i0.ɵɵelementStart(1, "div", 3)(2, "div", 4)(3, "h2", 5);
13603
13587
  i0.ɵɵtext(4, "There is a problem");
13604
13588
  i0.ɵɵelementEnd();
13605
- i0.ɵɵelementStart(5, "div", 5)(6, "ul", 6);
13606
- i0.ɵɵtemplate(7, CaseFileViewFieldComponent_ng_container_0_li_7_Template, 3, 1, "li", 7);
13589
+ i0.ɵɵelementStart(5, "div", 6)(6, "ul", 7);
13590
+ i0.ɵɵtemplate(7, CaseFileViewFieldComponent_ng_container_0_li_7_Template, 3, 1, "li", 8);
13607
13591
  i0.ɵɵelementEnd()()()();
13608
13592
  i0.ɵɵelementContainerEnd();
13609
13593
  } if (rf & 2) {
@@ -13612,33 +13596,29 @@ function CaseFileViewFieldComponent_ng_container_0_Template(rf, ctx) { if (rf &
13612
13596
  i0.ɵɵproperty("ngForOf", ctx_r1.errorMessages);
13613
13597
  } }
13614
13598
  function CaseFileViewFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
13615
- i0.ɵɵelementStart(0, "div", 9)(1, "h1", 10);
13599
+ i0.ɵɵelementStart(0, "div", 10)(1, "h1", 11);
13616
13600
  i0.ɵɵtext(2, "Sorry, there is a problem with the service");
13617
13601
  i0.ɵɵelementEnd();
13618
- i0.ɵɵelementStart(3, "p", 11);
13602
+ i0.ɵɵelementStart(3, "p", 12);
13619
13603
  i0.ɵɵtext(4, "Try again later.");
13620
13604
  i0.ɵɵelementEnd()();
13621
13605
  } }
13622
13606
  function CaseFileViewFieldComponent_div_2_ng_container_8_Template(rf, ctx) { if (rf & 1) {
13623
13607
  i0.ɵɵelementContainerStart(0);
13624
- i0.ɵɵelement(1, "mv-media-viewer", 18);
13608
+ i0.ɵɵelementContainer(1, null, 0);
13625
13609
  i0.ɵɵelementContainerEnd();
13626
- } if (rf & 2) {
13627
- const ctx_r1 = i0.ɵɵnextContext(2);
13628
- i0.ɵɵadvance();
13629
- 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());
13630
13610
  } }
13631
13611
  function CaseFileViewFieldComponent_div_2_Template(rf, ctx) { if (rf & 1) {
13632
13612
  const _r3 = i0.ɵɵgetCurrentView();
13633
- i0.ɵɵelementStart(0, "div")(1, "h2", 12);
13613
+ i0.ɵɵelementStart(0, "div")(1, "h2", 13);
13634
13614
  i0.ɵɵtext(2, "Case file");
13635
13615
  i0.ɵɵelementEnd();
13636
- i0.ɵɵelementStart(3, "div", 13)(4, "div", 14)(5, "ccd-case-file-view-folder", 15);
13616
+ i0.ɵɵelementStart(3, "div", 14)(4, "div", 15)(5, "ccd-case-file-view-folder", 16);
13637
13617
  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)); });
13638
13618
  i0.ɵɵelementEnd()();
13639
- i0.ɵɵelement(6, "div", 16);
13640
- i0.ɵɵelementStart(7, "div", 17);
13641
- i0.ɵɵtemplate(8, CaseFileViewFieldComponent_div_2_ng_container_8_Template, 2, 10, "ng-container", 0);
13619
+ i0.ɵɵelement(6, "div", 17);
13620
+ i0.ɵɵelementStart(7, "div", 18);
13621
+ i0.ɵɵtemplate(8, CaseFileViewFieldComponent_div_2_ng_container_8_Template, 3, 0, "ng-container", 1);
13642
13622
  i0.ɵɵelementEnd()()();
13643
13623
  } if (rf & 2) {
13644
13624
  const ctx_r1 = i0.ɵɵnextContext();
@@ -13649,6 +13629,8 @@ function CaseFileViewFieldComponent_div_2_Template(rf, ctx) { if (rf & 1) {
13649
13629
  } }
13650
13630
  class CaseFileViewFieldComponent {
13651
13631
  elementRef;
13632
+ changeDetectorRef;
13633
+ environmentInjector;
13652
13634
  route;
13653
13635
  caseFileViewService;
13654
13636
  documentManagementService;
@@ -13669,8 +13651,14 @@ class CaseFileViewFieldComponent {
13669
13651
  icp_jurisdictions = [];
13670
13652
  icpEnabled = false;
13671
13653
  caseId;
13672
- constructor(elementRef, route, caseFileViewService, documentManagementService, loadingService, sessionStorageService, windowService, caseNotifier, abstractConfig) {
13654
+ mediaViewerHost;
13655
+ mediaViewerComponentRef;
13656
+ mediaViewerModuleRef;
13657
+ mediaViewerRenderId = 0;
13658
+ constructor(elementRef, changeDetectorRef, environmentInjector, route, caseFileViewService, documentManagementService, loadingService, sessionStorageService, windowService, caseNotifier, abstractConfig) {
13673
13659
  this.elementRef = elementRef;
13660
+ this.changeDetectorRef = changeDetectorRef;
13661
+ this.environmentInjector = environmentInjector;
13674
13662
  this.route = route;
13675
13663
  this.caseFileViewService = caseFileViewService;
13676
13664
  this.documentManagementService = documentManagementService;
@@ -13730,6 +13718,7 @@ class CaseFileViewFieldComponent {
13730
13718
  if (this.documentManagementService.isHtmlDocument(documentDetails)) {
13731
13719
  const documentBinaryUrl = this.documentManagementService.getDocumentBinaryUrl(documentDetails);
13732
13720
  if (documentBinaryUrl) {
13721
+ this.destroyMediaViewer();
13733
13722
  this.currentDocument = undefined;
13734
13723
  this.windowService.openOnNewTab(documentBinaryUrl);
13735
13724
  return;
@@ -13737,6 +13726,7 @@ class CaseFileViewFieldComponent {
13737
13726
  }
13738
13727
  const mediaViewerInfo = this.documentManagementService.getMediaViewerInfo(documentDetails);
13739
13728
  this.currentDocument = JSON.parse(mediaViewerInfo);
13729
+ void this.renderMediaViewer();
13740
13730
  }
13741
13731
  moveDocument(data) {
13742
13732
  const cid = this.route.snapshot.paramMap.get(CaseFileViewFieldComponent.PARAM_CASE_ID);
@@ -13762,6 +13752,9 @@ class CaseFileViewFieldComponent {
13762
13752
  this.errorMessages = [];
13763
13753
  }
13764
13754
  ngOnDestroy() {
13755
+ this.mediaViewerRenderId++;
13756
+ this.destroyMediaViewer();
13757
+ this.mediaViewerModuleRef?.destroy();
13765
13758
  if (this.categoriesAndDocumentsSubscription) {
13766
13759
  this.categoriesAndDocumentsSubscription.unsubscribe();
13767
13760
  }
@@ -13769,9 +13762,51 @@ class CaseFileViewFieldComponent {
13769
13762
  isIcpEnabled() {
13770
13763
  return this.icpEnabled && ((this.icp_jurisdictions?.length < 1) || this.icp_jurisdictions.includes(this.caseNotifier?.cachedCaseView?.case_type?.jurisdiction.id));
13771
13764
  }
13772
- static ɵfac = function CaseFileViewFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseFileViewFieldComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(CaseFileViewService), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(LoadingService), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(WindowService), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(AbstractAppConfig)); };
13773
- 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) {
13774
- 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);
13765
+ async renderMediaViewer() {
13766
+ const renderId = ++this.mediaViewerRenderId;
13767
+ this.destroyMediaViewer();
13768
+ this.changeDetectorRef.detectChanges();
13769
+ let mediaViewer;
13770
+ try {
13771
+ mediaViewer = await import('@hmcts/media-viewer');
13772
+ }
13773
+ catch {
13774
+ if (renderId === this.mediaViewerRenderId) {
13775
+ this.errorMessages = ['The document viewer could not be loaded. Please try again.'];
13776
+ }
13777
+ return;
13778
+ }
13779
+ if (renderId !== this.mediaViewerRenderId || !this.currentDocument || !this.mediaViewerHost) {
13780
+ return;
13781
+ }
13782
+ const { MediaViewerComponent, MediaViewerModule } = mediaViewer;
13783
+ this.mediaViewerModuleRef ??= createNgModule(MediaViewerModule, this.environmentInjector);
13784
+ this.mediaViewerComponentRef = this.mediaViewerHost.createComponent(MediaViewerComponent, {
13785
+ ngModuleRef: this.mediaViewerModuleRef
13786
+ });
13787
+ this.mediaViewerComponentRef.setInput('url', this.currentDocument.document_binary_url);
13788
+ this.mediaViewerComponentRef.setInput('downloadFileName', this.currentDocument.document_filename);
13789
+ this.mediaViewerComponentRef.setInput('showToolbar', true);
13790
+ this.mediaViewerComponentRef.setInput('contentType', this.currentDocument.content_type);
13791
+ this.mediaViewerComponentRef.setInput('enableAnnotations', true);
13792
+ this.mediaViewerComponentRef.setInput('enableRedactions', true);
13793
+ this.mediaViewerComponentRef.setInput('height', '94.5vh');
13794
+ this.mediaViewerComponentRef.setInput('caseId', this.caseId);
13795
+ this.mediaViewerComponentRef.setInput('multimediaPlayerEnabled', true);
13796
+ this.mediaViewerComponentRef.setInput('enableICP', this.isIcpEnabled());
13797
+ }
13798
+ destroyMediaViewer() {
13799
+ this.mediaViewerHost?.clear();
13800
+ this.mediaViewerComponentRef = undefined;
13801
+ }
13802
+ 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$1.ActivatedRoute), i0.ɵɵdirectiveInject(CaseFileViewService), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(LoadingService), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(WindowService), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(AbstractAppConfig)); };
13803
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], viewQuery: function CaseFileViewFieldComponent_Query(rf, ctx) { if (rf & 1) {
13804
+ i0.ɵɵviewQuery(_c0$Z, 5, ViewContainerRef);
13805
+ } if (rf & 2) {
13806
+ let _t;
13807
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.mediaViewerHost = _t.first);
13808
+ } }, 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) {
13809
+ 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);
13775
13810
  } if (rf & 2) {
13776
13811
  i0.ɵɵproperty("ngIf", ctx.errorMessages == null ? null : ctx.errorMessages.length);
13777
13812
  i0.ɵɵadvance();
@@ -13782,9 +13817,12 @@ class CaseFileViewFieldComponent {
13782
13817
  }
13783
13818
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFieldComponent, [{
13784
13819
  type: Component,
13785
- 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: ["#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"] }]
13786
- }], () => [{ type: i0.ElementRef }, { type: i1$1.ActivatedRoute }, { type: CaseFileViewService }, { type: DocumentManagementService }, { type: LoadingService }, { type: SessionStorageService }, { type: WindowService }, { type: CaseNotifier }, { type: AbstractAppConfig }], null); })();
13787
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFileViewFieldComponent, { className: "CaseFileViewFieldComponent", filePath: "lib/shared/components/palette/case-file-view/case-file-view-field.component.ts", lineNumber: 19 }); })();
13820
+ 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: ["#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"] }]
13821
+ }], () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.EnvironmentInjector }, { type: i1$1.ActivatedRoute }, { type: CaseFileViewService }, { type: DocumentManagementService }, { type: LoadingService }, { type: SessionStorageService }, { type: WindowService }, { type: CaseNotifier }, { type: AbstractAppConfig }], { mediaViewerHost: [{
13822
+ type: ViewChild,
13823
+ args: ['mediaViewerHost', { read: ViewContainerRef }]
13824
+ }] }); })();
13825
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFileViewFieldComponent, { className: "CaseFileViewFieldComponent", filePath: "lib/shared/components/palette/case-file-view/case-file-view-field.component.ts", lineNumber: 32 }); })();
13788
13826
 
13789
13827
  const PVP_FLAG_CODE = 'PF0021';
13790
13828
  const PVP_DISPLAY_TEXT = 'POTENTIALLY VIOLENT PERSON';
@@ -15016,7 +15054,7 @@ class ReadCaseLinkFieldComponent extends AbstractFieldReadComponent {
15016
15054
  }], null, null); })();
15017
15055
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadCaseLinkFieldComponent, { className: "ReadCaseLinkFieldComponent", filePath: "lib/shared/components/palette/case-link/read-case-link-field.component.ts", lineNumber: 9 }); })();
15018
15056
 
15019
- const _c0$W = ["writeComplexFieldComponent"];
15057
+ const _c0$Y = ["writeComplexFieldComponent"];
15020
15058
  const _c1$n = a0 => ({ "form-group-error": a0 });
15021
15059
  function WriteCaseLinkFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
15022
15060
  i0.ɵɵelementStart(0, "span", 6);
@@ -15097,7 +15135,7 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
15097
15135
  }
15098
15136
  static ɵfac = /*@__PURE__*/ (() => { let ɵWriteCaseLinkFieldComponent_BaseFactory; return function WriteCaseLinkFieldComponent_Factory(__ngFactoryType__) { return (ɵWriteCaseLinkFieldComponent_BaseFactory || (ɵWriteCaseLinkFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(WriteCaseLinkFieldComponent)))(__ngFactoryType__ || WriteCaseLinkFieldComponent); }; })();
15099
15137
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteCaseLinkFieldComponent, selectors: [["ccd-write-case-link-field"]], viewQuery: function WriteCaseLinkFieldComponent_Query(rf, ctx) { if (rf & 1) {
15100
- i0.ɵɵviewQuery(_c0$W, 5);
15138
+ i0.ɵɵviewQuery(_c0$Y, 5);
15101
15139
  } if (rf & 2) {
15102
15140
  let _t;
15103
15141
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.writeComplexFieldComponent = _t.first);
@@ -15131,7 +15169,7 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
15131
15169
  }] }); })();
15132
15170
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteCaseLinkFieldComponent, { className: "WriteCaseLinkFieldComponent", filePath: "lib/shared/components/palette/case-link/write-case-link-field.component.ts", lineNumber: 12 }); })();
15133
15171
 
15134
- const _c0$V = (a0, a1, a2, a3, a4, a5, a6) => ({ id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5, parent: a6 });
15172
+ 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 });
15135
15173
  const _c1$m = (a0, a1, a2, a3, a4, a5) => ({ id: a0, label: a1, field_type: a2, value: a3, hidden: a4, parent: a5 });
15136
15174
  function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf & 1) {
15137
15175
  i0.ɵɵelementStart(0, "tbody")(1, "tr");
@@ -15142,7 +15180,7 @@ function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf
15142
15180
  } if (rf & 2) {
15143
15181
  const ctx_r0 = i0.ɵɵnextContext(2);
15144
15182
  i0.ɵɵadvance(4);
15145
- i0.ɵɵproperty("caseField", i0.ɵɵpureFunction7(4, _c0$V, 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);
15183
+ 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);
15146
15184
  } }
15147
15185
  function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { if (rf & 1) {
15148
15186
  i0.ɵɵelementStart(0, "tr")(1, "td");
@@ -15264,7 +15302,7 @@ class RemoveDialogComponent {
15264
15302
  }], () => [{ type: i1$3.MatLegacyDialogRef }], null); })();
15265
15303
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RemoveDialogComponent, { className: "RemoveDialogComponent", filePath: "lib/shared/components/dialogs/remove-dialog/remove-dialog.component.ts", lineNumber: 10 }); })();
15266
15304
 
15267
- const _c0$U = ["collectionItem"];
15305
+ const _c0$W = ["collectionItem"];
15268
15306
  function WriteCollectionFieldComponent_h2_2_Template(rf, ctx) { if (rf & 1) {
15269
15307
  i0.ɵɵelementStart(0, "h2", 7);
15270
15308
  i0.ɵɵtext(1);
@@ -15685,7 +15723,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
15685
15723
  }
15686
15724
  static ɵfac = function WriteCollectionFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WriteCollectionFieldComponent)(i0.ɵɵdirectiveInject(i1$3.MatLegacyDialog), i0.ɵɵdirectiveInject(ProfileNotifier), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
15687
15725
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) { if (rf & 1) {
15688
- i0.ɵɵviewQuery(_c0$U, 5);
15726
+ i0.ɵɵviewQuery(_c0$W, 5);
15689
15727
  } if (rf & 2) {
15690
15728
  let _t;
15691
15729
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.items = _t);
@@ -16004,7 +16042,7 @@ class FileUploadStateService {
16004
16042
  type: Injectable
16005
16043
  }], null, null); })();
16006
16044
 
16007
- const _c0$T = ["fileInput"];
16045
+ const _c0$V = ["fileInput"];
16008
16046
  const _c1$l = a0 => ({ "form-group-error bottom-30": a0 });
16009
16047
  function WriteDocumentFieldComponent_span_6_Template(rf, ctx) { if (rf & 1) {
16010
16048
  i0.ɵɵelementStart(0, "span", 12);
@@ -16383,7 +16421,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
16383
16421
  }
16384
16422
  static ɵfac = function WriteDocumentFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WriteDocumentFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$3.MatLegacyDialog), i0.ɵɵdirectiveInject(FileUploadStateService), i0.ɵɵdirectiveInject(JurisdictionService), i0.ɵɵdirectiveInject(SessionStorageService)); };
16385
16423
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) { if (rf & 1) {
16386
- i0.ɵɵviewQuery(_c0$T, 5);
16424
+ i0.ɵɵviewQuery(_c0$V, 5);
16387
16425
  } if (rf & 2) {
16388
16426
  let _t;
16389
16427
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
@@ -16498,7 +16536,7 @@ class ReadDynamicListFieldComponent extends AbstractFieldReadComponent {
16498
16536
  }], null, null); })();
16499
16537
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadDynamicListFieldComponent, { className: "ReadDynamicListFieldComponent", filePath: "lib/shared/components/palette/dynamic-list/read-dynamic-list-field.component.ts", lineNumber: 9 }); })();
16500
16538
 
16501
- const _c0$S = a0 => ({ "form-group-error": a0 });
16539
+ const _c0$U = a0 => ({ "form-group-error": a0 });
16502
16540
  function WriteDynamicListFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
16503
16541
  i0.ɵɵelementStart(0, "span", 8);
16504
16542
  i0.ɵɵtext(1);
@@ -16586,7 +16624,7 @@ class WriteDynamicListFieldComponent extends AbstractFieldWriteComponent {
16586
16624
  i0.ɵɵtemplate(10, WriteDynamicListFieldComponent_option_10_Template, 3, 4, "option", 7);
16587
16625
  i0.ɵɵelementEnd()();
16588
16626
  } if (rf & 2) {
16589
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(13, _c0$S, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
16627
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(13, _c0$U, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
16590
16628
  i0.ɵɵadvance();
16591
16629
  i0.ɵɵproperty("for", ctx.id());
16592
16630
  i0.ɵɵadvance();
@@ -16767,7 +16805,7 @@ class ReadDynamicMultiSelectListFieldComponent extends AbstractFieldReadComponen
16767
16805
  }], null, null); })();
16768
16806
  (() => { (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 }); })();
16769
16807
 
16770
- const _c0$R = a0 => ({ "error": a0 });
16808
+ const _c0$T = a0 => ({ "error": a0 });
16771
16809
  function WriteDynamicMultiSelectListFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
16772
16810
  i0.ɵɵelementStart(0, "span", 5);
16773
16811
  i0.ɵɵtext(1);
@@ -16887,7 +16925,7 @@ class WriteDynamicMultiSelectListFieldComponent extends AbstractFieldWriteCompon
16887
16925
  i0.ɵɵtemplate(6, WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template, 6, 12, "ng-container", 4);
16888
16926
  i0.ɵɵelementEnd()();
16889
16927
  } if (rf & 2) {
16890
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$R, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
16928
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$T, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
16891
16929
  i0.ɵɵadvance(3);
16892
16930
  i0.ɵɵproperty("ngIf", ctx.caseField.label);
16893
16931
  i0.ɵɵadvance();
@@ -16967,7 +17005,7 @@ class ReadDynamicRadioListFieldComponent extends AbstractFieldReadComponent {
16967
17005
  }], null, null); })();
16968
17006
  (() => { (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 }); })();
16969
17007
 
16970
- const _c0$Q = a0 => ({ "form-group-error": a0 });
17008
+ const _c0$S = a0 => ({ "form-group-error": a0 });
16971
17009
  const _c1$k = a0 => ({ selected: a0 });
16972
17010
  function WriteDynamicRadioListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
16973
17011
  i0.ɵɵelementStart(0, "span", 7);
@@ -17062,7 +17100,7 @@ class WriteDynamicRadioListFieldComponent extends AbstractFieldWriteComponent {
17062
17100
  i0.ɵɵelementContainerEnd();
17063
17101
  i0.ɵɵelementEnd()();
17064
17102
  } if (rf & 2) {
17065
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$Q, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
17103
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$S, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
17066
17104
  i0.ɵɵadvance(3);
17067
17105
  i0.ɵɵproperty("for", ctx.id());
17068
17106
  i0.ɵɵadvance();
@@ -17116,7 +17154,7 @@ class ReadEmailFieldComponent extends AbstractFieldReadComponent {
17116
17154
  }], null, null); })();
17117
17155
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadEmailFieldComponent, { className: "ReadEmailFieldComponent", filePath: "lib/shared/components/palette/email/read-email-field.component.ts", lineNumber: 11 }); })();
17118
17156
 
17119
- const _c0$P = a0 => ({ "form-group-error": a0 });
17157
+ const _c0$R = a0 => ({ "form-group-error": a0 });
17120
17158
  const _c1$j = a0 => ({ "govuk-input--error": a0 });
17121
17159
  function WriteEmailFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
17122
17160
  i0.ɵɵelementStart(0, "span", 6);
@@ -17162,7 +17200,7 @@ class WriteEmailFieldComponent extends AbstractFieldWriteComponent {
17162
17200
  i0.ɵɵelement(5, "input", 5);
17163
17201
  i0.ɵɵelementEnd();
17164
17202
  } if (rf & 2) {
17165
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$P, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
17203
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$R, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
17166
17204
  i0.ɵɵadvance();
17167
17205
  i0.ɵɵproperty("for", ctx.id());
17168
17206
  i0.ɵɵadvance();
@@ -17204,7 +17242,7 @@ class ReadFixedListFieldComponent extends AbstractFieldReadComponent {
17204
17242
  }], null, null); })();
17205
17243
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadFixedListFieldComponent, { className: "ReadFixedListFieldComponent", filePath: "lib/shared/components/palette/fixed-list/read-fixed-list-field.component.ts", lineNumber: 9 }); })();
17206
17244
 
17207
- const _c0$O = a0 => ({ "form-group-error": a0 });
17245
+ const _c0$Q = a0 => ({ "form-group-error": a0 });
17208
17246
  function WriteFixedListFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
17209
17247
  i0.ɵɵelementStart(0, "span", 8);
17210
17248
  i0.ɵɵtext(1);
@@ -17279,7 +17317,7 @@ class WriteFixedListFieldComponent extends AbstractFieldWriteComponent {
17279
17317
  i0.ɵɵtemplate(8, WriteFixedListFieldComponent_option_8_Template, 3, 4, "option", 7);
17280
17318
  i0.ɵɵelementEnd()();
17281
17319
  } if (rf & 2) {
17282
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$O, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
17320
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$Q, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
17283
17321
  i0.ɵɵadvance();
17284
17322
  i0.ɵɵproperty("for", ctx.id());
17285
17323
  i0.ɵɵadvance();
@@ -17342,7 +17380,7 @@ class ReadFixedRadioListFieldComponent extends AbstractFieldReadComponent {
17342
17380
  }], null, null); })();
17343
17381
  (() => { (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 }); })();
17344
17382
 
17345
- const _c0$N = a0 => ({ "form-group-error": a0 });
17383
+ const _c0$P = a0 => ({ "form-group-error": a0 });
17346
17384
  const _c1$i = a0 => ({ selected: a0 });
17347
17385
  function WriteFixedRadioListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
17348
17386
  i0.ɵɵelementStart(0, "span", 6);
@@ -17410,7 +17448,7 @@ class WriteFixedRadioListFieldComponent extends AbstractFieldWriteComponent {
17410
17448
  i0.ɵɵelementContainerEnd();
17411
17449
  i0.ɵɵelementEnd()();
17412
17450
  } if (rf & 2) {
17413
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$N, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
17451
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$P, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
17414
17452
  i0.ɵɵadvance(3);
17415
17453
  i0.ɵɵproperty("for", ctx.id());
17416
17454
  i0.ɵɵadvance();
@@ -17486,7 +17524,7 @@ class ReadJudicialUserFieldComponent extends AbstractFieldReadComponent {
17486
17524
  }], () => [{ type: JurisdictionService }], null); })();
17487
17525
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadJudicialUserFieldComponent, { className: "ReadJudicialUserFieldComponent", filePath: "lib/shared/components/palette/judicial-user/read-judicial-user-field.component.ts", lineNumber: 12 }); })();
17488
17526
 
17489
- const _c0$M = a0 => ({ "form-group-error": a0 });
17527
+ const _c0$O = a0 => ({ "form-group-error": a0 });
17490
17528
  const _c1$h = a0 => ({ "hide-autocomplete": a0 });
17491
17529
  function WriteJudicialUserFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
17492
17530
  i0.ɵɵelementStart(0, "span", 10);
@@ -17706,7 +17744,7 @@ class WriteJudicialUserFieldComponent extends WriteComplexFieldComponent {
17706
17744
  i0.ɵɵelementEnd()();
17707
17745
  } if (rf & 2) {
17708
17746
  const autoComplete_r5 = i0.ɵɵreference(7);
17709
- i0.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0.ɵɵpureFunction1(15, _c0$M, !!ctx.judicialUserControl && ctx.errors));
17747
+ i0.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0.ɵɵpureFunction1(15, _c0$O, !!ctx.judicialUserControl && ctx.errors));
17710
17748
  i0.ɵɵadvance();
17711
17749
  i0.ɵɵproperty("for", ctx.id());
17712
17750
  i0.ɵɵadvance();
@@ -18171,7 +18209,7 @@ class ValidatorsUtils {
18171
18209
  args: [{ providedIn: 'root' }]
18172
18210
  }], null, null); })();
18173
18211
 
18174
- const _c0$L = a0 => ({ "govuk-form-group--error": a0 });
18212
+ const _c0$N = a0 => ({ "govuk-form-group--error": a0 });
18175
18213
  const _c1$g = a0 => ({ "table-group-error": a0 });
18176
18214
  function LinkCasesComponent_div_8_span_4_Template(rf, ctx) { if (rf & 1) {
18177
18215
  i0.ɵɵelementStart(0, "span", 28)(1, "span", 29);
@@ -18238,7 +18276,7 @@ function LinkCasesComponent_div_8_div_14_Template(rf, ctx) { if (rf & 1) {
18238
18276
  i0.ɵɵelementEnd()();
18239
18277
  } if (rf & 2) {
18240
18278
  const ctx_r1 = i0.ɵɵnextContext(2);
18241
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c0$L, !!ctx_r1.caseReasonCommentsError));
18279
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c0$N, !!ctx_r1.caseReasonCommentsError));
18242
18280
  i0.ɵɵadvance(3);
18243
18281
  i0.ɵɵproperty("ngIf", ctx_r1.caseReasonCommentsError);
18244
18282
  } }
@@ -18282,11 +18320,11 @@ function LinkCasesComponent_div_8_Template(rf, ctx) { if (rf & 1) {
18282
18320
  const ctx_r1 = i0.ɵɵnextContext();
18283
18321
  i0.ɵɵproperty("formGroup", ctx_r1.linkCaseForm);
18284
18322
  i0.ɵɵadvance();
18285
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$L, !!ctx_r1.caseNumberError));
18323
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$N, !!ctx_r1.caseNumberError));
18286
18324
  i0.ɵɵadvance(3);
18287
18325
  i0.ɵɵproperty("ngIf", ctx_r1.caseNumberError);
18288
18326
  i0.ɵɵadvance(2);
18289
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$L, !!ctx_r1.caseReasonError));
18327
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$N, !!ctx_r1.caseReasonError));
18290
18328
  i0.ɵɵadvance(5);
18291
18329
  i0.ɵɵproperty("ngIf", ctx_r1.caseReasonError);
18292
18330
  i0.ɵɵadvance(2);
@@ -18714,7 +18752,7 @@ class LinkCasesComponent extends AbstractJourneyComponent {
18714
18752
  i0.ɵɵadvance(4);
18715
18753
  i0.ɵɵproperty("ngIf", ctx.linkCaseForm);
18716
18754
  i0.ɵɵadvance(4);
18717
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$L, !!ctx.noSelectedCaseError));
18755
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$N, !!ctx.noSelectedCaseError));
18718
18756
  i0.ɵɵadvance();
18719
18757
  i0.ɵɵproperty("ngIf", ctx.noSelectedCaseError);
18720
18758
  i0.ɵɵadvance(18);
@@ -19307,7 +19345,7 @@ class NoLinkedCasesComponent extends AbstractJourneyComponent {
19307
19345
  }], () => [{ type: i1$1.Router }, { type: LinkedCasesService }, { type: MultipageComponentStateService }], null); })();
19308
19346
  (() => { (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 }); })();
19309
19347
 
19310
- const _c0$K = a0 => ({ "govuk-form-group--error": a0 });
19348
+ const _c0$M = a0 => ({ "govuk-form-group--error": a0 });
19311
19349
  function UnLinkCasesComponent_div_0_div_4_p_1_Template(rf, ctx) { if (rf & 1) {
19312
19350
  i0.ɵɵelementStart(0, "p", 9)(1, "span", 10);
19313
19351
  i0.ɵɵtext(2, "Error:");
@@ -19345,7 +19383,7 @@ function UnLinkCasesComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
19345
19383
  i0.ɵɵelementEnd()();
19346
19384
  } if (rf & 2) {
19347
19385
  const ctx_r0 = i0.ɵɵnextContext(2);
19348
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$K, ctx_r0.unlinkErrorMessage))("formGroup", ctx_r0.unlinkCaseForm);
19386
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$M, ctx_r0.unlinkErrorMessage))("formGroup", ctx_r0.unlinkCaseForm);
19349
19387
  i0.ɵɵadvance();
19350
19388
  i0.ɵɵproperty("ngIf", ctx_r0.unlinkErrorMessage);
19351
19389
  i0.ɵɵadvance(2);
@@ -20282,7 +20320,7 @@ class MoneyGbpInputComponent {
20282
20320
  }] }); })();
20283
20321
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MoneyGbpInputComponent, { className: "MoneyGbpInputComponent", filePath: "lib/shared/components/palette/money-gbp/money-gbp-input.component.ts", lineNumber: 28 }); })();
20284
20322
 
20285
- const _c0$J = a0 => ({ "form-group-error": a0 });
20323
+ const _c0$L = a0 => ({ "form-group-error": a0 });
20286
20324
  function WriteMoneyGbpFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
20287
20325
  i0.ɵɵelementStart(0, "span", 8);
20288
20326
  i0.ɵɵtext(1);
@@ -20331,7 +20369,7 @@ class WriteMoneyGbpFieldComponent extends AbstractFieldWriteComponent {
20331
20369
  i0.ɵɵpipe(9, "ccdIsMandatory");
20332
20370
  i0.ɵɵelementEnd()();
20333
20371
  } if (rf & 2) {
20334
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$J, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
20372
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$L, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
20335
20373
  i0.ɵɵadvance();
20336
20374
  i0.ɵɵproperty("for", ctx.id());
20337
20375
  i0.ɵɵadvance();
@@ -20390,7 +20428,7 @@ class ReadMultiSelectListFieldComponent extends AbstractFieldReadComponent {
20390
20428
  }], null, null); })();
20391
20429
  (() => { (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 }); })();
20392
20430
 
20393
- const _c0$I = a0 => ({ "error": a0 });
20431
+ const _c0$K = a0 => ({ "error": a0 });
20394
20432
  function WriteMultiSelectListFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
20395
20433
  i0.ɵɵelementStart(0, "span", 5);
20396
20434
  i0.ɵɵtext(1);
@@ -20491,7 +20529,7 @@ class WriteMultiSelectListFieldComponent extends AbstractFieldWriteComponent {
20491
20529
  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);
20492
20530
  i0.ɵɵelementEnd()();
20493
20531
  } if (rf & 2) {
20494
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$I, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
20532
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$K, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
20495
20533
  i0.ɵɵadvance(3);
20496
20534
  i0.ɵɵproperty("ngIf", ctx.caseField.label);
20497
20535
  i0.ɵɵadvance();
@@ -20530,7 +20568,7 @@ class ReadNumberFieldComponent extends AbstractFieldReadComponent {
20530
20568
  }], null, null); })();
20531
20569
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadNumberFieldComponent, { className: "ReadNumberFieldComponent", filePath: "lib/shared/components/palette/number/read-number-field.component.ts", lineNumber: 9 }); })();
20532
20570
 
20533
- const _c0$H = a0 => ({ "form-group-error": a0 });
20571
+ const _c0$J = a0 => ({ "form-group-error": a0 });
20534
20572
  const _c1$f = a0 => ({ "govuk-input--error": a0 });
20535
20573
  function WriteNumberFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
20536
20574
  i0.ɵɵelementStart(0, "span", 6);
@@ -20576,7 +20614,7 @@ class WriteNumberFieldComponent extends AbstractFieldWriteComponent {
20576
20614
  i0.ɵɵelement(5, "input", 5);
20577
20615
  i0.ɵɵelementEnd();
20578
20616
  } if (rf & 2) {
20579
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$H, !ctx.numberControl.valid && ctx.numberControl.dirty));
20617
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$J, !ctx.numberControl.valid && ctx.numberControl.dirty));
20580
20618
  i0.ɵɵadvance();
20581
20619
  i0.ɵɵproperty("for", ctx.id());
20582
20620
  i0.ɵɵadvance();
@@ -20755,7 +20793,7 @@ class ReadOrganisationFieldComponent extends AbstractFieldReadComponent {
20755
20793
  }] }); })();
20756
20794
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadOrganisationFieldComponent, { className: "ReadOrganisationFieldComponent", filePath: "lib/shared/components/palette/organisation/read-organisation-field.component.ts", lineNumber: 11 }); })();
20757
20795
 
20758
- const _c0$G = a0 => ({ "scroll-container ": a0 });
20796
+ const _c0$I = a0 => ({ "scroll-container ": a0 });
20759
20797
  function WriteOrganisationFieldComponent_fieldset_1_Template(rf, ctx) { if (rf & 1) {
20760
20798
  i0.ɵɵelementStart(0, "fieldset", 3);
20761
20799
  i0.ɵɵelement(1, "legend", 4);
@@ -20834,7 +20872,7 @@ function WriteOrganisationFieldComponent_fieldset_3_div_17_Template(rf, ctx) { i
20834
20872
  let tmp_3_0;
20835
20873
  let tmp_5_0;
20836
20874
  const ctx_r2 = i0.ɵɵnextContext(2);
20837
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$G, ((tmp_3_0 = i0.ɵɵpipeBind1(1, 3, ctx_r2.simpleOrganisations$)) == null ? null : tmp_3_0.length) > 10));
20875
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$I, ((tmp_3_0 = i0.ɵɵpipeBind1(1, 3, ctx_r2.simpleOrganisations$)) == null ? null : tmp_3_0.length) > 10));
20838
20876
  i0.ɵɵadvance(2);
20839
20877
  i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(3, 5, ctx_r2.simpleOrganisations$));
20840
20878
  i0.ɵɵadvance(2);
@@ -21176,38 +21214,98 @@ class PaymentField extends AbstractFieldReadComponent {
21176
21214
  }
21177
21215
  }
21178
21216
 
21217
+ const _c0$H = ["paymentHost"];
21218
+ function CasePaymentHistoryViewerFieldComponent_p_9_Template(rf, ctx) { if (rf & 1) {
21219
+ i0.ɵɵelementStart(0, "p", 6);
21220
+ i0.ɵɵtext(1, "The payment information could not be loaded. Please try again.");
21221
+ i0.ɵɵelementEnd();
21222
+ } }
21179
21223
  class CasePaymentHistoryViewerFieldComponent extends PaymentField {
21224
+ environmentInjector;
21180
21225
  PAYMENT_HISTORY_WARNING = 'Recent payments may take a few minutes to reflect here.';
21181
- constructor(appConfig, sessionStorage) {
21226
+ paymentLoadError = false;
21227
+ paymentHost;
21228
+ paymentComponentRef;
21229
+ paymentModuleRef;
21230
+ constructor(appConfig, sessionStorage, environmentInjector) {
21182
21231
  super(appConfig, sessionStorage);
21232
+ this.environmentInjector = environmentInjector;
21233
+ }
21234
+ ngAfterViewInit() {
21235
+ void this.renderPayment();
21236
+ }
21237
+ ngOnDestroy() {
21238
+ this.paymentHost?.clear();
21239
+ this.paymentComponentRef = undefined;
21240
+ this.paymentModuleRef?.destroy();
21183
21241
  }
21184
- static ɵfac = function CasePaymentHistoryViewerFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CasePaymentHistoryViewerFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(SessionStorageService)); };
21185
- 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-warning-text__assistive"], [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) {
21186
- i0.ɵɵelementStart(0, "div", 0)(1, "span", 1);
21242
+ async renderPayment() {
21243
+ let paymentLibrary;
21244
+ try {
21245
+ paymentLibrary = await import('@hmcts/ccpay-web-component');
21246
+ }
21247
+ catch {
21248
+ this.paymentLoadError = true;
21249
+ return;
21250
+ }
21251
+ const { PaymentLibComponent, PaymentLibModule } = paymentLibrary;
21252
+ this.paymentModuleRef = createNgModule(PaymentLibModule, this.environmentInjector);
21253
+ this.paymentComponentRef = this.paymentHost.createComponent(PaymentLibComponent, {
21254
+ ngModuleRef: this.paymentModuleRef
21255
+ });
21256
+ this.paymentComponentRef.setInput('API_ROOT', this.getBaseURL());
21257
+ this.paymentComponentRef.setInput('CCD_CASE_NUMBER', this.caseReference);
21258
+ this.paymentComponentRef.setInput('BULKSCAN_API_ROOT', this.getPayBulkScanBaseURL());
21259
+ this.paymentComponentRef.setInput('SELECTED_OPTION', 'CCDorException');
21260
+ this.paymentComponentRef.setInput('ISBSENABLE', 'true');
21261
+ this.paymentComponentRef.setInput('LOGGEDINUSEREMAIL', this.getUserEmail());
21262
+ this.paymentComponentRef.setInput('LOGGEDINUSERROLES', this.getUserRoles());
21263
+ this.paymentComponentRef.setInput('REFUNDS_API_ROOT', this.getRefundsUrl());
21264
+ this.paymentComponentRef.setInput('NOTIFICATION_API_ROOT', this.getNotificationUrl());
21265
+ this.paymentComponentRef.setInput('VIEW', 'case-transactions');
21266
+ this.paymentComponentRef.setInput('TAKEPAYMENT', false);
21267
+ this.paymentComponentRef.setInput('SERVICEREQUEST', false);
21268
+ this.paymentComponentRef.setInput('PAYMENT_GROUP_REF', null);
21269
+ this.paymentComponentRef.setInput('EXC_REFERENCE', this.caseReference);
21270
+ this.paymentComponentRef.setInput('DCN_NUMBER', null);
21271
+ this.paymentComponentRef.setInput('ISPAYMENTSTATUSENABLED', 'Enable');
21272
+ }
21273
+ static ɵfac = function CasePaymentHistoryViewerFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CasePaymentHistoryViewerFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(i0.EnvironmentInjector)); };
21274
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CasePaymentHistoryViewerFieldComponent, selectors: [["ccd-case-payment-history-viewer-field"]], viewQuery: function CasePaymentHistoryViewerFieldComponent_Query(rf, ctx) { if (rf & 1) {
21275
+ i0.ɵɵviewQuery(_c0$H, 5, ViewContainerRef);
21276
+ } if (rf & 2) {
21277
+ let _t;
21278
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.paymentHost = _t.first);
21279
+ } }, 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-warning-text__assistive"], ["class", "govuk-error-message", 4, "ngIf"], [1, "govuk-error-message"]], template: function CasePaymentHistoryViewerFieldComponent_Template(rf, ctx) { if (rf & 1) {
21280
+ i0.ɵɵelementStart(0, "div", 1)(1, "span", 2);
21187
21281
  i0.ɵɵtext(2, "!");
21188
21282
  i0.ɵɵelementEnd();
21189
- i0.ɵɵelementStart(3, "strong", 2)(4, "span", 3);
21283
+ i0.ɵɵelementStart(3, "strong", 3)(4, "span", 4);
21190
21284
  i0.ɵɵtext(5);
21191
21285
  i0.ɵɵpipe(6, "rpxTranslate");
21192
21286
  i0.ɵɵelementEnd();
21193
21287
  i0.ɵɵtext(7);
21194
21288
  i0.ɵɵpipe(8, "rpxTranslate");
21195
21289
  i0.ɵɵelementEnd()();
21196
- i0.ɵɵelement(9, "ccpay-payment-lib", 4);
21290
+ i0.ɵɵtemplate(9, CasePaymentHistoryViewerFieldComponent_p_9_Template, 2, 0, "p", 5);
21291
+ i0.ɵɵelementContainer(10, null, 0);
21197
21292
  } if (rf & 2) {
21198
21293
  i0.ɵɵadvance(5);
21199
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 18, "Warning"));
21294
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 3, "Warning"));
21200
21295
  i0.ɵɵadvance(2);
21201
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 20, ctx.PAYMENT_HISTORY_WARNING), " ");
21296
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 5, ctx.PAYMENT_HISTORY_WARNING), " ");
21202
21297
  i0.ɵɵadvance(2);
21203
- 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");
21204
- } }, dependencies: [i3$1.PaymentLibComponent, i1.RpxTranslatePipe], styles: [".govuk-warning-text[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:-20px}"] });
21298
+ i0.ɵɵproperty("ngIf", ctx.paymentLoadError);
21299
+ } }, dependencies: [i4.NgIf, i1.RpxTranslatePipe], styles: [".govuk-warning-text[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:-20px}"] });
21205
21300
  }
21206
21301
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CasePaymentHistoryViewerFieldComponent, [{
21207
21302
  type: Component,
21208
- 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-warning-text__assistive\">{{'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>", styles: [".govuk-warning-text{margin-top:20px;margin-bottom:-20px}\n"] }]
21209
- }], () => [{ type: AbstractAppConfig }, { type: SessionStorageService }], null); })();
21210
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CasePaymentHistoryViewerFieldComponent, { className: "CasePaymentHistoryViewerFieldComponent", filePath: "lib/shared/components/palette/payment/case-payment-history-viewer-field.component.ts", lineNumber: 12 }); })();
21303
+ 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-warning-text__assistive\">{{'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"] }]
21304
+ }], () => [{ type: AbstractAppConfig }, { type: SessionStorageService }, { type: i0.EnvironmentInjector }], { paymentHost: [{
21305
+ type: ViewChild,
21306
+ args: ['paymentHost', { read: ViewContainerRef }]
21307
+ }] }); })();
21308
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CasePaymentHistoryViewerFieldComponent, { className: "CasePaymentHistoryViewerFieldComponent", filePath: "lib/shared/components/palette/payment/case-payment-history-viewer-field.component.ts", lineNumber: 22 }); })();
21211
21309
 
21212
21310
  class ReadPhoneUKFieldComponent extends AbstractFieldReadComponent {
21213
21311
  static ɵfac = /*@__PURE__*/ (() => { let ɵReadPhoneUKFieldComponent_BaseFactory; return function ReadPhoneUKFieldComponent_Factory(__ngFactoryType__) { return (ɵReadPhoneUKFieldComponent_BaseFactory || (ɵReadPhoneUKFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadPhoneUKFieldComponent)))(__ngFactoryType__ || ReadPhoneUKFieldComponent); }; })();
@@ -21230,7 +21328,7 @@ class ReadPhoneUKFieldComponent extends AbstractFieldReadComponent {
21230
21328
  }], null, null); })();
21231
21329
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadPhoneUKFieldComponent, { className: "ReadPhoneUKFieldComponent", filePath: "lib/shared/components/palette/phone-uk/read-phone-uk-field.component.ts", lineNumber: 9 }); })();
21232
21330
 
21233
- const _c0$F = a0 => ({ "form-group-error": a0 });
21331
+ const _c0$G = a0 => ({ "form-group-error": a0 });
21234
21332
  const _c1$e = a0 => ({ "govuk-input--error": a0 });
21235
21333
  function WritePhoneUKFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
21236
21334
  i0.ɵɵelementStart(0, "span", 6);
@@ -21276,7 +21374,7 @@ class WritePhoneUKFieldComponent extends AbstractFieldWriteComponent {
21276
21374
  i0.ɵɵelement(5, "input", 5);
21277
21375
  i0.ɵɵelementEnd();
21278
21376
  } if (rf & 2) {
21279
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$F, !ctx.phoneUkControl.valid && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched)));
21377
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$G, !ctx.phoneUkControl.valid && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched)));
21280
21378
  i0.ɵɵadvance();
21281
21379
  i0.ɵɵproperty("for", ctx.id());
21282
21380
  i0.ɵɵadvance();
@@ -23756,7 +23854,7 @@ class QueryWriteDateInputComponent {
23756
23854
  }] }); })();
23757
23855
  (() => { (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 }); })();
23758
23856
 
23759
- const _c0$E = a0 => ({ "govuk-form-group--error": a0 });
23857
+ const _c0$F = a0 => ({ "govuk-form-group--error": a0 });
23760
23858
  function QueryWriteRaiseQueryComponent_ccd_query_case_details_header_9_Template(rf, ctx) { if (rf & 1) {
23761
23859
  i0.ɵɵelement(0, "ccd-query-case-details-header", 5);
23762
23860
  } if (rf & 2) {
@@ -23836,7 +23934,7 @@ function QueryWriteRaiseQueryComponent_div_11_ng_container_50_Template(rf, ctx)
23836
23934
  } if (rf & 2) {
23837
23935
  const ctx_r0 = i0.ɵɵnextContext(2);
23838
23936
  i0.ɵɵadvance();
23839
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$E, ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").value === true && ctx_r0.formGroup.get("hearingDate").value === null));
23937
+ 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));
23840
23938
  i0.ɵɵadvance(4);
23841
23939
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 3, "What is the date of the hearing?"), " ");
23842
23940
  i0.ɵɵadvance(2);
@@ -23903,7 +24001,7 @@ function QueryWriteRaiseQueryComponent_div_11_Template(rf, ctx) { if (rf & 1) {
23903
24001
  i0.ɵɵadvance(8);
23904
24002
  i0.ɵɵproperty("content", i0.ɵɵpipeBind1(10, 23, ctx_r0.serviceMessage));
23905
24003
  i0.ɵɵadvance(2);
23906
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(43, _c0$E, ctx_r0.submitted && ctx_r0.formGroup.get("subject").hasError("required")));
24004
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(43, _c0$F, ctx_r0.submitted && ctx_r0.formGroup.get("subject").hasError("required")));
23907
24005
  i0.ɵɵadvance(3);
23908
24006
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(15, 25, "Query subject"), " ");
23909
24007
  i0.ɵɵadvance(3);
@@ -23911,7 +24009,7 @@ function QueryWriteRaiseQueryComponent_div_11_Template(rf, ctx) { if (rf & 1) {
23911
24009
  i0.ɵɵadvance(2);
23912
24010
  i0.ɵɵproperty("ngIf", ctx_r0.submitted && (ctx_r0.formGroup.get("subject").hasError("required") || ctx_r0.formGroup.get("subject").hasError("maxlength")));
23913
24011
  i0.ɵɵadvance(2);
23914
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(45, _c0$E, ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required")));
24012
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(45, _c0$F, ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required")));
23915
24013
  i0.ɵɵadvance(3);
23916
24014
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(25, 29, "Query detail"), " ");
23917
24015
  i0.ɵɵadvance(3);
@@ -23922,7 +24020,7 @@ function QueryWriteRaiseQueryComponent_div_11_Template(rf, ctx) { if (rf & 1) {
23922
24020
  i0.ɵɵclassProp("govuk-textarea--error", ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required"));
23923
24021
  i0.ɵɵproperty("formControlName", "body");
23924
24022
  i0.ɵɵadvance(2);
23925
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(47, _c0$E, ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").hasError("required")));
24023
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(47, _c0$F, ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").hasError("required")));
23926
24024
  i0.ɵɵadvance(4);
23927
24025
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(37, 33, "Is the query hearing related?"), " ");
23928
24026
  i0.ɵɵadvance(2);
@@ -24546,7 +24644,7 @@ class CloseQueryComponent {
24546
24644
  }] }); })();
24547
24645
  (() => { (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 }); })();
24548
24646
 
24549
- const _c0$D = (a0, a1) => ["/query-management", "query", a0, "4", a1];
24647
+ const _c0$E = (a0, a1) => ["/query-management", "query", a0, "4", a1];
24550
24648
  function ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_div_1_Template(rf, ctx) { if (rf & 1) {
24551
24649
  const _r1 = i0.ɵɵgetCurrentView();
24552
24650
  i0.ɵɵelementStart(0, "div", 6)(1, "ccd-query-list", 7);
@@ -24585,7 +24683,7 @@ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_conta
24585
24683
  } if (rf & 2) {
24586
24684
  const ctx_r1 = i0.ɵɵnextContext(3);
24587
24685
  i0.ɵɵadvance();
24588
- i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction2(4, _c0$D, ctx_r1.caseId, ctx_r1.query.id));
24686
+ i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction2(4, _c0$E, ctx_r1.caseId, ctx_r1.query.id));
24589
24687
  i0.ɵɵadvance();
24590
24688
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, "Ask a follow-up question"), " ");
24591
24689
  } }
@@ -24599,7 +24697,7 @@ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_templ
24599
24697
  } if (rf & 2) {
24600
24698
  const ctx_r1 = i0.ɵɵnextContext(4);
24601
24699
  i0.ɵɵadvance();
24602
- i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction2(4, _c0$D, ctx_r1.caseId, ctx_r1.query.id));
24700
+ i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction2(4, _c0$E, ctx_r1.caseId, ctx_r1.query.id));
24603
24701
  i0.ɵɵadvance();
24604
24702
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, "Ask a follow-up question"), " ");
24605
24703
  } }
@@ -24787,7 +24885,7 @@ class ReadTextAreaFieldComponent extends AbstractFieldReadComponent {
24787
24885
  }], null, null); })();
24788
24886
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadTextAreaFieldComponent, { className: "ReadTextAreaFieldComponent", filePath: "lib/shared/components/palette/text-area/read-text-area-field.component.ts", lineNumber: 9 }); })();
24789
24887
 
24790
- const _c0$C = a0 => ({ "form-group-error": a0 });
24888
+ const _c0$D = a0 => ({ "form-group-error": a0 });
24791
24889
  const _c1$d = a0 => ({ "govuk-textarea--error": a0 });
24792
24890
  function WriteTextAreaFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
24793
24891
  i0.ɵɵelementStart(0, "span", 6);
@@ -24846,7 +24944,7 @@ class WriteTextAreaFieldComponent extends AbstractFieldWriteComponent {
24846
24944
  i0.ɵɵlistener("input", function WriteTextAreaFieldComponent_Template_textarea_input_5_listener($event) { return ctx.autoGrow($event); });
24847
24945
  i0.ɵɵelementEnd()();
24848
24946
  } if (rf & 2) {
24849
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$C, !ctx.textareaControl.valid && ctx.textareaControl.dirty));
24947
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$D, !ctx.textareaControl.valid && ctx.textareaControl.dirty));
24850
24948
  i0.ɵɵadvance();
24851
24949
  i0.ɵɵproperty("for", ctx.id());
24852
24950
  i0.ɵɵadvance();
@@ -24886,7 +24984,7 @@ class ReadTextFieldComponent extends AbstractFieldReadComponent {
24886
24984
  }], null, null); })();
24887
24985
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadTextFieldComponent, { className: "ReadTextFieldComponent", filePath: "lib/shared/components/palette/text/read-text-field.component.ts", lineNumber: 9 }); })();
24888
24986
 
24889
- const _c0$B = a0 => ({ "form-group-error": a0 });
24987
+ const _c0$C = a0 => ({ "form-group-error": a0 });
24890
24988
  const _c1$c = a0 => ({ "govuk-input--error": a0 });
24891
24989
  function WriteTextFieldComponent_label_1_span_1_Template(rf, ctx) { if (rf & 1) {
24892
24990
  i0.ɵɵelementStart(0, "span", 7);
@@ -24944,7 +25042,7 @@ class WriteTextFieldComponent extends AbstractFieldWriteComponent {
24944
25042
  i0.ɵɵlistener("blur", function WriteTextFieldComponent_Template_input_blur_4_listener($event) { return ctx.onBlur($event); });
24945
25043
  i0.ɵɵelementEnd()();
24946
25044
  } if (rf & 2) {
24947
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$B, !!ctx.textControl && !ctx.textControl.valid && (ctx.textControl.dirty || ctx.textControl.touched)));
25045
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$C, !!ctx.textControl && !ctx.textControl.valid && (ctx.textControl.dirty || ctx.textControl.touched)));
24948
25046
  i0.ɵɵadvance();
24949
25047
  i0.ɵɵproperty("ngIf", !ctx.caseField.hidden);
24950
25048
  i0.ɵɵadvance();
@@ -24979,31 +25077,86 @@ class UnsupportedFieldComponent {
24979
25077
  }], null, null); })();
24980
25078
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UnsupportedFieldComponent, { className: "UnsupportedFieldComponent", filePath: "lib/shared/components/palette/unsupported-field.component.ts", lineNumber: 8 }); })();
24981
25079
 
24982
- function WaysToPayFieldComponent_ccpay_payment_lib_0_Template(rf, ctx) { if (rf & 1) {
24983
- i0.ɵɵelement(0, "ccpay-payment-lib", 1);
24984
- } if (rf & 2) {
24985
- const ctx_r0 = i0.ɵɵnextContext();
24986
- 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");
25080
+ const _c0$B = ["paymentHost"];
25081
+ function WaysToPayFieldComponent_p_0_Template(rf, ctx) { if (rf & 1) {
25082
+ i0.ɵɵelementStart(0, "p", 2);
25083
+ i0.ɵɵtext(1, "The payment information could not be loaded. Please try again.");
25084
+ i0.ɵɵelementEnd();
24987
25085
  } }
24988
25086
  class WaysToPayFieldComponent extends PaymentField {
24989
- constructor(appConfig, sessionStorage) {
25087
+ environmentInjector;
25088
+ paymentLoadError = false;
25089
+ paymentHost;
25090
+ paymentComponentRef;
25091
+ paymentModuleRef;
25092
+ constructor(appConfig, sessionStorage, environmentInjector) {
24990
25093
  super(appConfig, sessionStorage);
25094
+ this.environmentInjector = environmentInjector;
25095
+ }
25096
+ ngAfterViewInit() {
25097
+ if (this.getUserRoles().length > 0) {
25098
+ void this.renderPayment();
25099
+ }
25100
+ }
25101
+ ngOnDestroy() {
25102
+ this.paymentHost?.clear();
25103
+ this.paymentComponentRef = undefined;
25104
+ this.paymentModuleRef?.destroy();
24991
25105
  }
24992
25106
  getCardPaymentReturnUrl() {
24993
25107
  return this.appConfig.getPaymentReturnUrl();
24994
25108
  }
24995
- static ɵfac = function WaysToPayFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WaysToPayFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(SessionStorageService)); };
24996
- 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) {
24997
- i0.ɵɵtemplate(0, WaysToPayFieldComponent_ccpay_payment_lib_0_Template, 1, 15, "ccpay-payment-lib", 0);
25109
+ async renderPayment() {
25110
+ let paymentLibrary;
25111
+ try {
25112
+ paymentLibrary = await import('@hmcts/ccpay-web-component');
25113
+ }
25114
+ catch {
25115
+ this.paymentLoadError = true;
25116
+ return;
25117
+ }
25118
+ const { PaymentLibComponent, PaymentLibModule } = paymentLibrary;
25119
+ this.paymentModuleRef = createNgModule(PaymentLibModule, this.environmentInjector);
25120
+ this.paymentComponentRef = this.paymentHost.createComponent(PaymentLibComponent, {
25121
+ ngModuleRef: this.paymentModuleRef
25122
+ });
25123
+ this.paymentComponentRef.setInput('API_ROOT', this.getBaseURL());
25124
+ this.paymentComponentRef.setInput('BULKSCAN_API_ROOT', this.getPayBulkScanBaseURL());
25125
+ this.paymentComponentRef.setInput('REFUNDS_API_ROOT', this.getRefundsUrl());
25126
+ this.paymentComponentRef.setInput('NOTIFICATION_API_ROOT', this.getNotificationUrl());
25127
+ this.paymentComponentRef.setInput('CCD_CASE_NUMBER', this.caseReference);
25128
+ this.paymentComponentRef.setInput('VIEW', 'case-transactions');
25129
+ this.paymentComponentRef.setInput('TAKEPAYMENT', false);
25130
+ this.paymentComponentRef.setInput('SERVICEREQUEST', true);
25131
+ this.paymentComponentRef.setInput('PAYMENT_GROUP_REF', null);
25132
+ this.paymentComponentRef.setInput('EXC_REFERENCE', this.caseReference);
25133
+ this.paymentComponentRef.setInput('DCN_NUMBER', null);
25134
+ this.paymentComponentRef.setInput('SELECTED_OPTION', 'CCDorException');
25135
+ this.paymentComponentRef.setInput('LOGGEDINUSERROLES', this.getUserRoles());
25136
+ this.paymentComponentRef.setInput('CARDPAYMENTRETURNURL', this.getCardPaymentReturnUrl());
25137
+ this.paymentComponentRef.setInput('ISPAYMENTSTATUSENABLED', 'Enable');
25138
+ }
25139
+ static ɵfac = function WaysToPayFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WaysToPayFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(i0.EnvironmentInjector)); };
25140
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WaysToPayFieldComponent, selectors: [["ccd-ways-to-pay-field"]], viewQuery: function WaysToPayFieldComponent_Query(rf, ctx) { if (rf & 1) {
25141
+ i0.ɵɵviewQuery(_c0$B, 5, ViewContainerRef);
25142
+ } if (rf & 2) {
25143
+ let _t;
25144
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.paymentHost = _t.first);
25145
+ } }, 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) {
25146
+ i0.ɵɵtemplate(0, WaysToPayFieldComponent_p_0_Template, 2, 0, "p", 1);
25147
+ i0.ɵɵelementContainer(1, null, 0);
24998
25148
  } if (rf & 2) {
24999
- i0.ɵɵproperty("ngIf", ctx.getUserRoles().length > 0);
25000
- } }, dependencies: [i4.NgIf, i3$1.PaymentLibComponent], encapsulation: 2 });
25149
+ i0.ɵɵproperty("ngIf", ctx.paymentLoadError);
25150
+ } }, dependencies: [i4.NgIf], encapsulation: 2 });
25001
25151
  }
25002
25152
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WaysToPayFieldComponent, [{
25003
25153
  type: Component,
25004
- 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>" }]
25005
- }], () => [{ type: AbstractAppConfig }, { type: SessionStorageService }], null); })();
25006
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WaysToPayFieldComponent, { className: "WaysToPayFieldComponent", filePath: "lib/shared/components/palette/waystopay/waystopay-field.component.ts", lineNumber: 11 }); })();
25154
+ 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" }]
25155
+ }], () => [{ type: AbstractAppConfig }, { type: SessionStorageService }, { type: i0.EnvironmentInjector }], { paymentHost: [{
25156
+ type: ViewChild,
25157
+ args: ['paymentHost', { read: ViewContainerRef }]
25158
+ }] }); })();
25159
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WaysToPayFieldComponent, { className: "WaysToPayFieldComponent", filePath: "lib/shared/components/palette/waystopay/waystopay-field.component.ts", lineNumber: 21 }); })();
25007
25160
 
25008
25161
  class YesNoService {
25009
25162
  static YES_INPUTS = [
@@ -32215,12 +32368,10 @@ class PaletteModule {
32215
32368
  MatLegacyAutocompleteModule,
32216
32369
  CdkTreeModule,
32217
32370
  OverlayModule,
32218
- PaymentLibModule,
32219
32371
  RpxTranslationModule.forChild(),
32220
32372
  CdkTreeModule,
32221
32373
  OverlayModule,
32222
32374
  MatLegacyDialogModule,
32223
- MediaViewerModule,
32224
32375
  LoadingModule,
32225
32376
  MarkdownComponentModule,
32226
32377
  ErrorsModule, NgxMatDatetimePickerModule,
@@ -32260,12 +32411,10 @@ class PaletteModule {
32260
32411
  MatLegacyAutocompleteModule,
32261
32412
  CdkTreeModule,
32262
32413
  OverlayModule,
32263
- PaymentLibModule,
32264
32414
  RpxTranslationModule.forChild(),
32265
32415
  CdkTreeModule,
32266
32416
  OverlayModule,
32267
32417
  MatLegacyDialogModule,
32268
- MediaViewerModule,
32269
32418
  LoadingModule,
32270
32419
  MarkdownComponentModule,
32271
32420
  ErrorsModule
@@ -32468,11 +32617,9 @@ class PaletteModule {
32468
32617
  MatDatepickerModule,
32469
32618
  MatLegacyAutocompleteModule,
32470
32619
  CdkTreeModule,
32471
- OverlayModule,
32472
- PaymentLibModule, i1.RpxTranslationModule, CdkTreeModule,
32620
+ OverlayModule, i1.RpxTranslationModule, CdkTreeModule,
32473
32621
  OverlayModule,
32474
32622
  MatLegacyDialogModule,
32475
- MediaViewerModule,
32476
32623
  LoadingModule,
32477
32624
  MarkdownComponentModule,
32478
32625
  ErrorsModule], exports: [NgxMatDatetimePickerModule,
@@ -32659,12 +32806,12 @@ i0.ɵɵsetComponentScope(WriteDateContainerFieldComponent, function () { return
32659
32806
  i0.ɵɵsetComponentScope(WriteCollectionFieldComponent, function () { return [i4.NgForOf, i4.NgIf, i3.NgControlStatusGroup, i3.FormGroupDirective, MarkdownComponent, FieldWriteComponent]; }, function () { return [FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe]; });
32660
32807
  i0.ɵɵsetComponentScope(
32661
32808
  // ComponentLauncher web components
32662
- CaseFileViewFieldComponent, function () { return [i4.NgForOf, i4.NgIf, i13.MediaViewerComponent, CaseFileViewFolderComponent]; }, []);
32809
+ CaseFileViewFieldComponent, function () { return [i4.NgForOf, i4.NgIf, CaseFileViewFolderComponent]; }, []);
32663
32810
  i0.ɵɵsetComponentScope(
32664
32811
  // Components for case flags
32665
32812
  CaseFlagTableComponent, function () { return [i4.NgClass, i4.NgForOf, i4.NgIf]; }, function () { return [i4.DatePipe, i1.RpxTranslatePipe, FlagFieldDisplayPipe]; });
32666
32813
  i0.ɵɵsetComponentScope(SelectFlagTypeComponent, function () { return [i4.NgClass, i4.NgForOf, i4.NgIf, i3.DefaultValueAccessor, i3.CheckboxControlValueAccessor, i3.RadioControlValueAccessor, i3.NgControlStatus, i3.NgControlStatusGroup, i3.FormGroupDirective, i3.FormControlName]; }, function () { return [i1.RpxTranslatePipe, FlagFieldDisplayPipe]; });
32667
- i0.ɵɵsetComponentScope(SearchLanguageInterpreterComponent, function () { return [i4.NgClass, i4.NgForOf, i4.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgControlStatusGroup, i3.FormGroupDirective, i3.FormControlName, i14.MatLegacyInput, i6.MatLegacyAutocomplete, i6.MatLegacyAutocompleteTrigger, i7.MatLegacyOption]; }, function () { return [i4.AsyncPipe, i1.RpxTranslatePipe, FlagFieldDisplayPipe,
32814
+ i0.ɵɵsetComponentScope(SearchLanguageInterpreterComponent, function () { return [i4.NgClass, i4.NgForOf, i4.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgControlStatusGroup, i3.FormGroupDirective, i3.FormControlName, i13.MatLegacyInput, i6.MatLegacyAutocomplete, i6.MatLegacyAutocompleteTrigger, i7.MatLegacyOption]; }, function () { return [i4.AsyncPipe, i1.RpxTranslatePipe, FlagFieldDisplayPipe,
32668
32815
  LanguageInterpreterDisplayPipe]; });
32669
32816
  i0.ɵɵsetComponentScope(ManageCaseFlagsComponent, function () { return [i4.NgClass, i4.NgForOf, i4.NgIf, i3.NgControlStatusGroup, i3.FormGroupDirective]; }, function () { return [i1.RpxTranslatePipe, ManageCaseFlagsLabelDisplayPipe]; });
32670
32817
  i0.ɵɵsetComponentScope(UpdateFlagComponent, function () { return [i4.NgClass, i4.NgForOf, i4.NgIf, i4.NgTemplateOutlet, i3.DefaultValueAccessor, i3.CheckboxControlValueAccessor, i3.RadioControlValueAccessor, i3.NgControlStatus, i3.NgControlStatusGroup, i3.FormGroupDirective, i3.FormControlName]; }, function () { return [i1.RpxTranslatePipe, UpdateFlagTitleDisplayPipe]; });
@@ -41887,5 +42034,5 @@ class TestRouteSnapshotBuilder {
41887
42034
  * Generated bundle index. Do not edit.
41888
42035
  */
41889
42036
 
41890
- 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, MEDIA_VIEWER_LOCALSTORAGE_KEY, 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, 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, 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, WriteTextAreaFieldComponent, WriteTextFieldComponent, WriteYesNoFieldComponent, YesNoService, aCaseField, caseMessagesMockData, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, safeJsonParse, textFieldType, viewerRouting };
42037
+ 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, MEDIA_VIEWER_LOCALSTORAGE_KEY, 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, 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, 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, WriteTextAreaFieldComponent, WriteTextFieldComponent, WriteYesNoFieldComponent, YesNoService, aCaseField, caseMessagesMockData, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, textFieldType, viewerRouting };
41891
42038
  //# sourceMappingURL=hmcts-ccd-case-ui-toolkit.mjs.map