@hmcts/ccd-case-ui-toolkit 7.3.77-4923 → 7.3.77-5033

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