@hmcts/ccd-case-ui-toolkit 6.10.7-case-flags-support-tab-changes-v3 → 6.10.7-case-flags-confirm-flag-status-step

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.
Files changed (46) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +353 -268
  2. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
  3. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
  4. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
  5. package/esm2015/lib/shared/components/palette/case-flag/components/case-flag-table/case-flag-table.component.js +59 -66
  6. package/esm2015/lib/shared/components/palette/case-flag/components/confirm-flag-status/confirm-flag-status.component.js +107 -0
  7. package/esm2015/lib/shared/components/palette/case-flag/components/index.js +2 -1
  8. package/esm2015/lib/shared/components/palette/case-flag/domain/case-flag.model.js +1 -1
  9. package/esm2015/lib/shared/components/palette/case-flag/enums/case-flag-status.enum.js +2 -2
  10. package/esm2015/lib/shared/components/palette/case-flag/enums/case-flag-wizard-step-title.enum.js +2 -1
  11. package/esm2015/lib/shared/components/palette/case-flag/enums/confirm-status-step.enum.js +6 -0
  12. package/esm2015/lib/shared/components/palette/case-flag/enums/index.js +2 -1
  13. package/esm2015/lib/shared/components/palette/case-flag/enums/update-flag-step.enum.js +2 -2
  14. package/esm2015/lib/shared/components/palette/case-flag/enums/write-case-flag-field.enum.js +4 -3
  15. package/esm2015/lib/shared/components/palette/case-flag/read-case-flag-field.component.js +24 -64
  16. package/esm2015/lib/shared/components/palette/case-flag/write-case-flag-field.component.js +50 -32
  17. package/esm2015/lib/shared/components/palette/palette.module.js +10 -8
  18. package/esm2015/lib/shared/domain/case-flag/flag-type.model.js +2 -2
  19. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +339 -257
  20. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  21. package/lib/shared/components/palette/case-flag/components/case-flag-table/case-flag-table.component.d.ts.map +1 -1
  22. package/lib/shared/components/palette/case-flag/components/confirm-flag-status/confirm-flag-status.component.d.ts +24 -0
  23. package/lib/shared/components/palette/case-flag/components/confirm-flag-status/confirm-flag-status.component.d.ts.map +1 -0
  24. package/lib/shared/components/palette/case-flag/components/index.d.ts +1 -0
  25. package/lib/shared/components/palette/case-flag/components/index.d.ts.map +1 -1
  26. package/lib/shared/components/palette/case-flag/domain/case-flag.model.d.ts +6 -0
  27. package/lib/shared/components/palette/case-flag/domain/case-flag.model.d.ts.map +1 -1
  28. package/lib/shared/components/palette/case-flag/enums/case-flag-status.enum.d.ts +1 -1
  29. package/lib/shared/components/palette/case-flag/enums/case-flag-status.enum.d.ts.map +1 -1
  30. package/lib/shared/components/palette/case-flag/enums/case-flag-wizard-step-title.enum.d.ts +1 -0
  31. package/lib/shared/components/palette/case-flag/enums/case-flag-wizard-step-title.enum.d.ts.map +1 -1
  32. package/lib/shared/components/palette/case-flag/enums/confirm-status-step.enum.d.ts +5 -0
  33. package/lib/shared/components/palette/case-flag/enums/confirm-status-step.enum.d.ts.map +1 -0
  34. package/lib/shared/components/palette/case-flag/enums/index.d.ts +1 -0
  35. package/lib/shared/components/palette/case-flag/enums/index.d.ts.map +1 -1
  36. package/lib/shared/components/palette/case-flag/enums/update-flag-step.enum.d.ts +1 -1
  37. package/lib/shared/components/palette/case-flag/enums/write-case-flag-field.enum.d.ts +3 -2
  38. package/lib/shared/components/palette/case-flag/enums/write-case-flag-field.enum.d.ts.map +1 -1
  39. package/lib/shared/components/palette/case-flag/read-case-flag-field.component.d.ts +0 -2
  40. package/lib/shared/components/palette/case-flag/read-case-flag-field.component.d.ts.map +1 -1
  41. package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts.map +1 -1
  42. package/lib/shared/components/palette/palette.module.d.ts +28 -27
  43. package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
  44. package/lib/shared/domain/case-flag/flag-type.model.d.ts +4 -1
  45. package/lib/shared/domain/case-flag/flag-type.model.d.ts.map +1 -1
  46. package/package.json +1 -1
@@ -118,7 +118,7 @@
118
118
  i0__namespace.ɵɵtextInterpolate(ctx_r1.workhours);
119
119
  }
120
120
  }
121
- var _c0$Y = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
121
+ var _c0$Z = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
122
122
  var _c1$q = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
123
123
  var FooterComponent = /** @class */ (function () {
124
124
  function FooterComponent() {
@@ -128,7 +128,7 @@
128
128
  FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
129
129
  FooterComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$q, 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) {
130
130
  if (rf & 1) {
131
- i0__namespace.ɵɵprojectionDef(_c0$Y);
131
+ i0__namespace.ɵɵprojectionDef(_c0$Z);
132
132
  i0__namespace.ɵɵelementStart(0, "footer", 0);
133
133
  i0__namespace.ɵɵelementStart(1, "div", 1);
134
134
  i0__namespace.ɵɵtemplate(2, FooterComponent_div_2_Template, 15, 0, "div", 2);
@@ -207,7 +207,7 @@
207
207
  i0__namespace.ɵɵtextInterpolate(ctx_r2.title);
208
208
  }
209
209
  }
210
- var _c0$X = [[["", "headerNavigation", ""]]];
210
+ var _c0$Y = [[["", "headerNavigation", ""]]];
211
211
  var _c1$p = ["[headerNavigation]"];
212
212
  var HeaderBarComponent = /** @class */ (function () {
213
213
  function HeaderBarComponent() {
@@ -221,7 +221,7 @@
221
221
  HeaderBarComponent.ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
222
222
  HeaderBarComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$p, decls: 15, vars: 8, 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"], ["id", "sign-out", "href", "javascript:void(0)", 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) {
223
223
  if (rf & 1) {
224
- i0__namespace.ɵɵprojectionDef(_c0$X);
224
+ i0__namespace.ɵɵprojectionDef(_c0$Y);
225
225
  i0__namespace.ɵɵelementStart(0, "header", 0);
226
226
  i0__namespace.ɵɵelementStart(1, "div", 1);
227
227
  i0__namespace.ɵɵelementStart(2, "div", 2);
@@ -282,7 +282,7 @@
282
282
  }] });
283
283
  })();
284
284
 
285
- var _c0$W = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
285
+ var _c0$X = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
286
286
  var _c1$o = ["[leftNavLinks]", "[rightNavLinks]"];
287
287
  var NavigationComponent = /** @class */ (function () {
288
288
  function NavigationComponent() {
@@ -292,7 +292,7 @@
292
292
  NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
293
293
  NavigationComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$o, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) {
294
294
  if (rf & 1) {
295
- i0__namespace.ɵɵprojectionDef(_c0$W);
295
+ i0__namespace.ɵɵprojectionDef(_c0$X);
296
296
  i0__namespace.ɵɵelementStart(0, "div");
297
297
  i0__namespace.ɵɵelementStart(1, "nav", 0);
298
298
  i0__namespace.ɵɵprojection(2);
@@ -437,7 +437,7 @@
437
437
  }], null, null);
438
438
  })();
439
439
 
440
- var _c0$V = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
440
+ var _c0$W = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
441
441
  var _c1$n = ["[topBody]", "[leftBody]", "[rightBody]"];
442
442
  var BodyComponent = /** @class */ (function () {
443
443
  function BodyComponent() {
@@ -447,7 +447,7 @@
447
447
  BodyComponent.ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
448
448
  BodyComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$n, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) {
449
449
  if (rf & 1) {
450
- i0__namespace.ɵɵprojectionDef(_c0$V);
450
+ i0__namespace.ɵɵprojectionDef(_c0$W);
451
451
  i0__namespace.ɵɵelementStart(0, "div", 0);
452
452
  i0__namespace.ɵɵprojection(1);
453
453
  i0__namespace.ɵɵprojection(2, 1);
@@ -794,7 +794,7 @@
794
794
  return typeof state === "function" ? receiver === state : state.has(receiver);
795
795
  }
796
796
 
797
- var _c0$U = function (a0) { return { "govuk-input--error": a0 }; };
797
+ var _c0$V = function (a0) { return { "govuk-input--error": a0 }; };
798
798
  function DateInputComponent_div_16_Template(rf, ctx) {
799
799
  if (rf & 1) {
800
800
  var _r8_1 = i0__namespace.ɵɵgetCurrentView();
@@ -812,7 +812,7 @@
812
812
  i0__namespace.ɵɵadvance(1);
813
813
  i0__namespace.ɵɵproperty("for", ctx_r3.hourId());
814
814
  i0__namespace.ɵɵadvance(2);
815
- i0__namespace.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$U, ctx_r3.isInvalid));
815
+ i0__namespace.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$V, ctx_r3.isInvalid));
816
816
  }
817
817
  }
818
818
  function DateInputComponent_div_17_Template(rf, ctx) {
@@ -832,7 +832,7 @@
832
832
  i0__namespace.ɵɵadvance(1);
833
833
  i0__namespace.ɵɵproperty("for", ctx_r4.minuteId());
834
834
  i0__namespace.ɵɵadvance(2);
835
- i0__namespace.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$U, ctx_r4.isInvalid));
835
+ i0__namespace.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$V, ctx_r4.isInvalid));
836
836
  }
837
837
  }
838
838
  function DateInputComponent_div_18_Template(rf, ctx) {
@@ -852,7 +852,7 @@
852
852
  i0__namespace.ɵɵadvance(1);
853
853
  i0__namespace.ɵɵproperty("for", ctx_r5.secondId());
854
854
  i0__namespace.ɵɵadvance(2);
855
- i0__namespace.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$U, ctx_r5.isInvalid));
855
+ i0__namespace.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$V, ctx_r5.isInvalid));
856
856
  }
857
857
  }
858
858
  var DateInputComponent = /** @class */ (function () {
@@ -1086,15 +1086,15 @@
1086
1086
  i0__namespace.ɵɵadvance(2);
1087
1087
  i0__namespace.ɵɵproperty("for", ctx.dayId());
1088
1088
  i0__namespace.ɵɵadvance(2);
1089
- i0__namespace.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0__namespace.ɵɵpureFunction1(18, _c0$U, ctx.isInvalid));
1089
+ i0__namespace.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0__namespace.ɵɵpureFunction1(18, _c0$V, ctx.isInvalid));
1090
1090
  i0__namespace.ɵɵadvance(3);
1091
1091
  i0__namespace.ɵɵproperty("for", ctx.monthId());
1092
1092
  i0__namespace.ɵɵadvance(2);
1093
- i0__namespace.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0__namespace.ɵɵpureFunction1(20, _c0$U, ctx.isInvalid));
1093
+ i0__namespace.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0__namespace.ɵɵpureFunction1(20, _c0$V, ctx.isInvalid));
1094
1094
  i0__namespace.ɵɵadvance(3);
1095
1095
  i0__namespace.ɵɵproperty("for", ctx.yearId());
1096
1096
  i0__namespace.ɵɵadvance(2);
1097
- i0__namespace.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0__namespace.ɵɵpureFunction1(22, _c0$U, ctx.isInvalid));
1097
+ i0__namespace.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0__namespace.ɵɵpureFunction1(22, _c0$V, ctx.isInvalid));
1098
1098
  i0__namespace.ɵɵadvance(2);
1099
1099
  i0__namespace.ɵɵproperty("ngIf", ctx.isDateTime);
1100
1100
  i0__namespace.ɵɵadvance(1);
@@ -1175,7 +1175,7 @@
1175
1175
  i0__namespace.ɵɵelementContainerEnd();
1176
1176
  }
1177
1177
  }
1178
- var _c0$T = ["*"];
1178
+ var _c0$U = ["*"];
1179
1179
  exports.AlertMessageType = void 0;
1180
1180
  (function (AlertMessageType) {
1181
1181
  AlertMessageType["WARNING"] = "warning";
@@ -1196,7 +1196,7 @@
1196
1196
  AlertComponent.TYPE_ERROR = 'error';
1197
1197
  AlertComponent.TYPE_INFORMATION = 'information';
1198
1198
  AlertComponent.ɵfac = function AlertComponent_Factory(t) { return new (t || AlertComponent)(); };
1199
- AlertComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$T, decls: 10, vars: 10, 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) {
1199
+ AlertComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$U, decls: 10, vars: 10, 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) {
1200
1200
  if (rf & 1) {
1201
1201
  i0__namespace.ɵɵprojectionDef();
1202
1202
  i0__namespace.ɵɵelementStart(0, "div", 0);
@@ -1471,7 +1471,7 @@
1471
1471
  }] });
1472
1472
  })();
1473
1473
 
1474
- var _c0$S = function (a0) { return { "js-hidden": a0 }; };
1474
+ var _c0$T = function (a0) { return { "js-hidden": a0 }; };
1475
1475
  var _c1$m = ["*"];
1476
1476
  var TabComponent = /** @class */ (function () {
1477
1477
  function TabComponent() {
@@ -1487,7 +1487,7 @@
1487
1487
  i0__namespace.ɵɵelementEnd();
1488
1488
  }
1489
1489
  if (rf & 2) {
1490
- i0__namespace.ɵɵproperty("id", ctx.id)("ngClass", i0__namespace.ɵɵpureFunction1(3, _c0$S, !ctx.selected));
1490
+ i0__namespace.ɵɵproperty("id", ctx.id)("ngClass", i0__namespace.ɵɵpureFunction1(3, _c0$T, !ctx.selected));
1491
1491
  i0__namespace.ɵɵattribute("aria-hidden", !ctx.selected);
1492
1492
  }
1493
1493
  }, directives: [i1__namespace.NgClass], styles: [".tabs-toggle[_ngcontent-%COMP%]{display:block;padding:10px 15px 3px;margin-bottom:8px}.tabs-toggle[aria-selected=true][_ngcontent-%COMP%]{color:#0b0c0c;text-decoration:none;border-bottom:none}.tabs-toggle[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#005ea5}@media (max-width:640px){.tabs-list[_ngcontent-%COMP%]{border-bottom:1px solid #bfc1c3;margin-left:-15px;margin-right:-15px}.tabs-toggle[_ngcontent-%COMP%]{border-top:1px solid #bfc1c3}.tabs-toggle[_ngcontent-%COMP%]:focus{color:#0b0c0c;outline:none}}@media (min-width:641px){.tabs-panel[_ngcontent-%COMP%]{border-top:1px solid #bfc1c3;clear:both;overflow:hidden}.tabs-list[_ngcontent-%COMP%]{float:left}.tabs-list-item[_ngcontent-%COMP%]{float:left;position:relative;bottom:-1px;padding-top:10px}.tabs-toggle[_ngcontent-%COMP%]{background-color:#dee0e2;border:1px solid transparent;float:left;margin:0 6px 0 0;text-decoration:none}.tabs-toggle[_ngcontent-%COMP%]:visited{color:#005ea5}.tabs-toggle-selected[_ngcontent-%COMP%], .tabs-toggle[aria-selected=true][_ngcontent-%COMP%]{background-color:#fff;border-bottom:0;border-color:#bfc1c3;padding-bottom:11px;margin-bottom:0;color:#0b0c0c}}"] });
@@ -1510,7 +1510,7 @@
1510
1510
  }] });
1511
1511
  })();
1512
1512
 
1513
- var _c0$R = ["tab"];
1513
+ var _c0$S = ["tab"];
1514
1514
  var _c1$l = function () { return ["."]; };
1515
1515
  var _c2$3 = function (a0) { return { "tabs-toggle-selected": a0 }; };
1516
1516
  function TabsComponent_li_2_Template(rf, ctx) {
@@ -1564,7 +1564,7 @@
1564
1564
  }
1565
1565
  }, viewQuery: function TabsComponent_Query(rf, ctx) {
1566
1566
  if (rf & 1) {
1567
- i0__namespace.ɵɵviewQuery(_c0$R, 1);
1567
+ i0__namespace.ɵɵviewQuery(_c0$S, 1);
1568
1568
  }
1569
1569
  if (rf & 2) {
1570
1570
  var _t = void 0;
@@ -1643,7 +1643,7 @@
1643
1643
  }], null, null);
1644
1644
  })();
1645
1645
 
1646
- var _c0$Q = function (a0, a1) { return { caseLocked: a0, someoneViewing: a1 }; };
1646
+ var _c0$R = function (a0, a1) { return { caseLocked: a0, someoneViewing: a1 }; };
1647
1647
  var ActivityBannerComponent = /** @class */ (function () {
1648
1648
  function ActivityBannerComponent() {
1649
1649
  }
@@ -1664,7 +1664,7 @@
1664
1664
  i0__namespace.ɵɵelementEnd();
1665
1665
  }
1666
1666
  if (rf & 2) {
1667
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(4, _c0$Q, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
1667
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(4, _c0$R, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
1668
1668
  i0__namespace.ɵɵadvance(2);
1669
1669
  i0__namespace.ɵɵpropertyInterpolate("alt", ctx.description);
1670
1670
  i0__namespace.ɵɵpropertyInterpolate("src", ctx.imageLink, i0__namespace.ɵɵsanitizeUrl);
@@ -2549,9 +2549,9 @@
2549
2549
 
2550
2550
  exports.CaseFlagStatus = void 0;
2551
2551
  (function (CaseFlagStatus) {
2552
+ CaseFlagStatus["REQUESTED"] = "Requested";
2552
2553
  CaseFlagStatus["ACTIVE"] = "Active";
2553
2554
  CaseFlagStatus["INACTIVE"] = "Inactive";
2554
- CaseFlagStatus["REQUESTED"] = "Requested";
2555
2555
  CaseFlagStatus["NOT_APPROVED"] = "Not approved";
2556
2556
  })(exports.CaseFlagStatus || (exports.CaseFlagStatus = {}));
2557
2557
 
@@ -11465,7 +11465,7 @@
11465
11465
  return AddressOption;
11466
11466
  }());
11467
11467
 
11468
- var _c0$P = ["writeComplexFieldComponent"];
11468
+ var _c0$Q = ["writeComplexFieldComponent"];
11469
11469
  function WriteAddressFieldComponent_div_1_div_4_span_4_Template(rf, ctx) {
11470
11470
  if (rf & 1) {
11471
11471
  i0__namespace.ɵɵelementStart(0, "span", 14);
@@ -11679,7 +11679,7 @@
11679
11679
  WriteAddressFieldComponent.ɵfac = function WriteAddressFieldComponent_Factory(t) { return new (t || WriteAddressFieldComponent)(i0__namespace.ɵɵdirectiveInject(AddressesService), i0__namespace.ɵɵdirectiveInject(IsCompoundPipe)); };
11680
11680
  WriteAddressFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) {
11681
11681
  if (rf & 1) {
11682
- i0__namespace.ɵɵviewQuery(_c0$P, 1);
11682
+ i0__namespace.ɵɵviewQuery(_c0$Q, 1);
11683
11683
  i0__namespace.ɵɵviewQuery(FocusElementDirective, 1);
11684
11684
  }
11685
11685
  if (rf & 2) {
@@ -12012,11 +12012,18 @@
12012
12012
  CaseFlagWizardStepTitle["SEARCH_LANGUAGE_INTERPRETER"] = "Search for a language interpreter";
12013
12013
  CaseFlagWizardStepTitle["SEARCH_SIGN_LANGUAGE_INTERPRETER"] = "Search for a sign language interpreter";
12014
12014
  CaseFlagWizardStepTitle["ADD_FLAG_COMMENTS"] = "Add comments for this flag";
12015
+ CaseFlagWizardStepTitle["CONFIRM_FLAG_STATUS"] = "Confirm the status of the flag";
12015
12016
  CaseFlagWizardStepTitle["FLAG_STATUS"] = "Flag status";
12016
12017
  CaseFlagWizardStepTitle["MANAGE_CASE_FLAGS"] = "Manage case flags";
12017
12018
  CaseFlagWizardStepTitle["UPDATE_FLAG_TITLE"] = "Update flag";
12018
12019
  })(exports.CaseFlagWizardStepTitle || (exports.CaseFlagWizardStepTitle = {}));
12019
12020
 
12021
+ exports.ConfirmStatusStep = void 0;
12022
+ (function (ConfirmStatusStep) {
12023
+ ConfirmStatusStep["HINT_TEXT"] = "Describe reason for status; if choosing 'Not approved' provide name of person approving decision.";
12024
+ ConfirmStatusStep["CHARACTER_LIMIT_INFO"] = "You can enter up to 200 characters";
12025
+ })(exports.ConfirmStatusStep || (exports.ConfirmStatusStep = {}));
12026
+
12020
12027
  exports.SearchLanguageInterpreterErrorMessage = void 0;
12021
12028
  (function (SearchLanguageInterpreterErrorMessage) {
12022
12029
  SearchLanguageInterpreterErrorMessage["LANGUAGE_NOT_ENTERED"] = "Enter the language that will need to be interpreted";
@@ -12057,8 +12064,9 @@
12057
12064
  CaseFlagFieldState[CaseFlagFieldState["FLAG_TYPE"] = 1] = "FLAG_TYPE";
12058
12065
  CaseFlagFieldState[CaseFlagFieldState["FLAG_LANGUAGE_INTERPRETER"] = 2] = "FLAG_LANGUAGE_INTERPRETER";
12059
12066
  CaseFlagFieldState[CaseFlagFieldState["FLAG_COMMENTS"] = 3] = "FLAG_COMMENTS";
12060
- CaseFlagFieldState[CaseFlagFieldState["FLAG_MANAGE_CASE_FLAGS"] = 4] = "FLAG_MANAGE_CASE_FLAGS";
12061
- CaseFlagFieldState[CaseFlagFieldState["FLAG_UPDATE"] = 5] = "FLAG_UPDATE";
12067
+ CaseFlagFieldState[CaseFlagFieldState["FLAG_STATUS"] = 4] = "FLAG_STATUS";
12068
+ CaseFlagFieldState[CaseFlagFieldState["FLAG_MANAGE_CASE_FLAGS"] = 5] = "FLAG_MANAGE_CASE_FLAGS";
12069
+ CaseFlagFieldState[CaseFlagFieldState["FLAG_UPDATE"] = 6] = "FLAG_UPDATE";
12062
12070
  })(exports.CaseFlagFieldState || (exports.CaseFlagFieldState = {}));
12063
12071
  exports.CaseFlagText = void 0;
12064
12072
  (function (CaseFlagText) {
@@ -12075,7 +12083,7 @@
12075
12083
  (function (UpdateFlagStep) {
12076
12084
  UpdateFlagStep["COMMENT_HINT_TEXT"] = "Update the comments describing the user's support needs or flag description. Do not include any sensitive information such as personal details.";
12077
12085
  UpdateFlagStep["COMMENT_CHARACTER_LIMIT_INFO"] = "You can enter up to 200 characters";
12078
- UpdateFlagStep["STATUS_HINT_TEXT"] = "Describe reason for status change, if choosing 'not approved' provide name for person approving decision";
12086
+ UpdateFlagStep["STATUS_HINT_TEXT"] = "Describe reason for status change; if choosing 'Not approved' provide name of person approving decision.";
12079
12087
  })(exports.UpdateFlagStep || (exports.UpdateFlagStep = {}));
12080
12088
 
12081
12089
  var CaseFlagStateService = /** @class */ (function () {
@@ -12098,10 +12106,10 @@
12098
12106
 
12099
12107
  function ReadCaseFlagFieldComponent_ng_container_1_Template(rf, ctx) {
12100
12108
  if (rf & 1) {
12101
- var _r4_1 = i0__namespace.ɵɵgetCurrentView();
12109
+ var _r3_1 = i0__namespace.ɵɵgetCurrentView();
12102
12110
  i0__namespace.ɵɵelementContainerStart(0);
12103
12111
  i0__namespace.ɵɵelementStart(1, "ccd-case-flag-summary-list", 3);
12104
- i0__namespace.ɵɵlistener("changeButtonEmitter", function ReadCaseFlagFieldComponent_ng_container_1_Template_ccd_case_flag_summary_list_changeButtonEmitter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r4_1); var ctx_r3 = i0__namespace.ɵɵnextContext(); return ctx_r3.navigateBackToForm($event); });
12112
+ i0__namespace.ɵɵlistener("changeButtonEmitter", function ReadCaseFlagFieldComponent_ng_container_1_Template_ccd_case_flag_summary_list_changeButtonEmitter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r3_1); var ctx_r2 = i0__namespace.ɵɵnextContext(); return ctx_r2.navigateBackToForm($event); });
12105
12113
  i0__namespace.ɵɵelementEnd();
12106
12114
  i0__namespace.ɵɵelementContainerEnd();
12107
12115
  }
@@ -12111,19 +12119,19 @@
12111
12119
  i0__namespace.ɵɵproperty("flagForSummaryDisplay", ctx_r0.flagForSummaryDisplay)("summaryListDisplayMode", ctx_r0.summaryListDisplayMode);
12112
12120
  }
12113
12121
  }
12114
- function ReadCaseFlagFieldComponent_ng_container_4_div_3_ccd_case_flag_table_1_Template(rf, ctx) {
12122
+ function ReadCaseFlagFieldComponent_ng_container_2_div_3_ccd_case_flag_table_1_Template(rf, ctx) {
12115
12123
  if (rf & 1) {
12116
- i0__namespace.ɵɵelement(0, "ccd-case-flag-table", 7);
12124
+ i0__namespace.ɵɵelement(0, "ccd-case-flag-table", 8);
12117
12125
  }
12118
12126
  if (rf & 2) {
12119
12127
  var flagData_r6 = i0__namespace.ɵɵnextContext().$implicit;
12120
- i0__namespace.ɵɵproperty("tableCaption", "")("flagData", flagData_r6)("firstColumnHeader", flagData_r6.flags.partyName);
12128
+ i0__namespace.ɵɵproperty("tableCaption", flagData_r6.flags.partyName)("flagData", flagData_r6)("firstColumnHeader", "Party level flags");
12121
12129
  }
12122
12130
  }
12123
- function ReadCaseFlagFieldComponent_ng_container_4_div_3_Template(rf, ctx) {
12131
+ function ReadCaseFlagFieldComponent_ng_container_2_div_3_Template(rf, ctx) {
12124
12132
  if (rf & 1) {
12125
12133
  i0__namespace.ɵɵelementStart(0, "div");
12126
- i0__namespace.ɵɵtemplate(1, ReadCaseFlagFieldComponent_ng_container_4_div_3_ccd_case_flag_table_1_Template, 1, 3, "ccd-case-flag-table", 6);
12134
+ i0__namespace.ɵɵtemplate(1, ReadCaseFlagFieldComponent_ng_container_2_div_3_ccd_case_flag_table_1_Template, 1, 3, "ccd-case-flag-table", 7);
12127
12135
  i0__namespace.ɵɵelementEnd();
12128
12136
  }
12129
12137
  if (rf & 2) {
@@ -12132,70 +12140,34 @@
12132
12140
  i0__namespace.ɵɵproperty("ngIf", flagData_r6.flags.partyName);
12133
12141
  }
12134
12142
  }
12135
- function ReadCaseFlagFieldComponent_ng_container_4_Template(rf, ctx) {
12136
- if (rf & 1) {
12137
- i0__namespace.ɵɵelementContainerStart(0);
12138
- i0__namespace.ɵɵelementStart(1, "h2", 4);
12139
- i0__namespace.ɵɵtext(2, " Support requested ");
12140
- i0__namespace.ɵɵelementEnd();
12141
- i0__namespace.ɵɵtemplate(3, ReadCaseFlagFieldComponent_ng_container_4_div_3_Template, 2, 1, "div", 5);
12142
- i0__namespace.ɵɵelementContainerEnd();
12143
- }
12144
- if (rf & 2) {
12145
- var ctx_r1 = i0__namespace.ɵɵnextContext();
12146
- i0__namespace.ɵɵadvance(3);
12147
- i0__namespace.ɵɵproperty("ngForOf", ctx_r1.partyLevelCaseFlagData);
12148
- }
12149
- }
12150
- function ReadCaseFlagFieldComponent_ng_container_5_div_3_ccd_case_flag_table_1_Template(rf, ctx) {
12151
- if (rf & 1) {
12152
- i0__namespace.ɵɵelement(0, "ccd-case-flag-table", 7);
12153
- }
12154
- if (rf & 2) {
12155
- var flagData_r11 = i0__namespace.ɵɵnextContext().$implicit;
12156
- i0__namespace.ɵɵproperty("tableCaption", flagData_r11.flags.partyName)("flagData", flagData_r11)("firstColumnHeader", "Party level flags");
12157
- }
12158
- }
12159
- function ReadCaseFlagFieldComponent_ng_container_5_div_3_Template(rf, ctx) {
12160
- if (rf & 1) {
12161
- i0__namespace.ɵɵelementStart(0, "div");
12162
- i0__namespace.ɵɵtemplate(1, ReadCaseFlagFieldComponent_ng_container_5_div_3_ccd_case_flag_table_1_Template, 1, 3, "ccd-case-flag-table", 6);
12163
- i0__namespace.ɵɵelementEnd();
12164
- }
12165
- if (rf & 2) {
12166
- var flagData_r11 = ctx.$implicit;
12167
- i0__namespace.ɵɵadvance(1);
12168
- i0__namespace.ɵɵproperty("ngIf", flagData_r11.flags.partyName);
12169
- }
12170
- }
12171
- function ReadCaseFlagFieldComponent_ng_container_5_div_4_Template(rf, ctx) {
12143
+ function ReadCaseFlagFieldComponent_ng_container_2_div_4_Template(rf, ctx) {
12172
12144
  if (rf & 1) {
12173
12145
  i0__namespace.ɵɵelementStart(0, "div");
12174
- i0__namespace.ɵɵelement(1, "ccd-case-flag-table", 7);
12146
+ i0__namespace.ɵɵelement(1, "ccd-case-flag-table", 8);
12175
12147
  i0__namespace.ɵɵelementEnd();
12176
12148
  }
12177
12149
  if (rf & 2) {
12178
- var ctx_r10 = i0__namespace.ɵɵnextContext(2);
12150
+ var ctx_r5 = i0__namespace.ɵɵnextContext(2);
12179
12151
  i0__namespace.ɵɵadvance(1);
12180
- i0__namespace.ɵɵproperty("tableCaption", "Case level flags")("flagData", ctx_r10.caseLevelCaseFlagData)("firstColumnHeader", "Case flags");
12152
+ i0__namespace.ɵɵproperty("tableCaption", "Case level flags")("flagData", ctx_r5.caseLevelCaseFlagData)("firstColumnHeader", "Case flags");
12181
12153
  }
12182
12154
  }
12183
- function ReadCaseFlagFieldComponent_ng_container_5_Template(rf, ctx) {
12155
+ function ReadCaseFlagFieldComponent_ng_container_2_Template(rf, ctx) {
12184
12156
  if (rf & 1) {
12185
12157
  i0__namespace.ɵɵelementContainerStart(0);
12186
12158
  i0__namespace.ɵɵelementStart(1, "h2", 4);
12187
- i0__namespace.ɵɵtext(2, " Case flags ");
12159
+ i0__namespace.ɵɵtext(2, "Case flags");
12188
12160
  i0__namespace.ɵɵelementEnd();
12189
- i0__namespace.ɵɵtemplate(3, ReadCaseFlagFieldComponent_ng_container_5_div_3_Template, 2, 1, "div", 5);
12190
- i0__namespace.ɵɵtemplate(4, ReadCaseFlagFieldComponent_ng_container_5_div_4_Template, 2, 3, "div", 8);
12161
+ i0__namespace.ɵɵtemplate(3, ReadCaseFlagFieldComponent_ng_container_2_div_3_Template, 2, 1, "div", 5);
12162
+ i0__namespace.ɵɵtemplate(4, ReadCaseFlagFieldComponent_ng_container_2_div_4_Template, 2, 3, "div", 6);
12191
12163
  i0__namespace.ɵɵelementContainerEnd();
12192
12164
  }
12193
12165
  if (rf & 2) {
12194
- var ctx_r2 = i0__namespace.ɵɵnextContext();
12166
+ var ctx_r1 = i0__namespace.ɵɵnextContext();
12195
12167
  i0__namespace.ɵɵadvance(3);
12196
- i0__namespace.ɵɵproperty("ngForOf", ctx_r2.partyLevelCaseFlagData);
12168
+ i0__namespace.ɵɵproperty("ngForOf", ctx_r1.partyLevelCaseFlagData);
12197
12169
  i0__namespace.ɵɵadvance(1);
12198
- i0__namespace.ɵɵproperty("ngIf", ctx_r2.caseLevelCaseFlagData);
12170
+ i0__namespace.ɵɵproperty("ngIf", ctx_r1.caseLevelCaseFlagData);
12199
12171
  }
12200
12172
  }
12201
12173
  var ReadCaseFlagFieldComponent = /** @class */ (function (_super) {
@@ -12206,20 +12178,14 @@
12206
12178
  _this.router = router;
12207
12179
  _this.caseFlagStateService = caseFlagStateService;
12208
12180
  _this.paletteContext = exports.PaletteContext;
12209
- _this.displayContextParameter = '';
12210
12181
  _this.caseLevelCaseFlagsFieldId = 'caseFlags';
12211
12182
  _this.caseNameMissing = 'Case name missing';
12212
- _this.readSupportMode = '#ARGUMENT(READ,EXTERNAL)';
12213
12183
  _this.createMode = '#ARGUMENT(CREATE)';
12214
12184
  _this.updateMode = '#ARGUMENT(UPDATE)';
12215
12185
  return _this;
12216
12186
  }
12217
12187
  ReadCaseFlagFieldComponent.prototype.ngOnInit = function () {
12218
12188
  var _this = this;
12219
- var _a, _b;
12220
- var flagLauncherControlName = Object.keys(this.formGroup.controls).find(function (controlName) { return FieldsUtils.isFlagLauncherCaseField(_this.formGroup.get(controlName)['caseField']); });
12221
- var flagLauncherComponent = (_a = this.formGroup.get(flagLauncherControlName)) === null || _a === void 0 ? void 0 : _a['component'];
12222
- this.displayContextParameter = (_b = flagLauncherComponent === null || flagLauncherComponent === void 0 ? void 0 : flagLauncherComponent.caseField) === null || _b === void 0 ? void 0 : _b.display_context_parameter;
12223
12189
  // If the context is PaletteContext.DEFAULT, the Flags fields need to be located by CaseTab (they won't be present
12224
12190
  // in the FormGroup - only the FlagLauncher field is present)
12225
12191
  if (this.context === exports.PaletteContext.DEFAULT) {
@@ -12244,7 +12210,9 @@
12244
12210
  // The FlagLauncher component, WriteCaseFlagFieldComponent, holds a reference to:
12245
12211
  // i) the parent FormGroup for the Flags instance where changes have been made;
12246
12212
  // ii) the currently selected flag (selectedFlag) if one exists
12247
- if (flagLauncherComponent) {
12213
+ var flagLauncherControlName = Object.keys(this.formGroup.controls).find(function (controlName) { return FieldsUtils.isFlagLauncherCaseField(_this.formGroup.get(controlName)['caseField']); });
12214
+ if (flagLauncherControlName && this.formGroup.get(flagLauncherControlName)['component']) {
12215
+ var flagLauncherComponent = this.formGroup.get(flagLauncherControlName)['component'];
12248
12216
  // The FlagLauncher component holds a reference (selectedFlagsLocation) containing the CaseField instance to
12249
12217
  // which the new flag has been added
12250
12218
  if (flagLauncherComponent.caseField.display_context_parameter === this.createMode &&
@@ -12296,26 +12264,17 @@
12296
12264
  return ReadCaseFlagFieldComponent;
12297
12265
  }(AbstractFieldReadComponent));
12298
12266
  ReadCaseFlagFieldComponent.ɵfac = function ReadCaseFlagFieldComponent_Factory(t) { return new (t || ReadCaseFlagFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(CaseFlagStateService)); };
12299
- ReadCaseFlagFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadCaseFlagFieldComponent, selectors: [["ccd-read-case-flag-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 6, vars: 4, consts: [[3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], [3, "flagForSummaryDisplay", "summaryListDisplayMode", "changeButtonEmitter"], ["id", "read-case-flag-title", 1, "govuk-heading-l"], [4, "ngFor", "ngForOf"], [3, "tableCaption", "flagData", "firstColumnHeader", 4, "ngIf"], [3, "tableCaption", "flagData", "firstColumnHeader"], [4, "ngIf"]], template: function ReadCaseFlagFieldComponent_Template(rf, ctx) {
12267
+ ReadCaseFlagFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadCaseFlagFieldComponent, selectors: [["ccd-read-case-flag-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars: 2, consts: [[3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], [3, "flagForSummaryDisplay", "summaryListDisplayMode", "changeButtonEmitter"], [1, "govuk-heading-l"], [4, "ngFor", "ngForOf"], [4, "ngIf"], [3, "tableCaption", "flagData", "firstColumnHeader", 4, "ngIf"], [3, "tableCaption", "flagData", "firstColumnHeader"]], template: function ReadCaseFlagFieldComponent_Template(rf, ctx) {
12300
12268
  if (rf & 1) {
12301
12269
  i0__namespace.ɵɵelementContainerStart(0, 0);
12302
12270
  i0__namespace.ɵɵtemplate(1, ReadCaseFlagFieldComponent_ng_container_1_Template, 2, 2, "ng-container", 1);
12303
- i0__namespace.ɵɵelementContainerStart(2);
12304
- i0__namespace.ɵɵelementContainerStart(3, 0);
12305
- i0__namespace.ɵɵtemplate(4, ReadCaseFlagFieldComponent_ng_container_4_Template, 4, 1, "ng-container", 1);
12306
- i0__namespace.ɵɵtemplate(5, ReadCaseFlagFieldComponent_ng_container_5_Template, 5, 2, "ng-container", 2);
12307
- i0__namespace.ɵɵelementContainerEnd();
12308
- i0__namespace.ɵɵelementContainerEnd();
12271
+ i0__namespace.ɵɵtemplate(2, ReadCaseFlagFieldComponent_ng_container_2_Template, 5, 2, "ng-container", 2);
12309
12272
  i0__namespace.ɵɵelementContainerEnd();
12310
12273
  }
12311
12274
  if (rf & 2) {
12312
12275
  i0__namespace.ɵɵproperty("ngSwitch", ctx.context);
12313
12276
  i0__namespace.ɵɵadvance(1);
12314
12277
  i0__namespace.ɵɵproperty("ngSwitchCase", ctx.paletteContext.CHECK_YOUR_ANSWER);
12315
- i0__namespace.ɵɵadvance(2);
12316
- i0__namespace.ɵɵproperty("ngSwitch", ctx.displayContextParameter);
12317
- i0__namespace.ɵɵadvance(1);
12318
- i0__namespace.ɵɵproperty("ngSwitchCase", ctx.readSupportMode);
12319
12278
  }
12320
12279
  }, styles: [".govuk-heading-l[_ngcontent-%COMP%]{margin-top:30px}"] });
12321
12280
  (function () {
@@ -12366,10 +12325,10 @@
12366
12325
  }
12367
12326
  function WriteCaseFlagFieldComponent_div_1_ng_container_4_Template(rf, ctx) {
12368
12327
  if (rf & 1) {
12369
- var _r12_1 = i0__namespace.ɵɵgetCurrentView();
12328
+ var _r13_1 = i0__namespace.ɵɵgetCurrentView();
12370
12329
  i0__namespace.ɵɵelementContainerStart(0);
12371
12330
  i0__namespace.ɵɵelementStart(1, "ccd-select-flag-location", 12);
12372
- i0__namespace.ɵɵlistener("caseFlagStateEmitter", function WriteCaseFlagFieldComponent_div_1_ng_container_4_Template_ccd_select_flag_location_caseFlagStateEmitter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r12_1); var ctx_r11 = i0__namespace.ɵɵnextContext(2); return ctx_r11.onCaseFlagStateEmitted($event); });
12331
+ i0__namespace.ɵɵlistener("caseFlagStateEmitter", function WriteCaseFlagFieldComponent_div_1_ng_container_4_Template_ccd_select_flag_location_caseFlagStateEmitter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r13_1); var ctx_r12 = i0__namespace.ɵɵnextContext(2); return ctx_r12.onCaseFlagStateEmitted($event); });
12373
12332
  i0__namespace.ɵɵelementEnd();
12374
12333
  i0__namespace.ɵɵelementContainerEnd();
12375
12334
  }
@@ -12381,10 +12340,10 @@
12381
12340
  }
12382
12341
  function WriteCaseFlagFieldComponent_div_1_ng_container_5_Template(rf, ctx) {
12383
12342
  if (rf & 1) {
12384
- var _r14_1 = i0__namespace.ɵɵgetCurrentView();
12343
+ var _r15_1 = i0__namespace.ɵɵgetCurrentView();
12385
12344
  i0__namespace.ɵɵelementContainerStart(0);
12386
12345
  i0__namespace.ɵɵelementStart(1, "ccd-select-flag-type", 13);
12387
- i0__namespace.ɵɵlistener("caseFlagStateEmitter", function WriteCaseFlagFieldComponent_div_1_ng_container_5_Template_ccd_select_flag_type_caseFlagStateEmitter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r14_1); var ctx_r13 = i0__namespace.ɵɵnextContext(2); return ctx_r13.onCaseFlagStateEmitted($event); })("flagCommentsOptionalEmitter", function WriteCaseFlagFieldComponent_div_1_ng_container_5_Template_ccd_select_flag_type_flagCommentsOptionalEmitter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r14_1); var ctx_r15 = i0__namespace.ɵɵnextContext(2); return ctx_r15.onFlagCommentsOptionalEmitted($event); });
12346
+ i0__namespace.ɵɵlistener("caseFlagStateEmitter", function WriteCaseFlagFieldComponent_div_1_ng_container_5_Template_ccd_select_flag_type_caseFlagStateEmitter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r15_1); var ctx_r14 = i0__namespace.ɵɵnextContext(2); return ctx_r14.onCaseFlagStateEmitted($event); })("flagCommentsOptionalEmitter", function WriteCaseFlagFieldComponent_div_1_ng_container_5_Template_ccd_select_flag_type_flagCommentsOptionalEmitter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r15_1); var ctx_r16 = i0__namespace.ɵɵnextContext(2); return ctx_r16.onFlagCommentsOptionalEmitted($event); });
12388
12347
  i0__namespace.ɵɵelementEnd();
12389
12348
  i0__namespace.ɵɵelementContainerEnd();
12390
12349
  }
@@ -12396,10 +12355,10 @@
12396
12355
  }
12397
12356
  function WriteCaseFlagFieldComponent_div_1_ng_container_6_Template(rf, ctx) {
12398
12357
  if (rf & 1) {
12399
- var _r17_1 = i0__namespace.ɵɵgetCurrentView();
12358
+ var _r18_1 = i0__namespace.ɵɵgetCurrentView();
12400
12359
  i0__namespace.ɵɵelementContainerStart(0);
12401
12360
  i0__namespace.ɵɵelementStart(1, "ccd-search-language-interpreter", 14);
12402
- i0__namespace.ɵɵlistener("caseFlagStateEmitter", function WriteCaseFlagFieldComponent_div_1_ng_container_6_Template_ccd_search_language_interpreter_caseFlagStateEmitter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r17_1); var ctx_r16 = i0__namespace.ɵɵnextContext(2); return ctx_r16.onCaseFlagStateEmitted($event); });
12361
+ i0__namespace.ɵɵlistener("caseFlagStateEmitter", function WriteCaseFlagFieldComponent_div_1_ng_container_6_Template_ccd_search_language_interpreter_caseFlagStateEmitter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r18_1); var ctx_r17 = i0__namespace.ɵɵnextContext(2); return ctx_r17.onCaseFlagStateEmitted($event); });
12403
12362
  i0__namespace.ɵɵelementEnd();
12404
12363
  i0__namespace.ɵɵelementContainerEnd();
12405
12364
  }
@@ -12411,10 +12370,10 @@
12411
12370
  }
12412
12371
  function WriteCaseFlagFieldComponent_div_1_ng_container_7_Template(rf, ctx) {
12413
12372
  if (rf & 1) {
12414
- var _r19_1 = i0__namespace.ɵɵgetCurrentView();
12373
+ var _r20_1 = i0__namespace.ɵɵgetCurrentView();
12415
12374
  i0__namespace.ɵɵelementContainerStart(0);
12416
12375
  i0__namespace.ɵɵelementStart(1, "ccd-add-comments", 15);
12417
- i0__namespace.ɵɵlistener("caseFlagStateEmitter", function WriteCaseFlagFieldComponent_div_1_ng_container_7_Template_ccd_add_comments_caseFlagStateEmitter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r19_1); var ctx_r18 = i0__namespace.ɵɵnextContext(2); return ctx_r18.onCaseFlagStateEmitted($event); });
12376
+ i0__namespace.ɵɵlistener("caseFlagStateEmitter", function WriteCaseFlagFieldComponent_div_1_ng_container_7_Template_ccd_add_comments_caseFlagStateEmitter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r20_1); var ctx_r19 = i0__namespace.ɵɵnextContext(2); return ctx_r19.onCaseFlagStateEmitted($event); });
12418
12377
  i0__namespace.ɵɵelementEnd();
12419
12378
  i0__namespace.ɵɵelementContainerEnd();
12420
12379
  }
@@ -12424,7 +12383,22 @@
12424
12383
  i0__namespace.ɵɵproperty("formGroup", ctx_r10.caseFlagParentFormGroup)("optional", ctx_r10.flagCommentsOptional);
12425
12384
  }
12426
12385
  }
12427
- var _c0$O = function (a0) { return { "form-group-error": a0 }; };
12386
+ function WriteCaseFlagFieldComponent_div_1_ng_container_8_Template(rf, ctx) {
12387
+ if (rf & 1) {
12388
+ var _r22_1 = i0__namespace.ɵɵgetCurrentView();
12389
+ i0__namespace.ɵɵelementContainerStart(0);
12390
+ i0__namespace.ɵɵelementStart(1, "ccd-confirm-flag-status", 16);
12391
+ i0__namespace.ɵɵlistener("caseFlagStateEmitter", function WriteCaseFlagFieldComponent_div_1_ng_container_8_Template_ccd_confirm_flag_status_caseFlagStateEmitter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r22_1); var ctx_r21 = i0__namespace.ɵɵnextContext(2); return ctx_r21.onCaseFlagStateEmitted($event); });
12392
+ i0__namespace.ɵɵelementEnd();
12393
+ i0__namespace.ɵɵelementContainerEnd();
12394
+ }
12395
+ if (rf & 2) {
12396
+ var ctx_r11 = i0__namespace.ɵɵnextContext(2);
12397
+ i0__namespace.ɵɵadvance(1);
12398
+ i0__namespace.ɵɵproperty("formGroup", ctx_r11.caseFlagParentFormGroup)("defaultStatus", ctx_r11.flagType.defaultStatus);
12399
+ }
12400
+ }
12401
+ var _c0$P = function (a0) { return { "form-group-error": a0 }; };
12428
12402
  function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) {
12429
12403
  if (rf & 1) {
12430
12404
  i0__namespace.ɵɵelementStart(0, "div", 8);
@@ -12436,6 +12410,7 @@
12436
12410
  i0__namespace.ɵɵtemplate(5, WriteCaseFlagFieldComponent_div_1_ng_container_5_Template, 2, 2, "ng-container", 11);
12437
12411
  i0__namespace.ɵɵtemplate(6, WriteCaseFlagFieldComponent_div_1_ng_container_6_Template, 2, 3, "ng-container", 11);
12438
12412
  i0__namespace.ɵɵtemplate(7, WriteCaseFlagFieldComponent_div_1_ng_container_7_Template, 2, 2, "ng-container", 11);
12413
+ i0__namespace.ɵɵtemplate(8, WriteCaseFlagFieldComponent_div_1_ng_container_8_Template, 2, 2, "ng-container", 11);
12439
12414
  i0__namespace.ɵɵelementEnd();
12440
12415
  i0__namespace.ɵɵelementEnd();
12441
12416
  }
@@ -12445,7 +12420,7 @@
12445
12420
  i0__namespace.ɵɵadvance(1);
12446
12421
  i0__namespace.ɵɵproperty("ngSwitch", ctx_r1.fieldState);
12447
12422
  i0__namespace.ɵɵadvance(1);
12448
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$O, ctx_r1.errorMessages.length > 0));
12423
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$P, ctx_r1.errorMessages.length > 0));
12449
12424
  i0__namespace.ɵɵadvance(1);
12450
12425
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.createFlagCaption, " ");
12451
12426
  i0__namespace.ɵɵadvance(1);
@@ -12456,36 +12431,38 @@
12456
12431
  i0__namespace.ɵɵproperty("ngSwitchCase", ctx_r1.caseFlagFieldState.FLAG_LANGUAGE_INTERPRETER);
12457
12432
  i0__namespace.ɵɵadvance(1);
12458
12433
  i0__namespace.ɵɵproperty("ngSwitchCase", ctx_r1.caseFlagFieldState.FLAG_COMMENTS);
12434
+ i0__namespace.ɵɵadvance(1);
12435
+ i0__namespace.ɵɵproperty("ngSwitchCase", ctx_r1.caseFlagFieldState.FLAG_STATUS);
12459
12436
  }
12460
12437
  }
12461
12438
  function WriteCaseFlagFieldComponent_div_2_ng_container_2_Template(rf, ctx) {
12462
12439
  if (rf & 1) {
12463
- var _r23_1 = i0__namespace.ɵɵgetCurrentView();
12440
+ var _r26_1 = i0__namespace.ɵɵgetCurrentView();
12464
12441
  i0__namespace.ɵɵelementContainerStart(0);
12465
- i0__namespace.ɵɵelementStart(1, "ccd-manage-case-flags", 16);
12466
- i0__namespace.ɵɵlistener("caseFlagStateEmitter", function WriteCaseFlagFieldComponent_div_2_ng_container_2_Template_ccd_manage_case_flags_caseFlagStateEmitter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r23_1); var ctx_r22 = i0__namespace.ɵɵnextContext(2); return ctx_r22.onCaseFlagStateEmitted($event); });
12442
+ i0__namespace.ɵɵelementStart(1, "ccd-manage-case-flags", 17);
12443
+ i0__namespace.ɵɵlistener("caseFlagStateEmitter", function WriteCaseFlagFieldComponent_div_2_ng_container_2_Template_ccd_manage_case_flags_caseFlagStateEmitter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r26_1); var ctx_r25 = i0__namespace.ɵɵnextContext(2); return ctx_r25.onCaseFlagStateEmitted($event); });
12467
12444
  i0__namespace.ɵɵelementEnd();
12468
12445
  i0__namespace.ɵɵelementContainerEnd();
12469
12446
  }
12470
12447
  if (rf & 2) {
12471
- var ctx_r20 = i0__namespace.ɵɵnextContext(2);
12448
+ var ctx_r23 = i0__namespace.ɵɵnextContext(2);
12472
12449
  i0__namespace.ɵɵadvance(1);
12473
- i0__namespace.ɵɵproperty("formGroup", ctx_r20.caseFlagParentFormGroup)("flagsData", ctx_r20.flagsData)("caseTitle", ctx_r20.caseTitle);
12450
+ i0__namespace.ɵɵproperty("formGroup", ctx_r23.caseFlagParentFormGroup)("flagsData", ctx_r23.flagsData)("caseTitle", ctx_r23.caseTitle);
12474
12451
  }
12475
12452
  }
12476
12453
  function WriteCaseFlagFieldComponent_div_2_ng_container_3_Template(rf, ctx) {
12477
12454
  if (rf & 1) {
12478
- var _r25_1 = i0__namespace.ɵɵgetCurrentView();
12455
+ var _r28_1 = i0__namespace.ɵɵgetCurrentView();
12479
12456
  i0__namespace.ɵɵelementContainerStart(0);
12480
- i0__namespace.ɵɵelementStart(1, "ccd-update-flag", 17);
12481
- i0__namespace.ɵɵlistener("caseFlagStateEmitter", function WriteCaseFlagFieldComponent_div_2_ng_container_3_Template_ccd_update_flag_caseFlagStateEmitter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r25_1); var ctx_r24 = i0__namespace.ɵɵnextContext(2); return ctx_r24.onCaseFlagStateEmitted($event); });
12457
+ i0__namespace.ɵɵelementStart(1, "ccd-update-flag", 18);
12458
+ i0__namespace.ɵɵlistener("caseFlagStateEmitter", function WriteCaseFlagFieldComponent_div_2_ng_container_3_Template_ccd_update_flag_caseFlagStateEmitter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r28_1); var ctx_r27 = i0__namespace.ɵɵnextContext(2); return ctx_r27.onCaseFlagStateEmitted($event); });
12482
12459
  i0__namespace.ɵɵelementEnd();
12483
12460
  i0__namespace.ɵɵelementContainerEnd();
12484
12461
  }
12485
12462
  if (rf & 2) {
12486
- var ctx_r21 = i0__namespace.ɵɵnextContext(2);
12463
+ var ctx_r24 = i0__namespace.ɵɵnextContext(2);
12487
12464
  i0__namespace.ɵɵadvance(1);
12488
- i0__namespace.ɵɵproperty("formGroup", ctx_r21.caseFlagParentFormGroup)("selectedFlag", ctx_r21.selectedFlag);
12465
+ i0__namespace.ɵɵproperty("formGroup", ctx_r24.caseFlagParentFormGroup)("selectedFlag", ctx_r24.selectedFlag);
12489
12466
  }
12490
12467
  }
12491
12468
  function WriteCaseFlagFieldComponent_div_2_Template(rf, ctx) {
@@ -12608,9 +12585,9 @@
12608
12585
  this.selectedFlag = caseFlagState.selectedFlag;
12609
12586
  // Validation succeeded; proceed to next state or final review stage ("Check your answers")
12610
12587
  if (this.errorMessages.length === 0) {
12611
- // If the current state is CaseFlagFieldState.FLAG_COMMENTS or CaseFlagFieldState.FLAG_UPDATE, move to final
12588
+ // If the current state is CaseFlagFieldState.FLAG_STATUS or CaseFlagFieldState.FLAG_UPDATE, move to final
12612
12589
  // review stage
12613
- if (caseFlagState.currentCaseFlagFieldState === exports.CaseFlagFieldState.FLAG_COMMENTS ||
12590
+ if (caseFlagState.currentCaseFlagFieldState === exports.CaseFlagFieldState.FLAG_STATUS ||
12614
12591
  caseFlagState.currentCaseFlagFieldState === exports.CaseFlagFieldState.FLAG_UPDATE) {
12615
12592
  this.moveToFinalReviewStage();
12616
12593
  // Don't move to next state if current state is CaseFlagFieldState.FLAG_TYPE and the flag type is a parent - this
@@ -12639,7 +12616,7 @@
12639
12616
  WriteCaseFlagFieldComponent.prototype.setFlagsCaseFieldValue = function () {
12640
12617
  // tslint:disable-next-line: switch-default
12641
12618
  switch (this.fieldState) {
12642
- case exports.CaseFlagFieldState.FLAG_COMMENTS:
12619
+ case exports.CaseFlagFieldState.FLAG_STATUS:
12643
12620
  this.addFlagToCollection();
12644
12621
  break;
12645
12622
  case exports.CaseFlagFieldState.FLAG_UPDATE:
@@ -12749,7 +12726,7 @@
12749
12726
  WriteCaseFlagFieldComponent.prototype.isAtFinalState = function () {
12750
12727
  return this.isDisplayContextParameterUpdate
12751
12728
  ? this.fieldState === exports.CaseFlagFieldState.FLAG_UPDATE
12752
- : this.fieldState === exports.CaseFlagFieldState.FLAG_COMMENTS;
12729
+ : this.fieldState === exports.CaseFlagFieldState.FLAG_STATUS;
12753
12730
  };
12754
12731
  WriteCaseFlagFieldComponent.prototype.navigateToErrorElement = function (elementId) {
12755
12732
  if (elementId) {
@@ -12764,22 +12741,25 @@
12764
12741
  this.flagCommentsOptional = true;
12765
12742
  };
12766
12743
  WriteCaseFlagFieldComponent.prototype.populateNewFlagDetailInstance = function () {
12767
- var _a, _b, _c, _d, _e, _f, _g;
12744
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
12768
12745
  var formValues = (_a = this.caseFlagParentFormGroup) === null || _a === void 0 ? void 0 : _a.value;
12769
12746
  return {
12770
12747
  name: (_b = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _b === void 0 ? void 0 : _b.name,
12748
+ name_cy: (_c = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _c === void 0 ? void 0 : _c.name_cy,
12771
12749
  // Currently, subTypeValue and subTypeKey are applicable only to language flag types
12772
12750
  subTypeValue: (formValues === null || formValues === void 0 ? void 0 : formValues.languageSearchTerm) ? formValues === null || formValues === void 0 ? void 0 : formValues.languageSearchTerm.value : (formValues === null || formValues === void 0 ? void 0 : formValues.manualLanguageEntry) ? formValues === null || formValues === void 0 ? void 0 : formValues.manualLanguageEntry : null,
12773
12751
  // For user-entered (i.e. non-Reference Data) languages, there is no key
12774
12752
  subTypeKey: (formValues === null || formValues === void 0 ? void 0 : formValues.languageSearchTerm) ? formValues === null || formValues === void 0 ? void 0 : formValues.languageSearchTerm.key : null,
12775
- otherDescription: ((_c = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _c === void 0 ? void 0 : _c.flagCode) === this.otherFlagTypeCode && (formValues === null || formValues === void 0 ? void 0 : formValues.otherFlagTypeDescription)
12753
+ otherDescription: ((_d = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _d === void 0 ? void 0 : _d.flagCode) === this.otherFlagTypeCode && (formValues === null || formValues === void 0 ? void 0 : formValues.otherFlagTypeDescription)
12776
12754
  ? formValues === null || formValues === void 0 ? void 0 : formValues.otherFlagTypeDescription : null,
12777
12755
  flagComment: formValues === null || formValues === void 0 ? void 0 : formValues.flagComments,
12756
+ flagUpdateComment: formValues === null || formValues === void 0 ? void 0 : formValues.statusReason,
12778
12757
  dateTimeCreated: new Date().toISOString(),
12779
- path: ((_d = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _d === void 0 ? void 0 : _d.Path) && ((_e = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _e === void 0 ? void 0 : _e.Path.map(function (pathValue) { return Object.assign({ id: null, value: pathValue }); })),
12780
- hearingRelevant: ((_f = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _f === void 0 ? void 0 : _f.hearingRelevantFlag) ? 'Yes' : 'No',
12781
- flagCode: (_g = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _g === void 0 ? void 0 : _g.flagCode,
12782
- status: exports.CaseFlagStatus.ACTIVE
12758
+ path: ((_e = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _e === void 0 ? void 0 : _e.Path) && ((_f = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _f === void 0 ? void 0 : _f.Path.map(function (pathValue) { return Object.assign({ id: null, value: pathValue }); })),
12759
+ hearingRelevant: ((_g = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _g === void 0 ? void 0 : _g.hearingRelevantFlag) ? 'Yes' : 'No',
12760
+ flagCode: (_h = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _h === void 0 ? void 0 : _h.flagCode,
12761
+ status: exports.CaseFlagStatus[formValues === null || formValues === void 0 ? void 0 : formValues.selectedStatus],
12762
+ availableExternally: ((_j = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _j === void 0 ? void 0 : _j.externallyAvailable) ? 'Yes' : 'No'
12783
12763
  };
12784
12764
  };
12785
12765
  WriteCaseFlagFieldComponent.prototype.moveToFinalReviewStage = function () {
@@ -12796,10 +12776,10 @@
12796
12776
  return WriteCaseFlagFieldComponent;
12797
12777
  }(AbstractFieldWriteComponent));
12798
12778
  WriteCaseFlagFieldComponent.ɵfac = function WriteCaseFlagFieldComponent_Factory(t) { return new (t || WriteCaseFlagFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseEditDataService), i0__namespace.ɵɵdirectiveInject(i1__namespace.Location), i0__namespace.ɵɵdirectiveInject(CaseFlagStateService)); };
12799
- WriteCaseFlagFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCaseFlagFieldComponent, selectors: [["ccd-write-case-flag-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars: 3, consts: [["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], ["class", "form-group", 3, "formGroup", 4, "ngIf"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], ["class", "govuk-error-summary__body", 4, "ngFor", "ngForOf"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [1, "validation-error", 3, "click"], [1, "form-group", 3, "formGroup"], [1, "govuk-form-group", 3, "ngSwitch"], ["id", "create-flag-caption", 1, "govuk-caption-l", 3, "ngClass"], [4, "ngSwitchCase"], [3, "formGroup", "flagsData", "caseFlagStateEmitter"], [3, "formGroup", "jurisdiction", "caseFlagStateEmitter", "flagCommentsOptionalEmitter"], [3, "formGroup", "languages", "flagCode", "caseFlagStateEmitter"], [3, "formGroup", "optional", "caseFlagStateEmitter"], [3, "formGroup", "flagsData", "caseTitle", "caseFlagStateEmitter"], [3, "formGroup", "selectedFlag", "caseFlagStateEmitter"]], template: function WriteCaseFlagFieldComponent_Template(rf, ctx) {
12779
+ WriteCaseFlagFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCaseFlagFieldComponent, selectors: [["ccd-write-case-flag-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars: 3, consts: [["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], ["class", "form-group", 3, "formGroup", 4, "ngIf"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], ["class", "govuk-error-summary__body", 4, "ngFor", "ngForOf"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [1, "validation-error", 3, "click"], [1, "form-group", 3, "formGroup"], [1, "govuk-form-group", 3, "ngSwitch"], ["id", "create-flag-caption", 1, "govuk-caption-l", 3, "ngClass"], [4, "ngSwitchCase"], [3, "formGroup", "flagsData", "caseFlagStateEmitter"], [3, "formGroup", "jurisdiction", "caseFlagStateEmitter", "flagCommentsOptionalEmitter"], [3, "formGroup", "languages", "flagCode", "caseFlagStateEmitter"], [3, "formGroup", "optional", "caseFlagStateEmitter"], [3, "formGroup", "defaultStatus", "caseFlagStateEmitter"], [3, "formGroup", "flagsData", "caseTitle", "caseFlagStateEmitter"], [3, "formGroup", "selectedFlag", "caseFlagStateEmitter"]], template: function WriteCaseFlagFieldComponent_Template(rf, ctx) {
12800
12780
  if (rf & 1) {
12801
12781
  i0__namespace.ɵɵtemplate(0, WriteCaseFlagFieldComponent_div_0_Template, 4, 1, "div", 0);
12802
- i0__namespace.ɵɵtemplate(1, WriteCaseFlagFieldComponent_div_1_Template, 8, 10, "div", 1);
12782
+ i0__namespace.ɵɵtemplate(1, WriteCaseFlagFieldComponent_div_1_Template, 9, 11, "div", 1);
12803
12783
  i0__namespace.ɵɵtemplate(2, WriteCaseFlagFieldComponent_div_2_Template, 4, 4, "div", 1);
12804
12784
  }
12805
12785
  if (rf & 2) {
@@ -12867,7 +12847,7 @@
12867
12847
  }], null, null);
12868
12848
  })();
12869
12849
 
12870
- var _c0$N = ["writeComplexFieldComponent"];
12850
+ var _c0$O = ["writeComplexFieldComponent"];
12871
12851
  function WriteCaseLinkFieldComponent_span_2_Template(rf, ctx) {
12872
12852
  if (rf & 1) {
12873
12853
  i0__namespace.ɵɵelementStart(0, "span", 6);
@@ -12972,7 +12952,7 @@
12972
12952
  WriteCaseLinkFieldComponent.ɵfac = function WriteCaseLinkFieldComponent_Factory(t) { return ɵWriteCaseLinkFieldComponent_BaseFactory(t || WriteCaseLinkFieldComponent); };
12973
12953
  WriteCaseLinkFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCaseLinkFieldComponent, selectors: [["ccd-write-case-link-field"]], viewQuery: function WriteCaseLinkFieldComponent_Query(rf, ctx) {
12974
12954
  if (rf & 1) {
12975
- i0__namespace.ɵɵviewQuery(_c0$N, 1);
12955
+ i0__namespace.ɵɵviewQuery(_c0$O, 1);
12976
12956
  }
12977
12957
  if (rf & 2) {
12978
12958
  var _t = void 0;
@@ -13017,7 +12997,7 @@
13017
12997
  }] });
13018
12998
  })();
13019
12999
 
13020
- var _c0$M = function (a0, a1, a2, a3, a4, a5) { return { id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5 }; };
13000
+ var _c0$N = function (a0, a1, a2, a3, a4, a5) { return { id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5 }; };
13021
13001
  function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) {
13022
13002
  if (rf & 1) {
13023
13003
  i0__namespace.ɵɵelementStart(0, "tbody");
@@ -13032,7 +13012,7 @@
13032
13012
  if (rf & 2) {
13033
13013
  var ctx_r1 = i0__namespace.ɵɵnextContext(2);
13034
13014
  i0__namespace.ɵɵadvance(4);
13035
- i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction6(3, _c0$M, ctx_r1.caseField.label, ctx_r1.caseField.label, ctx_r1.caseField.field_type.collection_field_type, ctx_r1.caseField.display_context_parameter, ctx_r1.caseField.value, ctx_r1.caseField.hidden))("context", ctx_r1.context)("topLevelFormGroup", ctx_r1.topLevelFormGroup);
13015
+ i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction6(3, _c0$N, ctx_r1.caseField.label, ctx_r1.caseField.label, ctx_r1.caseField.field_type.collection_field_type, ctx_r1.caseField.display_context_parameter, ctx_r1.caseField.value, ctx_r1.caseField.hidden))("context", ctx_r1.context)("topLevelFormGroup", ctx_r1.topLevelFormGroup);
13036
13016
  }
13037
13017
  }
13038
13018
  var _c1$i = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
@@ -13183,7 +13163,7 @@
13183
13163
  }], function () { return [{ type: i1__namespace$4.MatDialogRef }]; }, null);
13184
13164
  })();
13185
13165
 
13186
- var _c0$L = ["collectionItem"];
13166
+ var _c0$M = ["collectionItem"];
13187
13167
  function WriteCollectionFieldComponent_h2_7_span_1_Template(rf, ctx) {
13188
13168
  if (rf & 1) {
13189
13169
  i0__namespace.ɵɵelementStart(0, "span", 9);
@@ -13596,7 +13576,7 @@
13596
13576
  WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$4.MatDialog), i0__namespace.ɵɵdirectiveInject(i2__namespace.ScrollToService), i0__namespace.ɵɵdirectiveInject(ProfileNotifier)); };
13597
13577
  WriteCollectionFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) {
13598
13578
  if (rf & 1) {
13599
- i0__namespace.ɵɵviewQuery(_c0$L, 1);
13579
+ i0__namespace.ɵɵviewQuery(_c0$M, 1);
13600
13580
  }
13601
13581
  if (rf & 2) {
13602
13582
  var _t = void 0;
@@ -14184,7 +14164,7 @@
14184
14164
  }], null, null);
14185
14165
  })();
14186
14166
 
14187
- var _c0$K = ["fileInput"];
14167
+ var _c0$L = ["fileInput"];
14188
14168
  function WriteDocumentFieldComponent_span_6_Template(rf, ctx) {
14189
14169
  if (rf & 1) {
14190
14170
  i0__namespace.ɵɵelementStart(0, "span", 12);
@@ -14478,7 +14458,7 @@
14478
14458
  WriteDocumentFieldComponent.ɵfac = function WriteDocumentFieldComponent_Factory(t) { return new (t || WriteDocumentFieldComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(CaseNotifier), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(i1__namespace$4.MatDialog), i0__namespace.ɵɵdirectiveInject(FileUploadStateService)); };
14479
14459
  WriteDocumentFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) {
14480
14460
  if (rf & 1) {
14481
- i0__namespace.ɵɵviewQuery(_c0$K, 1);
14461
+ i0__namespace.ɵɵviewQuery(_c0$L, 1);
14482
14462
  }
14483
14463
  if (rf & 2) {
14484
14464
  var _t = void 0;
@@ -14678,7 +14658,7 @@
14678
14658
  i0__namespace.ɵɵtextInterpolate(type_r5.label);
14679
14659
  }
14680
14660
  }
14681
- var _c0$J = function (a0) { return { "form-group-error": a0 }; };
14661
+ var _c0$K = function (a0) { return { "form-group-error": a0 }; };
14682
14662
  var WriteDynamicListFieldComponent = /** @class */ (function (_super) {
14683
14663
  __extends(WriteDynamicListFieldComponent, _super);
14684
14664
  function WriteDynamicListFieldComponent() {
@@ -14727,7 +14707,7 @@
14727
14707
  i0__namespace.ɵɵelementEnd();
14728
14708
  }
14729
14709
  if (rf & 2) {
14730
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$J, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
14710
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$K, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
14731
14711
  i0__namespace.ɵɵadvance(1);
14732
14712
  i0__namespace.ɵɵproperty("for", ctx.id());
14733
14713
  i0__namespace.ɵɵadvance(1);
@@ -14877,7 +14857,7 @@
14877
14857
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r3.dynamicRadioListControl.errors));
14878
14858
  }
14879
14859
  }
14880
- var _c0$I = function (a0) { return { selected: a0 }; };
14860
+ var _c0$J = function (a0) { return { selected: a0 }; };
14881
14861
  function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) {
14882
14862
  if (rf & 1) {
14883
14863
  i0__namespace.ɵɵelementStart(0, "div", 10);
@@ -14890,7 +14870,7 @@
14890
14870
  if (rf & 2) {
14891
14871
  var radioButton_r5 = ctx.$implicit;
14892
14872
  var ctx_r4 = i0__namespace.ɵɵnextContext();
14893
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$I, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
14873
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$J, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
14894
14874
  i0__namespace.ɵɵadvance(1);
14895
14875
  i0__namespace.ɵɵpropertyInterpolate("name", ctx_r4.id());
14896
14876
  i0__namespace.ɵɵproperty("id", ctx_r4.buildElementId(radioButton_r5.code))("formControl", ctx_r4.dynamicRadioListControl)("value", radioButton_r5.code);
@@ -15055,7 +15035,7 @@
15055
15035
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.emailControl.errors, ctx_r2.caseField.label));
15056
15036
  }
15057
15037
  }
15058
- var _c0$H = function (a0) { return { "form-group-error": a0 }; };
15038
+ var _c0$I = function (a0) { return { "form-group-error": a0 }; };
15059
15039
  var _c1$f = function (a0) { return { "govuk-input--error": a0 }; };
15060
15040
  var WriteEmailFieldComponent = /** @class */ (function (_super) {
15061
15041
  __extends(WriteEmailFieldComponent, _super);
@@ -15080,7 +15060,7 @@
15080
15060
  i0__namespace.ɵɵelementEnd();
15081
15061
  }
15082
15062
  if (rf & 2) {
15083
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$H, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
15063
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$I, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
15084
15064
  i0__namespace.ɵɵadvance(1);
15085
15065
  i0__namespace.ɵɵproperty("for", ctx.id());
15086
15066
  i0__namespace.ɵɵadvance(1);
@@ -15212,7 +15192,7 @@
15212
15192
  i0__namespace.ɵɵtextInterpolate(type_r4.label);
15213
15193
  }
15214
15194
  }
15215
- var _c0$G = function (a0) { return { "form-group-error": a0 }; };
15195
+ var _c0$H = function (a0) { return { "form-group-error": a0 }; };
15216
15196
  var WriteFixedListFieldComponent = /** @class */ (function (_super) {
15217
15197
  __extends(WriteFixedListFieldComponent, _super);
15218
15198
  function WriteFixedListFieldComponent() {
@@ -15261,7 +15241,7 @@
15261
15241
  i0__namespace.ɵɵelementEnd();
15262
15242
  }
15263
15243
  if (rf & 2) {
15264
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$G, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
15244
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$H, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
15265
15245
  i0__namespace.ɵɵadvance(1);
15266
15246
  i0__namespace.ɵɵproperty("for", ctx.id());
15267
15247
  i0__namespace.ɵɵadvance(1);
@@ -15379,7 +15359,7 @@
15379
15359
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.fixedRadioListControl.errors, ctx_r2.caseField.label));
15380
15360
  }
15381
15361
  }
15382
- var _c0$F = function (a0) { return { selected: a0 }; };
15362
+ var _c0$G = function (a0) { return { selected: a0 }; };
15383
15363
  function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) {
15384
15364
  if (rf & 1) {
15385
15365
  i0__namespace.ɵɵelementStart(0, "div", 9);
@@ -15392,7 +15372,7 @@
15392
15372
  if (rf & 2) {
15393
15373
  var radioButton_r4 = ctx.$implicit;
15394
15374
  var ctx_r3 = i0__namespace.ɵɵnextContext();
15395
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$F, ctx_r3.fixedRadioListControl.value === radioButton_r4.code));
15375
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$G, ctx_r3.fixedRadioListControl.value === radioButton_r4.code));
15396
15376
  i0__namespace.ɵɵadvance(1);
15397
15377
  i0__namespace.ɵɵproperty("id", ctx_r3.id() + "-" + radioButton_r4.code)("name", ctx_r3.id())("formControl", ctx_r3.fixedRadioListControl)("value", radioButton_r4.code);
15398
15378
  i0__namespace.ɵɵadvance(1);
@@ -15562,7 +15542,7 @@
15562
15542
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.caseField.hint_text, " ");
15563
15543
  }
15564
15544
  }
15565
- var _c0$E = function (a0) { return { "hide-autocomplete": a0 }; };
15545
+ var _c0$F = function (a0) { return { "hide-autocomplete": a0 }; };
15566
15546
  function WriteJudicialUserFieldComponent_mat_option_7_Template(rf, ctx) {
15567
15547
  if (rf & 1) {
15568
15548
  var _r7_1 = i0__namespace.ɵɵgetCurrentView();
@@ -15574,7 +15554,7 @@
15574
15554
  if (rf & 2) {
15575
15555
  var judicialUser_r5 = ctx.$implicit;
15576
15556
  var ctx_r3 = i0__namespace.ɵɵnextContext();
15577
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$E, !ctx_r3.showAutocomplete))("value", judicialUser_r5.idamId);
15557
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$F, !ctx_r3.showAutocomplete))("value", judicialUser_r5.idamId);
15578
15558
  i0__namespace.ɵɵadvance(1);
15579
15559
  i0__namespace.ɵɵtextInterpolate2(" ", judicialUser_r5.fullName, " (", judicialUser_r5.emailId, ") ");
15580
15560
  }
@@ -15921,7 +15901,7 @@
15921
15901
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.moneyGbpControl.errors, ctx_r2.caseField.label));
15922
15902
  }
15923
15903
  }
15924
- var _c0$D = function (a0) { return { "form-group-error": a0 }; };
15904
+ var _c0$E = function (a0) { return { "form-group-error": a0 }; };
15925
15905
  var WriteMoneyGbpFieldComponent = /** @class */ (function (_super) {
15926
15906
  __extends(WriteMoneyGbpFieldComponent, _super);
15927
15907
  function WriteMoneyGbpFieldComponent() {
@@ -15951,7 +15931,7 @@
15951
15931
  i0__namespace.ɵɵelementEnd();
15952
15932
  }
15953
15933
  if (rf & 2) {
15954
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$D, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
15934
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$E, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
15955
15935
  i0__namespace.ɵɵadvance(1);
15956
15936
  i0__namespace.ɵɵproperty("for", ctx.id());
15957
15937
  i0__namespace.ɵɵadvance(1);
@@ -16099,7 +16079,7 @@
16099
16079
  i0__namespace.ɵɵtextInterpolate(checkbox_r4.label);
16100
16080
  }
16101
16081
  }
16102
- var _c0$C = function (a0) { return { "error": a0 }; };
16082
+ var _c0$D = function (a0) { return { "error": a0 }; };
16103
16083
  var WriteMultiSelectListFieldComponent = /** @class */ (function (_super) {
16104
16084
  __extends(WriteMultiSelectListFieldComponent, _super);
16105
16085
  function WriteMultiSelectListFieldComponent() {
@@ -16163,7 +16143,7 @@
16163
16143
  i0__namespace.ɵɵelementEnd();
16164
16144
  }
16165
16145
  if (rf & 2) {
16166
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$C, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
16146
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$D, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
16167
16147
  i0__namespace.ɵɵadvance(3);
16168
16148
  i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
16169
16149
  i0__namespace.ɵɵadvance(1);
@@ -16254,7 +16234,7 @@
16254
16234
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.numberControl.errors, ctx_r2.caseField.label));
16255
16235
  }
16256
16236
  }
16257
- var _c0$B = function (a0) { return { "form-group-error": a0 }; };
16237
+ var _c0$C = function (a0) { return { "form-group-error": a0 }; };
16258
16238
  var _c1$d = function (a0) { return { "govuk-input--error": a0 }; };
16259
16239
  var WriteNumberFieldComponent = /** @class */ (function (_super) {
16260
16240
  __extends(WriteNumberFieldComponent, _super);
@@ -16279,7 +16259,7 @@
16279
16259
  i0__namespace.ɵɵelementEnd();
16280
16260
  }
16281
16261
  if (rf & 2) {
16282
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$B, !ctx.numberControl.valid && ctx.numberControl.dirty));
16262
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$C, !ctx.numberControl.valid && ctx.numberControl.dirty));
16283
16263
  i0__namespace.ɵɵadvance(1);
16284
16264
  i0__namespace.ɵɵproperty("for", ctx.id());
16285
16265
  i0__namespace.ɵɵadvance(1);
@@ -16580,7 +16560,7 @@
16580
16560
  i0__namespace.ɵɵelementEnd();
16581
16561
  }
16582
16562
  }
16583
- var _c0$A = function (a0) { return { "scroll-container ": a0 }; };
16563
+ var _c0$B = function (a0) { return { "scroll-container ": a0 }; };
16584
16564
  function WriteOrganisationFieldComponent_fieldset_3_div_14_Template(rf, ctx) {
16585
16565
  if (rf & 1) {
16586
16566
  i0__namespace.ɵɵelementStart(0, "div", 26);
@@ -16596,7 +16576,7 @@
16596
16576
  var ctx_r2 = i0__namespace.ɵɵnextContext(2);
16597
16577
  var tmp_0_0 = null;
16598
16578
  var tmp_2_0 = null;
16599
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$A, ((tmp_0_0 = i0__namespace.ɵɵpipeBind1(1, 3, ctx_r2.simpleOrganisations$)) == null ? null : tmp_0_0.length) > 10));
16579
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$B, ((tmp_0_0 = i0__namespace.ɵɵpipeBind1(1, 3, ctx_r2.simpleOrganisations$)) == null ? null : tmp_0_0.length) > 10));
16600
16580
  i0__namespace.ɵɵadvance(2);
16601
16581
  i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(3, 5, ctx_r2.simpleOrganisations$));
16602
16582
  i0__namespace.ɵɵadvance(2);
@@ -17068,7 +17048,7 @@
17068
17048
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.phoneUkControl.errors, ctx_r2.caseField.label));
17069
17049
  }
17070
17050
  }
17071
- var _c0$z = function (a0) { return { "form-group-error": a0 }; };
17051
+ var _c0$A = function (a0) { return { "form-group-error": a0 }; };
17072
17052
  var _c1$c = function (a0) { return { "govuk-input--error": a0 }; };
17073
17053
  var WritePhoneUKFieldComponent = /** @class */ (function (_super) {
17074
17054
  __extends(WritePhoneUKFieldComponent, _super);
@@ -17093,7 +17073,7 @@
17093
17073
  i0__namespace.ɵɵelementEnd();
17094
17074
  }
17095
17075
  if (rf & 2) {
17096
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$z, !ctx.phoneUkControl.valid && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched)));
17076
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$A, !ctx.phoneUkControl.valid && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched)));
17097
17077
  i0__namespace.ɵɵadvance(1);
17098
17078
  i0__namespace.ɵɵproperty("for", ctx.id());
17099
17079
  i0__namespace.ɵɵadvance(1);
@@ -17185,7 +17165,7 @@
17185
17165
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.textareaControl.errors, ctx_r2.caseField.label));
17186
17166
  }
17187
17167
  }
17188
- var _c0$y = function (a0) { return { "form-group-error": a0 }; };
17168
+ var _c0$z = function (a0) { return { "form-group-error": a0 }; };
17189
17169
  var _c1$b = function (a0) { return { "govuk-textarea--error": a0 }; };
17190
17170
  var WriteTextAreaFieldComponent = /** @class */ (function (_super) {
17191
17171
  __extends(WriteTextAreaFieldComponent, _super);
@@ -17221,7 +17201,7 @@
17221
17201
  i0__namespace.ɵɵelementEnd();
17222
17202
  }
17223
17203
  if (rf & 2) {
17224
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$y, !ctx.textareaControl.valid && ctx.textareaControl.dirty));
17204
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$z, !ctx.textareaControl.valid && ctx.textareaControl.dirty));
17225
17205
  i0__namespace.ɵɵadvance(1);
17226
17206
  i0__namespace.ɵɵproperty("for", ctx.id());
17227
17207
  i0__namespace.ɵɵadvance(1);
@@ -17313,7 +17293,7 @@
17313
17293
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.textControl.errors, ctx_r2.caseField.label));
17314
17294
  }
17315
17295
  }
17316
- var _c0$x = function (a0) { return { "form-group-error": a0 }; };
17296
+ var _c0$y = function (a0) { return { "form-group-error": a0 }; };
17317
17297
  var _c1$a = function (a0) { return { "govuk-input--error": a0 }; };
17318
17298
  var WriteTextFieldComponent = /** @class */ (function (_super) {
17319
17299
  __extends(WriteTextFieldComponent, _super);
@@ -17343,7 +17323,7 @@
17343
17323
  i0__namespace.ɵɵelementEnd();
17344
17324
  }
17345
17325
  if (rf & 2) {
17346
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$x, !!ctx.textControl && !ctx.textControl.valid && (ctx.textControl.dirty || ctx.textControl.touched)));
17326
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$y, !!ctx.textControl && !ctx.textControl.valid && (ctx.textControl.dirty || ctx.textControl.touched)));
17347
17327
  i0__namespace.ɵɵadvance(1);
17348
17328
  i0__namespace.ɵɵproperty("for", ctx.id());
17349
17329
  i0__namespace.ɵɵadvance(1);
@@ -17551,7 +17531,7 @@
17551
17531
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.yesNoControl.errors, ctx_r2.caseField.label));
17552
17532
  }
17553
17533
  }
17554
- var _c0$w = function (a0) { return { selected: a0 }; };
17534
+ var _c0$x = function (a0) { return { selected: a0 }; };
17555
17535
  function WriteYesNoFieldComponent_div_7_Template(rf, ctx) {
17556
17536
  if (rf & 1) {
17557
17537
  i0__namespace.ɵɵelementStart(0, "div", 10);
@@ -17564,7 +17544,7 @@
17564
17544
  if (rf & 2) {
17565
17545
  var value_r4 = ctx.$implicit;
17566
17546
  var ctx_r3 = i0__namespace.ɵɵnextContext();
17567
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$w, ctx_r3.yesNoControl.value === value_r4));
17547
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$x, ctx_r3.yesNoControl.value === value_r4));
17568
17548
  i0__namespace.ɵɵadvance(1);
17569
17549
  i0__namespace.ɵɵproperty("id", ctx_r3.createElementId(value_r4))("name", ctx_r3.id())("formControl", ctx_r3.yesNoControl)("value", value_r4);
17570
17550
  i0__namespace.ɵɵattribute("name", ctx_r3.id());
@@ -17719,7 +17699,7 @@
17719
17699
  }], null, null);
17720
17700
  })();
17721
17701
 
17722
- var _c0$v = ["fieldContainer"];
17702
+ var _c0$w = ["fieldContainer"];
17723
17703
  var FIX_CASEFIELD_FOR$1 = ['FixedList', 'DynamicList'];
17724
17704
  var FieldReadComponent = /** @class */ (function (_super) {
17725
17705
  __extends(FieldReadComponent, _super);
@@ -17768,7 +17748,7 @@
17768
17748
  FieldReadComponent.ɵfac = function FieldReadComponent_Factory(t) { return new (t || FieldReadComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ComponentFactoryResolver), i0__namespace.ɵɵdirectiveInject(PaletteService)); };
17769
17749
  FieldReadComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FieldReadComponent, selectors: [["ccd-field-read"]], viewQuery: function FieldReadComponent_Query(rf, ctx) {
17770
17750
  if (rf & 1) {
17771
- i0__namespace.ɵɵviewQuery(_c0$v, 1, i0.ViewContainerRef);
17751
+ i0__namespace.ɵɵviewQuery(_c0$w, 1, i0.ViewContainerRef);
17772
17752
  }
17773
17753
  if (rf & 2) {
17774
17754
  var _t = void 0;
@@ -17809,7 +17789,7 @@
17809
17789
  }] });
17810
17790
  })();
17811
17791
 
17812
- var _c0$u = ["fieldContainer"];
17792
+ var _c0$v = ["fieldContainer"];
17813
17793
  var FIX_CASEFIELD_FOR = ['FixedList', 'DynamicList'];
17814
17794
  var FieldWriteComponent = /** @class */ (function (_super) {
17815
17795
  __extends(FieldWriteComponent, _super);
@@ -17857,7 +17837,7 @@
17857
17837
  FieldWriteComponent.ɵfac = function FieldWriteComponent_Factory(t) { return new (t || FieldWriteComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ComponentFactoryResolver), i0__namespace.ɵɵdirectiveInject(PaletteService)); };
17858
17838
  FieldWriteComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FieldWriteComponent, selectors: [["ccd-field-write"]], viewQuery: function FieldWriteComponent_Query(rf, ctx) {
17859
17839
  if (rf & 1) {
17860
- i0__namespace.ɵɵviewQuery(_c0$u, 3, i0.ViewContainerRef);
17840
+ i0__namespace.ɵɵviewQuery(_c0$v, 3, i0.ViewContainerRef);
17861
17841
  }
17862
17842
  if (rf & 2) {
17863
17843
  var _t = void 0;
@@ -17920,7 +17900,7 @@
17920
17900
  i0__namespace.ɵɵprojection(0);
17921
17901
  }
17922
17902
  }
17923
- var _c0$t = ["*"];
17903
+ var _c0$u = ["*"];
17924
17904
  var FieldReadLabelComponent = /** @class */ (function (_super) {
17925
17905
  __extends(FieldReadLabelComponent, _super);
17926
17906
  function FieldReadLabelComponent() {
@@ -17958,7 +17938,7 @@
17958
17938
  return FieldReadLabelComponent;
17959
17939
  }(AbstractFieldReadComponent));
17960
17940
  FieldReadLabelComponent.ɵfac = function FieldReadLabelComponent_Factory(t) { return ɵFieldReadLabelComponent_BaseFactory(t || FieldReadLabelComponent); };
17961
- FieldReadLabelComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FieldReadLabelComponent, selectors: [["ccd-field-read-label"]], inputs: { withLabel: "withLabel", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], ngContentSelectors: _c0$t, decls: 4, vars: 5, consts: [[3, "hidden"], ["class", "case-field", 4, "ngIf", "ngIfElse"], ["caseFieldValue", ""], [1, "case-field"], [1, "case-field__label"], [1, "case-field__value"], [4, "ngTemplateOutlet"]], template: function FieldReadLabelComponent_Template(rf, ctx) {
17941
+ FieldReadLabelComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FieldReadLabelComponent, selectors: [["ccd-field-read-label"]], inputs: { withLabel: "withLabel", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], ngContentSelectors: _c0$u, decls: 4, vars: 5, consts: [[3, "hidden"], ["class", "case-field", 4, "ngIf", "ngIfElse"], ["caseFieldValue", ""], [1, "case-field"], [1, "case-field__label"], [1, "case-field__value"], [4, "ngTemplateOutlet"]], template: function FieldReadLabelComponent_Template(rf, ctx) {
17962
17942
  if (rf & 1) {
17963
17943
  i0__namespace.ɵɵprojectionDef();
17964
17944
  i0__namespace.ɵɵelementStart(0, "div", 0);
@@ -17997,7 +17977,7 @@
17997
17977
  i0__namespace.ɵɵelementContainer(0);
17998
17978
  }
17999
17979
  }
18000
- var _c0$s = function (a0) { return { cat: a0, level: 1 }; };
17980
+ var _c0$t = function (a0) { return { cat: a0, level: 1 }; };
18001
17981
  function CaseFileViewFolderSelectorComponent_ng_container_6_Template(rf, ctx) {
18002
17982
  if (rf & 1) {
18003
17983
  i0__namespace.ɵɵelementContainerStart(0);
@@ -18009,7 +17989,7 @@
18009
17989
  i0__namespace.ɵɵnextContext();
18010
17990
  var _r1 = i0__namespace.ɵɵreference(13);
18011
17991
  i0__namespace.ɵɵadvance(1);
18012
- i0__namespace.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction1(2, _c0$s, cat_r3));
17992
+ i0__namespace.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction1(2, _c0$t, cat_r3));
18013
17993
  }
18014
17994
  }
18015
17995
  function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_ng_container_1_Template(rf, ctx) {
@@ -18251,7 +18231,7 @@
18251
18231
  i0__namespace.ɵɵproperty("ngForOf", ctx_r1.menuItems);
18252
18232
  }
18253
18233
  }
18254
- var _c0$r = [[["", "trigger", ""]]];
18234
+ var _c0$s = [[["", "trigger", ""]]];
18255
18235
  var _c1$7 = ["[trigger]"];
18256
18236
  var CaseFileViewOverlayMenuComponent = /** @class */ (function () {
18257
18237
  function CaseFileViewOverlayMenuComponent() {
@@ -18269,7 +18249,7 @@
18269
18249
  CaseFileViewOverlayMenuComponent.ɵfac = function CaseFileViewOverlayMenuComponent_Factory(t) { return new (t || CaseFileViewOverlayMenuComponent)(); };
18270
18250
  CaseFileViewOverlayMenuComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewOverlayMenuComponent, selectors: [["ccd-case-file-view-overlay-menu"]], inputs: { title: "title", menuItems: "menuItems", isOpen: "isOpen" }, outputs: { isOpenChange: "isOpenChange" }, ngContentSelectors: _c1$7, decls: 5, vars: 4, consts: [["type", "button", "cdkOverlayOrigin", "", 1, "overlay-toggle", 3, "click"], ["trigger", "cdkOverlayOrigin"], ["cdkConnectedOverlay", "", 3, "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayBackdropClass", "backdropClick"], [1, "overlay-menu"], [4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "overlay-menu__title"], [1, "overlay-menu__item", 3, "click"], ["class", "overlay-menu__itemIcon", 3, "src", "alt", 4, "ngIf"], [1, "overlay-menu__actionText"], [1, "overlay-menu__itemIcon", 3, "src", "alt"]], template: function CaseFileViewOverlayMenuComponent_Template(rf, ctx) {
18271
18251
  if (rf & 1) {
18272
- i0__namespace.ɵɵprojectionDef(_c0$r);
18252
+ i0__namespace.ɵɵprojectionDef(_c0$s);
18273
18253
  i0__namespace.ɵɵelementStart(0, "div");
18274
18254
  i0__namespace.ɵɵelementStart(1, "button", 0, 1);
18275
18255
  i0__namespace.ɵɵlistener("click", function CaseFileViewOverlayMenuComponent_Template_button_click_1_listener($event) { $event.stopPropagation(); return ctx.isOpen = !ctx.isOpen; });
@@ -18888,59 +18868,47 @@
18888
18868
  }] });
18889
18869
  })();
18890
18870
 
18891
- function CaseFlagTableComponent_table_0_caption_1_Template(rf, ctx) {
18892
- if (rf & 1) {
18893
- i0__namespace.ɵɵelementStart(0, "caption", 13);
18894
- i0__namespace.ɵɵtext(1);
18895
- i0__namespace.ɵɵelementEnd();
18896
- }
18897
- if (rf & 2) {
18898
- var ctx_r1 = i0__namespace.ɵɵnextContext(2);
18899
- i0__namespace.ɵɵadvance(1);
18900
- i0__namespace.ɵɵtextInterpolate(ctx_r1.tableCaption);
18901
- }
18902
- }
18903
- function CaseFlagTableComponent_table_0_tr_15_Template(rf, ctx) {
18871
+ function CaseFlagTableComponent_table_0_tr_16_Template(rf, ctx) {
18904
18872
  if (rf & 1) {
18905
18873
  i0__namespace.ɵɵelementStart(0, "tr");
18906
- i0__namespace.ɵɵelementStart(1, "td", 14);
18874
+ i0__namespace.ɵɵelementStart(1, "td", 13);
18907
18875
  i0__namespace.ɵɵtext(2, "None");
18908
18876
  i0__namespace.ɵɵelementEnd();
18909
18877
  i0__namespace.ɵɵelementEnd();
18910
18878
  }
18911
18879
  }
18912
- function CaseFlagTableComponent_table_0_tbody_16_tr_1_strong_15_Template(rf, ctx) {
18880
+ function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_15_Template(rf, ctx) {
18913
18881
  if (rf & 1) {
18914
- i0__namespace.ɵɵelementStart(0, "strong", 21);
18882
+ i0__namespace.ɵɵelementStart(0, "strong", 20);
18915
18883
  i0__namespace.ɵɵtext(1, "Active");
18916
18884
  i0__namespace.ɵɵelementEnd();
18917
18885
  }
18918
18886
  }
18919
- function CaseFlagTableComponent_table_0_tbody_16_tr_1_strong_16_Template(rf, ctx) {
18887
+ function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_16_Template(rf, ctx) {
18920
18888
  if (rf & 1) {
18921
- i0__namespace.ɵɵelementStart(0, "strong", 22);
18889
+ i0__namespace.ɵɵelementStart(0, "strong", 21);
18922
18890
  i0__namespace.ɵɵtext(1, "Inactive");
18923
18891
  i0__namespace.ɵɵelementEnd();
18924
18892
  }
18925
18893
  }
18926
- function CaseFlagTableComponent_table_0_tbody_16_tr_1_strong_17_Template(rf, ctx) {
18894
+ function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_17_Template(rf, ctx) {
18927
18895
  if (rf & 1) {
18928
- i0__namespace.ɵɵelementStart(0, "strong", 22);
18896
+ i0__namespace.ɵɵelementStart(0, "strong", 21);
18929
18897
  i0__namespace.ɵɵtext(1, "Requested");
18930
18898
  i0__namespace.ɵɵelementEnd();
18931
18899
  }
18932
18900
  }
18933
- function CaseFlagTableComponent_table_0_tbody_16_tr_1_strong_18_Template(rf, ctx) {
18901
+ function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_18_Template(rf, ctx) {
18934
18902
  if (rf & 1) {
18935
- i0__namespace.ɵɵelementStart(0, "strong", 23);
18903
+ i0__namespace.ɵɵelementStart(0, "strong", 22);
18936
18904
  i0__namespace.ɵɵtext(1, "Not approved");
18937
18905
  i0__namespace.ɵɵelementEnd();
18938
18906
  }
18939
18907
  }
18940
- function CaseFlagTableComponent_table_0_tbody_16_tr_1_Template(rf, ctx) {
18908
+ function CaseFlagTableComponent_table_0_tbody_17_tr_1_Template(rf, ctx) {
18941
18909
  if (rf & 1) {
18942
- i0__namespace.ɵɵelementStart(0, "tr", 16);
18943
- i0__namespace.ɵɵelementStart(1, "td", 17);
18910
+ i0__namespace.ɵɵelementStart(0, "tr", 15);
18911
+ i0__namespace.ɵɵelementStart(1, "td", 16);
18944
18912
  i0__namespace.ɵɵelementStart(2, "div");
18945
18913
  i0__namespace.ɵɵtext(3);
18946
18914
  i0__namespace.ɵɵelementEnd();
@@ -18948,93 +18916,95 @@
18948
18916
  i0__namespace.ɵɵtext(5);
18949
18917
  i0__namespace.ɵɵelementEnd();
18950
18918
  i0__namespace.ɵɵelementEnd();
18951
- i0__namespace.ɵɵelementStart(6, "td", 17);
18919
+ i0__namespace.ɵɵelementStart(6, "td", 16);
18952
18920
  i0__namespace.ɵɵtext(7);
18953
18921
  i0__namespace.ɵɵelementEnd();
18954
- i0__namespace.ɵɵelementStart(8, "td", 17);
18922
+ i0__namespace.ɵɵelementStart(8, "td", 16);
18955
18923
  i0__namespace.ɵɵtext(9);
18956
18924
  i0__namespace.ɵɵpipe(10, "date");
18957
18925
  i0__namespace.ɵɵelementEnd();
18958
- i0__namespace.ɵɵelementStart(11, "td", 17);
18926
+ i0__namespace.ɵɵelementStart(11, "td", 16);
18959
18927
  i0__namespace.ɵɵtext(12);
18960
18928
  i0__namespace.ɵɵpipe(13, "date");
18961
18929
  i0__namespace.ɵɵelementEnd();
18962
- i0__namespace.ɵɵelementStart(14, "td", 17);
18963
- i0__namespace.ɵɵtemplate(15, CaseFlagTableComponent_table_0_tbody_16_tr_1_strong_15_Template, 2, 0, "strong", 18);
18964
- i0__namespace.ɵɵtemplate(16, CaseFlagTableComponent_table_0_tbody_16_tr_1_strong_16_Template, 2, 0, "strong", 19);
18965
- i0__namespace.ɵɵtemplate(17, CaseFlagTableComponent_table_0_tbody_16_tr_1_strong_17_Template, 2, 0, "strong", 19);
18966
- i0__namespace.ɵɵtemplate(18, CaseFlagTableComponent_table_0_tbody_16_tr_1_strong_18_Template, 2, 0, "strong", 20);
18930
+ i0__namespace.ɵɵelementStart(14, "td", 16);
18931
+ i0__namespace.ɵɵtemplate(15, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_15_Template, 2, 0, "strong", 17);
18932
+ i0__namespace.ɵɵtemplate(16, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_16_Template, 2, 0, "strong", 18);
18933
+ i0__namespace.ɵɵtemplate(17, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_17_Template, 2, 0, "strong", 18);
18934
+ i0__namespace.ɵɵtemplate(18, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_18_Template, 2, 0, "strong", 19);
18967
18935
  i0__namespace.ɵɵelementEnd();
18968
18936
  i0__namespace.ɵɵelementEnd();
18969
18937
  }
18970
18938
  if (rf & 2) {
18971
- var flagDetail_r5 = ctx.$implicit;
18972
- var ctx_r4 = i0__namespace.ɵɵnextContext(3);
18939
+ var flagDetail_r4 = ctx.$implicit;
18940
+ var ctx_r3 = i0__namespace.ɵɵnextContext(3);
18973
18941
  i0__namespace.ɵɵadvance(3);
18974
- i0__namespace.ɵɵtextInterpolate(flagDetail_r5.name);
18942
+ i0__namespace.ɵɵtextInterpolate(flagDetail_r4.name);
18975
18943
  i0__namespace.ɵɵadvance(2);
18976
- i0__namespace.ɵɵtextInterpolate(flagDetail_r5.otherDescription);
18944
+ i0__namespace.ɵɵtextInterpolate(flagDetail_r4.otherDescription);
18977
18945
  i0__namespace.ɵɵadvance(2);
18978
- i0__namespace.ɵɵtextInterpolate(flagDetail_r5.flagComment);
18946
+ i0__namespace.ɵɵtextInterpolate(flagDetail_r4.flagComment);
18979
18947
  i0__namespace.ɵɵadvance(2);
18980
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(10, 9, flagDetail_r5.dateTimeCreated, "dd LLL yyyy"));
18948
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(10, 9, flagDetail_r4.dateTimeCreated, "dd LLL yyyy"));
18981
18949
  i0__namespace.ɵɵadvance(3);
18982
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(13, 12, flagDetail_r5.dateTimeModified, "dd LLL yyyy"));
18950
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(13, 12, flagDetail_r4.dateTimeModified, "dd LLL yyyy"));
18983
18951
  i0__namespace.ɵɵadvance(3);
18984
- i0__namespace.ɵɵproperty("ngIf", flagDetail_r5.status === ctx_r4.caseFlagStatus.ACTIVE);
18952
+ i0__namespace.ɵɵproperty("ngIf", flagDetail_r4.status === ctx_r3.caseFlagStatus.ACTIVE);
18985
18953
  i0__namespace.ɵɵadvance(1);
18986
- i0__namespace.ɵɵproperty("ngIf", flagDetail_r5.status === ctx_r4.caseFlagStatus.INACTIVE);
18954
+ i0__namespace.ɵɵproperty("ngIf", flagDetail_r4.status === ctx_r3.caseFlagStatus.INACTIVE);
18987
18955
  i0__namespace.ɵɵadvance(1);
18988
- i0__namespace.ɵɵproperty("ngIf", flagDetail_r5.status === ctx_r4.caseFlagStatus.REQUESTED);
18956
+ i0__namespace.ɵɵproperty("ngIf", flagDetail_r4.status === ctx_r3.caseFlagStatus.REQUESTED);
18989
18957
  i0__namespace.ɵɵadvance(1);
18990
- i0__namespace.ɵɵproperty("ngIf", flagDetail_r5.status === ctx_r4.caseFlagStatus.NOT_APPROVED);
18958
+ i0__namespace.ɵɵproperty("ngIf", flagDetail_r4.status === ctx_r3.caseFlagStatus.NOT_APPROVED);
18991
18959
  }
18992
18960
  }
18993
- function CaseFlagTableComponent_table_0_tbody_16_Template(rf, ctx) {
18961
+ function CaseFlagTableComponent_table_0_tbody_17_Template(rf, ctx) {
18994
18962
  if (rf & 1) {
18995
18963
  i0__namespace.ɵɵelementStart(0, "tbody", 10);
18996
- i0__namespace.ɵɵtemplate(1, CaseFlagTableComponent_table_0_tbody_16_tr_1_Template, 19, 15, "tr", 15);
18964
+ i0__namespace.ɵɵtemplate(1, CaseFlagTableComponent_table_0_tbody_17_tr_1_Template, 19, 15, "tr", 14);
18997
18965
  i0__namespace.ɵɵelementEnd();
18998
18966
  }
18999
18967
  if (rf & 2) {
19000
- var ctx_r3 = i0__namespace.ɵɵnextContext(2);
18968
+ var ctx_r2 = i0__namespace.ɵɵnextContext(2);
19001
18969
  i0__namespace.ɵɵadvance(1);
19002
- i0__namespace.ɵɵproperty("ngForOf", ctx_r3.flagData.flags.details);
18970
+ i0__namespace.ɵɵproperty("ngForOf", ctx_r2.flagData.flags.details);
19003
18971
  }
19004
18972
  }
19005
18973
  function CaseFlagTableComponent_table_0_Template(rf, ctx) {
19006
18974
  if (rf & 1) {
19007
18975
  i0__namespace.ɵɵelementStart(0, "table", 1);
19008
- i0__namespace.ɵɵtemplate(1, CaseFlagTableComponent_table_0_caption_1_Template, 2, 1, "caption", 2);
19009
- i0__namespace.ɵɵelementStart(2, "thead", 3);
19010
- i0__namespace.ɵɵelementStart(3, "tr", 4);
19011
- i0__namespace.ɵɵelementStart(4, "th", 5);
19012
- i0__namespace.ɵɵtext(5);
18976
+ i0__namespace.ɵɵelementStart(1, "caption", 2);
18977
+ i0__namespace.ɵɵtext(2);
18978
+ i0__namespace.ɵɵelementEnd();
18979
+ i0__namespace.ɵɵelementStart(3, "thead", 3);
18980
+ i0__namespace.ɵɵelementStart(4, "tr", 4);
18981
+ i0__namespace.ɵɵelementStart(5, "th", 5);
18982
+ i0__namespace.ɵɵtext(6);
19013
18983
  i0__namespace.ɵɵelementEnd();
19014
- i0__namespace.ɵɵelementStart(6, "th", 6);
19015
- i0__namespace.ɵɵtext(7, "Comments");
18984
+ i0__namespace.ɵɵelementStart(7, "th", 6);
18985
+ i0__namespace.ɵɵtext(8, "Comments");
19016
18986
  i0__namespace.ɵɵelementEnd();
19017
- i0__namespace.ɵɵelementStart(8, "th", 7);
19018
- i0__namespace.ɵɵtext(9, "Creation date");
18987
+ i0__namespace.ɵɵelementStart(9, "th", 7);
18988
+ i0__namespace.ɵɵtext(10, "Creation date");
19019
18989
  i0__namespace.ɵɵelementEnd();
19020
- i0__namespace.ɵɵelementStart(10, "th", 8);
19021
- i0__namespace.ɵɵtext(11, "Last modified");
18990
+ i0__namespace.ɵɵelementStart(11, "th", 8);
18991
+ i0__namespace.ɵɵtext(12, "Last modified");
19022
18992
  i0__namespace.ɵɵelementEnd();
19023
- i0__namespace.ɵɵelementStart(12, "th", 9);
19024
- i0__namespace.ɵɵtext(13, "Flag status");
18993
+ i0__namespace.ɵɵelementStart(13, "th", 9);
18994
+ i0__namespace.ɵɵtext(14, "Flag status");
19025
18995
  i0__namespace.ɵɵelementEnd();
19026
18996
  i0__namespace.ɵɵelementEnd();
19027
18997
  i0__namespace.ɵɵelementEnd();
19028
- i0__namespace.ɵɵelementStart(14, "tbody", 10);
19029
- i0__namespace.ɵɵtemplate(15, CaseFlagTableComponent_table_0_tr_15_Template, 3, 0, "tr", 11);
18998
+ i0__namespace.ɵɵelementStart(15, "tbody", 10);
18999
+ i0__namespace.ɵɵtemplate(16, CaseFlagTableComponent_table_0_tr_16_Template, 3, 0, "tr", 11);
19030
19000
  i0__namespace.ɵɵelementEnd();
19031
- i0__namespace.ɵɵtemplate(16, CaseFlagTableComponent_table_0_tbody_16_Template, 2, 1, "tbody", 12);
19001
+ i0__namespace.ɵɵtemplate(17, CaseFlagTableComponent_table_0_tbody_17_Template, 2, 1, "tbody", 12);
19032
19002
  i0__namespace.ɵɵelementEnd();
19033
19003
  }
19034
19004
  if (rf & 2) {
19035
19005
  var ctx_r0 = i0__namespace.ɵɵnextContext();
19036
- i0__namespace.ɵɵadvance(1);
19037
- i0__namespace.ɵɵproperty("ngIf", ctx_r0.tableCaption);
19006
+ i0__namespace.ɵɵadvance(2);
19007
+ i0__namespace.ɵɵtextInterpolate(ctx_r0.tableCaption);
19038
19008
  i0__namespace.ɵɵadvance(4);
19039
19009
  i0__namespace.ɵɵtextInterpolate(ctx_r0.firstColumnHeader);
19040
19010
  i0__namespace.ɵɵadvance(10);
@@ -19056,9 +19026,9 @@
19056
19026
  return CaseFlagTableComponent;
19057
19027
  }());
19058
19028
  CaseFlagTableComponent.ɵfac = function CaseFlagTableComponent_Factory(t) { return new (t || CaseFlagTableComponent)(); };
19059
- CaseFlagTableComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFlagTableComponent, selectors: [["ccd-case-flag-table"]], inputs: { tableCaption: "tableCaption", flagData: "flagData", firstColumnHeader: "firstColumnHeader" }, 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"], ["class", "govuk-tag", 4, "ngIf"], ["class", "govuk-tag govuk-tag--grey", 4, "ngIf"], ["class", "govuk-tag govuk-tag--red", 4, "ngIf"], [1, "govuk-tag"], [1, "govuk-tag", "govuk-tag--grey"], [1, "govuk-tag", "govuk-tag--red"]], template: function CaseFlagTableComponent_Template(rf, ctx) {
19029
+ CaseFlagTableComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFlagTableComponent, selectors: [["ccd-case-flag-table"]], inputs: { tableCaption: "tableCaption", flagData: "flagData", firstColumnHeader: "firstColumnHeader" }, decls: 1, vars: 1, consts: [["class", "govuk-table", 4, "ngIf"], [1, "govuk-table"], [1, "govuk-table__caption", "govuk-table__caption--l"], [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"], ["colspan", "5"], ["scope", "row", "class", "govuk-table__row", 4, "ngFor", "ngForOf"], ["scope", "row", 1, "govuk-table__row"], [1, "govuk-table__cell"], ["class", "govuk-tag", 4, "ngIf"], ["class", "govuk-tag govuk-tag--grey", 4, "ngIf"], ["class", "govuk-tag govuk-tag--red", 4, "ngIf"], [1, "govuk-tag"], [1, "govuk-tag", "govuk-tag--grey"], [1, "govuk-tag", "govuk-tag--red"]], template: function CaseFlagTableComponent_Template(rf, ctx) {
19060
19030
  if (rf & 1) {
19061
- i0__namespace.ɵɵtemplate(0, CaseFlagTableComponent_table_0_Template, 17, 4, "table", 0);
19031
+ i0__namespace.ɵɵtemplate(0, CaseFlagTableComponent_table_0_Template, 18, 4, "table", 0);
19062
19032
  }
19063
19033
  if (rf & 2) {
19064
19034
  i0__namespace.ɵɵproperty("ngIf", ctx.flagData);
@@ -19084,7 +19054,7 @@
19084
19054
  /**
19085
19055
  * DTO to provide typing of the response from the Reference Data Common API for Case Flags data.
19086
19056
  *
19087
- * @see {@link https://tools.hmcts.net/confluence/pages/viewpage.action?pageId=1525476616#CaseFlagsHLDVersion1.0-Output}
19057
+ * @see {@link https://tools.hmcts.net/confluence/pages/viewpage.action?pageId=1597741121#CaseFlagsHLDVersion2.0-Output}
19088
19058
  * for full details
19089
19059
  */
19090
19060
  var FlagType = /** @class */ (function () {
@@ -19190,7 +19160,7 @@
19190
19160
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r7.flagTypeErrorMessage, " ");
19191
19161
  }
19192
19162
  }
19193
- var _c0$q = function (a0) { return { "form-group-error": a0 }; };
19163
+ var _c0$r = function (a0) { return { "form-group-error": a0 }; };
19194
19164
  var _c1$6 = function (a0) { return { "govuk-input--error": a0 }; };
19195
19165
  function SelectFlagTypeComponent_div_0_div_9_Template(rf, ctx) {
19196
19166
  if (rf & 1) {
@@ -19207,7 +19177,7 @@
19207
19177
  if (rf & 2) {
19208
19178
  var ctx_r3 = i0__namespace.ɵɵnextContext(2);
19209
19179
  i0__namespace.ɵɵadvance(1);
19210
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$q, ctx_r3.flagTypeErrorMessage.length > 0));
19180
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$r, ctx_r3.flagTypeErrorMessage.length > 0));
19211
19181
  i0__namespace.ɵɵadvance(3);
19212
19182
  i0__namespace.ɵɵproperty("ngIf", ctx_r3.flagTypeErrorMessage.length > 0);
19213
19183
  i0__namespace.ɵɵadvance(1);
@@ -19249,7 +19219,7 @@
19249
19219
  var ctx_r0 = i0__namespace.ɵɵnextContext();
19250
19220
  i0__namespace.ɵɵproperty("formGroup", ctx_r0.formGroup);
19251
19221
  i0__namespace.ɵɵadvance(1);
19252
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$q, ctx_r0.flagTypeNotSelectedErrorMessage.length > 0));
19222
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$r, ctx_r0.flagTypeNotSelectedErrorMessage.length > 0));
19253
19223
  i0__namespace.ɵɵadvance(4);
19254
19224
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.caseFlagWizardStepTitle.SELECT_CASE_FLAG, " ");
19255
19225
  i0__namespace.ɵɵadvance(1);
@@ -19520,7 +19490,7 @@
19520
19490
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r8.languageCharLimitErrorMessage, " ");
19521
19491
  }
19522
19492
  }
19523
- var _c0$p = function (a0) { return { "form-group-error": a0 }; };
19493
+ var _c0$q = function (a0) { return { "form-group-error": a0 }; };
19524
19494
  function SearchLanguageInterpreterComponent_div_21_Template(rf, ctx) {
19525
19495
  if (rf & 1) {
19526
19496
  i0__namespace.ɵɵelementStart(0, "div", 25);
@@ -19537,7 +19507,7 @@
19537
19507
  if (rf & 2) {
19538
19508
  var ctx_r5 = i0__namespace.ɵɵnextContext();
19539
19509
  i0__namespace.ɵɵadvance(1);
19540
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$p, ctx_r5.languageNotEnteredErrorMessage || ctx_r5.languageCharLimitErrorMessage));
19510
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$q, ctx_r5.languageNotEnteredErrorMessage || ctx_r5.languageCharLimitErrorMessage));
19541
19511
  i0__namespace.ɵɵadvance(2);
19542
19512
  i0__namespace.ɵɵtextInterpolate(ctx_r5.searchLanguageInterpreterStep.INPUT_LABEL);
19543
19513
  i0__namespace.ɵɵadvance(1);
@@ -19711,7 +19681,7 @@
19711
19681
  var _r2 = i0__namespace.ɵɵreference(12);
19712
19682
  i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
19713
19683
  i0__namespace.ɵɵadvance(1);
19714
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(16, _c0$p, ctx.languageNotSelectedErrorMessage || ctx.languageEnteredInBothFieldsErrorMessage));
19684
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(16, _c0$q, ctx.languageNotSelectedErrorMessage || ctx.languageEnteredInBothFieldsErrorMessage));
19715
19685
  i0__namespace.ɵɵadvance(2);
19716
19686
  i0__namespace.ɵɵproperty("for", ctx.SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM);
19717
19687
  i0__namespace.ɵɵadvance(1);
@@ -19845,7 +19815,7 @@
19845
19815
  i0__namespace.ɵɵelementEnd();
19846
19816
  }
19847
19817
  }
19848
- var _c0$o = function (a0) { return { "form-group-error": a0 }; };
19818
+ var _c0$p = function (a0) { return { "form-group-error": a0 }; };
19849
19819
  var SelectFlagLocationComponent = /** @class */ (function () {
19850
19820
  function SelectFlagLocationComponent() {
19851
19821
  this.caseFlagStateEmitter = new i0.EventEmitter();
@@ -19938,7 +19908,7 @@
19938
19908
  if (rf & 2) {
19939
19909
  i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
19940
19910
  i0__namespace.ɵɵadvance(1);
19941
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$o, ctx.errorMessages.length > 0));
19911
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$p, ctx.errorMessages.length > 0));
19942
19912
  i0__namespace.ɵɵadvance(4);
19943
19913
  i0__namespace.ɵɵtextInterpolate1(" ", ctx.flagLocationTitle, " ");
19944
19914
  i0__namespace.ɵɵadvance(1);
@@ -20002,7 +19972,7 @@
20002
19972
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r2.flagCommentsCharLimitErrorMessage, " ");
20003
19973
  }
20004
19974
  }
20005
- var _c0$n = function (a0) { return { "form-group-error": a0 }; };
19975
+ var _c0$o = function (a0) { return { "form-group-error": a0 }; };
20006
19976
  var AddCommentsComponent = /** @class */ (function () {
20007
19977
  function AddCommentsComponent() {
20008
19978
  this.optional = false;
@@ -20085,7 +20055,7 @@
20085
20055
  if (rf & 2) {
20086
20056
  i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
20087
20057
  i0__namespace.ɵɵadvance(2);
20088
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(12, _c0$n, ctx.errorMessages.length > 0));
20058
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(12, _c0$o, ctx.errorMessages.length > 0));
20089
20059
  i0__namespace.ɵɵadvance(2);
20090
20060
  i0__namespace.ɵɵproperty("for", ctx.flagCommentsControlName);
20091
20061
  i0__namespace.ɵɵadvance(1);
@@ -20165,7 +20135,7 @@
20165
20135
  i0__namespace.ɵɵelementEnd();
20166
20136
  }
20167
20137
  }
20168
- var _c0$m = function (a0) { return { "form-group-error": a0 }; };
20138
+ var _c0$n = function (a0) { return { "form-group-error": a0 }; };
20169
20139
  var ManageCaseFlagsComponent = /** @class */ (function () {
20170
20140
  function ManageCaseFlagsComponent() {
20171
20141
  this.caseFlagStateEmitter = new i0.EventEmitter();
@@ -20325,7 +20295,7 @@
20325
20295
  if (rf & 2) {
20326
20296
  i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
20327
20297
  i0__namespace.ɵɵadvance(1);
20328
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$m, ctx.errorMessages.length > 0));
20298
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$n, ctx.errorMessages.length > 0));
20329
20299
  i0__namespace.ɵɵadvance(4);
20330
20300
  i0__namespace.ɵɵtextInterpolate1(" ", ctx.manageCaseFlagTitle, " ");
20331
20301
  i0__namespace.ɵɵadvance(1);
@@ -20407,7 +20377,7 @@
20407
20377
  i0__namespace.ɵɵtextInterpolate1(" ", status_r3, " ");
20408
20378
  }
20409
20379
  }
20410
- var _c0$l = function (a0) { return { "form-group-error": a0 }; };
20380
+ var _c0$m = function (a0) { return { "form-group-error": a0 }; };
20411
20381
  var UpdateFlagComponent = /** @class */ (function () {
20412
20382
  function UpdateFlagComponent() {
20413
20383
  this.caseFlagStateEmitter = new i0.EventEmitter();
@@ -20549,7 +20519,7 @@
20549
20519
  if (rf & 2) {
20550
20520
  i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
20551
20521
  i0__namespace.ɵɵadvance(2);
20552
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(24, _c0$l, ctx.errorMessages.length > 0));
20522
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(24, _c0$m, ctx.errorMessages.length > 0));
20553
20523
  i0__namespace.ɵɵadvance(3);
20554
20524
  i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagTitle, " ");
20555
20525
  i0__namespace.ɵɵadvance(3);
@@ -20759,6 +20729,117 @@
20759
20729
  }] });
20760
20730
  })();
20761
20731
 
20732
+ function ConfirmFlagStatusComponent_div_8_Template(rf, ctx) {
20733
+ if (rf & 1) {
20734
+ i0__namespace.ɵɵelementStart(0, "div", 13);
20735
+ i0__namespace.ɵɵelement(1, "input", 14);
20736
+ i0__namespace.ɵɵelementStart(2, "label", 15);
20737
+ i0__namespace.ɵɵtext(3);
20738
+ i0__namespace.ɵɵelementEnd();
20739
+ i0__namespace.ɵɵelementEnd();
20740
+ }
20741
+ if (rf & 2) {
20742
+ var status_r1 = ctx.$implicit;
20743
+ var i_r2 = ctx.index;
20744
+ var ctx_r0 = i0__namespace.ɵɵnextContext();
20745
+ i0__namespace.ɵɵadvance(1);
20746
+ i0__namespace.ɵɵpropertyInterpolate1("id", "flag-status-", i_r2, "");
20747
+ i0__namespace.ɵɵproperty("name", ctx_r0.selectedStatusControlName)("value", status_r1)("formControlName", ctx_r0.selectedStatusControlName);
20748
+ i0__namespace.ɵɵadvance(1);
20749
+ i0__namespace.ɵɵpropertyInterpolate1("for", "flag-status-", i_r2, "");
20750
+ i0__namespace.ɵɵadvance(1);
20751
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.caseFlagStatusEnum[status_r1], " ");
20752
+ }
20753
+ }
20754
+ var _c0$l = function (a0) { return { "form-group-error": a0 }; };
20755
+ var ConfirmFlagStatusComponent = /** @class */ (function () {
20756
+ function ConfirmFlagStatusComponent() {
20757
+ this.caseFlagStateEmitter = new i0.EventEmitter();
20758
+ this.caseFlagStatusEnum = exports.CaseFlagStatus;
20759
+ this.errorMessages = [];
20760
+ this.selectedStatusControlName = 'selectedStatus';
20761
+ this.statusReasonControlName = 'statusReason';
20762
+ }
20763
+ ConfirmFlagStatusComponent.prototype.ngOnInit = function () {
20764
+ var _this = this;
20765
+ this.confirmFlagStatusTitle = exports.CaseFlagWizardStepTitle.CONFIRM_FLAG_STATUS;
20766
+ this.flagCreationStatuses = Object.keys(exports.CaseFlagStatus).filter(function (key) { return !['INACTIVE'].includes(key); });
20767
+ this.statusReasonHint = exports.ConfirmStatusStep.HINT_TEXT;
20768
+ this.statusReasonCharLimitInfo = exports.ConfirmStatusStep.CHARACTER_LIMIT_INFO;
20769
+ this.formGroup.addControl(this.selectedStatusControlName, new i1$2.FormControl(this.flagCreationStatuses.find(function (key) { return exports.CaseFlagStatus[key] === _this.defaultStatus; })));
20770
+ this.formGroup.addControl(this.statusReasonControlName, new i1$2.FormControl(''));
20771
+ };
20772
+ ConfirmFlagStatusComponent.prototype.onNext = function () {
20773
+ // Return case flag field state and error messages to the parent
20774
+ this.caseFlagStateEmitter.emit({ currentCaseFlagFieldState: exports.CaseFlagFieldState.FLAG_STATUS, errorMessages: this.errorMessages });
20775
+ };
20776
+ return ConfirmFlagStatusComponent;
20777
+ }());
20778
+ ConfirmFlagStatusComponent.ɵfac = function ConfirmFlagStatusComponent_Factory(t) { return new (t || ConfirmFlagStatusComponent)(); };
20779
+ ConfirmFlagStatusComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ConfirmFlagStatusComponent, selectors: [["ccd-confirm-flag-status"]], inputs: { formGroup: "formGroup", defaultStatus: "defaultStatus" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 17, vars: 11, consts: [[1, "form-group", 3, "formGroup"], ["data-module", "govuk-character-count", "data-maxlength", "100", 1, "govuk-character-count"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "confirm-flag-status-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], ["id", "confirm-flag-status-heading", 1, "govuk-fieldset__heading"], ["data-module", "govuk-radios", "id", "conditional-radios-list", 1, "govuk-radios", "govuk-radios--conditional", "govuk-!-margin-bottom-4"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["id", "status-reason-hint", 1, "govuk-hint"], ["rows", "5", "aria-describedby", "status-reason-hint status-reason-char-limit-info", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "status-reason-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "value", "formControlName"], [1, "govuk-label", "govuk-radios__label", 3, "for"]], template: function ConfirmFlagStatusComponent_Template(rf, ctx) {
20780
+ if (rf & 1) {
20781
+ i0__namespace.ɵɵelementStart(0, "div", 0);
20782
+ i0__namespace.ɵɵelementStart(1, "div", 1);
20783
+ i0__namespace.ɵɵelementStart(2, "div", 2);
20784
+ i0__namespace.ɵɵelementStart(3, "fieldset", 3);
20785
+ i0__namespace.ɵɵelementStart(4, "legend", 4);
20786
+ i0__namespace.ɵɵelementStart(5, "h1", 5);
20787
+ i0__namespace.ɵɵtext(6);
20788
+ i0__namespace.ɵɵelementEnd();
20789
+ i0__namespace.ɵɵelementEnd();
20790
+ i0__namespace.ɵɵelementStart(7, "div", 6);
20791
+ i0__namespace.ɵɵtemplate(8, ConfirmFlagStatusComponent_div_8_Template, 4, 6, "div", 7);
20792
+ i0__namespace.ɵɵelementEnd();
20793
+ i0__namespace.ɵɵelementEnd();
20794
+ i0__namespace.ɵɵelementStart(9, "div", 8);
20795
+ i0__namespace.ɵɵtext(10);
20796
+ i0__namespace.ɵɵelementEnd();
20797
+ i0__namespace.ɵɵelement(11, "textarea", 9);
20798
+ i0__namespace.ɵɵelementStart(12, "div", 10);
20799
+ i0__namespace.ɵɵtext(13);
20800
+ i0__namespace.ɵɵelementEnd();
20801
+ i0__namespace.ɵɵelementEnd();
20802
+ i0__namespace.ɵɵelementEnd();
20803
+ i0__namespace.ɵɵelementStart(14, "div", 11);
20804
+ i0__namespace.ɵɵelementStart(15, "button", 12);
20805
+ i0__namespace.ɵɵlistener("click", function ConfirmFlagStatusComponent_Template_button_click_15_listener() { return ctx.onNext(); });
20806
+ i0__namespace.ɵɵtext(16, "Next");
20807
+ i0__namespace.ɵɵelementEnd();
20808
+ i0__namespace.ɵɵelementEnd();
20809
+ i0__namespace.ɵɵelementEnd();
20810
+ }
20811
+ if (rf & 2) {
20812
+ i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
20813
+ i0__namespace.ɵɵadvance(2);
20814
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$l, ctx.errorMessages.length > 0));
20815
+ i0__namespace.ɵɵadvance(4);
20816
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx.confirmFlagStatusTitle, " ");
20817
+ i0__namespace.ɵɵadvance(2);
20818
+ i0__namespace.ɵɵproperty("ngForOf", ctx.flagCreationStatuses);
20819
+ i0__namespace.ɵɵadvance(2);
20820
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx.statusReasonHint, " ");
20821
+ i0__namespace.ɵɵadvance(1);
20822
+ i0__namespace.ɵɵproperty("id", ctx.statusReasonControlName)("name", ctx.statusReasonControlName)("formControlName", ctx.statusReasonControlName);
20823
+ i0__namespace.ɵɵadvance(2);
20824
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx.statusReasonCharLimitInfo, " ");
20825
+ }
20826
+ }, directives: [i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgForOf, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlName, i1__namespace$3.RadioControlValueAccessor], encapsulation: 2 });
20827
+ (function () {
20828
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ConfirmFlagStatusComponent, [{
20829
+ type: i0.Component,
20830
+ args: [{
20831
+ selector: 'ccd-confirm-flag-status',
20832
+ templateUrl: './confirm-flag-status.component.html'
20833
+ }]
20834
+ }], null, { formGroup: [{
20835
+ type: i0.Input
20836
+ }], defaultStatus: [{
20837
+ type: i0.Input
20838
+ }], caseFlagStateEmitter: [{
20839
+ type: i0.Output
20840
+ }] });
20841
+ })();
20842
+
20762
20843
  var CollectionCreateCheckerService = /** @class */ (function () {
20763
20844
  function CollectionCreateCheckerService() {
20764
20845
  }
@@ -22774,7 +22855,7 @@
22774
22855
  EventLogComponent,
22775
22856
  EventLogDetailsComponent,
22776
22857
  EventLogTableComponent,
22777
- // // Read
22858
+ // Read
22778
22859
  ReadTextFieldComponent,
22779
22860
  ReadTextAreaFieldComponent,
22780
22861
  ReadNumberFieldComponent,
@@ -22923,7 +23004,7 @@
22923
23004
  EventLogComponent,
22924
23005
  EventLogDetailsComponent,
22925
23006
  EventLogTableComponent,
22926
- // // Read
23007
+ // Read
22927
23008
  ReadTextFieldComponent,
22928
23009
  ReadTextAreaFieldComponent,
22929
23010
  ReadNumberFieldComponent,
@@ -22987,7 +23068,7 @@
22987
23068
  CaseFileViewFolderSortComponent,
22988
23069
  CaseFileViewOverlayMenuComponent,
22989
23070
  CaseFileViewFolderDocumentActionsComponent,
22990
- CaseFileViewFolderSelectorComponent], imports: [i1.CommonModule,
23071
+ CaseFileViewFolderSelectorComponent, ConfirmFlagStatusComponent], imports: [i1.CommonModule,
22991
23072
  i1$1.RouterModule,
22992
23073
  i1$2.FormsModule,
22993
23074
  i1$2.ReactiveFormsModule,
@@ -23032,7 +23113,7 @@
23032
23113
  EventLogComponent,
23033
23114
  EventLogDetailsComponent,
23034
23115
  EventLogTableComponent,
23035
- // // Read
23116
+ // Read
23036
23117
  ReadTextFieldComponent,
23037
23118
  ReadTextAreaFieldComponent,
23038
23119
  ReadNumberFieldComponent,
@@ -23147,7 +23228,9 @@
23147
23228
  AddCommentsComponent,
23148
23229
  UpdateFlagComponent,
23149
23230
  CaseFlagSummaryListComponent
23150
- ], PALETTE_COMPONENTS),
23231
+ ], PALETTE_COMPONENTS, [
23232
+ ConfirmFlagStatusComponent
23233
+ ]),
23151
23234
  exports: __spread([
23152
23235
  i4.NgxMatDatetimePickerModule,
23153
23236
  i4.NgxMatNativeDateModule,
@@ -23190,7 +23273,7 @@
23190
23273
  i0__namespace.ɵɵsetComponentScope(ReadComplexFieldTableComponent, [i1__namespace.NgForOf, i1__namespace.NgIf, FieldReadComponent], [ReadFieldsFilterPipe, IsCompoundPipe]);
23191
23274
  i0__namespace.ɵɵsetComponentScope(ReadComplexFieldCollectionTableComponent, [i1__namespace.NgForOf, i1__namespace.NgIf, FieldReadComponent,
23192
23275
  ReadCaseLinkFieldComponent], [ReadFieldsFilterPipe, CcdCollectionTableCaseFieldsFilterPipe, i1__namespace.KeyValuePipe, IsCompoundPipe]);
23193
- i0__namespace.ɵɵsetComponentScope(ReadCaseFlagFieldComponent, [i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, CaseFlagSummaryListComponent, i1__namespace.NgForOf, i1__namespace.NgIf, CaseFlagTableComponent, i1__namespace.NgSwitchDefault], []);
23276
+ i0__namespace.ɵɵsetComponentScope(ReadCaseFlagFieldComponent, [i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, CaseFlagSummaryListComponent, i1__namespace.NgSwitchDefault, i1__namespace.NgForOf, i1__namespace.NgIf, CaseFlagTableComponent], []);
23194
23277
  i0__namespace.ɵɵsetComponentScope(WriteAddressFieldComponent, [i1__namespace.NgIf, i1__namespace.NgClass, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective, i1__namespace$3.SelectControlValueAccessor, i1__namespace.NgForOf, i1__namespace$3.NgSelectOption, i1__namespace$3.ɵangular_packages_forms_forms_z, WriteComplexFieldComponent, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective], [FieldLabelPipe]);
23195
23278
  i0__namespace.ɵɵsetComponentScope(WriteComplexFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, FieldReadComponent, LabelSubstitutorDirective, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, FieldWriteComponent], [FieldLabelPipe, IsReadOnlyPipe]);
23196
23279
  i0__namespace.ɵɵsetComponentScope(WriteDocumentFieldComponent, [i1__namespace.NgClass, i1__namespace.NgIf, ReadDocumentFieldComponent], [FieldLabelPipe]);
@@ -23199,6 +23282,7 @@
23199
23282
  SelectFlagTypeComponent,
23200
23283
  SearchLanguageInterpreterComponent,
23201
23284
  AddCommentsComponent,
23285
+ ConfirmFlagStatusComponent,
23202
23286
  ManageCaseFlagsComponent,
23203
23287
  UpdateFlagComponent], []);
23204
23288
  i0__namespace.ɵɵsetComponentScope(WriteOrganisationFieldComponent, [i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace.NgIf, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective, i1__namespace.NgClass, i1__namespace.NgForOf, MarkdownComponent,
@@ -32998,6 +33082,7 @@
32998
33082
  exports.ConditionalShowFormDirective = ConditionalShowFormDirective;
32999
33083
  exports.ConditionalShowModule = ConditionalShowModule;
33000
33084
  exports.ConditionalShowRegistrarService = ConditionalShowRegistrarService;
33085
+ exports.ConfirmFlagStatusComponent = ConfirmFlagStatusComponent;
33001
33086
  exports.Confirmation = Confirmation;
33002
33087
  exports.ConvertHrefToRouterService = ConvertHrefToRouterService;
33003
33088
  exports.CreateCaseFiltersComponent = CreateCaseFiltersComponent;