@hmcts/ccd-case-ui-toolkit 6.19.7 → 6.19.8-case-flags-v2-1-consolidation-final-fixes-1

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 (76) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +811 -460
  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/case-editor/case-edit/case-edit.component.js +2 -2
  6. package/esm2015/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.js +3 -12
  7. package/esm2015/lib/shared/components/case-editor/case-edit-submit/case-edit-submit-titles.enum.js +7 -0
  8. package/esm2015/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.js +166 -127
  9. package/esm2015/lib/shared/components/case-editor/case-editor.module.js +1 -1
  10. package/esm2015/lib/shared/components/case-editor/services/valid-page-list-caseFields.service.js +15 -7
  11. package/esm2015/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.js +13 -6
  12. package/esm2015/lib/shared/components/palette/case-flag/components/case-flag-summary-list/case-flag-summary-list.component.js +78 -61
  13. package/esm2015/lib/shared/components/palette/case-flag/components/case-flag-table/case-flag-table.component.js +13 -13
  14. package/esm2015/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.js +7 -2
  15. package/esm2015/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.js +33 -20
  16. package/esm2015/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.js +256 -127
  17. package/esm2015/lib/shared/components/palette/case-flag/enums/add-comments-error-message.enum.js +2 -1
  18. package/esm2015/lib/shared/components/palette/case-flag/enums/add-comments-step.enum.js +2 -1
  19. package/esm2015/lib/shared/components/palette/case-flag/enums/case-flag-check-your-answers-step.enum.js +12 -0
  20. package/esm2015/lib/shared/components/palette/case-flag/enums/case-flag-display-context-parameter.enum.js +7 -1
  21. package/esm2015/lib/shared/components/palette/case-flag/enums/case-flag-wizard-step-title.enum.js +5 -2
  22. package/esm2015/lib/shared/components/palette/case-flag/enums/index.js +2 -1
  23. package/esm2015/lib/shared/components/palette/case-flag/enums/select-flag-type-error-message.enum.js +3 -1
  24. package/esm2015/lib/shared/components/palette/case-flag/enums/update-flag-error-message.enum.js +3 -1
  25. package/esm2015/lib/shared/components/palette/case-flag/enums/update-flag-step.enum.js +5 -3
  26. package/esm2015/lib/shared/components/palette/case-flag/read-case-flag-field.component.js +3 -1
  27. package/esm2015/lib/shared/components/palette/case-flag/write-case-flag-field.component.js +30 -13
  28. package/esm2015/lib/shared/components/palette/palette.module.js +2 -2
  29. package/esm2015/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-options/qualifying-question-options.component.js +70 -27
  30. package/esm2015/lib/shared/services/fields/fields.utils.js +15 -1
  31. package/esm2015/lib/shared/services/form/form-value.service.js +14 -11
  32. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +781 -461
  33. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  34. package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts.map +1 -1
  35. package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit-titles.enum.d.ts +6 -0
  36. package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit-titles.enum.d.ts.map +1 -0
  37. package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts +1 -1
  38. package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts.map +1 -1
  39. package/lib/shared/components/case-editor/services/valid-page-list-caseFields.service.d.ts +6 -1
  40. package/lib/shared/components/case-editor/services/valid-page-list-caseFields.service.d.ts.map +1 -1
  41. package/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.d.ts +3 -1
  42. package/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.d.ts.map +1 -1
  43. package/lib/shared/components/palette/case-flag/components/case-flag-summary-list/case-flag-summary-list.component.d.ts +7 -7
  44. package/lib/shared/components/palette/case-flag/components/case-flag-summary-list/case-flag-summary-list.component.d.ts.map +1 -1
  45. package/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.d.ts.map +1 -1
  46. package/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.d.ts +2 -1
  47. package/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.d.ts.map +1 -1
  48. package/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.d.ts +6 -2
  49. package/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.d.ts.map +1 -1
  50. package/lib/shared/components/palette/case-flag/enums/add-comments-error-message.enum.d.ts +1 -0
  51. package/lib/shared/components/palette/case-flag/enums/add-comments-error-message.enum.d.ts.map +1 -1
  52. package/lib/shared/components/palette/case-flag/enums/add-comments-step.enum.d.ts +1 -0
  53. package/lib/shared/components/palette/case-flag/enums/add-comments-step.enum.d.ts.map +1 -1
  54. package/lib/shared/components/palette/case-flag/enums/case-flag-check-your-answers-step.enum.d.ts +11 -0
  55. package/lib/shared/components/palette/case-flag/enums/case-flag-check-your-answers-step.enum.d.ts.map +1 -0
  56. package/lib/shared/components/palette/case-flag/enums/case-flag-display-context-parameter.enum.d.ts +7 -1
  57. package/lib/shared/components/palette/case-flag/enums/case-flag-display-context-parameter.enum.d.ts.map +1 -1
  58. package/lib/shared/components/palette/case-flag/enums/case-flag-wizard-step-title.enum.d.ts +4 -1
  59. package/lib/shared/components/palette/case-flag/enums/case-flag-wizard-step-title.enum.d.ts.map +1 -1
  60. package/lib/shared/components/palette/case-flag/enums/index.d.ts +1 -0
  61. package/lib/shared/components/palette/case-flag/enums/index.d.ts.map +1 -1
  62. package/lib/shared/components/palette/case-flag/enums/select-flag-type-error-message.enum.d.ts +2 -0
  63. package/lib/shared/components/palette/case-flag/enums/select-flag-type-error-message.enum.d.ts.map +1 -1
  64. package/lib/shared/components/palette/case-flag/enums/update-flag-error-message.enum.d.ts +3 -1
  65. package/lib/shared/components/palette/case-flag/enums/update-flag-error-message.enum.d.ts.map +1 -1
  66. package/lib/shared/components/palette/case-flag/enums/update-flag-step.enum.d.ts +4 -2
  67. package/lib/shared/components/palette/case-flag/enums/update-flag-step.enum.d.ts.map +1 -1
  68. package/lib/shared/components/palette/case-flag/read-case-flag-field.component.d.ts.map +1 -1
  69. package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts +2 -0
  70. package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts.map +1 -1
  71. package/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-options/qualifying-question-options.component.d.ts +9 -1
  72. package/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-options/qualifying-question-options.component.d.ts.map +1 -1
  73. package/lib/shared/services/fields/fields.utils.d.ts +1 -0
  74. package/lib/shared/services/fields/fields.utils.d.ts.map +1 -1
  75. package/lib/shared/services/form/form-value.service.d.ts.map +1 -1
  76. package/package.json +1 -1
@@ -144,14 +144,14 @@
144
144
  }
145
145
  }
146
146
  var _c0$12 = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
147
- var _c1$s = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
147
+ var _c1$t = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
148
148
  var FooterComponent = /** @class */ (function () {
149
149
  function FooterComponent() {
150
150
  }
151
151
  return FooterComponent;
152
152
  }());
153
153
  FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
154
- FooterComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$s, 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) {
154
+ FooterComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$t, 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) {
155
155
  if (rf & 1) {
156
156
  i0__namespace.ɵɵprojectionDef(_c0$12);
157
157
  i0__namespace.ɵɵelementStart(0, "footer", 0);
@@ -240,7 +240,7 @@
240
240
  }
241
241
  }
242
242
  var _c0$11 = [[["", "headerNavigation", ""]]];
243
- var _c1$r = ["[headerNavigation]"];
243
+ var _c1$s = ["[headerNavigation]"];
244
244
  var HeaderBarComponent = /** @class */ (function () {
245
245
  function HeaderBarComponent() {
246
246
  this.signOutRequest = new i0.EventEmitter();
@@ -251,7 +251,7 @@
251
251
  return HeaderBarComponent;
252
252
  }());
253
253
  HeaderBarComponent.ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
254
- HeaderBarComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$r, decls: 17, vars: 14, consts: [["role", "banner", "id", "global-header", 1, "with-proposition"], [1, "header-wrapper"], [1, "header-global"], [4, "ngIf"], ["class", "global-header", 4, "ngIf"], [1, "header-proposition"], [1, "content"], ["href", "#proposition-links", 1, "js-header-toggle", "menu"], ["id", "proposition-menu", 4, "ngIf"], [1, "proposition-right"], ["id", "user-name"], ["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) {
254
+ HeaderBarComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$s, decls: 17, vars: 14, consts: [["role", "banner", "id", "global-header", 1, "with-proposition"], [1, "header-wrapper"], [1, "header-global"], [4, "ngIf"], ["class", "global-header", 4, "ngIf"], [1, "header-proposition"], [1, "content"], ["href", "#proposition-links", 1, "js-header-toggle", "menu"], ["id", "proposition-menu", 4, "ngIf"], [1, "proposition-right"], ["id", "user-name"], ["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) {
255
255
  if (rf & 1) {
256
256
  i0__namespace.ɵɵprojectionDef(_c0$11);
257
257
  i0__namespace.ɵɵelementStart(0, "header", 0);
@@ -321,14 +321,14 @@
321
321
  })();
322
322
 
323
323
  var _c0$10 = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
324
- var _c1$q = ["[leftNavLinks]", "[rightNavLinks]"];
324
+ var _c1$r = ["[leftNavLinks]", "[rightNavLinks]"];
325
325
  var NavigationComponent = /** @class */ (function () {
326
326
  function NavigationComponent() {
327
327
  }
328
328
  return NavigationComponent;
329
329
  }());
330
330
  NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
331
- NavigationComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$q, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) {
331
+ NavigationComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$r, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) {
332
332
  if (rf & 1) {
333
333
  i0__namespace.ɵɵprojectionDef(_c0$10);
334
334
  i0__namespace.ɵɵelementStart(0, "div");
@@ -487,14 +487,14 @@
487
487
  })();
488
488
 
489
489
  var _c0$$ = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
490
- var _c1$p = ["[topBody]", "[leftBody]", "[rightBody]"];
490
+ var _c1$q = ["[topBody]", "[leftBody]", "[rightBody]"];
491
491
  var BodyComponent = /** @class */ (function () {
492
492
  function BodyComponent() {
493
493
  }
494
494
  return BodyComponent;
495
495
  }());
496
496
  BodyComponent.ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
497
- BodyComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$p, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) {
497
+ BodyComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$q, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) {
498
498
  if (rf & 1) {
499
499
  i0__namespace.ɵɵprojectionDef(_c0$$);
500
500
  i0__namespace.ɵɵelementStart(0, "div", 0);
@@ -1683,14 +1683,14 @@
1683
1683
  })();
1684
1684
 
1685
1685
  var _c0$Y = function (a0) { return { "js-hidden": a0 }; };
1686
- var _c1$o = ["*"];
1686
+ var _c1$p = ["*"];
1687
1687
  var TabComponent = /** @class */ (function () {
1688
1688
  function TabComponent() {
1689
1689
  }
1690
1690
  return TabComponent;
1691
1691
  }());
1692
1692
  TabComponent.ɵfac = function TabComponent_Factory(t) { return new (t || TabComponent)(); };
1693
- TabComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c1$o, decls: 2, vars: 5, consts: [["role", "tabpanel", 1, "tabs-panel", 3, "id", "ngClass"]], template: function TabComponent_Template(rf, ctx) {
1693
+ TabComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c1$p, decls: 2, vars: 5, consts: [["role", "tabpanel", 1, "tabs-panel", 3, "id", "ngClass"]], template: function TabComponent_Template(rf, ctx) {
1694
1694
  if (rf & 1) {
1695
1695
  i0__namespace.ɵɵprojectionDef();
1696
1696
  i0__namespace.ɵɵelementStart(0, "div", 0);
@@ -1722,7 +1722,7 @@
1722
1722
  })();
1723
1723
 
1724
1724
  var _c0$X = ["tab"];
1725
- var _c1$n = function () { return ["."]; };
1725
+ var _c1$o = function () { return ["."]; };
1726
1726
  var _c2$3 = function (a0) { return { "tabs-toggle-selected": a0 }; };
1727
1727
  function TabsComponent_li_2_Template(rf, ctx) {
1728
1728
  if (rf & 1) {
@@ -1738,7 +1738,7 @@
1738
1738
  if (rf & 2) {
1739
1739
  var panel_r1 = ctx.$implicit;
1740
1740
  i0__namespace.ɵɵadvance(1);
1741
- i0__namespace.ɵɵproperty("routerLink", i0__namespace.ɵɵpureFunction0(8, _c1$n))("fragment", panel_r1.id)("ngClass", i0__namespace.ɵɵpureFunction1(9, _c2$3, panel_r1.selected));
1741
+ i0__namespace.ɵɵproperty("routerLink", i0__namespace.ɵɵpureFunction0(8, _c1$o))("fragment", panel_r1.id)("ngClass", i0__namespace.ɵɵpureFunction1(9, _c2$3, panel_r1.selected));
1742
1742
  i0__namespace.ɵɵattribute("aria-controls", panel_r1.id)("aria-selected", panel_r1.selected);
1743
1743
  i0__namespace.ɵɵadvance(2);
1744
1744
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 6, panel_r1.title));
@@ -4554,6 +4554,20 @@
4554
4554
  }
4555
4555
  return activeCount;
4556
4556
  };
4557
+ FieldsUtils.getValidationErrorMessageForFlagLauncherCaseField = function (caseField) {
4558
+ switch (caseField.display_context_parameter) {
4559
+ case '#ARGUMENT(CREATE)':
4560
+ return 'Please select Next to complete the creation of the case flag';
4561
+ case '#ARGUMENT(CREATE,EXTERNAL)':
4562
+ return 'Please select Next to complete the creation of the support request';
4563
+ case '#ARGUMENT(UPDATE)':
4564
+ return 'Please select Next to complete the update of the selected case flag';
4565
+ case '#ARGUMENT(UPDATE,EXTERNAL)':
4566
+ return 'Please select Next to complete the update of the selected support request';
4567
+ default:
4568
+ return '';
4569
+ }
4570
+ };
4557
4571
  FieldsUtils.prototype.buildCanShowPredicate = function (eventTrigger, form) {
4558
4572
  var currentState = this.getCurrentEventState(eventTrigger, form);
4559
4573
  return function (page) {
@@ -6516,8 +6530,8 @@
6516
6530
  try {
6517
6531
  for (var caseFields_4 = __values(caseFields), caseFields_4_1 = caseFields_4.next(); !caseFields_4_1.done; caseFields_4_1 = caseFields_4.next()) {
6518
6532
  var field = caseFields_4_1.value;
6519
- if (field.field_type.type === 'Collection' && field.field_type.min > 0 && data[field.id] &&
6520
- Array.isArray(data[field.id]) && data[field.id].length === 0) {
6533
+ if (field.field_type.type === 'Collection' && typeof field.field_type.min === 'number' && field.field_type.min > 0 &&
6534
+ data[field.id] && Array.isArray(data[field.id]) && data[field.id].length === 0) {
6521
6535
  delete data[field.id];
6522
6536
  }
6523
6537
  }
@@ -6581,17 +6595,20 @@
6581
6595
  // See https://tools.hmcts.net/jira/browse/EUI-7377
6582
6596
  if (data.hasOwnProperty(caseField.id) && caseField.value) {
6583
6597
  // Create new object for the CaseField ID within the data object, if necessary (i.e. if the current value
6584
- // is falsy)
6598
+ // is falsy); populate from the corresponding CaseField
6585
6599
  if (!data[caseField.id]) {
6586
6600
  data[caseField.id] = {};
6601
+ Object.keys(caseField.value).forEach(function (key) { return data[caseField.id][key] = caseField.value[key]; });
6602
+ }
6603
+ else {
6604
+ // Copy all values from the corresponding CaseField; this ensures all nested flag data (for example, a
6605
+ // Flags field within a Complex field or a collection of Complex fields) is copied across
6606
+ Object.keys(data[caseField.id]).forEach(function (key) {
6607
+ if (caseField.value.hasOwnProperty(key)) {
6608
+ data[caseField.id][key] = caseField.value[key];
6609
+ }
6610
+ });
6587
6611
  }
6588
- // Copy all values from the corresponding CaseField; this ensures all nested flag data (for example, a
6589
- // Flags field within a Complex field or a collection of Complex fields) is copied across
6590
- Object.keys(data[caseField.id]).forEach(function (key) {
6591
- if (caseField.value.hasOwnProperty(key)) {
6592
- data[caseField.id][key] = caseField.value[key];
6593
- }
6594
- });
6595
6612
  }
6596
6613
  });
6597
6614
  }
@@ -9904,13 +9921,20 @@
9904
9921
  })();
9905
9922
 
9906
9923
  var ValidPageListCaseFieldsService = /** @class */ (function () {
9907
- function ValidPageListCaseFieldsService() {
9924
+ function ValidPageListCaseFieldsService(fieldsUtils) {
9925
+ this.fieldsUtils = fieldsUtils;
9908
9926
  }
9909
- ValidPageListCaseFieldsService.prototype.deleteNonValidatedFields = function (validPageList, data, notFromEventSubmit, fromPreviousPage) {
9927
+ ValidPageListCaseFieldsService.prototype.isShown = function (page, eventTriggerFields, data) {
9928
+ var fields = this.fieldsUtils
9929
+ .mergeCaseFieldsAndFormFields(eventTriggerFields, data);
9930
+ return page.parsedShowCondition.match(fields);
9931
+ };
9932
+ ValidPageListCaseFieldsService.prototype.deleteNonValidatedFields = function (validPageList, data, eventTriggerFields, fromPreviousPage) {
9933
+ var _this = this;
9910
9934
  if (fromPreviousPage === void 0) { fromPreviousPage = false; }
9911
9935
  var validPageListCaseFields = [];
9912
9936
  validPageList.forEach(function (page) {
9913
- if (notFromEventSubmit || ShowCondition.getInstance(page.show_condition).match(data)) {
9937
+ if (_this.isShown(page, eventTriggerFields, data)) {
9914
9938
  page.case_fields.forEach(function (field) { return validPageListCaseFields.push(field); });
9915
9939
  }
9916
9940
  });
@@ -9918,19 +9942,18 @@
9918
9942
  Object.keys(data).forEach(function (key) {
9919
9943
  if (validPageListCaseFields.findIndex(function (element) { return element.id === key; }) < 0) {
9920
9944
  delete data[key];
9921
- ;
9922
9945
  }
9923
9946
  });
9924
9947
  }
9925
9948
  };
9926
9949
  return ValidPageListCaseFieldsService;
9927
9950
  }());
9928
- ValidPageListCaseFieldsService.ɵfac = function ValidPageListCaseFieldsService_Factory(t) { return new (t || ValidPageListCaseFieldsService)(); };
9951
+ ValidPageListCaseFieldsService.ɵfac = function ValidPageListCaseFieldsService_Factory(t) { return new (t || ValidPageListCaseFieldsService)(i0__namespace.ɵɵinject(FieldsUtils)); };
9929
9952
  ValidPageListCaseFieldsService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: ValidPageListCaseFieldsService, factory: ValidPageListCaseFieldsService.ɵfac });
9930
9953
  (function () {
9931
9954
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ValidPageListCaseFieldsService, [{
9932
9955
  type: i0.Injectable
9933
- }], null, null);
9956
+ }], function () { return [{ type: FieldsUtils }]; }, null);
9934
9957
  })();
9935
9958
 
9936
9959
  var CaseEditComponent = /** @class */ (function () {
@@ -10122,7 +10145,7 @@
10122
10145
  // Remove "Launcher"-type fields (these have no values and are not intended to be persisted)
10123
10146
  this.formValueService.removeCaseFieldsOfType(caseEventData.data, eventTrigger.case_fields, ['FlagLauncher', 'ComponentLauncher']);
10124
10147
  // delete fields which are not part of the case event journey wizard pages case fields
10125
- this.validPageListCaseFieldsService.deleteNonValidatedFields(this.validPageList, caseEventData.data, false);
10148
+ this.validPageListCaseFieldsService.deleteNonValidatedFields(this.validPageList, caseEventData.data, eventTrigger.case_fields, false);
10126
10149
  caseEventData.event_token = eventTrigger.event_token;
10127
10150
  caseEventData.ignore_warning = this.ignoreWarning;
10128
10151
  if (this.confirmation) {
@@ -11175,18 +11198,9 @@
11175
11198
  });
11176
11199
  }
11177
11200
  else if (FieldsUtils.isCaseFieldOfType(casefield, ['FlagLauncher'])) {
11178
- // Check whether the case field DisplayContextParameter is signalling "create" mode or "update" mode
11179
- // (expected always to be one of the two), to set the correct error message
11180
- var action = '';
11181
- if (casefield.display_context_parameter === '#ARGUMENT(CREATE)') {
11182
- action = 'creation';
11183
- }
11184
- else if (casefield.display_context_parameter === '#ARGUMENT(UPDATE)') {
11185
- action = 'update';
11186
- }
11187
11201
  _this.validationErrors.push({
11188
11202
  id: id_1,
11189
- message: "Please select Next to complete the " + action + " of the " + (action === 'update' ? 'selected ' : '') + "case flag"
11203
+ message: FieldsUtils.getValidationErrorMessageForFlagLauncherCaseField(casefield)
11190
11204
  });
11191
11205
  }
11192
11206
  else {
@@ -11497,7 +11511,7 @@
11497
11511
  // Get hold of the CaseEventData.
11498
11512
  var caseEventData = this.formValueService.sanitise(formFields);
11499
11513
  // delete fields which are not part of the case event journey wizard pages case fields
11500
- this.validPageListCaseFieldsService.deleteNonValidatedFields(this.caseEdit.validPageList, caseEventData.data, true, fromPreviousPage);
11514
+ this.validPageListCaseFieldsService.deleteNonValidatedFields(this.caseEdit.validPageList, caseEventData.data, this.eventTrigger.case_fields, fromPreviousPage);
11501
11515
  // Tidy it up before we return it.
11502
11516
  this.formValueService.removeUnnecessaryFields(caseEventData.data, caseFields, clearEmpty, clearNonCase, fromPreviousPage, this.currentPage.case_fields);
11503
11517
  return caseEventData;
@@ -12148,7 +12162,7 @@
12148
12162
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, "Enter the Postcode"));
12149
12163
  }
12150
12164
  }
12151
- var _c1$m = function (a0) { return { "form-group-error": a0 }; };
12165
+ var _c1$n = function (a0) { return { "form-group-error": a0 }; };
12152
12166
  var _c2$2 = function (a0) { return { "govuk-input--error": a0 }; };
12153
12167
  function WriteAddressFieldComponent_div_1_div_5_Template(rf, ctx) {
12154
12168
  if (rf & 1) {
@@ -12171,7 +12185,7 @@
12171
12185
  }
12172
12186
  if (rf & 2) {
12173
12187
  var ctx_r2 = i0__namespace.ɵɵnextContext(2);
12174
- i0__namespace.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0__namespace.ɵɵpureFunction1(13, _c1$m, ctx_r2.missingPostcode));
12188
+ i0__namespace.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0__namespace.ɵɵpureFunction1(13, _c1$n, ctx_r2.missingPostcode));
12175
12189
  i0__namespace.ɵɵadvance(1);
12176
12190
  i0__namespace.ɵɵproperty("for", ctx_r2.createElementId("postcodeInput"));
12177
12191
  i0__namespace.ɵɵadvance(2);
@@ -12673,23 +12687,43 @@
12673
12687
  exports.AddCommentsErrorMessage = void 0;
12674
12688
  (function (AddCommentsErrorMessage) {
12675
12689
  AddCommentsErrorMessage["FLAG_COMMENTS_NOT_ENTERED"] = "Please enter comments for this flag";
12690
+ AddCommentsErrorMessage["FLAG_COMMENTS_NOT_ENTERED_EXTERNAL"] = "Please enter comments for this support request";
12676
12691
  AddCommentsErrorMessage["FLAG_COMMENTS_CHAR_LIMIT_EXCEEDED"] = "Comments for this flag must be 200 characters or fewer";
12677
12692
  })(exports.AddCommentsErrorMessage || (exports.AddCommentsErrorMessage = {}));
12678
12693
 
12679
12694
  exports.AddCommentsStep = void 0;
12680
12695
  (function (AddCommentsStep) {
12681
12696
  AddCommentsStep["HINT_TEXT"] = "Explain why you are creating this flag. Do not include any sensitive information such as personal details.";
12697
+ AddCommentsStep["HINT_TEXT_EXTERNAL"] = "Explain why you are creating this support request. Do not include any sensitive information such as personal details.";
12682
12698
  AddCommentsStep["CHARACTER_LIMIT_INFO"] = "You can enter up to 200 characters";
12683
12699
  AddCommentsStep["WARNING_TEXT"] = "The details entered here MAY be visible to the party in the future.";
12684
12700
  })(exports.AddCommentsStep || (exports.AddCommentsStep = {}));
12685
12701
 
12702
+ exports.CaseFlagCheckYourAnswersPageStep = void 0;
12703
+ (function (CaseFlagCheckYourAnswersPageStep) {
12704
+ CaseFlagCheckYourAnswersPageStep["CASE_LEVEL_LOCATION"] = "Case level";
12705
+ CaseFlagCheckYourAnswersPageStep["ADD_FLAG_HEADER_TEXT"] = "Add flag to";
12706
+ CaseFlagCheckYourAnswersPageStep["ADD_FLAG_HEADER_TEXT_EXTERNAL"] = "Add support to";
12707
+ CaseFlagCheckYourAnswersPageStep["UPDATE_FLAG_HEADER_TEXT"] = "Update flag for";
12708
+ CaseFlagCheckYourAnswersPageStep["UPDATE_FLAG_HEADER_TEXT_EXTERNAL"] = "Update support for";
12709
+ CaseFlagCheckYourAnswersPageStep["FLAG_TYPE_HEADER_TEXT"] = "Flag type";
12710
+ CaseFlagCheckYourAnswersPageStep["FLAG_TYPE_HEADER_TEXT_EXTERNAL"] = "Support type";
12711
+ CaseFlagCheckYourAnswersPageStep["NONE"] = "";
12712
+ })(exports.CaseFlagCheckYourAnswersPageStep || (exports.CaseFlagCheckYourAnswersPageStep = {}));
12713
+
12714
+ /**
12715
+ * Create and update contexts for external users are, by definition, part of Case Flags 2.1 - thus there is no enum
12716
+ * value for these.
12717
+ */
12686
12718
  exports.CaseFlagDisplayContextParameter = void 0;
12687
12719
  (function (CaseFlagDisplayContextParameter) {
12688
12720
  CaseFlagDisplayContextParameter["CREATE"] = "#ARGUMENT(CREATE)";
12689
12721
  CaseFlagDisplayContextParameter["CREATE_EXTERNAL"] = "#ARGUMENT(CREATE,EXTERNAL)";
12722
+ CaseFlagDisplayContextParameter["CREATE_2_POINT_1"] = "#ARGUMENT(CREATE,VERSION2.1)";
12690
12723
  CaseFlagDisplayContextParameter["READ_EXTERNAL"] = "#ARGUMENT(READ,EXTERNAL)";
12691
12724
  CaseFlagDisplayContextParameter["UPDATE"] = "#ARGUMENT(UPDATE)";
12692
12725
  CaseFlagDisplayContextParameter["UPDATE_EXTERNAL"] = "#ARGUMENT(UPDATE,EXTERNAL)";
12726
+ CaseFlagDisplayContextParameter["UPDATE_2_POINT_1"] = "#ARGUMENT(UPDATE,VERSION2.1)";
12693
12727
  })(exports.CaseFlagDisplayContextParameter || (exports.CaseFlagDisplayContextParameter = {}));
12694
12728
 
12695
12729
  exports.CaseFlagFormFields = void 0;
@@ -12716,6 +12750,9 @@
12716
12750
  CaseFlagWizardStepTitle["SELECT_FLAG_LOCATION"] = "Where should this flag be added?";
12717
12751
  CaseFlagWizardStepTitle["SELECT_FLAG_LOCATION_EXTERNAL"] = "Who is the support for?";
12718
12752
  CaseFlagWizardStepTitle["SELECT_CASE_FLAG"] = "Select flag type";
12753
+ CaseFlagWizardStepTitle["SELECT_CASE_FLAG_EXTERNAL"] = "Select support type";
12754
+ CaseFlagWizardStepTitle["OTHER_FLAG_TYPE_DESCRIPTION"] = "Enter a flag type";
12755
+ CaseFlagWizardStepTitle["OTHER_FLAG_TYPE_DESCRIPTION_EXTERNAL"] = "Enter a support type";
12719
12756
  CaseFlagWizardStepTitle["ADD_FLAG_COMMENTS"] = "Add comments for this flag";
12720
12757
  CaseFlagWizardStepTitle["ADD_FLAG_COMMENTS_EXTERNAL_MODE"] = "Tell us more about the request";
12721
12758
  CaseFlagWizardStepTitle["CONFIRM_FLAG_STATUS"] = "Confirm the status of the flag";
@@ -12723,7 +12760,7 @@
12723
12760
  CaseFlagWizardStepTitle["MANAGE_CASE_FLAGS"] = "Manage case flags";
12724
12761
  CaseFlagWizardStepTitle["MANAGE_SUPPORT"] = "Which support is no longer needed?";
12725
12762
  CaseFlagWizardStepTitle["UPDATE_FLAG_TITLE"] = "Update flag";
12726
- CaseFlagWizardStepTitle["UPDATE_FLAG_TITLE_SUPPORT"] = "Tell us why the support is no longer needed";
12763
+ CaseFlagWizardStepTitle["UPDATE_FLAG_TITLE_EXTERNAL"] = "Tell us why the support is no longer needed";
12727
12764
  CaseFlagWizardStepTitle["UPDATE_FLAG_ADD_TRANSLATION"] = "Add translations to flag";
12728
12765
  CaseFlagWizardStepTitle["NONE"] = "";
12729
12766
  })(exports.CaseFlagWizardStepTitle || (exports.CaseFlagWizardStepTitle = {}));
@@ -12771,8 +12808,10 @@
12771
12808
  exports.SelectFlagTypeErrorMessage = void 0;
12772
12809
  (function (SelectFlagTypeErrorMessage) {
12773
12810
  SelectFlagTypeErrorMessage["FLAG_TYPE_NOT_SELECTED"] = "Please select a flag type";
12811
+ SelectFlagTypeErrorMessage["FLAG_TYPE_NOT_SELECTED_EXTERNAL"] = "Please select a support type";
12774
12812
  SelectFlagTypeErrorMessage["FLAG_TYPE_OPTION_NOT_SELECTED"] = "Select an option";
12775
12813
  SelectFlagTypeErrorMessage["FLAG_TYPE_NOT_ENTERED"] = "Please enter a flag type";
12814
+ SelectFlagTypeErrorMessage["FLAG_TYPE_NOT_ENTERED_EXTERNAL"] = "Please enter a support type";
12776
12815
  SelectFlagTypeErrorMessage["FLAG_TYPE_LIMIT_EXCEEDED"] = "You can enter up to 80 characters only";
12777
12816
  })(exports.SelectFlagTypeErrorMessage || (exports.SelectFlagTypeErrorMessage = {}));
12778
12817
 
@@ -12793,14 +12832,18 @@
12793
12832
  UpdateFlagErrorMessage["FLAG_COMMENTS_NOT_ENTERED"] = "Please enter comments for this flag";
12794
12833
  UpdateFlagErrorMessage["FLAG_COMMENTS_CHAR_LIMIT_EXCEEDED"] = "Comments for this flag must be 200 characters or fewer";
12795
12834
  UpdateFlagErrorMessage["STATUS_REASON_NOT_ENTERED"] = "Comments and/or the name of the person approving the decision should be entered";
12835
+ UpdateFlagErrorMessage["STATUS_REASON_NOT_ENTERED_EXTERNAL"] = "You must explain why the support is no longer needed";
12796
12836
  UpdateFlagErrorMessage["STATUS_REASON_CHAR_LIMIT_EXCEEDED"] = "Comments must be 200 characters or fewer";
12837
+ UpdateFlagErrorMessage["NONE"] = "";
12797
12838
  })(exports.UpdateFlagErrorMessage || (exports.UpdateFlagErrorMessage = {}));
12798
12839
 
12799
12840
  exports.UpdateFlagStep = void 0;
12800
12841
  (function (UpdateFlagStep) {
12801
- 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.";
12842
+ UpdateFlagStep["COMMENT_HINT_TEXT_INTERNAL"] = "Explain why you are updating this flag. Do not include any sensitive information such as personal details.";
12843
+ UpdateFlagStep["COMMENT_HINT_TEXT_INTERNAL_2_POINT_1"] = "Update the comments describing the user's support needs or flag description. Do not include any sensitive information such as personal details.";
12844
+ UpdateFlagStep["COMMENT_HINT_TEXT_EXTERNAL"] = "Do not include any sensitive information such as personal details.";
12802
12845
  UpdateFlagStep["CHARACTER_LIMIT_INFO"] = "You can enter up to 200 characters";
12803
- UpdateFlagStep["STATUS_HINT_TEXT"] = "Describe reason for status change; if choosing 'Not approved' provide name of person approving decision.";
12846
+ UpdateFlagStep["STATUS_HINT_TEXT"] = "Describe reason for status change.";
12804
12847
  UpdateFlagStep["WARNING_TEXT"] = "The details entered here MAY be visible to the party in the future.";
12805
12848
  })(exports.UpdateFlagStep || (exports.UpdateFlagStep = {}));
12806
12849
 
@@ -13050,6 +13093,7 @@
13050
13093
  // The FlagLauncher component holds a reference (selectedFlagsLocation) containing the CaseField instance to
13051
13094
  // which the new flag has been added
13052
13095
  if ((flagLauncherComponent.caseField.display_context_parameter === exports.CaseFlagDisplayContextParameter.CREATE ||
13096
+ flagLauncherComponent.caseField.display_context_parameter === exports.CaseFlagDisplayContextParameter.CREATE_2_POINT_1 ||
13053
13097
  flagLauncherComponent.caseField.display_context_parameter === exports.CaseFlagDisplayContextParameter.CREATE_EXTERNAL)
13054
13098
  && flagLauncherComponent.selectedFlagsLocation) {
13055
13099
  this.pathToFlagsFormGroup = flagLauncherComponent.selectedFlagsLocation.pathToFlagsFormGroup;
@@ -13058,6 +13102,7 @@
13058
13102
  // Manage Case Flags journey
13059
13103
  }
13060
13104
  else if ((flagLauncherComponent.caseField.display_context_parameter === exports.CaseFlagDisplayContextParameter.UPDATE ||
13105
+ flagLauncherComponent.caseField.display_context_parameter === exports.CaseFlagDisplayContextParameter.UPDATE_2_POINT_1 ||
13061
13106
  flagLauncherComponent.caseField.display_context_parameter === exports.CaseFlagDisplayContextParameter.UPDATE_EXTERNAL) &&
13062
13107
  flagLauncherComponent.selectedFlag) {
13063
13108
  this.flagForSummaryDisplay =
@@ -13187,7 +13232,7 @@
13187
13232
  if (rf & 2) {
13188
13233
  var ctx_r8 = i0__namespace.ɵɵnextContext(2);
13189
13234
  i0__namespace.ɵɵadvance(1);
13190
- i0__namespace.ɵɵproperty("formGroup", ctx_r8.caseFlagParentFormGroup)("jurisdiction", ctx_r8.jurisdiction)("caseTypeId", ctx_r8.caseTypeId)("hmctsServiceId", ctx_r8.hmctsServiceId)("isDisplayContextParameterExternal", ctx_r8.isDisplayContextParameterExternal)("selectedFlagsLocation", ctx_r8.selectedFlagsLocation);
13235
+ i0__namespace.ɵɵproperty("formGroup", ctx_r8.caseFlagParentFormGroup)("jurisdiction", ctx_r8.jurisdiction)("caseTypeId", ctx_r8.caseTypeId)("hmctsServiceId", ctx_r8.hmctsServiceId)("isDisplayContextParameterExternal", ctx_r8.isDisplayContextParameterExternal)("isDisplayContextParameter2Point1Enabled", ctx_r8.isDisplayContextParameter2Point1Enabled)("selectedFlagsLocation", ctx_r8.selectedFlagsLocation);
13191
13236
  }
13192
13237
  }
13193
13238
  function WriteCaseFlagFieldComponent_div_1_ng_container_4_Template(rf, ctx) {
@@ -13217,7 +13262,7 @@
13217
13262
  if (rf & 2) {
13218
13263
  var ctx_r10 = i0__namespace.ɵɵnextContext(2);
13219
13264
  i0__namespace.ɵɵadvance(1);
13220
- i0__namespace.ɵɵproperty("formGroup", ctx_r10.caseFlagParentFormGroup)("optional", ctx_r10.flagCommentsOptional)("isDisplayContextParameterExternal", ctx_r10.isDisplayContextParameterExternal);
13265
+ i0__namespace.ɵɵproperty("formGroup", ctx_r10.caseFlagParentFormGroup)("optional", ctx_r10.flagCommentsOptional)("isDisplayContextParameterExternal", ctx_r10.isDisplayContextParameterExternal)("isDisplayContextParameter2Point1Enabled", ctx_r10.isDisplayContextParameter2Point1Enabled);
13221
13266
  }
13222
13267
  }
13223
13268
  function WriteCaseFlagFieldComponent_div_1_ng_container_6_Template(rf, ctx) {
@@ -13240,9 +13285,9 @@
13240
13285
  i0__namespace.ɵɵelementStart(0, "div", 8);
13241
13286
  i0__namespace.ɵɵelementStart(1, "div", 9);
13242
13287
  i0__namespace.ɵɵtemplate(2, WriteCaseFlagFieldComponent_div_1_ng_container_2_Template, 2, 3, "ng-container", 10);
13243
- i0__namespace.ɵɵtemplate(3, WriteCaseFlagFieldComponent_div_1_ng_container_3_Template, 2, 6, "ng-container", 10);
13288
+ i0__namespace.ɵɵtemplate(3, WriteCaseFlagFieldComponent_div_1_ng_container_3_Template, 2, 7, "ng-container", 10);
13244
13289
  i0__namespace.ɵɵtemplate(4, WriteCaseFlagFieldComponent_div_1_ng_container_4_Template, 2, 2, "ng-container", 10);
13245
- i0__namespace.ɵɵtemplate(5, WriteCaseFlagFieldComponent_div_1_ng_container_5_Template, 2, 3, "ng-container", 10);
13290
+ i0__namespace.ɵɵtemplate(5, WriteCaseFlagFieldComponent_div_1_ng_container_5_Template, 2, 4, "ng-container", 10);
13246
13291
  i0__namespace.ɵɵtemplate(6, WriteCaseFlagFieldComponent_div_1_ng_container_6_Template, 2, 2, "ng-container", 10);
13247
13292
  i0__namespace.ɵɵelementEnd();
13248
13293
  i0__namespace.ɵɵelementEnd();
@@ -13432,6 +13477,8 @@
13432
13477
  this.isDisplayContextParameterUpdate = this.setDisplayContextParameterUpdate(this.displayContextParameter);
13433
13478
  // Set boolean indicating the display_context_parameter is "external"
13434
13479
  this.isDisplayContextParameterExternal = this.setDisplayContextParameterExternal(this.displayContextParameter);
13480
+ // Set boolean indicating the display_context_parameter is Case Flags v2.1 enabled
13481
+ this.isDisplayContextParameter2Point1Enabled = this.setDisplayContextParameter2Point1Enabled(this.displayContextParameter);
13435
13482
  // Set starting field state if fieldState not the right value
13436
13483
  if (!this.fieldState) {
13437
13484
  this.fieldState = this.isDisplayContextParameterUpdate ? exports.CaseFlagFieldState.FLAG_MANAGE_CASE_FLAGS : exports.CaseFlagFieldState.FLAG_LOCATION;
@@ -13447,12 +13494,17 @@
13447
13494
  };
13448
13495
  WriteCaseFlagFieldComponent.prototype.setDisplayContextParameterUpdate = function (displayContextParameter) {
13449
13496
  return displayContextParameter === exports.CaseFlagDisplayContextParameter.UPDATE ||
13450
- displayContextParameter === exports.CaseFlagDisplayContextParameter.UPDATE_EXTERNAL;
13497
+ displayContextParameter === exports.CaseFlagDisplayContextParameter.UPDATE_EXTERNAL ||
13498
+ displayContextParameter === exports.CaseFlagDisplayContextParameter.UPDATE_2_POINT_1;
13451
13499
  };
13452
13500
  WriteCaseFlagFieldComponent.prototype.setDisplayContextParameterExternal = function (displayContextParameter) {
13453
13501
  return displayContextParameter === exports.CaseFlagDisplayContextParameter.CREATE_EXTERNAL ||
13454
13502
  displayContextParameter === exports.CaseFlagDisplayContextParameter.UPDATE_EXTERNAL;
13455
13503
  };
13504
+ WriteCaseFlagFieldComponent.prototype.setDisplayContextParameter2Point1Enabled = function (displayContextParameter) {
13505
+ return displayContextParameter === exports.CaseFlagDisplayContextParameter.CREATE_2_POINT_1 ||
13506
+ displayContextParameter === exports.CaseFlagDisplayContextParameter.UPDATE_2_POINT_1;
13507
+ };
13456
13508
  WriteCaseFlagFieldComponent.prototype.onCaseFlagStateEmitted = function (caseFlagState) {
13457
13509
  this.caseEditDataService.clearFormValidationErrors();
13458
13510
  this.errorMessages = caseFlagState.errorMessages;
@@ -13480,11 +13532,15 @@
13480
13532
  caseFlagState.currentCaseFlagFieldState === exports.CaseFlagFieldState.FLAG_UPDATE;
13481
13533
  }
13482
13534
  // If the current state is one of:
13483
- // * CaseFlagFieldState.FLAG_STATUS
13535
+ // * CaseFlagFieldState.FLAG_STATUS AND Case Flags v2.1 is enabled
13536
+ // * CaseFlagFieldState.FLAG_COMMENTS AND Case Flags v2.1 is not enabled
13484
13537
  // * CaseFlagFieldState.FLAG_UPDATE and Welsh translation checkbox is not selected
13485
13538
  // * CaseFlagFieldState.FLAG_UPDATE_WELSH_TRANSLATION
13486
13539
  // then move to final review stage
13487
- return caseFlagState.currentCaseFlagFieldState === exports.CaseFlagFieldState.FLAG_STATUS ||
13540
+ return (caseFlagState.currentCaseFlagFieldState ===
13541
+ exports.CaseFlagFieldState.FLAG_STATUS && this.isDisplayContextParameter2Point1Enabled) ||
13542
+ (caseFlagState.currentCaseFlagFieldState ===
13543
+ exports.CaseFlagFieldState.FLAG_COMMENTS && !this.isDisplayContextParameter2Point1Enabled) ||
13488
13544
  (caseFlagState.currentCaseFlagFieldState === exports.CaseFlagFieldState.FLAG_UPDATE &&
13489
13545
  !((_a = this.caseFlagParentFormGroup.get(exports.CaseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED)) === null || _a === void 0 ? void 0 : _a.value)) ||
13490
13546
  caseFlagState.currentCaseFlagFieldState === exports.CaseFlagFieldState.FLAG_UPDATE_WELSH_TRANSLATION;
@@ -13510,7 +13566,7 @@
13510
13566
  this.addFlagToCollection();
13511
13567
  break;
13512
13568
  case exports.CaseFlagFieldState.FLAG_COMMENTS:
13513
- if (this.isDisplayContextParameterExternal) {
13569
+ if (this.isDisplayContextParameterExternal || !this.isDisplayContextParameter2Point1Enabled) {
13514
13570
  this.addFlagToCollection();
13515
13571
  }
13516
13572
  break;
@@ -13725,7 +13781,9 @@
13725
13781
  WriteCaseFlagFieldComponent.prototype.isAtFinalState = function () {
13726
13782
  return this.isDisplayContextParameterUpdate
13727
13783
  ? this.fieldState === this.manageFlagFinalState
13728
- : this.fieldState === exports.CaseFlagFieldState.FLAG_STATUS;
13784
+ : !this.isDisplayContextParameter2Point1Enabled
13785
+ ? this.fieldState === exports.CaseFlagFieldState.FLAG_COMMENTS
13786
+ : this.fieldState === exports.CaseFlagFieldState.FLAG_STATUS;
13729
13787
  };
13730
13788
  WriteCaseFlagFieldComponent.prototype.navigateToErrorElement = function (elementId) {
13731
13789
  if (elementId) {
@@ -13767,8 +13825,12 @@
13767
13825
  path: ((_f = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _f === void 0 ? void 0 : _f.Path) && ((_g = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _g === void 0 ? void 0 : _g.Path.map(function (pathValue) { return Object.assign({ id: null, value: pathValue }); })),
13768
13826
  hearingRelevant: ((_h = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _h === void 0 ? void 0 : _h.hearingRelevant) ? 'Yes' : 'No',
13769
13827
  flagCode: (_j = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _j === void 0 ? void 0 : _j.flagCode,
13770
- // Status should be set to whatever the default is for this flag type, if flag is being created by an external user
13771
- status: this.isDisplayContextParameterExternal ? (_k = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _k === void 0 ? void 0 : _k.defaultStatus : exports.CaseFlagStatus[formValues === null || formValues === void 0 ? void 0 : formValues.selectedStatus],
13828
+ // Status should be set to "Active" if Case Flags v2.1 is NOT enabled, otherwise it should be set to whatever
13829
+ // the default is for this flag type, if flag is being created by an external user
13830
+ status: !this.isDisplayContextParameter2Point1Enabled
13831
+ ? exports.CaseFlagStatus.ACTIVE
13832
+ : this.isDisplayContextParameterExternal
13833
+ ? (_k = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _k === void 0 ? void 0 : _k.defaultStatus : exports.CaseFlagStatus[formValues === null || formValues === void 0 ? void 0 : formValues.selectedStatus],
13772
13834
  availableExternally: ((_l = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _l === void 0 ? void 0 : _l.externallyAvailable) ? 'Yes' : 'No'
13773
13835
  };
13774
13836
  };
@@ -13807,7 +13869,7 @@
13807
13869
  return WriteCaseFlagFieldComponent;
13808
13870
  }(AbstractFieldWriteComponent));
13809
13871
  WriteCaseFlagFieldComponent.ɵfac = function WriteCaseFlagFieldComponent_Factory(t) { return new (t || WriteCaseFlagFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseEditDataService), i0__namespace.ɵɵdirectiveInject(CaseFlagStateService), i0__namespace.ɵɵdirectiveInject(i1__namespace.RpxTranslationService)); };
13810
- 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"], [4, "ngSwitchCase"], [3, "formGroup", "flagsData", "isDisplayContextParameterExternal", "caseFlagStateEmitter"], [3, "formGroup", "jurisdiction", "caseTypeId", "hmctsServiceId", "isDisplayContextParameterExternal", "selectedFlagsLocation", "caseFlagStateEmitter", "flagCommentsOptionalEmitter"], [3, "formGroup", "flagType", "caseFlagStateEmitter"], [3, "formGroup", "optional", "isDisplayContextParameterExternal", "caseFlagStateEmitter"], [3, "formGroup", "defaultStatus", "caseFlagStateEmitter"], [3, "formGroup", "flagsData", "caseTitle", "displayContextParameter", "caseFlagStateEmitter"], [3, "formGroup", "displayContextParameter", "caseFlagStateEmitter"], [3, "formGroup", "caseFlagStateEmitter"]], template: function WriteCaseFlagFieldComponent_Template(rf, ctx) {
13872
+ 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"], [4, "ngSwitchCase"], [3, "formGroup", "flagsData", "isDisplayContextParameterExternal", "caseFlagStateEmitter"], [3, "formGroup", "jurisdiction", "caseTypeId", "hmctsServiceId", "isDisplayContextParameterExternal", "isDisplayContextParameter2Point1Enabled", "selectedFlagsLocation", "caseFlagStateEmitter", "flagCommentsOptionalEmitter"], [3, "formGroup", "flagType", "caseFlagStateEmitter"], [3, "formGroup", "optional", "isDisplayContextParameterExternal", "isDisplayContextParameter2Point1Enabled", "caseFlagStateEmitter"], [3, "formGroup", "defaultStatus", "caseFlagStateEmitter"], [3, "formGroup", "flagsData", "caseTitle", "displayContextParameter", "caseFlagStateEmitter"], [3, "formGroup", "displayContextParameter", "caseFlagStateEmitter"], [3, "formGroup", "caseFlagStateEmitter"]], template: function WriteCaseFlagFieldComponent_Template(rf, ctx) {
13811
13873
  if (rf & 1) {
13812
13874
  i0__namespace.ɵɵtemplate(0, WriteCaseFlagFieldComponent_div_0_Template, 5, 4, "div", 0);
13813
13875
  i0__namespace.ɵɵtemplate(1, WriteCaseFlagFieldComponent_div_1_Template, 7, 7, "div", 1);
@@ -13955,7 +14017,7 @@
13955
14017
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.caseReferenceControl.errors, ctx_r2.caseField.label)), " ");
13956
14018
  }
13957
14019
  }
13958
- var _c1$l = function (a0) { return { "form-group-error": a0 }; };
14020
+ var _c1$m = function (a0) { return { "form-group-error": a0 }; };
13959
14021
  var WriteCaseLinkFieldComponent = /** @class */ (function (_super) {
13960
14022
  __extends(WriteCaseLinkFieldComponent, _super);
13961
14023
  function WriteCaseLinkFieldComponent() {
@@ -14039,7 +14101,7 @@
14039
14101
  i0__namespace.ɵɵelementEnd();
14040
14102
  }
14041
14103
  if (rf & 2) {
14042
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$l, !ctx.caseReferenceControl.valid && (ctx.caseReferenceControl.dirty || ctx.caseReferenceControl.touched)));
14104
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$m, !ctx.caseReferenceControl.valid && (ctx.caseReferenceControl.dirty || ctx.caseReferenceControl.touched)));
14043
14105
  i0__namespace.ɵɵadvance(1);
14044
14106
  i0__namespace.ɵɵproperty("for", ctx.id());
14045
14107
  i0__namespace.ɵɵadvance(1);
@@ -14084,7 +14146,7 @@
14084
14146
  i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction6(3, _c0$R, 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);
14085
14147
  }
14086
14148
  }
14087
- var _c1$k = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
14149
+ var _c1$l = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
14088
14150
  function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) {
14089
14151
  if (rf & 1) {
14090
14152
  i0__namespace.ɵɵelementStart(0, "tr");
@@ -14098,7 +14160,7 @@
14098
14160
  var i_r5 = ctx.index;
14099
14161
  var ctx_r3 = i0__namespace.ɵɵnextContext(3);
14100
14162
  i0__namespace.ɵɵadvance(2);
14101
- i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction5(4, _c1$k, i_r5, ctx_r3.caseField.label + " " + (i_r5 + 1), ctx_r3.caseField.field_type.collection_field_type, item_r4.value, ctx_r3.caseField.hidden))("context", ctx_r3.context)("topLevelFormGroup", ctx_r3.topLevelFormGroup)("idPrefix", ctx_r3.buildIdPrefix(i_r5));
14163
+ i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction5(4, _c1$l, i_r5, ctx_r3.caseField.label + " " + (i_r5 + 1), ctx_r3.caseField.field_type.collection_field_type, item_r4.value, ctx_r3.caseField.hidden))("context", ctx_r3.context)("topLevelFormGroup", ctx_r3.topLevelFormGroup)("idPrefix", ctx_r3.buildIdPrefix(i_r5));
14102
14164
  }
14103
14165
  }
14104
14166
  function ReadCollectionFieldComponent_table_0_tbody_3_Template(rf, ctx) {
@@ -15426,7 +15488,7 @@
15426
15488
  i0__namespace.ɵɵproperty("caseField", ctx_r2.caseField);
15427
15489
  }
15428
15490
  }
15429
- var _c1$j = function (a0) { return { "form-group-error bottom-30": a0 }; };
15491
+ var _c1$k = function (a0) { return { "form-group-error bottom-30": a0 }; };
15430
15492
  var WriteDocumentFieldComponent = /** @class */ (function (_super) {
15431
15493
  __extends(WriteDocumentFieldComponent, _super);
15432
15494
  function WriteDocumentFieldComponent(appConfig, caseNotifier, documentManagement, dialog, fileUploadStateService, jurisdictionService) {
@@ -15748,7 +15810,7 @@
15748
15810
  i0__namespace.ɵɵelementEnd();
15749
15811
  }
15750
15812
  if (rf & 2) {
15751
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(20, _c1$j, !ctx.valid));
15813
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(20, _c1$k, !ctx.valid));
15752
15814
  i0__namespace.ɵɵadvance(1);
15753
15815
  i0__namespace.ɵɵproperty("for", ctx.id());
15754
15816
  i0__namespace.ɵɵadvance(1);
@@ -16453,7 +16515,7 @@
16453
16515
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 7, radioButton_r5.label));
16454
16516
  }
16455
16517
  }
16456
- var _c1$i = function (a0) { return { "form-group-error": a0 }; };
16518
+ var _c1$j = function (a0) { return { "form-group-error": a0 }; };
16457
16519
  var WriteDynamicRadioListFieldComponent = /** @class */ (function (_super) {
16458
16520
  __extends(WriteDynamicRadioListFieldComponent, _super);
16459
16521
  function WriteDynamicRadioListFieldComponent() {
@@ -16500,7 +16562,7 @@
16500
16562
  i0__namespace.ɵɵelementEnd();
16501
16563
  }
16502
16564
  if (rf & 2) {
16503
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c1$i, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
16565
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c1$j, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
16504
16566
  i0__namespace.ɵɵadvance(3);
16505
16567
  i0__namespace.ɵɵproperty("for", ctx.id());
16506
16568
  i0__namespace.ɵɵadvance(1);
@@ -16611,7 +16673,7 @@
16611
16673
  }
16612
16674
  }
16613
16675
  var _c0$L = function (a0) { return { "form-group-error": a0 }; };
16614
- var _c1$h = function (a0) { return { "govuk-input--error": a0 }; };
16676
+ var _c1$i = function (a0) { return { "govuk-input--error": a0 }; };
16615
16677
  var WriteEmailFieldComponent = /** @class */ (function (_super) {
16616
16678
  __extends(WriteEmailFieldComponent, _super);
16617
16679
  function WriteEmailFieldComponent() {
@@ -16645,7 +16707,7 @@
16645
16707
  i0__namespace.ɵɵadvance(1);
16646
16708
  i0__namespace.ɵɵproperty("ngIf", ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched));
16647
16709
  i0__namespace.ɵɵadvance(1);
16648
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$h, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
16710
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$i, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
16649
16711
  }
16650
16712
  }, directives: [i5__namespace.NgClass, i5__namespace.NgIf, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlDirective], pipes: [i1__namespace.RpxTranslatePipe, FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
16651
16713
  var ɵWriteEmailFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteEmailFieldComponent);
@@ -16940,7 +17002,7 @@
16940
17002
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 7, radioButton_r4.label));
16941
17003
  }
16942
17004
  }
16943
- var _c1$g = function (a0) { return { "form-group-error": a0 }; };
17005
+ var _c1$h = function (a0) { return { "form-group-error": a0 }; };
16944
17006
  var WriteFixedRadioListFieldComponent = /** @class */ (function (_super) {
16945
17007
  __extends(WriteFixedRadioListFieldComponent, _super);
16946
17008
  function WriteFixedRadioListFieldComponent() {
@@ -16971,7 +17033,7 @@
16971
17033
  i0__namespace.ɵɵelementEnd();
16972
17034
  }
16973
17035
  if (rf & 2) {
16974
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$g, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
17036
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$h, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
16975
17037
  i0__namespace.ɵɵadvance(3);
16976
17038
  i0__namespace.ɵɵproperty("for", ctx.id());
16977
17039
  i0__namespace.ɵɵadvance(1);
@@ -17145,7 +17207,7 @@
17145
17207
  i0__namespace.ɵɵelementEnd();
17146
17208
  }
17147
17209
  }
17148
- var _c1$f = function (a0) { return { "form-group-error": a0 }; };
17210
+ var _c1$g = function (a0) { return { "form-group-error": a0 }; };
17149
17211
  var WriteJudicialUserFieldComponent = /** @class */ (function (_super) {
17150
17212
  __extends(WriteJudicialUserFieldComponent, _super);
17151
17213
  function WriteJudicialUserFieldComponent(jurisdictionService, sessionStorageService, caseFlagRefDataService, compoundPipe, validatorsService) {
@@ -17307,7 +17369,7 @@
17307
17369
  }
17308
17370
  if (rf & 2) {
17309
17371
  var _r3 = i0__namespace.ɵɵreference(7);
17310
- i0__namespace.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0__namespace.ɵɵpureFunction1(15, _c1$f, !!ctx.judicialUserControl && ctx.errors));
17372
+ i0__namespace.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0__namespace.ɵɵpureFunction1(15, _c1$g, !!ctx.judicialUserControl && ctx.errors));
17311
17373
  i0__namespace.ɵɵadvance(1);
17312
17374
  i0__namespace.ɵɵproperty("for", ctx.id());
17313
17375
  i0__namespace.ɵɵadvance(1);
@@ -18174,7 +18236,7 @@
18174
18236
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, reason_r19));
18175
18237
  }
18176
18238
  }
18177
- var _c1$e = function (a0) { return { "table-group-error": a0 }; };
18239
+ var _c1$f = function (a0) { return { "table-group-error": a0 }; };
18178
18240
  function LinkCasesComponent_tr_31_Template(rf, ctx) {
18179
18241
  if (rf & 1) {
18180
18242
  var _r21_1 = i0__namespace.ɵɵgetCurrentView();
@@ -18212,7 +18274,7 @@
18212
18274
  var case_r16 = ctx.$implicit;
18213
18275
  var ctx_r2 = i0__namespace.ɵɵnextContext();
18214
18276
  i0__namespace.ɵɵadvance(2);
18215
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(12, _c1$e, ctx_r2.caseSelectionError && case_r16.caseReference === ctx_r2.linkCaseForm.value.caseNumber));
18277
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(12, _c1$f, ctx_r2.caseSelectionError && case_r16.caseReference === ctx_r2.linkCaseForm.value.caseNumber));
18216
18278
  i0__namespace.ɵɵadvance(2);
18217
18279
  i0__namespace.ɵɵtextInterpolate1("", case_r16.caseName, " ");
18218
18280
  i0__namespace.ɵɵadvance(2);
@@ -20518,7 +20580,7 @@
20518
20580
  }
20519
20581
  }
20520
20582
  var _c0$D = function (a0) { return { "form-group-error": a0 }; };
20521
- var _c1$d = function (a0) { return { "govuk-input--error": a0 }; };
20583
+ var _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
20522
20584
  var WriteNumberFieldComponent = /** @class */ (function (_super) {
20523
20585
  __extends(WriteNumberFieldComponent, _super);
20524
20586
  function WriteNumberFieldComponent() {
@@ -20552,7 +20614,7 @@
20552
20614
  i0__namespace.ɵɵadvance(1);
20553
20615
  i0__namespace.ɵɵproperty("ngIf", ctx.numberControl.errors && ctx.numberControl.dirty);
20554
20616
  i0__namespace.ɵɵadvance(1);
20555
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$d, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
20617
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$e, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
20556
20618
  }
20557
20619
  }, directives: [i5__namespace.NgClass, i5__namespace.NgIf, i3__namespace.NumberValueAccessor, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlDirective], pipes: [i1__namespace.RpxTranslatePipe, FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
20558
20620
  var ɵWriteNumberFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteNumberFieldComponent);
@@ -21396,7 +21458,7 @@
21396
21458
  }
21397
21459
  }
21398
21460
  var _c0$B = function (a0) { return { "form-group-error": a0 }; };
21399
- var _c1$c = function (a0) { return { "govuk-input--error": a0 }; };
21461
+ var _c1$d = function (a0) { return { "govuk-input--error": a0 }; };
21400
21462
  var WritePhoneUKFieldComponent = /** @class */ (function (_super) {
21401
21463
  __extends(WritePhoneUKFieldComponent, _super);
21402
21464
  function WritePhoneUKFieldComponent() {
@@ -21430,7 +21492,7 @@
21430
21492
  i0__namespace.ɵɵadvance(1);
21431
21493
  i0__namespace.ɵɵproperty("ngIf", ctx.phoneUkControl.errors && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched));
21432
21494
  i0__namespace.ɵɵadvance(1);
21433
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$c, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
21495
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$d, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
21434
21496
  }
21435
21497
  }, directives: [i5__namespace.NgClass, i5__namespace.NgIf, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlDirective], pipes: [i1__namespace.RpxTranslatePipe, FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
21436
21498
  var ɵWritePhoneUKFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WritePhoneUKFieldComponent);
@@ -21732,11 +21794,11 @@
21732
21794
  QualifyingQuestionsErrorMessage["SELECT_AN_OPTION"] = "Select an option";
21733
21795
  })(exports.QualifyingQuestionsErrorMessage || (exports.QualifyingQuestionsErrorMessage = {}));
21734
21796
 
21735
- function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_7_Template(rf, ctx) {
21797
+ function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_10_Template(rf, ctx) {
21736
21798
  if (rf & 1) {
21737
21799
  i0__namespace.ɵɵelementContainerStart(0);
21738
- i0__namespace.ɵɵelementStart(1, "p", 7);
21739
- i0__namespace.ɵɵelementStart(2, "span", 8);
21800
+ i0__namespace.ɵɵelementStart(1, "p", 8);
21801
+ i0__namespace.ɵɵelementStart(2, "span", 9);
21740
21802
  i0__namespace.ɵɵtext(3);
21741
21803
  i0__namespace.ɵɵpipe(4, "rpxTranslate");
21742
21804
  i0__namespace.ɵɵelementEnd();
@@ -21753,23 +21815,52 @@
21753
21815
  i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(6, 4, ctx_r1.qualifyingQuestionsErrorMessage.SELECT_AN_OPTION), " ");
21754
21816
  }
21755
21817
  }
21756
- function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_9_ng_container_1_Template(rf, ctx) {
21818
+ function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_ng_container_1_Template(rf, ctx) {
21757
21819
  if (rf & 1) {
21758
21820
  i0__namespace.ɵɵelementContainerStart(0);
21759
- i0__namespace.ɵɵelement(1, "hr");
21821
+ i0__namespace.ɵɵelementStart(1, "div", 14);
21822
+ i0__namespace.ɵɵtext(2);
21823
+ i0__namespace.ɵɵpipe(3, "rpxTranslate");
21824
+ i0__namespace.ɵɵelementEnd();
21760
21825
  i0__namespace.ɵɵelementContainerEnd();
21761
21826
  }
21827
+ if (rf & 2) {
21828
+ i0__namespace.ɵɵadvance(2);
21829
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 1, "or"));
21830
+ }
21762
21831
  }
21763
- function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_9_Template(rf, ctx) {
21832
+ function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_div_7_Template(rf, ctx) {
21833
+ if (rf & 1) {
21834
+ var _r8_1 = i0__namespace.ɵɵgetCurrentView();
21835
+ i0__namespace.ɵɵelementStart(0, "div", 15);
21836
+ i0__namespace.ɵɵtext(1);
21837
+ i0__namespace.ɵɵpipe(2, "rpxTranslate");
21838
+ i0__namespace.ɵɵelementStart(3, "a", 16);
21839
+ i0__namespace.ɵɵlistener("click", function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_div_7_Template_a_click_3_listener() { i0__namespace.ɵɵrestoreView(_r8_1); var ctx_r7 = i0__namespace.ɵɵnextContext(3); return ctx_r7.click(); });
21840
+ i0__namespace.ɵɵtext(4);
21841
+ i0__namespace.ɵɵpipe(5, "rpxTranslate");
21842
+ i0__namespace.ɵɵelementEnd();
21843
+ i0__namespace.ɵɵtext(6, ".) ");
21844
+ i0__namespace.ɵɵelementEnd();
21845
+ }
21846
+ if (rf & 2) {
21847
+ i0__namespace.ɵɵadvance(1);
21848
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 2, "(To reply to an existing query"), " ");
21849
+ i0__namespace.ɵɵadvance(3);
21850
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(5, 4, "click here"));
21851
+ }
21852
+ }
21853
+ function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_Template(rf, ctx) {
21764
21854
  if (rf & 1) {
21765
21855
  i0__namespace.ɵɵelementContainerStart(0);
21766
- i0__namespace.ɵɵtemplate(1, QualifyingQuestionOptionsComponent_ng_container_0_ng_container_9_ng_container_1_Template, 2, 0, "ng-container", 0);
21767
- i0__namespace.ɵɵelementStart(2, "div", 9);
21768
- i0__namespace.ɵɵelement(3, "input", 10);
21769
- i0__namespace.ɵɵelementStart(4, "label", 11);
21856
+ i0__namespace.ɵɵtemplate(1, QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_ng_container_1_Template, 4, 3, "ng-container", 0);
21857
+ i0__namespace.ɵɵelementStart(2, "div", 10);
21858
+ i0__namespace.ɵɵelement(3, "input", 11);
21859
+ i0__namespace.ɵɵelementStart(4, "label", 12);
21770
21860
  i0__namespace.ɵɵtext(5);
21771
21861
  i0__namespace.ɵɵpipe(6, "rpxTranslate");
21772
21862
  i0__namespace.ɵɵelementEnd();
21863
+ i0__namespace.ɵɵtemplate(7, QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_div_7_Template, 7, 6, "div", 13);
21773
21864
  i0__namespace.ɵɵelementEnd();
21774
21865
  i0__namespace.ɵɵelementContainerEnd();
21775
21866
  }
@@ -21785,7 +21876,9 @@
21785
21876
  i0__namespace.ɵɵadvance(1);
21786
21877
  i0__namespace.ɵɵproperty("for", qualifyingQuestion_r3.name);
21787
21878
  i0__namespace.ɵɵadvance(1);
21788
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(6, 6, qualifyingQuestion_r3.name));
21879
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(6, 7, qualifyingQuestion_r3.name));
21880
+ i0__namespace.ɵɵadvance(2);
21881
+ i0__namespace.ɵɵproperty("ngIf", isLast_r4);
21789
21882
  }
21790
21883
  }
21791
21884
  function QualifyingQuestionOptionsComponent_ng_container_0_Template(rf, ctx) {
@@ -21799,10 +21892,14 @@
21799
21892
  i0__namespace.ɵɵpipe(6, "rpxTranslate");
21800
21893
  i0__namespace.ɵɵelementEnd();
21801
21894
  i0__namespace.ɵɵelementEnd();
21802
- i0__namespace.ɵɵtemplate(7, QualifyingQuestionOptionsComponent_ng_container_0_ng_container_7_Template, 7, 6, "ng-container", 0);
21803
- i0__namespace.ɵɵelementStart(8, "div", 5);
21804
- i0__namespace.ɵɵtemplate(9, QualifyingQuestionOptionsComponent_ng_container_0_ng_container_9_Template, 7, 8, "ng-container", 6);
21805
- i0__namespace.ɵɵpipe(10, "async");
21895
+ i0__namespace.ɵɵelementStart(7, "h2", 5);
21896
+ i0__namespace.ɵɵtext(8);
21897
+ i0__namespace.ɵɵpipe(9, "rpxTranslate");
21898
+ i0__namespace.ɵɵelementEnd();
21899
+ i0__namespace.ɵɵtemplate(10, QualifyingQuestionOptionsComponent_ng_container_0_ng_container_10_Template, 7, 6, "ng-container", 0);
21900
+ i0__namespace.ɵɵelementStart(11, "div", 6);
21901
+ i0__namespace.ɵɵtemplate(12, QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_Template, 8, 9, "ng-container", 7);
21902
+ i0__namespace.ɵɵpipe(13, "async");
21806
21903
  i0__namespace.ɵɵelementEnd();
21807
21904
  i0__namespace.ɵɵelementEnd();
21808
21905
  i0__namespace.ɵɵelementEnd();
@@ -21813,17 +21910,27 @@
21813
21910
  i0__namespace.ɵɵadvance(1);
21814
21911
  i0__namespace.ɵɵclassProp("govuk-form-group--error", ctx_r0.displayError);
21815
21912
  i0__namespace.ɵɵadvance(4);
21816
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(6, 5, "Are you contacting us about any of the following:"), " ");
21913
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(6, 6, "Raise a new query"), " ");
21914
+ i0__namespace.ɵɵadvance(3);
21915
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(9, 8, "Select the type of query you are raising:"), " ");
21817
21916
  i0__namespace.ɵɵadvance(2);
21818
21917
  i0__namespace.ɵɵproperty("ngIf", ctx_r0.displayError);
21819
21918
  i0__namespace.ɵɵadvance(2);
21820
- i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(10, 7, ctx_r0.qualifyingQuestions$));
21919
+ i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(13, 10, ctx_r0.qualifyingQuestions$));
21821
21920
  }
21822
21921
  }
21823
21922
  var QualifyingQuestionOptionsComponent = /** @class */ (function () {
21824
- function QualifyingQuestionOptionsComponent() {
21923
+ function QualifyingQuestionOptionsComponent(route, router) {
21924
+ this.route = route;
21925
+ this.router = router;
21825
21926
  this.qualifyingQuestionsErrorMessage = exports.QualifyingQuestionsErrorMessage;
21826
21927
  }
21928
+ QualifyingQuestionOptionsComponent.prototype.ngOnInit = function () {
21929
+ this.caseId = this.route.snapshot.params.cid;
21930
+ };
21931
+ QualifyingQuestionOptionsComponent.prototype.click = function () {
21932
+ this.router.navigate(['cases', 'case-details', this.caseId], { fragment: 'Queries' });
21933
+ };
21827
21934
  Object.defineProperty(QualifyingQuestionOptionsComponent.prototype, "displayError", {
21828
21935
  get: function () {
21829
21936
  return this.qualifyingQuestionsControl.touched && this.qualifyingQuestionsControl.hasError('required');
@@ -21833,10 +21940,10 @@
21833
21940
  });
21834
21941
  return QualifyingQuestionOptionsComponent;
21835
21942
  }());
21836
- QualifyingQuestionOptionsComponent.ɵfac = function QualifyingQuestionOptionsComponent_Factory(t) { return new (t || QualifyingQuestionOptionsComponent)(); };
21837
- QualifyingQuestionOptionsComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QualifyingQuestionOptionsComponent, selectors: [["ccd-qualifying-question-options"]], inputs: { qualifyingQuestionsControl: "qualifyingQuestionsControl", qualifyingQuestions$: "qualifyingQuestions$" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "govuk-form-group"], [1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], [1, "govuk-fieldset__heading"], ["data-module", "govuk-radios", 1, "govuk-radios"], [4, "ngFor", "ngForOf"], [1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["name", "qualifyingQuestionOption", "type", "radio", 1, "govuk-radios__input", 3, "id", "formControl", "value"], [1, "govuk-label", "govuk-radios__label", 3, "for"]], template: function QualifyingQuestionOptionsComponent_Template(rf, ctx) {
21943
+ QualifyingQuestionOptionsComponent.ɵfac = function QualifyingQuestionOptionsComponent_Factory(t) { return new (t || QualifyingQuestionOptionsComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router)); };
21944
+ QualifyingQuestionOptionsComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QualifyingQuestionOptionsComponent, selectors: [["ccd-qualifying-question-options"]], inputs: { qualifyingQuestionsControl: "qualifyingQuestionsControl", qualifyingQuestions$: "qualifyingQuestions$" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "govuk-form-group"], [1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], [1, "govuk-fieldset__heading"], [1, "govuk-heading-m", "govuk-!-margin-top-10"], ["data-module", "govuk-radios", 1, "govuk-radios"], [4, "ngFor", "ngForOf"], [1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["name", "qualifyingQuestionOption", "type", "radio", 1, "govuk-radios__input", 3, "id", "formControl", "value"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["class", "govuk-hint govuk-radios__hint", 4, "ngIf"], [1, "govuk-radios__divider"], [1, "govuk-hint", "govuk-radios__hint"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"]], template: function QualifyingQuestionOptionsComponent_Template(rf, ctx) {
21838
21945
  if (rf & 1) {
21839
- i0__namespace.ɵɵtemplate(0, QualifyingQuestionOptionsComponent_ng_container_0_Template, 11, 9, "ng-container", 0);
21946
+ i0__namespace.ɵɵtemplate(0, QualifyingQuestionOptionsComponent_ng_container_0_Template, 14, 12, "ng-container", 0);
21840
21947
  }
21841
21948
  if (rf & 2) {
21842
21949
  i0__namespace.ɵɵproperty("ngIf", ctx.qualifyingQuestionsControl);
@@ -21849,7 +21956,7 @@
21849
21956
  selector: 'ccd-qualifying-question-options',
21850
21957
  templateUrl: './qualifying-question-options.component.html'
21851
21958
  }]
21852
- }], null, { qualifyingQuestionsControl: [{
21959
+ }], function () { return [{ type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace$1.Router }]; }, { qualifyingQuestionsControl: [{
21853
21960
  type: i0.Input
21854
21961
  }], qualifyingQuestions$: [{
21855
21962
  type: i0.Input
@@ -23891,7 +23998,7 @@
23891
23998
  }
23892
23999
  }
23893
24000
  var _c0$y = function (a0) { return { "form-group-error": a0 }; };
23894
- var _c1$b = function (a0) { return { "govuk-textarea--error": a0 }; };
24001
+ var _c1$c = function (a0) { return { "govuk-textarea--error": a0 }; };
23895
24002
  var WriteTextAreaFieldComponent = /** @class */ (function (_super) {
23896
24003
  __extends(WriteTextAreaFieldComponent, _super);
23897
24004
  function WriteTextAreaFieldComponent(browserService) {
@@ -23936,7 +24043,7 @@
23936
24043
  i0__namespace.ɵɵadvance(1);
23937
24044
  i0__namespace.ɵɵproperty("ngIf", ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched));
23938
24045
  i0__namespace.ɵɵadvance(1);
23939
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$b, ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched)))("id", ctx.id())("formControl", ctx.textareaControl);
24046
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$c, ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched)))("id", ctx.id())("formControl", ctx.textareaControl);
23940
24047
  }
23941
24048
  }, directives: [i5__namespace.NgClass, i5__namespace.NgIf, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlDirective], pipes: [i1__namespace.RpxTranslatePipe, FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
23942
24049
  (function () {
@@ -24023,7 +24130,7 @@
24023
24130
  }
24024
24131
  }
24025
24132
  var _c0$x = function (a0) { return { "form-group-error": a0 }; };
24026
- var _c1$a = function (a0) { return { "govuk-input--error": a0 }; };
24133
+ var _c1$b = function (a0) { return { "govuk-input--error": a0 }; };
24027
24134
  var WriteTextFieldComponent = /** @class */ (function (_super) {
24028
24135
  __extends(WriteTextFieldComponent, _super);
24029
24136
  function WriteTextFieldComponent() {
@@ -24062,7 +24169,7 @@
24062
24169
  i0__namespace.ɵɵadvance(1);
24063
24170
  i0__namespace.ɵɵproperty("ngIf", (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched));
24064
24171
  i0__namespace.ɵɵadvance(1);
24065
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$a, (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched)))("id", ctx.id())("formControl", ctx.textControl);
24172
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$b, (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched)))("id", ctx.id())("formControl", ctx.textControl);
24066
24173
  }
24067
24174
  }, directives: [i5__namespace.NgClass, i5__namespace.NgIf, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlDirective], pipes: [i1__namespace.RpxTranslatePipe, FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
24068
24175
  var ɵWriteTextFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteTextFieldComponent);
@@ -24290,7 +24397,7 @@
24290
24397
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 8, value_r4));
24291
24398
  }
24292
24399
  }
24293
- var _c1$9 = function (a0) { return { "form-group-error": a0 }; };
24400
+ var _c1$a = function (a0) { return { "form-group-error": a0 }; };
24294
24401
  var WriteYesNoFieldComponent = /** @class */ (function (_super) {
24295
24402
  __extends(WriteYesNoFieldComponent, _super);
24296
24403
  function WriteYesNoFieldComponent(yesNoService) {
@@ -24321,7 +24428,7 @@
24321
24428
  i0__namespace.ɵɵelementEnd();
24322
24429
  }
24323
24430
  if (rf & 2) {
24324
- i0__namespace.ɵɵproperty("id", ctx.id())("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$9, !ctx.yesNoControl.valid && (ctx.yesNoControl.dirty || ctx.yesNoControl.touched)));
24431
+ i0__namespace.ɵɵproperty("id", ctx.id())("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$a, !ctx.yesNoControl.valid && (ctx.yesNoControl.dirty || ctx.yesNoControl.touched)));
24325
24432
  i0__namespace.ɵɵadvance(3);
24326
24433
  i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
24327
24434
  i0__namespace.ɵɵadvance(1);
@@ -24752,7 +24859,7 @@
24752
24859
  i0__namespace.ɵɵelementContainer(0);
24753
24860
  }
24754
24861
  }
24755
- var _c1$8 = function (a0, a1) { return { cat: a0, level: a1 }; };
24862
+ var _c1$9 = function (a0, a1) { return { cat: a0, level: a1 }; };
24756
24863
  function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template(rf, ctx) {
24757
24864
  if (rf & 1) {
24758
24865
  i0__namespace.ɵɵelementContainerStart(0);
@@ -24765,7 +24872,7 @@
24765
24872
  i0__namespace.ɵɵnextContext();
24766
24873
  var _r1 = i0__namespace.ɵɵreference(13);
24767
24874
  i0__namespace.ɵɵadvance(1);
24768
- i0__namespace.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction2(2, _c1$8, subcat_r8, level_r6 + 1));
24875
+ i0__namespace.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction2(2, _c1$9, subcat_r8, level_r6 + 1));
24769
24876
  }
24770
24877
  }
24771
24878
  function CaseFileViewFolderSelectorComponent_ng_template_12_Template(rf, ctx) {
@@ -24987,7 +25094,7 @@
24987
25094
  }
24988
25095
  }
24989
25096
  var _c0$r = [[["", "trigger", ""]]];
24990
- var _c1$7 = ["[trigger]"];
25097
+ var _c1$8 = ["[trigger]"];
24991
25098
  var CaseFileViewOverlayMenuComponent = /** @class */ (function () {
24992
25099
  function CaseFileViewOverlayMenuComponent() {
24993
25100
  this.title = '';
@@ -25002,7 +25109,7 @@
25002
25109
  return CaseFileViewOverlayMenuComponent;
25003
25110
  }());
25004
25111
  CaseFileViewOverlayMenuComponent.ɵfac = function CaseFileViewOverlayMenuComponent_Factory(t) { return new (t || CaseFileViewOverlayMenuComponent)(); };
25005
- 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) {
25112
+ 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$8, 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) {
25006
25113
  if (rf & 1) {
25007
25114
  i0__namespace.ɵɵprojectionDef(_c0$r);
25008
25115
  i0__namespace.ɵɵelementStart(0, "div");
@@ -25703,6 +25810,7 @@
25703
25810
  function AddCommentsComponent() {
25704
25811
  this.optional = false;
25705
25812
  this.isDisplayContextParameterExternal = false;
25813
+ this.isDisplayContextParameter2Point1Enabled = false;
25706
25814
  this.caseFlagStateEmitter = new i0.EventEmitter();
25707
25815
  this.errorMessages = [];
25708
25816
  this.flagCommentsNotEnteredErrorMessage = null;
@@ -25714,6 +25822,8 @@
25714
25822
  AddCommentsComponent.prototype.ngOnInit = function () {
25715
25823
  this.addCommentsTitle = !this.isDisplayContextParameterExternal ?
25716
25824
  exports.CaseFlagWizardStepTitle.ADD_FLAG_COMMENTS : exports.CaseFlagWizardStepTitle.ADD_FLAG_COMMENTS_EXTERNAL_MODE;
25825
+ this.addCommentsHint = !this.isDisplayContextParameterExternal ?
25826
+ exports.AddCommentsStep.HINT_TEXT : exports.AddCommentsStep.HINT_TEXT_EXTERNAL;
25717
25827
  if (!this.formGroup.get(this.flagCommentsControlName)) {
25718
25828
  this.formGroup.addControl(this.flagCommentsControlName, new i3.FormControl(''));
25719
25829
  }
@@ -25729,10 +25839,12 @@
25729
25839
  this.flagCommentsCharLimitErrorMessage = null;
25730
25840
  this.errorMessages = [];
25731
25841
  if (!this.optional && !this.formGroup.get(this.flagCommentsControlName).value) {
25732
- this.flagCommentsNotEnteredErrorMessage = exports.AddCommentsErrorMessage.FLAG_COMMENTS_NOT_ENTERED;
25842
+ this.flagCommentsNotEnteredErrorMessage = this.isDisplayContextParameterExternal
25843
+ ? exports.AddCommentsErrorMessage.FLAG_COMMENTS_NOT_ENTERED_EXTERNAL
25844
+ : exports.AddCommentsErrorMessage.FLAG_COMMENTS_NOT_ENTERED;
25733
25845
  this.errorMessages.push({
25734
25846
  title: '',
25735
- description: exports.AddCommentsErrorMessage.FLAG_COMMENTS_NOT_ENTERED,
25847
+ description: this.flagCommentsNotEnteredErrorMessage,
25736
25848
  fieldId: this.flagCommentsControlName
25737
25849
  });
25738
25850
  }
@@ -25749,7 +25861,7 @@
25749
25861
  return AddCommentsComponent;
25750
25862
  }());
25751
25863
  AddCommentsComponent.ɵfac = function AddCommentsComponent_Factory(t) { return new (t || AddCommentsComponent)(); };
25752
- AddCommentsComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: AddCommentsComponent, selectors: [["ccd-add-comments"]], inputs: { formGroup: "formGroup", optional: "optional", isDisplayContextParameterExternal: "isDisplayContextParameterExternal" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 22, vars: 24, consts: [[3, "formGroup"], ["data-module", "govuk-character-count", "data-maxlength", "200", 1, "govuk-character-count"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper"], [1, "govuk-label", "govuk-label--m", 3, "for"], [4, "ngIf"], ["id", "add-comments-hint", 1, "govuk-hint"], ["class", "govuk-warning-text", 4, "ngIf"], ["id", "flag-comments-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-comments-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", "aria-describedby", "add-comments-hint add-comments-char-limit-info add-comments-char-limit-error", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "add-comments-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-warning-text"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-warning-text__assistive"], ["id", "flag-comments-not-entered-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "add-comments-char-limit-error", 1, "govuk-error-message"]], template: function AddCommentsComponent_Template(rf, ctx) {
25864
+ AddCommentsComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: AddCommentsComponent, selectors: [["ccd-add-comments"]], inputs: { formGroup: "formGroup", optional: "optional", isDisplayContextParameterExternal: "isDisplayContextParameterExternal", isDisplayContextParameter2Point1Enabled: "isDisplayContextParameter2Point1Enabled" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 22, vars: 24, consts: [[3, "formGroup"], ["data-module", "govuk-character-count", "data-maxlength", "200", 1, "govuk-character-count"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper"], [1, "govuk-label", "govuk-label--m", 3, "for"], [4, "ngIf"], ["id", "add-comments-hint", 1, "govuk-hint"], ["class", "govuk-warning-text", 4, "ngIf"], ["id", "flag-comments-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-comments-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", "aria-describedby", "add-comments-hint add-comments-char-limit-info add-comments-char-limit-error", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "add-comments-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-warning-text"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-warning-text__assistive"], ["id", "flag-comments-not-entered-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "add-comments-char-limit-error", 1, "govuk-error-message"]], template: function AddCommentsComponent_Template(rf, ctx) {
25753
25865
  if (rf & 1) {
25754
25866
  i0__namespace.ɵɵelementContainerStart(0, 0);
25755
25867
  i0__namespace.ɵɵelementStart(1, "div", 1);
@@ -25795,9 +25907,9 @@
25795
25907
  i0__namespace.ɵɵadvance(2);
25796
25908
  i0__namespace.ɵɵproperty("ngIf", ctx.optional);
25797
25909
  i0__namespace.ɵɵadvance(2);
25798
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(10, 16, ctx.addCommentsStepEnum.HINT_TEXT), " ");
25910
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(10, 16, ctx.addCommentsHint), " ");
25799
25911
  i0__namespace.ɵɵadvance(2);
25800
- i0__namespace.ɵɵproperty("ngIf", !ctx.isDisplayContextParameterExternal);
25912
+ i0__namespace.ɵɵproperty("ngIf", !ctx.isDisplayContextParameterExternal && ctx.isDisplayContextParameter2Point1Enabled);
25801
25913
  i0__namespace.ɵɵadvance(1);
25802
25914
  i0__namespace.ɵɵproperty("ngIf", ctx.flagCommentsNotEnteredErrorMessage);
25803
25915
  i0__namespace.ɵɵadvance(1);
@@ -25823,6 +25935,8 @@
25823
25935
  type: i0.Input
25824
25936
  }], isDisplayContextParameterExternal: [{
25825
25937
  type: i0.Input
25938
+ }], isDisplayContextParameter2Point1Enabled: [{
25939
+ type: i0.Input
25826
25940
  }], caseFlagStateEmitter: [{
25827
25941
  type: i0.Output
25828
25942
  }] });
@@ -25936,41 +26050,24 @@
25936
26050
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(12, 8, "comments (Welsh)"), "");
25937
26051
  }
25938
26052
  }
25939
- function CaseFlagSummaryListComponent_dl_0_div_31_Template(rf, ctx) {
26053
+ function CaseFlagSummaryListComponent_dl_0_a_39_Template(rf, ctx) {
25940
26054
  if (rf & 1) {
25941
26055
  var _r12_1 = i0__namespace.ɵɵgetCurrentView();
25942
- i0__namespace.ɵɵelementStart(0, "div", 2);
25943
- i0__namespace.ɵɵelementStart(1, "dt", 3);
25944
- i0__namespace.ɵɵtext(2);
25945
- i0__namespace.ɵɵpipe(3, "rpxTranslate");
25946
- i0__namespace.ɵɵelementEnd();
25947
- i0__namespace.ɵɵelementStart(4, "dd", 4);
25948
- i0__namespace.ɵɵtext(5);
25949
- i0__namespace.ɵɵpipe(6, "rpxTranslate");
25950
- i0__namespace.ɵɵelementEnd();
25951
- i0__namespace.ɵɵelementStart(7, "dd", 5);
25952
- i0__namespace.ɵɵelementStart(8, "a", 6);
25953
- i0__namespace.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_div_31_Template_a_click_8_listener() { i0__namespace.ɵɵrestoreView(_r12_1); var ctx_r11 = i0__namespace.ɵɵnextContext(2); return ctx_r11.changeButtonEmitter.emit(ctx_r11.caseFlagFieldState.FLAG_UPDATE); });
25954
- i0__namespace.ɵɵtext(9);
25955
- i0__namespace.ɵɵpipe(10, "rpxTranslate");
25956
- i0__namespace.ɵɵelementStart(11, "span", 7);
25957
- i0__namespace.ɵɵtext(12);
25958
- i0__namespace.ɵɵpipe(13, "rpxTranslate");
25959
- i0__namespace.ɵɵelementEnd();
25960
- i0__namespace.ɵɵelementEnd();
26056
+ i0__namespace.ɵɵelementStart(0, "a", 6);
26057
+ i0__namespace.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_a_39_Template_a_click_0_listener() { i0__namespace.ɵɵrestoreView(_r12_1); var ctx_r11 = i0__namespace.ɵɵnextContext(2); return ctx_r11.changeButtonEmitter.emit(ctx_r11.summaryListDisplayMode === ctx_r11.displayMode.MANAGE ? ctx_r11.caseFlagFieldState.FLAG_UPDATE : ctx_r11.caseFlagFieldState.FLAG_STATUS); });
26058
+ i0__namespace.ɵɵtext(1);
26059
+ i0__namespace.ɵɵpipe(2, "rpxTranslate");
26060
+ i0__namespace.ɵɵelementStart(3, "span", 7);
26061
+ i0__namespace.ɵɵtext(4);
26062
+ i0__namespace.ɵɵpipe(5, "rpxTranslate");
25961
26063
  i0__namespace.ɵɵelementEnd();
25962
26064
  i0__namespace.ɵɵelementEnd();
25963
26065
  }
25964
26066
  if (rf & 2) {
25965
- var ctx_r4 = i0__namespace.ɵɵnextContext(2);
25966
- i0__namespace.ɵɵadvance(2);
25967
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(3, 4, "Status"), " ");
25968
- i0__namespace.ɵɵadvance(3);
25969
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(6, 6, ctx_r4.flagStatus), " ");
25970
- i0__namespace.ɵɵadvance(4);
25971
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(10, 8, "Change"), "");
26067
+ i0__namespace.ɵɵadvance(1);
26068
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 2, "Change"), "");
25972
26069
  i0__namespace.ɵɵadvance(3);
25973
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(13, 10, "status"), "");
26070
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, "status"), "");
25974
26071
  }
25975
26072
  }
25976
26073
  function CaseFlagSummaryListComponent_dl_0_Template(rf, ctx) {
@@ -26021,35 +26118,51 @@
26021
26118
  i0__namespace.ɵɵtemplate(28, CaseFlagSummaryListComponent_dl_0_div_28_Template, 13, 10, "div", 8);
26022
26119
  i0__namespace.ɵɵtemplate(29, CaseFlagSummaryListComponent_dl_0_div_29_Template, 13, 10, "div", 8);
26023
26120
  i0__namespace.ɵɵtemplate(30, CaseFlagSummaryListComponent_dl_0_div_30_Template, 13, 10, "div", 8);
26024
- i0__namespace.ɵɵtemplate(31, CaseFlagSummaryListComponent_dl_0_div_31_Template, 14, 12, "div", 8);
26121
+ i0__namespace.ɵɵelementStart(31, "div", 2);
26122
+ i0__namespace.ɵɵelementStart(32, "dt", 3);
26123
+ i0__namespace.ɵɵtext(33);
26124
+ i0__namespace.ɵɵpipe(34, "rpxTranslate");
26125
+ i0__namespace.ɵɵelementEnd();
26126
+ i0__namespace.ɵɵelementStart(35, "dd", 4);
26127
+ i0__namespace.ɵɵtext(36);
26128
+ i0__namespace.ɵɵpipe(37, "rpxTranslate");
26129
+ i0__namespace.ɵɵelementEnd();
26130
+ i0__namespace.ɵɵelementStart(38, "dd", 5);
26131
+ i0__namespace.ɵɵtemplate(39, CaseFlagSummaryListComponent_dl_0_a_39_Template, 6, 6, "a", 9);
26132
+ i0__namespace.ɵɵelementEnd();
26133
+ i0__namespace.ɵɵelementEnd();
26025
26134
  i0__namespace.ɵɵelementEnd();
26026
26135
  }
26027
26136
  if (rf & 2) {
26028
26137
  var ctx_r0 = i0__namespace.ɵɵnextContext();
26029
26138
  i0__namespace.ɵɵadvance(3);
26030
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(4, 12, ctx_r0.addUpdateFlagHeaderText), " ");
26139
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(4, 14, ctx_r0.addUpdateFlagHeaderText), " ");
26031
26140
  i0__namespace.ɵɵadvance(3);
26032
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(7, 14, ctx_r0.flagForSummaryDisplay.partyName || ctx_r0.caseLevelLocation), " ");
26141
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(7, 16, ctx_r0.flagForSummaryDisplay.partyName || ctx_r0.caseFlagCheckYourAnswersPageStep.CASE_LEVEL_LOCATION), " ");
26033
26142
  i0__namespace.ɵɵadvance(4);
26034
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(11, 16, "Change"), "");
26143
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(11, 18, "Change"), "");
26035
26144
  i0__namespace.ɵɵadvance(3);
26036
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(14, 18, "party name"), "");
26145
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(14, 20, "party name"), "");
26037
26146
  i0__namespace.ɵɵadvance(4);
26038
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(18, 20, "Flag type"), " ");
26147
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(18, 22, ctx_r0.flagTypeHeaderText), " ");
26039
26148
  i0__namespace.ɵɵadvance(3);
26040
26149
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.flagDescription, " ");
26041
26150
  i0__namespace.ɵɵadvance(3);
26042
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(24, 22, "Change"), "");
26151
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(24, 24, "Change"), "");
26043
26152
  i0__namespace.ɵɵadvance(3);
26044
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(27, 24, "flag type"), "");
26153
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(27, 26, "flag type"), "");
26045
26154
  i0__namespace.ɵɵadvance(2);
26046
26155
  i0__namespace.ɵɵproperty("ngIf", (ctx_r0.flagDescriptionWelsh == null ? null : ctx_r0.flagDescriptionWelsh.length) > 0);
26047
26156
  i0__namespace.ɵɵadvance(1);
26048
26157
  i0__namespace.ɵɵproperty("ngIf", (ctx_r0.flagComments == null ? null : ctx_r0.flagComments.length) > 0);
26049
26158
  i0__namespace.ɵɵadvance(1);
26050
26159
  i0__namespace.ɵɵproperty("ngIf", (ctx_r0.flagCommentsWelsh == null ? null : ctx_r0.flagCommentsWelsh.length) > 0);
26051
- i0__namespace.ɵɵadvance(1);
26052
- i0__namespace.ɵɵproperty("ngIf", ctx_r0.canDisplayStatus);
26160
+ i0__namespace.ɵɵadvance(3);
26161
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(34, 28, "Status"), " ");
26162
+ i0__namespace.ɵɵadvance(3);
26163
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(37, 30, ctx_r0.flagStatus), " ");
26164
+ i0__namespace.ɵɵadvance(3);
26165
+ i0__namespace.ɵɵproperty("ngIf", ctx_r0.is2Point1Enabled);
26053
26166
  }
26054
26167
  }
26055
26168
  var CaseFlagSummaryListComponent = /** @class */ (function () {
@@ -26057,11 +26170,9 @@
26057
26170
  this.rpxTranslationService = rpxTranslationService;
26058
26171
  this.changeButtonEmitter = new i0.EventEmitter();
26059
26172
  this.caseFlagFieldState = exports.CaseFlagFieldState;
26060
- this.caseLevelLocation = 'Case level';
26061
- this.updateFlagHeaderText = 'Update flag for';
26062
- this.addFlagHeaderText = 'Add flag to';
26063
26173
  this.displayMode = exports.CaseFlagSummaryListDisplayMode;
26064
- this.canDisplayStatus = false;
26174
+ this.caseFlagCheckYourAnswersPageStep = exports.CaseFlagCheckYourAnswersPageStep;
26175
+ this.is2Point1Enabled = false;
26065
26176
  }
26066
26177
  CaseFlagSummaryListComponent.prototype.ngOnInit = function () {
26067
26178
  if (this.flagForSummaryDisplay) {
@@ -26071,9 +26182,10 @@
26071
26182
  this.flagComments = flagDetail.flagComment;
26072
26183
  this.flagCommentsWelsh = flagDetail.flagComment_cy;
26073
26184
  this.flagStatus = flagDetail.status;
26074
- this.addUpdateFlagHeaderText = this.getHeaderText();
26185
+ this.addUpdateFlagHeaderText = this.getAddUpdateFlagHeaderText();
26186
+ this.flagTypeHeaderText = this.getFlagTypeHeaderText();
26075
26187
  this.summaryListDisplayMode = this.getSummaryListDisplayMode();
26076
- this.canDisplayStatus = this.getCanDisplayStatus();
26188
+ this.is2Point1Enabled = this.getDisplayContextParameter2Point1Enabled();
26077
26189
  }
26078
26190
  };
26079
26191
  CaseFlagSummaryListComponent.prototype.getFlagDescription = function (flagDetail) {
@@ -26092,35 +26204,54 @@
26092
26204
  var subTypeValueForDisplay = subTypeValue ? " - " + subTypeValue : '';
26093
26205
  return "" + flagName + otherDescription + subTypeValueForDisplay;
26094
26206
  };
26095
- CaseFlagSummaryListComponent.prototype.getHeaderText = function () {
26096
- if (this.displayContextParameter === exports.CaseFlagDisplayContextParameter.CREATE ||
26097
- this.displayContextParameter === exports.CaseFlagDisplayContextParameter.CREATE_EXTERNAL) {
26098
- return this.addFlagHeaderText;
26207
+ CaseFlagSummaryListComponent.prototype.getAddUpdateFlagHeaderText = function () {
26208
+ switch (this.displayContextParameter) {
26209
+ case exports.CaseFlagDisplayContextParameter.CREATE:
26210
+ case exports.CaseFlagDisplayContextParameter.CREATE_2_POINT_1:
26211
+ return exports.CaseFlagCheckYourAnswersPageStep.ADD_FLAG_HEADER_TEXT;
26212
+ case exports.CaseFlagDisplayContextParameter.CREATE_EXTERNAL:
26213
+ return exports.CaseFlagCheckYourAnswersPageStep.ADD_FLAG_HEADER_TEXT_EXTERNAL;
26214
+ case exports.CaseFlagDisplayContextParameter.UPDATE:
26215
+ case exports.CaseFlagDisplayContextParameter.UPDATE_2_POINT_1:
26216
+ return exports.CaseFlagCheckYourAnswersPageStep.UPDATE_FLAG_HEADER_TEXT;
26217
+ case exports.CaseFlagDisplayContextParameter.UPDATE_EXTERNAL:
26218
+ return exports.CaseFlagCheckYourAnswersPageStep.UPDATE_FLAG_HEADER_TEXT_EXTERNAL;
26219
+ default:
26220
+ return exports.CaseFlagCheckYourAnswersPageStep.NONE;
26099
26221
  }
26100
- if (this.displayContextParameter === exports.CaseFlagDisplayContextParameter.UPDATE ||
26101
- this.displayContextParameter === exports.CaseFlagDisplayContextParameter.UPDATE_EXTERNAL) {
26102
- return this.updateFlagHeaderText;
26222
+ };
26223
+ CaseFlagSummaryListComponent.prototype.getFlagTypeHeaderText = function () {
26224
+ switch (this.displayContextParameter) {
26225
+ case exports.CaseFlagDisplayContextParameter.CREATE:
26226
+ case exports.CaseFlagDisplayContextParameter.CREATE_2_POINT_1:
26227
+ case exports.CaseFlagDisplayContextParameter.UPDATE:
26228
+ case exports.CaseFlagDisplayContextParameter.UPDATE_2_POINT_1:
26229
+ return exports.CaseFlagCheckYourAnswersPageStep.FLAG_TYPE_HEADER_TEXT;
26230
+ case exports.CaseFlagDisplayContextParameter.CREATE_EXTERNAL:
26231
+ case exports.CaseFlagDisplayContextParameter.UPDATE_EXTERNAL:
26232
+ return exports.CaseFlagCheckYourAnswersPageStep.FLAG_TYPE_HEADER_TEXT_EXTERNAL;
26233
+ default:
26234
+ return exports.CaseFlagCheckYourAnswersPageStep.NONE;
26103
26235
  }
26104
- return '';
26105
26236
  };
26106
26237
  CaseFlagSummaryListComponent.prototype.getSummaryListDisplayMode = function () {
26107
26238
  if (this.displayContextParameter === exports.CaseFlagDisplayContextParameter.CREATE ||
26108
- this.displayContextParameter === exports.CaseFlagDisplayContextParameter.CREATE_EXTERNAL) {
26239
+ this.displayContextParameter === exports.CaseFlagDisplayContextParameter.CREATE_EXTERNAL ||
26240
+ this.displayContextParameter === exports.CaseFlagDisplayContextParameter.CREATE_2_POINT_1) {
26109
26241
  return exports.CaseFlagSummaryListDisplayMode.CREATE;
26110
26242
  }
26111
26243
  return exports.CaseFlagSummaryListDisplayMode.MANAGE;
26112
26244
  };
26113
- CaseFlagSummaryListComponent.prototype.getCanDisplayStatus = function () {
26114
- return !(this.displayContextParameter === exports.CaseFlagDisplayContextParameter.CREATE_EXTERNAL ||
26115
- this.displayContextParameter === exports.CaseFlagDisplayContextParameter.UPDATE_EXTERNAL ||
26116
- this.displayContextParameter === exports.CaseFlagDisplayContextParameter.CREATE);
26245
+ CaseFlagSummaryListComponent.prototype.getDisplayContextParameter2Point1Enabled = function () {
26246
+ return this.displayContextParameter === exports.CaseFlagDisplayContextParameter.CREATE_2_POINT_1 ||
26247
+ this.displayContextParameter === exports.CaseFlagDisplayContextParameter.UPDATE_2_POINT_1;
26117
26248
  };
26118
26249
  return CaseFlagSummaryListComponent;
26119
26250
  }());
26120
26251
  CaseFlagSummaryListComponent.ɵfac = function CaseFlagSummaryListComponent_Factory(t) { return new (t || CaseFlagSummaryListComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace.RpxTranslationService)); };
26121
- CaseFlagSummaryListComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFlagSummaryListComponent, selectors: [["ccd-case-flag-summary-list"]], inputs: { flagForSummaryDisplay: "flagForSummaryDisplay", displayContextParameter: "displayContextParameter" }, outputs: { changeButtonEmitter: "changeButtonEmitter" }, decls: 1, vars: 1, consts: [["class", "govuk-summary-list", 4, "ngIf"], [1, "govuk-summary-list"], [1, "govuk-summary-list__row"], [1, "govuk-summary-list__key"], [1, "govuk-summary-list__value"], [1, "govuk-summary-list__actions"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-visually-hidden"], ["class", "govuk-summary-list__row", 4, "ngIf"]], template: function CaseFlagSummaryListComponent_Template(rf, ctx) {
26252
+ CaseFlagSummaryListComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFlagSummaryListComponent, selectors: [["ccd-case-flag-summary-list"]], inputs: { flagForSummaryDisplay: "flagForSummaryDisplay", displayContextParameter: "displayContextParameter" }, outputs: { changeButtonEmitter: "changeButtonEmitter" }, decls: 1, vars: 1, consts: [["class", "govuk-summary-list", 4, "ngIf"], [1, "govuk-summary-list"], [1, "govuk-summary-list__row"], [1, "govuk-summary-list__key"], [1, "govuk-summary-list__value"], [1, "govuk-summary-list__actions"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-visually-hidden"], ["class", "govuk-summary-list__row", 4, "ngIf"], ["class", "govuk-link", "href", "javascript:void(0)", 3, "click", 4, "ngIf"]], template: function CaseFlagSummaryListComponent_Template(rf, ctx) {
26122
26253
  if (rf & 1) {
26123
- i0__namespace.ɵɵtemplate(0, CaseFlagSummaryListComponent_dl_0_Template, 32, 26, "dl", 0);
26254
+ i0__namespace.ɵɵtemplate(0, CaseFlagSummaryListComponent_dl_0_Template, 40, 32, "dl", 0);
26124
26255
  }
26125
26256
  if (rf & 2) {
26126
26257
  i0__namespace.ɵɵproperty("ngIf", ctx.flagForSummaryDisplay);
@@ -26171,7 +26302,7 @@
26171
26302
  function CaseFlagTableComponent_table_0_tbody_20_tr_1_div_15_Template(rf, ctx) {
26172
26303
  if (rf & 1) {
26173
26304
  i0__namespace.ɵɵelementStart(0, "div");
26174
- i0__namespace.ɵɵelementStart(1, "span", 21);
26305
+ i0__namespace.ɵɵelementStart(1, "span", 23);
26175
26306
  i0__namespace.ɵɵtext(2);
26176
26307
  i0__namespace.ɵɵelementEnd();
26177
26308
  i0__namespace.ɵɵelementEnd();
@@ -26184,7 +26315,7 @@
26184
26315
  }
26185
26316
  function CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_23_Template(rf, ctx) {
26186
26317
  if (rf & 1) {
26187
- i0__namespace.ɵɵelementStart(0, "strong", 22);
26318
+ i0__namespace.ɵɵelementStart(0, "strong", 24);
26188
26319
  i0__namespace.ɵɵtext(1);
26189
26320
  i0__namespace.ɵɵpipe(2, "rpxTranslate");
26190
26321
  i0__namespace.ɵɵelementEnd();
@@ -26196,7 +26327,7 @@
26196
26327
  }
26197
26328
  function CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_24_Template(rf, ctx) {
26198
26329
  if (rf & 1) {
26199
- i0__namespace.ɵɵelementStart(0, "strong", 23);
26330
+ i0__namespace.ɵɵelementStart(0, "strong", 25);
26200
26331
  i0__namespace.ɵɵtext(1);
26201
26332
  i0__namespace.ɵɵpipe(2, "rpxTranslate");
26202
26333
  i0__namespace.ɵɵelementEnd();
@@ -26208,7 +26339,7 @@
26208
26339
  }
26209
26340
  function CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_25_Template(rf, ctx) {
26210
26341
  if (rf & 1) {
26211
- i0__namespace.ɵɵelementStart(0, "strong", 23);
26342
+ i0__namespace.ɵɵelementStart(0, "strong", 26);
26212
26343
  i0__namespace.ɵɵtext(1);
26213
26344
  i0__namespace.ɵɵpipe(2, "rpxTranslate");
26214
26345
  i0__namespace.ɵɵelementEnd();
@@ -26220,7 +26351,7 @@
26220
26351
  }
26221
26352
  function CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_26_Template(rf, ctx) {
26222
26353
  if (rf & 1) {
26223
- i0__namespace.ɵɵelementStart(0, "strong", 24);
26354
+ i0__namespace.ɵɵelementStart(0, "strong", 27);
26224
26355
  i0__namespace.ɵɵtext(1);
26225
26356
  i0__namespace.ɵɵpipe(2, "rpxTranslate");
26226
26357
  i0__namespace.ɵɵelementEnd();
@@ -26262,11 +26393,11 @@
26262
26393
  i0__namespace.ɵɵtext(20);
26263
26394
  i0__namespace.ɵɵpipe(21, "date");
26264
26395
  i0__namespace.ɵɵelementEnd();
26265
- i0__namespace.ɵɵelementStart(22, "td", 17);
26266
- i0__namespace.ɵɵtemplate(23, CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_23_Template, 3, 3, "strong", 18);
26267
- i0__namespace.ɵɵtemplate(24, CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_24_Template, 3, 3, "strong", 19);
26268
- i0__namespace.ɵɵtemplate(25, CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_25_Template, 3, 3, "strong", 19);
26269
- i0__namespace.ɵɵtemplate(26, CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_26_Template, 3, 3, "strong", 20);
26396
+ i0__namespace.ɵɵelementStart(22, "td", 18);
26397
+ i0__namespace.ɵɵtemplate(23, CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_23_Template, 3, 3, "strong", 19);
26398
+ i0__namespace.ɵɵtemplate(24, CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_24_Template, 3, 3, "strong", 20);
26399
+ i0__namespace.ɵɵtemplate(25, CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_25_Template, 3, 3, "strong", 21);
26400
+ i0__namespace.ɵɵtemplate(26, CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_26_Template, 3, 3, "strong", 22);
26270
26401
  i0__namespace.ɵɵelementEnd();
26271
26402
  i0__namespace.ɵɵelementEnd();
26272
26403
  }
@@ -26376,14 +26507,14 @@
26376
26507
  return CaseFlagTableComponent;
26377
26508
  }());
26378
26509
  CaseFlagTableComponent.ɵfac = function CaseFlagTableComponent_Factory(t) { return new (t || CaseFlagTableComponent)(); };
26379
- CaseFlagTableComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFlagTableComponent, selectors: [["ccd-case-flag-table"]], inputs: { tableCaption: "tableCaption", flagData: "flagData", firstColumnHeader: "firstColumnHeader", caseFlagsExternalUser: "caseFlagsExternalUser" }, 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-!-font-weight-bold"], [1, "govuk-tag"], [1, "govuk-tag", "govuk-tag--grey"], [1, "govuk-tag", "govuk-tag--red"]], template: function CaseFlagTableComponent_Template(rf, ctx) {
26510
+ CaseFlagTableComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFlagTableComponent, selectors: [["ccd-case-flag-table"]], inputs: { tableCaption: "tableCaption", flagData: "flagData", firstColumnHeader: "firstColumnHeader", caseFlagsExternalUser: "caseFlagsExternalUser" }, decls: 1, vars: 1, consts: [["class", "govuk-table", 4, "ngIf"], [1, "govuk-table"], ["class", "govuk-table__caption govuk-table__caption--l", 4, "ngIf"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["scope", "col", 1, "govuk-table__header", "col-party-name"], ["scope", "col", 1, "govuk-table__header", "col-comments"], ["scope", "col", 1, "govuk-table__header", "col-creation-date"], ["scope", "col", 1, "govuk-table__header", "col-last-modified"], ["scope", "col", 1, "govuk-table__header", "col-flag-status"], [1, "govuk-table__body"], [4, "ngIf"], ["class", "govuk-table__body", 4, "ngIf"], [1, "govuk-table__caption", "govuk-table__caption--l"], ["colspan", "5"], ["scope", "row", "class", "govuk-table__row", 4, "ngFor", "ngForOf"], ["scope", "row", 1, "govuk-table__row"], [1, "govuk-table__cell"], [1, "govuk-table__cell", "cell-flag-status"], ["class", "govuk-tag govuk-tag--turquoise", 4, "ngIf"], ["class", "govuk-tag govuk-tag--grey", 4, "ngIf"], ["class", "govuk-tag govuk-tag--yellow", 4, "ngIf"], ["class", "govuk-tag govuk-tag--red", 4, "ngIf"], [1, "govuk-!-font-weight-bold"], [1, "govuk-tag", "govuk-tag--turquoise"], [1, "govuk-tag", "govuk-tag--grey"], [1, "govuk-tag", "govuk-tag--yellow"], [1, "govuk-tag", "govuk-tag--red"]], template: function CaseFlagTableComponent_Template(rf, ctx) {
26380
26511
  if (rf & 1) {
26381
26512
  i0__namespace.ɵɵtemplate(0, CaseFlagTableComponent_table_0_Template, 21, 16, "table", 0);
26382
26513
  }
26383
26514
  if (rf & 2) {
26384
26515
  i0__namespace.ɵɵproperty("ngIf", ctx.flagData);
26385
26516
  }
26386
- }, styles: [".govuk-table[_ngcontent-%COMP%] .govuk-table__caption[_ngcontent-%COMP%]{margin-top:10px}.govuk-table[_ngcontent-%COMP%] .govuk-table__head[_ngcontent-%COMP%] .govuk-table__row[_ngcontent-%COMP%] .col-party-name[_ngcontent-%COMP%]{width:24%}.govuk-table[_ngcontent-%COMP%] .govuk-table__head[_ngcontent-%COMP%] .govuk-table__row[_ngcontent-%COMP%] .col-comments[_ngcontent-%COMP%]{width:42%}.govuk-table[_ngcontent-%COMP%] .govuk-table__head[_ngcontent-%COMP%] .govuk-table__row[_ngcontent-%COMP%] .col-creation-date[_ngcontent-%COMP%], .govuk-table[_ngcontent-%COMP%] .govuk-table__head[_ngcontent-%COMP%] .govuk-table__row[_ngcontent-%COMP%] .col-last-modified[_ngcontent-%COMP%]{width:12%}.govuk-table[_ngcontent-%COMP%] .govuk-table__head[_ngcontent-%COMP%] .govuk-table__row[_ngcontent-%COMP%] .col-flag-status[_ngcontent-%COMP%]{width:10%}"] });
26517
+ }, styles: [".govuk-table[_ngcontent-%COMP%] .govuk-table__caption[_ngcontent-%COMP%]{margin-top:10px}.govuk-table[_ngcontent-%COMP%] .govuk-table__head[_ngcontent-%COMP%] .govuk-table__row[_ngcontent-%COMP%] .col-party-name[_ngcontent-%COMP%]{width:24%}.govuk-table[_ngcontent-%COMP%] .govuk-table__head[_ngcontent-%COMP%] .govuk-table__row[_ngcontent-%COMP%] .col-comments[_ngcontent-%COMP%]{width:42%}.govuk-table[_ngcontent-%COMP%] .govuk-table__head[_ngcontent-%COMP%] .govuk-table__row[_ngcontent-%COMP%] .col-creation-date[_ngcontent-%COMP%], .govuk-table[_ngcontent-%COMP%] .govuk-table__head[_ngcontent-%COMP%] .govuk-table__row[_ngcontent-%COMP%] .col-last-modified[_ngcontent-%COMP%]{width:12%}.govuk-table[_ngcontent-%COMP%] .govuk-table__head[_ngcontent-%COMP%] .govuk-table__row[_ngcontent-%COMP%] .col-flag-status[_ngcontent-%COMP%]{width:10%}.govuk-table[_ngcontent-%COMP%] .govuk-table__body[_ngcontent-%COMP%] .govuk-table__row[_ngcontent-%COMP%] .cell-flag-status[_ngcontent-%COMP%]{white-space:nowrap}"] });
26387
26518
  (function () {
26388
26519
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFlagTableComponent, [{
26389
26520
  type: i0.Component,
@@ -27094,9 +27225,14 @@
27094
27225
  exports.CaseFlagWizardStepTitle.SELECT_FLAG_LOCATION_EXTERNAL : exports.CaseFlagWizardStepTitle.SELECT_FLAG_LOCATION;
27095
27226
  // Filter out any flags instances that don't have a party name, unless the instance is for case-level flags (this
27096
27227
  // is expected not to have a party name)
27228
+ // Also de-duplicate flags instances where the groupId, if present, is the same
27097
27229
  if (this.flagsData) {
27098
27230
  this.filteredFlagsData =
27099
- this.flagsData.filter(function (f) { return f.flags.partyName !== null || f.pathToFlagsFormGroup === _this.caseLevelCaseFlagsFieldId; });
27231
+ this.flagsData
27232
+ .filter(function (f) { return f.flags.partyName !== null || f.pathToFlagsFormGroup === _this.caseLevelCaseFlagsFieldId; })
27233
+ .filter(function (value, index, partyLevelFlags) { return !value.flags.groupId
27234
+ ? value
27235
+ : partyLevelFlags.findIndex(function (p) { return p.flags.groupId === value.flags.groupId; }) === index; });
27100
27236
  }
27101
27237
  // Add a FormControl for the selected flag location if there is at least one flags instance remaining after filtering
27102
27238
  if (this.filteredFlagsData && this.filteredFlagsData.length > 0) {
@@ -27259,12 +27395,13 @@
27259
27395
  i0__namespace.ɵɵelementContainerStart(0);
27260
27396
  i0__namespace.ɵɵtext(1);
27261
27397
  i0__namespace.ɵɵpipe(2, "rpxTranslate");
27398
+ i0__namespace.ɵɵpipe(3, "rpxTranslate");
27262
27399
  i0__namespace.ɵɵelementContainerEnd();
27263
27400
  }
27264
27401
  if (rf & 2) {
27265
27402
  var ctx_r2 = i0__namespace.ɵɵnextContext(2);
27266
27403
  i0__namespace.ɵɵadvance(1);
27267
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, ctx_r2.caseFlagWizardStepTitle.SELECT_CASE_FLAG), " ");
27404
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx_r2.isDisplayContextParameterExternal ? i0__namespace.ɵɵpipeBind1(2, 1, ctx_r2.caseFlagWizardStepTitle.SELECT_CASE_FLAG_EXTERNAL) : i0__namespace.ɵɵpipeBind1(3, 3, ctx_r2.caseFlagWizardStepTitle.SELECT_CASE_FLAG), " ");
27268
27405
  }
27269
27406
  }
27270
27407
  function SelectFlagTypeComponent_ng_container_0_ng_template_6_Template(rf, ctx) {
@@ -27319,7 +27456,7 @@
27319
27456
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(4, 6, flagType_r8, "name"), " ");
27320
27457
  }
27321
27458
  }
27322
- function SelectFlagTypeComponent_ng_container_0_div_11_div_5_Template(rf, ctx) {
27459
+ function SelectFlagTypeComponent_ng_container_0_div_11_div_6_Template(rf, ctx) {
27323
27460
  if (rf & 1) {
27324
27461
  i0__namespace.ɵɵelementStart(0, "div", 23);
27325
27462
  i0__namespace.ɵɵelementStart(1, "span", 14);
@@ -27338,7 +27475,7 @@
27338
27475
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r10.flagTypeErrorMessage), " ");
27339
27476
  }
27340
27477
  }
27341
- function SelectFlagTypeComponent_ng_container_0_div_11_div_7_Template(rf, ctx) {
27478
+ function SelectFlagTypeComponent_ng_container_0_div_11_div_8_Template(rf, ctx) {
27342
27479
  if (rf & 1) {
27343
27480
  i0__namespace.ɵɵelementStart(0, "div", 24);
27344
27481
  i0__namespace.ɵɵelement(1, "input", 25);
@@ -27357,7 +27494,7 @@
27357
27494
  }
27358
27495
  }
27359
27496
  var _c0$m = function (a0) { return { "form-group-error": a0 }; };
27360
- var _c1$6 = function (a0) { return { "govuk-input--error": a0 }; };
27497
+ var _c1$7 = function (a0) { return { "govuk-input--error": a0 }; };
27361
27498
  function SelectFlagTypeComponent_ng_container_0_div_11_Template(rf, ctx) {
27362
27499
  if (rf & 1) {
27363
27500
  i0__namespace.ɵɵelementStart(0, "div", 18);
@@ -27365,25 +27502,26 @@
27365
27502
  i0__namespace.ɵɵelementStart(2, "label", 19);
27366
27503
  i0__namespace.ɵɵtext(3);
27367
27504
  i0__namespace.ɵɵpipe(4, "rpxTranslate");
27505
+ i0__namespace.ɵɵpipe(5, "rpxTranslate");
27368
27506
  i0__namespace.ɵɵelementEnd();
27369
- i0__namespace.ɵɵtemplate(5, SelectFlagTypeComponent_ng_container_0_div_11_div_5_Template, 6, 6, "div", 20);
27370
- i0__namespace.ɵɵelement(6, "input", 21);
27371
- i0__namespace.ɵɵtemplate(7, SelectFlagTypeComponent_ng_container_0_div_11_div_7_Template, 5, 5, "div", 22);
27507
+ i0__namespace.ɵɵtemplate(6, SelectFlagTypeComponent_ng_container_0_div_11_div_6_Template, 6, 6, "div", 20);
27508
+ i0__namespace.ɵɵelement(7, "input", 21);
27509
+ i0__namespace.ɵɵtemplate(8, SelectFlagTypeComponent_ng_container_0_div_11_div_8_Template, 5, 5, "div", 22);
27372
27510
  i0__namespace.ɵɵelementEnd();
27373
27511
  i0__namespace.ɵɵelementEnd();
27374
27512
  }
27375
27513
  if (rf & 2) {
27376
27514
  var ctx_r7 = i0__namespace.ɵɵnextContext(2);
27377
27515
  i0__namespace.ɵɵadvance(1);
27378
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$m, ctx_r7.flagTypeErrorMessage.length > 0));
27379
- i0__namespace.ɵɵadvance(2);
27380
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 7, "Enter a flag type"));
27516
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$m, ctx_r7.flagTypeErrorMessage.length > 0));
27381
27517
  i0__namespace.ɵɵadvance(2);
27518
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx_r7.isDisplayContextParameterExternal ? i0__namespace.ɵɵpipeBind1(4, 7, ctx_r7.caseFlagWizardStepTitle.OTHER_FLAG_TYPE_DESCRIPTION_EXTERNAL) : i0__namespace.ɵɵpipeBind1(5, 9, ctx_r7.caseFlagWizardStepTitle.OTHER_FLAG_TYPE_DESCRIPTION), " ");
27519
+ i0__namespace.ɵɵadvance(3);
27382
27520
  i0__namespace.ɵɵproperty("ngIf", ctx_r7.flagTypeErrorMessage.length > 0);
27383
27521
  i0__namespace.ɵɵadvance(1);
27384
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c1$6, ctx_r7.flagTypeErrorMessage.length > 0))("name", ctx_r7.caseFlagFormField.OTHER_FLAG_DESCRIPTION)("formControlName", ctx_r7.caseFlagFormField.OTHER_FLAG_DESCRIPTION);
27522
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(13, _c1$7, ctx_r7.flagTypeErrorMessage.length > 0))("name", ctx_r7.caseFlagFormField.OTHER_FLAG_DESCRIPTION)("formControlName", ctx_r7.caseFlagFormField.OTHER_FLAG_DESCRIPTION);
27385
27523
  i0__namespace.ɵɵadvance(1);
27386
- i0__namespace.ɵɵproperty("ngIf", !ctx_r7.isDisplayContextParameterExternal && !ctx_r7.isCaseLevelFlag);
27524
+ i0__namespace.ɵɵproperty("ngIf", !ctx_r7.isDisplayContextParameterExternal && !ctx_r7.isCaseLevelFlag && ctx_r7.isDisplayContextParameter2Point1Enabled);
27387
27525
  }
27388
27526
  }
27389
27527
  function SelectFlagTypeComponent_ng_container_0_Template(rf, ctx) {
@@ -27393,14 +27531,14 @@
27393
27531
  i0__namespace.ɵɵelementStart(2, "fieldset", 4);
27394
27532
  i0__namespace.ɵɵelementStart(3, "legend", 5);
27395
27533
  i0__namespace.ɵɵelementStart(4, "h1", 6);
27396
- i0__namespace.ɵɵtemplate(5, SelectFlagTypeComponent_ng_container_0_ng_container_5_Template, 3, 3, "ng-container", 7);
27534
+ i0__namespace.ɵɵtemplate(5, SelectFlagTypeComponent_ng_container_0_ng_container_5_Template, 4, 5, "ng-container", 7);
27397
27535
  i0__namespace.ɵɵtemplate(6, SelectFlagTypeComponent_ng_container_0_ng_template_6_Template, 2, 4, "ng-template", null, 8, i0__namespace.ɵɵtemplateRefExtractor);
27398
27536
  i0__namespace.ɵɵelementEnd();
27399
27537
  i0__namespace.ɵɵelementEnd();
27400
27538
  i0__namespace.ɵɵtemplate(8, SelectFlagTypeComponent_ng_container_0_div_8_Template, 6, 6, "div", 9);
27401
27539
  i0__namespace.ɵɵelementStart(9, "div", 10);
27402
27540
  i0__namespace.ɵɵtemplate(10, SelectFlagTypeComponent_ng_container_0_div_10_Template, 5, 9, "div", 11);
27403
- i0__namespace.ɵɵtemplate(11, SelectFlagTypeComponent_ng_container_0_div_11_Template, 8, 13, "div", 12);
27541
+ i0__namespace.ɵɵtemplate(11, SelectFlagTypeComponent_ng_container_0_div_11_Template, 9, 15, "div", 12);
27404
27542
  i0__namespace.ɵɵelementEnd();
27405
27543
  i0__namespace.ɵɵelementEnd();
27406
27544
  i0__namespace.ɵɵelementEnd();
@@ -27442,6 +27580,7 @@
27442
27580
  function SelectFlagTypeComponent(caseFlagRefdataService) {
27443
27581
  this.caseFlagRefdataService = caseFlagRefdataService;
27444
27582
  this.isDisplayContextParameterExternal = false;
27583
+ this.isDisplayContextParameter2Point1Enabled = false;
27445
27584
  this.caseFlagStateEmitter = new i0.EventEmitter();
27446
27585
  this.flagCommentsOptionalEmitter = new i0.EventEmitter();
27447
27586
  this.flagTypeNotSelectedErrorMessage = '';
@@ -27566,17 +27705,25 @@
27566
27705
  this.errorMessages = [];
27567
27706
  if (!this.selectedFlagType) {
27568
27707
  // If there is any prior flag type selection then the message will differ
27569
- var errorMessage = !this.cachedFlagType
27570
- ? exports.SelectFlagTypeErrorMessage.FLAG_TYPE_NOT_SELECTED
27571
- : exports.SelectFlagTypeErrorMessage.FLAG_TYPE_OPTION_NOT_SELECTED;
27708
+ var errorMessage = '';
27709
+ if (this.cachedFlagType) {
27710
+ errorMessage = exports.SelectFlagTypeErrorMessage.FLAG_TYPE_OPTION_NOT_SELECTED;
27711
+ }
27712
+ else {
27713
+ errorMessage = this.isDisplayContextParameterExternal
27714
+ ? exports.SelectFlagTypeErrorMessage.FLAG_TYPE_NOT_SELECTED_EXTERNAL
27715
+ : exports.SelectFlagTypeErrorMessage.FLAG_TYPE_NOT_SELECTED;
27716
+ }
27572
27717
  this.flagTypeNotSelectedErrorMessage = errorMessage;
27573
27718
  this.errorMessages.push({ title: '', description: errorMessage, fieldId: 'conditional-radios-list' });
27574
27719
  }
27575
27720
  if (this.otherFlagTypeSelected) {
27576
27721
  var otherFlagTypeDescription = this.formGroup.get(exports.CaseFlagFormFields.OTHER_FLAG_DESCRIPTION).value;
27577
27722
  if (!otherFlagTypeDescription) {
27578
- this.flagTypeErrorMessage = exports.SelectFlagTypeErrorMessage.FLAG_TYPE_NOT_ENTERED;
27579
- this.errorMessages.push({ title: '', description: "" + exports.SelectFlagTypeErrorMessage.FLAG_TYPE_NOT_ENTERED, fieldId: 'other-flag-type-description' });
27723
+ this.flagTypeErrorMessage = this.isDisplayContextParameterExternal
27724
+ ? exports.SelectFlagTypeErrorMessage.FLAG_TYPE_NOT_ENTERED_EXTERNAL
27725
+ : exports.SelectFlagTypeErrorMessage.FLAG_TYPE_NOT_ENTERED;
27726
+ this.errorMessages.push({ title: '', description: "" + this.flagTypeErrorMessage, fieldId: 'other-flag-type-description' });
27580
27727
  }
27581
27728
  if (otherFlagTypeDescription.length > this.maxCharactersForOtherFlagType) {
27582
27729
  this.flagTypeErrorMessage = exports.SelectFlagTypeErrorMessage.FLAG_TYPE_LIMIT_EXCEEDED;
@@ -27610,7 +27757,7 @@
27610
27757
  return SelectFlagTypeComponent;
27611
27758
  }());
27612
27759
  SelectFlagTypeComponent.ɵfac = function SelectFlagTypeComponent_Factory(t) { return new (t || SelectFlagTypeComponent)(i0__namespace.ɵɵdirectiveInject(CaseFlagRefdataService)); };
27613
- SelectFlagTypeComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: SelectFlagTypeComponent, selectors: [["ccd-select-flag-type"]], inputs: { formGroup: "formGroup", jurisdiction: "jurisdiction", caseTypeId: "caseTypeId", hmctsServiceId: "hmctsServiceId", isDisplayContextParameterExternal: "isDisplayContextParameterExternal", selectedFlagsLocation: "selectedFlagsLocation" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter", flagCommentsOptionalEmitter: "flagCommentsOptionalEmitter" }, decls: 2, vars: 2, consts: [[3, "formGroup", 4, "ngIf"], ["class", "govuk-button-group", 4, "ngIf"], [3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "flag-type-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--m"], ["id", "flag-type-heading", 1, "govuk-fieldset__heading", "govuk-!-margin-bottom-1"], [4, "ngIf", "ngIfElse"], ["priorFlagTypeSelected", ""], ["id", "flag-type-not-selected-error-message", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", "id", "conditional-radios-list", 1, "govuk-radios", "govuk-radios--conditional"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf", "ngForTrackBy"], ["class", "govuk-radios__conditional", "id", "conditional-flagType", 4, "ngIf"], ["id", "flag-type-not-selected-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "value", "formControlName"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["id", "conditional-flagType", 1, "govuk-radios__conditional"], ["for", "other-flag-type-description", 1, "govuk-label"], ["id", "flag-type-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "other-flag-type-description", "type", "text", 1, "govuk-input", "govuk-!-width-one-half", 3, "ngClass", "name", "formControlName"], ["class", "govuk-checkboxes__item govuk-!-margin-top-4", 4, "ngIf"], ["id", "flag-type-error-message", 1, "govuk-error-message"], [1, "govuk-checkboxes__item", "govuk-!-margin-top-4"], ["id", "is-visible-externally", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "name", "formControlName"], ["for", "is-visible-externally", 1, "govuk-label", "govuk-checkboxes__label"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"]], template: function SelectFlagTypeComponent_Template(rf, ctx) {
27760
+ SelectFlagTypeComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: SelectFlagTypeComponent, selectors: [["ccd-select-flag-type"]], inputs: { formGroup: "formGroup", jurisdiction: "jurisdiction", caseTypeId: "caseTypeId", hmctsServiceId: "hmctsServiceId", isDisplayContextParameterExternal: "isDisplayContextParameterExternal", isDisplayContextParameter2Point1Enabled: "isDisplayContextParameter2Point1Enabled", selectedFlagsLocation: "selectedFlagsLocation" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter", flagCommentsOptionalEmitter: "flagCommentsOptionalEmitter" }, decls: 2, vars: 2, consts: [[3, "formGroup", 4, "ngIf"], ["class", "govuk-button-group", 4, "ngIf"], [3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "flag-type-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--m"], ["id", "flag-type-heading", 1, "govuk-fieldset__heading", "govuk-!-margin-bottom-1"], [4, "ngIf", "ngIfElse"], ["priorFlagTypeSelected", ""], ["id", "flag-type-not-selected-error-message", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", "id", "conditional-radios-list", 1, "govuk-radios", "govuk-radios--conditional"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf", "ngForTrackBy"], ["class", "govuk-radios__conditional", "id", "conditional-flagType", 4, "ngIf"], ["id", "flag-type-not-selected-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "value", "formControlName"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["id", "conditional-flagType", 1, "govuk-radios__conditional"], ["for", "other-flag-type-description", 1, "govuk-label"], ["id", "flag-type-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "other-flag-type-description", "type", "text", 1, "govuk-input", "govuk-!-width-one-half", 3, "ngClass", "name", "formControlName"], ["class", "govuk-checkboxes__item govuk-!-margin-top-4", 4, "ngIf"], ["id", "flag-type-error-message", 1, "govuk-error-message"], [1, "govuk-checkboxes__item", "govuk-!-margin-top-4"], ["id", "is-visible-externally", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "name", "formControlName"], ["for", "is-visible-externally", 1, "govuk-label", "govuk-checkboxes__label"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"]], template: function SelectFlagTypeComponent_Template(rf, ctx) {
27614
27761
  if (rf & 1) {
27615
27762
  i0__namespace.ɵɵtemplate(0, SelectFlagTypeComponent_ng_container_0_Template, 12, 10, "ng-container", 0);
27616
27763
  i0__namespace.ɵɵtemplate(1, SelectFlagTypeComponent_div_1_Template, 4, 3, "div", 1);
@@ -27639,6 +27786,8 @@
27639
27786
  type: i0.Input
27640
27787
  }], isDisplayContextParameterExternal: [{
27641
27788
  type: i0.Input
27789
+ }], isDisplayContextParameter2Point1Enabled: [{
27790
+ type: i0.Input
27642
27791
  }], selectedFlagsLocation: [{
27643
27792
  type: i0.Input
27644
27793
  }], caseFlagStateEmitter: [{
@@ -27650,7 +27799,7 @@
27650
27799
 
27651
27800
  function UpdateFlagComponent_div_7_Template(rf, ctx) {
27652
27801
  if (rf & 1) {
27653
- i0__namespace.ɵɵelementStart(0, "div", 8);
27802
+ i0__namespace.ɵɵelementStart(0, "div", 17);
27654
27803
  i0__namespace.ɵɵtext(1);
27655
27804
  i0__namespace.ɵɵpipe(2, "updateFlagTitleDisplay");
27656
27805
  i0__namespace.ɵɵelementEnd();
@@ -27661,14 +27810,27 @@
27661
27810
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, ctx_r0.selectedFlag == null ? null : ctx_r0.selectedFlag.flagDetailDisplay == null ? null : ctx_r0.selectedFlag.flagDetailDisplay.flagDetail), " ");
27662
27811
  }
27663
27812
  }
27664
- function UpdateFlagComponent_div_16_Template(rf, ctx) {
27813
+ function UpdateFlagComponent_div_13_Template(rf, ctx) {
27665
27814
  if (rf & 1) {
27666
27815
  i0__namespace.ɵɵelementStart(0, "div", 18);
27667
- i0__namespace.ɵɵelementStart(1, "span", 19);
27816
+ i0__namespace.ɵɵtext(1);
27817
+ i0__namespace.ɵɵpipe(2, "rpxTranslate");
27818
+ i0__namespace.ɵɵelementEnd();
27819
+ }
27820
+ if (rf & 2) {
27821
+ var ctx_r1 = i0__namespace.ɵɵnextContext();
27822
+ i0__namespace.ɵɵadvance(1);
27823
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, ctx_r1.updateFlagStepEnum.COMMENT_HINT_TEXT_EXTERNAL), " ");
27824
+ }
27825
+ }
27826
+ function UpdateFlagComponent_ng_container_14_div_5_Template(rf, ctx) {
27827
+ if (rf & 1) {
27828
+ i0__namespace.ɵɵelementStart(0, "div", 25);
27829
+ i0__namespace.ɵɵelementStart(1, "span", 26);
27668
27830
  i0__namespace.ɵɵtext(2, "!");
27669
27831
  i0__namespace.ɵɵelementEnd();
27670
- i0__namespace.ɵɵelementStart(3, "strong", 20);
27671
- i0__namespace.ɵɵelementStart(4, "span", 21);
27832
+ i0__namespace.ɵɵelementStart(3, "strong", 27);
27833
+ i0__namespace.ɵɵelementStart(4, "span", 28);
27672
27834
  i0__namespace.ɵɵtext(5);
27673
27835
  i0__namespace.ɵɵpipe(6, "rpxTranslate");
27674
27836
  i0__namespace.ɵɵelementEnd();
@@ -27678,17 +27840,17 @@
27678
27840
  i0__namespace.ɵɵelementEnd();
27679
27841
  }
27680
27842
  if (rf & 2) {
27681
- var ctx_r1 = i0__namespace.ɵɵnextContext();
27843
+ var ctx_r10 = i0__namespace.ɵɵnextContext(2);
27682
27844
  i0__namespace.ɵɵadvance(5);
27683
27845
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(6, 2, "Warning"));
27684
27846
  i0__namespace.ɵɵadvance(2);
27685
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(8, 4, ctx_r1.updateFlagStepEnum.WARNING_TEXT), " ");
27847
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(8, 4, ctx_r10.updateFlagStepEnum.WARNING_TEXT), " ");
27686
27848
  }
27687
27849
  }
27688
- function UpdateFlagComponent_div_17_Template(rf, ctx) {
27850
+ function UpdateFlagComponent_ng_container_14_div_6_Template(rf, ctx) {
27689
27851
  if (rf & 1) {
27690
- i0__namespace.ɵɵelementStart(0, "div", 22);
27691
- i0__namespace.ɵɵelementStart(1, "span", 23);
27852
+ i0__namespace.ɵɵelementStart(0, "div", 29);
27853
+ i0__namespace.ɵɵelementStart(1, "span", 30);
27692
27854
  i0__namespace.ɵɵtext(2);
27693
27855
  i0__namespace.ɵɵpipe(3, "rpxTranslate");
27694
27856
  i0__namespace.ɵɵelementEnd();
@@ -27697,17 +27859,17 @@
27697
27859
  i0__namespace.ɵɵelementEnd();
27698
27860
  }
27699
27861
  if (rf & 2) {
27700
- var ctx_r2 = i0__namespace.ɵɵnextContext();
27862
+ var ctx_r11 = i0__namespace.ɵɵnextContext(2);
27701
27863
  i0__namespace.ɵɵadvance(2);
27702
27864
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "Error:"));
27703
27865
  i0__namespace.ɵɵadvance(2);
27704
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r2.updateFlagNotEnteredErrorMessage), " ");
27866
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r11.commentsNotEnteredErrorMessage), " ");
27705
27867
  }
27706
27868
  }
27707
- function UpdateFlagComponent_div_18_Template(rf, ctx) {
27869
+ function UpdateFlagComponent_ng_container_14_div_7_Template(rf, ctx) {
27708
27870
  if (rf & 1) {
27709
- i0__namespace.ɵɵelementStart(0, "div", 24);
27710
- i0__namespace.ɵɵelementStart(1, "span", 23);
27871
+ i0__namespace.ɵɵelementStart(0, "div", 31);
27872
+ i0__namespace.ɵɵelementStart(1, "span", 30);
27711
27873
  i0__namespace.ɵɵtext(2);
27712
27874
  i0__namespace.ɵɵpipe(3, "rpxTranslate");
27713
27875
  i0__namespace.ɵɵelementEnd();
@@ -27716,38 +27878,80 @@
27716
27878
  i0__namespace.ɵɵelementEnd();
27717
27879
  }
27718
27880
  if (rf & 2) {
27719
- var ctx_r3 = i0__namespace.ɵɵnextContext();
27881
+ var ctx_r12 = i0__namespace.ɵɵnextContext(2);
27720
27882
  i0__namespace.ɵɵadvance(2);
27721
27883
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "Error:"));
27722
27884
  i0__namespace.ɵɵadvance(2);
27723
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r3.updateFlagCharLimitErrorMessage), " ");
27885
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r12.commentsCharLimitErrorMessage), " ");
27724
27886
  }
27725
27887
  }
27726
- function UpdateFlagComponent_div_24_div_8_Template(rf, ctx) {
27888
+ function UpdateFlagComponent_ng_container_14_Template(rf, ctx) {
27727
27889
  if (rf & 1) {
27728
- i0__namespace.ɵɵelementStart(0, "div", 36);
27729
- i0__namespace.ɵɵelement(1, "input", 37);
27730
- i0__namespace.ɵɵelementStart(2, "label", 38);
27731
- i0__namespace.ɵɵtext(3);
27890
+ i0__namespace.ɵɵelementContainerStart(0);
27891
+ i0__namespace.ɵɵelementStart(1, "div", 19);
27892
+ i0__namespace.ɵɵtext(2);
27893
+ i0__namespace.ɵɵpipe(3, "rpxTranslate");
27732
27894
  i0__namespace.ɵɵpipe(4, "rpxTranslate");
27733
27895
  i0__namespace.ɵɵelementEnd();
27896
+ i0__namespace.ɵɵtemplate(5, UpdateFlagComponent_ng_container_14_div_5_Template, 9, 6, "div", 20);
27897
+ i0__namespace.ɵɵtemplate(6, UpdateFlagComponent_ng_container_14_div_6_Template, 6, 6, "div", 21);
27898
+ i0__namespace.ɵɵtemplate(7, UpdateFlagComponent_ng_container_14_div_7_Template, 6, 6, "div", 22);
27899
+ i0__namespace.ɵɵelementStart(8, "textarea", 23);
27900
+ i0__namespace.ɵɵtext(9, " ");
27901
+ i0__namespace.ɵɵelementEnd();
27902
+ i0__namespace.ɵɵelementStart(10, "div", 24);
27903
+ i0__namespace.ɵɵtext(11);
27904
+ i0__namespace.ɵɵpipe(12, "rpxTranslate");
27734
27905
  i0__namespace.ɵɵelementEnd();
27906
+ i0__namespace.ɵɵelementContainerEnd();
27735
27907
  }
27736
27908
  if (rf & 2) {
27737
- var status_r9 = ctx.$implicit;
27738
- var ctx_r6 = i0__namespace.ɵɵnextContext(2);
27909
+ var ctx_r2 = i0__namespace.ɵɵnextContext();
27910
+ i0__namespace.ɵɵadvance(2);
27911
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx_r2.internalUserUpdate ? i0__namespace.ɵɵpipeBind1(3, 8, ctx_r2.updateFlagStepEnum.COMMENT_HINT_TEXT_INTERNAL) : i0__namespace.ɵɵpipeBind1(4, 10, ctx_r2.updateFlagStepEnum.COMMENT_HINT_TEXT_INTERNAL_2_POINT_1), " ");
27912
+ i0__namespace.ɵɵadvance(3);
27913
+ i0__namespace.ɵɵproperty("ngIf", ctx_r2.internalUser2Point1EnabledUpdate);
27739
27914
  i0__namespace.ɵɵadvance(1);
27740
- i0__namespace.ɵɵproperty("id", ctx_r6.caseFlagFormFields.STATUS + "_" + status_r9)("name", ctx_r6.caseFlagFormFields.STATUS)("formControlName", ctx_r6.caseFlagFormFields.STATUS)("value", status_r9);
27915
+ i0__namespace.ɵɵproperty("ngIf", ctx_r2.commentsNotEnteredErrorMessage);
27741
27916
  i0__namespace.ɵɵadvance(1);
27742
- i0__namespace.ɵɵproperty("for", ctx_r6.caseFlagFormFields.STATUS + "_" + status_r9);
27917
+ i0__namespace.ɵɵproperty("ngIf", ctx_r2.commentsCharLimitErrorMessage);
27743
27918
  i0__namespace.ɵɵadvance(1);
27744
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(4, 6, ctx_r6.caseFlagStatusEnum[status_r9]), " ");
27919
+ i0__namespace.ɵɵproperty("id", ctx_r2.caseFlagFormFields.COMMENTS)("name", ctx_r2.caseFlagFormFields.COMMENTS)("formControlName", ctx_r2.caseFlagFormFields.COMMENTS);
27920
+ i0__namespace.ɵɵadvance(3);
27921
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(12, 12, ctx_r2.updateFlagStepEnum.CHARACTER_LIMIT_INFO), " ");
27745
27922
  }
27746
27923
  }
27747
- function UpdateFlagComponent_div_24_div_12_Template(rf, ctx) {
27924
+ function UpdateFlagComponent_ng_template_15_ng_container_0_ng_container_1_Template(rf, ctx) {
27748
27925
  if (rf & 1) {
27749
- i0__namespace.ɵɵelementStart(0, "div", 39);
27750
- i0__namespace.ɵɵelementStart(1, "span", 23);
27926
+ i0__namespace.ɵɵelementContainer(0);
27927
+ }
27928
+ }
27929
+ function UpdateFlagComponent_ng_template_15_ng_container_0_Template(rf, ctx) {
27930
+ if (rf & 1) {
27931
+ i0__namespace.ɵɵelementContainerStart(0);
27932
+ i0__namespace.ɵɵtemplate(1, UpdateFlagComponent_ng_template_15_ng_container_0_ng_container_1_Template, 1, 0, "ng-container", 33);
27933
+ i0__namespace.ɵɵelementContainerEnd();
27934
+ }
27935
+ if (rf & 2) {
27936
+ i0__namespace.ɵɵnextContext(2);
27937
+ var _r5 = i0__namespace.ɵɵreference(18);
27938
+ i0__namespace.ɵɵadvance(1);
27939
+ i0__namespace.ɵɵproperty("ngTemplateOutlet", _r5);
27940
+ }
27941
+ }
27942
+ function UpdateFlagComponent_ng_template_15_Template(rf, ctx) {
27943
+ if (rf & 1) {
27944
+ i0__namespace.ɵɵtemplate(0, UpdateFlagComponent_ng_template_15_ng_container_0_Template, 2, 1, "ng-container", 32);
27945
+ }
27946
+ if (rf & 2) {
27947
+ var ctx_r4 = i0__namespace.ɵɵnextContext();
27948
+ i0__namespace.ɵɵproperty("ngIf", ctx_r4.externalUserUpdate);
27949
+ }
27950
+ }
27951
+ function UpdateFlagComponent_ng_template_17_div_0_Template(rf, ctx) {
27952
+ if (rf & 1) {
27953
+ i0__namespace.ɵɵelementStart(0, "div", 38);
27954
+ i0__namespace.ɵɵelementStart(1, "span", 30);
27751
27955
  i0__namespace.ɵɵtext(2);
27752
27956
  i0__namespace.ɵɵpipe(3, "rpxTranslate");
27753
27957
  i0__namespace.ɵɵelementEnd();
@@ -27756,17 +27960,17 @@
27756
27960
  i0__namespace.ɵɵelementEnd();
27757
27961
  }
27758
27962
  if (rf & 2) {
27759
- var ctx_r7 = i0__namespace.ɵɵnextContext(2);
27963
+ var ctx_r15 = i0__namespace.ɵɵnextContext(2);
27760
27964
  i0__namespace.ɵɵadvance(2);
27761
27965
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "Error:"));
27762
27966
  i0__namespace.ɵɵadvance(2);
27763
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r7.statusReasonNotEnteredErrorMessage), " ");
27967
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r15.statusReasonNotEnteredErrorMessage), " ");
27764
27968
  }
27765
27969
  }
27766
- function UpdateFlagComponent_div_24_div_13_Template(rf, ctx) {
27970
+ function UpdateFlagComponent_ng_template_17_div_1_Template(rf, ctx) {
27767
27971
  if (rf & 1) {
27768
- i0__namespace.ɵɵelementStart(0, "div", 40);
27769
- i0__namespace.ɵɵelementStart(1, "span", 23);
27972
+ i0__namespace.ɵɵelementStart(0, "div", 39);
27973
+ i0__namespace.ɵɵelementStart(1, "span", 30);
27770
27974
  i0__namespace.ɵɵtext(2);
27771
27975
  i0__namespace.ɵɵpipe(3, "rpxTranslate");
27772
27976
  i0__namespace.ɵɵelementEnd();
@@ -27775,70 +27979,106 @@
27775
27979
  i0__namespace.ɵɵelementEnd();
27776
27980
  }
27777
27981
  if (rf & 2) {
27778
- var ctx_r8 = i0__namespace.ɵɵnextContext(2);
27982
+ var ctx_r16 = i0__namespace.ɵɵnextContext(2);
27779
27983
  i0__namespace.ɵɵadvance(2);
27780
27984
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "Error:"));
27781
27985
  i0__namespace.ɵɵadvance(2);
27782
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r8.statusReasonCharLimitErrorMessage), " ");
27986
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r16.statusReasonCharLimitErrorMessage), " ");
27783
27987
  }
27784
27988
  }
27785
- function UpdateFlagComponent_div_24_Template(rf, ctx) {
27989
+ function UpdateFlagComponent_ng_template_17_Template(rf, ctx) {
27786
27990
  if (rf & 1) {
27787
- i0__namespace.ɵɵelementStart(0, "div", 25);
27788
- i0__namespace.ɵɵelementStart(1, "fieldset", 26);
27789
- i0__namespace.ɵɵelementStart(2, "legend", 27);
27790
- i0__namespace.ɵɵelementStart(3, "h1", 28);
27991
+ i0__namespace.ɵɵtemplate(0, UpdateFlagComponent_ng_template_17_div_0_Template, 6, 6, "div", 34);
27992
+ i0__namespace.ɵɵtemplate(1, UpdateFlagComponent_ng_template_17_div_1_Template, 6, 6, "div", 35);
27993
+ i0__namespace.ɵɵelementStart(2, "textarea", 36);
27994
+ i0__namespace.ɵɵtext(3, " ");
27995
+ i0__namespace.ɵɵelementEnd();
27996
+ i0__namespace.ɵɵelementStart(4, "div", 37);
27997
+ i0__namespace.ɵɵtext(5);
27998
+ i0__namespace.ɵɵpipe(6, "rpxTranslate");
27999
+ i0__namespace.ɵɵelementEnd();
28000
+ }
28001
+ if (rf & 2) {
28002
+ var ctx_r6 = i0__namespace.ɵɵnextContext();
28003
+ i0__namespace.ɵɵproperty("ngIf", ctx_r6.statusReasonNotEnteredErrorMessage);
28004
+ i0__namespace.ɵɵadvance(1);
28005
+ i0__namespace.ɵɵproperty("ngIf", ctx_r6.statusReasonCharLimitErrorMessage);
28006
+ i0__namespace.ɵɵadvance(1);
28007
+ i0__namespace.ɵɵproperty("id", ctx_r6.caseFlagFormFields.STATUS_CHANGE_REASON)("name", ctx_r6.caseFlagFormFields.STATUS_CHANGE_REASON)("formControlName", ctx_r6.caseFlagFormFields.STATUS_CHANGE_REASON);
28008
+ i0__namespace.ɵɵadvance(3);
28009
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(6, 6, ctx_r6.updateFlagStepEnum.CHARACTER_LIMIT_INFO), " ");
28010
+ }
28011
+ }
28012
+ function UpdateFlagComponent_div_19_div_8_Template(rf, ctx) {
28013
+ if (rf & 1) {
28014
+ i0__namespace.ɵɵelementStart(0, "div", 47);
28015
+ i0__namespace.ɵɵelement(1, "input", 48);
28016
+ i0__namespace.ɵɵelementStart(2, "label", 49);
28017
+ i0__namespace.ɵɵtext(3);
28018
+ i0__namespace.ɵɵpipe(4, "rpxTranslate");
28019
+ i0__namespace.ɵɵelementEnd();
28020
+ i0__namespace.ɵɵelementEnd();
28021
+ }
28022
+ if (rf & 2) {
28023
+ var status_r19 = ctx.$implicit;
28024
+ var ctx_r17 = i0__namespace.ɵɵnextContext(2);
28025
+ i0__namespace.ɵɵadvance(1);
28026
+ i0__namespace.ɵɵproperty("id", ctx_r17.caseFlagFormFields.STATUS + "_" + status_r19)("name", ctx_r17.caseFlagFormFields.STATUS)("formControlName", ctx_r17.caseFlagFormFields.STATUS)("value", status_r19);
28027
+ i0__namespace.ɵɵadvance(1);
28028
+ i0__namespace.ɵɵproperty("for", ctx_r17.caseFlagFormFields.STATUS + "_" + status_r19);
28029
+ i0__namespace.ɵɵadvance(1);
28030
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(4, 6, ctx_r17.caseFlagStatusEnum[status_r19]), " ");
28031
+ }
28032
+ }
28033
+ function UpdateFlagComponent_div_19_ng_container_12_Template(rf, ctx) {
28034
+ if (rf & 1) {
28035
+ i0__namespace.ɵɵelementContainer(0);
28036
+ }
28037
+ }
28038
+ function UpdateFlagComponent_div_19_Template(rf, ctx) {
28039
+ if (rf & 1) {
28040
+ i0__namespace.ɵɵelementStart(0, "div", 40);
28041
+ i0__namespace.ɵɵelementStart(1, "fieldset", 41);
28042
+ i0__namespace.ɵɵelementStart(2, "legend", 42);
28043
+ i0__namespace.ɵɵelementStart(3, "h1", 43);
27791
28044
  i0__namespace.ɵɵtext(4);
27792
28045
  i0__namespace.ɵɵpipe(5, "rpxTranslate");
27793
28046
  i0__namespace.ɵɵpipe(6, "rpxTranslate");
27794
28047
  i0__namespace.ɵɵelementEnd();
27795
28048
  i0__namespace.ɵɵelementEnd();
27796
- i0__namespace.ɵɵelementStart(7, "div", 29);
27797
- i0__namespace.ɵɵtemplate(8, UpdateFlagComponent_div_24_div_8_Template, 5, 8, "div", 30);
28049
+ i0__namespace.ɵɵelementStart(7, "div", 44);
28050
+ i0__namespace.ɵɵtemplate(8, UpdateFlagComponent_div_19_div_8_Template, 5, 8, "div", 45);
27798
28051
  i0__namespace.ɵɵelementEnd();
27799
28052
  i0__namespace.ɵɵelementEnd();
27800
- i0__namespace.ɵɵelementStart(9, "div", 31);
28053
+ i0__namespace.ɵɵelementStart(9, "div", 46);
27801
28054
  i0__namespace.ɵɵtext(10);
27802
28055
  i0__namespace.ɵɵpipe(11, "rpxTranslate");
27803
28056
  i0__namespace.ɵɵelementEnd();
27804
- i0__namespace.ɵɵtemplate(12, UpdateFlagComponent_div_24_div_12_Template, 6, 6, "div", 32);
27805
- i0__namespace.ɵɵtemplate(13, UpdateFlagComponent_div_24_div_13_Template, 6, 6, "div", 33);
27806
- i0__namespace.ɵɵelementStart(14, "textarea", 34);
27807
- i0__namespace.ɵɵtext(15, " ");
27808
- i0__namespace.ɵɵelementEnd();
27809
- i0__namespace.ɵɵelementStart(16, "div", 35);
27810
- i0__namespace.ɵɵtext(17);
27811
- i0__namespace.ɵɵpipe(18, "rpxTranslate");
27812
- i0__namespace.ɵɵelementEnd();
28057
+ i0__namespace.ɵɵtemplate(12, UpdateFlagComponent_div_19_ng_container_12_Template, 1, 0, "ng-container", 33);
27813
28058
  i0__namespace.ɵɵelementEnd();
27814
28059
  }
27815
28060
  if (rf & 2) {
27816
- var ctx_r4 = i0__namespace.ɵɵnextContext();
28061
+ var ctx_r7 = i0__namespace.ɵɵnextContext();
28062
+ var _r5 = i0__namespace.ɵɵreference(18);
27817
28063
  i0__namespace.ɵɵadvance(4);
27818
- i0__namespace.ɵɵtextInterpolate2(" ", i0__namespace.ɵɵpipeBind1(5, 11, ctx_r4.updateFlagTitle), " ", i0__namespace.ɵɵpipeBind1(6, 13, "status"), " ");
28064
+ i0__namespace.ɵɵtextInterpolate2(" ", i0__namespace.ɵɵpipeBind1(5, 6, ctx_r7.updateFlagTitle), " ", i0__namespace.ɵɵpipeBind1(6, 8, "status"), " ");
27819
28065
  i0__namespace.ɵɵadvance(3);
27820
- i0__namespace.ɵɵproperty("id", ctx_r4.caseFlagFormFields.STATUS);
28066
+ i0__namespace.ɵɵproperty("id", ctx_r7.caseFlagFormFields.STATUS);
27821
28067
  i0__namespace.ɵɵadvance(1);
27822
- i0__namespace.ɵɵproperty("ngForOf", ctx_r4.validStatusProgressions);
28068
+ i0__namespace.ɵɵproperty("ngForOf", ctx_r7.validStatusProgressions);
27823
28069
  i0__namespace.ɵɵadvance(2);
27824
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(11, 15, ctx_r4.updateFlagStepEnum.STATUS_HINT_TEXT), " ");
28070
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(11, 10, ctx_r7.updateFlagStepEnum.STATUS_HINT_TEXT), " ");
27825
28071
  i0__namespace.ɵɵadvance(2);
27826
- i0__namespace.ɵɵproperty("ngIf", ctx_r4.statusReasonNotEnteredErrorMessage);
27827
- i0__namespace.ɵɵadvance(1);
27828
- i0__namespace.ɵɵproperty("ngIf", ctx_r4.statusReasonCharLimitErrorMessage);
27829
- i0__namespace.ɵɵadvance(1);
27830
- i0__namespace.ɵɵproperty("id", ctx_r4.caseFlagFormFields.STATUS_CHANGE_REASON)("name", ctx_r4.caseFlagFormFields.STATUS_CHANGE_REASON)("formControlName", ctx_r4.caseFlagFormFields.STATUS_CHANGE_REASON);
27831
- i0__namespace.ɵɵadvance(3);
27832
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(18, 17, ctx_r4.updateFlagStepEnum.CHARACTER_LIMIT_INFO), " ");
28072
+ i0__namespace.ɵɵproperty("ngTemplateOutlet", _r5);
27833
28073
  }
27834
28074
  }
27835
- function UpdateFlagComponent_div_25_Template(rf, ctx) {
28075
+ function UpdateFlagComponent_div_20_Template(rf, ctx) {
27836
28076
  if (rf & 1) {
27837
- i0__namespace.ɵɵelementStart(0, "div", 41);
27838
- i0__namespace.ɵɵelementStart(1, "div", 42);
27839
- i0__namespace.ɵɵelementStart(2, "div", 43);
27840
- i0__namespace.ɵɵelement(3, "input", 44);
27841
- i0__namespace.ɵɵelementStart(4, "label", 45);
28077
+ i0__namespace.ɵɵelementStart(0, "div", 50);
28078
+ i0__namespace.ɵɵelementStart(1, "div", 51);
28079
+ i0__namespace.ɵɵelementStart(2, "div", 52);
28080
+ i0__namespace.ɵɵelement(3, "input", 53);
28081
+ i0__namespace.ɵɵelementStart(4, "label", 54);
27842
28082
  i0__namespace.ɵɵtext(5);
27843
28083
  i0__namespace.ɵɵpipe(6, "rpxTranslate");
27844
28084
  i0__namespace.ɵɵelementEnd();
@@ -27847,24 +28087,71 @@
27847
28087
  i0__namespace.ɵɵelementEnd();
27848
28088
  }
27849
28089
  if (rf & 2) {
27850
- var ctx_r5 = i0__namespace.ɵɵnextContext();
28090
+ var ctx_r8 = i0__namespace.ɵɵnextContext();
27851
28091
  i0__namespace.ɵɵadvance(3);
27852
- i0__namespace.ɵɵproperty("formControlName", ctx_r5.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED)("id", ctx_r5.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED)("name", ctx_r5.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED);
28092
+ i0__namespace.ɵɵproperty("formControlName", ctx_r8.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED)("id", ctx_r8.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED)("name", ctx_r8.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED);
27853
28093
  i0__namespace.ɵɵadvance(1);
27854
- i0__namespace.ɵɵproperty("for", ctx_r5.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED);
28094
+ i0__namespace.ɵɵproperty("for", ctx_r8.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED);
27855
28095
  i0__namespace.ɵɵadvance(1);
27856
28096
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(6, 5, "I need to add a translation"), " ");
27857
28097
  }
27858
28098
  }
27859
- var _c0$l = function (a0) { return { "form-group-error": a0 }; };
28099
+ function UpdateFlagComponent_div_21_button_10_Template(rf, ctx) {
28100
+ if (rf & 1) {
28101
+ var _r22_1 = i0__namespace.ɵɵgetCurrentView();
28102
+ i0__namespace.ɵɵelementStart(0, "button", 59);
28103
+ i0__namespace.ɵɵlistener("click", function UpdateFlagComponent_div_21_button_10_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r22_1); var ctx_r21 = i0__namespace.ɵɵnextContext(2); return ctx_r21.onMakeInactive(); });
28104
+ i0__namespace.ɵɵtext(1);
28105
+ i0__namespace.ɵɵpipe(2, "rpxTranslate");
28106
+ i0__namespace.ɵɵelementEnd();
28107
+ }
28108
+ if (rf & 2) {
28109
+ i0__namespace.ɵɵadvance(1);
28110
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, "Make inactive"), " ");
28111
+ }
28112
+ }
28113
+ var _c0$l = function (a0) { return { "govuk-tag--grey": a0 }; };
28114
+ function UpdateFlagComponent_div_21_Template(rf, ctx) {
28115
+ if (rf & 1) {
28116
+ i0__namespace.ɵɵelementStart(0, "div", 55);
28117
+ i0__namespace.ɵɵelementStart(1, "div", 56);
28118
+ i0__namespace.ɵɵelementStart(2, "p");
28119
+ i0__namespace.ɵɵtext(3);
28120
+ i0__namespace.ɵɵpipe(4, "rpxTranslate");
28121
+ i0__namespace.ɵɵelementStart(5, "span");
28122
+ i0__namespace.ɵɵelementStart(6, "strong", 57);
28123
+ i0__namespace.ɵɵtext(7);
28124
+ i0__namespace.ɵɵpipe(8, "rpxTranslate");
28125
+ i0__namespace.ɵɵelementEnd();
28126
+ i0__namespace.ɵɵelementEnd();
28127
+ i0__namespace.ɵɵelementEnd();
28128
+ i0__namespace.ɵɵelementEnd();
28129
+ i0__namespace.ɵɵelementStart(9, "div", 56);
28130
+ i0__namespace.ɵɵtemplate(10, UpdateFlagComponent_div_21_button_10_Template, 3, 3, "button", 58);
28131
+ i0__namespace.ɵɵelementEnd();
28132
+ i0__namespace.ɵɵelementEnd();
28133
+ }
28134
+ if (rf & 2) {
28135
+ var ctx_r9 = i0__namespace.ɵɵnextContext();
28136
+ i0__namespace.ɵɵadvance(3);
28137
+ i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(4, 4, "Flag status:"), " ");
28138
+ i0__namespace.ɵɵadvance(3);
28139
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$l, ctx_r9.selectedFlag.flagDetailDisplay.flagDetail.status === "Inactive"));
28140
+ i0__namespace.ɵɵadvance(1);
28141
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(8, 6, ctx_r9.selectedFlag == null ? null : ctx_r9.selectedFlag.flagDetailDisplay == null ? null : ctx_r9.selectedFlag.flagDetailDisplay.flagDetail == null ? null : ctx_r9.selectedFlag.flagDetailDisplay.flagDetail.status), " ");
28142
+ i0__namespace.ɵɵadvance(3);
28143
+ i0__namespace.ɵɵproperty("ngIf", ctx_r9.selectedFlag.flagDetailDisplay.flagDetail.status === "Active");
28144
+ }
28145
+ }
28146
+ var _c1$6 = function (a0) { return { "form-group-error": a0 }; };
27860
28147
  var UpdateFlagComponent = /** @class */ (function () {
27861
28148
  function UpdateFlagComponent(rpxTranslationService) {
27862
28149
  this.rpxTranslationService = rpxTranslationService;
27863
28150
  this.caseFlagStateEmitter = new i0.EventEmitter();
27864
28151
  this.updateFlagTitle = '';
27865
28152
  this.errorMessages = [];
27866
- this.updateFlagNotEnteredErrorMessage = null;
27867
- this.updateFlagCharLimitErrorMessage = null;
28153
+ this.commentsNotEnteredErrorMessage = null;
28154
+ this.commentsCharLimitErrorMessage = null;
27868
28155
  this.statusReasonNotEnteredErrorMessage = null;
27869
28156
  this.statusReasonCharLimitErrorMessage = null;
27870
28157
  this.updateFlagStepEnum = exports.UpdateFlagStep;
@@ -27873,10 +28160,17 @@
27873
28160
  this.textMaxCharLimit = 200;
27874
28161
  this.selectedManageCaseLocation = 'selectedManageCaseLocation';
27875
28162
  this.caseFlagDisplayContextParameter = exports.CaseFlagDisplayContextParameter;
28163
+ this.externalUserUpdate = false;
28164
+ this.internalUserUpdate = false;
28165
+ this.internalUser2Point1EnabledUpdate = false;
27876
28166
  }
27877
28167
  UpdateFlagComponent.prototype.ngOnInit = function () {
27878
28168
  var _this = this;
27879
28169
  var _a, _b;
28170
+ // Set whether this is an external, internal, or internal Case Flags v2.1 enabled user update
28171
+ this.externalUserUpdate = this.displayContextParameter === exports.CaseFlagDisplayContextParameter.UPDATE_EXTERNAL;
28172
+ this.internalUserUpdate = this.displayContextParameter === exports.CaseFlagDisplayContextParameter.UPDATE;
28173
+ this.internalUser2Point1EnabledUpdate = this.displayContextParameter === exports.CaseFlagDisplayContextParameter.UPDATE_2_POINT_1;
27880
28174
  this.selectedFlag = this.formGroup.get(this.selectedManageCaseLocation).value;
27881
28175
  if ((_b = (_a = this.selectedFlag) === null || _a === void 0 ? void 0 : _a.flagDetailDisplay) === null || _b === void 0 ? void 0 : _b.flagDetail) {
27882
28176
  this.flagDetail = this.selectedFlag.flagDetailDisplay.flagDetail;
@@ -27893,7 +28187,8 @@
27893
28187
  }
27894
28188
  this.formGroup.addControl(exports.CaseFlagFormFields.COMMENTS, new i3.FormControl(existingComments));
27895
28189
  this.formGroup.addControl(exports.CaseFlagFormFields.STATUS, new i3.FormControl(currentFlagStatusKey));
27896
- this.formGroup.addControl(exports.CaseFlagFormFields.STATUS_CHANGE_REASON, new i3.FormControl(''));
28190
+ // Populate status reason only if the user is not external
28191
+ this.formGroup.addControl(exports.CaseFlagFormFields.STATUS_CHANGE_REASON, new i3.FormControl(this.externalUserUpdate ? '' : this.flagDetail.flagUpdateComment));
27897
28192
  this.formGroup.addControl(exports.CaseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED, new i3.FormControl(false));
27898
28193
  this.updateFlagTitle = this.setUpdateCaseFlagTitle(this.flagDetail);
27899
28194
  // Set the valid status options for display, based on current status of the selected flag. "Active" flags can
@@ -27916,12 +28211,14 @@
27916
28211
  UpdateFlagComponent.prototype.setUpdateCaseFlagTitle = function (flagDetail) {
27917
28212
  switch (this.displayContextParameter) {
27918
28213
  case exports.CaseFlagDisplayContextParameter.UPDATE:
28214
+ case exports.CaseFlagDisplayContextParameter.UPDATE_2_POINT_1:
27919
28215
  if (flagDetail === null || flagDetail === void 0 ? void 0 : flagDetail.name) {
27920
- return exports.CaseFlagWizardStepTitle.UPDATE_FLAG_TITLE + " \"" + flagDetail.name + (flagDetail.subTypeValue ? ", " + flagDetail.subTypeValue + "\"" : '"');
28216
+ var subTypeValue = flagDetail.subTypeValue ? ", " + flagDetail.subTypeValue : '';
28217
+ return exports.CaseFlagWizardStepTitle.UPDATE_FLAG_TITLE + " \"" + flagDetail.name + subTypeValue + "\"";
27921
28218
  }
27922
28219
  return "" + exports.CaseFlagWizardStepTitle.UPDATE_FLAG_TITLE;
27923
28220
  case exports.CaseFlagDisplayContextParameter.UPDATE_EXTERNAL:
27924
- return exports.CaseFlagWizardStepTitle.UPDATE_FLAG_TITLE_SUPPORT;
28221
+ return exports.CaseFlagWizardStepTitle.UPDATE_FLAG_TITLE_EXTERNAL;
27925
28222
  default:
27926
28223
  return exports.CaseFlagWizardStepTitle.NONE;
27927
28224
  }
@@ -27929,6 +28226,10 @@
27929
28226
  UpdateFlagComponent.prototype.onNext = function () {
27930
28227
  // Validate flag comments and status reason entry
27931
28228
  this.validateTextEntry();
28229
+ // Set selected flag status to "Inactive" if update is by external user
28230
+ if (this.externalUserUpdate) {
28231
+ this.formGroup.get(exports.CaseFlagFormFields.STATUS).setValue(Object.keys(exports.CaseFlagStatus)[2]);
28232
+ }
27932
28233
  // Return case flag field state, error messages, and selected flag detail to the parent. The selected flag must be
27933
28234
  // re-emitted because the parent component repopulates this on handling this EventEmitter
27934
28235
  this.caseFlagStateEmitter.emit({
@@ -27938,9 +28239,14 @@
27938
28239
  });
27939
28240
  window.scrollTo(0, 0);
27940
28241
  };
28242
+ UpdateFlagComponent.prototype.onMakeInactive = function () {
28243
+ // Set selected flag status to "Inactive" on screen and in the FormGroup
28244
+ this.selectedFlag.flagDetailDisplay.flagDetail.status = exports.CaseFlagStatus.INACTIVE;
28245
+ this.formGroup.get(exports.CaseFlagFormFields.STATUS).setValue(Object.keys(exports.CaseFlagStatus)[2]);
28246
+ };
27941
28247
  UpdateFlagComponent.prototype.validateTextEntry = function () {
27942
- this.updateFlagNotEnteredErrorMessage = null;
27943
- this.updateFlagCharLimitErrorMessage = null;
28248
+ this.commentsNotEnteredErrorMessage = null;
28249
+ this.commentsCharLimitErrorMessage = null;
27944
28250
  this.statusReasonNotEnteredErrorMessage = null;
27945
28251
  this.statusReasonCharLimitErrorMessage = null;
27946
28252
  this.errorMessages = [];
@@ -27948,15 +28254,17 @@
27948
28254
  // is no existing comment then one is not required for validation to pass
27949
28255
  var comment = this.formGroup.get(exports.CaseFlagFormFields.COMMENTS).value;
27950
28256
  if (!comment && (this.flagDetail.flagComment || this.flagDetail.flagComment_cy)) {
27951
- this.updateFlagNotEnteredErrorMessage = exports.UpdateFlagErrorMessage.FLAG_COMMENTS_NOT_ENTERED;
28257
+ this.commentsNotEnteredErrorMessage = !this.displayContextParameter
28258
+ ? exports.UpdateFlagErrorMessage.NONE
28259
+ : exports.UpdateFlagErrorMessage.FLAG_COMMENTS_NOT_ENTERED;
27952
28260
  this.errorMessages.push({
27953
28261
  title: '',
27954
- description: exports.UpdateFlagErrorMessage.FLAG_COMMENTS_NOT_ENTERED,
28262
+ description: this.commentsNotEnteredErrorMessage,
27955
28263
  fieldId: exports.CaseFlagFormFields.COMMENTS
27956
28264
  });
27957
28265
  }
27958
28266
  if (comment && comment.length > this.textMaxCharLimit) {
27959
- this.updateFlagCharLimitErrorMessage = exports.UpdateFlagErrorMessage.FLAG_COMMENTS_CHAR_LIMIT_EXCEEDED;
28267
+ this.commentsCharLimitErrorMessage = exports.UpdateFlagErrorMessage.FLAG_COMMENTS_CHAR_LIMIT_EXCEEDED;
27960
28268
  this.errorMessages.push({
27961
28269
  title: '',
27962
28270
  description: exports.UpdateFlagErrorMessage.FLAG_COMMENTS_CHAR_LIMIT_EXCEEDED,
@@ -27965,6 +28273,7 @@
27965
28273
  }
27966
28274
  var statusReason = this.formGroup.get(exports.CaseFlagFormFields.STATUS_CHANGE_REASON).value;
27967
28275
  var flagStatusNotApprovedKey = Object.keys(exports.CaseFlagStatus).find(function (key) { return exports.CaseFlagStatus[key] === exports.CaseFlagStatus.NOT_APPROVED; });
28276
+ // Status reason is mandatory if flag status is "Not approved" or user is external
27968
28277
  if (this.formGroup.get(exports.CaseFlagFormFields.STATUS).value === flagStatusNotApprovedKey && !statusReason) {
27969
28278
  this.statusReasonNotEnteredErrorMessage = exports.UpdateFlagErrorMessage.STATUS_REASON_NOT_ENTERED;
27970
28279
  this.errorMessages.push({
@@ -27973,6 +28282,14 @@
27973
28282
  fieldId: exports.CaseFlagFormFields.STATUS_CHANGE_REASON
27974
28283
  });
27975
28284
  }
28285
+ if (this.externalUserUpdate && !statusReason) {
28286
+ this.statusReasonNotEnteredErrorMessage = exports.UpdateFlagErrorMessage.STATUS_REASON_NOT_ENTERED_EXTERNAL;
28287
+ this.errorMessages.push({
28288
+ title: '',
28289
+ description: exports.UpdateFlagErrorMessage.STATUS_REASON_NOT_ENTERED_EXTERNAL,
28290
+ fieldId: exports.CaseFlagFormFields.STATUS_CHANGE_REASON
28291
+ });
28292
+ }
27976
28293
  if (statusReason && statusReason.length > this.textMaxCharLimit) {
27977
28294
  this.statusReasonCharLimitErrorMessage = exports.UpdateFlagErrorMessage.STATUS_REASON_CHAR_LIMIT_EXCEEDED;
27978
28295
  this.errorMessages.push({
@@ -27985,7 +28302,7 @@
27985
28302
  return UpdateFlagComponent;
27986
28303
  }());
27987
28304
  UpdateFlagComponent.ɵfac = function UpdateFlagComponent_Factory(t) { return new (t || UpdateFlagComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace.RpxTranslationService)); };
27988
- UpdateFlagComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: UpdateFlagComponent, selectors: [["ccd-update-flag"]], inputs: { formGroup: "formGroup", displayContextParameter: "displayContextParameter" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 30, vars: 32, consts: [[3, "formGroup"], ["data-module", "govuk-character-count", "data-maxlength", "200", 1, "govuk-character-count"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper", "govuk-!-margin-bottom-4"], [1, "govuk-label", "govuk-label--m"], ["id", "update-flag-hint", "class", "govuk-hint", 4, "ngIf"], [1, "govuk-!-margin-bottom-4"], [1, "govuk-label", "govuk-label--s", 3, "for"], ["id", "update-flag-hint", 1, "govuk-hint"], ["class", "govuk-warning-text", 4, "ngIf"], ["id", "update-flag-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "update-flag-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", "aria-describedby", "update-flag-hint update-flag-char-limit-info update-flag-char-limit-error", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "update-flag-comments-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "flag-status-container", "class", "govuk-!-margin-bottom-4", 4, "ngIf"], ["class", "govuk-!-margin-bottom-6", 4, "ngIf"], [1, "govuk-button-group"], ["id", "updateFlagNextButton", "type", "button", 1, "govuk-button", 3, "click"], [1, "govuk-warning-text"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-warning-text__assistive"], ["id", "update-flag-not-entered-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "update-flag-char-limit-error", 1, "govuk-error-message"], ["id", "flag-status-container", 1, "govuk-!-margin-bottom-4"], ["aria-describedby", "update-flag-status-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--s"], ["id", "update-flag-status-heading", 1, "govuk-fieldset__heading"], ["data-module", "govuk-radios", 1, "govuk-radios", "govuk-radios--conditional", "govuk-!-margin-bottom-4", 3, "id"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["id", "update-flag-status-hint", 1, "govuk-hint"], ["id", "update-flag-status-reason-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "update-flag-status-reason-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "update-flag-status-reason-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "formControlName", "value"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["id", "update-flag-status-reason-not-entered-error-message", 1, "govuk-error-message"], ["id", "update-flag-status-reason-char-limit-error", 1, "govuk-error-message"], [1, "govuk-!-margin-bottom-6"], ["data-module", "govuk-checkboxes", 1, "govuk-checkboxes"], [1, "govuk-checkboxes__item"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "formControlName", "id", "name"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"]], template: function UpdateFlagComponent_Template(rf, ctx) {
28305
+ UpdateFlagComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: UpdateFlagComponent, selectors: [["ccd-update-flag"]], inputs: { formGroup: "formGroup", displayContextParameter: "displayContextParameter" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 26, vars: 24, consts: [[3, "formGroup"], ["data-module", "govuk-character-count", "data-maxlength", "200", 1, "govuk-character-count"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper", "govuk-!-margin-bottom-4"], [1, "govuk-label", "govuk-label--m"], ["id", "update-flag-hint-external", "class", "govuk-hint", 4, "ngIf"], [1, "govuk-!-margin-bottom-4"], [1, "govuk-label", "govuk-label--s", 3, "for"], ["id", "update-flag-comments-hint-external", "class", "govuk-hint", 4, "ngIf"], [4, "ngIf", "ngIfElse"], ["externalUser", ""], ["updateFlagStatusReason", ""], ["id", "flag-status-container-v2_1", "class", "govuk-!-margin-bottom-4", 4, "ngIf"], ["id", "translation-checkbox-container", "class", "govuk-!-margin-bottom-6", 4, "ngIf"], ["id", "flag-status-container-v1", "class", "govuk-grid-row", 4, "ngIf"], [1, "govuk-button-group"], ["id", "updateFlagNextButton", "type", "button", 1, "govuk-button", 3, "click"], ["id", "update-flag-hint-external", 1, "govuk-hint"], ["id", "update-flag-comments-hint-external", 1, "govuk-hint"], ["id", "update-flag-comments-hint", 1, "govuk-hint"], ["class", "govuk-warning-text", 4, "ngIf"], ["id", "update-flag-comments-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "update-flag-comments-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", "aria-describedby", "update-flag-comments-hint update-flag-comments-char-limit-info update-flag-comments-char-limit-error", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "update-flag-comments-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], [1, "govuk-warning-text"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-warning-text__assistive"], ["id", "update-flag-comments-not-entered-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "update-flag-comments-char-limit-error", 1, "govuk-error-message"], [4, "ngIf"], [4, "ngTemplateOutlet"], ["id", "update-flag-status-reason-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "update-flag-status-reason-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", "aria-describedby", "update-flag-comments-hint-external update-flag-status-hint update-flag-status-reason-char-limit-info\n update-flag-status-reason-char-limit-error", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "update-flag-status-reason-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "update-flag-status-reason-not-entered-error-message", 1, "govuk-error-message"], ["id", "update-flag-status-reason-char-limit-error", 1, "govuk-error-message"], ["id", "flag-status-container-v2_1", 1, "govuk-!-margin-bottom-4"], ["aria-describedby", "update-flag-status-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--s"], ["id", "update-flag-status-heading", 1, "govuk-fieldset__heading"], ["data-module", "govuk-radios", 1, "govuk-radios", "govuk-radios--conditional", "govuk-!-margin-bottom-4", 3, "id"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["id", "update-flag-status-hint", 1, "govuk-hint"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "formControlName", "value"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["id", "translation-checkbox-container", 1, "govuk-!-margin-bottom-6"], ["data-module", "govuk-checkboxes", 1, "govuk-checkboxes"], [1, "govuk-checkboxes__item"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "formControlName", "id", "name"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], ["id", "flag-status-container-v1", 1, "govuk-grid-row"], [1, "govuk-grid-column-one-half"], [1, "govuk-tag", 3, "ngClass"], ["class", "button button-secondary", "type", "button", 3, "click", 4, "ngIf"], ["type", "button", 1, "button", "button-secondary", 3, "click"]], template: function UpdateFlagComponent_Template(rf, ctx) {
27989
28306
  if (rf & 1) {
27990
28307
  i0__namespace.ɵɵelementContainerStart(0, 0);
27991
28308
  i0__namespace.ɵɵelementStart(1, "div", 1);
@@ -28003,64 +28320,50 @@
28003
28320
  i0__namespace.ɵɵpipe(11, "rpxTranslate");
28004
28321
  i0__namespace.ɵɵpipe(12, "rpxTranslate");
28005
28322
  i0__namespace.ɵɵelementEnd();
28006
- i0__namespace.ɵɵelementStart(13, "div", 8);
28007
- i0__namespace.ɵɵtext(14);
28008
- i0__namespace.ɵɵpipe(15, "rpxTranslate");
28009
- i0__namespace.ɵɵelementEnd();
28010
- i0__namespace.ɵɵtemplate(16, UpdateFlagComponent_div_16_Template, 9, 6, "div", 9);
28011
- i0__namespace.ɵɵtemplate(17, UpdateFlagComponent_div_17_Template, 6, 6, "div", 10);
28012
- i0__namespace.ɵɵtemplate(18, UpdateFlagComponent_div_18_Template, 6, 6, "div", 11);
28013
- i0__namespace.ɵɵelementStart(19, "textarea", 12);
28014
- i0__namespace.ɵɵtext(20, " ");
28015
- i0__namespace.ɵɵelementEnd();
28016
- i0__namespace.ɵɵelementStart(21, "div", 13);
28017
- i0__namespace.ɵɵtext(22);
28018
- i0__namespace.ɵɵpipe(23, "rpxTranslate");
28323
+ i0__namespace.ɵɵtemplate(13, UpdateFlagComponent_div_13_Template, 3, 3, "div", 8);
28324
+ i0__namespace.ɵɵtemplate(14, UpdateFlagComponent_ng_container_14_Template, 13, 14, "ng-container", 9);
28325
+ i0__namespace.ɵɵtemplate(15, UpdateFlagComponent_ng_template_15_Template, 1, 1, "ng-template", null, 10, i0__namespace.ɵɵtemplateRefExtractor);
28019
28326
  i0__namespace.ɵɵelementEnd();
28020
- i0__namespace.ɵɵelementEnd();
28021
- i0__namespace.ɵɵtemplate(24, UpdateFlagComponent_div_24_Template, 19, 19, "div", 14);
28022
- i0__namespace.ɵɵtemplate(25, UpdateFlagComponent_div_25_Template, 7, 7, "div", 15);
28327
+ i0__namespace.ɵɵtemplate(17, UpdateFlagComponent_ng_template_17_Template, 7, 8, "ng-template", null, 11, i0__namespace.ɵɵtemplateRefExtractor);
28328
+ i0__namespace.ɵɵtemplate(19, UpdateFlagComponent_div_19_Template, 13, 12, "div", 12);
28329
+ i0__namespace.ɵɵtemplate(20, UpdateFlagComponent_div_20_Template, 7, 7, "div", 13);
28330
+ i0__namespace.ɵɵtemplate(21, UpdateFlagComponent_div_21_Template, 11, 10, "div", 14);
28023
28331
  i0__namespace.ɵɵelementEnd();
28024
28332
  i0__namespace.ɵɵelementEnd();
28025
28333
  i0__namespace.ɵɵelementContainerEnd();
28026
- i0__namespace.ɵɵelementStart(26, "div", 16);
28027
- i0__namespace.ɵɵelementStart(27, "button", 17);
28028
- i0__namespace.ɵɵlistener("click", function UpdateFlagComponent_Template_button_click_27_listener() { return ctx.onNext(); });
28029
- i0__namespace.ɵɵtext(28);
28030
- i0__namespace.ɵɵpipe(29, "rpxTranslate");
28334
+ i0__namespace.ɵɵelementStart(22, "div", 15);
28335
+ i0__namespace.ɵɵelementStart(23, "button", 16);
28336
+ i0__namespace.ɵɵlistener("click", function UpdateFlagComponent_Template_button_click_23_listener() { return ctx.onNext(); });
28337
+ i0__namespace.ɵɵtext(24);
28338
+ i0__namespace.ɵɵpipe(25, "rpxTranslate");
28031
28339
  i0__namespace.ɵɵelementEnd();
28032
28340
  i0__namespace.ɵɵelementEnd();
28033
28341
  }
28034
28342
  if (rf & 2) {
28343
+ var _r3 = i0__namespace.ɵɵreference(16);
28035
28344
  i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
28036
28345
  i0__namespace.ɵɵadvance(2);
28037
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(30, _c0$l, ctx.errorMessages.length > 0));
28346
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(22, _c1$6, ctx.errorMessages.length > 0));
28038
28347
  i0__namespace.ɵɵadvance(3);
28039
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(6, 18, ctx.updateFlagTitle), " ");
28348
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(6, 14, ctx.updateFlagTitle), " ");
28040
28349
  i0__namespace.ɵɵadvance(2);
28041
- i0__namespace.ɵɵproperty("ngIf", ctx.displayContextParameter === ctx.caseFlagDisplayContextParameter.UPDATE_EXTERNAL);
28350
+ i0__namespace.ɵɵproperty("ngIf", ctx.externalUserUpdate);
28042
28351
  i0__namespace.ɵɵadvance(2);
28043
28352
  i0__namespace.ɵɵproperty("for", ctx.caseFlagFormFields.COMMENTS);
28044
28353
  i0__namespace.ɵɵadvance(1);
28045
- i0__namespace.ɵɵtextInterpolate2(" ", i0__namespace.ɵɵpipeBind1(11, 20, ctx.updateFlagTitle), " ", i0__namespace.ɵɵpipeBind1(12, 22, "comments"), " ");
28046
- i0__namespace.ɵɵadvance(4);
28047
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(15, 24, ctx.updateFlagStepEnum.COMMENT_HINT_TEXT), " ");
28048
- i0__namespace.ɵɵadvance(2);
28049
- i0__namespace.ɵɵproperty("ngIf", ctx.displayContextParameter === ctx.caseFlagDisplayContextParameter.UPDATE);
28354
+ i0__namespace.ɵɵtextInterpolate2(" ", i0__namespace.ɵɵpipeBind1(11, 16, ctx.updateFlagTitle), " ", i0__namespace.ɵɵpipeBind1(12, 18, "comments"), " ");
28355
+ i0__namespace.ɵɵadvance(3);
28356
+ i0__namespace.ɵɵproperty("ngIf", ctx.externalUserUpdate);
28050
28357
  i0__namespace.ɵɵadvance(1);
28051
- i0__namespace.ɵɵproperty("ngIf", ctx.updateFlagNotEnteredErrorMessage);
28358
+ i0__namespace.ɵɵproperty("ngIf", ctx.internalUserUpdate || ctx.internalUser2Point1EnabledUpdate || ctx.displayContextParameter === "")("ngIfElse", _r3);
28359
+ i0__namespace.ɵɵadvance(5);
28360
+ i0__namespace.ɵɵproperty("ngIf", ctx.internalUser2Point1EnabledUpdate);
28052
28361
  i0__namespace.ɵɵadvance(1);
28053
- i0__namespace.ɵɵproperty("ngIf", ctx.updateFlagCharLimitErrorMessage);
28362
+ i0__namespace.ɵɵproperty("ngIf", ctx.internalUser2Point1EnabledUpdate);
28054
28363
  i0__namespace.ɵɵadvance(1);
28055
- i0__namespace.ɵɵproperty("id", ctx.caseFlagFormFields.COMMENTS)("name", ctx.caseFlagFormFields.COMMENTS)("formControlName", ctx.caseFlagFormFields.COMMENTS);
28364
+ i0__namespace.ɵɵproperty("ngIf", ctx.internalUserUpdate);
28056
28365
  i0__namespace.ɵɵadvance(3);
28057
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(23, 26, ctx.updateFlagStepEnum.CHARACTER_LIMIT_INFO), " ");
28058
- i0__namespace.ɵɵadvance(2);
28059
- i0__namespace.ɵɵproperty("ngIf", ctx.displayContextParameter === ctx.caseFlagDisplayContextParameter.UPDATE);
28060
- i0__namespace.ɵɵadvance(1);
28061
- i0__namespace.ɵɵproperty("ngIf", ctx.displayContextParameter === ctx.caseFlagDisplayContextParameter.UPDATE);
28062
- i0__namespace.ɵɵadvance(3);
28063
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(29, 28, "Next"), " ");
28366
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(25, 20, "Next"), " ");
28064
28367
  }
28065
28368
  }, encapsulation: 2 });
28066
28369
  (function () {
@@ -32135,7 +32438,7 @@
32135
32438
  i0__namespace.ɵɵsetComponentScope(SelectFlagTypeComponent, [i5__namespace.NgIf, i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective, i5__namespace.NgClass, i5__namespace.NgForOf, i3__namespace.RadioControlValueAccessor, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlName, i3__namespace.CheckboxControlValueAccessor], [i1__namespace.RpxTranslatePipe, FlagFieldDisplayPipe]);
32136
32439
  i0__namespace.ɵɵsetComponentScope(SearchLanguageInterpreterComponent, [i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective, i5__namespace.NgClass, i5__namespace.NgIf, i14__namespace.MatInput, i3__namespace.DefaultValueAccessor, i5__namespace$1.MatAutocompleteTrigger, i3__namespace.NgControlStatus, i3__namespace.FormControlName, i5__namespace$1.MatAutocomplete, i5__namespace.NgForOf, i6__namespace.MatOption], [FlagFieldDisplayPipe, i1__namespace.RpxTranslatePipe, i5__namespace.AsyncPipe, LanguageInterpreterDisplayPipe]);
32137
32440
  i0__namespace.ɵɵsetComponentScope(ManageCaseFlagsComponent, [i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective, i5__namespace.NgClass, i5__namespace.NgIf, i5__namespace.NgForOf, i3__namespace.RadioControlValueAccessor, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlName], [i1__namespace.RpxTranslatePipe, ManageCaseFlagsLabelDisplayPipe]);
32138
- i0__namespace.ɵɵsetComponentScope(UpdateFlagComponent, [i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective, i5__namespace.NgClass, i5__namespace.NgIf, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlName, i5__namespace.NgForOf, i3__namespace.RadioControlValueAccessor, i3__namespace.CheckboxControlValueAccessor], [i1__namespace.RpxTranslatePipe, UpdateFlagTitleDisplayPipe]);
32441
+ i0__namespace.ɵɵsetComponentScope(UpdateFlagComponent, [i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective, i5__namespace.NgClass, i5__namespace.NgIf, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlName, i5__namespace.NgTemplateOutlet, i5__namespace.NgForOf, i3__namespace.RadioControlValueAccessor, i3__namespace.CheckboxControlValueAccessor], [i1__namespace.RpxTranslatePipe, UpdateFlagTitleDisplayPipe]);
32139
32442
  i0__namespace.ɵɵsetComponentScope(
32140
32443
  // Components for linked cases
32141
32444
  LinkedCasesToTableComponent, [i5__namespace.NgIf, i5__namespace.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
@@ -32160,12 +32463,19 @@
32160
32463
  CaseEventCompletionComponent
32161
32464
  ], []);
32162
32465
 
32163
- function CaseEditSubmitComponent_div_0_div_3_Template(rf, ctx) {
32466
+ var CaseEditSubmitTitles;
32467
+ (function (CaseEditSubmitTitles) {
32468
+ CaseEditSubmitTitles["REVIEW_SUPPORT_REQUEST"] = "Review support request";
32469
+ CaseEditSubmitTitles["REVIEW_FLAG_DETAILS"] = "Review flag details";
32470
+ CaseEditSubmitTitles["CHECK_YOUR_ANSWERS"] = "Check your answers";
32471
+ })(CaseEditSubmitTitles || (CaseEditSubmitTitles = {}));
32472
+
32473
+ function CaseEditSubmitComponent_div_0_div_4_Template(rf, ctx) {
32164
32474
  if (rf & 1) {
32165
32475
  i0__namespace.ɵɵelement(0, "div");
32166
32476
  }
32167
32477
  }
32168
- function CaseEditSubmitComponent_div_0_ng_template_4_Template(rf, ctx) {
32478
+ function CaseEditSubmitComponent_div_0_ng_template_5_Template(rf, ctx) {
32169
32479
  if (rf & 1) {
32170
32480
  i0__namespace.ɵɵelement(0, "ccd-markdown", 14);
32171
32481
  i0__namespace.ɵɵpipe(1, "ccdCaseTitle");
@@ -32175,7 +32485,7 @@
32175
32485
  i0__namespace.ɵɵproperty("content", i0__namespace.ɵɵpipeBind3(1, 1, ctx_r4.getCaseTitle(), ctx_r4.contextFields, ctx_r4.editForm.controls["data"]));
32176
32486
  }
32177
32487
  }
32178
- function CaseEditSubmitComponent_div_0_ng_template_6_h2_0_Template(rf, ctx) {
32488
+ function CaseEditSubmitComponent_div_0_ng_template_7_h2_0_Template(rf, ctx) {
32179
32489
  if (rf & 1) {
32180
32490
  i0__namespace.ɵɵelementStart(0, "h2", 16);
32181
32491
  i0__namespace.ɵɵtext(1);
@@ -32183,21 +32493,21 @@
32183
32493
  i0__namespace.ɵɵelementEnd();
32184
32494
  }
32185
32495
  if (rf & 2) {
32186
- var ctx_r10 = i0__namespace.ɵɵnextContext(3);
32496
+ var ctx_r11 = i0__namespace.ɵɵnextContext(3);
32187
32497
  i0__namespace.ɵɵadvance(1);
32188
- i0__namespace.ɵɵtextInterpolate1("#", i0__namespace.ɵɵpipeBind1(2, 1, ctx_r10.getCaseId()), "");
32498
+ i0__namespace.ɵɵtextInterpolate1("#", i0__namespace.ɵɵpipeBind1(2, 1, ctx_r11.getCaseId()), "");
32189
32499
  }
32190
32500
  }
32191
- function CaseEditSubmitComponent_div_0_ng_template_6_Template(rf, ctx) {
32501
+ function CaseEditSubmitComponent_div_0_ng_template_7_Template(rf, ctx) {
32192
32502
  if (rf & 1) {
32193
- i0__namespace.ɵɵtemplate(0, CaseEditSubmitComponent_div_0_ng_template_6_h2_0_Template, 3, 3, "h2", 15);
32503
+ i0__namespace.ɵɵtemplate(0, CaseEditSubmitComponent_div_0_ng_template_7_h2_0_Template, 3, 3, "h2", 15);
32194
32504
  }
32195
32505
  if (rf & 2) {
32196
32506
  var ctx_r6 = i0__namespace.ɵɵnextContext(2);
32197
32507
  i0__namespace.ɵɵproperty("ngIf", ctx_r6.getCaseId());
32198
32508
  }
32199
32509
  }
32200
- function CaseEditSubmitComponent_div_0_ng_container_11_span_4_Template(rf, ctx) {
32510
+ function CaseEditSubmitComponent_div_0_ng_container_12_span_4_Template(rf, ctx) {
32201
32511
  if (rf & 1) {
32202
32512
  i0__namespace.ɵɵelementStart(0, "span", 20);
32203
32513
  i0__namespace.ɵɵtext(1);
@@ -32209,119 +32519,137 @@
32209
32519
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, "Check the information below carefully."));
32210
32520
  }
32211
32521
  }
32212
- function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_7_ng_container_1_ng_container_1_ng_container_1_th_2_Template(rf, ctx) {
32522
+ function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_7_ng_container_1_ng_container_1_ng_container_1_th_2_Template(rf, ctx) {
32213
32523
  if (rf & 1) {
32214
- i0__namespace.ɵɵelementStart(0, "th", 27);
32524
+ i0__namespace.ɵɵelementStart(0, "th", 25);
32215
32525
  i0__namespace.ɵɵelementStart(1, "span", 20);
32216
32526
  i0__namespace.ɵɵtext(2);
32217
32527
  i0__namespace.ɵɵelementEnd();
32218
32528
  i0__namespace.ɵɵelementEnd();
32219
32529
  }
32220
32530
  if (rf & 2) {
32221
- var field_r16 = i0__namespace.ɵɵnextContext(2).$implicit;
32531
+ var field_r17 = i0__namespace.ɵɵnextContext(2).$implicit;
32222
32532
  i0__namespace.ɵɵadvance(2);
32223
- i0__namespace.ɵɵtextInterpolate(field_r16.label);
32533
+ i0__namespace.ɵɵtextInterpolate(field_r17.label);
32224
32534
  }
32225
32535
  }
32226
- function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_7_ng_container_1_ng_container_1_ng_container_1_a_6_Template(rf, ctx) {
32536
+ function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_7_ng_container_1_ng_container_1_ng_container_1_ng_container_5_a_2_Template(rf, ctx) {
32227
32537
  if (rf & 1) {
32228
- var _r23_1 = i0__namespace.ɵɵgetCurrentView();
32538
+ var _r25_1 = i0__namespace.ɵɵgetCurrentView();
32229
32539
  i0__namespace.ɵɵelementStart(0, "a", 13);
32230
- i0__namespace.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_7_ng_container_1_ng_container_1_ng_container_1_a_6_Template_a_click_0_listener() { i0__namespace.ɵɵrestoreView(_r23_1); var page_r13 = i0__namespace.ɵɵnextContext(4).$implicit; var ctx_r21 = i0__namespace.ɵɵnextContext(3); return ctx_r21.navigateToPage(page_r13.id); });
32540
+ i0__namespace.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_7_ng_container_1_ng_container_1_ng_container_1_ng_container_5_a_2_Template_a_click_0_listener() { i0__namespace.ɵɵrestoreView(_r25_1); var page_r14 = i0__namespace.ɵɵnextContext(5).$implicit; var ctx_r23 = i0__namespace.ɵɵnextContext(3); return ctx_r23.navigateToPage(page_r14.id); });
32231
32541
  i0__namespace.ɵɵelementStart(1, "span", 20);
32232
- i0__namespace.ɵɵtext(2, "Change");
32542
+ i0__namespace.ɵɵpipe(2, "rpxTranslate");
32543
+ i0__namespace.ɵɵpipe(3, "rpxTranslate");
32544
+ i0__namespace.ɵɵtext(4);
32545
+ i0__namespace.ɵɵpipe(5, "rpxTranslate");
32233
32546
  i0__namespace.ɵɵelementEnd();
32234
32547
  i0__namespace.ɵɵelementEnd();
32235
32548
  }
32236
32549
  if (rf & 2) {
32237
- var field_r16 = i0__namespace.ɵɵnextContext(2).$implicit;
32550
+ var field_r17 = i0__namespace.ɵɵnextContext(3).$implicit;
32238
32551
  i0__namespace.ɵɵadvance(1);
32239
- i0__namespace.ɵɵattributeInterpolate1("aria-label", "Change ", field_r16.label, "");
32552
+ i0__namespace.ɵɵattributeInterpolate2("aria-label", "", i0__namespace.ɵɵpipeBind1(2, 3, "Change"), " ", i0__namespace.ɵɵpipeBind1(3, 5, field_r17.label), "");
32553
+ i0__namespace.ɵɵadvance(3);
32554
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 7, "Change"), " ");
32555
+ }
32556
+ }
32557
+ function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_7_ng_container_1_ng_container_1_ng_container_1_ng_container_5_Template(rf, ctx) {
32558
+ if (rf & 1) {
32559
+ i0__namespace.ɵɵelementContainerStart(0);
32560
+ i0__namespace.ɵɵelementStart(1, "td", 26);
32561
+ i0__namespace.ɵɵtemplate(2, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_7_ng_container_1_ng_container_1_ng_container_1_ng_container_5_a_2_Template, 6, 9, "a", 27);
32562
+ i0__namespace.ɵɵelementEnd();
32563
+ i0__namespace.ɵɵelementContainerEnd();
32564
+ }
32565
+ if (rf & 2) {
32566
+ var field_r17 = i0__namespace.ɵɵnextContext(2).$implicit;
32567
+ var ctx_r20 = i0__namespace.ɵɵnextContext(5);
32568
+ i0__namespace.ɵɵadvance(2);
32569
+ i0__namespace.ɵɵproperty("ngIf", ctx_r20.isChangeAllowed(field_r17));
32240
32570
  }
32241
32571
  }
32242
- function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_7_ng_container_1_ng_container_1_ng_container_1_Template(rf, ctx) {
32572
+ function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_7_ng_container_1_ng_container_1_ng_container_1_Template(rf, ctx) {
32243
32573
  if (rf & 1) {
32244
32574
  i0__namespace.ɵɵelementContainerStart(0);
32245
32575
  i0__namespace.ɵɵelementStart(1, "tr", 21);
32246
- i0__namespace.ɵɵtemplate(2, CaseEditSubmitComponent_div_0_ng_container_11_ng_container_7_ng_container_1_ng_container_1_ng_container_1_th_2_Template, 3, 1, "th", 22);
32576
+ i0__namespace.ɵɵtemplate(2, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_7_ng_container_1_ng_container_1_ng_container_1_th_2_Template, 3, 1, "th", 22);
32247
32577
  i0__namespace.ɵɵelementStart(3, "td", 23);
32248
32578
  i0__namespace.ɵɵelement(4, "ccd-field-read", 24);
32249
32579
  i0__namespace.ɵɵelementEnd();
32250
- i0__namespace.ɵɵelementStart(5, "td", 25);
32251
- i0__namespace.ɵɵtemplate(6, CaseEditSubmitComponent_div_0_ng_container_11_ng_container_7_ng_container_1_ng_container_1_ng_container_1_a_6_Template, 3, 1, "a", 26);
32252
- i0__namespace.ɵɵelementEnd();
32580
+ i0__namespace.ɵɵtemplate(5, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_7_ng_container_1_ng_container_1_ng_container_1_ng_container_5_Template, 3, 1, "ng-container", 0);
32253
32581
  i0__namespace.ɵɵelementEnd();
32254
32582
  i0__namespace.ɵɵelementContainerEnd();
32255
32583
  }
32256
32584
  if (rf & 2) {
32257
- var field_r16 = i0__namespace.ɵɵnextContext().$implicit;
32258
- var ctx_r17 = i0__namespace.ɵɵnextContext(5);
32585
+ var field_r17 = i0__namespace.ɵɵnextContext().$implicit;
32586
+ var ctx_r18 = i0__namespace.ɵɵnextContext(5);
32259
32587
  i0__namespace.ɵɵadvance(1);
32260
- i0__namespace.ɵɵproperty("caseField", field_r16)("hidden", field_r16.hidden)("formGroup", ctx_r17.editForm.controls["data"])("contextFields", ctx_r17.contextFields);
32588
+ i0__namespace.ɵɵproperty("caseField", field_r17)("hidden", field_r17.hidden)("formGroup", ctx_r18.editForm.controls["data"])("contextFields", ctx_r18.contextFields);
32261
32589
  i0__namespace.ɵɵadvance(1);
32262
- i0__namespace.ɵɵproperty("ngIf", !ctx_r17.isLabel(field_r16) && !ctx_r17.caseEdit.isCaseFlagSubmission);
32590
+ i0__namespace.ɵɵproperty("ngIf", !ctx_r18.isLabel(field_r17) && !ctx_r18.caseEdit.isCaseFlagSubmission);
32263
32591
  i0__namespace.ɵɵadvance(1);
32264
- i0__namespace.ɵɵattribute("colspan", ctx_r17.isLabel(field_r16) ? "2" : "1");
32592
+ i0__namespace.ɵɵattribute("colspan", ctx_r18.isLabel(field_r17) ? "2" : "1");
32265
32593
  i0__namespace.ɵɵadvance(1);
32266
- i0__namespace.ɵɵproperty("formGroup", ctx_r17.editForm.controls["data"])("topLevelFormGroup", ctx_r17.editForm.controls["data"])("caseField", ctx_r17.summaryCaseField(field_r16))("context", ctx_r17.paletteContext)("caseFields", ctx_r17.contextFields);
32267
- i0__namespace.ɵɵadvance(2);
32268
- i0__namespace.ɵɵproperty("ngIf", ctx_r17.isChangeAllowed(field_r16));
32594
+ i0__namespace.ɵɵproperty("formGroup", ctx_r18.editForm.controls["data"])("topLevelFormGroup", ctx_r18.editForm.controls["data"])("caseField", ctx_r18.summaryCaseField(field_r17))("context", ctx_r18.paletteContext)("caseFields", ctx_r18.contextFields);
32595
+ i0__namespace.ɵɵadvance(1);
32596
+ i0__namespace.ɵɵproperty("ngIf", !ctx_r18.caseEdit.isCaseFlagSubmission);
32269
32597
  }
32270
32598
  }
32271
- function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_7_ng_container_1_ng_container_1_Template(rf, ctx) {
32599
+ function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_7_ng_container_1_ng_container_1_Template(rf, ctx) {
32272
32600
  if (rf & 1) {
32273
32601
  i0__namespace.ɵɵelementContainerStart(0);
32274
- i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_11_ng_container_7_ng_container_1_ng_container_1_ng_container_1_Template, 7, 12, "ng-container", 0);
32602
+ i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_7_ng_container_1_ng_container_1_ng_container_1_Template, 6, 12, "ng-container", 0);
32275
32603
  i0__namespace.ɵɵelementContainerEnd();
32276
32604
  }
32277
32605
  if (rf & 2) {
32278
- var field_r16 = ctx.$implicit;
32279
- var ctx_r15 = i0__namespace.ɵɵnextContext(5);
32606
+ var field_r17 = ctx.$implicit;
32607
+ var ctx_r16 = i0__namespace.ɵɵnextContext(5);
32280
32608
  i0__namespace.ɵɵadvance(1);
32281
- i0__namespace.ɵɵproperty("ngIf", ctx_r15.canShowFieldInCYA(field_r16));
32609
+ i0__namespace.ɵɵproperty("ngIf", ctx_r16.canShowFieldInCYA(field_r17));
32282
32610
  }
32283
32611
  }
32284
32612
  var _c0$d = function (a0, a4) { return [a0, false, undefined, true, a4]; };
32285
- function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_7_ng_container_1_Template(rf, ctx) {
32613
+ function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_7_ng_container_1_Template(rf, ctx) {
32286
32614
  if (rf & 1) {
32287
32615
  i0__namespace.ɵɵelementContainerStart(0);
32288
- i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_11_ng_container_7_ng_container_1_ng_container_1_Template, 2, 1, "ng-container", 19);
32616
+ i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_7_ng_container_1_ng_container_1_Template, 2, 1, "ng-container", 19);
32289
32617
  i0__namespace.ɵɵpipe(2, "ccdCYAPageLabelFilter");
32290
32618
  i0__namespace.ɵɵpipe(3, "ccdReadFieldsFilter");
32291
32619
  i0__namespace.ɵɵpipe(4, "ccdPageFields");
32292
32620
  i0__namespace.ɵɵelementContainerEnd();
32293
32621
  }
32294
32622
  if (rf & 2) {
32295
- var page_r13 = i0__namespace.ɵɵnextContext().$implicit;
32296
- var ctx_r14 = i0__namespace.ɵɵnextContext(3);
32623
+ var page_r14 = i0__namespace.ɵɵnextContext().$implicit;
32624
+ var ctx_r15 = i0__namespace.ɵɵnextContext(3);
32297
32625
  i0__namespace.ɵɵadvance(1);
32298
- i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBindV(3, 3, i0__namespace.ɵɵpureFunction2(12, _c0$d, i0__namespace.ɵɵpipeBind2(4, 9, page_r13, ctx_r14.editForm), ctx_r14.editForm.controls["data"]))));
32626
+ i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBindV(3, 3, i0__namespace.ɵɵpureFunction2(12, _c0$d, i0__namespace.ɵɵpipeBind2(4, 9, page_r14, ctx_r15.editForm), ctx_r15.editForm.controls["data"]))));
32299
32627
  }
32300
32628
  }
32301
- function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_7_Template(rf, ctx) {
32629
+ function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_7_Template(rf, ctx) {
32302
32630
  if (rf & 1) {
32303
32631
  i0__namespace.ɵɵelementContainerStart(0);
32304
- i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_11_ng_container_7_ng_container_1_Template, 5, 15, "ng-container", 0);
32632
+ i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_7_ng_container_1_Template, 5, 15, "ng-container", 0);
32305
32633
  i0__namespace.ɵɵelementContainerEnd();
32306
32634
  }
32307
32635
  if (rf & 2) {
32308
- var page_r13 = ctx.$implicit;
32309
- var ctx_r12 = i0__namespace.ɵɵnextContext(3);
32636
+ var page_r14 = ctx.$implicit;
32637
+ var ctx_r13 = i0__namespace.ɵɵnextContext(3);
32310
32638
  i0__namespace.ɵɵadvance(1);
32311
- i0__namespace.ɵɵproperty("ngIf", ctx_r12.isShown(page_r13));
32639
+ i0__namespace.ɵɵproperty("ngIf", ctx_r13.isShown(page_r14));
32312
32640
  }
32313
32641
  }
32314
- function CaseEditSubmitComponent_div_0_ng_container_11_Template(rf, ctx) {
32642
+ function CaseEditSubmitComponent_div_0_ng_container_12_Template(rf, ctx) {
32315
32643
  if (rf & 1) {
32316
32644
  i0__namespace.ɵɵelementContainerStart(0);
32317
32645
  i0__namespace.ɵɵelementStart(1, "h2", 16);
32318
32646
  i0__namespace.ɵɵtext(2);
32319
32647
  i0__namespace.ɵɵpipe(3, "rpxTranslate");
32320
32648
  i0__namespace.ɵɵelementEnd();
32321
- i0__namespace.ɵɵtemplate(4, CaseEditSubmitComponent_div_0_ng_container_11_span_4_Template, 3, 3, "span", 17);
32649
+ i0__namespace.ɵɵtemplate(4, CaseEditSubmitComponent_div_0_ng_container_12_span_4_Template, 3, 3, "span", 17);
32322
32650
  i0__namespace.ɵɵelementStart(5, "table", 18);
32323
32651
  i0__namespace.ɵɵelementStart(6, "tbody");
32324
- i0__namespace.ɵɵtemplate(7, CaseEditSubmitComponent_div_0_ng_container_11_ng_container_7_Template, 2, 1, "ng-container", 19);
32652
+ i0__namespace.ɵɵtemplate(7, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_7_Template, 2, 1, "ng-container", 19);
32325
32653
  i0__namespace.ɵɵelementEnd();
32326
32654
  i0__namespace.ɵɵelementEnd();
32327
32655
  i0__namespace.ɵɵelementContainerEnd();
@@ -32336,7 +32664,7 @@
32336
32664
  i0__namespace.ɵɵproperty("ngForOf", ctx_r7.wizard.pages);
32337
32665
  }
32338
32666
  }
32339
- function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_tr_3_Template(rf, ctx) {
32667
+ function CaseEditSubmitComponent_div_0_ng_container_13_ng_container_3_tr_3_Template(rf, ctx) {
32340
32668
  if (rf & 1) {
32341
32669
  i0__namespace.ɵɵelementStart(0, "tr", 32);
32342
32670
  i0__namespace.ɵɵelementStart(1, "th", 33);
@@ -32348,16 +32676,16 @@
32348
32676
  i0__namespace.ɵɵelementEnd();
32349
32677
  }
32350
32678
  if (rf & 2) {
32351
- var field_r28 = i0__namespace.ɵɵnextContext().$implicit;
32352
- var ctx_r29 = i0__namespace.ɵɵnextContext(3);
32353
- i0__namespace.ɵɵproperty("caseField", field_r28)("formGroup", ctx_r29.editForm.controls["data"])("contextFields", ctx_r29.contextFields);
32679
+ var field_r31 = i0__namespace.ɵɵnextContext().$implicit;
32680
+ var ctx_r32 = i0__namespace.ɵɵnextContext(3);
32681
+ i0__namespace.ɵɵproperty("caseField", field_r31)("formGroup", ctx_r32.editForm.controls["data"])("contextFields", ctx_r32.contextFields);
32354
32682
  i0__namespace.ɵɵadvance(2);
32355
- i0__namespace.ɵɵtextInterpolate(field_r28.label);
32683
+ i0__namespace.ɵɵtextInterpolate(field_r31.label);
32356
32684
  i0__namespace.ɵɵadvance(2);
32357
- i0__namespace.ɵɵproperty("formGroup", ctx_r29.editForm.controls["data"])("caseField", ctx_r29.summaryCaseField(field_r28));
32685
+ i0__namespace.ɵɵproperty("formGroup", ctx_r32.editForm.controls["data"])("caseField", ctx_r32.summaryCaseField(field_r31));
32358
32686
  }
32359
32687
  }
32360
- function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_tr_4_Template(rf, ctx) {
32688
+ function CaseEditSubmitComponent_div_0_ng_container_13_ng_container_3_tr_4_Template(rf, ctx) {
32361
32689
  if (rf & 1) {
32362
32690
  i0__namespace.ɵɵelementStart(0, "tr", 36);
32363
32691
  i0__namespace.ɵɵelementStart(1, "td", 37);
@@ -32366,39 +32694,39 @@
32366
32694
  i0__namespace.ɵɵelementEnd();
32367
32695
  }
32368
32696
  if (rf & 2) {
32369
- var field_r28 = i0__namespace.ɵɵnextContext().$implicit;
32370
- var ctx_r30 = i0__namespace.ɵɵnextContext(3);
32371
- i0__namespace.ɵɵproperty("caseField", field_r28)("formGroup", ctx_r30.editForm.controls["data"])("contextFields", ctx_r30.contextFields);
32697
+ var field_r31 = i0__namespace.ɵɵnextContext().$implicit;
32698
+ var ctx_r33 = i0__namespace.ɵɵnextContext(3);
32699
+ i0__namespace.ɵɵproperty("caseField", field_r31)("formGroup", ctx_r33.editForm.controls["data"])("contextFields", ctx_r33.contextFields);
32372
32700
  i0__namespace.ɵɵadvance(2);
32373
- i0__namespace.ɵɵproperty("formGroup", ctx_r30.editForm.controls["data"])("caseField", ctx_r30.summaryCaseField(field_r28))("caseFields", ctx_r30.contextFields);
32701
+ i0__namespace.ɵɵproperty("formGroup", ctx_r33.editForm.controls["data"])("caseField", ctx_r33.summaryCaseField(field_r31))("caseFields", ctx_r33.contextFields);
32374
32702
  }
32375
32703
  }
32376
- function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_Template(rf, ctx) {
32704
+ function CaseEditSubmitComponent_div_0_ng_container_13_ng_container_3_Template(rf, ctx) {
32377
32705
  if (rf & 1) {
32378
32706
  i0__namespace.ɵɵelementContainerStart(0);
32379
32707
  i0__namespace.ɵɵelementContainerStart(1, 29);
32380
32708
  i0__namespace.ɵɵpipe(2, "ccdIsCompound");
32381
- i0__namespace.ɵɵtemplate(3, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_tr_3_Template, 5, 6, "tr", 30);
32382
- i0__namespace.ɵɵtemplate(4, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_tr_4_Template, 3, 6, "tr", 31);
32709
+ i0__namespace.ɵɵtemplate(3, CaseEditSubmitComponent_div_0_ng_container_13_ng_container_3_tr_3_Template, 5, 6, "tr", 30);
32710
+ i0__namespace.ɵɵtemplate(4, CaseEditSubmitComponent_div_0_ng_container_13_ng_container_3_tr_4_Template, 3, 6, "tr", 31);
32383
32711
  i0__namespace.ɵɵelementContainerEnd();
32384
32712
  i0__namespace.ɵɵelementContainerEnd();
32385
32713
  }
32386
32714
  if (rf & 2) {
32387
- var field_r28 = ctx.$implicit;
32715
+ var field_r31 = ctx.$implicit;
32388
32716
  i0__namespace.ɵɵadvance(1);
32389
- i0__namespace.ɵɵproperty("ngSwitch", !i0__namespace.ɵɵpipeBind1(2, 3, field_r28));
32717
+ i0__namespace.ɵɵproperty("ngSwitch", !i0__namespace.ɵɵpipeBind1(2, 3, field_r31));
32390
32718
  i0__namespace.ɵɵadvance(2);
32391
32719
  i0__namespace.ɵɵproperty("ngSwitchCase", true);
32392
32720
  i0__namespace.ɵɵadvance(1);
32393
32721
  i0__namespace.ɵɵproperty("ngSwitchCase", false);
32394
32722
  }
32395
32723
  }
32396
- function CaseEditSubmitComponent_div_0_ng_container_12_Template(rf, ctx) {
32724
+ function CaseEditSubmitComponent_div_0_ng_container_13_Template(rf, ctx) {
32397
32725
  if (rf & 1) {
32398
32726
  i0__namespace.ɵɵelementContainerStart(0);
32399
32727
  i0__namespace.ɵɵelementStart(1, "table", 28);
32400
32728
  i0__namespace.ɵɵelementStart(2, "tbody");
32401
- i0__namespace.ɵɵtemplate(3, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_Template, 5, 5, "ng-container", 19);
32729
+ i0__namespace.ɵɵtemplate(3, CaseEditSubmitComponent_div_0_ng_container_13_ng_container_3_Template, 5, 5, "ng-container", 19);
32402
32730
  i0__namespace.ɵɵelementEnd();
32403
32731
  i0__namespace.ɵɵelementEnd();
32404
32732
  i0__namespace.ɵɵelementContainerEnd();
@@ -32409,84 +32737,90 @@
32409
32737
  i0__namespace.ɵɵproperty("ngForOf", ctx_r8.showSummaryFields);
32410
32738
  }
32411
32739
  }
32412
- function CaseEditSubmitComponent_div_0_ng_container_13_fieldset_1_Template(rf, ctx) {
32740
+ function CaseEditSubmitComponent_div_0_ng_container_14_Template(rf, ctx) {
32413
32741
  if (rf & 1) {
32414
- i0__namespace.ɵɵelementStart(0, "fieldset", 40);
32415
- i0__namespace.ɵɵelement(1, "legend", 41);
32416
- i0__namespace.ɵɵelementStart(2, "div", 42);
32417
- i0__namespace.ɵɵelementStart(3, "label", 43);
32418
- i0__namespace.ɵɵtext(4, " Event summary (optional) ");
32419
- i0__namespace.ɵɵelementStart(5, "span", 44);
32420
- i0__namespace.ɵɵtext(6, "A few words describing the purpose of the event.");
32742
+ i0__namespace.ɵɵelementContainerStart(0);
32743
+ i0__namespace.ɵɵelementStart(1, "fieldset", 39);
32744
+ i0__namespace.ɵɵelement(2, "legend", 40);
32745
+ i0__namespace.ɵɵelementStart(3, "div", 41);
32746
+ i0__namespace.ɵɵelementStart(4, "label", 42);
32747
+ i0__namespace.ɵɵtext(5, " Event summary (optional) ");
32748
+ i0__namespace.ɵɵelementStart(6, "span", 43);
32749
+ i0__namespace.ɵɵtext(7, "A few words describing the purpose of the event.");
32421
32750
  i0__namespace.ɵɵelementEnd();
32422
32751
  i0__namespace.ɵɵelementEnd();
32423
- i0__namespace.ɵɵelement(7, "input", 45);
32752
+ i0__namespace.ɵɵelement(8, "input", 44);
32424
32753
  i0__namespace.ɵɵelementEnd();
32425
- i0__namespace.ɵɵelementStart(8, "div", 42);
32426
- i0__namespace.ɵɵelementStart(9, "label", 46);
32427
- i0__namespace.ɵɵtext(10, "Event description (optional)");
32754
+ i0__namespace.ɵɵelementStart(9, "div", 41);
32755
+ i0__namespace.ɵɵelementStart(10, "label", 45);
32756
+ i0__namespace.ɵɵtext(11, "Event description (optional)");
32428
32757
  i0__namespace.ɵɵelementEnd();
32429
- i0__namespace.ɵɵelement(11, "textarea", 47);
32758
+ i0__namespace.ɵɵelement(12, "textarea", 46);
32430
32759
  i0__namespace.ɵɵelementEnd();
32431
32760
  i0__namespace.ɵɵelementEnd();
32761
+ i0__namespace.ɵɵelementContainerEnd();
32432
32762
  }
32433
32763
  }
32434
- function CaseEditSubmitComponent_div_0_ng_container_13_Template(rf, ctx) {
32764
+ function CaseEditSubmitComponent_div_0_button_16_Template(rf, ctx) {
32435
32765
  if (rf & 1) {
32436
- i0__namespace.ɵɵelementContainerStart(0);
32437
- i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_13_fieldset_1_Template, 12, 0, "fieldset", 39);
32438
- i0__namespace.ɵɵelementContainerEnd();
32766
+ var _r37_1 = i0__namespace.ɵɵgetCurrentView();
32767
+ i0__namespace.ɵɵelementStart(0, "button", 47);
32768
+ i0__namespace.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_button_16_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r37_1); var ctx_r36 = i0__namespace.ɵɵnextContext(2); return ctx_r36.previous(); });
32769
+ i0__namespace.ɵɵtext(1);
32770
+ i0__namespace.ɵɵpipe(2, "rpxTranslate");
32771
+ i0__namespace.ɵɵelementEnd();
32439
32772
  }
32440
32773
  if (rf & 2) {
32441
- var ctx_r9 = i0__namespace.ɵɵnextContext(2);
32774
+ var ctx_r10 = i0__namespace.ɵɵnextContext(2);
32775
+ i0__namespace.ɵɵproperty("disabled", !ctx_r10.hasPrevious() || ctx_r10.caseEdit.isSubmitting);
32442
32776
  i0__namespace.ɵɵadvance(1);
32443
- i0__namespace.ɵɵproperty("ngIf", ctx_r9.profile && !ctx_r9.isSolicitor());
32777
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 2, "Previous"), " ");
32444
32778
  }
32445
32779
  }
32446
32780
  function CaseEditSubmitComponent_div_0_Template(rf, ctx) {
32447
32781
  if (rf & 1) {
32448
- var _r35_1 = i0__namespace.ɵɵgetCurrentView();
32782
+ var _r39_1 = i0__namespace.ɵɵgetCurrentView();
32449
32783
  i0__namespace.ɵɵelementStart(0, "div");
32450
32784
  i0__namespace.ɵɵelementStart(1, "h1", 2);
32451
32785
  i0__namespace.ɵɵtext(2);
32786
+ i0__namespace.ɵɵpipe(3, "rpxTranslate");
32452
32787
  i0__namespace.ɵɵelementEnd();
32453
- i0__namespace.ɵɵtemplate(3, CaseEditSubmitComponent_div_0_div_3_Template, 1, 0, "div", 3);
32454
- i0__namespace.ɵɵtemplate(4, CaseEditSubmitComponent_div_0_ng_template_4_Template, 2, 5, "ng-template", null, 4, i0__namespace.ɵɵtemplateRefExtractor);
32455
- i0__namespace.ɵɵtemplate(6, CaseEditSubmitComponent_div_0_ng_template_6_Template, 1, 1, "ng-template", null, 5, i0__namespace.ɵɵtemplateRefExtractor);
32456
- i0__namespace.ɵɵelement(8, "ccd-case-edit-generic-errors", 6);
32457
- i0__namespace.ɵɵelementStart(9, "ccd-callback-errors", 7);
32458
- i0__namespace.ɵɵlistener("callbackErrorsContext", function CaseEditSubmitComponent_div_0_Template_ccd_callback_errors_callbackErrorsContext_9_listener($event) { i0__namespace.ɵɵrestoreView(_r35_1); var ctx_r34 = i0__namespace.ɵɵnextContext(); return ctx_r34.callbackErrorsNotify($event); });
32459
- i0__namespace.ɵɵelementEnd();
32460
- i0__namespace.ɵɵelementStart(10, "form", 8);
32461
- i0__namespace.ɵɵlistener("submit", function CaseEditSubmitComponent_div_0_Template_form_submit_10_listener() { i0__namespace.ɵɵrestoreView(_r35_1); var ctx_r36 = i0__namespace.ɵɵnextContext(); return ctx_r36.submit(); });
32462
- i0__namespace.ɵɵtemplate(11, CaseEditSubmitComponent_div_0_ng_container_11_Template, 8, 5, "ng-container", 0);
32463
- i0__namespace.ɵɵtemplate(12, CaseEditSubmitComponent_div_0_ng_container_12_Template, 4, 1, "ng-container", 0);
32464
- i0__namespace.ɵɵtemplate(13, CaseEditSubmitComponent_div_0_ng_container_13_Template, 2, 1, "ng-container", 0);
32465
- i0__namespace.ɵɵelementStart(14, "div", 9);
32466
- i0__namespace.ɵɵelementStart(15, "button", 10);
32467
- i0__namespace.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_Template_button_click_15_listener() { i0__namespace.ɵɵrestoreView(_r35_1); var ctx_r37 = i0__namespace.ɵɵnextContext(); return ctx_r37.previous(); });
32468
- i0__namespace.ɵɵtext(16, "Previous");
32469
- i0__namespace.ɵɵelementEnd();
32788
+ i0__namespace.ɵɵtemplate(4, CaseEditSubmitComponent_div_0_div_4_Template, 1, 0, "div", 3);
32789
+ i0__namespace.ɵɵtemplate(5, CaseEditSubmitComponent_div_0_ng_template_5_Template, 2, 5, "ng-template", null, 4, i0__namespace.ɵɵtemplateRefExtractor);
32790
+ i0__namespace.ɵɵtemplate(7, CaseEditSubmitComponent_div_0_ng_template_7_Template, 1, 1, "ng-template", null, 5, i0__namespace.ɵɵtemplateRefExtractor);
32791
+ i0__namespace.ɵɵelement(9, "ccd-case-edit-generic-errors", 6);
32792
+ i0__namespace.ɵɵelementStart(10, "ccd-callback-errors", 7);
32793
+ i0__namespace.ɵɵlistener("callbackErrorsContext", function CaseEditSubmitComponent_div_0_Template_ccd_callback_errors_callbackErrorsContext_10_listener($event) { i0__namespace.ɵɵrestoreView(_r39_1); var ctx_r38 = i0__namespace.ɵɵnextContext(); return ctx_r38.callbackErrorsNotify($event); });
32794
+ i0__namespace.ɵɵelementEnd();
32795
+ i0__namespace.ɵɵelementStart(11, "form", 8);
32796
+ i0__namespace.ɵɵlistener("submit", function CaseEditSubmitComponent_div_0_Template_form_submit_11_listener() { i0__namespace.ɵɵrestoreView(_r39_1); var ctx_r40 = i0__namespace.ɵɵnextContext(); return ctx_r40.submit(); });
32797
+ i0__namespace.ɵɵtemplate(12, CaseEditSubmitComponent_div_0_ng_container_12_Template, 8, 5, "ng-container", 0);
32798
+ i0__namespace.ɵɵtemplate(13, CaseEditSubmitComponent_div_0_ng_container_13_Template, 4, 1, "ng-container", 0);
32799
+ i0__namespace.ɵɵtemplate(14, CaseEditSubmitComponent_div_0_ng_container_14_Template, 13, 0, "ng-container", 0);
32800
+ i0__namespace.ɵɵelementStart(15, "div", 9);
32801
+ i0__namespace.ɵɵtemplate(16, CaseEditSubmitComponent_div_0_button_16_Template, 3, 4, "button", 10);
32470
32802
  i0__namespace.ɵɵelementStart(17, "button", 11);
32471
32803
  i0__namespace.ɵɵtext(18);
32804
+ i0__namespace.ɵɵpipe(19, "rpxTranslate");
32472
32805
  i0__namespace.ɵɵelementEnd();
32473
32806
  i0__namespace.ɵɵelementEnd();
32474
- i0__namespace.ɵɵelementStart(19, "p", 12);
32475
- i0__namespace.ɵɵelementStart(20, "a", 13);
32476
- i0__namespace.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_Template_a_click_20_listener() { i0__namespace.ɵɵrestoreView(_r35_1); var ctx_r38 = i0__namespace.ɵɵnextContext(); return ctx_r38.cancel(); });
32477
- i0__namespace.ɵɵtext(21);
32807
+ i0__namespace.ɵɵelementStart(20, "p", 12);
32808
+ i0__namespace.ɵɵelementStart(21, "a", 13);
32809
+ i0__namespace.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_Template_a_click_21_listener() { i0__namespace.ɵɵrestoreView(_r39_1); var ctx_r41 = i0__namespace.ɵɵnextContext(); return ctx_r41.cancel(); });
32810
+ i0__namespace.ɵɵtext(22);
32811
+ i0__namespace.ɵɵpipe(23, "rpxTranslate");
32478
32812
  i0__namespace.ɵɵelementEnd();
32479
32813
  i0__namespace.ɵɵelementEnd();
32480
32814
  i0__namespace.ɵɵelementEnd();
32481
32815
  i0__namespace.ɵɵelementEnd();
32482
32816
  }
32483
32817
  if (rf & 2) {
32484
- var _r3 = i0__namespace.ɵɵreference(5);
32485
- var _r5 = i0__namespace.ɵɵreference(7);
32818
+ var _r3 = i0__namespace.ɵɵreference(6);
32819
+ var _r5 = i0__namespace.ɵɵreference(8);
32486
32820
  var ctx_r0 = i0__namespace.ɵɵnextContext();
32487
32821
  i0__namespace.ɵɵadvance(2);
32488
- i0__namespace.ɵɵtextInterpolate(ctx_r0.eventTrigger.name);
32489
- i0__namespace.ɵɵadvance(1);
32822
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 16, ctx_r0.eventTrigger.name));
32823
+ i0__namespace.ɵɵadvance(2);
32490
32824
  i0__namespace.ɵɵproperty("ngIf", ctx_r0.getCaseTitle())("ngIfThen", _r3)("ngIfElse", _r5);
32491
32825
  i0__namespace.ɵɵadvance(5);
32492
32826
  i0__namespace.ɵɵproperty("error", ctx_r0.caseEdit.error);
@@ -32501,22 +32835,22 @@
32501
32835
  i0__namespace.ɵɵadvance(1);
32502
32836
  i0__namespace.ɵɵproperty("ngIf", ctx_r0.showEventNotes());
32503
32837
  i0__namespace.ɵɵadvance(2);
32504
- i0__namespace.ɵɵproperty("disabled", !ctx_r0.hasPrevious() || ctx_r0.caseEdit.isSubmitting);
32505
- i0__namespace.ɵɵadvance(2);
32838
+ i0__namespace.ɵɵproperty("ngIf", !ctx_r0.caseEdit.isCaseFlagSubmission);
32839
+ i0__namespace.ɵɵadvance(1);
32506
32840
  i0__namespace.ɵɵproperty("disabled", ctx_r0.isDisabled);
32507
32841
  i0__namespace.ɵɵadvance(1);
32508
- i0__namespace.ɵɵtextInterpolate(ctx_r0.triggerText);
32509
- i0__namespace.ɵɵadvance(2);
32842
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(19, 18, ctx_r0.triggerText), " ");
32843
+ i0__namespace.ɵɵadvance(3);
32510
32844
  i0__namespace.ɵɵclassProp("disabled", ctx_r0.caseEdit.isSubmitting);
32511
32845
  i0__namespace.ɵɵadvance(1);
32512
- i0__namespace.ɵɵtextInterpolate(ctx_r0.getCancelText());
32846
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(23, 20, ctx_r0.getCancelText()), " ");
32513
32847
  }
32514
32848
  }
32515
32849
  function CaseEditSubmitComponent_ccd_case_event_completion_1_Template(rf, ctx) {
32516
32850
  if (rf & 1) {
32517
- var _r40_1 = i0__namespace.ɵɵgetCurrentView();
32851
+ var _r43_1 = i0__namespace.ɵɵgetCurrentView();
32518
32852
  i0__namespace.ɵɵelementStart(0, "ccd-case-event-completion", 48);
32519
- i0__namespace.ɵɵlistener("eventCanBeCompleted", function CaseEditSubmitComponent_ccd_case_event_completion_1_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0__namespace.ɵɵrestoreView(_r40_1); var ctx_r39 = i0__namespace.ɵɵnextContext(); return ctx_r39.onEventCanBeCompleted($event); });
32853
+ i0__namespace.ɵɵlistener("eventCanBeCompleted", function CaseEditSubmitComponent_ccd_case_event_completion_1_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0__namespace.ɵɵrestoreView(_r43_1); var ctx_r42 = i0__namespace.ɵɵnextContext(); return ctx_r42.onEventCanBeCompleted($event); });
32520
32854
  i0__namespace.ɵɵelementEnd();
32521
32855
  }
32522
32856
  if (rf & 2) {
@@ -32562,7 +32896,7 @@
32562
32896
  this.eventTrigger.case_fields.some(function (caseField) { return FieldsUtils.isCaseFieldOfType(caseField, ['FlagLauncher']); });
32563
32897
  this.caseEdit.isLinkedCasesSubmission =
32564
32898
  this.eventTrigger.case_fields.some(function (caseField) { return FieldsUtils.isCaseFieldOfType(caseField, ['ComponentLauncher']); });
32565
- this.pageTitle = this.caseEdit.isCaseFlagSubmission ? 'Review flag details' : 'Check your answers';
32899
+ this.pageTitle = this.getPageTitle();
32566
32900
  };
32567
32901
  CaseEditSubmitComponent.prototype.ngOnDestroy = function () {
32568
32902
  /* istanbul ignore else */
@@ -32587,6 +32921,17 @@
32587
32921
  submit: this.caseEdit.submit,
32588
32922
  });
32589
32923
  };
32924
+ CaseEditSubmitComponent.prototype.getPageTitle = function () {
32925
+ var caseFlagField = this.eventTrigger.case_fields.find(function (caseField) { return FieldsUtils.isCaseFieldOfType(caseField, ['FlagLauncher']); });
32926
+ if (caseFlagField) {
32927
+ var isCaseFlagExternalMode = caseFlagField.display_context_parameter === '#ARGUMENT(UPDATE,EXTERNAL)' ||
32928
+ caseFlagField.display_context_parameter === '#ARGUMENT(CREATE,EXTERNAL)';
32929
+ return isCaseFlagExternalMode
32930
+ ? CaseEditSubmitTitles.REVIEW_SUPPORT_REQUEST
32931
+ : CaseEditSubmitTitles.REVIEW_FLAG_DETAILS;
32932
+ }
32933
+ return CaseEditSubmitTitles.CHECK_YOUR_ANSWERS;
32934
+ };
32590
32935
  Object.defineProperty(CaseEditSubmitComponent.prototype, "hasErrors", {
32591
32936
  get: function () {
32592
32937
  var _a, _b, _c;
@@ -32677,7 +33022,16 @@
32677
33022
  return this.eventTrigger.case_fields.some(function (field) { return field.show_summary_content_option >= 0; });
32678
33023
  };
32679
33024
  CaseEditSubmitComponent.prototype.showEventNotes = function () {
32680
- return !!this.eventTrigger.show_event_notes;
33025
+ var _a;
33026
+ // Display event notes related controls only if the following conditions are met
33027
+ // 1. show_event_notes flag is set to true
33028
+ // 2. profile is not a solicitor
33029
+ // 3. is not a case flags journey, as it uses a custom check your answers component
33030
+ if (this.eventTrigger.show_event_notes) {
33031
+ return !((_a = this.profile) === null || _a === void 0 ? void 0 : _a.isSolicitor())
33032
+ && !this.caseEdit.isCaseFlagSubmission;
33033
+ }
33034
+ return false;
32681
33035
  };
32682
33036
  CaseEditSubmitComponent.prototype.getLastPageShown = function () {
32683
33037
  var _this = this;
@@ -32707,9 +33061,6 @@
32707
33061
  CaseEditSubmitComponent.prototype.canShowFieldInCYA = function (field) {
32708
33062
  return field.show_summary_change_option;
32709
33063
  };
32710
- CaseEditSubmitComponent.prototype.isSolicitor = function () {
32711
- return this.profile.isSolicitor();
32712
- };
32713
33064
  CaseEditSubmitComponent.prototype.sortFieldsByShowSummaryContent = function (fields) {
32714
33065
  return this.orderService
32715
33066
  .sort(fields, CaseEditSubmitComponent.SHOW_SUMMARY_CONTENT_COMPARE_FUNCTION)
@@ -32750,9 +33101,9 @@
32750
33101
  return a.show_summary_content_option - b.show_summary_content_option;
32751
33102
  };
32752
33103
  CaseEditSubmitComponent.ɵfac = function CaseEditSubmitComponent_Factory(t) { return new (t || CaseEditSubmitComponent)(i0__namespace.ɵɵdirectiveInject(CaseEditComponent), i0__namespace.ɵɵdirectiveInject(FieldsUtils), i0__namespace.ɵɵdirectiveInject(CaseFieldService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(ProfileNotifier)); };
32753
- CaseEditSubmitComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseEditSubmitComponent, selectors: [["ccd-case-edit-submit"]], decls: 2, vars: 2, consts: [[4, "ngIf"], [3, "eventCompletionParams", "eventCanBeCompleted", 4, "ngIf"], [1, "govuk-heading-l"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["titleBlock", ""], ["idBlock", ""], [3, "error"], [3, "callbackErrorsSubject", "callbackErrorsContext"], [1, "check-your-answers", 3, "formGroup", "submit"], [1, "form-group", "form-group-related"], ["type", "button", 1, "button", "button-secondary", 3, "disabled", "click"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["class", "text-16", 4, "ngIf"], ["aria-describedby", "check your answers table", 1, "form-table"], [4, "ngFor", "ngForOf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "hidden", "formGroup", "contextFields"], ["class", "valign-top case-field-label", 4, "ngIf"], [1, "form-cell", "case-field-content"], [3, "formGroup", "topLevelFormGroup", "caseField", "context", "caseFields"], [1, "valign-top", "check-your-answers__change", "case-field-change"], ["href", "javascript:void(0)", 3, "click", 4, "ngIf"], [1, "valign-top", "case-field-label"], ["aria-describedby", "summary fields table", 1, "summary-fields"], [3, "ngSwitch"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields", 4, "ngSwitchCase"], ["class", "compound-field", "ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields", 4, "ngSwitchCase"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields"], ["id", "summary-field-label"], [1, "form-cell"], [3, "formGroup", "caseField"], ["ccdLabelSubstitutor", "", 1, "compound-field", 3, "caseField", "formGroup", "contextFields"], ["colspan", "2"], [3, "formGroup", "caseField", "caseFields"], ["id", "fieldset-event", "formGroupName", "event", 4, "ngIf"], ["id", "fieldset-event", "formGroupName", "event"], [2, "display", "none"], [1, "form-group"], ["for", "field-trigger-summary", 1, "form-label"], [1, "form-hint"], ["type", "text", "id", "field-trigger-summary", "formControlName", "summary", "maxlength", "1024", 1, "form-control", "bottom-30", "width-50"], ["for", "field-trigger-description", 1, "form-label"], ["id", "field-trigger-description", "formControlName", "description", "maxlength", "65536", 1, "form-control", "bottom-30", "width-50"], [3, "eventCompletionParams", "eventCanBeCompleted"]], template: function CaseEditSubmitComponent_Template(rf, ctx) {
33104
+ CaseEditSubmitComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseEditSubmitComponent, selectors: [["ccd-case-edit-submit"]], decls: 2, vars: 2, consts: [[4, "ngIf"], [3, "eventCompletionParams", "eventCanBeCompleted", 4, "ngIf"], [1, "govuk-heading-l"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["titleBlock", ""], ["idBlock", ""], [3, "error"], [3, "callbackErrorsSubject", "callbackErrorsContext"], [1, "check-your-answers", 3, "formGroup", "submit"], [1, "form-group", "form-group-related"], ["class", "button button-secondary", "type", "button", 3, "disabled", "click", 4, "ngIf"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["class", "text-16", 4, "ngIf"], ["aria-describedby", "check your answers table", 1, "form-table"], [4, "ngFor", "ngForOf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "hidden", "formGroup", "contextFields"], ["class", "valign-top case-field-label", 4, "ngIf"], [1, "form-cell", "case-field-content"], [3, "formGroup", "topLevelFormGroup", "caseField", "context", "caseFields"], [1, "valign-top", "case-field-label"], [1, "valign-top", "check-your-answers__change", "case-field-change"], ["href", "javascript:void(0)", 3, "click", 4, "ngIf"], ["aria-describedby", "summary fields table", 1, "summary-fields"], [3, "ngSwitch"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields", 4, "ngSwitchCase"], ["class", "compound-field", "ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields", 4, "ngSwitchCase"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields"], ["id", "summary-field-label"], [1, "form-cell"], [3, "formGroup", "caseField"], ["ccdLabelSubstitutor", "", 1, "compound-field", 3, "caseField", "formGroup", "contextFields"], ["colspan", "2"], [3, "formGroup", "caseField", "caseFields"], ["id", "fieldset-event", "formGroupName", "event"], [2, "display", "none"], [1, "form-group"], ["for", "field-trigger-summary", 1, "form-label"], [1, "form-hint"], ["type", "text", "id", "field-trigger-summary", "formControlName", "summary", "maxlength", "1024", 1, "form-control", "bottom-30", "width-50"], ["for", "field-trigger-description", 1, "form-label"], ["id", "field-trigger-description", "formControlName", "description", "maxlength", "65536", 1, "form-control", "bottom-30", "width-50"], ["type", "button", 1, "button", "button-secondary", 3, "disabled", "click"], [3, "eventCompletionParams", "eventCanBeCompleted"]], template: function CaseEditSubmitComponent_Template(rf, ctx) {
32754
33105
  if (rf & 1) {
32755
- i0__namespace.ɵɵtemplate(0, CaseEditSubmitComponent_div_0_Template, 22, 16, "div", 0);
33106
+ i0__namespace.ɵɵtemplate(0, CaseEditSubmitComponent_div_0_Template, 24, 22, "div", 0);
32756
33107
  i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_ccd_case_event_completion_1_Template, 1, 1, "ccd-case-event-completion", 1);
32757
33108
  }
32758
33109
  if (rf & 2) {
@@ -33212,7 +33563,7 @@
33212
33563
  i0__namespace.ɵɵsetComponentScope(CaseEditConfirmComponent, [i5__namespace.NgIf, MarkdownComponent, i3__namespace.ɵangular_packages_forms_forms_ba, i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective], [i1__namespace.RpxTranslatePipe, CcdCaseTitlePipe, CaseReferencePipe]);
33213
33564
  i0__namespace.ɵɵsetComponentScope(CaseEditPageComponent, [i5__namespace.NgIf, MarkdownComponent, i5__namespace.NgForOf, CaseEditGenericErrorsComponent, CallbackErrorsComponent, i3__namespace.ɵangular_packages_forms_forms_ba, i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective, CaseEditFormComponent, CaseEventCompletionComponent], [i1__namespace.RpxTranslatePipe, CcdCaseTitlePipe, CaseReferencePipe, i5__namespace.AsyncPipe]);
33214
33565
  i0__namespace.ɵɵsetComponentScope(CaseEditFormComponent, [i5__namespace.NgForOf, ConditionalShowFormDirective, i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective, LabelSubstitutorDirective, i5__namespace.NgSwitch, i5__namespace.NgSwitchCase, FieldReadComponent, i5__namespace.NgIf, FieldWriteComponent], [IsReadOnlyAndNotCollectionPipe, IsCompoundPipe]);
33215
- i0__namespace.ɵɵsetComponentScope(CaseEditSubmitComponent, [i5__namespace.NgIf, MarkdownComponent, CaseEditGenericErrorsComponent, CallbackErrorsComponent, i3__namespace.ɵangular_packages_forms_forms_ba, i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective, i5__namespace.NgForOf, LabelSubstitutorDirective, FieldReadComponent, i5__namespace.NgSwitch, i5__namespace.NgSwitchCase, i3__namespace.FormGroupName, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlName, i3__namespace.MaxLengthValidator, CaseEventCompletionComponent], [CcdCaseTitlePipe, CaseReferencePipe, i1__namespace.RpxTranslatePipe, CcdCYAPageLabelFilterPipe, ReadFieldsFilterPipe, CcdPageFieldsPipe, IsCompoundPipe]);
33566
+ i0__namespace.ɵɵsetComponentScope(CaseEditSubmitComponent, [i5__namespace.NgIf, MarkdownComponent, CaseEditGenericErrorsComponent, CallbackErrorsComponent, i3__namespace.ɵangular_packages_forms_forms_ba, i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective, i5__namespace.NgForOf, LabelSubstitutorDirective, FieldReadComponent, i5__namespace.NgSwitch, i5__namespace.NgSwitchCase, i3__namespace.FormGroupName, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlName, i3__namespace.MaxLengthValidator, CaseEventCompletionComponent], [i1__namespace.RpxTranslatePipe, CcdCaseTitlePipe, CaseReferencePipe, CcdCYAPageLabelFilterPipe, ReadFieldsFilterPipe, CcdPageFieldsPipe, IsCompoundPipe]);
33216
33567
  i0__namespace.ɵɵsetComponentScope(CaseCreateComponent, [i5__namespace.NgIf, CaseEditComponent], []);
33217
33568
  i0__namespace.ɵɵsetComponentScope(CaseProgressComponent, [i5__namespace.NgIf, CaseEditComponent], []);
33218
33569