@hmcts/ccd-case-ui-toolkit 7.3.77-4923 → 7.3.77-4949-5044

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,14 +12,11 @@ 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';
20
18
  import * as _ from 'underscore';
21
19
  import 'reflect-metadata';
22
- import { generate } from 'pegjs';
23
20
  import { StateMachine } from '@edium/fsm';
24
21
  import * as i1$3 from '@angular/material/legacy-dialog';
25
22
  import { MAT_LEGACY_DIALOG_DATA, MatLegacyDialogModule } from '@angular/material/legacy-dialog';
@@ -31,6 +28,8 @@ import * as i6 from '@angular/material/legacy-autocomplete';
31
28
  import { MatLegacyAutocompleteModule } from '@angular/material/legacy-autocomplete';
32
29
  import * as i7 from '@angular/material/legacy-core';
33
30
  import { MAT_LEGACY_DATE_LOCALE } from '@angular/material/legacy-core';
31
+ import * as i3$1 from '@hmcts/ccpay-web-component';
32
+ import { PaymentLibModule } from '@hmcts/ccpay-web-component';
34
33
  import { v4 } from 'uuid';
35
34
  import * as i2 from '@angular/cdk/overlay';
36
35
  import { OverlayModule } from '@angular/cdk/overlay';
@@ -45,8 +44,10 @@ import * as i5 from '@angular/material/legacy-form-field';
45
44
  import { MatLegacyFormFieldModule } from '@angular/material/legacy-form-field';
46
45
  import * as i6$2 from '@angular/material/datepicker';
47
46
  import { MatDatepickerModule } from '@angular/material/datepicker';
48
- import * as i13 from '@angular/material/legacy-input';
47
+ import * as i14 from '@angular/material/legacy-input';
49
48
  import { MatLegacyInputModule } from '@angular/material/legacy-input';
49
+ import * as i13 from '@hmcts/media-viewer';
50
+ import { MediaViewerModule } from '@hmcts/media-viewer';
50
51
  import { PortalModule } from '@angular/cdk/portal';
51
52
  import * as i2$2 from 'ngx-pagination';
52
53
  import { NgxPaginationModule, PaginatePipe } from 'ngx-pagination';
@@ -54,7 +55,7 @@ import * as i10 from '@angular/material/legacy-tabs';
54
55
  import { MatLegacyTabsModule } from '@angular/material/legacy-tabs';
55
56
  import { compressToUTF16, decompressFromUTF16 } from 'lz-string';
56
57
 
57
- const _c0$1b = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
58
+ const _c0$18 = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
58
59
  const _c1$u = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
59
60
  function FooterComponent_div_2_Template(rf, ctx) { if (rf & 1) {
60
61
  i0.ɵɵelementStart(0, "div", 3)(1, "div", 4);
@@ -132,7 +133,7 @@ class FooterComponent {
132
133
  workhours;
133
134
  static ɵfac = function FooterComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FooterComponent)(); };
134
135
  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);
136
+ i0.ɵɵprojectionDef(_c0$18);
136
137
  i0.ɵɵelementStart(0, "footer", 0)(1, "div", 1);
137
138
  i0.ɵɵtemplate(2, FooterComponent_div_2_Template, 20, 15, "div", 2)(3, FooterComponent_div_3_Template, 20, 16, "div", 2);
138
139
  i0.ɵɵelementEnd()();
@@ -159,7 +160,7 @@ class FooterComponent {
159
160
  }] }); })();
160
161
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FooterComponent, { className: "FooterComponent", filePath: "lib/components/footer/footer.component.ts", lineNumber: 9 }); })();
161
162
 
162
- const _c0$1a = [[["", "headerNavigation", ""]]];
163
+ const _c0$17 = [[["", "headerNavigation", ""]]];
163
164
  const _c1$t = ["[headerNavigation]"];
164
165
  function HeaderBarComponent_div_3_Template(rf, ctx) { if (rf & 1) {
165
166
  i0.ɵɵelementStart(0, "div")(1, "a", 12);
@@ -202,7 +203,7 @@ class HeaderBarComponent {
202
203
  }
203
204
  static ɵfac = function HeaderBarComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || HeaderBarComponent)(); };
204
205
  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);
206
+ i0.ɵɵprojectionDef(_c0$17);
206
207
  i0.ɵɵelementStart(0, "header", 0)(1, "div", 1)(2, "div", 2);
207
208
  i0.ɵɵtemplate(3, HeaderBarComponent_div_3_Template, 4, 1, "div", 3)(4, HeaderBarComponent_div_4_Template, 5, 3, "div", 4);
208
209
  i0.ɵɵelementEnd();
@@ -252,13 +253,13 @@ class HeaderBarComponent {
252
253
  }] }); })();
253
254
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(HeaderBarComponent, { className: "HeaderBarComponent", filePath: "lib/components/header/header-bar/header-bar.component.ts", lineNumber: 9 }); })();
254
255
 
255
- const _c0$19 = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
256
+ const _c0$16 = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
256
257
  const _c1$s = ["[leftNavLinks]", "[rightNavLinks]"];
257
258
  class NavigationComponent {
258
259
  isSolicitor;
259
260
  static ɵfac = function NavigationComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || NavigationComponent)(); };
260
261
  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);
262
+ i0.ɵɵprojectionDef(_c0$16);
262
263
  i0.ɵɵelementStart(0, "div")(1, "nav", 0);
263
264
  i0.ɵɵprojection(2);
264
265
  i0.ɵɵprojection(3, 1);
@@ -280,7 +281,7 @@ function NavigationItemComponent_input_4_Template(rf, ctx) { if (rf & 1) {
280
281
  i0.ɵɵelement(0, "input", 2);
281
282
  } if (rf & 2) {
282
283
  const ctx_r0 = i0.ɵɵnextContext();
283
- i0.ɵɵproperty("alt", i0.ɵɵinterpolate1("", ctx_r0.label, " button"))("src", i0.ɵɵinterpolate(ctx_r0.imageLink), i0.ɵɵsanitizeUrl);
284
+ i0.ɵɵproperty("alt", i0.ɵɵinterpolate1("", ctx_r0.label, " button"))("src", i0.ɵɵinterpolate(ctx_r0.imageLink));
284
285
  } }
285
286
  class NavigationItemComponent {
286
287
  label;
@@ -376,12 +377,12 @@ class HeadersModule {
376
377
  }], null, null); })();
377
378
  (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(HeadersModule, { declarations: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent], imports: [CommonModule, RouterModule, i1.RpxTranslationModule], exports: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent] }); })();
378
379
 
379
- const _c0$18 = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
380
+ const _c0$15 = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
380
381
  const _c1$r = ["[topBody]", "[leftBody]", "[rightBody]"];
381
382
  class BodyComponent {
382
383
  static ɵfac = function BodyComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BodyComponent)(); };
383
384
  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);
385
+ i0.ɵɵprojectionDef(_c0$15);
385
386
  i0.ɵɵelementStart(0, "div", 0);
386
387
  i0.ɵɵprojection(1);
387
388
  i0.ɵɵprojection(2, 1);
@@ -395,7 +396,7 @@ class BodyComponent {
395
396
  }], null, null); })();
396
397
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BodyComponent, { className: "BodyComponent", filePath: "lib/components/body/body.component.ts", lineNumber: 10 }); })();
397
398
 
398
- const _c0$17 = a0 => ({ "govuk-input--error": a0 });
399
+ const _c0$14 = a0 => ({ "govuk-input--error": a0 });
399
400
  function DateInputComponent_div_19_Template(rf, ctx) { if (rf & 1) {
400
401
  const _r5 = i0.ɵɵgetCurrentView();
401
402
  i0.ɵɵelementStart(0, "div", 15)(1, "span", 8);
@@ -412,7 +413,7 @@ function DateInputComponent_div_19_Template(rf, ctx) { if (rf & 1) {
412
413
  i0.ɵɵadvance();
413
414
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 7, "Hour"));
414
415
  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));
416
+ i0.ɵɵproperty("id", ctx_r6.hourId())("name", ctx_r6.hourId())("value", ctx_r6.displayHour)("ngClass", i0.ɵɵpureFunction1(9, _c0$14, ctx_r6.isInvalid));
416
417
  i0.ɵɵattribute("aria-labelledby", "hour-label-" + ctx_r6.hourId());
417
418
  } }
418
419
  function DateInputComponent_div_20_Template(rf, ctx) { if (rf & 1) {
@@ -431,7 +432,7 @@ function DateInputComponent_div_20_Template(rf, ctx) { if (rf & 1) {
431
432
  i0.ɵɵadvance();
432
433
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 7, "Minute"));
433
434
  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));
435
+ i0.ɵɵproperty("id", ctx_r6.minuteId())("name", ctx_r6.minuteId())("value", ctx_r6.displayMinute)("ngClass", i0.ɵɵpureFunction1(9, _c0$14, ctx_r6.isInvalid));
435
436
  i0.ɵɵattribute("aria-labelledby", "minute-label-" + ctx_r6.minuteId());
436
437
  } }
437
438
  function DateInputComponent_div_21_Template(rf, ctx) { if (rf & 1) {
@@ -450,7 +451,7 @@ function DateInputComponent_div_21_Template(rf, ctx) { if (rf & 1) {
450
451
  i0.ɵɵadvance();
451
452
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 7, "Second"));
452
453
  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));
454
+ i0.ɵɵproperty("id", ctx_r6.secondId())("name", ctx_r6.secondId())("value", ctx_r6.displaySecond)("ngClass", i0.ɵɵpureFunction1(9, _c0$14, ctx_r6.isInvalid));
454
455
  i0.ɵɵattribute("aria-labelledby", "second-label-" + ctx_r6.secondId());
455
456
  } }
456
457
  class DateInputComponent {
@@ -686,21 +687,21 @@ class DateInputComponent {
686
687
  i0.ɵɵadvance();
687
688
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 24, "Day"));
688
689
  i0.ɵɵadvance(2);
689
- i0.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0.ɵɵpureFunction1(30, _c0$17, ctx.isInvalid));
690
+ i0.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0.ɵɵpureFunction1(30, _c0$14, ctx.isInvalid));
690
691
  i0.ɵɵattribute("aria-labelledby", "day-label-" + ctx.dayId());
691
692
  i0.ɵɵadvance(3);
692
693
  i0.ɵɵattribute("id", "month-label-" + ctx.monthId());
693
694
  i0.ɵɵadvance();
694
695
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 26, "Month"));
695
696
  i0.ɵɵadvance(2);
696
- i0.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0.ɵɵpureFunction1(32, _c0$17, ctx.isInvalid));
697
+ i0.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0.ɵɵpureFunction1(32, _c0$14, ctx.isInvalid));
697
698
  i0.ɵɵattribute("aria-labelledby", "month-label-" + ctx.monthId());
698
699
  i0.ɵɵadvance(3);
699
700
  i0.ɵɵattribute("id", "year-label-" + ctx.yearId());
700
701
  i0.ɵɵadvance();
701
702
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(16, 28, "Year"));
702
703
  i0.ɵɵadvance(2);
703
- i0.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0.ɵɵpureFunction1(34, _c0$17, ctx.isInvalid));
704
+ i0.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0.ɵɵpureFunction1(34, _c0$14, ctx.isInvalid));
704
705
  i0.ɵɵattribute("aria-labelledby", "year-label-" + ctx.yearId());
705
706
  i0.ɵɵadvance(2);
706
707
  i0.ɵɵproperty("ngIf", ctx.isDateTime);
@@ -737,7 +738,7 @@ class DateInputComponent {
737
738
  }] }); })();
738
739
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DateInputComponent, { className: "DateInputComponent", filePath: "lib/components/form/date-input/date-input.component.ts", lineNumber: 21 }); })();
739
740
 
740
- const _c0$16 = ["*"];
741
+ const _c0$13 = ["*"];
741
742
  function AlertComponent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
742
743
  i0.ɵɵelementContainerStart(0);
743
744
  i0.ɵɵnamespaceSVG();
@@ -787,7 +788,7 @@ class AlertComponent {
787
788
  showIcon = true;
788
789
  alertMessageType = AlertMessageType;
789
790
  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) {
791
+ 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
792
  i0.ɵɵprojectionDef();
792
793
  i0.ɵɵelementStart(0, "div", 0);
793
794
  i0.ɵɵelementContainerStart(1, 1);
@@ -1001,14 +1002,14 @@ class NotificationBannerComponent {
1001
1002
  }] }); })();
1002
1003
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(NotificationBannerComponent, { className: "NotificationBannerComponent", filePath: "lib/components/banners/notification-banner/notification-banner.component.ts", lineNumber: 11 }); })();
1003
1004
 
1004
- const _c0$15 = ["*"];
1005
+ const _c0$12 = ["*"];
1005
1006
  const _c1$q = a0 => ({ "js-hidden": a0 });
1006
1007
  class TabComponent {
1007
1008
  id;
1008
1009
  title;
1009
1010
  selected;
1010
1011
  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) {
1012
+ 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
1013
  i0.ɵɵprojectionDef();
1013
1014
  i0.ɵɵelementStart(0, "div", 0);
1014
1015
  i0.ɵɵprojection(1);
@@ -1030,7 +1031,7 @@ class TabComponent {
1030
1031
  }] }); })();
1031
1032
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TabComponent, { className: "TabComponent", filePath: "lib/components/tabs/tab.component.ts", lineNumber: 11 }); })();
1032
1033
 
1033
- const _c0$14 = ["tab"];
1034
+ const _c0$11 = ["tab"];
1034
1035
  const _c1$p = ["*"];
1035
1036
  const _c2$4 = () => ["."];
1036
1037
  const _c3 = a0 => ({ "tabs-toggle-selected": a0 });
@@ -1077,7 +1078,7 @@ class TabsComponent {
1077
1078
  let _t;
1078
1079
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.panels = _t);
1079
1080
  } }, viewQuery: function TabsComponent_Query(rf, ctx) { if (rf & 1) {
1080
- i0.ɵɵviewQuery(_c0$14, 5);
1081
+ i0.ɵɵviewQuery(_c0$11, 5);
1081
1082
  } if (rf & 2) {
1082
1083
  let _t;
1083
1084
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabs = _t);
@@ -1136,7 +1137,7 @@ class TabsModule {
1136
1137
  RouterModule, i1.RpxTranslationModule], exports: [TabsComponent,
1137
1138
  TabComponent] }); })();
1138
1139
 
1139
- const _c0$13 = (a0, a1) => ({ caseLocked: a0, someoneViewing: a1 });
1140
+ const _c0$10 = (a0, a1) => ({ caseLocked: a0, someoneViewing: a1 });
1140
1141
  class ActivityBannerComponent {
1141
1142
  bannerType;
1142
1143
  description;
@@ -1155,7 +1156,7 @@ class ActivityBannerComponent {
1155
1156
  i0.ɵɵpipe(6, "rpxTranslate");
1156
1157
  i0.ɵɵelementEnd()();
1157
1158
  } if (rf & 2) {
1158
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(10, _c0$13, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
1159
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(10, _c0$10, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
1159
1160
  i0.ɵɵadvance(2);
1160
1161
  i0.ɵɵproperty("alt", i0.ɵɵinterpolate(i0.ɵɵpipeBind1(3, 6, ctx.description)))("src", i0.ɵɵinterpolate(ctx.imageLink), i0.ɵɵsanitizeUrl);
1161
1162
  i0.ɵɵadvance(3);
@@ -1775,6 +1776,21 @@ class SessionStorageService {
1775
1776
  }]
1776
1777
  }], null, null); })();
1777
1778
 
1779
+ const logger = new StructuredLoggerService();
1780
+ function safeJsonParse(value, fallback = null) {
1781
+ if (!value) {
1782
+ return fallback;
1783
+ }
1784
+ try {
1785
+ return JSON.parse(value);
1786
+ }
1787
+ catch (error) {
1788
+ // Log for diagnostics, then return fallback to avoid UI crashes.
1789
+ logger.error('safeJsonParse failed to parse JSON.', { error });
1790
+ return fallback;
1791
+ }
1792
+ }
1793
+
1778
1794
  const SessionErrorRoute = new InjectionToken('SessionErrorRoute');
1779
1795
  const SessionJsonErrorLogger = new InjectionToken('SessionJsonErrorLogger');
1780
1796
  class SessionStorageGuard {
@@ -1837,13 +1853,13 @@ function getUserDetails(sessionStorageService) {
1837
1853
  }
1838
1854
  function isInternalUser(sessionStorageService) {
1839
1855
  const userDetails = getUserDetails(sessionStorageService);
1840
- return userDetails && userDetails?.roles
1856
+ return !!userDetails?.roles
1841
1857
  && !(userDetails.roles.includes(PUI_CASE_MANAGER)
1842
1858
  || userDetails.roles.some((role) => role.toLowerCase().includes(JUDGE)));
1843
1859
  }
1844
1860
  function isJudiciaryUser(sessionStorageService) {
1845
1861
  const userDetails = getUserDetails(sessionStorageService);
1846
- return userDetails && userDetails?.roles
1862
+ return !!userDetails?.roles
1847
1863
  && (userDetails.roles.some((role) => role.toLowerCase().includes(JUDGE)));
1848
1864
  }
1849
1865
 
@@ -4779,107 +4795,955 @@ class FieldsUtils {
4779
4795
  type: Injectable
4780
4796
  }], null, null); })();
4781
4797
 
4782
- const conditionSource = `{
4798
+ // @ts-nocheck
4799
+ // This file is generated by npm run generate:condition-parser. Do not edit by hand.
4800
+ // @generated by Peggy 5.1.0.
4801
+ //
4802
+ // https://peggyjs.org/
4803
+ class peg$SyntaxError extends SyntaxError {
4804
+ constructor(message, expected, found, location) {
4805
+ super(message);
4806
+ this.expected = expected;
4807
+ this.found = found;
4808
+ this.location = location;
4809
+ this.name = "SyntaxError";
4810
+ }
4811
+ format(sources) {
4812
+ let str = "Error: " + this.message;
4813
+ if (this.location) {
4814
+ let src = null;
4815
+ const st = sources.find(s => s.source === this.location.source);
4816
+ if (st) {
4817
+ src = st.text.split(/\r\n|\n|\r/g);
4818
+ }
4819
+ const s = this.location.start;
4820
+ const offset_s = (this.location.source && (typeof this.location.source.offset === "function"))
4821
+ ? this.location.source.offset(s)
4822
+ : s;
4823
+ const loc = this.location.source + ":" + offset_s.line + ":" + offset_s.column;
4824
+ if (src) {
4825
+ const e = this.location.end;
4826
+ const filler = "".padEnd(offset_s.line.toString().length, " ");
4827
+ const line = src[s.line - 1];
4828
+ const last = s.line === e.line ? e.column : line.length + 1;
4829
+ const hatLen = (last - s.column) || 1;
4830
+ str += "\n --> " + loc + "\n"
4831
+ + filler + " |\n"
4832
+ + offset_s.line + " | " + line + "\n"
4833
+ + filler + " | " + "".padEnd(s.column - 1, " ")
4834
+ + "".padEnd(hatLen, "^");
4835
+ }
4836
+ else {
4837
+ str += "\n at " + loc;
4838
+ }
4839
+ }
4840
+ return str;
4841
+ }
4842
+ static buildMessage(expected, found) {
4843
+ function hex(ch) {
4844
+ return ch.codePointAt(0).toString(16).toUpperCase();
4845
+ }
4846
+ const nonPrintable = Object.prototype.hasOwnProperty.call(RegExp.prototype, "unicode")
4847
+ ? new RegExp("[\\p{C}\\p{Mn}\\p{Mc}]", "gu")
4848
+ : null;
4849
+ function unicodeEscape(s) {
4850
+ if (nonPrintable) {
4851
+ return s.replace(nonPrintable, ch => "\\u{" + hex(ch) + "}");
4852
+ }
4853
+ return s;
4854
+ }
4855
+ function literalEscape(s) {
4856
+ return unicodeEscape(s
4857
+ .replace(/\\/g, "\\\\")
4858
+ .replace(/"/g, "\\\"")
4859
+ .replace(/\0/g, "\\0")
4860
+ .replace(/\t/g, "\\t")
4861
+ .replace(/\n/g, "\\n")
4862
+ .replace(/\r/g, "\\r")
4863
+ .replace(/[\x00-\x0F]/g, ch => "\\x0" + hex(ch))
4864
+ .replace(/[\x10-\x1F\x7F-\x9F]/g, ch => "\\x" + hex(ch)));
4865
+ }
4866
+ function classEscape(s) {
4867
+ return unicodeEscape(s
4868
+ .replace(/\\/g, "\\\\")
4869
+ .replace(/\]/g, "\\]")
4870
+ .replace(/\^/g, "\\^")
4871
+ .replace(/-/g, "\\-")
4872
+ .replace(/\0/g, "\\0")
4873
+ .replace(/\t/g, "\\t")
4874
+ .replace(/\n/g, "\\n")
4875
+ .replace(/\r/g, "\\r")
4876
+ .replace(/[\x00-\x0F]/g, ch => "\\x0" + hex(ch))
4877
+ .replace(/[\x10-\x1F\x7F-\x9F]/g, ch => "\\x" + hex(ch)));
4878
+ }
4879
+ const DESCRIBE_EXPECTATION_FNS = {
4880
+ literal(expectation) {
4881
+ return "\"" + literalEscape(expectation.text) + "\"";
4882
+ },
4883
+ class(expectation) {
4884
+ const escapedParts = expectation.parts.map(part => (Array.isArray(part)
4885
+ ? classEscape(part[0]) + "-" + classEscape(part[1])
4886
+ : classEscape(part)));
4887
+ return "[" + (expectation.inverted ? "^" : "") + escapedParts.join("") + "]" + (expectation.unicode ? "u" : "");
4888
+ },
4889
+ any() {
4890
+ return "any character";
4891
+ },
4892
+ end() {
4893
+ return "end of input";
4894
+ },
4895
+ other(expectation) {
4896
+ return expectation.description;
4897
+ },
4898
+ };
4899
+ function describeExpectation(expectation) {
4900
+ return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation);
4901
+ }
4902
+ function describeExpected(expected) {
4903
+ const descriptions = expected.map(describeExpectation);
4904
+ descriptions.sort();
4905
+ if (descriptions.length > 0) {
4906
+ let j = 1;
4907
+ for (let i = 1; i < descriptions.length; i++) {
4908
+ if (descriptions[i - 1] !== descriptions[i]) {
4909
+ descriptions[j] = descriptions[i];
4910
+ j++;
4911
+ }
4912
+ }
4913
+ descriptions.length = j;
4914
+ }
4915
+ switch (descriptions.length) {
4916
+ case 1:
4917
+ return descriptions[0];
4918
+ case 2:
4919
+ return descriptions[0] + " or " + descriptions[1];
4920
+ default:
4921
+ return descriptions.slice(0, -1).join(", ")
4922
+ + ", or "
4923
+ + descriptions[descriptions.length - 1];
4924
+ }
4925
+ }
4926
+ function describeFound(found) {
4927
+ return found ? "\"" + literalEscape(found) + "\"" : "end of input";
4928
+ }
4929
+ return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found.";
4930
+ }
4931
+ }
4932
+ function peg$parse(input, options) {
4933
+ options = options !== undefined ? options : {};
4934
+ const peg$FAILED = {};
4935
+ const peg$source = options.grammarSource;
4936
+ const peg$startRuleFunctions = {
4937
+ Start: peg$parseStart,
4938
+ };
4939
+ let peg$startRuleFunction = peg$parseStart;
4940
+ const peg$c0 = "AND";
4941
+ const peg$c1 = "OR";
4942
+ const peg$c2 = "[";
4943
+ const peg$c3 = "]";
4944
+ const peg$c4 = "\"";
4945
+ const peg$c5 = "(";
4946
+ const peg$c6 = ")";
4947
+ const peg$c7 = "=";
4948
+ const peg$c8 = "!=";
4949
+ const peg$c9 = "CONTAINS";
4950
+ const peg$r0 = /^[a-zA-Z]/;
4951
+ const peg$r1 = /^[A-Za-z0-9._\-]/;
4952
+ const peg$r2 = /^[0-9]/;
4953
+ const peg$r3 = /^[A-Za-z0-9.,* _&()\/\-]/;
4954
+ const peg$r4 = /^[ \t]/;
4955
+ const peg$e0 = peg$literalExpectation("AND", false);
4956
+ const peg$e1 = peg$literalExpectation("OR", false);
4957
+ const peg$e2 = peg$classExpectation([["a", "z"], ["A", "Z"]], false, false, false);
4958
+ const peg$e3 = peg$classExpectation([["A", "Z"], ["a", "z"], ["0", "9"], ".", "_", "-"], false, false, false);
4959
+ const peg$e4 = peg$literalExpectation("[", false);
4960
+ const peg$e5 = peg$literalExpectation("]", false);
4961
+ const peg$e6 = peg$classExpectation([["0", "9"]], false, false, false);
4962
+ const peg$e7 = peg$literalExpectation("\"", false);
4963
+ const peg$e8 = peg$classExpectation([["A", "Z"], ["a", "z"], ["0", "9"], ".", ",", "*", " ", "_", "&", "(", ")", "/", "-"], false, false, false);
4964
+ const peg$e9 = peg$literalExpectation("(", false);
4965
+ const peg$e10 = peg$literalExpectation(")", false);
4966
+ const peg$e11 = peg$literalExpectation("=", false);
4967
+ const peg$e12 = peg$literalExpectation("!=", false);
4968
+ const peg$e13 = peg$literalExpectation("CONTAINS", false);
4969
+ const peg$e14 = peg$otherExpectation("Whitespace");
4970
+ const peg$e15 = peg$classExpectation([" ", "\t"], false, false, false);
4971
+ const peg$e16 = peg$otherExpectation("One or more whitespaces");
4972
+ function peg$f0(term, joins) { return [term].concat(flat(joins)); }
4973
+ function peg$f1(formula) { return formula.length === 1 ? formula[0] : formula; }
4974
+ function peg$f2(comp, term) { return [comp, term]; }
4975
+ function peg$f3(fr, op, val) { return { fieldReference: fr, comparator: op, value: val }; }
4976
+ function peg$f4(c) { return c; }
4977
+ function peg$f5(c) { return c; }
4978
+ function peg$f6(l) { return l.join(""); }
4979
+ function peg$f7(v) { return v.join(""); }
4980
+ function peg$f8(v) { return parseInt(v.join("")); }
4981
+ function peg$f9(s1, fr, s2) { return s1 + fr + s2; }
4982
+ function peg$f10(characters) { return characters.join(""); }
4983
+ function peg$f11(val) { return val.join(""); }
4984
+ let peg$currPos = options.peg$currPos | 0;
4985
+ let peg$savedPos = peg$currPos;
4986
+ const peg$posDetailsCache = [{ line: 1, column: 1 }];
4987
+ let peg$maxFailPos = peg$currPos;
4988
+ let peg$maxFailExpected = options.peg$maxFailExpected || [];
4989
+ let peg$silentFails = options.peg$silentFails | 0;
4990
+ let peg$result;
4991
+ if (options.startRule) {
4992
+ if (!(options.startRule in peg$startRuleFunctions)) {
4993
+ throw new Error("Can't start parsing from rule \"" + options.startRule + "\".");
4994
+ }
4995
+ peg$startRuleFunction = peg$startRuleFunctions[options.startRule];
4996
+ }
4997
+ function text() {
4998
+ return input.substring(peg$savedPos, peg$currPos);
4999
+ }
5000
+ function offset() {
5001
+ return peg$savedPos;
5002
+ }
5003
+ function range() {
5004
+ return {
5005
+ source: peg$source,
5006
+ start: peg$savedPos,
5007
+ end: peg$currPos,
5008
+ };
5009
+ }
5010
+ function location() {
5011
+ return peg$computeLocation(peg$savedPos, peg$currPos);
5012
+ }
5013
+ function expected(description, location) {
5014
+ location = location !== undefined
5015
+ ? location
5016
+ : peg$computeLocation(peg$savedPos, peg$currPos);
5017
+ throw peg$buildStructuredError([peg$otherExpectation(description)], input.substring(peg$savedPos, peg$currPos), location);
5018
+ }
5019
+ function error(message, location) {
5020
+ location = location !== undefined
5021
+ ? location
5022
+ : peg$computeLocation(peg$savedPos, peg$currPos);
5023
+ throw peg$buildSimpleError(message, location);
5024
+ }
5025
+ function peg$getUnicode(pos = peg$currPos) {
5026
+ const cp = input.codePointAt(pos);
5027
+ if (cp === undefined) {
5028
+ return "";
5029
+ }
5030
+ return String.fromCodePoint(cp);
5031
+ }
5032
+ function peg$literalExpectation(text, ignoreCase) {
5033
+ return { type: "literal", text, ignoreCase };
5034
+ }
5035
+ function peg$classExpectation(parts, inverted, ignoreCase, unicode) {
5036
+ return { type: "class", parts, inverted, ignoreCase, unicode };
5037
+ }
5038
+ function peg$anyExpectation() {
5039
+ return { type: "any" };
5040
+ }
5041
+ function peg$endExpectation() {
5042
+ return { type: "end" };
5043
+ }
5044
+ function peg$otherExpectation(description) {
5045
+ return { type: "other", description };
5046
+ }
5047
+ function peg$computePosDetails(pos) {
5048
+ let details = peg$posDetailsCache[pos];
5049
+ let p;
5050
+ if (details) {
5051
+ return details;
5052
+ }
5053
+ else {
5054
+ if (pos >= peg$posDetailsCache.length) {
5055
+ p = peg$posDetailsCache.length - 1;
5056
+ }
5057
+ else {
5058
+ p = pos;
5059
+ while (!peg$posDetailsCache[--p]) { }
5060
+ }
5061
+ details = peg$posDetailsCache[p];
5062
+ details = {
5063
+ line: details.line,
5064
+ column: details.column,
5065
+ };
5066
+ while (p < pos) {
5067
+ if (input.charCodeAt(p) === 10) {
5068
+ details.line++;
5069
+ details.column = 1;
5070
+ }
5071
+ else {
5072
+ details.column++;
5073
+ }
5074
+ p++;
5075
+ }
5076
+ peg$posDetailsCache[pos] = details;
5077
+ return details;
5078
+ }
5079
+ }
5080
+ function peg$computeLocation(startPos, endPos, offset) {
5081
+ const startPosDetails = peg$computePosDetails(startPos);
5082
+ const endPosDetails = peg$computePosDetails(endPos);
5083
+ const res = {
5084
+ source: peg$source,
5085
+ start: {
5086
+ offset: startPos,
5087
+ line: startPosDetails.line,
5088
+ column: startPosDetails.column,
5089
+ },
5090
+ end: {
5091
+ offset: endPos,
5092
+ line: endPosDetails.line,
5093
+ column: endPosDetails.column,
5094
+ },
5095
+ };
5096
+ if (offset && peg$source && (typeof peg$source.offset === "function")) {
5097
+ res.start = peg$source.offset(res.start);
5098
+ res.end = peg$source.offset(res.end);
5099
+ }
5100
+ return res;
5101
+ }
5102
+ function peg$fail(expected) {
5103
+ if (peg$currPos < peg$maxFailPos) {
5104
+ return;
5105
+ }
5106
+ if (peg$currPos > peg$maxFailPos) {
5107
+ peg$maxFailPos = peg$currPos;
5108
+ peg$maxFailExpected = [];
5109
+ }
5110
+ peg$maxFailExpected.push(expected);
5111
+ }
5112
+ function peg$buildSimpleError(message, location) {
5113
+ return new peg$SyntaxError(message, null, null, location);
5114
+ }
5115
+ function peg$buildStructuredError(expected, found, location) {
5116
+ return new peg$SyntaxError(peg$SyntaxError.buildMessage(expected, found), expected, found, location);
5117
+ }
5118
+ function peg$parseStart() {
5119
+ let s0;
5120
+ s0 = peg$parseFormula();
5121
+ return s0;
5122
+ }
5123
+ function peg$parseFormula() {
5124
+ let s0, s1, s2, s3;
5125
+ s0 = peg$currPos;
5126
+ s1 = peg$parseFormulaTerm();
5127
+ if (s1 !== peg$FAILED) {
5128
+ s2 = [];
5129
+ s3 = peg$parseJoinComparator();
5130
+ while (s3 !== peg$FAILED) {
5131
+ s2.push(s3);
5132
+ s3 = peg$parseJoinComparator();
5133
+ }
5134
+ peg$savedPos = s0;
5135
+ s0 = peg$f0(s1, s2);
5136
+ }
5137
+ else {
5138
+ peg$currPos = s0;
5139
+ s0 = peg$FAILED;
5140
+ }
5141
+ return s0;
5142
+ }
5143
+ function peg$parseFormulaTerm() {
5144
+ let s0;
5145
+ s0 = peg$parseEnclosedFormula();
5146
+ if (s0 === peg$FAILED) {
5147
+ s0 = peg$parseOpenEqualityCheck();
5148
+ }
5149
+ return s0;
5150
+ }
5151
+ function peg$parseEnclosedFormula() {
5152
+ let s0, s1, s2, s3;
5153
+ s0 = peg$currPos;
5154
+ s1 = peg$parseopenBracket();
5155
+ if (s1 !== peg$FAILED) {
5156
+ s2 = peg$parseFormula();
5157
+ if (s2 !== peg$FAILED) {
5158
+ s3 = peg$parsecloseBracket();
5159
+ if (s3 !== peg$FAILED) {
5160
+ peg$savedPos = s0;
5161
+ s0 = peg$f1(s2);
5162
+ }
5163
+ else {
5164
+ peg$currPos = s0;
5165
+ s0 = peg$FAILED;
5166
+ }
5167
+ }
5168
+ else {
5169
+ peg$currPos = s0;
5170
+ s0 = peg$FAILED;
5171
+ }
5172
+ }
5173
+ else {
5174
+ peg$currPos = s0;
5175
+ s0 = peg$FAILED;
5176
+ }
5177
+ return s0;
5178
+ }
5179
+ function peg$parseJoinComparator() {
5180
+ let s0, s1, s2;
5181
+ s0 = peg$currPos;
5182
+ s1 = peg$parseComparator();
5183
+ if (s1 !== peg$FAILED) {
5184
+ s2 = peg$parseFormulaTerm();
5185
+ if (s2 !== peg$FAILED) {
5186
+ peg$savedPos = s0;
5187
+ s0 = peg$f2(s1, s2);
5188
+ }
5189
+ else {
5190
+ peg$currPos = s0;
5191
+ s0 = peg$FAILED;
5192
+ }
5193
+ }
5194
+ else {
5195
+ peg$currPos = s0;
5196
+ s0 = peg$FAILED;
5197
+ }
5198
+ return s0;
5199
+ }
5200
+ function peg$parseOpenEqualityCheck() {
5201
+ let s0, s1, s2, s3, s4, s5;
5202
+ s0 = peg$currPos;
5203
+ s1 = peg$parseFieldRef();
5204
+ if (s1 !== peg$FAILED) {
5205
+ s2 = peg$parse_();
5206
+ if (s2 === peg$FAILED) {
5207
+ s2 = null;
5208
+ }
5209
+ s3 = peg$parseoperator();
5210
+ if (s3 !== peg$FAILED) {
5211
+ s4 = peg$parse_();
5212
+ if (s4 === peg$FAILED) {
5213
+ s4 = null;
5214
+ }
5215
+ s5 = peg$parseValue();
5216
+ if (s5 !== peg$FAILED) {
5217
+ peg$savedPos = s0;
5218
+ s0 = peg$f3(s1, s3, s5);
5219
+ }
5220
+ else {
5221
+ peg$currPos = s0;
5222
+ s0 = peg$FAILED;
5223
+ }
5224
+ }
5225
+ else {
5226
+ peg$currPos = s0;
5227
+ s0 = peg$FAILED;
5228
+ }
5229
+ }
5230
+ else {
5231
+ peg$currPos = s0;
5232
+ s0 = peg$FAILED;
5233
+ }
5234
+ return s0;
5235
+ }
5236
+ function peg$parseComparator() {
5237
+ let s0, s1, s2, s3;
5238
+ s0 = peg$currPos;
5239
+ s1 = peg$parse_();
5240
+ if (s1 === peg$FAILED) {
5241
+ s1 = null;
5242
+ }
5243
+ if (input.substr(peg$currPos, 3) === peg$c0) {
5244
+ s2 = peg$c0;
5245
+ peg$currPos += 3;
5246
+ }
5247
+ else {
5248
+ s2 = peg$FAILED;
5249
+ if (peg$silentFails === 0) {
5250
+ peg$fail(peg$e0);
5251
+ }
5252
+ }
5253
+ if (s2 !== peg$FAILED) {
5254
+ s3 = peg$parse_();
5255
+ if (s3 === peg$FAILED) {
5256
+ s3 = null;
5257
+ }
5258
+ peg$savedPos = s0;
5259
+ s0 = peg$f4(s2);
5260
+ }
5261
+ else {
5262
+ peg$currPos = s0;
5263
+ s0 = peg$FAILED;
5264
+ }
5265
+ if (s0 === peg$FAILED) {
5266
+ s0 = peg$currPos;
5267
+ s1 = peg$parse_();
5268
+ if (s1 === peg$FAILED) {
5269
+ s1 = null;
5270
+ }
5271
+ if (input.substr(peg$currPos, 2) === peg$c1) {
5272
+ s2 = peg$c1;
5273
+ peg$currPos += 2;
5274
+ }
5275
+ else {
5276
+ s2 = peg$FAILED;
5277
+ if (peg$silentFails === 0) {
5278
+ peg$fail(peg$e1);
5279
+ }
5280
+ }
5281
+ if (s2 !== peg$FAILED) {
5282
+ s3 = peg$parse_();
5283
+ if (s3 === peg$FAILED) {
5284
+ s3 = null;
5285
+ }
5286
+ peg$savedPos = s0;
5287
+ s0 = peg$f5(s2);
5288
+ }
5289
+ else {
5290
+ peg$currPos = s0;
5291
+ s0 = peg$FAILED;
5292
+ }
5293
+ }
5294
+ return s0;
5295
+ }
5296
+ function peg$parseWord() {
5297
+ let s0, s1, s2;
5298
+ s0 = peg$currPos;
5299
+ s1 = [];
5300
+ s2 = peg$parseLetter();
5301
+ if (s2 !== peg$FAILED) {
5302
+ while (s2 !== peg$FAILED) {
5303
+ s1.push(s2);
5304
+ s2 = peg$parseLetter();
5305
+ }
5306
+ }
5307
+ else {
5308
+ s1 = peg$FAILED;
5309
+ }
5310
+ if (s1 !== peg$FAILED) {
5311
+ peg$savedPos = s0;
5312
+ s1 = peg$f6(s1);
5313
+ }
5314
+ s0 = s1;
5315
+ return s0;
5316
+ }
5317
+ function peg$parseLetter() {
5318
+ let s0;
5319
+ s0 = input.charAt(peg$currPos);
5320
+ if (peg$r0.test(s0)) {
5321
+ peg$currPos++;
5322
+ }
5323
+ else {
5324
+ s0 = peg$FAILED;
5325
+ if (peg$silentFails === 0) {
5326
+ peg$fail(peg$e2);
5327
+ }
5328
+ }
5329
+ return s0;
5330
+ }
5331
+ function peg$parseValue() {
5332
+ let s0, s1;
5333
+ s0 = peg$parsequotedValue();
5334
+ if (s0 === peg$FAILED) {
5335
+ s0 = peg$currPos;
5336
+ s1 = peg$parseWord();
5337
+ if (s1 !== peg$FAILED) {
5338
+ peg$savedPos = s0;
5339
+ s1 = peg$f7(s1);
5340
+ }
5341
+ s0 = s1;
5342
+ if (s0 === peg$FAILED) {
5343
+ s0 = peg$currPos;
5344
+ s1 = peg$parsenumber();
5345
+ if (s1 !== peg$FAILED) {
5346
+ peg$savedPos = s0;
5347
+ s1 = peg$f8(s1);
5348
+ }
5349
+ s0 = s1;
5350
+ }
5351
+ }
5352
+ return s0;
5353
+ }
5354
+ function peg$parseFieldRef() {
5355
+ let s0;
5356
+ s0 = peg$parseFieldReference();
5357
+ if (s0 === peg$FAILED) {
5358
+ s0 = peg$parseMetadataFieldReference();
5359
+ }
5360
+ return s0;
5361
+ }
5362
+ function peg$parseMetadataFieldReference() {
5363
+ let s0, s1, s2, s3;
5364
+ s0 = peg$currPos;
5365
+ s1 = peg$parseopenSquare();
5366
+ if (s1 !== peg$FAILED) {
5367
+ s2 = peg$parseFieldReference();
5368
+ if (s2 !== peg$FAILED) {
5369
+ s3 = peg$parsecloseSquare();
5370
+ if (s3 !== peg$FAILED) {
5371
+ peg$savedPos = s0;
5372
+ s0 = peg$f9(s1, s2, s3);
5373
+ }
5374
+ else {
5375
+ peg$currPos = s0;
5376
+ s0 = peg$FAILED;
5377
+ }
5378
+ }
5379
+ else {
5380
+ peg$currPos = s0;
5381
+ s0 = peg$FAILED;
5382
+ }
5383
+ }
5384
+ else {
5385
+ peg$currPos = s0;
5386
+ s0 = peg$FAILED;
5387
+ }
5388
+ return s0;
5389
+ }
5390
+ function peg$parseFieldReference() {
5391
+ let s0, s1, s2;
5392
+ s0 = peg$currPos;
5393
+ s1 = [];
5394
+ s2 = input.charAt(peg$currPos);
5395
+ if (peg$r1.test(s2)) {
5396
+ peg$currPos++;
5397
+ }
5398
+ else {
5399
+ s2 = peg$FAILED;
5400
+ if (peg$silentFails === 0) {
5401
+ peg$fail(peg$e3);
5402
+ }
5403
+ }
5404
+ if (s2 !== peg$FAILED) {
5405
+ while (s2 !== peg$FAILED) {
5406
+ s1.push(s2);
5407
+ s2 = input.charAt(peg$currPos);
5408
+ if (peg$r1.test(s2)) {
5409
+ peg$currPos++;
5410
+ }
5411
+ else {
5412
+ s2 = peg$FAILED;
5413
+ if (peg$silentFails === 0) {
5414
+ peg$fail(peg$e3);
5415
+ }
5416
+ }
5417
+ }
5418
+ }
5419
+ else {
5420
+ s1 = peg$FAILED;
5421
+ }
5422
+ if (s1 !== peg$FAILED) {
5423
+ peg$savedPos = s0;
5424
+ s1 = peg$f10(s1);
5425
+ }
5426
+ s0 = s1;
5427
+ return s0;
5428
+ }
5429
+ function peg$parseopenSquare() {
5430
+ let s0;
5431
+ if (input.charCodeAt(peg$currPos) === 91) {
5432
+ s0 = peg$c2;
5433
+ peg$currPos++;
5434
+ }
5435
+ else {
5436
+ s0 = peg$FAILED;
5437
+ if (peg$silentFails === 0) {
5438
+ peg$fail(peg$e4);
5439
+ }
5440
+ }
5441
+ return s0;
5442
+ }
5443
+ function peg$parsecloseSquare() {
5444
+ let s0;
5445
+ if (input.charCodeAt(peg$currPos) === 93) {
5446
+ s0 = peg$c3;
5447
+ peg$currPos++;
5448
+ }
5449
+ else {
5450
+ s0 = peg$FAILED;
5451
+ if (peg$silentFails === 0) {
5452
+ peg$fail(peg$e5);
5453
+ }
5454
+ }
5455
+ return s0;
5456
+ }
5457
+ function peg$parsenumber() {
5458
+ let s0, s1;
5459
+ s0 = [];
5460
+ s1 = input.charAt(peg$currPos);
5461
+ if (peg$r2.test(s1)) {
5462
+ peg$currPos++;
5463
+ }
5464
+ else {
5465
+ s1 = peg$FAILED;
5466
+ if (peg$silentFails === 0) {
5467
+ peg$fail(peg$e6);
5468
+ }
5469
+ }
5470
+ if (s1 !== peg$FAILED) {
5471
+ while (s1 !== peg$FAILED) {
5472
+ s0.push(s1);
5473
+ s1 = input.charAt(peg$currPos);
5474
+ if (peg$r2.test(s1)) {
5475
+ peg$currPos++;
5476
+ }
5477
+ else {
5478
+ s1 = peg$FAILED;
5479
+ if (peg$silentFails === 0) {
5480
+ peg$fail(peg$e6);
5481
+ }
5482
+ }
5483
+ }
5484
+ }
5485
+ else {
5486
+ s0 = peg$FAILED;
5487
+ }
5488
+ return s0;
5489
+ }
5490
+ function peg$parsequotedValue() {
5491
+ let s0, s1, s2, s3;
5492
+ s0 = peg$currPos;
5493
+ if (input.charCodeAt(peg$currPos) === 34) {
5494
+ s1 = peg$c4;
5495
+ peg$currPos++;
5496
+ }
5497
+ else {
5498
+ s1 = peg$FAILED;
5499
+ if (peg$silentFails === 0) {
5500
+ peg$fail(peg$e7);
5501
+ }
5502
+ }
5503
+ if (s1 !== peg$FAILED) {
5504
+ s2 = [];
5505
+ s3 = input.charAt(peg$currPos);
5506
+ if (peg$r3.test(s3)) {
5507
+ peg$currPos++;
5508
+ }
5509
+ else {
5510
+ s3 = peg$FAILED;
5511
+ if (peg$silentFails === 0) {
5512
+ peg$fail(peg$e8);
5513
+ }
5514
+ }
5515
+ while (s3 !== peg$FAILED) {
5516
+ s2.push(s3);
5517
+ s3 = input.charAt(peg$currPos);
5518
+ if (peg$r3.test(s3)) {
5519
+ peg$currPos++;
5520
+ }
5521
+ else {
5522
+ s3 = peg$FAILED;
5523
+ if (peg$silentFails === 0) {
5524
+ peg$fail(peg$e8);
5525
+ }
5526
+ }
5527
+ }
5528
+ if (input.charCodeAt(peg$currPos) === 34) {
5529
+ s3 = peg$c4;
5530
+ peg$currPos++;
5531
+ }
5532
+ else {
5533
+ s3 = peg$FAILED;
5534
+ if (peg$silentFails === 0) {
5535
+ peg$fail(peg$e7);
5536
+ }
5537
+ }
5538
+ if (s3 !== peg$FAILED) {
5539
+ peg$savedPos = s0;
5540
+ s0 = peg$f11(s2);
5541
+ }
5542
+ else {
5543
+ peg$currPos = s0;
5544
+ s0 = peg$FAILED;
5545
+ }
5546
+ }
5547
+ else {
5548
+ peg$currPos = s0;
5549
+ s0 = peg$FAILED;
5550
+ }
5551
+ return s0;
5552
+ }
5553
+ function peg$parseopenBracket() {
5554
+ let s0, s1, s2, s3;
5555
+ s0 = peg$currPos;
5556
+ s1 = peg$parse_();
5557
+ if (s1 === peg$FAILED) {
5558
+ s1 = null;
5559
+ }
5560
+ if (input.charCodeAt(peg$currPos) === 40) {
5561
+ s2 = peg$c5;
5562
+ peg$currPos++;
5563
+ }
5564
+ else {
5565
+ s2 = peg$FAILED;
5566
+ if (peg$silentFails === 0) {
5567
+ peg$fail(peg$e9);
5568
+ }
5569
+ }
5570
+ if (s2 !== peg$FAILED) {
5571
+ s3 = peg$parse_();
5572
+ if (s3 === peg$FAILED) {
5573
+ s3 = null;
5574
+ }
5575
+ s1 = [s1, s2, s3];
5576
+ s0 = s1;
5577
+ }
5578
+ else {
5579
+ peg$currPos = s0;
5580
+ s0 = peg$FAILED;
5581
+ }
5582
+ return s0;
5583
+ }
5584
+ function peg$parsecloseBracket() {
5585
+ let s0, s1, s2, s3;
5586
+ s0 = peg$currPos;
5587
+ s1 = peg$parse_();
5588
+ if (s1 === peg$FAILED) {
5589
+ s1 = null;
5590
+ }
5591
+ if (input.charCodeAt(peg$currPos) === 41) {
5592
+ s2 = peg$c6;
5593
+ peg$currPos++;
5594
+ }
5595
+ else {
5596
+ s2 = peg$FAILED;
5597
+ if (peg$silentFails === 0) {
5598
+ peg$fail(peg$e10);
5599
+ }
5600
+ }
5601
+ if (s2 !== peg$FAILED) {
5602
+ s3 = peg$parse_();
5603
+ if (s3 === peg$FAILED) {
5604
+ s3 = null;
5605
+ }
5606
+ s1 = [s1, s2, s3];
5607
+ s0 = s1;
5608
+ }
5609
+ else {
5610
+ peg$currPos = s0;
5611
+ s0 = peg$FAILED;
5612
+ }
5613
+ return s0;
5614
+ }
5615
+ function peg$parseoperator() {
5616
+ let s0;
5617
+ if (input.charCodeAt(peg$currPos) === 61) {
5618
+ s0 = peg$c7;
5619
+ peg$currPos++;
5620
+ }
5621
+ else {
5622
+ s0 = peg$FAILED;
5623
+ if (peg$silentFails === 0) {
5624
+ peg$fail(peg$e11);
5625
+ }
5626
+ }
5627
+ if (s0 === peg$FAILED) {
5628
+ if (input.substr(peg$currPos, 2) === peg$c8) {
5629
+ s0 = peg$c8;
5630
+ peg$currPos += 2;
5631
+ }
5632
+ else {
5633
+ s0 = peg$FAILED;
5634
+ if (peg$silentFails === 0) {
5635
+ peg$fail(peg$e12);
5636
+ }
5637
+ }
5638
+ if (s0 === peg$FAILED) {
5639
+ if (input.substr(peg$currPos, 8) === peg$c9) {
5640
+ s0 = peg$c9;
5641
+ peg$currPos += 8;
5642
+ }
5643
+ else {
5644
+ s0 = peg$FAILED;
5645
+ if (peg$silentFails === 0) {
5646
+ peg$fail(peg$e13);
5647
+ }
5648
+ }
5649
+ }
5650
+ }
5651
+ return s0;
5652
+ }
5653
+ function peg$parsews() {
5654
+ let s0, s1;
5655
+ peg$silentFails++;
5656
+ s0 = input.charAt(peg$currPos);
5657
+ if (peg$r4.test(s0)) {
5658
+ peg$currPos++;
5659
+ }
5660
+ else {
5661
+ s0 = peg$FAILED;
5662
+ if (peg$silentFails === 0) {
5663
+ peg$fail(peg$e15);
5664
+ }
5665
+ }
5666
+ peg$silentFails--;
5667
+ if (s0 === peg$FAILED) {
5668
+ s1 = peg$FAILED;
5669
+ if (peg$silentFails === 0) {
5670
+ peg$fail(peg$e14);
5671
+ }
5672
+ }
5673
+ return s0;
5674
+ }
5675
+ function peg$parse_() {
5676
+ let s0, s1;
5677
+ peg$silentFails++;
5678
+ s0 = [];
5679
+ s1 = peg$parsews();
5680
+ if (s1 !== peg$FAILED) {
5681
+ while (s1 !== peg$FAILED) {
5682
+ s0.push(s1);
5683
+ s1 = peg$parsews();
5684
+ }
5685
+ }
5686
+ else {
5687
+ s0 = peg$FAILED;
5688
+ }
5689
+ peg$silentFails--;
5690
+ if (s0 === peg$FAILED) {
5691
+ s1 = peg$FAILED;
5692
+ if (peg$silentFails === 0) {
5693
+ peg$fail(peg$e16);
5694
+ }
5695
+ }
5696
+ return s0;
5697
+ }
4783
5698
  function flat(arr, depth = 1) {
4784
- var flatten = function (arr, depth = 1) {
4785
- if (depth) return arr;
4786
-
4787
- // Otherwise, concatenate into the parent array
4788
- return arr.reduce(function (acc, val) {
4789
- return acc.concat(Array.isArray(val) ? flatten(val, depth - 1) : val);
4790
- }, []);
4791
-
4792
- };
4793
-
4794
- return flatten(arr, depth - 1);
5699
+ var flatten = function (arr, depth = 1) {
5700
+ if (depth)
5701
+ return arr;
5702
+ // Otherwise, concatenate into the parent array
5703
+ return arr.reduce(function (acc, val) {
5704
+ return acc.concat(Array.isArray(val) ? flatten(val, depth - 1) : val);
5705
+ }, []);
5706
+ };
5707
+ return flatten(arr, depth - 1);
5708
+ }
5709
+ peg$result = peg$startRuleFunction();
5710
+ const peg$success = (peg$result !== peg$FAILED && peg$currPos === input.length);
5711
+ function peg$throw() {
5712
+ if (peg$result !== peg$FAILED && peg$currPos < input.length) {
5713
+ peg$fail(peg$endExpectation());
5714
+ }
5715
+ throw peg$buildStructuredError(peg$maxFailExpected, peg$maxFailPos < input.length ? peg$getUnicode(peg$maxFailPos) : null, peg$maxFailPos < input.length
5716
+ ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1)
5717
+ : peg$computeLocation(peg$maxFailPos, peg$maxFailPos));
5718
+ }
5719
+ if (options.peg$library) {
5720
+ return /** @type {any} */ ({
5721
+ peg$result,
5722
+ peg$currPos,
5723
+ peg$FAILED,
5724
+ peg$maxFailExpected,
5725
+ peg$maxFailPos,
5726
+ peg$success,
5727
+ peg$throw: peg$success ? undefined : peg$throw,
5728
+ });
4795
5729
  }
4796
- }
4797
-
4798
- Start
4799
- = Formula
4800
-
4801
- Formula
4802
- = EnclosedFormula
4803
- / OpenFormula
4804
-
4805
- EnclosedFormula
4806
- = bracket formula:OpenFormula bracket join:(JoinComparator)*
4807
- { return flat([ [formula], join[0] ], 1) }
4808
-
4809
- OpenFormula
4810
- = eq:OpenEqualityCheck joins:(JoinComparator)*
4811
- { return flat([ eq, flat(joins) ]) }
4812
-
4813
- JoinComparator
4814
- = comp:Comparator eq:OpenEqualityCheck
4815
- { return [comp, eq]; }
4816
- / CompoundJoinComparator
4817
-
4818
- CompoundJoinComparator
4819
- = comp:Comparator bracket f:OpenFormula bracket
4820
- { return [comp, f ] }
4821
-
4822
- OpenEqualityCheck
4823
- = fr:FieldRef _? op:operator _? val:Value
4824
- { return { fieldReference: fr, comparator: op, value: val } }
4825
-
4826
- Comparator
4827
- = _? c:'AND' _?
4828
- { return c; }
4829
- / _? c:'OR' _?
4830
- { return c; }
4831
-
4832
- Word
4833
- = l:Letter+
4834
- { return l.join(""); }
4835
-
4836
- Letter
4837
- = [a-zA-Z]
4838
-
4839
- Value
4840
- = v:quotedValue / v:Word
4841
- { return v.join("") }
4842
- / v:number
4843
- { return parseInt(v.join("")) }
4844
-
4845
- FieldRef
4846
- = FieldReference / MetadataFieldReference
4847
-
4848
- MetadataFieldReference
4849
- = s1:openSquare fr:FieldReference s2:closeSquare
4850
- { return s1 + fr + s2 }
4851
-
4852
- FieldReference
4853
- = characters:[A-Za-z0-9._-]+ { return characters.join(""); }
4854
-
4855
- openSquare
4856
- = "["
4857
-
4858
- closeSquare
4859
- = "]"
4860
-
4861
- number
4862
- = [0-9]+
4863
-
4864
- quotedValue
4865
- = '"'val:[A-Za-z0-9.,* _&()/-]*'"'
4866
- { return val.join(""); }
4867
-
4868
- bracket
4869
- = (_? "("+ _? / _? ")"+ _? )
4870
-
4871
- operator
4872
- = "=" / "!=" / "CONTAINS"
4873
-
4874
- ws "Whitespace"
4875
- = [ \t]
4876
-
4877
- _ "One or more whitespaces"
4878
- = ws+
5730
+ if (peg$success) {
5731
+ return peg$result;
5732
+ }
5733
+ else {
5734
+ peg$throw();
5735
+ }
5736
+ }
5737
+ const peg$allowedStartRules = [
5738
+ "Start"
5739
+ ];
4879
5740
 
4880
- nl "New line"
4881
- = "\\n"`;
4882
- var peg = generate(conditionSource);
5741
+ var parser = /*#__PURE__*/Object.freeze({
5742
+ __proto__: null,
5743
+ StartRules: peg$allowedStartRules,
5744
+ SyntaxError: peg$SyntaxError,
5745
+ parse: peg$parse
5746
+ });
4883
5747
 
4884
5748
  class ConditionParser {
4885
5749
  static logger = new StructuredLoggerService();
@@ -4893,7 +5757,7 @@ class ConditionParser {
4893
5757
  return null;
4894
5758
  }
4895
5759
  condition = condition.replace(/CONTAINS/g, ' CONTAINS');
4896
- return peg.parse(condition.trim(), {});
5760
+ return parser.parse(condition.trim(), {});
4897
5761
  }
4898
5762
  /**
4899
5763
  * Evaluate the current fields against the conditions
@@ -7042,6 +7906,7 @@ class LabelSubstitutorModule {
7042
7906
  static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
7043
7907
  FieldsUtils,
7044
7908
  CurrencyPipe,
7909
+ PlaceholderService
7045
7910
  ] });
7046
7911
  }
7047
7912
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LabelSubstitutorModule, [{
@@ -7056,6 +7921,7 @@ class LabelSubstitutorModule {
7056
7921
  providers: [
7057
7922
  FieldsUtils,
7058
7923
  CurrencyPipe,
7924
+ PlaceholderService
7059
7925
  ]
7060
7926
  }]
7061
7927
  }], null, null); })();
@@ -8104,6 +8970,9 @@ class RequestOptionsBuilder {
8104
8970
  * @param value The value to be assessed.
8105
8971
  */
8106
8972
  static includeParam(value) {
8973
+ if (Array.isArray(value)) {
8974
+ return value.some(item => RequestOptionsBuilder.includeParam(item));
8975
+ }
8107
8976
  /* istanbul ignore else */
8108
8977
  if (value) {
8109
8978
  /* istanbul ignore else */
@@ -8114,6 +8983,36 @@ class RequestOptionsBuilder {
8114
8983
  }
8115
8984
  return false;
8116
8985
  }
8986
+ static sanitiseValue(value) {
8987
+ const trimmedValue = value.trim ? value.trim() : value;
8988
+ return trimmedValue.replace ? trimmedValue.replace(/’/i, `'`) : trimmedValue;
8989
+ }
8990
+ static getValueByPath(value, path) {
8991
+ return path.split('.').reduce((currentValue, pathPart) => {
8992
+ if (currentValue === undefined || currentValue === null) {
8993
+ return undefined;
8994
+ }
8995
+ return currentValue[pathPart];
8996
+ }, value);
8997
+ }
8998
+ static getCollectionValues(value, criterion) {
8999
+ if (!Array.isArray(value) ||
9000
+ !criterion.includes('.value.') ||
9001
+ value.some(item => item === null || typeof item !== 'object' || !Object.hasOwn(item, 'value'))) {
9002
+ return value;
9003
+ }
9004
+ const valuePath = criterion.substring(criterion.indexOf('.value.') + 1);
9005
+ return value.map(item => RequestOptionsBuilder.getValueByPath(item, valuePath));
9006
+ }
9007
+ static appendParam(params, key, value) {
9008
+ if (Array.isArray(value)) {
9009
+ const values = value
9010
+ .filter(item => RequestOptionsBuilder.includeParam(item))
9011
+ .map(item => RequestOptionsBuilder.sanitiseValue(item));
9012
+ return params.set(key, `[${values.join(', ')}]`);
9013
+ }
9014
+ return params.set(key, RequestOptionsBuilder.sanitiseValue(value));
9015
+ }
8117
9016
  buildOptions(metaCriteria, caseCriteria, view) {
8118
9017
  // TODO: This should probably be the now built-in URLSearchParams but it
8119
9018
  // requires a bigger refactor and there are bigger fish to fry right now.
@@ -8138,8 +9037,7 @@ class RequestOptionsBuilder {
8138
9037
  /* istanbul ignore else */
8139
9038
  if (RequestOptionsBuilder.includeParam(caseCriteria[criterion])) {
8140
9039
  const key = RequestOptionsBuilder.FIELD_PREFIX + criterion;
8141
- const value = caseCriteria[criterion].trim ? caseCriteria[criterion].trim() : caseCriteria[criterion];
8142
- params = params.set(key, value.replace(/’/i, `'`));
9040
+ params = RequestOptionsBuilder.appendParam(params, key, RequestOptionsBuilder.getCollectionValues(caseCriteria[criterion], criterion));
8143
9041
  }
8144
9042
  }
8145
9043
  }
@@ -8652,31 +9550,32 @@ class CaseAccessUtils {
8652
9550
  static CTSC_ROLE = 'ctsc';
8653
9551
  static CTSC_ROLE_CATEGORY = 'CTSC';
8654
9552
  static CTSC_ROLE_NAME = 'ctsc';
8655
- getMappedRoleCategory(roles = [], roleCategories = []) {
9553
+ // fallback purely if roleCategories is not available in
9554
+ getMappedRoleCategories(roles = []) {
8656
9555
  const roleKeywords = roles.join().split('-').join().split(',');
8657
- if (this.roleOrCategoryExists(CaseAccessUtils.JUDGE_ROLE, CaseAccessUtils.JUDGE_ROLE_CATEGORY, roleKeywords, roleCategories)) {
8658
- return CaseAccessUtils.JUDGE_ROLE_CATEGORY;
9556
+ const roleCategoryList = [];
9557
+ if (this.roleHasKeyword(CaseAccessUtils.JUDGE_ROLE, roleKeywords)) {
9558
+ roleCategoryList.push(CaseAccessUtils.JUDGE_ROLE_CATEGORY);
8659
9559
  }
8660
- else if (this.roleOrCategoryExists(CaseAccessUtils.PROFESSIONAL_ROLE, CaseAccessUtils.PROFESSIONAL_ROLE_CATEGORY, roleKeywords, roleCategories)) {
8661
- return CaseAccessUtils.PROFESSIONAL_ROLE_CATEGORY;
9560
+ if (this.roleHasKeyword(CaseAccessUtils.PROFESSIONAL_ROLE, roleKeywords)) {
9561
+ roleCategoryList.push(CaseAccessUtils.PROFESSIONAL_ROLE_CATEGORY);
8662
9562
  }
8663
- else if (this.roleOrCategoryExists(CaseAccessUtils.CITIZEN_ROLE, CaseAccessUtils.CITIZEN_ROLE_CATEGORY, roleKeywords, roleCategories)) {
8664
- return CaseAccessUtils.CITIZEN_ROLE_CATEGORY;
9563
+ if (this.roleHasKeyword(CaseAccessUtils.CITIZEN_ROLE, roleKeywords)) {
9564
+ roleCategoryList.push(CaseAccessUtils.CITIZEN_ROLE_CATEGORY);
8665
9565
  }
8666
- else if (this.roleOrCategoryExists(CaseAccessUtils.ADMIN_ROLE, CaseAccessUtils.ADMIN_ROLE_CATEGORY, roleKeywords, roleCategories)) {
8667
- return CaseAccessUtils.ADMIN_ROLE_CATEGORY;
9566
+ if (this.roleHasKeyword(CaseAccessUtils.ADMIN_ROLE, roleKeywords)) {
9567
+ roleCategoryList.push(CaseAccessUtils.ADMIN_ROLE_CATEGORY);
8668
9568
  }
8669
- else if (this.roleOrCategoryExists(CaseAccessUtils.CTSC_ROLE, CaseAccessUtils.CTSC_ROLE_CATEGORY, roleKeywords, roleCategories)) {
8670
- return CaseAccessUtils.CTSC_ROLE_CATEGORY;
9569
+ if (this.roleHasKeyword(CaseAccessUtils.CTSC_ROLE, roleKeywords)) {
9570
+ roleCategoryList.push(CaseAccessUtils.CTSC_ROLE_CATEGORY);
8671
9571
  }
8672
- else {
8673
- return CaseAccessUtils.LEGAL_OPERATIONS_ROLE_CATEGORY;
9572
+ if (this.roleHasKeyword(CaseAccessUtils.LEGAL_OPERATIONS_ROLE, roleKeywords)) {
9573
+ roleCategoryList.push(CaseAccessUtils.LEGAL_OPERATIONS_ROLE_CATEGORY);
8674
9574
  }
9575
+ return roleCategoryList;
8675
9576
  }
8676
- roleOrCategoryExists(roleKeyword, roleCategory, roleKeywords, roleCategories) {
8677
- const categoryExists = roleCategories.indexOf(roleCategory) > -1;
8678
- const keywordExists = roleKeywords.indexOf(roleKeyword) > -1;
8679
- return categoryExists ? categoryExists : keywordExists;
9577
+ roleHasKeyword(keyword, roleWords) {
9578
+ return roleWords.includes(keyword);
8680
9579
  }
8681
9580
  getAMRoleName(accessType, aMRole) {
8682
9581
  let roleName = '';
@@ -9106,10 +10005,10 @@ class CaseworkerService {
9106
10005
  this.appConfig = appConfig;
9107
10006
  this.errorService = errorService;
9108
10007
  }
9109
- getCaseworkers(serviceId) {
9110
- const url = `${this.appConfig.getWorkAllocationApiUrl()}/caseworker/getUsersByServiceName`;
10008
+ getUserByIdamId(idamId) {
10009
+ const url = `${this.appConfig.getWorkAllocationApiUrl()}/caseworker/getUserByIdamId`;
9111
10010
  return this.http
9112
- .post(url, { services: [serviceId] })
10011
+ .post(url, idamId)
9113
10012
  .pipe(catchError(error => {
9114
10013
  this.errorService.setError(error);
9115
10014
  return throwError(error);
@@ -9960,8 +10859,10 @@ class CaseEditComponent {
9960
10859
  return form.value.event.id;
9961
10860
  }
9962
10861
  generateCaseEventData({ eventTrigger, form }) {
10862
+ const formData = this.replaceHiddenFormValuesWithOriginalCaseData(form.get('data'), eventTrigger.case_fields);
10863
+ this.formValueService.sanitiseDynamicLists(eventTrigger.case_fields, { data: formData });
9963
10864
  const caseEventData = {
9964
- data: this.replaceEmptyComplexFieldValues(this.formValueService.sanitise(this.replaceHiddenFormValuesWithOriginalCaseData(form.get('data'), eventTrigger.case_fields), this.isCaseFlagSubmission)),
10865
+ data: this.replaceEmptyComplexFieldValues(this.formValueService.sanitise(formData, this.isCaseFlagSubmission)),
9965
10866
  event: form.value.event
9966
10867
  };
9967
10868
  this.formValueService.clearNonCaseFields(caseEventData.data, eventTrigger.case_fields);
@@ -10561,30 +11462,35 @@ class CasesService {
10561
11462
  }
10562
11463
  createChallengedAccessRequest(caseId, request) {
10563
11464
  // Assignment API endpoint
10564
- const userInfoStr = this.sessionStorageService.getItem('userDetails');
10565
11465
  const camUtils = new CaseAccessUtils();
10566
- let userInfo;
10567
- if (userInfoStr) {
10568
- userInfo = JSON.parse(userInfoStr);
10569
- }
10570
- const roleCategory = userInfo.roleCategory || camUtils.getMappedRoleCategory(userInfo.roles, userInfo.roleCategories);
10571
- const roleName = camUtils.getAMRoleName('challenged', roleCategory);
11466
+ let userInfo = getUserDetails(this.sessionStorageService);
11467
+ if (!userInfo) {
11468
+ return throwError(() => new Error('User info not found in session storage'));
11469
+ }
11470
+ // EXUI-4758 - getMappedRoleCategories no longer returns a single string, checks all roles to get the most likely roleCategory
11471
+ // Unsure whether we should be using mapped role categories any more - should trust the roleCategories from userInfo if they exist
11472
+ const roleCategories = userInfo.roleCategories || camUtils.getMappedRoleCategories(userInfo.roles);
11473
+ // If user has no role categories, default to LEGAL_OPERATIONS
11474
+ const roleName = camUtils.getAMRoleName('challenged', roleCategories?.length > 0 ? roleCategories[0] : "LEGAL_OPERATIONS");
10572
11475
  const beginTime = new Date();
10573
11476
  const endTime = new Date(new Date().setUTCHours(23, 59, 59, 999));
10574
11477
  const id = userInfo.id ? userInfo.id : userInfo.uid;
10575
11478
  const isNew = true;
10576
- const payload = camUtils.getAMPayload(id, id, roleName, roleCategory, 'CHALLENGED', caseId, request, beginTime, endTime, isNew);
11479
+ const payload = camUtils.getAMPayload(id, id, roleName,
11480
+ // EXUI-4758 - Return first roleCategory as the roleCategory
11481
+ roleCategories[0], 'CHALLENGED', caseId, request, beginTime, endTime, isNew);
10577
11482
  return this.http.post(`/api/challenged-access-request`, payload);
10578
11483
  }
10579
11484
  createSpecificAccessRequest(caseId, sar) {
10580
- // Assignment API endpoint
10581
- const userInfoStr = this.sessionStorageService.getItem('userDetails');
10582
11485
  const camUtils = new CaseAccessUtils();
10583
- let userInfo;
10584
- if (userInfoStr) {
10585
- userInfo = JSON.parse(userInfoStr);
10586
- }
10587
- const roleCategory = userInfo.roleCategory || camUtils.getMappedRoleCategory(userInfo.roles, userInfo.roleCategories);
11486
+ let userInfo = getUserDetails(this.sessionStorageService);
11487
+ if (!userInfo) {
11488
+ return throwError(() => new Error('User info not found in session storage'));
11489
+ }
11490
+ // EXUI-4758 - See above comment
11491
+ const roleCategories = userInfo.roleCategories || camUtils.getMappedRoleCategories(userInfo.roles);
11492
+ // EXUI-4758 - Return first roleCategory as the roleCategory for now, unless not present, in which case default to LEGAL_OPERATIONS
11493
+ const roleCategory = roleCategories?.length > 0 ? roleCategories[0] : "LEGAL_OPERATIONS";
10588
11494
  const roleName = camUtils.getAMRoleName('specific', roleCategory);
10589
11495
  const id = userInfo.id ? userInfo.id : userInfo.uid;
10590
11496
  const payload = camUtils.getAMPayload(null, id, roleName, roleCategory, 'SPECIFIC', caseId, sar, null, null, true);
@@ -11541,6 +12447,8 @@ class CaseEditPageComponent {
11541
12447
  saveDraftSub;
11542
12448
  caseFormValidationErrorsSub;
11543
12449
  logger = new StructuredLoggerService();
12450
+ fieldsUtils = new FieldsUtils();
12451
+ placeholderService = new PlaceholderService();
11544
12452
  caseEditFormComponents;
11545
12453
  static scrollToTop() {
11546
12454
  window.scrollTo(0, 0);
@@ -11705,7 +12613,7 @@ class CaseEditPageComponent {
11705
12613
  ? group.get(`${casefield.id}_judicialUserControl`)
11706
12614
  : group.get(casefield.id);
11707
12615
  if (fieldElement) {
11708
- const label = casefield.label || 'Field';
12616
+ const label = this.getInterpolatedFieldLabel(casefield);
11709
12617
  let id = casefield.id;
11710
12618
  if (fieldElement['component'] && (fieldElement['component'].parent || sourceFromComplexField)) {
11711
12619
  if (fieldElement['component'].idPrefix.indexOf(`_${id}_`) === -1) {
@@ -11770,7 +12678,7 @@ class CaseEditPageComponent {
11770
12678
  });
11771
12679
  }
11772
12680
  else {
11773
- this.validationErrors.push({ id, message: `Select or fill the required ${casefield.label} field` });
12681
+ this.validationErrors.push({ id, message: `Select or fill the required ${label} field` });
11774
12682
  fieldElement.markAsDirty();
11775
12683
  }
11776
12684
  }
@@ -12178,7 +13086,20 @@ class CaseEditPageComponent {
12178
13086
  });
12179
13087
  }
12180
13088
  getRpxTranslatePipeArgs(fieldLabel) {
12181
- return fieldLabel ? ({ FIELDLABEL: fieldLabel }) : null;
13089
+ return fieldLabel ? ({ FIELDLABEL: this.resolveLabelPlaceholders(fieldLabel) }) : null;
13090
+ }
13091
+ getInterpolatedFieldLabel(caseField) {
13092
+ const label = caseField.label || 'Field';
13093
+ return this.resolveLabelPlaceholders(label);
13094
+ }
13095
+ resolveLabelPlaceholders(label) {
13096
+ const dataControl = this.editForm?.controls?.['data'];
13097
+ const formFields = dataControl && typeof dataControl.getRawValue === 'function'
13098
+ ? dataControl.getRawValue()
13099
+ : {};
13100
+ const contextFields = this.caseFields?.length ? this.caseFields : this.eventTrigger?.case_fields || [];
13101
+ const fields = this.fieldsUtils.mergeLabelCaseFieldsAndFormFields(contextFields, formFields);
13102
+ return this.placeholderService.resolvePlaceholders(fields, label);
12182
13103
  }
12183
13104
  onEventCanBeCompleted(eventCanBeCompleted) {
12184
13105
  this.caseEdit.onEventCanBeCompleted({
@@ -12238,7 +13159,7 @@ class CaseEditPageComponent {
12238
13159
  type: ViewChildren,
12239
13160
  args: [CaseEditFormComponent]
12240
13161
  }] }); })();
12241
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEditPageComponent, { className: "CaseEditPageComponent", filePath: "lib/shared/components/case-editor/case-edit-page/case-edit-page.component.ts", lineNumber: 37 }); })();
13162
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEditPageComponent, { className: "CaseEditPageComponent", filePath: "lib/shared/components/case-editor/case-edit-page/case-edit-page.component.ts", lineNumber: 38 }); })();
12242
13163
 
12243
13164
  class CallbackErrorsContext {
12244
13165
  triggerText;
@@ -12517,7 +13438,7 @@ class CaseEventCompletionComponent {
12517
13438
  }] }); })();
12518
13439
  (() => { (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
13440
 
12520
- const _c0$12 = (a0, a1, a2) => ["/", "cases", "case-details", a0, a1, a2, "tasks"];
13441
+ const _c0$$ = (a0, a1, a2) => ["/", "cases", "case-details", a0, a1, a2, "tasks"];
12521
13442
  class CaseEventCompletionTaskCancelledComponent {
12522
13443
  context;
12523
13444
  notifyEventCompletionCancelled = new EventEmitter();
@@ -12586,7 +13507,7 @@ class CaseEventCompletionTaskCancelledComponent {
12586
13507
  i0.ɵɵadvance(4);
12587
13508
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(27, 21, "Continue"), " ");
12588
13509
  i0.ɵɵadvance(2);
12589
- i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction3(25, _c0$12, ctx.jurisdiction, ctx.caseType, ctx.caseId));
13510
+ i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction3(25, _c0$$, ctx.jurisdiction, ctx.caseType, ctx.caseId));
12590
13511
  i0.ɵɵadvance();
12591
13512
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(30, 23, "Cancel"), " ");
12592
13513
  } }, dependencies: [i1$1.RouterLink, i1.RpxTranslatePipe], encapsulation: 2 });
@@ -12601,7 +13522,7 @@ class CaseEventCompletionTaskCancelledComponent {
12601
13522
  }] }); })();
12602
13523
  (() => { (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
13524
 
12604
- const _c0$11 = (a0, a1, a2) => ["/", "cases", "case-details", a0, a1, a2, "tasks"];
13525
+ const _c0$_ = (a0, a1, a2) => ["/", "cases", "case-details", a0, a1, a2, "tasks"];
12605
13526
  function CaseEventCompletionTaskReassignedComponent_div_0_Template(rf, ctx) { if (rf & 1) {
12606
13527
  const _r1 = i0.ɵɵgetCurrentView();
12607
13528
  i0.ɵɵelementStart(0, "div", 1)(1, "div", 2)(2, "h2", 3);
@@ -12654,7 +13575,7 @@ function CaseEventCompletionTaskReassignedComponent_div_0_Template(rf, ctx) { if
12654
13575
  i0.ɵɵadvance(4);
12655
13576
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(27, 22, "Continue"), " ");
12656
13577
  i0.ɵɵadvance(2);
12657
- i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction3(26, _c0$11, ctx_r1.jurisdiction, ctx_r1.caseType, ctx_r1.caseId));
13578
+ i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction3(26, _c0$_, ctx_r1.jurisdiction, ctx_r1.caseType, ctx_r1.caseId));
12658
13579
  i0.ɵɵadvance();
12659
13580
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(30, 24, "Cancel"), " ");
12660
13581
  } }
@@ -12684,12 +13605,9 @@ class CaseEventCompletionTaskReassignedComponent {
12684
13605
  this.jurisdiction = task.jurisdiction;
12685
13606
  this.caseType = task.case_type_id;
12686
13607
  // Current user is a caseworker?
12687
- this.caseworkerSubscription = this.caseworkerService.getCaseworkers(task.jurisdiction).subscribe(result => {
12688
- if (result && result[0].service === task.jurisdiction && result[0].caseworkers) {
12689
- const caseworker = result[0].caseworkers.find(x => x.idamId === task.assignee);
12690
- if (caseworker) {
12691
- this.assignedUserName = `${caseworker.firstName} ${caseworker.lastName}`;
12692
- }
13608
+ this.caseworkerSubscription = this.caseworkerService.getUserByIdamId(task.assignee).subscribe(caseworker => {
13609
+ if (caseworker) {
13610
+ this.assignedUserName = `${caseworker.firstName} ${caseworker.lastName}`;
12693
13611
  }
12694
13612
  if (!this.assignedUserName) {
12695
13613
  // Current user is a judicial user?
@@ -13060,7 +13978,7 @@ class WriteComplexFieldComponent extends AbstractFieldWriteComponent {
13060
13978
  }] }); })();
13061
13979
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteComplexFieldComponent, { className: "WriteComplexFieldComponent", filePath: "lib/shared/components/palette/complex/write-complex-field.component.ts", lineNumber: 22 }); })();
13062
13980
 
13063
- const _c0$10 = ["writeComplexFieldComponent"];
13981
+ const _c0$Z = ["writeComplexFieldComponent"];
13064
13982
  const _c1$o = a0 => ({ "form-group-error": a0 });
13065
13983
  const _c2$3 = a0 => ({ "govuk-input--error": a0 });
13066
13984
  function WriteAddressFieldComponent_div_1_div_4_span_5_Template(rf, ctx) { if (rf & 1) {
@@ -13327,7 +14245,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
13327
14245
  }
13328
14246
  static ɵfac = function WriteAddressFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WriteAddressFieldComponent)(i0.ɵɵdirectiveInject(AddressesService), i0.ɵɵdirectiveInject(IsCompoundPipe)); };
13329
14247
  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);
14248
+ i0.ɵɵviewQuery(_c0$Z, 5);
13331
14249
  i0.ɵɵviewQuery(FocusElementDirective, 5);
13332
14250
  } if (rf & 2) {
13333
14251
  let _t;
@@ -13390,7 +14308,7 @@ class AbstractFieldReadComponent extends AbstractFormFieldComponent {
13390
14308
  type: Input
13391
14309
  }] }); })();
13392
14310
 
13393
- const _c0$$ = ["journeyChild"];
14311
+ const _c0$Y = ["journeyChild"];
13394
14312
  class AbstractFieldWriteJourneyComponent extends AbstractFieldWriteComponent {
13395
14313
  multipageComponentStateService;
13396
14314
  journeyStartPageNumber = 0;
@@ -13465,7 +14383,7 @@ class AbstractFieldWriteJourneyComponent extends AbstractFieldWriteComponent {
13465
14383
  ;
13466
14384
  static ɵfac = function AbstractFieldWriteJourneyComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AbstractFieldWriteJourneyComponent)(i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
13467
14385
  static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AbstractFieldWriteJourneyComponent, viewQuery: function AbstractFieldWriteJourneyComponent_Query(rf, ctx) { if (rf & 1) {
13468
- i0.ɵɵviewQuery(_c0$$, 5);
14386
+ i0.ɵɵviewQuery(_c0$Y, 5);
13469
14387
  } if (rf & 2) {
13470
14388
  let _t;
13471
14389
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childJourney = _t.first);
@@ -13480,7 +14398,7 @@ class AbstractFieldWriteJourneyComponent extends AbstractFieldWriteComponent {
13480
14398
  args: ['journeyChild']
13481
14399
  }] }); })();
13482
14400
 
13483
- const _c0$_ = ["journeyChild"];
14401
+ const _c0$X = ["journeyChild"];
13484
14402
  class AbstractJourneyComponent {
13485
14403
  multipageComponentStateService;
13486
14404
  journeyStartPageNumber = 0;
@@ -13542,7 +14460,7 @@ class AbstractJourneyComponent {
13542
14460
  onPageChange() { }
13543
14461
  static ɵfac = function AbstractJourneyComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AbstractJourneyComponent)(i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
13544
14462
  static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AbstractJourneyComponent, viewQuery: function AbstractJourneyComponent_Query(rf, ctx) { if (rf & 1) {
13545
- i0.ɵɵviewQuery(_c0$_, 5);
14463
+ i0.ɵɵviewQuery(_c0$X, 5);
13546
14464
  } if (rf & 2) {
13547
14465
  let _t;
13548
14466
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childJourney = _t.first);
@@ -13571,9 +14489,8 @@ var DisplayContextCustomParameter;
13571
14489
  DisplayContextCustomParameter["QueryManagementWriteTest"] = "QueryManagementWriteTest";
13572
14490
  })(DisplayContextCustomParameter || (DisplayContextCustomParameter = {}));
13573
14491
 
13574
- const _c0$Z = ["mediaViewerHost"];
13575
14492
  function CaseFileViewFieldComponent_ng_container_0_li_7_Template(rf, ctx) { if (rf & 1) {
13576
- i0.ɵɵelementStart(0, "li")(1, "button", 9);
14493
+ i0.ɵɵelementStart(0, "li")(1, "button", 8);
13577
14494
  i0.ɵɵtext(2);
13578
14495
  i0.ɵɵelementEnd()();
13579
14496
  } if (rf & 2) {
@@ -13583,11 +14500,11 @@ function CaseFileViewFieldComponent_ng_container_0_li_7_Template(rf, ctx) { if (
13583
14500
  } }
13584
14501
  function CaseFileViewFieldComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
13585
14502
  i0.ɵɵelementContainerStart(0);
13586
- i0.ɵɵelementStart(1, "div", 3)(2, "div", 4)(3, "h2", 5);
14503
+ i0.ɵɵelementStart(1, "div", 2)(2, "div", 3)(3, "h2", 4);
13587
14504
  i0.ɵɵtext(4, "There is a problem");
13588
14505
  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);
14506
+ i0.ɵɵelementStart(5, "div", 5)(6, "ul", 6);
14507
+ i0.ɵɵtemplate(7, CaseFileViewFieldComponent_ng_container_0_li_7_Template, 3, 1, "li", 7);
13591
14508
  i0.ɵɵelementEnd()()()();
13592
14509
  i0.ɵɵelementContainerEnd();
13593
14510
  } if (rf & 2) {
@@ -13596,29 +14513,33 @@ function CaseFileViewFieldComponent_ng_container_0_Template(rf, ctx) { if (rf &
13596
14513
  i0.ɵɵproperty("ngForOf", ctx_r1.errorMessages);
13597
14514
  } }
13598
14515
  function CaseFileViewFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
13599
- i0.ɵɵelementStart(0, "div", 10)(1, "h1", 11);
14516
+ i0.ɵɵelementStart(0, "div", 9)(1, "h1", 10);
13600
14517
  i0.ɵɵtext(2, "Sorry, there is a problem with the service");
13601
14518
  i0.ɵɵelementEnd();
13602
- i0.ɵɵelementStart(3, "p", 12);
14519
+ i0.ɵɵelementStart(3, "p", 11);
13603
14520
  i0.ɵɵtext(4, "Try again later.");
13604
14521
  i0.ɵɵelementEnd()();
13605
14522
  } }
13606
14523
  function CaseFileViewFieldComponent_div_2_ng_container_8_Template(rf, ctx) { if (rf & 1) {
13607
14524
  i0.ɵɵelementContainerStart(0);
13608
- i0.ɵɵelementContainer(1, null, 0);
14525
+ i0.ɵɵelement(1, "mv-media-viewer", 18);
13609
14526
  i0.ɵɵelementContainerEnd();
14527
+ } if (rf & 2) {
14528
+ const ctx_r1 = i0.ɵɵnextContext(2);
14529
+ i0.ɵɵadvance();
14530
+ 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
14531
  } }
13611
14532
  function CaseFileViewFieldComponent_div_2_Template(rf, ctx) { if (rf & 1) {
13612
14533
  const _r3 = i0.ɵɵgetCurrentView();
13613
- i0.ɵɵelementStart(0, "div")(1, "h2", 13);
14534
+ i0.ɵɵelementStart(0, "div")(1, "h2", 12);
13614
14535
  i0.ɵɵtext(2, "Case file");
13615
14536
  i0.ɵɵelementEnd();
13616
- i0.ɵɵelementStart(3, "div", 14)(4, "div", 15)(5, "ccd-case-file-view-folder", 16);
14537
+ i0.ɵɵelementStart(3, "div", 13)(4, "div", 14)(5, "ccd-case-file-view-folder", 15);
13617
14538
  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
14539
  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);
14540
+ i0.ɵɵelement(6, "div", 16);
14541
+ i0.ɵɵelementStart(7, "div", 17);
14542
+ i0.ɵɵtemplate(8, CaseFileViewFieldComponent_div_2_ng_container_8_Template, 2, 10, "ng-container", 0);
13622
14543
  i0.ɵɵelementEnd()()();
13623
14544
  } if (rf & 2) {
13624
14545
  const ctx_r1 = i0.ɵɵnextContext();
@@ -13629,8 +14550,6 @@ function CaseFileViewFieldComponent_div_2_Template(rf, ctx) { if (rf & 1) {
13629
14550
  } }
13630
14551
  class CaseFileViewFieldComponent {
13631
14552
  elementRef;
13632
- changeDetectorRef;
13633
- environmentInjector;
13634
14553
  route;
13635
14554
  caseFileViewService;
13636
14555
  documentManagementService;
@@ -13651,14 +14570,8 @@ class CaseFileViewFieldComponent {
13651
14570
  icp_jurisdictions = [];
13652
14571
  icpEnabled = false;
13653
14572
  caseId;
13654
- mediaViewerHost;
13655
- mediaViewerComponentRef;
13656
- mediaViewerModuleRef;
13657
- mediaViewerRenderId = 0;
13658
- constructor(elementRef, changeDetectorRef, environmentInjector, route, caseFileViewService, documentManagementService, loadingService, sessionStorageService, windowService, caseNotifier, abstractConfig) {
14573
+ constructor(elementRef, route, caseFileViewService, documentManagementService, loadingService, sessionStorageService, windowService, caseNotifier, abstractConfig) {
13659
14574
  this.elementRef = elementRef;
13660
- this.changeDetectorRef = changeDetectorRef;
13661
- this.environmentInjector = environmentInjector;
13662
14575
  this.route = route;
13663
14576
  this.caseFileViewService = caseFileViewService;
13664
14577
  this.documentManagementService = documentManagementService;
@@ -13718,7 +14631,6 @@ class CaseFileViewFieldComponent {
13718
14631
  if (this.documentManagementService.isHtmlDocument(documentDetails)) {
13719
14632
  const documentBinaryUrl = this.documentManagementService.getDocumentBinaryUrl(documentDetails);
13720
14633
  if (documentBinaryUrl) {
13721
- this.destroyMediaViewer();
13722
14634
  this.currentDocument = undefined;
13723
14635
  this.windowService.openOnNewTab(documentBinaryUrl);
13724
14636
  return;
@@ -13726,7 +14638,6 @@ class CaseFileViewFieldComponent {
13726
14638
  }
13727
14639
  const mediaViewerInfo = this.documentManagementService.getMediaViewerInfo(documentDetails);
13728
14640
  this.currentDocument = JSON.parse(mediaViewerInfo);
13729
- void this.renderMediaViewer();
13730
14641
  }
13731
14642
  moveDocument(data) {
13732
14643
  const cid = this.route.snapshot.paramMap.get(CaseFileViewFieldComponent.PARAM_CASE_ID);
@@ -13752,9 +14663,6 @@ class CaseFileViewFieldComponent {
13752
14663
  this.errorMessages = [];
13753
14664
  }
13754
14665
  ngOnDestroy() {
13755
- this.mediaViewerRenderId++;
13756
- this.destroyMediaViewer();
13757
- this.mediaViewerModuleRef?.destroy();
13758
14666
  if (this.categoriesAndDocumentsSubscription) {
13759
14667
  this.categoriesAndDocumentsSubscription.unsubscribe();
13760
14668
  }
@@ -13762,51 +14670,9 @@ class CaseFileViewFieldComponent {
13762
14670
  isIcpEnabled() {
13763
14671
  return this.icpEnabled && ((this.icp_jurisdictions?.length < 1) || this.icp_jurisdictions.includes(this.caseNotifier?.cachedCaseView?.case_type?.jurisdiction.id));
13764
14672
  }
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);
14673
+ 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)); };
14674
+ 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) {
14675
+ 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
14676
  } if (rf & 2) {
13811
14677
  i0.ɵɵproperty("ngIf", ctx.errorMessages == null ? null : ctx.errorMessages.length);
13812
14678
  i0.ɵɵadvance();
@@ -13817,12 +14683,9 @@ class CaseFileViewFieldComponent {
13817
14683
  }
13818
14684
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFieldComponent, [{
13819
14685
  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 }); })();
14686
+ 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"] }]
14687
+ }], () => [{ type: i0.ElementRef }, { type: i1$1.ActivatedRoute }, { type: CaseFileViewService }, { type: DocumentManagementService }, { type: LoadingService }, { type: SessionStorageService }, { type: WindowService }, { type: CaseNotifier }, { type: AbstractAppConfig }], null); })();
14688
+ (() => { (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
14689
 
13827
14690
  const PVP_FLAG_CODE = 'PF0021';
13828
14691
  const PVP_DISPLAY_TEXT = 'POTENTIALLY VIOLENT PERSON';
@@ -15054,7 +15917,7 @@ class ReadCaseLinkFieldComponent extends AbstractFieldReadComponent {
15054
15917
  }], null, null); })();
15055
15918
  (() => { (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
15919
 
15057
- const _c0$Y = ["writeComplexFieldComponent"];
15920
+ const _c0$W = ["writeComplexFieldComponent"];
15058
15921
  const _c1$n = a0 => ({ "form-group-error": a0 });
15059
15922
  function WriteCaseLinkFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
15060
15923
  i0.ɵɵelementStart(0, "span", 6);
@@ -15135,7 +15998,7 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
15135
15998
  }
15136
15999
  static ɵfac = /*@__PURE__*/ (() => { let ɵWriteCaseLinkFieldComponent_BaseFactory; return function WriteCaseLinkFieldComponent_Factory(__ngFactoryType__) { return (ɵWriteCaseLinkFieldComponent_BaseFactory || (ɵWriteCaseLinkFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(WriteCaseLinkFieldComponent)))(__ngFactoryType__ || WriteCaseLinkFieldComponent); }; })();
15137
16000
  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);
16001
+ i0.ɵɵviewQuery(_c0$W, 5);
15139
16002
  } if (rf & 2) {
15140
16003
  let _t;
15141
16004
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.writeComplexFieldComponent = _t.first);
@@ -15169,7 +16032,7 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
15169
16032
  }] }); })();
15170
16033
  (() => { (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
16034
 
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 });
16035
+ 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
16036
  const _c1$m = (a0, a1, a2, a3, a4, a5) => ({ id: a0, label: a1, field_type: a2, value: a3, hidden: a4, parent: a5 });
15174
16037
  function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf & 1) {
15175
16038
  i0.ɵɵelementStart(0, "tbody")(1, "tr");
@@ -15180,7 +16043,7 @@ function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf
15180
16043
  } if (rf & 2) {
15181
16044
  const ctx_r0 = i0.ɵɵnextContext(2);
15182
16045
  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);
16046
+ 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
16047
  } }
15185
16048
  function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { if (rf & 1) {
15186
16049
  i0.ɵɵelementStart(0, "tr")(1, "td");
@@ -15302,7 +16165,7 @@ class RemoveDialogComponent {
15302
16165
  }], () => [{ type: i1$3.MatLegacyDialogRef }], null); })();
15303
16166
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RemoveDialogComponent, { className: "RemoveDialogComponent", filePath: "lib/shared/components/dialogs/remove-dialog/remove-dialog.component.ts", lineNumber: 10 }); })();
15304
16167
 
15305
- const _c0$W = ["collectionItem"];
16168
+ const _c0$U = ["collectionItem"];
15306
16169
  function WriteCollectionFieldComponent_h2_2_Template(rf, ctx) { if (rf & 1) {
15307
16170
  i0.ɵɵelementStart(0, "h2", 7);
15308
16171
  i0.ɵɵtext(1);
@@ -15723,7 +16586,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
15723
16586
  }
15724
16587
  static ɵfac = function WriteCollectionFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WriteCollectionFieldComponent)(i0.ɵɵdirectiveInject(i1$3.MatLegacyDialog), i0.ɵɵdirectiveInject(ProfileNotifier), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
15725
16588
  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);
16589
+ i0.ɵɵviewQuery(_c0$U, 5);
15727
16590
  } if (rf & 2) {
15728
16591
  let _t;
15729
16592
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.items = _t);
@@ -16042,7 +16905,7 @@ class FileUploadStateService {
16042
16905
  type: Injectable
16043
16906
  }], null, null); })();
16044
16907
 
16045
- const _c0$V = ["fileInput"];
16908
+ const _c0$T = ["fileInput"];
16046
16909
  const _c1$l = a0 => ({ "form-group-error bottom-30": a0 });
16047
16910
  function WriteDocumentFieldComponent_span_6_Template(rf, ctx) { if (rf & 1) {
16048
16911
  i0.ɵɵelementStart(0, "span", 12);
@@ -16421,7 +17284,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
16421
17284
  }
16422
17285
  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
17286
  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);
17287
+ i0.ɵɵviewQuery(_c0$T, 5);
16425
17288
  } if (rf & 2) {
16426
17289
  let _t;
16427
17290
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
@@ -16536,7 +17399,7 @@ class ReadDynamicListFieldComponent extends AbstractFieldReadComponent {
16536
17399
  }], null, null); })();
16537
17400
  (() => { (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
17401
 
16539
- const _c0$U = a0 => ({ "form-group-error": a0 });
17402
+ const _c0$S = a0 => ({ "form-group-error": a0 });
16540
17403
  function WriteDynamicListFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
16541
17404
  i0.ɵɵelementStart(0, "span", 8);
16542
17405
  i0.ɵɵtext(1);
@@ -16624,7 +17487,7 @@ class WriteDynamicListFieldComponent extends AbstractFieldWriteComponent {
16624
17487
  i0.ɵɵtemplate(10, WriteDynamicListFieldComponent_option_10_Template, 3, 4, "option", 7);
16625
17488
  i0.ɵɵelementEnd()();
16626
17489
  } if (rf & 2) {
16627
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(13, _c0$U, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
17490
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(13, _c0$S, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
16628
17491
  i0.ɵɵadvance();
16629
17492
  i0.ɵɵproperty("for", ctx.id());
16630
17493
  i0.ɵɵadvance();
@@ -16805,7 +17668,7 @@ class ReadDynamicMultiSelectListFieldComponent extends AbstractFieldReadComponen
16805
17668
  }], null, null); })();
16806
17669
  (() => { (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
17670
 
16808
- const _c0$T = a0 => ({ "error": a0 });
17671
+ const _c0$R = a0 => ({ "error": a0 });
16809
17672
  function WriteDynamicMultiSelectListFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
16810
17673
  i0.ɵɵelementStart(0, "span", 5);
16811
17674
  i0.ɵɵtext(1);
@@ -16925,7 +17788,7 @@ class WriteDynamicMultiSelectListFieldComponent extends AbstractFieldWriteCompon
16925
17788
  i0.ɵɵtemplate(6, WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template, 6, 12, "ng-container", 4);
16926
17789
  i0.ɵɵelementEnd()();
16927
17790
  } if (rf & 2) {
16928
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$T, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
17791
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$R, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
16929
17792
  i0.ɵɵadvance(3);
16930
17793
  i0.ɵɵproperty("ngIf", ctx.caseField.label);
16931
17794
  i0.ɵɵadvance();
@@ -17005,7 +17868,7 @@ class ReadDynamicRadioListFieldComponent extends AbstractFieldReadComponent {
17005
17868
  }], null, null); })();
17006
17869
  (() => { (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
17870
 
17008
- const _c0$S = a0 => ({ "form-group-error": a0 });
17871
+ const _c0$Q = a0 => ({ "form-group-error": a0 });
17009
17872
  const _c1$k = a0 => ({ selected: a0 });
17010
17873
  function WriteDynamicRadioListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
17011
17874
  i0.ɵɵelementStart(0, "span", 7);
@@ -17100,7 +17963,7 @@ class WriteDynamicRadioListFieldComponent extends AbstractFieldWriteComponent {
17100
17963
  i0.ɵɵelementContainerEnd();
17101
17964
  i0.ɵɵelementEnd()();
17102
17965
  } if (rf & 2) {
17103
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$S, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
17966
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$Q, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
17104
17967
  i0.ɵɵadvance(3);
17105
17968
  i0.ɵɵproperty("for", ctx.id());
17106
17969
  i0.ɵɵadvance();
@@ -17154,7 +18017,7 @@ class ReadEmailFieldComponent extends AbstractFieldReadComponent {
17154
18017
  }], null, null); })();
17155
18018
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadEmailFieldComponent, { className: "ReadEmailFieldComponent", filePath: "lib/shared/components/palette/email/read-email-field.component.ts", lineNumber: 11 }); })();
17156
18019
 
17157
- const _c0$R = a0 => ({ "form-group-error": a0 });
18020
+ const _c0$P = a0 => ({ "form-group-error": a0 });
17158
18021
  const _c1$j = a0 => ({ "govuk-input--error": a0 });
17159
18022
  function WriteEmailFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
17160
18023
  i0.ɵɵelementStart(0, "span", 6);
@@ -17200,7 +18063,7 @@ class WriteEmailFieldComponent extends AbstractFieldWriteComponent {
17200
18063
  i0.ɵɵelement(5, "input", 5);
17201
18064
  i0.ɵɵelementEnd();
17202
18065
  } if (rf & 2) {
17203
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$R, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
18066
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$P, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
17204
18067
  i0.ɵɵadvance();
17205
18068
  i0.ɵɵproperty("for", ctx.id());
17206
18069
  i0.ɵɵadvance();
@@ -17242,7 +18105,7 @@ class ReadFixedListFieldComponent extends AbstractFieldReadComponent {
17242
18105
  }], null, null); })();
17243
18106
  (() => { (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
18107
 
17245
- const _c0$Q = a0 => ({ "form-group-error": a0 });
18108
+ const _c0$O = a0 => ({ "form-group-error": a0 });
17246
18109
  function WriteFixedListFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
17247
18110
  i0.ɵɵelementStart(0, "span", 8);
17248
18111
  i0.ɵɵtext(1);
@@ -17317,7 +18180,7 @@ class WriteFixedListFieldComponent extends AbstractFieldWriteComponent {
17317
18180
  i0.ɵɵtemplate(8, WriteFixedListFieldComponent_option_8_Template, 3, 4, "option", 7);
17318
18181
  i0.ɵɵelementEnd()();
17319
18182
  } if (rf & 2) {
17320
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$Q, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
18183
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$O, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
17321
18184
  i0.ɵɵadvance();
17322
18185
  i0.ɵɵproperty("for", ctx.id());
17323
18186
  i0.ɵɵadvance();
@@ -17380,7 +18243,7 @@ class ReadFixedRadioListFieldComponent extends AbstractFieldReadComponent {
17380
18243
  }], null, null); })();
17381
18244
  (() => { (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
18245
 
17383
- const _c0$P = a0 => ({ "form-group-error": a0 });
18246
+ const _c0$N = a0 => ({ "form-group-error": a0 });
17384
18247
  const _c1$i = a0 => ({ selected: a0 });
17385
18248
  function WriteFixedRadioListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
17386
18249
  i0.ɵɵelementStart(0, "span", 6);
@@ -17448,7 +18311,7 @@ class WriteFixedRadioListFieldComponent extends AbstractFieldWriteComponent {
17448
18311
  i0.ɵɵelementContainerEnd();
17449
18312
  i0.ɵɵelementEnd()();
17450
18313
  } if (rf & 2) {
17451
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$P, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
18314
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$N, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
17452
18315
  i0.ɵɵadvance(3);
17453
18316
  i0.ɵɵproperty("for", ctx.id());
17454
18317
  i0.ɵɵadvance();
@@ -17524,7 +18387,7 @@ class ReadJudicialUserFieldComponent extends AbstractFieldReadComponent {
17524
18387
  }], () => [{ type: JurisdictionService }], null); })();
17525
18388
  (() => { (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
18389
 
17527
- const _c0$O = a0 => ({ "form-group-error": a0 });
18390
+ const _c0$M = a0 => ({ "form-group-error": a0 });
17528
18391
  const _c1$h = a0 => ({ "hide-autocomplete": a0 });
17529
18392
  function WriteJudicialUserFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
17530
18393
  i0.ɵɵelementStart(0, "span", 10);
@@ -17744,7 +18607,7 @@ class WriteJudicialUserFieldComponent extends WriteComplexFieldComponent {
17744
18607
  i0.ɵɵelementEnd()();
17745
18608
  } if (rf & 2) {
17746
18609
  const autoComplete_r5 = i0.ɵɵreference(7);
17747
- i0.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0.ɵɵpureFunction1(15, _c0$O, !!ctx.judicialUserControl && ctx.errors));
18610
+ i0.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0.ɵɵpureFunction1(15, _c0$M, !!ctx.judicialUserControl && ctx.errors));
17748
18611
  i0.ɵɵadvance();
17749
18612
  i0.ɵɵproperty("for", ctx.id());
17750
18613
  i0.ɵɵadvance();
@@ -18209,7 +19072,7 @@ class ValidatorsUtils {
18209
19072
  args: [{ providedIn: 'root' }]
18210
19073
  }], null, null); })();
18211
19074
 
18212
- const _c0$N = a0 => ({ "govuk-form-group--error": a0 });
19075
+ const _c0$L = a0 => ({ "govuk-form-group--error": a0 });
18213
19076
  const _c1$g = a0 => ({ "table-group-error": a0 });
18214
19077
  function LinkCasesComponent_div_8_span_4_Template(rf, ctx) { if (rf & 1) {
18215
19078
  i0.ɵɵelementStart(0, "span", 28)(1, "span", 29);
@@ -18276,7 +19139,7 @@ function LinkCasesComponent_div_8_div_14_Template(rf, ctx) { if (rf & 1) {
18276
19139
  i0.ɵɵelementEnd()();
18277
19140
  } if (rf & 2) {
18278
19141
  const ctx_r1 = i0.ɵɵnextContext(2);
18279
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c0$N, !!ctx_r1.caseReasonCommentsError));
19142
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c0$L, !!ctx_r1.caseReasonCommentsError));
18280
19143
  i0.ɵɵadvance(3);
18281
19144
  i0.ɵɵproperty("ngIf", ctx_r1.caseReasonCommentsError);
18282
19145
  } }
@@ -18320,11 +19183,11 @@ function LinkCasesComponent_div_8_Template(rf, ctx) { if (rf & 1) {
18320
19183
  const ctx_r1 = i0.ɵɵnextContext();
18321
19184
  i0.ɵɵproperty("formGroup", ctx_r1.linkCaseForm);
18322
19185
  i0.ɵɵadvance();
18323
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$N, !!ctx_r1.caseNumberError));
19186
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$L, !!ctx_r1.caseNumberError));
18324
19187
  i0.ɵɵadvance(3);
18325
19188
  i0.ɵɵproperty("ngIf", ctx_r1.caseNumberError);
18326
19189
  i0.ɵɵadvance(2);
18327
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$N, !!ctx_r1.caseReasonError));
19190
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$L, !!ctx_r1.caseReasonError));
18328
19191
  i0.ɵɵadvance(5);
18329
19192
  i0.ɵɵproperty("ngIf", ctx_r1.caseReasonError);
18330
19193
  i0.ɵɵadvance(2);
@@ -18752,7 +19615,7 @@ class LinkCasesComponent extends AbstractJourneyComponent {
18752
19615
  i0.ɵɵadvance(4);
18753
19616
  i0.ɵɵproperty("ngIf", ctx.linkCaseForm);
18754
19617
  i0.ɵɵadvance(4);
18755
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$N, !!ctx.noSelectedCaseError));
19618
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$L, !!ctx.noSelectedCaseError));
18756
19619
  i0.ɵɵadvance();
18757
19620
  i0.ɵɵproperty("ngIf", ctx.noSelectedCaseError);
18758
19621
  i0.ɵɵadvance(18);
@@ -19345,7 +20208,7 @@ class NoLinkedCasesComponent extends AbstractJourneyComponent {
19345
20208
  }], () => [{ type: i1$1.Router }, { type: LinkedCasesService }, { type: MultipageComponentStateService }], null); })();
19346
20209
  (() => { (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
20210
 
19348
- const _c0$M = a0 => ({ "govuk-form-group--error": a0 });
20211
+ const _c0$K = a0 => ({ "govuk-form-group--error": a0 });
19349
20212
  function UnLinkCasesComponent_div_0_div_4_p_1_Template(rf, ctx) { if (rf & 1) {
19350
20213
  i0.ɵɵelementStart(0, "p", 9)(1, "span", 10);
19351
20214
  i0.ɵɵtext(2, "Error:");
@@ -19383,7 +20246,7 @@ function UnLinkCasesComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
19383
20246
  i0.ɵɵelementEnd()();
19384
20247
  } if (rf & 2) {
19385
20248
  const ctx_r0 = i0.ɵɵnextContext(2);
19386
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$M, ctx_r0.unlinkErrorMessage))("formGroup", ctx_r0.unlinkCaseForm);
20249
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$K, ctx_r0.unlinkErrorMessage))("formGroup", ctx_r0.unlinkCaseForm);
19387
20250
  i0.ɵɵadvance();
19388
20251
  i0.ɵɵproperty("ngIf", ctx_r0.unlinkErrorMessage);
19389
20252
  i0.ɵɵadvance(2);
@@ -20320,7 +21183,7 @@ class MoneyGbpInputComponent {
20320
21183
  }] }); })();
20321
21184
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MoneyGbpInputComponent, { className: "MoneyGbpInputComponent", filePath: "lib/shared/components/palette/money-gbp/money-gbp-input.component.ts", lineNumber: 28 }); })();
20322
21185
 
20323
- const _c0$L = a0 => ({ "form-group-error": a0 });
21186
+ const _c0$J = a0 => ({ "form-group-error": a0 });
20324
21187
  function WriteMoneyGbpFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
20325
21188
  i0.ɵɵelementStart(0, "span", 8);
20326
21189
  i0.ɵɵtext(1);
@@ -20369,7 +21232,7 @@ class WriteMoneyGbpFieldComponent extends AbstractFieldWriteComponent {
20369
21232
  i0.ɵɵpipe(9, "ccdIsMandatory");
20370
21233
  i0.ɵɵelementEnd()();
20371
21234
  } if (rf & 2) {
20372
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$L, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
21235
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$J, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
20373
21236
  i0.ɵɵadvance();
20374
21237
  i0.ɵɵproperty("for", ctx.id());
20375
21238
  i0.ɵɵadvance();
@@ -20428,7 +21291,7 @@ class ReadMultiSelectListFieldComponent extends AbstractFieldReadComponent {
20428
21291
  }], null, null); })();
20429
21292
  (() => { (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
21293
 
20431
- const _c0$K = a0 => ({ "error": a0 });
21294
+ const _c0$I = a0 => ({ "error": a0 });
20432
21295
  function WriteMultiSelectListFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
20433
21296
  i0.ɵɵelementStart(0, "span", 5);
20434
21297
  i0.ɵɵtext(1);
@@ -20529,7 +21392,7 @@ class WriteMultiSelectListFieldComponent extends AbstractFieldWriteComponent {
20529
21392
  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
21393
  i0.ɵɵelementEnd()();
20531
21394
  } if (rf & 2) {
20532
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$K, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
21395
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$I, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
20533
21396
  i0.ɵɵadvance(3);
20534
21397
  i0.ɵɵproperty("ngIf", ctx.caseField.label);
20535
21398
  i0.ɵɵadvance();
@@ -20568,7 +21431,7 @@ class ReadNumberFieldComponent extends AbstractFieldReadComponent {
20568
21431
  }], null, null); })();
20569
21432
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadNumberFieldComponent, { className: "ReadNumberFieldComponent", filePath: "lib/shared/components/palette/number/read-number-field.component.ts", lineNumber: 9 }); })();
20570
21433
 
20571
- const _c0$J = a0 => ({ "form-group-error": a0 });
21434
+ const _c0$H = a0 => ({ "form-group-error": a0 });
20572
21435
  const _c1$f = a0 => ({ "govuk-input--error": a0 });
20573
21436
  function WriteNumberFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
20574
21437
  i0.ɵɵelementStart(0, "span", 6);
@@ -20614,7 +21477,7 @@ class WriteNumberFieldComponent extends AbstractFieldWriteComponent {
20614
21477
  i0.ɵɵelement(5, "input", 5);
20615
21478
  i0.ɵɵelementEnd();
20616
21479
  } if (rf & 2) {
20617
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$J, !ctx.numberControl.valid && ctx.numberControl.dirty));
21480
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$H, !ctx.numberControl.valid && ctx.numberControl.dirty));
20618
21481
  i0.ɵɵadvance();
20619
21482
  i0.ɵɵproperty("for", ctx.id());
20620
21483
  i0.ɵɵadvance();
@@ -20793,7 +21656,7 @@ class ReadOrganisationFieldComponent extends AbstractFieldReadComponent {
20793
21656
  }] }); })();
20794
21657
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadOrganisationFieldComponent, { className: "ReadOrganisationFieldComponent", filePath: "lib/shared/components/palette/organisation/read-organisation-field.component.ts", lineNumber: 11 }); })();
20795
21658
 
20796
- const _c0$I = a0 => ({ "scroll-container ": a0 });
21659
+ const _c0$G = a0 => ({ "scroll-container ": a0 });
20797
21660
  function WriteOrganisationFieldComponent_fieldset_1_Template(rf, ctx) { if (rf & 1) {
20798
21661
  i0.ɵɵelementStart(0, "fieldset", 3);
20799
21662
  i0.ɵɵelement(1, "legend", 4);
@@ -20872,7 +21735,7 @@ function WriteOrganisationFieldComponent_fieldset_3_div_17_Template(rf, ctx) { i
20872
21735
  let tmp_3_0;
20873
21736
  let tmp_5_0;
20874
21737
  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));
21738
+ 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
21739
  i0.ɵɵadvance(2);
20877
21740
  i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(3, 5, ctx_r2.simpleOrganisations$));
20878
21741
  i0.ɵɵadvance(2);
@@ -21214,98 +22077,38 @@ class PaymentField extends AbstractFieldReadComponent {
21214
22077
  }
21215
22078
  }
21216
22079
 
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
22080
  class CasePaymentHistoryViewerFieldComponent extends PaymentField {
21224
- environmentInjector;
21225
22081
  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) {
22082
+ constructor(appConfig, sessionStorage) {
21231
22083
  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
22084
  }
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);
22085
+ static ɵfac = function CasePaymentHistoryViewerFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CasePaymentHistoryViewerFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(SessionStorageService)); };
22086
+ 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) {
22087
+ i0.ɵɵelementStart(0, "div", 0)(1, "span", 1);
21281
22088
  i0.ɵɵtext(2, "!");
21282
22089
  i0.ɵɵelementEnd();
21283
- i0.ɵɵelementStart(3, "strong", 3)(4, "span", 4);
22090
+ i0.ɵɵelementStart(3, "strong", 2)(4, "span", 3);
21284
22091
  i0.ɵɵtext(5);
21285
22092
  i0.ɵɵpipe(6, "rpxTranslate");
21286
22093
  i0.ɵɵelementEnd();
21287
22094
  i0.ɵɵtext(7);
21288
22095
  i0.ɵɵpipe(8, "rpxTranslate");
21289
22096
  i0.ɵɵelementEnd()();
21290
- i0.ɵɵtemplate(9, CasePaymentHistoryViewerFieldComponent_p_9_Template, 2, 0, "p", 5);
21291
- i0.ɵɵelementContainer(10, null, 0);
22097
+ i0.ɵɵelement(9, "ccpay-payment-lib", 4);
21292
22098
  } if (rf & 2) {
21293
22099
  i0.ɵɵadvance(5);
21294
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 3, "Warning"));
22100
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 18, "Warning"));
21295
22101
  i0.ɵɵadvance(2);
21296
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 5, ctx.PAYMENT_HISTORY_WARNING), " ");
22102
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 20, ctx.PAYMENT_HISTORY_WARNING), " ");
21297
22103
  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}"] });
22104
+ 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");
22105
+ } }, dependencies: [i3$1.PaymentLibComponent, i1.RpxTranslatePipe], styles: [".govuk-warning-text[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:-20px}"] });
21300
22106
  }
21301
22107
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CasePaymentHistoryViewerFieldComponent, [{
21302
22108
  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 }); })();
22109
+ 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"] }]
22110
+ }], () => [{ type: AbstractAppConfig }, { type: SessionStorageService }], null); })();
22111
+ (() => { (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
22112
 
21310
22113
  class ReadPhoneUKFieldComponent extends AbstractFieldReadComponent {
21311
22114
  static ɵfac = /*@__PURE__*/ (() => { let ɵReadPhoneUKFieldComponent_BaseFactory; return function ReadPhoneUKFieldComponent_Factory(__ngFactoryType__) { return (ɵReadPhoneUKFieldComponent_BaseFactory || (ɵReadPhoneUKFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadPhoneUKFieldComponent)))(__ngFactoryType__ || ReadPhoneUKFieldComponent); }; })();
@@ -21328,7 +22131,7 @@ class ReadPhoneUKFieldComponent extends AbstractFieldReadComponent {
21328
22131
  }], null, null); })();
21329
22132
  (() => { (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
22133
 
21331
- const _c0$G = a0 => ({ "form-group-error": a0 });
22134
+ const _c0$F = a0 => ({ "form-group-error": a0 });
21332
22135
  const _c1$e = a0 => ({ "govuk-input--error": a0 });
21333
22136
  function WritePhoneUKFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
21334
22137
  i0.ɵɵelementStart(0, "span", 6);
@@ -21374,7 +22177,7 @@ class WritePhoneUKFieldComponent extends AbstractFieldWriteComponent {
21374
22177
  i0.ɵɵelement(5, "input", 5);
21375
22178
  i0.ɵɵelementEnd();
21376
22179
  } if (rf & 2) {
21377
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$G, !ctx.phoneUkControl.valid && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched)));
22180
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$F, !ctx.phoneUkControl.valid && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched)));
21378
22181
  i0.ɵɵadvance();
21379
22182
  i0.ɵɵproperty("for", ctx.id());
21380
22183
  i0.ɵɵadvance();
@@ -23854,7 +24657,7 @@ class QueryWriteDateInputComponent {
23854
24657
  }] }); })();
23855
24658
  (() => { (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
24659
 
23857
- const _c0$F = a0 => ({ "govuk-form-group--error": a0 });
24660
+ const _c0$E = a0 => ({ "govuk-form-group--error": a0 });
23858
24661
  function QueryWriteRaiseQueryComponent_ccd_query_case_details_header_9_Template(rf, ctx) { if (rf & 1) {
23859
24662
  i0.ɵɵelement(0, "ccd-query-case-details-header", 5);
23860
24663
  } if (rf & 2) {
@@ -23934,7 +24737,7 @@ function QueryWriteRaiseQueryComponent_div_11_ng_container_50_Template(rf, ctx)
23934
24737
  } if (rf & 2) {
23935
24738
  const ctx_r0 = i0.ɵɵnextContext(2);
23936
24739
  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));
24740
+ 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
24741
  i0.ɵɵadvance(4);
23939
24742
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 3, "What is the date of the hearing?"), " ");
23940
24743
  i0.ɵɵadvance(2);
@@ -24001,7 +24804,7 @@ function QueryWriteRaiseQueryComponent_div_11_Template(rf, ctx) { if (rf & 1) {
24001
24804
  i0.ɵɵadvance(8);
24002
24805
  i0.ɵɵproperty("content", i0.ɵɵpipeBind1(10, 23, ctx_r0.serviceMessage));
24003
24806
  i0.ɵɵadvance(2);
24004
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(43, _c0$F, ctx_r0.submitted && ctx_r0.formGroup.get("subject").hasError("required")));
24807
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(43, _c0$E, ctx_r0.submitted && ctx_r0.formGroup.get("subject").hasError("required")));
24005
24808
  i0.ɵɵadvance(3);
24006
24809
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(15, 25, "Query subject"), " ");
24007
24810
  i0.ɵɵadvance(3);
@@ -24009,7 +24812,7 @@ function QueryWriteRaiseQueryComponent_div_11_Template(rf, ctx) { if (rf & 1) {
24009
24812
  i0.ɵɵadvance(2);
24010
24813
  i0.ɵɵproperty("ngIf", ctx_r0.submitted && (ctx_r0.formGroup.get("subject").hasError("required") || ctx_r0.formGroup.get("subject").hasError("maxlength")));
24011
24814
  i0.ɵɵadvance(2);
24012
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(45, _c0$F, ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required")));
24815
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(45, _c0$E, ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required")));
24013
24816
  i0.ɵɵadvance(3);
24014
24817
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(25, 29, "Query detail"), " ");
24015
24818
  i0.ɵɵadvance(3);
@@ -24020,7 +24823,7 @@ function QueryWriteRaiseQueryComponent_div_11_Template(rf, ctx) { if (rf & 1) {
24020
24823
  i0.ɵɵclassProp("govuk-textarea--error", ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required"));
24021
24824
  i0.ɵɵproperty("formControlName", "body");
24022
24825
  i0.ɵɵadvance(2);
24023
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(47, _c0$F, ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").hasError("required")));
24826
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(47, _c0$E, ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").hasError("required")));
24024
24827
  i0.ɵɵadvance(4);
24025
24828
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(37, 33, "Is the query hearing related?"), " ");
24026
24829
  i0.ɵɵadvance(2);
@@ -24644,7 +25447,7 @@ class CloseQueryComponent {
24644
25447
  }] }); })();
24645
25448
  (() => { (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
25449
 
24647
- const _c0$E = (a0, a1) => ["/query-management", "query", a0, "4", a1];
25450
+ const _c0$D = (a0, a1) => ["/query-management", "query", a0, "4", a1];
24648
25451
  function ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_div_1_Template(rf, ctx) { if (rf & 1) {
24649
25452
  const _r1 = i0.ɵɵgetCurrentView();
24650
25453
  i0.ɵɵelementStart(0, "div", 6)(1, "ccd-query-list", 7);
@@ -24683,7 +25486,7 @@ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_conta
24683
25486
  } if (rf & 2) {
24684
25487
  const ctx_r1 = i0.ɵɵnextContext(3);
24685
25488
  i0.ɵɵadvance();
24686
- i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction2(4, _c0$E, ctx_r1.caseId, ctx_r1.query.id));
25489
+ i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction2(4, _c0$D, ctx_r1.caseId, ctx_r1.query.id));
24687
25490
  i0.ɵɵadvance();
24688
25491
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, "Ask a follow-up question"), " ");
24689
25492
  } }
@@ -24697,7 +25500,7 @@ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_templ
24697
25500
  } if (rf & 2) {
24698
25501
  const ctx_r1 = i0.ɵɵnextContext(4);
24699
25502
  i0.ɵɵadvance();
24700
- i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction2(4, _c0$E, ctx_r1.caseId, ctx_r1.query.id));
25503
+ i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction2(4, _c0$D, ctx_r1.caseId, ctx_r1.query.id));
24701
25504
  i0.ɵɵadvance();
24702
25505
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, "Ask a follow-up question"), " ");
24703
25506
  } }
@@ -24885,7 +25688,7 @@ class ReadTextAreaFieldComponent extends AbstractFieldReadComponent {
24885
25688
  }], null, null); })();
24886
25689
  (() => { (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
25690
 
24888
- const _c0$D = a0 => ({ "form-group-error": a0 });
25691
+ const _c0$C = a0 => ({ "form-group-error": a0 });
24889
25692
  const _c1$d = a0 => ({ "govuk-textarea--error": a0 });
24890
25693
  function WriteTextAreaFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
24891
25694
  i0.ɵɵelementStart(0, "span", 6);
@@ -24944,7 +25747,7 @@ class WriteTextAreaFieldComponent extends AbstractFieldWriteComponent {
24944
25747
  i0.ɵɵlistener("input", function WriteTextAreaFieldComponent_Template_textarea_input_5_listener($event) { return ctx.autoGrow($event); });
24945
25748
  i0.ɵɵelementEnd()();
24946
25749
  } if (rf & 2) {
24947
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$D, !ctx.textareaControl.valid && ctx.textareaControl.dirty));
25750
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$C, !ctx.textareaControl.valid && ctx.textareaControl.dirty));
24948
25751
  i0.ɵɵadvance();
24949
25752
  i0.ɵɵproperty("for", ctx.id());
24950
25753
  i0.ɵɵadvance();
@@ -24984,7 +25787,7 @@ class ReadTextFieldComponent extends AbstractFieldReadComponent {
24984
25787
  }], null, null); })();
24985
25788
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadTextFieldComponent, { className: "ReadTextFieldComponent", filePath: "lib/shared/components/palette/text/read-text-field.component.ts", lineNumber: 9 }); })();
24986
25789
 
24987
- const _c0$C = a0 => ({ "form-group-error": a0 });
25790
+ const _c0$B = a0 => ({ "form-group-error": a0 });
24988
25791
  const _c1$c = a0 => ({ "govuk-input--error": a0 });
24989
25792
  function WriteTextFieldComponent_label_1_span_1_Template(rf, ctx) { if (rf & 1) {
24990
25793
  i0.ɵɵelementStart(0, "span", 7);
@@ -25042,7 +25845,7 @@ class WriteTextFieldComponent extends AbstractFieldWriteComponent {
25042
25845
  i0.ɵɵlistener("blur", function WriteTextFieldComponent_Template_input_blur_4_listener($event) { return ctx.onBlur($event); });
25043
25846
  i0.ɵɵelementEnd()();
25044
25847
  } if (rf & 2) {
25045
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$C, !!ctx.textControl && !ctx.textControl.valid && (ctx.textControl.dirty || ctx.textControl.touched)));
25848
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$B, !!ctx.textControl && !ctx.textControl.valid && (ctx.textControl.dirty || ctx.textControl.touched)));
25046
25849
  i0.ɵɵadvance();
25047
25850
  i0.ɵɵproperty("ngIf", !ctx.caseField.hidden);
25048
25851
  i0.ɵɵadvance();
@@ -25077,86 +25880,31 @@ class UnsupportedFieldComponent {
25077
25880
  }], null, null); })();
25078
25881
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UnsupportedFieldComponent, { className: "UnsupportedFieldComponent", filePath: "lib/shared/components/palette/unsupported-field.component.ts", lineNumber: 8 }); })();
25079
25882
 
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();
25883
+ function WaysToPayFieldComponent_ccpay_payment_lib_0_Template(rf, ctx) { if (rf & 1) {
25884
+ i0.ɵɵelement(0, "ccpay-payment-lib", 1);
25885
+ } if (rf & 2) {
25886
+ const ctx_r0 = i0.ɵɵnextContext();
25887
+ 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
25888
  } }
25086
25889
  class WaysToPayFieldComponent extends PaymentField {
25087
- environmentInjector;
25088
- paymentLoadError = false;
25089
- paymentHost;
25090
- paymentComponentRef;
25091
- paymentModuleRef;
25092
- constructor(appConfig, sessionStorage, environmentInjector) {
25890
+ constructor(appConfig, sessionStorage) {
25093
25891
  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
25892
  }
25106
25893
  getCardPaymentReturnUrl() {
25107
25894
  return this.appConfig.getPaymentReturnUrl();
25108
25895
  }
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);
25896
+ static ɵfac = function WaysToPayFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WaysToPayFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(SessionStorageService)); };
25897
+ 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) {
25898
+ i0.ɵɵtemplate(0, WaysToPayFieldComponent_ccpay_payment_lib_0_Template, 1, 15, "ccpay-payment-lib", 0);
25148
25899
  } if (rf & 2) {
25149
- i0.ɵɵproperty("ngIf", ctx.paymentLoadError);
25150
- } }, dependencies: [i4.NgIf], encapsulation: 2 });
25900
+ i0.ɵɵproperty("ngIf", ctx.getUserRoles().length > 0);
25901
+ } }, dependencies: [i4.NgIf, i3$1.PaymentLibComponent], encapsulation: 2 });
25151
25902
  }
25152
25903
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WaysToPayFieldComponent, [{
25153
25904
  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 }); })();
25905
+ 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>" }]
25906
+ }], () => [{ type: AbstractAppConfig }, { type: SessionStorageService }], null); })();
25907
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WaysToPayFieldComponent, { className: "WaysToPayFieldComponent", filePath: "lib/shared/components/palette/waystopay/waystopay-field.component.ts", lineNumber: 11 }); })();
25160
25908
 
25161
25909
  class YesNoService {
25162
25910
  static YES_INPUTS = [
@@ -25503,7 +26251,7 @@ class FieldReadComponent extends AbstractFieldReadComponent {
25503
26251
  type: ViewChild,
25504
26252
  args: ['fieldContainer', { static: false, read: ViewContainerRef }]
25505
26253
  }] }); })();
25506
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FieldReadComponent, { className: "FieldReadComponent", filePath: "lib/shared/components/palette/base-field/field-read.component.ts", lineNumber: 16 }); })();
26254
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FieldReadComponent, { className: "FieldReadComponent", filePath: "lib/shared/components/palette/base-field/field-read.component.ts", lineNumber: 15 }); })();
25507
26255
 
25508
26256
  const _c0$y = ["fieldContainer"];
25509
26257
  const FIX_CASEFIELD_FOR = ['FixedList', 'DynamicList', 'DynamicMultiSelectList'];
@@ -29865,22 +30613,24 @@ class UpdateFlagTitleDisplayPipe extends AsyncPipe {
29865
30613
 
29866
30614
  const _c0$l = (a0, a1, a2) => [a0, false, undefined, true, a1, a2];
29867
30615
  function ReadComplexFieldRawComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
29868
- i0.ɵɵelementContainerStart(0);
29869
- i0.ɵɵelementStart(1, "dt", 2)(2, "span", 3);
29870
- i0.ɵɵtext(3);
29871
- i0.ɵɵpipe(4, "rpxTranslate");
30616
+ i0.ɵɵelementContainerStart(0)(1, 2);
30617
+ i0.ɵɵelementStart(2, "dt", 3)(3, "span", 4);
30618
+ i0.ɵɵtext(4);
30619
+ i0.ɵɵpipe(5, "rpxTranslate");
29872
30620
  i0.ɵɵelementEnd()();
29873
- i0.ɵɵelementStart(5, "dd", 2);
29874
- i0.ɵɵelement(6, "ccd-field-read", 4);
30621
+ i0.ɵɵelementStart(6, "dd", 3);
30622
+ i0.ɵɵelement(7, "ccd-field-read", 5);
29875
30623
  i0.ɵɵelementEnd();
29876
- i0.ɵɵelementContainerEnd();
30624
+ i0.ɵɵelementContainerEnd()();
29877
30625
  } if (rf & 2) {
29878
30626
  const field_r1 = ctx.$implicit;
29879
30627
  const ctx_r1 = i0.ɵɵnextContext();
29880
30628
  i0.ɵɵadvance();
30629
+ i0.ɵɵproperty("caseField", field_r1)("formGroup", ctx_r1.topLevelFormGroup)("contextFields", ctx_r1.caseFields);
30630
+ i0.ɵɵadvance();
29881
30631
  i0.ɵɵproperty("hidden", field_r1.hidden || field_r1.field_type.type === "Label");
29882
30632
  i0.ɵɵadvance(2);
29883
- i0.ɵɵtextInterpolate(ctx_r1.isTranslatable(field_r1) ? i0.ɵɵpipeBind1(4, 8, field_r1.label) : field_r1.label);
30633
+ i0.ɵɵtextInterpolate(ctx_r1.isTranslatable(field_r1) ? i0.ɵɵpipeBind1(5, 11, field_r1.label) : field_r1.label);
29884
30634
  i0.ɵɵadvance(2);
29885
30635
  i0.ɵɵproperty("hidden", field_r1.hidden);
29886
30636
  i0.ɵɵadvance();
@@ -29893,9 +30643,9 @@ function ReadComplexFieldRawComponent_ng_container_1_Template(rf, ctx) { if (rf
29893
30643
  class ReadComplexFieldRawComponent extends AbstractFieldReadComponent {
29894
30644
  caseFields = [];
29895
30645
  static ɵfac = /*@__PURE__*/ (() => { let ɵReadComplexFieldRawComponent_BaseFactory; return function ReadComplexFieldRawComponent_Factory(__ngFactoryType__) { return (ɵReadComplexFieldRawComponent_BaseFactory || (ɵReadComplexFieldRawComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadComplexFieldRawComponent)))(__ngFactoryType__ || ReadComplexFieldRawComponent); }; })();
29896
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadComplexFieldRawComponent, selectors: [["ccd-read-complex-field-raw"]], inputs: { caseFields: "caseFields" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 12, consts: [[1, "complex-raw"], [4, "ngFor", "ngForOf"], [3, "hidden"], [1, "text-16"], [3, "caseField", "context", "caseFields", "topLevelFormGroup", "idPrefix"]], template: function ReadComplexFieldRawComponent_Template(rf, ctx) { if (rf & 1) {
30646
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadComplexFieldRawComponent, selectors: [["ccd-read-complex-field-raw"]], inputs: { caseFields: "caseFields" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 12, consts: [[1, "complex-raw"], [4, "ngFor", "ngForOf"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields"], [3, "hidden"], [1, "text-16"], [3, "caseField", "context", "caseFields", "topLevelFormGroup", "idPrefix"]], template: function ReadComplexFieldRawComponent_Template(rf, ctx) { if (rf & 1) {
29897
30647
  i0.ɵɵelementStart(0, "dl", 0);
29898
- i0.ɵɵtemplate(1, ReadComplexFieldRawComponent_ng_container_1_Template, 7, 10, "ng-container", 1);
30648
+ i0.ɵɵtemplate(1, ReadComplexFieldRawComponent_ng_container_1_Template, 8, 13, "ng-container", 1);
29899
30649
  i0.ɵɵpipe(2, "ccdReadFieldsFilter");
29900
30650
  i0.ɵɵelementEnd();
29901
30651
  } if (rf & 2) {
@@ -29905,17 +30655,17 @@ class ReadComplexFieldRawComponent extends AbstractFieldReadComponent {
29905
30655
  }
29906
30656
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadComplexFieldRawComponent, [{
29907
30657
  type: Component,
29908
- args: [{ selector: 'ccd-read-complex-field-raw', standalone: false, template: "<dl class=\"complex-raw\">\n <ng-container *ngFor=\"let field of caseField | ccdReadFieldsFilter:false :undefined :true :topLevelFormGroup :id()\">\n <dt [hidden]=\"field.hidden || field.field_type.type === 'Label'\"><span class=\"text-16\">{{isTranslatable(field) ? (field.label | rpxTranslate) : field.label}}</span></dt>\n <dd [hidden]=\"field.hidden\">\n <ccd-field-read [caseField]=\"field\" [context]=\"context\" [caseFields]=\"caseFields\" [topLevelFormGroup]=\"topLevelFormGroup\" [idPrefix]=\"idPrefix\"></ccd-field-read>\n </dd>\n </ng-container>\n</dl>\n", styles: ["dl.complex-raw{list-style-type:none;margin:5px 0 10px}dl.complex-raw dl.complex-raw{padding-left:2ch}dl.complex-raw dt{font-weight:700}\n"] }]
30658
+ args: [{ selector: 'ccd-read-complex-field-raw', standalone: false, template: "<dl class=\"complex-raw\">\n <ng-container *ngFor=\"let field of caseField | ccdReadFieldsFilter:false :undefined :true :topLevelFormGroup :id()\">\n <ng-container ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"topLevelFormGroup\" [contextFields]=\"caseFields\">\n <dt [hidden]=\"field.hidden || field.field_type.type === 'Label'\"><span class=\"text-16\">{{isTranslatable(field) ? (field.label | rpxTranslate) : field.label}}</span></dt>\n <dd [hidden]=\"field.hidden\">\n <ccd-field-read [caseField]=\"field\" [context]=\"context\" [caseFields]=\"caseFields\" [topLevelFormGroup]=\"topLevelFormGroup\" [idPrefix]=\"idPrefix\"></ccd-field-read>\n </dd>\n </ng-container>\n </ng-container>\n</dl>\n", styles: ["dl.complex-raw{list-style-type:none;margin:5px 0 10px}dl.complex-raw dl.complex-raw{padding-left:2ch}dl.complex-raw dt{font-weight:700}\n"] }]
29909
30659
  }], null, { caseFields: [{
29910
30660
  type: Input
29911
30661
  }] }); })();
29912
30662
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadComplexFieldRawComponent, { className: "ReadComplexFieldRawComponent", filePath: "lib/shared/components/palette/complex/read-complex-field-raw.component.ts", lineNumber: 17 }); })();
29913
30663
 
29914
30664
  const _c0$k = (a0, a1, a2, a3) => [a0, false, undefined, true, a1, a2, a3];
29915
- function ReadComplexFieldTableComponent_ng_container_9_ng_container_1_Template(rf, ctx) { if (rf & 1) {
30665
+ function ReadComplexFieldTableComponent_ng_container_9_ng_container_2_Template(rf, ctx) { if (rf & 1) {
29916
30666
  i0.ɵɵelementContainerStart(0);
29917
- i0.ɵɵelementStart(1, "tr", 7)(2, "td", 8)(3, "span", 3);
29918
- i0.ɵɵelement(4, "ccd-field-read", 9);
30667
+ i0.ɵɵelementStart(1, "tr", 8)(2, "td", 9)(3, "span", 3);
30668
+ i0.ɵɵelement(4, "ccd-field-read", 10);
29919
30669
  i0.ɵɵelementEnd()()();
29920
30670
  i0.ɵɵelementContainerEnd();
29921
30671
  } if (rf & 2) {
@@ -29926,13 +30676,13 @@ function ReadComplexFieldTableComponent_ng_container_9_ng_container_1_Template(r
29926
30676
  i0.ɵɵadvance(3);
29927
30677
  i0.ɵɵproperty("topLevelFormGroup", ctx_r1.topLevelFormGroup)("caseFields", ctx_r1.caseFields)("caseField", field_r1)("context", ctx_r1.context);
29928
30678
  } }
29929
- function ReadComplexFieldTableComponent_ng_container_9_ng_template_3_Template(rf, ctx) { if (rf & 1) {
29930
- i0.ɵɵelementStart(0, "tr", 10)(1, "th", 11)(2, "span", 3);
30679
+ function ReadComplexFieldTableComponent_ng_container_9_ng_template_4_Template(rf, ctx) { if (rf & 1) {
30680
+ i0.ɵɵelementStart(0, "tr", 11)(1, "th", 12)(2, "span", 3);
29931
30681
  i0.ɵɵtext(3);
29932
30682
  i0.ɵɵpipe(4, "rpxTranslate");
29933
30683
  i0.ɵɵelementEnd()();
29934
30684
  i0.ɵɵelementStart(5, "td")(6, "span", 3);
29935
- i0.ɵɵelement(7, "ccd-field-read", 9);
30685
+ i0.ɵɵelement(7, "ccd-field-read", 10);
29936
30686
  i0.ɵɵelementEnd()()();
29937
30687
  } if (rf & 2) {
29938
30688
  const field_r1 = i0.ɵɵnextContext().$implicit;
@@ -29944,16 +30694,19 @@ function ReadComplexFieldTableComponent_ng_container_9_ng_template_3_Template(rf
29944
30694
  i0.ɵɵproperty("topLevelFormGroup", ctx_r1.topLevelFormGroup)("caseFields", ctx_r1.caseFields)("caseField", field_r1)("context", ctx_r1.context);
29945
30695
  } }
29946
30696
  function ReadComplexFieldTableComponent_ng_container_9_Template(rf, ctx) { if (rf & 1) {
29947
- i0.ɵɵelementContainerStart(0);
29948
- i0.ɵɵtemplate(1, ReadComplexFieldTableComponent_ng_container_9_ng_container_1_Template, 5, 5, "ng-container", 6);
29949
- i0.ɵɵpipe(2, "ccdIsCompound");
29950
- i0.ɵɵtemplate(3, ReadComplexFieldTableComponent_ng_container_9_ng_template_3_Template, 8, 8, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
29951
- i0.ɵɵelementContainerEnd();
30697
+ i0.ɵɵelementContainerStart(0)(1, 6);
30698
+ i0.ɵɵtemplate(2, ReadComplexFieldTableComponent_ng_container_9_ng_container_2_Template, 5, 5, "ng-container", 7);
30699
+ i0.ɵɵpipe(3, "ccdIsCompound");
30700
+ i0.ɵɵtemplate(4, ReadComplexFieldTableComponent_ng_container_9_ng_template_4_Template, 8, 8, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
30701
+ i0.ɵɵelementContainerEnd()();
29952
30702
  } if (rf & 2) {
29953
30703
  const field_r1 = ctx.$implicit;
29954
- const SimpleRow_r3 = i0.ɵɵreference(4);
30704
+ const SimpleRow_r3 = i0.ɵɵreference(5);
30705
+ const ctx_r1 = i0.ɵɵnextContext();
30706
+ i0.ɵɵadvance();
30707
+ i0.ɵɵproperty("caseField", field_r1)("formGroup", ctx_r1.topLevelFormGroup)("contextFields", ctx_r1.caseFields);
29955
30708
  i0.ɵɵadvance();
29956
- i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(2, 2, field_r1))("ngIfElse", SimpleRow_r3);
30709
+ i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(3, 5, field_r1))("ngIfElse", SimpleRow_r3);
29957
30710
  } }
29958
30711
  class ReadComplexFieldTableComponent extends AbstractFieldReadComponent {
29959
30712
  // parent_ can be replaced with any ***_ - underscore is only important character
@@ -29974,7 +30727,7 @@ class ReadComplexFieldTableComponent extends AbstractFieldReadComponent {
29974
30727
  this.path = ReadComplexFieldTableComponent.DUMMY_STRING_PRE + this.idPrefix + ReadComplexFieldTableComponent.DUMMY_STRING_POST;
29975
30728
  }
29976
30729
  static ɵfac = /*@__PURE__*/ (() => { let ɵReadComplexFieldTableComponent_BaseFactory; return function ReadComplexFieldTableComponent_Factory(__ngFactoryType__) { return (ɵReadComplexFieldTableComponent_BaseFactory || (ɵReadComplexFieldTableComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadComplexFieldTableComponent)))(__ngFactoryType__ || ReadComplexFieldTableComponent); }; })();
29977
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadComplexFieldTableComponent, selectors: [["ccd-read-complex-field-table"]], inputs: { caseFields: "caseFields" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 11, vars: 17, consts: [["SimpleRow", ""], [1, "complex-panel"], [1, "complex-panel-title"], [1, "text-16"], ["aria-describedby", "complex field table", 1, "complex-panel-table"], [4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"], [1, "complex-panel-compound-field", 3, "hidden"], ["colspan", "2"], [3, "topLevelFormGroup", "caseFields", "caseField", "context"], [1, "complex-panel-simple-field", 3, "hidden"], ["id", "complex-panel-simple-field-label"]], template: function ReadComplexFieldTableComponent_Template(rf, ctx) { if (rf & 1) {
30730
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadComplexFieldTableComponent, selectors: [["ccd-read-complex-field-table"]], inputs: { caseFields: "caseFields" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 11, vars: 17, consts: [["SimpleRow", ""], [1, "complex-panel"], [1, "complex-panel-title"], [1, "text-16"], ["aria-describedby", "complex field table", 1, "complex-panel-table"], [4, "ngFor", "ngForOf"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields"], [4, "ngIf", "ngIfElse"], [1, "complex-panel-compound-field", 3, "hidden"], ["colspan", "2"], [3, "topLevelFormGroup", "caseFields", "caseField", "context"], [1, "complex-panel-simple-field", 3, "hidden"], ["id", "complex-panel-simple-field-label"]], template: function ReadComplexFieldTableComponent_Template(rf, ctx) { if (rf & 1) {
29978
30731
  i0.ɵɵelementStart(0, "div", 1)(1, "dl", 2)(2, "dt")(3, "span", 3);
29979
30732
  i0.ɵɵtext(4);
29980
30733
  i0.ɵɵpipe(5, "rpxTranslate");
@@ -29982,7 +30735,7 @@ class ReadComplexFieldTableComponent extends AbstractFieldReadComponent {
29982
30735
  i0.ɵɵelement(6, "dd");
29983
30736
  i0.ɵɵelementEnd();
29984
30737
  i0.ɵɵelementStart(7, "table", 4)(8, "tbody");
29985
- i0.ɵɵtemplate(9, ReadComplexFieldTableComponent_ng_container_9_Template, 5, 4, "ng-container", 5);
30738
+ i0.ɵɵtemplate(9, ReadComplexFieldTableComponent_ng_container_9_Template, 6, 7, "ng-container", 5);
29986
30739
  i0.ɵɵpipe(10, "ccdReadFieldsFilter");
29987
30740
  i0.ɵɵelementEnd()()();
29988
30741
  } if (rf & 2) {
@@ -29994,7 +30747,7 @@ class ReadComplexFieldTableComponent extends AbstractFieldReadComponent {
29994
30747
  }
29995
30748
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadComplexFieldTableComponent, [{
29996
30749
  type: Component,
29997
- args: [{ selector: 'ccd-read-complex-field-table', standalone: false, template: "<div class=\"complex-panel\">\n <dl class=\"complex-panel-title\"><dt><span class=\"text-16\">{{caseField.label | rpxTranslate}}</span></dt><dd></dd></dl>\n <table class=\"complex-panel-table\" aria-describedby=\"complex field table\">\n <tbody>\n <ng-container *ngFor=\"let field of caseField | ccdReadFieldsFilter:false :undefined :true :topLevelFormGroup :path :idPrefix\">\n <ng-container *ngIf=\"(field | ccdIsCompound); else SimpleRow\">\n <tr class=\"complex-panel-compound-field\" [hidden]=\"field.hidden\">\n <td colspan=\"2\">\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"topLevelFormGroup\" [caseFields]=\"caseFields\"\n [caseField]=\"field\" [context]=\"context\"></ccd-field-read>\n </span>\n </td>\n </tr>\n </ng-container>\n <ng-template #SimpleRow>\n <tr class=\"complex-panel-simple-field\" [hidden]=\"field.hidden\">\n <th id=\"complex-panel-simple-field-label\"><span class=\"text-16\">{{field.label | rpxTranslate}}</span></th>\n <td>\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"topLevelFormGroup\" [caseFields]=\"caseFields\"\n [caseField]=\"field\" [context]=\"context\"></ccd-field-read>\n </span>\n </td>\n </tr>\n </ng-template>\n </ng-container>\n </tbody>\n </table>\n</div>\n", styles: [".complex-panel{margin:13px 0;border:1px solid #bfc1c3}.complex-panel .complex-panel-title{background-color:#dee0e2;padding:5px 5px 2px;border-bottom:1px solid #bfc1c3;display:block;color:#0b0c0c;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media(min-width:641px){.complex-panel .complex-panel-title{font-size:19px;line-height:1.3157894737}}.complex-panel .complex-panel-table>tbody>tr>th{vertical-align:top}.complex-panel .complex-panel-table>tbody>tr:last-child>th,.complex-panel .complex-panel-table>tbody>tr:last-child>td{border-bottom:none}.complex-panel .complex-panel-simple-field th{padding-left:5px;width:295px}.complex-panel .complex-panel-compound-field td{padding:5px}\n"] }]
30750
+ args: [{ selector: 'ccd-read-complex-field-table', standalone: false, template: "<div class=\"complex-panel\">\n <dl class=\"complex-panel-title\"><dt><span class=\"text-16\">{{caseField.label | rpxTranslate}}</span></dt><dd></dd></dl>\n <table class=\"complex-panel-table\" aria-describedby=\"complex field table\">\n <tbody>\n <ng-container *ngFor=\"let field of caseField | ccdReadFieldsFilter:false :undefined :true :topLevelFormGroup :path :idPrefix\">\n <ng-container ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"topLevelFormGroup\" [contextFields]=\"caseFields\">\n <ng-container *ngIf=\"(field | ccdIsCompound); else SimpleRow\">\n <tr class=\"complex-panel-compound-field\" [hidden]=\"field.hidden\">\n <td colspan=\"2\">\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"topLevelFormGroup\" [caseFields]=\"caseFields\"\n [caseField]=\"field\" [context]=\"context\"></ccd-field-read>\n </span>\n </td>\n </tr>\n </ng-container>\n <ng-template #SimpleRow>\n <tr class=\"complex-panel-simple-field\" [hidden]=\"field.hidden\">\n <th id=\"complex-panel-simple-field-label\"><span class=\"text-16\">{{field.label | rpxTranslate}}</span></th>\n <td>\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"topLevelFormGroup\" [caseFields]=\"caseFields\"\n [caseField]=\"field\" [context]=\"context\"></ccd-field-read>\n </span>\n </td>\n </tr>\n </ng-template>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n</div>\n", styles: [".complex-panel{margin:13px 0;border:1px solid #bfc1c3}.complex-panel .complex-panel-title{background-color:#dee0e2;padding:5px 5px 2px;border-bottom:1px solid #bfc1c3;display:block;color:#0b0c0c;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media(min-width:641px){.complex-panel .complex-panel-title{font-size:19px;line-height:1.3157894737}}.complex-panel .complex-panel-table>tbody>tr>th{vertical-align:top}.complex-panel .complex-panel-table>tbody>tr:last-child>th,.complex-panel .complex-panel-table>tbody>tr:last-child>td{border-bottom:none}.complex-panel .complex-panel-simple-field th{padding-left:5px;width:295px}.complex-panel .complex-panel-compound-field td{padding:5px}\n"] }]
29998
30751
  }], null, { caseFields: [{
29999
30752
  type: Input
30000
30753
  }] }); })();
@@ -32368,10 +33121,12 @@ class PaletteModule {
32368
33121
  MatLegacyAutocompleteModule,
32369
33122
  CdkTreeModule,
32370
33123
  OverlayModule,
33124
+ PaymentLibModule,
32371
33125
  RpxTranslationModule.forChild(),
32372
33126
  CdkTreeModule,
32373
33127
  OverlayModule,
32374
33128
  MatLegacyDialogModule,
33129
+ MediaViewerModule,
32375
33130
  LoadingModule,
32376
33131
  MarkdownComponentModule,
32377
33132
  ErrorsModule, NgxMatDatetimePickerModule,
@@ -32411,10 +33166,12 @@ class PaletteModule {
32411
33166
  MatLegacyAutocompleteModule,
32412
33167
  CdkTreeModule,
32413
33168
  OverlayModule,
33169
+ PaymentLibModule,
32414
33170
  RpxTranslationModule.forChild(),
32415
33171
  CdkTreeModule,
32416
33172
  OverlayModule,
32417
33173
  MatLegacyDialogModule,
33174
+ MediaViewerModule,
32418
33175
  LoadingModule,
32419
33176
  MarkdownComponentModule,
32420
33177
  ErrorsModule
@@ -32617,9 +33374,11 @@ class PaletteModule {
32617
33374
  MatDatepickerModule,
32618
33375
  MatLegacyAutocompleteModule,
32619
33376
  CdkTreeModule,
32620
- OverlayModule, i1.RpxTranslationModule, CdkTreeModule,
33377
+ OverlayModule,
33378
+ PaymentLibModule, i1.RpxTranslationModule, CdkTreeModule,
32621
33379
  OverlayModule,
32622
33380
  MatLegacyDialogModule,
33381
+ MediaViewerModule,
32623
33382
  LoadingModule,
32624
33383
  MarkdownComponentModule,
32625
33384
  ErrorsModule], exports: [NgxMatDatetimePickerModule,
@@ -32768,8 +33527,8 @@ i0.ɵɵsetComponentScope(ReadOrderSummaryRowComponent, function () { return [Rea
32768
33527
  i0.ɵɵsetComponentScope(ReadComplexFieldComponent, function () { return [i4.NgSwitch, i4.NgSwitchCase, i4.NgSwitchDefault, ReadComplexFieldRawComponent,
32769
33528
  ReadComplexFieldTableComponent,
32770
33529
  ReadComplexFieldCollectionTableComponent]; }, []);
32771
- i0.ɵɵsetComponentScope(ReadComplexFieldRawComponent, function () { return [i4.NgForOf, FieldReadComponent]; }, function () { return [ReadFieldsFilterPipe, i1.RpxTranslatePipe]; });
32772
- i0.ɵɵsetComponentScope(ReadComplexFieldTableComponent, function () { return [i4.NgForOf, i4.NgIf, FieldReadComponent]; }, function () { return [IsCompoundPipe, ReadFieldsFilterPipe, i1.RpxTranslatePipe]; });
33530
+ i0.ɵɵsetComponentScope(ReadComplexFieldRawComponent, function () { return [i4.NgForOf, i3.NgControlStatusGroup, i3.FormGroupDirective, LabelSubstitutorDirective, FieldReadComponent]; }, function () { return [ReadFieldsFilterPipe, i1.RpxTranslatePipe]; });
33531
+ i0.ɵɵsetComponentScope(ReadComplexFieldTableComponent, function () { return [i4.NgForOf, i4.NgIf, i3.NgControlStatusGroup, i3.FormGroupDirective, LabelSubstitutorDirective, FieldReadComponent]; }, function () { return [IsCompoundPipe, ReadFieldsFilterPipe, i1.RpxTranslatePipe]; });
32773
33532
  i0.ɵɵsetComponentScope(ReadComplexFieldCollectionTableComponent, function () { return [i4.NgForOf, i4.NgIf, FieldReadComponent,
32774
33533
  ReadCaseLinkFieldComponent]; }, function () { return [i4.KeyValuePipe, IsCompoundPipe, CcdCollectionTableCaseFieldsFilterPipe, ReadFieldsFilterPipe, i1.RpxTranslatePipe]; });
32775
33534
  i0.ɵɵsetComponentScope(ReadCaseFlagFieldComponent, function () { return [i4.NgForOf, i4.NgIf, i4.NgSwitch, i4.NgSwitchCase, i4.NgSwitchDefault,
@@ -32806,12 +33565,12 @@ i0.ɵɵsetComponentScope(WriteDateContainerFieldComponent, function () { return
32806
33565
  i0.ɵɵsetComponentScope(WriteCollectionFieldComponent, function () { return [i4.NgForOf, i4.NgIf, i3.NgControlStatusGroup, i3.FormGroupDirective, MarkdownComponent, FieldWriteComponent]; }, function () { return [FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe]; });
32807
33566
  i0.ɵɵsetComponentScope(
32808
33567
  // ComponentLauncher web components
32809
- CaseFileViewFieldComponent, function () { return [i4.NgForOf, i4.NgIf, CaseFileViewFolderComponent]; }, []);
33568
+ CaseFileViewFieldComponent, function () { return [i4.NgForOf, i4.NgIf, i13.MediaViewerComponent, CaseFileViewFolderComponent]; }, []);
32810
33569
  i0.ɵɵsetComponentScope(
32811
33570
  // Components for case flags
32812
33571
  CaseFlagTableComponent, function () { return [i4.NgClass, i4.NgForOf, i4.NgIf]; }, function () { return [i4.DatePipe, i1.RpxTranslatePipe, FlagFieldDisplayPipe]; });
32813
33572
  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,
33573
+ 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
33574
  LanguageInterpreterDisplayPipe]; });
32816
33575
  i0.ɵɵsetComponentScope(ManageCaseFlagsComponent, function () { return [i4.NgClass, i4.NgForOf, i4.NgIf, i3.NgControlStatusGroup, i3.FormGroupDirective]; }, function () { return [i1.RpxTranslatePipe, ManageCaseFlagsLabelDisplayPipe]; });
32817
33576
  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]; });
@@ -34877,6 +35636,7 @@ class WorkbasketFiltersComponent {
34877
35636
  }
34878
35637
  }
34879
35638
  onJurisdictionIdChange() {
35639
+ this.clearStoredWorkbasketFilterValues();
34880
35640
  if (this.selected.jurisdiction) {
34881
35641
  this.jurisdictionService.announceSelectedJurisdiction(this.selected.jurisdiction);
34882
35642
  this.selectedJurisdictionCaseTypes = this.selected.jurisdiction.caseTypes.length > 0
@@ -34891,7 +35651,7 @@ class WorkbasketFiltersComponent {
34891
35651
  this.selected.caseState = null;
34892
35652
  this.clearWorkbasketInputs();
34893
35653
  if (!this.isApplyButtonDisabled()) {
34894
- this.onCaseTypeIdChange();
35654
+ this.onCaseTypeIdChange(false);
34895
35655
  }
34896
35656
  }
34897
35657
  else {
@@ -34899,7 +35659,10 @@ class WorkbasketFiltersComponent {
34899
35659
  this.resetCaseState();
34900
35660
  }
34901
35661
  }
34902
- onCaseTypeIdChange() {
35662
+ onCaseTypeIdChange(clearStoredValues = true) {
35663
+ if (clearStoredValues) {
35664
+ this.clearStoredWorkbasketFilterValues();
35665
+ }
34903
35666
  if (this.selected.caseType) {
34904
35667
  this.selectedCaseTypeStates = this.sortStates(this.selected.caseType.states);
34905
35668
  this.selected.caseState = null;
@@ -34993,7 +35756,7 @@ class WorkbasketFiltersComponent {
34993
35756
  this.selectedJurisdictionCaseTypes = this.selected.jurisdiction.caseTypes;
34994
35757
  this.selected.caseType = this.selectCaseType(this.selected, this.selectedJurisdictionCaseTypes, routeSnapshot);
34995
35758
  if (this.selected.caseType) {
34996
- this.onCaseTypeIdChange();
35759
+ this.onCaseTypeIdChange(false);
34997
35760
  this.selected.caseState = this.selectCaseState(this.selected.caseType, routeSnapshot);
34998
35761
  }
34999
35762
  this.workbasketDefaults = true;
@@ -35040,6 +35803,9 @@ class WorkbasketFiltersComponent {
35040
35803
  this.workbasketInputsReady = false;
35041
35804
  this.workbasketInputs = [];
35042
35805
  }
35806
+ clearStoredWorkbasketFilterValues() {
35807
+ this.windowService.removeLocalStorage(FORM_GROUP_VAL_LOC_STORAGE);
35808
+ }
35043
35809
  resetCaseState() {
35044
35810
  this.defaults.state_id = null;
35045
35811
  this.selected.caseState = null;
@@ -37981,12 +38747,9 @@ class TaskAssignedComponent {
37981
38747
  // Current user is a caseworker?
37982
38748
  this.jurisdiction = this.task.jurisdiction;
37983
38749
  this.caseType = this.task.case_type_id;
37984
- this.caseworkerSubscription = this.caseworkerService.getCaseworkers(this.task.jurisdiction).subscribe(result => {
37985
- if (result && result[0].service === this.task.jurisdiction && result[0].caseworkers) {
37986
- const caseworker = result[0].caseworkers.find(x => x.idamId === this.task.assignee);
37987
- if (caseworker) {
37988
- this.assignedUserName = `${caseworker.firstName} ${caseworker.lastName}`;
37989
- }
38750
+ this.caseworkerSubscription = this.caseworkerService.getUserByIdamId(this.task.assignee).subscribe(caseworker => {
38751
+ if (caseworker) {
38752
+ this.assignedUserName = `${caseworker.firstName} ${caseworker.lastName}`;
37990
38753
  }
37991
38754
  if (!this.assignedUserName) {
37992
38755
  // Current user is a judicial user?
@@ -42034,5 +42797,5 @@ class TestRouteSnapshotBuilder {
42034
42797
  * Generated bundle index. Do not edit.
42035
42798
  */
42036
42799
 
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 };
42800
+ 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
42801
  //# sourceMappingURL=hmcts-ccd-case-ui-toolkit.mjs.map