@hmcts/ccd-case-ui-toolkit 7.3.39-exui-4089 → 7.3.39-exui-4090

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.
@@ -58,7 +58,7 @@ import * as i10 from '@angular/material/legacy-tabs';
58
58
  import { MatLegacyTabsModule } from '@angular/material/legacy-tabs';
59
59
  import { compressToUTF16, decompressFromUTF16 } from 'lz-string';
60
60
 
61
- const _c0$17 = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
61
+ const _c0$18 = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
62
62
  const _c1$u = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
63
63
  function FooterComponent_div_2_Template(rf, ctx) { if (rf & 1) {
64
64
  i0.ɵɵelementStart(0, "div", 3)(1, "div", 4);
@@ -136,7 +136,7 @@ class FooterComponent {
136
136
  workhours;
137
137
  static ɵfac = function FooterComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FooterComponent)(); };
138
138
  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) {
139
- i0.ɵɵprojectionDef(_c0$17);
139
+ i0.ɵɵprojectionDef(_c0$18);
140
140
  i0.ɵɵelementStart(0, "footer", 0)(1, "div", 1);
141
141
  i0.ɵɵtemplate(2, FooterComponent_div_2_Template, 20, 15, "div", 2)(3, FooterComponent_div_3_Template, 20, 16, "div", 2);
142
142
  i0.ɵɵelementEnd()();
@@ -163,7 +163,7 @@ class FooterComponent {
163
163
  }] }); })();
164
164
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FooterComponent, { className: "FooterComponent", filePath: "lib/components/footer/footer.component.ts", lineNumber: 9 }); })();
165
165
 
166
- const _c0$16 = [[["", "headerNavigation", ""]]];
166
+ const _c0$17 = [[["", "headerNavigation", ""]]];
167
167
  const _c1$t = ["[headerNavigation]"];
168
168
  function HeaderBarComponent_div_3_Template(rf, ctx) { if (rf & 1) {
169
169
  i0.ɵɵelementStart(0, "div")(1, "a", 12);
@@ -206,7 +206,7 @@ class HeaderBarComponent {
206
206
  }
207
207
  static ɵfac = function HeaderBarComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || HeaderBarComponent)(); };
208
208
  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) {
209
- i0.ɵɵprojectionDef(_c0$16);
209
+ i0.ɵɵprojectionDef(_c0$17);
210
210
  i0.ɵɵelementStart(0, "header", 0)(1, "div", 1)(2, "div", 2);
211
211
  i0.ɵɵtemplate(3, HeaderBarComponent_div_3_Template, 4, 1, "div", 3)(4, HeaderBarComponent_div_4_Template, 5, 3, "div", 4);
212
212
  i0.ɵɵelementEnd();
@@ -256,13 +256,13 @@ class HeaderBarComponent {
256
256
  }] }); })();
257
257
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(HeaderBarComponent, { className: "HeaderBarComponent", filePath: "lib/components/header/header-bar/header-bar.component.ts", lineNumber: 9 }); })();
258
258
 
259
- const _c0$15 = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
259
+ const _c0$16 = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
260
260
  const _c1$s = ["[leftNavLinks]", "[rightNavLinks]"];
261
261
  class NavigationComponent {
262
262
  isSolicitor;
263
263
  static ɵfac = function NavigationComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || NavigationComponent)(); };
264
264
  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) {
265
- i0.ɵɵprojectionDef(_c0$15);
265
+ i0.ɵɵprojectionDef(_c0$16);
266
266
  i0.ɵɵelementStart(0, "div")(1, "nav", 0);
267
267
  i0.ɵɵprojection(2);
268
268
  i0.ɵɵprojection(3, 1);
@@ -380,12 +380,12 @@ class HeadersModule {
380
380
  }], null, null); })();
381
381
  (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(HeadersModule, { declarations: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent], imports: [CommonModule, RouterModule, i1.RpxTranslationModule], exports: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent] }); })();
382
382
 
383
- const _c0$14 = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
383
+ const _c0$15 = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
384
384
  const _c1$r = ["[topBody]", "[leftBody]", "[rightBody]"];
385
385
  class BodyComponent {
386
386
  static ɵfac = function BodyComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BodyComponent)(); };
387
387
  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) {
388
- i0.ɵɵprojectionDef(_c0$14);
388
+ i0.ɵɵprojectionDef(_c0$15);
389
389
  i0.ɵɵelementStart(0, "div", 0);
390
390
  i0.ɵɵprojection(1);
391
391
  i0.ɵɵprojection(2, 1);
@@ -399,7 +399,7 @@ class BodyComponent {
399
399
  }], null, null); })();
400
400
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BodyComponent, { className: "BodyComponent", filePath: "lib/components/body/body.component.ts", lineNumber: 10 }); })();
401
401
 
402
- const _c0$13 = a0 => ({ "govuk-input--error": a0 });
402
+ const _c0$14 = a0 => ({ "govuk-input--error": a0 });
403
403
  function DateInputComponent_div_19_Template(rf, ctx) { if (rf & 1) {
404
404
  const _r5 = i0.ɵɵgetCurrentView();
405
405
  i0.ɵɵelementStart(0, "div", 15)(1, "span", 8);
@@ -416,7 +416,7 @@ function DateInputComponent_div_19_Template(rf, ctx) { if (rf & 1) {
416
416
  i0.ɵɵadvance();
417
417
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 7, "Hour"));
418
418
  i0.ɵɵadvance(2);
419
- i0.ɵɵproperty("id", ctx_r6.hourId())("name", ctx_r6.hourId())("value", ctx_r6.displayHour)("ngClass", i0.ɵɵpureFunction1(9, _c0$13, ctx_r6.isInvalid));
419
+ i0.ɵɵproperty("id", ctx_r6.hourId())("name", ctx_r6.hourId())("value", ctx_r6.displayHour)("ngClass", i0.ɵɵpureFunction1(9, _c0$14, ctx_r6.isInvalid));
420
420
  i0.ɵɵattribute("aria-labelledby", "hour-label-" + ctx_r6.hourId());
421
421
  } }
422
422
  function DateInputComponent_div_20_Template(rf, ctx) { if (rf & 1) {
@@ -435,7 +435,7 @@ function DateInputComponent_div_20_Template(rf, ctx) { if (rf & 1) {
435
435
  i0.ɵɵadvance();
436
436
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 7, "Minute"));
437
437
  i0.ɵɵadvance(2);
438
- i0.ɵɵproperty("id", ctx_r6.minuteId())("name", ctx_r6.minuteId())("value", ctx_r6.displayMinute)("ngClass", i0.ɵɵpureFunction1(9, _c0$13, ctx_r6.isInvalid));
438
+ i0.ɵɵproperty("id", ctx_r6.minuteId())("name", ctx_r6.minuteId())("value", ctx_r6.displayMinute)("ngClass", i0.ɵɵpureFunction1(9, _c0$14, ctx_r6.isInvalid));
439
439
  i0.ɵɵattribute("aria-labelledby", "minute-label-" + ctx_r6.minuteId());
440
440
  } }
441
441
  function DateInputComponent_div_21_Template(rf, ctx) { if (rf & 1) {
@@ -454,7 +454,7 @@ function DateInputComponent_div_21_Template(rf, ctx) { if (rf & 1) {
454
454
  i0.ɵɵadvance();
455
455
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 7, "Second"));
456
456
  i0.ɵɵadvance(2);
457
- i0.ɵɵproperty("id", ctx_r6.secondId())("name", ctx_r6.secondId())("value", ctx_r6.displaySecond)("ngClass", i0.ɵɵpureFunction1(9, _c0$13, ctx_r6.isInvalid));
457
+ i0.ɵɵproperty("id", ctx_r6.secondId())("name", ctx_r6.secondId())("value", ctx_r6.displaySecond)("ngClass", i0.ɵɵpureFunction1(9, _c0$14, ctx_r6.isInvalid));
458
458
  i0.ɵɵattribute("aria-labelledby", "second-label-" + ctx_r6.secondId());
459
459
  } }
460
460
  class DateInputComponent {
@@ -690,21 +690,21 @@ class DateInputComponent {
690
690
  i0.ɵɵadvance();
691
691
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 24, "Day"));
692
692
  i0.ɵɵadvance(2);
693
- i0.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0.ɵɵpureFunction1(30, _c0$13, ctx.isInvalid));
693
+ i0.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0.ɵɵpureFunction1(30, _c0$14, ctx.isInvalid));
694
694
  i0.ɵɵattribute("aria-labelledby", "day-label-" + ctx.dayId());
695
695
  i0.ɵɵadvance(3);
696
696
  i0.ɵɵattribute("id", "month-label-" + ctx.monthId());
697
697
  i0.ɵɵadvance();
698
698
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 26, "Month"));
699
699
  i0.ɵɵadvance(2);
700
- i0.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0.ɵɵpureFunction1(32, _c0$13, ctx.isInvalid));
700
+ i0.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0.ɵɵpureFunction1(32, _c0$14, ctx.isInvalid));
701
701
  i0.ɵɵattribute("aria-labelledby", "month-label-" + ctx.monthId());
702
702
  i0.ɵɵadvance(3);
703
703
  i0.ɵɵattribute("id", "year-label-" + ctx.yearId());
704
704
  i0.ɵɵadvance();
705
705
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(16, 28, "Year"));
706
706
  i0.ɵɵadvance(2);
707
- i0.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0.ɵɵpureFunction1(34, _c0$13, ctx.isInvalid));
707
+ i0.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0.ɵɵpureFunction1(34, _c0$14, ctx.isInvalid));
708
708
  i0.ɵɵattribute("aria-labelledby", "year-label-" + ctx.yearId());
709
709
  i0.ɵɵadvance(2);
710
710
  i0.ɵɵproperty("ngIf", ctx.isDateTime);
@@ -741,7 +741,7 @@ class DateInputComponent {
741
741
  }] }); })();
742
742
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DateInputComponent, { className: "DateInputComponent", filePath: "lib/components/form/date-input/date-input.component.ts", lineNumber: 21 }); })();
743
743
 
744
- const _c0$12 = ["*"];
744
+ const _c0$13 = ["*"];
745
745
  function AlertComponent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
746
746
  i0.ɵɵelementContainerStart(0);
747
747
  i0.ɵɵnamespaceSVG();
@@ -791,7 +791,7 @@ class AlertComponent {
791
791
  showIcon = true;
792
792
  alertMessageType = AlertMessageType;
793
793
  static ɵfac = function AlertComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AlertComponent)(); };
794
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, standalone: false, ngContentSelectors: _c0$12, 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) {
794
+ 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) {
795
795
  i0.ɵɵprojectionDef();
796
796
  i0.ɵɵelementStart(0, "div", 0);
797
797
  i0.ɵɵelementContainerStart(1, 1);
@@ -993,11 +993,11 @@ class NotificationBannerComponent {
993
993
  i0.ɵɵtemplate(0, NotificationBannerComponent_div_0_Template, 14, 10, "div", 0);
994
994
  } if (rf & 2) {
995
995
  i0.ɵɵproperty("ngIf", ctx.notificationBannerConfig);
996
- } }, dependencies: [i5.NgClass, i5.NgIf, i5.NgSwitch, i5.NgSwitchCase], styles: [".govuk-notification-banner[_ngcontent-%COMP%] .govuk-notification-banner__content[_ngcontent-%COMP%] .govuk-notification-banner__heading[_ngcontent-%COMP%]{margin-left:0;max-width:fit-content}.govuk-notification-banner[_ngcontent-%COMP%] .govuk-notification-banner__content[_ngcontent-%COMP%] .govuk-notification-banner__heading[_ngcontent-%COMP%] .govuk-notification-banner__link[_ngcontent-%COMP%]{margin-left:10px}.notification-banner-information[_ngcontent-%COMP%], .notification-banner-error[_ngcontent-%COMP%]{background-color:#d4351c;border:5px solid #d4351c}.notification-banner-warning[_ngcontent-%COMP%]{background-color:#912b88;border:5px solid #912b88}.notification-banner-success[_ngcontent-%COMP%]{background-color:#006435;border:5px solid #006435}"] });
996
+ } }, dependencies: [i5.NgClass, i5.NgIf, i5.NgSwitch, i5.NgSwitchCase], styles: [".govuk-notification-banner[_ngcontent-%COMP%] .govuk-notification-banner__content[_ngcontent-%COMP%] .govuk-notification-banner__heading[_ngcontent-%COMP%]{margin-left:0;max-width:900px}.govuk-notification-banner[_ngcontent-%COMP%] .govuk-notification-banner__content[_ngcontent-%COMP%] .govuk-notification-banner__heading[_ngcontent-%COMP%] .govuk-notification-banner__link[_ngcontent-%COMP%]{margin-left:10px}.notification-banner-information[_ngcontent-%COMP%], .notification-banner-error[_ngcontent-%COMP%]{background-color:#d4351c;border:5px solid #d4351c}.notification-banner-warning[_ngcontent-%COMP%]{background-color:#912b88;border:5px solid #912b88}.notification-banner-success[_ngcontent-%COMP%]{background-color:#006435;border:5px solid #006435}"] });
997
997
  }
998
998
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NotificationBannerComponent, [{
999
999
  type: Component,
1000
- args: [{ selector: 'ccd-notification-banner', standalone: false, template: "<div *ngIf=\"notificationBannerConfig\"\n class=\"govuk-notification-banner\"\n [ngClass]=\"notificationBannerConfig.headerClass\"\n role=\"region\"\n aria-labelledby=\"govuk-notification-banner-title\"\n data-module=\"govuk-notification-banner\">\n\n <div class=\"govuk-notification-banner__header\">\n <h2 class=\"govuk-notification-banner__title\" id=\"govuk-notification-banner-title\">\n {{notificationBannerConfig.headingText}}\n </h2>\n </div>\n <div class=\"govuk-notification-banner__content\">\n <p class=\"govuk-notification-banner__heading\">\n <ng-container [ngSwitch]=\"notificationBannerConfig.bannerType\">\n <ng-container *ngSwitchCase=\"notificationBannerType.WARNING\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\"\n xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"36\" width=\"36\">\n <path 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\"></path>\n </svg>\n </ng-container>\n <ng-container *ngSwitchCase=\"notificationBannerType.ERROR\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\"\n xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"36\" width=\"36\">\n <path 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\"></path>\n </svg>\n </ng-container>\n <ng-container *ngSwitchCase=\"notificationBannerType.SUCCESS\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\"\n xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"36\" width=\"36\">\n <path d=\"M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z\"></path>\n </svg>\n </ng-container>\n <ng-container *ngSwitchCase=\"notificationBannerType.INFORMATION\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\"\n xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"36\" width=\"36\">\n <path 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\"></path>\n </svg>\n </ng-container>\n </ng-container>\n {{notificationBannerConfig.description}}\n <a *ngIf=\"notificationBannerConfig.showLink && !notificationBannerConfig.triggerOutputEvent\"\n class=\"govuk-notification-banner__link\"\n href=\"{{notificationBannerConfig.linkUrl}}\">{{notificationBannerConfig.linkText}}</a>\n <a *ngIf=\"notificationBannerConfig.showLink && notificationBannerConfig.triggerOutputEvent\"\n class=\"govuk-notification-banner__link\"\n href=\"#\"\n (click)=\"onLinkClick(notificationBannerConfig.triggerOutputEventText); $event.preventDefault()\">{{notificationBannerConfig.linkText}}</a>\n </p>\n </div>\n</div>\n", styles: [".govuk-notification-banner .govuk-notification-banner__content .govuk-notification-banner__heading{margin-left:0;max-width:fit-content}.govuk-notification-banner .govuk-notification-banner__content .govuk-notification-banner__heading .govuk-notification-banner__link{margin-left:10px}.notification-banner-information,.notification-banner-error{background-color:#d4351c;border:5px solid #d4351c}.notification-banner-warning{background-color:#912b88;border:5px solid #912b88}.notification-banner-success{background-color:#006435;border:5px solid #006435}\n"] }]
1000
+ args: [{ selector: 'ccd-notification-banner', standalone: false, template: "<div *ngIf=\"notificationBannerConfig\"\n class=\"govuk-notification-banner\"\n [ngClass]=\"notificationBannerConfig.headerClass\"\n role=\"region\"\n aria-labelledby=\"govuk-notification-banner-title\"\n data-module=\"govuk-notification-banner\">\n\n <div class=\"govuk-notification-banner__header\">\n <h2 class=\"govuk-notification-banner__title\" id=\"govuk-notification-banner-title\">\n {{notificationBannerConfig.headingText}}\n </h2>\n </div>\n <div class=\"govuk-notification-banner__content\">\n <p class=\"govuk-notification-banner__heading\">\n <ng-container [ngSwitch]=\"notificationBannerConfig.bannerType\">\n <ng-container *ngSwitchCase=\"notificationBannerType.WARNING\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\"\n xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"36\" width=\"36\">\n <path 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\"></path>\n </svg>\n </ng-container>\n <ng-container *ngSwitchCase=\"notificationBannerType.ERROR\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\"\n xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"36\" width=\"36\">\n <path 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\"></path>\n </svg>\n </ng-container>\n <ng-container *ngSwitchCase=\"notificationBannerType.SUCCESS\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\"\n xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"36\" width=\"36\">\n <path d=\"M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z\"></path>\n </svg>\n </ng-container>\n <ng-container *ngSwitchCase=\"notificationBannerType.INFORMATION\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\"\n xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"36\" width=\"36\">\n <path 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\"></path>\n </svg>\n </ng-container>\n </ng-container>\n {{notificationBannerConfig.description}}\n <a *ngIf=\"notificationBannerConfig.showLink && !notificationBannerConfig.triggerOutputEvent\"\n class=\"govuk-notification-banner__link\"\n href=\"{{notificationBannerConfig.linkUrl}}\">{{notificationBannerConfig.linkText}}</a>\n <a *ngIf=\"notificationBannerConfig.showLink && notificationBannerConfig.triggerOutputEvent\"\n class=\"govuk-notification-banner__link\"\n href=\"#\"\n (click)=\"onLinkClick(notificationBannerConfig.triggerOutputEventText); $event.preventDefault()\">{{notificationBannerConfig.linkText}}</a>\n </p>\n </div>\n</div>\n", styles: [".govuk-notification-banner .govuk-notification-banner__content .govuk-notification-banner__heading{margin-left:0;max-width:900px}.govuk-notification-banner .govuk-notification-banner__content .govuk-notification-banner__heading .govuk-notification-banner__link{margin-left:10px}.notification-banner-information,.notification-banner-error{background-color:#d4351c;border:5px solid #d4351c}.notification-banner-warning{background-color:#912b88;border:5px solid #912b88}.notification-banner-success{background-color:#006435;border:5px solid #006435}\n"] }]
1001
1001
  }], null, { notificationBannerConfig: [{
1002
1002
  type: Input
1003
1003
  }], linkClicked: [{
@@ -1005,14 +1005,14 @@ class NotificationBannerComponent {
1005
1005
  }] }); })();
1006
1006
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(NotificationBannerComponent, { className: "NotificationBannerComponent", filePath: "lib/components/banners/notification-banner/notification-banner.component.ts", lineNumber: 11 }); })();
1007
1007
 
1008
- const _c0$11 = ["*"];
1008
+ const _c0$12 = ["*"];
1009
1009
  const _c1$q = a0 => ({ "js-hidden": a0 });
1010
1010
  class TabComponent {
1011
1011
  id;
1012
1012
  title;
1013
1013
  selected;
1014
1014
  static ɵfac = function TabComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TabComponent)(); };
1015
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, standalone: false, ngContentSelectors: _c0$11, decls: 2, vars: 5, consts: [["role", "tabpanel", 1, "tabs-panel", 3, "id", "ngClass"]], template: function TabComponent_Template(rf, ctx) { if (rf & 1) {
1015
+ 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) {
1016
1016
  i0.ɵɵprojectionDef();
1017
1017
  i0.ɵɵelementStart(0, "div", 0);
1018
1018
  i0.ɵɵprojection(1);
@@ -1034,7 +1034,7 @@ class TabComponent {
1034
1034
  }] }); })();
1035
1035
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TabComponent, { className: "TabComponent", filePath: "lib/components/tabs/tab.component.ts", lineNumber: 11 }); })();
1036
1036
 
1037
- const _c0$10 = ["tab"];
1037
+ const _c0$11 = ["tab"];
1038
1038
  const _c1$p = ["*"];
1039
1039
  const _c2$4 = () => ["."];
1040
1040
  const _c3 = a0 => ({ "tabs-toggle-selected": a0 });
@@ -1081,7 +1081,7 @@ class TabsComponent {
1081
1081
  let _t;
1082
1082
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.panels = _t);
1083
1083
  } }, viewQuery: function TabsComponent_Query(rf, ctx) { if (rf & 1) {
1084
- i0.ɵɵviewQuery(_c0$10, 5);
1084
+ i0.ɵɵviewQuery(_c0$11, 5);
1085
1085
  } if (rf & 2) {
1086
1086
  let _t;
1087
1087
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabs = _t);
@@ -1140,7 +1140,7 @@ class TabsModule {
1140
1140
  RouterModule, i1.RpxTranslationModule], exports: [TabsComponent,
1141
1141
  TabComponent] }); })();
1142
1142
 
1143
- const _c0$$ = (a0, a1) => ({ caseLocked: a0, someoneViewing: a1 });
1143
+ const _c0$10 = (a0, a1) => ({ caseLocked: a0, someoneViewing: a1 });
1144
1144
  class ActivityBannerComponent {
1145
1145
  bannerType;
1146
1146
  description;
@@ -1159,7 +1159,7 @@ class ActivityBannerComponent {
1159
1159
  i0.ɵɵpipe(6, "rpxTranslate");
1160
1160
  i0.ɵɵelementEnd()();
1161
1161
  } if (rf & 2) {
1162
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(10, _c0$$, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
1162
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(10, _c0$10, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
1163
1163
  i0.ɵɵadvance(2);
1164
1164
  i0.ɵɵproperty("alt", i0.ɵɵinterpolate(i0.ɵɵpipeBind1(3, 6, ctx.description)))("src", i0.ɵɵinterpolate(ctx.imageLink), i0.ɵɵsanitizeUrl);
1165
1165
  i0.ɵɵadvance(3);
@@ -12107,7 +12107,7 @@ class CaseEventCompletionComponent {
12107
12107
  }] }); })();
12108
12108
  (() => { (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 }); })();
12109
12109
 
12110
- const _c0$_ = (a0, a1, a2) => ["/", "cases", "case-details", a0, a1, a2, "tasks"];
12110
+ const _c0$$ = (a0, a1, a2) => ["/", "cases", "case-details", a0, a1, a2, "tasks"];
12111
12111
  class CaseEventCompletionTaskCancelledComponent {
12112
12112
  context;
12113
12113
  notifyEventCompletionCancelled = new EventEmitter();
@@ -12176,7 +12176,7 @@ class CaseEventCompletionTaskCancelledComponent {
12176
12176
  i0.ɵɵadvance(4);
12177
12177
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(27, 21, "Continue"), " ");
12178
12178
  i0.ɵɵadvance(2);
12179
- i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction3(25, _c0$_, ctx.jurisdiction, ctx.caseType, ctx.caseId));
12179
+ i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction3(25, _c0$$, ctx.jurisdiction, ctx.caseType, ctx.caseId));
12180
12180
  i0.ɵɵadvance();
12181
12181
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(30, 23, "Cancel"), " ");
12182
12182
  } }, dependencies: [i1$1.RouterLink, i1.RpxTranslatePipe], encapsulation: 2 });
@@ -12191,7 +12191,7 @@ class CaseEventCompletionTaskCancelledComponent {
12191
12191
  }] }); })();
12192
12192
  (() => { (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 }); })();
12193
12193
 
12194
- const _c0$Z = (a0, a1, a2) => ["/", "cases", "case-details", a0, a1, a2, "tasks"];
12194
+ const _c0$_ = (a0, a1, a2) => ["/", "cases", "case-details", a0, a1, a2, "tasks"];
12195
12195
  function CaseEventCompletionTaskReassignedComponent_div_0_Template(rf, ctx) { if (rf & 1) {
12196
12196
  const _r1 = i0.ɵɵgetCurrentView();
12197
12197
  i0.ɵɵelementStart(0, "div", 1)(1, "div", 2)(2, "h2", 3);
@@ -12244,7 +12244,7 @@ function CaseEventCompletionTaskReassignedComponent_div_0_Template(rf, ctx) { if
12244
12244
  i0.ɵɵadvance(4);
12245
12245
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(27, 22, "Continue"), " ");
12246
12246
  i0.ɵɵadvance(2);
12247
- i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction3(26, _c0$Z, ctx_r1.jurisdiction, ctx_r1.caseType, ctx_r1.caseId));
12247
+ i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction3(26, _c0$_, ctx_r1.jurisdiction, ctx_r1.caseType, ctx_r1.caseId));
12248
12248
  i0.ɵɵadvance();
12249
12249
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(30, 24, "Cancel"), " ");
12250
12250
  } }
@@ -12650,7 +12650,7 @@ class WriteComplexFieldComponent extends AbstractFieldWriteComponent {
12650
12650
  }] }); })();
12651
12651
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteComplexFieldComponent, { className: "WriteComplexFieldComponent", filePath: "lib/shared/components/palette/complex/write-complex-field.component.ts", lineNumber: 22 }); })();
12652
12652
 
12653
- const _c0$Y = ["writeComplexFieldComponent"];
12653
+ const _c0$Z = ["writeComplexFieldComponent"];
12654
12654
  const _c1$o = a0 => ({ "form-group-error": a0 });
12655
12655
  const _c2$3 = a0 => ({ "govuk-input--error": a0 });
12656
12656
  function WriteAddressFieldComponent_div_1_div_4_span_5_Template(rf, ctx) { if (rf & 1) {
@@ -12916,7 +12916,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
12916
12916
  }
12917
12917
  static ɵfac = function WriteAddressFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WriteAddressFieldComponent)(i0.ɵɵdirectiveInject(AddressesService), i0.ɵɵdirectiveInject(IsCompoundPipe)); };
12918
12918
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) { if (rf & 1) {
12919
- i0.ɵɵviewQuery(_c0$Y, 5);
12919
+ i0.ɵɵviewQuery(_c0$Z, 5);
12920
12920
  i0.ɵɵviewQuery(FocusElementDirective, 5);
12921
12921
  } if (rf & 2) {
12922
12922
  let _t;
@@ -12979,7 +12979,7 @@ class AbstractFieldReadComponent extends AbstractFormFieldComponent {
12979
12979
  type: Input
12980
12980
  }] }); })();
12981
12981
 
12982
- const _c0$X = ["journeyChild"];
12982
+ const _c0$Y = ["journeyChild"];
12983
12983
  class AbstractFieldWriteJourneyComponent extends AbstractFieldWriteComponent {
12984
12984
  multipageComponentStateService;
12985
12985
  journeyStartPageNumber = 0;
@@ -13054,7 +13054,7 @@ class AbstractFieldWriteJourneyComponent extends AbstractFieldWriteComponent {
13054
13054
  ;
13055
13055
  static ɵfac = function AbstractFieldWriteJourneyComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AbstractFieldWriteJourneyComponent)(i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
13056
13056
  static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AbstractFieldWriteJourneyComponent, viewQuery: function AbstractFieldWriteJourneyComponent_Query(rf, ctx) { if (rf & 1) {
13057
- i0.ɵɵviewQuery(_c0$X, 5);
13057
+ i0.ɵɵviewQuery(_c0$Y, 5);
13058
13058
  } if (rf & 2) {
13059
13059
  let _t;
13060
13060
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childJourney = _t.first);
@@ -13069,7 +13069,7 @@ class AbstractFieldWriteJourneyComponent extends AbstractFieldWriteComponent {
13069
13069
  args: ['journeyChild']
13070
13070
  }] }); })();
13071
13071
 
13072
- const _c0$W = ["journeyChild"];
13072
+ const _c0$X = ["journeyChild"];
13073
13073
  class AbstractJourneyComponent {
13074
13074
  multipageComponentStateService;
13075
13075
  journeyStartPageNumber = 0;
@@ -13131,7 +13131,7 @@ class AbstractJourneyComponent {
13131
13131
  onPageChange() { }
13132
13132
  static ɵfac = function AbstractJourneyComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AbstractJourneyComponent)(i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
13133
13133
  static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AbstractJourneyComponent, viewQuery: function AbstractJourneyComponent_Query(rf, ctx) { if (rf & 1) {
13134
- i0.ɵɵviewQuery(_c0$W, 5);
13134
+ i0.ɵɵviewQuery(_c0$X, 5);
13135
13135
  } if (rf & 2) {
13136
13136
  let _t;
13137
13137
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childJourney = _t.first);
@@ -13357,6 +13357,65 @@ class CaseFileViewFieldComponent {
13357
13357
  }], () => [{ type: i0.ElementRef }, { type: i1$1.ActivatedRoute }, { type: CaseFileViewService }, { type: DocumentManagementService }, { type: LoadingService }, { type: SessionStorageService }, { type: WindowService }, { type: CaseNotifier }, { type: AbstractAppConfig }], null); })();
13358
13358
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFileViewFieldComponent, { className: "CaseFileViewFieldComponent", filePath: "lib/shared/components/palette/case-file-view/case-file-view-field.component.ts", lineNumber: 18 }); })();
13359
13359
 
13360
+ const PVP_FLAG_CODE = 'PF0021';
13361
+ const PVP_DISPLAY_TEXT = 'POTENTIALLY VIOLENT PERSON';
13362
+ function isPvpFlag(flagDetail) {
13363
+ return flagDetail?.flagCode === PVP_FLAG_CODE;
13364
+ }
13365
+ function hasPvpFlag(flagsWithFormGroupPath) {
13366
+ return !!flagsWithFormGroupPath?.flags?.details?.some(isPvpFlag);
13367
+ }
13368
+ function isActivePvpFlag(flagDetail) {
13369
+ return isPvpFlag(flagDetail) && flagDetail?.status === CaseFlagStatus.ACTIVE;
13370
+ }
13371
+ function hasActivePvpFlag(flagsWithFormGroupPath) {
13372
+ return !!flagsWithFormGroupPath?.flags?.details?.some(isActivePvpFlag);
13373
+ }
13374
+ function getFlagCreationTime(flagDetail) {
13375
+ const createdDateValue = flagDetail?.dateTimeCreated;
13376
+ const createdMoment = createdDateValue instanceof Date
13377
+ ? moment(createdDateValue)
13378
+ : moment(createdDateValue, moment.ISO_8601, true);
13379
+ return createdMoment.valueOf();
13380
+ }
13381
+ function compareByCreationDateDesc(flagA, flagB) {
13382
+ return getFlagCreationTime(flagB) - getFlagCreationTime(flagA);
13383
+ }
13384
+ function prioritisePvpFlags(flagDetails = []) {
13385
+ const activePvpFlags = [];
13386
+ const remainingFlags = [];
13387
+ flagDetails.forEach((flagDetail) => {
13388
+ if (isActivePvpFlag(flagDetail)) {
13389
+ activePvpFlags.push(flagDetail);
13390
+ }
13391
+ else {
13392
+ remainingFlags.push(flagDetail);
13393
+ }
13394
+ });
13395
+ remainingFlags.sort(compareByCreationDateDesc);
13396
+ return [...activePvpFlags, ...remainingFlags];
13397
+ }
13398
+ function prioritisePvpParties(partyFlagsData = []) {
13399
+ const pvpParties = [];
13400
+ const nonPvpParties = [];
13401
+ partyFlagsData.forEach((partyFlags) => {
13402
+ const prioritisedPartyFlags = {
13403
+ ...partyFlags,
13404
+ flags: {
13405
+ ...partyFlags.flags,
13406
+ details: partyFlags?.flags?.details ? prioritisePvpFlags(partyFlags.flags.details) : partyFlags?.flags?.details
13407
+ }
13408
+ };
13409
+ if (hasActivePvpFlag(prioritisedPartyFlags)) {
13410
+ pvpParties.push(prioritisedPartyFlags);
13411
+ }
13412
+ else {
13413
+ nonPvpParties.push(prioritisedPartyFlags);
13414
+ }
13415
+ });
13416
+ return [...pvpParties, ...nonPvpParties];
13417
+ }
13418
+
13360
13419
  function ReadCaseFlagFieldComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
13361
13420
  const _r1 = i0.ɵɵgetCurrentView();
13362
13421
  i0.ɵɵelementContainerStart(0);
@@ -13523,6 +13582,8 @@ class ReadCaseFlagFieldComponent extends AbstractFieldReadComponent {
13523
13582
  this.partyLevelCaseFlagData.filter((f) => !f.flags.groupId).forEach((f) => uniquePartyData.push(f));
13524
13583
  this.partyLevelCaseFlagData = uniquePartyData;
13525
13584
  }
13585
+ // Prioritise active PVP flags (PF0021), then order the remaining flags by creation date (most recent first).
13586
+ this.partyLevelCaseFlagData = prioritisePvpParties(this.partyLevelCaseFlagData);
13526
13587
  // There will be only one case-level flags instance containing all case-level flag details
13527
13588
  this.caseLevelCaseFlagData = this.flagsData.find((instance) => instance.pathToFlagsFormGroup === this.caseLevelCaseFlagsFieldId);
13528
13589
  }
@@ -13625,7 +13686,7 @@ class ReadCaseFlagFieldComponent extends AbstractFieldReadComponent {
13625
13686
  type: Component,
13626
13687
  args: [{ selector: 'ccd-read-case-flag-field', standalone: false, template: "<ng-container *ngIf=\"context === paletteContext.CHECK_YOUR_ANSWER\">\n <ccd-case-flag-summary-list\n [flagForSummaryDisplay]=\"flagForSummaryDisplay\"\n [displayContextParameter]=\"displayContextParameter\"\n (changeButtonEmitter)=\"navigateBackToForm($event)\">\n </ccd-case-flag-summary-list>\n</ng-container>\n\n<ng-container *ngIf=\"context !== paletteContext.CHECK_YOUR_ANSWER\">\n <ng-container [ngSwitch]=\"displayContextParameter\">\n <ng-container *ngSwitchCase=\"caseFlagDisplayContextParameter.READ_EXTERNAL\">\n <h2 id=\"read-case-flag-title\" class=\"govuk-heading-l\">\n {{ 'Support requested' | rpxTranslate }}\n </h2>\n\n <div *ngFor=\"let flagData of partyLevelCaseFlagData\">\n <ccd-case-flag-table *ngIf=\"flagData.flags.partyName\"\n [tableCaption]=\"''\"\n [flagData]=\"flagData\"\n [firstColumnHeader]=\"flagData.flags.partyName\"\n [caseFlagsExternalUser]=\"caseFlagsExternalUser\"\n ></ccd-case-flag-table>\n </div>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <h2 id=\"read-case-flag-title\" class=\"govuk-heading-l\">\n {{ 'Case flags' | rpxTranslate }}\n </h2>\n\n <div *ngFor=\"let flagData of partyLevelCaseFlagData\">\n <ccd-case-flag-table *ngIf=\"flagData.flags.partyName\"\n [tableCaption]=\"flagData.flags.partyName\"\n [flagData]=\"flagData\"\n [firstColumnHeader]=\"'Party level flags' | rpxTranslate\"\n ></ccd-case-flag-table>\n </div>\n <div *ngIf=\"caseLevelCaseFlagData\">\n <ccd-case-flag-table\n [tableCaption]=\"'Case level flags' | rpxTranslate\"\n [flagData]=\"caseLevelCaseFlagData\"\n [firstColumnHeader]=\"'Case flags' | rpxTranslate\"\n ></ccd-case-flag-table>\n </div>\n </ng-container>\n </ng-container>\n</ng-container>\n", styles: [".govuk-heading-l{margin-top:30px}\n"] }]
13627
13688
  }], () => [{ type: i1$1.ActivatedRoute }, { type: i1$1.Router }, { type: CaseFlagStateService }], null); })();
13628
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadCaseFlagFieldComponent, { className: "ReadCaseFlagFieldComponent", filePath: "lib/shared/components/palette/case-flag/read-case-flag-field.component.ts", lineNumber: 17 }); })();
13689
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadCaseFlagFieldComponent, { className: "ReadCaseFlagFieldComponent", filePath: "lib/shared/components/palette/case-flag/read-case-flag-field.component.ts", lineNumber: 18 }); })();
13629
13690
 
13630
13691
  function WriteCaseFlagFieldComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
13631
13692
  const _r1 = i0.ɵɵgetCurrentView();
@@ -14481,7 +14542,7 @@ class ReadCaseLinkFieldComponent extends AbstractFieldReadComponent {
14481
14542
  }], null, null); })();
14482
14543
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadCaseLinkFieldComponent, { className: "ReadCaseLinkFieldComponent", filePath: "lib/shared/components/palette/case-link/read-case-link-field.component.ts", lineNumber: 9 }); })();
14483
14544
 
14484
- const _c0$V = ["writeComplexFieldComponent"];
14545
+ const _c0$W = ["writeComplexFieldComponent"];
14485
14546
  const _c1$n = a0 => ({ "form-group-error": a0 });
14486
14547
  function WriteCaseLinkFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
14487
14548
  i0.ɵɵelementStart(0, "span", 6);
@@ -14562,7 +14623,7 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
14562
14623
  }
14563
14624
  static ɵfac = /*@__PURE__*/ (() => { let ɵWriteCaseLinkFieldComponent_BaseFactory; return function WriteCaseLinkFieldComponent_Factory(__ngFactoryType__) { return (ɵWriteCaseLinkFieldComponent_BaseFactory || (ɵWriteCaseLinkFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(WriteCaseLinkFieldComponent)))(__ngFactoryType__ || WriteCaseLinkFieldComponent); }; })();
14564
14625
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteCaseLinkFieldComponent, selectors: [["ccd-write-case-link-field"]], viewQuery: function WriteCaseLinkFieldComponent_Query(rf, ctx) { if (rf & 1) {
14565
- i0.ɵɵviewQuery(_c0$V, 5);
14626
+ i0.ɵɵviewQuery(_c0$W, 5);
14566
14627
  } if (rf & 2) {
14567
14628
  let _t;
14568
14629
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.writeComplexFieldComponent = _t.first);
@@ -14596,7 +14657,7 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
14596
14657
  }] }); })();
14597
14658
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteCaseLinkFieldComponent, { className: "WriteCaseLinkFieldComponent", filePath: "lib/shared/components/palette/case-link/write-case-link-field.component.ts", lineNumber: 12 }); })();
14598
14659
 
14599
- const _c0$U = (a0, a1, a2, a3, a4, a5, a6) => ({ id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5, parent: a6 });
14660
+ 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 });
14600
14661
  const _c1$m = (a0, a1, a2, a3, a4, a5) => ({ id: a0, label: a1, field_type: a2, value: a3, hidden: a4, parent: a5 });
14601
14662
  function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf & 1) {
14602
14663
  i0.ɵɵelementStart(0, "tbody")(1, "tr");
@@ -14607,7 +14668,7 @@ function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf
14607
14668
  } if (rf & 2) {
14608
14669
  const ctx_r0 = i0.ɵɵnextContext(2);
14609
14670
  i0.ɵɵadvance(4);
14610
- i0.ɵɵproperty("caseField", i0.ɵɵpureFunction7(4, _c0$U, 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);
14671
+ 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);
14611
14672
  } }
14612
14673
  function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { if (rf & 1) {
14613
14674
  i0.ɵɵelementStart(0, "tr")(1, "td");
@@ -14729,7 +14790,7 @@ class RemoveDialogComponent {
14729
14790
  }], () => [{ type: i1$3.MatLegacyDialogRef }], null); })();
14730
14791
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RemoveDialogComponent, { className: "RemoveDialogComponent", filePath: "lib/shared/components/dialogs/remove-dialog/remove-dialog.component.ts", lineNumber: 10 }); })();
14731
14792
 
14732
- const _c0$T = ["collectionItem"];
14793
+ const _c0$U = ["collectionItem"];
14733
14794
  function WriteCollectionFieldComponent_h2_2_Template(rf, ctx) { if (rf & 1) {
14734
14795
  i0.ɵɵelementStart(0, "h2", 7);
14735
14796
  i0.ɵɵtext(1);
@@ -15127,7 +15188,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
15127
15188
  }
15128
15189
  static ɵfac = function WriteCollectionFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WriteCollectionFieldComponent)(i0.ɵɵdirectiveInject(i1$3.MatLegacyDialog), i0.ɵɵdirectiveInject(i2.ScrollToService), i0.ɵɵdirectiveInject(ProfileNotifier), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
15129
15190
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) { if (rf & 1) {
15130
- i0.ɵɵviewQuery(_c0$T, 5);
15191
+ i0.ɵɵviewQuery(_c0$U, 5);
15131
15192
  } if (rf & 2) {
15132
15193
  let _t;
15133
15194
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.items = _t);
@@ -15446,7 +15507,7 @@ class FileUploadStateService {
15446
15507
  type: Injectable
15447
15508
  }], null, null); })();
15448
15509
 
15449
- const _c0$S = ["fileInput"];
15510
+ const _c0$T = ["fileInput"];
15450
15511
  const _c1$l = a0 => ({ "form-group-error bottom-30": a0 });
15451
15512
  function WriteDocumentFieldComponent_span_6_Template(rf, ctx) { if (rf & 1) {
15452
15513
  i0.ɵɵelementStart(0, "span", 12);
@@ -15827,7 +15888,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
15827
15888
  }
15828
15889
  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)); };
15829
15890
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) { if (rf & 1) {
15830
- i0.ɵɵviewQuery(_c0$S, 5);
15891
+ i0.ɵɵviewQuery(_c0$T, 5);
15831
15892
  } if (rf & 2) {
15832
15893
  let _t;
15833
15894
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
@@ -15942,7 +16003,7 @@ class ReadDynamicListFieldComponent extends AbstractFieldReadComponent {
15942
16003
  }], null, null); })();
15943
16004
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadDynamicListFieldComponent, { className: "ReadDynamicListFieldComponent", filePath: "lib/shared/components/palette/dynamic-list/read-dynamic-list-field.component.ts", lineNumber: 9 }); })();
15944
16005
 
15945
- const _c0$R = a0 => ({ "form-group-error": a0 });
16006
+ const _c0$S = a0 => ({ "form-group-error": a0 });
15946
16007
  function WriteDynamicListFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
15947
16008
  i0.ɵɵelementStart(0, "span", 8);
15948
16009
  i0.ɵɵtext(1);
@@ -16030,7 +16091,7 @@ class WriteDynamicListFieldComponent extends AbstractFieldWriteComponent {
16030
16091
  i0.ɵɵtemplate(10, WriteDynamicListFieldComponent_option_10_Template, 3, 4, "option", 7);
16031
16092
  i0.ɵɵelementEnd()();
16032
16093
  } if (rf & 2) {
16033
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(13, _c0$R, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
16094
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(13, _c0$S, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
16034
16095
  i0.ɵɵadvance();
16035
16096
  i0.ɵɵproperty("for", ctx.id());
16036
16097
  i0.ɵɵadvance();
@@ -16209,7 +16270,7 @@ class ReadDynamicMultiSelectListFieldComponent extends AbstractFieldReadComponen
16209
16270
  }], null, null); })();
16210
16271
  (() => { (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 }); })();
16211
16272
 
16212
- const _c0$Q = a0 => ({ "error": a0 });
16273
+ const _c0$R = a0 => ({ "error": a0 });
16213
16274
  function WriteDynamicMultiSelectListFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
16214
16275
  i0.ɵɵelementStart(0, "span", 5);
16215
16276
  i0.ɵɵtext(1);
@@ -16329,7 +16390,7 @@ class WriteDynamicMultiSelectListFieldComponent extends AbstractFieldWriteCompon
16329
16390
  i0.ɵɵtemplate(6, WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template, 6, 12, "ng-container", 4);
16330
16391
  i0.ɵɵelementEnd()();
16331
16392
  } if (rf & 2) {
16332
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$Q, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
16393
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$R, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
16333
16394
  i0.ɵɵadvance(3);
16334
16395
  i0.ɵɵproperty("ngIf", ctx.caseField.label);
16335
16396
  i0.ɵɵadvance();
@@ -16409,7 +16470,7 @@ class ReadDynamicRadioListFieldComponent extends AbstractFieldReadComponent {
16409
16470
  }], null, null); })();
16410
16471
  (() => { (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 }); })();
16411
16472
 
16412
- const _c0$P = a0 => ({ "form-group-error": a0 });
16473
+ const _c0$Q = a0 => ({ "form-group-error": a0 });
16413
16474
  const _c1$k = a0 => ({ selected: a0 });
16414
16475
  function WriteDynamicRadioListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
16415
16476
  i0.ɵɵelementStart(0, "span", 7);
@@ -16504,7 +16565,7 @@ class WriteDynamicRadioListFieldComponent extends AbstractFieldWriteComponent {
16504
16565
  i0.ɵɵelementContainerEnd();
16505
16566
  i0.ɵɵelementEnd()();
16506
16567
  } if (rf & 2) {
16507
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$P, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
16568
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$Q, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
16508
16569
  i0.ɵɵadvance(3);
16509
16570
  i0.ɵɵproperty("for", ctx.id());
16510
16571
  i0.ɵɵadvance();
@@ -16558,7 +16619,7 @@ class ReadEmailFieldComponent extends AbstractFieldReadComponent {
16558
16619
  }], null, null); })();
16559
16620
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadEmailFieldComponent, { className: "ReadEmailFieldComponent", filePath: "lib/shared/components/palette/email/read-email-field.component.ts", lineNumber: 11 }); })();
16560
16621
 
16561
- const _c0$O = a0 => ({ "form-group-error": a0 });
16622
+ const _c0$P = a0 => ({ "form-group-error": a0 });
16562
16623
  const _c1$j = a0 => ({ "govuk-input--error": a0 });
16563
16624
  function WriteEmailFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
16564
16625
  i0.ɵɵelementStart(0, "span", 6);
@@ -16604,7 +16665,7 @@ class WriteEmailFieldComponent extends AbstractFieldWriteComponent {
16604
16665
  i0.ɵɵelement(5, "input", 5);
16605
16666
  i0.ɵɵelementEnd();
16606
16667
  } if (rf & 2) {
16607
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$O, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
16668
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$P, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
16608
16669
  i0.ɵɵadvance();
16609
16670
  i0.ɵɵproperty("for", ctx.id());
16610
16671
  i0.ɵɵadvance();
@@ -16646,7 +16707,7 @@ class ReadFixedListFieldComponent extends AbstractFieldReadComponent {
16646
16707
  }], null, null); })();
16647
16708
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadFixedListFieldComponent, { className: "ReadFixedListFieldComponent", filePath: "lib/shared/components/palette/fixed-list/read-fixed-list-field.component.ts", lineNumber: 9 }); })();
16648
16709
 
16649
- const _c0$N = a0 => ({ "form-group-error": a0 });
16710
+ const _c0$O = a0 => ({ "form-group-error": a0 });
16650
16711
  function WriteFixedListFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
16651
16712
  i0.ɵɵelementStart(0, "span", 8);
16652
16713
  i0.ɵɵtext(1);
@@ -16721,7 +16782,7 @@ class WriteFixedListFieldComponent extends AbstractFieldWriteComponent {
16721
16782
  i0.ɵɵtemplate(8, WriteFixedListFieldComponent_option_8_Template, 3, 4, "option", 7);
16722
16783
  i0.ɵɵelementEnd()();
16723
16784
  } if (rf & 2) {
16724
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$N, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
16785
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$O, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
16725
16786
  i0.ɵɵadvance();
16726
16787
  i0.ɵɵproperty("for", ctx.id());
16727
16788
  i0.ɵɵadvance();
@@ -16784,7 +16845,7 @@ class ReadFixedRadioListFieldComponent extends AbstractFieldReadComponent {
16784
16845
  }], null, null); })();
16785
16846
  (() => { (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 }); })();
16786
16847
 
16787
- const _c0$M = a0 => ({ "form-group-error": a0 });
16848
+ const _c0$N = a0 => ({ "form-group-error": a0 });
16788
16849
  const _c1$i = a0 => ({ selected: a0 });
16789
16850
  function WriteFixedRadioListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
16790
16851
  i0.ɵɵelementStart(0, "span", 6);
@@ -16852,7 +16913,7 @@ class WriteFixedRadioListFieldComponent extends AbstractFieldWriteComponent {
16852
16913
  i0.ɵɵelementContainerEnd();
16853
16914
  i0.ɵɵelementEnd()();
16854
16915
  } if (rf & 2) {
16855
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$M, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
16916
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$N, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
16856
16917
  i0.ɵɵadvance(3);
16857
16918
  i0.ɵɵproperty("for", ctx.id());
16858
16919
  i0.ɵɵadvance();
@@ -16928,7 +16989,7 @@ class ReadJudicialUserFieldComponent extends AbstractFieldReadComponent {
16928
16989
  }], () => [{ type: JurisdictionService }], null); })();
16929
16990
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadJudicialUserFieldComponent, { className: "ReadJudicialUserFieldComponent", filePath: "lib/shared/components/palette/judicial-user/read-judicial-user-field.component.ts", lineNumber: 12 }); })();
16930
16991
 
16931
- const _c0$L = a0 => ({ "form-group-error": a0 });
16992
+ const _c0$M = a0 => ({ "form-group-error": a0 });
16932
16993
  const _c1$h = a0 => ({ "hide-autocomplete": a0 });
16933
16994
  function WriteJudicialUserFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
16934
16995
  i0.ɵɵelementStart(0, "span", 10);
@@ -17148,7 +17209,7 @@ class WriteJudicialUserFieldComponent extends WriteComplexFieldComponent {
17148
17209
  i0.ɵɵelementEnd()();
17149
17210
  } if (rf & 2) {
17150
17211
  const autoComplete_r5 = i0.ɵɵreference(7);
17151
- i0.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0.ɵɵpureFunction1(15, _c0$L, !!ctx.judicialUserControl && ctx.errors));
17212
+ i0.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0.ɵɵpureFunction1(15, _c0$M, !!ctx.judicialUserControl && ctx.errors));
17152
17213
  i0.ɵɵadvance();
17153
17214
  i0.ɵɵproperty("for", ctx.id());
17154
17215
  i0.ɵɵadvance();
@@ -17613,7 +17674,7 @@ class ValidatorsUtils {
17613
17674
  args: [{ providedIn: 'root' }]
17614
17675
  }], null, null); })();
17615
17676
 
17616
- const _c0$K = a0 => ({ "govuk-form-group--error": a0 });
17677
+ const _c0$L = a0 => ({ "govuk-form-group--error": a0 });
17617
17678
  const _c1$g = a0 => ({ "table-group-error": a0 });
17618
17679
  function LinkCasesComponent_div_8_span_4_Template(rf, ctx) { if (rf & 1) {
17619
17680
  i0.ɵɵelementStart(0, "span", 28)(1, "span", 29);
@@ -17680,7 +17741,7 @@ function LinkCasesComponent_div_8_div_14_Template(rf, ctx) { if (rf & 1) {
17680
17741
  i0.ɵɵelementEnd()();
17681
17742
  } if (rf & 2) {
17682
17743
  const ctx_r1 = i0.ɵɵnextContext(2);
17683
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c0$K, !!ctx_r1.caseReasonCommentsError));
17744
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c0$L, !!ctx_r1.caseReasonCommentsError));
17684
17745
  i0.ɵɵadvance(3);
17685
17746
  i0.ɵɵproperty("ngIf", ctx_r1.caseReasonCommentsError);
17686
17747
  } }
@@ -17724,11 +17785,11 @@ function LinkCasesComponent_div_8_Template(rf, ctx) { if (rf & 1) {
17724
17785
  const ctx_r1 = i0.ɵɵnextContext();
17725
17786
  i0.ɵɵproperty("formGroup", ctx_r1.linkCaseForm);
17726
17787
  i0.ɵɵadvance();
17727
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$K, !!ctx_r1.caseNumberError));
17788
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$L, !!ctx_r1.caseNumberError));
17728
17789
  i0.ɵɵadvance(3);
17729
17790
  i0.ɵɵproperty("ngIf", ctx_r1.caseNumberError);
17730
17791
  i0.ɵɵadvance(2);
17731
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$K, !!ctx_r1.caseReasonError));
17792
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$L, !!ctx_r1.caseReasonError));
17732
17793
  i0.ɵɵadvance(5);
17733
17794
  i0.ɵɵproperty("ngIf", ctx_r1.caseReasonError);
17734
17795
  i0.ɵɵadvance(2);
@@ -18156,7 +18217,7 @@ class LinkCasesComponent extends AbstractJourneyComponent {
18156
18217
  i0.ɵɵadvance(4);
18157
18218
  i0.ɵɵproperty("ngIf", ctx.linkCaseForm);
18158
18219
  i0.ɵɵadvance(4);
18159
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$K, !!ctx.noSelectedCaseError));
18220
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$L, !!ctx.noSelectedCaseError));
18160
18221
  i0.ɵɵadvance();
18161
18222
  i0.ɵɵproperty("ngIf", ctx.noSelectedCaseError);
18162
18223
  i0.ɵɵadvance(18);
@@ -18749,7 +18810,7 @@ class NoLinkedCasesComponent extends AbstractJourneyComponent {
18749
18810
  }], () => [{ type: i1$1.Router }, { type: LinkedCasesService }, { type: MultipageComponentStateService }], null); })();
18750
18811
  (() => { (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 }); })();
18751
18812
 
18752
- const _c0$J = a0 => ({ "govuk-form-group--error": a0 });
18813
+ const _c0$K = a0 => ({ "govuk-form-group--error": a0 });
18753
18814
  function UnLinkCasesComponent_div_0_div_4_p_1_Template(rf, ctx) { if (rf & 1) {
18754
18815
  i0.ɵɵelementStart(0, "p", 9)(1, "span", 10);
18755
18816
  i0.ɵɵtext(2, "Error:");
@@ -18787,7 +18848,7 @@ function UnLinkCasesComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
18787
18848
  i0.ɵɵelementEnd()();
18788
18849
  } if (rf & 2) {
18789
18850
  const ctx_r0 = i0.ɵɵnextContext(2);
18790
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$J, ctx_r0.unlinkErrorMessage))("formGroup", ctx_r0.unlinkCaseForm);
18851
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$K, ctx_r0.unlinkErrorMessage))("formGroup", ctx_r0.unlinkCaseForm);
18791
18852
  i0.ɵɵadvance();
18792
18853
  i0.ɵɵproperty("ngIf", ctx_r0.unlinkErrorMessage);
18793
18854
  i0.ɵɵadvance(2);
@@ -19718,7 +19779,7 @@ class MoneyGbpInputComponent {
19718
19779
  }] }); })();
19719
19780
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MoneyGbpInputComponent, { className: "MoneyGbpInputComponent", filePath: "lib/shared/components/palette/money-gbp/money-gbp-input.component.ts", lineNumber: 28 }); })();
19720
19781
 
19721
- const _c0$I = a0 => ({ "form-group-error": a0 });
19782
+ const _c0$J = a0 => ({ "form-group-error": a0 });
19722
19783
  function WriteMoneyGbpFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
19723
19784
  i0.ɵɵelementStart(0, "span", 8);
19724
19785
  i0.ɵɵtext(1);
@@ -19767,7 +19828,7 @@ class WriteMoneyGbpFieldComponent extends AbstractFieldWriteComponent {
19767
19828
  i0.ɵɵpipe(9, "ccdIsMandatory");
19768
19829
  i0.ɵɵelementEnd()();
19769
19830
  } if (rf & 2) {
19770
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$I, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
19831
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$J, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
19771
19832
  i0.ɵɵadvance();
19772
19833
  i0.ɵɵproperty("for", ctx.id());
19773
19834
  i0.ɵɵadvance();
@@ -19826,7 +19887,7 @@ class ReadMultiSelectListFieldComponent extends AbstractFieldReadComponent {
19826
19887
  }], null, null); })();
19827
19888
  (() => { (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 }); })();
19828
19889
 
19829
- const _c0$H = a0 => ({ "error": a0 });
19890
+ const _c0$I = a0 => ({ "error": a0 });
19830
19891
  function WriteMultiSelectListFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
19831
19892
  i0.ɵɵelementStart(0, "span", 5);
19832
19893
  i0.ɵɵtext(1);
@@ -19927,7 +19988,7 @@ class WriteMultiSelectListFieldComponent extends AbstractFieldWriteComponent {
19927
19988
  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);
19928
19989
  i0.ɵɵelementEnd()();
19929
19990
  } if (rf & 2) {
19930
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$H, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
19991
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$I, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
19931
19992
  i0.ɵɵadvance(3);
19932
19993
  i0.ɵɵproperty("ngIf", ctx.caseField.label);
19933
19994
  i0.ɵɵadvance();
@@ -19966,7 +20027,7 @@ class ReadNumberFieldComponent extends AbstractFieldReadComponent {
19966
20027
  }], null, null); })();
19967
20028
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadNumberFieldComponent, { className: "ReadNumberFieldComponent", filePath: "lib/shared/components/palette/number/read-number-field.component.ts", lineNumber: 9 }); })();
19968
20029
 
19969
- const _c0$G = a0 => ({ "form-group-error": a0 });
20030
+ const _c0$H = a0 => ({ "form-group-error": a0 });
19970
20031
  const _c1$f = a0 => ({ "govuk-input--error": a0 });
19971
20032
  function WriteNumberFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
19972
20033
  i0.ɵɵelementStart(0, "span", 6);
@@ -20012,7 +20073,7 @@ class WriteNumberFieldComponent extends AbstractFieldWriteComponent {
20012
20073
  i0.ɵɵelement(5, "input", 5);
20013
20074
  i0.ɵɵelementEnd();
20014
20075
  } if (rf & 2) {
20015
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$G, !ctx.numberControl.valid && ctx.numberControl.dirty));
20076
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$H, !ctx.numberControl.valid && ctx.numberControl.dirty));
20016
20077
  i0.ɵɵadvance();
20017
20078
  i0.ɵɵproperty("for", ctx.id());
20018
20079
  i0.ɵɵadvance();
@@ -20191,7 +20252,7 @@ class ReadOrganisationFieldComponent extends AbstractFieldReadComponent {
20191
20252
  }] }); })();
20192
20253
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadOrganisationFieldComponent, { className: "ReadOrganisationFieldComponent", filePath: "lib/shared/components/palette/organisation/read-organisation-field.component.ts", lineNumber: 11 }); })();
20193
20254
 
20194
- const _c0$F = a0 => ({ "scroll-container ": a0 });
20255
+ const _c0$G = a0 => ({ "scroll-container ": a0 });
20195
20256
  function WriteOrganisationFieldComponent_fieldset_1_Template(rf, ctx) { if (rf & 1) {
20196
20257
  i0.ɵɵelementStart(0, "fieldset", 3);
20197
20258
  i0.ɵɵelement(1, "legend", 4);
@@ -20270,7 +20331,7 @@ function WriteOrganisationFieldComponent_fieldset_3_div_17_Template(rf, ctx) { i
20270
20331
  let tmp_3_0;
20271
20332
  let tmp_5_0;
20272
20333
  const ctx_r2 = i0.ɵɵnextContext(2);
20273
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$F, ((tmp_3_0 = i0.ɵɵpipeBind1(1, 3, ctx_r2.simpleOrganisations$)) == null ? null : tmp_3_0.length) > 10));
20334
+ 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));
20274
20335
  i0.ɵɵadvance(2);
20275
20336
  i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(3, 5, ctx_r2.simpleOrganisations$));
20276
20337
  i0.ɵɵadvance(2);
@@ -20666,7 +20727,7 @@ class ReadPhoneUKFieldComponent extends AbstractFieldReadComponent {
20666
20727
  }], null, null); })();
20667
20728
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadPhoneUKFieldComponent, { className: "ReadPhoneUKFieldComponent", filePath: "lib/shared/components/palette/phone-uk/read-phone-uk-field.component.ts", lineNumber: 9 }); })();
20668
20729
 
20669
- const _c0$E = a0 => ({ "form-group-error": a0 });
20730
+ const _c0$F = a0 => ({ "form-group-error": a0 });
20670
20731
  const _c1$e = a0 => ({ "govuk-input--error": a0 });
20671
20732
  function WritePhoneUKFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
20672
20733
  i0.ɵɵelementStart(0, "span", 6);
@@ -20712,7 +20773,7 @@ class WritePhoneUKFieldComponent extends AbstractFieldWriteComponent {
20712
20773
  i0.ɵɵelement(5, "input", 5);
20713
20774
  i0.ɵɵelementEnd();
20714
20775
  } if (rf & 2) {
20715
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$E, !ctx.phoneUkControl.valid && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched)));
20776
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$F, !ctx.phoneUkControl.valid && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched)));
20716
20777
  i0.ɵɵadvance();
20717
20778
  i0.ɵɵproperty("for", ctx.id());
20718
20779
  i0.ɵɵadvance();
@@ -23190,7 +23251,7 @@ class QueryWriteDateInputComponent {
23190
23251
  }] }); })();
23191
23252
  (() => { (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 }); })();
23192
23253
 
23193
- const _c0$D = a0 => ({ "govuk-form-group--error": a0 });
23254
+ const _c0$E = a0 => ({ "govuk-form-group--error": a0 });
23194
23255
  function QueryWriteRaiseQueryComponent_ccd_query_case_details_header_9_Template(rf, ctx) { if (rf & 1) {
23195
23256
  i0.ɵɵelement(0, "ccd-query-case-details-header", 5);
23196
23257
  } if (rf & 2) {
@@ -23270,7 +23331,7 @@ function QueryWriteRaiseQueryComponent_div_11_ng_container_50_Template(rf, ctx)
23270
23331
  } if (rf & 2) {
23271
23332
  const ctx_r0 = i0.ɵɵnextContext(2);
23272
23333
  i0.ɵɵadvance();
23273
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$D, ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").value === true && ctx_r0.formGroup.get("hearingDate").value === null));
23334
+ 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));
23274
23335
  i0.ɵɵadvance(4);
23275
23336
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 3, "What is the date of the hearing?"), " ");
23276
23337
  i0.ɵɵadvance(2);
@@ -23337,7 +23398,7 @@ function QueryWriteRaiseQueryComponent_div_11_Template(rf, ctx) { if (rf & 1) {
23337
23398
  i0.ɵɵadvance(8);
23338
23399
  i0.ɵɵproperty("content", i0.ɵɵpipeBind1(10, 23, ctx_r0.serviceMessage));
23339
23400
  i0.ɵɵadvance(2);
23340
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(43, _c0$D, ctx_r0.submitted && ctx_r0.formGroup.get("subject").hasError("required")));
23401
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(43, _c0$E, ctx_r0.submitted && ctx_r0.formGroup.get("subject").hasError("required")));
23341
23402
  i0.ɵɵadvance(3);
23342
23403
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(15, 25, "Query subject"), " ");
23343
23404
  i0.ɵɵadvance(3);
@@ -23345,7 +23406,7 @@ function QueryWriteRaiseQueryComponent_div_11_Template(rf, ctx) { if (rf & 1) {
23345
23406
  i0.ɵɵadvance(2);
23346
23407
  i0.ɵɵproperty("ngIf", ctx_r0.submitted && (ctx_r0.formGroup.get("subject").hasError("required") || ctx_r0.formGroup.get("subject").hasError("maxlength")));
23347
23408
  i0.ɵɵadvance(2);
23348
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(45, _c0$D, ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required")));
23409
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(45, _c0$E, ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required")));
23349
23410
  i0.ɵɵadvance(3);
23350
23411
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(25, 29, "Query detail"), " ");
23351
23412
  i0.ɵɵadvance(3);
@@ -23356,7 +23417,7 @@ function QueryWriteRaiseQueryComponent_div_11_Template(rf, ctx) { if (rf & 1) {
23356
23417
  i0.ɵɵclassProp("govuk-textarea--error", ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required"));
23357
23418
  i0.ɵɵproperty("formControlName", "body");
23358
23419
  i0.ɵɵadvance(2);
23359
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(47, _c0$D, ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").hasError("required")));
23420
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(47, _c0$E, ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").hasError("required")));
23360
23421
  i0.ɵɵadvance(4);
23361
23422
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(37, 33, "Is the query hearing related?"), " ");
23362
23423
  i0.ɵɵadvance(2);
@@ -23977,7 +24038,7 @@ class CloseQueryComponent {
23977
24038
  }] }); })();
23978
24039
  (() => { (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 }); })();
23979
24040
 
23980
- const _c0$C = (a0, a1) => ["/query-management", "query", a0, "4", a1];
24041
+ const _c0$D = (a0, a1) => ["/query-management", "query", a0, "4", a1];
23981
24042
  function ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_div_1_Template(rf, ctx) { if (rf & 1) {
23982
24043
  const _r1 = i0.ɵɵgetCurrentView();
23983
24044
  i0.ɵɵelementStart(0, "div", 6)(1, "ccd-query-list", 7);
@@ -24016,7 +24077,7 @@ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_conta
24016
24077
  } if (rf & 2) {
24017
24078
  const ctx_r1 = i0.ɵɵnextContext(3);
24018
24079
  i0.ɵɵadvance();
24019
- i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction2(4, _c0$C, ctx_r1.caseId, ctx_r1.query.id));
24080
+ i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction2(4, _c0$D, ctx_r1.caseId, ctx_r1.query.id));
24020
24081
  i0.ɵɵadvance();
24021
24082
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, "Ask a follow-up question"), " ");
24022
24083
  } }
@@ -24030,7 +24091,7 @@ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_templ
24030
24091
  } if (rf & 2) {
24031
24092
  const ctx_r1 = i0.ɵɵnextContext(4);
24032
24093
  i0.ɵɵadvance();
24033
- i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction2(4, _c0$C, ctx_r1.caseId, ctx_r1.query.id));
24094
+ i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction2(4, _c0$D, ctx_r1.caseId, ctx_r1.query.id));
24034
24095
  i0.ɵɵadvance();
24035
24096
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, "Ask a follow-up question"), " ");
24036
24097
  } }
@@ -24218,7 +24279,7 @@ class ReadTextAreaFieldComponent extends AbstractFieldReadComponent {
24218
24279
  }], null, null); })();
24219
24280
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadTextAreaFieldComponent, { className: "ReadTextAreaFieldComponent", filePath: "lib/shared/components/palette/text-area/read-text-area-field.component.ts", lineNumber: 9 }); })();
24220
24281
 
24221
- const _c0$B = a0 => ({ "form-group-error": a0 });
24282
+ const _c0$C = a0 => ({ "form-group-error": a0 });
24222
24283
  const _c1$d = a0 => ({ "govuk-textarea--error": a0 });
24223
24284
  function WriteTextAreaFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
24224
24285
  i0.ɵɵelementStart(0, "span", 6);
@@ -24277,7 +24338,7 @@ class WriteTextAreaFieldComponent extends AbstractFieldWriteComponent {
24277
24338
  i0.ɵɵlistener("input", function WriteTextAreaFieldComponent_Template_textarea_input_5_listener($event) { return ctx.autoGrow($event); });
24278
24339
  i0.ɵɵelementEnd()();
24279
24340
  } if (rf & 2) {
24280
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$B, !ctx.textareaControl.valid && ctx.textareaControl.dirty));
24341
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$C, !ctx.textareaControl.valid && ctx.textareaControl.dirty));
24281
24342
  i0.ɵɵadvance();
24282
24343
  i0.ɵɵproperty("for", ctx.id());
24283
24344
  i0.ɵɵadvance();
@@ -24317,7 +24378,7 @@ class ReadTextFieldComponent extends AbstractFieldReadComponent {
24317
24378
  }], null, null); })();
24318
24379
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadTextFieldComponent, { className: "ReadTextFieldComponent", filePath: "lib/shared/components/palette/text/read-text-field.component.ts", lineNumber: 9 }); })();
24319
24380
 
24320
- const _c0$A = a0 => ({ "form-group-error": a0 });
24381
+ const _c0$B = a0 => ({ "form-group-error": a0 });
24321
24382
  const _c1$c = a0 => ({ "govuk-input--error": a0 });
24322
24383
  function WriteTextFieldComponent_label_1_span_1_Template(rf, ctx) { if (rf & 1) {
24323
24384
  i0.ɵɵelementStart(0, "span", 7);
@@ -24375,7 +24436,7 @@ class WriteTextFieldComponent extends AbstractFieldWriteComponent {
24375
24436
  i0.ɵɵlistener("blur", function WriteTextFieldComponent_Template_input_blur_4_listener($event) { return ctx.onBlur($event); });
24376
24437
  i0.ɵɵelementEnd()();
24377
24438
  } if (rf & 2) {
24378
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$A, !!ctx.textControl && !ctx.textControl.valid && (ctx.textControl.dirty || ctx.textControl.touched)));
24439
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$B, !!ctx.textControl && !ctx.textControl.valid && (ctx.textControl.dirty || ctx.textControl.touched)));
24379
24440
  i0.ɵɵadvance();
24380
24441
  i0.ɵɵproperty("ngIf", !ctx.caseField.hidden);
24381
24442
  i0.ɵɵadvance();
@@ -24516,7 +24577,7 @@ class ReadYesNoFieldComponent extends AbstractFieldReadComponent {
24516
24577
  }], () => [{ type: YesNoService }], null); })();
24517
24578
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadYesNoFieldComponent, { className: "ReadYesNoFieldComponent", filePath: "lib/shared/components/palette/yes-no/read-yes-no-field.component.ts", lineNumber: 10 }); })();
24518
24579
 
24519
- const _c0$z = a0 => ({ "form-group-error": a0 });
24580
+ const _c0$A = a0 => ({ "form-group-error": a0 });
24520
24581
  const _c1$b = a0 => ({ selected: a0 });
24521
24582
  function WriteYesNoFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
24522
24583
  i0.ɵɵelementStart(0, "span", 7);
@@ -24588,7 +24649,7 @@ class WriteYesNoFieldComponent extends AbstractFieldWriteComponent {
24588
24649
  i0.ɵɵtemplate(7, WriteYesNoFieldComponent_div_7_Template, 5, 14, "div", 6);
24589
24650
  i0.ɵɵelementEnd()()();
24590
24651
  } if (rf & 2) {
24591
- i0.ɵɵproperty("id", ctx.id())("ngClass", i0.ɵɵpureFunction1(7, _c0$z, !ctx.yesNoControl.valid && (ctx.yesNoControl.dirty || ctx.yesNoControl.touched)));
24652
+ i0.ɵɵproperty("id", ctx.id())("ngClass", i0.ɵɵpureFunction1(7, _c0$A, !ctx.yesNoControl.valid && (ctx.yesNoControl.dirty || ctx.yesNoControl.touched)));
24592
24653
  i0.ɵɵadvance(3);
24593
24654
  i0.ɵɵproperty("ngIf", ctx.caseField.label);
24594
24655
  i0.ɵɵadvance();
@@ -24705,7 +24766,7 @@ class PaletteService {
24705
24766
  type: Injectable
24706
24767
  }], null, null); })();
24707
24768
 
24708
- const _c0$y = ["fieldContainer"];
24769
+ const _c0$z = ["fieldContainer"];
24709
24770
  const FIX_CASEFIELD_FOR$1 = ['FixedList', 'DynamicList', 'DynamicMultiSelectList'];
24710
24771
  class FieldReadComponent extends AbstractFieldReadComponent {
24711
24772
  resolver;
@@ -24754,7 +24815,7 @@ class FieldReadComponent extends AbstractFieldReadComponent {
24754
24815
  }
24755
24816
  static ɵfac = function FieldReadComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FieldReadComponent)(i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(PaletteService)); };
24756
24817
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FieldReadComponent, selectors: [["ccd-field-read"]], viewQuery: function FieldReadComponent_Query(rf, ctx) { if (rf & 1) {
24757
- i0.ɵɵviewQuery(_c0$y, 5, ViewContainerRef);
24818
+ i0.ɵɵviewQuery(_c0$z, 5, ViewContainerRef);
24758
24819
  } if (rf & 2) {
24759
24820
  let _t;
24760
24821
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fieldContainer = _t.first);
@@ -24783,7 +24844,7 @@ class FieldReadComponent extends AbstractFieldReadComponent {
24783
24844
  }] }); })();
24784
24845
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FieldReadComponent, { className: "FieldReadComponent", filePath: "lib/shared/components/palette/base-field/field-read.component.ts", lineNumber: 16 }); })();
24785
24846
 
24786
- const _c0$x = ["fieldContainer"];
24847
+ const _c0$y = ["fieldContainer"];
24787
24848
  const FIX_CASEFIELD_FOR = ['FixedList', 'DynamicList', 'DynamicMultiSelectList'];
24788
24849
  class FieldWriteComponent extends AbstractFieldWriteComponent {
24789
24850
  resolver;
@@ -24829,7 +24890,7 @@ class FieldWriteComponent extends AbstractFieldWriteComponent {
24829
24890
  }
24830
24891
  static ɵfac = function FieldWriteComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FieldWriteComponent)(i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(PaletteService)); };
24831
24892
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FieldWriteComponent, selectors: [["ccd-field-write"]], viewQuery: function FieldWriteComponent_Query(rf, ctx) { if (rf & 1) {
24832
- i0.ɵɵviewQuery(_c0$x, 7, ViewContainerRef);
24893
+ i0.ɵɵviewQuery(_c0$y, 7, ViewContainerRef);
24833
24894
  } if (rf & 2) {
24834
24895
  let _t;
24835
24896
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fieldContainer = _t.first);
@@ -24853,7 +24914,7 @@ class FieldWriteComponent extends AbstractFieldWriteComponent {
24853
24914
  }] }); })();
24854
24915
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FieldWriteComponent, { className: "FieldWriteComponent", filePath: "lib/shared/components/palette/base-field/field-write.component.ts", lineNumber: 17 }); })();
24855
24916
 
24856
- const _c0$w = ["*"];
24917
+ const _c0$x = ["*"];
24857
24918
  function FieldReadLabelComponent_dl_1_ng_container_5_Template(rf, ctx) { if (rf & 1) {
24858
24919
  i0.ɵɵelementContainer(0);
24859
24920
  } }
@@ -24907,7 +24968,7 @@ class FieldReadLabelComponent extends AbstractFieldReadComponent {
24907
24968
  }
24908
24969
  }
24909
24970
  static ɵfac = /*@__PURE__*/ (() => { let ɵFieldReadLabelComponent_BaseFactory; return function FieldReadLabelComponent_Factory(__ngFactoryType__) { return (ɵFieldReadLabelComponent_BaseFactory || (ɵFieldReadLabelComponent_BaseFactory = i0.ɵɵgetInheritedFactory(FieldReadLabelComponent)))(__ngFactoryType__ || FieldReadLabelComponent); }; })();
24910
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FieldReadLabelComponent, selectors: [["ccd-field-read-label"]], inputs: { withLabel: "withLabel" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0$w, decls: 4, vars: 5, consts: [["caseFieldValue", ""], [3, "hidden"], ["class", "case-field", 4, "ngIf", "ngIfElse"], [1, "case-field"], [1, "case-field__label"], [1, "case-field__value"], [4, "ngTemplateOutlet"]], template: function FieldReadLabelComponent_Template(rf, ctx) { if (rf & 1) {
24971
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FieldReadLabelComponent, selectors: [["ccd-field-read-label"]], inputs: { withLabel: "withLabel" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0$x, decls: 4, vars: 5, consts: [["caseFieldValue", ""], [3, "hidden"], ["class", "case-field", 4, "ngIf", "ngIfElse"], [1, "case-field"], [1, "case-field__label"], [1, "case-field__value"], [4, "ngTemplateOutlet"]], template: function FieldReadLabelComponent_Template(rf, ctx) { if (rf & 1) {
24911
24972
  i0.ɵɵprojectionDef();
24912
24973
  i0.ɵɵelementStart(0, "div", 1);
24913
24974
  i0.ɵɵtemplate(1, FieldReadLabelComponent_dl_1_Template, 6, 4, "dl", 2)(2, FieldReadLabelComponent_ng_template_2_Template, 1, 0, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
@@ -24928,7 +24989,7 @@ class FieldReadLabelComponent extends AbstractFieldReadComponent {
24928
24989
  }] }); })();
24929
24990
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FieldReadLabelComponent, { className: "FieldReadLabelComponent", filePath: "lib/shared/components/palette/base-field/field-read-label.component.ts", lineNumber: 15 }); })();
24930
24991
 
24931
- const _c0$v = a0 => ({ cat: a0, level: 1 });
24992
+ const _c0$w = a0 => ({ cat: a0, level: 1 });
24932
24993
  const _c1$a = (a0, a1) => ({ cat: a0, level: a1 });
24933
24994
  function CaseFileViewFolderSelectorComponent_ng_container_6_ng_container_1_Template(rf, ctx) { if (rf & 1) {
24934
24995
  i0.ɵɵelementContainer(0);
@@ -24942,7 +25003,7 @@ function CaseFileViewFolderSelectorComponent_ng_container_6_Template(rf, ctx) {
24942
25003
  i0.ɵɵnextContext();
24943
25004
  const folder_r3 = i0.ɵɵreference(13);
24944
25005
  i0.ɵɵadvance();
24945
- i0.ɵɵproperty("ngTemplateOutlet", folder_r3)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c0$v, cat_r2));
25006
+ i0.ɵɵproperty("ngTemplateOutlet", folder_r3)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c0$w, cat_r2));
24946
25007
  } }
24947
25008
  function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_ng_container_1_Template(rf, ctx) { if (rf & 1) {
24948
25009
  i0.ɵɵelementContainer(0);
@@ -25080,7 +25141,7 @@ class CaseFileViewFolderSelectorComponent {
25080
25141
  }] }], null); })();
25081
25142
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFileViewFolderSelectorComponent, { className: "CaseFileViewFolderSelectorComponent", filePath: "lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.ts", lineNumber: 13 }); })();
25082
25143
 
25083
- const _c0$u = [[["", "trigger", ""]]];
25144
+ const _c0$v = [[["", "trigger", ""]]];
25084
25145
  const _c1$9 = ["[trigger]"];
25085
25146
  function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_1_Template(rf, ctx) { if (rf & 1) {
25086
25147
  i0.ɵɵelementContainerStart(0);
@@ -25153,7 +25214,7 @@ class CaseFileViewOverlayMenuComponent {
25153
25214
  static ɵfac = function CaseFileViewOverlayMenuComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseFileViewOverlayMenuComponent)(); };
25154
25215
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFileViewOverlayMenuComponent, selectors: [["ccd-case-file-view-overlay-menu"]], inputs: { title: "title", menuItems: "menuItems", isOpen: "isOpen" }, outputs: { isOpenChange: "isOpenChange" }, standalone: false, ngContentSelectors: _c1$9, decls: 5, vars: 5, consts: [["trigger", "cdkOverlayOrigin"], ["type", "button", "cdkOverlayOrigin", "", "aria-haspopup", "true", 1, "overlay-toggle", 3, "click"], ["cdkConnectedOverlay", "", 3, "backdropClick", "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayBackdropClass"], [1, "overlay-menu"], [4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "overlay-menu__title"], ["tabindex", "0", 1, "overlay-menu__item", 3, "click", "keydown.enter"], ["class", "overlay-menu__itemIcon", "aria-hidden", "true", 3, "src", "alt", 4, "ngIf"], [1, "overlay-menu__actionText"], ["aria-hidden", "true", 1, "overlay-menu__itemIcon", 3, "src", "alt"]], template: function CaseFileViewOverlayMenuComponent_Template(rf, ctx) { if (rf & 1) {
25155
25216
  const _r1 = i0.ɵɵgetCurrentView();
25156
- i0.ɵɵprojectionDef(_c0$u);
25217
+ i0.ɵɵprojectionDef(_c0$v);
25157
25218
  i0.ɵɵelementStart(0, "div")(1, "button", 1, 0);
25158
25219
  i0.ɵɵlistener("click", function CaseFileViewOverlayMenuComponent_Template_button_click_1_listener($event) { i0.ɵɵrestoreView(_r1); $event.stopPropagation(); return i0.ɵɵresetView(ctx.setOpen()); });
25159
25220
  i0.ɵɵprojection(3, 0, ["aria-hidden", "true"]);
@@ -25848,7 +25909,7 @@ class CaseFileViewFolderComponent {
25848
25909
  }] }); })();
25849
25910
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFileViewFolderComponent, { className: "CaseFileViewFolderComponent", filePath: "lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.ts", lineNumber: 28 }); })();
25850
25911
 
25851
- const _c0$t = a0 => ({ "form-group-error": a0 });
25912
+ const _c0$u = a0 => ({ "form-group-error": a0 });
25852
25913
  function AddCommentsComponent_span_7_Template(rf, ctx) { if (rf & 1) {
25853
25914
  i0.ɵɵelementStart(0, "span");
25854
25915
  i0.ɵɵtext(1);
@@ -26002,7 +26063,7 @@ class AddCommentsComponent extends AbstractJourneyComponent {
26002
26063
  } if (rf & 2) {
26003
26064
  i0.ɵɵproperty("formGroup", ctx.formGroup);
26004
26065
  i0.ɵɵadvance(2);
26005
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(19, _c0$t, ctx.errorMessages.length > 0));
26066
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(19, _c0$u, ctx.errorMessages.length > 0));
26006
26067
  i0.ɵɵadvance(2);
26007
26068
  i0.ɵɵproperty("for", ctx.flagCommentsControlName);
26008
26069
  i0.ɵɵadvance();
@@ -26333,6 +26394,7 @@ class CaseFlagSummaryListComponent {
26333
26394
  }] }); })();
26334
26395
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFlagSummaryListComponent, { className: "CaseFlagSummaryListComponent", filePath: "lib/shared/components/palette/case-flag/components/case-flag-summary-list/case-flag-summary-list.component.ts", lineNumber: 16 }); })();
26335
26396
 
26397
+ const _c0$t = a0 => ({ "govuk-!-font-weight-bold": a0 });
26336
26398
  function CaseFlagTableComponent_table_0_caption_1_Template(rf, ctx) { if (rf & 1) {
26337
26399
  i0.ɵɵelementStart(0, "caption", 13);
26338
26400
  i0.ɵɵtext(1);
@@ -26351,8 +26413,33 @@ function CaseFlagTableComponent_table_0_tr_19_Template(rf, ctx) { if (rf & 1) {
26351
26413
  i0.ɵɵadvance(2);
26352
26414
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "None"));
26353
26415
  } }
26354
- function CaseFlagTableComponent_table_0_tbody_20_tr_1_div_15_Template(rf, ctx) { if (rf & 1) {
26355
- i0.ɵɵelementStart(0, "div")(1, "span", 23);
26416
+ function CaseFlagTableComponent_table_0_tbody_20_tr_1_div_2_Template(rf, ctx) { if (rf & 1) {
26417
+ i0.ɵɵelementStart(0, "div");
26418
+ i0.ɵɵnamespaceSVG();
26419
+ i0.ɵɵelementStart(1, "svg", 24);
26420
+ i0.ɵɵelement(2, "path", 25);
26421
+ i0.ɵɵelementEnd();
26422
+ i0.ɵɵnamespaceHTML();
26423
+ i0.ɵɵelementStart(3, "span", 26);
26424
+ i0.ɵɵtext(4);
26425
+ i0.ɵɵelementEnd()();
26426
+ } if (rf & 2) {
26427
+ const ctx_r0 = i0.ɵɵnextContext(4);
26428
+ i0.ɵɵadvance(4);
26429
+ i0.ɵɵtextInterpolate(ctx_r0.pvpDisplayText);
26430
+ } }
26431
+ function CaseFlagTableComponent_table_0_tbody_20_tr_1_div_3_Template(rf, ctx) { if (rf & 1) {
26432
+ i0.ɵɵelementStart(0, "div");
26433
+ i0.ɵɵtext(1);
26434
+ i0.ɵɵpipe(2, "flagFieldDisplay");
26435
+ i0.ɵɵelementEnd();
26436
+ } if (rf & 2) {
26437
+ const flagDetail_r2 = i0.ɵɵnextContext().$implicit;
26438
+ i0.ɵɵadvance();
26439
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, flagDetail_r2, "name"));
26440
+ } }
26441
+ function CaseFlagTableComponent_table_0_tbody_20_tr_1_div_14_Template(rf, ctx) { if (rf & 1) {
26442
+ i0.ɵɵelementStart(0, "div")(1, "span", 26);
26356
26443
  i0.ɵɵtext(2);
26357
26444
  i0.ɵɵelementEnd()();
26358
26445
  } if (rf & 2) {
@@ -26360,8 +26447,8 @@ function CaseFlagTableComponent_table_0_tbody_20_tr_1_div_15_Template(rf, ctx) {
26360
26447
  i0.ɵɵadvance(2);
26361
26448
  i0.ɵɵtextInterpolate1("Update Reason: ", flagDetail_r2.flagUpdateComment);
26362
26449
  } }
26363
- function CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_23_Template(rf, ctx) { if (rf & 1) {
26364
- i0.ɵɵelementStart(0, "strong", 24);
26450
+ function CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_22_Template(rf, ctx) { if (rf & 1) {
26451
+ i0.ɵɵelementStart(0, "strong", 27);
26365
26452
  i0.ɵɵtext(1);
26366
26453
  i0.ɵɵpipe(2, "rpxTranslate");
26367
26454
  i0.ɵɵelementEnd();
@@ -26369,8 +26456,8 @@ function CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_23_Template(rf, ctx
26369
26456
  i0.ɵɵadvance();
26370
26457
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "Active"));
26371
26458
  } }
26372
- function CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_24_Template(rf, ctx) { if (rf & 1) {
26373
- i0.ɵɵelementStart(0, "strong", 25);
26459
+ function CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_23_Template(rf, ctx) { if (rf & 1) {
26460
+ i0.ɵɵelementStart(0, "strong", 28);
26374
26461
  i0.ɵɵtext(1);
26375
26462
  i0.ɵɵpipe(2, "rpxTranslate");
26376
26463
  i0.ɵɵelementEnd();
@@ -26378,8 +26465,8 @@ function CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_24_Template(rf, ctx
26378
26465
  i0.ɵɵadvance();
26379
26466
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "Inactive"));
26380
26467
  } }
26381
- function CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_25_Template(rf, ctx) { if (rf & 1) {
26382
- i0.ɵɵelementStart(0, "strong", 26);
26468
+ function CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_24_Template(rf, ctx) { if (rf & 1) {
26469
+ i0.ɵɵelementStart(0, "strong", 29);
26383
26470
  i0.ɵɵtext(1);
26384
26471
  i0.ɵɵpipe(2, "rpxTranslate");
26385
26472
  i0.ɵɵelementEnd();
@@ -26387,8 +26474,8 @@ function CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_25_Template(rf, ctx
26387
26474
  i0.ɵɵadvance();
26388
26475
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "Requested"));
26389
26476
  } }
26390
- function CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_26_Template(rf, ctx) { if (rf & 1) {
26391
- i0.ɵɵelementStart(0, "strong", 27);
26477
+ function CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_25_Template(rf, ctx) { if (rf & 1) {
26478
+ i0.ɵɵelementStart(0, "strong", 30);
26392
26479
  i0.ɵɵtext(1);
26393
26480
  i0.ɵɵpipe(2, "rpxTranslate");
26394
26481
  i0.ɵɵelementEnd();
@@ -26397,52 +26484,54 @@ function CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_26_Template(rf, ctx
26397
26484
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "Not approved"));
26398
26485
  } }
26399
26486
  function CaseFlagTableComponent_table_0_tbody_20_tr_1_Template(rf, ctx) { if (rf & 1) {
26400
- i0.ɵɵelementStart(0, "tr", 16)(1, "td", 17)(2, "div");
26401
- i0.ɵɵtext(3);
26402
- i0.ɵɵpipe(4, "flagFieldDisplay");
26403
- i0.ɵɵelementEnd();
26404
- i0.ɵɵelementStart(5, "div");
26405
- i0.ɵɵtext(6);
26406
- i0.ɵɵpipe(7, "flagFieldDisplay");
26487
+ i0.ɵɵelementStart(0, "tr", 16)(1, "td", 17);
26488
+ i0.ɵɵtemplate(2, CaseFlagTableComponent_table_0_tbody_20_tr_1_div_2_Template, 5, 1, "div", 11)(3, CaseFlagTableComponent_table_0_tbody_20_tr_1_div_3_Template, 3, 4, "div", 11);
26489
+ i0.ɵɵelementStart(4, "div");
26490
+ i0.ɵɵtext(5);
26491
+ i0.ɵɵpipe(6, "flagFieldDisplay");
26407
26492
  i0.ɵɵelementEnd();
26408
- i0.ɵɵelementStart(8, "div");
26409
- i0.ɵɵtext(9);
26410
- i0.ɵɵpipe(10, "flagFieldDisplay");
26493
+ i0.ɵɵelementStart(7, "div");
26494
+ i0.ɵɵtext(8);
26495
+ i0.ɵɵpipe(9, "flagFieldDisplay");
26411
26496
  i0.ɵɵelementEnd()();
26412
- i0.ɵɵelementStart(11, "td", 17)(12, "div");
26413
- i0.ɵɵtext(13);
26414
- i0.ɵɵpipe(14, "flagFieldDisplay");
26497
+ i0.ɵɵelementStart(10, "td", 17)(11, "div", 18);
26498
+ i0.ɵɵtext(12);
26499
+ i0.ɵɵpipe(13, "flagFieldDisplay");
26415
26500
  i0.ɵɵelementEnd();
26416
- i0.ɵɵtemplate(15, CaseFlagTableComponent_table_0_tbody_20_tr_1_div_15_Template, 3, 1, "div", 11);
26501
+ i0.ɵɵtemplate(14, CaseFlagTableComponent_table_0_tbody_20_tr_1_div_14_Template, 3, 1, "div", 11);
26417
26502
  i0.ɵɵelementEnd();
26418
- i0.ɵɵelementStart(16, "td", 17);
26419
- i0.ɵɵtext(17);
26420
- i0.ɵɵpipe(18, "date");
26503
+ i0.ɵɵelementStart(15, "td", 17);
26504
+ i0.ɵɵtext(16);
26505
+ i0.ɵɵpipe(17, "date");
26421
26506
  i0.ɵɵelementEnd();
26422
- i0.ɵɵelementStart(19, "td", 17);
26423
- i0.ɵɵtext(20);
26424
- i0.ɵɵpipe(21, "date");
26507
+ i0.ɵɵelementStart(18, "td", 17);
26508
+ i0.ɵɵtext(19);
26509
+ i0.ɵɵpipe(20, "date");
26425
26510
  i0.ɵɵelementEnd();
26426
- i0.ɵɵelementStart(22, "td", 18);
26427
- i0.ɵɵtemplate(23, CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_23_Template, 3, 3, "strong", 19)(24, CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_24_Template, 3, 3, "strong", 20)(25, CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_25_Template, 3, 3, "strong", 21)(26, CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_26_Template, 3, 3, "strong", 22);
26511
+ i0.ɵɵelementStart(21, "td", 19);
26512
+ i0.ɵɵtemplate(22, CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_22_Template, 3, 3, "strong", 20)(23, CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_23_Template, 3, 3, "strong", 21)(24, CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_24_Template, 3, 3, "strong", 22)(25, CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_25_Template, 3, 3, "strong", 23);
26428
26513
  i0.ɵɵelementEnd()();
26429
26514
  } if (rf & 2) {
26430
26515
  const flagDetail_r2 = ctx.$implicit;
26431
26516
  const ctx_r0 = i0.ɵɵnextContext(3);
26517
+ i0.ɵɵadvance(2);
26518
+ i0.ɵɵproperty("ngIf", ctx_r0.isActivePvpFlag(flagDetail_r2));
26519
+ i0.ɵɵadvance();
26520
+ i0.ɵɵproperty("ngIf", !ctx_r0.isActivePvpFlag(flagDetail_r2));
26521
+ i0.ɵɵadvance(2);
26522
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(6, 13, flagDetail_r2, "otherDescription"));
26432
26523
  i0.ɵɵadvance(3);
26433
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(4, 11, flagDetail_r2, "name"));
26434
- i0.ɵɵadvance(3);
26435
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(7, 14, flagDetail_r2, "otherDescription"));
26524
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(9, 16, flagDetail_r2, "subTypeValue"));
26436
26525
  i0.ɵɵadvance(3);
26437
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(10, 17, flagDetail_r2, "subTypeValue"));
26438
- i0.ɵɵadvance(4);
26439
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(14, 20, flagDetail_r2, "flagComment"));
26526
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(28, _c0$t, ctx_r0.isActivePvpFlag(flagDetail_r2)));
26527
+ i0.ɵɵadvance();
26528
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(13, 19, flagDetail_r2, "flagComment"), " ");
26440
26529
  i0.ɵɵadvance(2);
26441
26530
  i0.ɵɵproperty("ngIf", !ctx_r0.caseFlagsExternalUser && (flagDetail_r2.status === ctx_r0.caseFlagStatus.NOT_APPROVED || flagDetail_r2.status === ctx_r0.caseFlagStatus.INACTIVE) && flagDetail_r2.flagUpdateComment);
26442
26531
  i0.ɵɵadvance(2);
26443
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(18, 23, flagDetail_r2.dateTimeCreated, "dd LLL yyyy"));
26532
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(17, 22, flagDetail_r2.dateTimeCreated, "dd LLL yyyy"));
26444
26533
  i0.ɵɵadvance(3);
26445
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(21, 26, flagDetail_r2.dateTimeModified, "dd LLL yyyy"));
26534
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(20, 25, flagDetail_r2.dateTimeModified, "dd LLL yyyy"));
26446
26535
  i0.ɵɵadvance(3);
26447
26536
  i0.ɵɵproperty("ngIf", flagDetail_r2.status === ctx_r0.caseFlagStatus.ACTIVE);
26448
26537
  i0.ɵɵadvance();
@@ -26454,7 +26543,7 @@ function CaseFlagTableComponent_table_0_tbody_20_tr_1_Template(rf, ctx) { if (rf
26454
26543
  } }
26455
26544
  function CaseFlagTableComponent_table_0_tbody_20_Template(rf, ctx) { if (rf & 1) {
26456
26545
  i0.ɵɵelementStart(0, "tbody", 10);
26457
- i0.ɵɵtemplate(1, CaseFlagTableComponent_table_0_tbody_20_tr_1_Template, 27, 29, "tr", 15);
26546
+ i0.ɵɵtemplate(1, CaseFlagTableComponent_table_0_tbody_20_tr_1_Template, 26, 30, "tr", 15);
26458
26547
  i0.ɵɵelementEnd();
26459
26548
  } if (rf & 2) {
26460
26549
  const ctx_r0 = i0.ɵɵnextContext(2);
@@ -26512,11 +26601,18 @@ class CaseFlagTableComponent {
26512
26601
  flagData;
26513
26602
  firstColumnHeader;
26514
26603
  caseFlagsExternalUser = false;
26604
+ pvpDisplayText = PVP_DISPLAY_TEXT;
26515
26605
  get caseFlagStatus() {
26516
26606
  return CaseFlagStatus;
26517
26607
  }
26608
+ isPvpFlag(flagDetail) {
26609
+ return isPvpFlag(flagDetail);
26610
+ }
26611
+ isActivePvpFlag(flagDetail) {
26612
+ return isPvpFlag(flagDetail) && flagDetail?.status === CaseFlagStatus.ACTIVE;
26613
+ }
26518
26614
  static ɵfac = function CaseFlagTableComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseFlagTableComponent)(); };
26519
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFlagTableComponent, selectors: [["ccd-case-flag-table"]], inputs: { tableCaption: "tableCaption", flagData: "flagData", firstColumnHeader: "firstColumnHeader", caseFlagsExternalUser: "caseFlagsExternalUser" }, standalone: false, decls: 1, vars: 1, consts: [["class", "govuk-table", 4, "ngIf"], [1, "govuk-table"], ["class", "govuk-table__caption govuk-table__caption--l", 4, "ngIf"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["scope", "col", 1, "govuk-table__header", "col-party-name"], ["scope", "col", 1, "govuk-table__header", "col-comments"], ["scope", "col", 1, "govuk-table__header", "col-creation-date"], ["scope", "col", 1, "govuk-table__header", "col-last-modified"], ["scope", "col", 1, "govuk-table__header", "col-flag-status"], [1, "govuk-table__body"], [4, "ngIf"], ["class", "govuk-table__body", 4, "ngIf"], [1, "govuk-table__caption", "govuk-table__caption--l"], ["colspan", "5"], ["scope", "row", "class", "govuk-table__row", 4, "ngFor", "ngForOf"], ["scope", "row", 1, "govuk-table__row"], [1, "govuk-table__cell"], [1, "govuk-table__cell", "cell-flag-status"], ["class", "govuk-tag govuk-tag--turquoise", 4, "ngIf"], ["class", "govuk-tag govuk-tag--grey", 4, "ngIf"], ["class", "govuk-tag govuk-tag--yellow", 4, "ngIf"], ["class", "govuk-tag govuk-tag--red", 4, "ngIf"], [1, "govuk-!-font-weight-bold"], [1, "govuk-tag", "govuk-tag--turquoise"], [1, "govuk-tag", "govuk-tag--grey"], [1, "govuk-tag", "govuk-tag--yellow"], [1, "govuk-tag", "govuk-tag--red"]], template: function CaseFlagTableComponent_Template(rf, ctx) { if (rf & 1) {
26615
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFlagTableComponent, selectors: [["ccd-case-flag-table"]], inputs: { tableCaption: "tableCaption", flagData: "flagData", firstColumnHeader: "firstColumnHeader", caseFlagsExternalUser: "caseFlagsExternalUser" }, standalone: false, decls: 1, vars: 1, consts: [["class", "govuk-table", 4, "ngIf"], [1, "govuk-table"], ["class", "govuk-table__caption govuk-table__caption--l", 4, "ngIf"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["scope", "col", 1, "govuk-table__header", "col-party-name"], ["scope", "col", 1, "govuk-table__header", "col-comments"], ["scope", "col", 1, "govuk-table__header", "col-creation-date"], ["scope", "col", 1, "govuk-table__header", "col-last-modified"], ["scope", "col", 1, "govuk-table__header", "col-flag-status"], [1, "govuk-table__body"], [4, "ngIf"], ["class", "govuk-table__body", 4, "ngIf"], [1, "govuk-table__caption", "govuk-table__caption--l"], ["colspan", "5"], ["scope", "row", "class", "govuk-table__row", 4, "ngFor", "ngForOf"], ["scope", "row", 1, "govuk-table__row"], [1, "govuk-table__cell"], [3, "ngClass"], [1, "govuk-table__cell", "cell-flag-status"], ["class", "govuk-tag govuk-tag--turquoise", 4, "ngIf"], ["class", "govuk-tag govuk-tag--grey", 4, "ngIf"], ["class", "govuk-tag govuk-tag--yellow", 4, "ngIf"], ["class", "govuk-tag govuk-tag--red", 4, "ngIf"], ["fill", "currentColor", "role", "presentation", "aria-hidden", "true", "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"], [1, "govuk-!-font-weight-bold"], [1, "govuk-tag", "govuk-tag--turquoise"], [1, "govuk-tag", "govuk-tag--grey"], [1, "govuk-tag", "govuk-tag--yellow"], [1, "govuk-tag", "govuk-tag--red"]], template: function CaseFlagTableComponent_Template(rf, ctx) { if (rf & 1) {
26520
26616
  i0.ɵɵtemplate(0, CaseFlagTableComponent_table_0_Template, 21, 16, "table", 0);
26521
26617
  } if (rf & 2) {
26522
26618
  i0.ɵɵproperty("ngIf", ctx.flagData);
@@ -26524,7 +26620,7 @@ class CaseFlagTableComponent {
26524
26620
  }
26525
26621
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFlagTableComponent, [{
26526
26622
  type: Component,
26527
- args: [{ selector: 'ccd-case-flag-table', standalone: false, template: "<table class=\"govuk-table\" *ngIf=\"flagData\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\" *ngIf=\"tableCaption\">{{tableCaption}}</caption>\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th scope=\"col\" class=\"govuk-table__header col-party-name\">{{firstColumnHeader}}</th>\n <th scope=\"col\" class=\"govuk-table__header col-comments\">{{'Comments' | rpxTranslate}}</th>\n <th scope=\"col\" class=\"govuk-table__header col-creation-date\">{{'Creation date' | rpxTranslate}}</th>\n <th scope=\"col\" class=\"govuk-table__header col-last-modified\">{{'Last modified' | rpxTranslate}}</th>\n <th scope=\"col\" class=\"govuk-table__header col-flag-status\">{{'Flag status' | rpxTranslate}}</th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr *ngIf=\"!flagData.flags.details || (flagData.flags.details && flagData.flags.details.length === 0)\">\n <td colspan=\"5\">{{'None' | rpxTranslate}}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"flagData.flags.details && flagData.flags.details.length > 0\">\n <tr scope=\"row\" class=\"govuk-table__row\" *ngFor=\"let flagDetail of flagData.flags.details\">\n <td class=\"govuk-table__cell\">\n <div>{{flagDetail | flagFieldDisplay:'name'}}</div>\n <div>{{flagDetail | flagFieldDisplay:'otherDescription'}}</div>\n <div>{{flagDetail | flagFieldDisplay:'subTypeValue'}}</div>\n </td>\n <td class=\"govuk-table__cell\">\n <div>{{flagDetail | flagFieldDisplay:'flagComment'}}</div>\n <div *ngIf=\"!caseFlagsExternalUser &&\n (flagDetail.status === caseFlagStatus.NOT_APPROVED || flagDetail.status === caseFlagStatus.INACTIVE) &&\n flagDetail.flagUpdateComment\">\n <span class=\"govuk-!-font-weight-bold\">Update Reason: {{flagDetail.flagUpdateComment}}</span>\n </div>\n </td>\n <td class=\"govuk-table__cell\">{{flagDetail.dateTimeCreated | date: 'dd LLL yyyy'}}</td>\n <td class=\"govuk-table__cell\">{{flagDetail.dateTimeModified | date: 'dd LLL yyyy'}}</td>\n <td class=\"govuk-table__cell cell-flag-status\">\n <strong *ngIf=\"flagDetail.status === caseFlagStatus.ACTIVE\" class=\"govuk-tag govuk-tag--turquoise\">{{'Active' | rpxTranslate}}</strong>\n <strong *ngIf=\"flagDetail.status === caseFlagStatus.INACTIVE\" class=\"govuk-tag govuk-tag--grey\">{{'Inactive' | rpxTranslate}}</strong>\n <strong *ngIf=\"flagDetail.status === caseFlagStatus.REQUESTED\" class=\"govuk-tag govuk-tag--yellow\">{{'Requested' | rpxTranslate}}</strong>\n <strong *ngIf=\"flagDetail.status === caseFlagStatus.NOT_APPROVED\" class=\"govuk-tag govuk-tag--red\">{{'Not approved' | rpxTranslate}}</strong>\n </td>\n </tr>\n </tbody>\n</table>\n", styles: [".govuk-table .govuk-table__caption{margin-top:10px}.govuk-table .govuk-table__head .govuk-table__row .col-party-name{width:24%}.govuk-table .govuk-table__head .govuk-table__row .col-comments{width:42%}.govuk-table .govuk-table__head .govuk-table__row .col-creation-date,.govuk-table .govuk-table__head .govuk-table__row .col-last-modified{width:12%}.govuk-table .govuk-table__head .govuk-table__row .col-flag-status{width:10%}.govuk-table .govuk-table__body .govuk-table__row .cell-flag-status{white-space:nowrap}\n"] }]
26623
+ args: [{ selector: 'ccd-case-flag-table', standalone: false, template: "<table class=\"govuk-table\" *ngIf=\"flagData\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\" *ngIf=\"tableCaption\">{{tableCaption}}</caption>\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th scope=\"col\" class=\"govuk-table__header col-party-name\">{{firstColumnHeader}}</th>\n <th scope=\"col\" class=\"govuk-table__header col-comments\">{{'Comments' | rpxTranslate}}</th>\n <th scope=\"col\" class=\"govuk-table__header col-creation-date\">{{'Creation date' | rpxTranslate}}</th>\n <th scope=\"col\" class=\"govuk-table__header col-last-modified\">{{'Last modified' | rpxTranslate}}</th>\n <th scope=\"col\" class=\"govuk-table__header col-flag-status\">{{'Flag status' | rpxTranslate}}</th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr *ngIf=\"!flagData.flags.details || (flagData.flags.details && flagData.flags.details.length === 0)\">\n <td colspan=\"5\">{{'None' | rpxTranslate}}</td>\n </tr>\n </tbody>\n <tbody class=\"govuk-table__body\" *ngIf=\"flagData.flags.details && flagData.flags.details.length > 0\">\n <tr scope=\"row\" class=\"govuk-table__row\" *ngFor=\"let flagDetail of flagData.flags.details\">\n <td class=\"govuk-table__cell\">\n <div *ngIf=\"isActivePvpFlag(flagDetail)\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" role=\"presentation\" aria-hidden=\"true\" focusable=\"false\"\n xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path 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\"></path>\n </svg>\n <span class=\"govuk-!-font-weight-bold\">{{pvpDisplayText}}</span>\n </div>\n <div *ngIf=\"!isActivePvpFlag(flagDetail)\">{{flagDetail | flagFieldDisplay:'name'}}</div>\n <div>{{flagDetail | flagFieldDisplay:'otherDescription'}}</div>\n <div>{{flagDetail | flagFieldDisplay:'subTypeValue'}}</div>\n </td>\n <td class=\"govuk-table__cell\">\n <div [ngClass]=\"{'govuk-!-font-weight-bold': isActivePvpFlag(flagDetail)}\">\n {{flagDetail | flagFieldDisplay:'flagComment'}}\n </div>\n <div *ngIf=\"!caseFlagsExternalUser &&\n (flagDetail.status === caseFlagStatus.NOT_APPROVED || flagDetail.status === caseFlagStatus.INACTIVE) &&\n flagDetail.flagUpdateComment\">\n <span class=\"govuk-!-font-weight-bold\">Update Reason: {{flagDetail.flagUpdateComment}}</span>\n </div>\n </td>\n <td class=\"govuk-table__cell\">{{flagDetail.dateTimeCreated | date: 'dd LLL yyyy'}}</td>\n <td class=\"govuk-table__cell\">{{flagDetail.dateTimeModified | date: 'dd LLL yyyy'}}</td>\n <td class=\"govuk-table__cell cell-flag-status\">\n <strong *ngIf=\"flagDetail.status === caseFlagStatus.ACTIVE\" class=\"govuk-tag govuk-tag--turquoise\">{{'Active' | rpxTranslate}}</strong>\n <strong *ngIf=\"flagDetail.status === caseFlagStatus.INACTIVE\" class=\"govuk-tag govuk-tag--grey\">{{'Inactive' | rpxTranslate}}</strong>\n <strong *ngIf=\"flagDetail.status === caseFlagStatus.REQUESTED\" class=\"govuk-tag govuk-tag--yellow\">{{'Requested' | rpxTranslate}}</strong>\n <strong *ngIf=\"flagDetail.status === caseFlagStatus.NOT_APPROVED\" class=\"govuk-tag govuk-tag--red\">{{'Not approved' | rpxTranslate}}</strong>\n </td>\n </tr>\n </tbody>\n</table>\n", styles: [".govuk-table .govuk-table__caption{margin-top:10px}.govuk-table .govuk-table__head .govuk-table__row .col-party-name{width:24%}.govuk-table .govuk-table__head .govuk-table__row .col-comments{width:42%}.govuk-table .govuk-table__head .govuk-table__row .col-creation-date,.govuk-table .govuk-table__head .govuk-table__row .col-last-modified{width:12%}.govuk-table .govuk-table__head .govuk-table__row .col-flag-status{width:10%}.govuk-table .govuk-table__body .govuk-table__row .cell-flag-status{white-space:nowrap}\n"] }]
26528
26624
  }], null, { tableCaption: [{
26529
26625
  type: Input
26530
26626
  }], flagData: [{
@@ -26534,7 +26630,7 @@ class CaseFlagTableComponent {
26534
26630
  }], caseFlagsExternalUser: [{
26535
26631
  type: Input
26536
26632
  }] }); })();
26537
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFlagTableComponent, { className: "CaseFlagTableComponent", filePath: "lib/shared/components/palette/case-flag/components/case-flag-table/case-flag-table.component.ts", lineNumber: 11 }); })();
26633
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFlagTableComponent, { className: "CaseFlagTableComponent", filePath: "lib/shared/components/palette/case-flag/components/case-flag-table/case-flag-table.component.ts", lineNumber: 12 }); })();
26538
26634
 
26539
26635
  const _c0$s = a0 => ({ "form-group-error": a0 });
26540
26636
  function ManageCaseFlagsComponent_div_7_Template(rf, ctx) { if (rf & 1) {
@@ -31973,7 +32069,7 @@ i0.ɵɵsetComponentScope(
31973
32069
  CaseFileViewFieldComponent, function () { return [i5.NgForOf, i5.NgIf, i14.MediaViewerComponent, CaseFileViewFolderComponent]; }, []);
31974
32070
  i0.ɵɵsetComponentScope(
31975
32071
  // Components for case flags
31976
- CaseFlagTableComponent, function () { return [i5.NgForOf, i5.NgIf]; }, function () { return [i5.DatePipe, i1.RpxTranslatePipe, FlagFieldDisplayPipe]; });
32072
+ CaseFlagTableComponent, function () { return [i5.NgClass, i5.NgForOf, i5.NgIf]; }, function () { return [i5.DatePipe, i1.RpxTranslatePipe, FlagFieldDisplayPipe]; });
31977
32073
  i0.ɵɵsetComponentScope(SelectFlagTypeComponent, function () { return [i5.NgClass, i5.NgForOf, i5.NgIf, i4.DefaultValueAccessor, i4.CheckboxControlValueAccessor, i4.RadioControlValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName]; }, function () { return [i1.RpxTranslatePipe, FlagFieldDisplayPipe]; });
31978
32074
  i0.ɵɵsetComponentScope(SearchLanguageInterpreterComponent, function () { return [i5.NgClass, i5.NgForOf, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i15.MatLegacyInput, i6.MatLegacyAutocomplete, i6.MatLegacyAutocompleteTrigger, i7.MatLegacyOption]; }, function () { return [i5.AsyncPipe, i1.RpxTranslatePipe, FlagFieldDisplayPipe,
31979
32075
  LanguageInterpreterDisplayPipe]; });
@@ -35829,99 +35925,6 @@ class DialogsModule {
35829
35925
  SaveOrDiscardDialogComponent,
35830
35926
  RemoveDialogComponent] }); })();
35831
35927
 
35832
- const PVP_FLAG_CODE = 'PF0021';
35833
- const PVP_DISPLAY_TEXT = 'POTENTIALLY VIOLENT PERSON';
35834
- function isPvpFlag(flagDetail) {
35835
- return flagDetail?.flagCode === PVP_FLAG_CODE;
35836
- }
35837
- function hasPvpFlag(flagsWithFormGroupPath) {
35838
- return !!flagsWithFormGroupPath?.flags?.details?.some(isPvpFlag);
35839
- }
35840
- function isActivePvpFlag(flagDetail) {
35841
- return isPvpFlag(flagDetail) && flagDetail?.status === CaseFlagStatus.ACTIVE;
35842
- }
35843
- function hasActivePvpFlag(flagsWithFormGroupPath) {
35844
- return !!flagsWithFormGroupPath?.flags?.details?.some(isActivePvpFlag);
35845
- }
35846
- function prioritisePvpFlags(flagDetails = []) {
35847
- const activePvpFlags = [];
35848
- const remainingFlags = [];
35849
- flagDetails.forEach((flagDetail) => {
35850
- if (isActivePvpFlag(flagDetail)) {
35851
- activePvpFlags.push(flagDetail);
35852
- }
35853
- else {
35854
- remainingFlags.push(flagDetail);
35855
- }
35856
- });
35857
- return [...activePvpFlags, ...remainingFlags];
35858
- }
35859
- function prioritisePvpParties(partyFlagsData = []) {
35860
- const pvpParties = [];
35861
- const nonPvpParties = [];
35862
- partyFlagsData.forEach((partyFlags) => {
35863
- const prioritisedPartyFlags = {
35864
- ...partyFlags,
35865
- flags: {
35866
- ...partyFlags.flags,
35867
- details: partyFlags?.flags?.details ? prioritisePvpFlags(partyFlags.flags.details) : partyFlags?.flags?.details
35868
- }
35869
- };
35870
- if (hasActivePvpFlag(prioritisedPartyFlags)) {
35871
- pvpParties.push(prioritisedPartyFlags);
35872
- }
35873
- else {
35874
- nonPvpParties.push(prioritisedPartyFlags);
35875
- }
35876
- });
35877
- return [...pvpParties, ...nonPvpParties];
35878
- }
35879
- function hasActivePvpFlagInCaseFields(caseFields = []) {
35880
- return caseFields
35881
- .filter((caseField) => !FieldsUtils.isFlagLauncherCaseField(caseField) && caseField.value)
35882
- .some((caseField) => hasActivePvpFlagInCaseField(caseField));
35883
- }
35884
- function hasActivePvpFlagInCaseField(caseField, currentValue) {
35885
- const fieldType = caseField?.field_type;
35886
- const value = caseField?.value ? caseField.value : currentValue;
35887
- if (fieldType?.type === 'Complex') {
35888
- return hasActivePvpFlagInComplexField(caseField, value);
35889
- }
35890
- if (fieldType?.type === 'Collection') {
35891
- return hasActivePvpFlagInCollectionField(caseField, value);
35892
- }
35893
- return false;
35894
- }
35895
- function hasActivePvpFlagInComplexField(caseField, value) {
35896
- if (FieldsUtils.isFlagsCaseField(caseField)) {
35897
- return hasActivePvpFlagInFlagsValue(value);
35898
- }
35899
- const complexFields = caseField?.field_type?.complex_fields;
35900
- if (!complexFields || !value || !FieldsUtils.isNonEmptyObject(value)) {
35901
- return false;
35902
- }
35903
- return complexFields.some((subField) => hasActivePvpFlagInCaseField(subField, value[subField.id]));
35904
- }
35905
- function hasActivePvpFlagInCollectionField(caseField, value) {
35906
- if (!value || !Array.isArray(value)) {
35907
- return false;
35908
- }
35909
- const collectionFieldType = caseField?.field_type?.collection_field_type;
35910
- if (FieldsUtils.isFlagsFieldType(collectionFieldType)) {
35911
- return value.some((item) => hasActivePvpFlagInFlagsValue(item?.value));
35912
- }
35913
- if (collectionFieldType?.type !== 'Complex' || !collectionFieldType.complex_fields) {
35914
- return false;
35915
- }
35916
- return value.some((item) => collectionFieldType.complex_fields.some((subField) => hasActivePvpFlagInCaseField(subField, item?.value?.[subField.id])));
35917
- }
35918
- function hasActivePvpFlagInFlagsValue(value) {
35919
- if (!value || !FieldsUtils.isNonEmptyObject(value) || !value.details || !Array.isArray(value.details)) {
35920
- return false;
35921
- }
35922
- return value.details.some((detail) => isActivePvpFlag(detail?.value ?? detail));
35923
- }
35924
-
35925
35928
  const _c0$c = ["tabGroup"];
35926
35929
  const _c1$3 = (a0, a1) => [a0, false, undefined, true, a1];
35927
35930
  function CaseFullAccessViewComponent_div_0_Template(rf, ctx) { if (rf & 1) {
@@ -36225,7 +36228,6 @@ class CaseFullAccessViewComponent {
36225
36228
  activeCaseFlags = false;
36226
36229
  caseFlagsExternalUser = false;
36227
36230
  caseFlagsReadExternalMode = '#ARGUMENT(READ,EXTERNAL)';
36228
- potentiallyViolentPersonFlagPrefix = `${PVP_DISPLAY_TEXT}.`;
36229
36231
  subs = [];
36230
36232
  eventId;
36231
36233
  isEventButtonClicked = false;
@@ -36530,8 +36532,9 @@ class CaseFullAccessViewComponent {
36530
36532
  }
36531
36533
  hasActiveCaseFlags() {
36532
36534
  // Determine which tab contains the FlagLauncher CaseField type, from the CaseView object in the snapshot data
36533
- const caseFlagsTab = this.caseDetails?.tabs?.filter((tab) => tab.fields && tab.fields.some((caseField) => FieldsUtils.isFlagLauncherCaseField(caseField)))[0]
36534
- ?? null;
36535
+ const caseFlagsTab = this.caseDetails?.tabs
36536
+ ? (this.caseDetails.tabs).filter((tab) => tab.fields && tab.fields.some((caseField) => FieldsUtils.isFlagLauncherCaseField(caseField)))[0]
36537
+ : null;
36535
36538
  if (caseFlagsTab) {
36536
36539
  // Check whether the FlagLauncher CaseField is in external mode or not; the notification banner should not be
36537
36540
  // displayed for external users
@@ -36546,12 +36549,8 @@ class CaseFullAccessViewComponent {
36546
36549
  return FieldsUtils.countActiveFlagsInCaseField(active, caseFlag);
36547
36550
  }, 0);
36548
36551
  if (activeCaseFlags > 0) {
36549
- const hasActivePotentiallyViolentPersonFlag = this.hasActivePotentiallyViolentPersonFlag(caseFlagsTab.fields);
36550
- const baseDescription = activeCaseFlags > 1
36552
+ const description = activeCaseFlags > 1
36551
36553
  ? `There are ${activeCaseFlags} active flags on this case.` : 'There is 1 active flag on this case.';
36552
- const description = hasActivePotentiallyViolentPersonFlag
36553
- ? `${this.potentiallyViolentPersonFlagPrefix} ${baseDescription}`
36554
- : baseDescription;
36555
36554
  // Initialise and display notification banner
36556
36555
  this.notificationBannerConfig = {
36557
36556
  bannerType: NotificationBannerType.INFORMATION,
@@ -36568,9 +36567,6 @@ class CaseFullAccessViewComponent {
36568
36567
  }
36569
36568
  return false;
36570
36569
  }
36571
- hasActivePotentiallyViolentPersonFlag(caseFields) {
36572
- return hasActivePvpFlagInCaseFields(caseFields);
36573
- }
36574
36570
  /**
36575
36571
  * Indicates that a CaseField is to be displayed without a label, as is expected for all ComponentLauncher-type
36576
36572
  * fields.
@@ -36682,7 +36678,7 @@ class CaseFullAccessViewComponent {
36682
36678
  type: ViewChild,
36683
36679
  args: ['tabGroup', { static: false }]
36684
36680
  }] }); })();
36685
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFullAccessViewComponent, { className: "CaseFullAccessViewComponent", filePath: "lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.ts", lineNumber: 48 }); })();
36681
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFullAccessViewComponent, { className: "CaseFullAccessViewComponent", filePath: "lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.ts", lineNumber: 47 }); })();
36686
36682
 
36687
36683
  class PrintUrlPipe {
36688
36684
  appConfig;